@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,49 @@
|
|
|
1
|
+
import { ElementRef, AfterViewInit, InputSignal } from "@angular/core";
|
|
2
|
+
import { ClickEvent } from "../../shared/model";
|
|
3
|
+
import { NavigationItemSafeTriangle } from "../../utils/navigation";
|
|
4
|
+
import { DBNavigationItemGroupProps } from "./model";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class DBNavigationItemGroup implements AfterViewInit {
|
|
7
|
+
protected readonly cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
8
|
+
protected readonly getHideProp: (show?: boolean | string) => any;
|
|
9
|
+
protected readonly getBooleanAsString: (originBool?: boolean | string) => any;
|
|
10
|
+
protected readonly getBoolean: (originBool?: boolean | string, propertyName?: string) => boolean | undefined;
|
|
11
|
+
protected readonly DEFAULT_BACK: string;
|
|
12
|
+
expanded: InputSignal<DBNavigationItemGroupProps["expanded"]>;
|
|
13
|
+
id: InputSignal<DBNavigationItemGroupProps["id"]>;
|
|
14
|
+
className: InputSignal<DBNavigationItemGroupProps["className"]>;
|
|
15
|
+
icon: InputSignal<DBNavigationItemGroupProps["icon"]>;
|
|
16
|
+
showIcon: InputSignal<DBNavigationItemGroupProps["showIcon"]>;
|
|
17
|
+
active: InputSignal<DBNavigationItemGroupProps["active"]>;
|
|
18
|
+
disabled: InputSignal<DBNavigationItemGroupProps["disabled"]>;
|
|
19
|
+
text: InputSignal<DBNavigationItemGroupProps["text"]>;
|
|
20
|
+
backButtonId: InputSignal<DBNavigationItemGroupProps["backButtonId"]>;
|
|
21
|
+
backButtonText: InputSignal<DBNavigationItemGroupProps["backButtonText"]>;
|
|
22
|
+
click: import("@angular/core").OutputEmitterRef<void | MouseEvent>;
|
|
23
|
+
_ref: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
24
|
+
_buttonRef: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
25
|
+
_menuRef: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
26
|
+
hasSubNavigation: import("@angular/core").WritableSignal<boolean | undefined>;
|
|
27
|
+
isSubNavigationExpanded: import("@angular/core").WritableSignal<boolean>;
|
|
28
|
+
autoClose: import("@angular/core").WritableSignal<boolean | undefined>;
|
|
29
|
+
hasPopup: import("@angular/core").WritableSignal<boolean | undefined>;
|
|
30
|
+
initialized: import("@angular/core").WritableSignal<boolean>;
|
|
31
|
+
subNavigationId: import("@angular/core").WritableSignal<string>;
|
|
32
|
+
navigationItemSafeTriangle: import("@angular/core").WritableSignal<NavigationItemSafeTriangle | undefined>;
|
|
33
|
+
onScroll(): void;
|
|
34
|
+
handleNavigationItemClick(event: any): void;
|
|
35
|
+
forceClose(): void;
|
|
36
|
+
handleClick(event: ClickEvent<HTMLButtonElement> | any): void;
|
|
37
|
+
handleBackClick(event: ClickEvent<HTMLButtonElement> | any): void;
|
|
38
|
+
handleEscape(event: any): void;
|
|
39
|
+
constructor();
|
|
40
|
+
/**
|
|
41
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
42
|
+
* @param element the ref for the component
|
|
43
|
+
* @param customElementSelector the custom element like `my-component`
|
|
44
|
+
*/
|
|
45
|
+
private enableAttributePassing;
|
|
46
|
+
ngAfterViewInit(): void;
|
|
47
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DBNavigationItemGroup, never>;
|
|
48
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DBNavigationItemGroup, "db-navigation-item-group", never, { "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; "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; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; "backButtonId": { "alias": "backButtonId"; "required": false; "isSignal": true; }; "backButtonText": { "alias": "backButtonText"; "required": false; "isSignal": true; }; }, { "click": "click"; }, never, ["[additional-information]", "*"], true, never>;
|
|
49
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DBNotification } from './notification';
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { ClickEvent, CloseEventProps, CloseEventState, GlobalProps, GlobalState, IconProps, InnerCloseButtonProps, PopoverProps, SemanticProps, ShowIconProps, TextProps } from '../../shared/model';
|
|
2
|
+
export declare const NotificationVariantList: readonly ["docked", "standalone", "overlay"];
|
|
3
|
+
export type NotificationVariantType = (typeof NotificationVariantList)[number];
|
|
4
|
+
export declare const NotificationLinkVariantList: readonly ["block", "inline"];
|
|
5
|
+
export type NotificationLinkVariantType = (typeof NotificationLinkVariantList)[number];
|
|
6
|
+
export declare const NotificationAriaLiveList: readonly ["assertive", "polite", "off"];
|
|
7
|
+
export type NotificationAriaLiveType = (typeof NotificationAriaLiveList)[number];
|
|
8
|
+
export type DBNotificationDefaultProps = {
|
|
9
|
+
/**
|
|
10
|
+
* The arialive attribute will lead to that the screenreader interrupts immediately
|
|
11
|
+
* and reads out the notification if set to "assertive", while it will wait for the
|
|
12
|
+
* user's idleness when set to "polite", compare to [aria-live](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-live)
|
|
13
|
+
*/
|
|
14
|
+
ariaLive?: NotificationAriaLiveType;
|
|
15
|
+
/**
|
|
16
|
+
* The closeable attribute shows/hides the close button on the top right.
|
|
17
|
+
*/
|
|
18
|
+
closeable?: boolean | string;
|
|
19
|
+
/**
|
|
20
|
+
* The headline attribute changes the text of the bold headline.
|
|
21
|
+
*/
|
|
22
|
+
headline?: string | any;
|
|
23
|
+
/**
|
|
24
|
+
* The slotImage can be set instead of an icon.
|
|
25
|
+
*/
|
|
26
|
+
image?: any;
|
|
27
|
+
/**
|
|
28
|
+
* The slotLink can be set for non overlay-notifications
|
|
29
|
+
*/
|
|
30
|
+
link?: any;
|
|
31
|
+
/**
|
|
32
|
+
* The linkVariant will be used if slotLink is set.
|
|
33
|
+
*/
|
|
34
|
+
linkVariant?: NotificationLinkVariantType;
|
|
35
|
+
/**
|
|
36
|
+
* Enables or disables the visibility of the headline.
|
|
37
|
+
*/
|
|
38
|
+
showHeadline?: boolean | string;
|
|
39
|
+
/**
|
|
40
|
+
* The timestamp attribute can be set for overlay notifications
|
|
41
|
+
*/
|
|
42
|
+
timestamp?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Enables or disables the visibility of the timestamp.
|
|
45
|
+
*/
|
|
46
|
+
showTimestamp?: boolean | string;
|
|
47
|
+
/**
|
|
48
|
+
* The variant attribute changes the styling of the notification.
|
|
49
|
+
* - The docked notifications are used e.g. between header and main content to show a global alert.
|
|
50
|
+
* - The standalone notifications are used e.g. inside a form to show an alert for a specific field.
|
|
51
|
+
* - The overlay notifications are used for absolute and floating notifications like snackbars etc.
|
|
52
|
+
*/
|
|
53
|
+
variant?: NotificationVariantType;
|
|
54
|
+
};
|
|
55
|
+
export type DBNotificationProps = DBNotificationDefaultProps & GlobalProps & CloseEventProps<ClickEvent<HTMLButtonElement>> & IconProps & SemanticProps & InnerCloseButtonProps & PopoverProps & ShowIconProps & TextProps;
|
|
56
|
+
export type DBNotificationDefaultState = {};
|
|
57
|
+
export type DBNotificationState = DBNotificationDefaultState & GlobalState & CloseEventState<ClickEvent<HTMLButtonElement>>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ElementRef, AfterViewInit, InputSignal } from "@angular/core";
|
|
2
|
+
import { ClickEvent } from "../../shared/model";
|
|
3
|
+
import { DBNotificationProps } from "./model";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class DBNotification implements AfterViewInit {
|
|
6
|
+
protected readonly cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
7
|
+
protected readonly getBooleanAsString: (originBool?: boolean | string) => any;
|
|
8
|
+
protected readonly stringPropVisible: (givenString?: string, showString?: boolean | string) => boolean;
|
|
9
|
+
protected readonly getBoolean: (originBool?: boolean | string, propertyName?: string) => boolean | undefined;
|
|
10
|
+
protected readonly DEFAULT_CLOSE_BUTTON: string;
|
|
11
|
+
id: InputSignal<DBNotificationProps["id"]>;
|
|
12
|
+
className: InputSignal<DBNotificationProps["className"]>;
|
|
13
|
+
ariaLive: InputSignal<DBNotificationProps["ariaLive"]>;
|
|
14
|
+
semantic: InputSignal<DBNotificationProps["semantic"]>;
|
|
15
|
+
variant: InputSignal<DBNotificationProps["variant"]>;
|
|
16
|
+
icon: InputSignal<DBNotificationProps["icon"]>;
|
|
17
|
+
showIcon: InputSignal<DBNotificationProps["showIcon"]>;
|
|
18
|
+
linkVariant: InputSignal<DBNotificationProps["linkVariant"]>;
|
|
19
|
+
headline: InputSignal<DBNotificationProps["headline"]>;
|
|
20
|
+
showHeadline: InputSignal<DBNotificationProps["showHeadline"]>;
|
|
21
|
+
text: InputSignal<DBNotificationProps["text"]>;
|
|
22
|
+
timestamp: InputSignal<DBNotificationProps["timestamp"]>;
|
|
23
|
+
showTimestamp: InputSignal<DBNotificationProps["showTimestamp"]>;
|
|
24
|
+
closeable: InputSignal<DBNotificationProps["closeable"]>;
|
|
25
|
+
closeButtonId: InputSignal<DBNotificationProps["closeButtonId"]>;
|
|
26
|
+
closeButtonText: InputSignal<DBNotificationProps["closeButtonText"]>;
|
|
27
|
+
close: import("@angular/core").OutputEmitterRef<void | MouseEvent | undefined>;
|
|
28
|
+
_ref: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
29
|
+
handleClose(event?: ClickEvent<HTMLButtonElement> | void): void;
|
|
30
|
+
constructor();
|
|
31
|
+
/**
|
|
32
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
33
|
+
* @param element the ref for the component
|
|
34
|
+
* @param customElementSelector the custom element like `my-component`
|
|
35
|
+
*/
|
|
36
|
+
private enableAttributePassing;
|
|
37
|
+
ngAfterViewInit(): void;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DBNotification, never>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DBNotification, "db-notification", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "ariaLive": { "alias": "ariaLive"; "required": false; "isSignal": true; }; "semantic": { "alias": "semantic"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "linkVariant": { "alias": "linkVariant"; "required": false; "isSignal": true; }; "headline": { "alias": "headline"; "required": false; "isSignal": true; }; "showHeadline": { "alias": "showHeadline"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; "timestamp": { "alias": "timestamp"; "required": false; "isSignal": true; }; "showTimestamp": { "alias": "showTimestamp"; "required": false; "isSignal": true; }; "closeable": { "alias": "closeable"; "required": false; "isSignal": true; }; "closeButtonId": { "alias": "closeButtonId"; "required": false; "isSignal": true; }; "closeButtonText": { "alias": "closeButtonText"; "required": false; "isSignal": true; }; }, { "close": "close"; }, never, ["[image]", "*", "[link]"], true, never>;
|
|
40
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DBPopover } from './popover';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { GapProps, GlobalProps, GlobalState, InitializedState, PlacementProps, PopoverProps, PopoverState, SpacingProps } from '../../shared/model';
|
|
2
|
+
export type DBPopoverDefaultProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Use open to disable the default hover/focus behavior to use it on click or other trigger.
|
|
5
|
+
*/
|
|
6
|
+
open?: boolean | string;
|
|
7
|
+
/**
|
|
8
|
+
* The trigger to open the popover e.g. a button
|
|
9
|
+
*/
|
|
10
|
+
trigger?: any;
|
|
11
|
+
};
|
|
12
|
+
export type DBPopoverProps = DBPopoverDefaultProps & GlobalProps & SpacingProps & PlacementProps & GapProps & PopoverProps;
|
|
13
|
+
export type DBPopoverDefaultState = {
|
|
14
|
+
isExpanded?: boolean;
|
|
15
|
+
getTrigger: () => Element | null;
|
|
16
|
+
};
|
|
17
|
+
export type DBPopoverState = DBPopoverDefaultState & GlobalState & PopoverState & InitializedState;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ElementRef, AfterViewInit, InputSignal } from "@angular/core";
|
|
2
|
+
import { DBPopoverProps } from "./model";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DBPopover implements AfterViewInit {
|
|
5
|
+
protected readonly cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
6
|
+
protected readonly getBooleanAsString: (originBool?: boolean | string) => any;
|
|
7
|
+
id: InputSignal<DBPopoverProps["id"]>;
|
|
8
|
+
className: InputSignal<DBPopoverProps["className"]>;
|
|
9
|
+
spacing: InputSignal<DBPopoverProps["spacing"]>;
|
|
10
|
+
gap: InputSignal<DBPopoverProps["gap"]>;
|
|
11
|
+
animation: InputSignal<DBPopoverProps["animation"]>;
|
|
12
|
+
open: InputSignal<DBPopoverProps["open"]>;
|
|
13
|
+
delay: InputSignal<DBPopoverProps["delay"]>;
|
|
14
|
+
width: InputSignal<DBPopoverProps["width"]>;
|
|
15
|
+
placement: InputSignal<DBPopoverProps["placement"]>;
|
|
16
|
+
_ref: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
17
|
+
initialized: import("@angular/core").WritableSignal<boolean>;
|
|
18
|
+
isExpanded: import("@angular/core").WritableSignal<boolean | undefined>;
|
|
19
|
+
_documentScrollListenerCallbackId: import("@angular/core").WritableSignal<string | undefined>;
|
|
20
|
+
_observer: import("@angular/core").WritableSignal<IntersectionObserver | undefined>;
|
|
21
|
+
handleEscape(event: any): void;
|
|
22
|
+
handleAutoPlacement(): void;
|
|
23
|
+
handleDocumentScroll(event: any): void;
|
|
24
|
+
handleEnter(): void;
|
|
25
|
+
handleLeave(event?: any): void;
|
|
26
|
+
getTrigger(): Element | null;
|
|
27
|
+
constructor();
|
|
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<DBPopover, never>;
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DBPopover, "db-popover", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "spacing": { "alias": "spacing"; "required": false; "isSignal": true; }; "gap": { "alias": "gap"; "required": false; "isSignal": true; }; "animation": { "alias": "animation"; "required": false; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; "delay": { "alias": "delay"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "placement": { "alias": "placement"; "required": false; "isSignal": true; }; }, {}, never, ["[trigger]", "*"], true, never>;
|
|
37
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DBRadio } from './radio';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ChangeEventProps, ChangeEventState, FocusEventProps, FocusEventState, FormCheckProps, FormProps, FormState, GlobalProps, GlobalState, InitializedState, SizeProps } from '../../shared/model';
|
|
2
|
+
export type DBRadioDefaultProps = {};
|
|
3
|
+
export type DBRadioProps = DBRadioDefaultProps & GlobalProps & ChangeEventProps<HTMLInputElement> & FocusEventProps<HTMLInputElement> & FormProps & FormCheckProps & SizeProps;
|
|
4
|
+
export type DBRadioDefaultState = {};
|
|
5
|
+
export type DBRadioState = DBRadioDefaultState & GlobalState & ChangeEventState<HTMLInputElement> & FocusEventState<HTMLInputElement> & FormState & InitializedState;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { ElementRef, AfterViewInit, InputSignal, ModelSignal, Renderer2 } from "@angular/core";
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { ChangeEvent, InteractionEvent } from "../../shared/model";
|
|
4
|
+
import { DBRadioProps } from "./model";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class DBRadio implements AfterViewInit, ControlValueAccessor {
|
|
7
|
+
private renderer;
|
|
8
|
+
protected readonly getHideProp: (show?: boolean | string) => any;
|
|
9
|
+
protected readonly cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
10
|
+
protected readonly getBoolean: (originBool?: boolean | string, propertyName?: string) => boolean | undefined;
|
|
11
|
+
id: InputSignal<DBRadioProps["id"]>;
|
|
12
|
+
checked: InputSignal<DBRadioProps["checked"]>;
|
|
13
|
+
size: InputSignal<DBRadioProps["size"]>;
|
|
14
|
+
showLabel: InputSignal<DBRadioProps["showLabel"]>;
|
|
15
|
+
showRequiredAsterisk: InputSignal<DBRadioProps["showRequiredAsterisk"]>;
|
|
16
|
+
className: InputSignal<DBRadioProps["className"]>;
|
|
17
|
+
validation: InputSignal<DBRadioProps["validation"]>;
|
|
18
|
+
name: InputSignal<DBRadioProps["name"]>;
|
|
19
|
+
disabled: ModelSignal<DBRadioProps["disabled"]>;
|
|
20
|
+
value: ModelSignal<DBRadioProps["value"]>;
|
|
21
|
+
required: InputSignal<DBRadioProps["required"]>;
|
|
22
|
+
label: InputSignal<DBRadioProps["label"]>;
|
|
23
|
+
change: import("@angular/core").OutputEmitterRef<void | Event>;
|
|
24
|
+
blur: import("@angular/core").OutputEmitterRef<void | FocusEvent>;
|
|
25
|
+
focus: import("@angular/core").OutputEmitterRef<void | FocusEvent>;
|
|
26
|
+
_ref: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
27
|
+
initialized: import("@angular/core").WritableSignal<boolean>;
|
|
28
|
+
_id: import("@angular/core").WritableSignal<string | undefined>;
|
|
29
|
+
handleChange(event: ChangeEvent<HTMLInputElement> | any): void;
|
|
30
|
+
handleBlur(event: InteractionEvent<HTMLInputElement> | any): void;
|
|
31
|
+
handleFocus(event: InteractionEvent<HTMLInputElement> | any): void;
|
|
32
|
+
constructor(renderer: Renderer2);
|
|
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
|
+
writeValue(value: any): void;
|
|
40
|
+
propagateChange(_: any): void;
|
|
41
|
+
registerOnChange(onChange: any): void;
|
|
42
|
+
registerOnTouched(onTouched: any): void;
|
|
43
|
+
setDisabledState(disabled: boolean): void;
|
|
44
|
+
ngAfterViewInit(): void;
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DBRadio, never>;
|
|
46
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DBRadio, "db-radio", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "showLabel": { "alias": "showLabel"; "required": false; "isSignal": true; }; "showRequiredAsterisk": { "alias": "showRequiredAsterisk"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "validation": { "alias": "validation"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, { "disabled": "disabledChange"; "value": "valueChange"; "change": "change"; "blur": "blur"; "focus": "focus"; }, never, ["*"], true, never>;
|
|
47
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DBSection } from './section';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ContainerWidthProps, GlobalProps, GlobalState, SpacingProps } from '../../shared/model';
|
|
2
|
+
export type DBSectionDefaultProps = {};
|
|
3
|
+
export type DBSectionProps = DBSectionDefaultProps & GlobalProps & SpacingProps & ContainerWidthProps;
|
|
4
|
+
export type DBSectionDefaultState = {};
|
|
5
|
+
export type DBSectionState = DBSectionDefaultState & GlobalState;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ElementRef, AfterViewInit, InputSignal } from "@angular/core";
|
|
2
|
+
import { DBSectionProps } from "./model";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DBSection implements AfterViewInit {
|
|
5
|
+
protected readonly cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
6
|
+
id: InputSignal<DBSectionProps["id"]>;
|
|
7
|
+
className: InputSignal<DBSectionProps["className"]>;
|
|
8
|
+
spacing: InputSignal<DBSectionProps["spacing"]>;
|
|
9
|
+
width: InputSignal<DBSectionProps["width"]>;
|
|
10
|
+
_ref: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
11
|
+
_id: import("@angular/core").WritableSignal<string | undefined>;
|
|
12
|
+
constructor();
|
|
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<DBSection, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DBSection, "db-section", never, { "id": { "alias": "id"; "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; }; }, {}, never, ["*"], true, never>;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DBSelect } from './select';
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ChangeEventProps, ChangeEventState, ClickEventProps, ClickEventState, FocusEventProps, FocusEventState, FormMessageProps, FormProps, FormSizeProps, FormState, FromValidState, GlobalProps, GlobalState, IconProps, InitializedState, InputEventProps, InputEventState, ShowIconProps } from '../../shared/model';
|
|
2
|
+
export type DBSelectDefaultProps = {
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated
|
|
5
|
+
* Enables multiple select, but it isn't styled, please use DBCustomSelect/db-custom-select instead
|
|
6
|
+
*/
|
|
7
|
+
multiple?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* If you don't/can't use children/slots you can pass in the options as an array.
|
|
10
|
+
*/
|
|
11
|
+
options?: DBSelectOptionType[];
|
|
12
|
+
};
|
|
13
|
+
export type DBSelectOptionType = {
|
|
14
|
+
/**
|
|
15
|
+
* Identifier for option
|
|
16
|
+
*/
|
|
17
|
+
id?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Disables this option
|
|
20
|
+
*/
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Selects this option
|
|
24
|
+
*/
|
|
25
|
+
selected?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* If the value is different from the label you want to show to the user.
|
|
28
|
+
*/
|
|
29
|
+
label?: string;
|
|
30
|
+
/**
|
|
31
|
+
* If you want to use optgroup you can nest options here.
|
|
32
|
+
*/
|
|
33
|
+
options?: DBSelectOptionType[];
|
|
34
|
+
/**
|
|
35
|
+
* The main value you select, will be shown as default label if no label is set.
|
|
36
|
+
*/
|
|
37
|
+
value: string | string[] | number;
|
|
38
|
+
};
|
|
39
|
+
export type DBSelectProps = GlobalProps & ClickEventProps<HTMLSelectElement> & ChangeEventProps<HTMLSelectElement> & FocusEventProps<HTMLSelectElement> & InputEventProps<HTMLSelectElement> & FormProps & IconProps & FormMessageProps & DBSelectDefaultProps & ShowIconProps & FormSizeProps;
|
|
40
|
+
export type DBSelectDefaultState = {
|
|
41
|
+
_placeholderId: string;
|
|
42
|
+
getOptionLabel: (option: DBSelectOptionType) => string;
|
|
43
|
+
};
|
|
44
|
+
export type DBSelectState = DBSelectDefaultState & GlobalState & ClickEventState<HTMLSelectElement> & ChangeEventState<HTMLSelectElement> & FocusEventState<HTMLSelectElement> & InputEventState<HTMLSelectElement> & FormState & InitializedState & FromValidState;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { ElementRef, AfterViewInit, InputSignal, ModelSignal, Renderer2 } from "@angular/core";
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { ChangeEvent, ClickEvent, InputEvent, InteractionEvent } from "../../shared/model";
|
|
4
|
+
import { DBSelectOptionType, DBSelectProps } from "./model";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class DBSelect 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 getOptionKey: (option: {
|
|
14
|
+
id?: string;
|
|
15
|
+
value?: string | number | string[] | undefined;
|
|
16
|
+
}, prefix: string) => string;
|
|
17
|
+
protected readonly stringPropVisible: (givenString?: string, showString?: boolean | string) => boolean;
|
|
18
|
+
protected readonly DEFAULT_VALID_MESSAGE: string;
|
|
19
|
+
id: InputSignal<DBSelectProps["id"]>;
|
|
20
|
+
invalidMessage: InputSignal<DBSelectProps["invalidMessage"]>;
|
|
21
|
+
message: InputSignal<DBSelectProps["message"]>;
|
|
22
|
+
showMessage: InputSignal<DBSelectProps["showMessage"]>;
|
|
23
|
+
value: ModelSignal<DBSelectProps["value"]>;
|
|
24
|
+
validMessage: InputSignal<DBSelectProps["validMessage"]>;
|
|
25
|
+
validation: InputSignal<DBSelectProps["validation"]>;
|
|
26
|
+
required: InputSignal<DBSelectProps["required"]>;
|
|
27
|
+
className: InputSignal<DBSelectProps["className"]>;
|
|
28
|
+
variant: InputSignal<DBSelectProps["variant"]>;
|
|
29
|
+
showLabel: InputSignal<DBSelectProps["showLabel"]>;
|
|
30
|
+
showRequiredAsterisk: InputSignal<DBSelectProps["showRequiredAsterisk"]>;
|
|
31
|
+
icon: InputSignal<DBSelectProps["icon"]>;
|
|
32
|
+
showIcon: InputSignal<DBSelectProps["showIcon"]>;
|
|
33
|
+
label: InputSignal<DBSelectProps["label"]>;
|
|
34
|
+
disabled: ModelSignal<DBSelectProps["disabled"]>;
|
|
35
|
+
name: InputSignal<DBSelectProps["name"]>;
|
|
36
|
+
size: InputSignal<DBSelectProps["size"]>;
|
|
37
|
+
autocomplete: InputSignal<DBSelectProps["autocomplete"]>;
|
|
38
|
+
multiple: InputSignal<DBSelectProps["multiple"]>;
|
|
39
|
+
ariaDescribedBy: InputSignal<DBSelectProps["ariaDescribedBy"]>;
|
|
40
|
+
options: InputSignal<DBSelectProps["options"]>;
|
|
41
|
+
placeholder: InputSignal<DBSelectProps["placeholder"]>;
|
|
42
|
+
messageIcon: InputSignal<DBSelectProps["messageIcon"]>;
|
|
43
|
+
click: import("@angular/core").OutputEmitterRef<void | MouseEvent>;
|
|
44
|
+
input: import("@angular/core").OutputEmitterRef<void | Event>;
|
|
45
|
+
change: import("@angular/core").OutputEmitterRef<void | Event>;
|
|
46
|
+
blur: import("@angular/core").OutputEmitterRef<void | FocusEvent>;
|
|
47
|
+
focus: import("@angular/core").OutputEmitterRef<void | FocusEvent>;
|
|
48
|
+
_ref: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
49
|
+
_id: import("@angular/core").WritableSignal<string | undefined>;
|
|
50
|
+
_messageId: import("@angular/core").WritableSignal<string | undefined>;
|
|
51
|
+
_validMessageId: import("@angular/core").WritableSignal<string | undefined>;
|
|
52
|
+
_invalidMessageId: import("@angular/core").WritableSignal<string | undefined>;
|
|
53
|
+
_invalidMessage: import("@angular/core").WritableSignal<string | undefined>;
|
|
54
|
+
_placeholderId: import("@angular/core").WritableSignal<string>;
|
|
55
|
+
_descByIds: import("@angular/core").WritableSignal<string | undefined>;
|
|
56
|
+
_value: import("@angular/core").WritableSignal<string | undefined>;
|
|
57
|
+
initialized: import("@angular/core").WritableSignal<boolean>;
|
|
58
|
+
_voiceOverFallback: import("@angular/core").WritableSignal<string | undefined>;
|
|
59
|
+
hasValidState(): boolean;
|
|
60
|
+
handleValidation(): void;
|
|
61
|
+
handleClick(event: ClickEvent<HTMLSelectElement> | any): void;
|
|
62
|
+
handleInput(event: InputEvent<HTMLSelectElement> | any): void;
|
|
63
|
+
handleChange(event: ChangeEvent<HTMLSelectElement> | any): void;
|
|
64
|
+
handleBlur(event: InteractionEvent<HTMLSelectElement> | any): void;
|
|
65
|
+
handleFocus(event: InteractionEvent<HTMLSelectElement> | any): void;
|
|
66
|
+
getOptionLabel(option: DBSelectOptionType): string;
|
|
67
|
+
trackByOptgroupOption0(_: number, optgroupOption: any): string;
|
|
68
|
+
constructor(renderer: Renderer2);
|
|
69
|
+
/**
|
|
70
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
71
|
+
* @param element the ref for the component
|
|
72
|
+
* @param customElementSelector the custom element like `my-component`
|
|
73
|
+
*/
|
|
74
|
+
private enableAttributePassing;
|
|
75
|
+
writeValue(value: any): void;
|
|
76
|
+
propagateChange(_: any): void;
|
|
77
|
+
registerOnChange(onChange: any): void;
|
|
78
|
+
registerOnTouched(onTouched: any): void;
|
|
79
|
+
setDisabledState(disabled: boolean): void;
|
|
80
|
+
ngAfterViewInit(): void;
|
|
81
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DBSelect, never>;
|
|
82
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DBSelect, "db-select", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "invalidMessage": { "alias": "invalidMessage"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; "showMessage": { "alias": "showMessage"; "required": false; "isSignal": true; }; "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; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "showLabel": { "alias": "showLabel"; "required": false; "isSignal": true; }; "showRequiredAsterisk": { "alias": "showRequiredAsterisk"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "autocomplete": { "alias": "autocomplete"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "ariaDescribedBy": { "alias": "ariaDescribedBy"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "messageIcon": { "alias": "messageIcon"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "disabled": "disabledChange"; "click": "click"; "input": "input"; "change": "change"; "blur": "blur"; "focus": "focus"; }, never, ["*"], true, never>;
|
|
83
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DBShell } from './shell';
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { GlobalProps, GlobalState, ShellControlPanelDesktopPositionType, ShellControlPanelMobilePositionType } from '../../shared/model';
|
|
2
|
+
export declare const ShellSubNavigationMobilePosition: readonly ["top", "bottom"];
|
|
3
|
+
export type ShellSubNavigationMobilePositionType = (typeof ShellSubNavigationMobilePosition)[number];
|
|
4
|
+
export type DBShellDefaultProps = {
|
|
5
|
+
/**
|
|
6
|
+
* The slot can be used for React to set a desktopControlPanel.
|
|
7
|
+
*/
|
|
8
|
+
controlPanelDesktop?: any;
|
|
9
|
+
/**
|
|
10
|
+
* Change the position of the desktop content panel
|
|
11
|
+
*/
|
|
12
|
+
controlPanelDesktopPosition?: ShellControlPanelDesktopPositionType;
|
|
13
|
+
/**
|
|
14
|
+
* The slot can be used for React to set a mobileControlPanel.
|
|
15
|
+
*/
|
|
16
|
+
controlPanelMobile?: any;
|
|
17
|
+
/**
|
|
18
|
+
* Change the position of the mobile content panel
|
|
19
|
+
*/
|
|
20
|
+
controlPanelMobilePosition?: ShellControlPanelMobilePositionType;
|
|
21
|
+
/**
|
|
22
|
+
* Set this to have a transition with opacity to avoid layout-shifts https://simonhearne.com/2021/layout-shifts-webfonts/
|
|
23
|
+
*/
|
|
24
|
+
fadeIn?: boolean | string;
|
|
25
|
+
/**
|
|
26
|
+
* Adds `class` to `<main>` element
|
|
27
|
+
*/
|
|
28
|
+
mainClass?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The slot can be used for React to set a subNavigation.
|
|
31
|
+
*/
|
|
32
|
+
subNavigation?: any;
|
|
33
|
+
/**
|
|
34
|
+
* Change the position of the optional sub navigation for desktop
|
|
35
|
+
*/
|
|
36
|
+
subNavigationDesktopPosition?: ShellControlPanelDesktopPositionType;
|
|
37
|
+
/**
|
|
38
|
+
* Change the position of the optional sub navigation for mobile
|
|
39
|
+
*/
|
|
40
|
+
subNavigationMobilePosition?: ShellSubNavigationMobilePositionType;
|
|
41
|
+
/**
|
|
42
|
+
* Shows sub-navigation
|
|
43
|
+
*/
|
|
44
|
+
showSubNavigation?: boolean | string;
|
|
45
|
+
};
|
|
46
|
+
export type DBShellProps = DBShellDefaultProps & GlobalProps;
|
|
47
|
+
export type DBShellDefaultState = {
|
|
48
|
+
fontsLoaded?: boolean;
|
|
49
|
+
};
|
|
50
|
+
export type DBShellState = DBShellDefaultState & GlobalState;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ElementRef, AfterViewInit, InputSignal } from "@angular/core";
|
|
2
|
+
import { DBShellProps } from "./model";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DBShell implements AfterViewInit {
|
|
5
|
+
protected readonly cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
6
|
+
protected readonly getBooleanAsString: (originBool?: boolean | string) => any;
|
|
7
|
+
fadeIn: InputSignal<DBShellProps["fadeIn"]>;
|
|
8
|
+
id: InputSignal<DBShellProps["id"]>;
|
|
9
|
+
className: InputSignal<DBShellProps["className"]>;
|
|
10
|
+
controlPanelDesktopPosition: InputSignal<DBShellProps["controlPanelDesktopPosition"]>;
|
|
11
|
+
controlPanelMobilePosition: InputSignal<DBShellProps["controlPanelMobilePosition"]>;
|
|
12
|
+
subNavigationDesktopPosition: InputSignal<DBShellProps["subNavigationDesktopPosition"]>;
|
|
13
|
+
subNavigationMobilePosition: InputSignal<DBShellProps["subNavigationMobilePosition"]>;
|
|
14
|
+
showSubNavigation: InputSignal<DBShellProps["showSubNavigation"]>;
|
|
15
|
+
mainClass: InputSignal<DBShellProps["mainClass"]>;
|
|
16
|
+
_ref: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
17
|
+
fontsLoaded: import("@angular/core").WritableSignal<boolean | undefined>;
|
|
18
|
+
constructor();
|
|
19
|
+
/**
|
|
20
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
21
|
+
* @param element the ref for the component
|
|
22
|
+
* @param customElementSelector the custom element like `my-component`
|
|
23
|
+
*/
|
|
24
|
+
private enableAttributePassing;
|
|
25
|
+
ngAfterViewInit(): void;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DBShell, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DBShell, "db-shell", never, { "fadeIn": { "alias": "fadeIn"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "controlPanelDesktopPosition": { "alias": "controlPanelDesktopPosition"; "required": false; "isSignal": true; }; "controlPanelMobilePosition": { "alias": "controlPanelMobilePosition"; "required": false; "isSignal": true; }; "subNavigationDesktopPosition": { "alias": "subNavigationDesktopPosition"; "required": false; "isSignal": true; }; "subNavigationMobilePosition": { "alias": "subNavigationMobilePosition"; "required": false; "isSignal": true; }; "showSubNavigation": { "alias": "showSubNavigation"; "required": false; "isSignal": true; }; "mainClass": { "alias": "mainClass"; "required": false; "isSignal": true; }; }, {}, never, ["[control-panel-desktop]", "[control-panel-mobile]", "[sub-navigation]", "*"], true, never>;
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DBShellSubNavigation } from './shell-sub-navigation';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { GlobalProps, GlobalState, SidebarProps, SidebarState, ToggleEventState } from '../../shared/model';
|
|
2
|
+
export type DBShellSubNavigationDefaultProps = {};
|
|
3
|
+
export type DBShellSubNavigationProps = DBShellSubNavigationDefaultProps & GlobalProps & SidebarProps;
|
|
4
|
+
export type DBShellSubNavigationDefaultState = {};
|
|
5
|
+
export type DBShellSubNavigationState = DBShellSubNavigationDefaultState & GlobalState & ToggleEventState<HTMLButtonElement> & SidebarState;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ElementRef, AfterViewInit, InputSignal } from "@angular/core";
|
|
2
|
+
import { DBShellSubNavigationProps } from "./model";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DBShellSubNavigation implements AfterViewInit {
|
|
5
|
+
protected readonly getBooleanAsString: (originBool?: boolean | string) => any;
|
|
6
|
+
protected readonly cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
7
|
+
expanded: InputSignal<DBShellSubNavigationProps["expanded"]>;
|
|
8
|
+
expandButtonTooltip: InputSignal<DBShellSubNavigationProps["expandButtonTooltip"]>;
|
|
9
|
+
id: InputSignal<DBShellSubNavigationProps["id"]>;
|
|
10
|
+
className: InputSignal<DBShellSubNavigationProps["className"]>;
|
|
11
|
+
_ref: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
12
|
+
_id: import("@angular/core").WritableSignal<string | undefined>;
|
|
13
|
+
_open: import("@angular/core").WritableSignal<boolean>;
|
|
14
|
+
handleToggle(event: any): void;
|
|
15
|
+
getToggleButtonText(): string | 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
|
+
ngOnInit(): void;
|
|
24
|
+
ngAfterViewInit(): void;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DBShellSubNavigation, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DBShellSubNavigation, "db-shell-sub-navigation", never, { "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; "expandButtonTooltip": { "alias": "expandButtonTooltip"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DBStack } from './stack';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { GapSpacingProps, GlobalProps, GlobalState } from '../../shared/model';
|
|
2
|
+
export declare const StackVariantList: readonly ["simple", "divider"];
|
|
3
|
+
export type StackVariantType = (typeof StackVariantList)[number];
|
|
4
|
+
export declare const StackDirectionList: readonly ["row", "column"];
|
|
5
|
+
export type StackDirectionType = (typeof StackDirectionList)[number];
|
|
6
|
+
export declare const StackAlignmentList: readonly ["stretch", "start", "end", "center"];
|
|
7
|
+
export type StackAlignmentType = (typeof StackAlignmentList)[number];
|
|
8
|
+
export declare const StackJustifyContentList: readonly ["space-between", "start", "end", "center"];
|
|
9
|
+
export type StackJustifyContentType = (typeof StackJustifyContentList)[number];
|
|
10
|
+
export type DBStackDefaultProps = {
|
|
11
|
+
/**
|
|
12
|
+
* Change variant of stack. To use variant="divider" add a DBDivider after each element
|
|
13
|
+
*/
|
|
14
|
+
variant?: StackVariantType;
|
|
15
|
+
/**
|
|
16
|
+
* Set the direction of the stack. Defaults to "column"
|
|
17
|
+
*/
|
|
18
|
+
direction?: StackDirectionType;
|
|
19
|
+
/**
|
|
20
|
+
* If the stack should wrap if parent is too small otherwise you get an overflow
|
|
21
|
+
*/
|
|
22
|
+
wrap?: boolean | string;
|
|
23
|
+
/**
|
|
24
|
+
* Represents css align-items
|
|
25
|
+
*/
|
|
26
|
+
alignment?: StackAlignmentType;
|
|
27
|
+
/**
|
|
28
|
+
* Represents css justify-content
|
|
29
|
+
*/
|
|
30
|
+
justifyContent?: StackJustifyContentType;
|
|
31
|
+
};
|
|
32
|
+
export type DBStackProps = DBStackDefaultProps & GlobalProps & GapSpacingProps;
|
|
33
|
+
export type DBStackDefaultState = {};
|
|
34
|
+
export type DBStackState = DBStackDefaultState & GlobalState;
|