discourse/app/assets/javascripts/select-kit/addon/components
Kelv 6cda3c728a
DEV: refactor select-kit utils mixin to property-utils lib (#32665)
Follow up to refactoring the generic utils mixin used in select-kit
components in https://github.com/discourse/discourse/pull/32594.

This PR follows a different approach as the util functions related to
properties here aren't easily extracted without a major change to the
interface due to the dependency on `this.selectKit`. These util
functions are instead declared on the prototype with a class decorator
which ensures the same behaviour is maintained without relying on a
mixin.

It's largely a lift-and-shift with some minor refactoring of the
conditional logic to reduce nesting and improve readability of the
functions.
2025-05-23 09:03:10 +08:00
..
category-drop DEV: [gjs-codemod] Convert final core components/routes to gjs 2025-04-25 11:06:24 +01:00
color-palettes DEV: [gjs-codemod] Convert automation/styleguide/other to gjs 2025-04-14 15:36:16 +01:00
combo-box DEV: [gjs-codemod] Convert final core components/routes to gjs 2025-04-25 11:06:24 +01:00
dropdown-select-box DEV: [gjs-codemod] Convert final core components/routes to gjs 2025-04-25 11:06:24 +01:00
font-selector FEATURE: Improve wizard quality and rearrange steps (#30055) 2025-01-02 09:28:23 +10:00
future-date-input-selector DEV: [gjs-codemod] Convert final core components/routes to gjs 2025-04-25 11:06:24 +01:00
homepage-style-selector DEV: [gjs-codemod] Convert automation/styleguide/other to gjs 2025-04-14 15:36:16 +01:00
mini-tag-chooser DEV: Remove final {{action uses and enable lint rule (#32348) 2025-04-25 21:25:06 +01:00
multi-select DEV: refactor select-kit utils mixin to property-utils lib (#32665) 2025-05-23 09:03:10 +08:00
notifications-button Cleanup mobile topic footer area (#30132) 2024-12-11 14:59:37 +01:00
notifications-filter DEV: [gjs-codemod] Convert automation/styleguide/other to gjs 2025-04-14 15:36:16 +01:00
period-chooser DEV: [gjs-codemod] Convert automation/styleguide/other to gjs 2025-04-14 15:36:16 +01:00
select-kit DEV: refactor select-kit utils mixin to property-utils lib (#32665) 2025-05-23 09:03:10 +08:00
tag-drop DEV: [gjs-codemod] Convert final core components/routes to gjs 2025-04-25 11:06:24 +01:00
toolbar-popup-menu-options DEV: [gjs-codemod] Convert automation/styleguide/other to gjs 2025-04-14 15:36:16 +01:00
user-chooser DEV: [gjs-codemod] Convert automation/styleguide/other to gjs 2025-04-14 15:36:16 +01:00
bulk-select-bookmarks-dropdown.js DEV: standardise toasts duration (#32741) 2025-05-15 14:59:37 +02:00
categories-admin-dropdown.js DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
category-chooser.js DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
category-drop-more-collection.gjs DEV: Move discourse-common/ helpers to discourse/ (#30728) 2025-01-13 09:36:11 +00:00
category-drop.js FEATURE: add icons and emojis to category (#31795) 2025-03-26 09:46:17 +04:00
category-notifications-button.js DEV: Update lint-configs and rubocop-discourse (#31728) 2025-03-10 19:52:19 +01:00
category-row.gjs DEV: Bump @discourse/lint-configs and autofix (#29847) 2024-11-20 14:15:04 +00:00
category-selector.js DEV: Update lint-configs and rubocop-discourse (#31728) 2025-03-10 19:52:19 +01:00
color-palettes.js DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
combo-box.js FIX: prevent duplicate category icons (#32103) 2025-04-01 13:45:14 +04:00
composer-actions.js FIX: remove abandon draft dialog (#31828) 2025-03-14 16:15:33 +04:00
create-color-row.gjs DEV: [gjs-codemod] Convert automation/styleguide/other to gjs 2025-04-14 15:36:16 +01:00
dropdown-select-box.js DEV: Convert select-kit components to native class syntax (#28489) 2024-08-23 12:17:07 +01:00
email-group-user-chooser-filter.js DEV: Convert select-kit components to native class syntax (#28489) 2024-08-23 12:17:07 +01:00
email-group-user-chooser-row.gjs DEV: [gjs-codemod] Convert automation/styleguide/other to gjs 2025-04-14 15:36:16 +01:00
email-group-user-chooser.js DEV: Convert select-kit components to native class syntax (#28489) 2024-08-23 12:17:07 +01:00
filter-for-more.gjs DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
flair-chooser.js DEV: Convert select-kit components to native class syntax (#28489) 2024-08-23 12:17:07 +01:00
flair-row.gjs DEV: [gjs-codemod] Convert automation/styleguide/other to gjs 2025-04-14 15:36:16 +01:00
font-selector.js FEATURE: Improve wizard quality and rearrange steps (#30055) 2025-01-02 09:28:23 +10:00
form-template-chooser.js DEV: Convert select-kit components to native class syntax (#28489) 2024-08-23 12:17:07 +01:00
future-date-input-selector.js DEV: Convert select-kit components to native class syntax (#28489) 2024-08-23 12:17:07 +01:00
group-chooser.js FIX: Limit displayed groups in <GroupChooser /> to 100 groups (#31288) 2025-02-12 03:14:57 +03:00
group-dropdown.js DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
group-notifications-button.js DEV: Convert select-kit components to native class syntax (#28489) 2024-08-23 12:17:07 +01:00
homepage-style-selector.js FEATURE: Improve wizard quality and rearrange steps (#30055) 2025-01-02 09:28:23 +10:00
icon-picker.js DEV: Move discourse-common/config/environment to discourse/lib (#30738) 2025-01-13 15:29:26 +00:00
list-setting.js DEV: Move discourse-common/(utils|lib) to discourse/lib (#30733) 2025-01-13 13:02:49 +00:00
mini-tag-chooser.js DEV: replace select-kit tags mixin with tag-utils service (#32509) 2025-05-06 14:38:55 +08:00
multi-select.gjs DEV: replace select-kit utils mixin methods with input-utils lib (#32594) 2025-05-07 09:25:52 +08:00
none-category-row.gjs DEV: [gjs-codemod] Convert automation/styleguide/other to gjs 2025-04-14 15:36:16 +01:00
notifications-button.js DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
notifications-filter.js DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
period-chooser.js DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
pinned-button.gjs DEV: [gjs-codemod] Convert final core components/routes to gjs 2025-04-25 11:06:24 +01:00
pinned-options.js DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
search-advanced-category-chooser.js DEV: Convert select-kit components to native class syntax (#28489) 2024-08-23 12:17:07 +01:00
select-kit.js DEV: refactor select-kit utils mixin to property-utils lib (#32665) 2025-05-23 09:03:10 +08:00
selected-choice-category.gjs DEV: [gjs-codemod] Convert final core components/routes to gjs 2025-04-25 11:06:24 +01:00
selected-choice-color.js DEV: Convert select-kit components to native class syntax (#28489) 2024-08-23 12:17:07 +01:00
selected-choice.gjs DEV: refactor select-kit utils mixin to property-utils lib (#32665) 2025-05-23 09:03:10 +08:00
selected-color.js DEV: Convert select-kit components to native class syntax (#28489) 2024-08-23 12:17:07 +01:00
selected-flair.gjs DEV: [gjs-codemod] Convert automation/styleguide/other to gjs 2025-04-14 15:36:16 +01:00
selected-font.gjs FEATURE: Improve wizard quality and rearrange steps (#30055) 2025-01-02 09:28:23 +10:00
selected-name.gjs DEV: refactor select-kit utils mixin to property-utils lib (#32665) 2025-05-23 09:03:10 +08:00
single-select.gjs DEV: replace select-kit utils mixin methods with input-utils lib (#32594) 2025-05-07 09:25:52 +08:00
tag-chooser-row.gjs DEV: [gjs-codemod] Convert automation/styleguide/other to gjs 2025-04-14 15:36:16 +01:00
tag-chooser.js DEV: replace select-kit tags mixin with tag-utils service (#32509) 2025-05-06 14:38:55 +08:00
tag-drop.js DEV: replace select-kit tags mixin with tag-utils service (#32509) 2025-05-06 14:38:55 +08:00
tag-group-chooser.js DEV: replace select-kit tags mixin with tag-utils service (#32509) 2025-05-06 14:38:55 +08:00
tag-notifications-button.js DEV: Convert select-kit components to native class syntax (#28489) 2024-08-23 12:17:07 +01:00
tag-row.gjs DEV: [gjs-codemod] Convert automation/styleguide/other to gjs 2025-04-14 15:36:16 +01:00
tags-intersection-chooser.js DEV: Move discourse-common/(utils|lib) to discourse/lib (#30733) 2025-01-13 13:02:49 +00:00
timezone-input.js DEV: Convert select-kit components to native class syntax (#28489) 2024-08-23 12:17:07 +01:00
toolbar-popup-menu-options.js DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
topic-chooser.js DEV: Convert select-kit components to native class syntax (#28489) 2024-08-23 12:17:07 +01:00
topic-notifications-button.gjs FIX: prevents d-menu trigger/untrigger propagation (#32078) 2025-03-31 13:47:24 +02:00
topic-notifications-options.js DEV: Convert select-kit components to native class syntax (#28489) 2024-08-23 12:17:07 +01:00
topic-row.gjs DEV: [gjs-codemod] Convert automation/styleguide/other to gjs 2025-04-14 15:36:16 +01:00
user-chooser.js DEV: Move discourse-common/(utils|lib) to discourse/lib (#30733) 2025-01-13 13:02:49 +00:00
user-notifications-dropdown.js DEV: Add optional callback in notification dropdown action (#31257) 2025-02-10 13:26:19 -03:00
watched-words.js DEV: Move discourse-common/(utils|lib) to discourse/lib (#30733) 2025-01-13 13:02:49 +00:00