@db-ux/ngx-core-components 4.10.2 → 4.11.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.
|
@@ -66,16 +66,21 @@ const isIOSSafari = () => {
|
|
|
66
66
|
};
|
|
67
67
|
const delay = (fn, ms) => new Promise(() => setTimeout(fn, ms));
|
|
68
68
|
/**
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
69
|
+
* Converts boolean-like inputs to "true" or "false" strings.
|
|
70
|
+
* Handles HTML-style boolean attributes where an empty string or the
|
|
71
|
+
* attribute's own name as value (e.g. noText="noText") should be treated as true.
|
|
72
|
+
* Some frameworks like Stencil do not add "true" as value for a prop
|
|
73
|
+
* if it is used in a framework like Angular e.g.: [disabled]="myDisabledProp"
|
|
74
|
+
* @param originBool Boolean or string value to convert
|
|
75
|
+
* @param propertyName The prop/attribute name — when originBool is a string equal
|
|
76
|
+
* to this name (case-insensitive), it is treated as true
|
|
72
77
|
*/
|
|
73
78
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
74
|
-
const getBooleanAsString = (originBool) => {
|
|
79
|
+
const getBooleanAsString = (originBool, propertyName) => {
|
|
75
80
|
if (originBool === undefined || originBool === null)
|
|
76
81
|
return;
|
|
77
82
|
if (typeof originBool === 'string') {
|
|
78
|
-
return String(originBool === 'true');
|
|
83
|
+
return String(originBool === '' || originBool === 'true' || propertyName?.toLowerCase() === originBool.toLowerCase());
|
|
79
84
|
}
|
|
80
85
|
return String(originBool);
|
|
81
86
|
};
|
|
@@ -83,7 +88,7 @@ const getBoolean = (originBool, propertyName) => {
|
|
|
83
88
|
if (originBool === undefined || originBool === null)
|
|
84
89
|
return;
|
|
85
90
|
if (typeof originBool === 'string') {
|
|
86
|
-
return Boolean(
|
|
91
|
+
return Boolean(originBool === '' || originBool === 'true' || propertyName?.toLowerCase() === originBool.toLowerCase());
|
|
87
92
|
}
|
|
88
93
|
return Boolean(originBool);
|
|
89
94
|
};
|
|
@@ -124,13 +129,13 @@ const getStep = (step) => {
|
|
|
124
129
|
const getInputValue = (value, inputType) => {
|
|
125
130
|
return inputType && ['number', 'range'].includes(inputType) ? getNumber(value) : value;
|
|
126
131
|
};
|
|
127
|
-
const toBool = (value) => typeof value === 'string' ? value
|
|
132
|
+
const toBool = (value) => typeof value === 'string' ? value !== 'false' : value;
|
|
128
133
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
129
134
|
const getHideProp = (show) => {
|
|
130
135
|
if (show === undefined || show === null) {
|
|
131
136
|
return undefined;
|
|
132
137
|
}
|
|
133
|
-
return getBooleanAsString(!toBool(show));
|
|
138
|
+
return getBooleanAsString(!toBool(show), 'show');
|
|
134
139
|
};
|
|
135
140
|
const stringPropVisible = (givenString, showString) => {
|
|
136
141
|
if (showString === undefined) {
|
|
@@ -170,7 +175,7 @@ const getNotificationRole = ({ semantic, role, ariaLive }) => {
|
|
|
170
175
|
}
|
|
171
176
|
};
|
|
172
177
|
|
|
173
|
-
const defaultProps$
|
|
178
|
+
const defaultProps$I = {};
|
|
174
179
|
class DBAccordionItem {
|
|
175
180
|
handleNameAttribute() {
|
|
176
181
|
if (this._ref()?.nativeElement) {
|
|
@@ -282,9 +287,9 @@ class DBAccordionItem {
|
|
|
282
287
|
}
|
|
283
288
|
}
|
|
284
289
|
ngAfterViewInit() {
|
|
290
|
+
const element = this._ref()?.nativeElement;
|
|
291
|
+
this.enableAttributePassing(element, "db-accordion-item");
|
|
285
292
|
if (typeof window !== "undefined") {
|
|
286
|
-
const element = this._ref()?.nativeElement;
|
|
287
|
-
this.enableAttributePassing(element, "db-accordion-item");
|
|
288
293
|
if (this.defaultOpen()) {
|
|
289
294
|
this._open.set(this.defaultOpen());
|
|
290
295
|
}
|
|
@@ -297,7 +302,7 @@ class DBAccordionItem {
|
|
|
297
302
|
[class]="cls('db-accordion-item', className())"
|
|
298
303
|
>
|
|
299
304
|
<details
|
|
300
|
-
[attr.aria-disabled]="getBooleanAsString(disabled())"
|
|
305
|
+
[attr.aria-disabled]="getBooleanAsString(disabled(), 'disabled')"
|
|
301
306
|
#_ref
|
|
302
307
|
[attr.name]="_name()"
|
|
303
308
|
[open]="_open()"
|
|
@@ -318,7 +323,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
318
323
|
[class]="cls('db-accordion-item', className())"
|
|
319
324
|
>
|
|
320
325
|
<details
|
|
321
|
-
[attr.aria-disabled]="getBooleanAsString(disabled())"
|
|
326
|
+
[attr.aria-disabled]="getBooleanAsString(disabled(), 'disabled')"
|
|
322
327
|
#_ref
|
|
323
328
|
[attr.name]="_name()"
|
|
324
329
|
[open]="_open()"
|
|
@@ -333,7 +338,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
333
338
|
</li> `, styles: [":host{display:contents}\n"] }]
|
|
334
339
|
}], ctorParameters: () => [], propDecorators: { defaultOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultOpen", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], headlinePlain: [{ type: i0.Input, args: [{ isSignal: true, alias: "headlinePlain", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], toggle: [{ type: i0.Output, args: ["toggle"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
335
340
|
|
|
336
|
-
const defaultProps$
|
|
341
|
+
const defaultProps$H = {};
|
|
337
342
|
class DBAccordion {
|
|
338
343
|
convertItems() {
|
|
339
344
|
try {
|
|
@@ -477,9 +482,9 @@ class DBAccordion {
|
|
|
477
482
|
}
|
|
478
483
|
}
|
|
479
484
|
ngAfterViewInit() {
|
|
485
|
+
const element = this._ref()?.nativeElement;
|
|
486
|
+
this.enableAttributePassing(element, "db-accordion");
|
|
480
487
|
if (typeof window !== "undefined") {
|
|
481
|
-
const element = this._ref()?.nativeElement;
|
|
482
|
-
this.enableAttributePassing(element, "db-accordion");
|
|
483
488
|
this.initialized.set(true);
|
|
484
489
|
this._initOpenIndexDone.set(true);
|
|
485
490
|
}
|
|
@@ -628,7 +633,7 @@ const TESTING_VIEWPORTS = [{
|
|
|
628
633
|
const DB_UX_LOCAL_STORAGE_FRAMEWORK = 'db-ux-framework';
|
|
629
634
|
const DB_UX_LOCAL_STORAGE_MODE = 'db-ux-mode';
|
|
630
635
|
|
|
631
|
-
const defaultProps$
|
|
636
|
+
const defaultProps$G = {};
|
|
632
637
|
class DBBadge {
|
|
633
638
|
constructor() {
|
|
634
639
|
this.cls = cls;
|
|
@@ -706,9 +711,9 @@ class DBBadge {
|
|
|
706
711
|
}
|
|
707
712
|
}
|
|
708
713
|
ngAfterViewInit() {
|
|
714
|
+
const element = this._ref()?.nativeElement;
|
|
715
|
+
this.enableAttributePassing(element, "db-badge");
|
|
709
716
|
if (typeof window !== "undefined") {
|
|
710
|
-
const element = this._ref()?.nativeElement;
|
|
711
|
-
this.enableAttributePassing(element, "db-badge");
|
|
712
717
|
this.initialized.set(true);
|
|
713
718
|
}
|
|
714
719
|
}
|
|
@@ -721,7 +726,7 @@ class DBBadge {
|
|
|
721
726
|
[attr.data-size]="size()"
|
|
722
727
|
[attr.data-emphasis]="emphasis()"
|
|
723
728
|
[attr.data-placement]="placement()"
|
|
724
|
-
[attr.data-wrap]="getBooleanAsString(wrap())"
|
|
729
|
+
[attr.data-wrap]="getBooleanAsString(wrap(), 'wrap')"
|
|
725
730
|
[attr.data-label]="placement()?.startsWith('corner') && (label() ?? DEFAULT_LABEL)"
|
|
726
731
|
>@if(text()){{{text()}}} <ng-content></ng-content
|
|
727
732
|
></span> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
@@ -736,7 +741,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
736
741
|
[attr.data-size]="size()"
|
|
737
742
|
[attr.data-emphasis]="emphasis()"
|
|
738
743
|
[attr.data-placement]="placement()"
|
|
739
|
-
[attr.data-wrap]="getBooleanAsString(wrap())"
|
|
744
|
+
[attr.data-wrap]="getBooleanAsString(wrap(), 'wrap')"
|
|
740
745
|
[attr.data-label]="placement()?.startsWith('corner') && (label() ?? DEFAULT_LABEL)"
|
|
741
746
|
>@if(text()){{{text()}}} <ng-content></ng-content
|
|
742
747
|
></span> `, styles: [":host{display:contents}\n"] }]
|
|
@@ -744,7 +749,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
744
749
|
|
|
745
750
|
const BadgePlacementList = ['inline', 'corner-top-left', 'corner-top-right', 'corner-center-left', 'corner-center-right', 'corner-bottom-left', 'corner-bottom-right'];
|
|
746
751
|
|
|
747
|
-
const defaultProps$
|
|
752
|
+
const defaultProps$F = {};
|
|
748
753
|
class DBBrand {
|
|
749
754
|
constructor() {
|
|
750
755
|
this.DEFAULT_ICON = DEFAULT_ICON;
|
|
@@ -796,16 +801,14 @@ class DBBrand {
|
|
|
796
801
|
}
|
|
797
802
|
}
|
|
798
803
|
ngAfterViewInit() {
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
this.enableAttributePassing(element, "db-brand");
|
|
802
|
-
}
|
|
804
|
+
const element = this._ref()?.nativeElement;
|
|
805
|
+
this.enableAttributePassing(element, "db-brand");
|
|
803
806
|
}
|
|
804
807
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBBrand, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
805
808
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: DBBrand, isStandalone: true, selector: "db-brand", inputs: { hideLogo: { classPropertyName: "hideLogo", publicName: "hideLogo", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<div
|
|
806
809
|
#_ref
|
|
807
810
|
[attr.data-icon]="hideLogo() ? 'none' : icon() ?? DEFAULT_ICON"
|
|
808
|
-
[attr.data-show-icon]="getBooleanAsString(showIcon())"
|
|
811
|
+
[attr.data-show-icon]="getBooleanAsString(showIcon(), 'showIcon')"
|
|
809
812
|
[attr.id]="id() ?? propOverrides()?.id"
|
|
810
813
|
[class]="cls('db-brand', className())"
|
|
811
814
|
>
|
|
@@ -817,7 +820,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
817
820
|
args: [{ selector: "db-brand", standalone: true, imports: [CommonModule], template: `<div
|
|
818
821
|
#_ref
|
|
819
822
|
[attr.data-icon]="hideLogo() ? 'none' : icon() ?? DEFAULT_ICON"
|
|
820
|
-
[attr.data-show-icon]="getBooleanAsString(showIcon())"
|
|
823
|
+
[attr.data-show-icon]="getBooleanAsString(showIcon(), 'showIcon')"
|
|
821
824
|
[attr.id]="id() ?? propOverrides()?.id"
|
|
822
825
|
[class]="cls('db-brand', className())"
|
|
823
826
|
>
|
|
@@ -825,7 +828,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
825
828
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
826
829
|
}], ctorParameters: () => [], propDecorators: { hideLogo: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideLogo", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
827
830
|
|
|
828
|
-
const defaultProps$
|
|
831
|
+
const defaultProps$E = {};
|
|
829
832
|
class DBButton {
|
|
830
833
|
getButtonType() {
|
|
831
834
|
if (this.type()) {
|
|
@@ -900,10 +903,8 @@ class DBButton {
|
|
|
900
903
|
}
|
|
901
904
|
}
|
|
902
905
|
ngAfterViewInit() {
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
this.enableAttributePassing(element, "db-button");
|
|
906
|
-
}
|
|
906
|
+
const element = this._ref()?.nativeElement;
|
|
907
|
+
this.enableAttributePassing(element, "db-button");
|
|
907
908
|
}
|
|
908
909
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBButton, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
909
910
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: DBButton, isStandalone: true, selector: "db-button", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, iconLeading: { classPropertyName: "iconLeading", publicName: "iconLeading", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, showIconLeading: { classPropertyName: "showIconLeading", publicName: "showIconLeading", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, iconTrailing: { classPropertyName: "iconTrailing", publicName: "iconTrailing", isSignal: true, isRequired: false, transformFunction: null }, showIconTrailing: { classPropertyName: "showIconTrailing", publicName: "showIconTrailing", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, wrap: { classPropertyName: "wrap", publicName: "wrap", isSignal: true, isRequired: false, transformFunction: null }, noText: { classPropertyName: "noText", publicName: "noText", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, form: { classPropertyName: "form", publicName: "form", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { click: "click" }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<button
|
|
@@ -913,14 +914,14 @@ class DBButton {
|
|
|
913
914
|
[attr.type]="getButtonType()"
|
|
914
915
|
[disabled]="getBoolean(disabled(), 'disabled')"
|
|
915
916
|
[attr.data-icon]="iconLeading() ?? icon()"
|
|
916
|
-
[attr.data-show-icon]="getBooleanAsString(showIconLeading()
|
|
917
|
+
[attr.data-show-icon]="getBooleanAsString(showIconLeading(), 'showIconLeading') || getBooleanAsString(showIcon(), 'showIcon')"
|
|
917
918
|
[attr.data-icon-trailing]="iconTrailing()"
|
|
918
|
-
[attr.data-show-icon-trailing]="getBooleanAsString(showIconTrailing())"
|
|
919
|
+
[attr.data-show-icon-trailing]="getBooleanAsString(showIconTrailing(), 'showIconTrailing')"
|
|
919
920
|
[attr.data-size]="size()"
|
|
920
921
|
[attr.data-width]="width()"
|
|
921
922
|
[attr.data-variant]="variant()"
|
|
922
|
-
[attr.data-wrap]="getBooleanAsString(wrap())"
|
|
923
|
-
[attr.data-no-text]="getBooleanAsString(noText())"
|
|
923
|
+
[attr.data-wrap]="getBooleanAsString(wrap(), 'wrap')"
|
|
924
|
+
[attr.data-no-text]="getBooleanAsString(noText(), 'noText')"
|
|
924
925
|
[attr.name]="name()"
|
|
925
926
|
[attr.form]="form()"
|
|
926
927
|
[attr.value]="value()"
|
|
@@ -937,14 +938,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
937
938
|
[attr.type]="getButtonType()"
|
|
938
939
|
[disabled]="getBoolean(disabled(), 'disabled')"
|
|
939
940
|
[attr.data-icon]="iconLeading() ?? icon()"
|
|
940
|
-
[attr.data-show-icon]="getBooleanAsString(showIconLeading()
|
|
941
|
+
[attr.data-show-icon]="getBooleanAsString(showIconLeading(), 'showIconLeading') || getBooleanAsString(showIcon(), 'showIcon')"
|
|
941
942
|
[attr.data-icon-trailing]="iconTrailing()"
|
|
942
|
-
[attr.data-show-icon-trailing]="getBooleanAsString(showIconTrailing())"
|
|
943
|
+
[attr.data-show-icon-trailing]="getBooleanAsString(showIconTrailing(), 'showIconTrailing')"
|
|
943
944
|
[attr.data-size]="size()"
|
|
944
945
|
[attr.data-width]="width()"
|
|
945
946
|
[attr.data-variant]="variant()"
|
|
946
|
-
[attr.data-wrap]="getBooleanAsString(wrap())"
|
|
947
|
-
[attr.data-no-text]="getBooleanAsString(noText())"
|
|
947
|
+
[attr.data-wrap]="getBooleanAsString(wrap(), 'wrap')"
|
|
948
|
+
[attr.data-no-text]="getBooleanAsString(noText(), 'noText')"
|
|
948
949
|
[attr.name]="name()"
|
|
949
950
|
[attr.form]="form()"
|
|
950
951
|
[attr.value]="value()"
|
|
@@ -956,7 +957,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
956
957
|
const ButtonVariantList = ['outlined', 'brand', 'filled', 'ghost'];
|
|
957
958
|
const ButtonTypeList = ['button', 'reset', 'submit'];
|
|
958
959
|
|
|
959
|
-
const defaultProps$
|
|
960
|
+
const defaultProps$D = {};
|
|
960
961
|
class DBCard {
|
|
961
962
|
handleClick(event) {
|
|
962
963
|
if (this.click) {
|
|
@@ -1011,10 +1012,8 @@ class DBCard {
|
|
|
1011
1012
|
}
|
|
1012
1013
|
}
|
|
1013
1014
|
ngAfterViewInit() {
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
this.enableAttributePassing(element, "db-card");
|
|
1017
|
-
}
|
|
1015
|
+
const element = this._ref()?.nativeElement;
|
|
1016
|
+
this.enableAttributePassing(element, "db-card");
|
|
1018
1017
|
}
|
|
1019
1018
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBCard, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1020
1019
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.16", type: DBCard, isStandalone: true, selector: "db-card", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, behavior: { classPropertyName: "behavior", publicName: "behavior", isSignal: true, isRequired: false, transformFunction: null }, elevationLevel: { classPropertyName: "elevationLevel", publicName: "elevationLevel", isSignal: true, isRequired: false, transformFunction: null }, spacing: { classPropertyName: "spacing", publicName: "spacing", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { click: "click" }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<div
|
|
@@ -1119,7 +1118,7 @@ const addValueResetEventListener = (element, props, resetFunction, signal) => {
|
|
|
1119
1118
|
}, signal);
|
|
1120
1119
|
};
|
|
1121
1120
|
|
|
1122
|
-
const defaultProps$
|
|
1121
|
+
const defaultProps$C = {};
|
|
1123
1122
|
class DBInfotext {
|
|
1124
1123
|
constructor() {
|
|
1125
1124
|
this.cls = cls;
|
|
@@ -1172,10 +1171,8 @@ class DBInfotext {
|
|
|
1172
1171
|
}
|
|
1173
1172
|
}
|
|
1174
1173
|
ngAfterViewInit() {
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
this.enableAttributePassing(element, "db-infotext");
|
|
1178
|
-
}
|
|
1174
|
+
const element = this._ref()?.nativeElement;
|
|
1175
|
+
this.enableAttributePassing(element, "db-infotext");
|
|
1179
1176
|
}
|
|
1180
1177
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBInfotext, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1181
1178
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: DBInfotext, isStandalone: true, selector: "db-infotext", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, semantic: { classPropertyName: "semantic", publicName: "semantic", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, wrap: { classPropertyName: "wrap", publicName: "wrap", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<span
|
|
@@ -1185,8 +1182,8 @@ class DBInfotext {
|
|
|
1185
1182
|
[attr.data-icon]="icon()"
|
|
1186
1183
|
[attr.data-semantic]="semantic()"
|
|
1187
1184
|
[attr.data-size]="size()"
|
|
1188
|
-
[attr.data-wrap]="getBooleanAsString(wrap())"
|
|
1189
|
-
[attr.data-show-icon-leading]="getBooleanAsString(showIcon() ?? true)"
|
|
1185
|
+
[attr.data-wrap]="getBooleanAsString(wrap(), 'wrap')"
|
|
1186
|
+
[attr.data-show-icon-leading]="getBooleanAsString(showIcon() ?? true, 'showIcon')"
|
|
1190
1187
|
>@if(text()){{{text()}}} <ng-content></ng-content
|
|
1191
1188
|
></span> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
1192
1189
|
}
|
|
@@ -1199,13 +1196,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
1199
1196
|
[attr.data-icon]="icon()"
|
|
1200
1197
|
[attr.data-semantic]="semantic()"
|
|
1201
1198
|
[attr.data-size]="size()"
|
|
1202
|
-
[attr.data-wrap]="getBooleanAsString(wrap())"
|
|
1203
|
-
[attr.data-show-icon-leading]="getBooleanAsString(showIcon() ?? true)"
|
|
1199
|
+
[attr.data-wrap]="getBooleanAsString(wrap(), 'wrap')"
|
|
1200
|
+
[attr.data-show-icon-leading]="getBooleanAsString(showIcon() ?? true, 'showIcon')"
|
|
1204
1201
|
>@if(text()){{{text()}}} <ng-content></ng-content
|
|
1205
1202
|
></span> `, styles: [":host{display:contents}\n"] }]
|
|
1206
1203
|
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], semantic: [{ type: i0.Input, args: [{ isSignal: true, alias: "semantic", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], wrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "wrap", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
1207
1204
|
|
|
1208
|
-
const defaultProps$
|
|
1205
|
+
const defaultProps$B = {};
|
|
1209
1206
|
class DBCheckbox {
|
|
1210
1207
|
hasValidState() {
|
|
1211
1208
|
return !!(this.validMessage() ?? this.validation() === "valid");
|
|
@@ -1452,9 +1449,9 @@ class DBCheckbox {
|
|
|
1452
1449
|
this.disabled.set(disabled);
|
|
1453
1450
|
}
|
|
1454
1451
|
ngAfterViewInit() {
|
|
1452
|
+
const element = this._ref()?.nativeElement;
|
|
1453
|
+
this.enableAttributePassing(element, "db-checkbox");
|
|
1455
1454
|
if (typeof window !== "undefined") {
|
|
1456
|
-
const element = this._ref()?.nativeElement;
|
|
1457
|
-
this.enableAttributePassing(element, "db-checkbox");
|
|
1458
1455
|
this.initialized.set(true);
|
|
1459
1456
|
this.resetIds();
|
|
1460
1457
|
this._invalidMessage.set(this.invalidMessage() || DEFAULT_INVALID_MESSAGE);
|
|
@@ -1579,7 +1576,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
1579
1576
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
1580
1577
|
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { invalidMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalidMessage", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: false }] }], showMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "showMessage", required: false }] }], indeterminate: [{ type: i0.Input, args: [{ isSignal: true, alias: "indeterminate", required: false }] }], checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }, { type: i0.Output, args: ["checkedChange"] }], validMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "validMessage", required: false }] }], validation: [{ type: i0.Input, args: [{ isSignal: true, alias: "validation", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], showRequiredAsterisk: [{ type: i0.Input, args: [{ isSignal: true, alias: "showRequiredAsterisk", required: false }] }], showLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLabel", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }, { type: i0.Output, args: ["disabledChange"] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], ariaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedBy", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], messageIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "messageIcon", required: false }] }], change: [{ type: i0.Output, args: ["change"] }], blur: [{ type: i0.Output, args: ["blur"] }], focus: [{ type: i0.Output, args: ["focus"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
1581
1578
|
|
|
1582
|
-
const defaultProps$
|
|
1579
|
+
const defaultProps$A = {};
|
|
1583
1580
|
class DBCustomButton {
|
|
1584
1581
|
constructor() {
|
|
1585
1582
|
this.cls = cls;
|
|
@@ -1636,10 +1633,8 @@ class DBCustomButton {
|
|
|
1636
1633
|
}
|
|
1637
1634
|
}
|
|
1638
1635
|
ngAfterViewInit() {
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
this.enableAttributePassing(element, "db-custom-button");
|
|
1642
|
-
}
|
|
1636
|
+
const element = this._ref()?.nativeElement;
|
|
1637
|
+
this.enableAttributePassing(element, "db-custom-button");
|
|
1643
1638
|
}
|
|
1644
1639
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBCustomButton, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1645
1640
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.16", type: DBCustomButton, isStandalone: true, selector: "db-custom-button", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, iconLeading: { classPropertyName: "iconLeading", publicName: "iconLeading", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, showIconLeading: { classPropertyName: "showIconLeading", publicName: "showIconLeading", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, iconTrailing: { classPropertyName: "iconTrailing", publicName: "iconTrailing", isSignal: true, isRequired: false, transformFunction: null }, showIconTrailing: { classPropertyName: "showIconTrailing", publicName: "showIconTrailing", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, noText: { classPropertyName: "noText", publicName: "noText", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<div
|
|
@@ -1647,13 +1642,13 @@ class DBCustomButton {
|
|
|
1647
1642
|
[attr.id]="id() ?? propOverrides()?.id"
|
|
1648
1643
|
[class]="cls('db-custom-button', className())"
|
|
1649
1644
|
[attr.data-icon]="iconLeading() ?? icon()"
|
|
1650
|
-
[attr.data-show-icon]="getBooleanAsString(showIconLeading()
|
|
1645
|
+
[attr.data-show-icon]="getBooleanAsString(showIconLeading(), 'showIconLeading') || getBooleanAsString(showIcon(), 'showIcon')"
|
|
1651
1646
|
[attr.data-icon-trailing]="iconTrailing()"
|
|
1652
|
-
[attr.data-show-icon-trailing]="getBooleanAsString(showIconTrailing())"
|
|
1647
|
+
[attr.data-show-icon-trailing]="getBooleanAsString(showIconTrailing(), 'showIconTrailing')"
|
|
1653
1648
|
[attr.data-size]="size()"
|
|
1654
1649
|
[attr.data-width]="width()"
|
|
1655
1650
|
[attr.data-variant]="variant()"
|
|
1656
|
-
[attr.data-no-text]="getBooleanAsString(noText())"
|
|
1651
|
+
[attr.data-no-text]="getBooleanAsString(noText(), 'noText')"
|
|
1657
1652
|
>
|
|
1658
1653
|
<ng-content></ng-content>
|
|
1659
1654
|
</div> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
@@ -1665,13 +1660,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
1665
1660
|
[attr.id]="id() ?? propOverrides()?.id"
|
|
1666
1661
|
[class]="cls('db-custom-button', className())"
|
|
1667
1662
|
[attr.data-icon]="iconLeading() ?? icon()"
|
|
1668
|
-
[attr.data-show-icon]="getBooleanAsString(showIconLeading()
|
|
1663
|
+
[attr.data-show-icon]="getBooleanAsString(showIconLeading(), 'showIconLeading') || getBooleanAsString(showIcon(), 'showIcon')"
|
|
1669
1664
|
[attr.data-icon-trailing]="iconTrailing()"
|
|
1670
|
-
[attr.data-show-icon-trailing]="getBooleanAsString(showIconTrailing())"
|
|
1665
|
+
[attr.data-show-icon-trailing]="getBooleanAsString(showIconTrailing(), 'showIconTrailing')"
|
|
1671
1666
|
[attr.data-size]="size()"
|
|
1672
1667
|
[attr.data-width]="width()"
|
|
1673
1668
|
[attr.data-variant]="variant()"
|
|
1674
|
-
[attr.data-no-text]="getBooleanAsString(noText())"
|
|
1669
|
+
[attr.data-no-text]="getBooleanAsString(noText(), 'noText')"
|
|
1675
1670
|
>
|
|
1676
1671
|
<ng-content></ng-content>
|
|
1677
1672
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
@@ -2105,14 +2100,14 @@ const handleFixedPopover = (element, parent, placement) => {
|
|
|
2105
2100
|
element.dataset['correctedPlacement'] = correctedPlacement;
|
|
2106
2101
|
};
|
|
2107
2102
|
|
|
2108
|
-
const defaultProps$
|
|
2103
|
+
const defaultProps$z = { width: "fixed" };
|
|
2109
2104
|
class DBCustomSelectDropdown {
|
|
2110
2105
|
constructor() {
|
|
2111
2106
|
this.cls = cls;
|
|
2112
2107
|
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
|
|
2113
2108
|
this.propOverrides = input(...(ngDevMode ? [undefined, { debugName: "propOverrides" }] : /* istanbul ignore next */ []));
|
|
2114
2109
|
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : /* istanbul ignore next */ []));
|
|
2115
|
-
this.width = input(defaultProps$
|
|
2110
|
+
this.width = input(defaultProps$z["width"], ...(ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []));
|
|
2116
2111
|
this._ref = viewChild("_ref", ...(ngDevMode ? [{ debugName: "_ref" }] : /* istanbul ignore next */ []));
|
|
2117
2112
|
}
|
|
2118
2113
|
/**
|
|
@@ -2152,10 +2147,8 @@ class DBCustomSelectDropdown {
|
|
|
2152
2147
|
}
|
|
2153
2148
|
}
|
|
2154
2149
|
ngAfterViewInit() {
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
this.enableAttributePassing(element, "db-custom-select-dropdown");
|
|
2158
|
-
}
|
|
2150
|
+
const element = this._ref()?.nativeElement;
|
|
2151
|
+
this.enableAttributePassing(element, "db-custom-select-dropdown");
|
|
2159
2152
|
}
|
|
2160
2153
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBCustomSelectDropdown, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2161
2154
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.16", type: DBCustomSelectDropdown, isStandalone: true, selector: "db-custom-select-dropdown", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<article
|
|
@@ -2181,7 +2174,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
2181
2174
|
</article> `, styles: [":host{display:contents}\n"] }]
|
|
2182
2175
|
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
2183
2176
|
|
|
2184
|
-
const defaultProps$
|
|
2177
|
+
const defaultProps$y = {};
|
|
2185
2178
|
class DBCustomSelectListItem {
|
|
2186
2179
|
handleChange(event) {
|
|
2187
2180
|
event.stopPropagation();
|
|
@@ -2282,10 +2275,8 @@ class DBCustomSelectListItem {
|
|
|
2282
2275
|
this.disabled.set(disabled);
|
|
2283
2276
|
}
|
|
2284
2277
|
ngAfterViewInit() {
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
this.enableAttributePassing(element, "db-custom-select-list-item");
|
|
2288
|
-
}
|
|
2278
|
+
const element = this._ref()?.nativeElement;
|
|
2279
|
+
this.enableAttributePassing(element, "db-custom-select-list-item");
|
|
2289
2280
|
}
|
|
2290
2281
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBCustomSelectListItem, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2291
2282
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: DBCustomSelectListItem, isStandalone: true, selector: "db-custom-select-list-item", inputs: { isGroupTitle: { classPropertyName: "isGroupTitle", publicName: "isGroupTitle", isSignal: true, isRequired: false, transformFunction: null }, showDivider: { classPropertyName: "showDivider", publicName: "showDivider", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, groupTitle: { classPropertyName: "groupTitle", publicName: "groupTitle", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checked: "checkedChange", disabled: "disabledChange", change: "change" }, providers: [{
|
|
@@ -2299,12 +2290,12 @@ class DBCustomSelectListItem {
|
|
|
2299
2290
|
'db-checkbox': type() === 'checkbox' && !isGroupTitle(),
|
|
2300
2291
|
'db-radio': type() !== 'checkbox' && !isGroupTitle()
|
|
2301
2292
|
})"
|
|
2302
|
-
[attr.data-divider]="getBooleanAsString(hasDivider())"
|
|
2293
|
+
[attr.data-divider]="getBooleanAsString(hasDivider(), 'hasDivider')"
|
|
2303
2294
|
>
|
|
2304
2295
|
@if(!isGroupTitle()){
|
|
2305
2296
|
<label
|
|
2306
2297
|
[attr.data-icon]="type() !== 'checkbox' && icon() ? icon() : undefined"
|
|
2307
|
-
[attr.data-show-icon]="getBooleanAsString(showIcon())"
|
|
2298
|
+
[attr.data-show-icon]="getBooleanAsString(showIcon(), 'showIcon')"
|
|
2308
2299
|
[attr.data-icon-trailing]="getIconTrailing()"
|
|
2309
2300
|
><input
|
|
2310
2301
|
class="db-custom-select-list-item-checkbox"
|
|
@@ -2336,12 +2327,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
2336
2327
|
'db-checkbox': type() === 'checkbox' && !isGroupTitle(),
|
|
2337
2328
|
'db-radio': type() !== 'checkbox' && !isGroupTitle()
|
|
2338
2329
|
})"
|
|
2339
|
-
[attr.data-divider]="getBooleanAsString(hasDivider())"
|
|
2330
|
+
[attr.data-divider]="getBooleanAsString(hasDivider(), 'hasDivider')"
|
|
2340
2331
|
>
|
|
2341
2332
|
@if(!isGroupTitle()){
|
|
2342
2333
|
<label
|
|
2343
2334
|
[attr.data-icon]="type() !== 'checkbox' && icon() ? icon() : undefined"
|
|
2344
|
-
[attr.data-show-icon]="getBooleanAsString(showIcon())"
|
|
2335
|
+
[attr.data-show-icon]="getBooleanAsString(showIcon(), 'showIcon')"
|
|
2345
2336
|
[attr.data-icon-trailing]="getIconTrailing()"
|
|
2346
2337
|
><input
|
|
2347
2338
|
class="db-custom-select-list-item-checkbox"
|
|
@@ -2361,7 +2352,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
2361
2352
|
</li> `, styles: [":host{display:contents}\n"] }]
|
|
2362
2353
|
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { isGroupTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "isGroupTitle", required: false }] }], showDivider: [{ type: i0.Input, args: [{ isSignal: true, alias: "showDivider", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }, { type: i0.Output, args: ["checkedChange"] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], groupTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "groupTitle", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }, { type: i0.Output, args: ["disabledChange"] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], change: [{ type: i0.Output, args: ["change"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
2363
2354
|
|
|
2364
|
-
const defaultProps$
|
|
2355
|
+
const defaultProps$x = {};
|
|
2365
2356
|
class DBCustomSelectList {
|
|
2366
2357
|
constructor() {
|
|
2367
2358
|
this.cls = cls;
|
|
@@ -2409,10 +2400,8 @@ class DBCustomSelectList {
|
|
|
2409
2400
|
}
|
|
2410
2401
|
}
|
|
2411
2402
|
ngAfterViewInit() {
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
this.enableAttributePassing(element, "db-custom-select-list");
|
|
2415
|
-
}
|
|
2403
|
+
const element = this._ref()?.nativeElement;
|
|
2404
|
+
this.enableAttributePassing(element, "db-custom-select-list");
|
|
2416
2405
|
}
|
|
2417
2406
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBCustomSelectList, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2418
2407
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.16", type: DBCustomSelectList, isStandalone: true, selector: "db-custom-select-list", inputs: { multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<div
|
|
@@ -2442,7 +2431,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
2442
2431
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
2443
2432
|
}], ctorParameters: () => [], propDecorators: { multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
2444
2433
|
|
|
2445
|
-
const defaultProps$
|
|
2434
|
+
const defaultProps$w = {};
|
|
2446
2435
|
class DBInput {
|
|
2447
2436
|
hasValidState() {
|
|
2448
2437
|
return !!(this.validMessage() ?? this.validation() === "valid");
|
|
@@ -2734,9 +2723,9 @@ class DBInput {
|
|
|
2734
2723
|
this.disabled.set(disabled);
|
|
2735
2724
|
}
|
|
2736
2725
|
ngAfterViewInit() {
|
|
2726
|
+
const element = this._ref()?.nativeElement;
|
|
2727
|
+
this.enableAttributePassing(element, "db-input");
|
|
2737
2728
|
if (typeof window !== "undefined") {
|
|
2738
|
-
const element = this._ref()?.nativeElement;
|
|
2739
|
-
this.enableAttributePassing(element, "db-input");
|
|
2740
2729
|
this.resetIds();
|
|
2741
2730
|
this._invalidMessage.set(this.invalidMessage() || DEFAULT_INVALID_MESSAGE);
|
|
2742
2731
|
}
|
|
@@ -2753,11 +2742,11 @@ class DBInput {
|
|
|
2753
2742
|
[class]="cls('db-input', className())"
|
|
2754
2743
|
[attr.data-variant]="variant()"
|
|
2755
2744
|
[attr.data-hide-label]="getHideProp(showLabel())"
|
|
2756
|
-
[attr.data-show-icon]="getBooleanAsString(showIconLeading()
|
|
2745
|
+
[attr.data-show-icon]="getBooleanAsString(showIconLeading(), 'showIconLeading') || getBooleanAsString(showIcon(), 'showIcon')"
|
|
2757
2746
|
[attr.data-icon]="iconLeading() ?? icon()"
|
|
2758
2747
|
[attr.data-icon-trailing]="iconTrailing()"
|
|
2759
2748
|
[attr.data-hide-asterisk]="getHideProp(showRequiredAsterisk())"
|
|
2760
|
-
[attr.data-show-icon-trailing]="getBooleanAsString(showIconTrailing())"
|
|
2749
|
+
[attr.data-show-icon-trailing]="getBooleanAsString(showIconTrailing(), 'showIconTrailing')"
|
|
2761
2750
|
>
|
|
2762
2751
|
<label [attr.for]="_id()">{{label() ?? DEFAULT_LABEL}}</label>
|
|
2763
2752
|
<input
|
|
@@ -2842,11 +2831,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
2842
2831
|
[class]="cls('db-input', className())"
|
|
2843
2832
|
[attr.data-variant]="variant()"
|
|
2844
2833
|
[attr.data-hide-label]="getHideProp(showLabel())"
|
|
2845
|
-
[attr.data-show-icon]="getBooleanAsString(showIconLeading()
|
|
2834
|
+
[attr.data-show-icon]="getBooleanAsString(showIconLeading(), 'showIconLeading') || getBooleanAsString(showIcon(), 'showIcon')"
|
|
2846
2835
|
[attr.data-icon]="iconLeading() ?? icon()"
|
|
2847
2836
|
[attr.data-icon-trailing]="iconTrailing()"
|
|
2848
2837
|
[attr.data-hide-asterisk]="getHideProp(showRequiredAsterisk())"
|
|
2849
|
-
[attr.data-show-icon-trailing]="getBooleanAsString(showIconTrailing())"
|
|
2838
|
+
[attr.data-show-icon-trailing]="getBooleanAsString(showIconTrailing(), 'showIconTrailing')"
|
|
2850
2839
|
>
|
|
2851
2840
|
<label [attr.for]="_id()">{{label() ?? DEFAULT_LABEL}}</label>
|
|
2852
2841
|
<input
|
|
@@ -2922,7 +2911,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
2922
2911
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
2923
2912
|
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { invalidMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalidMessage", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], dataListId: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataListId", required: false }] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: false }] }], showMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "showMessage", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], validMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "validMessage", required: false }] }], validation: [{ type: i0.Input, args: [{ isSignal: true, alias: "validation", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], minLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "minLength", required: false }] }], maxLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxLength", required: false }] }], pattern: [{ type: i0.Input, args: [{ isSignal: true, alias: "pattern", required: false }] }], dataList: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataList", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], showLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLabel", required: false }] }], showIconLeading: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIconLeading", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], iconLeading: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconLeading", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], iconTrailing: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconTrailing", required: false }] }], showRequiredAsterisk: [{ type: i0.Input, args: [{ isSignal: true, alias: "showRequiredAsterisk", required: false }] }], showIconTrailing: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIconTrailing", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], fieldSizing: [{ type: i0.Input, args: [{ isSignal: true, alias: "fieldSizing", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], accept: [{ type: i0.Input, args: [{ isSignal: true, alias: "accept", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }, { type: i0.Output, args: ["disabledChange"] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }], maxlength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxlength", required: false }] }], minlength: [{ type: i0.Input, args: [{ isSignal: true, alias: "minlength", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], readOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readOnly", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], form: [{ type: i0.Input, args: [{ isSignal: true, alias: "form", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], autocomplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocomplete", required: false }] }], autofocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autofocus", required: false }] }], enterkeyhint: [{ type: i0.Input, args: [{ isSignal: true, alias: "enterkeyhint", required: false }] }], inputmode: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputmode", required: false }] }], ariaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedBy", required: false }] }], messageSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "messageSize", required: false }] }], messageIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "messageIcon", required: false }] }], validMessageSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "validMessageSize", required: false }] }], invalidMessageSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalidMessageSize", required: false }] }], input: [{ type: i0.Output, args: ["input"] }], change: [{ type: i0.Output, args: ["change"] }], blur: [{ type: i0.Output, args: ["blur"] }], focus: [{ type: i0.Output, args: ["focus"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
2924
2913
|
|
|
2925
|
-
const defaultProps$
|
|
2914
|
+
const defaultProps$v = {};
|
|
2926
2915
|
class DBTooltip {
|
|
2927
2916
|
handleClick(event) {
|
|
2928
2917
|
event.stopPropagation();
|
|
@@ -3084,9 +3073,9 @@ class DBTooltip {
|
|
|
3084
3073
|
}
|
|
3085
3074
|
}
|
|
3086
3075
|
ngAfterViewInit() {
|
|
3076
|
+
const element = this._ref()?.nativeElement;
|
|
3077
|
+
this.enableAttributePassing(element, "db-tooltip");
|
|
3087
3078
|
if (typeof window !== "undefined") {
|
|
3088
|
-
const element = this._ref()?.nativeElement;
|
|
3089
|
-
this.enableAttributePassing(element, "db-tooltip");
|
|
3090
3079
|
this.resetIds();
|
|
3091
3080
|
this.initialized.set(true);
|
|
3092
3081
|
}
|
|
@@ -3100,11 +3089,11 @@ class DBTooltip {
|
|
|
3100
3089
|
[class]="cls('db-tooltip', className())"
|
|
3101
3090
|
[attr.id]="_id()"
|
|
3102
3091
|
[attr.data-emphasis]="emphasis()"
|
|
3103
|
-
[attr.data-wrap]="getBooleanAsString(wrap())"
|
|
3104
|
-
[attr.data-animation]="getBooleanAsString(animation() ?? true)"
|
|
3092
|
+
[attr.data-wrap]="getBooleanAsString(wrap(), 'wrap')"
|
|
3093
|
+
[attr.data-animation]="getBooleanAsString(animation() ?? true, 'animation')"
|
|
3105
3094
|
[attr.data-delay]="delay()"
|
|
3106
3095
|
[attr.data-width]="width()"
|
|
3107
|
-
[attr.data-show-arrow]="getBooleanAsString(showArrow() ?? true)"
|
|
3096
|
+
[attr.data-show-arrow]="getBooleanAsString(showArrow() ?? true, 'showArrow')"
|
|
3108
3097
|
[attr.data-placement]="placement()"
|
|
3109
3098
|
(click)="handleClick($event)"
|
|
3110
3099
|
>@if(text()){{{text()}}} <ng-content></ng-content
|
|
@@ -3120,18 +3109,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
3120
3109
|
[class]="cls('db-tooltip', className())"
|
|
3121
3110
|
[attr.id]="_id()"
|
|
3122
3111
|
[attr.data-emphasis]="emphasis()"
|
|
3123
|
-
[attr.data-wrap]="getBooleanAsString(wrap())"
|
|
3124
|
-
[attr.data-animation]="getBooleanAsString(animation() ?? true)"
|
|
3112
|
+
[attr.data-wrap]="getBooleanAsString(wrap(), 'wrap')"
|
|
3113
|
+
[attr.data-animation]="getBooleanAsString(animation() ?? true, 'animation')"
|
|
3125
3114
|
[attr.data-delay]="delay()"
|
|
3126
3115
|
[attr.data-width]="width()"
|
|
3127
|
-
[attr.data-show-arrow]="getBooleanAsString(showArrow() ?? true)"
|
|
3116
|
+
[attr.data-show-arrow]="getBooleanAsString(showArrow() ?? true, 'showArrow')"
|
|
3128
3117
|
[attr.data-placement]="placement()"
|
|
3129
3118
|
(click)="handleClick($event)"
|
|
3130
3119
|
>@if(text()){{{text()}}} <ng-content></ng-content
|
|
3131
3120
|
></i> `, styles: [":host{display:contents}\n"] }]
|
|
3132
3121
|
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "placement", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], emphasis: [{ type: i0.Input, args: [{ isSignal: true, alias: "emphasis", required: false }] }], wrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "wrap", required: false }] }], animation: [{ type: i0.Input, args: [{ isSignal: true, alias: "animation", required: false }] }], delay: [{ type: i0.Input, args: [{ isSignal: true, alias: "delay", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], showArrow: [{ type: i0.Input, args: [{ isSignal: true, alias: "showArrow", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
3133
3122
|
|
|
3134
|
-
const defaultProps$
|
|
3123
|
+
const defaultProps$u = {};
|
|
3135
3124
|
class DBTag {
|
|
3136
3125
|
handleRemove(event) {
|
|
3137
3126
|
if (!event)
|
|
@@ -3204,10 +3193,8 @@ class DBTag {
|
|
|
3204
3193
|
}
|
|
3205
3194
|
}
|
|
3206
3195
|
ngAfterViewInit() {
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
this.enableAttributePassing(element, "db-tag");
|
|
3210
|
-
}
|
|
3196
|
+
const element = this._ref()?.nativeElement;
|
|
3197
|
+
this.enableAttributePassing(element, "db-tag");
|
|
3211
3198
|
}
|
|
3212
3199
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTag, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3213
3200
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: DBTag, isStandalone: true, selector: "db-tag", inputs: { removeButton: { classPropertyName: "removeButton", publicName: "removeButton", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, semantic: { classPropertyName: "semantic", publicName: "semantic", isSignal: true, isRequired: false, transformFunction: null }, emphasis: { classPropertyName: "emphasis", publicName: "emphasis", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, showCheckState: { classPropertyName: "showCheckState", publicName: "showCheckState", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, noText: { classPropertyName: "noText", publicName: "noText", isSignal: true, isRequired: false, transformFunction: null }, overflow: { classPropertyName: "overflow", publicName: "overflow", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, behavior: { classPropertyName: "behavior", publicName: "behavior", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { remove: "remove" }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<div
|
|
@@ -3217,10 +3204,10 @@ class DBTag {
|
|
|
3217
3204
|
[attr.data-semantic]="semantic()"
|
|
3218
3205
|
[attr.data-emphasis]="emphasis()"
|
|
3219
3206
|
[attr.data-icon]="icon()"
|
|
3220
|
-
[attr.data-show-check-state]="getBooleanAsString(showCheckState() ?? true)"
|
|
3221
|
-
[attr.data-show-icon]="getBooleanAsString(showIcon())"
|
|
3222
|
-
[attr.data-no-text]="getBooleanAsString(noText())"
|
|
3223
|
-
[attr.data-overflow]="getBooleanAsString(overflow())"
|
|
3207
|
+
[attr.data-show-check-state]="getBooleanAsString(showCheckState() ?? true, 'showCheckState')"
|
|
3208
|
+
[attr.data-show-icon]="getBooleanAsString(showIcon(), 'showIcon')"
|
|
3209
|
+
[attr.data-no-text]="getBooleanAsString(noText(), 'noText')"
|
|
3210
|
+
[attr.data-overflow]="getBooleanAsString(overflow(), 'overflow')"
|
|
3224
3211
|
>
|
|
3225
3212
|
<ng-content select="[content]"> </ng-content> @if(text()){{{text()}}}
|
|
3226
3213
|
<ng-content></ng-content>
|
|
@@ -3248,10 +3235,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
3248
3235
|
[attr.data-semantic]="semantic()"
|
|
3249
3236
|
[attr.data-emphasis]="emphasis()"
|
|
3250
3237
|
[attr.data-icon]="icon()"
|
|
3251
|
-
[attr.data-show-check-state]="getBooleanAsString(showCheckState() ?? true)"
|
|
3252
|
-
[attr.data-show-icon]="getBooleanAsString(showIcon())"
|
|
3253
|
-
[attr.data-no-text]="getBooleanAsString(noText())"
|
|
3254
|
-
[attr.data-overflow]="getBooleanAsString(overflow())"
|
|
3238
|
+
[attr.data-show-check-state]="getBooleanAsString(showCheckState() ?? true, 'showCheckState')"
|
|
3239
|
+
[attr.data-show-icon]="getBooleanAsString(showIcon(), 'showIcon')"
|
|
3240
|
+
[attr.data-no-text]="getBooleanAsString(noText(), 'noText')"
|
|
3241
|
+
[attr.data-overflow]="getBooleanAsString(overflow(), 'overflow')"
|
|
3255
3242
|
>
|
|
3256
3243
|
<ng-content select="[content]"> </ng-content> @if(text()){{{text()}}}
|
|
3257
3244
|
<ng-content></ng-content>
|
|
@@ -3271,7 +3258,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
3271
3258
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
3272
3259
|
}], ctorParameters: () => [], propDecorators: { removeButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "removeButton", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], semantic: [{ type: i0.Input, args: [{ isSignal: true, alias: "semantic", required: false }] }], emphasis: [{ type: i0.Input, args: [{ isSignal: true, alias: "emphasis", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], showCheckState: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCheckState", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], noText: [{ type: i0.Input, args: [{ isSignal: true, alias: "noText", required: false }] }], overflow: [{ type: i0.Input, args: [{ isSignal: true, alias: "overflow", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], behavior: [{ type: i0.Input, args: [{ isSignal: true, alias: "behavior", required: false }] }], remove: [{ type: i0.Output, args: ["remove"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
3273
3260
|
|
|
3274
|
-
const defaultProps$
|
|
3261
|
+
const defaultProps$t = {
|
|
3275
3262
|
clearSelectionText: "Clear selection",
|
|
3276
3263
|
showClearSelection: true,
|
|
3277
3264
|
};
|
|
@@ -3771,8 +3758,8 @@ class DBCustomSelect {
|
|
|
3771
3758
|
this.loadingText = input(...(ngDevMode ? [undefined, { debugName: "loadingText" }] : /* istanbul ignore next */ []));
|
|
3772
3759
|
this.noResultsText = input(...(ngDevMode ? [undefined, { debugName: "noResultsText" }] : /* istanbul ignore next */ []));
|
|
3773
3760
|
this.mobileCloseButtonText = input(...(ngDevMode ? [undefined, { debugName: "mobileCloseButtonText" }] : /* istanbul ignore next */ []));
|
|
3774
|
-
this.showClearSelection = input(defaultProps$
|
|
3775
|
-
this.clearSelectionText = input(defaultProps$
|
|
3761
|
+
this.showClearSelection = input(defaultProps$t["showClearSelection"], ...(ngDevMode ? [{ debugName: "showClearSelection" }] : /* istanbul ignore next */ []));
|
|
3762
|
+
this.clearSelectionText = input(defaultProps$t["clearSelectionText"], ...(ngDevMode ? [{ debugName: "clearSelectionText" }] : /* istanbul ignore next */ []));
|
|
3776
3763
|
this.placeholder = input(...(ngDevMode ? [undefined, { debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
3777
3764
|
this.messageIcon = input(...(ngDevMode ? [undefined, { debugName: "messageIcon" }] : /* istanbul ignore next */ []));
|
|
3778
3765
|
this.amountChange = output();
|
|
@@ -4144,9 +4131,9 @@ class DBCustomSelect {
|
|
|
4144
4131
|
this.disabled.set(disabled);
|
|
4145
4132
|
}
|
|
4146
4133
|
ngAfterViewInit() {
|
|
4134
|
+
const element = this._ref()?.nativeElement;
|
|
4135
|
+
this.enableAttributePassing(element, "db-custom-select");
|
|
4147
4136
|
if (typeof window !== "undefined") {
|
|
4148
|
-
const element = this._ref()?.nativeElement;
|
|
4149
|
-
this.enableAttributePassing(element, "db-custom-select");
|
|
4150
4137
|
this.resetIds();
|
|
4151
4138
|
this._invalidMessage.set(this.invalidMessage() || DEFAULT_INVALID_MESSAGE);
|
|
4152
4139
|
if (typeof window !== "undefined" && "IntersectionObserver" in window) {
|
|
@@ -4179,13 +4166,13 @@ class DBCustomSelect {
|
|
|
4179
4166
|
[attr.data-custom-validity]="_validity()"
|
|
4180
4167
|
[attr.data-width]="formFieldWidth()"
|
|
4181
4168
|
[attr.data-variant]="variant() === 'floating' && selectedType() === 'tag' && multiple() ? 'above' : variant()"
|
|
4182
|
-
[attr.data-required]="getBooleanAsString(required())"
|
|
4169
|
+
[attr.data-required]="getBooleanAsString(required(), 'required')"
|
|
4183
4170
|
[attr.data-hide-asterisk]="getHideProp(showRequiredAsterisk())"
|
|
4184
4171
|
[attr.data-placement]="placement()"
|
|
4185
4172
|
[attr.data-selected-type]="multiple() ? selectedType() : 'text'"
|
|
4186
4173
|
[attr.data-hide-label]="getHideProp(showLabel())"
|
|
4187
4174
|
[attr.data-icon]="icon()"
|
|
4188
|
-
[attr.data-show-icon]="getBooleanAsString(showIcon())"
|
|
4175
|
+
[attr.data-show-icon]="getBooleanAsString(showIcon(), 'showIcon')"
|
|
4189
4176
|
>
|
|
4190
4177
|
<label [attr.id]="_labelId()"
|
|
4191
4178
|
>{{label() ?? DEFAULT_LABEL}}<select
|
|
@@ -4221,13 +4208,13 @@ class DBCustomSelect {
|
|
|
4221
4208
|
<summary
|
|
4222
4209
|
class="db-custom-select-form-field"
|
|
4223
4210
|
[attr.id]="_summaryId()"
|
|
4224
|
-
[attr.aria-disabled]="getBooleanAsString(disabled())"
|
|
4211
|
+
[attr.aria-disabled]="getBooleanAsString(disabled(), 'disabled')"
|
|
4225
4212
|
[attr.tabIndex]="disabled() ? -1 : undefined"
|
|
4226
4213
|
[attr.aria-labelledby]="_labelId()"
|
|
4227
4214
|
>
|
|
4228
4215
|
@if(_selectedLabels()?.length){
|
|
4229
4216
|
<span
|
|
4230
|
-
[attr.data-visually-hidden]="getBooleanAsString(selectedType() === 'tag')"
|
|
4217
|
+
[attr.data-visually-hidden]="getBooleanAsString(selectedType() === 'tag', 'selectedType')"
|
|
4231
4218
|
[attr.id]="_selectedLabelsId()"
|
|
4232
4219
|
>@if(selectedPrefix()){
|
|
4233
4220
|
<span data-visually-hidden="true">{{selectedPrefix()}}</span>
|
|
@@ -4349,7 +4336,7 @@ class DBCustomSelect {
|
|
|
4349
4336
|
}
|
|
4350
4337
|
<span
|
|
4351
4338
|
class="db-custom-select-placeholder"
|
|
4352
|
-
|
|
4339
|
+
aria-hidden="true"
|
|
4353
4340
|
[attr.id]="_placeholderId()"
|
|
4354
4341
|
>{{placeholder() ?? label()}}</span
|
|
4355
4342
|
>
|
|
@@ -4405,13 +4392,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
4405
4392
|
[attr.data-custom-validity]="_validity()"
|
|
4406
4393
|
[attr.data-width]="formFieldWidth()"
|
|
4407
4394
|
[attr.data-variant]="variant() === 'floating' && selectedType() === 'tag' && multiple() ? 'above' : variant()"
|
|
4408
|
-
[attr.data-required]="getBooleanAsString(required())"
|
|
4395
|
+
[attr.data-required]="getBooleanAsString(required(), 'required')"
|
|
4409
4396
|
[attr.data-hide-asterisk]="getHideProp(showRequiredAsterisk())"
|
|
4410
4397
|
[attr.data-placement]="placement()"
|
|
4411
4398
|
[attr.data-selected-type]="multiple() ? selectedType() : 'text'"
|
|
4412
4399
|
[attr.data-hide-label]="getHideProp(showLabel())"
|
|
4413
4400
|
[attr.data-icon]="icon()"
|
|
4414
|
-
[attr.data-show-icon]="getBooleanAsString(showIcon())"
|
|
4401
|
+
[attr.data-show-icon]="getBooleanAsString(showIcon(), 'showIcon')"
|
|
4415
4402
|
>
|
|
4416
4403
|
<label [attr.id]="_labelId()"
|
|
4417
4404
|
>{{label() ?? DEFAULT_LABEL}}<select
|
|
@@ -4447,13 +4434,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
4447
4434
|
<summary
|
|
4448
4435
|
class="db-custom-select-form-field"
|
|
4449
4436
|
[attr.id]="_summaryId()"
|
|
4450
|
-
[attr.aria-disabled]="getBooleanAsString(disabled())"
|
|
4437
|
+
[attr.aria-disabled]="getBooleanAsString(disabled(), 'disabled')"
|
|
4451
4438
|
[attr.tabIndex]="disabled() ? -1 : undefined"
|
|
4452
4439
|
[attr.aria-labelledby]="_labelId()"
|
|
4453
4440
|
>
|
|
4454
4441
|
@if(_selectedLabels()?.length){
|
|
4455
4442
|
<span
|
|
4456
|
-
[attr.data-visually-hidden]="getBooleanAsString(selectedType() === 'tag')"
|
|
4443
|
+
[attr.data-visually-hidden]="getBooleanAsString(selectedType() === 'tag', 'selectedType')"
|
|
4457
4444
|
[attr.id]="_selectedLabelsId()"
|
|
4458
4445
|
>@if(selectedPrefix()){
|
|
4459
4446
|
<span data-visually-hidden="true">{{selectedPrefix()}}</span>
|
|
@@ -4575,7 +4562,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
4575
4562
|
}
|
|
4576
4563
|
<span
|
|
4577
4564
|
class="db-custom-select-placeholder"
|
|
4578
|
-
|
|
4565
|
+
aria-hidden="true"
|
|
4579
4566
|
[attr.id]="_placeholderId()"
|
|
4580
4567
|
>{{placeholder() ?? label()}}</span
|
|
4581
4568
|
>
|
|
@@ -4610,7 +4597,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
4610
4597
|
|
|
4611
4598
|
const CustomSelectDropdownWidthList = ['fixed', 'auto', 'full'];
|
|
4612
4599
|
|
|
4613
|
-
const defaultProps$
|
|
4600
|
+
const defaultProps$s = {};
|
|
4614
4601
|
class DBCustomSelectFormField {
|
|
4615
4602
|
constructor() {
|
|
4616
4603
|
this.cls = cls;
|
|
@@ -4656,10 +4643,8 @@ class DBCustomSelectFormField {
|
|
|
4656
4643
|
}
|
|
4657
4644
|
}
|
|
4658
4645
|
ngAfterViewInit() {
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
this.enableAttributePassing(element, "db-custom-select-form-field");
|
|
4662
|
-
}
|
|
4646
|
+
const element = this._ref()?.nativeElement;
|
|
4647
|
+
this.enableAttributePassing(element, "db-custom-select-form-field");
|
|
4663
4648
|
}
|
|
4664
4649
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBCustomSelectFormField, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4665
4650
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.16", type: DBCustomSelectFormField, isStandalone: true, selector: "db-custom-select-form-field", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<summary
|
|
@@ -4685,7 +4670,7 @@ const CustomSelectListItemTypeList = ['checkbox', 'radio'];
|
|
|
4685
4670
|
|
|
4686
4671
|
const SelectedTypeList = ['amount', 'text', 'tag'];
|
|
4687
4672
|
|
|
4688
|
-
const defaultProps$
|
|
4673
|
+
const defaultProps$r = {};
|
|
4689
4674
|
class DBDivider {
|
|
4690
4675
|
constructor() {
|
|
4691
4676
|
this.cls = cls;
|
|
@@ -4735,10 +4720,8 @@ class DBDivider {
|
|
|
4735
4720
|
}
|
|
4736
4721
|
}
|
|
4737
4722
|
ngAfterViewInit() {
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
this.enableAttributePassing(element, "db-divider");
|
|
4741
|
-
}
|
|
4723
|
+
const element = this._ref()?.nativeElement;
|
|
4724
|
+
this.enableAttributePassing(element, "db-divider");
|
|
4742
4725
|
}
|
|
4743
4726
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBDivider, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4744
4727
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.16", type: DBDivider, isStandalone: true, selector: "db-divider", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, margin: { classPropertyName: "margin", publicName: "margin", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, emphasis: { classPropertyName: "emphasis", publicName: "emphasis", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<div
|
|
@@ -4767,7 +4750,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
4767
4750
|
const DividerMarginList = ['none', '_'];
|
|
4768
4751
|
const DividerVariantList = ['horizontal', 'vertical'];
|
|
4769
4752
|
|
|
4770
|
-
const defaultProps$
|
|
4753
|
+
const defaultProps$q = {};
|
|
4771
4754
|
class DBDrawer {
|
|
4772
4755
|
handleClose(event, forceClose) {
|
|
4773
4756
|
if (!event)
|
|
@@ -4914,9 +4897,9 @@ class DBDrawer {
|
|
|
4914
4897
|
}
|
|
4915
4898
|
}
|
|
4916
4899
|
ngAfterViewInit() {
|
|
4900
|
+
const element = this._ref()?.nativeElement;
|
|
4901
|
+
this.enableAttributePassing(element, "db-drawer");
|
|
4917
4902
|
if (typeof window !== "undefined") {
|
|
4918
|
-
const element = this._ref()?.nativeElement;
|
|
4919
|
-
this.enableAttributePassing(element, "db-drawer");
|
|
4920
4903
|
this.handleDialogOpen();
|
|
4921
4904
|
this.initialized.set(true);
|
|
4922
4905
|
}
|
|
@@ -4939,7 +4922,7 @@ class DBDrawer {
|
|
|
4939
4922
|
[attr.data-spacing]="spacing()"
|
|
4940
4923
|
[attr.data-width]="width()"
|
|
4941
4924
|
[attr.data-direction]="direction()"
|
|
4942
|
-
[attr.data-rounded]="getBooleanAsString(rounded())"
|
|
4925
|
+
[attr.data-rounded]="getBooleanAsString(rounded(), 'rounded')"
|
|
4943
4926
|
>
|
|
4944
4927
|
<header class="db-drawer-header">
|
|
4945
4928
|
<div class="db-drawer-header-text">
|
|
@@ -4978,7 +4961,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
4978
4961
|
[attr.data-spacing]="spacing()"
|
|
4979
4962
|
[attr.data-width]="width()"
|
|
4980
4963
|
[attr.data-direction]="direction()"
|
|
4981
|
-
[attr.data-rounded]="getBooleanAsString(rounded())"
|
|
4964
|
+
[attr.data-rounded]="getBooleanAsString(rounded(), 'rounded')"
|
|
4982
4965
|
>
|
|
4983
4966
|
<header class="db-drawer-header">
|
|
4984
4967
|
<div class="db-drawer-header-text">
|
|
@@ -5175,7 +5158,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
5175
5158
|
}]
|
|
5176
5159
|
}] });
|
|
5177
5160
|
|
|
5178
|
-
const defaultProps$
|
|
5161
|
+
const defaultProps$p = {};
|
|
5179
5162
|
class DBHeader {
|
|
5180
5163
|
handleToggle(event) {
|
|
5181
5164
|
if (event && event.stopPropagation) {
|
|
@@ -5267,9 +5250,9 @@ class DBHeader {
|
|
|
5267
5250
|
}
|
|
5268
5251
|
}
|
|
5269
5252
|
ngAfterViewInit() {
|
|
5253
|
+
const element = this._ref()?.nativeElement;
|
|
5254
|
+
this.enableAttributePassing(element, "db-header");
|
|
5270
5255
|
if (typeof window !== "undefined") {
|
|
5271
|
-
const element = this._ref()?.nativeElement;
|
|
5272
|
-
this.enableAttributePassing(element, "db-header");
|
|
5273
5256
|
this.initialized.set(true);
|
|
5274
5257
|
}
|
|
5275
5258
|
}
|
|
@@ -5404,7 +5387,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
5404
5387
|
args: [SecondaryActionDirective, { read: TemplateRef }]
|
|
5405
5388
|
}], forceMobile: [{ type: i0.Input, args: [{ isSignal: true, alias: "forceMobile", required: false }] }], drawerOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "drawerOpen", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], burgerMenuLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "burgerMenuLabel", required: false }] }], closeButtonId: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeButtonId", required: false }] }], closeButtonText: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeButtonText", required: false }] }], toggle: [{ type: i0.Output, args: ["toggle"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
5406
5389
|
|
|
5407
|
-
const defaultProps$
|
|
5390
|
+
const defaultProps$o = {};
|
|
5408
5391
|
class DBIcon {
|
|
5409
5392
|
constructor() {
|
|
5410
5393
|
this.cls = cls;
|
|
@@ -5454,10 +5437,8 @@ class DBIcon {
|
|
|
5454
5437
|
}
|
|
5455
5438
|
}
|
|
5456
5439
|
ngAfterViewInit() {
|
|
5457
|
-
|
|
5458
|
-
|
|
5459
|
-
this.enableAttributePassing(element, "db-icon");
|
|
5460
|
-
}
|
|
5440
|
+
const element = this._ref()?.nativeElement;
|
|
5441
|
+
this.enableAttributePassing(element, "db-icon");
|
|
5461
5442
|
}
|
|
5462
5443
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBIcon, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5463
5444
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: DBIcon, isStandalone: true, selector: "db-icon", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, weight: { classPropertyName: "weight", publicName: "weight", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<span
|
|
@@ -5493,7 +5474,7 @@ const InputTypeList = ['color', 'date', 'datetime-local', 'email', 'file',
|
|
|
5493
5474
|
// TODO: move this to own component
|
|
5494
5475
|
'search', 'tel', 'text', 'time', 'url', 'week'];
|
|
5495
5476
|
|
|
5496
|
-
const defaultProps$
|
|
5477
|
+
const defaultProps$n = {};
|
|
5497
5478
|
class DBLink {
|
|
5498
5479
|
constructor() {
|
|
5499
5480
|
this.cls = cls;
|
|
@@ -5554,10 +5535,8 @@ class DBLink {
|
|
|
5554
5535
|
}
|
|
5555
5536
|
}
|
|
5556
5537
|
ngAfterViewInit() {
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
this.enableAttributePassing(element, "db-link");
|
|
5560
|
-
}
|
|
5538
|
+
const element = this._ref()?.nativeElement;
|
|
5539
|
+
this.enableAttributePassing(element, "db-link");
|
|
5561
5540
|
}
|
|
5562
5541
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBLink, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5563
5542
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: DBLink, isStandalone: true, selector: "db-link", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, href: { classPropertyName: "href", publicName: "href", isSignal: true, isRequired: false, transformFunction: null }, target: { classPropertyName: "target", publicName: "target", isSignal: true, isRequired: false, transformFunction: null }, rel: { classPropertyName: "rel", publicName: "rel", isSignal: true, isRequired: false, transformFunction: null }, role: { classPropertyName: "role", publicName: "role", isSignal: true, isRequired: false, transformFunction: null }, referrerpolicy: { classPropertyName: "referrerpolicy", publicName: "referrerpolicy", isSignal: true, isRequired: false, transformFunction: null }, referrerPolicy: { classPropertyName: "referrerPolicy", publicName: "referrerPolicy", isSignal: true, isRequired: false, transformFunction: null }, hreflang: { classPropertyName: "hreflang", publicName: "hreflang", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: false, transformFunction: null }, wrap: { classPropertyName: "wrap", publicName: "wrap", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<a
|
|
@@ -5570,13 +5549,13 @@ class DBLink {
|
|
|
5570
5549
|
[attr.role]="role()"
|
|
5571
5550
|
[attr.referrerPolicy]="referrerpolicy() ?? referrerPolicy()"
|
|
5572
5551
|
[attr.hrefLang]="hreflang()"
|
|
5573
|
-
[attr.aria-disabled]="getBooleanAsString(disabled())"
|
|
5552
|
+
[attr.aria-disabled]="getBooleanAsString(disabled(), 'disabled')"
|
|
5574
5553
|
[attr.tabIndex]="disabled() ? -1 : 0"
|
|
5575
5554
|
[attr.data-size]="size()"
|
|
5576
|
-
[attr.data-show-icon-trailing]="getBooleanAsString(showIcon() ?? true)"
|
|
5555
|
+
[attr.data-show-icon-trailing]="getBooleanAsString(showIcon() ?? true, 'showIcon')"
|
|
5577
5556
|
[attr.data-variant]="variant()"
|
|
5578
5557
|
[attr.data-content]="content() || 'internal'"
|
|
5579
|
-
[attr.data-wrap]="getBooleanAsString(wrap())"
|
|
5558
|
+
[attr.data-wrap]="getBooleanAsString(wrap(), 'wrap')"
|
|
5580
5559
|
>@if(text()){{{text()}}} <ng-content></ng-content
|
|
5581
5560
|
></a> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
5582
5561
|
}
|
|
@@ -5592,13 +5571,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
5592
5571
|
[attr.role]="role()"
|
|
5593
5572
|
[attr.referrerPolicy]="referrerpolicy() ?? referrerPolicy()"
|
|
5594
5573
|
[attr.hrefLang]="hreflang()"
|
|
5595
|
-
[attr.aria-disabled]="getBooleanAsString(disabled())"
|
|
5574
|
+
[attr.aria-disabled]="getBooleanAsString(disabled(), 'disabled')"
|
|
5596
5575
|
[attr.tabIndex]="disabled() ? -1 : 0"
|
|
5597
5576
|
[attr.data-size]="size()"
|
|
5598
|
-
[attr.data-show-icon-trailing]="getBooleanAsString(showIcon() ?? true)"
|
|
5577
|
+
[attr.data-show-icon-trailing]="getBooleanAsString(showIcon() ?? true, 'showIcon')"
|
|
5599
5578
|
[attr.data-variant]="variant()"
|
|
5600
5579
|
[attr.data-content]="content() || 'internal'"
|
|
5601
|
-
[attr.data-wrap]="getBooleanAsString(wrap())"
|
|
5580
|
+
[attr.data-wrap]="getBooleanAsString(wrap(), 'wrap')"
|
|
5602
5581
|
>@if(text()){{{text()}}} <ng-content></ng-content
|
|
5603
5582
|
></a> `, styles: [":host{display:contents}\n"] }]
|
|
5604
5583
|
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], href: [{ type: i0.Input, args: [{ isSignal: true, alias: "href", required: false }] }], target: [{ type: i0.Input, args: [{ isSignal: true, alias: "target", required: false }] }], rel: [{ type: i0.Input, args: [{ isSignal: true, alias: "rel", required: false }] }], role: [{ type: i0.Input, args: [{ isSignal: true, alias: "role", required: false }] }], referrerpolicy: [{ type: i0.Input, args: [{ isSignal: true, alias: "referrerpolicy", required: false }] }], referrerPolicy: [{ type: i0.Input, args: [{ isSignal: true, alias: "referrerPolicy", required: false }] }], hreflang: [{ type: i0.Input, args: [{ isSignal: true, alias: "hreflang", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], content: [{ type: i0.Input, args: [{ isSignal: true, alias: "content", required: false }] }], wrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "wrap", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
@@ -5607,7 +5586,7 @@ const LinkVariantList = ['adaptive', 'brand', 'inline'];
|
|
|
5607
5586
|
const LinkSizeList = ['medium', 'small'];
|
|
5608
5587
|
const LinkContentList = ['external', 'internal'];
|
|
5609
5588
|
|
|
5610
|
-
const defaultProps$
|
|
5589
|
+
const defaultProps$m = {};
|
|
5611
5590
|
class DBNavigation {
|
|
5612
5591
|
constructor() {
|
|
5613
5592
|
this.cls = cls;
|
|
@@ -5653,10 +5632,8 @@ class DBNavigation {
|
|
|
5653
5632
|
}
|
|
5654
5633
|
}
|
|
5655
5634
|
ngAfterViewInit() {
|
|
5656
|
-
|
|
5657
|
-
|
|
5658
|
-
this.enableAttributePassing(element, "db-navigation");
|
|
5659
|
-
}
|
|
5635
|
+
const element = this._ref()?.nativeElement;
|
|
5636
|
+
this.enableAttributePassing(element, "db-navigation");
|
|
5660
5637
|
}
|
|
5661
5638
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBNavigation, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5662
5639
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.16", type: DBNavigation, isStandalone: true, selector: "db-navigation", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<nav
|
|
@@ -5691,7 +5668,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
5691
5668
|
}]
|
|
5692
5669
|
}] });
|
|
5693
5670
|
|
|
5694
|
-
const defaultProps$
|
|
5671
|
+
const defaultProps$l = {};
|
|
5695
5672
|
class DBNavigationItem {
|
|
5696
5673
|
handleNavigationItemClick(event) {
|
|
5697
5674
|
if (event?.target?.nodeName === "A") {
|
|
@@ -5815,9 +5792,9 @@ class DBNavigationItem {
|
|
|
5815
5792
|
}
|
|
5816
5793
|
}
|
|
5817
5794
|
ngAfterViewInit() {
|
|
5795
|
+
const element = this._ref()?.nativeElement;
|
|
5796
|
+
this.enableAttributePassing(element, "db-navigation-item");
|
|
5818
5797
|
if (typeof window !== "undefined") {
|
|
5819
|
-
const element = this._ref()?.nativeElement;
|
|
5820
|
-
this.enableAttributePassing(element, "db-navigation-item");
|
|
5821
5798
|
this.initialized.set(true);
|
|
5822
5799
|
const subNavId = `sub-nav-${this.id() ?? uuid()}`;
|
|
5823
5800
|
this.subNavigationId.set(subNavId);
|
|
@@ -5834,10 +5811,10 @@ class DBNavigationItem {
|
|
|
5834
5811
|
[class]="cls('db-navigation-item', className())"
|
|
5835
5812
|
[attr.data-width]="width()"
|
|
5836
5813
|
[attr.data-icon]="icon()"
|
|
5837
|
-
[attr.data-show-icon]="getBooleanAsString(showIcon())"
|
|
5814
|
+
[attr.data-show-icon]="getBooleanAsString(showIcon(), 'showIcon')"
|
|
5838
5815
|
[attr.data-active]="active()"
|
|
5839
|
-
[attr.data-wrap]="getBooleanAsString(wrap())"
|
|
5840
|
-
[attr.aria-disabled]="getBooleanAsString(disabled())"
|
|
5816
|
+
[attr.data-wrap]="getBooleanAsString(wrap(), 'wrap')"
|
|
5817
|
+
[attr.aria-disabled]="getBooleanAsString(disabled(), 'disabled')"
|
|
5841
5818
|
>
|
|
5842
5819
|
@if(!getBoolean(hideSubNavigation(), 'hideSubNavigation') &&
|
|
5843
5820
|
hasSubNavigation()){
|
|
@@ -5889,10 +5866,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
5889
5866
|
[class]="cls('db-navigation-item', className())"
|
|
5890
5867
|
[attr.data-width]="width()"
|
|
5891
5868
|
[attr.data-icon]="icon()"
|
|
5892
|
-
[attr.data-show-icon]="getBooleanAsString(showIcon())"
|
|
5869
|
+
[attr.data-show-icon]="getBooleanAsString(showIcon(), 'showIcon')"
|
|
5893
5870
|
[attr.data-active]="active()"
|
|
5894
|
-
[attr.data-wrap]="getBooleanAsString(wrap())"
|
|
5895
|
-
[attr.aria-disabled]="getBooleanAsString(disabled())"
|
|
5871
|
+
[attr.data-wrap]="getBooleanAsString(wrap(), 'wrap')"
|
|
5872
|
+
[attr.aria-disabled]="getBooleanAsString(disabled(), 'disabled')"
|
|
5896
5873
|
>
|
|
5897
5874
|
@if(!getBoolean(hideSubNavigation(), 'hideSubNavigation') &&
|
|
5898
5875
|
hasSubNavigation()){
|
|
@@ -5937,7 +5914,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
5937
5914
|
args: [NavigationContentDirective, { read: TemplateRef }]
|
|
5938
5915
|
}], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], subNavigationExpanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "subNavigationExpanded", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], active: [{ type: i0.Input, args: [{ isSignal: true, alias: "active", required: false }] }], wrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "wrap", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], hideSubNavigation: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideSubNavigation", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], backButtonId: [{ type: i0.Input, args: [{ isSignal: true, alias: "backButtonId", required: false }] }], backButtonText: [{ type: i0.Input, args: [{ isSignal: true, alias: "backButtonText", required: false }] }], click: [{ type: i0.Output, args: ["click"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
5939
5916
|
|
|
5940
|
-
const defaultProps$
|
|
5917
|
+
const defaultProps$k = {};
|
|
5941
5918
|
class DBNotification {
|
|
5942
5919
|
handleClose(event) {
|
|
5943
5920
|
if (!event)
|
|
@@ -6013,10 +5990,8 @@ class DBNotification {
|
|
|
6013
5990
|
}
|
|
6014
5991
|
}
|
|
6015
5992
|
ngAfterViewInit() {
|
|
6016
|
-
|
|
6017
|
-
|
|
6018
|
-
this.enableAttributePassing(element, "db-notification");
|
|
6019
|
-
}
|
|
5993
|
+
const element = this._ref()?.nativeElement;
|
|
5994
|
+
this.enableAttributePassing(element, "db-notification");
|
|
6020
5995
|
}
|
|
6021
5996
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBNotification, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6022
5997
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: DBNotification, isStandalone: true, selector: "db-notification", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, semantic: { classPropertyName: "semantic", publicName: "semantic", isSignal: true, isRequired: false, transformFunction: null }, role: { classPropertyName: "role", publicName: "role", isSignal: true, isRequired: false, transformFunction: null }, ariaLive: { classPropertyName: "ariaLive", publicName: "ariaLive", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, linkVariant: { classPropertyName: "linkVariant", publicName: "linkVariant", isSignal: true, isRequired: false, transformFunction: null }, headline: { classPropertyName: "headline", publicName: "headline", isSignal: true, isRequired: false, transformFunction: null }, showHeadline: { classPropertyName: "showHeadline", publicName: "showHeadline", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, timestamp: { classPropertyName: "timestamp", publicName: "timestamp", isSignal: true, isRequired: false, transformFunction: null }, showTimestamp: { classPropertyName: "showTimestamp", publicName: "showTimestamp", isSignal: true, isRequired: false, transformFunction: null }, timestampDatetime: { classPropertyName: "timestampDatetime", publicName: "timestampDatetime", isSignal: true, isRequired: false, transformFunction: null }, closeable: { classPropertyName: "closeable", publicName: "closeable", isSignal: true, isRequired: false, transformFunction: null }, closeButtonId: { classPropertyName: "closeButtonId", publicName: "closeButtonId", isSignal: true, isRequired: false, transformFunction: null }, closeButtonText: { classPropertyName: "closeButtonText", publicName: "closeButtonText", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { close: "close" }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<div
|
|
@@ -6032,7 +6007,7 @@ class DBNotification {
|
|
|
6032
6007
|
[attr.data-semantic]="semantic()"
|
|
6033
6008
|
[attr.data-variant]="variant()"
|
|
6034
6009
|
[attr.data-icon]="getBoolean(showIcon()) !== false ? icon() : undefined"
|
|
6035
|
-
[attr.data-show-icon]="getBooleanAsString(showIcon())"
|
|
6010
|
+
[attr.data-show-icon]="getBooleanAsString(showIcon(), 'showIcon')"
|
|
6036
6011
|
[attr.data-link-variant]="linkVariant()"
|
|
6037
6012
|
>
|
|
6038
6013
|
<ng-content select="[image]"> </ng-content>
|
|
@@ -6078,7 +6053,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
6078
6053
|
[attr.data-semantic]="semantic()"
|
|
6079
6054
|
[attr.data-variant]="variant()"
|
|
6080
6055
|
[attr.data-icon]="getBoolean(showIcon()) !== false ? icon() : undefined"
|
|
6081
|
-
[attr.data-show-icon]="getBooleanAsString(showIcon())"
|
|
6056
|
+
[attr.data-show-icon]="getBooleanAsString(showIcon(), 'showIcon')"
|
|
6082
6057
|
[attr.data-link-variant]="linkVariant()"
|
|
6083
6058
|
>
|
|
6084
6059
|
<ng-content select="[image]"> </ng-content>
|
|
@@ -6114,7 +6089,7 @@ const NotificationVariantList = ['docked', 'standalone', 'overlay'];
|
|
|
6114
6089
|
const NotificationLinkVariantList = ['block', 'inline'];
|
|
6115
6090
|
const NotificationAriaLiveList = ['assertive', 'polite', 'off'];
|
|
6116
6091
|
|
|
6117
|
-
const defaultProps$
|
|
6092
|
+
const defaultProps$j = {};
|
|
6118
6093
|
class DBPage {
|
|
6119
6094
|
constructor() {
|
|
6120
6095
|
this.cls = cls;
|
|
@@ -6176,9 +6151,9 @@ class DBPage {
|
|
|
6176
6151
|
}
|
|
6177
6152
|
}
|
|
6178
6153
|
ngAfterViewInit() {
|
|
6154
|
+
const element = this._ref()?.nativeElement;
|
|
6155
|
+
this.enableAttributePassing(element, "db-page");
|
|
6179
6156
|
if (typeof window !== "undefined") {
|
|
6180
|
-
const element = this._ref()?.nativeElement;
|
|
6181
|
-
this.enableAttributePassing(element, "db-page");
|
|
6182
6157
|
this.fontsLoaded.set(!this.fadeIn());
|
|
6183
6158
|
if (document && this.fadeIn()) {
|
|
6184
6159
|
document.fonts.ready.then(() => {
|
|
@@ -6203,8 +6178,8 @@ class DBPage {
|
|
|
6203
6178
|
[attr.id]="id() ?? propOverrides()?.id"
|
|
6204
6179
|
[class]="cls('db-page', className())"
|
|
6205
6180
|
[attr.data-variant]="variant()"
|
|
6206
|
-
[attr.data-fade-in]="getBooleanAsString(fadeIn())"
|
|
6207
|
-
[attr.data-fonts-loaded]="getBooleanAsString(fontsLoaded())"
|
|
6181
|
+
[attr.data-fade-in]="getBooleanAsString(fadeIn(), 'fadeIn')"
|
|
6182
|
+
[attr.data-fonts-loaded]="getBooleanAsString(fontsLoaded(), 'fontsLoaded')"
|
|
6208
6183
|
>
|
|
6209
6184
|
<ng-content select="[header]"> </ng-content>
|
|
6210
6185
|
<main [class]="cls('db-main', mainClass())"><ng-content></ng-content></main>
|
|
@@ -6218,8 +6193,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
6218
6193
|
[attr.id]="id() ?? propOverrides()?.id"
|
|
6219
6194
|
[class]="cls('db-page', className())"
|
|
6220
6195
|
[attr.data-variant]="variant()"
|
|
6221
|
-
[attr.data-fade-in]="getBooleanAsString(fadeIn())"
|
|
6222
|
-
[attr.data-fonts-loaded]="getBooleanAsString(fontsLoaded())"
|
|
6196
|
+
[attr.data-fade-in]="getBooleanAsString(fadeIn(), 'fadeIn')"
|
|
6197
|
+
[attr.data-fonts-loaded]="getBooleanAsString(fontsLoaded(), 'fontsLoaded')"
|
|
6223
6198
|
>
|
|
6224
6199
|
<ng-content select="[header]"> </ng-content>
|
|
6225
6200
|
<main [class]="cls('db-main', mainClass())"><ng-content></ng-content></main>
|
|
@@ -6230,7 +6205,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
6230
6205
|
const PageVariantList = ['auto', 'fixed'];
|
|
6231
6206
|
const PageDocumentOverflowList = ['hidden', 'auto'];
|
|
6232
6207
|
|
|
6233
|
-
const defaultProps$
|
|
6208
|
+
const defaultProps$i = {};
|
|
6234
6209
|
class DBPopover {
|
|
6235
6210
|
handleEscape(event) {
|
|
6236
6211
|
if (!event || event.key === "Escape") {
|
|
@@ -6405,9 +6380,9 @@ class DBPopover {
|
|
|
6405
6380
|
}
|
|
6406
6381
|
}
|
|
6407
6382
|
ngAfterViewInit() {
|
|
6383
|
+
const element = this._ref()?.nativeElement;
|
|
6384
|
+
this.enableAttributePassing(element, "db-popover");
|
|
6408
6385
|
if (typeof window !== "undefined") {
|
|
6409
|
-
const element = this._ref()?.nativeElement;
|
|
6410
|
-
this.enableAttributePassing(element, "db-popover");
|
|
6411
6386
|
this.initialized.set(true);
|
|
6412
6387
|
}
|
|
6413
6388
|
}
|
|
@@ -6421,9 +6396,9 @@ class DBPopover {
|
|
|
6421
6396
|
<article
|
|
6422
6397
|
class="db-popover-content"
|
|
6423
6398
|
[attr.data-spacing]="spacing()"
|
|
6424
|
-
[attr.data-gap]="getBooleanAsString(gap())"
|
|
6425
|
-
[attr.data-animation]="getBooleanAsString(animation() ?? true)"
|
|
6426
|
-
[attr.data-open]="getBooleanAsString(open())"
|
|
6399
|
+
[attr.data-gap]="getBooleanAsString(gap(), 'gap')"
|
|
6400
|
+
[attr.data-animation]="getBooleanAsString(animation() ?? true, 'animation')"
|
|
6401
|
+
[attr.data-open]="getBooleanAsString(open(), 'open')"
|
|
6427
6402
|
[attr.data-delay]="delay()"
|
|
6428
6403
|
[attr.data-width]="width()"
|
|
6429
6404
|
[attr.data-placement]="placement()"
|
|
@@ -6443,9 +6418,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
6443
6418
|
<article
|
|
6444
6419
|
class="db-popover-content"
|
|
6445
6420
|
[attr.data-spacing]="spacing()"
|
|
6446
|
-
[attr.data-gap]="getBooleanAsString(gap())"
|
|
6447
|
-
[attr.data-animation]="getBooleanAsString(animation() ?? true)"
|
|
6448
|
-
[attr.data-open]="getBooleanAsString(open())"
|
|
6421
|
+
[attr.data-gap]="getBooleanAsString(gap(), 'gap')"
|
|
6422
|
+
[attr.data-animation]="getBooleanAsString(animation() ?? true, 'animation')"
|
|
6423
|
+
[attr.data-open]="getBooleanAsString(open(), 'open')"
|
|
6449
6424
|
[attr.data-delay]="delay()"
|
|
6450
6425
|
[attr.data-width]="width()"
|
|
6451
6426
|
[attr.data-placement]="placement()"
|
|
@@ -6455,7 +6430,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
6455
6430
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
6456
6431
|
}], ctorParameters: () => [], propDecorators: { placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "placement", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], spacing: [{ type: i0.Input, args: [{ isSignal: true, alias: "spacing", required: false }] }], gap: [{ type: i0.Input, args: [{ isSignal: true, alias: "gap", required: false }] }], animation: [{ type: i0.Input, args: [{ isSignal: true, alias: "animation", required: false }] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }], delay: [{ type: i0.Input, args: [{ isSignal: true, alias: "delay", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
6457
6432
|
|
|
6458
|
-
const defaultProps$
|
|
6433
|
+
const defaultProps$h = {};
|
|
6459
6434
|
class DBRadio {
|
|
6460
6435
|
handleInput(event, reset) {
|
|
6461
6436
|
if (this.input) {
|
|
@@ -6628,9 +6603,9 @@ class DBRadio {
|
|
|
6628
6603
|
this.disabled.set(disabled);
|
|
6629
6604
|
}
|
|
6630
6605
|
ngAfterViewInit() {
|
|
6606
|
+
const element = this._ref()?.nativeElement;
|
|
6607
|
+
this.enableAttributePassing(element, "db-radio");
|
|
6631
6608
|
if (typeof window !== "undefined") {
|
|
6632
|
-
const element = this._ref()?.nativeElement;
|
|
6633
|
-
this.enableAttributePassing(element, "db-radio");
|
|
6634
6609
|
this.initialized.set(true);
|
|
6635
6610
|
this.resetIds();
|
|
6636
6611
|
}
|
|
@@ -6698,7 +6673,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
6698
6673
|
></label> `, styles: [":host{display:contents}\n"] }]
|
|
6699
6674
|
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], showLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLabel", required: false }] }], showRequiredAsterisk: [{ type: i0.Input, args: [{ isSignal: true, alias: "showRequiredAsterisk", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], validation: [{ type: i0.Input, args: [{ isSignal: true, alias: "validation", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }, { type: i0.Output, args: ["disabledChange"] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], input: [{ type: i0.Output, args: ["input"] }], change: [{ type: i0.Output, args: ["change"] }], blur: [{ type: i0.Output, args: ["blur"] }], focus: [{ type: i0.Output, args: ["focus"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
6700
6675
|
|
|
6701
|
-
const defaultProps$
|
|
6676
|
+
const defaultProps$g = {};
|
|
6702
6677
|
class DBSection {
|
|
6703
6678
|
constructor() {
|
|
6704
6679
|
this.cls = cls;
|
|
@@ -6746,10 +6721,8 @@ class DBSection {
|
|
|
6746
6721
|
}
|
|
6747
6722
|
}
|
|
6748
6723
|
ngAfterViewInit() {
|
|
6749
|
-
|
|
6750
|
-
|
|
6751
|
-
this.enableAttributePassing(element, "db-section");
|
|
6752
|
-
}
|
|
6724
|
+
const element = this._ref()?.nativeElement;
|
|
6725
|
+
this.enableAttributePassing(element, "db-section");
|
|
6753
6726
|
}
|
|
6754
6727
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBSection, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6755
6728
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.16", type: DBSection, isStandalone: true, selector: "db-section", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, spacing: { classPropertyName: "spacing", publicName: "spacing", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<section
|
|
@@ -6775,7 +6748,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
6775
6748
|
</section> `, styles: [":host{display:contents}\n"] }]
|
|
6776
6749
|
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], spacing: [{ type: i0.Input, args: [{ isSignal: true, alias: "spacing", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
6777
6750
|
|
|
6778
|
-
const defaultProps$
|
|
6751
|
+
const defaultProps$f = {};
|
|
6779
6752
|
class DBSelect {
|
|
6780
6753
|
hasValidState() {
|
|
6781
6754
|
return !!(this.validMessage() ?? this.validation() === "valid");
|
|
@@ -7060,9 +7033,9 @@ class DBSelect {
|
|
|
7060
7033
|
this.disabled.set(disabled);
|
|
7061
7034
|
}
|
|
7062
7035
|
ngAfterViewInit() {
|
|
7036
|
+
const element = this._ref()?.nativeElement;
|
|
7037
|
+
this.enableAttributePassing(element, "db-select");
|
|
7063
7038
|
if (typeof window !== "undefined") {
|
|
7064
|
-
const element = this._ref()?.nativeElement;
|
|
7065
|
-
this.enableAttributePassing(element, "db-select");
|
|
7066
7039
|
this.initialized.set(true);
|
|
7067
7040
|
this.resetIds();
|
|
7068
7041
|
this._invalidMessage.set(this.invalidMessage() || DEFAULT_INVALID_MESSAGE);
|
|
@@ -7084,7 +7057,7 @@ class DBSelect {
|
|
|
7084
7057
|
[attr.data-hide-label]="getHideProp(showLabel())"
|
|
7085
7058
|
[attr.data-hide-asterisk]="getHideProp(showRequiredAsterisk())"
|
|
7086
7059
|
[attr.data-icon]="icon()"
|
|
7087
|
-
[attr.data-show-icon]="getBooleanAsString(showIcon())"
|
|
7060
|
+
[attr.data-show-icon]="getBooleanAsString(showIcon(), 'showIcon')"
|
|
7088
7061
|
>
|
|
7089
7062
|
<label [attr.for]="_id()">{{label() ?? DEFAULT_LABEL}}</label>
|
|
7090
7063
|
<select
|
|
@@ -7110,7 +7083,7 @@ class DBSelect {
|
|
|
7110
7083
|
<option
|
|
7111
7084
|
class="placeholder"
|
|
7112
7085
|
value=""
|
|
7113
|
-
[attr.data-show-empty-option]="getBooleanAsString(shouldShowEmptyOption())"
|
|
7086
|
+
[attr.data-show-empty-option]="getBooleanAsString(shouldShowEmptyOption(), 'showEmptyOption')"
|
|
7114
7087
|
></option>
|
|
7115
7088
|
} @if(options()?.length){ @for (option of options();track i;let i =
|
|
7116
7089
|
$index) {
|
|
@@ -7188,7 +7161,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
7188
7161
|
[attr.data-hide-label]="getHideProp(showLabel())"
|
|
7189
7162
|
[attr.data-hide-asterisk]="getHideProp(showRequiredAsterisk())"
|
|
7190
7163
|
[attr.data-icon]="icon()"
|
|
7191
|
-
[attr.data-show-icon]="getBooleanAsString(showIcon())"
|
|
7164
|
+
[attr.data-show-icon]="getBooleanAsString(showIcon(), 'showIcon')"
|
|
7192
7165
|
>
|
|
7193
7166
|
<label [attr.for]="_id()">{{label() ?? DEFAULT_LABEL}}</label>
|
|
7194
7167
|
<select
|
|
@@ -7214,7 +7187,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
7214
7187
|
<option
|
|
7215
7188
|
class="placeholder"
|
|
7216
7189
|
value=""
|
|
7217
|
-
[attr.data-show-empty-option]="getBooleanAsString(shouldShowEmptyOption())"
|
|
7190
|
+
[attr.data-show-empty-option]="getBooleanAsString(shouldShowEmptyOption(), 'showEmptyOption')"
|
|
7218
7191
|
></option>
|
|
7219
7192
|
} @if(options()?.length){ @for (option of options();track i;let i =
|
|
7220
7193
|
$index) {
|
|
@@ -7281,7 +7254,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
7281
7254
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
7282
7255
|
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { invalidMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalidMessage", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: false }] }], showMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "showMessage", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], validMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "validMessage", required: false }] }], validation: [{ type: i0.Input, args: [{ isSignal: true, alias: "validation", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], showEmptyOption: [{ type: i0.Input, args: [{ isSignal: true, alias: "showEmptyOption", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], showLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLabel", required: false }] }], showRequiredAsterisk: [{ type: i0.Input, args: [{ isSignal: true, alias: "showRequiredAsterisk", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }, { type: i0.Output, args: ["disabledChange"] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], autocomplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocomplete", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], ariaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedBy", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], messageIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "messageIcon", required: false }] }], click: [{ type: i0.Output, args: ["click"] }], input: [{ type: i0.Output, args: ["input"] }], change: [{ type: i0.Output, args: ["change"] }], blur: [{ type: i0.Output, args: ["blur"] }], focus: [{ type: i0.Output, args: ["focus"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
7283
7256
|
|
|
7284
|
-
const defaultProps$
|
|
7257
|
+
const defaultProps$e = {};
|
|
7285
7258
|
class DBStack {
|
|
7286
7259
|
constructor() {
|
|
7287
7260
|
this.cls = cls;
|
|
@@ -7334,10 +7307,8 @@ class DBStack {
|
|
|
7334
7307
|
}
|
|
7335
7308
|
}
|
|
7336
7309
|
ngAfterViewInit() {
|
|
7337
|
-
|
|
7338
|
-
|
|
7339
|
-
this.enableAttributePassing(element, "db-stack");
|
|
7340
|
-
}
|
|
7310
|
+
const element = this._ref()?.nativeElement;
|
|
7311
|
+
this.enableAttributePassing(element, "db-stack");
|
|
7341
7312
|
}
|
|
7342
7313
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBStack, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7343
7314
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.16", type: DBStack, isStandalone: true, selector: "db-stack", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, gap: { classPropertyName: "gap", publicName: "gap", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: false, transformFunction: null }, alignment: { classPropertyName: "alignment", publicName: "alignment", isSignal: true, isRequired: false, transformFunction: null }, justifyContent: { classPropertyName: "justifyContent", publicName: "justifyContent", isSignal: true, isRequired: false, transformFunction: null }, wrap: { classPropertyName: "wrap", publicName: "wrap", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<div
|
|
@@ -7349,7 +7320,7 @@ class DBStack {
|
|
|
7349
7320
|
[attr.data-direction]="direction()"
|
|
7350
7321
|
[attr.data-alignment]="alignment()"
|
|
7351
7322
|
[attr.data-justify-content]="justifyContent()"
|
|
7352
|
-
[attr.data-wrap]="getBooleanAsString(wrap())"
|
|
7323
|
+
[attr.data-wrap]="getBooleanAsString(wrap(), 'wrap')"
|
|
7353
7324
|
>
|
|
7354
7325
|
<ng-content></ng-content>
|
|
7355
7326
|
</div> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
@@ -7365,7 +7336,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
7365
7336
|
[attr.data-direction]="direction()"
|
|
7366
7337
|
[attr.data-alignment]="alignment()"
|
|
7367
7338
|
[attr.data-justify-content]="justifyContent()"
|
|
7368
|
-
[attr.data-wrap]="getBooleanAsString(wrap())"
|
|
7339
|
+
[attr.data-wrap]="getBooleanAsString(wrap(), 'wrap')"
|
|
7369
7340
|
>
|
|
7370
7341
|
<ng-content></ng-content>
|
|
7371
7342
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
@@ -7376,7 +7347,7 @@ const StackDirectionList = ['row', 'column'];
|
|
|
7376
7347
|
const StackAlignmentList = ['stretch', 'start', 'end', 'center'];
|
|
7377
7348
|
const StackJustifyContentList = ['space-between', 'start', 'end', 'center'];
|
|
7378
7349
|
|
|
7379
|
-
const defaultProps$
|
|
7350
|
+
const defaultProps$d = {};
|
|
7380
7351
|
class DBSwitch {
|
|
7381
7352
|
hasValidState() {
|
|
7382
7353
|
return !!(this.validMessage() ?? this.validation() === "valid");
|
|
@@ -7605,9 +7576,9 @@ class DBSwitch {
|
|
|
7605
7576
|
this.disabled.set(disabled);
|
|
7606
7577
|
}
|
|
7607
7578
|
ngAfterViewInit() {
|
|
7579
|
+
const element = this._ref()?.nativeElement;
|
|
7580
|
+
this.enableAttributePassing(element, "db-switch");
|
|
7608
7581
|
if (typeof window !== "undefined") {
|
|
7609
|
-
const element = this._ref()?.nativeElement;
|
|
7610
|
-
this.enableAttributePassing(element, "db-switch");
|
|
7611
7582
|
this.resetIds();
|
|
7612
7583
|
this.handleValidation();
|
|
7613
7584
|
this._invalidMessage.set(this.invalidMessage() || DEFAULT_INVALID_MESSAGE);
|
|
@@ -7622,7 +7593,7 @@ class DBSwitch {
|
|
|
7622
7593
|
useExisting: DBSwitch,
|
|
7623
7594
|
multi: true
|
|
7624
7595
|
}], viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<div
|
|
7625
|
-
[attr.data-visual-aid]="getBooleanAsString(visualAid())"
|
|
7596
|
+
[attr.data-visual-aid]="getBooleanAsString(visualAid(), 'visualAid')"
|
|
7626
7597
|
[attr.data-size]="size()"
|
|
7627
7598
|
[attr.data-hide-label]="getHideProp(showLabel())"
|
|
7628
7599
|
[attr.data-variant]="variant()"
|
|
@@ -7687,7 +7658,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
7687
7658
|
useExisting: DBSwitch,
|
|
7688
7659
|
multi: true
|
|
7689
7660
|
}], selector: "db-switch", standalone: true, imports: [CommonModule, DBInfotext], template: `<div
|
|
7690
|
-
[attr.data-visual-aid]="getBooleanAsString(visualAid())"
|
|
7661
|
+
[attr.data-visual-aid]="getBooleanAsString(visualAid(), 'visualAid')"
|
|
7691
7662
|
[attr.data-size]="size()"
|
|
7692
7663
|
[attr.data-hide-label]="getHideProp(showLabel())"
|
|
7693
7664
|
[attr.data-variant]="variant()"
|
|
@@ -7746,7 +7717,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
7746
7717
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
7747
7718
|
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { invalidMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalidMessage", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], validation: [{ type: i0.Input, args: [{ isSignal: true, alias: "validation", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: false }] }], showMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "showMessage", required: false }] }], validMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "validMessage", required: false }] }], checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }, { type: i0.Output, args: ["checkedChange"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }, { type: i0.Output, args: ["disabledChange"] }], visualAid: [{ type: i0.Input, args: [{ isSignal: true, alias: "visualAid", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], showLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLabel", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], showRequiredAsterisk: [{ type: i0.Input, args: [{ isSignal: true, alias: "showRequiredAsterisk", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], iconLeading: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconLeading", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], iconTrailing: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconTrailing", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], messageIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "messageIcon", required: false }] }], change: [{ type: i0.Output, args: ["change"] }], blur: [{ type: i0.Output, args: ["blur"] }], focus: [{ type: i0.Output, args: ["focus"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
7748
7719
|
|
|
7749
|
-
const defaultProps$
|
|
7720
|
+
const defaultProps$c = {};
|
|
7750
7721
|
class DBTabItem {
|
|
7751
7722
|
setSelectedOnChange(event) {
|
|
7752
7723
|
event.stopPropagation();
|
|
@@ -7887,9 +7858,9 @@ class DBTabItem {
|
|
|
7887
7858
|
this.disabled.set(disabled);
|
|
7888
7859
|
}
|
|
7889
7860
|
ngAfterViewInit() {
|
|
7861
|
+
const element = this._ref()?.nativeElement;
|
|
7862
|
+
this.enableAttributePassing(element, "db-tab-item");
|
|
7890
7863
|
if (typeof window !== "undefined") {
|
|
7891
|
-
const element = this._ref()?.nativeElement;
|
|
7892
|
-
this.enableAttributePassing(element, "db-tab-item");
|
|
7893
7864
|
this.boundSetSelectedOnChange.set(this.setSelectedOnChange.bind(this));
|
|
7894
7865
|
this.initialized.set(true);
|
|
7895
7866
|
}
|
|
@@ -7914,9 +7885,9 @@ class DBTabItem {
|
|
|
7914
7885
|
[attr.for]="id() ?? propOverrides()?.id"
|
|
7915
7886
|
[attr.data-icon]="iconLeading() ?? icon()"
|
|
7916
7887
|
[attr.data-icon-trailing]="iconTrailing()"
|
|
7917
|
-
[attr.data-show-icon]="getBooleanAsString(showIconLeading()
|
|
7918
|
-
[attr.data-show-icon-trailing]="getBooleanAsString(showIconTrailing())"
|
|
7919
|
-
[attr.data-no-text]="getBooleanAsString(noText())"
|
|
7888
|
+
[attr.data-show-icon]="getBooleanAsString(showIconLeading(), 'showIconLeading') || getBooleanAsString(showIcon(), 'showIcon')"
|
|
7889
|
+
[attr.data-show-icon-trailing]="getBooleanAsString(showIconTrailing(), 'showIconTrailing')"
|
|
7890
|
+
[attr.data-no-text]="getBooleanAsString(noText(), 'noText')"
|
|
7920
7891
|
><input
|
|
7921
7892
|
type="radio"
|
|
7922
7893
|
role="tab"
|
|
@@ -7942,9 +7913,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
7942
7913
|
[attr.for]="id() ?? propOverrides()?.id"
|
|
7943
7914
|
[attr.data-icon]="iconLeading() ?? icon()"
|
|
7944
7915
|
[attr.data-icon-trailing]="iconTrailing()"
|
|
7945
|
-
[attr.data-show-icon]="getBooleanAsString(showIconLeading()
|
|
7946
|
-
[attr.data-show-icon-trailing]="getBooleanAsString(showIconTrailing())"
|
|
7947
|
-
[attr.data-no-text]="getBooleanAsString(noText())"
|
|
7916
|
+
[attr.data-show-icon]="getBooleanAsString(showIconLeading(), 'showIconLeading') || getBooleanAsString(showIcon(), 'showIcon')"
|
|
7917
|
+
[attr.data-show-icon-trailing]="getBooleanAsString(showIconTrailing(), 'showIconTrailing')"
|
|
7918
|
+
[attr.data-no-text]="getBooleanAsString(noText(), 'noText')"
|
|
7948
7919
|
><input
|
|
7949
7920
|
type="radio"
|
|
7950
7921
|
role="tab"
|
|
@@ -7960,7 +7931,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
7960
7931
|
</li> `, styles: [":host{display:contents}\n"] }]
|
|
7961
7932
|
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { active: [{ type: i0.Input, args: [{ isSignal: true, alias: "active", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], iconLeading: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconLeading", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], iconTrailing: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconTrailing", required: false }] }], showIconLeading: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIconLeading", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], showIconTrailing: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIconTrailing", required: false }] }], noText: [{ type: i0.Input, args: [{ isSignal: true, alias: "noText", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }, { type: i0.Output, args: ["disabledChange"] }], checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }, { type: i0.Output, args: ["checkedChange"] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], change: [{ type: i0.Output, args: ["change"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
7962
7933
|
|
|
7963
|
-
const defaultProps$
|
|
7934
|
+
const defaultProps$b = {};
|
|
7964
7935
|
class DBTabList {
|
|
7965
7936
|
constructor() {
|
|
7966
7937
|
this.cls = cls;
|
|
@@ -8006,10 +7977,8 @@ class DBTabList {
|
|
|
8006
7977
|
}
|
|
8007
7978
|
}
|
|
8008
7979
|
ngAfterViewInit() {
|
|
8009
|
-
|
|
8010
|
-
|
|
8011
|
-
this.enableAttributePassing(element, "db-tab-list");
|
|
8012
|
-
}
|
|
7980
|
+
const element = this._ref()?.nativeElement;
|
|
7981
|
+
this.enableAttributePassing(element, "db-tab-list");
|
|
8013
7982
|
}
|
|
8014
7983
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTabList, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8015
7984
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.16", type: DBTabList, isStandalone: true, selector: "db-tab-list", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<div
|
|
@@ -8035,7 +8004,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
8035
8004
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
8036
8005
|
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
8037
8006
|
|
|
8038
|
-
const defaultProps$
|
|
8007
|
+
const defaultProps$a = {};
|
|
8039
8008
|
class DBTabPanel {
|
|
8040
8009
|
constructor() {
|
|
8041
8010
|
this.cls = cls;
|
|
@@ -8082,10 +8051,8 @@ class DBTabPanel {
|
|
|
8082
8051
|
}
|
|
8083
8052
|
}
|
|
8084
8053
|
ngAfterViewInit() {
|
|
8085
|
-
|
|
8086
|
-
|
|
8087
|
-
this.enableAttributePassing(element, "db-tab-panel");
|
|
8088
|
-
}
|
|
8054
|
+
const element = this._ref()?.nativeElement;
|
|
8055
|
+
this.enableAttributePassing(element, "db-tab-panel");
|
|
8089
8056
|
}
|
|
8090
8057
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTabPanel, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8091
8058
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: DBTabPanel, isStandalone: true, selector: "db-tab-panel", inputs: { className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<section
|
|
@@ -8109,6 +8076,988 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
8109
8076
|
</section> `, styles: [":host{display:contents}\n"] }]
|
|
8110
8077
|
}], ctorParameters: () => [], propDecorators: { className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], content: [{ type: i0.Input, args: [{ isSignal: true, alias: "content", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
8111
8078
|
|
|
8079
|
+
const defaultProps$9 = {};
|
|
8080
|
+
class DBTableDataCell {
|
|
8081
|
+
constructor() {
|
|
8082
|
+
this.cls = cls;
|
|
8083
|
+
this.getNumber = getNumber;
|
|
8084
|
+
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
|
|
8085
|
+
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : /* istanbul ignore next */ []));
|
|
8086
|
+
this.horizontalAlignment = input(...(ngDevMode ? [undefined, { debugName: "horizontalAlignment" }] : /* istanbul ignore next */ []));
|
|
8087
|
+
this.verticalAlignment = input(...(ngDevMode ? [undefined, { debugName: "verticalAlignment" }] : /* istanbul ignore next */ []));
|
|
8088
|
+
this.colSpan = input(...(ngDevMode ? [undefined, { debugName: "colSpan" }] : /* istanbul ignore next */ []));
|
|
8089
|
+
this.colspan = input(...(ngDevMode ? [undefined, { debugName: "colspan" }] : /* istanbul ignore next */ []));
|
|
8090
|
+
this.rowSpan = input(...(ngDevMode ? [undefined, { debugName: "rowSpan" }] : /* istanbul ignore next */ []));
|
|
8091
|
+
this.rowspan = input(...(ngDevMode ? [undefined, { debugName: "rowspan" }] : /* istanbul ignore next */ []));
|
|
8092
|
+
this.headers = input(...(ngDevMode ? [undefined, { debugName: "headers" }] : /* istanbul ignore next */ []));
|
|
8093
|
+
this._ref = viewChild("_ref", ...(ngDevMode ? [{ debugName: "_ref" }] : /* istanbul ignore next */ []));
|
|
8094
|
+
}
|
|
8095
|
+
/**
|
|
8096
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
8097
|
+
* @param element the ref for the component
|
|
8098
|
+
* @param customElementSelector the custom element like `my-component`
|
|
8099
|
+
*/
|
|
8100
|
+
enableAttributePassing(element, customElementSelector) {
|
|
8101
|
+
const parent = element?.closest(customElementSelector);
|
|
8102
|
+
if (element && parent) {
|
|
8103
|
+
const attributes = parent.attributes;
|
|
8104
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
8105
|
+
const attr = attributes.item(i);
|
|
8106
|
+
if (attr && attr.name !== 'data-density' &&
|
|
8107
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
8108
|
+
element.setAttribute(attr.name, attr.value);
|
|
8109
|
+
parent.removeAttribute(attr.name);
|
|
8110
|
+
}
|
|
8111
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
8112
|
+
element.setAttribute(attr.name, attr.value);
|
|
8113
|
+
parent.removeAttribute(attr.name);
|
|
8114
|
+
}
|
|
8115
|
+
else if (attr && attr.name === "class") {
|
|
8116
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
8117
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
8118
|
+
const currentClass = element.getAttribute("class");
|
|
8119
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
8120
|
+
if (isWebComponent) {
|
|
8121
|
+
// Stencil is using this class for lazy loading component
|
|
8122
|
+
parent.setAttribute("class", "hydrated");
|
|
8123
|
+
}
|
|
8124
|
+
else {
|
|
8125
|
+
parent.removeAttribute(attr.name);
|
|
8126
|
+
}
|
|
8127
|
+
}
|
|
8128
|
+
}
|
|
8129
|
+
}
|
|
8130
|
+
}
|
|
8131
|
+
ngAfterViewInit() {
|
|
8132
|
+
const element = this._ref()?.nativeElement;
|
|
8133
|
+
this.enableAttributePassing(element, "db-table-data-cell");
|
|
8134
|
+
}
|
|
8135
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTableDataCell, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8136
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.16", type: DBTableDataCell, isStandalone: true, selector: "db-table-data-cell", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, horizontalAlignment: { classPropertyName: "horizontalAlignment", publicName: "horizontalAlignment", isSignal: true, isRequired: false, transformFunction: null }, verticalAlignment: { classPropertyName: "verticalAlignment", publicName: "verticalAlignment", isSignal: true, isRequired: false, transformFunction: null }, colSpan: { classPropertyName: "colSpan", publicName: "colSpan", isSignal: true, isRequired: false, transformFunction: null }, colspan: { classPropertyName: "colspan", publicName: "colspan", isSignal: true, isRequired: false, transformFunction: null }, rowSpan: { classPropertyName: "rowSpan", publicName: "rowSpan", isSignal: true, isRequired: false, transformFunction: null }, rowspan: { classPropertyName: "rowspan", publicName: "rowspan", isSignal: true, isRequired: false, transformFunction: null }, headers: { classPropertyName: "headers", publicName: "headers", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<td
|
|
8137
|
+
#_ref
|
|
8138
|
+
[attr.id]="id()"
|
|
8139
|
+
[class]="cls('db-table-data-cell', className())"
|
|
8140
|
+
[attr.data-horizontal-alignment]="horizontalAlignment()"
|
|
8141
|
+
[attr.data-vertical-alignment]="verticalAlignment()"
|
|
8142
|
+
[attr.colSpan]="getNumber(colSpan(), colspan())"
|
|
8143
|
+
[attr.rowSpan]="getNumber(rowSpan(), rowspan())"
|
|
8144
|
+
[attr.headers]="headers()"
|
|
8145
|
+
>
|
|
8146
|
+
<ng-content></ng-content>
|
|
8147
|
+
</td> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
8148
|
+
}
|
|
8149
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTableDataCell, decorators: [{
|
|
8150
|
+
type: Component,
|
|
8151
|
+
args: [{ selector: "db-table-data-cell", standalone: true, imports: [CommonModule], template: `<td
|
|
8152
|
+
#_ref
|
|
8153
|
+
[attr.id]="id()"
|
|
8154
|
+
[class]="cls('db-table-data-cell', className())"
|
|
8155
|
+
[attr.data-horizontal-alignment]="horizontalAlignment()"
|
|
8156
|
+
[attr.data-vertical-alignment]="verticalAlignment()"
|
|
8157
|
+
[attr.colSpan]="getNumber(colSpan(), colspan())"
|
|
8158
|
+
[attr.rowSpan]="getNumber(rowSpan(), rowspan())"
|
|
8159
|
+
[attr.headers]="headers()"
|
|
8160
|
+
>
|
|
8161
|
+
<ng-content></ng-content>
|
|
8162
|
+
</td> `, styles: [":host{display:contents}\n"] }]
|
|
8163
|
+
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], horizontalAlignment: [{ type: i0.Input, args: [{ isSignal: true, alias: "horizontalAlignment", required: false }] }], verticalAlignment: [{ type: i0.Input, args: [{ isSignal: true, alias: "verticalAlignment", required: false }] }], colSpan: [{ type: i0.Input, args: [{ isSignal: true, alias: "colSpan", required: false }] }], colspan: [{ type: i0.Input, args: [{ isSignal: true, alias: "colspan", required: false }] }], rowSpan: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowSpan", required: false }] }], rowspan: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowspan", required: false }] }], headers: [{ type: i0.Input, args: [{ isSignal: true, alias: "headers", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
8164
|
+
|
|
8165
|
+
const defaultProps$8 = {};
|
|
8166
|
+
class DBTableHeaderCell {
|
|
8167
|
+
constructor() {
|
|
8168
|
+
this.cls = cls;
|
|
8169
|
+
this.getBooleanAsString = getBooleanAsString;
|
|
8170
|
+
this.getNumber = getNumber;
|
|
8171
|
+
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
|
|
8172
|
+
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : /* istanbul ignore next */ []));
|
|
8173
|
+
this.horizontalAlignment = input(...(ngDevMode ? [undefined, { debugName: "horizontalAlignment" }] : /* istanbul ignore next */ []));
|
|
8174
|
+
this.verticalAlignment = input(...(ngDevMode ? [undefined, { debugName: "verticalAlignment" }] : /* istanbul ignore next */ []));
|
|
8175
|
+
this.noText = input(...(ngDevMode ? [undefined, { debugName: "noText" }] : /* istanbul ignore next */ []));
|
|
8176
|
+
this.scope = input(...(ngDevMode ? [undefined, { debugName: "scope" }] : /* istanbul ignore next */ []));
|
|
8177
|
+
this.colSpan = input(...(ngDevMode ? [undefined, { debugName: "colSpan" }] : /* istanbul ignore next */ []));
|
|
8178
|
+
this.colspan = input(...(ngDevMode ? [undefined, { debugName: "colspan" }] : /* istanbul ignore next */ []));
|
|
8179
|
+
this.rowSpan = input(...(ngDevMode ? [undefined, { debugName: "rowSpan" }] : /* istanbul ignore next */ []));
|
|
8180
|
+
this.rowspan = input(...(ngDevMode ? [undefined, { debugName: "rowspan" }] : /* istanbul ignore next */ []));
|
|
8181
|
+
this.headers = input(...(ngDevMode ? [undefined, { debugName: "headers" }] : /* istanbul ignore next */ []));
|
|
8182
|
+
this.abbr = input(...(ngDevMode ? [undefined, { debugName: "abbr" }] : /* istanbul ignore next */ []));
|
|
8183
|
+
this._ref = viewChild("_ref", ...(ngDevMode ? [{ debugName: "_ref" }] : /* istanbul ignore next */ []));
|
|
8184
|
+
}
|
|
8185
|
+
/**
|
|
8186
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
8187
|
+
* @param element the ref for the component
|
|
8188
|
+
* @param customElementSelector the custom element like `my-component`
|
|
8189
|
+
*/
|
|
8190
|
+
enableAttributePassing(element, customElementSelector) {
|
|
8191
|
+
const parent = element?.closest(customElementSelector);
|
|
8192
|
+
if (element && parent) {
|
|
8193
|
+
const attributes = parent.attributes;
|
|
8194
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
8195
|
+
const attr = attributes.item(i);
|
|
8196
|
+
if (attr && attr.name !== 'data-density' &&
|
|
8197
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
8198
|
+
element.setAttribute(attr.name, attr.value);
|
|
8199
|
+
parent.removeAttribute(attr.name);
|
|
8200
|
+
}
|
|
8201
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
8202
|
+
element.setAttribute(attr.name, attr.value);
|
|
8203
|
+
parent.removeAttribute(attr.name);
|
|
8204
|
+
}
|
|
8205
|
+
else if (attr && attr.name === "class") {
|
|
8206
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
8207
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
8208
|
+
const currentClass = element.getAttribute("class");
|
|
8209
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
8210
|
+
if (isWebComponent) {
|
|
8211
|
+
// Stencil is using this class for lazy loading component
|
|
8212
|
+
parent.setAttribute("class", "hydrated");
|
|
8213
|
+
}
|
|
8214
|
+
else {
|
|
8215
|
+
parent.removeAttribute(attr.name);
|
|
8216
|
+
}
|
|
8217
|
+
}
|
|
8218
|
+
}
|
|
8219
|
+
}
|
|
8220
|
+
}
|
|
8221
|
+
ngAfterViewInit() {
|
|
8222
|
+
const element = this._ref()?.nativeElement;
|
|
8223
|
+
this.enableAttributePassing(element, "db-table-header-cell");
|
|
8224
|
+
}
|
|
8225
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTableHeaderCell, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8226
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.16", type: DBTableHeaderCell, isStandalone: true, selector: "db-table-header-cell", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, horizontalAlignment: { classPropertyName: "horizontalAlignment", publicName: "horizontalAlignment", isSignal: true, isRequired: false, transformFunction: null }, verticalAlignment: { classPropertyName: "verticalAlignment", publicName: "verticalAlignment", isSignal: true, isRequired: false, transformFunction: null }, noText: { classPropertyName: "noText", publicName: "noText", isSignal: true, isRequired: false, transformFunction: null }, scope: { classPropertyName: "scope", publicName: "scope", isSignal: true, isRequired: false, transformFunction: null }, colSpan: { classPropertyName: "colSpan", publicName: "colSpan", isSignal: true, isRequired: false, transformFunction: null }, colspan: { classPropertyName: "colspan", publicName: "colspan", isSignal: true, isRequired: false, transformFunction: null }, rowSpan: { classPropertyName: "rowSpan", publicName: "rowSpan", isSignal: true, isRequired: false, transformFunction: null }, rowspan: { classPropertyName: "rowspan", publicName: "rowspan", isSignal: true, isRequired: false, transformFunction: null }, headers: { classPropertyName: "headers", publicName: "headers", isSignal: true, isRequired: false, transformFunction: null }, abbr: { classPropertyName: "abbr", publicName: "abbr", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<th
|
|
8227
|
+
#_ref
|
|
8228
|
+
[attr.id]="id()"
|
|
8229
|
+
[class]="cls('db-table-header-cell', className())"
|
|
8230
|
+
[attr.data-horizontal-alignment]="horizontalAlignment()"
|
|
8231
|
+
[attr.data-vertical-alignment]="verticalAlignment()"
|
|
8232
|
+
[attr.data-no-text]="getBooleanAsString(noText())"
|
|
8233
|
+
[attr.scope]="scope()"
|
|
8234
|
+
[attr.colSpan]="getNumber(colSpan(), colspan())"
|
|
8235
|
+
[attr.rowSpan]="getNumber(rowSpan(), rowspan())"
|
|
8236
|
+
[attr.headers]="headers()"
|
|
8237
|
+
[attr.abbr]="abbr()"
|
|
8238
|
+
>
|
|
8239
|
+
<ng-content></ng-content>
|
|
8240
|
+
</th> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
8241
|
+
}
|
|
8242
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTableHeaderCell, decorators: [{
|
|
8243
|
+
type: Component,
|
|
8244
|
+
args: [{ selector: "db-table-header-cell", standalone: true, imports: [CommonModule], template: `<th
|
|
8245
|
+
#_ref
|
|
8246
|
+
[attr.id]="id()"
|
|
8247
|
+
[class]="cls('db-table-header-cell', className())"
|
|
8248
|
+
[attr.data-horizontal-alignment]="horizontalAlignment()"
|
|
8249
|
+
[attr.data-vertical-alignment]="verticalAlignment()"
|
|
8250
|
+
[attr.data-no-text]="getBooleanAsString(noText())"
|
|
8251
|
+
[attr.scope]="scope()"
|
|
8252
|
+
[attr.colSpan]="getNumber(colSpan(), colspan())"
|
|
8253
|
+
[attr.rowSpan]="getNumber(rowSpan(), rowspan())"
|
|
8254
|
+
[attr.headers]="headers()"
|
|
8255
|
+
[attr.abbr]="abbr()"
|
|
8256
|
+
>
|
|
8257
|
+
<ng-content></ng-content>
|
|
8258
|
+
</th> `, styles: [":host{display:contents}\n"] }]
|
|
8259
|
+
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], horizontalAlignment: [{ type: i0.Input, args: [{ isSignal: true, alias: "horizontalAlignment", required: false }] }], verticalAlignment: [{ type: i0.Input, args: [{ isSignal: true, alias: "verticalAlignment", required: false }] }], noText: [{ type: i0.Input, args: [{ isSignal: true, alias: "noText", required: false }] }], scope: [{ type: i0.Input, args: [{ isSignal: true, alias: "scope", required: false }] }], colSpan: [{ type: i0.Input, args: [{ isSignal: true, alias: "colSpan", required: false }] }], colspan: [{ type: i0.Input, args: [{ isSignal: true, alias: "colspan", required: false }] }], rowSpan: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowSpan", required: false }] }], rowspan: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowspan", required: false }] }], headers: [{ type: i0.Input, args: [{ isSignal: true, alias: "headers", required: false }] }], abbr: [{ type: i0.Input, args: [{ isSignal: true, alias: "abbr", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
8260
|
+
|
|
8261
|
+
const defaultProps$7 = {};
|
|
8262
|
+
class DBTableRow {
|
|
8263
|
+
getHeaderCell(cell) {
|
|
8264
|
+
if (cell.headerCell) {
|
|
8265
|
+
return cell;
|
|
8266
|
+
}
|
|
8267
|
+
return undefined;
|
|
8268
|
+
}
|
|
8269
|
+
constructor() {
|
|
8270
|
+
this.cls = cls;
|
|
8271
|
+
this.getBooleanAsString = getBooleanAsString;
|
|
8272
|
+
this.uuid = uuid;
|
|
8273
|
+
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
|
|
8274
|
+
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : /* istanbul ignore next */ []));
|
|
8275
|
+
this.interactive = input(...(ngDevMode ? [undefined, { debugName: "interactive" }] : /* istanbul ignore next */ []));
|
|
8276
|
+
this.subHeaderEmphasis = input(...(ngDevMode ? [undefined, { debugName: "subHeaderEmphasis" }] : /* istanbul ignore next */ []));
|
|
8277
|
+
this.cells = input(...(ngDevMode ? [undefined, { debugName: "cells" }] : /* istanbul ignore next */ []));
|
|
8278
|
+
this._ref = viewChild("_ref", ...(ngDevMode ? [{ debugName: "_ref" }] : /* istanbul ignore next */ []));
|
|
8279
|
+
}
|
|
8280
|
+
/**
|
|
8281
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
8282
|
+
* @param element the ref for the component
|
|
8283
|
+
* @param customElementSelector the custom element like `my-component`
|
|
8284
|
+
*/
|
|
8285
|
+
enableAttributePassing(element, customElementSelector) {
|
|
8286
|
+
const parent = element?.closest(customElementSelector);
|
|
8287
|
+
if (element && parent) {
|
|
8288
|
+
const attributes = parent.attributes;
|
|
8289
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
8290
|
+
const attr = attributes.item(i);
|
|
8291
|
+
if (attr && attr.name !== 'data-density' &&
|
|
8292
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
8293
|
+
element.setAttribute(attr.name, attr.value);
|
|
8294
|
+
parent.removeAttribute(attr.name);
|
|
8295
|
+
}
|
|
8296
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
8297
|
+
element.setAttribute(attr.name, attr.value);
|
|
8298
|
+
parent.removeAttribute(attr.name);
|
|
8299
|
+
}
|
|
8300
|
+
else if (attr && attr.name === "class") {
|
|
8301
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
8302
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
8303
|
+
const currentClass = element.getAttribute("class");
|
|
8304
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
8305
|
+
if (isWebComponent) {
|
|
8306
|
+
// Stencil is using this class for lazy loading component
|
|
8307
|
+
parent.setAttribute("class", "hydrated");
|
|
8308
|
+
}
|
|
8309
|
+
else {
|
|
8310
|
+
parent.removeAttribute(attr.name);
|
|
8311
|
+
}
|
|
8312
|
+
}
|
|
8313
|
+
}
|
|
8314
|
+
}
|
|
8315
|
+
}
|
|
8316
|
+
ngAfterViewInit() {
|
|
8317
|
+
const element = this._ref()?.nativeElement;
|
|
8318
|
+
this.enableAttributePassing(element, "db-table-row");
|
|
8319
|
+
}
|
|
8320
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTableRow, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8321
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: DBTableRow, isStandalone: true, selector: "db-table-row", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, interactive: { classPropertyName: "interactive", publicName: "interactive", isSignal: true, isRequired: false, transformFunction: null }, subHeaderEmphasis: { classPropertyName: "subHeaderEmphasis", publicName: "subHeaderEmphasis", isSignal: true, isRequired: false, transformFunction: null }, cells: { classPropertyName: "cells", publicName: "cells", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<tr
|
|
8322
|
+
#_ref
|
|
8323
|
+
[attr.id]="id()"
|
|
8324
|
+
[class]="cls('db-table-row', className())"
|
|
8325
|
+
[attr.data-interactive]="getBooleanAsString(interactive())"
|
|
8326
|
+
[attr.data-sub-header-emphasis]="subHeaderEmphasis()"
|
|
8327
|
+
>
|
|
8328
|
+
@if(cells()){ @for (cell of cells();track index;let index = $index) {
|
|
8329
|
+
@if(cell.headerCell){
|
|
8330
|
+
<db-table-header-cell
|
|
8331
|
+
[id]="cell.id"
|
|
8332
|
+
[abbr]="getHeaderCell(cell)?.abbr"
|
|
8333
|
+
[scope]="getHeaderCell(cell)?.scope"
|
|
8334
|
+
[noText]="getHeaderCell(cell)?.noText"
|
|
8335
|
+
[className]="cell.className ?? cell.class"
|
|
8336
|
+
[horizontalAlignment]="cell.horizontalAlignment"
|
|
8337
|
+
[verticalAlignment]="cell.verticalAlignment"
|
|
8338
|
+
[headers]="cell.headers"
|
|
8339
|
+
[colSpan]="cell.colSpan"
|
|
8340
|
+
[colspan]="cell.colspan"
|
|
8341
|
+
[rowSpan]="cell.rowSpan"
|
|
8342
|
+
[rowspan]="cell.rowspan"
|
|
8343
|
+
>@if(cell.link){
|
|
8344
|
+
<db-link
|
|
8345
|
+
[content]="cell.link?.content"
|
|
8346
|
+
[size]="cell.link?.size"
|
|
8347
|
+
[variant]="cell.link?.variant"
|
|
8348
|
+
[className]="cell.link?.className ?? cell.link?.class"
|
|
8349
|
+
[id]="cell.link?.id"
|
|
8350
|
+
[autofocus]="cell.link?.autofocus"
|
|
8351
|
+
[disabled]="cell.link?.disabled"
|
|
8352
|
+
[href]="cell.link?.href"
|
|
8353
|
+
[hreflang]="cell.link?.hreflang"
|
|
8354
|
+
[target]="cell.link?.target"
|
|
8355
|
+
[rel]="cell.link?.rel"
|
|
8356
|
+
[referrerPolicy]="cell.link?.referrerPolicy"
|
|
8357
|
+
[role]="cell.link?.role"
|
|
8358
|
+
[showIcon]="cell.link?.showIcon"
|
|
8359
|
+
[text]="cell.link?.text"
|
|
8360
|
+
[wrap]="cell.link?.wrap"
|
|
8361
|
+
>{{cell.link?.children}}</db-link
|
|
8362
|
+
>
|
|
8363
|
+
}@else{{{cell.content}}}</db-table-header-cell
|
|
8364
|
+
>
|
|
8365
|
+
}@else{
|
|
8366
|
+
<db-table-data-cell
|
|
8367
|
+
[id]="cell.id"
|
|
8368
|
+
[className]="cell.className ?? cell.class"
|
|
8369
|
+
[horizontalAlignment]="cell.horizontalAlignment"
|
|
8370
|
+
[verticalAlignment]="cell.verticalAlignment"
|
|
8371
|
+
[headers]="cell.headers"
|
|
8372
|
+
[colSpan]="cell.colSpan"
|
|
8373
|
+
[colspan]="cell.colspan"
|
|
8374
|
+
[rowSpan]="cell.rowSpan"
|
|
8375
|
+
[rowspan]="cell.rowspan"
|
|
8376
|
+
>@if(cell.link){
|
|
8377
|
+
<db-link
|
|
8378
|
+
[content]="cell.link?.content"
|
|
8379
|
+
[size]="cell.link?.size"
|
|
8380
|
+
[variant]="cell.link?.variant"
|
|
8381
|
+
[className]="cell.link?.className ?? cell.link?.class"
|
|
8382
|
+
[id]="cell.link?.id"
|
|
8383
|
+
[autofocus]="cell.link?.autofocus"
|
|
8384
|
+
[disabled]="cell.link?.disabled"
|
|
8385
|
+
[href]="cell.link?.href"
|
|
8386
|
+
[hreflang]="cell.link?.hreflang"
|
|
8387
|
+
[target]="cell.link?.target"
|
|
8388
|
+
[rel]="cell.link?.rel"
|
|
8389
|
+
[referrerPolicy]="cell.link?.referrerPolicy"
|
|
8390
|
+
[role]="cell.link?.role"
|
|
8391
|
+
[showIcon]="cell.link?.showIcon"
|
|
8392
|
+
[text]="cell.link?.text"
|
|
8393
|
+
[wrap]="cell.link?.wrap"
|
|
8394
|
+
>{{cell.link?.children}}</db-link
|
|
8395
|
+
>
|
|
8396
|
+
}@else{{{cell.content}}}</db-table-data-cell
|
|
8397
|
+
>
|
|
8398
|
+
} } }@else{
|
|
8399
|
+
<ng-content></ng-content>
|
|
8400
|
+
}
|
|
8401
|
+
</tr> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBTableDataCell, selector: "db-table-data-cell", inputs: ["id", "className", "horizontalAlignment", "verticalAlignment", "colSpan", "colspan", "rowSpan", "rowspan", "headers"] }, { kind: "component", type: DBLink, selector: "db-link", inputs: ["id", "propOverrides", "className", "href", "target", "rel", "role", "referrerpolicy", "referrerPolicy", "hreflang", "disabled", "size", "showIcon", "variant", "content", "wrap", "text"] }, { kind: "component", type: DBTableHeaderCell, selector: "db-table-header-cell", inputs: ["id", "className", "horizontalAlignment", "verticalAlignment", "noText", "scope", "colSpan", "colspan", "rowSpan", "rowspan", "headers", "abbr"] }] }); }
|
|
8402
|
+
}
|
|
8403
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTableRow, decorators: [{
|
|
8404
|
+
type: Component,
|
|
8405
|
+
args: [{ selector: "db-table-row", standalone: true, imports: [CommonModule, DBTableDataCell, DBLink, DBTableHeaderCell], template: `<tr
|
|
8406
|
+
#_ref
|
|
8407
|
+
[attr.id]="id()"
|
|
8408
|
+
[class]="cls('db-table-row', className())"
|
|
8409
|
+
[attr.data-interactive]="getBooleanAsString(interactive())"
|
|
8410
|
+
[attr.data-sub-header-emphasis]="subHeaderEmphasis()"
|
|
8411
|
+
>
|
|
8412
|
+
@if(cells()){ @for (cell of cells();track index;let index = $index) {
|
|
8413
|
+
@if(cell.headerCell){
|
|
8414
|
+
<db-table-header-cell
|
|
8415
|
+
[id]="cell.id"
|
|
8416
|
+
[abbr]="getHeaderCell(cell)?.abbr"
|
|
8417
|
+
[scope]="getHeaderCell(cell)?.scope"
|
|
8418
|
+
[noText]="getHeaderCell(cell)?.noText"
|
|
8419
|
+
[className]="cell.className ?? cell.class"
|
|
8420
|
+
[horizontalAlignment]="cell.horizontalAlignment"
|
|
8421
|
+
[verticalAlignment]="cell.verticalAlignment"
|
|
8422
|
+
[headers]="cell.headers"
|
|
8423
|
+
[colSpan]="cell.colSpan"
|
|
8424
|
+
[colspan]="cell.colspan"
|
|
8425
|
+
[rowSpan]="cell.rowSpan"
|
|
8426
|
+
[rowspan]="cell.rowspan"
|
|
8427
|
+
>@if(cell.link){
|
|
8428
|
+
<db-link
|
|
8429
|
+
[content]="cell.link?.content"
|
|
8430
|
+
[size]="cell.link?.size"
|
|
8431
|
+
[variant]="cell.link?.variant"
|
|
8432
|
+
[className]="cell.link?.className ?? cell.link?.class"
|
|
8433
|
+
[id]="cell.link?.id"
|
|
8434
|
+
[autofocus]="cell.link?.autofocus"
|
|
8435
|
+
[disabled]="cell.link?.disabled"
|
|
8436
|
+
[href]="cell.link?.href"
|
|
8437
|
+
[hreflang]="cell.link?.hreflang"
|
|
8438
|
+
[target]="cell.link?.target"
|
|
8439
|
+
[rel]="cell.link?.rel"
|
|
8440
|
+
[referrerPolicy]="cell.link?.referrerPolicy"
|
|
8441
|
+
[role]="cell.link?.role"
|
|
8442
|
+
[showIcon]="cell.link?.showIcon"
|
|
8443
|
+
[text]="cell.link?.text"
|
|
8444
|
+
[wrap]="cell.link?.wrap"
|
|
8445
|
+
>{{cell.link?.children}}</db-link
|
|
8446
|
+
>
|
|
8447
|
+
}@else{{{cell.content}}}</db-table-header-cell
|
|
8448
|
+
>
|
|
8449
|
+
}@else{
|
|
8450
|
+
<db-table-data-cell
|
|
8451
|
+
[id]="cell.id"
|
|
8452
|
+
[className]="cell.className ?? cell.class"
|
|
8453
|
+
[horizontalAlignment]="cell.horizontalAlignment"
|
|
8454
|
+
[verticalAlignment]="cell.verticalAlignment"
|
|
8455
|
+
[headers]="cell.headers"
|
|
8456
|
+
[colSpan]="cell.colSpan"
|
|
8457
|
+
[colspan]="cell.colspan"
|
|
8458
|
+
[rowSpan]="cell.rowSpan"
|
|
8459
|
+
[rowspan]="cell.rowspan"
|
|
8460
|
+
>@if(cell.link){
|
|
8461
|
+
<db-link
|
|
8462
|
+
[content]="cell.link?.content"
|
|
8463
|
+
[size]="cell.link?.size"
|
|
8464
|
+
[variant]="cell.link?.variant"
|
|
8465
|
+
[className]="cell.link?.className ?? cell.link?.class"
|
|
8466
|
+
[id]="cell.link?.id"
|
|
8467
|
+
[autofocus]="cell.link?.autofocus"
|
|
8468
|
+
[disabled]="cell.link?.disabled"
|
|
8469
|
+
[href]="cell.link?.href"
|
|
8470
|
+
[hreflang]="cell.link?.hreflang"
|
|
8471
|
+
[target]="cell.link?.target"
|
|
8472
|
+
[rel]="cell.link?.rel"
|
|
8473
|
+
[referrerPolicy]="cell.link?.referrerPolicy"
|
|
8474
|
+
[role]="cell.link?.role"
|
|
8475
|
+
[showIcon]="cell.link?.showIcon"
|
|
8476
|
+
[text]="cell.link?.text"
|
|
8477
|
+
[wrap]="cell.link?.wrap"
|
|
8478
|
+
>{{cell.link?.children}}</db-link
|
|
8479
|
+
>
|
|
8480
|
+
}@else{{{cell.content}}}</db-table-data-cell
|
|
8481
|
+
>
|
|
8482
|
+
} } }@else{
|
|
8483
|
+
<ng-content></ng-content>
|
|
8484
|
+
}
|
|
8485
|
+
</tr> `, styles: [":host{display:contents}\n"] }]
|
|
8486
|
+
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], interactive: [{ type: i0.Input, args: [{ isSignal: true, alias: "interactive", required: false }] }], subHeaderEmphasis: [{ type: i0.Input, args: [{ isSignal: true, alias: "subHeaderEmphasis", required: false }] }], cells: [{ type: i0.Input, args: [{ isSignal: true, alias: "cells", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
8487
|
+
|
|
8488
|
+
const defaultProps$6 = {};
|
|
8489
|
+
class DBTableBody {
|
|
8490
|
+
trackByRow0(index, row) {
|
|
8491
|
+
return `${row.id ?? this.id() ?? uuid()}-table-body-row-${index}`;
|
|
8492
|
+
}
|
|
8493
|
+
constructor() {
|
|
8494
|
+
this.cls = cls;
|
|
8495
|
+
this.uuid = uuid;
|
|
8496
|
+
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
|
|
8497
|
+
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : /* istanbul ignore next */ []));
|
|
8498
|
+
this.rows = input(...(ngDevMode ? [undefined, { debugName: "rows" }] : /* istanbul ignore next */ []));
|
|
8499
|
+
this._ref = viewChild("_ref", ...(ngDevMode ? [{ debugName: "_ref" }] : /* istanbul ignore next */ []));
|
|
8500
|
+
}
|
|
8501
|
+
/**
|
|
8502
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
8503
|
+
* @param element the ref for the component
|
|
8504
|
+
* @param customElementSelector the custom element like `my-component`
|
|
8505
|
+
*/
|
|
8506
|
+
enableAttributePassing(element, customElementSelector) {
|
|
8507
|
+
const parent = element?.closest(customElementSelector);
|
|
8508
|
+
if (element && parent) {
|
|
8509
|
+
const attributes = parent.attributes;
|
|
8510
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
8511
|
+
const attr = attributes.item(i);
|
|
8512
|
+
if (attr && attr.name !== 'data-density' &&
|
|
8513
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
8514
|
+
element.setAttribute(attr.name, attr.value);
|
|
8515
|
+
parent.removeAttribute(attr.name);
|
|
8516
|
+
}
|
|
8517
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
8518
|
+
element.setAttribute(attr.name, attr.value);
|
|
8519
|
+
parent.removeAttribute(attr.name);
|
|
8520
|
+
}
|
|
8521
|
+
else if (attr && attr.name === "class") {
|
|
8522
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
8523
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
8524
|
+
const currentClass = element.getAttribute("class");
|
|
8525
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
8526
|
+
if (isWebComponent) {
|
|
8527
|
+
// Stencil is using this class for lazy loading component
|
|
8528
|
+
parent.setAttribute("class", "hydrated");
|
|
8529
|
+
}
|
|
8530
|
+
else {
|
|
8531
|
+
parent.removeAttribute(attr.name);
|
|
8532
|
+
}
|
|
8533
|
+
}
|
|
8534
|
+
}
|
|
8535
|
+
}
|
|
8536
|
+
}
|
|
8537
|
+
ngAfterViewInit() {
|
|
8538
|
+
const element = this._ref()?.nativeElement;
|
|
8539
|
+
this.enableAttributePassing(element, "db-table-body");
|
|
8540
|
+
}
|
|
8541
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTableBody, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8542
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: DBTableBody, isStandalone: true, selector: "db-table-body", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<tbody
|
|
8543
|
+
#_ref
|
|
8544
|
+
[attr.id]="id()"
|
|
8545
|
+
[class]="cls('db-table-body', className())"
|
|
8546
|
+
>
|
|
8547
|
+
@if(rows()){ @for (row of rows();track trackByRow0(index, row);let index =
|
|
8548
|
+
$index) {
|
|
8549
|
+
<db-table-row
|
|
8550
|
+
[cells]="row.cells"
|
|
8551
|
+
[className]="row.className ?? row.class"
|
|
8552
|
+
[interactive]="row.interactive"
|
|
8553
|
+
[id]="row.id"
|
|
8554
|
+
></db-table-row>
|
|
8555
|
+
} }@else{
|
|
8556
|
+
<ng-content></ng-content>
|
|
8557
|
+
}
|
|
8558
|
+
</tbody> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBTableRow, selector: "db-table-row", inputs: ["id", "className", "interactive", "subHeaderEmphasis", "cells"] }] }); }
|
|
8559
|
+
}
|
|
8560
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTableBody, decorators: [{
|
|
8561
|
+
type: Component,
|
|
8562
|
+
args: [{ selector: "db-table-body", standalone: true, imports: [CommonModule, DBTableRow], template: `<tbody
|
|
8563
|
+
#_ref
|
|
8564
|
+
[attr.id]="id()"
|
|
8565
|
+
[class]="cls('db-table-body', className())"
|
|
8566
|
+
>
|
|
8567
|
+
@if(rows()){ @for (row of rows();track trackByRow0(index, row);let index =
|
|
8568
|
+
$index) {
|
|
8569
|
+
<db-table-row
|
|
8570
|
+
[cells]="row.cells"
|
|
8571
|
+
[className]="row.className ?? row.class"
|
|
8572
|
+
[interactive]="row.interactive"
|
|
8573
|
+
[id]="row.id"
|
|
8574
|
+
></db-table-row>
|
|
8575
|
+
} }@else{
|
|
8576
|
+
<ng-content></ng-content>
|
|
8577
|
+
}
|
|
8578
|
+
</tbody> `, styles: [":host{display:contents}\n"] }]
|
|
8579
|
+
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
8580
|
+
|
|
8581
|
+
const defaultProps$5 = {};
|
|
8582
|
+
class DBTableFooter {
|
|
8583
|
+
trackByRow0(index, row) {
|
|
8584
|
+
return `${row.id ?? this.id() ?? uuid()}-table-footer-row-${index}`;
|
|
8585
|
+
}
|
|
8586
|
+
constructor() {
|
|
8587
|
+
this.cls = cls;
|
|
8588
|
+
this.uuid = uuid;
|
|
8589
|
+
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
|
|
8590
|
+
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : /* istanbul ignore next */ []));
|
|
8591
|
+
this.rows = input(...(ngDevMode ? [undefined, { debugName: "rows" }] : /* istanbul ignore next */ []));
|
|
8592
|
+
this._ref = viewChild("_ref", ...(ngDevMode ? [{ debugName: "_ref" }] : /* istanbul ignore next */ []));
|
|
8593
|
+
}
|
|
8594
|
+
/**
|
|
8595
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
8596
|
+
* @param element the ref for the component
|
|
8597
|
+
* @param customElementSelector the custom element like `my-component`
|
|
8598
|
+
*/
|
|
8599
|
+
enableAttributePassing(element, customElementSelector) {
|
|
8600
|
+
const parent = element?.closest(customElementSelector);
|
|
8601
|
+
if (element && parent) {
|
|
8602
|
+
const attributes = parent.attributes;
|
|
8603
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
8604
|
+
const attr = attributes.item(i);
|
|
8605
|
+
if (attr && attr.name !== 'data-density' &&
|
|
8606
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
8607
|
+
element.setAttribute(attr.name, attr.value);
|
|
8608
|
+
parent.removeAttribute(attr.name);
|
|
8609
|
+
}
|
|
8610
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
8611
|
+
element.setAttribute(attr.name, attr.value);
|
|
8612
|
+
parent.removeAttribute(attr.name);
|
|
8613
|
+
}
|
|
8614
|
+
else if (attr && attr.name === "class") {
|
|
8615
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
8616
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
8617
|
+
const currentClass = element.getAttribute("class");
|
|
8618
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
8619
|
+
if (isWebComponent) {
|
|
8620
|
+
// Stencil is using this class for lazy loading component
|
|
8621
|
+
parent.setAttribute("class", "hydrated");
|
|
8622
|
+
}
|
|
8623
|
+
else {
|
|
8624
|
+
parent.removeAttribute(attr.name);
|
|
8625
|
+
}
|
|
8626
|
+
}
|
|
8627
|
+
}
|
|
8628
|
+
}
|
|
8629
|
+
}
|
|
8630
|
+
ngAfterViewInit() {
|
|
8631
|
+
const element = this._ref()?.nativeElement;
|
|
8632
|
+
this.enableAttributePassing(element, "db-table-footer");
|
|
8633
|
+
}
|
|
8634
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTableFooter, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8635
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: DBTableFooter, isStandalone: true, selector: "db-table-footer", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<tfoot
|
|
8636
|
+
#_ref
|
|
8637
|
+
[attr.id]="id()"
|
|
8638
|
+
[class]="cls('db-table-footer', className())"
|
|
8639
|
+
>
|
|
8640
|
+
@if(rows()){ @for (row of rows();track trackByRow0(index, row);let index =
|
|
8641
|
+
$index) {
|
|
8642
|
+
<db-table-row
|
|
8643
|
+
[cells]="row.cells"
|
|
8644
|
+
[className]="row.className ?? row.class"
|
|
8645
|
+
[interactive]="row.interactive"
|
|
8646
|
+
[id]="row.id"
|
|
8647
|
+
></db-table-row>
|
|
8648
|
+
} }@else{
|
|
8649
|
+
<ng-content></ng-content>
|
|
8650
|
+
}
|
|
8651
|
+
</tfoot> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBTableRow, selector: "db-table-row", inputs: ["id", "className", "interactive", "subHeaderEmphasis", "cells"] }] }); }
|
|
8652
|
+
}
|
|
8653
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTableFooter, decorators: [{
|
|
8654
|
+
type: Component,
|
|
8655
|
+
args: [{ selector: "db-table-footer", standalone: true, imports: [CommonModule, DBTableRow], template: `<tfoot
|
|
8656
|
+
#_ref
|
|
8657
|
+
[attr.id]="id()"
|
|
8658
|
+
[class]="cls('db-table-footer', className())"
|
|
8659
|
+
>
|
|
8660
|
+
@if(rows()){ @for (row of rows();track trackByRow0(index, row);let index =
|
|
8661
|
+
$index) {
|
|
8662
|
+
<db-table-row
|
|
8663
|
+
[cells]="row.cells"
|
|
8664
|
+
[className]="row.className ?? row.class"
|
|
8665
|
+
[interactive]="row.interactive"
|
|
8666
|
+
[id]="row.id"
|
|
8667
|
+
></db-table-row>
|
|
8668
|
+
} }@else{
|
|
8669
|
+
<ng-content></ng-content>
|
|
8670
|
+
}
|
|
8671
|
+
</tfoot> `, styles: [":host{display:contents}\n"] }]
|
|
8672
|
+
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
8673
|
+
|
|
8674
|
+
const defaultProps$4 = {};
|
|
8675
|
+
class DBTableHead {
|
|
8676
|
+
getCells(cells) {
|
|
8677
|
+
return cells?.map((cell) => ({
|
|
8678
|
+
...cell,
|
|
8679
|
+
headerCell: true,
|
|
8680
|
+
}));
|
|
8681
|
+
}
|
|
8682
|
+
trackByRow0(index, row) {
|
|
8683
|
+
return `${row.id ?? this.id() ?? uuid()}-table-head-row-${index}`;
|
|
8684
|
+
}
|
|
8685
|
+
constructor() {
|
|
8686
|
+
this.cls = cls;
|
|
8687
|
+
this.uuid = uuid;
|
|
8688
|
+
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
|
|
8689
|
+
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : /* istanbul ignore next */ []));
|
|
8690
|
+
this.rows = input(...(ngDevMode ? [undefined, { debugName: "rows" }] : /* istanbul ignore next */ []));
|
|
8691
|
+
this._ref = viewChild("_ref", ...(ngDevMode ? [{ debugName: "_ref" }] : /* istanbul ignore next */ []));
|
|
8692
|
+
}
|
|
8693
|
+
/**
|
|
8694
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
8695
|
+
* @param element the ref for the component
|
|
8696
|
+
* @param customElementSelector the custom element like `my-component`
|
|
8697
|
+
*/
|
|
8698
|
+
enableAttributePassing(element, customElementSelector) {
|
|
8699
|
+
const parent = element?.closest(customElementSelector);
|
|
8700
|
+
if (element && parent) {
|
|
8701
|
+
const attributes = parent.attributes;
|
|
8702
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
8703
|
+
const attr = attributes.item(i);
|
|
8704
|
+
if (attr && attr.name !== 'data-density' &&
|
|
8705
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
8706
|
+
element.setAttribute(attr.name, attr.value);
|
|
8707
|
+
parent.removeAttribute(attr.name);
|
|
8708
|
+
}
|
|
8709
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
8710
|
+
element.setAttribute(attr.name, attr.value);
|
|
8711
|
+
parent.removeAttribute(attr.name);
|
|
8712
|
+
}
|
|
8713
|
+
else if (attr && attr.name === "class") {
|
|
8714
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
8715
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
8716
|
+
const currentClass = element.getAttribute("class");
|
|
8717
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
8718
|
+
if (isWebComponent) {
|
|
8719
|
+
// Stencil is using this class for lazy loading component
|
|
8720
|
+
parent.setAttribute("class", "hydrated");
|
|
8721
|
+
}
|
|
8722
|
+
else {
|
|
8723
|
+
parent.removeAttribute(attr.name);
|
|
8724
|
+
}
|
|
8725
|
+
}
|
|
8726
|
+
}
|
|
8727
|
+
}
|
|
8728
|
+
}
|
|
8729
|
+
ngAfterViewInit() {
|
|
8730
|
+
const element = this._ref()?.nativeElement;
|
|
8731
|
+
this.enableAttributePassing(element, "db-table-head");
|
|
8732
|
+
}
|
|
8733
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTableHead, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8734
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: DBTableHead, isStandalone: true, selector: "db-table-head", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<thead
|
|
8735
|
+
#_ref
|
|
8736
|
+
[attr.id]="id()"
|
|
8737
|
+
[class]="cls('db-table-head', className())"
|
|
8738
|
+
>
|
|
8739
|
+
@if(rows()){ @for (row of rows();track trackByRow0(index, row);let index =
|
|
8740
|
+
$index) {
|
|
8741
|
+
<db-table-row
|
|
8742
|
+
[cells]="getCells(row.cells)"
|
|
8743
|
+
[className]="row.className ?? row.class"
|
|
8744
|
+
[subHeaderEmphasis]="row.subHeaderEmphasis"
|
|
8745
|
+
[interactive]="row.interactive"
|
|
8746
|
+
[id]="row.id"
|
|
8747
|
+
></db-table-row>
|
|
8748
|
+
} }@else{
|
|
8749
|
+
<ng-content></ng-content>
|
|
8750
|
+
}
|
|
8751
|
+
</thead> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBTableRow, selector: "db-table-row", inputs: ["id", "className", "interactive", "subHeaderEmphasis", "cells"] }] }); }
|
|
8752
|
+
}
|
|
8753
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTableHead, decorators: [{
|
|
8754
|
+
type: Component,
|
|
8755
|
+
args: [{ selector: "db-table-head", standalone: true, imports: [CommonModule, DBTableRow], template: `<thead
|
|
8756
|
+
#_ref
|
|
8757
|
+
[attr.id]="id()"
|
|
8758
|
+
[class]="cls('db-table-head', className())"
|
|
8759
|
+
>
|
|
8760
|
+
@if(rows()){ @for (row of rows();track trackByRow0(index, row);let index =
|
|
8761
|
+
$index) {
|
|
8762
|
+
<db-table-row
|
|
8763
|
+
[cells]="getCells(row.cells)"
|
|
8764
|
+
[className]="row.className ?? row.class"
|
|
8765
|
+
[subHeaderEmphasis]="row.subHeaderEmphasis"
|
|
8766
|
+
[interactive]="row.interactive"
|
|
8767
|
+
[id]="row.id"
|
|
8768
|
+
></db-table-row>
|
|
8769
|
+
} }@else{
|
|
8770
|
+
<ng-content></ng-content>
|
|
8771
|
+
}
|
|
8772
|
+
</thead> `, styles: [":host{display:contents}\n"] }]
|
|
8773
|
+
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
8774
|
+
|
|
8775
|
+
const defaultProps$3 = {};
|
|
8776
|
+
class DBTable {
|
|
8777
|
+
convertData() {
|
|
8778
|
+
try {
|
|
8779
|
+
if (typeof this.data() === "string") {
|
|
8780
|
+
return JSON.parse(this.data());
|
|
8781
|
+
}
|
|
8782
|
+
return this.data();
|
|
8783
|
+
}
|
|
8784
|
+
catch (error) {
|
|
8785
|
+
console.error(error);
|
|
8786
|
+
}
|
|
8787
|
+
return {};
|
|
8788
|
+
}
|
|
8789
|
+
constructor() {
|
|
8790
|
+
this.cls = cls;
|
|
8791
|
+
this.getBooleanAsString = getBooleanAsString;
|
|
8792
|
+
this.data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : /* istanbul ignore next */ []));
|
|
8793
|
+
this.mobileVariant = input(...(ngDevMode ? [undefined, { debugName: "mobileVariant" }] : /* istanbul ignore next */ []));
|
|
8794
|
+
this.columnSizes = input(...(ngDevMode ? [undefined, { debugName: "columnSizes" }] : /* istanbul ignore next */ []));
|
|
8795
|
+
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : /* istanbul ignore next */ []));
|
|
8796
|
+
this.width = input(...(ngDevMode ? [undefined, { debugName: "width" }] : /* istanbul ignore next */ []));
|
|
8797
|
+
this.size = input(...(ngDevMode ? [undefined, { debugName: "size" }] : /* istanbul ignore next */ []));
|
|
8798
|
+
this.divider = input(...(ngDevMode ? [undefined, { debugName: "divider" }] : /* istanbul ignore next */ []));
|
|
8799
|
+
this.variant = input(...(ngDevMode ? [undefined, { debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
8800
|
+
this.showCaption = input(...(ngDevMode ? [undefined, { debugName: "showCaption" }] : /* istanbul ignore next */ []));
|
|
8801
|
+
this.stickyHeader = input(...(ngDevMode ? [undefined, { debugName: "stickyHeader" }] : /* istanbul ignore next */ []));
|
|
8802
|
+
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
|
|
8803
|
+
this.captionPlain = input(...(ngDevMode ? [undefined, { debugName: "captionPlain" }] : /* istanbul ignore next */ []));
|
|
8804
|
+
this._ref = viewChild("_ref", ...(ngDevMode ? [{ debugName: "_ref" }] : /* istanbul ignore next */ []));
|
|
8805
|
+
this._data = signal(undefined, ...(ngDevMode ? [{ debugName: "_data" }] : /* istanbul ignore next */ []));
|
|
8806
|
+
this._style = signal(undefined, ...(ngDevMode ? [{ debugName: "_style" }] : /* istanbul ignore next */ []));
|
|
8807
|
+
if (typeof window !== "undefined") {
|
|
8808
|
+
effect(() => {
|
|
8809
|
+
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
8810
|
+
this.data();
|
|
8811
|
+
// ---
|
|
8812
|
+
if (this.data()) {
|
|
8813
|
+
this._data.set(this.convertData());
|
|
8814
|
+
}
|
|
8815
|
+
else {
|
|
8816
|
+
this._data.set(undefined);
|
|
8817
|
+
}
|
|
8818
|
+
}, Number(VERSION.major) < 19
|
|
8819
|
+
? { allowSignalWrites: true }
|
|
8820
|
+
: undefined);
|
|
8821
|
+
effect(() => {
|
|
8822
|
+
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
8823
|
+
this.mobileVariant();
|
|
8824
|
+
this._ref();
|
|
8825
|
+
this._data();
|
|
8826
|
+
// ---
|
|
8827
|
+
if (this._ref()?.nativeElement && this.mobileVariant() === "list") {
|
|
8828
|
+
// Delay for angular
|
|
8829
|
+
void delay(() => {
|
|
8830
|
+
const table = this._ref()?.nativeElement;
|
|
8831
|
+
if (!table)
|
|
8832
|
+
return;
|
|
8833
|
+
const headerCells = table.querySelectorAll("thead tr th");
|
|
8834
|
+
if (headerCells.length) {
|
|
8835
|
+
const otherRows = table.querySelectorAll(":is(tbody,tfoot) tr");
|
|
8836
|
+
otherRows.forEach((row) => {
|
|
8837
|
+
const cells = row.querySelectorAll(":is(td,th)");
|
|
8838
|
+
cells.forEach((cell, index) => {
|
|
8839
|
+
const headerCell = headerCells[index];
|
|
8840
|
+
if (headerCell) {
|
|
8841
|
+
// Use only direct text nodes to avoid including text from nested elements (e.g. sort buttons)
|
|
8842
|
+
const directText = Array.from(headerCell.childNodes)
|
|
8843
|
+
.filter((node) => node.nodeType === Node.TEXT_NODE)
|
|
8844
|
+
.map((node) => node.textContent?.trim())
|
|
8845
|
+
.filter(Boolean)
|
|
8846
|
+
.join(" ");
|
|
8847
|
+
if (directText) {
|
|
8848
|
+
cell.dataset["header"] = directText;
|
|
8849
|
+
}
|
|
8850
|
+
}
|
|
8851
|
+
});
|
|
8852
|
+
});
|
|
8853
|
+
}
|
|
8854
|
+
}, 1);
|
|
8855
|
+
}
|
|
8856
|
+
}, Number(VERSION.major) < 19
|
|
8857
|
+
? { allowSignalWrites: true }
|
|
8858
|
+
: undefined);
|
|
8859
|
+
effect(() => {
|
|
8860
|
+
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
8861
|
+
this.columnSizes();
|
|
8862
|
+
// ---
|
|
8863
|
+
if (this.columnSizes()) {
|
|
8864
|
+
const columnStyles = {};
|
|
8865
|
+
Object.entries(this.columnSizes()).forEach(([key, value]) => {
|
|
8866
|
+
columnStyles[`--db-table-column-size-${key}`] = value;
|
|
8867
|
+
});
|
|
8868
|
+
this._style.set(columnStyles);
|
|
8869
|
+
}
|
|
8870
|
+
else {
|
|
8871
|
+
this._style.set(undefined);
|
|
8872
|
+
}
|
|
8873
|
+
}, Number(VERSION.major) < 19
|
|
8874
|
+
? { allowSignalWrites: true }
|
|
8875
|
+
: undefined);
|
|
8876
|
+
}
|
|
8877
|
+
}
|
|
8878
|
+
/**
|
|
8879
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
8880
|
+
* @param element the ref for the component
|
|
8881
|
+
* @param customElementSelector the custom element like `my-component`
|
|
8882
|
+
*/
|
|
8883
|
+
enableAttributePassing(element, customElementSelector) {
|
|
8884
|
+
const parent = element?.closest(customElementSelector);
|
|
8885
|
+
if (element && parent) {
|
|
8886
|
+
const attributes = parent.attributes;
|
|
8887
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
8888
|
+
const attr = attributes.item(i);
|
|
8889
|
+
if (attr && attr.name !== 'data-density' &&
|
|
8890
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
8891
|
+
element.setAttribute(attr.name, attr.value);
|
|
8892
|
+
parent.removeAttribute(attr.name);
|
|
8893
|
+
}
|
|
8894
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
8895
|
+
element.setAttribute(attr.name, attr.value);
|
|
8896
|
+
parent.removeAttribute(attr.name);
|
|
8897
|
+
}
|
|
8898
|
+
else if (attr && attr.name === "class") {
|
|
8899
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
8900
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
8901
|
+
const currentClass = element.getAttribute("class");
|
|
8902
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
8903
|
+
if (isWebComponent) {
|
|
8904
|
+
// Stencil is using this class for lazy loading component
|
|
8905
|
+
parent.setAttribute("class", "hydrated");
|
|
8906
|
+
}
|
|
8907
|
+
else {
|
|
8908
|
+
parent.removeAttribute(attr.name);
|
|
8909
|
+
}
|
|
8910
|
+
}
|
|
8911
|
+
}
|
|
8912
|
+
}
|
|
8913
|
+
}
|
|
8914
|
+
ngAfterViewInit() {
|
|
8915
|
+
const element = this._ref()?.nativeElement;
|
|
8916
|
+
this.enableAttributePassing(element, "db-table");
|
|
8917
|
+
}
|
|
8918
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTable, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8919
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: DBTable, isStandalone: true, selector: "db-table", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, mobileVariant: { classPropertyName: "mobileVariant", publicName: "mobileVariant", isSignal: true, isRequired: false, transformFunction: null }, columnSizes: { classPropertyName: "columnSizes", publicName: "columnSizes", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, divider: { classPropertyName: "divider", publicName: "divider", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, showCaption: { classPropertyName: "showCaption", publicName: "showCaption", isSignal: true, isRequired: false, transformFunction: null }, stickyHeader: { classPropertyName: "stickyHeader", publicName: "stickyHeader", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, captionPlain: { classPropertyName: "captionPlain", publicName: "captionPlain", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<div
|
|
8920
|
+
[class]="cls('db-table', className())"
|
|
8921
|
+
[ngStyle]="_style()"
|
|
8922
|
+
[attr.data-width]="width()"
|
|
8923
|
+
[attr.data-size]="size()"
|
|
8924
|
+
[attr.data-divider]="divider()"
|
|
8925
|
+
[attr.data-variant]="variant()"
|
|
8926
|
+
[attr.data-mobile-variant]="mobileVariant()"
|
|
8927
|
+
[attr.data-show-caption]="getBooleanAsString(showCaption())"
|
|
8928
|
+
[attr.data-sticky-header]="stickyHeader()"
|
|
8929
|
+
>
|
|
8930
|
+
<table #_ref [attr.id]="id()">
|
|
8931
|
+
@if(captionPlain()){
|
|
8932
|
+
<caption>
|
|
8933
|
+
{{captionPlain()}}
|
|
8934
|
+
</caption>
|
|
8935
|
+
}@else{
|
|
8936
|
+
<ng-content select="[caption]"> </ng-content>
|
|
8937
|
+
} @if(_data()){ @if(_data()?.header){
|
|
8938
|
+
<db-table-head [rows]="_data()?.header"></db-table-head>
|
|
8939
|
+
} @if(_data()?.body){
|
|
8940
|
+
<db-table-body [rows]="_data()?.body"></db-table-body>
|
|
8941
|
+
} @if(_data()?.footer){
|
|
8942
|
+
<db-table-footer [rows]="_data()?.footer"></db-table-footer>
|
|
8943
|
+
} }@else{
|
|
8944
|
+
<ng-content></ng-content>
|
|
8945
|
+
}
|
|
8946
|
+
</table>
|
|
8947
|
+
</div> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: DBTableHead, selector: "db-table-head", inputs: ["id", "className", "rows"] }, { kind: "component", type: DBTableBody, selector: "db-table-body", inputs: ["id", "className", "rows"] }, { kind: "component", type: DBTableFooter, selector: "db-table-footer", inputs: ["id", "className", "rows"] }] }); }
|
|
8948
|
+
}
|
|
8949
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTable, decorators: [{
|
|
8950
|
+
type: Component,
|
|
8951
|
+
args: [{ selector: "db-table", standalone: true, imports: [CommonModule, DBTableHead, DBTableBody, DBTableFooter], template: `<div
|
|
8952
|
+
[class]="cls('db-table', className())"
|
|
8953
|
+
[ngStyle]="_style()"
|
|
8954
|
+
[attr.data-width]="width()"
|
|
8955
|
+
[attr.data-size]="size()"
|
|
8956
|
+
[attr.data-divider]="divider()"
|
|
8957
|
+
[attr.data-variant]="variant()"
|
|
8958
|
+
[attr.data-mobile-variant]="mobileVariant()"
|
|
8959
|
+
[attr.data-show-caption]="getBooleanAsString(showCaption())"
|
|
8960
|
+
[attr.data-sticky-header]="stickyHeader()"
|
|
8961
|
+
>
|
|
8962
|
+
<table #_ref [attr.id]="id()">
|
|
8963
|
+
@if(captionPlain()){
|
|
8964
|
+
<caption>
|
|
8965
|
+
{{captionPlain()}}
|
|
8966
|
+
</caption>
|
|
8967
|
+
}@else{
|
|
8968
|
+
<ng-content select="[caption]"> </ng-content>
|
|
8969
|
+
} @if(_data()){ @if(_data()?.header){
|
|
8970
|
+
<db-table-head [rows]="_data()?.header"></db-table-head>
|
|
8971
|
+
} @if(_data()?.body){
|
|
8972
|
+
<db-table-body [rows]="_data()?.body"></db-table-body>
|
|
8973
|
+
} @if(_data()?.footer){
|
|
8974
|
+
<db-table-footer [rows]="_data()?.footer"></db-table-footer>
|
|
8975
|
+
} }@else{
|
|
8976
|
+
<ng-content></ng-content>
|
|
8977
|
+
}
|
|
8978
|
+
</table>
|
|
8979
|
+
</div> `, styles: [":host{display:contents}\n"] }]
|
|
8980
|
+
}], ctorParameters: () => [], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], mobileVariant: [{ type: i0.Input, args: [{ isSignal: true, alias: "mobileVariant", required: false }] }], columnSizes: [{ type: i0.Input, args: [{ isSignal: true, alias: "columnSizes", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], divider: [{ type: i0.Input, args: [{ isSignal: true, alias: "divider", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], showCaption: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCaption", required: false }] }], stickyHeader: [{ type: i0.Input, args: [{ isSignal: true, alias: "stickyHeader", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], captionPlain: [{ type: i0.Input, args: [{ isSignal: true, alias: "captionPlain", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
8981
|
+
|
|
8982
|
+
const defaultProps$2 = {};
|
|
8983
|
+
class DBTableCaption {
|
|
8984
|
+
constructor() {
|
|
8985
|
+
this.cls = cls;
|
|
8986
|
+
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
|
|
8987
|
+
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : /* istanbul ignore next */ []));
|
|
8988
|
+
this._ref = viewChild("_ref", ...(ngDevMode ? [{ debugName: "_ref" }] : /* istanbul ignore next */ []));
|
|
8989
|
+
}
|
|
8990
|
+
/**
|
|
8991
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
8992
|
+
* @param element the ref for the component
|
|
8993
|
+
* @param customElementSelector the custom element like `my-component`
|
|
8994
|
+
*/
|
|
8995
|
+
enableAttributePassing(element, customElementSelector) {
|
|
8996
|
+
const parent = element?.closest(customElementSelector);
|
|
8997
|
+
if (element && parent) {
|
|
8998
|
+
const attributes = parent.attributes;
|
|
8999
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
9000
|
+
const attr = attributes.item(i);
|
|
9001
|
+
if (attr && attr.name !== 'data-density' &&
|
|
9002
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
9003
|
+
element.setAttribute(attr.name, attr.value);
|
|
9004
|
+
parent.removeAttribute(attr.name);
|
|
9005
|
+
}
|
|
9006
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
9007
|
+
element.setAttribute(attr.name, attr.value);
|
|
9008
|
+
parent.removeAttribute(attr.name);
|
|
9009
|
+
}
|
|
9010
|
+
else if (attr && attr.name === "class") {
|
|
9011
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
9012
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
9013
|
+
const currentClass = element.getAttribute("class");
|
|
9014
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
9015
|
+
if (isWebComponent) {
|
|
9016
|
+
// Stencil is using this class for lazy loading component
|
|
9017
|
+
parent.setAttribute("class", "hydrated");
|
|
9018
|
+
}
|
|
9019
|
+
else {
|
|
9020
|
+
parent.removeAttribute(attr.name);
|
|
9021
|
+
}
|
|
9022
|
+
}
|
|
9023
|
+
}
|
|
9024
|
+
}
|
|
9025
|
+
}
|
|
9026
|
+
ngAfterViewInit() {
|
|
9027
|
+
const element = this._ref()?.nativeElement;
|
|
9028
|
+
this.enableAttributePassing(element, "db-table-caption");
|
|
9029
|
+
}
|
|
9030
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTableCaption, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9031
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.16", type: DBTableCaption, isStandalone: true, selector: "db-table-caption", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<caption
|
|
9032
|
+
#_ref
|
|
9033
|
+
[attr.id]="id()"
|
|
9034
|
+
[class]="cls('db-table-caption', className())"
|
|
9035
|
+
>
|
|
9036
|
+
<ng-content></ng-content>
|
|
9037
|
+
</caption> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
9038
|
+
}
|
|
9039
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTableCaption, decorators: [{
|
|
9040
|
+
type: Component,
|
|
9041
|
+
args: [{ selector: "db-table-caption", standalone: true, imports: [CommonModule], template: `<caption
|
|
9042
|
+
#_ref
|
|
9043
|
+
[attr.id]="id()"
|
|
9044
|
+
[class]="cls('db-table-caption', className())"
|
|
9045
|
+
>
|
|
9046
|
+
<ng-content></ng-content>
|
|
9047
|
+
</caption> `, styles: [":host{display:contents}\n"] }]
|
|
9048
|
+
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
9049
|
+
|
|
9050
|
+
const DBTableHeaderCellScopeList = ['row', 'col', 'rowgroup', 'colgroup'];
|
|
9051
|
+
|
|
9052
|
+
const DBTableRowSubHeaderEmphasisList = ['none', 'weak', 'strong'];
|
|
9053
|
+
|
|
9054
|
+
const DBTableRowSizeList = ['x-small', 'small', 'medium', 'large'];
|
|
9055
|
+
const DBTableVariantList = ['flat', 'zebra', 'spaced'];
|
|
9056
|
+
const DBTableDividerList = ['none', 'both', 'horizontal', 'vertical'];
|
|
9057
|
+
const DBTableMobileVariantList = ['table', 'list'];
|
|
9058
|
+
const DBTableStickyHeaderList = ['none', 'both', 'horizontal', 'vertical'];
|
|
9059
|
+
const DBTableColumnsSizeList = ['auto', '1fr', 'min-content', 'max-content'];
|
|
9060
|
+
|
|
8112
9061
|
const defaultProps$1 = {};
|
|
8113
9062
|
class DBTabs {
|
|
8114
9063
|
convertTabs() {
|
|
@@ -8326,9 +9275,9 @@ class DBTabs {
|
|
|
8326
9275
|
}
|
|
8327
9276
|
}
|
|
8328
9277
|
ngAfterViewInit() {
|
|
9278
|
+
const element = this._ref()?.nativeElement;
|
|
9279
|
+
this.enableAttributePassing(element, "db-tabs");
|
|
8329
9280
|
if (typeof window !== "undefined") {
|
|
8330
|
-
const element = this._ref()?.nativeElement;
|
|
8331
|
-
this.enableAttributePassing(element, "db-tabs");
|
|
8332
9281
|
this._name.set(`tabs-${this.name() || uuid()}`);
|
|
8333
9282
|
this.initialized.set(true);
|
|
8334
9283
|
}
|
|
@@ -8709,9 +9658,9 @@ class DBTextarea {
|
|
|
8709
9658
|
this.disabled.set(disabled);
|
|
8710
9659
|
}
|
|
8711
9660
|
ngAfterViewInit() {
|
|
9661
|
+
const element = this._ref()?.nativeElement;
|
|
9662
|
+
this.enableAttributePassing(element, "db-textarea");
|
|
8712
9663
|
if (typeof window !== "undefined") {
|
|
8713
|
-
const element = this._ref()?.nativeElement;
|
|
8714
|
-
this.enableAttributePassing(element, "db-textarea");
|
|
8715
9664
|
this.resetIds();
|
|
8716
9665
|
this._invalidMessage.set(this.invalidMessage() || DEFAULT_INVALID_MESSAGE);
|
|
8717
9666
|
}
|
|
@@ -8884,11 +9833,11 @@ const LabelVariantHorizontalList = ['leading', 'trailing'];
|
|
|
8884
9833
|
const AutoCompleteList = ['off', 'on', 'name', 'honorific-prefix', 'given-name', 'additional-name', 'family-name', 'honorific-suffix', 'nickname', 'email', 'username', 'new-password', 'current-password', 'one-time-code', 'organization-title', 'organization', 'street-address', 'shipping', 'billing', 'address-line1', 'address-line2', 'address-line3', 'address-level4', 'address-level3', 'address-level2', 'address-level1', 'country', 'country-name', 'postal-code', 'cc-name', 'cc-given-name', 'cc-additional-name', 'cc-family-name', 'cc-number', 'cc-exp', 'cc-exp-month', 'cc-exp-year', 'cc-csc', 'cc-type', 'transaction-currency', 'transaction-amount', 'language', 'bday', 'bday-day', 'bday-month', 'bday-year', 'sex', 'tel', 'tel-country-code', 'tel-national', 'tel-area-code', 'tel-local', 'tel-extension', 'impp', 'url', 'photo', 'webauthn'];
|
|
8885
9834
|
const LinkTargetList = ['_self', '_blank', '_parent', '_top'];
|
|
8886
9835
|
const LinkReferrerPolicyList = ['no-referrer', 'no-referrer-when-downgrade', 'origin', 'origin-when-cross-origin', 'same-origin', 'strict-origin', 'strict-origin-when-cross-origin', 'unsafe-url'];
|
|
8887
|
-
const AlignmentList = ['start', 'center'];
|
|
9836
|
+
const AlignmentList = ['start', 'center', 'end'];
|
|
8888
9837
|
|
|
8889
9838
|
/**
|
|
8890
9839
|
* Generated bundle index. Do not edit.
|
|
8891
9840
|
*/
|
|
8892
9841
|
|
|
8893
|
-
export { AccordionBehaviorList, AccordionVariantList, AlignmentList, AutoCompleteList, BadgePlacementList, ButtonTypeList, ButtonVariantList, COLOR, COLORS, COLORS_SIMPLE, COLOR_CONST, COLOR_SIMPLE, CardBehaviorList, CardElevationLevelList, CustomSelectDropdownWidthList, CustomSelectListItemTypeList, DBAccordion, DBAccordionItem, DBBadge, DBBrand, DBButton, DBCard, DBCheckbox, DBCustomButton, DBCustomSelect, DBCustomSelectDropdown, DBCustomSelectFormField, DBCustomSelectList, DBCustomSelectListItem, DBDivider, DBDrawer, DBHeader, DBIcon, DBInfotext, DBInput, DBLink, DBNavigation, DBNavigationItem, DBNotification, DBPage, DBPopover, DBRadio, DBSection, DBSelect, DBStack, DBSwitch, DBTabItem, DBTabList, DBTabPanel, DBTabs, DBTag, DBTextarea, DBTooltip, DB_UX_LOCAL_STORAGE_FRAMEWORK, DB_UX_LOCAL_STORAGE_MODE, DEFAULT_BACK, DEFAULT_BURGER_MENU, DEFAULT_CLOSE_BUTTON, DEFAULT_DATALIST_ID_SUFFIX, DEFAULT_ICON, DEFAULT_ID, DEFAULT_INVALID_MESSAGE, DEFAULT_INVALID_MESSAGE_ID_SUFFIX, DEFAULT_LABEL, DEFAULT_LABEL_ID_SUFFIX, DEFAULT_MESSAGE, DEFAULT_MESSAGE_ID_SUFFIX, DEFAULT_PLACEHOLDER, DEFAULT_PLACEHOLDER_ID_SUFFIX, DEFAULT_REMOVE, DEFAULT_ROWS, DEFAULT_SELECTED, DEFAULT_SELECT_ID_SUFFIX, DEFAULT_VALID_MESSAGE, DEFAULT_VALID_MESSAGE_ID_SUFFIX, DEFAULT_VIEWPORT, DENSITIES, DENSITY, DENSITY_CONST, DESKTOP_VIEWPORT, DividerMarginList, DividerVariantList, DocumentClickListener, DocumentScrollListener, DrawerBackdropList, DrawerDirectionList, DrawerPositionList, DrawerVariantList, EmphasisList, FieldSizingList, GapSpacingList, IconWeightList, InputTypeList, LabelVariantHorizontalList, LabelVariantList, LinkContentList, LinkReferrerPolicyList, LinkSizeList, LinkTargetList, LinkVariantList, MarginList, MaxWidthList, MetaNavigationDirective, NavigationContentDirective, NavigationDirective, NavigationItemSafeTriangle, NotificationAriaLiveList, NotificationLinkVariantList, NotificationVariantList, OrientationList, PageDocumentOverflowList, PageVariantList, PlacementHorizontalList, PlacementList, PlacementVerticalList, PopoverDelayList, PopoverWidthList, SEMANTIC, SEMANTICS, SecondaryActionDirective, SelectedTypeList, SemanticList, SizeList, SpacingList, StackAlignmentList, StackDirectionList, StackJustifyContentList, StackVariantList, TESTING_VIEWPORTS, TabsBehaviorList, TabsInitialSelectedModeList, TagBehaviorList, TextareaResizeList, TextareaWrapList, TooltipVariantList, ValidationList, WidthList, addAttributeToChildren, cls, delay, getBoolean, getBooleanAsString, getFloatingProps, getHideProp, getInputValue, getNotificationRole, getNumber, getOptionKey, getSearchInput, getStep, handleDataOutside, handleFixedDropdown, handleFixedPopover, hasVoiceOver, isArrayOfStrings, isEventTargetNavigationItem, isIOSSafari, isKeyboardEvent, stringPropVisible, uuid };
|
|
9842
|
+
export { AccordionBehaviorList, AccordionVariantList, AlignmentList, AutoCompleteList, BadgePlacementList, ButtonTypeList, ButtonVariantList, COLOR, COLORS, COLORS_SIMPLE, COLOR_CONST, COLOR_SIMPLE, CardBehaviorList, CardElevationLevelList, CustomSelectDropdownWidthList, CustomSelectListItemTypeList, DBAccordion, DBAccordionItem, DBBadge, DBBrand, DBButton, DBCard, DBCheckbox, DBCustomButton, DBCustomSelect, DBCustomSelectDropdown, DBCustomSelectFormField, DBCustomSelectList, DBCustomSelectListItem, DBDivider, DBDrawer, DBHeader, DBIcon, DBInfotext, DBInput, DBLink, DBNavigation, DBNavigationItem, DBNotification, DBPage, DBPopover, DBRadio, DBSection, DBSelect, DBStack, DBSwitch, DBTabItem, DBTabList, DBTabPanel, DBTable, DBTableBody, DBTableCaption, DBTableColumnsSizeList, DBTableDataCell, DBTableDividerList, DBTableFooter, DBTableHead, DBTableHeaderCell, DBTableHeaderCellScopeList, DBTableMobileVariantList, DBTableRow, DBTableRowSizeList, DBTableRowSubHeaderEmphasisList, DBTableStickyHeaderList, DBTableVariantList, DBTabs, DBTag, DBTextarea, DBTooltip, DB_UX_LOCAL_STORAGE_FRAMEWORK, DB_UX_LOCAL_STORAGE_MODE, DEFAULT_BACK, DEFAULT_BURGER_MENU, DEFAULT_CLOSE_BUTTON, DEFAULT_DATALIST_ID_SUFFIX, DEFAULT_ICON, DEFAULT_ID, DEFAULT_INVALID_MESSAGE, DEFAULT_INVALID_MESSAGE_ID_SUFFIX, DEFAULT_LABEL, DEFAULT_LABEL_ID_SUFFIX, DEFAULT_MESSAGE, DEFAULT_MESSAGE_ID_SUFFIX, DEFAULT_PLACEHOLDER, DEFAULT_PLACEHOLDER_ID_SUFFIX, DEFAULT_REMOVE, DEFAULT_ROWS, DEFAULT_SELECTED, DEFAULT_SELECT_ID_SUFFIX, DEFAULT_VALID_MESSAGE, DEFAULT_VALID_MESSAGE_ID_SUFFIX, DEFAULT_VIEWPORT, DENSITIES, DENSITY, DENSITY_CONST, DESKTOP_VIEWPORT, DividerMarginList, DividerVariantList, DocumentClickListener, DocumentScrollListener, DrawerBackdropList, DrawerDirectionList, DrawerPositionList, DrawerVariantList, EmphasisList, FieldSizingList, GapSpacingList, IconWeightList, InputTypeList, LabelVariantHorizontalList, LabelVariantList, LinkContentList, LinkReferrerPolicyList, LinkSizeList, LinkTargetList, LinkVariantList, MarginList, MaxWidthList, MetaNavigationDirective, NavigationContentDirective, NavigationDirective, NavigationItemSafeTriangle, NotificationAriaLiveList, NotificationLinkVariantList, NotificationVariantList, OrientationList, PageDocumentOverflowList, PageVariantList, PlacementHorizontalList, PlacementList, PlacementVerticalList, PopoverDelayList, PopoverWidthList, SEMANTIC, SEMANTICS, SecondaryActionDirective, SelectedTypeList, SemanticList, SizeList, SpacingList, StackAlignmentList, StackDirectionList, StackJustifyContentList, StackVariantList, TESTING_VIEWPORTS, TabsBehaviorList, TabsInitialSelectedModeList, TagBehaviorList, TextareaResizeList, TextareaWrapList, TooltipVariantList, ValidationList, WidthList, addAttributeToChildren, cls, delay, getBoolean, getBooleanAsString, getFloatingProps, getHideProp, getInputValue, getNotificationRole, getNumber, getOptionKey, getSearchInput, getStep, handleDataOutside, handleFixedDropdown, handleFixedPopover, hasVoiceOver, isArrayOfStrings, isEventTargetNavigationItem, isIOSSafari, isKeyboardEvent, stringPropVisible, uuid };
|
|
8894
9843
|
//# sourceMappingURL=db-ux-ngx-core-components.mjs.map
|