@db-ux/ngx-core-components 2.4.3 → 3.0.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/components/brand/brand.d.ts +1 -1
- package/components/button/button.d.ts +8 -8
- package/components/button/model.d.ts +6 -22
- package/components/custom-select-list-item/custom-select-list-item.d.ts +1 -2
- package/components/custom-select-list-item/model.d.ts +1 -1
- package/components/infotext/infotext.d.ts +1 -1
- package/components/input/input.d.ts +8 -3
- package/components/input/model.d.ts +6 -2
- package/components/link/link.d.ts +3 -6
- package/components/link/model.d.ts +3 -3
- package/components/navigation/model.d.ts +2 -2
- package/components/navigation/navigation.d.ts +1 -2
- package/components/navigation-item/model.d.ts +2 -6
- package/components/navigation-item/navigation-item.d.ts +0 -1
- package/components/notification/notification.d.ts +1 -1
- package/components/radio/radio.d.ts +1 -3
- package/components/select/select.d.ts +1 -0
- package/components/switch/model.d.ts +2 -2
- package/components/switch/switch.d.ts +3 -4
- package/components/tab-item/model.d.ts +2 -2
- package/components/tab-item/tab-item.d.ts +5 -4
- package/components/tab-panel/model.d.ts +2 -2
- package/components/tab-panel/tab-panel.d.ts +1 -2
- package/components/tag/model.d.ts +2 -6
- package/components/tag/tag.d.ts +1 -5
- package/fesm2022/db-ux-ngx-core-components.mjs +108 -162
- package/fesm2022/db-ux-ngx-core-components.mjs.map +1 -1
- package/package.json +3 -3
- package/shared/model.d.ts +28 -27
|
@@ -2,7 +2,7 @@ import { AfterViewInit, ElementRef } from "@angular/core";
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class DBBrand implements AfterViewInit {
|
|
4
4
|
protected readonly DEFAULT_ICON: string;
|
|
5
|
-
protected readonly
|
|
5
|
+
protected readonly getBooleanAsString: (originBool?: boolean | string) => any;
|
|
6
6
|
protected readonly cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
7
7
|
hideLogo: import("@angular/core").InputSignal<boolean | undefined>;
|
|
8
8
|
icon: import("@angular/core").InputSignal<import("@db-ux/core-foundations").BaseIconTypes | import("@db-ux/core-foundations").LooseAutocomplete | undefined>;
|
|
@@ -3,28 +3,28 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export declare class DBButton implements AfterViewInit {
|
|
4
4
|
protected readonly cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
5
5
|
protected readonly getBoolean: (originBool?: boolean | string, propertyName?: string) => boolean | undefined;
|
|
6
|
-
protected readonly getHideProp: (show?: boolean | string) => any;
|
|
7
6
|
protected readonly getBooleanAsString: (originBool?: boolean | string) => any;
|
|
7
|
+
type: import("@angular/core").InputSignal<"button" | "reset" | "submit" | undefined>;
|
|
8
8
|
id: import("@angular/core").InputSignal<string | undefined>;
|
|
9
9
|
className: import("@angular/core").InputSignal<string | undefined>;
|
|
10
|
-
type: import("@angular/core").InputSignal<"button" | "reset" | "submit" | undefined>;
|
|
11
10
|
disabled: import("@angular/core").InputSignal<string | boolean | undefined>;
|
|
12
|
-
|
|
11
|
+
iconLeading: import("@angular/core").InputSignal<import("@db-ux/core-foundations").BaseIconTypes | import("@db-ux/core-foundations").LooseAutocomplete | undefined>;
|
|
13
12
|
icon: import("@angular/core").InputSignal<import("@db-ux/core-foundations").BaseIconTypes | import("@db-ux/core-foundations").LooseAutocomplete | undefined>;
|
|
13
|
+
showIconLeading: import("@angular/core").InputSignal<string | boolean | undefined>;
|
|
14
14
|
showIcon: import("@angular/core").InputSignal<string | boolean | undefined>;
|
|
15
|
+
iconTrailing: import("@angular/core").InputSignal<import("@db-ux/core-foundations").BaseIconTypes | import("@db-ux/core-foundations").LooseAutocomplete | undefined>;
|
|
16
|
+
showIconTrailing: import("@angular/core").InputSignal<string | boolean | undefined>;
|
|
15
17
|
size: import("@angular/core").InputSignal<"medium" | "small" | undefined>;
|
|
16
|
-
state: import("@angular/core").InputSignal<"loading" | undefined>;
|
|
17
18
|
width: import("@angular/core").InputSignal<string | undefined>;
|
|
18
19
|
variant: import("@angular/core").InputSignal<string | undefined>;
|
|
19
20
|
noText: import("@angular/core").InputSignal<string | boolean | undefined>;
|
|
20
21
|
name: import("@angular/core").InputSignal<string | undefined>;
|
|
21
22
|
form: import("@angular/core").InputSignal<string | undefined>;
|
|
22
23
|
value: import("@angular/core").InputSignal<string | undefined>;
|
|
23
|
-
describedbyid: import("@angular/core").InputSignal<string | undefined>;
|
|
24
|
-
ariaexpanded: import("@angular/core").InputSignal<boolean | undefined>;
|
|
25
|
-
ariapressed: import("@angular/core").InputSignal<boolean | undefined>;
|
|
26
24
|
text: import("@angular/core").InputSignal<string | undefined>;
|
|
25
|
+
click: import("@angular/core").OutputEmitterRef<void | MouseEvent>;
|
|
27
26
|
_ref: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
27
|
+
getButtonType(): "button" | "reset" | "submit" | undefined;
|
|
28
28
|
constructor();
|
|
29
29
|
/**
|
|
30
30
|
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
@@ -34,5 +34,5 @@ export declare class DBButton implements AfterViewInit {
|
|
|
34
34
|
private enableAttributePassing;
|
|
35
35
|
ngAfterViewInit(): void;
|
|
36
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<DBButton, never>;
|
|
37
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DBButton, "db-button", never, { "
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DBButton, "db-button", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "iconLeading": { "alias": "iconLeading"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "showIconLeading": { "alias": "showIconLeading"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "iconTrailing": { "alias": "iconTrailing"; "required": false; "isSignal": true; }; "showIconTrailing": { "alias": "showIconTrailing"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "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; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; }, { "click": "click"; }, never, ["*"], true, never>;
|
|
38
38
|
}
|
|
@@ -1,19 +1,9 @@
|
|
|
1
|
-
import { ClickEventProps,
|
|
1
|
+
import { ClickEventProps, GlobalProps, GlobalState, IconLeadingProps, IconProps, IconTrailingProps, ShowIconLeadingProps, ShowIconProps, ShowIconTrailingProps, SizeProps, TextProps, WidthProps } from '../../shared/model';
|
|
2
2
|
export declare const ButtonVariantList: readonly ["outlined", "brand", "filled", "ghost"];
|
|
3
3
|
export type ButtonVariantType = (typeof ButtonVariantList)[number];
|
|
4
4
|
export declare const ButtonTypeList: readonly ["button", "reset", "submit"];
|
|
5
5
|
export type ButtonTypeType = (typeof ButtonTypeList)[number];
|
|
6
|
-
export declare const ButtonStateList: readonly ["loading"];
|
|
7
|
-
export type ButtonStateType = (typeof ButtonStateList)[number];
|
|
8
6
|
export type DBButtonDefaultProps = {
|
|
9
|
-
/**
|
|
10
|
-
* If the button controls a grouping of other elements, the ariaexpanded state [indicates whether the controlled grouping is currently expanded or collapsed](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded).
|
|
11
|
-
*/
|
|
12
|
-
ariaexpanded?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* Defines the button as a toggle button. The value of [ariapressed describes the state of the button](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-pressed).
|
|
15
|
-
*/
|
|
16
|
-
ariapressed?: boolean;
|
|
17
7
|
/**
|
|
18
8
|
* The disabled attribute can be set to [keep a user from clicking on the button](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#disabled).
|
|
19
9
|
*/
|
|
@@ -22,10 +12,6 @@ export type DBButtonDefaultProps = {
|
|
|
22
12
|
* Associates the control with a form element
|
|
23
13
|
*/
|
|
24
14
|
form?: string;
|
|
25
|
-
/**
|
|
26
|
-
* The label represents the [aria-label attributes](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label) value of the button
|
|
27
|
-
*/
|
|
28
|
-
label?: string;
|
|
29
15
|
/**
|
|
30
16
|
* The name attribute specifies a [name attributes value](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#name) for the button.
|
|
31
17
|
*/
|
|
@@ -34,10 +20,6 @@ export type DBButtonDefaultProps = {
|
|
|
34
20
|
* Define the text next to the icon specified via the icon Property to get hidden.
|
|
35
21
|
*/
|
|
36
22
|
noText?: boolean | string;
|
|
37
|
-
/**
|
|
38
|
-
* Show loading progress inside button.
|
|
39
|
-
*/
|
|
40
|
-
state?: ButtonStateType;
|
|
41
23
|
/**
|
|
42
24
|
* The type attribute specifies the [type of button](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#type).
|
|
43
25
|
*/
|
|
@@ -51,6 +33,8 @@ export type DBButtonDefaultProps = {
|
|
|
51
33
|
*/
|
|
52
34
|
variant?: ButtonVariantType | string;
|
|
53
35
|
};
|
|
54
|
-
export type DBButtonProps = DBButtonDefaultProps & GlobalProps & ClickEventProps<HTMLButtonElement> & IconProps & WidthProps & SizeProps & ShowIconProps & TextProps;
|
|
55
|
-
export type DBButtonDefaultState = {
|
|
56
|
-
|
|
36
|
+
export type DBButtonProps = DBButtonDefaultProps & GlobalProps & ClickEventProps<HTMLButtonElement> & IconProps & WidthProps & SizeProps & ShowIconProps & TextProps & ShowIconLeadingProps & ShowIconTrailingProps & IconLeadingProps & IconTrailingProps;
|
|
37
|
+
export type DBButtonDefaultState = {
|
|
38
|
+
getButtonType: () => ButtonTypeType;
|
|
39
|
+
};
|
|
40
|
+
export type DBButtonState = DBButtonDefaultState & GlobalState;
|
|
@@ -6,7 +6,6 @@ export declare class DBCustomSelectListItem implements AfterViewInit, ControlVal
|
|
|
6
6
|
private renderer;
|
|
7
7
|
protected readonly cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
8
8
|
protected readonly getBooleanAsString: (originBool?: boolean | string) => any;
|
|
9
|
-
protected readonly getHideProp: (show?: boolean | string) => any;
|
|
10
9
|
protected readonly getBoolean: (originBool?: boolean | string, propertyName?: string) => boolean | undefined;
|
|
11
10
|
id: import("@angular/core").InputSignal<string | undefined>;
|
|
12
11
|
isGroupTitle: import("@angular/core").InputSignal<boolean | undefined>;
|
|
@@ -26,7 +25,7 @@ export declare class DBCustomSelectListItem implements AfterViewInit, ControlVal
|
|
|
26
25
|
_id: import("@angular/core").WritableSignal<string | undefined>;
|
|
27
26
|
hasDivider: import("@angular/core").WritableSignal<boolean | undefined>;
|
|
28
27
|
handleChange(event: ChangeEvent<HTMLInputElement>): void;
|
|
29
|
-
|
|
28
|
+
getIconTrailing(): "check" | "x_placeholder" | undefined;
|
|
30
29
|
constructor(renderer: Renderer2);
|
|
31
30
|
/**
|
|
32
31
|
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
@@ -23,7 +23,7 @@ export type DBCustomSelectListItemDefaultProps = {
|
|
|
23
23
|
};
|
|
24
24
|
export type DBCustomSelectListItemProps = DBCustomSelectListItemDefaultProps & GlobalProps & BaseFormProps & ValueProps & FormCheckProps & ChangeEventProps<HTMLInputElement> & DBCustomSelectListItemExtraProps;
|
|
25
25
|
export type DBCustomSelectListItemDefaultState = {
|
|
26
|
-
|
|
26
|
+
getIconTrailing: () => string | undefined;
|
|
27
27
|
hasDivider?: boolean;
|
|
28
28
|
};
|
|
29
29
|
export type DBCustomSelectListItemState = DBCustomSelectListItemDefaultState & ChangeEventState<HTMLInputElement> & GlobalState;
|
|
@@ -2,7 +2,7 @@ import { AfterViewInit, ElementRef } from "@angular/core";
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class DBInfotext implements AfterViewInit {
|
|
4
4
|
protected readonly cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
5
|
-
protected readonly
|
|
5
|
+
protected readonly getBooleanAsString: (originBool?: boolean | string) => any;
|
|
6
6
|
id: import("@angular/core").InputSignal<string | undefined>;
|
|
7
7
|
className: import("@angular/core").InputSignal<string | undefined>;
|
|
8
8
|
icon: import("@angular/core").InputSignal<import("@db-ux/core-foundations").BaseIconTypes | import("@db-ux/core-foundations").LooseAutocomplete | undefined>;
|
|
@@ -6,9 +6,10 @@ export declare class DBInput implements AfterViewInit, ControlValueAccessor {
|
|
|
6
6
|
private renderer;
|
|
7
7
|
protected readonly cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
8
8
|
protected readonly getHideProp: (show?: boolean | string) => any;
|
|
9
|
+
protected readonly getBooleanAsString: (originBool?: boolean | string) => any;
|
|
9
10
|
protected readonly DEFAULT_LABEL: string;
|
|
10
|
-
protected readonly DEFAULT_PLACEHOLDER: string;
|
|
11
11
|
protected readonly getBoolean: (originBool?: boolean | string, propertyName?: string) => boolean | undefined;
|
|
12
|
+
protected readonly DEFAULT_PLACEHOLDER: string;
|
|
12
13
|
protected readonly getNumber: (originNumber?: number | string, alternativeNumber?: number | string) => number | undefined;
|
|
13
14
|
protected readonly getInputValue: (value?: number | string, inputType?: string) => string | number | undefined;
|
|
14
15
|
protected readonly stringPropVisible: (givenString?: string, showString?: boolean | string) => boolean;
|
|
@@ -29,14 +30,18 @@ export declare class DBInput implements AfterViewInit, ControlValueAccessor {
|
|
|
29
30
|
className: import("@angular/core").InputSignal<string | undefined>;
|
|
30
31
|
variant: import("@angular/core").InputSignal<"above" | "floating" | undefined>;
|
|
31
32
|
showLabel: import("@angular/core").InputSignal<string | boolean | undefined>;
|
|
33
|
+
showIconLeading: import("@angular/core").InputSignal<string | boolean | undefined>;
|
|
32
34
|
showIcon: import("@angular/core").InputSignal<string | boolean | undefined>;
|
|
35
|
+
iconLeading: import("@angular/core").InputSignal<import("@db-ux/core-foundations").BaseIconTypes | import("@db-ux/core-foundations").LooseAutocomplete | undefined>;
|
|
33
36
|
icon: import("@angular/core").InputSignal<import("@db-ux/core-foundations").BaseIconTypes | import("@db-ux/core-foundations").LooseAutocomplete | undefined>;
|
|
34
|
-
|
|
37
|
+
iconTrailing: import("@angular/core").InputSignal<import("@db-ux/core-foundations").BaseIconTypes | import("@db-ux/core-foundations").LooseAutocomplete | undefined>;
|
|
35
38
|
showRequiredAsterisk: import("@angular/core").InputSignal<string | boolean | undefined>;
|
|
39
|
+
showIconTrailing: import("@angular/core").InputSignal<string | boolean | undefined>;
|
|
36
40
|
label: import("@angular/core").InputSignal<string | undefined>;
|
|
37
41
|
fieldSizing: import("@angular/core").InputSignal<"fixed" | "content" | undefined>;
|
|
38
42
|
name: import("@angular/core").InputSignal<string | undefined>;
|
|
39
43
|
type: import("@angular/core").InputSignal<string | undefined>;
|
|
44
|
+
multiple: import("@angular/core").InputSignal<string | boolean | undefined>;
|
|
40
45
|
placeholder: import("@angular/core").InputSignal<string | undefined>;
|
|
41
46
|
disabled: import("@angular/core").ModelSignal<string | boolean | undefined>;
|
|
42
47
|
step: import("@angular/core").InputSignal<string | number | undefined>;
|
|
@@ -89,5 +94,5 @@ export declare class DBInput implements AfterViewInit, ControlValueAccessor {
|
|
|
89
94
|
ngOnInit(): void;
|
|
90
95
|
ngAfterViewInit(): void;
|
|
91
96
|
static ɵfac: i0.ɵɵFactoryDeclaration<DBInput, never>;
|
|
92
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DBInput, "db-input", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "invalidMessage": { "alias": "invalidMessage"; "required": false; "isSignal": true; }; "dataListId": { "alias": "dataListId"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; "showMessage": { "alias": "showMessage"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "validMessage": { "alias": "validMessage"; "required": false; "isSignal": true; }; "validation": { "alias": "validation"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "minLength": { "alias": "minLength"; "required": false; "isSignal": true; }; "maxLength": { "alias": "maxLength"; "required": false; "isSignal": true; }; "pattern": { "alias": "pattern"; "required": false; "isSignal": true; }; "dataList": { "alias": "dataList"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "showLabel": { "alias": "showLabel"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "
|
|
97
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DBInput, "db-input", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "invalidMessage": { "alias": "invalidMessage"; "required": false; "isSignal": true; }; "dataListId": { "alias": "dataListId"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; "showMessage": { "alias": "showMessage"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "validMessage": { "alias": "validMessage"; "required": false; "isSignal": true; }; "validation": { "alias": "validation"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "minLength": { "alias": "minLength"; "required": false; "isSignal": true; }; "maxLength": { "alias": "maxLength"; "required": false; "isSignal": true; }; "pattern": { "alias": "pattern"; "required": false; "isSignal": true; }; "dataList": { "alias": "dataList"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "showLabel": { "alias": "showLabel"; "required": false; "isSignal": true; }; "showIconLeading": { "alias": "showIconLeading"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "iconLeading": { "alias": "iconLeading"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconTrailing": { "alias": "iconTrailing"; "required": false; "isSignal": true; }; "showRequiredAsterisk": { "alias": "showRequiredAsterisk"; "required": false; "isSignal": true; }; "showIconTrailing": { "alias": "showIconTrailing"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "fieldSizing": { "alias": "fieldSizing"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "maxlength": { "alias": "maxlength"; "required": false; "isSignal": true; }; "minlength": { "alias": "minlength"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "autocomplete": { "alias": "autocomplete"; "required": false; "isSignal": true; }; "autofocus": { "alias": "autofocus"; "required": false; "isSignal": true; }; "ariaDescribedBy": { "alias": "ariaDescribedBy"; "required": false; "isSignal": true; }; "messageIcon": { "alias": "messageIcon"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "disabled": "disabledChange"; "input": "input"; "change": "change"; "blur": "blur"; "focus": "focus"; }, never, ["*"], true, never>;
|
|
93
98
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeEventProps, ChangeEventState, FocusEventProps, FocusEventState, FormMessageProps, FormProps, FormSizeProps, FormState, FormTextProps, FromValidState, GlobalProps, GlobalState,
|
|
1
|
+
import { ChangeEventProps, ChangeEventState, FocusEventProps, FocusEventState, FormMessageProps, FormProps, FormSizeProps, FormState, FormTextProps, FromValidState, GlobalProps, GlobalState, IconLeadingProps, IconProps, IconTrailingProps, InputEventProps, InputEventState, ShowIconLeadingProps, ShowIconProps, ShowIconTrailingProps, ValueLabelType } from '../../shared/model';
|
|
2
2
|
export declare const InputTypeList: readonly ["color", "date", "datetime-local", "email", "file", "hidden", "month", "number", "password", "range", "search", "tel", "text", "time", "url", "week"];
|
|
3
3
|
export type InputTypeType = (typeof InputTypeList)[number];
|
|
4
4
|
export type DBInputDefaultProps = {
|
|
@@ -10,6 +10,10 @@ export type DBInputDefaultProps = {
|
|
|
10
10
|
* Add a custom id to [data list](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/datalist) if you're using `dataList` attribute.
|
|
11
11
|
*/
|
|
12
12
|
dataListId?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Allow selecting multiple files. https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input/file#multiple
|
|
15
|
+
*/
|
|
16
|
+
multiple?: boolean | string;
|
|
13
17
|
/**
|
|
14
18
|
* Maximum value
|
|
15
19
|
*/
|
|
@@ -31,7 +35,7 @@ export type DBInputDefaultProps = {
|
|
|
31
35
|
*/
|
|
32
36
|
step?: number | string;
|
|
33
37
|
};
|
|
34
|
-
export type DBInputProps = DBInputDefaultProps & GlobalProps & FormTextProps & InputEventProps<HTMLInputElement> & ChangeEventProps<HTMLInputElement> & FocusEventProps<HTMLInputElement> & FormProps & IconProps &
|
|
38
|
+
export type DBInputProps = DBInputDefaultProps & GlobalProps & FormTextProps & InputEventProps<HTMLInputElement> & ChangeEventProps<HTMLInputElement> & FocusEventProps<HTMLInputElement> & FormProps & IconProps & IconTrailingProps & FormMessageProps & ShowIconProps & IconLeadingProps & ShowIconLeadingProps & ShowIconTrailingProps & FormSizeProps;
|
|
35
39
|
export type DBInputDefaultState = {
|
|
36
40
|
_dataListId?: string;
|
|
37
41
|
getDataList: () => ValueLabelType[];
|
|
@@ -3,7 +3,6 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export declare class DBLink implements AfterViewInit {
|
|
4
4
|
protected readonly cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
5
5
|
protected readonly getBooleanAsString: (originBool?: boolean | string) => any;
|
|
6
|
-
protected readonly getHideProp: (show?: boolean | string) => any;
|
|
7
6
|
id: import("@angular/core").InputSignal<string | undefined>;
|
|
8
7
|
className: import("@angular/core").InputSignal<string | undefined>;
|
|
9
8
|
href: import("@angular/core").InputSignal<string | undefined>;
|
|
@@ -12,13 +11,11 @@ export declare class DBLink implements AfterViewInit {
|
|
|
12
11
|
role: import("@angular/core").InputSignal<string | undefined>;
|
|
13
12
|
hreflang: import("@angular/core").InputSignal<string | undefined>;
|
|
14
13
|
disabled: import("@angular/core").InputSignal<string | boolean | undefined>;
|
|
15
|
-
selected: import("@angular/core").InputSignal<string | boolean | undefined>;
|
|
16
|
-
label: import("@angular/core").InputSignal<string | undefined>;
|
|
17
|
-
current: import("@angular/core").InputSignal<boolean | "date" | "time" | "true" | "false" | "page" | "step" | "location" | undefined>;
|
|
18
14
|
size: import("@angular/core").InputSignal<"medium" | "small" | undefined>;
|
|
19
15
|
showIcon: import("@angular/core").InputSignal<string | boolean | undefined>;
|
|
20
|
-
variant: import("@angular/core").InputSignal<"brand" | "adaptive" | undefined>;
|
|
16
|
+
variant: import("@angular/core").InputSignal<"brand" | "adaptive" | "inline" | undefined>;
|
|
21
17
|
content: import("@angular/core").InputSignal<"external" | "internal" | undefined>;
|
|
18
|
+
wrap: import("@angular/core").InputSignal<string | boolean | undefined>;
|
|
22
19
|
text: import("@angular/core").InputSignal<string | undefined>;
|
|
23
20
|
_ref: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
24
21
|
constructor();
|
|
@@ -30,5 +27,5 @@ export declare class DBLink implements AfterViewInit {
|
|
|
30
27
|
private enableAttributePassing;
|
|
31
28
|
ngAfterViewInit(): void;
|
|
32
29
|
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; }; "
|
|
30
|
+
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; }; "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; }; "wrap": { "alias": "wrap"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
34
31
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ClickEventProps, ClickEventState, GlobalProps, GlobalState, LinkProps, ShowIconProps, TextProps } from '../../shared/model';
|
|
2
|
-
export declare const LinkVariantList: readonly ["adaptive", "brand"];
|
|
1
|
+
import { ClickEventProps, ClickEventState, GlobalProps, GlobalState, LinkProps, ShowIconProps, TextProps, WrapProps } from '../../shared/model';
|
|
2
|
+
export declare const LinkVariantList: readonly ["adaptive", "brand", "inline"];
|
|
3
3
|
export type LinkVariantType = (typeof LinkVariantList)[number];
|
|
4
4
|
export declare const LinkSizeList: readonly ["medium", "small"];
|
|
5
5
|
export type LinkSizeType = (typeof LinkSizeList)[number];
|
|
@@ -19,6 +19,6 @@ export type DBLinkDefaultProps = {
|
|
|
19
19
|
*/
|
|
20
20
|
variant?: LinkVariantType;
|
|
21
21
|
};
|
|
22
|
-
export type DBLinkProps = DBLinkDefaultProps & GlobalProps & ClickEventProps<HTMLAnchorElement> & LinkProps & ShowIconProps & TextProps;
|
|
22
|
+
export type DBLinkProps = DBLinkDefaultProps & GlobalProps & ClickEventProps<HTMLAnchorElement> & LinkProps & ShowIconProps & TextProps & WrapProps;
|
|
23
23
|
export type DBLinkDefaultState = {};
|
|
24
24
|
export type DBLinkState = DBLinkDefaultState & GlobalState & ClickEventState<HTMLAnchorElement>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GlobalProps, GlobalState } from '../../shared/model';
|
|
2
2
|
export type DBNavigationDefaultProps = {};
|
|
3
|
-
export type DBNavigationProps = DBNavigationDefaultProps & GlobalProps
|
|
3
|
+
export type DBNavigationProps = DBNavigationDefaultProps & GlobalProps;
|
|
4
4
|
export type DBNavigationDefaultState = {};
|
|
5
5
|
export type DBNavigationState = DBNavigationDefaultState & GlobalState;
|
|
@@ -3,7 +3,6 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export declare class DBNavigation implements AfterViewInit {
|
|
4
4
|
protected readonly cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
5
5
|
id: import("@angular/core").InputSignal<string | undefined>;
|
|
6
|
-
labelledBy: import("@angular/core").InputSignal<string | undefined>;
|
|
7
6
|
className: import("@angular/core").InputSignal<string | undefined>;
|
|
8
7
|
_ref: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
9
8
|
_id: import("@angular/core").WritableSignal<string | undefined>;
|
|
@@ -17,5 +16,5 @@ export declare class DBNavigation implements AfterViewInit {
|
|
|
17
16
|
ngOnInit(): void;
|
|
18
17
|
ngAfterViewInit(): void;
|
|
19
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<DBNavigation, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DBNavigation, "db-navigation", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DBNavigation, "db-navigation", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
21
20
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ClickEvent, ClickEventProps, ClickEventState, GlobalProps, GlobalState, IconProps, InitializedState, NavigationBackButtonProps, NavigationBehaviorState, ShowIconProps, TextProps, WidthProps } from '../../shared/model';
|
|
1
|
+
import { ClickEvent, ClickEventProps, ClickEventState, GlobalProps, GlobalState, IconProps, InitializedState, NavigationBackButtonProps, NavigationBehaviorState, ShowIconProps, TextProps, WidthProps, WrapProps } from '../../shared/model';
|
|
2
2
|
import { NavigationItemSafeTriangle } from '../../utils/navigation';
|
|
3
3
|
export type DBNavigationItemDefaultProps = {
|
|
4
4
|
/**
|
|
@@ -17,12 +17,8 @@ export type DBNavigationItemDefaultProps = {
|
|
|
17
17
|
* This is for mobile navigation only, if it is set the sub-navigation is a static overlay
|
|
18
18
|
*/
|
|
19
19
|
subNavigationExpanded?: boolean | string;
|
|
20
|
-
/**
|
|
21
|
-
* Determines whether the text should wrap when its parent container is too small, preventing overflow.
|
|
22
|
-
*/
|
|
23
|
-
wrap?: boolean | string;
|
|
24
20
|
};
|
|
25
|
-
export type DBNavigationItemProps = DBNavigationItemDefaultProps & GlobalProps & ClickEventProps<HTMLButtonElement> & IconProps & WidthProps & NavigationBackButtonProps & ShowIconProps & TextProps;
|
|
21
|
+
export type DBNavigationItemProps = DBNavigationItemDefaultProps & GlobalProps & ClickEventProps<HTMLButtonElement> & IconProps & WidthProps & WrapProps & NavigationBackButtonProps & ShowIconProps & TextProps;
|
|
26
22
|
export type DBNavigationItemDefaultState = {
|
|
27
23
|
handleBackClick: (event: ClickEvent<HTMLButtonElement>) => void;
|
|
28
24
|
hasAreaPopup: boolean;
|
|
@@ -5,7 +5,6 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
export declare class DBNavigationItem implements AfterViewInit {
|
|
6
6
|
dbNavigationContent: any;
|
|
7
7
|
protected readonly cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
8
|
-
protected readonly getHideProp: (show?: boolean | string) => any;
|
|
9
8
|
protected readonly getBooleanAsString: (originBool?: boolean | string) => any;
|
|
10
9
|
protected readonly getBoolean: (originBool?: boolean | string, propertyName?: string) => boolean | undefined;
|
|
11
10
|
protected readonly DEFAULT_BACK: string;
|
|
@@ -3,7 +3,7 @@ import { ClickEvent } from "../../shared/model";
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class DBNotification implements AfterViewInit {
|
|
5
5
|
protected readonly cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
6
|
-
protected readonly
|
|
6
|
+
protected readonly getBooleanAsString: (originBool?: boolean | string) => any;
|
|
7
7
|
protected readonly stringPropVisible: (givenString?: string, showString?: boolean | string) => boolean;
|
|
8
8
|
protected readonly getBoolean: (originBool?: boolean | string, propertyName?: string) => boolean | undefined;
|
|
9
9
|
protected readonly DEFAULT_CLOSE_BUTTON: string;
|
|
@@ -16,8 +16,6 @@ export declare class DBRadio implements AfterViewInit, ControlValueAccessor {
|
|
|
16
16
|
validation: import("@angular/core").InputSignal<"invalid" | "valid" | "no-validation" | undefined>;
|
|
17
17
|
name: import("@angular/core").InputSignal<string | undefined>;
|
|
18
18
|
disabled: import("@angular/core").ModelSignal<string | boolean | undefined>;
|
|
19
|
-
describedbyid: import("@angular/core").InputSignal<string | undefined>;
|
|
20
|
-
ariaDescribedBy: import("@angular/core").InputSignal<string | undefined>;
|
|
21
19
|
value: import("@angular/core").ModelSignal<any>;
|
|
22
20
|
required: import("@angular/core").InputSignal<string | boolean | undefined>;
|
|
23
21
|
label: import("@angular/core").InputSignal<string | undefined>;
|
|
@@ -45,5 +43,5 @@ export declare class DBRadio implements AfterViewInit, ControlValueAccessor {
|
|
|
45
43
|
ngOnInit(): void;
|
|
46
44
|
ngAfterViewInit(): void;
|
|
47
45
|
static ɵfac: i0.ɵɵFactoryDeclaration<DBRadio, never>;
|
|
48
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DBRadio, "db-radio", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "showLabel": { "alias": "showLabel"; "required": false; "isSignal": true; }; "showRequiredAsterisk": { "alias": "showRequiredAsterisk"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "validation": { "alias": "validation"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "
|
|
46
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DBRadio, "db-radio", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "showLabel": { "alias": "showLabel"; "required": false; "isSignal": true; }; "showRequiredAsterisk": { "alias": "showRequiredAsterisk"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "validation": { "alias": "validation"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, { "disabled": "disabledChange"; "value": "valueChange"; "change": "change"; "blur": "blur"; "focus": "focus"; }, never, ["*"], true, never>;
|
|
49
47
|
}
|
|
@@ -7,6 +7,7 @@ export declare class DBSelect implements AfterViewInit, ControlValueAccessor {
|
|
|
7
7
|
private renderer;
|
|
8
8
|
protected readonly cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
9
9
|
protected readonly getHideProp: (show?: boolean | string) => any;
|
|
10
|
+
protected readonly getBooleanAsString: (originBool?: boolean | string) => any;
|
|
10
11
|
protected readonly DEFAULT_LABEL: string;
|
|
11
12
|
protected readonly getBoolean: (originBool?: boolean | string, propertyName?: string) => boolean | undefined;
|
|
12
13
|
protected readonly getOptionKey: (option: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ChangeEventProps, ChangeEventState, EmphasisProps, FocusEventProps, FocusEventState, FormCheckProps, FormProps, FormState, GlobalProps, GlobalState,
|
|
1
|
+
import { ChangeEventProps, ChangeEventState, EmphasisProps, FocusEventProps, FocusEventState, FormCheckProps, FormProps, FormState, GlobalProps, GlobalState, IconLeadingProps, IconProps, IconTrailingProps, SizeProps } from '../../shared/model';
|
|
2
2
|
export type DBSwitchDefaultProps = {
|
|
3
3
|
/**
|
|
4
4
|
* Add additional icons to indicate active/inactive state.
|
|
5
5
|
*/
|
|
6
6
|
visualAid?: boolean | string;
|
|
7
7
|
};
|
|
8
|
-
export type DBSwitchProps = DBSwitchDefaultProps & GlobalProps & ChangeEventProps<HTMLInputElement> & FocusEventProps<HTMLInputElement> & FormProps & FormCheckProps & EmphasisProps & SizeProps & IconProps &
|
|
8
|
+
export type DBSwitchProps = DBSwitchDefaultProps & GlobalProps & ChangeEventProps<HTMLInputElement> & FocusEventProps<HTMLInputElement> & FormProps & FormCheckProps & EmphasisProps & SizeProps & IconProps & IconTrailingProps & IconLeadingProps;
|
|
9
9
|
export type DBSwitchDefaultState = {};
|
|
10
10
|
export type DBSwitchState = DBSwitchDefaultState & GlobalState & ChangeEventState<HTMLInputElement> & FocusEventState<HTMLInputElement> & FormState;
|
|
@@ -18,13 +18,12 @@ export declare class DBSwitch implements AfterViewInit, ControlValueAccessor {
|
|
|
18
18
|
checked: import("@angular/core").ModelSignal<string | boolean | undefined>;
|
|
19
19
|
value: import("@angular/core").InputSignal<any>;
|
|
20
20
|
disabled: import("@angular/core").ModelSignal<string | boolean | undefined>;
|
|
21
|
-
describedbyid: import("@angular/core").InputSignal<string | undefined>;
|
|
22
|
-
ariaDescribedBy: import("@angular/core").InputSignal<string | undefined>;
|
|
23
21
|
validation: import("@angular/core").InputSignal<"invalid" | "valid" | "no-validation" | undefined>;
|
|
24
22
|
name: import("@angular/core").InputSignal<string | undefined>;
|
|
25
23
|
required: import("@angular/core").InputSignal<string | boolean | undefined>;
|
|
24
|
+
iconLeading: import("@angular/core").InputSignal<import("@db-ux/core-foundations").BaseIconTypes | import("@db-ux/core-foundations").LooseAutocomplete | undefined>;
|
|
26
25
|
icon: import("@angular/core").InputSignal<import("@db-ux/core-foundations").BaseIconTypes | import("@db-ux/core-foundations").LooseAutocomplete | undefined>;
|
|
27
|
-
|
|
26
|
+
iconTrailing: import("@angular/core").InputSignal<import("@db-ux/core-foundations").BaseIconTypes | import("@db-ux/core-foundations").LooseAutocomplete | undefined>;
|
|
28
27
|
label: import("@angular/core").InputSignal<string | undefined>;
|
|
29
28
|
change: import("@angular/core").OutputEmitterRef<void | Event>;
|
|
30
29
|
blur: import("@angular/core").OutputEmitterRef<void | FocusEvent>;
|
|
@@ -49,5 +48,5 @@ export declare class DBSwitch implements AfterViewInit, ControlValueAccessor {
|
|
|
49
48
|
ngOnInit(): void;
|
|
50
49
|
ngAfterViewInit(): void;
|
|
51
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<DBSwitch, never>;
|
|
52
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DBSwitch, "db-switch", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "visualAid": { "alias": "visualAid"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "showLabel": { "alias": "showLabel"; "required": false; "isSignal": true; }; "emphasis": { "alias": "emphasis"; "required": false; "isSignal": true; }; "showRequiredAsterisk": { "alias": "showRequiredAsterisk"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "
|
|
51
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DBSwitch, "db-switch", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "visualAid": { "alias": "visualAid"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "showLabel": { "alias": "showLabel"; "required": false; "isSignal": true; }; "emphasis": { "alias": "emphasis"; "required": false; "isSignal": true; }; "showRequiredAsterisk": { "alias": "showRequiredAsterisk"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "validation": { "alias": "validation"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "iconLeading": { "alias": "iconLeading"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconTrailing": { "alias": "iconTrailing"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; "disabled": "disabledChange"; "change": "change"; "blur": "blur"; "focus": "focus"; }, never, ["*"], true, never>;
|
|
53
52
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ActiveProps,
|
|
1
|
+
import { ActiveProps, ChangeEventProps, ChangeEventState, GlobalProps, GlobalState, IconLeadingProps, IconProps, IconTrailingProps, InitializedState, NameProps, NameState, ShowIconLeadingProps, ShowIconProps, ShowIconTrailingProps } from '../../shared/model';
|
|
2
2
|
export type DBTabItemDefaultProps = {
|
|
3
3
|
/**
|
|
4
4
|
* To control the component
|
|
@@ -17,7 +17,7 @@ export type DBTabItemDefaultProps = {
|
|
|
17
17
|
*/
|
|
18
18
|
noText?: boolean | string;
|
|
19
19
|
};
|
|
20
|
-
export type DBTabItemProps = GlobalProps & DBTabItemDefaultProps & IconProps &
|
|
20
|
+
export type DBTabItemProps = GlobalProps & DBTabItemDefaultProps & IconProps & IconTrailingProps & IconLeadingProps & ShowIconLeadingProps & ShowIconTrailingProps & ActiveProps & ChangeEventProps<HTMLInputElement> & ShowIconProps & NameProps;
|
|
21
21
|
export type DBTabItemDefaultState = {
|
|
22
22
|
_selected: boolean;
|
|
23
23
|
};
|
|
@@ -4,19 +4,20 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export declare class DBTabItem implements AfterViewInit, ControlValueAccessor {
|
|
5
5
|
private renderer;
|
|
6
6
|
protected readonly cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
7
|
-
protected readonly getHideProp: (show?: boolean | string) => any;
|
|
8
7
|
protected readonly getBooleanAsString: (originBool?: boolean | string) => any;
|
|
9
8
|
protected readonly getBoolean: (originBool?: boolean | string, propertyName?: string) => boolean | undefined;
|
|
10
9
|
active: import("@angular/core").InputSignal<string | boolean | undefined>;
|
|
11
10
|
name: import("@angular/core").InputSignal<string | undefined>;
|
|
12
11
|
className: import("@angular/core").InputSignal<string | undefined>;
|
|
13
12
|
id: import("@angular/core").InputSignal<string | undefined>;
|
|
13
|
+
iconLeading: import("@angular/core").InputSignal<import("@db-ux/core-foundations").BaseIconTypes | import("@db-ux/core-foundations").LooseAutocomplete | undefined>;
|
|
14
14
|
icon: import("@angular/core").InputSignal<import("@db-ux/core-foundations").BaseIconTypes | import("@db-ux/core-foundations").LooseAutocomplete | undefined>;
|
|
15
|
-
|
|
15
|
+
iconTrailing: import("@angular/core").InputSignal<import("@db-ux/core-foundations").BaseIconTypes | import("@db-ux/core-foundations").LooseAutocomplete | undefined>;
|
|
16
|
+
showIconLeading: import("@angular/core").InputSignal<string | boolean | undefined>;
|
|
16
17
|
showIcon: import("@angular/core").InputSignal<string | boolean | undefined>;
|
|
18
|
+
showIconTrailing: import("@angular/core").InputSignal<string | boolean | undefined>;
|
|
17
19
|
noText: import("@angular/core").InputSignal<string | boolean | undefined>;
|
|
18
20
|
disabled: import("@angular/core").ModelSignal<string | boolean | undefined>;
|
|
19
|
-
controls: import("@angular/core").InputSignal<string | undefined>;
|
|
20
21
|
checked: import("@angular/core").ModelSignal<string | boolean | undefined>;
|
|
21
22
|
label: import("@angular/core").InputSignal<string | undefined>;
|
|
22
23
|
change: import("@angular/core").OutputEmitterRef<void | Event>;
|
|
@@ -41,5 +42,5 @@ export declare class DBTabItem implements AfterViewInit, ControlValueAccessor {
|
|
|
41
42
|
ngOnInit(): void;
|
|
42
43
|
ngAfterViewInit(): void;
|
|
43
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<DBTabItem, never>;
|
|
44
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DBTabItem, "db-tab-item", never, { "active": { "alias": "active"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "
|
|
45
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DBTabItem, "db-tab-item", never, { "active": { "alias": "active"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "iconLeading": { "alias": "iconLeading"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconTrailing": { "alias": "iconTrailing"; "required": false; "isSignal": true; }; "showIconLeading": { "alias": "showIconLeading"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "showIconTrailing": { "alias": "showIconTrailing"; "required": false; "isSignal": true; }; "noText": { "alias": "noText"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, { "disabled": "disabledChange"; "checked": "checkedChange"; "change": "change"; }, never, ["*"], true, never>;
|
|
45
46
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GlobalProps, GlobalState } from '../../shared/model';
|
|
2
2
|
export type DBTabPanelDefaultProps = {
|
|
3
3
|
/**
|
|
4
4
|
* The content if you don't want to use children.
|
|
5
5
|
*/
|
|
6
6
|
content?: string;
|
|
7
7
|
};
|
|
8
|
-
export type DBTabPanelProps = DBTabPanelDefaultProps & GlobalProps
|
|
8
|
+
export type DBTabPanelProps = DBTabPanelDefaultProps & GlobalProps;
|
|
9
9
|
export type DBTabPanelDefaultState = {};
|
|
10
10
|
export type DBTabPanelState = DBTabPanelDefaultState & GlobalState;
|
|
@@ -4,7 +4,6 @@ export declare class DBTabPanel implements AfterViewInit {
|
|
|
4
4
|
protected readonly cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
5
5
|
className: import("@angular/core").InputSignal<string | undefined>;
|
|
6
6
|
id: import("@angular/core").InputSignal<string | undefined>;
|
|
7
|
-
labelledBy: import("@angular/core").InputSignal<string | undefined>;
|
|
8
7
|
content: import("@angular/core").InputSignal<string | undefined>;
|
|
9
8
|
_ref: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
10
9
|
constructor();
|
|
@@ -17,5 +16,5 @@ export declare class DBTabPanel implements AfterViewInit {
|
|
|
17
16
|
ngOnInit(): void;
|
|
18
17
|
ngAfterViewInit(): void;
|
|
19
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<DBTabPanel, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DBTabPanel, "db-tab-panel", never, { "className": { "alias": "className"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DBTabPanel, "db-tab-panel", never, { "className": { "alias": "className"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "content": { "alias": "content"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
21
20
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ClickEvent, ContentSlotProps, EmphasisProps, GlobalProps, GlobalState, IconProps,
|
|
1
|
+
import { ClickEvent, ContentSlotProps, EmphasisProps, GlobalProps, GlobalState, IconProps, OverflowProps, SemanticProps, ShowIconProps } from '../../shared/model';
|
|
2
2
|
export declare const TagBehaviorList: readonly ["static", "removable"];
|
|
3
3
|
export type TagBehaviorType = (typeof TagBehaviorList)[number];
|
|
4
4
|
export type DBTagEventsProps = {
|
|
@@ -18,10 +18,6 @@ export type DBTagDefaultProps = {
|
|
|
18
18
|
* - removable: add a remove button at the end of the tag
|
|
19
19
|
*/
|
|
20
20
|
behavior?: TagBehaviorType | string;
|
|
21
|
-
/**
|
|
22
|
-
* @deprecated Disable tag
|
|
23
|
-
*/
|
|
24
|
-
disabled?: boolean | string;
|
|
25
21
|
/**
|
|
26
22
|
* Define the text next to the icon specified via the icon Property to get hidden.
|
|
27
23
|
*/
|
|
@@ -48,4 +44,4 @@ export type DBTagDefaultState = {
|
|
|
48
44
|
getRemoveButtonText: () => string;
|
|
49
45
|
handleRemove: (event?: ClickEvent<HTMLButtonElement> | void) => void;
|
|
50
46
|
};
|
|
51
|
-
export type DBTagState = DBTagDefaultState & GlobalState
|
|
47
|
+
export type DBTagState = DBTagDefaultState & GlobalState;
|