@haiilo/catalyst 10.11.1 → 10.12.0
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-7da486bb.entry.js → p-3e87007e.entry.js} +2 -2
- package/dist/catalyst/p-3e87007e.entry.js.map +1 -0
- package/dist/cjs/cat-alert_29.cjs.entry.js +3 -2
- package/dist/cjs/cat-alert_29.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-dropdown/cat-dropdown.js +21 -2
- package/dist/collection/components/cat-dropdown/cat-dropdown.js.map +1 -1
- package/dist/components/cat-dropdown2.js +4 -2
- package/dist/components/cat-dropdown2.js.map +1 -1
- package/dist/esm/cat-alert_29.entry.js +3 -2
- package/dist/esm/cat-alert_29.entry.js.map +1 -1
- package/dist/esm/catalyst.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/cat-dropdown/cat-dropdown.d.ts +4 -0
- package/dist/types/components.d.ts +8 -0
- package/package.json +2 -2
- package/dist/catalyst/p-7da486bb.entry.js.map +0 -1
|
@@ -7953,6 +7953,7 @@ const CatDropdown = class {
|
|
|
7953
7953
|
this.noResize = false;
|
|
7954
7954
|
this.overflow = false;
|
|
7955
7955
|
this.noInitialFocus = false;
|
|
7956
|
+
this.noReturnFocus = false;
|
|
7956
7957
|
}
|
|
7957
7958
|
clickHandler(event) {
|
|
7958
7959
|
// we need to delay the initialization of the trigger until first
|
|
@@ -8011,7 +8012,7 @@ const CatDropdown = class {
|
|
|
8011
8012
|
!event.composedPath().find(el => this.hasAttribute(el, 'data-dropdown-no-close')),
|
|
8012
8013
|
onPostDeactivate: () => this.close(),
|
|
8013
8014
|
onPostActivate: () => this.catOpen.emit(),
|
|
8014
|
-
setReturnFocus: elem => this.trigger || elem,
|
|
8015
|
+
setReturnFocus: elem => (this.noReturnFocus ? false : this.trigger || elem),
|
|
8015
8016
|
isKeyForward: event => {
|
|
8016
8017
|
if ((this.arrowNavigation === 'horizontal' && event.key === 'ArrowRight') ||
|
|
8017
8018
|
(this.arrowNavigation === 'vertical' && event.key === 'ArrowDown')) {
|
|
@@ -8053,7 +8054,7 @@ const CatDropdown = class {
|
|
|
8053
8054
|
}, timeTransitionS);
|
|
8054
8055
|
}
|
|
8055
8056
|
render() {
|
|
8056
|
-
return (index.h(index.Host, { key: '
|
|
8057
|
+
return (index.h(index.Host, { key: '957334d18eeb54e13dc4f7799375fed4a7dd8633' }, index.h("slot", { key: 'd35b9f6668c6172eadfac887d917479af1d71139', name: "trigger", ref: el => (this.triggerSlot = el) }), index.h("div", { key: '1fe12d609149004507578dafd9f143100cbcd72b', id: this.contentId, class: { content: true, 'overflow-auto': !this.overflow }, ref: el => (this.content = el) }, index.h("slot", { key: 'f583e54f8084746a71743ad42aac221332742bb3', name: "content" }))));
|
|
8057
8058
|
}
|
|
8058
8059
|
get contentId() {
|
|
8059
8060
|
return `cat-dropdown-${this.id}`;
|