@volverjs/ui-vue 0.0.1-beta.11 → 0.0.1-beta.12
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/dist/components/VvBadge/VvBadge.d.ts +1 -1
- package/dist/components/VvBadge/VvBadge.es.js +165 -12
- package/dist/components/VvBadge/VvBadge.umd.js +1 -1
- package/dist/components/VvBadge/VvBadge.vue.d.ts +4 -4
- package/dist/components/VvBreadcrumb/VvBreadcrumb.d.ts +1 -1
- package/dist/components/VvBreadcrumb/VvBreadcrumb.vue.d.ts +4 -4
- package/dist/components/VvButton/VvButton.d.ts +2 -33
- package/dist/components/VvButton/VvButton.es.js +183 -198
- package/dist/components/VvButton/VvButton.umd.js +1 -1
- package/dist/components/VvButton/VvButton.vue.d.ts +9 -44
- package/dist/components/VvButton/useButtonGroupProps.d.ts +1 -6
- package/dist/components/VvButtonGroup/VvButtonGroup.d.ts +2 -26
- package/dist/components/VvButtonGroup/VvButtonGroup.es.js +68 -78
- package/dist/components/VvButtonGroup/VvButtonGroup.umd.js +1 -1
- package/dist/components/VvButtonGroup/VvButtonGroup.vue.d.ts +9 -69
- package/dist/components/VvDropdown/VvDropdown.d.ts +1 -1
- package/dist/components/VvDropdown/VvDropdown.vue.d.ts +4 -4
- package/dist/components/VvInputText/VvInputText.d.ts +1 -1
- package/dist/components/VvInputText/VvInputText.vue.d.ts +4 -4
- package/dist/components/VvProgress/VvProgress.d.ts +1 -1
- package/dist/components/VvProgress/VvProgress.vue.d.ts +4 -4
- package/dist/components/VvSelect/VvSelect.d.ts +5 -1
- package/dist/components/VvSelect/VvSelect.es.js +395 -207
- package/dist/components/VvSelect/VvSelect.umd.js +2 -2
- package/dist/components/VvSelect/VvSelect.vue.d.ts +12 -5
- package/dist/components/VvTextarea/VvTextarea.d.ts +1 -1
- package/dist/components/VvTextarea/VvTextarea.vue.d.ts +4 -4
- package/dist/components/index.es.js +579 -610
- package/dist/components/index.umd.js +2 -2
- package/dist/composables/group/types/IButtonGroupState.d.ts +4 -0
- package/dist/icons.es.js +3 -3
- package/dist/icons.umd.js +1 -1
- package/dist/index.es.js +553 -585
- package/dist/index.umd.js +2 -2
- package/dist/props/index.d.ts +2 -1
- package/dist/stories/RadioGroup/RadioOption.test.d.ts +4 -0
- package/dist/stories/RadioGroup/RadioProperty.test.d.ts +1 -1
- package/dist/stories/RadioGroup/RadioSlots.test.d.ts +6 -0
- package/package.json +2 -2
- 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/VvBadge/VvBadge.ts +4 -2
- package/src/components/VvBadge/VvBadge.vue +8 -3
- package/src/components/VvButton/VvButton.ts +4 -34
- package/src/components/VvButton/VvButton.vue +3 -12
- package/src/components/VvButton/useButtonGroupProps.ts +3 -11
- package/src/components/VvButtonGroup/VvButtonGroup.ts +4 -17
- package/src/components/VvButtonGroup/VvButtonGroup.vue +5 -16
- package/src/components/VvSelect/VvSelect.ts +5 -1
- package/src/components/VvSelect/VvSelect.vue +7 -1
- package/src/composables/group/types/IButtonGroupState.ts +4 -0
- package/src/props/index.ts +3 -1
- package/src/stories/Badge/BadgeColor.stories.mdx +4 -4
- package/src/stories/Badge/BadgeModifiers.stories.mdx +65 -0
- package/src/stories/Button/ButtonActive.stories.mdx +27 -0
- package/src/stories/Button/ButtonDisabled.stories.mdx +28 -0
- package/src/stories/Button/ButtonIconPosition.stories.mdx +0 -1
- package/src/stories/Button/ButtonModifiers.stories.mdx +103 -46
- package/src/stories/Button/ButtonSelected.stories.mdx +30 -0
- package/src/stories/ButtonGroup/ButtonGroupAction.stories.mdx +2 -2
- package/src/stories/ButtonGroup/ButtonGroupActionQuiet.stories.mdx +2 -2
- package/src/stories/ButtonGroup/ButtonGroupBlock.stories.mdx +1 -1
- package/src/stories/ButtonGroup/ButtonGroupRounded.stories.mdx +1 -1
- package/src/stories/RadioGroup/RadioGroupHintLabel.stories.mdx +6 -6
- package/src/stories/RadioGroup/RadioGroupLabel.stories.mdx +7 -2
- package/src/stories/RadioGroup/RadioGroupOptionLabel.stories.mdx +7 -19
- package/src/stories/RadioGroup/RadioGroupOptionValue.stories.mdx +7 -19
- package/src/stories/RadioGroup/RadioGroupOptions.stories.mdx +3 -17
- package/src/stories/RadioGroup/RadioGroupSlots.stories.mdx +10 -9
- package/src/stories/RadioGroup/RadioOption.test.ts +45 -0
- package/src/stories/RadioGroup/RadioProperty.test.ts +4 -4
- package/src/stories/RadioGroup/RadioSlots.test.ts +29 -0
- package/src/stories/Select/SelectNative.stories.mdx +45 -0
- package/src/stories/stories.scss +5 -27
- package/src/stories/Button/ButtonVariant.stories.mdx +0 -205
- package/src/stories/Button/test.js +0 -41
- package/src/stories/Radio/RadioTest.js +0 -90
- package/src/stories/RadioGroup/RadioOptionsTest.js +0 -78
- package/src/stories/RadioGroup/RadioPropertyTest.js +0 -131
- package/src/stories/RadioGroup/RadioSlotsTest.js +0 -20
package/dist/index.es.js
CHANGED
|
@@ -1,44 +1,62 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { addCollection as
|
|
5
|
-
import { computed as
|
|
1
|
+
var be = Object.defineProperty;
|
|
2
|
+
var _e = (e, n, t) => n in e ? be(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
|
|
3
|
+
var K = (e, n, t) => (_e(e, typeof n != "symbol" ? n + "" : n, t), t);
|
|
4
|
+
import { addCollection as Ve, addIcon as ae, iconExists as Y, Icon as Ce } from "@iconify/vue";
|
|
5
|
+
import { computed as y, unref as p, defineComponent as P, ref as H, toRefs as S, inject as le, openBlock as g, createBlock as D, mergeProps as E, createCommentVNode as O, toRef as ke, useAttrs as W, useSlots as ie, resolveDynamicComponent as ue, withCtx as ee, renderSlot as C, createElementBlock as _, toDisplayString as B, Fragment as U, createTextVNode as j, normalizeClass as N, isRef as $e, provide as Se, createElementVNode as $, renderList as J, watch as Ae, h as Oe, createVNode as ce, Transition as Be, toHandlers as we, withDirectives as Pe, withModifiers as Ge, vShow as Ee } from "vue";
|
|
6
6
|
import { v4 as te } from "uuid";
|
|
7
|
-
import { useVModel as
|
|
8
|
-
const
|
|
9
|
-
class
|
|
7
|
+
import { useVModel as X, useFocus as Ie, toReactive as Re, onClickOutside as De } from "@vueuse/core";
|
|
8
|
+
const ne = "ds";
|
|
9
|
+
class je {
|
|
10
10
|
constructor({
|
|
11
|
-
fetchWithCredentials:
|
|
11
|
+
fetchWithCredentials: n = !1,
|
|
12
12
|
fetchOptions: t = {},
|
|
13
13
|
iconsCollections: r = []
|
|
14
14
|
} = {}) {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
this.addCollection(
|
|
15
|
+
K(this, "fetchOptions");
|
|
16
|
+
K(this, "iconsCollections");
|
|
17
|
+
K(this, "provider");
|
|
18
|
+
n && (t = { ...t, credentials: "include" }), this.provider = ne, this.fetchOptions = t, this.iconsCollections = r, this.iconsCollections.forEach((o) => {
|
|
19
|
+
this.addCollection(o, this.provider);
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
|
-
addCollection(
|
|
23
|
-
return
|
|
22
|
+
addCollection(n, t) {
|
|
23
|
+
return Ve(n, t);
|
|
24
24
|
}
|
|
25
|
-
addIcon(
|
|
26
|
-
return
|
|
25
|
+
addIcon(n, t) {
|
|
26
|
+
return ae(n, t);
|
|
27
27
|
}
|
|
28
|
-
fetchIcon(
|
|
29
|
-
return new Promise((r,
|
|
30
|
-
fetch(
|
|
28
|
+
fetchIcon(n, t) {
|
|
29
|
+
return new Promise((r, o) => {
|
|
30
|
+
fetch(n, { ...this.fetchOptions, ...t }).catch((a) => o(a)).then((a) => a == null ? void 0 : a.text()).then((a) => r(a));
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
const jt = {
|
|
35
|
-
install(e,
|
|
36
|
-
const t = new
|
|
37
|
-
e.config.globalProperties.$ds = t, e.provide(
|
|
35
|
+
install(e, n) {
|
|
36
|
+
const t = new je(n);
|
|
37
|
+
e.config.globalProperties.$ds = t, e.provide(ne, t);
|
|
38
38
|
}
|
|
39
|
+
}, de = {
|
|
40
|
+
valid: Boolean,
|
|
41
|
+
validLabel: [String, Array]
|
|
42
|
+
}, ve = {
|
|
43
|
+
error: Boolean,
|
|
44
|
+
errorLabel: [String, Array]
|
|
45
|
+
}, oe = {
|
|
46
|
+
disabled: Boolean
|
|
47
|
+
}, z = {
|
|
48
|
+
modifiers: [String, Array]
|
|
49
|
+
}, Ne = {
|
|
50
|
+
hintLabel: { type: String, default: "" }
|
|
51
|
+
}, Fe = {
|
|
52
|
+
options: { type: Array, default: () => [] },
|
|
53
|
+
optionLabel: { type: [String, Function], default: () => "label" },
|
|
54
|
+
optionValue: { type: [String, Function], default: () => "value" }
|
|
39
55
|
};
|
|
40
|
-
var L = /* @__PURE__ */ ((e) => (e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e))(L || {}), q = /* @__PURE__ */ ((e) => (e.nuxtLink = "nuxt-link", e.routerLink = "router-link", e.a = "a", e.button = "button", e))(q || {}),
|
|
41
|
-
const
|
|
56
|
+
var L = /* @__PURE__ */ ((e) => (e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e))(L || {}), q = /* @__PURE__ */ ((e) => (e.nuxtLink = "nuxt-link", e.routerLink = "router-link", e.a = "a", e.button = "button", e))(q || {}), fe = /* @__PURE__ */ ((e) => (e._blank = "_blank", e._self = "_self", e._parent = "_parent", e._top = "_top", e))(fe || {});
|
|
57
|
+
const qe = {
|
|
58
|
+
...z,
|
|
59
|
+
...oe,
|
|
42
60
|
icon: String,
|
|
43
61
|
iconPosition: {
|
|
44
62
|
type: String,
|
|
@@ -58,71 +76,64 @@ const je = {
|
|
|
58
76
|
href: String,
|
|
59
77
|
target: {
|
|
60
78
|
type: String,
|
|
61
|
-
validator: (e) => e in
|
|
79
|
+
validator: (e) => e in fe
|
|
62
80
|
},
|
|
63
|
-
block: Boolean,
|
|
64
81
|
active: Boolean,
|
|
65
|
-
|
|
66
|
-
disabled: Boolean,
|
|
67
|
-
fullBleed: Boolean,
|
|
68
|
-
action: Boolean,
|
|
69
|
-
actionQuiet: Boolean,
|
|
70
|
-
selected: Boolean,
|
|
71
|
-
modifiers: [Array, String]
|
|
82
|
+
selected: Boolean
|
|
72
83
|
}, b = {
|
|
73
|
-
equals(e,
|
|
74
|
-
return t ? this.resolveFieldData(e, t) === this.resolveFieldData(
|
|
84
|
+
equals(e, n, t) {
|
|
85
|
+
return t ? this.resolveFieldData(e, t) === this.resolveFieldData(n, t) : this.deepEquals(e, n);
|
|
75
86
|
},
|
|
76
|
-
deepEquals(e,
|
|
77
|
-
if (e ===
|
|
87
|
+
deepEquals(e, n) {
|
|
88
|
+
if (e === n)
|
|
78
89
|
return !0;
|
|
79
|
-
if (e &&
|
|
80
|
-
const t = Array.isArray(e), r = Array.isArray(
|
|
81
|
-
let
|
|
90
|
+
if (e && n && typeof e == "object" && typeof n == "object") {
|
|
91
|
+
const t = Array.isArray(e), r = Array.isArray(n);
|
|
92
|
+
let o, a, l;
|
|
82
93
|
if (t && r) {
|
|
83
|
-
if (
|
|
94
|
+
if (a = e.length, a != n.length)
|
|
84
95
|
return !1;
|
|
85
|
-
for (
|
|
86
|
-
if (!this.deepEquals(e[
|
|
96
|
+
for (o = a; o-- !== 0; )
|
|
97
|
+
if (!this.deepEquals(e[o], n[o]))
|
|
87
98
|
return !1;
|
|
88
99
|
return !0;
|
|
89
100
|
}
|
|
90
101
|
if (t != r)
|
|
91
102
|
return !1;
|
|
92
|
-
const
|
|
93
|
-
if (
|
|
103
|
+
const u = e instanceof Date, i = n instanceof Date;
|
|
104
|
+
if (u != i)
|
|
94
105
|
return !1;
|
|
95
|
-
if (
|
|
96
|
-
return e.getTime() ==
|
|
97
|
-
const
|
|
98
|
-
if (
|
|
106
|
+
if (u && i)
|
|
107
|
+
return e.getTime() == n.getTime();
|
|
108
|
+
const d = e instanceof RegExp, c = n instanceof RegExp;
|
|
109
|
+
if (d != c)
|
|
99
110
|
return !1;
|
|
100
|
-
if (
|
|
101
|
-
return e.toString() ==
|
|
111
|
+
if (d && c)
|
|
112
|
+
return e.toString() == n.toString();
|
|
102
113
|
const s = Object.keys(e);
|
|
103
|
-
if (
|
|
114
|
+
if (a = s.length, a !== Object.keys(n).length)
|
|
104
115
|
return !1;
|
|
105
|
-
for (
|
|
106
|
-
if (!Object.prototype.hasOwnProperty.call(
|
|
116
|
+
for (o = a; o-- !== 0; )
|
|
117
|
+
if (!Object.prototype.hasOwnProperty.call(n, s[o]))
|
|
107
118
|
return !1;
|
|
108
|
-
for (
|
|
109
|
-
if (
|
|
119
|
+
for (o = a; o-- !== 0; )
|
|
120
|
+
if (l = s[o], !this.deepEquals(e[l], n[l]))
|
|
110
121
|
return !1;
|
|
111
122
|
return !0;
|
|
112
123
|
}
|
|
113
|
-
return e !== e &&
|
|
124
|
+
return e !== e && n !== n;
|
|
114
125
|
},
|
|
115
|
-
resolveFieldData(e,
|
|
116
|
-
if (e && Object.keys(e).length &&
|
|
117
|
-
if (
|
|
118
|
-
return e[
|
|
126
|
+
resolveFieldData(e, n) {
|
|
127
|
+
if (e && Object.keys(e).length && n) {
|
|
128
|
+
if (n.indexOf(".") === -1)
|
|
129
|
+
return e[n];
|
|
119
130
|
{
|
|
120
|
-
const t =
|
|
131
|
+
const t = n.split(".");
|
|
121
132
|
let r = e;
|
|
122
|
-
for (let
|
|
133
|
+
for (let o = 0, a = t.length; o < a; ++o) {
|
|
123
134
|
if (e == null)
|
|
124
135
|
return null;
|
|
125
|
-
r = r[t[
|
|
136
|
+
r = r[t[o]];
|
|
126
137
|
}
|
|
127
138
|
return r;
|
|
128
139
|
}
|
|
@@ -132,20 +143,20 @@ const je = {
|
|
|
132
143
|
isFunction(e) {
|
|
133
144
|
return !!(e && e.constructor && e.call && e.apply);
|
|
134
145
|
},
|
|
135
|
-
findIndexInList(e,
|
|
146
|
+
findIndexInList(e, n) {
|
|
136
147
|
let t = -1;
|
|
137
|
-
if (
|
|
138
|
-
for (let r = 0; r <
|
|
139
|
-
if (this.equals(
|
|
148
|
+
if (n) {
|
|
149
|
+
for (let r = 0; r < n.length; r++)
|
|
150
|
+
if (this.equals(n[r], e)) {
|
|
140
151
|
t = r;
|
|
141
152
|
break;
|
|
142
153
|
}
|
|
143
154
|
}
|
|
144
155
|
return t;
|
|
145
156
|
},
|
|
146
|
-
contains(e,
|
|
147
|
-
if (e != null &&
|
|
148
|
-
for (const t of
|
|
157
|
+
contains(e, n) {
|
|
158
|
+
if (e != null && n && n.length) {
|
|
159
|
+
for (const t of n)
|
|
149
160
|
if (this.equals(e, t))
|
|
150
161
|
return !0;
|
|
151
162
|
}
|
|
@@ -157,38 +168,38 @@ const je = {
|
|
|
157
168
|
isNotEmpty(e) {
|
|
158
169
|
return !this.isEmpty(e);
|
|
159
170
|
},
|
|
160
|
-
pickBy(e,
|
|
171
|
+
pickBy(e, n) {
|
|
161
172
|
return Object.fromEntries(
|
|
162
|
-
Object.entries(e).filter(([t]) =>
|
|
173
|
+
Object.entries(e).filter(([t]) => n(t))
|
|
163
174
|
);
|
|
164
175
|
},
|
|
165
|
-
removeFromList(e,
|
|
166
|
-
const t = this.findIndexInList(e,
|
|
167
|
-
return t > -1 ?
|
|
176
|
+
removeFromList(e, n) {
|
|
177
|
+
const t = this.findIndexInList(e, n);
|
|
178
|
+
return t > -1 ? n.filter((r, o) => o !== t) : n;
|
|
168
179
|
},
|
|
169
180
|
isString(e) {
|
|
170
181
|
return typeof e == "string" || e instanceof String;
|
|
171
182
|
},
|
|
172
183
|
propsToObject(e) {
|
|
173
|
-
return Object.keys(e).reduce((
|
|
174
|
-
var r,
|
|
175
|
-
return this.isFunction(e[t]) ?
|
|
184
|
+
return Object.keys(e).reduce((n, t) => {
|
|
185
|
+
var r, o, a, l, u;
|
|
186
|
+
return this.isFunction(e[t]) ? n[t] = e[t]() : Array.isArray(e[t]) ? n[t] = e[t][0]() : (r = e[t]) != null && r.type && (Array.isArray(e[t].type) ? n[t] = ((o = e[t]) == null ? void 0 : o.default) || ((a = e[t]) == null ? void 0 : a.type[0]()) : n[t] = ((l = e[t]) == null ? void 0 : l.default) || ((u = e[t]) == null ? void 0 : u.type())), n;
|
|
176
187
|
}, {});
|
|
177
188
|
},
|
|
178
|
-
filterArray(e,
|
|
179
|
-
return e.filter((r) =>
|
|
189
|
+
filterArray(e, n, t) {
|
|
190
|
+
return e.filter((r) => n.some((o) => typeof o == "string" ? r[t] == o : this.equals(
|
|
180
191
|
r[t],
|
|
181
|
-
|
|
192
|
+
o[t]
|
|
182
193
|
)));
|
|
183
194
|
},
|
|
184
195
|
kebabCase(e) {
|
|
185
|
-
var
|
|
196
|
+
var n, t;
|
|
186
197
|
if (e)
|
|
187
|
-
return (t = (
|
|
198
|
+
return (t = (n = e.match(
|
|
188
199
|
/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g
|
|
189
|
-
)) == null ? void 0 :
|
|
200
|
+
)) == null ? void 0 : n.join("-")) == null ? void 0 : t.toLowerCase();
|
|
190
201
|
}
|
|
191
|
-
},
|
|
202
|
+
}, Le = {
|
|
192
203
|
color: String,
|
|
193
204
|
width: {
|
|
194
205
|
type: [String, Number]
|
|
@@ -220,22 +231,22 @@ const je = {
|
|
|
220
231
|
type: [String, Array]
|
|
221
232
|
}
|
|
222
233
|
};
|
|
223
|
-
function
|
|
234
|
+
function w(e, n) {
|
|
224
235
|
const t = { [`${e}`]: !0 };
|
|
225
236
|
return {
|
|
226
|
-
bemCssClasses:
|
|
227
|
-
const
|
|
228
|
-
if (!
|
|
229
|
-
return
|
|
230
|
-
if (
|
|
231
|
-
const
|
|
237
|
+
bemCssClasses: y(() => Object.keys(n).reduce((o, a) => {
|
|
238
|
+
const l = p(n[a]) || !1;
|
|
239
|
+
if (!l)
|
|
240
|
+
return o;
|
|
241
|
+
if (a === "modifiers") {
|
|
242
|
+
const u = Array.isArray(l) ? l : [l];
|
|
232
243
|
return {
|
|
233
|
-
...
|
|
234
|
-
...
|
|
235
|
-
(i,
|
|
244
|
+
...o,
|
|
245
|
+
...u.reduce(
|
|
246
|
+
(i, d) => ({
|
|
236
247
|
...i,
|
|
237
248
|
[`${e}--${b.kebabCase(
|
|
238
|
-
|
|
249
|
+
d
|
|
239
250
|
)}`]: !0
|
|
240
251
|
}),
|
|
241
252
|
{}
|
|
@@ -243,206 +254,191 @@ function G(e, o) {
|
|
|
243
254
|
};
|
|
244
255
|
} else
|
|
245
256
|
return {
|
|
246
|
-
...
|
|
247
|
-
[`${e}--${b.kebabCase(
|
|
257
|
+
...o,
|
|
258
|
+
[`${e}--${b.kebabCase(a)}`]: l
|
|
248
259
|
};
|
|
249
260
|
}, t) || {})
|
|
250
261
|
};
|
|
251
262
|
}
|
|
252
|
-
const x = /* @__PURE__ */
|
|
263
|
+
const x = /* @__PURE__ */ P({
|
|
253
264
|
__name: "VvIcon",
|
|
254
|
-
props:
|
|
265
|
+
props: Le,
|
|
255
266
|
setup(e) {
|
|
256
|
-
const
|
|
267
|
+
const n = e, t = H(!0), { modifiers: r } = S(n), o = le(ne), { bemCssClasses: a } = w("vv-icon", {
|
|
257
268
|
modifiers: r
|
|
258
|
-
}),
|
|
259
|
-
const
|
|
260
|
-
return Y(
|
|
261
|
-
const
|
|
262
|
-
if (Y(
|
|
263
|
-
return
|
|
264
|
-
})) ||
|
|
269
|
+
}), l = y(() => n.provider || (o == null ? void 0 : o.provider)), u = y(() => {
|
|
270
|
+
const c = n.name || "", s = `@${l.value}:${n.prefix}:${n.name}`;
|
|
271
|
+
return Y(c) ? c : Y(s) ? s : (o == null ? void 0 : o.iconsCollections.find((f) => {
|
|
272
|
+
const v = `@${l.value}:${f.prefix}:${c}`;
|
|
273
|
+
if (Y(v))
|
|
274
|
+
return v;
|
|
275
|
+
})) || c;
|
|
265
276
|
});
|
|
266
|
-
function i(
|
|
277
|
+
function i(c) {
|
|
267
278
|
let s = null;
|
|
268
279
|
if (typeof window > "u") {
|
|
269
|
-
const { JSDOM:
|
|
270
|
-
s = new
|
|
280
|
+
const { JSDOM: m } = require("jsdom");
|
|
281
|
+
s = new m().window;
|
|
271
282
|
}
|
|
272
|
-
return (s ? new s.DOMParser() : new window.DOMParser()).parseFromString(
|
|
283
|
+
return (s ? new s.DOMParser() : new window.DOMParser()).parseFromString(c, "text/html").querySelector("svg");
|
|
273
284
|
}
|
|
274
|
-
function
|
|
275
|
-
const s = i(
|
|
276
|
-
s &&
|
|
277
|
-
body:
|
|
285
|
+
function d(c) {
|
|
286
|
+
const s = i(c), f = (s == null ? void 0 : s.innerHTML.trim()) || "";
|
|
287
|
+
s && f && ae(`@${l.value}:${n.prefix}:${n.name}`, {
|
|
288
|
+
body: f,
|
|
278
289
|
height: s.viewBox.baseVal.height,
|
|
279
290
|
width: s.viewBox.baseVal.width
|
|
280
291
|
});
|
|
281
292
|
}
|
|
282
|
-
return
|
|
283
|
-
|
|
284
|
-
}).catch((
|
|
285
|
-
throw new Error(`During fetch icon: ${
|
|
286
|
-
})) :
|
|
293
|
+
return o && (n.src ? (t.value = !1, o.fetchIcon(n.src).then((c) => {
|
|
294
|
+
c && (d(c), t.value = !0);
|
|
295
|
+
}).catch((c) => {
|
|
296
|
+
throw new Error(`During fetch icon: ${c == null ? void 0 : c.message}`);
|
|
297
|
+
})) : n.svg && d(n.svg)), (c, s) => t.value ? (g(), D(p(Ce), E({
|
|
287
298
|
key: 0,
|
|
288
|
-
class:
|
|
299
|
+
class: p(a)
|
|
289
300
|
}, {
|
|
290
|
-
...
|
|
291
|
-
provider:
|
|
292
|
-
icon:
|
|
293
|
-
}), null, 16, ["class"])) :
|
|
301
|
+
...c.$props,
|
|
302
|
+
provider: p(l),
|
|
303
|
+
icon: p(u)
|
|
304
|
+
}), null, 16, ["class"])) : O("", !0);
|
|
294
305
|
}
|
|
295
306
|
});
|
|
296
|
-
function
|
|
297
|
-
const
|
|
298
|
-
function r(
|
|
299
|
-
if (
|
|
300
|
-
const
|
|
301
|
-
return
|
|
307
|
+
function re(e) {
|
|
308
|
+
const n = le(e, void 0), t = y(() => b.isNotEmpty(n));
|
|
309
|
+
function r(o, a, l) {
|
|
310
|
+
if (n != null && n.value) {
|
|
311
|
+
const u = p(n.value)[o];
|
|
312
|
+
return y({
|
|
302
313
|
get() {
|
|
303
|
-
return
|
|
314
|
+
return u == null ? void 0 : u.value;
|
|
304
315
|
},
|
|
305
316
|
set(i) {
|
|
306
|
-
|
|
317
|
+
u.value = i;
|
|
307
318
|
}
|
|
308
319
|
});
|
|
309
320
|
} else {
|
|
310
|
-
const
|
|
311
|
-
return
|
|
321
|
+
const u = ke(a, o);
|
|
322
|
+
return y({
|
|
312
323
|
get() {
|
|
313
|
-
return
|
|
324
|
+
return u.value;
|
|
314
325
|
},
|
|
315
326
|
set(i) {
|
|
316
|
-
|
|
327
|
+
l && l(`update:${o}`, i);
|
|
317
328
|
}
|
|
318
329
|
});
|
|
319
330
|
}
|
|
320
331
|
}
|
|
321
332
|
return {
|
|
322
|
-
group:
|
|
333
|
+
group: n,
|
|
323
334
|
isInGroup: t,
|
|
324
335
|
getGroupOrLocalRef: r
|
|
325
336
|
};
|
|
326
337
|
}
|
|
327
|
-
const
|
|
328
|
-
function
|
|
329
|
-
const { group:
|
|
338
|
+
const pe = Symbol("VV_BUTTON_GROUP"), me = Symbol("VV_CHECK_GROUP"), ge = Symbol("VV_ACCORDION_GROUP");
|
|
339
|
+
function He(e) {
|
|
340
|
+
const { group: n, isInGroup: t, getGroupOrLocalRef: r } = re(pe), { iconPosition: o, icon: a, label: l, selected: u } = S(e), i = r("modelValue", e), d = r("disabled", e), c = r("toggle", e), s = r("modifiers", e);
|
|
330
341
|
return {
|
|
331
|
-
modelValue:
|
|
332
|
-
disabled:
|
|
333
|
-
toggle:
|
|
342
|
+
modelValue: i,
|
|
343
|
+
disabled: d,
|
|
344
|
+
toggle: c,
|
|
334
345
|
isInGroup: t,
|
|
335
|
-
group:
|
|
336
|
-
modifiers:
|
|
337
|
-
action: p,
|
|
338
|
-
actionQuiet: _,
|
|
346
|
+
group: n,
|
|
347
|
+
modifiers: s,
|
|
339
348
|
selected: u,
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
iconPosition: a,
|
|
344
|
-
icon: c,
|
|
345
|
-
label: i
|
|
349
|
+
iconPosition: o,
|
|
350
|
+
icon: a,
|
|
351
|
+
label: l
|
|
346
352
|
};
|
|
347
353
|
}
|
|
348
|
-
const
|
|
354
|
+
const Me = {
|
|
349
355
|
key: 1,
|
|
350
356
|
class: "vv-button__label"
|
|
351
|
-
},
|
|
357
|
+
}, Ue = {
|
|
352
358
|
key: 1,
|
|
353
359
|
class: "vv-button__label"
|
|
354
|
-
}, Nt = /* @__PURE__ */
|
|
360
|
+
}, Nt = /* @__PURE__ */ P({
|
|
355
361
|
__name: "VvButton",
|
|
356
|
-
props:
|
|
362
|
+
props: qe,
|
|
357
363
|
setup(e) {
|
|
358
|
-
const
|
|
359
|
-
modifiers:
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
rounded: i,
|
|
364
|
-
fullBleed: f,
|
|
365
|
-
iconPosition: u,
|
|
366
|
-
icon: s,
|
|
367
|
-
label: v,
|
|
364
|
+
const n = e, t = W(), r = ie(), o = (t == null ? void 0 : t.name) || te(), {
|
|
365
|
+
modifiers: a,
|
|
366
|
+
iconPosition: l,
|
|
367
|
+
icon: u,
|
|
368
|
+
label: i,
|
|
368
369
|
modelValue: d,
|
|
369
|
-
disabled:
|
|
370
|
-
toggle:
|
|
371
|
-
isInGroup:
|
|
372
|
-
} =
|
|
370
|
+
disabled: c,
|
|
371
|
+
toggle: s,
|
|
372
|
+
isInGroup: f
|
|
373
|
+
} = He(n), v = y(() => {
|
|
373
374
|
switch (!0) {
|
|
374
|
-
case
|
|
375
|
+
case c.value:
|
|
375
376
|
return q.button;
|
|
376
|
-
case
|
|
377
|
+
case n.to !== void 0:
|
|
377
378
|
return q.routerLink;
|
|
378
|
-
case
|
|
379
|
+
case n.href !== void 0:
|
|
379
380
|
return q.a;
|
|
380
381
|
default:
|
|
381
382
|
return q.button;
|
|
382
383
|
}
|
|
383
|
-
}),
|
|
384
|
-
modifiers:
|
|
385
|
-
active:
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
block: c,
|
|
390
|
-
rounded: i,
|
|
391
|
-
fullBleed: f,
|
|
392
|
-
disabled: g,
|
|
393
|
-
reverse: h(
|
|
384
|
+
}), h = y(() => s.value ? Array.isArray(d.value) ? b.contains(o, d.value) : b.equals(o, d.value) : n.active), m = y(() => s.value ? Array.isArray(d.value) ? b.contains(o, d.value) : b.equals(o, d.value) : n.selected), { bemCssClasses: V } = w("vv-button", {
|
|
385
|
+
modifiers: a,
|
|
386
|
+
active: h,
|
|
387
|
+
selected: m,
|
|
388
|
+
disabled: c,
|
|
389
|
+
reverse: y(
|
|
394
390
|
() => [L.right, L.bottom].includes(
|
|
395
|
-
|
|
391
|
+
l.value
|
|
396
392
|
)
|
|
397
393
|
),
|
|
398
|
-
column:
|
|
394
|
+
column: y(
|
|
399
395
|
() => [L.top, L.bottom].includes(
|
|
400
|
-
|
|
396
|
+
l.value
|
|
401
397
|
)
|
|
402
398
|
),
|
|
403
|
-
iconOnly:
|
|
404
|
-
}),
|
|
405
|
-
|
|
406
|
-
"aria-label":
|
|
407
|
-
"aria-disabled":
|
|
399
|
+
iconOnly: y(() => (u == null ? void 0 : u.value) && !(i != null && i.value) && !r.default)
|
|
400
|
+
}), A = y(() => ({
|
|
401
|
+
...I.value,
|
|
402
|
+
"aria-label": n.label || t["aria-label"],
|
|
403
|
+
"aria-disabled": c.value,
|
|
408
404
|
role: "button",
|
|
409
|
-
class:
|
|
410
|
-
to:
|
|
411
|
-
})),
|
|
412
|
-
const k =
|
|
413
|
-
let
|
|
414
|
-
return k && (
|
|
405
|
+
class: V.value,
|
|
406
|
+
to: n.to
|
|
407
|
+
})), I = y(() => {
|
|
408
|
+
const k = v.value === q.a;
|
|
409
|
+
let M = {};
|
|
410
|
+
return k && (M = c.value ? {
|
|
415
411
|
href: "javascript:;"
|
|
416
412
|
} : {
|
|
417
|
-
target:
|
|
418
|
-
href:
|
|
419
|
-
}),
|
|
413
|
+
target: n.target,
|
|
414
|
+
href: n.href
|
|
415
|
+
}), M;
|
|
420
416
|
});
|
|
421
|
-
function
|
|
422
|
-
|
|
417
|
+
function R() {
|
|
418
|
+
f.value && (d.value = o);
|
|
423
419
|
}
|
|
424
|
-
return (k,
|
|
420
|
+
return (k, M) => (g(), D(ue(p(v)), E(p(A), { onClickPassive: R }), {
|
|
425
421
|
default: ee(() => [
|
|
426
422
|
C(k.$slots, "default", {}, () => [
|
|
427
423
|
k.loading ? C(k.$slots, "loading", { key: 0 }, () => [
|
|
428
|
-
k.loadingIcon ? (
|
|
424
|
+
k.loadingIcon ? (g(), D(x, {
|
|
429
425
|
key: 0,
|
|
430
426
|
class: "vv-button__loading-icon",
|
|
431
427
|
name: k.loadingIcon
|
|
432
|
-
}, null, 8, ["name"])) :
|
|
433
|
-
k.loadingLabel ? (
|
|
434
|
-
]) : (
|
|
428
|
+
}, null, 8, ["name"])) : O("", !0),
|
|
429
|
+
k.loadingLabel ? (g(), _("span", Me, B(k.loadingLabel), 1)) : O("", !0)
|
|
430
|
+
]) : (g(), _(U, { key: 1 }, [
|
|
435
431
|
C(k.$slots, "before"),
|
|
436
|
-
|
|
432
|
+
p(u) ? (g(), D(x, {
|
|
437
433
|
key: 0,
|
|
438
434
|
class: "vv-button__icon",
|
|
439
|
-
name:
|
|
440
|
-
}, null, 8, ["name"])) :
|
|
441
|
-
|
|
435
|
+
name: p(u)
|
|
436
|
+
}, null, 8, ["name"])) : O("", !0),
|
|
437
|
+
p(i) ? (g(), _("span", Ue, [
|
|
442
438
|
C(k.$slots, "label", {}, () => [
|
|
443
|
-
|
|
439
|
+
j(B(p(i)), 1)
|
|
444
440
|
])
|
|
445
|
-
])) :
|
|
441
|
+
])) : O("", !0),
|
|
446
442
|
C(k.$slots, "after")
|
|
447
443
|
], 64))
|
|
448
444
|
])
|
|
@@ -450,75 +446,63 @@ const qe = {
|
|
|
450
446
|
_: 3
|
|
451
447
|
}, 16));
|
|
452
448
|
}
|
|
453
|
-
}),
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
}, Ft = /* @__PURE__ */
|
|
449
|
+
}), ze = {
|
|
450
|
+
...z,
|
|
451
|
+
value: [String, Number]
|
|
452
|
+
}, Ft = /* @__PURE__ */ P({
|
|
457
453
|
__name: "VvBadge",
|
|
458
|
-
props:
|
|
454
|
+
props: ze,
|
|
459
455
|
setup(e) {
|
|
460
|
-
const
|
|
461
|
-
|
|
462
|
-
|
|
456
|
+
const n = e, { modifiers: t } = S(n), { bemCssClasses: r } = w("vv-badge", {
|
|
457
|
+
modifiers: t
|
|
458
|
+
});
|
|
459
|
+
return (o, a) => (g(), _("span", {
|
|
460
|
+
class: N(p(r)),
|
|
463
461
|
role: "status"
|
|
464
|
-
},
|
|
462
|
+
}, B(o.value), 3));
|
|
465
463
|
}
|
|
466
|
-
}),
|
|
467
|
-
|
|
464
|
+
}), Ke = {
|
|
465
|
+
...z,
|
|
466
|
+
...oe,
|
|
468
467
|
vertical: { type: Boolean, default: !1 },
|
|
469
468
|
compact: { type: Boolean, default: !1 },
|
|
470
469
|
toggle: { type: Boolean, default: !1 },
|
|
471
|
-
block: { type: Boolean, default: !1 },
|
|
472
|
-
rounded: { type: Boolean, default: !1 },
|
|
473
|
-
action: Boolean,
|
|
474
|
-
actionQuiet: Boolean,
|
|
475
470
|
modelValue: { type: String, default: void 0 }
|
|
476
|
-
},
|
|
477
|
-
function
|
|
471
|
+
}, Te = ["update:modelValue"];
|
|
472
|
+
function se(e) {
|
|
478
473
|
if (Object.keys(e).some(
|
|
479
|
-
(
|
|
474
|
+
(n) => n !== "key" && !$e(e[n])
|
|
480
475
|
))
|
|
481
476
|
throw Error("One or more groupState props aren't ref.");
|
|
482
|
-
|
|
477
|
+
Se(
|
|
483
478
|
e.key,
|
|
484
|
-
|
|
479
|
+
y(() => e)
|
|
485
480
|
);
|
|
486
481
|
}
|
|
487
|
-
const qt = /* @__PURE__ */
|
|
482
|
+
const qt = /* @__PURE__ */ P({
|
|
488
483
|
__name: "VvButtonGroup",
|
|
489
|
-
props:
|
|
490
|
-
emits:
|
|
491
|
-
setup(e, { emit:
|
|
492
|
-
const t = e, r =
|
|
493
|
-
|
|
494
|
-
vertical:
|
|
495
|
-
compact:
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
toggle: f,
|
|
499
|
-
action: u,
|
|
500
|
-
actionQuiet: s
|
|
501
|
-
} = P(t), { bemCssClasses: v } = G("vv-button-group", {
|
|
502
|
-
vertical: l,
|
|
503
|
-
compact: a,
|
|
504
|
-
block: c
|
|
505
|
-
});
|
|
506
|
-
return re({
|
|
507
|
-
key: ce,
|
|
484
|
+
props: Ke,
|
|
485
|
+
emits: Te,
|
|
486
|
+
setup(e, { emit: n }) {
|
|
487
|
+
const t = e, r = X(t, "modelValue", n), { disabled: o, vertical: a, compact: l, toggle: u, modifiers: i } = S(t), { bemCssClasses: d } = w("vv-button-group", {
|
|
488
|
+
modifiers: i,
|
|
489
|
+
vertical: a,
|
|
490
|
+
compact: l
|
|
491
|
+
}), c = {
|
|
492
|
+
key: pe,
|
|
508
493
|
modelValue: r,
|
|
509
|
-
disabled:
|
|
510
|
-
toggle:
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
class: F(m(v)),
|
|
494
|
+
disabled: o,
|
|
495
|
+
toggle: u,
|
|
496
|
+
modifiers: i != null && i.value ? i : H([])
|
|
497
|
+
};
|
|
498
|
+
return se(c), (s, f) => (g(), _("div", {
|
|
499
|
+
class: N(p(d)),
|
|
516
500
|
role: "group"
|
|
517
501
|
}, [
|
|
518
|
-
C(
|
|
502
|
+
C(s.$slots, "default")
|
|
519
503
|
], 2));
|
|
520
504
|
}
|
|
521
|
-
}),
|
|
505
|
+
}), Ze = {
|
|
522
506
|
title: String,
|
|
523
507
|
content: String,
|
|
524
508
|
open: Boolean,
|
|
@@ -526,73 +510,73 @@ const qt = /* @__PURE__ */ w({
|
|
|
526
510
|
bordered: Boolean,
|
|
527
511
|
modifiers: [String, Array],
|
|
528
512
|
disabled: Boolean
|
|
529
|
-
},
|
|
530
|
-
function
|
|
531
|
-
const { group: t, isInGroup: r, getGroupOrLocalRef:
|
|
513
|
+
}, We = ["update:open"];
|
|
514
|
+
function Je(e, n) {
|
|
515
|
+
const { group: t, isInGroup: r, getGroupOrLocalRef: o } = re(ge), { modifiers: a } = S(e), l = o("modelValue", e, n), u = o("bordered", e), i = o("disabled", e), d = o("iconRight", e), c = o("accordion", e);
|
|
532
516
|
return {
|
|
533
|
-
modelValue:
|
|
517
|
+
modelValue: l,
|
|
534
518
|
disabled: i,
|
|
535
|
-
bordered:
|
|
536
|
-
iconRight:
|
|
519
|
+
bordered: u,
|
|
520
|
+
iconRight: d,
|
|
537
521
|
isInGroup: r,
|
|
538
522
|
group: t,
|
|
539
|
-
accordion:
|
|
540
|
-
modifiers:
|
|
523
|
+
accordion: c,
|
|
524
|
+
modifiers: a
|
|
541
525
|
};
|
|
542
526
|
}
|
|
543
|
-
const
|
|
527
|
+
const Xe = ["open"], Qe = ["aria-controls", "aria-expanded"], Ye = ["aria-hidden"], xe = /* @__PURE__ */ P({
|
|
544
528
|
__name: "VvAccordion",
|
|
545
|
-
props:
|
|
546
|
-
emits:
|
|
547
|
-
setup(e, { emit:
|
|
548
|
-
const t = e, r =
|
|
549
|
-
modelValue:
|
|
550
|
-
modifiers:
|
|
551
|
-
bordered:
|
|
552
|
-
disabled: i =
|
|
553
|
-
iconRight:
|
|
554
|
-
isInGroup:
|
|
529
|
+
props: Ze,
|
|
530
|
+
emits: We,
|
|
531
|
+
setup(e, { emit: n }) {
|
|
532
|
+
const t = e, r = W(), o = (r == null ? void 0 : r.name) || te(), {
|
|
533
|
+
modelValue: a,
|
|
534
|
+
modifiers: l,
|
|
535
|
+
bordered: u,
|
|
536
|
+
disabled: i = H(!1),
|
|
537
|
+
iconRight: d,
|
|
538
|
+
isInGroup: c,
|
|
555
539
|
accordion: s
|
|
556
|
-
} =
|
|
557
|
-
modifiers:
|
|
540
|
+
} = Je(t, n), f = y(() => c.value ? s.value ? b.equals(o, a.value) : b.contains(o, a.value) : t.open), { bemCssClasses: v } = w("vv-accordion", {
|
|
541
|
+
modifiers: l,
|
|
558
542
|
disabled: i,
|
|
559
|
-
markerRight:
|
|
560
|
-
bordered:
|
|
561
|
-
}),
|
|
562
|
-
const
|
|
563
|
-
|
|
564
|
-
},
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
) : [...
|
|
543
|
+
markerRight: y(() => d.value),
|
|
544
|
+
bordered: u
|
|
545
|
+
}), h = (V) => {
|
|
546
|
+
const A = V.target;
|
|
547
|
+
n("update:open", A.open);
|
|
548
|
+
}, m = (V) => {
|
|
549
|
+
c.value && (s.value ? a.value = f.value ? null : o : a.value = f.value ? b.removeFromList(
|
|
550
|
+
o,
|
|
551
|
+
a.value
|
|
552
|
+
) : [...a.value, o], V.preventDefault());
|
|
569
553
|
};
|
|
570
|
-
return (
|
|
571
|
-
class:
|
|
572
|
-
open:
|
|
573
|
-
onToggle:
|
|
574
|
-
onClick:
|
|
554
|
+
return (V, A) => (g(), _("details", {
|
|
555
|
+
class: N(p(v)),
|
|
556
|
+
open: p(f),
|
|
557
|
+
onToggle: h,
|
|
558
|
+
onClick: m
|
|
575
559
|
}, [
|
|
576
|
-
|
|
577
|
-
"aria-controls": `#${
|
|
578
|
-
"aria-expanded":
|
|
560
|
+
$("summary", {
|
|
561
|
+
"aria-controls": `#${p(o)}`,
|
|
562
|
+
"aria-expanded": p(f),
|
|
579
563
|
class: "vv-collapse__summary"
|
|
580
564
|
}, [
|
|
581
|
-
C(
|
|
582
|
-
|
|
565
|
+
C(V.$slots, "header", {}, () => [
|
|
566
|
+
j(B(V.title), 1)
|
|
583
567
|
])
|
|
584
|
-
], 8,
|
|
585
|
-
|
|
586
|
-
"aria-hidden": !
|
|
568
|
+
], 8, Qe),
|
|
569
|
+
$("div", {
|
|
570
|
+
"aria-hidden": !p(f),
|
|
587
571
|
class: "vv-collapse__content"
|
|
588
572
|
}, [
|
|
589
|
-
C(
|
|
590
|
-
|
|
573
|
+
C(V.$slots, "details", {}, () => [
|
|
574
|
+
j(B(V.content), 1)
|
|
591
575
|
])
|
|
592
|
-
], 8,
|
|
593
|
-
], 42,
|
|
576
|
+
], 8, Ye)
|
|
577
|
+
], 42, Xe));
|
|
594
578
|
}
|
|
595
|
-
}),
|
|
579
|
+
}), et = {
|
|
596
580
|
modelValue: [String, Array],
|
|
597
581
|
iconRight: Boolean,
|
|
598
582
|
bordered: Boolean,
|
|
@@ -600,98 +584,82 @@ const Te = ["open"], Ze = ["aria-controls", "aria-expanded"], We = ["aria-hidden
|
|
|
600
584
|
accordion: Boolean,
|
|
601
585
|
modifiers: [String, Array],
|
|
602
586
|
disabled: Boolean
|
|
603
|
-
},
|
|
587
|
+
}, tt = ["update:open"], Lt = /* @__PURE__ */ P({
|
|
604
588
|
__name: "VvAccordionGroup",
|
|
605
|
-
props:
|
|
606
|
-
emits:
|
|
607
|
-
setup(e, { emit:
|
|
608
|
-
const t = e, r =
|
|
609
|
-
|
|
610
|
-
key:
|
|
589
|
+
props: et,
|
|
590
|
+
emits: tt,
|
|
591
|
+
setup(e, { emit: n }) {
|
|
592
|
+
const t = e, r = X(t, "modelValue", n), { disabled: o, bordered: a, iconRight: l, accordion: u, modifiers: i, items: d } = S(t);
|
|
593
|
+
se({
|
|
594
|
+
key: ge,
|
|
611
595
|
modelValue: r,
|
|
612
|
-
disabled:
|
|
613
|
-
bordered:
|
|
614
|
-
iconRight:
|
|
615
|
-
accordion:
|
|
596
|
+
disabled: o,
|
|
597
|
+
bordered: a,
|
|
598
|
+
iconRight: l,
|
|
599
|
+
accordion: u
|
|
616
600
|
});
|
|
617
|
-
const { bemCssClasses: s } =
|
|
601
|
+
const { bemCssClasses: s } = w("vv-accordion-group", {
|
|
618
602
|
modifiers: i,
|
|
619
|
-
disabled:
|
|
603
|
+
disabled: o
|
|
620
604
|
});
|
|
621
|
-
return (
|
|
622
|
-
var
|
|
623
|
-
return
|
|
624
|
-
class:
|
|
605
|
+
return (f, v) => {
|
|
606
|
+
var h;
|
|
607
|
+
return g(), _("div", {
|
|
608
|
+
class: N(p(s))
|
|
625
609
|
}, [
|
|
626
|
-
((
|
|
627
|
-
key:
|
|
610
|
+
((h = t.items) == null ? void 0 : h.length) > 0 ? (g(!0), _(U, { key: 0 }, J(p(d), (m) => (g(), D(xe, E({
|
|
611
|
+
key: m.title
|
|
628
612
|
}, {
|
|
629
|
-
name:
|
|
630
|
-
title:
|
|
631
|
-
content:
|
|
613
|
+
name: m.name,
|
|
614
|
+
title: m.title,
|
|
615
|
+
content: m.content,
|
|
632
616
|
...t
|
|
633
|
-
}), null, 16))), 128)) : C(
|
|
617
|
+
}), null, 16))), 128)) : C(f.$slots, "default", { key: 1 })
|
|
634
618
|
], 2);
|
|
635
619
|
};
|
|
636
620
|
}
|
|
637
|
-
}),
|
|
638
|
-
|
|
639
|
-
validLabel: [String, Array]
|
|
640
|
-
}, pe = {
|
|
641
|
-
error: Boolean,
|
|
642
|
-
errorLabel: [String, Array]
|
|
643
|
-
}, xe = {
|
|
644
|
-
disabled: Boolean
|
|
645
|
-
}, me = {
|
|
646
|
-
modifiers: [String, Array]
|
|
647
|
-
}, et = {
|
|
648
|
-
hintLabel: { type: String, default: "" }
|
|
649
|
-
}, tt = {
|
|
650
|
-
options: { type: Array, default: () => [] },
|
|
651
|
-
optionLabel: { type: [String, Function], default: () => "label" },
|
|
652
|
-
optionValue: { type: [String, Function], default: () => "value" }
|
|
653
|
-
}, ot = {
|
|
654
|
-
...me,
|
|
621
|
+
}), nt = {
|
|
622
|
+
...z,
|
|
655
623
|
routes: Array,
|
|
656
624
|
multiline: Boolean
|
|
657
|
-
},
|
|
625
|
+
}, ot = { class: "vv-breadcrumb__list" }, rt = ["content"], Ht = /* @__PURE__ */ P({
|
|
658
626
|
__name: "VvBreadcrumb",
|
|
659
|
-
props:
|
|
627
|
+
props: nt,
|
|
660
628
|
setup(e) {
|
|
661
|
-
const
|
|
629
|
+
const n = e, { modifiers: t, multiline: r } = S(n), { bemCssClasses: o } = w("vv-breadcrumb", {
|
|
662
630
|
modifiers: t,
|
|
663
631
|
multiline: r
|
|
664
632
|
});
|
|
665
|
-
return (
|
|
666
|
-
class:
|
|
633
|
+
return (a, l) => (g(), _("nav", {
|
|
634
|
+
class: N(p(o)),
|
|
667
635
|
"aria-label": "breadcrumbs"
|
|
668
636
|
}, [
|
|
669
|
-
|
|
670
|
-
(
|
|
671
|
-
var
|
|
672
|
-
return
|
|
673
|
-
key: `${
|
|
674
|
-
class:
|
|
675
|
-
"vv-breadcrumb__item": i < Number((
|
|
676
|
-
"vv-breadcrumb__item-active": i === Number((
|
|
637
|
+
$("ol", ot, [
|
|
638
|
+
(g(!0), _(U, null, J(a.routes, (u, i) => {
|
|
639
|
+
var d, c, s, f;
|
|
640
|
+
return g(), _("li", {
|
|
641
|
+
key: `${u.label}-${i}`,
|
|
642
|
+
class: N({
|
|
643
|
+
"vv-breadcrumb__item": i < Number((d = a.routes) == null ? void 0 : d.length) - 1,
|
|
644
|
+
"vv-breadcrumb__item-active": i === Number((c = a.routes) == null ? void 0 : c.length) - 1
|
|
677
645
|
}),
|
|
678
646
|
itemprop: "itemListElement",
|
|
679
647
|
itemtype: "https://schema.org/ListItem",
|
|
680
648
|
itemscope: ""
|
|
681
649
|
}, [
|
|
682
|
-
(
|
|
650
|
+
(g(), D(ue(u.to ? "router-link" : u.href ? "a" : "span"), E(u, {
|
|
683
651
|
class: {
|
|
684
|
-
"vv-breadcrumb__link": i < Number((s =
|
|
652
|
+
"vv-breadcrumb__link": i < Number((s = a.routes) == null ? void 0 : s.length) - 1
|
|
685
653
|
},
|
|
686
|
-
"aria-current": i === Number((
|
|
654
|
+
"aria-current": i === Number((f = a.routes) == null ? void 0 : f.length) - 1 ? "page" : void 0,
|
|
687
655
|
itemprop: "item"
|
|
688
656
|
}), {
|
|
689
657
|
default: ee(() => [
|
|
690
|
-
|
|
658
|
+
j(B(u.label) + " ", 1)
|
|
691
659
|
]),
|
|
692
660
|
_: 2
|
|
693
661
|
}, 1040, ["class", "aria-current"])),
|
|
694
|
-
|
|
662
|
+
$("meta", {
|
|
695
663
|
itemprop: "position",
|
|
696
664
|
content: `${i + 1}`
|
|
697
665
|
}, null, 8, rt)
|
|
@@ -703,40 +671,40 @@ const Te = ["open"], Ze = ["aria-controls", "aria-expanded"], We = ["aria-hidden
|
|
|
703
671
|
}), st = {
|
|
704
672
|
title: String,
|
|
705
673
|
modifiers: [String, Array]
|
|
706
|
-
},
|
|
674
|
+
}, at = {
|
|
707
675
|
key: 0,
|
|
708
676
|
class: "vv-card__header"
|
|
709
|
-
},
|
|
677
|
+
}, lt = {
|
|
710
678
|
key: 1,
|
|
711
679
|
class: "vv-card__content"
|
|
712
680
|
}, it = {
|
|
713
681
|
key: 2,
|
|
714
682
|
class: "vv-card__footer"
|
|
715
|
-
}, Mt = /* @__PURE__ */
|
|
683
|
+
}, Mt = /* @__PURE__ */ P({
|
|
716
684
|
__name: "VvCard",
|
|
717
685
|
props: st,
|
|
718
686
|
setup(e) {
|
|
719
|
-
const
|
|
687
|
+
const n = e, t = W(), { modifiers: r } = S(n), { bemCssClasses: o } = w("vv-card", {
|
|
720
688
|
modifiers: r
|
|
721
|
-
}),
|
|
722
|
-
return (
|
|
723
|
-
|
|
724
|
-
C(
|
|
725
|
-
|
|
689
|
+
}), a = y(() => t);
|
|
690
|
+
return (l, u) => (g(), _("article", E({ class: p(o) }, p(a)), [
|
|
691
|
+
l.$slots.header || l.title ? (g(), _("header", at, [
|
|
692
|
+
C(l.$slots, "header", {}, () => [
|
|
693
|
+
j(B(l.title), 1)
|
|
726
694
|
])
|
|
727
|
-
])) :
|
|
728
|
-
C(
|
|
729
|
-
|
|
730
|
-
C(
|
|
731
|
-
])) :
|
|
732
|
-
|
|
733
|
-
C(
|
|
734
|
-
])) :
|
|
695
|
+
])) : O("", !0),
|
|
696
|
+
C(l.$slots, "default"),
|
|
697
|
+
l.$slots.content ? (g(), _("div", lt, [
|
|
698
|
+
C(l.$slots, "content")
|
|
699
|
+
])) : O("", !0),
|
|
700
|
+
l.$slots.footer ? (g(), _("footer", it, [
|
|
701
|
+
C(l.$slots, "footer")
|
|
702
|
+
])) : O("", !0)
|
|
735
703
|
], 16));
|
|
736
704
|
}
|
|
737
705
|
}), ut = {
|
|
738
|
-
...
|
|
739
|
-
...
|
|
706
|
+
...de,
|
|
707
|
+
...ve,
|
|
740
708
|
value: null,
|
|
741
709
|
modelValue: null,
|
|
742
710
|
binary: Boolean,
|
|
@@ -753,118 +721,118 @@ const Te = ["open"], Ze = ["aria-controls", "aria-expanded"], We = ["aria-hidden
|
|
|
753
721
|
"focus",
|
|
754
722
|
"blur"
|
|
755
723
|
];
|
|
756
|
-
function dt(e,
|
|
757
|
-
const { group: t, isInGroup: r, getGroupOrLocalRef:
|
|
724
|
+
function dt(e, n) {
|
|
725
|
+
const { group: t, isInGroup: r, getGroupOrLocalRef: o } = re(me), { valid: a, error: l, switch: u } = S(e), i = o("modelValue", e, n), d = o("readonly", e), c = o("disabled", e);
|
|
758
726
|
return {
|
|
759
727
|
group: t,
|
|
760
728
|
isInGroup: r,
|
|
761
|
-
valid:
|
|
762
|
-
error:
|
|
763
|
-
propsSwitch:
|
|
729
|
+
valid: a,
|
|
730
|
+
error: l,
|
|
731
|
+
propsSwitch: u,
|
|
764
732
|
modelValue: i,
|
|
765
|
-
readonly:
|
|
766
|
-
disabled:
|
|
733
|
+
readonly: d,
|
|
734
|
+
disabled: c
|
|
767
735
|
};
|
|
768
736
|
}
|
|
769
|
-
function vt(e,
|
|
770
|
-
const { focused: t } =
|
|
771
|
-
return
|
|
772
|
-
|
|
737
|
+
function vt(e, n) {
|
|
738
|
+
const { focused: t } = Ie(e);
|
|
739
|
+
return Ae(t, (r) => {
|
|
740
|
+
n(r ? "focus" : "blur", e.value);
|
|
773
741
|
}), {
|
|
774
742
|
focused: t
|
|
775
743
|
};
|
|
776
744
|
}
|
|
777
745
|
const ft = {
|
|
778
746
|
inheritAttrs: !1
|
|
779
|
-
}, pt = /* @__PURE__ */
|
|
747
|
+
}, pt = /* @__PURE__ */ P({
|
|
780
748
|
...ft,
|
|
781
749
|
__name: "VvCheck",
|
|
782
750
|
props: ut,
|
|
783
751
|
emits: ct,
|
|
784
|
-
setup(e, { emit:
|
|
785
|
-
const t = e, r =
|
|
752
|
+
setup(e, { emit: n }) {
|
|
753
|
+
const t = e, r = W(), { disabled: o, readonly: a, valid: l, error: u, propsSwitch: i, modelValue: d } = dt(t, n), c = H(), { focused: s } = vt(c, n), f = y(() => t.binary ? b.equals(d.value, t.trueValue) : Array.isArray(d.value) ? b.contains(t.value, d.value) : b.equals(t.value, d.value)), { bemCssClasses: v } = w("vv-input-checkbox", {
|
|
786
754
|
switch: i,
|
|
787
|
-
valid:
|
|
788
|
-
invalid:
|
|
789
|
-
}), { bemCssClasses:
|
|
755
|
+
valid: l,
|
|
756
|
+
invalid: u
|
|
757
|
+
}), { bemCssClasses: h } = w(
|
|
790
758
|
"vv-input-check__input",
|
|
791
759
|
{
|
|
792
|
-
checked:
|
|
793
|
-
disabled:
|
|
794
|
-
readonly:
|
|
760
|
+
checked: f,
|
|
761
|
+
disabled: o,
|
|
762
|
+
readonly: a
|
|
795
763
|
}
|
|
796
|
-
),
|
|
764
|
+
), m = y(() => ({
|
|
797
765
|
[r.class]: !0,
|
|
798
|
-
...
|
|
799
|
-
})),
|
|
800
|
-
...
|
|
766
|
+
...v.value
|
|
767
|
+
})), V = y(() => ({
|
|
768
|
+
...h.value,
|
|
801
769
|
"focus-visible": s.value
|
|
802
|
-
})),
|
|
803
|
-
const { id:
|
|
770
|
+
})), A = y(() => {
|
|
771
|
+
const { id: G, name: F, style: Q } = r, ye = b.pickBy(
|
|
804
772
|
r,
|
|
805
|
-
(
|
|
773
|
+
(he) => he.startsWith("data-")
|
|
806
774
|
);
|
|
807
775
|
return {
|
|
808
|
-
for:
|
|
809
|
-
style:
|
|
810
|
-
...
|
|
776
|
+
for: G || F,
|
|
777
|
+
style: Q,
|
|
778
|
+
...ye
|
|
811
779
|
};
|
|
812
|
-
}),
|
|
813
|
-
const { id:
|
|
780
|
+
}), I = y(() => {
|
|
781
|
+
const { id: G = "", name: F = "" } = r;
|
|
814
782
|
return {
|
|
815
783
|
type: "checkbox",
|
|
816
|
-
id:
|
|
817
|
-
name:
|
|
784
|
+
id: G || F,
|
|
785
|
+
name: F,
|
|
818
786
|
value: t.value,
|
|
819
|
-
disabled:
|
|
820
|
-
readonly:
|
|
821
|
-
checked:
|
|
822
|
-
...
|
|
787
|
+
disabled: o.value,
|
|
788
|
+
readonly: a.value,
|
|
789
|
+
checked: f.value,
|
|
790
|
+
...R.value
|
|
823
791
|
};
|
|
824
|
-
}),
|
|
825
|
-
const { name:
|
|
792
|
+
}), R = y(() => {
|
|
793
|
+
const { name: G } = r, F = b.pickBy(
|
|
826
794
|
r,
|
|
827
|
-
(
|
|
795
|
+
(Q) => Q.startsWith("aria-")
|
|
828
796
|
);
|
|
829
797
|
return {
|
|
830
|
-
"aria-label":
|
|
831
|
-
"aria-checked":
|
|
832
|
-
...
|
|
798
|
+
"aria-label": G,
|
|
799
|
+
"aria-checked": f.value,
|
|
800
|
+
...F
|
|
833
801
|
};
|
|
834
802
|
});
|
|
835
|
-
function
|
|
803
|
+
function k() {
|
|
836
804
|
if (t.binary) {
|
|
837
|
-
|
|
805
|
+
d.value = f.value ? t.falseValue : t.trueValue;
|
|
838
806
|
return;
|
|
839
807
|
}
|
|
840
|
-
if (
|
|
841
|
-
|
|
808
|
+
if (d.value === null) {
|
|
809
|
+
d.value = [t.value];
|
|
842
810
|
return;
|
|
843
811
|
}
|
|
844
|
-
if (Array.isArray(
|
|
845
|
-
|
|
812
|
+
if (Array.isArray(d.value)) {
|
|
813
|
+
d.value = f.value ? b.removeFromList(t.value, d.value) : [...d.value, t.value];
|
|
846
814
|
return;
|
|
847
815
|
}
|
|
848
816
|
}
|
|
849
|
-
function
|
|
850
|
-
|
|
817
|
+
function M(G) {
|
|
818
|
+
o.value || (n("click", G), n("change", f.value ? t.value : null), s.value = !0);
|
|
851
819
|
}
|
|
852
|
-
return (
|
|
853
|
-
|
|
820
|
+
return (G, F) => (g(), _("label", E({ class: p(m) }, p(A), { onClick: M }), [
|
|
821
|
+
$("input", E({
|
|
854
822
|
ref_key: "input",
|
|
855
|
-
ref:
|
|
856
|
-
class:
|
|
857
|
-
},
|
|
858
|
-
C(
|
|
859
|
-
|
|
823
|
+
ref: c,
|
|
824
|
+
class: p(V)
|
|
825
|
+
}, p(I), { onInput: k }), null, 16),
|
|
826
|
+
C(G.$slots, "default", { value: p(d) }, () => [
|
|
827
|
+
j(B(G.label), 1)
|
|
860
828
|
])
|
|
861
829
|
], 16));
|
|
862
830
|
}
|
|
863
831
|
}), mt = {
|
|
864
|
-
...
|
|
865
|
-
...
|
|
866
|
-
...
|
|
867
|
-
...
|
|
832
|
+
...de,
|
|
833
|
+
...ve,
|
|
834
|
+
...Ne,
|
|
835
|
+
...Fe,
|
|
868
836
|
modelValue: { type: Array },
|
|
869
837
|
label: { type: String, default: "" },
|
|
870
838
|
name: { type: String, default: "", required: !0 },
|
|
@@ -873,18 +841,18 @@ const ft = {
|
|
|
873
841
|
vertical: { type: Boolean, default: !1 }
|
|
874
842
|
}, gt = ["update:modelValue", "change"];
|
|
875
843
|
function yt(e) {
|
|
876
|
-
const { options:
|
|
844
|
+
const { options: n, optionLabel: t, optionValue: r } = S(e);
|
|
877
845
|
return {
|
|
878
|
-
options:
|
|
879
|
-
getOptionLabel: (
|
|
880
|
-
getOptionValue: (
|
|
846
|
+
options: n,
|
|
847
|
+
getOptionLabel: (l) => typeof l != "object" && l !== null ? l : typeof t.value == "function" ? t.value(l) : l[t.value],
|
|
848
|
+
getOptionValue: (l) => typeof l != "object" && l !== null ? l : typeof r.value == "function" ? r.value(l) : l[r.value]
|
|
881
849
|
};
|
|
882
850
|
}
|
|
883
|
-
function
|
|
884
|
-
return Array.isArray(e) ? e.filter((
|
|
851
|
+
function T(e) {
|
|
852
|
+
return Array.isArray(e) ? e.filter((n) => b.isString(n)).reduce((n, t) => n.length > 0 ? n + `
|
|
885
853
|
` + t : t, "") : e;
|
|
886
854
|
}
|
|
887
|
-
function ht(e,
|
|
855
|
+
function ht(e, n) {
|
|
888
856
|
return {
|
|
889
857
|
name: "HintSlot",
|
|
890
858
|
props: {
|
|
@@ -894,43 +862,43 @@ function ht(e, o) {
|
|
|
894
862
|
}
|
|
895
863
|
},
|
|
896
864
|
setup(t) {
|
|
897
|
-
const r =
|
|
898
|
-
error:
|
|
899
|
-
valid:
|
|
900
|
-
hint:
|
|
901
|
-
loading:
|
|
902
|
-
} =
|
|
865
|
+
const r = S(e), {
|
|
866
|
+
error: o,
|
|
867
|
+
valid: a,
|
|
868
|
+
hint: l,
|
|
869
|
+
loading: u
|
|
870
|
+
} = n, {
|
|
903
871
|
hintLabel: i,
|
|
904
|
-
modelValue:
|
|
905
|
-
valid:
|
|
872
|
+
modelValue: d,
|
|
873
|
+
valid: c,
|
|
906
874
|
validLabel: s,
|
|
907
|
-
error:
|
|
908
|
-
errorLabel:
|
|
909
|
-
} = r,
|
|
875
|
+
error: f,
|
|
876
|
+
errorLabel: v
|
|
877
|
+
} = r, h = b.resolveFieldData(r, "loading"), m = b.resolveFieldData(
|
|
910
878
|
r,
|
|
911
879
|
"loadingLabel"
|
|
912
|
-
),
|
|
913
|
-
const
|
|
880
|
+
), V = y(() => f.value ? !!(f.value && o || (v == null ? void 0 : v.value) && Array.isArray(v.value) && v.value.length > 0 || (v == null ? void 0 : v.value) && b.isNotEmpty(v.value)) : !1), A = y(() => !!(i && i.value || l || a || s && s.value || V.value || (h == null ? void 0 : h.value) && u || (h == null ? void 0 : h.value) && (m == null ? void 0 : m.value))), I = y(() => {
|
|
881
|
+
const R = Re({
|
|
914
882
|
hintLabel: i,
|
|
915
|
-
modelValue:
|
|
916
|
-
valid:
|
|
883
|
+
modelValue: d,
|
|
884
|
+
valid: c,
|
|
917
885
|
validLabel: s,
|
|
918
|
-
error:
|
|
919
|
-
errorLabel:
|
|
920
|
-
loading:
|
|
921
|
-
loadingLabel:
|
|
886
|
+
error: f,
|
|
887
|
+
errorLabel: v,
|
|
888
|
+
loading: h,
|
|
889
|
+
loadingLabel: m,
|
|
922
890
|
...t.params
|
|
923
891
|
});
|
|
924
|
-
return
|
|
892
|
+
return f != null && f.value ? (o == null ? void 0 : o(R)) || T(v == null ? void 0 : v.value) || (i == null ? void 0 : i.value) : c != null && c.value ? (a == null ? void 0 : a(R)) || T(s == null ? void 0 : s.value) || (i == null ? void 0 : i.value) : h != null && h.value ? (u == null ? void 0 : u(R)) || T(m == null ? void 0 : m.value) || (i == null ? void 0 : i.value) : (l == null ? void 0 : l(R)) || T(i == null ? void 0 : i.value) || (i == null ? void 0 : i.value);
|
|
925
893
|
});
|
|
926
894
|
return {
|
|
927
|
-
hasHint:
|
|
928
|
-
hintContent:
|
|
895
|
+
hasHint: A,
|
|
896
|
+
hintContent: I
|
|
929
897
|
};
|
|
930
898
|
},
|
|
931
899
|
render() {
|
|
932
900
|
if (this.hasHint)
|
|
933
|
-
return
|
|
901
|
+
return Oe(
|
|
934
902
|
"pre",
|
|
935
903
|
{ style: { "white-space": "pre" } },
|
|
936
904
|
this.hintContent
|
|
@@ -938,45 +906,45 @@ function ht(e, o) {
|
|
|
938
906
|
}
|
|
939
907
|
};
|
|
940
908
|
}
|
|
941
|
-
const bt = ["textContent"], _t = { class: "vv-input-checkbox-group__wrapper" }, Ut = /* @__PURE__ */
|
|
909
|
+
const bt = ["textContent"], _t = { class: "vv-input-checkbox-group__wrapper" }, Ut = /* @__PURE__ */ P({
|
|
942
910
|
__name: "VvCheckGroup",
|
|
943
911
|
props: mt,
|
|
944
912
|
emits: gt,
|
|
945
|
-
setup(e, { emit:
|
|
946
|
-
const t = e, r =
|
|
947
|
-
|
|
948
|
-
key:
|
|
949
|
-
modelValue:
|
|
950
|
-
disabled:
|
|
951
|
-
readonly:
|
|
913
|
+
setup(e, { emit: n }) {
|
|
914
|
+
const t = e, r = ie(), o = X(t, "modelValue", n), { disabled: a, readonly: l, error: u, valid: i } = S(t);
|
|
915
|
+
se({
|
|
916
|
+
key: me,
|
|
917
|
+
modelValue: o,
|
|
918
|
+
disabled: a,
|
|
919
|
+
readonly: l
|
|
952
920
|
});
|
|
953
|
-
const { getOptionLabel:
|
|
921
|
+
const { getOptionLabel: c, getOptionValue: s } = yt(t), { bemCssClasses: f } = w(
|
|
954
922
|
"vv-input-checkbox-group",
|
|
955
923
|
{
|
|
956
|
-
horizontal:
|
|
924
|
+
horizontal: y(() => !t.vertical),
|
|
957
925
|
valid: i,
|
|
958
|
-
invalid:
|
|
926
|
+
invalid: u
|
|
959
927
|
}
|
|
960
|
-
),
|
|
961
|
-
id: `${t.name}_opt${
|
|
928
|
+
), v = (m, V) => ({
|
|
929
|
+
id: `${t.name}_opt${V}`,
|
|
962
930
|
name: t.name,
|
|
963
|
-
label:
|
|
964
|
-
value: s(
|
|
965
|
-
}),
|
|
966
|
-
return (
|
|
967
|
-
class:
|
|
931
|
+
label: c(m),
|
|
932
|
+
value: s(m)
|
|
933
|
+
}), h = ht(t, r);
|
|
934
|
+
return (m, V) => (g(), _("fieldset", {
|
|
935
|
+
class: N(p(f))
|
|
968
936
|
}, [
|
|
969
|
-
|
|
937
|
+
m.label ? (g(), _("legend", {
|
|
970
938
|
key: 0,
|
|
971
|
-
textContent:
|
|
972
|
-
}, null, 8, bt)) :
|
|
973
|
-
|
|
974
|
-
|
|
939
|
+
textContent: B(m.label)
|
|
940
|
+
}, null, 8, bt)) : O("", !0),
|
|
941
|
+
$("div", _t, [
|
|
942
|
+
m.options.length > 0 ? (g(!0), _(U, { key: 0 }, J(m.options, (A, I) => (g(), D(pt, E({ key: I }, v(A, I)), null, 16))), 128)) : C(m.$slots, "default", { key: 1 })
|
|
975
943
|
]),
|
|
976
|
-
|
|
944
|
+
ce(p(h), { class: "vv-input-checkbox-group__hint" })
|
|
977
945
|
], 2));
|
|
978
946
|
}
|
|
979
|
-
}),
|
|
947
|
+
}), Z = {
|
|
980
948
|
normal: "",
|
|
981
949
|
small: "small",
|
|
982
950
|
fullscreen: "fullscreen"
|
|
@@ -987,83 +955,83 @@ const bt = ["textContent"], _t = { class: "vv-input-checkbox-group__wrapper" },
|
|
|
987
955
|
transition: { type: String, default: "fade-block" },
|
|
988
956
|
size: {
|
|
989
957
|
type: String,
|
|
990
|
-
default:
|
|
991
|
-
validator: (e) => Object.values(
|
|
958
|
+
default: Z.normal,
|
|
959
|
+
validator: (e) => Object.values(Z).includes(e)
|
|
992
960
|
},
|
|
993
961
|
autoClose: { type: Boolean, default: !0 }
|
|
994
962
|
}, kt = {
|
|
995
963
|
key: 0,
|
|
996
964
|
class: "vv-dialog__header"
|
|
997
|
-
},
|
|
965
|
+
}, $t = ["onClick"], St = { class: "vv-dialog__content" }, At = {
|
|
998
966
|
key: 1,
|
|
999
967
|
class: "vv-dialog__footer"
|
|
1000
|
-
}, zt = /* @__PURE__ */
|
|
968
|
+
}, zt = /* @__PURE__ */ P({
|
|
1001
969
|
__name: "VvDialog",
|
|
1002
970
|
props: Ct,
|
|
1003
971
|
emits: Vt,
|
|
1004
|
-
setup(e, { emit:
|
|
1005
|
-
const t = e, r =
|
|
972
|
+
setup(e, { emit: n }) {
|
|
973
|
+
const t = e, r = X(t, "open", n), o = H(!0), a = H(null), l = y(() => {
|
|
1006
974
|
const { id: s } = t;
|
|
1007
975
|
return {
|
|
1008
976
|
id: s,
|
|
1009
|
-
open:
|
|
977
|
+
open: o.value
|
|
1010
978
|
};
|
|
1011
|
-
}),
|
|
979
|
+
}), u = y(() => ({
|
|
1012
980
|
"vv-dialog": !0,
|
|
1013
|
-
"vv-dialog--small": t.size ===
|
|
1014
|
-
"vv-dialog--fullscreen": t.size ===
|
|
1015
|
-
})), i =
|
|
981
|
+
"vv-dialog--small": t.size === Z.small,
|
|
982
|
+
"vv-dialog--fullscreen": t.size === Z.fullscreen
|
|
983
|
+
})), i = y(() => `vv-dialog--${t.transition}`), d = {
|
|
1016
984
|
"after-enter": () => {
|
|
1017
|
-
|
|
985
|
+
o.value = !0, n("open");
|
|
1018
986
|
},
|
|
1019
987
|
"after-leave": () => {
|
|
1020
|
-
|
|
988
|
+
o.value = !1, n("close");
|
|
1021
989
|
}
|
|
1022
990
|
};
|
|
1023
|
-
|
|
991
|
+
De(a, () => {
|
|
1024
992
|
t.autoClose && (r.value = !1);
|
|
1025
993
|
});
|
|
1026
|
-
function
|
|
994
|
+
function c() {
|
|
1027
995
|
r.value = !1;
|
|
1028
996
|
}
|
|
1029
|
-
return (s,
|
|
997
|
+
return (s, f) => (g(), D(Be, E({ name: p(i) }, we(d)), {
|
|
1030
998
|
default: ee(() => [
|
|
1031
|
-
|
|
1032
|
-
|
|
999
|
+
Pe($("dialog", E(p(l), { class: p(u) }), [
|
|
1000
|
+
$("article", {
|
|
1033
1001
|
ref_key: "modalWrapper",
|
|
1034
|
-
ref:
|
|
1002
|
+
ref: a,
|
|
1035
1003
|
class: "vv-dialog__wrapper"
|
|
1036
1004
|
}, [
|
|
1037
|
-
s.$slots.header || s.title ? (
|
|
1005
|
+
s.$slots.header || s.title ? (g(), _("header", kt, [
|
|
1038
1006
|
C(s.$slots, "header", {}, () => [
|
|
1039
|
-
|
|
1040
|
-
|
|
1007
|
+
j(B(s.title) + " ", 1),
|
|
1008
|
+
$("button", {
|
|
1041
1009
|
type: "button",
|
|
1042
1010
|
"aria-label": "Close",
|
|
1043
1011
|
class: "vv-dialog__close",
|
|
1044
|
-
onClick:
|
|
1012
|
+
onClick: Ge(c, ["prevent"])
|
|
1045
1013
|
}, [
|
|
1046
|
-
|
|
1047
|
-
], 8,
|
|
1014
|
+
ce(x, { name: "close" })
|
|
1015
|
+
], 8, $t)
|
|
1048
1016
|
])
|
|
1049
|
-
])) :
|
|
1050
|
-
|
|
1017
|
+
])) : O("", !0),
|
|
1018
|
+
$("div", St, [
|
|
1051
1019
|
C(s.$slots, "default")
|
|
1052
1020
|
]),
|
|
1053
|
-
s.$slots.footer ? (
|
|
1021
|
+
s.$slots.footer ? (g(), _("footer", At, [
|
|
1054
1022
|
C(s.$slots, "footer")
|
|
1055
|
-
])) :
|
|
1023
|
+
])) : O("", !0)
|
|
1056
1024
|
], 512)
|
|
1057
1025
|
], 16), [
|
|
1058
|
-
[
|
|
1026
|
+
[Ee, p(r)]
|
|
1059
1027
|
])
|
|
1060
1028
|
]),
|
|
1061
1029
|
_: 3
|
|
1062
1030
|
}, 16, ["name"]));
|
|
1063
1031
|
}
|
|
1064
|
-
}),
|
|
1065
|
-
...
|
|
1066
|
-
...
|
|
1032
|
+
}), Ot = {
|
|
1033
|
+
...oe,
|
|
1034
|
+
...z,
|
|
1067
1035
|
modelValue: [String, Array, Object],
|
|
1068
1036
|
labelNoResult: { type: String, default: "No results" },
|
|
1069
1037
|
options: {
|
|
@@ -1075,63 +1043,63 @@ const bt = ["textContent"], _t = { class: "vv-input-checkbox-group__wrapper" },
|
|
|
1075
1043
|
maxValues: [Number, String],
|
|
1076
1044
|
labelKey: { type: String, default: "label" },
|
|
1077
1045
|
valueKey: { type: String, default: "value" }
|
|
1078
|
-
},
|
|
1046
|
+
}, Bt = { key: 0 }, wt = ["for"], Pt = ["id", "type", "value", "checked", "disabled"], Kt = /* @__PURE__ */ P({
|
|
1079
1047
|
__name: "VvDropdown",
|
|
1080
|
-
props:
|
|
1048
|
+
props: Ot,
|
|
1081
1049
|
emits: ["update:modelValue"],
|
|
1082
|
-
setup(e, { emit:
|
|
1083
|
-
const t = e, r = te(), { modifiers:
|
|
1084
|
-
modifiers:
|
|
1085
|
-
disabled:
|
|
1050
|
+
setup(e, { emit: n }) {
|
|
1051
|
+
const t = e, r = te(), { modifiers: o, disabled: a } = S(t), { bemCssClasses: l } = w("vv-dropdown", {
|
|
1052
|
+
modifiers: o,
|
|
1053
|
+
disabled: a
|
|
1086
1054
|
});
|
|
1087
|
-
function
|
|
1055
|
+
function u(s) {
|
|
1088
1056
|
return Array.isArray(t.modelValue) ? b.contains(s, t.modelValue) || b.contains(i(s), t.modelValue) : b.equals(s, t.modelValue) || b.equals(i(s), t.modelValue);
|
|
1089
1057
|
}
|
|
1090
1058
|
function i(s) {
|
|
1091
1059
|
return typeof s == "string" ? s : String(s[t.valueKey]);
|
|
1092
1060
|
}
|
|
1093
|
-
function
|
|
1061
|
+
function d(s) {
|
|
1094
1062
|
return typeof s == "string" ? s : s[t.labelKey];
|
|
1095
1063
|
}
|
|
1096
|
-
function
|
|
1097
|
-
var
|
|
1098
|
-
const
|
|
1099
|
-
let
|
|
1100
|
-
if (
|
|
1101
|
-
(
|
|
1102
|
-
) : null) ||
|
|
1103
|
-
if (typeof t.maxValues < "u" && t.maxValues >= 0 && ((
|
|
1104
|
-
|
|
1064
|
+
function c(s) {
|
|
1065
|
+
var m, V;
|
|
1066
|
+
const f = s.target;
|
|
1067
|
+
let v = f.value;
|
|
1068
|
+
if (v = (t.useObject ? (m = t.options) == null ? void 0 : m.find(
|
|
1069
|
+
(A) => A[t.valueKey] == v
|
|
1070
|
+
) : null) || v, t.multiple) {
|
|
1071
|
+
if (typeof t.maxValues < "u" && t.maxValues >= 0 && ((V = t.modelValue) == null ? void 0 : V.length) >= t.maxValues && (Array.isArray(t.modelValue) && !b.contains(v, t.modelValue) || t.maxValues == 0)) {
|
|
1072
|
+
f.checked = !1;
|
|
1105
1073
|
return;
|
|
1106
1074
|
}
|
|
1107
|
-
Array.isArray(t.modelValue) ?
|
|
1075
|
+
Array.isArray(t.modelValue) ? v = b.contains(v, t.modelValue) ? b.removeFromList(v, t.modelValue) : [...t.modelValue, v] : v = [v];
|
|
1108
1076
|
}
|
|
1109
|
-
|
|
1077
|
+
n("update:modelValue", v);
|
|
1110
1078
|
}
|
|
1111
|
-
return (s,
|
|
1112
|
-
var
|
|
1113
|
-
return
|
|
1114
|
-
class:
|
|
1079
|
+
return (s, f) => {
|
|
1080
|
+
var v;
|
|
1081
|
+
return g(), _("ul", {
|
|
1082
|
+
class: N(p(l)),
|
|
1115
1083
|
role: "listbox"
|
|
1116
1084
|
}, [
|
|
1117
|
-
(
|
|
1118
|
-
|
|
1085
|
+
(v = s.options) != null && v.length ? O("", !0) : (g(), _("li", Bt, [
|
|
1086
|
+
$("label", null, B(s.labelNoResult), 1)
|
|
1119
1087
|
])),
|
|
1120
|
-
(
|
|
1121
|
-
var
|
|
1122
|
-
return
|
|
1123
|
-
|
|
1124
|
-
for: `dropdown-${
|
|
1088
|
+
(g(!0), _(U, null, J(s.options, (h, m) => {
|
|
1089
|
+
var V;
|
|
1090
|
+
return g(), _("li", { key: m }, [
|
|
1091
|
+
$("label", {
|
|
1092
|
+
for: `dropdown-${m}-${p(r)}`
|
|
1125
1093
|
}, [
|
|
1126
|
-
|
|
1127
|
-
id: `dropdown-${
|
|
1094
|
+
$("input", {
|
|
1095
|
+
id: `dropdown-${m}-${p(r)}`,
|
|
1128
1096
|
type: s.multiple ? "checkbox" : "radio",
|
|
1129
|
-
value: i(
|
|
1130
|
-
checked:
|
|
1131
|
-
disabled: typeof
|
|
1132
|
-
onInput:
|
|
1097
|
+
value: i(h),
|
|
1098
|
+
checked: u(h),
|
|
1099
|
+
disabled: typeof h == "object" ? (V = h.disabled) != null ? V : p(a) : p(a),
|
|
1100
|
+
onInput: c
|
|
1133
1101
|
}, null, 40, Pt),
|
|
1134
|
-
|
|
1102
|
+
j(" " + B(d(h)), 1)
|
|
1135
1103
|
], 8, wt)
|
|
1136
1104
|
]);
|
|
1137
1105
|
}), 128))
|
|
@@ -1141,7 +1109,7 @@ const bt = ["textContent"], _t = { class: "vv-input-checkbox-group__wrapper" },
|
|
|
1141
1109
|
});
|
|
1142
1110
|
export {
|
|
1143
1111
|
jt as VolverPlugin,
|
|
1144
|
-
|
|
1112
|
+
xe as VvAccordion,
|
|
1145
1113
|
Lt as VvAccordionGroup,
|
|
1146
1114
|
Ft as VvBadge,
|
|
1147
1115
|
Ht as VvBreadcrumb,
|