@db-ux/v-core-components 4.12.1 → 4.13.0-shell-f221975
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/CHANGELOG.md +6 -0
- package/agent/ControlPanelBrand.md +15 -0
- package/agent/ControlPanelDesktop.md +48 -0
- package/agent/ControlPanelMeta.md +19 -0
- package/agent/ControlPanelMobile.md +40 -0
- package/agent/ControlPanelNavigation.md +24 -0
- package/agent/ControlPanelNavigationItem.md +39 -0
- package/agent/ControlPanelPrimaryActions.md +20 -0
- package/agent/ControlPanelSecondaryActions.md +24 -0
- package/agent/Drawer.md +0 -8
- package/agent/Shell.md +28 -0
- package/agent/ShellSubNavigation.md +6 -0
- package/agent/_instructions.md +11 -6
- package/dist/components/accordion/accordion.vue.d.ts +1 -1
- package/dist/components/accordion/model.d.ts +2 -8
- package/dist/components/button/button.vue.d.ts +3 -1
- package/dist/components/button/model.d.ts +8 -0
- 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 +34 -0
- package/dist/components/control-panel-desktop/index.d.ts +1 -0
- package/dist/components/control-panel-desktop/model.d.ts +5 -0
- package/dist/components/control-panel-flat-icon/control-panel-flat-icon.vue.d.ts +22 -0
- package/dist/components/control-panel-flat-icon/index.d.ts +1 -0
- package/dist/components/control-panel-flat-icon/model.d.ts +12 -0
- package/dist/components/control-panel-meta/control-panel-meta.vue.d.ts +18 -0
- package/dist/components/control-panel-meta/index.d.ts +1 -0
- package/dist/components/control-panel-meta/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 +21 -0
- package/dist/components/control-panel-navigation/control-panel-navigation.vue.d.ts +25 -0
- package/dist/components/control-panel-navigation/index.d.ts +1 -0
- package/dist/components/control-panel-navigation/model.d.ts +25 -0
- package/dist/components/control-panel-navigation-item/control-panel-navigation-item.vue.d.ts +27 -0
- package/dist/components/control-panel-navigation-item/index.d.ts +1 -0
- package/dist/components/control-panel-navigation-item/model.d.ts +20 -0
- package/dist/components/{navigation-item/navigation-item.vue.d.ts → control-panel-navigation-item-group/control-panel-navigation-item-group.vue.d.ts} +7 -11
- package/dist/components/control-panel-navigation-item-group/index.d.ts +1 -0
- package/dist/components/control-panel-navigation-item-group/model.d.ts +44 -0
- package/dist/components/control-panel-primary-actions/control-panel-primary-actions.vue.d.ts +18 -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 +18 -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/{brand/brand.vue.d.ts → control-panel-skip-navigation/control-panel-skip-navigation.vue.d.ts} +3 -5
- package/dist/components/control-panel-skip-navigation/index.d.ts +1 -0
- package/dist/components/control-panel-skip-navigation/model.d.ts +16 -0
- package/dist/components/custom-button/custom-button.vue.d.ts +1 -1
- package/dist/components/custom-select/custom-select.vue.d.ts +1 -1
- package/dist/components/custom-select/model.d.ts +5 -1
- package/dist/components/custom-select-list/custom-select-list.vue.d.ts +1 -1
- package/dist/components/drawer/drawer.vue.d.ts +7 -7
- package/dist/components/drawer/model.d.ts +18 -3
- package/dist/components/drawer-footer/drawer-footer.vue.d.ts +18 -0
- package/dist/components/drawer-footer/index.d.ts +1 -0
- package/dist/components/drawer-footer/model.d.ts +5 -0
- package/dist/components/drawer-header/drawer-header.vue.d.ts +26 -0
- package/dist/components/drawer-header/index.d.ts +1 -0
- package/dist/components/drawer-header/model.d.ts +9 -0
- package/dist/components/input/input.vue.d.ts +1 -1
- package/dist/components/notification/notification.vue.d.ts +1 -1
- package/dist/components/select/select.vue.d.ts +1 -1
- package/dist/components/shell/index.d.ts +1 -0
- package/dist/components/shell/model.d.ts +34 -0
- package/dist/components/shell/shell.vue.d.ts +25 -0
- package/dist/components/shell-content/index.d.ts +1 -0
- package/dist/components/shell-content/model.d.ts +28 -0
- package/dist/components/{page/page.vue.d.ts → shell-content/shell-content.vue.d.ts} +7 -7
- 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 +22 -0
- package/dist/components/table/table.vue.d.ts +1 -0
- package/dist/components/table-body/table-body.vue.d.ts +1 -0
- package/dist/components/table-caption/table-caption.vue.d.ts +1 -0
- package/dist/components/table-data-cell/table-data-cell.vue.d.ts +1 -0
- package/dist/components/table-footer/table-footer.vue.d.ts +1 -0
- package/dist/components/table-head/table-head.vue.d.ts +1 -0
- package/dist/components/table-header-cell/table-header-cell.vue.d.ts +1 -0
- package/dist/components/table-row/table-row.vue.d.ts +1 -0
- package/dist/components/tabs/model.d.ts +4 -12
- package/dist/components/tabs/tabs.vue.d.ts +4 -2
- package/dist/db-ux.es.js +2670 -1751
- package/dist/db-ux.umd.js +1 -1
- package/dist/index.d.ts +32 -10
- package/dist/shared/constants.d.ts +44 -39
- package/dist/shared/figma.d.ts +11 -4
- package/dist/shared/model.d.ts +109 -7
- package/dist/utils/abstract-document-listener.d.ts +18 -0
- package/dist/utils/abstract-observer-listener.d.ts +39 -0
- package/dist/utils/document-click-listener.d.ts +3 -3
- package/dist/utils/document-scroll-listener.d.ts +3 -3
- package/dist/utils/floating-components.d.ts +29 -6
- package/dist/utils/index.d.ts +11 -0
- package/dist/utils/intersection-observer-listener.d.ts +15 -0
- package/dist/utils/navigation.d.ts +12 -11
- package/dist/utils/resize-observer-listener.d.ts +15 -0
- package/package.json +8 -8
- package/agent/Brand.md +0 -19
- package/agent/Header.md +0 -35
- package/agent/Navigation.md +0 -23
- package/agent/NavigationItem.md +0 -29
- package/agent/Page.md +0 -33
- 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 -40
- package/dist/components/header/index.d.ts +0 -1
- package/dist/components/header/model.d.ts +0 -44
- package/dist/components/navigation/index.d.ts +0 -1
- package/dist/components/navigation/model.d.ts +0 -5
- package/dist/components/navigation-item/index.d.ts +0 -1
- package/dist/components/navigation-item/model.d.ts +0 -39
- package/dist/components/page/index.d.ts +0 -1
- package/dist/components/page/model.d.ts +0 -36
- /package/dist/components/{navigation/navigation.vue.d.ts → control-panel-brand/control-panel-brand.vue.d.ts} +0 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { CollapsibleBehaviorProps, GlobalProps, GlobalState, InitializedState, NavigationItemGroupVariant, OverflowScrollButtonProps, OverflowScrollButtonState } from '../../shared/model.js';
|
|
2
|
+
export type DBControlPanelNavigationDefaultProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Show or hide the tree line connecting nested navigation items in tree variant.
|
|
5
|
+
* @default true
|
|
6
|
+
*/
|
|
7
|
+
showTreeLine?: boolean | string;
|
|
8
|
+
};
|
|
9
|
+
export type DBControlPanelNavigationProps = DBControlPanelNavigationDefaultProps & GlobalProps & OverflowScrollButtonProps & NavigationItemGroupVariant & CollapsibleBehaviorProps;
|
|
10
|
+
export type DBControlPanelNavigationDefaultState = {
|
|
11
|
+
onScroll: () => void;
|
|
12
|
+
_shellMobile?: boolean;
|
|
13
|
+
_shellDesktopPosition?: string | null;
|
|
14
|
+
_handleSubNavigation: () => void;
|
|
15
|
+
_handleTreeKeyDown: (event: any) => void;
|
|
16
|
+
_handleTreeKeys: (event: any) => void;
|
|
17
|
+
_handlePopoverKeys: (event: any) => void;
|
|
18
|
+
_focusParentGroupButton: (activeElement: HTMLElement) => boolean;
|
|
19
|
+
_closeSubMenuAndReturnToParent: (parentGroupMenu: Element) => void;
|
|
20
|
+
_resizeObserverCallbackId?: string;
|
|
21
|
+
_singleBehaviorObserver?: MutationObserver;
|
|
22
|
+
_attachSingleBehaviorObserver: () => void;
|
|
23
|
+
_setShellMobile: () => void;
|
|
24
|
+
};
|
|
25
|
+
export type DBControlPanelNavigationState = DBControlPanelNavigationDefaultState & GlobalState & OverflowScrollButtonState & InitializedState;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { DBControlPanelNavigationItemProps } from "./model.js";
|
|
2
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_1) => any;
|
|
5
|
+
} & {
|
|
6
|
+
'end-slot'?: (props: typeof __VLS_3) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_base: import("@vue/runtime-core").DefineComponent<DBControlPanelNavigationItemProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<DBControlPanelNavigationItemProps> & Readonly<{}>, {
|
|
9
|
+
id: string;
|
|
10
|
+
children: any;
|
|
11
|
+
className: string;
|
|
12
|
+
propOverrides: import("../../index.js", { with: { "resolution-mode": "import" } }).PropOverridesType;
|
|
13
|
+
text: string;
|
|
14
|
+
disabled: boolean | string;
|
|
15
|
+
icon: import("@db-ux/core-foundations", { with: { "resolution-mode": "import" } }).IconTypes;
|
|
16
|
+
showIcon: boolean | string;
|
|
17
|
+
tooltip: string;
|
|
18
|
+
active: boolean;
|
|
19
|
+
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DBControlPanelNavigationItem } from './control-panel-navigation-item.vue';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { DisabledProps, EndSlotProps, GlobalProps, GlobalState, IconProps, InitializedState, ShowIconProps, TextProps } from '../../shared/model.js';
|
|
2
|
+
export type DBControlPanelNavigationItemDefaultProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Alternative indicator for active navigation item (bold font). In contrast to the use of aria-current="page" on the contained anchor, this does not guarantee correct a11y.
|
|
5
|
+
*/
|
|
6
|
+
active?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* If you use DBShell with controlPanelDesktopPosition="left" or DBControlPanelFlatIcon
|
|
9
|
+
* you need to add a tooltip for collapsed navigation
|
|
10
|
+
*/
|
|
11
|
+
tooltip?: string;
|
|
12
|
+
} & EndSlotProps & TextProps;
|
|
13
|
+
export type DBControlPanelNavigationItemProps = DBControlPanelNavigationItemDefaultProps & GlobalProps & IconProps & ShowIconProps & DisabledProps;
|
|
14
|
+
export type DBControlPanelNavigationItemDefaultState = {
|
|
15
|
+
_tooltip?: string;
|
|
16
|
+
_savedHref?: string;
|
|
17
|
+
_role?: string;
|
|
18
|
+
_attributeObserver?: MutationObserver;
|
|
19
|
+
};
|
|
20
|
+
export type DBControlPanelNavigationItemState = DBControlPanelNavigationItemDefaultState & GlobalState & InitializedState;
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { ClickEvent } from "../../shared/model.js";
|
|
2
|
-
import {
|
|
3
|
-
declare var __VLS_1: {}, __VLS_9: {}
|
|
2
|
+
import { DBControlPanelNavigationItemGroupProps } from "./model.js";
|
|
3
|
+
declare var __VLS_1: {}, __VLS_9: {};
|
|
4
4
|
type __VLS_Slots = {} & {
|
|
5
|
-
|
|
5
|
+
'end-slot'?: (props: typeof __VLS_1) => any;
|
|
6
6
|
} & {
|
|
7
|
-
|
|
8
|
-
} & {
|
|
9
|
-
default?: (props: typeof __VLS_11) => any;
|
|
7
|
+
default?: (props: typeof __VLS_9) => any;
|
|
10
8
|
};
|
|
11
|
-
declare const __VLS_base: import("@vue/runtime-core").DefineComponent<
|
|
9
|
+
declare const __VLS_base: import("@vue/runtime-core").DefineComponent<DBControlPanelNavigationItemGroupProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<DBControlPanelNavigationItemGroupProps> & Readonly<{}>, {
|
|
12
10
|
id: string;
|
|
13
11
|
children: any;
|
|
14
12
|
className: string;
|
|
@@ -16,13 +14,11 @@ declare const __VLS_base: import("@vue/runtime-core").DefineComponent<DBNavigati
|
|
|
16
14
|
text: string;
|
|
17
15
|
disabled: boolean | string;
|
|
18
16
|
onClick: (event: ClickEvent<HTMLButtonElement>) => void;
|
|
19
|
-
wrap: boolean | string;
|
|
20
17
|
icon: import("@db-ux/core-foundations", { with: { "resolution-mode": "import" } }).IconTypes;
|
|
21
18
|
showIcon: boolean | string;
|
|
22
|
-
|
|
19
|
+
expanded: boolean | string;
|
|
23
20
|
active: boolean;
|
|
24
|
-
|
|
25
|
-
hideSubNavigation: boolean | string;
|
|
21
|
+
menuId: string;
|
|
26
22
|
backButtonId: string;
|
|
27
23
|
backButtonText: string;
|
|
28
24
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DBControlPanelNavigationItemGroup } from './control-panel-navigation-item-group.vue';
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ClickEvent, ClickEventProps, ClickEventState, DisabledProps, GlobalProps, GlobalState, IconProps, InitializedState, NavigationBackButtonProps, NavigationBehaviorState, ShowIconProps } from '../../shared/model.js';
|
|
2
|
+
import { NavigationItemSafeTriangle } from '../../utils/navigation.js';
|
|
3
|
+
import { DBControlPanelNavigationItemDefaultProps } from '../control-panel-navigation-item/model.js';
|
|
4
|
+
export type DBControlPanelNavigationItemGroupDefaultProps = {
|
|
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
|
+
* Change id for db-control-panel-navigation-item-group-menu
|
|
11
|
+
*/
|
|
12
|
+
menuId?: string;
|
|
13
|
+
};
|
|
14
|
+
export type DBControlPanelNavigationItemGroupProps = DBControlPanelNavigationItemGroupDefaultProps & NavigationBackButtonProps & ClickEventProps<HTMLButtonElement> & GlobalProps & IconProps & ShowIconProps & DBControlPanelNavigationItemDefaultProps & DisabledProps;
|
|
15
|
+
export type DBControlPanelNavigationItemGroupDefaultState = {
|
|
16
|
+
handleBackClick: (event: ClickEvent<HTMLButtonElement>) => void;
|
|
17
|
+
isSubNavigationExpanded: boolean;
|
|
18
|
+
_itemGroupMenuId: string;
|
|
19
|
+
_intersectionObserverCallbackId?: string;
|
|
20
|
+
_resizeObserverCallbackId?: string;
|
|
21
|
+
_attributeObserver?: MutationObserver;
|
|
22
|
+
_role?: string;
|
|
23
|
+
_popoverListenersAttached: boolean;
|
|
24
|
+
_isMobile: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Internal state property to show/hide sub-navigation button
|
|
27
|
+
*/
|
|
28
|
+
hasSubNavigation?: boolean;
|
|
29
|
+
hasPopup?: boolean;
|
|
30
|
+
navigationItemSafeTriangle?: NavigationItemSafeTriangle;
|
|
31
|
+
autoClose?: boolean;
|
|
32
|
+
onScroll: () => void;
|
|
33
|
+
handleEscape: (event: any) => void;
|
|
34
|
+
forceClose: () => void;
|
|
35
|
+
_attachPopoverListeners: () => void;
|
|
36
|
+
_detachPopoverListeners: () => void;
|
|
37
|
+
_teardownPopover: () => void;
|
|
38
|
+
_handleFocusIn: () => void;
|
|
39
|
+
_handleFocusOut: (event: any) => void;
|
|
40
|
+
_handleMouseEnter: () => void;
|
|
41
|
+
_handleMouseLeave: () => void;
|
|
42
|
+
_setSiblingsInert: (inert: boolean) => void;
|
|
43
|
+
};
|
|
44
|
+
export type DBControlPanelNavigationItemGroupState = DBControlPanelNavigationItemGroupDefaultState & ClickEventState<HTMLButtonElement> & GlobalState & NavigationBehaviorState & InitializedState;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("@vue/runtime-core").DefineComponent<import("../../index.js", { with: { "resolution-mode": "import" } }).GlobalProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("../../index.js", { with: { "resolution-mode": "import" } }).GlobalProps> & Readonly<{}>, {
|
|
6
|
+
id: string;
|
|
7
|
+
children: any;
|
|
8
|
+
className: string;
|
|
9
|
+
propOverrides: import("../../index.js", { with: { "resolution-mode": "import" } }).PropOverridesType;
|
|
10
|
+
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
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 DBControlPanelPrimaryActions } from './control-panel-primary-actions.vue';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { GlobalProps, GlobalState } from '../../shared/model.js';
|
|
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,18 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("@vue/runtime-core").DefineComponent<import("../../index.js", { with: { "resolution-mode": "import" } }).GlobalProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("../../index.js", { with: { "resolution-mode": "import" } }).GlobalProps> & Readonly<{}>, {
|
|
6
|
+
id: string;
|
|
7
|
+
children: any;
|
|
8
|
+
className: string;
|
|
9
|
+
propOverrides: import("../../index.js", { with: { "resolution-mode": "import" } }).PropOverridesType;
|
|
10
|
+
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
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 DBControlPanelSecondaryActions } from './control-panel-secondary-actions.vue';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { GlobalProps, GlobalState } from '../../shared/model.js';
|
|
2
|
+
export type DBControlPanelSecondaryActionsDefaultProps = {};
|
|
3
|
+
export type DBControlPanelSecondaryActionsProps = DBControlPanelSecondaryActionsDefaultProps & GlobalProps;
|
|
4
|
+
export type DBControlPanelSecondaryActionsDefaultState = {};
|
|
5
|
+
export type DBControlPanelSecondaryActionsState = DBControlPanelSecondaryActionsDefaultState & GlobalState;
|
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DBControlPanelSkipNavigationProps } from "./model.js";
|
|
2
2
|
declare var __VLS_1: {};
|
|
3
3
|
type __VLS_Slots = {} & {
|
|
4
4
|
default?: (props: typeof __VLS_1) => any;
|
|
5
5
|
};
|
|
6
|
-
declare const __VLS_base: import("@vue/runtime-core").DefineComponent<
|
|
6
|
+
declare const __VLS_base: import("@vue/runtime-core").DefineComponent<DBControlPanelSkipNavigationProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<DBControlPanelSkipNavigationProps> & Readonly<{}>, {
|
|
7
7
|
id: string;
|
|
8
8
|
children: any;
|
|
9
9
|
className: string;
|
|
10
10
|
propOverrides: import("../../index.js", { with: { "resolution-mode": "import" } }).PropOverridesType;
|
|
11
11
|
text: string;
|
|
12
|
-
|
|
13
|
-
icon: import("@db-ux/core-foundations", { with: { "resolution-mode": "import" } }).IconTypes;
|
|
14
|
-
showIcon: boolean | string;
|
|
12
|
+
target: string;
|
|
15
13
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
16
14
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
15
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DBControlPanelSkipNavigation } from './control-panel-skip-navigation.vue';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { GlobalProps, GlobalState } from '../../shared/model.js';
|
|
2
|
+
export type DBControlPanelSkipNavigationDefaultProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Change the text for the link providing a skip for navigation jumping to main content
|
|
5
|
+
*/
|
|
6
|
+
text?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Target id for the skip-navigation link. Must match the `mainId` prop
|
|
9
|
+
* on `DBShellContent` if you override it. Only one shell should exist per page.
|
|
10
|
+
* @default 'main-content'
|
|
11
|
+
*/
|
|
12
|
+
target?: string;
|
|
13
|
+
};
|
|
14
|
+
export type DBControlPanelSkipNavigationProps = DBControlPanelSkipNavigationDefaultProps & GlobalProps;
|
|
15
|
+
export type DBControlPanelSkipNavigationDefaultState = {};
|
|
16
|
+
export type DBControlPanelSkipNavigationState = DBControlPanelSkipNavigationDefaultState & GlobalState;
|
|
@@ -11,8 +11,8 @@ declare const __VLS_base: import("@vue/runtime-core").DefineComponent<DBCustomBu
|
|
|
11
11
|
variant: import("../button/model.js", { with: { "resolution-mode": "import" } }).ButtonVariantType | string;
|
|
12
12
|
size: import("../../index.js", { with: { "resolution-mode": "import" } }).SizeType;
|
|
13
13
|
icon: import("@db-ux/core-foundations", { with: { "resolution-mode": "import" } }).IconTypes;
|
|
14
|
-
showIcon: boolean | string;
|
|
15
14
|
width: import("../../index.js", { with: { "resolution-mode": "import" } }).WidthType | string;
|
|
15
|
+
showIcon: boolean | string;
|
|
16
16
|
showIconLeading: boolean | string;
|
|
17
17
|
showIconTrailing: boolean | string;
|
|
18
18
|
iconLeading: import("@db-ux/core-foundations", { with: { "resolution-mode": "import" } }).IconTypes;
|
|
@@ -14,12 +14,12 @@ declare const __VLS_base: import("@vue/runtime-core").DefineComponent<DBCustomSe
|
|
|
14
14
|
className: string;
|
|
15
15
|
propOverrides: import("../../shared/model.js", { with: { "resolution-mode": "import" } }).PropOverridesType;
|
|
16
16
|
name: string;
|
|
17
|
+
multiple: boolean | string;
|
|
17
18
|
form: string;
|
|
18
19
|
label: string;
|
|
19
20
|
values: string[];
|
|
20
21
|
open: boolean;
|
|
21
22
|
disabled: boolean | string;
|
|
22
|
-
multiple: boolean | string;
|
|
23
23
|
variant: import("../../shared/model.js", { with: { "resolution-mode": "import" } }).LabelVariantType;
|
|
24
24
|
placement: import("../../shared/model.js", { with: { "resolution-mode": "import" } }).PlacementVerticalType;
|
|
25
25
|
icon: import("@db-ux/core-foundations", { with: { "resolution-mode": "import" } }).IconTypes;
|
|
@@ -194,6 +194,10 @@ export type DBCustomSelectDefaultState = {
|
|
|
194
194
|
_infoTextId?: string;
|
|
195
195
|
_internalChangeTimestamp: number;
|
|
196
196
|
_documentClickListenerCallbackId?: string;
|
|
197
|
+
_documentScrollListenerCallbackId?: string;
|
|
198
|
+
handleDocumentScroll: (event: any) => void;
|
|
199
|
+
_intersectionObserverCallbackId?: string;
|
|
200
|
+
_resizeObserverCallbackId?: string;
|
|
197
201
|
_searchValue?: string;
|
|
198
202
|
_userInteraction?: boolean;
|
|
199
203
|
getNativeSelectValue: () => string;
|
|
@@ -204,7 +208,7 @@ export type DBCustomSelectDefaultState = {
|
|
|
204
208
|
searchEnabled: boolean;
|
|
205
209
|
amountOptions: number;
|
|
206
210
|
setDescById: (descId?: string) => void;
|
|
207
|
-
handleTagRemove: (option: CustomSelectOptionType, event?: ClickEvent<HTMLButtonElement> | void) => void;
|
|
211
|
+
handleTagRemove: (option: CustomSelectOptionType, event?: ClickEvent<HTMLButtonElement> | void | any) => void;
|
|
208
212
|
handleSummaryFocus: () => void;
|
|
209
213
|
handleSelect: (value?: string) => void;
|
|
210
214
|
handleSelectAll: (event: any) => void;
|
|
@@ -8,8 +8,8 @@ declare const __VLS_base: import("@vue/runtime-core").DefineComponent<DBCustomSe
|
|
|
8
8
|
children: any;
|
|
9
9
|
className: string;
|
|
10
10
|
propOverrides: import("../../index.js", { with: { "resolution-mode": "import" } }).PropOverridesType;
|
|
11
|
-
label: string;
|
|
12
11
|
multiple: boolean;
|
|
12
|
+
label: string;
|
|
13
13
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
14
14
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
15
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { DBDrawerProps } from "./model.js";
|
|
2
|
-
declare var __VLS_1: {},
|
|
2
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
|
|
3
3
|
type __VLS_Slots = {} & {
|
|
4
|
-
|
|
4
|
+
header?: (props: typeof __VLS_1) => any;
|
|
5
5
|
} & {
|
|
6
|
-
default?: (props: typeof
|
|
6
|
+
default?: (props: typeof __VLS_3) => any;
|
|
7
|
+
} & {
|
|
8
|
+
footer?: (props: typeof __VLS_5) => any;
|
|
7
9
|
};
|
|
8
10
|
declare const __VLS_base: import("@vue/runtime-core").DefineComponent<DBDrawerProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<DBDrawerProps> & Readonly<{}>, {
|
|
9
11
|
id: string;
|
|
@@ -12,15 +14,13 @@ declare const __VLS_base: import("@vue/runtime-core").DefineComponent<DBDrawerPr
|
|
|
12
14
|
propOverrides: import("../../shared/model.js", { with: { "resolution-mode": "import" } }).PropOverridesType;
|
|
13
15
|
open: boolean | string;
|
|
14
16
|
variant: import("./model.js", { with: { "resolution-mode": "import" } }).DrawerVariantType;
|
|
15
|
-
width: import("../../shared/model.js", { with: { "resolution-mode": "import" } }).WidthType | string;
|
|
16
|
-
spacing: import("../../shared/model.js", { with: { "resolution-mode": "import" } }).SpacingType | string;
|
|
17
17
|
backdrop: import("./model.js", { with: { "resolution-mode": "import" } }).DrawerBackdropType;
|
|
18
18
|
direction: import("./model.js", { with: { "resolution-mode": "import" } }).DrawerDirectionType;
|
|
19
|
+
showSpacing: boolean | string;
|
|
19
20
|
rounded: boolean | string;
|
|
20
21
|
position: import("./model.js", { with: { "resolution-mode": "import" } }).DrawerPositionType;
|
|
22
|
+
containerSize: import("./model.js", { with: { "resolution-mode": "import" } }).DrawerContainerSizeType;
|
|
21
23
|
onClose: (event?: KeyboardEvent | MouseEvent | undefined) => void;
|
|
22
|
-
closeButtonId: string;
|
|
23
|
-
closeButtonText: string;
|
|
24
24
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
25
25
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
26
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ClickEvent, CloseEventProps, CloseEventState, GeneralKeyboardEvent, GlobalProps, GlobalState, InitializedState
|
|
1
|
+
import type { ClickEvent, CloseEventProps, CloseEventState, GeneralKeyboardEvent, GlobalProps, GlobalState, InitializedState } from '../../shared/model.js';
|
|
2
2
|
export declare const DrawerBackdropList: readonly ["none", "strong", "weak", "invisible"];
|
|
3
3
|
export type DrawerBackdropType = (typeof DrawerBackdropList)[number];
|
|
4
4
|
export declare const DrawerDirectionList: readonly ["left", "right", "up", "down"];
|
|
@@ -7,6 +7,8 @@ export declare const DrawerVariantList: readonly ["modal", "inside"];
|
|
|
7
7
|
export type DrawerVariantType = (typeof DrawerVariantList)[number];
|
|
8
8
|
export declare const DrawerPositionList: readonly ["fixed", "absolute"];
|
|
9
9
|
export type DrawerPositionType = (typeof DrawerPositionList)[number];
|
|
10
|
+
export declare const DrawerContainerSizeList: readonly ["small", "medium", "large", "full"];
|
|
11
|
+
export type DrawerContainerSizeType = (typeof DrawerContainerSizeList)[number];
|
|
10
12
|
export type DBDrawerDefaultProps = {
|
|
11
13
|
/**
|
|
12
14
|
* The backdrop attribute changes the opacity of the backdrop.
|
|
@@ -21,7 +23,15 @@ export type DBDrawerDefaultProps = {
|
|
|
21
23
|
/**
|
|
22
24
|
* Slot for changing the header of the drawer.
|
|
23
25
|
*/
|
|
24
|
-
|
|
26
|
+
header?: any;
|
|
27
|
+
/**
|
|
28
|
+
* Slot for changing the footer of the drawer.
|
|
29
|
+
*/
|
|
30
|
+
footer?: any;
|
|
31
|
+
/**
|
|
32
|
+
* Shows a spacing between screen and drawer-content to provide enough space for the backdrop
|
|
33
|
+
*/
|
|
34
|
+
showSpacing?: boolean | string;
|
|
25
35
|
/**
|
|
26
36
|
* The open attribute opens or closes the drawer based on the state.
|
|
27
37
|
*/
|
|
@@ -42,12 +52,17 @@ export type DBDrawerDefaultProps = {
|
|
|
42
52
|
* - `absolute`: Renders with `show()`, acting as a simple overlay **without** a focus trap.
|
|
43
53
|
*/
|
|
44
54
|
position?: DrawerPositionType;
|
|
55
|
+
/**
|
|
56
|
+
* Change the size of the drawer container.
|
|
57
|
+
*/
|
|
58
|
+
containerSize?: DrawerContainerSizeType;
|
|
45
59
|
};
|
|
46
|
-
export type DBDrawerProps = DBDrawerDefaultProps & GlobalProps & CloseEventProps<ClickEvent<HTMLButtonElement | HTMLDialogElement> | GeneralKeyboardEvent<HTMLDialogElement
|
|
60
|
+
export type DBDrawerProps = DBDrawerDefaultProps & GlobalProps & CloseEventProps<ClickEvent<HTMLButtonElement | HTMLDialogElement> | GeneralKeyboardEvent<HTMLDialogElement>>;
|
|
47
61
|
export type DBDrawerDefaultState = {
|
|
48
62
|
handleDialogOpen: () => void;
|
|
49
63
|
isNotModal: () => boolean;
|
|
50
64
|
handleBackdropPointerDown: (event: any) => void;
|
|
51
65
|
backdropPointerDown: boolean;
|
|
66
|
+
_closeTimeoutId?: number;
|
|
52
67
|
};
|
|
53
68
|
export type DBDrawerState = DBDrawerDefaultState & GlobalState & CloseEventState<ClickEvent<HTMLButtonElement | HTMLDialogElement> | GeneralKeyboardEvent<HTMLDialogElement>> & InitializedState;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("@vue/runtime-core").DefineComponent<import("../../index.js", { with: { "resolution-mode": "import" } }).GlobalProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("../../index.js", { with: { "resolution-mode": "import" } }).GlobalProps> & Readonly<{}>, {
|
|
6
|
+
id: string;
|
|
7
|
+
children: any;
|
|
8
|
+
className: string;
|
|
9
|
+
propOverrides: import("../../index.js", { with: { "resolution-mode": "import" } }).PropOverridesType;
|
|
10
|
+
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
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 DBDrawerFooter } from './drawer-footer.vue';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { GlobalProps, GlobalState } from '../../shared/model.js';
|
|
2
|
+
export type DBDrawerFooterDefaultProps = {};
|
|
3
|
+
export type DBDrawerFooterProps = DBDrawerFooterDefaultProps & GlobalProps;
|
|
4
|
+
export type DBDrawerFooterDefaultState = {};
|
|
5
|
+
export type DBDrawerFooterState = DBDrawerFooterDefaultState & GlobalState;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DBDrawerHeaderProps } from "./model.js";
|
|
2
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
'start-slot'?: (props: typeof __VLS_1) => any;
|
|
5
|
+
} & {
|
|
6
|
+
default?: (props: typeof __VLS_3) => any;
|
|
7
|
+
} & {
|
|
8
|
+
'end-slot'?: (props: typeof __VLS_5) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: import("@vue/runtime-core").DefineComponent<DBDrawerHeaderProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<DBDrawerHeaderProps> & Readonly<{}>, {
|
|
11
|
+
id: string;
|
|
12
|
+
children: any;
|
|
13
|
+
className: string;
|
|
14
|
+
propOverrides: import("../../index.js", { with: { "resolution-mode": "import" } }).PropOverridesType;
|
|
15
|
+
text: string;
|
|
16
|
+
closeButtonId: string;
|
|
17
|
+
closeButtonText: string;
|
|
18
|
+
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DBDrawerHeader } from './drawer-header.vue';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EndSlotProps, GlobalProps, GlobalState, InnerCloseButtonProps, StartSlotProps, TextProps } from '../../shared/model.js';
|
|
2
|
+
export type DBDrawerHeaderDefaultProps = {};
|
|
3
|
+
export type DBDrawerHeaderProps = DBDrawerHeaderDefaultProps & InnerCloseButtonProps & TextProps & GlobalProps & StartSlotProps & EndSlotProps;
|
|
4
|
+
export type DBDrawerHeaderDefaultState = {
|
|
5
|
+
_headingId: string;
|
|
6
|
+
setAriaLabelledBy: () => void;
|
|
7
|
+
removeAriaLabelledBy: () => void;
|
|
8
|
+
};
|
|
9
|
+
export type DBDrawerHeaderState = DBDrawerHeaderDefaultState & GlobalState;
|
|
@@ -15,6 +15,7 @@ declare const __VLS_base: import("@vue/runtime-core").DefineComponent<DBInputPro
|
|
|
15
15
|
autofocus: boolean | string;
|
|
16
16
|
propOverrides: import("../../shared/model.js", { with: { "resolution-mode": "import" } }).PropOverridesType;
|
|
17
17
|
name: string;
|
|
18
|
+
multiple: boolean | string;
|
|
18
19
|
form: string;
|
|
19
20
|
input: (event: InputEvent<HTMLInputElement>) => void;
|
|
20
21
|
label: string;
|
|
@@ -26,7 +27,6 @@ declare const __VLS_base: import("@vue/runtime-core").DefineComponent<DBInputPro
|
|
|
26
27
|
onChange: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
27
28
|
onInput: (event: InputEvent<HTMLInputElement>) => void;
|
|
28
29
|
type: import("./model.js", { with: { "resolution-mode": "import" } }).InputTypeType | string;
|
|
29
|
-
multiple: boolean | string;
|
|
30
30
|
variant: import("../../shared/model.js", { with: { "resolution-mode": "import" } }).LabelVariantType;
|
|
31
31
|
size: number;
|
|
32
32
|
icon: import("@db-ux/core-foundations", { with: { "resolution-mode": "import" } }).IconTypes;
|
|
@@ -20,9 +20,9 @@ declare const __VLS_base: import("@vue/runtime-core").DefineComponent<DBNotifica
|
|
|
20
20
|
variant: import("./model.js", { with: { "resolution-mode": "import" } }).NotificationVariantType;
|
|
21
21
|
icon: import("@db-ux/core-foundations", { with: { "resolution-mode": "import" } }).IconTypes;
|
|
22
22
|
showIcon: boolean | string;
|
|
23
|
-
onClose: (event?: MouseEvent | undefined) => void;
|
|
24
23
|
closeButtonId: string;
|
|
25
24
|
closeButtonText: string;
|
|
25
|
+
onClose: (event?: MouseEvent | undefined) => void;
|
|
26
26
|
closeable: boolean | string;
|
|
27
27
|
linkVariant: import("./model.js", { with: { "resolution-mode": "import" } }).NotificationLinkVariantType;
|
|
28
28
|
showHeadline: boolean | string;
|
|
@@ -14,6 +14,7 @@ declare const __VLS_base: import("@vue/runtime-core").DefineComponent<DBSelectPr
|
|
|
14
14
|
className: string;
|
|
15
15
|
propOverrides: import("../../shared/model.js", { with: { "resolution-mode": "import" } }).PropOverridesType;
|
|
16
16
|
name: string;
|
|
17
|
+
multiple: boolean;
|
|
17
18
|
input: (event: InputEvent<HTMLSelectElement>) => void;
|
|
18
19
|
label: string;
|
|
19
20
|
value: any;
|
|
@@ -23,7 +24,6 @@ declare const __VLS_base: import("@vue/runtime-core").DefineComponent<DBSelectPr
|
|
|
23
24
|
onChange: (event: ChangeEvent<HTMLSelectElement>) => void;
|
|
24
25
|
onInput: (event: InputEvent<HTMLSelectElement>) => void;
|
|
25
26
|
onClick: (event: ClickEvent<HTMLSelectElement>) => void;
|
|
26
|
-
multiple: boolean;
|
|
27
27
|
variant: import("../../shared/model.js", { with: { "resolution-mode": "import" } }).LabelVariantType;
|
|
28
28
|
size: number;
|
|
29
29
|
icon: import("@db-ux/core-foundations", { with: { "resolution-mode": "import" } }).IconTypes;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DBShell } from './shell.vue';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { GlobalProps, GlobalState, ShellControlPanelDesktopPositionType, ShellControlPanelMobilePositionType } from '../../shared/model.js';
|
|
2
|
+
export declare const ShellSubNavigationMobilePosition: readonly ["top", "bottom", "none"];
|
|
3
|
+
export type ShellSubNavigationMobilePositionType = (typeof ShellSubNavigationMobilePosition)[number];
|
|
4
|
+
export type DBShellDefaultProps = {
|
|
5
|
+
/**
|
|
6
|
+
* Change the position of the desktop content panel
|
|
7
|
+
*/
|
|
8
|
+
controlPanelDesktopPosition?: ShellControlPanelDesktopPositionType;
|
|
9
|
+
/**
|
|
10
|
+
* Change the position of the mobile content panel
|
|
11
|
+
*/
|
|
12
|
+
controlPanelMobilePosition?: ShellControlPanelMobilePositionType;
|
|
13
|
+
/**
|
|
14
|
+
* Set this to have a transition with opacity to avoid layout-shifts https://simonhearne.com/2021/layout-shifts-webfonts/
|
|
15
|
+
*/
|
|
16
|
+
fadeIn?: boolean | string;
|
|
17
|
+
/**
|
|
18
|
+
* Change the position of the optional sub navigation for desktop
|
|
19
|
+
*/
|
|
20
|
+
subNavigationDesktopPosition?: ShellControlPanelDesktopPositionType;
|
|
21
|
+
/**
|
|
22
|
+
* Change the position of the optional sub navigation for mobile
|
|
23
|
+
*/
|
|
24
|
+
subNavigationMobilePosition?: ShellSubNavigationMobilePositionType;
|
|
25
|
+
/**
|
|
26
|
+
* Shows sub-navigation
|
|
27
|
+
*/
|
|
28
|
+
showSubNavigation?: boolean | string;
|
|
29
|
+
};
|
|
30
|
+
export type DBShellProps = DBShellDefaultProps & GlobalProps;
|
|
31
|
+
export type DBShellDefaultState = {
|
|
32
|
+
fontsLoaded?: boolean;
|
|
33
|
+
};
|
|
34
|
+
export type DBShellState = DBShellDefaultState & GlobalState;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DBShellProps } from "./model.js";
|
|
2
|
+
declare var __VLS_1: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_1) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("@vue/runtime-core").DefineComponent<DBShellProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<DBShellProps> & Readonly<{}>, {
|
|
7
|
+
id: string;
|
|
8
|
+
children: any;
|
|
9
|
+
className: string;
|
|
10
|
+
propOverrides: import("../../index.js", { with: { "resolution-mode": "import" } }).PropOverridesType;
|
|
11
|
+
controlPanelDesktopPosition: import("../../index.js", { with: { "resolution-mode": "import" } }).ShellControlPanelDesktopPositionType;
|
|
12
|
+
controlPanelMobilePosition: import("../../index.js", { with: { "resolution-mode": "import" } }).ShellControlPanelMobilePositionType;
|
|
13
|
+
fadeIn: boolean | string;
|
|
14
|
+
subNavigationDesktopPosition: import("../../index.js", { with: { "resolution-mode": "import" } }).ShellControlPanelDesktopPositionType;
|
|
15
|
+
subNavigationMobilePosition: import("./model.js", { with: { "resolution-mode": "import" } }).ShellSubNavigationMobilePositionType;
|
|
16
|
+
showSubNavigation: boolean | string;
|
|
17
|
+
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DBShellContent } from './shell-content.vue';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { EndSlotProps, GlobalProps, GlobalState, StartSlotProps } from '../../shared/model.js';
|
|
2
|
+
export declare const ShellContentVariantList: readonly ["auto", "fixed"];
|
|
3
|
+
export type ShellContentVariantType = (typeof ShellContentVariantList)[number];
|
|
4
|
+
export type DBShellContentDefaultProps = {
|
|
5
|
+
/**
|
|
6
|
+
* Adds `class` to `<main>` element
|
|
7
|
+
*/
|
|
8
|
+
mainClass?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Overrides the default `id` on the `<main>` element.
|
|
11
|
+
* This id is used as the target for the shell skip-navigation link.
|
|
12
|
+
* Only one `DBShellContent` should exist per page to avoid duplicate IDs.
|
|
13
|
+
* @default 'main-content'
|
|
14
|
+
*/
|
|
15
|
+
mainId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Adds `aria-label` to `<main>` element
|
|
18
|
+
*/
|
|
19
|
+
mainLabel?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Change the scrolling behavior. `auto` scrolling on complete wrapper, `fixed` scrolling only in for main.
|
|
22
|
+
* @default auto
|
|
23
|
+
*/
|
|
24
|
+
variant?: ShellContentVariantType;
|
|
25
|
+
};
|
|
26
|
+
export type DBShellContentProps = DBShellContentDefaultProps & GlobalProps & StartSlotProps & EndSlotProps;
|
|
27
|
+
export type DBShellContentDefaultState = {};
|
|
28
|
+
export type DBShellContentState = DBShellContentDefaultState & GlobalState;
|