@db-ux/v-core-components 3.0.2-copilot2-e7bf98b → 3.0.2-shell2-badc28f
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/dist/components/button/button.vue.d.ts +2 -2
- package/dist/components/{brand/brand.vue.d.ts → control-panel-brand/control-panel-brand.vue.d.ts} +5 -4
- package/dist/components/control-panel-brand/index.d.ts +1 -0
- package/dist/components/control-panel-brand/model.d.ts +5 -0
- package/dist/components/control-panel-desktop/control-panel-desktop.vue.d.ts +30 -0
- package/dist/components/control-panel-desktop/index.d.ts +1 -0
- package/dist/components/control-panel-desktop/model.d.ts +7 -0
- package/dist/components/control-panel-flat-icon-navigation/control-panel-flat-icon-navigation.vue.d.ts +18 -0
- package/dist/components/control-panel-flat-icon-navigation/index.d.ts +1 -0
- package/dist/components/control-panel-flat-icon-navigation/model.d.ts +7 -0
- package/dist/components/control-panel-meta-navigation/control-panel-meta-navigation.vue.d.ts +16 -0
- package/dist/components/control-panel-meta-navigation/index.d.ts +1 -0
- package/dist/components/control-panel-meta-navigation/model.d.ts +5 -0
- package/dist/components/control-panel-mobile/control-panel-mobile.vue.d.ts +33 -0
- package/dist/components/control-panel-mobile/index.d.ts +1 -0
- package/dist/components/control-panel-mobile/model.d.ts +30 -0
- package/dist/components/control-panel-primary-actions/control-panel-primary-actions.vue.d.ts +16 -0
- package/dist/components/control-panel-primary-actions/index.d.ts +1 -0
- package/dist/components/control-panel-primary-actions/model.d.ts +5 -0
- package/dist/components/control-panel-secondary-actions/control-panel-secondary-actions.vue.d.ts +16 -0
- package/dist/components/control-panel-secondary-actions/index.d.ts +1 -0
- package/dist/components/control-panel-secondary-actions/model.d.ts +5 -0
- package/dist/components/custom-select/model.d.ts +4 -1
- package/dist/components/drawer/drawer.vue.d.ts +1 -0
- package/dist/components/drawer/model.d.ts +5 -1
- package/dist/components/navigation/model.d.ts +14 -5
- package/dist/components/navigation/navigation.vue.d.ts +7 -3
- package/dist/components/navigation-item/model.d.ts +9 -24
- package/dist/components/navigation-item/navigation-item.vue.d.ts +3 -12
- package/dist/components/navigation-item-group/index.d.ts +1 -0
- package/dist/components/navigation-item-group/model.d.ts +26 -0
- package/dist/components/navigation-item-group/navigation-item-group.vue.d.ts +29 -0
- package/dist/components/shell/index.d.ts +1 -0
- package/dist/components/shell/model.d.ts +50 -0
- package/dist/components/shell/shell.vue.d.ts +30 -0
- package/dist/components/shell-sub-navigation/index.d.ts +1 -0
- package/dist/components/shell-sub-navigation/model.d.ts +5 -0
- package/dist/components/shell-sub-navigation/shell-sub-navigation.vue.d.ts +20 -0
- package/dist/components/tab-item/tab-item.vue.d.ts +1 -1
- package/dist/components/tabs/model.d.ts +3 -11
- package/dist/components/tabs/tabs.vue.d.ts +2 -2
- package/dist/components/tag/tag.vue.d.ts +1 -1
- package/dist/db-ux.es.js +2427 -1996
- package/dist/db-ux.umd.js +1 -1
- package/dist/index.d.ts +19 -6
- package/dist/shared/constants.d.ts +3 -0
- package/dist/shared/model.d.ts +82 -3
- package/dist/utils/floating-components.d.ts +17 -1
- package/dist/utils/navigation.d.ts +2 -6
- package/package.json +6 -8
- package/agent/Accordion.md +0 -42
- package/agent/AccordionItem.md +0 -31
- package/agent/Badge.md +0 -38
- package/agent/Brand.md +0 -19
- package/agent/Button.md +0 -47
- package/agent/Card.md +0 -29
- package/agent/Checkbox.md +0 -39
- package/agent/CustomSelect.md +0 -79
- package/agent/Divider.md +0 -27
- package/agent/Drawer.md +0 -91
- package/agent/Header.md +0 -35
- package/agent/Icon.md +0 -26
- package/agent/Infotext.md +0 -29
- package/agent/Input.md +0 -48
- package/agent/Link.md +0 -42
- package/agent/Navigation.md +0 -23
- package/agent/NavigationItem.md +0 -29
- package/agent/Notification.md +0 -40
- package/agent/Page.md +0 -33
- package/agent/Popover.md +0 -50
- package/agent/Radio.md +0 -29
- package/agent/Section.md +0 -27
- package/agent/Select.md +0 -70
- package/agent/Stack.md +0 -41
- package/agent/Switch.md +0 -36
- package/agent/TabItem.md +0 -29
- package/agent/Tabs.md +0 -55
- package/agent/Tag.md +0 -38
- package/agent/Textarea.md +0 -43
- package/agent/Tooltip.md +0 -48
- package/agent/_instructions.md +0 -31
- package/dist/components/brand/index.d.ts +0 -1
- package/dist/components/brand/model.d.ts +0 -10
- package/dist/components/header/header.vue.d.ts +0 -36
- package/dist/components/header/index.d.ts +0 -1
- package/dist/components/header/model.d.ts +0 -44
- package/dist/components/page/index.d.ts +0 -1
- package/dist/components/page/model.d.ts +0 -36
- package/dist/components/page/page.vue.d.ts +0 -25
package/README.md
CHANGED
|
@@ -95,17 +95,6 @@ Both Inputs in this example do the same:
|
|
|
95
95
|
</template>
|
|
96
96
|
```
|
|
97
97
|
|
|
98
|
-
## Documentation for AI Agents
|
|
99
|
-
|
|
100
|
-
We provide a documentation for every component in the DB UX Design System via `docs` folder.
|
|
101
|
-
To consume those documentation for AI Agents the best way is to copy the `docs` folder into your project.
|
|
102
|
-
|
|
103
|
-
We provide a CLI tool to do this automatically, which you can run with:
|
|
104
|
-
|
|
105
|
-
```shell
|
|
106
|
-
npx @db-ux/agent-cli
|
|
107
|
-
```
|
|
108
|
-
|
|
109
98
|
## Deutsche Bahn brand
|
|
110
99
|
|
|
111
100
|
As we'd like to perfectly support our users and customers on their digital journey, the usage of Deutsche Bahn brand and trademarks are bound of clear guidelines and restrictions even if being used with the code that we're providing with this product; Deutsche Bahn fully reserves all rights regarding the Deutsche Bahn brand, even though that we're providing the code of DB UX Design System products free to use and release it under the Apache 2.0 license.
|
|
@@ -16,10 +16,10 @@ declare const __VLS_component: import("vue").DefineComponent<DBButtonProps, void
|
|
|
16
16
|
onClick: (event: import("../..").ClickEvent<HTMLButtonElement>) => void;
|
|
17
17
|
variant: import("./model").ButtonVariantType | string;
|
|
18
18
|
size: import("../..").SizeType;
|
|
19
|
-
icon: import("@db-ux/core-foundations").IconTypes;
|
|
20
|
-
showIcon: boolean | string;
|
|
21
19
|
noText: boolean | string;
|
|
20
|
+
icon: import("@db-ux/core-foundations").IconTypes;
|
|
22
21
|
width: import("../..").WidthType | string;
|
|
22
|
+
showIcon: boolean | string;
|
|
23
23
|
showIconLeading: boolean | string;
|
|
24
24
|
showIconTrailing: boolean | string;
|
|
25
25
|
iconLeading: import("@db-ux/core-foundations").IconTypes;
|
package/dist/components/{brand/brand.vue.d.ts → control-panel-brand/control-panel-brand.vue.d.ts}
RENAMED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare var __VLS_1: {};
|
|
1
|
+
import { DBControlPanelBrandProps } from "./model";
|
|
2
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
3
3
|
type __VLS_Slots = {} & {
|
|
4
4
|
default?: (props: typeof __VLS_1) => any;
|
|
5
|
+
} & {
|
|
6
|
+
'additional-information'?: (props: typeof __VLS_3) => any;
|
|
5
7
|
};
|
|
6
|
-
declare const __VLS_component: import("vue").DefineComponent<
|
|
8
|
+
declare const __VLS_component: import("vue").DefineComponent<DBControlPanelBrandProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBControlPanelBrandProps> & Readonly<{}>, {
|
|
7
9
|
text: string;
|
|
8
10
|
children: any;
|
|
9
11
|
className: string;
|
|
10
12
|
id: string;
|
|
11
|
-
hideLogo: boolean;
|
|
12
13
|
icon: import("@db-ux/core-foundations").IconTypes;
|
|
13
14
|
showIcon: boolean | string;
|
|
14
15
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DBControlPanelBrand } from './control-panel-brand.vue';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AdditionalInformationSlotProps, GlobalProps, GlobalState, IconProps, ShowIconProps, TextProps } from '../../shared/model';
|
|
2
|
+
export type DBControlPanelBrandDefaultProps = {};
|
|
3
|
+
export type DBControlPanelBrandProps = DBControlPanelBrandDefaultProps & GlobalProps & IconProps & ShowIconProps & TextProps & AdditionalInformationSlotProps;
|
|
4
|
+
export type DBControlPanelBrandDefaultState = {};
|
|
5
|
+
export type DBControlPanelBrandState = DBControlPanelBrandDefaultState & GlobalState;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { DBControlPanelDesktopProps } from "./model";
|
|
2
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {}, __VLS_9: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
brand?: (props: typeof __VLS_1) => any;
|
|
5
|
+
} & {
|
|
6
|
+
default?: (props: typeof __VLS_3) => any;
|
|
7
|
+
} & {
|
|
8
|
+
'meta-navigation'?: (props: typeof __VLS_5) => any;
|
|
9
|
+
} & {
|
|
10
|
+
'primary-actions'?: (props: typeof __VLS_7) => any;
|
|
11
|
+
} & {
|
|
12
|
+
'secondary-actions'?: (props: typeof __VLS_9) => any;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_component: import("vue").DefineComponent<DBControlPanelDesktopProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBControlPanelDesktopProps> & Readonly<{}>, {
|
|
15
|
+
children: any;
|
|
16
|
+
className: string;
|
|
17
|
+
id: string;
|
|
18
|
+
width: import("../..").MaxWidthType;
|
|
19
|
+
orientation: import("../..").OrientationType;
|
|
20
|
+
expanded: boolean | string;
|
|
21
|
+
expandButtonTooltip: string;
|
|
22
|
+
onExpandButtonTooltipFn: (open: boolean) => string;
|
|
23
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DBControlPanelDesktop } from './control-panel-desktop.vue';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ContainerWidthProps, ControlPanelProps, GlobalProps, GlobalState, OrientationProps, SidebarProps, SidebarState, ToggleEventState } from '../../shared/model';
|
|
2
|
+
export type DBControlPanelDesktopDefaultProps = {};
|
|
3
|
+
export type DBControlPanelDesktopProps = DBControlPanelDesktopDefaultProps & GlobalProps & ContainerWidthProps & ControlPanelProps & OrientationProps & SidebarProps;
|
|
4
|
+
export type DBControlPanelDesktopDefaultState = {
|
|
5
|
+
onScroll: () => void;
|
|
6
|
+
};
|
|
7
|
+
export type DBControlPanelDesktopState = DBControlPanelDesktopDefaultState & GlobalState & ToggleEventState<HTMLButtonElement> & SidebarState;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DBControlPanelFlatIconNavigationProps } from "./model";
|
|
2
|
+
declare var __VLS_1: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_1) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<DBControlPanelFlatIconNavigationProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBControlPanelFlatIconNavigationProps> & Readonly<{}>, {
|
|
7
|
+
children: any;
|
|
8
|
+
className: string;
|
|
9
|
+
id: string;
|
|
10
|
+
noText: string | boolean;
|
|
11
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DBControlPanelFlatIconNavigation } from "./control-panel-flat-icon-navigation.vue";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { GlobalProps, GlobalState, InitializedState } from '../../shared/model';
|
|
2
|
+
export type DBControlPanelFlatIconNavigationDefaultProps = {
|
|
3
|
+
noText?: string | boolean;
|
|
4
|
+
};
|
|
5
|
+
export type DBControlPanelFlatIconNavigationProps = DBControlPanelFlatIconNavigationDefaultProps & GlobalProps;
|
|
6
|
+
export type DBControlPanelFlatIconNavigationDefaultState = {};
|
|
7
|
+
export type DBControlPanelFlatIconNavigationState = DBControlPanelFlatIconNavigationDefaultState & GlobalState & InitializedState;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_component: import("vue").DefineComponent<import("../..").GlobalProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("../..").GlobalProps> & Readonly<{}>, {
|
|
6
|
+
children: any;
|
|
7
|
+
className: string;
|
|
8
|
+
id: string;
|
|
9
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DBControlPanelMetaNavigation } from './control-panel-meta-navigation.vue';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { GlobalProps, GlobalState } from '../../shared/model';
|
|
2
|
+
export type DBControlPanelMetaNavigationDefaultProps = {};
|
|
3
|
+
export type DBControlPanelMetaNavigationProps = DBControlPanelMetaNavigationDefaultProps & GlobalProps;
|
|
4
|
+
export type DBControlPanelMetaNavigationDefaultState = {};
|
|
5
|
+
export type DBControlPanelMetaNavigationState = DBControlPanelMetaNavigationDefaultState & GlobalState;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { DBControlPanelMobileProps } from "./model";
|
|
2
|
+
declare var __VLS_5: {}, __VLS_7: {}, __VLS_9: {}, __VLS_11: {}, __VLS_13: {}, __VLS_15: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_5) => any;
|
|
5
|
+
} & {
|
|
6
|
+
'meta-navigation'?: (props: typeof __VLS_7) => any;
|
|
7
|
+
} & {
|
|
8
|
+
'secondary-actions'?: (props: typeof __VLS_9) => any;
|
|
9
|
+
} & {
|
|
10
|
+
'flat-icon-navigation'?: (props: typeof __VLS_11) => any;
|
|
11
|
+
} & {
|
|
12
|
+
brand?: (props: typeof __VLS_13) => any;
|
|
13
|
+
} & {
|
|
14
|
+
'primary-actions'?: (props: typeof __VLS_15) => any;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_component: import("vue").DefineComponent<DBControlPanelMobileProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBControlPanelMobileProps> & Readonly<{}>, {
|
|
17
|
+
children: any;
|
|
18
|
+
className: string;
|
|
19
|
+
id: string;
|
|
20
|
+
onToggle: (open: boolean) => void;
|
|
21
|
+
variant: import("./model").ShellControlPanelMobileVariantType;
|
|
22
|
+
width: import("../..").MaxWidthType;
|
|
23
|
+
position: import("../..").ShellControlPanelMobilePositionType;
|
|
24
|
+
drawerHeadlinePlain: string;
|
|
25
|
+
burgerMenuLabel: string;
|
|
26
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DBControlPanelMobile } from './control-panel-mobile.vue';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ContainerWidthProps, ControlPanelProps, GlobalProps, GlobalState, NavigationBehaviorState, ShellControlPanelMobilePositionType, ToggleEventProps, ToggleEventState } from '../../shared/model';
|
|
2
|
+
export declare const ShellControlPanelMobileVariant: readonly ["drawer", "flat-icon"];
|
|
3
|
+
export type ShellControlPanelMobileVariantType = (typeof ShellControlPanelMobileVariant)[number];
|
|
4
|
+
export type DBControlPanelMobileDefaultProps = {
|
|
5
|
+
/**
|
|
6
|
+
* Text to pass in a headline for the drawer header.
|
|
7
|
+
*/
|
|
8
|
+
drawerHeadlinePlain?: string;
|
|
9
|
+
/**
|
|
10
|
+
* This attribute sets the label for the burger menu button for mobile control-panel-desktops.
|
|
11
|
+
*/
|
|
12
|
+
burgerMenuLabel?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Change the position of the mobile content panel
|
|
15
|
+
*/
|
|
16
|
+
position?: ShellControlPanelMobilePositionType;
|
|
17
|
+
/**
|
|
18
|
+
* Change the variant of the mobile content panel
|
|
19
|
+
*/
|
|
20
|
+
variant?: ShellControlPanelMobileVariantType;
|
|
21
|
+
/**
|
|
22
|
+
* Optional flat icon navigation for a mobile app look. Only visible by using variant="flat-icon" as well.
|
|
23
|
+
*/
|
|
24
|
+
flatIconNavigation?: any;
|
|
25
|
+
};
|
|
26
|
+
export type DBControlPanelMobileProps = DBControlPanelMobileDefaultProps & GlobalProps & ToggleEventProps & ContainerWidthProps & ControlPanelProps;
|
|
27
|
+
export type DBControlPanelMobileDefaultState = {
|
|
28
|
+
open: boolean;
|
|
29
|
+
};
|
|
30
|
+
export type DBControlPanelMobileState = DBControlPanelMobileDefaultState & GlobalState & ToggleEventState<HTMLElement> & NavigationBehaviorState;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_component: import("vue").DefineComponent<import("../..").GlobalProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("../..").GlobalProps> & Readonly<{}>, {
|
|
6
|
+
children: any;
|
|
7
|
+
className: string;
|
|
8
|
+
id: string;
|
|
9
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DBControlPanelPrimaryActions } from './control-panel-primary-actions.vue';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { GlobalProps, GlobalState } from '../../shared/model';
|
|
2
|
+
export type DBControlPanelPrimaryActionsDefaultProps = {};
|
|
3
|
+
export type DBControlPanelPrimaryActionsProps = DBControlPanelPrimaryActionsDefaultProps & GlobalProps;
|
|
4
|
+
export type DBControlPanelPrimaryActionsDefaultState = {};
|
|
5
|
+
export type DBControlPanelPrimaryActionsState = DBControlPanelPrimaryActionsDefaultState & GlobalState;
|
package/dist/components/control-panel-secondary-actions/control-panel-secondary-actions.vue.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_component: import("vue").DefineComponent<import("../..").GlobalProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("../..").GlobalProps> & Readonly<{}>, {
|
|
6
|
+
children: any;
|
|
7
|
+
className: string;
|
|
8
|
+
id: string;
|
|
9
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DBControlPanelSecondaryActions } from './control-panel-secondary-actions.vue';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { GlobalProps, GlobalState } from '../../shared/model';
|
|
2
|
+
export type DBControlPanelSecondaryActionsDefaultProps = {};
|
|
3
|
+
export type DBControlPanelSecondaryActionsProps = DBControlPanelSecondaryActionsDefaultProps & GlobalProps;
|
|
4
|
+
export type DBControlPanelSecondaryActionsDefaultState = {};
|
|
5
|
+
export type DBControlPanelSecondaryActionsState = DBControlPanelSecondaryActionsDefaultState & GlobalState;
|
|
@@ -189,6 +189,9 @@ export type DBCustomSelectDefaultState = {
|
|
|
189
189
|
_infoTextId?: string;
|
|
190
190
|
_internalChangeTimestamp: number;
|
|
191
191
|
_documentClickListenerCallbackId?: string;
|
|
192
|
+
_documentScrollListenerCallbackId?: string;
|
|
193
|
+
handleDocumentScroll: (event: any) => void;
|
|
194
|
+
_observer?: IntersectionObserver;
|
|
192
195
|
_searchValue?: string;
|
|
193
196
|
_userInteraction?: boolean;
|
|
194
197
|
getNativeSelectValue: () => string;
|
|
@@ -199,7 +202,7 @@ export type DBCustomSelectDefaultState = {
|
|
|
199
202
|
searchEnabled: boolean;
|
|
200
203
|
amountOptions: number;
|
|
201
204
|
setDescById: (descId?: string) => void;
|
|
202
|
-
handleTagRemove: (option: CustomSelectOptionType, event?: ClickEvent<HTMLButtonElement> | void) => void;
|
|
205
|
+
handleTagRemove: (option: CustomSelectOptionType, event?: ClickEvent<HTMLButtonElement> | void | any) => void;
|
|
203
206
|
handleSummaryFocus: () => void;
|
|
204
207
|
handleSelect: (value?: string) => void;
|
|
205
208
|
handleSelectAll: (event: any) => void;
|
|
@@ -15,6 +15,7 @@ declare const __VLS_component: import("vue").DefineComponent<DBDrawerProps, void
|
|
|
15
15
|
spacing: import("../../shared/model").SpacingType | string;
|
|
16
16
|
backdrop: import("./model").DrawerBackdropType;
|
|
17
17
|
direction: import("./model").DrawerDirectionType;
|
|
18
|
+
drawerHeaderPlain: string;
|
|
18
19
|
rounded: boolean | string;
|
|
19
20
|
position: import("./model").DrawerPositionType;
|
|
20
21
|
onClose: (event?: KeyboardEvent | MouseEvent | undefined) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ClickEvent, CloseEventProps, CloseEventState, GeneralKeyboardEvent, GlobalProps, GlobalState, InitializedState, InnerCloseButtonProps, SpacingProps, WidthProps } from '../../shared/model';
|
|
2
2
|
export declare const DrawerBackdropList: readonly ["none", "strong", "weak", "invisible"];
|
|
3
3
|
export type DrawerBackdropType = (typeof DrawerBackdropList)[number];
|
|
4
|
-
export declare const DrawerDirectionList: readonly ["left", "right", "up", "down"];
|
|
4
|
+
export declare const DrawerDirectionList: readonly ["custom", "left", "right", "up", "down"];
|
|
5
5
|
export type DrawerDirectionType = (typeof DrawerDirectionList)[number];
|
|
6
6
|
export declare const DrawerVariantList: readonly ["modal", "inside"];
|
|
7
7
|
export type DrawerVariantType = (typeof DrawerVariantList)[number];
|
|
@@ -22,6 +22,10 @@ export type DBDrawerDefaultProps = {
|
|
|
22
22
|
* Slot for changing the header of the drawer.
|
|
23
23
|
*/
|
|
24
24
|
drawerHeader?: any;
|
|
25
|
+
/**
|
|
26
|
+
* Text for changing the header of the drawer.
|
|
27
|
+
*/
|
|
28
|
+
drawerHeaderPlain?: string;
|
|
25
29
|
/**
|
|
26
30
|
* The open attribute opens or closes the drawer based on the state.
|
|
27
31
|
*/
|
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
import { GlobalProps, GlobalState } from '../../shared/model';
|
|
2
|
-
export type DBNavigationDefaultProps = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export type
|
|
1
|
+
import { GlobalProps, GlobalState, InitializedState, NavigationItemGroupVariant, NavigationItemGroupVariantType, OverflowScrollButtonProps, OverflowScrollButtonState } from '../../shared/model';
|
|
2
|
+
export type DBNavigationDefaultProps = {
|
|
3
|
+
showTreeLine?: boolean | string;
|
|
4
|
+
};
|
|
5
|
+
export type DBNavigationProps = DBNavigationDefaultProps & GlobalProps & OverflowScrollButtonProps & NavigationItemGroupVariant;
|
|
6
|
+
export type DBNavigationDefaultState = {
|
|
7
|
+
onScroll: () => void;
|
|
8
|
+
_variant?: NavigationItemGroupVariantType;
|
|
9
|
+
_shellDesktopPosition?: string | null;
|
|
10
|
+
_subNavigationDesktopPosition?: string | null;
|
|
11
|
+
_handleSubNavigation: () => void;
|
|
12
|
+
_isSubNavigation?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export type DBNavigationState = DBNavigationDefaultState & GlobalState & OverflowScrollButtonState & InitializedState;
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import { DBNavigationProps } from "./model";
|
|
2
|
+
declare var __VLS_5: {};
|
|
2
3
|
type __VLS_Slots = {} & {
|
|
3
|
-
default?: (props: typeof
|
|
4
|
+
default?: (props: typeof __VLS_5) => any;
|
|
4
5
|
};
|
|
5
|
-
declare const __VLS_component: import("vue").DefineComponent<
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<DBNavigationProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBNavigationProps> & Readonly<{}>, {
|
|
6
7
|
children: any;
|
|
7
8
|
className: string;
|
|
8
9
|
id: string;
|
|
10
|
+
variant: import("../..").NavigationItemGroupVariantType;
|
|
11
|
+
showTreeLine: boolean | string;
|
|
12
|
+
arrowScrollDistance: number | string;
|
|
9
13
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
14
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
11
15
|
export default _default;
|
|
@@ -1,34 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { NavigationItemSafeTriangle } from '../../utils/navigation';
|
|
1
|
+
import { AdditionalInformationSlotProps, DisabledProps, GlobalProps, GlobalState, IconProps, ShowIconProps } from '../../shared/model';
|
|
3
2
|
export type DBNavigationItemDefaultProps = {
|
|
4
3
|
/**
|
|
5
4
|
* Alternative indicator for active navigation item (bold font). In contrast to the use of aria-current="page" on the contained anchor, this does not guarantee correct a11y.
|
|
6
5
|
*/
|
|
7
6
|
active?: boolean;
|
|
8
7
|
/**
|
|
9
|
-
*
|
|
8
|
+
* If you use DBShell with controlPanelDesktopPosition="left" you need
|
|
9
|
+
* to add a tooltip for collapsed navigation
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
tooltip?: string;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Set the text for the navigation-item
|
|
14
14
|
*/
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* This is for mobile navigation only, if it is set the sub-navigation is a static overlay
|
|
18
|
-
*/
|
|
19
|
-
subNavigationExpanded?: boolean | string;
|
|
20
|
-
};
|
|
21
|
-
export type DBNavigationItemProps = DBNavigationItemDefaultProps & GlobalProps & ClickEventProps<HTMLButtonElement> & IconProps & WidthProps & WrapProps & 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
|
-
navigationItemSafeTriangle?: NavigationItemSafeTriangle;
|
|
32
|
-
autoClose?: boolean;
|
|
15
|
+
text?: string;
|
|
33
16
|
};
|
|
34
|
-
export type
|
|
17
|
+
export type DBNavigationItemProps = DBNavigationItemDefaultProps & GlobalProps & IconProps & ShowIconProps & DisabledProps & AdditionalInformationSlotProps;
|
|
18
|
+
export type DBNavigationItemDefaultState = {};
|
|
19
|
+
export type DBNavigationItemState = DBNavigationItemDefaultState & GlobalState;
|
|
@@ -1,28 +1,19 @@
|
|
|
1
|
-
import { ClickEvent } from "../../shared/model";
|
|
2
1
|
import { DBNavigationItemProps } from "./model";
|
|
3
|
-
declare var __VLS_1: {}, __VLS_3: {}
|
|
2
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
4
3
|
type __VLS_Slots = {} & {
|
|
5
4
|
default?: (props: typeof __VLS_1) => any;
|
|
6
5
|
} & {
|
|
7
|
-
|
|
8
|
-
} & {
|
|
9
|
-
'sub-navigation'?: (props: typeof __VLS_9) => any;
|
|
6
|
+
'additional-information'?: (props: typeof __VLS_3) => any;
|
|
10
7
|
};
|
|
11
8
|
declare const __VLS_component: import("vue").DefineComponent<DBNavigationItemProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBNavigationItemProps> & Readonly<{}>, {
|
|
12
|
-
text: string;
|
|
13
9
|
disabled: boolean | string;
|
|
14
10
|
children: any;
|
|
15
11
|
className: string;
|
|
16
12
|
id: string;
|
|
17
|
-
onClick: (event: ClickEvent<HTMLButtonElement>) => void;
|
|
18
13
|
icon: import("@db-ux/core-foundations").IconTypes;
|
|
19
14
|
showIcon: boolean | string;
|
|
20
|
-
|
|
21
|
-
wrap: boolean | string;
|
|
15
|
+
tooltip: string;
|
|
22
16
|
active: boolean;
|
|
23
|
-
subNavigationExpanded: boolean | string;
|
|
24
|
-
backButtonId: string;
|
|
25
|
-
backButtonText: string;
|
|
26
17
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
18
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
28
19
|
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DBNavigationItemGroup } from './navigation-item-group.vue';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { AdditionalInformationSlotProps, ClickEvent, ClickEventProps, ClickEventState, DisabledProps, GlobalProps, GlobalState, IconProps, InitializedState, NavigationBackButtonProps, NavigationBehaviorState, NavigationItemGroupVariant, ShowIconProps } from '../../shared/model';
|
|
2
|
+
import { NavigationItemSafeTriangle } from '../../utils/navigation';
|
|
3
|
+
import { DBNavigationItemDefaultProps } from '../navigation-item/model';
|
|
4
|
+
export type DBNavigationItemGroupDefaultProps = {
|
|
5
|
+
/**
|
|
6
|
+
* This is for mobile navigation only, if it is set the sub-navigation is a static overlay
|
|
7
|
+
*/
|
|
8
|
+
expanded?: boolean | string;
|
|
9
|
+
};
|
|
10
|
+
export type DBNavigationItemGroupProps = DBNavigationItemGroupDefaultProps & NavigationBackButtonProps & ClickEventProps<HTMLButtonElement> & GlobalProps & IconProps & ShowIconProps & DBNavigationItemDefaultProps & DisabledProps & NavigationItemGroupVariant & AdditionalInformationSlotProps;
|
|
11
|
+
export type DBNavigationItemGroupDefaultState = {
|
|
12
|
+
handleBackClick: (event: ClickEvent<HTMLButtonElement>) => void;
|
|
13
|
+
isSubNavigationExpanded: boolean;
|
|
14
|
+
subNavigationId: string;
|
|
15
|
+
/**
|
|
16
|
+
* Internal state property to show/hide sub-navigation button
|
|
17
|
+
*/
|
|
18
|
+
hasSubNavigation?: boolean;
|
|
19
|
+
hasPopup?: boolean;
|
|
20
|
+
navigationItemSafeTriangle?: NavigationItemSafeTriangle;
|
|
21
|
+
autoClose?: boolean;
|
|
22
|
+
onScroll: () => void;
|
|
23
|
+
handleEscape: (event: any) => void;
|
|
24
|
+
forceClose: () => void;
|
|
25
|
+
};
|
|
26
|
+
export type DBNavigationItemGroupState = DBNavigationItemGroupDefaultState & ClickEventState<HTMLButtonElement> & GlobalState & NavigationBehaviorState & InitializedState;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ClickEvent } from "../../shared/model";
|
|
2
|
+
import { DBNavigationItemGroupProps } from "./model";
|
|
3
|
+
declare var __VLS_1: {}, __VLS_7: {};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
'additional-information'?: (props: typeof __VLS_1) => any;
|
|
6
|
+
} & {
|
|
7
|
+
default?: (props: typeof __VLS_7) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_component: import("vue").DefineComponent<DBNavigationItemGroupProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBNavigationItemGroupProps> & Readonly<{}>, {
|
|
10
|
+
text: string;
|
|
11
|
+
disabled: boolean | string;
|
|
12
|
+
children: any;
|
|
13
|
+
className: string;
|
|
14
|
+
id: string;
|
|
15
|
+
onClick: (event: ClickEvent<HTMLButtonElement>) => void;
|
|
16
|
+
icon: import("@db-ux/core-foundations").IconTypes;
|
|
17
|
+
showIcon: boolean | string;
|
|
18
|
+
expanded: boolean | string;
|
|
19
|
+
active: boolean;
|
|
20
|
+
backButtonId: string;
|
|
21
|
+
backButtonText: string;
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DBShell } from './shell.vue';
|
|
@@ -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,30 @@
|
|
|
1
|
+
import { DBShellProps } from "./model";
|
|
2
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
'control-panel-desktop'?: (props: typeof __VLS_1) => any;
|
|
5
|
+
} & {
|
|
6
|
+
'control-panel-mobile'?: (props: typeof __VLS_3) => any;
|
|
7
|
+
} & {
|
|
8
|
+
'sub-navigation'?: (props: typeof __VLS_5) => any;
|
|
9
|
+
} & {
|
|
10
|
+
default?: (props: typeof __VLS_7) => any;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_component: import("vue").DefineComponent<DBShellProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBShellProps> & Readonly<{}>, {
|
|
13
|
+
children: any;
|
|
14
|
+
className: string;
|
|
15
|
+
id: string;
|
|
16
|
+
controlPanelDesktopPosition: import("../..").ShellControlPanelDesktopPositionType;
|
|
17
|
+
controlPanelMobilePosition: import("../..").ShellControlPanelMobilePositionType;
|
|
18
|
+
fadeIn: boolean | string;
|
|
19
|
+
mainClass: string;
|
|
20
|
+
subNavigationDesktopPosition: import("../..").ShellControlPanelDesktopPositionType;
|
|
21
|
+
subNavigationMobilePosition: import("./model").ShellSubNavigationMobilePositionType;
|
|
22
|
+
showSubNavigation: boolean | string;
|
|
23
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DBShellSubNavigation } from './shell-sub-navigation.vue';
|
|
@@ -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;
|