@db-ux/v-core-components 5.1.6-shell-11663a0 → 5.2.0
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 +15 -0
- package/agent/_instructions.md +0 -10
- package/dist/components/accordion/accordion.vue.d.ts +1 -1
- package/dist/components/accordion/model.d.ts +8 -2
- package/dist/components/custom-select/custom-select.vue.d.ts +1 -1
- package/dist/components/custom-select/model.d.ts +1 -1
- package/dist/components/custom-select-list/custom-select-list.vue.d.ts +1 -1
- package/dist/components/drawer/model.d.ts +0 -1
- package/dist/components/header/header.vue.d.ts +2 -2
- package/dist/components/{shell-content/shell-content.vue.d.ts → heading/custom-heading.vue.d.ts} +6 -6
- package/dist/components/{control-panel-skip-navigation/control-panel-skip-navigation.vue.d.ts → heading/heading-h1.vue.d.ts} +6 -3
- package/dist/components/{control-panel-secondary-actions/control-panel-secondary-actions.vue.d.ts → heading/heading-h2.vue.d.ts} +7 -1
- package/dist/components/{control-panel-primary-actions/control-panel-primary-actions.vue.d.ts → heading/heading-h3.vue.d.ts} +7 -1
- package/dist/components/{control-panel-meta/control-panel-meta.vue.d.ts → heading/heading-h4.vue.d.ts} +7 -1
- package/dist/components/heading/heading-h5.vue.d.ts +24 -0
- package/dist/components/heading/heading-h6.vue.d.ts +24 -0
- package/dist/components/heading/index.d.ts +7 -0
- package/dist/components/heading/model.d.ts +73 -0
- package/dist/components/input/input.vue.d.ts +1 -1
- package/dist/components/navigation-item/navigation-item.vue.d.ts +2 -2
- package/dist/components/notification/notification.vue.d.ts +1 -1
- package/dist/components/popover/popover.vue.d.ts +0 -1
- package/dist/components/select/select.vue.d.ts +1 -1
- package/dist/components/stack/stack.vue.d.ts +1 -1
- package/dist/components/tooltip/tooltip.vue.d.ts +0 -1
- package/dist/db-ux.es.js +1808 -2745
- package/dist/db-ux.umd.js +1 -1
- package/dist/index.d.ts +2 -28
- package/dist/shared/constants.d.ts +1 -5
- package/dist/shared/model.d.ts +3 -94
- package/dist/utils/floating-components.d.ts +2 -7
- package/dist/utils/index.d.ts +0 -10
- package/dist/utils/navigation.d.ts +11 -27
- package/package.json +3 -3
- package/agent/ControlPanelBrand.md +0 -15
- package/agent/ControlPanelDesktop.md +0 -48
- package/agent/ControlPanelMeta.md +0 -19
- package/agent/ControlPanelMobile.md +0 -40
- package/agent/ControlPanelNavigation.md +0 -24
- package/agent/ControlPanelNavigationItem.md +0 -39
- package/agent/ControlPanelPrimaryActions.md +0 -20
- package/agent/ControlPanelSecondaryActions.md +0 -24
- package/agent/Shell.md +0 -28
- package/agent/ShellSubNavigation.md +0 -6
- package/dist/components/control-panel-brand/control-panel-brand.vue.d.ts +0 -22
- package/dist/components/control-panel-brand/index.d.ts +0 -1
- package/dist/components/control-panel-brand/model.d.ts +0 -7
- package/dist/components/control-panel-desktop/control-panel-desktop.vue.d.ts +0 -34
- package/dist/components/control-panel-desktop/index.d.ts +0 -1
- package/dist/components/control-panel-desktop/model.d.ts +0 -7
- package/dist/components/control-panel-flat-icon/control-panel-flat-icon.vue.d.ts +0 -22
- package/dist/components/control-panel-flat-icon/index.d.ts +0 -1
- package/dist/components/control-panel-flat-icon/model.d.ts +0 -12
- package/dist/components/control-panel-meta/index.d.ts +0 -1
- package/dist/components/control-panel-meta/model.d.ts +0 -5
- package/dist/components/control-panel-mobile/control-panel-mobile.vue.d.ts +0 -33
- package/dist/components/control-panel-mobile/index.d.ts +0 -1
- package/dist/components/control-panel-mobile/model.d.ts +0 -21
- package/dist/components/control-panel-navigation/control-panel-navigation.vue.d.ts +0 -26
- package/dist/components/control-panel-navigation/index.d.ts +0 -1
- package/dist/components/control-panel-navigation/model.d.ts +0 -27
- package/dist/components/control-panel-navigation-item/control-panel-navigation-item.vue.d.ts +0 -27
- package/dist/components/control-panel-navigation-item/index.d.ts +0 -1
- package/dist/components/control-panel-navigation-item/model.d.ts +0 -20
- package/dist/components/control-panel-navigation-item-group/control-panel-navigation-item-group.vue.d.ts +0 -32
- package/dist/components/control-panel-navigation-item-group/index.d.ts +0 -1
- package/dist/components/control-panel-navigation-item-group/model.d.ts +0 -42
- package/dist/components/control-panel-primary-actions/index.d.ts +0 -1
- package/dist/components/control-panel-primary-actions/model.d.ts +0 -5
- package/dist/components/control-panel-secondary-actions/index.d.ts +0 -1
- package/dist/components/control-panel-secondary-actions/model.d.ts +0 -5
- package/dist/components/control-panel-skip-navigation/index.d.ts +0 -1
- package/dist/components/control-panel-skip-navigation/model.d.ts +0 -16
- package/dist/components/shell/index.d.ts +0 -1
- package/dist/components/shell/model.d.ts +0 -38
- package/dist/components/shell/shell.vue.d.ts +0 -25
- package/dist/components/shell-content/index.d.ts +0 -1
- package/dist/components/shell-content/model.d.ts +0 -28
- package/dist/components/shell-sub-navigation/index.d.ts +0 -1
- package/dist/components/shell-sub-navigation/model.d.ts +0 -5
- package/dist/components/shell-sub-navigation/shell-sub-navigation.vue.d.ts +0 -22
package/dist/index.d.ts
CHANGED
|
@@ -12,28 +12,6 @@ export * from './components/card/index.js';
|
|
|
12
12
|
export * from './components/card/model.js';
|
|
13
13
|
export * from './components/checkbox/index.js';
|
|
14
14
|
export * from './components/checkbox/model.js';
|
|
15
|
-
export * from './components/control-panel-brand/index.js';
|
|
16
|
-
export * from './components/control-panel-brand/model.js';
|
|
17
|
-
export * from './components/control-panel-desktop/index.js';
|
|
18
|
-
export * from './components/control-panel-desktop/model.js';
|
|
19
|
-
export * from './components/control-panel-flat-icon/index.js';
|
|
20
|
-
export * from './components/control-panel-flat-icon/model.js';
|
|
21
|
-
export * from './components/control-panel-meta/index.js';
|
|
22
|
-
export * from './components/control-panel-meta/model.js';
|
|
23
|
-
export * from './components/control-panel-mobile/index.js';
|
|
24
|
-
export * from './components/control-panel-mobile/model.js';
|
|
25
|
-
export * from './components/control-panel-navigation/index.js';
|
|
26
|
-
export * from './components/control-panel-navigation-item/index.js';
|
|
27
|
-
export * from './components/control-panel-navigation-item-group/index.js';
|
|
28
|
-
export * from './components/control-panel-navigation-item-group/model.js';
|
|
29
|
-
export * from './components/control-panel-navigation-item/model.js';
|
|
30
|
-
export * from './components/control-panel-navigation/model.js';
|
|
31
|
-
export * from './components/control-panel-primary-actions/index.js';
|
|
32
|
-
export * from './components/control-panel-primary-actions/model.js';
|
|
33
|
-
export * from './components/control-panel-secondary-actions/index.js';
|
|
34
|
-
export * from './components/control-panel-secondary-actions/model.js';
|
|
35
|
-
export * from './components/control-panel-skip-navigation/index.js';
|
|
36
|
-
export * from './components/control-panel-skip-navigation/model.js';
|
|
37
15
|
export * from './components/custom-button/index.js';
|
|
38
16
|
export * from './components/custom-button/model.js';
|
|
39
17
|
export * from './components/custom-select/index.js';
|
|
@@ -56,6 +34,8 @@ export * from './components/drawer-header/model.js';
|
|
|
56
34
|
export * from './components/drawer/model.js';
|
|
57
35
|
export * from './components/header/index.js';
|
|
58
36
|
export * from './components/header/model.js';
|
|
37
|
+
export * from './components/heading/index.js';
|
|
38
|
+
export * from './components/heading/model.js';
|
|
59
39
|
export * from './components/icon/index.js';
|
|
60
40
|
export * from './components/icon/model.js';
|
|
61
41
|
export * from './components/infotext/index.js';
|
|
@@ -80,12 +60,6 @@ export * from './components/section/index.js';
|
|
|
80
60
|
export * from './components/section/model.js';
|
|
81
61
|
export * from './components/select/index.js';
|
|
82
62
|
export * from './components/select/model.js';
|
|
83
|
-
export * from './components/shell/index.js';
|
|
84
|
-
export * from './components/shell-content/index.js';
|
|
85
|
-
export * from './components/shell-content/model.js';
|
|
86
|
-
export * from './components/shell-sub-navigation/index.js';
|
|
87
|
-
export * from './components/shell-sub-navigation/model.js';
|
|
88
|
-
export * from './components/shell/model.js';
|
|
89
63
|
export * from './components/stack/index.js';
|
|
90
64
|
export * from './components/stack/model.js';
|
|
91
65
|
export * from './components/switch/index.js';
|
|
@@ -14,15 +14,12 @@ export declare const DEFAULT_INVALID_MESSAGE: string;
|
|
|
14
14
|
export declare const DEFAULT_REMOVE: string;
|
|
15
15
|
export declare const DEFAULT_BACK: string;
|
|
16
16
|
export declare const DEFAULT_SELECTED: string;
|
|
17
|
-
export declare const DEFAULT_EXPAND: string;
|
|
18
|
-
export declare const DEFAULT_COLLAPSE: string;
|
|
19
17
|
export declare const DEFAULT_SCROLL_LEFT: string;
|
|
20
18
|
export declare const DEFAULT_SCROLL_RIGHT: string;
|
|
21
|
-
export declare const DEFAULT_ICON: string;
|
|
22
19
|
export declare const DEFAULT_BURGER_MENU: string;
|
|
20
|
+
export declare const DEFAULT_ICON: string;
|
|
23
21
|
export declare const DEFAULT_ROWS: number;
|
|
24
22
|
export declare const DEFAULT_CLOSE_BUTTON: string;
|
|
25
|
-
export declare const MAIN_CONTENT_ID: string;
|
|
26
23
|
export declare const DENSITY_CONST: string;
|
|
27
24
|
export declare const COLOR_CONST: string;
|
|
28
25
|
export declare enum DENSITY {
|
|
@@ -69,7 +66,6 @@ export declare enum COLOR {
|
|
|
69
66
|
export declare const COLORS: COLOR[];
|
|
70
67
|
export declare const COLORS_SIMPLE: COLOR_SIMPLE[];
|
|
71
68
|
export declare enum SEMANTIC {
|
|
72
|
-
NEUTRAL = "neutral",
|
|
73
69
|
CRITICAL = "critical",
|
|
74
70
|
INFORMATIONAL = "informational",
|
|
75
71
|
WARNING = "warning",
|
package/dist/shared/model.d.ts
CHANGED
|
@@ -104,10 +104,6 @@ export type MarginProps = {
|
|
|
104
104
|
*/
|
|
105
105
|
margin?: MarginType;
|
|
106
106
|
};
|
|
107
|
-
export declare const ShellControlPanelDesktopPosition: readonly ["top", "left"];
|
|
108
|
-
export type ShellControlPanelDesktopPositionType = (typeof ShellControlPanelDesktopPosition)[number];
|
|
109
|
-
export declare const ShellControlPanelMobilePosition: readonly ["top", "bottom"];
|
|
110
|
-
export type ShellControlPanelMobilePositionType = (typeof ShellControlPanelMobilePosition)[number];
|
|
111
107
|
export declare const PlacementHorizontalList: readonly ["left", "right", "left-start", "left-end", "right-start", "right-end"];
|
|
112
108
|
export type PlacementHorizontalType = (typeof PlacementHorizontalList)[number];
|
|
113
109
|
export declare const PlacementVerticalList: readonly ["top", "bottom", "top-start", "top-end", "bottom-start", "bottom-end"];
|
|
@@ -190,10 +186,6 @@ export type PopoverProps = {
|
|
|
190
186
|
* Use fixed with for default max-width
|
|
191
187
|
*/
|
|
192
188
|
width?: PopoverWidthType;
|
|
193
|
-
/**
|
|
194
|
-
* If the floating element is inside a fixed container we might need to force absolute position
|
|
195
|
-
*/
|
|
196
|
-
forceAbsolute?: boolean | string;
|
|
197
189
|
};
|
|
198
190
|
export type NameProps = {
|
|
199
191
|
/**
|
|
@@ -547,33 +539,11 @@ export type NavigationBackButtonProps = {
|
|
|
547
539
|
*/
|
|
548
540
|
backButtonText?: string;
|
|
549
541
|
};
|
|
550
|
-
export type
|
|
542
|
+
export type AriaControlsProps = {
|
|
551
543
|
/**
|
|
552
|
-
*
|
|
544
|
+
* Pass `aria-controls` to inner element
|
|
553
545
|
*/
|
|
554
|
-
|
|
555
|
-
/**
|
|
556
|
-
* Slot to pass in a meta navigation.
|
|
557
|
-
* Desktop: Above the regular control-panel-desktop
|
|
558
|
-
* Mobile: Inside the drawer
|
|
559
|
-
*/
|
|
560
|
-
meta?: any;
|
|
561
|
-
/**
|
|
562
|
-
* Slot to pass one or more elements like DBButton (e.g. search) as primary action.
|
|
563
|
-
* Desktop: Shown next to the main-navigation
|
|
564
|
-
* Mobile: Shown next to the control-panel-brand
|
|
565
|
-
*/
|
|
566
|
-
primaryActions?: any;
|
|
567
|
-
/**
|
|
568
|
-
* Slot to pass one or more elements like DBButton (e.g. profile, language, etc.) as secondary action.
|
|
569
|
-
* Desktop: Shown separated by divider at the end of the control-panel-desktop
|
|
570
|
-
* Mobile: Shown inside the drawer at the bottom.
|
|
571
|
-
*/
|
|
572
|
-
secondaryActions?: any;
|
|
573
|
-
/**
|
|
574
|
-
* Slot to pass an anchor or link to skip the navigation and jump to main content.
|
|
575
|
-
*/
|
|
576
|
-
skipNavigation?: any;
|
|
546
|
+
controls?: string;
|
|
577
547
|
};
|
|
578
548
|
export type NoTextProps = {
|
|
579
549
|
/**
|
|
@@ -585,67 +555,6 @@ export type ValueLabelType = {
|
|
|
585
555
|
value: string;
|
|
586
556
|
label?: string;
|
|
587
557
|
};
|
|
588
|
-
export type OverflowScrollButtonProps = {
|
|
589
|
-
/**
|
|
590
|
-
* Change amount of scroll distance when clicking on an overflow scroll arrow button.
|
|
591
|
-
*/
|
|
592
|
-
arrowScrollDistance?: number | string;
|
|
593
|
-
/**
|
|
594
|
-
* Set the text for the scroll left button
|
|
595
|
-
*/
|
|
596
|
-
scrollLeftText?: string;
|
|
597
|
-
/**
|
|
598
|
-
* Set the text for the scroll right button
|
|
599
|
-
*/
|
|
600
|
-
scrollRightText?: string;
|
|
601
|
-
};
|
|
602
|
-
export type OverflowScrollButtonState = {
|
|
603
|
-
scroll: (left?: boolean) => void;
|
|
604
|
-
showScrollLeft?: boolean;
|
|
605
|
-
showScrollRight?: boolean;
|
|
606
|
-
evaluateScrollButtons: (tabList: Element) => void;
|
|
607
|
-
};
|
|
608
|
-
export type SidebarProps = {
|
|
609
|
-
/**
|
|
610
|
-
* Set the expanded/collapsed state initially for the left sidebar
|
|
611
|
-
*/
|
|
612
|
-
expanded?: boolean | string;
|
|
613
|
-
/**
|
|
614
|
-
* Set the tooltip for the expand/collapse button
|
|
615
|
-
*/
|
|
616
|
-
expandButtonTooltip?: string;
|
|
617
|
-
/**
|
|
618
|
-
* Set the tooltip for the expand/collapse button based on the state. (only react|vue)
|
|
619
|
-
*/
|
|
620
|
-
expandButtonTooltipFn?: (open: boolean) => string;
|
|
621
|
-
/**
|
|
622
|
-
* Set the tooltip for the expand/collapse button based on the state. (only react|vue)
|
|
623
|
-
*/
|
|
624
|
-
onExpandButtonTooltipFn?: (open: boolean) => string;
|
|
625
|
-
};
|
|
626
|
-
export type SidebarState = {
|
|
627
|
-
_open: boolean;
|
|
628
|
-
getToggleButtonText: () => string;
|
|
629
|
-
};
|
|
630
|
-
export declare const NavigationItemGroupVariantList: readonly ["popover", "tree", "drilldown"];
|
|
631
|
-
export type NavigationItemGroupVariantType = (typeof NavigationItemGroupVariantList)[number];
|
|
632
|
-
export type NavigationItemGroupVariant = {
|
|
633
|
-
/**
|
|
634
|
-
* Selects the navigation interaction model: `popover` shows sub-items
|
|
635
|
-
* in a flyout menu, `tree` shows a collapsible tree structure.
|
|
636
|
-
* Note: This selects an interaction model, not just a visual variant.
|
|
637
|
-
*/
|
|
638
|
-
variant?: NavigationItemGroupVariantType;
|
|
639
|
-
};
|
|
640
|
-
export declare const CollapsibleBehaviorList: readonly ["single", "multiple"];
|
|
641
|
-
export type CollapsibleBehaviorType = (typeof CollapsibleBehaviorList)[number];
|
|
642
|
-
export type CollapsibleBehaviorProps = {
|
|
643
|
-
/**
|
|
644
|
-
* To allow multiple items open at the same time or only 1 item
|
|
645
|
-
* @default 'multiple'
|
|
646
|
-
*/
|
|
647
|
-
behavior?: CollapsibleBehaviorType;
|
|
648
|
-
};
|
|
649
558
|
export type DocumentScrollState = {
|
|
650
559
|
_documentScrollListenerCallbackId?: string;
|
|
651
560
|
handleDocumentScroll: (event: any, parent?: HTMLElement) => void;
|
|
@@ -26,12 +26,7 @@ export declare const getFloatingProps: (element: HTMLElement, parent: HTMLElemen
|
|
|
26
26
|
innerHeight: number;
|
|
27
27
|
outsideYBoth: boolean;
|
|
28
28
|
};
|
|
29
|
-
export declare const handleFixedPopover: (
|
|
30
|
-
element: HTMLElement;
|
|
31
|
-
parent: HTMLElement;
|
|
32
|
-
placement?: string;
|
|
33
|
-
forceAbsolute?: boolean;
|
|
34
|
-
}) => void;
|
|
29
|
+
export declare const handleFixedPopover: (element: HTMLElement, parent: HTMLElement, placement?: string) => void;
|
|
35
30
|
/**
|
|
36
31
|
* Detects whether a floating element overflows the viewport edges
|
|
37
32
|
* and sets `data-outside-vy` / `data-outside-vx` attributes accordingly.
|
|
@@ -45,4 +40,4 @@ export interface DBDataOutsidePair {
|
|
|
45
40
|
vx?: 'left' | 'right';
|
|
46
41
|
vy?: 'top' | 'bottom';
|
|
47
42
|
}
|
|
48
|
-
export declare const handleDataOutside: (el: HTMLElement) =>
|
|
43
|
+
export declare const handleDataOutside: (el: HTMLElement) => DBDataOutsidePair;
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -21,16 +21,6 @@ export declare const hasVoiceOver: () => boolean;
|
|
|
21
21
|
*/
|
|
22
22
|
export declare const isIOSSafari: () => boolean;
|
|
23
23
|
export declare const delay: (fn: () => void, ms: number) => Promise<unknown>;
|
|
24
|
-
/**
|
|
25
|
-
* Checks whether a CSS custom property on an element equals '1'.
|
|
26
|
-
* Useful for detecting CSS-driven boolean state (e.g. responsive breakpoints)
|
|
27
|
-
* without coupling JS to hardcoded breakpoint values.
|
|
28
|
-
*
|
|
29
|
-
* @param element - The element to read computed styles from
|
|
30
|
-
* @param property - The CSS custom property name (e.g. '--db-my-flag')
|
|
31
|
-
* @returns `true` if the trimmed property value is '1'
|
|
32
|
-
*/
|
|
33
|
-
export declare const hasCssFlag: (element: Element, property: string) => boolean;
|
|
34
24
|
/**
|
|
35
25
|
* Converts boolean-like inputs to "true" or "false" strings.
|
|
36
26
|
* Handles HTML-style boolean attributes where an empty string or the
|
|
@@ -1,25 +1,10 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Adjusts a sub-navigation's position so it stays within the viewport.
|
|
3
|
-
* Called from _handleMouseEnter for the specific hovered item's menu.
|
|
4
|
-
* Computes a precise pixel-based transform instead of the CSS's fixed
|
|
5
|
-
* `translateY(-200%)` which overshoots for most menu heights.
|
|
6
|
-
*
|
|
7
|
-
* Only applies to menus NOT already positioned by handleFixedPopover
|
|
8
|
-
* (i.e., nested sub-navigations that use position: absolute).
|
|
9
|
-
*/
|
|
10
|
-
export declare const adjustNestedSubNavigationPosition: (element: HTMLElement) => void;
|
|
11
1
|
export type TriangleData = {
|
|
12
2
|
itemRect: DOMRect;
|
|
13
3
|
parentElementWidth: number;
|
|
14
4
|
subNavigationHeight: number;
|
|
15
5
|
padding: number;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
* 'right' = sub-menu is to the right of the item
|
|
19
|
-
* 'left' = sub-menu is to the left of the item
|
|
20
|
-
* 'bottom' = sub-menu is below the item
|
|
21
|
-
*/
|
|
22
|
-
openDirection: 'left' | 'right' | 'bottom';
|
|
6
|
+
outsideVX: 'left' | 'right' | undefined;
|
|
7
|
+
outsideVY: 'top' | 'bottom' | undefined;
|
|
23
8
|
};
|
|
24
9
|
export declare const isEventTargetNavigationItem: (event: unknown) => boolean;
|
|
25
10
|
export declare class NavigationItemSafeTriangle {
|
|
@@ -34,15 +19,14 @@ export declare class NavigationItemSafeTriangle {
|
|
|
34
19
|
private init;
|
|
35
20
|
enableFollow(): void;
|
|
36
21
|
disableFollow(): void;
|
|
22
|
+
private getTriangleTipX;
|
|
23
|
+
private getTriangleTipY;
|
|
37
24
|
private hasMouseEnteredSubNavigation;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
clientY: number;
|
|
41
|
-
}): void;
|
|
25
|
+
private getTriangleCoordinates;
|
|
26
|
+
followByMouseEvent(event: MouseEvent): void;
|
|
42
27
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}) => void;
|
|
28
|
+
declare const _default: {
|
|
29
|
+
isEventTargetNavigationItem: (event: unknown) => boolean;
|
|
30
|
+
NavigationItemSafeTriangle: typeof NavigationItemSafeTriangle;
|
|
31
|
+
};
|
|
32
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@db-ux/v-core-components",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Vue components for @db-ux/core-components",
|
|
6
6
|
"repository": {
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"dist/"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@db-ux/core-components": "5.
|
|
32
|
-
"@db-ux/core-foundations": "5.
|
|
31
|
+
"@db-ux/core-components": "5.2.0",
|
|
32
|
+
"@db-ux/core-foundations": "5.2.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@playwright/experimental-ct-vue": "1.62.1",
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# ControlPanelBrand Examples (vue)
|
|
4
|
-
|
|
5
|
-
```vue
|
|
6
|
-
<template>
|
|
7
|
-
<h1>DBControlPanelBrand Documentation Examples</h1>
|
|
8
|
-
<h2>1. Default Control Panel Brand</h2>
|
|
9
|
-
<DBControlPanelBrand></DBControlPanelBrand>
|
|
10
|
-
</template>
|
|
11
|
-
|
|
12
|
-
<script setup lang="ts">
|
|
13
|
-
import { DBControlPanelBrand } from "@db-ux/v-v-core-components";
|
|
14
|
-
</script>
|
|
15
|
-
```
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# ControlPanelDesktop Examples (vue)
|
|
4
|
-
|
|
5
|
-
```vue
|
|
6
|
-
<template>
|
|
7
|
-
<h1>DBControlPanelDesktop Documentation Examples</h1>
|
|
8
|
-
<h2>1. Default Control Panel Desktop</h2>
|
|
9
|
-
<DBControlPanelDesktop
|
|
10
|
-
:brand="<DBControlPanelBrand>Application Name</DBControlPanelBrand>"
|
|
11
|
-
><DBControlPanelNavigation
|
|
12
|
-
><DBControlPanelNavigationItem icon="x_placeholder"
|
|
13
|
-
><a href="#">Navi-Item 1</a></DBControlPanelNavigationItem
|
|
14
|
-
><DBControlPanelNavigationItem icon="x_placeholder" :disabled="true"
|
|
15
|
-
><a href="#">Navi-Item 2</a></DBControlPanelNavigationItem
|
|
16
|
-
></DBControlPanelNavigation
|
|
17
|
-
></DBControlPanelDesktop
|
|
18
|
-
>
|
|
19
|
-
<h2>2. Vertical Orientation</h2>
|
|
20
|
-
<DBControlPanelDesktop
|
|
21
|
-
orientation="vertical"
|
|
22
|
-
:brand="<DBControlPanelBrand>Application Name</DBControlPanelBrand>"
|
|
23
|
-
><DBControlPanelNavigation
|
|
24
|
-
><DBControlPanelNavigationItem icon="x_placeholder"
|
|
25
|
-
><a href="#">Navi-Item 1</a></DBControlPanelNavigationItem
|
|
26
|
-
></DBControlPanelNavigation
|
|
27
|
-
></DBControlPanelDesktop
|
|
28
|
-
>
|
|
29
|
-
<h2>3. Collapsed (expanded=false)</h2>
|
|
30
|
-
<DBControlPanelDesktop
|
|
31
|
-
orientation="vertical"
|
|
32
|
-
:expanded="false"
|
|
33
|
-
:brand="<DBControlPanelBrand>Application Name</DBControlPanelBrand>"
|
|
34
|
-
><DBControlPanelNavigation
|
|
35
|
-
><DBControlPanelNavigationItem icon="x_placeholder"
|
|
36
|
-
><a href="#">Navi-Item 1</a></DBControlPanelNavigationItem
|
|
37
|
-
></DBControlPanelNavigation
|
|
38
|
-
></DBControlPanelDesktop
|
|
39
|
-
>
|
|
40
|
-
</template>
|
|
41
|
-
|
|
42
|
-
<script setup lang="ts">
|
|
43
|
-
import { DBControlPanelBrand } from "@db-ux/v-v-core-components";
|
|
44
|
-
import { DBControlPanelNavigation } from "@db-ux/v-v-core-components";
|
|
45
|
-
import { DBControlPanelNavigationItem } from "@db-ux/v-v-core-components";
|
|
46
|
-
import { DBControlPanelDesktop } from "@db-ux/v-v-core-components";
|
|
47
|
-
</script>
|
|
48
|
-
```
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# ControlPanelMeta Examples (vue)
|
|
4
|
-
|
|
5
|
-
```vue
|
|
6
|
-
<template>
|
|
7
|
-
<h1>DBControlPanelMeta Documentation Examples</h1>
|
|
8
|
-
<h2>1. Default Meta</h2>
|
|
9
|
-
<DBControlPanelMeta
|
|
10
|
-
><DBLink href="#">Imprint</DBLink><DBLink href="#">Help</DBLink
|
|
11
|
-
><DBLink href="#">Privacy</DBLink></DBControlPanelMeta
|
|
12
|
-
>
|
|
13
|
-
</template>
|
|
14
|
-
|
|
15
|
-
<script setup lang="ts">
|
|
16
|
-
import { DBLink } from "@db-ux/v-v-core-components";
|
|
17
|
-
import { DBControlPanelMeta } from "@db-ux/v-v-core-components";
|
|
18
|
-
</script>
|
|
19
|
-
```
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# ControlPanelMobile Examples (vue)
|
|
4
|
-
|
|
5
|
-
```vue
|
|
6
|
-
<template>
|
|
7
|
-
<h1>DBControlPanelMobile Documentation Examples</h1>
|
|
8
|
-
<h2>1. Default Control Panel Mobile (Drawer)</h2>
|
|
9
|
-
<DBControlPanelMobile
|
|
10
|
-
drawerHeaderText="Application Name"
|
|
11
|
-
:brand="<DBControlPanelBrand>Application Name</DBControlPanelBrand>"
|
|
12
|
-
><DBControlPanelNavigation
|
|
13
|
-
><DBControlPanelNavigationItem icon="x_placeholder"
|
|
14
|
-
><a href="#">Navi-Item 1</a></DBControlPanelNavigationItem
|
|
15
|
-
><DBControlPanelNavigationItem icon="x_placeholder" :disabled="true"
|
|
16
|
-
><a href="#">Navi-Item 2</a></DBControlPanelNavigationItem
|
|
17
|
-
></DBControlPanelNavigation
|
|
18
|
-
></DBControlPanelMobile
|
|
19
|
-
>
|
|
20
|
-
<h2>2. Bottom Position + Flat Icon Variant</h2>
|
|
21
|
-
<DBControlPanelMobile
|
|
22
|
-
position="bottom"
|
|
23
|
-
variant="flat-icon"
|
|
24
|
-
drawerHeaderText="Application Name"
|
|
25
|
-
:brand="<DBControlPanelBrand>Application Name</DBControlPanelBrand>"
|
|
26
|
-
><DBControlPanelNavigation
|
|
27
|
-
><DBControlPanelNavigationItem icon="x_placeholder"
|
|
28
|
-
><a href="#">Navi-Item 1</a></DBControlPanelNavigationItem
|
|
29
|
-
></DBControlPanelNavigation
|
|
30
|
-
></DBControlPanelMobile
|
|
31
|
-
>
|
|
32
|
-
</template>
|
|
33
|
-
|
|
34
|
-
<script setup lang="ts">
|
|
35
|
-
import { DBControlPanelBrand } from "@db-ux/v-v-core-components";
|
|
36
|
-
import { DBControlPanelNavigation } from "@db-ux/v-v-core-components";
|
|
37
|
-
import { DBControlPanelNavigationItem } from "@db-ux/v-v-core-components";
|
|
38
|
-
import { DBControlPanelMobile } from "@db-ux/v-v-core-components";
|
|
39
|
-
</script>
|
|
40
|
-
```
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# ControlPanelNavigation Examples (vue)
|
|
4
|
-
|
|
5
|
-
```vue
|
|
6
|
-
<template>
|
|
7
|
-
<h1>DBControlPanelNavigation Documentation Examples</h1>
|
|
8
|
-
<h2>1. Default Navigation</h2>
|
|
9
|
-
<DBControlPanelNavigation
|
|
10
|
-
><DBControlPanelNavigationItem
|
|
11
|
-
><a href="#">Navi-Item 1</a></DBControlPanelNavigationItem
|
|
12
|
-
><DBControlPanelNavigationItem icon="x_placeholder"
|
|
13
|
-
><a href="#">Navi-Item 2</a></DBControlPanelNavigationItem
|
|
14
|
-
><DBControlPanelNavigationItem :disabled="true"
|
|
15
|
-
><a href="#">Navi-Item 3</a></DBControlPanelNavigationItem
|
|
16
|
-
></DBControlPanelNavigation
|
|
17
|
-
>
|
|
18
|
-
</template>
|
|
19
|
-
|
|
20
|
-
<script setup lang="ts">
|
|
21
|
-
import { DBControlPanelNavigationItem } from "@db-ux/v-v-core-components";
|
|
22
|
-
import { DBControlPanelNavigation } from "@db-ux/v-v-core-components";
|
|
23
|
-
</script>
|
|
24
|
-
```
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# ControlPanelNavigationItem Examples (vue)
|
|
4
|
-
|
|
5
|
-
```vue
|
|
6
|
-
<template>
|
|
7
|
-
<h1>DBControlPanelNavigationItem Documentation Examples</h1>
|
|
8
|
-
<h2>1. Default Navigation Item</h2>
|
|
9
|
-
<DBControlPanelNavigationItem>
|
|
10
|
-
Default Navigation Item
|
|
11
|
-
</DBControlPanelNavigationItem>
|
|
12
|
-
<h2>2. Active State</h2>
|
|
13
|
-
<DBControlPanelNavigationItem :active="true">
|
|
14
|
-
Active Navigation Item
|
|
15
|
-
</DBControlPanelNavigationItem>
|
|
16
|
-
<h2>3. Disabled State</h2>
|
|
17
|
-
<DBControlPanelNavigationItem :disabled="true">
|
|
18
|
-
Disabled Navigation Item
|
|
19
|
-
</DBControlPanelNavigationItem>
|
|
20
|
-
<h2>4. Sub-Navigation</h2>
|
|
21
|
-
<DBControlPanelNavigationItem
|
|
22
|
-
:subNavigation="<div>Sub Navigation Content</div>"
|
|
23
|
-
>
|
|
24
|
-
Navigation Item with Sub-Navigation
|
|
25
|
-
</DBControlPanelNavigationItem>
|
|
26
|
-
<h2>5. Icon Support</h2>
|
|
27
|
-
<DBControlPanelNavigationItem icon="user">
|
|
28
|
-
Navigation Item with Icon
|
|
29
|
-
</DBControlPanelNavigationItem>
|
|
30
|
-
<h2>6. Custom Class</h2>
|
|
31
|
-
<DBControlPanelNavigationItem>
|
|
32
|
-
Navigation Item with Custom Class
|
|
33
|
-
</DBControlPanelNavigationItem>
|
|
34
|
-
</template>
|
|
35
|
-
|
|
36
|
-
<script setup lang="ts">
|
|
37
|
-
import { DBControlPanelNavigationItem } from "@db-ux/v-v-core-components";
|
|
38
|
-
</script>
|
|
39
|
-
```
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# ControlPanelPrimaryActions Examples (vue)
|
|
4
|
-
|
|
5
|
-
```vue
|
|
6
|
-
<template>
|
|
7
|
-
<h1>DBControlPanelPrimaryActions Documentation Examples</h1>
|
|
8
|
-
<h2>1. Default Primary Actions</h2>
|
|
9
|
-
<DBControlPanelPrimaryActions
|
|
10
|
-
><DBButton icon="magnifying_glass" variant="ghost" :noText="true">
|
|
11
|
-
Search
|
|
12
|
-
</DBButton></DBControlPanelPrimaryActions
|
|
13
|
-
>
|
|
14
|
-
</template>
|
|
15
|
-
|
|
16
|
-
<script setup lang="ts">
|
|
17
|
-
import { DBButton } from "@db-ux/v-v-core-components";
|
|
18
|
-
import { DBControlPanelPrimaryActions } from "@db-ux/v-v-core-components";
|
|
19
|
-
</script>
|
|
20
|
-
```
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# ControlPanelSecondaryActions Examples (vue)
|
|
4
|
-
|
|
5
|
-
```vue
|
|
6
|
-
<template>
|
|
7
|
-
<h1>DBControlPanelSecondaryActions Documentation Examples</h1>
|
|
8
|
-
<h2>1. Default Secondary Actions</h2>
|
|
9
|
-
<DBControlPanelSecondaryActions
|
|
10
|
-
><DBButton icon="x_placeholder" variant="ghost" :noText="true">
|
|
11
|
-
Profile </DBButton
|
|
12
|
-
><DBButton icon="x_placeholder" variant="ghost" :noText="true">
|
|
13
|
-
Notification </DBButton
|
|
14
|
-
><DBButton icon="x_placeholder" variant="ghost" :noText="true">
|
|
15
|
-
Help
|
|
16
|
-
</DBButton></DBControlPanelSecondaryActions
|
|
17
|
-
>
|
|
18
|
-
</template>
|
|
19
|
-
|
|
20
|
-
<script setup lang="ts">
|
|
21
|
-
import { DBButton } from "@db-ux/v-v-core-components";
|
|
22
|
-
import { DBControlPanelSecondaryActions } from "@db-ux/v-v-core-components";
|
|
23
|
-
</script>
|
|
24
|
-
```
|
package/agent/Shell.md
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# Shell Examples (vue)
|
|
4
|
-
|
|
5
|
-
```vue
|
|
6
|
-
<template>
|
|
7
|
-
<h1>DBShell Documentation Examples</h1>
|
|
8
|
-
<h2>1. Full Shell (Desktop + Mobile Control Panel)</h2>
|
|
9
|
-
<DBShell>
|
|
10
|
-
<template v-slot:controlPanelDesktop><DBControlPanelDesktop><template v-slot:brand><DBControlPanelBrand data-logo="db-systel" /></template><template v-slot:meta><DBLink href="#">Imprint</DBLink><DBLink href="#">Help</DBLink></template><template v-slot:primaryActions><DBButton icon="magnifying_glass" variant="ghost" noText>Search</DBButton></template><template v-slot:secondaryActions><DBButton icon="x_placeholder" variant="ghost" noText>Profile</DBButton><DBButton icon="x_placeholder" variant="ghost" noText>Notification</DBButton><DBButton icon="x_placeholder" variant="ghost" noText>Help</DBButton></template><DBControlPanelNavigation><DBControlPanelNavigationItem icon="x_placeholder"><a href="#">Navi-Item 1</a></DBControlPanelNavigationItem><DBControlPanelNavigationItem icon="x_placeholder" disabled><a href="#">Navi-Item 2</a></DBControlPanelNavigationItem></DBControlPanelNavigation></DBControlPanelDesktop></template>
|
|
11
|
-
<template v-slot:controlPanelMobile><DBControlPanelMobile drawerHeaderText="Application Name"><template v-slot:brand><DBControlPanelBrand data-logo="db-systel" /></template><template v-slot:meta><DBLink href="#">Imprint</DBLink><DBLink href="#">Help</DBLink></template><template v-slot:primaryActions><DBButton icon="magnifying_glass" variant="ghost" noText>Search</DBButton></template><template v-slot:secondaryActions><DBButton icon="x_placeholder" variant="ghost" noText>Profile</DBButton><DBButton icon="x_placeholder" variant="ghost" noText>Notification</DBButton><DBButton icon="x_placeholder" variant="ghost" noText>Help</DBButton></template><DBControlPanelNavigation><DBControlPanelNavigationItem icon="x_placeholder"><a href="#">Navi-Item 1</a></DBControlPanelNavigationItem><DBControlPanelNavigationItem icon="x_placeholder" disabled><a href="#">Navi-Item 2</a></DBControlPanelNavigationItem></DBControlPanelNavigation></DBControlPanelMobile></template>
|
|
12
|
-
|
|
13
|
-
<DBControlPanelNavigation
|
|
14
|
-
><DBControlPanelNavigationItem icon="x_placeholder"
|
|
15
|
-
><a href="#">Navi-Item 1</a></DBControlPanelNavigationItem
|
|
16
|
-
><DBControlPanelNavigationItem icon="x_placeholder" :disabled="true"
|
|
17
|
-
><a href="#">Navi-Item 2</a></DBControlPanelNavigationItem
|
|
18
|
-
></DBControlPanelNavigation
|
|
19
|
-
></DBShell
|
|
20
|
-
>
|
|
21
|
-
</template>
|
|
22
|
-
|
|
23
|
-
<script setup lang="ts">
|
|
24
|
-
import { DBControlPanelNavigation } from "@db-ux/v-v-core-components";
|
|
25
|
-
import { DBControlPanelNavigationItem } from "@db-ux/v-v-core-components";
|
|
26
|
-
import { DBShell } from "@db-ux/v-v-core-components";
|
|
27
|
-
</script>
|
|
28
|
-
```
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { DBControlPanelBrandProps } 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<DBControlPanelBrandProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<DBControlPanelBrandProps> & Readonly<{}>, {
|
|
9
|
-
id: string;
|
|
10
|
-
children: any;
|
|
11
|
-
className: string;
|
|
12
|
-
propOverrides: import("../../index.js", { with: { "resolution-mode": "import" } }).PropOverridesType;
|
|
13
|
-
secondLine: string;
|
|
14
|
-
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
15
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
16
|
-
declare const _default: typeof __VLS_export;
|
|
17
|
-
export default _default;
|
|
18
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
-
new (): {
|
|
20
|
-
$slots: S;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as DBControlPanelBrand } from './control-panel-brand.vue';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { EndSlotProps, GlobalProps, GlobalState } from '../../shared/model.js';
|
|
2
|
-
export type DBControlPanelBrandDefaultProps = {
|
|
3
|
-
secondLine?: string;
|
|
4
|
-
};
|
|
5
|
-
export type DBControlPanelBrandProps = DBControlPanelBrandDefaultProps & GlobalProps & EndSlotProps;
|
|
6
|
-
export type DBControlPanelBrandDefaultState = {};
|
|
7
|
-
export type DBControlPanelBrandState = DBControlPanelBrandDefaultState & GlobalState;
|