@haiilo/catalyst 10.28.1 → 10.28.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.
- package/dist/catalyst/catalyst.esm.js +1 -1
- package/dist/catalyst/{p-7428bbf0.entry.js → p-ee89e395.entry.js} +2 -2
- package/dist/catalyst/{p-7428bbf0.entry.js.map → p-ee89e395.entry.js.map} +1 -1
- package/dist/cjs/cat-alert_30.cjs.entry.js +7 -4
- package/dist/cjs/cat-alert_30.cjs.entry.js.map +1 -1
- package/dist/collection/components/cat-tabs/cat-tabs.js +7 -4
- package/dist/collection/components/cat-tabs/cat-tabs.js.map +1 -1
- package/dist/components/cat-tabs.js +7 -4
- package/dist/components/cat-tabs.js.map +1 -1
- package/dist/esm/cat-alert_30.entry.js +7 -4
- package/dist/esm/cat-alert_30.entry.js.map +1 -1
- package/dist/types/components/cat-tabs/cat-tabs.d.ts +1 -1
- package/package.json +2 -2
|
@@ -13251,9 +13251,6 @@ const CatTabs = class {
|
|
|
13251
13251
|
this.tabs = Array.from(this.hostElement.querySelectorAll('cat-tab'));
|
|
13252
13252
|
this.activeTab = this.activeTab || this.tabs.filter(tab => this.canActivate(tab) && !tab.noActive)[0]?.id;
|
|
13253
13253
|
}
|
|
13254
|
-
canActivate(tab) {
|
|
13255
|
-
return !!tab && !tab.deactivated && !tab.url && tab.id !== this.activeTab;
|
|
13256
|
-
}
|
|
13257
13254
|
click(tab) {
|
|
13258
13255
|
if (this.canActivate(tab)) {
|
|
13259
13256
|
tab.click();
|
|
@@ -13263,10 +13260,16 @@ const CatTabs = class {
|
|
|
13263
13260
|
}
|
|
13264
13261
|
}
|
|
13265
13262
|
activate(tab) {
|
|
13266
|
-
if (
|
|
13263
|
+
if (!tab) {
|
|
13264
|
+
this.activeTab = '';
|
|
13265
|
+
}
|
|
13266
|
+
else if (this.canActivate(tab)) {
|
|
13267
13267
|
this.activeTab = tab.id;
|
|
13268
13268
|
}
|
|
13269
13269
|
}
|
|
13270
|
+
canActivate(tab) {
|
|
13271
|
+
return !tab.deactivated && !tab.url && tab.id !== this.activeTab;
|
|
13272
|
+
}
|
|
13270
13273
|
static get delegatesFocus() { return true; }
|
|
13271
13274
|
get hostElement() { return index.getElement(this); }
|
|
13272
13275
|
static get watchers() { return {
|