@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.
@@ -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: this.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.catChange.emit((_a = this.choice) === null || _a === void 0 ? void 0 : _a.getValue());
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
  }