@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/dist/index.d.ts
CHANGED
|
@@ -4,14 +4,24 @@ export * from './components/accordion-item/model';
|
|
|
4
4
|
export * from './components/accordion/model';
|
|
5
5
|
export * from './components/badge';
|
|
6
6
|
export * from './components/badge/model';
|
|
7
|
-
export * from './components/brand';
|
|
8
|
-
export * from './components/brand/model';
|
|
9
7
|
export * from './components/button';
|
|
10
8
|
export * from './components/button/model';
|
|
11
9
|
export * from './components/card';
|
|
12
10
|
export * from './components/card/model';
|
|
13
11
|
export * from './components/checkbox';
|
|
14
12
|
export * from './components/checkbox/model';
|
|
13
|
+
export * from './components/control-panel-brand';
|
|
14
|
+
export * from './components/control-panel-brand/model';
|
|
15
|
+
export * from './components/control-panel-desktop';
|
|
16
|
+
export * from './components/control-panel-desktop/model';
|
|
17
|
+
export * from './components/control-panel-meta-navigation';
|
|
18
|
+
export * from './components/control-panel-meta-navigation/model';
|
|
19
|
+
export * from './components/control-panel-mobile';
|
|
20
|
+
export * from './components/control-panel-mobile/model';
|
|
21
|
+
export * from './components/control-panel-primary-actions';
|
|
22
|
+
export * from './components/control-panel-primary-actions/model';
|
|
23
|
+
export * from './components/control-panel-secondary-actions';
|
|
24
|
+
export * from './components/control-panel-secondary-actions/model';
|
|
15
25
|
export * from './components/custom-select';
|
|
16
26
|
export * from './components/custom-select-dropdown';
|
|
17
27
|
export * from './components/custom-select-dropdown/model';
|
|
@@ -26,8 +36,6 @@ export * from './components/divider';
|
|
|
26
36
|
export * from './components/divider/model';
|
|
27
37
|
export * from './components/drawer';
|
|
28
38
|
export * from './components/drawer/model';
|
|
29
|
-
export * from './components/header';
|
|
30
|
-
export * from './components/header/model';
|
|
31
39
|
export * from './components/icon';
|
|
32
40
|
export * from './components/icon/model';
|
|
33
41
|
export * from './components/infotext';
|
|
@@ -38,12 +46,12 @@ export * from './components/link';
|
|
|
38
46
|
export * from './components/link/model';
|
|
39
47
|
export * from './components/navigation';
|
|
40
48
|
export * from './components/navigation-item';
|
|
49
|
+
export * from './components/navigation-item-group';
|
|
50
|
+
export * from './components/navigation-item-group/model';
|
|
41
51
|
export * from './components/navigation-item/model';
|
|
42
52
|
export * from './components/navigation/model';
|
|
43
53
|
export * from './components/notification';
|
|
44
54
|
export * from './components/notification/model';
|
|
45
|
-
export * from './components/page';
|
|
46
|
-
export * from './components/page/model';
|
|
47
55
|
export * from './components/popover';
|
|
48
56
|
export * from './components/popover/model';
|
|
49
57
|
export * from './components/radio';
|
|
@@ -52,6 +60,8 @@ export * from './components/section';
|
|
|
52
60
|
export * from './components/section/model';
|
|
53
61
|
export * from './components/select';
|
|
54
62
|
export * from './components/select/model';
|
|
63
|
+
export * from './components/shell';
|
|
64
|
+
export * from './components/shell/model';
|
|
55
65
|
export * from './components/stack';
|
|
56
66
|
export * from './components/stack/model';
|
|
57
67
|
export * from './components/switch';
|
|
@@ -77,3 +87,6 @@ export * from './utils/document-scroll-listener';
|
|
|
77
87
|
export * from './utils/floating-components';
|
|
78
88
|
export * from './utils/index';
|
|
79
89
|
export * from './utils/navigation';
|
|
90
|
+
export * from './components/shell-sub-navigation';
|
|
91
|
+
export * from "./components/control-panel-flat-icon-navigation";
|
|
92
|
+
export * from "./components/control-panel-flat-icon-navigation/model";
|
|
@@ -14,6 +14,8 @@ 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;
|
|
17
19
|
export declare const DEFAULT_BURGER_MENU: string;
|
|
18
20
|
export declare const DEFAULT_ICON: string;
|
|
19
21
|
export declare const DEFAULT_ROWS: number;
|
|
@@ -64,6 +66,7 @@ export declare enum COLOR {
|
|
|
64
66
|
export declare const COLORS: COLOR[];
|
|
65
67
|
export declare const COLORS_SIMPLE: COLOR_SIMPLE[];
|
|
66
68
|
export declare enum SEMANTIC {
|
|
69
|
+
'NEUTRAL' = "neutral",
|
|
67
70
|
'CRITICAL' = "critical",
|
|
68
71
|
'INFORMATIONAL' = "informational",
|
|
69
72
|
'WARNING' = "warning",
|
package/dist/shared/model.d.ts
CHANGED
|
@@ -87,6 +87,10 @@ export type MarginProps = {
|
|
|
87
87
|
*/
|
|
88
88
|
margin?: MarginType;
|
|
89
89
|
};
|
|
90
|
+
export declare const ShellControlPanelDesktopPosition: readonly ["top", "left"];
|
|
91
|
+
export type ShellControlPanelDesktopPositionType = (typeof ShellControlPanelDesktopPosition)[number];
|
|
92
|
+
export declare const ShellControlPanelMobilePosition: readonly ["top", "bottom"];
|
|
93
|
+
export type ShellControlPanelMobilePositionType = (typeof ShellControlPanelMobilePosition)[number];
|
|
90
94
|
export declare const PlacementHorizontalList: readonly ["left", "right", "left-start", "left-end", "right-start", "right-end"];
|
|
91
95
|
export type PlacementHorizontalType = (typeof PlacementHorizontalList)[number];
|
|
92
96
|
export declare const PlacementVerticalList: readonly ["top", "bottom", "top-start", "top-end", "bottom-start", "bottom-end"];
|
|
@@ -232,11 +236,13 @@ export type ValueProps = {
|
|
|
232
236
|
*/
|
|
233
237
|
value?: any;
|
|
234
238
|
};
|
|
235
|
-
export type
|
|
239
|
+
export type DisabledProps = {
|
|
236
240
|
/**
|
|
237
|
-
* The disabled attribute can be set to keep a user from clicking on the
|
|
241
|
+
* The disabled attribute can be set to keep a user from clicking on the item.
|
|
238
242
|
*/
|
|
239
243
|
disabled?: boolean | string;
|
|
244
|
+
};
|
|
245
|
+
export type BaseFormProps = {
|
|
240
246
|
/**
|
|
241
247
|
* The label attribute specifies the caption of the form element.
|
|
242
248
|
*/
|
|
@@ -245,7 +251,7 @@ export type BaseFormProps = {
|
|
|
245
251
|
* The name attribute gives the name of the form control, as used in form submission and in the form element's elements object.
|
|
246
252
|
*/
|
|
247
253
|
name?: string;
|
|
248
|
-
};
|
|
254
|
+
} & DisabledProps;
|
|
249
255
|
export type CustomFormProps = {
|
|
250
256
|
/**
|
|
251
257
|
* Overwrites auto handling for aria-describedby.
|
|
@@ -505,10 +511,83 @@ export type AriaControlsProps = {
|
|
|
505
511
|
*/
|
|
506
512
|
controls?: string;
|
|
507
513
|
};
|
|
514
|
+
export type ControlPanelProps = {
|
|
515
|
+
/**
|
|
516
|
+
* Slot to pass in the DBControlPanelBrand component
|
|
517
|
+
*/
|
|
518
|
+
brand?: any;
|
|
519
|
+
/**
|
|
520
|
+
* Slot to pass in a meta navigation.
|
|
521
|
+
* Desktop: Above the regular control-panel-desktop
|
|
522
|
+
* Mobile: Inside the drawer
|
|
523
|
+
*/
|
|
524
|
+
metaNavigation?: any;
|
|
525
|
+
/**
|
|
526
|
+
* Slot to pass one or more elements like DBButton (e.g. search) as primary action.
|
|
527
|
+
* Desktop: Shown next to the main-navigation
|
|
528
|
+
* Mobile: Shown next to the control-panel-brand
|
|
529
|
+
*/
|
|
530
|
+
primaryActions?: any;
|
|
531
|
+
/**
|
|
532
|
+
* Slot to pass one or more elements like DBButton (e.g. profile, language, etc.) as secondary action.
|
|
533
|
+
* Desktop: Shown seperated by divider at the end of the control-panel-desktop
|
|
534
|
+
* Mobile: Shown inside the drawer at the bottom.
|
|
535
|
+
*/
|
|
536
|
+
secondaryActions?: any;
|
|
537
|
+
/**
|
|
538
|
+
* Adds ``aria-labelledby`` to the <nav> element.
|
|
539
|
+
*/
|
|
540
|
+
navigationLabeledBy?: string;
|
|
541
|
+
};
|
|
508
542
|
export type ValueLabelType = {
|
|
509
543
|
value: string;
|
|
510
544
|
label?: string;
|
|
511
545
|
};
|
|
546
|
+
export type OverflowScrollButtonProps = {
|
|
547
|
+
/**
|
|
548
|
+
* Change amount of distance if you click on an arrow, only available with behavior="arrows"
|
|
549
|
+
*/
|
|
550
|
+
arrowScrollDistance?: number | string;
|
|
551
|
+
};
|
|
552
|
+
export type OverflowScrollButtonState = {
|
|
553
|
+
scroll: (left?: boolean) => void;
|
|
554
|
+
showScrollLeft?: boolean;
|
|
555
|
+
showScrollRight?: boolean;
|
|
556
|
+
evaluateScrollButtons: (tabList: Element) => void;
|
|
557
|
+
};
|
|
558
|
+
export type SidebarProps = {
|
|
559
|
+
/**
|
|
560
|
+
* Set the expanded/collapsed state initially for the left sidebar
|
|
561
|
+
*/
|
|
562
|
+
expanded?: boolean | string;
|
|
563
|
+
/**
|
|
564
|
+
* Set the tooltip for the expand/collapse button
|
|
565
|
+
*/
|
|
566
|
+
expandButtonTooltip?: string;
|
|
567
|
+
/**
|
|
568
|
+
* Set the tooltip for the expand/collapse button based on the state. (only react|vue)
|
|
569
|
+
*/
|
|
570
|
+
expandButtonTooltipFn?: (open: boolean) => string;
|
|
571
|
+
/**
|
|
572
|
+
* Set the tooltip for the expand/collapse button based on the state. (only react|vue)
|
|
573
|
+
*/
|
|
574
|
+
onExpandButtonTooltipFn?: (open: boolean) => string;
|
|
575
|
+
};
|
|
576
|
+
export type SidebarState = {
|
|
577
|
+
_open: boolean;
|
|
578
|
+
getToggleButtonText: () => string;
|
|
579
|
+
};
|
|
580
|
+
export declare const NavigationItemGroupVariantList: readonly ["popover", "tree"];
|
|
581
|
+
export type NavigationItemGroupVariantType = (typeof NavigationItemGroupVariantList)[number];
|
|
582
|
+
export type NavigationItemGroupVariant = {
|
|
583
|
+
variant?: NavigationItemGroupVariantType;
|
|
584
|
+
};
|
|
585
|
+
export type AdditionalInformationSlotProps = {
|
|
586
|
+
/**
|
|
587
|
+
* Slot to add additional information most likely a DBBadge
|
|
588
|
+
*/
|
|
589
|
+
additionalInformation?: any;
|
|
590
|
+
};
|
|
512
591
|
export type DocumentScrollState = {
|
|
513
592
|
_documentScrollListenerCallbackId?: string;
|
|
514
593
|
handleDocumentScroll: (event: any, parent?: HTMLElement) => void;
|
|
@@ -16,5 +16,21 @@ export declare const getFloatingProps: (element: HTMLElement, parent: HTMLElemen
|
|
|
16
16
|
correctedPlacement: string;
|
|
17
17
|
innerWidth: number;
|
|
18
18
|
innerHeight: number;
|
|
19
|
+
outsideYBoth?: undefined;
|
|
20
|
+
outsideXBoth?: undefined;
|
|
21
|
+
} | {
|
|
22
|
+
top: number;
|
|
23
|
+
bottom: number;
|
|
24
|
+
right: number;
|
|
25
|
+
height: number;
|
|
26
|
+
width: number;
|
|
27
|
+
left: number;
|
|
28
|
+
childHeight: number;
|
|
29
|
+
childWidth: number;
|
|
30
|
+
correctedPlacement: string;
|
|
31
|
+
innerWidth: number;
|
|
32
|
+
innerHeight: number;
|
|
33
|
+
outsideYBoth: boolean;
|
|
34
|
+
outsideXBoth: boolean;
|
|
19
35
|
};
|
|
20
|
-
export declare const handleFixedPopover: (element: HTMLElement, parent: HTMLElement, placement
|
|
36
|
+
export declare const handleFixedPopover: (element: HTMLElement, parent: HTMLElement, placement?: string) => void;
|
|
@@ -23,10 +23,6 @@ export declare class NavigationItemSafeTriangle {
|
|
|
23
23
|
private getTriangleTipY;
|
|
24
24
|
private hasMouseEnteredSubNavigation;
|
|
25
25
|
private getTriangleCoordinates;
|
|
26
|
-
followByMouseEvent(event:
|
|
26
|
+
followByMouseEvent(event: any): void;
|
|
27
27
|
}
|
|
28
|
-
declare const
|
|
29
|
-
isEventTargetNavigationItem: (event: unknown) => boolean;
|
|
30
|
-
NavigationItemSafeTriangle: typeof NavigationItemSafeTriangle;
|
|
31
|
-
};
|
|
32
|
-
export default _default;
|
|
28
|
+
export declare const handleSubNavigationPosition: (element: HTMLElement, level?: number) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@db-ux/v-core-components",
|
|
3
|
-
"version": "3.0.2-
|
|
3
|
+
"version": "3.0.2-shell2-badc28f",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Vue components for @db-ux/core-components",
|
|
6
6
|
"repository": {
|
|
@@ -23,15 +23,13 @@
|
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
26
|
-
"dist/"
|
|
27
|
-
"agent"
|
|
26
|
+
"dist/"
|
|
28
27
|
],
|
|
29
28
|
"scripts": {
|
|
30
29
|
"build": "npm-run-all build:*",
|
|
31
30
|
"build:01_vite": "vite build",
|
|
32
31
|
"build:02_types": "vue-tsc --declaration --emitDeclarationOnly",
|
|
33
32
|
"mv:dist": "cpr dist ../../build-outputs/vue/dist --overwrite",
|
|
34
|
-
"mv:agent": "cpr agent ../../build-outputs/vue/agent -o",
|
|
35
33
|
"mv:package.json": "cpr package.json ../../build-outputs/vue/package.json --overwrite",
|
|
36
34
|
"mv:readme": "cpr README.md ../../build-outputs/vue/README.md --overwrite",
|
|
37
35
|
"postbuild": "npm-run-all --parallel mv:*",
|
|
@@ -40,13 +38,13 @@
|
|
|
40
38
|
},
|
|
41
39
|
"devDependencies": {
|
|
42
40
|
"@playwright/experimental-ct-vue": "1.54.1",
|
|
43
|
-
"@vitejs/plugin-vue": "6.0.
|
|
41
|
+
"@vitejs/plugin-vue": "6.0.1",
|
|
44
42
|
"replace-in-file": "8.3.0",
|
|
45
43
|
"tsx": "4.20.3",
|
|
46
44
|
"typescript": "5.8.3",
|
|
47
45
|
"vite": "6.3.5",
|
|
48
46
|
"vue": "3.5.18",
|
|
49
|
-
"vue-tsc": "3.0.
|
|
47
|
+
"vue-tsc": "3.0.4"
|
|
50
48
|
},
|
|
51
49
|
"publishConfig": {
|
|
52
50
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -55,7 +53,7 @@
|
|
|
55
53
|
"sideEffects": false,
|
|
56
54
|
"source": "src/index.ts",
|
|
57
55
|
"dependencies": {
|
|
58
|
-
"@db-ux/core-components": "3.0.2-
|
|
59
|
-
"@db-ux/core-foundations": "3.0.2-
|
|
56
|
+
"@db-ux/core-components": "3.0.2-shell2-badc28f",
|
|
57
|
+
"@db-ux/core-foundations": "3.0.2-shell2-badc28f"
|
|
60
58
|
}
|
|
61
59
|
}
|
package/agent/Accordion.md
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# Accordion Examples (vue)
|
|
4
|
-
|
|
5
|
-
```vue
|
|
6
|
-
<template>
|
|
7
|
-
<h1>DBAccordion Documentation Examples</h1>
|
|
8
|
-
<h2>1. Default Accordion</h2>
|
|
9
|
-
<DBAccordion>Default Accordion</DBAccordion>
|
|
10
|
-
<h2>2. Behavior Variants</h2>
|
|
11
|
-
<DBAccordion behavior="multiple">Multiple Behavior</DBAccordion>
|
|
12
|
-
<DBAccordion behavior="single">Single Behavior</DBAccordion>
|
|
13
|
-
<h2>3. Initial Open Index</h2>
|
|
14
|
-
<DBAccordion :initOpenIndex="[0, 1]">Initial Open Index</DBAccordion>
|
|
15
|
-
<h2>4. Items</h2>
|
|
16
|
-
<DBAccordion :items="getItems()">Accordion with Items</DBAccordion>
|
|
17
|
-
<h2>5. Name Attribute</h2>
|
|
18
|
-
<DBAccordion name="accordion-name">With Name</DBAccordion>
|
|
19
|
-
<h2>6. Variant Types</h2>
|
|
20
|
-
<DBAccordion variant="divider">Divider Variant</DBAccordion>
|
|
21
|
-
<DBAccordion variant="card">Card Variant</DBAccordion>
|
|
22
|
-
</template>
|
|
23
|
-
|
|
24
|
-
<script setup lang="ts">
|
|
25
|
-
import { DBAccordion } from "@db-ux/v-v-core-components";
|
|
26
|
-
|
|
27
|
-
function getItems() {
|
|
28
|
-
return [
|
|
29
|
-
{
|
|
30
|
-
text: "Item 1 Content",
|
|
31
|
-
headlinePlain: "Item 1",
|
|
32
|
-
disabled: false,
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
text: "Item 2 Content",
|
|
36
|
-
headlinePlain: "Item 2",
|
|
37
|
-
disabled: true,
|
|
38
|
-
},
|
|
39
|
-
];
|
|
40
|
-
}
|
|
41
|
-
</script>
|
|
42
|
-
```
|
package/agent/AccordionItem.md
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# AccordionItem Examples (vue)
|
|
4
|
-
|
|
5
|
-
```vue
|
|
6
|
-
<template>
|
|
7
|
-
<h1>DBAccordionItem Documentation Examples</h1>
|
|
8
|
-
<h2>1. Default Accordion Item</h2>
|
|
9
|
-
<DBAccordionItem>Default Accordion Item</DBAccordionItem>
|
|
10
|
-
<h2>2. Initial State</h2>
|
|
11
|
-
<DBAccordionItem :defaultOpen="true">Initially Open</DBAccordionItem>
|
|
12
|
-
<DBAccordionItem :defaultOpen="false"> Initially Closed </DBAccordionItem>
|
|
13
|
-
<h2>3. Disabled State</h2>
|
|
14
|
-
<DBAccordionItem :disabled="true"> Disabled Accordion Item </DBAccordionItem>
|
|
15
|
-
<h2>4. Headline Variants</h2>
|
|
16
|
-
<DBAccordionItem :headline="<strong>Custom Headline</strong>">
|
|
17
|
-
With Custom Headline
|
|
18
|
-
</DBAccordionItem>
|
|
19
|
-
<DBAccordionItem headlinePlain="Plain Headline">
|
|
20
|
-
With Plain Headline
|
|
21
|
-
</DBAccordionItem>
|
|
22
|
-
<h2>5. Toggle Event</h2>
|
|
23
|
-
<DBAccordionItem :onToggle="(open) => console.log('Toggled:', open)">
|
|
24
|
-
With Toggle Event
|
|
25
|
-
</DBAccordionItem>
|
|
26
|
-
</template>
|
|
27
|
-
|
|
28
|
-
<script setup lang="ts">
|
|
29
|
-
import { DBAccordionItem } from "@db-ux/v-v-core-components";
|
|
30
|
-
</script>
|
|
31
|
-
```
|
package/agent/Badge.md
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# Badge Examples (vue)
|
|
4
|
-
|
|
5
|
-
```vue
|
|
6
|
-
<template>
|
|
7
|
-
<h1>DBBadge Documentation Examples</h1>
|
|
8
|
-
<h2>1. Default Badge</h2>
|
|
9
|
-
<DBBadge>Default Badge</DBBadge>
|
|
10
|
-
<h2>2. Semantic Variants</h2>
|
|
11
|
-
<DBBadge semantic="adaptive">Adaptive</DBBadge>
|
|
12
|
-
<DBBadge semantic="neutral">Neutral</DBBadge>
|
|
13
|
-
<DBBadge semantic="critical">Critical</DBBadge>
|
|
14
|
-
<DBBadge semantic="informational">Informational</DBBadge>
|
|
15
|
-
<DBBadge semantic="warning">Warning</DBBadge>
|
|
16
|
-
<DBBadge semantic="successful">Successful</DBBadge>
|
|
17
|
-
<h2>3. Sizes</h2>
|
|
18
|
-
<DBBadge size="small">Small</DBBadge>
|
|
19
|
-
<DBBadge size="medium">Medium</DBBadge>
|
|
20
|
-
<h2>4. Emphasis Variants</h2>
|
|
21
|
-
<DBBadge emphasis="weak">Weak Emphasis</DBBadge>
|
|
22
|
-
<DBBadge emphasis="strong">Strong Emphasis</DBBadge>
|
|
23
|
-
<h2>5. Placement Variants</h2>
|
|
24
|
-
<DBBadge placement="inline">Inline</DBBadge>
|
|
25
|
-
<DBBadge placement="corner-top-left">Corner Top Left</DBBadge>
|
|
26
|
-
<DBBadge placement="corner-top-right">Corner Top Right</DBBadge>
|
|
27
|
-
<DBBadge placement="corner-center-left">Corner Center Left</DBBadge>
|
|
28
|
-
<DBBadge placement="corner-center-right"> Corner Center Right </DBBadge>
|
|
29
|
-
<DBBadge placement="corner-bottom-left">Corner Bottom Left</DBBadge>
|
|
30
|
-
<DBBadge placement="corner-bottom-right"> Corner Bottom Right </DBBadge>
|
|
31
|
-
<h2>6. Custom Label</h2>
|
|
32
|
-
<DBBadge label="Custom Label">With Custom Label</DBBadge>
|
|
33
|
-
</template>
|
|
34
|
-
|
|
35
|
-
<script setup lang="ts">
|
|
36
|
-
import { DBBadge } from "@db-ux/v-v-core-components";
|
|
37
|
-
</script>
|
|
38
|
-
```
|
package/agent/Brand.md
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# Brand Examples (vue)
|
|
4
|
-
|
|
5
|
-
```vue
|
|
6
|
-
<template>
|
|
7
|
-
<h1>DBBrand Documentation Examples</h1>
|
|
8
|
-
<h2>1. Default Brand</h2>
|
|
9
|
-
<DBBrand>Default Brand</DBBrand>
|
|
10
|
-
<h2>2. Icon Visibility</h2>
|
|
11
|
-
<DBBrand :showIcon="false">Icon Hidden</DBBrand>
|
|
12
|
-
<h2>3. Custom Text</h2>
|
|
13
|
-
<DBBrand text="Custom Brand Text">With Custom Text</DBBrand>
|
|
14
|
-
</template>
|
|
15
|
-
|
|
16
|
-
<script setup lang="ts">
|
|
17
|
-
import { DBBrand } from "@db-ux/v-v-core-components";
|
|
18
|
-
</script>
|
|
19
|
-
```
|
package/agent/Button.md
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# Button Examples (vue)
|
|
4
|
-
|
|
5
|
-
```vue
|
|
6
|
-
<template>
|
|
7
|
-
<h1>DBButton Documentation Examples</h1>
|
|
8
|
-
<h2>1. Default Button</h2>
|
|
9
|
-
<DBButton>Button</DBButton>
|
|
10
|
-
<h2>2. Variants</h2>
|
|
11
|
-
<DBButton variant="filled">Filled</DBButton>
|
|
12
|
-
<DBButton variant="outlined">Outlined</DBButton>
|
|
13
|
-
<DBButton variant="ghost">Ghost</DBButton>
|
|
14
|
-
<DBButton variant="brand">Brand</DBButton>
|
|
15
|
-
<h2>3. Sizes</h2>
|
|
16
|
-
<DBButton size="small">Small</DBButton>
|
|
17
|
-
<DBButton size="medium">Medium</DBButton>
|
|
18
|
-
<h2>4. Icon Only</h2>
|
|
19
|
-
<DBButton icon="check" :noText="true"></DBButton>
|
|
20
|
-
<h2>5. Disabled</h2>
|
|
21
|
-
<DBButton :disabled="true">Disabled</DBButton>
|
|
22
|
-
<h2>6. Button Types</h2>
|
|
23
|
-
<DBButton type="button">Type=button</DBButton>
|
|
24
|
-
<DBButton type="submit">Type=submit</DBButton>
|
|
25
|
-
<DBButton type="reset">Type=reset</DBButton>
|
|
26
|
-
<h2>7. Form Association</h2>
|
|
27
|
-
<form id="example-form">
|
|
28
|
-
<input name="exampleInput" placeholder="Example input" />
|
|
29
|
-
</form>
|
|
30
|
-
<DBButton form="example-form" type="submit"> Submit Form </DBButton>
|
|
31
|
-
<h2>8. Name & Value</h2>
|
|
32
|
-
<DBButton name="testName" value="testValue"> Name/Value </DBButton>
|
|
33
|
-
<h2>9. Width</h2>
|
|
34
|
-
<DBButton width="full">Full width</DBButton>
|
|
35
|
-
<DBButton width="auto">Auto width</DBButton>
|
|
36
|
-
<h2>10. Icon Visibility</h2>
|
|
37
|
-
<DBButton icon="check" :showIcon="false"> Icon Hidden </DBButton>
|
|
38
|
-
<h2>11. Custom Class</h2>
|
|
39
|
-
<DBButton>Custom Class</DBButton>
|
|
40
|
-
<h2>12. Click Event</h2>
|
|
41
|
-
<DBButton :onClick="(event) => alert('Button clicked!')"> Click Me </DBButton>
|
|
42
|
-
</template>
|
|
43
|
-
|
|
44
|
-
<script setup lang="ts">
|
|
45
|
-
import { DBButton } from "@db-ux/v-v-core-components";
|
|
46
|
-
</script>
|
|
47
|
-
```
|
package/agent/Card.md
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# Card Examples (vue)
|
|
4
|
-
|
|
5
|
-
```vue
|
|
6
|
-
<template>
|
|
7
|
-
<h1>DBCard Documentation Examples</h1>
|
|
8
|
-
<h2>1. Default Card</h2>
|
|
9
|
-
<DBCard>Default Card</DBCard>
|
|
10
|
-
<h2>2. Behaviors</h2>
|
|
11
|
-
<DBCard behavior="static">Static</DBCard>
|
|
12
|
-
<DBCard behavior="interactive">Interactive</DBCard>
|
|
13
|
-
<h2>3. Elevation Levels</h2>
|
|
14
|
-
<DBCard elevationLevel="1">Elevation Level 1</DBCard>
|
|
15
|
-
<DBCard elevationLevel="2">Elevation Level 2</DBCard>
|
|
16
|
-
<DBCard elevationLevel="3">Elevation Level 3</DBCard>
|
|
17
|
-
<h2>4. Custom Class</h2>
|
|
18
|
-
<DBCard>Custom Class</DBCard>
|
|
19
|
-
<h2>5. Spacing</h2>
|
|
20
|
-
<DBCard spacing="medium">Medium Spacing</DBCard>
|
|
21
|
-
<DBCard spacing="small">Small Spacing</DBCard>
|
|
22
|
-
<DBCard spacing="large">Large Spacing</DBCard>
|
|
23
|
-
<DBCard spacing="none">No Spacing</DBCard>
|
|
24
|
-
</template>
|
|
25
|
-
|
|
26
|
-
<script setup lang="ts">
|
|
27
|
-
import { DBCard } from "@db-ux/v-v-core-components";
|
|
28
|
-
</script>
|
|
29
|
-
```
|
package/agent/Checkbox.md
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# Checkbox Examples (vue)
|
|
4
|
-
|
|
5
|
-
```vue
|
|
6
|
-
<template>
|
|
7
|
-
<h1>DBCheckbox Documentation Examples</h1>
|
|
8
|
-
<h2>1. Default Checkbox</h2>
|
|
9
|
-
<DBCheckbox label="Default Checkbox"></DBCheckbox>
|
|
10
|
-
<h2>2. Indeterminate State</h2>
|
|
11
|
-
<DBCheckbox label="Indeterminate Checkbox" :indeterminate="true"></DBCheckbox>
|
|
12
|
-
<h2>3. Sizes</h2>
|
|
13
|
-
<DBCheckbox size="small" label="Small Checkbox"></DBCheckbox>
|
|
14
|
-
<DBCheckbox size="medium" label="Medium Checkbox"></DBCheckbox>
|
|
15
|
-
<h2>4. Validation States</h2>
|
|
16
|
-
<DBCheckbox validation="valid" label="Valid Checkbox"></DBCheckbox>
|
|
17
|
-
<DBCheckbox validation="invalid" label="Invalid Checkbox"></DBCheckbox>
|
|
18
|
-
<DBCheckbox
|
|
19
|
-
validation="no-validation"
|
|
20
|
-
label="No Validation Checkbox"
|
|
21
|
-
></DBCheckbox>
|
|
22
|
-
<h2>5. Disabled State</h2>
|
|
23
|
-
<DBCheckbox label="Disabled Checkbox" :disabled="true"></DBCheckbox>
|
|
24
|
-
<h2>6. Message Property Example</h2>
|
|
25
|
-
<DBCheckbox
|
|
26
|
-
label="Checkbox with Message"
|
|
27
|
-
message="This is a helper message."
|
|
28
|
-
></DBCheckbox>
|
|
29
|
-
<h2>7. Change Event Example</h2>
|
|
30
|
-
<DBCheckbox
|
|
31
|
-
label="Change Event"
|
|
32
|
-
:onChange="(event) => console.log('Change event:', event.target.checked)"
|
|
33
|
-
></DBCheckbox>
|
|
34
|
-
</template>
|
|
35
|
-
|
|
36
|
-
<script setup lang="ts">
|
|
37
|
-
import { DBCheckbox } from "@db-ux/v-v-core-components";
|
|
38
|
-
</script>
|
|
39
|
-
```
|
package/agent/CustomSelect.md
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# CustomSelect Examples (vue)
|
|
4
|
-
|
|
5
|
-
```vue
|
|
6
|
-
<template>
|
|
7
|
-
<h1>DBCustomSelect Documentation Examples</h1>
|
|
8
|
-
<h2>1. Default Custom Select</h2>
|
|
9
|
-
<DBCustomSelect
|
|
10
|
-
label="Default Custom Select"
|
|
11
|
-
:options="getOptions()"
|
|
12
|
-
></DBCustomSelect>
|
|
13
|
-
<h2>3. Multiple Select</h2>
|
|
14
|
-
<DBCustomSelect
|
|
15
|
-
label="Multiple Custom Select"
|
|
16
|
-
:multiple="true"
|
|
17
|
-
:options="getOptions()"
|
|
18
|
-
></DBCustomSelect>
|
|
19
|
-
<h2>4. Disabled State</h2>
|
|
20
|
-
<DBCustomSelect
|
|
21
|
-
label="Disabled Custom Select"
|
|
22
|
-
:disabled="true"
|
|
23
|
-
:options="getOptions()"
|
|
24
|
-
></DBCustomSelect>
|
|
25
|
-
<h2>5. Validation States</h2>
|
|
26
|
-
<DBCustomSelect
|
|
27
|
-
validMessage="This is a valid selection"
|
|
28
|
-
validation="valid"
|
|
29
|
-
label="Valid Custom Select"
|
|
30
|
-
:options="getOptions()"
|
|
31
|
-
></DBCustomSelect>
|
|
32
|
-
<DBCustomSelect
|
|
33
|
-
invalidMessage="This is an invalid selection"
|
|
34
|
-
validation="invalid"
|
|
35
|
-
label="Invalid Custom Select"
|
|
36
|
-
:options="getOptions()"
|
|
37
|
-
></DBCustomSelect>
|
|
38
|
-
<DBCustomSelect
|
|
39
|
-
validation="no-validation"
|
|
40
|
-
label="No Validation Custom Select"
|
|
41
|
-
:options="getOptions()"
|
|
42
|
-
></DBCustomSelect>
|
|
43
|
-
<h2>6. Change Event Example</h2>
|
|
44
|
-
<DBCustomSelect
|
|
45
|
-
label="Change Event"
|
|
46
|
-
:onChange="(event) => console.log('Change event:', event.target.value)"
|
|
47
|
-
:options="getOptions()"
|
|
48
|
-
></DBCustomSelect>
|
|
49
|
-
<h2>7. Placeholder Example</h2>
|
|
50
|
-
<DBCustomSelect
|
|
51
|
-
label="Custom Select with Placeholder"
|
|
52
|
-
placeholder="Select an option"
|
|
53
|
-
:options="getOptions()"
|
|
54
|
-
></DBCustomSelect>
|
|
55
|
-
</template>
|
|
56
|
-
|
|
57
|
-
<script setup lang="ts">
|
|
58
|
-
import { DBCustomSelect } from "@db-ux/v-v-core-components";
|
|
59
|
-
|
|
60
|
-
function getOptions() {
|
|
61
|
-
return [
|
|
62
|
-
{
|
|
63
|
-
value: "1",
|
|
64
|
-
label: "Option 1",
|
|
65
|
-
selected: false,
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
value: "2",
|
|
69
|
-
label: "Option 2",
|
|
70
|
-
disabled: true,
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
value: "3",
|
|
74
|
-
label: "Option 3",
|
|
75
|
-
},
|
|
76
|
-
];
|
|
77
|
-
}
|
|
78
|
-
</script>
|
|
79
|
-
```
|
package/agent/Divider.md
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# Divider Examples (vue)
|
|
4
|
-
|
|
5
|
-
```vue
|
|
6
|
-
<template>
|
|
7
|
-
<h1>DBDivider Documentation Examples</h1>
|
|
8
|
-
<h2>1. Default Divider</h2>
|
|
9
|
-
<DBDivider></DBDivider>
|
|
10
|
-
<h2>2. Margin Variants</h2>
|
|
11
|
-
<DBDivider margin="none"></DBDivider>
|
|
12
|
-
<DBDivider margin="_"></DBDivider>
|
|
13
|
-
<h2>3. Orientation Variants</h2>
|
|
14
|
-
<DBDivider variant="horizontal"></DBDivider>
|
|
15
|
-
<DBDivider variant="vertical"></DBDivider>
|
|
16
|
-
<h2>4. Emphasis Variants</h2>
|
|
17
|
-
<DBDivider emphasis="weak"></DBDivider>
|
|
18
|
-
<DBDivider emphasis="strong"></DBDivider>
|
|
19
|
-
<h2>5. Width Variants</h2>
|
|
20
|
-
<DBDivider width="full"></DBDivider>
|
|
21
|
-
<DBDivider width="auto"></DBDivider>
|
|
22
|
-
</template>
|
|
23
|
-
|
|
24
|
-
<script setup lang="ts">
|
|
25
|
-
import { DBDivider } from "@db-ux/v-v-core-components";
|
|
26
|
-
</script>
|
|
27
|
-
```
|