@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
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./LoadIcon.vue2.mjs";
2
2
  import '../../../assets/components/VcLoading/Loaders/LoadIcon.css';/* empty css */
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
- const LoadIcon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-92f0d10d"]]);
4
+ const LoadIcon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-28ecdcf8"]]);
5
5
  export {
6
6
  LoadIcon as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./Stretch.vue2.mjs";
2
2
  import '../../../assets/components/VcLoading/Loaders/Stretch.css';/* empty css */
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
- const Stretch = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-53d72cde"]]);
4
+ const Stretch = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-05c2288e"]]);
5
5
  export {
6
6
  Stretch as default
7
7
  };
@@ -23,7 +23,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
23
23
  style: normalizeStyle(styles.value),
24
24
  class: normalizeClass([unref(textColorClass)(__props.color), "vc-spinner--stretch"])
25
25
  }, [..._cache[0] || (_cache[0] = [
26
- createStaticVNode('<div class="rect rect-1" data-v-53d72cde></div><div class="rect rect-2" data-v-53d72cde></div><div class="rect rect-3" data-v-53d72cde></div><div class="rect rect-4" data-v-53d72cde></div><div class="rect rect-5" data-v-53d72cde></div>', 5)
26
+ createStaticVNode('<div class="rect rect-1" data-v-05c2288e></div><div class="rect rect-2" data-v-05c2288e></div><div class="rect rect-3" data-v-05c2288e></div><div class="rect rect-4" data-v-05c2288e></div><div class="rect rect-5" data-v-05c2288e></div>', 5)
27
27
  ])], 6);
28
28
  };
