@voicenter-team/voicenter-ui-plus 4.3.0 → 4.3.2

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.
Files changed (92) hide show
  1. package/MIGRATION_v3.md +196 -196
  2. package/README.md +1058 -1057
  3. package/library/assets/assets/sass/main.css +1 -1
  4. package/library/assets/components/VcCodeBlock/VcCodeBlock.css +1 -1
  5. package/library/assets/components/VcFileUploader/VcFileUploaderSimple.css +1 -1
  6. package/library/assets/components/VcJsonSchema/Components/JsonSchemaEditor.css +1 -1
  7. package/library/assets/components/VcLoading/Loaders/Circles.css +1 -1
  8. package/library/assets/components/VcLoading/Loaders/DotSpinner.css +1 -1
  9. package/library/assets/components/VcLoading/Loaders/LdsSpinner.css +1 -1
  10. package/library/assets/components/VcLoading/Loaders/LoadIcon.css +1 -1
  11. package/library/assets/components/VcLoading/Loaders/Stretch.css +1 -1
  12. package/library/assets/components/VcLoading/VcLoading.css +1 -1
  13. package/library/assets/components/VcMdEditor/ParameterNode.css +1 -1
  14. package/library/assets/components/VcNavigationSidebar/VcNavigationSidebar.css +1 -0
  15. package/library/assets/components/VcSegmented/VcSegmented.css +1 -1
  16. package/library/assets/components/VcSkeletonLoader/Loaders/Card.css +1 -1
  17. package/library/assets/components/VcSkeletonLoader/Loaders/Circle.css +1 -1
  18. package/library/assets/components/VcSkeletonLoader/Loaders/Row.css +1 -1
  19. package/library/assets/components/VcSkeletonLoader/Loaders/Square.css +1 -1
  20. package/library/assets/components/VcSkeletonLoader/Loaders/Text.css +1 -1
  21. package/library/assets/components/VcSkeletonLoader/VcSkeletonItem.css +1 -0
  22. package/library/assets/components/VcTag/VcTag.css +1 -1
  23. package/library/components/VcFileUploader/VcFileUploaderSimple.vue.mjs +1 -1
  24. package/library/components/VcJsonSchema/Components/JsonSchemaEditor.vue.mjs +1 -1
  25. package/library/components/VcLoading/Loaders/Circles.vue.mjs +1 -1
  26. package/library/components/VcLoading/Loaders/DotSpinner.vue.mjs +1 -1
  27. package/library/components/VcLoading/Loaders/DotSpinner.vue2.mjs +2 -2
  28. package/library/components/VcLoading/Loaders/LdsSpinner.vue.mjs +1 -1
  29. package/library/components/VcLoading/Loaders/LoadIcon.vue.mjs +1 -1
  30. package/library/components/VcLoading/Loaders/Stretch.vue.mjs +1 -1
  31. package/library/components/VcLoading/Loaders/Stretch.vue2.mjs +1 -1
  32. package/library/components/VcLoading/VcLoading.vue.mjs +1 -1
  33. package/library/components/VcMdEditor/ParameterNode.vue.mjs +1 -1
  34. package/library/components/VcNavigationSidebar/NavigationSidebarLink.vue.mjs +154 -0
  35. package/library/components/VcNavigationSidebar/NavigationSidebarLink.vue2.mjs +4 -0
  36. package/library/components/VcNavigationSidebar/NavigationSidebarMobileList.vue.mjs +128 -0
  37. package/library/components/VcNavigationSidebar/NavigationSidebarMobileList.vue2.mjs +4 -0
  38. package/library/components/VcNavigationSidebar/NavigationSidebarMore.vue.mjs +94 -0
  39. package/library/components/VcNavigationSidebar/NavigationSidebarMore.vue2.mjs +4 -0
  40. package/library/components/VcNavigationSidebar/NavigationSidebarPanel.vue.mjs +179 -0
  41. package/library/components/VcNavigationSidebar/NavigationSidebarPanel.vue2.mjs +4 -0
  42. package/library/components/VcNavigationSidebar/VcNavigationSidebar.vue.mjs +737 -0
  43. package/library/components/VcNavigationSidebar/VcNavigationSidebar.vue3.mjs +5 -0
  44. package/library/components/VcNavigationSidebar/navigationSidebarModel.mjs +51 -0
  45. package/library/components/VcSegmented/VcSegmented.vue.mjs +1 -1
  46. package/library/components/VcSkeletonLoader/Loaders/Card.vue.mjs +1 -1
  47. package/library/components/VcSkeletonLoader/Loaders/Circle.vue.mjs +1 -1
  48. package/library/components/VcSkeletonLoader/Loaders/Row.vue.mjs +1 -1
  49. package/library/components/VcSkeletonLoader/Loaders/Square.vue.mjs +1 -1
  50. package/library/components/VcSkeletonLoader/Loaders/Text.vue.mjs +1 -1
  51. package/library/components/VcSkeletonLoader/VcSkeletonItem.vue.mjs +7 -0
  52. package/library/components/VcSkeletonLoader/VcSkeletonItem.vue2.mjs +39 -0
  53. package/library/components/VcSkeletonLoader/VcSkeletonLoader.vue.mjs +19 -6
  54. package/library/docs/guides/migration/migrating-from-4.0.md +88 -87
  55. package/library/index.mjs +121 -116
  56. package/library/index.mjs.br +0 -0
  57. package/library/index.mjs.gz +0 -0
  58. package/library/localization/index.mjs.gz +0 -0
  59. package/library/localization/locales/en.json.mjs +9 -1
  60. package/library/plugin-components.gen.mjs +165 -160
  61. package/library/plugin.mjs +119 -114
  62. package/library/plugin.mjs.br +0 -0
  63. package/library/plugin.mjs.gz +0 -0
  64. package/library/style.css +22 -18
  65. package/library/style.css.br +0 -0
  66. package/library/style.css.gz +0 -0
  67. package/library/theme/index.mjs.gz +0 -0
  68. package/library/types/components/VcFilterBar/VcFilterBar.vue.d.ts +1 -1
  69. package/library/types/components/VcNavigationSidebar/NavigationSidebarLink.vue.d.ts +17 -0
  70. package/library/types/components/VcNavigationSidebar/NavigationSidebarMobileList.vue.d.ts +15 -0
  71. package/library/types/components/VcNavigationSidebar/NavigationSidebarMore.vue.d.ts +15 -0
  72. package/library/types/components/VcNavigationSidebar/NavigationSidebarPanel.vue.d.ts +33 -0
  73. package/library/types/components/VcNavigationSidebar/VcNavigationSidebar.vue.d.ts +121 -0
  74. package/library/types/components/VcNavigationSidebar/navigationSidebarModel.d.ts +42 -0
  75. package/library/types/components/VcSkeletonLoader/VcSkeletonItem.vue.d.ts +16 -0
  76. package/library/types/components/VcSkeletonLoader/VcSkeletonLoader.vue.d.ts +19 -1
  77. package/library/types/components/exports.d.ts +5 -1
  78. package/library/types/components.gen.d.ts +2 -0
  79. package/library/types/localization/locales/en.json.d.ts +9 -1
  80. package/library/types/theme/themes.json.d.ts +72 -72
  81. package/library/types/types/VcNavigationSidebar.types.d.ts +66 -0
  82. package/library/types/types/VcSkeletonLoader.types.d.ts +1 -0
  83. package/library/types/types/index.d.ts +1 -0
  84. package/library/utils/jsonSchema/index.mjs.gz +0 -0
  85. package/package.json +310 -310
  86. package/src/theme/index.ts +101 -101
  87. package/src/theme/tailwindScheme.js +78 -78
  88. package/src/theme/theme.types.ts +31 -31
  89. package/src/theme/themeMerge.ts +63 -63
  90. package/src/theme/themes.json +72 -72
  91. package/tailwind.config.d.ts +5 -5
  92. package/tailwind.config.js +178 -178
