@haiilo/catalyst 0.8.1 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/catalyst/catalyst.esm.js +1 -1
- package/dist/catalyst/catalyst.esm.js.map +1 -1
- package/dist/catalyst/{p-89c24fb5.entry.js → p-3bbcb685.entry.js} +2 -2
- package/dist/catalyst/p-3bbcb685.entry.js.map +1 -0
- package/dist/cjs/cat-alert_20.cjs.entry.js +5 -7
- package/dist/cjs/cat-alert_20.cjs.entry.js.map +1 -1
- package/dist/cjs/catalyst.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/cat-select/cat-select.js +13 -14
- package/dist/collection/components/cat-select/cat-select.js.map +1 -1
- package/dist/components/cat-select.js +6 -8
- package/dist/components/cat-select.js.map +1 -1
- package/dist/esm/cat-alert_20.entry.js +5 -7
- package/dist/esm/cat-alert_20.entry.js.map +1 -1
- package/dist/esm/catalyst.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/cat-select/cat-select.d.ts +1 -1
- package/dist/types/components.d.ts +8 -8
- package/package.json +2 -2
- package/dist/catalyst/p-89c24fb5.entry.js.map +0 -1
|
@@ -11967,10 +11967,6 @@ const CatSelect = class {
|
|
|
11967
11967
|
* The available options for the input.
|
|
11968
11968
|
*/
|
|
11969
11969
|
this.choices = [];
|
|
11970
|
-
/**
|
|
11971
|
-
* The pre-selected items for the input.
|
|
11972
|
-
*/
|
|
11973
|
-
this.items = [];
|
|
11974
11970
|
/**
|
|
11975
11971
|
* Disable the select.
|
|
11976
11972
|
*/
|
|
@@ -12060,8 +12056,9 @@ const CatSelect = class {
|
|
|
12060
12056
|
return (h(Host, null, h("select", { ref: el => (this.selectElement = el), multiple: this.multiple, disabled: this.disabled })));
|
|
12061
12057
|
}
|
|
12062
12058
|
init() {
|
|
12059
|
+
const value = this.value || [];
|
|
12063
12060
|
const config = {
|
|
12064
|
-
items:
|
|
12061
|
+
items: Array.isArray(value) ? value : [value],
|
|
12065
12062
|
removeItemButton: true,
|
|
12066
12063
|
duplicateItemsAllowed: false,
|
|
12067
12064
|
delimiter: '',
|
|
@@ -12142,8 +12139,9 @@ const CatSelect = class {
|
|
|
12142
12139
|
this.choice.setChoices(this.choices);
|
|
12143
12140
|
}
|
|
12144
12141
|
onChange() {
|
|
12145
|
-
var _a;
|
|
12146
|
-
this.
|
|
12142
|
+
var _a, _b;
|
|
12143
|
+
this.value = (_a = this.choice) === null || _a === void 0 ? void 0 : _a.getValue();
|
|
12144
|
+
this.catChange.emit((_b = this.choice) === null || _b === void 0 ? void 0 : _b.getValue());
|
|
12147
12145
|
if (this.multiple) {
|
|
12148
12146
|
this.updateRemoveItemButtonVisibility();
|
|
12149
12147
|
}
|