@codemonster-ru/vueforge 0.1.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 +21 -0
- package/README.md +7 -0
- package/dist/components/button.vue.d.ts +43 -0
- package/dist/components/card.vue.d.ts +20 -0
- package/dist/components/container.vue.d.ts +17 -0
- package/dist/components/content.vue.d.ts +17 -0
- package/dist/components/demo.vue.d.ts +17 -0
- package/dist/components/footer.vue.d.ts +17 -0
- package/dist/components/header.vue.d.ts +18 -0
- package/dist/components/link.vue.d.ts +40 -0
- package/dist/components/logo.vue.d.ts +20 -0
- package/dist/components/menu.vue.d.ts +10 -0
- package/dist/components/popover.vue.d.ts +29 -0
- package/dist/config/index.d.ts +5 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.ts.mjs +1047 -0
- package/dist/index.ts.umd.js +6 -0
- package/dist/layouts/defaultLayout.vue.d.ts +19 -0
- package/dist/layouts/leftSidebarLayout.vue.d.ts +17 -0
- package/dist/themes/default/base.d.ts +33 -0
- package/dist/themes/default/components/button.d.ts +142 -0
- package/dist/themes/default/components/card.d.ts +6 -0
- package/dist/themes/default/components/codeBlock.d.ts +2 -0
- package/dist/themes/default/components/container.d.ts +4 -0
- package/dist/themes/default/components/content.d.ts +2 -0
- package/dist/themes/default/components/demo.d.ts +2 -0
- package/dist/themes/default/components/footer.d.ts +7 -0
- package/dist/themes/default/components/header.d.ts +8 -0
- package/dist/themes/default/components/link.d.ts +5 -0
- package/dist/themes/default/components/logo.d.ts +2 -0
- package/dist/themes/default/components/menu.d.ts +18 -0
- package/dist/themes/default/components/popover.d.ts +4 -0
- package/dist/themes/default/index.d.ts +257 -0
- package/package.json +61 -0
|
@@ -0,0 +1,1047 @@
|
|
|
1
|
+
import { openBlock as r, createElementBlock as l, renderSlot as u, inject as I, defineComponent as k, ref as U, computed as F, resolveComponent as x, normalizeClass as p, Fragment as P, createTextVNode as z, toDisplayString as S, createBlock as y, withCtx as h, createCommentVNode as b, unref as f, createElementVNode as i, defineAsyncComponent as K, resolveDynamicComponent as q, createStaticVNode as G, renderList as W, createVNode as w, reactive as J, withDirectives as Q, createSlots as X, vShow as Y } from "vue";
|
|
2
|
+
const O = (o, e) => {
|
|
3
|
+
const s = o.__vccOpts || o;
|
|
4
|
+
for (const [t, c] of e)
|
|
5
|
+
s[t] = c;
|
|
6
|
+
return s;
|
|
7
|
+
}, ee = {}, oe = { class: "cm-demo" };
|
|
8
|
+
function re(o, e) {
|
|
9
|
+
return r(), l("div", oe, [
|
|
10
|
+
u(o.$slots, "default")
|
|
11
|
+
]);
|
|
12
|
+
}
|
|
13
|
+
const Or = /* @__PURE__ */ O(ee, [["render", re]]);
|
|
14
|
+
/*!
|
|
15
|
+
* vue-router v4.5.0
|
|
16
|
+
* (c) 2024 Eduardo San Martin Morote
|
|
17
|
+
* @license MIT
|
|
18
|
+
*/
|
|
19
|
+
var R;
|
|
20
|
+
(function(o) {
|
|
21
|
+
o.pop = "pop", o.push = "push";
|
|
22
|
+
})(R || (R = {}));
|
|
23
|
+
var D;
|
|
24
|
+
(function(o) {
|
|
25
|
+
o.back = "back", o.forward = "forward", o.unknown = "";
|
|
26
|
+
})(D || (D = {}));
|
|
27
|
+
Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
|
|
28
|
+
var N;
|
|
29
|
+
(function(o) {
|
|
30
|
+
o[o.aborted = 4] = "aborted", o[o.cancelled = 8] = "cancelled", o[o.duplicated = 16] = "duplicated";
|
|
31
|
+
})(N || (N = {}));
|
|
32
|
+
Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : "");
|
|
33
|
+
Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : "");
|
|
34
|
+
Symbol(process.env.NODE_ENV !== "production" ? "router" : "");
|
|
35
|
+
const te = Symbol(process.env.NODE_ENV !== "production" ? "route location" : "");
|
|
36
|
+
Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
|
|
37
|
+
function le(o) {
|
|
38
|
+
return I(te);
|
|
39
|
+
}
|
|
40
|
+
const ne = ["href"], V = /* @__PURE__ */ k({
|
|
41
|
+
__name: "link",
|
|
42
|
+
props: {
|
|
43
|
+
to: { default: "" },
|
|
44
|
+
url: { default: void 0 },
|
|
45
|
+
type: { default: "a" },
|
|
46
|
+
label: { default: "" },
|
|
47
|
+
active: { type: Boolean },
|
|
48
|
+
disabled: { type: Boolean }
|
|
49
|
+
},
|
|
50
|
+
emits: ["onActive"],
|
|
51
|
+
setup(o, { emit: e }) {
|
|
52
|
+
const s = e, t = o, c = le(), n = U(null), _ = F(() => (t.type === "router-link" && c.matched.some(({ name: m }) => t.to.name === m) && s("onActive"), t.active));
|
|
53
|
+
return (m, d) => {
|
|
54
|
+
const v = x("router-link");
|
|
55
|
+
return m.type === "a" ? (r(), l("a", {
|
|
56
|
+
key: 0,
|
|
57
|
+
href: m.url,
|
|
58
|
+
class: p(["cm-link", { "cm-link_active": m.active, "cm-link_disabled": m.disabled }])
|
|
59
|
+
}, [
|
|
60
|
+
m.$slots.default ? u(m.$slots, "default", { key: 0 }) : (r(), l(P, { key: 1 }, [
|
|
61
|
+
z(S(m.label), 1)
|
|
62
|
+
], 64))
|
|
63
|
+
], 10, ne)) : (r(), y(v, {
|
|
64
|
+
key: 1,
|
|
65
|
+
ref_key: "link",
|
|
66
|
+
ref: n,
|
|
67
|
+
to: m.to,
|
|
68
|
+
class: p(["cm-link", { "cm-link_active": _.value }]),
|
|
69
|
+
disabled: m.disabled,
|
|
70
|
+
"active-class": "cm-link_partially-active",
|
|
71
|
+
"exact-active-class": "cm-link_active"
|
|
72
|
+
}, {
|
|
73
|
+
default: h(() => [
|
|
74
|
+
m.$slots.default ? u(m.$slots, "default", { key: 0 }) : (r(), l(P, { key: 1 }, [
|
|
75
|
+
z(S(m.label), 1)
|
|
76
|
+
], 64))
|
|
77
|
+
]),
|
|
78
|
+
_: 3
|
|
79
|
+
}, 8, ["to", "class", "disabled"]));
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
}), ce = {}, se = { class: "cm-card" }, ae = {
|
|
83
|
+
key: 0,
|
|
84
|
+
class: "cm-card__default"
|
|
85
|
+
}, ie = {
|
|
86
|
+
key: 1,
|
|
87
|
+
class: "cm-card__header"
|
|
88
|
+
}, ue = {
|
|
89
|
+
key: 2,
|
|
90
|
+
class: "cm-card__body"
|
|
91
|
+
}, de = {
|
|
92
|
+
key: 3,
|
|
93
|
+
class: "cm-card__footer"
|
|
94
|
+
};
|
|
95
|
+
function ve(o, e) {
|
|
96
|
+
return r(), l("div", se, [
|
|
97
|
+
o.$slots.default ? (r(), l("div", ae, [
|
|
98
|
+
u(o.$slots, "default")
|
|
99
|
+
])) : b("", !0),
|
|
100
|
+
o.$slots.header ? (r(), l("div", ie, [
|
|
101
|
+
u(o.$slots, "header")
|
|
102
|
+
])) : b("", !0),
|
|
103
|
+
o.$slots.body ? (r(), l("div", ue, [
|
|
104
|
+
u(o.$slots, "body")
|
|
105
|
+
])) : b("", !0),
|
|
106
|
+
o.$slots.footer ? (r(), l("div", de, [
|
|
107
|
+
u(o.$slots, "footer")
|
|
108
|
+
])) : b("", !0)
|
|
109
|
+
]);
|
|
110
|
+
}
|
|
111
|
+
const me = /* @__PURE__ */ O(ce, [["render", ve]]), fe = { class: "cm-logo" }, he = ["src", "width", "height", "alt"], pe = ["src", "width", "height", "alt"], jr = /* @__PURE__ */ k({
|
|
112
|
+
__name: "logo",
|
|
113
|
+
props: {
|
|
114
|
+
to: { default: void 0 },
|
|
115
|
+
url: { default: void 0 },
|
|
116
|
+
src: {},
|
|
117
|
+
alt: { default: void 0 },
|
|
118
|
+
type: { default: "" },
|
|
119
|
+
dark: { type: Boolean },
|
|
120
|
+
width: { default: void 0 },
|
|
121
|
+
height: { default: void 0 }
|
|
122
|
+
},
|
|
123
|
+
setup(o) {
|
|
124
|
+
const e = o, s = F(() => Array.isArray(e.src) ? e.dark ? e.src[1] : e.src[0] : e.src);
|
|
125
|
+
return (t, c) => (r(), l("div", fe, [
|
|
126
|
+
t.type.length ? (r(), y(f(V), {
|
|
127
|
+
key: 0,
|
|
128
|
+
type: t.type,
|
|
129
|
+
to: t.to,
|
|
130
|
+
url: t.url
|
|
131
|
+
}, {
|
|
132
|
+
default: h(() => [
|
|
133
|
+
i("img", {
|
|
134
|
+
src: s.value,
|
|
135
|
+
width: t.width,
|
|
136
|
+
height: t.height,
|
|
137
|
+
alt: t.alt
|
|
138
|
+
}, null, 8, he)
|
|
139
|
+
]),
|
|
140
|
+
_: 1
|
|
141
|
+
}, 8, ["type", "to", "url"])) : (r(), l("img", {
|
|
142
|
+
key: 1,
|
|
143
|
+
src: s.value,
|
|
144
|
+
width: t.width,
|
|
145
|
+
height: t.height,
|
|
146
|
+
alt: t.alt
|
|
147
|
+
}, null, 8, pe))
|
|
148
|
+
]));
|
|
149
|
+
}
|
|
150
|
+
}), g = (o, e) => {
|
|
151
|
+
const s = o.__vccOpts || o;
|
|
152
|
+
for (const [t, c] of e)
|
|
153
|
+
s[t] = c;
|
|
154
|
+
return s;
|
|
155
|
+
}, ge = {}, be = {
|
|
156
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
157
|
+
viewBox: "0 0 512 512",
|
|
158
|
+
fill: "none",
|
|
159
|
+
width: "16",
|
|
160
|
+
height: "16"
|
|
161
|
+
};
|
|
162
|
+
function _e(o, e) {
|
|
163
|
+
return r(), l("svg", be, e[0] || (e[0] = [
|
|
164
|
+
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)
|
|
165
|
+
]));
|
|
166
|
+
}
|
|
167
|
+
const ye = /* @__PURE__ */ g(ge, [["render", _e]]), Ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
168
|
+
__proto__: null,
|
|
169
|
+
default: ye
|
|
170
|
+
}, Symbol.toStringTag, { value: "Module" })), we = {}, ke = {
|
|
171
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
172
|
+
viewBox: "0 0 512 512",
|
|
173
|
+
fill: "none",
|
|
174
|
+
width: "16",
|
|
175
|
+
height: "16"
|
|
176
|
+
};
|
|
177
|
+
function Fe(o, e) {
|
|
178
|
+
return r(), l("svg", ke, e[0] || (e[0] = [
|
|
179
|
+
i("path", {
|
|
180
|
+
fill: "currentColor",
|
|
181
|
+
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"
|
|
182
|
+
}, null, -1)
|
|
183
|
+
]));
|
|
184
|
+
}
|
|
185
|
+
const $e = /* @__PURE__ */ g(we, [["render", Fe]]), Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
186
|
+
__proto__: null,
|
|
187
|
+
default: $e
|
|
188
|
+
}, Symbol.toStringTag, { value: "Module" })), Se = {}, Oe = {
|
|
189
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
190
|
+
viewBox: "0 0 512 512",
|
|
191
|
+
fill: "none",
|
|
192
|
+
width: "16",
|
|
193
|
+
height: "16"
|
|
194
|
+
};
|
|
195
|
+
function je(o, e) {
|
|
196
|
+
return r(), l("svg", Oe, e[0] || (e[0] = [
|
|
197
|
+
i("path", {
|
|
198
|
+
fill: "currentColor",
|
|
199
|
+
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"
|
|
200
|
+
}, null, -1),
|
|
201
|
+
i("path", {
|
|
202
|
+
fill: "currentColor",
|
|
203
|
+
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"
|
|
204
|
+
}, null, -1),
|
|
205
|
+
i("path", {
|
|
206
|
+
fill: "currentColor",
|
|
207
|
+
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"
|
|
208
|
+
}, null, -1)
|
|
209
|
+
]));
|
|
210
|
+
}
|
|
211
|
+
const Pe = /* @__PURE__ */ g(Se, [["render", je]]), Me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
212
|
+
__proto__: null,
|
|
213
|
+
default: Pe
|
|
214
|
+
}, Symbol.toStringTag, { value: "Module" })), ze = {}, Le = {
|
|
215
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
216
|
+
viewBox: "0 0 512 512",
|
|
217
|
+
fill: "none",
|
|
218
|
+
width: "16",
|
|
219
|
+
height: "16"
|
|
220
|
+
};
|
|
221
|
+
function Te(o, e) {
|
|
222
|
+
return r(), l("svg", Le, e[0] || (e[0] = [
|
|
223
|
+
i("path", {
|
|
224
|
+
fill: "currentColor",
|
|
225
|
+
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"
|
|
226
|
+
}, null, -1),
|
|
227
|
+
i("circle", {
|
|
228
|
+
fill: "currentColor",
|
|
229
|
+
cx: "256",
|
|
230
|
+
cy: "127",
|
|
231
|
+
r: "127"
|
|
232
|
+
}, null, -1)
|
|
233
|
+
]));
|
|
234
|
+
}
|
|
235
|
+
const xe = /* @__PURE__ */ g(ze, [["render", Te]]), Ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
236
|
+
__proto__: null,
|
|
237
|
+
default: xe
|
|
238
|
+
}, Symbol.toStringTag, { value: "Module" })), Re = {}, De = {
|
|
239
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
240
|
+
viewBox: "0 0 512 512",
|
|
241
|
+
fill: "none",
|
|
242
|
+
width: "16",
|
|
243
|
+
height: "16"
|
|
244
|
+
};
|
|
245
|
+
function Ne(o, e) {
|
|
246
|
+
return r(), l("svg", De, e[0] || (e[0] = [
|
|
247
|
+
i("path", {
|
|
248
|
+
fill: "currentColor",
|
|
249
|
+
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"
|
|
250
|
+
}, null, -1)
|
|
251
|
+
]));
|
|
252
|
+
}
|
|
253
|
+
const Ee = /* @__PURE__ */ g(Re, [["render", Ne]]), Ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
254
|
+
__proto__: null,
|
|
255
|
+
default: Ee
|
|
256
|
+
}, Symbol.toStringTag, { value: "Module" })), Ae = {}, He = {
|
|
257
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
258
|
+
viewBox: "0 0 512 512",
|
|
259
|
+
fill: "none",
|
|
260
|
+
width: "16",
|
|
261
|
+
height: "16"
|
|
262
|
+
};
|
|
263
|
+
function Ie(o, e) {
|
|
264
|
+
return r(), l("svg", He, e[0] || (e[0] = [
|
|
265
|
+
i("path", {
|
|
266
|
+
fill: "currentColor",
|
|
267
|
+
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"
|
|
268
|
+
}, null, -1)
|
|
269
|
+
]));
|
|
270
|
+
}
|
|
271
|
+
const Ue = /* @__PURE__ */ g(Ae, [["render", Ie]]), Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
272
|
+
__proto__: null,
|
|
273
|
+
default: Ue
|
|
274
|
+
}, Symbol.toStringTag, { value: "Module" })), qe = {}, Ge = {
|
|
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 We(o, e) {
|
|
282
|
+
return r(), l("svg", Ge, e[0] || (e[0] = [
|
|
283
|
+
i("g", null, [
|
|
284
|
+
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" }),
|
|
285
|
+
i("path", {
|
|
286
|
+
fill: "currentColor",
|
|
287
|
+
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"
|
|
288
|
+
})
|
|
289
|
+
], -1),
|
|
290
|
+
i("path", {
|
|
291
|
+
fill: "currentColor",
|
|
292
|
+
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"
|
|
293
|
+
}, null, -1)
|
|
294
|
+
]));
|
|
295
|
+
}
|
|
296
|
+
const Je = /* @__PURE__ */ g(qe, [["render", We]]), Qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
297
|
+
__proto__: null,
|
|
298
|
+
default: Je
|
|
299
|
+
}, Symbol.toStringTag, { value: "Module" })), Xe = {}, Ye = {
|
|
300
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
301
|
+
viewBox: "0 0 512 512",
|
|
302
|
+
fill: "none",
|
|
303
|
+
width: "16",
|
|
304
|
+
height: "16"
|
|
305
|
+
};
|
|
306
|
+
function eo(o, e) {
|
|
307
|
+
return r(), l("svg", Ye, e[0] || (e[0] = [
|
|
308
|
+
i("path", {
|
|
309
|
+
fill: "currentColor",
|
|
310
|
+
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"
|
|
311
|
+
}, null, -1),
|
|
312
|
+
i("path", {
|
|
313
|
+
fill: "currentColor",
|
|
314
|
+
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"
|
|
315
|
+
}, null, -1)
|
|
316
|
+
]));
|
|
317
|
+
}
|
|
318
|
+
const oo = /* @__PURE__ */ g(Xe, [["render", eo]]), ro = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
319
|
+
__proto__: null,
|
|
320
|
+
default: oo
|
|
321
|
+
}, Symbol.toStringTag, { value: "Module" })), to = {}, lo = {
|
|
322
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
323
|
+
viewBox: "0 0 512 512",
|
|
324
|
+
fill: "none",
|
|
325
|
+
width: "16",
|
|
326
|
+
height: "16"
|
|
327
|
+
};
|
|
328
|
+
function no(o, e) {
|
|
329
|
+
return r(), l("svg", lo, e[0] || (e[0] = [
|
|
330
|
+
i("path", {
|
|
331
|
+
fill: "currentColor",
|
|
332
|
+
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"
|
|
333
|
+
}, null, -1)
|
|
334
|
+
]));
|
|
335
|
+
}
|
|
336
|
+
const co = /* @__PURE__ */ g(to, [["render", no]]), so = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
337
|
+
__proto__: null,
|
|
338
|
+
default: co
|
|
339
|
+
}, Symbol.toStringTag, { value: "Module" })), ao = {}, io = {
|
|
340
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
341
|
+
viewBox: "0 0 512 512",
|
|
342
|
+
fill: "none",
|
|
343
|
+
width: "16",
|
|
344
|
+
height: "16"
|
|
345
|
+
};
|
|
346
|
+
function uo(o, e) {
|
|
347
|
+
return r(), l("svg", io, e[0] || (e[0] = [
|
|
348
|
+
i("path", {
|
|
349
|
+
fill: "currentColor",
|
|
350
|
+
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"
|
|
351
|
+
}, null, -1)
|
|
352
|
+
]));
|
|
353
|
+
}
|
|
354
|
+
const vo = /* @__PURE__ */ g(ao, [["render", uo]]), mo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
355
|
+
__proto__: null,
|
|
356
|
+
default: vo
|
|
357
|
+
}, Symbol.toStringTag, { value: "Module" })), fo = {}, ho = {
|
|
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 po(o, e) {
|
|
365
|
+
return r(), l("svg", ho, e[0] || (e[0] = [
|
|
366
|
+
i("path", {
|
|
367
|
+
fill: "currentColor",
|
|
368
|
+
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"
|
|
369
|
+
}, null, -1)
|
|
370
|
+
]));
|
|
371
|
+
}
|
|
372
|
+
const go = /* @__PURE__ */ g(fo, [["render", po]]), bo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
373
|
+
__proto__: null,
|
|
374
|
+
default: go
|
|
375
|
+
}, Symbol.toStringTag, { value: "Module" })), _o = {}, yo = {
|
|
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 Co(o, e) {
|
|
383
|
+
return r(), l("svg", yo, e[0] || (e[0] = [
|
|
384
|
+
i("path", {
|
|
385
|
+
fill: "currentColor",
|
|
386
|
+
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"
|
|
387
|
+
}, null, -1)
|
|
388
|
+
]));
|
|
389
|
+
}
|
|
390
|
+
const wo = /* @__PURE__ */ g(_o, [["render", Co]]), ko = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
391
|
+
__proto__: null,
|
|
392
|
+
default: wo
|
|
393
|
+
}, Symbol.toStringTag, { value: "Module" })), Fo = {}, $o = {
|
|
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 Bo(o, e) {
|
|
401
|
+
return r(), l("svg", $o, e[0] || (e[0] = [
|
|
402
|
+
i("path", {
|
|
403
|
+
fill: "currentColor",
|
|
404
|
+
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"
|
|
405
|
+
}, null, -1),
|
|
406
|
+
i("path", {
|
|
407
|
+
fill: "currentColor",
|
|
408
|
+
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"
|
|
409
|
+
}, null, -1)
|
|
410
|
+
]));
|
|
411
|
+
}
|
|
412
|
+
const So = /* @__PURE__ */ g(Fo, [["render", Bo]]), Oo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
413
|
+
__proto__: null,
|
|
414
|
+
default: So
|
|
415
|
+
}, Symbol.toStringTag, { value: "Module" })), jo = {}, Po = {
|
|
416
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
417
|
+
viewBox: "0 0 512 512",
|
|
418
|
+
fill: "none",
|
|
419
|
+
width: "16",
|
|
420
|
+
height: "16"
|
|
421
|
+
};
|
|
422
|
+
function Mo(o, e) {
|
|
423
|
+
return r(), l("svg", Po, e[0] || (e[0] = [
|
|
424
|
+
i("path", {
|
|
425
|
+
fill: "currentColor",
|
|
426
|
+
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"
|
|
427
|
+
}, null, -1)
|
|
428
|
+
]));
|
|
429
|
+
}
|
|
430
|
+
const zo = /* @__PURE__ */ g(jo, [["render", Mo]]), Lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
431
|
+
__proto__: null,
|
|
432
|
+
default: zo
|
|
433
|
+
}, Symbol.toStringTag, { value: "Module" })), To = (o, e, s) => {
|
|
434
|
+
const t = o[e];
|
|
435
|
+
return t ? typeof t == "function" ? t() : Promise.resolve(t) : new Promise((c, n) => {
|
|
436
|
+
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
437
|
+
n.bind(
|
|
438
|
+
null,
|
|
439
|
+
new Error(
|
|
440
|
+
"Unknown variable dynamic import: " + e + (e.split("/").length !== s ? ". Note that variables only represent file names one level deep." : "")
|
|
441
|
+
)
|
|
442
|
+
)
|
|
443
|
+
);
|
|
444
|
+
});
|
|
445
|
+
}, xo = ["bars", "check", "chevronDown", "chevronLeft", "chevronRight", "chevronUp", "circleHalf", "circleNotch", "house", "magnifyingGlass", "moon", "rotateRight", "sun", "user"], Vo = {
|
|
446
|
+
list: xo
|
|
447
|
+
}, Ro = /* @__PURE__ */ k({
|
|
448
|
+
__name: "icon",
|
|
449
|
+
props: {
|
|
450
|
+
icon: {
|
|
451
|
+
type: String,
|
|
452
|
+
default: "moon",
|
|
453
|
+
validator: (o) => Vo.list.indexOf(o) > -1
|
|
454
|
+
},
|
|
455
|
+
spin: {
|
|
456
|
+
type: Boolean,
|
|
457
|
+
default: !1
|
|
458
|
+
}
|
|
459
|
+
},
|
|
460
|
+
setup(o) {
|
|
461
|
+
const e = o, s = F(() => {
|
|
462
|
+
const c = e.icon;
|
|
463
|
+
return K(() => To(/* @__PURE__ */ Object.assign({ "./bars.vue": () => Promise.resolve().then(() => Me), "./check.vue": () => Promise.resolve().then(() => Ke), "./chevronDown.vue": () => Promise.resolve().then(() => mo), "./chevronLeft.vue": () => Promise.resolve().then(() => bo), "./chevronRight.vue": () => Promise.resolve().then(() => ko), "./chevronUp.vue": () => Promise.resolve().then(() => so), "./circleHalf.vue": () => Promise.resolve().then(() => Qe), "./circleNotch.vue": () => Promise.resolve().then(() => Lo), "./house.vue": () => Promise.resolve().then(() => Ze), "./icon.vue": () => Promise.resolve().then(() => Do), "./magnifyingGlass.vue": () => Promise.resolve().then(() => Oo), "./moon.vue": () => Promise.resolve().then(() => Be), "./rotateRight.vue": () => Promise.resolve().then(() => ro), "./sun.vue": () => Promise.resolve().then(() => Ce), "./user.vue": () => Promise.resolve().then(() => Ve) }), `./${c}.vue`, 2));
|
|
464
|
+
}), t = F(() => {
|
|
465
|
+
let c = ["cm-icon"];
|
|
466
|
+
return e.spin && c.push("cm-icon_animations_spin"), c;
|
|
467
|
+
});
|
|
468
|
+
return (c, n) => (r(), y(q(s.value), {
|
|
469
|
+
class: p(t.value)
|
|
470
|
+
}, null, 8, ["class"]));
|
|
471
|
+
}
|
|
472
|
+
}), $ = /* @__PURE__ */ g(Ro, [["__scopeId", "data-v-e8b1cecb"]]), Do = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
473
|
+
__proto__: null,
|
|
474
|
+
default: $
|
|
475
|
+
}, Symbol.toStringTag, { value: "Module" })), No = { class: "cm-menu__list" }, Eo = {
|
|
476
|
+
key: 1,
|
|
477
|
+
class: "cm-menu__separator"
|
|
478
|
+
}, Zo = ["onClick"], Ao = /* @__PURE__ */ k({
|
|
479
|
+
__name: "menu",
|
|
480
|
+
props: {
|
|
481
|
+
items: {},
|
|
482
|
+
orientation: { default: "vertical" }
|
|
483
|
+
},
|
|
484
|
+
emits: ["onActive"],
|
|
485
|
+
setup(o, { emit: e }) {
|
|
486
|
+
const s = e, t = o, c = (d, v) => `${d.label}_${v.toString()}`, n = (d) => Object.prototype.hasOwnProperty.call(d, "to") ? "router-link" : "a", _ = (d) => {
|
|
487
|
+
Object.prototype.hasOwnProperty.call(d, "items") ? (t.items.map((v) => {
|
|
488
|
+
v !== d && (v.subMenuVisible = !1);
|
|
489
|
+
}), d.subMenuVisible = !d.subMenuVisible) : Object.prototype.hasOwnProperty.call(d, "command") && d.command();
|
|
490
|
+
}, m = (d) => {
|
|
491
|
+
var v;
|
|
492
|
+
for (const a in t.items) {
|
|
493
|
+
const C = t.items[a];
|
|
494
|
+
Object.prototype.hasOwnProperty.call(C, "items") && ((v = C.items) != null && v.some((M) => M === d) ? (C.active = !0, C.subMenuVisible = !0) : (C.active = !1, C.subMenuVisible = !1));
|
|
495
|
+
}
|
|
496
|
+
s("onActive", d);
|
|
497
|
+
};
|
|
498
|
+
return (d, v) => (r(), l("div", {
|
|
499
|
+
class: p(["cm-menu", `cm-menu_${d.orientation}`])
|
|
500
|
+
}, [
|
|
501
|
+
i("ul", No, [
|
|
502
|
+
(r(!0), l(P, null, W(d.items, (a, C) => (r(), l("li", {
|
|
503
|
+
key: c(a, C),
|
|
504
|
+
class: "cm-menu__item"
|
|
505
|
+
}, [
|
|
506
|
+
d.$slots[c(a, C)] ? u(d.$slots, c(a, C), {
|
|
507
|
+
key: 0,
|
|
508
|
+
item: { ...a, class: "cm-menu__link" }
|
|
509
|
+
}) : a.separator ? (r(), l("hr", Eo)) : a.hasOwnProperty("items") ? (r(), l(P, { key: 2 }, [
|
|
510
|
+
i("div", {
|
|
511
|
+
class: p(["cm-menu__parent", { "cm-menu__parent_active": a.active }]),
|
|
512
|
+
onClick: (M) => _(a)
|
|
513
|
+
}, [
|
|
514
|
+
a.icon ? (r(), y(f($), {
|
|
515
|
+
key: 0,
|
|
516
|
+
icon: a.icon,
|
|
517
|
+
class: "cm-menu__icon"
|
|
518
|
+
}, null, 8, ["icon"])) : b("", !0),
|
|
519
|
+
z(" " + S(a.label) + " ", 1),
|
|
520
|
+
w(f($), { icon: "chevronDown" })
|
|
521
|
+
], 10, Zo),
|
|
522
|
+
a.items ? (r(), y(f(Ao), {
|
|
523
|
+
key: 0,
|
|
524
|
+
items: a.items,
|
|
525
|
+
class: p(["cm-menu__submenu", { "cm-menu__submenu_visible": a.subMenuVisible }]),
|
|
526
|
+
onOnActive: m
|
|
527
|
+
}, null, 8, ["items", "class"])) : b("", !0)
|
|
528
|
+
], 64)) : (r(), y(f(V), {
|
|
529
|
+
key: 3,
|
|
530
|
+
to: a.to,
|
|
531
|
+
url: a.url,
|
|
532
|
+
type: n(a),
|
|
533
|
+
class: "cm-menu__link",
|
|
534
|
+
active: a.active,
|
|
535
|
+
disabled: a.disabled,
|
|
536
|
+
onClick: (M) => _(a),
|
|
537
|
+
onOnActive: (M) => m(a)
|
|
538
|
+
}, {
|
|
539
|
+
default: h(() => [
|
|
540
|
+
a.icon ? (r(), y(f($), {
|
|
541
|
+
key: 0,
|
|
542
|
+
icon: a.icon,
|
|
543
|
+
class: "cm-menu__icon"
|
|
544
|
+
}, null, 8, ["icon"])) : b("", !0),
|
|
545
|
+
z(" " + S(a.label), 1)
|
|
546
|
+
]),
|
|
547
|
+
_: 2
|
|
548
|
+
}, 1032, ["to", "url", "type", "active", "disabled", "onClick", "onOnActive"]))
|
|
549
|
+
]))), 128))
|
|
550
|
+
])
|
|
551
|
+
], 2));
|
|
552
|
+
}
|
|
553
|
+
}), Ho = { class: "cm-header" }, Io = {
|
|
554
|
+
key: 0,
|
|
555
|
+
class: "cm-header__left"
|
|
556
|
+
}, Uo = {
|
|
557
|
+
key: 1,
|
|
558
|
+
class: "cm-header__right"
|
|
559
|
+
}, Ko = /* @__PURE__ */ k({
|
|
560
|
+
__name: "header",
|
|
561
|
+
setup(o) {
|
|
562
|
+
return (e, s) => (r(), l("header", Ho, [
|
|
563
|
+
w(f(L), null, {
|
|
564
|
+
default: h(() => [
|
|
565
|
+
e.$slots.left ? (r(), l("div", Io, [
|
|
566
|
+
u(e.$slots, "left")
|
|
567
|
+
])) : b("", !0),
|
|
568
|
+
e.$slots.right ? (r(), l("div", Uo, [
|
|
569
|
+
u(e.$slots, "right")
|
|
570
|
+
])) : b("", !0)
|
|
571
|
+
]),
|
|
572
|
+
_: 3
|
|
573
|
+
})
|
|
574
|
+
]));
|
|
575
|
+
}
|
|
576
|
+
}), qo = {}, Go = { class: "cm-footer" };
|
|
577
|
+
function Wo(o, e) {
|
|
578
|
+
return r(), l("footer", Go, [
|
|
579
|
+
u(o.$slots, "default")
|
|
580
|
+
]);
|
|
581
|
+
}
|
|
582
|
+
const Jo = /* @__PURE__ */ O(qo, [["render", Wo]]), Qo = ["disabled"], Pr = /* @__PURE__ */ k({
|
|
583
|
+
__name: "button",
|
|
584
|
+
props: {
|
|
585
|
+
to: { default: void 0 },
|
|
586
|
+
icon: { default: void 0 },
|
|
587
|
+
type: { default: "button" },
|
|
588
|
+
size: { default: "normal" },
|
|
589
|
+
label: { default: "" },
|
|
590
|
+
loading: { type: Boolean, default: !1 },
|
|
591
|
+
rounded: { type: Boolean, default: !1 },
|
|
592
|
+
iconPos: { default: "left" },
|
|
593
|
+
variant: { default: void 0 },
|
|
594
|
+
severity: { default: "primary" },
|
|
595
|
+
disabled: { type: Boolean, default: !1 }
|
|
596
|
+
},
|
|
597
|
+
setup(o) {
|
|
598
|
+
const e = o, s = F(() => {
|
|
599
|
+
let n = [
|
|
600
|
+
"cm-button",
|
|
601
|
+
`cm-button_${e.severity}`
|
|
602
|
+
];
|
|
603
|
+
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;
|
|
604
|
+
}), t = F(() => ["cm-button__icon", `cm-button__icon_${e.iconPos}`]), c = F(() => ["cm-button__label"]);
|
|
605
|
+
return (n, _) => e.type === "button" ? (r(), l("button", {
|
|
606
|
+
key: 0,
|
|
607
|
+
class: p(s.value),
|
|
608
|
+
disabled: e.loading || e.disabled
|
|
609
|
+
}, [
|
|
610
|
+
e.icon && !e.loading ? (r(), y(f($), {
|
|
611
|
+
key: 0,
|
|
612
|
+
icon: e.icon,
|
|
613
|
+
class: p(t.value)
|
|
614
|
+
}, null, 8, ["icon", "class"])) : b("", !0),
|
|
615
|
+
e.loading ? (r(), y(f($), {
|
|
616
|
+
key: 1,
|
|
617
|
+
icon: "circleNotch",
|
|
618
|
+
class: p(t.value),
|
|
619
|
+
spin: ""
|
|
620
|
+
}, null, 8, ["class"])) : b("", !0),
|
|
621
|
+
n.$slots.default ? (r(), l("span", {
|
|
622
|
+
key: 2,
|
|
623
|
+
class: p(c.value)
|
|
624
|
+
}, [
|
|
625
|
+
u(n.$slots, "default")
|
|
626
|
+
], 2)) : n.label ? (r(), l("span", {
|
|
627
|
+
key: 3,
|
|
628
|
+
class: p(c.value)
|
|
629
|
+
}, S(n.label), 3)) : b("", !0)
|
|
630
|
+
], 10, Qo)) : (r(), y(f(V), {
|
|
631
|
+
key: 1,
|
|
632
|
+
to: e.to,
|
|
633
|
+
type: e.type,
|
|
634
|
+
class: p(s.value),
|
|
635
|
+
disabled: e.loading || e.disabled
|
|
636
|
+
}, {
|
|
637
|
+
default: h(() => [
|
|
638
|
+
e.icon ? (r(), y(f($), {
|
|
639
|
+
key: 0,
|
|
640
|
+
icon: e.icon,
|
|
641
|
+
class: p(t.value)
|
|
642
|
+
}, null, 8, ["icon", "class"])) : b("", !0),
|
|
643
|
+
n.$slots.default ? (r(), l("span", {
|
|
644
|
+
key: 1,
|
|
645
|
+
class: p(c.value)
|
|
646
|
+
}, [
|
|
647
|
+
u(n.$slots, "default")
|
|
648
|
+
], 2)) : n.label ? (r(), l("span", {
|
|
649
|
+
key: 2,
|
|
650
|
+
class: p(c.value)
|
|
651
|
+
}, S(n.label), 3)) : b("", !0)
|
|
652
|
+
]),
|
|
653
|
+
_: 3
|
|
654
|
+
}, 8, ["to", "type", "class", "disabled"]));
|
|
655
|
+
}
|
|
656
|
+
}), Xo = {}, Yo = { class: "cm-content" };
|
|
657
|
+
function er(o, e) {
|
|
658
|
+
return r(), l("div", Yo, [
|
|
659
|
+
u(o.$slots, "default")
|
|
660
|
+
]);
|
|
661
|
+
}
|
|
662
|
+
const or = /* @__PURE__ */ O(Xo, [["render", er]]), rr = { class: "cm-popover" }, Mr = /* @__PURE__ */ k({
|
|
663
|
+
__name: "popover",
|
|
664
|
+
emits: ["onClick"],
|
|
665
|
+
setup(o, { expose: e, emit: s }) {
|
|
666
|
+
const t = s, c = J({ visible: !1 }), n = () => c.visible = !0, _ = () => c.visible = !1, m = () => c.visible = !c.visible, d = () => t("onClick");
|
|
667
|
+
return e({ show: n, hide: _, toggle: m }), (v, a) => (r(), l("div", rr, [
|
|
668
|
+
i("div", {
|
|
669
|
+
class: "cm-popover__button",
|
|
670
|
+
onClick: d
|
|
671
|
+
}, [
|
|
672
|
+
u(v.$slots, "button")
|
|
673
|
+
]),
|
|
674
|
+
Q(w(f(me), { class: "cm-popover__wrapper" }, X({
|
|
675
|
+
default: h(() => [
|
|
676
|
+
a[0] || (a[0] = i("div", { class: "cm-popover__arrow" }, null, -1))
|
|
677
|
+
]),
|
|
678
|
+
_: 2
|
|
679
|
+
}, [
|
|
680
|
+
v.$slots.default ? {
|
|
681
|
+
name: "default",
|
|
682
|
+
fn: h(() => [
|
|
683
|
+
u(v.$slots, "default")
|
|
684
|
+
]),
|
|
685
|
+
key: "0"
|
|
686
|
+
} : void 0,
|
|
687
|
+
v.$slots.popoverHeader ? {
|
|
688
|
+
name: "header",
|
|
689
|
+
fn: h(() => [
|
|
690
|
+
u(v.$slots, "popoverHeader")
|
|
691
|
+
]),
|
|
692
|
+
key: "1"
|
|
693
|
+
} : void 0,
|
|
694
|
+
v.$slots.popoverBody ? {
|
|
695
|
+
name: "body",
|
|
696
|
+
fn: h(() => [
|
|
697
|
+
u(v.$slots, "popoverBody")
|
|
698
|
+
]),
|
|
699
|
+
key: "2"
|
|
700
|
+
} : void 0,
|
|
701
|
+
v.$slots.popoverFooter ? {
|
|
702
|
+
name: "footer",
|
|
703
|
+
fn: h(() => [
|
|
704
|
+
u(v.$slots, "popoverFooter")
|
|
705
|
+
]),
|
|
706
|
+
key: "3"
|
|
707
|
+
} : void 0
|
|
708
|
+
]), 1536), [
|
|
709
|
+
[Y, c.visible]
|
|
710
|
+
])
|
|
711
|
+
]));
|
|
712
|
+
}
|
|
713
|
+
}), tr = {}, lr = { class: "cm-container" };
|
|
714
|
+
function nr(o, e) {
|
|
715
|
+
return r(), l("div", lr, [
|
|
716
|
+
u(o.$slots, "default")
|
|
717
|
+
]);
|
|
718
|
+
}
|
|
719
|
+
const L = /* @__PURE__ */ O(tr, [["render", nr]]), zr = /* @__PURE__ */ k({
|
|
720
|
+
__name: "defaultLayout",
|
|
721
|
+
setup(o) {
|
|
722
|
+
return (e, s) => {
|
|
723
|
+
const t = x("router-view");
|
|
724
|
+
return r(), l(P, null, [
|
|
725
|
+
w(f(Ko), null, {
|
|
726
|
+
left: h(() => [
|
|
727
|
+
u(e.$slots, "headerLeft")
|
|
728
|
+
]),
|
|
729
|
+
right: h(() => [
|
|
730
|
+
u(e.$slots, "headerRight")
|
|
731
|
+
]),
|
|
732
|
+
_: 3
|
|
733
|
+
}),
|
|
734
|
+
w(f(or), null, {
|
|
735
|
+
default: h(() => [
|
|
736
|
+
w(f(L), null, {
|
|
737
|
+
default: h(() => [
|
|
738
|
+
w(t)
|
|
739
|
+
]),
|
|
740
|
+
_: 1
|
|
741
|
+
})
|
|
742
|
+
]),
|
|
743
|
+
_: 1
|
|
744
|
+
}),
|
|
745
|
+
w(f(Jo), null, {
|
|
746
|
+
default: h(() => [
|
|
747
|
+
w(f(L), null, {
|
|
748
|
+
default: h(() => [
|
|
749
|
+
u(e.$slots, "footerDefault")
|
|
750
|
+
]),
|
|
751
|
+
_: 3
|
|
752
|
+
})
|
|
753
|
+
]),
|
|
754
|
+
_: 3
|
|
755
|
+
})
|
|
756
|
+
], 64);
|
|
757
|
+
};
|
|
758
|
+
}
|
|
759
|
+
}), cr = {}, sr = { class: "cm-left-sidebar-flexbox" }, ar = { class: "cm-left-sidebar" }, ir = { class: "cm-main-content" };
|
|
760
|
+
function ur(o, e) {
|
|
761
|
+
const s = x("router-view");
|
|
762
|
+
return r(), l("div", sr, [
|
|
763
|
+
i("div", ar, [
|
|
764
|
+
u(o.$slots, "leftSidebar")
|
|
765
|
+
]),
|
|
766
|
+
i("div", ir, [
|
|
767
|
+
w(s)
|
|
768
|
+
])
|
|
769
|
+
]);
|
|
770
|
+
}
|
|
771
|
+
const Lr = /* @__PURE__ */ O(cr, [["render", ur]]), A = (o, e) => "#" + o.replace(/^#/, "").replace(/../g, (s) => ("0" + Math.min(255, Math.max(0, parseInt(s, 16) + e)).toString(16)).slice(-2)), dr = (o, e) => A(o, 16 * e), vr = (o, e) => A(o, -16 * e), E = (o) => {
|
|
772
|
+
const e = parseInt(o.replace("#", ""), 16), s = e >> 16 & 255, t = e >> 8 & 255, c = e & 255;
|
|
773
|
+
return `${s}, ${t}, ${c}`;
|
|
774
|
+
}, mr = (o) => {
|
|
775
|
+
const e = o.replace(/([A-Z])/g, "-$1");
|
|
776
|
+
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
777
|
+
}, j = (o) => o.filter((e) => !fr.includes(e)).map((e) => mr(e)).join("-").toLowerCase(), fr = [
|
|
778
|
+
"dark",
|
|
779
|
+
"light",
|
|
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]);
|
|
788
|
+
if (typeof t == "object")
|
|
789
|
+
H(t, c);
|
|
790
|
+
else if (c.some((n) => n === "theme") && c.some((n) => n === "preset")) {
|
|
791
|
+
if (c.some((n) => n === "colorScheme") && c.some((n) => n === "dark"))
|
|
792
|
+
T.push(`--cm-${j(c)}: ${t}`);
|
|
793
|
+
else if (B.push(`--cm-${j(c)}: ${t}`), c.some((n) => n === "colors") && (B.push(`--cm-${j(c)}-rgb: ${E(t)}`), s !== "white"))
|
|
794
|
+
for (let n = 1; n < 10; ++n) {
|
|
795
|
+
let _;
|
|
796
|
+
n < 5 ? _ = dr(t, 5 - n) : _ = vr(t, n - 5), B.push(`--cm-${j(c)}-${n}00: ${_}`), B.push(`--cm-${j(c)}-${n}00-rgb: ${E(_)}`);
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
}, Tr = {
|
|
801
|
+
install(o, e) {
|
|
802
|
+
H(e), B.length && document.styleSheets[0].insertRule(`:root { ${B.join(";")} }`), T.length && document.styleSheets[0].insertRule(`:root[data-theme=dark] { ${T.join(";")} }`);
|
|
803
|
+
}
|
|
804
|
+
}, Z = {
|
|
805
|
+
colors: {
|
|
806
|
+
white: "#ffffff",
|
|
807
|
+
green: "#0cbc87",
|
|
808
|
+
red: "#d6293e",
|
|
809
|
+
yellow: "#f7c32e",
|
|
810
|
+
sky: "#0ea5e9",
|
|
811
|
+
blue: "#007bff",
|
|
812
|
+
purple: "#6f42c1",
|
|
813
|
+
gray: "#adb5bd"
|
|
814
|
+
},
|
|
815
|
+
colorScheme: {
|
|
816
|
+
light: {
|
|
817
|
+
bgColor: "#ffffff",
|
|
818
|
+
bgSoftColor: "#f9f9f9",
|
|
819
|
+
textColor: "rgba(60, 60, 67)",
|
|
820
|
+
secondaryTextColor: "rgba(60, 60, 67, .78)",
|
|
821
|
+
borderColor: "#c2c2c4",
|
|
822
|
+
gutterColor: "#e2e2e3",
|
|
823
|
+
dividerColor: "#e2e2e3"
|
|
824
|
+
},
|
|
825
|
+
dark: {
|
|
826
|
+
bgColor: "#1a1a1a",
|
|
827
|
+
bgSoftColor: "#242424",
|
|
828
|
+
textColor: "rgba(255, 255, 255, .87)",
|
|
829
|
+
secondaryTextColor: "rgba(235, 235, 235, .6)",
|
|
830
|
+
borderColor: "#3c3f44",
|
|
831
|
+
gutterColor: "#000000",
|
|
832
|
+
dividerColor: "#2e2e32"
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
}, hr = {
|
|
836
|
+
padding: "6px 10px",
|
|
837
|
+
borderRadius: "6px",
|
|
838
|
+
roundedBorderRadius: "2rem",
|
|
839
|
+
small: {
|
|
840
|
+
fontSize: "0.875rem",
|
|
841
|
+
padding: "4px 8px"
|
|
842
|
+
},
|
|
843
|
+
large: {
|
|
844
|
+
fontSize: "1.125rem",
|
|
845
|
+
padding: "4px 8px"
|
|
846
|
+
},
|
|
847
|
+
colorScheme: {
|
|
848
|
+
light: {
|
|
849
|
+
primary: {
|
|
850
|
+
color: "#FFFFFF",
|
|
851
|
+
hoverColor: "#FFFFFF",
|
|
852
|
+
borderColor: "var(--cm-blue)",
|
|
853
|
+
activeColor: "#FFFFFF",
|
|
854
|
+
backgroundColor: "var(--cm-blue)",
|
|
855
|
+
hoverBorderColor: "var(--cm-blue-600)",
|
|
856
|
+
activeBorderColor: "var(--cm-blue-700)",
|
|
857
|
+
hoverBackgroundColor: "var(--cm-blue-600)",
|
|
858
|
+
activeBackgroundColor: "var(--cm-blue-700)"
|
|
859
|
+
},
|
|
860
|
+
secondary: {
|
|
861
|
+
color: "#FFFFFF",
|
|
862
|
+
hoverColor: "#FFFFFF",
|
|
863
|
+
borderColor: "var(--cm-gray)",
|
|
864
|
+
activeColor: "#FFFFFF",
|
|
865
|
+
backgroundColor: "var(--cm-gray)",
|
|
866
|
+
hoverBorderColor: "var(--cm-gray-600)",
|
|
867
|
+
activeBorderColor: "var(--cm-gray-700)",
|
|
868
|
+
hoverBackgroundColor: "var(--cm-gray-600)",
|
|
869
|
+
activeBackgroundColor: "var(--cm-gray-700)"
|
|
870
|
+
},
|
|
871
|
+
success: {
|
|
872
|
+
color: "#FFFFFF",
|
|
873
|
+
hoverColor: "#FFFFFF",
|
|
874
|
+
borderColor: "var(--cm-green)",
|
|
875
|
+
activeColor: "#FFFFFF",
|
|
876
|
+
backgroundColor: "var(--cm-green)",
|
|
877
|
+
hoverBorderColor: "var(--cm-green-600)",
|
|
878
|
+
activeBorderColor: "var(--cm-green-700)",
|
|
879
|
+
hoverBackgroundColor: "var(--cm-green-600)",
|
|
880
|
+
activeBackgroundColor: "var(--cm-green-700)"
|
|
881
|
+
},
|
|
882
|
+
danger: {
|
|
883
|
+
color: "#FFFFFF",
|
|
884
|
+
hoverColor: "#FFFFFF",
|
|
885
|
+
borderColor: "var(--cm-red)",
|
|
886
|
+
activeColor: "#FFFFFF",
|
|
887
|
+
backgroundColor: "var(--cm-red)",
|
|
888
|
+
hoverBorderColor: "var(--cm-red-600)",
|
|
889
|
+
activeBorderColor: "var(--cm-red-700)",
|
|
890
|
+
hoverBackgroundColor: "var(--cm-red-600)",
|
|
891
|
+
activeBackgroundColor: "var(--cm-red-700)"
|
|
892
|
+
},
|
|
893
|
+
warning: {
|
|
894
|
+
color: "#FFFFFF",
|
|
895
|
+
hoverColor: "#FFFFFF",
|
|
896
|
+
borderColor: "var(--cm-yellow)",
|
|
897
|
+
activeColor: "#FFFFFF",
|
|
898
|
+
backgroundColor: "var(--cm-yellow)",
|
|
899
|
+
hoverBorderColor: "var(--cm-yellow-600)",
|
|
900
|
+
activeBorderColor: "var(--cm-yellow-700)",
|
|
901
|
+
hoverBackgroundColor: "var(--cm-yellow-600)",
|
|
902
|
+
activeBackgroundColor: "var(--cm-yellow-700)"
|
|
903
|
+
},
|
|
904
|
+
info: {
|
|
905
|
+
color: "#FFFFFF",
|
|
906
|
+
hoverColor: "#FFFFFF",
|
|
907
|
+
borderColor: "var(--cm-sky)",
|
|
908
|
+
activeColor: "#FFFFFF",
|
|
909
|
+
backgroundColor: "var(--cm-sky)",
|
|
910
|
+
hoverBorderColor: "var(--cm-sky-600)",
|
|
911
|
+
activeBorderColor: "var(--cm-sky-700)",
|
|
912
|
+
hoverBackgroundColor: "var(--cm-sky-600)",
|
|
913
|
+
activeBackgroundColor: "var(--cm-sky-700)"
|
|
914
|
+
},
|
|
915
|
+
text: {
|
|
916
|
+
primary: {
|
|
917
|
+
color: "var(--cm-blue)",
|
|
918
|
+
hoverBackgroundColor: "rgba(var(--cm-blue-600-rgb), .1)"
|
|
919
|
+
},
|
|
920
|
+
secondary: {
|
|
921
|
+
color: "var(--cm-gray)",
|
|
922
|
+
hoverBackgroundColor: "rgba(var(--cm-gray-600-rgb), .1)"
|
|
923
|
+
},
|
|
924
|
+
success: {
|
|
925
|
+
color: "var(--cm-green)",
|
|
926
|
+
hoverBackgroundColor: "rgba(var(--cm-green-600-rgb), .1)"
|
|
927
|
+
},
|
|
928
|
+
danger: {
|
|
929
|
+
color: "var(--cm-red)",
|
|
930
|
+
hoverBackgroundColor: "rgba(var(--cm-red-600-rgb), .1)"
|
|
931
|
+
},
|
|
932
|
+
warning: {
|
|
933
|
+
color: "var(--cm-yellow)",
|
|
934
|
+
hoverBackgroundColor: "rgba(var(--cm-yellow-600-rgb), .1)"
|
|
935
|
+
},
|
|
936
|
+
info: {
|
|
937
|
+
color: "var(--cm-sky)",
|
|
938
|
+
hoverBackgroundColor: "rgba(var(--cm-sky-600-rgb), .1)"
|
|
939
|
+
}
|
|
940
|
+
},
|
|
941
|
+
outlined: {
|
|
942
|
+
primary: {
|
|
943
|
+
color: "var(--cm-blue)",
|
|
944
|
+
borderColor: "rgba(var(--cm-blue-rgb), .4)",
|
|
945
|
+
hoverBackgroundColor: "rgba(var(--cm-blue-600-rgb), .1)"
|
|
946
|
+
},
|
|
947
|
+
secondary: {
|
|
948
|
+
color: "var(--cm-gray)",
|
|
949
|
+
borderColor: "rgba(var(--cm-gray-rgb), .4)",
|
|
950
|
+
hoverBackgroundColor: "rgba(var(--cm-gray-600-rgb), .1)"
|
|
951
|
+
},
|
|
952
|
+
success: {
|
|
953
|
+
color: "var(--cm-green)",
|
|
954
|
+
borderColor: "rgba(var(--cm-green-rgb), .4)",
|
|
955
|
+
hoverBackgroundColor: "rgba(var(--cm-green-600-rgb), .1)"
|
|
956
|
+
},
|
|
957
|
+
danger: {
|
|
958
|
+
color: "var(--cm-red)",
|
|
959
|
+
borderColor: "rgba(var(--cm-red-rgb), .4)",
|
|
960
|
+
hoverBackgroundColor: "rgba(var(--cm-red-600-rgb), .1)"
|
|
961
|
+
},
|
|
962
|
+
warning: {
|
|
963
|
+
color: "var(--cm-yellow)",
|
|
964
|
+
borderColor: "rgba(var(--cm-yellow-rgb), .4)",
|
|
965
|
+
hoverBackgroundColor: "rgba(var(--cm-yellow-600-rgb), .1)"
|
|
966
|
+
},
|
|
967
|
+
info: {
|
|
968
|
+
color: "var(--cm-sky)",
|
|
969
|
+
borderColor: "rgba(var(--cm-sky-rgb), .4)",
|
|
970
|
+
hoverBackgroundColor: "rgba(var(--cm-sky-600-rgb), .1)"
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
}, pr = {
|
|
976
|
+
padding: "12px",
|
|
977
|
+
borderColor: "var(--cm-border-color)",
|
|
978
|
+
borderRadius: "6px"
|
|
979
|
+
}, gr = {}, br = {
|
|
980
|
+
padding: "12px"
|
|
981
|
+
}, _r = {}, yr = {}, Cr = {
|
|
982
|
+
color: "var(--cm-secondary-text-color)",
|
|
983
|
+
padding: "12px",
|
|
984
|
+
borderColor: "var(--cm-border-color)",
|
|
985
|
+
backgroundColor: "var(--cm-bg-color)"
|
|
986
|
+
}, wr = {
|
|
987
|
+
height: "60px",
|
|
988
|
+
padding: "12px",
|
|
989
|
+
minHeight: "60px",
|
|
990
|
+
borderColor: "var(--cm-border-color)",
|
|
991
|
+
backgroundColor: "var(--cm-bg-color)"
|
|
992
|
+
}, kr = {
|
|
993
|
+
hoverColor: "var(--cm-blue)",
|
|
994
|
+
activeColor: "var(--cm-blue)"
|
|
995
|
+
}, Fr = {}, $r = {
|
|
996
|
+
separatorColor: "var(--cm-border-color)",
|
|
997
|
+
link: {
|
|
998
|
+
hoverColor: "var(--cm-blue)",
|
|
999
|
+
activeColor: "var(--cm-blue)"
|
|
1000
|
+
},
|
|
1001
|
+
parent: {
|
|
1002
|
+
hoverColor: "var(--cm-secondary-text-color)",
|
|
1003
|
+
activeColor: "var(--cm-blue)"
|
|
1004
|
+
},
|
|
1005
|
+
item: {
|
|
1006
|
+
marginTop: "0.5rem",
|
|
1007
|
+
marginRight: "0.5rem",
|
|
1008
|
+
marginBottom: "0.5rem",
|
|
1009
|
+
marginLeft: "0.5rem"
|
|
1010
|
+
}
|
|
1011
|
+
}, Br = {
|
|
1012
|
+
backgroundColor: "var(--cm-bg-color)"
|
|
1013
|
+
}, xr = {
|
|
1014
|
+
...Z,
|
|
1015
|
+
components: {
|
|
1016
|
+
base: Z,
|
|
1017
|
+
button: hr,
|
|
1018
|
+
card: pr,
|
|
1019
|
+
codeBlock: gr,
|
|
1020
|
+
container: br,
|
|
1021
|
+
content: _r,
|
|
1022
|
+
demo: yr,
|
|
1023
|
+
footer: Cr,
|
|
1024
|
+
header: wr,
|
|
1025
|
+
link: kr,
|
|
1026
|
+
logo: Fr,
|
|
1027
|
+
menu: $r,
|
|
1028
|
+
popover: Br
|
|
1029
|
+
}
|
|
1030
|
+
};
|
|
1031
|
+
export {
|
|
1032
|
+
Pr as Button,
|
|
1033
|
+
me as Card,
|
|
1034
|
+
L as Container,
|
|
1035
|
+
or as Content,
|
|
1036
|
+
zr as DefaultLayout,
|
|
1037
|
+
xr as DefaultTheme,
|
|
1038
|
+
Or as Demo,
|
|
1039
|
+
Jo as Footer,
|
|
1040
|
+
Ko as Header,
|
|
1041
|
+
Lr as LeftSidebarLayout,
|
|
1042
|
+
V as Link,
|
|
1043
|
+
jr as Logo,
|
|
1044
|
+
Ao as Menu,
|
|
1045
|
+
Mr as Popover,
|
|
1046
|
+
Tr as VueForge
|
|
1047
|
+
};
|