nicklabs-ui 1.0.12 → 1.0.14

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
@@ -656,7 +656,7 @@ var ie = ["type", "disabled"], ae = /* @__PURE__ */ p({
656
656
  var t = 65536 + (e.charCodeAt(0) - 55296) * 1024 + (e.charCodeAt(1) - 56320);
657
657
  return Y(240 | t >>> 18 & 7) + Y(128 | t >>> 12 & 63) + Y(128 | t >>> 6 & 63) + Y(128 | t & 63);
658
658
  }
659
- }, Ne = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, Pe = (e) => e.replace(Ne, Me), X = W ? (e) => Buffer.from(e, "utf8").toString("base64") : K ? (e) => je(K.encode(e)) : (e) => Ae(Pe(e)), Fe = (e, t = !1) => t ? Oe(X(e)) : X(e), Ie = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g, Le = (e) => {
659
+ }, Ne = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, Pe = (e) => e.replace(Ne, Me), Fe = W ? (e) => Buffer.from(e, "utf8").toString("base64") : K ? (e) => je(K.encode(e)) : (e) => Ae(Pe(e)), Ie = (e, t = !1) => t ? Oe(Fe(e)) : Fe(e), Le = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g, Re = (e) => {
660
660
  switch (e.length) {
661
661
  case 4:
662
662
  var t = ((7 & e.charCodeAt(0)) << 18 | (63 & e.charCodeAt(1)) << 12 | (63 & e.charCodeAt(2)) << 6 | 63 & e.charCodeAt(3)) - 65536;
@@ -664,59 +664,59 @@ var ie = ["type", "disabled"], ae = /* @__PURE__ */ p({
664
664
  case 3: return Y((15 & e.charCodeAt(0)) << 12 | (63 & e.charCodeAt(1)) << 6 | 63 & e.charCodeAt(2));
665
665
  default: return Y((31 & e.charCodeAt(0)) << 6 | 63 & e.charCodeAt(1));
666
666
  }
667
- }, Re = (e) => e.replace(Ie, Le), ze = typeof atob == "function" ? (e) => atob(ke(e)) : W ? (e) => Buffer.from(e, "base64").toString("binary") : (e) => {
667
+ }, ze = (e) => e.replace(Le, Re), Be = typeof atob == "function" ? (e) => atob(ke(e)) : W ? (e) => Buffer.from(e, "base64").toString("binary") : (e) => {
668
668
  if (e = e.replace(/\s+/g, ""), !Ee.test(e)) throw TypeError("malformed base64.");
669
669
  e += "==".slice(2 - (e.length & 3));
670
670
  let t, n, r, i = [];
671
671
  for (let a = 0; a < e.length;) t = J[e.charAt(a++)] << 18 | J[e.charAt(a++)] << 12 | (n = J[e.charAt(a++)]) << 6 | (r = J[e.charAt(a++)]), n === 64 ? i.push(Y(t >> 16 & 255)) : r === 64 ? i.push(Y(t >> 16 & 255, t >> 8 & 255)) : i.push(Y(t >> 16 & 255, t >> 8 & 255, t & 255));
672
672
  return i.join("");
673
- }, Be = W ? (e) => De(Buffer.from(e, "base64")) : (e) => De(ze(e).split("").map((e) => e.charCodeAt(0))), Ve = W ? (e) => Buffer.from(e, "base64").toString("utf8") : G ? (e) => G.decode(Be(e)) : (e) => Re(ze(e)), Z = (e) => ke(e.replace(/[-_]/g, (e) => e == "-" ? "+" : "/")), He = (e) => Ve(Z(e)), Ue = "N_UTILS_KEY", Q = [], We = () => {
674
- let e = Fe(JSON.stringify(Q));
675
- localStorage.setItem(Ue, e);
676
- }, Ge = () => {
677
- let e = localStorage.getItem(Ue) ?? "";
673
+ }, Ve = W ? (e) => De(Buffer.from(e, "base64")) : (e) => De(Be(e).split("").map((e) => e.charCodeAt(0))), He = W ? (e) => Buffer.from(e, "base64").toString("utf8") : G ? (e) => G.decode(Ve(e)) : (e) => ze(Be(e)), X = (e) => ke(e.replace(/[-_]/g, (e) => e == "-" ? "+" : "/")), Ue = (e) => He(X(e)), We = "N_UTILS_KEY", Z = [], Ge = () => {
674
+ let e = Ie(JSON.stringify(Z));
675
+ localStorage.setItem(We, e);
676
+ }, Ke = () => {
677
+ let e = localStorage.getItem(We) ?? "";
678
678
  if (e.length == 0) return [];
679
679
  try {
680
- return JSON.parse(He(e));
680
+ return JSON.parse(Ue(e));
681
681
  } catch {
682
682
  return [];
683
683
  }
684
- }, Ke = () => {
685
- Q.clear();
686
- let e = Ge(), t = (/* @__PURE__ */ new Date()).getTime();
684
+ }, qe = () => {
685
+ Z.clear();
686
+ let e = Ke(), t = (/* @__PURE__ */ new Date()).getTime();
687
687
  e.forEach((e) => {
688
- e.expireTime && e.expireTime < t || Q.push({
688
+ e.expireTime && e.expireTime < t || Z.push({
689
689
  key: e.key,
690
690
  value: e.value,
691
691
  expireTime: e.expireTime
692
692
  });
693
- }), Q.length > 0 && We();
694
- }, qe = (e) => (Ke(), Q.some((t) => t.key == e)), Je = (e, t, n) => {
695
- Xe(e);
693
+ }), Z.length > 0 && Ge();
694
+ }, Je = (e) => (qe(), Z.some((t) => t.key == e)), Ye = (e, t, n) => {
695
+ Ze(e);
696
696
  let r = {
697
697
  key: e,
698
698
  value: t
699
699
  };
700
- n && (r.expireTime = (/* @__PURE__ */ new Date()).getTime() + n * 1e3), Q.push(r), We();
701
- }, Ye = (e, t) => {
702
- Ke();
703
- let n = Q.find((t) => t.key == e);
700
+ n && (r.expireTime = (/* @__PURE__ */ new Date()).getTime() + n * 1e3), Z.push(r), Ge();
701
+ }, Xe = (e, t) => {
702
+ qe();
703
+ let n = Z.find((t) => t.key == e);
704
704
  return n ? n.value : t;
705
- }, Xe = (e) => {
706
- Ke();
707
- let t = Q.findIndex((t) => t.key == e);
708
- t != -1 && (Q.splice(t, 1), We());
709
- }, Ze = {
710
- set: Je,
711
- get: Ye,
712
- has: qe,
713
- forget: Xe
714
- }, Qe = { fullScreenToggle: (() => {
705
+ }, Ze = (e) => {
706
+ qe();
707
+ let t = Z.findIndex((t) => t.key == e);
708
+ t != -1 && (Z.splice(t, 1), Ge());
709
+ }, Qe = {
710
+ set: Ye,
711
+ get: Xe,
712
+ has: Je,
713
+ forget: Ze
714
+ }, $e = { fullScreenToggle: (() => {
715
715
  let e = !1;
716
716
  return () => {
717
717
  e ? document.exitFullscreen() : document.documentElement.requestFullscreen(), e = !e;
718
718
  };
719
- })() }, $e = {
719
+ })() }, et = {
720
720
  random: (e = 5) => Array(e).fill(null).map(() => {
721
721
  let e = Math.random() * 62;
722
722
  return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(e);
@@ -724,9 +724,9 @@ var ie = ["type", "disabled"], ae = /* @__PURE__ */ p({
724
724
  copy: (e) => {
725
725
  navigator.clipboard.writeText(e);
726
726
  }
727
- }, et = [], tt = (e = "", t = !1, n = !1) => (et.clear(), new Promise((r, i) => {
727
+ }, tt = [], Q = (e = "", t = !1, n = !1) => (tt.clear(), new Promise((r, i) => {
728
728
  let a = document.createElement("input");
729
- et.push(a), a.hidden = !0, a.type = "file", a.accept = e, a.multiple = t, a.onchange = async (e) => {
729
+ tt.push(a), a.hidden = !0, a.type = "file", a.accept = e, a.multiple = t, a.onchange = async (e) => {
730
730
  let t = [];
731
731
  a.files && a.files.length === 0 && r(t);
732
732
  for (let e of a.files) {
@@ -745,15 +745,15 @@ var ie = ["type", "disabled"], ae = /* @__PURE__ */ p({
745
745
  i(e);
746
746
  }, a.click();
747
747
  })), nt = {
748
- all: (e = !1, t = !1) => tt("", e, t),
749
- image: async (e = !1, t = !1) => tt([
748
+ all: (e = !1, t = !1) => Q("", e, t),
749
+ image: async (e = !1, t = !1) => Q([
750
750
  "image/jpg",
751
751
  "image/jpeg",
752
752
  "image/png",
753
753
  "image/gif",
754
754
  "image/bmp"
755
755
  ].join(","), e, t),
756
- documentFile: async (e = !1, t = !1) => tt([
756
+ documentFile: async (e = !1, t = !1) => Q([
757
757
  ".pdf",
758
758
  "application/pdf",
759
759
  ".doc",
@@ -764,20 +764,20 @@ var ie = ["type", "disabled"], ae = /* @__PURE__ */ p({
764
764
  "text/plain",
765
765
  ".md"
766
766
  ].join(","), e, t),
767
- video: async (e = !1, t = !1) => tt([
767
+ video: async (e = !1, t = !1) => Q([
768
768
  "video/mp4",
769
769
  "video/quicktime",
770
770
  "video/webm",
771
771
  "video/ogg"
772
772
  ].join(","), e, t),
773
- audio: async (e = !1, t = !1) => tt([
773
+ audio: async (e = !1, t = !1) => Q([
774
774
  "audio/mp3",
775
775
  "audio/wav",
776
776
  "audio/ogg",
777
777
  "audio/aac",
778
778
  "audio/flac"
779
779
  ].join(","), e, t),
780
- custom: (e = "", t = !1, n = !1) => tt(e, t, n)
780
+ custom: (e = "", t = !1, n = !1) => Q(e, t, n)
781
781
  }, rt = (e) => new Promise((t, n) => {
782
782
  let r = new FileReader();
783
783
  r.readAsDataURL(e), r.onload = () => {
@@ -836,9 +836,9 @@ var ie = ["type", "disabled"], ae = /* @__PURE__ */ p({
836
836
  let e = navigator.userAgent;
837
837
  return !!/(tablet|ipad|playbook|silk)|(android(?!.*mobi))/i.test(e);
838
838
  }, $ = {
839
- store: Ze,
840
- screen: Qe,
841
- str: $e,
839
+ store: Qe,
840
+ screen: $e,
841
+ str: et,
842
842
  input: nt,
843
843
  file: ot,
844
844
  link: st,
@@ -2031,7 +2031,7 @@ var wn = { class: "icon-wrap" }, Tn = ["innerHTML"], En = {
2031
2031
  if (y.value) F.value = { ...e }, P.value = new Date(e.year, e.month, 1), ye(e);
2032
2032
  else {
2033
2033
  let t = u(e.year, e.month, e.day, 0, 0);
2034
- l("update:modelValue", t), l("change", t), Z();
2034
+ l("update:modelValue", t), l("change", t), X();
2035
2035
  }
2036
2036
  }
2037
2037
  function xe(e) {
@@ -2088,7 +2088,7 @@ var wn = { class: "icon-wrap" }, Tn = ["innerHTML"], En = {
2088
2088
  return `${e.year}-${M(e.month + 1)}-${M(e.day)}`;
2089
2089
  }
2090
2090
  return t.start;
2091
- }), X = i(() => {
2091
+ }), Fe = i(() => {
2092
2092
  if (G.value) return "";
2093
2093
  if (q.value) {
2094
2094
  let e = q.value;
@@ -2096,7 +2096,7 @@ var wn = { class: "icon-wrap" }, Tn = ["innerHTML"], En = {
2096
2096
  }
2097
2097
  return t.end;
2098
2098
  });
2099
- function Fe() {
2099
+ function Ie() {
2100
2100
  let e = p(t.start) ?? {
2101
2101
  year: ae,
2102
2102
  month: A,
@@ -2106,20 +2106,20 @@ var wn = { class: "icon-wrap" }, Tn = ["innerHTML"], En = {
2106
2106
  };
2107
2107
  U.value = e.year, W.value = e.month, K.value = je(t.start), q.value = je(t.end), G.value = null, J.value = null;
2108
2108
  }
2109
- function Ie() {
2109
+ function Le() {
2110
2110
  W.value === 0 ? (U.value--, W.value = 11) : W.value--;
2111
2111
  }
2112
- function Le() {
2112
+ function Re() {
2113
2113
  W.value === 11 ? (U.value++, W.value = 0) : W.value++;
2114
2114
  }
2115
- function Re(e) {
2115
+ function ze(e) {
2116
2116
  if (!G.value) G.value = { ...e }, K.value = null, q.value = null;
2117
2117
  else {
2118
2118
  let t = G.value, [n, r] = ce(t, e) <= 0 ? [t, e] : [e, t];
2119
2119
  K.value = n, q.value = r, G.value = null, J.value = null;
2120
2120
  }
2121
2121
  }
2122
- function ze(e) {
2122
+ function Be(e) {
2123
2123
  let t = e.year === ae && e.month === A && e.day === oe, n = G.value && e.year === G.value.year && e.month === G.value.month && e.day === G.value.day, r = Me.value, i = Ne.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 && ce(e, r) > 0 && ce(e, i) < 0;
2124
2124
  return {
2125
2125
  "is-other-month": !e.isCurrentMonth,
@@ -2130,30 +2130,30 @@ var wn = { class: "icon-wrap" }, Tn = ["innerHTML"], En = {
2130
2130
  "is-pending": !!n && !a
2131
2131
  };
2132
2132
  }
2133
- function Be() {
2133
+ function Ve() {
2134
2134
  if (!K.value || !q.value) return;
2135
2135
  let e = K.value, t = q.value;
2136
- l("update:start", `${e.year}-${M(e.month + 1)}-${M(e.day)}`), l("update:end", `${t.year}-${M(t.month + 1)}-${M(t.day)}`), Z();
2136
+ l("update:start", `${e.year}-${M(e.month + 1)}-${M(e.day)}`), l("update:end", `${t.year}-${M(t.month + 1)}-${M(t.day)}`), X();
2137
2137
  }
2138
- function Ve() {
2139
- t.disabled || (x.value || (t.range ? Fe() : he()), x.value = !x.value);
2138
+ function He() {
2139
+ t.disabled || (x.value || (t.range ? Ie() : he()), x.value = !x.value);
2140
2140
  }
2141
- function Z() {
2141
+ function X() {
2142
2142
  x.value = !1, G.value = null, J.value = null;
2143
2143
  }
2144
- function He() {
2144
+ function Ue() {
2145
2145
  N.value = N.value === "date" ? "year" : "date";
2146
2146
  }
2147
- let Ue = (e) => {
2147
+ let We = (e) => {
2148
2148
  let t = e.target;
2149
- w.value?.contains(t) || E.value || Z();
2149
+ w.value?.contains(t) || E.value || X();
2150
2150
  };
2151
2151
  v(() => {
2152
- document.addEventListener("mousedown", Ue), window.addEventListener("resize", ee);
2152
+ document.addEventListener("mousedown", We), window.addEventListener("resize", ee);
2153
2153
  }), _(() => {
2154
- document.removeEventListener("mousedown", Ue), window.removeEventListener("resize", ee), D && clearTimeout(D), H();
2154
+ document.removeEventListener("mousedown", We), window.removeEventListener("resize", ee), D && clearTimeout(D), H();
2155
2155
  });
2156
- let Q = (e) => {
2156
+ let Z = (e) => {
2157
2157
  e.stopPropagation(), l("update:modelValue", ""), l("change", ""), l("clear");
2158
2158
  };
2159
2159
  return (r, i) => (b(), s("div", {
@@ -2167,13 +2167,13 @@ var wn = { class: "icon-wrap" }, Tn = ["innerHTML"], En = {
2167
2167
  disabled: t.disabled
2168
2168
  }]) }, [c("div", {
2169
2169
  class: "picker-trigger",
2170
- onClick: Ve
2170
+ onClick: He
2171
2171
  }, [c("span", { class: h(["text", { placeholder: !me.value }]) }, T(me.value || t.placeholder), 3), t.clearable && pe.value && !t.range ? (b(), a(j, {
2172
2172
  key: 0,
2173
2173
  variant: "ghost",
2174
2174
  square: "",
2175
2175
  class: "clear",
2176
- onClick: Q
2176
+ onClick: Z
2177
2177
  }, {
2178
2178
  default: O(() => [...i[20] ||= [c("svg", {
2179
2179
  xmlns: "http://www.w3.org/2000/svg",
@@ -2228,7 +2228,7 @@ var wn = { class: "icon-wrap" }, Tn = ["innerHTML"], En = {
2228
2228
  })) : o("", !0)]),
2229
2229
  c("div", {
2230
2230
  class: "header-title",
2231
- onClick: He
2231
+ onClick: Ue
2232
2232
  }, [N.value === "date" ? (b(), s(e, { key: 0 }, [d(T(te[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))]),
2233
2233
  c("div", tr, [N.value === "date" ? (b(), a(j, {
2234
2234
  key: 0,
@@ -2417,7 +2417,7 @@ var wn = { class: "icon-wrap" }, Tn = ["innerHTML"], En = {
2417
2417
  default: O(() => [x.value && !t.range && E.value ? (b(), s("div", {
2418
2418
  key: 0,
2419
2419
  class: "mobile-overlay",
2420
- onClick: k(Z, ["self"])
2420
+ onClick: k(X, ["self"])
2421
2421
  }, [c("div", mr, [
2422
2422
  i[41] ||= c("div", { class: "sheet-handle" }, null, -1),
2423
2423
  c("div", hr, [
@@ -2459,7 +2459,7 @@ var wn = { class: "icon-wrap" }, Tn = ["innerHTML"], En = {
2459
2459
  })) : o("", !0)]),
2460
2460
  c("div", {
2461
2461
  class: "header-title",
2462
- onClick: He
2462
+ onClick: Ue
2463
2463
  }, [N.value === "date" ? (b(), s(e, { key: 0 }, [d(T(te[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))]),
2464
2464
  c("div", _r, [N.value === "date" ? (b(), a(j, {
2465
2465
  key: 0,
@@ -2648,7 +2648,7 @@ var wn = { class: "icon-wrap" }, Tn = ["innerHTML"], En = {
2648
2648
  default: O(() => [x.value && t.range && !E.value ? (b(), s("div", {
2649
2649
  key: 0,
2650
2650
  class: "range-overlay",
2651
- onClick: k(Z, ["self"])
2651
+ onClick: k(X, ["self"])
2652
2652
  }, [c("div", Ar, [
2653
2653
  i[46] ||= c("p", { class: "range-modal-title" }, "選擇日期範圍", -1),
2654
2654
  c("div", jr, [(b(!0), s(e, null, C(Ae.value, (t) => (b(), s(e, { key: t.isLeft ? "left" : "right" }, [t.isLeft ? o("", !0) : (b(), s("div", Mr)), c("div", Nr, [
@@ -2657,7 +2657,7 @@ var wn = { class: "icon-wrap" }, Tn = ["innerHTML"], En = {
2657
2657
  key: 0,
2658
2658
  variant: "ghost",
2659
2659
  square: "",
2660
- onClick: Ie
2660
+ onClick: Le
2661
2661
  }, {
2662
2662
  default: O(() => [...i[42] ||= [c("svg", {
2663
2663
  xmlns: "http://www.w3.org/2000/svg",
@@ -2677,7 +2677,7 @@ var wn = { class: "icon-wrap" }, Tn = ["innerHTML"], En = {
2677
2677
  key: 0,
2678
2678
  variant: "ghost",
2679
2679
  square: "",
2680
- onClick: Le
2680
+ onClick: Re
2681
2681
  }, {
2682
2682
  default: O(() => [...i[43] ||= [c("svg", {
2683
2683
  xmlns: "http://www.w3.org/2000/svg",
@@ -2699,21 +2699,21 @@ var wn = { class: "icon-wrap" }, Tn = ["innerHTML"], En = {
2699
2699
  }, T(e), 1)), 64))]),
2700
2700
  c("div", Vr, [(b(!0), s(e, null, C(t.days, (e, t) => (b(), s("div", {
2701
2701
  key: t,
2702
- class: h(["range-day", ze(e)]),
2703
- onClick: (t) => Re(e),
2702
+ class: h(["range-day", Be(e)]),
2703
+ onClick: (t) => ze(e),
2704
2704
  onMouseenter: (t) => J.value = e
2705
2705
  }, T(e.day), 43, Hr))), 128))])
2706
2706
  ])], 64))), 128))]),
2707
2707
  c("div", Ur, [c("div", Wr, [
2708
2708
  c("span", { class: h(["range-val", { "is-empty": !Pe.value }]) }, T(Pe.value || "開始日期"), 3),
2709
2709
  i[44] ||= c("span", { class: "range-arrow" }, "→", -1),
2710
- c("span", { class: h(["range-val", { "is-empty": !X.value }]) }, T(X.value || "結束日期"), 3)
2710
+ c("span", { class: h(["range-val", { "is-empty": !Fe.value }]) }, T(Fe.value || "結束日期"), 3)
2711
2711
  ]), f(j, {
2712
2712
  variant: "solid",
2713
2713
  intent: "primary",
2714
2714
  class: "confirm-btn",
2715
2715
  disabled: !Ee.value,
2716
- onClick: k(Be, ["stop"])
2716
+ onClick: k(Ve, ["stop"])
2717
2717
  }, {
2718
2718
  default: O(() => [...i[45] ||= [d("確認", -1)]]),
2719
2719
  _: 1
@@ -2725,7 +2725,7 @@ var wn = { class: "icon-wrap" }, Tn = ["innerHTML"], En = {
2725
2725
  default: O(() => [x.value && t.range && E.value ? (b(), s("div", {
2726
2726
  key: 0,
2727
2727
  class: "mobile-overlay",
2728
- onClick: k(Z, ["self"])
2728
+ onClick: k(X, ["self"])
2729
2729
  }, [c("div", Gr, [
2730
2730
  i[51] ||= c("div", { class: "sheet-handle" }, null, -1),
2731
2731
  i[52] ||= c("p", { class: "range-modal-title" }, "選擇日期範圍", -1),
@@ -2733,7 +2733,7 @@ var wn = { class: "icon-wrap" }, Tn = ["innerHTML"], En = {
2733
2733
  c("div", qr, [f(j, {
2734
2734
  variant: "ghost",
2735
2735
  square: "",
2736
- onClick: Ie
2736
+ onClick: Le
2737
2737
  }, {
2738
2738
  default: O(() => [...i[47] ||= [c("svg", {
2739
2739
  xmlns: "http://www.w3.org/2000/svg",
@@ -2752,7 +2752,7 @@ var wn = { class: "icon-wrap" }, Tn = ["innerHTML"], En = {
2752
2752
  c("div", Yr, [f(j, {
2753
2753
  variant: "ghost",
2754
2754
  square: "",
2755
- onClick: Le
2755
+ onClick: Re
2756
2756
  }, {
2757
2757
  default: O(() => [...i[48] ||= [c("svg", {
2758
2758
  xmlns: "http://www.w3.org/2000/svg",
@@ -2774,19 +2774,19 @@ var wn = { class: "icon-wrap" }, Tn = ["innerHTML"], En = {
2774
2774
  }, T(e), 1)), 64))]),
2775
2775
  c("div", Zr, [(b(!0), s(e, null, C(Oe.value, (e, t) => (b(), s("div", {
2776
2776
  key: t,
2777
- class: h(["range-day", ze(e)]),
2778
- onClick: (t) => Re(e)
2777
+ class: h(["range-day", Be(e)]),
2778
+ onClick: (t) => ze(e)
2779
2779
  }, T(e.day), 11, Qr))), 128))]),
2780
2780
  c("div", $r, [c("div", ei, [
2781
2781
  c("span", { class: h(["range-val", { "is-empty": !Pe.value }]) }, T(Pe.value || "開始日期"), 3),
2782
2782
  i[49] ||= c("span", { class: "range-arrow" }, "→", -1),
2783
- c("span", { class: h(["range-val", { "is-empty": !X.value }]) }, T(X.value || "結束日期"), 3)
2783
+ c("span", { class: h(["range-val", { "is-empty": !Fe.value }]) }, T(Fe.value || "結束日期"), 3)
2784
2784
  ]), f(j, {
2785
2785
  variant: "solid",
2786
2786
  intent: "primary",
2787
2787
  class: "confirm-btn",
2788
2788
  disabled: !Ee.value,
2789
- onClick: k(Be, ["stop"])
2789
+ onClick: k(Ve, ["stop"])
2790
2790
  }, {
2791
2791
  default: O(() => [...i[50] ||= [d("確認", -1)]]),
2792
2792
  _: 1
@@ -3301,6 +3301,36 @@ var di = { class: "cards-wrapper" }, fi = ["innerHTML"], pi = { class: "card-bod
3301
3301
  _: 3
3302
3302
  })], 4));
3303
3303
  }
3304
- }), [["__scopeId", "data-v-f0866bc5"]]);
3304
+ }), [["__scopeId", "data-v-f0866bc5"]]), Qi = {
3305
+ NButton: j,
3306
+ NInput: L,
3307
+ NTextarea: de,
3308
+ NCheckbox: ge,
3309
+ NSelect: U,
3310
+ NFileSelect: wt,
3311
+ NForm: Wt,
3312
+ NList: bn,
3313
+ NEmpty: Yt,
3314
+ NToast: An,
3315
+ NLoading: Rn,
3316
+ NCode: qn,
3317
+ NSwitch: Yn,
3318
+ NTag: Xn,
3319
+ NDatePicker: ti,
3320
+ NTooltip: ni,
3321
+ NModal: si,
3322
+ NAlert: yi,
3323
+ NTable: _n,
3324
+ NLayout: Ri,
3325
+ NNavigation: Gi,
3326
+ NSidebar: Pi,
3327
+ NCard: Xt,
3328
+ NLoginLayout: Zi
3329
+ };
3330
+ function $i(e) {
3331
+ Object.entries(Qi).forEach(([t, n]) => {
3332
+ e.component(t, n);
3333
+ });
3334
+ }
3305
3335
  //#endregion
3306
- export { yi as NAlert, j as NButton, Xt as NCard, ge as NCheckbox, qn as NCode, ti as NDatePicker, Yt as NEmpty, wt as NFileSelect, Wt as NForm, L as NInput, Ri as NLayout, bn as NList, Rn as NLoading, Zi as NLoginLayout, si as NModal, Gi as NNavigation, U as NSelect, Pi as NSidebar, Yn as NSwitch, _n as NTable, Xn as NTag, de as NTextarea, An as NToast, ni as NTooltip, ui as useAlert, Ot as useSidebarManager, Cn as useToast };
3336
+ export { yi as NAlert, j as NButton, Xt as NCard, ge as NCheckbox, qn as NCode, ti as NDatePicker, Yt as NEmpty, wt as NFileSelect, Wt as NForm, L as NInput, Ri as NLayout, bn as NList, Rn as NLoading, Zi as NLoginLayout, si as NModal, Gi as NNavigation, U as NSelect, Pi as NSidebar, Yn as NSwitch, _n as NTable, Xn as NTag, de as NTextarea, An as NToast, ni as NTooltip, $i as NickLabsUI, ui as useAlert, Ot as useSidebarManager, Cn as useToast };
@@ -1,3 +1,3 @@
1
- declare const __VLS_export: import("@vue/runtime-core").DefineComponent<{}, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
1
+ declare const __VLS_export: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<{}, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, true, {}, any>;
2
2
  declare const _default: typeof __VLS_export;
3
3
  export default _default;
@@ -14,7 +14,7 @@ declare var __VLS_1: {};
14
14
  type __VLS_Slots = {} & {
15
15
  default?: (props: typeof __VLS_1) => any;
16
16
  };
17
- declare const __VLS_base: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
17
+ declare const __VLS_base: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
18
18
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
19
19
  declare const _default: typeof __VLS_export;
20
20
  export default _default;
@@ -12,19 +12,19 @@ declare var __VLS_1: {};
12
12
  type __VLS_Slots = {} & {
13
13
  default?: (props: typeof __VLS_1) => any;
14
14
  };
15
- declare const __VLS_base: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {} & {
15
+ declare const __VLS_base: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {} & {
16
16
  "update:modelValue": (value: any) => any;
17
17
  change: (value: boolean | any[]) => any;
18
18
  "change:item": (item: OptionItem) => any;
19
19
  "change:value": (value: any) => any;
20
20
  "change:values": (values: any[]) => any;
21
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{
21
+ }, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<__VLS_Props> & Readonly<{
22
22
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
23
23
  onChange?: ((value: boolean | any[]) => any) | undefined;
24
24
  "onChange:item"?: ((item: OptionItem) => any) | undefined;
25
25
  "onChange:value"?: ((value: any) => any) | undefined;
26
26
  "onChange:values"?: ((values: any[]) => any) | undefined;
27
- }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
27
+ }>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
28
28
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
29
29
  declare const _default: typeof __VLS_export;
30
30
  export default _default;
@@ -3,6 +3,6 @@ interface Props {
3
3
  language?: string;
4
4
  showLineNumbers?: boolean;
5
5
  }
6
- declare const __VLS_export: import("@vue/runtime-core").DefineComponent<Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
6
+ declare const __VLS_export: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<Props, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
7
7
  declare const _default: typeof __VLS_export;
8
8
  export default _default;
@@ -9,18 +9,18 @@ type __VLS_Props = {
9
9
  format?: string;
10
10
  range?: boolean;
11
11
  };
12
- declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {} & {
12
+ declare const __VLS_export: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {} & {
13
13
  "update:modelValue": (value: string) => any;
14
14
  change: (value: string) => any;
15
15
  clear: () => any;
16
16
  "update:start": (value: string) => any;
17
17
  "update:end": (value: string) => any;
18
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{
18
+ }, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<__VLS_Props> & Readonly<{
19
19
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
20
20
  onChange?: ((value: string) => any) | undefined;
21
21
  onClear?: (() => any) | undefined;
22
22
  "onUpdate:start"?: ((value: string) => any) | undefined;
23
23
  "onUpdate:end"?: ((value: string) => any) | undefined;
24
- }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
24
+ }>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
25
25
  declare const _default: typeof __VLS_export;
26
26
  export default _default;
@@ -8,7 +8,7 @@ declare var __VLS_1: {};
8
8
  type __VLS_Slots = {} & {
9
9
  default?: (props: typeof __VLS_1) => any;
10
10
  };
11
- declare const __VLS_base: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_base: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
12
12
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
13
13
  declare const _default: typeof __VLS_export;
14
14
  export default _default;
@@ -7,12 +7,12 @@ interface Props {
7
7
  accept?: string;
8
8
  title?: string;
9
9
  }
10
- declare const __VLS_export: import("@vue/runtime-core").DefineComponent<Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {} & {
10
+ declare const __VLS_export: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<Props, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {} & {
11
11
  "change:file": (files: IFile) => any;
12
12
  "change:files": (files: IFile[]) => any;
13
- }, string, import("@vue/runtime-core").PublicProps, Readonly<Props> & Readonly<{
13
+ }, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<Props> & Readonly<{
14
14
  "onChange:file"?: ((files: IFile) => any) | undefined;
15
15
  "onChange:files"?: ((files: IFile[]) => any) | undefined;
16
- }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
16
+ }>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
17
17
  declare const _default: typeof __VLS_export;
18
18
  export default _default;
@@ -18,13 +18,13 @@ type __VLS_Slots = {} & {
18
18
  } & {
19
19
  footer?: (props: typeof __VLS_19) => any;
20
20
  };
21
- declare const __VLS_base: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {} & {
21
+ declare const __VLS_base: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {} & {
22
22
  submit: (model: Record<string, any>) => any;
23
23
  reset: () => any;
24
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{
24
+ }, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<__VLS_Props> & Readonly<{
25
25
  onSubmit?: ((model: Record<string, any>) => any) | undefined;
26
26
  onReset?: (() => any) | undefined;
27
- }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
27
+ }>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
28
28
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
29
29
  declare const _default: typeof __VLS_export;
30
30
  export default _default;
@@ -11,7 +11,7 @@ type __VLS_Props = {
11
11
  title?: string;
12
12
  autocomplete?: string;
13
13
  };
14
- declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {} & {
14
+ declare const __VLS_export: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {} & {
15
15
  input: (nativeEvent: Event) => any;
16
16
  "update:modelValue": (value: string) => any;
17
17
  focus: (nativeEvent: FocusEvent) => any;
@@ -19,7 +19,7 @@ declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Pr
19
19
  change: (nativeEvent: Event) => any;
20
20
  keydown: (nativeEvent: KeyboardEvent) => any;
21
21
  clear: () => any;
22
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{
22
+ }, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<__VLS_Props> & Readonly<{
23
23
  onInput?: ((nativeEvent: Event) => any) | undefined;
24
24
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
25
25
  onFocus?: ((nativeEvent: FocusEvent) => any) | undefined;
@@ -27,6 +27,6 @@ declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Pr
27
27
  onChange?: ((nativeEvent: Event) => any) | undefined;
28
28
  onKeydown?: ((nativeEvent: KeyboardEvent) => any) | undefined;
29
29
  onClear?: (() => any) | undefined;
30
- }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
30
+ }>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
31
31
  declare const _default: typeof __VLS_export;
32
32
  export default _default;
@@ -10,7 +10,7 @@ type __VLS_Slots = {} & {
10
10
  } & {
11
11
  default?: (props: typeof __VLS_9) => any;
12
12
  };
13
- declare const __VLS_base: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
13
+ declare const __VLS_base: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
14
14
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
15
15
  declare const _default: typeof __VLS_export;
16
16
  export default _default;
@@ -12,15 +12,15 @@ type __VLS_Slots = {} & {
12
12
  } & {
13
13
  footer?: (props: typeof __VLS_15) => any;
14
14
  };
15
- declare const __VLS_base: import("@vue/runtime-core").DefineComponent<Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {} & {
15
+ declare const __VLS_base: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<Props, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {} & {
16
16
  open: () => any;
17
17
  close: () => any;
18
18
  "update:show": (value: boolean) => any;
19
- }, string, import("@vue/runtime-core").PublicProps, Readonly<Props> & Readonly<{
19
+ }, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<Props> & Readonly<{
20
20
  onOpen?: (() => any) | undefined;
21
21
  onClose?: (() => any) | undefined;
22
22
  "onUpdate:show"?: ((value: boolean) => any) | undefined;
23
- }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
23
+ }>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
24
24
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
25
25
  declare const _default: typeof __VLS_export;
26
26
  export default _default;
@@ -9,18 +9,18 @@ type __VLS_Props = {
9
9
  title?: string;
10
10
  multipleDisplay?: MultipleDisplay;
11
11
  };
12
- declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {} & {
12
+ declare const __VLS_export: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {} & {
13
13
  "update:modelValue": (value: any) => any;
14
14
  change: (value: any) => any;
15
15
  "change:item": (item: OptionItem) => any;
16
16
  "change:value": (value: any) => any;
17
17
  "change:values": (value: any[]) => any;
18
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{
18
+ }, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<__VLS_Props> & Readonly<{
19
19
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
20
20
  onChange?: ((value: any) => any) | undefined;
21
21
  "onChange:item"?: ((item: OptionItem) => any) | undefined;
22
22
  "onChange:value"?: ((value: any) => any) | undefined;
23
23
  "onChange:values"?: ((value: any[]) => any) | undefined;
24
- }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
24
+ }>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
25
25
  declare const _default: typeof __VLS_export;
26
26
  export default _default;
@@ -4,10 +4,10 @@ type __VLS_Props = {
4
4
  size?: NSwitchSize;
5
5
  label?: string;
6
6
  };
7
- declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {} & {
7
+ declare const __VLS_export: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {} & {
8
8
  "update:modelValue": (value: boolean) => any;
9
9
  change: (value: boolean) => any;
10
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{
10
+ }, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<__VLS_Props> & Readonly<{
11
11
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
12
12
  onChange?: ((value: boolean) => any) | undefined;
13
13
  }>, {
@@ -15,6 +15,6 @@ declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Pr
15
15
  size: NSwitchSize;
16
16
  label: string;
17
17
  modelValue: boolean;
18
- }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
18
+ }, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
19
19
  declare const _default: typeof __VLS_export;
20
20
  export default _default;
@@ -9,11 +9,11 @@ declare var __VLS_1: {};
9
9
  type __VLS_Slots = {} & {
10
10
  default?: (props: typeof __VLS_1) => any;
11
11
  };
12
- declare const __VLS_base: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {} & {
12
+ declare const __VLS_base: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {} & {
13
13
  close: () => any;
14
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{
14
+ }, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<__VLS_Props> & Readonly<{
15
15
  onClose?: (() => any) | undefined;
16
- }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
16
+ }>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
17
17
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
18
18
  declare const _default: typeof __VLS_export;
19
19
  export default _default;
@@ -11,7 +11,7 @@ type __VLS_Props = {
11
11
  showCount?: boolean | ((val: string, max?: number) => string);
12
12
  wrap?: WrapMode;
13
13
  };
14
- declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {} & {
14
+ declare const __VLS_export: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {} & {
15
15
  input: (nativeEvent: Event) => any;
16
16
  "update:modelValue": (value: string) => any;
17
17
  focus: (nativeEvent: FocusEvent) => any;
@@ -19,7 +19,7 @@ declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Pr
19
19
  change: (nativeEvent: Event) => any;
20
20
  keydown: (nativeEvent: KeyboardEvent) => any;
21
21
  paste: (nativeEvent: ClipboardEvent) => any;
22
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{
22
+ }, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<__VLS_Props> & Readonly<{
23
23
  onInput?: ((nativeEvent: Event) => any) | undefined;
24
24
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
25
25
  onFocus?: ((nativeEvent: FocusEvent) => any) | undefined;
@@ -27,6 +27,6 @@ declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Pr
27
27
  onChange?: ((nativeEvent: Event) => any) | undefined;
28
28
  onKeydown?: ((nativeEvent: KeyboardEvent) => any) | undefined;
29
29
  onPaste?: ((nativeEvent: ClipboardEvent) => any) | undefined;
30
- }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
30
+ }>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
31
31
  declare const _default: typeof __VLS_export;
32
32
  export default _default;
@@ -1,3 +1,3 @@
1
- declare const __VLS_export: import("@vue/runtime-core").DefineComponent<{}, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
1
+ declare const __VLS_export: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<{}, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, true, {}, any>;
2
2
  declare const _default: typeof __VLS_export;
3
3
  export default _default;
@@ -9,7 +9,7 @@ type __VLS_Slots = {} & {
9
9
  } & {
10
10
  content?: (props: typeof __VLS_9) => any;
11
11
  };
12
- declare const __VLS_base: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
12
+ declare const __VLS_base: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
13
13
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
14
14
  declare const _default: typeof __VLS_export;
15
15
  export default _default;
@@ -1,3 +1,4 @@
1
+ import type { App } from "vue";
1
2
  import NButton from "./components/NButton.vue";
2
3
  import NInput from "./components/NInput.vue";
3
4
  import NTextarea from "./components/NTextarea.vue";
@@ -22,7 +23,36 @@ import NNavigation from "./layouts/NNavigation.vue";
22
23
  import NSidebar from "./layouts/NSidebar.vue";
23
24
  import NCard from "./layouts/NCard.vue";
24
25
  import NLoginLayout from "./layouts/NLoginLayout.vue";
26
+ export declare function NickLabsUI(app: App): void;
25
27
  export { useToast } from "./composables/useToast.js";
26
28
  export { useSidebarManager } from "./composables/useSidebarManager.js";
27
29
  export { useAlert } from "./composables/useAlert.js";
28
30
  export { NButton, NInput, NTextarea, NCheckbox, NSelect, NFileSelect, NForm, NList, NEmpty, NToast, NLoading, NCode, NSwitch, NTag, NDatePicker, NTooltip, NModal, NAlert, NTable, NLayout, NNavigation, NSidebar, NCard, NLoginLayout, };
31
+ declare module "vue" {
32
+ interface GlobalComponents {
33
+ NButton: typeof NButton;
34
+ NInput: typeof NInput;
35
+ NTextarea: typeof NTextarea;
36
+ NCheckbox: typeof NCheckbox;
37
+ NSelect: typeof NSelect;
38
+ NFileSelect: typeof NFileSelect;
39
+ NForm: typeof NForm;
40
+ NList: typeof NList;
41
+ NEmpty: typeof NEmpty;
42
+ NToast: typeof NToast;
43
+ NLoading: typeof NLoading;
44
+ NCode: typeof NCode;
45
+ NSwitch: typeof NSwitch;
46
+ NTag: typeof NTag;
47
+ NDatePicker: typeof NDatePicker;
48
+ NTooltip: typeof NTooltip;
49
+ NModal: typeof NModal;
50
+ NAlert: typeof NAlert;
51
+ NTable: typeof NTable;
52
+ NLayout: typeof NLayout;
53
+ NNavigation: typeof NNavigation;
54
+ NSidebar: typeof NSidebar;
55
+ NCard: typeof NCard;
56
+ NLoginLayout: typeof NLoginLayout;
57
+ }
58
+ }
@@ -1,5 +1,5 @@
1
1
  interface Props {
2
2
  }
3
- declare const __VLS_export: import("@vue/runtime-core").DefineComponent<Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
3
+ declare const __VLS_export: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<Props, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
4
4
  declare const _default: typeof __VLS_export;
5
5
  export default _default;
@@ -6,7 +6,7 @@ declare var __VLS_1: {};
6
6
  type __VLS_Slots = {} & {
7
7
  default?: (props: typeof __VLS_1) => any;
8
8
  };
9
- declare const __VLS_base: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_base: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
10
10
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
11
  declare const _default: typeof __VLS_export;
12
12
  export default _default;
@@ -9,7 +9,7 @@ type __VLS_Slots = {} & {
9
9
  } & {
10
10
  toolbar?: (props: typeof __VLS_16) => any;
11
11
  };
12
- declare const __VLS_base: import("@vue/runtime-core").DefineComponent<Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
12
+ declare const __VLS_base: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<Props, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
13
13
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
14
14
  declare const _default: typeof __VLS_export;
15
15
  export default _default;
@@ -18,13 +18,13 @@ declare var __VLS_10: {};
18
18
  type __VLS_Slots = {} & {
19
19
  default?: (props: typeof __VLS_10) => any;
20
20
  };
21
- declare const __VLS_base: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {} & {
21
+ declare const __VLS_base: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {} & {
22
22
  logout: () => any;
23
23
  navigate: (childMenu: MenuChild) => any;
24
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{
24
+ }, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<__VLS_Props> & Readonly<{
25
25
  onLogout?: (() => any) | undefined;
26
26
  onNavigate?: ((childMenu: MenuChild) => any) | undefined;
27
- }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
27
+ }>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
28
28
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
29
29
  declare const _default: typeof __VLS_export;
30
30
  export default _default;
@@ -8,7 +8,7 @@ declare var __VLS_7: {};
8
8
  type __VLS_Slots = {} & {
9
9
  default?: (props: typeof __VLS_7) => any;
10
10
  };
11
- declare const __VLS_base: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_base: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
12
12
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
13
13
  declare const _default: typeof __VLS_export;
14
14
  export default _default;
@@ -4,12 +4,12 @@ type __VLS_Props = {
4
4
  isShowUser?: boolean;
5
5
  isShowLogoutButton?: boolean;
6
6
  };
7
- declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {} & {
7
+ declare const __VLS_export: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {} & {
8
8
  logout: () => any;
9
9
  toggleSidebar: () => any;
10
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{
10
+ }, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<__VLS_Props> & Readonly<{
11
11
  onLogout?: (() => any) | undefined;
12
12
  onToggleSidebar?: (() => any) | undefined;
13
- }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
13
+ }>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
14
14
  declare const _default: typeof __VLS_export;
15
15
  export default _default;
@@ -3,10 +3,10 @@ interface Props {
3
3
  pageSize: number;
4
4
  maxPageButtons: number;
5
5
  }
6
- declare const __VLS_export: import("@vue/runtime-core").DefineComponent<Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {} & {
6
+ declare const __VLS_export: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<Props, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {} & {
7
7
  onPageChange: (page: number) => any;
8
- }, string, import("@vue/runtime-core").PublicProps, Readonly<Props> & Readonly<{
8
+ }, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<Props> & Readonly<{
9
9
  onOnPageChange?: ((page: number) => any) | undefined;
10
- }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
10
+ }>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
11
11
  declare const _default: typeof __VLS_export;
12
12
  export default _default;
@@ -2,12 +2,12 @@ interface Props {
2
2
  open: boolean;
3
3
  title?: string;
4
4
  }
5
- declare const __VLS_export: import("@vue/runtime-core").DefineComponent<Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {} & {
5
+ declare const __VLS_export: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<Props, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {} & {
6
6
  close: () => any;
7
7
  "update:open": (open: boolean) => any;
8
- }, string, import("@vue/runtime-core").PublicProps, Readonly<Props> & Readonly<{
8
+ }, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<Props> & Readonly<{
9
9
  onClose?: (() => any) | undefined;
10
10
  "onUpdate:open"?: ((open: boolean) => any) | undefined;
11
- }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
11
+ }>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
12
12
  declare const _default: typeof __VLS_export;
13
13
  export default _default;
@@ -9,15 +9,15 @@ declare var __VLS_1: {};
9
9
  type __VLS_Slots = {} & {
10
10
  user?: (props: typeof __VLS_1) => any;
11
11
  };
12
- declare const __VLS_base: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {} & {
12
+ declare const __VLS_base: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {} & {
13
13
  "update:isOpen": (value: boolean) => any;
14
14
  logout: () => any;
15
15
  navigate: (childMenu: MenuChild) => any;
16
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{
16
+ }, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<__VLS_Props> & Readonly<{
17
17
  "onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
18
18
  onLogout?: (() => any) | undefined;
19
19
  onNavigate?: ((childMenu: MenuChild) => any) | undefined;
20
- }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
20
+ }>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
21
21
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
22
22
  declare const _default: typeof __VLS_export;
23
23
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nicklabs-ui",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",