discourse/app/assets/javascripts/select-kit/addon/mixins
David Taylor 3e3c051164
DEV: Convert select-kit base classes to native class syntax (#28467)
This lays the groundwork for converting SelectKit subclasses to native class syntax. This commit is designed to be entirely backwards-compatible, so it should not affect any existing subclasses.

Of interest:

- Any properties which are designed to be overridden by subclasses are implemented using a local `@protoProp` decorator. That means they are applied to the prototype, so that they can be overridden in subclasses by both legacy `.extend()` prototype extensions, and by modern native-class fields.

- New class decorators are introduced: `@selectKitOptions` and `@pluginApiIdentifiers`. These are native class versions of the legacy `concatenatedProperties` system. This follows the pattern Ember has introduced for `@className`, `@classNameBindings`, etc.
2024-08-22 09:39:03 +01:00
..
plugin-api.js DEV: Convert select-kit base classes to native class syntax (#28467) 2024-08-22 09:39:03 +01:00
tags.js DEV: Remove unnecessary getURL() calls (#24591) 2023-11-28 14:32:15 +01:00
utils.js DEV: Sort imports 2023-10-10 21:46:54 +01:00