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