@ardium-ui/ui 5.0.0-alpha.19 → 5.0.0-alpha.20
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.
|
@@ -14012,7 +14012,13 @@ class ArdiumTabComponent {
|
|
|
14012
14012
|
this.focused = signal(false);
|
|
14013
14013
|
this._label = input(null, { alias: 'label' });
|
|
14014
14014
|
this.label = computed(() => this._label() ?? this.tabId());
|
|
14015
|
-
this.
|
|
14015
|
+
this._isTabIdInitialized = false;
|
|
14016
|
+
this.tabId = input.required({
|
|
14017
|
+
transform: v => {
|
|
14018
|
+
this._isTabIdInitialized = true;
|
|
14019
|
+
return v;
|
|
14020
|
+
},
|
|
14021
|
+
});
|
|
14016
14022
|
this.focusEvent = output({ alias: 'focus' });
|
|
14017
14023
|
this.blurEvent = output({ alias: 'blur' });
|
|
14018
14024
|
this.selectedChange = output();
|
|
@@ -14121,13 +14127,13 @@ class ArdiumTabberComponent {
|
|
|
14121
14127
|
if (changes['selectedTabId']) {
|
|
14122
14128
|
const newTabId = changes['selectedTabId'].currentValue;
|
|
14123
14129
|
if (newTabId !== null) {
|
|
14124
|
-
const newTab = this.tabs().find(tab => tab.tabId() === newTabId);
|
|
14130
|
+
const newTab = this.tabs().find(tab => tab._isTabIdInitialized && tab.tabId() === newTabId);
|
|
14125
14131
|
if (!newTab) {
|
|
14126
14132
|
console.error(`ARD-NF6000: Trying to select a tab with id '${newTabId}' that does not exist.`);
|
|
14127
14133
|
return;
|
|
14128
14134
|
}
|
|
14129
14135
|
const oldTabId = changes['selectedTabId'].previousValue;
|
|
14130
|
-
const oldTab = this.tabs().find(tab => tab.tabId() === oldTabId);
|
|
14136
|
+
const oldTab = this.tabs().find(tab => tab._isTabIdInitialized && tab.tabId() === oldTabId);
|
|
14131
14137
|
if (oldTab)
|
|
14132
14138
|
this._unselectSpecificTab(oldTab);
|
|
14133
14139
|
this._selectNewTab(newTab);
|