nicklabs-ui 1.0.44 → 1.0.46
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.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fragment as e, Teleport as t, Transition as n, TransitionGroup as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createSlots as l, createStaticVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, nextTick as m, normalizeClass as h, normalizeStyle as g, onBeforeUnmount as
|
|
1
|
+
import { Fragment as e, Teleport as t, Transition as n, TransitionGroup as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createSlots as l, createStaticVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, nextTick as m, normalizeClass as h, normalizeStyle as g, onBeforeUnmount as ee, onMounted as _, onUnmounted as v, openBlock as y, reactive as b, ref as x, renderList as S, renderSlot as C, toDisplayString as w, unref as T, useCssVars as E, vModelText as te, watch as ne, withCtx as D, withDirectives as re, withModifiers as O } from "vue";
|
|
2
2
|
//#region src/composables/sharedRouter.ts
|
|
3
3
|
var k = null;
|
|
4
4
|
function ie(e) {
|
|
@@ -118,10 +118,10 @@ var I = { class: "breadcrumbs" }, L = ["onClick"], R = {
|
|
|
118
118
|
"value",
|
|
119
119
|
"maxlength",
|
|
120
120
|
"autocomplete"
|
|
121
|
-
],
|
|
121
|
+
], V = ["disabled"], le = {
|
|
122
122
|
key: 2,
|
|
123
123
|
class: "actions"
|
|
124
|
-
},
|
|
124
|
+
}, H = {
|
|
125
125
|
key: 0,
|
|
126
126
|
xmlns: "http://www.w3.org/2000/svg",
|
|
127
127
|
width: "16",
|
|
@@ -132,7 +132,7 @@ var I = { class: "breadcrumbs" }, L = ["onClick"], R = {
|
|
|
132
132
|
"stroke-width": "2",
|
|
133
133
|
"stroke-linecap": "round",
|
|
134
134
|
"stroke-linejoin": "round"
|
|
135
|
-
},
|
|
135
|
+
}, ue = {
|
|
136
136
|
key: 1,
|
|
137
137
|
xmlns: "http://www.w3.org/2000/svg",
|
|
138
138
|
width: "16",
|
|
@@ -143,7 +143,7 @@ var I = { class: "breadcrumbs" }, L = ["onClick"], R = {
|
|
|
143
143
|
"stroke-width": "2",
|
|
144
144
|
"stroke-linecap": "round",
|
|
145
145
|
"stroke-linejoin": "round"
|
|
146
|
-
},
|
|
146
|
+
}, de = /* @__PURE__ */ j(/* @__PURE__ */ p({
|
|
147
147
|
__name: "NInput",
|
|
148
148
|
props: {
|
|
149
149
|
modelValue: { default: "" },
|
|
@@ -218,7 +218,7 @@ var I = { class: "breadcrumbs" }, L = ["onClick"], R = {
|
|
|
218
218
|
let t = e.target, r = f(t.value);
|
|
219
219
|
t.value !== r && (t.value = r, n("update:modelValue", r));
|
|
220
220
|
}
|
|
221
|
-
},
|
|
221
|
+
}, ee = (e) => {
|
|
222
222
|
n("input", e);
|
|
223
223
|
let t = e.target;
|
|
224
224
|
if (a.value) {
|
|
@@ -229,7 +229,7 @@ var I = { class: "breadcrumbs" }, L = ["onClick"], R = {
|
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
231
|
n("update:modelValue", t.value);
|
|
232
|
-
},
|
|
232
|
+
}, _ = (t) => {
|
|
233
233
|
n("blur", t), a.value && e.modelValue === "" && n("update:modelValue", String(e.min === -Infinity ? 0 : e.min));
|
|
234
234
|
}, v = () => {
|
|
235
235
|
e.disabled || e.readonly || (n("update:modelValue", ""), n("clear"));
|
|
@@ -282,8 +282,8 @@ var I = { class: "breadcrumbs" }, L = ["onClick"], R = {
|
|
|
282
282
|
maxlength: e.maxlength,
|
|
283
283
|
autocomplete: e.autocomplete,
|
|
284
284
|
onFocus: i[0] ||= (e) => n("focus", e),
|
|
285
|
-
onBlur:
|
|
286
|
-
onInput:
|
|
285
|
+
onBlur: _,
|
|
286
|
+
onInput: ee,
|
|
287
287
|
onChange: i[1] ||= (e) => n("change", e),
|
|
288
288
|
onKeydown: m,
|
|
289
289
|
onCompositionend: g
|
|
@@ -304,18 +304,18 @@ var I = { class: "breadcrumbs" }, L = ["onClick"], R = {
|
|
|
304
304
|
"stroke-width": "2",
|
|
305
305
|
"stroke-linecap": "round",
|
|
306
306
|
"stroke-linejoin": "round"
|
|
307
|
-
}, [c("path", { d: "M5 12h14" }), c("path", { d: "M12 5v14" })], -1)]], 8,
|
|
308
|
-
a.value ? o("", !0) : (y(), s("div",
|
|
307
|
+
}, [c("path", { d: "M5 12h14" }), c("path", { d: "M12 5v14" })], -1)]], 8, V)) : o("", !0),
|
|
308
|
+
a.value ? o("", !0) : (y(), s("div", le, [r.value && !e.disabled ? (y(), s("button", {
|
|
309
309
|
key: 0,
|
|
310
310
|
type: "button",
|
|
311
311
|
onClick: C,
|
|
312
312
|
"aria-label": "Toggle password visibility"
|
|
313
|
-
}, [l.value ? (y(), s("svg",
|
|
313
|
+
}, [l.value ? (y(), s("svg", ue, [...i[5] ||= [
|
|
314
314
|
c("path", { d: "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49" }, null, -1),
|
|
315
315
|
c("path", { d: "M14.084 14.158a3 3 0 0 1-4.242-4.242" }, null, -1),
|
|
316
316
|
c("path", { d: "M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143" }, null, -1),
|
|
317
317
|
c("path", { d: "m2 2 20 20" }, null, -1)
|
|
318
|
-
]])) : (y(), s("svg",
|
|
318
|
+
]])) : (y(), s("svg", H, [...i[4] ||= [c("path", { d: "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0" }, null, -1), c("circle", {
|
|
319
319
|
cx: "12",
|
|
320
320
|
cy: "12",
|
|
321
321
|
r: "3"
|
|
@@ -337,7 +337,7 @@ var I = { class: "breadcrumbs" }, L = ["onClick"], R = {
|
|
|
337
337
|
}, [c("path", { d: "M18 6 6 18" }), c("path", { d: "m6 6 12 12" })], -1)]])) : o("", !0)]))
|
|
338
338
|
], 2)], 2));
|
|
339
339
|
}
|
|
340
|
-
}), [["__scopeId", "data-v-ee7d4845"]]),
|
|
340
|
+
}), [["__scopeId", "data-v-ee7d4845"]]), fe = { class: "textarea" }, pe = ["textContent"], me = [
|
|
341
341
|
"rows",
|
|
342
342
|
"placeholder",
|
|
343
343
|
"disabled",
|
|
@@ -346,10 +346,10 @@ var I = { class: "breadcrumbs" }, L = ["onClick"], R = {
|
|
|
346
346
|
"maxlength",
|
|
347
347
|
"autocomplete",
|
|
348
348
|
"wrap"
|
|
349
|
-
],
|
|
349
|
+
], he = {
|
|
350
350
|
key: 1,
|
|
351
351
|
class: "char-count"
|
|
352
|
-
},
|
|
352
|
+
}, ge = /* @__PURE__ */ j(/* @__PURE__ */ p({
|
|
353
353
|
__name: "NTextarea",
|
|
354
354
|
props: {
|
|
355
355
|
modelValue: { default: "" },
|
|
@@ -397,14 +397,14 @@ var I = { class: "breadcrumbs" }, L = ["onClick"], R = {
|
|
|
397
397
|
let t = e.target;
|
|
398
398
|
n("update:modelValue", t.value);
|
|
399
399
|
};
|
|
400
|
-
return
|
|
400
|
+
return _(() => {
|
|
401
401
|
e.autofocus && r.value?.focus();
|
|
402
|
-
}), (t, i) => (y(), s("div",
|
|
402
|
+
}), (t, i) => (y(), s("div", fe, [
|
|
403
403
|
e.title ? (y(), s("label", {
|
|
404
404
|
key: 0,
|
|
405
405
|
class: "label",
|
|
406
406
|
textContent: w(e.title)
|
|
407
|
-
}, null, 8,
|
|
407
|
+
}, null, 8, pe)) : o("", !0),
|
|
408
408
|
c("textarea", {
|
|
409
409
|
ref_key: "textareaRef",
|
|
410
410
|
ref: r,
|
|
@@ -423,17 +423,17 @@ var I = { class: "breadcrumbs" }, L = ["onClick"], R = {
|
|
|
423
423
|
onChange: i[2] ||= (e) => n("change", e),
|
|
424
424
|
onKeydown: i[3] ||= (e) => n("keydown", e),
|
|
425
425
|
onPaste: i[4] ||= (e) => n("paste", e)
|
|
426
|
-
}, null, 40,
|
|
427
|
-
e.showCount ? (y(), s("div",
|
|
426
|
+
}, null, 40, me),
|
|
427
|
+
e.showCount ? (y(), s("div", he, w(u.value), 1)) : o("", !0)
|
|
428
428
|
]));
|
|
429
429
|
}
|
|
430
|
-
}), [["__scopeId", "data-v-03ad19c3"]]),
|
|
430
|
+
}), [["__scopeId", "data-v-03ad19c3"]]), _e = {
|
|
431
431
|
key: 0,
|
|
432
432
|
class: "label"
|
|
433
|
-
},
|
|
433
|
+
}, ve = ["onClick"], ye = ["checked", "disabled"], be = { class: "text" }, xe = ["checked", "disabled"], Se = {
|
|
434
434
|
key: 0,
|
|
435
435
|
class: "text"
|
|
436
|
-
},
|
|
436
|
+
}, U = /* @__PURE__ */ j(/* @__PURE__ */ p({
|
|
437
437
|
__name: "NCheckbox",
|
|
438
438
|
props: {
|
|
439
439
|
modelValue: { default: !1 },
|
|
@@ -490,9 +490,9 @@ var I = { class: "breadcrumbs" }, L = ["onClick"], R = {
|
|
|
490
490
|
let n = [...p.value], i = m(t.formatValue(e));
|
|
491
491
|
u.value ? i ? n = n.filter((n) => n !== t.formatValue(e)) : n.push(t.formatValue(e)) : n = i ? !1 : t.formatValue(e), r("update:modelValue", n), r("change", n), r("change:item", e), r("change:value", n), r("change:values", n);
|
|
492
492
|
};
|
|
493
|
-
return
|
|
493
|
+
return _(() => {
|
|
494
494
|
t.autofocus || a.value?.focus();
|
|
495
|
-
}), (n, r) => (y(), s("div", { class: h(["checkbox", { inline: t.inline }]) }, [t.title ? (y(), s("h3",
|
|
495
|
+
}), (n, r) => (y(), s("div", { class: h(["checkbox", { inline: t.inline }]) }, [t.title ? (y(), s("h3", _e, w(t.title), 1)) : o("", !0), c("div", { class: h(["group", [t.direction]]) }, [l.value ? (y(), s("label", {
|
|
496
496
|
key: 1,
|
|
497
497
|
class: "item",
|
|
498
498
|
onClick: r[0] ||= O((e) => g(), ["prevent"])
|
|
@@ -501,7 +501,7 @@ var I = { class: "breadcrumbs" }, L = ["onClick"], R = {
|
|
|
501
501
|
type: "checkbox",
|
|
502
502
|
checked: !!t.modelValue,
|
|
503
503
|
disabled: t.disabled
|
|
504
|
-
}, null, 8,
|
|
504
|
+
}, null, 8, xe),
|
|
505
505
|
r[2] ||= c("span", { class: "icon" }, [c("svg", {
|
|
506
506
|
xmlns: "http://www.w3.org/2000/svg",
|
|
507
507
|
width: "24",
|
|
@@ -513,7 +513,7 @@ var I = { class: "breadcrumbs" }, L = ["onClick"], R = {
|
|
|
513
513
|
"stroke-linecap": "round",
|
|
514
514
|
"stroke-linejoin": "round"
|
|
515
515
|
}, [c("path", { d: "M20 6 9 17l-5-5" })])], -1),
|
|
516
|
-
n.$slots.default || t.label ? (y(), s("span",
|
|
516
|
+
n.$slots.default || t.label ? (y(), s("span", Se, [C(n.$slots, "default", {}, () => [d(w(t.label), 1)], !0)])) : o("", !0)
|
|
517
517
|
])) : (y(!0), s(e, { key: 0 }, S(t.options, (e, n) => (y(), s("label", {
|
|
518
518
|
key: `${t.formatLabel(e)}${n}`,
|
|
519
519
|
class: "item",
|
|
@@ -523,7 +523,7 @@ var I = { class: "breadcrumbs" }, L = ["onClick"], R = {
|
|
|
523
523
|
type: "checkbox",
|
|
524
524
|
checked: m(t.formatValue(e)),
|
|
525
525
|
disabled: t.disabled
|
|
526
|
-
}, null, 8,
|
|
526
|
+
}, null, 8, ye),
|
|
527
527
|
c("span", { class: h(["icon", { radio: !t.multiple }]) }, [...r[1] ||= [c("svg", {
|
|
528
528
|
xmlns: "http://www.w3.org/2000/svg",
|
|
529
529
|
width: "24",
|
|
@@ -535,16 +535,16 @@ var I = { class: "breadcrumbs" }, L = ["onClick"], R = {
|
|
|
535
535
|
"stroke-linecap": "round",
|
|
536
536
|
"stroke-linejoin": "round"
|
|
537
537
|
}, [c("path", { d: "M20 6 9 17l-5-5" })], -1)]], 2),
|
|
538
|
-
c("span",
|
|
539
|
-
], 8,
|
|
538
|
+
c("span", be, w(t.formatLabel(e)), 1)
|
|
539
|
+
], 8, ve))), 128))], 2)], 2));
|
|
540
540
|
}
|
|
541
|
-
}), [["__scopeId", "data-v-98fff053"]]),
|
|
541
|
+
}), [["__scopeId", "data-v-98fff053"]]), W = { class: "select" }, Ce = {
|
|
542
542
|
key: 0,
|
|
543
543
|
class: "label"
|
|
544
|
-
},
|
|
544
|
+
}, G = { class: "select-chips-container" }, K = ["textContent"], q = ["onClick"], J = {
|
|
545
545
|
key: 0,
|
|
546
546
|
class: "search-box"
|
|
547
|
-
},
|
|
547
|
+
}, Y = { class: "options" }, X = ["onClick"], we = {
|
|
548
548
|
key: 0,
|
|
549
549
|
xmlns: "http://www.w3.org/2000/svg",
|
|
550
550
|
width: "14",
|
|
@@ -555,10 +555,10 @@ var I = { class: "breadcrumbs" }, L = ["onClick"], R = {
|
|
|
555
555
|
"stroke-width": "2.5",
|
|
556
556
|
"stroke-linecap": "round",
|
|
557
557
|
"stroke-linejoin": "round"
|
|
558
|
-
},
|
|
558
|
+
}, Te = {
|
|
559
559
|
key: 0,
|
|
560
560
|
class: "empty"
|
|
561
|
-
},
|
|
561
|
+
}, Ee = 240, De = /* @__PURE__ */ j(/* @__PURE__ */ p({
|
|
562
562
|
__name: "NSelect",
|
|
563
563
|
props: {
|
|
564
564
|
modelValue: { default: () => void 0 },
|
|
@@ -608,7 +608,7 @@ var I = { class: "breadcrumbs" }, L = ["onClick"], R = {
|
|
|
608
608
|
if (!t.disabled && (a.value = !a.value, a.value)) {
|
|
609
609
|
if (await m(), d.value) {
|
|
610
610
|
let e = d.value.getBoundingClientRect();
|
|
611
|
-
u.value = window.innerHeight - e.bottom <
|
|
611
|
+
u.value = window.innerHeight - e.bottom < Ee;
|
|
612
612
|
}
|
|
613
613
|
t.searchable && f.value?.focus();
|
|
614
614
|
}
|
|
@@ -630,16 +630,16 @@ var I = { class: "breadcrumbs" }, L = ["onClick"], R = {
|
|
|
630
630
|
let e = l.value.trim().toLowerCase();
|
|
631
631
|
return e ? t.options.filter((n) => String(t.formatLabel(n)).toLowerCase().includes(e)) : t.options;
|
|
632
632
|
});
|
|
633
|
-
|
|
633
|
+
_(() => {
|
|
634
634
|
document.addEventListener("pointerdown", C);
|
|
635
|
-
}),
|
|
635
|
+
}), ee(() => {
|
|
636
636
|
document.removeEventListener("pointerdown", C);
|
|
637
637
|
});
|
|
638
638
|
let k = i(() => {
|
|
639
639
|
let e = Object.keys(p.value), n = e.length;
|
|
640
640
|
return n === 0 ? "" : t.multiple ? `已選 ${n} 項` : t.formatLabel(p.value[e[0]]) ?? "";
|
|
641
641
|
});
|
|
642
|
-
return (n, r) => (y(), s("div",
|
|
642
|
+
return (n, r) => (y(), s("div", W, [t.title ? (y(), s("label", Ce, w(t.title), 1)) : o("", !0), c("div", {
|
|
643
643
|
ref_key: "selectGroupRef",
|
|
644
644
|
ref: d,
|
|
645
645
|
class: h(["group", {
|
|
@@ -650,11 +650,11 @@ var I = { class: "breadcrumbs" }, L = ["onClick"], R = {
|
|
|
650
650
|
class: h(["trigger", { disabled: t.disabled }]),
|
|
651
651
|
onClick: v
|
|
652
652
|
}, [
|
|
653
|
-
c("div",
|
|
653
|
+
c("div", G, [!g.value || !t.multiple || t.multiple && t.multipleDisplay === "count" ? (y(), s("span", {
|
|
654
654
|
key: 0,
|
|
655
655
|
class: h(["trigger-text", { placeholder: !g.value }]),
|
|
656
656
|
textContent: w(g.value ? k.value : t.placeholder)
|
|
657
|
-
}, null, 10,
|
|
657
|
+
}, null, 10, K)) : o("", !0), t.multiple && t.multipleDisplay === "tags" ? (y(!0), s(e, { key: 1 }, S(p.value, (e, n) => (y(), s("div", {
|
|
658
658
|
key: `${t.formatLabel(e)}${n}`,
|
|
659
659
|
class: "select-chip"
|
|
660
660
|
}, [c("span", null, w(t.formatLabel(e)), 1), c("span", {
|
|
@@ -670,7 +670,7 @@ var I = { class: "breadcrumbs" }, L = ["onClick"], R = {
|
|
|
670
670
|
"stroke-width": "2",
|
|
671
671
|
"stroke-linecap": "round",
|
|
672
672
|
"stroke-linejoin": "round"
|
|
673
|
-
}, [c("path", { d: "M18 6 6 18" }), c("path", { d: "m6 6 12 12" })], -1)]], 8,
|
|
673
|
+
}, [c("path", { d: "M18 6 6 18" }), c("path", { d: "m6 6 12 12" })], -1)]], 8, q)]))), 128)) : o("", !0)]),
|
|
674
674
|
t.clearable && g.value && !t.disabled ? (y(), s("button", {
|
|
675
675
|
key: 0,
|
|
676
676
|
class: "clear-btn",
|
|
@@ -699,7 +699,7 @@ var I = { class: "breadcrumbs" }, L = ["onClick"], R = {
|
|
|
699
699
|
"stroke-linejoin": "round",
|
|
700
700
|
class: "arrow-icon"
|
|
701
701
|
}, [c("path", { d: "m6 10 6 6 6-6" })], -1)
|
|
702
|
-
], 2), c("div", { class: h(["dropdown", { upward: u.value }]) }, [t.searchable ? (y(), s("div",
|
|
702
|
+
], 2), c("div", { class: h(["dropdown", { upward: u.value }]) }, [t.searchable ? (y(), s("div", J, [r[4] ||= c("svg", {
|
|
703
703
|
xmlns: "http://www.w3.org/2000/svg",
|
|
704
704
|
width: "14",
|
|
705
705
|
height: "14",
|
|
@@ -721,23 +721,23 @@ var I = { class: "breadcrumbs" }, L = ["onClick"], R = {
|
|
|
721
721
|
class: "search-input",
|
|
722
722
|
placeholder: "Search...",
|
|
723
723
|
"onUpdate:modelValue": r[0] ||= (e) => l.value = e
|
|
724
|
-
}, null, 512), [[te, l.value]])])) : o("", !0), c("div",
|
|
724
|
+
}, null, 512), [[te, l.value]])])) : o("", !0), c("div", Y, [(y(!0), s(e, null, S(D.value, (e, n) => (y(), s("div", {
|
|
725
725
|
key: `${t.formatLabel(e)}${n}`,
|
|
726
726
|
class: h(["option", { selected: T(t.formatValue(e)) }]),
|
|
727
727
|
onClick: (t) => E(e)
|
|
728
|
-
}, [c("span", null, w(t.formatLabel(e)), 1), T(t.formatValue(e)) ? (y(), s("svg",
|
|
728
|
+
}, [c("span", null, w(t.formatLabel(e)), 1), T(t.formatValue(e)) ? (y(), s("svg", we, [...r[5] ||= [c("path", { d: "M20 6 9 17l-5-5" }, null, -1)]])) : o("", !0)], 10, X))), 128)), D.value.length === 0 ? (y(), s("div", Te, " 無符合選項 ")) : o("", !0)])], 2)], 2)]));
|
|
729
729
|
}
|
|
730
|
-
}), [["__scopeId", "data-v-3c711e0a"]]),
|
|
730
|
+
}), [["__scopeId", "data-v-3c711e0a"]]), Oe = typeof Buffer == "function", ke = typeof TextDecoder == "function" ? new TextDecoder() : void 0, Ae = typeof TextEncoder == "function" ? new TextEncoder() : void 0, je = Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="), Me = ((e) => {
|
|
731
731
|
let t = {};
|
|
732
732
|
return e.forEach((e, n) => t[e] = n), t;
|
|
733
|
-
})(je), Ne = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, Z = String.fromCharCode.bind(String), Pe = typeof Uint8Array.from == "function" ? Uint8Array.from.bind(Uint8Array) : (e) => new Uint8Array(Array.prototype.slice.call(e, 0)), Fe = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (e) => e == "+" ? "-" : "_"), Ie = (e) => e.replace(/[^A-Za-z0-9\+\/]/g, ""), Le = typeof btoa == "function" ? (e) => btoa(e) :
|
|
733
|
+
})(je), Ne = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, Z = String.fromCharCode.bind(String), Pe = typeof Uint8Array.from == "function" ? Uint8Array.from.bind(Uint8Array) : (e) => new Uint8Array(Array.prototype.slice.call(e, 0)), Fe = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (e) => e == "+" ? "-" : "_"), Ie = (e) => e.replace(/[^A-Za-z0-9\+\/]/g, ""), Le = typeof btoa == "function" ? (e) => btoa(e) : Oe ? (e) => Buffer.from(e, "binary").toString("base64") : (e) => {
|
|
734
734
|
let t, n, r, i, a = "", o = e.length % 3;
|
|
735
735
|
for (let o = 0; o < e.length;) {
|
|
736
736
|
if ((n = e.charCodeAt(o++)) > 255 || (r = e.charCodeAt(o++)) > 255 || (i = e.charCodeAt(o++)) > 255) throw TypeError("invalid character found");
|
|
737
737
|
t = n << 16 | r << 8 | i, a += je[t >> 18 & 63] + je[t >> 12 & 63] + je[t >> 6 & 63] + je[t & 63];
|
|
738
738
|
}
|
|
739
739
|
return o ? a.slice(0, o - 3) + "===".substring(o) : a;
|
|
740
|
-
}, Re =
|
|
740
|
+
}, Re = Oe ? (e) => Buffer.from(e).toString("base64") : (e) => {
|
|
741
741
|
let t = 4096, n = [];
|
|
742
742
|
for (let r = 0, i = e.length; r < i; r += t) n.push(Z.apply(null, e.subarray(r, r + t)));
|
|
743
743
|
return Le(n.join(""));
|
|
@@ -749,7 +749,7 @@ var I = { class: "breadcrumbs" }, L = ["onClick"], R = {
|
|
|
749
749
|
var t = 65536 + (e.charCodeAt(0) - 55296) * 1024 + (e.charCodeAt(1) - 56320);
|
|
750
750
|
return Z(240 | t >>> 18 & 7) + Z(128 | t >>> 12 & 63) + Z(128 | t >>> 6 & 63) + Z(128 | t & 63);
|
|
751
751
|
}
|
|
752
|
-
}, Be = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, Ve = (e) => e.replace(Be, ze), He =
|
|
752
|
+
}, Be = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, Ve = (e) => e.replace(Be, ze), He = Oe ? (e) => Buffer.from(e, "utf8").toString("base64") : Ae ? (e) => Re(Ae.encode(e)) : (e) => Le(Ve(e)), Ue = (e, t = !1) => t ? Fe(He(e)) : He(e), We = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g, Ge = (e) => {
|
|
753
753
|
switch (e.length) {
|
|
754
754
|
case 4:
|
|
755
755
|
var t = ((7 & e.charCodeAt(0)) << 18 | (63 & e.charCodeAt(1)) << 12 | (63 & e.charCodeAt(2)) << 6 | 63 & e.charCodeAt(3)) - 65536;
|
|
@@ -757,13 +757,13 @@ var I = { class: "breadcrumbs" }, L = ["onClick"], R = {
|
|
|
757
757
|
case 3: return Z((15 & e.charCodeAt(0)) << 12 | (63 & e.charCodeAt(1)) << 6 | 63 & e.charCodeAt(2));
|
|
758
758
|
default: return Z((31 & e.charCodeAt(0)) << 6 | 63 & e.charCodeAt(1));
|
|
759
759
|
}
|
|
760
|
-
}, Ke = (e) => e.replace(We, Ge), qe = typeof atob == "function" ? (e) => atob(Ie(e)) :
|
|
760
|
+
}, Ke = (e) => e.replace(We, Ge), qe = typeof atob == "function" ? (e) => atob(Ie(e)) : Oe ? (e) => Buffer.from(e, "base64").toString("binary") : (e) => {
|
|
761
761
|
if (e = e.replace(/\s+/g, ""), !Ne.test(e)) throw TypeError("malformed base64.");
|
|
762
762
|
e += "==".slice(2 - (e.length & 3));
|
|
763
763
|
let t, n, r, i = [];
|
|
764
764
|
for (let a = 0; a < e.length;) t = Me[e.charAt(a++)] << 18 | Me[e.charAt(a++)] << 12 | (n = Me[e.charAt(a++)]) << 6 | (r = Me[e.charAt(a++)]), n === 64 ? i.push(Z(t >> 16 & 255)) : r === 64 ? i.push(Z(t >> 16 & 255, t >> 8 & 255)) : i.push(Z(t >> 16 & 255, t >> 8 & 255, t & 255));
|
|
765
765
|
return i.join("");
|
|
766
|
-
}, Je =
|
|
766
|
+
}, Je = Oe ? (e) => Pe(Buffer.from(e, "base64")) : (e) => Pe(qe(e).split("").map((e) => e.charCodeAt(0))), Ye = Oe ? (e) => Buffer.from(e, "base64").toString("utf8") : ke ? (e) => ke.decode(Je(e)) : (e) => Ke(qe(e)), Xe = (e) => Ie(e.replace(/[-_]/g, (e) => e == "-" ? "+" : "/")), Ze = (e) => Ye(Xe(e)), Qe = "N_UTILS_KEY", Q = [], $e = () => {
|
|
767
767
|
let e = Ue(JSON.stringify(Q));
|
|
768
768
|
localStorage.setItem(Qe, e);
|
|
769
769
|
}, et = () => {
|
|
@@ -1460,7 +1460,7 @@ var Rt = { class: "hero-section-container" }, zt = { class: "hero-section" }, Bt
|
|
|
1460
1460
|
description: t.emptyDescription
|
|
1461
1461
|
}, null, 8, ["title", "description"])], !0) : o("", !0)], 2));
|
|
1462
1462
|
}
|
|
1463
|
-
}), [["__scopeId", "data-v-
|
|
1463
|
+
}), [["__scopeId", "data-v-77619033"]]), Ln = { class: "content-container" }, Rn = { key: 0 }, zn = { class: "actions" }, Bn = /* @__PURE__ */ j(/* @__PURE__ */ p({
|
|
1464
1464
|
__name: "NList",
|
|
1465
1465
|
props: {
|
|
1466
1466
|
title: { default: "" },
|
|
@@ -1517,16 +1517,16 @@ var Rt = { class: "hero-section-container" }, zt = { class: "hero-section" }, Bt
|
|
|
1517
1517
|
"sort"
|
|
1518
1518
|
],
|
|
1519
1519
|
setup(e, { emit: t }) {
|
|
1520
|
-
let n = t, r = x(/* @__PURE__ */ new Set()), u = i(() => Array.from(r.value)), p = (e) => r.value.has(e), m = i(() => e.items.length > 0 && e.items.length === r.value.size);
|
|
1520
|
+
let n = t, r = x(/* @__PURE__ */ new Set()), u = i(() => Array.from(r.value)), p = (e) => r.value.has(`${e}`), m = i(() => e.items.length > 0 && e.items.length === r.value.size);
|
|
1521
1521
|
function h(t) {
|
|
1522
|
-
if (!e.batchDeletable) return;
|
|
1523
|
-
let n = t.
|
|
1524
|
-
r.value.has(
|
|
1522
|
+
if (!e.batchDeletable || !["string", "number"].includes(typeof t[e.itemKey])) return;
|
|
1523
|
+
let n = `${t[e.itemKey]}`;
|
|
1524
|
+
r.value.has(n) ? r.value.delete(n) : r.value.add(n);
|
|
1525
1525
|
}
|
|
1526
1526
|
function g() {
|
|
1527
1527
|
e.batchDeletable && (m.value ? e.items.forEach((e) => r.value.delete(e.id)) : e.items.forEach((e) => r.value.add(e.id)), r.value = new Set(r.value));
|
|
1528
1528
|
}
|
|
1529
|
-
function
|
|
1529
|
+
function ee() {
|
|
1530
1530
|
r.value.clear();
|
|
1531
1531
|
}
|
|
1532
1532
|
return (t, r) => (y(), s("div", Ln, [f(Jt, {
|
|
@@ -1583,7 +1583,7 @@ var Rt = { class: "hero-section-container" }, zt = { class: "hero-section" }, Bt
|
|
|
1583
1583
|
variant: "solid",
|
|
1584
1584
|
intent: "error",
|
|
1585
1585
|
disabled: u.value.length == 0,
|
|
1586
|
-
onClick: r[2] ||= (e) => n("batchDelete", u.value,
|
|
1586
|
+
onClick: r[2] ||= (e) => n("batchDelete", u.value, ee)
|
|
1587
1587
|
}, {
|
|
1588
1588
|
default: D(() => [r[10] ||= c("svg", {
|
|
1589
1589
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1644,7 +1644,7 @@ var Rt = { class: "hero-section-container" }, zt = { class: "hero-section" }, Bt
|
|
|
1644
1644
|
}, l({ _: 2 }, [
|
|
1645
1645
|
e.batchDeletable ? {
|
|
1646
1646
|
name: "batch",
|
|
1647
|
-
fn: D(() => [f(
|
|
1647
|
+
fn: D(() => [f(U, {
|
|
1648
1648
|
"model-value": m.value,
|
|
1649
1649
|
"onUpdate:modelValue": r[4] ||= () => g()
|
|
1650
1650
|
}, null, 8, ["model-value"])]),
|
|
@@ -1652,7 +1652,7 @@ var Rt = { class: "hero-section-container" }, zt = { class: "hero-section" }, Bt
|
|
|
1652
1652
|
} : void 0,
|
|
1653
1653
|
t.$slots.item ? {
|
|
1654
1654
|
name: "item",
|
|
1655
|
-
fn: D(({ item: n, column: r, index: i }) => [e.batchDeletable ? (y(), s("td", Rn, [f(
|
|
1655
|
+
fn: D(({ item: n, column: r, index: i }) => [e.batchDeletable ? (y(), s("td", Rn, [f(U, {
|
|
1656
1656
|
onClick: O((e) => h(n), ["stop"]),
|
|
1657
1657
|
"model-value": p(n.id)
|
|
1658
1658
|
}, null, 8, ["onClick", "model-value"])])) : o("", !0), C(t.$slots, "item", {
|
|
@@ -1711,7 +1711,7 @@ var Rt = { class: "hero-section-container" }, zt = { class: "hero-section" }, Bt
|
|
|
1711
1711
|
_: 3
|
|
1712
1712
|
})]));
|
|
1713
1713
|
}
|
|
1714
|
-
}), [["__scopeId", "data-v-
|
|
1714
|
+
}), [["__scopeId", "data-v-ea5113b7"]]), Vn = 0, Hn = b([]);
|
|
1715
1715
|
function Un() {
|
|
1716
1716
|
let e = function(e, n = {}) {
|
|
1717
1717
|
let r = ++Vn, i = n.duration ?? 4e3;
|
|
@@ -2100,24 +2100,24 @@ var Wn = { class: "icon-wrap" }, Gn = ["innerHTML"], Kn = {
|
|
|
2100
2100
|
function P(e) {
|
|
2101
2101
|
return String(e).padStart(2, "0");
|
|
2102
2102
|
}
|
|
2103
|
-
let F = x("date"), I = x(/* @__PURE__ */ new Date()), L = x(null), R = x(0), z = x(0), se = null, ce = null, B = i(() => I.value.getFullYear()),
|
|
2103
|
+
let F = x("date"), I = x(/* @__PURE__ */ new Date()), L = x(null), R = x(0), z = x(0), se = null, ce = null, B = i(() => I.value.getFullYear()), V = i(() => I.value.getMonth()), le = x(Math.floor((/* @__PURE__ */ new Date()).getFullYear() / 12) * 12), H = i(() => {
|
|
2104
2104
|
let e = [];
|
|
2105
|
-
for (let t = 0; t < 12; t++) e.push(
|
|
2105
|
+
for (let t = 0; t < 12; t++) e.push(le.value + t);
|
|
2106
2106
|
return e;
|
|
2107
2107
|
});
|
|
2108
2108
|
ne(B, (e) => {
|
|
2109
|
-
|
|
2109
|
+
le.value = Math.floor(e / 12) * 12;
|
|
2110
2110
|
}, { immediate: !0 }), ne(() => t.modelValue, (e) => {
|
|
2111
2111
|
if (!e) return;
|
|
2112
2112
|
let t = p(String(e));
|
|
2113
2113
|
t && (I.value = new Date(t.year, t.month, 1));
|
|
2114
2114
|
}, { immediate: !0 });
|
|
2115
|
-
let
|
|
2115
|
+
let ue = i(() => j(B.value, V.value)), de = i(() => {
|
|
2116
2116
|
if (!t.modelValue) return "";
|
|
2117
2117
|
let e = p(String(t.modelValue));
|
|
2118
2118
|
return e ? u(e.year, e.month, e.day, e.hour, e.min) : "";
|
|
2119
|
-
}),
|
|
2120
|
-
function
|
|
2119
|
+
}), fe = i(() => t.range ? t.start && t.end ? `${t.start} → ${t.end}` : t.start ? `${t.start} → ...` : "" : de.value);
|
|
2120
|
+
function pe() {
|
|
2121
2121
|
let e = p(String(t.modelValue));
|
|
2122
2122
|
e ? (I.value = new Date(e.year, e.month, 1), R.value = e.hour, z.value = e.min, L.value = v.value ? {
|
|
2123
2123
|
year: e.year,
|
|
@@ -2126,61 +2126,61 @@ var Wn = { class: "icon-wrap" }, Gn = ["innerHTML"], Kn = {
|
|
|
2126
2126
|
isCurrentMonth: !0
|
|
2127
2127
|
} : null) : (R.value = 0, z.value = 0, L.value = null), F.value = "date";
|
|
2128
2128
|
}
|
|
2129
|
-
function
|
|
2129
|
+
function me(e) {
|
|
2130
2130
|
if (!t.modelValue) return !1;
|
|
2131
2131
|
let n = p(String(t.modelValue));
|
|
2132
2132
|
return n ? n.year === e.year && n.month === e.month && n.day === e.day : !1;
|
|
2133
2133
|
}
|
|
2134
|
-
function
|
|
2134
|
+
function he(e) {
|
|
2135
2135
|
return A === e.year && ae === e.month && oe === e.day;
|
|
2136
2136
|
}
|
|
2137
|
-
function
|
|
2138
|
-
return v.value ? L.value !== null && L.value.year === e.year && L.value.month === e.month && L.value.day === e.day :
|
|
2137
|
+
function ge(e) {
|
|
2138
|
+
return v.value ? L.value !== null && L.value.year === e.year && L.value.month === e.month && L.value.day === e.day : me(e);
|
|
2139
2139
|
}
|
|
2140
|
-
function
|
|
2140
|
+
function _e(e) {
|
|
2141
2141
|
let t = u(e.year, e.month, e.day, R.value, z.value);
|
|
2142
2142
|
l("update:modelValue", t), l("change", t);
|
|
2143
2143
|
}
|
|
2144
|
-
function
|
|
2145
|
-
if (v.value) L.value = { ...e }, I.value = new Date(e.year, e.month, 1),
|
|
2144
|
+
function ve(e) {
|
|
2145
|
+
if (v.value) L.value = { ...e }, I.value = new Date(e.year, e.month, 1), _e(e);
|
|
2146
2146
|
else {
|
|
2147
2147
|
let t = u(e.year, e.month, e.day, 0, 0);
|
|
2148
2148
|
l("update:modelValue", t), l("change", t), Ve();
|
|
2149
2149
|
}
|
|
2150
2150
|
}
|
|
2151
|
+
function ye(e) {
|
|
2152
|
+
I.value = new Date(e, V.value, 1), F.value = "date";
|
|
2153
|
+
}
|
|
2151
2154
|
function be(e) {
|
|
2152
|
-
I.value = new Date(
|
|
2155
|
+
I.value = new Date(B.value, V.value + e, 1);
|
|
2153
2156
|
}
|
|
2154
2157
|
function xe(e) {
|
|
2155
|
-
I.value = new Date(B.value
|
|
2156
|
-
}
|
|
2157
|
-
function Se(e) {
|
|
2158
|
-
F.value === "year" ? ue.value += e * 12 : I.value = new Date(B.value + e, le.value, 1);
|
|
2158
|
+
F.value === "year" ? le.value += e * 12 : I.value = new Date(B.value + e, V.value, 1);
|
|
2159
2159
|
}
|
|
2160
|
-
function
|
|
2161
|
-
e === "H" ? R.value = Math.max(0, Math.min(23, R.value + t)) : z.value = Math.max(0, Math.min(59, z.value + t)), L.value &&
|
|
2160
|
+
function Se(e, t) {
|
|
2161
|
+
e === "H" ? R.value = Math.max(0, Math.min(23, R.value + t)) : z.value = Math.max(0, Math.min(59, z.value + t)), L.value && _e(L.value);
|
|
2162
2162
|
}
|
|
2163
|
-
function
|
|
2164
|
-
|
|
2165
|
-
ce = setInterval(() =>
|
|
2163
|
+
function U(e, t) {
|
|
2164
|
+
Se(e, t), se = setTimeout(() => {
|
|
2165
|
+
ce = setInterval(() => Se(e, t), 100);
|
|
2166
2166
|
}, 300);
|
|
2167
2167
|
}
|
|
2168
|
-
function
|
|
2168
|
+
function W() {
|
|
2169
2169
|
se &&= (clearTimeout(se), null), ce &&= (clearInterval(ce), null);
|
|
2170
2170
|
}
|
|
2171
|
-
function
|
|
2171
|
+
function Ce(e, t) {
|
|
2172
2172
|
let n = parseInt(e.target.value);
|
|
2173
|
-
t === "H" ? R.value = n : z.value = n, L.value &&
|
|
2173
|
+
t === "H" ? R.value = n : z.value = n, L.value && _e(L.value);
|
|
2174
2174
|
}
|
|
2175
|
-
let
|
|
2176
|
-
year:
|
|
2177
|
-
month:
|
|
2178
|
-
days:
|
|
2175
|
+
let G = x(A), K = x(ae), q = x(null), J = x(null), Y = x(null), X = x(null), we = i(() => !!J.value && !!Y.value), Te = i(() => K.value === 11 ? G.value + 1 : G.value), Ee = i(() => K.value === 11 ? 0 : K.value + 1), De = i(() => j(G.value, K.value)), Oe = i(() => j(Te.value, Ee.value)), ke = i(() => [{
|
|
2176
|
+
year: G.value,
|
|
2177
|
+
month: K.value,
|
|
2178
|
+
days: De.value,
|
|
2179
2179
|
isLeft: !0
|
|
2180
2180
|
}, {
|
|
2181
|
-
year:
|
|
2182
|
-
month:
|
|
2183
|
-
days:
|
|
2181
|
+
year: Te.value,
|
|
2182
|
+
month: Ee.value,
|
|
2183
|
+
days: Oe.value,
|
|
2184
2184
|
isLeft: !1
|
|
2185
2185
|
}]);
|
|
2186
2186
|
function Ae(e) {
|
|
@@ -2192,22 +2192,22 @@ var Wn = { class: "icon-wrap" }, Gn = ["innerHTML"], Kn = {
|
|
|
2192
2192
|
isCurrentMonth: !0
|
|
2193
2193
|
} : null;
|
|
2194
2194
|
}
|
|
2195
|
-
let je = i(() =>
|
|
2196
|
-
if (K.value) {
|
|
2197
|
-
let e = K.value;
|
|
2198
|
-
return `${e.year}-${P(e.month + 1)}-${P(e.day)}`;
|
|
2199
|
-
}
|
|
2195
|
+
let je = i(() => q.value && X.value ? N(q.value, X.value) <= 0 ? q.value : X.value : J.value ?? Ae(t.start)), Me = i(() => q.value && X.value ? N(q.value, X.value) <= 0 ? X.value : q.value : Y.value ?? Ae(t.end)), Ne = i(() => {
|
|
2200
2196
|
if (q.value) {
|
|
2201
2197
|
let e = q.value;
|
|
2202
2198
|
return `${e.year}-${P(e.month + 1)}-${P(e.day)}`;
|
|
2203
2199
|
}
|
|
2204
|
-
return t.start;
|
|
2205
|
-
}), Z = i(() => {
|
|
2206
|
-
if (K.value) return "";
|
|
2207
2200
|
if (J.value) {
|
|
2208
2201
|
let e = J.value;
|
|
2209
2202
|
return `${e.year}-${P(e.month + 1)}-${P(e.day)}`;
|
|
2210
2203
|
}
|
|
2204
|
+
return t.start;
|
|
2205
|
+
}), Z = i(() => {
|
|
2206
|
+
if (q.value) return "";
|
|
2207
|
+
if (Y.value) {
|
|
2208
|
+
let e = Y.value;
|
|
2209
|
+
return `${e.year}-${P(e.month + 1)}-${P(e.day)}`;
|
|
2210
|
+
}
|
|
2211
2211
|
return t.end;
|
|
2212
2212
|
});
|
|
2213
2213
|
function Pe() {
|
|
@@ -2218,23 +2218,23 @@ var Wn = { class: "icon-wrap" }, Gn = ["innerHTML"], Kn = {
|
|
|
2218
2218
|
hour: 0,
|
|
2219
2219
|
min: 0
|
|
2220
2220
|
};
|
|
2221
|
-
|
|
2221
|
+
G.value = e.year, K.value = e.month, J.value = Ae(t.start), Y.value = Ae(t.end), q.value = null, X.value = null;
|
|
2222
2222
|
}
|
|
2223
2223
|
function Fe() {
|
|
2224
|
-
|
|
2224
|
+
K.value === 0 ? (G.value--, K.value = 11) : K.value--;
|
|
2225
2225
|
}
|
|
2226
2226
|
function Ie() {
|
|
2227
|
-
|
|
2227
|
+
K.value === 11 ? (G.value++, K.value = 0) : K.value++;
|
|
2228
2228
|
}
|
|
2229
2229
|
function Le(e) {
|
|
2230
|
-
if (!
|
|
2230
|
+
if (!q.value) q.value = { ...e }, J.value = null, Y.value = null;
|
|
2231
2231
|
else {
|
|
2232
|
-
let t =
|
|
2233
|
-
|
|
2232
|
+
let t = q.value, [n, r] = N(t, e) <= 0 ? [t, e] : [e, t];
|
|
2233
|
+
J.value = n, Y.value = r, q.value = null, X.value = null;
|
|
2234
2234
|
}
|
|
2235
2235
|
}
|
|
2236
2236
|
function Re(e) {
|
|
2237
|
-
let t = e.year === A && e.month === ae && e.day === oe, n =
|
|
2237
|
+
let t = e.year === A && e.month === ae && e.day === oe, n = q.value && e.year === q.value.year && e.month === q.value.month && e.day === q.value.day, r = je.value, i = Me.value, a = r && e.year === r.year && e.month === r.month && e.day === r.day, o = i && e.year === i.year && e.month === i.month && e.day === i.day, s = r && i && N(e, r) > 0 && N(e, i) < 0;
|
|
2238
2238
|
return {
|
|
2239
2239
|
"is-other-month": !e.isCurrentMonth,
|
|
2240
2240
|
"is-today": t && !a && !o,
|
|
@@ -2245,15 +2245,15 @@ var Wn = { class: "icon-wrap" }, Gn = ["innerHTML"], Kn = {
|
|
|
2245
2245
|
};
|
|
2246
2246
|
}
|
|
2247
2247
|
function ze() {
|
|
2248
|
-
if (!
|
|
2249
|
-
let e =
|
|
2248
|
+
if (!J.value || !Y.value) return;
|
|
2249
|
+
let e = J.value, t = Y.value;
|
|
2250
2250
|
l("update:start", `${e.year}-${P(e.month + 1)}-${P(e.day)}`), l("update:end", `${t.year}-${P(t.month + 1)}-${P(t.day)}`), Ve();
|
|
2251
2251
|
}
|
|
2252
2252
|
function Be() {
|
|
2253
|
-
t.disabled || (b.value || (t.range ? Pe() :
|
|
2253
|
+
t.disabled || (b.value || (t.range ? Pe() : pe()), b.value = !b.value);
|
|
2254
2254
|
}
|
|
2255
2255
|
function Ve() {
|
|
2256
|
-
b.value = !1,
|
|
2256
|
+
b.value = !1, q.value = null, X.value = null;
|
|
2257
2257
|
}
|
|
2258
2258
|
function He() {
|
|
2259
2259
|
F.value = F.value === "date" ? "year" : "date";
|
|
@@ -2262,10 +2262,10 @@ var Wn = { class: "icon-wrap" }, Gn = ["innerHTML"], Kn = {
|
|
|
2262
2262
|
let t = e.target;
|
|
2263
2263
|
C.value?.contains(t) || T.value || Ve();
|
|
2264
2264
|
};
|
|
2265
|
-
|
|
2265
|
+
_(() => {
|
|
2266
2266
|
document.addEventListener("mousedown", Ue), window.addEventListener("resize", te);
|
|
2267
|
-
}),
|
|
2268
|
-
document.removeEventListener("mousedown", Ue), window.removeEventListener("resize", te), E && clearTimeout(E),
|
|
2267
|
+
}), ee(() => {
|
|
2268
|
+
document.removeEventListener("mousedown", Ue), window.removeEventListener("resize", te), E && clearTimeout(E), W();
|
|
2269
2269
|
});
|
|
2270
2270
|
let We = (e) => {
|
|
2271
2271
|
e.stopPropagation(), l("update:modelValue", ""), l("change", ""), l("clear");
|
|
@@ -2282,7 +2282,7 @@ var Wn = { class: "icon-wrap" }, Gn = ["innerHTML"], Kn = {
|
|
|
2282
2282
|
}]) }, [c("div", {
|
|
2283
2283
|
class: "picker-trigger",
|
|
2284
2284
|
onClick: Be
|
|
2285
|
-
}, [c("span", { class: h(["text", { placeholder: !
|
|
2285
|
+
}, [c("span", { class: h(["text", { placeholder: !fe.value }]) }, w(fe.value || t.placeholder), 3), t.clearable && de.value && !t.range ? (y(), a(M, {
|
|
2286
2286
|
key: 0,
|
|
2287
2287
|
variant: "ghost",
|
|
2288
2288
|
square: "",
|
|
@@ -2307,7 +2307,7 @@ var Wn = { class: "icon-wrap" }, Gn = ["innerHTML"], Kn = {
|
|
|
2307
2307
|
c("div", fr, [f(M, {
|
|
2308
2308
|
variant: "ghost",
|
|
2309
2309
|
square: "",
|
|
2310
|
-
onClick: i[0] ||= (e) =>
|
|
2310
|
+
onClick: i[0] ||= (e) => xe(-1)
|
|
2311
2311
|
}, {
|
|
2312
2312
|
default: D(() => [...i[21] ||= [c("svg", {
|
|
2313
2313
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2325,7 +2325,7 @@ var Wn = { class: "icon-wrap" }, Gn = ["innerHTML"], Kn = {
|
|
|
2325
2325
|
key: 0,
|
|
2326
2326
|
variant: "ghost",
|
|
2327
2327
|
square: "",
|
|
2328
|
-
onClick: i[1] ||= (e) =>
|
|
2328
|
+
onClick: i[1] ||= (e) => be(-1)
|
|
2329
2329
|
}, {
|
|
2330
2330
|
default: D(() => [...i[22] ||= [c("svg", {
|
|
2331
2331
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2343,12 +2343,12 @@ var Wn = { class: "icon-wrap" }, Gn = ["innerHTML"], Kn = {
|
|
|
2343
2343
|
c("div", {
|
|
2344
2344
|
class: "header-title",
|
|
2345
2345
|
onClick: He
|
|
2346
|
-
}, [F.value === "date" ? (y(), s(e, { key: 0 }, [d(w(re[
|
|
2346
|
+
}, [F.value === "date" ? (y(), s(e, { key: 0 }, [d(w(re[V.value]) + " " + w(B.value), 1)], 64)) : (y(), s(e, { key: 1 }, [d(w(H.value[0]) + " - " + w(H.value[H.value.length - 1]), 1)], 64))]),
|
|
2347
2347
|
c("div", pr, [F.value === "date" ? (y(), a(M, {
|
|
2348
2348
|
key: 0,
|
|
2349
2349
|
variant: "ghost",
|
|
2350
2350
|
square: "",
|
|
2351
|
-
onClick: i[2] ||= (e) =>
|
|
2351
|
+
onClick: i[2] ||= (e) => be(1)
|
|
2352
2352
|
}, {
|
|
2353
2353
|
default: D(() => [...i[23] ||= [c("svg", {
|
|
2354
2354
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2365,7 +2365,7 @@ var Wn = { class: "icon-wrap" }, Gn = ["innerHTML"], Kn = {
|
|
|
2365
2365
|
})) : o("", !0), f(M, {
|
|
2366
2366
|
variant: "ghost",
|
|
2367
2367
|
square: "",
|
|
2368
|
-
onClick: i[3] ||= (e) =>
|
|
2368
|
+
onClick: i[3] ||= (e) => xe(1)
|
|
2369
2369
|
}, {
|
|
2370
2370
|
default: D(() => [...i[24] ||= [c("svg", {
|
|
2371
2371
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2384,13 +2384,13 @@ var Wn = { class: "icon-wrap" }, Gn = ["innerHTML"], Kn = {
|
|
|
2384
2384
|
c("div", mr, [F.value === "date" ? (y(), s(e, { key: 0 }, [c("div", hr, [(y(), s(e, null, S(k, (e) => c("span", {
|
|
2385
2385
|
key: e,
|
|
2386
2386
|
class: "weekday"
|
|
2387
|
-
}, w(e), 1)), 64))]), c("div", gr, [(y(!0), s(e, null, S(
|
|
2387
|
+
}, w(e), 1)), 64))]), c("div", gr, [(y(!0), s(e, null, S(ue.value, (e, t) => (y(), a(M, {
|
|
2388
2388
|
key: t,
|
|
2389
|
-
variant:
|
|
2390
|
-
intent:
|
|
2389
|
+
variant: ge(e) ? "solid" : he(e) ? "mute" : "ghost",
|
|
2390
|
+
intent: ge(e) || he(e) ? "primary" : "none",
|
|
2391
2391
|
class: h(["day-cell", { "is-not-current": !e.isCurrentMonth }]),
|
|
2392
2392
|
padding: "0",
|
|
2393
|
-
onClick: (t) =>
|
|
2393
|
+
onClick: (t) => ve(e)
|
|
2394
2394
|
}, {
|
|
2395
2395
|
default: D(() => [d(w(e.day), 1)]),
|
|
2396
2396
|
_: 2
|
|
@@ -2399,12 +2399,12 @@ var Wn = { class: "icon-wrap" }, Gn = ["innerHTML"], Kn = {
|
|
|
2399
2399
|
"intent",
|
|
2400
2400
|
"class",
|
|
2401
2401
|
"onClick"
|
|
2402
|
-
]))), 128))])], 64)) : (y(), s("div", _r, [(y(!0), s(e, null, S(
|
|
2402
|
+
]))), 128))])], 64)) : (y(), s("div", _r, [(y(!0), s(e, null, S(H.value, (e) => (y(), a(M, {
|
|
2403
2403
|
key: e,
|
|
2404
2404
|
variant: e === B.value ? "solid" : "ghost",
|
|
2405
2405
|
intent: e === B.value ? "primary" : "none",
|
|
2406
2406
|
class: "year-cell",
|
|
2407
|
-
onClick: (t) =>
|
|
2407
|
+
onClick: (t) => ye(e)
|
|
2408
2408
|
}, {
|
|
2409
2409
|
default: D(() => [d(w(e), 1)]),
|
|
2410
2410
|
_: 2
|
|
@@ -2420,9 +2420,9 @@ var Wn = { class: "icon-wrap" }, Gn = ["innerHTML"], Kn = {
|
|
|
2420
2420
|
square: "",
|
|
2421
2421
|
size: "sm",
|
|
2422
2422
|
class: "time-step",
|
|
2423
|
-
onMousedown: i[4] ||= O((e) =>
|
|
2424
|
-
onMouseup:
|
|
2425
|
-
onMouseleave:
|
|
2423
|
+
onMousedown: i[4] ||= O((e) => U("H", -1), ["prevent"]),
|
|
2424
|
+
onMouseup: W,
|
|
2425
|
+
onMouseleave: W
|
|
2426
2426
|
}, {
|
|
2427
2427
|
default: D(() => [...i[25] ||= [c("svg", {
|
|
2428
2428
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2443,16 +2443,16 @@ var Wn = { class: "icon-wrap" }, Gn = ["innerHTML"], Kn = {
|
|
|
2443
2443
|
min: "0",
|
|
2444
2444
|
max: "23",
|
|
2445
2445
|
value: R.value,
|
|
2446
|
-
onInput: i[5] ||= (e) =>
|
|
2446
|
+
onInput: i[5] ||= (e) => Ce(e, "H")
|
|
2447
2447
|
}, null, 40, xr),
|
|
2448
2448
|
f(M, {
|
|
2449
2449
|
variant: "ghost",
|
|
2450
2450
|
square: "",
|
|
2451
2451
|
size: "sm",
|
|
2452
2452
|
class: "time-step",
|
|
2453
|
-
onMousedown: i[6] ||= O((e) =>
|
|
2454
|
-
onMouseup:
|
|
2455
|
-
onMouseleave:
|
|
2453
|
+
onMousedown: i[6] ||= O((e) => U("H", 1), ["prevent"]),
|
|
2454
|
+
onMouseup: W,
|
|
2455
|
+
onMouseleave: W
|
|
2456
2456
|
}, {
|
|
2457
2457
|
default: D(() => [...i[26] ||= [c("svg", {
|
|
2458
2458
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2475,9 +2475,9 @@ var Wn = { class: "icon-wrap" }, Gn = ["innerHTML"], Kn = {
|
|
|
2475
2475
|
square: "",
|
|
2476
2476
|
size: "sm",
|
|
2477
2477
|
class: "time-step",
|
|
2478
|
-
onMousedown: i[7] ||= O((e) =>
|
|
2479
|
-
onMouseup:
|
|
2480
|
-
onMouseleave:
|
|
2478
|
+
onMousedown: i[7] ||= O((e) => U("m", -1), ["prevent"]),
|
|
2479
|
+
onMouseup: W,
|
|
2480
|
+
onMouseleave: W
|
|
2481
2481
|
}, {
|
|
2482
2482
|
default: D(() => [...i[28] ||= [c("svg", {
|
|
2483
2483
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2498,16 +2498,16 @@ var Wn = { class: "icon-wrap" }, Gn = ["innerHTML"], Kn = {
|
|
|
2498
2498
|
min: "0",
|
|
2499
2499
|
max: "59",
|
|
2500
2500
|
value: z.value,
|
|
2501
|
-
onInput: i[8] ||= (e) =>
|
|
2501
|
+
onInput: i[8] ||= (e) => Ce(e, "m")
|
|
2502
2502
|
}, null, 40, wr),
|
|
2503
2503
|
f(M, {
|
|
2504
2504
|
variant: "ghost",
|
|
2505
2505
|
square: "",
|
|
2506
2506
|
size: "sm",
|
|
2507
2507
|
class: "time-step",
|
|
2508
|
-
onMousedown: i[9] ||= O((e) =>
|
|
2509
|
-
onMouseup:
|
|
2510
|
-
onMouseleave:
|
|
2508
|
+
onMousedown: i[9] ||= O((e) => U("m", 1), ["prevent"]),
|
|
2509
|
+
onMouseup: W,
|
|
2510
|
+
onMouseleave: W
|
|
2511
2511
|
}, {
|
|
2512
2512
|
default: D(() => [...i[29] ||= [c("svg", {
|
|
2513
2513
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2538,7 +2538,7 @@ var Wn = { class: "icon-wrap" }, Gn = ["innerHTML"], Kn = {
|
|
|
2538
2538
|
c("div", Or, [f(M, {
|
|
2539
2539
|
variant: "ghost",
|
|
2540
2540
|
square: "",
|
|
2541
|
-
onClick: i[10] ||= (e) =>
|
|
2541
|
+
onClick: i[10] ||= (e) => xe(-1)
|
|
2542
2542
|
}, {
|
|
2543
2543
|
default: D(() => [...i[31] ||= [c("svg", {
|
|
2544
2544
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2556,7 +2556,7 @@ var Wn = { class: "icon-wrap" }, Gn = ["innerHTML"], Kn = {
|
|
|
2556
2556
|
key: 0,
|
|
2557
2557
|
variant: "ghost",
|
|
2558
2558
|
square: "",
|
|
2559
|
-
onClick: i[11] ||= (e) =>
|
|
2559
|
+
onClick: i[11] ||= (e) => be(-1)
|
|
2560
2560
|
}, {
|
|
2561
2561
|
default: D(() => [...i[32] ||= [c("svg", {
|
|
2562
2562
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2574,12 +2574,12 @@ var Wn = { class: "icon-wrap" }, Gn = ["innerHTML"], Kn = {
|
|
|
2574
2574
|
c("div", {
|
|
2575
2575
|
class: "header-title",
|
|
2576
2576
|
onClick: He
|
|
2577
|
-
}, [F.value === "date" ? (y(), s(e, { key: 0 }, [d(w(re[
|
|
2577
|
+
}, [F.value === "date" ? (y(), s(e, { key: 0 }, [d(w(re[V.value]) + " " + w(B.value), 1)], 64)) : (y(), s(e, { key: 1 }, [d(w(H.value[0]) + " - " + w(H.value[H.value.length - 1]), 1)], 64))]),
|
|
2578
2578
|
c("div", kr, [F.value === "date" ? (y(), a(M, {
|
|
2579
2579
|
key: 0,
|
|
2580
2580
|
variant: "ghost",
|
|
2581
2581
|
square: "",
|
|
2582
|
-
onClick: i[12] ||= (e) =>
|
|
2582
|
+
onClick: i[12] ||= (e) => be(1)
|
|
2583
2583
|
}, {
|
|
2584
2584
|
default: D(() => [...i[33] ||= [c("svg", {
|
|
2585
2585
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2596,7 +2596,7 @@ var Wn = { class: "icon-wrap" }, Gn = ["innerHTML"], Kn = {
|
|
|
2596
2596
|
})) : o("", !0), f(M, {
|
|
2597
2597
|
variant: "ghost",
|
|
2598
2598
|
square: "",
|
|
2599
|
-
onClick: i[13] ||= (e) =>
|
|
2599
|
+
onClick: i[13] ||= (e) => xe(1)
|
|
2600
2600
|
}, {
|
|
2601
2601
|
default: D(() => [...i[34] ||= [c("svg", {
|
|
2602
2602
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2615,13 +2615,13 @@ var Wn = { class: "icon-wrap" }, Gn = ["innerHTML"], Kn = {
|
|
|
2615
2615
|
c("div", Ar, [F.value === "date" ? (y(), s(e, { key: 0 }, [c("div", jr, [(y(), s(e, null, S(k, (e) => c("span", {
|
|
2616
2616
|
key: e,
|
|
2617
2617
|
class: "weekday"
|
|
2618
|
-
}, w(e), 1)), 64))]), c("div", Mr, [(y(!0), s(e, null, S(
|
|
2618
|
+
}, w(e), 1)), 64))]), c("div", Mr, [(y(!0), s(e, null, S(ue.value, (e, t) => (y(), a(M, {
|
|
2619
2619
|
key: t,
|
|
2620
|
-
variant:
|
|
2621
|
-
intent:
|
|
2620
|
+
variant: ge(e) ? "solid" : he(e) ? "mute" : "ghost",
|
|
2621
|
+
intent: ge(e) || he(e) ? "primary" : "none",
|
|
2622
2622
|
class: h(["day-cell", { "is-not-current": !e.isCurrentMonth }]),
|
|
2623
2623
|
padding: "0",
|
|
2624
|
-
onClick: (t) =>
|
|
2624
|
+
onClick: (t) => ve(e)
|
|
2625
2625
|
}, {
|
|
2626
2626
|
default: D(() => [d(w(e.day), 1)]),
|
|
2627
2627
|
_: 2
|
|
@@ -2630,12 +2630,12 @@ var Wn = { class: "icon-wrap" }, Gn = ["innerHTML"], Kn = {
|
|
|
2630
2630
|
"intent",
|
|
2631
2631
|
"class",
|
|
2632
2632
|
"onClick"
|
|
2633
|
-
]))), 128))])], 64)) : (y(), s("div", Nr, [(y(!0), s(e, null, S(
|
|
2633
|
+
]))), 128))])], 64)) : (y(), s("div", Nr, [(y(!0), s(e, null, S(H.value, (e) => (y(), a(M, {
|
|
2634
2634
|
key: e,
|
|
2635
2635
|
variant: e === B.value ? "solid" : "ghost",
|
|
2636
2636
|
intent: e === B.value ? "primary" : "none",
|
|
2637
2637
|
class: "year-cell",
|
|
2638
|
-
onClick: (t) =>
|
|
2638
|
+
onClick: (t) => ye(e)
|
|
2639
2639
|
}, {
|
|
2640
2640
|
default: D(() => [d(w(e), 1)]),
|
|
2641
2641
|
_: 2
|
|
@@ -2651,9 +2651,9 @@ var Wn = { class: "icon-wrap" }, Gn = ["innerHTML"], Kn = {
|
|
|
2651
2651
|
square: "",
|
|
2652
2652
|
size: "sm",
|
|
2653
2653
|
class: "time-step",
|
|
2654
|
-
onMousedown: i[14] ||= O((e) =>
|
|
2655
|
-
onMouseup:
|
|
2656
|
-
onMouseleave:
|
|
2654
|
+
onMousedown: i[14] ||= O((e) => U("H", -1), ["prevent"]),
|
|
2655
|
+
onMouseup: W,
|
|
2656
|
+
onMouseleave: W
|
|
2657
2657
|
}, {
|
|
2658
2658
|
default: D(() => [...i[35] ||= [c("svg", {
|
|
2659
2659
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2674,16 +2674,16 @@ var Wn = { class: "icon-wrap" }, Gn = ["innerHTML"], Kn = {
|
|
|
2674
2674
|
min: "0",
|
|
2675
2675
|
max: "23",
|
|
2676
2676
|
value: R.value,
|
|
2677
|
-
onInput: i[15] ||= (e) =>
|
|
2677
|
+
onInput: i[15] ||= (e) => Ce(e, "H")
|
|
2678
2678
|
}, null, 40, Lr),
|
|
2679
2679
|
f(M, {
|
|
2680
2680
|
variant: "ghost",
|
|
2681
2681
|
square: "",
|
|
2682
2682
|
size: "sm",
|
|
2683
2683
|
class: "time-step",
|
|
2684
|
-
onMousedown: i[16] ||= O((e) =>
|
|
2685
|
-
onMouseup:
|
|
2686
|
-
onMouseleave:
|
|
2684
|
+
onMousedown: i[16] ||= O((e) => U("H", 1), ["prevent"]),
|
|
2685
|
+
onMouseup: W,
|
|
2686
|
+
onMouseleave: W
|
|
2687
2687
|
}, {
|
|
2688
2688
|
default: D(() => [...i[36] ||= [c("svg", {
|
|
2689
2689
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2706,9 +2706,9 @@ var Wn = { class: "icon-wrap" }, Gn = ["innerHTML"], Kn = {
|
|
|
2706
2706
|
square: "",
|
|
2707
2707
|
size: "sm",
|
|
2708
2708
|
class: "time-step",
|
|
2709
|
-
onMousedown: i[17] ||= O((e) =>
|
|
2710
|
-
onMouseup:
|
|
2711
|
-
onMouseleave:
|
|
2709
|
+
onMousedown: i[17] ||= O((e) => U("m", -1), ["prevent"]),
|
|
2710
|
+
onMouseup: W,
|
|
2711
|
+
onMouseleave: W
|
|
2712
2712
|
}, {
|
|
2713
2713
|
default: D(() => [...i[38] ||= [c("svg", {
|
|
2714
2714
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2729,16 +2729,16 @@ var Wn = { class: "icon-wrap" }, Gn = ["innerHTML"], Kn = {
|
|
|
2729
2729
|
min: "0",
|
|
2730
2730
|
max: "59",
|
|
2731
2731
|
value: z.value,
|
|
2732
|
-
onInput: i[18] ||= (e) =>
|
|
2732
|
+
onInput: i[18] ||= (e) => Ce(e, "m")
|
|
2733
2733
|
}, null, 40, Br),
|
|
2734
2734
|
f(M, {
|
|
2735
2735
|
variant: "ghost",
|
|
2736
2736
|
square: "",
|
|
2737
2737
|
size: "sm",
|
|
2738
2738
|
class: "time-step",
|
|
2739
|
-
onMousedown: i[19] ||= O((e) =>
|
|
2740
|
-
onMouseup:
|
|
2741
|
-
onMouseleave:
|
|
2739
|
+
onMousedown: i[19] ||= O((e) => U("m", 1), ["prevent"]),
|
|
2740
|
+
onMouseup: W,
|
|
2741
|
+
onMouseleave: W
|
|
2742
2742
|
}, {
|
|
2743
2743
|
default: D(() => [...i[39] ||= [c("svg", {
|
|
2744
2744
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2815,7 +2815,7 @@ var Wn = { class: "icon-wrap" }, Gn = ["innerHTML"], Kn = {
|
|
|
2815
2815
|
key: t,
|
|
2816
2816
|
class: h(["range-day", Re(e)]),
|
|
2817
2817
|
onClick: (t) => Le(e),
|
|
2818
|
-
onMouseenter: (t) =>
|
|
2818
|
+
onMouseenter: (t) => X.value = e
|
|
2819
2819
|
}, w(e.day), 43, ei))), 128))])
|
|
2820
2820
|
])], 64))), 128))]),
|
|
2821
2821
|
c("div", ti, [c("div", ni, [
|
|
@@ -2826,7 +2826,7 @@ var Wn = { class: "icon-wrap" }, Gn = ["innerHTML"], Kn = {
|
|
|
2826
2826
|
variant: "solid",
|
|
2827
2827
|
intent: "primary",
|
|
2828
2828
|
class: "confirm-btn",
|
|
2829
|
-
disabled: !
|
|
2829
|
+
disabled: !we.value,
|
|
2830
2830
|
onClick: O(ze, ["stop"])
|
|
2831
2831
|
}, {
|
|
2832
2832
|
default: D(() => [...i[45] ||= [d("確認", -1)]]),
|
|
@@ -2862,7 +2862,7 @@ var Wn = { class: "icon-wrap" }, Gn = ["innerHTML"], Kn = {
|
|
|
2862
2862
|
}, [c("path", { d: "m15 18-6-6 6-6" })], -1)]]),
|
|
2863
2863
|
_: 1
|
|
2864
2864
|
})]),
|
|
2865
|
-
c("div", oi, w(re[
|
|
2865
|
+
c("div", oi, w(re[K.value]) + " " + w(G.value), 1),
|
|
2866
2866
|
c("div", si, [f(M, {
|
|
2867
2867
|
variant: "ghost",
|
|
2868
2868
|
square: "",
|
|
@@ -2886,7 +2886,7 @@ var Wn = { class: "icon-wrap" }, Gn = ["innerHTML"], Kn = {
|
|
|
2886
2886
|
key: e,
|
|
2887
2887
|
class: "weekday"
|
|
2888
2888
|
}, w(e), 1)), 64))]),
|
|
2889
|
-
c("div", li, [(y(!0), s(e, null, S(
|
|
2889
|
+
c("div", li, [(y(!0), s(e, null, S(De.value, (e, t) => (y(), s("div", {
|
|
2890
2890
|
key: t,
|
|
2891
2891
|
class: h(["range-day", Re(e)]),
|
|
2892
2892
|
onClick: (t) => Le(e)
|
|
@@ -2899,7 +2899,7 @@ var Wn = { class: "icon-wrap" }, Gn = ["innerHTML"], Kn = {
|
|
|
2899
2899
|
variant: "solid",
|
|
2900
2900
|
intent: "primary",
|
|
2901
2901
|
class: "confirm-btn",
|
|
2902
|
-
disabled: !
|
|
2902
|
+
disabled: !we.value,
|
|
2903
2903
|
onClick: O(ze, ["stop"])
|
|
2904
2904
|
}, {
|
|
2905
2905
|
default: D(() => [...i[50] ||= [d("確認", -1)]]),
|
|
@@ -3173,7 +3173,7 @@ var Oi = { class: "cards-wrapper" }, ki = ["innerHTML"], Ai = { class: "card-bod
|
|
|
3173
3173
|
let t = r[r.length - 1];
|
|
3174
3174
|
t && (e.key === "Enter" ? (e.preventDefault(), f(t)) : e.key === "Escape" && (e.preventDefault(), t.type === "confirm" ? p(t) : f(t)));
|
|
3175
3175
|
}
|
|
3176
|
-
return
|
|
3176
|
+
return _(() => document.addEventListener("keydown", m)), v(() => {
|
|
3177
3177
|
document.removeEventListener("keydown", m), i();
|
|
3178
3178
|
}), (n, i) => (y(), a(t, { to: "body" }, [c("div", { class: h(["backdrop", { open: T(r).length > 0 }]) }, null, 2), c("div", { class: h(["alert-stack", { open: T(r).length > 0 }]) }, [c("div", Oi, [(y(!0), s(e, null, S(T(r), (e, t) => (y(), s("div", {
|
|
3179
3179
|
key: e.id,
|
|
@@ -3195,13 +3195,13 @@ var Oi = { class: "cards-wrapper" }, ki = ["innerHTML"], Ai = { class: "card-bod
|
|
|
3195
3195
|
}, w(e.confirmText), 11, Fi)])
|
|
3196
3196
|
], 6))), 128))])], 2)]));
|
|
3197
3197
|
}
|
|
3198
|
-
}), [["__scopeId", "data-v-20105bbb"]]), Li = { class: "nav" }, Ri = ["onClick"], zi = ["innerHTML"], Bi = { class: "nav-list" }, Vi = ["href", "onClick"], Hi = ["innerHTML"], Ui = { class: "nav-text" }, Wi = { class: "user-capsule" },
|
|
3198
|
+
}), [["__scopeId", "data-v-20105bbb"]]), Li = { class: "nav" }, Ri = ["onClick"], zi = ["innerHTML"], Bi = { class: "nav-list" }, Vi = ["href", "onClick"], Hi = ["innerHTML"], Ui = { class: "nav-text" }, Wi = ["href", "onClick"], Gi = { class: "title no-children" }, Ki = ["innerHTML"], qi = { class: "user-capsule" }, Ji = { class: "user-avatar" }, Yi = ["src"], Xi = {
|
|
3199
3199
|
key: 1,
|
|
3200
3200
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3201
3201
|
width: "36",
|
|
3202
3202
|
height: "36",
|
|
3203
3203
|
viewBox: "0 0 36 36"
|
|
3204
|
-
},
|
|
3204
|
+
}, Zi = { class: "user-info" }, Qi = { class: "user-name-row" }, $i = { class: "user-name" }, ea = /* @__PURE__ */ j(/* @__PURE__ */ p({
|
|
3205
3205
|
__name: "NSidebar",
|
|
3206
3206
|
props: {
|
|
3207
3207
|
isOpen: {
|
|
@@ -3221,6 +3221,12 @@ var Oi = { class: "cards-wrapper" }, ki = ["innerHTML"], Ai = { class: "card-bod
|
|
|
3221
3221
|
setup(n, { emit: r }) {
|
|
3222
3222
|
let { isMenuExpanded: i, toggleMenu: o, resolveMenuActive: l, resolveItemActive: d } = Lt(), p = x(!1), m = r, g = (e) => {
|
|
3223
3223
|
n.currentPath !== e.route && m("navigate", e);
|
|
3224
|
+
}, ee = (e) => {
|
|
3225
|
+
!e.route || n.currentPath === e.route || m("navigate", {
|
|
3226
|
+
icon: e.icon,
|
|
3227
|
+
title: e.title,
|
|
3228
|
+
route: e.route
|
|
3229
|
+
});
|
|
3224
3230
|
};
|
|
3225
3231
|
return (r, _) => (y(), s("nav", {
|
|
3226
3232
|
class: h(["sidebar", {
|
|
@@ -3248,10 +3254,13 @@ var Oi = { class: "cards-wrapper" }, ki = ["innerHTML"], Ai = { class: "card-bod
|
|
|
3248
3254
|
onMouseenter: _[2] ||= (e) => p.value = !0
|
|
3249
3255
|
}, [
|
|
3250
3256
|
_[9] ||= c("div", { class: "header" }, [c("div", { class: "brand-logo" }, [c("span", { class: "logo-text" }, "NICKLABS"), c("span", { class: "logo-icon" }, "N")])], -1),
|
|
3251
|
-
c("div", Li, [(y(!0), s(e, null, S(n.menus, (t) => (y(), s(
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3257
|
+
c("div", Li, [(y(!0), s(e, null, S(n.menus, (t) => (y(), s(e, null, [t.children?.length ? (y(), s("div", {
|
|
3258
|
+
key: 0,
|
|
3259
|
+
class: h(["menu", {
|
|
3260
|
+
open: T(i)(t.title),
|
|
3261
|
+
active: T(l)(t, n.currentPath)
|
|
3262
|
+
}])
|
|
3263
|
+
}, [c("div", {
|
|
3255
3264
|
class: "title",
|
|
3256
3265
|
onClick: (e) => T(o)(t.title)
|
|
3257
3266
|
}, [c("div", null, [c("div", { innerHTML: t.icon }, null, 8, zi), c("span", null, w(t.title), 1)]), _[6] ||= c("svg", {
|
|
@@ -3268,14 +3277,20 @@ var Oi = { class: "cards-wrapper" }, ki = ["innerHTML"], Ai = { class: "card-bod
|
|
|
3268
3277
|
}, [c("path", { d: "m9 18 6-6-6-6" })], -1)], 8, Ri), c("div", Bi, [c("div", null, [(y(!0), s(e, null, S(t.children, (e) => (y(), s("a", {
|
|
3269
3278
|
href: e.route,
|
|
3270
3279
|
onClick: O((t) => g(e), ["prevent"])
|
|
3271
|
-
}, [c("div", { class: h(["nav-item", { active: T(d)(e, n.currentPath) }]) }, [c("div", { innerHTML: e.icon }, null, 8, Hi), c("span", Ui, w(e.title), 1)], 2)], 8, Vi))), 256))])])], 2))),
|
|
3272
|
-
|
|
3273
|
-
|
|
3280
|
+
}, [c("div", { class: h(["nav-item", { active: T(d)(e, n.currentPath) }]) }, [c("div", { innerHTML: e.icon }, null, 8, Hi), c("span", Ui, w(e.title), 1)], 2)], 8, Vi))), 256))])])], 2)) : (y(), s("div", {
|
|
3281
|
+
key: 1,
|
|
3282
|
+
class: h(["menu", { active: t.route === n.currentPath }])
|
|
3283
|
+
}, [c("a", {
|
|
3284
|
+
href: t.route,
|
|
3285
|
+
onClick: O((e) => ee(t), ["prevent"])
|
|
3286
|
+
}, [c("div", Gi, [c("div", null, [c("div", { innerHTML: t.icon }, null, 8, Ki), c("span", null, w(t.title), 1)])])], 8, Wi)], 2))], 64))), 256))]),
|
|
3287
|
+
c("div", qi, [C(r.$slots, "user", {}, () => [
|
|
3288
|
+
c("div", Ji, [n.userAvatarUrl ? (y(), s("img", {
|
|
3274
3289
|
key: 0,
|
|
3275
3290
|
src: n.userAvatarUrl,
|
|
3276
3291
|
alt: "User Avatar"
|
|
3277
|
-
}, null, 8,
|
|
3278
|
-
c("div",
|
|
3292
|
+
}, null, 8, Yi)) : (y(), s("svg", Xi, [..._[7] ||= [u("<defs data-v-c84404ab><clipPath id=\"avatarClip\" data-v-c84404ab><circle cx=\"18\" cy=\"18\" r=\"18\" data-v-c84404ab></circle></clipPath></defs><circle cx=\"18\" cy=\"18\" r=\"18\" fill=\"#dbeafe\" data-v-c84404ab></circle><g clip-path=\"url(#avatarClip)\" data-v-c84404ab><circle cx=\"18\" cy=\"14\" r=\"6\" fill=\"#2563eb\" data-v-c84404ab></circle><path d=\"M6,34 Q6,24 18,24 Q30,24 30,34\" fill=\"#2563eb\" data-v-c84404ab></path></g>", 3)]]))]),
|
|
3293
|
+
c("div", Zi, [c("div", Qi, [c("span", $i, w(n.userName || "ADMINISTRATOR"), 1)])]),
|
|
3279
3294
|
f(M, {
|
|
3280
3295
|
class: "logout-btn",
|
|
3281
3296
|
intent: "error",
|
|
@@ -3314,7 +3329,7 @@ var Oi = { class: "cards-wrapper" }, ki = ["innerHTML"], Ai = { class: "card-bod
|
|
|
3314
3329
|
}, null, 2)]))
|
|
3315
3330
|
], 34));
|
|
3316
3331
|
}
|
|
3317
|
-
}), [["__scopeId", "data-v-
|
|
3332
|
+
}), [["__scopeId", "data-v-c84404ab"]]), ta = { class: "layout" }, na = { class: "main-content" }, ra = { class: "copyright" }, ia = /* @__PURE__ */ j(/* @__PURE__ */ p({
|
|
3318
3333
|
__name: "NLayout",
|
|
3319
3334
|
props: {
|
|
3320
3335
|
isShowSidebar: {
|
|
@@ -3328,7 +3343,7 @@ var Oi = { class: "cards-wrapper" }, ki = ["innerHTML"], Ai = { class: "card-bod
|
|
|
3328
3343
|
emits: ["logout", "navigate"],
|
|
3329
3344
|
setup(e, { emit: t }) {
|
|
3330
3345
|
let n = Lt(), r = t;
|
|
3331
|
-
return (t, i) => (y(), s("div",
|
|
3346
|
+
return (t, i) => (y(), s("div", ta, [e.isShowSidebar ? (y(), a(ea, {
|
|
3332
3347
|
key: 0,
|
|
3333
3348
|
isOpen: T(n).isSidebarExpanded(),
|
|
3334
3349
|
"onUpdate:isOpen": i[0] ||= (e) => T(n).toggleSidebar(),
|
|
@@ -3340,18 +3355,18 @@ var Oi = { class: "cards-wrapper" }, ki = ["innerHTML"], Ai = { class: "card-bod
|
|
|
3340
3355
|
"isOpen",
|
|
3341
3356
|
"menus",
|
|
3342
3357
|
"currentPath"
|
|
3343
|
-
])) : o("", !0), c("main",
|
|
3358
|
+
])) : o("", !0), c("main", na, [C(t.$slots, "default", {}, void 0, !0), c("div", ra, w(e.copyright), 1)])]));
|
|
3344
3359
|
}
|
|
3345
|
-
}), [["__scopeId", "data-v-42c0ab8b"]]),
|
|
3360
|
+
}), [["__scopeId", "data-v-42c0ab8b"]]), aa = { class: "topbar" }, oa = { class: "topbar-left" }, sa = { class: "topbar-right" }, ca = {
|
|
3346
3361
|
key: 0,
|
|
3347
3362
|
class: "pill"
|
|
3348
|
-
},
|
|
3363
|
+
}, la = {
|
|
3349
3364
|
key: 0,
|
|
3350
3365
|
class: "name"
|
|
3351
|
-
},
|
|
3366
|
+
}, ua = {
|
|
3352
3367
|
key: 1,
|
|
3353
3368
|
class: "separator"
|
|
3354
|
-
},
|
|
3369
|
+
}, da = /* @__PURE__ */ j(/* @__PURE__ */ p({
|
|
3355
3370
|
__name: "NNavigation",
|
|
3356
3371
|
props: {
|
|
3357
3372
|
isShowSidebar: {
|
|
@@ -3376,7 +3391,7 @@ var Oi = { class: "cards-wrapper" }, ki = ["innerHTML"], Ai = { class: "card-bod
|
|
|
3376
3391
|
let n = t, r = () => {
|
|
3377
3392
|
document.fullscreenElement ? document.exitFullscreen?.() : document.documentElement.requestFullscreen();
|
|
3378
3393
|
};
|
|
3379
|
-
return (t, i) => (y(), s("header",
|
|
3394
|
+
return (t, i) => (y(), s("header", aa, [c("div", oa, [e.isShowSidebar ? (y(), a(M, {
|
|
3380
3395
|
key: 0,
|
|
3381
3396
|
onClick: i[0] ||= (e) => n("toggleSidebar"),
|
|
3382
3397
|
padding: "8px"
|
|
@@ -3419,9 +3434,9 @@ var Oi = { class: "cards-wrapper" }, ki = ["innerHTML"], Ai = { class: "card-bod
|
|
|
3419
3434
|
c("path", { d: "M16 21h3a2 2 0 0 0 2-2v-3" })
|
|
3420
3435
|
], -1)]]),
|
|
3421
3436
|
_: 1
|
|
3422
|
-
})) : o("", !0)]), c("div",
|
|
3423
|
-
e.isShowUser ? (y(), s("span",
|
|
3424
|
-
e.isShowUser && e.isShowLogoutButton ? (y(), s("div",
|
|
3437
|
+
})) : o("", !0)]), c("div", sa, [e.isShowUser || e.isShowLogoutButton ? (y(), s("div", ca, [
|
|
3438
|
+
e.isShowUser ? (y(), s("span", la, "Nick")) : o("", !0),
|
|
3439
|
+
e.isShowUser && e.isShowLogoutButton ? (y(), s("div", ua)) : o("", !0),
|
|
3425
3440
|
e.isShowLogoutButton ? (y(), a(M, {
|
|
3426
3441
|
key: 2,
|
|
3427
3442
|
variant: "mute",
|
|
@@ -3447,10 +3462,10 @@ var Oi = { class: "cards-wrapper" }, ki = ["innerHTML"], Ai = { class: "card-bod
|
|
|
3447
3462
|
})) : o("", !0)
|
|
3448
3463
|
])) : o("", !0)])]));
|
|
3449
3464
|
}
|
|
3450
|
-
}), [["__scopeId", "data-v-f38a4beb"]]),
|
|
3465
|
+
}), [["__scopeId", "data-v-f38a4beb"]]), fa = { class: "brand" }, pa = ["src", "alt"], ma = {
|
|
3451
3466
|
key: 1,
|
|
3452
3467
|
class: "icon"
|
|
3453
|
-
},
|
|
3468
|
+
}, ha = { key: 2 }, ga = { key: 3 }, _a = /* @__PURE__ */ j(/* @__PURE__ */ p({
|
|
3454
3469
|
__name: "NLoginLayout",
|
|
3455
3470
|
props: {
|
|
3456
3471
|
backgroundImage: { default: "" },
|
|
@@ -3468,15 +3483,15 @@ var Oi = { class: "cards-wrapper" }, ki = ["innerHTML"], Ai = { class: "card-bod
|
|
|
3468
3483
|
radius: "xl",
|
|
3469
3484
|
class: "card"
|
|
3470
3485
|
}, {
|
|
3471
|
-
default: D(() => [c("div",
|
|
3486
|
+
default: D(() => [c("div", fa, [
|
|
3472
3487
|
t.value ? (y(), s("img", {
|
|
3473
3488
|
key: 0,
|
|
3474
3489
|
class: "logo-img",
|
|
3475
3490
|
src: e.logo,
|
|
3476
3491
|
alt: e.title
|
|
3477
|
-
}, null, 8,
|
|
3478
|
-
e.title ? (y(), s("h1",
|
|
3479
|
-
e.description ? (y(), s("p",
|
|
3492
|
+
}, null, 8, pa)) : (y(), s("div", ma, w(e.logo), 1)),
|
|
3493
|
+
e.title ? (y(), s("h1", ha, w(e.title), 1)) : o("", !0),
|
|
3494
|
+
e.description ? (y(), s("p", ga, w(e.description), 1)) : o("", !0)
|
|
3480
3495
|
]), C(n.$slots, "default", {}, void 0, !0)]),
|
|
3481
3496
|
_: 3
|
|
3482
3497
|
})], 4));
|
|
@@ -3484,7 +3499,7 @@ var Oi = { class: "cards-wrapper" }, ki = ["innerHTML"], Ai = { class: "card-bod
|
|
|
3484
3499
|
}), [["__scopeId", "data-v-f0866bc5"]]);
|
|
3485
3500
|
//#endregion
|
|
3486
3501
|
//#region src/composables/useRouteModal.ts
|
|
3487
|
-
function
|
|
3502
|
+
function va(e) {
|
|
3488
3503
|
let t = i(() => {
|
|
3489
3504
|
let t = A();
|
|
3490
3505
|
return t ? t.currentRoute.value.matched.some((t) => t.name === e.routeName) : !1;
|
|
@@ -3508,7 +3523,7 @@ function ha(e) {
|
|
|
3508
3523
|
}
|
|
3509
3524
|
//#endregion
|
|
3510
3525
|
//#region src/composables/useDisclosure.ts
|
|
3511
|
-
function
|
|
3526
|
+
function ya() {
|
|
3512
3527
|
let e = x(!1);
|
|
3513
3528
|
function t() {
|
|
3514
3529
|
e.value = !0;
|
|
@@ -3524,13 +3539,13 @@ function ga() {
|
|
|
3524
3539
|
}
|
|
3525
3540
|
//#endregion
|
|
3526
3541
|
//#region src/index.ts
|
|
3527
|
-
var
|
|
3542
|
+
var ba = {
|
|
3528
3543
|
NButton: M,
|
|
3529
3544
|
NBreadcrumb: z,
|
|
3530
|
-
NInput:
|
|
3531
|
-
NTextarea:
|
|
3532
|
-
NCheckbox:
|
|
3533
|
-
NSelect:
|
|
3545
|
+
NInput: de,
|
|
3546
|
+
NTextarea: ge,
|
|
3547
|
+
NCheckbox: U,
|
|
3548
|
+
NSelect: De,
|
|
3534
3549
|
NFileSelect: Nt,
|
|
3535
3550
|
NForm: en,
|
|
3536
3551
|
NList: Bn,
|
|
@@ -3546,15 +3561,15 @@ var _a = {
|
|
|
3546
3561
|
NDrawer: wi,
|
|
3547
3562
|
NAlert: Ii,
|
|
3548
3563
|
NTable: In,
|
|
3549
|
-
NLayout:
|
|
3550
|
-
NNavigation:
|
|
3551
|
-
NSidebar:
|
|
3564
|
+
NLayout: ia,
|
|
3565
|
+
NNavigation: da,
|
|
3566
|
+
NSidebar: ea,
|
|
3552
3567
|
NCard: tn,
|
|
3553
|
-
NLoginLayout:
|
|
3554
|
-
},
|
|
3555
|
-
Object.entries(
|
|
3568
|
+
NLoginLayout: _a
|
|
3569
|
+
}, xa = { install(e, t = {}) {
|
|
3570
|
+
Object.entries(ba).forEach(([t, n]) => {
|
|
3556
3571
|
e.component(t, n);
|
|
3557
3572
|
}), t.router && ie(t.router);
|
|
3558
3573
|
} };
|
|
3559
3574
|
//#endregion
|
|
3560
|
-
export { Ii as NAlert, M as NButton, tn as NCard,
|
|
3575
|
+
export { Ii as NAlert, M as NButton, tn as NCard, U as NCheckbox, ar as NCode, pi as NDatePicker, wi as NDrawer, fn as NEmpty, Nt as NFileSelect, en as NForm, de as NInput, ia as NLayout, Bn as NList, Cn as NLoading, _a as NLoginLayout, yi as NModal, da as NNavigation, De as NSelect, ea as NSidebar, sr as NSwitch, In as NTable, cr as NTag, ge as NTextarea, Xn as NToast, mi as NTooltip, xa as NickLabsUI, Di as useAlert, F as useBreadcrumb, ya as useDisclosure, va as useRouteModal, Lt as useSidebarManager, Un as useToast };
|