@db-ux/ngx-core-components 2.3.1 → 2.4.0-0-af2a02f
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef } from "@angular/core";
|
|
2
|
+
import { ClickEvent } from "../../shared/model";
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class DBButton implements AfterViewInit {
|
|
4
5
|
protected readonly cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
@@ -24,7 +25,9 @@ export declare class DBButton implements AfterViewInit {
|
|
|
24
25
|
ariaexpanded: import("@angular/core").InputSignal<boolean | undefined>;
|
|
25
26
|
ariapressed: import("@angular/core").InputSignal<boolean | undefined>;
|
|
26
27
|
text: import("@angular/core").InputSignal<string | undefined>;
|
|
28
|
+
click: import("@angular/core").OutputEmitterRef<void | MouseEvent>;
|
|
27
29
|
_ref: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
30
|
+
handleClick(event: ClickEvent<HTMLButtonElement>): void;
|
|
28
31
|
constructor();
|
|
29
32
|
/**
|
|
30
33
|
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
@@ -34,5 +37,5 @@ export declare class DBButton implements AfterViewInit {
|
|
|
34
37
|
private enableAttributePassing;
|
|
35
38
|
ngAfterViewInit(): void;
|
|
36
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<DBButton, never>;
|
|
37
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DBButton, "db-button", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "noText": { "alias": "noText"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "describedbyid": { "alias": "describedbyid"; "required": false; "isSignal": true; }; "ariaexpanded": { "alias": "ariaexpanded"; "required": false; "isSignal": true; }; "ariapressed": { "alias": "ariapressed"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DBButton, "db-button", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "noText": { "alias": "noText"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "describedbyid": { "alias": "describedbyid"; "required": false; "isSignal": true; }; "ariaexpanded": { "alias": "ariaexpanded"; "required": false; "isSignal": true; }; "ariapressed": { "alias": "ariapressed"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; }, { "click": "click"; }, never, ["*"], true, never>;
|
|
38
41
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef } from "@angular/core";
|
|
2
|
+
import { ClickEvent } from "../../shared/model";
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class DBLink implements AfterViewInit {
|
|
4
5
|
protected readonly cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
@@ -20,7 +21,9 @@ export declare class DBLink implements AfterViewInit {
|
|
|
20
21
|
variant: import("@angular/core").InputSignal<"brand" | "adaptive" | undefined>;
|
|
21
22
|
content: import("@angular/core").InputSignal<"external" | "internal" | undefined>;
|
|
22
23
|
text: import("@angular/core").InputSignal<string | undefined>;
|
|
24
|
+
click: import("@angular/core").OutputEmitterRef<void | MouseEvent>;
|
|
23
25
|
_ref: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
26
|
+
handleClick(event: ClickEvent<HTMLAnchorElement>): void;
|
|
24
27
|
constructor();
|
|
25
28
|
/**
|
|
26
29
|
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
@@ -30,5 +33,5 @@ export declare class DBLink implements AfterViewInit {
|
|
|
30
33
|
private enableAttributePassing;
|
|
31
34
|
ngAfterViewInit(): void;
|
|
32
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<DBLink, never>;
|
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DBLink, "db-link", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "href": { "alias": "href"; "required": false; "isSignal": true; }; "target": { "alias": "target"; "required": false; "isSignal": true; }; "rel": { "alias": "rel"; "required": false; "isSignal": true; }; "role": { "alias": "role"; "required": false; "isSignal": true; }; "hreflang": { "alias": "hreflang"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "current": { "alias": "current"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "content": { "alias": "content"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DBLink, "db-link", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "href": { "alias": "href"; "required": false; "isSignal": true; }; "target": { "alias": "target"; "required": false; "isSignal": true; }; "rel": { "alias": "rel"; "required": false; "isSignal": true; }; "role": { "alias": "role"; "required": false; "isSignal": true; }; "hreflang": { "alias": "hreflang"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "current": { "alias": "current"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "content": { "alias": "content"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; }, { "click": "click"; }, never, ["*"], true, never>;
|
|
34
37
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, viewChild, Component,
|
|
2
|
+
import { input, output, viewChild, Component, signal, effect, model, Directive, TemplateRef, ContentChild } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
5
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
@@ -111,6 +111,11 @@ const isKeyboardEvent = (event) => event.key !== undefined;
|
|
|
111
111
|
|
|
112
112
|
const defaultProps$z = {};
|
|
113
113
|
class DBButton {
|
|
114
|
+
handleClick(event) {
|
|
115
|
+
if (this.click) {
|
|
116
|
+
this.click.emit(event);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
114
119
|
constructor() {
|
|
115
120
|
this.cls = cls;
|
|
116
121
|
this.getBoolean = getBoolean;
|
|
@@ -135,6 +140,7 @@ class DBButton {
|
|
|
135
140
|
this.ariaexpanded = input();
|
|
136
141
|
this.ariapressed = input();
|
|
137
142
|
this.text = input();
|
|
143
|
+
this.click = output();
|
|
138
144
|
this._ref = viewChild("_ref");
|
|
139
145
|
}
|
|
140
146
|
/**
|
|
@@ -174,7 +180,7 @@ class DBButton {
|
|
|
174
180
|
this.enableAttributePassing(element, "db-button");
|
|
175
181
|
}
|
|
176
182
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: DBButton, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
177
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: DBButton, isStandalone: true, selector: "db-button", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", 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 }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, state: { classPropertyName: "state", publicName: "state", 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 }, describedbyid: { classPropertyName: "describedbyid", publicName: "describedbyid", isSignal: true, isRequired: false, transformFunction: null }, ariaexpanded: { classPropertyName: "ariaexpanded", publicName: "ariaexpanded", isSignal: true, isRequired: false, transformFunction: null }, ariapressed: { classPropertyName: "ariapressed", publicName: "ariapressed", 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: `
|
|
183
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: DBButton, isStandalone: true, selector: "db-button", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", 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 }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, state: { classPropertyName: "state", publicName: "state", 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 }, describedbyid: { classPropertyName: "describedbyid", publicName: "describedbyid", isSignal: true, isRequired: false, transformFunction: null }, ariaexpanded: { classPropertyName: "ariaexpanded", publicName: "ariaexpanded", isSignal: true, isRequired: false, transformFunction: null }, ariapressed: { classPropertyName: "ariapressed", publicName: "ariapressed", 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: `
|
|
178
184
|
<button
|
|
179
185
|
#_ref
|
|
180
186
|
[attr.id]="id()"
|
|
@@ -195,6 +201,7 @@ class DBButton {
|
|
|
195
201
|
[attr.aria-describedby]="describedbyid()"
|
|
196
202
|
[attr.aria-expanded]="ariaexpanded()"
|
|
197
203
|
[attr.aria-pressed]="ariapressed()"
|
|
204
|
+
(click)="handleClick($event)"
|
|
198
205
|
>
|
|
199
206
|
@if(text()){ {{text()}} }@else{
|
|
200
207
|
<ng-content></ng-content>
|
|
@@ -225,6 +232,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
225
232
|
[attr.aria-describedby]="describedbyid()"
|
|
226
233
|
[attr.aria-expanded]="ariaexpanded()"
|
|
227
234
|
[attr.aria-pressed]="ariapressed()"
|
|
235
|
+
(click)="handleClick($event)"
|
|
228
236
|
>
|
|
229
237
|
@if(text()){ {{text()}} }@else{
|
|
230
238
|
<ng-content></ng-content>
|
|
@@ -442,7 +450,7 @@ class DBNotification {
|
|
|
442
450
|
</db-button>
|
|
443
451
|
}
|
|
444
452
|
</article>
|
|
445
|
-
`, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBButton, selector: "db-button", inputs: ["id", "className", "type", "disabled", "label", "icon", "showIcon", "size", "state", "width", "variant", "noText", "name", "form", "value", "describedbyid", "ariaexpanded", "ariapressed", "text"] }] }); }
|
|
453
|
+
`, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBButton, selector: "db-button", inputs: ["id", "className", "type", "disabled", "label", "icon", "showIcon", "size", "state", "width", "variant", "noText", "name", "form", "value", "describedbyid", "ariaexpanded", "ariapressed", "text"], outputs: ["click"] }] }); }
|
|
446
454
|
}
|
|
447
455
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: DBNotification, decorators: [{
|
|
448
456
|
type: Component,
|
|
@@ -515,7 +523,7 @@ class DBBadge {
|
|
|
515
523
|
parent = parent.parentElement;
|
|
516
524
|
}
|
|
517
525
|
if (parent) {
|
|
518
|
-
parent.
|
|
526
|
+
parent.setAttribute("data-has-badge", "true");
|
|
519
527
|
}
|
|
520
528
|
}
|
|
521
529
|
}
|
|
@@ -1413,7 +1421,7 @@ class DBDrawer {
|
|
|
1413
1421
|
<div class="db-drawer-content"><ng-content></ng-content></div>
|
|
1414
1422
|
</article>
|
|
1415
1423
|
</dialog>
|
|
1416
|
-
`, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBButton, selector: "db-button", inputs: ["id", "className", "type", "disabled", "label", "icon", "showIcon", "size", "state", "width", "variant", "noText", "name", "form", "value", "describedbyid", "ariaexpanded", "ariapressed", "text"] }] }); }
|
|
1424
|
+
`, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBButton, selector: "db-button", inputs: ["id", "className", "type", "disabled", "label", "icon", "showIcon", "size", "state", "width", "variant", "noText", "name", "form", "value", "describedbyid", "ariaexpanded", "ariapressed", "text"], outputs: ["click"] }] }); }
|
|
1417
1425
|
}
|
|
1418
1426
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: DBDrawer, decorators: [{
|
|
1419
1427
|
type: Component,
|
|
@@ -1760,7 +1768,7 @@ const handleFixedPopover = (element, parent, placement) => {
|
|
|
1760
1768
|
element.style.insetBlockEnd = `calc(${end > innerHeight ? innerHeight : end}px + ${distance})`;
|
|
1761
1769
|
}
|
|
1762
1770
|
element.style.position = 'fixed';
|
|
1763
|
-
element.
|
|
1771
|
+
element.setAttribute('data-corrected-placement', correctedPlacement);
|
|
1764
1772
|
};
|
|
1765
1773
|
|
|
1766
1774
|
const isEventTargetNavigationItem = (event) => {
|
|
@@ -2090,7 +2098,7 @@ class DBHeader {
|
|
|
2090
2098
|
</div>
|
|
2091
2099
|
</div>
|
|
2092
2100
|
</header>
|
|
2093
|
-
`, 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", "backdrop", "variant", "id", "className", "spacing", "width", "direction", "rounded", "closeButtonId", "closeButtonText"], outputs: ["close"] }, { kind: "component", type: DBButton, selector: "db-button", inputs: ["id", "className", "type", "disabled", "label", "icon", "showIcon", "size", "state", "width", "variant", "noText", "name", "form", "value", "describedbyid", "ariaexpanded", "ariapressed", "text"] }] }); }
|
|
2101
|
+
`, 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", "backdrop", "variant", "id", "className", "spacing", "width", "direction", "rounded", "closeButtonId", "closeButtonText"], outputs: ["close"] }, { kind: "component", type: DBButton, selector: "db-button", inputs: ["id", "className", "type", "disabled", "label", "icon", "showIcon", "size", "state", "width", "variant", "noText", "name", "form", "value", "describedbyid", "ariaexpanded", "ariapressed", "text"], outputs: ["click"] }] }); }
|
|
2094
2102
|
}
|
|
2095
2103
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: DBHeader, decorators: [{
|
|
2096
2104
|
type: Component,
|
|
@@ -2539,7 +2547,12 @@ class DBInput {
|
|
|
2539
2547
|
@if(dataList()){
|
|
2540
2548
|
<datalist [attr.id]="_dataListId()">
|
|
2541
2549
|
@for (option of getDataList();track trackByOption0;let i = $index) {
|
|
2542
|
-
<option
|
|
2550
|
+
<option
|
|
2551
|
+
[attr.value]="option.value"
|
|
2552
|
+
[attr.data-value]="option.hiddenValue"
|
|
2553
|
+
>
|
|
2554
|
+
{{option.label}}
|
|
2555
|
+
</option>
|
|
2543
2556
|
}
|
|
2544
2557
|
</datalist>
|
|
2545
2558
|
}
|
|
@@ -2612,7 +2625,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
2612
2625
|
@if(dataList()){
|
|
2613
2626
|
<datalist [attr.id]="_dataListId()">
|
|
2614
2627
|
@for (option of getDataList();track trackByOption0;let i = $index) {
|
|
2615
|
-
<option
|
|
2628
|
+
<option
|
|
2629
|
+
[attr.value]="option.value"
|
|
2630
|
+
[attr.data-value]="option.hiddenValue"
|
|
2631
|
+
>
|
|
2632
|
+
{{option.label}}
|
|
2633
|
+
</option>
|
|
2616
2634
|
}
|
|
2617
2635
|
</datalist>
|
|
2618
2636
|
}
|
|
@@ -2638,6 +2656,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
2638
2656
|
|
|
2639
2657
|
const defaultProps$n = {};
|
|
2640
2658
|
class DBLink {
|
|
2659
|
+
handleClick(event) {
|
|
2660
|
+
if (this.click) {
|
|
2661
|
+
this.click.emit(event);
|
|
2662
|
+
}
|
|
2663
|
+
}
|
|
2641
2664
|
constructor() {
|
|
2642
2665
|
this.cls = cls;
|
|
2643
2666
|
this.getBooleanAsString = getBooleanAsString;
|
|
@@ -2658,6 +2681,7 @@ class DBLink {
|
|
|
2658
2681
|
this.variant = input();
|
|
2659
2682
|
this.content = input();
|
|
2660
2683
|
this.text = input();
|
|
2684
|
+
this.click = output();
|
|
2661
2685
|
this._ref = viewChild("_ref");
|
|
2662
2686
|
}
|
|
2663
2687
|
/**
|
|
@@ -2697,7 +2721,7 @@ class DBLink {
|
|
|
2697
2721
|
this.enableAttributePassing(element, "db-link");
|
|
2698
2722
|
}
|
|
2699
2723
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: DBLink, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2700
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", 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 }, hreflang: { classPropertyName: "hreflang", publicName: "hreflang", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, current: { classPropertyName: "current", publicName: "current", 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 }, 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: `
|
|
2724
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", 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 }, hreflang: { classPropertyName: "hreflang", publicName: "hreflang", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, current: { classPropertyName: "current", publicName: "current", 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 }, 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: `
|
|
2701
2725
|
<a
|
|
2702
2726
|
#_ref
|
|
2703
2727
|
[attr.id]="id()"
|
|
@@ -2716,6 +2740,7 @@ class DBLink {
|
|
|
2716
2740
|
[attr.data-hide-icon-after]="getHideProp(showIcon() ?? true)"
|
|
2717
2741
|
[attr.data-variant]="variant()"
|
|
2718
2742
|
[attr.data-content]="content() || 'internal'"
|
|
2743
|
+
(click)="handleClick($event)"
|
|
2719
2744
|
>
|
|
2720
2745
|
@if(text()){ {{text()}} }@else{
|
|
2721
2746
|
<ng-content></ng-content>
|
|
@@ -2744,6 +2769,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
2744
2769
|
[attr.data-hide-icon-after]="getHideProp(showIcon() ?? true)"
|
|
2745
2770
|
[attr.data-variant]="variant()"
|
|
2746
2771
|
[attr.data-content]="content() || 'internal'"
|
|
2772
|
+
(click)="handleClick($event)"
|
|
2747
2773
|
>
|
|
2748
2774
|
@if(text()){ {{text()}} }@else{
|
|
2749
2775
|
<ng-content></ng-content>
|
|
@@ -4023,7 +4049,7 @@ class DBTooltip {
|
|
|
4023
4049
|
["mouseleave", "focusout"].forEach((event) => {
|
|
4024
4050
|
parent.addEventListener(event, () => this.handleLeave());
|
|
4025
4051
|
});
|
|
4026
|
-
parent.
|
|
4052
|
+
parent.setAttribute("data-has-tooltip", "true");
|
|
4027
4053
|
if (this.variant() === "label") {
|
|
4028
4054
|
parent.setAttribute("aria-labelledby", this._id());
|
|
4029
4055
|
}
|
|
@@ -4809,7 +4835,7 @@ class DBNavigationItem {
|
|
|
4809
4835
|
</menu>
|
|
4810
4836
|
}
|
|
4811
4837
|
</li>
|
|
4812
|
-
`, 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: ["id", "className", "type", "disabled", "label", "icon", "showIcon", "size", "state", "width", "variant", "noText", "name", "form", "value", "describedbyid", "ariaexpanded", "ariapressed", "text"] }] }); }
|
|
4838
|
+
`, 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: ["id", "className", "type", "disabled", "label", "icon", "showIcon", "size", "state", "width", "variant", "noText", "name", "form", "value", "describedbyid", "ariaexpanded", "ariapressed", "text"], outputs: ["click"] }] }); }
|
|
4813
4839
|
}
|
|
4814
4840
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: DBNavigationItem, decorators: [{
|
|
4815
4841
|
type: Component,
|
|
@@ -5903,7 +5929,7 @@ class DBTabs {
|
|
|
5903
5929
|
}
|
|
5904
5930
|
<ng-content></ng-content>
|
|
5905
5931
|
</div>
|
|
5906
|
-
`, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBButton, selector: "db-button", inputs: ["id", "className", "type", "disabled", "label", "icon", "showIcon", "size", "state", "width", "variant", "noText", "name", "form", "value", "describedbyid", "ariaexpanded", "ariapressed", "text"] }, { kind: "component", type: DBTabList, selector: "db-tab-list", inputs: ["id", "className"] }, { kind: "component", type: DBTabItem, selector: "db-tab-item", inputs: ["active", "name", "className", "id", "icon", "iconAfter", "showIcon", "noText", "disabled", "controls", "checked", "label"], outputs: ["disabledChange", "checkedChange", "change"] }, { kind: "component", type: DBTabPanel, selector: "db-tab-panel", inputs: ["className", "id", "labelledBy", "content"] }] }); }
|
|
5932
|
+
`, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBButton, selector: "db-button", inputs: ["id", "className", "type", "disabled", "label", "icon", "showIcon", "size", "state", "width", "variant", "noText", "name", "form", "value", "describedbyid", "ariaexpanded", "ariapressed", "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", "icon", "iconAfter", "showIcon", "noText", "disabled", "controls", "checked", "label"], outputs: ["disabledChange", "checkedChange", "change"] }, { kind: "component", type: DBTabPanel, selector: "db-tab-panel", inputs: ["className", "id", "labelledBy", "content"] }] }); }
|
|
5907
5933
|
}
|
|
5908
5934
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: DBTabs, decorators: [{
|
|
5909
5935
|
type: Component,
|
|
@@ -7430,7 +7456,7 @@ class DBCustomSelect {
|
|
|
7430
7456
|
{{_voiceOverFallback()}}
|
|
7431
7457
|
</span>
|
|
7432
7458
|
</div>
|
|
7433
|
-
`, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBTag, selector: "db-tag", inputs: ["disabled", "removeButton", "id", "className", "semantic", "emphasis", "icon", "showCheckState", "showIcon", "noText", "overflow", "text", "behavior"], outputs: ["remove"] }, { kind: "component", type: DBCustomSelectDropdown, selector: "db-custom-select-dropdown", inputs: ["id", "className", "width"] }, { kind: "component", type: DBInput, selector: "db-input", inputs: ["id", "invalidMessage", "dataListId", "message", "showMessage", "value", "validMessage", "validation", "required", "minLength", "maxLength", "pattern", "dataList", "className", "variant", "showLabel", "showIcon", "icon", "iconAfter", "label", "fieldSizing", "name", "type", "placeholder", "disabled", "step", "maxlength", "minlength", "max", "min", "readOnly", "readonly", "form", "size", "autocomplete", "autofocus", "ariaDescribedBy", "messageIcon"], outputs: ["valueChange", "disabledChange", "input", "change", "blur", "focus"] }, { kind: "component", type: DBCustomSelectList, selector: "db-custom-select-list", inputs: ["multiple", "label", "id", "className"] }, { kind: "component", type: DBCustomSelectListItem, selector: "db-custom-select-list-item", inputs: ["id", "isGroupTitle", "showDivider", "type", "checked", "className", "groupTitle", "icon", "showIcon", "name", "disabled", "value", "label"], outputs: ["checkedChange", "disabledChange", "change"] }, { kind: "component", type: DBInfotext, selector: "db-infotext", inputs: ["id", "className", "icon", "semantic", "size", "showIcon", "text"] }, { kind: "component", type: DBButton, selector: "db-button", inputs: ["id", "className", "type", "disabled", "label", "icon", "showIcon", "size", "state", "width", "variant", "noText", "name", "form", "value", "describedbyid", "ariaexpanded", "ariapressed", "text"] }, { kind: "component", type: DBTooltip, selector: "db-tooltip", inputs: ["id", "variant", "placement", "className", "emphasis", "animation", "delay", "width", "showArrow"] }] }); }
|
|
7459
|
+
`, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBTag, selector: "db-tag", inputs: ["disabled", "removeButton", "id", "className", "semantic", "emphasis", "icon", "showCheckState", "showIcon", "noText", "overflow", "text", "behavior"], outputs: ["remove"] }, { kind: "component", type: DBCustomSelectDropdown, selector: "db-custom-select-dropdown", inputs: ["id", "className", "width"] }, { kind: "component", type: DBInput, selector: "db-input", inputs: ["id", "invalidMessage", "dataListId", "message", "showMessage", "value", "validMessage", "validation", "required", "minLength", "maxLength", "pattern", "dataList", "className", "variant", "showLabel", "showIcon", "icon", "iconAfter", "label", "fieldSizing", "name", "type", "placeholder", "disabled", "step", "maxlength", "minlength", "max", "min", "readOnly", "readonly", "form", "size", "autocomplete", "autofocus", "ariaDescribedBy", "messageIcon"], outputs: ["valueChange", "disabledChange", "input", "change", "blur", "focus"] }, { kind: "component", type: DBCustomSelectList, selector: "db-custom-select-list", inputs: ["multiple", "label", "id", "className"] }, { kind: "component", type: DBCustomSelectListItem, selector: "db-custom-select-list-item", inputs: ["id", "isGroupTitle", "showDivider", "type", "checked", "className", "groupTitle", "icon", "showIcon", "name", "disabled", "value", "label"], outputs: ["checkedChange", "disabledChange", "change"] }, { kind: "component", type: DBInfotext, selector: "db-infotext", inputs: ["id", "className", "icon", "semantic", "size", "showIcon", "text"] }, { kind: "component", type: DBButton, selector: "db-button", inputs: ["id", "className", "type", "disabled", "label", "icon", "showIcon", "size", "state", "width", "variant", "noText", "name", "form", "value", "describedbyid", "ariaexpanded", "ariapressed", "text"], outputs: ["click"] }, { kind: "component", type: DBTooltip, selector: "db-tooltip", inputs: ["id", "variant", "placement", "className", "emphasis", "animation", "delay", "width", "showArrow"] }] }); }
|
|
7434
7460
|
}
|
|
7435
7461
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: DBCustomSelect, decorators: [{
|
|
7436
7462
|
type: Component,
|