@db-ux/ngx-core-components 4.10.1 → 4.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/README.md +1 -1
- package/agent/Accordion.md +1 -1
- package/agent/AccordionItem.md +1 -1
- package/agent/Badge.md +1 -1
- package/agent/Brand.md +1 -1
- package/agent/Button.md +1 -1
- package/agent/Card.md +1 -1
- package/agent/Checkbox.md +1 -1
- package/agent/CustomSelect.md +1 -1
- package/agent/Divider.md +1 -1
- package/agent/Drawer.md +1 -1
- package/agent/Header.md +1 -1
- package/agent/Icon.md +1 -1
- package/agent/Infotext.md +1 -1
- package/agent/Input.md +1 -1
- package/agent/Link.md +1 -1
- package/agent/Navigation.md +1 -1
- package/agent/NavigationItem.md +1 -1
- package/agent/Notification.md +1 -1
- package/agent/Page.md +1 -1
- package/agent/Popover.md +1 -1
- package/agent/Radio.md +1 -1
- package/agent/Section.md +1 -1
- package/agent/Select.md +1 -1
- package/agent/Stack.md +1 -1
- package/agent/Switch.md +1 -1
- package/agent/TabItem.md +1 -1
- package/agent/Tabs.md +1 -1
- package/agent/Tag.md +1 -1
- package/agent/Textarea.md +1 -1
- package/agent/Tooltip.md +1 -1
- package/fesm2022/db-ux-ngx-core-components.mjs +1530 -581
- package/fesm2022/db-ux-ngx-core-components.mjs.map +1 -1
- package/package.json +3 -3
- package/types/db-ux-ngx-core-components.d.ts +457 -29
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, output, viewChild, signal, effect, Component, model, Directive, TemplateRef, ContentChild } from '@angular/core';
|
|
2
|
+
import { input, output, viewChild, signal, effect, VERSION, Component, model, Directive, TemplateRef, ContentChild } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
5
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
@@ -66,16 +66,21 @@ const isIOSSafari = () => {
|
|
|
66
66
|
};
|
|
67
67
|
const delay = (fn, ms) => new Promise(() => setTimeout(fn, ms));
|
|
68
68
|
/**
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
69
|
+
* Converts boolean-like inputs to "true" or "false" strings.
|
|
70
|
+
* Handles HTML-style boolean attributes where an empty string or the
|
|
71
|
+
* attribute's own name as value (e.g. noText="noText") should be treated as true.
|
|
72
|
+
* Some frameworks like Stencil do not add "true" as value for a prop
|
|
73
|
+
* if it is used in a framework like Angular e.g.: [disabled]="myDisabledProp"
|
|
74
|
+
* @param originBool Boolean or string value to convert
|
|
75
|
+
* @param propertyName The prop/attribute name — when originBool is a string equal
|
|
76
|
+
* to this name (case-insensitive), it is treated as true
|
|
72
77
|
*/
|
|
73
78
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
74
|
-
const getBooleanAsString = (originBool) => {
|
|
79
|
+
const getBooleanAsString = (originBool, propertyName) => {
|
|
75
80
|
if (originBool === undefined || originBool === null)
|
|
76
81
|
return;
|
|
77
82
|
if (typeof originBool === 'string') {
|
|
78
|
-
return String(originBool === 'true');
|
|
83
|
+
return String(originBool === '' || originBool === 'true' || propertyName?.toLowerCase() === originBool.toLowerCase());
|
|
79
84
|
}
|
|
80
85
|
return String(originBool);
|
|
81
86
|
};
|
|
@@ -83,7 +88,7 @@ const getBoolean = (originBool, propertyName) => {
|
|
|
83
88
|
if (originBool === undefined || originBool === null)
|
|
84
89
|
return;
|
|
85
90
|
if (typeof originBool === 'string') {
|
|
86
|
-
return Boolean(
|
|
91
|
+
return Boolean(originBool === '' || originBool === 'true' || propertyName?.toLowerCase() === originBool.toLowerCase());
|
|
87
92
|
}
|
|
88
93
|
return Boolean(originBool);
|
|
89
94
|
};
|
|
@@ -124,13 +129,13 @@ const getStep = (step) => {
|
|
|
124
129
|
const getInputValue = (value, inputType) => {
|
|
125
130
|
return inputType && ['number', 'range'].includes(inputType) ? getNumber(value) : value;
|
|
126
131
|
};
|
|
127
|
-
const toBool = (value) => typeof value === 'string' ? value
|
|
132
|
+
const toBool = (value) => typeof value === 'string' ? value !== 'false' : value;
|
|
128
133
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
129
134
|
const getHideProp = (show) => {
|
|
130
135
|
if (show === undefined || show === null) {
|
|
131
136
|
return undefined;
|
|
132
137
|
}
|
|
133
|
-
return getBooleanAsString(!toBool(show));
|
|
138
|
+
return getBooleanAsString(!toBool(show), 'show');
|
|
134
139
|
};
|
|
135
140
|
const stringPropVisible = (givenString, showString) => {
|
|
136
141
|
if (showString === undefined) {
|
|
@@ -170,7 +175,7 @@ const getNotificationRole = ({ semantic, role, ariaLive }) => {
|
|
|
170
175
|
}
|
|
171
176
|
};
|
|
172
177
|
|
|
173
|
-
const defaultProps$
|
|
178
|
+
const defaultProps$I = {};
|
|
174
179
|
class DBAccordionItem {
|
|
175
180
|
handleNameAttribute() {
|
|
176
181
|
if (this._ref()?.nativeElement) {
|
|
@@ -219,9 +224,9 @@ class DBAccordionItem {
|
|
|
219
224
|
// ---
|
|
220
225
|
if (this._ref()?.nativeElement && this.initialized()) {
|
|
221
226
|
}
|
|
222
|
-
},
|
|
223
|
-
|
|
224
|
-
|
|
227
|
+
}, Number(VERSION.major) < 19
|
|
228
|
+
? { allowSignalWrites: true }
|
|
229
|
+
: undefined);
|
|
225
230
|
effect(() => {
|
|
226
231
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
227
232
|
this.name();
|
|
@@ -229,9 +234,9 @@ class DBAccordionItem {
|
|
|
229
234
|
if (this.name()) {
|
|
230
235
|
this._name.set(this.name());
|
|
231
236
|
}
|
|
232
|
-
},
|
|
233
|
-
|
|
234
|
-
|
|
237
|
+
}, Number(VERSION.major) < 19
|
|
238
|
+
? { allowSignalWrites: true }
|
|
239
|
+
: undefined);
|
|
235
240
|
effect(() => {
|
|
236
241
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
237
242
|
this.open();
|
|
@@ -240,9 +245,9 @@ class DBAccordionItem {
|
|
|
240
245
|
if (nextOpen !== undefined) {
|
|
241
246
|
this._open.set(nextOpen);
|
|
242
247
|
}
|
|
243
|
-
},
|
|
244
|
-
|
|
245
|
-
|
|
248
|
+
}, Number(VERSION.major) < 19
|
|
249
|
+
? { allowSignalWrites: true }
|
|
250
|
+
: undefined);
|
|
246
251
|
}
|
|
247
252
|
}
|
|
248
253
|
/**
|
|
@@ -282,22 +287,22 @@ class DBAccordionItem {
|
|
|
282
287
|
}
|
|
283
288
|
}
|
|
284
289
|
ngAfterViewInit() {
|
|
290
|
+
const element = this._ref()?.nativeElement;
|
|
291
|
+
this.enableAttributePassing(element, "db-accordion-item");
|
|
285
292
|
if (typeof window !== "undefined") {
|
|
286
|
-
const element = this._ref()?.nativeElement;
|
|
287
|
-
this.enableAttributePassing(element, "db-accordion-item");
|
|
288
293
|
if (this.defaultOpen()) {
|
|
289
294
|
this._open.set(this.defaultOpen());
|
|
290
295
|
}
|
|
291
296
|
this.initialized.set(true);
|
|
292
297
|
}
|
|
293
298
|
}
|
|
294
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
295
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
299
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBAccordionItem, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
300
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: DBAccordionItem, isStandalone: true, selector: "db-accordion-item", inputs: { defaultOpen: { classPropertyName: "defaultOpen", publicName: "defaultOpen", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, headlinePlain: { classPropertyName: "headlinePlain", publicName: "headlinePlain", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { toggle: "toggle" }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<li
|
|
296
301
|
[attr.id]="id() ?? propOverrides()?.id"
|
|
297
302
|
[class]="cls('db-accordion-item', className())"
|
|
298
303
|
>
|
|
299
304
|
<details
|
|
300
|
-
[attr.aria-disabled]="getBooleanAsString(disabled())"
|
|
305
|
+
[attr.aria-disabled]="getBooleanAsString(disabled(), 'disabled')"
|
|
301
306
|
#_ref
|
|
302
307
|
[attr.name]="_name()"
|
|
303
308
|
[open]="_open()"
|
|
@@ -311,14 +316,14 @@ class DBAccordionItem {
|
|
|
311
316
|
</details>
|
|
312
317
|
</li> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
313
318
|
}
|
|
314
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
319
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBAccordionItem, decorators: [{
|
|
315
320
|
type: Component,
|
|
316
321
|
args: [{ selector: "db-accordion-item", standalone: true, imports: [CommonModule], template: `<li
|
|
317
322
|
[attr.id]="id() ?? propOverrides()?.id"
|
|
318
323
|
[class]="cls('db-accordion-item', className())"
|
|
319
324
|
>
|
|
320
325
|
<details
|
|
321
|
-
[attr.aria-disabled]="getBooleanAsString(disabled())"
|
|
326
|
+
[attr.aria-disabled]="getBooleanAsString(disabled(), 'disabled')"
|
|
322
327
|
#_ref
|
|
323
328
|
[attr.name]="_name()"
|
|
324
329
|
[open]="_open()"
|
|
@@ -333,7 +338,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
333
338
|
</li> `, styles: [":host{display:contents}\n"] }]
|
|
334
339
|
}], ctorParameters: () => [], propDecorators: { defaultOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultOpen", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], headlinePlain: [{ type: i0.Input, args: [{ isSignal: true, alias: "headlinePlain", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], toggle: [{ type: i0.Output, args: ["toggle"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
335
340
|
|
|
336
|
-
const defaultProps$
|
|
341
|
+
const defaultProps$H = {};
|
|
337
342
|
class DBAccordion {
|
|
338
343
|
convertItems() {
|
|
339
344
|
try {
|
|
@@ -388,9 +393,9 @@ class DBAccordion {
|
|
|
388
393
|
this._name.set("");
|
|
389
394
|
}
|
|
390
395
|
}
|
|
391
|
-
},
|
|
392
|
-
|
|
393
|
-
|
|
396
|
+
}, Number(VERSION.major) < 19
|
|
397
|
+
? { allowSignalWrites: true }
|
|
398
|
+
: undefined);
|
|
394
399
|
effect(() => {
|
|
395
400
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
396
401
|
this._ref();
|
|
@@ -409,9 +414,9 @@ class DBAccordion {
|
|
|
409
414
|
}
|
|
410
415
|
}
|
|
411
416
|
}
|
|
412
|
-
},
|
|
413
|
-
|
|
414
|
-
|
|
417
|
+
}, Number(VERSION.major) < 19
|
|
418
|
+
? { allowSignalWrites: true }
|
|
419
|
+
: undefined);
|
|
415
420
|
effect(() => {
|
|
416
421
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
417
422
|
this._ref();
|
|
@@ -435,9 +440,9 @@ class DBAccordion {
|
|
|
435
440
|
}
|
|
436
441
|
this._initOpenIndexDone.set(false);
|
|
437
442
|
}
|
|
438
|
-
},
|
|
439
|
-
|
|
440
|
-
|
|
443
|
+
}, Number(VERSION.major) < 19
|
|
444
|
+
? { allowSignalWrites: true }
|
|
445
|
+
: undefined);
|
|
441
446
|
}
|
|
442
447
|
}
|
|
443
448
|
/**
|
|
@@ -477,15 +482,15 @@ class DBAccordion {
|
|
|
477
482
|
}
|
|
478
483
|
}
|
|
479
484
|
ngAfterViewInit() {
|
|
485
|
+
const element = this._ref()?.nativeElement;
|
|
486
|
+
this.enableAttributePassing(element, "db-accordion");
|
|
480
487
|
if (typeof window !== "undefined") {
|
|
481
|
-
const element = this._ref()?.nativeElement;
|
|
482
|
-
this.enableAttributePassing(element, "db-accordion");
|
|
483
488
|
this.initialized.set(true);
|
|
484
489
|
this._initOpenIndexDone.set(true);
|
|
485
490
|
}
|
|
486
491
|
}
|
|
487
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
488
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
492
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBAccordion, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
493
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: DBAccordion, isStandalone: true, selector: "db-accordion", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, behavior: { classPropertyName: "behavior", publicName: "behavior", isSignal: true, isRequired: false, transformFunction: null }, initOpenIndex: { classPropertyName: "initOpenIndex", publicName: "initOpenIndex", isSignal: true, isRequired: false, transformFunction: null }, items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<ul
|
|
489
494
|
#_ref
|
|
490
495
|
[attr.id]="id() ?? propOverrides()?.id"
|
|
491
496
|
[class]="cls('db-accordion', className())"
|
|
@@ -503,7 +508,7 @@ class DBAccordion {
|
|
|
503
508
|
} }
|
|
504
509
|
</ul> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBAccordionItem, selector: "db-accordion-item", inputs: ["defaultOpen", "name", "open", "id", "propOverrides", "className", "disabled", "headlinePlain", "text"], outputs: ["toggle"] }] }); }
|
|
505
510
|
}
|
|
506
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
511
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBAccordion, decorators: [{
|
|
507
512
|
type: Component,
|
|
508
513
|
args: [{ selector: "db-accordion", standalone: true, imports: [CommonModule, DBAccordionItem], template: `<ul
|
|
509
514
|
#_ref
|
|
@@ -628,7 +633,7 @@ const TESTING_VIEWPORTS = [{
|
|
|
628
633
|
const DB_UX_LOCAL_STORAGE_FRAMEWORK = 'db-ux-framework';
|
|
629
634
|
const DB_UX_LOCAL_STORAGE_MODE = 'db-ux-mode';
|
|
630
635
|
|
|
631
|
-
const defaultProps$
|
|
636
|
+
const defaultProps$G = {};
|
|
632
637
|
class DBBadge {
|
|
633
638
|
constructor() {
|
|
634
639
|
this.cls = cls;
|
|
@@ -664,9 +669,9 @@ class DBBadge {
|
|
|
664
669
|
}
|
|
665
670
|
}
|
|
666
671
|
}
|
|
667
|
-
},
|
|
668
|
-
|
|
669
|
-
|
|
672
|
+
}, Number(VERSION.major) < 19
|
|
673
|
+
? { allowSignalWrites: true }
|
|
674
|
+
: undefined);
|
|
670
675
|
}
|
|
671
676
|
}
|
|
672
677
|
/**
|
|
@@ -706,14 +711,14 @@ class DBBadge {
|
|
|
706
711
|
}
|
|
707
712
|
}
|
|
708
713
|
ngAfterViewInit() {
|
|
714
|
+
const element = this._ref()?.nativeElement;
|
|
715
|
+
this.enableAttributePassing(element, "db-badge");
|
|
709
716
|
if (typeof window !== "undefined") {
|
|
710
|
-
const element = this._ref()?.nativeElement;
|
|
711
|
-
this.enableAttributePassing(element, "db-badge");
|
|
712
717
|
this.initialized.set(true);
|
|
713
718
|
}
|
|
714
719
|
}
|
|
715
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
716
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
720
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBBadge, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
721
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: DBBadge, isStandalone: true, selector: "db-badge", inputs: { placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, semantic: { classPropertyName: "semantic", publicName: "semantic", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, emphasis: { classPropertyName: "emphasis", publicName: "emphasis", isSignal: true, isRequired: false, transformFunction: null }, wrap: { classPropertyName: "wrap", publicName: "wrap", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<span
|
|
717
722
|
#_ref
|
|
718
723
|
[attr.id]="id() ?? propOverrides()?.id"
|
|
719
724
|
[class]="cls('db-badge', className())"
|
|
@@ -721,12 +726,12 @@ class DBBadge {
|
|
|
721
726
|
[attr.data-size]="size()"
|
|
722
727
|
[attr.data-emphasis]="emphasis()"
|
|
723
728
|
[attr.data-placement]="placement()"
|
|
724
|
-
[attr.data-wrap]="getBooleanAsString(wrap())"
|
|
729
|
+
[attr.data-wrap]="getBooleanAsString(wrap(), 'wrap')"
|
|
725
730
|
[attr.data-label]="placement()?.startsWith('corner') && (label() ?? DEFAULT_LABEL)"
|
|
726
731
|
>@if(text()){{{text()}}} <ng-content></ng-content
|
|
727
732
|
></span> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
728
733
|
}
|
|
729
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
734
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBBadge, decorators: [{
|
|
730
735
|
type: Component,
|
|
731
736
|
args: [{ selector: "db-badge", standalone: true, imports: [CommonModule], template: `<span
|
|
732
737
|
#_ref
|
|
@@ -736,7 +741,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
736
741
|
[attr.data-size]="size()"
|
|
737
742
|
[attr.data-emphasis]="emphasis()"
|
|
738
743
|
[attr.data-placement]="placement()"
|
|
739
|
-
[attr.data-wrap]="getBooleanAsString(wrap())"
|
|
744
|
+
[attr.data-wrap]="getBooleanAsString(wrap(), 'wrap')"
|
|
740
745
|
[attr.data-label]="placement()?.startsWith('corner') && (label() ?? DEFAULT_LABEL)"
|
|
741
746
|
>@if(text()){{{text()}}} <ng-content></ng-content
|
|
742
747
|
></span> `, styles: [":host{display:contents}\n"] }]
|
|
@@ -744,7 +749,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
744
749
|
|
|
745
750
|
const BadgePlacementList = ['inline', 'corner-top-left', 'corner-top-right', 'corner-center-left', 'corner-center-right', 'corner-bottom-left', 'corner-bottom-right'];
|
|
746
751
|
|
|
747
|
-
const defaultProps$
|
|
752
|
+
const defaultProps$F = {};
|
|
748
753
|
class DBBrand {
|
|
749
754
|
constructor() {
|
|
750
755
|
this.DEFAULT_ICON = DEFAULT_ICON;
|
|
@@ -796,28 +801,26 @@ class DBBrand {
|
|
|
796
801
|
}
|
|
797
802
|
}
|
|
798
803
|
ngAfterViewInit() {
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
this.enableAttributePassing(element, "db-brand");
|
|
802
|
-
}
|
|
804
|
+
const element = this._ref()?.nativeElement;
|
|
805
|
+
this.enableAttributePassing(element, "db-brand");
|
|
803
806
|
}
|
|
804
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
805
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
807
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBBrand, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
808
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: DBBrand, isStandalone: true, selector: "db-brand", inputs: { hideLogo: { classPropertyName: "hideLogo", publicName: "hideLogo", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<div
|
|
806
809
|
#_ref
|
|
807
810
|
[attr.data-icon]="hideLogo() ? 'none' : icon() ?? DEFAULT_ICON"
|
|
808
|
-
[attr.data-show-icon]="getBooleanAsString(showIcon())"
|
|
811
|
+
[attr.data-show-icon]="getBooleanAsString(showIcon(), 'showIcon')"
|
|
809
812
|
[attr.id]="id() ?? propOverrides()?.id"
|
|
810
813
|
[class]="cls('db-brand', className())"
|
|
811
814
|
>
|
|
812
815
|
<ng-content></ng-content> @if(text()){{{text()}}}
|
|
813
816
|
</div> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
814
817
|
}
|
|
815
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
818
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBBrand, decorators: [{
|
|
816
819
|
type: Component,
|
|
817
820
|
args: [{ selector: "db-brand", standalone: true, imports: [CommonModule], template: `<div
|
|
818
821
|
#_ref
|
|
819
822
|
[attr.data-icon]="hideLogo() ? 'none' : icon() ?? DEFAULT_ICON"
|
|
820
|
-
[attr.data-show-icon]="getBooleanAsString(showIcon())"
|
|
823
|
+
[attr.data-show-icon]="getBooleanAsString(showIcon(), 'showIcon')"
|
|
821
824
|
[attr.id]="id() ?? propOverrides()?.id"
|
|
822
825
|
[class]="cls('db-brand', className())"
|
|
823
826
|
>
|
|
@@ -825,7 +828,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
825
828
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
826
829
|
}], ctorParameters: () => [], propDecorators: { hideLogo: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideLogo", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
827
830
|
|
|
828
|
-
const defaultProps$
|
|
831
|
+
const defaultProps$E = {};
|
|
829
832
|
class DBButton {
|
|
830
833
|
getButtonType() {
|
|
831
834
|
if (this.type()) {
|
|
@@ -900,27 +903,25 @@ class DBButton {
|
|
|
900
903
|
}
|
|
901
904
|
}
|
|
902
905
|
ngAfterViewInit() {
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
this.enableAttributePassing(element, "db-button");
|
|
906
|
-
}
|
|
906
|
+
const element = this._ref()?.nativeElement;
|
|
907
|
+
this.enableAttributePassing(element, "db-button");
|
|
907
908
|
}
|
|
908
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
909
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
909
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBButton, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
910
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: DBButton, isStandalone: true, selector: "db-button", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, iconLeading: { classPropertyName: "iconLeading", publicName: "iconLeading", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, showIconLeading: { classPropertyName: "showIconLeading", publicName: "showIconLeading", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, iconTrailing: { classPropertyName: "iconTrailing", publicName: "iconTrailing", isSignal: true, isRequired: false, transformFunction: null }, showIconTrailing: { classPropertyName: "showIconTrailing", publicName: "showIconTrailing", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, wrap: { classPropertyName: "wrap", publicName: "wrap", isSignal: true, isRequired: false, transformFunction: null }, noText: { classPropertyName: "noText", publicName: "noText", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, form: { classPropertyName: "form", publicName: "form", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { click: "click" }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<button
|
|
910
911
|
#_ref
|
|
911
912
|
[attr.id]="id() ?? propOverrides()?.id"
|
|
912
913
|
[class]="cls('db-button', className())"
|
|
913
914
|
[attr.type]="getButtonType()"
|
|
914
915
|
[disabled]="getBoolean(disabled(), 'disabled')"
|
|
915
916
|
[attr.data-icon]="iconLeading() ?? icon()"
|
|
916
|
-
[attr.data-show-icon]="getBooleanAsString(showIconLeading()
|
|
917
|
+
[attr.data-show-icon]="getBooleanAsString(showIconLeading(), 'showIconLeading') || getBooleanAsString(showIcon(), 'showIcon')"
|
|
917
918
|
[attr.data-icon-trailing]="iconTrailing()"
|
|
918
|
-
[attr.data-show-icon-trailing]="getBooleanAsString(showIconTrailing())"
|
|
919
|
+
[attr.data-show-icon-trailing]="getBooleanAsString(showIconTrailing(), 'showIconTrailing')"
|
|
919
920
|
[attr.data-size]="size()"
|
|
920
921
|
[attr.data-width]="width()"
|
|
921
922
|
[attr.data-variant]="variant()"
|
|
922
|
-
[attr.data-wrap]="getBooleanAsString(wrap())"
|
|
923
|
-
[attr.data-no-text]="getBooleanAsString(noText())"
|
|
923
|
+
[attr.data-wrap]="getBooleanAsString(wrap(), 'wrap')"
|
|
924
|
+
[attr.data-no-text]="getBooleanAsString(noText(), 'noText')"
|
|
924
925
|
[attr.name]="name()"
|
|
925
926
|
[attr.form]="form()"
|
|
926
927
|
[attr.value]="value()"
|
|
@@ -928,7 +929,7 @@ class DBButton {
|
|
|
928
929
|
@if(text()){{{text()}}} <ng-content></ng-content>
|
|
929
930
|
</button> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
930
931
|
}
|
|
931
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
932
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBButton, decorators: [{
|
|
932
933
|
type: Component,
|
|
933
934
|
args: [{ selector: "db-button", standalone: true, imports: [CommonModule], template: `<button
|
|
934
935
|
#_ref
|
|
@@ -937,14 +938,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
937
938
|
[attr.type]="getButtonType()"
|
|
938
939
|
[disabled]="getBoolean(disabled(), 'disabled')"
|
|
939
940
|
[attr.data-icon]="iconLeading() ?? icon()"
|
|
940
|
-
[attr.data-show-icon]="getBooleanAsString(showIconLeading()
|
|
941
|
+
[attr.data-show-icon]="getBooleanAsString(showIconLeading(), 'showIconLeading') || getBooleanAsString(showIcon(), 'showIcon')"
|
|
941
942
|
[attr.data-icon-trailing]="iconTrailing()"
|
|
942
|
-
[attr.data-show-icon-trailing]="getBooleanAsString(showIconTrailing())"
|
|
943
|
+
[attr.data-show-icon-trailing]="getBooleanAsString(showIconTrailing(), 'showIconTrailing')"
|
|
943
944
|
[attr.data-size]="size()"
|
|
944
945
|
[attr.data-width]="width()"
|
|
945
946
|
[attr.data-variant]="variant()"
|
|
946
|
-
[attr.data-wrap]="getBooleanAsString(wrap())"
|
|
947
|
-
[attr.data-no-text]="getBooleanAsString(noText())"
|
|
947
|
+
[attr.data-wrap]="getBooleanAsString(wrap(), 'wrap')"
|
|
948
|
+
[attr.data-no-text]="getBooleanAsString(noText(), 'noText')"
|
|
948
949
|
[attr.name]="name()"
|
|
949
950
|
[attr.form]="form()"
|
|
950
951
|
[attr.value]="value()"
|
|
@@ -956,7 +957,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
956
957
|
const ButtonVariantList = ['outlined', 'brand', 'filled', 'ghost'];
|
|
957
958
|
const ButtonTypeList = ['button', 'reset', 'submit'];
|
|
958
959
|
|
|
959
|
-
const defaultProps$
|
|
960
|
+
const defaultProps$D = {};
|
|
960
961
|
class DBCard {
|
|
961
962
|
handleClick(event) {
|
|
962
963
|
if (this.click) {
|
|
@@ -1011,13 +1012,11 @@ class DBCard {
|
|
|
1011
1012
|
}
|
|
1012
1013
|
}
|
|
1013
1014
|
ngAfterViewInit() {
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
this.enableAttributePassing(element, "db-card");
|
|
1017
|
-
}
|
|
1015
|
+
const element = this._ref()?.nativeElement;
|
|
1016
|
+
this.enableAttributePassing(element, "db-card");
|
|
1018
1017
|
}
|
|
1019
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1020
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.
|
|
1018
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBCard, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1019
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.16", type: DBCard, isStandalone: true, selector: "db-card", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, behavior: { classPropertyName: "behavior", publicName: "behavior", isSignal: true, isRequired: false, transformFunction: null }, elevationLevel: { classPropertyName: "elevationLevel", publicName: "elevationLevel", isSignal: true, isRequired: false, transformFunction: null }, spacing: { classPropertyName: "spacing", publicName: "spacing", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { click: "click" }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<div
|
|
1021
1020
|
#_ref
|
|
1022
1021
|
[attr.id]="id() ?? propOverrides()?.id"
|
|
1023
1022
|
[class]="cls('db-card', className())"
|
|
@@ -1029,7 +1028,7 @@ class DBCard {
|
|
|
1029
1028
|
<ng-content></ng-content>
|
|
1030
1029
|
</div> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
1031
1030
|
}
|
|
1032
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1031
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBCard, decorators: [{
|
|
1033
1032
|
type: Component,
|
|
1034
1033
|
args: [{ selector: "db-card", standalone: true, imports: [CommonModule], template: `<div
|
|
1035
1034
|
#_ref
|
|
@@ -1119,7 +1118,7 @@ const addValueResetEventListener = (element, props, resetFunction, signal) => {
|
|
|
1119
1118
|
}, signal);
|
|
1120
1119
|
};
|
|
1121
1120
|
|
|
1122
|
-
const defaultProps$
|
|
1121
|
+
const defaultProps$C = {};
|
|
1123
1122
|
class DBInfotext {
|
|
1124
1123
|
constructor() {
|
|
1125
1124
|
this.cls = cls;
|
|
@@ -1172,25 +1171,23 @@ class DBInfotext {
|
|
|
1172
1171
|
}
|
|
1173
1172
|
}
|
|
1174
1173
|
ngAfterViewInit() {
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
this.enableAttributePassing(element, "db-infotext");
|
|
1178
|
-
}
|
|
1174
|
+
const element = this._ref()?.nativeElement;
|
|
1175
|
+
this.enableAttributePassing(element, "db-infotext");
|
|
1179
1176
|
}
|
|
1180
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1181
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
1177
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBInfotext, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1178
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: DBInfotext, isStandalone: true, selector: "db-infotext", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, semantic: { classPropertyName: "semantic", publicName: "semantic", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, wrap: { classPropertyName: "wrap", publicName: "wrap", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<span
|
|
1182
1179
|
#_ref
|
|
1183
1180
|
[attr.id]="id() ?? propOverrides()?.id"
|
|
1184
1181
|
[class]="cls('db-infotext', className())"
|
|
1185
1182
|
[attr.data-icon]="icon()"
|
|
1186
1183
|
[attr.data-semantic]="semantic()"
|
|
1187
1184
|
[attr.data-size]="size()"
|
|
1188
|
-
[attr.data-wrap]="getBooleanAsString(wrap())"
|
|
1189
|
-
[attr.data-show-icon-leading]="getBooleanAsString(showIcon() ?? true)"
|
|
1185
|
+
[attr.data-wrap]="getBooleanAsString(wrap(), 'wrap')"
|
|
1186
|
+
[attr.data-show-icon-leading]="getBooleanAsString(showIcon() ?? true, 'showIcon')"
|
|
1190
1187
|
>@if(text()){{{text()}}} <ng-content></ng-content
|
|
1191
1188
|
></span> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
1192
1189
|
}
|
|
1193
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1190
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBInfotext, decorators: [{
|
|
1194
1191
|
type: Component,
|
|
1195
1192
|
args: [{ selector: "db-infotext", standalone: true, imports: [CommonModule], template: `<span
|
|
1196
1193
|
#_ref
|
|
@@ -1199,13 +1196,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
1199
1196
|
[attr.data-icon]="icon()"
|
|
1200
1197
|
[attr.data-semantic]="semantic()"
|
|
1201
1198
|
[attr.data-size]="size()"
|
|
1202
|
-
[attr.data-wrap]="getBooleanAsString(wrap())"
|
|
1203
|
-
[attr.data-show-icon-leading]="getBooleanAsString(showIcon() ?? true)"
|
|
1199
|
+
[attr.data-wrap]="getBooleanAsString(wrap(), 'wrap')"
|
|
1200
|
+
[attr.data-show-icon-leading]="getBooleanAsString(showIcon() ?? true, 'showIcon')"
|
|
1204
1201
|
>@if(text()){{{text()}}} <ng-content></ng-content
|
|
1205
1202
|
></span> `, styles: [":host{display:contents}\n"] }]
|
|
1206
1203
|
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], semantic: [{ type: i0.Input, args: [{ isSignal: true, alias: "semantic", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], wrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "wrap", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
1207
1204
|
|
|
1208
|
-
const defaultProps$
|
|
1205
|
+
const defaultProps$B = {};
|
|
1209
1206
|
class DBCheckbox {
|
|
1210
1207
|
hasValidState() {
|
|
1211
1208
|
return !!(this.validMessage() ?? this.validation() === "valid");
|
|
@@ -1314,9 +1311,9 @@ class DBCheckbox {
|
|
|
1314
1311
|
if (this.id() ?? this.propOverrides()?.id) {
|
|
1315
1312
|
this.resetIds();
|
|
1316
1313
|
}
|
|
1317
|
-
},
|
|
1318
|
-
|
|
1319
|
-
|
|
1314
|
+
}, Number(VERSION.major) < 19
|
|
1315
|
+
? { allowSignalWrites: true }
|
|
1316
|
+
: undefined);
|
|
1320
1317
|
effect(() => {
|
|
1321
1318
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
1322
1319
|
this._ref();
|
|
@@ -1325,9 +1322,9 @@ class DBCheckbox {
|
|
|
1325
1322
|
this._invalidMessage.set(this.invalidMessage() ||
|
|
1326
1323
|
this._ref()?.nativeElement?.validationMessage ||
|
|
1327
1324
|
DEFAULT_INVALID_MESSAGE);
|
|
1328
|
-
},
|
|
1329
|
-
|
|
1330
|
-
|
|
1325
|
+
}, Number(VERSION.major) < 19
|
|
1326
|
+
? { allowSignalWrites: true }
|
|
1327
|
+
: undefined);
|
|
1331
1328
|
effect(() => {
|
|
1332
1329
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
1333
1330
|
this._id();
|
|
@@ -1342,9 +1339,9 @@ class DBCheckbox {
|
|
|
1342
1339
|
}
|
|
1343
1340
|
this.handleValidation();
|
|
1344
1341
|
}
|
|
1345
|
-
},
|
|
1346
|
-
|
|
1347
|
-
|
|
1342
|
+
}, Number(VERSION.major) < 19
|
|
1343
|
+
? { allowSignalWrites: true }
|
|
1344
|
+
: undefined);
|
|
1348
1345
|
effect(() => {
|
|
1349
1346
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
1350
1347
|
this.initialized();
|
|
@@ -1358,9 +1355,9 @@ class DBCheckbox {
|
|
|
1358
1355
|
this._ref().nativeElement.indeterminate = !!getBoolean(this.indeterminate());
|
|
1359
1356
|
}
|
|
1360
1357
|
}
|
|
1361
|
-
},
|
|
1362
|
-
|
|
1363
|
-
|
|
1358
|
+
}, Number(VERSION.major) < 19
|
|
1359
|
+
? { allowSignalWrites: true }
|
|
1360
|
+
: undefined);
|
|
1364
1361
|
effect(() => {
|
|
1365
1362
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
1366
1363
|
this.initialized();
|
|
@@ -1374,9 +1371,9 @@ class DBCheckbox {
|
|
|
1374
1371
|
}
|
|
1375
1372
|
this.initialized.set(false);
|
|
1376
1373
|
}
|
|
1377
|
-
},
|
|
1378
|
-
|
|
1379
|
-
|
|
1374
|
+
}, Number(VERSION.major) < 19
|
|
1375
|
+
? { allowSignalWrites: true }
|
|
1376
|
+
: undefined);
|
|
1380
1377
|
effect(() => {
|
|
1381
1378
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
1382
1379
|
this._ref();
|
|
@@ -1395,9 +1392,9 @@ class DBCheckbox {
|
|
|
1395
1392
|
this.handleChange(event, true);
|
|
1396
1393
|
}, controller.signal);
|
|
1397
1394
|
}
|
|
1398
|
-
},
|
|
1399
|
-
|
|
1400
|
-
|
|
1395
|
+
}, Number(VERSION.major) < 19
|
|
1396
|
+
? { allowSignalWrites: true }
|
|
1397
|
+
: undefined);
|
|
1401
1398
|
}
|
|
1402
1399
|
}
|
|
1403
1400
|
/**
|
|
@@ -1452,9 +1449,9 @@ class DBCheckbox {
|
|
|
1452
1449
|
this.disabled.set(disabled);
|
|
1453
1450
|
}
|
|
1454
1451
|
ngAfterViewInit() {
|
|
1452
|
+
const element = this._ref()?.nativeElement;
|
|
1453
|
+
this.enableAttributePassing(element, "db-checkbox");
|
|
1455
1454
|
if (typeof window !== "undefined") {
|
|
1456
|
-
const element = this._ref()?.nativeElement;
|
|
1457
|
-
this.enableAttributePassing(element, "db-checkbox");
|
|
1458
1455
|
this.initialized.set(true);
|
|
1459
1456
|
this.resetIds();
|
|
1460
1457
|
this._invalidMessage.set(this.invalidMessage() || DEFAULT_INVALID_MESSAGE);
|
|
@@ -1463,8 +1460,8 @@ class DBCheckbox {
|
|
|
1463
1460
|
ngOnDestroy() {
|
|
1464
1461
|
this.abortController()?.abort();
|
|
1465
1462
|
}
|
|
1466
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1467
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
1463
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBCheckbox, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1464
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: DBCheckbox, isStandalone: true, selector: "db-checkbox", inputs: { invalidMessage: { classPropertyName: "invalidMessage", publicName: "invalidMessage", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null }, showMessage: { classPropertyName: "showMessage", publicName: "showMessage", isSignal: true, isRequired: false, transformFunction: null }, indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null }, checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, validMessage: { classPropertyName: "validMessage", publicName: "validMessage", isSignal: true, isRequired: false, transformFunction: null }, validation: { classPropertyName: "validation", publicName: "validation", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, showRequiredAsterisk: { classPropertyName: "showRequiredAsterisk", publicName: "showRequiredAsterisk", isSignal: true, isRequired: false, transformFunction: null }, showLabel: { classPropertyName: "showLabel", publicName: "showLabel", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, ariaDescribedBy: { classPropertyName: "ariaDescribedBy", publicName: "ariaDescribedBy", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, messageIcon: { classPropertyName: "messageIcon", publicName: "messageIcon", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checked: "checkedChange", disabled: "disabledChange", change: "change", blur: "blur", focus: "focus" }, providers: [{
|
|
1468
1465
|
provide: NG_VALUE_ACCESSOR,
|
|
1469
1466
|
useExisting: DBCheckbox,
|
|
1470
1467
|
multi: true
|
|
@@ -1520,7 +1517,7 @@ class DBCheckbox {
|
|
|
1520
1517
|
>
|
|
1521
1518
|
</div> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBInfotext, selector: "db-infotext", inputs: ["id", "propOverrides", "className", "icon", "semantic", "size", "wrap", "showIcon", "text"] }] }); }
|
|
1522
1519
|
}
|
|
1523
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1520
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBCheckbox, decorators: [{
|
|
1524
1521
|
type: Component,
|
|
1525
1522
|
args: [{ providers: [{
|
|
1526
1523
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -1579,7 +1576,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
1579
1576
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
1580
1577
|
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { invalidMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalidMessage", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: false }] }], showMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "showMessage", required: false }] }], indeterminate: [{ type: i0.Input, args: [{ isSignal: true, alias: "indeterminate", required: false }] }], checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }, { type: i0.Output, args: ["checkedChange"] }], validMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "validMessage", required: false }] }], validation: [{ type: i0.Input, args: [{ isSignal: true, alias: "validation", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], showRequiredAsterisk: [{ type: i0.Input, args: [{ isSignal: true, alias: "showRequiredAsterisk", required: false }] }], showLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLabel", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }, { type: i0.Output, args: ["disabledChange"] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], ariaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedBy", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], messageIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "messageIcon", required: false }] }], change: [{ type: i0.Output, args: ["change"] }], blur: [{ type: i0.Output, args: ["blur"] }], focus: [{ type: i0.Output, args: ["focus"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
1581
1578
|
|
|
1582
|
-
const defaultProps$
|
|
1579
|
+
const defaultProps$A = {};
|
|
1583
1580
|
class DBCustomButton {
|
|
1584
1581
|
constructor() {
|
|
1585
1582
|
this.cls = cls;
|
|
@@ -1636,42 +1633,40 @@ class DBCustomButton {
|
|
|
1636
1633
|
}
|
|
1637
1634
|
}
|
|
1638
1635
|
ngAfterViewInit() {
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
this.enableAttributePassing(element, "db-custom-button");
|
|
1642
|
-
}
|
|
1636
|
+
const element = this._ref()?.nativeElement;
|
|
1637
|
+
this.enableAttributePassing(element, "db-custom-button");
|
|
1643
1638
|
}
|
|
1644
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1645
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.
|
|
1639
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBCustomButton, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1640
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.16", type: DBCustomButton, isStandalone: true, selector: "db-custom-button", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, iconLeading: { classPropertyName: "iconLeading", publicName: "iconLeading", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, showIconLeading: { classPropertyName: "showIconLeading", publicName: "showIconLeading", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, iconTrailing: { classPropertyName: "iconTrailing", publicName: "iconTrailing", isSignal: true, isRequired: false, transformFunction: null }, showIconTrailing: { classPropertyName: "showIconTrailing", publicName: "showIconTrailing", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, noText: { classPropertyName: "noText", publicName: "noText", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<div
|
|
1646
1641
|
#_ref
|
|
1647
1642
|
[attr.id]="id() ?? propOverrides()?.id"
|
|
1648
1643
|
[class]="cls('db-custom-button', className())"
|
|
1649
1644
|
[attr.data-icon]="iconLeading() ?? icon()"
|
|
1650
|
-
[attr.data-show-icon]="getBooleanAsString(showIconLeading()
|
|
1645
|
+
[attr.data-show-icon]="getBooleanAsString(showIconLeading(), 'showIconLeading') || getBooleanAsString(showIcon(), 'showIcon')"
|
|
1651
1646
|
[attr.data-icon-trailing]="iconTrailing()"
|
|
1652
|
-
[attr.data-show-icon-trailing]="getBooleanAsString(showIconTrailing())"
|
|
1647
|
+
[attr.data-show-icon-trailing]="getBooleanAsString(showIconTrailing(), 'showIconTrailing')"
|
|
1653
1648
|
[attr.data-size]="size()"
|
|
1654
1649
|
[attr.data-width]="width()"
|
|
1655
1650
|
[attr.data-variant]="variant()"
|
|
1656
|
-
[attr.data-no-text]="getBooleanAsString(noText())"
|
|
1651
|
+
[attr.data-no-text]="getBooleanAsString(noText(), 'noText')"
|
|
1657
1652
|
>
|
|
1658
1653
|
<ng-content></ng-content>
|
|
1659
1654
|
</div> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
1660
1655
|
}
|
|
1661
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1656
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBCustomButton, decorators: [{
|
|
1662
1657
|
type: Component,
|
|
1663
1658
|
args: [{ selector: "db-custom-button", standalone: true, imports: [CommonModule], template: `<div
|
|
1664
1659
|
#_ref
|
|
1665
1660
|
[attr.id]="id() ?? propOverrides()?.id"
|
|
1666
1661
|
[class]="cls('db-custom-button', className())"
|
|
1667
1662
|
[attr.data-icon]="iconLeading() ?? icon()"
|
|
1668
|
-
[attr.data-show-icon]="getBooleanAsString(showIconLeading()
|
|
1663
|
+
[attr.data-show-icon]="getBooleanAsString(showIconLeading(), 'showIconLeading') || getBooleanAsString(showIcon(), 'showIcon')"
|
|
1669
1664
|
[attr.data-icon-trailing]="iconTrailing()"
|
|
1670
|
-
[attr.data-show-icon-trailing]="getBooleanAsString(showIconTrailing())"
|
|
1665
|
+
[attr.data-show-icon-trailing]="getBooleanAsString(showIconTrailing(), 'showIconTrailing')"
|
|
1671
1666
|
[attr.data-size]="size()"
|
|
1672
1667
|
[attr.data-width]="width()"
|
|
1673
1668
|
[attr.data-variant]="variant()"
|
|
1674
|
-
[attr.data-no-text]="getBooleanAsString(noText())"
|
|
1669
|
+
[attr.data-no-text]="getBooleanAsString(noText(), 'noText')"
|
|
1675
1670
|
>
|
|
1676
1671
|
<ng-content></ng-content>
|
|
1677
1672
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
@@ -2105,14 +2100,14 @@ const handleFixedPopover = (element, parent, placement) => {
|
|
|
2105
2100
|
element.dataset['correctedPlacement'] = correctedPlacement;
|
|
2106
2101
|
};
|
|
2107
2102
|
|
|
2108
|
-
const defaultProps$
|
|
2103
|
+
const defaultProps$z = { width: "fixed" };
|
|
2109
2104
|
class DBCustomSelectDropdown {
|
|
2110
2105
|
constructor() {
|
|
2111
2106
|
this.cls = cls;
|
|
2112
2107
|
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
|
|
2113
2108
|
this.propOverrides = input(...(ngDevMode ? [undefined, { debugName: "propOverrides" }] : /* istanbul ignore next */ []));
|
|
2114
2109
|
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : /* istanbul ignore next */ []));
|
|
2115
|
-
this.width = input(defaultProps$
|
|
2110
|
+
this.width = input(defaultProps$z["width"], ...(ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []));
|
|
2116
2111
|
this._ref = viewChild("_ref", ...(ngDevMode ? [{ debugName: "_ref" }] : /* istanbul ignore next */ []));
|
|
2117
2112
|
}
|
|
2118
2113
|
/**
|
|
@@ -2152,13 +2147,11 @@ class DBCustomSelectDropdown {
|
|
|
2152
2147
|
}
|
|
2153
2148
|
}
|
|
2154
2149
|
ngAfterViewInit() {
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
this.enableAttributePassing(element, "db-custom-select-dropdown");
|
|
2158
|
-
}
|
|
2150
|
+
const element = this._ref()?.nativeElement;
|
|
2151
|
+
this.enableAttributePassing(element, "db-custom-select-dropdown");
|
|
2159
2152
|
}
|
|
2160
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2161
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.
|
|
2153
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBCustomSelectDropdown, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2154
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.16", type: DBCustomSelectDropdown, isStandalone: true, selector: "db-custom-select-dropdown", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<article
|
|
2162
2155
|
data-spacing="none"
|
|
2163
2156
|
#_ref
|
|
2164
2157
|
[attr.id]="id() ?? propOverrides()?.id"
|
|
@@ -2168,7 +2161,7 @@ class DBCustomSelectDropdown {
|
|
|
2168
2161
|
<ng-content></ng-content>
|
|
2169
2162
|
</article> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
2170
2163
|
}
|
|
2171
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2164
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBCustomSelectDropdown, decorators: [{
|
|
2172
2165
|
type: Component,
|
|
2173
2166
|
args: [{ selector: "db-custom-select-dropdown", standalone: true, imports: [CommonModule], template: `<article
|
|
2174
2167
|
data-spacing="none"
|
|
@@ -2181,7 +2174,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
2181
2174
|
</article> `, styles: [":host{display:contents}\n"] }]
|
|
2182
2175
|
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
2183
2176
|
|
|
2184
|
-
const defaultProps$
|
|
2177
|
+
const defaultProps$y = {};
|
|
2185
2178
|
class DBCustomSelectListItem {
|
|
2186
2179
|
handleChange(event) {
|
|
2187
2180
|
event.stopPropagation();
|
|
@@ -2225,9 +2218,9 @@ class DBCustomSelectListItem {
|
|
|
2225
2218
|
this.showDivider();
|
|
2226
2219
|
// ---
|
|
2227
2220
|
this.hasDivider.set(Boolean(this.isGroupTitle() || this.showDivider()));
|
|
2228
|
-
},
|
|
2229
|
-
|
|
2230
|
-
|
|
2221
|
+
}, Number(VERSION.major) < 19
|
|
2222
|
+
? { allowSignalWrites: true }
|
|
2223
|
+
: undefined);
|
|
2231
2224
|
}
|
|
2232
2225
|
}
|
|
2233
2226
|
/**
|
|
@@ -2282,13 +2275,11 @@ class DBCustomSelectListItem {
|
|
|
2282
2275
|
this.disabled.set(disabled);
|
|
2283
2276
|
}
|
|
2284
2277
|
ngAfterViewInit() {
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
this.enableAttributePassing(element, "db-custom-select-list-item");
|
|
2288
|
-
}
|
|
2278
|
+
const element = this._ref()?.nativeElement;
|
|
2279
|
+
this.enableAttributePassing(element, "db-custom-select-list-item");
|
|
2289
2280
|
}
|
|
2290
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2291
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
2281
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBCustomSelectListItem, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2282
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: DBCustomSelectListItem, isStandalone: true, selector: "db-custom-select-list-item", inputs: { isGroupTitle: { classPropertyName: "isGroupTitle", publicName: "isGroupTitle", isSignal: true, isRequired: false, transformFunction: null }, showDivider: { classPropertyName: "showDivider", publicName: "showDivider", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, groupTitle: { classPropertyName: "groupTitle", publicName: "groupTitle", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checked: "checkedChange", disabled: "disabledChange", change: "change" }, providers: [{
|
|
2292
2283
|
provide: NG_VALUE_ACCESSOR,
|
|
2293
2284
|
useExisting: DBCustomSelectListItem,
|
|
2294
2285
|
multi: true
|
|
@@ -2299,12 +2290,12 @@ class DBCustomSelectListItem {
|
|
|
2299
2290
|
'db-checkbox': type() === 'checkbox' && !isGroupTitle(),
|
|
2300
2291
|
'db-radio': type() !== 'checkbox' && !isGroupTitle()
|
|
2301
2292
|
})"
|
|
2302
|
-
[attr.data-divider]="getBooleanAsString(hasDivider())"
|
|
2293
|
+
[attr.data-divider]="getBooleanAsString(hasDivider(), 'hasDivider')"
|
|
2303
2294
|
>
|
|
2304
2295
|
@if(!isGroupTitle()){
|
|
2305
2296
|
<label
|
|
2306
2297
|
[attr.data-icon]="type() !== 'checkbox' && icon() ? icon() : undefined"
|
|
2307
|
-
[attr.data-show-icon]="getBooleanAsString(showIcon())"
|
|
2298
|
+
[attr.data-show-icon]="getBooleanAsString(showIcon(), 'showIcon')"
|
|
2308
2299
|
[attr.data-icon-trailing]="getIconTrailing()"
|
|
2309
2300
|
><input
|
|
2310
2301
|
class="db-custom-select-list-item-checkbox"
|
|
@@ -2323,7 +2314,7 @@ class DBCustomSelectListItem {
|
|
|
2323
2314
|
}
|
|
2324
2315
|
</li> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
2325
2316
|
}
|
|
2326
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2317
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBCustomSelectListItem, decorators: [{
|
|
2327
2318
|
type: Component,
|
|
2328
2319
|
args: [{ providers: [{
|
|
2329
2320
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -2336,12 +2327,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
2336
2327
|
'db-checkbox': type() === 'checkbox' && !isGroupTitle(),
|
|
2337
2328
|
'db-radio': type() !== 'checkbox' && !isGroupTitle()
|
|
2338
2329
|
})"
|
|
2339
|
-
[attr.data-divider]="getBooleanAsString(hasDivider())"
|
|
2330
|
+
[attr.data-divider]="getBooleanAsString(hasDivider(), 'hasDivider')"
|
|
2340
2331
|
>
|
|
2341
2332
|
@if(!isGroupTitle()){
|
|
2342
2333
|
<label
|
|
2343
2334
|
[attr.data-icon]="type() !== 'checkbox' && icon() ? icon() : undefined"
|
|
2344
|
-
[attr.data-show-icon]="getBooleanAsString(showIcon())"
|
|
2335
|
+
[attr.data-show-icon]="getBooleanAsString(showIcon(), 'showIcon')"
|
|
2345
2336
|
[attr.data-icon-trailing]="getIconTrailing()"
|
|
2346
2337
|
><input
|
|
2347
2338
|
class="db-custom-select-list-item-checkbox"
|
|
@@ -2361,7 +2352,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
2361
2352
|
</li> `, styles: [":host{display:contents}\n"] }]
|
|
2362
2353
|
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { isGroupTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "isGroupTitle", required: false }] }], showDivider: [{ type: i0.Input, args: [{ isSignal: true, alias: "showDivider", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }, { type: i0.Output, args: ["checkedChange"] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], groupTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "groupTitle", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }, { type: i0.Output, args: ["disabledChange"] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], change: [{ type: i0.Output, args: ["change"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
2363
2354
|
|
|
2364
|
-
const defaultProps$
|
|
2355
|
+
const defaultProps$x = {};
|
|
2365
2356
|
class DBCustomSelectList {
|
|
2366
2357
|
constructor() {
|
|
2367
2358
|
this.cls = cls;
|
|
@@ -2409,13 +2400,11 @@ class DBCustomSelectList {
|
|
|
2409
2400
|
}
|
|
2410
2401
|
}
|
|
2411
2402
|
ngAfterViewInit() {
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
this.enableAttributePassing(element, "db-custom-select-list");
|
|
2415
|
-
}
|
|
2403
|
+
const element = this._ref()?.nativeElement;
|
|
2404
|
+
this.enableAttributePassing(element, "db-custom-select-list");
|
|
2416
2405
|
}
|
|
2417
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2418
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.
|
|
2406
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBCustomSelectList, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2407
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.16", type: DBCustomSelectList, isStandalone: true, selector: "db-custom-select-list", inputs: { multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<div
|
|
2419
2408
|
[attr.role]="multiple() ? 'group' : 'radiogroup'"
|
|
2420
2409
|
[attr.aria-label]="label()"
|
|
2421
2410
|
#_ref
|
|
@@ -2427,7 +2416,7 @@ class DBCustomSelectList {
|
|
|
2427
2416
|
</ul>
|
|
2428
2417
|
</div> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
2429
2418
|
}
|
|
2430
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2419
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBCustomSelectList, decorators: [{
|
|
2431
2420
|
type: Component,
|
|
2432
2421
|
args: [{ selector: "db-custom-select-list", standalone: true, imports: [CommonModule], template: `<div
|
|
2433
2422
|
[attr.role]="multiple() ? 'group' : 'radiogroup'"
|
|
@@ -2442,7 +2431,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
2442
2431
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
2443
2432
|
}], ctorParameters: () => [], propDecorators: { multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
2444
2433
|
|
|
2445
|
-
const defaultProps$
|
|
2434
|
+
const defaultProps$w = {};
|
|
2446
2435
|
class DBInput {
|
|
2447
2436
|
hasValidState() {
|
|
2448
2437
|
return !!(this.validMessage() ?? this.validation() === "valid");
|
|
@@ -2615,9 +2604,9 @@ class DBInput {
|
|
|
2615
2604
|
if (this.id() ?? this.propOverrides()?.id) {
|
|
2616
2605
|
this.resetIds();
|
|
2617
2606
|
}
|
|
2618
|
-
},
|
|
2619
|
-
|
|
2620
|
-
|
|
2607
|
+
}, Number(VERSION.major) < 19
|
|
2608
|
+
? { allowSignalWrites: true }
|
|
2609
|
+
: undefined);
|
|
2621
2610
|
effect(() => {
|
|
2622
2611
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
2623
2612
|
this._ref();
|
|
@@ -2626,9 +2615,9 @@ class DBInput {
|
|
|
2626
2615
|
this._invalidMessage.set(this.invalidMessage() ||
|
|
2627
2616
|
this._ref()?.nativeElement?.validationMessage ||
|
|
2628
2617
|
DEFAULT_INVALID_MESSAGE);
|
|
2629
|
-
},
|
|
2630
|
-
|
|
2631
|
-
|
|
2618
|
+
}, Number(VERSION.major) < 19
|
|
2619
|
+
? { allowSignalWrites: true }
|
|
2620
|
+
: undefined);
|
|
2632
2621
|
effect(() => {
|
|
2633
2622
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
2634
2623
|
this._id();
|
|
@@ -2644,17 +2633,17 @@ class DBInput {
|
|
|
2644
2633
|
}
|
|
2645
2634
|
this.handleValidation();
|
|
2646
2635
|
}
|
|
2647
|
-
},
|
|
2648
|
-
|
|
2649
|
-
|
|
2636
|
+
}, Number(VERSION.major) < 19
|
|
2637
|
+
? { allowSignalWrites: true }
|
|
2638
|
+
: undefined);
|
|
2650
2639
|
effect(() => {
|
|
2651
2640
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
2652
2641
|
this.value();
|
|
2653
2642
|
// ---
|
|
2654
2643
|
this._value.set(this.value());
|
|
2655
|
-
},
|
|
2656
|
-
|
|
2657
|
-
|
|
2644
|
+
}, Number(VERSION.major) < 19
|
|
2645
|
+
? { allowSignalWrites: true }
|
|
2646
|
+
: undefined);
|
|
2658
2647
|
effect(() => {
|
|
2659
2648
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
2660
2649
|
this._ref();
|
|
@@ -2677,9 +2666,9 @@ class DBInput {
|
|
|
2677
2666
|
this.handleInput(event, true);
|
|
2678
2667
|
}, controller.signal);
|
|
2679
2668
|
}
|
|
2680
|
-
},
|
|
2681
|
-
|
|
2682
|
-
|
|
2669
|
+
}, Number(VERSION.major) < 19
|
|
2670
|
+
? { allowSignalWrites: true }
|
|
2671
|
+
: undefined);
|
|
2683
2672
|
}
|
|
2684
2673
|
}
|
|
2685
2674
|
/**
|
|
@@ -2734,9 +2723,9 @@ class DBInput {
|
|
|
2734
2723
|
this.disabled.set(disabled);
|
|
2735
2724
|
}
|
|
2736
2725
|
ngAfterViewInit() {
|
|
2726
|
+
const element = this._ref()?.nativeElement;
|
|
2727
|
+
this.enableAttributePassing(element, "db-input");
|
|
2737
2728
|
if (typeof window !== "undefined") {
|
|
2738
|
-
const element = this._ref()?.nativeElement;
|
|
2739
|
-
this.enableAttributePassing(element, "db-input");
|
|
2740
2729
|
this.resetIds();
|
|
2741
2730
|
this._invalidMessage.set(this.invalidMessage() || DEFAULT_INVALID_MESSAGE);
|
|
2742
2731
|
}
|
|
@@ -2744,8 +2733,8 @@ class DBInput {
|
|
|
2744
2733
|
ngOnDestroy() {
|
|
2745
2734
|
this.abortController()?.abort();
|
|
2746
2735
|
}
|
|
2747
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2748
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
2736
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBInput, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2737
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: DBInput, isStandalone: true, selector: "db-input", inputs: { invalidMessage: { classPropertyName: "invalidMessage", publicName: "invalidMessage", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, dataListId: { classPropertyName: "dataListId", publicName: "dataListId", isSignal: true, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null }, showMessage: { classPropertyName: "showMessage", publicName: "showMessage", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, validMessage: { classPropertyName: "validMessage", publicName: "validMessage", isSignal: true, isRequired: false, transformFunction: null }, validation: { classPropertyName: "validation", publicName: "validation", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, minLength: { classPropertyName: "minLength", publicName: "minLength", isSignal: true, isRequired: false, transformFunction: null }, maxLength: { classPropertyName: "maxLength", publicName: "maxLength", isSignal: true, isRequired: false, transformFunction: null }, pattern: { classPropertyName: "pattern", publicName: "pattern", isSignal: true, isRequired: false, transformFunction: null }, dataList: { classPropertyName: "dataList", publicName: "dataList", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, showLabel: { classPropertyName: "showLabel", publicName: "showLabel", isSignal: true, isRequired: false, transformFunction: null }, showIconLeading: { classPropertyName: "showIconLeading", publicName: "showIconLeading", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, iconLeading: { classPropertyName: "iconLeading", publicName: "iconLeading", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, iconTrailing: { classPropertyName: "iconTrailing", publicName: "iconTrailing", isSignal: true, isRequired: false, transformFunction: null }, showRequiredAsterisk: { classPropertyName: "showRequiredAsterisk", publicName: "showRequiredAsterisk", isSignal: true, isRequired: false, transformFunction: null }, showIconTrailing: { classPropertyName: "showIconTrailing", publicName: "showIconTrailing", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, fieldSizing: { classPropertyName: "fieldSizing", publicName: "fieldSizing", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, accept: { classPropertyName: "accept", publicName: "accept", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, maxlength: { classPropertyName: "maxlength", publicName: "maxlength", isSignal: true, isRequired: false, transformFunction: null }, minlength: { classPropertyName: "minlength", publicName: "minlength", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, readOnly: { classPropertyName: "readOnly", publicName: "readOnly", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, form: { classPropertyName: "form", publicName: "form", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null }, autofocus: { classPropertyName: "autofocus", publicName: "autofocus", isSignal: true, isRequired: false, transformFunction: null }, enterkeyhint: { classPropertyName: "enterkeyhint", publicName: "enterkeyhint", isSignal: true, isRequired: false, transformFunction: null }, inputmode: { classPropertyName: "inputmode", publicName: "inputmode", isSignal: true, isRequired: false, transformFunction: null }, ariaDescribedBy: { classPropertyName: "ariaDescribedBy", publicName: "ariaDescribedBy", isSignal: true, isRequired: false, transformFunction: null }, messageSize: { classPropertyName: "messageSize", publicName: "messageSize", isSignal: true, isRequired: false, transformFunction: null }, messageIcon: { classPropertyName: "messageIcon", publicName: "messageIcon", isSignal: true, isRequired: false, transformFunction: null }, validMessageSize: { classPropertyName: "validMessageSize", publicName: "validMessageSize", isSignal: true, isRequired: false, transformFunction: null }, invalidMessageSize: { classPropertyName: "invalidMessageSize", publicName: "invalidMessageSize", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", disabled: "disabledChange", input: "input", change: "change", blur: "blur", focus: "focus" }, providers: [{
|
|
2749
2738
|
provide: NG_VALUE_ACCESSOR,
|
|
2750
2739
|
useExisting: DBInput,
|
|
2751
2740
|
multi: true
|
|
@@ -2753,11 +2742,11 @@ class DBInput {
|
|
|
2753
2742
|
[class]="cls('db-input', className())"
|
|
2754
2743
|
[attr.data-variant]="variant()"
|
|
2755
2744
|
[attr.data-hide-label]="getHideProp(showLabel())"
|
|
2756
|
-
[attr.data-show-icon]="getBooleanAsString(showIconLeading()
|
|
2745
|
+
[attr.data-show-icon]="getBooleanAsString(showIconLeading(), 'showIconLeading') || getBooleanAsString(showIcon(), 'showIcon')"
|
|
2757
2746
|
[attr.data-icon]="iconLeading() ?? icon()"
|
|
2758
2747
|
[attr.data-icon-trailing]="iconTrailing()"
|
|
2759
2748
|
[attr.data-hide-asterisk]="getHideProp(showRequiredAsterisk())"
|
|
2760
|
-
[attr.data-show-icon-trailing]="getBooleanAsString(showIconTrailing())"
|
|
2749
|
+
[attr.data-show-icon-trailing]="getBooleanAsString(showIconTrailing(), 'showIconTrailing')"
|
|
2761
2750
|
>
|
|
2762
2751
|
<label [attr.for]="_id()">{{label() ?? DEFAULT_LABEL}}</label>
|
|
2763
2752
|
<input
|
|
@@ -2832,7 +2821,7 @@ class DBInput {
|
|
|
2832
2821
|
>
|
|
2833
2822
|
</div> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBInfotext, selector: "db-infotext", inputs: ["id", "propOverrides", "className", "icon", "semantic", "size", "wrap", "showIcon", "text"] }] }); }
|
|
2834
2823
|
}
|
|
2835
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2824
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBInput, decorators: [{
|
|
2836
2825
|
type: Component,
|
|
2837
2826
|
args: [{ providers: [{
|
|
2838
2827
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -2842,11 +2831,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
2842
2831
|
[class]="cls('db-input', className())"
|
|
2843
2832
|
[attr.data-variant]="variant()"
|
|
2844
2833
|
[attr.data-hide-label]="getHideProp(showLabel())"
|
|
2845
|
-
[attr.data-show-icon]="getBooleanAsString(showIconLeading()
|
|
2834
|
+
[attr.data-show-icon]="getBooleanAsString(showIconLeading(), 'showIconLeading') || getBooleanAsString(showIcon(), 'showIcon')"
|
|
2846
2835
|
[attr.data-icon]="iconLeading() ?? icon()"
|
|
2847
2836
|
[attr.data-icon-trailing]="iconTrailing()"
|
|
2848
2837
|
[attr.data-hide-asterisk]="getHideProp(showRequiredAsterisk())"
|
|
2849
|
-
[attr.data-show-icon-trailing]="getBooleanAsString(showIconTrailing())"
|
|
2838
|
+
[attr.data-show-icon-trailing]="getBooleanAsString(showIconTrailing(), 'showIconTrailing')"
|
|
2850
2839
|
>
|
|
2851
2840
|
<label [attr.for]="_id()">{{label() ?? DEFAULT_LABEL}}</label>
|
|
2852
2841
|
<input
|
|
@@ -2922,7 +2911,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
2922
2911
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
2923
2912
|
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { invalidMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalidMessage", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], dataListId: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataListId", required: false }] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: false }] }], showMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "showMessage", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], validMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "validMessage", required: false }] }], validation: [{ type: i0.Input, args: [{ isSignal: true, alias: "validation", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], minLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "minLength", required: false }] }], maxLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxLength", required: false }] }], pattern: [{ type: i0.Input, args: [{ isSignal: true, alias: "pattern", required: false }] }], dataList: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataList", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], showLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLabel", required: false }] }], showIconLeading: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIconLeading", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], iconLeading: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconLeading", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], iconTrailing: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconTrailing", required: false }] }], showRequiredAsterisk: [{ type: i0.Input, args: [{ isSignal: true, alias: "showRequiredAsterisk", required: false }] }], showIconTrailing: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIconTrailing", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], fieldSizing: [{ type: i0.Input, args: [{ isSignal: true, alias: "fieldSizing", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], accept: [{ type: i0.Input, args: [{ isSignal: true, alias: "accept", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }, { type: i0.Output, args: ["disabledChange"] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }], maxlength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxlength", required: false }] }], minlength: [{ type: i0.Input, args: [{ isSignal: true, alias: "minlength", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], readOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readOnly", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], form: [{ type: i0.Input, args: [{ isSignal: true, alias: "form", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], autocomplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocomplete", required: false }] }], autofocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autofocus", required: false }] }], enterkeyhint: [{ type: i0.Input, args: [{ isSignal: true, alias: "enterkeyhint", required: false }] }], inputmode: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputmode", required: false }] }], ariaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedBy", required: false }] }], messageSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "messageSize", required: false }] }], messageIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "messageIcon", required: false }] }], validMessageSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "validMessageSize", required: false }] }], invalidMessageSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalidMessageSize", required: false }] }], input: [{ type: i0.Output, args: ["input"] }], change: [{ type: i0.Output, args: ["change"] }], blur: [{ type: i0.Output, args: ["blur"] }], focus: [{ type: i0.Output, args: ["focus"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
2924
2913
|
|
|
2925
|
-
const defaultProps$
|
|
2914
|
+
const defaultProps$v = {};
|
|
2926
2915
|
class DBTooltip {
|
|
2927
2916
|
handleClick(event) {
|
|
2928
2917
|
event.stopPropagation();
|
|
@@ -3003,9 +2992,9 @@ class DBTooltip {
|
|
|
3003
2992
|
if (this.id() ?? this.propOverrides()?.id) {
|
|
3004
2993
|
this.resetIds();
|
|
3005
2994
|
}
|
|
3006
|
-
},
|
|
3007
|
-
|
|
3008
|
-
|
|
2995
|
+
}, Number(VERSION.major) < 19
|
|
2996
|
+
? { allowSignalWrites: true }
|
|
2997
|
+
: undefined);
|
|
3009
2998
|
effect(() => {
|
|
3010
2999
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
3011
3000
|
this._ref();
|
|
@@ -3042,9 +3031,9 @@ class DBTooltip {
|
|
|
3042
3031
|
}
|
|
3043
3032
|
this.initialized.set(false);
|
|
3044
3033
|
}
|
|
3045
|
-
},
|
|
3046
|
-
|
|
3047
|
-
|
|
3034
|
+
}, Number(VERSION.major) < 19
|
|
3035
|
+
? { allowSignalWrites: true }
|
|
3036
|
+
: undefined);
|
|
3048
3037
|
}
|
|
3049
3038
|
}
|
|
3050
3039
|
/**
|
|
@@ -3084,15 +3073,15 @@ class DBTooltip {
|
|
|
3084
3073
|
}
|
|
3085
3074
|
}
|
|
3086
3075
|
ngAfterViewInit() {
|
|
3076
|
+
const element = this._ref()?.nativeElement;
|
|
3077
|
+
this.enableAttributePassing(element, "db-tooltip");
|
|
3087
3078
|
if (typeof window !== "undefined") {
|
|
3088
|
-
const element = this._ref()?.nativeElement;
|
|
3089
|
-
this.enableAttributePassing(element, "db-tooltip");
|
|
3090
3079
|
this.resetIds();
|
|
3091
3080
|
this.initialized.set(true);
|
|
3092
3081
|
}
|
|
3093
3082
|
}
|
|
3094
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
3095
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
3083
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTooltip, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3084
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: DBTooltip, isStandalone: true, selector: "db-tooltip", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, emphasis: { classPropertyName: "emphasis", publicName: "emphasis", isSignal: true, isRequired: false, transformFunction: null }, wrap: { classPropertyName: "wrap", publicName: "wrap", isSignal: true, isRequired: false, transformFunction: null }, animation: { classPropertyName: "animation", publicName: "animation", isSignal: true, isRequired: false, transformFunction: null }, delay: { classPropertyName: "delay", publicName: "delay", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, showArrow: { classPropertyName: "showArrow", publicName: "showArrow", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<i
|
|
3096
3085
|
role="tooltip"
|
|
3097
3086
|
aria-hidden="true"
|
|
3098
3087
|
data-gap="true"
|
|
@@ -3100,17 +3089,17 @@ class DBTooltip {
|
|
|
3100
3089
|
[class]="cls('db-tooltip', className())"
|
|
3101
3090
|
[attr.id]="_id()"
|
|
3102
3091
|
[attr.data-emphasis]="emphasis()"
|
|
3103
|
-
[attr.data-wrap]="getBooleanAsString(wrap())"
|
|
3104
|
-
[attr.data-animation]="getBooleanAsString(animation() ?? true)"
|
|
3092
|
+
[attr.data-wrap]="getBooleanAsString(wrap(), 'wrap')"
|
|
3093
|
+
[attr.data-animation]="getBooleanAsString(animation() ?? true, 'animation')"
|
|
3105
3094
|
[attr.data-delay]="delay()"
|
|
3106
3095
|
[attr.data-width]="width()"
|
|
3107
|
-
[attr.data-show-arrow]="getBooleanAsString(showArrow() ?? true)"
|
|
3096
|
+
[attr.data-show-arrow]="getBooleanAsString(showArrow() ?? true, 'showArrow')"
|
|
3108
3097
|
[attr.data-placement]="placement()"
|
|
3109
3098
|
(click)="handleClick($event)"
|
|
3110
3099
|
>@if(text()){{{text()}}} <ng-content></ng-content
|
|
3111
3100
|
></i> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
3112
3101
|
}
|
|
3113
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
3102
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTooltip, decorators: [{
|
|
3114
3103
|
type: Component,
|
|
3115
3104
|
args: [{ selector: "db-tooltip", standalone: true, imports: [CommonModule], template: `<i
|
|
3116
3105
|
role="tooltip"
|
|
@@ -3120,18 +3109,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
3120
3109
|
[class]="cls('db-tooltip', className())"
|
|
3121
3110
|
[attr.id]="_id()"
|
|
3122
3111
|
[attr.data-emphasis]="emphasis()"
|
|
3123
|
-
[attr.data-wrap]="getBooleanAsString(wrap())"
|
|
3124
|
-
[attr.data-animation]="getBooleanAsString(animation() ?? true)"
|
|
3112
|
+
[attr.data-wrap]="getBooleanAsString(wrap(), 'wrap')"
|
|
3113
|
+
[attr.data-animation]="getBooleanAsString(animation() ?? true, 'animation')"
|
|
3125
3114
|
[attr.data-delay]="delay()"
|
|
3126
3115
|
[attr.data-width]="width()"
|
|
3127
|
-
[attr.data-show-arrow]="getBooleanAsString(showArrow() ?? true)"
|
|
3116
|
+
[attr.data-show-arrow]="getBooleanAsString(showArrow() ?? true, 'showArrow')"
|
|
3128
3117
|
[attr.data-placement]="placement()"
|
|
3129
3118
|
(click)="handleClick($event)"
|
|
3130
3119
|
>@if(text()){{{text()}}} <ng-content></ng-content
|
|
3131
3120
|
></i> `, styles: [":host{display:contents}\n"] }]
|
|
3132
3121
|
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "placement", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], emphasis: [{ type: i0.Input, args: [{ isSignal: true, alias: "emphasis", required: false }] }], wrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "wrap", required: false }] }], animation: [{ type: i0.Input, args: [{ isSignal: true, alias: "animation", required: false }] }], delay: [{ type: i0.Input, args: [{ isSignal: true, alias: "delay", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], showArrow: [{ type: i0.Input, args: [{ isSignal: true, alias: "showArrow", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
3133
3122
|
|
|
3134
|
-
const defaultProps$
|
|
3123
|
+
const defaultProps$u = {};
|
|
3135
3124
|
class DBTag {
|
|
3136
3125
|
handleRemove(event) {
|
|
3137
3126
|
if (!event)
|
|
@@ -3204,23 +3193,21 @@ class DBTag {
|
|
|
3204
3193
|
}
|
|
3205
3194
|
}
|
|
3206
3195
|
ngAfterViewInit() {
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
this.enableAttributePassing(element, "db-tag");
|
|
3210
|
-
}
|
|
3196
|
+
const element = this._ref()?.nativeElement;
|
|
3197
|
+
this.enableAttributePassing(element, "db-tag");
|
|
3211
3198
|
}
|
|
3212
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
3213
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
3199
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTag, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3200
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: DBTag, isStandalone: true, selector: "db-tag", inputs: { removeButton: { classPropertyName: "removeButton", publicName: "removeButton", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, semantic: { classPropertyName: "semantic", publicName: "semantic", isSignal: true, isRequired: false, transformFunction: null }, emphasis: { classPropertyName: "emphasis", publicName: "emphasis", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, showCheckState: { classPropertyName: "showCheckState", publicName: "showCheckState", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, noText: { classPropertyName: "noText", publicName: "noText", isSignal: true, isRequired: false, transformFunction: null }, overflow: { classPropertyName: "overflow", publicName: "overflow", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, behavior: { classPropertyName: "behavior", publicName: "behavior", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { remove: "remove" }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<div
|
|
3214
3201
|
#_ref
|
|
3215
3202
|
[attr.id]="id() ?? propOverrides()?.id"
|
|
3216
3203
|
[class]="cls('db-tag', className())"
|
|
3217
3204
|
[attr.data-semantic]="semantic()"
|
|
3218
3205
|
[attr.data-emphasis]="emphasis()"
|
|
3219
3206
|
[attr.data-icon]="icon()"
|
|
3220
|
-
[attr.data-show-check-state]="getBooleanAsString(showCheckState() ?? true)"
|
|
3221
|
-
[attr.data-show-icon]="getBooleanAsString(showIcon())"
|
|
3222
|
-
[attr.data-no-text]="getBooleanAsString(noText())"
|
|
3223
|
-
[attr.data-overflow]="getBooleanAsString(overflow())"
|
|
3207
|
+
[attr.data-show-check-state]="getBooleanAsString(showCheckState() ?? true, 'showCheckState')"
|
|
3208
|
+
[attr.data-show-icon]="getBooleanAsString(showIcon(), 'showIcon')"
|
|
3209
|
+
[attr.data-no-text]="getBooleanAsString(noText(), 'noText')"
|
|
3210
|
+
[attr.data-overflow]="getBooleanAsString(overflow(), 'overflow')"
|
|
3224
3211
|
>
|
|
3225
3212
|
<ng-content select="[content]"> </ng-content> @if(text()){{{text()}}}
|
|
3226
3213
|
<ng-content></ng-content>
|
|
@@ -3239,7 +3226,7 @@ class DBTag {
|
|
|
3239
3226
|
}
|
|
3240
3227
|
</div> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBTooltip, selector: "db-tooltip", inputs: ["id", "propOverrides", "variant", "placement", "className", "emphasis", "wrap", "animation", "delay", "width", "showArrow", "text"] }] }); }
|
|
3241
3228
|
}
|
|
3242
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
3229
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTag, decorators: [{
|
|
3243
3230
|
type: Component,
|
|
3244
3231
|
args: [{ selector: "db-tag", standalone: true, imports: [CommonModule, DBTooltip], template: `<div
|
|
3245
3232
|
#_ref
|
|
@@ -3248,10 +3235,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
3248
3235
|
[attr.data-semantic]="semantic()"
|
|
3249
3236
|
[attr.data-emphasis]="emphasis()"
|
|
3250
3237
|
[attr.data-icon]="icon()"
|
|
3251
|
-
[attr.data-show-check-state]="getBooleanAsString(showCheckState() ?? true)"
|
|
3252
|
-
[attr.data-show-icon]="getBooleanAsString(showIcon())"
|
|
3253
|
-
[attr.data-no-text]="getBooleanAsString(noText())"
|
|
3254
|
-
[attr.data-overflow]="getBooleanAsString(overflow())"
|
|
3238
|
+
[attr.data-show-check-state]="getBooleanAsString(showCheckState() ?? true, 'showCheckState')"
|
|
3239
|
+
[attr.data-show-icon]="getBooleanAsString(showIcon(), 'showIcon')"
|
|
3240
|
+
[attr.data-no-text]="getBooleanAsString(noText(), 'noText')"
|
|
3241
|
+
[attr.data-overflow]="getBooleanAsString(overflow(), 'overflow')"
|
|
3255
3242
|
>
|
|
3256
3243
|
<ng-content select="[content]"> </ng-content> @if(text()){{{text()}}}
|
|
3257
3244
|
<ng-content></ng-content>
|
|
@@ -3271,7 +3258,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
3271
3258
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
3272
3259
|
}], ctorParameters: () => [], propDecorators: { removeButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "removeButton", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], semantic: [{ type: i0.Input, args: [{ isSignal: true, alias: "semantic", required: false }] }], emphasis: [{ type: i0.Input, args: [{ isSignal: true, alias: "emphasis", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], showCheckState: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCheckState", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], noText: [{ type: i0.Input, args: [{ isSignal: true, alias: "noText", required: false }] }], overflow: [{ type: i0.Input, args: [{ isSignal: true, alias: "overflow", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], behavior: [{ type: i0.Input, args: [{ isSignal: true, alias: "behavior", required: false }] }], remove: [{ type: i0.Output, args: ["remove"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
3273
3260
|
|
|
3274
|
-
const defaultProps$
|
|
3261
|
+
const defaultProps$t = {
|
|
3275
3262
|
clearSelectionText: "Clear selection",
|
|
3276
3263
|
showClearSelection: true,
|
|
3277
3264
|
};
|
|
@@ -3771,8 +3758,8 @@ class DBCustomSelect {
|
|
|
3771
3758
|
this.loadingText = input(...(ngDevMode ? [undefined, { debugName: "loadingText" }] : /* istanbul ignore next */ []));
|
|
3772
3759
|
this.noResultsText = input(...(ngDevMode ? [undefined, { debugName: "noResultsText" }] : /* istanbul ignore next */ []));
|
|
3773
3760
|
this.mobileCloseButtonText = input(...(ngDevMode ? [undefined, { debugName: "mobileCloseButtonText" }] : /* istanbul ignore next */ []));
|
|
3774
|
-
this.showClearSelection = input(defaultProps$
|
|
3775
|
-
this.clearSelectionText = input(defaultProps$
|
|
3761
|
+
this.showClearSelection = input(defaultProps$t["showClearSelection"], ...(ngDevMode ? [{ debugName: "showClearSelection" }] : /* istanbul ignore next */ []));
|
|
3762
|
+
this.clearSelectionText = input(defaultProps$t["clearSelectionText"], ...(ngDevMode ? [{ debugName: "clearSelectionText" }] : /* istanbul ignore next */ []));
|
|
3776
3763
|
this.placeholder = input(...(ngDevMode ? [undefined, { debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
3777
3764
|
this.messageIcon = input(...(ngDevMode ? [undefined, { debugName: "messageIcon" }] : /* istanbul ignore next */ []));
|
|
3778
3765
|
this.amountChange = output();
|
|
@@ -3823,9 +3810,9 @@ class DBCustomSelect {
|
|
|
3823
3810
|
if (this.id() ?? this.propOverrides()?.id) {
|
|
3824
3811
|
this.resetIds();
|
|
3825
3812
|
}
|
|
3826
|
-
},
|
|
3827
|
-
|
|
3828
|
-
|
|
3813
|
+
}, Number(VERSION.major) < 19
|
|
3814
|
+
? { allowSignalWrites: true }
|
|
3815
|
+
: undefined);
|
|
3829
3816
|
effect(() => {
|
|
3830
3817
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
3831
3818
|
this.detailsRef();
|
|
@@ -3833,9 +3820,9 @@ class DBCustomSelect {
|
|
|
3833
3820
|
if (this.detailsRef()?.nativeElement) {
|
|
3834
3821
|
this.detailsRef()?.nativeElement.addEventListener("focusout", (event) => this.handleClose(event));
|
|
3835
3822
|
}
|
|
3836
|
-
},
|
|
3837
|
-
|
|
3838
|
-
|
|
3823
|
+
}, Number(VERSION.major) < 19
|
|
3824
|
+
? { allowSignalWrites: true }
|
|
3825
|
+
: undefined);
|
|
3839
3826
|
effect(() => {
|
|
3840
3827
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
3841
3828
|
this._id();
|
|
@@ -3854,9 +3841,9 @@ class DBCustomSelect {
|
|
|
3854
3841
|
this.setDescById();
|
|
3855
3842
|
}
|
|
3856
3843
|
}
|
|
3857
|
-
},
|
|
3858
|
-
|
|
3859
|
-
|
|
3844
|
+
}, Number(VERSION.major) < 19
|
|
3845
|
+
? { allowSignalWrites: true }
|
|
3846
|
+
: undefined);
|
|
3860
3847
|
effect(() => {
|
|
3861
3848
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
3862
3849
|
this.detailsRef();
|
|
@@ -3868,9 +3855,9 @@ class DBCustomSelect {
|
|
|
3868
3855
|
summary.setAttribute("aria-describedby", this.ariaDescribedBy() ?? (this._descByIds() || ""));
|
|
3869
3856
|
}
|
|
3870
3857
|
}
|
|
3871
|
-
},
|
|
3872
|
-
|
|
3873
|
-
|
|
3858
|
+
}, Number(VERSION.major) < 19
|
|
3859
|
+
? { allowSignalWrites: true }
|
|
3860
|
+
: undefined);
|
|
3874
3861
|
effect(() => {
|
|
3875
3862
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
3876
3863
|
this.showNoResults();
|
|
@@ -3883,9 +3870,9 @@ class DBCustomSelect {
|
|
|
3883
3870
|
else if (this._options()) {
|
|
3884
3871
|
this._hasNoOptions.set(this._options().length === 0);
|
|
3885
3872
|
}
|
|
3886
|
-
},
|
|
3887
|
-
|
|
3888
|
-
|
|
3873
|
+
}, Number(VERSION.major) < 19
|
|
3874
|
+
? { allowSignalWrites: true }
|
|
3875
|
+
: undefined);
|
|
3889
3876
|
effect(() => {
|
|
3890
3877
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
3891
3878
|
this.showSelectAll();
|
|
@@ -3894,18 +3881,18 @@ class DBCustomSelect {
|
|
|
3894
3881
|
// ---
|
|
3895
3882
|
this.selectAllEnabled.set(Boolean(this.multiple() &&
|
|
3896
3883
|
(this.showSelectAll() ?? this.amountOptions() > 5)));
|
|
3897
|
-
},
|
|
3898
|
-
|
|
3899
|
-
|
|
3884
|
+
}, Number(VERSION.major) < 19
|
|
3885
|
+
? { allowSignalWrites: true }
|
|
3886
|
+
: undefined);
|
|
3900
3887
|
effect(() => {
|
|
3901
3888
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
3902
3889
|
this.showSearch();
|
|
3903
3890
|
this.amountOptions();
|
|
3904
3891
|
// ---
|
|
3905
3892
|
this.searchEnabled.set(this.showSearch() ?? this.amountOptions() > 9);
|
|
3906
|
-
},
|
|
3907
|
-
|
|
3908
|
-
|
|
3893
|
+
}, Number(VERSION.major) < 19
|
|
3894
|
+
? { allowSignalWrites: true }
|
|
3895
|
+
: undefined);
|
|
3909
3896
|
effect(() => {
|
|
3910
3897
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
3911
3898
|
this.values();
|
|
@@ -3919,9 +3906,9 @@ class DBCustomSelect {
|
|
|
3919
3906
|
else if (v == null && this._values()?.length !== 0) {
|
|
3920
3907
|
this._values.set([]);
|
|
3921
3908
|
}
|
|
3922
|
-
},
|
|
3923
|
-
|
|
3924
|
-
|
|
3909
|
+
}, Number(VERSION.major) < 19
|
|
3910
|
+
? { allowSignalWrites: true }
|
|
3911
|
+
: undefined);
|
|
3925
3912
|
effect(() => {
|
|
3926
3913
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
3927
3914
|
this._values();
|
|
@@ -3930,9 +3917,9 @@ class DBCustomSelect {
|
|
|
3930
3917
|
if (this.selectRef()?.nativeElement) {
|
|
3931
3918
|
this.handleValidation();
|
|
3932
3919
|
}
|
|
3933
|
-
},
|
|
3934
|
-
|
|
3935
|
-
|
|
3920
|
+
}, Number(VERSION.major) < 19
|
|
3921
|
+
? { allowSignalWrites: true }
|
|
3922
|
+
: undefined);
|
|
3936
3923
|
effect(() => {
|
|
3937
3924
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
3938
3925
|
this.selectRef();
|
|
@@ -3954,17 +3941,17 @@ class DBCustomSelect {
|
|
|
3954
3941
|
this.handleValidation();
|
|
3955
3942
|
}, controller.signal);
|
|
3956
3943
|
}
|
|
3957
|
-
},
|
|
3958
|
-
|
|
3959
|
-
|
|
3944
|
+
}, Number(VERSION.major) < 19
|
|
3945
|
+
? { allowSignalWrites: true }
|
|
3946
|
+
: undefined);
|
|
3960
3947
|
effect(() => {
|
|
3961
3948
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
3962
3949
|
this.validation();
|
|
3963
3950
|
// ---
|
|
3964
3951
|
this._validity.set(this.validation());
|
|
3965
|
-
},
|
|
3966
|
-
|
|
3967
|
-
|
|
3952
|
+
}, Number(VERSION.major) < 19
|
|
3953
|
+
? { allowSignalWrites: true }
|
|
3954
|
+
: undefined);
|
|
3968
3955
|
effect(() => {
|
|
3969
3956
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
3970
3957
|
this._values();
|
|
@@ -3981,18 +3968,18 @@ class DBCustomSelect {
|
|
|
3981
3968
|
else if (this._values()) {
|
|
3982
3969
|
this.selectAllIndeterminate.set(true);
|
|
3983
3970
|
}
|
|
3984
|
-
},
|
|
3985
|
-
|
|
3986
|
-
|
|
3971
|
+
}, Number(VERSION.major) < 19
|
|
3972
|
+
? { allowSignalWrites: true }
|
|
3973
|
+
: undefined);
|
|
3987
3974
|
effect(() => {
|
|
3988
3975
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
3989
3976
|
this.options();
|
|
3990
3977
|
// ---
|
|
3991
3978
|
this._options.set(this.options());
|
|
3992
3979
|
this.amountOptions.set(this.options()?.filter((option) => !option.isGroupTitle).length ?? 0);
|
|
3993
|
-
},
|
|
3994
|
-
|
|
3995
|
-
|
|
3980
|
+
}, Number(VERSION.major) < 19
|
|
3981
|
+
? { allowSignalWrites: true }
|
|
3982
|
+
: undefined);
|
|
3996
3983
|
effect(() => {
|
|
3997
3984
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
3998
3985
|
this.searchValue();
|
|
@@ -4002,9 +3989,9 @@ class DBCustomSelect {
|
|
|
4002
3989
|
const sValue = this.searchValue(); // <- workaround for Angular
|
|
4003
3990
|
this.handleSearch(sValue);
|
|
4004
3991
|
}
|
|
4005
|
-
},
|
|
4006
|
-
|
|
4007
|
-
|
|
3992
|
+
}, Number(VERSION.major) < 19
|
|
3993
|
+
? { allowSignalWrites: true }
|
|
3994
|
+
: undefined);
|
|
4008
3995
|
effect(() => {
|
|
4009
3996
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
4010
3997
|
this.options();
|
|
@@ -4018,9 +4005,9 @@ class DBCustomSelect {
|
|
|
4018
4005
|
return (!option.isGroupTitle && this._values()?.includes(option.value));
|
|
4019
4006
|
}));
|
|
4020
4007
|
}
|
|
4021
|
-
},
|
|
4022
|
-
|
|
4023
|
-
|
|
4008
|
+
}, Number(VERSION.major) < 19
|
|
4009
|
+
? { allowSignalWrites: true }
|
|
4010
|
+
: undefined);
|
|
4024
4011
|
effect(() => {
|
|
4025
4012
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
4026
4013
|
this._selectedOptions();
|
|
@@ -4055,9 +4042,9 @@ class DBCustomSelect {
|
|
|
4055
4042
|
else {
|
|
4056
4043
|
this._selectedLabels.set("");
|
|
4057
4044
|
}
|
|
4058
|
-
},
|
|
4059
|
-
|
|
4060
|
-
|
|
4045
|
+
}, Number(VERSION.major) < 19
|
|
4046
|
+
? { allowSignalWrites: true }
|
|
4047
|
+
: undefined);
|
|
4061
4048
|
effect(() => {
|
|
4062
4049
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
4063
4050
|
this._selectedOptions();
|
|
@@ -4065,9 +4052,9 @@ class DBCustomSelect {
|
|
|
4065
4052
|
if (this.amountChange) {
|
|
4066
4053
|
this.amountChange.emit(this._selectedOptions()?.length ?? 0);
|
|
4067
4054
|
}
|
|
4068
|
-
},
|
|
4069
|
-
|
|
4070
|
-
|
|
4055
|
+
}, Number(VERSION.major) < 19
|
|
4056
|
+
? { allowSignalWrites: true }
|
|
4057
|
+
: undefined);
|
|
4071
4058
|
effect(() => {
|
|
4072
4059
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
4073
4060
|
this.selectAllIndeterminate();
|
|
@@ -4076,9 +4063,9 @@ class DBCustomSelect {
|
|
|
4076
4063
|
if (this.selectAllRef()?.nativeElement) {
|
|
4077
4064
|
this.selectAllRef().nativeElement.indeterminate = Boolean(this.selectAllIndeterminate());
|
|
4078
4065
|
}
|
|
4079
|
-
},
|
|
4080
|
-
|
|
4081
|
-
|
|
4066
|
+
}, Number(VERSION.major) < 19
|
|
4067
|
+
? { allowSignalWrites: true }
|
|
4068
|
+
: undefined);
|
|
4082
4069
|
effect(() => {
|
|
4083
4070
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
4084
4071
|
this.selectRef();
|
|
@@ -4087,9 +4074,9 @@ class DBCustomSelect {
|
|
|
4087
4074
|
this._invalidMessage.set(this.invalidMessage() ||
|
|
4088
4075
|
this.selectRef()?.nativeElement?.validationMessage ||
|
|
4089
4076
|
DEFAULT_INVALID_MESSAGE);
|
|
4090
|
-
},
|
|
4091
|
-
|
|
4092
|
-
|
|
4077
|
+
}, Number(VERSION.major) < 19
|
|
4078
|
+
? { allowSignalWrites: true }
|
|
4079
|
+
: undefined);
|
|
4093
4080
|
}
|
|
4094
4081
|
}
|
|
4095
4082
|
/**
|
|
@@ -4144,9 +4131,9 @@ class DBCustomSelect {
|
|
|
4144
4131
|
this.disabled.set(disabled);
|
|
4145
4132
|
}
|
|
4146
4133
|
ngAfterViewInit() {
|
|
4134
|
+
const element = this._ref()?.nativeElement;
|
|
4135
|
+
this.enableAttributePassing(element, "db-custom-select");
|
|
4147
4136
|
if (typeof window !== "undefined") {
|
|
4148
|
-
const element = this._ref()?.nativeElement;
|
|
4149
|
-
this.enableAttributePassing(element, "db-custom-select");
|
|
4150
4137
|
this.resetIds();
|
|
4151
4138
|
this._invalidMessage.set(this.invalidMessage() || DEFAULT_INVALID_MESSAGE);
|
|
4152
4139
|
if (typeof window !== "undefined" && "IntersectionObserver" in window) {
|
|
@@ -4166,8 +4153,8 @@ class DBCustomSelect {
|
|
|
4166
4153
|
ngOnDestroy() {
|
|
4167
4154
|
this.abortController()?.abort();
|
|
4168
4155
|
}
|
|
4169
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4170
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
4156
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBCustomSelect, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4157
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: DBCustomSelect, isStandalone: true, selector: "db-custom-select", inputs: { invalidMessage: { classPropertyName: "invalidMessage", publicName: "invalidMessage", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null }, showMessage: { classPropertyName: "showMessage", publicName: "showMessage", isSignal: true, isRequired: false, transformFunction: null }, ariaDescribedBy: { classPropertyName: "ariaDescribedBy", publicName: "ariaDescribedBy", isSignal: true, isRequired: false, transformFunction: null }, showNoResults: { classPropertyName: "showNoResults", publicName: "showNoResults", isSignal: true, isRequired: false, transformFunction: null }, showLoading: { classPropertyName: "showLoading", publicName: "showLoading", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, showSelectAll: { classPropertyName: "showSelectAll", publicName: "showSelectAll", isSignal: true, isRequired: false, transformFunction: null }, showSearch: { classPropertyName: "showSearch", publicName: "showSearch", isSignal: true, isRequired: false, transformFunction: null }, values: { classPropertyName: "values", publicName: "values", isSignal: true, isRequired: false, transformFunction: null }, validation: { classPropertyName: "validation", publicName: "validation", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, searchValue: { classPropertyName: "searchValue", publicName: "searchValue", isSignal: true, isRequired: false, transformFunction: null }, selectedLabels: { classPropertyName: "selectedLabels", publicName: "selectedLabels", isSignal: true, isRequired: false, transformFunction: null }, transformSelectedLabels: { classPropertyName: "transformSelectedLabels", publicName: "transformSelectedLabels", isSignal: true, isRequired: false, transformFunction: null }, selectedType: { classPropertyName: "selectedType", publicName: "selectedType", isSignal: true, isRequired: false, transformFunction: null }, amountText: { classPropertyName: "amountText", publicName: "amountText", isSignal: true, isRequired: false, transformFunction: null }, validMessage: { classPropertyName: "validMessage", publicName: "validMessage", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, selectAllLabel: { classPropertyName: "selectAllLabel", publicName: "selectAllLabel", isSignal: true, isRequired: false, transformFunction: null }, removeTagsTexts: { classPropertyName: "removeTagsTexts", publicName: "removeTagsTexts", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, searchFilter: { classPropertyName: "searchFilter", publicName: "searchFilter", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, formFieldWidth: { classPropertyName: "formFieldWidth", publicName: "formFieldWidth", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, showRequiredAsterisk: { classPropertyName: "showRequiredAsterisk", publicName: "showRequiredAsterisk", isSignal: true, isRequired: false, transformFunction: null }, showLabel: { classPropertyName: "showLabel", publicName: "showLabel", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, form: { classPropertyName: "form", publicName: "form", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, selectedPrefix: { classPropertyName: "selectedPrefix", publicName: "selectedPrefix", isSignal: true, isRequired: false, transformFunction: null }, dropdownWidth: { classPropertyName: "dropdownWidth", publicName: "dropdownWidth", isSignal: true, isRequired: false, transformFunction: null }, searchLabel: { classPropertyName: "searchLabel", publicName: "searchLabel", isSignal: true, isRequired: false, transformFunction: null }, searchPlaceholder: { classPropertyName: "searchPlaceholder", publicName: "searchPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, listLabel: { classPropertyName: "listLabel", publicName: "listLabel", isSignal: true, isRequired: false, transformFunction: null }, loadingText: { classPropertyName: "loadingText", publicName: "loadingText", isSignal: true, isRequired: false, transformFunction: null }, noResultsText: { classPropertyName: "noResultsText", publicName: "noResultsText", isSignal: true, isRequired: false, transformFunction: null }, mobileCloseButtonText: { classPropertyName: "mobileCloseButtonText", publicName: "mobileCloseButtonText", isSignal: true, isRequired: false, transformFunction: null }, showClearSelection: { classPropertyName: "showClearSelection", publicName: "showClearSelection", isSignal: true, isRequired: false, transformFunction: null }, clearSelectionText: { classPropertyName: "clearSelectionText", publicName: "clearSelectionText", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, messageIcon: { classPropertyName: "messageIcon", publicName: "messageIcon", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { values: "valuesChange", disabled: "disabledChange", amountChange: "amountChange", dropdownToggle: "dropdownToggle", optionSelected: "optionSelected", search: "search" }, providers: [{
|
|
4171
4158
|
provide: NG_VALUE_ACCESSOR,
|
|
4172
4159
|
useExisting: DBCustomSelect,
|
|
4173
4160
|
multi: true
|
|
@@ -4179,13 +4166,13 @@ class DBCustomSelect {
|
|
|
4179
4166
|
[attr.data-custom-validity]="_validity()"
|
|
4180
4167
|
[attr.data-width]="formFieldWidth()"
|
|
4181
4168
|
[attr.data-variant]="variant() === 'floating' && selectedType() === 'tag' && multiple() ? 'above' : variant()"
|
|
4182
|
-
[attr.data-required]="getBooleanAsString(required())"
|
|
4169
|
+
[attr.data-required]="getBooleanAsString(required(), 'required')"
|
|
4183
4170
|
[attr.data-hide-asterisk]="getHideProp(showRequiredAsterisk())"
|
|
4184
4171
|
[attr.data-placement]="placement()"
|
|
4185
4172
|
[attr.data-selected-type]="multiple() ? selectedType() : 'text'"
|
|
4186
4173
|
[attr.data-hide-label]="getHideProp(showLabel())"
|
|
4187
4174
|
[attr.data-icon]="icon()"
|
|
4188
|
-
[attr.data-show-icon]="getBooleanAsString(showIcon())"
|
|
4175
|
+
[attr.data-show-icon]="getBooleanAsString(showIcon(), 'showIcon')"
|
|
4189
4176
|
>
|
|
4190
4177
|
<label [attr.id]="_labelId()"
|
|
4191
4178
|
>{{label() ?? DEFAULT_LABEL}}<select
|
|
@@ -4221,13 +4208,13 @@ class DBCustomSelect {
|
|
|
4221
4208
|
<summary
|
|
4222
4209
|
class="db-custom-select-form-field"
|
|
4223
4210
|
[attr.id]="_summaryId()"
|
|
4224
|
-
[attr.aria-disabled]="getBooleanAsString(disabled())"
|
|
4211
|
+
[attr.aria-disabled]="getBooleanAsString(disabled(), 'disabled')"
|
|
4225
4212
|
[attr.tabIndex]="disabled() ? -1 : undefined"
|
|
4226
4213
|
[attr.aria-labelledby]="_labelId()"
|
|
4227
4214
|
>
|
|
4228
4215
|
@if(_selectedLabels()?.length){
|
|
4229
4216
|
<span
|
|
4230
|
-
[attr.data-visually-hidden]="getBooleanAsString(selectedType() === 'tag')"
|
|
4217
|
+
[attr.data-visually-hidden]="getBooleanAsString(selectedType() === 'tag', 'selectedType')"
|
|
4231
4218
|
[attr.id]="_selectedLabelsId()"
|
|
4232
4219
|
>@if(selectedPrefix()){
|
|
4233
4220
|
<span data-visually-hidden="true">{{selectedPrefix()}}</span>
|
|
@@ -4349,7 +4336,7 @@ class DBCustomSelect {
|
|
|
4349
4336
|
}
|
|
4350
4337
|
<span
|
|
4351
4338
|
class="db-custom-select-placeholder"
|
|
4352
|
-
|
|
4339
|
+
aria-hidden="true"
|
|
4353
4340
|
[attr.id]="_placeholderId()"
|
|
4354
4341
|
>{{placeholder() ?? label()}}</span
|
|
4355
4342
|
>
|
|
@@ -4381,7 +4368,7 @@ class DBCustomSelect {
|
|
|
4381
4368
|
>
|
|
4382
4369
|
</div> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBTag, selector: "db-tag", inputs: ["removeButton", "id", "propOverrides", "className", "semantic", "emphasis", "icon", "showCheckState", "showIcon", "noText", "overflow", "text", "behavior"], outputs: ["remove"] }, { kind: "component", type: DBCustomSelectDropdown, selector: "db-custom-select-dropdown", inputs: ["id", "propOverrides", "className", "width"] }, { kind: "component", type: DBInput, selector: "db-input", inputs: ["invalidMessage", "id", "propOverrides", "dataListId", "message", "showMessage", "value", "validMessage", "validation", "required", "minLength", "maxLength", "pattern", "dataList", "className", "variant", "showLabel", "showIconLeading", "showIcon", "iconLeading", "icon", "iconTrailing", "showRequiredAsterisk", "showIconTrailing", "label", "fieldSizing", "name", "type", "multiple", "accept", "placeholder", "disabled", "step", "maxlength", "minlength", "max", "min", "readOnly", "readonly", "form", "size", "autocomplete", "autofocus", "enterkeyhint", "inputmode", "ariaDescribedBy", "messageSize", "messageIcon", "validMessageSize", "invalidMessageSize"], outputs: ["valueChange", "disabledChange", "input", "change", "blur", "focus"] }, { kind: "component", type: DBCustomSelectList, selector: "db-custom-select-list", inputs: ["multiple", "label", "id", "propOverrides", "className"] }, { kind: "component", type: DBCustomSelectListItem, selector: "db-custom-select-list-item", inputs: ["isGroupTitle", "showDivider", "type", "checked", "id", "propOverrides", "className", "groupTitle", "icon", "showIcon", "name", "disabled", "value", "label"], outputs: ["checkedChange", "disabledChange", "change"] }, { kind: "component", type: DBInfotext, selector: "db-infotext", inputs: ["id", "propOverrides", "className", "icon", "semantic", "size", "wrap", "showIcon", "text"] }, { kind: "component", type: DBButton, selector: "db-button", inputs: ["type", "id", "propOverrides", "className", "disabled", "iconLeading", "icon", "showIconLeading", "showIcon", "iconTrailing", "showIconTrailing", "size", "width", "variant", "wrap", "noText", "name", "form", "value", "text"], outputs: ["click"] }, { kind: "component", type: DBTooltip, selector: "db-tooltip", inputs: ["id", "propOverrides", "variant", "placement", "className", "emphasis", "wrap", "animation", "delay", "width", "showArrow", "text"] }] }); }
|
|
4383
4370
|
}
|
|
4384
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4371
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBCustomSelect, decorators: [{
|
|
4385
4372
|
type: Component,
|
|
4386
4373
|
args: [{ providers: [{
|
|
4387
4374
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -4405,13 +4392,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
4405
4392
|
[attr.data-custom-validity]="_validity()"
|
|
4406
4393
|
[attr.data-width]="formFieldWidth()"
|
|
4407
4394
|
[attr.data-variant]="variant() === 'floating' && selectedType() === 'tag' && multiple() ? 'above' : variant()"
|
|
4408
|
-
[attr.data-required]="getBooleanAsString(required())"
|
|
4395
|
+
[attr.data-required]="getBooleanAsString(required(), 'required')"
|
|
4409
4396
|
[attr.data-hide-asterisk]="getHideProp(showRequiredAsterisk())"
|
|
4410
4397
|
[attr.data-placement]="placement()"
|
|
4411
4398
|
[attr.data-selected-type]="multiple() ? selectedType() : 'text'"
|
|
4412
4399
|
[attr.data-hide-label]="getHideProp(showLabel())"
|
|
4413
4400
|
[attr.data-icon]="icon()"
|
|
4414
|
-
[attr.data-show-icon]="getBooleanAsString(showIcon())"
|
|
4401
|
+
[attr.data-show-icon]="getBooleanAsString(showIcon(), 'showIcon')"
|
|
4415
4402
|
>
|
|
4416
4403
|
<label [attr.id]="_labelId()"
|
|
4417
4404
|
>{{label() ?? DEFAULT_LABEL}}<select
|
|
@@ -4447,13 +4434,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
4447
4434
|
<summary
|
|
4448
4435
|
class="db-custom-select-form-field"
|
|
4449
4436
|
[attr.id]="_summaryId()"
|
|
4450
|
-
[attr.aria-disabled]="getBooleanAsString(disabled())"
|
|
4437
|
+
[attr.aria-disabled]="getBooleanAsString(disabled(), 'disabled')"
|
|
4451
4438
|
[attr.tabIndex]="disabled() ? -1 : undefined"
|
|
4452
4439
|
[attr.aria-labelledby]="_labelId()"
|
|
4453
4440
|
>
|
|
4454
4441
|
@if(_selectedLabels()?.length){
|
|
4455
4442
|
<span
|
|
4456
|
-
[attr.data-visually-hidden]="getBooleanAsString(selectedType() === 'tag')"
|
|
4443
|
+
[attr.data-visually-hidden]="getBooleanAsString(selectedType() === 'tag', 'selectedType')"
|
|
4457
4444
|
[attr.id]="_selectedLabelsId()"
|
|
4458
4445
|
>@if(selectedPrefix()){
|
|
4459
4446
|
<span data-visually-hidden="true">{{selectedPrefix()}}</span>
|
|
@@ -4575,7 +4562,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
4575
4562
|
}
|
|
4576
4563
|
<span
|
|
4577
4564
|
class="db-custom-select-placeholder"
|
|
4578
|
-
|
|
4565
|
+
aria-hidden="true"
|
|
4579
4566
|
[attr.id]="_placeholderId()"
|
|
4580
4567
|
>{{placeholder() ?? label()}}</span
|
|
4581
4568
|
>
|
|
@@ -4610,7 +4597,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
4610
4597
|
|
|
4611
4598
|
const CustomSelectDropdownWidthList = ['fixed', 'auto', 'full'];
|
|
4612
4599
|
|
|
4613
|
-
const defaultProps$
|
|
4600
|
+
const defaultProps$s = {};
|
|
4614
4601
|
class DBCustomSelectFormField {
|
|
4615
4602
|
constructor() {
|
|
4616
4603
|
this.cls = cls;
|
|
@@ -4656,13 +4643,11 @@ class DBCustomSelectFormField {
|
|
|
4656
4643
|
}
|
|
4657
4644
|
}
|
|
4658
4645
|
ngAfterViewInit() {
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
this.enableAttributePassing(element, "db-custom-select-form-field");
|
|
4662
|
-
}
|
|
4646
|
+
const element = this._ref()?.nativeElement;
|
|
4647
|
+
this.enableAttributePassing(element, "db-custom-select-form-field");
|
|
4663
4648
|
}
|
|
4664
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4665
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.
|
|
4649
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBCustomSelectFormField, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4650
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.16", type: DBCustomSelectFormField, isStandalone: true, selector: "db-custom-select-form-field", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<summary
|
|
4666
4651
|
#_ref
|
|
4667
4652
|
[attr.id]="id() ?? propOverrides()?.id"
|
|
4668
4653
|
[class]="cls('db-custom-select-form-field', className())"
|
|
@@ -4670,7 +4655,7 @@ class DBCustomSelectFormField {
|
|
|
4670
4655
|
<ng-content></ng-content>
|
|
4671
4656
|
</summary> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
4672
4657
|
}
|
|
4673
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4658
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBCustomSelectFormField, decorators: [{
|
|
4674
4659
|
type: Component,
|
|
4675
4660
|
args: [{ selector: "db-custom-select-form-field", standalone: true, imports: [CommonModule], template: `<summary
|
|
4676
4661
|
#_ref
|
|
@@ -4685,7 +4670,7 @@ const CustomSelectListItemTypeList = ['checkbox', 'radio'];
|
|
|
4685
4670
|
|
|
4686
4671
|
const SelectedTypeList = ['amount', 'text', 'tag'];
|
|
4687
4672
|
|
|
4688
|
-
const defaultProps$
|
|
4673
|
+
const defaultProps$r = {};
|
|
4689
4674
|
class DBDivider {
|
|
4690
4675
|
constructor() {
|
|
4691
4676
|
this.cls = cls;
|
|
@@ -4735,13 +4720,11 @@ class DBDivider {
|
|
|
4735
4720
|
}
|
|
4736
4721
|
}
|
|
4737
4722
|
ngAfterViewInit() {
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
this.enableAttributePassing(element, "db-divider");
|
|
4741
|
-
}
|
|
4723
|
+
const element = this._ref()?.nativeElement;
|
|
4724
|
+
this.enableAttributePassing(element, "db-divider");
|
|
4742
4725
|
}
|
|
4743
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4744
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.
|
|
4726
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBDivider, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4727
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.16", type: DBDivider, isStandalone: true, selector: "db-divider", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, margin: { classPropertyName: "margin", publicName: "margin", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, emphasis: { classPropertyName: "emphasis", publicName: "emphasis", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<div
|
|
4745
4728
|
#_ref
|
|
4746
4729
|
[attr.id]="id() ?? propOverrides()?.id"
|
|
4747
4730
|
[attr.data-margin]="margin()"
|
|
@@ -4751,7 +4734,7 @@ class DBDivider {
|
|
|
4751
4734
|
[class]="cls('db-divider', className())"
|
|
4752
4735
|
></div> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
4753
4736
|
}
|
|
4754
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4737
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBDivider, decorators: [{
|
|
4755
4738
|
type: Component,
|
|
4756
4739
|
args: [{ selector: "db-divider", standalone: true, imports: [CommonModule], template: `<div
|
|
4757
4740
|
#_ref
|
|
@@ -4767,7 +4750,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
4767
4750
|
const DividerMarginList = ['none', '_'];
|
|
4768
4751
|
const DividerVariantList = ['horizontal', 'vertical'];
|
|
4769
4752
|
|
|
4770
|
-
const defaultProps$
|
|
4753
|
+
const defaultProps$q = {};
|
|
4771
4754
|
class DBDrawer {
|
|
4772
4755
|
handleClose(event, forceClose) {
|
|
4773
4756
|
if (!event)
|
|
@@ -4854,9 +4837,9 @@ class DBDrawer {
|
|
|
4854
4837
|
this.open();
|
|
4855
4838
|
// ---
|
|
4856
4839
|
this.handleDialogOpen();
|
|
4857
|
-
},
|
|
4858
|
-
|
|
4859
|
-
|
|
4840
|
+
}, Number(VERSION.major) < 19
|
|
4841
|
+
? { allowSignalWrites: true }
|
|
4842
|
+
: undefined);
|
|
4860
4843
|
effect(() => {
|
|
4861
4844
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
4862
4845
|
this._ref();
|
|
@@ -4872,9 +4855,9 @@ class DBDrawer {
|
|
|
4872
4855
|
parent.style.position = "relative";
|
|
4873
4856
|
}
|
|
4874
4857
|
}
|
|
4875
|
-
},
|
|
4876
|
-
|
|
4877
|
-
|
|
4858
|
+
}, Number(VERSION.major) < 19
|
|
4859
|
+
? { allowSignalWrites: true }
|
|
4860
|
+
: undefined);
|
|
4878
4861
|
}
|
|
4879
4862
|
}
|
|
4880
4863
|
/**
|
|
@@ -4914,15 +4897,15 @@ class DBDrawer {
|
|
|
4914
4897
|
}
|
|
4915
4898
|
}
|
|
4916
4899
|
ngAfterViewInit() {
|
|
4900
|
+
const element = this._ref()?.nativeElement;
|
|
4901
|
+
this.enableAttributePassing(element, "db-drawer");
|
|
4917
4902
|
if (typeof window !== "undefined") {
|
|
4918
|
-
const element = this._ref()?.nativeElement;
|
|
4919
|
-
this.enableAttributePassing(element, "db-drawer");
|
|
4920
4903
|
this.handleDialogOpen();
|
|
4921
4904
|
this.initialized.set(true);
|
|
4922
4905
|
}
|
|
4923
4906
|
}
|
|
4924
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4925
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.
|
|
4907
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBDrawer, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4908
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.16", type: DBDrawer, isStandalone: true, selector: "db-drawer", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, backdrop: { classPropertyName: "backdrop", publicName: "backdrop", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, spacing: { classPropertyName: "spacing", publicName: "spacing", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, rounded: { classPropertyName: "rounded", publicName: "rounded", isSignal: true, isRequired: false, transformFunction: null }, closeButtonId: { classPropertyName: "closeButtonId", publicName: "closeButtonId", isSignal: true, isRequired: false, transformFunction: null }, closeButtonText: { classPropertyName: "closeButtonText", publicName: "closeButtonText", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { close: "close" }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }, { propertyName: "dialogContainerRef", first: true, predicate: ["dialogContainerRef"], descendants: true, isSignal: true }], ngImport: i0, template: `<dialog
|
|
4926
4909
|
class="db-drawer"
|
|
4927
4910
|
[attr.id]="id() ?? propOverrides()?.id"
|
|
4928
4911
|
#_ref
|
|
@@ -4939,7 +4922,7 @@ class DBDrawer {
|
|
|
4939
4922
|
[attr.data-spacing]="spacing()"
|
|
4940
4923
|
[attr.data-width]="width()"
|
|
4941
4924
|
[attr.data-direction]="direction()"
|
|
4942
|
-
[attr.data-rounded]="getBooleanAsString(rounded())"
|
|
4925
|
+
[attr.data-rounded]="getBooleanAsString(rounded(), 'rounded')"
|
|
4943
4926
|
>
|
|
4944
4927
|
<header class="db-drawer-header">
|
|
4945
4928
|
<div class="db-drawer-header-text">
|
|
@@ -4959,7 +4942,7 @@ class DBDrawer {
|
|
|
4959
4942
|
</article>
|
|
4960
4943
|
</dialog> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBButton, selector: "db-button", inputs: ["type", "id", "propOverrides", "className", "disabled", "iconLeading", "icon", "showIconLeading", "showIcon", "iconTrailing", "showIconTrailing", "size", "width", "variant", "wrap", "noText", "name", "form", "value", "text"], outputs: ["click"] }] }); }
|
|
4961
4944
|
}
|
|
4962
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4945
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBDrawer, decorators: [{
|
|
4963
4946
|
type: Component,
|
|
4964
4947
|
args: [{ selector: "db-drawer", standalone: true, imports: [CommonModule, DBButton], template: `<dialog
|
|
4965
4948
|
class="db-drawer"
|
|
@@ -4978,7 +4961,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
4978
4961
|
[attr.data-spacing]="spacing()"
|
|
4979
4962
|
[attr.data-width]="width()"
|
|
4980
4963
|
[attr.data-direction]="direction()"
|
|
4981
|
-
[attr.data-rounded]="getBooleanAsString(rounded())"
|
|
4964
|
+
[attr.data-rounded]="getBooleanAsString(rounded(), 'rounded')"
|
|
4982
4965
|
>
|
|
4983
4966
|
<header class="db-drawer-header">
|
|
4984
4967
|
<div class="db-drawer-header-text">
|
|
@@ -5138,10 +5121,10 @@ var navigation = {
|
|
|
5138
5121
|
|
|
5139
5122
|
/* Angular cannot handle multiple slots with the same name, we need to use Directives for this. */
|
|
5140
5123
|
class SecondaryActionDirective {
|
|
5141
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5142
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
5124
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: SecondaryActionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5125
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.16", type: SecondaryActionDirective, isStandalone: true, selector: "[dbSecondaryAction]", ngImport: i0 }); }
|
|
5143
5126
|
}
|
|
5144
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5127
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: SecondaryActionDirective, decorators: [{
|
|
5145
5128
|
type: Directive,
|
|
5146
5129
|
args: [{
|
|
5147
5130
|
selector: '[dbSecondaryAction]',
|
|
@@ -5151,10 +5134,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
5151
5134
|
|
|
5152
5135
|
/* Angular cannot handle multiple slots with the same name, we need to use Directives for this. */
|
|
5153
5136
|
class MetaNavigationDirective {
|
|
5154
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5155
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
5137
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: MetaNavigationDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5138
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.16", type: MetaNavigationDirective, isStandalone: true, selector: "[dbMetaNavigation]", ngImport: i0 }); }
|
|
5156
5139
|
}
|
|
5157
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5140
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: MetaNavigationDirective, decorators: [{
|
|
5158
5141
|
type: Directive,
|
|
5159
5142
|
args: [{
|
|
5160
5143
|
selector: '[dbMetaNavigation]',
|
|
@@ -5164,10 +5147,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
5164
5147
|
|
|
5165
5148
|
/* Angular cannot handle multiple slots with the same name, we need to use Directives for this. */
|
|
5166
5149
|
class NavigationDirective {
|
|
5167
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5168
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
5150
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: NavigationDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5151
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.16", type: NavigationDirective, isStandalone: true, selector: "[dbNavigation]", ngImport: i0 }); }
|
|
5169
5152
|
}
|
|
5170
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5153
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: NavigationDirective, decorators: [{
|
|
5171
5154
|
type: Directive,
|
|
5172
5155
|
args: [{
|
|
5173
5156
|
selector: '[dbNavigation]',
|
|
@@ -5175,7 +5158,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
5175
5158
|
}]
|
|
5176
5159
|
}] });
|
|
5177
5160
|
|
|
5178
|
-
const defaultProps$
|
|
5161
|
+
const defaultProps$p = {};
|
|
5179
5162
|
class DBHeader {
|
|
5180
5163
|
handleToggle(event) {
|
|
5181
5164
|
if (event && event.stopPropagation) {
|
|
@@ -5225,9 +5208,9 @@ class DBHeader {
|
|
|
5225
5208
|
});
|
|
5226
5209
|
this.forcedToMobile.set(true);
|
|
5227
5210
|
}
|
|
5228
|
-
},
|
|
5229
|
-
|
|
5230
|
-
|
|
5211
|
+
}, Number(VERSION.major) < 19
|
|
5212
|
+
? { allowSignalWrites: true }
|
|
5213
|
+
: undefined);
|
|
5231
5214
|
}
|
|
5232
5215
|
}
|
|
5233
5216
|
/**
|
|
@@ -5267,14 +5250,14 @@ class DBHeader {
|
|
|
5267
5250
|
}
|
|
5268
5251
|
}
|
|
5269
5252
|
ngAfterViewInit() {
|
|
5253
|
+
const element = this._ref()?.nativeElement;
|
|
5254
|
+
this.enableAttributePassing(element, "db-header");
|
|
5270
5255
|
if (typeof window !== "undefined") {
|
|
5271
|
-
const element = this._ref()?.nativeElement;
|
|
5272
|
-
this.enableAttributePassing(element, "db-header");
|
|
5273
5256
|
this.initialized.set(true);
|
|
5274
5257
|
}
|
|
5275
5258
|
}
|
|
5276
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5277
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.
|
|
5259
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBHeader, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5260
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.16", type: DBHeader, isStandalone: true, selector: "db-header", inputs: { forceMobile: { classPropertyName: "forceMobile", publicName: "forceMobile", isSignal: true, isRequired: false, transformFunction: null }, drawerOpen: { classPropertyName: "drawerOpen", publicName: "drawerOpen", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, burgerMenuLabel: { classPropertyName: "burgerMenuLabel", publicName: "burgerMenuLabel", isSignal: true, isRequired: false, transformFunction: null }, closeButtonId: { classPropertyName: "closeButtonId", publicName: "closeButtonId", isSignal: true, isRequired: false, transformFunction: null }, closeButtonText: { classPropertyName: "closeButtonText", publicName: "closeButtonText", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { toggle: "toggle" }, queries: [{ propertyName: "dbNavigation", first: true, predicate: NavigationDirective, descendants: true, read: TemplateRef }, { propertyName: "dbMetaNavigation", first: true, predicate: MetaNavigationDirective, descendants: true, read: TemplateRef }, { propertyName: "dbSecondaryAction", first: true, predicate: SecondaryActionDirective, descendants: true, read: TemplateRef }], viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<header
|
|
5278
5261
|
#_ref
|
|
5279
5262
|
[class]="cls('db-header', className())"
|
|
5280
5263
|
[attr.id]="id() ?? propOverrides()?.id"
|
|
@@ -5333,7 +5316,7 @@ class DBHeader {
|
|
|
5333
5316
|
></db-drawer>
|
|
5334
5317
|
</header> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: DBButton, selector: "db-button", inputs: ["type", "id", "propOverrides", "className", "disabled", "iconLeading", "icon", "showIconLeading", "showIcon", "iconTrailing", "showIconTrailing", "size", "width", "variant", "wrap", "noText", "name", "form", "value", "text"], outputs: ["click"] }, { kind: "component", type: DBDrawer, selector: "db-drawer", inputs: ["open", "position", "backdrop", "variant", "id", "propOverrides", "direction", "className", "spacing", "width", "rounded", "closeButtonId", "closeButtonText"], outputs: ["close"] }] }); }
|
|
5335
5318
|
}
|
|
5336
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5319
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBHeader, decorators: [{
|
|
5337
5320
|
type: Component,
|
|
5338
5321
|
args: [{ selector: "db-header", standalone: true, imports: [CommonModule, DBButton, DBDrawer], template: `<header
|
|
5339
5322
|
#_ref
|
|
@@ -5404,7 +5387,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
5404
5387
|
args: [SecondaryActionDirective, { read: TemplateRef }]
|
|
5405
5388
|
}], forceMobile: [{ type: i0.Input, args: [{ isSignal: true, alias: "forceMobile", required: false }] }], drawerOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "drawerOpen", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], burgerMenuLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "burgerMenuLabel", required: false }] }], closeButtonId: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeButtonId", required: false }] }], closeButtonText: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeButtonText", required: false }] }], toggle: [{ type: i0.Output, args: ["toggle"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
5406
5389
|
|
|
5407
|
-
const defaultProps$
|
|
5390
|
+
const defaultProps$o = {};
|
|
5408
5391
|
class DBIcon {
|
|
5409
5392
|
constructor() {
|
|
5410
5393
|
this.cls = cls;
|
|
@@ -5454,13 +5437,11 @@ class DBIcon {
|
|
|
5454
5437
|
}
|
|
5455
5438
|
}
|
|
5456
5439
|
ngAfterViewInit() {
|
|
5457
|
-
|
|
5458
|
-
|
|
5459
|
-
this.enableAttributePassing(element, "db-icon");
|
|
5460
|
-
}
|
|
5440
|
+
const element = this._ref()?.nativeElement;
|
|
5441
|
+
this.enableAttributePassing(element, "db-icon");
|
|
5461
5442
|
}
|
|
5462
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5463
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
5443
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBIcon, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5444
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: DBIcon, isStandalone: true, selector: "db-icon", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, weight: { classPropertyName: "weight", publicName: "weight", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<span
|
|
5464
5445
|
aria-hidden="true"
|
|
5465
5446
|
#_ref
|
|
5466
5447
|
[attr.id]="id() ?? propOverrides()?.id"
|
|
@@ -5471,7 +5452,7 @@ class DBIcon {
|
|
|
5471
5452
|
>@if(text()){{{text()}}} <ng-content></ng-content
|
|
5472
5453
|
></span> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
5473
5454
|
}
|
|
5474
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5455
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBIcon, decorators: [{
|
|
5475
5456
|
type: Component,
|
|
5476
5457
|
args: [{ selector: "db-icon", standalone: true, imports: [CommonModule], template: `<span
|
|
5477
5458
|
aria-hidden="true"
|
|
@@ -5493,7 +5474,7 @@ const InputTypeList = ['color', 'date', 'datetime-local', 'email', 'file',
|
|
|
5493
5474
|
// TODO: move this to own component
|
|
5494
5475
|
'search', 'tel', 'text', 'time', 'url', 'week'];
|
|
5495
5476
|
|
|
5496
|
-
const defaultProps$
|
|
5477
|
+
const defaultProps$n = {};
|
|
5497
5478
|
class DBLink {
|
|
5498
5479
|
constructor() {
|
|
5499
5480
|
this.cls = cls;
|
|
@@ -5554,13 +5535,11 @@ class DBLink {
|
|
|
5554
5535
|
}
|
|
5555
5536
|
}
|
|
5556
5537
|
ngAfterViewInit() {
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
this.enableAttributePassing(element, "db-link");
|
|
5560
|
-
}
|
|
5538
|
+
const element = this._ref()?.nativeElement;
|
|
5539
|
+
this.enableAttributePassing(element, "db-link");
|
|
5561
5540
|
}
|
|
5562
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5563
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
5541
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBLink, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5542
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: DBLink, isStandalone: true, selector: "db-link", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, href: { classPropertyName: "href", publicName: "href", isSignal: true, isRequired: false, transformFunction: null }, target: { classPropertyName: "target", publicName: "target", isSignal: true, isRequired: false, transformFunction: null }, rel: { classPropertyName: "rel", publicName: "rel", isSignal: true, isRequired: false, transformFunction: null }, role: { classPropertyName: "role", publicName: "role", isSignal: true, isRequired: false, transformFunction: null }, referrerpolicy: { classPropertyName: "referrerpolicy", publicName: "referrerpolicy", isSignal: true, isRequired: false, transformFunction: null }, referrerPolicy: { classPropertyName: "referrerPolicy", publicName: "referrerPolicy", isSignal: true, isRequired: false, transformFunction: null }, hreflang: { classPropertyName: "hreflang", publicName: "hreflang", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: false, transformFunction: null }, wrap: { classPropertyName: "wrap", publicName: "wrap", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<a
|
|
5564
5543
|
#_ref
|
|
5565
5544
|
[attr.id]="id() ?? propOverrides()?.id"
|
|
5566
5545
|
[class]="cls('db-link', className())"
|
|
@@ -5570,17 +5549,17 @@ class DBLink {
|
|
|
5570
5549
|
[attr.role]="role()"
|
|
5571
5550
|
[attr.referrerPolicy]="referrerpolicy() ?? referrerPolicy()"
|
|
5572
5551
|
[attr.hrefLang]="hreflang()"
|
|
5573
|
-
[attr.aria-disabled]="getBooleanAsString(disabled())"
|
|
5552
|
+
[attr.aria-disabled]="getBooleanAsString(disabled(), 'disabled')"
|
|
5574
5553
|
[attr.tabIndex]="disabled() ? -1 : 0"
|
|
5575
5554
|
[attr.data-size]="size()"
|
|
5576
|
-
[attr.data-show-icon-trailing]="getBooleanAsString(showIcon() ?? true)"
|
|
5555
|
+
[attr.data-show-icon-trailing]="getBooleanAsString(showIcon() ?? true, 'showIcon')"
|
|
5577
5556
|
[attr.data-variant]="variant()"
|
|
5578
5557
|
[attr.data-content]="content() || 'internal'"
|
|
5579
|
-
[attr.data-wrap]="getBooleanAsString(wrap())"
|
|
5558
|
+
[attr.data-wrap]="getBooleanAsString(wrap(), 'wrap')"
|
|
5580
5559
|
>@if(text()){{{text()}}} <ng-content></ng-content
|
|
5581
5560
|
></a> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
5582
5561
|
}
|
|
5583
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5562
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBLink, decorators: [{
|
|
5584
5563
|
type: Component,
|
|
5585
5564
|
args: [{ selector: "db-link", standalone: true, imports: [CommonModule], template: `<a
|
|
5586
5565
|
#_ref
|
|
@@ -5592,13 +5571,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
5592
5571
|
[attr.role]="role()"
|
|
5593
5572
|
[attr.referrerPolicy]="referrerpolicy() ?? referrerPolicy()"
|
|
5594
5573
|
[attr.hrefLang]="hreflang()"
|
|
5595
|
-
[attr.aria-disabled]="getBooleanAsString(disabled())"
|
|
5574
|
+
[attr.aria-disabled]="getBooleanAsString(disabled(), 'disabled')"
|
|
5596
5575
|
[attr.tabIndex]="disabled() ? -1 : 0"
|
|
5597
5576
|
[attr.data-size]="size()"
|
|
5598
|
-
[attr.data-show-icon-trailing]="getBooleanAsString(showIcon() ?? true)"
|
|
5577
|
+
[attr.data-show-icon-trailing]="getBooleanAsString(showIcon() ?? true, 'showIcon')"
|
|
5599
5578
|
[attr.data-variant]="variant()"
|
|
5600
5579
|
[attr.data-content]="content() || 'internal'"
|
|
5601
|
-
[attr.data-wrap]="getBooleanAsString(wrap())"
|
|
5580
|
+
[attr.data-wrap]="getBooleanAsString(wrap(), 'wrap')"
|
|
5602
5581
|
>@if(text()){{{text()}}} <ng-content></ng-content
|
|
5603
5582
|
></a> `, styles: [":host{display:contents}\n"] }]
|
|
5604
5583
|
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], href: [{ type: i0.Input, args: [{ isSignal: true, alias: "href", required: false }] }], target: [{ type: i0.Input, args: [{ isSignal: true, alias: "target", required: false }] }], rel: [{ type: i0.Input, args: [{ isSignal: true, alias: "rel", required: false }] }], role: [{ type: i0.Input, args: [{ isSignal: true, alias: "role", required: false }] }], referrerpolicy: [{ type: i0.Input, args: [{ isSignal: true, alias: "referrerpolicy", required: false }] }], referrerPolicy: [{ type: i0.Input, args: [{ isSignal: true, alias: "referrerPolicy", required: false }] }], hreflang: [{ type: i0.Input, args: [{ isSignal: true, alias: "hreflang", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], content: [{ type: i0.Input, args: [{ isSignal: true, alias: "content", required: false }] }], wrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "wrap", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
@@ -5607,7 +5586,7 @@ const LinkVariantList = ['adaptive', 'brand', 'inline'];
|
|
|
5607
5586
|
const LinkSizeList = ['medium', 'small'];
|
|
5608
5587
|
const LinkContentList = ['external', 'internal'];
|
|
5609
5588
|
|
|
5610
|
-
const defaultProps$
|
|
5589
|
+
const defaultProps$m = {};
|
|
5611
5590
|
class DBNavigation {
|
|
5612
5591
|
constructor() {
|
|
5613
5592
|
this.cls = cls;
|
|
@@ -5653,13 +5632,11 @@ class DBNavigation {
|
|
|
5653
5632
|
}
|
|
5654
5633
|
}
|
|
5655
5634
|
ngAfterViewInit() {
|
|
5656
|
-
|
|
5657
|
-
|
|
5658
|
-
this.enableAttributePassing(element, "db-navigation");
|
|
5659
|
-
}
|
|
5635
|
+
const element = this._ref()?.nativeElement;
|
|
5636
|
+
this.enableAttributePassing(element, "db-navigation");
|
|
5660
5637
|
}
|
|
5661
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5662
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.
|
|
5638
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBNavigation, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5639
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.16", type: DBNavigation, isStandalone: true, selector: "db-navigation", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<nav
|
|
5663
5640
|
#_ref
|
|
5664
5641
|
[attr.id]="id() ?? propOverrides()?.id"
|
|
5665
5642
|
[class]="cls('db-navigation', className())"
|
|
@@ -5667,7 +5644,7 @@ class DBNavigation {
|
|
|
5667
5644
|
<menu><ng-content></ng-content></menu>
|
|
5668
5645
|
</nav> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
5669
5646
|
}
|
|
5670
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5647
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBNavigation, decorators: [{
|
|
5671
5648
|
type: Component,
|
|
5672
5649
|
args: [{ selector: "db-navigation", standalone: true, imports: [CommonModule], template: `<nav
|
|
5673
5650
|
#_ref
|
|
@@ -5680,10 +5657,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
5680
5657
|
|
|
5681
5658
|
/* Angular cannot handle multiple slots with the same name, we need to use Directives for this. */
|
|
5682
5659
|
class NavigationContentDirective {
|
|
5683
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5684
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
5660
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: NavigationContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5661
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.16", type: NavigationContentDirective, isStandalone: true, selector: "[dbNavigationContent]", ngImport: i0 }); }
|
|
5685
5662
|
}
|
|
5686
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5663
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: NavigationContentDirective, decorators: [{
|
|
5687
5664
|
type: Directive,
|
|
5688
5665
|
args: [{
|
|
5689
5666
|
selector: '[dbNavigationContent]',
|
|
@@ -5691,7 +5668,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
5691
5668
|
}]
|
|
5692
5669
|
}] });
|
|
5693
5670
|
|
|
5694
|
-
const defaultProps$
|
|
5671
|
+
const defaultProps$l = {};
|
|
5695
5672
|
class DBNavigationItem {
|
|
5696
5673
|
handleNavigationItemClick(event) {
|
|
5697
5674
|
if (event?.target?.nodeName === "A") {
|
|
@@ -5751,9 +5728,9 @@ class DBNavigationItem {
|
|
|
5751
5728
|
if (this.subNavigationExpanded() !== undefined) {
|
|
5752
5729
|
this.isSubNavigationExpanded.set(!!getBoolean(this.subNavigationExpanded(), "subNavigationExpanded"));
|
|
5753
5730
|
}
|
|
5754
|
-
},
|
|
5755
|
-
|
|
5756
|
-
|
|
5731
|
+
}, Number(VERSION.major) < 19
|
|
5732
|
+
? { allowSignalWrites: true }
|
|
5733
|
+
: undefined);
|
|
5757
5734
|
effect(() => {
|
|
5758
5735
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
5759
5736
|
this.initialized();
|
|
@@ -5773,9 +5750,9 @@ class DBNavigationItem {
|
|
|
5773
5750
|
}
|
|
5774
5751
|
}
|
|
5775
5752
|
}
|
|
5776
|
-
},
|
|
5777
|
-
|
|
5778
|
-
|
|
5753
|
+
}, Number(VERSION.major) < 19
|
|
5754
|
+
? { allowSignalWrites: true }
|
|
5755
|
+
: undefined);
|
|
5779
5756
|
}
|
|
5780
5757
|
}
|
|
5781
5758
|
/**
|
|
@@ -5815,17 +5792,17 @@ class DBNavigationItem {
|
|
|
5815
5792
|
}
|
|
5816
5793
|
}
|
|
5817
5794
|
ngAfterViewInit() {
|
|
5795
|
+
const element = this._ref()?.nativeElement;
|
|
5796
|
+
this.enableAttributePassing(element, "db-navigation-item");
|
|
5818
5797
|
if (typeof window !== "undefined") {
|
|
5819
|
-
const element = this._ref()?.nativeElement;
|
|
5820
|
-
this.enableAttributePassing(element, "db-navigation-item");
|
|
5821
5798
|
this.initialized.set(true);
|
|
5822
5799
|
const subNavId = `sub-nav-${this.id() ?? uuid()}`;
|
|
5823
5800
|
this.subNavigationId.set(subNavId);
|
|
5824
5801
|
this.subNavigationToggleId.set(`${subNavId}-toggle`);
|
|
5825
5802
|
}
|
|
5826
5803
|
}
|
|
5827
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5828
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
5804
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBNavigationItem, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5805
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: DBNavigationItem, isStandalone: true, selector: "db-navigation-item", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, subNavigationExpanded: { classPropertyName: "subNavigationExpanded", publicName: "subNavigationExpanded", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null }, wrap: { classPropertyName: "wrap", publicName: "wrap", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, hideSubNavigation: { classPropertyName: "hideSubNavigation", publicName: "hideSubNavigation", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, backButtonId: { classPropertyName: "backButtonId", publicName: "backButtonId", isSignal: true, isRequired: false, transformFunction: null }, backButtonText: { classPropertyName: "backButtonText", publicName: "backButtonText", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { click: "click" }, queries: [{ propertyName: "dbNavigationContent", first: true, predicate: NavigationContentDirective, descendants: true, read: TemplateRef }], viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<li
|
|
5829
5806
|
#_ref
|
|
5830
5807
|
[attr.id]="id() ?? propOverrides()?.id"
|
|
5831
5808
|
(mouseover)="navigationItemSafeTriangle()?.enableFollow()"
|
|
@@ -5834,10 +5811,10 @@ class DBNavigationItem {
|
|
|
5834
5811
|
[class]="cls('db-navigation-item', className())"
|
|
5835
5812
|
[attr.data-width]="width()"
|
|
5836
5813
|
[attr.data-icon]="icon()"
|
|
5837
|
-
[attr.data-show-icon]="getBooleanAsString(showIcon())"
|
|
5814
|
+
[attr.data-show-icon]="getBooleanAsString(showIcon(), 'showIcon')"
|
|
5838
5815
|
[attr.data-active]="active()"
|
|
5839
|
-
[attr.data-wrap]="getBooleanAsString(wrap())"
|
|
5840
|
-
[attr.aria-disabled]="getBooleanAsString(disabled())"
|
|
5816
|
+
[attr.data-wrap]="getBooleanAsString(wrap(), 'wrap')"
|
|
5817
|
+
[attr.aria-disabled]="getBooleanAsString(disabled(), 'disabled')"
|
|
5841
5818
|
>
|
|
5842
5819
|
@if(!getBoolean(hideSubNavigation(), 'hideSubNavigation') &&
|
|
5843
5820
|
hasSubNavigation()){
|
|
@@ -5878,7 +5855,7 @@ class DBNavigationItem {
|
|
|
5878
5855
|
} }
|
|
5879
5856
|
</li> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: DBButton, selector: "db-button", inputs: ["type", "id", "propOverrides", "className", "disabled", "iconLeading", "icon", "showIconLeading", "showIcon", "iconTrailing", "showIconTrailing", "size", "width", "variant", "wrap", "noText", "name", "form", "value", "text"], outputs: ["click"] }] }); }
|
|
5880
5857
|
}
|
|
5881
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5858
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBNavigationItem, decorators: [{
|
|
5882
5859
|
type: Component,
|
|
5883
5860
|
args: [{ selector: "db-navigation-item", standalone: true, imports: [CommonModule, DBButton], template: `<li
|
|
5884
5861
|
#_ref
|
|
@@ -5889,10 +5866,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
5889
5866
|
[class]="cls('db-navigation-item', className())"
|
|
5890
5867
|
[attr.data-width]="width()"
|
|
5891
5868
|
[attr.data-icon]="icon()"
|
|
5892
|
-
[attr.data-show-icon]="getBooleanAsString(showIcon())"
|
|
5869
|
+
[attr.data-show-icon]="getBooleanAsString(showIcon(), 'showIcon')"
|
|
5893
5870
|
[attr.data-active]="active()"
|
|
5894
|
-
[attr.data-wrap]="getBooleanAsString(wrap())"
|
|
5895
|
-
[attr.aria-disabled]="getBooleanAsString(disabled())"
|
|
5871
|
+
[attr.data-wrap]="getBooleanAsString(wrap(), 'wrap')"
|
|
5872
|
+
[attr.aria-disabled]="getBooleanAsString(disabled(), 'disabled')"
|
|
5896
5873
|
>
|
|
5897
5874
|
@if(!getBoolean(hideSubNavigation(), 'hideSubNavigation') &&
|
|
5898
5875
|
hasSubNavigation()){
|
|
@@ -5937,7 +5914,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
5937
5914
|
args: [NavigationContentDirective, { read: TemplateRef }]
|
|
5938
5915
|
}], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], subNavigationExpanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "subNavigationExpanded", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], active: [{ type: i0.Input, args: [{ isSignal: true, alias: "active", required: false }] }], wrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "wrap", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], hideSubNavigation: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideSubNavigation", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], backButtonId: [{ type: i0.Input, args: [{ isSignal: true, alias: "backButtonId", required: false }] }], backButtonText: [{ type: i0.Input, args: [{ isSignal: true, alias: "backButtonText", required: false }] }], click: [{ type: i0.Output, args: ["click"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
5939
5916
|
|
|
5940
|
-
const defaultProps$
|
|
5917
|
+
const defaultProps$k = {};
|
|
5941
5918
|
class DBNotification {
|
|
5942
5919
|
handleClose(event) {
|
|
5943
5920
|
if (!event)
|
|
@@ -6013,13 +5990,11 @@ class DBNotification {
|
|
|
6013
5990
|
}
|
|
6014
5991
|
}
|
|
6015
5992
|
ngAfterViewInit() {
|
|
6016
|
-
|
|
6017
|
-
|
|
6018
|
-
this.enableAttributePassing(element, "db-notification");
|
|
6019
|
-
}
|
|
5993
|
+
const element = this._ref()?.nativeElement;
|
|
5994
|
+
this.enableAttributePassing(element, "db-notification");
|
|
6020
5995
|
}
|
|
6021
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
6022
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
5996
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBNotification, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5997
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: DBNotification, isStandalone: true, selector: "db-notification", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, semantic: { classPropertyName: "semantic", publicName: "semantic", isSignal: true, isRequired: false, transformFunction: null }, role: { classPropertyName: "role", publicName: "role", isSignal: true, isRequired: false, transformFunction: null }, ariaLive: { classPropertyName: "ariaLive", publicName: "ariaLive", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, linkVariant: { classPropertyName: "linkVariant", publicName: "linkVariant", isSignal: true, isRequired: false, transformFunction: null }, headline: { classPropertyName: "headline", publicName: "headline", isSignal: true, isRequired: false, transformFunction: null }, showHeadline: { classPropertyName: "showHeadline", publicName: "showHeadline", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, timestamp: { classPropertyName: "timestamp", publicName: "timestamp", isSignal: true, isRequired: false, transformFunction: null }, showTimestamp: { classPropertyName: "showTimestamp", publicName: "showTimestamp", isSignal: true, isRequired: false, transformFunction: null }, timestampDatetime: { classPropertyName: "timestampDatetime", publicName: "timestampDatetime", isSignal: true, isRequired: false, transformFunction: null }, closeable: { classPropertyName: "closeable", publicName: "closeable", isSignal: true, isRequired: false, transformFunction: null }, closeButtonId: { classPropertyName: "closeButtonId", publicName: "closeButtonId", isSignal: true, isRequired: false, transformFunction: null }, closeButtonText: { classPropertyName: "closeButtonText", publicName: "closeButtonText", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { close: "close" }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<div
|
|
6023
5998
|
#_ref
|
|
6024
5999
|
[attr.id]="id() ?? propOverrides()?.id"
|
|
6025
6000
|
[class]="cls('db-notification', className())"
|
|
@@ -6032,7 +6007,7 @@ class DBNotification {
|
|
|
6032
6007
|
[attr.data-semantic]="semantic()"
|
|
6033
6008
|
[attr.data-variant]="variant()"
|
|
6034
6009
|
[attr.data-icon]="getBoolean(showIcon()) !== false ? icon() : undefined"
|
|
6035
|
-
[attr.data-show-icon]="getBooleanAsString(showIcon())"
|
|
6010
|
+
[attr.data-show-icon]="getBooleanAsString(showIcon(), 'showIcon')"
|
|
6036
6011
|
[attr.data-link-variant]="linkVariant()"
|
|
6037
6012
|
>
|
|
6038
6013
|
<ng-content select="[image]"> </ng-content>
|
|
@@ -6063,7 +6038,7 @@ class DBNotification {
|
|
|
6063
6038
|
}
|
|
6064
6039
|
</div> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBButton, selector: "db-button", inputs: ["type", "id", "propOverrides", "className", "disabled", "iconLeading", "icon", "showIconLeading", "showIcon", "iconTrailing", "showIconTrailing", "size", "width", "variant", "wrap", "noText", "name", "form", "value", "text"], outputs: ["click"] }] }); }
|
|
6065
6040
|
}
|
|
6066
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6041
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBNotification, decorators: [{
|
|
6067
6042
|
type: Component,
|
|
6068
6043
|
args: [{ selector: "db-notification", standalone: true, imports: [CommonModule, DBButton], template: `<div
|
|
6069
6044
|
#_ref
|
|
@@ -6078,7 +6053,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
6078
6053
|
[attr.data-semantic]="semantic()"
|
|
6079
6054
|
[attr.data-variant]="variant()"
|
|
6080
6055
|
[attr.data-icon]="getBoolean(showIcon()) !== false ? icon() : undefined"
|
|
6081
|
-
[attr.data-show-icon]="getBooleanAsString(showIcon())"
|
|
6056
|
+
[attr.data-show-icon]="getBooleanAsString(showIcon(), 'showIcon')"
|
|
6082
6057
|
[attr.data-link-variant]="linkVariant()"
|
|
6083
6058
|
>
|
|
6084
6059
|
<ng-content select="[image]"> </ng-content>
|
|
@@ -6114,7 +6089,7 @@ const NotificationVariantList = ['docked', 'standalone', 'overlay'];
|
|
|
6114
6089
|
const NotificationLinkVariantList = ['block', 'inline'];
|
|
6115
6090
|
const NotificationAriaLiveList = ['assertive', 'polite', 'off'];
|
|
6116
6091
|
|
|
6117
|
-
const defaultProps$
|
|
6092
|
+
const defaultProps$j = {};
|
|
6118
6093
|
class DBPage {
|
|
6119
6094
|
constructor() {
|
|
6120
6095
|
this.cls = cls;
|
|
@@ -6176,9 +6151,9 @@ class DBPage {
|
|
|
6176
6151
|
}
|
|
6177
6152
|
}
|
|
6178
6153
|
ngAfterViewInit() {
|
|
6154
|
+
const element = this._ref()?.nativeElement;
|
|
6155
|
+
this.enableAttributePassing(element, "db-page");
|
|
6179
6156
|
if (typeof window !== "undefined") {
|
|
6180
|
-
const element = this._ref()?.nativeElement;
|
|
6181
|
-
this.enableAttributePassing(element, "db-page");
|
|
6182
6157
|
this.fontsLoaded.set(!this.fadeIn());
|
|
6183
6158
|
if (document && this.fadeIn()) {
|
|
6184
6159
|
document.fonts.ready.then(() => {
|
|
@@ -6197,29 +6172,29 @@ class DBPage {
|
|
|
6197
6172
|
document.documentElement.classList.remove("db-page-document");
|
|
6198
6173
|
}
|
|
6199
6174
|
}
|
|
6200
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
6201
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.
|
|
6175
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBPage, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6176
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.16", type: DBPage, isStandalone: true, selector: "db-page", inputs: { fadeIn: { classPropertyName: "fadeIn", publicName: "fadeIn", isSignal: true, isRequired: false, transformFunction: null }, documentOverflow: { classPropertyName: "documentOverflow", publicName: "documentOverflow", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, mainClass: { classPropertyName: "mainClass", publicName: "mainClass", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<div
|
|
6202
6177
|
#_ref
|
|
6203
6178
|
[attr.id]="id() ?? propOverrides()?.id"
|
|
6204
6179
|
[class]="cls('db-page', className())"
|
|
6205
6180
|
[attr.data-variant]="variant()"
|
|
6206
|
-
[attr.data-fade-in]="getBooleanAsString(fadeIn())"
|
|
6207
|
-
[attr.data-fonts-loaded]="getBooleanAsString(fontsLoaded())"
|
|
6181
|
+
[attr.data-fade-in]="getBooleanAsString(fadeIn(), 'fadeIn')"
|
|
6182
|
+
[attr.data-fonts-loaded]="getBooleanAsString(fontsLoaded(), 'fontsLoaded')"
|
|
6208
6183
|
>
|
|
6209
6184
|
<ng-content select="[header]"> </ng-content>
|
|
6210
6185
|
<main [class]="cls('db-main', mainClass())"><ng-content></ng-content></main>
|
|
6211
6186
|
<ng-content select="[footer]"> </ng-content>
|
|
6212
6187
|
</div> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
6213
6188
|
}
|
|
6214
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6189
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBPage, decorators: [{
|
|
6215
6190
|
type: Component,
|
|
6216
6191
|
args: [{ selector: "db-page", standalone: true, imports: [CommonModule], template: `<div
|
|
6217
6192
|
#_ref
|
|
6218
6193
|
[attr.id]="id() ?? propOverrides()?.id"
|
|
6219
6194
|
[class]="cls('db-page', className())"
|
|
6220
6195
|
[attr.data-variant]="variant()"
|
|
6221
|
-
[attr.data-fade-in]="getBooleanAsString(fadeIn())"
|
|
6222
|
-
[attr.data-fonts-loaded]="getBooleanAsString(fontsLoaded())"
|
|
6196
|
+
[attr.data-fade-in]="getBooleanAsString(fadeIn(), 'fadeIn')"
|
|
6197
|
+
[attr.data-fonts-loaded]="getBooleanAsString(fontsLoaded(), 'fontsLoaded')"
|
|
6223
6198
|
>
|
|
6224
6199
|
<ng-content select="[header]"> </ng-content>
|
|
6225
6200
|
<main [class]="cls('db-main', mainClass())"><ng-content></ng-content></main>
|
|
@@ -6230,7 +6205,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
6230
6205
|
const PageVariantList = ['auto', 'fixed'];
|
|
6231
6206
|
const PageDocumentOverflowList = ['hidden', 'auto'];
|
|
6232
6207
|
|
|
6233
|
-
const defaultProps$
|
|
6208
|
+
const defaultProps$i = {};
|
|
6234
6209
|
class DBPopover {
|
|
6235
6210
|
handleEscape(event) {
|
|
6236
6211
|
if (!event || event.key === "Escape") {
|
|
@@ -6349,9 +6324,9 @@ class DBPopover {
|
|
|
6349
6324
|
}));
|
|
6350
6325
|
}
|
|
6351
6326
|
}
|
|
6352
|
-
},
|
|
6353
|
-
|
|
6354
|
-
|
|
6327
|
+
}, Number(VERSION.major) < 19
|
|
6328
|
+
? { allowSignalWrites: true }
|
|
6329
|
+
: undefined);
|
|
6355
6330
|
effect(() => {
|
|
6356
6331
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
6357
6332
|
this._ref();
|
|
@@ -6363,9 +6338,9 @@ class DBPopover {
|
|
|
6363
6338
|
child.ariaExpanded = Boolean(this.isExpanded()).toString();
|
|
6364
6339
|
}
|
|
6365
6340
|
}
|
|
6366
|
-
},
|
|
6367
|
-
|
|
6368
|
-
|
|
6341
|
+
}, Number(VERSION.major) < 19
|
|
6342
|
+
? { allowSignalWrites: true }
|
|
6343
|
+
: undefined);
|
|
6369
6344
|
}
|
|
6370
6345
|
}
|
|
6371
6346
|
/**
|
|
@@ -6405,14 +6380,14 @@ class DBPopover {
|
|
|
6405
6380
|
}
|
|
6406
6381
|
}
|
|
6407
6382
|
ngAfterViewInit() {
|
|
6383
|
+
const element = this._ref()?.nativeElement;
|
|
6384
|
+
this.enableAttributePassing(element, "db-popover");
|
|
6408
6385
|
if (typeof window !== "undefined") {
|
|
6409
|
-
const element = this._ref()?.nativeElement;
|
|
6410
|
-
this.enableAttributePassing(element, "db-popover");
|
|
6411
6386
|
this.initialized.set(true);
|
|
6412
6387
|
}
|
|
6413
6388
|
}
|
|
6414
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
6415
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.
|
|
6389
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBPopover, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6390
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.16", type: DBPopover, isStandalone: true, selector: "db-popover", inputs: { placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, spacing: { classPropertyName: "spacing", publicName: "spacing", isSignal: true, isRequired: false, transformFunction: null }, gap: { classPropertyName: "gap", publicName: "gap", isSignal: true, isRequired: false, transformFunction: null }, animation: { classPropertyName: "animation", publicName: "animation", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, delay: { classPropertyName: "delay", publicName: "delay", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<div
|
|
6416
6391
|
#_ref
|
|
6417
6392
|
[attr.id]="id() ?? propOverrides()?.id"
|
|
6418
6393
|
[class]="cls('db-popover', className())"
|
|
@@ -6421,9 +6396,9 @@ class DBPopover {
|
|
|
6421
6396
|
<article
|
|
6422
6397
|
class="db-popover-content"
|
|
6423
6398
|
[attr.data-spacing]="spacing()"
|
|
6424
|
-
[attr.data-gap]="getBooleanAsString(gap())"
|
|
6425
|
-
[attr.data-animation]="getBooleanAsString(animation() ?? true)"
|
|
6426
|
-
[attr.data-open]="getBooleanAsString(open())"
|
|
6399
|
+
[attr.data-gap]="getBooleanAsString(gap(), 'gap')"
|
|
6400
|
+
[attr.data-animation]="getBooleanAsString(animation() ?? true, 'animation')"
|
|
6401
|
+
[attr.data-open]="getBooleanAsString(open(), 'open')"
|
|
6427
6402
|
[attr.data-delay]="delay()"
|
|
6428
6403
|
[attr.data-width]="width()"
|
|
6429
6404
|
[attr.data-placement]="placement()"
|
|
@@ -6432,7 +6407,7 @@ class DBPopover {
|
|
|
6432
6407
|
</article>
|
|
6433
6408
|
</div> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
6434
6409
|
}
|
|
6435
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6410
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBPopover, decorators: [{
|
|
6436
6411
|
type: Component,
|
|
6437
6412
|
args: [{ selector: "db-popover", standalone: true, imports: [CommonModule], template: `<div
|
|
6438
6413
|
#_ref
|
|
@@ -6443,9 +6418,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
6443
6418
|
<article
|
|
6444
6419
|
class="db-popover-content"
|
|
6445
6420
|
[attr.data-spacing]="spacing()"
|
|
6446
|
-
[attr.data-gap]="getBooleanAsString(gap())"
|
|
6447
|
-
[attr.data-animation]="getBooleanAsString(animation() ?? true)"
|
|
6448
|
-
[attr.data-open]="getBooleanAsString(open())"
|
|
6421
|
+
[attr.data-gap]="getBooleanAsString(gap(), 'gap')"
|
|
6422
|
+
[attr.data-animation]="getBooleanAsString(animation() ?? true, 'animation')"
|
|
6423
|
+
[attr.data-open]="getBooleanAsString(open(), 'open')"
|
|
6449
6424
|
[attr.data-delay]="delay()"
|
|
6450
6425
|
[attr.data-width]="width()"
|
|
6451
6426
|
[attr.data-placement]="placement()"
|
|
@@ -6455,7 +6430,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
6455
6430
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
6456
6431
|
}], ctorParameters: () => [], propDecorators: { placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "placement", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], spacing: [{ type: i0.Input, args: [{ isSignal: true, alias: "spacing", required: false }] }], gap: [{ type: i0.Input, args: [{ isSignal: true, alias: "gap", required: false }] }], animation: [{ type: i0.Input, args: [{ isSignal: true, alias: "animation", required: false }] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }], delay: [{ type: i0.Input, args: [{ isSignal: true, alias: "delay", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
6457
6432
|
|
|
6458
|
-
const defaultProps$
|
|
6433
|
+
const defaultProps$h = {};
|
|
6459
6434
|
class DBRadio {
|
|
6460
6435
|
handleInput(event, reset) {
|
|
6461
6436
|
if (this.input) {
|
|
@@ -6521,9 +6496,9 @@ class DBRadio {
|
|
|
6521
6496
|
if (this.id() ?? this.propOverrides()?.id) {
|
|
6522
6497
|
this.resetIds();
|
|
6523
6498
|
}
|
|
6524
|
-
},
|
|
6525
|
-
|
|
6526
|
-
|
|
6499
|
+
}, Number(VERSION.major) < 19
|
|
6500
|
+
? { allowSignalWrites: true }
|
|
6501
|
+
: undefined);
|
|
6527
6502
|
effect(() => {
|
|
6528
6503
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
6529
6504
|
this.initialized();
|
|
@@ -6535,9 +6510,9 @@ class DBRadio {
|
|
|
6535
6510
|
this._ref()?.nativeElement) {
|
|
6536
6511
|
this._ref().nativeElement.checked = true;
|
|
6537
6512
|
}
|
|
6538
|
-
},
|
|
6539
|
-
|
|
6540
|
-
|
|
6513
|
+
}, Number(VERSION.major) < 19
|
|
6514
|
+
? { allowSignalWrites: true }
|
|
6515
|
+
: undefined);
|
|
6541
6516
|
effect(() => {
|
|
6542
6517
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
6543
6518
|
this._ref();
|
|
@@ -6569,9 +6544,9 @@ class DBRadio {
|
|
|
6569
6544
|
}, 1);
|
|
6570
6545
|
}, controller.signal);
|
|
6571
6546
|
}
|
|
6572
|
-
},
|
|
6573
|
-
|
|
6574
|
-
|
|
6547
|
+
}, Number(VERSION.major) < 19
|
|
6548
|
+
? { allowSignalWrites: true }
|
|
6549
|
+
: undefined);
|
|
6575
6550
|
}
|
|
6576
6551
|
}
|
|
6577
6552
|
/**
|
|
@@ -6628,9 +6603,9 @@ class DBRadio {
|
|
|
6628
6603
|
this.disabled.set(disabled);
|
|
6629
6604
|
}
|
|
6630
6605
|
ngAfterViewInit() {
|
|
6606
|
+
const element = this._ref()?.nativeElement;
|
|
6607
|
+
this.enableAttributePassing(element, "db-radio");
|
|
6631
6608
|
if (typeof window !== "undefined") {
|
|
6632
|
-
const element = this._ref()?.nativeElement;
|
|
6633
|
-
this.enableAttributePassing(element, "db-radio");
|
|
6634
6609
|
this.initialized.set(true);
|
|
6635
6610
|
this.resetIds();
|
|
6636
6611
|
}
|
|
@@ -6638,8 +6613,8 @@ class DBRadio {
|
|
|
6638
6613
|
ngOnDestroy() {
|
|
6639
6614
|
this.abortController()?.abort();
|
|
6640
6615
|
}
|
|
6641
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
6642
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
6616
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBRadio, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6617
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: DBRadio, isStandalone: true, selector: "db-radio", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, showLabel: { classPropertyName: "showLabel", publicName: "showLabel", isSignal: true, isRequired: false, transformFunction: null }, showRequiredAsterisk: { classPropertyName: "showRequiredAsterisk", publicName: "showRequiredAsterisk", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, validation: { classPropertyName: "validation", publicName: "validation", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { disabled: "disabledChange", value: "valueChange", input: "input", change: "change", blur: "blur", focus: "focus" }, providers: [{
|
|
6643
6618
|
provide: NG_VALUE_ACCESSOR,
|
|
6644
6619
|
useExisting: DBRadio,
|
|
6645
6620
|
multi: true
|
|
@@ -6667,7 +6642,7 @@ class DBRadio {
|
|
|
6667
6642
|
@if(label()){{{label()}}} <ng-content></ng-content
|
|
6668
6643
|
></label> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
6669
6644
|
}
|
|
6670
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6645
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBRadio, decorators: [{
|
|
6671
6646
|
type: Component,
|
|
6672
6647
|
args: [{ providers: [{
|
|
6673
6648
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -6698,7 +6673,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
6698
6673
|
></label> `, styles: [":host{display:contents}\n"] }]
|
|
6699
6674
|
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], showLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLabel", required: false }] }], showRequiredAsterisk: [{ type: i0.Input, args: [{ isSignal: true, alias: "showRequiredAsterisk", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], validation: [{ type: i0.Input, args: [{ isSignal: true, alias: "validation", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }, { type: i0.Output, args: ["disabledChange"] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], input: [{ type: i0.Output, args: ["input"] }], change: [{ type: i0.Output, args: ["change"] }], blur: [{ type: i0.Output, args: ["blur"] }], focus: [{ type: i0.Output, args: ["focus"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
6700
6675
|
|
|
6701
|
-
const defaultProps$
|
|
6676
|
+
const defaultProps$g = {};
|
|
6702
6677
|
class DBSection {
|
|
6703
6678
|
constructor() {
|
|
6704
6679
|
this.cls = cls;
|
|
@@ -6746,13 +6721,11 @@ class DBSection {
|
|
|
6746
6721
|
}
|
|
6747
6722
|
}
|
|
6748
6723
|
ngAfterViewInit() {
|
|
6749
|
-
|
|
6750
|
-
|
|
6751
|
-
this.enableAttributePassing(element, "db-section");
|
|
6752
|
-
}
|
|
6724
|
+
const element = this._ref()?.nativeElement;
|
|
6725
|
+
this.enableAttributePassing(element, "db-section");
|
|
6753
6726
|
}
|
|
6754
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
6755
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.
|
|
6727
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBSection, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6728
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.16", type: DBSection, isStandalone: true, selector: "db-section", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, spacing: { classPropertyName: "spacing", publicName: "spacing", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<section
|
|
6756
6729
|
#_ref
|
|
6757
6730
|
[attr.id]="id() ?? propOverrides()?.id"
|
|
6758
6731
|
[class]="cls('db-section', className())"
|
|
@@ -6762,7 +6735,7 @@ class DBSection {
|
|
|
6762
6735
|
<ng-content></ng-content>
|
|
6763
6736
|
</section> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
6764
6737
|
}
|
|
6765
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6738
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBSection, decorators: [{
|
|
6766
6739
|
type: Component,
|
|
6767
6740
|
args: [{ selector: "db-section", standalone: true, imports: [CommonModule], template: `<section
|
|
6768
6741
|
#_ref
|
|
@@ -6775,7 +6748,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
6775
6748
|
</section> `, styles: [":host{display:contents}\n"] }]
|
|
6776
6749
|
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], spacing: [{ type: i0.Input, args: [{ isSignal: true, alias: "spacing", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
6777
6750
|
|
|
6778
|
-
const defaultProps$
|
|
6751
|
+
const defaultProps$f = {};
|
|
6779
6752
|
class DBSelect {
|
|
6780
6753
|
hasValidState() {
|
|
6781
6754
|
return !!(this.validMessage() ?? this.validation() === "valid");
|
|
@@ -6932,9 +6905,9 @@ class DBSelect {
|
|
|
6932
6905
|
if (this.id() ?? this.propOverrides()?.id) {
|
|
6933
6906
|
this.resetIds();
|
|
6934
6907
|
}
|
|
6935
|
-
},
|
|
6936
|
-
|
|
6937
|
-
|
|
6908
|
+
}, Number(VERSION.major) < 19
|
|
6909
|
+
? { allowSignalWrites: true }
|
|
6910
|
+
: undefined);
|
|
6938
6911
|
effect(() => {
|
|
6939
6912
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
6940
6913
|
this._ref();
|
|
@@ -6943,9 +6916,9 @@ class DBSelect {
|
|
|
6943
6916
|
this._invalidMessage.set(this.invalidMessage() ||
|
|
6944
6917
|
this._ref()?.nativeElement?.validationMessage ||
|
|
6945
6918
|
DEFAULT_INVALID_MESSAGE);
|
|
6946
|
-
},
|
|
6947
|
-
|
|
6948
|
-
|
|
6919
|
+
}, Number(VERSION.major) < 19
|
|
6920
|
+
? { allowSignalWrites: true }
|
|
6921
|
+
: undefined);
|
|
6949
6922
|
effect(() => {
|
|
6950
6923
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
6951
6924
|
this._id();
|
|
@@ -6970,17 +6943,17 @@ class DBSelect {
|
|
|
6970
6943
|
this.handleValidation();
|
|
6971
6944
|
this.initialized.set(false);
|
|
6972
6945
|
}
|
|
6973
|
-
},
|
|
6974
|
-
|
|
6975
|
-
|
|
6946
|
+
}, Number(VERSION.major) < 19
|
|
6947
|
+
? { allowSignalWrites: true }
|
|
6948
|
+
: undefined);
|
|
6976
6949
|
effect(() => {
|
|
6977
6950
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
6978
6951
|
this.value();
|
|
6979
6952
|
// ---
|
|
6980
6953
|
this._value.set(this.value());
|
|
6981
|
-
},
|
|
6982
|
-
|
|
6983
|
-
|
|
6954
|
+
}, Number(VERSION.major) < 19
|
|
6955
|
+
? { allowSignalWrites: true }
|
|
6956
|
+
: undefined);
|
|
6984
6957
|
effect(() => {
|
|
6985
6958
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
6986
6959
|
this._ref();
|
|
@@ -7003,9 +6976,9 @@ class DBSelect {
|
|
|
7003
6976
|
this.handleInput(event, true);
|
|
7004
6977
|
}, controller.signal);
|
|
7005
6978
|
}
|
|
7006
|
-
},
|
|
7007
|
-
|
|
7008
|
-
|
|
6979
|
+
}, Number(VERSION.major) < 19
|
|
6980
|
+
? { allowSignalWrites: true }
|
|
6981
|
+
: undefined);
|
|
7009
6982
|
}
|
|
7010
6983
|
}
|
|
7011
6984
|
/**
|
|
@@ -7060,9 +7033,9 @@ class DBSelect {
|
|
|
7060
7033
|
this.disabled.set(disabled);
|
|
7061
7034
|
}
|
|
7062
7035
|
ngAfterViewInit() {
|
|
7036
|
+
const element = this._ref()?.nativeElement;
|
|
7037
|
+
this.enableAttributePassing(element, "db-select");
|
|
7063
7038
|
if (typeof window !== "undefined") {
|
|
7064
|
-
const element = this._ref()?.nativeElement;
|
|
7065
|
-
this.enableAttributePassing(element, "db-select");
|
|
7066
7039
|
this.initialized.set(true);
|
|
7067
7040
|
this.resetIds();
|
|
7068
7041
|
this._invalidMessage.set(this.invalidMessage() || DEFAULT_INVALID_MESSAGE);
|
|
@@ -7073,8 +7046,8 @@ class DBSelect {
|
|
|
7073
7046
|
ngOnDestroy() {
|
|
7074
7047
|
this.abortController()?.abort();
|
|
7075
7048
|
}
|
|
7076
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
7077
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
7049
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBSelect, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7050
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: DBSelect, isStandalone: true, selector: "db-select", inputs: { invalidMessage: { classPropertyName: "invalidMessage", publicName: "invalidMessage", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null }, showMessage: { classPropertyName: "showMessage", publicName: "showMessage", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, validMessage: { classPropertyName: "validMessage", publicName: "validMessage", isSignal: true, isRequired: false, transformFunction: null }, validation: { classPropertyName: "validation", publicName: "validation", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, showEmptyOption: { classPropertyName: "showEmptyOption", publicName: "showEmptyOption", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, showLabel: { classPropertyName: "showLabel", publicName: "showLabel", isSignal: true, isRequired: false, transformFunction: null }, showRequiredAsterisk: { classPropertyName: "showRequiredAsterisk", publicName: "showRequiredAsterisk", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, ariaDescribedBy: { classPropertyName: "ariaDescribedBy", publicName: "ariaDescribedBy", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, messageIcon: { classPropertyName: "messageIcon", publicName: "messageIcon", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", disabled: "disabledChange", click: "click", input: "input", change: "change", blur: "blur", focus: "focus" }, providers: [{
|
|
7078
7051
|
provide: NG_VALUE_ACCESSOR,
|
|
7079
7052
|
useExisting: DBSelect,
|
|
7080
7053
|
multi: true
|
|
@@ -7084,7 +7057,7 @@ class DBSelect {
|
|
|
7084
7057
|
[attr.data-hide-label]="getHideProp(showLabel())"
|
|
7085
7058
|
[attr.data-hide-asterisk]="getHideProp(showRequiredAsterisk())"
|
|
7086
7059
|
[attr.data-icon]="icon()"
|
|
7087
|
-
[attr.data-show-icon]="getBooleanAsString(showIcon())"
|
|
7060
|
+
[attr.data-show-icon]="getBooleanAsString(showIcon(), 'showIcon')"
|
|
7088
7061
|
>
|
|
7089
7062
|
<label [attr.for]="_id()">{{label() ?? DEFAULT_LABEL}}</label>
|
|
7090
7063
|
<select
|
|
@@ -7110,7 +7083,7 @@ class DBSelect {
|
|
|
7110
7083
|
<option
|
|
7111
7084
|
class="placeholder"
|
|
7112
7085
|
value=""
|
|
7113
|
-
[attr.data-show-empty-option]="getBooleanAsString(shouldShowEmptyOption())"
|
|
7086
|
+
[attr.data-show-empty-option]="getBooleanAsString(shouldShowEmptyOption(), 'showEmptyOption')"
|
|
7114
7087
|
></option>
|
|
7115
7088
|
} @if(options()?.length){ @for (option of options();track i;let i =
|
|
7116
7089
|
$index) {
|
|
@@ -7176,7 +7149,7 @@ class DBSelect {
|
|
|
7176
7149
|
>
|
|
7177
7150
|
</div> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBInfotext, selector: "db-infotext", inputs: ["id", "propOverrides", "className", "icon", "semantic", "size", "wrap", "showIcon", "text"] }] }); }
|
|
7178
7151
|
}
|
|
7179
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
7152
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBSelect, decorators: [{
|
|
7180
7153
|
type: Component,
|
|
7181
7154
|
args: [{ providers: [{
|
|
7182
7155
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -7188,7 +7161,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
7188
7161
|
[attr.data-hide-label]="getHideProp(showLabel())"
|
|
7189
7162
|
[attr.data-hide-asterisk]="getHideProp(showRequiredAsterisk())"
|
|
7190
7163
|
[attr.data-icon]="icon()"
|
|
7191
|
-
[attr.data-show-icon]="getBooleanAsString(showIcon())"
|
|
7164
|
+
[attr.data-show-icon]="getBooleanAsString(showIcon(), 'showIcon')"
|
|
7192
7165
|
>
|
|
7193
7166
|
<label [attr.for]="_id()">{{label() ?? DEFAULT_LABEL}}</label>
|
|
7194
7167
|
<select
|
|
@@ -7214,7 +7187,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
7214
7187
|
<option
|
|
7215
7188
|
class="placeholder"
|
|
7216
7189
|
value=""
|
|
7217
|
-
[attr.data-show-empty-option]="getBooleanAsString(shouldShowEmptyOption())"
|
|
7190
|
+
[attr.data-show-empty-option]="getBooleanAsString(shouldShowEmptyOption(), 'showEmptyOption')"
|
|
7218
7191
|
></option>
|
|
7219
7192
|
} @if(options()?.length){ @for (option of options();track i;let i =
|
|
7220
7193
|
$index) {
|
|
@@ -7281,7 +7254,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
7281
7254
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
7282
7255
|
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { invalidMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalidMessage", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: false }] }], showMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "showMessage", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], validMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "validMessage", required: false }] }], validation: [{ type: i0.Input, args: [{ isSignal: true, alias: "validation", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], showEmptyOption: [{ type: i0.Input, args: [{ isSignal: true, alias: "showEmptyOption", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], showLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLabel", required: false }] }], showRequiredAsterisk: [{ type: i0.Input, args: [{ isSignal: true, alias: "showRequiredAsterisk", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }, { type: i0.Output, args: ["disabledChange"] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], autocomplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocomplete", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], ariaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedBy", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], messageIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "messageIcon", required: false }] }], click: [{ type: i0.Output, args: ["click"] }], input: [{ type: i0.Output, args: ["input"] }], change: [{ type: i0.Output, args: ["change"] }], blur: [{ type: i0.Output, args: ["blur"] }], focus: [{ type: i0.Output, args: ["focus"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
7283
7256
|
|
|
7284
|
-
const defaultProps$
|
|
7257
|
+
const defaultProps$e = {};
|
|
7285
7258
|
class DBStack {
|
|
7286
7259
|
constructor() {
|
|
7287
7260
|
this.cls = cls;
|
|
@@ -7334,13 +7307,11 @@ class DBStack {
|
|
|
7334
7307
|
}
|
|
7335
7308
|
}
|
|
7336
7309
|
ngAfterViewInit() {
|
|
7337
|
-
|
|
7338
|
-
|
|
7339
|
-
this.enableAttributePassing(element, "db-stack");
|
|
7340
|
-
}
|
|
7310
|
+
const element = this._ref()?.nativeElement;
|
|
7311
|
+
this.enableAttributePassing(element, "db-stack");
|
|
7341
7312
|
}
|
|
7342
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
7343
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.
|
|
7313
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBStack, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7314
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.16", type: DBStack, isStandalone: true, selector: "db-stack", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, gap: { classPropertyName: "gap", publicName: "gap", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: false, transformFunction: null }, alignment: { classPropertyName: "alignment", publicName: "alignment", isSignal: true, isRequired: false, transformFunction: null }, justifyContent: { classPropertyName: "justifyContent", publicName: "justifyContent", isSignal: true, isRequired: false, transformFunction: null }, wrap: { classPropertyName: "wrap", publicName: "wrap", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<div
|
|
7344
7315
|
#_ref
|
|
7345
7316
|
[attr.id]="id() ?? propOverrides()?.id"
|
|
7346
7317
|
[class]="cls('db-stack', className())"
|
|
@@ -7349,12 +7320,12 @@ class DBStack {
|
|
|
7349
7320
|
[attr.data-direction]="direction()"
|
|
7350
7321
|
[attr.data-alignment]="alignment()"
|
|
7351
7322
|
[attr.data-justify-content]="justifyContent()"
|
|
7352
|
-
[attr.data-wrap]="getBooleanAsString(wrap())"
|
|
7323
|
+
[attr.data-wrap]="getBooleanAsString(wrap(), 'wrap')"
|
|
7353
7324
|
>
|
|
7354
7325
|
<ng-content></ng-content>
|
|
7355
7326
|
</div> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
7356
7327
|
}
|
|
7357
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
7328
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBStack, decorators: [{
|
|
7358
7329
|
type: Component,
|
|
7359
7330
|
args: [{ selector: "db-stack", standalone: true, imports: [CommonModule], template: `<div
|
|
7360
7331
|
#_ref
|
|
@@ -7365,7 +7336,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
7365
7336
|
[attr.data-direction]="direction()"
|
|
7366
7337
|
[attr.data-alignment]="alignment()"
|
|
7367
7338
|
[attr.data-justify-content]="justifyContent()"
|
|
7368
|
-
[attr.data-wrap]="getBooleanAsString(wrap())"
|
|
7339
|
+
[attr.data-wrap]="getBooleanAsString(wrap(), 'wrap')"
|
|
7369
7340
|
>
|
|
7370
7341
|
<ng-content></ng-content>
|
|
7371
7342
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
@@ -7376,7 +7347,7 @@ const StackDirectionList = ['row', 'column'];
|
|
|
7376
7347
|
const StackAlignmentList = ['stretch', 'start', 'end', 'center'];
|
|
7377
7348
|
const StackJustifyContentList = ['space-between', 'start', 'end', 'center'];
|
|
7378
7349
|
|
|
7379
|
-
const defaultProps$
|
|
7350
|
+
const defaultProps$d = {};
|
|
7380
7351
|
class DBSwitch {
|
|
7381
7352
|
hasValidState() {
|
|
7382
7353
|
return !!(this.validMessage() ?? this.validation() === "valid");
|
|
@@ -7502,9 +7473,9 @@ class DBSwitch {
|
|
|
7502
7473
|
if (this.id() ?? this.propOverrides()?.id) {
|
|
7503
7474
|
this.resetIds();
|
|
7504
7475
|
}
|
|
7505
|
-
},
|
|
7506
|
-
|
|
7507
|
-
|
|
7476
|
+
}, Number(VERSION.major) < 19
|
|
7477
|
+
? { allowSignalWrites: true }
|
|
7478
|
+
: undefined);
|
|
7508
7479
|
effect(() => {
|
|
7509
7480
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
7510
7481
|
this.validation();
|
|
@@ -7516,9 +7487,9 @@ class DBSwitch {
|
|
|
7516
7487
|
this.checked();
|
|
7517
7488
|
// ---
|
|
7518
7489
|
this.handleValidation();
|
|
7519
|
-
},
|
|
7520
|
-
|
|
7521
|
-
|
|
7490
|
+
}, Number(VERSION.major) < 19
|
|
7491
|
+
? { allowSignalWrites: true }
|
|
7492
|
+
: undefined);
|
|
7522
7493
|
effect(() => {
|
|
7523
7494
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
7524
7495
|
this._ref();
|
|
@@ -7527,9 +7498,9 @@ class DBSwitch {
|
|
|
7527
7498
|
this._invalidMessage.set(this.invalidMessage() ||
|
|
7528
7499
|
this._ref()?.nativeElement?.validationMessage ||
|
|
7529
7500
|
DEFAULT_INVALID_MESSAGE);
|
|
7530
|
-
},
|
|
7531
|
-
|
|
7532
|
-
|
|
7501
|
+
}, Number(VERSION.major) < 19
|
|
7502
|
+
? { allowSignalWrites: true }
|
|
7503
|
+
: undefined);
|
|
7533
7504
|
effect(() => {
|
|
7534
7505
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
7535
7506
|
this._ref();
|
|
@@ -7548,9 +7519,9 @@ class DBSwitch {
|
|
|
7548
7519
|
this.handleChange(event, true);
|
|
7549
7520
|
}, controller.signal);
|
|
7550
7521
|
}
|
|
7551
|
-
},
|
|
7552
|
-
|
|
7553
|
-
|
|
7522
|
+
}, Number(VERSION.major) < 19
|
|
7523
|
+
? { allowSignalWrites: true }
|
|
7524
|
+
: undefined);
|
|
7554
7525
|
}
|
|
7555
7526
|
}
|
|
7556
7527
|
/**
|
|
@@ -7605,9 +7576,9 @@ class DBSwitch {
|
|
|
7605
7576
|
this.disabled.set(disabled);
|
|
7606
7577
|
}
|
|
7607
7578
|
ngAfterViewInit() {
|
|
7579
|
+
const element = this._ref()?.nativeElement;
|
|
7580
|
+
this.enableAttributePassing(element, "db-switch");
|
|
7608
7581
|
if (typeof window !== "undefined") {
|
|
7609
|
-
const element = this._ref()?.nativeElement;
|
|
7610
|
-
this.enableAttributePassing(element, "db-switch");
|
|
7611
7582
|
this.resetIds();
|
|
7612
7583
|
this.handleValidation();
|
|
7613
7584
|
this._invalidMessage.set(this.invalidMessage() || DEFAULT_INVALID_MESSAGE);
|
|
@@ -7616,13 +7587,13 @@ class DBSwitch {
|
|
|
7616
7587
|
ngOnDestroy() {
|
|
7617
7588
|
this.abortController()?.abort();
|
|
7618
7589
|
}
|
|
7619
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
7620
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
7590
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBSwitch, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7591
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: DBSwitch, isStandalone: true, selector: "db-switch", inputs: { invalidMessage: { classPropertyName: "invalidMessage", publicName: "invalidMessage", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, validation: { classPropertyName: "validation", publicName: "validation", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null }, showMessage: { classPropertyName: "showMessage", publicName: "showMessage", isSignal: true, isRequired: false, transformFunction: null }, validMessage: { classPropertyName: "validMessage", publicName: "validMessage", isSignal: true, isRequired: false, transformFunction: null }, checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, visualAid: { classPropertyName: "visualAid", publicName: "visualAid", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, showLabel: { classPropertyName: "showLabel", publicName: "showLabel", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, showRequiredAsterisk: { classPropertyName: "showRequiredAsterisk", publicName: "showRequiredAsterisk", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, iconLeading: { classPropertyName: "iconLeading", publicName: "iconLeading", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, iconTrailing: { classPropertyName: "iconTrailing", publicName: "iconTrailing", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, messageIcon: { classPropertyName: "messageIcon", publicName: "messageIcon", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checked: "checkedChange", disabled: "disabledChange", change: "change", blur: "blur", focus: "focus" }, providers: [{
|
|
7621
7592
|
provide: NG_VALUE_ACCESSOR,
|
|
7622
7593
|
useExisting: DBSwitch,
|
|
7623
7594
|
multi: true
|
|
7624
7595
|
}], viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<div
|
|
7625
|
-
[attr.data-visual-aid]="getBooleanAsString(visualAid())"
|
|
7596
|
+
[attr.data-visual-aid]="getBooleanAsString(visualAid(), 'visualAid')"
|
|
7626
7597
|
[attr.data-size]="size()"
|
|
7627
7598
|
[attr.data-hide-label]="getHideProp(showLabel())"
|
|
7628
7599
|
[attr.data-variant]="variant()"
|
|
@@ -7680,14 +7651,14 @@ class DBSwitch {
|
|
|
7680
7651
|
>
|
|
7681
7652
|
</div> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBInfotext, selector: "db-infotext", inputs: ["id", "propOverrides", "className", "icon", "semantic", "size", "wrap", "showIcon", "text"] }] }); }
|
|
7682
7653
|
}
|
|
7683
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
7654
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBSwitch, decorators: [{
|
|
7684
7655
|
type: Component,
|
|
7685
7656
|
args: [{ providers: [{
|
|
7686
7657
|
provide: NG_VALUE_ACCESSOR,
|
|
7687
7658
|
useExisting: DBSwitch,
|
|
7688
7659
|
multi: true
|
|
7689
7660
|
}], selector: "db-switch", standalone: true, imports: [CommonModule, DBInfotext], template: `<div
|
|
7690
|
-
[attr.data-visual-aid]="getBooleanAsString(visualAid())"
|
|
7661
|
+
[attr.data-visual-aid]="getBooleanAsString(visualAid(), 'visualAid')"
|
|
7691
7662
|
[attr.data-size]="size()"
|
|
7692
7663
|
[attr.data-hide-label]="getHideProp(showLabel())"
|
|
7693
7664
|
[attr.data-variant]="variant()"
|
|
@@ -7746,7 +7717,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
7746
7717
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
7747
7718
|
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { invalidMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalidMessage", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], validation: [{ type: i0.Input, args: [{ isSignal: true, alias: "validation", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: false }] }], showMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "showMessage", required: false }] }], validMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "validMessage", required: false }] }], checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }, { type: i0.Output, args: ["checkedChange"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }, { type: i0.Output, args: ["disabledChange"] }], visualAid: [{ type: i0.Input, args: [{ isSignal: true, alias: "visualAid", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], showLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLabel", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], showRequiredAsterisk: [{ type: i0.Input, args: [{ isSignal: true, alias: "showRequiredAsterisk", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], iconLeading: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconLeading", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], iconTrailing: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconTrailing", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], messageIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "messageIcon", required: false }] }], change: [{ type: i0.Output, args: ["change"] }], blur: [{ type: i0.Output, args: ["blur"] }], focus: [{ type: i0.Output, args: ["focus"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
7748
7719
|
|
|
7749
|
-
const defaultProps$
|
|
7720
|
+
const defaultProps$c = {};
|
|
7750
7721
|
class DBTabItem {
|
|
7751
7722
|
setSelectedOnChange(event) {
|
|
7752
7723
|
event.stopPropagation();
|
|
@@ -7820,9 +7791,9 @@ class DBTabItem {
|
|
|
7820
7791
|
this._ref()?.nativeElement.click();
|
|
7821
7792
|
}
|
|
7822
7793
|
}
|
|
7823
|
-
},
|
|
7824
|
-
|
|
7825
|
-
|
|
7794
|
+
}, Number(VERSION.major) < 19
|
|
7795
|
+
? { allowSignalWrites: true }
|
|
7796
|
+
: undefined);
|
|
7826
7797
|
effect(() => {
|
|
7827
7798
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
7828
7799
|
this.name();
|
|
@@ -7830,9 +7801,9 @@ class DBTabItem {
|
|
|
7830
7801
|
if (this.name()) {
|
|
7831
7802
|
this._name.set(this.name());
|
|
7832
7803
|
}
|
|
7833
|
-
},
|
|
7834
|
-
|
|
7835
|
-
|
|
7804
|
+
}, Number(VERSION.major) < 19
|
|
7805
|
+
? { allowSignalWrites: true }
|
|
7806
|
+
: undefined);
|
|
7836
7807
|
}
|
|
7837
7808
|
}
|
|
7838
7809
|
/**
|
|
@@ -7887,9 +7858,9 @@ class DBTabItem {
|
|
|
7887
7858
|
this.disabled.set(disabled);
|
|
7888
7859
|
}
|
|
7889
7860
|
ngAfterViewInit() {
|
|
7861
|
+
const element = this._ref()?.nativeElement;
|
|
7862
|
+
this.enableAttributePassing(element, "db-tab-item");
|
|
7890
7863
|
if (typeof window !== "undefined") {
|
|
7891
|
-
const element = this._ref()?.nativeElement;
|
|
7892
|
-
this.enableAttributePassing(element, "db-tab-item");
|
|
7893
7864
|
this.boundSetSelectedOnChange.set(this.setSelectedOnChange.bind(this));
|
|
7894
7865
|
this.initialized.set(true);
|
|
7895
7866
|
}
|
|
@@ -7904,8 +7875,8 @@ class DBTabItem {
|
|
|
7904
7875
|
this._listenerAdded.set(false);
|
|
7905
7876
|
}
|
|
7906
7877
|
}
|
|
7907
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
7908
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
7878
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTabItem, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7879
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: DBTabItem, isStandalone: true, selector: "db-tab-item", inputs: { active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, iconLeading: { classPropertyName: "iconLeading", publicName: "iconLeading", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, iconTrailing: { classPropertyName: "iconTrailing", publicName: "iconTrailing", isSignal: true, isRequired: false, transformFunction: null }, showIconLeading: { classPropertyName: "showIconLeading", publicName: "showIconLeading", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, showIconTrailing: { classPropertyName: "showIconTrailing", publicName: "showIconTrailing", isSignal: true, isRequired: false, transformFunction: null }, noText: { classPropertyName: "noText", publicName: "noText", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { disabled: "disabledChange", checked: "checkedChange", change: "change" }, providers: [{
|
|
7909
7880
|
provide: NG_VALUE_ACCESSOR,
|
|
7910
7881
|
useExisting: DBTabItem,
|
|
7911
7882
|
multi: true
|
|
@@ -7914,9 +7885,9 @@ class DBTabItem {
|
|
|
7914
7885
|
[attr.for]="id() ?? propOverrides()?.id"
|
|
7915
7886
|
[attr.data-icon]="iconLeading() ?? icon()"
|
|
7916
7887
|
[attr.data-icon-trailing]="iconTrailing()"
|
|
7917
|
-
[attr.data-show-icon]="getBooleanAsString(showIconLeading()
|
|
7918
|
-
[attr.data-show-icon-trailing]="getBooleanAsString(showIconTrailing())"
|
|
7919
|
-
[attr.data-no-text]="getBooleanAsString(noText())"
|
|
7888
|
+
[attr.data-show-icon]="getBooleanAsString(showIconLeading(), 'showIconLeading') || getBooleanAsString(showIcon(), 'showIcon')"
|
|
7889
|
+
[attr.data-show-icon-trailing]="getBooleanAsString(showIconTrailing(), 'showIconTrailing')"
|
|
7890
|
+
[attr.data-no-text]="getBooleanAsString(noText(), 'noText')"
|
|
7920
7891
|
><input
|
|
7921
7892
|
type="radio"
|
|
7922
7893
|
role="tab"
|
|
@@ -7931,7 +7902,7 @@ class DBTabItem {
|
|
|
7931
7902
|
></label>
|
|
7932
7903
|
</li> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
7933
7904
|
}
|
|
7934
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
7905
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTabItem, decorators: [{
|
|
7935
7906
|
type: Component,
|
|
7936
7907
|
args: [{ providers: [{
|
|
7937
7908
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -7942,9 +7913,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
7942
7913
|
[attr.for]="id() ?? propOverrides()?.id"
|
|
7943
7914
|
[attr.data-icon]="iconLeading() ?? icon()"
|
|
7944
7915
|
[attr.data-icon-trailing]="iconTrailing()"
|
|
7945
|
-
[attr.data-show-icon]="getBooleanAsString(showIconLeading()
|
|
7946
|
-
[attr.data-show-icon-trailing]="getBooleanAsString(showIconTrailing())"
|
|
7947
|
-
[attr.data-no-text]="getBooleanAsString(noText())"
|
|
7916
|
+
[attr.data-show-icon]="getBooleanAsString(showIconLeading(), 'showIconLeading') || getBooleanAsString(showIcon(), 'showIcon')"
|
|
7917
|
+
[attr.data-show-icon-trailing]="getBooleanAsString(showIconTrailing(), 'showIconTrailing')"
|
|
7918
|
+
[attr.data-no-text]="getBooleanAsString(noText(), 'noText')"
|
|
7948
7919
|
><input
|
|
7949
7920
|
type="radio"
|
|
7950
7921
|
role="tab"
|
|
@@ -7960,7 +7931,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
7960
7931
|
</li> `, styles: [":host{display:contents}\n"] }]
|
|
7961
7932
|
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { active: [{ type: i0.Input, args: [{ isSignal: true, alias: "active", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], iconLeading: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconLeading", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], iconTrailing: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconTrailing", required: false }] }], showIconLeading: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIconLeading", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], showIconTrailing: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIconTrailing", required: false }] }], noText: [{ type: i0.Input, args: [{ isSignal: true, alias: "noText", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }, { type: i0.Output, args: ["disabledChange"] }], checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }, { type: i0.Output, args: ["checkedChange"] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], change: [{ type: i0.Output, args: ["change"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
7962
7933
|
|
|
7963
|
-
const defaultProps$
|
|
7934
|
+
const defaultProps$b = {};
|
|
7964
7935
|
class DBTabList {
|
|
7965
7936
|
constructor() {
|
|
7966
7937
|
this.cls = cls;
|
|
@@ -8006,13 +7977,11 @@ class DBTabList {
|
|
|
8006
7977
|
}
|
|
8007
7978
|
}
|
|
8008
7979
|
ngAfterViewInit() {
|
|
8009
|
-
|
|
8010
|
-
|
|
8011
|
-
this.enableAttributePassing(element, "db-tab-list");
|
|
8012
|
-
}
|
|
7980
|
+
const element = this._ref()?.nativeElement;
|
|
7981
|
+
this.enableAttributePassing(element, "db-tab-list");
|
|
8013
7982
|
}
|
|
8014
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
8015
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.
|
|
7983
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTabList, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7984
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.16", type: DBTabList, isStandalone: true, selector: "db-tab-list", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<div
|
|
8016
7985
|
#_ref
|
|
8017
7986
|
[attr.id]="id() ?? propOverrides()?.id"
|
|
8018
7987
|
[class]="cls('db-tab-list', className())"
|
|
@@ -8022,7 +7991,7 @@ class DBTabList {
|
|
|
8022
7991
|
</ul>
|
|
8023
7992
|
</div> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
8024
7993
|
}
|
|
8025
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
7994
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTabList, decorators: [{
|
|
8026
7995
|
type: Component,
|
|
8027
7996
|
args: [{ selector: "db-tab-list", standalone: true, imports: [CommonModule], template: `<div
|
|
8028
7997
|
#_ref
|
|
@@ -8035,7 +8004,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
8035
8004
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
8036
8005
|
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
8037
8006
|
|
|
8038
|
-
const defaultProps$
|
|
8007
|
+
const defaultProps$a = {};
|
|
8039
8008
|
class DBTabPanel {
|
|
8040
8009
|
constructor() {
|
|
8041
8010
|
this.cls = cls;
|
|
@@ -8082,13 +8051,11 @@ class DBTabPanel {
|
|
|
8082
8051
|
}
|
|
8083
8052
|
}
|
|
8084
8053
|
ngAfterViewInit() {
|
|
8085
|
-
|
|
8086
|
-
|
|
8087
|
-
this.enableAttributePassing(element, "db-tab-panel");
|
|
8088
|
-
}
|
|
8054
|
+
const element = this._ref()?.nativeElement;
|
|
8055
|
+
this.enableAttributePassing(element, "db-tab-panel");
|
|
8089
8056
|
}
|
|
8090
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
8091
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
8057
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTabPanel, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8058
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: DBTabPanel, isStandalone: true, selector: "db-tab-panel", inputs: { className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<section
|
|
8092
8059
|
role="tabpanel"
|
|
8093
8060
|
#_ref
|
|
8094
8061
|
[class]="cls('db-tab-panel', className())"
|
|
@@ -8097,7 +8064,7 @@ class DBTabPanel {
|
|
|
8097
8064
|
@if(content()){{{content()}}} <ng-content></ng-content>
|
|
8098
8065
|
</section> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
8099
8066
|
}
|
|
8100
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
8067
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTabPanel, decorators: [{
|
|
8101
8068
|
type: Component,
|
|
8102
8069
|
args: [{ selector: "db-tab-panel", standalone: true, imports: [CommonModule], template: `<section
|
|
8103
8070
|
role="tabpanel"
|
|
@@ -8109,6 +8076,988 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
8109
8076
|
</section> `, styles: [":host{display:contents}\n"] }]
|
|
8110
8077
|
}], ctorParameters: () => [], propDecorators: { className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], content: [{ type: i0.Input, args: [{ isSignal: true, alias: "content", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
8111
8078
|
|
|
8079
|
+
const defaultProps$9 = {};
|
|
8080
|
+
class DBTableDataCell {
|
|
8081
|
+
constructor() {
|
|
8082
|
+
this.cls = cls;
|
|
8083
|
+
this.getNumber = getNumber;
|
|
8084
|
+
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
|
|
8085
|
+
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : /* istanbul ignore next */ []));
|
|
8086
|
+
this.horizontalAlignment = input(...(ngDevMode ? [undefined, { debugName: "horizontalAlignment" }] : /* istanbul ignore next */ []));
|
|
8087
|
+
this.verticalAlignment = input(...(ngDevMode ? [undefined, { debugName: "verticalAlignment" }] : /* istanbul ignore next */ []));
|
|
8088
|
+
this.colSpan = input(...(ngDevMode ? [undefined, { debugName: "colSpan" }] : /* istanbul ignore next */ []));
|
|
8089
|
+
this.colspan = input(...(ngDevMode ? [undefined, { debugName: "colspan" }] : /* istanbul ignore next */ []));
|
|
8090
|
+
this.rowSpan = input(...(ngDevMode ? [undefined, { debugName: "rowSpan" }] : /* istanbul ignore next */ []));
|
|
8091
|
+
this.rowspan = input(...(ngDevMode ? [undefined, { debugName: "rowspan" }] : /* istanbul ignore next */ []));
|
|
8092
|
+
this.headers = input(...(ngDevMode ? [undefined, { debugName: "headers" }] : /* istanbul ignore next */ []));
|
|
8093
|
+
this._ref = viewChild("_ref", ...(ngDevMode ? [{ debugName: "_ref" }] : /* istanbul ignore next */ []));
|
|
8094
|
+
}
|
|
8095
|
+
/**
|
|
8096
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
8097
|
+
* @param element the ref for the component
|
|
8098
|
+
* @param customElementSelector the custom element like `my-component`
|
|
8099
|
+
*/
|
|
8100
|
+
enableAttributePassing(element, customElementSelector) {
|
|
8101
|
+
const parent = element?.closest(customElementSelector);
|
|
8102
|
+
if (element && parent) {
|
|
8103
|
+
const attributes = parent.attributes;
|
|
8104
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
8105
|
+
const attr = attributes.item(i);
|
|
8106
|
+
if (attr && attr.name !== 'data-density' &&
|
|
8107
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
8108
|
+
element.setAttribute(attr.name, attr.value);
|
|
8109
|
+
parent.removeAttribute(attr.name);
|
|
8110
|
+
}
|
|
8111
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
8112
|
+
element.setAttribute(attr.name, attr.value);
|
|
8113
|
+
parent.removeAttribute(attr.name);
|
|
8114
|
+
}
|
|
8115
|
+
else if (attr && attr.name === "class") {
|
|
8116
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
8117
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
8118
|
+
const currentClass = element.getAttribute("class");
|
|
8119
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
8120
|
+
if (isWebComponent) {
|
|
8121
|
+
// Stencil is using this class for lazy loading component
|
|
8122
|
+
parent.setAttribute("class", "hydrated");
|
|
8123
|
+
}
|
|
8124
|
+
else {
|
|
8125
|
+
parent.removeAttribute(attr.name);
|
|
8126
|
+
}
|
|
8127
|
+
}
|
|
8128
|
+
}
|
|
8129
|
+
}
|
|
8130
|
+
}
|
|
8131
|
+
ngAfterViewInit() {
|
|
8132
|
+
const element = this._ref()?.nativeElement;
|
|
8133
|
+
this.enableAttributePassing(element, "db-table-data-cell");
|
|
8134
|
+
}
|
|
8135
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTableDataCell, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8136
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.16", type: DBTableDataCell, isStandalone: true, selector: "db-table-data-cell", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, horizontalAlignment: { classPropertyName: "horizontalAlignment", publicName: "horizontalAlignment", isSignal: true, isRequired: false, transformFunction: null }, verticalAlignment: { classPropertyName: "verticalAlignment", publicName: "verticalAlignment", isSignal: true, isRequired: false, transformFunction: null }, colSpan: { classPropertyName: "colSpan", publicName: "colSpan", isSignal: true, isRequired: false, transformFunction: null }, colspan: { classPropertyName: "colspan", publicName: "colspan", isSignal: true, isRequired: false, transformFunction: null }, rowSpan: { classPropertyName: "rowSpan", publicName: "rowSpan", isSignal: true, isRequired: false, transformFunction: null }, rowspan: { classPropertyName: "rowspan", publicName: "rowspan", isSignal: true, isRequired: false, transformFunction: null }, headers: { classPropertyName: "headers", publicName: "headers", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<td
|
|
8137
|
+
#_ref
|
|
8138
|
+
[attr.id]="id()"
|
|
8139
|
+
[class]="cls('db-table-data-cell', className())"
|
|
8140
|
+
[attr.data-horizontal-alignment]="horizontalAlignment()"
|
|
8141
|
+
[attr.data-vertical-alignment]="verticalAlignment()"
|
|
8142
|
+
[attr.colSpan]="getNumber(colSpan(), colspan())"
|
|
8143
|
+
[attr.rowSpan]="getNumber(rowSpan(), rowspan())"
|
|
8144
|
+
[attr.headers]="headers()"
|
|
8145
|
+
>
|
|
8146
|
+
<ng-content></ng-content>
|
|
8147
|
+
</td> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
8148
|
+
}
|
|
8149
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTableDataCell, decorators: [{
|
|
8150
|
+
type: Component,
|
|
8151
|
+
args: [{ selector: "db-table-data-cell", standalone: true, imports: [CommonModule], template: `<td
|
|
8152
|
+
#_ref
|
|
8153
|
+
[attr.id]="id()"
|
|
8154
|
+
[class]="cls('db-table-data-cell', className())"
|
|
8155
|
+
[attr.data-horizontal-alignment]="horizontalAlignment()"
|
|
8156
|
+
[attr.data-vertical-alignment]="verticalAlignment()"
|
|
8157
|
+
[attr.colSpan]="getNumber(colSpan(), colspan())"
|
|
8158
|
+
[attr.rowSpan]="getNumber(rowSpan(), rowspan())"
|
|
8159
|
+
[attr.headers]="headers()"
|
|
8160
|
+
>
|
|
8161
|
+
<ng-content></ng-content>
|
|
8162
|
+
</td> `, styles: [":host{display:contents}\n"] }]
|
|
8163
|
+
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], horizontalAlignment: [{ type: i0.Input, args: [{ isSignal: true, alias: "horizontalAlignment", required: false }] }], verticalAlignment: [{ type: i0.Input, args: [{ isSignal: true, alias: "verticalAlignment", required: false }] }], colSpan: [{ type: i0.Input, args: [{ isSignal: true, alias: "colSpan", required: false }] }], colspan: [{ type: i0.Input, args: [{ isSignal: true, alias: "colspan", required: false }] }], rowSpan: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowSpan", required: false }] }], rowspan: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowspan", required: false }] }], headers: [{ type: i0.Input, args: [{ isSignal: true, alias: "headers", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
8164
|
+
|
|
8165
|
+
const defaultProps$8 = {};
|
|
8166
|
+
class DBTableHeaderCell {
|
|
8167
|
+
constructor() {
|
|
8168
|
+
this.cls = cls;
|
|
8169
|
+
this.getBooleanAsString = getBooleanAsString;
|
|
8170
|
+
this.getNumber = getNumber;
|
|
8171
|
+
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
|
|
8172
|
+
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : /* istanbul ignore next */ []));
|
|
8173
|
+
this.horizontalAlignment = input(...(ngDevMode ? [undefined, { debugName: "horizontalAlignment" }] : /* istanbul ignore next */ []));
|
|
8174
|
+
this.verticalAlignment = input(...(ngDevMode ? [undefined, { debugName: "verticalAlignment" }] : /* istanbul ignore next */ []));
|
|
8175
|
+
this.noText = input(...(ngDevMode ? [undefined, { debugName: "noText" }] : /* istanbul ignore next */ []));
|
|
8176
|
+
this.scope = input(...(ngDevMode ? [undefined, { debugName: "scope" }] : /* istanbul ignore next */ []));
|
|
8177
|
+
this.colSpan = input(...(ngDevMode ? [undefined, { debugName: "colSpan" }] : /* istanbul ignore next */ []));
|
|
8178
|
+
this.colspan = input(...(ngDevMode ? [undefined, { debugName: "colspan" }] : /* istanbul ignore next */ []));
|
|
8179
|
+
this.rowSpan = input(...(ngDevMode ? [undefined, { debugName: "rowSpan" }] : /* istanbul ignore next */ []));
|
|
8180
|
+
this.rowspan = input(...(ngDevMode ? [undefined, { debugName: "rowspan" }] : /* istanbul ignore next */ []));
|
|
8181
|
+
this.headers = input(...(ngDevMode ? [undefined, { debugName: "headers" }] : /* istanbul ignore next */ []));
|
|
8182
|
+
this.abbr = input(...(ngDevMode ? [undefined, { debugName: "abbr" }] : /* istanbul ignore next */ []));
|
|
8183
|
+
this._ref = viewChild("_ref", ...(ngDevMode ? [{ debugName: "_ref" }] : /* istanbul ignore next */ []));
|
|
8184
|
+
}
|
|
8185
|
+
/**
|
|
8186
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
8187
|
+
* @param element the ref for the component
|
|
8188
|
+
* @param customElementSelector the custom element like `my-component`
|
|
8189
|
+
*/
|
|
8190
|
+
enableAttributePassing(element, customElementSelector) {
|
|
8191
|
+
const parent = element?.closest(customElementSelector);
|
|
8192
|
+
if (element && parent) {
|
|
8193
|
+
const attributes = parent.attributes;
|
|
8194
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
8195
|
+
const attr = attributes.item(i);
|
|
8196
|
+
if (attr && attr.name !== 'data-density' &&
|
|
8197
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
8198
|
+
element.setAttribute(attr.name, attr.value);
|
|
8199
|
+
parent.removeAttribute(attr.name);
|
|
8200
|
+
}
|
|
8201
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
8202
|
+
element.setAttribute(attr.name, attr.value);
|
|
8203
|
+
parent.removeAttribute(attr.name);
|
|
8204
|
+
}
|
|
8205
|
+
else if (attr && attr.name === "class") {
|
|
8206
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
8207
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
8208
|
+
const currentClass = element.getAttribute("class");
|
|
8209
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
8210
|
+
if (isWebComponent) {
|
|
8211
|
+
// Stencil is using this class for lazy loading component
|
|
8212
|
+
parent.setAttribute("class", "hydrated");
|
|
8213
|
+
}
|
|
8214
|
+
else {
|
|
8215
|
+
parent.removeAttribute(attr.name);
|
|
8216
|
+
}
|
|
8217
|
+
}
|
|
8218
|
+
}
|
|
8219
|
+
}
|
|
8220
|
+
}
|
|
8221
|
+
ngAfterViewInit() {
|
|
8222
|
+
const element = this._ref()?.nativeElement;
|
|
8223
|
+
this.enableAttributePassing(element, "db-table-header-cell");
|
|
8224
|
+
}
|
|
8225
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTableHeaderCell, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8226
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.16", type: DBTableHeaderCell, isStandalone: true, selector: "db-table-header-cell", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, horizontalAlignment: { classPropertyName: "horizontalAlignment", publicName: "horizontalAlignment", isSignal: true, isRequired: false, transformFunction: null }, verticalAlignment: { classPropertyName: "verticalAlignment", publicName: "verticalAlignment", isSignal: true, isRequired: false, transformFunction: null }, noText: { classPropertyName: "noText", publicName: "noText", isSignal: true, isRequired: false, transformFunction: null }, scope: { classPropertyName: "scope", publicName: "scope", isSignal: true, isRequired: false, transformFunction: null }, colSpan: { classPropertyName: "colSpan", publicName: "colSpan", isSignal: true, isRequired: false, transformFunction: null }, colspan: { classPropertyName: "colspan", publicName: "colspan", isSignal: true, isRequired: false, transformFunction: null }, rowSpan: { classPropertyName: "rowSpan", publicName: "rowSpan", isSignal: true, isRequired: false, transformFunction: null }, rowspan: { classPropertyName: "rowspan", publicName: "rowspan", isSignal: true, isRequired: false, transformFunction: null }, headers: { classPropertyName: "headers", publicName: "headers", isSignal: true, isRequired: false, transformFunction: null }, abbr: { classPropertyName: "abbr", publicName: "abbr", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<th
|
|
8227
|
+
#_ref
|
|
8228
|
+
[attr.id]="id()"
|
|
8229
|
+
[class]="cls('db-table-header-cell', className())"
|
|
8230
|
+
[attr.data-horizontal-alignment]="horizontalAlignment()"
|
|
8231
|
+
[attr.data-vertical-alignment]="verticalAlignment()"
|
|
8232
|
+
[attr.data-no-text]="getBooleanAsString(noText())"
|
|
8233
|
+
[attr.scope]="scope()"
|
|
8234
|
+
[attr.colSpan]="getNumber(colSpan(), colspan())"
|
|
8235
|
+
[attr.rowSpan]="getNumber(rowSpan(), rowspan())"
|
|
8236
|
+
[attr.headers]="headers()"
|
|
8237
|
+
[attr.abbr]="abbr()"
|
|
8238
|
+
>
|
|
8239
|
+
<ng-content></ng-content>
|
|
8240
|
+
</th> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
8241
|
+
}
|
|
8242
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTableHeaderCell, decorators: [{
|
|
8243
|
+
type: Component,
|
|
8244
|
+
args: [{ selector: "db-table-header-cell", standalone: true, imports: [CommonModule], template: `<th
|
|
8245
|
+
#_ref
|
|
8246
|
+
[attr.id]="id()"
|
|
8247
|
+
[class]="cls('db-table-header-cell', className())"
|
|
8248
|
+
[attr.data-horizontal-alignment]="horizontalAlignment()"
|
|
8249
|
+
[attr.data-vertical-alignment]="verticalAlignment()"
|
|
8250
|
+
[attr.data-no-text]="getBooleanAsString(noText())"
|
|
8251
|
+
[attr.scope]="scope()"
|
|
8252
|
+
[attr.colSpan]="getNumber(colSpan(), colspan())"
|
|
8253
|
+
[attr.rowSpan]="getNumber(rowSpan(), rowspan())"
|
|
8254
|
+
[attr.headers]="headers()"
|
|
8255
|
+
[attr.abbr]="abbr()"
|
|
8256
|
+
>
|
|
8257
|
+
<ng-content></ng-content>
|
|
8258
|
+
</th> `, styles: [":host{display:contents}\n"] }]
|
|
8259
|
+
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], horizontalAlignment: [{ type: i0.Input, args: [{ isSignal: true, alias: "horizontalAlignment", required: false }] }], verticalAlignment: [{ type: i0.Input, args: [{ isSignal: true, alias: "verticalAlignment", required: false }] }], noText: [{ type: i0.Input, args: [{ isSignal: true, alias: "noText", required: false }] }], scope: [{ type: i0.Input, args: [{ isSignal: true, alias: "scope", required: false }] }], colSpan: [{ type: i0.Input, args: [{ isSignal: true, alias: "colSpan", required: false }] }], colspan: [{ type: i0.Input, args: [{ isSignal: true, alias: "colspan", required: false }] }], rowSpan: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowSpan", required: false }] }], rowspan: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowspan", required: false }] }], headers: [{ type: i0.Input, args: [{ isSignal: true, alias: "headers", required: false }] }], abbr: [{ type: i0.Input, args: [{ isSignal: true, alias: "abbr", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
8260
|
+
|
|
8261
|
+
const defaultProps$7 = {};
|
|
8262
|
+
class DBTableRow {
|
|
8263
|
+
getHeaderCell(cell) {
|
|
8264
|
+
if (cell.headerCell) {
|
|
8265
|
+
return cell;
|
|
8266
|
+
}
|
|
8267
|
+
return undefined;
|
|
8268
|
+
}
|
|
8269
|
+
constructor() {
|
|
8270
|
+
this.cls = cls;
|
|
8271
|
+
this.getBooleanAsString = getBooleanAsString;
|
|
8272
|
+
this.uuid = uuid;
|
|
8273
|
+
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
|
|
8274
|
+
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : /* istanbul ignore next */ []));
|
|
8275
|
+
this.interactive = input(...(ngDevMode ? [undefined, { debugName: "interactive" }] : /* istanbul ignore next */ []));
|
|
8276
|
+
this.subHeaderEmphasis = input(...(ngDevMode ? [undefined, { debugName: "subHeaderEmphasis" }] : /* istanbul ignore next */ []));
|
|
8277
|
+
this.cells = input(...(ngDevMode ? [undefined, { debugName: "cells" }] : /* istanbul ignore next */ []));
|
|
8278
|
+
this._ref = viewChild("_ref", ...(ngDevMode ? [{ debugName: "_ref" }] : /* istanbul ignore next */ []));
|
|
8279
|
+
}
|
|
8280
|
+
/**
|
|
8281
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
8282
|
+
* @param element the ref for the component
|
|
8283
|
+
* @param customElementSelector the custom element like `my-component`
|
|
8284
|
+
*/
|
|
8285
|
+
enableAttributePassing(element, customElementSelector) {
|
|
8286
|
+
const parent = element?.closest(customElementSelector);
|
|
8287
|
+
if (element && parent) {
|
|
8288
|
+
const attributes = parent.attributes;
|
|
8289
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
8290
|
+
const attr = attributes.item(i);
|
|
8291
|
+
if (attr && attr.name !== 'data-density' &&
|
|
8292
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
8293
|
+
element.setAttribute(attr.name, attr.value);
|
|
8294
|
+
parent.removeAttribute(attr.name);
|
|
8295
|
+
}
|
|
8296
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
8297
|
+
element.setAttribute(attr.name, attr.value);
|
|
8298
|
+
parent.removeAttribute(attr.name);
|
|
8299
|
+
}
|
|
8300
|
+
else if (attr && attr.name === "class") {
|
|
8301
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
8302
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
8303
|
+
const currentClass = element.getAttribute("class");
|
|
8304
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
8305
|
+
if (isWebComponent) {
|
|
8306
|
+
// Stencil is using this class for lazy loading component
|
|
8307
|
+
parent.setAttribute("class", "hydrated");
|
|
8308
|
+
}
|
|
8309
|
+
else {
|
|
8310
|
+
parent.removeAttribute(attr.name);
|
|
8311
|
+
}
|
|
8312
|
+
}
|
|
8313
|
+
}
|
|
8314
|
+
}
|
|
8315
|
+
}
|
|
8316
|
+
ngAfterViewInit() {
|
|
8317
|
+
const element = this._ref()?.nativeElement;
|
|
8318
|
+
this.enableAttributePassing(element, "db-table-row");
|
|
8319
|
+
}
|
|
8320
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTableRow, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8321
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: DBTableRow, isStandalone: true, selector: "db-table-row", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, interactive: { classPropertyName: "interactive", publicName: "interactive", isSignal: true, isRequired: false, transformFunction: null }, subHeaderEmphasis: { classPropertyName: "subHeaderEmphasis", publicName: "subHeaderEmphasis", isSignal: true, isRequired: false, transformFunction: null }, cells: { classPropertyName: "cells", publicName: "cells", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<tr
|
|
8322
|
+
#_ref
|
|
8323
|
+
[attr.id]="id()"
|
|
8324
|
+
[class]="cls('db-table-row', className())"
|
|
8325
|
+
[attr.data-interactive]="getBooleanAsString(interactive())"
|
|
8326
|
+
[attr.data-sub-header-emphasis]="subHeaderEmphasis()"
|
|
8327
|
+
>
|
|
8328
|
+
@if(cells()){ @for (cell of cells();track index;let index = $index) {
|
|
8329
|
+
@if(cell.headerCell){
|
|
8330
|
+
<db-table-header-cell
|
|
8331
|
+
[id]="cell.id"
|
|
8332
|
+
[abbr]="getHeaderCell(cell)?.abbr"
|
|
8333
|
+
[scope]="getHeaderCell(cell)?.scope"
|
|
8334
|
+
[noText]="getHeaderCell(cell)?.noText"
|
|
8335
|
+
[className]="cell.className ?? cell.class"
|
|
8336
|
+
[horizontalAlignment]="cell.horizontalAlignment"
|
|
8337
|
+
[verticalAlignment]="cell.verticalAlignment"
|
|
8338
|
+
[headers]="cell.headers"
|
|
8339
|
+
[colSpan]="cell.colSpan"
|
|
8340
|
+
[colspan]="cell.colspan"
|
|
8341
|
+
[rowSpan]="cell.rowSpan"
|
|
8342
|
+
[rowspan]="cell.rowspan"
|
|
8343
|
+
>@if(cell.link){
|
|
8344
|
+
<db-link
|
|
8345
|
+
[content]="cell.link?.content"
|
|
8346
|
+
[size]="cell.link?.size"
|
|
8347
|
+
[variant]="cell.link?.variant"
|
|
8348
|
+
[className]="cell.link?.className ?? cell.link?.class"
|
|
8349
|
+
[id]="cell.link?.id"
|
|
8350
|
+
[autofocus]="cell.link?.autofocus"
|
|
8351
|
+
[disabled]="cell.link?.disabled"
|
|
8352
|
+
[href]="cell.link?.href"
|
|
8353
|
+
[hreflang]="cell.link?.hreflang"
|
|
8354
|
+
[target]="cell.link?.target"
|
|
8355
|
+
[rel]="cell.link?.rel"
|
|
8356
|
+
[referrerPolicy]="cell.link?.referrerPolicy"
|
|
8357
|
+
[role]="cell.link?.role"
|
|
8358
|
+
[showIcon]="cell.link?.showIcon"
|
|
8359
|
+
[text]="cell.link?.text"
|
|
8360
|
+
[wrap]="cell.link?.wrap"
|
|
8361
|
+
>{{cell.link?.children}}</db-link
|
|
8362
|
+
>
|
|
8363
|
+
}@else{{{cell.content}}}</db-table-header-cell
|
|
8364
|
+
>
|
|
8365
|
+
}@else{
|
|
8366
|
+
<db-table-data-cell
|
|
8367
|
+
[id]="cell.id"
|
|
8368
|
+
[className]="cell.className ?? cell.class"
|
|
8369
|
+
[horizontalAlignment]="cell.horizontalAlignment"
|
|
8370
|
+
[verticalAlignment]="cell.verticalAlignment"
|
|
8371
|
+
[headers]="cell.headers"
|
|
8372
|
+
[colSpan]="cell.colSpan"
|
|
8373
|
+
[colspan]="cell.colspan"
|
|
8374
|
+
[rowSpan]="cell.rowSpan"
|
|
8375
|
+
[rowspan]="cell.rowspan"
|
|
8376
|
+
>@if(cell.link){
|
|
8377
|
+
<db-link
|
|
8378
|
+
[content]="cell.link?.content"
|
|
8379
|
+
[size]="cell.link?.size"
|
|
8380
|
+
[variant]="cell.link?.variant"
|
|
8381
|
+
[className]="cell.link?.className ?? cell.link?.class"
|
|
8382
|
+
[id]="cell.link?.id"
|
|
8383
|
+
[autofocus]="cell.link?.autofocus"
|
|
8384
|
+
[disabled]="cell.link?.disabled"
|
|
8385
|
+
[href]="cell.link?.href"
|
|
8386
|
+
[hreflang]="cell.link?.hreflang"
|
|
8387
|
+
[target]="cell.link?.target"
|
|
8388
|
+
[rel]="cell.link?.rel"
|
|
8389
|
+
[referrerPolicy]="cell.link?.referrerPolicy"
|
|
8390
|
+
[role]="cell.link?.role"
|
|
8391
|
+
[showIcon]="cell.link?.showIcon"
|
|
8392
|
+
[text]="cell.link?.text"
|
|
8393
|
+
[wrap]="cell.link?.wrap"
|
|
8394
|
+
>{{cell.link?.children}}</db-link
|
|
8395
|
+
>
|
|
8396
|
+
}@else{{{cell.content}}}</db-table-data-cell
|
|
8397
|
+
>
|
|
8398
|
+
} } }@else{
|
|
8399
|
+
<ng-content></ng-content>
|
|
8400
|
+
}
|
|
8401
|
+
</tr> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBTableDataCell, selector: "db-table-data-cell", inputs: ["id", "className", "horizontalAlignment", "verticalAlignment", "colSpan", "colspan", "rowSpan", "rowspan", "headers"] }, { kind: "component", type: DBLink, selector: "db-link", inputs: ["id", "propOverrides", "className", "href", "target", "rel", "role", "referrerpolicy", "referrerPolicy", "hreflang", "disabled", "size", "showIcon", "variant", "content", "wrap", "text"] }, { kind: "component", type: DBTableHeaderCell, selector: "db-table-header-cell", inputs: ["id", "className", "horizontalAlignment", "verticalAlignment", "noText", "scope", "colSpan", "colspan", "rowSpan", "rowspan", "headers", "abbr"] }] }); }
|
|
8402
|
+
}
|
|
8403
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTableRow, decorators: [{
|
|
8404
|
+
type: Component,
|
|
8405
|
+
args: [{ selector: "db-table-row", standalone: true, imports: [CommonModule, DBTableDataCell, DBLink, DBTableHeaderCell], template: `<tr
|
|
8406
|
+
#_ref
|
|
8407
|
+
[attr.id]="id()"
|
|
8408
|
+
[class]="cls('db-table-row', className())"
|
|
8409
|
+
[attr.data-interactive]="getBooleanAsString(interactive())"
|
|
8410
|
+
[attr.data-sub-header-emphasis]="subHeaderEmphasis()"
|
|
8411
|
+
>
|
|
8412
|
+
@if(cells()){ @for (cell of cells();track index;let index = $index) {
|
|
8413
|
+
@if(cell.headerCell){
|
|
8414
|
+
<db-table-header-cell
|
|
8415
|
+
[id]="cell.id"
|
|
8416
|
+
[abbr]="getHeaderCell(cell)?.abbr"
|
|
8417
|
+
[scope]="getHeaderCell(cell)?.scope"
|
|
8418
|
+
[noText]="getHeaderCell(cell)?.noText"
|
|
8419
|
+
[className]="cell.className ?? cell.class"
|
|
8420
|
+
[horizontalAlignment]="cell.horizontalAlignment"
|
|
8421
|
+
[verticalAlignment]="cell.verticalAlignment"
|
|
8422
|
+
[headers]="cell.headers"
|
|
8423
|
+
[colSpan]="cell.colSpan"
|
|
8424
|
+
[colspan]="cell.colspan"
|
|
8425
|
+
[rowSpan]="cell.rowSpan"
|
|
8426
|
+
[rowspan]="cell.rowspan"
|
|
8427
|
+
>@if(cell.link){
|
|
8428
|
+
<db-link
|
|
8429
|
+
[content]="cell.link?.content"
|
|
8430
|
+
[size]="cell.link?.size"
|
|
8431
|
+
[variant]="cell.link?.variant"
|
|
8432
|
+
[className]="cell.link?.className ?? cell.link?.class"
|
|
8433
|
+
[id]="cell.link?.id"
|
|
8434
|
+
[autofocus]="cell.link?.autofocus"
|
|
8435
|
+
[disabled]="cell.link?.disabled"
|
|
8436
|
+
[href]="cell.link?.href"
|
|
8437
|
+
[hreflang]="cell.link?.hreflang"
|
|
8438
|
+
[target]="cell.link?.target"
|
|
8439
|
+
[rel]="cell.link?.rel"
|
|
8440
|
+
[referrerPolicy]="cell.link?.referrerPolicy"
|
|
8441
|
+
[role]="cell.link?.role"
|
|
8442
|
+
[showIcon]="cell.link?.showIcon"
|
|
8443
|
+
[text]="cell.link?.text"
|
|
8444
|
+
[wrap]="cell.link?.wrap"
|
|
8445
|
+
>{{cell.link?.children}}</db-link
|
|
8446
|
+
>
|
|
8447
|
+
}@else{{{cell.content}}}</db-table-header-cell
|
|
8448
|
+
>
|
|
8449
|
+
}@else{
|
|
8450
|
+
<db-table-data-cell
|
|
8451
|
+
[id]="cell.id"
|
|
8452
|
+
[className]="cell.className ?? cell.class"
|
|
8453
|
+
[horizontalAlignment]="cell.horizontalAlignment"
|
|
8454
|
+
[verticalAlignment]="cell.verticalAlignment"
|
|
8455
|
+
[headers]="cell.headers"
|
|
8456
|
+
[colSpan]="cell.colSpan"
|
|
8457
|
+
[colspan]="cell.colspan"
|
|
8458
|
+
[rowSpan]="cell.rowSpan"
|
|
8459
|
+
[rowspan]="cell.rowspan"
|
|
8460
|
+
>@if(cell.link){
|
|
8461
|
+
<db-link
|
|
8462
|
+
[content]="cell.link?.content"
|
|
8463
|
+
[size]="cell.link?.size"
|
|
8464
|
+
[variant]="cell.link?.variant"
|
|
8465
|
+
[className]="cell.link?.className ?? cell.link?.class"
|
|
8466
|
+
[id]="cell.link?.id"
|
|
8467
|
+
[autofocus]="cell.link?.autofocus"
|
|
8468
|
+
[disabled]="cell.link?.disabled"
|
|
8469
|
+
[href]="cell.link?.href"
|
|
8470
|
+
[hreflang]="cell.link?.hreflang"
|
|
8471
|
+
[target]="cell.link?.target"
|
|
8472
|
+
[rel]="cell.link?.rel"
|
|
8473
|
+
[referrerPolicy]="cell.link?.referrerPolicy"
|
|
8474
|
+
[role]="cell.link?.role"
|
|
8475
|
+
[showIcon]="cell.link?.showIcon"
|
|
8476
|
+
[text]="cell.link?.text"
|
|
8477
|
+
[wrap]="cell.link?.wrap"
|
|
8478
|
+
>{{cell.link?.children}}</db-link
|
|
8479
|
+
>
|
|
8480
|
+
}@else{{{cell.content}}}</db-table-data-cell
|
|
8481
|
+
>
|
|
8482
|
+
} } }@else{
|
|
8483
|
+
<ng-content></ng-content>
|
|
8484
|
+
}
|
|
8485
|
+
</tr> `, styles: [":host{display:contents}\n"] }]
|
|
8486
|
+
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], interactive: [{ type: i0.Input, args: [{ isSignal: true, alias: "interactive", required: false }] }], subHeaderEmphasis: [{ type: i0.Input, args: [{ isSignal: true, alias: "subHeaderEmphasis", required: false }] }], cells: [{ type: i0.Input, args: [{ isSignal: true, alias: "cells", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
8487
|
+
|
|
8488
|
+
const defaultProps$6 = {};
|
|
8489
|
+
class DBTableBody {
|
|
8490
|
+
trackByRow0(index, row) {
|
|
8491
|
+
return `${row.id ?? this.id() ?? uuid()}-table-body-row-${index}`;
|
|
8492
|
+
}
|
|
8493
|
+
constructor() {
|
|
8494
|
+
this.cls = cls;
|
|
8495
|
+
this.uuid = uuid;
|
|
8496
|
+
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
|
|
8497
|
+
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : /* istanbul ignore next */ []));
|
|
8498
|
+
this.rows = input(...(ngDevMode ? [undefined, { debugName: "rows" }] : /* istanbul ignore next */ []));
|
|
8499
|
+
this._ref = viewChild("_ref", ...(ngDevMode ? [{ debugName: "_ref" }] : /* istanbul ignore next */ []));
|
|
8500
|
+
}
|
|
8501
|
+
/**
|
|
8502
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
8503
|
+
* @param element the ref for the component
|
|
8504
|
+
* @param customElementSelector the custom element like `my-component`
|
|
8505
|
+
*/
|
|
8506
|
+
enableAttributePassing(element, customElementSelector) {
|
|
8507
|
+
const parent = element?.closest(customElementSelector);
|
|
8508
|
+
if (element && parent) {
|
|
8509
|
+
const attributes = parent.attributes;
|
|
8510
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
8511
|
+
const attr = attributes.item(i);
|
|
8512
|
+
if (attr && attr.name !== 'data-density' &&
|
|
8513
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
8514
|
+
element.setAttribute(attr.name, attr.value);
|
|
8515
|
+
parent.removeAttribute(attr.name);
|
|
8516
|
+
}
|
|
8517
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
8518
|
+
element.setAttribute(attr.name, attr.value);
|
|
8519
|
+
parent.removeAttribute(attr.name);
|
|
8520
|
+
}
|
|
8521
|
+
else if (attr && attr.name === "class") {
|
|
8522
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
8523
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
8524
|
+
const currentClass = element.getAttribute("class");
|
|
8525
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
8526
|
+
if (isWebComponent) {
|
|
8527
|
+
// Stencil is using this class for lazy loading component
|
|
8528
|
+
parent.setAttribute("class", "hydrated");
|
|
8529
|
+
}
|
|
8530
|
+
else {
|
|
8531
|
+
parent.removeAttribute(attr.name);
|
|
8532
|
+
}
|
|
8533
|
+
}
|
|
8534
|
+
}
|
|
8535
|
+
}
|
|
8536
|
+
}
|
|
8537
|
+
ngAfterViewInit() {
|
|
8538
|
+
const element = this._ref()?.nativeElement;
|
|
8539
|
+
this.enableAttributePassing(element, "db-table-body");
|
|
8540
|
+
}
|
|
8541
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTableBody, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8542
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: DBTableBody, isStandalone: true, selector: "db-table-body", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<tbody
|
|
8543
|
+
#_ref
|
|
8544
|
+
[attr.id]="id()"
|
|
8545
|
+
[class]="cls('db-table-body', className())"
|
|
8546
|
+
>
|
|
8547
|
+
@if(rows()){ @for (row of rows();track trackByRow0(index, row);let index =
|
|
8548
|
+
$index) {
|
|
8549
|
+
<db-table-row
|
|
8550
|
+
[cells]="row.cells"
|
|
8551
|
+
[className]="row.className ?? row.class"
|
|
8552
|
+
[interactive]="row.interactive"
|
|
8553
|
+
[id]="row.id"
|
|
8554
|
+
></db-table-row>
|
|
8555
|
+
} }@else{
|
|
8556
|
+
<ng-content></ng-content>
|
|
8557
|
+
}
|
|
8558
|
+
</tbody> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBTableRow, selector: "db-table-row", inputs: ["id", "className", "interactive", "subHeaderEmphasis", "cells"] }] }); }
|
|
8559
|
+
}
|
|
8560
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTableBody, decorators: [{
|
|
8561
|
+
type: Component,
|
|
8562
|
+
args: [{ selector: "db-table-body", standalone: true, imports: [CommonModule, DBTableRow], template: `<tbody
|
|
8563
|
+
#_ref
|
|
8564
|
+
[attr.id]="id()"
|
|
8565
|
+
[class]="cls('db-table-body', className())"
|
|
8566
|
+
>
|
|
8567
|
+
@if(rows()){ @for (row of rows();track trackByRow0(index, row);let index =
|
|
8568
|
+
$index) {
|
|
8569
|
+
<db-table-row
|
|
8570
|
+
[cells]="row.cells"
|
|
8571
|
+
[className]="row.className ?? row.class"
|
|
8572
|
+
[interactive]="row.interactive"
|
|
8573
|
+
[id]="row.id"
|
|
8574
|
+
></db-table-row>
|
|
8575
|
+
} }@else{
|
|
8576
|
+
<ng-content></ng-content>
|
|
8577
|
+
}
|
|
8578
|
+
</tbody> `, styles: [":host{display:contents}\n"] }]
|
|
8579
|
+
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
8580
|
+
|
|
8581
|
+
const defaultProps$5 = {};
|
|
8582
|
+
class DBTableFooter {
|
|
8583
|
+
trackByRow0(index, row) {
|
|
8584
|
+
return `${row.id ?? this.id() ?? uuid()}-table-footer-row-${index}`;
|
|
8585
|
+
}
|
|
8586
|
+
constructor() {
|
|
8587
|
+
this.cls = cls;
|
|
8588
|
+
this.uuid = uuid;
|
|
8589
|
+
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
|
|
8590
|
+
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : /* istanbul ignore next */ []));
|
|
8591
|
+
this.rows = input(...(ngDevMode ? [undefined, { debugName: "rows" }] : /* istanbul ignore next */ []));
|
|
8592
|
+
this._ref = viewChild("_ref", ...(ngDevMode ? [{ debugName: "_ref" }] : /* istanbul ignore next */ []));
|
|
8593
|
+
}
|
|
8594
|
+
/**
|
|
8595
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
8596
|
+
* @param element the ref for the component
|
|
8597
|
+
* @param customElementSelector the custom element like `my-component`
|
|
8598
|
+
*/
|
|
8599
|
+
enableAttributePassing(element, customElementSelector) {
|
|
8600
|
+
const parent = element?.closest(customElementSelector);
|
|
8601
|
+
if (element && parent) {
|
|
8602
|
+
const attributes = parent.attributes;
|
|
8603
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
8604
|
+
const attr = attributes.item(i);
|
|
8605
|
+
if (attr && attr.name !== 'data-density' &&
|
|
8606
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
8607
|
+
element.setAttribute(attr.name, attr.value);
|
|
8608
|
+
parent.removeAttribute(attr.name);
|
|
8609
|
+
}
|
|
8610
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
8611
|
+
element.setAttribute(attr.name, attr.value);
|
|
8612
|
+
parent.removeAttribute(attr.name);
|
|
8613
|
+
}
|
|
8614
|
+
else if (attr && attr.name === "class") {
|
|
8615
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
8616
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
8617
|
+
const currentClass = element.getAttribute("class");
|
|
8618
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
8619
|
+
if (isWebComponent) {
|
|
8620
|
+
// Stencil is using this class for lazy loading component
|
|
8621
|
+
parent.setAttribute("class", "hydrated");
|
|
8622
|
+
}
|
|
8623
|
+
else {
|
|
8624
|
+
parent.removeAttribute(attr.name);
|
|
8625
|
+
}
|
|
8626
|
+
}
|
|
8627
|
+
}
|
|
8628
|
+
}
|
|
8629
|
+
}
|
|
8630
|
+
ngAfterViewInit() {
|
|
8631
|
+
const element = this._ref()?.nativeElement;
|
|
8632
|
+
this.enableAttributePassing(element, "db-table-footer");
|
|
8633
|
+
}
|
|
8634
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTableFooter, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8635
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: DBTableFooter, isStandalone: true, selector: "db-table-footer", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<tfoot
|
|
8636
|
+
#_ref
|
|
8637
|
+
[attr.id]="id()"
|
|
8638
|
+
[class]="cls('db-table-footer', className())"
|
|
8639
|
+
>
|
|
8640
|
+
@if(rows()){ @for (row of rows();track trackByRow0(index, row);let index =
|
|
8641
|
+
$index) {
|
|
8642
|
+
<db-table-row
|
|
8643
|
+
[cells]="row.cells"
|
|
8644
|
+
[className]="row.className ?? row.class"
|
|
8645
|
+
[interactive]="row.interactive"
|
|
8646
|
+
[id]="row.id"
|
|
8647
|
+
></db-table-row>
|
|
8648
|
+
} }@else{
|
|
8649
|
+
<ng-content></ng-content>
|
|
8650
|
+
}
|
|
8651
|
+
</tfoot> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBTableRow, selector: "db-table-row", inputs: ["id", "className", "interactive", "subHeaderEmphasis", "cells"] }] }); }
|
|
8652
|
+
}
|
|
8653
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTableFooter, decorators: [{
|
|
8654
|
+
type: Component,
|
|
8655
|
+
args: [{ selector: "db-table-footer", standalone: true, imports: [CommonModule, DBTableRow], template: `<tfoot
|
|
8656
|
+
#_ref
|
|
8657
|
+
[attr.id]="id()"
|
|
8658
|
+
[class]="cls('db-table-footer', className())"
|
|
8659
|
+
>
|
|
8660
|
+
@if(rows()){ @for (row of rows();track trackByRow0(index, row);let index =
|
|
8661
|
+
$index) {
|
|
8662
|
+
<db-table-row
|
|
8663
|
+
[cells]="row.cells"
|
|
8664
|
+
[className]="row.className ?? row.class"
|
|
8665
|
+
[interactive]="row.interactive"
|
|
8666
|
+
[id]="row.id"
|
|
8667
|
+
></db-table-row>
|
|
8668
|
+
} }@else{
|
|
8669
|
+
<ng-content></ng-content>
|
|
8670
|
+
}
|
|
8671
|
+
</tfoot> `, styles: [":host{display:contents}\n"] }]
|
|
8672
|
+
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
8673
|
+
|
|
8674
|
+
const defaultProps$4 = {};
|
|
8675
|
+
class DBTableHead {
|
|
8676
|
+
getCells(cells) {
|
|
8677
|
+
return cells?.map((cell) => ({
|
|
8678
|
+
...cell,
|
|
8679
|
+
headerCell: true,
|
|
8680
|
+
}));
|
|
8681
|
+
}
|
|
8682
|
+
trackByRow0(index, row) {
|
|
8683
|
+
return `${row.id ?? this.id() ?? uuid()}-table-head-row-${index}`;
|
|
8684
|
+
}
|
|
8685
|
+
constructor() {
|
|
8686
|
+
this.cls = cls;
|
|
8687
|
+
this.uuid = uuid;
|
|
8688
|
+
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
|
|
8689
|
+
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : /* istanbul ignore next */ []));
|
|
8690
|
+
this.rows = input(...(ngDevMode ? [undefined, { debugName: "rows" }] : /* istanbul ignore next */ []));
|
|
8691
|
+
this._ref = viewChild("_ref", ...(ngDevMode ? [{ debugName: "_ref" }] : /* istanbul ignore next */ []));
|
|
8692
|
+
}
|
|
8693
|
+
/**
|
|
8694
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
8695
|
+
* @param element the ref for the component
|
|
8696
|
+
* @param customElementSelector the custom element like `my-component`
|
|
8697
|
+
*/
|
|
8698
|
+
enableAttributePassing(element, customElementSelector) {
|
|
8699
|
+
const parent = element?.closest(customElementSelector);
|
|
8700
|
+
if (element && parent) {
|
|
8701
|
+
const attributes = parent.attributes;
|
|
8702
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
8703
|
+
const attr = attributes.item(i);
|
|
8704
|
+
if (attr && attr.name !== 'data-density' &&
|
|
8705
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
8706
|
+
element.setAttribute(attr.name, attr.value);
|
|
8707
|
+
parent.removeAttribute(attr.name);
|
|
8708
|
+
}
|
|
8709
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
8710
|
+
element.setAttribute(attr.name, attr.value);
|
|
8711
|
+
parent.removeAttribute(attr.name);
|
|
8712
|
+
}
|
|
8713
|
+
else if (attr && attr.name === "class") {
|
|
8714
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
8715
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
8716
|
+
const currentClass = element.getAttribute("class");
|
|
8717
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
8718
|
+
if (isWebComponent) {
|
|
8719
|
+
// Stencil is using this class for lazy loading component
|
|
8720
|
+
parent.setAttribute("class", "hydrated");
|
|
8721
|
+
}
|
|
8722
|
+
else {
|
|
8723
|
+
parent.removeAttribute(attr.name);
|
|
8724
|
+
}
|
|
8725
|
+
}
|
|
8726
|
+
}
|
|
8727
|
+
}
|
|
8728
|
+
}
|
|
8729
|
+
ngAfterViewInit() {
|
|
8730
|
+
const element = this._ref()?.nativeElement;
|
|
8731
|
+
this.enableAttributePassing(element, "db-table-head");
|
|
8732
|
+
}
|
|
8733
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTableHead, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8734
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: DBTableHead, isStandalone: true, selector: "db-table-head", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<thead
|
|
8735
|
+
#_ref
|
|
8736
|
+
[attr.id]="id()"
|
|
8737
|
+
[class]="cls('db-table-head', className())"
|
|
8738
|
+
>
|
|
8739
|
+
@if(rows()){ @for (row of rows();track trackByRow0(index, row);let index =
|
|
8740
|
+
$index) {
|
|
8741
|
+
<db-table-row
|
|
8742
|
+
[cells]="getCells(row.cells)"
|
|
8743
|
+
[className]="row.className ?? row.class"
|
|
8744
|
+
[subHeaderEmphasis]="row.subHeaderEmphasis"
|
|
8745
|
+
[interactive]="row.interactive"
|
|
8746
|
+
[id]="row.id"
|
|
8747
|
+
></db-table-row>
|
|
8748
|
+
} }@else{
|
|
8749
|
+
<ng-content></ng-content>
|
|
8750
|
+
}
|
|
8751
|
+
</thead> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBTableRow, selector: "db-table-row", inputs: ["id", "className", "interactive", "subHeaderEmphasis", "cells"] }] }); }
|
|
8752
|
+
}
|
|
8753
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTableHead, decorators: [{
|
|
8754
|
+
type: Component,
|
|
8755
|
+
args: [{ selector: "db-table-head", standalone: true, imports: [CommonModule, DBTableRow], template: `<thead
|
|
8756
|
+
#_ref
|
|
8757
|
+
[attr.id]="id()"
|
|
8758
|
+
[class]="cls('db-table-head', className())"
|
|
8759
|
+
>
|
|
8760
|
+
@if(rows()){ @for (row of rows();track trackByRow0(index, row);let index =
|
|
8761
|
+
$index) {
|
|
8762
|
+
<db-table-row
|
|
8763
|
+
[cells]="getCells(row.cells)"
|
|
8764
|
+
[className]="row.className ?? row.class"
|
|
8765
|
+
[subHeaderEmphasis]="row.subHeaderEmphasis"
|
|
8766
|
+
[interactive]="row.interactive"
|
|
8767
|
+
[id]="row.id"
|
|
8768
|
+
></db-table-row>
|
|
8769
|
+
} }@else{
|
|
8770
|
+
<ng-content></ng-content>
|
|
8771
|
+
}
|
|
8772
|
+
</thead> `, styles: [":host{display:contents}\n"] }]
|
|
8773
|
+
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
8774
|
+
|
|
8775
|
+
const defaultProps$3 = {};
|
|
8776
|
+
class DBTable {
|
|
8777
|
+
convertData() {
|
|
8778
|
+
try {
|
|
8779
|
+
if (typeof this.data() === "string") {
|
|
8780
|
+
return JSON.parse(this.data());
|
|
8781
|
+
}
|
|
8782
|
+
return this.data();
|
|
8783
|
+
}
|
|
8784
|
+
catch (error) {
|
|
8785
|
+
console.error(error);
|
|
8786
|
+
}
|
|
8787
|
+
return {};
|
|
8788
|
+
}
|
|
8789
|
+
constructor() {
|
|
8790
|
+
this.cls = cls;
|
|
8791
|
+
this.getBooleanAsString = getBooleanAsString;
|
|
8792
|
+
this.data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : /* istanbul ignore next */ []));
|
|
8793
|
+
this.mobileVariant = input(...(ngDevMode ? [undefined, { debugName: "mobileVariant" }] : /* istanbul ignore next */ []));
|
|
8794
|
+
this.columnSizes = input(...(ngDevMode ? [undefined, { debugName: "columnSizes" }] : /* istanbul ignore next */ []));
|
|
8795
|
+
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : /* istanbul ignore next */ []));
|
|
8796
|
+
this.width = input(...(ngDevMode ? [undefined, { debugName: "width" }] : /* istanbul ignore next */ []));
|
|
8797
|
+
this.size = input(...(ngDevMode ? [undefined, { debugName: "size" }] : /* istanbul ignore next */ []));
|
|
8798
|
+
this.divider = input(...(ngDevMode ? [undefined, { debugName: "divider" }] : /* istanbul ignore next */ []));
|
|
8799
|
+
this.variant = input(...(ngDevMode ? [undefined, { debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
8800
|
+
this.showCaption = input(...(ngDevMode ? [undefined, { debugName: "showCaption" }] : /* istanbul ignore next */ []));
|
|
8801
|
+
this.stickyHeader = input(...(ngDevMode ? [undefined, { debugName: "stickyHeader" }] : /* istanbul ignore next */ []));
|
|
8802
|
+
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
|
|
8803
|
+
this.captionPlain = input(...(ngDevMode ? [undefined, { debugName: "captionPlain" }] : /* istanbul ignore next */ []));
|
|
8804
|
+
this._ref = viewChild("_ref", ...(ngDevMode ? [{ debugName: "_ref" }] : /* istanbul ignore next */ []));
|
|
8805
|
+
this._data = signal(undefined, ...(ngDevMode ? [{ debugName: "_data" }] : /* istanbul ignore next */ []));
|
|
8806
|
+
this._style = signal(undefined, ...(ngDevMode ? [{ debugName: "_style" }] : /* istanbul ignore next */ []));
|
|
8807
|
+
if (typeof window !== "undefined") {
|
|
8808
|
+
effect(() => {
|
|
8809
|
+
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
8810
|
+
this.data();
|
|
8811
|
+
// ---
|
|
8812
|
+
if (this.data()) {
|
|
8813
|
+
this._data.set(this.convertData());
|
|
8814
|
+
}
|
|
8815
|
+
else {
|
|
8816
|
+
this._data.set(undefined);
|
|
8817
|
+
}
|
|
8818
|
+
}, Number(VERSION.major) < 19
|
|
8819
|
+
? { allowSignalWrites: true }
|
|
8820
|
+
: undefined);
|
|
8821
|
+
effect(() => {
|
|
8822
|
+
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
8823
|
+
this.mobileVariant();
|
|
8824
|
+
this._ref();
|
|
8825
|
+
this._data();
|
|
8826
|
+
// ---
|
|
8827
|
+
if (this._ref()?.nativeElement && this.mobileVariant() === "list") {
|
|
8828
|
+
// Delay for angular
|
|
8829
|
+
void delay(() => {
|
|
8830
|
+
const table = this._ref()?.nativeElement;
|
|
8831
|
+
if (!table)
|
|
8832
|
+
return;
|
|
8833
|
+
const headerCells = table.querySelectorAll("thead tr th");
|
|
8834
|
+
if (headerCells.length) {
|
|
8835
|
+
const otherRows = table.querySelectorAll(":is(tbody,tfoot) tr");
|
|
8836
|
+
otherRows.forEach((row) => {
|
|
8837
|
+
const cells = row.querySelectorAll(":is(td,th)");
|
|
8838
|
+
cells.forEach((cell, index) => {
|
|
8839
|
+
const headerCell = headerCells[index];
|
|
8840
|
+
if (headerCell) {
|
|
8841
|
+
// Use only direct text nodes to avoid including text from nested elements (e.g. sort buttons)
|
|
8842
|
+
const directText = Array.from(headerCell.childNodes)
|
|
8843
|
+
.filter((node) => node.nodeType === Node.TEXT_NODE)
|
|
8844
|
+
.map((node) => node.textContent?.trim())
|
|
8845
|
+
.filter(Boolean)
|
|
8846
|
+
.join(" ");
|
|
8847
|
+
if (directText) {
|
|
8848
|
+
cell.dataset["header"] = directText;
|
|
8849
|
+
}
|
|
8850
|
+
}
|
|
8851
|
+
});
|
|
8852
|
+
});
|
|
8853
|
+
}
|
|
8854
|
+
}, 1);
|
|
8855
|
+
}
|
|
8856
|
+
}, Number(VERSION.major) < 19
|
|
8857
|
+
? { allowSignalWrites: true }
|
|
8858
|
+
: undefined);
|
|
8859
|
+
effect(() => {
|
|
8860
|
+
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
8861
|
+
this.columnSizes();
|
|
8862
|
+
// ---
|
|
8863
|
+
if (this.columnSizes()) {
|
|
8864
|
+
const columnStyles = {};
|
|
8865
|
+
Object.entries(this.columnSizes()).forEach(([key, value]) => {
|
|
8866
|
+
columnStyles[`--db-table-column-size-${key}`] = value;
|
|
8867
|
+
});
|
|
8868
|
+
this._style.set(columnStyles);
|
|
8869
|
+
}
|
|
8870
|
+
else {
|
|
8871
|
+
this._style.set(undefined);
|
|
8872
|
+
}
|
|
8873
|
+
}, Number(VERSION.major) < 19
|
|
8874
|
+
? { allowSignalWrites: true }
|
|
8875
|
+
: undefined);
|
|
8876
|
+
}
|
|
8877
|
+
}
|
|
8878
|
+
/**
|
|
8879
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
8880
|
+
* @param element the ref for the component
|
|
8881
|
+
* @param customElementSelector the custom element like `my-component`
|
|
8882
|
+
*/
|
|
8883
|
+
enableAttributePassing(element, customElementSelector) {
|
|
8884
|
+
const parent = element?.closest(customElementSelector);
|
|
8885
|
+
if (element && parent) {
|
|
8886
|
+
const attributes = parent.attributes;
|
|
8887
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
8888
|
+
const attr = attributes.item(i);
|
|
8889
|
+
if (attr && attr.name !== 'data-density' &&
|
|
8890
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
8891
|
+
element.setAttribute(attr.name, attr.value);
|
|
8892
|
+
parent.removeAttribute(attr.name);
|
|
8893
|
+
}
|
|
8894
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
8895
|
+
element.setAttribute(attr.name, attr.value);
|
|
8896
|
+
parent.removeAttribute(attr.name);
|
|
8897
|
+
}
|
|
8898
|
+
else if (attr && attr.name === "class") {
|
|
8899
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
8900
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
8901
|
+
const currentClass = element.getAttribute("class");
|
|
8902
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
8903
|
+
if (isWebComponent) {
|
|
8904
|
+
// Stencil is using this class for lazy loading component
|
|
8905
|
+
parent.setAttribute("class", "hydrated");
|
|
8906
|
+
}
|
|
8907
|
+
else {
|
|
8908
|
+
parent.removeAttribute(attr.name);
|
|
8909
|
+
}
|
|
8910
|
+
}
|
|
8911
|
+
}
|
|
8912
|
+
}
|
|
8913
|
+
}
|
|
8914
|
+
ngAfterViewInit() {
|
|
8915
|
+
const element = this._ref()?.nativeElement;
|
|
8916
|
+
this.enableAttributePassing(element, "db-table");
|
|
8917
|
+
}
|
|
8918
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTable, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8919
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: DBTable, isStandalone: true, selector: "db-table", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, mobileVariant: { classPropertyName: "mobileVariant", publicName: "mobileVariant", isSignal: true, isRequired: false, transformFunction: null }, columnSizes: { classPropertyName: "columnSizes", publicName: "columnSizes", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, divider: { classPropertyName: "divider", publicName: "divider", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, showCaption: { classPropertyName: "showCaption", publicName: "showCaption", isSignal: true, isRequired: false, transformFunction: null }, stickyHeader: { classPropertyName: "stickyHeader", publicName: "stickyHeader", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, captionPlain: { classPropertyName: "captionPlain", publicName: "captionPlain", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<div
|
|
8920
|
+
[class]="cls('db-table', className())"
|
|
8921
|
+
[ngStyle]="_style()"
|
|
8922
|
+
[attr.data-width]="width()"
|
|
8923
|
+
[attr.data-size]="size()"
|
|
8924
|
+
[attr.data-divider]="divider()"
|
|
8925
|
+
[attr.data-variant]="variant()"
|
|
8926
|
+
[attr.data-mobile-variant]="mobileVariant()"
|
|
8927
|
+
[attr.data-show-caption]="getBooleanAsString(showCaption())"
|
|
8928
|
+
[attr.data-sticky-header]="stickyHeader()"
|
|
8929
|
+
>
|
|
8930
|
+
<table #_ref [attr.id]="id()">
|
|
8931
|
+
@if(captionPlain()){
|
|
8932
|
+
<caption>
|
|
8933
|
+
{{captionPlain()}}
|
|
8934
|
+
</caption>
|
|
8935
|
+
}@else{
|
|
8936
|
+
<ng-content select="[caption]"> </ng-content>
|
|
8937
|
+
} @if(_data()){ @if(_data()?.header){
|
|
8938
|
+
<db-table-head [rows]="_data()?.header"></db-table-head>
|
|
8939
|
+
} @if(_data()?.body){
|
|
8940
|
+
<db-table-body [rows]="_data()?.body"></db-table-body>
|
|
8941
|
+
} @if(_data()?.footer){
|
|
8942
|
+
<db-table-footer [rows]="_data()?.footer"></db-table-footer>
|
|
8943
|
+
} }@else{
|
|
8944
|
+
<ng-content></ng-content>
|
|
8945
|
+
}
|
|
8946
|
+
</table>
|
|
8947
|
+
</div> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: DBTableHead, selector: "db-table-head", inputs: ["id", "className", "rows"] }, { kind: "component", type: DBTableBody, selector: "db-table-body", inputs: ["id", "className", "rows"] }, { kind: "component", type: DBTableFooter, selector: "db-table-footer", inputs: ["id", "className", "rows"] }] }); }
|
|
8948
|
+
}
|
|
8949
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTable, decorators: [{
|
|
8950
|
+
type: Component,
|
|
8951
|
+
args: [{ selector: "db-table", standalone: true, imports: [CommonModule, DBTableHead, DBTableBody, DBTableFooter], template: `<div
|
|
8952
|
+
[class]="cls('db-table', className())"
|
|
8953
|
+
[ngStyle]="_style()"
|
|
8954
|
+
[attr.data-width]="width()"
|
|
8955
|
+
[attr.data-size]="size()"
|
|
8956
|
+
[attr.data-divider]="divider()"
|
|
8957
|
+
[attr.data-variant]="variant()"
|
|
8958
|
+
[attr.data-mobile-variant]="mobileVariant()"
|
|
8959
|
+
[attr.data-show-caption]="getBooleanAsString(showCaption())"
|
|
8960
|
+
[attr.data-sticky-header]="stickyHeader()"
|
|
8961
|
+
>
|
|
8962
|
+
<table #_ref [attr.id]="id()">
|
|
8963
|
+
@if(captionPlain()){
|
|
8964
|
+
<caption>
|
|
8965
|
+
{{captionPlain()}}
|
|
8966
|
+
</caption>
|
|
8967
|
+
}@else{
|
|
8968
|
+
<ng-content select="[caption]"> </ng-content>
|
|
8969
|
+
} @if(_data()){ @if(_data()?.header){
|
|
8970
|
+
<db-table-head [rows]="_data()?.header"></db-table-head>
|
|
8971
|
+
} @if(_data()?.body){
|
|
8972
|
+
<db-table-body [rows]="_data()?.body"></db-table-body>
|
|
8973
|
+
} @if(_data()?.footer){
|
|
8974
|
+
<db-table-footer [rows]="_data()?.footer"></db-table-footer>
|
|
8975
|
+
} }@else{
|
|
8976
|
+
<ng-content></ng-content>
|
|
8977
|
+
}
|
|
8978
|
+
</table>
|
|
8979
|
+
</div> `, styles: [":host{display:contents}\n"] }]
|
|
8980
|
+
}], ctorParameters: () => [], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], mobileVariant: [{ type: i0.Input, args: [{ isSignal: true, alias: "mobileVariant", required: false }] }], columnSizes: [{ type: i0.Input, args: [{ isSignal: true, alias: "columnSizes", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], divider: [{ type: i0.Input, args: [{ isSignal: true, alias: "divider", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], showCaption: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCaption", required: false }] }], stickyHeader: [{ type: i0.Input, args: [{ isSignal: true, alias: "stickyHeader", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], captionPlain: [{ type: i0.Input, args: [{ isSignal: true, alias: "captionPlain", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
8981
|
+
|
|
8982
|
+
const defaultProps$2 = {};
|
|
8983
|
+
class DBTableCaption {
|
|
8984
|
+
constructor() {
|
|
8985
|
+
this.cls = cls;
|
|
8986
|
+
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
|
|
8987
|
+
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : /* istanbul ignore next */ []));
|
|
8988
|
+
this._ref = viewChild("_ref", ...(ngDevMode ? [{ debugName: "_ref" }] : /* istanbul ignore next */ []));
|
|
8989
|
+
}
|
|
8990
|
+
/**
|
|
8991
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
8992
|
+
* @param element the ref for the component
|
|
8993
|
+
* @param customElementSelector the custom element like `my-component`
|
|
8994
|
+
*/
|
|
8995
|
+
enableAttributePassing(element, customElementSelector) {
|
|
8996
|
+
const parent = element?.closest(customElementSelector);
|
|
8997
|
+
if (element && parent) {
|
|
8998
|
+
const attributes = parent.attributes;
|
|
8999
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
9000
|
+
const attr = attributes.item(i);
|
|
9001
|
+
if (attr && attr.name !== 'data-density' &&
|
|
9002
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
9003
|
+
element.setAttribute(attr.name, attr.value);
|
|
9004
|
+
parent.removeAttribute(attr.name);
|
|
9005
|
+
}
|
|
9006
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
9007
|
+
element.setAttribute(attr.name, attr.value);
|
|
9008
|
+
parent.removeAttribute(attr.name);
|
|
9009
|
+
}
|
|
9010
|
+
else if (attr && attr.name === "class") {
|
|
9011
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
9012
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
9013
|
+
const currentClass = element.getAttribute("class");
|
|
9014
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
9015
|
+
if (isWebComponent) {
|
|
9016
|
+
// Stencil is using this class for lazy loading component
|
|
9017
|
+
parent.setAttribute("class", "hydrated");
|
|
9018
|
+
}
|
|
9019
|
+
else {
|
|
9020
|
+
parent.removeAttribute(attr.name);
|
|
9021
|
+
}
|
|
9022
|
+
}
|
|
9023
|
+
}
|
|
9024
|
+
}
|
|
9025
|
+
}
|
|
9026
|
+
ngAfterViewInit() {
|
|
9027
|
+
const element = this._ref()?.nativeElement;
|
|
9028
|
+
this.enableAttributePassing(element, "db-table-caption");
|
|
9029
|
+
}
|
|
9030
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTableCaption, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9031
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.16", type: DBTableCaption, isStandalone: true, selector: "db-table-caption", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<caption
|
|
9032
|
+
#_ref
|
|
9033
|
+
[attr.id]="id()"
|
|
9034
|
+
[class]="cls('db-table-caption', className())"
|
|
9035
|
+
>
|
|
9036
|
+
<ng-content></ng-content>
|
|
9037
|
+
</caption> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
9038
|
+
}
|
|
9039
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTableCaption, decorators: [{
|
|
9040
|
+
type: Component,
|
|
9041
|
+
args: [{ selector: "db-table-caption", standalone: true, imports: [CommonModule], template: `<caption
|
|
9042
|
+
#_ref
|
|
9043
|
+
[attr.id]="id()"
|
|
9044
|
+
[class]="cls('db-table-caption', className())"
|
|
9045
|
+
>
|
|
9046
|
+
<ng-content></ng-content>
|
|
9047
|
+
</caption> `, styles: [":host{display:contents}\n"] }]
|
|
9048
|
+
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
9049
|
+
|
|
9050
|
+
const DBTableHeaderCellScopeList = ['row', 'col', 'rowgroup', 'colgroup'];
|
|
9051
|
+
|
|
9052
|
+
const DBTableRowSubHeaderEmphasisList = ['none', 'weak', 'strong'];
|
|
9053
|
+
|
|
9054
|
+
const DBTableRowSizeList = ['x-small', 'small', 'medium', 'large'];
|
|
9055
|
+
const DBTableVariantList = ['flat', 'zebra', 'spaced'];
|
|
9056
|
+
const DBTableDividerList = ['none', 'both', 'horizontal', 'vertical'];
|
|
9057
|
+
const DBTableMobileVariantList = ['table', 'list'];
|
|
9058
|
+
const DBTableStickyHeaderList = ['none', 'both', 'horizontal', 'vertical'];
|
|
9059
|
+
const DBTableColumnsSizeList = ['auto', '1fr', 'min-content', 'max-content'];
|
|
9060
|
+
|
|
8112
9061
|
const defaultProps$1 = {};
|
|
8113
9062
|
class DBTabs {
|
|
8114
9063
|
convertTabs() {
|
|
@@ -8284,9 +9233,9 @@ class DBTabs {
|
|
|
8284
9233
|
}
|
|
8285
9234
|
this.initialized.set(false);
|
|
8286
9235
|
}
|
|
8287
|
-
},
|
|
8288
|
-
|
|
8289
|
-
|
|
9236
|
+
}, Number(VERSION.major) < 19
|
|
9237
|
+
? { allowSignalWrites: true }
|
|
9238
|
+
: undefined);
|
|
8290
9239
|
}
|
|
8291
9240
|
}
|
|
8292
9241
|
/**
|
|
@@ -8326,9 +9275,9 @@ class DBTabs {
|
|
|
8326
9275
|
}
|
|
8327
9276
|
}
|
|
8328
9277
|
ngAfterViewInit() {
|
|
9278
|
+
const element = this._ref()?.nativeElement;
|
|
9279
|
+
this.enableAttributePassing(element, "db-tabs");
|
|
8329
9280
|
if (typeof window !== "undefined") {
|
|
8330
|
-
const element = this._ref()?.nativeElement;
|
|
8331
|
-
this.enableAttributePassing(element, "db-tabs");
|
|
8332
9281
|
this._name.set(`tabs-${this.name() || uuid()}`);
|
|
8333
9282
|
this.initialized.set(true);
|
|
8334
9283
|
}
|
|
@@ -8337,8 +9286,8 @@ class DBTabs {
|
|
|
8337
9286
|
this._resizeObserver()?.disconnect();
|
|
8338
9287
|
this._resizeObserver.set(undefined);
|
|
8339
9288
|
}
|
|
8340
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
8341
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
9289
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTabs, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9290
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: DBTabs, isStandalone: true, selector: "db-tabs", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, tabs: { classPropertyName: "tabs", publicName: "tabs", isSignal: true, isRequired: false, transformFunction: null }, arrowScrollDistance: { classPropertyName: "arrowScrollDistance", publicName: "arrowScrollDistance", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, behavior: { classPropertyName: "behavior", publicName: "behavior", isSignal: true, isRequired: false, transformFunction: null }, initialSelectedMode: { classPropertyName: "initialSelectedMode", publicName: "initialSelectedMode", isSignal: true, isRequired: false, transformFunction: null }, initialSelectedIndex: { classPropertyName: "initialSelectedIndex", publicName: "initialSelectedIndex", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, alignment: { classPropertyName: "alignment", publicName: "alignment", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { indexChange: "indexChange", tabSelect: "tabSelect" }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<div
|
|
8342
9291
|
#_ref
|
|
8343
9292
|
[attr.id]="id() ?? propOverrides()?.id"
|
|
8344
9293
|
[class]="cls('db-tabs', className())"
|
|
@@ -8392,7 +9341,7 @@ class DBTabs {
|
|
|
8392
9341
|
<ng-content></ng-content>
|
|
8393
9342
|
</div> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBButton, selector: "db-button", inputs: ["type", "id", "propOverrides", "className", "disabled", "iconLeading", "icon", "showIconLeading", "showIcon", "iconTrailing", "showIconTrailing", "size", "width", "variant", "wrap", "noText", "name", "form", "value", "text"], outputs: ["click"] }, { kind: "component", type: DBTabList, selector: "db-tab-list", inputs: ["id", "propOverrides", "className"] }, { kind: "component", type: DBTabItem, selector: "db-tab-item", inputs: ["active", "name", "className", "id", "propOverrides", "iconLeading", "icon", "iconTrailing", "showIconLeading", "showIcon", "showIconTrailing", "noText", "disabled", "checked", "label"], outputs: ["disabledChange", "checkedChange", "change"] }, { kind: "component", type: DBTabPanel, selector: "db-tab-panel", inputs: ["className", "id", "propOverrides", "content"] }] }); }
|
|
8394
9343
|
}
|
|
8395
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
9344
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTabs, decorators: [{
|
|
8396
9345
|
type: Component,
|
|
8397
9346
|
args: [{ selector: "db-tabs", standalone: true, imports: [CommonModule, DBButton, DBTabList, DBTabItem, DBTabPanel], template: `<div
|
|
8398
9347
|
#_ref
|
|
@@ -8591,9 +9540,9 @@ class DBTextarea {
|
|
|
8591
9540
|
if (this.id() ?? this.propOverrides()?.id) {
|
|
8592
9541
|
this.resetIds();
|
|
8593
9542
|
}
|
|
8594
|
-
},
|
|
8595
|
-
|
|
8596
|
-
|
|
9543
|
+
}, Number(VERSION.major) < 19
|
|
9544
|
+
? { allowSignalWrites: true }
|
|
9545
|
+
: undefined);
|
|
8597
9546
|
effect(() => {
|
|
8598
9547
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
8599
9548
|
this._ref();
|
|
@@ -8602,9 +9551,9 @@ class DBTextarea {
|
|
|
8602
9551
|
this._invalidMessage.set(this.invalidMessage() ||
|
|
8603
9552
|
this._ref()?.nativeElement?.validationMessage ||
|
|
8604
9553
|
DEFAULT_INVALID_MESSAGE);
|
|
8605
|
-
},
|
|
8606
|
-
|
|
8607
|
-
|
|
9554
|
+
}, Number(VERSION.major) < 19
|
|
9555
|
+
? { allowSignalWrites: true }
|
|
9556
|
+
: undefined);
|
|
8608
9557
|
effect(() => {
|
|
8609
9558
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
8610
9559
|
this._id();
|
|
@@ -8619,17 +9568,17 @@ class DBTextarea {
|
|
|
8619
9568
|
}
|
|
8620
9569
|
this.handleValidation();
|
|
8621
9570
|
}
|
|
8622
|
-
},
|
|
8623
|
-
|
|
8624
|
-
|
|
9571
|
+
}, Number(VERSION.major) < 19
|
|
9572
|
+
? { allowSignalWrites: true }
|
|
9573
|
+
: undefined);
|
|
8625
9574
|
effect(() => {
|
|
8626
9575
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
8627
9576
|
this.value();
|
|
8628
9577
|
// ---
|
|
8629
9578
|
this._value.set(this.value());
|
|
8630
|
-
},
|
|
8631
|
-
|
|
8632
|
-
|
|
9579
|
+
}, Number(VERSION.major) < 19
|
|
9580
|
+
? { allowSignalWrites: true }
|
|
9581
|
+
: undefined);
|
|
8633
9582
|
effect(() => {
|
|
8634
9583
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
8635
9584
|
this._ref();
|
|
@@ -8652,9 +9601,9 @@ class DBTextarea {
|
|
|
8652
9601
|
this.handleInput(event, true);
|
|
8653
9602
|
}, controller.signal);
|
|
8654
9603
|
}
|
|
8655
|
-
},
|
|
8656
|
-
|
|
8657
|
-
|
|
9604
|
+
}, Number(VERSION.major) < 19
|
|
9605
|
+
? { allowSignalWrites: true }
|
|
9606
|
+
: undefined);
|
|
8658
9607
|
}
|
|
8659
9608
|
}
|
|
8660
9609
|
/**
|
|
@@ -8709,9 +9658,9 @@ class DBTextarea {
|
|
|
8709
9658
|
this.disabled.set(disabled);
|
|
8710
9659
|
}
|
|
8711
9660
|
ngAfterViewInit() {
|
|
9661
|
+
const element = this._ref()?.nativeElement;
|
|
9662
|
+
this.enableAttributePassing(element, "db-textarea");
|
|
8712
9663
|
if (typeof window !== "undefined") {
|
|
8713
|
-
const element = this._ref()?.nativeElement;
|
|
8714
|
-
this.enableAttributePassing(element, "db-textarea");
|
|
8715
9664
|
this.resetIds();
|
|
8716
9665
|
this._invalidMessage.set(this.invalidMessage() || DEFAULT_INVALID_MESSAGE);
|
|
8717
9666
|
}
|
|
@@ -8719,8 +9668,8 @@ class DBTextarea {
|
|
|
8719
9668
|
ngOnDestroy() {
|
|
8720
9669
|
this.abortController()?.abort();
|
|
8721
9670
|
}
|
|
8722
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
8723
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
9671
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTextarea, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9672
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: DBTextarea, isStandalone: true, selector: "db-textarea", inputs: { invalidMessage: { classPropertyName: "invalidMessage", publicName: "invalidMessage", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null }, showMessage: { classPropertyName: "showMessage", publicName: "showMessage", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, validMessage: { classPropertyName: "validMessage", publicName: "validMessage", isSignal: true, isRequired: false, transformFunction: null }, validation: { classPropertyName: "validation", publicName: "validation", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, minLength: { classPropertyName: "minLength", publicName: "minLength", isSignal: true, isRequired: false, transformFunction: null }, maxLength: { classPropertyName: "maxLength", publicName: "maxLength", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, showRequiredAsterisk: { classPropertyName: "showRequiredAsterisk", publicName: "showRequiredAsterisk", isSignal: true, isRequired: false, transformFunction: null }, showLabel: { classPropertyName: "showLabel", publicName: "showLabel", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, fieldSizing: { classPropertyName: "fieldSizing", publicName: "fieldSizing", isSignal: true, isRequired: false, transformFunction: null }, resize: { classPropertyName: "resize", publicName: "resize", isSignal: true, isRequired: false, transformFunction: null }, showResizer: { classPropertyName: "showResizer", publicName: "showResizer", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readOnly: { classPropertyName: "readOnly", publicName: "readOnly", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, form: { classPropertyName: "form", publicName: "form", isSignal: true, isRequired: false, transformFunction: null }, maxlength: { classPropertyName: "maxlength", publicName: "maxlength", isSignal: true, isRequired: false, transformFunction: null }, minlength: { classPropertyName: "minlength", publicName: "minlength", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, wrap: { classPropertyName: "wrap", publicName: "wrap", isSignal: true, isRequired: false, transformFunction: null }, spellCheck: { classPropertyName: "spellCheck", publicName: "spellCheck", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null }, ariaDescribedBy: { classPropertyName: "ariaDescribedBy", publicName: "ariaDescribedBy", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, cols: { classPropertyName: "cols", publicName: "cols", isSignal: true, isRequired: false, transformFunction: null }, messageIcon: { classPropertyName: "messageIcon", publicName: "messageIcon", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", disabled: "disabledChange", input: "input", change: "change", blur: "blur", focus: "focus" }, providers: [{
|
|
8724
9673
|
provide: NG_VALUE_ACCESSOR,
|
|
8725
9674
|
useExisting: DBTextarea,
|
|
8726
9675
|
multi: true
|
|
@@ -8787,7 +9736,7 @@ class DBTextarea {
|
|
|
8787
9736
|
>
|
|
8788
9737
|
</div> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBInfotext, selector: "db-infotext", inputs: ["id", "propOverrides", "className", "icon", "semantic", "size", "wrap", "showIcon", "text"] }] }); }
|
|
8789
9738
|
}
|
|
8790
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
9739
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: DBTextarea, decorators: [{
|
|
8791
9740
|
type: Component,
|
|
8792
9741
|
args: [{ providers: [{
|
|
8793
9742
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -8884,11 +9833,11 @@ const LabelVariantHorizontalList = ['leading', 'trailing'];
|
|
|
8884
9833
|
const AutoCompleteList = ['off', 'on', 'name', 'honorific-prefix', 'given-name', 'additional-name', 'family-name', 'honorific-suffix', 'nickname', 'email', 'username', 'new-password', 'current-password', 'one-time-code', 'organization-title', 'organization', 'street-address', 'shipping', 'billing', 'address-line1', 'address-line2', 'address-line3', 'address-level4', 'address-level3', 'address-level2', 'address-level1', 'country', 'country-name', 'postal-code', 'cc-name', 'cc-given-name', 'cc-additional-name', 'cc-family-name', 'cc-number', 'cc-exp', 'cc-exp-month', 'cc-exp-year', 'cc-csc', 'cc-type', 'transaction-currency', 'transaction-amount', 'language', 'bday', 'bday-day', 'bday-month', 'bday-year', 'sex', 'tel', 'tel-country-code', 'tel-national', 'tel-area-code', 'tel-local', 'tel-extension', 'impp', 'url', 'photo', 'webauthn'];
|
|
8885
9834
|
const LinkTargetList = ['_self', '_blank', '_parent', '_top'];
|
|
8886
9835
|
const LinkReferrerPolicyList = ['no-referrer', 'no-referrer-when-downgrade', 'origin', 'origin-when-cross-origin', 'same-origin', 'strict-origin', 'strict-origin-when-cross-origin', 'unsafe-url'];
|
|
8887
|
-
const AlignmentList = ['start', 'center'];
|
|
9836
|
+
const AlignmentList = ['start', 'center', 'end'];
|
|
8888
9837
|
|
|
8889
9838
|
/**
|
|
8890
9839
|
* Generated bundle index. Do not edit.
|
|
8891
9840
|
*/
|
|
8892
9841
|
|
|
8893
|
-
export { AccordionBehaviorList, AccordionVariantList, AlignmentList, AutoCompleteList, BadgePlacementList, ButtonTypeList, ButtonVariantList, COLOR, COLORS, COLORS_SIMPLE, COLOR_CONST, COLOR_SIMPLE, CardBehaviorList, CardElevationLevelList, CustomSelectDropdownWidthList, CustomSelectListItemTypeList, DBAccordion, DBAccordionItem, DBBadge, DBBrand, DBButton, DBCard, DBCheckbox, DBCustomButton, DBCustomSelect, DBCustomSelectDropdown, DBCustomSelectFormField, DBCustomSelectList, DBCustomSelectListItem, DBDivider, DBDrawer, DBHeader, DBIcon, DBInfotext, DBInput, DBLink, DBNavigation, DBNavigationItem, DBNotification, DBPage, DBPopover, DBRadio, DBSection, DBSelect, DBStack, DBSwitch, DBTabItem, DBTabList, DBTabPanel, DBTabs, DBTag, DBTextarea, DBTooltip, DB_UX_LOCAL_STORAGE_FRAMEWORK, DB_UX_LOCAL_STORAGE_MODE, DEFAULT_BACK, DEFAULT_BURGER_MENU, DEFAULT_CLOSE_BUTTON, DEFAULT_DATALIST_ID_SUFFIX, DEFAULT_ICON, DEFAULT_ID, DEFAULT_INVALID_MESSAGE, DEFAULT_INVALID_MESSAGE_ID_SUFFIX, DEFAULT_LABEL, DEFAULT_LABEL_ID_SUFFIX, DEFAULT_MESSAGE, DEFAULT_MESSAGE_ID_SUFFIX, DEFAULT_PLACEHOLDER, DEFAULT_PLACEHOLDER_ID_SUFFIX, DEFAULT_REMOVE, DEFAULT_ROWS, DEFAULT_SELECTED, DEFAULT_SELECT_ID_SUFFIX, DEFAULT_VALID_MESSAGE, DEFAULT_VALID_MESSAGE_ID_SUFFIX, DEFAULT_VIEWPORT, DENSITIES, DENSITY, DENSITY_CONST, DESKTOP_VIEWPORT, DividerMarginList, DividerVariantList, DocumentClickListener, DocumentScrollListener, DrawerBackdropList, DrawerDirectionList, DrawerPositionList, DrawerVariantList, EmphasisList, FieldSizingList, GapSpacingList, IconWeightList, InputTypeList, LabelVariantHorizontalList, LabelVariantList, LinkContentList, LinkReferrerPolicyList, LinkSizeList, LinkTargetList, LinkVariantList, MarginList, MaxWidthList, MetaNavigationDirective, NavigationContentDirective, NavigationDirective, NavigationItemSafeTriangle, NotificationAriaLiveList, NotificationLinkVariantList, NotificationVariantList, OrientationList, PageDocumentOverflowList, PageVariantList, PlacementHorizontalList, PlacementList, PlacementVerticalList, PopoverDelayList, PopoverWidthList, SEMANTIC, SEMANTICS, SecondaryActionDirective, SelectedTypeList, SemanticList, SizeList, SpacingList, StackAlignmentList, StackDirectionList, StackJustifyContentList, StackVariantList, TESTING_VIEWPORTS, TabsBehaviorList, TabsInitialSelectedModeList, TagBehaviorList, TextareaResizeList, TextareaWrapList, TooltipVariantList, ValidationList, WidthList, addAttributeToChildren, cls, delay, getBoolean, getBooleanAsString, getFloatingProps, getHideProp, getInputValue, getNotificationRole, getNumber, getOptionKey, getSearchInput, getStep, handleDataOutside, handleFixedDropdown, handleFixedPopover, hasVoiceOver, isArrayOfStrings, isEventTargetNavigationItem, isIOSSafari, isKeyboardEvent, stringPropVisible, uuid };
|
|
9842
|
+
export { AccordionBehaviorList, AccordionVariantList, AlignmentList, AutoCompleteList, BadgePlacementList, ButtonTypeList, ButtonVariantList, COLOR, COLORS, COLORS_SIMPLE, COLOR_CONST, COLOR_SIMPLE, CardBehaviorList, CardElevationLevelList, CustomSelectDropdownWidthList, CustomSelectListItemTypeList, DBAccordion, DBAccordionItem, DBBadge, DBBrand, DBButton, DBCard, DBCheckbox, DBCustomButton, DBCustomSelect, DBCustomSelectDropdown, DBCustomSelectFormField, DBCustomSelectList, DBCustomSelectListItem, DBDivider, DBDrawer, DBHeader, DBIcon, DBInfotext, DBInput, DBLink, DBNavigation, DBNavigationItem, DBNotification, DBPage, DBPopover, DBRadio, DBSection, DBSelect, DBStack, DBSwitch, DBTabItem, DBTabList, DBTabPanel, DBTable, DBTableBody, DBTableCaption, DBTableColumnsSizeList, DBTableDataCell, DBTableDividerList, DBTableFooter, DBTableHead, DBTableHeaderCell, DBTableHeaderCellScopeList, DBTableMobileVariantList, DBTableRow, DBTableRowSizeList, DBTableRowSubHeaderEmphasisList, DBTableStickyHeaderList, DBTableVariantList, DBTabs, DBTag, DBTextarea, DBTooltip, DB_UX_LOCAL_STORAGE_FRAMEWORK, DB_UX_LOCAL_STORAGE_MODE, DEFAULT_BACK, DEFAULT_BURGER_MENU, DEFAULT_CLOSE_BUTTON, DEFAULT_DATALIST_ID_SUFFIX, DEFAULT_ICON, DEFAULT_ID, DEFAULT_INVALID_MESSAGE, DEFAULT_INVALID_MESSAGE_ID_SUFFIX, DEFAULT_LABEL, DEFAULT_LABEL_ID_SUFFIX, DEFAULT_MESSAGE, DEFAULT_MESSAGE_ID_SUFFIX, DEFAULT_PLACEHOLDER, DEFAULT_PLACEHOLDER_ID_SUFFIX, DEFAULT_REMOVE, DEFAULT_ROWS, DEFAULT_SELECTED, DEFAULT_SELECT_ID_SUFFIX, DEFAULT_VALID_MESSAGE, DEFAULT_VALID_MESSAGE_ID_SUFFIX, DEFAULT_VIEWPORT, DENSITIES, DENSITY, DENSITY_CONST, DESKTOP_VIEWPORT, DividerMarginList, DividerVariantList, DocumentClickListener, DocumentScrollListener, DrawerBackdropList, DrawerDirectionList, DrawerPositionList, DrawerVariantList, EmphasisList, FieldSizingList, GapSpacingList, IconWeightList, InputTypeList, LabelVariantHorizontalList, LabelVariantList, LinkContentList, LinkReferrerPolicyList, LinkSizeList, LinkTargetList, LinkVariantList, MarginList, MaxWidthList, MetaNavigationDirective, NavigationContentDirective, NavigationDirective, NavigationItemSafeTriangle, NotificationAriaLiveList, NotificationLinkVariantList, NotificationVariantList, OrientationList, PageDocumentOverflowList, PageVariantList, PlacementHorizontalList, PlacementList, PlacementVerticalList, PopoverDelayList, PopoverWidthList, SEMANTIC, SEMANTICS, SecondaryActionDirective, SelectedTypeList, SemanticList, SizeList, SpacingList, StackAlignmentList, StackDirectionList, StackJustifyContentList, StackVariantList, TESTING_VIEWPORTS, TabsBehaviorList, TabsInitialSelectedModeList, TagBehaviorList, TextareaResizeList, TextareaWrapList, TooltipVariantList, ValidationList, WidthList, addAttributeToChildren, cls, delay, getBoolean, getBooleanAsString, getFloatingProps, getHideProp, getInputValue, getNotificationRole, getNumber, getOptionKey, getSearchInput, getStep, handleDataOutside, handleFixedDropdown, handleFixedPopover, hasVoiceOver, isArrayOfStrings, isEventTargetNavigationItem, isIOSSafari, isKeyboardEvent, stringPropVisible, uuid };
|
|
8894
9843
|
//# sourceMappingURL=db-ux-ngx-core-components.mjs.map
|