@db-ux/ngx-core-components 3.0.1 → 3.0.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.
|
@@ -7167,22 +7167,27 @@ class DBTabs {
|
|
|
7167
7167
|
}
|
|
7168
7168
|
handleChange(event) {
|
|
7169
7169
|
event.stopPropagation();
|
|
7170
|
-
|
|
7171
|
-
|
|
7172
|
-
|
|
7173
|
-
|
|
7174
|
-
|
|
7175
|
-
|
|
7176
|
-
|
|
7177
|
-
|
|
7178
|
-
|
|
7179
|
-
|
|
7180
|
-
|
|
7170
|
+
if (event.target) {
|
|
7171
|
+
const target = event.target;
|
|
7172
|
+
const parent = target.parentElement;
|
|
7173
|
+
if (parent &&
|
|
7174
|
+
parent.parentElement &&
|
|
7175
|
+
parent.parentElement?.nodeName === "LI") {
|
|
7176
|
+
const tabItem = parent.parentElement.parentElement;
|
|
7177
|
+
if (tabItem) {
|
|
7178
|
+
const list = tabItem.parentElement;
|
|
7179
|
+
if (list) {
|
|
7180
|
+
const indices = Array.from(list.childNodes).indexOf(tabItem);
|
|
7181
|
+
if (this.indexChange) {
|
|
7182
|
+
this.indexChange.emit(indices);
|
|
7183
|
+
}
|
|
7184
|
+
if (this.tabSelect) {
|
|
7185
|
+
this.tabSelect.emit(event);
|
|
7186
|
+
}
|
|
7187
|
+
}
|
|
7188
|
+
}
|
|
7181
7189
|
}
|
|
7182
7190
|
}
|
|
7183
|
-
if (this.tabSelect) {
|
|
7184
|
-
this.tabSelect.emit(event);
|
|
7185
|
-
}
|
|
7186
7191
|
}
|
|
7187
7192
|
trackByTab0(index, tab) {
|
|
7188
7193
|
return this.name() + "tab-item" + index;
|
|
@@ -7295,6 +7300,7 @@ class DBTabs {
|
|
|
7295
7300
|
[attr.data-alignment]="alignment() ?? 'start'"
|
|
7296
7301
|
[attr.data-width]="width() ?? 'auto'"
|
|
7297
7302
|
(input)="handleChange($event)"
|
|
7303
|
+
(change)="handleChange($event)"
|
|
7298
7304
|
>
|
|
7299
7305
|
@if(showScrollLeft()){
|
|
7300
7306
|
<db-button
|
|
@@ -7350,6 +7356,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
7350
7356
|
[attr.data-alignment]="alignment() ?? 'start'"
|
|
7351
7357
|
[attr.data-width]="width() ?? 'auto'"
|
|
7352
7358
|
(input)="handleChange($event)"
|
|
7359
|
+
(change)="handleChange($event)"
|
|
7353
7360
|
>
|
|
7354
7361
|
@if(showScrollLeft()){
|
|
7355
7362
|
<db-button
|