@codemonster-ru/vueforge 0.2.0 → 0.2.1
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/index.css +1 -1
- package/dist/index.d.ts +15 -15
- package/dist/index.ts.mjs +295 -306
- package/dist/index.ts.umd.js +3 -3
- package/package.json +1 -1
- /package/dist/{components → package/components}/button.vue.d.ts +0 -0
- /package/dist/{components → package/components}/card.vue.d.ts +0 -0
- /package/dist/{components → package/components}/container.vue.d.ts +0 -0
- /package/dist/{components → package/components}/content.vue.d.ts +0 -0
- /package/dist/{components → package/components}/demo.vue.d.ts +0 -0
- /package/dist/{components → package/components}/footer.vue.d.ts +0 -0
- /package/dist/{components → package/components}/header.vue.d.ts +0 -0
- /package/dist/{components → package/components}/link.vue.d.ts +0 -0
- /package/dist/{components → package/components}/logo.vue.d.ts +0 -0
- /package/dist/{components → package/components}/menu.vue.d.ts +0 -0
- /package/dist/{components → package/components}/popover.vue.d.ts +0 -0
- /package/dist/{config → package/config}/index.d.ts +0 -0
- /package/dist/{layouts → package/layouts}/defaultLayout.vue.d.ts +0 -0
- /package/dist/{layouts → package/layouts}/leftSidebarLayout.vue.d.ts +0 -0
- /package/dist/{themes → package/themes}/default/base.d.ts +0 -0
- /package/dist/{themes → package/themes}/default/components/button.d.ts +0 -0
- /package/dist/{themes → package/themes}/default/components/card.d.ts +0 -0
- /package/dist/{themes → package/themes}/default/components/codeBlock.d.ts +0 -0
- /package/dist/{themes → package/themes}/default/components/container.d.ts +0 -0
- /package/dist/{themes → package/themes}/default/components/content.d.ts +0 -0
- /package/dist/{themes → package/themes}/default/components/demo.d.ts +0 -0
- /package/dist/{themes → package/themes}/default/components/footer.d.ts +0 -0
- /package/dist/{themes → package/themes}/default/components/header.d.ts +0 -0
- /package/dist/{themes → package/themes}/default/components/link.d.ts +0 -0
- /package/dist/{themes → package/themes}/default/components/logo.d.ts +0 -0
- /package/dist/{themes → package/themes}/default/components/menu.d.ts +0 -0
- /package/dist/{themes → package/themes}/default/components/popover.d.ts +0 -0
- /package/dist/{themes → package/themes}/default/index.d.ts +0 -0
package/dist/index.ts.mjs
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { defineComponent as k, resolveComponent as x, openBlock as r, createElementBlock as l, createVNode as w, unref as
|
|
1
|
+
import { defineComponent as k, resolveComponent as x, openBlock as r, createElementBlock as l, createVNode as w, unref as h, withCtx as p, renderSlot as u, createElementVNode as i, inject as I, ref as U, computed as F, normalizeClass as g, Fragment as M, createTextVNode as z, toDisplayString as S, createBlock as y, createCommentVNode as _, defineAsyncComponent as K, resolveDynamicComponent as q, createStaticVNode as G, renderList as W, reactive as J, withDirectives as Q, createSlots as X, vShow as Y } from "vue";
|
|
2
2
|
const ee = { class: "vf-layout" }, jr = /* @__PURE__ */ k({
|
|
3
3
|
__name: "defaultLayout",
|
|
4
4
|
setup(o) {
|
|
5
|
-
return (e,
|
|
5
|
+
return (e, a) => {
|
|
6
6
|
const t = x("router-view");
|
|
7
7
|
return r(), l("div", ee, [
|
|
8
|
-
w(
|
|
9
|
-
left:
|
|
8
|
+
w(h(Xo), null, {
|
|
9
|
+
left: p(() => [
|
|
10
10
|
u(e.$slots, "headerLeft")
|
|
11
11
|
]),
|
|
12
|
-
right:
|
|
12
|
+
right: p(() => [
|
|
13
13
|
u(e.$slots, "headerRight")
|
|
14
14
|
]),
|
|
15
15
|
_: 3
|
|
16
16
|
}),
|
|
17
|
-
w(
|
|
18
|
-
default:
|
|
19
|
-
w(
|
|
20
|
-
default:
|
|
17
|
+
w(h(ar), null, {
|
|
18
|
+
default: p(() => [
|
|
19
|
+
w(h(L), null, {
|
|
20
|
+
default: p(() => [
|
|
21
21
|
w(t)
|
|
22
22
|
]),
|
|
23
23
|
_: 1
|
|
@@ -25,10 +25,10 @@ const ee = { class: "vf-layout" }, jr = /* @__PURE__ */ k({
|
|
|
25
25
|
]),
|
|
26
26
|
_: 1
|
|
27
27
|
}),
|
|
28
|
-
w(
|
|
29
|
-
default:
|
|
30
|
-
w(
|
|
31
|
-
default:
|
|
28
|
+
w(h(rr), null, {
|
|
29
|
+
default: p(() => [
|
|
30
|
+
w(h(L), null, {
|
|
31
|
+
default: p(() => [
|
|
32
32
|
u(e.$slots, "footerDefault")
|
|
33
33
|
]),
|
|
34
34
|
_: 3
|
|
@@ -40,29 +40,29 @@ const ee = { class: "vf-layout" }, jr = /* @__PURE__ */ k({
|
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
}), O = (o, e) => {
|
|
43
|
-
const
|
|
44
|
-
for (const [t,
|
|
45
|
-
|
|
46
|
-
return
|
|
47
|
-
}, oe = {}, re = { class: "
|
|
43
|
+
const a = o.__vccOpts || o;
|
|
44
|
+
for (const [t, s] of e)
|
|
45
|
+
a[t] = s;
|
|
46
|
+
return a;
|
|
47
|
+
}, oe = {}, re = { class: "vf-left-sidebar-flexbox" }, te = { class: "vf-left-sidebar" }, le = { class: "vf-main-content" };
|
|
48
48
|
function ne(o, e) {
|
|
49
|
-
const
|
|
49
|
+
const a = x("router-view");
|
|
50
50
|
return r(), l("div", re, [
|
|
51
51
|
i("div", te, [
|
|
52
52
|
u(o.$slots, "leftSidebar")
|
|
53
53
|
]),
|
|
54
54
|
i("div", le, [
|
|
55
|
-
w(
|
|
55
|
+
w(a)
|
|
56
56
|
])
|
|
57
57
|
]);
|
|
58
58
|
}
|
|
59
|
-
const Pr = /* @__PURE__ */ O(oe, [["render", ne]]),
|
|
60
|
-
function
|
|
61
|
-
return r(), l("div",
|
|
59
|
+
const Pr = /* @__PURE__ */ O(oe, [["render", ne]]), se = {}, ae = { class: "vf-demo" };
|
|
60
|
+
function ce(o, e) {
|
|
61
|
+
return r(), l("div", ae, [
|
|
62
62
|
u(o.$slots, "default")
|
|
63
63
|
]);
|
|
64
64
|
}
|
|
65
|
-
const Mr = /* @__PURE__ */ O(
|
|
65
|
+
const Mr = /* @__PURE__ */ O(se, [["render", ce]]);
|
|
66
66
|
/*!
|
|
67
67
|
* vue-router v4.5.0
|
|
68
68
|
* (c) 2024 Eduardo San Martin Morote
|
|
@@ -101,66 +101,66 @@ const de = ["href"], V = /* @__PURE__ */ k({
|
|
|
101
101
|
},
|
|
102
102
|
emits: ["onActive"],
|
|
103
103
|
setup(o, { emit: e }) {
|
|
104
|
-
const
|
|
105
|
-
return (
|
|
104
|
+
const a = e, t = o, s = ue(), n = U(null), m = F(() => (t.type === "router-link" && s.matched.some(({ name: f }) => t.to.name === f) && a("onActive"), t.active));
|
|
105
|
+
return (f, d) => {
|
|
106
106
|
const v = x("router-link");
|
|
107
|
-
return
|
|
107
|
+
return f.type === "a" ? (r(), l("a", {
|
|
108
108
|
key: 0,
|
|
109
|
-
href:
|
|
110
|
-
class:
|
|
109
|
+
href: f.url,
|
|
110
|
+
class: g(["vf-link", { "vf-link_active": f.active, "vf-link_disabled": f.disabled }])
|
|
111
111
|
}, [
|
|
112
|
-
|
|
113
|
-
z(S(
|
|
112
|
+
f.$slots.default ? u(f.$slots, "default", { key: 0 }) : (r(), l(M, { key: 1 }, [
|
|
113
|
+
z(S(f.label), 1)
|
|
114
114
|
], 64))
|
|
115
115
|
], 10, de)) : (r(), y(v, {
|
|
116
116
|
key: 1,
|
|
117
117
|
ref_key: "link",
|
|
118
118
|
ref: n,
|
|
119
|
-
to:
|
|
120
|
-
class:
|
|
121
|
-
disabled:
|
|
122
|
-
"active-class": "
|
|
123
|
-
"exact-active-class": "
|
|
119
|
+
to: f.to,
|
|
120
|
+
class: g(["vf-link", { "vf-link_active": m.value }]),
|
|
121
|
+
disabled: f.disabled,
|
|
122
|
+
"active-class": "vf-link_partially-active",
|
|
123
|
+
"exact-active-class": "vf-link_active"
|
|
124
124
|
}, {
|
|
125
|
-
default:
|
|
126
|
-
|
|
127
|
-
z(S(
|
|
125
|
+
default: p(() => [
|
|
126
|
+
f.$slots.default ? u(f.$slots, "default", { key: 0 }) : (r(), l(M, { key: 1 }, [
|
|
127
|
+
z(S(f.label), 1)
|
|
128
128
|
], 64))
|
|
129
129
|
]),
|
|
130
130
|
_: 3
|
|
131
131
|
}, 8, ["to", "class", "disabled"]));
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
|
-
}), ve = {},
|
|
134
|
+
}), ve = {}, fe = { class: "vf-card" }, he = {
|
|
135
135
|
key: 0,
|
|
136
|
-
class: "
|
|
137
|
-
}, he = {
|
|
138
|
-
key: 1,
|
|
139
|
-
class: "cm-card__header"
|
|
136
|
+
class: "vf-card__default"
|
|
140
137
|
}, pe = {
|
|
141
|
-
key:
|
|
142
|
-
class: "
|
|
138
|
+
key: 1,
|
|
139
|
+
class: "vf-card__header"
|
|
143
140
|
}, ge = {
|
|
141
|
+
key: 2,
|
|
142
|
+
class: "vf-card__body"
|
|
143
|
+
}, be = {
|
|
144
144
|
key: 3,
|
|
145
|
-
class: "
|
|
145
|
+
class: "vf-card__footer"
|
|
146
146
|
};
|
|
147
|
-
function
|
|
148
|
-
return r(), l("div",
|
|
149
|
-
o.$slots.default ? (r(), l("div",
|
|
147
|
+
function _e(o, e) {
|
|
148
|
+
return r(), l("div", fe, [
|
|
149
|
+
o.$slots.default ? (r(), l("div", he, [
|
|
150
150
|
u(o.$slots, "default")
|
|
151
|
-
])) :
|
|
152
|
-
o.$slots.header ? (r(), l("div",
|
|
151
|
+
])) : _("", !0),
|
|
152
|
+
o.$slots.header ? (r(), l("div", pe, [
|
|
153
153
|
u(o.$slots, "header")
|
|
154
|
-
])) :
|
|
155
|
-
o.$slots.body ? (r(), l("div",
|
|
154
|
+
])) : _("", !0),
|
|
155
|
+
o.$slots.body ? (r(), l("div", ge, [
|
|
156
156
|
u(o.$slots, "body")
|
|
157
|
-
])) :
|
|
158
|
-
o.$slots.footer ? (r(), l("div",
|
|
157
|
+
])) : _("", !0),
|
|
158
|
+
o.$slots.footer ? (r(), l("div", be, [
|
|
159
159
|
u(o.$slots, "footer")
|
|
160
|
-
])) :
|
|
160
|
+
])) : _("", !0)
|
|
161
161
|
]);
|
|
162
162
|
}
|
|
163
|
-
const
|
|
163
|
+
const me = /* @__PURE__ */ O(ve, [["render", _e]]), ye = { class: "vf-logo" }, Ce = ["src", "width", "height", "alt"], we = ["src", "width", "height", "alt"], zr = /* @__PURE__ */ k({
|
|
164
164
|
__name: "logo",
|
|
165
165
|
props: {
|
|
166
166
|
to: { default: void 0 },
|
|
@@ -173,17 +173,17 @@ const _e = /* @__PURE__ */ O(ve, [["render", be]]), ye = { class: "cm-logo" }, C
|
|
|
173
173
|
height: { default: void 0 }
|
|
174
174
|
},
|
|
175
175
|
setup(o) {
|
|
176
|
-
const e = o,
|
|
177
|
-
return (t,
|
|
178
|
-
t.type.length ? (r(), y(
|
|
176
|
+
const e = o, a = F(() => Array.isArray(e.src) ? e.dark ? e.src[1] : e.src[0] : e.src);
|
|
177
|
+
return (t, s) => (r(), l("div", ye, [
|
|
178
|
+
t.type.length ? (r(), y(h(V), {
|
|
179
179
|
key: 0,
|
|
180
180
|
type: t.type,
|
|
181
181
|
to: t.to,
|
|
182
182
|
url: t.url
|
|
183
183
|
}, {
|
|
184
|
-
default:
|
|
184
|
+
default: p(() => [
|
|
185
185
|
i("img", {
|
|
186
|
-
src:
|
|
186
|
+
src: a.value,
|
|
187
187
|
width: t.width,
|
|
188
188
|
height: t.height,
|
|
189
189
|
alt: t.alt
|
|
@@ -192,18 +192,18 @@ const _e = /* @__PURE__ */ O(ve, [["render", be]]), ye = { class: "cm-logo" }, C
|
|
|
192
192
|
_: 1
|
|
193
193
|
}, 8, ["type", "to", "url"])) : (r(), l("img", {
|
|
194
194
|
key: 1,
|
|
195
|
-
src:
|
|
195
|
+
src: a.value,
|
|
196
196
|
width: t.width,
|
|
197
197
|
height: t.height,
|
|
198
198
|
alt: t.alt
|
|
199
199
|
}, null, 8, we))
|
|
200
200
|
]));
|
|
201
201
|
}
|
|
202
|
-
}),
|
|
203
|
-
const
|
|
204
|
-
for (const [t,
|
|
205
|
-
|
|
206
|
-
return
|
|
202
|
+
}), b = (o, e) => {
|
|
203
|
+
const a = o.__vccOpts || o;
|
|
204
|
+
for (const [t, s] of e)
|
|
205
|
+
a[t] = s;
|
|
206
|
+
return a;
|
|
207
207
|
}, ke = {}, Fe = {
|
|
208
208
|
xmlns: "http://www.w3.org/2000/svg",
|
|
209
209
|
viewBox: "0 0 512 512",
|
|
@@ -216,7 +216,7 @@ function $e(o, e) {
|
|
|
216
216
|
G('<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)
|
|
217
217
|
]));
|
|
218
218
|
}
|
|
219
|
-
const Be = /* @__PURE__ */
|
|
219
|
+
const Be = /* @__PURE__ */ b(ke, [["render", $e]]), Se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
220
220
|
__proto__: null,
|
|
221
221
|
default: Be
|
|
222
222
|
}, Symbol.toStringTag, { value: "Module" })), Oe = {}, je = {
|
|
@@ -234,7 +234,7 @@ function Pe(o, e) {
|
|
|
234
234
|
}, null, -1)
|
|
235
235
|
]));
|
|
236
236
|
}
|
|
237
|
-
const Me = /* @__PURE__ */
|
|
237
|
+
const Me = /* @__PURE__ */ b(Oe, [["render", Pe]]), ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
238
238
|
__proto__: null,
|
|
239
239
|
default: Me
|
|
240
240
|
}, Symbol.toStringTag, { value: "Module" })), Le = {}, Te = {
|
|
@@ -260,7 +260,7 @@ function xe(o, e) {
|
|
|
260
260
|
}, null, -1)
|
|
261
261
|
]));
|
|
262
262
|
}
|
|
263
|
-
const Ve = /* @__PURE__ */
|
|
263
|
+
const Ve = /* @__PURE__ */ b(Le, [["render", xe]]), Re = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
264
264
|
__proto__: null,
|
|
265
265
|
default: Ve
|
|
266
266
|
}, Symbol.toStringTag, { value: "Module" })), De = {}, Ne = {
|
|
@@ -284,7 +284,7 @@ function Ee(o, e) {
|
|
|
284
284
|
}, null, -1)
|
|
285
285
|
]));
|
|
286
286
|
}
|
|
287
|
-
const Ze = /* @__PURE__ */
|
|
287
|
+
const Ze = /* @__PURE__ */ b(De, [["render", Ee]]), Ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
288
288
|
__proto__: null,
|
|
289
289
|
default: Ze
|
|
290
290
|
}, Symbol.toStringTag, { value: "Module" })), He = {}, Ie = {
|
|
@@ -302,7 +302,7 @@ function Ue(o, e) {
|
|
|
302
302
|
}, null, -1)
|
|
303
303
|
]));
|
|
304
304
|
}
|
|
305
|
-
const Ke = /* @__PURE__ */
|
|
305
|
+
const Ke = /* @__PURE__ */ b(He, [["render", Ue]]), qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
306
306
|
__proto__: null,
|
|
307
307
|
default: Ke
|
|
308
308
|
}, Symbol.toStringTag, { value: "Module" })), Ge = {}, We = {
|
|
@@ -320,7 +320,7 @@ function Je(o, e) {
|
|
|
320
320
|
}, null, -1)
|
|
321
321
|
]));
|
|
322
322
|
}
|
|
323
|
-
const Qe = /* @__PURE__ */
|
|
323
|
+
const Qe = /* @__PURE__ */ b(Ge, [["render", Je]]), Xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
324
324
|
__proto__: null,
|
|
325
325
|
default: Qe
|
|
326
326
|
}, Symbol.toStringTag, { value: "Module" })), Ye = {}, eo = {
|
|
@@ -345,7 +345,7 @@ function oo(o, e) {
|
|
|
345
345
|
}, null, -1)
|
|
346
346
|
]));
|
|
347
347
|
}
|
|
348
|
-
const ro = /* @__PURE__ */
|
|
348
|
+
const ro = /* @__PURE__ */ b(Ye, [["render", oo]]), to = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
349
349
|
__proto__: null,
|
|
350
350
|
default: ro
|
|
351
351
|
}, Symbol.toStringTag, { value: "Module" })), lo = {}, no = {
|
|
@@ -355,7 +355,7 @@ const ro = /* @__PURE__ */ g(Ye, [["render", oo]]), to = /* @__PURE__ */ Object.
|
|
|
355
355
|
width: "16",
|
|
356
356
|
height: "16"
|
|
357
357
|
};
|
|
358
|
-
function
|
|
358
|
+
function so(o, e) {
|
|
359
359
|
return r(), l("svg", no, e[0] || (e[0] = [
|
|
360
360
|
i("path", {
|
|
361
361
|
fill: "currentColor",
|
|
@@ -367,9 +367,9 @@ function co(o, e) {
|
|
|
367
367
|
}, null, -1)
|
|
368
368
|
]));
|
|
369
369
|
}
|
|
370
|
-
const
|
|
370
|
+
const ao = /* @__PURE__ */ b(lo, [["render", so]]), co = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
371
371
|
__proto__: null,
|
|
372
|
-
default:
|
|
372
|
+
default: ao
|
|
373
373
|
}, Symbol.toStringTag, { value: "Module" })), io = {}, uo = {
|
|
374
374
|
xmlns: "http://www.w3.org/2000/svg",
|
|
375
375
|
viewBox: "0 0 512 512",
|
|
@@ -385,27 +385,27 @@ function vo(o, e) {
|
|
|
385
385
|
}, null, -1)
|
|
386
386
|
]));
|
|
387
387
|
}
|
|
388
|
-
const
|
|
388
|
+
const fo = /* @__PURE__ */ b(io, [["render", vo]]), ho = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
389
389
|
__proto__: null,
|
|
390
|
-
default:
|
|
391
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
390
|
+
default: fo
|
|
391
|
+
}, Symbol.toStringTag, { value: "Module" })), po = {}, go = {
|
|
392
392
|
xmlns: "http://www.w3.org/2000/svg",
|
|
393
393
|
viewBox: "0 0 512 512",
|
|
394
394
|
fill: "none",
|
|
395
395
|
width: "16",
|
|
396
396
|
height: "16"
|
|
397
397
|
};
|
|
398
|
-
function
|
|
399
|
-
return r(), l("svg",
|
|
398
|
+
function bo(o, e) {
|
|
399
|
+
return r(), l("svg", go, e[0] || (e[0] = [
|
|
400
400
|
i("path", {
|
|
401
401
|
fill: "currentColor",
|
|
402
402
|
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"
|
|
403
403
|
}, null, -1)
|
|
404
404
|
]));
|
|
405
405
|
}
|
|
406
|
-
const
|
|
406
|
+
const _o = /* @__PURE__ */ b(po, [["render", bo]]), mo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
407
407
|
__proto__: null,
|
|
408
|
-
default:
|
|
408
|
+
default: _o
|
|
409
409
|
}, Symbol.toStringTag, { value: "Module" })), yo = {}, Co = {
|
|
410
410
|
xmlns: "http://www.w3.org/2000/svg",
|
|
411
411
|
viewBox: "0 0 512 512",
|
|
@@ -421,7 +421,7 @@ function wo(o, e) {
|
|
|
421
421
|
}, null, -1)
|
|
422
422
|
]));
|
|
423
423
|
}
|
|
424
|
-
const ko = /* @__PURE__ */
|
|
424
|
+
const ko = /* @__PURE__ */ b(yo, [["render", wo]]), Fo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
425
425
|
__proto__: null,
|
|
426
426
|
default: ko
|
|
427
427
|
}, Symbol.toStringTag, { value: "Module" })), $o = {}, Bo = {
|
|
@@ -439,7 +439,7 @@ function So(o, e) {
|
|
|
439
439
|
}, null, -1)
|
|
440
440
|
]));
|
|
441
441
|
}
|
|
442
|
-
const Oo = /* @__PURE__ */
|
|
442
|
+
const Oo = /* @__PURE__ */ b($o, [["render", So]]), jo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
443
443
|
__proto__: null,
|
|
444
444
|
default: Oo
|
|
445
445
|
}, Symbol.toStringTag, { value: "Module" })), Po = {}, Mo = {
|
|
@@ -461,7 +461,7 @@ function zo(o, e) {
|
|
|
461
461
|
}, null, -1)
|
|
462
462
|
]));
|
|
463
463
|
}
|
|
464
|
-
const Lo = /* @__PURE__ */
|
|
464
|
+
const Lo = /* @__PURE__ */ b(Po, [["render", zo]]), To = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
465
465
|
__proto__: null,
|
|
466
466
|
default: Lo
|
|
467
467
|
}, Symbol.toStringTag, { value: "Module" })), xo = {}, Vo = {
|
|
@@ -479,17 +479,17 @@ function Ro(o, e) {
|
|
|
479
479
|
}, null, -1)
|
|
480
480
|
]));
|
|
481
481
|
}
|
|
482
|
-
const Do = /* @__PURE__ */
|
|
482
|
+
const Do = /* @__PURE__ */ b(xo, [["render", Ro]]), No = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
483
483
|
__proto__: null,
|
|
484
484
|
default: Do
|
|
485
|
-
}, Symbol.toStringTag, { value: "Module" })), Eo = (o, e,
|
|
485
|
+
}, Symbol.toStringTag, { value: "Module" })), Eo = (o, e, a) => {
|
|
486
486
|
const t = o[e];
|
|
487
|
-
return t ? typeof t == "function" ? t() : Promise.resolve(t) : new Promise((
|
|
487
|
+
return t ? typeof t == "function" ? t() : Promise.resolve(t) : new Promise((s, n) => {
|
|
488
488
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
489
489
|
n.bind(
|
|
490
490
|
null,
|
|
491
491
|
new Error(
|
|
492
|
-
"Unknown variable dynamic import: " + e + (e.split("/").length !==
|
|
492
|
+
"Unknown variable dynamic import: " + e + (e.split("/").length !== a ? ". Note that variables only represent file names one level deep." : "")
|
|
493
493
|
)
|
|
494
494
|
)
|
|
495
495
|
);
|
|
@@ -510,23 +510,23 @@ const Do = /* @__PURE__ */ g(xo, [["render", Ro]]), No = /* @__PURE__ */ Object.
|
|
|
510
510
|
}
|
|
511
511
|
},
|
|
512
512
|
setup(o) {
|
|
513
|
-
const e = o,
|
|
514
|
-
const
|
|
515
|
-
return K(() => Eo(/* @__PURE__ */ Object.assign({ "./bars.vue": () => Promise.resolve().then(() => Re), "./check.vue": () => Promise.resolve().then(() => Xe), "./chevronDown.vue": () => Promise.resolve().then(() =>
|
|
513
|
+
const e = o, a = F(() => {
|
|
514
|
+
const s = e.icon;
|
|
515
|
+
return K(() => Eo(/* @__PURE__ */ Object.assign({ "./bars.vue": () => Promise.resolve().then(() => Re), "./check.vue": () => Promise.resolve().then(() => Xe), "./chevronDown.vue": () => Promise.resolve().then(() => mo), "./chevronLeft.vue": () => Promise.resolve().then(() => Fo), "./chevronRight.vue": () => Promise.resolve().then(() => jo), "./chevronUp.vue": () => Promise.resolve().then(() => ho), "./circleHalf.vue": () => Promise.resolve().then(() => to), "./circleNotch.vue": () => Promise.resolve().then(() => No), "./house.vue": () => Promise.resolve().then(() => qe), "./icon.vue": () => Promise.resolve().then(() => Io), "./magnifyingGlass.vue": () => Promise.resolve().then(() => To), "./moon.vue": () => Promise.resolve().then(() => ze), "./rotateRight.vue": () => Promise.resolve().then(() => co), "./sun.vue": () => Promise.resolve().then(() => Se), "./user.vue": () => Promise.resolve().then(() => Ae) }), `./${s}.vue`, 2));
|
|
516
516
|
}), t = F(() => {
|
|
517
|
-
let
|
|
518
|
-
return e.spin &&
|
|
517
|
+
let s = ["cm-icon"];
|
|
518
|
+
return e.spin && s.push("cm-icon_animations_spin"), s;
|
|
519
519
|
});
|
|
520
|
-
return (
|
|
521
|
-
class:
|
|
520
|
+
return (s, n) => (r(), y(q(a.value), {
|
|
521
|
+
class: g(t.value)
|
|
522
522
|
}, null, 8, ["class"]));
|
|
523
523
|
}
|
|
524
|
-
}), $ = /* @__PURE__ */
|
|
524
|
+
}), $ = /* @__PURE__ */ b(Ho, [["__scopeId", "data-v-e8b1cecb"]]), Io = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
525
525
|
__proto__: null,
|
|
526
526
|
default: $
|
|
527
|
-
}, Symbol.toStringTag, { value: "Module" })), Uo = { class: "
|
|
527
|
+
}, Symbol.toStringTag, { value: "Module" })), Uo = { class: "vf-menu__list" }, Ko = {
|
|
528
528
|
key: 1,
|
|
529
|
-
class: "
|
|
529
|
+
class: "vf-menu__separator"
|
|
530
530
|
}, qo = ["onClick"], Go = /* @__PURE__ */ k({
|
|
531
531
|
__name: "menu",
|
|
532
532
|
props: {
|
|
@@ -535,66 +535,66 @@ const Do = /* @__PURE__ */ g(xo, [["render", Ro]]), No = /* @__PURE__ */ Object.
|
|
|
535
535
|
},
|
|
536
536
|
emits: ["onActive"],
|
|
537
537
|
setup(o, { emit: e }) {
|
|
538
|
-
const
|
|
538
|
+
const a = e, t = o, s = (d, v) => `${d.label}_${v.toString()}`, n = (d) => Object.prototype.hasOwnProperty.call(d, "to") ? "router-link" : "a", m = (d) => {
|
|
539
539
|
Object.prototype.hasOwnProperty.call(d, "items") ? (t.items.map((v) => {
|
|
540
540
|
v !== d && (v.subMenuVisible = !1);
|
|
541
541
|
}), d.subMenuVisible = !d.subMenuVisible) : Object.prototype.hasOwnProperty.call(d, "command") && d.command();
|
|
542
|
-
},
|
|
542
|
+
}, f = (d) => {
|
|
543
543
|
var v;
|
|
544
|
-
for (const
|
|
545
|
-
const C = t.items[
|
|
544
|
+
for (const c in t.items) {
|
|
545
|
+
const C = t.items[c];
|
|
546
546
|
Object.prototype.hasOwnProperty.call(C, "items") && ((v = C.items) != null && v.some((P) => P === d) ? (C.active = !0, C.subMenuVisible = !0) : (C.active = !1, C.subMenuVisible = !1));
|
|
547
547
|
}
|
|
548
|
-
|
|
548
|
+
a("onActive", d);
|
|
549
549
|
};
|
|
550
550
|
return (d, v) => (r(), l("div", {
|
|
551
|
-
class:
|
|
551
|
+
class: g(["vf-menu", `vf-menu_${d.orientation}`])
|
|
552
552
|
}, [
|
|
553
553
|
i("ul", Uo, [
|
|
554
|
-
(r(!0), l(M, null, W(d.items, (
|
|
555
|
-
key: c
|
|
556
|
-
class: "
|
|
554
|
+
(r(!0), l(M, null, W(d.items, (c, C) => (r(), l("li", {
|
|
555
|
+
key: s(c, C),
|
|
556
|
+
class: "vf-menu__item"
|
|
557
557
|
}, [
|
|
558
|
-
d.$slots[c
|
|
558
|
+
d.$slots[s(c, C)] ? u(d.$slots, s(c, C), {
|
|
559
559
|
key: 0,
|
|
560
|
-
item: { ...
|
|
561
|
-
}) :
|
|
560
|
+
item: { ...c, class: "vf-menu__link" }
|
|
561
|
+
}) : c.separator ? (r(), l("hr", Ko)) : c.hasOwnProperty("items") ? (r(), l(M, { key: 2 }, [
|
|
562
562
|
i("div", {
|
|
563
|
-
class:
|
|
564
|
-
onClick: (P) =>
|
|
563
|
+
class: g(["vf-menu__parent", { "vf-menu__parent_active": c.active }]),
|
|
564
|
+
onClick: (P) => m(c)
|
|
565
565
|
}, [
|
|
566
|
-
|
|
566
|
+
c.icon ? (r(), y(h($), {
|
|
567
567
|
key: 0,
|
|
568
|
-
icon:
|
|
569
|
-
class: "
|
|
570
|
-
}, null, 8, ["icon"])) :
|
|
571
|
-
z(" " + S(
|
|
572
|
-
w(
|
|
568
|
+
icon: c.icon,
|
|
569
|
+
class: "vf-menu__icon"
|
|
570
|
+
}, null, 8, ["icon"])) : _("", !0),
|
|
571
|
+
z(" " + S(c.label) + " ", 1),
|
|
572
|
+
w(h($), { icon: "chevronDown" })
|
|
573
573
|
], 10, qo),
|
|
574
|
-
|
|
574
|
+
c.items ? (r(), y(h(Go), {
|
|
575
575
|
key: 0,
|
|
576
|
-
items:
|
|
577
|
-
class:
|
|
578
|
-
onOnActive:
|
|
579
|
-
}, null, 8, ["items", "class"])) :
|
|
580
|
-
], 64)) : (r(), y(
|
|
576
|
+
items: c.items,
|
|
577
|
+
class: g(["vf-menu__submenu", { "vf-menu__submenu_visible": c.subMenuVisible }]),
|
|
578
|
+
onOnActive: f
|
|
579
|
+
}, null, 8, ["items", "class"])) : _("", !0)
|
|
580
|
+
], 64)) : (r(), y(h(V), {
|
|
581
581
|
key: 3,
|
|
582
|
-
to:
|
|
583
|
-
url:
|
|
584
|
-
type: n(
|
|
585
|
-
class: "
|
|
586
|
-
active:
|
|
587
|
-
disabled:
|
|
588
|
-
onClick: (P) =>
|
|
589
|
-
onOnActive: (P) =>
|
|
582
|
+
to: c.to,
|
|
583
|
+
url: c.url,
|
|
584
|
+
type: n(c),
|
|
585
|
+
class: "vf-menu__link",
|
|
586
|
+
active: c.active,
|
|
587
|
+
disabled: c.disabled,
|
|
588
|
+
onClick: (P) => m(c),
|
|
589
|
+
onOnActive: (P) => f(c)
|
|
590
590
|
}, {
|
|
591
|
-
default:
|
|
592
|
-
|
|
591
|
+
default: p(() => [
|
|
592
|
+
c.icon ? (r(), y(h($), {
|
|
593
593
|
key: 0,
|
|
594
|
-
icon:
|
|
595
|
-
class: "
|
|
596
|
-
}, null, 8, ["icon"])) :
|
|
597
|
-
z(" " + S(
|
|
594
|
+
icon: c.icon,
|
|
595
|
+
class: "vf-menu__icon"
|
|
596
|
+
}, null, 8, ["icon"])) : _("", !0),
|
|
597
|
+
z(" " + S(c.label), 1)
|
|
598
598
|
]),
|
|
599
599
|
_: 2
|
|
600
600
|
}, 1032, ["to", "url", "type", "active", "disabled", "onClick", "onOnActive"]))
|
|
@@ -602,30 +602,30 @@ const Do = /* @__PURE__ */ g(xo, [["render", Ro]]), No = /* @__PURE__ */ Object.
|
|
|
602
602
|
])
|
|
603
603
|
], 2));
|
|
604
604
|
}
|
|
605
|
-
}), Wo = { class: "
|
|
605
|
+
}), Wo = { class: "vf-header" }, Jo = {
|
|
606
606
|
key: 0,
|
|
607
|
-
class: "
|
|
607
|
+
class: "vf-header__left"
|
|
608
608
|
}, Qo = {
|
|
609
609
|
key: 1,
|
|
610
|
-
class: "
|
|
610
|
+
class: "vf-header__right"
|
|
611
611
|
}, Xo = /* @__PURE__ */ k({
|
|
612
612
|
__name: "header",
|
|
613
613
|
setup(o) {
|
|
614
|
-
return (e,
|
|
615
|
-
w(
|
|
616
|
-
default:
|
|
614
|
+
return (e, a) => (r(), l("header", Wo, [
|
|
615
|
+
w(h(L), null, {
|
|
616
|
+
default: p(() => [
|
|
617
617
|
e.$slots.left ? (r(), l("div", Jo, [
|
|
618
618
|
u(e.$slots, "left")
|
|
619
|
-
])) :
|
|
619
|
+
])) : _("", !0),
|
|
620
620
|
e.$slots.right ? (r(), l("div", Qo, [
|
|
621
621
|
u(e.$slots, "right")
|
|
622
|
-
])) :
|
|
622
|
+
])) : _("", !0)
|
|
623
623
|
]),
|
|
624
624
|
_: 3
|
|
625
625
|
})
|
|
626
626
|
]));
|
|
627
627
|
}
|
|
628
|
-
}), Yo = {}, er = { class: "
|
|
628
|
+
}), Yo = {}, er = { class: "vf-footer" };
|
|
629
629
|
function or(o, e) {
|
|
630
630
|
return r(), l("footer", er, [
|
|
631
631
|
u(o.$slots, "default")
|
|
@@ -647,153 +647,142 @@ const rr = /* @__PURE__ */ O(Yo, [["render", or]]), tr = ["disabled"], Lr = /* @
|
|
|
647
647
|
disabled: { type: Boolean, default: !1 }
|
|
648
648
|
},
|
|
649
649
|
setup(o) {
|
|
650
|
-
const e = o,
|
|
651
|
-
let n = [
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
return ["top", "bottom"].includes(e.iconPos) && n.push("cm-button_vertical"), e.variant === "text" && n.push("cm-button_text"), e.variant === "outlined" && n.push("cm-button_outlined"), ["small", "large"].indexOf(e.size) > -1 && n.push(`cm-button_${e.size}`), (e.loading || e.disabled) && n.push("cm-button_disabled"), e.rounded && n.push("cm-button_rounded"), n;
|
|
656
|
-
}), t = F(() => ["cm-button__icon", `cm-button__icon_${e.iconPos}`]), c = F(() => ["cm-button__label"]);
|
|
657
|
-
return (n, _) => e.type === "button" ? (r(), l("button", {
|
|
650
|
+
const e = o, a = F(() => {
|
|
651
|
+
let n = ["vf-button", `vf-button_${e.severity}`];
|
|
652
|
+
return ["top", "bottom"].includes(e.iconPos) && n.push("vf-button_vertical"), e.variant === "text" && n.push("vf-button_text"), e.variant === "outlined" && n.push("vf-button_outlined"), ["small", "large"].indexOf(e.size) > -1 && n.push(`vf-button_${e.size}`), (e.loading || e.disabled) && n.push("vf-button_disabled"), e.rounded && n.push("vf-button_rounded"), n;
|
|
653
|
+
}), t = F(() => ["vf-button__icon", `vf-button__icon_${e.iconPos}`]), s = F(() => ["vf-button__label"]);
|
|
654
|
+
return (n, m) => e.type === "button" ? (r(), l("button", {
|
|
658
655
|
key: 0,
|
|
659
|
-
class:
|
|
656
|
+
class: g(a.value),
|
|
660
657
|
disabled: e.loading || e.disabled
|
|
661
658
|
}, [
|
|
662
|
-
e.icon && !e.loading ? (r(), y(
|
|
659
|
+
e.icon && !e.loading ? (r(), y(h($), {
|
|
663
660
|
key: 0,
|
|
664
661
|
icon: e.icon,
|
|
665
|
-
class:
|
|
666
|
-
}, null, 8, ["icon", "class"])) :
|
|
667
|
-
e.loading ? (r(), y(
|
|
662
|
+
class: g(t.value)
|
|
663
|
+
}, null, 8, ["icon", "class"])) : _("", !0),
|
|
664
|
+
e.loading ? (r(), y(h($), {
|
|
668
665
|
key: 1,
|
|
669
666
|
icon: "circleNotch",
|
|
670
|
-
class:
|
|
667
|
+
class: g(t.value),
|
|
671
668
|
spin: ""
|
|
672
|
-
}, null, 8, ["class"])) :
|
|
669
|
+
}, null, 8, ["class"])) : _("", !0),
|
|
673
670
|
n.$slots.default ? (r(), l("span", {
|
|
674
671
|
key: 2,
|
|
675
|
-
class:
|
|
672
|
+
class: g(s.value)
|
|
676
673
|
}, [
|
|
677
674
|
u(n.$slots, "default")
|
|
678
675
|
], 2)) : n.label ? (r(), l("span", {
|
|
679
676
|
key: 3,
|
|
680
|
-
class:
|
|
681
|
-
}, S(n.label), 3)) :
|
|
682
|
-
], 10, tr)) : (r(), y(
|
|
677
|
+
class: g(s.value)
|
|
678
|
+
}, S(n.label), 3)) : _("", !0)
|
|
679
|
+
], 10, tr)) : (r(), y(h(V), {
|
|
683
680
|
key: 1,
|
|
684
681
|
to: e.to,
|
|
685
682
|
type: e.type,
|
|
686
|
-
class:
|
|
683
|
+
class: g(a.value),
|
|
687
684
|
disabled: e.loading || e.disabled
|
|
688
685
|
}, {
|
|
689
|
-
default:
|
|
690
|
-
e.icon ? (r(), y(
|
|
686
|
+
default: p(() => [
|
|
687
|
+
e.icon ? (r(), y(h($), {
|
|
691
688
|
key: 0,
|
|
692
689
|
icon: e.icon,
|
|
693
|
-
class:
|
|
694
|
-
}, null, 8, ["icon", "class"])) :
|
|
690
|
+
class: g(t.value)
|
|
691
|
+
}, null, 8, ["icon", "class"])) : _("", !0),
|
|
695
692
|
n.$slots.default ? (r(), l("span", {
|
|
696
693
|
key: 1,
|
|
697
|
-
class:
|
|
694
|
+
class: g(s.value)
|
|
698
695
|
}, [
|
|
699
696
|
u(n.$slots, "default")
|
|
700
697
|
], 2)) : n.label ? (r(), l("span", {
|
|
701
698
|
key: 2,
|
|
702
|
-
class:
|
|
703
|
-
}, S(n.label), 3)) :
|
|
699
|
+
class: g(s.value)
|
|
700
|
+
}, S(n.label), 3)) : _("", !0)
|
|
704
701
|
]),
|
|
705
702
|
_: 3
|
|
706
703
|
}, 8, ["to", "type", "class", "disabled"]));
|
|
707
704
|
}
|
|
708
|
-
}), lr = {}, nr = { class: "
|
|
709
|
-
function
|
|
705
|
+
}), lr = {}, nr = { class: "vf-content" };
|
|
706
|
+
function sr(o, e) {
|
|
710
707
|
return r(), l("div", nr, [
|
|
711
708
|
u(o.$slots, "default")
|
|
712
709
|
]);
|
|
713
710
|
}
|
|
714
|
-
const
|
|
711
|
+
const ar = /* @__PURE__ */ O(lr, [["render", sr]]), cr = { class: "vf-popover" }, Tr = /* @__PURE__ */ k({
|
|
715
712
|
__name: "popover",
|
|
716
713
|
emits: ["onClick"],
|
|
717
|
-
setup(o, { expose: e, emit:
|
|
718
|
-
const t =
|
|
719
|
-
return e({ show: n, hide:
|
|
714
|
+
setup(o, { expose: e, emit: a }) {
|
|
715
|
+
const t = a, s = J({ visible: !1 }), n = () => s.visible = !0, m = () => s.visible = !1, f = () => s.visible = !s.visible, d = () => t("onClick");
|
|
716
|
+
return e({ show: n, hide: m, toggle: f }), (v, c) => (r(), l("div", cr, [
|
|
720
717
|
i("div", {
|
|
721
|
-
class: "
|
|
718
|
+
class: "vf-popover__button",
|
|
722
719
|
onClick: d
|
|
723
720
|
}, [
|
|
724
721
|
u(v.$slots, "button")
|
|
725
722
|
]),
|
|
726
|
-
Q(w(
|
|
727
|
-
default:
|
|
728
|
-
|
|
723
|
+
Q(w(h(me), { class: "vf-popover__wrapper" }, X({
|
|
724
|
+
default: p(() => [
|
|
725
|
+
c[0] || (c[0] = i("div", { class: "vf-popover__arrow" }, null, -1))
|
|
729
726
|
]),
|
|
730
727
|
_: 2
|
|
731
728
|
}, [
|
|
732
729
|
v.$slots.default ? {
|
|
733
730
|
name: "default",
|
|
734
|
-
fn:
|
|
731
|
+
fn: p(() => [
|
|
735
732
|
u(v.$slots, "default")
|
|
736
733
|
]),
|
|
737
734
|
key: "0"
|
|
738
735
|
} : void 0,
|
|
739
736
|
v.$slots.popoverHeader ? {
|
|
740
737
|
name: "header",
|
|
741
|
-
fn:
|
|
738
|
+
fn: p(() => [
|
|
742
739
|
u(v.$slots, "popoverHeader")
|
|
743
740
|
]),
|
|
744
741
|
key: "1"
|
|
745
742
|
} : void 0,
|
|
746
743
|
v.$slots.popoverBody ? {
|
|
747
744
|
name: "body",
|
|
748
|
-
fn:
|
|
745
|
+
fn: p(() => [
|
|
749
746
|
u(v.$slots, "popoverBody")
|
|
750
747
|
]),
|
|
751
748
|
key: "2"
|
|
752
749
|
} : void 0,
|
|
753
750
|
v.$slots.popoverFooter ? {
|
|
754
751
|
name: "footer",
|
|
755
|
-
fn:
|
|
752
|
+
fn: p(() => [
|
|
756
753
|
u(v.$slots, "popoverFooter")
|
|
757
754
|
]),
|
|
758
755
|
key: "3"
|
|
759
756
|
} : void 0
|
|
760
757
|
]), 1536), [
|
|
761
|
-
[Y,
|
|
758
|
+
[Y, s.visible]
|
|
762
759
|
])
|
|
763
760
|
]));
|
|
764
761
|
}
|
|
765
|
-
}), ir = {}, ur = { class: "
|
|
762
|
+
}), ir = {}, ur = { class: "vf-container" };
|
|
766
763
|
function dr(o, e) {
|
|
767
764
|
return r(), l("div", ur, [
|
|
768
765
|
u(o.$slots, "default")
|
|
769
766
|
]);
|
|
770
767
|
}
|
|
771
|
-
const L = /* @__PURE__ */ O(ir, [["render", dr]]), A = (o, e) => "#" + o.replace(/^#/, "").replace(/../g, (
|
|
772
|
-
const e = parseInt(o.replace("#", ""), 16),
|
|
773
|
-
return `${
|
|
774
|
-
},
|
|
768
|
+
const L = /* @__PURE__ */ O(ir, [["render", dr]]), A = (o, e) => "#" + o.replace(/^#/, "").replace(/../g, (a) => ("0" + Math.min(255, Math.max(0, parseInt(a, 16) + e)).toString(16)).slice(-2)), vr = (o, e) => A(o, 16 * e), fr = (o, e) => A(o, -16 * e), E = (o) => {
|
|
769
|
+
const e = parseInt(o.replace("#", ""), 16), a = e >> 16 & 255, t = e >> 8 & 255, s = e & 255;
|
|
770
|
+
return `${a}, ${t}, ${s}`;
|
|
771
|
+
}, hr = (o) => {
|
|
775
772
|
const e = o.replace(/([A-Z])/g, "-$1");
|
|
776
773
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
777
|
-
}, j = (o) => o.filter((e) => !
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
"theme",
|
|
781
|
-
"preset",
|
|
782
|
-
"colors",
|
|
783
|
-
"components",
|
|
784
|
-
"colorScheme"
|
|
785
|
-
], B = [], T = [], H = (o, e = []) => {
|
|
786
|
-
for (const s in o) {
|
|
787
|
-
const t = o[s], c = e.concat([s]);
|
|
774
|
+
}, j = (o) => o.filter((e) => !pr.includes(e)).map((e) => hr(e)).join("-").toLowerCase(), pr = ["dark", "light", "theme", "preset", "colors", "components", "colorScheme"], B = [], T = [], H = (o, e = []) => {
|
|
775
|
+
for (const a in o) {
|
|
776
|
+
const t = o[a], s = e.concat([a]);
|
|
788
777
|
if (typeof t == "object")
|
|
789
|
-
H(t,
|
|
790
|
-
else if (
|
|
791
|
-
if (
|
|
792
|
-
T.push(`--
|
|
793
|
-
else if (B.push(`--
|
|
778
|
+
H(t, s);
|
|
779
|
+
else if (s.some((n) => n === "theme") && s.some((n) => n === "preset")) {
|
|
780
|
+
if (s.some((n) => n === "colorScheme") && s.some((n) => n === "dark"))
|
|
781
|
+
T.push(`--vf-${j(s)}: ${t}`);
|
|
782
|
+
else if (B.push(`--vf-${j(s)}: ${t}`), s.some((n) => n === "colors") && (B.push(`--vf-${j(s)}-rgb: ${E(t)}`), a !== "white"))
|
|
794
783
|
for (let n = 1; n < 10; ++n) {
|
|
795
|
-
let
|
|
796
|
-
n < 5 ?
|
|
784
|
+
let m;
|
|
785
|
+
n < 5 ? m = vr(t, 5 - n) : m = fr(t, n - 5), B.push(`--vf-${j(s)}-${n}00: ${m}`), B.push(`--vf-${j(s)}-${n}00-rgb: ${E(m)}`);
|
|
797
786
|
}
|
|
798
787
|
}
|
|
799
788
|
}
|
|
@@ -832,7 +821,7 @@ const L = /* @__PURE__ */ O(ir, [["render", dr]]), A = (o, e) => "#" + o.replace
|
|
|
832
821
|
dividerColor: "#2e2e32"
|
|
833
822
|
}
|
|
834
823
|
}
|
|
835
|
-
},
|
|
824
|
+
}, gr = {
|
|
836
825
|
padding: "6px 10px",
|
|
837
826
|
borderRadius: "6px",
|
|
838
827
|
roundedBorderRadius: "2rem",
|
|
@@ -849,158 +838,158 @@ const L = /* @__PURE__ */ O(ir, [["render", dr]]), A = (o, e) => "#" + o.replace
|
|
|
849
838
|
primary: {
|
|
850
839
|
color: "#FFFFFF",
|
|
851
840
|
hoverColor: "#FFFFFF",
|
|
852
|
-
borderColor: "var(--
|
|
841
|
+
borderColor: "var(--vf-blue)",
|
|
853
842
|
activeColor: "#FFFFFF",
|
|
854
|
-
backgroundColor: "var(--
|
|
855
|
-
hoverBorderColor: "var(--
|
|
856
|
-
activeBorderColor: "var(--
|
|
857
|
-
hoverBackgroundColor: "var(--
|
|
858
|
-
activeBackgroundColor: "var(--
|
|
843
|
+
backgroundColor: "var(--vf-blue)",
|
|
844
|
+
hoverBorderColor: "var(--vf-blue-600)",
|
|
845
|
+
activeBorderColor: "var(--vf-blue-700)",
|
|
846
|
+
hoverBackgroundColor: "var(--vf-blue-600)",
|
|
847
|
+
activeBackgroundColor: "var(--vf-blue-700)"
|
|
859
848
|
},
|
|
860
849
|
secondary: {
|
|
861
850
|
color: "#FFFFFF",
|
|
862
851
|
hoverColor: "#FFFFFF",
|
|
863
|
-
borderColor: "var(--
|
|
852
|
+
borderColor: "var(--vf-gray)",
|
|
864
853
|
activeColor: "#FFFFFF",
|
|
865
|
-
backgroundColor: "var(--
|
|
866
|
-
hoverBorderColor: "var(--
|
|
867
|
-
activeBorderColor: "var(--
|
|
868
|
-
hoverBackgroundColor: "var(--
|
|
869
|
-
activeBackgroundColor: "var(--
|
|
854
|
+
backgroundColor: "var(--vf-gray)",
|
|
855
|
+
hoverBorderColor: "var(--vf-gray-600)",
|
|
856
|
+
activeBorderColor: "var(--vf-gray-700)",
|
|
857
|
+
hoverBackgroundColor: "var(--vf-gray-600)",
|
|
858
|
+
activeBackgroundColor: "var(--vf-gray-700)"
|
|
870
859
|
},
|
|
871
860
|
success: {
|
|
872
861
|
color: "#FFFFFF",
|
|
873
862
|
hoverColor: "#FFFFFF",
|
|
874
|
-
borderColor: "var(--
|
|
863
|
+
borderColor: "var(--vf-green)",
|
|
875
864
|
activeColor: "#FFFFFF",
|
|
876
|
-
backgroundColor: "var(--
|
|
877
|
-
hoverBorderColor: "var(--
|
|
878
|
-
activeBorderColor: "var(--
|
|
879
|
-
hoverBackgroundColor: "var(--
|
|
880
|
-
activeBackgroundColor: "var(--
|
|
865
|
+
backgroundColor: "var(--vf-green)",
|
|
866
|
+
hoverBorderColor: "var(--vf-green-600)",
|
|
867
|
+
activeBorderColor: "var(--vf-green-700)",
|
|
868
|
+
hoverBackgroundColor: "var(--vf-green-600)",
|
|
869
|
+
activeBackgroundColor: "var(--vf-green-700)"
|
|
881
870
|
},
|
|
882
871
|
danger: {
|
|
883
872
|
color: "#FFFFFF",
|
|
884
873
|
hoverColor: "#FFFFFF",
|
|
885
|
-
borderColor: "var(--
|
|
874
|
+
borderColor: "var(--vf-red)",
|
|
886
875
|
activeColor: "#FFFFFF",
|
|
887
|
-
backgroundColor: "var(--
|
|
888
|
-
hoverBorderColor: "var(--
|
|
889
|
-
activeBorderColor: "var(--
|
|
890
|
-
hoverBackgroundColor: "var(--
|
|
891
|
-
activeBackgroundColor: "var(--
|
|
876
|
+
backgroundColor: "var(--vf-red)",
|
|
877
|
+
hoverBorderColor: "var(--vf-red-600)",
|
|
878
|
+
activeBorderColor: "var(--vf-red-700)",
|
|
879
|
+
hoverBackgroundColor: "var(--vf-red-600)",
|
|
880
|
+
activeBackgroundColor: "var(--vf-red-700)"
|
|
892
881
|
},
|
|
893
882
|
warning: {
|
|
894
883
|
color: "#FFFFFF",
|
|
895
884
|
hoverColor: "#FFFFFF",
|
|
896
|
-
borderColor: "var(--
|
|
885
|
+
borderColor: "var(--vf-yellow)",
|
|
897
886
|
activeColor: "#FFFFFF",
|
|
898
|
-
backgroundColor: "var(--
|
|
899
|
-
hoverBorderColor: "var(--
|
|
900
|
-
activeBorderColor: "var(--
|
|
901
|
-
hoverBackgroundColor: "var(--
|
|
902
|
-
activeBackgroundColor: "var(--
|
|
887
|
+
backgroundColor: "var(--vf-yellow)",
|
|
888
|
+
hoverBorderColor: "var(--vf-yellow-600)",
|
|
889
|
+
activeBorderColor: "var(--vf-yellow-700)",
|
|
890
|
+
hoverBackgroundColor: "var(--vf-yellow-600)",
|
|
891
|
+
activeBackgroundColor: "var(--vf-yellow-700)"
|
|
903
892
|
},
|
|
904
893
|
info: {
|
|
905
894
|
color: "#FFFFFF",
|
|
906
895
|
hoverColor: "#FFFFFF",
|
|
907
|
-
borderColor: "var(--
|
|
896
|
+
borderColor: "var(--vf-sky)",
|
|
908
897
|
activeColor: "#FFFFFF",
|
|
909
|
-
backgroundColor: "var(--
|
|
910
|
-
hoverBorderColor: "var(--
|
|
911
|
-
activeBorderColor: "var(--
|
|
912
|
-
hoverBackgroundColor: "var(--
|
|
913
|
-
activeBackgroundColor: "var(--
|
|
898
|
+
backgroundColor: "var(--vf-sky)",
|
|
899
|
+
hoverBorderColor: "var(--vf-sky-600)",
|
|
900
|
+
activeBorderColor: "var(--vf-sky-700)",
|
|
901
|
+
hoverBackgroundColor: "var(--vf-sky-600)",
|
|
902
|
+
activeBackgroundColor: "var(--vf-sky-700)"
|
|
914
903
|
},
|
|
915
904
|
text: {
|
|
916
905
|
primary: {
|
|
917
|
-
color: "var(--
|
|
918
|
-
hoverBackgroundColor: "rgba(var(--
|
|
906
|
+
color: "var(--vf-blue)",
|
|
907
|
+
hoverBackgroundColor: "rgba(var(--vf-blue-600-rgb), .1)"
|
|
919
908
|
},
|
|
920
909
|
secondary: {
|
|
921
|
-
color: "var(--
|
|
922
|
-
hoverBackgroundColor: "rgba(var(--
|
|
910
|
+
color: "var(--vf-gray)",
|
|
911
|
+
hoverBackgroundColor: "rgba(var(--vf-gray-600-rgb), .1)"
|
|
923
912
|
},
|
|
924
913
|
success: {
|
|
925
|
-
color: "var(--
|
|
926
|
-
hoverBackgroundColor: "rgba(var(--
|
|
914
|
+
color: "var(--vf-green)",
|
|
915
|
+
hoverBackgroundColor: "rgba(var(--vf-green-600-rgb), .1)"
|
|
927
916
|
},
|
|
928
917
|
danger: {
|
|
929
|
-
color: "var(--
|
|
930
|
-
hoverBackgroundColor: "rgba(var(--
|
|
918
|
+
color: "var(--vf-red)",
|
|
919
|
+
hoverBackgroundColor: "rgba(var(--vf-red-600-rgb), .1)"
|
|
931
920
|
},
|
|
932
921
|
warning: {
|
|
933
|
-
color: "var(--
|
|
934
|
-
hoverBackgroundColor: "rgba(var(--
|
|
922
|
+
color: "var(--vf-yellow)",
|
|
923
|
+
hoverBackgroundColor: "rgba(var(--vf-yellow-600-rgb), .1)"
|
|
935
924
|
},
|
|
936
925
|
info: {
|
|
937
|
-
color: "var(--
|
|
938
|
-
hoverBackgroundColor: "rgba(var(--
|
|
926
|
+
color: "var(--vf-sky)",
|
|
927
|
+
hoverBackgroundColor: "rgba(var(--vf-sky-600-rgb), .1)"
|
|
939
928
|
}
|
|
940
929
|
},
|
|
941
930
|
outlined: {
|
|
942
931
|
primary: {
|
|
943
|
-
color: "var(--
|
|
944
|
-
borderColor: "rgba(var(--
|
|
945
|
-
hoverBackgroundColor: "rgba(var(--
|
|
932
|
+
color: "var(--vf-blue)",
|
|
933
|
+
borderColor: "rgba(var(--vf-blue-rgb), .4)",
|
|
934
|
+
hoverBackgroundColor: "rgba(var(--vf-blue-600-rgb), .1)"
|
|
946
935
|
},
|
|
947
936
|
secondary: {
|
|
948
|
-
color: "var(--
|
|
949
|
-
borderColor: "rgba(var(--
|
|
950
|
-
hoverBackgroundColor: "rgba(var(--
|
|
937
|
+
color: "var(--vf-gray)",
|
|
938
|
+
borderColor: "rgba(var(--vf-gray-rgb), .4)",
|
|
939
|
+
hoverBackgroundColor: "rgba(var(--vf-gray-600-rgb), .1)"
|
|
951
940
|
},
|
|
952
941
|
success: {
|
|
953
|
-
color: "var(--
|
|
954
|
-
borderColor: "rgba(var(--
|
|
955
|
-
hoverBackgroundColor: "rgba(var(--
|
|
942
|
+
color: "var(--vf-green)",
|
|
943
|
+
borderColor: "rgba(var(--vf-green-rgb), .4)",
|
|
944
|
+
hoverBackgroundColor: "rgba(var(--vf-green-600-rgb), .1)"
|
|
956
945
|
},
|
|
957
946
|
danger: {
|
|
958
|
-
color: "var(--
|
|
959
|
-
borderColor: "rgba(var(--
|
|
960
|
-
hoverBackgroundColor: "rgba(var(--
|
|
947
|
+
color: "var(--vf-red)",
|
|
948
|
+
borderColor: "rgba(var(--vf-red-rgb), .4)",
|
|
949
|
+
hoverBackgroundColor: "rgba(var(--vf-red-600-rgb), .1)"
|
|
961
950
|
},
|
|
962
951
|
warning: {
|
|
963
|
-
color: "var(--
|
|
964
|
-
borderColor: "rgba(var(--
|
|
965
|
-
hoverBackgroundColor: "rgba(var(--
|
|
952
|
+
color: "var(--vf-yellow)",
|
|
953
|
+
borderColor: "rgba(var(--vf-yellow-rgb), .4)",
|
|
954
|
+
hoverBackgroundColor: "rgba(var(--vf-yellow-600-rgb), .1)"
|
|
966
955
|
},
|
|
967
956
|
info: {
|
|
968
|
-
color: "var(--
|
|
969
|
-
borderColor: "rgba(var(--
|
|
970
|
-
hoverBackgroundColor: "rgba(var(--
|
|
957
|
+
color: "var(--vf-sky)",
|
|
958
|
+
borderColor: "rgba(var(--vf-sky-rgb), .4)",
|
|
959
|
+
hoverBackgroundColor: "rgba(var(--vf-sky-600-rgb), .1)"
|
|
971
960
|
}
|
|
972
961
|
}
|
|
973
962
|
}
|
|
974
963
|
}
|
|
975
|
-
},
|
|
964
|
+
}, br = {
|
|
976
965
|
padding: "12px",
|
|
977
|
-
borderColor: "var(--
|
|
966
|
+
borderColor: "var(--vf-border-color)",
|
|
978
967
|
borderRadius: "6px"
|
|
979
|
-
},
|
|
968
|
+
}, _r = {}, mr = {
|
|
980
969
|
padding: "12px"
|
|
981
970
|
}, yr = {}, Cr = {}, wr = {
|
|
982
|
-
color: "var(--
|
|
971
|
+
color: "var(--vf-secondary-text-color)",
|
|
983
972
|
padding: "12px",
|
|
984
|
-
borderColor: "var(--
|
|
985
|
-
backgroundColor: "var(--
|
|
973
|
+
borderColor: "var(--vf-border-color)",
|
|
974
|
+
backgroundColor: "var(--vf-bg-color)"
|
|
986
975
|
}, kr = {
|
|
987
976
|
height: "60px",
|
|
988
977
|
padding: "12px",
|
|
989
978
|
minHeight: "60px",
|
|
990
|
-
borderColor: "var(--
|
|
991
|
-
backgroundColor: "var(--
|
|
979
|
+
borderColor: "var(--vf-border-color)",
|
|
980
|
+
backgroundColor: "var(--vf-bg-color)"
|
|
992
981
|
}, Fr = {
|
|
993
|
-
hoverColor: "var(--
|
|
994
|
-
activeColor: "var(--
|
|
982
|
+
hoverColor: "var(--vf-blue)",
|
|
983
|
+
activeColor: "var(--vf-blue)"
|
|
995
984
|
}, $r = {}, Br = {
|
|
996
|
-
separatorColor: "var(--
|
|
985
|
+
separatorColor: "var(--vf-border-color)",
|
|
997
986
|
link: {
|
|
998
|
-
hoverColor: "var(--
|
|
999
|
-
activeColor: "var(--
|
|
987
|
+
hoverColor: "var(--vf-blue)",
|
|
988
|
+
activeColor: "var(--vf-blue)"
|
|
1000
989
|
},
|
|
1001
990
|
parent: {
|
|
1002
|
-
hoverColor: "var(--
|
|
1003
|
-
activeColor: "var(--
|
|
991
|
+
hoverColor: "var(--vf-secondary-text-color)",
|
|
992
|
+
activeColor: "var(--vf-blue)"
|
|
1004
993
|
},
|
|
1005
994
|
item: {
|
|
1006
995
|
marginTop: "0.5rem",
|
|
@@ -1009,15 +998,15 @@ const L = /* @__PURE__ */ O(ir, [["render", dr]]), A = (o, e) => "#" + o.replace
|
|
|
1009
998
|
marginLeft: "0.5rem"
|
|
1010
999
|
}
|
|
1011
1000
|
}, Sr = {
|
|
1012
|
-
backgroundColor: "var(--
|
|
1001
|
+
backgroundColor: "var(--vf-bg-color)"
|
|
1013
1002
|
}, Vr = {
|
|
1014
1003
|
...Z,
|
|
1015
1004
|
components: {
|
|
1016
1005
|
base: Z,
|
|
1017
|
-
button:
|
|
1018
|
-
card:
|
|
1019
|
-
codeBlock:
|
|
1020
|
-
container:
|
|
1006
|
+
button: gr,
|
|
1007
|
+
card: br,
|
|
1008
|
+
codeBlock: _r,
|
|
1009
|
+
container: mr,
|
|
1021
1010
|
content: yr,
|
|
1022
1011
|
demo: Cr,
|
|
1023
1012
|
footer: wr,
|
|
@@ -1030,9 +1019,9 @@ const L = /* @__PURE__ */ O(ir, [["render", dr]]), A = (o, e) => "#" + o.replace
|
|
|
1030
1019
|
};
|
|
1031
1020
|
export {
|
|
1032
1021
|
Lr as Button,
|
|
1033
|
-
|
|
1022
|
+
me as Card,
|
|
1034
1023
|
L as Container,
|
|
1035
|
-
|
|
1024
|
+
ar as Content,
|
|
1036
1025
|
jr as DefaultLayout,
|
|
1037
1026
|
Vr as DefaultTheme,
|
|
1038
1027
|
Mr as Demo,
|