@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.
- package/dist/catalyst/catalyst.esm.js +1 -1
- package/dist/catalyst/index.cdn.js +17 -12
- package/dist/catalyst/{p-01da674e.entry.js → p-311d10a7.entry.js} +4 -4
- package/dist/catalyst/p-311d10a7.entry.js.map +1 -0
- package/dist/cjs/cat-alert_24.cjs.entry.js +4 -2
- package/dist/cjs/cat-alert_24.cjs.entry.js.map +1 -1
- package/dist/collection/components/cat-select-remote/cat-select-remote.js +21 -1
- package/dist/collection/components/cat-select-remote/cat-select-remote.js.map +1 -1
- package/dist/collection/components/cat-select-remote-test/cat-select-remote-test.js +2 -2
- package/dist/collection/components/cat-select-remote-test/cat-select-remote-test.js.map +1 -1
- package/dist/collection/index.cdn.js +17 -12
- package/dist/collection/index.js.map +1 -1
- package/dist/components/cat-select-remote-test.js +1 -1
- package/dist/components/cat-select-remote-test.js.map +1 -1
- package/dist/components/cat-select-remote2.js +3 -1
- package/dist/components/cat-select-remote2.js.map +1 -1
- package/dist/esm/cat-alert_24.entry.js +4 -2
- package/dist/esm/cat-alert_24.entry.js.map +1 -1
- package/dist/types/components/cat-select-remote/cat-select-remote.d.ts +5 -1
- package/dist/types/components.d.ts +4 -0
- package/dist/types/index.d.ts +3 -0
- package/package.json +2 -2
- package/dist/catalyst/p-01da674e.entry.js.map +0 -1
|
@@ -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 = [
|