@db-ux/ngx-core-components 3.0.2-copilot-66b0168 → 3.0.2-shell-ed0ed7c
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 +0 -11
- package/components/accordion/accordion.d.ts +30 -0
- package/components/accordion/index.d.ts +1 -0
- package/components/accordion/model.d.ts +41 -0
- package/components/accordion-item/accordion-item.d.ts +33 -0
- package/components/accordion-item/index.d.ts +1 -0
- package/components/accordion-item/model.d.ts +24 -0
- package/components/badge/badge.d.ts +27 -0
- package/components/badge/index.d.ts +1 -0
- package/components/badge/model.d.ts +16 -0
- package/components/button/button.d.ts +39 -0
- package/components/button/index.d.ts +1 -0
- package/components/button/model.d.ts +40 -0
- package/components/card/card.d.ts +25 -0
- package/components/card/index.d.ts +1 -0
- package/components/card/model.d.ts +18 -0
- package/components/checkbox/checkbox.d.ts +64 -0
- package/components/checkbox/index.d.ts +1 -0
- package/components/checkbox/model.d.ts +10 -0
- package/components/control-panel-brand/control-panel-brand.d.ts +24 -0
- package/components/control-panel-brand/index.d.ts +1 -0
- package/components/control-panel-brand/model.d.ts +5 -0
- package/components/control-panel-desktop/control-panel-desktop.d.ts +32 -0
- package/components/control-panel-desktop/index.d.ts +1 -0
- package/components/control-panel-desktop/model.d.ts +7 -0
- package/components/control-panel-flat-icon-navigation/control-panel-flat-icon-navigation.d.ts +22 -0
- package/components/control-panel-flat-icon-navigation/index.d.ts +1 -0
- package/components/control-panel-flat-icon-navigation/model.d.ts +7 -0
- package/components/control-panel-meta-navigation/control-panel-meta-navigation.d.ts +19 -0
- package/components/control-panel-meta-navigation/index.d.ts +1 -0
- package/components/control-panel-meta-navigation/model.d.ts +5 -0
- package/components/control-panel-mobile/control-panel-mobile.d.ts +29 -0
- package/components/control-panel-mobile/index.d.ts +1 -0
- package/components/control-panel-mobile/model.d.ts +30 -0
- package/components/control-panel-primary-actions/control-panel-primary-actions.d.ts +19 -0
- package/components/control-panel-primary-actions/index.d.ts +1 -0
- package/components/control-panel-primary-actions/model.d.ts +5 -0
- package/components/control-panel-secondary-actions/control-panel-secondary-actions.d.ts +19 -0
- package/components/control-panel-secondary-actions/index.d.ts +1 -0
- package/components/control-panel-secondary-actions/model.d.ts +5 -0
- package/components/custom-select/custom-select.d.ts +150 -0
- package/components/custom-select/index.d.ts +1 -0
- package/components/custom-select/model.d.ts +223 -0
- package/components/custom-select-dropdown/custom-select-dropdown.d.ts +20 -0
- package/components/custom-select-dropdown/index.d.ts +1 -0
- package/components/custom-select-dropdown/model.d.ts +15 -0
- package/components/custom-select-form-field/custom-select-form-field.d.ts +19 -0
- package/components/custom-select-form-field/index.d.ts +1 -0
- package/components/custom-select-form-field/model.d.ts +5 -0
- package/components/custom-select-list/custom-select-list.d.ts +21 -0
- package/components/custom-select-list/index.d.ts +1 -0
- package/components/custom-select-list/model.d.ts +8 -0
- package/components/custom-select-list-item/custom-select-list-item.d.ts +45 -0
- package/components/custom-select-list-item/index.d.ts +1 -0
- package/components/custom-select-list-item/model.d.ts +29 -0
- package/components/divider/divider.d.ts +23 -0
- package/components/divider/index.d.ts +1 -0
- package/components/divider/model.d.ts +18 -0
- package/components/drawer/drawer.d.ts +38 -0
- package/components/drawer/index.d.ts +1 -0
- package/components/drawer/model.d.ts +54 -0
- package/components/icon/icon.d.ts +23 -0
- package/components/icon/index.d.ts +1 -0
- package/components/icon/model.d.ts +10 -0
- package/components/infotext/index.d.ts +1 -0
- package/components/infotext/infotext.d.ts +25 -0
- package/components/infotext/model.d.ts +5 -0
- package/components/input/index.d.ts +1 -0
- package/components/input/input.d.ts +98 -0
- package/components/input/model.d.ts +43 -0
- package/components/link/index.d.ts +1 -0
- package/components/link/link.d.ts +32 -0
- package/components/link/model.d.ts +24 -0
- package/components/navigation/index.d.ts +1 -0
- package/components/navigation/model.d.ts +14 -0
- package/components/navigation/navigation.d.ts +35 -0
- package/components/navigation-item/index.d.ts +1 -0
- package/components/navigation-item/model.d.ts +19 -0
- package/components/navigation-item/navigation-item.d.ts +26 -0
- package/components/navigation-item-group/index.d.ts +1 -0
- package/components/navigation-item-group/model.d.ts +26 -0
- package/components/navigation-item-group/navigation-item-group.d.ts +49 -0
- package/components/notification/index.d.ts +1 -0
- package/components/notification/model.d.ts +57 -0
- package/components/notification/notification.d.ts +40 -0
- package/components/popover/index.d.ts +1 -0
- package/components/popover/model.d.ts +17 -0
- package/components/popover/popover.d.ts +37 -0
- package/components/radio/index.d.ts +1 -0
- package/components/radio/model.d.ts +5 -0
- package/components/radio/radio.d.ts +47 -0
- package/components/section/index.d.ts +1 -0
- package/components/section/model.d.ts +5 -0
- package/components/section/section.d.ts +22 -0
- package/components/select/index.d.ts +1 -0
- package/components/select/model.d.ts +44 -0
- package/components/select/select.d.ts +83 -0
- package/components/shell/index.d.ts +1 -0
- package/components/shell/model.d.ts +50 -0
- package/components/shell/shell.d.ts +28 -0
- package/components/shell-sub-navigation/index.d.ts +1 -0
- package/components/shell-sub-navigation/model.d.ts +5 -0
- package/components/shell-sub-navigation/shell-sub-navigation.d.ts +27 -0
- package/components/stack/index.d.ts +1 -0
- package/components/stack/model.d.ts +34 -0
- package/components/stack/stack.d.ts +26 -0
- package/components/switch/index.d.ts +1 -0
- package/components/switch/model.d.ts +10 -0
- package/components/switch/switch.d.ts +52 -0
- package/components/tab-item/index.d.ts +1 -0
- package/components/tab-item/model.d.ts +24 -0
- package/components/tab-item/tab-item.d.ts +46 -0
- package/components/tab-list/index.d.ts +1 -0
- package/components/tab-list/model.d.ts +5 -0
- package/components/tab-list/tab-list.d.ts +20 -0
- package/components/tab-panel/index.d.ts +1 -0
- package/components/tab-panel/model.d.ts +10 -0
- package/components/tab-panel/tab-panel.d.ts +20 -0
- package/components/tabs/index.d.ts +1 -0
- package/components/tabs/model.d.ts +58 -0
- package/components/tabs/tabs.d.ts +45 -0
- package/components/tag/index.d.ts +1 -0
- package/components/tag/model.d.ts +47 -0
- package/components/tag/tag.d.ts +34 -0
- package/components/textarea/index.d.ts +1 -0
- package/components/textarea/model.d.ts +34 -0
- package/components/textarea/textarea.d.ts +84 -0
- package/components/tooltip/index.d.ts +1 -0
- package/components/tooltip/model.d.ts +20 -0
- package/components/tooltip/tooltip.d.ts +39 -0
- package/fesm2022/db-ux-ngx-core-components.mjs +8583 -0
- package/fesm2022/db-ux-ngx-core-components.mjs.map +1 -0
- package/index.d.ts +92 -0
- package/package.json +3 -7
- package/shared/constants.d.ts +91 -0
- package/shared/model.d.ts +601 -0
- package/utils/document-click-listener.d.ts +8 -0
- package/utils/document-scroll-listener.d.ts +9 -0
- package/utils/floating-components.d.ts +36 -0
- package/utils/form-components.d.ts +2 -0
- package/utils/index.d.ts +40 -0
- package/utils/navigation.d.ts +28 -0
- package/agent/Accordion.md +0 -52
- package/agent/AccordionItem.md +0 -45
- package/agent/Badge.md +0 -48
- package/agent/Brand.md +0 -29
- package/agent/Button.md +0 -59
- package/agent/Card.md +0 -39
- package/agent/Checkbox.md +0 -52
- package/agent/CustomSelect.md +0 -89
- package/agent/Divider.md +0 -37
- package/agent/Drawer.md +0 -90
- package/agent/Header.md +0 -45
- package/agent/Icon.md +0 -36
- package/agent/Infotext.md +0 -41
- package/agent/Input.md +0 -58
- package/agent/Link.md +0 -60
- package/agent/Navigation.md +0 -34
- package/agent/NavigationItem.md +0 -45
- package/agent/Notification.md +0 -52
- package/agent/Page.md +0 -45
- package/agent/Popover.md +0 -69
- package/agent/Radio.md +0 -39
- package/agent/Section.md +0 -39
- package/agent/Select.md +0 -80
- package/agent/Stack.md +0 -51
- package/agent/Switch.md +0 -55
- package/agent/TabItem.md +0 -41
- package/agent/Tabs.md +0 -80
- package/agent/Tag.md +0 -48
- package/agent/Textarea.md +0 -57
- package/agent/Tooltip.md +0 -64
- package/agent/_instructions.md +0 -31
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DBCustomSelectListItem } from './custom-select-list-item';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BaseFormProps, ChangeEventProps, ChangeEventState, FormCheckProps, GlobalProps, GlobalState, IconProps, ShowIconProps, ValueProps } from '../../shared/model';
|
|
2
|
+
export declare const CustomSelectListItemTypeList: readonly ["checkbox", "radio"];
|
|
3
|
+
export type CustomSelectListItemTypeType = (typeof CustomSelectListItemTypeList)[number];
|
|
4
|
+
export type DBCustomSelectListItemExtraProps = {
|
|
5
|
+
/**
|
|
6
|
+
* If the item is a group title (only text)
|
|
7
|
+
*/
|
|
8
|
+
isGroupTitle?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Show a divider on the bottom of the list item for visual grouping (don't use it on every item)
|
|
11
|
+
*/
|
|
12
|
+
showDivider?: boolean;
|
|
13
|
+
} & IconProps & ShowIconProps;
|
|
14
|
+
export type DBCustomSelectListItemDefaultProps = {
|
|
15
|
+
/**
|
|
16
|
+
* Set the title of a group of items - disables radio/checkbox behavior
|
|
17
|
+
*/
|
|
18
|
+
groupTitle?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Change the behavior of the item single(radio) or multiple(checkbox)
|
|
21
|
+
*/
|
|
22
|
+
type?: CustomSelectListItemTypeType;
|
|
23
|
+
};
|
|
24
|
+
export type DBCustomSelectListItemProps = DBCustomSelectListItemDefaultProps & GlobalProps & BaseFormProps & ValueProps & FormCheckProps & ChangeEventProps<HTMLInputElement> & DBCustomSelectListItemExtraProps;
|
|
25
|
+
export type DBCustomSelectListItemDefaultState = {
|
|
26
|
+
getIconTrailing: () => string | undefined;
|
|
27
|
+
hasDivider?: boolean;
|
|
28
|
+
};
|
|
29
|
+
export type DBCustomSelectListItemState = DBCustomSelectListItemDefaultState & ChangeEventState<HTMLInputElement> & GlobalState;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ElementRef, AfterViewInit, InputSignal } from "@angular/core";
|
|
2
|
+
import { DBDividerProps } from "./model";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DBDivider implements AfterViewInit {
|
|
5
|
+
protected readonly cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
6
|
+
id: InputSignal<DBDividerProps["id"]>;
|
|
7
|
+
margin: InputSignal<DBDividerProps["margin"]>;
|
|
8
|
+
variant: InputSignal<DBDividerProps["variant"]>;
|
|
9
|
+
emphasis: InputSignal<DBDividerProps["emphasis"]>;
|
|
10
|
+
width: InputSignal<DBDividerProps["width"]>;
|
|
11
|
+
className: InputSignal<DBDividerProps["className"]>;
|
|
12
|
+
_ref: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
13
|
+
constructor();
|
|
14
|
+
/**
|
|
15
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
16
|
+
* @param element the ref for the component
|
|
17
|
+
* @param customElementSelector the custom element like `my-component`
|
|
18
|
+
*/
|
|
19
|
+
private enableAttributePassing;
|
|
20
|
+
ngAfterViewInit(): void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DBDivider, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DBDivider, "db-divider", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "margin": { "alias": "margin"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "emphasis": { "alias": "emphasis"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DBDivider } from './divider';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { EmphasisProps, GlobalProps, GlobalState, MarginProps, WidthProps } from '../../shared/model';
|
|
2
|
+
export declare const DividerMarginList: readonly ["none", "_"];
|
|
3
|
+
export type DividerMarginType = (typeof DividerMarginList)[number];
|
|
4
|
+
export declare const DividerVariantList: readonly ["horizontal", "vertical"];
|
|
5
|
+
export type DividerVariantType = (typeof DividerVariantList)[number];
|
|
6
|
+
export type DBDividerDefaultProps = {
|
|
7
|
+
/**
|
|
8
|
+
* Removes the margin of the divider.
|
|
9
|
+
*/
|
|
10
|
+
margin?: DividerMarginType;
|
|
11
|
+
/**
|
|
12
|
+
* Changes the orientation of the divider.
|
|
13
|
+
*/
|
|
14
|
+
variant?: DividerVariantType;
|
|
15
|
+
};
|
|
16
|
+
export type DBDividerProps = DBDividerDefaultProps & GlobalProps & EmphasisProps & MarginProps & WidthProps;
|
|
17
|
+
export type DBDividerDefaultState = {};
|
|
18
|
+
export type DBDividerState = DBDividerDefaultState & GlobalState;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ElementRef, AfterViewInit, InputSignal } from "@angular/core";
|
|
2
|
+
import { ClickEvent, GeneralKeyboardEvent } from "../../shared/model";
|
|
3
|
+
import { DBDrawerProps } from "./model";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class DBDrawer implements AfterViewInit {
|
|
6
|
+
protected readonly cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
7
|
+
protected readonly getBooleanAsString: (originBool?: boolean | string) => any;
|
|
8
|
+
protected readonly DEFAULT_CLOSE_BUTTON: string;
|
|
9
|
+
open: InputSignal<DBDrawerProps["open"]>;
|
|
10
|
+
position: InputSignal<DBDrawerProps["position"]>;
|
|
11
|
+
backdrop: InputSignal<DBDrawerProps["backdrop"]>;
|
|
12
|
+
variant: InputSignal<DBDrawerProps["variant"]>;
|
|
13
|
+
id: InputSignal<DBDrawerProps["id"]>;
|
|
14
|
+
direction: InputSignal<DBDrawerProps["direction"]>;
|
|
15
|
+
className: InputSignal<DBDrawerProps["className"]>;
|
|
16
|
+
spacing: InputSignal<DBDrawerProps["spacing"]>;
|
|
17
|
+
width: InputSignal<DBDrawerProps["width"]>;
|
|
18
|
+
rounded: InputSignal<DBDrawerProps["rounded"]>;
|
|
19
|
+
drawerHeaderPlain: InputSignal<DBDrawerProps["drawerHeaderPlain"]>;
|
|
20
|
+
closeButtonId: InputSignal<DBDrawerProps["closeButtonId"]>;
|
|
21
|
+
closeButtonText: InputSignal<DBDrawerProps["closeButtonText"]>;
|
|
22
|
+
close: import("@angular/core").OutputEmitterRef<void | KeyboardEvent | MouseEvent | undefined>;
|
|
23
|
+
_ref: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
24
|
+
dialogContainerRef: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
25
|
+
initialized: import("@angular/core").WritableSignal<boolean>;
|
|
26
|
+
handleClose(event?: ClickEvent<HTMLButtonElement | HTMLDialogElement> | GeneralKeyboardEvent<HTMLDialogElement> | void, forceClose?: boolean): void;
|
|
27
|
+
handleDialogOpen(): void;
|
|
28
|
+
constructor();
|
|
29
|
+
/**
|
|
30
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
31
|
+
* @param element the ref for the component
|
|
32
|
+
* @param customElementSelector the custom element like `my-component`
|
|
33
|
+
*/
|
|
34
|
+
private enableAttributePassing;
|
|
35
|
+
ngAfterViewInit(): void;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DBDrawer, never>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DBDrawer, "db-drawer", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "backdrop": { "alias": "backdrop"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "direction": { "alias": "direction"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "spacing": { "alias": "spacing"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "drawerHeaderPlain": { "alias": "drawerHeaderPlain"; "required": false; "isSignal": true; }; "closeButtonId": { "alias": "closeButtonId"; "required": false; "isSignal": true; }; "closeButtonText": { "alias": "closeButtonText"; "required": false; "isSignal": true; }; }, { "close": "close"; }, never, ["[drawer-header]", "*"], true, never>;
|
|
38
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DBDrawer } from './drawer';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { ClickEvent, CloseEventProps, CloseEventState, GeneralKeyboardEvent, GlobalProps, GlobalState, InitializedState, InnerCloseButtonProps, SpacingProps, WidthProps } from '../../shared/model';
|
|
2
|
+
export declare const DrawerBackdropList: readonly ["none", "strong", "weak", "invisible"];
|
|
3
|
+
export type DrawerBackdropType = (typeof DrawerBackdropList)[number];
|
|
4
|
+
export declare const DrawerDirectionList: readonly ["custom", "left", "right", "up", "down"];
|
|
5
|
+
export type DrawerDirectionType = (typeof DrawerDirectionList)[number];
|
|
6
|
+
export declare const DrawerVariantList: readonly ["modal", "inside"];
|
|
7
|
+
export type DrawerVariantType = (typeof DrawerVariantList)[number];
|
|
8
|
+
export declare const DrawerPositionList: readonly ["fixed", "absolute"];
|
|
9
|
+
export type DrawerPositionType = (typeof DrawerPositionList)[number];
|
|
10
|
+
export type DBDrawerDefaultProps = {
|
|
11
|
+
/**
|
|
12
|
+
* The backdrop attribute changes the opacity of the backdrop.
|
|
13
|
+
* The backdrop 'none' will use `dialog.show()` instead of `dialog.showModal()`
|
|
14
|
+
*/
|
|
15
|
+
backdrop?: DrawerBackdropType;
|
|
16
|
+
/**
|
|
17
|
+
* The direction attribute changes the position & animation of the drawer.
|
|
18
|
+
* E.g. "left" slides from left screen border to the right.
|
|
19
|
+
*/
|
|
20
|
+
direction?: DrawerDirectionType;
|
|
21
|
+
/**
|
|
22
|
+
* Slot for changing the header of the drawer.
|
|
23
|
+
*/
|
|
24
|
+
drawerHeader?: any;
|
|
25
|
+
/**
|
|
26
|
+
* Text for changing the header of the drawer.
|
|
27
|
+
*/
|
|
28
|
+
drawerHeaderPlain?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The open attribute opens or closes the drawer based on the state.
|
|
31
|
+
*/
|
|
32
|
+
open?: boolean | string;
|
|
33
|
+
/**
|
|
34
|
+
* The rounded attribute changes the border radius of the corners on the "end" of the drawer.
|
|
35
|
+
* The "end" depends on which direction you use.
|
|
36
|
+
*/
|
|
37
|
+
rounded?: boolean | string;
|
|
38
|
+
/**
|
|
39
|
+
* Set the variant modal|inside. Defaults to modal.
|
|
40
|
+
*/
|
|
41
|
+
variant?: DrawerVariantType;
|
|
42
|
+
/**
|
|
43
|
+
* The position attribute changes the css-position (fixed or absolute) of the drawer.
|
|
44
|
+
*
|
|
45
|
+
* - `fixed` (default): Renders with `showModal()`, creating a true modal with a focus trap.
|
|
46
|
+
* - `absolute`: Renders with `show()`, acting as a simple overlay **without** a focus trap.
|
|
47
|
+
*/
|
|
48
|
+
position?: DrawerPositionType;
|
|
49
|
+
};
|
|
50
|
+
export type DBDrawerProps = DBDrawerDefaultProps & GlobalProps & CloseEventProps<ClickEvent<HTMLButtonElement | HTMLDialogElement> | GeneralKeyboardEvent<HTMLDialogElement>> & InnerCloseButtonProps & WidthProps & SpacingProps;
|
|
51
|
+
export type DBDrawerDefaultState = {
|
|
52
|
+
handleDialogOpen: () => void;
|
|
53
|
+
};
|
|
54
|
+
export type DBDrawerState = DBDrawerDefaultState & GlobalState & CloseEventState<ClickEvent<HTMLButtonElement | HTMLDialogElement> | GeneralKeyboardEvent<HTMLDialogElement>> & InitializedState;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ElementRef, AfterViewInit, InputSignal } from "@angular/core";
|
|
2
|
+
import type { DBIconProps } from "./model";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DBIcon implements AfterViewInit {
|
|
5
|
+
protected readonly cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
6
|
+
id: InputSignal<DBIconProps["id"]>;
|
|
7
|
+
className: InputSignal<DBIconProps["className"]>;
|
|
8
|
+
icon: InputSignal<DBIconProps["icon"]>;
|
|
9
|
+
weight: InputSignal<DBIconProps["weight"]>;
|
|
10
|
+
variant: InputSignal<DBIconProps["variant"]>;
|
|
11
|
+
text: InputSignal<DBIconProps["text"]>;
|
|
12
|
+
_ref: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
13
|
+
constructor();
|
|
14
|
+
/**
|
|
15
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
16
|
+
* @param element the ref for the component
|
|
17
|
+
* @param customElementSelector the custom element like `my-component`
|
|
18
|
+
*/
|
|
19
|
+
private enableAttributePassing;
|
|
20
|
+
ngAfterViewInit(): void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DBIcon, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DBIcon, "db-icon", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "weight": { "alias": "weight"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DBIcon } from './icon';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GlobalProps, GlobalState, IconProps, TextProps } from '../../shared/model';
|
|
2
|
+
export declare const IconWeightList: readonly ["16", "20", "24", "32", "48", "64"];
|
|
3
|
+
export type IconWeightType = (typeof IconWeightList)[number];
|
|
4
|
+
export type DBIconDefaultProps = {
|
|
5
|
+
variant?: string;
|
|
6
|
+
weight?: IconWeightType;
|
|
7
|
+
};
|
|
8
|
+
export type DBIconProps = DBIconDefaultProps & GlobalProps & IconProps & TextProps;
|
|
9
|
+
export type DBIconDefaultState = {};
|
|
10
|
+
export type DBIconState = DBIconDefaultState & GlobalState;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DBInfotext } from './infotext';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ElementRef, AfterViewInit, InputSignal } from "@angular/core";
|
|
2
|
+
import { DBInfotextProps } from "./model";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DBInfotext implements AfterViewInit {
|
|
5
|
+
protected readonly cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
6
|
+
protected readonly getBooleanAsString: (originBool?: boolean | string) => any;
|
|
7
|
+
id: InputSignal<DBInfotextProps["id"]>;
|
|
8
|
+
className: InputSignal<DBInfotextProps["className"]>;
|
|
9
|
+
icon: InputSignal<DBInfotextProps["icon"]>;
|
|
10
|
+
semantic: InputSignal<DBInfotextProps["semantic"]>;
|
|
11
|
+
size: InputSignal<DBInfotextProps["size"]>;
|
|
12
|
+
showIcon: InputSignal<DBInfotextProps["showIcon"]>;
|
|
13
|
+
text: InputSignal<DBInfotextProps["text"]>;
|
|
14
|
+
_ref: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
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<DBInfotext, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DBInfotext, "db-infotext", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "semantic": { "alias": "semantic"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { GlobalProps, GlobalState, IconProps, SemanticProps, ShowIconProps, SizeProps, TextProps } from '../../shared/model';
|
|
2
|
+
export type DBInfotextDefaultProps = {};
|
|
3
|
+
export type DBInfotextProps = DBInfotextDefaultProps & GlobalProps & SemanticProps & IconProps & SizeProps & ShowIconProps & TextProps;
|
|
4
|
+
export type DBInfotextDefaultState = {};
|
|
5
|
+
export type DBInfotextState = DBInfotextDefaultState & GlobalState;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DBInput } from './input';
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { ElementRef, AfterViewInit, InputSignal, ModelSignal, Renderer2 } from "@angular/core";
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { ChangeEvent, InputEvent, InteractionEvent, ValueLabelType } from "../../shared/model";
|
|
4
|
+
import { DBInputProps } from "./model";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class DBInput 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 getBooleanAsString: (originBool?: boolean | string) => any;
|
|
11
|
+
protected readonly DEFAULT_LABEL: string;
|
|
12
|
+
protected readonly getBoolean: (originBool?: boolean | string, propertyName?: string) => boolean | undefined;
|
|
13
|
+
protected readonly DEFAULT_PLACEHOLDER: string;
|
|
14
|
+
protected readonly getNumber: (originNumber?: number | string, alternativeNumber?: number | string) => number | undefined;
|
|
15
|
+
protected readonly getInputValue: (value?: number | string, inputType?: string) => string | number | undefined;
|
|
16
|
+
protected readonly stringPropVisible: (givenString?: string, showString?: boolean | string) => boolean;
|
|
17
|
+
protected readonly DEFAULT_VALID_MESSAGE: string;
|
|
18
|
+
id: InputSignal<DBInputProps["id"]>;
|
|
19
|
+
invalidMessage: InputSignal<DBInputProps["invalidMessage"]>;
|
|
20
|
+
dataListId: InputSignal<DBInputProps["dataListId"]>;
|
|
21
|
+
message: InputSignal<DBInputProps["message"]>;
|
|
22
|
+
showMessage: InputSignal<DBInputProps["showMessage"]>;
|
|
23
|
+
value: ModelSignal<DBInputProps["value"]>;
|
|
24
|
+
validMessage: InputSignal<DBInputProps["validMessage"]>;
|
|
25
|
+
validation: InputSignal<DBInputProps["validation"]>;
|
|
26
|
+
required: InputSignal<DBInputProps["required"]>;
|
|
27
|
+
minLength: InputSignal<DBInputProps["minLength"]>;
|
|
28
|
+
maxLength: InputSignal<DBInputProps["maxLength"]>;
|
|
29
|
+
pattern: InputSignal<DBInputProps["pattern"]>;
|
|
30
|
+
dataList: InputSignal<DBInputProps["dataList"]>;
|
|
31
|
+
className: InputSignal<DBInputProps["className"]>;
|
|
32
|
+
variant: InputSignal<DBInputProps["variant"]>;
|
|
33
|
+
showLabel: InputSignal<DBInputProps["showLabel"]>;
|
|
34
|
+
showIconLeading: InputSignal<DBInputProps["showIconLeading"]>;
|
|
35
|
+
showIcon: InputSignal<DBInputProps["showIcon"]>;
|
|
36
|
+
iconLeading: InputSignal<DBInputProps["iconLeading"]>;
|
|
37
|
+
icon: InputSignal<DBInputProps["icon"]>;
|
|
38
|
+
iconTrailing: InputSignal<DBInputProps["iconTrailing"]>;
|
|
39
|
+
showRequiredAsterisk: InputSignal<DBInputProps["showRequiredAsterisk"]>;
|
|
40
|
+
showIconTrailing: InputSignal<DBInputProps["showIconTrailing"]>;
|
|
41
|
+
label: InputSignal<DBInputProps["label"]>;
|
|
42
|
+
fieldSizing: InputSignal<DBInputProps["fieldSizing"]>;
|
|
43
|
+
name: InputSignal<DBInputProps["name"]>;
|
|
44
|
+
type: InputSignal<DBInputProps["type"]>;
|
|
45
|
+
multiple: InputSignal<DBInputProps["multiple"]>;
|
|
46
|
+
placeholder: InputSignal<DBInputProps["placeholder"]>;
|
|
47
|
+
disabled: ModelSignal<DBInputProps["disabled"]>;
|
|
48
|
+
step: InputSignal<DBInputProps["step"]>;
|
|
49
|
+
maxlength: InputSignal<DBInputProps["maxlength"]>;
|
|
50
|
+
minlength: InputSignal<DBInputProps["minlength"]>;
|
|
51
|
+
max: InputSignal<DBInputProps["max"]>;
|
|
52
|
+
min: InputSignal<DBInputProps["min"]>;
|
|
53
|
+
readOnly: InputSignal<DBInputProps["readOnly"]>;
|
|
54
|
+
readonly: InputSignal<DBInputProps["readonly"]>;
|
|
55
|
+
form: InputSignal<DBInputProps["form"]>;
|
|
56
|
+
size: InputSignal<DBInputProps["size"]>;
|
|
57
|
+
autocomplete: InputSignal<DBInputProps["autocomplete"]>;
|
|
58
|
+
autofocus: InputSignal<DBInputProps["autofocus"]>;
|
|
59
|
+
ariaDescribedBy: InputSignal<DBInputProps["ariaDescribedBy"]>;
|
|
60
|
+
messageIcon: InputSignal<DBInputProps["messageIcon"]>;
|
|
61
|
+
input: import("@angular/core").OutputEmitterRef<void | Event>;
|
|
62
|
+
change: import("@angular/core").OutputEmitterRef<void | Event>;
|
|
63
|
+
blur: import("@angular/core").OutputEmitterRef<void | FocusEvent>;
|
|
64
|
+
focus: import("@angular/core").OutputEmitterRef<void | FocusEvent>;
|
|
65
|
+
_ref: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
66
|
+
_id: import("@angular/core").WritableSignal<string | undefined>;
|
|
67
|
+
_messageId: import("@angular/core").WritableSignal<string | undefined>;
|
|
68
|
+
_validMessageId: import("@angular/core").WritableSignal<string | undefined>;
|
|
69
|
+
_invalidMessageId: import("@angular/core").WritableSignal<string | undefined>;
|
|
70
|
+
_invalidMessage: import("@angular/core").WritableSignal<string | undefined>;
|
|
71
|
+
_dataListId: import("@angular/core").WritableSignal<string | undefined>;
|
|
72
|
+
_descByIds: import("@angular/core").WritableSignal<string | undefined>;
|
|
73
|
+
_value: import("@angular/core").WritableSignal<string | undefined>;
|
|
74
|
+
_voiceOverFallback: import("@angular/core").WritableSignal<string | undefined>;
|
|
75
|
+
hasValidState(): boolean;
|
|
76
|
+
handleValidation(): void;
|
|
77
|
+
handleInput(event: InputEvent<HTMLInputElement>): void;
|
|
78
|
+
handleChange(event: ChangeEvent<HTMLInputElement>): void;
|
|
79
|
+
handleBlur(event: InteractionEvent<HTMLInputElement> | any): void;
|
|
80
|
+
handleFocus(event: InteractionEvent<HTMLInputElement> | any): void;
|
|
81
|
+
getDataList(): ValueLabelType[];
|
|
82
|
+
trackByOption0(_: number, option: any): string;
|
|
83
|
+
constructor(renderer: Renderer2);
|
|
84
|
+
/**
|
|
85
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
86
|
+
* @param element the ref for the component
|
|
87
|
+
* @param customElementSelector the custom element like `my-component`
|
|
88
|
+
*/
|
|
89
|
+
private enableAttributePassing;
|
|
90
|
+
writeValue(value: any): void;
|
|
91
|
+
propagateChange(_: any): void;
|
|
92
|
+
registerOnChange(onChange: any): void;
|
|
93
|
+
registerOnTouched(onTouched: any): void;
|
|
94
|
+
setDisabledState(disabled: boolean): void;
|
|
95
|
+
ngAfterViewInit(): void;
|
|
96
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DBInput, never>;
|
|
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>;
|
|
98
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
export declare const InputTypeList: readonly ["color", "date", "datetime-local", "email", "file", "hidden", "month", "number", "password", "range", "search", "tel", "text", "time", "url", "week"];
|
|
3
|
+
export type InputTypeType = (typeof InputTypeList)[number];
|
|
4
|
+
export type DBInputDefaultProps = {
|
|
5
|
+
/**
|
|
6
|
+
* Set a [data list](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/datalist) via attribute instead of children.
|
|
7
|
+
*/
|
|
8
|
+
dataList?: string[] | ValueLabelType[];
|
|
9
|
+
/**
|
|
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
|
+
*/
|
|
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;
|
|
17
|
+
/**
|
|
18
|
+
* Maximum value
|
|
19
|
+
*/
|
|
20
|
+
max?: number | string;
|
|
21
|
+
/**
|
|
22
|
+
* Minimum value
|
|
23
|
+
*/
|
|
24
|
+
min?: number | string;
|
|
25
|
+
/**
|
|
26
|
+
* Pattern the value must match to be valid
|
|
27
|
+
*/
|
|
28
|
+
pattern?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Type of form control
|
|
31
|
+
*/
|
|
32
|
+
type?: InputTypeType | string;
|
|
33
|
+
/**
|
|
34
|
+
* Sets [step value](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/step).
|
|
35
|
+
*/
|
|
36
|
+
step?: number | string;
|
|
37
|
+
};
|
|
38
|
+
export type DBInputProps = DBInputDefaultProps & GlobalProps & FormTextProps & InputEventProps<HTMLInputElement> & ChangeEventProps<HTMLInputElement> & FocusEventProps<HTMLInputElement> & FormProps & IconProps & IconTrailingProps & FormMessageProps & ShowIconProps & IconLeadingProps & ShowIconLeadingProps & ShowIconTrailingProps & FormSizeProps;
|
|
39
|
+
export type DBInputDefaultState = {
|
|
40
|
+
_dataListId?: string;
|
|
41
|
+
getDataList: () => ValueLabelType[];
|
|
42
|
+
};
|
|
43
|
+
export type DBInputState = DBInputDefaultState & GlobalState & InputEventState<HTMLInputElement> & ChangeEventState<HTMLInputElement> & FocusEventState<HTMLInputElement> & FormState & FromValidState;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DBLink } from './link';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ElementRef, AfterViewInit, InputSignal } from "@angular/core";
|
|
2
|
+
import { DBLinkProps } from "./model";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DBLink implements AfterViewInit {
|
|
5
|
+
protected readonly cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
6
|
+
protected readonly getBooleanAsString: (originBool?: boolean | string) => any;
|
|
7
|
+
id: InputSignal<DBLinkProps["id"]>;
|
|
8
|
+
className: InputSignal<DBLinkProps["className"]>;
|
|
9
|
+
href: InputSignal<DBLinkProps["href"]>;
|
|
10
|
+
target: InputSignal<DBLinkProps["target"]>;
|
|
11
|
+
rel: InputSignal<DBLinkProps["rel"]>;
|
|
12
|
+
role: InputSignal<DBLinkProps["role"]>;
|
|
13
|
+
hreflang: InputSignal<DBLinkProps["hreflang"]>;
|
|
14
|
+
disabled: InputSignal<DBLinkProps["disabled"]>;
|
|
15
|
+
size: InputSignal<DBLinkProps["size"]>;
|
|
16
|
+
showIcon: InputSignal<DBLinkProps["showIcon"]>;
|
|
17
|
+
variant: InputSignal<DBLinkProps["variant"]>;
|
|
18
|
+
content: InputSignal<DBLinkProps["content"]>;
|
|
19
|
+
wrap: InputSignal<DBLinkProps["wrap"]>;
|
|
20
|
+
text: InputSignal<DBLinkProps["text"]>;
|
|
21
|
+
_ref: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
22
|
+
constructor();
|
|
23
|
+
/**
|
|
24
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
25
|
+
* @param element the ref for the component
|
|
26
|
+
* @param customElementSelector the custom element like `my-component`
|
|
27
|
+
*/
|
|
28
|
+
private enableAttributePassing;
|
|
29
|
+
ngAfterViewInit(): void;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DBLink, never>;
|
|
31
|
+
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>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ClickEventProps, ClickEventState, GlobalProps, GlobalState, LinkProps, ShowIconProps, TextProps, WrapProps } from '../../shared/model';
|
|
2
|
+
export declare const LinkVariantList: readonly ["adaptive", "brand", "inline"];
|
|
3
|
+
export type LinkVariantType = (typeof LinkVariantList)[number];
|
|
4
|
+
export declare const LinkSizeList: readonly ["medium", "small"];
|
|
5
|
+
export type LinkSizeType = (typeof LinkSizeList)[number];
|
|
6
|
+
export declare const LinkContentList: readonly ["external", "internal"];
|
|
7
|
+
export type LinkContentType = (typeof LinkContentList)[number];
|
|
8
|
+
export type DBLinkDefaultProps = {
|
|
9
|
+
/**
|
|
10
|
+
* Adds a different arrow after the link to indicate external or internal link
|
|
11
|
+
*/
|
|
12
|
+
content?: LinkContentType;
|
|
13
|
+
/**
|
|
14
|
+
* Change the size of the link
|
|
15
|
+
*/
|
|
16
|
+
size?: LinkSizeType;
|
|
17
|
+
/**
|
|
18
|
+
* Change the styling of the link. `inline` will remove the arrow. Defaults to adaptive.
|
|
19
|
+
*/
|
|
20
|
+
variant?: LinkVariantType;
|
|
21
|
+
};
|
|
22
|
+
export type DBLinkProps = DBLinkDefaultProps & GlobalProps & ClickEventProps<HTMLAnchorElement> & LinkProps & ShowIconProps & TextProps & WrapProps;
|
|
23
|
+
export type DBLinkDefaultState = {};
|
|
24
|
+
export type DBLinkState = DBLinkDefaultState & GlobalState & ClickEventState<HTMLAnchorElement>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DBNavigation } from './navigation';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { GlobalProps, GlobalState, InitializedState, NavigationItemGroupVariant, NavigationItemGroupVariantType, OverflowScrollButtonProps, OverflowScrollButtonState } from '../../shared/model';
|
|
2
|
+
export type DBNavigationDefaultProps = {
|
|
3
|
+
showTreeLine?: boolean | string;
|
|
4
|
+
};
|
|
5
|
+
export type DBNavigationProps = DBNavigationDefaultProps & GlobalProps & OverflowScrollButtonProps & NavigationItemGroupVariant;
|
|
6
|
+
export type DBNavigationDefaultState = {
|
|
7
|
+
onScroll: () => void;
|
|
8
|
+
_variant?: NavigationItemGroupVariantType;
|
|
9
|
+
_shellDesktopPosition?: string | null;
|
|
10
|
+
_subNavigationDesktopPosition?: string | null;
|
|
11
|
+
_handleSubNavigation: () => void;
|
|
12
|
+
_isSubNavigation?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export type DBNavigationState = DBNavigationDefaultState & GlobalState & OverflowScrollButtonState & InitializedState;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ElementRef, AfterViewInit, InputSignal } from "@angular/core";
|
|
2
|
+
import { DBNavigationProps } from "./model";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DBNavigation implements AfterViewInit {
|
|
5
|
+
protected readonly getBooleanAsString: (originBool?: boolean | string) => any;
|
|
6
|
+
protected readonly cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
7
|
+
variant: InputSignal<DBNavigationProps["variant"]>;
|
|
8
|
+
arrowScrollDistance: InputSignal<DBNavigationProps["arrowScrollDistance"]>;
|
|
9
|
+
id: InputSignal<DBNavigationProps["id"]>;
|
|
10
|
+
showTreeLine: InputSignal<DBNavigationProps["showTreeLine"]>;
|
|
11
|
+
className: InputSignal<DBNavigationProps["className"]>;
|
|
12
|
+
_ref: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
13
|
+
menuRef: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
14
|
+
showScrollLeft: import("@angular/core").WritableSignal<boolean | undefined>;
|
|
15
|
+
showScrollRight: import("@angular/core").WritableSignal<boolean | undefined>;
|
|
16
|
+
_shellDesktopPosition: import("@angular/core").WritableSignal<string | null | undefined>;
|
|
17
|
+
_subNavigationDesktopPosition: import("@angular/core").WritableSignal<string | null | undefined>;
|
|
18
|
+
_variant: import("@angular/core").WritableSignal<"popover" | "tree" | undefined>;
|
|
19
|
+
initialized: import("@angular/core").WritableSignal<boolean>;
|
|
20
|
+
_isSubNavigation: import("@angular/core").WritableSignal<boolean | undefined>;
|
|
21
|
+
evaluateScrollButtons(tList: Element): void;
|
|
22
|
+
scroll(left?: boolean): void;
|
|
23
|
+
onScroll(): void;
|
|
24
|
+
_handleSubNavigation(): void;
|
|
25
|
+
constructor();
|
|
26
|
+
/**
|
|
27
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
28
|
+
* @param element the ref for the component
|
|
29
|
+
* @param customElementSelector the custom element like `my-component`
|
|
30
|
+
*/
|
|
31
|
+
private enableAttributePassing;
|
|
32
|
+
ngAfterViewInit(): void;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DBNavigation, never>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DBNavigation, "db-navigation", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "arrowScrollDistance": { "alias": "arrowScrollDistance"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "showTreeLine": { "alias": "showTreeLine"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
35
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DBNavigationItem } from './navigation-item';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AdditionalInformationSlotProps, DisabledProps, GlobalProps, GlobalState, IconProps, ShowIconProps } from '../../shared/model';
|
|
2
|
+
export type DBNavigationItemDefaultProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Alternative indicator for active navigation item (bold font). In contrast to the use of aria-current="page" on the contained anchor, this does not guarantee correct a11y.
|
|
5
|
+
*/
|
|
6
|
+
active?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* If you use DBShell with controlPanelDesktopPosition="left" you need
|
|
9
|
+
* to add a tooltip for collapsed navigation
|
|
10
|
+
*/
|
|
11
|
+
tooltip?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Set the text for the navigation-item
|
|
14
|
+
*/
|
|
15
|
+
text?: string;
|
|
16
|
+
};
|
|
17
|
+
export type DBNavigationItemProps = DBNavigationItemDefaultProps & GlobalProps & IconProps & ShowIconProps & DisabledProps & AdditionalInformationSlotProps;
|
|
18
|
+
export type DBNavigationItemDefaultState = {};
|
|
19
|
+
export type DBNavigationItemState = DBNavigationItemDefaultState & GlobalState;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ElementRef, AfterViewInit, InputSignal } from "@angular/core";
|
|
2
|
+
import { DBNavigationItemProps } from "./model";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DBNavigationItem implements AfterViewInit {
|
|
5
|
+
protected readonly cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
6
|
+
protected readonly getBooleanAsString: (originBool?: boolean | string) => any;
|
|
7
|
+
protected readonly DEFAULT_LABEL: string;
|
|
8
|
+
id: InputSignal<DBNavigationItemProps["id"]>;
|
|
9
|
+
className: InputSignal<DBNavigationItemProps["className"]>;
|
|
10
|
+
icon: InputSignal<DBNavigationItemProps["icon"]>;
|
|
11
|
+
showIcon: InputSignal<DBNavigationItemProps["showIcon"]>;
|
|
12
|
+
active: InputSignal<DBNavigationItemProps["active"]>;
|
|
13
|
+
disabled: InputSignal<DBNavigationItemProps["disabled"]>;
|
|
14
|
+
tooltip: InputSignal<DBNavigationItemProps["tooltip"]>;
|
|
15
|
+
_ref: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
16
|
+
constructor();
|
|
17
|
+
/**
|
|
18
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
19
|
+
* @param element the ref for the component
|
|
20
|
+
* @param customElementSelector the custom element like `my-component`
|
|
21
|
+
*/
|
|
22
|
+
private enableAttributePassing;
|
|
23
|
+
ngAfterViewInit(): void;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DBNavigationItem, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DBNavigationItem, "db-navigation-item", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "active": { "alias": "active"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; }, {}, never, ["*", "[additional-information]"], true, never>;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DBNavigationItemGroup } from './navigation-item-group';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { AdditionalInformationSlotProps, ClickEvent, ClickEventProps, ClickEventState, DisabledProps, GlobalProps, GlobalState, IconProps, InitializedState, NavigationBackButtonProps, NavigationBehaviorState, NavigationItemGroupVariant, ShowIconProps } from '../../shared/model';
|
|
2
|
+
import { NavigationItemSafeTriangle } from '../../utils/navigation';
|
|
3
|
+
import { DBNavigationItemDefaultProps } from '../navigation-item/model';
|
|
4
|
+
export type DBNavigationItemGroupDefaultProps = {
|
|
5
|
+
/**
|
|
6
|
+
* This is for mobile navigation only, if it is set the sub-navigation is a static overlay
|
|
7
|
+
*/
|
|
8
|
+
expanded?: boolean | string;
|
|
9
|
+
};
|
|
10
|
+
export type DBNavigationItemGroupProps = DBNavigationItemGroupDefaultProps & NavigationBackButtonProps & ClickEventProps<HTMLButtonElement> & GlobalProps & IconProps & ShowIconProps & DBNavigationItemDefaultProps & DisabledProps & NavigationItemGroupVariant & AdditionalInformationSlotProps;
|
|
11
|
+
export type DBNavigationItemGroupDefaultState = {
|
|
12
|
+
handleBackClick: (event: ClickEvent<HTMLButtonElement>) => void;
|
|
13
|
+
isSubNavigationExpanded: boolean;
|
|
14
|
+
subNavigationId: string;
|
|
15
|
+
/**
|
|
16
|
+
* Internal state property to show/hide sub-navigation button
|
|
17
|
+
*/
|
|
18
|
+
hasSubNavigation?: boolean;
|
|
19
|
+
hasPopup?: boolean;
|
|
20
|
+
navigationItemSafeTriangle?: NavigationItemSafeTriangle;
|
|
21
|
+
autoClose?: boolean;
|
|
22
|
+
onScroll: () => void;
|
|
23
|
+
handleEscape: (event: any) => void;
|
|
24
|
+
forceClose: () => void;
|
|
25
|
+
};
|
|
26
|
+
export type DBNavigationItemGroupState = DBNavigationItemGroupDefaultState & ClickEventState<HTMLButtonElement> & GlobalState & NavigationBehaviorState & InitializedState;
|