@haiilo/catalyst 0.15.0 → 0.15.1

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.
@@ -12941,6 +12941,7 @@ const CatSelectRemote = class {
12941
12941
  this.catOpen = index.createEvent(this, "catOpen", 7);
12942
12942
  this.catClose = index.createEvent(this, "catClose", 7);
12943
12943
  this.catChange = index.createEvent(this, "catChange", 7);
12944
+ this.catBlur = index.createEvent(this, "catBlur", 7);
12944
12945
  this.i18n = catNotification.CatI18nRegistry.getInstance();
12945
12946
  this.id = `cat-input-${nextUniqueId$4++}`;
12946
12947
  this.term$ = new Subject();
@@ -13025,12 +13026,13 @@ const CatSelectRemote = class {
13025
13026
  catNotification.loglevel.error('[A11y] Missing ARIA label on select', this);
13026
13027
  }
13027
13028
  }
13028
- onBlur() {
13029
+ onBlur(event) {
13029
13030
  if (!this.multiple && this.state.activeOptionIndex >= 0) {
13030
13031
  this.select(this.state.options[this.state.activeOptionIndex]);
13031
13032
  }
13032
13033
  this.hide();
13033
13034
  this.patchState({ activeSelectionIndex: -1 });
13035
+ this.catBlur.emit(event);
13034
13036
  }
13035
13037
  onKeyDown(event) {
13036
13038
  var _a, _b, _c, _d, _e;
@@ -13394,7 +13396,7 @@ const CatSelectRemoteTest = class {
13394
13396
  });
13395
13397
  }
13396
13398
  render() {
13397
- return (index.h(index.Host, { style: { display: 'flex', gap: '0.5rem', flexDirection: 'column' } }, index.h("cat-select-remote", { label: "Multiple Select", hint: "This is a hint!", ref: el => (this.multipleSelect = el), value: ['1'], placeholder: "Hello World", onCatChange: e => console.log('Multiple', e), multiple: true, clearable: true }, index.h("span", { slot: "hint" }, "Searching for \"no\" -", '>', " no options are returned!")), index.h("cat-select-remote", { label: "Single Select", hint: "This is a hint!", ref: el => (this.singleSelect = el), value: '1', placeholder: "Search for a country or capital", onCatChange: e => console.log('Single', e), clearable: true })));
13399
+ return (index.h(index.Host, { style: { display: 'flex', gap: '0.5rem', flexDirection: 'column' } }, index.h("cat-select-remote", { label: "Multiple Select", hint: "This is a hint!", ref: el => (this.multipleSelect = el), value: ['1'], placeholder: "Hello World", onCatChange: e => console.log('Multiple', e), onCatBlur: e => console.log('Multiple blur', e), multiple: true, clearable: true }, index.h("span", { slot: "hint" }, "Searching for \"no\" -", '>', " no options are returned!")), index.h("cat-select-remote", { label: "Single Select", hint: "This is a hint!", ref: el => (this.singleSelect = el), value: '1', placeholder: "Search for a country or capital", onCatChange: e => console.log('Single', e), onCatBlur: e => console.log('Single blur', e), clearable: true })));
13398
13400
  }
13399
13401
  };
13400
13402
  const countries = [