@nmorph/nmorph-ui-kit 1.0.38 → 1.0.39

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
@@ -1,5 +1,5 @@
1
1
  import { createI18n as pe, useI18n as $2 } from "vue-i18n";
2
- import { ref as g, reactive as d2, watch as W, readonly as I2, inject as X, onMounted as n2, onUnmounted as m2, nextTick as v2, defineComponent as L, useSlots as y2, computed as h, openBlock as o, createElementBlock as a, normalizeClass as k, createElementVNode as n, unref as v, createBlock as O, withCtx as D, renderSlot as B, toDisplayString as R, createCommentVNode as S, createVNode as z, useCssVars as J, normalizeStyle as t2, createStaticVNode as ee, createTextVNode as s2, Fragment as U, renderList as Y, provide as e2, Teleport as w2, withModifiers as r2, resolveDynamicComponent as C2, mergeProps as g2, withDirectives as L2, vShow as S2, TransitionGroup as x2, withKeys as p2, resolveComponent as T2 } from "vue";
2
+ import { ref as g, reactive as d2, watch as j, readonly as I2, inject as X, onMounted as n2, onUnmounted as m2, nextTick as v2, defineComponent as L, useSlots as y2, computed as h, openBlock as o, createElementBlock as a, normalizeClass as k, createElementVNode as n, unref as v, createBlock as O, withCtx as D, renderSlot as B, toDisplayString as R, createCommentVNode as S, createVNode as z, useCssVars as J, normalizeStyle as t2, createStaticVNode as ee, createTextVNode as s2, Fragment as U, renderList as Y, provide as e2, Teleport as w2, withModifiers as r2, resolveDynamicComponent as C2, mergeProps as g2, withDirectives as L2, vShow as S2, TransitionGroup as x2, withKeys as p2, resolveComponent as T2 } from "vue";
3
3
  const k2 = (t) => {
4
4
  const { inputValue: e, rules: s } = t, l = g([]), r = g(!1), c = g(!1);
5
5
  return {
@@ -71,10 +71,10 @@ const k2 = (t) => {
71
71
  r.value = l.value.length === 0;
72
72
  }
73
73
  };
74
- }, zi = (t) => t.charAt(0).toUpperCase() + t.slice(1), W2 = (t) => JSON.parse(JSON.stringify(t)), u2 = () => {
74
+ }, zi = (t) => t.charAt(0).toUpperCase() + t.slice(1), j2 = (t) => JSON.parse(JSON.stringify(t)), u2 = () => {
75
75
  const t = () => Math.floor((1 + Math.random()) * 65536).toString(16).substring(1);
76
76
  return `${t()}${t()}-${t()}-4${t().substr(0, 3)}-${t().substr(0, 1)}${t().substr(1, 3)}-${t()}${t()}${t()}`;
77
- }, j2 = {
77
+ }, W2 = {
78
78
  error: {
79
79
  bg: "#000000",
80
80
  text: "red"
@@ -92,9 +92,9 @@ const k2 = (t) => {
92
92
  text: "blue"
93
93
  }
94
94
  }, ve = (t, e) => {
95
- console.log(`%c ${e} `, `background: ${j2[t].bg}; color: ${j2[t].text}`);
95
+ console.log(`%c ${e} `, `background: ${W2[t].bg}; color: ${W2[t].text}`);
96
96
  }, me = (t, e = !1) => {
97
- const s = d2({}), l = d2({}), r = d2(W2(t)), c = g(!1), d = g(!1), i = () => {
97
+ const s = d2({}), l = d2({}), r = d2(j2(t)), c = g(!1), d = g(!1), i = () => {
98
98
  Object.entries(t).forEach(([H, m]) => {
99
99
  l[H] = k2({ inputValue: m.value, rules: m.rules }), l[H].validate();
100
100
  }), c.value = Object.entries(l).every(([H, m]) => m.valid);
@@ -106,11 +106,11 @@ const k2 = (t) => {
106
106
  const x = H[f] ? JSON.stringify(H[f]) : null, b = JSON.stringify(m[f]);
107
107
  return x !== b;
108
108
  });
109
- return W(t, (H) => {
109
+ return j(t, (H) => {
110
110
  p(r, H).forEach((w) => {
111
111
  const f = H[w];
112
112
  s[w] = k2({ inputValue: f.value, rules: f.rules }), s[w].validate();
113
- }), Object.assign(r, W2(H)), i(), d.value = !0;
113
+ }), Object.assign(r, j2(H)), i(), d.value = !0;
114
114
  }, { deep: !0 }), e && u(), {
115
115
  fields: s,
116
116
  isFormValid: I2(c),
@@ -118,7 +118,7 @@ const k2 = (t) => {
118
118
  };
119
119
  }, te = (t) => {
120
120
  const { initialPlacement: e, relativeElement: s, contentDOMElement: l, yOffset: r = 0, xOffset: c = 0 } = t, d = g(e), i = g({ x: "0px", y: "0px" }), u = X("nmorph"), p = g(null);
121
- W(
121
+ j(
122
122
  () => u.browser,
123
123
  () => {
124
124
  w();
@@ -159,7 +159,7 @@ const k2 = (t) => {
159
159
  });
160
160
  };
161
161
  return { placement: d, placementCoords: i };
162
- }, _e = "@nmorph/nmorph-ui-kit", fe = "module", we = "1.0.38", ge = "MIT", xe = {
162
+ }, _e = "@nmorph/nmorph-ui-kit", fe = "module", we = "1.0.39", ge = "MIT", xe = {
163
163
  node: "18.13.0",
164
164
  npm: "8.19.3"
165
165
  }, $e = "./dist/index.d.ts", ye = "./dist/index.umd.js", be = "./dist/index.es.js", Me = "./dist/style.css", He = [
@@ -362,7 +362,7 @@ const k2 = (t) => {
362
362
  const m = e;
363
363
  return { setTheme: i, currentTheme: I2(u), data: m, getDynamicColorVariables: s };
364
364
  };
365
- var l2 = /* @__PURE__ */ ((t) => (t.thick = "thick-component", t.default = "default-height-component", t.thin = "thin-component", t))(l2 || {}), Ee = /* @__PURE__ */ ((t) => (t.circle = "circle", t.square = "square", t))(Ee || {}), Re = /* @__PURE__ */ ((t) => (t.ascending = "ascending", t.descending = "descending", t))(Re || {}), qe = /* @__PURE__ */ ((t) => (t.row = "row", t.column = "column", t))(qe || {}), oe = /* @__PURE__ */ ((t) => (t.inset = "shadow-inset", t.outset = "shadow-outset", t.combined = "shadow-combined", t["not-defined"] = "shadow-not-defined", t))(oe || {}), ae = /* @__PURE__ */ ((t) => (t.accent = "accent", t.success = "success", t.error = "error", t.warning = "warning", t))(ae || {}), We = /* @__PURE__ */ ((t) => (t.left = "left", t.right = "right", t.top = "top", t.bottom = "bottom", t))(We || {}), je = /* @__PURE__ */ ((t) => (t.fill = "fill", t.contain = "contain", t.cover = "cover", t.none = "none", t["scale-down"] = "scale-down", t))(je || {}), Q = /* @__PURE__ */ ((t) => (t.en = "en", t.ru = "ru", t.zh = "zh", t))(Q || {}), Ue = /* @__PURE__ */ ((t) => (t["radio-style"] = "radio-style", t.button = "button", t))(Ue || {}), Ye = /* @__PURE__ */ ((t) => (t.date = "date", t.dates = "dates", t.daterange = "daterange", t))(Ye || {});
365
+ var l2 = /* @__PURE__ */ ((t) => (t.thick = "thick-component", t.default = "default-height-component", t.thin = "thin-component", t))(l2 || {}), Ee = /* @__PURE__ */ ((t) => (t.circle = "circle", t.square = "square", t))(Ee || {}), Re = /* @__PURE__ */ ((t) => (t.ascending = "ascending", t.descending = "descending", t))(Re || {}), qe = /* @__PURE__ */ ((t) => (t.row = "row", t.column = "column", t))(qe || {}), oe = /* @__PURE__ */ ((t) => (t.inset = "shadow-inset", t.outset = "shadow-outset", t.combined = "shadow-combined", t["not-defined"] = "shadow-not-defined", t))(oe || {}), ae = /* @__PURE__ */ ((t) => (t.accent = "accent", t.success = "success", t.error = "error", t.warning = "warning", t))(ae || {}), je = /* @__PURE__ */ ((t) => (t.left = "left", t.right = "right", t.top = "top", t.bottom = "bottom", t))(je || {}), We = /* @__PURE__ */ ((t) => (t.fill = "fill", t.contain = "contain", t.cover = "cover", t.none = "none", t["scale-down"] = "scale-down", t))(We || {}), Q = /* @__PURE__ */ ((t) => (t.en = "en", t.ru = "ru", t.zh = "zh", t))(Q || {}), Ue = /* @__PURE__ */ ((t) => (t["radio-style"] = "radio-style", t.button = "button", t))(Ue || {}), Ye = /* @__PURE__ */ ((t) => (t.date = "date", t.dates = "dates", t.daterange = "daterange", t))(Ye || {});
366
366
  const Ge = {
367
367
  [Q.en]: {
368
368
  on: "On",
@@ -757,17 +757,17 @@ function q0(t, e) {
757
757
  n("path", { d: "M246.656 822.656a32 32 0 0 1-45.312-45.312l544-544a32 32 0 0 1 45.312 45.312z" }, null, -1)
758
758
  ]));
759
759
  }
760
- const Ri = { render: q0 }, W0 = {
760
+ const Ri = { render: q0 }, j0 = {
761
761
  xmlns: "http://www.w3.org/2000/svg",
762
762
  viewBox: "0 0 1024 1024"
763
763
  };
764
- function j0(t, e) {
765
- return o(), a("svg", W0, e[0] || (e[0] = [
764
+ function W0(t, e) {
765
+ return o(), a("svg", j0, e[0] || (e[0] = [
766
766
  n("path", { d: "M352 768a32 32 0 1 0 0 64h448a32 32 0 0 0 32-32V352a32 32 0 0 0-64 0v416z" }, null, -1),
767
767
  n("path", { d: "M777.344 822.656a32 32 0 0 0 45.312-45.312l-544-544a32 32 0 0 0-45.312 45.312z" }, null, -1)
768
768
  ]));
769
769
  }
770
- const qi = { render: j0 }, U0 = {
770
+ const qi = { render: W0 }, U0 = {
771
771
  xmlns: "http://www.w3.org/2000/svg",
772
772
  viewBox: "0 0 1024 1024"
773
773
  };
@@ -776,7 +776,7 @@ function Y0(t, e) {
776
776
  n("path", { d: "M544 805.888V168a32 32 0 1 0-64 0v637.888L246.656 557.952a30.72 30.72 0 0 0-45.312 0 35.52 35.52 0 0 0 0 48.064l288 306.048a30.72 30.72 0 0 0 45.312 0l288-306.048a35.52 35.52 0 0 0 0-48 30.72 30.72 0 0 0-45.312 0L544 805.824z" }, null, -1)
777
777
  ]));
778
778
  }
779
- const Wi = { render: Y0 }, G0 = {
779
+ const ji = { render: Y0 }, G0 = {
780
780
  xmlns: "http://www.w3.org/2000/svg",
781
781
  viewBox: "0 0 32 32"
782
782
  };
@@ -785,7 +785,7 @@ function Q0(t, e) {
785
785
  n("path", { d: "M2 6h28v6H2zm0 8h28v6H2zm0 8h28v6H2z" }, null, -1)
786
786
  ]));
787
787
  }
788
- const ji = { render: Q0 }, K0 = {
788
+ const Wi = { render: Q0 }, K0 = {
789
789
  xmlns: "http://www.w3.org/2000/svg",
790
790
  viewBox: "0 0 32 32"
791
791
  };
@@ -1005,17 +1005,17 @@ const hc = { render: Rt }, qt = {
1005
1005
  xmlns: "http://www.w3.org/2000/svg",
1006
1006
  viewBox: "0 0 1024 1024"
1007
1007
  };
1008
- function Wt(t, e) {
1008
+ function jt(t, e) {
1009
1009
  return o(), a("svg", qt, e[0] || (e[0] = [
1010
1010
  n("path", { d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-38.4 409.6H326.4a38.4 38.4 0 1 0 0 76.8h147.2v147.2a38.4 38.4 0 0 0 76.8 0V550.4h147.2a38.4 38.4 0 0 0 0-76.8H550.4V326.4a38.4 38.4 0 1 0-76.8 0z" }, null, -1)
1011
1011
  ]));
1012
1012
  }
1013
- const pc = { render: Wt }, jt = {
1013
+ const pc = { render: jt }, Wt = {
1014
1014
  xmlns: "http://www.w3.org/2000/svg",
1015
1015
  viewBox: "0 0 1024 1024"
1016
1016
  };
1017
1017
  function Ut(t, e) {
1018
- return o(), a("svg", jt, e[0] || (e[0] = [
1018
+ return o(), a("svg", Wt, e[0] || (e[0] = [
1019
1019
  n("path", { d: "M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64" }, null, -1),
1020
1020
  n("path", { d: "M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0" }, null, -1),
1021
1021
  n("path", { d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896" }, null, -1)
@@ -1259,16 +1259,16 @@ function q1(t, e) {
1259
1259
  n("path", { d: "M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m318.4 582.144 180.992-180.992L704.64 510.4 478.4 736.64 320 578.304l45.248-45.312z" }, null, -1)
1260
1260
  ]));
1261
1261
  }
1262
- const Oc = { render: q1 }, W1 = {
1262
+ const Oc = { render: q1 }, j1 = {
1263
1263
  xmlns: "http://www.w3.org/2000/svg",
1264
1264
  viewBox: "0 0 1024 1024"
1265
1265
  };
1266
- function j1(t, e) {
1267
- return o(), a("svg", W1, e[0] || (e[0] = [
1266
+ function W1(t, e) {
1267
+ return o(), a("svg", j1, e[0] || (e[0] = [
1268
1268
  n("path", { d: "M128 320v576h576V320zm-32-64h640a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32M960 96v704a32 32 0 0 1-32 32h-96v-64h64V128H384v64h-64V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32M256 672h320v64H256zm0-192h320v64H256z" }, null, -1)
1269
1269
  ]));
1270
1270
  }
1271
- const Pc = { render: j1 }, U1 = {
1271
+ const Pc = { render: W1 }, U1 = {
1272
1272
  xmlns: "http://www.w3.org/2000/svg",
1273
1273
  viewBox: "0 0 1024 1024"
1274
1274
  };
@@ -1313,7 +1313,7 @@ function tn(t, e) {
1313
1313
  n("path", { d: "m199.04 672.64 193.984 112 224-387.968-193.92-112-224 388.032zm-23.872 60.16 32.896 148.288 144.896-45.696zM455.04 229.248l193.92 112 56.704-98.112-193.984-112zM104.32 708.8l384-665.024 304.768 175.936L409.152 884.8h.064l-248.448 78.336zm384 254.272v-64h448v64z" }, null, -1)
1314
1314
  ]));
1315
1315
  }
1316
- const Wc = { render: tn }, nn = {
1316
+ const jc = { render: tn }, nn = {
1317
1317
  xmlns: "http://www.w3.org/2000/svg",
1318
1318
  viewBox: "0 0 1024 1024"
1319
1319
  };
@@ -1323,7 +1323,7 @@ function on(t, e) {
1323
1323
  n("path", { d: "m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z" }, null, -1)
1324
1324
  ]));
1325
1325
  }
1326
- const jc = { render: on }, an = { viewBox: "0 0 32 32" };
1326
+ const Wc = { render: on }, an = { viewBox: "0 0 32 32" };
1327
1327
  function sn(t, e) {
1328
1328
  return o(), a("svg", an, e[0] || (e[0] = [
1329
1329
  n("path", { d: "M32 0H19l5 5-6 6 3 3 6-6 5 5zM32 32V19l-5 5-6-6-3 3 6 6-5 5zM0 32h13l-5-5 6-6-3-3-6 6-5-5zM0 0v13l5-5 6 6 3-3-6-6 5-5z" }, null, -1)
@@ -1494,16 +1494,16 @@ function qn(t, e) {
1494
1494
  n("path", { d: "M256 410.304V96a32 32 0 0 1 64 0v314.304a96 96 0 0 0 64-90.56V96a32 32 0 0 1 64 0v223.744a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.544a160 160 0 0 1-128-156.8V96a32 32 0 0 1 64 0v223.744a96 96 0 0 0 64 90.56M672 572.48C581.184 552.128 512 446.848 512 320c0-141.44 85.952-256 192-256s192 114.56 192 256c0 126.848-69.184 232.128-160 252.48V928a32 32 0 1 1-64 0zM704 512c66.048 0 128-82.56 128-192s-61.952-192-128-192-128 82.56-128 192 61.952 192 128 192" }, null, -1)
1495
1495
  ]));
1496
1496
  }
1497
- const cd = { render: qn }, Wn = {
1497
+ const cd = { render: qn }, jn = {
1498
1498
  xmlns: "http://www.w3.org/2000/svg",
1499
1499
  viewBox: "0 0 1024 1024"
1500
1500
  };
1501
- function jn(t, e) {
1502
- return o(), a("svg", Wn, e[0] || (e[0] = [
1501
+ function Wn(t, e) {
1502
+ return o(), a("svg", jn, e[0] || (e[0] = [
1503
1503
  n("path", { d: "m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z" }, null, -1)
1504
1504
  ]));
1505
1505
  }
1506
- const dd = { render: jn }, Un = {
1506
+ const dd = { render: Wn }, Un = {
1507
1507
  xmlns: "http://www.w3.org/2000/svg",
1508
1508
  viewBox: "0 0 1024 1024"
1509
1509
  };
@@ -1732,16 +1732,16 @@ function Ro(t, e) {
1732
1732
  n("path", { d: "M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248M828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0" }, null, -1)
1733
1733
  ]));
1734
1734
  }
1735
- const qo = { render: Ro }, Wo = {
1735
+ const qo = { render: Ro }, jo = {
1736
1736
  xmlns: "http://www.w3.org/2000/svg",
1737
1737
  viewBox: "0 0 1024 1024"
1738
1738
  };
1739
- function jo(t, e) {
1740
- return o(), a("svg", Wo, e[0] || (e[0] = [
1739
+ function Wo(t, e) {
1740
+ return o(), a("svg", jo, e[0] || (e[0] = [
1741
1741
  n("path", { d: "M512 928c23.936 0 117.504-68.352 192.064-153.152C803.456 661.888 864 535.808 864 416c0-189.632-155.84-320-352-320S160 226.368 160 416c0 120.32 60.544 246.4 159.936 359.232C394.432 859.84 488 928 512 928m0-435.2a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 140.8a204.8 204.8 0 1 1 0-409.6 204.8 204.8 0 0 1 0 409.6" }, null, -1)
1742
1742
  ]));
1743
1743
  }
1744
- const Cd = { render: jo }, Uo = {
1744
+ const Cd = { render: Wo }, Uo = {
1745
1745
  xmlns: "http://www.w3.org/2000/svg",
1746
1746
  viewBox: "0 0 1024 1024"
1747
1747
  };
@@ -1882,7 +1882,7 @@ function m4(t, e) {
1882
1882
  n("path", { d: "M480 512h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32m0 192h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32" }, null, -1)
1883
1883
  ]));
1884
1884
  }
1885
- const Wd = { render: m4 }, _4 = {
1885
+ const jd = { render: m4 }, _4 = {
1886
1886
  xmlns: "http://www.w3.org/2000/svg",
1887
1887
  viewBox: "0 0 1024 1024"
1888
1888
  };
@@ -1891,7 +1891,7 @@ function f4(t, e) {
1891
1891
  n("path", { d: "M160 448a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32z" }, null, -1)
1892
1892
  ]));
1893
1893
  }
1894
- const jd = { render: f4 }, w4 = {
1894
+ const Wd = { render: f4 }, w4 = {
1895
1895
  xmlns: "http://www.w3.org/2000/svg",
1896
1896
  viewBox: "0 0 1024 1024"
1897
1897
  };
@@ -2016,16 +2016,16 @@ function q4(t, e) {
2016
2016
  n("path", { d: "M512 320q32 0 32 32v128q0 32-32 32t-32-32V352q0-32 32-32m32-96a32 32 0 0 1-64 0v-64a32 32 0 0 0-32-32h-96a32 32 0 0 1 0-64h96a96 96 0 0 1 96 96z" }, null, -1)
2017
2017
  ]));
2018
2018
  }
2019
- const au = { render: q4 }, W4 = {
2019
+ const au = { render: q4 }, j4 = {
2020
2020
  xmlns: "http://www.w3.org/2000/svg",
2021
2021
  viewBox: "0 0 1024 1024"
2022
2022
  };
2023
- function j4(t, e) {
2024
- return o(), a("svg", W4, e[0] || (e[0] = [
2023
+ function W4(t, e) {
2024
+ return o(), a("svg", j4, e[0] || (e[0] = [
2025
2025
  n("path", { d: "M736 800V160H160v640a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64m64-544h63.552a96 96 0 0 1 96 96v224a96 96 0 0 1-96 96H800v128a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V128a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 64v288h63.552a32 32 0 0 0 32-32V352a32 32 0 0 0-32-32z" }, null, -1)
2026
2026
  ]));
2027
2027
  }
2028
- const su = { render: j4 }, U4 = {
2028
+ const su = { render: W4 }, U4 = {
2029
2029
  xmlns: "http://www.w3.org/2000/svg",
2030
2030
  viewBox: "0 0 1024 1024"
2031
2031
  };
@@ -2279,16 +2279,16 @@ function qa(t, e) {
2279
2279
  n("path", { d: "M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256" }, null, -1)
2280
2280
  ]));
2281
2281
  }
2282
- const Iu = { render: qa }, Wa = {
2282
+ const Iu = { render: qa }, ja = {
2283
2283
  xmlns: "http://www.w3.org/2000/svg",
2284
2284
  viewBox: "0 0 1024 1024"
2285
2285
  };
2286
- function ja(t, e) {
2287
- return o(), a("svg", Wa, e[0] || (e[0] = [
2286
+ function Wa(t, e) {
2287
+ return o(), a("svg", ja, e[0] || (e[0] = [
2288
2288
  n("path", { d: "M256 768H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.06 29.06 0 0 1-12.16-12.096C65.536 746.432 64 741.248 64 727.04V379.072c0-42.816 4.48-58.304 12.8-73.984 8.384-15.616 20.672-27.904 36.288-36.288 15.68-8.32 31.168-12.8 73.984-12.8H256V64h512v192h68.928c42.816 0 58.304 4.48 73.984 12.8 15.616 8.384 27.904 20.672 36.288 36.288 8.32 15.68 12.8 31.168 12.8 73.984v347.904c0 14.272-1.472 19.456-4.288 24.64a29.06 29.06 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H768v192H256zm64-192v320h384V576zm-64 128V512h512v192h128V379.072c0-29.376-1.408-36.48-5.248-43.776a23.3 23.3 0 0 0-10.048-10.048c-7.232-3.84-14.4-5.248-43.776-5.248H187.072c-29.376 0-36.48 1.408-43.776 5.248a23.3 23.3 0 0 0-10.048 10.048c-3.84 7.232-5.248 14.4-5.248 43.776V704zm64-448h384V128H320zm-64 128h64v64h-64zm128 0h64v64h-64z" }, null, -1)
2289
2289
  ]));
2290
2290
  }
2291
- const Cu = { render: ja }, Ua = {
2291
+ const Cu = { render: Wa }, Ua = {
2292
2292
  xmlns: "http://www.w3.org/2000/svg",
2293
2293
  viewBox: "0 0 1024 1024"
2294
2294
  };
@@ -2402,7 +2402,7 @@ function m3(t, e) {
2402
2402
  n("path", { d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896" }, null, -1)
2403
2403
  ]));
2404
2404
  }
2405
- const Wu = { render: m3 }, _3 = {
2405
+ const ju = { render: m3 }, _3 = {
2406
2406
  xmlns: "http://www.w3.org/2000/svg",
2407
2407
  viewBox: "0 0 1024 1024"
2408
2408
  };
@@ -2411,7 +2411,7 @@ function f3(t, e) {
2411
2411
  n("path", { d: "M754.752 480H160a32 32 0 1 0 0 64h594.752L521.344 777.344a32 32 0 0 0 45.312 45.312l288-288a32 32 0 0 0 0-45.312l-288-288a32 32 0 1 0-45.312 45.312z" }, null, -1)
2412
2412
  ]));
2413
2413
  }
2414
- const ju = { render: f3 }, w3 = { viewBox: "0 0 32 32" };
2414
+ const Wu = { render: f3 }, w3 = { viewBox: "0 0 32 32" };
2415
2415
  function g3(t, e) {
2416
2416
  return o(), a("svg", w3, e[0] || (e[0] = [
2417
2417
  n("path", { d: "M0 12h12L7.515 7.515C9.782 5.249 12.795 4 16 4s6.219 1.248 8.485 3.515S28 12.795 28 16s-1.248 6.219-3.515 8.485S19.205 28 16 28s-6.219-1.248-8.485-3.515a13 13 0 0 1-.546-.583l-3.01 2.634A15.96 15.96 0 0 0 16 32c8.837 0 16-7.163 16-16S24.837 0 16 0A15.95 15.95 0 0 0 4.687 4.687L0 0z" }, null, -1)
@@ -2515,16 +2515,16 @@ function q3(t, e) {
2515
2515
  n("path", { d: "m679.872 348.8-301.76 188.608a127.8 127.8 0 0 1 5.12 52.16l279.936 104.96a128 128 0 1 1-22.464 59.904l-279.872-104.96a128 128 0 1 1-16.64-166.272l301.696-188.608a128 128 0 1 1 33.92 54.272z" }, null, -1)
2516
2516
  ]));
2517
2517
  }
2518
- const t5 = { render: q3 }, W3 = {
2518
+ const t5 = { render: q3 }, j3 = {
2519
2519
  xmlns: "http://www.w3.org/2000/svg",
2520
2520
  viewBox: "0 0 1024 1024"
2521
2521
  };
2522
- function j3(t, e) {
2523
- return o(), a("svg", W3, e[0] || (e[0] = [
2522
+ function W3(t, e) {
2523
+ return o(), a("svg", j3, e[0] || (e[0] = [
2524
2524
  n("path", { d: "M512 386.88V448h405.568a32 32 0 0 1 30.72 40.768l-76.48 267.968A192 192 0 0 1 687.168 896H336.832a192 192 0 0 1-184.64-139.264L75.648 488.768A32 32 0 0 1 106.368 448H448V117.888a32 32 0 0 1 47.36-28.096l13.888 7.616L512 96v2.88l231.68 126.4a32 32 0 0 1-2.048 57.216zm0-70.272 144.768-65.792L512 171.84zM512 512H148.864l18.24 64H856.96l18.24-64zM185.408 640l28.352 99.2A128 128 0 0 0 336.832 832h350.336a128 128 0 0 0 123.072-92.8l28.352-99.2z" }, null, -1)
2525
2525
  ]));
2526
2526
  }
2527
- const n5 = { render: j3 }, U3 = {
2527
+ const n5 = { render: W3 }, U3 = {
2528
2528
  xmlns: "http://www.w3.org/2000/svg",
2529
2529
  viewBox: "0 0 1024 1024"
2530
2530
  };
@@ -2752,16 +2752,16 @@ function qs(t, e) {
2752
2752
  n("path", { d: "M640 832H64V640a128 128 0 1 0 0-256V192h576v160h64V192h256v192a128 128 0 1 0 0 256v192H704V672h-64zm0-416v192h64V416z" }, null, -1)
2753
2753
  ]));
2754
2754
  }
2755
- const H5 = { render: qs }, Ws = {
2755
+ const H5 = { render: qs }, js = {
2756
2756
  xmlns: "http://www.w3.org/2000/svg",
2757
2757
  viewBox: "0 0 1024 1024"
2758
2758
  };
2759
- function js(t, e) {
2760
- return o(), a("svg", Ws, e[0] || (e[0] = [
2759
+ function Ws(t, e) {
2760
+ return o(), a("svg", js, e[0] || (e[0] = [
2761
2761
  n("path", { d: "M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h192v64H320zm0 384h384v64H320z" }, null, -1)
2762
2762
  ]));
2763
2763
  }
2764
- const z5 = { render: js }, Us = { viewBox: "0 0 32 32" };
2764
+ const z5 = { render: Ws }, Us = { viewBox: "0 0 32 32" };
2765
2765
  function Ys(t, e) {
2766
2766
  return o(), a("svg", Us, e[0] || (e[0] = [
2767
2767
  n("path", { d: "M20.586 23.414 14 16.828V8h4v7.172l5.414 5.414zM16 0C7.163 0 0 7.163 0 16s7.163 16 16 16 16-7.163 16-16S24.837 0 16 0m0 28C9.373 28 4 22.627 4 16S9.373 4 16 4s12 5.373 12 12-5.373 12-12 12" }, null, -1)
@@ -2928,7 +2928,7 @@ function Vl(t, e) {
2928
2928
  n("path", { d: "M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0" }, null, -1)
2929
2929
  ]));
2930
2930
  }
2931
- const W5 = { render: Vl }, kl = {
2931
+ const j5 = { render: Vl }, kl = {
2932
2932
  xmlns: "http://www.w3.org/2000/svg",
2933
2933
  viewBox: "0 0 1024 1024"
2934
2934
  };
@@ -2937,7 +2937,7 @@ function Bl(t, e) {
2937
2937
  n("path", { d: "M128.896 736H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v96h164.544a32 32 0 0 1 31.616 27.136l54.144 352A32 32 0 0 1 922.688 736h-91.52a144 144 0 1 1-286.272 0H415.104a144 144 0 1 1-286.272 0zm23.36-64a143.872 143.872 0 0 1 239.488 0H568.32c17.088-25.6 42.24-45.376 71.744-55.808V256H128v416zm655.488 0h77.632l-19.648-128H704v64.896A144 144 0 0 1 807.744 672m48.128-192-14.72-96H704v96zM688 832a80 80 0 1 0 0-160 80 80 0 0 0 0 160m-416 0a80 80 0 1 0 0-160 80 80 0 0 0 0 160" }, null, -1)
2938
2938
  ]));
2939
2939
  }
2940
- const j5 = { render: Bl }, Nl = {
2940
+ const W5 = { render: Bl }, Nl = {
2941
2941
  xmlns: "http://www.w3.org/2000/svg",
2942
2942
  viewBox: "0 0 1024 1024"
2943
2943
  };
@@ -2999,12 +2999,12 @@ const K5 = { render: Rl }, ql = {
2999
2999
  "xml:space": "preserve",
3000
3000
  viewBox: "0 0 1024 1024"
3001
3001
  };
3002
- function Wl(t, e) {
3002
+ function jl(t, e) {
3003
3003
  return o(), a("svg", ql, e[0] || (e[0] = [
3004
3004
  n("path", { d: "M928.99 755.83 574.6 203.25c-12.89-20.16-36.76-32.58-62.6-32.58s-49.71 12.43-62.6 32.58L95.01 755.83c-12.91 20.12-12.9 44.91.01 65.03 12.92 20.12 36.78 32.51 62.59 32.49h708.78c25.82.01 49.68-12.37 62.59-32.49s12.92-44.91.01-65.03M554.67 768h-85.33v-85.33h85.33zm0-426.67v298.66h-85.33V341.32z" }, null, -1)
3005
3005
  ]));
3006
3006
  }
3007
- const jl = { render: Wl }, Ul = {
3007
+ const Wl = { render: jl }, Ul = {
3008
3008
  xmlns: "http://www.w3.org/2000/svg",
3009
3009
  viewBox: "0 0 32 32"
3010
3010
  };
@@ -3114,7 +3114,7 @@ const t9 = /* @__PURE__ */ L({
3114
3114
  setup(t, { expose: e, emit: s }) {
3115
3115
  J((Z) => ({
3116
3116
  "256f24e4": P.value,
3117
- "6ab0c31b": j.value,
3117
+ "6ab0c31b": W.value,
3118
3118
  e0c171ca: m.value,
3119
3119
  "4956b50c": w.value,
3120
3120
  73570806: d.value,
@@ -3158,20 +3158,20 @@ const t9 = /* @__PURE__ */ L({
3158
3158
  };
3159
3159
  n2(() => {
3160
3160
  N(l.modelValue), v2(p);
3161
- }), W(
3161
+ }), j(
3162
3162
  () => l.modelValue,
3163
3163
  (Z) => {
3164
3164
  N(Z);
3165
3165
  },
3166
3166
  { deep: !0, immediate: !0 }
3167
- ), W(
3167
+ ), j(
3168
3168
  () => b?.browser.dimensions,
3169
3169
  () => {
3170
3170
  v2(p);
3171
3171
  },
3172
3172
  { deep: !0, immediate: !0 }
3173
3173
  );
3174
- const E = h(() => l.cssScrollBehavior), P = h(() => l.height), j = h(() => l.maxHeight);
3174
+ const E = h(() => l.cssScrollBehavior), P = h(() => l.height), W = h(() => l.maxHeight);
3175
3175
  e({ scrollDOMContainer: r, moveTo: N });
3176
3176
  const o2 = () => {
3177
3177
  y.value = !0;
@@ -3445,12 +3445,12 @@ const vr = ["jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct"
3445
3445
  x = [], br(w, s.range).forEach((I) => {
3446
3446
  const N = {};
3447
3447
  I.forEach((E, P) => {
3448
- const j = r[P];
3449
- N[j] = E;
3448
+ const W = r[P];
3449
+ N[W] = E;
3450
3450
  }), x.push(N);
3451
3451
  });
3452
3452
  };
3453
- W(
3453
+ j(
3454
3454
  () => s.initialDate,
3455
3455
  (y) => {
3456
3456
  w.value = y;
@@ -3458,9 +3458,9 @@ const vr = ["jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct"
3458
3458
  {
3459
3459
  deep: !0
3460
3460
  }
3461
- ), W(w, () => {
3461
+ ), j(w, () => {
3462
3462
  b(), l("update-initial-date", w.value);
3463
- }), W(
3463
+ }), j(
3464
3464
  () => s.modelValue,
3465
3465
  (y) => {
3466
3466
  f.value = p(y);
@@ -3506,9 +3506,9 @@ const vr = ["jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct"
3506
3506
  label: N.toUpperCase()
3507
3507
  }, {
3508
3508
  default: D(({ scope: E }) => [
3509
- (o(!0), a(U, null, Y(E.rows, (P, j) => (o(), O(v(h6), {
3510
- key: j,
3511
- row: j
3509
+ (o(!0), a(U, null, Y(E.rows, (P, W) => (o(), O(v(h6), {
3510
+ key: W,
3511
+ row: W
3512
3512
  }, {
3513
3513
  default: D(() => [
3514
3514
  n("div", {
@@ -3579,26 +3579,26 @@ const wr = (t) => {
3579
3579
  const $ = [];
3580
3580
  for (; _ < b; ) {
3581
3581
  _++;
3582
- const P = f === x && w === _, j = new Date(l, x, _);
3582
+ const P = f === x && w === _, W = new Date(l, x, _);
3583
3583
  $.push({
3584
3584
  value: _,
3585
3585
  monthType: "previous",
3586
3586
  isToday: P,
3587
- date: j,
3588
- hidden: s(j)
3587
+ date: W,
3588
+ hidden: s(W)
3589
3589
  });
3590
3590
  }
3591
3591
  const V = r + 1, A = [];
3592
3592
  let T = 0;
3593
3593
  for (; H; ) {
3594
3594
  T++, H--;
3595
- const P = f === V && w === T, j = new Date(l, V, T);
3595
+ const P = f === V && w === T, W = new Date(l, V, T);
3596
3596
  A.push({
3597
3597
  value: T,
3598
3598
  monthType: "next",
3599
3599
  isToday: P,
3600
- date: j,
3601
- hidden: s(j)
3600
+ date: W,
3601
+ hidden: s(W)
3602
3602
  });
3603
3603
  }
3604
3604
  let y = 0;
@@ -3606,21 +3606,21 @@ const wr = (t) => {
3606
3606
  for (; y < i; ) {
3607
3607
  const P = m.getDate();
3608
3608
  y++;
3609
- const j = f === r && P === y, o2 = new Date(l, r, y);
3609
+ const W = f === r && P === y, o2 = new Date(l, r, y);
3610
3610
  I.push({
3611
3611
  value: y,
3612
3612
  monthType: "current",
3613
- isToday: j,
3613
+ isToday: W,
3614
3614
  date: o2,
3615
3615
  hidden: s(o2)
3616
3616
  });
3617
3617
  }
3618
3618
  const N = [...$, ...I, ...A], E = [];
3619
3619
  for (let P = 0; P < N.length; P += 7) {
3620
- const j = N.slice(P, P + 7);
3621
- E.push(j);
3620
+ const W = N.slice(P, P + 7);
3621
+ E.push(W);
3622
3622
  }
3623
- return E.filter((P) => !P.every((j) => j.hidden));
3623
+ return E.filter((P) => !P.every((W) => W.hidden));
3624
3624
  }, Mr = { class: "nmorph-card__header" }, Hr = { class: "nmorph-card__content" }, zr = { class: "nmorph-card__footer" }, Vr = /* @__PURE__ */ L({
3625
3625
  __name: "NmorphCard",
3626
3626
  props: {
@@ -3677,7 +3677,7 @@ const a9 = /* @__PURE__ */ b2(Vr, [["__scopeId", "data-v-e3cb136f"]]), kr = ["id
3677
3677
  };
3678
3678
  n2(() => {
3679
3679
  c.loop && s.value === 0 && (v2(() => m()), M.value?.addEventListener("transitionend", w));
3680
- }), W(s, (V) => {
3680
+ }), j(s, (V) => {
3681
3681
  d("change", s.value), (V === 1 || V === Object.keys(H).length) && setTimeout(() => {
3682
3682
  b.value = !0;
3683
3683
  });
@@ -3765,7 +3765,7 @@ const l9 = /* @__PURE__ */ L({
3765
3765
  emits: ["update:model-value"],
3766
3766
  setup(t, { emit: e }) {
3767
3767
  const s = t, l = g(s.modelValue);
3768
- W(
3768
+ j(
3769
3769
  () => s.modelValue,
3770
3770
  (i) => {
3771
3771
  l.value = i;
@@ -3818,13 +3818,13 @@ const l9 = /* @__PURE__ */ L({
3818
3818
  };
3819
3819
  return n2(() => {
3820
3820
  Array.isArray(i?.value) ? r.value = i.value.includes(s.name) : r.value = i?.value === s.name;
3821
- }), W(
3821
+ }), j(
3822
3822
  () => i?.value,
3823
3823
  (m) => {
3824
3824
  Array.isArray(m) ? r.value = m.includes(s.name) : r.value = m === s.name;
3825
3825
  },
3826
3826
  { deep: !0 }
3827
- ), W(r, () => {
3827
+ ), j(r, () => {
3828
3828
  M.value = r.value && p.value ? p.value?.clientHeight : 0;
3829
3829
  }), (m, w) => (o(), a("div", {
3830
3830
  class: k(c.value),
@@ -3930,7 +3930,7 @@ const A2 = /* @__PURE__ */ b2(Sr, [["__scopeId", "data-v-4c8df10c"]]), Ar = { cl
3930
3930
  emits: ["update:model-value"],
3931
3931
  setup(t, { emit: e }) {
3932
3932
  const s = t, l = g(s.modelValue);
3933
- W(
3933
+ j(
3934
3934
  () => s.modelValue,
3935
3935
  (N) => l.value = N
3936
3936
  );
@@ -4040,8 +4040,8 @@ const A2 = /* @__PURE__ */ b2(Sr, [["__scopeId", "data-v-4c8df10c"]]), Ar = { cl
4040
4040
  })
4041
4041
  ])) : S("", !0),
4042
4042
  n("div", Or, [
4043
- (o(), a(U, null, Y(T, (P, j) => n("div", {
4044
- key: j,
4043
+ (o(), a(U, null, Y(T, (P, W) => n("div", {
4044
+ key: W,
4045
4045
  class: "nmorph-image-preview__action-element"
4046
4046
  }, [
4047
4047
  z(v(q), {
@@ -4108,7 +4108,7 @@ const c9 = /* @__PURE__ */ L({
4108
4108
  const x = s.totalElementsQuantity / s.elementsQuantityOnPage + 1, b = x % 1 === 0 ? -1 : 0;
4109
4109
  return Array.from({ length: x + b }, ($, V) => ({ value: String(V + 1), label: String(V + 1) }));
4110
4110
  }), p = h(() => s.hideOnSinglePage || s.totalElementsQuantity / s.elementsQuantityOnPage > 1);
4111
- W(i, (x) => {
4111
+ j(i, (x) => {
4112
4112
  l("update:model-value", Number(x));
4113
4113
  });
4114
4114
  const M = (x) => {
@@ -4194,10 +4194,10 @@ const c9 = /* @__PURE__ */ L({
4194
4194
  const Er = {
4195
4195
  key: 0,
4196
4196
  class: "nmorph-progress__linear"
4197
- }, Rr = { class: "nmorph-progress__outer" }, qr = { class: "nmorph-progress__inner" }, Wr = {
4197
+ }, Rr = { class: "nmorph-progress__outer" }, qr = { class: "nmorph-progress__inner" }, jr = {
4198
4198
  key: 0,
4199
4199
  class: "nmorph-progress__inner-text"
4200
- }, jr = {
4200
+ }, Wr = {
4201
4201
  key: 0,
4202
4202
  class: "nmorph-progress__percentage"
4203
4203
  }, Ur = {
@@ -4236,14 +4236,14 @@ const Er = {
4236
4236
  e.type === "linear" ? (o(), a("div", Er, [
4237
4237
  n("div", Rr, [
4238
4238
  n("div", qr, [
4239
- m.valueInside ? (o(), a("div", Wr, [
4239
+ m.valueInside ? (o(), a("div", jr, [
4240
4240
  B(m.$slots, "inner-text", {}, () => [
4241
4241
  s2(R(H.value), 1)
4242
4242
  ])
4243
4243
  ])) : S("", !0)
4244
4244
  ])
4245
4245
  ]),
4246
- m.valueRightSide ? (o(), a("div", jr, [
4246
+ m.valueRightSide ? (o(), a("div", Wr, [
4247
4247
  B(m.$slots, "right-side", {}, () => [
4248
4248
  s2(R(H.value), 1)
4249
4249
  ])
@@ -4417,7 +4417,7 @@ const o6 = { class: "nmorph-table__wrapper" }, a6 = { class: "nmorph-table__head
4417
4417
  const w = i.value.map(($) => $.width).filter(($) => !!$), f = w.length, x = w.reduce(($, V) => ($ += Number(V), $), 0), b = i.value.length - f;
4418
4418
  return d.value?.clientWidth ? (d.value?.clientWidth - x) / b : 0;
4419
4419
  }), p = (w) => w !== "" ? w : u.value, M = g(0);
4420
- W(
4420
+ j(
4421
4421
  () => e.data,
4422
4422
  () => {
4423
4423
  M.value = M.value + 1, l.value = e.data, i.value = [];
@@ -4658,7 +4658,7 @@ const _6 = ["innerHTML"], f6 = {
4658
4658
  l("close");
4659
4659
  }, d = {
4660
4660
  [f2.success]: bs,
4661
- [f2.warning]: jl,
4661
+ [f2.warning]: Wl,
4662
4662
  [f2.info]: bo,
4663
4663
  [f2.error]: Ft
4664
4664
  }, i = y2(), u = h(() => s.closeIconPosition);
@@ -4736,7 +4736,7 @@ const M6 = { class: "nmorph-dialog__header" }, H6 = { class: "nmorph-dialog__tit
4736
4736
  })
4737
4737
  ), c = h(() => s.width), d = h(() => s.zIndex), i = g(s.modelValue);
4738
4738
  let u = null, p = null;
4739
- W(
4739
+ j(
4740
4740
  () => s.modelValue,
4741
4741
  (m) => {
4742
4742
  m ? (p && clearTimeout(p), u = setTimeout(() => {
@@ -4911,7 +4911,7 @@ const L6 = {
4911
4911
  "change-checkbox-value-handler",
4912
4912
  void 0
4913
4913
  ), c = t;
4914
- W(
4914
+ j(
4915
4915
  () => c.modelValue,
4916
4916
  (w) => {
4917
4917
  u.value = w;
@@ -4977,7 +4977,7 @@ const L6 = {
4977
4977
  ], 2));
4978
4978
  }
4979
4979
  });
4980
- const W6 = { class: "nmorph-checkbox-group__wrapper" }, j6 = { class: "nmorph-checkbox-group__content" }, v9 = /* @__PURE__ */ L({
4980
+ const j6 = { class: "nmorph-checkbox-group__wrapper" }, W6 = { class: "nmorph-checkbox-group__content" }, v9 = /* @__PURE__ */ L({
4981
4981
  __name: "NmorphCheckboxGroup",
4982
4982
  props: {
4983
4983
  modelValue: { default: () => [] },
@@ -4999,8 +4999,8 @@ const W6 = { class: "nmorph-checkbox-group__wrapper" }, j6 = { class: "nmorph-ch
4999
4999
  return e2("checkbox-group-selected-value", l), e2("change-checkbox-value-handler", c), (i, u) => (o(), a("div", {
5000
5000
  class: k(d.value)
5001
5001
  }, [
5002
- n("div", W6, [
5003
- n("div", j6, [
5002
+ n("div", j6, [
5003
+ n("div", W6, [
5004
5004
  (o(!0), a(U, null, Y(i.options, (p, M) => (o(), O(v(q6), {
5005
5005
  id: p.id,
5006
5006
  key: M,
@@ -5043,7 +5043,7 @@ const U6 = { class: "nmorph-autocomplete__input-content" }, Y6 = {
5043
5043
  }, i = g(!1), u = g(null), p = () => {
5044
5044
  i.value = !1;
5045
5045
  }, M = h(() => s.list.filter((f) => Object.keys(f).some((x) => String(f[x]).toLowerCase().includes(l.value.toLowerCase()))));
5046
- W(M, (f) => {
5046
+ j(M, (f) => {
5047
5047
  i.value = f.length > 0;
5048
5048
  });
5049
5049
  const H = (f) => {
@@ -5053,9 +5053,9 @@ const U6 = { class: "nmorph-autocomplete__input-content" }, Y6 = {
5053
5053
  }, m = () => {
5054
5054
  i.value = M.value.length > 0;
5055
5055
  }, w = g(!1);
5056
- return W(l, async (f) => {
5056
+ return j(l, async (f) => {
5057
5057
  f !== "" && s.actionCallback && (w.value = !0, await s.actionCallback(), w.value = !1);
5058
- }), W(w, (f) => {
5058
+ }), j(w, (f) => {
5059
5059
  f && (i.value = !0);
5060
5060
  }), (f, x) => (o(), a("div", {
5061
5061
  class: k(c.value)
@@ -5238,7 +5238,7 @@ const t8 = { class: "nmorph-year-month-picker__header" }, n8 = { class: "nmorph-
5238
5238
  const _ = r.currentDate.getFullYear(), $ = wr(_).map((V) => ({ label: String(V), value: String(V) }));
5239
5239
  c.value = $;
5240
5240
  };
5241
- W(
5241
+ j(
5242
5242
  () => r.currentDate,
5243
5243
  () => {
5244
5244
  r.type === "year" && (u(), d.value = String(r.currentDate.getFullYear()));
@@ -5789,7 +5789,7 @@ const $8 = { class: "nmorph-number-input__content" }, y8 = { class: "nmorph-numb
5789
5789
  let $ = Number(_.value);
5790
5790
  c.value = $;
5791
5791
  };
5792
- W(c, (b) => {
5792
+ j(c, (b) => {
5793
5793
  b > l.max && (c.value = l.max, x.value?.blur()), c.value < l.min && (c.value = l.min, x.value?.blur()), w("update:model-value", b);
5794
5794
  });
5795
5795
  const x = g(null);
@@ -5937,7 +5937,7 @@ const B8 = { class: "nmorph-select__content" }, N8 = ["id", "name"], I8 = ["valu
5937
5937
  ), $ = () => {
5938
5938
  l.disabled || (i.value = !i.value);
5939
5939
  };
5940
- W(
5940
+ j(
5941
5941
  i,
5942
5942
  (G) => {
5943
5943
  G && (M.value = !1);
@@ -5947,7 +5947,7 @@ const B8 = { class: "nmorph-select__content" }, N8 = ["id", "name"], I8 = ["valu
5947
5947
  const V = () => {
5948
5948
  i.value = !1;
5949
5949
  }, A = g(), T = g([]), y = g(0), I = g("");
5950
- W(y, (G) => {
5950
+ j(y, (G) => {
5951
5951
  I.value = T.value[G], A.value.forEach((K) => {
5952
5952
  const M2 = K.getAttribute("value") === I.value ? "add" : "remove";
5953
5953
  K.classList[M2]("nmorph-select-option--focused");
@@ -5962,7 +5962,7 @@ const B8 = { class: "nmorph-select__content" }, N8 = ["id", "name"], I8 = ["valu
5962
5962
  });
5963
5963
  const N = h(() => typeof d.value == "string" ? d.value === "" ? r.value : l.options.find((G) => G.value === d.value)?.label : l.options.find((G) => G.value === d.value)?.label), E = h(() => l.options.length > 0 ? l.options : l.optionsMap), P = h(() => E.value.length > 0 ? E.value.filter((K) => d.value.includes(K.value)).map((K) => ({ text: K.label, value: K.value })) : Array.isArray(d.value) ? d.value.map((K) => ({ text: K, value: K })) : [{ text: d.value, value: d.value }]);
5964
5964
  e2("select-selected-value", d), e2("select-change-selected-value", w);
5965
- const j = g(null), o2 = () => {
5965
+ const W = g(null), o2 = () => {
5966
5966
  i.value = !i.value;
5967
5967
  }, _2 = () => {
5968
5968
  y.value = (y.value + 1) % T.value.length;
@@ -5994,7 +5994,7 @@ const B8 = { class: "nmorph-select__content" }, N8 = ["id", "name"], I8 = ["valu
5994
5994
  ], 40, N8),
5995
5995
  n("div", {
5996
5996
  ref_key: "nmorphSelectDOMRef",
5997
- ref: j,
5997
+ ref: W,
5998
5998
  class: "nmorph-select__selected-values-line",
5999
5999
  onClick: r2($, ["stop"])
6000
6000
  }, [
@@ -6015,10 +6015,10 @@ const B8 = { class: "nmorph-select__content" }, N8 = ["id", "name"], I8 = ["valu
6015
6015
  }, null, 8, ["name"])
6016
6016
  ], 512)
6017
6017
  ]),
6018
- j.value && !l.disabled ? (o(), O(v(V2), {
6018
+ W.value && !l.disabled ? (o(), O(v(V2), {
6019
6019
  key: 0,
6020
6020
  open: i.value,
6021
- "relative-element": j.value,
6021
+ "relative-element": W.value,
6022
6022
  onOnOutsideClick: V
6023
6023
  }, {
6024
6024
  default: D(() => [
@@ -6106,17 +6106,17 @@ const O8 = { class: "nmorph-slider__content" }, P8 = { class: "nmorph-slider__in
6106
6106
  "nmorph-slider": [`${s.disabled && "disabled"}`]
6107
6107
  })
6108
6108
  ), r = `${N2}px`, c = g(s.showTooltip), d = e, i = g(s.modelValue), u = g(null);
6109
- W(i, () => {
6109
+ j(i, () => {
6110
6110
  d("update:model-value", i.value);
6111
- }), W(
6111
+ }), j(
6112
6112
  () => s.modelValue,
6113
6113
  (y) => {
6114
6114
  i.value = y;
6115
6115
  }
6116
6116
  );
6117
6117
  const p = g(null), M = h(() => {
6118
- const y = H.value - H.value, I = s.max - s.min + y, N = (i.value - s.min) / I * 100, E = u.value?.clientWidth || 0, P = N2 / E * 100, j = P / 2;
6119
- let o2 = N - j;
6118
+ const y = H.value - H.value, I = s.max - s.min + y, N = (i.value - s.min) / I * 100, E = u.value?.clientWidth || 0, P = N2 / E * 100, W = P / 2;
6119
+ let o2 = N - W;
6120
6120
  const Z = `${Math.max(0, Math.min(100 - P, o2))}%`, i2 = E / 100, K = N2 / 2 / i2, q2 = (p.value?.tooltipBody.clientWidth ?? 24) / 2 / i2, ue = q2 === 1 / 0 ? 1.714 : q2, he = `${parseFloat(Z) + K - ue}%`;
6121
6121
  return {
6122
6122
  thumb: Z,
@@ -6226,7 +6226,7 @@ const E8 = ["value", "disabled"], R8 = { class: "nmorph-switch-thumb" }, M9 = /*
6226
6226
  const m = p.value ? l.activeValue : l.inactiveValue;
6227
6227
  r("update:model-value", m);
6228
6228
  }, H = g(null);
6229
- return e({ inputDOMRef: H }), W(
6229
+ return e({ inputDOMRef: H }), j(
6230
6230
  () => l.modelValue,
6231
6231
  (m) => {
6232
6232
  p.value = m === l.activeValue;
@@ -6265,10 +6265,10 @@ const E8 = ["value", "disabled"], R8 = { class: "nmorph-switch-thumb" }, M9 = /*
6265
6265
  ], 2));
6266
6266
  }
6267
6267
  });
6268
- const q8 = { class: "nmorph-text-input__input-side" }, W8 = {
6268
+ const q8 = { class: "nmorph-text-input__input-side" }, j8 = {
6269
6269
  key: 0,
6270
6270
  class: "nmorph-text-input__prepend-icon"
6271
- }, j8 = ["type", "placeholder", "disabled", "value"], U8 = /* @__PURE__ */ L({
6271
+ }, W8 = ["type", "placeholder", "disabled", "value"], U8 = /* @__PURE__ */ L({
6272
6272
  __name: "NmorphTextInput",
6273
6273
  props: {
6274
6274
  placeholder: { default: "" },
@@ -6304,7 +6304,7 @@ const q8 = { class: "nmorph-text-input__input-side" }, W8 = {
6304
6304
  class: k(c.value)
6305
6305
  }, [
6306
6306
  n("div", q8, [
6307
- v(l)["prepend-icon"] ? (o(), a("div", W8, [
6307
+ v(l)["prepend-icon"] ? (o(), a("div", j8, [
6308
6308
  B(_.$slots, "prepend-icon")
6309
6309
  ])) : S("", !0),
6310
6310
  n("input", {
@@ -6319,7 +6319,7 @@ const q8 = { class: "nmorph-text-input__input-side" }, W8 = {
6319
6319
  onFocus: H,
6320
6320
  onBlur: m,
6321
6321
  onKeyup: $[0] || ($[0] = p2((V) => f("on-enter"), ["enter"]))
6322
- }, null, 40, j8),
6322
+ }, null, 40, W8),
6323
6323
  r.typePassword || r.clearable ? (o(), O(v(q), {
6324
6324
  key: 1,
6325
6325
  disabled: r.disabled,
@@ -6378,7 +6378,7 @@ const Y8 = { class: "nmorph-time-picker__content" }, G8 = { class: "nmorph-time-
6378
6378
  }, $ = () => {
6379
6379
  i.value = !1;
6380
6380
  };
6381
- W(i, (y) => {
6381
+ j(i, (y) => {
6382
6382
  r("on-change-open-close", y);
6383
6383
  }), (() => {
6384
6384
  if (p.value)
@@ -6552,7 +6552,7 @@ const ii = /* @__PURE__ */ b2(ri, [["__scopeId", "data-v-e1360c2e"]]), ci = { cl
6552
6552
  emits: ["update:model-value"],
6553
6553
  setup(t, { emit: e }) {
6554
6554
  const s = t, l = g(s.modelValue);
6555
- W(
6555
+ j(
6556
6556
  () => s.modelValue,
6557
6557
  (i) => {
6558
6558
  l.value = i;
@@ -6943,7 +6943,46 @@ const $i = /* @__PURE__ */ L({
6943
6943
  });
6944
6944
  const I9 = /* @__PURE__ */ b2($i, [["__scopeId", "data-v-de7a6e97"]]);
6945
6945
  var yi = /* @__PURE__ */ ((t) => (t["top-left"] = "top-left", t["top-center"] = "top-center", t["top-right"] = "top-right", t["bottom-left"] = "bottom-left", t["bottom-center"] = "bottom-center", t["bottom-right"] = "bottom-right", t))(yi || {});
6946
- const bi = {
6946
+ const C9 = {
6947
+ NmorphSwitch: {
6948
+ on: "Вкл",
6949
+ off: "Выкл"
6950
+ },
6951
+ NmorphCalendar: {
6952
+ sun: "Вс",
6953
+ mon: "Пн",
6954
+ tue: "Вт",
6955
+ wed: "Ср",
6956
+ thu: "Чт",
6957
+ fri: "Пт",
6958
+ sat: "Сб",
6959
+ jan: "Январь",
6960
+ feb: "Февраль",
6961
+ mar: "Март",
6962
+ apr: "Апрель",
6963
+ may: "Май",
6964
+ jun: "Июнь",
6965
+ jul: "Июль",
6966
+ aug: "Август",
6967
+ sep: "Сентябрь",
6968
+ oct: "Октябрь",
6969
+ nov: "Ноябрь",
6970
+ dec: "Декабрь"
6971
+ },
6972
+ NmorphDatePicker: {
6973
+ pickADate: "Выберите дату"
6974
+ },
6975
+ NmorphImage: {
6976
+ loadingText: "Загрузка ...",
6977
+ loadFailedText: "Не удалось загрузить изображение"
6978
+ },
6979
+ NmorphSelect: {
6980
+ noElementPlaceholder: "Выберите значение"
6981
+ },
6982
+ NmorphFileUpload: {
6983
+ selectFile: "Выберите файл"
6984
+ }
6985
+ }, bi = {
6947
6986
  install(t, e = {}) {
6948
6987
  if (!e?.i18n?.outsideMessagesMerge) {
6949
6988
  const c = e0(e.i18n), d = t.__VUE_I18N__;
@@ -6954,7 +6993,7 @@ const bi = {
6954
6993
  const s = Fe(e.theme), l = t0(), r = { theme: s, browser: l };
6955
6994
  return t.provide("nmorph", r), t;
6956
6995
  }
6957
- }, C9 = bi;
6996
+ }, L9 = bi;
6958
6997
  export {
6959
6998
  Ee as AvatarShapeType,
6960
6999
  Q as Locale,
@@ -6983,7 +7022,7 @@ export {
6983
7022
  ae as NmorphColor,
6984
7023
  qe as NmorphComponentDirection,
6985
7024
  l2 as NmorphComponentHeight,
6986
- We as NmorphComponentPosition,
7025
+ je as NmorphComponentPosition,
6987
7026
  _9 as NmorphDatePicker,
6988
7027
  p9 as NmorphDialog,
6989
7028
  xi as NmorphDivider,
@@ -7008,10 +7047,10 @@ export {
7008
7047
  Fi as NmorphIconBell,
7009
7048
  Pi as NmorphIconBellFilled,
7010
7049
  Ei as NmorphIconBicycle,
7011
- Wi as NmorphIconBottom,
7050
+ ji as NmorphIconBottom,
7012
7051
  Ri as NmorphIconBottomLeft,
7013
7052
  qi as NmorphIconBottomRight,
7014
- ji as NmorphIconBurger,
7053
+ Wi as NmorphIconBurger,
7015
7054
  Ui as NmorphIconCalendar,
7016
7055
  Yi as NmorphIconCamera,
7017
7056
  Gi as NmorphIconCaretBottom,
@@ -7067,8 +7106,8 @@ export {
7067
7106
  Fc as NmorphIconDocumentDelete,
7068
7107
  Ec as NmorphIconDocumentRemove,
7069
7108
  qc as NmorphIconDownload,
7070
- jc as NmorphIconEdit,
7071
- Wc as NmorphIconEditPen,
7109
+ Wc as NmorphIconEdit,
7110
+ jc as NmorphIconEditPen,
7072
7111
  ln as NmorphIconEnlarge,
7073
7112
  Yc as NmorphIconError,
7074
7113
  Uc as NmorphIconExpand,
@@ -7125,8 +7164,8 @@ export {
7125
7164
  Ed as NmorphIconManagement,
7126
7165
  Rd as NmorphIconMapLocation,
7127
7166
  qd as NmorphIconMedal,
7128
- Wd as NmorphIconMemo,
7129
- jd as NmorphIconMenu,
7167
+ jd as NmorphIconMemo,
7168
+ Wd as NmorphIconMenu,
7130
7169
  Yd as NmorphIconMessage,
7131
7170
  Ud as NmorphIconMessageBox,
7132
7171
  Gd as NmorphIconMic,
@@ -7178,9 +7217,9 @@ export {
7178
7217
  Pu as NmorphIconRefreshLeft,
7179
7218
  Fu as NmorphIconRefreshRight,
7180
7219
  Ru as NmorphIconRefrigerator,
7181
- Wu as NmorphIconRemove,
7220
+ ju as NmorphIconRemove,
7182
7221
  qu as NmorphIconRemoveFilled,
7183
- ju as NmorphIconRight,
7222
+ Wu as NmorphIconRight,
7184
7223
  x3 as NmorphIconRotateLeft,
7185
7224
  b3 as NmorphIconRotateRight,
7186
7225
  Uu as NmorphIconScaleToOriginal,
@@ -7237,9 +7276,9 @@ export {
7237
7276
  F5 as NmorphIconUnlock,
7238
7277
  R5 as NmorphIconUpload,
7239
7278
  E5 as NmorphIconUploadFilled,
7240
- W5 as NmorphIconUser,
7279
+ j5 as NmorphIconUser,
7241
7280
  q5 as NmorphIconUserFilled,
7242
- j5 as NmorphIconVan,
7281
+ W5 as NmorphIconVan,
7243
7282
  Ol as NmorphIconVideo,
7244
7283
  U5 as NmorphIconVideoCamera,
7245
7284
  Y5 as NmorphIconVideoPause,
@@ -7247,17 +7286,17 @@ export {
7247
7286
  U5 as NmorphIconView,
7248
7287
  K5 as NmorphIconWallet,
7249
7288
  Q5 as NmorphIconWalletFilled,
7250
- jl as NmorphIconWarnTriangleFilled,
7289
+ Wl as NmorphIconWarnTriangleFilled,
7251
7290
  X5 as NmorphIconWarning,
7252
7291
  J5 as NmorphIconWatch,
7253
7292
  Z5 as NmorphIconWindPower,
7254
7293
  er as NmorphIconZoomIn,
7255
7294
  or as NmorphIconZoomOut,
7256
7295
  A2 as NmorphImage,
7257
- je as NmorphImageFit,
7296
+ We as NmorphImageFit,
7258
7297
  Fr as NmorphImagePreview,
7259
7298
  O2 as NmorphImageResolution,
7260
- C9 as NmorphLibrary,
7299
+ L9 as NmorphLibrary,
7261
7300
  e9 as NmorphLink,
7262
7301
  sr as NmorphLinkTarget,
7263
7302
  yi as NmorphNotificationPlacement,
@@ -7294,7 +7333,7 @@ export {
7294
7333
  C6 as NmorphTooltip,
7295
7334
  P2 as NmorphVideoResolution,
7296
7335
  zi as capitalizeFirstChar,
7297
- W2 as deepClone,
7336
+ j2 as deepClone,
7298
7337
  K2 as formatDateIntl,
7299
7338
  Z2 as formatTimestampToTime,
7300
7339
  u2 as generateUUID,
@@ -7309,6 +7348,7 @@ export {
7309
7348
  ve as nmorphLog,
7310
7349
  c2 as resetTimeToZero,
7311
7350
  w9 as resolution,
7351
+ C9 as ru,
7312
7352
  X8 as timeArrayToTimestamp,
7313
7353
  D2 as useCalendarTexts,
7314
7354
  ki as useNmorph,
@@ -3,4 +3,5 @@ export * from './types/index.ts';
3
3
  export * from './outside-hooks';
4
4
  export * from './outside-utils';
5
5
  export * from './components';
6
+ export { default as ru } from './locales/ru.js';
6
7
  export declare const NmorphLibrary: ObjectPlugin<any[]>;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@nmorph/nmorph-ui-kit",
3
3
  "type": "module",
4
4
  "private": false,
5
- "version": "1.0.38",
5
+ "version": "1.0.39",
6
6
  "license": "MIT",
7
7
  "engines": {
8
8
  "node": "18.13.0",
@@ -1,40 +0,0 @@
1
- export default {
2
- NmorphSwitch: {
3
- on: 'Вкл',
4
- off: 'Выкл',
5
- },
6
- NmorphCalendar: {
7
- sun: 'Вс',
8
- mon: 'Пн',
9
- tue: 'Вт',
10
- wed: 'Ср',
11
- thu: 'Чт',
12
- fri: 'Пт',
13
- sat: 'Сб',
14
- jan: 'Январь',
15
- feb: 'Февраль',
16
- mar: 'Март',
17
- apr: 'Апрель',
18
- may: 'Май',
19
- jun: 'Июнь',
20
- jul: 'Июль',
21
- aug: 'Август',
22
- sep: 'Сентябрь',
23
- oct: 'Октябрь',
24
- nov: 'Ноябрь',
25
- dec: 'Декабрь',
26
- },
27
- NmorphDatePicker: {
28
- pickADate: 'Выберите дату',
29
- },
30
- NmorphImage: {
31
- loadingText: 'Загрузка ...',
32
- loadFailedText: 'Не удалось загрузить изображение',
33
- },
34
- NmorphSelect: {
35
- noElementPlaceholder: 'Выберите значение',
36
- },
37
- NmorphFileUpload: {
38
- selectFile: 'Выберите файл',
39
- },
40
- };