@nmorph/nmorph-ui-kit 0.2.19 → 0.2.21

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.es.js CHANGED
@@ -2842,6 +2842,7 @@ const Bf = /* @__PURE__ */ T({
2842
2842
  __name: "NmorphScroll",
2843
2843
  props: {
2844
2844
  height: { default: "auto" },
2845
+ maxHeight: { default: "none" },
2845
2846
  modelValue: { default: () => ({
2846
2847
  x: 0,
2847
2848
  y: 0
@@ -2853,23 +2854,24 @@ const Bf = /* @__PURE__ */ T({
2853
2854
  },
2854
2855
  emits: ["on-scroll", "update:modelValue", "on-scroll-end"],
2855
2856
  setup(e, { emit: t }) {
2856
- I((w) => ({
2857
- "051dc122": m.value,
2858
- "67a141a6": i.value,
2859
- "71940be1": h.value,
2860
- "53d9dd4a": r.value,
2861
- "53d9dd48": l.value,
2862
- "174662cc": $.value
2857
+ I((f) => ({
2858
+ "4a68bfd5": m.value,
2859
+ "2ef175ca": $.value,
2860
+ "96ce3be8": i.value,
2861
+ "78df0f8a": h.value,
2862
+ "3797bab5": r.value,
2863
+ "3797bab6": l.value,
2864
+ "3c242500": w.value
2863
2865
  }));
2864
2866
  const o = e, l = _(() => o.scrollYProp), r = _(() => o.scrollXProp), i = _(() => o.scrollYProp !== "hidden" ? "--scrollbar-width" : "0"), h = _(() => o.scrollXProp !== "hidden" ? "--scrollbar-height" : "0");
2865
2867
  let d;
2866
2868
  const u = t, v = () => {
2867
2869
  u("on-scroll-end");
2868
- }, g = (w) => {
2869
- if (u("on-scroll", w), !y.value)
2870
+ }, g = (f) => {
2871
+ if (u("on-scroll", f), !y.value)
2870
2872
  return;
2871
- const f = y.value.scrollLeft, H = y.value.scrollTop;
2872
- u("update:modelValue", { x: f, y: H }), d !== void 0 && clearTimeout(d), d = setTimeout(() => {
2873
+ const H = y.value.scrollLeft, V = y.value.scrollTop;
2874
+ u("update:modelValue", { x: H, y: V }), d !== void 0 && clearTimeout(d), d = setTimeout(() => {
2873
2875
  v();
2874
2876
  }, o.scrollEndDelay);
2875
2877
  };
@@ -2880,11 +2882,11 @@ const Bf = /* @__PURE__ */ T({
2880
2882
  () => D({
2881
2883
  "nmorph-scroll": []
2882
2884
  })
2883
- ), y = x(null), k = (w) => {
2884
- const { x: f, y: H } = w;
2885
+ ), y = x(null), k = (f) => {
2886
+ const { x: H, y: V } = f;
2885
2887
  y.value?.scrollTo({
2886
- left: f,
2887
- top: H,
2888
+ left: H,
2889
+ top: V,
2888
2890
  behavior: "smooth"
2889
2891
  });
2890
2892
  };
@@ -2892,19 +2894,19 @@ const Bf = /* @__PURE__ */ T({
2892
2894
  k(o.modelValue);
2893
2895
  }), G(
2894
2896
  () => o.modelValue,
2895
- (w) => {
2896
- k(w);
2897
+ (f) => {
2898
+ k(f);
2897
2899
  },
2898
2900
  { deep: !0, immediate: !0 }
2899
2901
  );
2900
- const $ = _(() => o.cssScrollBehavior), m = _(() => o.height);
2901
- return (w, f) => (a(), s("div", {
2902
+ const w = _(() => o.cssScrollBehavior), m = _(() => o.height), $ = _(() => o.height);
2903
+ return (f, H) => (a(), s("div", {
2902
2904
  ref_key: "scrollDOMContainer",
2903
2905
  ref: y,
2904
2906
  class: z(M.value),
2905
2907
  onWheelPassive: g
2906
2908
  }, [
2907
- A(w.$slots, "default")
2909
+ A(f.$slots, "default")
2908
2910
  ], 34));
2909
2911
  }
2910
2912
  });
@@ -3053,15 +3055,15 @@ const qf = ["data-date", "onClick"], l2 = /* @__PURE__ */ T({
3053
3055
  }, y = () => {
3054
3056
  i.value = /* @__PURE__ */ new Date();
3055
3057
  }, k = () => {
3056
- i.value = w.value;
3057
- }, $ = (C) => {
3058
+ i.value = $.value;
3059
+ }, w = (C) => {
3058
3060
  const { monthType: S, hidden: B } = C;
3059
3061
  if (B)
3060
3062
  return;
3061
3063
  S === "next" && k(), S === "previous" && M();
3062
3064
  const { date: F } = C;
3063
3065
  d.value = F, l("update:modelValue", d.value);
3064
- }, m = _(() => new Date(i.value.setMonth(i.value.getMonth() - 1))), w = _(() => new Date(i.value.setMonth(i.value.getMonth() + 1))), f = _(() => {
3066
+ }, m = _(() => new Date(i.value.setMonth(i.value.getMonth() - 1))), $ = _(() => new Date(i.value.setMonth(i.value.getMonth() + 1))), f = _(() => {
3065
3067
  const { range: C } = o, S = C ? c2(i.value, C[0]) : !0, B = C ? i2(i.value, C[1]) : !0, F = d2(o.range);
3066
3068
  return {
3067
3069
  showPreviousMonthButton: S,
@@ -3116,7 +3118,7 @@ const qf = ["data-date", "onClick"], l2 = /* @__PURE__ */ T({
3116
3118
  "nmorph-calendar-date--selected": V(g(j[B]).date)
3117
3119
  }
3118
3120
  ]),
3119
- onClick: (K) => $(g(j[B]))
3121
+ onClick: (K) => w(g(j[B]))
3120
3122
  }, [
3121
3123
  A(C.$slots, "date-cell", {
3122
3124
  scope: {
@@ -3176,12 +3178,12 @@ const He = [
3176
3178
  }, ze = (e) => He[e], Pf = (e) => e % 4 === 0 && e % 100 !== 0 || e % 400 === 0, Ee = (e, t) => [0, 2, 4, 6, 7, 9, 11].includes(t) ? 31 : [3, 5, 8, 10].includes(t) ? 30 : Pf(e) ? 29 : 28, h2 = (e, t) => {
3177
3179
  const o = (K) => t ? K < t[0] || K > t[1] : !1, l = e.value.getFullYear(), r = e.value.getMonth(), h = new Date(l, r, 1).getDay() + 1, d = Ee(l, r), u = 7 + h - 8;
3178
3180
  let M = 7 - (new Date(l, r, d).getDay() + 1);
3179
- const y = /* @__PURE__ */ new Date(), k = y.getDate(), $ = y.getMonth(), m = r - 1, w = Ee(l, m);
3180
- let f = w - u;
3181
+ const y = /* @__PURE__ */ new Date(), k = y.getDate(), w = y.getMonth(), m = r - 1, $ = Ee(l, m);
3182
+ let f = $ - u;
3181
3183
  const H = [];
3182
- for (; f < w; ) {
3184
+ for (; f < $; ) {
3183
3185
  f++;
3184
- const K = $ === m && k === f, Z = new Date(l, m, f);
3186
+ const K = w === m && k === f, Z = new Date(l, m, f);
3185
3187
  H.push({
3186
3188
  value: f,
3187
3189
  monthType: "previous",
@@ -3194,7 +3196,7 @@ const He = [
3194
3196
  let S = 0;
3195
3197
  for (; M; ) {
3196
3198
  S++, M--;
3197
- const K = $ === V && k === S, Z = new Date(l, V, S);
3199
+ const K = w === V && k === S, Z = new Date(l, V, S);
3198
3200
  C.push({
3199
3201
  value: S,
3200
3202
  monthType: "next",
@@ -3208,7 +3210,7 @@ const He = [
3208
3210
  for (; B < d; ) {
3209
3211
  const K = y.getDate();
3210
3212
  B++;
3211
- const Z = $ === r && K === B, Te = new Date(l, r, B);
3213
+ const Z = w === r && K === B, Te = new Date(l, r, B);
3212
3214
  F.push({
3213
3215
  value: B,
3214
3216
  monthType: "current",
@@ -3315,19 +3317,19 @@ const Uf = ["id"], Yf = { class: "nmorph-carousel__elements-indicator" }, Gf = [
3315
3317
  const V = M[Object.keys(M).length - 1]?.cloneNode(!0), C = M[0]?.cloneNode(!0);
3316
3318
  g.value?.prepend(V), g.value?.append(C), o.value += 1;
3317
3319
  }, k = () => {
3318
- o.value === 0 && (o.value = Object.keys(M).length, w.value = !1), o.value > Object.keys(M).length && (o.value = 1, w.value = !1);
3320
+ o.value === 0 && (o.value = Object.keys(M).length, $.value = !1), o.value > Object.keys(M).length && (o.value = 1, $.value = !1);
3319
3321
  };
3320
3322
  Y(() => {
3321
3323
  i.loop && o.value === 0 && (Ve(() => y()), g.value?.addEventListener("transitionend", k));
3322
3324
  }), G(o, (V) => {
3323
3325
  h("change", o.value), (V === 1 || V === Object.keys(M).length) && setTimeout(() => {
3324
- w.value = !0;
3326
+ $.value = !0;
3325
3327
  });
3326
3328
  });
3327
- const $ = (V, C) => {
3329
+ const w = (V, C) => {
3328
3330
  const S = V;
3329
3331
  M[C] = S;
3330
- }, m = _(() => `translateX(-${o.value * 100}%)`), w = x(!0), f = (V) => V === o.value - 1, H = (V) => {
3332
+ }, m = _(() => `translateX(-${o.value * 100}%)`), $ = x(!0), f = (V) => V === o.value - 1, H = (V) => {
3331
3333
  o.value = V + 1;
3332
3334
  };
3333
3335
  return (V, C) => (a(), s("div", {
@@ -3336,14 +3338,14 @@ const Uf = ["id"], Yf = { class: "nmorph-carousel__elements-indicator" }, Gf = [
3336
3338
  n("div", {
3337
3339
  ref_key: "carouselWrapper",
3338
3340
  ref: g,
3339
- class: z(["nmorph-carousel__wrapper", { "transition-enabled": w.value }]),
3341
+ class: z(["nmorph-carousel__wrapper", { "transition-enabled": $.value }]),
3340
3342
  style: N({ transform: m.value })
3341
3343
  }, [
3342
3344
  (a(!0), s(L, null, U(u.value, (S, B) => (a(), s("div", {
3343
3345
  id: `nmorph-carousel-item-${p(v)}-${S}`,
3344
3346
  key: S,
3345
3347
  ref_for: !0,
3346
- ref: (F) => $(F, B),
3348
+ ref: (F) => w(F, B),
3347
3349
  class: "nmorph-carousel__item"
3348
3350
  }, null, 8, Uf))), 128))
3349
3351
  ], 6),
@@ -3581,9 +3583,9 @@ const eg = { class: "nmorph-image-preview__content" }, tg = {
3581
3583
  d.value < o.maxScaleLevel && (d.value += o.scaleStep), d.value = parseFloat(d.value.toFixed(3));
3582
3584
  }, k = () => {
3583
3585
  d.value > o.minScaleLevel && (d.value -= o.scaleStep), d.value = parseFloat(d.value.toFixed(3));
3584
- }, $ = _(() => d.value < 1), m = () => {
3586
+ }, w = _(() => d.value < 1), m = () => {
3585
3587
  d.value = 1;
3586
- }, w = () => {
3588
+ }, $ = () => {
3587
3589
  d.value = 1;
3588
3590
  }, f = x(0), H = () => {
3589
3591
  const j = o.src.length - 1, X = i.value - 1;
@@ -3594,9 +3596,9 @@ const eg = { class: "nmorph-image-preview__content" }, tg = {
3594
3596
  }, C = _(() => {
3595
3597
  let j = {
3596
3598
  icon: "shrink",
3597
- handler: w
3599
+ handler: $
3598
3600
  };
3599
- return $.value && (j = {
3601
+ return w.value && (j = {
3600
3602
  icon: "enlarge",
3601
3603
  handler: m
3602
3604
  }), j;
@@ -3717,26 +3719,26 @@ const sg = /* @__PURE__ */ T({
3717
3719
  }, d = () => {
3718
3720
  u.value = String(Number(u.value) + 1);
3719
3721
  }, u = x(String(o.modelValue)), v = _(() => {
3720
- const m = o.total / o.pagerCount + 1, w = m % 1 === 0 ? -1 : 0;
3721
- return Array.from({ length: m + w }, (f, H) => ({ value: String(H + 1), label: String(H + 1) }));
3722
+ const m = o.total / o.pagerCount + 1, $ = m % 1 === 0 ? -1 : 0;
3723
+ return Array.from({ length: m + $ }, (f, H) => ({ value: String(H + 1), label: String(H + 1) }));
3722
3724
  }), g = _(() => o.hideOnSinglePage || o.total / o.pagerCount > 1);
3723
3725
  G(u, (m) => {
3724
- l("update:modelValue", Number(m)), $();
3726
+ l("update:modelValue", Number(m)), w();
3725
3727
  }), G(
3726
3728
  () => o.pagerCount,
3727
3729
  () => {
3728
- $();
3730
+ w();
3729
3731
  }
3730
3732
  );
3731
3733
  const M = (m) => {
3732
3734
  u.value = m;
3733
- }, y = _(() => Number(u.value) === 1), k = _(() => v.value.length === Number(u.value)), $ = () => {
3734
- const m = Number(u.value) * o.pagerCount, w = m - o.pagerCount;
3735
- r.value = [w, m], l("update:range", r.value);
3735
+ }, y = _(() => Number(u.value) === 1), k = _(() => v.value.length === Number(u.value)), w = () => {
3736
+ const m = Number(u.value) * o.pagerCount, $ = m - o.pagerCount;
3737
+ r.value = [$, m], l("update:range", r.value);
3736
3738
  };
3737
3739
  return Y(() => {
3738
- $();
3739
- }), (m, w) => g.value ? (a(), s("div", {
3740
+ w();
3741
+ }), (m, $) => g.value ? (a(), s("div", {
3740
3742
  key: 0,
3741
3743
  class: z(i.value)
3742
3744
  }, [
@@ -3976,19 +3978,19 @@ const yg = { class: "nmorph-table__wrapper" }, Mg = { class: "nmorph-table__head
3976
3978
  () => D({
3977
3979
  "nmorph-table": [`${t.style}`]
3978
3980
  })
3979
- ), l = x(t.data), r = x(t.sort), i = (k, $) => {
3980
- r.value && (r.value[$] = k, l.value.sort((m, w) => {
3981
- const f = String(m[$]).toLowerCase(), H = String(w[$]).toLowerCase();
3981
+ ), l = x(t.data), r = x(t.sort), i = (k, w) => {
3982
+ r.value && (r.value[w] = k, l.value.sort((m, $) => {
3983
+ const f = String(m[w]).toLowerCase(), H = String($[w]).toLowerCase();
3982
3984
  if (!r.value)
3983
3985
  return 0;
3984
- const V = r.value[$];
3986
+ const V = r.value[w];
3985
3987
  return V === "ascending" ? f.localeCompare(H) : V === "descending" ? H.localeCompare(f) : 0;
3986
3988
  }));
3987
3989
  }, h = x(null), d = x([]);
3988
3990
  J("table-data", { rows: l, columns: d });
3989
3991
  const u = _(() => {
3990
- const k = d.value.map((H) => H.width).filter((H) => !!H), $ = k.length, m = k.reduce((H, V) => (H += Number(V), H), 0), w = d.value.length - $;
3991
- return h.value?.clientWidth ? (h.value?.clientWidth - m) / w : 0;
3992
+ const k = d.value.map((H) => H.width).filter((H) => !!H), w = k.length, m = k.reduce((H, V) => (H += Number(V), H), 0), $ = d.value.length - w;
3993
+ return h.value?.clientWidth ? (h.value?.clientWidth - m) / $ : 0;
3992
3994
  }), v = (k) => k !== "" ? k : u.value, g = x(0);
3993
3995
  G(
3994
3996
  () => t.data,
@@ -4000,7 +4002,7 @@ const yg = { class: "nmorph-table__wrapper" }, Mg = { class: "nmorph-table__head
4000
4002
  }
4001
4003
  );
4002
4004
  const M = (k) => typeof k == "object" ? "" : k, y = he();
4003
- return J("table-identifier", y), (k, $) => (a(), s("div", {
4005
+ return J("table-identifier", y), (k, w) => (a(), s("div", {
4004
4006
  ref_key: "nmorphDOMTable",
4005
4007
  ref: h,
4006
4008
  key: g.value,
@@ -4017,8 +4019,8 @@ const yg = { class: "nmorph-table__wrapper" }, Mg = { class: "nmorph-table__head
4017
4019
  ]),
4018
4020
  n("thead", null, [
4019
4021
  n("tr", kg, [
4020
- (a(!0), s(L, null, U(d.value, (m, w) => (a(), s("th", {
4021
- key: w,
4022
+ (a(!0), s(L, null, U(d.value, (m, $) => (a(), s("th", {
4023
+ key: $,
4022
4024
  class: z(["nmorph-table__table-data", { "nmorph-table__table-data--bordered": t.bordered }])
4023
4025
  }, [
4024
4026
  n("div", Vg, [
@@ -4048,8 +4050,8 @@ const yg = { class: "nmorph-table__wrapper" }, Mg = { class: "nmorph-table__head
4048
4050
  }, null, 4))), 128))
4049
4051
  ]),
4050
4052
  n("tbody", null, [
4051
- (a(!0), s(L, null, U(l.value, (m, w) => (a(), s("tr", {
4052
- key: w,
4053
+ (a(!0), s(L, null, U(l.value, (m, $) => (a(), s("tr", {
4054
+ key: $,
4053
4055
  class: z(["nmorph-table__table-data-row", { "nmorph-table__table-data-row--row-hover": t.rowHover }])
4054
4056
  }, [
4055
4057
  (a(!0), s(L, null, U(d.value, (f) => (a(), s("td", {
@@ -4057,7 +4059,7 @@ const yg = { class: "nmorph-table__wrapper" }, Mg = { class: "nmorph-table__head
4057
4059
  class: z([{ "nmorph-table__table-data--bordered": t.bordered }, "nmorph-table__table-data"])
4058
4060
  }, [
4059
4061
  n("div", {
4060
- id: `table-cell-${p(y)}-${w}-${f.prop}`,
4062
+ id: `table-cell-${p(y)}-${$}-${f.prop}`,
4061
4063
  style: N({ "text-align": f.alignment }),
4062
4064
  class: "nmorph-table__cell nmorph-table__cell--data"
4063
4065
  }, E(M(m[f.prop])), 13, zg)
@@ -4339,53 +4341,53 @@ const Fe = (e) => {
4339
4341
  validate: () => {
4340
4342
  if (t === null || !o.length)
4341
4343
  return null;
4342
- const d = t, u = ($) => o.length > 0 && $ in o[0], v = typeof d == "string" && u("pattern"), g = typeof d == "number" && u("numberCompareType"), M = typeof d == "string" || typeof d == "boolean" && u("booleanCompareType"), y = Array.isArray(d) && u("arrayCompareType");
4344
+ const d = t, u = (w) => o.length > 0 && w in o[0], v = typeof d == "string" && u("pattern"), g = typeof d == "number" && u("numberCompareType"), M = typeof d == "string" || typeof d == "boolean" && u("booleanCompareType"), y = Array.isArray(d) && u("arrayCompareType");
4343
4345
  if (!g && !v && !M && !y)
4344
4346
  return console.warn("The input value and the provided rules do not match"), null;
4345
4347
  if (i.value || (i.value = !0), v) {
4346
- const $ = o;
4347
- l.value = $.reduce((m, w) => (d.match(w.pattern) || m.push(w.error), m), []);
4348
+ const w = o;
4349
+ l.value = w.reduce((m, $) => (d.match($.pattern) || m.push($.error), m), []);
4348
4350
  }
4349
4351
  if (g) {
4350
- const $ = (w, f, H) => {
4352
+ const w = ($, f, H) => {
4351
4353
  switch (H) {
4352
4354
  case "eq":
4353
- return w === f;
4355
+ return $ === f;
4354
4356
  case "gt":
4355
- return w > f;
4357
+ return $ > f;
4356
4358
  case "lt":
4357
- return w < f;
4359
+ return $ < f;
4358
4360
  case "lte":
4359
- return w <= f;
4361
+ return $ <= f;
4360
4362
  case "gte":
4361
- return w >= f;
4363
+ return $ >= f;
4362
4364
  }
4363
4365
  }, m = o;
4364
- l.value = m.reduce((w, f) => ($(d, f.compareValue, f.numberCompareType) && w.push(f.error), w), []);
4366
+ l.value = m.reduce(($, f) => (w(d, f.compareValue, f.numberCompareType) && $.push(f.error), $), []);
4365
4367
  }
4366
4368
  if (M) {
4367
- const $ = o;
4368
- l.value = $.reduce((m, w) => {
4369
+ const w = o;
4370
+ l.value = w.reduce((m, $) => {
4369
4371
  let f = !1;
4370
- const { compareValue: H, booleanCompareType: V } = w;
4371
- return V === "not-eq" && (f = d === H), V === "eq" && (f = d !== H), f || m.push(w.error), m;
4372
+ const { compareValue: H, booleanCompareType: V } = $;
4373
+ return V === "not-eq" && (f = d === H), V === "eq" && (f = d !== H), f || m.push($.error), m;
4372
4374
  }, []);
4373
4375
  }
4374
4376
  if (y) {
4375
- const $ = o, m = (w, f, H) => {
4377
+ const w = o, m = ($, f, H) => {
4376
4378
  switch (H) {
4377
4379
  case "contains-one":
4378
- return w.some((S) => f.includes(S));
4380
+ return $.some((S) => f.includes(S));
4379
4381
  case "full-eq":
4380
- if (w.length !== f.length)
4382
+ if ($.length !== f.length)
4381
4383
  return !1;
4382
- const V = [...w].sort(), C = [...f].sort();
4384
+ const V = [...$].sort(), C = [...f].sort();
4383
4385
  return V.every((S, B) => S === C[B]);
4384
4386
  case "not-contains":
4385
- return !w.some((S) => f.includes(S));
4387
+ return !$.some((S) => f.includes(S));
4386
4388
  }
4387
4389
  };
4388
- l.value = $.reduce((w, f) => (m(d, f.compareValue, f.arrayCompareType) || w.push(f.error), w), []);
4390
+ l.value = w.reduce(($, f) => (m(d, f.compareValue, f.arrayCompareType) || $.push(f.error), $), []);
4389
4391
  }
4390
4392
  }
4391
4393
  };
@@ -4422,13 +4424,13 @@ const Fe = (e) => {
4422
4424
  console.warn("Relative element is not an HTMLElement");
4423
4425
  return;
4424
4426
  }
4425
- const k = y.getBoundingClientRect(), { x: $, y: m } = k, w = k.width, f = k.height, H = window.innerWidth, V = window.innerHeight;
4426
- h.value === "top" && m - M < 0 && (h.value = "bottom"), h.value === "bottom" && m + f + M > V && (h.value = "top"), h.value === "left" && $ - g < 0 && (h.value = "right"), h.value === "right" && $ + w + g > H && (h.value = "left"), h.value === "top" && (d.value = { x: `${$ + i}px`, y: `${m + r}px` }), h.value === "bottom" && (d.value = { x: `${$ + i}px`, y: `${m + f + r}px` }), h.value === "right" && (d.value = { x: `${$ + i}px`, y: `${m + r}px` }), h.value === "left" && (d.value = { x: `${$ + w + i}px`, y: `${m + r}px` });
4427
+ const k = y.getBoundingClientRect(), { x: w, y: m } = k, $ = k.width, f = k.height, H = window.innerWidth, V = window.innerHeight;
4428
+ h.value === "top" && m - M < 0 && (h.value = "bottom"), h.value === "bottom" && m + f + M > V && (h.value = "top"), h.value === "left" && w - g < 0 && (h.value = "right"), h.value === "right" && w + $ + g > H && (h.value = "left"), h.value === "top" && (d.value = { x: `${w + i}px`, y: `${m + r}px` }), h.value === "bottom" && (d.value = { x: `${w + i}px`, y: `${m + f + r}px` }), h.value === "right" && (d.value = { x: `${w + i}px`, y: `${m + r}px` }), h.value === "left" && (d.value = { x: `${w + $ + i}px`, y: `${m + r}px` });
4427
4429
  });
4428
4430
  };
4429
4431
  return { placement: h, placementCoords: d };
4430
4432
  }, Tx = () => {
4431
- }, Xg = "@nmorph/nmorph-ui-kit", Jg = "module", Qg = "0.2.19", Zg = "MIT", Ng = {
4433
+ }, Xg = "@nmorph/nmorph-ui-kit", Jg = "module", Qg = "0.2.21", Zg = "MIT", Ng = {
4432
4434
  node: "18.13.0",
4433
4435
  npm: "8.19.3"
4434
4436
  }, Ig = "./dist/index.d.ts", ew = "./dist/index.umd.js", tw = "./dist/index.es.js", nw = "./dist/style.css", ow = [
@@ -4590,28 +4592,28 @@ const Fe = (e) => {
4590
4592
  return `#${i}${h}${d}`;
4591
4593
  }, fw = (e, t = !1) => {
4592
4594
  G2("warn", `NMORPH(v${iw.version})`);
4593
- const o = { ..._w, ...e }, l = ($) => {
4595
+ const o = { ..._w, ...e }, l = (w) => {
4594
4596
  try {
4595
- const m = pw($), w = je(m, o.darkShadeGeneratorCoefficient), f = je(m, o.lightShadeGeneratorCoefficient);
4597
+ const m = pw(w), $ = je(m, o.darkShadeGeneratorCoefficient), f = je(m, o.lightShadeGeneratorCoefficient);
4596
4598
  return [
4597
- { name: "--nmorph-dark-shade-color", color: w },
4599
+ { name: "--nmorph-dark-shade-color", color: $ },
4598
4600
  { name: "--nmorph-light-shade-color", color: f }
4599
4601
  ];
4600
4602
  } catch (m) {
4601
4603
  console.error(m.message);
4602
4604
  }
4603
- }, r = ($) => Object.entries($).map(([m, w]) => ({
4605
+ }, r = (w) => Object.entries(w).map(([m, $]) => ({
4604
4606
  name: `--nmorph-${qe(m)}-color`,
4605
- color: w
4606
- })), i = ($, m) => {
4607
- const w = (V) => V.map((C) => `${C.name}: ${C.color};`).join(" "), f = Object.entries(m).map(([V, C]) => `--${qe(V)}: ${C};`).join(" "), H = [];
4608
- return Object.entries($).forEach(([V, C]) => {
4607
+ color: $
4608
+ })), i = (w, m) => {
4609
+ const $ = (V) => V.map((C) => `${C.name}: ${C.color};`).join(" "), f = Object.entries(m).map(([V, C]) => `--${qe(V)}: ${C};`).join(" "), H = [];
4610
+ return Object.entries(w).forEach(([V, C]) => {
4609
4611
  if (V === "common")
4610
- H.push(w(mw(x2, C)));
4612
+ H.push($(mw(x2, C)));
4611
4613
  else {
4612
4614
  const S = `
4613
4615
  &[${ae}='${V}'] {
4614
- ${w(C)}
4616
+ ${$(C)}
4615
4617
  }
4616
4618
  `;
4617
4619
  H.push(S);
@@ -4623,21 +4625,21 @@ const Fe = (e) => {
4623
4625
  }
4624
4626
  `;
4625
4627
  }, h = {};
4626
- Object.entries(o.themes).forEach(([$, m]) => {
4627
- h[$] = [];
4628
- const w = !!m.darkShade, f = !!m.lightShade;
4629
- !!m.main && !w && !f && (h[$] = l(m.main)), h[$] = [...h[$], ...r(m)];
4628
+ Object.entries(o.themes).forEach(([w, m]) => {
4629
+ h[w] = [];
4630
+ const $ = !!m.darkShade, f = !!m.lightShade;
4631
+ !!m.main && !$ && !f && (h[w] = l(m.main)), h[w] = [...h[w], ...r(m)];
4630
4632
  });
4631
4633
  const d = document.createElement("style");
4632
4634
  d.type = "text/css", d.innerHTML = i(h, o.other), document.head.appendChild(d);
4633
- const u = ($) => {
4634
- v.value = $, g.setAttribute(ae, v.value), o.saveCurrentThemeToLS ? localStorage.setItem(ae, $) : localStorage.removeItem(ae);
4635
+ const u = (w) => {
4636
+ v.value = w, g.setAttribute(ae, v.value), o.saveCurrentThemeToLS ? localStorage.setItem(ae, w) : localStorage.removeItem(ae);
4635
4637
  }, v = x(o.defaultTheme), g = document.querySelector("html"), M = localStorage.getItem(ae), y = h[M];
4636
4638
  o.saveCurrentThemeToLS && y && (v.value = localStorage.getItem(ae)), u(v.value);
4637
4639
  const k = { setTheme: u, currentTheme: q2(v) };
4638
4640
  return t ? k : {
4639
- install($) {
4640
- $.provide("nmorph", k);
4641
+ install(w) {
4642
+ w.provide("nmorph", k);
4641
4643
  }
4642
4644
  };
4643
4645
  }, y2 = {
@@ -4924,26 +4926,26 @@ const Ew = { class: "nmorph-autocomplete__input-content" }, Fw = {
4924
4926
  () => D({
4925
4927
  "nmorph-autocomplete": []
4926
4928
  })
4927
- ), h = ($) => {
4928
- l.value = $, r("update:modelValue", l.value);
4929
+ ), h = (w) => {
4930
+ l.value = w, r("update:modelValue", l.value);
4929
4931
  }, d = x(!1), u = x(null), v = () => {
4930
4932
  d.value = !1;
4931
- }, g = _(() => o.list.filter(($) => Object.keys($).some((m) => String($[m]).toLowerCase().includes(l.value.toLowerCase()))));
4932
- G(g, ($) => {
4933
- d.value = $.length > 0;
4933
+ }, g = _(() => o.list.filter((w) => Object.keys(w).some((m) => String(w[m]).toLowerCase().includes(l.value.toLowerCase()))));
4934
+ G(g, (w) => {
4935
+ d.value = w.length > 0;
4934
4936
  });
4935
- const M = ($) => {
4936
- r("select", $), l.value = $.value, setTimeout(() => {
4937
+ const M = (w) => {
4938
+ r("select", w), l.value = w.value, setTimeout(() => {
4937
4939
  d.value = !1;
4938
4940
  });
4939
4941
  }, y = () => {
4940
4942
  d.value = g.value.length > 0;
4941
4943
  }, k = x(!1);
4942
- return G(l, async ($) => {
4943
- $ !== "" && o.actionCallback && (k.value = !0, await o.actionCallback(), k.value = !1);
4944
- }), G(k, ($) => {
4945
- $ && (d.value = !0);
4946
- }), ($, m) => (a(), s("div", {
4944
+ return G(l, async (w) => {
4945
+ w !== "" && o.actionCallback && (k.value = !0, await o.actionCallback(), k.value = !1);
4946
+ }), G(k, (w) => {
4947
+ w && (d.value = !0);
4948
+ }), (w, m) => (a(), s("div", {
4947
4949
  class: z(i.value)
4948
4950
  }, [
4949
4951
  n("div", Ew, [
@@ -4972,20 +4974,20 @@ const Ew = { class: "nmorph-autocomplete__input-content" }, Fw = {
4972
4974
  }, {
4973
4975
  default: R(() => [
4974
4976
  k.value ? (a(), s("div", Fw, [
4975
- A($.$slots, "loader", {}, () => [
4977
+ A(w.$slots, "loader", {}, () => [
4976
4978
  b(p(q), {
4977
4979
  name: "loader",
4978
4980
  size: "large"
4979
4981
  })
4980
4982
  ])
4981
4983
  ])) : (a(), s("div", jw, [
4982
- (a(!0), s(L, null, U(g.value, (w, f) => (a(), s("div", {
4984
+ (a(!0), s(L, null, U(g.value, ($, f) => (a(), s("div", {
4983
4985
  key: f,
4984
4986
  class: "nmorph-autocomplete__list-item",
4985
- onClick: () => M(w)
4987
+ onClick: () => M($)
4986
4988
  }, [
4987
- A($.$slots, "default", { scope: w }, () => [
4988
- ee(E(w.value), 1)
4989
+ A(w.$slots, "default", { scope: $ }, () => [
4990
+ ee(E($.value), 1)
4989
4991
  ])
4990
4992
  ], 8, Ww))), 128))
4991
4993
  ]))
@@ -5055,7 +5057,7 @@ const Le = /* @__PURE__ */ T({
5055
5057
  };
5056
5058
  } else
5057
5059
  return { from: o.startDatePlaceholder, to: o.endDatePlaceholder };
5058
- }), $ = () => {
5060
+ }), w = () => {
5059
5061
  const V = Array.isArray(i.value) ? [] : null;
5060
5062
  i.value = V, h("update:modelValue", i.value);
5061
5063
  };
@@ -5070,7 +5072,7 @@ const Le = /* @__PURE__ */ T({
5070
5072
  } else
5071
5073
  i.value = C;
5072
5074
  h("update:modelValue", i.value);
5073
- }, w = _(() => Array.isArray(i.value) ? i.value.length > 0 : !!i.value), f = (V) => {
5075
+ }, $ = _(() => Array.isArray(i.value) ? i.value.length > 0 : !!i.value), f = (V) => {
5074
5076
  Array.isArray(i.value) && (i.value[0] = V, h("update:modelValue", i.value));
5075
5077
  }, H = (V) => {
5076
5078
  Array.isArray(i.value) && (i.value[1] = V, h("update:modelValue", i.value));
@@ -5092,9 +5094,9 @@ const Le = /* @__PURE__ */ T({
5092
5094
  }),
5093
5095
  n("div", Gw, E(y.value), 1),
5094
5096
  n("div", Kw, [
5095
- w.value ? (a(), P(Le, {
5097
+ $.value ? (a(), P(Le, {
5096
5098
  key: 0,
5097
- onClear: $
5099
+ onClear: w
5098
5100
  })) : O("", !0)
5099
5101
  ])
5100
5102
  ], 2),
@@ -5137,9 +5139,9 @@ const Le = /* @__PURE__ */ T({
5137
5139
  n("div", e$, E(k.value.to), 1)
5138
5140
  ]),
5139
5141
  n("div", t$, [
5140
- w.value ? (a(), P(Le, {
5142
+ $.value ? (a(), P(Le, {
5141
5143
  key: 0,
5142
- onClear: $
5144
+ onClear: w
5143
5145
  })) : O("", !0)
5144
5146
  ])
5145
5147
  ], 2),
@@ -5183,11 +5185,11 @@ const a$ = { class: "nmorph-year-month-picker__header" }, s$ = { class: "nmorph-
5183
5185
  },
5184
5186
  emits: ["update-year", "update-month", "back-to-years"],
5185
5187
  setup(e, { emit: t }) {
5186
- const o = He.map((w, f) => ({
5187
- label: w.substring(0, 3),
5188
+ const o = He.map(($, f) => ({
5189
+ label: $.substring(0, 3),
5188
5190
  value: String(f)
5189
5191
  })), l = e, r = x(o), i = x(String(l.currentDate.getMonth())), h = x(l.currentDate.getFullYear()), d = () => {
5190
- const w = l.currentDate.getFullYear(), f = r2(w).map((H) => ({ label: String(H), value: String(H) }));
5192
+ const $ = l.currentDate.getFullYear(), f = r2($).map((H) => ({ label: String(H), value: String(H) }));
5191
5193
  r.value = f;
5192
5194
  };
5193
5195
  G(
@@ -5204,24 +5206,24 @@ const a$ = { class: "nmorph-year-month-picker__header" }, s$ = { class: "nmorph-
5204
5206
  () => D({
5205
5207
  "nmorph-year-month-picker": []
5206
5208
  })
5207
- ), g = (w) => {
5208
- i.value = w, l.type === "month" ? u("update-month", i.value) : u("update-year", i.value);
5209
- }, M = (w) => {
5209
+ ), g = ($) => {
5210
+ i.value = $, l.type === "month" ? u("update-month", i.value) : u("update-year", i.value);
5211
+ }, M = ($) => {
5210
5212
  r.value = r.value.map((f) => {
5211
- const H = String(w === "decrease" ? Number(f.value) - 10 : Number(f.value) + 10);
5213
+ const H = String($ === "decrease" ? Number(f.value) - 10 : Number(f.value) + 10);
5212
5214
  return {
5213
5215
  label: H,
5214
5216
  value: H
5215
5217
  };
5216
5218
  });
5217
- }, y = (w) => {
5218
- w === "decrease" ? h.value = h.value - 1 : h.value = h.value + 1, u("update-year", String(h.value));
5219
- }, k = (w) => {
5220
- w === "decrease" ? l.type === "year" ? M("decrease") : y("decrease") : l.type === "year" ? M("increase") : y("increase");
5221
- }, $ = _(() => l.type === "year" ? `${r.value[0].label} - ${r.value[r.value.length - 1].label}` : String(h.value)), m = () => {
5219
+ }, y = ($) => {
5220
+ $ === "decrease" ? h.value = h.value - 1 : h.value = h.value + 1, u("update-year", String(h.value));
5221
+ }, k = ($) => {
5222
+ $ === "decrease" ? l.type === "year" ? M("decrease") : y("decrease") : l.type === "year" ? M("increase") : y("increase");
5223
+ }, w = _(() => l.type === "year" ? `${r.value[0].label} - ${r.value[r.value.length - 1].label}` : String(h.value)), m = () => {
5222
5224
  l.type === "month" && u("back-to-years");
5223
5225
  };
5224
- return (w, f) => (a(), s("div", {
5226
+ return ($, f) => (a(), s("div", {
5225
5227
  class: z(v.value)
5226
5228
  }, [
5227
5229
  n("div", a$, [
@@ -5240,7 +5242,7 @@ const a$ = { class: "nmorph-year-month-picker__header" }, s$ = { class: "nmorph-
5240
5242
  }),
5241
5243
  n("div", s$, [
5242
5244
  b(p(W), {
5243
- text: $.value,
5245
+ text: w.value,
5244
5246
  "style-type": "transparent",
5245
5247
  onClick: m
5246
5248
  }, null, 8, ["text"])
@@ -5289,11 +5291,11 @@ const ve = /* @__PURE__ */ T({
5289
5291
  i.value = u.value;
5290
5292
  }, k = () => {
5291
5293
  i.value = v.value;
5292
- }, $ = () => {
5294
+ }, w = () => {
5293
5295
  i.value = g.value;
5294
5296
  }, m = () => {
5295
5297
  h.value = "year";
5296
- }, w = () => {
5298
+ }, $ = () => {
5297
5299
  h.value = "month";
5298
5300
  }, f = (S) => {
5299
5301
  const B = new Date(i.value.setFullYear(Number(S)));
@@ -5322,9 +5324,9 @@ const ve = /* @__PURE__ */ T({
5322
5324
  onPrevMonth: M,
5323
5325
  onNextMonth: y,
5324
5326
  onPrevYear: k,
5325
- onNextYear: $,
5327
+ onNextYear: w,
5326
5328
  onChangeYear: m,
5327
- onChangeMonth: w
5329
+ onChangeMonth: $
5328
5330
  }, null, 8, ["date"])
5329
5331
  ]),
5330
5332
  _: 1
@@ -5446,19 +5448,19 @@ const d$ = { class: "nmorph-file-upload__trigger" }, h$ = ["multiple"], u$ = { c
5446
5448
  emits: ["inputDOMRef", "update:modelValue", "on-unsupported-file-type-error"],
5447
5449
  setup(e, { emit: t }) {
5448
5450
  const o = e, l = (k) => k.split("/")[1], r = (k) => {
5449
- const $ = l(k);
5451
+ const w = l(k);
5450
5452
  let m = "doc";
5451
- return $ in me && (m = "image"), $ in ge && (m = "audio"), $ in fe && (m = "video"), $ in we && (m = "archive"), m;
5453
+ return w in me && (m = "image"), w in ge && (m = "audio"), w in fe && (m = "video"), w in we && (m = "archive"), m;
5452
5454
  };
5453
5455
  let i = le(o.modelValue);
5454
5456
  const h = x(null), d = () => {
5455
5457
  h.value && h.value.click();
5456
5458
  }, u = (k) => {
5457
- const $ = k.target;
5458
- if ($.files) {
5459
- if (Array.from($.files).forEach((m) => {
5460
- const w = l(m.type);
5461
- if (!o.allowedTypes.includes(w))
5459
+ const w = k.target;
5460
+ if (w.files) {
5461
+ if (Array.from(w.files).forEach((m) => {
5462
+ const $ = l(m.type);
5463
+ if (!o.allowedTypes.includes($))
5462
5464
  return M("on-unsupported-file-type-error", m.type);
5463
5465
  const f = URL.createObjectURL(m), H = { data: m, previewUrl: f };
5464
5466
  i.push(H);
@@ -5472,8 +5474,8 @@ const d$ = { class: "nmorph-file-upload__trigger" }, h$ = ["multiple"], u$ = { c
5472
5474
  i.map((k) => k.data)
5473
5475
  );
5474
5476
  }, g = (k) => {
5475
- const $ = i.findIndex((m) => m.data.name === k);
5476
- $ !== -1 && (URL.revokeObjectURL(i[$].previewUrl), i.splice($, 1), v());
5477
+ const w = i.findIndex((m) => m.data.name === k);
5478
+ w !== -1 && (URL.revokeObjectURL(i[w].previewUrl), i.splice(w, 1), v());
5477
5479
  };
5478
5480
  Y(() => {
5479
5481
  M("inputDOMRef", h);
@@ -5484,7 +5486,7 @@ const d$ = { class: "nmorph-file-upload__trigger" }, h$ = ["multiple"], u$ = { c
5484
5486
  "nmorph-file-upload": [`${o.disabled && "disabled"}`]
5485
5487
  })
5486
5488
  );
5487
- return (k, $) => (a(), s("div", {
5489
+ return (k, w) => (a(), s("div", {
5488
5490
  class: z(y.value)
5489
5491
  }, [
5490
5492
  n("div", d$, [
@@ -5510,11 +5512,11 @@ const d$ = { class: "nmorph-file-upload__trigger" }, h$ = ["multiple"], u$ = { c
5510
5512
  tag: "div"
5511
5513
  }, {
5512
5514
  default: R(() => [
5513
- (a(!0), s(L, null, U(p(i), ({ data: m, previewUrl: w }) => (a(), s("div", {
5515
+ (a(!0), s(L, null, U(p(i), ({ data: m, previewUrl: $ }) => (a(), s("div", {
5514
5516
  key: m.name,
5515
5517
  class: "nmorph-file-upload__file"
5516
5518
  }, [
5517
- b(p(_2), { src: w }, null, 8, ["src"]),
5519
+ b(p(_2), { src: $ }, null, 8, ["src"]),
5518
5520
  n("div", _$, [
5519
5521
  b(p(q), {
5520
5522
  name: r(m.type),
@@ -5728,17 +5730,17 @@ const k$ = { class: "nmorph-number-input__content" }, V$ = { class: "nmorph-numb
5728
5730
  const m = o.actionBtnPositionRight ? "right" : "default";
5729
5731
  return g[o.height][m];
5730
5732
  }), y = t, k = (m) => {
5731
- const w = m.target;
5732
- let f = Number(w.value);
5733
+ const $ = m.target;
5734
+ let f = Number($.value);
5733
5735
  r.value = f;
5734
5736
  };
5735
5737
  G(r, (m) => {
5736
- m > o.max && (r.value = o.max, $.value?.blur()), r.value < o.min && (r.value = o.min, $.value?.blur()), y("update:modelValue", m);
5738
+ m > o.max && (r.value = o.max, w.value?.blur()), r.value < o.min && (r.value = o.min, w.value?.blur()), y("update:modelValue", m);
5737
5739
  }), Y(() => {
5738
- y("inputDOMRef", $);
5740
+ y("inputDOMRef", w);
5739
5741
  });
5740
- const $ = x(null);
5741
- return (m, w) => (a(), s("div", {
5742
+ const w = x(null);
5743
+ return (m, $) => (a(), s("div", {
5742
5744
  class: z(l.value)
5743
5745
  }, [
5744
5746
  n("div", k$, [
@@ -5762,7 +5764,7 @@ const k$ = { class: "nmorph-number-input__content" }, V$ = { class: "nmorph-numb
5762
5764
  ])),
5763
5765
  n("input", {
5764
5766
  ref_key: "inputDOMRef",
5765
- ref: $,
5767
+ ref: w,
5766
5768
  class: "nmorph-native-input",
5767
5769
  value: r.value,
5768
5770
  type: "number",
@@ -5885,16 +5887,16 @@ const T$ = { class: "nmorph-select__content" }, O$ = {
5885
5887
  }), pe(() => {
5886
5888
  document.removeEventListener("click", y);
5887
5889
  });
5888
- const k = _(() => typeof r.value == "string" ? r.value === "" ? o.noElementPlaceholder : o.options.find((f) => f.value === r.value)?.label : r.value), $ = _(() => o.options.length > 0 ? o.options : o.optionsMap), m = _(() => $.value.length > 0 ? $.value.filter((H) => r.value.includes(H.value)).map((H) => ({ text: H.label, value: H.value })) : Array.isArray(r.value) ? r.value.map((H) => ({ text: H, value: H })) : [{ text: r.value, value: r.value }]);
5890
+ const k = _(() => typeof r.value == "string" ? r.value === "" ? o.noElementPlaceholder : o.options.find((f) => f.value === r.value)?.label : r.value), w = _(() => o.options.length > 0 ? o.options : o.optionsMap), m = _(() => w.value.length > 0 ? w.value.filter((H) => r.value.includes(H.value)).map((H) => ({ text: H.label, value: H.value })) : Array.isArray(r.value) ? r.value.map((H) => ({ text: H, value: H })) : [{ text: r.value, value: r.value }]);
5889
5891
  J("select-selected-value", r), J("select-change-selected-value", v);
5890
- const w = x(null);
5892
+ const $ = x(null);
5891
5893
  return (f, H) => (a(), s("div", {
5892
5894
  class: z(g.value)
5893
5895
  }, [
5894
5896
  n("div", T$, [
5895
5897
  n("div", {
5896
5898
  ref_key: "nmorphSelectDOMRef",
5897
- ref: w,
5899
+ ref: $,
5898
5900
  class: "nmorph-select__selected-values-line",
5899
5901
  onClick: ne(M, ["stop"])
5900
5902
  }, [
@@ -5916,10 +5918,10 @@ const T$ = { class: "nmorph-select__content" }, O$ = {
5916
5918
  })
5917
5919
  ], 512)
5918
5920
  ]),
5919
- w.value ? (a(), P(p(re), {
5921
+ $.value ? (a(), P(p(re), {
5920
5922
  key: 0,
5921
5923
  open: i.value,
5922
- "relative-element": w.value,
5924
+ "relative-element": $.value,
5923
5925
  onOnOutsideClick: y
5924
5926
  }, {
5925
5927
  default: R(() => [
@@ -5994,7 +5996,7 @@ const F$ = { class: "nmorph-slider__content" }, j$ = { class: "nmorph-slider__in
5994
5996
  emits: ["update:modelValue"],
5995
5997
  setup(e, { emit: t }) {
5996
5998
  I((V) => ({
5997
- a08b3702: r
5999
+ ad126306: r
5998
6000
  }));
5999
6001
  const o = e, l = _(
6000
6002
  () => D({
@@ -6013,13 +6015,13 @@ const F$ = { class: "nmorph-slider__content" }, j$ = { class: "nmorph-slider__in
6013
6015
  thumb: K,
6014
6016
  tooltip: Z
6015
6017
  };
6016
- }), g = x(window.innerWidth), M = x(window.innerHeight), y = () => {
6018
+ }), g = x(0), M = x(0), y = () => {
6017
6019
  g.value = window.innerWidth, M.value = window.innerHeight;
6018
6020
  };
6019
6021
  Y(() => {
6020
- window.addEventListener("resize", y);
6022
+ typeof window < "u" && (g.value = window.innerWidth, M.value = window.innerHeight, window.addEventListener("resize", y));
6021
6023
  }), pe(() => {
6022
- document.removeEventListener("mouseup", $), window.removeEventListener("resize", y);
6024
+ typeof window < "u" && (document.removeEventListener("mouseup", w), window.removeEventListener("resize", y));
6023
6025
  });
6024
6026
  const k = (V) => {
6025
6027
  const C = u.value?.getBoundingClientRect();
@@ -6029,11 +6031,11 @@ const F$ = { class: "nmorph-slider__content" }, j$ = { class: "nmorph-slider__in
6029
6031
  S = Math.max(0, Math.min(1, B / F)), d.value = o.min + S * (o.max - o.min);
6030
6032
  }
6031
6033
  d.value = Math.round(d.value / o.step) * o.step, d.value = Math.max(o.min, Math.min(o.max, d.value));
6032
- }, $ = () => {
6033
- document.removeEventListener("mousemove", k), document.removeEventListener("mouseup", $);
6034
+ }, w = () => {
6035
+ document.removeEventListener("mousemove", k), document.removeEventListener("mouseup", w);
6034
6036
  }, m = () => {
6035
- o.disabled || (document.addEventListener("mousemove", k), document.addEventListener("mouseup", $));
6036
- }, w = x(null), f = () => {
6037
+ o.disabled || (document.addEventListener("mousemove", k), document.addEventListener("mouseup", w));
6038
+ }, $ = x(null), f = () => {
6037
6039
  o.showTooltip && (i.value = !0);
6038
6040
  }, H = () => {
6039
6041
  o.showTooltip && (i.value = !1);
@@ -6057,7 +6059,7 @@ const F$ = { class: "nmorph-slider__content" }, j$ = { class: "nmorph-slider__in
6057
6059
  }, null, 8, ["text", "force-coordinate"])) : O("", !0),
6058
6060
  n("div", {
6059
6061
  ref_key: "sliderFirst",
6060
- ref: w,
6062
+ ref: $,
6061
6063
  class: "nmorph-slider__thumb",
6062
6064
  style: N({ left: v.value.thumb }),
6063
6065
  onMouseenter: f,
@@ -6152,16 +6154,16 @@ const G$ = { class: "nmorph-text-input__input-side" }, K$ = {
6152
6154
  },
6153
6155
  emits: ["inputDOMRef", "update:modelValue", "focus", "blur", "on-enter"],
6154
6156
  setup(e, { emit: t }) {
6155
- I((w) => ({
6156
- "75bfc421": $.value
6157
+ I(($) => ({
6158
+ "75bfc421": w.value
6157
6159
  }));
6158
6160
  const o = e, l = _(
6159
6161
  () => D({
6160
6162
  nmorph: [te[o.height], `${u.value && "focused"}`, `${o.fill && "fill"}`],
6161
6163
  "nmorph-text-input": [`${o.typePassword && "password"}`]
6162
6164
  })
6163
- ), r = (w) => {
6164
- const f = w.target;
6165
+ ), r = ($) => {
6166
+ const f = $.target;
6165
6167
  y("update:modelValue", f.value);
6166
6168
  }, i = x(!1), h = () => {
6167
6169
  o.clearable ? y("update:modelValue", "") : i.value = !i.value;
@@ -6173,13 +6175,13 @@ const G$ = { class: "nmorph-text-input__input-side" }, K$ = {
6173
6175
  Y(() => {
6174
6176
  y("inputDOMRef", M);
6175
6177
  });
6176
- const k = _(() => o.clearable ? "error" : i.value ? "eye-blocked" : "eye"), $ = _(() => m["prepend-icon"] ? "28px" : "8px"), m = Xe();
6177
- return (w, f) => (a(), s("div", {
6178
+ const k = _(() => o.clearable ? "error" : i.value ? "eye-blocked" : "eye"), w = _(() => m["prepend-icon"] ? "28px" : "8px"), m = Xe();
6179
+ return ($, f) => (a(), s("div", {
6178
6180
  class: z(l.value)
6179
6181
  }, [
6180
6182
  n("div", G$, [
6181
6183
  p(m)["prepend-icon"] ? (a(), s("div", K$, [
6182
- A(w.$slots, "prepend-icon")
6184
+ A($.$slots, "prepend-icon")
6183
6185
  ])) : O("", !0),
6184
6186
  n("input", {
6185
6187
  ref_key: "inputDOMRef",
@@ -6241,13 +6243,13 @@ const J$ = { class: "nmorph-time-picker__content" }, Q$ = { class: "nmorph-time-
6241
6243
  })
6242
6244
  ), M = Array.from({ length: 24 }, (S, B) => B), y = Array.from({ length: 60 }, (S, B) => B), k = () => {
6243
6245
  u.value = !1, l("update:modelValue", C2(d.value));
6244
- }, $ = (S) => {
6246
+ }, w = (S) => {
6245
6247
  const B = S;
6246
6248
  d.value = [B, d.value[1], d.value[2]], k();
6247
6249
  }, m = (S) => {
6248
6250
  const B = S;
6249
6251
  d.value = [d.value[0], B, d.value[2]], k();
6250
- }, w = (S) => {
6252
+ }, $ = (S) => {
6251
6253
  const B = S;
6252
6254
  d.value = [d.value[0], d.value[1], B], k();
6253
6255
  }, f = () => {
@@ -6300,7 +6302,7 @@ const J$ = { class: "nmorph-time-picker__content" }, Q$ = { class: "nmorph-time-
6300
6302
  "selected-value": d.value[0],
6301
6303
  "step-height": _e,
6302
6304
  "disabled-range": S.disabledHours,
6303
- onValueChanged: $
6305
+ onValueChanged: w
6304
6306
  }, null, 8, ["set-value-on-mount", "values", "selected-value", "disabled-range"]),
6305
6307
  b(F, {
6306
6308
  "set-value-on-mount": !u.value,
@@ -6316,7 +6318,7 @@ const J$ = { class: "nmorph-time-picker__content" }, Q$ = { class: "nmorph-time-
6316
6318
  "disabled-range": S.disabledSeconds,
6317
6319
  "selected-value": d.value[2],
6318
6320
  "step-height": _e,
6319
- onValueChanged: w
6321
+ onValueChanged: $
6320
6322
  }, null, 8, ["set-value-on-mount", "values", "disabled-range", "selected-value"])
6321
6323
  ])
6322
6324
  ]),