@db-ux/ngx-core-components 4.4.2 → 4.5.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 +20 -0
- package/fesm2022/db-ux-ngx-core-components.mjs +796 -345
- package/fesm2022/db-ux-ngx-core-components.mjs.map +1 -1
- package/index.d.ts +158 -68
- package/package.json +3 -3
|
@@ -75,15 +75,15 @@ const getBooleanAsString = (originBool) => {
|
|
|
75
75
|
if (originBool === undefined || originBool === null)
|
|
76
76
|
return;
|
|
77
77
|
if (typeof originBool === 'string') {
|
|
78
|
-
return String(
|
|
78
|
+
return String(originBool === 'true');
|
|
79
79
|
}
|
|
80
80
|
return String(originBool);
|
|
81
81
|
};
|
|
82
82
|
const getBoolean = (originBool, propertyName) => {
|
|
83
83
|
if (originBool === undefined || originBool === null)
|
|
84
84
|
return;
|
|
85
|
-
if (typeof originBool === 'string'
|
|
86
|
-
return Boolean(propertyName === originBool || originBool);
|
|
85
|
+
if (typeof originBool === 'string') {
|
|
86
|
+
return Boolean(propertyName === originBool || originBool === 'true');
|
|
87
87
|
}
|
|
88
88
|
return Boolean(originBool);
|
|
89
89
|
};
|
|
@@ -124,20 +124,19 @@ const getStep = (step) => {
|
|
|
124
124
|
const getInputValue = (value, inputType) => {
|
|
125
125
|
return inputType && ['number', 'range'].includes(inputType) ? getNumber(value) : value;
|
|
126
126
|
};
|
|
127
|
+
const toBool = (value) => typeof value === 'string' ? value === 'true' : value;
|
|
127
128
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
128
129
|
const getHideProp = (show) => {
|
|
129
130
|
if (show === undefined || show === null) {
|
|
130
131
|
return undefined;
|
|
131
132
|
}
|
|
132
|
-
return getBooleanAsString(!
|
|
133
|
+
return getBooleanAsString(!toBool(show));
|
|
133
134
|
};
|
|
134
135
|
const stringPropVisible = (givenString, showString) => {
|
|
135
136
|
if (showString === undefined) {
|
|
136
137
|
return !!givenString;
|
|
137
138
|
}
|
|
138
|
-
|
|
139
|
-
return Boolean(showString) && Boolean(givenString);
|
|
140
|
-
}
|
|
139
|
+
return toBool(showString) && Boolean(givenString);
|
|
141
140
|
};
|
|
142
141
|
const getSearchInput = (element) => element.querySelector(`input[type="search"]`);
|
|
143
142
|
const getOptionKey = (option, prefix) => {
|
|
@@ -171,7 +170,7 @@ const getNotificationRole = ({ semantic, role, ariaLive }) => {
|
|
|
171
170
|
}
|
|
172
171
|
};
|
|
173
172
|
|
|
174
|
-
const defaultProps$
|
|
173
|
+
const defaultProps$A = {};
|
|
175
174
|
class DBAccordionItem {
|
|
176
175
|
handleNameAttribute() {
|
|
177
176
|
if (this._ref()?.nativeElement) {
|
|
@@ -199,6 +198,7 @@ class DBAccordionItem {
|
|
|
199
198
|
this.defaultOpen = input(...(ngDevMode ? [undefined, { debugName: "defaultOpen" }] : []));
|
|
200
199
|
this.name = input(...(ngDevMode ? [undefined, { debugName: "name" }] : []));
|
|
201
200
|
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
201
|
+
this.propOverrides = input(...(ngDevMode ? [undefined, { debugName: "propOverrides" }] : []));
|
|
202
202
|
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : []));
|
|
203
203
|
this.disabled = input(...(ngDevMode ? [undefined, { debugName: "disabled" }] : []));
|
|
204
204
|
this.headlinePlain = input(...(ngDevMode ? [undefined, { debugName: "headlinePlain" }] : []));
|
|
@@ -242,12 +242,16 @@ class DBAccordionItem {
|
|
|
242
242
|
const attributes = parent.attributes;
|
|
243
243
|
for (let i = 0; i < attributes.length; i++) {
|
|
244
244
|
const attr = attributes.item(i);
|
|
245
|
-
if (attr &&
|
|
245
|
+
if (attr && attr.name !== 'data-density' &&
|
|
246
246
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
247
247
|
element.setAttribute(attr.name, attr.value);
|
|
248
248
|
parent.removeAttribute(attr.name);
|
|
249
249
|
}
|
|
250
|
-
if (attr && attr.name
|
|
250
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
251
|
+
element.setAttribute(attr.name, attr.value);
|
|
252
|
+
parent.removeAttribute(attr.name);
|
|
253
|
+
}
|
|
254
|
+
else if (attr && attr.name === "class") {
|
|
251
255
|
const isWebComponent = attr.value.includes("hydrated");
|
|
252
256
|
const value = attr.value.replace("hydrated", "").trim();
|
|
253
257
|
const currentClass = element.getAttribute("class");
|
|
@@ -274,8 +278,8 @@ class DBAccordionItem {
|
|
|
274
278
|
}
|
|
275
279
|
}
|
|
276
280
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBAccordionItem, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
277
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.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 }, id: { classPropertyName: "id", publicName: "id", 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
|
|
278
|
-
[attr.id]="id()"
|
|
281
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.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 }, 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
|
|
282
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
279
283
|
[class]="cls('db-accordion-item', className())"
|
|
280
284
|
>
|
|
281
285
|
<details
|
|
@@ -285,12 +289,12 @@ class DBAccordionItem {
|
|
|
285
289
|
[open]="_open()"
|
|
286
290
|
>
|
|
287
291
|
<summary (click)="handleToggle($event)">
|
|
288
|
-
@if(headlinePlain()){
|
|
292
|
+
@if(headlinePlain()){{{headlinePlain()}}} @if(!headlinePlain()){
|
|
289
293
|
<ng-content select="[headline]"> </ng-content>
|
|
290
294
|
}
|
|
291
295
|
</summary>
|
|
292
296
|
<div>
|
|
293
|
-
@if(text()){
|
|
297
|
+
@if(text()){{{text()}}}@else{
|
|
294
298
|
<ng-content></ng-content>
|
|
295
299
|
}
|
|
296
300
|
</div>
|
|
@@ -300,7 +304,7 @@ class DBAccordionItem {
|
|
|
300
304
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBAccordionItem, decorators: [{
|
|
301
305
|
type: Component,
|
|
302
306
|
args: [{ selector: "db-accordion-item", standalone: true, imports: [CommonModule], template: `<li
|
|
303
|
-
[attr.id]="id()"
|
|
307
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
304
308
|
[class]="cls('db-accordion-item', className())"
|
|
305
309
|
>
|
|
306
310
|
<details
|
|
@@ -310,20 +314,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
310
314
|
[open]="_open()"
|
|
311
315
|
>
|
|
312
316
|
<summary (click)="handleToggle($event)">
|
|
313
|
-
@if(headlinePlain()){
|
|
317
|
+
@if(headlinePlain()){{{headlinePlain()}}} @if(!headlinePlain()){
|
|
314
318
|
<ng-content select="[headline]"> </ng-content>
|
|
315
319
|
}
|
|
316
320
|
</summary>
|
|
317
321
|
<div>
|
|
318
|
-
@if(text()){
|
|
322
|
+
@if(text()){{{text()}}}@else{
|
|
319
323
|
<ng-content></ng-content>
|
|
320
324
|
}
|
|
321
325
|
</div>
|
|
322
326
|
</details>
|
|
323
327
|
</li> `, styles: [":host{display:contents}\n"] }]
|
|
324
|
-
}], ctorParameters: () => [], propDecorators: { defaultOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultOpen", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], 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 }] }] } });
|
|
328
|
+
}], ctorParameters: () => [], propDecorators: { defaultOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultOpen", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], headlinePlain: [{ type: i0.Input, args: [{ isSignal: true, alias: "headlinePlain", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], toggle: [{ type: i0.Output, args: ["toggle"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
325
329
|
|
|
326
|
-
const defaultProps$
|
|
330
|
+
const defaultProps$z = {};
|
|
327
331
|
class DBAccordion {
|
|
328
332
|
convertItems() {
|
|
329
333
|
try {
|
|
@@ -347,6 +351,7 @@ class DBAccordion {
|
|
|
347
351
|
this.initOpenIndex = input(...(ngDevMode ? [undefined, { debugName: "initOpenIndex" }] : []));
|
|
348
352
|
this.items = input(...(ngDevMode ? [undefined, { debugName: "items" }] : []));
|
|
349
353
|
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
354
|
+
this.propOverrides = input(...(ngDevMode ? [undefined, { debugName: "propOverrides" }] : []));
|
|
350
355
|
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : []));
|
|
351
356
|
this.variant = input(...(ngDevMode ? [undefined, { debugName: "variant" }] : []));
|
|
352
357
|
this._ref = viewChild("_ref", ...(ngDevMode ? [{ debugName: "_ref" }] : []));
|
|
@@ -440,12 +445,16 @@ class DBAccordion {
|
|
|
440
445
|
const attributes = parent.attributes;
|
|
441
446
|
for (let i = 0; i < attributes.length; i++) {
|
|
442
447
|
const attr = attributes.item(i);
|
|
443
|
-
if (attr &&
|
|
448
|
+
if (attr && attr.name !== 'data-density' &&
|
|
444
449
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
445
450
|
element.setAttribute(attr.name, attr.value);
|
|
446
451
|
parent.removeAttribute(attr.name);
|
|
447
452
|
}
|
|
448
|
-
if (attr && attr.name
|
|
453
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
454
|
+
element.setAttribute(attr.name, attr.value);
|
|
455
|
+
parent.removeAttribute(attr.name);
|
|
456
|
+
}
|
|
457
|
+
else if (attr && attr.name === "class") {
|
|
449
458
|
const isWebComponent = attr.value.includes("hydrated");
|
|
450
459
|
const value = attr.value.replace("hydrated", "").trim();
|
|
451
460
|
const currentClass = element.getAttribute("class");
|
|
@@ -470,9 +479,9 @@ class DBAccordion {
|
|
|
470
479
|
}
|
|
471
480
|
}
|
|
472
481
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBAccordion, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
473
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.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 }, 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
|
|
482
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.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
|
|
474
483
|
#_ref
|
|
475
|
-
[attr.id]="id()"
|
|
484
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
476
485
|
[class]="cls('db-accordion', className())"
|
|
477
486
|
[attr.data-variant]="variant()"
|
|
478
487
|
>
|
|
@@ -486,13 +495,13 @@ class DBAccordion {
|
|
|
486
495
|
[text]="item.text"
|
|
487
496
|
></db-accordion-item>
|
|
488
497
|
} }
|
|
489
|
-
</ul> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBAccordionItem, selector: "db-accordion-item", inputs: ["defaultOpen", "name", "id", "className", "disabled", "headlinePlain", "text"], outputs: ["toggle"] }] }); }
|
|
498
|
+
</ul> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBAccordionItem, selector: "db-accordion-item", inputs: ["defaultOpen", "name", "id", "propOverrides", "className", "disabled", "headlinePlain", "text"], outputs: ["toggle"] }] }); }
|
|
490
499
|
}
|
|
491
500
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBAccordion, decorators: [{
|
|
492
501
|
type: Component,
|
|
493
502
|
args: [{ selector: "db-accordion", standalone: true, imports: [CommonModule, DBAccordionItem], template: `<ul
|
|
494
503
|
#_ref
|
|
495
|
-
[attr.id]="id()"
|
|
504
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
496
505
|
[class]="cls('db-accordion', className())"
|
|
497
506
|
[attr.data-variant]="variant()"
|
|
498
507
|
>
|
|
@@ -507,7 +516,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
507
516
|
></db-accordion-item>
|
|
508
517
|
} }
|
|
509
518
|
</ul> `, styles: [":host{display:contents}\n"] }]
|
|
510
|
-
}], ctorParameters: () => [], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], behavior: [{ type: i0.Input, args: [{ isSignal: true, alias: "behavior", required: false }] }], initOpenIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "initOpenIndex", required: false }] }], items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
519
|
+
}], ctorParameters: () => [], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], behavior: [{ type: i0.Input, args: [{ isSignal: true, alias: "behavior", required: false }] }], initOpenIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "initOpenIndex", required: false }] }], items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", 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 }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
511
520
|
|
|
512
521
|
const AccordionVariantList = ['divider', 'card'];
|
|
513
522
|
const AccordionBehaviorList = ['multiple', 'single'];
|
|
@@ -613,17 +622,20 @@ const TESTING_VIEWPORTS = [{
|
|
|
613
622
|
const DB_UX_LOCAL_STORAGE_FRAMEWORK = 'db-ux-framework';
|
|
614
623
|
const DB_UX_LOCAL_STORAGE_MODE = 'db-ux-mode';
|
|
615
624
|
|
|
616
|
-
const defaultProps$
|
|
625
|
+
const defaultProps$y = {};
|
|
617
626
|
class DBBadge {
|
|
618
627
|
constructor() {
|
|
619
628
|
this.cls = cls;
|
|
629
|
+
this.getBooleanAsString = getBooleanAsString;
|
|
620
630
|
this.DEFAULT_LABEL = DEFAULT_LABEL;
|
|
621
631
|
this.placement = input(...(ngDevMode ? [undefined, { debugName: "placement" }] : []));
|
|
622
632
|
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
633
|
+
this.propOverrides = input(...(ngDevMode ? [undefined, { debugName: "propOverrides" }] : []));
|
|
623
634
|
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : []));
|
|
624
635
|
this.semantic = input(...(ngDevMode ? [undefined, { debugName: "semantic" }] : []));
|
|
625
636
|
this.size = input(...(ngDevMode ? [undefined, { debugName: "size" }] : []));
|
|
626
637
|
this.emphasis = input(...(ngDevMode ? [undefined, { debugName: "emphasis" }] : []));
|
|
638
|
+
this.wrap = input(...(ngDevMode ? [undefined, { debugName: "wrap" }] : []));
|
|
627
639
|
this.label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : []));
|
|
628
640
|
this.text = input(...(ngDevMode ? [undefined, { debugName: "text" }] : []));
|
|
629
641
|
this._ref = viewChild("_ref", ...(ngDevMode ? [{ debugName: "_ref" }] : []));
|
|
@@ -662,12 +674,16 @@ class DBBadge {
|
|
|
662
674
|
const attributes = parent.attributes;
|
|
663
675
|
for (let i = 0; i < attributes.length; i++) {
|
|
664
676
|
const attr = attributes.item(i);
|
|
665
|
-
if (attr &&
|
|
677
|
+
if (attr && attr.name !== 'data-density' &&
|
|
666
678
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
667
679
|
element.setAttribute(attr.name, attr.value);
|
|
668
680
|
parent.removeAttribute(attr.name);
|
|
669
681
|
}
|
|
670
|
-
if (attr && attr.name
|
|
682
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
683
|
+
element.setAttribute(attr.name, attr.value);
|
|
684
|
+
parent.removeAttribute(attr.name);
|
|
685
|
+
}
|
|
686
|
+
else if (attr && attr.name === "class") {
|
|
671
687
|
const isWebComponent = attr.value.includes("hydrated");
|
|
672
688
|
const value = attr.value.replace("hydrated", "").trim();
|
|
673
689
|
const currentClass = element.getAttribute("class");
|
|
@@ -691,16 +707,17 @@ class DBBadge {
|
|
|
691
707
|
}
|
|
692
708
|
}
|
|
693
709
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBBadge, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
694
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.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 }, 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 }, 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
|
|
710
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.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
|
|
695
711
|
#_ref
|
|
696
|
-
[attr.id]="id()"
|
|
712
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
697
713
|
[class]="cls('db-badge', className())"
|
|
698
714
|
[attr.data-semantic]="semantic()"
|
|
699
715
|
[attr.data-size]="size()"
|
|
700
716
|
[attr.data-emphasis]="emphasis()"
|
|
701
717
|
[attr.data-placement]="placement()"
|
|
718
|
+
[attr.data-wrap]="getBooleanAsString(wrap())"
|
|
702
719
|
[attr.data-label]="placement()?.startsWith('corner') && (label() ?? DEFAULT_LABEL)"
|
|
703
|
-
>@if(text()){
|
|
720
|
+
>@if(text()){{{text()}}}@else{
|
|
704
721
|
<ng-content></ng-content>
|
|
705
722
|
}</span
|
|
706
723
|
> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
@@ -709,22 +726,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
709
726
|
type: Component,
|
|
710
727
|
args: [{ selector: "db-badge", standalone: true, imports: [CommonModule], template: `<span
|
|
711
728
|
#_ref
|
|
712
|
-
[attr.id]="id()"
|
|
729
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
713
730
|
[class]="cls('db-badge', className())"
|
|
714
731
|
[attr.data-semantic]="semantic()"
|
|
715
732
|
[attr.data-size]="size()"
|
|
716
733
|
[attr.data-emphasis]="emphasis()"
|
|
717
734
|
[attr.data-placement]="placement()"
|
|
735
|
+
[attr.data-wrap]="getBooleanAsString(wrap())"
|
|
718
736
|
[attr.data-label]="placement()?.startsWith('corner') && (label() ?? DEFAULT_LABEL)"
|
|
719
|
-
>@if(text()){
|
|
737
|
+
>@if(text()){{{text()}}}@else{
|
|
720
738
|
<ng-content></ng-content>
|
|
721
739
|
}</span
|
|
722
740
|
> `, styles: [":host{display:contents}\n"] }]
|
|
723
|
-
}], ctorParameters: () => [], propDecorators: { placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "placement", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], semantic: [{ type: i0.Input, args: [{ isSignal: true, alias: "semantic", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], emphasis: [{ type: i0.Input, args: [{ isSignal: true, alias: "emphasis", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
741
|
+
}], 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 }] }], semantic: [{ type: i0.Input, args: [{ isSignal: true, alias: "semantic", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], emphasis: [{ type: i0.Input, args: [{ isSignal: true, alias: "emphasis", required: false }] }], wrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "wrap", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
724
742
|
|
|
725
743
|
const BadgePlacementList = ['inline', 'corner-top-left', 'corner-top-right', 'corner-center-left', 'corner-center-right', 'corner-bottom-left', 'corner-bottom-right'];
|
|
726
744
|
|
|
727
|
-
const defaultProps$
|
|
745
|
+
const defaultProps$x = {};
|
|
728
746
|
class DBBrand {
|
|
729
747
|
constructor() {
|
|
730
748
|
this.DEFAULT_ICON = DEFAULT_ICON;
|
|
@@ -734,6 +752,7 @@ class DBBrand {
|
|
|
734
752
|
this.icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : []));
|
|
735
753
|
this.showIcon = input(...(ngDevMode ? [undefined, { debugName: "showIcon" }] : []));
|
|
736
754
|
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
755
|
+
this.propOverrides = input(...(ngDevMode ? [undefined, { debugName: "propOverrides" }] : []));
|
|
737
756
|
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : []));
|
|
738
757
|
this.text = input(...(ngDevMode ? [undefined, { debugName: "text" }] : []));
|
|
739
758
|
this._ref = viewChild("_ref", ...(ngDevMode ? [{ debugName: "_ref" }] : []));
|
|
@@ -749,12 +768,16 @@ class DBBrand {
|
|
|
749
768
|
const attributes = parent.attributes;
|
|
750
769
|
for (let i = 0; i < attributes.length; i++) {
|
|
751
770
|
const attr = attributes.item(i);
|
|
752
|
-
if (attr &&
|
|
771
|
+
if (attr && attr.name !== 'data-density' &&
|
|
753
772
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
754
773
|
element.setAttribute(attr.name, attr.value);
|
|
755
774
|
parent.removeAttribute(attr.name);
|
|
756
775
|
}
|
|
757
|
-
if (attr && attr.name
|
|
776
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
777
|
+
element.setAttribute(attr.name, attr.value);
|
|
778
|
+
parent.removeAttribute(attr.name);
|
|
779
|
+
}
|
|
780
|
+
else if (attr && attr.name === "class") {
|
|
758
781
|
const isWebComponent = attr.value.includes("hydrated");
|
|
759
782
|
const value = attr.value.replace("hydrated", "").trim();
|
|
760
783
|
const currentClass = element.getAttribute("class");
|
|
@@ -777,14 +800,14 @@ class DBBrand {
|
|
|
777
800
|
}
|
|
778
801
|
}
|
|
779
802
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBBrand, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
780
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.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 }, 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
|
|
803
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.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
|
|
781
804
|
#_ref
|
|
782
805
|
[attr.data-icon]="hideLogo() ? 'none' : icon() ?? DEFAULT_ICON"
|
|
783
806
|
[attr.data-show-icon]="getBooleanAsString(showIcon())"
|
|
784
|
-
[attr.id]="id()"
|
|
807
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
785
808
|
[class]="cls('db-brand', className())"
|
|
786
809
|
>
|
|
787
|
-
@if(text()){
|
|
810
|
+
@if(text()){{{text()}}}@else{
|
|
788
811
|
<ng-content></ng-content>
|
|
789
812
|
}
|
|
790
813
|
</div> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
@@ -795,16 +818,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
795
818
|
#_ref
|
|
796
819
|
[attr.data-icon]="hideLogo() ? 'none' : icon() ?? DEFAULT_ICON"
|
|
797
820
|
[attr.data-show-icon]="getBooleanAsString(showIcon())"
|
|
798
|
-
[attr.id]="id()"
|
|
821
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
799
822
|
[class]="cls('db-brand', className())"
|
|
800
823
|
>
|
|
801
|
-
@if(text()){
|
|
824
|
+
@if(text()){{{text()}}}@else{
|
|
802
825
|
<ng-content></ng-content>
|
|
803
826
|
}
|
|
804
827
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
805
|
-
}], ctorParameters: () => [], propDecorators: { hideLogo: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideLogo", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
828
|
+
}], ctorParameters: () => [], propDecorators: { hideLogo: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideLogo", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
806
829
|
|
|
807
|
-
const defaultProps$
|
|
830
|
+
const defaultProps$w = {};
|
|
808
831
|
class DBButton {
|
|
809
832
|
getButtonType() {
|
|
810
833
|
if (this.type()) {
|
|
@@ -821,6 +844,7 @@ class DBButton {
|
|
|
821
844
|
this.getBooleanAsString = getBooleanAsString;
|
|
822
845
|
this.type = input(...(ngDevMode ? [undefined, { debugName: "type" }] : []));
|
|
823
846
|
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
847
|
+
this.propOverrides = input(...(ngDevMode ? [undefined, { debugName: "propOverrides" }] : []));
|
|
824
848
|
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : []));
|
|
825
849
|
this.disabled = input(...(ngDevMode ? [undefined, { debugName: "disabled" }] : []));
|
|
826
850
|
this.iconLeading = input(...(ngDevMode ? [undefined, { debugName: "iconLeading" }] : []));
|
|
@@ -832,6 +856,7 @@ class DBButton {
|
|
|
832
856
|
this.size = input(...(ngDevMode ? [undefined, { debugName: "size" }] : []));
|
|
833
857
|
this.width = input(...(ngDevMode ? [undefined, { debugName: "width" }] : []));
|
|
834
858
|
this.variant = input(...(ngDevMode ? [undefined, { debugName: "variant" }] : []));
|
|
859
|
+
this.wrap = input(...(ngDevMode ? [undefined, { debugName: "wrap" }] : []));
|
|
835
860
|
this.noText = input(...(ngDevMode ? [undefined, { debugName: "noText" }] : []));
|
|
836
861
|
this.name = input(...(ngDevMode ? [undefined, { debugName: "name" }] : []));
|
|
837
862
|
this.form = input(...(ngDevMode ? [undefined, { debugName: "form" }] : []));
|
|
@@ -851,12 +876,16 @@ class DBButton {
|
|
|
851
876
|
const attributes = parent.attributes;
|
|
852
877
|
for (let i = 0; i < attributes.length; i++) {
|
|
853
878
|
const attr = attributes.item(i);
|
|
854
|
-
if (attr &&
|
|
879
|
+
if (attr && attr.name !== 'data-density' &&
|
|
855
880
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
856
881
|
element.setAttribute(attr.name, attr.value);
|
|
857
882
|
parent.removeAttribute(attr.name);
|
|
858
883
|
}
|
|
859
|
-
if (attr && attr.name
|
|
884
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
885
|
+
element.setAttribute(attr.name, attr.value);
|
|
886
|
+
parent.removeAttribute(attr.name);
|
|
887
|
+
}
|
|
888
|
+
else if (attr && attr.name === "class") {
|
|
860
889
|
const isWebComponent = attr.value.includes("hydrated");
|
|
861
890
|
const value = attr.value.replace("hydrated", "").trim();
|
|
862
891
|
const currentClass = element.getAttribute("class");
|
|
@@ -879,9 +908,9 @@ class DBButton {
|
|
|
879
908
|
}
|
|
880
909
|
}
|
|
881
910
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBButton, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
882
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.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 }, 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 }, 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
|
|
911
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.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
|
|
883
912
|
#_ref
|
|
884
|
-
[attr.id]="id()"
|
|
913
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
885
914
|
[class]="cls('db-button', className())"
|
|
886
915
|
[attr.type]="getButtonType()"
|
|
887
916
|
[disabled]="getBoolean(disabled(), 'disabled')"
|
|
@@ -892,12 +921,13 @@ class DBButton {
|
|
|
892
921
|
[attr.data-size]="size()"
|
|
893
922
|
[attr.data-width]="width()"
|
|
894
923
|
[attr.data-variant]="variant()"
|
|
924
|
+
[attr.data-wrap]="getBooleanAsString(wrap())"
|
|
895
925
|
[attr.data-no-text]="getBooleanAsString(noText())"
|
|
896
926
|
[attr.name]="name()"
|
|
897
927
|
[attr.form]="form()"
|
|
898
928
|
[attr.value]="value()"
|
|
899
929
|
>
|
|
900
|
-
@if(text()){
|
|
930
|
+
@if(text()){{{text()}}}@else{
|
|
901
931
|
<ng-content></ng-content>
|
|
902
932
|
}
|
|
903
933
|
</button> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
@@ -906,7 +936,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
906
936
|
type: Component,
|
|
907
937
|
args: [{ selector: "db-button", standalone: true, imports: [CommonModule], template: `<button
|
|
908
938
|
#_ref
|
|
909
|
-
[attr.id]="id()"
|
|
939
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
910
940
|
[class]="cls('db-button', className())"
|
|
911
941
|
[attr.type]="getButtonType()"
|
|
912
942
|
[disabled]="getBoolean(disabled(), 'disabled')"
|
|
@@ -917,21 +947,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
917
947
|
[attr.data-size]="size()"
|
|
918
948
|
[attr.data-width]="width()"
|
|
919
949
|
[attr.data-variant]="variant()"
|
|
950
|
+
[attr.data-wrap]="getBooleanAsString(wrap())"
|
|
920
951
|
[attr.data-no-text]="getBooleanAsString(noText())"
|
|
921
952
|
[attr.name]="name()"
|
|
922
953
|
[attr.form]="form()"
|
|
923
954
|
[attr.value]="value()"
|
|
924
955
|
>
|
|
925
|
-
@if(text()){
|
|
956
|
+
@if(text()){{{text()}}}@else{
|
|
926
957
|
<ng-content></ng-content>
|
|
927
958
|
}
|
|
928
959
|
</button> `, styles: [":host{display:contents}\n"] }]
|
|
929
|
-
}], ctorParameters: () => [], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], iconLeading: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconLeading", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], showIconLeading: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIconLeading", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], iconTrailing: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconTrailing", required: false }] }], showIconTrailing: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIconTrailing", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], noText: [{ type: i0.Input, args: [{ isSignal: true, alias: "noText", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], form: [{ type: i0.Input, args: [{ isSignal: true, alias: "form", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], click: [{ type: i0.Output, args: ["click"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
960
|
+
}], ctorParameters: () => [], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", 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 }] }], iconLeading: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconLeading", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], showIconLeading: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIconLeading", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], iconTrailing: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconTrailing", required: false }] }], showIconTrailing: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIconTrailing", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], wrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "wrap", required: false }] }], noText: [{ type: i0.Input, args: [{ isSignal: true, alias: "noText", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], form: [{ type: i0.Input, args: [{ isSignal: true, alias: "form", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], click: [{ type: i0.Output, args: ["click"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
930
961
|
|
|
931
962
|
const ButtonVariantList = ['outlined', 'brand', 'filled', 'ghost'];
|
|
932
963
|
const ButtonTypeList = ['button', 'reset', 'submit'];
|
|
933
964
|
|
|
934
|
-
const defaultProps$
|
|
965
|
+
const defaultProps$v = {};
|
|
935
966
|
class DBCard {
|
|
936
967
|
handleClick(event) {
|
|
937
968
|
if (this.click) {
|
|
@@ -941,6 +972,7 @@ class DBCard {
|
|
|
941
972
|
constructor() {
|
|
942
973
|
this.cls = cls;
|
|
943
974
|
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
975
|
+
this.propOverrides = input(...(ngDevMode ? [undefined, { debugName: "propOverrides" }] : []));
|
|
944
976
|
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : []));
|
|
945
977
|
this.behavior = input(...(ngDevMode ? [undefined, { debugName: "behavior" }] : []));
|
|
946
978
|
this.elevationLevel = input(...(ngDevMode ? [undefined, { debugName: "elevationLevel" }] : []));
|
|
@@ -959,12 +991,16 @@ class DBCard {
|
|
|
959
991
|
const attributes = parent.attributes;
|
|
960
992
|
for (let i = 0; i < attributes.length; i++) {
|
|
961
993
|
const attr = attributes.item(i);
|
|
962
|
-
if (attr &&
|
|
994
|
+
if (attr && attr.name !== 'data-density' &&
|
|
963
995
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
964
996
|
element.setAttribute(attr.name, attr.value);
|
|
965
997
|
parent.removeAttribute(attr.name);
|
|
966
998
|
}
|
|
967
|
-
if (attr && attr.name
|
|
999
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
1000
|
+
element.setAttribute(attr.name, attr.value);
|
|
1001
|
+
parent.removeAttribute(attr.name);
|
|
1002
|
+
}
|
|
1003
|
+
else if (attr && attr.name === "class") {
|
|
968
1004
|
const isWebComponent = attr.value.includes("hydrated");
|
|
969
1005
|
const value = attr.value.replace("hydrated", "").trim();
|
|
970
1006
|
const currentClass = element.getAttribute("class");
|
|
@@ -987,9 +1023,9 @@ class DBCard {
|
|
|
987
1023
|
}
|
|
988
1024
|
}
|
|
989
1025
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBCard, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
990
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.16", type: DBCard, isStandalone: true, selector: "db-card", inputs: { id: { classPropertyName: "id", publicName: "id", 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
|
|
1026
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.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
|
|
991
1027
|
#_ref
|
|
992
|
-
[attr.id]="id()"
|
|
1028
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
993
1029
|
[class]="cls('db-card', className())"
|
|
994
1030
|
[attr.data-behavior]="behavior()"
|
|
995
1031
|
[attr.data-elevation-level]="elevationLevel()"
|
|
@@ -1003,7 +1039,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
1003
1039
|
type: Component,
|
|
1004
1040
|
args: [{ selector: "db-card", standalone: true, imports: [CommonModule], template: `<div
|
|
1005
1041
|
#_ref
|
|
1006
|
-
[attr.id]="id()"
|
|
1042
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
1007
1043
|
[class]="cls('db-card', className())"
|
|
1008
1044
|
[attr.data-behavior]="behavior()"
|
|
1009
1045
|
[attr.data-elevation-level]="elevationLevel()"
|
|
@@ -1012,7 +1048,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
1012
1048
|
>
|
|
1013
1049
|
<ng-content></ng-content>
|
|
1014
1050
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
1015
|
-
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], behavior: [{ type: i0.Input, args: [{ isSignal: true, alias: "behavior", required: false }] }], elevationLevel: [{ type: i0.Input, args: [{ isSignal: true, alias: "elevationLevel", required: false }] }], spacing: [{ type: i0.Input, args: [{ isSignal: true, alias: "spacing", required: false }] }], click: [{ type: i0.Output, args: ["click"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
1051
|
+
}], 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 }] }], behavior: [{ type: i0.Input, args: [{ isSignal: true, alias: "behavior", required: false }] }], elevationLevel: [{ type: i0.Input, args: [{ isSignal: true, alias: "elevationLevel", required: false }] }], spacing: [{ type: i0.Input, args: [{ isSignal: true, alias: "spacing", required: false }] }], click: [{ type: i0.Output, args: ["click"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
1016
1052
|
|
|
1017
1053
|
const CardBehaviorList = ['static', 'interactive'];
|
|
1018
1054
|
const CardElevationLevelList = ['1', '2', '3'];
|
|
@@ -1068,16 +1104,18 @@ const addValueResetEventListener = (element, props, resetFunction, signal) => {
|
|
|
1068
1104
|
}, signal);
|
|
1069
1105
|
};
|
|
1070
1106
|
|
|
1071
|
-
const defaultProps$
|
|
1107
|
+
const defaultProps$u = {};
|
|
1072
1108
|
class DBInfotext {
|
|
1073
1109
|
constructor() {
|
|
1074
1110
|
this.cls = cls;
|
|
1075
1111
|
this.getBooleanAsString = getBooleanAsString;
|
|
1076
1112
|
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
1113
|
+
this.propOverrides = input(...(ngDevMode ? [undefined, { debugName: "propOverrides" }] : []));
|
|
1077
1114
|
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : []));
|
|
1078
1115
|
this.icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : []));
|
|
1079
1116
|
this.semantic = input(...(ngDevMode ? [undefined, { debugName: "semantic" }] : []));
|
|
1080
1117
|
this.size = input(...(ngDevMode ? [undefined, { debugName: "size" }] : []));
|
|
1118
|
+
this.wrap = input(...(ngDevMode ? [undefined, { debugName: "wrap" }] : []));
|
|
1081
1119
|
this.showIcon = input(...(ngDevMode ? [undefined, { debugName: "showIcon" }] : []));
|
|
1082
1120
|
this.text = input(...(ngDevMode ? [undefined, { debugName: "text" }] : []));
|
|
1083
1121
|
this._ref = viewChild("_ref", ...(ngDevMode ? [{ debugName: "_ref" }] : []));
|
|
@@ -1093,12 +1131,16 @@ class DBInfotext {
|
|
|
1093
1131
|
const attributes = parent.attributes;
|
|
1094
1132
|
for (let i = 0; i < attributes.length; i++) {
|
|
1095
1133
|
const attr = attributes.item(i);
|
|
1096
|
-
if (attr &&
|
|
1134
|
+
if (attr && attr.name !== 'data-density' &&
|
|
1097
1135
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
1098
1136
|
element.setAttribute(attr.name, attr.value);
|
|
1099
1137
|
parent.removeAttribute(attr.name);
|
|
1100
1138
|
}
|
|
1101
|
-
if (attr && attr.name
|
|
1139
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
1140
|
+
element.setAttribute(attr.name, attr.value);
|
|
1141
|
+
parent.removeAttribute(attr.name);
|
|
1142
|
+
}
|
|
1143
|
+
else if (attr && attr.name === "class") {
|
|
1102
1144
|
const isWebComponent = attr.value.includes("hydrated");
|
|
1103
1145
|
const value = attr.value.replace("hydrated", "").trim();
|
|
1104
1146
|
const currentClass = element.getAttribute("class");
|
|
@@ -1121,15 +1163,16 @@ class DBInfotext {
|
|
|
1121
1163
|
}
|
|
1122
1164
|
}
|
|
1123
1165
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBInfotext, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1124
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: DBInfotext, isStandalone: true, selector: "db-infotext", inputs: { id: { classPropertyName: "id", publicName: "id", 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 }, 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
|
|
1166
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.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
|
|
1125
1167
|
#_ref
|
|
1126
|
-
[attr.id]="id()"
|
|
1168
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
1127
1169
|
[class]="cls('db-infotext', className())"
|
|
1128
1170
|
[attr.data-icon]="icon()"
|
|
1129
1171
|
[attr.data-semantic]="semantic()"
|
|
1130
1172
|
[attr.data-size]="size()"
|
|
1173
|
+
[attr.data-wrap]="getBooleanAsString(wrap())"
|
|
1131
1174
|
[attr.data-show-icon-leading]="getBooleanAsString(showIcon() ?? true)"
|
|
1132
|
-
>@if(text()){
|
|
1175
|
+
>@if(text()){{{text()}}}@else{
|
|
1133
1176
|
<ng-content></ng-content>
|
|
1134
1177
|
}</span
|
|
1135
1178
|
> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
@@ -1138,19 +1181,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
1138
1181
|
type: Component,
|
|
1139
1182
|
args: [{ selector: "db-infotext", standalone: true, imports: [CommonModule], template: `<span
|
|
1140
1183
|
#_ref
|
|
1141
|
-
[attr.id]="id()"
|
|
1184
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
1142
1185
|
[class]="cls('db-infotext', className())"
|
|
1143
1186
|
[attr.data-icon]="icon()"
|
|
1144
1187
|
[attr.data-semantic]="semantic()"
|
|
1145
1188
|
[attr.data-size]="size()"
|
|
1189
|
+
[attr.data-wrap]="getBooleanAsString(wrap())"
|
|
1146
1190
|
[attr.data-show-icon-leading]="getBooleanAsString(showIcon() ?? true)"
|
|
1147
|
-
>@if(text()){
|
|
1191
|
+
>@if(text()){{{text()}}}@else{
|
|
1148
1192
|
<ng-content></ng-content>
|
|
1149
1193
|
}</span
|
|
1150
1194
|
> `, styles: [":host{display:contents}\n"] }]
|
|
1151
|
-
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], semantic: [{ type: i0.Input, args: [{ isSignal: true, alias: "semantic", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
1195
|
+
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], semantic: [{ type: i0.Input, args: [{ isSignal: true, alias: "semantic", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], wrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "wrap", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
1152
1196
|
|
|
1153
|
-
const defaultProps$
|
|
1197
|
+
const defaultProps$t = {};
|
|
1154
1198
|
class DBCheckbox {
|
|
1155
1199
|
hasValidState() {
|
|
1156
1200
|
return !!(this.validMessage() ?? this.validation() === "valid");
|
|
@@ -1204,6 +1248,13 @@ class DBCheckbox {
|
|
|
1204
1248
|
this.focus.emit(event);
|
|
1205
1249
|
}
|
|
1206
1250
|
}
|
|
1251
|
+
resetIds() {
|
|
1252
|
+
const mId = this.id() ?? this.propOverrides()?.id ?? `checkbox-${uuid()}`;
|
|
1253
|
+
this._id.set(mId);
|
|
1254
|
+
this._messageId.set(mId + DEFAULT_MESSAGE_ID_SUFFIX);
|
|
1255
|
+
this._validMessageId.set(mId + DEFAULT_VALID_MESSAGE_ID_SUFFIX);
|
|
1256
|
+
this._invalidMessageId.set(mId + DEFAULT_INVALID_MESSAGE_ID_SUFFIX);
|
|
1257
|
+
}
|
|
1207
1258
|
constructor(renderer) {
|
|
1208
1259
|
this.renderer = renderer;
|
|
1209
1260
|
this.cls = cls;
|
|
@@ -1211,8 +1262,9 @@ class DBCheckbox {
|
|
|
1211
1262
|
this.getBoolean = getBoolean;
|
|
1212
1263
|
this.stringPropVisible = stringPropVisible;
|
|
1213
1264
|
this.DEFAULT_VALID_MESSAGE = DEFAULT_VALID_MESSAGE;
|
|
1214
|
-
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
1215
1265
|
this.invalidMessage = input(...(ngDevMode ? [undefined, { debugName: "invalidMessage" }] : []));
|
|
1266
|
+
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
1267
|
+
this.propOverrides = input(...(ngDevMode ? [undefined, { debugName: "propOverrides" }] : []));
|
|
1216
1268
|
this.message = input(...(ngDevMode ? [undefined, { debugName: "message" }] : []));
|
|
1217
1269
|
this.showMessage = input(...(ngDevMode ? [undefined, { debugName: "showMessage" }] : []));
|
|
1218
1270
|
this.indeterminate = input(...(ngDevMode ? [undefined, { debugName: "indeterminate" }] : []));
|
|
@@ -1244,6 +1296,16 @@ class DBCheckbox {
|
|
|
1244
1296
|
this._voiceOverFallback = signal("", ...(ngDevMode ? [{ debugName: "_voiceOverFallback" }] : []));
|
|
1245
1297
|
this.abortController = signal(undefined, ...(ngDevMode ? [{ debugName: "abortController" }] : []));
|
|
1246
1298
|
if (typeof window !== "undefined") {
|
|
1299
|
+
effect(() => {
|
|
1300
|
+
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
1301
|
+
this.id();
|
|
1302
|
+
// ---
|
|
1303
|
+
if (this.id() ?? this.propOverrides()?.id) {
|
|
1304
|
+
this.resetIds();
|
|
1305
|
+
}
|
|
1306
|
+
}, {
|
|
1307
|
+
// Enable writing to signals inside effects
|
|
1308
|
+
});
|
|
1247
1309
|
effect(() => {
|
|
1248
1310
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
1249
1311
|
this._ref();
|
|
@@ -1338,12 +1400,16 @@ class DBCheckbox {
|
|
|
1338
1400
|
const attributes = parent.attributes;
|
|
1339
1401
|
for (let i = 0; i < attributes.length; i++) {
|
|
1340
1402
|
const attr = attributes.item(i);
|
|
1341
|
-
if (attr &&
|
|
1403
|
+
if (attr && attr.name !== 'data-density' &&
|
|
1342
1404
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
1343
1405
|
element.setAttribute(attr.name, attr.value);
|
|
1344
1406
|
parent.removeAttribute(attr.name);
|
|
1345
1407
|
}
|
|
1346
|
-
if (attr && attr.name
|
|
1408
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
1409
|
+
element.setAttribute(attr.name, attr.value);
|
|
1410
|
+
parent.removeAttribute(attr.name);
|
|
1411
|
+
}
|
|
1412
|
+
else if (attr && attr.name === "class") {
|
|
1347
1413
|
const isWebComponent = attr.value.includes("hydrated");
|
|
1348
1414
|
const value = attr.value.replace("hydrated", "").trim();
|
|
1349
1415
|
const currentClass = element.getAttribute("class");
|
|
@@ -1379,11 +1445,7 @@ class DBCheckbox {
|
|
|
1379
1445
|
const element = this._ref()?.nativeElement;
|
|
1380
1446
|
this.enableAttributePassing(element, "db-checkbox");
|
|
1381
1447
|
this.initialized.set(true);
|
|
1382
|
-
|
|
1383
|
-
this._id.set(mId);
|
|
1384
|
-
this._messageId.set(mId + DEFAULT_MESSAGE_ID_SUFFIX);
|
|
1385
|
-
this._validMessageId.set(mId + DEFAULT_VALID_MESSAGE_ID_SUFFIX);
|
|
1386
|
-
this._invalidMessageId.set(mId + DEFAULT_INVALID_MESSAGE_ID_SUFFIX);
|
|
1448
|
+
this.resetIds();
|
|
1387
1449
|
this._invalidMessage.set(this.invalidMessage() || DEFAULT_INVALID_MESSAGE);
|
|
1388
1450
|
}
|
|
1389
1451
|
}
|
|
@@ -1391,7 +1453,7 @@ class DBCheckbox {
|
|
|
1391
1453
|
this.abortController()?.abort();
|
|
1392
1454
|
}
|
|
1393
1455
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBCheckbox, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1394
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: DBCheckbox, isStandalone: true, selector: "db-checkbox", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null },
|
|
1456
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.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: [{
|
|
1395
1457
|
provide: NG_VALUE_ACCESSOR,
|
|
1396
1458
|
useExisting: DBCheckbox,
|
|
1397
1459
|
multi: true
|
|
@@ -1418,7 +1480,7 @@ class DBCheckbox {
|
|
|
1418
1480
|
(focus)="handleFocus($event)"
|
|
1419
1481
|
[attr.aria-describedby]="ariaDescribedBy() ?? _descByIds()"
|
|
1420
1482
|
/>
|
|
1421
|
-
@if(label()){
|
|
1483
|
+
@if(label()){{{label()}}}@else{
|
|
1422
1484
|
<ng-content></ng-content>
|
|
1423
1485
|
}</label
|
|
1424
1486
|
>
|
|
@@ -1448,7 +1510,7 @@ class DBCheckbox {
|
|
|
1448
1510
|
role="status"
|
|
1449
1511
|
>{{_voiceOverFallback()}}</span
|
|
1450
1512
|
>
|
|
1451
|
-
</div> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBInfotext, selector: "db-infotext", inputs: ["id", "className", "icon", "semantic", "size", "showIcon", "text"] }] }); }
|
|
1513
|
+
</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"] }] }); }
|
|
1452
1514
|
}
|
|
1453
1515
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBCheckbox, decorators: [{
|
|
1454
1516
|
type: Component,
|
|
@@ -1479,7 +1541,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
1479
1541
|
(focus)="handleFocus($event)"
|
|
1480
1542
|
[attr.aria-describedby]="ariaDescribedBy() ?? _descByIds()"
|
|
1481
1543
|
/>
|
|
1482
|
-
@if(label()){
|
|
1544
|
+
@if(label()){{{label()}}}@else{
|
|
1483
1545
|
<ng-content></ng-content>
|
|
1484
1546
|
}</label
|
|
1485
1547
|
>
|
|
@@ -1510,7 +1572,105 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
1510
1572
|
>{{_voiceOverFallback()}}</span
|
|
1511
1573
|
>
|
|
1512
1574
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
1513
|
-
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }],
|
|
1575
|
+
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { invalidMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalidMessage", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: false }] }], showMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "showMessage", required: false }] }], indeterminate: [{ type: i0.Input, args: [{ isSignal: true, alias: "indeterminate", required: false }] }], checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }, { type: i0.Output, args: ["checkedChange"] }], validMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "validMessage", required: false }] }], validation: [{ type: i0.Input, args: [{ isSignal: true, alias: "validation", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], showRequiredAsterisk: [{ type: i0.Input, args: [{ isSignal: true, alias: "showRequiredAsterisk", required: false }] }], showLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLabel", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }, { type: i0.Output, args: ["disabledChange"] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], ariaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedBy", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], messageIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "messageIcon", required: false }] }], change: [{ type: i0.Output, args: ["change"] }], blur: [{ type: i0.Output, args: ["blur"] }], focus: [{ type: i0.Output, args: ["focus"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
1576
|
+
|
|
1577
|
+
const defaultProps$s = {};
|
|
1578
|
+
class DBCustomButton {
|
|
1579
|
+
constructor() {
|
|
1580
|
+
this.cls = cls;
|
|
1581
|
+
this.getBooleanAsString = getBooleanAsString;
|
|
1582
|
+
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
1583
|
+
this.propOverrides = input(...(ngDevMode ? [undefined, { debugName: "propOverrides" }] : []));
|
|
1584
|
+
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : []));
|
|
1585
|
+
this.iconLeading = input(...(ngDevMode ? [undefined, { debugName: "iconLeading" }] : []));
|
|
1586
|
+
this.icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : []));
|
|
1587
|
+
this.showIconLeading = input(...(ngDevMode ? [undefined, { debugName: "showIconLeading" }] : []));
|
|
1588
|
+
this.showIcon = input(...(ngDevMode ? [undefined, { debugName: "showIcon" }] : []));
|
|
1589
|
+
this.iconTrailing = input(...(ngDevMode ? [undefined, { debugName: "iconTrailing" }] : []));
|
|
1590
|
+
this.showIconTrailing = input(...(ngDevMode ? [undefined, { debugName: "showIconTrailing" }] : []));
|
|
1591
|
+
this.size = input(...(ngDevMode ? [undefined, { debugName: "size" }] : []));
|
|
1592
|
+
this.width = input(...(ngDevMode ? [undefined, { debugName: "width" }] : []));
|
|
1593
|
+
this.variant = input(...(ngDevMode ? [undefined, { debugName: "variant" }] : []));
|
|
1594
|
+
this.noText = input(...(ngDevMode ? [undefined, { debugName: "noText" }] : []));
|
|
1595
|
+
this._ref = viewChild("_ref", ...(ngDevMode ? [{ debugName: "_ref" }] : []));
|
|
1596
|
+
}
|
|
1597
|
+
/**
|
|
1598
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
1599
|
+
* @param element the ref for the component
|
|
1600
|
+
* @param customElementSelector the custom element like `my-component`
|
|
1601
|
+
*/
|
|
1602
|
+
enableAttributePassing(element, customElementSelector) {
|
|
1603
|
+
const parent = element?.closest(customElementSelector);
|
|
1604
|
+
if (element && parent) {
|
|
1605
|
+
const attributes = parent.attributes;
|
|
1606
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
1607
|
+
const attr = attributes.item(i);
|
|
1608
|
+
if (attr && attr.name !== 'data-density' &&
|
|
1609
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
1610
|
+
element.setAttribute(attr.name, attr.value);
|
|
1611
|
+
parent.removeAttribute(attr.name);
|
|
1612
|
+
}
|
|
1613
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
1614
|
+
element.setAttribute(attr.name, attr.value);
|
|
1615
|
+
parent.removeAttribute(attr.name);
|
|
1616
|
+
}
|
|
1617
|
+
else if (attr && attr.name === "class") {
|
|
1618
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
1619
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
1620
|
+
const currentClass = element.getAttribute("class");
|
|
1621
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
1622
|
+
if (isWebComponent) {
|
|
1623
|
+
// Stencil is using this class for lazy loading component
|
|
1624
|
+
parent.setAttribute("class", "hydrated");
|
|
1625
|
+
}
|
|
1626
|
+
else {
|
|
1627
|
+
parent.removeAttribute(attr.name);
|
|
1628
|
+
}
|
|
1629
|
+
}
|
|
1630
|
+
}
|
|
1631
|
+
}
|
|
1632
|
+
}
|
|
1633
|
+
ngAfterViewInit() {
|
|
1634
|
+
if (typeof window !== "undefined") {
|
|
1635
|
+
const element = this._ref()?.nativeElement;
|
|
1636
|
+
this.enableAttributePassing(element, "db-custom-button");
|
|
1637
|
+
}
|
|
1638
|
+
}
|
|
1639
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBCustomButton, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1640
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.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
|
|
1641
|
+
#_ref
|
|
1642
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
1643
|
+
[class]="cls('db-custom-button', className())"
|
|
1644
|
+
[attr.data-icon]="iconLeading() ?? icon()"
|
|
1645
|
+
[attr.data-show-icon]="getBooleanAsString(showIconLeading() ?? showIcon())"
|
|
1646
|
+
[attr.data-icon-trailing]="iconTrailing()"
|
|
1647
|
+
[attr.data-show-icon-trailing]="getBooleanAsString(showIconTrailing())"
|
|
1648
|
+
[attr.data-size]="size()"
|
|
1649
|
+
[attr.data-width]="width()"
|
|
1650
|
+
[attr.data-variant]="variant()"
|
|
1651
|
+
[attr.data-no-text]="getBooleanAsString(noText())"
|
|
1652
|
+
>
|
|
1653
|
+
<ng-content></ng-content>
|
|
1654
|
+
</div> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
1655
|
+
}
|
|
1656
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBCustomButton, decorators: [{
|
|
1657
|
+
type: Component,
|
|
1658
|
+
args: [{ selector: "db-custom-button", standalone: true, imports: [CommonModule], template: `<div
|
|
1659
|
+
#_ref
|
|
1660
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
1661
|
+
[class]="cls('db-custom-button', className())"
|
|
1662
|
+
[attr.data-icon]="iconLeading() ?? icon()"
|
|
1663
|
+
[attr.data-show-icon]="getBooleanAsString(showIconLeading() ?? showIcon())"
|
|
1664
|
+
[attr.data-icon-trailing]="iconTrailing()"
|
|
1665
|
+
[attr.data-show-icon-trailing]="getBooleanAsString(showIconTrailing())"
|
|
1666
|
+
[attr.data-size]="size()"
|
|
1667
|
+
[attr.data-width]="width()"
|
|
1668
|
+
[attr.data-variant]="variant()"
|
|
1669
|
+
[attr.data-no-text]="getBooleanAsString(noText())"
|
|
1670
|
+
>
|
|
1671
|
+
<ng-content></ng-content>
|
|
1672
|
+
</div> `, styles: [":host{display:contents}\n"] }]
|
|
1673
|
+
}], 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 }] }], iconLeading: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconLeading", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], showIconLeading: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIconLeading", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], iconTrailing: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconTrailing", required: false }] }], showIconTrailing: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIconTrailing", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], noText: [{ type: i0.Input, args: [{ isSignal: true, alias: "noText", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
1514
1674
|
|
|
1515
1675
|
class DocumentClickListener {
|
|
1516
1676
|
static { this.callbacks = {}; }
|
|
@@ -1811,9 +1971,53 @@ const getFloatingProps = (element, parent, placement) => {
|
|
|
1811
1971
|
innerHeight
|
|
1812
1972
|
};
|
|
1813
1973
|
};
|
|
1974
|
+
const MAX_ANCESTOR_DEPTH = 10;
|
|
1975
|
+
const ancestorCache = new WeakMap();
|
|
1976
|
+
const getAncestorHasCorrectedPlacement = (element) => {
|
|
1977
|
+
if (ancestorCache.has(element)) {
|
|
1978
|
+
return ancestorCache.get(element);
|
|
1979
|
+
}
|
|
1980
|
+
let current = element.parentElement;
|
|
1981
|
+
let anchor = 0;
|
|
1982
|
+
while (current && anchor < MAX_ANCESTOR_DEPTH) {
|
|
1983
|
+
if (current.dataset['correctedPlacement']) {
|
|
1984
|
+
ancestorCache.set(element, current);
|
|
1985
|
+
return current;
|
|
1986
|
+
}
|
|
1987
|
+
current = current.parentElement;
|
|
1988
|
+
anchor += 1;
|
|
1989
|
+
}
|
|
1990
|
+
ancestorCache.set(element, null);
|
|
1991
|
+
return null;
|
|
1992
|
+
};
|
|
1814
1993
|
const handleFixedPopover = (element, parent, placement) => {
|
|
1815
|
-
const
|
|
1816
|
-
const
|
|
1994
|
+
const parentComputedStyles = getComputedStyle(parent);
|
|
1995
|
+
const parentHasFloatingPosition = ['absolute', 'fixed'].includes(parentComputedStyles.position);
|
|
1996
|
+
const ancestorWithCorrectedPlacement = getAncestorHasCorrectedPlacement(element);
|
|
1997
|
+
const noFloatingAncestor = !ancestorWithCorrectedPlacement && !parentHasFloatingPosition;
|
|
1998
|
+
const distance = getComputedStyle(element)?.getPropertyValue('--db-popover-distance') ?? '0px';
|
|
1999
|
+
let { top, height, width, childHeight, childWidth, right, left, bottom, correctedPlacement, innerWidth, innerHeight } = getFloatingProps(element, parent, placement);
|
|
2000
|
+
if (ancestorWithCorrectedPlacement) {
|
|
2001
|
+
const ancestorRect = ancestorWithCorrectedPlacement.getBoundingClientRect();
|
|
2002
|
+
left = Math.abs(left - ancestorRect.left);
|
|
2003
|
+
right = (width + Math.abs(right - ancestorRect.right)) * 1.5; // We add a transform -50% later
|
|
2004
|
+
top = Math.abs(top - ancestorRect.top);
|
|
2005
|
+
bottom = (height + Math.abs(bottom - ancestorRect.bottom)) * 1.5; // We add a transform -50% later
|
|
2006
|
+
}
|
|
2007
|
+
if (parentHasFloatingPosition) {
|
|
2008
|
+
/*
|
|
2009
|
+
* If we have a floating element inside an element with position:absolute/fixed
|
|
2010
|
+
* we need to calculate with relative values
|
|
2011
|
+
* */
|
|
2012
|
+
left = 0;
|
|
2013
|
+
right = width;
|
|
2014
|
+
top = 0;
|
|
2015
|
+
bottom = height;
|
|
2016
|
+
if (['auto', 'inherit', '0'].includes(parentComputedStyles.zIndex)) {
|
|
2017
|
+
// We need the default zIndex for floating elements on the parent
|
|
2018
|
+
parent.style.zIndex = '1';
|
|
2019
|
+
}
|
|
2020
|
+
}
|
|
1817
2021
|
// Tooltip arrow position
|
|
1818
2022
|
if (childWidth > width && (correctedPlacement.startsWith('bottom') || correctedPlacement.startsWith('top'))) {
|
|
1819
2023
|
const diff = width / 2 / childWidth * 100;
|
|
@@ -1823,6 +2027,9 @@ const handleFixedPopover = (element, parent, placement) => {
|
|
|
1823
2027
|
else if (correctedPlacement.endsWith('end')) {
|
|
1824
2028
|
element.style.setProperty('--db-tooltip-arrow-inline-start', `${100 - diff}%`);
|
|
1825
2029
|
}
|
|
2030
|
+
else {
|
|
2031
|
+
element.style.setProperty('--db-tooltip-arrow-inline-start', `50%`);
|
|
2032
|
+
}
|
|
1826
2033
|
}
|
|
1827
2034
|
if (childHeight > height && (correctedPlacement.startsWith('left') || correctedPlacement.startsWith('bottom'))) {
|
|
1828
2035
|
const diff = height / 2 / childHeight * 100;
|
|
@@ -1832,6 +2039,9 @@ const handleFixedPopover = (element, parent, placement) => {
|
|
|
1832
2039
|
else if (correctedPlacement.endsWith('end')) {
|
|
1833
2040
|
element.style.setProperty('--db-tooltip-arrow-block-start', `${100 - diff}%`);
|
|
1834
2041
|
}
|
|
2042
|
+
else {
|
|
2043
|
+
element.style.setProperty('--db-tooltip-arrow-block-start', `50%`);
|
|
2044
|
+
}
|
|
1835
2045
|
}
|
|
1836
2046
|
// Popover position
|
|
1837
2047
|
if (correctedPlacement === 'right' || correctedPlacement === 'left') {
|
|
@@ -1841,11 +2051,11 @@ const handleFixedPopover = (element, parent, placement) => {
|
|
|
1841
2051
|
else if (correctedPlacement === 'right-start' || correctedPlacement === 'left-start') {
|
|
1842
2052
|
const end = top + childHeight;
|
|
1843
2053
|
element.style.insetBlockStart = `${top}px`;
|
|
1844
|
-
element.style.insetBlockEnd = `${end > innerHeight ? innerHeight : end}px`;
|
|
2054
|
+
element.style.insetBlockEnd = `${!parentHasFloatingPosition && end > innerHeight ? innerHeight : end}px`;
|
|
1845
2055
|
}
|
|
1846
2056
|
else if (correctedPlacement === 'right-end' || correctedPlacement === 'left-end') {
|
|
1847
2057
|
const start = bottom - childHeight;
|
|
1848
|
-
element.style.insetBlockStart = `${start < 0 ? 0 : start}px`;
|
|
2058
|
+
element.style.insetBlockStart = `${!parentHasFloatingPosition && start < 0 ? 0 : start}px`;
|
|
1849
2059
|
element.style.insetBlockEnd = `${bottom}px`;
|
|
1850
2060
|
}
|
|
1851
2061
|
else if (correctedPlacement === 'top' || correctedPlacement === 'bottom') {
|
|
@@ -1855,32 +2065,32 @@ const handleFixedPopover = (element, parent, placement) => {
|
|
|
1855
2065
|
else if (correctedPlacement === 'top-start' || correctedPlacement === 'bottom-start') {
|
|
1856
2066
|
const end = left + childWidth;
|
|
1857
2067
|
element.style.insetInlineStart = `${left}px`;
|
|
1858
|
-
element.style.insetInlineEnd = `${end > innerWidth ? innerWidth : end}px`;
|
|
2068
|
+
element.style.insetInlineEnd = `${!parentHasFloatingPosition && end > innerWidth ? innerWidth : end}px`;
|
|
1859
2069
|
}
|
|
1860
2070
|
else if (correctedPlacement === 'top-end' || correctedPlacement === 'bottom-end') {
|
|
1861
|
-
const start =
|
|
1862
|
-
element.style.insetInlineStart = `${
|
|
1863
|
-
element.style.insetInlineEnd = `${
|
|
2071
|
+
const start = right - childWidth;
|
|
2072
|
+
element.style.insetInlineStart = `${!parentHasFloatingPosition && start < 0 ? 0 : start}px`;
|
|
2073
|
+
element.style.insetInlineEnd = `${right}px`;
|
|
1864
2074
|
}
|
|
1865
2075
|
if (correctedPlacement?.startsWith('right')) {
|
|
1866
2076
|
const end = right + childWidth;
|
|
1867
2077
|
element.style.insetInlineStart = `calc(${right}px + ${distance})`;
|
|
1868
|
-
element.style.insetInlineEnd = `calc(${end > innerWidth ? innerWidth : end}px + ${distance})`;
|
|
2078
|
+
element.style.insetInlineEnd = `calc(${noFloatingAncestor && end > innerWidth ? innerWidth : end}px + ${distance})`;
|
|
1869
2079
|
}
|
|
1870
2080
|
else if (correctedPlacement?.startsWith('left')) {
|
|
1871
2081
|
const start = left - childWidth;
|
|
1872
|
-
element.style.insetInlineStart = `calc(${start < 0 ? 0 : start}px - ${distance})`;
|
|
2082
|
+
element.style.insetInlineStart = `calc(${noFloatingAncestor && start < 0 ? 0 : start}px - ${distance})`;
|
|
1873
2083
|
element.style.insetInlineEnd = `calc(${right}px - ${distance})`;
|
|
1874
2084
|
}
|
|
1875
2085
|
else if (correctedPlacement?.startsWith('top')) {
|
|
1876
2086
|
const start = top - childHeight;
|
|
1877
|
-
element.style.insetBlockStart = `calc(${start < 0 ? 0 : start}px - ${distance})`;
|
|
1878
|
-
element.style.insetBlockEnd = `calc(${bottom}px - ${distance})`;
|
|
2087
|
+
element.style.insetBlockStart = `calc(${noFloatingAncestor && start < 0 ? 0 : start}px - ${distance})`;
|
|
2088
|
+
element.style.insetBlockEnd = `calc(${parentHasFloatingPosition ? start : bottom}px - ${distance})`;
|
|
1879
2089
|
}
|
|
1880
2090
|
else if (correctedPlacement?.startsWith('bottom')) {
|
|
1881
2091
|
const end = bottom + childHeight;
|
|
1882
|
-
element.style.insetBlockStart = `calc(${bottom}px + ${distance})`;
|
|
1883
|
-
element.style.insetBlockEnd = `calc(${end > innerHeight ? innerHeight : end}px + ${distance})`;
|
|
2092
|
+
element.style.insetBlockStart = `calc(${parentHasFloatingPosition ? end : bottom}px + ${distance})`;
|
|
2093
|
+
element.style.insetBlockEnd = `calc(${noFloatingAncestor && end > innerHeight ? innerHeight : end}px + ${distance})`;
|
|
1884
2094
|
}
|
|
1885
2095
|
element.style.position = 'fixed';
|
|
1886
2096
|
element.dataset['correctedPlacement'] = correctedPlacement;
|
|
@@ -1891,6 +2101,7 @@ class DBCustomSelectDropdown {
|
|
|
1891
2101
|
constructor() {
|
|
1892
2102
|
this.cls = cls;
|
|
1893
2103
|
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
2104
|
+
this.propOverrides = input(...(ngDevMode ? [undefined, { debugName: "propOverrides" }] : []));
|
|
1894
2105
|
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : []));
|
|
1895
2106
|
this.width = input(defaultProps$r["width"], ...(ngDevMode ? [{ debugName: "width" }] : []));
|
|
1896
2107
|
this._ref = viewChild("_ref", ...(ngDevMode ? [{ debugName: "_ref" }] : []));
|
|
@@ -1906,12 +2117,16 @@ class DBCustomSelectDropdown {
|
|
|
1906
2117
|
const attributes = parent.attributes;
|
|
1907
2118
|
for (let i = 0; i < attributes.length; i++) {
|
|
1908
2119
|
const attr = attributes.item(i);
|
|
1909
|
-
if (attr &&
|
|
2120
|
+
if (attr && attr.name !== 'data-density' &&
|
|
1910
2121
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
1911
2122
|
element.setAttribute(attr.name, attr.value);
|
|
1912
2123
|
parent.removeAttribute(attr.name);
|
|
1913
2124
|
}
|
|
1914
|
-
if (attr && attr.name
|
|
2125
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
2126
|
+
element.setAttribute(attr.name, attr.value);
|
|
2127
|
+
parent.removeAttribute(attr.name);
|
|
2128
|
+
}
|
|
2129
|
+
else if (attr && attr.name === "class") {
|
|
1915
2130
|
const isWebComponent = attr.value.includes("hydrated");
|
|
1916
2131
|
const value = attr.value.replace("hydrated", "").trim();
|
|
1917
2132
|
const currentClass = element.getAttribute("class");
|
|
@@ -1934,10 +2149,10 @@ class DBCustomSelectDropdown {
|
|
|
1934
2149
|
}
|
|
1935
2150
|
}
|
|
1936
2151
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBCustomSelectDropdown, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1937
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.16", type: DBCustomSelectDropdown, isStandalone: true, selector: "db-custom-select-dropdown", inputs: { id: { classPropertyName: "id", publicName: "id", 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
|
|
2152
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.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
|
|
1938
2153
|
data-spacing="none"
|
|
1939
2154
|
#_ref
|
|
1940
|
-
[attr.id]="id()"
|
|
2155
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
1941
2156
|
[class]="cls('db-custom-select-dropdown db-card', className())"
|
|
1942
2157
|
[attr.data-width]="width()"
|
|
1943
2158
|
>
|
|
@@ -1949,13 +2164,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
1949
2164
|
args: [{ selector: "db-custom-select-dropdown", standalone: true, imports: [CommonModule], template: `<article
|
|
1950
2165
|
data-spacing="none"
|
|
1951
2166
|
#_ref
|
|
1952
|
-
[attr.id]="id()"
|
|
2167
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
1953
2168
|
[class]="cls('db-custom-select-dropdown db-card', className())"
|
|
1954
2169
|
[attr.data-width]="width()"
|
|
1955
2170
|
>
|
|
1956
2171
|
<ng-content></ng-content>
|
|
1957
2172
|
</article> `, styles: [":host{display:contents}\n"] }]
|
|
1958
|
-
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
2173
|
+
}], 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 }] }] } });
|
|
1959
2174
|
|
|
1960
2175
|
const defaultProps$q = {};
|
|
1961
2176
|
class DBCustomSelectListItem {
|
|
@@ -1982,6 +2197,7 @@ class DBCustomSelectListItem {
|
|
|
1982
2197
|
this.type = input(...(ngDevMode ? [undefined, { debugName: "type" }] : []));
|
|
1983
2198
|
this.checked = model(...(ngDevMode ? [undefined, { debugName: "checked" }] : []));
|
|
1984
2199
|
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
2200
|
+
this.propOverrides = input(...(ngDevMode ? [undefined, { debugName: "propOverrides" }] : []));
|
|
1985
2201
|
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : []));
|
|
1986
2202
|
this.groupTitle = input(...(ngDevMode ? [undefined, { debugName: "groupTitle" }] : []));
|
|
1987
2203
|
this.icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : []));
|
|
@@ -2016,12 +2232,16 @@ class DBCustomSelectListItem {
|
|
|
2016
2232
|
const attributes = parent.attributes;
|
|
2017
2233
|
for (let i = 0; i < attributes.length; i++) {
|
|
2018
2234
|
const attr = attributes.item(i);
|
|
2019
|
-
if (attr &&
|
|
2235
|
+
if (attr && attr.name !== 'data-density' &&
|
|
2020
2236
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
2021
2237
|
element.setAttribute(attr.name, attr.value);
|
|
2022
2238
|
parent.removeAttribute(attr.name);
|
|
2023
2239
|
}
|
|
2024
|
-
if (attr && attr.name
|
|
2240
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
2241
|
+
element.setAttribute(attr.name, attr.value);
|
|
2242
|
+
parent.removeAttribute(attr.name);
|
|
2243
|
+
}
|
|
2244
|
+
else if (attr && attr.name === "class") {
|
|
2025
2245
|
const isWebComponent = attr.value.includes("hydrated");
|
|
2026
2246
|
const value = attr.value.replace("hydrated", "").trim();
|
|
2027
2247
|
const currentClass = element.getAttribute("class");
|
|
@@ -2059,13 +2279,13 @@ class DBCustomSelectListItem {
|
|
|
2059
2279
|
}
|
|
2060
2280
|
}
|
|
2061
2281
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBCustomSelectListItem, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2062
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.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 }, 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: [{
|
|
2282
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.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: [{
|
|
2063
2283
|
provide: NG_VALUE_ACCESSOR,
|
|
2064
2284
|
useExisting: DBCustomSelectListItem,
|
|
2065
2285
|
multi: true
|
|
2066
2286
|
}], viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<li
|
|
2067
2287
|
#_ref
|
|
2068
|
-
[attr.id]="id()"
|
|
2288
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
2069
2289
|
[class]="cls('db-custom-select-list-item', className(), {
|
|
2070
2290
|
'db-checkbox': type() === 'checkbox' && !isGroupTitle(),
|
|
2071
2291
|
'db-radio': type() !== 'checkbox' && !isGroupTitle()
|
|
@@ -2088,7 +2308,7 @@ class DBCustomSelectListItem {
|
|
|
2088
2308
|
[value]="value()"
|
|
2089
2309
|
(change)="handleChange($event)"
|
|
2090
2310
|
/>
|
|
2091
|
-
@if(label()){
|
|
2311
|
+
@if(label()){{{label()}}}@else{
|
|
2092
2312
|
<ng-content></ng-content>
|
|
2093
2313
|
}</label
|
|
2094
2314
|
>
|
|
@@ -2105,7 +2325,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
2105
2325
|
multi: true
|
|
2106
2326
|
}], selector: "db-custom-select-list-item", standalone: true, imports: [CommonModule], template: `<li
|
|
2107
2327
|
#_ref
|
|
2108
|
-
[attr.id]="id()"
|
|
2328
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
2109
2329
|
[class]="cls('db-custom-select-list-item', className(), {
|
|
2110
2330
|
'db-checkbox': type() === 'checkbox' && !isGroupTitle(),
|
|
2111
2331
|
'db-radio': type() !== 'checkbox' && !isGroupTitle()
|
|
@@ -2128,7 +2348,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
2128
2348
|
[value]="value()"
|
|
2129
2349
|
(change)="handleChange($event)"
|
|
2130
2350
|
/>
|
|
2131
|
-
@if(label()){
|
|
2351
|
+
@if(label()){{{label()}}}@else{
|
|
2132
2352
|
<ng-content></ng-content>
|
|
2133
2353
|
}</label
|
|
2134
2354
|
>
|
|
@@ -2136,7 +2356,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
2136
2356
|
<span>{{groupTitle()}}</span>
|
|
2137
2357
|
}
|
|
2138
2358
|
</li> `, styles: [":host{display:contents}\n"] }]
|
|
2139
|
-
}], 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 }] }], 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 }] }] } });
|
|
2359
|
+
}], 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 }] }] } });
|
|
2140
2360
|
|
|
2141
2361
|
const defaultProps$p = {};
|
|
2142
2362
|
class DBCustomSelectList {
|
|
@@ -2145,6 +2365,7 @@ class DBCustomSelectList {
|
|
|
2145
2365
|
this.multiple = input(...(ngDevMode ? [undefined, { debugName: "multiple" }] : []));
|
|
2146
2366
|
this.label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : []));
|
|
2147
2367
|
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
2368
|
+
this.propOverrides = input(...(ngDevMode ? [undefined, { debugName: "propOverrides" }] : []));
|
|
2148
2369
|
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : []));
|
|
2149
2370
|
this._ref = viewChild("_ref", ...(ngDevMode ? [{ debugName: "_ref" }] : []));
|
|
2150
2371
|
}
|
|
@@ -2159,12 +2380,16 @@ class DBCustomSelectList {
|
|
|
2159
2380
|
const attributes = parent.attributes;
|
|
2160
2381
|
for (let i = 0; i < attributes.length; i++) {
|
|
2161
2382
|
const attr = attributes.item(i);
|
|
2162
|
-
if (attr &&
|
|
2383
|
+
if (attr && attr.name !== 'data-density' &&
|
|
2163
2384
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
2164
2385
|
element.setAttribute(attr.name, attr.value);
|
|
2165
2386
|
parent.removeAttribute(attr.name);
|
|
2166
2387
|
}
|
|
2167
|
-
if (attr && attr.name
|
|
2388
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
2389
|
+
element.setAttribute(attr.name, attr.value);
|
|
2390
|
+
parent.removeAttribute(attr.name);
|
|
2391
|
+
}
|
|
2392
|
+
else if (attr && attr.name === "class") {
|
|
2168
2393
|
const isWebComponent = attr.value.includes("hydrated");
|
|
2169
2394
|
const value = attr.value.replace("hydrated", "").trim();
|
|
2170
2395
|
const currentClass = element.getAttribute("class");
|
|
@@ -2187,11 +2412,11 @@ class DBCustomSelectList {
|
|
|
2187
2412
|
}
|
|
2188
2413
|
}
|
|
2189
2414
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBCustomSelectList, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2190
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.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 }, 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
|
|
2415
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.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
|
|
2191
2416
|
[attr.role]="multiple() ? 'group' : 'radiogroup'"
|
|
2192
2417
|
[attr.aria-label]="label()"
|
|
2193
2418
|
#_ref
|
|
2194
|
-
[attr.id]="id()"
|
|
2419
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
2195
2420
|
[class]="cls('db-custom-select-list', className())"
|
|
2196
2421
|
>
|
|
2197
2422
|
<ul>
|
|
@@ -2205,14 +2430,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
2205
2430
|
[attr.role]="multiple() ? 'group' : 'radiogroup'"
|
|
2206
2431
|
[attr.aria-label]="label()"
|
|
2207
2432
|
#_ref
|
|
2208
|
-
[attr.id]="id()"
|
|
2433
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
2209
2434
|
[class]="cls('db-custom-select-list', className())"
|
|
2210
2435
|
>
|
|
2211
2436
|
<ul>
|
|
2212
2437
|
<ng-content></ng-content>
|
|
2213
2438
|
</ul>
|
|
2214
2439
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
2215
|
-
}], ctorParameters: () => [], propDecorators: { multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
2440
|
+
}], 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 }] }] } });
|
|
2216
2441
|
|
|
2217
2442
|
const defaultProps$o = {};
|
|
2218
2443
|
class DBInput {
|
|
@@ -2289,6 +2514,14 @@ class DBInput {
|
|
|
2289
2514
|
}))
|
|
2290
2515
|
: _list) || []);
|
|
2291
2516
|
}
|
|
2517
|
+
resetIds() {
|
|
2518
|
+
const mId = this.id() ?? this.propOverrides()?.id ?? `input-${uuid()}`;
|
|
2519
|
+
this._id.set(mId);
|
|
2520
|
+
this._messageId.set(mId + DEFAULT_MESSAGE_ID_SUFFIX);
|
|
2521
|
+
this._validMessageId.set(mId + DEFAULT_VALID_MESSAGE_ID_SUFFIX);
|
|
2522
|
+
this._invalidMessageId.set(mId + DEFAULT_INVALID_MESSAGE_ID_SUFFIX);
|
|
2523
|
+
this._dataListId.set(mId + DEFAULT_DATALIST_ID_SUFFIX);
|
|
2524
|
+
}
|
|
2292
2525
|
trackByOption0(_, option) {
|
|
2293
2526
|
return this._dataListId() + "-option-" + option.value;
|
|
2294
2527
|
}
|
|
@@ -2306,8 +2539,9 @@ class DBInput {
|
|
|
2306
2539
|
this.isIOSSafari = isIOSSafari;
|
|
2307
2540
|
this.stringPropVisible = stringPropVisible;
|
|
2308
2541
|
this.DEFAULT_VALID_MESSAGE = DEFAULT_VALID_MESSAGE;
|
|
2309
|
-
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
2310
2542
|
this.invalidMessage = input(...(ngDevMode ? [undefined, { debugName: "invalidMessage" }] : []));
|
|
2543
|
+
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
2544
|
+
this.propOverrides = input(...(ngDevMode ? [undefined, { debugName: "propOverrides" }] : []));
|
|
2311
2545
|
this.dataListId = input(...(ngDevMode ? [undefined, { debugName: "dataListId" }] : []));
|
|
2312
2546
|
this.message = input(...(ngDevMode ? [undefined, { debugName: "message" }] : []));
|
|
2313
2547
|
this.showMessage = input(...(ngDevMode ? [undefined, { debugName: "showMessage" }] : []));
|
|
@@ -2371,6 +2605,16 @@ class DBInput {
|
|
|
2371
2605
|
this._voiceOverFallback = signal("", ...(ngDevMode ? [{ debugName: "_voiceOverFallback" }] : []));
|
|
2372
2606
|
this.abortController = signal(undefined, ...(ngDevMode ? [{ debugName: "abortController" }] : []));
|
|
2373
2607
|
if (typeof window !== "undefined") {
|
|
2608
|
+
effect(() => {
|
|
2609
|
+
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
2610
|
+
this.id();
|
|
2611
|
+
// ---
|
|
2612
|
+
if (this.id() ?? this.propOverrides()?.id) {
|
|
2613
|
+
this.resetIds();
|
|
2614
|
+
}
|
|
2615
|
+
}, {
|
|
2616
|
+
// Enable writing to signals inside effects
|
|
2617
|
+
});
|
|
2374
2618
|
effect(() => {
|
|
2375
2619
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
2376
2620
|
this._ref();
|
|
@@ -2448,12 +2692,16 @@ class DBInput {
|
|
|
2448
2692
|
const attributes = parent.attributes;
|
|
2449
2693
|
for (let i = 0; i < attributes.length; i++) {
|
|
2450
2694
|
const attr = attributes.item(i);
|
|
2451
|
-
if (attr &&
|
|
2695
|
+
if (attr && attr.name !== 'data-density' &&
|
|
2452
2696
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
2453
2697
|
element.setAttribute(attr.name, attr.value);
|
|
2454
2698
|
parent.removeAttribute(attr.name);
|
|
2455
2699
|
}
|
|
2456
|
-
if (attr && attr.name
|
|
2700
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
2701
|
+
element.setAttribute(attr.name, attr.value);
|
|
2702
|
+
parent.removeAttribute(attr.name);
|
|
2703
|
+
}
|
|
2704
|
+
else if (attr && attr.name === "class") {
|
|
2457
2705
|
const isWebComponent = attr.value.includes("hydrated");
|
|
2458
2706
|
const value = attr.value.replace("hydrated", "").trim();
|
|
2459
2707
|
const currentClass = element.getAttribute("class");
|
|
@@ -2494,12 +2742,7 @@ class DBInput {
|
|
|
2494
2742
|
if (typeof window !== "undefined") {
|
|
2495
2743
|
const element = this._ref()?.nativeElement;
|
|
2496
2744
|
this.enableAttributePassing(element, "db-input");
|
|
2497
|
-
|
|
2498
|
-
this._id.set(mId);
|
|
2499
|
-
this._messageId.set(mId + DEFAULT_MESSAGE_ID_SUFFIX);
|
|
2500
|
-
this._validMessageId.set(mId + DEFAULT_VALID_MESSAGE_ID_SUFFIX);
|
|
2501
|
-
this._invalidMessageId.set(mId + DEFAULT_INVALID_MESSAGE_ID_SUFFIX);
|
|
2502
|
-
this._dataListId.set(mId + DEFAULT_DATALIST_ID_SUFFIX);
|
|
2745
|
+
this.resetIds();
|
|
2503
2746
|
this._invalidMessage.set(this.invalidMessage() || DEFAULT_INVALID_MESSAGE);
|
|
2504
2747
|
}
|
|
2505
2748
|
}
|
|
@@ -2507,7 +2750,7 @@ class DBInput {
|
|
|
2507
2750
|
this.abortController()?.abort();
|
|
2508
2751
|
}
|
|
2509
2752
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBInput, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2510
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: DBInput, isStandalone: true, selector: "db-input", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null },
|
|
2753
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.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: [{
|
|
2511
2754
|
provide: NG_VALUE_ACCESSOR,
|
|
2512
2755
|
useExisting: DBInput,
|
|
2513
2756
|
multi: true
|
|
@@ -2592,7 +2835,7 @@ class DBInput {
|
|
|
2592
2835
|
role="status"
|
|
2593
2836
|
>{{_voiceOverFallback()}}</span
|
|
2594
2837
|
>
|
|
2595
|
-
</div> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBInfotext, selector: "db-infotext", inputs: ["id", "className", "icon", "semantic", "size", "showIcon", "text"] }] }); }
|
|
2838
|
+
</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"] }] }); }
|
|
2596
2839
|
}
|
|
2597
2840
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBInput, decorators: [{
|
|
2598
2841
|
type: Component,
|
|
@@ -2682,7 +2925,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
2682
2925
|
>{{_voiceOverFallback()}}</span
|
|
2683
2926
|
>
|
|
2684
2927
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
2685
|
-
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }],
|
|
2928
|
+
}], 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 }] }] } });
|
|
2686
2929
|
|
|
2687
2930
|
const defaultProps$n = {};
|
|
2688
2931
|
class DBTooltip {
|
|
@@ -2709,7 +2952,7 @@ class DBTooltip {
|
|
|
2709
2952
|
return;
|
|
2710
2953
|
if (this._ref()?.nativeElement) {
|
|
2711
2954
|
// This is a workaround for angular
|
|
2712
|
-
delay(() => {
|
|
2955
|
+
void delay(() => {
|
|
2713
2956
|
// Due to race conditions we need to check for _ref again
|
|
2714
2957
|
if (this._ref()?.nativeElement) {
|
|
2715
2958
|
handleFixedPopover(this._ref()?.nativeElement, parent, this.placement() ?? "bottom");
|
|
@@ -2734,14 +2977,19 @@ class DBTooltip {
|
|
|
2734
2977
|
this.handleAutoPlacement(parent);
|
|
2735
2978
|
this._observer()?.observe(this.getParent());
|
|
2736
2979
|
}
|
|
2980
|
+
resetIds() {
|
|
2981
|
+
this._id.set(this.id() ?? this.propOverrides()?.id ?? "tooltip-" + uuid());
|
|
2982
|
+
}
|
|
2737
2983
|
constructor() {
|
|
2738
2984
|
this.cls = cls;
|
|
2739
2985
|
this.getBooleanAsString = getBooleanAsString;
|
|
2740
2986
|
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
2987
|
+
this.propOverrides = input(...(ngDevMode ? [undefined, { debugName: "propOverrides" }] : []));
|
|
2741
2988
|
this.variant = input(...(ngDevMode ? [undefined, { debugName: "variant" }] : []));
|
|
2742
2989
|
this.placement = input(...(ngDevMode ? [undefined, { debugName: "placement" }] : []));
|
|
2743
2990
|
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : []));
|
|
2744
2991
|
this.emphasis = input(...(ngDevMode ? [undefined, { debugName: "emphasis" }] : []));
|
|
2992
|
+
this.wrap = input(...(ngDevMode ? [undefined, { debugName: "wrap" }] : []));
|
|
2745
2993
|
this.animation = input(...(ngDevMode ? [undefined, { debugName: "animation" }] : []));
|
|
2746
2994
|
this.delay = input(...(ngDevMode ? [undefined, { debugName: "delay" }] : []));
|
|
2747
2995
|
this.width = input(...(ngDevMode ? [undefined, { debugName: "width" }] : []));
|
|
@@ -2756,8 +3004,8 @@ class DBTooltip {
|
|
|
2756
3004
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
2757
3005
|
this.id();
|
|
2758
3006
|
// ---
|
|
2759
|
-
if (this.id()) {
|
|
2760
|
-
this.
|
|
3007
|
+
if (this.id() ?? this.propOverrides()?.id) {
|
|
3008
|
+
this.resetIds();
|
|
2761
3009
|
}
|
|
2762
3010
|
}, {
|
|
2763
3011
|
// Enable writing to signals inside effects
|
|
@@ -2771,6 +3019,7 @@ class DBTooltip {
|
|
|
2771
3019
|
if (this._ref()?.nativeElement && this.initialized() && this._id()) {
|
|
2772
3020
|
const parent = this.getParent();
|
|
2773
3021
|
if (parent) {
|
|
3022
|
+
this.handleAutoPlacement(parent);
|
|
2774
3023
|
["mouseenter", "focusin"].forEach((event) => {
|
|
2775
3024
|
parent.addEventListener(event, () => this.handleEnter(parent));
|
|
2776
3025
|
});
|
|
@@ -2813,12 +3062,16 @@ class DBTooltip {
|
|
|
2813
3062
|
const attributes = parent.attributes;
|
|
2814
3063
|
for (let i = 0; i < attributes.length; i++) {
|
|
2815
3064
|
const attr = attributes.item(i);
|
|
2816
|
-
if (attr &&
|
|
3065
|
+
if (attr && attr.name !== 'data-density' &&
|
|
2817
3066
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
2818
3067
|
element.setAttribute(attr.name, attr.value);
|
|
2819
3068
|
parent.removeAttribute(attr.name);
|
|
2820
3069
|
}
|
|
2821
|
-
if (attr && attr.name
|
|
3070
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
3071
|
+
element.setAttribute(attr.name, attr.value);
|
|
3072
|
+
parent.removeAttribute(attr.name);
|
|
3073
|
+
}
|
|
3074
|
+
else if (attr && attr.name === "class") {
|
|
2822
3075
|
const isWebComponent = attr.value.includes("hydrated");
|
|
2823
3076
|
const value = attr.value.replace("hydrated", "").trim();
|
|
2824
3077
|
const currentClass = element.getAttribute("class");
|
|
@@ -2838,12 +3091,12 @@ class DBTooltip {
|
|
|
2838
3091
|
if (typeof window !== "undefined") {
|
|
2839
3092
|
const element = this._ref()?.nativeElement;
|
|
2840
3093
|
this.enableAttributePassing(element, "db-tooltip");
|
|
2841
|
-
this.
|
|
3094
|
+
this.resetIds();
|
|
2842
3095
|
this.initialized.set(true);
|
|
2843
3096
|
}
|
|
2844
3097
|
}
|
|
2845
3098
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBTooltip, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2846
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.16", type: DBTooltip, isStandalone: true, selector: "db-tooltip", inputs: { id: { classPropertyName: "id", publicName: "id", 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 }, 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 } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<i
|
|
3099
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.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 } }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<i
|
|
2847
3100
|
role="tooltip"
|
|
2848
3101
|
aria-hidden="true"
|
|
2849
3102
|
data-gap="true"
|
|
@@ -2851,6 +3104,7 @@ class DBTooltip {
|
|
|
2851
3104
|
[class]="cls('db-tooltip', className())"
|
|
2852
3105
|
[attr.id]="_id()"
|
|
2853
3106
|
[attr.data-emphasis]="emphasis()"
|
|
3107
|
+
[attr.data-wrap]="getBooleanAsString(wrap())"
|
|
2854
3108
|
[attr.data-animation]="getBooleanAsString(animation() ?? true)"
|
|
2855
3109
|
[attr.data-delay]="delay()"
|
|
2856
3110
|
[attr.data-width]="width()"
|
|
@@ -2870,6 +3124,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
2870
3124
|
[class]="cls('db-tooltip', className())"
|
|
2871
3125
|
[attr.id]="_id()"
|
|
2872
3126
|
[attr.data-emphasis]="emphasis()"
|
|
3127
|
+
[attr.data-wrap]="getBooleanAsString(wrap())"
|
|
2873
3128
|
[attr.data-animation]="getBooleanAsString(animation() ?? true)"
|
|
2874
3129
|
[attr.data-delay]="delay()"
|
|
2875
3130
|
[attr.data-width]="width()"
|
|
@@ -2878,7 +3133,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
2878
3133
|
(click)="handleClick($event)"
|
|
2879
3134
|
><ng-content></ng-content
|
|
2880
3135
|
></i> `, styles: [":host{display:contents}\n"] }]
|
|
2881
|
-
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", 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 }] }], animation: [{ type: i0.Input, args: [{ isSignal: true, alias: "animation", required: false }] }], delay: [{ type: i0.Input, args: [{ isSignal: true, alias: "delay", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], showArrow: [{ type: i0.Input, args: [{ isSignal: true, alias: "showArrow", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
3136
|
+
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "placement", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], emphasis: [{ type: i0.Input, args: [{ isSignal: true, alias: "emphasis", required: false }] }], wrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "wrap", required: false }] }], animation: [{ type: i0.Input, args: [{ isSignal: true, alias: "animation", required: false }] }], delay: [{ type: i0.Input, args: [{ isSignal: true, alias: "delay", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], showArrow: [{ type: i0.Input, args: [{ isSignal: true, alias: "showArrow", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
2882
3137
|
|
|
2883
3138
|
const defaultProps$m = {};
|
|
2884
3139
|
class DBTag {
|
|
@@ -2902,6 +3157,7 @@ class DBTag {
|
|
|
2902
3157
|
this.getBooleanAsString = getBooleanAsString;
|
|
2903
3158
|
this.removeButton = input(...(ngDevMode ? [undefined, { debugName: "removeButton" }] : []));
|
|
2904
3159
|
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
3160
|
+
this.propOverrides = input(...(ngDevMode ? [undefined, { debugName: "propOverrides" }] : []));
|
|
2905
3161
|
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : []));
|
|
2906
3162
|
this.semantic = input(...(ngDevMode ? [undefined, { debugName: "semantic" }] : []));
|
|
2907
3163
|
this.emphasis = input(...(ngDevMode ? [undefined, { debugName: "emphasis" }] : []));
|
|
@@ -2926,12 +3182,16 @@ class DBTag {
|
|
|
2926
3182
|
const attributes = parent.attributes;
|
|
2927
3183
|
for (let i = 0; i < attributes.length; i++) {
|
|
2928
3184
|
const attr = attributes.item(i);
|
|
2929
|
-
if (attr &&
|
|
3185
|
+
if (attr && attr.name !== 'data-density' &&
|
|
2930
3186
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
2931
3187
|
element.setAttribute(attr.name, attr.value);
|
|
2932
3188
|
parent.removeAttribute(attr.name);
|
|
2933
3189
|
}
|
|
2934
|
-
if (attr && attr.name
|
|
3190
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
3191
|
+
element.setAttribute(attr.name, attr.value);
|
|
3192
|
+
parent.removeAttribute(attr.name);
|
|
3193
|
+
}
|
|
3194
|
+
else if (attr && attr.name === "class") {
|
|
2935
3195
|
const isWebComponent = attr.value.includes("hydrated");
|
|
2936
3196
|
const value = attr.value.replace("hydrated", "").trim();
|
|
2937
3197
|
const currentClass = element.getAttribute("class");
|
|
@@ -2954,9 +3214,9 @@ class DBTag {
|
|
|
2954
3214
|
}
|
|
2955
3215
|
}
|
|
2956
3216
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBTag, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2957
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.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 }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, semantic: { classPropertyName: "semantic", publicName: "semantic", isSignal: true, isRequired: false, transformFunction: null }, emphasis: { classPropertyName: "emphasis", publicName: "emphasis", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, showCheckState: { classPropertyName: "showCheckState", publicName: "showCheckState", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, noText: { classPropertyName: "noText", publicName: "noText", isSignal: true, isRequired: false, transformFunction: null }, overflow: { classPropertyName: "overflow", publicName: "overflow", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, behavior: { classPropertyName: "behavior", publicName: "behavior", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { remove: "remove" }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<div
|
|
3217
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.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
|
|
2958
3218
|
#_ref
|
|
2959
|
-
[attr.id]="id()"
|
|
3219
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
2960
3220
|
[class]="cls('db-tag', className())"
|
|
2961
3221
|
[attr.data-semantic]="semantic()"
|
|
2962
3222
|
[attr.data-emphasis]="emphasis()"
|
|
@@ -2968,7 +3228,7 @@ class DBTag {
|
|
|
2968
3228
|
>
|
|
2969
3229
|
<ng-content select="[content]"> </ng-content>
|
|
2970
3230
|
<ng-content></ng-content>
|
|
2971
|
-
@if(text()){
|
|
3231
|
+
@if(text()){{{text()}}} @if(behavior() === 'removable'){
|
|
2972
3232
|
<button
|
|
2973
3233
|
class="db-button db-tab-remove-button"
|
|
2974
3234
|
data-icon="cross"
|
|
@@ -2981,13 +3241,13 @@ class DBTag {
|
|
|
2981
3241
|
<db-tooltip variant="label">{{getRemoveButtonText()}}</db-tooltip>
|
|
2982
3242
|
</button>
|
|
2983
3243
|
}
|
|
2984
|
-
</div> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBTooltip, selector: "db-tooltip", inputs: ["id", "variant", "placement", "className", "emphasis", "animation", "delay", "width", "showArrow"] }] }); }
|
|
3244
|
+
</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"] }] }); }
|
|
2985
3245
|
}
|
|
2986
3246
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBTag, decorators: [{
|
|
2987
3247
|
type: Component,
|
|
2988
3248
|
args: [{ selector: "db-tag", standalone: true, imports: [CommonModule, DBTooltip], template: `<div
|
|
2989
3249
|
#_ref
|
|
2990
|
-
[attr.id]="id()"
|
|
3250
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
2991
3251
|
[class]="cls('db-tag', className())"
|
|
2992
3252
|
[attr.data-semantic]="semantic()"
|
|
2993
3253
|
[attr.data-emphasis]="emphasis()"
|
|
@@ -2999,7 +3259,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
2999
3259
|
>
|
|
3000
3260
|
<ng-content select="[content]"> </ng-content>
|
|
3001
3261
|
<ng-content></ng-content>
|
|
3002
|
-
@if(text()){
|
|
3262
|
+
@if(text()){{{text()}}} @if(behavior() === 'removable'){
|
|
3003
3263
|
<button
|
|
3004
3264
|
class="db-button db-tab-remove-button"
|
|
3005
3265
|
data-icon="cross"
|
|
@@ -3013,7 +3273,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
3013
3273
|
</button>
|
|
3014
3274
|
}
|
|
3015
3275
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
3016
|
-
}], ctorParameters: () => [], propDecorators: { removeButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "removeButton", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], semantic: [{ type: i0.Input, args: [{ isSignal: true, alias: "semantic", required: false }] }], 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 }] }] } });
|
|
3276
|
+
}], 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 }] }] } });
|
|
3017
3277
|
|
|
3018
3278
|
const defaultProps$l = {
|
|
3019
3279
|
clearSelectionText: "Clear selection",
|
|
@@ -3428,6 +3688,19 @@ class DBCustomSelect {
|
|
|
3428
3688
|
?.focus();
|
|
3429
3689
|
}
|
|
3430
3690
|
}
|
|
3691
|
+
resetIds() {
|
|
3692
|
+
const mId = this.id() ?? this.propOverrides()?.id ?? `custom-select-${uuid()}`;
|
|
3693
|
+
this._id.set(mId);
|
|
3694
|
+
this._messageId.set(mId + DEFAULT_MESSAGE_ID_SUFFIX);
|
|
3695
|
+
this._validMessageId.set(mId + DEFAULT_VALID_MESSAGE_ID_SUFFIX);
|
|
3696
|
+
this._invalidMessageId.set(mId + DEFAULT_INVALID_MESSAGE_ID_SUFFIX);
|
|
3697
|
+
this._selectId.set(mId + DEFAULT_SELECT_ID_SUFFIX);
|
|
3698
|
+
this._labelId.set(mId + DEFAULT_LABEL_ID_SUFFIX);
|
|
3699
|
+
this._summaryId.set(mId + "-summary");
|
|
3700
|
+
this._placeholderId.set(mId + DEFAULT_PLACEHOLDER_ID_SUFFIX);
|
|
3701
|
+
this._selectedLabelsId.set(mId + "-selected-labels");
|
|
3702
|
+
this._infoTextId.set(mId + "-info");
|
|
3703
|
+
}
|
|
3431
3704
|
satisfyReact(event) {
|
|
3432
3705
|
// This is a function to satisfy React
|
|
3433
3706
|
event.stopPropagation();
|
|
@@ -3453,8 +3726,9 @@ class DBCustomSelect {
|
|
|
3453
3726
|
this.DEFAULT_CLOSE_BUTTON = DEFAULT_CLOSE_BUTTON;
|
|
3454
3727
|
this.stringPropVisible = stringPropVisible;
|
|
3455
3728
|
this.DEFAULT_VALID_MESSAGE = DEFAULT_VALID_MESSAGE;
|
|
3456
|
-
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
3457
3729
|
this.invalidMessage = input(...(ngDevMode ? [undefined, { debugName: "invalidMessage" }] : []));
|
|
3730
|
+
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
3731
|
+
this.propOverrides = input(...(ngDevMode ? [undefined, { debugName: "propOverrides" }] : []));
|
|
3458
3732
|
this.message = input(...(ngDevMode ? [undefined, { debugName: "message" }] : []));
|
|
3459
3733
|
this.showMessage = input(...(ngDevMode ? [undefined, { debugName: "showMessage" }] : []));
|
|
3460
3734
|
this.ariaDescribedBy = input(...(ngDevMode ? [undefined, { debugName: "ariaDescribedBy" }] : []));
|
|
@@ -3542,6 +3816,16 @@ class DBCustomSelect {
|
|
|
3542
3816
|
this.selectAllChecked = signal(false, ...(ngDevMode ? [{ debugName: "selectAllChecked" }] : []));
|
|
3543
3817
|
this.selectAllIndeterminate = signal(false, ...(ngDevMode ? [{ debugName: "selectAllIndeterminate" }] : []));
|
|
3544
3818
|
if (typeof window !== "undefined") {
|
|
3819
|
+
effect(() => {
|
|
3820
|
+
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
3821
|
+
this.id();
|
|
3822
|
+
// ---
|
|
3823
|
+
if (this.id() ?? this.propOverrides()?.id) {
|
|
3824
|
+
this.resetIds();
|
|
3825
|
+
}
|
|
3826
|
+
}, {
|
|
3827
|
+
// Enable writing to signals inside effects
|
|
3828
|
+
});
|
|
3545
3829
|
effect(() => {
|
|
3546
3830
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
3547
3831
|
this.detailsRef();
|
|
@@ -3819,12 +4103,16 @@ class DBCustomSelect {
|
|
|
3819
4103
|
const attributes = parent.attributes;
|
|
3820
4104
|
for (let i = 0; i < attributes.length; i++) {
|
|
3821
4105
|
const attr = attributes.item(i);
|
|
3822
|
-
if (attr &&
|
|
4106
|
+
if (attr && attr.name !== 'data-density' &&
|
|
3823
4107
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
3824
4108
|
element.setAttribute(attr.name, attr.value);
|
|
3825
4109
|
parent.removeAttribute(attr.name);
|
|
3826
4110
|
}
|
|
3827
|
-
if (attr && attr.name
|
|
4111
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
4112
|
+
element.setAttribute(attr.name, attr.value);
|
|
4113
|
+
parent.removeAttribute(attr.name);
|
|
4114
|
+
}
|
|
4115
|
+
else if (attr && attr.name === "class") {
|
|
3828
4116
|
const isWebComponent = attr.value.includes("hydrated");
|
|
3829
4117
|
const value = attr.value.replace("hydrated", "").trim();
|
|
3830
4118
|
const currentClass = element.getAttribute("class");
|
|
@@ -3859,17 +4147,7 @@ class DBCustomSelect {
|
|
|
3859
4147
|
if (typeof window !== "undefined") {
|
|
3860
4148
|
const element = this._ref()?.nativeElement;
|
|
3861
4149
|
this.enableAttributePassing(element, "db-custom-select");
|
|
3862
|
-
|
|
3863
|
-
this._id.set(mId);
|
|
3864
|
-
this._messageId.set(mId + DEFAULT_MESSAGE_ID_SUFFIX);
|
|
3865
|
-
this._validMessageId.set(mId + DEFAULT_VALID_MESSAGE_ID_SUFFIX);
|
|
3866
|
-
this._invalidMessageId.set(mId + DEFAULT_INVALID_MESSAGE_ID_SUFFIX);
|
|
3867
|
-
this._selectId.set(mId + DEFAULT_SELECT_ID_SUFFIX);
|
|
3868
|
-
this._labelId.set(mId + DEFAULT_LABEL_ID_SUFFIX);
|
|
3869
|
-
this._summaryId.set(mId + "-summary");
|
|
3870
|
-
this._placeholderId.set(mId + DEFAULT_PLACEHOLDER_ID_SUFFIX);
|
|
3871
|
-
this._selectedLabelsId.set(mId + "-selected-labels");
|
|
3872
|
-
this._infoTextId.set(mId + "-info");
|
|
4150
|
+
this.resetIds();
|
|
3873
4151
|
this._invalidMessage.set(this.invalidMessage() || DEFAULT_INVALID_MESSAGE);
|
|
3874
4152
|
if (typeof window !== "undefined" && "IntersectionObserver" in window) {
|
|
3875
4153
|
this._observer.set(new IntersectionObserver((payload) => {
|
|
@@ -3889,7 +4167,7 @@ class DBCustomSelect {
|
|
|
3889
4167
|
this.abortController()?.abort();
|
|
3890
4168
|
}
|
|
3891
4169
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBCustomSelect, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3892
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: DBCustomSelect, isStandalone: true, selector: "db-custom-select", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null },
|
|
4170
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.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: [{
|
|
3893
4171
|
provide: NG_VALUE_ACCESSOR,
|
|
3894
4172
|
useExisting: DBCustomSelect,
|
|
3895
4173
|
multi: true
|
|
@@ -3918,6 +4196,7 @@ class DBCustomSelect {
|
|
|
3918
4196
|
#selectRef
|
|
3919
4197
|
[attr.form]="form()"
|
|
3920
4198
|
[attr.name]="name()"
|
|
4199
|
+
[attr.data-custom-validity]="_validity()"
|
|
3921
4200
|
[multiple]="getBoolean(multiple(), 'multiple')"
|
|
3922
4201
|
[disabled]="getBoolean(disabled(), 'disabled')"
|
|
3923
4202
|
[required]="getBoolean(required(), 'required')"
|
|
@@ -3943,6 +4222,7 @@ class DBCustomSelect {
|
|
|
3943
4222
|
class="db-custom-select-form-field"
|
|
3944
4223
|
[attr.id]="_summaryId()"
|
|
3945
4224
|
[attr.aria-disabled]="getBooleanAsString(disabled())"
|
|
4225
|
+
[attr.tabIndex]="disabled() ? -1 : undefined"
|
|
3946
4226
|
[attr.aria-labelledby]="_labelId()"
|
|
3947
4227
|
>
|
|
3948
4228
|
@if(_selectedLabels()?.length){
|
|
@@ -4029,7 +4309,7 @@ class DBCustomSelect {
|
|
|
4029
4309
|
[value]="option.value"
|
|
4030
4310
|
(change)="handleSelect(option.value)"
|
|
4031
4311
|
>@if(!option.isGroupTitle){
|
|
4032
|
-
{{getOptionLabel(option)}}
|
|
4312
|
+
{{getOptionLabel(option)}}}</db-custom-select-list-item
|
|
4033
4313
|
>
|
|
4034
4314
|
}
|
|
4035
4315
|
</db-custom-select-list></ng-container
|
|
@@ -4058,6 +4338,7 @@ class DBCustomSelect {
|
|
|
4058
4338
|
[noText]="true"
|
|
4059
4339
|
[name]="_id()"
|
|
4060
4340
|
[form]="_id()"
|
|
4341
|
+
[disabled]="getBoolean(disabled(), 'disabled')"
|
|
4061
4342
|
(click)="handleClearAll($event)"
|
|
4062
4343
|
>{{clearSelectionText()}}
|
|
4063
4344
|
<db-tooltip
|
|
@@ -4098,7 +4379,7 @@ class DBCustomSelect {
|
|
|
4098
4379
|
role="status"
|
|
4099
4380
|
>{{_voiceOverFallback()}}</span
|
|
4100
4381
|
>
|
|
4101
|
-
</div> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBTag, selector: "db-tag", inputs: ["removeButton", "id", "className", "semantic", "emphasis", "icon", "showCheckState", "showIcon", "noText", "overflow", "text", "behavior"], outputs: ["remove"] }, { kind: "component", type: DBCustomSelectDropdown, selector: "db-custom-select-dropdown", inputs: ["id", "className", "width"] }, { kind: "component", type: DBInput, selector: "db-input", inputs: ["id", "
|
|
4382
|
+
</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"] }] }); }
|
|
4102
4383
|
}
|
|
4103
4384
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBCustomSelect, decorators: [{
|
|
4104
4385
|
type: Component,
|
|
@@ -4141,6 +4422,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
4141
4422
|
#selectRef
|
|
4142
4423
|
[attr.form]="form()"
|
|
4143
4424
|
[attr.name]="name()"
|
|
4425
|
+
[attr.data-custom-validity]="_validity()"
|
|
4144
4426
|
[multiple]="getBoolean(multiple(), 'multiple')"
|
|
4145
4427
|
[disabled]="getBoolean(disabled(), 'disabled')"
|
|
4146
4428
|
[required]="getBoolean(required(), 'required')"
|
|
@@ -4166,6 +4448,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
4166
4448
|
class="db-custom-select-form-field"
|
|
4167
4449
|
[attr.id]="_summaryId()"
|
|
4168
4450
|
[attr.aria-disabled]="getBooleanAsString(disabled())"
|
|
4451
|
+
[attr.tabIndex]="disabled() ? -1 : undefined"
|
|
4169
4452
|
[attr.aria-labelledby]="_labelId()"
|
|
4170
4453
|
>
|
|
4171
4454
|
@if(_selectedLabels()?.length){
|
|
@@ -4252,7 +4535,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
4252
4535
|
[value]="option.value"
|
|
4253
4536
|
(change)="handleSelect(option.value)"
|
|
4254
4537
|
>@if(!option.isGroupTitle){
|
|
4255
|
-
{{getOptionLabel(option)}}
|
|
4538
|
+
{{getOptionLabel(option)}}}</db-custom-select-list-item
|
|
4256
4539
|
>
|
|
4257
4540
|
}
|
|
4258
4541
|
</db-custom-select-list></ng-container
|
|
@@ -4281,6 +4564,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
4281
4564
|
[noText]="true"
|
|
4282
4565
|
[name]="_id()"
|
|
4283
4566
|
[form]="_id()"
|
|
4567
|
+
[disabled]="getBoolean(disabled(), 'disabled')"
|
|
4284
4568
|
(click)="handleClearAll($event)"
|
|
4285
4569
|
>{{clearSelectionText()}}
|
|
4286
4570
|
<db-tooltip
|
|
@@ -4322,7 +4606,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
4322
4606
|
>{{_voiceOverFallback()}}</span
|
|
4323
4607
|
>
|
|
4324
4608
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
4325
|
-
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }],
|
|
4609
|
+
}], 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 }] }], ariaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedBy", required: false }] }], showNoResults: [{ type: i0.Input, args: [{ isSignal: true, alias: "showNoResults", required: false }] }], showLoading: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLoading", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], showSelectAll: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSelectAll", required: false }] }], showSearch: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSearch", required: false }] }], values: [{ type: i0.Input, args: [{ isSignal: true, alias: "values", required: false }] }, { type: i0.Output, args: ["valuesChange"] }], validation: [{ type: i0.Input, args: [{ isSignal: true, alias: "validation", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], searchValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchValue", required: false }] }], selectedLabels: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedLabels", required: false }] }], transformSelectedLabels: [{ type: i0.Input, args: [{ isSignal: true, alias: "transformSelectedLabels", required: false }] }], selectedType: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedType", required: false }] }], amountText: [{ type: i0.Input, args: [{ isSignal: true, alias: "amountText", required: false }] }], validMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "validMessage", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], selectAllLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectAllLabel", required: false }] }], removeTagsTexts: [{ type: i0.Input, args: [{ isSignal: true, alias: "removeTagsTexts", required: false }] }], placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "placement", required: false }] }], searchFilter: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchFilter", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], formFieldWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "formFieldWidth", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], showRequiredAsterisk: [{ type: i0.Input, args: [{ isSignal: true, alias: "showRequiredAsterisk", required: false }] }], showLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLabel", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], form: [{ type: i0.Input, args: [{ isSignal: true, alias: "form", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }, { type: i0.Output, args: ["disabledChange"] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }], selectedPrefix: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedPrefix", required: false }] }], dropdownWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropdownWidth", required: false }] }], searchLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchLabel", required: false }] }], searchPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchPlaceholder", required: false }] }], listLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "listLabel", required: false }] }], loadingText: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingText", required: false }] }], noResultsText: [{ type: i0.Input, args: [{ isSignal: true, alias: "noResultsText", required: false }] }], mobileCloseButtonText: [{ type: i0.Input, args: [{ isSignal: true, alias: "mobileCloseButtonText", required: false }] }], showClearSelection: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClearSelection", required: false }] }], clearSelectionText: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearSelectionText", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], messageIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "messageIcon", required: false }] }], amountChange: [{ type: i0.Output, args: ["amountChange"] }], dropdownToggle: [{ type: i0.Output, args: ["dropdownToggle"] }], optionSelected: [{ type: i0.Output, args: ["optionSelected"] }], search: [{ type: i0.Output, args: ["search"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }], selectRef: [{ type: i0.ViewChild, args: ["selectRef", { isSignal: true }] }], detailsRef: [{ type: i0.ViewChild, args: ["detailsRef", { isSignal: true }] }], searchInputRef: [{ type: i0.ViewChild, args: ["searchInputRef", { isSignal: true }] }], selectAllRef: [{ type: i0.ViewChild, args: ["selectAllRef", { isSignal: true }] }] } });
|
|
4326
4610
|
|
|
4327
4611
|
const CustomSelectDropdownWidthList = ['fixed', 'auto', 'full'];
|
|
4328
4612
|
|
|
@@ -4331,6 +4615,7 @@ class DBCustomSelectFormField {
|
|
|
4331
4615
|
constructor() {
|
|
4332
4616
|
this.cls = cls;
|
|
4333
4617
|
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
4618
|
+
this.propOverrides = input(...(ngDevMode ? [undefined, { debugName: "propOverrides" }] : []));
|
|
4334
4619
|
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : []));
|
|
4335
4620
|
this._ref = viewChild("_ref", ...(ngDevMode ? [{ debugName: "_ref" }] : []));
|
|
4336
4621
|
}
|
|
@@ -4345,12 +4630,16 @@ class DBCustomSelectFormField {
|
|
|
4345
4630
|
const attributes = parent.attributes;
|
|
4346
4631
|
for (let i = 0; i < attributes.length; i++) {
|
|
4347
4632
|
const attr = attributes.item(i);
|
|
4348
|
-
if (attr &&
|
|
4633
|
+
if (attr && attr.name !== 'data-density' &&
|
|
4349
4634
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
4350
4635
|
element.setAttribute(attr.name, attr.value);
|
|
4351
4636
|
parent.removeAttribute(attr.name);
|
|
4352
4637
|
}
|
|
4353
|
-
if (attr && attr.name
|
|
4638
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
4639
|
+
element.setAttribute(attr.name, attr.value);
|
|
4640
|
+
parent.removeAttribute(attr.name);
|
|
4641
|
+
}
|
|
4642
|
+
else if (attr && attr.name === "class") {
|
|
4354
4643
|
const isWebComponent = attr.value.includes("hydrated");
|
|
4355
4644
|
const value = attr.value.replace("hydrated", "").trim();
|
|
4356
4645
|
const currentClass = element.getAttribute("class");
|
|
@@ -4373,9 +4662,9 @@ class DBCustomSelectFormField {
|
|
|
4373
4662
|
}
|
|
4374
4663
|
}
|
|
4375
4664
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBCustomSelectFormField, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4376
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.16", type: DBCustomSelectFormField, isStandalone: true, selector: "db-custom-select-form-field", 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: `<summary
|
|
4665
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.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
|
|
4377
4666
|
#_ref
|
|
4378
|
-
[attr.id]="id()"
|
|
4667
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
4379
4668
|
[class]="cls('db-custom-select-form-field', className())"
|
|
4380
4669
|
>
|
|
4381
4670
|
<ng-content></ng-content>
|
|
@@ -4385,12 +4674,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
4385
4674
|
type: Component,
|
|
4386
4675
|
args: [{ selector: "db-custom-select-form-field", standalone: true, imports: [CommonModule], template: `<summary
|
|
4387
4676
|
#_ref
|
|
4388
|
-
[attr.id]="id()"
|
|
4677
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
4389
4678
|
[class]="cls('db-custom-select-form-field', className())"
|
|
4390
4679
|
>
|
|
4391
4680
|
<ng-content></ng-content>
|
|
4392
4681
|
</summary> `, styles: [":host{display:contents}\n"] }]
|
|
4393
|
-
}], 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 }] }] } });
|
|
4682
|
+
}], 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 }] }] } });
|
|
4394
4683
|
|
|
4395
4684
|
const CustomSelectListItemTypeList = ['checkbox', 'radio'];
|
|
4396
4685
|
|
|
@@ -4401,6 +4690,7 @@ class DBDivider {
|
|
|
4401
4690
|
constructor() {
|
|
4402
4691
|
this.cls = cls;
|
|
4403
4692
|
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
4693
|
+
this.propOverrides = input(...(ngDevMode ? [undefined, { debugName: "propOverrides" }] : []));
|
|
4404
4694
|
this.margin = input(...(ngDevMode ? [undefined, { debugName: "margin" }] : []));
|
|
4405
4695
|
this.variant = input(...(ngDevMode ? [undefined, { debugName: "variant" }] : []));
|
|
4406
4696
|
this.emphasis = input(...(ngDevMode ? [undefined, { debugName: "emphasis" }] : []));
|
|
@@ -4419,12 +4709,16 @@ class DBDivider {
|
|
|
4419
4709
|
const attributes = parent.attributes;
|
|
4420
4710
|
for (let i = 0; i < attributes.length; i++) {
|
|
4421
4711
|
const attr = attributes.item(i);
|
|
4422
|
-
if (attr &&
|
|
4712
|
+
if (attr && attr.name !== 'data-density' &&
|
|
4423
4713
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
4424
4714
|
element.setAttribute(attr.name, attr.value);
|
|
4425
4715
|
parent.removeAttribute(attr.name);
|
|
4426
4716
|
}
|
|
4427
|
-
if (attr && attr.name
|
|
4717
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
4718
|
+
element.setAttribute(attr.name, attr.value);
|
|
4719
|
+
parent.removeAttribute(attr.name);
|
|
4720
|
+
}
|
|
4721
|
+
else if (attr && attr.name === "class") {
|
|
4428
4722
|
const isWebComponent = attr.value.includes("hydrated");
|
|
4429
4723
|
const value = attr.value.replace("hydrated", "").trim();
|
|
4430
4724
|
const currentClass = element.getAttribute("class");
|
|
@@ -4447,9 +4741,9 @@ class DBDivider {
|
|
|
4447
4741
|
}
|
|
4448
4742
|
}
|
|
4449
4743
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBDivider, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4450
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.16", type: DBDivider, isStandalone: true, selector: "db-divider", inputs: { id: { classPropertyName: "id", publicName: "id", 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
|
|
4744
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.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
|
|
4451
4745
|
#_ref
|
|
4452
|
-
[attr.id]="id()"
|
|
4746
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
4453
4747
|
[attr.data-margin]="margin()"
|
|
4454
4748
|
[attr.data-variant]="variant()"
|
|
4455
4749
|
[attr.data-emphasis]="emphasis()"
|
|
@@ -4461,14 +4755,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
4461
4755
|
type: Component,
|
|
4462
4756
|
args: [{ selector: "db-divider", standalone: true, imports: [CommonModule], template: `<div
|
|
4463
4757
|
#_ref
|
|
4464
|
-
[attr.id]="id()"
|
|
4758
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
4465
4759
|
[attr.data-margin]="margin()"
|
|
4466
4760
|
[attr.data-variant]="variant()"
|
|
4467
4761
|
[attr.data-emphasis]="emphasis()"
|
|
4468
4762
|
[attr.data-width]="width()"
|
|
4469
4763
|
[class]="cls('db-divider', className())"
|
|
4470
4764
|
></div> `, styles: [":host{display:contents}\n"] }]
|
|
4471
|
-
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], margin: [{ type: i0.Input, args: [{ isSignal: true, alias: "margin", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], emphasis: [{ type: i0.Input, args: [{ isSignal: true, alias: "emphasis", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
4765
|
+
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], margin: [{ type: i0.Input, args: [{ isSignal: true, alias: "margin", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], emphasis: [{ type: i0.Input, args: [{ isSignal: true, alias: "emphasis", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
4472
4766
|
|
|
4473
4767
|
const DividerMarginList = ['none', '_'];
|
|
4474
4768
|
const DividerVariantList = ['horizontal', 'vertical'];
|
|
@@ -4542,6 +4836,7 @@ class DBDrawer {
|
|
|
4542
4836
|
this.backdrop = input(...(ngDevMode ? [undefined, { debugName: "backdrop" }] : []));
|
|
4543
4837
|
this.variant = input(...(ngDevMode ? [undefined, { debugName: "variant" }] : []));
|
|
4544
4838
|
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
4839
|
+
this.propOverrides = input(...(ngDevMode ? [undefined, { debugName: "propOverrides" }] : []));
|
|
4545
4840
|
this.direction = input(...(ngDevMode ? [undefined, { debugName: "direction" }] : []));
|
|
4546
4841
|
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : []));
|
|
4547
4842
|
this.spacing = input(...(ngDevMode ? [undefined, { debugName: "spacing" }] : []));
|
|
@@ -4593,12 +4888,16 @@ class DBDrawer {
|
|
|
4593
4888
|
const attributes = parent.attributes;
|
|
4594
4889
|
for (let i = 0; i < attributes.length; i++) {
|
|
4595
4890
|
const attr = attributes.item(i);
|
|
4596
|
-
if (attr &&
|
|
4891
|
+
if (attr && attr.name !== 'data-density' &&
|
|
4597
4892
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
4598
4893
|
element.setAttribute(attr.name, attr.value);
|
|
4599
4894
|
parent.removeAttribute(attr.name);
|
|
4600
4895
|
}
|
|
4601
|
-
if (attr && attr.name
|
|
4896
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
4897
|
+
element.setAttribute(attr.name, attr.value);
|
|
4898
|
+
parent.removeAttribute(attr.name);
|
|
4899
|
+
}
|
|
4900
|
+
else if (attr && attr.name === "class") {
|
|
4602
4901
|
const isWebComponent = attr.value.includes("hydrated");
|
|
4603
4902
|
const value = attr.value.replace("hydrated", "").trim();
|
|
4604
4903
|
const currentClass = element.getAttribute("class");
|
|
@@ -4623,9 +4922,9 @@ class DBDrawer {
|
|
|
4623
4922
|
}
|
|
4624
4923
|
}
|
|
4625
4924
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBDrawer, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4626
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.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 }, 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
|
|
4925
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.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
|
|
4627
4926
|
class="db-drawer"
|
|
4628
|
-
[attr.id]="id()"
|
|
4927
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
4629
4928
|
#_ref
|
|
4630
4929
|
(click)="handleClose($event)"
|
|
4631
4930
|
(keydown)="handleClose($event)"
|
|
@@ -4647,9 +4946,9 @@ class DBDrawer {
|
|
|
4647
4946
|
<ng-content select="[drawer-header]"> </ng-content>
|
|
4648
4947
|
</div>
|
|
4649
4948
|
<db-button
|
|
4650
|
-
class="button-close-drawer"
|
|
4651
4949
|
icon="cross"
|
|
4652
4950
|
variant="ghost"
|
|
4951
|
+
className="button-close-drawer"
|
|
4653
4952
|
[id]="closeButtonId()"
|
|
4654
4953
|
[noText]="true"
|
|
4655
4954
|
(click)="handleClose($event, true)"
|
|
@@ -4658,13 +4957,13 @@ class DBDrawer {
|
|
|
4658
4957
|
</header>
|
|
4659
4958
|
<div class="db-drawer-content"><ng-content></ng-content></div>
|
|
4660
4959
|
</article>
|
|
4661
|
-
</dialog> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBButton, selector: "db-button", inputs: ["type", "id", "className", "disabled", "iconLeading", "icon", "showIconLeading", "showIcon", "iconTrailing", "showIconTrailing", "size", "width", "variant", "noText", "name", "form", "value", "text"], outputs: ["click"] }] }); }
|
|
4960
|
+
</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"] }] }); }
|
|
4662
4961
|
}
|
|
4663
4962
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBDrawer, decorators: [{
|
|
4664
4963
|
type: Component,
|
|
4665
4964
|
args: [{ selector: "db-drawer", standalone: true, imports: [CommonModule, DBButton], template: `<dialog
|
|
4666
4965
|
class="db-drawer"
|
|
4667
|
-
[attr.id]="id()"
|
|
4966
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
4668
4967
|
#_ref
|
|
4669
4968
|
(click)="handleClose($event)"
|
|
4670
4969
|
(keydown)="handleClose($event)"
|
|
@@ -4686,9 +4985,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
4686
4985
|
<ng-content select="[drawer-header]"> </ng-content>
|
|
4687
4986
|
</div>
|
|
4688
4987
|
<db-button
|
|
4689
|
-
class="button-close-drawer"
|
|
4690
4988
|
icon="cross"
|
|
4691
4989
|
variant="ghost"
|
|
4990
|
+
className="button-close-drawer"
|
|
4692
4991
|
[id]="closeButtonId()"
|
|
4693
4992
|
[noText]="true"
|
|
4694
4993
|
(click)="handleClose($event, true)"
|
|
@@ -4698,7 +4997,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
4698
4997
|
<div class="db-drawer-content"><ng-content></ng-content></div>
|
|
4699
4998
|
</article>
|
|
4700
4999
|
</dialog> `, styles: [":host{display:contents}\n"] }]
|
|
4701
|
-
}], ctorParameters: () => [], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], backdrop: [{ type: i0.Input, args: [{ isSignal: true, alias: "backdrop", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], direction: [{ type: i0.Input, args: [{ isSignal: true, alias: "direction", 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 }] }], rounded: [{ type: i0.Input, args: [{ isSignal: true, alias: "rounded", required: false }] }], closeButtonId: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeButtonId", required: false }] }], closeButtonText: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeButtonText", required: false }] }], close: [{ type: i0.Output, args: ["close"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }], dialogContainerRef: [{ type: i0.ViewChild, args: ["dialogContainerRef", { isSignal: true }] }] } });
|
|
5000
|
+
}], ctorParameters: () => [], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], backdrop: [{ type: i0.Input, args: [{ isSignal: true, alias: "backdrop", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], direction: [{ type: i0.Input, args: [{ isSignal: true, alias: "direction", 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 }] }], rounded: [{ type: i0.Input, args: [{ isSignal: true, alias: "rounded", required: false }] }], closeButtonId: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeButtonId", required: false }] }], closeButtonText: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeButtonText", required: false }] }], close: [{ type: i0.Output, args: ["close"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }], dialogContainerRef: [{ type: i0.ViewChild, args: ["dialogContainerRef", { isSignal: true }] }] } });
|
|
4702
5001
|
|
|
4703
5002
|
const DrawerBackdropList = ['none', 'strong', 'weak', 'invisible'];
|
|
4704
5003
|
const DrawerDirectionList = ['left', 'right', 'up', 'down'];
|
|
@@ -4900,6 +5199,7 @@ class DBHeader {
|
|
|
4900
5199
|
this.drawerOpen = input(...(ngDevMode ? [undefined, { debugName: "drawerOpen" }] : []));
|
|
4901
5200
|
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : []));
|
|
4902
5201
|
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
5202
|
+
this.propOverrides = input(...(ngDevMode ? [undefined, { debugName: "propOverrides" }] : []));
|
|
4903
5203
|
this.width = input(...(ngDevMode ? [undefined, { debugName: "width" }] : []));
|
|
4904
5204
|
this.closeButtonId = input(...(ngDevMode ? [undefined, { debugName: "closeButtonId" }] : []));
|
|
4905
5205
|
this.closeButtonText = input(...(ngDevMode ? [undefined, { debugName: "closeButtonText" }] : []));
|
|
@@ -4941,12 +5241,16 @@ class DBHeader {
|
|
|
4941
5241
|
const attributes = parent.attributes;
|
|
4942
5242
|
for (let i = 0; i < attributes.length; i++) {
|
|
4943
5243
|
const attr = attributes.item(i);
|
|
4944
|
-
if (attr &&
|
|
5244
|
+
if (attr && attr.name !== 'data-density' &&
|
|
4945
5245
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
4946
5246
|
element.setAttribute(attr.name, attr.value);
|
|
4947
5247
|
parent.removeAttribute(attr.name);
|
|
4948
5248
|
}
|
|
4949
|
-
if (attr && attr.name
|
|
5249
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
5250
|
+
element.setAttribute(attr.name, attr.value);
|
|
5251
|
+
parent.removeAttribute(attr.name);
|
|
5252
|
+
}
|
|
5253
|
+
else if (attr && attr.name === "class") {
|
|
4950
5254
|
const isWebComponent = attr.value.includes("hydrated");
|
|
4951
5255
|
const value = attr.value.replace("hydrated", "").trim();
|
|
4952
5256
|
const currentClass = element.getAttribute("class");
|
|
@@ -4970,16 +5274,16 @@ class DBHeader {
|
|
|
4970
5274
|
}
|
|
4971
5275
|
}
|
|
4972
5276
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBHeader, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4973
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.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 }, width: { classPropertyName: "width", publicName: "width", 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 }, burgerMenuLabel: { classPropertyName: "burgerMenuLabel", publicName: "burgerMenuLabel", 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
|
|
5277
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.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 }, closeButtonId: { classPropertyName: "closeButtonId", publicName: "closeButtonId", isSignal: true, isRequired: false, transformFunction: null }, closeButtonText: { classPropertyName: "closeButtonText", publicName: "closeButtonText", isSignal: true, isRequired: false, transformFunction: null }, burgerMenuLabel: { classPropertyName: "burgerMenuLabel", publicName: "burgerMenuLabel", 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
|
|
4974
5278
|
#_ref
|
|
4975
5279
|
[class]="cls('db-header', className())"
|
|
4976
|
-
[attr.id]="id()"
|
|
5280
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
4977
5281
|
[attr.data-width]="width()"
|
|
4978
5282
|
[attr.data-on-forcing-mobile]="forceMobile() && !forcedToMobile()"
|
|
4979
5283
|
>
|
|
4980
5284
|
<db-drawer
|
|
4981
|
-
class="db-header-drawer"
|
|
4982
5285
|
spacing="small"
|
|
5286
|
+
className="db-header-drawer"
|
|
4983
5287
|
[rounded]="true"
|
|
4984
5288
|
[closeButtonId]="closeButtonId()"
|
|
4985
5289
|
[closeButtonText]="closeButtonText()"
|
|
@@ -5027,20 +5331,20 @@ class DBHeader {
|
|
|
5027
5331
|
</div>
|
|
5028
5332
|
</div>
|
|
5029
5333
|
</div>
|
|
5030
|
-
</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: DBDrawer, selector: "db-drawer", inputs: ["open", "position", "backdrop", "variant", "id", "direction", "className", "spacing", "width", "rounded", "closeButtonId", "closeButtonText"], outputs: ["close"] }, { kind: "component", type: DBButton, selector: "db-button", inputs: ["type", "id", "className", "disabled", "iconLeading", "icon", "showIconLeading", "showIcon", "iconTrailing", "showIconTrailing", "size", "width", "variant", "noText", "name", "form", "value", "text"], outputs: ["click"] }] }); }
|
|
5334
|
+
</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: DBDrawer, selector: "db-drawer", inputs: ["open", "position", "backdrop", "variant", "id", "propOverrides", "direction", "className", "spacing", "width", "rounded", "closeButtonId", "closeButtonText"], outputs: ["close"] }, { 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"] }] }); }
|
|
5031
5335
|
}
|
|
5032
5336
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBHeader, decorators: [{
|
|
5033
5337
|
type: Component,
|
|
5034
5338
|
args: [{ selector: "db-header", standalone: true, imports: [CommonModule, DBDrawer, DBButton], template: `<header
|
|
5035
5339
|
#_ref
|
|
5036
5340
|
[class]="cls('db-header', className())"
|
|
5037
|
-
[attr.id]="id()"
|
|
5341
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
5038
5342
|
[attr.data-width]="width()"
|
|
5039
5343
|
[attr.data-on-forcing-mobile]="forceMobile() && !forcedToMobile()"
|
|
5040
5344
|
>
|
|
5041
5345
|
<db-drawer
|
|
5042
|
-
class="db-header-drawer"
|
|
5043
5346
|
spacing="small"
|
|
5347
|
+
className="db-header-drawer"
|
|
5044
5348
|
[rounded]="true"
|
|
5045
5349
|
[closeButtonId]="closeButtonId()"
|
|
5046
5350
|
[closeButtonText]="closeButtonText()"
|
|
@@ -5098,13 +5402,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
5098
5402
|
}], dbSecondaryAction: [{
|
|
5099
5403
|
type: ContentChild,
|
|
5100
5404
|
args: [SecondaryActionDirective, { read: TemplateRef }]
|
|
5101
|
-
}], 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 }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], closeButtonId: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeButtonId", required: false }] }], closeButtonText: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeButtonText", required: false }] }], burgerMenuLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "burgerMenuLabel", required: false }] }], toggle: [{ type: i0.Output, args: ["toggle"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
5405
|
+
}], forceMobile: [{ type: i0.Input, args: [{ isSignal: true, alias: "forceMobile", required: false }] }], drawerOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "drawerOpen", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], closeButtonId: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeButtonId", required: false }] }], closeButtonText: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeButtonText", required: false }] }], burgerMenuLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "burgerMenuLabel", required: false }] }], toggle: [{ type: i0.Output, args: ["toggle"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
5102
5406
|
|
|
5103
5407
|
const defaultProps$g = {};
|
|
5104
5408
|
class DBIcon {
|
|
5105
5409
|
constructor() {
|
|
5106
5410
|
this.cls = cls;
|
|
5107
5411
|
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
5412
|
+
this.propOverrides = input(...(ngDevMode ? [undefined, { debugName: "propOverrides" }] : []));
|
|
5108
5413
|
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : []));
|
|
5109
5414
|
this.icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : []));
|
|
5110
5415
|
this.weight = input(...(ngDevMode ? [undefined, { debugName: "weight" }] : []));
|
|
@@ -5123,12 +5428,16 @@ class DBIcon {
|
|
|
5123
5428
|
const attributes = parent.attributes;
|
|
5124
5429
|
for (let i = 0; i < attributes.length; i++) {
|
|
5125
5430
|
const attr = attributes.item(i);
|
|
5126
|
-
if (attr &&
|
|
5431
|
+
if (attr && attr.name !== 'data-density' &&
|
|
5127
5432
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
5128
5433
|
element.setAttribute(attr.name, attr.value);
|
|
5129
5434
|
parent.removeAttribute(attr.name);
|
|
5130
5435
|
}
|
|
5131
|
-
if (attr && attr.name
|
|
5436
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
5437
|
+
element.setAttribute(attr.name, attr.value);
|
|
5438
|
+
parent.removeAttribute(attr.name);
|
|
5439
|
+
}
|
|
5440
|
+
else if (attr && attr.name === "class") {
|
|
5132
5441
|
const isWebComponent = attr.value.includes("hydrated");
|
|
5133
5442
|
const value = attr.value.replace("hydrated", "").trim();
|
|
5134
5443
|
const currentClass = element.getAttribute("class");
|
|
@@ -5151,15 +5460,15 @@ class DBIcon {
|
|
|
5151
5460
|
}
|
|
5152
5461
|
}
|
|
5153
5462
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBIcon, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5154
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: DBIcon, isStandalone: true, selector: "db-icon", inputs: { id: { classPropertyName: "id", publicName: "id", 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
|
|
5463
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.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
|
|
5155
5464
|
aria-hidden="true"
|
|
5156
5465
|
#_ref
|
|
5157
|
-
[attr.id]="id()"
|
|
5466
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
5158
5467
|
[class]="cls('db-icon', className())"
|
|
5159
5468
|
[attr.data-icon]="icon()"
|
|
5160
5469
|
[attr.data-icon-weight]="weight()"
|
|
5161
5470
|
[attr.data-icon-variant]="variant()"
|
|
5162
|
-
>@if(text()){
|
|
5471
|
+
>@if(text()){{{text()}}}@else{
|
|
5163
5472
|
<ng-content></ng-content>
|
|
5164
5473
|
}</span
|
|
5165
5474
|
> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
@@ -5169,16 +5478,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
5169
5478
|
args: [{ selector: "db-icon", standalone: true, imports: [CommonModule], template: `<span
|
|
5170
5479
|
aria-hidden="true"
|
|
5171
5480
|
#_ref
|
|
5172
|
-
[attr.id]="id()"
|
|
5481
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
5173
5482
|
[class]="cls('db-icon', className())"
|
|
5174
5483
|
[attr.data-icon]="icon()"
|
|
5175
5484
|
[attr.data-icon-weight]="weight()"
|
|
5176
5485
|
[attr.data-icon-variant]="variant()"
|
|
5177
|
-
>@if(text()){
|
|
5486
|
+
>@if(text()){{{text()}}}@else{
|
|
5178
5487
|
<ng-content></ng-content>
|
|
5179
5488
|
}</span
|
|
5180
5489
|
> `, styles: [":host{display:contents}\n"] }]
|
|
5181
|
-
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], weight: [{ type: i0.Input, args: [{ isSignal: true, alias: "weight", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
5490
|
+
}], 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 }] }], weight: [{ type: i0.Input, args: [{ isSignal: true, alias: "weight", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
5182
5491
|
|
|
5183
5492
|
const IconWeightList = ['16', '20', '24', '32', '48', '64'];
|
|
5184
5493
|
|
|
@@ -5194,6 +5503,7 @@ class DBLink {
|
|
|
5194
5503
|
this.cls = cls;
|
|
5195
5504
|
this.getBooleanAsString = getBooleanAsString;
|
|
5196
5505
|
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
5506
|
+
this.propOverrides = input(...(ngDevMode ? [undefined, { debugName: "propOverrides" }] : []));
|
|
5197
5507
|
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : []));
|
|
5198
5508
|
this.href = input(...(ngDevMode ? [undefined, { debugName: "href" }] : []));
|
|
5199
5509
|
this.target = input(...(ngDevMode ? [undefined, { debugName: "target" }] : []));
|
|
@@ -5222,12 +5532,16 @@ class DBLink {
|
|
|
5222
5532
|
const attributes = parent.attributes;
|
|
5223
5533
|
for (let i = 0; i < attributes.length; i++) {
|
|
5224
5534
|
const attr = attributes.item(i);
|
|
5225
|
-
if (attr &&
|
|
5535
|
+
if (attr && attr.name !== 'data-density' &&
|
|
5226
5536
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
5227
5537
|
element.setAttribute(attr.name, attr.value);
|
|
5228
5538
|
parent.removeAttribute(attr.name);
|
|
5229
5539
|
}
|
|
5230
|
-
if (attr && attr.name
|
|
5540
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
5541
|
+
element.setAttribute(attr.name, attr.value);
|
|
5542
|
+
parent.removeAttribute(attr.name);
|
|
5543
|
+
}
|
|
5544
|
+
else if (attr && attr.name === "class") {
|
|
5231
5545
|
const isWebComponent = attr.value.includes("hydrated");
|
|
5232
5546
|
const value = attr.value.replace("hydrated", "").trim();
|
|
5233
5547
|
const currentClass = element.getAttribute("class");
|
|
@@ -5250,9 +5564,9 @@ class DBLink {
|
|
|
5250
5564
|
}
|
|
5251
5565
|
}
|
|
5252
5566
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBLink, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5253
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: DBLink, isStandalone: true, selector: "db-link", inputs: { id: { classPropertyName: "id", publicName: "id", 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
|
|
5567
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.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
|
|
5254
5568
|
#_ref
|
|
5255
|
-
[attr.id]="id()"
|
|
5569
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
5256
5570
|
[class]="cls('db-link', className())"
|
|
5257
5571
|
[attr.href]="href()"
|
|
5258
5572
|
[attr.target]="target()"
|
|
@@ -5267,7 +5581,7 @@ class DBLink {
|
|
|
5267
5581
|
[attr.data-variant]="variant()"
|
|
5268
5582
|
[attr.data-content]="content() || 'internal'"
|
|
5269
5583
|
[attr.data-wrap]="getBooleanAsString(wrap())"
|
|
5270
|
-
>@if(text()){
|
|
5584
|
+
>@if(text()){{{text()}}}@else{
|
|
5271
5585
|
<ng-content></ng-content>
|
|
5272
5586
|
}</a
|
|
5273
5587
|
> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
@@ -5276,7 +5590,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
5276
5590
|
type: Component,
|
|
5277
5591
|
args: [{ selector: "db-link", standalone: true, imports: [CommonModule], template: `<a
|
|
5278
5592
|
#_ref
|
|
5279
|
-
[attr.id]="id()"
|
|
5593
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
5280
5594
|
[class]="cls('db-link', className())"
|
|
5281
5595
|
[attr.href]="href()"
|
|
5282
5596
|
[attr.target]="target()"
|
|
@@ -5291,11 +5605,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
5291
5605
|
[attr.data-variant]="variant()"
|
|
5292
5606
|
[attr.data-content]="content() || 'internal'"
|
|
5293
5607
|
[attr.data-wrap]="getBooleanAsString(wrap())"
|
|
5294
|
-
>@if(text()){
|
|
5608
|
+
>@if(text()){{{text()}}}@else{
|
|
5295
5609
|
<ng-content></ng-content>
|
|
5296
5610
|
}</a
|
|
5297
5611
|
> `, styles: [":host{display:contents}\n"] }]
|
|
5298
|
-
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", 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 }] }] } });
|
|
5612
|
+
}], 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 }] }] } });
|
|
5299
5613
|
|
|
5300
5614
|
const LinkVariantList = ['adaptive', 'brand', 'inline'];
|
|
5301
5615
|
const LinkSizeList = ['medium', 'small'];
|
|
@@ -5306,6 +5620,7 @@ class DBNavigation {
|
|
|
5306
5620
|
constructor() {
|
|
5307
5621
|
this.cls = cls;
|
|
5308
5622
|
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
5623
|
+
this.propOverrides = input(...(ngDevMode ? [undefined, { debugName: "propOverrides" }] : []));
|
|
5309
5624
|
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : []));
|
|
5310
5625
|
this._ref = viewChild("_ref", ...(ngDevMode ? [{ debugName: "_ref" }] : []));
|
|
5311
5626
|
}
|
|
@@ -5320,12 +5635,16 @@ class DBNavigation {
|
|
|
5320
5635
|
const attributes = parent.attributes;
|
|
5321
5636
|
for (let i = 0; i < attributes.length; i++) {
|
|
5322
5637
|
const attr = attributes.item(i);
|
|
5323
|
-
if (attr &&
|
|
5638
|
+
if (attr && attr.name !== 'data-density' &&
|
|
5324
5639
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
5325
5640
|
element.setAttribute(attr.name, attr.value);
|
|
5326
5641
|
parent.removeAttribute(attr.name);
|
|
5327
5642
|
}
|
|
5328
|
-
if (attr && attr.name
|
|
5643
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
5644
|
+
element.setAttribute(attr.name, attr.value);
|
|
5645
|
+
parent.removeAttribute(attr.name);
|
|
5646
|
+
}
|
|
5647
|
+
else if (attr && attr.name === "class") {
|
|
5329
5648
|
const isWebComponent = attr.value.includes("hydrated");
|
|
5330
5649
|
const value = attr.value.replace("hydrated", "").trim();
|
|
5331
5650
|
const currentClass = element.getAttribute("class");
|
|
@@ -5348,9 +5667,9 @@ class DBNavigation {
|
|
|
5348
5667
|
}
|
|
5349
5668
|
}
|
|
5350
5669
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBNavigation, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5351
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.16", type: DBNavigation, isStandalone: true, selector: "db-navigation", 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: `<nav
|
|
5670
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.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
|
|
5352
5671
|
#_ref
|
|
5353
|
-
[attr.id]="id()"
|
|
5672
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
5354
5673
|
[class]="cls('db-navigation', className())"
|
|
5355
5674
|
>
|
|
5356
5675
|
<menu><ng-content></ng-content></menu>
|
|
@@ -5360,12 +5679,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
5360
5679
|
type: Component,
|
|
5361
5680
|
args: [{ selector: "db-navigation", standalone: true, imports: [CommonModule], template: `<nav
|
|
5362
5681
|
#_ref
|
|
5363
|
-
[attr.id]="id()"
|
|
5682
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
5364
5683
|
[class]="cls('db-navigation', className())"
|
|
5365
5684
|
>
|
|
5366
5685
|
<menu><ng-content></ng-content></menu>
|
|
5367
5686
|
</nav> `, styles: [":host{display:contents}\n"] }]
|
|
5368
|
-
}], 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 }] }] } });
|
|
5687
|
+
}], 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 }] }] } });
|
|
5369
5688
|
|
|
5370
5689
|
/* Angular cannot handle multiple slots with the same name, we need to use Directives for this. */
|
|
5371
5690
|
class NavigationContentDirective {
|
|
@@ -5410,6 +5729,7 @@ class DBNavigationItem {
|
|
|
5410
5729
|
this.DEFAULT_BACK = DEFAULT_BACK;
|
|
5411
5730
|
this.subNavigationExpanded = input(...(ngDevMode ? [undefined, { debugName: "subNavigationExpanded" }] : []));
|
|
5412
5731
|
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
5732
|
+
this.propOverrides = input(...(ngDevMode ? [undefined, { debugName: "propOverrides" }] : []));
|
|
5413
5733
|
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : []));
|
|
5414
5734
|
this.width = input(...(ngDevMode ? [undefined, { debugName: "width" }] : []));
|
|
5415
5735
|
this.icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : []));
|
|
@@ -5474,12 +5794,16 @@ class DBNavigationItem {
|
|
|
5474
5794
|
const attributes = parent.attributes;
|
|
5475
5795
|
for (let i = 0; i < attributes.length; i++) {
|
|
5476
5796
|
const attr = attributes.item(i);
|
|
5477
|
-
if (attr &&
|
|
5797
|
+
if (attr && attr.name !== 'data-density' &&
|
|
5478
5798
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
5479
5799
|
element.setAttribute(attr.name, attr.value);
|
|
5480
5800
|
parent.removeAttribute(attr.name);
|
|
5481
5801
|
}
|
|
5482
|
-
if (attr && attr.name
|
|
5802
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
5803
|
+
element.setAttribute(attr.name, attr.value);
|
|
5804
|
+
parent.removeAttribute(attr.name);
|
|
5805
|
+
}
|
|
5806
|
+
else if (attr && attr.name === "class") {
|
|
5483
5807
|
const isWebComponent = attr.value.includes("hydrated");
|
|
5484
5808
|
const value = attr.value.replace("hydrated", "").trim();
|
|
5485
5809
|
const currentClass = element.getAttribute("class");
|
|
@@ -5503,9 +5827,9 @@ class DBNavigationItem {
|
|
|
5503
5827
|
}
|
|
5504
5828
|
}
|
|
5505
5829
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBNavigationItem, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5506
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: DBNavigationItem, isStandalone: true, selector: "db-navigation-item", inputs: { subNavigationExpanded: { classPropertyName: "subNavigationExpanded", publicName: "subNavigationExpanded", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", 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 }, 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
|
|
5830
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: DBNavigationItem, isStandalone: true, selector: "db-navigation-item", inputs: { subNavigationExpanded: { classPropertyName: "subNavigationExpanded", publicName: "subNavigationExpanded", 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 }, 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 }, 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
|
|
5507
5831
|
#_ref
|
|
5508
|
-
[attr.id]="id()"
|
|
5832
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
5509
5833
|
(mouseover)="navigationItemSafeTriangle()?.enableFollow()"
|
|
5510
5834
|
(mouseleave)="navigationItemSafeTriangle()?.disableFollow()"
|
|
5511
5835
|
(mousemove)="navigationItemSafeTriangle()?.followByMouseEvent($event)"
|
|
@@ -5517,7 +5841,7 @@ class DBNavigationItem {
|
|
|
5517
5841
|
[attr.data-wrap]="getBooleanAsString(wrap())"
|
|
5518
5842
|
[attr.aria-disabled]="getBooleanAsString(disabled())"
|
|
5519
5843
|
>
|
|
5520
|
-
@if(!hasSubNavigation()){ @if(text()){
|
|
5844
|
+
@if(!hasSubNavigation()){ @if(text()){{{text()}}}@else{
|
|
5521
5845
|
<ng-content *ngTemplateOutlet="dbNavigationContent"></ng-content>
|
|
5522
5846
|
} } @if(hasSubNavigation()){
|
|
5523
5847
|
<button
|
|
@@ -5527,7 +5851,7 @@ class DBNavigationItem {
|
|
|
5527
5851
|
[attr.disabled]="getBoolean(disabled(), 'disabled')"
|
|
5528
5852
|
(click)="handleClick($event)"
|
|
5529
5853
|
>
|
|
5530
|
-
@if(text()){
|
|
5854
|
+
@if(text()){{{text()}}}@else{
|
|
5531
5855
|
<ng-content *ngTemplateOutlet="dbNavigationContent"></ng-content>
|
|
5532
5856
|
}
|
|
5533
5857
|
</button>
|
|
@@ -5549,13 +5873,13 @@ class DBNavigationItem {
|
|
|
5549
5873
|
<ng-content select="[sub-navigation]"> </ng-content
|
|
5550
5874
|
></menu>
|
|
5551
5875
|
}
|
|
5552
|
-
</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", "className", "disabled", "iconLeading", "icon", "showIconLeading", "showIcon", "iconTrailing", "showIconTrailing", "size", "width", "variant", "noText", "name", "form", "value", "text"], outputs: ["click"] }] }); }
|
|
5876
|
+
</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"] }] }); }
|
|
5553
5877
|
}
|
|
5554
5878
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBNavigationItem, decorators: [{
|
|
5555
5879
|
type: Component,
|
|
5556
5880
|
args: [{ selector: "db-navigation-item", standalone: true, imports: [CommonModule, DBButton], template: `<li
|
|
5557
5881
|
#_ref
|
|
5558
|
-
[attr.id]="id()"
|
|
5882
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
5559
5883
|
(mouseover)="navigationItemSafeTriangle()?.enableFollow()"
|
|
5560
5884
|
(mouseleave)="navigationItemSafeTriangle()?.disableFollow()"
|
|
5561
5885
|
(mousemove)="navigationItemSafeTriangle()?.followByMouseEvent($event)"
|
|
@@ -5567,7 +5891,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
5567
5891
|
[attr.data-wrap]="getBooleanAsString(wrap())"
|
|
5568
5892
|
[attr.aria-disabled]="getBooleanAsString(disabled())"
|
|
5569
5893
|
>
|
|
5570
|
-
@if(!hasSubNavigation()){ @if(text()){
|
|
5894
|
+
@if(!hasSubNavigation()){ @if(text()){{{text()}}}@else{
|
|
5571
5895
|
<ng-content *ngTemplateOutlet="dbNavigationContent"></ng-content>
|
|
5572
5896
|
} } @if(hasSubNavigation()){
|
|
5573
5897
|
<button
|
|
@@ -5577,7 +5901,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
5577
5901
|
[attr.disabled]="getBoolean(disabled(), 'disabled')"
|
|
5578
5902
|
(click)="handleClick($event)"
|
|
5579
5903
|
>
|
|
5580
|
-
@if(text()){
|
|
5904
|
+
@if(text()){{{text()}}}@else{
|
|
5581
5905
|
<ng-content *ngTemplateOutlet="dbNavigationContent"></ng-content>
|
|
5582
5906
|
}
|
|
5583
5907
|
</button>
|
|
@@ -5603,7 +5927,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
5603
5927
|
}], ctorParameters: () => [], propDecorators: { dbNavigationContent: [{
|
|
5604
5928
|
type: ContentChild,
|
|
5605
5929
|
args: [NavigationContentDirective, { read: TemplateRef }]
|
|
5606
|
-
}], subNavigationExpanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "subNavigationExpanded", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], active: [{ type: i0.Input, args: [{ isSignal: true, alias: "active", required: false }] }], wrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "wrap", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], backButtonId: [{ type: i0.Input, args: [{ isSignal: true, alias: "backButtonId", required: false }] }], backButtonText: [{ type: i0.Input, args: [{ isSignal: true, alias: "backButtonText", required: false }] }], click: [{ type: i0.Output, args: ["click"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
5930
|
+
}], subNavigationExpanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "subNavigationExpanded", 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 }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], active: [{ type: i0.Input, args: [{ isSignal: true, alias: "active", required: false }] }], wrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "wrap", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], backButtonId: [{ type: i0.Input, args: [{ isSignal: true, alias: "backButtonId", required: false }] }], backButtonText: [{ type: i0.Input, args: [{ isSignal: true, alias: "backButtonText", required: false }] }], click: [{ type: i0.Output, args: ["click"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
5607
5931
|
|
|
5608
5932
|
const defaultProps$c = {};
|
|
5609
5933
|
class DBNotification {
|
|
@@ -5623,6 +5947,7 @@ class DBNotification {
|
|
|
5623
5947
|
this.stringPropVisible = stringPropVisible;
|
|
5624
5948
|
this.DEFAULT_CLOSE_BUTTON = DEFAULT_CLOSE_BUTTON;
|
|
5625
5949
|
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
5950
|
+
this.propOverrides = input(...(ngDevMode ? [undefined, { debugName: "propOverrides" }] : []));
|
|
5626
5951
|
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : []));
|
|
5627
5952
|
this.semantic = input(...(ngDevMode ? [undefined, { debugName: "semantic" }] : []));
|
|
5628
5953
|
this.role = input(...(ngDevMode ? [undefined, { debugName: "role" }] : []));
|
|
@@ -5653,12 +5978,16 @@ class DBNotification {
|
|
|
5653
5978
|
const attributes = parent.attributes;
|
|
5654
5979
|
for (let i = 0; i < attributes.length; i++) {
|
|
5655
5980
|
const attr = attributes.item(i);
|
|
5656
|
-
if (attr &&
|
|
5981
|
+
if (attr && attr.name !== 'data-density' &&
|
|
5657
5982
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
5658
5983
|
element.setAttribute(attr.name, attr.value);
|
|
5659
5984
|
parent.removeAttribute(attr.name);
|
|
5660
5985
|
}
|
|
5661
|
-
if (attr && attr.name
|
|
5986
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
5987
|
+
element.setAttribute(attr.name, attr.value);
|
|
5988
|
+
parent.removeAttribute(attr.name);
|
|
5989
|
+
}
|
|
5990
|
+
else if (attr && attr.name === "class") {
|
|
5662
5991
|
const isWebComponent = attr.value.includes("hydrated");
|
|
5663
5992
|
const value = attr.value.replace("hydrated", "").trim();
|
|
5664
5993
|
const currentClass = element.getAttribute("class");
|
|
@@ -5681,9 +6010,9 @@ class DBNotification {
|
|
|
5681
6010
|
}
|
|
5682
6011
|
}
|
|
5683
6012
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBNotification, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5684
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: DBNotification, isStandalone: true, selector: "db-notification", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, semantic: { classPropertyName: "semantic", publicName: "semantic", isSignal: true, isRequired: false, transformFunction: null }, role: { classPropertyName: "role", publicName: "role", isSignal: true, isRequired: false, transformFunction: null }, ariaLive: { classPropertyName: "ariaLive", publicName: "ariaLive", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, linkVariant: { classPropertyName: "linkVariant", publicName: "linkVariant", isSignal: true, isRequired: false, transformFunction: null }, headline: { classPropertyName: "headline", publicName: "headline", isSignal: true, isRequired: false, transformFunction: null }, showHeadline: { classPropertyName: "showHeadline", publicName: "showHeadline", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, timestamp: { classPropertyName: "timestamp", publicName: "timestamp", isSignal: true, isRequired: false, transformFunction: null }, showTimestamp: { classPropertyName: "showTimestamp", publicName: "showTimestamp", isSignal: true, isRequired: false, transformFunction: null }, closeable: { classPropertyName: "closeable", publicName: "closeable", isSignal: true, isRequired: false, transformFunction: null }, closeButtonId: { classPropertyName: "closeButtonId", publicName: "closeButtonId", isSignal: true, isRequired: false, transformFunction: null }, closeButtonText: { classPropertyName: "closeButtonText", publicName: "closeButtonText", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { close: "close" }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<div
|
|
6013
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: DBNotification, isStandalone: true, selector: "db-notification", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, 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 }, 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
|
|
5685
6014
|
#_ref
|
|
5686
|
-
[attr.id]="id()"
|
|
6015
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
5687
6016
|
[class]="cls('db-notification', className())"
|
|
5688
6017
|
[attr.role]="getNotificationRole({
|
|
5689
6018
|
semantic: semantic(),
|
|
@@ -5702,7 +6031,7 @@ class DBNotification {
|
|
|
5702
6031
|
<header>{{headline()}}</header>
|
|
5703
6032
|
}
|
|
5704
6033
|
<p>
|
|
5705
|
-
@if(text()){
|
|
6034
|
+
@if(text()){{{text()}}}@else{
|
|
5706
6035
|
<ng-content></ng-content>
|
|
5707
6036
|
}
|
|
5708
6037
|
</p>
|
|
@@ -5721,13 +6050,13 @@ class DBNotification {
|
|
|
5721
6050
|
>{{closeButtonText() ?? DEFAULT_CLOSE_BUTTON}}</db-button
|
|
5722
6051
|
>
|
|
5723
6052
|
}
|
|
5724
|
-
</div> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBButton, selector: "db-button", inputs: ["type", "id", "className", "disabled", "iconLeading", "icon", "showIconLeading", "showIcon", "iconTrailing", "showIconTrailing", "size", "width", "variant", "noText", "name", "form", "value", "text"], outputs: ["click"] }] }); }
|
|
6053
|
+
</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"] }] }); }
|
|
5725
6054
|
}
|
|
5726
6055
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBNotification, decorators: [{
|
|
5727
6056
|
type: Component,
|
|
5728
6057
|
args: [{ selector: "db-notification", standalone: true, imports: [CommonModule, DBButton], template: `<div
|
|
5729
6058
|
#_ref
|
|
5730
|
-
[attr.id]="id()"
|
|
6059
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
5731
6060
|
[class]="cls('db-notification', className())"
|
|
5732
6061
|
[attr.role]="getNotificationRole({
|
|
5733
6062
|
semantic: semantic(),
|
|
@@ -5746,7 +6075,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
5746
6075
|
<header>{{headline()}}</header>
|
|
5747
6076
|
}
|
|
5748
6077
|
<p>
|
|
5749
|
-
@if(text()){
|
|
6078
|
+
@if(text()){{{text()}}}@else{
|
|
5750
6079
|
<ng-content></ng-content>
|
|
5751
6080
|
}
|
|
5752
6081
|
</p>
|
|
@@ -5766,7 +6095,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
5766
6095
|
>
|
|
5767
6096
|
}
|
|
5768
6097
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
5769
|
-
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], semantic: [{ type: i0.Input, args: [{ isSignal: true, alias: "semantic", required: false }] }], role: [{ type: i0.Input, args: [{ isSignal: true, alias: "role", required: false }] }], ariaLive: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLive", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], linkVariant: [{ type: i0.Input, args: [{ isSignal: true, alias: "linkVariant", required: false }] }], headline: [{ type: i0.Input, args: [{ isSignal: true, alias: "headline", required: false }] }], showHeadline: [{ type: i0.Input, args: [{ isSignal: true, alias: "showHeadline", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], timestamp: [{ type: i0.Input, args: [{ isSignal: true, alias: "timestamp", required: false }] }], showTimestamp: [{ type: i0.Input, args: [{ isSignal: true, alias: "showTimestamp", required: false }] }], closeable: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeable", required: false }] }], closeButtonId: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeButtonId", required: false }] }], closeButtonText: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeButtonText", required: false }] }], close: [{ type: i0.Output, args: ["close"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
6098
|
+
}], 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 }] }], semantic: [{ type: i0.Input, args: [{ isSignal: true, alias: "semantic", required: false }] }], role: [{ type: i0.Input, args: [{ isSignal: true, alias: "role", required: false }] }], ariaLive: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLive", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], linkVariant: [{ type: i0.Input, args: [{ isSignal: true, alias: "linkVariant", required: false }] }], headline: [{ type: i0.Input, args: [{ isSignal: true, alias: "headline", required: false }] }], showHeadline: [{ type: i0.Input, args: [{ isSignal: true, alias: "showHeadline", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], timestamp: [{ type: i0.Input, args: [{ isSignal: true, alias: "timestamp", required: false }] }], showTimestamp: [{ type: i0.Input, args: [{ isSignal: true, alias: "showTimestamp", required: false }] }], closeable: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeable", required: false }] }], closeButtonId: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeButtonId", required: false }] }], closeButtonText: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeButtonText", required: false }] }], close: [{ type: i0.Output, args: ["close"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
5770
6099
|
|
|
5771
6100
|
const NotificationVariantList = ['docked', 'standalone', 'overlay'];
|
|
5772
6101
|
const NotificationLinkVariantList = ['block', 'inline'];
|
|
@@ -5781,6 +6110,7 @@ class DBPage {
|
|
|
5781
6110
|
this.documentOverflow = input(...(ngDevMode ? [undefined, { debugName: "documentOverflow" }] : []));
|
|
5782
6111
|
this.variant = input(...(ngDevMode ? [undefined, { debugName: "variant" }] : []));
|
|
5783
6112
|
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
6113
|
+
this.propOverrides = input(...(ngDevMode ? [undefined, { debugName: "propOverrides" }] : []));
|
|
5784
6114
|
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : []));
|
|
5785
6115
|
this.mainClass = input(...(ngDevMode ? [undefined, { debugName: "mainClass" }] : []));
|
|
5786
6116
|
this._ref = viewChild("_ref", ...(ngDevMode ? [{ debugName: "_ref" }] : []));
|
|
@@ -5797,12 +6127,16 @@ class DBPage {
|
|
|
5797
6127
|
const attributes = parent.attributes;
|
|
5798
6128
|
for (let i = 0; i < attributes.length; i++) {
|
|
5799
6129
|
const attr = attributes.item(i);
|
|
5800
|
-
if (attr &&
|
|
6130
|
+
if (attr && attr.name !== 'data-density' &&
|
|
5801
6131
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
5802
6132
|
element.setAttribute(attr.name, attr.value);
|
|
5803
6133
|
parent.removeAttribute(attr.name);
|
|
5804
6134
|
}
|
|
5805
|
-
if (attr && attr.name
|
|
6135
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
6136
|
+
element.setAttribute(attr.name, attr.value);
|
|
6137
|
+
parent.removeAttribute(attr.name);
|
|
6138
|
+
}
|
|
6139
|
+
else if (attr && attr.name === "class") {
|
|
5806
6140
|
const isWebComponent = attr.value.includes("hydrated");
|
|
5807
6141
|
const value = attr.value.replace("hydrated", "").trim();
|
|
5808
6142
|
const currentClass = element.getAttribute("class");
|
|
@@ -5851,9 +6185,9 @@ class DBPage {
|
|
|
5851
6185
|
}
|
|
5852
6186
|
}
|
|
5853
6187
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBPage, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5854
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.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 }, 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
|
|
6188
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.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
|
|
5855
6189
|
#_ref
|
|
5856
|
-
[attr.id]="id()"
|
|
6190
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
5857
6191
|
[class]="cls('db-page', className())"
|
|
5858
6192
|
[attr.data-variant]="variant()"
|
|
5859
6193
|
[attr.data-fade-in]="getBooleanAsString(fadeIn())"
|
|
@@ -5868,7 +6202,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
5868
6202
|
type: Component,
|
|
5869
6203
|
args: [{ selector: "db-page", standalone: true, imports: [CommonModule], template: `<div
|
|
5870
6204
|
#_ref
|
|
5871
|
-
[attr.id]="id()"
|
|
6205
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
5872
6206
|
[class]="cls('db-page', className())"
|
|
5873
6207
|
[attr.data-variant]="variant()"
|
|
5874
6208
|
[attr.data-fade-in]="getBooleanAsString(fadeIn())"
|
|
@@ -5878,7 +6212,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
5878
6212
|
<main [class]="cls('db-main', mainClass())"><ng-content></ng-content></main>
|
|
5879
6213
|
<ng-content select="[footer]"> </ng-content>
|
|
5880
6214
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
5881
|
-
}], ctorParameters: () => [], propDecorators: { fadeIn: [{ type: i0.Input, args: [{ isSignal: true, alias: "fadeIn", required: false }] }], documentOverflow: [{ type: i0.Input, args: [{ isSignal: true, alias: "documentOverflow", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], mainClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "mainClass", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
6215
|
+
}], ctorParameters: () => [], propDecorators: { fadeIn: [{ type: i0.Input, args: [{ isSignal: true, alias: "fadeIn", required: false }] }], documentOverflow: [{ type: i0.Input, args: [{ isSignal: true, alias: "documentOverflow", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", 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 }] }], mainClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "mainClass", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
5882
6216
|
|
|
5883
6217
|
const PageVariantList = ['auto', 'fixed'];
|
|
5884
6218
|
const PageDocumentOverflowList = ['hidden', 'auto'];
|
|
@@ -5899,7 +6233,7 @@ class DBPopover {
|
|
|
5899
6233
|
const article = this._ref()?.nativeElement.querySelector("article");
|
|
5900
6234
|
if (article) {
|
|
5901
6235
|
// This is a workaround for angular
|
|
5902
|
-
delay(() => {
|
|
6236
|
+
void delay(() => {
|
|
5903
6237
|
handleFixedPopover(article, this._ref()?.nativeElement, this.placement() ?? "bottom");
|
|
5904
6238
|
}, 1);
|
|
5905
6239
|
}
|
|
@@ -5959,6 +6293,7 @@ class DBPopover {
|
|
|
5959
6293
|
this.getBooleanAsString = getBooleanAsString;
|
|
5960
6294
|
this.placement = input(...(ngDevMode ? [undefined, { debugName: "placement" }] : []));
|
|
5961
6295
|
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
6296
|
+
this.propOverrides = input(...(ngDevMode ? [undefined, { debugName: "propOverrides" }] : []));
|
|
5962
6297
|
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : []));
|
|
5963
6298
|
this.spacing = input(...(ngDevMode ? [undefined, { debugName: "spacing" }] : []));
|
|
5964
6299
|
this.gap = input(...(ngDevMode ? [undefined, { debugName: "gap" }] : []));
|
|
@@ -6031,12 +6366,16 @@ class DBPopover {
|
|
|
6031
6366
|
const attributes = parent.attributes;
|
|
6032
6367
|
for (let i = 0; i < attributes.length; i++) {
|
|
6033
6368
|
const attr = attributes.item(i);
|
|
6034
|
-
if (attr &&
|
|
6369
|
+
if (attr && attr.name !== 'data-density' &&
|
|
6035
6370
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
6036
6371
|
element.setAttribute(attr.name, attr.value);
|
|
6037
6372
|
parent.removeAttribute(attr.name);
|
|
6038
6373
|
}
|
|
6039
|
-
if (attr && attr.name
|
|
6374
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
6375
|
+
element.setAttribute(attr.name, attr.value);
|
|
6376
|
+
parent.removeAttribute(attr.name);
|
|
6377
|
+
}
|
|
6378
|
+
else if (attr && attr.name === "class") {
|
|
6040
6379
|
const isWebComponent = attr.value.includes("hydrated");
|
|
6041
6380
|
const value = attr.value.replace("hydrated", "").trim();
|
|
6042
6381
|
const currentClass = element.getAttribute("class");
|
|
@@ -6060,9 +6399,9 @@ class DBPopover {
|
|
|
6060
6399
|
}
|
|
6061
6400
|
}
|
|
6062
6401
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBPopover, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6063
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.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 }, 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
|
|
6402
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.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
|
|
6064
6403
|
#_ref
|
|
6065
|
-
[attr.id]="id()"
|
|
6404
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
6066
6405
|
[class]="cls('db-popover', className())"
|
|
6067
6406
|
>
|
|
6068
6407
|
<ng-content select="[trigger]"> </ng-content>
|
|
@@ -6084,7 +6423,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
6084
6423
|
type: Component,
|
|
6085
6424
|
args: [{ selector: "db-popover", standalone: true, imports: [CommonModule], template: `<div
|
|
6086
6425
|
#_ref
|
|
6087
|
-
[attr.id]="id()"
|
|
6426
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
6088
6427
|
[class]="cls('db-popover', className())"
|
|
6089
6428
|
>
|
|
6090
6429
|
<ng-content select="[trigger]"> </ng-content>
|
|
@@ -6101,7 +6440,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
6101
6440
|
<ng-content></ng-content>
|
|
6102
6441
|
</article>
|
|
6103
6442
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
6104
|
-
}], ctorParameters: () => [], propDecorators: { placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "placement", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", 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 }] }] } });
|
|
6443
|
+
}], 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 }] }] } });
|
|
6105
6444
|
|
|
6106
6445
|
const defaultProps$9 = {};
|
|
6107
6446
|
class DBRadio {
|
|
@@ -6132,12 +6471,16 @@ class DBRadio {
|
|
|
6132
6471
|
this.focus.emit(event);
|
|
6133
6472
|
}
|
|
6134
6473
|
}
|
|
6474
|
+
resetIds() {
|
|
6475
|
+
this._id.set(this.id() ?? this.propOverrides()?.id ?? `radio-${uuid()}`);
|
|
6476
|
+
}
|
|
6135
6477
|
constructor(renderer) {
|
|
6136
6478
|
this.renderer = renderer;
|
|
6137
6479
|
this.getHideProp = getHideProp;
|
|
6138
6480
|
this.cls = cls;
|
|
6139
6481
|
this.getBoolean = getBoolean;
|
|
6140
6482
|
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
6483
|
+
this.propOverrides = input(...(ngDevMode ? [undefined, { debugName: "propOverrides" }] : []));
|
|
6141
6484
|
this.checked = input(...(ngDevMode ? [undefined, { debugName: "checked" }] : []));
|
|
6142
6485
|
this.size = input(...(ngDevMode ? [undefined, { debugName: "size" }] : []));
|
|
6143
6486
|
this.showLabel = input(...(ngDevMode ? [undefined, { debugName: "showLabel" }] : []));
|
|
@@ -6158,6 +6501,16 @@ class DBRadio {
|
|
|
6158
6501
|
this._id = signal(undefined, ...(ngDevMode ? [{ debugName: "_id" }] : []));
|
|
6159
6502
|
this.abortController = signal(undefined, ...(ngDevMode ? [{ debugName: "abortController" }] : []));
|
|
6160
6503
|
if (typeof window !== "undefined") {
|
|
6504
|
+
effect(() => {
|
|
6505
|
+
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
6506
|
+
this.id();
|
|
6507
|
+
// ---
|
|
6508
|
+
if (this.id() ?? this.propOverrides()?.id) {
|
|
6509
|
+
this.resetIds();
|
|
6510
|
+
}
|
|
6511
|
+
}, {
|
|
6512
|
+
// Enable writing to signals inside effects
|
|
6513
|
+
});
|
|
6161
6514
|
effect(() => {
|
|
6162
6515
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
6163
6516
|
this.initialized();
|
|
@@ -6219,12 +6572,16 @@ class DBRadio {
|
|
|
6219
6572
|
const attributes = parent.attributes;
|
|
6220
6573
|
for (let i = 0; i < attributes.length; i++) {
|
|
6221
6574
|
const attr = attributes.item(i);
|
|
6222
|
-
if (attr &&
|
|
6575
|
+
if (attr && attr.name !== 'data-density' &&
|
|
6223
6576
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
6224
6577
|
element.setAttribute(attr.name, attr.value);
|
|
6225
6578
|
parent.removeAttribute(attr.name);
|
|
6226
6579
|
}
|
|
6227
|
-
if (attr && attr.name
|
|
6580
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
6581
|
+
element.setAttribute(attr.name, attr.value);
|
|
6582
|
+
parent.removeAttribute(attr.name);
|
|
6583
|
+
}
|
|
6584
|
+
else if (attr && attr.name === "class") {
|
|
6228
6585
|
const isWebComponent = attr.value.includes("hydrated");
|
|
6229
6586
|
const value = attr.value.replace("hydrated", "").trim();
|
|
6230
6587
|
const currentClass = element.getAttribute("class");
|
|
@@ -6262,14 +6619,14 @@ class DBRadio {
|
|
|
6262
6619
|
const element = this._ref()?.nativeElement;
|
|
6263
6620
|
this.enableAttributePassing(element, "db-radio");
|
|
6264
6621
|
this.initialized.set(true);
|
|
6265
|
-
this.
|
|
6622
|
+
this.resetIds();
|
|
6266
6623
|
}
|
|
6267
6624
|
}
|
|
6268
6625
|
ngOnDestroy() {
|
|
6269
6626
|
this.abortController()?.abort();
|
|
6270
6627
|
}
|
|
6271
6628
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBRadio, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6272
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: DBRadio, isStandalone: true, selector: "db-radio", inputs: { id: { classPropertyName: "id", publicName: "id", 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: [{
|
|
6629
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.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: [{
|
|
6273
6630
|
provide: NG_VALUE_ACCESSOR,
|
|
6274
6631
|
useExisting: DBRadio,
|
|
6275
6632
|
multi: true
|
|
@@ -6295,7 +6652,7 @@ class DBRadio {
|
|
|
6295
6652
|
(blur)="handleBlur($event)"
|
|
6296
6653
|
(focus)="handleFocus($event)"
|
|
6297
6654
|
/>
|
|
6298
|
-
@if(label()){
|
|
6655
|
+
@if(label()){{{label()}}}@else{
|
|
6299
6656
|
<ng-content></ng-content>
|
|
6300
6657
|
}</label
|
|
6301
6658
|
> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
@@ -6328,17 +6685,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
6328
6685
|
(blur)="handleBlur($event)"
|
|
6329
6686
|
(focus)="handleFocus($event)"
|
|
6330
6687
|
/>
|
|
6331
|
-
@if(label()){
|
|
6688
|
+
@if(label()){{{label()}}}@else{
|
|
6332
6689
|
<ng-content></ng-content>
|
|
6333
6690
|
}</label
|
|
6334
6691
|
> `, styles: [":host{display:contents}\n"] }]
|
|
6335
|
-
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", 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 }] }] } });
|
|
6692
|
+
}], 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 }] }] } });
|
|
6336
6693
|
|
|
6337
6694
|
const defaultProps$8 = {};
|
|
6338
6695
|
class DBSection {
|
|
6339
6696
|
constructor() {
|
|
6340
6697
|
this.cls = cls;
|
|
6341
6698
|
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
6699
|
+
this.propOverrides = input(...(ngDevMode ? [undefined, { debugName: "propOverrides" }] : []));
|
|
6342
6700
|
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : []));
|
|
6343
6701
|
this.spacing = input(...(ngDevMode ? [undefined, { debugName: "spacing" }] : []));
|
|
6344
6702
|
this.width = input(...(ngDevMode ? [undefined, { debugName: "width" }] : []));
|
|
@@ -6355,12 +6713,16 @@ class DBSection {
|
|
|
6355
6713
|
const attributes = parent.attributes;
|
|
6356
6714
|
for (let i = 0; i < attributes.length; i++) {
|
|
6357
6715
|
const attr = attributes.item(i);
|
|
6358
|
-
if (attr &&
|
|
6716
|
+
if (attr && attr.name !== 'data-density' &&
|
|
6359
6717
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
6360
6718
|
element.setAttribute(attr.name, attr.value);
|
|
6361
6719
|
parent.removeAttribute(attr.name);
|
|
6362
6720
|
}
|
|
6363
|
-
if (attr && attr.name
|
|
6721
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
6722
|
+
element.setAttribute(attr.name, attr.value);
|
|
6723
|
+
parent.removeAttribute(attr.name);
|
|
6724
|
+
}
|
|
6725
|
+
else if (attr && attr.name === "class") {
|
|
6364
6726
|
const isWebComponent = attr.value.includes("hydrated");
|
|
6365
6727
|
const value = attr.value.replace("hydrated", "").trim();
|
|
6366
6728
|
const currentClass = element.getAttribute("class");
|
|
@@ -6383,9 +6745,9 @@ class DBSection {
|
|
|
6383
6745
|
}
|
|
6384
6746
|
}
|
|
6385
6747
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBSection, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6386
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.16", type: DBSection, isStandalone: true, selector: "db-section", inputs: { id: { classPropertyName: "id", publicName: "id", 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
|
|
6748
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.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
|
|
6387
6749
|
#_ref
|
|
6388
|
-
[attr.id]="id()"
|
|
6750
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
6389
6751
|
[class]="cls('db-section', className())"
|
|
6390
6752
|
[attr.data-spacing]="spacing() || 'medium'"
|
|
6391
6753
|
[attr.data-width]="width()"
|
|
@@ -6397,14 +6759,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
6397
6759
|
type: Component,
|
|
6398
6760
|
args: [{ selector: "db-section", standalone: true, imports: [CommonModule], template: `<section
|
|
6399
6761
|
#_ref
|
|
6400
|
-
[attr.id]="id()"
|
|
6762
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
6401
6763
|
[class]="cls('db-section', className())"
|
|
6402
6764
|
[attr.data-spacing]="spacing() || 'medium'"
|
|
6403
6765
|
[attr.data-width]="width()"
|
|
6404
6766
|
>
|
|
6405
6767
|
<ng-content></ng-content>
|
|
6406
6768
|
</section> `, styles: [":host{display:contents}\n"] }]
|
|
6407
|
-
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", 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 }] }] } });
|
|
6769
|
+
}], 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 }] }] } });
|
|
6408
6770
|
|
|
6409
6771
|
const defaultProps$7 = {};
|
|
6410
6772
|
class DBSelect {
|
|
@@ -6491,6 +6853,14 @@ class DBSelect {
|
|
|
6491
6853
|
// Default: show empty option for non-required selects
|
|
6492
6854
|
return !this.required();
|
|
6493
6855
|
}
|
|
6856
|
+
resetIds() {
|
|
6857
|
+
const mId = this.id() ?? this.propOverrides()?.id ?? `select-${uuid()}`;
|
|
6858
|
+
this._id.set(mId);
|
|
6859
|
+
this._messageId.set(mId + DEFAULT_MESSAGE_ID_SUFFIX);
|
|
6860
|
+
this._validMessageId.set(mId + DEFAULT_VALID_MESSAGE_ID_SUFFIX);
|
|
6861
|
+
this._invalidMessageId.set(mId + DEFAULT_INVALID_MESSAGE_ID_SUFFIX);
|
|
6862
|
+
this._placeholderId.set(mId + DEFAULT_PLACEHOLDER_ID_SUFFIX);
|
|
6863
|
+
}
|
|
6494
6864
|
trackByOptgroupOption0(_, optgroupOption) {
|
|
6495
6865
|
return getOptionKey(optgroupOption, "select-optgroup-option-");
|
|
6496
6866
|
}
|
|
@@ -6504,8 +6874,9 @@ class DBSelect {
|
|
|
6504
6874
|
this.getOptionKey = getOptionKey;
|
|
6505
6875
|
this.stringPropVisible = stringPropVisible;
|
|
6506
6876
|
this.DEFAULT_VALID_MESSAGE = DEFAULT_VALID_MESSAGE;
|
|
6507
|
-
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
6508
6877
|
this.invalidMessage = input(...(ngDevMode ? [undefined, { debugName: "invalidMessage" }] : []));
|
|
6878
|
+
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
6879
|
+
this.propOverrides = input(...(ngDevMode ? [undefined, { debugName: "propOverrides" }] : []));
|
|
6509
6880
|
this.message = input(...(ngDevMode ? [undefined, { debugName: "message" }] : []));
|
|
6510
6881
|
this.showMessage = input(...(ngDevMode ? [undefined, { debugName: "showMessage" }] : []));
|
|
6511
6882
|
this.placeholder = input(...(ngDevMode ? [undefined, { debugName: "placeholder" }] : []));
|
|
@@ -6547,6 +6918,16 @@ class DBSelect {
|
|
|
6547
6918
|
this._voiceOverFallback = signal("", ...(ngDevMode ? [{ debugName: "_voiceOverFallback" }] : []));
|
|
6548
6919
|
this.abortController = signal(undefined, ...(ngDevMode ? [{ debugName: "abortController" }] : []));
|
|
6549
6920
|
if (typeof window !== "undefined") {
|
|
6921
|
+
effect(() => {
|
|
6922
|
+
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
6923
|
+
this.id();
|
|
6924
|
+
// ---
|
|
6925
|
+
if (this.id() ?? this.propOverrides()?.id) {
|
|
6926
|
+
this.resetIds();
|
|
6927
|
+
}
|
|
6928
|
+
}, {
|
|
6929
|
+
// Enable writing to signals inside effects
|
|
6930
|
+
});
|
|
6550
6931
|
effect(() => {
|
|
6551
6932
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
6552
6933
|
this._ref();
|
|
@@ -6631,12 +7012,16 @@ class DBSelect {
|
|
|
6631
7012
|
const attributes = parent.attributes;
|
|
6632
7013
|
for (let i = 0; i < attributes.length; i++) {
|
|
6633
7014
|
const attr = attributes.item(i);
|
|
6634
|
-
if (attr &&
|
|
7015
|
+
if (attr && attr.name !== 'data-density' &&
|
|
6635
7016
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
6636
7017
|
element.setAttribute(attr.name, attr.value);
|
|
6637
7018
|
parent.removeAttribute(attr.name);
|
|
6638
7019
|
}
|
|
6639
|
-
if (attr && attr.name
|
|
7020
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
7021
|
+
element.setAttribute(attr.name, attr.value);
|
|
7022
|
+
parent.removeAttribute(attr.name);
|
|
7023
|
+
}
|
|
7024
|
+
else if (attr && attr.name === "class") {
|
|
6640
7025
|
const isWebComponent = attr.value.includes("hydrated");
|
|
6641
7026
|
const value = attr.value.replace("hydrated", "").trim();
|
|
6642
7027
|
const currentClass = element.getAttribute("class");
|
|
@@ -6672,12 +7057,7 @@ class DBSelect {
|
|
|
6672
7057
|
const element = this._ref()?.nativeElement;
|
|
6673
7058
|
this.enableAttributePassing(element, "db-select");
|
|
6674
7059
|
this.initialized.set(true);
|
|
6675
|
-
|
|
6676
|
-
this._id.set(mId);
|
|
6677
|
-
this._messageId.set(mId + DEFAULT_MESSAGE_ID_SUFFIX);
|
|
6678
|
-
this._validMessageId.set(mId + DEFAULT_VALID_MESSAGE_ID_SUFFIX);
|
|
6679
|
-
this._invalidMessageId.set(mId + DEFAULT_INVALID_MESSAGE_ID_SUFFIX);
|
|
6680
|
-
this._placeholderId.set(mId + DEFAULT_PLACEHOLDER_ID_SUFFIX);
|
|
7060
|
+
this.resetIds();
|
|
6681
7061
|
this._invalidMessage.set(this.invalidMessage() || DEFAULT_INVALID_MESSAGE);
|
|
6682
7062
|
// @ts-ignore
|
|
6683
7063
|
this.writeValue?.(this.value?.() ?? "");
|
|
@@ -6687,7 +7067,7 @@ class DBSelect {
|
|
|
6687
7067
|
this.abortController()?.abort();
|
|
6688
7068
|
}
|
|
6689
7069
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBSelect, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6690
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: DBSelect, isStandalone: true, selector: "db-select", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null },
|
|
7070
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.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: [{
|
|
6691
7071
|
provide: NG_VALUE_ACCESSOR,
|
|
6692
7072
|
useExisting: DBSelect,
|
|
6693
7073
|
multi: true
|
|
@@ -6787,7 +7167,7 @@ class DBSelect {
|
|
|
6787
7167
|
role="status"
|
|
6788
7168
|
>{{_voiceOverFallback()}}</span
|
|
6789
7169
|
>
|
|
6790
|
-
</div> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBInfotext, selector: "db-infotext", inputs: ["id", "className", "icon", "semantic", "size", "showIcon", "text"] }] }); }
|
|
7170
|
+
</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"] }] }); }
|
|
6791
7171
|
}
|
|
6792
7172
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBSelect, decorators: [{
|
|
6793
7173
|
type: Component,
|
|
@@ -6892,7 +7272,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
6892
7272
|
>{{_voiceOverFallback()}}</span
|
|
6893
7273
|
>
|
|
6894
7274
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
6895
|
-
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }],
|
|
7275
|
+
}], 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 }] }] } });
|
|
6896
7276
|
|
|
6897
7277
|
const defaultProps$6 = {};
|
|
6898
7278
|
class DBStack {
|
|
@@ -6900,6 +7280,7 @@ class DBStack {
|
|
|
6900
7280
|
this.cls = cls;
|
|
6901
7281
|
this.getBooleanAsString = getBooleanAsString;
|
|
6902
7282
|
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
7283
|
+
this.propOverrides = input(...(ngDevMode ? [undefined, { debugName: "propOverrides" }] : []));
|
|
6903
7284
|
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : []));
|
|
6904
7285
|
this.gap = input(...(ngDevMode ? [undefined, { debugName: "gap" }] : []));
|
|
6905
7286
|
this.variant = input(...(ngDevMode ? [undefined, { debugName: "variant" }] : []));
|
|
@@ -6920,12 +7301,16 @@ class DBStack {
|
|
|
6920
7301
|
const attributes = parent.attributes;
|
|
6921
7302
|
for (let i = 0; i < attributes.length; i++) {
|
|
6922
7303
|
const attr = attributes.item(i);
|
|
6923
|
-
if (attr &&
|
|
7304
|
+
if (attr && attr.name !== 'data-density' &&
|
|
6924
7305
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
6925
7306
|
element.setAttribute(attr.name, attr.value);
|
|
6926
7307
|
parent.removeAttribute(attr.name);
|
|
6927
7308
|
}
|
|
6928
|
-
if (attr && attr.name
|
|
7309
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
7310
|
+
element.setAttribute(attr.name, attr.value);
|
|
7311
|
+
parent.removeAttribute(attr.name);
|
|
7312
|
+
}
|
|
7313
|
+
else if (attr && attr.name === "class") {
|
|
6929
7314
|
const isWebComponent = attr.value.includes("hydrated");
|
|
6930
7315
|
const value = attr.value.replace("hydrated", "").trim();
|
|
6931
7316
|
const currentClass = element.getAttribute("class");
|
|
@@ -6948,9 +7333,9 @@ class DBStack {
|
|
|
6948
7333
|
}
|
|
6949
7334
|
}
|
|
6950
7335
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBStack, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6951
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.16", type: DBStack, isStandalone: true, selector: "db-stack", inputs: { id: { classPropertyName: "id", publicName: "id", 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
|
|
7336
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.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
|
|
6952
7337
|
#_ref
|
|
6953
|
-
[attr.id]="id()"
|
|
7338
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
6954
7339
|
[class]="cls('db-stack', className())"
|
|
6955
7340
|
[attr.data-gap]="gap()"
|
|
6956
7341
|
[attr.data-variant]="variant()"
|
|
@@ -6966,7 +7351,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
6966
7351
|
type: Component,
|
|
6967
7352
|
args: [{ selector: "db-stack", standalone: true, imports: [CommonModule], template: `<div
|
|
6968
7353
|
#_ref
|
|
6969
|
-
[attr.id]="id()"
|
|
7354
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
6970
7355
|
[class]="cls('db-stack', className())"
|
|
6971
7356
|
[attr.data-gap]="gap()"
|
|
6972
7357
|
[attr.data-variant]="variant()"
|
|
@@ -6977,7 +7362,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
6977
7362
|
>
|
|
6978
7363
|
<ng-content></ng-content>
|
|
6979
7364
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
6980
|
-
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], gap: [{ type: i0.Input, args: [{ isSignal: true, alias: "gap", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], direction: [{ type: i0.Input, args: [{ isSignal: true, alias: "direction", required: false }] }], alignment: [{ type: i0.Input, args: [{ isSignal: true, alias: "alignment", required: false }] }], justifyContent: [{ type: i0.Input, args: [{ isSignal: true, alias: "justifyContent", required: false }] }], wrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "wrap", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
7365
|
+
}], 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 }] }], gap: [{ type: i0.Input, args: [{ isSignal: true, alias: "gap", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], direction: [{ type: i0.Input, args: [{ isSignal: true, alias: "direction", required: false }] }], alignment: [{ type: i0.Input, args: [{ isSignal: true, alias: "alignment", required: false }] }], justifyContent: [{ type: i0.Input, args: [{ isSignal: true, alias: "justifyContent", required: false }] }], wrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "wrap", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
6981
7366
|
|
|
6982
7367
|
const StackVariantList = ['simple', 'divider'];
|
|
6983
7368
|
const StackDirectionList = ['row', 'column'];
|
|
@@ -7052,6 +7437,13 @@ class DBSwitch {
|
|
|
7052
7437
|
}
|
|
7053
7438
|
}
|
|
7054
7439
|
}
|
|
7440
|
+
resetIds() {
|
|
7441
|
+
const mId = this.id() ?? this.propOverrides()?.id ?? `switch-${uuid()}`;
|
|
7442
|
+
this._id.set(mId);
|
|
7443
|
+
this._messageId.set(`${mId}${DEFAULT_MESSAGE_ID_SUFFIX}`);
|
|
7444
|
+
this._validMessageId.set(`${mId}${DEFAULT_VALID_MESSAGE_ID_SUFFIX}`);
|
|
7445
|
+
this._invalidMessageId.set(`${mId}${DEFAULT_INVALID_MESSAGE_ID_SUFFIX}`);
|
|
7446
|
+
}
|
|
7055
7447
|
constructor(renderer) {
|
|
7056
7448
|
this.renderer = renderer;
|
|
7057
7449
|
this.getBooleanAsString = getBooleanAsString;
|
|
@@ -7060,14 +7452,14 @@ class DBSwitch {
|
|
|
7060
7452
|
this.getBoolean = getBoolean;
|
|
7061
7453
|
this.stringPropVisible = stringPropVisible;
|
|
7062
7454
|
this.DEFAULT_VALID_MESSAGE = DEFAULT_VALID_MESSAGE;
|
|
7063
|
-
this.
|
|
7455
|
+
this.invalidMessage = input(...(ngDevMode ? [undefined, { debugName: "invalidMessage" }] : []));
|
|
7064
7456
|
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
7457
|
+
this.propOverrides = input(...(ngDevMode ? [undefined, { debugName: "propOverrides" }] : []));
|
|
7065
7458
|
this.validation = input(...(ngDevMode ? [undefined, { debugName: "validation" }] : []));
|
|
7066
7459
|
this.required = input(...(ngDevMode ? [undefined, { debugName: "required" }] : []));
|
|
7067
7460
|
this.message = input(...(ngDevMode ? [undefined, { debugName: "message" }] : []));
|
|
7068
7461
|
this.showMessage = input(...(ngDevMode ? [undefined, { debugName: "showMessage" }] : []));
|
|
7069
7462
|
this.validMessage = input(...(ngDevMode ? [undefined, { debugName: "validMessage" }] : []));
|
|
7070
|
-
this.invalidMessage = input(...(ngDevMode ? [undefined, { debugName: "invalidMessage" }] : []));
|
|
7071
7463
|
this.checked = model(...(ngDevMode ? [undefined, { debugName: "checked" }] : []));
|
|
7072
7464
|
this.disabled = model(...(ngDevMode ? [undefined, { debugName: "disabled" }] : []));
|
|
7073
7465
|
this.visualAid = input(...(ngDevMode ? [undefined, { debugName: "visualAid" }] : []));
|
|
@@ -7096,6 +7488,16 @@ class DBSwitch {
|
|
|
7096
7488
|
this._voiceOverFallback = signal("", ...(ngDevMode ? [{ debugName: "_voiceOverFallback" }] : []));
|
|
7097
7489
|
this.abortController = signal(undefined, ...(ngDevMode ? [{ debugName: "abortController" }] : []));
|
|
7098
7490
|
if (typeof window !== "undefined") {
|
|
7491
|
+
effect(() => {
|
|
7492
|
+
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
7493
|
+
this.id();
|
|
7494
|
+
// ---
|
|
7495
|
+
if (this.id() ?? this.propOverrides()?.id) {
|
|
7496
|
+
this.resetIds();
|
|
7497
|
+
}
|
|
7498
|
+
}, {
|
|
7499
|
+
// Enable writing to signals inside effects
|
|
7500
|
+
});
|
|
7099
7501
|
effect(() => {
|
|
7100
7502
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
7101
7503
|
this.validation();
|
|
@@ -7110,6 +7512,17 @@ class DBSwitch {
|
|
|
7110
7512
|
}, {
|
|
7111
7513
|
// Enable writing to signals inside effects
|
|
7112
7514
|
});
|
|
7515
|
+
effect(() => {
|
|
7516
|
+
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
7517
|
+
this._ref();
|
|
7518
|
+
this.invalidMessage();
|
|
7519
|
+
// ---
|
|
7520
|
+
this._invalidMessage.set(this.invalidMessage() ||
|
|
7521
|
+
this._ref()?.nativeElement?.validationMessage ||
|
|
7522
|
+
DEFAULT_INVALID_MESSAGE);
|
|
7523
|
+
}, {
|
|
7524
|
+
// Enable writing to signals inside effects
|
|
7525
|
+
});
|
|
7113
7526
|
effect(() => {
|
|
7114
7527
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
7115
7528
|
this._ref();
|
|
@@ -7144,12 +7557,16 @@ class DBSwitch {
|
|
|
7144
7557
|
const attributes = parent.attributes;
|
|
7145
7558
|
for (let i = 0; i < attributes.length; i++) {
|
|
7146
7559
|
const attr = attributes.item(i);
|
|
7147
|
-
if (attr &&
|
|
7560
|
+
if (attr && attr.name !== 'data-density' &&
|
|
7148
7561
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
7149
7562
|
element.setAttribute(attr.name, attr.value);
|
|
7150
7563
|
parent.removeAttribute(attr.name);
|
|
7151
7564
|
}
|
|
7152
|
-
if (attr && attr.name
|
|
7565
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
7566
|
+
element.setAttribute(attr.name, attr.value);
|
|
7567
|
+
parent.removeAttribute(attr.name);
|
|
7568
|
+
}
|
|
7569
|
+
else if (attr && attr.name === "class") {
|
|
7153
7570
|
const isWebComponent = attr.value.includes("hydrated");
|
|
7154
7571
|
const value = attr.value.replace("hydrated", "").trim();
|
|
7155
7572
|
const currentClass = element.getAttribute("class");
|
|
@@ -7184,18 +7601,16 @@ class DBSwitch {
|
|
|
7184
7601
|
if (typeof window !== "undefined") {
|
|
7185
7602
|
const element = this._ref()?.nativeElement;
|
|
7186
7603
|
this.enableAttributePassing(element, "db-switch");
|
|
7187
|
-
this.
|
|
7188
|
-
this._messageId.set(`${this._id()}${DEFAULT_MESSAGE_ID_SUFFIX}`);
|
|
7189
|
-
this._validMessageId.set(`${this._id()}${DEFAULT_VALID_MESSAGE_ID_SUFFIX}`);
|
|
7190
|
-
this._invalidMessageId.set(`${this._id()}${DEFAULT_INVALID_MESSAGE_ID_SUFFIX}`);
|
|
7604
|
+
this.resetIds();
|
|
7191
7605
|
this.handleValidation();
|
|
7606
|
+
this._invalidMessage.set(this.invalidMessage() || DEFAULT_INVALID_MESSAGE);
|
|
7192
7607
|
}
|
|
7193
7608
|
}
|
|
7194
7609
|
ngOnDestroy() {
|
|
7195
7610
|
this.abortController()?.abort();
|
|
7196
7611
|
}
|
|
7197
7612
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBSwitch, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7198
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: DBSwitch, isStandalone: true, selector: "db-switch", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null },
|
|
7613
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.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: [{
|
|
7199
7614
|
provide: NG_VALUE_ACCESSOR,
|
|
7200
7615
|
useExisting: DBSwitch,
|
|
7201
7616
|
multi: true
|
|
@@ -7228,7 +7643,7 @@ class DBSwitch {
|
|
|
7228
7643
|
(focus)="handleFocus($event)"
|
|
7229
7644
|
(keydown)="handleKeyDown($event)"
|
|
7230
7645
|
/>
|
|
7231
|
-
@if(label()){
|
|
7646
|
+
@if(label()){{{label()}}}@else{
|
|
7232
7647
|
<ng-content></ng-content>
|
|
7233
7648
|
}</label
|
|
7234
7649
|
>
|
|
@@ -7252,15 +7667,14 @@ class DBSwitch {
|
|
|
7252
7667
|
size="small"
|
|
7253
7668
|
semantic="critical"
|
|
7254
7669
|
[id]="_invalidMessageId()"
|
|
7255
|
-
>{{_invalidMessage()
|
|
7256
|
-
DEFAULT_INVALID_MESSAGE}}</db-infotext
|
|
7670
|
+
>{{_invalidMessage()}}</db-infotext
|
|
7257
7671
|
>
|
|
7258
7672
|
<span
|
|
7259
7673
|
data-visually-hidden="true"
|
|
7260
7674
|
role="status"
|
|
7261
7675
|
>{{_voiceOverFallback()}}</span
|
|
7262
7676
|
>
|
|
7263
|
-
</div> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBInfotext, selector: "db-infotext", inputs: ["id", "className", "icon", "semantic", "size", "showIcon", "text"] }] }); }
|
|
7677
|
+
</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"] }] }); }
|
|
7264
7678
|
}
|
|
7265
7679
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBSwitch, decorators: [{
|
|
7266
7680
|
type: Component,
|
|
@@ -7297,7 +7711,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
7297
7711
|
(focus)="handleFocus($event)"
|
|
7298
7712
|
(keydown)="handleKeyDown($event)"
|
|
7299
7713
|
/>
|
|
7300
|
-
@if(label()){
|
|
7714
|
+
@if(label()){{{label()}}}@else{
|
|
7301
7715
|
<ng-content></ng-content>
|
|
7302
7716
|
}</label
|
|
7303
7717
|
>
|
|
@@ -7321,8 +7735,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
7321
7735
|
size="small"
|
|
7322
7736
|
semantic="critical"
|
|
7323
7737
|
[id]="_invalidMessageId()"
|
|
7324
|
-
>{{_invalidMessage()
|
|
7325
|
-
DEFAULT_INVALID_MESSAGE}}</db-infotext
|
|
7738
|
+
>{{_invalidMessage()}}</db-infotext
|
|
7326
7739
|
>
|
|
7327
7740
|
<span
|
|
7328
7741
|
data-visually-hidden="true"
|
|
@@ -7330,7 +7743,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
7330
7743
|
>{{_voiceOverFallback()}}</span
|
|
7331
7744
|
>
|
|
7332
7745
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
7333
|
-
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }],
|
|
7746
|
+
}], 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 }] }] } });
|
|
7334
7747
|
|
|
7335
7748
|
const defaultProps$4 = {};
|
|
7336
7749
|
class DBTabItem {
|
|
@@ -7364,6 +7777,7 @@ class DBTabItem {
|
|
|
7364
7777
|
this.name = input(...(ngDevMode ? [undefined, { debugName: "name" }] : []));
|
|
7365
7778
|
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : []));
|
|
7366
7779
|
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
7780
|
+
this.propOverrides = input(...(ngDevMode ? [undefined, { debugName: "propOverrides" }] : []));
|
|
7367
7781
|
this.iconLeading = input(...(ngDevMode ? [undefined, { debugName: "iconLeading" }] : []));
|
|
7368
7782
|
this.icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : []));
|
|
7369
7783
|
this.iconTrailing = input(...(ngDevMode ? [undefined, { debugName: "iconTrailing" }] : []));
|
|
@@ -7431,12 +7845,16 @@ class DBTabItem {
|
|
|
7431
7845
|
const attributes = parent.attributes;
|
|
7432
7846
|
for (let i = 0; i < attributes.length; i++) {
|
|
7433
7847
|
const attr = attributes.item(i);
|
|
7434
|
-
if (attr &&
|
|
7848
|
+
if (attr && attr.name !== 'data-density' &&
|
|
7435
7849
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
7436
7850
|
element.setAttribute(attr.name, attr.value);
|
|
7437
7851
|
parent.removeAttribute(attr.name);
|
|
7438
7852
|
}
|
|
7439
|
-
if (attr && attr.name
|
|
7853
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
7854
|
+
element.setAttribute(attr.name, attr.value);
|
|
7855
|
+
parent.removeAttribute(attr.name);
|
|
7856
|
+
}
|
|
7857
|
+
else if (attr && attr.name === "class") {
|
|
7440
7858
|
const isWebComponent = attr.value.includes("hydrated");
|
|
7441
7859
|
const value = attr.value.replace("hydrated", "").trim();
|
|
7442
7860
|
const currentClass = element.getAttribute("class");
|
|
@@ -7486,13 +7904,13 @@ class DBTabItem {
|
|
|
7486
7904
|
}
|
|
7487
7905
|
}
|
|
7488
7906
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBTabItem, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7489
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.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 }, 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: [{
|
|
7907
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.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: [{
|
|
7490
7908
|
provide: NG_VALUE_ACCESSOR,
|
|
7491
7909
|
useExisting: DBTabItem,
|
|
7492
7910
|
multi: true
|
|
7493
7911
|
}], viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<li role="none" [class]="cls('db-tab-item', className())">
|
|
7494
7912
|
<label
|
|
7495
|
-
[attr.for]="id()"
|
|
7913
|
+
[attr.for]="id() ?? propOverrides()?.id"
|
|
7496
7914
|
[attr.data-icon]="iconLeading() ?? icon()"
|
|
7497
7915
|
[attr.data-icon-trailing]="iconTrailing()"
|
|
7498
7916
|
[attr.data-show-icon]="getBooleanAsString(showIconLeading() ?? showIcon())"
|
|
@@ -7506,9 +7924,9 @@ class DBTabItem {
|
|
|
7506
7924
|
[attr.checked]="getBoolean(checked(), 'checked')"
|
|
7507
7925
|
#_ref
|
|
7508
7926
|
[attr.name]="_name()"
|
|
7509
|
-
[attr.id]="id()"
|
|
7927
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
7510
7928
|
(input)="handleChange($event)" />
|
|
7511
|
-
@if(label()){
|
|
7929
|
+
@if(label()){{{label()}}} <ng-content></ng-content
|
|
7512
7930
|
></label>
|
|
7513
7931
|
</li> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
7514
7932
|
}
|
|
@@ -7520,7 +7938,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
7520
7938
|
multi: true
|
|
7521
7939
|
}], selector: "db-tab-item", standalone: true, imports: [CommonModule], template: `<li role="none" [class]="cls('db-tab-item', className())">
|
|
7522
7940
|
<label
|
|
7523
|
-
[attr.for]="id()"
|
|
7941
|
+
[attr.for]="id() ?? propOverrides()?.id"
|
|
7524
7942
|
[attr.data-icon]="iconLeading() ?? icon()"
|
|
7525
7943
|
[attr.data-icon-trailing]="iconTrailing()"
|
|
7526
7944
|
[attr.data-show-icon]="getBooleanAsString(showIconLeading() ?? showIcon())"
|
|
@@ -7534,18 +7952,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
7534
7952
|
[attr.checked]="getBoolean(checked(), 'checked')"
|
|
7535
7953
|
#_ref
|
|
7536
7954
|
[attr.name]="_name()"
|
|
7537
|
-
[attr.id]="id()"
|
|
7955
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
7538
7956
|
(input)="handleChange($event)" />
|
|
7539
|
-
@if(label()){
|
|
7957
|
+
@if(label()){{{label()}}} <ng-content></ng-content
|
|
7540
7958
|
></label>
|
|
7541
7959
|
</li> `, styles: [":host{display:contents}\n"] }]
|
|
7542
|
-
}], 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 }] }], 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 }] }] } });
|
|
7960
|
+
}], 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 }] }] } });
|
|
7543
7961
|
|
|
7544
7962
|
const defaultProps$3 = {};
|
|
7545
7963
|
class DBTabList {
|
|
7546
7964
|
constructor() {
|
|
7547
7965
|
this.cls = cls;
|
|
7548
7966
|
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
7967
|
+
this.propOverrides = input(...(ngDevMode ? [undefined, { debugName: "propOverrides" }] : []));
|
|
7549
7968
|
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : []));
|
|
7550
7969
|
this._ref = viewChild("_ref", ...(ngDevMode ? [{ debugName: "_ref" }] : []));
|
|
7551
7970
|
}
|
|
@@ -7560,12 +7979,16 @@ class DBTabList {
|
|
|
7560
7979
|
const attributes = parent.attributes;
|
|
7561
7980
|
for (let i = 0; i < attributes.length; i++) {
|
|
7562
7981
|
const attr = attributes.item(i);
|
|
7563
|
-
if (attr &&
|
|
7982
|
+
if (attr && attr.name !== 'data-density' &&
|
|
7564
7983
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
7565
7984
|
element.setAttribute(attr.name, attr.value);
|
|
7566
7985
|
parent.removeAttribute(attr.name);
|
|
7567
7986
|
}
|
|
7568
|
-
if (attr && attr.name
|
|
7987
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
7988
|
+
element.setAttribute(attr.name, attr.value);
|
|
7989
|
+
parent.removeAttribute(attr.name);
|
|
7990
|
+
}
|
|
7991
|
+
else if (attr && attr.name === "class") {
|
|
7569
7992
|
const isWebComponent = attr.value.includes("hydrated");
|
|
7570
7993
|
const value = attr.value.replace("hydrated", "").trim();
|
|
7571
7994
|
const currentClass = element.getAttribute("class");
|
|
@@ -7588,9 +8011,9 @@ class DBTabList {
|
|
|
7588
8011
|
}
|
|
7589
8012
|
}
|
|
7590
8013
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBTabList, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7591
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.16", type: DBTabList, isStandalone: true, selector: "db-tab-list", 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: `<div
|
|
8014
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.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
|
|
7592
8015
|
#_ref
|
|
7593
|
-
[attr.id]="id()"
|
|
8016
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
7594
8017
|
[class]="cls('db-tab-list', className())"
|
|
7595
8018
|
>
|
|
7596
8019
|
<ul role="tablist">
|
|
@@ -7602,14 +8025,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
7602
8025
|
type: Component,
|
|
7603
8026
|
args: [{ selector: "db-tab-list", standalone: true, imports: [CommonModule], template: `<div
|
|
7604
8027
|
#_ref
|
|
7605
|
-
[attr.id]="id()"
|
|
8028
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
7606
8029
|
[class]="cls('db-tab-list', className())"
|
|
7607
8030
|
>
|
|
7608
8031
|
<ul role="tablist">
|
|
7609
8032
|
<ng-content></ng-content>
|
|
7610
8033
|
</ul>
|
|
7611
8034
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
7612
|
-
}], 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 }] }] } });
|
|
8035
|
+
}], 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 }] }] } });
|
|
7613
8036
|
|
|
7614
8037
|
const defaultProps$2 = {};
|
|
7615
8038
|
class DBTabPanel {
|
|
@@ -7617,6 +8040,7 @@ class DBTabPanel {
|
|
|
7617
8040
|
this.cls = cls;
|
|
7618
8041
|
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : []));
|
|
7619
8042
|
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
8043
|
+
this.propOverrides = input(...(ngDevMode ? [undefined, { debugName: "propOverrides" }] : []));
|
|
7620
8044
|
this.content = input(...(ngDevMode ? [undefined, { debugName: "content" }] : []));
|
|
7621
8045
|
this._ref = viewChild("_ref", ...(ngDevMode ? [{ debugName: "_ref" }] : []));
|
|
7622
8046
|
}
|
|
@@ -7631,12 +8055,16 @@ class DBTabPanel {
|
|
|
7631
8055
|
const attributes = parent.attributes;
|
|
7632
8056
|
for (let i = 0; i < attributes.length; i++) {
|
|
7633
8057
|
const attr = attributes.item(i);
|
|
7634
|
-
if (attr &&
|
|
8058
|
+
if (attr && attr.name !== 'data-density' &&
|
|
7635
8059
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
7636
8060
|
element.setAttribute(attr.name, attr.value);
|
|
7637
8061
|
parent.removeAttribute(attr.name);
|
|
7638
8062
|
}
|
|
7639
|
-
if (attr && attr.name
|
|
8063
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
8064
|
+
element.setAttribute(attr.name, attr.value);
|
|
8065
|
+
parent.removeAttribute(attr.name);
|
|
8066
|
+
}
|
|
8067
|
+
else if (attr && attr.name === "class") {
|
|
7640
8068
|
const isWebComponent = attr.value.includes("hydrated");
|
|
7641
8069
|
const value = attr.value.replace("hydrated", "").trim();
|
|
7642
8070
|
const currentClass = element.getAttribute("class");
|
|
@@ -7659,13 +8087,13 @@ class DBTabPanel {
|
|
|
7659
8087
|
}
|
|
7660
8088
|
}
|
|
7661
8089
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBTabPanel, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7662
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.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 }, 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
|
|
8090
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.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
|
|
7663
8091
|
role="tabpanel"
|
|
7664
8092
|
#_ref
|
|
7665
8093
|
[class]="cls('db-tab-panel', className())"
|
|
7666
|
-
[attr.id]="id()"
|
|
8094
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
7667
8095
|
>
|
|
7668
|
-
@if(content()){
|
|
8096
|
+
@if(content()){{{content()}}} <ng-content></ng-content>
|
|
7669
8097
|
</section> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
7670
8098
|
}
|
|
7671
8099
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBTabPanel, decorators: [{
|
|
@@ -7674,11 +8102,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
7674
8102
|
role="tabpanel"
|
|
7675
8103
|
#_ref
|
|
7676
8104
|
[class]="cls('db-tab-panel', className())"
|
|
7677
|
-
[attr.id]="id()"
|
|
8105
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
7678
8106
|
>
|
|
7679
|
-
@if(content()){
|
|
8107
|
+
@if(content()){{{content()}}} <ng-content></ng-content>
|
|
7680
8108
|
</section> `, styles: [":host{display:contents}\n"] }]
|
|
7681
|
-
}], ctorParameters: () => [], propDecorators: { className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], content: [{ type: i0.Input, args: [{ isSignal: true, alias: "content", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
8109
|
+
}], 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 }] }] } });
|
|
7682
8110
|
|
|
7683
8111
|
const defaultProps$1 = {};
|
|
7684
8112
|
class DBTabs {
|
|
@@ -7815,6 +8243,7 @@ class DBTabs {
|
|
|
7815
8243
|
this.initialSelectedMode = input(...(ngDevMode ? [undefined, { debugName: "initialSelectedMode" }] : []));
|
|
7816
8244
|
this.initialSelectedIndex = input(...(ngDevMode ? [undefined, { debugName: "initialSelectedIndex" }] : []));
|
|
7817
8245
|
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
8246
|
+
this.propOverrides = input(...(ngDevMode ? [undefined, { debugName: "propOverrides" }] : []));
|
|
7818
8247
|
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : []));
|
|
7819
8248
|
this.alignment = input(...(ngDevMode ? [undefined, { debugName: "alignment" }] : []));
|
|
7820
8249
|
this.width = input(...(ngDevMode ? [undefined, { debugName: "width" }] : []));
|
|
@@ -7870,12 +8299,16 @@ class DBTabs {
|
|
|
7870
8299
|
const attributes = parent.attributes;
|
|
7871
8300
|
for (let i = 0; i < attributes.length; i++) {
|
|
7872
8301
|
const attr = attributes.item(i);
|
|
7873
|
-
if (attr &&
|
|
8302
|
+
if (attr && attr.name !== 'data-density' &&
|
|
7874
8303
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
7875
8304
|
element.setAttribute(attr.name, attr.value);
|
|
7876
8305
|
parent.removeAttribute(attr.name);
|
|
7877
8306
|
}
|
|
7878
|
-
if (attr && attr.name
|
|
8307
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
8308
|
+
element.setAttribute(attr.name, attr.value);
|
|
8309
|
+
parent.removeAttribute(attr.name);
|
|
8310
|
+
}
|
|
8311
|
+
else if (attr && attr.name === "class") {
|
|
7879
8312
|
const isWebComponent = attr.value.includes("hydrated");
|
|
7880
8313
|
const value = attr.value.replace("hydrated", "").trim();
|
|
7881
8314
|
const currentClass = element.getAttribute("class");
|
|
@@ -7904,9 +8337,9 @@ class DBTabs {
|
|
|
7904
8337
|
this._resizeObserver.set(undefined);
|
|
7905
8338
|
}
|
|
7906
8339
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBTabs, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7907
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.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 }, 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
|
|
8340
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.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
|
|
7908
8341
|
#_ref
|
|
7909
|
-
[attr.id]="id()"
|
|
8342
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
7910
8343
|
[class]="cls('db-tabs', className())"
|
|
7911
8344
|
[attr.data-orientation]="orientation()"
|
|
7912
8345
|
[attr.data-scroll-behavior]="behavior()"
|
|
@@ -7917,10 +8350,10 @@ class DBTabs {
|
|
|
7917
8350
|
>
|
|
7918
8351
|
@if(showScrollLeft()){
|
|
7919
8352
|
<db-button
|
|
7920
|
-
class="tabs-scroll-left"
|
|
7921
8353
|
variant="ghost"
|
|
7922
8354
|
icon="chevron_left"
|
|
7923
8355
|
type="button"
|
|
8356
|
+
className="tabs-scroll-left"
|
|
7924
8357
|
[noText]="true"
|
|
7925
8358
|
(click)="scroll(true)"
|
|
7926
8359
|
>
|
|
@@ -7945,10 +8378,10 @@ class DBTabs {
|
|
|
7945
8378
|
<db-tab-panel [content]="tab.content">{{tab.children}}</db-tab-panel>
|
|
7946
8379
|
} } @if(showScrollRight()){
|
|
7947
8380
|
<db-button
|
|
7948
|
-
class="tabs-scroll-right"
|
|
7949
8381
|
variant="ghost"
|
|
7950
8382
|
icon="chevron_right"
|
|
7951
8383
|
type="button"
|
|
8384
|
+
className="tabs-scroll-right"
|
|
7952
8385
|
[noText]="true"
|
|
7953
8386
|
(click)="scroll()"
|
|
7954
8387
|
>
|
|
@@ -7956,13 +8389,13 @@ class DBTabs {
|
|
|
7956
8389
|
</db-button>
|
|
7957
8390
|
}
|
|
7958
8391
|
<ng-content></ng-content>
|
|
7959
|
-
</div> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBButton, selector: "db-button", inputs: ["type", "id", "className", "disabled", "iconLeading", "icon", "showIconLeading", "showIcon", "iconTrailing", "showIconTrailing", "size", "width", "variant", "noText", "name", "form", "value", "text"], outputs: ["click"] }, { kind: "component", type: DBTabList, selector: "db-tab-list", inputs: ["id", "className"] }, { kind: "component", type: DBTabItem, selector: "db-tab-item", inputs: ["active", "name", "className", "id", "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", "content"] }] }); }
|
|
8392
|
+
</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"] }] }); }
|
|
7960
8393
|
}
|
|
7961
8394
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBTabs, decorators: [{
|
|
7962
8395
|
type: Component,
|
|
7963
8396
|
args: [{ selector: "db-tabs", standalone: true, imports: [CommonModule, DBButton, DBTabList, DBTabItem, DBTabPanel], template: `<div
|
|
7964
8397
|
#_ref
|
|
7965
|
-
[attr.id]="id()"
|
|
8398
|
+
[attr.id]="id() ?? propOverrides()?.id"
|
|
7966
8399
|
[class]="cls('db-tabs', className())"
|
|
7967
8400
|
[attr.data-orientation]="orientation()"
|
|
7968
8401
|
[attr.data-scroll-behavior]="behavior()"
|
|
@@ -7973,10 +8406,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
7973
8406
|
>
|
|
7974
8407
|
@if(showScrollLeft()){
|
|
7975
8408
|
<db-button
|
|
7976
|
-
class="tabs-scroll-left"
|
|
7977
8409
|
variant="ghost"
|
|
7978
8410
|
icon="chevron_left"
|
|
7979
8411
|
type="button"
|
|
8412
|
+
className="tabs-scroll-left"
|
|
7980
8413
|
[noText]="true"
|
|
7981
8414
|
(click)="scroll(true)"
|
|
7982
8415
|
>
|
|
@@ -8001,10 +8434,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
8001
8434
|
<db-tab-panel [content]="tab.content">{{tab.children}}</db-tab-panel>
|
|
8002
8435
|
} } @if(showScrollRight()){
|
|
8003
8436
|
<db-button
|
|
8004
|
-
class="tabs-scroll-right"
|
|
8005
8437
|
variant="ghost"
|
|
8006
8438
|
icon="chevron_right"
|
|
8007
8439
|
type="button"
|
|
8440
|
+
className="tabs-scroll-right"
|
|
8008
8441
|
[noText]="true"
|
|
8009
8442
|
(click)="scroll()"
|
|
8010
8443
|
>
|
|
@@ -8013,7 +8446,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
8013
8446
|
}
|
|
8014
8447
|
<ng-content></ng-content>
|
|
8015
8448
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
8016
|
-
}], ctorParameters: () => [], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], tabs: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabs", required: false }] }], arrowScrollDistance: [{ type: i0.Input, args: [{ isSignal: true, alias: "arrowScrollDistance", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], behavior: [{ type: i0.Input, args: [{ isSignal: true, alias: "behavior", required: false }] }], initialSelectedMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "initialSelectedMode", required: false }] }], initialSelectedIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "initialSelectedIndex", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], alignment: [{ type: i0.Input, args: [{ isSignal: true, alias: "alignment", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], indexChange: [{ type: i0.Output, args: ["indexChange"] }], tabSelect: [{ type: i0.Output, args: ["tabSelect"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
8449
|
+
}], ctorParameters: () => [], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], tabs: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabs", required: false }] }], arrowScrollDistance: [{ type: i0.Input, args: [{ isSignal: true, alias: "arrowScrollDistance", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], behavior: [{ type: i0.Input, args: [{ isSignal: true, alias: "behavior", required: false }] }], initialSelectedMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "initialSelectedMode", required: false }] }], initialSelectedIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "initialSelectedIndex", 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 }] }], alignment: [{ type: i0.Input, args: [{ isSignal: true, alias: "alignment", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], indexChange: [{ type: i0.Output, args: ["indexChange"] }], tabSelect: [{ type: i0.Output, args: ["tabSelect"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
8017
8450
|
|
|
8018
8451
|
const TabsBehaviorList = ['scrollbar', 'arrows'];
|
|
8019
8452
|
const TabsInitialSelectedModeList = ['auto', 'manually'];
|
|
@@ -8083,6 +8516,13 @@ class DBTextarea {
|
|
|
8083
8516
|
this.focus.emit(event);
|
|
8084
8517
|
}
|
|
8085
8518
|
}
|
|
8519
|
+
resetIds() {
|
|
8520
|
+
const mId = this.id() ?? this.propOverrides()?.id ?? `textarea-${uuid()}`;
|
|
8521
|
+
this._id.set(mId);
|
|
8522
|
+
this._messageId.set(mId + DEFAULT_MESSAGE_ID_SUFFIX);
|
|
8523
|
+
this._validMessageId.set(mId + DEFAULT_VALID_MESSAGE_ID_SUFFIX);
|
|
8524
|
+
this._invalidMessageId.set(mId + DEFAULT_INVALID_MESSAGE_ID_SUFFIX);
|
|
8525
|
+
}
|
|
8086
8526
|
constructor(renderer) {
|
|
8087
8527
|
this.renderer = renderer;
|
|
8088
8528
|
this.cls = cls;
|
|
@@ -8094,8 +8534,9 @@ class DBTextarea {
|
|
|
8094
8534
|
this.DEFAULT_ROWS = DEFAULT_ROWS;
|
|
8095
8535
|
this.stringPropVisible = stringPropVisible;
|
|
8096
8536
|
this.DEFAULT_VALID_MESSAGE = DEFAULT_VALID_MESSAGE;
|
|
8097
|
-
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
8098
8537
|
this.invalidMessage = input(...(ngDevMode ? [undefined, { debugName: "invalidMessage" }] : []));
|
|
8538
|
+
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
8539
|
+
this.propOverrides = input(...(ngDevMode ? [undefined, { debugName: "propOverrides" }] : []));
|
|
8099
8540
|
this.message = input(...(ngDevMode ? [undefined, { debugName: "message" }] : []));
|
|
8100
8541
|
this.showMessage = input(...(ngDevMode ? [undefined, { debugName: "showMessage" }] : []));
|
|
8101
8542
|
this.value = model(...(ngDevMode ? [undefined, { debugName: "value" }] : []));
|
|
@@ -8142,6 +8583,16 @@ class DBTextarea {
|
|
|
8142
8583
|
this._voiceOverFallback = signal("", ...(ngDevMode ? [{ debugName: "_voiceOverFallback" }] : []));
|
|
8143
8584
|
this.abortController = signal(undefined, ...(ngDevMode ? [{ debugName: "abortController" }] : []));
|
|
8144
8585
|
if (typeof window !== "undefined") {
|
|
8586
|
+
effect(() => {
|
|
8587
|
+
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
8588
|
+
this.id();
|
|
8589
|
+
// ---
|
|
8590
|
+
if (this.id() ?? this.propOverrides()?.id) {
|
|
8591
|
+
this.resetIds();
|
|
8592
|
+
}
|
|
8593
|
+
}, {
|
|
8594
|
+
// Enable writing to signals inside effects
|
|
8595
|
+
});
|
|
8145
8596
|
effect(() => {
|
|
8146
8597
|
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
8147
8598
|
this._ref();
|
|
@@ -8218,12 +8669,16 @@ class DBTextarea {
|
|
|
8218
8669
|
const attributes = parent.attributes;
|
|
8219
8670
|
for (let i = 0; i < attributes.length; i++) {
|
|
8220
8671
|
const attr = attributes.item(i);
|
|
8221
|
-
if (attr &&
|
|
8672
|
+
if (attr && attr.name !== 'data-density' &&
|
|
8222
8673
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
8223
8674
|
element.setAttribute(attr.name, attr.value);
|
|
8224
8675
|
parent.removeAttribute(attr.name);
|
|
8225
8676
|
}
|
|
8226
|
-
if (attr && attr.name
|
|
8677
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
8678
|
+
element.setAttribute(attr.name, attr.value);
|
|
8679
|
+
parent.removeAttribute(attr.name);
|
|
8680
|
+
}
|
|
8681
|
+
else if (attr && attr.name === "class") {
|
|
8227
8682
|
const isWebComponent = attr.value.includes("hydrated");
|
|
8228
8683
|
const value = attr.value.replace("hydrated", "").trim();
|
|
8229
8684
|
const currentClass = element.getAttribute("class");
|
|
@@ -8258,11 +8713,7 @@ class DBTextarea {
|
|
|
8258
8713
|
if (typeof window !== "undefined") {
|
|
8259
8714
|
const element = this._ref()?.nativeElement;
|
|
8260
8715
|
this.enableAttributePassing(element, "db-textarea");
|
|
8261
|
-
|
|
8262
|
-
this._id.set(mId);
|
|
8263
|
-
this._messageId.set(mId + DEFAULT_MESSAGE_ID_SUFFIX);
|
|
8264
|
-
this._validMessageId.set(mId + DEFAULT_VALID_MESSAGE_ID_SUFFIX);
|
|
8265
|
-
this._invalidMessageId.set(mId + DEFAULT_INVALID_MESSAGE_ID_SUFFIX);
|
|
8716
|
+
this.resetIds();
|
|
8266
8717
|
this._invalidMessage.set(this.invalidMessage() || DEFAULT_INVALID_MESSAGE);
|
|
8267
8718
|
}
|
|
8268
8719
|
}
|
|
@@ -8270,7 +8721,7 @@ class DBTextarea {
|
|
|
8270
8721
|
this.abortController()?.abort();
|
|
8271
8722
|
}
|
|
8272
8723
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBTextarea, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8273
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: DBTextarea, isStandalone: true, selector: "db-textarea", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null },
|
|
8724
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.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: [{
|
|
8274
8725
|
provide: NG_VALUE_ACCESSOR,
|
|
8275
8726
|
useExisting: DBTextarea,
|
|
8276
8727
|
multi: true
|
|
@@ -8335,7 +8786,7 @@ class DBTextarea {
|
|
|
8335
8786
|
role="status"
|
|
8336
8787
|
>{{_voiceOverFallback()}}</span
|
|
8337
8788
|
>
|
|
8338
|
-
</div> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBInfotext, selector: "db-infotext", inputs: ["id", "className", "icon", "semantic", "size", "showIcon", "text"] }] }); }
|
|
8789
|
+
</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"] }] }); }
|
|
8339
8790
|
}
|
|
8340
8791
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBTextarea, decorators: [{
|
|
8341
8792
|
type: Component,
|
|
@@ -8405,7 +8856,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
8405
8856
|
>{{_voiceOverFallback()}}</span
|
|
8406
8857
|
>
|
|
8407
8858
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
8408
|
-
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }],
|
|
8859
|
+
}], 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 }] }], 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 }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], showRequiredAsterisk: [{ type: i0.Input, args: [{ isSignal: true, alias: "showRequiredAsterisk", required: false }] }], showLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLabel", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], fieldSizing: [{ type: i0.Input, args: [{ isSignal: true, alias: "fieldSizing", required: false }] }], resize: [{ type: i0.Input, args: [{ isSignal: true, alias: "resize", required: false }] }], showResizer: [{ type: i0.Input, args: [{ isSignal: true, alias: "showResizer", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }, { type: i0.Output, args: ["disabledChange"] }], 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 }] }], maxlength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxlength", required: false }] }], minlength: [{ type: i0.Input, args: [{ isSignal: true, alias: "minlength", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], wrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "wrap", required: false }] }], spellCheck: [{ type: i0.Input, args: [{ isSignal: true, alias: "spellCheck", required: false }] }], autocomplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocomplete", required: false }] }], ariaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedBy", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }], cols: [{ type: i0.Input, args: [{ isSignal: true, alias: "cols", required: false }] }], messageIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "messageIcon", 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 }] }] } });
|
|
8409
8860
|
|
|
8410
8861
|
const TextareaResizeList = ['none', 'both', 'horizontal', 'vertical'];
|
|
8411
8862
|
const TextareaWrapList = ['hard', 'soft', 'off'];
|
|
@@ -8440,5 +8891,5 @@ const AlignmentList = ['start', 'center'];
|
|
|
8440
8891
|
* Generated bundle index. Do not edit.
|
|
8441
8892
|
*/
|
|
8442
8893
|
|
|
8443
|
-
export { AccordionBehaviorList, AccordionVariantList, AlignmentList, AutoCompleteList, BadgePlacementList, ButtonTypeList, ButtonVariantList, COLOR, COLORS, COLORS_SIMPLE, COLOR_CONST, COLOR_SIMPLE, CardBehaviorList, CardElevationLevelList, CustomSelectDropdownWidthList, CustomSelectListItemTypeList, DBAccordion, DBAccordionItem, DBBadge, DBBrand, DBButton, DBCard, DBCheckbox, DBCustomSelect, DBCustomSelectDropdown, DBCustomSelectFormField, DBCustomSelectList, DBCustomSelectListItem, DBDivider, DBDrawer, DBHeader, DBIcon, DBInfotext, DBInput, DBLink, DBNavigation, DBNavigationItem, DBNotification, DBPage, DBPopover, DBRadio, DBSection, DBSelect, DBStack, DBSwitch, DBTabItem, DBTabList, DBTabPanel, DBTabs, DBTag, DBTextarea, DBTooltip, DB_UX_LOCAL_STORAGE_FRAMEWORK, DB_UX_LOCAL_STORAGE_MODE, DEFAULT_BACK, DEFAULT_BURGER_MENU, DEFAULT_CLOSE_BUTTON, DEFAULT_DATALIST_ID_SUFFIX, DEFAULT_ICON, DEFAULT_ID, DEFAULT_INVALID_MESSAGE, DEFAULT_INVALID_MESSAGE_ID_SUFFIX, DEFAULT_LABEL, DEFAULT_LABEL_ID_SUFFIX, DEFAULT_MESSAGE, DEFAULT_MESSAGE_ID_SUFFIX, DEFAULT_PLACEHOLDER, DEFAULT_PLACEHOLDER_ID_SUFFIX, DEFAULT_REMOVE, DEFAULT_ROWS, DEFAULT_SELECTED, DEFAULT_SELECT_ID_SUFFIX, DEFAULT_VALID_MESSAGE, DEFAULT_VALID_MESSAGE_ID_SUFFIX, DEFAULT_VIEWPORT, DENSITIES, DENSITY, DENSITY_CONST, DESKTOP_VIEWPORT, DividerMarginList, DividerVariantList, DocumentClickListener, DocumentScrollListener, DrawerBackdropList, DrawerDirectionList, DrawerPositionList, DrawerVariantList, EmphasisList, FieldSizingList, GapSpacingList, IconWeightList, InputTypeList, LabelVariantHorizontalList, LabelVariantList, LinkContentList, LinkReferrerPolicyList, LinkSizeList, LinkTargetList, LinkVariantList, MarginList, MaxWidthList, MetaNavigationDirective, NavigationContentDirective, NavigationDirective, NavigationItemSafeTriangle, NotificationAriaLiveList, NotificationLinkVariantList, NotificationVariantList, OrientationList, PageDocumentOverflowList, PageVariantList, PlacementHorizontalList, PlacementList, PlacementVerticalList, PopoverDelayList, PopoverWidthList, SEMANTIC, SEMANTICS, SecondaryActionDirective, SelectedTypeList, SemanticList, SizeList, SpacingList, StackAlignmentList, StackDirectionList, StackJustifyContentList, StackVariantList, TESTING_VIEWPORTS, TabsBehaviorList, TabsInitialSelectedModeList, TagBehaviorList, TextareaResizeList, TextareaWrapList, TooltipVariantList, ValidationList, WidthList, addAttributeToChildren, cls, delay, getBoolean, getBooleanAsString, getFloatingProps, getHideProp, getInputValue, getNotificationRole, getNumber, getOptionKey, getSearchInput, getStep, handleDataOutside, handleFixedDropdown, handleFixedPopover, hasVoiceOver, isArrayOfStrings, isEventTargetNavigationItem, isIOSSafari, isKeyboardEvent, stringPropVisible, uuid };
|
|
8894
|
+
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 };
|
|
8444
8895
|
//# sourceMappingURL=db-ux-ngx-core-components.mjs.map
|