@codemonster-ru/vueforge 0.3.5 → 0.6.0
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/{LICENSE.md → LICENSE} +1 -1
- package/README.md +98 -2
- package/dist/index.css +1 -1
- package/dist/index.d.ts +5 -9
- package/dist/index.ts.mjs +1213 -701
- package/dist/index.ts.umd.js +3 -6
- package/dist/package/components/button.vue.d.ts +8 -2
- package/dist/package/components/checkbox.vue.d.ts +32 -0
- package/dist/package/components/input.vue.d.ts +49 -0
- package/dist/package/components/link.vue.d.ts +13 -3
- package/dist/package/components/menu.vue.d.ts +59 -2
- package/dist/package/components/popover.vue.d.ts +5 -0
- package/dist/package/components/select.vue.d.ts +39 -0
- package/dist/package/components/switch.vue.d.ts +32 -0
- package/dist/package/config/index.d.ts +19 -1
- package/dist/package/themes/default/base.d.ts +1 -0
- package/dist/package/themes/default/components/button.d.ts +2 -0
- package/dist/package/themes/default/components/checkbox.d.ts +14 -0
- package/dist/package/themes/default/components/input.d.ts +22 -0
- package/dist/package/themes/default/components/menu.d.ts +4 -0
- package/dist/package/themes/default/components/select.d.ts +35 -0
- package/dist/package/themes/default/components/switch.d.ts +14 -0
- package/dist/package/themes/default/index.d.ts +85 -18
- package/package.json +23 -7
- package/dist/package/components/container.vue.d.ts +0 -17
- package/dist/package/components/content.vue.d.ts +0 -17
- package/dist/package/components/demo.vue.d.ts +0 -17
- package/dist/package/components/footer.vue.d.ts +0 -17
- package/dist/package/components/header.vue.d.ts +0 -17
- package/dist/package/components/logo.vue.d.ts +0 -20
- package/dist/package/layouts/defaultLayout.vue.d.ts +0 -19
- package/dist/package/layouts/leftSidebarLayout.vue.d.ts +0 -17
- package/dist/package/themes/default/components/container.d.ts +0 -4
- package/dist/package/themes/default/components/content.d.ts +0 -2
- package/dist/package/themes/default/components/demo.d.ts +0 -2
- package/dist/package/themes/default/components/footer.d.ts +0 -9
- package/dist/package/themes/default/components/header.d.ts +0 -9
- package/dist/package/themes/default/components/logo.d.ts +0 -2
package/dist/index.ts.mjs
CHANGED
|
@@ -1,607 +1,214 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
return (e, a) => (r(), s("div", Y, [
|
|
6
|
-
S(g(Qo), null, {
|
|
7
|
-
default: _(() => [
|
|
8
|
-
u(e.$slots, "header")
|
|
9
|
-
]),
|
|
10
|
-
_: 3
|
|
11
|
-
}),
|
|
12
|
-
S(g(sr), null, {
|
|
13
|
-
default: _(() => [
|
|
14
|
-
u(e.$slots, "content")
|
|
15
|
-
]),
|
|
16
|
-
_: 3
|
|
17
|
-
}),
|
|
18
|
-
S(g(or), null, {
|
|
19
|
-
default: _(() => [
|
|
20
|
-
u(e.$slots, "footer")
|
|
21
|
-
]),
|
|
22
|
-
_: 3
|
|
23
|
-
})
|
|
24
|
-
]));
|
|
25
|
-
}
|
|
26
|
-
}), $ = (o, e) => {
|
|
27
|
-
const a = o.__vccOpts || o;
|
|
28
|
-
for (const [t, n] of e)
|
|
29
|
-
a[t] = n;
|
|
30
|
-
return a;
|
|
31
|
-
}, ee = {}, oe = { class: "vf-left-sidebar-flexbox" }, re = { class: "vf-left-sidebar" }, te = { class: "vf-main-content" };
|
|
32
|
-
function le(o, e) {
|
|
33
|
-
const a = E("router-view");
|
|
34
|
-
return r(), s("div", oe, [
|
|
35
|
-
i("div", re, [
|
|
36
|
-
u(o.$slots, "leftSidebar")
|
|
37
|
-
]),
|
|
38
|
-
i("div", te, [
|
|
39
|
-
S(a)
|
|
40
|
-
])
|
|
41
|
-
]);
|
|
42
|
-
}
|
|
43
|
-
const jr = /* @__PURE__ */ $(ee, [["render", le]]), ne = {}, se = { class: "vf-demo" };
|
|
44
|
-
function ae(o, e) {
|
|
45
|
-
return r(), s("div", se, [
|
|
46
|
-
u(o.$slots, "default")
|
|
47
|
-
]);
|
|
48
|
-
}
|
|
49
|
-
const Pr = /* @__PURE__ */ $(ne, [["render", ae]]);
|
|
50
|
-
/*!
|
|
51
|
-
* vue-router v4.5.0
|
|
52
|
-
* (c) 2024 Eduardo San Martin Morote
|
|
53
|
-
* @license MIT
|
|
54
|
-
*/
|
|
55
|
-
var L;
|
|
56
|
-
(function(o) {
|
|
57
|
-
o.pop = "pop", o.push = "push";
|
|
58
|
-
})(L || (L = {}));
|
|
59
|
-
var V;
|
|
60
|
-
(function(o) {
|
|
61
|
-
o.back = "back", o.forward = "forward", o.unknown = "";
|
|
62
|
-
})(V || (V = {}));
|
|
63
|
-
Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
|
|
64
|
-
var N;
|
|
65
|
-
(function(o) {
|
|
66
|
-
o[o.aborted = 4] = "aborted", o[o.cancelled = 8] = "cancelled", o[o.duplicated = 16] = "duplicated";
|
|
67
|
-
})(N || (N = {}));
|
|
68
|
-
Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : "");
|
|
69
|
-
Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : "");
|
|
70
|
-
Symbol(process.env.NODE_ENV !== "production" ? "router" : "");
|
|
71
|
-
const ce = Symbol(process.env.NODE_ENV !== "production" ? "route location" : "");
|
|
72
|
-
Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
|
|
73
|
-
function ie(o) {
|
|
74
|
-
return H(ce);
|
|
75
|
-
}
|
|
76
|
-
const ue = ["href"], T = /* @__PURE__ */ F({
|
|
1
|
+
import { defineComponent as X, ref as N, computed as w, watch as le, resolveComponent as be, openBlock as g, createElementBlock as h, normalizeClass as C, renderSlot as k, Fragment as oe, createTextVNode as J, toDisplayString as M, createBlock as W, withCtx as I, createCommentVNode as _, createElementVNode as B, renderList as ge, withKeys as K, withModifiers as G, unref as U, createVNode as he, nextTick as de, onMounted as Re, onBeforeUnmount as Se, Teleport as Le, withDirectives as me, vShow as ye, reactive as Ve, createSlots as ze } from "vue";
|
|
2
|
+
import { useRoute as We, useRouter as Me } from "vue-router";
|
|
3
|
+
import { CmIcon as Z } from "@codemonster-ru/vueiconify";
|
|
4
|
+
const He = ["href", "aria-disabled", "tabindex"], ke = /* @__PURE__ */ X({
|
|
77
5
|
__name: "link",
|
|
78
6
|
props: {
|
|
79
|
-
to: { default:
|
|
7
|
+
to: { default: void 0 },
|
|
8
|
+
href: { default: void 0 },
|
|
80
9
|
url: { default: void 0 },
|
|
81
|
-
|
|
10
|
+
as: { default: void 0 },
|
|
11
|
+
type: { default: void 0 },
|
|
82
12
|
label: { default: "" },
|
|
83
13
|
active: { type: Boolean },
|
|
84
14
|
disabled: { type: Boolean }
|
|
85
15
|
},
|
|
86
|
-
emits: ["onActive"],
|
|
87
|
-
setup(
|
|
88
|
-
const
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
16
|
+
emits: ["click", "active", "update:active", "onActive"],
|
|
17
|
+
setup(t, { emit: e }) {
|
|
18
|
+
const r = e, o = t, n = We(), c = Me(), s = N(null), i = w(() => o.href ?? o.url), l = w(() => o.as ? o.as === "router-link" && !o.to ? "a" : o.as : o.type === "router-link" || o.type === "a" ? o.type === "router-link" && !o.to ? "a" : o.type : o.to ? "router-link" : "a"), u = w(() => o.to), d = w(() => o.to ? c.resolve(o.to) : null), a = w(() => {
|
|
19
|
+
if (l.value !== "router-link")
|
|
20
|
+
return !1;
|
|
21
|
+
const p = d.value;
|
|
22
|
+
return p ? p.name ? n.matched.some(({ name: y }) => y === p.name) : p.fullPath ? n.fullPath === p.fullPath : n.path === p.path : !1;
|
|
23
|
+
}), v = w(() => o.active === void 0 ? a.value : o.active), f = (p) => {
|
|
24
|
+
if (!o.disabled) {
|
|
25
|
+
r("click", p);
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
p.preventDefault(), p.stopPropagation();
|
|
29
|
+
};
|
|
30
|
+
return le(a, (p) => {
|
|
31
|
+
p && (r("active"), r("onActive")), r("update:active", p);
|
|
32
|
+
}), (p, y) => {
|
|
33
|
+
const m = be("router-link");
|
|
34
|
+
return l.value === "a" ? (g(), h("a", {
|
|
92
35
|
key: 0,
|
|
93
|
-
href:
|
|
94
|
-
class:
|
|
36
|
+
href: i.value,
|
|
37
|
+
class: C(["vf-link", { "vf-link_active": v.value, "vf-link_disabled": p.disabled }]),
|
|
38
|
+
"aria-disabled": p.disabled,
|
|
39
|
+
tabindex: p.disabled ? -1 : void 0,
|
|
40
|
+
onClick: f
|
|
95
41
|
}, [
|
|
96
|
-
|
|
97
|
-
|
|
42
|
+
p.$slots.default ? k(p.$slots, "default", { key: 0 }) : (g(), h(oe, { key: 1 }, [
|
|
43
|
+
J(M(p.label), 1)
|
|
98
44
|
], 64))
|
|
99
|
-
], 10,
|
|
45
|
+
], 10, He)) : (g(), W(m, {
|
|
100
46
|
key: 1,
|
|
101
47
|
ref_key: "link",
|
|
102
|
-
ref:
|
|
103
|
-
to:
|
|
104
|
-
class:
|
|
105
|
-
disabled:
|
|
48
|
+
ref: s,
|
|
49
|
+
to: u.value,
|
|
50
|
+
class: C(["vf-link", { "vf-link_active": v.value }]),
|
|
51
|
+
"aria-disabled": p.disabled,
|
|
52
|
+
tabindex: p.disabled ? -1 : void 0,
|
|
106
53
|
"active-class": "vf-link_partially-active",
|
|
107
|
-
"exact-active-class": "vf-link_active"
|
|
54
|
+
"exact-active-class": "vf-link_active",
|
|
55
|
+
onClick: f
|
|
108
56
|
}, {
|
|
109
|
-
default:
|
|
110
|
-
|
|
111
|
-
|
|
57
|
+
default: I(() => [
|
|
58
|
+
p.$slots.default ? k(p.$slots, "default", { key: 0 }) : (g(), h(oe, { key: 1 }, [
|
|
59
|
+
J(M(p.label), 1)
|
|
112
60
|
], 64))
|
|
113
61
|
]),
|
|
114
62
|
_: 3
|
|
115
|
-
}, 8, ["to", "class", "disabled"]));
|
|
63
|
+
}, 8, ["to", "class", "aria-disabled", "tabindex"]));
|
|
116
64
|
};
|
|
117
65
|
}
|
|
118
|
-
}),
|
|
66
|
+
}), Oe = (t, e) => {
|
|
67
|
+
const r = t.__vccOpts || t;
|
|
68
|
+
for (const [o, n] of e)
|
|
69
|
+
r[o] = n;
|
|
70
|
+
return r;
|
|
71
|
+
}, Ee = {}, Pe = { class: "vf-card" }, Ae = {
|
|
119
72
|
key: 0,
|
|
120
73
|
class: "vf-card__default"
|
|
121
|
-
},
|
|
74
|
+
}, De = {
|
|
122
75
|
key: 1,
|
|
123
76
|
class: "vf-card__header"
|
|
124
|
-
},
|
|
77
|
+
}, Ne = {
|
|
125
78
|
key: 2,
|
|
126
79
|
class: "vf-card__body"
|
|
127
|
-
},
|
|
80
|
+
}, Ie = {
|
|
128
81
|
key: 3,
|
|
129
82
|
class: "vf-card__footer"
|
|
130
83
|
};
|
|
131
|
-
function
|
|
132
|
-
return
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
])) :
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
])) :
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
])) :
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
])) :
|
|
84
|
+
function je(t, e) {
|
|
85
|
+
return g(), h("div", Pe, [
|
|
86
|
+
t.$slots.default ? (g(), h("div", Ae, [
|
|
87
|
+
k(t.$slots, "default")
|
|
88
|
+
])) : _("", !0),
|
|
89
|
+
t.$slots.header ? (g(), h("div", De, [
|
|
90
|
+
k(t.$slots, "header")
|
|
91
|
+
])) : _("", !0),
|
|
92
|
+
t.$slots.body ? (g(), h("div", Ne, [
|
|
93
|
+
k(t.$slots, "body")
|
|
94
|
+
])) : _("", !0),
|
|
95
|
+
t.$slots.footer ? (g(), h("div", Ie, [
|
|
96
|
+
k(t.$slots, "footer")
|
|
97
|
+
])) : _("", !0)
|
|
145
98
|
]);
|
|
146
99
|
}
|
|
147
|
-
const
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
url: { default: void 0 },
|
|
152
|
-
src: {},
|
|
153
|
-
alt: { default: void 0 },
|
|
154
|
-
type: { default: "" },
|
|
155
|
-
dark: { type: Boolean },
|
|
156
|
-
width: { default: void 0 },
|
|
157
|
-
height: { default: void 0 }
|
|
158
|
-
},
|
|
159
|
-
setup(o) {
|
|
160
|
-
const e = o, a = w(() => Array.isArray(e.src) ? e.dark ? e.src[1] : e.src[0] : e.src);
|
|
161
|
-
return (t, n) => (r(), s("div", me, [
|
|
162
|
-
t.type.length ? (r(), y(g(T), {
|
|
163
|
-
key: 0,
|
|
164
|
-
type: t.type,
|
|
165
|
-
to: t.to,
|
|
166
|
-
url: t.url
|
|
167
|
-
}, {
|
|
168
|
-
default: _(() => [
|
|
169
|
-
i("img", {
|
|
170
|
-
src: a.value,
|
|
171
|
-
width: t.width,
|
|
172
|
-
height: t.height,
|
|
173
|
-
alt: t.alt
|
|
174
|
-
}, null, 8, ye)
|
|
175
|
-
]),
|
|
176
|
-
_: 1
|
|
177
|
-
}, 8, ["type", "to", "url"])) : (r(), s("img", {
|
|
178
|
-
key: 1,
|
|
179
|
-
src: a.value,
|
|
180
|
-
width: t.width,
|
|
181
|
-
height: t.height,
|
|
182
|
-
alt: t.alt
|
|
183
|
-
}, null, 8, Ce))
|
|
184
|
-
]));
|
|
185
|
-
}
|
|
186
|
-
}), p = (o, e) => {
|
|
187
|
-
const a = o.__vccOpts || o;
|
|
188
|
-
for (const [t, n] of e)
|
|
189
|
-
a[t] = n;
|
|
190
|
-
return a;
|
|
191
|
-
}, we = {}, ke = {
|
|
192
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
193
|
-
viewBox: "0 0 512 512",
|
|
194
|
-
fill: "none",
|
|
195
|
-
width: "16",
|
|
196
|
-
height: "16"
|
|
197
|
-
};
|
|
198
|
-
function Fe(o, e) {
|
|
199
|
-
return r(), s("svg", ke, e[0] || (e[0] = [
|
|
200
|
-
q('<circle fill="currentColor" cx="256" cy="256" r="128"></circle><rect fill="currentColor" y="240.03" width="96" height="31.94"></rect><rect fill="currentColor" x="416" y="240.03" width="96" height="31.94"></rect><rect fill="currentColor" x="239.95" width="32.1" height="96"></rect><polygon fill="currentColor" points="240 416 272 416 272 512 240.06 512 240 416"></polygon><rect fill="currentColor" x="93.09" y="60.96" width="31.94" height="96" transform="translate(-45.1 109.03) rotate(-45)"></rect><rect fill="currentColor" x="355.02" y="92.75" width="96" height="32.1" transform="translate(41.11 316.85) rotate(-45)"></rect><polygon fill="currentColor" points="357.08 380.39 379.71 357.76 447.59 425.65 425 448.23 357.08 380.39"></polygon><polygon fill="currentColor" points="131.75 357.04 154.37 379.67 86.49 447.55 63.9 424.96 131.75 357.04"></polygon>', 9)
|
|
201
|
-
]));
|
|
202
|
-
}
|
|
203
|
-
const $e = /* @__PURE__ */ p(we, [["render", Fe]]), Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
204
|
-
__proto__: null,
|
|
205
|
-
default: $e
|
|
206
|
-
}, Symbol.toStringTag, { value: "Module" })), Se = {}, Oe = {
|
|
207
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
208
|
-
viewBox: "0 0 512 512",
|
|
209
|
-
fill: "none",
|
|
210
|
-
width: "16",
|
|
211
|
-
height: "16"
|
|
212
|
-
};
|
|
213
|
-
function je(o, e) {
|
|
214
|
-
return r(), s("svg", Oe, e[0] || (e[0] = [
|
|
215
|
-
i("path", {
|
|
216
|
-
fill: "currentColor",
|
|
217
|
-
d: "m352,448c-123.71,0-224-100.29-224-224,0-107.81,76.16-197.81,177.61-219.18-16.05-3.15-32.64-4.82-49.61-4.82C114.62,0,0,114.62,0,256s114.62,256,256,256c75.54,0,143.44-32.73,190.3-84.77-28.66,13.32-60.61,20.77-94.3,20.77Z"
|
|
218
|
-
}, null, -1)
|
|
219
|
-
]));
|
|
220
|
-
}
|
|
221
|
-
const Pe = /* @__PURE__ */ p(Se, [["render", je]]), Me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
222
|
-
__proto__: null,
|
|
223
|
-
default: Pe
|
|
224
|
-
}, Symbol.toStringTag, { value: "Module" })), ze = {}, xe = {
|
|
225
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
226
|
-
viewBox: "0 0 512 512",
|
|
227
|
-
fill: "none",
|
|
228
|
-
width: "16",
|
|
229
|
-
height: "16"
|
|
230
|
-
};
|
|
231
|
-
function Te(o, e) {
|
|
232
|
-
return r(), s("svg", xe, e[0] || (e[0] = [
|
|
233
|
-
i("path", {
|
|
234
|
-
fill: "currentColor",
|
|
235
|
-
d: "M32,160h448c32.5,0,31.5-32,31.5-32s0-32-31.5-32H32c-32.5,0-31.5,32-31.5,32S-0.5,160,32,160z"
|
|
236
|
-
}, null, -1),
|
|
237
|
-
i("path", {
|
|
238
|
-
fill: "currentColor",
|
|
239
|
-
d: "M32,288h448c32.5,0,31.5-32,31.5-32s0-32-31.5-32H32c-32.5,0-31.5,32-31.5,32S-0.5,288,32,288z"
|
|
240
|
-
}, null, -1),
|
|
241
|
-
i("path", {
|
|
242
|
-
fill: "currentColor",
|
|
243
|
-
d: "M32,415.5h448c32.5,0,31.5-32,31.5-32s0-32-31.5-32H32c-32.5,0-31.5,32-31.5,32S-0.5,415.5,32,415.5z"
|
|
244
|
-
}, null, -1)
|
|
245
|
-
]));
|
|
246
|
-
}
|
|
247
|
-
const Le = /* @__PURE__ */ p(ze, [["render", Te]]), Ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
248
|
-
__proto__: null,
|
|
249
|
-
default: Le
|
|
250
|
-
}, Symbol.toStringTag, { value: "Module" })), Ne = {}, Re = {
|
|
251
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
252
|
-
viewBox: "0 0 512 512",
|
|
253
|
-
fill: "none",
|
|
254
|
-
width: "16",
|
|
255
|
-
height: "16"
|
|
256
|
-
};
|
|
257
|
-
function De(o, e) {
|
|
258
|
-
return r(), s("svg", Re, e[0] || (e[0] = [
|
|
259
|
-
i("path", {
|
|
260
|
-
fill: "currentColor",
|
|
261
|
-
d: "m33,512h447c21.33,1,32-10.67,32-35,0-128-106.67-189-192-189h-128C106.67,288,0,352,0,480c-.11,21.99,11.33,32.21,33,32Z"
|
|
262
|
-
}, null, -1),
|
|
263
|
-
i("circle", {
|
|
264
|
-
fill: "currentColor",
|
|
265
|
-
cx: "256",
|
|
266
|
-
cy: "127",
|
|
267
|
-
r: "127"
|
|
268
|
-
}, null, -1)
|
|
269
|
-
]));
|
|
270
|
-
}
|
|
271
|
-
const Ee = /* @__PURE__ */ p(Ne, [["render", De]]), Ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
272
|
-
__proto__: null,
|
|
273
|
-
default: Ee
|
|
274
|
-
}, Symbol.toStringTag, { value: "Module" })), Ae = {}, He = {
|
|
275
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
276
|
-
viewBox: "0 0 512 512",
|
|
277
|
-
fill: "none",
|
|
278
|
-
width: "16",
|
|
279
|
-
height: "16"
|
|
280
|
-
};
|
|
281
|
-
function Ie(o, e) {
|
|
282
|
-
return r(), s("svg", He, e[0] || (e[0] = [
|
|
283
|
-
i("path", {
|
|
284
|
-
fill: "currentColor",
|
|
285
|
-
d: "m220.45,16.12c18.29-17.75,38.39-24.95,64,0l208.5,192.5c20.88,21.19,15,47-17,47l-31.5.5v224c.04,21.44-10.88,32.07-32.32,32.32h-63.85c-21.36-.51-31.86-11.38-32.07-32.07v-128.25c.21-21.63-10.58-32.08-31.88-31.88h-63.88c-21.48-.1-32.04,10.63-31.94,31.94v127.94c-.11,21.25-10.59,31.95-31.77,31.77h-64c-22.05.21-32.5-10.69-32.03-32.03v-223.74l-31.76-.5c-33,0-37-26.88-16-47L220.45,16.12Z"
|
|
286
|
-
}, null, -1)
|
|
287
|
-
]));
|
|
288
|
-
}
|
|
289
|
-
const Ue = /* @__PURE__ */ p(Ae, [["render", Ie]]), Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
290
|
-
__proto__: null,
|
|
291
|
-
default: Ue
|
|
292
|
-
}, Symbol.toStringTag, { value: "Module" })), qe = {}, Ge = {
|
|
293
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
294
|
-
viewBox: "0 0 512 512",
|
|
295
|
-
fill: "none",
|
|
296
|
-
width: "16",
|
|
297
|
-
height: "16"
|
|
298
|
-
};
|
|
299
|
-
function We(o, e) {
|
|
300
|
-
return r(), s("svg", Ge, e[0] || (e[0] = [
|
|
301
|
-
i("path", {
|
|
302
|
-
fill: "currentColor",
|
|
303
|
-
d: "m496.36,59.31c15.08-15.08,15.08-32.92,0-48s-24.92-15.08-40,0L192.33,275.63,56.57,139.87c-15.08-15.08-30.17-15.09-45.25,0-15.08,15.08-15.09,30.17,0,45.25l158.39,158.39c15.08,15.08,30.17,15.09,45.25,0L496.36,59.31Z"
|
|
304
|
-
}, null, -1)
|
|
305
|
-
]));
|
|
306
|
-
}
|
|
307
|
-
const Je = /* @__PURE__ */ p(qe, [["render", We]]), Qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
308
|
-
__proto__: null,
|
|
309
|
-
default: Je
|
|
310
|
-
}, Symbol.toStringTag, { value: "Module" })), Xe = {}, Ye = {
|
|
311
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
312
|
-
viewBox: "0 0 512 512",
|
|
313
|
-
fill: "none",
|
|
314
|
-
width: "16",
|
|
315
|
-
height: "16"
|
|
316
|
-
};
|
|
317
|
-
function eo(o, e) {
|
|
318
|
-
return r(), s("svg", Ye, e[0] || (e[0] = [
|
|
319
|
-
i("g", null, [
|
|
320
|
-
i("path", { d: "m256,507c-67.04,0-130.08-26.11-177.48-73.52S5,323.04,5,256,31.11,125.92,78.52,78.52,188.96,5,256,5s130.08,26.11,177.48,73.52,73.52,110.44,73.52,177.48-26.11,130.08-73.52,177.48-110.44,73.52-177.48,73.52Z" }),
|
|
321
|
-
i("path", {
|
|
322
|
-
fill: "currentColor",
|
|
323
|
-
d: "m256,10c33.21,0,65.43,6.5,95.75,19.33,29.29,12.39,55.6,30.13,78.2,52.72s40.33,48.9,52.72,78.2c12.82,30.32,19.33,62.54,19.33,95.75s-6.5,65.43-19.33,95.75c-12.39,29.29-30.13,55.6-52.72,78.2s-48.9,40.33-78.2,52.72c-30.32,12.82-62.54,19.33-95.75,19.33s-65.43-6.5-95.75-19.33c-29.29-12.39-55.6-30.13-78.2-52.72s-40.33-48.9-52.72-78.2c-12.82-30.32-19.33-62.54-19.33-95.75s6.5-65.43,19.33-95.75c12.39-29.29,30.13-55.6,52.72-78.2s48.9-40.33,78.2-52.72c30.32-12.82,62.54-19.33,95.75-19.33m0-10C114.62,0,0,114.62,0,256s114.62,256,256,256,256-114.62,256-256S397.38,0,256,0h0Z"
|
|
324
|
-
})
|
|
325
|
-
], -1),
|
|
326
|
-
i("path", {
|
|
327
|
-
fill: "currentColor",
|
|
328
|
-
d: "m257.5,9.5v495C102.44,488.3,21.16,410.81,8.5,248.5,16.5,128.5,98.26,27.89,257.5,9.5Z"
|
|
329
|
-
}, null, -1)
|
|
330
|
-
]));
|
|
331
|
-
}
|
|
332
|
-
const oo = /* @__PURE__ */ p(Xe, [["render", eo]]), ro = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
333
|
-
__proto__: null,
|
|
334
|
-
default: oo
|
|
335
|
-
}, Symbol.toStringTag, { value: "Module" })), to = {}, lo = {
|
|
336
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
337
|
-
viewBox: "0 0 512 512",
|
|
338
|
-
fill: "none",
|
|
339
|
-
width: "16",
|
|
340
|
-
height: "16"
|
|
341
|
-
};
|
|
342
|
-
function no(o, e) {
|
|
343
|
-
return r(), s("svg", lo, e[0] || (e[0] = [
|
|
344
|
-
i("path", {
|
|
345
|
-
fill: "currentColor",
|
|
346
|
-
d: "m256,480c-119.85,0-217.71-94.12-223.71-212.48C25.72,137.84,131.42,29.08,261.23,32.06c58.54,1.34,111.52,25.16,150.69,63.15.02.02.06.02.08,0l22.54-22.54s.02-.06,0-.08C384.4,23.77,314.35-4.69,237.7.64,111.85,9.39,10.68,109.56.81,235.33c-11.82,150.71,106.97,276.67,255.19,276.67,94.72,0,197.27-90.53,208-112,8-16-16-24-24.17-16-17.03,16.67-107.72,96-183.83,96Z"
|
|
347
|
-
}, null, -1),
|
|
348
|
-
i("path", {
|
|
349
|
-
fill: "currentColor",
|
|
350
|
-
d: "m487,139.34V43.37c0-10.38-12.55-15.58-19.9-8.24l-95.97,95.97c-7.34,7.34-2.14,19.9,8.24,19.9h95.97c6.44,0,11.66-5.22,11.66-11.66Z"
|
|
351
|
-
}, null, -1)
|
|
352
|
-
]));
|
|
353
|
-
}
|
|
354
|
-
const so = /* @__PURE__ */ p(to, [["render", no]]), ao = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
355
|
-
__proto__: null,
|
|
356
|
-
default: so
|
|
357
|
-
}, Symbol.toStringTag, { value: "Module" })), co = {}, io = {
|
|
358
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
359
|
-
viewBox: "0 0 512 512",
|
|
360
|
-
fill: "none",
|
|
361
|
-
width: "16",
|
|
362
|
-
height: "16"
|
|
363
|
-
};
|
|
364
|
-
function uo(o, e) {
|
|
365
|
-
return r(), s("svg", io, e[0] || (e[0] = [
|
|
366
|
-
i("path", {
|
|
367
|
-
fill: "currentColor",
|
|
368
|
-
d: "M279.6 158.3l168.1 168.1c16.1 16.1-.1 32.5-.1 32.5s-16 15.4-31.9-.5L256.1 198.8l-160 160c-16 16-31.5-.5-31.5-.5s-16.5-15.5-.5-31.5l168.5-168.5c16-16 31-16 47 0z"
|
|
369
|
-
}, null, -1)
|
|
370
|
-
]));
|
|
371
|
-
}
|
|
372
|
-
const vo = /* @__PURE__ */ p(co, [["render", uo]]), fo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
373
|
-
__proto__: null,
|
|
374
|
-
default: vo
|
|
375
|
-
}, Symbol.toStringTag, { value: "Module" })), ho = {}, po = {
|
|
376
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
377
|
-
viewBox: "0 0 512 512",
|
|
378
|
-
fill: "none",
|
|
379
|
-
width: "16",
|
|
380
|
-
height: "16"
|
|
381
|
-
};
|
|
382
|
-
function go(o, e) {
|
|
383
|
-
return r(), s("svg", po, e[0] || (e[0] = [
|
|
384
|
-
i("path", {
|
|
385
|
-
fill: "currentColor",
|
|
386
|
-
d: "M232.4,353.7L64.3,185.6c-16.1-16.1,0.1-32.5,0.1-32.5s16-15.4,31.9,0.5l159.6,159.6l160-160 c16-16,31.5,0.5,31.5,0.5s16.5,15.5,0.5,31.5c-13,13-168.5,168.5-168.5,168.5C263.4,369.7,248.4,369.7,232.4,353.7z"
|
|
387
|
-
}, null, -1)
|
|
388
|
-
]));
|
|
389
|
-
}
|
|
390
|
-
const bo = /* @__PURE__ */ p(ho, [["render", go]]), _o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
391
|
-
__proto__: null,
|
|
392
|
-
default: bo
|
|
393
|
-
}, Symbol.toStringTag, { value: "Module" })), mo = {}, yo = {
|
|
394
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
395
|
-
viewBox: "0 0 512 512",
|
|
396
|
-
fill: "none",
|
|
397
|
-
width: "16",
|
|
398
|
-
height: "16"
|
|
399
|
-
};
|
|
400
|
-
function Co(o, e) {
|
|
401
|
-
return r(), s("svg", yo, e[0] || (e[0] = [
|
|
402
|
-
i("path", {
|
|
403
|
-
fill: "currentColor",
|
|
404
|
-
d: "M158.3,232.4L326.4,64.3c16.1-16.1,32.5,0.1,32.5,0.1s15.4,16-0.5,31.9L198.8,255.9l160,160 c16,16-0.5,31.5-0.5,31.5s-15.5,16.5-31.5,0.5c-13-13-168.5-168.5-168.5-168.5C142.3,263.4,142.3,248.4,158.3,232.4z"
|
|
405
|
-
}, null, -1)
|
|
406
|
-
]));
|
|
407
|
-
}
|
|
408
|
-
const wo = /* @__PURE__ */ p(mo, [["render", Co]]), ko = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
409
|
-
__proto__: null,
|
|
410
|
-
default: wo
|
|
411
|
-
}, Symbol.toStringTag, { value: "Module" })), Fo = {}, $o = {
|
|
412
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
413
|
-
viewBox: "0 0 512 512",
|
|
414
|
-
fill: "none",
|
|
415
|
-
width: "16",
|
|
416
|
-
height: "16"
|
|
417
|
-
};
|
|
418
|
-
function Bo(o, e) {
|
|
419
|
-
return r(), s("svg", $o, e[0] || (e[0] = [
|
|
420
|
-
i("path", {
|
|
421
|
-
fill: "currentColor",
|
|
422
|
-
d: "M353.7,279.6L185.6,447.7c-16.1,16.1-32.5-0.1-32.5-0.1s-15.4-16,0.5-31.9l159.6-159.6l-160-160 c-16-16,0.5-31.5,0.5-31.5s15.5-16.5,31.5-0.5c13,13,168.5,168.5,168.5,168.5C369.7,248.6,369.7,263.6,353.7,279.6z"
|
|
423
|
-
}, null, -1)
|
|
424
|
-
]));
|
|
425
|
-
}
|
|
426
|
-
const So = /* @__PURE__ */ p(Fo, [["render", Bo]]), Oo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
427
|
-
__proto__: null,
|
|
428
|
-
default: So
|
|
429
|
-
}, Symbol.toStringTag, { value: "Module" })), jo = {}, Po = {
|
|
430
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
431
|
-
viewBox: "0 0 512 512",
|
|
432
|
-
fill: "none",
|
|
433
|
-
width: "16",
|
|
434
|
-
height: "16"
|
|
435
|
-
};
|
|
436
|
-
function Mo(o, e) {
|
|
437
|
-
return r(), s("svg", Po, e[0] || (e[0] = [
|
|
438
|
-
i("path", {
|
|
439
|
-
fill: "currentColor",
|
|
440
|
-
d: "m484,508c5.66,5.66,18.34,5.66,24,0,5.66-5.66,5.66-18.34,0-24l-171.29-168.5-22.63,22.63,169.91,169.87Z"
|
|
441
|
-
}, null, -1),
|
|
442
|
-
i("path", {
|
|
443
|
-
fill: "currentColor",
|
|
444
|
-
d: "m327.76,56.24c-74.98-74.98-196.55-74.98-271.53,0s-74.98,196.55,0,271.53c74.98,74.98,196.55,74.98,271.53,0,74.98-74.98,74.98-196.55,0-271.53Zm-22.63,248.9c-62.48,62.48-163.79,62.48-226.27,0s-62.48-163.79,0-226.27,163.79-62.48,226.27,0,62.48,163.79,0,226.27Z"
|
|
445
|
-
}, null, -1)
|
|
446
|
-
]));
|
|
447
|
-
}
|
|
448
|
-
const zo = /* @__PURE__ */ p(jo, [["render", Mo]]), xo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
449
|
-
__proto__: null,
|
|
450
|
-
default: zo
|
|
451
|
-
}, Symbol.toStringTag, { value: "Module" })), To = {}, Lo = {
|
|
452
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
453
|
-
viewBox: "0 0 512 512",
|
|
454
|
-
fill: "none",
|
|
455
|
-
width: "16",
|
|
456
|
-
height: "16"
|
|
457
|
-
};
|
|
458
|
-
function Vo(o, e) {
|
|
459
|
-
return r(), s("svg", Lo, e[0] || (e[0] = [
|
|
460
|
-
i("path", {
|
|
461
|
-
fill: "currentColor",
|
|
462
|
-
d: "m345.37.69c-5.57-1.85-11.6,1.15-13.47,6.72l-3.4,10.11c-1.88,5.58,1.12,11.63,6.71,13.51l-.46-.15c84.86,31.87,145.26,113.74,145.26,209.74,0,123.71-100.29,224-224,224S32,364.33,32,240.62c0-96.23,60.69-178.26,145.87-209.97l-.94.3c5.6-1.82,8.67-7.84,6.85-13.44l-3.3-10.14c-1.81-5.56-7.74-8.61-13.31-6.88C69.58,36.6,0,130.47,0,240.62c0,141.38,114.62,256,256,256s256-114.62,256-256c0-109.94-69.32-203.66-166.63-239.92Z"
|
|
463
|
-
}, null, -1)
|
|
464
|
-
]));
|
|
465
|
-
}
|
|
466
|
-
const No = /* @__PURE__ */ p(To, [["render", Vo]]), Ro = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
467
|
-
__proto__: null,
|
|
468
|
-
default: No
|
|
469
|
-
}, Symbol.toStringTag, { value: "Module" })), Do = (o, e, a) => {
|
|
470
|
-
const t = o[e];
|
|
471
|
-
return t ? typeof t == "function" ? t() : Promise.resolve(t) : new Promise((n, l) => {
|
|
472
|
-
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
473
|
-
l.bind(
|
|
474
|
-
null,
|
|
475
|
-
new Error(
|
|
476
|
-
"Unknown variable dynamic import: " + e + (e.split("/").length !== a ? ". Note that variables only represent file names one level deep." : "")
|
|
477
|
-
)
|
|
478
|
-
)
|
|
479
|
-
);
|
|
480
|
-
});
|
|
481
|
-
}, Eo = ["bars", "check", "chevronDown", "chevronLeft", "chevronRight", "chevronUp", "circleHalf", "circleNotch", "house", "magnifyingGlass", "moon", "rotateRight", "sun", "user"], Zo = {
|
|
482
|
-
list: Eo
|
|
483
|
-
}, Ao = /* @__PURE__ */ F({
|
|
484
|
-
__name: "icon",
|
|
485
|
-
props: {
|
|
486
|
-
icon: {
|
|
487
|
-
type: String,
|
|
488
|
-
default: "moon",
|
|
489
|
-
validator: (o) => Zo.list.indexOf(o) > -1
|
|
490
|
-
},
|
|
491
|
-
spin: {
|
|
492
|
-
type: Boolean,
|
|
493
|
-
default: !1
|
|
494
|
-
}
|
|
495
|
-
},
|
|
496
|
-
setup(o) {
|
|
497
|
-
const e = o, a = w(() => {
|
|
498
|
-
const n = e.icon;
|
|
499
|
-
return U(() => Do(/* @__PURE__ */ Object.assign({ "./bars.vue": () => Promise.resolve().then(() => Ve), "./check.vue": () => Promise.resolve().then(() => Qe), "./chevronDown.vue": () => Promise.resolve().then(() => _o), "./chevronLeft.vue": () => Promise.resolve().then(() => ko), "./chevronRight.vue": () => Promise.resolve().then(() => Oo), "./chevronUp.vue": () => Promise.resolve().then(() => fo), "./circleHalf.vue": () => Promise.resolve().then(() => ro), "./circleNotch.vue": () => Promise.resolve().then(() => Ro), "./house.vue": () => Promise.resolve().then(() => Ke), "./icon.vue": () => Promise.resolve().then(() => Ho), "./magnifyingGlass.vue": () => Promise.resolve().then(() => xo), "./moon.vue": () => Promise.resolve().then(() => Me), "./rotateRight.vue": () => Promise.resolve().then(() => ao), "./sun.vue": () => Promise.resolve().then(() => Be), "./user.vue": () => Promise.resolve().then(() => Ze) }), `./${n}.vue`, 2));
|
|
500
|
-
}), t = w(() => {
|
|
501
|
-
let n = ["cm-icon"];
|
|
502
|
-
return e.spin && n.push("cm-icon_animations_spin"), n;
|
|
503
|
-
});
|
|
504
|
-
return (n, l) => (r(), y(K(a.value), {
|
|
505
|
-
class: h(t.value)
|
|
506
|
-
}, null, 8, ["class"]));
|
|
507
|
-
}
|
|
508
|
-
}), k = /* @__PURE__ */ p(Ao, [["__scopeId", "data-v-e8b1cecb"]]), Ho = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
509
|
-
__proto__: null,
|
|
510
|
-
default: k
|
|
511
|
-
}, Symbol.toStringTag, { value: "Module" })), Io = { class: "vf-menu__list" }, Uo = {
|
|
100
|
+
const Xe = /* @__PURE__ */ Oe(Ee, [["render", je]]), Ye = {
|
|
101
|
+
class: "vf-menu__list",
|
|
102
|
+
role: "menu"
|
|
103
|
+
}, Ke = {
|
|
512
104
|
key: 1,
|
|
513
|
-
class: "vf-menu__separator"
|
|
514
|
-
|
|
105
|
+
class: "vf-menu__separator",
|
|
106
|
+
role: "separator"
|
|
107
|
+
}, Ge = ["aria-expanded", "onClick", "onKeydown"], io = /* @__PURE__ */ X({
|
|
108
|
+
name: "VfMenu",
|
|
515
109
|
__name: "menu",
|
|
516
110
|
props: {
|
|
517
111
|
items: {},
|
|
518
112
|
orientation: { default: "vertical" }
|
|
519
113
|
},
|
|
520
|
-
emits: ["onActive"],
|
|
521
|
-
setup(
|
|
522
|
-
const
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
114
|
+
emits: ["active", "onActive"],
|
|
115
|
+
setup(t, { emit: e }) {
|
|
116
|
+
const r = e, o = t, n = N([]), c = (d, a) => `${d.label ?? d.to ?? d.href ?? d.url ?? "item"}_${a.toString()}`, s = (d) => d.to ? "router-link" : "a", i = (d) => d.map((a) => ({
|
|
117
|
+
...a,
|
|
118
|
+
items: a.items ? i(a.items) : void 0
|
|
119
|
+
})), l = (d) => {
|
|
120
|
+
d.items && d.items.length ? (n.value.map((a) => {
|
|
121
|
+
a !== d && (a.subMenuVisible = !1);
|
|
122
|
+
}), d.subMenuVisible = !d.subMenuVisible) : Object.prototype.hasOwnProperty.call(d, "command") && typeof d.command == "function" && d.command();
|
|
123
|
+
}, u = (d) => {
|
|
124
|
+
var a;
|
|
125
|
+
for (const v in n.value) {
|
|
126
|
+
const f = n.value[v];
|
|
127
|
+
Object.prototype.hasOwnProperty.call(f, "items") && ((a = f.items) != null && a.some((p) => p === d) ? (f.active = !0, f.subMenuVisible = !0) : (f.active = !1, f.subMenuVisible = !1));
|
|
531
128
|
}
|
|
532
|
-
|
|
129
|
+
r("active", d), r("onActive", d);
|
|
533
130
|
};
|
|
534
|
-
return (
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
icon: c.icon,
|
|
553
|
-
class: "vf-menu__icon"
|
|
554
|
-
}, null, 8, ["icon"])) : m("", !0),
|
|
555
|
-
z(" " + O(c.label) + " ", 1),
|
|
556
|
-
S(g(k), { icon: "chevronDown" })
|
|
557
|
-
], 10, Ko),
|
|
558
|
-
c.items ? (r(), y(g(qo), {
|
|
131
|
+
return le(
|
|
132
|
+
() => o.items,
|
|
133
|
+
(d) => {
|
|
134
|
+
n.value = i(d);
|
|
135
|
+
},
|
|
136
|
+
{ deep: !0, immediate: !0 }
|
|
137
|
+
), (d, a) => {
|
|
138
|
+
const v = be("VfMenu");
|
|
139
|
+
return g(), h("div", {
|
|
140
|
+
class: C(["vf-menu", `vf-menu_${d.orientation}`])
|
|
141
|
+
}, [
|
|
142
|
+
B("ul", Ye, [
|
|
143
|
+
(g(!0), h(oe, null, ge(n.value, (f, p) => (g(), h("li", {
|
|
144
|
+
key: c(f, p),
|
|
145
|
+
class: "vf-menu__item",
|
|
146
|
+
role: "none"
|
|
147
|
+
}, [
|
|
148
|
+
d.$slots[c(f, p)] ? k(d.$slots, c(f, p), {
|
|
559
149
|
key: 0,
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
150
|
+
item: { ...f, class: "vf-menu__link" }
|
|
151
|
+
}) : f.separator ? (g(), h("hr", Ke)) : f.items && f.items.length ? (g(), h(oe, { key: 2 }, [
|
|
152
|
+
B("div", {
|
|
153
|
+
class: C(["vf-menu__parent", { "vf-menu__parent_active": f.active }]),
|
|
154
|
+
role: "menuitem",
|
|
155
|
+
tabindex: "0",
|
|
156
|
+
"aria-expanded": f.subMenuVisible ? "true" : "false",
|
|
157
|
+
onClick: (y) => l(f),
|
|
158
|
+
onKeydown: [
|
|
159
|
+
K(G((y) => l(f), ["prevent"]), ["enter"]),
|
|
160
|
+
K(G((y) => l(f), ["prevent"]), ["space"])
|
|
161
|
+
]
|
|
162
|
+
}, [
|
|
163
|
+
f.icon ? (g(), W(U(Z), {
|
|
164
|
+
key: 0,
|
|
165
|
+
icon: f.icon,
|
|
166
|
+
class: "vf-menu__icon"
|
|
167
|
+
}, null, 8, ["icon"])) : _("", !0),
|
|
168
|
+
J(" " + M(f.label) + " ", 1),
|
|
169
|
+
he(U(Z), { icon: "chevronDown" })
|
|
170
|
+
], 42, Ge),
|
|
171
|
+
f.items ? (g(), W(v, {
|
|
577
172
|
key: 0,
|
|
578
|
-
|
|
579
|
-
class: "vf-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
]),
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
173
|
+
items: f.items,
|
|
174
|
+
class: C(["vf-menu__submenu", { "vf-menu__submenu_visible": f.subMenuVisible }]),
|
|
175
|
+
onOnActive: u
|
|
176
|
+
}, null, 8, ["items", "class"])) : _("", !0)
|
|
177
|
+
], 64)) : (g(), W(ke, {
|
|
178
|
+
key: 3,
|
|
179
|
+
to: f.to,
|
|
180
|
+
href: f.href ?? f.url,
|
|
181
|
+
as: s(f),
|
|
182
|
+
class: "vf-menu__link",
|
|
183
|
+
active: f.active,
|
|
184
|
+
disabled: f.disabled,
|
|
185
|
+
role: "menuitem",
|
|
186
|
+
"aria-disabled": f.disabled ? "true" : "false",
|
|
187
|
+
onClick: (y) => l(f),
|
|
188
|
+
onActive: (y) => u(f)
|
|
189
|
+
}, {
|
|
190
|
+
default: I(() => [
|
|
191
|
+
f.icon ? (g(), W(U(Z), {
|
|
192
|
+
key: 0,
|
|
193
|
+
icon: f.icon,
|
|
194
|
+
class: "vf-menu__icon"
|
|
195
|
+
}, null, 8, ["icon"])) : _("", !0),
|
|
196
|
+
J(" " + M(f.label), 1)
|
|
197
|
+
]),
|
|
198
|
+
_: 2
|
|
199
|
+
}, 1032, ["to", "href", "as", "active", "disabled", "aria-disabled", "onClick", "onActive"]))
|
|
200
|
+
]))), 128))
|
|
201
|
+
])
|
|
202
|
+
], 2);
|
|
203
|
+
};
|
|
588
204
|
}
|
|
589
|
-
}),
|
|
590
|
-
function Jo(o, e) {
|
|
591
|
-
return r(), s("header", Wo, [
|
|
592
|
-
u(o.$slots, "default")
|
|
593
|
-
]);
|
|
594
|
-
}
|
|
595
|
-
const Qo = /* @__PURE__ */ $(Go, [["render", Jo]]), Xo = {}, Yo = { class: "vf-footer" };
|
|
596
|
-
function er(o, e) {
|
|
597
|
-
return r(), s("footer", Yo, [
|
|
598
|
-
u(o.$slots, "default")
|
|
599
|
-
]);
|
|
600
|
-
}
|
|
601
|
-
const or = /* @__PURE__ */ $(Xo, [["render", er]]), rr = ["disabled"], zr = /* @__PURE__ */ F({
|
|
205
|
+
}), qe = ["type", "disabled"], co = /* @__PURE__ */ X({
|
|
602
206
|
__name: "button",
|
|
603
207
|
props: {
|
|
604
208
|
to: { default: void 0 },
|
|
209
|
+
href: { default: void 0 },
|
|
210
|
+
url: { default: void 0 },
|
|
211
|
+
as: { default: void 0 },
|
|
605
212
|
icon: { default: void 0 },
|
|
606
213
|
type: { default: "button" },
|
|
607
214
|
size: { default: "normal" },
|
|
@@ -613,151 +220,991 @@ const or = /* @__PURE__ */ $(Xo, [["render", er]]), rr = ["disabled"], zr = /* @
|
|
|
613
220
|
severity: { default: "primary" },
|
|
614
221
|
disabled: { type: Boolean, default: !1 }
|
|
615
222
|
},
|
|
616
|
-
setup(
|
|
617
|
-
const e = o, a = w(() => {
|
|
618
|
-
let
|
|
619
|
-
return ["top", "bottom"].includes(e.iconPos) &&
|
|
620
|
-
}),
|
|
621
|
-
return (
|
|
223
|
+
setup(t) {
|
|
224
|
+
const e = t, r = ["button", "submit", "reset"], o = (d) => !!d && r.includes(d), n = w(() => e.as ? e.as === "button" : !(e.to || e.href || e.url || e.type && !o(e.type))), c = w(() => o(e.type) ? e.type : "button"), s = w(() => e.as === "link" ? e.to ? "router-link" : "a" : e.type && !o(e.type) ? e.type === "router-link" && e.to ? "router-link" : "a" : e.to ? "router-link" : "a"), i = w(() => {
|
|
225
|
+
let d = ["vf-button", `vf-button_${e.severity}`];
|
|
226
|
+
return ["top", "bottom"].includes(e.iconPos) && d.push("vf-button_vertical"), e.variant === "text" && d.push("vf-button_text"), e.variant === "outlined" && d.push("vf-button_outlined"), ["small", "large"].indexOf(e.size) > -1 && d.push(`vf-button_${e.size}`), (e.loading || e.disabled) && d.push("vf-button_disabled"), e.rounded && d.push("vf-button_rounded"), d;
|
|
227
|
+
}), l = w(() => ["vf-button__icon", `vf-button__icon_${e.iconPos}`]), u = w(() => ["vf-button__label"]);
|
|
228
|
+
return (d, a) => n.value ? (g(), h("button", {
|
|
622
229
|
key: 0,
|
|
623
|
-
|
|
230
|
+
type: c.value,
|
|
231
|
+
class: C(i.value),
|
|
624
232
|
disabled: e.loading || e.disabled
|
|
625
233
|
}, [
|
|
626
|
-
e.icon && !e.loading ? (
|
|
234
|
+
e.icon && !e.loading ? (g(), W(U(Z), {
|
|
627
235
|
key: 0,
|
|
628
236
|
icon: e.icon,
|
|
629
|
-
class:
|
|
630
|
-
}, null, 8, ["icon", "class"])) :
|
|
631
|
-
e.loading ? (
|
|
237
|
+
class: C(l.value)
|
|
238
|
+
}, null, 8, ["icon", "class"])) : _("", !0),
|
|
239
|
+
e.loading ? (g(), W(U(Z), {
|
|
632
240
|
key: 1,
|
|
633
241
|
icon: "circleNotch",
|
|
634
|
-
class:
|
|
242
|
+
class: C(l.value),
|
|
635
243
|
spin: ""
|
|
636
|
-
}, null, 8, ["class"])) :
|
|
637
|
-
|
|
244
|
+
}, null, 8, ["class"])) : _("", !0),
|
|
245
|
+
d.$slots.default ? (g(), h("span", {
|
|
638
246
|
key: 2,
|
|
639
|
-
class:
|
|
247
|
+
class: C(u.value)
|
|
640
248
|
}, [
|
|
641
|
-
|
|
642
|
-
], 2)) :
|
|
249
|
+
k(d.$slots, "default")
|
|
250
|
+
], 2)) : d.label ? (g(), h("span", {
|
|
643
251
|
key: 3,
|
|
644
|
-
class:
|
|
645
|
-
},
|
|
646
|
-
], 10,
|
|
252
|
+
class: C(u.value)
|
|
253
|
+
}, M(d.label), 3)) : _("", !0)
|
|
254
|
+
], 10, qe)) : (g(), W(ke, {
|
|
647
255
|
key: 1,
|
|
648
256
|
to: e.to,
|
|
649
|
-
|
|
650
|
-
|
|
257
|
+
href: e.href ?? e.url,
|
|
258
|
+
as: s.value,
|
|
259
|
+
class: C(i.value),
|
|
651
260
|
disabled: e.loading || e.disabled
|
|
652
261
|
}, {
|
|
653
|
-
default:
|
|
654
|
-
e.icon ? (
|
|
262
|
+
default: I(() => [
|
|
263
|
+
e.icon ? (g(), W(U(Z), {
|
|
655
264
|
key: 0,
|
|
656
265
|
icon: e.icon,
|
|
657
|
-
class:
|
|
658
|
-
}, null, 8, ["icon", "class"])) :
|
|
659
|
-
|
|
266
|
+
class: C(l.value)
|
|
267
|
+
}, null, 8, ["icon", "class"])) : _("", !0),
|
|
268
|
+
d.$slots.default ? (g(), h("span", {
|
|
660
269
|
key: 1,
|
|
661
|
-
class:
|
|
270
|
+
class: C(u.value)
|
|
662
271
|
}, [
|
|
663
|
-
|
|
664
|
-
], 2)) :
|
|
272
|
+
k(d.$slots, "default")
|
|
273
|
+
], 2)) : d.label ? (g(), h("span", {
|
|
665
274
|
key: 2,
|
|
666
|
-
class:
|
|
667
|
-
},
|
|
275
|
+
class: C(u.value)
|
|
276
|
+
}, M(d.label), 3)) : _("", !0)
|
|
668
277
|
]),
|
|
669
278
|
_: 3
|
|
670
|
-
}, 8, ["to", "
|
|
279
|
+
}, 8, ["to", "href", "as", "class", "disabled"]));
|
|
671
280
|
}
|
|
672
|
-
}),
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
281
|
+
}), Ue = {
|
|
282
|
+
key: 0,
|
|
283
|
+
class: "vf-input__prefix"
|
|
284
|
+
}, Ze = ["type", "value", "placeholder", "disabled", "readonly"], Je = {
|
|
285
|
+
key: 1,
|
|
286
|
+
class: "vf-input__suffix"
|
|
287
|
+
}, uo = /* @__PURE__ */ X({
|
|
288
|
+
__name: "input",
|
|
289
|
+
props: {
|
|
290
|
+
modelValue: { default: "" },
|
|
291
|
+
type: { default: "text" },
|
|
292
|
+
placeholder: { default: "" },
|
|
293
|
+
disabled: { type: Boolean, default: !1 },
|
|
294
|
+
readonly: { type: Boolean, default: !1 },
|
|
295
|
+
size: { default: "normal" },
|
|
296
|
+
variant: { default: "filled" }
|
|
297
|
+
},
|
|
298
|
+
emits: ["update:modelValue", "input", "change", "focus", "blur"],
|
|
299
|
+
setup(t, { emit: e }) {
|
|
300
|
+
const r = e, o = t, n = w(() => {
|
|
301
|
+
const u = ["vf-input", `vf-input_${o.variant}`];
|
|
302
|
+
return o.size !== "normal" && u.push(`vf-input_${o.size}`), o.disabled && u.push("vf-input_disabled"), u;
|
|
303
|
+
}), c = (u) => {
|
|
304
|
+
const d = u.target;
|
|
305
|
+
r("update:modelValue", d.value), r("input", u);
|
|
306
|
+
}, s = (u) => r("change", u), i = (u) => r("focus", u), l = (u) => r("blur", u);
|
|
307
|
+
return (u, d) => (g(), h("div", {
|
|
308
|
+
class: C(n.value)
|
|
309
|
+
}, [
|
|
310
|
+
u.$slots.prefix ? (g(), h("span", Ue, [
|
|
311
|
+
k(u.$slots, "prefix")
|
|
312
|
+
])) : _("", !0),
|
|
313
|
+
B("input", {
|
|
314
|
+
class: "vf-input__control",
|
|
315
|
+
type: u.type,
|
|
316
|
+
value: u.modelValue,
|
|
317
|
+
placeholder: u.placeholder,
|
|
318
|
+
disabled: u.disabled,
|
|
319
|
+
readonly: u.readonly,
|
|
320
|
+
onInput: c,
|
|
321
|
+
onChange: s,
|
|
322
|
+
onFocus: i,
|
|
323
|
+
onBlur: l
|
|
324
|
+
}, null, 40, Ze),
|
|
325
|
+
u.$slots.suffix ? (g(), h("span", Je, [
|
|
326
|
+
k(u.$slots, "suffix")
|
|
327
|
+
])) : _("", !0)
|
|
328
|
+
], 2));
|
|
329
|
+
}
|
|
330
|
+
}), ue = [
|
|
331
|
+
"top",
|
|
332
|
+
"top-start",
|
|
333
|
+
"top-end",
|
|
334
|
+
"right",
|
|
335
|
+
"right-start",
|
|
336
|
+
"right-end",
|
|
337
|
+
"bottom",
|
|
338
|
+
"bottom-start",
|
|
339
|
+
"bottom-end",
|
|
340
|
+
"left",
|
|
341
|
+
"left-start",
|
|
342
|
+
"left-end"
|
|
343
|
+
], P = (t) => {
|
|
344
|
+
if (t == null || !(t instanceof HTMLElement))
|
|
345
|
+
return null;
|
|
346
|
+
if (typeof window < "u") {
|
|
347
|
+
const e = window.getComputedStyle(t), r = `${e.overflowX}${e.overflowY}`;
|
|
348
|
+
if (/(auto|scroll|overlay)/.test(r))
|
|
349
|
+
return t;
|
|
350
|
+
}
|
|
351
|
+
return t.scrollHeight > t.clientHeight || t.scrollWidth > t.clientWidth ? t : P(t.parentNode);
|
|
352
|
+
};
|
|
353
|
+
function Qe(t) {
|
|
354
|
+
return typeof window > "u" ? !1 : window.getComputedStyle(t).position === "fixed";
|
|
677
355
|
}
|
|
678
|
-
const
|
|
356
|
+
const et = (t, e) => t.strategy ? t.strategy : Qe(e) ? "fixed" : "absolute", Y = (t, e) => et(t, e) === "fixed", R = (t, e, r = {}) => {
|
|
357
|
+
const o = t.getBoundingClientRect(), n = e ? e.offsetParent : null, c = e ? Y(r, e) : !1;
|
|
358
|
+
if (n && !c) {
|
|
359
|
+
const s = n.getBoundingClientRect(), i = n.scrollLeft, l = n.scrollTop;
|
|
360
|
+
return {
|
|
361
|
+
left: o.left - s.left + i,
|
|
362
|
+
top: o.top - s.top + l,
|
|
363
|
+
width: o.width,
|
|
364
|
+
height: o.height
|
|
365
|
+
};
|
|
366
|
+
}
|
|
367
|
+
return {
|
|
368
|
+
left: o.left,
|
|
369
|
+
top: o.top,
|
|
370
|
+
width: o.width,
|
|
371
|
+
height: o.height
|
|
372
|
+
};
|
|
373
|
+
}, j = (t, e) => {
|
|
374
|
+
var r;
|
|
375
|
+
return (r = t.middleware) == null ? void 0 : r.find((o) => o.name === e);
|
|
376
|
+
}, Ce = (t, e) => !!j(t, e), tt = (t) => {
|
|
377
|
+
const e = P(t);
|
|
378
|
+
let r = "";
|
|
379
|
+
return e !== null && ((e.dataset.scrollTop === void 0 || e.scrollTop === +e.dataset.scrollTop) && (e.dataset.scrollTop = "0"), (e.dataset.scrollLeft === void 0 || e.scrollLeft === +e.dataset.scrollLeft) && (e.dataset.scrollLeft = "0"), e.scrollTop > +e.dataset.scrollTop ? r = "bottom" : e.scrollTop < +e.dataset.scrollTop ? r = "top" : e.scrollLeft > +e.dataset.scrollLeft ? r = "right" : e.scrollLeft < +e.dataset.scrollLeft && (r = "left"), e.dataset.scrollTop = e.scrollTop <= 0 ? "0" : e.scrollTop.toString(), e.dataset.scrollLeft = e.scrollLeft <= 0 ? "0" : e.scrollLeft.toString()), r;
|
|
380
|
+
}, ot = (t) => t.scrollLeft + t.clientWidth, rt = (t) => t.scrollTop + t.clientHeight, L = (t, e, r = null, o = {}, n) => {
|
|
381
|
+
if (r === null && typeof window < "u" && Y(o, e))
|
|
382
|
+
return t;
|
|
383
|
+
let c = 0;
|
|
384
|
+
if (r === null) {
|
|
385
|
+
const s = P(e);
|
|
386
|
+
c = s ? s.scrollTop : 0;
|
|
387
|
+
}
|
|
388
|
+
return t - c;
|
|
389
|
+
}, V = (t, e, r = null, o = {}, n) => {
|
|
390
|
+
let c;
|
|
391
|
+
if (r === null && typeof window < "u" && Y(o, e))
|
|
392
|
+
c = window.innerWidth;
|
|
393
|
+
else if (r === null) {
|
|
394
|
+
const s = P(e);
|
|
395
|
+
c = s ? ot(s) : 0;
|
|
396
|
+
} else
|
|
397
|
+
c = r.getBoundingClientRect().width;
|
|
398
|
+
return -(t + e.clientWidth - c);
|
|
399
|
+
}, O = (t, e, r = null, o = {}, n) => {
|
|
400
|
+
let c;
|
|
401
|
+
if (r === null && typeof window < "u" && Y(o, e))
|
|
402
|
+
c = window.innerHeight;
|
|
403
|
+
else if (r === null) {
|
|
404
|
+
const s = P(e);
|
|
405
|
+
c = s ? rt(s) : 0;
|
|
406
|
+
} else
|
|
407
|
+
c = r.getBoundingClientRect().height;
|
|
408
|
+
return -(t + e.clientHeight - c);
|
|
409
|
+
}, z = (t, e, r = null, o = {}, n) => {
|
|
410
|
+
if (r === null && typeof window < "u" && Y(o, e))
|
|
411
|
+
return t;
|
|
412
|
+
let c = 0;
|
|
413
|
+
if (r === null) {
|
|
414
|
+
const s = P(e);
|
|
415
|
+
c = s ? s.scrollLeft : 0;
|
|
416
|
+
}
|
|
417
|
+
return t - c;
|
|
418
|
+
}, fe = ({
|
|
419
|
+
options: t,
|
|
420
|
+
primaryX: e,
|
|
421
|
+
primaryY: r,
|
|
422
|
+
floating: o,
|
|
423
|
+
placement: n,
|
|
424
|
+
reference: c,
|
|
425
|
+
scrollDirection: s
|
|
426
|
+
}) => {
|
|
427
|
+
const i = ae(c, o, n, t), l = j(t, "offset");
|
|
428
|
+
if (l) {
|
|
429
|
+
const u = l.fn({
|
|
430
|
+
x: i.x,
|
|
431
|
+
y: i.y,
|
|
432
|
+
options: t,
|
|
433
|
+
primaryX: e,
|
|
434
|
+
primaryY: r,
|
|
435
|
+
floating: o,
|
|
436
|
+
placement: n,
|
|
437
|
+
reference: c,
|
|
438
|
+
scrollDirection: s
|
|
439
|
+
});
|
|
440
|
+
i.x = u.x, i.y = u.y;
|
|
441
|
+
}
|
|
442
|
+
return _t(i, o, c, t) ? {
|
|
443
|
+
x: i.x,
|
|
444
|
+
y: i.y,
|
|
445
|
+
placement: n
|
|
446
|
+
} : !1;
|
|
447
|
+
}, nt = (t) => ({
|
|
448
|
+
name: "flip",
|
|
449
|
+
params: t,
|
|
450
|
+
fn: ({
|
|
451
|
+
x: e,
|
|
452
|
+
y: r,
|
|
453
|
+
options: o,
|
|
454
|
+
primaryX: n,
|
|
455
|
+
primaryY: c,
|
|
456
|
+
floating: s,
|
|
457
|
+
placement: i,
|
|
458
|
+
reference: l,
|
|
459
|
+
scrollDirection: u
|
|
460
|
+
}) => {
|
|
461
|
+
var d;
|
|
462
|
+
const a = {
|
|
463
|
+
x: e,
|
|
464
|
+
y: r,
|
|
465
|
+
placement: i
|
|
466
|
+
}, v = {
|
|
467
|
+
...o,
|
|
468
|
+
middleware: (d = o.middleware) == null ? void 0 : d.filter((x) => x.name !== "shift")
|
|
469
|
+
}, f = (t == null ? void 0 : t.placements) ?? ue, p = !(t != null && t.placements), y = p ? ue : f;
|
|
470
|
+
let m = !1;
|
|
471
|
+
const Q = (x) => {
|
|
472
|
+
if (m)
|
|
473
|
+
return;
|
|
474
|
+
const $ = fe({
|
|
475
|
+
options: v,
|
|
476
|
+
primaryX: n,
|
|
477
|
+
primaryY: c,
|
|
478
|
+
floating: s,
|
|
479
|
+
placement: x,
|
|
480
|
+
reference: l,
|
|
481
|
+
scrollDirection: u
|
|
482
|
+
});
|
|
483
|
+
$ && (a.x = $.x, a.y = $.y, a.placement = $.placement, m = !0);
|
|
484
|
+
}, ee = $t(l, s, v);
|
|
485
|
+
if (!p && f.includes(i) && Q(i), m || y.forEach(Q), !m) {
|
|
486
|
+
const x = f.reduce(
|
|
487
|
+
($, H) => {
|
|
488
|
+
const A = fe({
|
|
489
|
+
options: v,
|
|
490
|
+
primaryX: n,
|
|
491
|
+
primaryY: c,
|
|
492
|
+
floating: s,
|
|
493
|
+
placement: H,
|
|
494
|
+
reference: l,
|
|
495
|
+
scrollDirection: u
|
|
496
|
+
});
|
|
497
|
+
if (!A)
|
|
498
|
+
return $;
|
|
499
|
+
const S = te(H), D = ee[S];
|
|
500
|
+
return !$ || D > $.space ? { result: A, space: D } : $;
|
|
501
|
+
},
|
|
502
|
+
null
|
|
503
|
+
);
|
|
504
|
+
x && (a.x = x.result.x, a.y = x.result.y, a.placement = x.result.placement, m = !0);
|
|
505
|
+
}
|
|
506
|
+
if (!m && f.length > 0) {
|
|
507
|
+
const x = te(i);
|
|
508
|
+
let $ = x, H = ee[x];
|
|
509
|
+
f.forEach((q) => {
|
|
510
|
+
const b = te(q), F = ee[b];
|
|
511
|
+
F > H && (H = F, $ = b);
|
|
512
|
+
});
|
|
513
|
+
const A = Ft($, i, f), S = ae(l, s, A, v), D = j(v, "offset");
|
|
514
|
+
if (D) {
|
|
515
|
+
const q = D.fn({
|
|
516
|
+
x: S.x,
|
|
517
|
+
y: S.y,
|
|
518
|
+
options: v,
|
|
519
|
+
primaryX: n,
|
|
520
|
+
primaryY: c,
|
|
521
|
+
floating: s,
|
|
522
|
+
placement: A,
|
|
523
|
+
reference: l,
|
|
524
|
+
scrollDirection: u
|
|
525
|
+
});
|
|
526
|
+
S.x = q.x, S.y = q.y;
|
|
527
|
+
}
|
|
528
|
+
a.x = S.x, a.y = S.y, a.placement = S.placement;
|
|
529
|
+
}
|
|
530
|
+
return a;
|
|
531
|
+
}
|
|
532
|
+
}), lt = (t, e, r, o, n) => {
|
|
533
|
+
var c, s, i;
|
|
534
|
+
let l = 0;
|
|
535
|
+
o.startsWith("right") ? l = -2 : o.startsWith("left") && (l = t);
|
|
536
|
+
const u = j(e, "arrow"), d = j(e, "shift");
|
|
537
|
+
if (u) {
|
|
538
|
+
const a = ((c = u.params) == null ? void 0 : c.arrow).getBoundingClientRect();
|
|
539
|
+
o.startsWith("right") ? l -= a.width / 2 : o.startsWith("left") && (l += a.width / 2);
|
|
540
|
+
}
|
|
541
|
+
if (Ce(e, "shift") && u) {
|
|
542
|
+
let a = null, v = 0;
|
|
543
|
+
d && (a = (s = d.params) == null ? void 0 : s.parent);
|
|
544
|
+
const f = (i = u.params) == null ? void 0 : i.arrow;
|
|
545
|
+
v = f.getBoundingClientRect().width / 2, v += it(f), v -= t, o.startsWith("right") ? V(r - l, n, a, e) <= t ? V(r, n, a, e) > 0 ? l = t - V(r, n, a, e) : l = t : z(r - l - v, n, a, e) <= t && (z(r - l - v, n, a, e) >= 0 ? (l = -2 - (z(r - l - v, n, a, e) + t), a && (l = -2)) : l = -2) : o.startsWith("left") ? V(r - l + v, n, a, e) <= t ? (l = t + V(r - v, n, a, e), l <= t && (l = t)) : z(r - l, n, a, e) <= t && (l = -2 + z(r, n, a, e), l <= -2 && (l = -2)) : V(r - l, n, a, e) <= t ? V(r - l, n, a, e) <= t && V(r, n, a, e) > 0 ? l = t - V(r, n, a, e) : l = t : z(r - l, n, a, e) <= t && (z(r - l, n, a, e) <= t && z(r, n, a, e) > 0 ? l = -(t - z(r, n, a, e)) : l = -2);
|
|
546
|
+
}
|
|
547
|
+
return l;
|
|
548
|
+
}, at = (t, e, r, o, n) => {
|
|
549
|
+
var c, s, i;
|
|
550
|
+
let l = 0;
|
|
551
|
+
o.startsWith("top") ? l = t : o.startsWith("bottom") && (l = -2);
|
|
552
|
+
const u = j(e, "arrow"), d = j(e, "shift");
|
|
553
|
+
if (u) {
|
|
554
|
+
const a = ((c = u.params) == null ? void 0 : c.arrow).getBoundingClientRect();
|
|
555
|
+
o.startsWith("top") ? l += a.height / 2 : o.startsWith("bottom") && (l -= a.height / 2);
|
|
556
|
+
}
|
|
557
|
+
if (Ce(e, "shift") && u) {
|
|
558
|
+
let a = null, v = 0;
|
|
559
|
+
d && (a = (s = d.params) == null ? void 0 : s.parent);
|
|
560
|
+
const f = (i = u.params) == null ? void 0 : i.arrow;
|
|
561
|
+
v = f.getBoundingClientRect().height / 2, v += ct(f), v -= t, o.startsWith("top") ? L(r - l, n, a, e) <= t ? L(r, n, a, e) >= 0 ? l = -(t - L(r, n, a, e)) : l = -2 : O(r - l + v, n, a, e) <= t && (l = t + O(r - v, n, a, e), l <= t && (l = t)) : o.startsWith("bottom") ? L(r - l - v, n, a, e) <= t ? L(r - l - v, n, a, e) >= 0 ? (l = -2 - (L(r - l - v, n, a, e) + t), a && (l = -2)) : l = -2 : O(r - l, n, a, e) <= t && (O(r, n, a, e) >= 0 ? l = t - O(r, n, a, e) : l = t) : L(r - l, n, a, e) <= t ? L(r - l, n, a, e) >= 0 ? l = -(t - L(r - l, n, a, e)) : l = -2 : O(r - l, n, a, e) <= t && (O(r - l, n, a, e) >= 0 ? l = t - O(r - l, n, a, e) : l = t);
|
|
562
|
+
}
|
|
563
|
+
return l;
|
|
564
|
+
}, st = (t) => ({
|
|
565
|
+
name: "offset",
|
|
566
|
+
params: { value: t },
|
|
567
|
+
fn: ({
|
|
568
|
+
x: e,
|
|
569
|
+
y: r,
|
|
570
|
+
options: o,
|
|
571
|
+
primaryX: n,
|
|
572
|
+
primaryY: c,
|
|
573
|
+
floating: s,
|
|
574
|
+
placement: i
|
|
575
|
+
}) => ({
|
|
576
|
+
x: e - lt(t, o, n, i, s),
|
|
577
|
+
y: r - at(t, o, c, i, s),
|
|
578
|
+
placement: i
|
|
579
|
+
})
|
|
580
|
+
}), it = (t) => t.getBoundingClientRect().width !== t.clientWidth ? (t.getBoundingClientRect().width - t.clientWidth) / 2 : 0, ct = (t) => t.getBoundingClientRect().height !== t.clientHeight ? (t.getBoundingClientRect().height - t.clientHeight) / 2 : 0, dt = (t, e) => {
|
|
581
|
+
const r = P(t), o = [];
|
|
582
|
+
if (r !== null) {
|
|
583
|
+
const n = () => e();
|
|
584
|
+
r.addEventListener("scroll", n, !1), o.push(() => r.removeEventListener("scroll", n, !1));
|
|
585
|
+
}
|
|
586
|
+
if (typeof window < "u") {
|
|
587
|
+
const n = () => e(), c = () => e();
|
|
588
|
+
window.addEventListener("scroll", n, !1), window.addEventListener("resize", c, !1), o.push(() => window.removeEventListener("scroll", n, !1)), o.push(() => window.removeEventListener("resize", c, !1));
|
|
589
|
+
}
|
|
590
|
+
if (typeof ResizeObserver < "u" && t instanceof HTMLElement) {
|
|
591
|
+
const n = new ResizeObserver(() => e());
|
|
592
|
+
n.observe(t), o.push(() => n.disconnect());
|
|
593
|
+
}
|
|
594
|
+
return () => o.forEach((n) => n());
|
|
595
|
+
}, ut = (t, e, r = {}) => {
|
|
596
|
+
const o = R(t, e, r);
|
|
597
|
+
return {
|
|
598
|
+
x: o.left - e.getBoundingClientRect().width / 2 + o.width / 2,
|
|
599
|
+
y: o.top - e.getBoundingClientRect().height,
|
|
600
|
+
placement: "top"
|
|
601
|
+
};
|
|
602
|
+
}, ft = (t, e, r = {}) => {
|
|
603
|
+
const o = R(t, e, r);
|
|
604
|
+
return {
|
|
605
|
+
x: o.left,
|
|
606
|
+
y: o.top - e.getBoundingClientRect().height,
|
|
607
|
+
placement: "top-start"
|
|
608
|
+
};
|
|
609
|
+
}, vt = (t, e, r = {}) => {
|
|
610
|
+
const o = R(t, e, r);
|
|
611
|
+
return {
|
|
612
|
+
x: o.left - e.getBoundingClientRect().width + o.width,
|
|
613
|
+
y: o.top - e.getBoundingClientRect().height,
|
|
614
|
+
placement: "top-end"
|
|
615
|
+
};
|
|
616
|
+
}, pt = (t, e, r = {}) => {
|
|
617
|
+
const o = R(t, e, r);
|
|
618
|
+
return {
|
|
619
|
+
x: o.left + o.width,
|
|
620
|
+
y: o.top - e.getBoundingClientRect().height / 2 + o.height / 2,
|
|
621
|
+
placement: "right"
|
|
622
|
+
};
|
|
623
|
+
}, bt = (t, e, r = {}) => {
|
|
624
|
+
const o = R(t, e, r);
|
|
625
|
+
return {
|
|
626
|
+
x: o.left + o.width,
|
|
627
|
+
y: o.top,
|
|
628
|
+
placement: "right-start"
|
|
629
|
+
};
|
|
630
|
+
}, gt = (t, e, r = {}) => {
|
|
631
|
+
const o = R(t, e, r);
|
|
632
|
+
return {
|
|
633
|
+
x: o.left + o.width,
|
|
634
|
+
y: o.top + o.height - e.getBoundingClientRect().height,
|
|
635
|
+
placement: "right-end"
|
|
636
|
+
};
|
|
637
|
+
}, ht = (t, e, r = {}) => {
|
|
638
|
+
const o = R(t, e, r);
|
|
639
|
+
return {
|
|
640
|
+
x: o.left + o.width / 2 - e.getBoundingClientRect().width / 2,
|
|
641
|
+
y: o.top + o.height,
|
|
642
|
+
placement: "bottom"
|
|
643
|
+
};
|
|
644
|
+
}, mt = (t, e, r = {}) => {
|
|
645
|
+
const o = R(t, e, r);
|
|
646
|
+
return {
|
|
647
|
+
x: o.left,
|
|
648
|
+
y: o.top + o.height,
|
|
649
|
+
placement: "bottom-start"
|
|
650
|
+
};
|
|
651
|
+
}, yt = (t, e, r = {}) => {
|
|
652
|
+
const o = R(t, e, r);
|
|
653
|
+
return {
|
|
654
|
+
x: o.left - e.getBoundingClientRect().width + o.width,
|
|
655
|
+
y: o.top + o.height,
|
|
656
|
+
placement: "bottom-end"
|
|
657
|
+
};
|
|
658
|
+
}, kt = (t, e, r = {}) => {
|
|
659
|
+
const o = R(t, e, r);
|
|
660
|
+
return {
|
|
661
|
+
x: o.left - e.getBoundingClientRect().width,
|
|
662
|
+
y: o.top + o.height / 2 - e.getBoundingClientRect().height / 2,
|
|
663
|
+
placement: "left"
|
|
664
|
+
};
|
|
665
|
+
}, Ct = (t, e, r = {}) => {
|
|
666
|
+
const o = R(t, e, r);
|
|
667
|
+
return {
|
|
668
|
+
x: o.left - e.getBoundingClientRect().width,
|
|
669
|
+
y: o.top,
|
|
670
|
+
placement: "left-start"
|
|
671
|
+
};
|
|
672
|
+
}, wt = (t, e, r = {}) => {
|
|
673
|
+
const o = R(t, e, r);
|
|
674
|
+
return {
|
|
675
|
+
x: o.left - e.getBoundingClientRect().width,
|
|
676
|
+
y: o.top + o.height - e.getBoundingClientRect().height,
|
|
677
|
+
placement: "left-end"
|
|
678
|
+
};
|
|
679
|
+
}, ae = (t, e, r, o = {}) => {
|
|
680
|
+
switch (r) {
|
|
681
|
+
case "top":
|
|
682
|
+
return ut(t, e, o);
|
|
683
|
+
case "top-start":
|
|
684
|
+
return ft(t, e, o);
|
|
685
|
+
case "top-end":
|
|
686
|
+
return vt(t, e, o);
|
|
687
|
+
case "right":
|
|
688
|
+
return pt(t, e, o);
|
|
689
|
+
case "right-start":
|
|
690
|
+
return bt(t, e, o);
|
|
691
|
+
case "right-end":
|
|
692
|
+
return gt(t, e, o);
|
|
693
|
+
case "bottom":
|
|
694
|
+
return ht(t, e, o);
|
|
695
|
+
case "bottom-start":
|
|
696
|
+
return mt(t, e, o);
|
|
697
|
+
case "bottom-end":
|
|
698
|
+
return yt(t, e, o);
|
|
699
|
+
case "left":
|
|
700
|
+
return kt(t, e, o);
|
|
701
|
+
case "left-start":
|
|
702
|
+
return Ct(t, e, o);
|
|
703
|
+
case "left-end":
|
|
704
|
+
return wt(t, e, o);
|
|
705
|
+
default:
|
|
706
|
+
return {
|
|
707
|
+
x: 0,
|
|
708
|
+
y: 0,
|
|
709
|
+
placement: ""
|
|
710
|
+
};
|
|
711
|
+
}
|
|
712
|
+
}, _t = (t, e, r, o = {}) => {
|
|
713
|
+
if (Y(o, e)) {
|
|
714
|
+
if (typeof window > "u")
|
|
715
|
+
return !0;
|
|
716
|
+
const a = t.x, v = t.y, f = a + e.clientWidth, p = v + e.clientHeight;
|
|
717
|
+
return a >= 0 && v >= 0 && f <= window.innerWidth && p <= window.innerHeight;
|
|
718
|
+
}
|
|
719
|
+
if (P(r) !== null)
|
|
720
|
+
return L(t.y, e, null, o) > 0 && V(t.x, e, null, o) > 0 && O(t.y, e, null, o) > 0 && z(t.x, e, null, o) > 0;
|
|
721
|
+
if (typeof window > "u")
|
|
722
|
+
return !0;
|
|
723
|
+
const n = window.innerWidth, c = window.innerHeight, s = (r instanceof HTMLElement ? r.offsetParent : null) || e.offsetParent;
|
|
724
|
+
if (s) {
|
|
725
|
+
const a = s.getBoundingClientRect(), v = a.left + t.x, f = a.top + t.y, p = v + e.clientWidth, y = f + e.clientHeight;
|
|
726
|
+
return v >= 0 && f >= 0 && p <= n && y <= c;
|
|
727
|
+
}
|
|
728
|
+
const i = t.x, l = t.y, u = i + e.clientWidth, d = l + e.clientHeight;
|
|
729
|
+
return i >= 0 && l >= 0 && u <= n && d <= c;
|
|
730
|
+
}, te = (t) => t.startsWith("right") ? "right" : t.startsWith("left") ? "left" : t.startsWith("top") ? "top" : "bottom", Ft = (t, e, r) => te(e) === t && r.includes(e) ? e : r.find((o) => te(o) === t) ?? r[0], $t = (t, e, r = {}) => {
|
|
731
|
+
if (typeof window > "u")
|
|
732
|
+
return {
|
|
733
|
+
top: 0,
|
|
734
|
+
right: 0,
|
|
735
|
+
bottom: 0,
|
|
736
|
+
left: 0
|
|
737
|
+
};
|
|
738
|
+
const o = Y(r, e) ? null : P(t), n = t.getBoundingClientRect(), c = o ? o.getBoundingClientRect() : {
|
|
739
|
+
top: 0,
|
|
740
|
+
left: 0,
|
|
741
|
+
right: window.innerWidth,
|
|
742
|
+
bottom: window.innerHeight
|
|
743
|
+
};
|
|
744
|
+
return {
|
|
745
|
+
top: n.top - c.top,
|
|
746
|
+
right: c.right - n.right,
|
|
747
|
+
bottom: c.bottom - n.bottom,
|
|
748
|
+
left: n.left - c.left
|
|
749
|
+
};
|
|
750
|
+
}, Bt = (t, e, r = {}) => new Promise((o) => {
|
|
751
|
+
var n, c;
|
|
752
|
+
const s = r.placement ? r.placement : "bottom", i = {
|
|
753
|
+
x: 0,
|
|
754
|
+
y: 0,
|
|
755
|
+
placement: s,
|
|
756
|
+
middlewareData: {}
|
|
757
|
+
}, l = ae(t, e, s, r);
|
|
758
|
+
i.x = l.x, i.y = l.y, i.placement = l.placement;
|
|
759
|
+
const u = i.x, d = i.y, a = tt(t);
|
|
760
|
+
(n = r.middleware) == null || n.forEach((y) => {
|
|
761
|
+
const m = y.fn({
|
|
762
|
+
x: i.x,
|
|
763
|
+
y: i.y,
|
|
764
|
+
options: r,
|
|
765
|
+
primaryX: u,
|
|
766
|
+
primaryY: d,
|
|
767
|
+
floating: e,
|
|
768
|
+
placement: i.placement,
|
|
769
|
+
reference: t,
|
|
770
|
+
scrollDirection: a
|
|
771
|
+
});
|
|
772
|
+
i.x = m.x, i.y = m.y, i.placement = m.placement, y.name === "arrow" && (m.baseX = m.x, m.baseY = m.y, m.x = m.arrowX ?? m.x, m.y = m.arrowY ?? m.y), i.middlewareData[y.name] = m;
|
|
773
|
+
});
|
|
774
|
+
const v = ae(t, e, i.placement, r), f = j(r, "offset"), p = f ? (c = f.params) == null ? void 0 : c.value : 0;
|
|
775
|
+
if (Number.isFinite(i.x) || (i.x = v.x), !Number.isFinite(i.y))
|
|
776
|
+
if (Y(r, e)) {
|
|
777
|
+
const y = t.getBoundingClientRect(), m = e.getBoundingClientRect().height;
|
|
778
|
+
i.placement.startsWith("top") ? i.y = y.top - m - p : i.placement.startsWith("bottom") ? i.y = y.bottom + p : i.y = v.y;
|
|
779
|
+
} else
|
|
780
|
+
i.y = v.y;
|
|
781
|
+
o(i);
|
|
782
|
+
}), xt = ["disabled", "aria-expanded", "onKeydown"], Tt = ["data-placement"], Rt = ["disabled", "aria-selected", "onClick"], fo = /* @__PURE__ */ X({
|
|
783
|
+
__name: "select",
|
|
784
|
+
props: {
|
|
785
|
+
modelValue: { default: void 0 },
|
|
786
|
+
options: { default: () => [] },
|
|
787
|
+
optionLabel: { default: "label" },
|
|
788
|
+
optionValue: { default: "value" },
|
|
789
|
+
placeholder: { default: "" },
|
|
790
|
+
disabled: { type: Boolean, default: !1 },
|
|
791
|
+
size: { default: "normal" }
|
|
792
|
+
},
|
|
793
|
+
emits: ["update:modelValue", "change", "focus", "blur"],
|
|
794
|
+
setup(t, { emit: e }) {
|
|
795
|
+
let r = 0;
|
|
796
|
+
const o = e, n = t, c = N(null), s = N(null), i = N(null), l = N(!1), u = N("bottom"), d = N("bottom"), a = `vf-select-panel-${++r}`;
|
|
797
|
+
let v = null;
|
|
798
|
+
const f = w(() => n.options.map((b) => ({
|
|
799
|
+
label: b[n.optionLabel],
|
|
800
|
+
value: b[n.optionValue],
|
|
801
|
+
disabled: b.disabled
|
|
802
|
+
}))), p = w(() => f.value.find((b) => b.value === n.modelValue)), y = w(() => {
|
|
803
|
+
var b;
|
|
804
|
+
return ((b = p.value) == null ? void 0 : b.label) ?? "";
|
|
805
|
+
}), m = w(() => {
|
|
806
|
+
const b = ["vf-select", l.value ? "vf-select_open" : ""];
|
|
807
|
+
return n.size !== "normal" && b.push(`vf-select_${n.size}`), n.disabled && b.push("vf-select_disabled"), b.filter(Boolean);
|
|
808
|
+
}), Q = (b) => b.value === n.modelValue, ee = (b) => {
|
|
809
|
+
b.disabled || (o("update:modelValue", b.value), o("change", b.value), H());
|
|
810
|
+
}, x = (b) => o("focus", b), $ = (b) => o("blur", b), H = () => {
|
|
811
|
+
l.value = !1, u.value = "bottom", d.value = "bottom";
|
|
812
|
+
}, A = () => {
|
|
813
|
+
n.disabled || (l.value = !l.value, l.value && (u.value = "bottom", d.value = "bottom"));
|
|
814
|
+
}, S = async () => {
|
|
815
|
+
var b, F;
|
|
816
|
+
l.value || (l.value = !0, await de()), (F = (b = i.value) == null ? void 0 : b.querySelector(".vf-select__option:not(.is-disabled)")) == null || F.focus();
|
|
817
|
+
}, D = (b) => {
|
|
818
|
+
var T;
|
|
819
|
+
if (!l.value || !c.value)
|
|
820
|
+
return;
|
|
821
|
+
const F = b.target;
|
|
822
|
+
c.value.contains(F) || (T = i.value) != null && T.contains(F) || H();
|
|
823
|
+
}, q = () => {
|
|
824
|
+
if (!s.value || !i.value)
|
|
825
|
+
return;
|
|
826
|
+
const b = s.value, F = i.value, T = async () => {
|
|
827
|
+
const {
|
|
828
|
+
x: Be,
|
|
829
|
+
y: xe,
|
|
830
|
+
placement: Te
|
|
831
|
+
} = await Bt(b, F, {
|
|
832
|
+
placement: u.value,
|
|
833
|
+
strategy: "fixed",
|
|
834
|
+
middleware: [st(2), nt({ placements: ["bottom", "top"] })]
|
|
835
|
+
});
|
|
836
|
+
d.value = Te ?? u.value, F.style.minWidth = `${b.getBoundingClientRect().width}px`, F.style.left = `${Be}px`, F.style.top = `${xe}px`;
|
|
837
|
+
}, re = async () => {
|
|
838
|
+
await T();
|
|
839
|
+
}, $e = dt(b, () => {
|
|
840
|
+
re();
|
|
841
|
+
}), ne = () => {
|
|
842
|
+
re();
|
|
843
|
+
};
|
|
844
|
+
document.addEventListener("scroll", ne, !0), window.addEventListener("resize", ne, !1), v = {
|
|
845
|
+
update: re,
|
|
846
|
+
destroy: () => {
|
|
847
|
+
$e(), document.removeEventListener("scroll", ne, !0), window.removeEventListener("resize", ne, !1);
|
|
848
|
+
}
|
|
849
|
+
}, v.update();
|
|
850
|
+
};
|
|
851
|
+
return le(l, async (b) => {
|
|
852
|
+
if (!b) {
|
|
853
|
+
v && (v.destroy(), v = null);
|
|
854
|
+
return;
|
|
855
|
+
}
|
|
856
|
+
await de(), v || q(), v == null || v.update();
|
|
857
|
+
}), le(
|
|
858
|
+
() => n.options,
|
|
859
|
+
() => {
|
|
860
|
+
v == null || v.update();
|
|
861
|
+
},
|
|
862
|
+
{ deep: !0 }
|
|
863
|
+
), Re(() => {
|
|
864
|
+
document.addEventListener("click", D);
|
|
865
|
+
}), Se(() => {
|
|
866
|
+
document.removeEventListener("click", D), v == null || v.destroy(), v = null;
|
|
867
|
+
}), (b, F) => (g(), h("div", {
|
|
868
|
+
ref_key: "root",
|
|
869
|
+
ref: c,
|
|
870
|
+
class: C(m.value)
|
|
871
|
+
}, [
|
|
872
|
+
B("button", {
|
|
873
|
+
ref_key: "trigger",
|
|
874
|
+
ref: s,
|
|
875
|
+
class: "vf-select__control",
|
|
876
|
+
type: "button",
|
|
877
|
+
disabled: b.disabled,
|
|
878
|
+
"aria-expanded": l.value,
|
|
879
|
+
"aria-controls": a,
|
|
880
|
+
"aria-haspopup": "listbox",
|
|
881
|
+
onClick: A,
|
|
882
|
+
onKeydown: [
|
|
883
|
+
K(G(S, ["prevent"]), ["down"]),
|
|
884
|
+
K(G(A, ["prevent"]), ["enter"]),
|
|
885
|
+
K(G(H, ["prevent"]), ["esc"])
|
|
886
|
+
],
|
|
887
|
+
onFocus: x,
|
|
888
|
+
onBlur: $
|
|
889
|
+
}, [
|
|
890
|
+
B("span", {
|
|
891
|
+
class: C(["vf-select__label", { "vf-select__label_placeholder": !y.value }])
|
|
892
|
+
}, M(y.value || b.placeholder), 3),
|
|
893
|
+
F[0] || (F[0] = B("span", {
|
|
894
|
+
class: "vf-select__chevron",
|
|
895
|
+
"aria-hidden": "true"
|
|
896
|
+
}, "▾", -1))
|
|
897
|
+
], 40, xt),
|
|
898
|
+
(g(), W(Le, { to: "body" }, [
|
|
899
|
+
me(B("div", {
|
|
900
|
+
id: a,
|
|
901
|
+
ref_key: "panel",
|
|
902
|
+
ref: i,
|
|
903
|
+
class: "vf-select__panel",
|
|
904
|
+
role: "listbox",
|
|
905
|
+
"data-placement": d.value
|
|
906
|
+
}, [
|
|
907
|
+
(g(!0), h(oe, null, ge(f.value, (T) => (g(), h("button", {
|
|
908
|
+
key: T.value,
|
|
909
|
+
class: C(["vf-select__option", { "is-active": Q(T), "is-disabled": T.disabled }]),
|
|
910
|
+
type: "button",
|
|
911
|
+
role: "option",
|
|
912
|
+
disabled: T.disabled,
|
|
913
|
+
"aria-selected": Q(T),
|
|
914
|
+
onClick: (re) => ee(T)
|
|
915
|
+
}, M(T.label), 11, Rt))), 128))
|
|
916
|
+
], 8, Tt), [
|
|
917
|
+
[ye, l.value]
|
|
918
|
+
])
|
|
919
|
+
]))
|
|
920
|
+
], 2));
|
|
921
|
+
}
|
|
922
|
+
}), St = ["checked", "disabled"], Lt = {
|
|
923
|
+
key: 0,
|
|
924
|
+
class: "vf-checkbox__label"
|
|
925
|
+
}, vo = /* @__PURE__ */ X({
|
|
926
|
+
__name: "checkbox",
|
|
927
|
+
props: {
|
|
928
|
+
modelValue: { type: Boolean, default: !1 },
|
|
929
|
+
label: { default: "" },
|
|
930
|
+
disabled: { type: Boolean, default: !1 }
|
|
931
|
+
},
|
|
932
|
+
emits: ["update:modelValue", "change"],
|
|
933
|
+
setup(t, { emit: e }) {
|
|
934
|
+
const r = e, o = t, n = w(() => {
|
|
935
|
+
const s = ["vf-checkbox"];
|
|
936
|
+
return o.disabled && s.push("vf-checkbox_disabled"), s;
|
|
937
|
+
}), c = (s) => {
|
|
938
|
+
const i = s.target;
|
|
939
|
+
r("update:modelValue", i.checked), r("change", s);
|
|
940
|
+
};
|
|
941
|
+
return (s, i) => (g(), h("label", {
|
|
942
|
+
class: C(n.value)
|
|
943
|
+
}, [
|
|
944
|
+
B("input", {
|
|
945
|
+
class: "vf-checkbox__control",
|
|
946
|
+
type: "checkbox",
|
|
947
|
+
checked: s.modelValue,
|
|
948
|
+
disabled: s.disabled,
|
|
949
|
+
onChange: c
|
|
950
|
+
}, null, 40, St),
|
|
951
|
+
i[0] || (i[0] = B("span", { class: "vf-checkbox__box" }, null, -1)),
|
|
952
|
+
s.label || s.$slots.default ? (g(), h("span", Lt, [
|
|
953
|
+
k(s.$slots, "default", {}, () => [
|
|
954
|
+
J(M(s.label), 1)
|
|
955
|
+
])
|
|
956
|
+
])) : _("", !0)
|
|
957
|
+
], 2));
|
|
958
|
+
}
|
|
959
|
+
}), Vt = ["checked", "disabled"], zt = {
|
|
960
|
+
key: 0,
|
|
961
|
+
class: "vf-switch__label"
|
|
962
|
+
}, po = /* @__PURE__ */ X({
|
|
963
|
+
__name: "switch",
|
|
964
|
+
props: {
|
|
965
|
+
modelValue: { type: Boolean, default: !1 },
|
|
966
|
+
label: { default: "" },
|
|
967
|
+
disabled: { type: Boolean, default: !1 }
|
|
968
|
+
},
|
|
969
|
+
emits: ["update:modelValue", "change"],
|
|
970
|
+
setup(t, { emit: e }) {
|
|
971
|
+
const r = e, o = t, n = w(() => {
|
|
972
|
+
const s = ["vf-switch"];
|
|
973
|
+
return o.disabled && s.push("vf-switch_disabled"), s;
|
|
974
|
+
}), c = (s) => {
|
|
975
|
+
const i = s.target;
|
|
976
|
+
r("update:modelValue", i.checked), r("change", s);
|
|
977
|
+
};
|
|
978
|
+
return (s, i) => (g(), h("label", {
|
|
979
|
+
class: C(n.value)
|
|
980
|
+
}, [
|
|
981
|
+
B("input", {
|
|
982
|
+
class: "vf-switch__control",
|
|
983
|
+
type: "checkbox",
|
|
984
|
+
checked: s.modelValue,
|
|
985
|
+
disabled: s.disabled,
|
|
986
|
+
onChange: c
|
|
987
|
+
}, null, 40, Vt),
|
|
988
|
+
i[0] || (i[0] = B("span", { class: "vf-switch__track" }, [
|
|
989
|
+
B("span", { class: "vf-switch__thumb" })
|
|
990
|
+
], -1)),
|
|
991
|
+
s.label || s.$slots.default ? (g(), h("span", zt, [
|
|
992
|
+
k(s.$slots, "default", {}, () => [
|
|
993
|
+
J(M(s.label), 1)
|
|
994
|
+
])
|
|
995
|
+
])) : _("", !0)
|
|
996
|
+
], 2));
|
|
997
|
+
}
|
|
998
|
+
}), Wt = { class: "vf-popover" }, Mt = ["aria-expanded", "onKeydown"], bo = /* @__PURE__ */ X({
|
|
679
999
|
__name: "popover",
|
|
680
|
-
emits: ["onClick"],
|
|
681
|
-
setup(
|
|
682
|
-
const
|
|
683
|
-
|
|
684
|
-
|
|
1000
|
+
emits: ["click", "onClick"],
|
|
1001
|
+
setup(t, { expose: e, emit: r }) {
|
|
1002
|
+
const o = r, n = Ve({ visible: !1 });
|
|
1003
|
+
let c = 0;
|
|
1004
|
+
const s = `vf-popover-panel-${++c}`, i = () => n.visible = !0, l = () => n.visible = !1, u = () => n.visible = !n.visible, d = () => {
|
|
1005
|
+
u(), o("click"), o("onClick");
|
|
1006
|
+
};
|
|
1007
|
+
return e({ show: i, hide: l, toggle: u }), (a, v) => (g(), h("div", Wt, [
|
|
1008
|
+
B("div", {
|
|
685
1009
|
class: "vf-popover__button",
|
|
686
|
-
|
|
1010
|
+
role: "button",
|
|
1011
|
+
tabindex: "0",
|
|
1012
|
+
"aria-haspopup": "dialog",
|
|
1013
|
+
"aria-expanded": n.visible,
|
|
1014
|
+
"aria-controls": s,
|
|
1015
|
+
onClick: d,
|
|
1016
|
+
onKeydown: [
|
|
1017
|
+
K(G(d, ["prevent"]), ["enter"]),
|
|
1018
|
+
K(G(d, ["prevent"]), ["space"])
|
|
1019
|
+
]
|
|
687
1020
|
}, [
|
|
688
|
-
|
|
689
|
-
]),
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
1021
|
+
k(a.$slots, "button")
|
|
1022
|
+
], 40, Mt),
|
|
1023
|
+
me(he(Xe, {
|
|
1024
|
+
id: s,
|
|
1025
|
+
class: "vf-popover__wrapper"
|
|
1026
|
+
}, ze({
|
|
1027
|
+
default: I(() => [
|
|
1028
|
+
v[0] || (v[0] = B("div", { class: "vf-popover__arrow" }, null, -1))
|
|
693
1029
|
]),
|
|
694
1030
|
_: 2
|
|
695
1031
|
}, [
|
|
696
|
-
|
|
1032
|
+
a.$slots.default ? {
|
|
697
1033
|
name: "default",
|
|
698
|
-
fn:
|
|
699
|
-
|
|
1034
|
+
fn: I(() => [
|
|
1035
|
+
k(a.$slots, "default")
|
|
700
1036
|
]),
|
|
701
1037
|
key: "0"
|
|
702
1038
|
} : void 0,
|
|
703
|
-
|
|
1039
|
+
a.$slots.header || a.$slots.popoverHeader ? {
|
|
704
1040
|
name: "header",
|
|
705
|
-
fn:
|
|
706
|
-
|
|
1041
|
+
fn: I(() => [
|
|
1042
|
+
k(a.$slots, "header"),
|
|
1043
|
+
a.$slots.header ? _("", !0) : k(a.$slots, "popoverHeader", { key: 0 })
|
|
707
1044
|
]),
|
|
708
1045
|
key: "1"
|
|
709
1046
|
} : void 0,
|
|
710
|
-
|
|
1047
|
+
a.$slots.body || a.$slots.popoverBody ? {
|
|
711
1048
|
name: "body",
|
|
712
|
-
fn:
|
|
713
|
-
|
|
1049
|
+
fn: I(() => [
|
|
1050
|
+
k(a.$slots, "body"),
|
|
1051
|
+
a.$slots.body ? _("", !0) : k(a.$slots, "popoverBody", { key: 0 })
|
|
714
1052
|
]),
|
|
715
1053
|
key: "2"
|
|
716
1054
|
} : void 0,
|
|
717
|
-
|
|
1055
|
+
a.$slots.footer || a.$slots.popoverFooter ? {
|
|
718
1056
|
name: "footer",
|
|
719
|
-
fn:
|
|
720
|
-
|
|
1057
|
+
fn: I(() => [
|
|
1058
|
+
k(a.$slots, "footer"),
|
|
1059
|
+
a.$slots.footer ? _("", !0) : k(a.$slots, "popoverFooter", { key: 0 })
|
|
721
1060
|
]),
|
|
722
1061
|
key: "3"
|
|
723
1062
|
} : void 0
|
|
724
1063
|
]), 1536), [
|
|
725
|
-
[
|
|
1064
|
+
[ye, n.visible]
|
|
726
1065
|
])
|
|
727
1066
|
]));
|
|
728
1067
|
}
|
|
729
|
-
}),
|
|
730
|
-
|
|
731
|
-
return r(), s("div", ir, [
|
|
732
|
-
u(o.$slots, "default")
|
|
733
|
-
]);
|
|
734
|
-
}
|
|
735
|
-
const Tr = /* @__PURE__ */ $(cr, [["render", ur]]), Z = (o, e) => "#" + o.replace(/^#/, "").replace(/../g, (a) => ("0" + Math.min(255, Math.max(0, parseInt(a, 16) + e)).toString(16)).slice(-2)), dr = (o, e) => Z(o, 16 * e), vr = (o, e) => Z(o, -16 * e), R = (o) => {
|
|
736
|
-
const e = parseInt(o.replace("#", ""), 16), a = e >> 16 & 255, t = e >> 8 & 255, n = e & 255;
|
|
737
|
-
return `${a}, ${t}, ${n}`;
|
|
738
|
-
}, fr = (o) => {
|
|
739
|
-
const e = o.replace(/([A-Z])/g, "-$1");
|
|
1068
|
+
}), Ht = ["dark", "light", "theme", "preset", "colors", "components", "colorScheme"], Ot = (t) => {
|
|
1069
|
+
const e = t.replace(/([A-Z])/g, "-$1");
|
|
740
1070
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
741
|
-
},
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
1071
|
+
}, Et = (t) => t.filter((e) => !Ht.includes(e)).map((e) => Ot(e)).join("-").toLowerCase(), Pt = (t) => /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(t), ie = (t) => {
|
|
1072
|
+
if (!Pt(t))
|
|
1073
|
+
return null;
|
|
1074
|
+
if (t.length === 4) {
|
|
1075
|
+
const e = t[1], r = t[2], o = t[3];
|
|
1076
|
+
return `#${e}${e}${r}${r}${o}${o}`;
|
|
1077
|
+
}
|
|
1078
|
+
return t.toLowerCase();
|
|
1079
|
+
}, we = (t) => {
|
|
1080
|
+
const e = ie(t);
|
|
1081
|
+
if (!e)
|
|
1082
|
+
return [0, 0, 0];
|
|
1083
|
+
const r = parseInt(e.slice(1), 16), o = r >> 16 & 255, n = r >> 8 & 255, c = r & 255;
|
|
1084
|
+
return [o, n, c];
|
|
1085
|
+
}, ve = (t) => {
|
|
1086
|
+
const [e, r, o] = we(t);
|
|
1087
|
+
return `${e}, ${r}, ${o}`;
|
|
1088
|
+
}, At = (t, e, r) => {
|
|
1089
|
+
const o = t / 255, n = e / 255, c = r / 255, s = Math.max(o, n, c), i = Math.min(o, n, c), l = s - i;
|
|
1090
|
+
let u = 0, d = 0;
|
|
1091
|
+
const a = (s + i) / 2;
|
|
1092
|
+
if (l !== 0) {
|
|
1093
|
+
switch (d = l / (1 - Math.abs(2 * a - 1)), s) {
|
|
1094
|
+
case o:
|
|
1095
|
+
u = (n - c) / l % 6;
|
|
1096
|
+
break;
|
|
1097
|
+
case n:
|
|
1098
|
+
u = (c - o) / l + 2;
|
|
1099
|
+
break;
|
|
1100
|
+
case c:
|
|
1101
|
+
u = (o - n) / l + 4;
|
|
1102
|
+
break;
|
|
754
1103
|
}
|
|
1104
|
+
u *= 60, u < 0 && (u += 360);
|
|
1105
|
+
}
|
|
1106
|
+
return [u, d * 100, a * 100];
|
|
1107
|
+
}, Dt = (t, e, r) => {
|
|
1108
|
+
const o = e / 100, n = r / 100, c = (1 - Math.abs(2 * n - 1)) * o, s = c * (1 - Math.abs(t / 60 % 2 - 1)), i = n - c / 2;
|
|
1109
|
+
let l = 0, u = 0, d = 0;
|
|
1110
|
+
t >= 0 && t < 60 ? (l = c, u = s, d = 0) : t >= 60 && t < 120 ? (l = s, u = c, d = 0) : t >= 120 && t < 180 ? (l = 0, u = c, d = s) : t >= 180 && t < 240 ? (l = 0, u = s, d = c) : t >= 240 && t < 300 ? (l = s, u = 0, d = c) : (l = c, u = 0, d = s);
|
|
1111
|
+
const a = Math.round((l + i) * 255), v = Math.round((u + i) * 255), f = Math.round((d + i) * 255);
|
|
1112
|
+
return [a, v, f];
|
|
1113
|
+
}, Nt = (t, e, r) => `#${[t, e, r].map((o) => o.toString(16).padStart(2, "0")).join("")}`, It = (t, e, r) => Math.min(r, Math.max(e, t)), jt = (t, e) => {
|
|
1114
|
+
const r = ie(t);
|
|
1115
|
+
if (!r)
|
|
1116
|
+
return t;
|
|
1117
|
+
const [o, n, c] = we(r), [s, i, l] = At(o, n, c), d = (e - 5) * 7, a = It(l + d, 0, 100), [v, f, p] = Dt(s, i, a);
|
|
1118
|
+
return Nt(v, f, p);
|
|
1119
|
+
}, Xt = (t) => {
|
|
1120
|
+
if (typeof document > "u")
|
|
1121
|
+
return null;
|
|
1122
|
+
const e = document.getElementById(t);
|
|
1123
|
+
if (e && e.tagName.toLowerCase() === "style")
|
|
1124
|
+
return e;
|
|
1125
|
+
const r = document.createElement("style");
|
|
1126
|
+
return r.id = t, document.head.appendChild(r), r;
|
|
1127
|
+
}, se = (t) => !!t && typeof t == "object" && !Array.isArray(t), ce = (t, e) => {
|
|
1128
|
+
if (!e)
|
|
1129
|
+
return { ...t };
|
|
1130
|
+
const r = { ...t };
|
|
1131
|
+
for (const o in e) {
|
|
1132
|
+
const n = e[o], c = t[o];
|
|
1133
|
+
se(c) && se(n) ? r[o] = ce(c, n) : r[o] = n;
|
|
1134
|
+
}
|
|
1135
|
+
return r;
|
|
1136
|
+
}, _e = (t) => {
|
|
1137
|
+
if (!t)
|
|
1138
|
+
return null;
|
|
1139
|
+
if (se(t) && "preset" in t) {
|
|
1140
|
+
const e = t;
|
|
1141
|
+
return {
|
|
1142
|
+
preset: e.preset ?? {},
|
|
1143
|
+
overrides: e.overrides,
|
|
1144
|
+
selector: e.selector,
|
|
1145
|
+
darkSelector: e.darkSelector
|
|
1146
|
+
};
|
|
755
1147
|
}
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
1148
|
+
return { preset: t };
|
|
1149
|
+
}, Yt = (t) => {
|
|
1150
|
+
const e = [], r = [], o = (n, c) => {
|
|
1151
|
+
if (!(!n || typeof n != "object"))
|
|
1152
|
+
for (const s in n) {
|
|
1153
|
+
const i = n[s], l = c.concat([s]);
|
|
1154
|
+
if (i && typeof i == "object") {
|
|
1155
|
+
o(i, l);
|
|
1156
|
+
continue;
|
|
1157
|
+
}
|
|
1158
|
+
if (typeof i != "string")
|
|
1159
|
+
continue;
|
|
1160
|
+
const d = l.includes("colorScheme") && l.includes("dark") ? r : e, a = Et(l);
|
|
1161
|
+
if (d.push(`--vf-${a}: ${i}`), l.includes("colors")) {
|
|
1162
|
+
const v = ie(i);
|
|
1163
|
+
if (!v)
|
|
1164
|
+
continue;
|
|
1165
|
+
if (d.push(`--vf-${a}-rgb: ${ve(v)}`), s !== "white")
|
|
1166
|
+
for (let f = 1; f < 10; ++f) {
|
|
1167
|
+
const p = jt(v, f);
|
|
1168
|
+
d.push(`--vf-${a}-${f}00: ${p}`), d.push(`--vf-${a}-${f}00-rgb: ${ve(p)}`);
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
}
|
|
1172
|
+
};
|
|
1173
|
+
return o(t, []), { baseVars: e, darkVars: r };
|
|
1174
|
+
}, Kt = (t, e, r) => {
|
|
1175
|
+
const { baseVars: o, darkVars: n } = Yt(t), c = Xt("vueforge-theme");
|
|
1176
|
+
if (!c)
|
|
1177
|
+
return;
|
|
1178
|
+
const s = [];
|
|
1179
|
+
o.length && s.push(`${e} { ${o.join(";")} }`), n.length && s.push(`${r} { ${n.join(";")} }`), c.textContent = s.join(`
|
|
1180
|
+
`);
|
|
1181
|
+
};
|
|
1182
|
+
let E = null;
|
|
1183
|
+
const Gt = (t) => ({
|
|
1184
|
+
selector: t.selector ?? ":root",
|
|
1185
|
+
darkSelector: t.darkSelector ?? ":root[data-theme=dark]"
|
|
1186
|
+
}), Fe = (t) => {
|
|
1187
|
+
const e = _e(t);
|
|
1188
|
+
if (!e)
|
|
1189
|
+
return;
|
|
1190
|
+
const r = ce(e.preset, e.overrides), { selector: o, darkSelector: n } = Gt(e);
|
|
1191
|
+
E = { ...e }, Kt(r, o, n);
|
|
1192
|
+
}, go = (t) => {
|
|
1193
|
+
if (!E)
|
|
1194
|
+
return;
|
|
1195
|
+
const e = t.overrides === void 0 ? E.overrides : ce(E.overrides ?? {}, t.overrides ?? {}), r = {
|
|
1196
|
+
preset: t.preset ?? E.preset,
|
|
1197
|
+
overrides: e,
|
|
1198
|
+
selector: t.selector ?? E.selector,
|
|
1199
|
+
darkSelector: t.darkSelector ?? E.darkSelector
|
|
1200
|
+
};
|
|
1201
|
+
Fe(r);
|
|
1202
|
+
}, ho = () => E ? { ...E } : null, mo = {
|
|
1203
|
+
install(t, e = {}) {
|
|
1204
|
+
const r = _e(e.theme);
|
|
1205
|
+
r && Fe(r);
|
|
759
1206
|
}
|
|
760
|
-
},
|
|
1207
|
+
}, pe = {
|
|
761
1208
|
colors: {
|
|
762
1209
|
white: "#ffffff",
|
|
763
1210
|
green: "#0cbc87",
|
|
@@ -768,6 +1215,7 @@ const Tr = /* @__PURE__ */ $(cr, [["render", ur]]), Z = (o, e) => "#" + o.replac
|
|
|
768
1215
|
purple: "#6f42c1",
|
|
769
1216
|
gray: "#adb5bd"
|
|
770
1217
|
},
|
|
1218
|
+
borderWidth: "1px",
|
|
771
1219
|
colorScheme: {
|
|
772
1220
|
light: {
|
|
773
1221
|
bgColor: "#ffffff",
|
|
@@ -788,10 +1236,12 @@ const Tr = /* @__PURE__ */ $(cr, [["render", ur]]), Z = (o, e) => "#" + o.replac
|
|
|
788
1236
|
dividerColor: "#2e2e32"
|
|
789
1237
|
}
|
|
790
1238
|
}
|
|
791
|
-
},
|
|
1239
|
+
}, qt = {
|
|
1240
|
+
fontSize: "1rem",
|
|
792
1241
|
padding: "6px 10px",
|
|
793
1242
|
borderRadius: "6px",
|
|
794
1243
|
roundedBorderRadius: "2rem",
|
|
1244
|
+
iconGap: "6px",
|
|
795
1245
|
small: {
|
|
796
1246
|
fontSize: "0.875rem",
|
|
797
1247
|
padding: "4px 8px"
|
|
@@ -928,30 +1378,38 @@ const Tr = /* @__PURE__ */ $(cr, [["render", ur]]), Z = (o, e) => "#" + o.replac
|
|
|
928
1378
|
}
|
|
929
1379
|
}
|
|
930
1380
|
}
|
|
931
|
-
},
|
|
1381
|
+
}, Ut = {
|
|
932
1382
|
padding: "12px",
|
|
933
1383
|
borderColor: "var(--vf-border-color)",
|
|
934
1384
|
borderRadius: "6px"
|
|
935
|
-
},
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
marginTop: "24px",
|
|
941
|
-
borderTop: "1px solid var(--vf-footer-border-color)",
|
|
942
|
-
borderColor: "var(--vf-border-color)",
|
|
943
|
-
backgroundColor: "var(--vf-bg-color)"
|
|
944
|
-
}, wr = {
|
|
945
|
-
height: "55px",
|
|
946
|
-
padding: "0",
|
|
1385
|
+
}, Zt = {}, Jt = {
|
|
1386
|
+
gap: "0.5rem",
|
|
1387
|
+
fontSize: "1rem",
|
|
1388
|
+
padding: "0.5rem 0.75rem",
|
|
1389
|
+
borderRadius: "6px",
|
|
947
1390
|
borderColor: "var(--vf-border-color)",
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
1391
|
+
backgroundColor: "var(--vf-bg-color)",
|
|
1392
|
+
textColor: "var(--vf-text-color)",
|
|
1393
|
+
placeholderColor: "var(--vf-secondary-text-color)",
|
|
1394
|
+
focusBorderColor: "var(--vf-blue-600)",
|
|
1395
|
+
hoverBorderColor: "var(--vf-blue-500)",
|
|
1396
|
+
disabledOpacity: "0.6",
|
|
1397
|
+
small: {
|
|
1398
|
+
padding: "0.375rem 0.5rem",
|
|
1399
|
+
fontSize: "0.875rem"
|
|
1400
|
+
},
|
|
1401
|
+
large: {
|
|
1402
|
+
padding: "0.625rem 0.875rem",
|
|
1403
|
+
fontSize: "1.125rem"
|
|
1404
|
+
}
|
|
1405
|
+
}, Qt = {
|
|
952
1406
|
hoverColor: "var(--vf-blue)",
|
|
953
1407
|
activeColor: "var(--vf-blue)"
|
|
954
|
-
},
|
|
1408
|
+
}, eo = {
|
|
1409
|
+
iconGap: "6px",
|
|
1410
|
+
submenuOffset: "12px",
|
|
1411
|
+
separatorThickness: "1px",
|
|
1412
|
+
separatorHeight: "1rem",
|
|
955
1413
|
separatorColor: "var(--vf-border-color)",
|
|
956
1414
|
link: {
|
|
957
1415
|
hoverColor: "var(--vf-blue)",
|
|
@@ -967,40 +1425,94 @@ const Tr = /* @__PURE__ */ $(cr, [["render", ur]]), Z = (o, e) => "#" + o.replac
|
|
|
967
1425
|
marginBottom: "0.5rem",
|
|
968
1426
|
marginLeft: "0.5rem"
|
|
969
1427
|
}
|
|
970
|
-
},
|
|
1428
|
+
}, to = {
|
|
971
1429
|
backgroundColor: "var(--vf-bg-color)"
|
|
972
|
-
},
|
|
973
|
-
|
|
1430
|
+
}, oo = {
|
|
1431
|
+
minWidth: "12rem",
|
|
1432
|
+
fontSize: "1rem",
|
|
1433
|
+
controlGap: "0.75rem",
|
|
1434
|
+
chevronSize: "0.9em",
|
|
1435
|
+
padding: "0.5rem 0.75rem",
|
|
1436
|
+
borderRadius: "6px",
|
|
1437
|
+
borderColor: "var(--vf-border-color)",
|
|
1438
|
+
backgroundColor: "var(--vf-bg-color)",
|
|
1439
|
+
textColor: "var(--vf-text-color)",
|
|
1440
|
+
focusBorderColor: "var(--vf-blue-600)",
|
|
1441
|
+
hoverBorderColor: "var(--vf-blue-500)",
|
|
1442
|
+
disabledOpacity: "0.6",
|
|
1443
|
+
panelBackgroundColor: "var(--vf-bg-color)",
|
|
1444
|
+
panelBorderColor: "var(--vf-border-color)",
|
|
1445
|
+
panelPadding: "0.35rem",
|
|
1446
|
+
panelMaxHeight: "16rem",
|
|
1447
|
+
panelRadiusOffset: "2px",
|
|
1448
|
+
panelShadow: "0 10px 30px rgba(0, 0, 0, 0.12)",
|
|
1449
|
+
focusRingShadow: "0 0 0 3px rgba(var(--vf-blue-600-rgb), 0.12)",
|
|
1450
|
+
optionPadding: "0.5rem 0.6rem",
|
|
1451
|
+
optionBorderRadius: "6px",
|
|
1452
|
+
optionHoverBackgroundColor: "rgba(var(--vf-blue-600-rgb), 0.08)",
|
|
1453
|
+
optionActiveBackgroundColor: "rgba(var(--vf-blue-600-rgb), 0.14)",
|
|
1454
|
+
optionActiveTextColor: "var(--vf-text-color)",
|
|
1455
|
+
small: {
|
|
1456
|
+
padding: "0.375rem 0.5rem",
|
|
1457
|
+
fontSize: "0.875rem"
|
|
1458
|
+
},
|
|
1459
|
+
large: {
|
|
1460
|
+
padding: "0.625rem 0.875rem",
|
|
1461
|
+
fontSize: "1.125rem"
|
|
1462
|
+
}
|
|
1463
|
+
}, ro = {
|
|
1464
|
+
size: "1rem",
|
|
1465
|
+
gap: "0.5rem",
|
|
1466
|
+
borderRadius: "4px",
|
|
1467
|
+
checkBorderRadius: "2px",
|
|
1468
|
+
borderColor: "var(--vf-border-color)",
|
|
1469
|
+
backgroundColor: "var(--vf-bg-color)",
|
|
1470
|
+
checkedBackgroundColor: "var(--vf-blue)",
|
|
1471
|
+
checkedBorderColor: "var(--vf-blue)",
|
|
1472
|
+
checkColor: "#ffffff",
|
|
1473
|
+
textColor: "var(--vf-text-color)",
|
|
1474
|
+
disabledOpacity: "0.6"
|
|
1475
|
+
}, no = {
|
|
1476
|
+
width: "2.25rem",
|
|
1477
|
+
height: "1.25rem",
|
|
1478
|
+
thumbSize: "1rem",
|
|
1479
|
+
gap: "0.5rem",
|
|
1480
|
+
thumbOffset: "2px",
|
|
1481
|
+
thumbTranslateOffset: "4px",
|
|
1482
|
+
backgroundColor: "var(--vf-border-color)",
|
|
1483
|
+
checkedBackgroundColor: "var(--vf-blue)",
|
|
1484
|
+
thumbColor: "#ffffff",
|
|
1485
|
+
textColor: "var(--vf-text-color)",
|
|
1486
|
+
disabledOpacity: "0.6"
|
|
1487
|
+
}, yo = {
|
|
1488
|
+
...pe,
|
|
974
1489
|
components: {
|
|
975
|
-
base:
|
|
976
|
-
button:
|
|
977
|
-
card:
|
|
978
|
-
codeBlock:
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
menu: $r,
|
|
987
|
-
popover: Br
|
|
1490
|
+
base: pe,
|
|
1491
|
+
button: qt,
|
|
1492
|
+
card: Ut,
|
|
1493
|
+
codeBlock: Zt,
|
|
1494
|
+
input: Jt,
|
|
1495
|
+
link: Qt,
|
|
1496
|
+
menu: eo,
|
|
1497
|
+
popover: to,
|
|
1498
|
+
select: oo,
|
|
1499
|
+
checkbox: ro,
|
|
1500
|
+
switch: no
|
|
988
1501
|
}
|
|
989
1502
|
};
|
|
990
1503
|
export {
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
Lr as VueForge
|
|
1504
|
+
co as Button,
|
|
1505
|
+
Xe as Card,
|
|
1506
|
+
vo as Checkbox,
|
|
1507
|
+
yo as DefaultTheme,
|
|
1508
|
+
uo as Input,
|
|
1509
|
+
ke as Link,
|
|
1510
|
+
io as Menu,
|
|
1511
|
+
bo as Popover,
|
|
1512
|
+
fo as Select,
|
|
1513
|
+
po as Switch,
|
|
1514
|
+
mo as VueForge,
|
|
1515
|
+
ho as getTheme,
|
|
1516
|
+
Fe as setTheme,
|
|
1517
|
+
go as updateTheme
|
|
1006
1518
|
};
|