vuesp-components 2.5.0 → 2.5.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/{CardMain.vue_vue_type_style_index_0_lang-MxVgTFJ8.js → CardMain.vue_vue_type_style_index_0_lang-CCrFdlnW.js} +96 -96
- package/dist/components/dashboard/cards/CardDate.vue.d.ts.map +1 -1
- package/dist/components/index.es.js +387 -387
- package/dist/index.es.js +1 -1
- package/dist/style.css +1 -1
- package/dist/theme.css +11 -12
- package/package.json +1 -1
|
@@ -2,8 +2,8 @@ import { openBlock as o, createElementBlock as i, createStaticVNode as _, create
|
|
|
2
2
|
import { u as U, a as re, b as G, c as J } from "./useDialog-BdpYSys6.js";
|
|
3
3
|
const Q = (e, a) => {
|
|
4
4
|
const l = e.__vccOpts || e;
|
|
5
|
-
for (const [
|
|
6
|
-
l[
|
|
5
|
+
for (const [f, r] of a)
|
|
6
|
+
l[f] = r;
|
|
7
7
|
return l;
|
|
8
8
|
}, se = {}, ie = {
|
|
9
9
|
viewBox: "0 0 179 40",
|
|
@@ -27,7 +27,7 @@ function he(e, a) {
|
|
|
27
27
|
], -1)
|
|
28
28
|
])]);
|
|
29
29
|
}
|
|
30
|
-
const Ye = /* @__PURE__ */ Q(ce, [["render", he]]),
|
|
30
|
+
const Ye = /* @__PURE__ */ Q(ce, [["render", he]]), me = /* @__PURE__ */ V({
|
|
31
31
|
__name: "VLoader",
|
|
32
32
|
props: {
|
|
33
33
|
size: { default: "md" }
|
|
@@ -38,7 +38,7 @@ const Ye = /* @__PURE__ */ Q(ce, [["render", he]]), ve = /* @__PURE__ */ V({
|
|
|
38
38
|
md: "h-6 w-6",
|
|
39
39
|
lg: "h-9 w-9"
|
|
40
40
|
}, l = b(() => a[e.size]);
|
|
41
|
-
return (
|
|
41
|
+
return (f, r) => (o(), i("svg", {
|
|
42
42
|
class: x(["animate-spin", l.value]),
|
|
43
43
|
fill: "none",
|
|
44
44
|
viewBox: "0 0 24 24"
|
|
@@ -58,7 +58,7 @@ const Ye = /* @__PURE__ */ Q(ce, [["render", he]]), ve = /* @__PURE__ */ V({
|
|
|
58
58
|
}, null, -1)
|
|
59
59
|
])], 2));
|
|
60
60
|
}
|
|
61
|
-
}),
|
|
61
|
+
}), ve = "relative inline-flex justify-center items-center gap-2 transition not-disabled:cursor-pointer not-disabled:hover:opacity-90 disabled:pointer-events-none disabled:opacity-40 rounded-md font-medium", X = /* @__PURE__ */ V({
|
|
62
62
|
__name: "VButton",
|
|
63
63
|
props: {
|
|
64
64
|
outline: { type: Boolean, default: !1 },
|
|
@@ -75,30 +75,30 @@ const Ye = /* @__PURE__ */ Q(ce, [["render", he]]), ve = /* @__PURE__ */ V({
|
|
|
75
75
|
},
|
|
76
76
|
emits: ["click"],
|
|
77
77
|
setup(e, { emit: a }) {
|
|
78
|
-
const l = a,
|
|
78
|
+
const l = a, f = (h) => {
|
|
79
79
|
e.disabled || l("click", h);
|
|
80
|
-
}, r = ee("RouterLink"), t = b(() => e.to ? r : e.href ? "a" : "button"), n = b(() => e.type === "submit" || e.type === "reset" ? e.type : "button"),
|
|
80
|
+
}, r = ee("RouterLink"), t = b(() => e.to ? r : e.href ? "a" : "button"), n = b(() => e.type === "submit" || e.type === "reset" ? e.type : "button"), k = b(() => e.type === "icon"), w = {
|
|
81
81
|
green: "border border-green-500/20 bg-green-500/10 text-green-600 dark:text-green-400",
|
|
82
82
|
red: "border border-red-500/20 bg-red-500/10 text-red-600 dark:text-red-400",
|
|
83
|
-
gray: "border border-gray-
|
|
83
|
+
gray: "border border-gray-light-10/70 bg-white/50 text-gray-dark-30 dark:border-white/10 dark:bg-white/[0.05] dark:text-white/70",
|
|
84
84
|
blue: "bg-[var(--color-blue-main)] text-white shadow-[var(--shadow-blue-glow)] hover:brightness-110",
|
|
85
85
|
indigo: "bg-[var(--color-indigo-main)] text-white shadow-[var(--shadow-indigo-glow)] hover:brightness-110",
|
|
86
86
|
violet: "bg-[var(--color-violet-main)] text-white shadow-[var(--shadow-violet-glow)] hover:brightness-110",
|
|
87
87
|
emerald: "bg-[var(--color-green-main)] text-white shadow-[var(--shadow-green-glow)] hover:brightness-110",
|
|
88
88
|
amber: "bg-[var(--color-amber-main)] text-night-dark-5 shadow-[var(--shadow-amber-glow)] hover:brightness-110",
|
|
89
|
-
rose: "bg-[var(--color-
|
|
89
|
+
rose: "bg-[var(--color-red-main)] text-white shadow-[var(--shadow-red-glow)] hover:brightness-110",
|
|
90
90
|
slate: "bg-[var(--color-night-light-10)] text-white shadow-[var(--shadow-slate-glow)] hover:brightness-110",
|
|
91
91
|
transparent: ""
|
|
92
|
-
},
|
|
92
|
+
}, m = {
|
|
93
93
|
green: "border border-green-500/30 text-green-600 dark:text-green-400",
|
|
94
94
|
red: "border border-red-500/30 text-red-600 dark:text-red-400",
|
|
95
|
-
gray: "border border-gray-
|
|
95
|
+
gray: "border border-gray-light-10/70 text-gray-dark-30 dark:border-white/15 dark:text-white/70",
|
|
96
96
|
blue: "border border-[var(--color-blue-main)] text-[var(--color-blue-main)]",
|
|
97
97
|
indigo: "border border-[var(--color-indigo-main)] text-[var(--color-indigo-main)]",
|
|
98
98
|
violet: "border border-[var(--color-violet-main)] text-[var(--color-violet-main)]",
|
|
99
99
|
emerald: "border border-[var(--color-green-main)] text-[var(--color-green-main)]",
|
|
100
100
|
amber: "border border-[var(--color-amber-main)] text-[var(--color-amber-main)]",
|
|
101
|
-
rose: "border border-[var(--color-
|
|
101
|
+
rose: "border border-[var(--color-red-main)] text-[var(--color-red-main)]",
|
|
102
102
|
slate: "border border-[var(--color-night-light-10)] text-[var(--color-night-light-10)]",
|
|
103
103
|
transparent: ""
|
|
104
104
|
}, g = {
|
|
@@ -107,7 +107,7 @@ const Ye = /* @__PURE__ */ Q(ce, [["render", he]]), ve = /* @__PURE__ */ V({
|
|
|
107
107
|
outline: "border border-white/15 bg-transparent text-white hover:border-white/25 hover:bg-white/5",
|
|
108
108
|
ghost: "bg-transparent text-slate-main hover:bg-white/5 hover:text-white",
|
|
109
109
|
dark: "border border-white/10 bg-night-light-10 text-white hover:bg-white/5",
|
|
110
|
-
danger: "border border-
|
|
110
|
+
danger: "border border-red-main/25 bg-red-main/10 text-red-main hover:bg-red-main/15",
|
|
111
111
|
success: "border border-green-main/25 bg-green-main/10 text-green-main hover:bg-green-main/15",
|
|
112
112
|
white: "bg-white text-night-main hover:bg-white/90"
|
|
113
113
|
}, E = {
|
|
@@ -126,8 +126,8 @@ const Ye = /* @__PURE__ */ Q(ce, [["render", he]]), ve = /* @__PURE__ */ V({
|
|
|
126
126
|
lg: "size-12",
|
|
127
127
|
xl: "size-14"
|
|
128
128
|
}, u = b(() => {
|
|
129
|
-
const h = [
|
|
130
|
-
return
|
|
129
|
+
const h = [ve];
|
|
130
|
+
return k.value ? h.push("border border-gray-light-10/70 dark:border-white/10", c[e.size]) : e.variant ? h.push(g[e.variant], C[e.size]) : h.push(e.outline ? m[e.color] : w[e.color], E[e.size]), e.block && h.push("w-full"), e.disabled && h.push("pointer-events-none opacity-40"), h;
|
|
131
131
|
});
|
|
132
132
|
return (h, $) => (o(), B(W(t.value), A(h.$attrs, {
|
|
133
133
|
href: e.href || void 0,
|
|
@@ -136,7 +136,7 @@ const Ye = /* @__PURE__ */ Q(ce, [["render", he]]), ve = /* @__PURE__ */ V({
|
|
|
136
136
|
disabled: t.value === "button" ? e.disabled : void 0,
|
|
137
137
|
"aria-disabled": e.disabled || void 0,
|
|
138
138
|
class: u.value,
|
|
139
|
-
onClick:
|
|
139
|
+
onClick: f
|
|
140
140
|
}), {
|
|
141
141
|
default: z(() => [
|
|
142
142
|
s("span", {
|
|
@@ -144,7 +144,7 @@ const Ye = /* @__PURE__ */ Q(ce, [["render", he]]), ve = /* @__PURE__ */ V({
|
|
|
144
144
|
}, [
|
|
145
145
|
y(h.$slots, "default")
|
|
146
146
|
], 2),
|
|
147
|
-
e.loading ? (o(), B(
|
|
147
|
+
e.loading ? (o(), B(me, {
|
|
148
148
|
key: 0,
|
|
149
149
|
class: "absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2"
|
|
150
150
|
})) : p("", !0)
|
|
@@ -152,13 +152,13 @@ const Ye = /* @__PURE__ */ Q(ce, [["render", he]]), ve = /* @__PURE__ */ V({
|
|
|
152
152
|
_: 3
|
|
153
153
|
}, 16, ["href", "to", "type", "disabled", "aria-disabled", "class"]));
|
|
154
154
|
}
|
|
155
|
-
}),
|
|
155
|
+
}), fe = {
|
|
156
156
|
viewBox: "0 0 24 24",
|
|
157
157
|
width: "1.2em",
|
|
158
158
|
height: "1.2em"
|
|
159
159
|
};
|
|
160
160
|
function ge(e, a) {
|
|
161
|
-
return o(), i("svg",
|
|
161
|
+
return o(), i("svg", fe, [...a[0] || (a[0] = [
|
|
162
162
|
s("path", {
|
|
163
163
|
fill: "currentColor",
|
|
164
164
|
d: "m12 10.587l4.95-4.95l1.414 1.414l-4.95 4.95l4.95 4.95l-1.415 1.414l-4.95-4.95l-4.949 4.95l-1.414-1.415l4.95-4.95l-4.95-4.95L7.05 5.638z"
|
|
@@ -173,7 +173,7 @@ const Y = F({ name: "ri-close-line", render: ge }), be = { class: "flex items-ce
|
|
|
173
173
|
},
|
|
174
174
|
emits: ["close", "click", "open"],
|
|
175
175
|
setup(e, { emit: a }) {
|
|
176
|
-
const l = a, { show:
|
|
176
|
+
const l = a, { show: f, overlay: r, onClose: t, onOpen: n } = U(l), k = N(null), w = N(null), { opacity: m, transform: g } = re(k, w, t), c = { click: ($) => {
|
|
177
177
|
l("click", $);
|
|
178
178
|
}, open: n, set: ($) => {
|
|
179
179
|
$ ? n() : t(new Event("hide"));
|
|
@@ -186,8 +186,8 @@ const Y = F({ name: "ri-close-line", render: ge }), be = { class: "flex items-ce
|
|
|
186
186
|
full: "h-[calc(100dvh-24px-16px)] md:h-[calc(100dvh-100px-16px)]",
|
|
187
187
|
screen: "h-[calc(100dvh-16px)]"
|
|
188
188
|
}));
|
|
189
|
-
return ($,
|
|
190
|
-
const D = Y,
|
|
189
|
+
return ($, M) => {
|
|
190
|
+
const D = Y, v = X;
|
|
191
191
|
return o(), B(q, { to: "body" }, [
|
|
192
192
|
S(I, {
|
|
193
193
|
"enter-active-class": "duration-300 ease-out",
|
|
@@ -198,7 +198,7 @@ const Y = F({ name: "ri-close-line", render: ge }), be = { class: "flex items-ce
|
|
|
198
198
|
"leave-to-class": "transform opacity-0 translate-y-full xl:-translate-y-2"
|
|
199
199
|
}, {
|
|
200
200
|
default: z(() => [
|
|
201
|
-
d(
|
|
201
|
+
d(f) ? (o(), i("div", {
|
|
202
202
|
key: 0,
|
|
203
203
|
ref_key: "container",
|
|
204
204
|
ref: w,
|
|
@@ -207,12 +207,12 @@ const Y = F({ name: "ri-close-line", render: ge }), be = { class: "flex items-ce
|
|
|
207
207
|
d(r) ? (o(), i("div", {
|
|
208
208
|
key: 0,
|
|
209
209
|
class: "fixed h-full w-full top-0 left-0 bg-black/40 bg-blur xl:hidden animate-opacity overscroll-contain",
|
|
210
|
-
style: H({ opacity: d(
|
|
211
|
-
onClick:
|
|
210
|
+
style: H({ opacity: d(m) }),
|
|
211
|
+
onClick: M[0] || (M[0] = //@ts-ignore
|
|
212
212
|
(...j) => d(t) && d(t)(...j)),
|
|
213
|
-
onWheel:
|
|
213
|
+
onWheel: M[1] || (M[1] = L(() => {
|
|
214
214
|
}, ["prevent"])),
|
|
215
|
-
onTouchmove:
|
|
215
|
+
onTouchmove: M[2] || (M[2] = L(() => {
|
|
216
216
|
}, ["prevent"]))
|
|
217
217
|
}, null, 36)) : p("", !0),
|
|
218
218
|
s("div", {
|
|
@@ -221,18 +221,18 @@ const Y = F({ name: "ri-close-line", render: ge }), be = { class: "flex items-ce
|
|
|
221
221
|
}, [
|
|
222
222
|
s("div", {
|
|
223
223
|
ref_key: "target",
|
|
224
|
-
ref:
|
|
224
|
+
ref: k,
|
|
225
225
|
class: "flex justify-center py-3 md:pb-6",
|
|
226
|
-
onWheel:
|
|
226
|
+
onWheel: M[3] || (M[3] = L(() => {
|
|
227
227
|
}, ["prevent"])),
|
|
228
|
-
onTouchmove:
|
|
228
|
+
onTouchmove: M[4] || (M[4] = L(() => {
|
|
229
229
|
}, ["prevent"]))
|
|
230
|
-
}, [...
|
|
231
|
-
s("div", { class: "self-end h-1 w-12 bg-gray-
|
|
230
|
+
}, [...M[5] || (M[5] = [
|
|
231
|
+
s("div", { class: "self-end h-1 w-12 bg-gray-main" }, null, -1)
|
|
232
232
|
])], 544),
|
|
233
233
|
s("div", be, [
|
|
234
234
|
y($.$slots, "button", { close: d(t) }),
|
|
235
|
-
S(
|
|
235
|
+
S(v, {
|
|
236
236
|
class: "size-5 md:size-6",
|
|
237
237
|
color: "transparent",
|
|
238
238
|
size: "none",
|
|
@@ -286,19 +286,19 @@ const Y = F({ name: "ri-close-line", render: ge }), be = { class: "flex items-ce
|
|
|
286
286
|
},
|
|
287
287
|
emits: ["click", "show", "close"],
|
|
288
288
|
setup(e, { emit: a }) {
|
|
289
|
-
const l = a, r = G(J).greaterOrEqual("lg"), t = K(!1), n = b(() => ({ top: e.top, left: e.left, right: e.right, bottom: e.bottom, "max-height": e.height })),
|
|
289
|
+
const l = a, r = G(J).greaterOrEqual("lg"), t = K(!1), n = b(() => ({ top: e.top, left: e.left, right: e.right, bottom: e.bottom, "max-height": e.height })), k = (u) => {
|
|
290
290
|
r.value && t.value && g(u);
|
|
291
291
|
}, w = (u) => {
|
|
292
|
-
l("click", t.value), !e.disabled && (t.value ? e.hideOnClick && g(u) :
|
|
293
|
-
},
|
|
292
|
+
l("click", t.value), !e.disabled && (t.value ? e.hideOnClick && g(u) : m(u));
|
|
293
|
+
}, m = (u) => {
|
|
294
294
|
t.value = !0, l("show", u);
|
|
295
295
|
}, g = (u) => {
|
|
296
296
|
t.value = !1, l("close", u);
|
|
297
297
|
}, E = (u) => {
|
|
298
|
-
u ?
|
|
298
|
+
u ? m(new Event("show")) : g(new Event("hide"));
|
|
299
299
|
}, C = () => {
|
|
300
300
|
g(new Event("hide"));
|
|
301
|
-
}, c = { click: w, open:
|
|
301
|
+
}, c = { click: w, open: m, set: E };
|
|
302
302
|
return (u, h) => te((o(), i("div", ye, [
|
|
303
303
|
s("div", we, [
|
|
304
304
|
y(u.$slots, "activator", {
|
|
@@ -323,7 +323,7 @@ const Y = F({ name: "ri-close-line", render: ge }), be = { class: "flex items-ce
|
|
|
323
323
|
}, [
|
|
324
324
|
y(u.$slots, "default", {
|
|
325
325
|
on: c,
|
|
326
|
-
show:
|
|
326
|
+
show: m,
|
|
327
327
|
hide: g,
|
|
328
328
|
isShow: t.value,
|
|
329
329
|
isLgOrLarger: d(r)
|
|
@@ -340,7 +340,7 @@ const Y = F({ name: "ri-close-line", render: ge }), be = { class: "flex items-ce
|
|
|
340
340
|
default: z(({ on: $ }) => [
|
|
341
341
|
y(u.$slots, "default", {
|
|
342
342
|
on: $,
|
|
343
|
-
show:
|
|
343
|
+
show: m,
|
|
344
344
|
hide: g,
|
|
345
345
|
isShow: t.value,
|
|
346
346
|
isLgOrLarger: d(r)
|
|
@@ -349,10 +349,10 @@ const Y = F({ name: "ri-close-line", render: ge }), be = { class: "flex items-ce
|
|
|
349
349
|
_: 3
|
|
350
350
|
}, 8, ["title"])) : p("", !0)
|
|
351
351
|
])), [
|
|
352
|
-
[d(xe),
|
|
352
|
+
[d(xe), k]
|
|
353
353
|
]);
|
|
354
354
|
}
|
|
355
|
-
}),
|
|
355
|
+
}), ke = ["onClick"], Me = /* @__PURE__ */ V({
|
|
356
356
|
__name: "VList",
|
|
357
357
|
props: {
|
|
358
358
|
items: {},
|
|
@@ -360,33 +360,33 @@ const Y = F({ name: "ri-close-line", render: ge }), be = { class: "flex items-ce
|
|
|
360
360
|
},
|
|
361
361
|
emits: ["click"],
|
|
362
362
|
setup(e, { emit: a }) {
|
|
363
|
-
const l = a,
|
|
363
|
+
const l = a, f = (r, t) => l("click", r, t);
|
|
364
364
|
return (r, t) => (o(), i("ul", {
|
|
365
365
|
class: x(e.plain ? "" : "glass-popover rounded-md")
|
|
366
366
|
}, [
|
|
367
367
|
(o(!0), i(T, null, P(e.items, (n) => (o(), i("li", {
|
|
368
368
|
key: n.name,
|
|
369
|
-
class: "flex min-h-[40px] w-full cursor-pointer items-center whitespace-nowrap border-b border-gray-
|
|
370
|
-
onClick: (
|
|
369
|
+
class: "flex min-h-[40px] w-full cursor-pointer items-center whitespace-nowrap border-b border-gray-light-30 px-4 last:border-b-0 hover:bg-cyan-main/10 dark:border-white/5 dark:hover:bg-white/[0.06]",
|
|
370
|
+
onClick: (k) => f(n, k)
|
|
371
371
|
}, [
|
|
372
372
|
y(r.$slots, "default", { item: n }, () => [
|
|
373
373
|
R(O(n.name), 1)
|
|
374
374
|
])
|
|
375
|
-
], 8,
|
|
375
|
+
], 8, ke))), 128))
|
|
376
376
|
], 2));
|
|
377
377
|
}
|
|
378
|
-
}), ze = { class: "relative flex items-end gap-0.5 w-10" }, Ce = ["title"], $e = { class: "absolute -top-1 -left-1 text-xs text-gray-
|
|
378
|
+
}), ze = { class: "relative flex items-end gap-0.5 w-10" }, Ce = ["title"], $e = { class: "absolute -top-1 -left-1 text-xs text-gray-dark-25 dark:text-gray-light-10" }, Ze = /* @__PURE__ */ V({
|
|
379
379
|
__name: "VWifiIcon",
|
|
380
380
|
props: {
|
|
381
381
|
rssi: { default: 0 },
|
|
382
382
|
channel: { default: 0 }
|
|
383
383
|
},
|
|
384
384
|
setup(e) {
|
|
385
|
-
const a = 2 * (e.rssi + 100), l = (
|
|
386
|
-
return (
|
|
385
|
+
const a = 2 * (e.rssi + 100), l = (f) => f < a;
|
|
386
|
+
return (f, r) => (o(), i("div", ze, [
|
|
387
387
|
(o(), i(T, null, P([10, 15, 25, 40, 70], (t, n) => s("div", {
|
|
388
388
|
key: t,
|
|
389
|
-
class: x(["w-1 h-5 rounded-lg", [l(t) ? "bg-gray-
|
|
389
|
+
class: x(["w-1 h-5 rounded-lg", [l(t) ? "bg-gray-dark-40 dark:bg-gray-light-30" : "bg-gray-light-10 dark:bg-gray-dark-30"]]),
|
|
390
390
|
style: H(`height: ${(n + 1) * 5}px`),
|
|
391
391
|
title: `rssi: ${e.rssi} channel: ${e.channel}`
|
|
392
392
|
}, null, 14, Ce)), 64)),
|
|
@@ -461,7 +461,7 @@ const Le = F({ name: "ri-arrow-down-s-line", render: Be }), Se = ["width", "heig
|
|
|
461
461
|
external: ["M14 3h7v7", "M10 14 21 3", "M21 14v7H3V3h7"],
|
|
462
462
|
github: ["M15 22v-4a4.8 4.8 0 0 0-1-3.5c3.3-.4 6.8-1.6 6.8-7A5.4 5.4 0 0 0 19.5 4 5 5 0 0 0 19.4.5S18.2.1 15 1.8a13.4 13.4 0 0 0-7 0C4.8.1 3.6.5 3.6.5A5 5 0 0 0 3.5 4 5.4 5.4 0 0 0 2 7.5c0 5.4 3.5 6.6 6.8 7A4.8 4.8 0 0 0 8 18v4", "M8 19c-3 .9-3-1.5-4-2"]
|
|
463
463
|
}, l = b(() => a[e.name] ?? a.help);
|
|
464
|
-
return (
|
|
464
|
+
return (f, r) => (o(), i("svg", {
|
|
465
465
|
width: e.size,
|
|
466
466
|
height: e.size,
|
|
467
467
|
viewBox: "0 0 24 24",
|
|
@@ -496,25 +496,25 @@ const Le = F({ name: "ri-arrow-down-s-line", render: Be }), Se = ["width", "heig
|
|
|
496
496
|
},
|
|
497
497
|
emits: ["update:modelValue", "click", "on-icon", "enter", "blur", "focus"],
|
|
498
498
|
setup(e, { emit: a }) {
|
|
499
|
-
const l = a,
|
|
500
|
-
input: "w-full h-full px-4 outline-none overflow-ellipsis flex-auto overflow-hidden w-[calc(100% - 20px)] bg-transparent placeholder:text-gray-
|
|
499
|
+
const l = a, f = {
|
|
500
|
+
input: "w-full h-full px-4 outline-none overflow-ellipsis flex-auto overflow-hidden w-[calc(100% - 20px)] bg-transparent placeholder:text-gray-main dark:placeholder:text-gray-dark-25",
|
|
501
501
|
textarea: "h-full w-full px-4 py-2 outline-none flex-auto bg-transparent"
|
|
502
502
|
}, r = K(!1), t = b(() => e.error || e.message), n = b(() => [
|
|
503
503
|
e.component === "input" ? "h-[40px]" : "min-h-[40px]",
|
|
504
504
|
e.error ? "!border-red-400/70 ring-1 ring-red-400/25 hover:!border-red-400" : "",
|
|
505
|
-
e.disabled ? "border-gray-
|
|
506
|
-
]),
|
|
505
|
+
e.disabled ? "border-gray-light-10 opacity-40 dark:border-gray-dark-30" : "border-gray-light-10/80 hover:border-gray-main/80 dark:border-white/10 dark:hover:border-white/20"
|
|
506
|
+
]), k = b(() => f[e.component]), w = (v) => v || v === 0, m = b(() => r.value || w(e.modelValue) || e.active), g = b(() => e.icon ? "left-11" : "left-3.5"), E = b(() => [
|
|
507
507
|
g.value,
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
]), C = b(() => e.component === "input"), c = (
|
|
511
|
-
r.value = !1, l("blur",
|
|
512
|
-
}, u = (
|
|
513
|
-
r.value = !0, l("focus",
|
|
514
|
-
}, h = ({ target:
|
|
515
|
-
e.disabled || l("on-icon",
|
|
508
|
+
m.value ? Ae : "",
|
|
509
|
+
m.value ? "top-0 bg-white/80 px-1 text-xs text-gray-dark-25 dark:bg-night-light-10/80 dark:text-gray-main" : "top-1/2 bg-transparent px-0 text-gray-main dark:text-gray-dark-25"
|
|
510
|
+
]), C = b(() => e.component === "input"), c = (v) => {
|
|
511
|
+
r.value = !1, l("blur", v);
|
|
512
|
+
}, u = (v) => {
|
|
513
|
+
r.value = !0, l("focus", v);
|
|
514
|
+
}, h = ({ target: v }) => l("update:modelValue", v.value), $ = (v) => l("enter", v), M = (v) => l("click", v), D = (v) => {
|
|
515
|
+
e.disabled || l("on-icon", v);
|
|
516
516
|
};
|
|
517
|
-
return (
|
|
517
|
+
return (v, j) => (o(), i("div", He, [
|
|
518
518
|
s("label", {
|
|
519
519
|
class: x(["glass-inset relative flex w-full items-center rounded-md transition focus-within:border-cyan-main/60 focus-within:ring-1 focus-within:ring-cyan-main/20", n.value])
|
|
520
520
|
}, [
|
|
@@ -522,41 +522,41 @@ const Le = F({ name: "ri-arrow-down-s-line", render: Be }), Se = ["width", "heig
|
|
|
522
522
|
key: 0,
|
|
523
523
|
name: e.icon,
|
|
524
524
|
size: 18,
|
|
525
|
-
class: "ml-3.5 shrink-0 text-gray-
|
|
525
|
+
class: "ml-3.5 shrink-0 text-gray-main dark:text-gray-dark-25"
|
|
526
526
|
}, null, 8, ["name"])) : p("", !0),
|
|
527
527
|
s("span", {
|
|
528
528
|
class: x(["absolute -translate-y-1/2 rounded transition-all", E.value])
|
|
529
529
|
}, O(e.label), 3),
|
|
530
|
-
(o(), B(W(e.component), A(
|
|
530
|
+
(o(), B(W(e.component), A(v.$attrs, {
|
|
531
531
|
value: e.modelValue,
|
|
532
|
-
placeholder:
|
|
532
|
+
placeholder: m.value ? e.placeholder : "",
|
|
533
533
|
disabled: !!e.disabled,
|
|
534
534
|
type: e.type,
|
|
535
535
|
readonly: e.readonly,
|
|
536
536
|
rows: C.value ? null : "2",
|
|
537
537
|
wrap: C.value ? null : "soft",
|
|
538
|
-
class:
|
|
538
|
+
class: k.value,
|
|
539
539
|
"aria-invalid": t.value ? !0 : void 0,
|
|
540
540
|
onFocus: u,
|
|
541
541
|
onBlur: c,
|
|
542
542
|
onInput: h,
|
|
543
|
-
onClick:
|
|
543
|
+
onClick: M,
|
|
544
544
|
onKeypress: ae($, ["enter"])
|
|
545
545
|
}), null, 16, ["value", "placeholder", "disabled", "type", "readonly", "rows", "wrap", "class", "aria-invalid"])),
|
|
546
|
-
|
|
546
|
+
v.$slots.icon ? (o(), i("button", {
|
|
547
547
|
key: 1,
|
|
548
548
|
disabled: !!e.disabled,
|
|
549
|
-
class: x([{ "cursor-pointer": !e.disabled }, "flex h-full flex-[0_0_50px] items-center justify-center border-l border-gray-
|
|
549
|
+
class: x([{ "cursor-pointer": !e.disabled }, "flex h-full flex-[0_0_50px] items-center justify-center border-l border-gray-light-10/70 text-gray-main dark:border-white/10"]),
|
|
550
550
|
onClick: D
|
|
551
551
|
}, [
|
|
552
|
-
y(
|
|
552
|
+
y(v.$slots, "icon")
|
|
553
553
|
], 10, De)) : p("", !0)
|
|
554
554
|
], 2),
|
|
555
555
|
e.hideMessage ? p("", !0) : (o(), i("div", {
|
|
556
556
|
key: 0,
|
|
557
|
-
class: x(["h-[24px] px-2 text-xs", e.error ? "text-red-400" : "text-gray-
|
|
557
|
+
class: x(["h-[24px] px-2 text-xs", e.error ? "text-red-400" : "text-gray-dark-25 dark:text-gray-main"])
|
|
558
558
|
}, [
|
|
559
|
-
y(
|
|
559
|
+
y(v.$slots, "message", {}, () => [
|
|
560
560
|
R(O(t.value), 1)
|
|
561
561
|
])
|
|
562
562
|
], 2))
|
|
@@ -584,18 +584,18 @@ const Le = F({ name: "ri-arrow-down-s-line", render: Be }), Se = ["width", "heig
|
|
|
584
584
|
},
|
|
585
585
|
emits: ["change"],
|
|
586
586
|
setup(e, { emit: a }) {
|
|
587
|
-
const l = le(e, ["modelValue", "label", "items", "disabled"]),
|
|
587
|
+
const l = le(e, ["modelValue", "label", "items", "disabled"]), f = a;
|
|
588
588
|
function r(t, n) {
|
|
589
|
-
|
|
589
|
+
f("change", t), n == null || n.set(!1);
|
|
590
590
|
}
|
|
591
591
|
return (t, n) => {
|
|
592
|
-
const
|
|
592
|
+
const k = Le;
|
|
593
593
|
return o(), B(pe, A(l, {
|
|
594
594
|
"hide-on-click": !1,
|
|
595
595
|
class: "relative"
|
|
596
596
|
}), {
|
|
597
|
-
activator: z(({ on: w, isShow:
|
|
598
|
-
y(t.$slots, "activator", oe(ne({ on: w, isShow:
|
|
597
|
+
activator: z(({ on: w, isShow: m }) => [
|
|
598
|
+
y(t.$slots, "activator", oe(ne({ on: w, isShow: m })), () => [
|
|
599
599
|
S(Ie, {
|
|
600
600
|
"model-value": e.modelValue,
|
|
601
601
|
disabled: e.disabled,
|
|
@@ -607,21 +607,21 @@ const Le = F({ name: "ri-arrow-down-s-line", render: Be }), Se = ["width", "heig
|
|
|
607
607
|
onOnIcon: w.click
|
|
608
608
|
}, {
|
|
609
609
|
icon: z(() => [
|
|
610
|
-
S(
|
|
611
|
-
class: x(["transition duration-300",
|
|
610
|
+
S(k, {
|
|
611
|
+
class: x(["transition duration-300", m ? "rotate-180" : ""])
|
|
612
612
|
}, null, 8, ["class"])
|
|
613
613
|
]),
|
|
614
614
|
_: 2
|
|
615
615
|
}, 1032, ["model-value", "disabled", "label", "onClick", "onOnIcon"])
|
|
616
616
|
])
|
|
617
617
|
]),
|
|
618
|
-
default: z(({ on: w, isLgOrLarger:
|
|
618
|
+
default: z(({ on: w, isLgOrLarger: m }) => [
|
|
619
619
|
s("div", Te, [
|
|
620
620
|
e.label ? (o(), i("h4", Pe, O(e.label), 1)) : p("", !0),
|
|
621
|
-
S(
|
|
621
|
+
S(Me, {
|
|
622
622
|
items: e.items,
|
|
623
|
-
plain: !
|
|
624
|
-
class: x(["lg:max-h-50 lg:overflow-y-auto lg:overscroll-contain", { scrollbar:
|
|
623
|
+
plain: !m,
|
|
624
|
+
class: x(["lg:max-h-50 lg:overflow-y-auto lg:overscroll-contain", { scrollbar: m }]),
|
|
625
625
|
onClick: (g) => r(g, w)
|
|
626
626
|
}, {
|
|
627
627
|
default: z(({ item: g }) => [
|
|
@@ -654,16 +654,16 @@ const Le = F({ name: "ri-arrow-down-s-line", render: Be }), Se = ["width", "heig
|
|
|
654
654
|
},
|
|
655
655
|
emits: ["close", "click", "open"],
|
|
656
656
|
setup(e, { expose: a, emit: l }) {
|
|
657
|
-
const
|
|
657
|
+
const f = l, r = G(J), { show: t, onClose: n, onOpen: k } = U(f, e.timeout), w = {
|
|
658
658
|
sm: "max-w-full md:max-w-[330px] max-md:h-full",
|
|
659
659
|
md: "max-w-full md:max-w-[672px] max-md:h-full",
|
|
660
660
|
lg: "max-w-full md:max-w-[960px] max-md:h-full",
|
|
661
661
|
full: "relative max-w-full w-full h-3/4 "
|
|
662
|
-
},
|
|
662
|
+
}, m = {
|
|
663
663
|
none: "",
|
|
664
664
|
white: "glass-panel",
|
|
665
665
|
gray: ""
|
|
666
|
-
}, g = b(() => [w[e.size],
|
|
666
|
+
}, g = b(() => [w[e.size], m[e.color]]), E = r.greaterOrEqual("lg");
|
|
667
667
|
return a({
|
|
668
668
|
show: t,
|
|
669
669
|
onClose: n
|
|
@@ -680,7 +680,7 @@ const Le = F({ name: "ri-arrow-down-s-line", render: Be }), Se = ["width", "heig
|
|
|
680
680
|
"leave-active-class": "duration-200 ease-in",
|
|
681
681
|
"leave-from-class": "opacity-100 translate-y-0",
|
|
682
682
|
"leave-to-class": "transform opacity-0 -translate-y-2",
|
|
683
|
-
onAfterEnter: d(
|
|
683
|
+
onAfterEnter: d(k)
|
|
684
684
|
}, {
|
|
685
685
|
default: z(() => [
|
|
686
686
|
d(t) ? (o(), i("div", {
|
|
@@ -701,7 +701,7 @@ const Le = F({ name: "ri-arrow-down-s-line", render: Be }), Se = ["width", "heig
|
|
|
701
701
|
class: x(["m-auto z-20 flex w-full flex-col overflow-auto overscroll-contain scrollbar bg-transparent shadow-lg", g.value])
|
|
702
702
|
}, [
|
|
703
703
|
s("div", {
|
|
704
|
-
class: x(["flex items-center min-h-14 border-b border-gray-
|
|
704
|
+
class: x(["flex items-center min-h-14 border-b border-gray-light-10/70 bg-white/35 px-6 dark:border-white/10 dark:bg-white/[0.03]", e.size === "full" ? "absolute top-0 right-4 border-0 bg-transparent px-0" : ""]),
|
|
705
705
|
onWheel: c[1] || (c[1] = L(() => {
|
|
706
706
|
}, ["prevent"])),
|
|
707
707
|
onTouchmove: c[2] || (c[2] = L(() => {
|
|
@@ -762,16 +762,16 @@ const Le = F({ name: "ri-arrow-down-s-line", render: Be }), Se = ["width", "heig
|
|
|
762
762
|
}
|
|
763
763
|
}), We = {
|
|
764
764
|
key: 0,
|
|
765
|
-
class: "loader-line w-full absolute top-0 left-0 h-[3px] bg-gray-
|
|
765
|
+
class: "loader-line w-full absolute top-0 left-0 h-[3px] bg-gray-light-30 dark:bg-white/5 before:bg-cyan-main before:h-1 rounded-xl z-20 before:absolute before:w-[40%] before:-left-1/2 before:content-[''] before:animate-[lineAnim_1s_linear_infinite]"
|
|
766
766
|
}, Fe = {
|
|
767
767
|
key: 1,
|
|
768
|
-
class: "absolute top-0 left-0 w-full h-full bg-gray-
|
|
768
|
+
class: "absolute top-0 left-0 w-full h-full bg-gray-light-30 dark:bg-night-main/75 z-10 opacity-50"
|
|
769
769
|
}, qe = {
|
|
770
770
|
key: 2,
|
|
771
771
|
class: "mb-4 flex items-center justify-between gap-3"
|
|
772
772
|
}, Ke = {
|
|
773
773
|
key: 0,
|
|
774
|
-
class: "text-lg font-semibold text-gray-
|
|
774
|
+
class: "text-lg font-semibold text-gray-dark-30 dark:text-white"
|
|
775
775
|
}, Ue = { class: "ml-auto" }, Ge = ["inert", "aria-disabled"], tt = /* @__PURE__ */ V({
|
|
776
776
|
__name: "CardMain",
|
|
777
777
|
props: {
|
|
@@ -782,7 +782,7 @@ const Le = F({ name: "ri-arrow-down-s-line", render: Be }), Se = ["width", "heig
|
|
|
782
782
|
},
|
|
783
783
|
setup(e) {
|
|
784
784
|
const a = b(() => e.padded ? "p-5 sm:p-6" : "");
|
|
785
|
-
return (l,
|
|
785
|
+
return (l, f) => (o(), i("div", {
|
|
786
786
|
class: x(["glass-panel relative transition-all duration-300 hover:border-cyan-main/25 hover:shadow-[inset_0_1px_0_rgba(255,255,255,0.18),0_0_60px_-18px_rgba(40,183,240,0.25)]", [a.value, { "overflow-hidden": e.loading }]])
|
|
787
787
|
}, [
|
|
788
788
|
e.loading ? (o(), i("div", We)) : p("", !0),
|
|
@@ -812,9 +812,9 @@ export {
|
|
|
812
812
|
Ze as d,
|
|
813
813
|
_e as e,
|
|
814
814
|
Ie as f,
|
|
815
|
-
|
|
815
|
+
Me as g,
|
|
816
816
|
pe as h,
|
|
817
|
-
|
|
817
|
+
me as i,
|
|
818
818
|
X as j,
|
|
819
819
|
Y as k,
|
|
820
820
|
Q as l,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardDate.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/dashboard/cards/CardDate.vue"],"names":[],"mappings":"AA8DA,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,oCAAoC,CAAC;AAsCzF,iBAAS,cAAc;WA0JT,OAAO,IAA6B;;;;;;;;;;;;;;;;;YAXvB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"CardDate.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/dashboard/cards/CardDate.vue"],"names":[],"mappings":"AA8DA,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,oCAAoC,CAAC;AAsCzF,iBAAS,cAAc;WA0JT,OAAO,IAA6B;;;;;;;;;;;;;;;;;YAXvB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAyDywf,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;EAzC55f;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAwBkxf,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;kBAf35f,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|