@haiilo/catalyst 10.27.0 → 10.28.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-1616736b.entry.js → p-a0e69279.entry.js} +2 -2
- package/dist/catalyst/p-a0e69279.entry.js.map +1 -0
- package/dist/cjs/cat-alert_30.cjs.entry.js +6 -3
- package/dist/cjs/cat-alert_30.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-tab/cat-tab.js +20 -1
- package/dist/collection/components/cat-tab/cat-tab.js.map +1 -1
- package/dist/collection/components/cat-tabs/cat-tabs.js +4 -2
- package/dist/collection/components/cat-tabs/cat-tabs.js.map +1 -1
- package/dist/components/cat-tab.js +3 -1
- package/dist/components/cat-tab.js.map +1 -1
- package/dist/components/cat-tabs.js +4 -2
- package/dist/components/cat-tabs.js.map +1 -1
- package/dist/esm/cat-alert_30.entry.js +6 -3
- package/dist/esm/cat-alert_30.entry.js.map +1 -1
- package/dist/esm/catalyst.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/cat-tab/cat-tab.d.ts +7 -0
- package/dist/types/components.d.ts +8 -0
- package/package.json +2 -2
- package/dist/catalyst/p-1616736b.entry.js.map +0 -1
|
@@ -13162,6 +13162,7 @@ const CatTab = class {
|
|
|
13162
13162
|
this.url = undefined;
|
|
13163
13163
|
this.urlTarget = undefined;
|
|
13164
13164
|
this.deactivated = false;
|
|
13165
|
+
this.noActive = false;
|
|
13165
13166
|
this.error = false;
|
|
13166
13167
|
this.nativeAttributes = undefined;
|
|
13167
13168
|
}
|
|
@@ -13174,7 +13175,7 @@ const CatTab = class {
|
|
|
13174
13175
|
this.catClick.emit(event);
|
|
13175
13176
|
}
|
|
13176
13177
|
render() {
|
|
13177
|
-
return index.h(index.Host, { key: '
|
|
13178
|
+
return index.h(index.Host, { key: '0db9a9f8449cb69691552450d653d86251a17954' });
|
|
13178
13179
|
}
|
|
13179
13180
|
get hostElement() { return index.getElement(this); }
|
|
13180
13181
|
};
|
|
@@ -13249,7 +13250,7 @@ const CatTabs = class {
|
|
|
13249
13250
|
}
|
|
13250
13251
|
syncTabs() {
|
|
13251
13252
|
this.tabs = Array.from(this.hostElement.querySelectorAll('cat-tab'));
|
|
13252
|
-
this.activeTab = this.activeTab || this.tabs.filter(tab => this.canActivate(tab))[0]?.id;
|
|
13253
|
+
this.activeTab = this.activeTab || this.tabs.filter(tab => this.canActivate(tab) && !tab.noActive)[0]?.id;
|
|
13253
13254
|
}
|
|
13254
13255
|
canActivate(tab) {
|
|
13255
13256
|
return !!tab && !tab.deactivated && !tab.url && tab.id !== this.activeTab;
|
|
@@ -13257,7 +13258,9 @@ const CatTabs = class {
|
|
|
13257
13258
|
click(tab) {
|
|
13258
13259
|
if (this.canActivate(tab)) {
|
|
13259
13260
|
tab.click();
|
|
13260
|
-
|
|
13261
|
+
if (!tab.noActive) {
|
|
13262
|
+
this.activate(tab);
|
|
13263
|
+
}
|
|
13261
13264
|
}
|
|
13262
13265
|
}
|
|
13263
13266
|
activate(tab) {
|