Binary file
Binary file
Binary file
@@ -72,11 +72,11 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {},
72
72
  }>, {
73
73
  search: false | VcFilterSearchConfig;
74
74
  modelValue: VcFilterModel;
75
+ collapsible: boolean;
75
76
  optionsCaption: string;
76
77
  dateRange: false | VcFilterDateRangeConfig;
77
78
  excludeKey: string;
78
79
  optionsStore: VcFilterOptionsStore;
79
- collapsible: boolean;
80
80
  errors: VcFilterErrors;
81
81
  refusedValues: VcFilterRefusedValues;
82
82
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -0,0 +1,17 @@
1
+ import { NavigationSidebarLink } from '../../types';
2
+ interface IProps {
3
+ link: NavigationSidebarLink;
4
+ active?: boolean;
5
+ /** rail: icon over the name; row: icon before the name; menu: a row with no tooltip and no indicator */
6
+ layout?: 'rail' | 'row' | 'menu';
7
+ }
8
+ declare const __VLS_export: import('vue').DefineComponent<IProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
9
+ navigate: (link: NavigationSidebarLink) => any;
10
+ }, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{
11
+ onNavigate?: ((link: NavigationSidebarLink) => any) | undefined;
12
+ }>, {
13
+ active: boolean;
14
+ layout: "menu" | "row" | "rail";
15
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: typeof __VLS_export;
17
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import { NavigationSidebarActive, NavigationSidebarItem, NavigationSidebarLink as NavigationSidebarLinkType } from '../../types';
2
+ interface IProps {
3
+ id: string;
4
+ items: NavigationSidebarItem[];
5
+ active?: NavigationSidebarActive;
6
+ }
7
+ declare const __VLS_export: import('vue').DefineComponent<IProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
8
+ navigate: (link: NavigationSidebarLinkType) => any;
9
+ }, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{
10
+ onNavigate?: ((link: NavigationSidebarLinkType) => any) | undefined;
11
+ }>, {
12
+ active: string | string[] | null;
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import { NavigationSidebarActive, NavigationSidebarItem, NavigationSidebarLink as NavigationSidebarLinkType } from '../../types';
2
+ interface IProps {
3
+ /** The items that did not fit in the rail */
4
+ items: NavigationSidebarItem[];
5
+ active?: NavigationSidebarActive;
6
+ }
7
+ declare const __VLS_export: import('vue').DefineComponent<IProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
8
+ navigate: (link: NavigationSidebarLinkType) => any;
9
+ }, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{
10
+ onNavigate?: ((link: NavigationSidebarLinkType) => any) | undefined;
11
+ }>, {
12
+ active: string | string[] | null;
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
@@ -0,0 +1,33 @@
1
+ import { NavigationSidebarActive, NavigationSidebarGroup, NavigationSidebarLink as NavigationSidebarLinkType } from '../../types';
2
+ interface IProps {
3
+ id: string;
4
+ group: NavigationSidebarGroup;
5
+ active?: NavigationSidebarActive;
6
+ layout?: 'row' | 'menu';
7
+ }
8
+ declare const __VLS_template: () => {
9
+ __VLS_Slots: {
10
+ 'header-action'?: (props: {}) => any;
11
+ } & {
12
+ footer?: (props: {}) => any;
13
+ };
14
+ };
15
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
16
+ declare const __VLS_base: import('vue').DefineComponent<IProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
17
+ navigate: (link: NavigationSidebarLinkType) => any;
18
+ "info-action": (group: NavigationSidebarGroup) => any;
19
+ }, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{
20
+ onNavigate?: ((link: NavigationSidebarLinkType) => any) | undefined;
21
+ "onInfo-action"?: ((group: NavigationSidebarGroup) => any) | undefined;
22
+ }>, {
23
+ active: string | string[] | null;
24
+ layout: "menu" | "row";
25
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
26
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
27
+ declare const _default: typeof __VLS_export;
28
+ export default _default;
29
+ type __VLS_WithSlots<T, S> = T & {
30
+ new (): {
31
+ $slots: S;
32
+ };
33
+ };
@@ -0,0 +1,121 @@
1
+ import { VNode } from 'vue';
2
+ import { NavigationSidebarActive, NavigationSidebarGroup, NavigationSidebarItem, NavigationSidebarLink as NavigationSidebarLinkType, NavigationSidebarSection } from '../../types';
3
+ interface IProps {
4
+ /** @description Rail items. An item with `children` is a group whose pages open in a panel beside the rail; an item without is a link */
5
+ items?: NavigationSidebarItem[];
6
+ /** @description Key of the active page, or every active key (the names of the matched routes, for example). A group is active when one of its links is. v-model:active */
7
+ active?: NavigationSidebarActive;
8
+ /** @description Expanded: a rail of links gets wider and shows names beside the icons; a rail of groups docks the panel of the active group beside it. v-model:expanded */
9
+ expanded?: boolean;
10
+ /** @description Shows the button that expands and collapses the sidebar */
11
+ collapsible?: boolean;
12
+ /** @description Shows the tooltip of a link that has a description or a documentation link */
13
+ tooltips?: boolean;
14
+ /** @description Width of the rail, in px */
15
+ railWidth?: number;
16
+ /** @description Width of a group's panel, in px */
17
+ panelWidth?: number;
18
+ /** @description Width of an expanded rail of links, in px */
19
+ expandedWidth?: number;
20
+ /** @description Below this viewport width, in px, the sidebar is a drawer over the page with every area and page in one list (the phone layout); 0 turns it off */
21
+ mobileBreakpoint?: number;
22
+ /** @description Forces the phone layout on (true) or off (false); by default it follows mobileBreakpoint */
23
+ mobile?: boolean;
24
+ /** @description Phone layout: whether the drawer is open. The page's menu button opens it; the close button, Escape and a click on a link close it. v-model:mobileOpen */
25
+ mobileOpen?: boolean;
26
+ /** @description Accessible name of the sidebar */
27
+ ariaLabel?: string;
28
+ /** @description Class of the panel of a group, docked or flying out */
29
+ panelClass?: string;
30
+ /** @description Class of the More popover and of the tooltip, which render outside the sidebar: the place to override their variables */
31
+ popoverClass?: string;
32
+ /** @description data-test attribute of the sidebar */
33
+ dataTestName?: string;
34
+ }
35
+ type __VLS_Slots = {
36
+ /** Top of the sidebar: the logo. It spans the rail and a docked panel */
37
+ header?: (props: {
38
+ expanded: boolean;
39
+ toggle: () => void;
40
+ }) => VNode[];
41
+ /** Bottom of the rail: help, the version, the user menu */
42
+ footer?: (props: {
43
+ expanded: boolean;
44
+ }) => VNode[];
45
+ /** Bottom of a group's panel, in place of the group's `info` block */
46
+ 'panel-footer'?: (props: {
47
+ group: NavigationSidebarGroup;
48
+ }) => VNode[];
49
+ /** Content of a link's tooltip */
50
+ tooltip?: (props: {
51
+ link: NavigationSidebarLinkType;
52
+ }) => VNode[];
53
+ /** Content of a rail item that is a group (icon and name); the active bar stays */
54
+ item?: (props: {
55
+ item: NavigationSidebarGroup;
56
+ active: boolean;
57
+ open: boolean;
58
+ expanded: boolean;
59
+ }) => VNode[];
60
+ /** Content of a link, in the rail, a panel or More (icon, name, badge); layout says which */
61
+ link?: (props: {
62
+ link: NavigationSidebarLinkType;
63
+ active: boolean;
64
+ layout: 'rail' | 'row' | 'menu';
65
+ }) => VNode[];
66
+ /** Title of a section in a panel and in More */
67
+ 'section-title'?: (props: {
68
+ section: NavigationSidebarSection;
69
+ }) => VNode[];
70
+ /** Title row of a group's panel, in place of the group's name */
71
+ 'panel-header'?: (props: {
72
+ group: NavigationSidebarGroup;
73
+ }) => VNode[];
74
+ };
75
+ declare function toggleExpanded(): void;
76
+ declare const __VLS_base: import('vue').DefineComponent<IProps, {
77
+ /** Closes the flyout panel, More and the tooltip */
78
+ close(): void;
79
+ /** Expands or collapses the sidebar */
80
+ toggle: typeof toggleExpanded;
81
+ /** Shows the pages of a group: in the docked panel when expanded, else in the flyout panel */
82
+ openGroup(key: string): void;
83
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
84
+ select: (link: NavigationSidebarLinkType, event: MouseEvent) => any;
85
+ "info-action": (group: NavigationSidebarGroup) => any;
86
+ "update:active": (key: string) => any;
87
+ "update:expanded": (value: boolean) => any;
88
+ "update:mobileOpen": (value: boolean) => any;
89
+ docs: (link: NavigationSidebarLinkType) => any;
90
+ }, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{
91
+ onSelect?: ((link: NavigationSidebarLinkType, event: MouseEvent) => any) | undefined;
92
+ "onInfo-action"?: ((group: NavigationSidebarGroup) => any) | undefined;
93
+ "onUpdate:active"?: ((key: string) => any) | undefined;
94
+ "onUpdate:expanded"?: ((value: boolean) => any) | undefined;
95
+ "onUpdate:mobileOpen"?: ((value: boolean) => any) | undefined;
96
+ onDocs?: ((link: NavigationSidebarLinkType) => any) | undefined;
97
+ }>, {
98
+ ariaLabel: string;
99
+ dataTestName: string;
100
+ popoverClass: string;
101
+ active: string | string[] | null;
102
+ expanded: boolean;
103
+ mobile: boolean;
104
+ items: NavigationSidebarItem[];
105
+ collapsible: boolean;
106
+ tooltips: boolean;
107
+ railWidth: number;
108
+ panelWidth: number;
109
+ expandedWidth: number;
110
+ mobileBreakpoint: number;
111
+ mobileOpen: boolean;
112
+ panelClass: string;
113
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
114
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
115
+ declare const _default: typeof __VLS_export;
116
+ export default _default;
117
+ type __VLS_WithSlots<T, S> = T & {
118
+ new (): {
119
+ $slots: S;
120
+ };
121
+ };
@@ -0,0 +1,42 @@
1
+ import { FunctionalComponent, InjectionKey, VNode } from 'vue';
2
+ import { NavigationSidebarActive, NavigationSidebarGroup, NavigationSidebarItem, NavigationSidebarLink, NavigationSidebarSection } from '../../types';
3
+ export declare function isNavigationGroup(item: NavigationSidebarItem): item is NavigationSidebarGroup;
4
+ export declare function isNavigationSection(item: NavigationSidebarLink | NavigationSidebarSection): item is NavigationSidebarSection;
5
+ export declare function toActiveKeys(active: NavigationSidebarActive): Set<string>;
6
+ /** The links of a group, sections flattened, in order. */
7
+ export declare function groupLinks(group: NavigationSidebarGroup): NavigationSidebarLink[];
8
+ /** A rail item is active when its key is active, or the key of one of its links. */
9
+ export declare function isItemActive(item: NavigationSidebarItem, activeKeys: Set<string>): boolean;
10
+ /**
11
+ * The link the sidebar highlights in a list: the active key that is a link of
12
+ * the list. With matched route names several keys are active, and the deepest
13
+ * (last) one that is a link wins.
14
+ */
15
+ export declare function activeLinkKey(links: NavigationSidebarLink[], active: NavigationSidebarActive): string | undefined;
16
+ export declare function hasLinkTooltip(link: NavigationSidebarLink): boolean;
17
+ /** What the sidebar shares with its links: the one tooltip, and the click of a link. */
18
+ export interface NavigationSidebarContext {
19
+ /** The sidebar's slots, which its links and panels render */
20
+ slots: {
21
+ link?: (props: {
22
+ link: NavigationSidebarLink;
23
+ active: boolean;
24
+ layout: 'rail' | 'row' | 'menu';
25
+ }) => VNode[];
26
+ 'section-title'?: (props: {
27
+ section: NavigationSidebarSection;
28
+ }) => VNode[];
29
+ 'panel-header'?: (props: {
30
+ group: NavigationSidebarGroup;
31
+ }) => VNode[];
32
+ };
33
+ tooltips: () => boolean;
34
+ openTooltip: (target: HTMLElement, link: NavigationSidebarLink) => void;
35
+ closeTooltip: (immediately?: boolean) => void;
36
+ select: (link: NavigationSidebarLink, event: MouseEvent) => void;
37
+ }
38
+ export declare const NAVIGATION_SIDEBAR_KEY: InjectionKey<NavigationSidebarContext>;
39
+ /** Renders a function's VNodes in a template: a slot of the sidebar, inside one of its parts. */
40
+ export declare const NavigationSidebarRender: FunctionalComponent<{
41
+ render: () => VNode[];
42
+ }>;
@@ -0,0 +1,16 @@
1
+ import { SkeletonItemVariant } from '../../types';
2
+ type NumberOrNumberString = string | number;
3
+ type __VLS_Props = {
4
+ variant?: SkeletonItemVariant;
5
+ width?: NumberOrNumberString;
6
+ height?: NumberOrNumberString;
7
+ size?: NumberOrNumberString;
8
+ };
9
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
10
+ size: NumberOrNumberString;
11
+ height: NumberOrNumberString;
12
+ width: NumberOrNumberString;
13
+ variant: SkeletonItemVariant;
14
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
@@ -10,15 +10,33 @@ interface ISLoaderProps {
10
10
  maxHeight?: NumberOrNumberString;
11
11
  textLoading?: NumberOrNumberString;
12
12
  type?: LoaderType | LoaderWithNumberType;
13
+ loading?: boolean;
14
+ count?: number;
13
15
  }
14
- declare const __VLS_export: import('vue').DefineComponent<ISLoaderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ISLoaderProps> & Readonly<{}>, {
16
+ type __VLS_Slots = {
17
+ /** The real content, shown when `loading` is false. */
18
+ default?: () => unknown;
19
+ /** A custom skeleton structure; replaces `type`. Rendered `count` times. */
20
+ template?: (props: {
21
+ index: number;
22
+ }) => unknown;
23
+ };
24
+ declare const __VLS_base: import('vue').DefineComponent<ISLoaderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ISLoaderProps> & Readonly<{}>, {
15
25
  height: NumberOrNumberString;
16
26
  type: LoaderType | `circle@${number}` | `row@${number}` | `square@${number}`;
17
27
  width: NumberOrNumberString;
28
+ loading: boolean;
18
29
  maxWidth: NumberOrNumberString;
19
30
  rowHeight: NumberOrNumberString;
20
31
  maxHeight: NumberOrNumberString;
21
32
  textLoading: NumberOrNumberString;
33
+ count: number;
22
34
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
35
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
23
36
  declare const _default: typeof __VLS_export;
24
37
  export default _default;
38
+ type __VLS_WithSlots<T, S> = T & {
39
+ new (): {
40
+ $slots: S;
41
+ };
42
+ };
@@ -44,6 +44,7 @@ import { default as VcTabs } from './VcTabs/VcTabs.vue';
44
44
  import { default as VcTabNav } from './VcTabs/VcTabNav.vue';
45
45
  import { default as VcTabPane } from './VcTabs/VcTabPane.vue';
46
46
  import { default as VcVerticalTabs } from './VcVerticalTabs/VcVerticalTabs.vue';
47
+ import { default as VcNavigationSidebar } from './VcNavigationSidebar/VcNavigationSidebar.vue';
47
48
  import { default as VcRadioTabs } from './VcRadioTabs/VcRadioTabs.vue';
48
49
  import { default as VcRadioTabsNav } from './VcRadioTabs/UiComponents/VcRadioTabsNav.vue';
49
50
  import { default as VcCollapse } from './VcCollapse/VcCollapse.vue';
@@ -67,6 +68,7 @@ import { default as VcLoading } from './VcLoading/VcLoading.vue';
67
68
  import { default as VcProgress } from './VcProgress/VcProgress.vue';
68
69
  import { default as VcProgressCircular } from './VcProgress/VcProgressCircular.vue';
69
70
  import { default as VcSkeletonLoader } from './VcSkeletonLoader/VcSkeletonLoader.vue';
71
+ import { default as VcSkeletonItem } from './VcSkeletonLoader/VcSkeletonItem.vue';
70
72
  import { default as VcNotification } from './VcNotification/VcNotification.vue';
71
73
  import { default as VcPluginOverlays } from './VcPluginOverlays/VcPluginOverlays.vue';
72
74
  import { default as VcForm } from './VcForm/VcForm.vue';
@@ -125,7 +127,7 @@ import { default as VcBaseVerticalForm } from '../entity/components/Form/VcBaseV
125
127
  import { default as VcEntityVerticalCreateForm } from '../entity/components/Form/VcEntityVerticalCreateForm.vue';
126
128
  import { default as VcEntityVerticalEditForm } from '../entity/components/Form/VcEntityVerticalEditForm.vue';
127
129
  import { default as VcEntityEditPageForm } from '../entity/components/Form/VcEntityEditPageForm.vue';
128
- export { VcButton, VcButtonIcon, VcToggleButton, VcInteractive, VcInput, VcInputNumber, VcInputError, VcInputLabel, VcSelect, VcSelectGrouped, VcSelectOption, VcInfiniteScrollSelect, VcAutocomplete, VcCheckbox, VcCheckboxButton, VcCheckboxButtonGroup, VcCheckboxGroup, VcRadio, VcRadioGroup, VcRadioButtonsGroup, VcSwitch, VcSlider, VcColorPicker, VcDatePicker, VcDatePickerPanel, VcExtendedDatetimeRangePicker, VcTimeInput, VcPhoneInput, VcFlagLabel, VcTagInput, VcOtpInput, VcFileUploader, VcFileUploaderSimple, VcFileUploaderArea, VcFileItem, VcCard, VcCodeBlock, VcModal, VcConfirmModal, VcPopover, VcConfirmPopover, VcSelectPopover, VcTabs, VcTabNav, VcTabPane, VcVerticalTabs, VcRadioTabs, VcRadioTabsNav, VcCollapse, VcCollapseItem, VcWizard, VcDropdown, VcDropdownItem, VcTable, VcPagination, VcTree, VcTreeSelect, VcTransfer, VcTag, VcAvatar, VcBadgeTag, VcDelimitedList, VcSparkline, VcSegmented, VcFilterBar, VcLoading, VcProgress, VcProgressCircular, VcSkeletonLoader, VcNotification, VcPluginOverlays, VcForm, VcFormItem, VcSplitButton, VcHyperLink, VcIcon, VcIconPicker, VcMeterGroup, VcMeterGroupLabel, VcMdEditor, VcSystemUserPrompt, VcSoundPlayer, VcSoundPlayerCompact, VcJsonSchema, VcJsonViewer, VcMessage, VcMessagesWrapper, VcLightbox, VcToolCall, VcApprovalCard, VcAskUserCard, VcPlayerPlaybackRate, VcPlayerPlaybackRatePopup, VcPlayerPlayStopButton, VcPlayerSkipButtons, VcSoundCurrentTime, VcSoundDuration, VcSoundPlayerError, VcSoundPlayerMarker, VcSoundPlayerMarkers, VcSoundPlayerProgress, VcSoundPlayerWrapper, VcSoundVolume, VcHtmlEditor, VcPdfDocument, VcExcelFileUploader, VcImageUploader, VcTour, VcSipFlow, VcEmojiPicker, VcChatComposer, VcAiReasoning, VcAgentRunCard, VcAgentRunGroup, VcPdfViewer, VcEntityAddButton, VcEntityCancelButton, VcEntityDeleteIconButton, VcEntityEditIconButton, VcEntityRestoreButton, VcEntityStatusButton, VcEntityEditableTabs, VcEntityListTable, VcBaseVerticalForm, VcEntityVerticalCreateForm, VcEntityVerticalEditForm, VcEntityEditPageForm, };
130
+ export { VcButton, VcButtonIcon, VcToggleButton, VcInteractive, VcInput, VcInputNumber, VcInputError, VcInputLabel, VcSelect, VcSelectGrouped, VcSelectOption, VcInfiniteScrollSelect, VcAutocomplete, VcCheckbox, VcCheckboxButton, VcCheckboxButtonGroup, VcCheckboxGroup, VcRadio, VcRadioGroup, VcRadioButtonsGroup, VcSwitch, VcSlider, VcColorPicker, VcDatePicker, VcDatePickerPanel, VcExtendedDatetimeRangePicker, VcTimeInput, VcPhoneInput, VcFlagLabel, VcTagInput, VcOtpInput, VcFileUploader, VcFileUploaderSimple, VcFileUploaderArea, VcFileItem, VcCard, VcCodeBlock, VcModal, VcConfirmModal, VcPopover, VcConfirmPopover, VcSelectPopover, VcTabs, VcTabNav, VcTabPane, VcVerticalTabs, VcNavigationSidebar, VcRadioTabs, VcRadioTabsNav, VcCollapse, VcCollapseItem, VcWizard, VcDropdown, VcDropdownItem, VcTable, VcPagination, VcTree, VcTreeSelect, VcTransfer, VcTag, VcAvatar, VcBadgeTag, VcDelimitedList, VcSparkline, VcSegmented, VcFilterBar, VcLoading, VcProgress, VcProgressCircular, VcSkeletonLoader, VcSkeletonItem, VcNotification, VcPluginOverlays, VcForm, VcFormItem, VcSplitButton, VcHyperLink, VcIcon, VcIconPicker, VcMeterGroup, VcMeterGroupLabel, VcMdEditor, VcSystemUserPrompt, VcSoundPlayer, VcSoundPlayerCompact, VcJsonSchema, VcJsonViewer, VcMessage, VcMessagesWrapper, VcLightbox, VcToolCall, VcApprovalCard, VcAskUserCard, VcPlayerPlaybackRate, VcPlayerPlaybackRatePopup, VcPlayerPlayStopButton, VcPlayerSkipButtons, VcSoundCurrentTime, VcSoundDuration, VcSoundPlayerError, VcSoundPlayerMarker, VcSoundPlayerMarkers, VcSoundPlayerProgress, VcSoundPlayerWrapper, VcSoundVolume, VcHtmlEditor, VcPdfDocument, VcExcelFileUploader, VcImageUploader, VcTour, VcSipFlow, VcEmojiPicker, VcChatComposer, VcAiReasoning, VcAgentRunCard, VcAgentRunGroup, VcPdfViewer, VcEntityAddButton, VcEntityCancelButton, VcEntityDeleteIconButton, VcEntityEditIconButton, VcEntityRestoreButton, VcEntityStatusButton, VcEntityEditableTabs, VcEntityListTable, VcBaseVerticalForm, VcEntityVerticalCreateForm, VcEntityVerticalEditForm, VcEntityEditPageForm, };
129
131
  declare module '@vue/runtime-core' {
130
132
  interface GlobalComponents {
131
133
  VcButton: typeof VcButton;
@@ -174,6 +176,7 @@ declare module '@vue/runtime-core' {
174
176
  VcTabNav: typeof VcTabNav;
175
177
  VcTabPane: typeof VcTabPane;
176
178
  VcVerticalTabs: typeof VcVerticalTabs;
179
+ VcNavigationSidebar: typeof VcNavigationSidebar;
177
180
  VcRadioTabs: typeof VcRadioTabs;
178
181
  VcRadioTabsNav: typeof VcRadioTabsNav;
179
182
  VcCollapse: typeof VcCollapse;
@@ -197,6 +200,7 @@ declare module '@vue/runtime-core' {
197
200
  VcProgress: typeof VcProgress;
198
201
  VcProgressCircular: typeof VcProgressCircular;
199
202
  VcSkeletonLoader: typeof VcSkeletonLoader;
203
+ VcSkeletonItem: typeof VcSkeletonItem;
200
204
  VcNotification: typeof VcNotification;
201
205
  VcPluginOverlays: typeof VcPluginOverlays;
202
206
  VcForm: typeof VcForm;
@@ -44,6 +44,7 @@ export { default as VcTabs } from './components/VcTabs/VcTabs.vue';
44
44
  export { default as VcTabNav } from './components/VcTabs/VcTabNav.vue';
45
45
  export { default as VcTabPane } from './components/VcTabs/VcTabPane.vue';
46
46
  export { default as VcVerticalTabs } from './components/VcVerticalTabs/VcVerticalTabs.vue';
47
+ export { default as VcNavigationSidebar } from './components/VcNavigationSidebar/VcNavigationSidebar.vue';
47
48
  export { default as VcRadioTabs } from './components/VcRadioTabs/VcRadioTabs.vue';
48
49
  export { default as VcRadioTabsNav } from './components/VcRadioTabs/UiComponents/VcRadioTabsNav.vue';
49
50
  export { default as VcCollapse } from './components/VcCollapse/VcCollapse.vue';
@@ -67,6 +68,7 @@ export { default as VcLoading } from './components/VcLoading/VcLoading.vue';
67
68
  export { default as VcProgress } from './components/VcProgress/VcProgress.vue';
68
69
  export { default as VcProgressCircular } from './components/VcProgress/VcProgressCircular.vue';
69
70
  export { default as VcSkeletonLoader } from './components/VcSkeletonLoader/VcSkeletonLoader.vue';
71
+ export { default as VcSkeletonItem } from './components/VcSkeletonLoader/VcSkeletonItem.vue';
70
72
  export { default as VcNotification } from './components/VcNotification/VcNotification.vue';
71
73
  export { default as VcPluginOverlays } from './components/VcPluginOverlays/VcPluginOverlays.vue';
72
74
  export { default as VcForm } from './components/VcForm/VcForm.vue';
@@ -411,7 +411,15 @@ declare const _default: {
411
411
  "voicenterUi.filterBar.wrongLeftOut": "Values in red are not valid or already added, and are left out.",
412
412
  "voicenterUi.filterBar.notPermitted": "Not permitted",
413
413
  "voicenterUi.filterBar.notPermittedList": "Not permitted: {values}",
414
- "voicenterUi.filterBar.searchIn": "Search in"
414
+ "voicenterUi.filterBar.searchIn": "Search in",
415
+ "voicenterUi.navigationSidebar.label": "Main navigation",
416
+ "voicenterUi.navigationSidebar.more": "More",
417
+ "voicenterUi.navigationSidebar.expand": "Expand sidebar",
418
+ "voicenterUi.navigationSidebar.collapse": "Collapse sidebar",
419
+ "voicenterUi.navigationSidebar.openDocs": "Open documentation",
420
+ "voicenterUi.navigationSidebar.showMore": "Show more",
421
+ "voicenterUi.navigationSidebar.showLess": "Show less",
422
+ "voicenterUi.navigationSidebar.close": "Close navigation"
415
423
  }
416
424
  ;
417
425
 
@@ -1,75 +1,75 @@
1
- declare const _default: {
2
- "voicenter": {
3
- "vc-content-primary": "#161922",
4
- "vc-content-secondary": "#525D70",
5
- "vc-content-tertiary": "#567391",
6
- "vc-content-brand": "#C20027",
7
- "vc-content-disabled": "#A6B0C0",
8
- "vc-bg-page": "#F8F9FB",
9
- "vc-bg-surface": "#FFFFFF",
10
- "vc-bg-inset": "#F8F9FB",
11
- "vc-bg-inset-strong": "#EEF1F4",
12
- "vc-bg-field": "#FFFFFF",
13
- "vc-bg-muted": "#EEF1F4",
14
- "vc-bg-overlay": "#16192280",
15
- "vc-action-primary": "#E80130",
16
- "vc-onfill": "#FFFFFF",
17
- "vc-onfill-primary": "#FFFFFF",
18
- "vc-action-info": "#2759DA",
19
- "vc-action-success": "#007D47",
20
- "vc-content-success": "#007D47",
21
- "vc-content-warning": "#BF5001",
22
- "vc-action-warning": "#FEC635",
23
- "vc-onfill-warning": "#161922",
24
- "vc-action-danger": "#750830",
25
- "vc-action-secondary": "#4A607A",
26
- "vc-border": "#E2E6EE",
27
- "vc-border-strong": "#CDD4E0",
28
- "vc-input": "#CDD4E0",
29
- "vc-ring": "#4087FF",
30
- "vc-mix-anchor": "#000000",
31
- "vc-mix-anchor-primary": "#000000",
32
- "vc-mix-anchor-warning": "#000000",
33
- "vc-shadow-color": "#161922",
34
- "vc-content-danger": "#750830",
35
- "vc-content-info": "#2759DA"
36
- },
37
- "voicenterDark": {
38
- "vc-content-primary": "#E2ECF7",
39
- "vc-content-secondary": "#93A0B5",
40
- "vc-content-tertiary": "#6D8AAA",
41
- "vc-content-brand": "#FF6B6A",
42
- "vc-content-disabled": "#48515F",
43
- "vc-bg-page": "#0E1015",
44
- "vc-bg-surface": "#161922",
45
- "vc-bg-inset": "#0E1015",
46
- "vc-bg-inset-strong": "#232427",
47
- "vc-bg-field": "#161922",
48
- "vc-bg-muted": "#232427",
49
- "vc-bg-overlay": "#000000B3",
50
- "vc-action-primary": "#E50A3B",
51
- "vc-onfill": "#FFFFFF",
52
- "vc-onfill-primary": "#FFFFFF",
53
- "vc-action-info": "#2268DE",
54
- "vc-action-success": "#007A45",
55
- "vc-content-success": "#00B96B",
56
- "vc-content-warning": "#D66527",
57
- "vc-action-warning": "#A25600",
58
- "vc-onfill-warning": "#FFFFFF",
59
- "vc-action-danger": "#934A5A",
60
- "vc-action-secondary": "#5A7189",
61
- "vc-border": "#282C32",
62
- "vc-border-strong": "#333841",
63
- "vc-input": "#333841",
64
- "vc-ring": "#2268DE",
65
- "vc-mix-anchor": "#000000",
66
- "vc-mix-anchor-primary": "#000000",
67
- "vc-mix-anchor-warning": "#000000",
68
- "vc-shadow-color": "#000000",
69
- "vc-content-danger": "#FF9BAD",
70
- "vc-content-info": "#6293FF"
71
- }
72
- }
1
+ declare const _default: {
2
+ "voicenter": {
3
+ "vc-content-primary": "#161922",
4
+ "vc-content-secondary": "#525D70",
5
+ "vc-content-tertiary": "#567391",
6
+ "vc-content-brand": "#C20027",
7
+ "vc-content-disabled": "#A6B0C0",
8
+ "vc-bg-page": "#F8F9FB",
9
+ "vc-bg-surface": "#FFFFFF",
10
+ "vc-bg-inset": "#F8F9FB",
11
+ "vc-bg-inset-strong": "#EEF1F4",
12
+ "vc-bg-field": "#FFFFFF",
13
+ "vc-bg-muted": "#EEF1F4",
14
+ "vc-bg-overlay": "#16192280",
15
+ "vc-action-primary": "#E80130",
16
+ "vc-onfill": "#FFFFFF",
17
+ "vc-onfill-primary": "#FFFFFF",
18
+ "vc-action-info": "#2759DA",
19
+ "vc-action-success": "#007D47",
20
+ "vc-content-success": "#007D47",
21
+ "vc-content-warning": "#BF5001",
22
+ "vc-action-warning": "#FEC635",
23
+ "vc-onfill-warning": "#161922",
24
+ "vc-action-danger": "#750830",
25
+ "vc-action-secondary": "#4A607A",
26
+ "vc-border": "#E2E6EE",
27
+ "vc-border-strong": "#CDD4E0",
28
+ "vc-input": "#CDD4E0",
29
+ "vc-ring": "#4087FF",
30
+ "vc-mix-anchor": "#000000",
31
+ "vc-mix-anchor-primary": "#000000",
32
+ "vc-mix-anchor-warning": "#000000",
33
+ "vc-shadow-color": "#161922",
34
+ "vc-content-danger": "#750830",
35
+ "vc-content-info": "#2759DA"
36
+ },
37
+ "voicenterDark": {
38
+ "vc-content-primary": "#E2ECF7",
39
+ "vc-content-secondary": "#93A0B5",
40
+ "vc-content-tertiary": "#6D8AAA",
41
+ "vc-content-brand": "#FF6B6A",
42
+ "vc-content-disabled": "#48515F",
43
+ "vc-bg-page": "#0E1015",
44
+ "vc-bg-surface": "#161922",
45
+ "vc-bg-inset": "#0E1015",
46
+ "vc-bg-inset-strong": "#232427",
47
+ "vc-bg-field": "#161922",
48
+ "vc-bg-muted": "#232427",
49
+ "vc-bg-overlay": "#000000B3",
50
+ "vc-action-primary": "#E50A3B",
51
+ "vc-onfill": "#FFFFFF",
52
+ "vc-onfill-primary": "#FFFFFF",
53
+ "vc-action-info": "#2268DE",
54
+ "vc-action-success": "#007A45",
55
+ "vc-content-success": "#00B96B",
56
+ "vc-content-warning": "#D66527",
57
+ "vc-action-warning": "#A25600",
58
+ "vc-onfill-warning": "#FFFFFF",
59
+ "vc-action-danger": "#934A5A",
60
+ "vc-action-secondary": "#5A7189",
61
+ "vc-border": "#282C32",
62
+ "vc-border-strong": "#333841",
63
+ "vc-input": "#333841",
64
+ "vc-ring": "#2268DE",
65
+ "vc-mix-anchor": "#000000",
66
+ "vc-mix-anchor-primary": "#000000",
67
+ "vc-mix-anchor-warning": "#000000",
68
+ "vc-shadow-color": "#000000",
69
+ "vc-content-danger": "#FF9BAD",
70
+ "vc-content-info": "#6293FF"
71
+ }
72
+ }
73
73
  ;
74
74
 
75
75
  export default _default;
@@ -0,0 +1,66 @@
1
+ import { TIcon } from './icons.types';
2
+ /**
3
+ * Where a link goes when it is a router link: what RouterLink's `to` takes
4
+ * (a path, or a route location object). Kept loose so the library does not
5
+ * depend on vue-router.
6
+ */
7
+ export type NavigationSidebarRoute = string | Record<string, unknown>;
8
+ /** A page: in the rail, in a group's panel, or in a section of a panel. */
9
+ export interface NavigationSidebarLink {
10
+ /** Unique key, matched against the sidebar's `active` */
11
+ key: string;
12
+ /** Name of the page */
13
+ label: string;
14
+ /** Icon before the name (a Lucide component or a `vc-icon-*` class) */
15
+ icon?: TIcon;
16
+ /** Router location: the link renders RouterLink when the app has vue-router */
17
+ to?: NavigationSidebarRoute;
18
+ /** Plain URL: the link renders `<a href>` */
19
+ href?: string;
20
+ /** `target` of a plain URL link, `_blank` for example */
21
+ target?: string;
22
+ /** Short description of the page, shown in the link's tooltip */
23
+ description?: string;
24
+ /** Documentation of the page: the tooltip's book button opens it */
25
+ docsUrl?: string;
26
+ /** Short label after the name, `New` for example */
27
+ badge?: string;
28
+ /** The link cannot be opened */
29
+ disabled?: boolean;
30
+ }
31
+ /** A titled sub-group of links inside a group's panel. */
32
+ export interface NavigationSidebarSection {
33
+ key: string;
34
+ /** Title above the links */
35
+ label: string;
36
+ /** Short label after the title, `New` for example */
37
+ badge?: string;
38
+ children: NavigationSidebarLink[];
39
+ }
40
+ /** The block at the bottom of a group's panel. */
41
+ export interface NavigationSidebarGroupInfo {
42
+ title: string;
43
+ text?: string;
44
+ /** Label of the action under the text, `Learn more` for example */
45
+ actionLabel?: string;
46
+ actionIcon?: TIcon;
47
+ /** URL the action opens in a new tab; without it the sidebar emits `info-action` */
48
+ href?: string;
49
+ /** Whether the block folds to its title; true by default */
50
+ collapsible?: boolean;
51
+ }
52
+ /** An area of the app: a rail item whose pages open in a panel beside the rail. */
53
+ export interface NavigationSidebarGroup {
54
+ key: string;
55
+ label: string;
56
+ icon?: TIcon;
57
+ /** Short description of the area, shown under its title in the More popover */
58
+ description?: string;
59
+ /** Links, and sections of links */
60
+ children: Array<NavigationSidebarLink | NavigationSidebarSection>;
61
+ info?: NavigationSidebarGroupInfo;
62
+ }
63
+ /** A rail item: a group when it has `children`, a link otherwise. */
64
+ export type NavigationSidebarItem = NavigationSidebarLink | NavigationSidebarGroup;
65
+ /** Key, or keys, of what is active: a link key, or every matched route name. */
66
+ export type NavigationSidebarActive = string | string[] | null | undefined;
@@ -1 +1,2 @@
1
1
  export declare type LoaderType = 'card' | 'row' | 'circle' | 'text' | 'square';
2
+ export declare type SkeletonItemVariant = 'row' | 'circle' | 'square';
@@ -68,3 +68,4 @@ export * from './VcEditableTabs.types';
68
68
  export * from './VcSipFlow.types';
69
69
  export * from './VcTour.types';
70
70
  export * from './Overlay.types';
71
+ export * from './VcNavigationSidebar.types';