@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
|
@@ -11971,10 +11971,6 @@ const CatSelect = class {
|
|
|
11971
11971
|
* The available options for the input.
|
|
11972
11972
|
*/
|
|
11973
11973
|
this.choices = [];
|
|
11974
|
-
/**
|
|
11975
|
-
* The pre-selected items for the input.
|
|
11976
|
-
*/
|
|
11977
|
-
this.items = [];
|
|
11978
11974
|
/**
|
|
11979
11975
|
* Disable the select.
|
|
11980
11976
|
*/
|
|
@@ -12064,8 +12060,9 @@ const CatSelect = class {
|
|
|
12064
12060
|
return (index.h(index.Host, null, index.h("select", { ref: el => (this.selectElement = el), multiple: this.multiple, disabled: this.disabled })));
|
|
12065
12061
|
}
|
|
12066
12062
|
init() {
|
|
12063
|
+
const value = this.value || [];
|
|
12067
12064
|
const config = {
|
|
12068
|
-
items:
|
|
12065
|
+
items: Array.isArray(value) ? value : [value],
|
|
12069
12066
|
removeItemButton: true,
|
|
12070
12067
|
duplicateItemsAllowed: false,
|
|
12071
12068
|
delimiter: '',
|
|
@@ -12146,8 +12143,9 @@ const CatSelect = class {
|
|
|
12146
12143
|
this.choice.setChoices(this.choices);
|
|
12147
12144
|
}
|
|
12148
12145
|
onChange() {
|
|
12149
|
-
var _a;
|
|
12150
|
-
this.
|
|
12146
|
+
var _a, _b;
|
|
12147
|
+
this.value = (_a = this.choice) === null || _a === void 0 ? void 0 : _a.getValue();
|
|
12148
|
+
this.catChange.emit((_b = this.choice) === null || _b === void 0 ? void 0 : _b.getValue());
|
|
12151
12149
|
if (this.multiple) {
|
|
12152
12150
|
this.updateRemoveItemButtonVisibility();
|
|
12153
12151
|
}
|