nicklabs-ui 1.0.1 → 1.0.3
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 +251 -291
- package/dist/nicklabs-ui.css +1 -1
- package/dist/reset.css +40 -0
- package/dist/src/components/NAlert.vue.d.ts +3 -0
- package/dist/src/components/NButton.vue.d.ts +25 -0
- package/dist/src/components/NCheckbox.vue.d.ts +35 -0
- package/dist/src/components/NCode.vue.d.ts +8 -0
- package/dist/src/components/NDatePicker.vue.d.ts +26 -0
- package/dist/src/components/NEmpty.vue.d.ts +19 -0
- package/dist/src/components/NFileSelect.vue.d.ts +18 -0
- package/dist/src/components/NForm.vue.d.ts +30 -0
- package/dist/src/components/NInput.vue.d.ts +32 -0
- package/dist/src/components/NList.vue.d.ts +71 -0
- package/dist/src/components/NLoading.vue.d.ts +21 -0
- package/dist/src/components/NModal.vue.d.ts +31 -0
- package/dist/src/components/NSelect.vue.d.ts +26 -0
- package/dist/src/components/NSwitch.vue.d.ts +20 -0
- package/dist/src/components/NTable.vue.d.ts +54 -0
- package/dist/src/components/NTag.vue.d.ts +24 -0
- package/dist/src/components/NTextarea.vue.d.ts +32 -0
- package/dist/src/components/NToast.vue.d.ts +3 -0
- package/dist/src/components/NTooltip.vue.d.ts +20 -0
- package/dist/src/composables/useAlert.d.ts +12 -0
- package/dist/src/composables/useDisclosure.d.ts +1 -0
- package/dist/src/composables/useSidebarManager.d.ts +6 -0
- package/dist/src/composables/useToast.d.ts +11 -0
- package/dist/src/index.d.ts +28 -0
- package/dist/src/layouts/NBreadcrumb.vue.d.ts +5 -0
- package/dist/src/layouts/NCard.vue.d.ts +17 -0
- package/dist/src/layouts/NHeroSection.vue.d.ts +17 -0
- package/dist/src/layouts/NLayout.vue.d.ts +38 -0
- package/dist/src/layouts/NLoginLayout.vue.d.ts +19 -0
- package/dist/src/layouts/NNavigation.vue.d.ts +15 -0
- package/dist/src/layouts/NPaginate.vue.d.ts +12 -0
- package/dist/src/layouts/NSideFilter.vue.d.ts +13 -0
- package/dist/src/layouts/NSidebar.vue.d.ts +13 -0
- package/dist/variables.css +103 -0
- package/package.json +13 -4
package/dist/index.mjs
CHANGED
|
@@ -835,71 +835,7 @@ var ae = ["type", "disabled"], oe = /* @__PURE__ */ p({
|
|
|
835
835
|
}, _t = () => {
|
|
836
836
|
let e = navigator.userAgent;
|
|
837
837
|
return !!/(tablet|ipad|playbook|silk)|(android(?!.*mobi))/i.test(e);
|
|
838
|
-
},
|
|
839
|
-
isMobile: gt,
|
|
840
|
-
isTablet: _t,
|
|
841
|
-
isDesktop: () => gt() == 0 && _t() == 0
|
|
842
|
-
}, yt = { getCalendarByDate: (e) => {
|
|
843
|
-
e.setDate(1);
|
|
844
|
-
let t = {
|
|
845
|
-
year: e.getFullYear(),
|
|
846
|
-
month: e.getRealMonth(),
|
|
847
|
-
days: []
|
|
848
|
-
};
|
|
849
|
-
for (let n = 0; n < e.daysInMonth(); n++) {
|
|
850
|
-
let r = e.addDays(n);
|
|
851
|
-
t.days.push({
|
|
852
|
-
day: r.getDate(),
|
|
853
|
-
week: r.getDay() == 0 ? 7 : r.getDay()
|
|
854
|
-
});
|
|
855
|
-
}
|
|
856
|
-
return t;
|
|
857
|
-
} }, bt = { debounce: (() => {
|
|
858
|
-
let e = -1;
|
|
859
|
-
return (t, n = 50) => {
|
|
860
|
-
e > 0 && window.clearTimeout(e), e = window.setTimeout(t, n);
|
|
861
|
-
};
|
|
862
|
-
})() };
|
|
863
|
-
Array.prototype.clear = function() {
|
|
864
|
-
this.length = 0;
|
|
865
|
-
}, Array.prototype.first = function() {
|
|
866
|
-
return this.length > 0 ? this[0] : !1;
|
|
867
|
-
}, Array.prototype.last = function() {
|
|
868
|
-
return this.length > 0 ? this[this.length - 1] : !1;
|
|
869
|
-
}, Date.prototype.isValid = function() {
|
|
870
|
-
return this.getTime() === this.getTime();
|
|
871
|
-
}, Date.prototype.getRealMonth = function() {
|
|
872
|
-
return this.getMonth() + 1;
|
|
873
|
-
}, Date.prototype.getFullMonth = function() {
|
|
874
|
-
return (this.getMonth() + 1).toString().padStart(2, "0");
|
|
875
|
-
}, Date.prototype.getFullDate = function() {
|
|
876
|
-
return this.getDate().toString().padStart(2, "0");
|
|
877
|
-
}, Date.prototype.daysInMonth = function() {
|
|
878
|
-
return new Date(this.getFullYear(), this.getMonth() + 1, 0).getDate();
|
|
879
|
-
}, Date.prototype.addYears = function(e = 1) {
|
|
880
|
-
let t = new Date(this.valueOf());
|
|
881
|
-
return t.setMonth(t.getMonth() + e * 12), t;
|
|
882
|
-
}, Date.prototype.minusYears = function(e = 1) {
|
|
883
|
-
let t = new Date(this.valueOf());
|
|
884
|
-
return t.setMonth(t.getMonth() - e * 12), t;
|
|
885
|
-
}, Date.prototype.addMonths = function(e = 1) {
|
|
886
|
-
let t = new Date(this.valueOf());
|
|
887
|
-
return t.setMonth(t.getMonth() + e), t;
|
|
888
|
-
}, Date.prototype.minusMonths = function(e = 1) {
|
|
889
|
-
let t = new Date(this.valueOf());
|
|
890
|
-
return t.setMonth(t.getMonth() - e), t;
|
|
891
|
-
}, Date.prototype.addDays = function(e = 1) {
|
|
892
|
-
let t = new Date(this.valueOf());
|
|
893
|
-
return t.setDate(t.getDate() + e), t;
|
|
894
|
-
}, Date.prototype.minusDays = function(e = 1) {
|
|
895
|
-
let t = new Date(this.valueOf());
|
|
896
|
-
return t.setDate(t.getDate() - e), t;
|
|
897
|
-
}, FileList.prototype.toArray = function() {
|
|
898
|
-
let e = [];
|
|
899
|
-
for (let t = 0; t < this.length; t++) e.push(this.item(t));
|
|
900
|
-
return e;
|
|
901
|
-
};
|
|
902
|
-
var $ = {
|
|
838
|
+
}, $ = {
|
|
903
839
|
store: Qe,
|
|
904
840
|
screen: $e,
|
|
905
841
|
str: et,
|
|
@@ -907,10 +843,34 @@ var $ = {
|
|
|
907
843
|
file: st,
|
|
908
844
|
link: ct,
|
|
909
845
|
image: ht,
|
|
910
|
-
device:
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
846
|
+
device: {
|
|
847
|
+
isMobile: gt,
|
|
848
|
+
isTablet: _t,
|
|
849
|
+
isDesktop: () => gt() == 0 && _t() == 0
|
|
850
|
+
},
|
|
851
|
+
date: { getCalendarByDate: (e) => {
|
|
852
|
+
e.setDate(1);
|
|
853
|
+
let t = {
|
|
854
|
+
year: e.getFullYear(),
|
|
855
|
+
month: e.getRealMonth(),
|
|
856
|
+
days: []
|
|
857
|
+
};
|
|
858
|
+
for (let n = 0; n < e.daysInMonth(); n++) {
|
|
859
|
+
let r = e.addDays(n);
|
|
860
|
+
t.days.push({
|
|
861
|
+
day: r.getDate(),
|
|
862
|
+
week: r.getDay() == 0 ? 7 : r.getDay()
|
|
863
|
+
});
|
|
864
|
+
}
|
|
865
|
+
return t;
|
|
866
|
+
} },
|
|
867
|
+
tool: { debounce: (() => {
|
|
868
|
+
let e = -1;
|
|
869
|
+
return (t, n = 50) => {
|
|
870
|
+
e > 0 && window.clearTimeout(e), e = window.setTimeout(t, n);
|
|
871
|
+
};
|
|
872
|
+
})() }
|
|
873
|
+
}, vt = { class: "file-select" }, yt = ["textContent"], bt = ["aria-disabled"], xt = { class: "inner" }, St = { class: "text" }, Ct = ["textContent"], wt = ["textContent"], Tt = /* @__PURE__ */ A(/* @__PURE__ */ p({
|
|
914
874
|
__name: "NFileSelect",
|
|
915
875
|
props: {
|
|
916
876
|
multiple: {
|
|
@@ -937,11 +897,11 @@ var $ = {
|
|
|
937
897
|
console.log(e);
|
|
938
898
|
}
|
|
939
899
|
};
|
|
940
|
-
return (t, n) => (b(), s("div",
|
|
900
|
+
return (t, n) => (b(), s("div", vt, [e.title ? (b(), s("div", {
|
|
941
901
|
key: 0,
|
|
942
902
|
class: "title",
|
|
943
903
|
textContent: T(e.title)
|
|
944
|
-
}, null, 8,
|
|
904
|
+
}, null, 8, yt)) : o("", !0), c("div", {
|
|
945
905
|
class: g(["select", {
|
|
946
906
|
multiple: e.multiple,
|
|
947
907
|
disabled: e.disabled
|
|
@@ -949,7 +909,7 @@ var $ = {
|
|
|
949
909
|
tabindex: "0",
|
|
950
910
|
"aria-disabled": e.disabled ? "true" : void 0,
|
|
951
911
|
onClick: r
|
|
952
|
-
}, [c("div",
|
|
912
|
+
}, [c("div", xt, [n[0] ||= c("span", {
|
|
953
913
|
class: "icon",
|
|
954
914
|
"aria-hidden": "true"
|
|
955
915
|
}, [c("svg", {
|
|
@@ -962,67 +922,67 @@ var $ = {
|
|
|
962
922
|
"stroke-linejoin": "round",
|
|
963
923
|
"stroke-width": "2",
|
|
964
924
|
d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"
|
|
965
|
-
})])], -1), c("div",
|
|
925
|
+
})])], -1), c("div", St, [c("p", {
|
|
966
926
|
class: "label",
|
|
967
927
|
textContent: T(e.label)
|
|
968
|
-
}, null, 8,
|
|
928
|
+
}, null, 8, Ct), c("p", {
|
|
969
929
|
class: "hint",
|
|
970
930
|
textContent: T(e.hint)
|
|
971
|
-
}, null, 8,
|
|
931
|
+
}, null, 8, wt)])])], 10, bt)]));
|
|
972
932
|
}
|
|
973
933
|
}), [["__scopeId", "data-v-0fd41b7d"]]);
|
|
974
934
|
Array.isArray;
|
|
975
|
-
var
|
|
935
|
+
var Et = /* @__PURE__ */ function(e) {
|
|
976
936
|
return e[e.MATCHER_NOT_FOUND = 1] = "MATCHER_NOT_FOUND", e[e.NAVIGATION_GUARD_REDIRECT = 2] = "NAVIGATION_GUARD_REDIRECT", e[e.NAVIGATION_ABORTED = 4] = "NAVIGATION_ABORTED", e[e.NAVIGATION_CANCELLED = 8] = "NAVIGATION_CANCELLED", e[e.NAVIGATION_DUPLICATED = 16] = "NAVIGATION_DUPLICATED", e;
|
|
977
937
|
}({});
|
|
978
|
-
Symbol(process.env.NODE_ENV === "production" ? "" : "navigation failure"),
|
|
979
|
-
var
|
|
938
|
+
Symbol(process.env.NODE_ENV === "production" ? "" : "navigation failure"), Et.MATCHER_NOT_FOUND, Et.NAVIGATION_GUARD_REDIRECT, Et.NAVIGATION_ABORTED, Et.NAVIGATION_CANCELLED, Et.NAVIGATION_DUPLICATED, Symbol(process.env.NODE_ENV === "production" ? "" : "router view location matched"), Symbol(process.env.NODE_ENV === "production" ? "" : "router view depth");
|
|
939
|
+
var Dt = Symbol(process.env.NODE_ENV === "production" ? "" : "router"), Ot = Symbol(process.env.NODE_ENV === "production" ? "" : "route location");
|
|
980
940
|
Symbol(process.env.NODE_ENV === "production" ? "" : "router view location");
|
|
981
|
-
function
|
|
982
|
-
return m(
|
|
941
|
+
function kt() {
|
|
942
|
+
return m(Dt);
|
|
983
943
|
}
|
|
984
|
-
function
|
|
985
|
-
return m(
|
|
944
|
+
function At(e) {
|
|
945
|
+
return m(Ot);
|
|
986
946
|
}
|
|
987
947
|
//#endregion
|
|
988
948
|
//#region src/layouts/NBreadcrumb.vue?vue&type=script&setup=true&lang.ts
|
|
989
|
-
var
|
|
949
|
+
var jt = { class: "breadcrumbs" }, Mt = /* @__PURE__ */ A(/* @__PURE__ */ p({
|
|
990
950
|
__name: "NBreadcrumb",
|
|
991
951
|
setup(e) {
|
|
992
|
-
return (e, t) => (b(), s("nav",
|
|
952
|
+
return (e, t) => (b(), s("nav", jt, [...t[0] ||= [
|
|
993
953
|
c("span", null, "Home", -1),
|
|
994
954
|
c("span", null, "Admin", -1),
|
|
995
955
|
c("span", { class: "active" }, "Functions", -1)
|
|
996
956
|
]]));
|
|
997
957
|
}
|
|
998
|
-
}), [["__scopeId", "data-v-c06b466b"]]),
|
|
999
|
-
function
|
|
958
|
+
}), [["__scopeId", "data-v-c06b466b"]]), Nt = S(!1);
|
|
959
|
+
function Pt(e = "default") {
|
|
1000
960
|
let t = `NSidebar:${e}:expanded`, n = x($.store.get(t, {}));
|
|
1001
|
-
|
|
961
|
+
Nt.value = $.store.get("NSidebar:expanded", !1);
|
|
1002
962
|
let r = (e) => !!n[e];
|
|
1003
963
|
return {
|
|
1004
964
|
isMenuExpanded: r,
|
|
1005
965
|
toggleMenu: (e) => {
|
|
1006
966
|
n[e] = !r(e), $.store.set(t, n);
|
|
1007
967
|
},
|
|
1008
|
-
isSidebarExpanded: () =>
|
|
968
|
+
isSidebarExpanded: () => Nt.value,
|
|
1009
969
|
toggleSidebar: () => {
|
|
1010
|
-
|
|
970
|
+
Nt.value = !Nt.value, $.store.set("NSidebar:expanded", Nt.value);
|
|
1011
971
|
}
|
|
1012
972
|
};
|
|
1013
973
|
}
|
|
1014
974
|
//#endregion
|
|
1015
975
|
//#region src/layouts/NHeroSection.vue?vue&type=script&setup=true&lang.ts
|
|
1016
|
-
var
|
|
976
|
+
var Ft = { class: "hero-section" }, It = { class: "header" }, Lt = ["innerHTML"], Rt = { class: "body" }, zt = { class: "title-section" }, Bt = { class: "title" }, Vt = { key: 0 }, Ht = { class: "toolbar" }, Ut = /* @__PURE__ */ A(/* @__PURE__ */ p({
|
|
1017
977
|
__name: "NHeroSection",
|
|
1018
978
|
props: {
|
|
1019
979
|
icon: { default: "" },
|
|
1020
980
|
title: { default: "" }
|
|
1021
981
|
},
|
|
1022
982
|
setup(e) {
|
|
1023
|
-
let t =
|
|
1024
|
-
return (n, r) => (b(), s("div",
|
|
1025
|
-
c("div",
|
|
983
|
+
let t = Pt();
|
|
984
|
+
return (n, r) => (b(), s("div", Ft, [
|
|
985
|
+
c("div", It, [f(j, {
|
|
1026
986
|
class: "sidebar-toggle-button",
|
|
1027
987
|
padding: "8px",
|
|
1028
988
|
intent: "none",
|
|
@@ -1045,19 +1005,19 @@ var Rt = { class: "hero-section" }, zt = { class: "header" }, Bt = ["innerHTML"]
|
|
|
1045
1005
|
c("path", { d: "M4 19h16" })
|
|
1046
1006
|
], -1)]]),
|
|
1047
1007
|
_: 1
|
|
1048
|
-
}), f(
|
|
1008
|
+
}), f(Mt)]),
|
|
1049
1009
|
e.icon ? (b(), s("div", {
|
|
1050
1010
|
key: 0,
|
|
1051
1011
|
class: "icon-bg",
|
|
1052
1012
|
innerHTML: e.icon
|
|
1053
|
-
}, null, 8,
|
|
1054
|
-
c("div",
|
|
1013
|
+
}, null, 8, Lt)) : o("", !0),
|
|
1014
|
+
c("div", Rt, [c("div", zt, [c("div", Bt, [e.title ? (b(), s("h1", Vt, T(e.title), 1)) : o("", !0)])]), c("div", Ht, [w(n.$slots, "default", {}, void 0, !0)])])
|
|
1055
1015
|
]));
|
|
1056
1016
|
}
|
|
1057
|
-
}), [["__scopeId", "data-v-38ca441b"]]),
|
|
1017
|
+
}), [["__scopeId", "data-v-38ca441b"]]), Wt = { class: "content-container" }, Gt = {
|
|
1058
1018
|
key: 0,
|
|
1059
1019
|
class: "nav-tabs"
|
|
1060
|
-
},
|
|
1020
|
+
}, Kt = ["textContent", "onClick"], qt = { class: "tab-content" }, Jt = { class: "footer" }, Yt = /* @__PURE__ */ A(/* @__PURE__ */ p({
|
|
1061
1021
|
__name: "NForm",
|
|
1062
1022
|
props: {
|
|
1063
1023
|
model: { default: () => ({}) },
|
|
@@ -1071,37 +1031,37 @@ var Rt = { class: "hero-section" }, zt = { class: "header" }, Bt = ["innerHTML"]
|
|
|
1071
1031
|
},
|
|
1072
1032
|
emits: ["submit", "reset"],
|
|
1073
1033
|
setup(t, { emit: n }) {
|
|
1074
|
-
let r = n, i = `NForm:${
|
|
1034
|
+
let r = n, i = `NForm:${At().path}:tab`, a = S(t.tabs.length > 0 ? $.store.get(i, 0) : 0), l = () => {
|
|
1075
1035
|
t.disabled || r("submit", t.model);
|
|
1076
1036
|
}, u = () => {
|
|
1077
1037
|
t.disabled || r("reset");
|
|
1078
1038
|
};
|
|
1079
|
-
return (n, r) => (b(), s("div",
|
|
1039
|
+
return (n, r) => (b(), s("div", Wt, [f(Ut, {
|
|
1080
1040
|
icon: t.icon,
|
|
1081
1041
|
title: t.title
|
|
1082
1042
|
}, null, 8, ["icon", "title"]), c("form", {
|
|
1083
1043
|
onSubmit: k(l, ["prevent"]),
|
|
1084
1044
|
onReset: k(u, ["prevent"])
|
|
1085
1045
|
}, [
|
|
1086
|
-
t.tabs.length > 0 ? (b(), s("div",
|
|
1046
|
+
t.tabs.length > 0 ? (b(), s("div", Gt, [(b(!0), s(e, null, C(t.tabs, (e, t) => (b(), s("button", {
|
|
1087
1047
|
key: `${e}${t}`,
|
|
1088
1048
|
class: g(["nav-link", { active: a.value === t }]),
|
|
1089
1049
|
textContent: T(e),
|
|
1090
1050
|
onClick: () => {
|
|
1091
1051
|
a.value = t, E($).store.set(i, t);
|
|
1092
1052
|
}
|
|
1093
|
-
}, null, 10,
|
|
1094
|
-
c("div",
|
|
1095
|
-
c("div",
|
|
1053
|
+
}, null, 10, Kt))), 128))])) : o("", !0),
|
|
1054
|
+
c("div", qt, [t.tabs.length > 0 ? (b(!0), s(e, { key: 0 }, C(t.tabs, (t, r) => (b(), s(e, null, [a.value === r ? w(n.$slots, `tab${r}`, { key: 0 }, void 0, !0) : o("", !0)], 64))), 256)) : o("", !0), t.tabs.length == 0 && n.$slots.tab0 ? w(n.$slots, "tab0", { key: 1 }, void 0, !0) : o("", !0)]),
|
|
1055
|
+
c("div", Jt, [w(n.$slots, "footer", {}, void 0, !0)])
|
|
1096
1056
|
], 32)]));
|
|
1097
1057
|
}
|
|
1098
|
-
}), [["__scopeId", "data-v-ca2ceba7"]]),
|
|
1058
|
+
}), [["__scopeId", "data-v-ca2ceba7"]]), Xt = ["innerHTML"], Zt = { class: "title" }, Qt = {
|
|
1099
1059
|
key: 1,
|
|
1100
1060
|
class: "description"
|
|
1101
|
-
},
|
|
1061
|
+
}, $t = {
|
|
1102
1062
|
key: 2,
|
|
1103
1063
|
class: "action"
|
|
1104
|
-
},
|
|
1064
|
+
}, en = /* @__PURE__ */ A(/* @__PURE__ */ p({
|
|
1105
1065
|
__name: "NEmpty",
|
|
1106
1066
|
props: {
|
|
1107
1067
|
title: { default: "目前沒有資料" },
|
|
@@ -1115,13 +1075,13 @@ var Rt = { class: "hero-section" }, zt = { class: "header" }, Bt = ["innerHTML"]
|
|
|
1115
1075
|
key: 0,
|
|
1116
1076
|
class: "icon",
|
|
1117
1077
|
innerHTML: e.icon
|
|
1118
|
-
}, null, 8,
|
|
1119
|
-
c("p",
|
|
1120
|
-
e.description ? (b(), s("p",
|
|
1121
|
-
t.$slots.default ? (b(), s("div",
|
|
1078
|
+
}, null, 8, Xt)) : o("", !0),
|
|
1079
|
+
c("p", Zt, T(e.title), 1),
|
|
1080
|
+
e.description ? (b(), s("p", Qt, T(e.description), 1)) : o("", !0),
|
|
1081
|
+
t.$slots.default ? (b(), s("div", $t, [w(t.$slots, "default", {}, void 0, !0)])) : o("", !0)
|
|
1122
1082
|
], 2));
|
|
1123
1083
|
}
|
|
1124
|
-
}), [["__scopeId", "data-v-b806fad9"]]),
|
|
1084
|
+
}), [["__scopeId", "data-v-b806fad9"]]), tn = /* @__PURE__ */ A(/* @__PURE__ */ p({
|
|
1125
1085
|
__name: "NCard",
|
|
1126
1086
|
props: {
|
|
1127
1087
|
size: { default: "md" },
|
|
@@ -1133,13 +1093,13 @@ var Rt = { class: "hero-section" }, zt = { class: "header" }, Bt = ["innerHTML"]
|
|
|
1133
1093
|
[`radius-${e.radius}`]: !0
|
|
1134
1094
|
}]) }, [w(t.$slots, "default", {}, void 0, !0)], 2));
|
|
1135
1095
|
}
|
|
1136
|
-
}), [["__scopeId", "data-v-2f12383f"]]),
|
|
1096
|
+
}), [["__scopeId", "data-v-2f12383f"]]), nn = {
|
|
1137
1097
|
key: 0,
|
|
1138
1098
|
class: "paginate"
|
|
1139
|
-
},
|
|
1099
|
+
}, rn = { class: "summary" }, an = { class: "pages" }, on = {
|
|
1140
1100
|
key: 1,
|
|
1141
1101
|
class: "separator"
|
|
1142
|
-
},
|
|
1102
|
+
}, sn = /* @__PURE__ */ A(/* @__PURE__ */ p({
|
|
1143
1103
|
__name: "NPaginate",
|
|
1144
1104
|
props: {
|
|
1145
1105
|
totalItems: {},
|
|
@@ -1170,7 +1130,7 @@ var Rt = { class: "hero-section" }, zt = { class: "header" }, Bt = ["innerHTML"]
|
|
|
1170
1130
|
let t = Math.min(Math.max(1, e), u.value);
|
|
1171
1131
|
l.value !== t && (l.value = t, r("onPageChange", l.value));
|
|
1172
1132
|
}
|
|
1173
|
-
return (n, r) => t.totalItems > 0 ? (b(), s("div",
|
|
1133
|
+
return (n, r) => t.totalItems > 0 ? (b(), s("div", nn, [c("span", rn, "第 " + T(l.value) + " / " + T(u.value) + " 頁,共 " + T(t.totalItems) + " 筆", 1), c("div", an, [
|
|
1174
1134
|
f(j, {
|
|
1175
1135
|
variant: "outline",
|
|
1176
1136
|
padding: "",
|
|
@@ -1207,7 +1167,7 @@ var Rt = { class: "hero-section" }, zt = { class: "header" }, Bt = ["innerHTML"]
|
|
|
1207
1167
|
"variant",
|
|
1208
1168
|
"intent",
|
|
1209
1169
|
"onClick"
|
|
1210
|
-
])) : (b(), s("span",
|
|
1170
|
+
])) : (b(), s("span", on, "…"))], 64))), 128)),
|
|
1211
1171
|
f(j, {
|
|
1212
1172
|
variant: "outline",
|
|
1213
1173
|
padding: "",
|
|
@@ -1231,10 +1191,10 @@ var Rt = { class: "hero-section" }, zt = { class: "header" }, Bt = ["innerHTML"]
|
|
|
1231
1191
|
}, 8, ["disabled"])
|
|
1232
1192
|
])])) : o("", !0);
|
|
1233
1193
|
}
|
|
1234
|
-
}), [["__scopeId", "data-v-06443bd8"]]),
|
|
1194
|
+
}), [["__scopeId", "data-v-06443bd8"]]), cn = { class: "table-scroll" }, ln = ["onClick"], un = { class: "th-content" }, dn = {
|
|
1235
1195
|
key: 0,
|
|
1236
1196
|
class: "sort-icon"
|
|
1237
|
-
},
|
|
1197
|
+
}, fn = {
|
|
1238
1198
|
key: 0,
|
|
1239
1199
|
viewBox: "0 0 24 24",
|
|
1240
1200
|
fill: "none",
|
|
@@ -1242,7 +1202,7 @@ var Rt = { class: "hero-section" }, zt = { class: "header" }, Bt = ["innerHTML"]
|
|
|
1242
1202
|
"stroke-width": "2",
|
|
1243
1203
|
"stroke-linecap": "round",
|
|
1244
1204
|
"stroke-linejoin": "round"
|
|
1245
|
-
},
|
|
1205
|
+
}, pn = {
|
|
1246
1206
|
key: 1,
|
|
1247
1207
|
viewBox: "0 0 24 24",
|
|
1248
1208
|
fill: "none",
|
|
@@ -1250,7 +1210,7 @@ var Rt = { class: "hero-section" }, zt = { class: "header" }, Bt = ["innerHTML"]
|
|
|
1250
1210
|
"stroke-width": "2",
|
|
1251
1211
|
"stroke-linecap": "round",
|
|
1252
1212
|
"stroke-linejoin": "round"
|
|
1253
|
-
},
|
|
1213
|
+
}, mn = {
|
|
1254
1214
|
key: 2,
|
|
1255
1215
|
viewBox: "0 0 24 24",
|
|
1256
1216
|
fill: "none",
|
|
@@ -1258,13 +1218,13 @@ var Rt = { class: "hero-section" }, zt = { class: "header" }, Bt = ["innerHTML"]
|
|
|
1258
1218
|
"stroke-width": "2",
|
|
1259
1219
|
"stroke-linecap": "round",
|
|
1260
1220
|
"stroke-linejoin": "round"
|
|
1261
|
-
},
|
|
1221
|
+
}, hn = {
|
|
1262
1222
|
key: 0,
|
|
1263
1223
|
class: "col-actions"
|
|
1264
|
-
},
|
|
1224
|
+
}, gn = ["onClick"], _n = {
|
|
1265
1225
|
key: 0,
|
|
1266
1226
|
class: "col-actions"
|
|
1267
|
-
},
|
|
1227
|
+
}, vn = { key: 1 }, yn = ["colspan"], bn = { key: 2 }, xn = ["colspan"], Sn = /* @__PURE__ */ A(/* @__PURE__ */ p({
|
|
1268
1228
|
__name: "NTable",
|
|
1269
1229
|
props: {
|
|
1270
1230
|
columns: { default: () => [] },
|
|
@@ -1304,7 +1264,7 @@ var Rt = { class: "hero-section" }, zt = { class: "header" }, Bt = ["innerHTML"]
|
|
|
1304
1264
|
{ bordered: t.bordered },
|
|
1305
1265
|
{ hoverable: t.hoverable },
|
|
1306
1266
|
{ loading: t.loading }
|
|
1307
|
-
]]) }, [c("div",
|
|
1267
|
+
]]) }, [c("div", cn, [c("table", null, [c("thead", null, [c("tr", null, [(b(!0), s(e, null, C(t.columns, (e) => (b(), s("th", {
|
|
1308
1268
|
key: e.key,
|
|
1309
1269
|
style: _({
|
|
1310
1270
|
width: e.width,
|
|
@@ -1312,7 +1272,7 @@ var Rt = { class: "hero-section" }, zt = { class: "header" }, Bt = ["innerHTML"]
|
|
|
1312
1272
|
}),
|
|
1313
1273
|
class: g({ sortable: e.sortable }),
|
|
1314
1274
|
onClick: (t) => a(e)
|
|
1315
|
-
}, [c("span",
|
|
1275
|
+
}, [c("span", un, [w(n.$slots, `header-${e.key}`, { col: e }, () => [d(T(e.label), 1)], !0), e.sortable ? (b(), s("span", dn, [i.value.key !== e.key || i.value.order === null ? (b(), s("svg", fn, [...u[0] ||= [c("path", { d: "M8 9l4-4 4 4" }, null, -1), c("path", { d: "M16 15l-4 4-4-4" }, null, -1)]])) : i.value.order === "asc" ? (b(), s("svg", pn, [...u[1] ||= [c("path", { d: "M8 15l4-6 4 6" }, null, -1)]])) : (b(), s("svg", mn, [...u[2] ||= [c("path", { d: "M8 9l4 6 4-6" }, null, -1)]]))])) : o("", !0)])], 14, ln))), 128)), n.$slots.actions ? (b(), s("th", hn, [w(n.$slots, "actions-header", {}, () => [u[3] ||= d("操作", -1)], !0)])) : o("", !0)])]), c("tbody", null, [!t.loading && t.rows.length > 0 ? (b(!0), s(e, { key: 0 }, C(t.rows, (i, a) => (b(), s("tr", {
|
|
1316
1276
|
key: i[t.rowKey] ?? a,
|
|
1317
1277
|
onClick: (e) => r("row-click", i)
|
|
1318
1278
|
}, [(b(!0), s(e, null, C(t.columns, (e) => (b(), s("td", {
|
|
@@ -1322,25 +1282,25 @@ var Rt = { class: "hero-section" }, zt = { class: "header" }, Bt = ["innerHTML"]
|
|
|
1322
1282
|
value: l(i, e),
|
|
1323
1283
|
row: i,
|
|
1324
1284
|
index: a
|
|
1325
|
-
}, () => [d(T(l(i, e)), 1)], !0)], 4))), 128)), n.$slots.actions ? (b(), s("td",
|
|
1285
|
+
}, () => [d(T(l(i, e)), 1)], !0)], 4))), 128)), n.$slots.actions ? (b(), s("td", _n, [w(n.$slots, "actions", {
|
|
1326
1286
|
row: i,
|
|
1327
1287
|
index: a
|
|
1328
|
-
}, void 0, !0)])) : o("", !0)], 8,
|
|
1288
|
+
}, void 0, !0)])) : o("", !0)], 8, gn))), 128)) : !t.loading && t.rows.length === 0 ? (b(), s("tr", vn, [c("td", {
|
|
1329
1289
|
colspan: t.columns.length + +!!n.$slots.actions,
|
|
1330
1290
|
class: "empty-cell"
|
|
1331
|
-
}, [w(n.$slots, "empty", {}, () => [d(T(t.emptyText), 1)], !0)], 8,
|
|
1291
|
+
}, [w(n.$slots, "empty", {}, () => [d(T(t.emptyText), 1)], !0)], 8, yn)])) : t.loading ? (b(), s("tr", bn, [c("td", {
|
|
1332
1292
|
colspan: t.columns.length + +!!n.$slots.actions,
|
|
1333
1293
|
class: "loading-cell"
|
|
1334
1294
|
}, [w(n.$slots, "loading", {}, () => [u[4] ||= c("span", { class: "loading-dots" }, [
|
|
1335
1295
|
c("span"),
|
|
1336
1296
|
c("span"),
|
|
1337
1297
|
c("span")
|
|
1338
|
-
], -1)], !0)], 8,
|
|
1298
|
+
], -1)], !0)], 8, xn)])) : o("", !0)])])])], 2));
|
|
1339
1299
|
}
|
|
1340
|
-
}), [["__scopeId", "data-v-e6e63613"]]),
|
|
1300
|
+
}), [["__scopeId", "data-v-e6e63613"]]), Cn = { class: "content-container" }, wn = {
|
|
1341
1301
|
key: 0,
|
|
1342
1302
|
class: "toolbar"
|
|
1343
|
-
},
|
|
1303
|
+
}, Tn = /* @__PURE__ */ A(/* @__PURE__ */ p({
|
|
1344
1304
|
__name: "NList",
|
|
1345
1305
|
props: {
|
|
1346
1306
|
title: { default: "" },
|
|
@@ -1401,11 +1361,11 @@ var Rt = { class: "hero-section" }, zt = { class: "header" }, Bt = ["innerHTML"]
|
|
|
1401
1361
|
function ee() {
|
|
1402
1362
|
e.batchDeletable && (h.value ? e.items.forEach((e) => u.value.delete(e.id)) : e.items.forEach((e) => u.value.add(e.id)), u.value = new Set(u.value));
|
|
1403
1363
|
}
|
|
1404
|
-
return (t, i) => (b(), s("div",
|
|
1364
|
+
return (t, i) => (b(), s("div", Cn, [f(Ut, {
|
|
1405
1365
|
icon: "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"28\" height=\"28\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\n <path d=\"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2\"></path>\n <circle cx=\"12\" cy=\"7\" r=\"4\"></circle>\n </svg>",
|
|
1406
1366
|
title: e.title
|
|
1407
1367
|
}, {
|
|
1408
|
-
default: O(() => [n.toolbar || e.refreshable || e.creatable || e.batchDeletable ? (b(), s("div",
|
|
1368
|
+
default: O(() => [n.toolbar || e.refreshable || e.creatable || e.batchDeletable ? (b(), s("div", wn, [
|
|
1409
1369
|
w(t.$slots, "toolbar", {}, void 0, !0),
|
|
1410
1370
|
e.refreshable ? (b(), a(j, {
|
|
1411
1371
|
key: 0,
|
|
@@ -1495,11 +1455,11 @@ var Rt = { class: "hero-section" }, zt = { class: "header" }, Bt = ["innerHTML"]
|
|
|
1495
1455
|
})) : o("", !0)
|
|
1496
1456
|
])) : o("", !0)]),
|
|
1497
1457
|
_: 3
|
|
1498
|
-
}, 8, ["title"]), f(
|
|
1458
|
+
}, 8, ["title"]), f(tn, {
|
|
1499
1459
|
size: "none",
|
|
1500
1460
|
radius: "xl"
|
|
1501
1461
|
}, {
|
|
1502
|
-
default: O(() => [f(
|
|
1462
|
+
default: O(() => [f(Sn, {
|
|
1503
1463
|
columns: g.value,
|
|
1504
1464
|
rows: e.items,
|
|
1505
1465
|
hoverable: "",
|
|
@@ -1510,7 +1470,7 @@ var Rt = { class: "hero-section" }, zt = { class: "header" }, Bt = ["innerHTML"]
|
|
|
1510
1470
|
},
|
|
1511
1471
|
onSort: i[6] ||= (e) => r("sort", e)
|
|
1512
1472
|
}, l({
|
|
1513
|
-
empty: O(() => [f(
|
|
1473
|
+
empty: O(() => [f(en, {
|
|
1514
1474
|
title: e.emptyTitle,
|
|
1515
1475
|
description: e.emptyDescription,
|
|
1516
1476
|
icon: e.emptyIcon,
|
|
@@ -1569,7 +1529,7 @@ var Rt = { class: "hero-section" }, zt = { class: "header" }, Bt = ["innerHTML"]
|
|
|
1569
1529
|
fn: O(() => [w(t.$slots, "actions-header", {}, void 0, !0)]),
|
|
1570
1530
|
key: "3"
|
|
1571
1531
|
} : void 0
|
|
1572
|
-
]), 1032, ["columns", "rows"]), e.items.length > 0 ? (b(), a(
|
|
1532
|
+
]), 1032, ["columns", "rows"]), e.items.length > 0 ? (b(), a(sn, {
|
|
1573
1533
|
key: 0,
|
|
1574
1534
|
totalItems: e.items.length,
|
|
1575
1535
|
pageSize: e.pageSize,
|
|
@@ -1583,11 +1543,11 @@ var Rt = { class: "hero-section" }, zt = { class: "header" }, Bt = ["innerHTML"]
|
|
|
1583
1543
|
_: 3
|
|
1584
1544
|
})]));
|
|
1585
1545
|
}
|
|
1586
|
-
}), [["__scopeId", "data-v-b5402ec0"]]),
|
|
1587
|
-
function
|
|
1546
|
+
}), [["__scopeId", "data-v-b5402ec0"]]), En = 0, Dn = x([]);
|
|
1547
|
+
function On() {
|
|
1588
1548
|
let e = function(e, n = {}) {
|
|
1589
|
-
let r = ++
|
|
1590
|
-
|
|
1549
|
+
let r = ++En, i = n.duration ?? 4e3;
|
|
1550
|
+
Dn.push({
|
|
1591
1551
|
id: r,
|
|
1592
1552
|
description: e,
|
|
1593
1553
|
status: n.status ?? "info",
|
|
@@ -1609,34 +1569,34 @@ function jn() {
|
|
|
1609
1569
|
status: "info"
|
|
1610
1570
|
});
|
|
1611
1571
|
function t(e) {
|
|
1612
|
-
let t =
|
|
1613
|
-
t !== -1 &&
|
|
1572
|
+
let t = Dn.findIndex((t) => t.id === e);
|
|
1573
|
+
t !== -1 && Dn.splice(t, 1);
|
|
1614
1574
|
}
|
|
1615
1575
|
return {
|
|
1616
|
-
toasts:
|
|
1576
|
+
toasts: Dn,
|
|
1617
1577
|
toast: e,
|
|
1618
1578
|
removeToast: t
|
|
1619
1579
|
};
|
|
1620
1580
|
}
|
|
1621
1581
|
//#endregion
|
|
1622
1582
|
//#region src/components/NToast.vue?vue&type=script&setup=true&lang.ts
|
|
1623
|
-
var
|
|
1583
|
+
var kn = { class: "icon-wrap" }, An = ["innerHTML"], jn = {
|
|
1624
1584
|
key: 0,
|
|
1625
1585
|
class: "arc-timer",
|
|
1626
1586
|
viewBox: "0 0 36 36",
|
|
1627
1587
|
width: "36",
|
|
1628
1588
|
height: "36",
|
|
1629
1589
|
"shape-rendering": "geometricPrecision"
|
|
1630
|
-
},
|
|
1590
|
+
}, Mn = { class: "body" }, Nn = {
|
|
1631
1591
|
key: 0,
|
|
1632
1592
|
class: "title"
|
|
1633
|
-
},
|
|
1593
|
+
}, Pn = {
|
|
1634
1594
|
key: 1,
|
|
1635
1595
|
class: "description"
|
|
1636
|
-
},
|
|
1596
|
+
}, Fn = /* @__PURE__ */ A(/* @__PURE__ */ p({
|
|
1637
1597
|
__name: "NToast",
|
|
1638
1598
|
setup(n) {
|
|
1639
|
-
let { toasts: i } =
|
|
1599
|
+
let { toasts: i } = On(), l = {
|
|
1640
1600
|
success: "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path d=\"M20 6 9 17l-5-5\"/>\n </svg>",
|
|
1641
1601
|
danger: "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <circle cx=\"12\" cy=\"12\" r=\"10\"/>\n <path d=\"m15 9-6 6\"/>\n <path d=\"m9 9 6 6\"/>\n </svg>",
|
|
1642
1602
|
warning: "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\"/>\n <path d=\"M12 9v4\"/>\n <path d=\"M12 17h.01\"/>\n </svg>",
|
|
@@ -1650,10 +1610,10 @@ var Mn = { class: "icon-wrap" }, Nn = ["innerHTML"], Pn = {
|
|
|
1650
1610
|
default: O(() => [(b(!0), s(e, null, C(E(i), (e) => (b(), s("div", {
|
|
1651
1611
|
key: e.id,
|
|
1652
1612
|
class: g(["toast", [`${e.status}`]])
|
|
1653
|
-
}, [c("div",
|
|
1613
|
+
}, [c("div", kn, [c("div", {
|
|
1654
1614
|
class: "icon",
|
|
1655
1615
|
innerHTML: l[e.status]
|
|
1656
|
-
}, null, 8,
|
|
1616
|
+
}, null, 8, An), e.duration > 0 ? (b(), s("svg", jn, [u[0] ||= c("circle", {
|
|
1657
1617
|
class: "arc-track",
|
|
1658
1618
|
cx: "18",
|
|
1659
1619
|
cy: "18",
|
|
@@ -1665,29 +1625,29 @@ var Mn = { class: "icon-wrap" }, Nn = ["innerHTML"], Pn = {
|
|
|
1665
1625
|
r: "16",
|
|
1666
1626
|
transform: "rotate(-90 18 18)",
|
|
1667
1627
|
style: _({ animationDuration: `${e.duration}ms` })
|
|
1668
|
-
}, null, 4)])) : o("", !0)]), c("div",
|
|
1628
|
+
}, null, 4)])) : o("", !0)]), c("div", Mn, [e.title ? (b(), s("p", Nn, T(e.title), 1)) : o("", !0), e.description ? (b(), s("p", Pn, T(e.description), 1)) : o("", !0)])], 2))), 128))]),
|
|
1669
1629
|
_: 1
|
|
1670
1630
|
})]));
|
|
1671
1631
|
}
|
|
1672
|
-
}), [["__scopeId", "data-v-
|
|
1632
|
+
}), [["__scopeId", "data-v-3d2f3052"]]), In = {
|
|
1673
1633
|
key: 0,
|
|
1674
1634
|
class: "loading-wrapper"
|
|
1675
|
-
},
|
|
1635
|
+
}, Ln = {
|
|
1676
1636
|
key: 0,
|
|
1677
1637
|
class: "overlay"
|
|
1678
|
-
},
|
|
1638
|
+
}, Rn = { class: "content" }, zn = {
|
|
1679
1639
|
key: 0,
|
|
1680
1640
|
class: "title"
|
|
1681
|
-
},
|
|
1641
|
+
}, Bn = {
|
|
1682
1642
|
key: 0,
|
|
1683
1643
|
class: "loading-inline"
|
|
1684
|
-
},
|
|
1644
|
+
}, Vn = {
|
|
1685
1645
|
key: 0,
|
|
1686
1646
|
class: "title"
|
|
1687
|
-
},
|
|
1647
|
+
}, Hn = {
|
|
1688
1648
|
key: 0,
|
|
1689
1649
|
class: "title"
|
|
1690
|
-
},
|
|
1650
|
+
}, Un = /* @__PURE__ */ A(/* @__PURE__ */ p({
|
|
1691
1651
|
__name: "NLoading",
|
|
1692
1652
|
props: {
|
|
1693
1653
|
loading: {
|
|
@@ -1702,31 +1662,31 @@ var Mn = { class: "icon-wrap" }, Nn = ["innerHTML"], Pn = {
|
|
|
1702
1662
|
}
|
|
1703
1663
|
},
|
|
1704
1664
|
setup(t) {
|
|
1705
|
-
return (r, i) => t.overlay ? (b(), s("div",
|
|
1706
|
-
default: O(() => [t.loading ? (b(), s("div",
|
|
1665
|
+
return (r, i) => t.overlay ? (b(), s("div", In, [w(r.$slots, "default", {}, void 0, !0), f(n, { name: "fade" }, {
|
|
1666
|
+
default: O(() => [t.loading ? (b(), s("div", Ln, [c("div", Rn, [i[0] ||= c("div", { class: "spinner" }, [c("svg", { viewBox: "0 0 50 50" }, [c("circle", {
|
|
1707
1667
|
cx: "25",
|
|
1708
1668
|
cy: "25",
|
|
1709
1669
|
r: "20",
|
|
1710
1670
|
fill: "none",
|
|
1711
1671
|
"stroke-width": "4"
|
|
1712
|
-
})])], -1), t.title ? (b(), s("p",
|
|
1672
|
+
})])], -1), t.title ? (b(), s("p", zn, T(t.title), 1)) : o("", !0)])])) : o("", !0)]),
|
|
1713
1673
|
_: 1
|
|
1714
|
-
})])) : (b(), s(e, { key: 1 }, [t.loading ? (b(), s("div",
|
|
1674
|
+
})])) : (b(), s(e, { key: 1 }, [t.loading ? (b(), s("div", Bn, [t.variant === "spinner" ? (b(), s(e, { key: 0 }, [i[1] ||= c("div", { class: "spinner" }, [c("svg", { viewBox: "0 0 50 50" }, [c("circle", {
|
|
1715
1675
|
cx: "25",
|
|
1716
1676
|
cy: "25",
|
|
1717
1677
|
r: "20",
|
|
1718
1678
|
fill: "none",
|
|
1719
1679
|
"stroke-width": "4"
|
|
1720
|
-
})])], -1), t.title ? (b(), s("p",
|
|
1680
|
+
})])], -1), t.title ? (b(), s("p", Vn, T(t.title), 1)) : o("", !0)], 64)) : o("", !0), t.variant === "dots" ? (b(), s(e, { key: 1 }, [i[2] ||= c("div", { class: "dots" }, [
|
|
1721
1681
|
c("span"),
|
|
1722
1682
|
c("span"),
|
|
1723
1683
|
c("span")
|
|
1724
|
-
], -1), t.title ? (b(), s("p",
|
|
1684
|
+
], -1), t.title ? (b(), s("p", Hn, T(t.title), 1)) : o("", !0)], 64)) : o("", !0)])) : w(r.$slots, "default", { key: 1 }, void 0, !0)], 64));
|
|
1725
1685
|
}
|
|
1726
|
-
}), [["__scopeId", "data-v-b1c571f6"]]),
|
|
1686
|
+
}), [["__scopeId", "data-v-b1c571f6"]]), Wn = { class: "code" }, Gn = {
|
|
1727
1687
|
key: 0,
|
|
1728
1688
|
class: "header"
|
|
1729
|
-
},
|
|
1689
|
+
}, Kn = { class: "language-label" }, qn = {
|
|
1730
1690
|
key: 0,
|
|
1731
1691
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1732
1692
|
width: "14",
|
|
@@ -1737,7 +1697,7 @@ var Mn = { class: "icon-wrap" }, Nn = ["innerHTML"], Pn = {
|
|
|
1737
1697
|
"stroke-width": "2",
|
|
1738
1698
|
"stroke-linecap": "round",
|
|
1739
1699
|
"stroke-linejoin": "round"
|
|
1740
|
-
},
|
|
1700
|
+
}, Jn = {
|
|
1741
1701
|
key: 1,
|
|
1742
1702
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1743
1703
|
width: "14",
|
|
@@ -1748,10 +1708,10 @@ var Mn = { class: "icon-wrap" }, Nn = ["innerHTML"], Pn = {
|
|
|
1748
1708
|
"stroke-width": "2",
|
|
1749
1709
|
"stroke-linecap": "round",
|
|
1750
1710
|
"stroke-linejoin": "round"
|
|
1751
|
-
},
|
|
1711
|
+
}, Yn = { class: "code-body" }, Xn = {
|
|
1752
1712
|
key: 0,
|
|
1753
1713
|
class: "gutter"
|
|
1754
|
-
},
|
|
1714
|
+
}, Zn = ["textContent"], Qn = /* @__PURE__ */ A(/* @__PURE__ */ p({
|
|
1755
1715
|
__name: "NCode",
|
|
1756
1716
|
props: {
|
|
1757
1717
|
code: {},
|
|
@@ -1770,28 +1730,28 @@ var Mn = { class: "icon-wrap" }, Nn = ["innerHTML"], Pn = {
|
|
|
1770
1730
|
}, 2e3);
|
|
1771
1731
|
} catch {}
|
|
1772
1732
|
}
|
|
1773
|
-
return (i, l) => (b(), s("div",
|
|
1733
|
+
return (i, l) => (b(), s("div", Wn, [(t.language, b(), s("div", Gn, [c("span", Kn, T(t.language || "code"), 1), c("button", {
|
|
1774
1734
|
class: g(["copy-btn", { copied: n.value }]),
|
|
1775
1735
|
onClick: a
|
|
1776
|
-
}, [n.value ? (b(), s("svg",
|
|
1736
|
+
}, [n.value ? (b(), s("svg", Jn, [...l[1] ||= [c("polyline", { points: "20 6 9 17 4 12" }, null, -1)]])) : (b(), s("svg", qn, [...l[0] ||= [c("rect", {
|
|
1777
1737
|
x: "9",
|
|
1778
1738
|
y: "9",
|
|
1779
1739
|
width: "13",
|
|
1780
1740
|
height: "13",
|
|
1781
1741
|
rx: "2",
|
|
1782
1742
|
ry: "2"
|
|
1783
|
-
}, null, -1), c("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" }, null, -1)]])), c("span", null, T(n.value ? "Copied!" : "Copy"), 1)], 2)])), c("div",
|
|
1743
|
+
}, null, -1), c("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" }, null, -1)]])), c("span", null, T(n.value ? "Copied!" : "Copy"), 1)], 2)])), c("div", Yn, [t.showLineNumbers ? (b(), s("div", Xn, [(b(!0), s(e, null, C(r.value, (e, t) => (b(), s("span", {
|
|
1784
1744
|
key: t,
|
|
1785
1745
|
class: "line-number"
|
|
1786
1746
|
}, T(t + 1), 1))), 128))])) : o("", !0), c("pre", {
|
|
1787
1747
|
class: "code-content",
|
|
1788
1748
|
textContent: T(t.code.trim())
|
|
1789
|
-
}, null, 8,
|
|
1749
|
+
}, null, 8, Zn)])]));
|
|
1790
1750
|
}
|
|
1791
|
-
}), [["__scopeId", "data-v-6fed5425"]]),
|
|
1751
|
+
}), [["__scopeId", "data-v-6fed5425"]]), $n = {
|
|
1792
1752
|
key: 0,
|
|
1793
1753
|
class: "label"
|
|
1794
|
-
},
|
|
1754
|
+
}, er = /* @__PURE__ */ A(/* @__PURE__ */ p({
|
|
1795
1755
|
__name: "NSwitch",
|
|
1796
1756
|
props: {
|
|
1797
1757
|
modelValue: {
|
|
@@ -1819,9 +1779,9 @@ var Mn = { class: "icon-wrap" }, Nn = ["innerHTML"], Pn = {
|
|
|
1819
1779
|
{ disabled: e.disabled }
|
|
1820
1780
|
]]),
|
|
1821
1781
|
onClick: l
|
|
1822
|
-
}, [n[0] ||= c("div", { class: "inner" }, [c("div", { class: "handle" })], -1), e.label ? (b(), s("span",
|
|
1782
|
+
}, [n[0] ||= c("div", { class: "inner" }, [c("div", { class: "handle" })], -1), e.label ? (b(), s("span", $n, T(e.label), 1)) : o("", !0)], 2));
|
|
1823
1783
|
}
|
|
1824
|
-
}), [["__scopeId", "data-v-ba9c30d4"]]),
|
|
1784
|
+
}), [["__scopeId", "data-v-ba9c30d4"]]), tr = /* @__PURE__ */ A(/* @__PURE__ */ p({
|
|
1825
1785
|
__name: "NTag",
|
|
1826
1786
|
props: {
|
|
1827
1787
|
intent: { default: "none" },
|
|
@@ -1870,49 +1830,49 @@ var Mn = { class: "icon-wrap" }, Nn = ["innerHTML"], Pn = {
|
|
|
1870
1830
|
y2: "18"
|
|
1871
1831
|
})], -1)]])) : o("", !0)], 2));
|
|
1872
1832
|
}
|
|
1873
|
-
}), [["__scopeId", "data-v-77d4f175"]]),
|
|
1833
|
+
}), [["__scopeId", "data-v-77d4f175"]]), nr = {
|
|
1874
1834
|
key: 0,
|
|
1875
1835
|
class: "label"
|
|
1876
|
-
},
|
|
1836
|
+
}, rr = {
|
|
1877
1837
|
key: 0,
|
|
1878
1838
|
class: "picker-dropdown"
|
|
1879
|
-
},
|
|
1839
|
+
}, ir = { class: "picker-header" }, ar = { class: "header-nav" }, or = { class: "header-nav" }, sr = { class: "picker-body" }, cr = { class: "weekday-grid" }, lr = { class: "day-grid" }, ur = {
|
|
1880
1840
|
key: 1,
|
|
1881
1841
|
class: "year-grid"
|
|
1882
|
-
},
|
|
1842
|
+
}, dr = {
|
|
1883
1843
|
key: 0,
|
|
1884
1844
|
class: "time-section"
|
|
1885
|
-
},
|
|
1845
|
+
}, fr = { class: "time-sliders" }, pr = {
|
|
1886
1846
|
key: 0,
|
|
1887
1847
|
class: "time-row"
|
|
1888
|
-
},
|
|
1848
|
+
}, mr = ["value"], hr = { class: "time-val" }, gr = {
|
|
1889
1849
|
key: 1,
|
|
1890
1850
|
class: "time-row"
|
|
1891
|
-
},
|
|
1851
|
+
}, _r = ["value"], vr = { class: "time-val" }, yr = { class: "mobile-sheet" }, br = { class: "picker-header" }, xr = { class: "header-nav" }, Sr = { class: "header-nav" }, Cr = { class: "picker-body" }, wr = { class: "weekday-grid" }, Tr = { class: "day-grid" }, Er = {
|
|
1892
1852
|
key: 1,
|
|
1893
1853
|
class: "year-grid"
|
|
1894
|
-
},
|
|
1854
|
+
}, Dr = {
|
|
1895
1855
|
key: 0,
|
|
1896
1856
|
class: "time-section"
|
|
1897
|
-
},
|
|
1857
|
+
}, Or = { class: "time-sliders" }, kr = {
|
|
1898
1858
|
key: 0,
|
|
1899
1859
|
class: "time-row"
|
|
1900
|
-
},
|
|
1860
|
+
}, Ar = ["value"], jr = { class: "time-val" }, Mr = {
|
|
1901
1861
|
key: 1,
|
|
1902
1862
|
class: "time-row"
|
|
1903
|
-
},
|
|
1863
|
+
}, Nr = ["value"], Pr = { class: "time-val" }, Fr = { class: "range-modal" }, Ir = { class: "range-body" }, Lr = {
|
|
1904
1864
|
key: 0,
|
|
1905
1865
|
class: "range-sep"
|
|
1906
|
-
},
|
|
1866
|
+
}, Rr = { class: "range-cal" }, zr = { class: "picker-header" }, Br = { class: "header-nav" }, Vr = {
|
|
1907
1867
|
key: 1,
|
|
1908
1868
|
class: "header-nav-placeholder"
|
|
1909
|
-
},
|
|
1869
|
+
}, Hr = { class: "header-title no-click" }, Ur = { class: "header-nav" }, Wr = {
|
|
1910
1870
|
key: 1,
|
|
1911
1871
|
class: "header-nav-placeholder"
|
|
1912
|
-
},
|
|
1872
|
+
}, Gr = { class: "weekday-grid" }, Kr = { class: "day-grid range-day-grid" }, qr = ["onClick", "onMouseenter"], Jr = { class: "range-footer" }, Yr = { class: "range-display" }, Xr = { class: "mobile-sheet" }, Zr = {
|
|
1913
1873
|
class: "picker-header",
|
|
1914
1874
|
style: { "margin-top": "8px" }
|
|
1915
|
-
},
|
|
1875
|
+
}, Qr = { class: "header-nav" }, $r = { class: "header-title no-click" }, ei = { class: "header-nav" }, ti = { class: "weekday-grid" }, ni = { class: "day-grid range-day-grid" }, ri = ["onClick"], ii = { class: "range-footer" }, ai = { class: "range-display" }, oi = /* @__PURE__ */ A(/* @__PURE__ */ p({
|
|
1916
1876
|
__name: "NDatePicker",
|
|
1917
1877
|
props: {
|
|
1918
1878
|
modelValue: { default: "" },
|
|
@@ -2197,7 +2157,7 @@ var Mn = { class: "icon-wrap" }, Nn = ["innerHTML"], Pn = {
|
|
|
2197
2157
|
ref: x,
|
|
2198
2158
|
class: "datepicker"
|
|
2199
2159
|
}, [
|
|
2200
|
-
t.title ? (b(), s("label",
|
|
2160
|
+
t.title ? (b(), s("label", nr, T(t.title), 1)) : o("", !0),
|
|
2201
2161
|
c("div", { class: g(["date-picker", {
|
|
2202
2162
|
open: y.value && !t.range && !w.value,
|
|
2203
2163
|
disabled: t.disabled
|
|
@@ -2224,9 +2184,9 @@ var Mn = { class: "icon-wrap" }, Nn = ["innerHTML"], Pn = {
|
|
|
2224
2184
|
}, [c("path", { d: "M18 6 6 18" }), c("path", { d: "m6 6 12 12" })], -1)]]),
|
|
2225
2185
|
_: 1
|
|
2226
2186
|
})) : o("", !0)]), f(n, { name: "fade" }, {
|
|
2227
|
-
default: O(() => [y.value && !t.range && !w.value ? (b(), s("div",
|
|
2228
|
-
c("div",
|
|
2229
|
-
c("div",
|
|
2187
|
+
default: O(() => [y.value && !t.range && !w.value ? (b(), s("div", rr, [
|
|
2188
|
+
c("div", ir, [
|
|
2189
|
+
c("div", ar, [f(j, {
|
|
2230
2190
|
variant: "ghost",
|
|
2231
2191
|
square: "",
|
|
2232
2192
|
onClick: i[0] ||= (e) => Se(-1)
|
|
@@ -2266,7 +2226,7 @@ var Mn = { class: "icon-wrap" }, Nn = ["innerHTML"], Pn = {
|
|
|
2266
2226
|
class: "header-title",
|
|
2267
2227
|
onClick: He
|
|
2268
2228
|
}, [N.value === "date" ? (b(), s(e, { key: 0 }, [d(T(D[z.value]) + " " + T(R.value), 1)], 64)) : (b(), s(e, { key: 1 }, [d(T(B.value[0]) + " - " + T(B.value[B.value.length - 1]), 1)], 64))]),
|
|
2269
|
-
c("div",
|
|
2229
|
+
c("div", or, [N.value === "date" ? (b(), a(j, {
|
|
2270
2230
|
key: 0,
|
|
2271
2231
|
variant: "ghost",
|
|
2272
2232
|
square: "",
|
|
@@ -2303,10 +2263,10 @@ var Mn = { class: "icon-wrap" }, Nn = ["innerHTML"], Pn = {
|
|
|
2303
2263
|
_: 1
|
|
2304
2264
|
})])
|
|
2305
2265
|
]),
|
|
2306
|
-
c("div",
|
|
2266
|
+
c("div", sr, [N.value === "date" ? (b(), s(e, { key: 0 }, [c("div", cr, [(b(), s(e, null, C(ne, (e) => c("span", {
|
|
2307
2267
|
key: e,
|
|
2308
2268
|
class: "weekday"
|
|
2309
|
-
}, T(e), 1)), 64))]), c("div",
|
|
2269
|
+
}, T(e), 1)), 64))]), c("div", lr, [(b(!0), s(e, null, C(fe.value, (e, t) => (b(), a(j, {
|
|
2310
2270
|
key: t,
|
|
2311
2271
|
variant: _e(e) ? "solid" : V(e) ? "mute" : "ghost",
|
|
2312
2272
|
intent: _e(e) || V(e) ? "primary" : "none",
|
|
@@ -2321,7 +2281,7 @@ var Mn = { class: "icon-wrap" }, Nn = ["innerHTML"], Pn = {
|
|
|
2321
2281
|
"intent",
|
|
2322
2282
|
"class",
|
|
2323
2283
|
"onClick"
|
|
2324
|
-
]))), 128))])], 64)) : (b(), s("div",
|
|
2284
|
+
]))), 128))])], 64)) : (b(), s("div", ur, [(b(!0), s(e, null, C(B.value, (e) => (b(), a(j, {
|
|
2325
2285
|
key: e,
|
|
2326
2286
|
variant: e === R.value ? "solid" : "ghost",
|
|
2327
2287
|
intent: e === R.value ? "primary" : "none",
|
|
@@ -2335,7 +2295,7 @@ var Mn = { class: "icon-wrap" }, Nn = ["innerHTML"], Pn = {
|
|
|
2335
2295
|
"intent",
|
|
2336
2296
|
"onClick"
|
|
2337
2297
|
]))), 128))]))]),
|
|
2338
|
-
_.value && N.value === "date" ? (b(), s("div",
|
|
2298
|
+
_.value && N.value === "date" ? (b(), s("div", dr, [c("div", fr, [m.value ? (b(), s("div", pr, [
|
|
2339
2299
|
i[27] ||= c("span", { class: "time-label" }, "時", -1),
|
|
2340
2300
|
f(j, {
|
|
2341
2301
|
variant: "ghost",
|
|
@@ -2366,7 +2326,7 @@ var Mn = { class: "icon-wrap" }, Nn = ["innerHTML"], Pn = {
|
|
|
2366
2326
|
max: "23",
|
|
2367
2327
|
value: I.value,
|
|
2368
2328
|
onInput: i[5] ||= (e) => we(e, "H")
|
|
2369
|
-
}, null, 40,
|
|
2329
|
+
}, null, 40, mr),
|
|
2370
2330
|
f(j, {
|
|
2371
2331
|
variant: "ghost",
|
|
2372
2332
|
square: "",
|
|
@@ -2389,8 +2349,8 @@ var Mn = { class: "icon-wrap" }, Nn = ["innerHTML"], Pn = {
|
|
|
2389
2349
|
}, [c("path", { d: "m9 18 6-6-6-6" })], -1)]]),
|
|
2390
2350
|
_: 1
|
|
2391
2351
|
}),
|
|
2392
|
-
c("span",
|
|
2393
|
-
])) : o("", !0), h.value ? (b(), s("div",
|
|
2352
|
+
c("span", hr, T(M(I.value)), 1)
|
|
2353
|
+
])) : o("", !0), h.value ? (b(), s("div", gr, [
|
|
2394
2354
|
i[30] ||= c("span", { class: "time-label" }, "分", -1),
|
|
2395
2355
|
f(j, {
|
|
2396
2356
|
variant: "ghost",
|
|
@@ -2421,7 +2381,7 @@ var Mn = { class: "icon-wrap" }, Nn = ["innerHTML"], Pn = {
|
|
|
2421
2381
|
max: "59",
|
|
2422
2382
|
value: L.value,
|
|
2423
2383
|
onInput: i[8] ||= (e) => we(e, "m")
|
|
2424
|
-
}, null, 40,
|
|
2384
|
+
}, null, 40, _r),
|
|
2425
2385
|
f(j, {
|
|
2426
2386
|
variant: "ghost",
|
|
2427
2387
|
square: "",
|
|
@@ -2444,7 +2404,7 @@ var Mn = { class: "icon-wrap" }, Nn = ["innerHTML"], Pn = {
|
|
|
2444
2404
|
}, [c("path", { d: "m9 18 6-6-6-6" })], -1)]]),
|
|
2445
2405
|
_: 1
|
|
2446
2406
|
}),
|
|
2447
|
-
c("span",
|
|
2407
|
+
c("span", vr, T(M(L.value)), 1)
|
|
2448
2408
|
])) : o("", !0)])])) : o("", !0)
|
|
2449
2409
|
])) : o("", !0)]),
|
|
2450
2410
|
_: 1
|
|
@@ -2454,10 +2414,10 @@ var Mn = { class: "icon-wrap" }, Nn = ["innerHTML"], Pn = {
|
|
|
2454
2414
|
key: 0,
|
|
2455
2415
|
class: "mobile-overlay",
|
|
2456
2416
|
onClick: k(Z, ["self"])
|
|
2457
|
-
}, [c("div",
|
|
2417
|
+
}, [c("div", yr, [
|
|
2458
2418
|
i[41] ||= c("div", { class: "sheet-handle" }, null, -1),
|
|
2459
|
-
c("div",
|
|
2460
|
-
c("div",
|
|
2419
|
+
c("div", br, [
|
|
2420
|
+
c("div", xr, [f(j, {
|
|
2461
2421
|
variant: "ghost",
|
|
2462
2422
|
square: "",
|
|
2463
2423
|
onClick: i[10] ||= (e) => Se(-1)
|
|
@@ -2497,7 +2457,7 @@ var Mn = { class: "icon-wrap" }, Nn = ["innerHTML"], Pn = {
|
|
|
2497
2457
|
class: "header-title",
|
|
2498
2458
|
onClick: He
|
|
2499
2459
|
}, [N.value === "date" ? (b(), s(e, { key: 0 }, [d(T(D[z.value]) + " " + T(R.value), 1)], 64)) : (b(), s(e, { key: 1 }, [d(T(B.value[0]) + " - " + T(B.value[B.value.length - 1]), 1)], 64))]),
|
|
2500
|
-
c("div",
|
|
2460
|
+
c("div", Sr, [N.value === "date" ? (b(), a(j, {
|
|
2501
2461
|
key: 0,
|
|
2502
2462
|
variant: "ghost",
|
|
2503
2463
|
square: "",
|
|
@@ -2534,10 +2494,10 @@ var Mn = { class: "icon-wrap" }, Nn = ["innerHTML"], Pn = {
|
|
|
2534
2494
|
_: 1
|
|
2535
2495
|
})])
|
|
2536
2496
|
]),
|
|
2537
|
-
c("div",
|
|
2497
|
+
c("div", Cr, [N.value === "date" ? (b(), s(e, { key: 0 }, [c("div", wr, [(b(), s(e, null, C(ne, (e) => c("span", {
|
|
2538
2498
|
key: e,
|
|
2539
2499
|
class: "weekday"
|
|
2540
|
-
}, T(e), 1)), 64))]), c("div",
|
|
2500
|
+
}, T(e), 1)), 64))]), c("div", Tr, [(b(!0), s(e, null, C(fe.value, (e, t) => (b(), a(j, {
|
|
2541
2501
|
key: t,
|
|
2542
2502
|
variant: _e(e) ? "solid" : V(e) ? "mute" : "ghost",
|
|
2543
2503
|
intent: _e(e) || V(e) ? "primary" : "none",
|
|
@@ -2552,7 +2512,7 @@ var Mn = { class: "icon-wrap" }, Nn = ["innerHTML"], Pn = {
|
|
|
2552
2512
|
"intent",
|
|
2553
2513
|
"class",
|
|
2554
2514
|
"onClick"
|
|
2555
|
-
]))), 128))])], 64)) : (b(), s("div",
|
|
2515
|
+
]))), 128))])], 64)) : (b(), s("div", Er, [(b(!0), s(e, null, C(B.value, (e) => (b(), a(j, {
|
|
2556
2516
|
key: e,
|
|
2557
2517
|
variant: e === R.value ? "solid" : "ghost",
|
|
2558
2518
|
intent: e === R.value ? "primary" : "none",
|
|
@@ -2566,7 +2526,7 @@ var Mn = { class: "icon-wrap" }, Nn = ["innerHTML"], Pn = {
|
|
|
2566
2526
|
"intent",
|
|
2567
2527
|
"onClick"
|
|
2568
2528
|
]))), 128))]))]),
|
|
2569
|
-
_.value && N.value === "date" ? (b(), s("div",
|
|
2529
|
+
_.value && N.value === "date" ? (b(), s("div", Dr, [c("div", Or, [m.value ? (b(), s("div", kr, [
|
|
2570
2530
|
i[37] ||= c("span", { class: "time-label" }, "時", -1),
|
|
2571
2531
|
f(j, {
|
|
2572
2532
|
variant: "ghost",
|
|
@@ -2597,7 +2557,7 @@ var Mn = { class: "icon-wrap" }, Nn = ["innerHTML"], Pn = {
|
|
|
2597
2557
|
max: "23",
|
|
2598
2558
|
value: I.value,
|
|
2599
2559
|
onInput: i[15] ||= (e) => we(e, "H")
|
|
2600
|
-
}, null, 40,
|
|
2560
|
+
}, null, 40, Ar),
|
|
2601
2561
|
f(j, {
|
|
2602
2562
|
variant: "ghost",
|
|
2603
2563
|
square: "",
|
|
@@ -2620,8 +2580,8 @@ var Mn = { class: "icon-wrap" }, Nn = ["innerHTML"], Pn = {
|
|
|
2620
2580
|
}, [c("path", { d: "m9 18 6-6-6-6" })], -1)]]),
|
|
2621
2581
|
_: 1
|
|
2622
2582
|
}),
|
|
2623
|
-
c("span",
|
|
2624
|
-
])) : o("", !0), h.value ? (b(), s("div",
|
|
2583
|
+
c("span", jr, T(M(I.value)), 1)
|
|
2584
|
+
])) : o("", !0), h.value ? (b(), s("div", Mr, [
|
|
2625
2585
|
i[40] ||= c("span", { class: "time-label" }, "分", -1),
|
|
2626
2586
|
f(j, {
|
|
2627
2587
|
variant: "ghost",
|
|
@@ -2652,7 +2612,7 @@ var Mn = { class: "icon-wrap" }, Nn = ["innerHTML"], Pn = {
|
|
|
2652
2612
|
max: "59",
|
|
2653
2613
|
value: L.value,
|
|
2654
2614
|
onInput: i[18] ||= (e) => we(e, "m")
|
|
2655
|
-
}, null, 40,
|
|
2615
|
+
}, null, 40, Nr),
|
|
2656
2616
|
f(j, {
|
|
2657
2617
|
variant: "ghost",
|
|
2658
2618
|
square: "",
|
|
@@ -2675,7 +2635,7 @@ var Mn = { class: "icon-wrap" }, Nn = ["innerHTML"], Pn = {
|
|
|
2675
2635
|
}, [c("path", { d: "m9 18 6-6-6-6" })], -1)]]),
|
|
2676
2636
|
_: 1
|
|
2677
2637
|
}),
|
|
2678
|
-
c("span",
|
|
2638
|
+
c("span", Pr, T(M(L.value)), 1)
|
|
2679
2639
|
])) : o("", !0)])])) : o("", !0)
|
|
2680
2640
|
])])) : o("", !0)]),
|
|
2681
2641
|
_: 1
|
|
@@ -2685,11 +2645,11 @@ var Mn = { class: "icon-wrap" }, Nn = ["innerHTML"], Pn = {
|
|
|
2685
2645
|
key: 0,
|
|
2686
2646
|
class: "range-overlay",
|
|
2687
2647
|
onClick: k(Z, ["self"])
|
|
2688
|
-
}, [c("div",
|
|
2648
|
+
}, [c("div", Fr, [
|
|
2689
2649
|
i[46] ||= c("p", { class: "range-modal-title" }, "選擇日期範圍", -1),
|
|
2690
|
-
c("div",
|
|
2691
|
-
c("div",
|
|
2692
|
-
c("div",
|
|
2650
|
+
c("div", Ir, [(b(!0), s(e, null, C(ke.value, (t) => (b(), s(e, { key: t.isLeft ? "left" : "right" }, [t.isLeft ? o("", !0) : (b(), s("div", Lr)), c("div", Rr, [
|
|
2651
|
+
c("div", zr, [
|
|
2652
|
+
c("div", Br, [t.isLeft ? (b(), a(j, {
|
|
2693
2653
|
key: 0,
|
|
2694
2654
|
variant: "ghost",
|
|
2695
2655
|
square: "",
|
|
@@ -2707,9 +2667,9 @@ var Mn = { class: "icon-wrap" }, Nn = ["innerHTML"], Pn = {
|
|
|
2707
2667
|
"stroke-linejoin": "round"
|
|
2708
2668
|
}, [c("path", { d: "m15 18-6-6 6-6" })], -1)]]),
|
|
2709
2669
|
_: 1
|
|
2710
|
-
})) : (b(), s("div",
|
|
2711
|
-
c("div",
|
|
2712
|
-
c("div",
|
|
2670
|
+
})) : (b(), s("div", Vr))]),
|
|
2671
|
+
c("div", Hr, T(D[t.month]) + " " + T(t.year), 1),
|
|
2672
|
+
c("div", Ur, [t.isLeft ? (b(), s("div", Wr)) : (b(), a(j, {
|
|
2713
2673
|
key: 0,
|
|
2714
2674
|
variant: "ghost",
|
|
2715
2675
|
square: "",
|
|
@@ -2729,18 +2689,18 @@ var Mn = { class: "icon-wrap" }, Nn = ["innerHTML"], Pn = {
|
|
|
2729
2689
|
_: 1
|
|
2730
2690
|
}))])
|
|
2731
2691
|
]),
|
|
2732
|
-
c("div",
|
|
2692
|
+
c("div", Gr, [(b(), s(e, null, C(ne, (e) => c("span", {
|
|
2733
2693
|
key: e,
|
|
2734
2694
|
class: "weekday"
|
|
2735
2695
|
}, T(e), 1)), 64))]),
|
|
2736
|
-
c("div",
|
|
2696
|
+
c("div", Kr, [(b(!0), s(e, null, C(t.days, (e, t) => (b(), s("div", {
|
|
2737
2697
|
key: t,
|
|
2738
2698
|
class: g(["range-day", ze(e)]),
|
|
2739
2699
|
onClick: (t) => Re(e),
|
|
2740
2700
|
onMouseenter: (t) => Y.value = e
|
|
2741
|
-
}, T(e.day), 43,
|
|
2701
|
+
}, T(e.day), 43, qr))), 128))])
|
|
2742
2702
|
])], 64))), 128))]),
|
|
2743
|
-
c("div",
|
|
2703
|
+
c("div", Jr, [c("div", Yr, [
|
|
2744
2704
|
c("span", { class: g(["range-val", { "is-empty": !Ne.value }]) }, T(Ne.value || "開始日期"), 3),
|
|
2745
2705
|
i[44] ||= c("span", { class: "range-arrow" }, "→", -1),
|
|
2746
2706
|
c("span", { class: g(["range-val", { "is-empty": !Pe.value }]) }, T(Pe.value || "結束日期"), 3)
|
|
@@ -2762,11 +2722,11 @@ var Mn = { class: "icon-wrap" }, Nn = ["innerHTML"], Pn = {
|
|
|
2762
2722
|
key: 0,
|
|
2763
2723
|
class: "mobile-overlay",
|
|
2764
2724
|
onClick: k(Z, ["self"])
|
|
2765
|
-
}, [c("div",
|
|
2725
|
+
}, [c("div", Xr, [
|
|
2766
2726
|
i[51] ||= c("div", { class: "sheet-handle" }, null, -1),
|
|
2767
2727
|
i[52] ||= c("p", { class: "range-modal-title" }, "選擇日期範圍", -1),
|
|
2768
|
-
c("div",
|
|
2769
|
-
c("div",
|
|
2728
|
+
c("div", Zr, [
|
|
2729
|
+
c("div", Qr, [f(j, {
|
|
2770
2730
|
variant: "ghost",
|
|
2771
2731
|
square: "",
|
|
2772
2732
|
onClick: Ie
|
|
@@ -2784,8 +2744,8 @@ var Mn = { class: "icon-wrap" }, Nn = ["innerHTML"], Pn = {
|
|
|
2784
2744
|
}, [c("path", { d: "m15 18-6-6 6-6" })], -1)]]),
|
|
2785
2745
|
_: 1
|
|
2786
2746
|
})]),
|
|
2787
|
-
c("div",
|
|
2788
|
-
c("div",
|
|
2747
|
+
c("div", $r, T(D[G.value]) + " " + T(W.value), 1),
|
|
2748
|
+
c("div", ei, [f(j, {
|
|
2789
2749
|
variant: "ghost",
|
|
2790
2750
|
square: "",
|
|
2791
2751
|
onClick: Le
|
|
@@ -2804,16 +2764,16 @@ var Mn = { class: "icon-wrap" }, Nn = ["innerHTML"], Pn = {
|
|
|
2804
2764
|
_: 1
|
|
2805
2765
|
})])
|
|
2806
2766
|
]),
|
|
2807
|
-
c("div",
|
|
2767
|
+
c("div", ti, [(b(), s(e, null, C(ne, (e) => c("span", {
|
|
2808
2768
|
key: e,
|
|
2809
2769
|
class: "weekday"
|
|
2810
2770
|
}, T(e), 1)), 64))]),
|
|
2811
|
-
c("div",
|
|
2771
|
+
c("div", ni, [(b(!0), s(e, null, C(De.value, (e, t) => (b(), s("div", {
|
|
2812
2772
|
key: t,
|
|
2813
2773
|
class: g(["range-day", ze(e)]),
|
|
2814
2774
|
onClick: (t) => Re(e)
|
|
2815
|
-
}, T(e.day), 11,
|
|
2816
|
-
c("div",
|
|
2775
|
+
}, T(e.day), 11, ri))), 128))]),
|
|
2776
|
+
c("div", ii, [c("div", ai, [
|
|
2817
2777
|
c("span", { class: g(["range-val", { "is-empty": !Ne.value }]) }, T(Ne.value || "開始日期"), 3),
|
|
2818
2778
|
i[49] ||= c("span", { class: "range-arrow" }, "→", -1),
|
|
2819
2779
|
c("span", { class: g(["range-val", { "is-empty": !Pe.value }]) }, T(Pe.value || "結束日期"), 3)
|
|
@@ -2832,7 +2792,7 @@ var Mn = { class: "icon-wrap" }, Nn = ["innerHTML"], Pn = {
|
|
|
2832
2792
|
})
|
|
2833
2793
|
], 512));
|
|
2834
2794
|
}
|
|
2835
|
-
}), [["__scopeId", "data-v-1511ddb7"]]),
|
|
2795
|
+
}), [["__scopeId", "data-v-1511ddb7"]]), si = /* @__PURE__ */ A(/* @__PURE__ */ p({
|
|
2836
2796
|
__name: "NTooltip",
|
|
2837
2797
|
props: {
|
|
2838
2798
|
content: { default: "" },
|
|
@@ -2867,10 +2827,10 @@ var Mn = { class: "icon-wrap" }, Nn = ["innerHTML"], Pn = {
|
|
|
2867
2827
|
_: 3
|
|
2868
2828
|
})], 32));
|
|
2869
2829
|
}
|
|
2870
|
-
}), [["__scopeId", "data-v-7a53ca0a"]]),
|
|
2830
|
+
}), [["__scopeId", "data-v-7a53ca0a"]]), ci = { class: "modal-header" }, li = { class: "modal-title" }, ui = { class: "modal-content" }, di = {
|
|
2871
2831
|
key: 0,
|
|
2872
2832
|
class: "modal-footer"
|
|
2873
|
-
},
|
|
2833
|
+
}, fi = /* @__PURE__ */ A(/* @__PURE__ */ p({
|
|
2874
2834
|
__name: "NModal",
|
|
2875
2835
|
props: {
|
|
2876
2836
|
show: {
|
|
@@ -2914,7 +2874,7 @@ var Mn = { class: "icon-wrap" }, Nn = ["innerHTML"], Pn = {
|
|
|
2914
2874
|
class: "modal-container",
|
|
2915
2875
|
style: _({ width: e.width })
|
|
2916
2876
|
}, [
|
|
2917
|
-
c("header",
|
|
2877
|
+
c("header", ci, [c("h3", li, T(e.title), 1), e.showClose ? (b(), s("button", {
|
|
2918
2878
|
key: 0,
|
|
2919
2879
|
class: "close-btn",
|
|
2920
2880
|
onClick: l
|
|
@@ -2926,18 +2886,18 @@ var Mn = { class: "icon-wrap" }, Nn = ["innerHTML"], Pn = {
|
|
|
2926
2886
|
fill: "currentColor",
|
|
2927
2887
|
d: "M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z"
|
|
2928
2888
|
})], -1)]])) : o("", !0)]),
|
|
2929
|
-
c("main",
|
|
2930
|
-
r.$slots.footer ? (b(), s("footer",
|
|
2889
|
+
c("main", ui, [w(r.$slots, "default", {}, void 0, !0)]),
|
|
2890
|
+
r.$slots.footer ? (b(), s("footer", di, [w(r.$slots, "footer", {}, void 0, !0)])) : o("", !0)
|
|
2931
2891
|
], 4)], 4)) : o("", !0)]),
|
|
2932
2892
|
_: 3
|
|
2933
2893
|
})]));
|
|
2934
2894
|
}
|
|
2935
|
-
}), [["__scopeId", "data-v-ee2fac3c"]]),
|
|
2936
|
-
function
|
|
2895
|
+
}), [["__scopeId", "data-v-ee2fac3c"]]), pi = 0, mi = x([]);
|
|
2896
|
+
function hi() {
|
|
2937
2897
|
let e = function(e, t = {}) {
|
|
2938
|
-
let n = ++
|
|
2898
|
+
let n = ++pi;
|
|
2939
2899
|
return new Promise((r) => {
|
|
2940
|
-
|
|
2900
|
+
mi.push({
|
|
2941
2901
|
id: n,
|
|
2942
2902
|
type: "alert",
|
|
2943
2903
|
message: e,
|
|
@@ -2963,8 +2923,8 @@ function vi() {
|
|
|
2963
2923
|
});
|
|
2964
2924
|
function t(e, t = {}) {
|
|
2965
2925
|
return new Promise((n) => {
|
|
2966
|
-
let r = ++
|
|
2967
|
-
|
|
2926
|
+
let r = ++pi;
|
|
2927
|
+
mi.push({
|
|
2968
2928
|
id: r,
|
|
2969
2929
|
type: "confirm",
|
|
2970
2930
|
message: e,
|
|
@@ -2977,10 +2937,10 @@ function vi() {
|
|
|
2977
2937
|
});
|
|
2978
2938
|
}
|
|
2979
2939
|
function n() {
|
|
2980
|
-
for (;
|
|
2940
|
+
for (; mi.length > 0;) mi.shift().resolve(!1);
|
|
2981
2941
|
}
|
|
2982
2942
|
return {
|
|
2983
|
-
alerts:
|
|
2943
|
+
alerts: mi,
|
|
2984
2944
|
alert: e,
|
|
2985
2945
|
confirm: t,
|
|
2986
2946
|
clearAlerts: n
|
|
@@ -2988,13 +2948,13 @@ function vi() {
|
|
|
2988
2948
|
}
|
|
2989
2949
|
//#endregion
|
|
2990
2950
|
//#region src/components/NAlert.vue?vue&type=script&setup=true&lang.ts
|
|
2991
|
-
var
|
|
2951
|
+
var gi = { class: "cards-wrapper" }, _i = ["innerHTML"], vi = { class: "card-body" }, yi = {
|
|
2992
2952
|
key: 0,
|
|
2993
2953
|
class: "card-title"
|
|
2994
|
-
},
|
|
2954
|
+
}, bi = { class: "card-message" }, xi = { class: "card-footer" }, Si = ["onClick"], Ci = ["onClick"], wi = /* @__PURE__ */ A(/* @__PURE__ */ p({
|
|
2995
2955
|
__name: "NAlert",
|
|
2996
2956
|
setup(n) {
|
|
2997
|
-
let { alerts: r, clearAlerts: i } =
|
|
2957
|
+
let { alerts: r, clearAlerts: i } = hi(), l = {
|
|
2998
2958
|
success: "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"72\" height=\"72\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M20 6 9 17l-5-5\"/></svg>",
|
|
2999
2959
|
warning: "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"72\" height=\"72\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\"/><path d=\"M12 9v4\"/><path d=\"M12 17h.01\"/></svg>",
|
|
3000
2960
|
danger: "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"72\" height=\"72\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"m15 9-6 6\"/><path d=\"m9 9 6 6\"/></svg>",
|
|
@@ -3031,7 +2991,7 @@ var yi = { class: "cards-wrapper" }, bi = ["innerHTML"], xi = { class: "card-bod
|
|
|
3031
2991
|
}
|
|
3032
2992
|
return v(() => document.addEventListener("keydown", m)), y(() => {
|
|
3033
2993
|
document.removeEventListener("keydown", m), i();
|
|
3034
|
-
}), (n, i) => (b(), a(t, { to: "body" }, [c("div", { class: g(["backdrop", { open: E(r).length > 0 }]) }, null, 2), c("div", { class: g(["alert-stack", { open: E(r).length > 0 }]) }, [c("div",
|
|
2994
|
+
}), (n, i) => (b(), a(t, { to: "body" }, [c("div", { class: g(["backdrop", { open: E(r).length > 0 }]) }, null, 2), c("div", { class: g(["alert-stack", { open: E(r).length > 0 }]) }, [c("div", gi, [(b(!0), s(e, null, C(E(r), (e, t) => (b(), s("div", {
|
|
3035
2995
|
key: e.id,
|
|
3036
2996
|
class: g(["alert-card", `status-${e.status}`]),
|
|
3037
2997
|
style: _(d(t))
|
|
@@ -3039,19 +2999,19 @@ var yi = { class: "cards-wrapper" }, bi = ["innerHTML"], xi = { class: "card-bod
|
|
|
3039
2999
|
c("div", {
|
|
3040
3000
|
class: "card-icon",
|
|
3041
3001
|
innerHTML: u(e)
|
|
3042
|
-
}, null, 8,
|
|
3043
|
-
c("div",
|
|
3044
|
-
c("div",
|
|
3002
|
+
}, null, 8, _i),
|
|
3003
|
+
c("div", vi, [e.title ? (b(), s("p", yi, T(e.title), 1)) : o("", !0), c("p", bi, T(e.message), 1)]),
|
|
3004
|
+
c("div", xi, [e.type === "confirm" ? (b(), s("button", {
|
|
3045
3005
|
key: 0,
|
|
3046
3006
|
class: "btn btn-cancel",
|
|
3047
3007
|
onClick: (t) => p(e)
|
|
3048
|
-
}, T(e.cancelText), 9,
|
|
3008
|
+
}, T(e.cancelText), 9, Si)) : o("", !0), c("button", {
|
|
3049
3009
|
class: g(["btn btn-confirm", `btn-${e.status}`]),
|
|
3050
3010
|
onClick: (t) => f(e)
|
|
3051
|
-
}, T(e.confirmText), 11,
|
|
3011
|
+
}, T(e.confirmText), 11, Ci)])
|
|
3052
3012
|
], 6))), 128))])], 2)]));
|
|
3053
3013
|
}
|
|
3054
|
-
}), [["__scopeId", "data-v-
|
|
3014
|
+
}), [["__scopeId", "data-v-617a4dbd"]]), Ti = { class: "nav" }, Ei = ["onClick"], Di = ["innerHTML"], Oi = { class: "nav-list" }, ki = ["href", "onClick"], Ai = ["innerHTML"], ji = { class: "nav-text" }, Mi = { class: "user-capsule" }, Ni = /* @__PURE__ */ A(/* @__PURE__ */ p({
|
|
3055
3015
|
__name: "NSidebar",
|
|
3056
3016
|
props: {
|
|
3057
3017
|
isOpen: {
|
|
@@ -3062,7 +3022,7 @@ var yi = { class: "cards-wrapper" }, bi = ["innerHTML"], xi = { class: "card-bod
|
|
|
3062
3022
|
},
|
|
3063
3023
|
emits: ["update:isOpen", "logout"],
|
|
3064
3024
|
setup(n, { emit: r }) {
|
|
3065
|
-
let { isMenuExpanded: i, toggleMenu: o } =
|
|
3025
|
+
let { isMenuExpanded: i, toggleMenu: o } = Pt(), l = S(!1), d = kt(), p = r, m = (e) => {
|
|
3066
3026
|
let t = d.currentRoute.value.path;
|
|
3067
3027
|
return e.children?.some((e) => e.route === t);
|
|
3068
3028
|
}, h = (e) => d.currentRoute.value.path === e, _ = (e) => {
|
|
@@ -3100,13 +3060,13 @@ var yi = { class: "cards-wrapper" }, bi = ["innerHTML"], xi = { class: "card-bod
|
|
|
3100
3060
|
onMouseenter: d[2] ||= (e) => l.value = !0
|
|
3101
3061
|
}, [
|
|
3102
3062
|
d[9] ||= c("div", { class: "header" }, [c("div", { class: "brand-logo" }, [c("span", { class: "logo-text" }, "NICKLABS"), c("span", { class: "logo-icon" }, "N")])], -1),
|
|
3103
|
-
c("div",
|
|
3063
|
+
c("div", Ti, [(b(!0), s(e, null, C(n.menus, (t) => (b(), s("div", { class: g(["menu", {
|
|
3104
3064
|
open: E(i)(t.title),
|
|
3105
3065
|
active: m(t)
|
|
3106
3066
|
}]) }, [c("div", {
|
|
3107
3067
|
class: "title",
|
|
3108
3068
|
onClick: (e) => E(o)(t.title)
|
|
3109
|
-
}, [c("div", null, [c("div", { innerHTML: t.icon }, null, 8,
|
|
3069
|
+
}, [c("div", null, [c("div", { innerHTML: t.icon }, null, 8, Di), c("span", null, T(t.title), 1)]), d[6] ||= c("svg", {
|
|
3110
3070
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3111
3071
|
width: "14",
|
|
3112
3072
|
height: "14",
|
|
@@ -3117,11 +3077,11 @@ var yi = { class: "cards-wrapper" }, bi = ["innerHTML"], xi = { class: "card-bod
|
|
|
3117
3077
|
"stroke-linecap": "round",
|
|
3118
3078
|
"stroke-linejoin": "round",
|
|
3119
3079
|
class: "icon"
|
|
3120
|
-
}, [c("path", { d: "m9 18 6-6-6-6" })], -1)], 8,
|
|
3080
|
+
}, [c("path", { d: "m9 18 6-6-6-6" })], -1)], 8, Ei), c("div", Oi, [c("div", null, [(b(!0), s(e, null, C(t.children, (e) => (b(), s("a", {
|
|
3121
3081
|
href: e.route,
|
|
3122
3082
|
onClick: k((t) => _(e.route), ["prevent"])
|
|
3123
|
-
}, [c("div", { class: g(["nav-item", { active: h(e.route) }]) }, [c("div", { innerHTML: e.icon }, null, 8,
|
|
3124
|
-
c("div",
|
|
3083
|
+
}, [c("div", { class: g(["nav-item", { active: h(e.route) }]) }, [c("div", { innerHTML: e.icon }, null, 8, Ai), c("span", ji, T(e.title), 1)], 2)], 8, ki))), 256))])])], 2))), 256))]),
|
|
3084
|
+
c("div", Mi, [d[8] ||= u("<div class=\"user-avatar\" data-v-bb988f83><img src=\"https://api.dicebear.com/7.x/pixel-art/svg?seed=Nick\" alt=\"User Avatar\" data-v-bb988f83></div><div class=\"user-info\" data-v-bb988f83><div class=\"user-name-row\" data-v-bb988f83><span class=\"user-name\" data-v-bb988f83>Nick Huang</span></div></div>", 2), f(j, {
|
|
3125
3085
|
class: "logout-btn",
|
|
3126
3086
|
intent: "error",
|
|
3127
3087
|
variant: "ghost",
|
|
@@ -3158,7 +3118,7 @@ var yi = { class: "cards-wrapper" }, bi = ["innerHTML"], xi = { class: "card-bod
|
|
|
3158
3118
|
}, null, 2)]))
|
|
3159
3119
|
], 34));
|
|
3160
3120
|
}
|
|
3161
|
-
}), [["__scopeId", "data-v-bb988f83"]]),
|
|
3121
|
+
}), [["__scopeId", "data-v-bb988f83"]]), Pi = { class: "layout" }, Fi = { class: "main-content" }, Ii = /* @__PURE__ */ A(/* @__PURE__ */ p({
|
|
3162
3122
|
__name: "NLayout",
|
|
3163
3123
|
props: {
|
|
3164
3124
|
isShowSidebar: {
|
|
@@ -3169,8 +3129,8 @@ var yi = { class: "cards-wrapper" }, bi = ["innerHTML"], xi = { class: "card-bod
|
|
|
3169
3129
|
},
|
|
3170
3130
|
emits: ["logout"],
|
|
3171
3131
|
setup(e, { emit: t }) {
|
|
3172
|
-
let n =
|
|
3173
|
-
return (t, r) => (b(), s("div",
|
|
3132
|
+
let n = Pt();
|
|
3133
|
+
return (t, r) => (b(), s("div", Pi, [e.isShowSidebar ? (b(), a(Ni, {
|
|
3174
3134
|
key: 0,
|
|
3175
3135
|
isOpen: E(n).isSidebarExpanded(),
|
|
3176
3136
|
"onUpdate:isOpen": r[0] ||= (e) => E(n).toggleSidebar(),
|
|
@@ -3178,18 +3138,18 @@ var yi = { class: "cards-wrapper" }, bi = ["innerHTML"], xi = { class: "card-bod
|
|
|
3178
3138
|
onLogout: r[1] ||= () => {
|
|
3179
3139
|
t.$router.push({ name: "login" });
|
|
3180
3140
|
}
|
|
3181
|
-
}, null, 8, ["isOpen", "menus"])) : o("", !0), c("main",
|
|
3141
|
+
}, null, 8, ["isOpen", "menus"])) : o("", !0), c("main", Fi, [w(t.$slots, "default", {}, void 0, !0), r[2] ||= c("div", { class: "copyright" }, " copyright © 2026 NickLabs. All rights reserved. ", -1)])]));
|
|
3182
3142
|
}
|
|
3183
|
-
}), [["__scopeId", "data-v-
|
|
3143
|
+
}), [["__scopeId", "data-v-3e3ee72e"]]), Li = { class: "topbar" }, Ri = { class: "topbar-left" }, zi = { class: "topbar-right" }, Bi = {
|
|
3184
3144
|
key: 0,
|
|
3185
3145
|
class: "pill"
|
|
3186
|
-
},
|
|
3146
|
+
}, Vi = {
|
|
3187
3147
|
key: 0,
|
|
3188
3148
|
class: "name"
|
|
3189
|
-
},
|
|
3149
|
+
}, Hi = {
|
|
3190
3150
|
key: 1,
|
|
3191
3151
|
class: "separator"
|
|
3192
|
-
},
|
|
3152
|
+
}, Ui = /* @__PURE__ */ A(/* @__PURE__ */ p({
|
|
3193
3153
|
__name: "NNavigation",
|
|
3194
3154
|
props: {
|
|
3195
3155
|
isShowSidebar: {
|
|
@@ -3214,7 +3174,7 @@ var yi = { class: "cards-wrapper" }, bi = ["innerHTML"], xi = { class: "card-bod
|
|
|
3214
3174
|
let n = t, r = () => {
|
|
3215
3175
|
document.fullscreenElement ? document.exitFullscreen?.() : document.documentElement.requestFullscreen();
|
|
3216
3176
|
};
|
|
3217
|
-
return (t, i) => (b(), s("header",
|
|
3177
|
+
return (t, i) => (b(), s("header", Li, [c("div", Ri, [e.isShowSidebar ? (b(), a(j, {
|
|
3218
3178
|
key: 0,
|
|
3219
3179
|
onClick: i[0] ||= (e) => n("toggleSidebar"),
|
|
3220
3180
|
padding: "8px"
|
|
@@ -3257,9 +3217,9 @@ var yi = { class: "cards-wrapper" }, bi = ["innerHTML"], xi = { class: "card-bod
|
|
|
3257
3217
|
c("path", { d: "M16 21h3a2 2 0 0 0 2-2v-3" })
|
|
3258
3218
|
], -1)]]),
|
|
3259
3219
|
_: 1
|
|
3260
|
-
})) : o("", !0)]), c("div",
|
|
3261
|
-
e.isShowUser ? (b(), s("span",
|
|
3262
|
-
e.isShowUser && e.isShowLogoutButton ? (b(), s("div",
|
|
3220
|
+
})) : o("", !0)]), c("div", zi, [e.isShowUser || e.isShowLogoutButton ? (b(), s("div", Bi, [
|
|
3221
|
+
e.isShowUser ? (b(), s("span", Vi, "Nick")) : o("", !0),
|
|
3222
|
+
e.isShowUser && e.isShowLogoutButton ? (b(), s("div", Hi)) : o("", !0),
|
|
3263
3223
|
e.isShowLogoutButton ? (b(), a(j, {
|
|
3264
3224
|
key: 2,
|
|
3265
3225
|
variant: "mute",
|
|
@@ -3285,10 +3245,10 @@ var yi = { class: "cards-wrapper" }, bi = ["innerHTML"], xi = { class: "card-bod
|
|
|
3285
3245
|
})) : o("", !0)
|
|
3286
3246
|
])) : o("", !0)])]));
|
|
3287
3247
|
}
|
|
3288
|
-
}), [["__scopeId", "data-v-bb912f40"]]),
|
|
3248
|
+
}), [["__scopeId", "data-v-bb912f40"]]), Wi = { class: "brand" }, Gi = ["src", "alt"], Ki = {
|
|
3289
3249
|
key: 1,
|
|
3290
3250
|
class: "icon"
|
|
3291
|
-
},
|
|
3251
|
+
}, qi = { key: 2 }, Ji = { key: 3 }, Yi = /* @__PURE__ */ A(/* @__PURE__ */ p({
|
|
3292
3252
|
__name: "NLoginLayout",
|
|
3293
3253
|
props: {
|
|
3294
3254
|
backgroundImage: { default: "" },
|
|
@@ -3301,24 +3261,24 @@ var yi = { class: "cards-wrapper" }, bi = ["innerHTML"], xi = { class: "card-bod
|
|
|
3301
3261
|
return (n, r) => (b(), s("div", {
|
|
3302
3262
|
class: "login-wrapper",
|
|
3303
3263
|
style: _({ "--login-bg": e.backgroundImage ? `url('${e.backgroundImage}')` : "var(--bg-gradient)" })
|
|
3304
|
-
}, [f(
|
|
3264
|
+
}, [f(tn, {
|
|
3305
3265
|
size: "lg",
|
|
3306
3266
|
radius: "xl",
|
|
3307
3267
|
class: "card"
|
|
3308
3268
|
}, {
|
|
3309
|
-
default: O(() => [c("div",
|
|
3269
|
+
default: O(() => [c("div", Wi, [
|
|
3310
3270
|
t.value ? (b(), s("img", {
|
|
3311
3271
|
key: 0,
|
|
3312
3272
|
class: "logo-img",
|
|
3313
3273
|
src: e.logo,
|
|
3314
3274
|
alt: e.title
|
|
3315
|
-
}, null, 8,
|
|
3316
|
-
e.title ? (b(), s("h1",
|
|
3317
|
-
e.description ? (b(), s("p",
|
|
3275
|
+
}, null, 8, Gi)) : (b(), s("div", Ki, T(e.logo), 1)),
|
|
3276
|
+
e.title ? (b(), s("h1", qi, T(e.title), 1)) : o("", !0),
|
|
3277
|
+
e.description ? (b(), s("p", Ji, T(e.description), 1)) : o("", !0)
|
|
3318
3278
|
]), w(n.$slots, "default", {}, void 0, !0)]),
|
|
3319
3279
|
_: 3
|
|
3320
3280
|
})], 4));
|
|
3321
3281
|
}
|
|
3322
3282
|
}), [["__scopeId", "data-v-f0866bc5"]]);
|
|
3323
3283
|
//#endregion
|
|
3324
|
-
export {
|
|
3284
|
+
export { wi as NAlert, j as NButton, tn as NCard, V as NCheckbox, Qn as NCode, oi as NDatePicker, en as NEmpty, Tt as NFileSelect, Yt as NForm, le as NInput, Ii as NLayout, Tn as NList, Un as NLoading, Yi as NLoginLayout, fi as NModal, Ui as NNavigation, G as NSelect, Ni as NSidebar, er as NSwitch, Sn as NTable, tr as NTag, B as NTextarea, Fn as NToast, si as NTooltip, hi as useAlert, Pt as useSidebarManager, On as useToast };
|