@db-ux/ngx-core-components 4.5.4-mcp-e4cd7e6 → 4.5.4-table-c758ae7
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.
|
@@ -170,7 +170,7 @@ const getNotificationRole = ({ semantic, role, ariaLive }) => {
|
|
|
170
170
|
}
|
|
171
171
|
};
|
|
172
172
|
|
|
173
|
-
const defaultProps$
|
|
173
|
+
const defaultProps$I = {};
|
|
174
174
|
class DBAccordionItem {
|
|
175
175
|
handleNameAttribute() {
|
|
176
176
|
if (this._ref()?.nativeElement) {
|
|
@@ -327,7 +327,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
|
|
|
327
327
|
</li> `, styles: [":host{display:contents}\n"] }]
|
|
328
328
|
}], ctorParameters: () => [], propDecorators: { defaultOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultOpen", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], headlinePlain: [{ type: i0.Input, args: [{ isSignal: true, alias: "headlinePlain", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], toggle: [{ type: i0.Output, args: ["toggle"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
329
329
|
|
|
330
|
-
const defaultProps$
|
|
330
|
+
const defaultProps$H = {};
|
|
331
331
|
class DBAccordion {
|
|
332
332
|
convertItems() {
|
|
333
333
|
try {
|
|
@@ -622,7 +622,7 @@ const TESTING_VIEWPORTS = [{
|
|
|
622
622
|
const DB_UX_LOCAL_STORAGE_FRAMEWORK = 'db-ux-framework';
|
|
623
623
|
const DB_UX_LOCAL_STORAGE_MODE = 'db-ux-mode';
|
|
624
624
|
|
|
625
|
-
const defaultProps$
|
|
625
|
+
const defaultProps$G = {};
|
|
626
626
|
class DBBadge {
|
|
627
627
|
constructor() {
|
|
628
628
|
this.cls = cls;
|
|
@@ -742,7 +742,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
|
|
|
742
742
|
|
|
743
743
|
const BadgePlacementList = ['inline', 'corner-top-left', 'corner-top-right', 'corner-center-left', 'corner-center-right', 'corner-bottom-left', 'corner-bottom-right'];
|
|
744
744
|
|
|
745
|
-
const defaultProps$
|
|
745
|
+
const defaultProps$F = {};
|
|
746
746
|
class DBBrand {
|
|
747
747
|
constructor() {
|
|
748
748
|
this.DEFAULT_ICON = DEFAULT_ICON;
|
|
@@ -827,7 +827,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
|
|
|
827
827
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
828
828
|
}], ctorParameters: () => [], propDecorators: { hideLogo: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideLogo", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
829
829
|
|
|
830
|
-
const defaultProps$
|
|
830
|
+
const defaultProps$E = {};
|
|
831
831
|
class DBButton {
|
|
832
832
|
getButtonType() {
|
|
833
833
|
if (this.type()) {
|
|
@@ -962,7 +962,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
|
|
|
962
962
|
const ButtonVariantList = ['outlined', 'brand', 'filled', 'ghost'];
|
|
963
963
|
const ButtonTypeList = ['button', 'reset', 'submit'];
|
|
964
964
|
|
|
965
|
-
const defaultProps$
|
|
965
|
+
const defaultProps$D = {};
|
|
966
966
|
class DBCard {
|
|
967
967
|
handleClick(event) {
|
|
968
968
|
if (this.click) {
|
|
@@ -1104,7 +1104,7 @@ const addValueResetEventListener = (element, props, resetFunction, signal) => {
|
|
|
1104
1104
|
}, signal);
|
|
1105
1105
|
};
|
|
1106
1106
|
|
|
1107
|
-
const defaultProps$
|
|
1107
|
+
const defaultProps$C = {};
|
|
1108
1108
|
class DBInfotext {
|
|
1109
1109
|
constructor() {
|
|
1110
1110
|
this.cls = cls;
|
|
@@ -1194,7 +1194,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
|
|
|
1194
1194
|
> `, styles: [":host{display:contents}\n"] }]
|
|
1195
1195
|
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], semantic: [{ type: i0.Input, args: [{ isSignal: true, alias: "semantic", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], wrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "wrap", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
1196
1196
|
|
|
1197
|
-
const defaultProps$
|
|
1197
|
+
const defaultProps$B = {};
|
|
1198
1198
|
class DBCheckbox {
|
|
1199
1199
|
hasValidState() {
|
|
1200
1200
|
return !!(this.validMessage() ?? this.validation() === "valid");
|
|
@@ -1574,7 +1574,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
|
|
|
1574
1574
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
1575
1575
|
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { invalidMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalidMessage", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: false }] }], showMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "showMessage", required: false }] }], indeterminate: [{ type: i0.Input, args: [{ isSignal: true, alias: "indeterminate", required: false }] }], checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }, { type: i0.Output, args: ["checkedChange"] }], validMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "validMessage", required: false }] }], validation: [{ type: i0.Input, args: [{ isSignal: true, alias: "validation", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], showRequiredAsterisk: [{ type: i0.Input, args: [{ isSignal: true, alias: "showRequiredAsterisk", required: false }] }], showLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLabel", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }, { type: i0.Output, args: ["disabledChange"] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], ariaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedBy", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], messageIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "messageIcon", required: false }] }], change: [{ type: i0.Output, args: ["change"] }], blur: [{ type: i0.Output, args: ["blur"] }], focus: [{ type: i0.Output, args: ["focus"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
1576
1576
|
|
|
1577
|
-
const defaultProps$
|
|
1577
|
+
const defaultProps$A = {};
|
|
1578
1578
|
class DBCustomButton {
|
|
1579
1579
|
constructor() {
|
|
1580
1580
|
this.cls = cls;
|
|
@@ -2100,14 +2100,14 @@ const handleFixedPopover = (element, parent, placement) => {
|
|
|
2100
2100
|
element.dataset['correctedPlacement'] = correctedPlacement;
|
|
2101
2101
|
};
|
|
2102
2102
|
|
|
2103
|
-
const defaultProps$
|
|
2103
|
+
const defaultProps$z = { width: "fixed" };
|
|
2104
2104
|
class DBCustomSelectDropdown {
|
|
2105
2105
|
constructor() {
|
|
2106
2106
|
this.cls = cls;
|
|
2107
2107
|
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
2108
2108
|
this.propOverrides = input(...(ngDevMode ? [undefined, { debugName: "propOverrides" }] : []));
|
|
2109
2109
|
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : []));
|
|
2110
|
-
this.width = input(defaultProps$
|
|
2110
|
+
this.width = input(defaultProps$z["width"], ...(ngDevMode ? [{ debugName: "width" }] : []));
|
|
2111
2111
|
this._ref = viewChild("_ref", ...(ngDevMode ? [{ debugName: "_ref" }] : []));
|
|
2112
2112
|
}
|
|
2113
2113
|
/**
|
|
@@ -2176,7 +2176,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
|
|
|
2176
2176
|
</article> `, styles: [":host{display:contents}\n"] }]
|
|
2177
2177
|
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
2178
2178
|
|
|
2179
|
-
const defaultProps$
|
|
2179
|
+
const defaultProps$y = {};
|
|
2180
2180
|
class DBCustomSelectListItem {
|
|
2181
2181
|
handleChange(event) {
|
|
2182
2182
|
event.stopPropagation();
|
|
@@ -2362,7 +2362,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
|
|
|
2362
2362
|
</li> `, styles: [":host{display:contents}\n"] }]
|
|
2363
2363
|
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { isGroupTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "isGroupTitle", required: false }] }], showDivider: [{ type: i0.Input, args: [{ isSignal: true, alias: "showDivider", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }, { type: i0.Output, args: ["checkedChange"] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], groupTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "groupTitle", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }, { type: i0.Output, args: ["disabledChange"] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], change: [{ type: i0.Output, args: ["change"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
2364
2364
|
|
|
2365
|
-
const defaultProps$
|
|
2365
|
+
const defaultProps$x = {};
|
|
2366
2366
|
class DBCustomSelectList {
|
|
2367
2367
|
constructor() {
|
|
2368
2368
|
this.cls = cls;
|
|
@@ -2443,7 +2443,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
|
|
|
2443
2443
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
2444
2444
|
}], ctorParameters: () => [], propDecorators: { multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
2445
2445
|
|
|
2446
|
-
const defaultProps$
|
|
2446
|
+
const defaultProps$w = {};
|
|
2447
2447
|
class DBInput {
|
|
2448
2448
|
hasValidState() {
|
|
2449
2449
|
return !!(this.validMessage() ?? this.validation() === "valid");
|
|
@@ -2931,7 +2931,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
|
|
|
2931
2931
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
2932
2932
|
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { invalidMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalidMessage", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], dataListId: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataListId", required: false }] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: false }] }], showMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "showMessage", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], validMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "validMessage", required: false }] }], validation: [{ type: i0.Input, args: [{ isSignal: true, alias: "validation", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], minLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "minLength", required: false }] }], maxLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxLength", required: false }] }], pattern: [{ type: i0.Input, args: [{ isSignal: true, alias: "pattern", required: false }] }], dataList: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataList", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], showLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLabel", required: false }] }], showIconLeading: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIconLeading", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], iconLeading: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconLeading", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], iconTrailing: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconTrailing", required: false }] }], showRequiredAsterisk: [{ type: i0.Input, args: [{ isSignal: true, alias: "showRequiredAsterisk", required: false }] }], showIconTrailing: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIconTrailing", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], fieldSizing: [{ type: i0.Input, args: [{ isSignal: true, alias: "fieldSizing", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], accept: [{ type: i0.Input, args: [{ isSignal: true, alias: "accept", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }, { type: i0.Output, args: ["disabledChange"] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }], maxlength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxlength", required: false }] }], minlength: [{ type: i0.Input, args: [{ isSignal: true, alias: "minlength", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], readOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readOnly", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], form: [{ type: i0.Input, args: [{ isSignal: true, alias: "form", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], autocomplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocomplete", required: false }] }], autofocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autofocus", required: false }] }], enterkeyhint: [{ type: i0.Input, args: [{ isSignal: true, alias: "enterkeyhint", required: false }] }], inputmode: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputmode", required: false }] }], ariaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedBy", required: false }] }], messageSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "messageSize", required: false }] }], messageIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "messageIcon", required: false }] }], validMessageSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "validMessageSize", required: false }] }], invalidMessageSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalidMessageSize", required: false }] }], input: [{ type: i0.Output, args: ["input"] }], change: [{ type: i0.Output, args: ["change"] }], blur: [{ type: i0.Output, args: ["blur"] }], focus: [{ type: i0.Output, args: ["focus"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
2933
2933
|
|
|
2934
|
-
const defaultProps$
|
|
2934
|
+
const defaultProps$v = {};
|
|
2935
2935
|
class DBTooltip {
|
|
2936
2936
|
handleClick(event) {
|
|
2937
2937
|
event.stopPropagation();
|
|
@@ -3139,7 +3139,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
|
|
|
3139
3139
|
></i> `, styles: [":host{display:contents}\n"] }]
|
|
3140
3140
|
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "placement", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], emphasis: [{ type: i0.Input, args: [{ isSignal: true, alias: "emphasis", required: false }] }], wrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "wrap", required: false }] }], animation: [{ type: i0.Input, args: [{ isSignal: true, alias: "animation", required: false }] }], delay: [{ type: i0.Input, args: [{ isSignal: true, alias: "delay", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], showArrow: [{ type: i0.Input, args: [{ isSignal: true, alias: "showArrow", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
3141
3141
|
|
|
3142
|
-
const defaultProps$
|
|
3142
|
+
const defaultProps$u = {};
|
|
3143
3143
|
class DBTag {
|
|
3144
3144
|
handleRemove(event) {
|
|
3145
3145
|
if (!event)
|
|
@@ -3279,7 +3279,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
|
|
|
3279
3279
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
3280
3280
|
}], ctorParameters: () => [], propDecorators: { removeButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "removeButton", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], semantic: [{ type: i0.Input, args: [{ isSignal: true, alias: "semantic", required: false }] }], emphasis: [{ type: i0.Input, args: [{ isSignal: true, alias: "emphasis", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], showCheckState: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCheckState", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], noText: [{ type: i0.Input, args: [{ isSignal: true, alias: "noText", required: false }] }], overflow: [{ type: i0.Input, args: [{ isSignal: true, alias: "overflow", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], behavior: [{ type: i0.Input, args: [{ isSignal: true, alias: "behavior", required: false }] }], remove: [{ type: i0.Output, args: ["remove"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
3281
3281
|
|
|
3282
|
-
const defaultProps$
|
|
3282
|
+
const defaultProps$t = {
|
|
3283
3283
|
clearSelectionText: "Clear selection",
|
|
3284
3284
|
showClearSelection: true,
|
|
3285
3285
|
};
|
|
@@ -3779,8 +3779,8 @@ class DBCustomSelect {
|
|
|
3779
3779
|
this.loadingText = input(...(ngDevMode ? [undefined, { debugName: "loadingText" }] : []));
|
|
3780
3780
|
this.noResultsText = input(...(ngDevMode ? [undefined, { debugName: "noResultsText" }] : []));
|
|
3781
3781
|
this.mobileCloseButtonText = input(...(ngDevMode ? [undefined, { debugName: "mobileCloseButtonText" }] : []));
|
|
3782
|
-
this.showClearSelection = input(defaultProps$
|
|
3783
|
-
this.clearSelectionText = input(defaultProps$
|
|
3782
|
+
this.showClearSelection = input(defaultProps$t["showClearSelection"], ...(ngDevMode ? [{ debugName: "showClearSelection" }] : []));
|
|
3783
|
+
this.clearSelectionText = input(defaultProps$t["clearSelectionText"], ...(ngDevMode ? [{ debugName: "clearSelectionText" }] : []));
|
|
3784
3784
|
this.placeholder = input(...(ngDevMode ? [undefined, { debugName: "placeholder" }] : []));
|
|
3785
3785
|
this.messageIcon = input(...(ngDevMode ? [undefined, { debugName: "messageIcon" }] : []));
|
|
3786
3786
|
this.amountChange = output();
|
|
@@ -4618,7 +4618,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
|
|
|
4618
4618
|
|
|
4619
4619
|
const CustomSelectDropdownWidthList = ['fixed', 'auto', 'full'];
|
|
4620
4620
|
|
|
4621
|
-
const defaultProps$
|
|
4621
|
+
const defaultProps$s = {};
|
|
4622
4622
|
class DBCustomSelectFormField {
|
|
4623
4623
|
constructor() {
|
|
4624
4624
|
this.cls = cls;
|
|
@@ -4693,7 +4693,7 @@ const CustomSelectListItemTypeList = ['checkbox', 'radio'];
|
|
|
4693
4693
|
|
|
4694
4694
|
const SelectedTypeList = ['amount', 'text', 'tag'];
|
|
4695
4695
|
|
|
4696
|
-
const defaultProps$
|
|
4696
|
+
const defaultProps$r = {};
|
|
4697
4697
|
class DBDivider {
|
|
4698
4698
|
constructor() {
|
|
4699
4699
|
this.cls = cls;
|
|
@@ -4775,7 +4775,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
|
|
|
4775
4775
|
const DividerMarginList = ['none', '_'];
|
|
4776
4776
|
const DividerVariantList = ['horizontal', 'vertical'];
|
|
4777
4777
|
|
|
4778
|
-
const defaultProps$
|
|
4778
|
+
const defaultProps$q = {};
|
|
4779
4779
|
class DBDrawer {
|
|
4780
4780
|
handleClose(event, forceClose) {
|
|
4781
4781
|
if (!event)
|
|
@@ -5183,7 +5183,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
|
|
|
5183
5183
|
}]
|
|
5184
5184
|
}] });
|
|
5185
5185
|
|
|
5186
|
-
const defaultProps$
|
|
5186
|
+
const defaultProps$p = {};
|
|
5187
5187
|
class DBHeader {
|
|
5188
5188
|
handleToggle(event) {
|
|
5189
5189
|
if (event && event.stopPropagation) {
|
|
@@ -5412,7 +5412,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
|
|
|
5412
5412
|
args: [SecondaryActionDirective, { read: TemplateRef }]
|
|
5413
5413
|
}], forceMobile: [{ type: i0.Input, args: [{ isSignal: true, alias: "forceMobile", required: false }] }], drawerOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "drawerOpen", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], closeButtonId: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeButtonId", required: false }] }], closeButtonText: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeButtonText", required: false }] }], burgerMenuLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "burgerMenuLabel", required: false }] }], toggle: [{ type: i0.Output, args: ["toggle"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
5414
5414
|
|
|
5415
|
-
const defaultProps$
|
|
5415
|
+
const defaultProps$o = {};
|
|
5416
5416
|
class DBIcon {
|
|
5417
5417
|
constructor() {
|
|
5418
5418
|
this.cls = cls;
|
|
@@ -5505,7 +5505,7 @@ const InputTypeList = ['color', 'date', 'datetime-local', 'email', 'file',
|
|
|
5505
5505
|
// TODO: move this to own component
|
|
5506
5506
|
'search', 'tel', 'text', 'time', 'url', 'week'];
|
|
5507
5507
|
|
|
5508
|
-
const defaultProps$
|
|
5508
|
+
const defaultProps$n = {};
|
|
5509
5509
|
class DBLink {
|
|
5510
5510
|
constructor() {
|
|
5511
5511
|
this.cls = cls;
|
|
@@ -5623,7 +5623,7 @@ const LinkVariantList = ['adaptive', 'brand', 'inline'];
|
|
|
5623
5623
|
const LinkSizeList = ['medium', 'small'];
|
|
5624
5624
|
const LinkContentList = ['external', 'internal'];
|
|
5625
5625
|
|
|
5626
|
-
const defaultProps$
|
|
5626
|
+
const defaultProps$m = {};
|
|
5627
5627
|
class DBNavigation {
|
|
5628
5628
|
constructor() {
|
|
5629
5629
|
this.cls = cls;
|
|
@@ -5707,7 +5707,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
|
|
|
5707
5707
|
}]
|
|
5708
5708
|
}] });
|
|
5709
5709
|
|
|
5710
|
-
const defaultProps$
|
|
5710
|
+
const defaultProps$l = {};
|
|
5711
5711
|
class DBNavigationItem {
|
|
5712
5712
|
handleNavigationItemClick(event) {
|
|
5713
5713
|
if (event?.target?.nodeName === "A") {
|
|
@@ -5950,7 +5950,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
|
|
|
5950
5950
|
args: [NavigationContentDirective, { read: TemplateRef }]
|
|
5951
5951
|
}], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], subNavigationExpanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "subNavigationExpanded", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], active: [{ type: i0.Input, args: [{ isSignal: true, alias: "active", required: false }] }], wrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "wrap", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], backButtonId: [{ type: i0.Input, args: [{ isSignal: true, alias: "backButtonId", required: false }] }], backButtonText: [{ type: i0.Input, args: [{ isSignal: true, alias: "backButtonText", required: false }] }], click: [{ type: i0.Output, args: ["click"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
5952
5952
|
|
|
5953
|
-
const defaultProps$
|
|
5953
|
+
const defaultProps$k = {};
|
|
5954
5954
|
class DBNotification {
|
|
5955
5955
|
handleClose(event) {
|
|
5956
5956
|
if (!event)
|
|
@@ -6122,7 +6122,7 @@ const NotificationVariantList = ['docked', 'standalone', 'overlay'];
|
|
|
6122
6122
|
const NotificationLinkVariantList = ['block', 'inline'];
|
|
6123
6123
|
const NotificationAriaLiveList = ['assertive', 'polite', 'off'];
|
|
6124
6124
|
|
|
6125
|
-
const defaultProps$
|
|
6125
|
+
const defaultProps$j = {};
|
|
6126
6126
|
class DBPage {
|
|
6127
6127
|
constructor() {
|
|
6128
6128
|
this.cls = cls;
|
|
@@ -6238,7 +6238,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
|
|
|
6238
6238
|
const PageVariantList = ['auto', 'fixed'];
|
|
6239
6239
|
const PageDocumentOverflowList = ['hidden', 'auto'];
|
|
6240
6240
|
|
|
6241
|
-
const defaultProps$
|
|
6241
|
+
const defaultProps$i = {};
|
|
6242
6242
|
class DBPopover {
|
|
6243
6243
|
handleEscape(event) {
|
|
6244
6244
|
if (!event || event.key === "Escape") {
|
|
@@ -6463,7 +6463,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
|
|
|
6463
6463
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
6464
6464
|
}], ctorParameters: () => [], propDecorators: { placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "placement", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], spacing: [{ type: i0.Input, args: [{ isSignal: true, alias: "spacing", required: false }] }], gap: [{ type: i0.Input, args: [{ isSignal: true, alias: "gap", required: false }] }], animation: [{ type: i0.Input, args: [{ isSignal: true, alias: "animation", required: false }] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }], delay: [{ type: i0.Input, args: [{ isSignal: true, alias: "delay", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
6465
6465
|
|
|
6466
|
-
const defaultProps$
|
|
6466
|
+
const defaultProps$h = {};
|
|
6467
6467
|
class DBRadio {
|
|
6468
6468
|
handleInput(event, reset) {
|
|
6469
6469
|
if (this.input) {
|
|
@@ -6712,7 +6712,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
|
|
|
6712
6712
|
> `, styles: [":host{display:contents}\n"] }]
|
|
6713
6713
|
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], showLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLabel", required: false }] }], showRequiredAsterisk: [{ type: i0.Input, args: [{ isSignal: true, alias: "showRequiredAsterisk", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], validation: [{ type: i0.Input, args: [{ isSignal: true, alias: "validation", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }, { type: i0.Output, args: ["disabledChange"] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], input: [{ type: i0.Output, args: ["input"] }], change: [{ type: i0.Output, args: ["change"] }], blur: [{ type: i0.Output, args: ["blur"] }], focus: [{ type: i0.Output, args: ["focus"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
6714
6714
|
|
|
6715
|
-
const defaultProps$
|
|
6715
|
+
const defaultProps$g = {};
|
|
6716
6716
|
class DBSection {
|
|
6717
6717
|
constructor() {
|
|
6718
6718
|
this.cls = cls;
|
|
@@ -6789,7 +6789,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
|
|
|
6789
6789
|
</section> `, styles: [":host{display:contents}\n"] }]
|
|
6790
6790
|
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], spacing: [{ type: i0.Input, args: [{ isSignal: true, alias: "spacing", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
6791
6791
|
|
|
6792
|
-
const defaultProps$
|
|
6792
|
+
const defaultProps$f = {};
|
|
6793
6793
|
class DBSelect {
|
|
6794
6794
|
hasValidState() {
|
|
6795
6795
|
return !!(this.validMessage() ?? this.validation() === "valid");
|
|
@@ -7295,7 +7295,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
|
|
|
7295
7295
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
7296
7296
|
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { invalidMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalidMessage", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: false }] }], showMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "showMessage", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], validMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "validMessage", required: false }] }], validation: [{ type: i0.Input, args: [{ isSignal: true, alias: "validation", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], showEmptyOption: [{ type: i0.Input, args: [{ isSignal: true, alias: "showEmptyOption", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], showLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLabel", required: false }] }], showRequiredAsterisk: [{ type: i0.Input, args: [{ isSignal: true, alias: "showRequiredAsterisk", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }, { type: i0.Output, args: ["disabledChange"] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], autocomplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocomplete", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], ariaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedBy", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], messageIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "messageIcon", required: false }] }], click: [{ type: i0.Output, args: ["click"] }], input: [{ type: i0.Output, args: ["input"] }], change: [{ type: i0.Output, args: ["change"] }], blur: [{ type: i0.Output, args: ["blur"] }], focus: [{ type: i0.Output, args: ["focus"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
7297
7297
|
|
|
7298
|
-
const defaultProps$
|
|
7298
|
+
const defaultProps$e = {};
|
|
7299
7299
|
class DBStack {
|
|
7300
7300
|
constructor() {
|
|
7301
7301
|
this.cls = cls;
|
|
@@ -7390,7 +7390,7 @@ const StackDirectionList = ['row', 'column'];
|
|
|
7390
7390
|
const StackAlignmentList = ['stretch', 'start', 'end', 'center'];
|
|
7391
7391
|
const StackJustifyContentList = ['space-between', 'start', 'end', 'center'];
|
|
7392
7392
|
|
|
7393
|
-
const defaultProps$
|
|
7393
|
+
const defaultProps$d = {};
|
|
7394
7394
|
class DBSwitch {
|
|
7395
7395
|
hasValidState() {
|
|
7396
7396
|
return !!(this.validMessage() ?? this.validation() === "valid");
|
|
@@ -7766,7 +7766,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
|
|
|
7766
7766
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
7767
7767
|
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { invalidMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalidMessage", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], validation: [{ type: i0.Input, args: [{ isSignal: true, alias: "validation", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: false }] }], showMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "showMessage", required: false }] }], validMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "validMessage", required: false }] }], checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }, { type: i0.Output, args: ["checkedChange"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }, { type: i0.Output, args: ["disabledChange"] }], visualAid: [{ type: i0.Input, args: [{ isSignal: true, alias: "visualAid", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], showLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLabel", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], showRequiredAsterisk: [{ type: i0.Input, args: [{ isSignal: true, alias: "showRequiredAsterisk", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], iconLeading: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconLeading", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], iconTrailing: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconTrailing", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], messageIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "messageIcon", required: false }] }], change: [{ type: i0.Output, args: ["change"] }], blur: [{ type: i0.Output, args: ["blur"] }], focus: [{ type: i0.Output, args: ["focus"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
7768
7768
|
|
|
7769
|
-
const defaultProps$
|
|
7769
|
+
const defaultProps$c = {};
|
|
7770
7770
|
class DBTabItem {
|
|
7771
7771
|
setSelectedOnChange(event) {
|
|
7772
7772
|
event.stopPropagation();
|
|
@@ -7980,7 +7980,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
|
|
|
7980
7980
|
</li> `, styles: [":host{display:contents}\n"] }]
|
|
7981
7981
|
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { active: [{ type: i0.Input, args: [{ isSignal: true, alias: "active", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], iconLeading: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconLeading", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], iconTrailing: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconTrailing", required: false }] }], showIconLeading: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIconLeading", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], showIconTrailing: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIconTrailing", required: false }] }], noText: [{ type: i0.Input, args: [{ isSignal: true, alias: "noText", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }, { type: i0.Output, args: ["disabledChange"] }], checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }, { type: i0.Output, args: ["checkedChange"] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], change: [{ type: i0.Output, args: ["change"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
7982
7982
|
|
|
7983
|
-
const defaultProps$
|
|
7983
|
+
const defaultProps$b = {};
|
|
7984
7984
|
class DBTabList {
|
|
7985
7985
|
constructor() {
|
|
7986
7986
|
this.cls = cls;
|
|
@@ -8055,7 +8055,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
|
|
|
8055
8055
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
8056
8056
|
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
8057
8057
|
|
|
8058
|
-
const defaultProps$
|
|
8058
|
+
const defaultProps$a = {};
|
|
8059
8059
|
class DBTabPanel {
|
|
8060
8060
|
constructor() {
|
|
8061
8061
|
this.cls = cls;
|
|
@@ -8129,7 +8129,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
|
|
|
8129
8129
|
</section> `, styles: [":host{display:contents}\n"] }]
|
|
8130
8130
|
}], ctorParameters: () => [], propDecorators: { className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], content: [{ type: i0.Input, args: [{ isSignal: true, alias: "content", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
8131
8131
|
|
|
8132
|
-
const defaultProps$
|
|
8132
|
+
const defaultProps$9 = {};
|
|
8133
8133
|
class DBTabs {
|
|
8134
8134
|
convertTabs() {
|
|
8135
8135
|
try {
|
|
@@ -8474,7 +8474,7 @@ const TabsInitialSelectedModeList = ['auto', 'manually'];
|
|
|
8474
8474
|
|
|
8475
8475
|
const TagBehaviorList = ['static', 'removable'];
|
|
8476
8476
|
|
|
8477
|
-
const defaultProps = {};
|
|
8477
|
+
const defaultProps$8 = {};
|
|
8478
8478
|
class DBTextarea {
|
|
8479
8479
|
hasValidState() {
|
|
8480
8480
|
return !!(this.validMessage() ?? this.validation() === "valid");
|
|
@@ -8906,11 +8906,992 @@ const LabelVariantHorizontalList = ['leading', 'trailing'];
|
|
|
8906
8906
|
const AutoCompleteList = ['off', 'on', 'name', 'honorific-prefix', 'given-name', 'additional-name', 'family-name', 'honorific-suffix', 'nickname', 'email', 'username', 'new-password', 'current-password', 'one-time-code', 'organization-title', 'organization', 'street-address', 'shipping', 'billing', 'address-line1', 'address-line2', 'address-line3', 'address-level4', 'address-level3', 'address-level2', 'address-level1', 'country', 'country-name', 'postal-code', 'cc-name', 'cc-given-name', 'cc-additional-name', 'cc-family-name', 'cc-number', 'cc-exp', 'cc-exp-month', 'cc-exp-year', 'cc-csc', 'cc-type', 'transaction-currency', 'transaction-amount', 'language', 'bday', 'bday-day', 'bday-month', 'bday-year', 'sex', 'tel', 'tel-country-code', 'tel-national', 'tel-area-code', 'tel-local', 'tel-extension', 'impp', 'url', 'photo', 'webauthn'];
|
|
8907
8907
|
const LinkTargetList = ['_self', '_blank', '_parent', '_top'];
|
|
8908
8908
|
const LinkReferrerPolicyList = ['no-referrer', 'no-referrer-when-downgrade', 'origin', 'origin-when-cross-origin', 'same-origin', 'strict-origin', 'strict-origin-when-cross-origin', 'unsafe-url'];
|
|
8909
|
-
const AlignmentList = ['start', 'center'];
|
|
8909
|
+
const AlignmentList = ['start', 'center', 'end'];
|
|
8910
|
+
|
|
8911
|
+
const defaultProps$7 = {};
|
|
8912
|
+
class DBTableDataCell {
|
|
8913
|
+
constructor() {
|
|
8914
|
+
this.cls = cls;
|
|
8915
|
+
this.getNumber = getNumber;
|
|
8916
|
+
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
8917
|
+
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : []));
|
|
8918
|
+
this.horizontalAlignment = input(...(ngDevMode ? [undefined, { debugName: "horizontalAlignment" }] : []));
|
|
8919
|
+
this.verticalAlignment = input(...(ngDevMode ? [undefined, { debugName: "verticalAlignment" }] : []));
|
|
8920
|
+
this.colSpan = input(...(ngDevMode ? [undefined, { debugName: "colSpan" }] : []));
|
|
8921
|
+
this.colspan = input(...(ngDevMode ? [undefined, { debugName: "colspan" }] : []));
|
|
8922
|
+
this.rowSpan = input(...(ngDevMode ? [undefined, { debugName: "rowSpan" }] : []));
|
|
8923
|
+
this.rowspan = input(...(ngDevMode ? [undefined, { debugName: "rowspan" }] : []));
|
|
8924
|
+
this.headers = input(...(ngDevMode ? [undefined, { debugName: "headers" }] : []));
|
|
8925
|
+
this._ref = viewChild("_ref", ...(ngDevMode ? [{ debugName: "_ref" }] : []));
|
|
8926
|
+
}
|
|
8927
|
+
/**
|
|
8928
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
8929
|
+
* @param element the ref for the component
|
|
8930
|
+
* @param customElementSelector the custom element like `my-component`
|
|
8931
|
+
*/
|
|
8932
|
+
enableAttributePassing(element, customElementSelector) {
|
|
8933
|
+
const parent = element?.closest(customElementSelector);
|
|
8934
|
+
if (element && parent) {
|
|
8935
|
+
const attributes = parent.attributes;
|
|
8936
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
8937
|
+
const attr = attributes.item(i);
|
|
8938
|
+
if (attr && attr.name !== 'data-density' &&
|
|
8939
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
8940
|
+
element.setAttribute(attr.name, attr.value);
|
|
8941
|
+
parent.removeAttribute(attr.name);
|
|
8942
|
+
}
|
|
8943
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
8944
|
+
element.setAttribute(attr.name, attr.value);
|
|
8945
|
+
parent.removeAttribute(attr.name);
|
|
8946
|
+
}
|
|
8947
|
+
else if (attr && attr.name === "class") {
|
|
8948
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
8949
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
8950
|
+
const currentClass = element.getAttribute("class");
|
|
8951
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
8952
|
+
if (isWebComponent) {
|
|
8953
|
+
// Stencil is using this class for lazy loading component
|
|
8954
|
+
parent.setAttribute("class", "hydrated");
|
|
8955
|
+
}
|
|
8956
|
+
else {
|
|
8957
|
+
parent.removeAttribute(attr.name);
|
|
8958
|
+
}
|
|
8959
|
+
}
|
|
8960
|
+
}
|
|
8961
|
+
}
|
|
8962
|
+
}
|
|
8963
|
+
ngAfterViewInit() {
|
|
8964
|
+
if (typeof window !== "undefined") {
|
|
8965
|
+
const element = this._ref()?.nativeElement;
|
|
8966
|
+
this.enableAttributePassing(element, "db-table-data-cell");
|
|
8967
|
+
}
|
|
8968
|
+
}
|
|
8969
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DBTableDataCell, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8970
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.18", type: DBTableDataCell, isStandalone: true, selector: "db-table-data-cell", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, horizontalAlignment: { classPropertyName: "horizontalAlignment", publicName: "horizontalAlignment", isSignal: true, isRequired: false, transformFunction: null }, verticalAlignment: { classPropertyName: "verticalAlignment", publicName: "verticalAlignment", isSignal: true, isRequired: false, transformFunction: null }, colSpan: { classPropertyName: "colSpan", publicName: "colSpan", isSignal: true, isRequired: false, transformFunction: null }, colspan: { classPropertyName: "colspan", publicName: "colspan", isSignal: true, isRequired: false, transformFunction: null }, rowSpan: { classPropertyName: "rowSpan", publicName: "rowSpan", isSignal: true, isRequired: false, transformFunction: null }, rowspan: { classPropertyName: "rowspan", publicName: "rowspan", isSignal: true, isRequired: false, transformFunction: null }, headers: { classPropertyName: "headers", publicName: "headers", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<td
|
|
8971
|
+
#_ref
|
|
8972
|
+
[attr.id]="id()"
|
|
8973
|
+
[class]="cls('db-table-data-cell', className())"
|
|
8974
|
+
[attr.data-horizontal-alignment]="horizontalAlignment()"
|
|
8975
|
+
[attr.data-vertical-alignment]="verticalAlignment()"
|
|
8976
|
+
[attr.colSpan]="getNumber(colSpan(), colspan())"
|
|
8977
|
+
[attr.rowSpan]="getNumber(rowSpan(), rowspan())"
|
|
8978
|
+
[attr.headers]="headers()"
|
|
8979
|
+
>
|
|
8980
|
+
<ng-content></ng-content>
|
|
8981
|
+
</td> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
8982
|
+
}
|
|
8983
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DBTableDataCell, decorators: [{
|
|
8984
|
+
type: Component,
|
|
8985
|
+
args: [{ selector: "db-table-data-cell", standalone: true, imports: [CommonModule], template: `<td
|
|
8986
|
+
#_ref
|
|
8987
|
+
[attr.id]="id()"
|
|
8988
|
+
[class]="cls('db-table-data-cell', className())"
|
|
8989
|
+
[attr.data-horizontal-alignment]="horizontalAlignment()"
|
|
8990
|
+
[attr.data-vertical-alignment]="verticalAlignment()"
|
|
8991
|
+
[attr.colSpan]="getNumber(colSpan(), colspan())"
|
|
8992
|
+
[attr.rowSpan]="getNumber(rowSpan(), rowspan())"
|
|
8993
|
+
[attr.headers]="headers()"
|
|
8994
|
+
>
|
|
8995
|
+
<ng-content></ng-content>
|
|
8996
|
+
</td> `, styles: [":host{display:contents}\n"] }]
|
|
8997
|
+
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], horizontalAlignment: [{ type: i0.Input, args: [{ isSignal: true, alias: "horizontalAlignment", required: false }] }], verticalAlignment: [{ type: i0.Input, args: [{ isSignal: true, alias: "verticalAlignment", required: false }] }], colSpan: [{ type: i0.Input, args: [{ isSignal: true, alias: "colSpan", required: false }] }], colspan: [{ type: i0.Input, args: [{ isSignal: true, alias: "colspan", required: false }] }], rowSpan: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowSpan", required: false }] }], rowspan: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowspan", required: false }] }], headers: [{ type: i0.Input, args: [{ isSignal: true, alias: "headers", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
8998
|
+
|
|
8999
|
+
const defaultProps$6 = {};
|
|
9000
|
+
class DBTableHeaderCell {
|
|
9001
|
+
constructor() {
|
|
9002
|
+
this.cls = cls;
|
|
9003
|
+
this.getBooleanAsString = getBooleanAsString;
|
|
9004
|
+
this.getNumber = getNumber;
|
|
9005
|
+
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
9006
|
+
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : []));
|
|
9007
|
+
this.horizontalAlignment = input(...(ngDevMode ? [undefined, { debugName: "horizontalAlignment" }] : []));
|
|
9008
|
+
this.verticalAlignment = input(...(ngDevMode ? [undefined, { debugName: "verticalAlignment" }] : []));
|
|
9009
|
+
this.noText = input(...(ngDevMode ? [undefined, { debugName: "noText" }] : []));
|
|
9010
|
+
this.scope = input(...(ngDevMode ? [undefined, { debugName: "scope" }] : []));
|
|
9011
|
+
this.colSpan = input(...(ngDevMode ? [undefined, { debugName: "colSpan" }] : []));
|
|
9012
|
+
this.colspan = input(...(ngDevMode ? [undefined, { debugName: "colspan" }] : []));
|
|
9013
|
+
this.rowSpan = input(...(ngDevMode ? [undefined, { debugName: "rowSpan" }] : []));
|
|
9014
|
+
this.rowspan = input(...(ngDevMode ? [undefined, { debugName: "rowspan" }] : []));
|
|
9015
|
+
this.headers = input(...(ngDevMode ? [undefined, { debugName: "headers" }] : []));
|
|
9016
|
+
this.abbr = input(...(ngDevMode ? [undefined, { debugName: "abbr" }] : []));
|
|
9017
|
+
this._ref = viewChild("_ref", ...(ngDevMode ? [{ debugName: "_ref" }] : []));
|
|
9018
|
+
}
|
|
9019
|
+
/**
|
|
9020
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
9021
|
+
* @param element the ref for the component
|
|
9022
|
+
* @param customElementSelector the custom element like `my-component`
|
|
9023
|
+
*/
|
|
9024
|
+
enableAttributePassing(element, customElementSelector) {
|
|
9025
|
+
const parent = element?.closest(customElementSelector);
|
|
9026
|
+
if (element && parent) {
|
|
9027
|
+
const attributes = parent.attributes;
|
|
9028
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
9029
|
+
const attr = attributes.item(i);
|
|
9030
|
+
if (attr && attr.name !== 'data-density' &&
|
|
9031
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
9032
|
+
element.setAttribute(attr.name, attr.value);
|
|
9033
|
+
parent.removeAttribute(attr.name);
|
|
9034
|
+
}
|
|
9035
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
9036
|
+
element.setAttribute(attr.name, attr.value);
|
|
9037
|
+
parent.removeAttribute(attr.name);
|
|
9038
|
+
}
|
|
9039
|
+
else if (attr && attr.name === "class") {
|
|
9040
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
9041
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
9042
|
+
const currentClass = element.getAttribute("class");
|
|
9043
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
9044
|
+
if (isWebComponent) {
|
|
9045
|
+
// Stencil is using this class for lazy loading component
|
|
9046
|
+
parent.setAttribute("class", "hydrated");
|
|
9047
|
+
}
|
|
9048
|
+
else {
|
|
9049
|
+
parent.removeAttribute(attr.name);
|
|
9050
|
+
}
|
|
9051
|
+
}
|
|
9052
|
+
}
|
|
9053
|
+
}
|
|
9054
|
+
}
|
|
9055
|
+
ngAfterViewInit() {
|
|
9056
|
+
if (typeof window !== "undefined") {
|
|
9057
|
+
const element = this._ref()?.nativeElement;
|
|
9058
|
+
this.enableAttributePassing(element, "db-table-header-cell");
|
|
9059
|
+
}
|
|
9060
|
+
}
|
|
9061
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DBTableHeaderCell, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9062
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.18", type: DBTableHeaderCell, isStandalone: true, selector: "db-table-header-cell", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, horizontalAlignment: { classPropertyName: "horizontalAlignment", publicName: "horizontalAlignment", isSignal: true, isRequired: false, transformFunction: null }, verticalAlignment: { classPropertyName: "verticalAlignment", publicName: "verticalAlignment", isSignal: true, isRequired: false, transformFunction: null }, noText: { classPropertyName: "noText", publicName: "noText", isSignal: true, isRequired: false, transformFunction: null }, scope: { classPropertyName: "scope", publicName: "scope", isSignal: true, isRequired: false, transformFunction: null }, colSpan: { classPropertyName: "colSpan", publicName: "colSpan", isSignal: true, isRequired: false, transformFunction: null }, colspan: { classPropertyName: "colspan", publicName: "colspan", isSignal: true, isRequired: false, transformFunction: null }, rowSpan: { classPropertyName: "rowSpan", publicName: "rowSpan", isSignal: true, isRequired: false, transformFunction: null }, rowspan: { classPropertyName: "rowspan", publicName: "rowspan", isSignal: true, isRequired: false, transformFunction: null }, headers: { classPropertyName: "headers", publicName: "headers", isSignal: true, isRequired: false, transformFunction: null }, abbr: { classPropertyName: "abbr", publicName: "abbr", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<th
|
|
9063
|
+
#_ref
|
|
9064
|
+
[attr.id]="id()"
|
|
9065
|
+
[class]="cls('db-table-header-cell', className())"
|
|
9066
|
+
[attr.data-horizontal-alignment]="horizontalAlignment()"
|
|
9067
|
+
[attr.data-vertical-alignment]="verticalAlignment()"
|
|
9068
|
+
[attr.data-no-text]="getBooleanAsString(noText())"
|
|
9069
|
+
[attr.scope]="scope()"
|
|
9070
|
+
[attr.colSpan]="getNumber(colSpan(), colspan())"
|
|
9071
|
+
[attr.rowSpan]="getNumber(rowSpan(), rowspan())"
|
|
9072
|
+
[attr.headers]="headers()"
|
|
9073
|
+
[attr.abbr]="abbr()"
|
|
9074
|
+
>
|
|
9075
|
+
<ng-content></ng-content>
|
|
9076
|
+
</th> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
9077
|
+
}
|
|
9078
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DBTableHeaderCell, decorators: [{
|
|
9079
|
+
type: Component,
|
|
9080
|
+
args: [{ selector: "db-table-header-cell", standalone: true, imports: [CommonModule], template: `<th
|
|
9081
|
+
#_ref
|
|
9082
|
+
[attr.id]="id()"
|
|
9083
|
+
[class]="cls('db-table-header-cell', className())"
|
|
9084
|
+
[attr.data-horizontal-alignment]="horizontalAlignment()"
|
|
9085
|
+
[attr.data-vertical-alignment]="verticalAlignment()"
|
|
9086
|
+
[attr.data-no-text]="getBooleanAsString(noText())"
|
|
9087
|
+
[attr.scope]="scope()"
|
|
9088
|
+
[attr.colSpan]="getNumber(colSpan(), colspan())"
|
|
9089
|
+
[attr.rowSpan]="getNumber(rowSpan(), rowspan())"
|
|
9090
|
+
[attr.headers]="headers()"
|
|
9091
|
+
[attr.abbr]="abbr()"
|
|
9092
|
+
>
|
|
9093
|
+
<ng-content></ng-content>
|
|
9094
|
+
</th> `, styles: [":host{display:contents}\n"] }]
|
|
9095
|
+
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], horizontalAlignment: [{ type: i0.Input, args: [{ isSignal: true, alias: "horizontalAlignment", required: false }] }], verticalAlignment: [{ type: i0.Input, args: [{ isSignal: true, alias: "verticalAlignment", required: false }] }], noText: [{ type: i0.Input, args: [{ isSignal: true, alias: "noText", required: false }] }], scope: [{ type: i0.Input, args: [{ isSignal: true, alias: "scope", required: false }] }], colSpan: [{ type: i0.Input, args: [{ isSignal: true, alias: "colSpan", required: false }] }], colspan: [{ type: i0.Input, args: [{ isSignal: true, alias: "colspan", required: false }] }], rowSpan: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowSpan", required: false }] }], rowspan: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowspan", required: false }] }], headers: [{ type: i0.Input, args: [{ isSignal: true, alias: "headers", required: false }] }], abbr: [{ type: i0.Input, args: [{ isSignal: true, alias: "abbr", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
9096
|
+
|
|
9097
|
+
const defaultProps$5 = {};
|
|
9098
|
+
class DBTableRow {
|
|
9099
|
+
getHeaderCell(cell) {
|
|
9100
|
+
if (cell.headerCell) {
|
|
9101
|
+
return cell;
|
|
9102
|
+
}
|
|
9103
|
+
return undefined;
|
|
9104
|
+
}
|
|
9105
|
+
constructor() {
|
|
9106
|
+
this.cls = cls;
|
|
9107
|
+
this.getBooleanAsString = getBooleanAsString;
|
|
9108
|
+
this.uuid = uuid;
|
|
9109
|
+
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
9110
|
+
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : []));
|
|
9111
|
+
this.interactive = input(...(ngDevMode ? [undefined, { debugName: "interactive" }] : []));
|
|
9112
|
+
this.subHeaderEmphasis = input(...(ngDevMode ? [undefined, { debugName: "subHeaderEmphasis" }] : []));
|
|
9113
|
+
this.cells = input(...(ngDevMode ? [undefined, { debugName: "cells" }] : []));
|
|
9114
|
+
this._ref = viewChild("_ref", ...(ngDevMode ? [{ debugName: "_ref" }] : []));
|
|
9115
|
+
}
|
|
9116
|
+
/**
|
|
9117
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
9118
|
+
* @param element the ref for the component
|
|
9119
|
+
* @param customElementSelector the custom element like `my-component`
|
|
9120
|
+
*/
|
|
9121
|
+
enableAttributePassing(element, customElementSelector) {
|
|
9122
|
+
const parent = element?.closest(customElementSelector);
|
|
9123
|
+
if (element && parent) {
|
|
9124
|
+
const attributes = parent.attributes;
|
|
9125
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
9126
|
+
const attr = attributes.item(i);
|
|
9127
|
+
if (attr && attr.name !== 'data-density' &&
|
|
9128
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
9129
|
+
element.setAttribute(attr.name, attr.value);
|
|
9130
|
+
parent.removeAttribute(attr.name);
|
|
9131
|
+
}
|
|
9132
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
9133
|
+
element.setAttribute(attr.name, attr.value);
|
|
9134
|
+
parent.removeAttribute(attr.name);
|
|
9135
|
+
}
|
|
9136
|
+
else if (attr && attr.name === "class") {
|
|
9137
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
9138
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
9139
|
+
const currentClass = element.getAttribute("class");
|
|
9140
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
9141
|
+
if (isWebComponent) {
|
|
9142
|
+
// Stencil is using this class for lazy loading component
|
|
9143
|
+
parent.setAttribute("class", "hydrated");
|
|
9144
|
+
}
|
|
9145
|
+
else {
|
|
9146
|
+
parent.removeAttribute(attr.name);
|
|
9147
|
+
}
|
|
9148
|
+
}
|
|
9149
|
+
}
|
|
9150
|
+
}
|
|
9151
|
+
}
|
|
9152
|
+
ngAfterViewInit() {
|
|
9153
|
+
if (typeof window !== "undefined") {
|
|
9154
|
+
const element = this._ref()?.nativeElement;
|
|
9155
|
+
this.enableAttributePassing(element, "db-table-row");
|
|
9156
|
+
}
|
|
9157
|
+
}
|
|
9158
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DBTableRow, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9159
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.18", type: DBTableRow, isStandalone: true, selector: "db-table-row", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, interactive: { classPropertyName: "interactive", publicName: "interactive", isSignal: true, isRequired: false, transformFunction: null }, subHeaderEmphasis: { classPropertyName: "subHeaderEmphasis", publicName: "subHeaderEmphasis", isSignal: true, isRequired: false, transformFunction: null }, cells: { classPropertyName: "cells", publicName: "cells", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<tr
|
|
9160
|
+
#_ref
|
|
9161
|
+
[attr.id]="id()"
|
|
9162
|
+
[class]="cls('db-table-row', className())"
|
|
9163
|
+
[attr.data-interactive]="getBooleanAsString(interactive())"
|
|
9164
|
+
[attr.data-sub-header-emphasis]="subHeaderEmphasis()"
|
|
9165
|
+
>
|
|
9166
|
+
@if(cells()){ @for (cell of cells();track index;let index = $index) {
|
|
9167
|
+
@if(cell.headerCell){
|
|
9168
|
+
<db-table-header-cell
|
|
9169
|
+
[id]="cell.id"
|
|
9170
|
+
[abbr]="getHeaderCell(cell)?.abbr"
|
|
9171
|
+
[scope]="getHeaderCell(cell)?.scope"
|
|
9172
|
+
[noText]="getHeaderCell(cell)?.noText"
|
|
9173
|
+
[className]="cell.className ?? cell.class"
|
|
9174
|
+
[horizontalAlignment]="cell.horizontalAlignment"
|
|
9175
|
+
[verticalAlignment]="cell.verticalAlignment"
|
|
9176
|
+
[headers]="cell.headers"
|
|
9177
|
+
[colSpan]="cell.colSpan"
|
|
9178
|
+
[colspan]="cell.colspan"
|
|
9179
|
+
[rowSpan]="cell.rowSpan"
|
|
9180
|
+
[rowspan]="cell.rowspan"
|
|
9181
|
+
>@if(cell.link){
|
|
9182
|
+
<db-link
|
|
9183
|
+
[content]="cell.link?.content"
|
|
9184
|
+
[size]="cell.link?.size"
|
|
9185
|
+
[variant]="cell.link?.variant"
|
|
9186
|
+
[className]="cell.link?.className ?? cell.link?.class"
|
|
9187
|
+
[id]="cell.link?.id"
|
|
9188
|
+
[autofocus]="cell.link?.autofocus"
|
|
9189
|
+
[disabled]="cell.link?.disabled"
|
|
9190
|
+
[href]="cell.link?.href"
|
|
9191
|
+
[hreflang]="cell.link?.hreflang"
|
|
9192
|
+
[target]="cell.link?.target"
|
|
9193
|
+
[rel]="cell.link?.rel"
|
|
9194
|
+
[referrerPolicy]="cell.link?.referrerPolicy"
|
|
9195
|
+
[role]="cell.link?.role"
|
|
9196
|
+
[showIcon]="cell.link?.showIcon"
|
|
9197
|
+
[text]="cell.link?.text"
|
|
9198
|
+
[wrap]="cell.link?.wrap"
|
|
9199
|
+
>{{cell.link?.children}}</db-link
|
|
9200
|
+
>
|
|
9201
|
+
}@else{{{cell.content}}}</db-table-header-cell
|
|
9202
|
+
>
|
|
9203
|
+
}@else{
|
|
9204
|
+
<db-table-data-cell
|
|
9205
|
+
[id]="cell.id"
|
|
9206
|
+
[className]="cell.className ?? cell.class"
|
|
9207
|
+
[horizontalAlignment]="cell.horizontalAlignment"
|
|
9208
|
+
[verticalAlignment]="cell.verticalAlignment"
|
|
9209
|
+
[headers]="cell.headers"
|
|
9210
|
+
[colSpan]="cell.colSpan"
|
|
9211
|
+
[colspan]="cell.colspan"
|
|
9212
|
+
[rowSpan]="cell.rowSpan"
|
|
9213
|
+
[rowspan]="cell.rowspan"
|
|
9214
|
+
>@if(cell.link){
|
|
9215
|
+
<db-link
|
|
9216
|
+
[content]="cell.link?.content"
|
|
9217
|
+
[size]="cell.link?.size"
|
|
9218
|
+
[variant]="cell.link?.variant"
|
|
9219
|
+
[className]="cell.link?.className ?? cell.link?.class"
|
|
9220
|
+
[id]="cell.link?.id"
|
|
9221
|
+
[autofocus]="cell.link?.autofocus"
|
|
9222
|
+
[disabled]="cell.link?.disabled"
|
|
9223
|
+
[href]="cell.link?.href"
|
|
9224
|
+
[hreflang]="cell.link?.hreflang"
|
|
9225
|
+
[target]="cell.link?.target"
|
|
9226
|
+
[rel]="cell.link?.rel"
|
|
9227
|
+
[referrerPolicy]="cell.link?.referrerPolicy"
|
|
9228
|
+
[role]="cell.link?.role"
|
|
9229
|
+
[showIcon]="cell.link?.showIcon"
|
|
9230
|
+
[text]="cell.link?.text"
|
|
9231
|
+
[wrap]="cell.link?.wrap"
|
|
9232
|
+
>{{cell.link?.children}}</db-link
|
|
9233
|
+
>
|
|
9234
|
+
}@else{{{cell.content}}}</db-table-data-cell
|
|
9235
|
+
>
|
|
9236
|
+
} } }@else{
|
|
9237
|
+
<ng-content></ng-content>
|
|
9238
|
+
}
|
|
9239
|
+
</tr> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBTableDataCell, selector: "db-table-data-cell", inputs: ["id", "className", "horizontalAlignment", "verticalAlignment", "colSpan", "colspan", "rowSpan", "rowspan", "headers"] }, { kind: "component", type: DBLink, selector: "db-link", inputs: ["id", "propOverrides", "className", "href", "target", "rel", "role", "referrerpolicy", "referrerPolicy", "hreflang", "disabled", "size", "showIcon", "variant", "content", "wrap", "text"] }, { kind: "component", type: DBTableHeaderCell, selector: "db-table-header-cell", inputs: ["id", "className", "horizontalAlignment", "verticalAlignment", "noText", "scope", "colSpan", "colspan", "rowSpan", "rowspan", "headers", "abbr"] }] }); }
|
|
9240
|
+
}
|
|
9241
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DBTableRow, decorators: [{
|
|
9242
|
+
type: Component,
|
|
9243
|
+
args: [{ selector: "db-table-row", standalone: true, imports: [CommonModule, DBTableDataCell, DBLink, DBTableHeaderCell], template: `<tr
|
|
9244
|
+
#_ref
|
|
9245
|
+
[attr.id]="id()"
|
|
9246
|
+
[class]="cls('db-table-row', className())"
|
|
9247
|
+
[attr.data-interactive]="getBooleanAsString(interactive())"
|
|
9248
|
+
[attr.data-sub-header-emphasis]="subHeaderEmphasis()"
|
|
9249
|
+
>
|
|
9250
|
+
@if(cells()){ @for (cell of cells();track index;let index = $index) {
|
|
9251
|
+
@if(cell.headerCell){
|
|
9252
|
+
<db-table-header-cell
|
|
9253
|
+
[id]="cell.id"
|
|
9254
|
+
[abbr]="getHeaderCell(cell)?.abbr"
|
|
9255
|
+
[scope]="getHeaderCell(cell)?.scope"
|
|
9256
|
+
[noText]="getHeaderCell(cell)?.noText"
|
|
9257
|
+
[className]="cell.className ?? cell.class"
|
|
9258
|
+
[horizontalAlignment]="cell.horizontalAlignment"
|
|
9259
|
+
[verticalAlignment]="cell.verticalAlignment"
|
|
9260
|
+
[headers]="cell.headers"
|
|
9261
|
+
[colSpan]="cell.colSpan"
|
|
9262
|
+
[colspan]="cell.colspan"
|
|
9263
|
+
[rowSpan]="cell.rowSpan"
|
|
9264
|
+
[rowspan]="cell.rowspan"
|
|
9265
|
+
>@if(cell.link){
|
|
9266
|
+
<db-link
|
|
9267
|
+
[content]="cell.link?.content"
|
|
9268
|
+
[size]="cell.link?.size"
|
|
9269
|
+
[variant]="cell.link?.variant"
|
|
9270
|
+
[className]="cell.link?.className ?? cell.link?.class"
|
|
9271
|
+
[id]="cell.link?.id"
|
|
9272
|
+
[autofocus]="cell.link?.autofocus"
|
|
9273
|
+
[disabled]="cell.link?.disabled"
|
|
9274
|
+
[href]="cell.link?.href"
|
|
9275
|
+
[hreflang]="cell.link?.hreflang"
|
|
9276
|
+
[target]="cell.link?.target"
|
|
9277
|
+
[rel]="cell.link?.rel"
|
|
9278
|
+
[referrerPolicy]="cell.link?.referrerPolicy"
|
|
9279
|
+
[role]="cell.link?.role"
|
|
9280
|
+
[showIcon]="cell.link?.showIcon"
|
|
9281
|
+
[text]="cell.link?.text"
|
|
9282
|
+
[wrap]="cell.link?.wrap"
|
|
9283
|
+
>{{cell.link?.children}}</db-link
|
|
9284
|
+
>
|
|
9285
|
+
}@else{{{cell.content}}}</db-table-header-cell
|
|
9286
|
+
>
|
|
9287
|
+
}@else{
|
|
9288
|
+
<db-table-data-cell
|
|
9289
|
+
[id]="cell.id"
|
|
9290
|
+
[className]="cell.className ?? cell.class"
|
|
9291
|
+
[horizontalAlignment]="cell.horizontalAlignment"
|
|
9292
|
+
[verticalAlignment]="cell.verticalAlignment"
|
|
9293
|
+
[headers]="cell.headers"
|
|
9294
|
+
[colSpan]="cell.colSpan"
|
|
9295
|
+
[colspan]="cell.colspan"
|
|
9296
|
+
[rowSpan]="cell.rowSpan"
|
|
9297
|
+
[rowspan]="cell.rowspan"
|
|
9298
|
+
>@if(cell.link){
|
|
9299
|
+
<db-link
|
|
9300
|
+
[content]="cell.link?.content"
|
|
9301
|
+
[size]="cell.link?.size"
|
|
9302
|
+
[variant]="cell.link?.variant"
|
|
9303
|
+
[className]="cell.link?.className ?? cell.link?.class"
|
|
9304
|
+
[id]="cell.link?.id"
|
|
9305
|
+
[autofocus]="cell.link?.autofocus"
|
|
9306
|
+
[disabled]="cell.link?.disabled"
|
|
9307
|
+
[href]="cell.link?.href"
|
|
9308
|
+
[hreflang]="cell.link?.hreflang"
|
|
9309
|
+
[target]="cell.link?.target"
|
|
9310
|
+
[rel]="cell.link?.rel"
|
|
9311
|
+
[referrerPolicy]="cell.link?.referrerPolicy"
|
|
9312
|
+
[role]="cell.link?.role"
|
|
9313
|
+
[showIcon]="cell.link?.showIcon"
|
|
9314
|
+
[text]="cell.link?.text"
|
|
9315
|
+
[wrap]="cell.link?.wrap"
|
|
9316
|
+
>{{cell.link?.children}}</db-link
|
|
9317
|
+
>
|
|
9318
|
+
}@else{{{cell.content}}}</db-table-data-cell
|
|
9319
|
+
>
|
|
9320
|
+
} } }@else{
|
|
9321
|
+
<ng-content></ng-content>
|
|
9322
|
+
}
|
|
9323
|
+
</tr> `, styles: [":host{display:contents}\n"] }]
|
|
9324
|
+
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], interactive: [{ type: i0.Input, args: [{ isSignal: true, alias: "interactive", required: false }] }], subHeaderEmphasis: [{ type: i0.Input, args: [{ isSignal: true, alias: "subHeaderEmphasis", required: false }] }], cells: [{ type: i0.Input, args: [{ isSignal: true, alias: "cells", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
9325
|
+
|
|
9326
|
+
const defaultProps$4 = {};
|
|
9327
|
+
class DBTableBody {
|
|
9328
|
+
trackByRow0(index, row) {
|
|
9329
|
+
return `${this.id() ?? uuid()}-table-body-row-${index}`;
|
|
9330
|
+
}
|
|
9331
|
+
constructor() {
|
|
9332
|
+
this.cls = cls;
|
|
9333
|
+
this.uuid = uuid;
|
|
9334
|
+
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
9335
|
+
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : []));
|
|
9336
|
+
this.rows = input(...(ngDevMode ? [undefined, { debugName: "rows" }] : []));
|
|
9337
|
+
this._ref = viewChild("_ref", ...(ngDevMode ? [{ debugName: "_ref" }] : []));
|
|
9338
|
+
}
|
|
9339
|
+
/**
|
|
9340
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
9341
|
+
* @param element the ref for the component
|
|
9342
|
+
* @param customElementSelector the custom element like `my-component`
|
|
9343
|
+
*/
|
|
9344
|
+
enableAttributePassing(element, customElementSelector) {
|
|
9345
|
+
const parent = element?.closest(customElementSelector);
|
|
9346
|
+
if (element && parent) {
|
|
9347
|
+
const attributes = parent.attributes;
|
|
9348
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
9349
|
+
const attr = attributes.item(i);
|
|
9350
|
+
if (attr && attr.name !== 'data-density' &&
|
|
9351
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
9352
|
+
element.setAttribute(attr.name, attr.value);
|
|
9353
|
+
parent.removeAttribute(attr.name);
|
|
9354
|
+
}
|
|
9355
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
9356
|
+
element.setAttribute(attr.name, attr.value);
|
|
9357
|
+
parent.removeAttribute(attr.name);
|
|
9358
|
+
}
|
|
9359
|
+
else if (attr && attr.name === "class") {
|
|
9360
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
9361
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
9362
|
+
const currentClass = element.getAttribute("class");
|
|
9363
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
9364
|
+
if (isWebComponent) {
|
|
9365
|
+
// Stencil is using this class for lazy loading component
|
|
9366
|
+
parent.setAttribute("class", "hydrated");
|
|
9367
|
+
}
|
|
9368
|
+
else {
|
|
9369
|
+
parent.removeAttribute(attr.name);
|
|
9370
|
+
}
|
|
9371
|
+
}
|
|
9372
|
+
}
|
|
9373
|
+
}
|
|
9374
|
+
}
|
|
9375
|
+
ngAfterViewInit() {
|
|
9376
|
+
if (typeof window !== "undefined") {
|
|
9377
|
+
const element = this._ref()?.nativeElement;
|
|
9378
|
+
this.enableAttributePassing(element, "db-table-body");
|
|
9379
|
+
}
|
|
9380
|
+
}
|
|
9381
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DBTableBody, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9382
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.18", type: DBTableBody, isStandalone: true, selector: "db-table-body", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<tbody
|
|
9383
|
+
#_ref
|
|
9384
|
+
[attr.id]="id()"
|
|
9385
|
+
[class]="cls('db-table-body', className())"
|
|
9386
|
+
>
|
|
9387
|
+
@if(rows()){ @for (row of rows();track trackByRow0(index, row);let index =
|
|
9388
|
+
$index) {
|
|
9389
|
+
<db-table-row
|
|
9390
|
+
[cells]="row.cells"
|
|
9391
|
+
[className]="row.className ?? row.class"
|
|
9392
|
+
[id]="row.id"
|
|
9393
|
+
></db-table-row>
|
|
9394
|
+
} }@else{
|
|
9395
|
+
<ng-content></ng-content>
|
|
9396
|
+
}
|
|
9397
|
+
</tbody> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBTableRow, selector: "db-table-row", inputs: ["id", "className", "interactive", "subHeaderEmphasis", "cells"] }] }); }
|
|
9398
|
+
}
|
|
9399
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DBTableBody, decorators: [{
|
|
9400
|
+
type: Component,
|
|
9401
|
+
args: [{ selector: "db-table-body", standalone: true, imports: [CommonModule, DBTableRow], template: `<tbody
|
|
9402
|
+
#_ref
|
|
9403
|
+
[attr.id]="id()"
|
|
9404
|
+
[class]="cls('db-table-body', className())"
|
|
9405
|
+
>
|
|
9406
|
+
@if(rows()){ @for (row of rows();track trackByRow0(index, row);let index =
|
|
9407
|
+
$index) {
|
|
9408
|
+
<db-table-row
|
|
9409
|
+
[cells]="row.cells"
|
|
9410
|
+
[className]="row.className ?? row.class"
|
|
9411
|
+
[id]="row.id"
|
|
9412
|
+
></db-table-row>
|
|
9413
|
+
} }@else{
|
|
9414
|
+
<ng-content></ng-content>
|
|
9415
|
+
}
|
|
9416
|
+
</tbody> `, styles: [":host{display:contents}\n"] }]
|
|
9417
|
+
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
9418
|
+
|
|
9419
|
+
const defaultProps$3 = {};
|
|
9420
|
+
class DBTableFooter {
|
|
9421
|
+
trackByRow0(index, row) {
|
|
9422
|
+
return `${this.id() ?? uuid()}-table-footer-row-${index}`;
|
|
9423
|
+
}
|
|
9424
|
+
constructor() {
|
|
9425
|
+
this.cls = cls;
|
|
9426
|
+
this.uuid = uuid;
|
|
9427
|
+
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
9428
|
+
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : []));
|
|
9429
|
+
this.rows = input(...(ngDevMode ? [undefined, { debugName: "rows" }] : []));
|
|
9430
|
+
this._ref = viewChild("_ref", ...(ngDevMode ? [{ debugName: "_ref" }] : []));
|
|
9431
|
+
}
|
|
9432
|
+
/**
|
|
9433
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
9434
|
+
* @param element the ref for the component
|
|
9435
|
+
* @param customElementSelector the custom element like `my-component`
|
|
9436
|
+
*/
|
|
9437
|
+
enableAttributePassing(element, customElementSelector) {
|
|
9438
|
+
const parent = element?.closest(customElementSelector);
|
|
9439
|
+
if (element && parent) {
|
|
9440
|
+
const attributes = parent.attributes;
|
|
9441
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
9442
|
+
const attr = attributes.item(i);
|
|
9443
|
+
if (attr && attr.name !== 'data-density' &&
|
|
9444
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
9445
|
+
element.setAttribute(attr.name, attr.value);
|
|
9446
|
+
parent.removeAttribute(attr.name);
|
|
9447
|
+
}
|
|
9448
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
9449
|
+
element.setAttribute(attr.name, attr.value);
|
|
9450
|
+
parent.removeAttribute(attr.name);
|
|
9451
|
+
}
|
|
9452
|
+
else if (attr && attr.name === "class") {
|
|
9453
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
9454
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
9455
|
+
const currentClass = element.getAttribute("class");
|
|
9456
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
9457
|
+
if (isWebComponent) {
|
|
9458
|
+
// Stencil is using this class for lazy loading component
|
|
9459
|
+
parent.setAttribute("class", "hydrated");
|
|
9460
|
+
}
|
|
9461
|
+
else {
|
|
9462
|
+
parent.removeAttribute(attr.name);
|
|
9463
|
+
}
|
|
9464
|
+
}
|
|
9465
|
+
}
|
|
9466
|
+
}
|
|
9467
|
+
}
|
|
9468
|
+
ngAfterViewInit() {
|
|
9469
|
+
if (typeof window !== "undefined") {
|
|
9470
|
+
const element = this._ref()?.nativeElement;
|
|
9471
|
+
this.enableAttributePassing(element, "db-table-footer");
|
|
9472
|
+
}
|
|
9473
|
+
}
|
|
9474
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DBTableFooter, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9475
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.18", type: DBTableFooter, isStandalone: true, selector: "db-table-footer", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<tfoot
|
|
9476
|
+
#_ref
|
|
9477
|
+
[attr.id]="id()"
|
|
9478
|
+
[class]="cls('db-table-footer', className())"
|
|
9479
|
+
>
|
|
9480
|
+
@if(rows()){ @for (row of rows();track trackByRow0(index, row);let index =
|
|
9481
|
+
$index) {
|
|
9482
|
+
<db-table-row
|
|
9483
|
+
[cells]="row.cells"
|
|
9484
|
+
[className]="row.className ?? row.class"
|
|
9485
|
+
[id]="row.id"
|
|
9486
|
+
></db-table-row>
|
|
9487
|
+
} }@else{
|
|
9488
|
+
<ng-content></ng-content>
|
|
9489
|
+
}
|
|
9490
|
+
</tfoot> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBTableRow, selector: "db-table-row", inputs: ["id", "className", "interactive", "subHeaderEmphasis", "cells"] }] }); }
|
|
9491
|
+
}
|
|
9492
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DBTableFooter, decorators: [{
|
|
9493
|
+
type: Component,
|
|
9494
|
+
args: [{ selector: "db-table-footer", standalone: true, imports: [CommonModule, DBTableRow], template: `<tfoot
|
|
9495
|
+
#_ref
|
|
9496
|
+
[attr.id]="id()"
|
|
9497
|
+
[class]="cls('db-table-footer', className())"
|
|
9498
|
+
>
|
|
9499
|
+
@if(rows()){ @for (row of rows();track trackByRow0(index, row);let index =
|
|
9500
|
+
$index) {
|
|
9501
|
+
<db-table-row
|
|
9502
|
+
[cells]="row.cells"
|
|
9503
|
+
[className]="row.className ?? row.class"
|
|
9504
|
+
[id]="row.id"
|
|
9505
|
+
></db-table-row>
|
|
9506
|
+
} }@else{
|
|
9507
|
+
<ng-content></ng-content>
|
|
9508
|
+
}
|
|
9509
|
+
</tfoot> `, styles: [":host{display:contents}\n"] }]
|
|
9510
|
+
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
9511
|
+
|
|
9512
|
+
const defaultProps$2 = {};
|
|
9513
|
+
class DBTableHead {
|
|
9514
|
+
getCells(cells) {
|
|
9515
|
+
return cells?.map((cell) => ({
|
|
9516
|
+
...cell,
|
|
9517
|
+
headerCell: true,
|
|
9518
|
+
}));
|
|
9519
|
+
}
|
|
9520
|
+
trackByRow0(index, row) {
|
|
9521
|
+
return `${this.id() ?? uuid()}-table-head-row-${index}`;
|
|
9522
|
+
}
|
|
9523
|
+
constructor() {
|
|
9524
|
+
this.cls = cls;
|
|
9525
|
+
this.uuid = uuid;
|
|
9526
|
+
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
9527
|
+
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : []));
|
|
9528
|
+
this.rows = input(...(ngDevMode ? [undefined, { debugName: "rows" }] : []));
|
|
9529
|
+
this._ref = viewChild("_ref", ...(ngDevMode ? [{ debugName: "_ref" }] : []));
|
|
9530
|
+
}
|
|
9531
|
+
/**
|
|
9532
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
9533
|
+
* @param element the ref for the component
|
|
9534
|
+
* @param customElementSelector the custom element like `my-component`
|
|
9535
|
+
*/
|
|
9536
|
+
enableAttributePassing(element, customElementSelector) {
|
|
9537
|
+
const parent = element?.closest(customElementSelector);
|
|
9538
|
+
if (element && parent) {
|
|
9539
|
+
const attributes = parent.attributes;
|
|
9540
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
9541
|
+
const attr = attributes.item(i);
|
|
9542
|
+
if (attr && attr.name !== 'data-density' &&
|
|
9543
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
9544
|
+
element.setAttribute(attr.name, attr.value);
|
|
9545
|
+
parent.removeAttribute(attr.name);
|
|
9546
|
+
}
|
|
9547
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
9548
|
+
element.setAttribute(attr.name, attr.value);
|
|
9549
|
+
parent.removeAttribute(attr.name);
|
|
9550
|
+
}
|
|
9551
|
+
else if (attr && attr.name === "class") {
|
|
9552
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
9553
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
9554
|
+
const currentClass = element.getAttribute("class");
|
|
9555
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
9556
|
+
if (isWebComponent) {
|
|
9557
|
+
// Stencil is using this class for lazy loading component
|
|
9558
|
+
parent.setAttribute("class", "hydrated");
|
|
9559
|
+
}
|
|
9560
|
+
else {
|
|
9561
|
+
parent.removeAttribute(attr.name);
|
|
9562
|
+
}
|
|
9563
|
+
}
|
|
9564
|
+
}
|
|
9565
|
+
}
|
|
9566
|
+
}
|
|
9567
|
+
ngAfterViewInit() {
|
|
9568
|
+
if (typeof window !== "undefined") {
|
|
9569
|
+
const element = this._ref()?.nativeElement;
|
|
9570
|
+
this.enableAttributePassing(element, "db-table-head");
|
|
9571
|
+
}
|
|
9572
|
+
}
|
|
9573
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DBTableHead, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9574
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.18", type: DBTableHead, isStandalone: true, selector: "db-table-head", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<thead
|
|
9575
|
+
#_ref
|
|
9576
|
+
[attr.id]="id()"
|
|
9577
|
+
[class]="cls('db-table-head', className())"
|
|
9578
|
+
>
|
|
9579
|
+
@if(rows()){ @for (row of rows();track trackByRow0(index, row);let index =
|
|
9580
|
+
$index) {
|
|
9581
|
+
<db-table-row
|
|
9582
|
+
[cells]="getCells(row.cells)"
|
|
9583
|
+
[className]="row.className ?? row.class"
|
|
9584
|
+
[subHeaderEmphasis]="row.subHeaderEmphasis"
|
|
9585
|
+
[id]="row.id"
|
|
9586
|
+
></db-table-row>
|
|
9587
|
+
} }@else{
|
|
9588
|
+
<ng-content></ng-content>
|
|
9589
|
+
}
|
|
9590
|
+
</thead> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBTableRow, selector: "db-table-row", inputs: ["id", "className", "interactive", "subHeaderEmphasis", "cells"] }] }); }
|
|
9591
|
+
}
|
|
9592
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DBTableHead, decorators: [{
|
|
9593
|
+
type: Component,
|
|
9594
|
+
args: [{ selector: "db-table-head", standalone: true, imports: [CommonModule, DBTableRow], template: `<thead
|
|
9595
|
+
#_ref
|
|
9596
|
+
[attr.id]="id()"
|
|
9597
|
+
[class]="cls('db-table-head', className())"
|
|
9598
|
+
>
|
|
9599
|
+
@if(rows()){ @for (row of rows();track trackByRow0(index, row);let index =
|
|
9600
|
+
$index) {
|
|
9601
|
+
<db-table-row
|
|
9602
|
+
[cells]="getCells(row.cells)"
|
|
9603
|
+
[className]="row.className ?? row.class"
|
|
9604
|
+
[subHeaderEmphasis]="row.subHeaderEmphasis"
|
|
9605
|
+
[id]="row.id"
|
|
9606
|
+
></db-table-row>
|
|
9607
|
+
} }@else{
|
|
9608
|
+
<ng-content></ng-content>
|
|
9609
|
+
}
|
|
9610
|
+
</thead> `, styles: [":host{display:contents}\n"] }]
|
|
9611
|
+
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
9612
|
+
|
|
9613
|
+
const defaultProps$1 = {};
|
|
9614
|
+
class DBTable {
|
|
9615
|
+
convertData() {
|
|
9616
|
+
try {
|
|
9617
|
+
if (typeof this.data() === "string") {
|
|
9618
|
+
return JSON.parse(this.data());
|
|
9619
|
+
}
|
|
9620
|
+
return this.data();
|
|
9621
|
+
}
|
|
9622
|
+
catch (error) {
|
|
9623
|
+
console.error(error);
|
|
9624
|
+
}
|
|
9625
|
+
return {};
|
|
9626
|
+
}
|
|
9627
|
+
constructor() {
|
|
9628
|
+
this.cls = cls;
|
|
9629
|
+
this.getBooleanAsString = getBooleanAsString;
|
|
9630
|
+
this.data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : []));
|
|
9631
|
+
this.mobileVariant = input(...(ngDevMode ? [undefined, { debugName: "mobileVariant" }] : []));
|
|
9632
|
+
this.columnSizes = input(...(ngDevMode ? [undefined, { debugName: "columnSizes" }] : []));
|
|
9633
|
+
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : []));
|
|
9634
|
+
this.width = input(...(ngDevMode ? [undefined, { debugName: "width" }] : []));
|
|
9635
|
+
this.size = input(...(ngDevMode ? [undefined, { debugName: "size" }] : []));
|
|
9636
|
+
this.divider = input(...(ngDevMode ? [undefined, { debugName: "divider" }] : []));
|
|
9637
|
+
this.variant = input(...(ngDevMode ? [undefined, { debugName: "variant" }] : []));
|
|
9638
|
+
this.showCaption = input(...(ngDevMode ? [undefined, { debugName: "showCaption" }] : []));
|
|
9639
|
+
this.stickyHeader = input(...(ngDevMode ? [undefined, { debugName: "stickyHeader" }] : []));
|
|
9640
|
+
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
9641
|
+
this.captionPlain = input(...(ngDevMode ? [undefined, { debugName: "captionPlain" }] : []));
|
|
9642
|
+
this._ref = viewChild("_ref", ...(ngDevMode ? [{ debugName: "_ref" }] : []));
|
|
9643
|
+
this._data = signal(undefined, ...(ngDevMode ? [{ debugName: "_data" }] : []));
|
|
9644
|
+
this._style = signal(undefined, ...(ngDevMode ? [{ debugName: "_style" }] : []));
|
|
9645
|
+
if (typeof window !== "undefined") {
|
|
9646
|
+
effect(() => {
|
|
9647
|
+
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
9648
|
+
this.data();
|
|
9649
|
+
// ---
|
|
9650
|
+
if (this.data()) {
|
|
9651
|
+
this._data.set(this.convertData());
|
|
9652
|
+
}
|
|
9653
|
+
}, {
|
|
9654
|
+
// Enable writing to signals inside effects
|
|
9655
|
+
});
|
|
9656
|
+
effect(() => {
|
|
9657
|
+
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
9658
|
+
this.mobileVariant();
|
|
9659
|
+
this._ref();
|
|
9660
|
+
// ---
|
|
9661
|
+
if (this._ref()?.nativeElement && this.mobileVariant() === "list") {
|
|
9662
|
+
// Delay for angular
|
|
9663
|
+
void delay(() => {
|
|
9664
|
+
const table = this._ref()?.nativeElement;
|
|
9665
|
+
if (!table)
|
|
9666
|
+
return;
|
|
9667
|
+
const headerCells = table.querySelectorAll("thead tr th");
|
|
9668
|
+
if (headerCells.length) {
|
|
9669
|
+
const otherRows = table.querySelectorAll(":is(tbody,tfoot) tr");
|
|
9670
|
+
otherRows.forEach((row) => {
|
|
9671
|
+
const cells = row.querySelectorAll(":is(td,th)");
|
|
9672
|
+
cells.forEach((cell, index) => {
|
|
9673
|
+
const headerCell = headerCells[index];
|
|
9674
|
+
if (headerCell &&
|
|
9675
|
+
headerCell.textContent &&
|
|
9676
|
+
!cell.dataset["header"]) {
|
|
9677
|
+
cell.dataset["header"] = headerCell.textContent.trim();
|
|
9678
|
+
}
|
|
9679
|
+
});
|
|
9680
|
+
});
|
|
9681
|
+
}
|
|
9682
|
+
}, 1);
|
|
9683
|
+
}
|
|
9684
|
+
}, {
|
|
9685
|
+
// Enable writing to signals inside effects
|
|
9686
|
+
});
|
|
9687
|
+
effect(() => {
|
|
9688
|
+
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
9689
|
+
this.columnSizes();
|
|
9690
|
+
// ---
|
|
9691
|
+
if (this.columnSizes()) {
|
|
9692
|
+
const columnStyles = {};
|
|
9693
|
+
Object.entries(this.columnSizes()).forEach(([key, value]) => {
|
|
9694
|
+
columnStyles[`--db-table-column-size-${key}`] = value;
|
|
9695
|
+
});
|
|
9696
|
+
this._style.set(columnStyles);
|
|
9697
|
+
}
|
|
9698
|
+
}, {
|
|
9699
|
+
// Enable writing to signals inside effects
|
|
9700
|
+
});
|
|
9701
|
+
}
|
|
9702
|
+
}
|
|
9703
|
+
/**
|
|
9704
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
9705
|
+
* @param element the ref for the component
|
|
9706
|
+
* @param customElementSelector the custom element like `my-component`
|
|
9707
|
+
*/
|
|
9708
|
+
enableAttributePassing(element, customElementSelector) {
|
|
9709
|
+
const parent = element?.closest(customElementSelector);
|
|
9710
|
+
if (element && parent) {
|
|
9711
|
+
const attributes = parent.attributes;
|
|
9712
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
9713
|
+
const attr = attributes.item(i);
|
|
9714
|
+
if (attr && attr.name !== 'data-density' &&
|
|
9715
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
9716
|
+
element.setAttribute(attr.name, attr.value);
|
|
9717
|
+
parent.removeAttribute(attr.name);
|
|
9718
|
+
}
|
|
9719
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
9720
|
+
element.setAttribute(attr.name, attr.value);
|
|
9721
|
+
parent.removeAttribute(attr.name);
|
|
9722
|
+
}
|
|
9723
|
+
else if (attr && attr.name === "class") {
|
|
9724
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
9725
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
9726
|
+
const currentClass = element.getAttribute("class");
|
|
9727
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
9728
|
+
if (isWebComponent) {
|
|
9729
|
+
// Stencil is using this class for lazy loading component
|
|
9730
|
+
parent.setAttribute("class", "hydrated");
|
|
9731
|
+
}
|
|
9732
|
+
else {
|
|
9733
|
+
parent.removeAttribute(attr.name);
|
|
9734
|
+
}
|
|
9735
|
+
}
|
|
9736
|
+
}
|
|
9737
|
+
}
|
|
9738
|
+
}
|
|
9739
|
+
ngAfterViewInit() {
|
|
9740
|
+
if (typeof window !== "undefined") {
|
|
9741
|
+
const element = this._ref()?.nativeElement;
|
|
9742
|
+
this.enableAttributePassing(element, "db-table");
|
|
9743
|
+
}
|
|
9744
|
+
}
|
|
9745
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DBTable, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9746
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.18", type: DBTable, isStandalone: true, selector: "db-table", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, mobileVariant: { classPropertyName: "mobileVariant", publicName: "mobileVariant", isSignal: true, isRequired: false, transformFunction: null }, columnSizes: { classPropertyName: "columnSizes", publicName: "columnSizes", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, divider: { classPropertyName: "divider", publicName: "divider", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, showCaption: { classPropertyName: "showCaption", publicName: "showCaption", isSignal: true, isRequired: false, transformFunction: null }, stickyHeader: { classPropertyName: "stickyHeader", publicName: "stickyHeader", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, captionPlain: { classPropertyName: "captionPlain", publicName: "captionPlain", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<div
|
|
9747
|
+
[class]="cls('db-table', className())"
|
|
9748
|
+
[ngStyle]="_style()"
|
|
9749
|
+
[attr.data-width]="width()"
|
|
9750
|
+
[attr.data-size]="size()"
|
|
9751
|
+
[attr.data-divider]="divider()"
|
|
9752
|
+
[attr.data-variant]="variant()"
|
|
9753
|
+
[attr.data-mobile-variant]="mobileVariant()"
|
|
9754
|
+
[attr.data-show-caption]="getBooleanAsString(showCaption())"
|
|
9755
|
+
[attr.data-sticky-header]="stickyHeader()"
|
|
9756
|
+
>
|
|
9757
|
+
<table #_ref [attr.id]="id()">
|
|
9758
|
+
<caption>
|
|
9759
|
+
@if(captionPlain()){
|
|
9760
|
+
{{captionPlain()}}
|
|
9761
|
+
}@else{
|
|
9762
|
+
<ng-content select="[caption]"> </ng-content>
|
|
9763
|
+
}
|
|
9764
|
+
</caption>
|
|
9765
|
+
@if(_data()){ @if(_data()?.header){
|
|
9766
|
+
<db-table-head [rows]="_data()?.header"></db-table-head>
|
|
9767
|
+
} @if(_data()?.body){
|
|
9768
|
+
<db-table-body [rows]="_data()?.body"></db-table-body>
|
|
9769
|
+
} @if(_data()?.footer){
|
|
9770
|
+
<db-table-footer [rows]="_data()?.footer"></db-table-footer>
|
|
9771
|
+
} }@else{
|
|
9772
|
+
<ng-content></ng-content>
|
|
9773
|
+
}
|
|
9774
|
+
</table>
|
|
9775
|
+
</div> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: DBTableHead, selector: "db-table-head", inputs: ["id", "className", "rows"] }, { kind: "component", type: DBTableBody, selector: "db-table-body", inputs: ["id", "className", "rows"] }, { kind: "component", type: DBTableFooter, selector: "db-table-footer", inputs: ["id", "className", "rows"] }] }); }
|
|
9776
|
+
}
|
|
9777
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DBTable, decorators: [{
|
|
9778
|
+
type: Component,
|
|
9779
|
+
args: [{ selector: "db-table", standalone: true, imports: [CommonModule, DBTableHead, DBTableBody, DBTableFooter], template: `<div
|
|
9780
|
+
[class]="cls('db-table', className())"
|
|
9781
|
+
[ngStyle]="_style()"
|
|
9782
|
+
[attr.data-width]="width()"
|
|
9783
|
+
[attr.data-size]="size()"
|
|
9784
|
+
[attr.data-divider]="divider()"
|
|
9785
|
+
[attr.data-variant]="variant()"
|
|
9786
|
+
[attr.data-mobile-variant]="mobileVariant()"
|
|
9787
|
+
[attr.data-show-caption]="getBooleanAsString(showCaption())"
|
|
9788
|
+
[attr.data-sticky-header]="stickyHeader()"
|
|
9789
|
+
>
|
|
9790
|
+
<table #_ref [attr.id]="id()">
|
|
9791
|
+
<caption>
|
|
9792
|
+
@if(captionPlain()){
|
|
9793
|
+
{{captionPlain()}}
|
|
9794
|
+
}@else{
|
|
9795
|
+
<ng-content select="[caption]"> </ng-content>
|
|
9796
|
+
}
|
|
9797
|
+
</caption>
|
|
9798
|
+
@if(_data()){ @if(_data()?.header){
|
|
9799
|
+
<db-table-head [rows]="_data()?.header"></db-table-head>
|
|
9800
|
+
} @if(_data()?.body){
|
|
9801
|
+
<db-table-body [rows]="_data()?.body"></db-table-body>
|
|
9802
|
+
} @if(_data()?.footer){
|
|
9803
|
+
<db-table-footer [rows]="_data()?.footer"></db-table-footer>
|
|
9804
|
+
} }@else{
|
|
9805
|
+
<ng-content></ng-content>
|
|
9806
|
+
}
|
|
9807
|
+
</table>
|
|
9808
|
+
</div> `, styles: [":host{display:contents}\n"] }]
|
|
9809
|
+
}], ctorParameters: () => [], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], mobileVariant: [{ type: i0.Input, args: [{ isSignal: true, alias: "mobileVariant", required: false }] }], columnSizes: [{ type: i0.Input, args: [{ isSignal: true, alias: "columnSizes", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], divider: [{ type: i0.Input, args: [{ isSignal: true, alias: "divider", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], showCaption: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCaption", required: false }] }], stickyHeader: [{ type: i0.Input, args: [{ isSignal: true, alias: "stickyHeader", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], captionPlain: [{ type: i0.Input, args: [{ isSignal: true, alias: "captionPlain", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
9810
|
+
|
|
9811
|
+
const DBTableRowSizeList = ['x-small', 'small', 'medium', 'large'];
|
|
9812
|
+
const DBTableVariantList = ['joined', 'zebra', 'floating'];
|
|
9813
|
+
const DBTableDividerList = ['none', 'both', 'horizontal', 'vertical'];
|
|
9814
|
+
const DBTableMobileVariantList = ['table', 'list'];
|
|
9815
|
+
const DBTableStickHeaderList = ['none', 'both', 'horizontal', 'vertical'];
|
|
9816
|
+
const DBTableColumnsSizeList = ['auto', '1fr', 'min-content', 'max-content'];
|
|
9817
|
+
|
|
9818
|
+
const defaultProps = {};
|
|
9819
|
+
class DBTableCaption {
|
|
9820
|
+
constructor() {
|
|
9821
|
+
this.cls = cls;
|
|
9822
|
+
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
9823
|
+
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : []));
|
|
9824
|
+
this._ref = viewChild("_ref", ...(ngDevMode ? [{ debugName: "_ref" }] : []));
|
|
9825
|
+
}
|
|
9826
|
+
/**
|
|
9827
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
9828
|
+
* @param element the ref for the component
|
|
9829
|
+
* @param customElementSelector the custom element like `my-component`
|
|
9830
|
+
*/
|
|
9831
|
+
enableAttributePassing(element, customElementSelector) {
|
|
9832
|
+
const parent = element?.closest(customElementSelector);
|
|
9833
|
+
if (element && parent) {
|
|
9834
|
+
const attributes = parent.attributes;
|
|
9835
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
9836
|
+
const attr = attributes.item(i);
|
|
9837
|
+
if (attr && attr.name !== 'data-density' &&
|
|
9838
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
9839
|
+
element.setAttribute(attr.name, attr.value);
|
|
9840
|
+
parent.removeAttribute(attr.name);
|
|
9841
|
+
}
|
|
9842
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
9843
|
+
element.setAttribute(attr.name, attr.value);
|
|
9844
|
+
parent.removeAttribute(attr.name);
|
|
9845
|
+
}
|
|
9846
|
+
else if (attr && attr.name === "class") {
|
|
9847
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
9848
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
9849
|
+
const currentClass = element.getAttribute("class");
|
|
9850
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
9851
|
+
if (isWebComponent) {
|
|
9852
|
+
// Stencil is using this class for lazy loading component
|
|
9853
|
+
parent.setAttribute("class", "hydrated");
|
|
9854
|
+
}
|
|
9855
|
+
else {
|
|
9856
|
+
parent.removeAttribute(attr.name);
|
|
9857
|
+
}
|
|
9858
|
+
}
|
|
9859
|
+
}
|
|
9860
|
+
}
|
|
9861
|
+
}
|
|
9862
|
+
ngAfterViewInit() {
|
|
9863
|
+
if (typeof window !== "undefined") {
|
|
9864
|
+
const element = this._ref()?.nativeElement;
|
|
9865
|
+
this.enableAttributePassing(element, "db-table-caption");
|
|
9866
|
+
}
|
|
9867
|
+
}
|
|
9868
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DBTableCaption, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9869
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.18", type: DBTableCaption, isStandalone: true, selector: "db-table-caption", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<caption
|
|
9870
|
+
#_ref
|
|
9871
|
+
[attr.id]="id()"
|
|
9872
|
+
[class]="cls('db-table-caption', className())"
|
|
9873
|
+
>
|
|
9874
|
+
<ng-content></ng-content>
|
|
9875
|
+
</caption> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
9876
|
+
}
|
|
9877
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DBTableCaption, decorators: [{
|
|
9878
|
+
type: Component,
|
|
9879
|
+
args: [{ selector: "db-table-caption", standalone: true, imports: [CommonModule], template: `<caption
|
|
9880
|
+
#_ref
|
|
9881
|
+
[attr.id]="id()"
|
|
9882
|
+
[class]="cls('db-table-caption', className())"
|
|
9883
|
+
>
|
|
9884
|
+
<ng-content></ng-content>
|
|
9885
|
+
</caption> `, styles: [":host{display:contents}\n"] }]
|
|
9886
|
+
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
9887
|
+
|
|
9888
|
+
const DBTableRowSubHeaderEmphasisList = ['none', 'weak', 'strong'];
|
|
9889
|
+
|
|
9890
|
+
const DBTableHeaderCellScopeList = ['row', 'col', 'rowgroup', 'colgroup'];
|
|
8910
9891
|
|
|
8911
9892
|
/**
|
|
8912
9893
|
* Generated bundle index. Do not edit.
|
|
8913
9894
|
*/
|
|
8914
9895
|
|
|
8915
|
-
export { AccordionBehaviorList, AccordionVariantList, AlignmentList, AutoCompleteList, BadgePlacementList, ButtonTypeList, ButtonVariantList, COLOR, COLORS, COLORS_SIMPLE, COLOR_CONST, COLOR_SIMPLE, CardBehaviorList, CardElevationLevelList, CustomSelectDropdownWidthList, CustomSelectListItemTypeList, DBAccordion, DBAccordionItem, DBBadge, DBBrand, DBButton, DBCard, DBCheckbox, DBCustomButton, DBCustomSelect, DBCustomSelectDropdown, DBCustomSelectFormField, DBCustomSelectList, DBCustomSelectListItem, DBDivider, DBDrawer, DBHeader, DBIcon, DBInfotext, DBInput, DBLink, DBNavigation, DBNavigationItem, DBNotification, DBPage, DBPopover, DBRadio, DBSection, DBSelect, DBStack, DBSwitch, DBTabItem, DBTabList, DBTabPanel, DBTabs, DBTag, DBTextarea, DBTooltip, DB_UX_LOCAL_STORAGE_FRAMEWORK, DB_UX_LOCAL_STORAGE_MODE, DEFAULT_BACK, DEFAULT_BURGER_MENU, DEFAULT_CLOSE_BUTTON, DEFAULT_DATALIST_ID_SUFFIX, DEFAULT_ICON, DEFAULT_ID, DEFAULT_INVALID_MESSAGE, DEFAULT_INVALID_MESSAGE_ID_SUFFIX, DEFAULT_LABEL, DEFAULT_LABEL_ID_SUFFIX, DEFAULT_MESSAGE, DEFAULT_MESSAGE_ID_SUFFIX, DEFAULT_PLACEHOLDER, DEFAULT_PLACEHOLDER_ID_SUFFIX, DEFAULT_REMOVE, DEFAULT_ROWS, DEFAULT_SELECTED, DEFAULT_SELECT_ID_SUFFIX, DEFAULT_VALID_MESSAGE, DEFAULT_VALID_MESSAGE_ID_SUFFIX, DEFAULT_VIEWPORT, DENSITIES, DENSITY, DENSITY_CONST, DESKTOP_VIEWPORT, DividerMarginList, DividerVariantList, DocumentClickListener, DocumentScrollListener, DrawerBackdropList, DrawerDirectionList, DrawerPositionList, DrawerVariantList, EmphasisList, FieldSizingList, GapSpacingList, IconWeightList, InputTypeList, LabelVariantHorizontalList, LabelVariantList, LinkContentList, LinkReferrerPolicyList, LinkSizeList, LinkTargetList, LinkVariantList, MarginList, MaxWidthList, MetaNavigationDirective, NavigationContentDirective, NavigationDirective, NavigationItemSafeTriangle, NotificationAriaLiveList, NotificationLinkVariantList, NotificationVariantList, OrientationList, PageDocumentOverflowList, PageVariantList, PlacementHorizontalList, PlacementList, PlacementVerticalList, PopoverDelayList, PopoverWidthList, SEMANTIC, SEMANTICS, SecondaryActionDirective, SelectedTypeList, SemanticList, SizeList, SpacingList, StackAlignmentList, StackDirectionList, StackJustifyContentList, StackVariantList, TESTING_VIEWPORTS, TabsBehaviorList, TabsInitialSelectedModeList, TagBehaviorList, TextareaResizeList, TextareaWrapList, TooltipVariantList, ValidationList, WidthList, addAttributeToChildren, cls, delay, getBoolean, getBooleanAsString, getFloatingProps, getHideProp, getInputValue, getNotificationRole, getNumber, getOptionKey, getSearchInput, getStep, handleDataOutside, handleFixedDropdown, handleFixedPopover, hasVoiceOver, isArrayOfStrings, isEventTargetNavigationItem, isIOSSafari, isKeyboardEvent, stringPropVisible, uuid };
|
|
9896
|
+
export { AccordionBehaviorList, AccordionVariantList, AlignmentList, AutoCompleteList, BadgePlacementList, ButtonTypeList, ButtonVariantList, COLOR, COLORS, COLORS_SIMPLE, COLOR_CONST, COLOR_SIMPLE, CardBehaviorList, CardElevationLevelList, CustomSelectDropdownWidthList, CustomSelectListItemTypeList, DBAccordion, DBAccordionItem, DBBadge, DBBrand, DBButton, DBCard, DBCheckbox, DBCustomButton, DBCustomSelect, DBCustomSelectDropdown, DBCustomSelectFormField, DBCustomSelectList, DBCustomSelectListItem, DBDivider, DBDrawer, DBHeader, DBIcon, DBInfotext, DBInput, DBLink, DBNavigation, DBNavigationItem, DBNotification, DBPage, DBPopover, DBRadio, DBSection, DBSelect, DBStack, DBSwitch, DBTabItem, DBTabList, DBTabPanel, DBTable, DBTableBody, DBTableCaption, DBTableColumnsSizeList, DBTableDataCell, DBTableDividerList, DBTableFooter, DBTableHead, DBTableHeaderCell, DBTableHeaderCellScopeList, DBTableMobileVariantList, DBTableRow, DBTableRowSizeList, DBTableRowSubHeaderEmphasisList, DBTableStickHeaderList, DBTableVariantList, DBTabs, DBTag, DBTextarea, DBTooltip, DB_UX_LOCAL_STORAGE_FRAMEWORK, DB_UX_LOCAL_STORAGE_MODE, DEFAULT_BACK, DEFAULT_BURGER_MENU, DEFAULT_CLOSE_BUTTON, DEFAULT_DATALIST_ID_SUFFIX, DEFAULT_ICON, DEFAULT_ID, DEFAULT_INVALID_MESSAGE, DEFAULT_INVALID_MESSAGE_ID_SUFFIX, DEFAULT_LABEL, DEFAULT_LABEL_ID_SUFFIX, DEFAULT_MESSAGE, DEFAULT_MESSAGE_ID_SUFFIX, DEFAULT_PLACEHOLDER, DEFAULT_PLACEHOLDER_ID_SUFFIX, DEFAULT_REMOVE, DEFAULT_ROWS, DEFAULT_SELECTED, DEFAULT_SELECT_ID_SUFFIX, DEFAULT_VALID_MESSAGE, DEFAULT_VALID_MESSAGE_ID_SUFFIX, DEFAULT_VIEWPORT, DENSITIES, DENSITY, DENSITY_CONST, DESKTOP_VIEWPORT, DividerMarginList, DividerVariantList, DocumentClickListener, DocumentScrollListener, DrawerBackdropList, DrawerDirectionList, DrawerPositionList, DrawerVariantList, EmphasisList, FieldSizingList, GapSpacingList, IconWeightList, InputTypeList, LabelVariantHorizontalList, LabelVariantList, LinkContentList, LinkReferrerPolicyList, LinkSizeList, LinkTargetList, LinkVariantList, MarginList, MaxWidthList, MetaNavigationDirective, NavigationContentDirective, NavigationDirective, NavigationItemSafeTriangle, NotificationAriaLiveList, NotificationLinkVariantList, NotificationVariantList, OrientationList, PageDocumentOverflowList, PageVariantList, PlacementHorizontalList, PlacementList, PlacementVerticalList, PopoverDelayList, PopoverWidthList, SEMANTIC, SEMANTICS, SecondaryActionDirective, SelectedTypeList, SemanticList, SizeList, SpacingList, StackAlignmentList, StackDirectionList, StackJustifyContentList, StackVariantList, TESTING_VIEWPORTS, TabsBehaviorList, TabsInitialSelectedModeList, TagBehaviorList, TextareaResizeList, TextareaWrapList, TooltipVariantList, ValidationList, WidthList, addAttributeToChildren, cls, delay, getBoolean, getBooleanAsString, getFloatingProps, getHideProp, getInputValue, getNotificationRole, getNumber, getOptionKey, getSearchInput, getStep, handleDataOutside, handleFixedDropdown, handleFixedPopover, hasVoiceOver, isArrayOfStrings, isEventTargetNavigationItem, isIOSSafari, isKeyboardEvent, stringPropVisible, uuid };
|
|
8916
9897
|
//# sourceMappingURL=db-ux-ngx-core-components.mjs.map
|