@db-ux/ngx-core-components 2.1.0 → 2.1.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.
|
@@ -18,7 +18,7 @@ export declare class DBDrawer implements AfterViewInit {
|
|
|
18
18
|
close: import("@angular/core").OutputEmitterRef<any>;
|
|
19
19
|
_ref: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
20
20
|
dialogContainerRef: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
21
|
-
handleClose(event: any): void;
|
|
21
|
+
handleClose(event: any, forceClose?: boolean): void;
|
|
22
22
|
handleDialogOpen(): void;
|
|
23
23
|
constructor();
|
|
24
24
|
/**
|
|
@@ -18,7 +18,7 @@ export declare class DBHeader implements AfterViewInit {
|
|
|
18
18
|
_id: import("@angular/core").WritableSignal<string | undefined>;
|
|
19
19
|
initialized: import("@angular/core").WritableSignal<boolean>;
|
|
20
20
|
forcedToMobile: import("@angular/core").WritableSignal<boolean | undefined>;
|
|
21
|
-
handleToggle(): void;
|
|
21
|
+
handleToggle(event?: any): void;
|
|
22
22
|
handleNavigationItemClick(event: unknown): void;
|
|
23
23
|
constructor();
|
|
24
24
|
/**
|
|
@@ -180,7 +180,6 @@ const defaultProps$z = {};
|
|
|
180
180
|
class DBButton {
|
|
181
181
|
handleClick(event) {
|
|
182
182
|
if (this.click) {
|
|
183
|
-
event.stopPropagation();
|
|
184
183
|
this.click.emit(event);
|
|
185
184
|
}
|
|
186
185
|
}
|
|
@@ -760,7 +759,6 @@ const defaultProps$v = {};
|
|
|
760
759
|
class DBCard {
|
|
761
760
|
handleClick(event) {
|
|
762
761
|
if (this.click) {
|
|
763
|
-
event.stopPropagation();
|
|
764
762
|
this.click.emit(event);
|
|
765
763
|
}
|
|
766
764
|
}
|
|
@@ -978,7 +976,6 @@ class DBCheckbox {
|
|
|
978
976
|
}
|
|
979
977
|
}
|
|
980
978
|
handleChange(event) {
|
|
981
|
-
event.stopPropagation();
|
|
982
979
|
if (this.change) {
|
|
983
980
|
this.change.emit(event);
|
|
984
981
|
}
|
|
@@ -986,13 +983,11 @@ class DBCheckbox {
|
|
|
986
983
|
this.handleValidation();
|
|
987
984
|
}
|
|
988
985
|
handleBlur(event) {
|
|
989
|
-
event.stopPropagation();
|
|
990
986
|
if (this.blur) {
|
|
991
987
|
this.blur.emit(event);
|
|
992
988
|
}
|
|
993
989
|
}
|
|
994
990
|
handleFocus(event) {
|
|
995
|
-
event.stopPropagation();
|
|
996
991
|
if (this.focus) {
|
|
997
992
|
this.focus.emit(event);
|
|
998
993
|
}
|
|
@@ -1334,11 +1329,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImpo
|
|
|
1334
1329
|
|
|
1335
1330
|
const defaultProps$r = {};
|
|
1336
1331
|
class DBDrawer {
|
|
1337
|
-
handleClose(event) {
|
|
1332
|
+
handleClose(event, forceClose) {
|
|
1338
1333
|
if (event.key === "Escape") {
|
|
1339
1334
|
event.preventDefault();
|
|
1340
1335
|
}
|
|
1341
|
-
if (
|
|
1336
|
+
if (forceClose) {
|
|
1337
|
+
event.stopPropagation();
|
|
1338
|
+
}
|
|
1339
|
+
if (forceClose ||
|
|
1342
1340
|
event.key === "Escape" ||
|
|
1343
1341
|
(event.target.nodeName === "DIALOG" &&
|
|
1344
1342
|
event.type === "click" &&
|
|
@@ -1470,7 +1468,7 @@ class DBDrawer {
|
|
|
1470
1468
|
variant="ghost"
|
|
1471
1469
|
[id]="closeButtonId()"
|
|
1472
1470
|
[noText]="true"
|
|
1473
|
-
(click)="handleClose(
|
|
1471
|
+
(click)="handleClose($event, true)"
|
|
1474
1472
|
>
|
|
1475
1473
|
{{closeButtonText() ?? DEFAULT_CLOSE_BUTTON}}
|
|
1476
1474
|
</db-button>
|
|
@@ -1510,7 +1508,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImpo
|
|
|
1510
1508
|
variant="ghost"
|
|
1511
1509
|
[id]="closeButtonId()"
|
|
1512
1510
|
[noText]="true"
|
|
1513
|
-
(click)="handleClose(
|
|
1511
|
+
(click)="handleClose($event, true)"
|
|
1514
1512
|
>
|
|
1515
1513
|
{{closeButtonText() ?? DEFAULT_CLOSE_BUTTON}}
|
|
1516
1514
|
</db-button>
|
|
@@ -1694,7 +1692,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImpo
|
|
|
1694
1692
|
|
|
1695
1693
|
const defaultProps$q = {};
|
|
1696
1694
|
class DBHeader {
|
|
1697
|
-
handleToggle() {
|
|
1695
|
+
handleToggle(event) {
|
|
1696
|
+
if (event && event.stopPropagation) {
|
|
1697
|
+
event.stopPropagation();
|
|
1698
|
+
}
|
|
1698
1699
|
const open = !getBoolean(this.drawerOpen(), "drawerOpen");
|
|
1699
1700
|
if (this.toggle) {
|
|
1700
1701
|
this.toggle.emit(open);
|
|
@@ -2044,7 +2045,6 @@ class DBInput {
|
|
|
2044
2045
|
}
|
|
2045
2046
|
}
|
|
2046
2047
|
handleInput(event) {
|
|
2047
|
-
event.stopPropagation();
|
|
2048
2048
|
if (this.input) {
|
|
2049
2049
|
this.input.emit(event);
|
|
2050
2050
|
}
|
|
@@ -2052,7 +2052,6 @@ class DBInput {
|
|
|
2052
2052
|
this.handleValidation();
|
|
2053
2053
|
}
|
|
2054
2054
|
handleChange(event) {
|
|
2055
|
-
event.stopPropagation();
|
|
2056
2055
|
if (this.change) {
|
|
2057
2056
|
this.change.emit(event);
|
|
2058
2057
|
}
|
|
@@ -2060,13 +2059,11 @@ class DBInput {
|
|
|
2060
2059
|
this.handleValidation();
|
|
2061
2060
|
}
|
|
2062
2061
|
handleBlur(event) {
|
|
2063
|
-
event.stopPropagation();
|
|
2064
2062
|
if (this.blur) {
|
|
2065
2063
|
this.blur.emit(event);
|
|
2066
2064
|
}
|
|
2067
2065
|
}
|
|
2068
2066
|
handleFocus(event) {
|
|
2069
|
-
event.stopPropagation();
|
|
2070
2067
|
if (this.focus) {
|
|
2071
2068
|
this.focus.emit(event);
|
|
2072
2069
|
}
|
|
@@ -2396,7 +2393,6 @@ const defaultProps$n = {};
|
|
|
2396
2393
|
class DBLink {
|
|
2397
2394
|
handleClick(event) {
|
|
2398
2395
|
if (this.click) {
|
|
2399
|
-
event.stopPropagation();
|
|
2400
2396
|
this.click.emit(event);
|
|
2401
2397
|
}
|
|
2402
2398
|
}
|
|
@@ -2634,20 +2630,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImpo
|
|
|
2634
2630
|
const defaultProps$l = {};
|
|
2635
2631
|
class DBRadio {
|
|
2636
2632
|
handleChange(event) {
|
|
2637
|
-
event.stopPropagation();
|
|
2638
2633
|
if (this.change) {
|
|
2639
2634
|
this.change.emit(event);
|
|
2640
2635
|
}
|
|
2641
2636
|
handleFrameworkEventAngular(this, event);
|
|
2642
2637
|
}
|
|
2643
2638
|
handleBlur(event) {
|
|
2644
|
-
event.stopPropagation();
|
|
2645
2639
|
if (this.blur) {
|
|
2646
2640
|
this.blur.emit(event);
|
|
2647
2641
|
}
|
|
2648
2642
|
}
|
|
2649
2643
|
handleFocus(event) {
|
|
2650
|
-
event.stopPropagation();
|
|
2651
2644
|
if (this.focus) {
|
|
2652
2645
|
this.focus.emit(event);
|
|
2653
2646
|
}
|
|
@@ -2932,12 +2925,10 @@ class DBSelect {
|
|
|
2932
2925
|
}
|
|
2933
2926
|
handleClick(event) {
|
|
2934
2927
|
if (this.click) {
|
|
2935
|
-
event.stopPropagation();
|
|
2936
2928
|
this.click.emit(event);
|
|
2937
2929
|
}
|
|
2938
2930
|
}
|
|
2939
2931
|
handleInput(event) {
|
|
2940
|
-
event.stopPropagation();
|
|
2941
2932
|
if (this.input) {
|
|
2942
2933
|
this.input.emit(event);
|
|
2943
2934
|
}
|
|
@@ -2945,7 +2936,6 @@ class DBSelect {
|
|
|
2945
2936
|
this.handleValidation();
|
|
2946
2937
|
}
|
|
2947
2938
|
handleChange(event) {
|
|
2948
|
-
event.stopPropagation();
|
|
2949
2939
|
if (this.change) {
|
|
2950
2940
|
this.change.emit(event);
|
|
2951
2941
|
}
|
|
@@ -2953,13 +2943,11 @@ class DBSelect {
|
|
|
2953
2943
|
this.handleValidation();
|
|
2954
2944
|
}
|
|
2955
2945
|
handleBlur(event) {
|
|
2956
|
-
event.stopPropagation();
|
|
2957
2946
|
if (this.blur) {
|
|
2958
2947
|
this.blur.emit(event);
|
|
2959
2948
|
}
|
|
2960
2949
|
}
|
|
2961
2950
|
handleFocus(event) {
|
|
2962
|
-
event.stopPropagation();
|
|
2963
2951
|
if (this.focus) {
|
|
2964
2952
|
this.focus.emit(event);
|
|
2965
2953
|
}
|
|
@@ -3172,7 +3160,7 @@ class DBSelect {
|
|
|
3172
3160
|
</option>
|
|
3173
3161
|
}
|
|
3174
3162
|
</optgroup>
|
|
3175
|
-
}
|
|
3163
|
+
}@else{
|
|
3176
3164
|
<option
|
|
3177
3165
|
[value]="option.value"
|
|
3178
3166
|
[disabled]="option.disabled"
|
|
@@ -3255,7 +3243,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImpo
|
|
|
3255
3243
|
</option>
|
|
3256
3244
|
}
|
|
3257
3245
|
</optgroup>
|
|
3258
|
-
}
|
|
3246
|
+
}@else{
|
|
3259
3247
|
<option
|
|
3260
3248
|
[value]="option.value"
|
|
3261
3249
|
[disabled]="option.disabled"
|
|
@@ -3292,7 +3280,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImpo
|
|
|
3292
3280
|
const defaultProps$i = {};
|
|
3293
3281
|
class DBSwitch {
|
|
3294
3282
|
handleChange(event) {
|
|
3295
|
-
event.stopPropagation();
|
|
3296
3283
|
if (this.change) {
|
|
3297
3284
|
this.change.emit(event);
|
|
3298
3285
|
}
|
|
@@ -3301,13 +3288,11 @@ class DBSwitch {
|
|
|
3301
3288
|
handleFrameworkEventAngular(this, event, "checked");
|
|
3302
3289
|
}
|
|
3303
3290
|
handleBlur(event) {
|
|
3304
|
-
event.stopPropagation();
|
|
3305
3291
|
if (this.blur) {
|
|
3306
3292
|
this.blur.emit(event);
|
|
3307
3293
|
}
|
|
3308
3294
|
}
|
|
3309
3295
|
handleFocus(event) {
|
|
3310
|
-
event.stopPropagation();
|
|
3311
3296
|
if (this.focus) {
|
|
3312
3297
|
this.focus.emit(event);
|
|
3313
3298
|
}
|
|
@@ -4015,7 +4000,6 @@ class DBTextarea {
|
|
|
4015
4000
|
}
|
|
4016
4001
|
}
|
|
4017
4002
|
handleInput(event) {
|
|
4018
|
-
event.stopPropagation();
|
|
4019
4003
|
if (this.input) {
|
|
4020
4004
|
this.input.emit(event);
|
|
4021
4005
|
}
|
|
@@ -4023,7 +4007,6 @@ class DBTextarea {
|
|
|
4023
4007
|
this.handleValidation();
|
|
4024
4008
|
}
|
|
4025
4009
|
handleChange(event) {
|
|
4026
|
-
event.stopPropagation();
|
|
4027
4010
|
if (this.change) {
|
|
4028
4011
|
this.change.emit(event);
|
|
4029
4012
|
}
|
|
@@ -4031,13 +4014,11 @@ class DBTextarea {
|
|
|
4031
4014
|
this.handleValidation();
|
|
4032
4015
|
}
|
|
4033
4016
|
handleBlur(event) {
|
|
4034
|
-
event.stopPropagation();
|
|
4035
4017
|
if (this.blur) {
|
|
4036
4018
|
this.blur.emit(event);
|
|
4037
4019
|
}
|
|
4038
4020
|
}
|
|
4039
4021
|
handleFocus(event) {
|
|
4040
|
-
event.stopPropagation();
|
|
4041
4022
|
if (this.focus) {
|
|
4042
4023
|
this.focus.emit(event);
|
|
4043
4024
|
}
|
|
@@ -5345,6 +5326,7 @@ class DBTabs {
|
|
|
5345
5326
|
initTabs(init) {
|
|
5346
5327
|
if (this._ref()?.nativeElement) {
|
|
5347
5328
|
const tabItems = Array.from(this._ref()?.nativeElement.getElementsByClassName("db-tab-item"));
|
|
5329
|
+
const tabPanels = Array.from(this._ref()?.nativeElement.querySelectorAll(":is(:scope > .db-tab-panel, :scope > db-tab-panel > .db-tab-panel)"));
|
|
5348
5330
|
for (const tabItem of tabItems) {
|
|
5349
5331
|
const index = tabItems.indexOf(tabItem);
|
|
5350
5332
|
const label = tabItem.querySelector("label");
|
|
@@ -5353,9 +5335,11 @@ class DBTabs {
|
|
|
5353
5335
|
if (!input.id) {
|
|
5354
5336
|
const tabId = `${this._name()}-tab-${index}`;
|
|
5355
5337
|
label.setAttribute("for", tabId);
|
|
5356
|
-
input.setAttribute("aria-controls", `${this._name()}-tab-panel-${index}`);
|
|
5357
5338
|
input.id = tabId;
|
|
5358
5339
|
input.setAttribute("name", this._name());
|
|
5340
|
+
if (tabPanels.length > index) {
|
|
5341
|
+
input.setAttribute("aria-controls", `${this._name()}-tab-panel-${index}`);
|
|
5342
|
+
}
|
|
5359
5343
|
}
|
|
5360
5344
|
if (init) {
|
|
5361
5345
|
// Auto select
|
|
@@ -5369,7 +5353,6 @@ class DBTabs {
|
|
|
5369
5353
|
}
|
|
5370
5354
|
}
|
|
5371
5355
|
}
|
|
5372
|
-
const tabPanels = Array.from(this._ref()?.nativeElement.querySelectorAll(":is(:scope > .db-tab-panel, :scope > db-tab-panel > .db-tab-panel)"));
|
|
5373
5356
|
for (const panel of tabPanels) {
|
|
5374
5357
|
if (panel.id)
|
|
5375
5358
|
continue;
|