@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.
@@ -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: '7a34fd50ed725aac1cd6a36125aad1fb044203e9' });
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
- this.activate(tab);
13261
+ if (!tab.noActive) {
13262
+ this.activate(tab);
13263
+ }
13261
13264
  }
13262
13265
  }
13263
13266
  activate(tab) {