@db-ux/ngx-core-components 3.0.1 → 3.0.2-copilot2-e7bf98b
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/README.md +11 -0
- package/agent/Accordion.md +52 -0
- package/agent/AccordionItem.md +45 -0
- package/agent/Badge.md +48 -0
- package/agent/Brand.md +29 -0
- package/agent/Button.md +59 -0
- package/agent/Card.md +39 -0
- package/agent/Checkbox.md +52 -0
- package/agent/CustomSelect.md +89 -0
- package/agent/Divider.md +37 -0
- package/agent/Drawer.md +90 -0
- package/agent/Header.md +45 -0
- package/agent/Icon.md +36 -0
- package/agent/Infotext.md +41 -0
- package/agent/Input.md +58 -0
- package/agent/Link.md +60 -0
- package/agent/Navigation.md +34 -0
- package/agent/NavigationItem.md +45 -0
- package/agent/Notification.md +52 -0
- package/agent/Page.md +45 -0
- package/agent/Popover.md +69 -0
- package/agent/Radio.md +39 -0
- package/agent/Section.md +39 -0
- package/agent/Select.md +80 -0
- package/agent/Stack.md +51 -0
- package/agent/Switch.md +55 -0
- package/agent/TabItem.md +41 -0
- package/agent/Tabs.md +80 -0
- package/agent/Tag.md +48 -0
- package/agent/Textarea.md +57 -0
- package/agent/Tooltip.md +64 -0
- package/agent/_instructions.md +31 -0
- package/package.json +7 -3
- package/components/accordion/accordion.d.ts +0 -30
- package/components/accordion/index.d.ts +0 -1
- package/components/accordion/model.d.ts +0 -41
- package/components/accordion-item/accordion-item.d.ts +0 -33
- package/components/accordion-item/index.d.ts +0 -1
- package/components/accordion-item/model.d.ts +0 -24
- package/components/badge/badge.d.ts +0 -27
- package/components/badge/index.d.ts +0 -1
- package/components/badge/model.d.ts +0 -16
- package/components/brand/brand.d.ts +0 -25
- package/components/brand/index.d.ts +0 -1
- package/components/brand/model.d.ts +0 -10
- package/components/button/button.d.ts +0 -39
- package/components/button/index.d.ts +0 -1
- package/components/button/model.d.ts +0 -40
- package/components/card/card.d.ts +0 -25
- package/components/card/index.d.ts +0 -1
- package/components/card/model.d.ts +0 -18
- package/components/checkbox/checkbox.d.ts +0 -64
- package/components/checkbox/index.d.ts +0 -1
- package/components/checkbox/model.d.ts +0 -10
- package/components/custom-select/custom-select.d.ts +0 -150
- package/components/custom-select/index.d.ts +0 -1
- package/components/custom-select/model.d.ts +0 -220
- package/components/custom-select-dropdown/custom-select-dropdown.d.ts +0 -20
- package/components/custom-select-dropdown/index.d.ts +0 -1
- package/components/custom-select-dropdown/model.d.ts +0 -15
- package/components/custom-select-form-field/custom-select-form-field.d.ts +0 -19
- package/components/custom-select-form-field/index.d.ts +0 -1
- package/components/custom-select-form-field/model.d.ts +0 -5
- package/components/custom-select-list/custom-select-list.d.ts +0 -21
- package/components/custom-select-list/index.d.ts +0 -1
- package/components/custom-select-list/model.d.ts +0 -8
- package/components/custom-select-list-item/custom-select-list-item.d.ts +0 -45
- package/components/custom-select-list-item/index.d.ts +0 -1
- package/components/custom-select-list-item/model.d.ts +0 -29
- package/components/divider/divider.d.ts +0 -23
- package/components/divider/index.d.ts +0 -1
- package/components/divider/model.d.ts +0 -18
- package/components/drawer/drawer.d.ts +0 -37
- package/components/drawer/index.d.ts +0 -1
- package/components/drawer/model.d.ts +0 -50
- package/components/header/MetaNavigation.directive.d.ts +0 -5
- package/components/header/Navigation.directive.d.ts +0 -5
- package/components/header/SecondaryAction.directive.d.ts +0 -5
- package/components/header/header.d.ts +0 -33
- package/components/header/index.d.ts +0 -1
- package/components/header/model.d.ts +0 -44
- package/components/icon/icon.d.ts +0 -23
- package/components/icon/index.d.ts +0 -1
- package/components/icon/model.d.ts +0 -10
- package/components/infotext/index.d.ts +0 -1
- package/components/infotext/infotext.d.ts +0 -25
- package/components/infotext/model.d.ts +0 -5
- package/components/input/index.d.ts +0 -1
- package/components/input/input.d.ts +0 -98
- package/components/input/model.d.ts +0 -43
- package/components/link/index.d.ts +0 -1
- package/components/link/link.d.ts +0 -32
- package/components/link/model.d.ts +0 -24
- package/components/navigation/index.d.ts +0 -1
- package/components/navigation/model.d.ts +0 -5
- package/components/navigation/navigation.d.ts +0 -20
- package/components/navigation-item/NavigationContent.directive.d.ts +0 -5
- package/components/navigation-item/index.d.ts +0 -1
- package/components/navigation-item/model.d.ts +0 -34
- package/components/navigation-item/navigation-item.d.ts +0 -46
- package/components/notification/index.d.ts +0 -1
- package/components/notification/model.d.ts +0 -57
- package/components/notification/notification.d.ts +0 -40
- package/components/page/index.d.ts +0 -1
- package/components/page/model.d.ts +0 -36
- package/components/page/page.d.ts +0 -27
- package/components/popover/index.d.ts +0 -1
- package/components/popover/model.d.ts +0 -17
- package/components/popover/popover.d.ts +0 -37
- package/components/radio/index.d.ts +0 -1
- package/components/radio/model.d.ts +0 -5
- package/components/radio/radio.d.ts +0 -47
- package/components/section/index.d.ts +0 -1
- package/components/section/model.d.ts +0 -5
- package/components/section/section.d.ts +0 -22
- package/components/select/index.d.ts +0 -1
- package/components/select/model.d.ts +0 -44
- package/components/select/select.d.ts +0 -83
- package/components/stack/index.d.ts +0 -1
- package/components/stack/model.d.ts +0 -34
- package/components/stack/stack.d.ts +0 -26
- package/components/switch/index.d.ts +0 -1
- package/components/switch/model.d.ts +0 -10
- package/components/switch/switch.d.ts +0 -52
- package/components/tab-item/index.d.ts +0 -1
- package/components/tab-item/model.d.ts +0 -24
- package/components/tab-item/tab-item.d.ts +0 -46
- package/components/tab-list/index.d.ts +0 -1
- package/components/tab-list/model.d.ts +0 -5
- package/components/tab-list/tab-list.d.ts +0 -20
- package/components/tab-panel/index.d.ts +0 -1
- package/components/tab-panel/model.d.ts +0 -10
- package/components/tab-panel/tab-panel.d.ts +0 -20
- package/components/tabs/index.d.ts +0 -1
- package/components/tabs/model.d.ts +0 -66
- package/components/tabs/tabs.d.ts +0 -45
- package/components/tag/index.d.ts +0 -1
- package/components/tag/model.d.ts +0 -47
- package/components/tag/tag.d.ts +0 -34
- package/components/textarea/index.d.ts +0 -1
- package/components/textarea/model.d.ts +0 -34
- package/components/textarea/textarea.d.ts +0 -84
- package/components/tooltip/index.d.ts +0 -1
- package/components/tooltip/model.d.ts +0 -20
- package/components/tooltip/tooltip.d.ts +0 -39
- package/fesm2022/db-ux-ngx-core-components.mjs +0 -7787
- package/fesm2022/db-ux-ngx-core-components.mjs.map +0 -1
- package/index.d.ts +0 -83
- package/shared/constants.d.ts +0 -88
- package/shared/model.d.ts +0 -522
- package/utils/document-click-listener.d.ts +0 -8
- package/utils/document-scroll-listener.d.ts +0 -9
- package/utils/floating-components.d.ts +0 -20
- package/utils/form-components.d.ts +0 -2
- package/utils/index.d.ts +0 -40
- package/utils/navigation.d.ts +0 -32
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { ClickEventProps, GlobalProps, GlobalState, IconLeadingProps, IconProps, IconTrailingProps, ShowIconLeadingProps, ShowIconProps, ShowIconTrailingProps, SizeProps, TextProps, WidthProps } from '../../shared/model';
|
|
2
|
-
export declare const ButtonVariantList: readonly ["outlined", "brand", "filled", "ghost"];
|
|
3
|
-
export type ButtonVariantType = (typeof ButtonVariantList)[number];
|
|
4
|
-
export declare const ButtonTypeList: readonly ["button", "reset", "submit"];
|
|
5
|
-
export type ButtonTypeType = (typeof ButtonTypeList)[number];
|
|
6
|
-
export type DBButtonDefaultProps = {
|
|
7
|
-
/**
|
|
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).
|
|
9
|
-
*/
|
|
10
|
-
disabled?: boolean | string;
|
|
11
|
-
/**
|
|
12
|
-
* Associates the control with a form element
|
|
13
|
-
*/
|
|
14
|
-
form?: string;
|
|
15
|
-
/**
|
|
16
|
-
* The name attribute specifies a [name attributes value](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#name) for the button.
|
|
17
|
-
*/
|
|
18
|
-
name?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Define the text next to the icon specified via the icon Property to get hidden.
|
|
21
|
-
*/
|
|
22
|
-
noText?: boolean | string;
|
|
23
|
-
/**
|
|
24
|
-
* The type attribute specifies the [type of button](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#type).
|
|
25
|
-
*/
|
|
26
|
-
type?: ButtonTypeType;
|
|
27
|
-
/**
|
|
28
|
-
* The value attribute specifies an initial [value for the button](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#value).
|
|
29
|
-
*/
|
|
30
|
-
value?: string;
|
|
31
|
-
/**
|
|
32
|
-
* Variant of the button. Use only 1 primary button on a page as CTA otherwise use one of the adaptive buttons.
|
|
33
|
-
*/
|
|
34
|
-
variant?: ButtonVariantType | string;
|
|
35
|
-
};
|
|
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;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ElementRef, AfterViewInit, InputSignal } from "@angular/core";
|
|
2
|
-
import { ClickEvent } from "../../shared/model";
|
|
3
|
-
import type { DBCardProps } from "./model";
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class DBCard implements AfterViewInit {
|
|
6
|
-
protected readonly cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
7
|
-
id: InputSignal<DBCardProps["id"]>;
|
|
8
|
-
className: InputSignal<DBCardProps["className"]>;
|
|
9
|
-
behavior: InputSignal<DBCardProps["behavior"]>;
|
|
10
|
-
elevationLevel: InputSignal<DBCardProps["elevationLevel"]>;
|
|
11
|
-
spacing: InputSignal<DBCardProps["spacing"]>;
|
|
12
|
-
click: import("@angular/core").OutputEmitterRef<void | MouseEvent>;
|
|
13
|
-
_ref: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
14
|
-
handleClick(event: ClickEvent<HTMLElement>): void;
|
|
15
|
-
constructor();
|
|
16
|
-
/**
|
|
17
|
-
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
18
|
-
* @param element the ref for the component
|
|
19
|
-
* @param customElementSelector the custom element like `my-component`
|
|
20
|
-
*/
|
|
21
|
-
private enableAttributePassing;
|
|
22
|
-
ngAfterViewInit(): void;
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DBCard, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DBCard, "db-card", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "behavior": { "alias": "behavior"; "required": false; "isSignal": true; }; "elevationLevel": { "alias": "elevationLevel"; "required": false; "isSignal": true; }; "spacing": { "alias": "spacing"; "required": false; "isSignal": true; }; }, { "click": "click"; }, never, ["*"], true, never>;
|
|
25
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { DBCard } from './card';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ClickEventProps, ClickEventState, GlobalProps, GlobalState, SpacingProps } from '../../shared/model';
|
|
2
|
-
export declare const CardBehaviorList: readonly ["static", "interactive"];
|
|
3
|
-
export type CardBehaviorType = (typeof CardBehaviorList)[number];
|
|
4
|
-
export declare const CardElevationLevelList: readonly ["1", "2", "3"];
|
|
5
|
-
export type CardElevationLevelType = (typeof CardElevationLevelList)[number];
|
|
6
|
-
export type DBCardDefaultProps = {
|
|
7
|
-
/**
|
|
8
|
-
* Makes the card interactive
|
|
9
|
-
*/
|
|
10
|
-
behavior?: CardBehaviorType;
|
|
11
|
-
/**
|
|
12
|
-
* Changes the elevation of the card which is equal to `basic-background-level`
|
|
13
|
-
*/
|
|
14
|
-
elevationLevel?: CardElevationLevelType;
|
|
15
|
-
};
|
|
16
|
-
export type DBCardProps = DBCardDefaultProps & GlobalProps & ClickEventProps<HTMLElement> & SpacingProps;
|
|
17
|
-
export type DBCardDefaultState = {};
|
|
18
|
-
export type DBCardState = DBCardDefaultState & GlobalState & ClickEventState<HTMLElement>;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { ElementRef, AfterViewInit, InputSignal, ModelSignal, Renderer2 } from "@angular/core";
|
|
2
|
-
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
-
import { ChangeEvent, InteractionEvent } from "../../shared/model";
|
|
4
|
-
import { DBCheckboxProps } from "./model";
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class DBCheckbox implements AfterViewInit, ControlValueAccessor {
|
|
7
|
-
private renderer;
|
|
8
|
-
protected readonly cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
9
|
-
protected readonly getHideProp: (show?: boolean | string) => any;
|
|
10
|
-
protected readonly getBoolean: (originBool?: boolean | string, propertyName?: string) => boolean | undefined;
|
|
11
|
-
protected readonly stringPropVisible: (givenString?: string, showString?: boolean | string) => boolean;
|
|
12
|
-
protected readonly DEFAULT_VALID_MESSAGE: string;
|
|
13
|
-
id: InputSignal<DBCheckboxProps["id"]>;
|
|
14
|
-
invalidMessage: InputSignal<DBCheckboxProps["invalidMessage"]>;
|
|
15
|
-
message: InputSignal<DBCheckboxProps["message"]>;
|
|
16
|
-
showMessage: InputSignal<DBCheckboxProps["showMessage"]>;
|
|
17
|
-
indeterminate: InputSignal<DBCheckboxProps["indeterminate"]>;
|
|
18
|
-
checked: ModelSignal<DBCheckboxProps["checked"]>;
|
|
19
|
-
validMessage: InputSignal<DBCheckboxProps["validMessage"]>;
|
|
20
|
-
validation: InputSignal<DBCheckboxProps["validation"]>;
|
|
21
|
-
required: InputSignal<DBCheckboxProps["required"]>;
|
|
22
|
-
className: InputSignal<DBCheckboxProps["className"]>;
|
|
23
|
-
size: InputSignal<DBCheckboxProps["size"]>;
|
|
24
|
-
showRequiredAsterisk: InputSignal<DBCheckboxProps["showRequiredAsterisk"]>;
|
|
25
|
-
showLabel: InputSignal<DBCheckboxProps["showLabel"]>;
|
|
26
|
-
name: InputSignal<DBCheckboxProps["name"]>;
|
|
27
|
-
disabled: ModelSignal<DBCheckboxProps["disabled"]>;
|
|
28
|
-
value: InputSignal<DBCheckboxProps["value"]>;
|
|
29
|
-
ariaDescribedBy: InputSignal<DBCheckboxProps["ariaDescribedBy"]>;
|
|
30
|
-
label: InputSignal<DBCheckboxProps["label"]>;
|
|
31
|
-
messageIcon: InputSignal<DBCheckboxProps["messageIcon"]>;
|
|
32
|
-
change: import("@angular/core").OutputEmitterRef<void | Event>;
|
|
33
|
-
blur: import("@angular/core").OutputEmitterRef<void | FocusEvent>;
|
|
34
|
-
focus: import("@angular/core").OutputEmitterRef<void | FocusEvent>;
|
|
35
|
-
_ref: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
36
|
-
initialized: import("@angular/core").WritableSignal<boolean>;
|
|
37
|
-
_id: import("@angular/core").WritableSignal<string | undefined>;
|
|
38
|
-
_messageId: import("@angular/core").WritableSignal<string | undefined>;
|
|
39
|
-
_validMessageId: import("@angular/core").WritableSignal<string | undefined>;
|
|
40
|
-
_invalidMessageId: import("@angular/core").WritableSignal<string | undefined>;
|
|
41
|
-
_invalidMessage: import("@angular/core").WritableSignal<string | undefined>;
|
|
42
|
-
_descByIds: import("@angular/core").WritableSignal<string | undefined>;
|
|
43
|
-
_voiceOverFallback: import("@angular/core").WritableSignal<string | undefined>;
|
|
44
|
-
hasValidState(): boolean;
|
|
45
|
-
handleValidation(): void;
|
|
46
|
-
handleChange(event: ChangeEvent<HTMLInputElement>): void;
|
|
47
|
-
handleBlur(event: InteractionEvent<HTMLInputElement> | any): void;
|
|
48
|
-
handleFocus(event: InteractionEvent<HTMLInputElement> | any): void;
|
|
49
|
-
constructor(renderer: Renderer2);
|
|
50
|
-
/**
|
|
51
|
-
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
52
|
-
* @param element the ref for the component
|
|
53
|
-
* @param customElementSelector the custom element like `my-component`
|
|
54
|
-
*/
|
|
55
|
-
private enableAttributePassing;
|
|
56
|
-
writeValue(value: any): void;
|
|
57
|
-
propagateChange(_: any): void;
|
|
58
|
-
registerOnChange(onChange: any): void;
|
|
59
|
-
registerOnTouched(onTouched: any): void;
|
|
60
|
-
setDisabledState(disabled: boolean): void;
|
|
61
|
-
ngAfterViewInit(): void;
|
|
62
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DBCheckbox, never>;
|
|
63
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DBCheckbox, "db-checkbox", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "invalidMessage": { "alias": "invalidMessage"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; "showMessage": { "alias": "showMessage"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "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; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "showRequiredAsterisk": { "alias": "showRequiredAsterisk"; "required": false; "isSignal": true; }; "showLabel": { "alias": "showLabel"; "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; }; "ariaDescribedBy": { "alias": "ariaDescribedBy"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "messageIcon": { "alias": "messageIcon"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; "disabled": "disabledChange"; "change": "change"; "blur": "blur"; "focus": "focus"; }, never, ["*"], true, never>;
|
|
64
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { DBCheckbox } from './checkbox';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ChangeEventProps, ChangeEventState, FocusEventProps, FocusEventState, FormCheckProps, FormMessageProps, FormProps, FormState, FromValidState, GlobalProps, GlobalState, InitializedState, SizeProps } from '../../shared/model';
|
|
2
|
-
export type DBCheckboxDefaultProps = {
|
|
3
|
-
/**
|
|
4
|
-
* Define an [indeterminate](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement#indeterminate) state of a checkbox
|
|
5
|
-
*/
|
|
6
|
-
indeterminate?: boolean | string;
|
|
7
|
-
};
|
|
8
|
-
export type DBCheckboxProps = DBCheckboxDefaultProps & GlobalProps & ChangeEventProps<HTMLInputElement> & FocusEventProps<HTMLInputElement> & FormProps & FormCheckProps & FormMessageProps & SizeProps;
|
|
9
|
-
export type DBCheckboxDefaultState = {};
|
|
10
|
-
export type DBCheckboxState = DBCheckboxDefaultState & GlobalState & ChangeEventState<HTMLInputElement> & FocusEventState<HTMLInputElement> & FormState & InitializedState & FromValidState;
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import { ElementRef, AfterViewInit, InputSignal, ModelSignal, Renderer2 } from "@angular/core";
|
|
2
|
-
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
-
import { ClickEvent, GeneralEvent, InputEvent, InteractionEvent } from "../../shared/model";
|
|
4
|
-
import { CustomSelectOptionType, DBCustomSelectProps } from "./model";
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class DBCustomSelect implements AfterViewInit, ControlValueAccessor {
|
|
7
|
-
private renderer;
|
|
8
|
-
protected readonly cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
9
|
-
protected readonly getBooleanAsString: (originBool?: boolean | string) => any;
|
|
10
|
-
protected readonly getHideProp: (show?: boolean | string) => any;
|
|
11
|
-
protected readonly DEFAULT_LABEL: string;
|
|
12
|
-
protected readonly getBoolean: (originBool?: boolean | string, propertyName?: string) => boolean | undefined;
|
|
13
|
-
protected readonly getOptionKey: (option: {
|
|
14
|
-
id?: string;
|
|
15
|
-
value?: string | number | string[] | undefined;
|
|
16
|
-
}, prefix: string) => string;
|
|
17
|
-
protected readonly DEFAULT_MESSAGE: string;
|
|
18
|
-
protected readonly DEFAULT_CLOSE_BUTTON: string;
|
|
19
|
-
protected readonly stringPropVisible: (givenString?: string, showString?: boolean | string) => boolean;
|
|
20
|
-
protected readonly DEFAULT_VALID_MESSAGE: string;
|
|
21
|
-
id: InputSignal<DBCustomSelectProps["id"]>;
|
|
22
|
-
invalidMessage: InputSignal<DBCustomSelectProps["invalidMessage"]>;
|
|
23
|
-
message: InputSignal<DBCustomSelectProps["message"]>;
|
|
24
|
-
showMessage: InputSignal<DBCustomSelectProps["showMessage"]>;
|
|
25
|
-
ariaDescribedBy: InputSignal<DBCustomSelectProps["ariaDescribedBy"]>;
|
|
26
|
-
showNoResults: InputSignal<DBCustomSelectProps["showNoResults"]>;
|
|
27
|
-
showLoading: InputSignal<DBCustomSelectProps["showLoading"]>;
|
|
28
|
-
multiple: InputSignal<DBCustomSelectProps["multiple"]>;
|
|
29
|
-
showSelectAll: InputSignal<DBCustomSelectProps["showSelectAll"]>;
|
|
30
|
-
showSearch: InputSignal<DBCustomSelectProps["showSearch"]>;
|
|
31
|
-
values: ModelSignal<DBCustomSelectProps["values"]>;
|
|
32
|
-
validation: InputSignal<DBCustomSelectProps["validation"]>;
|
|
33
|
-
options: InputSignal<DBCustomSelectProps["options"]>;
|
|
34
|
-
searchValue: InputSignal<DBCustomSelectProps["searchValue"]>;
|
|
35
|
-
selectedLabels: InputSignal<DBCustomSelectProps["selectedLabels"]>;
|
|
36
|
-
transformSelectedLabels: InputSignal<DBCustomSelectProps["transformSelectedLabels"]>;
|
|
37
|
-
selectedType: InputSignal<DBCustomSelectProps["selectedType"]>;
|
|
38
|
-
amountText: InputSignal<DBCustomSelectProps["amountText"]>;
|
|
39
|
-
validMessage: InputSignal<DBCustomSelectProps["validMessage"]>;
|
|
40
|
-
required: InputSignal<DBCustomSelectProps["required"]>;
|
|
41
|
-
selectAllLabel: InputSignal<DBCustomSelectProps["selectAllLabel"]>;
|
|
42
|
-
removeTagsTexts: InputSignal<DBCustomSelectProps["removeTagsTexts"]>;
|
|
43
|
-
placement: InputSignal<DBCustomSelectProps["placement"]>;
|
|
44
|
-
searchFilter: InputSignal<DBCustomSelectProps["searchFilter"]>;
|
|
45
|
-
className: InputSignal<DBCustomSelectProps["className"]>;
|
|
46
|
-
formFieldWidth: InputSignal<DBCustomSelectProps["formFieldWidth"]>;
|
|
47
|
-
variant: InputSignal<DBCustomSelectProps["variant"]>;
|
|
48
|
-
showRequiredAsterisk: InputSignal<DBCustomSelectProps["showRequiredAsterisk"]>;
|
|
49
|
-
showLabel: InputSignal<DBCustomSelectProps["showLabel"]>;
|
|
50
|
-
icon: InputSignal<DBCustomSelectProps["icon"]>;
|
|
51
|
-
showIcon: InputSignal<DBCustomSelectProps["showIcon"]>;
|
|
52
|
-
label: InputSignal<DBCustomSelectProps["label"]>;
|
|
53
|
-
form: InputSignal<DBCustomSelectProps["form"]>;
|
|
54
|
-
name: InputSignal<DBCustomSelectProps["name"]>;
|
|
55
|
-
disabled: ModelSignal<DBCustomSelectProps["disabled"]>;
|
|
56
|
-
open: InputSignal<DBCustomSelectProps["open"]>;
|
|
57
|
-
dropdownWidth: InputSignal<DBCustomSelectProps["dropdownWidth"]>;
|
|
58
|
-
searchLabel: InputSignal<DBCustomSelectProps["searchLabel"]>;
|
|
59
|
-
searchPlaceholder: InputSignal<DBCustomSelectProps["searchPlaceholder"]>;
|
|
60
|
-
ariaListLabel: InputSignal<DBCustomSelectProps["ariaListLabel"]>;
|
|
61
|
-
loadingText: InputSignal<DBCustomSelectProps["loadingText"]>;
|
|
62
|
-
noResultsText: InputSignal<DBCustomSelectProps["noResultsText"]>;
|
|
63
|
-
mobileCloseButtonText: InputSignal<DBCustomSelectProps["mobileCloseButtonText"]>;
|
|
64
|
-
showClearSelection: InputSignal<DBCustomSelectProps["showClearSelection"]>;
|
|
65
|
-
clearSelectionText: InputSignal<DBCustomSelectProps["clearSelectionText"]>;
|
|
66
|
-
placeholder: InputSignal<DBCustomSelectProps["placeholder"]>;
|
|
67
|
-
messageIcon: InputSignal<DBCustomSelectProps["messageIcon"]>;
|
|
68
|
-
amountChange: import("@angular/core").OutputEmitterRef<number | void>;
|
|
69
|
-
dropdownToggle: import("@angular/core").OutputEmitterRef<void | Event>;
|
|
70
|
-
optionSelected: import("@angular/core").OutputEmitterRef<void | string[]>;
|
|
71
|
-
search: import("@angular/core").OutputEmitterRef<void | Event>;
|
|
72
|
-
_ref: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
73
|
-
selectRef: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
74
|
-
detailsRef: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
75
|
-
searchInputRef: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
76
|
-
selectAllRef: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
77
|
-
_id: import("@angular/core").WritableSignal<string | undefined>;
|
|
78
|
-
_messageId: import("@angular/core").WritableSignal<string | undefined>;
|
|
79
|
-
_validMessageId: import("@angular/core").WritableSignal<string | undefined>;
|
|
80
|
-
_invalidMessageId: import("@angular/core").WritableSignal<string | undefined>;
|
|
81
|
-
_invalidMessage: import("@angular/core").WritableSignal<string | undefined>;
|
|
82
|
-
_selectId: import("@angular/core").WritableSignal<string | undefined>;
|
|
83
|
-
_labelId: import("@angular/core").WritableSignal<string | undefined>;
|
|
84
|
-
_summaryId: import("@angular/core").WritableSignal<string | undefined>;
|
|
85
|
-
_placeholderId: import("@angular/core").WritableSignal<string | undefined>;
|
|
86
|
-
_infoTextId: import("@angular/core").WritableSignal<string | undefined>;
|
|
87
|
-
_validity: import("@angular/core").WritableSignal<"invalid" | "valid" | "no-validation" | undefined>;
|
|
88
|
-
_userInteraction: import("@angular/core").WritableSignal<boolean | undefined>;
|
|
89
|
-
_descByIds: import("@angular/core").WritableSignal<string | undefined>;
|
|
90
|
-
_selectedLabels: import("@angular/core").WritableSignal<string | undefined>;
|
|
91
|
-
_selectedLabelsId: import("@angular/core").WritableSignal<string | undefined>;
|
|
92
|
-
_voiceOverFallback: import("@angular/core").WritableSignal<string | undefined>;
|
|
93
|
-
_selectedOptions: import("@angular/core").WritableSignal<CustomSelectOptionType[] | undefined>;
|
|
94
|
-
selectAllEnabled: import("@angular/core").WritableSignal<boolean>;
|
|
95
|
-
searchEnabled: import("@angular/core").WritableSignal<boolean>;
|
|
96
|
-
amountOptions: import("@angular/core").WritableSignal<number>;
|
|
97
|
-
_values: import("@angular/core").WritableSignal<string[] | undefined>;
|
|
98
|
-
_options: import("@angular/core").WritableSignal<CustomSelectOptionType[] | undefined>;
|
|
99
|
-
_hasNoOptions: import("@angular/core").WritableSignal<boolean>;
|
|
100
|
-
_documentClickListenerCallbackId: import("@angular/core").WritableSignal<string | undefined>;
|
|
101
|
-
_internalChangeTimestamp: import("@angular/core").WritableSignal<number>;
|
|
102
|
-
_documentScrollListenerCallbackId: import("@angular/core").WritableSignal<string | undefined>;
|
|
103
|
-
_observer: import("@angular/core").WritableSignal<IntersectionObserver | undefined>;
|
|
104
|
-
_searchValue: import("@angular/core").WritableSignal<string | undefined>;
|
|
105
|
-
selectAllChecked: import("@angular/core").WritableSignal<boolean>;
|
|
106
|
-
selectAllIndeterminate: import("@angular/core").WritableSignal<boolean>;
|
|
107
|
-
handleDocumentScroll(event: any): void;
|
|
108
|
-
hasValidState(): boolean;
|
|
109
|
-
handleValidation(): void;
|
|
110
|
-
handleDropdownToggle(event: GeneralEvent<HTMLDetailsElement>): void;
|
|
111
|
-
getNativeSelectValue(): string;
|
|
112
|
-
setDescById(descId?: string): void;
|
|
113
|
-
getSelectAllLabel(): string;
|
|
114
|
-
getOptionLabel(option: CustomSelectOptionType): string;
|
|
115
|
-
getOptionChecked(value?: string): boolean | undefined;
|
|
116
|
-
getTagRemoveLabel(index: number): string;
|
|
117
|
-
handleTagRemove(option: CustomSelectOptionType, event?: ClickEvent<HTMLButtonElement> | void): void;
|
|
118
|
-
handleAutoPlacement(): void;
|
|
119
|
-
handleArrowDownUp(event: any): void;
|
|
120
|
-
handleKeyboardPress(event: any): void;
|
|
121
|
-
handleClose(event?: InteractionEvent<HTMLDetailsElement> | void, forceClose?: boolean): void;
|
|
122
|
-
handleDocumentClose(event: any): void;
|
|
123
|
-
handleOptionSelected(values: string[]): void;
|
|
124
|
-
handleSelect(value?: string): void;
|
|
125
|
-
handleSelectAll(event: any): void;
|
|
126
|
-
handleFocusFirstDropdownCheckbox(activeElement?: Element): void;
|
|
127
|
-
handleOpenByKeyboardFocus(): void;
|
|
128
|
-
handleSearch(valueOrEvent?: InputEvent<HTMLInputElement> | string | void): void;
|
|
129
|
-
handleClearAll(event: any): void;
|
|
130
|
-
handleSummaryFocus(): void;
|
|
131
|
-
satisfyReact(event: any): void;
|
|
132
|
-
trackByOption0(_: number, option: any): string;
|
|
133
|
-
trackByOption1(index: number, option: any): string;
|
|
134
|
-
trackByOption2(_: number, option: any): string;
|
|
135
|
-
constructor(renderer: Renderer2);
|
|
136
|
-
/**
|
|
137
|
-
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
138
|
-
* @param element the ref for the component
|
|
139
|
-
* @param customElementSelector the custom element like `my-component`
|
|
140
|
-
*/
|
|
141
|
-
private enableAttributePassing;
|
|
142
|
-
writeValue(value: any): void;
|
|
143
|
-
propagateChange(_: any): void;
|
|
144
|
-
registerOnChange(onChange: any): void;
|
|
145
|
-
registerOnTouched(onTouched: any): void;
|
|
146
|
-
setDisabledState(disabled: boolean): void;
|
|
147
|
-
ngAfterViewInit(): void;
|
|
148
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DBCustomSelect, never>;
|
|
149
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DBCustomSelect, "db-custom-select", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "invalidMessage": { "alias": "invalidMessage"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; "showMessage": { "alias": "showMessage"; "required": false; "isSignal": true; }; "ariaDescribedBy": { "alias": "ariaDescribedBy"; "required": false; "isSignal": true; }; "showNoResults": { "alias": "showNoResults"; "required": false; "isSignal": true; }; "showLoading": { "alias": "showLoading"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "showSelectAll": { "alias": "showSelectAll"; "required": false; "isSignal": true; }; "showSearch": { "alias": "showSearch"; "required": false; "isSignal": true; }; "values": { "alias": "values"; "required": false; "isSignal": true; }; "validation": { "alias": "validation"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "searchValue": { "alias": "searchValue"; "required": false; "isSignal": true; }; "selectedLabels": { "alias": "selectedLabels"; "required": false; "isSignal": true; }; "transformSelectedLabels": { "alias": "transformSelectedLabels"; "required": false; "isSignal": true; }; "selectedType": { "alias": "selectedType"; "required": false; "isSignal": true; }; "amountText": { "alias": "amountText"; "required": false; "isSignal": true; }; "validMessage": { "alias": "validMessage"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "selectAllLabel": { "alias": "selectAllLabel"; "required": false; "isSignal": true; }; "removeTagsTexts": { "alias": "removeTagsTexts"; "required": false; "isSignal": true; }; "placement": { "alias": "placement"; "required": false; "isSignal": true; }; "searchFilter": { "alias": "searchFilter"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "formFieldWidth": { "alias": "formFieldWidth"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "showRequiredAsterisk": { "alias": "showRequiredAsterisk"; "required": false; "isSignal": true; }; "showLabel": { "alias": "showLabel"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; "dropdownWidth": { "alias": "dropdownWidth"; "required": false; "isSignal": true; }; "searchLabel": { "alias": "searchLabel"; "required": false; "isSignal": true; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; "isSignal": true; }; "ariaListLabel": { "alias": "ariaListLabel"; "required": false; "isSignal": true; }; "loadingText": { "alias": "loadingText"; "required": false; "isSignal": true; }; "noResultsText": { "alias": "noResultsText"; "required": false; "isSignal": true; }; "mobileCloseButtonText": { "alias": "mobileCloseButtonText"; "required": false; "isSignal": true; }; "showClearSelection": { "alias": "showClearSelection"; "required": false; "isSignal": true; }; "clearSelectionText": { "alias": "clearSelectionText"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "messageIcon": { "alias": "messageIcon"; "required": false; "isSignal": true; }; }, { "values": "valuesChange"; "disabled": "disabledChange"; "amountChange": "amountChange"; "dropdownToggle": "dropdownToggle"; "optionSelected": "optionSelected"; "search": "search"; }, never, ["*"], true, never>;
|
|
150
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { DBCustomSelect } from './custom-select';
|
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
import { BaseFormProps, ClickEvent, CloseEventState, CustomFormProps, DocumentScrollState, FormMessageProps, FormState, FromValidState, GeneralEvent, GlobalProps, GlobalState, IconProps, InputEvent, InteractionEvent, PlacementVerticalType, RequiredProps, ShowIconProps, ShowLabelProps, ValidationType, WidthType } from '../../shared/model';
|
|
2
|
-
import { CustomSelectDropdownWidthType } from '../custom-select-dropdown/model';
|
|
3
|
-
import { DBCustomSelectFormFieldDefaultProps } from '../custom-select-form-field/model';
|
|
4
|
-
import { DBCustomSelectListItemExtraProps } from '../custom-select-list-item/model';
|
|
5
|
-
export type CustomSelectOptionType = {
|
|
6
|
-
/**
|
|
7
|
-
* Disables this option
|
|
8
|
-
*/
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
/**
|
|
11
|
-
* Identifier for option
|
|
12
|
-
*/
|
|
13
|
-
id?: string;
|
|
14
|
-
/**
|
|
15
|
-
* If the value is different from the label you want to show to the user.
|
|
16
|
-
*/
|
|
17
|
-
label?: string;
|
|
18
|
-
/**
|
|
19
|
-
* The value for the option
|
|
20
|
-
*/
|
|
21
|
-
value?: string;
|
|
22
|
-
} & DBCustomSelectListItemExtraProps;
|
|
23
|
-
export declare const SelectedTypeList: readonly ["amount", "text", "tag"];
|
|
24
|
-
export type SelectedTypeType = (typeof SelectedTypeList)[number];
|
|
25
|
-
export type DBCustomSelectEvents = {
|
|
26
|
-
/**
|
|
27
|
-
* Optional: if select-type="amount" when amount changes
|
|
28
|
-
* @param amount The amount of selected checkboxes
|
|
29
|
-
*/
|
|
30
|
-
onAmountChange?: (amount: number) => void;
|
|
31
|
-
/**
|
|
32
|
-
* Optional: if select-type="amount" when amount changes
|
|
33
|
-
* @param amount The amount of selected checkboxes
|
|
34
|
-
*/
|
|
35
|
-
amountChange?: (amount: number) => void;
|
|
36
|
-
/**
|
|
37
|
-
* Triggers after some option was clicked in dropdown
|
|
38
|
-
* @param values the changed values
|
|
39
|
-
*/
|
|
40
|
-
onOptionSelected?: (values: string[]) => void;
|
|
41
|
-
/**
|
|
42
|
-
* Triggers after some option was clicked in dropdown
|
|
43
|
-
* @param values the changed values
|
|
44
|
-
*/
|
|
45
|
-
optionSelected?: (values: string[]) => void;
|
|
46
|
-
/**
|
|
47
|
-
* Informs the user when dropdown was toggled.
|
|
48
|
-
*/
|
|
49
|
-
onDropdownToggle?: (event: GeneralEvent<HTMLDetailsElement>) => void;
|
|
50
|
-
/**
|
|
51
|
-
* Informs the user when dropdown was toggled.
|
|
52
|
-
*/
|
|
53
|
-
dropdownToggle?: (event: GeneralEvent<HTMLDetailsElement>) => void;
|
|
54
|
-
/**
|
|
55
|
-
* Informs the user when a search was performed.
|
|
56
|
-
*/
|
|
57
|
-
onSearch?: (event: InputEvent<HTMLInputElement>) => void;
|
|
58
|
-
/**
|
|
59
|
-
* Informs the user when a search was performed.
|
|
60
|
-
*/
|
|
61
|
-
search?: (event: InputEvent<HTMLInputElement>) => void;
|
|
62
|
-
};
|
|
63
|
-
export type DBCustomSelectDefaultProps = {
|
|
64
|
-
/**
|
|
65
|
-
* Optional: if select-type="amount" change the shown text
|
|
66
|
-
*/
|
|
67
|
-
amountText?: string;
|
|
68
|
-
/**
|
|
69
|
-
* Overwrite the default aria-label (props.label) for the custom-select-list
|
|
70
|
-
*/
|
|
71
|
-
ariaListLabel?: string;
|
|
72
|
-
/**
|
|
73
|
-
* Label for the clear selection button
|
|
74
|
-
*/
|
|
75
|
-
clearSelectionText?: string;
|
|
76
|
-
/**
|
|
77
|
-
* Changes the behavior of the dropdown with.
|
|
78
|
-
* Default: fixed 328px
|
|
79
|
-
* Auto: Based on the size of the form-field
|
|
80
|
-
*/
|
|
81
|
-
dropdownWidth?: CustomSelectDropdownWidthType | string;
|
|
82
|
-
/**
|
|
83
|
-
* Width of the component. Auto width based on children size, full width based on parent elements width.
|
|
84
|
-
*/
|
|
85
|
-
formFieldWidth?: WidthType | string;
|
|
86
|
-
/**
|
|
87
|
-
* Dropdown - hint if data has to be loaded
|
|
88
|
-
*/
|
|
89
|
-
loadingText?: string;
|
|
90
|
-
/**
|
|
91
|
-
* Change the button text for mobile close
|
|
92
|
-
*/
|
|
93
|
-
mobileCloseButtonText?: string;
|
|
94
|
-
/**
|
|
95
|
-
* Enables CustomSelect
|
|
96
|
-
*/
|
|
97
|
-
multiple?: boolean | string;
|
|
98
|
-
/**
|
|
99
|
-
* Dropdown - hint if there are no options
|
|
100
|
-
*/
|
|
101
|
-
noResultsText?: string;
|
|
102
|
-
/**
|
|
103
|
-
* Programmatically open the dropdown. May differ if you don't use onDropdownToggle.
|
|
104
|
-
*/
|
|
105
|
-
open?: boolean;
|
|
106
|
-
/**
|
|
107
|
-
* You should pass in the options as an array.
|
|
108
|
-
*/
|
|
109
|
-
options?: CustomSelectOptionType[];
|
|
110
|
-
/**
|
|
111
|
-
* The `placement` attributes values change the position to absolute and adds a transform based on the placement.
|
|
112
|
-
*/
|
|
113
|
-
placement?: PlacementVerticalType;
|
|
114
|
-
/**
|
|
115
|
-
* Optional: if you use selectedType=tag and options, you need to set the removeTagsTexts for screen reader users
|
|
116
|
-
*/
|
|
117
|
-
removeTagsTexts?: string[];
|
|
118
|
-
/**
|
|
119
|
-
* Optional: Change the filter function for the search input
|
|
120
|
-
*/
|
|
121
|
-
searchFilter?: (option: CustomSelectOptionType, filterText: string) => boolean;
|
|
122
|
-
/**
|
|
123
|
-
* Search label
|
|
124
|
-
*/
|
|
125
|
-
searchLabel?: string;
|
|
126
|
-
/**
|
|
127
|
-
* Search placeholder
|
|
128
|
-
*/
|
|
129
|
-
searchPlaceholder?: string;
|
|
130
|
-
/**
|
|
131
|
-
* Optional: Prefill the value of the search input
|
|
132
|
-
*/
|
|
133
|
-
searchValue?: string;
|
|
134
|
-
/**
|
|
135
|
-
* Select all checkbox label
|
|
136
|
-
*/
|
|
137
|
-
selectAllLabel?: string;
|
|
138
|
-
/**
|
|
139
|
-
* Optional: If you want to show a custom label for the selected values.
|
|
140
|
-
* You need to define the empty state as well based on selected options.
|
|
141
|
-
*/
|
|
142
|
-
selectedLabels?: string;
|
|
143
|
-
/**
|
|
144
|
-
* Change the selected type for values shown in multi select
|
|
145
|
-
*/
|
|
146
|
-
selectedType?: SelectedTypeType;
|
|
147
|
-
/**
|
|
148
|
-
* Show clear selection button (default:true). Hide it if you have very small inputs e.g. in tables.
|
|
149
|
-
*/
|
|
150
|
-
showClearSelection?: boolean;
|
|
151
|
-
/**
|
|
152
|
-
* Dropdown - enable loading infotext and spinner
|
|
153
|
-
*/
|
|
154
|
-
showLoading?: boolean;
|
|
155
|
-
/**
|
|
156
|
-
* Dropdown - enable no options infotext
|
|
157
|
-
*/
|
|
158
|
-
showNoResults?: boolean;
|
|
159
|
-
/**
|
|
160
|
-
* Forces search in header.
|
|
161
|
-
*/
|
|
162
|
-
showSearch?: boolean;
|
|
163
|
-
/**
|
|
164
|
-
* Forces select all checkbox (only for multiple).
|
|
165
|
-
*/
|
|
166
|
-
showSelectAll?: boolean;
|
|
167
|
-
/**
|
|
168
|
-
* Optional: If you want to show a custom label based on the selected options.
|
|
169
|
-
*/
|
|
170
|
-
transformSelectedLabels?: (selectedOptions?: CustomSelectOptionType[]) => string;
|
|
171
|
-
/**
|
|
172
|
-
* Initial value for multi select
|
|
173
|
-
*/
|
|
174
|
-
values?: string[];
|
|
175
|
-
};
|
|
176
|
-
export type DBCustomSelectProps = GlobalProps & CustomFormProps & BaseFormProps & RequiredProps & FormMessageProps & DBCustomSelectDefaultProps & DBCustomSelectEvents & DBCustomSelectFormFieldDefaultProps & IconProps & ShowIconProps & ShowLabelProps;
|
|
177
|
-
export type DBCustomSelectDefaultState = {
|
|
178
|
-
_validity?: ValidationType;
|
|
179
|
-
_values?: string[];
|
|
180
|
-
_options?: CustomSelectOptionType[];
|
|
181
|
-
_selectedOptions?: CustomSelectOptionType[];
|
|
182
|
-
_hasNoOptions: boolean;
|
|
183
|
-
_selectId?: string;
|
|
184
|
-
_labelId?: string;
|
|
185
|
-
_summaryId?: string;
|
|
186
|
-
_placeholderId?: string;
|
|
187
|
-
_selectedLabels?: string;
|
|
188
|
-
_selectedLabelsId?: string;
|
|
189
|
-
_infoTextId?: string;
|
|
190
|
-
_internalChangeTimestamp: number;
|
|
191
|
-
_documentClickListenerCallbackId?: string;
|
|
192
|
-
_searchValue?: string;
|
|
193
|
-
_userInteraction?: boolean;
|
|
194
|
-
getNativeSelectValue: () => string;
|
|
195
|
-
getOptionLabel: (option: CustomSelectOptionType) => string;
|
|
196
|
-
getOptionChecked: (value?: string) => boolean;
|
|
197
|
-
getTagRemoveLabel: (index: number) => string;
|
|
198
|
-
selectAllEnabled: boolean;
|
|
199
|
-
searchEnabled: boolean;
|
|
200
|
-
amountOptions: number;
|
|
201
|
-
setDescById: (descId?: string) => void;
|
|
202
|
-
handleTagRemove: (option: CustomSelectOptionType, event?: ClickEvent<HTMLButtonElement> | void) => void;
|
|
203
|
-
handleSummaryFocus: () => void;
|
|
204
|
-
handleSelect: (value?: string) => void;
|
|
205
|
-
handleSelectAll: (event: any) => void;
|
|
206
|
-
handleClearAll: (event: any) => void;
|
|
207
|
-
handleDropdownToggle: (event: any) => void;
|
|
208
|
-
handleDocumentClose: (event: any) => void;
|
|
209
|
-
handleOpenByKeyboardFocus: () => void;
|
|
210
|
-
handleFocusFirstDropdownCheckbox: (activeElement?: Element) => void;
|
|
211
|
-
handleKeyboardPress: (event: any) => void;
|
|
212
|
-
handleArrowDownUp: (event: any) => void;
|
|
213
|
-
handleSearch: (event: any) => void;
|
|
214
|
-
handleOptionSelected: (_values: string[]) => void;
|
|
215
|
-
getSelectAllLabel: () => string;
|
|
216
|
-
selectAllChecked: boolean;
|
|
217
|
-
selectAllIndeterminate: boolean;
|
|
218
|
-
handleAutoPlacement: () => void;
|
|
219
|
-
};
|
|
220
|
-
export type DBCustomSelectState = DBCustomSelectDefaultState & GlobalState & FormState & FromValidState & CloseEventState<InteractionEvent<HTMLDetailsElement>> & DocumentScrollState;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ElementRef, AfterViewInit, InputSignal } from "@angular/core";
|
|
2
|
-
import { DBCustomSelectDropdownProps } from "./model";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class DBCustomSelectDropdown implements AfterViewInit {
|
|
5
|
-
protected readonly cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
6
|
-
id: InputSignal<DBCustomSelectDropdownProps["id"]>;
|
|
7
|
-
className: InputSignal<DBCustomSelectDropdownProps["className"]>;
|
|
8
|
-
width: InputSignal<DBCustomSelectDropdownProps["width"]>;
|
|
9
|
-
_ref: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
10
|
-
constructor();
|
|
11
|
-
/**
|
|
12
|
-
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
13
|
-
* @param element the ref for the component
|
|
14
|
-
* @param customElementSelector the custom element like `my-component`
|
|
15
|
-
*/
|
|
16
|
-
private enableAttributePassing;
|
|
17
|
-
ngAfterViewInit(): void;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DBCustomSelectDropdown, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DBCustomSelectDropdown, "db-custom-select-dropdown", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
20
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { DBCustomSelectDropdown } from './custom-select-dropdown';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { GlobalProps, GlobalState } from '../../shared/model';
|
|
2
|
-
export declare const CustomSelectDropdownWidthList: readonly ["fixed", "auto", "full"];
|
|
3
|
-
export type CustomSelectDropdownWidthType = (typeof CustomSelectDropdownWidthList)[number];
|
|
4
|
-
export type DBCustomSelectDropdownDefaultProps = {
|
|
5
|
-
/**
|
|
6
|
-
* Changes the behavior of the dropdown with.
|
|
7
|
-
* Default: fixed 328px
|
|
8
|
-
* Full: Based on the size of the form-field
|
|
9
|
-
* Auto: Based on the size of the largest list item
|
|
10
|
-
*/
|
|
11
|
-
width?: CustomSelectDropdownWidthType | string;
|
|
12
|
-
};
|
|
13
|
-
export type DBCustomSelectDropdownProps = DBCustomSelectDropdownDefaultProps & GlobalProps;
|
|
14
|
-
export type DBCustomSelectDropdownDefaultState = {};
|
|
15
|
-
export type DBCustomSelectDropdownState = DBCustomSelectDropdownDefaultState & GlobalState;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ElementRef, AfterViewInit, InputSignal } from "@angular/core";
|
|
2
|
-
import { DBCustomSelectFormFieldProps } from "./model";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class DBCustomSelectFormField implements AfterViewInit {
|
|
5
|
-
protected readonly cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
6
|
-
id: InputSignal<DBCustomSelectFormFieldProps["id"]>;
|
|
7
|
-
className: InputSignal<DBCustomSelectFormFieldProps["className"]>;
|
|
8
|
-
_ref: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
9
|
-
constructor();
|
|
10
|
-
/**
|
|
11
|
-
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
12
|
-
* @param element the ref for the component
|
|
13
|
-
* @param customElementSelector the custom element like `my-component`
|
|
14
|
-
*/
|
|
15
|
-
private enableAttributePassing;
|
|
16
|
-
ngAfterViewInit(): void;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DBCustomSelectFormField, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DBCustomSelectFormField, "db-custom-select-form-field", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
19
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { DBCustomSelectFormField } from './custom-select-form-field';
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { GlobalProps, GlobalState } from '../../shared/model';
|
|
2
|
-
export type DBCustomSelectFormFieldDefaultProps = {};
|
|
3
|
-
export type DBCustomSelectFormFieldProps = DBCustomSelectFormFieldDefaultProps & GlobalProps;
|
|
4
|
-
export type DBCustomSelectFormFieldDefaultState = {};
|
|
5
|
-
export type DBCustomSelectFormFieldState = DBCustomSelectFormFieldDefaultState & GlobalState;
|