@db-ux/ngx-core-components 4.3.2 → 4.4.0-loading-567cd0c
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.
- package/CHANGELOG.md +8 -0
- package/fesm2022/db-ux-ngx-core-components.mjs +444 -43
- package/fesm2022/db-ux-ngx-core-components.mjs.map +1 -1
- package/index.d.ts +134 -18
- package/package.json +4 -4
|
@@ -246,8 +246,33 @@ const getOptionKey = (option, prefix) => {
|
|
|
246
246
|
return `${prefix}${key}`;
|
|
247
247
|
};
|
|
248
248
|
const isKeyboardEvent = (event) => event.key !== undefined;
|
|
249
|
+
/**
|
|
250
|
+
* Maps semantic values to appropriate ARIA roles for notifications
|
|
251
|
+
* @param semantic - The semantic type of the notification
|
|
252
|
+
* @param role - The aria role of the notification
|
|
253
|
+
* @param ariaLive - The aria-live of the notification
|
|
254
|
+
* @returns The appropriate ARIA role or undefined for default behavior
|
|
255
|
+
*/
|
|
256
|
+
const getNotificationRole = ({ semantic, role, ariaLive }) => {
|
|
257
|
+
if (role) {
|
|
258
|
+
return role;
|
|
259
|
+
}
|
|
260
|
+
if (ariaLive) {
|
|
261
|
+
return 'article';
|
|
262
|
+
}
|
|
263
|
+
switch (semantic) {
|
|
264
|
+
case 'critical':
|
|
265
|
+
case 'warning':
|
|
266
|
+
return 'alert';
|
|
267
|
+
case 'informational':
|
|
268
|
+
case 'successful':
|
|
269
|
+
return 'status';
|
|
270
|
+
default:
|
|
271
|
+
return 'article';
|
|
272
|
+
}
|
|
273
|
+
};
|
|
249
274
|
|
|
250
|
-
const defaultProps$
|
|
275
|
+
const defaultProps$A = {};
|
|
251
276
|
class DBAccordionItem {
|
|
252
277
|
handleNameAttribute() {
|
|
253
278
|
if (this._ref()?.nativeElement) {
|
|
@@ -401,7 +426,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
401
426
|
</li> `, styles: [":host{display:contents}\n"] }]
|
|
402
427
|
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], defaultOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultOpen", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", 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 }] }] } });
|
|
403
428
|
|
|
404
|
-
const defaultProps$
|
|
429
|
+
const defaultProps$z = {};
|
|
405
430
|
class DBAccordion {
|
|
406
431
|
convertItems() {
|
|
407
432
|
try {
|
|
@@ -595,7 +620,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
595
620
|
const AccordionVariantList = ['divider', 'card'];
|
|
596
621
|
const AccordionBehaviorList = ['multiple', 'single'];
|
|
597
622
|
|
|
598
|
-
const defaultProps$
|
|
623
|
+
const defaultProps$y = {};
|
|
599
624
|
class DBBadge {
|
|
600
625
|
constructor() {
|
|
601
626
|
this.cls = cls;
|
|
@@ -706,7 +731,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
706
731
|
|
|
707
732
|
const BadgePlacementList = ['inline', 'corner-top-left', 'corner-top-right', 'corner-center-left', 'corner-center-right', 'corner-bottom-left', 'corner-bottom-right'];
|
|
708
733
|
|
|
709
|
-
const defaultProps$
|
|
734
|
+
const defaultProps$x = {};
|
|
710
735
|
class DBBrand {
|
|
711
736
|
constructor() {
|
|
712
737
|
this.DEFAULT_ICON = DEFAULT_ICON;
|
|
@@ -786,7 +811,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
786
811
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
787
812
|
}], 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 }] }], 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 }] }] } });
|
|
788
813
|
|
|
789
|
-
const defaultProps$
|
|
814
|
+
const defaultProps$w = {};
|
|
790
815
|
class DBButton {
|
|
791
816
|
getButtonType() {
|
|
792
817
|
if (this.type()) {
|
|
@@ -913,7 +938,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
913
938
|
const ButtonVariantList = ['outlined', 'brand', 'filled', 'ghost'];
|
|
914
939
|
const ButtonTypeList = ['button', 'reset', 'submit'];
|
|
915
940
|
|
|
916
|
-
const defaultProps$
|
|
941
|
+
const defaultProps$v = {};
|
|
917
942
|
class DBCard {
|
|
918
943
|
handleClick(event) {
|
|
919
944
|
if (this.click) {
|
|
@@ -1050,7 +1075,7 @@ const addValueResetEventListener = (element, props, resetFunction, signal) => {
|
|
|
1050
1075
|
}, signal);
|
|
1051
1076
|
};
|
|
1052
1077
|
|
|
1053
|
-
const defaultProps$
|
|
1078
|
+
const defaultProps$u = {};
|
|
1054
1079
|
class DBInfotext {
|
|
1055
1080
|
constructor() {
|
|
1056
1081
|
this.cls = cls;
|
|
@@ -1132,7 +1157,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
1132
1157
|
> `, styles: [":host{display:contents}\n"] }]
|
|
1133
1158
|
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", 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 }] }], 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 }] }] } });
|
|
1134
1159
|
|
|
1135
|
-
const defaultProps$
|
|
1160
|
+
const defaultProps$t = {};
|
|
1136
1161
|
class DBCheckbox {
|
|
1137
1162
|
hasValidState() {
|
|
1138
1163
|
return !!(this.validMessage() ?? this.validation() === "valid");
|
|
@@ -1868,13 +1893,13 @@ const handleFixedPopover = (element, parent, placement) => {
|
|
|
1868
1893
|
element.dataset['correctedPlacement'] = correctedPlacement;
|
|
1869
1894
|
};
|
|
1870
1895
|
|
|
1871
|
-
const defaultProps$
|
|
1896
|
+
const defaultProps$s = { width: "fixed" };
|
|
1872
1897
|
class DBCustomSelectDropdown {
|
|
1873
1898
|
constructor() {
|
|
1874
1899
|
this.cls = cls;
|
|
1875
1900
|
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
1876
1901
|
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : []));
|
|
1877
|
-
this.width = input(defaultProps$
|
|
1902
|
+
this.width = input(defaultProps$s["width"], ...(ngDevMode ? [{ debugName: "width" }] : []));
|
|
1878
1903
|
this._ref = viewChild("_ref", ...(ngDevMode ? [{ debugName: "_ref" }] : []));
|
|
1879
1904
|
}
|
|
1880
1905
|
/**
|
|
@@ -1939,7 +1964,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
1939
1964
|
</article> `, styles: [":host{display:contents}\n"] }]
|
|
1940
1965
|
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", 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 }] }] } });
|
|
1941
1966
|
|
|
1942
|
-
const defaultProps$
|
|
1967
|
+
const defaultProps$r = {};
|
|
1943
1968
|
class DBCustomSelectListItem {
|
|
1944
1969
|
handleChange(event) {
|
|
1945
1970
|
event.stopPropagation();
|
|
@@ -2122,7 +2147,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
2122
2147
|
</li> `, styles: [":host{display:contents}\n"] }]
|
|
2123
2148
|
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], 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"] }], 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 }] }] } });
|
|
2124
2149
|
|
|
2125
|
-
const defaultProps$
|
|
2150
|
+
const defaultProps$q = {};
|
|
2126
2151
|
class DBCustomSelectList {
|
|
2127
2152
|
constructor() {
|
|
2128
2153
|
this.cls = cls;
|
|
@@ -2198,7 +2223,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
2198
2223
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
2199
2224
|
}], 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 }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
2200
2225
|
|
|
2201
|
-
const defaultProps$
|
|
2226
|
+
const defaultProps$p = {};
|
|
2202
2227
|
class DBInput {
|
|
2203
2228
|
hasValidState() {
|
|
2204
2229
|
return !!(this.validMessage() ?? this.validation() === "valid");
|
|
@@ -2668,6 +2693,340 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
2668
2693
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
2669
2694
|
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], invalidMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalidMessage", 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 }] }] } });
|
|
2670
2695
|
|
|
2696
|
+
const defaultProps$o = {
|
|
2697
|
+
indeterminate: true,
|
|
2698
|
+
variant: "inline",
|
|
2699
|
+
size: "medium",
|
|
2700
|
+
autoDisable: true,
|
|
2701
|
+
};
|
|
2702
|
+
class DBLoadingIndicator {
|
|
2703
|
+
getPercentage() {
|
|
2704
|
+
if (this.indeterminate() || !this.value() || !this.max()) {
|
|
2705
|
+
return;
|
|
2706
|
+
}
|
|
2707
|
+
return `${(Number(this.value()) / Number(this.max())).toFixed(2)}`;
|
|
2708
|
+
}
|
|
2709
|
+
getRole() {
|
|
2710
|
+
if (this.role()) {
|
|
2711
|
+
if (this.role() === "none") {
|
|
2712
|
+
return;
|
|
2713
|
+
}
|
|
2714
|
+
return this.role();
|
|
2715
|
+
}
|
|
2716
|
+
return "status";
|
|
2717
|
+
}
|
|
2718
|
+
handleParentDisabled() {
|
|
2719
|
+
if (this._ref()?.nativeElement &&
|
|
2720
|
+
this.autoDisable() &&
|
|
2721
|
+
this.initialized()) {
|
|
2722
|
+
let parent = (this._ref()?.nativeElement).parentElement;
|
|
2723
|
+
if (parent && parent.localName === "db-loading-indicator") {
|
|
2724
|
+
parent = parent.parentElement;
|
|
2725
|
+
}
|
|
2726
|
+
if (parent && "disabled" in parent) {
|
|
2727
|
+
parent.disabled = this._loadingState() !== "inactive";
|
|
2728
|
+
}
|
|
2729
|
+
}
|
|
2730
|
+
}
|
|
2731
|
+
handleParentAria(remove) {
|
|
2732
|
+
if (this._ref()?.nativeElement && this._id() && this.initialized()) {
|
|
2733
|
+
let parent = (this._ref()?.nativeElement).parentElement;
|
|
2734
|
+
if (parent && parent.localName === "db-loading-indicator") {
|
|
2735
|
+
parent = parent.parentElement;
|
|
2736
|
+
}
|
|
2737
|
+
if (!parent)
|
|
2738
|
+
return;
|
|
2739
|
+
const isButton = parent?.localName === "button";
|
|
2740
|
+
if (!(isButton || this.overlay()))
|
|
2741
|
+
return;
|
|
2742
|
+
const ariaAttribute = isButton ? "aria-labelledby" : "aria-describedby";
|
|
2743
|
+
const ariaLabelledBy = parent.getAttribute(ariaAttribute);
|
|
2744
|
+
let labelledByElements = ariaLabelledBy ? ariaLabelledBy.split(",") : [];
|
|
2745
|
+
if (remove || this._loadingState() === "inactive") {
|
|
2746
|
+
if (labelledByElements.includes(this._id())) {
|
|
2747
|
+
labelledByElements = labelledByElements.filter((elementId) => elementId !== this._id());
|
|
2748
|
+
if (!isButton) {
|
|
2749
|
+
parent.ariaBusy = null;
|
|
2750
|
+
}
|
|
2751
|
+
}
|
|
2752
|
+
else {
|
|
2753
|
+
return;
|
|
2754
|
+
}
|
|
2755
|
+
}
|
|
2756
|
+
else {
|
|
2757
|
+
if (!labelledByElements.includes(this._id())) {
|
|
2758
|
+
labelledByElements.push(this._id());
|
|
2759
|
+
}
|
|
2760
|
+
if (!isButton) {
|
|
2761
|
+
parent.ariaBusy = this._loadingState() === "active" ? "true" : null;
|
|
2762
|
+
}
|
|
2763
|
+
}
|
|
2764
|
+
if (labelledByElements.length) {
|
|
2765
|
+
parent.setAttribute(ariaAttribute, labelledByElements.join(","));
|
|
2766
|
+
}
|
|
2767
|
+
else {
|
|
2768
|
+
parent.removeAttribute(ariaAttribute);
|
|
2769
|
+
}
|
|
2770
|
+
}
|
|
2771
|
+
}
|
|
2772
|
+
constructor() {
|
|
2773
|
+
this.cls = cls;
|
|
2774
|
+
this.getBooleanAsString = getBooleanAsString;
|
|
2775
|
+
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
2776
|
+
this.autoDisable = input(defaultProps$o["autoDisable"], ...(ngDevMode ? [{ debugName: "autoDisable" }] : []));
|
|
2777
|
+
this.overlay = input(...(ngDevMode ? [undefined, { debugName: "overlay" }] : []));
|
|
2778
|
+
this.state = input(...(ngDevMode ? [undefined, { debugName: "state" }] : []));
|
|
2779
|
+
this.indeterminate = input(defaultProps$o["indeterminate"], ...(ngDevMode ? [{ debugName: "indeterminate" }] : []));
|
|
2780
|
+
this.delay = input(...(ngDevMode ? [undefined, { debugName: "delay" }] : []));
|
|
2781
|
+
this.value = input(...(ngDevMode ? [undefined, { debugName: "value" }] : []));
|
|
2782
|
+
this.max = input(...(ngDevMode ? [undefined, { debugName: "max" }] : []));
|
|
2783
|
+
this.role = input(...(ngDevMode ? [undefined, { debugName: "role" }] : []));
|
|
2784
|
+
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : []));
|
|
2785
|
+
this.size = input(defaultProps$o["size"], ...(ngDevMode ? [{ debugName: "size" }] : []));
|
|
2786
|
+
this.variant = input(defaultProps$o["variant"], ...(ngDevMode ? [{ debugName: "variant" }] : []));
|
|
2787
|
+
this.showLabel = input(...(ngDevMode ? [undefined, { debugName: "showLabel" }] : []));
|
|
2788
|
+
this.label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : []));
|
|
2789
|
+
this.progressText = input(...(ngDevMode ? [undefined, { debugName: "progressText" }] : []));
|
|
2790
|
+
this.showProgressText = input(...(ngDevMode ? [undefined, { debugName: "showProgressText" }] : []));
|
|
2791
|
+
this.timeout = output();
|
|
2792
|
+
this._ref = viewChild("_ref", ...(ngDevMode ? [{ debugName: "_ref" }] : []));
|
|
2793
|
+
this._id = signal(DEFAULT_ID, ...(ngDevMode ? [{ debugName: "_id" }] : []));
|
|
2794
|
+
this._loadingState = signal("inactive", ...(ngDevMode ? [{ debugName: "_loadingState" }] : []));
|
|
2795
|
+
this._previousLoadingState = signal(undefined, ...(ngDevMode ? [{ debugName: "_previousLoadingState" }] : []));
|
|
2796
|
+
this._style = signal({}, ...(ngDevMode ? [{ debugName: "_style" }] : []));
|
|
2797
|
+
this.initialized = signal(false, ...(ngDevMode ? [{ debugName: "initialized" }] : []));
|
|
2798
|
+
if (typeof window !== "undefined") {
|
|
2799
|
+
effect(() => {
|
|
2800
|
+
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
2801
|
+
this._ref();
|
|
2802
|
+
this.initialized();
|
|
2803
|
+
this.autoDisable();
|
|
2804
|
+
this._loadingState();
|
|
2805
|
+
// ---
|
|
2806
|
+
this.handleParentDisabled();
|
|
2807
|
+
}, {
|
|
2808
|
+
// Enable writing to signals inside effects
|
|
2809
|
+
});
|
|
2810
|
+
effect(() => {
|
|
2811
|
+
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
2812
|
+
this._ref();
|
|
2813
|
+
this.initialized();
|
|
2814
|
+
this._loadingState();
|
|
2815
|
+
this.overlay();
|
|
2816
|
+
this._id();
|
|
2817
|
+
// ---
|
|
2818
|
+
this.handleParentAria(false);
|
|
2819
|
+
}, {
|
|
2820
|
+
// Enable writing to signals inside effects
|
|
2821
|
+
});
|
|
2822
|
+
effect(() => {
|
|
2823
|
+
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
2824
|
+
this._loadingState();
|
|
2825
|
+
// "props.timeout" is an event skip it.
|
|
2826
|
+
// ---
|
|
2827
|
+
if (this.timeout) {
|
|
2828
|
+
// Not merged if as workaround for angular
|
|
2829
|
+
if (this._loadingState() !== "inactive" &&
|
|
2830
|
+
this._loadingState() !== this._previousLoadingState()) {
|
|
2831
|
+
this._previousLoadingState.set(this._loadingState());
|
|
2832
|
+
void delay(() => {
|
|
2833
|
+
if (this.timeout) {
|
|
2834
|
+
this.timeout.emit(this._loadingState());
|
|
2835
|
+
}
|
|
2836
|
+
}, this._loadingState() === "active" ? 5000 : 2000);
|
|
2837
|
+
}
|
|
2838
|
+
}
|
|
2839
|
+
}, {
|
|
2840
|
+
// Enable writing to signals inside effects
|
|
2841
|
+
});
|
|
2842
|
+
effect(() => {
|
|
2843
|
+
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
2844
|
+
this.state();
|
|
2845
|
+
// ---
|
|
2846
|
+
if (this._loadingState() === this.state())
|
|
2847
|
+
return;
|
|
2848
|
+
if (this.state()) {
|
|
2849
|
+
this._loadingState.set(this.state());
|
|
2850
|
+
}
|
|
2851
|
+
else if (this.indeterminate() === undefined ||
|
|
2852
|
+
this.indeterminate()) {
|
|
2853
|
+
this._loadingState.set("active");
|
|
2854
|
+
}
|
|
2855
|
+
else {
|
|
2856
|
+
this._loadingState.set("inactive");
|
|
2857
|
+
}
|
|
2858
|
+
}, {
|
|
2859
|
+
// Enable writing to signals inside effects
|
|
2860
|
+
});
|
|
2861
|
+
effect(() => {
|
|
2862
|
+
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
2863
|
+
this._ref();
|
|
2864
|
+
this.delay();
|
|
2865
|
+
// ---
|
|
2866
|
+
if (this._ref()?.nativeElement) {
|
|
2867
|
+
if (this.delay() === "slow" || this.delay() === "fast") {
|
|
2868
|
+
void delay(() => {
|
|
2869
|
+
if (this._ref()?.nativeElement) {
|
|
2870
|
+
(this._ref()?.nativeElement).dataset["delay"] = "";
|
|
2871
|
+
}
|
|
2872
|
+
}, this.delay() === "slow" ? 500 : 250);
|
|
2873
|
+
}
|
|
2874
|
+
}
|
|
2875
|
+
}, {
|
|
2876
|
+
// Enable writing to signals inside effects
|
|
2877
|
+
});
|
|
2878
|
+
effect(() => {
|
|
2879
|
+
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
2880
|
+
this.indeterminate();
|
|
2881
|
+
this.value();
|
|
2882
|
+
this.max();
|
|
2883
|
+
// ---
|
|
2884
|
+
this._style.set({
|
|
2885
|
+
"--db-loading-indicator-percentage": this.getPercentage(),
|
|
2886
|
+
});
|
|
2887
|
+
}, {
|
|
2888
|
+
// Enable writing to signals inside effects
|
|
2889
|
+
});
|
|
2890
|
+
}
|
|
2891
|
+
}
|
|
2892
|
+
/**
|
|
2893
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
2894
|
+
* @param element the ref for the component
|
|
2895
|
+
* @param customElementSelector the custom element like `my-component`
|
|
2896
|
+
*/
|
|
2897
|
+
enableAttributePassing(element, customElementSelector) {
|
|
2898
|
+
const parent = element?.closest(customElementSelector);
|
|
2899
|
+
if (element && parent) {
|
|
2900
|
+
const attributes = parent.attributes;
|
|
2901
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
2902
|
+
const attr = attributes.item(i);
|
|
2903
|
+
if (attr &&
|
|
2904
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
2905
|
+
element.setAttribute(attr.name, attr.value);
|
|
2906
|
+
parent.removeAttribute(attr.name);
|
|
2907
|
+
}
|
|
2908
|
+
if (attr && attr.name === "class") {
|
|
2909
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
2910
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
2911
|
+
const currentClass = element.getAttribute("class");
|
|
2912
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
2913
|
+
if (isWebComponent) {
|
|
2914
|
+
// Stencil is using this class for lazy loading component
|
|
2915
|
+
parent.setAttribute("class", "hydrated");
|
|
2916
|
+
}
|
|
2917
|
+
else {
|
|
2918
|
+
parent.removeAttribute(attr.name);
|
|
2919
|
+
}
|
|
2920
|
+
}
|
|
2921
|
+
}
|
|
2922
|
+
}
|
|
2923
|
+
}
|
|
2924
|
+
ngAfterViewInit() {
|
|
2925
|
+
if (typeof window !== "undefined") {
|
|
2926
|
+
const element = this._ref()?.nativeElement;
|
|
2927
|
+
this.enableAttributePassing(element, "db-loading-indicator");
|
|
2928
|
+
this._id.set(this.id() || "loading-indicator-" + uuid());
|
|
2929
|
+
this.initialized.set(true);
|
|
2930
|
+
}
|
|
2931
|
+
}
|
|
2932
|
+
ngOnDestroy() {
|
|
2933
|
+
this.handleParentAria(true);
|
|
2934
|
+
this.handleParentDisabled();
|
|
2935
|
+
}
|
|
2936
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBLoadingIndicator, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2937
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: DBLoadingIndicator, isStandalone: true, selector: "db-loading-indicator", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, autoDisable: { classPropertyName: "autoDisable", publicName: "autoDisable", isSignal: true, isRequired: false, transformFunction: null }, overlay: { classPropertyName: "overlay", publicName: "overlay", isSignal: true, isRequired: false, transformFunction: null }, state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: false, transformFunction: null }, indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null }, delay: { classPropertyName: "delay", publicName: "delay", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, role: { classPropertyName: "role", publicName: "role", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, showLabel: { classPropertyName: "showLabel", publicName: "showLabel", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, progressText: { classPropertyName: "progressText", publicName: "progressText", isSignal: true, isRequired: false, transformFunction: null }, showProgressText: { classPropertyName: "showProgressText", publicName: "showProgressText", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { timeout: "timeout" }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<div
|
|
2938
|
+
#_ref
|
|
2939
|
+
[class]="cls('db-loading-indicator', className())"
|
|
2940
|
+
[ngStyle]="_style()"
|
|
2941
|
+
[attr.data-indeterminate]="getBooleanAsString(indeterminate())"
|
|
2942
|
+
[attr.data-size]="size()"
|
|
2943
|
+
[attr.data-variant]="variant()"
|
|
2944
|
+
[attr.data-delay]="delay()"
|
|
2945
|
+
[attr.data-state]="_loadingState()"
|
|
2946
|
+
[attr.data-overlay]="getBooleanAsString(overlay())"
|
|
2947
|
+
>
|
|
2948
|
+
@if(variant() !== 'progress-bar'){
|
|
2949
|
+
<svg
|
|
2950
|
+
class="db-loading-indicator-circle"
|
|
2951
|
+
aria-hidden="true"
|
|
2952
|
+
[attr.viewBox]="variant() === 'inline' ? '10 10 20 20' : '32 32 64 64'"
|
|
2953
|
+
>
|
|
2954
|
+
<circle class="db-loading-indicator-circle-track"></circle>
|
|
2955
|
+
<circle class="db-loading-indicator-circle-segment"></circle>
|
|
2956
|
+
</svg>
|
|
2957
|
+
}
|
|
2958
|
+
<div [attr.role]="getRole()">
|
|
2959
|
+
<label
|
|
2960
|
+
[attr.data-show-label]="getBooleanAsString(showLabel())"
|
|
2961
|
+
[attr.id]="_id()"
|
|
2962
|
+
>@if(label()){ {{label()}} }@else{
|
|
2963
|
+
<ng-content></ng-content>
|
|
2964
|
+
}
|
|
2965
|
+
<progress
|
|
2966
|
+
[attr.value]="indeterminate() ? undefined : value() ?? 0"
|
|
2967
|
+
[attr.max]="indeterminate() ? undefined : max() ?? 100"
|
|
2968
|
+
>
|
|
2969
|
+
@if(indeterminate()){ {{undefined}} }@else{ {{progressText()}} }
|
|
2970
|
+
</progress></label
|
|
2971
|
+
>
|
|
2972
|
+
@if(!indeterminate()){
|
|
2973
|
+
<span
|
|
2974
|
+
aria-hidden="true"
|
|
2975
|
+
[attr.data-show-progress-text]="getBooleanAsString(showProgressText())"
|
|
2976
|
+
>{{progressText()}}</span
|
|
2977
|
+
>
|
|
2978
|
+
}
|
|
2979
|
+
</div>
|
|
2980
|
+
</div> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
2981
|
+
}
|
|
2982
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBLoadingIndicator, decorators: [{
|
|
2983
|
+
type: Component,
|
|
2984
|
+
args: [{ selector: "db-loading-indicator", standalone: true, imports: [CommonModule], template: `<div
|
|
2985
|
+
#_ref
|
|
2986
|
+
[class]="cls('db-loading-indicator', className())"
|
|
2987
|
+
[ngStyle]="_style()"
|
|
2988
|
+
[attr.data-indeterminate]="getBooleanAsString(indeterminate())"
|
|
2989
|
+
[attr.data-size]="size()"
|
|
2990
|
+
[attr.data-variant]="variant()"
|
|
2991
|
+
[attr.data-delay]="delay()"
|
|
2992
|
+
[attr.data-state]="_loadingState()"
|
|
2993
|
+
[attr.data-overlay]="getBooleanAsString(overlay())"
|
|
2994
|
+
>
|
|
2995
|
+
@if(variant() !== 'progress-bar'){
|
|
2996
|
+
<svg
|
|
2997
|
+
class="db-loading-indicator-circle"
|
|
2998
|
+
aria-hidden="true"
|
|
2999
|
+
[attr.viewBox]="variant() === 'inline' ? '10 10 20 20' : '32 32 64 64'"
|
|
3000
|
+
>
|
|
3001
|
+
<circle class="db-loading-indicator-circle-track"></circle>
|
|
3002
|
+
<circle class="db-loading-indicator-circle-segment"></circle>
|
|
3003
|
+
</svg>
|
|
3004
|
+
}
|
|
3005
|
+
<div [attr.role]="getRole()">
|
|
3006
|
+
<label
|
|
3007
|
+
[attr.data-show-label]="getBooleanAsString(showLabel())"
|
|
3008
|
+
[attr.id]="_id()"
|
|
3009
|
+
>@if(label()){ {{label()}} }@else{
|
|
3010
|
+
<ng-content></ng-content>
|
|
3011
|
+
}
|
|
3012
|
+
<progress
|
|
3013
|
+
[attr.value]="indeterminate() ? undefined : value() ?? 0"
|
|
3014
|
+
[attr.max]="indeterminate() ? undefined : max() ?? 100"
|
|
3015
|
+
>
|
|
3016
|
+
@if(indeterminate()){ {{undefined}} }@else{ {{progressText()}} }
|
|
3017
|
+
</progress></label
|
|
3018
|
+
>
|
|
3019
|
+
@if(!indeterminate()){
|
|
3020
|
+
<span
|
|
3021
|
+
aria-hidden="true"
|
|
3022
|
+
[attr.data-show-progress-text]="getBooleanAsString(showProgressText())"
|
|
3023
|
+
>{{progressText()}}</span
|
|
3024
|
+
>
|
|
3025
|
+
}
|
|
3026
|
+
</div>
|
|
3027
|
+
</div> `, styles: [":host{display:contents}\n"] }]
|
|
3028
|
+
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], autoDisable: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoDisable", required: false }] }], overlay: [{ type: i0.Input, args: [{ isSignal: true, alias: "overlay", required: false }] }], state: [{ type: i0.Input, args: [{ isSignal: true, alias: "state", required: false }] }], indeterminate: [{ type: i0.Input, args: [{ isSignal: true, alias: "indeterminate", required: false }] }], delay: [{ type: i0.Input, args: [{ isSignal: true, alias: "delay", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], role: [{ type: i0.Input, args: [{ isSignal: true, alias: "role", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], showLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLabel", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], progressText: [{ type: i0.Input, args: [{ isSignal: true, alias: "progressText", required: false }] }], showProgressText: [{ type: i0.Input, args: [{ isSignal: true, alias: "showProgressText", required: false }] }], timeout: [{ type: i0.Output, args: ["timeout"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
3029
|
+
|
|
2671
3030
|
const defaultProps$n = {};
|
|
2672
3031
|
class DBTooltip {
|
|
2673
3032
|
handleClick(event) {
|
|
@@ -3467,8 +3826,8 @@ class DBCustomSelect {
|
|
|
3467
3826
|
this.searchLabel = input(...(ngDevMode ? [undefined, { debugName: "searchLabel" }] : []));
|
|
3468
3827
|
this.searchPlaceholder = input(...(ngDevMode ? [undefined, { debugName: "searchPlaceholder" }] : []));
|
|
3469
3828
|
this.listLabel = input(...(ngDevMode ? [undefined, { debugName: "listLabel" }] : []));
|
|
3470
|
-
this.loadingText = input(...(ngDevMode ? [undefined, { debugName: "loadingText" }] : []));
|
|
3471
3829
|
this.noResultsText = input(...(ngDevMode ? [undefined, { debugName: "noResultsText" }] : []));
|
|
3830
|
+
this.loadingText = input(...(ngDevMode ? [undefined, { debugName: "loadingText" }] : []));
|
|
3472
3831
|
this.mobileCloseButtonText = input(...(ngDevMode ? [undefined, { debugName: "mobileCloseButtonText" }] : []));
|
|
3473
3832
|
this.showClearSelection = input(defaultProps$l["showClearSelection"], ...(ngDevMode ? [{ debugName: "showClearSelection" }] : []));
|
|
3474
3833
|
this.clearSelectionText = input(defaultProps$l["clearSelectionText"], ...(ngDevMode ? [{ debugName: "clearSelectionText" }] : []));
|
|
@@ -3862,7 +4221,7 @@ class DBCustomSelect {
|
|
|
3862
4221
|
this.abortController()?.abort();
|
|
3863
4222
|
}
|
|
3864
4223
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBCustomSelect, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3865
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: DBCustomSelect, isStandalone: true, selector: "db-custom-select", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, invalidMessage: { classPropertyName: "invalidMessage", publicName: "invalidMessage", isSignal: true, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null }, showMessage: { classPropertyName: "showMessage", publicName: "showMessage", isSignal: true, isRequired: false, transformFunction: null }, ariaDescribedBy: { classPropertyName: "ariaDescribedBy", publicName: "ariaDescribedBy", isSignal: true, isRequired: false, transformFunction: null }, showNoResults: { classPropertyName: "showNoResults", publicName: "showNoResults", isSignal: true, isRequired: false, transformFunction: null }, showLoading: { classPropertyName: "showLoading", publicName: "showLoading", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, showSelectAll: { classPropertyName: "showSelectAll", publicName: "showSelectAll", isSignal: true, isRequired: false, transformFunction: null }, showSearch: { classPropertyName: "showSearch", publicName: "showSearch", isSignal: true, isRequired: false, transformFunction: null }, values: { classPropertyName: "values", publicName: "values", isSignal: true, isRequired: false, transformFunction: null }, validation: { classPropertyName: "validation", publicName: "validation", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, searchValue: { classPropertyName: "searchValue", publicName: "searchValue", isSignal: true, isRequired: false, transformFunction: null }, selectedLabels: { classPropertyName: "selectedLabels", publicName: "selectedLabels", isSignal: true, isRequired: false, transformFunction: null }, transformSelectedLabels: { classPropertyName: "transformSelectedLabels", publicName: "transformSelectedLabels", isSignal: true, isRequired: false, transformFunction: null }, selectedType: { classPropertyName: "selectedType", publicName: "selectedType", isSignal: true, isRequired: false, transformFunction: null }, amountText: { classPropertyName: "amountText", publicName: "amountText", isSignal: true, isRequired: false, transformFunction: null }, validMessage: { classPropertyName: "validMessage", publicName: "validMessage", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, selectAllLabel: { classPropertyName: "selectAllLabel", publicName: "selectAllLabel", isSignal: true, isRequired: false, transformFunction: null }, removeTagsTexts: { classPropertyName: "removeTagsTexts", publicName: "removeTagsTexts", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, searchFilter: { classPropertyName: "searchFilter", publicName: "searchFilter", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, formFieldWidth: { classPropertyName: "formFieldWidth", publicName: "formFieldWidth", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, showRequiredAsterisk: { classPropertyName: "showRequiredAsterisk", publicName: "showRequiredAsterisk", isSignal: true, isRequired: false, transformFunction: null }, showLabel: { classPropertyName: "showLabel", publicName: "showLabel", 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 }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, form: { classPropertyName: "form", publicName: "form", 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 }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, selectedPrefix: { classPropertyName: "selectedPrefix", publicName: "selectedPrefix", isSignal: true, isRequired: false, transformFunction: null }, dropdownWidth: { classPropertyName: "dropdownWidth", publicName: "dropdownWidth", isSignal: true, isRequired: false, transformFunction: null }, searchLabel: { classPropertyName: "searchLabel", publicName: "searchLabel", isSignal: true, isRequired: false, transformFunction: null }, searchPlaceholder: { classPropertyName: "searchPlaceholder", publicName: "searchPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, listLabel: { classPropertyName: "listLabel", publicName: "listLabel", isSignal: true, isRequired: false, transformFunction: null },
|
|
4224
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: DBCustomSelect, isStandalone: true, selector: "db-custom-select", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, invalidMessage: { classPropertyName: "invalidMessage", publicName: "invalidMessage", isSignal: true, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null }, showMessage: { classPropertyName: "showMessage", publicName: "showMessage", isSignal: true, isRequired: false, transformFunction: null }, ariaDescribedBy: { classPropertyName: "ariaDescribedBy", publicName: "ariaDescribedBy", isSignal: true, isRequired: false, transformFunction: null }, showNoResults: { classPropertyName: "showNoResults", publicName: "showNoResults", isSignal: true, isRequired: false, transformFunction: null }, showLoading: { classPropertyName: "showLoading", publicName: "showLoading", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, showSelectAll: { classPropertyName: "showSelectAll", publicName: "showSelectAll", isSignal: true, isRequired: false, transformFunction: null }, showSearch: { classPropertyName: "showSearch", publicName: "showSearch", isSignal: true, isRequired: false, transformFunction: null }, values: { classPropertyName: "values", publicName: "values", isSignal: true, isRequired: false, transformFunction: null }, validation: { classPropertyName: "validation", publicName: "validation", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, searchValue: { classPropertyName: "searchValue", publicName: "searchValue", isSignal: true, isRequired: false, transformFunction: null }, selectedLabels: { classPropertyName: "selectedLabels", publicName: "selectedLabels", isSignal: true, isRequired: false, transformFunction: null }, transformSelectedLabels: { classPropertyName: "transformSelectedLabels", publicName: "transformSelectedLabels", isSignal: true, isRequired: false, transformFunction: null }, selectedType: { classPropertyName: "selectedType", publicName: "selectedType", isSignal: true, isRequired: false, transformFunction: null }, amountText: { classPropertyName: "amountText", publicName: "amountText", isSignal: true, isRequired: false, transformFunction: null }, validMessage: { classPropertyName: "validMessage", publicName: "validMessage", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, selectAllLabel: { classPropertyName: "selectAllLabel", publicName: "selectAllLabel", isSignal: true, isRequired: false, transformFunction: null }, removeTagsTexts: { classPropertyName: "removeTagsTexts", publicName: "removeTagsTexts", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, searchFilter: { classPropertyName: "searchFilter", publicName: "searchFilter", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, formFieldWidth: { classPropertyName: "formFieldWidth", publicName: "formFieldWidth", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, showRequiredAsterisk: { classPropertyName: "showRequiredAsterisk", publicName: "showRequiredAsterisk", isSignal: true, isRequired: false, transformFunction: null }, showLabel: { classPropertyName: "showLabel", publicName: "showLabel", 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 }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, form: { classPropertyName: "form", publicName: "form", 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 }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, selectedPrefix: { classPropertyName: "selectedPrefix", publicName: "selectedPrefix", isSignal: true, isRequired: false, transformFunction: null }, dropdownWidth: { classPropertyName: "dropdownWidth", publicName: "dropdownWidth", isSignal: true, isRequired: false, transformFunction: null }, searchLabel: { classPropertyName: "searchLabel", publicName: "searchLabel", isSignal: true, isRequired: false, transformFunction: null }, searchPlaceholder: { classPropertyName: "searchPlaceholder", publicName: "searchPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, listLabel: { classPropertyName: "listLabel", publicName: "listLabel", isSignal: true, isRequired: false, transformFunction: null }, noResultsText: { classPropertyName: "noResultsText", publicName: "noResultsText", isSignal: true, isRequired: false, transformFunction: null }, loadingText: { classPropertyName: "loadingText", publicName: "loadingText", isSignal: true, isRequired: false, transformFunction: null }, mobileCloseButtonText: { classPropertyName: "mobileCloseButtonText", publicName: "mobileCloseButtonText", isSignal: true, isRequired: false, transformFunction: null }, showClearSelection: { classPropertyName: "showClearSelection", publicName: "showClearSelection", isSignal: true, isRequired: false, transformFunction: null }, clearSelectionText: { classPropertyName: "clearSelectionText", publicName: "clearSelectionText", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, messageIcon: { classPropertyName: "messageIcon", publicName: "messageIcon", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { values: "valuesChange", disabled: "disabledChange", amountChange: "amountChange", dropdownToggle: "dropdownToggle", optionSelected: "optionSelected", search: "search" }, providers: [{
|
|
3866
4225
|
provide: NG_VALUE_ACCESSOR,
|
|
3867
4226
|
useExisting: DBCustomSelect,
|
|
3868
4227
|
multi: true
|
|
@@ -3957,15 +4316,18 @@ class DBCustomSelect {
|
|
|
3957
4316
|
(input)="handleSearch($event)"
|
|
3958
4317
|
></db-input>
|
|
3959
4318
|
</div>
|
|
3960
|
-
} @if(_hasNoOptions() || showLoading()){
|
|
3961
|
-
<db-
|
|
4319
|
+
} @if(_hasNoOptions() || showLoading()){ @if(showLoading()){
|
|
4320
|
+
<db-loading-indicator
|
|
3962
4321
|
[id]="_infoTextId()"
|
|
3963
|
-
|
|
3964
|
-
[semantic]="showLoading() ? 'informational' : 'warning'"
|
|
3965
|
-
>{{(showLoading() ? loadingText() : noResultsText()) ??
|
|
3966
|
-
DEFAULT_MESSAGE}}</db-infotext
|
|
4322
|
+
>{{loadingText() ?? DEFAULT_MESSAGE}}</db-loading-indicator
|
|
3967
4323
|
>
|
|
3968
4324
|
}@else{
|
|
4325
|
+
<db-infotext
|
|
4326
|
+
semantic="warning"
|
|
4327
|
+
[id]="_infoTextId()"
|
|
4328
|
+
>{{noResultsText() ?? DEFAULT_MESSAGE}}</db-infotext
|
|
4329
|
+
>
|
|
4330
|
+
} }@else{
|
|
3969
4331
|
<ng-container
|
|
3970
4332
|
>@if(selectAllEnabled()){
|
|
3971
4333
|
<div>
|
|
@@ -4071,7 +4433,7 @@ class DBCustomSelect {
|
|
|
4071
4433
|
role="status"
|
|
4072
4434
|
>{{_voiceOverFallback()}}</span
|
|
4073
4435
|
>
|
|
4074
|
-
</div> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBTag, selector: "db-tag", inputs: ["removeButton", "id", "className", "semantic", "emphasis", "icon", "showCheckState", "showIcon", "noText", "overflow", "text", "behavior"], outputs: ["remove"] }, { kind: "component", type: DBCustomSelectDropdown, selector: "db-custom-select-dropdown", inputs: ["id", "className", "width"] }, { kind: "component", type: DBInput, selector: "db-input", inputs: ["id", "invalidMessage", "dataListId", "message", "showMessage", "value", "validMessage", "validation", "required", "minLength", "maxLength", "pattern", "dataList", "className", "variant", "showLabel", "showIconLeading", "showIcon", "iconLeading", "icon", "iconTrailing", "showRequiredAsterisk", "showIconTrailing", "label", "fieldSizing", "name", "type", "multiple", "accept", "placeholder", "disabled", "step", "maxlength", "minlength", "max", "min", "readOnly", "readonly", "form", "size", "autocomplete", "autofocus", "enterkeyhint", "inputmode", "ariaDescribedBy", "messageSize", "messageIcon", "validMessageSize", "invalidMessageSize"], outputs: ["valueChange", "disabledChange", "input", "change", "blur", "focus"] }, { kind: "component", type: DBCustomSelectList, selector: "db-custom-select-list", inputs: ["multiple", "label", "id", "className"] }, { kind: "component", type: DBCustomSelectListItem, selector: "db-custom-select-list-item", inputs: ["id", "isGroupTitle", "showDivider", "type", "checked", "className", "groupTitle", "icon", "showIcon", "name", "disabled", "value", "label"], outputs: ["checkedChange", "disabledChange", "change"] }, { kind: "component", type: DBInfotext, selector: "db-infotext", inputs: ["id", "className", "icon", "semantic", "size", "showIcon", "text"] }, { kind: "component", type: DBButton, selector: "db-button", inputs: ["type", "id", "className", "disabled", "iconLeading", "icon", "showIconLeading", "showIcon", "iconTrailing", "showIconTrailing", "size", "width", "variant", "noText", "name", "form", "value", "text"], outputs: ["click"] }, { kind: "component", type: DBTooltip, selector: "db-tooltip", inputs: ["id", "variant", "placement", "className", "emphasis", "animation", "delay", "width", "showArrow"] }] }); }
|
|
4436
|
+
</div> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBTag, selector: "db-tag", inputs: ["removeButton", "id", "className", "semantic", "emphasis", "icon", "showCheckState", "showIcon", "noText", "overflow", "text", "behavior"], outputs: ["remove"] }, { kind: "component", type: DBCustomSelectDropdown, selector: "db-custom-select-dropdown", inputs: ["id", "className", "width"] }, { kind: "component", type: DBInput, selector: "db-input", inputs: ["id", "invalidMessage", "dataListId", "message", "showMessage", "value", "validMessage", "validation", "required", "minLength", "maxLength", "pattern", "dataList", "className", "variant", "showLabel", "showIconLeading", "showIcon", "iconLeading", "icon", "iconTrailing", "showRequiredAsterisk", "showIconTrailing", "label", "fieldSizing", "name", "type", "multiple", "accept", "placeholder", "disabled", "step", "maxlength", "minlength", "max", "min", "readOnly", "readonly", "form", "size", "autocomplete", "autofocus", "enterkeyhint", "inputmode", "ariaDescribedBy", "messageSize", "messageIcon", "validMessageSize", "invalidMessageSize"], outputs: ["valueChange", "disabledChange", "input", "change", "blur", "focus"] }, { kind: "component", type: DBCustomSelectList, selector: "db-custom-select-list", inputs: ["multiple", "label", "id", "className"] }, { kind: "component", type: DBCustomSelectListItem, selector: "db-custom-select-list-item", inputs: ["id", "isGroupTitle", "showDivider", "type", "checked", "className", "groupTitle", "icon", "showIcon", "name", "disabled", "value", "label"], outputs: ["checkedChange", "disabledChange", "change"] }, { kind: "component", type: DBInfotext, selector: "db-infotext", inputs: ["id", "className", "icon", "semantic", "size", "showIcon", "text"] }, { kind: "component", type: DBLoadingIndicator, selector: "db-loading-indicator", inputs: ["id", "autoDisable", "overlay", "state", "indeterminate", "delay", "value", "max", "role", "className", "size", "variant", "showLabel", "label", "progressText", "showProgressText"], outputs: ["timeout"] }, { kind: "component", type: DBButton, selector: "db-button", inputs: ["type", "id", "className", "disabled", "iconLeading", "icon", "showIconLeading", "showIcon", "iconTrailing", "showIconTrailing", "size", "width", "variant", "noText", "name", "form", "value", "text"], outputs: ["click"] }, { kind: "component", type: DBTooltip, selector: "db-tooltip", inputs: ["id", "variant", "placement", "className", "emphasis", "animation", "delay", "width", "showArrow"] }] }); }
|
|
4075
4437
|
}
|
|
4076
4438
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBCustomSelect, decorators: [{
|
|
4077
4439
|
type: Component,
|
|
@@ -4087,6 +4449,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
4087
4449
|
DBCustomSelectList,
|
|
4088
4450
|
DBCustomSelectListItem,
|
|
4089
4451
|
DBInfotext,
|
|
4452
|
+
DBLoadingIndicator,
|
|
4090
4453
|
DBButton,
|
|
4091
4454
|
DBTooltip,
|
|
4092
4455
|
], template: `<div
|
|
@@ -4180,15 +4543,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
4180
4543
|
(input)="handleSearch($event)"
|
|
4181
4544
|
></db-input>
|
|
4182
4545
|
</div>
|
|
4183
|
-
} @if(_hasNoOptions() || showLoading()){
|
|
4184
|
-
<db-
|
|
4546
|
+
} @if(_hasNoOptions() || showLoading()){ @if(showLoading()){
|
|
4547
|
+
<db-loading-indicator
|
|
4185
4548
|
[id]="_infoTextId()"
|
|
4186
|
-
|
|
4187
|
-
[semantic]="showLoading() ? 'informational' : 'warning'"
|
|
4188
|
-
>{{(showLoading() ? loadingText() : noResultsText()) ??
|
|
4189
|
-
DEFAULT_MESSAGE}}</db-infotext
|
|
4549
|
+
>{{loadingText() ?? DEFAULT_MESSAGE}}</db-loading-indicator
|
|
4190
4550
|
>
|
|
4191
4551
|
}@else{
|
|
4552
|
+
<db-infotext
|
|
4553
|
+
semantic="warning"
|
|
4554
|
+
[id]="_infoTextId()"
|
|
4555
|
+
>{{noResultsText() ?? DEFAULT_MESSAGE}}</db-infotext
|
|
4556
|
+
>
|
|
4557
|
+
} }@else{
|
|
4192
4558
|
<ng-container
|
|
4193
4559
|
>@if(selectAllEnabled()){
|
|
4194
4560
|
<div>
|
|
@@ -4295,7 +4661,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
4295
4661
|
>{{_voiceOverFallback()}}</span
|
|
4296
4662
|
>
|
|
4297
4663
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
4298
|
-
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], invalidMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalidMessage", required: false }] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: false }] }], showMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "showMessage", required: false }] }], ariaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedBy", required: false }] }], showNoResults: [{ type: i0.Input, args: [{ isSignal: true, alias: "showNoResults", required: false }] }], showLoading: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLoading", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], showSelectAll: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSelectAll", required: false }] }], showSearch: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSearch", required: false }] }], values: [{ type: i0.Input, args: [{ isSignal: true, alias: "values", required: false }] }, { type: i0.Output, args: ["valuesChange"] }], validation: [{ type: i0.Input, args: [{ isSignal: true, alias: "validation", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], searchValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchValue", required: false }] }], selectedLabels: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedLabels", required: false }] }], transformSelectedLabels: [{ type: i0.Input, args: [{ isSignal: true, alias: "transformSelectedLabels", required: false }] }], selectedType: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedType", required: false }] }], amountText: [{ type: i0.Input, args: [{ isSignal: true, alias: "amountText", required: false }] }], validMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "validMessage", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], selectAllLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectAllLabel", required: false }] }], removeTagsTexts: [{ type: i0.Input, args: [{ isSignal: true, alias: "removeTagsTexts", required: false }] }], placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "placement", required: false }] }], searchFilter: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchFilter", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], formFieldWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "formFieldWidth", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], showRequiredAsterisk: [{ type: i0.Input, args: [{ isSignal: true, alias: "showRequiredAsterisk", required: false }] }], showLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLabel", 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 }] }], form: [{ type: i0.Input, args: [{ isSignal: true, alias: "form", 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"] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }], selectedPrefix: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedPrefix", required: false }] }], dropdownWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropdownWidth", required: false }] }], searchLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchLabel", required: false }] }], searchPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchPlaceholder", required: false }] }], listLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "listLabel", required: false }] }],
|
|
4664
|
+
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], invalidMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalidMessage", required: false }] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: false }] }], showMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "showMessage", required: false }] }], ariaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedBy", required: false }] }], showNoResults: [{ type: i0.Input, args: [{ isSignal: true, alias: "showNoResults", required: false }] }], showLoading: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLoading", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], showSelectAll: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSelectAll", required: false }] }], showSearch: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSearch", required: false }] }], values: [{ type: i0.Input, args: [{ isSignal: true, alias: "values", required: false }] }, { type: i0.Output, args: ["valuesChange"] }], validation: [{ type: i0.Input, args: [{ isSignal: true, alias: "validation", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], searchValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchValue", required: false }] }], selectedLabels: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedLabels", required: false }] }], transformSelectedLabels: [{ type: i0.Input, args: [{ isSignal: true, alias: "transformSelectedLabels", required: false }] }], selectedType: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedType", required: false }] }], amountText: [{ type: i0.Input, args: [{ isSignal: true, alias: "amountText", required: false }] }], validMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "validMessage", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], selectAllLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectAllLabel", required: false }] }], removeTagsTexts: [{ type: i0.Input, args: [{ isSignal: true, alias: "removeTagsTexts", required: false }] }], placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "placement", required: false }] }], searchFilter: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchFilter", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], formFieldWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "formFieldWidth", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], showRequiredAsterisk: [{ type: i0.Input, args: [{ isSignal: true, alias: "showRequiredAsterisk", required: false }] }], showLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLabel", 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 }] }], form: [{ type: i0.Input, args: [{ isSignal: true, alias: "form", 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"] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }], selectedPrefix: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedPrefix", required: false }] }], dropdownWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropdownWidth", required: false }] }], searchLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchLabel", required: false }] }], searchPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchPlaceholder", required: false }] }], listLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "listLabel", required: false }] }], noResultsText: [{ type: i0.Input, args: [{ isSignal: true, alias: "noResultsText", required: false }] }], loadingText: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingText", required: false }] }], mobileCloseButtonText: [{ type: i0.Input, args: [{ isSignal: true, alias: "mobileCloseButtonText", required: false }] }], showClearSelection: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClearSelection", required: false }] }], clearSelectionText: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearSelectionText", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], messageIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "messageIcon", required: false }] }], amountChange: [{ type: i0.Output, args: ["amountChange"] }], dropdownToggle: [{ type: i0.Output, args: ["dropdownToggle"] }], optionSelected: [{ type: i0.Output, args: ["optionSelected"] }], search: [{ type: i0.Output, args: ["search"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }], selectRef: [{ type: i0.ViewChild, args: ["selectRef", { isSignal: true }] }], detailsRef: [{ type: i0.ViewChild, args: ["detailsRef", { isSignal: true }] }], searchInputRef: [{ type: i0.ViewChild, args: ["searchInputRef", { isSignal: true }] }], selectAllRef: [{ type: i0.ViewChild, args: ["selectAllRef", { isSignal: true }] }] } });
|
|
4299
4665
|
|
|
4300
4666
|
const CustomSelectDropdownWidthList = ['fixed', 'auto', 'full'];
|
|
4301
4667
|
|
|
@@ -5595,14 +5961,16 @@ class DBNotification {
|
|
|
5595
5961
|
}
|
|
5596
5962
|
constructor() {
|
|
5597
5963
|
this.cls = cls;
|
|
5964
|
+
this.getNotificationRole = getNotificationRole;
|
|
5598
5965
|
this.getBoolean = getBoolean;
|
|
5599
5966
|
this.getBooleanAsString = getBooleanAsString;
|
|
5600
5967
|
this.stringPropVisible = stringPropVisible;
|
|
5601
5968
|
this.DEFAULT_CLOSE_BUTTON = DEFAULT_CLOSE_BUTTON;
|
|
5602
5969
|
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
5603
5970
|
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : []));
|
|
5604
|
-
this.ariaLive = input(...(ngDevMode ? [undefined, { debugName: "ariaLive" }] : []));
|
|
5605
5971
|
this.semantic = input(...(ngDevMode ? [undefined, { debugName: "semantic" }] : []));
|
|
5972
|
+
this.role = input(...(ngDevMode ? [undefined, { debugName: "role" }] : []));
|
|
5973
|
+
this.ariaLive = input(...(ngDevMode ? [undefined, { debugName: "ariaLive" }] : []));
|
|
5606
5974
|
this.variant = input(...(ngDevMode ? [undefined, { debugName: "variant" }] : []));
|
|
5607
5975
|
this.showIcon = input(...(ngDevMode ? [undefined, { debugName: "showIcon" }] : []));
|
|
5608
5976
|
this.icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : []));
|
|
@@ -5657,10 +6025,15 @@ class DBNotification {
|
|
|
5657
6025
|
}
|
|
5658
6026
|
}
|
|
5659
6027
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBNotification, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5660
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: DBNotification, isStandalone: true, selector: "db-notification", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null },
|
|
6028
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: DBNotification, isStandalone: true, selector: "db-notification", inputs: { id: { classPropertyName: "id", publicName: "id", 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 }, 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
|
|
5661
6029
|
#_ref
|
|
5662
6030
|
[attr.id]="id()"
|
|
5663
6031
|
[class]="cls('db-notification', className())"
|
|
6032
|
+
[attr.role]="getNotificationRole({
|
|
6033
|
+
semantic: semantic(),
|
|
6034
|
+
role: role(),
|
|
6035
|
+
ariaLive: ariaLive()
|
|
6036
|
+
})"
|
|
5664
6037
|
[attr.aria-live]="ariaLive()"
|
|
5665
6038
|
[attr.data-semantic]="semantic()"
|
|
5666
6039
|
[attr.data-variant]="variant()"
|
|
@@ -5692,14 +6065,19 @@ class DBNotification {
|
|
|
5692
6065
|
>{{closeButtonText() ?? DEFAULT_CLOSE_BUTTON}}</db-button
|
|
5693
6066
|
>
|
|
5694
6067
|
}
|
|
5695
|
-
</
|
|
6068
|
+
</div> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBButton, selector: "db-button", inputs: ["type", "id", "className", "disabled", "iconLeading", "icon", "showIconLeading", "showIcon", "iconTrailing", "showIconTrailing", "size", "width", "variant", "noText", "name", "form", "value", "text"], outputs: ["click"] }] }); }
|
|
5696
6069
|
}
|
|
5697
6070
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBNotification, decorators: [{
|
|
5698
6071
|
type: Component,
|
|
5699
|
-
args: [{ selector: "db-notification", standalone: true, imports: [CommonModule, DBButton], template: `<
|
|
6072
|
+
args: [{ selector: "db-notification", standalone: true, imports: [CommonModule, DBButton], template: `<div
|
|
5700
6073
|
#_ref
|
|
5701
6074
|
[attr.id]="id()"
|
|
5702
6075
|
[class]="cls('db-notification', className())"
|
|
6076
|
+
[attr.role]="getNotificationRole({
|
|
6077
|
+
semantic: semantic(),
|
|
6078
|
+
role: role(),
|
|
6079
|
+
ariaLive: ariaLive()
|
|
6080
|
+
})"
|
|
5703
6081
|
[attr.aria-live]="ariaLive()"
|
|
5704
6082
|
[attr.data-semantic]="semantic()"
|
|
5705
6083
|
[attr.data-variant]="variant()"
|
|
@@ -5731,8 +6109,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
5731
6109
|
>{{closeButtonText() ?? DEFAULT_CLOSE_BUTTON}}</db-button
|
|
5732
6110
|
>
|
|
5733
6111
|
}
|
|
5734
|
-
</
|
|
5735
|
-
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }],
|
|
6112
|
+
</div> `, styles: [":host{display:contents}\n"] }]
|
|
6113
|
+
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], semantic: [{ type: i0.Input, args: [{ isSignal: true, alias: "semantic", required: false }] }], role: [{ type: i0.Input, args: [{ isSignal: true, alias: "role", required: false }] }], ariaLive: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLive", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], linkVariant: [{ type: i0.Input, args: [{ isSignal: true, alias: "linkVariant", required: false }] }], headline: [{ type: i0.Input, args: [{ isSignal: true, alias: "headline", required: false }] }], showHeadline: [{ type: i0.Input, args: [{ isSignal: true, alias: "showHeadline", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], timestamp: [{ type: i0.Input, args: [{ isSignal: true, alias: "timestamp", required: false }] }], showTimestamp: [{ type: i0.Input, args: [{ isSignal: true, alias: "showTimestamp", required: false }] }], closeable: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeable", required: false }] }], closeButtonId: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeButtonId", required: false }] }], closeButtonText: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeButtonText", required: false }] }], close: [{ type: i0.Output, args: ["close"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
5736
6114
|
|
|
5737
6115
|
const NotificationVariantList = ['docked', 'standalone', 'overlay'];
|
|
5738
6116
|
const NotificationLinkVariantList = ['block', 'inline'];
|
|
@@ -6446,6 +6824,17 @@ class DBSelect {
|
|
|
6446
6824
|
getOptionLabel(option) {
|
|
6447
6825
|
return option.label ?? option.value?.toString();
|
|
6448
6826
|
}
|
|
6827
|
+
shouldShowEmptyOption() {
|
|
6828
|
+
const hasPlaceholderOrFloating = this.variant() === "floating" || !!this.placeholder();
|
|
6829
|
+
if (!hasPlaceholderOrFloating) {
|
|
6830
|
+
return false;
|
|
6831
|
+
}
|
|
6832
|
+
if (this.showEmptyOption() !== undefined) {
|
|
6833
|
+
return this.showEmptyOption();
|
|
6834
|
+
}
|
|
6835
|
+
// Default: show empty option for non-required selects
|
|
6836
|
+
return !this.required();
|
|
6837
|
+
}
|
|
6449
6838
|
trackByOptgroupOption0(_, optgroupOption) {
|
|
6450
6839
|
return getOptionKey(optgroupOption, "select-optgroup-option-");
|
|
6451
6840
|
}
|
|
@@ -6468,8 +6857,9 @@ class DBSelect {
|
|
|
6468
6857
|
this.validMessage = input(...(ngDevMode ? [undefined, { debugName: "validMessage" }] : []));
|
|
6469
6858
|
this.validation = input(...(ngDevMode ? [undefined, { debugName: "validation" }] : []));
|
|
6470
6859
|
this.required = input(...(ngDevMode ? [undefined, { debugName: "required" }] : []));
|
|
6471
|
-
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : []));
|
|
6472
6860
|
this.variant = input(...(ngDevMode ? [undefined, { debugName: "variant" }] : []));
|
|
6861
|
+
this.showEmptyOption = input(...(ngDevMode ? [undefined, { debugName: "showEmptyOption" }] : []));
|
|
6862
|
+
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : []));
|
|
6473
6863
|
this.showLabel = input(...(ngDevMode ? [undefined, { debugName: "showLabel" }] : []));
|
|
6474
6864
|
this.showRequiredAsterisk = input(...(ngDevMode ? [undefined, { debugName: "showRequiredAsterisk" }] : []));
|
|
6475
6865
|
this.icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : []));
|
|
@@ -6641,7 +7031,7 @@ class DBSelect {
|
|
|
6641
7031
|
this.abortController()?.abort();
|
|
6642
7032
|
}
|
|
6643
7033
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBSelect, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6644
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: DBSelect, isStandalone: true, selector: "db-select", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, invalidMessage: { classPropertyName: "invalidMessage", publicName: "invalidMessage", isSignal: true, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null }, showMessage: { classPropertyName: "showMessage", publicName: "showMessage", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, validMessage: { classPropertyName: "validMessage", publicName: "validMessage", isSignal: true, isRequired: false, transformFunction: null }, validation: { classPropertyName: "validation", publicName: "validation", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null },
|
|
7034
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: DBSelect, isStandalone: true, selector: "db-select", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, invalidMessage: { classPropertyName: "invalidMessage", publicName: "invalidMessage", isSignal: true, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null }, showMessage: { classPropertyName: "showMessage", publicName: "showMessage", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, validMessage: { classPropertyName: "validMessage", publicName: "validMessage", isSignal: true, isRequired: false, transformFunction: null }, validation: { classPropertyName: "validation", publicName: "validation", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, showEmptyOption: { classPropertyName: "showEmptyOption", publicName: "showEmptyOption", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, showLabel: { classPropertyName: "showLabel", publicName: "showLabel", isSignal: true, isRequired: false, transformFunction: null }, showRequiredAsterisk: { classPropertyName: "showRequiredAsterisk", publicName: "showRequiredAsterisk", 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 }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, ariaDescribedBy: { classPropertyName: "ariaDescribedBy", publicName: "ariaDescribedBy", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, messageIcon: { classPropertyName: "messageIcon", publicName: "messageIcon", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", disabled: "disabledChange", click: "click", input: "input", change: "change", blur: "blur", focus: "focus" }, providers: [{
|
|
6645
7035
|
provide: NG_VALUE_ACCESSOR,
|
|
6646
7036
|
useExisting: DBSelect,
|
|
6647
7037
|
multi: true
|
|
@@ -6673,8 +7063,12 @@ class DBSelect {
|
|
|
6673
7063
|
(focus)="handleFocus($event)"
|
|
6674
7064
|
[attr.aria-describedby]="ariaDescribedBy() ?? _descByIds()"
|
|
6675
7065
|
>
|
|
6676
|
-
@if(variant() === 'floating' || placeholder()){
|
|
6677
|
-
<option
|
|
7066
|
+
@if(variant() === 'floating' || !!placeholder()){
|
|
7067
|
+
<option
|
|
7068
|
+
class="placeholder"
|
|
7069
|
+
value=""
|
|
7070
|
+
[attr.data-show-empty-option]="getBooleanAsString(shouldShowEmptyOption())"
|
|
7071
|
+
></option>
|
|
6678
7072
|
} @if(options()?.length){ @for (option of options();track i;let i =
|
|
6679
7073
|
$index) {
|
|
6680
7074
|
<ng-container
|
|
@@ -6773,8 +7167,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
6773
7167
|
(focus)="handleFocus($event)"
|
|
6774
7168
|
[attr.aria-describedby]="ariaDescribedBy() ?? _descByIds()"
|
|
6775
7169
|
>
|
|
6776
|
-
@if(variant() === 'floating' || placeholder()){
|
|
6777
|
-
<option
|
|
7170
|
+
@if(variant() === 'floating' || !!placeholder()){
|
|
7171
|
+
<option
|
|
7172
|
+
class="placeholder"
|
|
7173
|
+
value=""
|
|
7174
|
+
[attr.data-show-empty-option]="getBooleanAsString(shouldShowEmptyOption())"
|
|
7175
|
+
></option>
|
|
6778
7176
|
} @if(options()?.length){ @for (option of options();track i;let i =
|
|
6779
7177
|
$index) {
|
|
6780
7178
|
<ng-container
|
|
@@ -6838,7 +7236,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
6838
7236
|
>{{_voiceOverFallback()}}</span
|
|
6839
7237
|
>
|
|
6840
7238
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
6841
|
-
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], invalidMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalidMessage", 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 }] }],
|
|
7239
|
+
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], invalidMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalidMessage", 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 }] }] } });
|
|
6842
7240
|
|
|
6843
7241
|
const defaultProps$6 = {};
|
|
6844
7242
|
class DBStack {
|
|
@@ -8386,9 +8784,12 @@ const LinkTargetList = ['_self', '_blank', '_parent', '_top'];
|
|
|
8386
8784
|
const LinkReferrerPolicyList = ['no-referrer', 'no-referrer-when-downgrade', 'origin', 'origin-when-cross-origin', 'same-origin', 'strict-origin', 'strict-origin-when-cross-origin', 'unsafe-url'];
|
|
8387
8785
|
const AlignmentList = ['start', 'center'];
|
|
8388
8786
|
|
|
8787
|
+
const LoadingIndicatorVariantList = ['progress-bar', 'onsite', 'inline'];
|
|
8788
|
+
const LoadingIndicatorStateList = ['inactive', 'active', 'successful', 'critical'];
|
|
8789
|
+
|
|
8389
8790
|
/**
|
|
8390
8791
|
* Generated bundle index. Do not edit.
|
|
8391
8792
|
*/
|
|
8392
8793
|
|
|
8393
|
-
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, 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, getNumber, getOptionKey, getSearchInput, getStep, handleDataOutside, handleFixedDropdown, handleFixedPopover, hasVoiceOver, isArrayOfStrings, isEventTargetNavigationItem, isIOSSafari, isKeyboardEvent, stringPropVisible, uuid };
|
|
8794
|
+
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, DBCustomSelect, DBCustomSelectDropdown, DBCustomSelectFormField, DBCustomSelectList, DBCustomSelectListItem, DBDivider, DBDrawer, DBHeader, DBIcon, DBInfotext, DBInput, DBLink, DBLoadingIndicator, 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, LoadingIndicatorStateList, LoadingIndicatorVariantList, 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 };
|
|
8394
8795
|
//# sourceMappingURL=db-ux-ngx-core-components.mjs.map
|