@db-ux/ngx-core-components 1.0.0-test-13b991d
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 +130 -0
- package/components/accordion/accordion.d.ts +31 -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 +29 -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 +28 -0
- package/components/badge/index.d.ts +1 -0
- package/components/badge/model.d.ts +16 -0
- package/components/brand/brand.d.ts +24 -0
- package/components/brand/index.d.ts +1 -0
- package/components/brand/model.d.ts +10 -0
- package/components/button/button.d.ts +39 -0
- package/components/button/index.d.ts +1 -0
- package/components/button/model.d.ts +52 -0
- package/components/card/card.d.ts +24 -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/divider/divider.d.ts +22 -0
- package/components/divider/index.d.ts +1 -0
- package/components/divider/model.d.ts +18 -0
- package/components/drawer/drawer.d.ts +34 -0
- package/components/drawer/index.d.ts +1 -0
- package/components/drawer/model.d.ts +41 -0
- package/components/header/MetaNavigation.directive.d.ts +5 -0
- package/components/header/Navigation.directive.d.ts +5 -0
- package/components/header/SecondaryAction.directive.d.ts +5 -0
- package/components/header/header.d.ts +34 -0
- package/components/header/index.d.ts +1 -0
- package/components/header/model.d.ts +44 -0
- package/components/icon/icon.d.ts +22 -0
- package/components/icon/index.d.ts +1 -0
- package/components/icon/model.d.ts +12 -0
- package/components/infotext/index.d.ts +1 -0
- package/components/infotext/infotext.d.ts +24 -0
- package/components/infotext/model.d.ts +5 -0
- package/components/input/index.d.ts +1 -0
- package/components/input/input.d.ts +87 -0
- package/components/input/model.d.ts +39 -0
- package/components/link/index.d.ts +1 -0
- package/components/link/link.d.ts +37 -0
- package/components/link/model.d.ts +24 -0
- package/components/navigation/index.d.ts +1 -0
- package/components/navigation/model.d.ts +5 -0
- package/components/navigation/navigation.d.ts +21 -0
- package/components/navigation-item/NavigationContent.directive.d.ts +5 -0
- package/components/navigation-item/index.d.ts +1 -0
- package/components/navigation-item/model.d.ts +34 -0
- package/components/navigation-item/navigation-item.d.ts +44 -0
- package/components/notification/index.d.ts +1 -0
- package/components/notification/model.d.ts +57 -0
- package/components/notification/notification.d.ts +38 -0
- package/components/page/index.d.ts +1 -0
- package/components/page/model.d.ts +32 -0
- package/components/page/page.d.ts +25 -0
- package/components/popover/index.d.ts +1 -0
- package/components/popover/model.d.ts +18 -0
- package/components/popover/popover.d.ts +33 -0
- package/components/radio/index.d.ts +1 -0
- package/components/radio/model.d.ts +7 -0
- package/components/radio/radio.d.ts +51 -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 +43 -0
- package/components/select/select.d.ts +77 -0
- package/components/stack/index.d.ts +1 -0
- package/components/stack/model.d.ts +34 -0
- package/components/stack/stack.d.ts +25 -0
- package/components/switch/index.d.ts +1 -0
- package/components/switch/model.d.ts +12 -0
- package/components/switch/switch.d.ts +55 -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 +44 -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 +21 -0
- package/components/tabs/index.d.ts +1 -0
- package/components/tabs/model.d.ts +47 -0
- package/components/tabs/tabs.d.ts +42 -0
- package/components/tag/index.d.ts +1 -0
- package/components/tag/model.d.ts +45 -0
- package/components/tag/tag.d.ts +37 -0
- package/components/textarea/index.d.ts +1 -0
- package/components/textarea/model.d.ts +30 -0
- package/components/textarea/textarea.d.ts +79 -0
- package/components/tooltip/index.d.ts +1 -0
- package/components/tooltip/model.d.ts +7 -0
- package/components/tooltip/tooltip.d.ts +32 -0
- package/esm2022/components/accordion/accordion.mjs +196 -0
- package/esm2022/components/accordion/index.mjs +2 -0
- package/esm2022/components/accordion/model.mjs +3 -0
- package/esm2022/components/accordion-item/accordion-item.mjs +136 -0
- package/esm2022/components/accordion-item/index.mjs +2 -0
- package/esm2022/components/accordion-item/model.mjs +2 -0
- package/esm2022/components/badge/badge.mjs +130 -0
- package/esm2022/components/badge/index.mjs +2 -0
- package/esm2022/components/badge/model.mjs +2 -0
- package/esm2022/components/brand/brand.mjs +99 -0
- package/esm2022/components/brand/index.mjs +2 -0
- package/esm2022/components/brand/model.mjs +2 -0
- package/esm2022/components/button/button.mjs +158 -0
- package/esm2022/components/button/index.mjs +2 -0
- package/esm2022/components/button/model.mjs +4 -0
- package/esm2022/components/card/card.mjs +107 -0
- package/esm2022/components/card/index.mjs +2 -0
- package/esm2022/components/card/model.mjs +3 -0
- package/esm2022/components/checkbox/checkbox.mjs +328 -0
- package/esm2022/components/checkbox/index.mjs +2 -0
- package/esm2022/components/checkbox/model.mjs +2 -0
- package/esm2022/components/divider/divider.mjs +93 -0
- package/esm2022/components/divider/index.mjs +2 -0
- package/esm2022/components/divider/model.mjs +3 -0
- package/esm2022/components/drawer/drawer.mjs +218 -0
- package/esm2022/components/drawer/index.mjs +2 -0
- package/esm2022/components/drawer/model.mjs +4 -0
- package/esm2022/components/header/MetaNavigation.directive.mjs +15 -0
- package/esm2022/components/header/Navigation.directive.mjs +15 -0
- package/esm2022/components/header/SecondaryAction.directive.mjs +15 -0
- package/esm2022/components/header/header.mjs +251 -0
- package/esm2022/components/header/index.mjs +2 -0
- package/esm2022/components/header/model.mjs +2 -0
- package/esm2022/components/icon/icon.mjs +100 -0
- package/esm2022/components/icon/index.mjs +2 -0
- package/esm2022/components/icon/model.mjs +3 -0
- package/esm2022/components/infotext/index.mjs +2 -0
- package/esm2022/components/infotext/infotext.mjs +103 -0
- package/esm2022/components/infotext/model.mjs +2 -0
- package/esm2022/components/input/index.mjs +2 -0
- package/esm2022/components/input/input.mjs +421 -0
- package/esm2022/components/input/model.mjs +6 -0
- package/esm2022/components/link/index.mjs +2 -0
- package/esm2022/components/link/link.mjs +152 -0
- package/esm2022/components/link/model.mjs +4 -0
- package/esm2022/components/navigation/index.mjs +2 -0
- package/esm2022/components/navigation/model.mjs +2 -0
- package/esm2022/components/navigation/navigation.mjs +92 -0
- package/esm2022/components/navigation-item/NavigationContent.directive.mjs +15 -0
- package/esm2022/components/navigation-item/index.mjs +2 -0
- package/esm2022/components/navigation-item/model.mjs +2 -0
- package/esm2022/components/navigation-item/navigation-item.mjs +236 -0
- package/esm2022/components/notification/index.mjs +2 -0
- package/esm2022/components/notification/model.mjs +4 -0
- package/esm2022/components/notification/notification.mjs +181 -0
- package/esm2022/components/page/index.mjs +2 -0
- package/esm2022/components/page/model.mjs +3 -0
- package/esm2022/components/page/page.mjs +127 -0
- package/esm2022/components/popover/index.mjs +2 -0
- package/esm2022/components/popover/model.mjs +2 -0
- package/esm2022/components/popover/popover.mjs +189 -0
- package/esm2022/components/radio/index.mjs +2 -0
- package/esm2022/components/radio/model.mjs +2 -0
- package/esm2022/components/radio/radio.mjs +230 -0
- package/esm2022/components/section/index.mjs +2 -0
- package/esm2022/components/section/model.mjs +2 -0
- package/esm2022/components/section/section.mjs +96 -0
- package/esm2022/components/select/index.mjs +2 -0
- package/esm2022/components/select/model.mjs +2 -0
- package/esm2022/components/select/select.mjs +426 -0
- package/esm2022/components/stack/index.mjs +2 -0
- package/esm2022/components/stack/model.mjs +5 -0
- package/esm2022/components/stack/stack.mjs +106 -0
- package/esm2022/components/switch/index.mjs +2 -0
- package/esm2022/components/switch/model.mjs +2 -0
- package/esm2022/components/switch/switch.mjs +237 -0
- package/esm2022/components/tab-item/index.mjs +2 -0
- package/esm2022/components/tab-item/model.mjs +2 -0
- package/esm2022/components/tab-item/tab-item.mjs +195 -0
- package/esm2022/components/tab-list/index.mjs +2 -0
- package/esm2022/components/tab-list/model.mjs +2 -0
- package/esm2022/components/tab-list/tab-list.mjs +84 -0
- package/esm2022/components/tab-panel/index.mjs +2 -0
- package/esm2022/components/tab-panel/model.mjs +2 -0
- package/esm2022/components/tab-panel/tab-panel.mjs +96 -0
- package/esm2022/components/tabs/index.mjs +2 -0
- package/esm2022/components/tabs/model.mjs +3 -0
- package/esm2022/components/tabs/tabs.mjs +322 -0
- package/esm2022/components/tag/index.mjs +2 -0
- package/esm2022/components/tag/model.mjs +2 -0
- package/esm2022/components/tag/tag.mjs +186 -0
- package/esm2022/components/textarea/index.mjs +2 -0
- package/esm2022/components/textarea/model.mjs +3 -0
- package/esm2022/components/textarea/textarea.mjs +363 -0
- package/esm2022/components/tooltip/index.mjs +2 -0
- package/esm2022/components/tooltip/model.mjs +2 -0
- package/esm2022/components/tooltip/tooltip.mjs +149 -0
- package/esm2022/db-ux-ngx-core-components.mjs +5 -0
- package/esm2022/index.mjs +41 -0
- package/esm2022/shared/constants.mjs +94 -0
- package/esm2022/shared/model.mjs +22 -0
- package/esm2022/utils/form-components.mjs +11 -0
- package/esm2022/utils/index.mjs +174 -0
- package/esm2022/utils/navigation.mjs +133 -0
- package/fesm2022/db-ux-ngx-core-components.mjs +6109 -0
- package/fesm2022/db-ux-ngx-core-components.mjs.map +1 -0
- package/index.d.ts +40 -0
- package/package.json +35 -0
- package/shared/constants.d.ts +83 -0
- package/shared/model.d.ts +445 -0
- package/utils/form-components.d.ts +2 -0
- package/utils/index.d.ts +61 -0
- package/utils/navigation.d.ts +32 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { EventEmitter, ElementRef, SimpleChanges } from "@angular/core";
|
|
2
|
+
import { DBDrawerProps, DBDrawerState } from "./model";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DBDrawer {
|
|
5
|
+
DEFAULT_CLOSE_BUTTON: string;
|
|
6
|
+
cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
7
|
+
open: DBDrawerProps["open"];
|
|
8
|
+
backdrop: DBDrawerProps["backdrop"];
|
|
9
|
+
variant: DBDrawerProps["variant"];
|
|
10
|
+
id: DBDrawerProps["id"];
|
|
11
|
+
className: DBDrawerProps["className"];
|
|
12
|
+
spacing: DBDrawerProps["spacing"];
|
|
13
|
+
width: DBDrawerProps["width"];
|
|
14
|
+
direction: DBDrawerProps["direction"];
|
|
15
|
+
rounded: DBDrawerProps["rounded"];
|
|
16
|
+
closeButtonId: DBDrawerProps["closeButtonId"];
|
|
17
|
+
closeButtonText: DBDrawerProps["closeButtonText"];
|
|
18
|
+
onClose: EventEmitter<any>;
|
|
19
|
+
_ref: ElementRef | undefined;
|
|
20
|
+
dialogContainerRef: ElementRef | undefined;
|
|
21
|
+
handleClose(event: any): ReturnType<DBDrawerState["handleClose"]>;
|
|
22
|
+
handleDialogOpen(): ReturnType<DBDrawerState["handleDialogOpen"]>;
|
|
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
|
+
ngOnInit(): void;
|
|
30
|
+
ngAfterViewInit(): void;
|
|
31
|
+
ngAfterContentChecked(changes: SimpleChanges): void;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DBDrawer, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DBDrawer, "db-drawer", never, { "open": { "alias": "open"; "required": false; }; "backdrop": { "alias": "backdrop"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "id": { "alias": "id"; "required": false; }; "className": { "alias": "className"; "required": false; }; "spacing": { "alias": "spacing"; "required": false; }; "width": { "alias": "width"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; "closeButtonId": { "alias": "closeButtonId"; "required": false; }; "closeButtonText": { "alias": "closeButtonText"; "required": false; }; }, { "onClose": "onClose"; }, never, ["[drawer-header]", "*"], true, never>;
|
|
34
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DBDrawer } from './drawer';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { CloseEventProps, CloseEventState, GlobalProps, GlobalState, 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 ["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 type DBDrawerDefaultProps = {
|
|
9
|
+
/**
|
|
10
|
+
* The backdrop attribute changes the opacity of the backdrop.
|
|
11
|
+
* The backdrop 'none' will use `dialog.show()` instead of `dialog.showModal()`
|
|
12
|
+
*/
|
|
13
|
+
backdrop?: DrawerBackdropType;
|
|
14
|
+
/**
|
|
15
|
+
* The direction attribute changes the position & animation of the drawer.
|
|
16
|
+
* E.g. "left" slides from left screen border to the right.
|
|
17
|
+
*/
|
|
18
|
+
direction?: DrawerDirectionType;
|
|
19
|
+
/**
|
|
20
|
+
* Slot for changing the header of the drawer.
|
|
21
|
+
*/
|
|
22
|
+
drawerHeader?: any;
|
|
23
|
+
/**
|
|
24
|
+
* The open attribute opens or closes the drawer based on the state.
|
|
25
|
+
*/
|
|
26
|
+
open?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* The rounded attribute changes the border radius of the corners on the "end" of the drawer.
|
|
29
|
+
* The "end" depends on which direction you use.
|
|
30
|
+
*/
|
|
31
|
+
rounded?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Set the variant modal|inside. Defaults to modal.
|
|
34
|
+
*/
|
|
35
|
+
variant?: DrawerVariantType;
|
|
36
|
+
};
|
|
37
|
+
export type DBDrawerProps = DBDrawerDefaultProps & GlobalProps & CloseEventProps & InnerCloseButtonProps & WidthProps & SpacingProps;
|
|
38
|
+
export type DBDrawerDefaultState = {
|
|
39
|
+
handleDialogOpen: () => void;
|
|
40
|
+
};
|
|
41
|
+
export type DBDrawerState = DBDrawerDefaultState & GlobalState & CloseEventState;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class MetaNavigationDirective {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MetaNavigationDirective, never>;
|
|
4
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MetaNavigationDirective, "[dbMetaNavigation]", never, {}, {}, never, never, true, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class NavigationDirective {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NavigationDirective, never>;
|
|
4
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NavigationDirective, "[dbNavigation]", never, {}, {}, never, never, true, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class SecondaryActionDirective {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SecondaryActionDirective, never>;
|
|
4
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SecondaryActionDirective, "[dbSecondaryAction]", never, {}, {}, never, never, true, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { EventEmitter, ElementRef, SimpleChanges } from "@angular/core";
|
|
2
|
+
import { DBHeaderProps, DBHeaderState } from "./model";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DBHeader {
|
|
5
|
+
dbNavigation: any;
|
|
6
|
+
dbMetaNavigation: any;
|
|
7
|
+
dbSecondaryAction: any;
|
|
8
|
+
cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
9
|
+
DEFAULT_BURGER_MENU: string;
|
|
10
|
+
id: DBHeaderProps["id"];
|
|
11
|
+
forceMobile: DBHeaderProps["forceMobile"];
|
|
12
|
+
drawerOpen: DBHeaderProps["drawerOpen"];
|
|
13
|
+
className: DBHeaderProps["className"];
|
|
14
|
+
width: DBHeaderProps["width"];
|
|
15
|
+
burgerMenuLabel: DBHeaderProps["burgerMenuLabel"];
|
|
16
|
+
onToggle: EventEmitter<any>;
|
|
17
|
+
_ref: ElementRef | undefined;
|
|
18
|
+
_id: DBHeaderState["_id"];
|
|
19
|
+
initialized: DBHeaderState["initialized"];
|
|
20
|
+
forcedToMobile: DBHeaderState["forcedToMobile"];
|
|
21
|
+
toggle(): ReturnType<DBHeaderState["toggle"]>;
|
|
22
|
+
handleNavigationItemClick(event: unknown): ReturnType<DBHeaderState["handleNavigationItemClick"]>;
|
|
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
|
+
ngOnInit(): void;
|
|
30
|
+
ngAfterViewInit(): void;
|
|
31
|
+
ngAfterContentChecked(changes: SimpleChanges): void;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DBHeader, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DBHeader, "db-header", never, { "id": { "alias": "id"; "required": false; }; "forceMobile": { "alias": "forceMobile"; "required": false; }; "drawerOpen": { "alias": "drawerOpen"; "required": false; }; "className": { "alias": "className"; "required": false; }; "width": { "alias": "width"; "required": false; }; "burgerMenuLabel": { "alias": "burgerMenuLabel"; "required": false; }; }, { "onToggle": "onToggle"; }, ["dbNavigation", "dbMetaNavigation", "dbSecondaryAction"], ["*", "*", "*", "*", "[brand]", "*", "[primary-action]", "*"], true, never>;
|
|
34
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DBHeader } from './header';
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ContainerWidthProps, GlobalProps, GlobalState, InitializedState, NavigationBehaviorState, ToggleEventProps, ToggleEventState } from '../../shared/model';
|
|
2
|
+
export type DBHeaderDefaultProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Slot to pass in the DBBrand component
|
|
5
|
+
*/
|
|
6
|
+
brand?: any;
|
|
7
|
+
/**
|
|
8
|
+
* Slot to pass in a meta navigation.
|
|
9
|
+
* Desktop: Above the regular header
|
|
10
|
+
* Mobile: Inside the drawer
|
|
11
|
+
*/
|
|
12
|
+
metaNavigation?: any;
|
|
13
|
+
/**
|
|
14
|
+
* Slot to pass one or more elements like DBButton (e.g. search) as primary action.
|
|
15
|
+
* Desktop: Shown next to the main-navigation
|
|
16
|
+
* Mobile: Shown next to the brand
|
|
17
|
+
*/
|
|
18
|
+
primaryAction?: any;
|
|
19
|
+
/**
|
|
20
|
+
* Slot to pass one or more elements like DBButton (e.g. profile, language, etc.) as secondary action.
|
|
21
|
+
* Desktop: Shown seperated by divider at the end of the header
|
|
22
|
+
* Mobile: Shown inside the drawer at the bottom.
|
|
23
|
+
*/
|
|
24
|
+
secondaryAction?: any;
|
|
25
|
+
/**
|
|
26
|
+
* Open/closes the drawer for mobile header or if `forceMobile` is true.
|
|
27
|
+
*/
|
|
28
|
+
drawerOpen?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Forces the header to use mobile layout for desktop as well.
|
|
31
|
+
* You should only use this setting if you really can't provide a smaller navigation.
|
|
32
|
+
* Overwrite size of the drawer with '--db-drawer-max-width: xxx'
|
|
33
|
+
*/
|
|
34
|
+
forceMobile?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* This attribute sets the label for the burger menu button for mobile headers.
|
|
37
|
+
*/
|
|
38
|
+
burgerMenuLabel?: string;
|
|
39
|
+
};
|
|
40
|
+
export type DBHeaderProps = DBHeaderDefaultProps & GlobalProps & ToggleEventProps & ContainerWidthProps;
|
|
41
|
+
export type DBHeaderDefaultState = {
|
|
42
|
+
forcedToMobile?: boolean;
|
|
43
|
+
};
|
|
44
|
+
export type DBHeaderState = DBHeaderDefaultState & GlobalState & ToggleEventState<HTMLElement> & InitializedState & NavigationBehaviorState;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ElementRef } from "@angular/core";
|
|
2
|
+
import type { DBIconProps } from "./model";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DBIcon {
|
|
5
|
+
cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
6
|
+
id: DBIconProps["id"];
|
|
7
|
+
className: DBIconProps["className"];
|
|
8
|
+
icon: DBIconProps["icon"];
|
|
9
|
+
weight: DBIconProps["weight"];
|
|
10
|
+
variant: DBIconProps["variant"];
|
|
11
|
+
text: DBIconProps["text"];
|
|
12
|
+
_ref: ElementRef | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
15
|
+
* @param element the ref for the component
|
|
16
|
+
* @param customElementSelector the custom element like `my-component`
|
|
17
|
+
*/
|
|
18
|
+
private enableAttributePassing;
|
|
19
|
+
ngAfterViewInit(): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DBIcon, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DBIcon, "db-icon", never, { "id": { "alias": "id"; "required": false; }; "className": { "alias": "className"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "weight": { "alias": "weight"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "text": { "alias": "text"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DBIcon } from './icon';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { GlobalProps, GlobalState, IconProps, TextProps } from '../../shared/model';
|
|
2
|
+
export declare const IconVariantList: readonly ["default", "inverted", "filled"];
|
|
3
|
+
export type IconVariantType = (typeof IconVariantList)[number];
|
|
4
|
+
export declare const IconWeightList: readonly ["16", "20", "24", "32", "48", "64"];
|
|
5
|
+
export type IconWeightType = (typeof IconWeightList)[number];
|
|
6
|
+
export type DBIconDefaultProps = {
|
|
7
|
+
variant?: IconVariantType;
|
|
8
|
+
weight?: IconWeightType;
|
|
9
|
+
};
|
|
10
|
+
export type DBIconProps = DBIconDefaultProps & GlobalProps & IconProps & TextProps;
|
|
11
|
+
export type DBIconDefaultState = {};
|
|
12
|
+
export type DBIconState = DBIconDefaultState & GlobalState;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DBInfotext } from './infotext';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ElementRef } from "@angular/core";
|
|
2
|
+
import { DBInfotextProps } from "./model";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DBInfotext {
|
|
5
|
+
cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
6
|
+
getHideProp: (show?: boolean | undefined) => any;
|
|
7
|
+
id: DBInfotextProps["id"];
|
|
8
|
+
className: DBInfotextProps["className"];
|
|
9
|
+
icon: DBInfotextProps["icon"];
|
|
10
|
+
semantic: DBInfotextProps["semantic"];
|
|
11
|
+
size: DBInfotextProps["size"];
|
|
12
|
+
showIcon: DBInfotextProps["showIcon"];
|
|
13
|
+
text: DBInfotextProps["text"];
|
|
14
|
+
_ref: ElementRef | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
17
|
+
* @param element the ref for the component
|
|
18
|
+
* @param customElementSelector the custom element like `my-component`
|
|
19
|
+
*/
|
|
20
|
+
private enableAttributePassing;
|
|
21
|
+
ngAfterViewInit(): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DBInfotext, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DBInfotext, "db-infotext", never, { "id": { "alias": "id"; "required": false; }; "className": { "alias": "className"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "semantic": { "alias": "semantic"; "required": false; }; "size": { "alias": "size"; "required": false; }; "showIcon": { "alias": "showIcon"; "required": false; }; "text": { "alias": "text"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
24
|
+
}
|
|
@@ -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,87 @@
|
|
|
1
|
+
import { EventEmitter, ElementRef, SimpleChanges, Renderer2 } from "@angular/core";
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { DBInputProps, DBInputState } from "./model";
|
|
4
|
+
import { ChangeEvent, InputEvent, InteractionEvent, ValueLabelType } from "../../shared/model";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class DBInput implements ControlValueAccessor {
|
|
7
|
+
private renderer;
|
|
8
|
+
constructor(renderer: Renderer2);
|
|
9
|
+
cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
10
|
+
getHideProp: (show?: boolean | undefined) => any;
|
|
11
|
+
stringPropVisible: (givenString?: string | undefined, showString?: boolean | undefined) => string | boolean | undefined;
|
|
12
|
+
DEFAULT_INVALID_MESSAGE: string;
|
|
13
|
+
DEFAULT_LABEL: string;
|
|
14
|
+
DEFAULT_PLACEHOLDER: string;
|
|
15
|
+
DEFAULT_VALID_MESSAGE: string;
|
|
16
|
+
id: DBInputProps["id"];
|
|
17
|
+
dataListId: DBInputProps["dataListId"];
|
|
18
|
+
message: DBInputProps["message"];
|
|
19
|
+
showMessage: DBInputProps["showMessage"];
|
|
20
|
+
value: DBInputProps["value"];
|
|
21
|
+
validation: DBInputProps["validation"];
|
|
22
|
+
invalidMessage: DBInputProps["invalidMessage"];
|
|
23
|
+
required: DBInputProps["required"];
|
|
24
|
+
minLength: DBInputProps["minLength"];
|
|
25
|
+
maxLength: DBInputProps["maxLength"];
|
|
26
|
+
pattern: DBInputProps["pattern"];
|
|
27
|
+
validMessage: DBInputProps["validMessage"];
|
|
28
|
+
className: DBInputProps["className"];
|
|
29
|
+
variant: DBInputProps["variant"];
|
|
30
|
+
showLabel: DBInputProps["showLabel"];
|
|
31
|
+
showIcon: DBInputProps["showIcon"];
|
|
32
|
+
icon: DBInputProps["icon"];
|
|
33
|
+
iconAfter: DBInputProps["iconAfter"];
|
|
34
|
+
label: DBInputProps["label"];
|
|
35
|
+
name: DBInputProps["name"];
|
|
36
|
+
type: DBInputProps["type"];
|
|
37
|
+
placeholder: DBInputProps["placeholder"];
|
|
38
|
+
disabled: DBInputProps["disabled"];
|
|
39
|
+
step: DBInputProps["step"];
|
|
40
|
+
max: DBInputProps["max"];
|
|
41
|
+
min: DBInputProps["min"];
|
|
42
|
+
readOnly: DBInputProps["readOnly"];
|
|
43
|
+
form: DBInputProps["form"];
|
|
44
|
+
autocomplete: DBInputProps["autocomplete"];
|
|
45
|
+
autofocus: DBInputProps["autofocus"];
|
|
46
|
+
dataList: DBInputProps["dataList"];
|
|
47
|
+
messageIcon: DBInputProps["messageIcon"];
|
|
48
|
+
onInput: EventEmitter<any>;
|
|
49
|
+
input: EventEmitter<any>;
|
|
50
|
+
onChange: EventEmitter<any>;
|
|
51
|
+
change: EventEmitter<any>;
|
|
52
|
+
onBlur: EventEmitter<any>;
|
|
53
|
+
blur: EventEmitter<any>;
|
|
54
|
+
onFocus: EventEmitter<any>;
|
|
55
|
+
focus: EventEmitter<any>;
|
|
56
|
+
_ref: ElementRef | undefined;
|
|
57
|
+
_id: DBInputState["_id"];
|
|
58
|
+
_messageId: DBInputState["_messageId"];
|
|
59
|
+
_validMessageId: DBInputState["_validMessageId"];
|
|
60
|
+
_invalidMessageId: DBInputState["_invalidMessageId"];
|
|
61
|
+
_dataListId: DBInputState["_dataListId"];
|
|
62
|
+
_descByIds: DBInputState["_descByIds"];
|
|
63
|
+
_value: DBInputState["_value"];
|
|
64
|
+
_voiceOverFallback: DBInputState["_voiceOverFallback"];
|
|
65
|
+
handleInput(event: InputEvent<HTMLInputElement>): ReturnType<DBInputState["handleInput"]>;
|
|
66
|
+
handleChange(event: ChangeEvent<HTMLInputElement>): ReturnType<DBInputState["handleChange"]>;
|
|
67
|
+
handleBlur(event: InteractionEvent<HTMLInputElement>): ReturnType<DBInputState["handleBlur"]>;
|
|
68
|
+
handleFocus(event: InteractionEvent<HTMLInputElement>): ReturnType<DBInputState["handleFocus"]>;
|
|
69
|
+
getDataList(_list?: string[] | ValueLabelType[]): ReturnType<DBInputState["getDataList"]>;
|
|
70
|
+
trackByOption0(_: any, option: any): string;
|
|
71
|
+
/**
|
|
72
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
73
|
+
* @param element the ref for the component
|
|
74
|
+
* @param customElementSelector the custom element like `my-component`
|
|
75
|
+
*/
|
|
76
|
+
private enableAttributePassing;
|
|
77
|
+
writeValue(value: any): void;
|
|
78
|
+
propagateChange(_: any): void;
|
|
79
|
+
registerOnChange(onChange: any): void;
|
|
80
|
+
registerOnTouched(onTouched: any): void;
|
|
81
|
+
setDisabledState(disabled: boolean): void;
|
|
82
|
+
ngOnInit(): void;
|
|
83
|
+
ngAfterViewInit(): void;
|
|
84
|
+
ngAfterContentChecked(changes: SimpleChanges): void;
|
|
85
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DBInput, never>;
|
|
86
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DBInput, "db-input", never, { "id": { "alias": "id"; "required": false; }; "dataListId": { "alias": "dataListId"; "required": false; }; "message": { "alias": "message"; "required": false; }; "showMessage": { "alias": "showMessage"; "required": false; }; "value": { "alias": "value"; "required": false; }; "validation": { "alias": "validation"; "required": false; }; "invalidMessage": { "alias": "invalidMessage"; "required": false; }; "required": { "alias": "required"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "validMessage": { "alias": "validMessage"; "required": false; }; "className": { "alias": "className"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "showIcon": { "alias": "showIcon"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconAfter": { "alias": "iconAfter"; "required": false; }; "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "type": { "alias": "type"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "step": { "alias": "step"; "required": false; }; "max": { "alias": "max"; "required": false; }; "min": { "alias": "min"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "form": { "alias": "form"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "dataList": { "alias": "dataList"; "required": false; }; "messageIcon": { "alias": "messageIcon"; "required": false; }; }, { "onInput": "onInput"; "input": "input"; "onChange": "onChange"; "change": "change"; "onBlur": "onBlur"; "blur": "blur"; "onFocus": "onFocus"; "focus": "focus"; }, never, ["*"], true, never>;
|
|
87
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ChangeEventProps, ChangeEventState, FocusEventProps, FocusEventState, FormMessageProps, FormProps, FormState, FormTextProps, GlobalProps, GlobalState, IconAfterProps, IconProps, InputEventProps, InputEventState, ShowIconProps, 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
|
+
* Maximum value
|
|
15
|
+
*/
|
|
16
|
+
max?: number | string;
|
|
17
|
+
/**
|
|
18
|
+
* Minimum value
|
|
19
|
+
*/
|
|
20
|
+
min?: number | string;
|
|
21
|
+
/**
|
|
22
|
+
* Pattern the value must match to be valid
|
|
23
|
+
*/
|
|
24
|
+
pattern?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Type of form control
|
|
27
|
+
*/
|
|
28
|
+
type?: InputTypeType | string;
|
|
29
|
+
/**
|
|
30
|
+
* Sets [step value](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/step).
|
|
31
|
+
*/
|
|
32
|
+
step?: number | string;
|
|
33
|
+
};
|
|
34
|
+
export type DBInputProps = DBInputDefaultProps & GlobalProps & FormTextProps & InputEventProps<HTMLInputElement> & ChangeEventProps<HTMLInputElement> & FocusEventProps<HTMLInputElement> & FormProps & IconProps & IconAfterProps & FormMessageProps & ShowIconProps;
|
|
35
|
+
export type DBInputDefaultState = {
|
|
36
|
+
_dataListId?: string;
|
|
37
|
+
getDataList: (_list?: string[] | ValueLabelType[]) => ValueLabelType[];
|
|
38
|
+
};
|
|
39
|
+
export type DBInputState = DBInputDefaultState & GlobalState & InputEventState<HTMLInputElement> & ChangeEventState<HTMLInputElement> & FocusEventState<HTMLInputElement> & FormState;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DBLink } from './link';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { EventEmitter, ElementRef } from "@angular/core";
|
|
2
|
+
import { DBLinkProps, DBLinkState } from "./model";
|
|
3
|
+
import { ClickEvent } from "../../shared/model";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class DBLink {
|
|
6
|
+
cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
7
|
+
getBooleanAsString: (originBool?: boolean | undefined) => any;
|
|
8
|
+
getHideProp: (show?: boolean | undefined) => any;
|
|
9
|
+
id: DBLinkProps["id"];
|
|
10
|
+
className: DBLinkProps["className"];
|
|
11
|
+
href: DBLinkProps["href"];
|
|
12
|
+
target: DBLinkProps["target"];
|
|
13
|
+
rel: DBLinkProps["rel"];
|
|
14
|
+
role: DBLinkProps["role"];
|
|
15
|
+
hreflang: DBLinkProps["hreflang"];
|
|
16
|
+
disabled: DBLinkProps["disabled"];
|
|
17
|
+
selected: DBLinkProps["selected"];
|
|
18
|
+
label: DBLinkProps["label"];
|
|
19
|
+
current: DBLinkProps["current"];
|
|
20
|
+
size: DBLinkProps["size"];
|
|
21
|
+
showIcon: DBLinkProps["showIcon"];
|
|
22
|
+
variant: DBLinkProps["variant"];
|
|
23
|
+
content: DBLinkProps["content"];
|
|
24
|
+
text: DBLinkProps["text"];
|
|
25
|
+
onClick: EventEmitter<any>;
|
|
26
|
+
_ref: ElementRef | undefined;
|
|
27
|
+
handleClick(event: ClickEvent<HTMLAnchorElement>): ReturnType<DBLinkState["handleClick"]>;
|
|
28
|
+
/**
|
|
29
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
30
|
+
* @param element the ref for the component
|
|
31
|
+
* @param customElementSelector the custom element like `my-component`
|
|
32
|
+
*/
|
|
33
|
+
private enableAttributePassing;
|
|
34
|
+
ngAfterViewInit(): void;
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DBLink, never>;
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DBLink, "db-link", never, { "id": { "alias": "id"; "required": false; }; "className": { "alias": "className"; "required": false; }; "href": { "alias": "href"; "required": false; }; "target": { "alias": "target"; "required": false; }; "rel": { "alias": "rel"; "required": false; }; "role": { "alias": "role"; "required": false; }; "hreflang": { "alias": "hreflang"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "label": { "alias": "label"; "required": false; }; "current": { "alias": "current"; "required": false; }; "size": { "alias": "size"; "required": false; }; "showIcon": { "alias": "showIcon"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "content": { "alias": "content"; "required": false; }; "text": { "alias": "text"; "required": false; }; }, { "onClick": "onClick"; }, never, ["*"], true, never>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ClickEventProps, ClickEventState, GlobalProps, GlobalState, LinkProps, ShowIconProps, TextProps } from '../../shared/model';
|
|
2
|
+
export declare const LinkVariantList: readonly ["adaptive", "brand"];
|
|
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;
|
|
23
|
+
export type DBLinkDefaultState = {};
|
|
24
|
+
export type DBLinkState = DBLinkDefaultState & GlobalState & ClickEventState<HTMLAnchorElement>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DBNavigation } from './navigation';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AriaLabelledByProps, GlobalProps, GlobalState } from '../../shared/model';
|
|
2
|
+
export type DBNavigationDefaultProps = {};
|
|
3
|
+
export type DBNavigationProps = DBNavigationDefaultProps & GlobalProps & AriaLabelledByProps;
|
|
4
|
+
export type DBNavigationDefaultState = {};
|
|
5
|
+
export type DBNavigationState = DBNavigationDefaultState & GlobalState;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ElementRef } from "@angular/core";
|
|
2
|
+
import { DBNavigationProps, DBNavigationState } from "./model";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DBNavigation {
|
|
5
|
+
cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
6
|
+
id: DBNavigationProps["id"];
|
|
7
|
+
labelledBy: DBNavigationProps["labelledBy"];
|
|
8
|
+
className: DBNavigationProps["className"];
|
|
9
|
+
_ref: ElementRef | undefined;
|
|
10
|
+
_id: DBNavigationState["_id"];
|
|
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
|
+
ngOnInit(): void;
|
|
18
|
+
ngAfterViewInit(): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DBNavigation, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DBNavigation, "db-navigation", never, { "id": { "alias": "id"; "required": false; }; "labelledBy": { "alias": "labelledBy"; "required": false; }; "className": { "alias": "className"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class NavigationContentDirective {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NavigationContentDirective, never>;
|
|
4
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NavigationContentDirective, "[dbNavigationContent]", never, {}, {}, never, never, true, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DBNavigationItem } from './navigation-item';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ClickEvent, ClickEventProps, ClickEventState, GlobalProps, GlobalState, IconProps, InitializedState, NavigationBackButtonProps, ShowIconProps, TextProps, WidthProps } from '../../shared/model';
|
|
2
|
+
import { NavigationItemSafeTriangle } from '../../utils/navigation';
|
|
3
|
+
export type DBNavigationItemDefaultProps = {
|
|
4
|
+
/**
|
|
5
|
+
* 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.
|
|
6
|
+
*/
|
|
7
|
+
active?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* The disabled attribute can be set to [keep a user from clicking on the item](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#disabled).
|
|
10
|
+
*/
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* React-specific property to pass in a slot for sub-navigation
|
|
14
|
+
*/
|
|
15
|
+
subNavigation?: any;
|
|
16
|
+
/**
|
|
17
|
+
* This is for mobile navigation only, if it is set the sub-navigation is a static overlay
|
|
18
|
+
*/
|
|
19
|
+
subNavigationExpanded?: boolean;
|
|
20
|
+
};
|
|
21
|
+
export type DBNavigationItemProps = DBNavigationItemDefaultProps & GlobalProps & ClickEventProps<HTMLButtonElement> & IconProps & WidthProps & NavigationBackButtonProps & ShowIconProps & TextProps;
|
|
22
|
+
export type DBNavigationItemDefaultState = {
|
|
23
|
+
handleBackClick: (event: ClickEvent<HTMLButtonElement>) => void;
|
|
24
|
+
hasAreaPopup: boolean;
|
|
25
|
+
isSubNavigationExpanded: boolean;
|
|
26
|
+
subNavigationId: string;
|
|
27
|
+
/**
|
|
28
|
+
* Internal state property to show/hide sub-navigation button
|
|
29
|
+
*/
|
|
30
|
+
hasSubNavigation?: boolean;
|
|
31
|
+
updateSubNavigationState: () => void;
|
|
32
|
+
navigationItemSafeTriangle?: NavigationItemSafeTriangle;
|
|
33
|
+
};
|
|
34
|
+
export type DBNavigationItemState = DBNavigationItemDefaultState & ClickEventState<HTMLButtonElement> & GlobalState & InitializedState;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { EventEmitter, ElementRef, SimpleChanges } from "@angular/core";
|
|
2
|
+
import { DBNavigationItemProps, DBNavigationItemState } from "./model";
|
|
3
|
+
import { ClickEvent } from "../../shared/model";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class DBNavigationItem {
|
|
6
|
+
dbNavigationContent: any;
|
|
7
|
+
cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
8
|
+
getBooleanAsString: (originBool?: boolean | undefined) => any;
|
|
9
|
+
getHideProp: (show?: boolean | undefined) => any;
|
|
10
|
+
DEFAULT_BACK: string;
|
|
11
|
+
subNavigationExpanded: DBNavigationItemProps["subNavigationExpanded"];
|
|
12
|
+
id: DBNavigationItemProps["id"];
|
|
13
|
+
className: DBNavigationItemProps["className"];
|
|
14
|
+
width: DBNavigationItemProps["width"];
|
|
15
|
+
icon: DBNavigationItemProps["icon"];
|
|
16
|
+
showIcon: DBNavigationItemProps["showIcon"];
|
|
17
|
+
active: DBNavigationItemProps["active"];
|
|
18
|
+
disabled: DBNavigationItemProps["disabled"];
|
|
19
|
+
text: DBNavigationItemProps["text"];
|
|
20
|
+
backButtonId: DBNavigationItemProps["backButtonId"];
|
|
21
|
+
backButtonText: DBNavigationItemProps["backButtonText"];
|
|
22
|
+
onClick: EventEmitter<any>;
|
|
23
|
+
_ref: ElementRef | undefined;
|
|
24
|
+
initialized: DBNavigationItemState["initialized"];
|
|
25
|
+
hasAreaPopup: DBNavigationItemState["hasAreaPopup"];
|
|
26
|
+
hasSubNavigation: DBNavigationItemState["hasSubNavigation"];
|
|
27
|
+
isSubNavigationExpanded: DBNavigationItemState["isSubNavigationExpanded"];
|
|
28
|
+
subNavigationId: DBNavigationItemState["subNavigationId"];
|
|
29
|
+
navigationItemSafeTriangle: DBNavigationItemState["navigationItemSafeTriangle"];
|
|
30
|
+
handleClick(event: ClickEvent<HTMLButtonElement>): ReturnType<DBNavigationItemState["handleClick"]>;
|
|
31
|
+
handleBackClick(event: ClickEvent<HTMLButtonElement>): ReturnType<DBNavigationItemState["handleBackClick"]>;
|
|
32
|
+
updateSubNavigationState(): ReturnType<DBNavigationItemState["updateSubNavigationState"]>;
|
|
33
|
+
/**
|
|
34
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
35
|
+
* @param element the ref for the component
|
|
36
|
+
* @param customElementSelector the custom element like `my-component`
|
|
37
|
+
*/
|
|
38
|
+
private enableAttributePassing;
|
|
39
|
+
ngOnInit(): void;
|
|
40
|
+
ngAfterViewInit(): void;
|
|
41
|
+
ngAfterContentChecked(changes: SimpleChanges): void;
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DBNavigationItem, never>;
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DBNavigationItem, "db-navigation-item", never, { "subNavigationExpanded": { "alias": "subNavigationExpanded"; "required": false; }; "id": { "alias": "id"; "required": false; }; "className": { "alias": "className"; "required": false; }; "width": { "alias": "width"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "showIcon": { "alias": "showIcon"; "required": false; }; "active": { "alias": "active"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "text": { "alias": "text"; "required": false; }; "backButtonId": { "alias": "backButtonId"; "required": false; }; "backButtonText": { "alias": "backButtonText"; "required": false; }; }, { "onClick": "onClick"; }, ["dbNavigationContent"], ["*", "*", "[sub-navigation]"], true, never>;
|
|
44
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DBNotification } from './notification';
|