@volverjs/ui-vue 0.0.2 → 0.0.3-beta.3
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/auto-imports.d.ts +289 -0
- package/dist/components/VvAccordion/VvAccordion.es.js +63 -131
- package/dist/components/VvAccordion/VvAccordion.umd.js +1 -1
- package/dist/components/VvAccordion/VvAccordion.vue.d.ts +2 -2
- package/dist/components/VvAccordion/index.d.ts +2 -2
- package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +97 -176
- package/dist/components/VvAccordionGroup/VvAccordionGroup.umd.js +1 -1
- package/dist/components/VvAccordionGroup/VvAccordionGroup.vue.d.ts +4 -4
- package/dist/components/VvAccordionGroup/index.d.ts +2 -2
- package/dist/components/VvBadge/VvBadge.es.js +16 -50
- package/dist/components/VvBadge/VvBadge.umd.js +1 -1
- package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +38 -45
- package/dist/components/VvBreadcrumb/VvBreadcrumb.umd.js +1 -1
- package/dist/components/VvButton/VvButton.es.js +170 -306
- package/dist/components/VvButton/VvButton.umd.js +1 -1
- package/dist/components/VvButton/VvButton.vue.d.ts +4 -4
- package/dist/components/VvButton/index.d.ts +3 -3
- package/dist/components/VvButtonGroup/VvButtonGroup.es.js +39 -84
- package/dist/components/VvButtonGroup/VvButtonGroup.umd.js +1 -1
- package/dist/components/VvCard/VvCard.es.js +26 -60
- package/dist/components/VvCard/VvCard.umd.js +1 -1
- package/dist/components/VvCard/VvCard.vue.d.ts +2 -2
- package/dist/components/VvCard/index.d.ts +1 -1
- package/dist/components/VvCheckbox/VvCheckbox.es.js +144 -282
- package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -1
- package/dist/components/VvCheckbox/VvCheckbox.vue.d.ts +6 -6
- package/dist/components/VvCheckbox/index.d.ts +10 -4
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +190 -346
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +7 -7
- package/dist/components/VvCheckboxGroup/index.d.ts +3 -3
- package/dist/components/VvCombobox/VvCombobox.es.js +330 -487
- package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
- package/dist/components/VvCombobox/VvCombobox.vue.d.ts +8 -8
- package/dist/components/VvCombobox/index.d.ts +4 -4
- package/dist/components/VvDialog/VvDialog.es.js +66 -102
- package/dist/components/VvDialog/VvDialog.umd.js +1 -1
- package/dist/components/VvDropdown/VvDropdown.es.js +61 -185
- package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
- package/dist/components/VvDropdown/VvDropdown.vue.d.ts +2 -2
- package/dist/components/VvDropdown/index.d.ts +1 -1
- package/dist/components/VvIcon/VvIcon.es.js +30 -65
- package/dist/components/VvIcon/VvIcon.umd.js +1 -1
- package/dist/components/VvInputText/VvInputText.es.js +304 -407
- package/dist/components/VvInputText/VvInputText.umd.js +1 -1
- package/dist/components/VvInputText/VvInputText.vue.d.ts +10 -10
- package/dist/components/VvInputText/VvInputTextActions.d.ts +1 -1
- package/dist/components/VvInputText/index.d.ts +5 -5
- package/dist/components/VvProgress/VvProgress.es.js +17 -51
- package/dist/components/VvProgress/VvProgress.umd.js +1 -1
- package/dist/components/VvRadio/VvRadio.es.js +110 -249
- package/dist/components/VvRadio/VvRadio.umd.js +1 -1
- package/dist/components/VvRadio/VvRadio.vue.d.ts +6 -6
- package/dist/components/VvRadio/index.d.ts +3 -3
- package/dist/components/VvRadioGroup/VvRadioGroup.es.js +161 -318
- package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
- package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +7 -7
- package/dist/components/VvRadioGroup/index.d.ts +3 -3
- package/dist/components/VvSelect/VvSelect.es.js +200 -292
- package/dist/components/VvSelect/VvSelect.umd.js +1 -1
- package/dist/components/VvSelect/VvSelect.vue.d.ts +8 -8
- package/dist/components/VvSelect/index.d.ts +4 -4
- package/dist/components/VvTextarea/VvTextarea.es.js +196 -299
- package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
- package/dist/components/VvTextarea/VvTextarea.vue.d.ts +6 -6
- package/dist/components/VvTextarea/index.d.ts +3 -3
- package/dist/components/VvTooltip/VvTooltip.es.js +28 -0
- package/dist/components/VvTooltip/VvTooltip.umd.js +1 -0
- package/dist/components/VvTooltip/VvTooltip.vue.d.ts +23 -0
- package/dist/components/VvTooltip/index.d.ts +18 -0
- package/dist/components/common/HintSlot.d.ts +1 -1
- package/dist/components/index.es.js +1179 -1371
- package/dist/components/index.umd.js +1 -1
- package/dist/composables/group/useInjectedGroupState.d.ts +1 -1
- package/dist/composables/useComponentFocus.d.ts +1 -1
- package/dist/composables/useComponentIcons.d.ts +1 -1
- package/dist/composables/useDebouncedInput.d.ts +1 -1
- package/dist/composables/useModifiers.d.ts +1 -1
- package/dist/composables/useTextCount.d.ts +1 -1
- package/dist/icons.es.js +3 -3
- package/dist/icons.umd.js +1 -1
- package/dist/index.es.js +1211 -1404
- package/dist/index.umd.js +1 -1
- package/dist/props/index.d.ts +12 -12
- package/dist/stories/Tooltip/Tooltip.settings.d.ts +42 -0
- package/dist/stories/Tooltip/Tooltip.test.d.ts +2 -0
- package/dist/utils/ObjectUtilities.d.ts +1 -1
- package/package.json +27 -20
- package/src/assets/icons/detailed.json +1 -1
- package/src/assets/icons/normal.json +1 -1
- package/src/assets/icons/simple.json +1 -1
- package/src/components/VvAccordion/VvAccordion.vue +0 -3
- package/src/components/VvAccordion/index.ts +1 -2
- package/src/components/VvAccordionGroup/VvAccordionGroup.vue +1 -3
- package/src/components/VvBadge/VvBadge.vue +0 -1
- package/src/components/VvButton/VvButton.vue +0 -3
- package/src/components/VvButton/index.ts +2 -10
- package/src/components/VvButtonGroup/VvButtonGroup.vue +0 -3
- package/src/components/VvCard/VvCard.vue +0 -1
- package/src/components/VvCheckbox/VvCheckbox.vue +0 -3
- package/src/components/VvCheckbox/index.ts +1 -2
- package/src/components/VvCheckboxGroup/VvCheckboxGroup.vue +0 -5
- package/src/components/VvCombobox/VvCombobox.vue +0 -7
- package/src/components/VvDialog/VvDialog.vue +1 -2
- package/src/components/VvDropdown/VvDropdown.vue +0 -4
- package/src/components/VvIcon/VvIcon.vue +0 -2
- package/src/components/VvInputText/VvInputClearAction.ts +0 -1
- package/src/components/VvInputText/VvInputPasswordAction.ts +0 -1
- package/src/components/VvInputText/VvInputStepAction.ts +0 -1
- package/src/components/VvInputText/VvInputText.vue +1 -16
- package/src/components/VvInputText/VvInputTextActions.ts +1 -1
- package/src/components/VvProgress/VvProgress.vue +0 -2
- package/src/components/VvRadio/VvRadio.vue +0 -3
- package/src/components/VvRadio/index.ts +0 -1
- package/src/components/VvRadioGroup/VvRadioGroup.vue +0 -5
- package/src/components/VvSelect/VvSelect.vue +1 -14
- package/src/components/VvTextarea/VvTextarea.vue +1 -15
- package/src/components/VvTooltip/VvTooltip.vue +17 -0
- package/src/components/VvTooltip/index.ts +21 -0
- package/src/components/common/HintSlot.ts +1 -11
- package/src/composables/group/types/IAccordionGroupState.ts +0 -1
- package/src/composables/group/types/IButtonGroupState.ts +0 -1
- package/src/composables/group/types/IInputGroup.ts +0 -1
- package/src/composables/group/useInjectedGroupState.ts +1 -2
- package/src/composables/group/useProvideGroupState.ts +0 -1
- package/src/composables/useComponentFocus.ts +1 -2
- package/src/composables/useComponentIcons.ts +1 -1
- package/src/composables/useDebouncedInput.ts +1 -1
- package/src/composables/useModifiers.ts +1 -2
- package/src/composables/useOptions.ts +0 -1
- package/src/composables/useTextCount.ts +1 -1
- package/src/stories/Accordion/Accordion.stories.mdx +1 -1
- package/src/stories/AccordionGroup/AccordionGroup.stories.mdx +1 -1
- package/src/stories/AccordionGroup/AccordionGroupSlots.stories.mdx +1 -1
- package/src/stories/Badge/Badge.stories.mdx +1 -1
- package/src/stories/Breadcrumb/Breadcrumb.settings.ts +0 -1
- package/src/stories/Breadcrumb/Breadcrumb.stories.mdx +1 -1
- package/src/stories/Breadcrumb/BreadcrumbSlots.stories.mdx +1 -1
- package/src/stories/Button/Button.stories.mdx +1 -1
- package/src/stories/Button/ButtonModifiers.stories.mdx +2 -2
- package/src/stories/Button/ButtonSlots.stories.mdx +3 -3
- package/src/stories/ButtonGroup/ButtonGroup.settings.ts +0 -1
- package/src/stories/ButtonGroup/ButtonGroup.stories.mdx +1 -1
- package/src/stories/ButtonGroup/ButtonGroupSlots.stories.mdx +1 -1
- package/src/stories/Card/Card.stories.mdx +1 -1
- package/src/stories/Card/CardSlots.stories.mdx +1 -1
- package/src/stories/Checkbox/Checkbox.stories.mdx +1 -1
- package/src/stories/CheckboxGroup/CheckboxGroup.stories.mdx +1 -1
- package/src/stories/CheckboxGroup/CheckboxGroupSlots.stories.mdx +1 -1
- package/src/stories/Combobox/Combobox.settings.ts +0 -1
- package/src/stories/Combobox/Combobox.stories.mdx +1 -1
- package/src/stories/Dialog/Dialog.stories.mdx +1 -1
- package/src/stories/Dropdown/Dropdown.settings.ts +0 -1
- package/src/stories/Dropdown/Dropdown.stories.mdx +1 -1
- package/src/stories/Icon/Icon.settings.ts +0 -1
- package/src/stories/Icon/Icon.stories.mdx +1 -1
- package/src/stories/Icon/IconsCollection.stories.mdx +1 -1
- package/src/stories/InputText/InputText.settings.ts +0 -1
- package/src/stories/InputText/InputText.stories.mdx +1 -1
- package/src/stories/Progress/Progress.stories.mdx +1 -1
- package/src/stories/Radio/Radio.stories.mdx +1 -1
- package/src/stories/RadioGroup/RadioGroup.stories.mdx +1 -1
- package/src/stories/RadioGroup/RadioGroupSlots.stories.mdx +1 -1
- package/src/stories/Select/Select.settings.ts +0 -1
- package/src/stories/Select/Select.stories.mdx +1 -1
- package/src/stories/Textarea/Textarea.settings.ts +0 -1
- package/src/stories/Textarea/Textarea.stories.mdx +1 -1
- package/src/stories/Tooltip/Tooltip.settings.ts +25 -0
- package/src/stories/Tooltip/Tooltip.stories.mdx +98 -0
- package/src/stories/Tooltip/Tooltip.test.ts +49 -0
- package/src/utils/ObjectUtilities.ts +1 -1
|
@@ -1,85 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
const M = "VV_ACCORDION_GROUP";
|
|
5
|
-
function Q(r) {
|
|
6
|
-
if (Object.keys(r).some(
|
|
7
|
-
(e) => e !== "key" && !z(r[e])
|
|
8
|
-
))
|
|
9
|
-
throw Error("One or more groupState props aren't ref.");
|
|
10
|
-
D(
|
|
11
|
-
r.key,
|
|
12
|
-
y(() => r)
|
|
13
|
-
);
|
|
14
|
-
}
|
|
15
|
-
function W(r) {
|
|
16
|
-
return ((e) => e == null || e === "" || Array.isArray(e) && e.length === 0 || !(e instanceof Date) && typeof e == "object" && Object.keys(e).length === 0)(a(r));
|
|
17
|
-
}
|
|
18
|
-
function S(r) {
|
|
19
|
-
var e, t;
|
|
20
|
-
if (r)
|
|
21
|
-
return (t = (e = r.match(
|
|
22
|
-
/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g
|
|
23
|
-
)) == null ? void 0 : e.join("-")) == null ? void 0 : t.toLowerCase();
|
|
24
|
-
}
|
|
25
|
-
function I(r, e) {
|
|
26
|
-
const t = { [`${r}`]: !0 };
|
|
27
|
-
return {
|
|
28
|
-
bemCssClasses: y(() => Object.keys(e).reduce((o, c) => {
|
|
29
|
-
const l = a(e[c]) || !1;
|
|
30
|
-
if (!l)
|
|
31
|
-
return o;
|
|
32
|
-
if (c === "modifiers") {
|
|
33
|
-
const f = Array.isArray(l) ? l : l.split(" ");
|
|
34
|
-
return {
|
|
35
|
-
...o,
|
|
36
|
-
...f.reduce(
|
|
37
|
-
(n, d) => ({
|
|
38
|
-
...n,
|
|
39
|
-
[`${r}--${S(d)}`]: !0
|
|
40
|
-
}),
|
|
41
|
-
{}
|
|
42
|
-
)
|
|
43
|
-
};
|
|
44
|
-
} else
|
|
45
|
-
return {
|
|
46
|
-
...o,
|
|
47
|
-
[`${r}--${S(c)}`]: l
|
|
48
|
-
};
|
|
49
|
-
}, t) || {})
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
function X(r) {
|
|
53
|
-
const e = L(r, void 0), t = y(() => !W(e));
|
|
54
|
-
function u(o, c, l) {
|
|
55
|
-
if (e != null && e.value) {
|
|
56
|
-
const n = a(e.value)[o];
|
|
57
|
-
return y({
|
|
58
|
-
get() {
|
|
59
|
-
return n == null ? void 0 : n.value;
|
|
60
|
-
},
|
|
61
|
-
set(d) {
|
|
62
|
-
n.value = d;
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
const f = Z(c, o);
|
|
67
|
-
return y({
|
|
68
|
-
get() {
|
|
69
|
-
return f.value;
|
|
70
|
-
},
|
|
71
|
-
set(n) {
|
|
72
|
-
l && l(`update:${o}`, n);
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
return {
|
|
77
|
-
group: e,
|
|
78
|
-
isInGroup: t,
|
|
79
|
-
getGroupOrLocalRef: u
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
const Y = {
|
|
1
|
+
import { defineComponent as P, openBlock as g, createElementBlock as S, unref as a, normalizeClass as O, withModifiers as k, createElementVNode as h, renderSlot as A, normalizeProps as C, guardReactiveProps as G, createTextVNode as b, toDisplayString as $, Fragment as M, renderList as E, createBlock as I, mergeProps as N, withCtx as B } from "vue";
|
|
2
|
+
import { nanoid as D } from "nanoid";
|
|
3
|
+
const R = "VV_ACCORDION_GROUP", x = {
|
|
83
4
|
name: String,
|
|
84
5
|
title: String,
|
|
85
6
|
content: String,
|
|
@@ -89,88 +10,88 @@ const Y = {
|
|
|
89
10
|
},
|
|
90
11
|
modifiers: [String, Array],
|
|
91
12
|
disabled: Boolean
|
|
92
|
-
},
|
|
93
|
-
function
|
|
94
|
-
const { group: t, isInGroup:
|
|
13
|
+
}, z = ["update:modelValue"];
|
|
14
|
+
function L(s, m) {
|
|
15
|
+
const { group: t, isInGroup: l, getGroupOrLocalRef: e } = useInjectedGroupState(R), { title: p, content: v } = toRefs(s), f = e("modelValue", s, m), d = e("disabled", s), c = e("collapse", s), r = e("modifiers", s);
|
|
95
16
|
return {
|
|
96
17
|
modelValue: f,
|
|
97
|
-
disabled:
|
|
98
|
-
isInGroup:
|
|
18
|
+
disabled: d,
|
|
19
|
+
isInGroup: l,
|
|
99
20
|
group: t,
|
|
100
|
-
collapse:
|
|
101
|
-
modifiers:
|
|
102
|
-
title:
|
|
103
|
-
content:
|
|
21
|
+
collapse: c,
|
|
22
|
+
modifiers: r,
|
|
23
|
+
title: p,
|
|
24
|
+
content: v
|
|
104
25
|
};
|
|
105
26
|
}
|
|
106
|
-
const
|
|
27
|
+
const T = ["id", "open"], U = ["aria-controls", "aria-expanded"], j = ["aria-hidden"], F = {
|
|
107
28
|
name: "VvAccordion"
|
|
108
|
-
},
|
|
109
|
-
...
|
|
110
|
-
props:
|
|
111
|
-
emits:
|
|
112
|
-
setup(
|
|
113
|
-
const t =
|
|
114
|
-
modifiers:
|
|
115
|
-
title:
|
|
29
|
+
}, q = /* @__PURE__ */ P({
|
|
30
|
+
...F,
|
|
31
|
+
props: x,
|
|
32
|
+
emits: z,
|
|
33
|
+
setup(s, { emit: m }) {
|
|
34
|
+
const t = s, l = useAttrs(), e = t.name || (l == null ? void 0 : l.id) || D(), {
|
|
35
|
+
modifiers: p,
|
|
36
|
+
title: v,
|
|
116
37
|
content: f,
|
|
117
|
-
disabled:
|
|
118
|
-
collapse:
|
|
119
|
-
modelValue:
|
|
120
|
-
isInGroup:
|
|
121
|
-
} =
|
|
122
|
-
get: () =>
|
|
123
|
-
set: (
|
|
124
|
-
if (
|
|
125
|
-
if (
|
|
126
|
-
if (
|
|
127
|
-
|
|
38
|
+
disabled: d,
|
|
39
|
+
collapse: c,
|
|
40
|
+
modelValue: r,
|
|
41
|
+
isInGroup: _
|
|
42
|
+
} = L(t, m), o = ref(!1), u = computed({
|
|
43
|
+
get: () => _.value ? c.value && Array.isArray(r.value) ? r.value.includes(e) : r.value === e : r.value === void 0 ? o.value : r.value,
|
|
44
|
+
set: (i) => {
|
|
45
|
+
if (_.value) {
|
|
46
|
+
if (c.value && Array.isArray(r.value)) {
|
|
47
|
+
if (i) {
|
|
48
|
+
r.value.push(e);
|
|
128
49
|
return;
|
|
129
50
|
}
|
|
130
|
-
|
|
131
|
-
(V) => V !==
|
|
51
|
+
r.value = r.value.filter(
|
|
52
|
+
(V) => V !== e
|
|
132
53
|
);
|
|
133
54
|
return;
|
|
134
55
|
}
|
|
135
|
-
|
|
56
|
+
r.value = i ? e : null;
|
|
136
57
|
return;
|
|
137
58
|
}
|
|
138
|
-
if (
|
|
139
|
-
|
|
59
|
+
if (r.value === void 0 && typeof i == "boolean") {
|
|
60
|
+
o.value = i;
|
|
140
61
|
return;
|
|
141
62
|
}
|
|
142
|
-
|
|
63
|
+
r.value = i;
|
|
143
64
|
}
|
|
144
|
-
}), { bemCssClasses:
|
|
145
|
-
modifiers:
|
|
146
|
-
disabled:
|
|
147
|
-
}),
|
|
148
|
-
return (
|
|
149
|
-
id: a(
|
|
150
|
-
class:
|
|
151
|
-
open: a(
|
|
152
|
-
onClick: V[0] || (V[0] =
|
|
65
|
+
}), { bemCssClasses: n } = useBemModifiers("vv-accordion", {
|
|
66
|
+
modifiers: p,
|
|
67
|
+
disabled: d
|
|
68
|
+
}), y = useToggle(u);
|
|
69
|
+
return (i, V) => (g(), S("details", {
|
|
70
|
+
id: a(e),
|
|
71
|
+
class: O(a(n)),
|
|
72
|
+
open: a(u),
|
|
73
|
+
onClick: V[0] || (V[0] = k((Q) => a(y)(), ["prevent"]))
|
|
153
74
|
}, [
|
|
154
75
|
h("summary", {
|
|
155
|
-
"aria-controls": a(
|
|
156
|
-
"aria-expanded": a(
|
|
76
|
+
"aria-controls": a(e),
|
|
77
|
+
"aria-expanded": a(u),
|
|
157
78
|
class: "vv-collapse__summary"
|
|
158
79
|
}, [
|
|
159
|
-
|
|
160
|
-
|
|
80
|
+
A(i.$slots, "summary", C(G({ open: a(u) })), () => [
|
|
81
|
+
b($(a(v)), 1)
|
|
161
82
|
])
|
|
162
|
-
], 8,
|
|
83
|
+
], 8, U),
|
|
163
84
|
h("div", {
|
|
164
|
-
"aria-hidden": !a(
|
|
85
|
+
"aria-hidden": !a(u),
|
|
165
86
|
class: "vv-collapse__content"
|
|
166
87
|
}, [
|
|
167
|
-
|
|
168
|
-
|
|
88
|
+
A(i.$slots, "details", C(G({ open: a(u) })), () => [
|
|
89
|
+
b($(a(f)), 1)
|
|
169
90
|
])
|
|
170
|
-
], 8,
|
|
171
|
-
], 10,
|
|
91
|
+
], 8, j)
|
|
92
|
+
], 10, T));
|
|
172
93
|
}
|
|
173
|
-
}),
|
|
94
|
+
}), H = {
|
|
174
95
|
modelValue: [String, Array],
|
|
175
96
|
items: { type: Array, default: () => [] },
|
|
176
97
|
collapse: Boolean,
|
|
@@ -180,57 +101,57 @@ const oe = ["id", "open"], re = ["aria-controls", "aria-expanded"], te = ["aria-
|
|
|
180
101
|
default: ""
|
|
181
102
|
},
|
|
182
103
|
disabled: Boolean
|
|
183
|
-
},
|
|
104
|
+
}, J = ["update:modelValue"], K = {
|
|
184
105
|
name: "VvAccordionGroup"
|
|
185
|
-
},
|
|
186
|
-
...
|
|
187
|
-
props:
|
|
188
|
-
emits:
|
|
189
|
-
setup(
|
|
190
|
-
const t =
|
|
191
|
-
|
|
192
|
-
typeof t.modelValue == "string" &&
|
|
106
|
+
}, Y = /* @__PURE__ */ P({
|
|
107
|
+
...K,
|
|
108
|
+
props: H,
|
|
109
|
+
emits: J,
|
|
110
|
+
setup(s, { emit: m }) {
|
|
111
|
+
const t = s, { disabled: l, collapse: e, modifiers: p, itemModifiers: v, items: f } = toRefs(t);
|
|
112
|
+
watchEffect(() => {
|
|
113
|
+
typeof t.modelValue == "string" && e.value && console.warn(
|
|
193
114
|
"[VvAccordionGroup]: modelValue is a string but collapse is true."
|
|
194
115
|
);
|
|
195
116
|
});
|
|
196
|
-
const
|
|
117
|
+
const d = ref([]), c = computed({
|
|
197
118
|
get: () => {
|
|
198
|
-
var
|
|
199
|
-
return t.modelValue !== void 0 ?
|
|
119
|
+
var o;
|
|
120
|
+
return t.modelValue !== void 0 ? e.value ? t.modelValue : Array.isArray(t.modelValue) ? t.modelValue[0] : t.modelValue : e.value ? d.value : (o = d.value) == null ? void 0 : o[0];
|
|
200
121
|
},
|
|
201
|
-
set: (
|
|
122
|
+
set: (o) => {
|
|
202
123
|
if (t.modelValue !== void 0)
|
|
203
|
-
return (Array.isArray(t.modelValue) ||
|
|
204
|
-
|
|
124
|
+
return (Array.isArray(t.modelValue) || e.value) && !Array.isArray(o) && (o = [o]), m("update:modelValue", o);
|
|
125
|
+
d.value = Array.isArray(o) ? o : [o];
|
|
205
126
|
}
|
|
127
|
+
}), r = {
|
|
128
|
+
key: R,
|
|
129
|
+
modelValue: c,
|
|
130
|
+
disabled: l,
|
|
131
|
+
collapse: e,
|
|
132
|
+
modifiers: v
|
|
133
|
+
};
|
|
134
|
+
useProvideGroupState(r);
|
|
135
|
+
const { bemCssClasses: _ } = useBemModifiers("vv-accordion-group", {
|
|
136
|
+
modifiers: p,
|
|
137
|
+
disabled: l
|
|
206
138
|
});
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
modelValue: d,
|
|
210
|
-
disabled: u,
|
|
211
|
-
collapse: o,
|
|
212
|
-
modifiers: l
|
|
213
|
-
});
|
|
214
|
-
const { bemCssClasses: g } = I("vv-accordion-group", {
|
|
215
|
-
modifiers: c,
|
|
216
|
-
disabled: u
|
|
217
|
-
});
|
|
218
|
-
return (s, v) => (C(), $("div", {
|
|
219
|
-
class: E(a(g))
|
|
139
|
+
return (o, u) => (g(), S("div", {
|
|
140
|
+
class: O(a(_))
|
|
220
141
|
}, [
|
|
221
|
-
|
|
222
|
-
(
|
|
223
|
-
key:
|
|
142
|
+
A(o.$slots, "default", {}, () => [
|
|
143
|
+
(g(!0), S(M, null, E(a(f), (n) => (g(), I(q, N({
|
|
144
|
+
key: n.title
|
|
224
145
|
}, {
|
|
225
|
-
name:
|
|
226
|
-
title:
|
|
227
|
-
content:
|
|
146
|
+
name: n.name,
|
|
147
|
+
title: n.title,
|
|
148
|
+
content: n.content
|
|
228
149
|
}), {
|
|
229
|
-
header:
|
|
230
|
-
|
|
150
|
+
header: B((y) => [
|
|
151
|
+
A(o.$slots, `header::${n.name}`, C(G(y)))
|
|
231
152
|
]),
|
|
232
|
-
details:
|
|
233
|
-
|
|
153
|
+
details: B((y) => [
|
|
154
|
+
A(o.$slots, `details::${n.name}`, C(G(y)))
|
|
234
155
|
]),
|
|
235
156
|
_: 2
|
|
236
157
|
}, 1040))), 128))
|
|
@@ -239,5 +160,5 @@ const oe = ["id", "open"], re = ["aria-controls", "aria-expanded"], te = ["aria-
|
|
|
239
160
|
}
|
|
240
161
|
});
|
|
241
162
|
export {
|
|
242
|
-
|
|
163
|
+
Y as default
|
|
243
164
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,
|
|
1
|
+
(function(e,f){typeof exports=="object"&&typeof module<"u"?module.exports=f(require("vue"),require("nanoid")):typeof define=="function"&&define.amd?define(["vue","nanoid"],f):(e=typeof globalThis<"u"?globalThis:e||self,e.VvAccordionGroup=f(e.vue,e.nanoid))})(this,function(e,f){"use strict";const S="VV_ACCORDION_GROUP",C={name:String,title:String,content:String,modelValue:{type:Boolean,default:void 0},modifiers:[String,Array],disabled:Boolean},h=["update:modelValue"];function P(s,p){const{group:n,isInGroup:a,getGroupOrLocalRef:o}=useInjectedGroupState(S),{title:m,content:y}=toRefs(s),A=o("modelValue",s,p),d=o("disabled",s),u=o("collapse",s),t=o("modifiers",s);return{modelValue:A,disabled:d,isInGroup:a,group:n,collapse:u,modifiers:t,title:m,content:y}}const B=["id","open"],G=["aria-controls","aria-expanded"],k=["aria-hidden"],v={name:"VvAccordion"},R=e.defineComponent({...v,props:C,emits:h,setup(s,{emit:p}){const n=s,a=useAttrs(),o=n.name||(a==null?void 0:a.id)||f.nanoid(),{modifiers:m,title:y,content:A,disabled:d,collapse:u,modelValue:t,isInGroup:_}=P(n,p),r=ref(!1),c=computed({get:()=>_.value?u.value&&Array.isArray(t.value)?t.value.includes(o):t.value===o:t.value===void 0?r.value:t.value,set:i=>{if(_.value){if(u.value&&Array.isArray(t.value)){if(i){t.value.push(o);return}t.value=t.value.filter(g=>g!==o);return}t.value=i?o:null;return}if(t.value===void 0&&typeof i=="boolean"){r.value=i;return}t.value=i}}),{bemCssClasses:l}=useBemModifiers("vv-accordion",{modifiers:m,disabled:d}),V=useToggle(c);return(i,g)=>(e.openBlock(),e.createElementBlock("details",{id:e.unref(o),class:e.normalizeClass(e.unref(l)),open:e.unref(c),onClick:g[0]||(g[0]=e.withModifiers(M=>e.unref(V)(),["prevent"]))},[e.createElementVNode("summary",{"aria-controls":e.unref(o),"aria-expanded":e.unref(c),class:"vv-collapse__summary"},[e.renderSlot(i.$slots,"summary",e.normalizeProps(e.guardReactiveProps({open:e.unref(c)})),()=>[e.createTextVNode(e.toDisplayString(e.unref(y)),1)])],8,G),e.createElementVNode("div",{"aria-hidden":!e.unref(c),class:"vv-collapse__content"},[e.renderSlot(i.$slots,"details",e.normalizeProps(e.guardReactiveProps({open:e.unref(c)})),()=>[e.createTextVNode(e.toDisplayString(e.unref(A)),1)])],8,k)],10,B))}}),$={modelValue:[String,Array],items:{type:Array,default:()=>[]},collapse:Boolean,modifiers:[String,Array],itemModifiers:{type:[String,Array],default:""},disabled:Boolean},b=["update:modelValue"],E={name:"VvAccordionGroup"};return e.defineComponent({...E,props:$,emits:b,setup(s,{emit:p}){const n=s,{disabled:a,collapse:o,modifiers:m,itemModifiers:y,items:A}=toRefs(n);watchEffect(()=>{typeof n.modelValue=="string"&&o.value&&console.warn("[VvAccordionGroup]: modelValue is a string but collapse is true.")});const d=ref([]),u=computed({get:()=>{var r;return n.modelValue!==void 0?o.value?n.modelValue:Array.isArray(n.modelValue)?n.modelValue[0]:n.modelValue:o.value?d.value:(r=d.value)==null?void 0:r[0]},set:r=>{if(n.modelValue!==void 0)return(Array.isArray(n.modelValue)||o.value)&&!Array.isArray(r)&&(r=[r]),p("update:modelValue",r);d.value=Array.isArray(r)?r:[r]}}),t={key:S,modelValue:u,disabled:a,collapse:o,modifiers:y};useProvideGroupState(t);const{bemCssClasses:_}=useBemModifiers("vv-accordion-group",{modifiers:m,disabled:a});return(r,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(_))},[e.renderSlot(r.$slots,"default",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(A),l=>(e.openBlock(),e.createBlock(R,e.mergeProps({key:l.title},{name:l.name,title:l.title,content:l.content}),{header:e.withCtx(V=>[e.renderSlot(r.$slots,`header::${l.name}`,e.normalizeProps(e.guardReactiveProps(V)))]),details:e.withCtx(V=>[e.renderSlot(r.$slots,`details::${l.name}`,e.normalizeProps(e.guardReactiveProps(V)))]),_:2},1040))),128))])],2))}})});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
2
|
-
modelValue: (
|
|
2
|
+
modelValue: (StringConstructor | ArrayConstructor)[];
|
|
3
3
|
items: {
|
|
4
4
|
type: {
|
|
5
5
|
(arrayLength: number): import("@/components/VvAccordionGroup/").VvAccordionGroupItem[];
|
|
@@ -18,7 +18,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
18
18
|
default: () => never[];
|
|
19
19
|
};
|
|
20
20
|
collapse: BooleanConstructor;
|
|
21
|
-
modifiers: (
|
|
21
|
+
modifiers: (StringConstructor | ArrayConstructor)[];
|
|
22
22
|
itemModifiers: {
|
|
23
23
|
type: (StringConstructor | {
|
|
24
24
|
(arrayLength: number): string[];
|
|
@@ -38,7 +38,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
38
38
|
};
|
|
39
39
|
disabled: BooleanConstructor;
|
|
40
40
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
41
|
-
modelValue: (
|
|
41
|
+
modelValue: (StringConstructor | ArrayConstructor)[];
|
|
42
42
|
items: {
|
|
43
43
|
type: {
|
|
44
44
|
(arrayLength: number): import("@/components/VvAccordionGroup/").VvAccordionGroupItem[];
|
|
@@ -57,7 +57,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
57
57
|
default: () => never[];
|
|
58
58
|
};
|
|
59
59
|
collapse: BooleanConstructor;
|
|
60
|
-
modifiers: (
|
|
60
|
+
modifiers: (StringConstructor | ArrayConstructor)[];
|
|
61
61
|
itemModifiers: {
|
|
62
62
|
type: (StringConstructor | {
|
|
63
63
|
(arrayLength: number): string[];
|
|
@@ -9,7 +9,7 @@ export declare const VvAccordionGroupProps: {
|
|
|
9
9
|
/**
|
|
10
10
|
* VModel
|
|
11
11
|
*/
|
|
12
|
-
modelValue: (
|
|
12
|
+
modelValue: (StringConstructor | ArrayConstructor)[];
|
|
13
13
|
/**
|
|
14
14
|
* Accordion items
|
|
15
15
|
* @type VvAccordionGroupItem
|
|
@@ -38,7 +38,7 @@ export declare const VvAccordionGroupProps: {
|
|
|
38
38
|
/**
|
|
39
39
|
* String or String[] of css classes (modifiers) that will be concatenated to prefix 'vv-accordion-group--'
|
|
40
40
|
*/
|
|
41
|
-
modifiers: (
|
|
41
|
+
modifiers: (StringConstructor | ArrayConstructor)[];
|
|
42
42
|
/**
|
|
43
43
|
* String or String[] of css classes (modifiers) that will be concatenated to prefix 'vv-accordion--'
|
|
44
44
|
*/
|
|
@@ -1,62 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
var s, r;
|
|
4
|
-
if (e)
|
|
5
|
-
return (r = (s = e.match(
|
|
6
|
-
/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g
|
|
7
|
-
)) == null ? void 0 : s.join("-")) == null ? void 0 : r.toLowerCase();
|
|
8
|
-
}
|
|
9
|
-
function $(e, s) {
|
|
10
|
-
const r = { [`${e}`]: !0 };
|
|
11
|
-
return {
|
|
12
|
-
bemCssClasses: f(() => Object.keys(s).reduce((o, a) => {
|
|
13
|
-
const t = u(s[a]) || !1;
|
|
14
|
-
if (!t)
|
|
15
|
-
return o;
|
|
16
|
-
if (a === "modifiers") {
|
|
17
|
-
const c = Array.isArray(t) ? t : t.split(" ");
|
|
18
|
-
return {
|
|
19
|
-
...o,
|
|
20
|
-
...c.reduce(
|
|
21
|
-
(l, d) => ({
|
|
22
|
-
...l,
|
|
23
|
-
[`${e}--${i(d)}`]: !0
|
|
24
|
-
}),
|
|
25
|
-
{}
|
|
26
|
-
)
|
|
27
|
-
};
|
|
28
|
-
} else
|
|
29
|
-
return {
|
|
30
|
-
...o,
|
|
31
|
-
[`${e}--${i(a)}`]: t
|
|
32
|
-
};
|
|
33
|
-
}, r) || {})
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
const v = {
|
|
1
|
+
import { defineComponent as t, openBlock as a, createElementBlock as n, normalizeClass as i, unref as l, renderSlot as d, createTextVNode as c, toDisplayString as m } from "vue";
|
|
2
|
+
const p = {
|
|
37
3
|
modifiers: [String, Array]
|
|
38
|
-
},
|
|
39
|
-
...
|
|
4
|
+
}, f = {
|
|
5
|
+
...p,
|
|
40
6
|
value: [String, Number]
|
|
41
|
-
},
|
|
7
|
+
}, u = {
|
|
42
8
|
name: "VvBadge"
|
|
43
|
-
},
|
|
44
|
-
...
|
|
45
|
-
props:
|
|
46
|
-
setup(
|
|
47
|
-
const
|
|
48
|
-
modifiers:
|
|
9
|
+
}, _ = /* @__PURE__ */ t({
|
|
10
|
+
...u,
|
|
11
|
+
props: f,
|
|
12
|
+
setup(s) {
|
|
13
|
+
const o = s, { bemCssClasses: r } = useBemModifiers("vv-badge", {
|
|
14
|
+
modifiers: o.modifiers
|
|
49
15
|
});
|
|
50
|
-
return (
|
|
51
|
-
class:
|
|
16
|
+
return (e, g) => (a(), n("span", {
|
|
17
|
+
class: i(l(r)),
|
|
52
18
|
role: "status"
|
|
53
19
|
}, [
|
|
54
|
-
|
|
55
|
-
|
|
20
|
+
d(e.$slots, "default", {}, () => [
|
|
21
|
+
c(m(e.value), 1)
|
|
56
22
|
])
|
|
57
23
|
], 2));
|
|
58
24
|
}
|
|
59
25
|
});
|
|
60
26
|
export {
|
|
61
|
-
|
|
27
|
+
_ as default
|
|
62
28
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,
|
|
1
|
+
(function(e,s){typeof exports=="object"&&typeof module<"u"?module.exports=s(require("vue")):typeof define=="function"&&define.amd?define(["vue"],s):(e=typeof globalThis<"u"?globalThis:e||self,e.VvBadge=s(e.vue))})(this,function(e){"use strict";const o={...{modifiers:[String,Array]},value:[String,Number]},t={name:"VvBadge"};return e.defineComponent({...t,props:o,setup(i){const r=i,{bemCssClasses:d}=useBemModifiers("vv-badge",{modifiers:r.modifiers});return(n,a)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(e.unref(d)),role:"status"},[e.renderSlot(n.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(n.value),1)])],2))}})});
|
|
@@ -1,79 +1,72 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
if (s)
|
|
5
|
-
return (a = (t = s.match(
|
|
6
|
-
/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g
|
|
7
|
-
)) == null ? void 0 : t.join("-")) == null ? void 0 : a.toLowerCase();
|
|
8
|
-
}
|
|
9
|
-
function V(s, t) {
|
|
10
|
-
const a = { [`${s}`]: !0 };
|
|
1
|
+
import { defineComponent as f, openBlock as m, createElementBlock as c, normalizeClass as p, unref as v, createElementVNode as d, Fragment as _, renderList as C, createBlock as g, resolveDynamicComponent as h, mergeProps as $, withCtx as k, renderSlot as y, normalizeProps as B, guardReactiveProps as N, createTextVNode as P, toDisplayString as A } from "vue";
|
|
2
|
+
function V(t, o) {
|
|
3
|
+
const u = { [`${t}`]: !0 };
|
|
11
4
|
return {
|
|
12
|
-
bemCssClasses:
|
|
13
|
-
const e =
|
|
5
|
+
bemCssClasses: computed(() => Object.keys(o).reduce((a, r) => {
|
|
6
|
+
const e = unref(o[r]) || !1;
|
|
14
7
|
if (!e)
|
|
15
|
-
return
|
|
8
|
+
return a;
|
|
16
9
|
if (r === "modifiers") {
|
|
17
|
-
const
|
|
10
|
+
const n = Array.isArray(e) ? e : e.split(" ");
|
|
18
11
|
return {
|
|
19
|
-
...
|
|
20
|
-
...
|
|
21
|
-
(l,
|
|
12
|
+
...a,
|
|
13
|
+
...n.reduce(
|
|
14
|
+
(l, i) => ({
|
|
22
15
|
...l,
|
|
23
|
-
[`${
|
|
16
|
+
[`${t}--${kebabCase(i)}`]: !0
|
|
24
17
|
}),
|
|
25
18
|
{}
|
|
26
19
|
)
|
|
27
20
|
};
|
|
28
21
|
} else
|
|
29
22
|
return {
|
|
30
|
-
...
|
|
31
|
-
[`${
|
|
23
|
+
...a,
|
|
24
|
+
[`${t}--${kebabCase(r)}`]: e
|
|
32
25
|
};
|
|
33
|
-
},
|
|
26
|
+
}, u) || {})
|
|
34
27
|
};
|
|
35
28
|
}
|
|
36
|
-
const
|
|
29
|
+
const E = {
|
|
37
30
|
modifiers: [String, Array]
|
|
38
|
-
},
|
|
39
|
-
...
|
|
31
|
+
}, L = {
|
|
32
|
+
...E,
|
|
40
33
|
routes: Array
|
|
41
|
-
}, M = { class: "vv-breadcrumb__list" }, S = ["content"],
|
|
34
|
+
}, M = { class: "vv-breadcrumb__list" }, S = ["content"], z = {
|
|
42
35
|
name: "VvBreadcrumb"
|
|
43
|
-
},
|
|
44
|
-
...
|
|
45
|
-
props:
|
|
46
|
-
setup(
|
|
47
|
-
const
|
|
48
|
-
modifiers:
|
|
36
|
+
}, j = /* @__PURE__ */ f({
|
|
37
|
+
...z,
|
|
38
|
+
props: L,
|
|
39
|
+
setup(t) {
|
|
40
|
+
const o = t, { bemCssClasses: u } = V("vv-breadcrumb", {
|
|
41
|
+
modifiers: o.modifiers
|
|
49
42
|
});
|
|
50
|
-
return (
|
|
51
|
-
class: p(
|
|
43
|
+
return (s, a) => (m(), c("nav", {
|
|
44
|
+
class: p(v(u)),
|
|
52
45
|
"aria-label": "breadcrumbs"
|
|
53
46
|
}, [
|
|
54
47
|
d("ol", M, [
|
|
55
|
-
(
|
|
56
|
-
var
|
|
57
|
-
return
|
|
48
|
+
(m(!0), c(_, null, C(s.routes, (r, e) => {
|
|
49
|
+
var n, l, i, b;
|
|
50
|
+
return m(), c("li", {
|
|
58
51
|
key: `${r.label}-${e}`,
|
|
59
52
|
class: p({
|
|
60
|
-
"vv-breadcrumb__item": e < Number((
|
|
61
|
-
"vv-breadcrumb__item-active": e === Number((l =
|
|
53
|
+
"vv-breadcrumb__item": e < Number((n = s.routes) == null ? void 0 : n.length) - 1,
|
|
54
|
+
"vv-breadcrumb__item-active": e === Number((l = s.routes) == null ? void 0 : l.length) - 1
|
|
62
55
|
}),
|
|
63
56
|
itemprop: "itemListElement",
|
|
64
57
|
itemtype: "https://schema.org/ListItem",
|
|
65
58
|
itemscope: ""
|
|
66
59
|
}, [
|
|
67
|
-
(
|
|
60
|
+
(m(), g(h(r.to ? "router-link" : r.href ? "a" : "span"), $(r, {
|
|
68
61
|
class: {
|
|
69
|
-
"vv-breadcrumb__link": e < Number((
|
|
62
|
+
"vv-breadcrumb__link": e < Number((i = s.routes) == null ? void 0 : i.length) - 1
|
|
70
63
|
},
|
|
71
|
-
"aria-current": e === Number((b =
|
|
64
|
+
"aria-current": e === Number((b = s.routes) == null ? void 0 : b.length) - 1 ? "page" : void 0,
|
|
72
65
|
itemprop: "item"
|
|
73
66
|
}), {
|
|
74
|
-
default:
|
|
75
|
-
|
|
76
|
-
|
|
67
|
+
default: k(() => [
|
|
68
|
+
y(s.$slots, "label", B(N({ route: r, index: e })), () => [
|
|
69
|
+
P(A(r.label), 1)
|
|
77
70
|
])
|
|
78
71
|
]),
|
|
79
72
|
_: 2
|
|
@@ -89,5 +82,5 @@ const Z = {
|
|
|
89
82
|
}
|
|
90
83
|
});
|
|
91
84
|
export {
|
|
92
|
-
|
|
85
|
+
j as default
|
|
93
86
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,
|
|
1
|
+
(function(e,o){typeof exports=="object"&&typeof module<"u"?module.exports=o(require("vue")):typeof define=="function"&&define.amd?define(["vue"],o):(e=typeof globalThis<"u"?globalThis:e||self,e.VvBreadcrumb=o(e.vue))})(this,function(e){"use strict";function o(n,a){const d={[`${n}`]:!0};return{bemCssClasses:computed(()=>Object.keys(a).reduce((i,s)=>{const r=unref(a[s])||!1;if(!r)return i;if(s==="modifiers"){const l=Array.isArray(r)?r:r.split(" ");return{...i,...l.reduce((c,m)=>({...c,[`${n}--${kebabCase(m)}`]:!0}),{})}}else return{...i,[`${n}--${kebabCase(s)}`]:r}},d)||{})}}const u={...{modifiers:[String,Array]},routes:Array},b={class:"vv-breadcrumb__list"},f=["content"],_={name:"VvBreadcrumb"};return e.defineComponent({..._,props:u,setup(n){const a=n,{bemCssClasses:d}=o("vv-breadcrumb",{modifiers:a.modifiers});return(t,i)=>(e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass(e.unref(d)),"aria-label":"breadcrumbs"},[e.createElementVNode("ol",b,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.routes,(s,r)=>{var l,c,m,p;return e.openBlock(),e.createElementBlock("li",{key:`${s.label}-${r}`,class:e.normalizeClass({"vv-breadcrumb__item":r<Number((l=t.routes)==null?void 0:l.length)-1,"vv-breadcrumb__item-active":r===Number((c=t.routes)==null?void 0:c.length)-1}),itemprop:"itemListElement",itemtype:"https://schema.org/ListItem",itemscope:""},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s.to?"router-link":s.href?"a":"span"),e.mergeProps(s,{class:{"vv-breadcrumb__link":r<Number((m=t.routes)==null?void 0:m.length)-1},"aria-current":r===Number((p=t.routes)==null?void 0:p.length)-1?"page":void 0,itemprop:"item"}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"label",e.normalizeProps(e.guardReactiveProps({route:s,index:r})),()=>[e.createTextVNode(e.toDisplayString(s.label),1)])]),_:2},1040,["class","aria-current"])),e.createElementVNode("meta",{itemprop:"position",content:`${r+1}`},null,8,f)],2)}),128))])],2))}})});
|