29
29
  }
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./VcLoading.vue2.mjs";
2
2
  import '../../assets/components/VcLoading/VcLoading.css';/* empty css */
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const VcLoading = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0e3d702c"]]);
4
+ const VcLoading = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-dcd47a4e"]]);
5
5
  export {
6
6
  VcLoading as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./ParameterNode.vue2.mjs";
2
2
  import '../../assets/components/VcMdEditor/ParameterNode.css';/* empty css */
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const ParameterNode = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-de324ab7"]]);
4
+ const ParameterNode = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b079518e"]]);
5
5
  export {
6
6
  ParameterNode as default
7
7
  };
@@ -0,0 +1,154 @@
1
+ import { defineComponent, inject, ref, resolveDynamicComponent, computed, openBlock, createBlock, mergeProps, withKeys, withCtx, createElementBlock, createCommentVNode, unref, Fragment, createVNode, createElementVNode, toDisplayString } from "vue";
2
+ import _sfc_main$1 from "../VcIcon/VcIcon.vue.mjs";
3
+ import '../../assets/components/VcTag/VcTag.css';import '../../assets/components/VcIcon/VcIcon.css';/* empty css */
4
+ import _sfc_main$2 from "../VcTag/VcTag.vue.mjs";
5
+ /* empty css */
6
+ import { NAVIGATION_SIDEBAR_KEY, NavigationSidebarRender, hasLinkTooltip } from "./navigationSidebarModel.mjs";
7
+ const _hoisted_1 = {
8
+ key: 0,
9
+ class: "vc-nav-sidebar-link__indicator",
10
+ "aria-hidden": "true"
11
+ };
12
+ const _hoisted_2 = {
13
+ key: 0,
14
+ class: "vc-nav-sidebar-link__icon"
15
+ };
16
+ const _hoisted_3 = {
17
+ key: 0,
18
+ class: "vc-nav-sidebar-link__indicator",
19
+ "aria-hidden": "true"
20
+ };
21
+ const _hoisted_4 = { class: "vc-nav-sidebar-link__label" };
22
+ const _sfc_main = /* @__PURE__ */ defineComponent({
23
+ __name: "NavigationSidebarLink",
24
+ props: {
25
+ link: {},
26
+ active: { type: Boolean, default: false },
27
+ layout: { default: "row" }
28
+ },
29
+ emits: ["navigate"],
30
+ setup(__props, { emit: __emit }) {
31
+ const props = __props;
32
+ const emit = __emit;
33
+ const sidebar = inject(NAVIGATION_SIDEBAR_KEY, void 0);
34
+ const rootRef = ref();
35
+ const linkSlot = () => sidebar == null ? void 0 : sidebar.slots.link;
36
+ const renderLinkSlot = () => {
37
+ var _a;
38
+ return ((_a = linkSlot()) == null ? void 0 : _a({
39
+ link: props.link,
40
+ active: props.active,
41
+ layout: props.layout
42
+ })) ?? [];
43
+ };
44
+ const resolvedRouterLink = resolveDynamicComponent("RouterLink");
45
+ const routerLink = typeof resolvedRouterLink === "object" && resolvedRouterLink !== null ? resolvedRouterLink : void 0;
46
+ const element = computed(() => {
47
+ const { link } = props;
48
+ if (link.disabled) {
49
+ return {
50
+ is: "span",
51
+ attrs: { role: "link" }
52
+ };
53
+ }
54
+ if (link.to !== void 0) {
55
+ if (routerLink) {
56
+ return {
57
+ is: routerLink,
58
+ attrs: { to: link.to }
59
+ };
60
+ }
61
+ return {
62
+ is: "a",
63
+ attrs: { href: typeof link.to === "string" ? link.to : void 0 }
64
+ };
65
+ }
66
+ if (link.href) {
67
+ return {
68
+ is: "a",
69
+ attrs: {
70
+ href: link.href,
71
+ target: link.target,
72
+ rel: link.target === "_blank" ? "noopener noreferrer" : void 0
73
+ }
74
+ };
75
+ }
76
+ return {
77
+ is: "button",
78
+ attrs: { type: "button" }
79
+ };
80
+ });
81
+ function rootElement() {
82
+ const root = rootRef.value;
83
+ if (!root) {
84
+ return void 0;
85
+ }
86
+ return root instanceof HTMLElement ? root : root.$el;
87
+ }
88
+ function showTooltip() {
89
+ const el = rootElement();
90
+ if (!sidebar || !el || props.layout === "menu" || !sidebar.tooltips() || !hasLinkTooltip(props.link)) {
91
+ return;
92
+ }
93
+ sidebar.openTooltip(el, props.link);
94
+ }
95
+ function hideTooltip(immediately = false) {
96
+ if (props.layout === "menu") {
97
+ return;
98
+ }
99
+ sidebar == null ? void 0 : sidebar.closeTooltip(immediately);
100
+ }
101
+ function onClick(event) {
102
+ if (props.link.disabled) {
103
+ event.preventDefault();
104
+ return;
105
+ }
106
+ sidebar == null ? void 0 : sidebar.closeTooltip(true);
107
+ sidebar == null ? void 0 : sidebar.select(props.link, event);
108
+ emit("navigate", props.link);
109
+ }
110
+ return (_ctx, _cache) => {
111
+ return openBlock(), createBlock(resolveDynamicComponent(element.value.is), mergeProps(element.value.attrs, {
112
+ ref_key: "rootRef",
113
+ ref: rootRef,
114
+ class: ["vc-nav-sidebar-link", [`vc-nav-sidebar-link--${__props.layout}`, { "is--active": __props.active, "is--disabled": __props.link.disabled }]],
115
+ "aria-current": __props.active ? "page" : void 0,
116
+ "aria-disabled": __props.link.disabled ? "true" : void 0,
117
+ "data-test": `vc-nav-sidebar-link-${__props.link.key}`,
118
+ onClick,
119
+ onMouseenter: showTooltip,
120
+ onMouseleave: _cache[0] || (_cache[0] = ($event) => hideTooltip()),
121
+ onFocus: showTooltip,
122
+ onBlur: _cache[1] || (_cache[1] = ($event) => hideTooltip()),
123
+ onKeydown: _cache[2] || (_cache[2] = withKeys(($event) => hideTooltip(true), ["esc"]))
124
+ }), {
125
+ default: withCtx(() => [
126
+ __props.active && __props.layout !== "menu" && (!__props.link.icon || linkSlot()) ? (openBlock(), createElementBlock("span", _hoisted_1)) : createCommentVNode("", true),
127
+ linkSlot() ? (openBlock(), createBlock(unref(NavigationSidebarRender), {
128
+ key: 1,
129
+ render: renderLinkSlot
130
+ })) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
131
+ __props.link.icon ? (openBlock(), createElementBlock("span", _hoisted_2, [
132
+ __props.active && __props.layout !== "menu" ? (openBlock(), createElementBlock("span", _hoisted_3)) : createCommentVNode("", true),
133
+ createVNode(_sfc_main$1, {
134
+ icon: __props.link.icon
135
+ }, null, 8, ["icon"])
136
+ ])) : createCommentVNode("", true),
137
+ createElementVNode("span", _hoisted_4, toDisplayString(__props.link.label), 1),
138
+ __props.link.badge && __props.layout !== "rail" ? (openBlock(), createBlock(_sfc_main$2, {
139
+ key: 1,
140
+ class: "vc-nav-sidebar-link__badge",
141
+ label: __props.link.badge,
142
+ color: "primary",
143
+ compact: ""
144
+ }, null, 8, ["label"])) : createCommentVNode("", true)
145
+ ], 64))
146
+ ]),
147
+ _: 1
148
+ }, 16, ["class", "aria-current", "aria-disabled", "data-test"]);
149
+ };
150
+ }
151
+ });
152
+ export {
153
+ _sfc_main as default
154
+ };
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./NavigationSidebarLink.vue.mjs";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -0,0 +1,128 @@
1
+ import { defineComponent, inject, computed, openBlock, createElementBlock, Fragment, renderList, unref, normalizeClass, createElementVNode, createVNode, createCommentVNode, createBlock, createTextVNode, toDisplayString } from "vue";
2
+ import _sfc_main$1 from "../VcIcon/VcIcon.vue.mjs";
3
+ import '../../assets/components/VcTag/VcTag.css';import '../../assets/components/VcIcon/VcIcon.css';/* empty css */
4
+ import _sfc_main$2 from "../VcTag/VcTag.vue.mjs";
5
+ /* empty css */
6
+ import _sfc_main$3 from "./NavigationSidebarLink.vue.mjs";
7
+ import { NAVIGATION_SIDEBAR_KEY, toActiveKeys, activeLinkKey, isNavigationGroup, groupLinks, isItemActive, NavigationSidebarRender, isNavigationSection } from "./navigationSidebarModel.mjs";
8
+ const _hoisted_1 = { class: "vc-nav-sidebar-mobile" };
9
+ const _hoisted_2 = ["aria-labelledby", "data-test"];
10
+ const _hoisted_3 = { class: "vc-nav-sidebar-mobile__group-head" };
11
+ const _hoisted_4 = {
12
+ key: 0,
13
+ class: "vc-nav-sidebar-mobile__group-icon"
14
+ };
15
+ const _hoisted_5 = ["id"];
16
+ const _hoisted_6 = {
17
+ key: 0,
18
+ class: "vc-nav-sidebar-mobile__description"
19
+ };
20
+ const _hoisted_7 = { class: "vc-nav-sidebar-panel__section-title" };
21
+ const _hoisted_8 = { class: "vc-nav-sidebar-panel__section-label" };
22
+ const _sfc_main = /* @__PURE__ */ defineComponent({
23
+ __name: "NavigationSidebarMobileList",
24
+ props: {
25
+ id: {},
26
+ items: {},
27
+ active: { default: void 0 }
28
+ },
29
+ emits: ["navigate"],
30
+ setup(__props, { emit: __emit }) {
31
+ const props = __props;
32
+ const emit = __emit;
33
+ const sidebar = inject(NAVIGATION_SIDEBAR_KEY, void 0);
34
+ const headerSlot = () => sidebar == null ? void 0 : sidebar.slots["panel-header"];
35
+ const sectionTitleSlot = () => sidebar == null ? void 0 : sidebar.slots["section-title"];
36
+ const activeKeys = computed(() => toActiveKeys(props.active));
37
+ const activeLink = computed(() => activeLinkKey(
38
+ props.items.flatMap((item) => isNavigationGroup(item) ? groupLinks(item) : [item]),
39
+ props.active
40
+ ));
41
+ return (_ctx, _cache) => {
42
+ return openBlock(), createElementBlock("nav", _hoisted_1, [
43
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (item) => {
44
+ return openBlock(), createElementBlock(Fragment, {
45
+ key: item.key
46
+ }, [
47
+ unref(isNavigationGroup)(item) ? (openBlock(), createElementBlock("section", {
48
+ key: 0,
49
+ class: normalizeClass(["vc-nav-sidebar-mobile__group", { "is--active": unref(isItemActive)(item, activeKeys.value) }]),
50
+ "aria-labelledby": `${__props.id}-${item.key}`,
51
+ "data-test": `vc-nav-sidebar-mobile-group-${item.key}`
52
+ }, [
53
+ createElementVNode("div", _hoisted_3, [
54
+ item.icon ? (openBlock(), createElementBlock("span", _hoisted_4, [
55
+ createVNode(_sfc_main$1, {
56
+ icon: item.icon
57
+ }, null, 8, ["icon"])
58
+ ])) : createCommentVNode("", true),
59
+ createElementVNode("span", {
60
+ id: `${__props.id}-${item.key}`,
61
+ class: "vc-nav-sidebar-mobile__group-title"
62
+ }, [
63
+ headerSlot() ? (openBlock(), createBlock(unref(NavigationSidebarRender), {
64
+ key: 0,
65
+ render: () => {
66
+ var _a;
67
+ return ((_a = headerSlot()) == null ? void 0 : _a({ group: item })) ?? [];
68
+ }
69
+ }, null, 8, ["render"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
70
+ createTextVNode(toDisplayString(item.label), 1)
71
+ ], 64))
72
+ ], 8, _hoisted_5)
73
+ ]),
74
+ item.description ? (openBlock(), createElementBlock("p", _hoisted_6, toDisplayString(item.description), 1)) : createCommentVNode("", true),
75
+ (openBlock(true), createElementBlock(Fragment, null, renderList(item.children, (child) => {
76
+ return openBlock(), createElementBlock(Fragment, {
77
+ key: child.key
78
+ }, [
79
+ unref(isNavigationSection)(child) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
80
+ createElementVNode("div", _hoisted_7, [
81
+ sectionTitleSlot() ? (openBlock(), createBlock(unref(NavigationSidebarRender), {
82
+ key: 0,
83
+ render: () => {
84
+ var _a;
85
+ return ((_a = sectionTitleSlot()) == null ? void 0 : _a({ section: child })) ?? [];
86
+ }
87
+ }, null, 8, ["render"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
88
+ createElementVNode("span", _hoisted_8, toDisplayString(child.label), 1),
89
+ child.badge ? (openBlock(), createBlock(_sfc_main$2, {
90
+ key: 0,
91
+ label: child.badge,
92
+ color: "primary",
93
+ compact: ""
94
+ }, null, 8, ["label"])) : createCommentVNode("", true)
95
+ ], 64))
96
+ ]),
97
+ (openBlock(true), createElementBlock(Fragment, null, renderList(child.children, (link) => {
98
+ return openBlock(), createBlock(_sfc_main$3, {
99
+ key: link.key,
100
+ link,
101
+ active: link.key === activeLink.value,
102
+ onNavigate: _cache[0] || (_cache[0] = ($event) => emit("navigate", $event))
103
+ }, null, 8, ["link", "active"]);
104
+ }), 128))
105
+ ], 64)) : (openBlock(), createBlock(_sfc_main$3, {
106
+ key: 1,
107
+ link: child,
108
+ active: child.key === activeLink.value,
109
+ onNavigate: _cache[1] || (_cache[1] = ($event) => emit("navigate", $event))
110
+ }, null, 8, ["link", "active"]))
111
+ ], 64);
112
+ }), 128))
113
+ ], 10, _hoisted_2)) : (openBlock(), createBlock(_sfc_main$3, {
114
+ key: 1,
115
+ class: "vc-nav-sidebar-mobile__link",
116
+ link: item,
117
+ active: item.key === activeLink.value,
118
+ onNavigate: _cache[2] || (_cache[2] = ($event) => emit("navigate", $event))
119
+ }, null, 8, ["link", "active"]))
120
+ ], 64);
121
+ }), 128))
122
+ ]);
123
+ };
124
+ }
125
+ });
126
+ export {
127
+ _sfc_main as default
128
+ };
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./NavigationSidebarMobileList.vue.mjs";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -0,0 +1,94 @@
1
+ import { defineComponent, inject, computed, openBlock, createElementBlock, Fragment, renderList, unref, createElementVNode, toDisplayString, createCommentVNode, createBlock } from "vue";
2
+ import _sfc_main$1 from "./NavigationSidebarLink.vue.mjs";
3
+ import { NAVIGATION_SIDEBAR_KEY, activeLinkKey, isNavigationGroup, groupLinks, isNavigationSection, NavigationSidebarRender } from "./navigationSidebarModel.mjs";
4
+ const _hoisted_1 = {
5
+ class: "vc-nav-sidebar-more__content",
6
+ "data-test": "vc-nav-sidebar-more-content"
7
+ };
8
+ const _hoisted_2 = {
9
+ key: 0,
10
+ class: "vc-nav-sidebar-more__group"
11
+ };
12
+ const _hoisted_3 = { class: "vc-nav-sidebar-more__title" };
13
+ const _hoisted_4 = {
14
+ key: 0,
15
+ class: "vc-nav-sidebar-more__description"
16
+ };
17
+ const _hoisted_5 = { class: "vc-nav-sidebar-panel__section-title" };
18
+ const _hoisted_6 = {
19
+ key: 1,
20
+ class: "vc-nav-sidebar-panel__section-label"
21
+ };
22
+ const _sfc_main = /* @__PURE__ */ defineComponent({
23
+ __name: "NavigationSidebarMore",
24
+ props: {
25
+ items: {},
26
+ active: { default: void 0 }
27
+ },
28
+ emits: ["navigate"],
29
+ setup(__props, { emit: __emit }) {
30
+ const props = __props;
31
+ const emit = __emit;
32
+ const sidebar = inject(NAVIGATION_SIDEBAR_KEY, void 0);
33
+ const sectionTitleSlot = () => sidebar == null ? void 0 : sidebar.slots["section-title"];
34
+ const activeLink = computed(() => activeLinkKey(
35
+ props.items.flatMap((item) => isNavigationGroup(item) ? groupLinks(item) : [item]),
36
+ props.active
37
+ ));
38
+ return (_ctx, _cache) => {
39
+ return openBlock(), createElementBlock("div", _hoisted_1, [
40
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (item) => {
41
+ return openBlock(), createElementBlock(Fragment, {
42
+ key: item.key
43
+ }, [
44
+ unref(isNavigationGroup)(item) ? (openBlock(), createElementBlock("div", _hoisted_2, [
45
+ createElementVNode("div", _hoisted_3, toDisplayString(item.label), 1),
46
+ item.description ? (openBlock(), createElementBlock("p", _hoisted_4, toDisplayString(item.description), 1)) : createCommentVNode("", true),
47
+ (openBlock(true), createElementBlock(Fragment, null, renderList(item.children, (child) => {
48
+ return openBlock(), createElementBlock(Fragment, {
49
+ key: child.key
50
+ }, [
51
+ unref(isNavigationSection)(child) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
52
+ createElementVNode("div", _hoisted_5, [
53
+ sectionTitleSlot() ? (openBlock(), createBlock(unref(NavigationSidebarRender), {
54
+ key: 0,
55
+ render: () => {
56
+ var _a;
57
+ return ((_a = sectionTitleSlot()) == null ? void 0 : _a({ section: child })) ?? [];
58
+ }
59
+ }, null, 8, ["render"])) : (openBlock(), createElementBlock("span", _hoisted_6, toDisplayString(child.label), 1))
60
+ ]),
61
+ (openBlock(true), createElementBlock(Fragment, null, renderList(child.children, (link) => {
62
+ return openBlock(), createBlock(_sfc_main$1, {
63
+ key: link.key,
64
+ link,
65
+ active: link.key === activeLink.value,
66
+ layout: "menu",
67
+ onNavigate: _cache[0] || (_cache[0] = ($event) => emit("navigate", $event))
68
+ }, null, 8, ["link", "active"]);
69
+ }), 128))
70
+ ], 64)) : (openBlock(), createBlock(_sfc_main$1, {
71
+ key: 1,
72
+ link: child,
73
+ active: child.key === activeLink.value,
74
+ layout: "menu",
75
+ onNavigate: _cache[1] || (_cache[1] = ($event) => emit("navigate", $event))
76
+ }, null, 8, ["link", "active"]))
77
+ ], 64);
78
+ }), 128))
79
+ ])) : (openBlock(), createBlock(_sfc_main$1, {
80
+ key: 1,
81
+ link: item,
82
+ active: item.key === activeLink.value,
83
+ layout: "menu",
84
+ onNavigate: _cache[2] || (_cache[2] = ($event) => emit("navigate", $event))
85
+ }, null, 8, ["link", "active"]))
86
+ ], 64);
87
+ }), 128))
88
+ ]);
89
+ };
90
+ }
91
+ });
92
+ export {
93
+ _sfc_main as default
94
+ };
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./NavigationSidebarMore.vue.mjs";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -0,0 +1,179 @@
1
+ import { defineComponent, inject, computed, ref, openBlock, createElementBlock, createElementVNode, createBlock, unref, Fragment, createTextVNode, toDisplayString, renderSlot, renderList, createCommentVNode, resolveDynamicComponent, withCtx, normalizeClass, withDirectives, createVNode, vShow } from "vue";
2
+ import { ChevronDown, BookOpen } from "@lucide/vue";
3
+ import _sfc_main$3 from "../VcIcon/VcIcon.vue.mjs";
4
+ import '../../assets/components/VcTag/VcTag.css';import '../../assets/components/VcIcon/VcIcon.css';/* empty css */
5
+ import _sfc_main$1 from "../VcTag/VcTag.vue.mjs";
6
+ /* empty css */
7
+ import { tVU } from "../../localization/index.mjs";
8
+ import _sfc_main$2 from "./NavigationSidebarLink.vue.mjs";
9
+ import { NAVIGATION_SIDEBAR_KEY, activeLinkKey, groupLinks, NavigationSidebarRender, isNavigationSection } from "./navigationSidebarModel.mjs";
10
+ const _hoisted_1 = ["id", "data-test"];
11
+ const _hoisted_2 = { class: "vc-nav-sidebar-panel__header" };
12
+ const _hoisted_3 = ["id"];
13
+ const _hoisted_4 = ["aria-labelledby"];
14
+ const _hoisted_5 = {
15
+ key: 0,
16
+ class: "vc-nav-sidebar-panel__section"
17
+ };
18
+ const _hoisted_6 = { class: "vc-nav-sidebar-panel__section-title" };
19
+ const _hoisted_7 = { class: "vc-nav-sidebar-panel__section-label" };
20
+ const _hoisted_8 = {
21
+ key: 0,
22
+ class: "vc-nav-sidebar-panel__footer"
23
+ };
24
+ const _hoisted_9 = {
25
+ key: 0,
26
+ class: "vc-nav-sidebar-panel__info"
27
+ };
28
+ const _hoisted_10 = { class: "vc-nav-sidebar-panel__info-body" };
29
+ const _hoisted_11 = {
30
+ key: 0,
31
+ class: "vc-nav-sidebar-panel__info-text"
32
+ };
33
+ const _sfc_main = /* @__PURE__ */ defineComponent({
34
+ __name: "NavigationSidebarPanel",
35
+ props: {
36
+ id: {},
37
+ group: {},
38
+ active: { default: void 0 },
39
+ layout: { default: "row" }
40
+ },
41
+ emits: ["navigate", "info-action"],
42
+ setup(__props, { emit: __emit }) {
43
+ const props = __props;
44
+ const emit = __emit;
45
+ const sidebar = inject(NAVIGATION_SIDEBAR_KEY, void 0);
46
+ const headerSlot = () => sidebar == null ? void 0 : sidebar.slots["panel-header"];
47
+ const sectionTitleSlot = () => sidebar == null ? void 0 : sidebar.slots["section-title"];
48
+ const activeLink = computed(() => activeLinkKey(groupLinks(props.group), props.active));
49
+ const infoCollapsible = computed(() => {
50
+ var _a;
51
+ return ((_a = props.group.info) == null ? void 0 : _a.collapsible) !== false;
52
+ });
53
+ const infoOpen = ref(true);
54
+ function onInfoAction() {
55
+ var _a;
56
+ if (!((_a = props.group.info) == null ? void 0 : _a.href)) {
57
+ emit("info-action", props.group);
58
+ }
59
+ }
60
+ return (_ctx, _cache) => {
61
+ return openBlock(), createElementBlock("div", {
62
+ id: __props.id,
63
+ class: "vc-nav-sidebar-panel",
64
+ "data-test": `vc-nav-sidebar-panel-${__props.group.key}`
65
+ }, [
66
+ createElementVNode("div", _hoisted_2, [
67
+ createElementVNode("div", {
68
+ id: `${__props.id}-title`,
69
+ class: "vc-nav-sidebar-panel__title"
70
+ }, [
71
+ headerSlot() ? (openBlock(), createBlock(unref(NavigationSidebarRender), {
72
+ key: 0,
73
+ render: () => {
74
+ var _a;
75
+ return ((_a = headerSlot()) == null ? void 0 : _a({ group: __props.group })) ?? [];
76
+ }
77
+ }, null, 8, ["render"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
78
+ createTextVNode(toDisplayString(__props.group.label), 1)
79
+ ], 64))
80
+ ], 8, _hoisted_3),
81
+ renderSlot(_ctx.$slots, "header-action")
82
+ ]),
83
+ createElementVNode("nav", {
84
+ class: "vc-nav-sidebar-panel__body",
85
+ "aria-labelledby": `${__props.id}-title`
86
+ }, [
87
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.group.children, (child) => {
88
+ return openBlock(), createElementBlock(Fragment, {
89
+ key: child.key
90
+ }, [
91
+ unref(isNavigationSection)(child) ? (openBlock(), createElementBlock("div", _hoisted_5, [
92
+ createElementVNode("div", _hoisted_6, [
93
+ sectionTitleSlot() ? (openBlock(), createBlock(unref(NavigationSidebarRender), {
94
+ key: 0,
95
+ render: () => {
96
+ var _a;
97
+ return ((_a = sectionTitleSlot()) == null ? void 0 : _a({ section: child })) ?? [];
98
+ }
99
+ }, null, 8, ["render"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
100
+ createElementVNode("span", _hoisted_7, toDisplayString(child.label), 1),
101
+ child.badge ? (openBlock(), createBlock(_sfc_main$1, {
102
+ key: 0,
103
+ label: child.badge,
104
+ color: "primary",
105
+ compact: ""
106
+ }, null, 8, ["label"])) : createCommentVNode("", true)
107
+ ], 64))
108
+ ]),
109
+ (openBlock(true), createElementBlock(Fragment, null, renderList(child.children, (link) => {
110
+ return openBlock(), createBlock(_sfc_main$2, {
111
+ key: link.key,
112
+ link,
113
+ active: link.key === activeLink.value,
114
+ layout: __props.layout,
115
+ onNavigate: _cache[0] || (_cache[0] = ($event) => emit("navigate", $event))
116
+ }, null, 8, ["link", "active", "layout"]);
117
+ }), 128))
118
+ ])) : (openBlock(), createBlock(_sfc_main$2, {
119
+ key: 1,
120
+ link: child,
121
+ active: child.key === activeLink.value,
122
+ layout: __props.layout,
123
+ onNavigate: _cache[1] || (_cache[1] = ($event) => emit("navigate", $event))
124
+ }, null, 8, ["link", "active", "layout"]))
125
+ ], 64);
126
+ }), 128))
127
+ ], 8, _hoisted_4),
128
+ _ctx.$slots.footer || __props.group.info ? (openBlock(), createElementBlock("div", _hoisted_8, [
129
+ renderSlot(_ctx.$slots, "footer", {}, () => [
130
+ __props.group.info ? (openBlock(), createElementBlock("div", _hoisted_9, [
131
+ (openBlock(), createBlock(resolveDynamicComponent(infoCollapsible.value ? "button" : "div"), {
132
+ type: infoCollapsible.value ? "button" : void 0,
133
+ class: "vc-nav-sidebar-panel__info-title",
134
+ "aria-expanded": infoCollapsible.value ? String(infoOpen.value) : void 0,
135
+ "aria-label": infoCollapsible.value ? `${__props.group.info.title}: ${infoOpen.value ? unref(tVU).t("voicenterUi.navigationSidebar.showLess") : unref(tVU).t("voicenterUi.navigationSidebar.showMore")}` : void 0,
136
+ onClick: _cache[2] || (_cache[2] = ($event) => infoCollapsible.value && (infoOpen.value = !infoOpen.value))
137
+ }, {
138
+ default: withCtx(() => [
139
+ createElementVNode("span", null, toDisplayString(__props.group.info.title), 1),
140
+ infoCollapsible.value ? (openBlock(), createBlock(_sfc_main$3, {
141
+ key: 0,
142
+ icon: unref(ChevronDown),
143
+ class: normalizeClass(["vc-nav-sidebar-panel__info-chevron", { "is--open": infoOpen.value }])
144
+ }, null, 8, ["icon", "class"])) : createCommentVNode("", true)
145
+ ]),
146
+ _: 1
147
+ }, 8, ["type", "aria-expanded", "aria-label"])),
148
+ withDirectives(createElementVNode("div", _hoisted_10, [
149
+ __props.group.info.text ? (openBlock(), createElementBlock("p", _hoisted_11, toDisplayString(__props.group.info.text), 1)) : createCommentVNode("", true),
150
+ __props.group.info.actionLabel ? (openBlock(), createBlock(resolveDynamicComponent(__props.group.info.href ? "a" : "button"), {
151
+ key: 1,
152
+ type: __props.group.info.href ? void 0 : "button",
153
+ href: __props.group.info.href,
154
+ target: __props.group.info.href ? "_blank" : void 0,
155
+ rel: __props.group.info.href ? "noopener noreferrer" : void 0,
156
+ class: "vc-nav-sidebar-panel__info-action",
157
+ onClick: onInfoAction
158
+ }, {
159
+ default: withCtx(() => [
160
+ createVNode(_sfc_main$3, {
161
+ icon: __props.group.info.actionIcon ?? unref(BookOpen)
162
+ }, null, 8, ["icon"]),
163
+ createElementVNode("span", null, toDisplayString(__props.group.info.actionLabel), 1)
164
+ ]),
165
+ _: 1
166
+ }, 8, ["type", "href", "target", "rel"])) : createCommentVNode("", true)
167
+ ], 512), [
168
+ [vShow, infoOpen.value]
169
+ ])
170
+ ])) : createCommentVNode("", true)
171
+ ])
172
+ ])) : createCommentVNode("", true)
173
+ ], 8, _hoisted_1);
174
+ };
175
+ }
176
+ });
177
+ export {
178
+ _sfc_main as default
179
+ };
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./NavigationSidebarPanel.vue.mjs";
2
+ export {
3
+ _sfc_main as default
4
+ };