@topvisor/ui 0.9.29-0 → 0.9.29

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.
Files changed (121) hide show
  1. package/.chunks/datepicker-C5l1LY9e.es.js +276 -0
  2. package/.chunks/datepicker-C5l1LY9e.es.js.map +1 -0
  3. package/.chunks/datepicker-CCrqadMd.amd.js +234 -0
  4. package/.chunks/datepicker-CCrqadMd.amd.js.map +1 -0
  5. package/.chunks/{forms-DBYpY73Z.amd.js → forms-0MQ_zU80.amd.js} +3 -3
  6. package/.chunks/forms-0MQ_zU80.amd.js.map +1 -0
  7. package/.chunks/{forms-BScWgSrn.es.js → forms-BwLbWSIF.es.js} +99 -97
  8. package/.chunks/forms-BwLbWSIF.es.js.map +1 -0
  9. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-BzEj4QFY.es.js → listItem.vue_vue_type_script_setup_true_lang-C4297RyP.es.js} +39 -37
  10. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-C4297RyP.es.js.map +1 -0
  11. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-D-5F2CnX.amd.js → listItem.vue_vue_type_script_setup_true_lang-Cr9e1nzK.amd.js} +2 -2
  12. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-Cr9e1nzK.amd.js.map +1 -0
  13. package/.chunks/{menu-BWyv8Yuu.amd.js → menu-BGUYnOx6.amd.js} +2 -2
  14. package/.chunks/menu-BGUYnOx6.amd.js.map +1 -0
  15. package/.chunks/{menu-DbC1zr5j.es.js → menu-Czk2awpe.es.js} +41 -39
  16. package/.chunks/menu-Czk2awpe.es.js.map +1 -0
  17. package/.chunks/{popup-B4tgc-1X.es.js → popup-C5Ha2nU3.es.js} +431 -438
  18. package/.chunks/popup-C5Ha2nU3.es.js.map +1 -0
  19. package/.chunks/{popup-DPzeQf9t.amd.js → popup-CcxDRowY.amd.js} +386 -393
  20. package/.chunks/popup-CcxDRowY.amd.js.map +1 -0
  21. package/.chunks/store-Bl79G7T_.amd.js.map +1 -1
  22. package/.chunks/store-PoMCiuBr.es.js.map +1 -1
  23. package/.chunks/{widgetInput-DCXTtndM.es.js → widgetInput-DZXnw5Ms.es.js} +13 -11
  24. package/.chunks/widgetInput-DZXnw5Ms.es.js.map +1 -0
  25. package/.chunks/{widgetInput-L8yGX3-T.amd.js → widgetInput-DfOBj0qz.amd.js} +2 -2
  26. package/.chunks/widgetInput-DfOBj0qz.amd.js.map +1 -0
  27. package/README.md +86 -86
  28. package/assets/core.css +1 -1
  29. package/assets/dark.css +1 -1
  30. package/assets/forms.css +1 -1
  31. package/assets/formsExt.css +1 -1
  32. package/assets/light.css +1 -1
  33. package/assets/menu.css +1 -1
  34. package/assets/tabs.css +1 -1
  35. package/assets/tabsView.css +1 -1
  36. package/assets/widgetInput.css +1 -1
  37. package/core/core.amd.js +1 -1
  38. package/core/core.js +1 -1
  39. package/forms/forms.amd.js +1 -1
  40. package/forms/forms.js +1 -1
  41. package/forms/helpers.amd.js.map +1 -1
  42. package/forms/helpers.js.map +1 -1
  43. package/formsExt/formsExt.amd.js +1 -1
  44. package/formsExt/formsExt.amd.js.map +1 -1
  45. package/formsExt/formsExt.js +21 -20
  46. package/formsExt/formsExt.js.map +1 -1
  47. package/icomoon/Read Me.txt +7 -7
  48. package/icomoon/demo-files/demo.css +161 -161
  49. package/icomoon/demo-files/demo.js +30 -30
  50. package/icomoon/demo.html +3239 -3239
  51. package/icomoon/fonts/Topvisor-2.svg +253 -253
  52. package/icomoon/style.css +710 -710
  53. package/package.json +24 -20
  54. package/popup/popup.amd.js +1 -1
  55. package/popup/popup.js +2 -2
  56. package/popup/worker.amd.js +1 -1
  57. package/popup/worker.amd.js.map +1 -1
  58. package/popup/worker.js +2 -2
  59. package/popup/worker.js.map +1 -1
  60. package/project/project.amd.js +1 -1
  61. package/project/project.amd.js.map +1 -1
  62. package/project/project.js +33 -31
  63. package/project/project.js.map +1 -1
  64. package/require/css.amd.js +17 -11
  65. package/src/core/utils/css.d.ts +3 -1
  66. package/src/core/utils/system.d.ts +1 -1
  67. package/tabs/tabs.amd.js +1 -1
  68. package/tabs/tabs.js +23 -21
  69. package/tabs/tabs.js.map +1 -1
  70. package/tabsView/tabsView.amd.js +1 -1
  71. package/tabsView/tabsView.amd.js.map +1 -1
  72. package/tabsView/tabsView.js +45 -43
  73. package/tabsView/tabsView.js.map +1 -1
  74. package/utils/check.amd.js.map +1 -1
  75. package/utils/check.js.map +1 -1
  76. package/utils/common.amd.js.map +1 -1
  77. package/utils/common.js.map +1 -1
  78. package/utils/css.amd.js +1 -1
  79. package/utils/css.amd.js.map +1 -1
  80. package/utils/css.js +24 -29
  81. package/utils/css.js.map +1 -1
  82. package/utils/date.amd.js +1 -1
  83. package/utils/date.js +1 -1
  84. package/utils/device.amd.js +1 -1
  85. package/utils/device.js +1 -1
  86. package/utils/dom.amd.js.map +1 -1
  87. package/utils/dom.js.map +1 -1
  88. package/utils/keyboard.amd.js.map +1 -1
  89. package/utils/keyboard.js.map +1 -1
  90. package/utils/price.amd.js.map +1 -1
  91. package/utils/price.js.map +1 -1
  92. package/utils/route.amd.js.map +1 -1
  93. package/utils/route.js.map +1 -1
  94. package/utils/scroll.amd.js +1 -1
  95. package/utils/scroll.amd.js.map +1 -1
  96. package/utils/scroll.js +1 -1
  97. package/utils/scroll.js.map +1 -1
  98. package/utils/string.amd.js.map +1 -1
  99. package/utils/string.js.map +1 -1
  100. package/utils/system.amd.js +1 -1
  101. package/utils/system.amd.js.map +1 -1
  102. package/utils/system.js +14 -14
  103. package/utils/system.js.map +1 -1
  104. package/utils/url.amd.js.map +1 -1
  105. package/utils/url.js.map +1 -1
  106. package/utils/window.amd.js +1 -1
  107. package/utils/window.js +1 -1
  108. package/.chunks/datepicker-BWFx68Rc.amd.js +0 -247
  109. package/.chunks/datepicker-BWFx68Rc.amd.js.map +0 -1
  110. package/.chunks/datepicker-BfPBssvK.es.js +0 -289
  111. package/.chunks/datepicker-BfPBssvK.es.js.map +0 -1
  112. package/.chunks/forms-BScWgSrn.es.js.map +0 -1
  113. package/.chunks/forms-DBYpY73Z.amd.js.map +0 -1
  114. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-BzEj4QFY.es.js.map +0 -1
  115. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-D-5F2CnX.amd.js.map +0 -1
  116. package/.chunks/menu-BWyv8Yuu.amd.js.map +0 -1
  117. package/.chunks/menu-DbC1zr5j.es.js.map +0 -1
  118. package/.chunks/popup-B4tgc-1X.es.js.map +0 -1
  119. package/.chunks/popup-DPzeQf9t.amd.js.map +0 -1
  120. package/.chunks/widgetInput-DCXTtndM.es.js.map +0 -1
  121. package/.chunks/widgetInput-L8yGX3-T.amd.js.map +0 -1
@@ -1,7 +1,9 @@
1
- import { insertToPage as ae } from "../utils/css.js";
2
- import { reactive as Y, defineComponent as y, useCssVars as te, computed as h, openBlock as u, createElementBlock as m, createElementVNode as _, createCommentVNode as g, createBlock as M, resolveDynamicComponent as re, normalizeClass as w, withCtx as D, renderSlot as k, createTextVNode as le, toDisplayString as W, mergeModels as H, useModel as oe, withDirectives as T, vModelCheckbox as se, onUnmounted as de, ref as pe, unref as B, mergeProps as A, vModelRadio as ue, resolveDirective as ce, vModelText as ne, watch as me, Fragment as O, renderList as X, vModelSelect as fe, withKeys as be, withModifiers as he } from "vue";
3
- const ie = ["../assets/forms.css"].map((t) => import.meta.resolve(t));
4
- await ae(ie);
1
+ import { insertToPage as ie } from "../utils/css.js";
2
+ import { reactive as X, defineComponent as y, useCssVars as oe, computed as b, openBlock as u, createElementBlock as m, createElementVNode as _, createCommentVNode as g, createBlock as M, resolveDynamicComponent as re, normalizeClass as w, withCtx as D, renderSlot as k, createTextVNode as le, toDisplayString as W, mergeModels as H, useModel as se, withDirectives as T, vModelCheckbox as ne, onUnmounted as de, ref as pe, unref as B, mergeProps as A, vModelRadio as ue, resolveDirective as ce, vModelText as ae, watch as me, Fragment as O, renderList as q, vModelSelect as fe, withKeys as he, withModifiers as be } from "vue";
3
+ const I = ["../assets/forms.css"].map((t) => import.meta.resolve(t));
4
+ console.time(I.join());
5
+ ie(I);
6
+ console.timeEnd(I.join());
5
7
  function ge() {
6
8
  return "devicePixelRatio" in window && window.devicePixelRatio > 1;
7
9
  }
@@ -68,22 +70,22 @@ class $e {
68
70
  }
69
71
  const Se = 100;
70
72
  let G;
71
- const I = /* @__PURE__ */ new Map(), R = {
73
+ const F = /* @__PURE__ */ new Map(), R = {
72
74
  width: window.innerWidth,
73
75
  height: window.innerHeight
74
76
  };
75
77
  function ke(t) {
76
- I.set(t, t);
78
+ F.set(t, t);
77
79
  }
78
80
  function Me(t) {
79
- I.delete(t);
81
+ F.delete(t);
80
82
  }
81
83
  function Ve(t) {
82
84
  clearTimeout(G), G = setTimeout(function() {
83
85
  t.topEvent = {
84
86
  widthDiff: R.width - window.innerWidth,
85
87
  hightDiff: R.height - window.innerHeight
86
- }, R.width = window.innerWidth, R.height = window.innerHeight, I.forEach((e) => e(t));
88
+ }, R.width = window.innerWidth, R.height = window.innerHeight, F.forEach((e) => e(t));
87
89
  }, Se);
88
90
  }
89
91
  window.addEventListener("resize", Ve);
@@ -91,16 +93,16 @@ const We = {
91
93
  addOnReize: ke,
92
94
  removeOnResize: Me
93
95
  };
94
- var x;
96
+ var ee;
95
97
  const Te = {
96
98
  widthForMobile: 900,
97
99
  dateFormat: "Y-m-d",
98
100
  /**
99
101
  * Для Москвы: +0300
100
102
  */
101
- gmt: (x = (/* @__PURE__ */ new Date()).toString().match(/GMT(\S+)/)) == null ? void 0 : x[1]
103
+ gmt: (ee = (/* @__PURE__ */ new Date()).toString().match(/GMT(\S+)/)) == null ? void 0 : ee[1]
102
104
  };
103
- var ee;
105
+ var te;
104
106
  const Be = {
105
107
  /**
106
108
  * Device by size
@@ -131,7 +133,7 @@ const Be = {
131
133
  // См. core.options
132
134
  dateFormat: "Y-m-d",
133
135
  // См. core.options
134
- gmt: (ee = (/* @__PURE__ */ new Date()).toString().match(/GMT(\S+)/)) == null ? void 0 : ee[1]
136
+ gmt: (te = (/* @__PURE__ */ new Date()).toString().match(/GMT(\S+)/)) == null ? void 0 : te[1]
135
137
  }, C = (t) => {
136
138
  var e, s;
137
139
  if (!((s = (e = p.$) == null ? void 0 : e.ui) != null && s.tooltip)) {
@@ -183,9 +185,9 @@ const ze = {
183
185
  E == null || E.disconnect();
184
186
  }
185
187
  };
186
- let Q = !1, z, F;
188
+ let Q = !1, z, U;
187
189
  const P = /* @__PURE__ */ new Map(), De = (t, e) => {
188
- const { distance: s, percent: n } = F, a = t.getBoundingClientRect().top, o = e * n / 100 / s, i = (e - a) / o;
190
+ const { distance: s, percent: n } = U, a = t.getBoundingClientRect().top, o = e * n / 100 / s, i = (e - a) / o;
189
191
  i <= s ? t.style.transform = `translateY(${s - i}px)` : t.style.transform = "translateY(0px)";
190
192
  }, Ne = (t) => {
191
193
  let e = window.innerHeight;
@@ -195,7 +197,7 @@ const P = /* @__PURE__ */ new Map(), De = (t, e) => {
195
197
  e = window.innerHeight, s.forEach((n) => {
196
198
  const a = n.target;
197
199
  if (n.intersectionRatio < 0.1 ? P.delete(a) : P.set(a, a), n.intersectionRatio === 0) {
198
- const { distance: o, percent: i } = F;
200
+ const { distance: o, percent: i } = U;
199
201
  a.style.transform = `translateY(${o}px)`;
200
202
  }
201
203
  });
@@ -208,7 +210,7 @@ const P = /* @__PURE__ */ new Map(), De = (t, e) => {
208
210
  if (p.state.isMobileUA) return;
209
211
  const n = (i = e.arg) == null ? void 0 : i.split(":");
210
212
  let a = Number((n == null ? void 0 : n[0]) ?? 100), o = Number((n == null ? void 0 : n[1]) ?? 30);
211
- F = {
213
+ U = {
212
214
  distance: a,
213
215
  percent: o
214
216
  }, Q || (Ne(), Q = !0), z.observe(t);
@@ -216,20 +218,20 @@ const P = /* @__PURE__ */ new Map(), De = (t, e) => {
216
218
  unmounted(t, e, s) {
217
219
  P.delete(t), z == null || z.unobserve(t);
218
220
  }
219
- }, Pe = () => typeof window > "u" ? {} : window, q = Pe();
221
+ }, Pe = () => typeof window > "u" ? {} : window, j = Pe();
220
222
  class p {
221
223
  /**
222
224
  * Настройки словаря
223
225
  */
224
- static L = Y({
226
+ static L = X({
225
227
  Not_date: "Not date"
226
228
  });
227
- static page = q.page ?? {};
229
+ static page = j.page ?? {};
228
230
  static Page = $e;
229
231
  static options = Te;
230
- static state = Y({ ...Be });
232
+ static state = X({ ...Be });
231
233
  static matchMediaIsMobile;
232
- static $ = q.$;
234
+ static $ = j.$;
233
235
  /**
234
236
  * Добавить на страницу стили, используется для загрузки стилей из js
235
237
  *
@@ -324,8 +326,8 @@ function po(t, e = !0) {
324
326
  const n = (/* @__PURE__ */ new Date()).getTimezoneOffset() / 60 * -1 * 60 * 60 * 1e3, a = 3 * 60 * 60 * 1e3;
325
327
  let o;
326
328
  t !== void 0 ? o = new Date(t) : o = /* @__PURE__ */ new Date(), o.setTime(o.getTime() - n + a);
327
- let i = String(o.getFullYear()), l = String(o.getDate()).padStart(2, "0"), f = String(o.getMonth() + 1).padStart(2, "0"), r = String(o.getHours()).padStart(2, "0"), d = String(o.getMinutes()).padStart(2, "0"), c = String(o.getSeconds()).padStart(2, "0"), b = i + "-" + f + "-" + l + " " + r + ":" + d + ":" + c;
328
- return e && (b = L(b)), b;
329
+ let i = String(o.getFullYear()), l = String(o.getDate()).padStart(2, "0"), f = String(o.getMonth() + 1).padStart(2, "0"), r = String(o.getHours()).padStart(2, "0"), d = String(o.getMinutes()).padStart(2, "0"), c = String(o.getSeconds()).padStart(2, "0"), h = i + "-" + f + "-" + l + " " + r + ":" + d + ":" + c;
330
+ return e && (h = L(h)), h;
329
331
  }
330
332
  function L(t, e = 2, s, n = p.L.Not_date) {
331
333
  if (typeof t == "string" && (!t || t.substring(0, 10) === "0000-00-00") && n && n !== "0000-00-00")
@@ -401,16 +403,16 @@ const Oe = { class: "top-avatar" }, Ce = ["src", "title"], He = ["title"], Ie =
401
403
  }) }
402
404
  },
403
405
  setup(t) {
404
- te((a) => ({
405
- "15bd2dfc": a.size + "px"
406
+ oe((a) => ({
407
+ "5365dc30": a.size + "px"
406
408
  }));
407
- const e = t, s = h(() => {
409
+ const e = t, s = b(() => {
408
410
  var a, o;
409
411
  if (e.isOnline)
410
412
  return (a = e.i18n) == null ? void 0 : a.Online;
411
413
  if (e.lastActiveTime)
412
414
  return ((o = e.i18n) == null ? void 0 : o.LastSeen) + ": " + L(e.lastActiveTime, 2);
413
- }), n = h(() => e.nickname ? e.nickname + (s.value ? `
415
+ }), n = b(() => e.nickname ? e.nickname + (s.value ? `
414
416
  ${s.value}` : "") : s.value);
415
417
  return (a, o) => (u(), m("div", Oe, [
416
418
  _("img", {
@@ -457,7 +459,7 @@ ${s.value}` : "") : s.value);
457
459
  isProgress: { type: Boolean }
458
460
  },
459
461
  setup(t) {
460
- const e = t, s = h(() => e.href ? "a" : "button"), n = h(() => e.isSubmit ? "submit" : void 0);
462
+ const e = t, s = b(() => e.href ? "a" : "button"), n = b(() => e.isSubmit ? "submit" : void 0);
461
463
  return (a, o) => (u(), M(re(s.value), {
462
464
  class: w({
463
465
  "top-active": a.isActive,
@@ -490,11 +492,11 @@ ${s.value}` : "") : s.value);
490
492
  _: 3
491
493
  }, 8, ["class", "name", "title", "href", "type", "data-top-icon", "data-top-icon2", "disabled", "inProgress"]));
492
494
  }
493
- }), Ge = "_progress_1f1nw_1", Ke = {
495
+ }), qe = "_progress_1hqxk_1", Ge = {
494
496
  "top-button": "top-button",
495
497
  "top-active": "top-active",
496
498
  "top-button-progress": "top-button-progress",
497
- progress: Ge,
499
+ progress: qe,
498
500
  "top-button-withoutText": "top-button-withoutText",
499
501
  "top-color_blue": "top-color_blue",
500
502
  "top-color_green": "top-color_green",
@@ -507,16 +509,16 @@ ${s.value}` : "") : s.value);
507
509
  "top-style_transparent": "top-style_transparent",
508
510
  "top-size_l": "top-size_l",
509
511
  "top-size_xl": "top-size_xl"
510
- }, Qe = {
511
- $style: Ke
512
- }, co = /* @__PURE__ */ v(Xe, [["__cssModules", Qe]]), qe = { class: "top-forms-optionLabel" }, Je = /* @__PURE__ */ y({
512
+ }, Ke = {
513
+ $style: Ge
514
+ }, co = /* @__PURE__ */ v(Xe, [["__cssModules", Ke]]), Qe = { class: "top-forms-optionLabel" }, je = /* @__PURE__ */ y({
513
515
  __name: "controlLabel",
514
516
  props: {
515
517
  description: {},
516
518
  disabled: { type: Boolean }
517
519
  },
518
520
  setup(t) {
519
- return (e, s) => (u(), m("div", qe, [
521
+ return (e, s) => (u(), m("div", Qe, [
520
522
  _("div", {
521
523
  class: w({
522
524
  "top-forms-optionLabel_title": !0,
@@ -531,15 +533,15 @@ ${s.value}` : "") : s.value);
531
533
  }, W(e.description), 3)) : g("", !0)
532
534
  ]));
533
535
  }
534
- }), Ze = {
536
+ }), Je = {
535
537
  "top-forms-optionLabel": "top-forms-optionLabel",
536
538
  "top-forms-optionLabel_title": "top-forms-optionLabel_title",
537
539
  "top-forms-optionLabel_title-disabled": "top-forms-optionLabel_title-disabled",
538
540
  "top-forms-optionLabel_description": "top-forms-optionLabel_description",
539
541
  "top-forms-optionLabel_description-disabled": "top-forms-optionLabel_description-disabled"
540
- }, je = {
541
- $style: Ze
542
- }, U = /* @__PURE__ */ v(Je, [["__cssModules", je]]), xe = ["name", "value", "indeterminate", "disabled"], et = /* @__PURE__ */ y({
542
+ }, Ze = {
543
+ $style: Je
544
+ }, Y = /* @__PURE__ */ v(je, [["__cssModules", Ze]]), xe = ["name", "value", "indeterminate", "disabled"], et = /* @__PURE__ */ y({
543
545
  __name: "checkbox",
544
546
  props: /* @__PURE__ */ H({
545
547
  modelValue: { type: [Boolean, Array, Set] },
@@ -555,7 +557,7 @@ ${s.value}` : "") : s.value);
555
557
  }),
556
558
  emits: ["update:modelValue"],
557
559
  setup(t) {
558
- const e = oe(t, "modelValue");
560
+ const e = se(t, "modelValue");
559
561
  return (s, n) => (u(), m("label", {
560
562
  class: w({
561
563
  "top-forms-optionWrapper": !0,
@@ -579,9 +581,9 @@ ${s.value}` : "") : s.value);
579
581
  indeterminate: s.indeterminate,
580
582
  disabled: s.disabled
581
583
  }, null, 10, xe), [
582
- [se, e.value]
584
+ [ne, e.value]
583
585
  ]),
584
- s.$slots.default ? (u(), M(U, {
586
+ s.$slots.default ? (u(), M(Y, {
585
587
  key: 0,
586
588
  description: s.description,
587
589
  disabled: s.disabled
@@ -643,7 +645,7 @@ const pt = /* @__PURE__ */ y({
643
645
  });
644
646
  const a = pe();
645
647
  let o;
646
- const i = h({
648
+ const i = b({
647
649
  get() {
648
650
  return L(s.modelValue, 2, void 0, "0000-00-00");
649
651
  },
@@ -654,23 +656,23 @@ const pt = /* @__PURE__ */ y({
654
656
  let l = (d) => {
655
657
  Z(d);
656
658
  }, f = (d) => {
657
- const c = J(d.target.value), b = L(c);
658
- if (!b || b === p.L.Not_date || d.target.value !== b) {
659
+ const c = J(d.target.value), h = L(c);
660
+ if (!h || h === p.L.Not_date || d.target.value !== h) {
659
661
  d.target.value = i.value;
660
662
  return;
661
663
  }
662
664
  i.value = d.target.value;
663
665
  };
664
666
  async function r(d) {
665
- const c = await import("./datepicker-BfPBssvK.es.js");
667
+ const c = await import("./datepicker-C5l1LY9e.es.js");
666
668
  Z = c.oninput, o = c.connectDatepicker(d.target, {
667
669
  onSelect: () => f(d)
668
670
  }), o && o.datepicker("show");
669
671
  }
670
- return (d, c) => B(dt) ? (u(), M(B(j), A({ key: 0 }, d.$props, {
672
+ return (d, c) => B(dt) ? (u(), M(B(x), A({ key: 0 }, d.$props, {
671
673
  modelValue: i.value,
672
674
  readonly: "",
673
- onClick: c[1] || (c[1] = (b) => a.value.showPicker())
675
+ onClick: c[1] || (c[1] = (h) => a.value.showPicker())
674
676
  }), {
675
677
  default: D(() => [
676
678
  _("input", {
@@ -679,14 +681,14 @@ const pt = /* @__PURE__ */ y({
679
681
  type: "date",
680
682
  class: "top-input_input-date",
681
683
  modelValue: d.modelValue,
682
- onChange: c[0] || (c[0] = (b) => i.value = b.target.value),
684
+ onChange: c[0] || (c[0] = (h) => i.value = h.target.value),
683
685
  tabindex: "-1"
684
686
  }, null, 40, lt)
685
687
  ]),
686
688
  _: 1
687
- }, 16, ["modelValue"])) : (u(), M(B(j), A({ key: 1 }, d.$props, {
689
+ }, 16, ["modelValue"])) : (u(), M(B(x), A({ key: 1 }, d.$props, {
688
690
  modelValue: i.value,
689
- "onUpdate:modelValue": c[2] || (c[2] = (b) => b === "" ? i.value = "" : ""),
691
+ "onUpdate:modelValue": c[2] || (c[2] = (h) => h === "" ? i.value = "" : ""),
690
692
  onInput: B(l),
691
693
  onFocusOnce: r,
692
694
  onChange: B(f),
@@ -698,7 +700,7 @@ const pt = /* @__PURE__ */ y({
698
700
  "top-input_input-date": "top-input_input-date"
699
701
  }, ct = {
700
702
  $style: ut
701
- }, fo = /* @__PURE__ */ v(pt, [["__cssModules", ct]]), mt = { class: "top-inputRange" }, ft = /* @__PURE__ */ _("span", { class: "top-inputRange_dash" }, " — ", -1), bt = /* @__PURE__ */ y({
703
+ }, fo = /* @__PURE__ */ v(pt, [["__cssModules", ct]]), mt = { class: "top-inputRange" }, ft = /* @__PURE__ */ _("span", { class: "top-inputRange_dash" }, " — ", -1), ht = /* @__PURE__ */ y({
702
704
  __name: "inputRange",
703
705
  setup(t) {
704
706
  return (e, s) => (u(), m("div", mt, [
@@ -707,13 +709,13 @@ const pt = /* @__PURE__ */ y({
707
709
  k(e.$slots, "to")
708
710
  ]));
709
711
  }
710
- }), ht = {
712
+ }), bt = {
711
713
  "top-inputRange": "top-inputRange",
712
714
  "top-inputRange_dash": "top-inputRange_dash",
713
715
  "top-input": "top-input"
714
716
  }, gt = {
715
- $style: ht
716
- }, bo = /* @__PURE__ */ v(bt, [["__cssModules", gt]]), wt = ["name", "value", "disabled"], vt = /* @__PURE__ */ y({
717
+ $style: bt
718
+ }, ho = /* @__PURE__ */ v(ht, [["__cssModules", gt]]), wt = ["name", "value", "disabled"], vt = /* @__PURE__ */ y({
717
719
  __name: "radio",
718
720
  props: {
719
721
  modelValue: {},
@@ -725,7 +727,7 @@ const pt = /* @__PURE__ */ y({
725
727
  },
726
728
  emits: ["update:modelValue"],
727
729
  setup(t, { emit: e }) {
728
- const s = t, n = e, a = h({
730
+ const s = t, n = e, a = b({
729
731
  get() {
730
732
  return s.modelValue;
731
733
  },
@@ -757,7 +759,7 @@ const pt = /* @__PURE__ */ y({
757
759
  }, null, 10, wt), [
758
760
  [ue, a.value]
759
761
  ]),
760
- o.$slots.default ? (u(), M(U, {
762
+ o.$slots.default ? (u(), M(Y, {
761
763
  key: 0,
762
764
  description: o.description,
763
765
  disabled: o.disabled
@@ -775,7 +777,7 @@ const pt = /* @__PURE__ */ y({
775
777
  "top-error": "top-error"
776
778
  }, _t = {
777
779
  $style: yt
778
- }, ho = /* @__PURE__ */ v(vt, [["__cssModules", _t]]), $t = ["name", "value", "disabled"], St = /* @__PURE__ */ y({
780
+ }, bo = /* @__PURE__ */ v(vt, [["__cssModules", _t]]), $t = ["name", "value", "disabled"], St = /* @__PURE__ */ y({
779
781
  __name: "switcher",
780
782
  props: {
781
783
  modelValue: { type: [Boolean, Array, Set] },
@@ -787,7 +789,7 @@ const pt = /* @__PURE__ */ y({
787
789
  },
788
790
  emits: ["update:modelValue"],
789
791
  setup(t, { emit: e }) {
790
- const s = t, n = e, a = h({
792
+ const s = t, n = e, a = b({
791
793
  get() {
792
794
  return s.modelValue;
793
795
  },
@@ -816,9 +818,9 @@ const pt = /* @__PURE__ */ y({
816
818
  value: o.value,
817
819
  disabled: o.disabled
818
820
  }, null, 10, $t), [
819
- [se, a.value]
821
+ [ne, a.value]
820
822
  ]),
821
- o.$slots.default ? (u(), M(U, {
823
+ o.$slots.default ? (u(), M(Y, {
822
824
  key: 0,
823
825
  description: o.description,
824
826
  disabled: o.disabled
@@ -856,10 +858,10 @@ const pt = /* @__PURE__ */ y({
856
858
  },
857
859
  emits: ["update:modelValue"],
858
860
  setup(t, { emit: e }) {
859
- te((o) => ({
860
- "6e3fbb58": o.minHeight + "px"
861
+ oe((o) => ({
862
+ c35baa86: o.minHeight + "px"
861
863
  }));
862
- const s = t, n = e, a = h({
864
+ const s = t, n = e, a = b({
863
865
  get() {
864
866
  return s.modelValue;
865
867
  },
@@ -893,7 +895,7 @@ const pt = /* @__PURE__ */ y({
893
895
  }, o.$attrs, {
894
896
  "onUpdate:modelValue": i[0] || (i[0] = (f) => a.value = f)
895
897
  }), null, 16, Vt), [
896
- [ne, a.value]
898
+ [ae, a.value]
897
899
  ]),
898
900
  o.expandable ? (u(), m("div", Wt, W(a.value + " "), 1)) : g("", !0),
899
901
  o.hint ? T((u(), M(rt, {
@@ -937,18 +939,18 @@ const pt = /* @__PURE__ */ y({
937
939
  }),
938
940
  emits: /* @__PURE__ */ H(["update:modelValue"], ["update:modelValue"]),
939
941
  setup(t, { emit: e }) {
940
- const s = t, n = oe(t, "modelValue"), a = h(() => {
942
+ const s = t, n = se(t, "modelValue"), a = b(() => {
941
943
  const r = /* @__PURE__ */ new Map();
942
944
  return s.options.forEach((d, c) => {
943
945
  if (typeof d == "string" && (d = i(c, d)), d.children) {
944
- const b = /* @__PURE__ */ new Map();
946
+ const h = /* @__PURE__ */ new Map();
945
947
  d.children.forEach((S, N) => {
946
- typeof S == "string" && (S = i(N, S)), b.set(S.value, S);
947
- }), d = { ...d }, d.children = b, r.set(d.value, d);
948
+ typeof S == "string" && (S = i(N, S)), h.set(S.value, S);
949
+ }), d = { ...d }, d.children = h, r.set(d.value, d);
948
950
  } else
949
951
  r.set(d.value, d);
950
952
  }), r;
951
- }), o = h(() => {
953
+ }), o = b(() => {
952
954
  const r = /* @__PURE__ */ new Map();
953
955
  return a.value.forEach((d) => {
954
956
  if (!d.disabled) {
@@ -971,7 +973,7 @@ const pt = /* @__PURE__ */ y({
971
973
  ], () => {
972
974
  (n.value === null || n.value === void 0) && o.value.size && (console.warn("Пожалуйста, не передавайте в компонент Select значения null и undefined"), n.value = o.value.keys().next().value);
973
975
  }, { immediate: !0 });
974
- const l = h(() => {
976
+ const l = b(() => {
975
977
  var r;
976
978
  return (r = o.value.get(n.value)) == null ? void 0 : r.icon;
977
979
  }), f = () => {
@@ -1002,13 +1004,13 @@ const pt = /* @__PURE__ */ y({
1002
1004
  disabled: r.disabled,
1003
1005
  "onUpdate:modelValue": d[0] || (d[0] = (c) => n.value = c)
1004
1006
  }, [
1005
- (u(!0), m(O, null, X(a.value, ([c, b]) => (u(), m(O, null, [
1006
- b.children ? (u(), m("optgroup", {
1007
+ (u(!0), m(O, null, q(a.value, ([c, h]) => (u(), m(O, null, [
1008
+ h.children ? (u(), m("optgroup", {
1007
1009
  key: "group_" + c,
1008
- label: b.title,
1009
- disabled: b.disabled
1010
+ label: h.title,
1011
+ disabled: h.disabled
1010
1012
  }, [
1011
- (u(!0), m(O, null, X(b.children, ([S, N]) => (u(), m("option", {
1013
+ (u(!0), m(O, null, q(h.children, ([S, N]) => (u(), m("option", {
1012
1014
  key: S,
1013
1015
  value: S,
1014
1016
  selected: S === n.value,
@@ -1018,8 +1020,8 @@ const pt = /* @__PURE__ */ y({
1018
1020
  key: c ?? void 0,
1019
1021
  value: c,
1020
1022
  selected: c === n.value,
1021
- disabled: b.disabled
1022
- }, W(b.title), 9, Rt))
1023
+ disabled: h.disabled
1024
+ }, W(h.title), 9, Rt))
1023
1025
  ], 64))), 256))
1024
1026
  ], 10, zt), [
1025
1027
  [fe, n.value]
@@ -1047,10 +1049,10 @@ function Ut(t, e) {
1047
1049
  }
1048
1050
  const Yt = {
1049
1051
  $style: Ht
1050
- }, Xt = /* @__PURE__ */ v(It, [["render", Ut], ["__cssModules", Yt]]), Gt = ["data-top-icon", "data-top-icon2"], Kt = ["name", "title", "placeholder", "disabled", "readonly"], Qt = {
1052
+ }, Xt = /* @__PURE__ */ v(It, [["render", Ut], ["__cssModules", Yt]]), qt = ["data-top-icon", "data-top-icon2"], Gt = ["name", "title", "placeholder", "disabled", "readonly"], Kt = {
1051
1053
  key: 2,
1052
1054
  class: "top-formsCaption"
1053
- }, qt = /* @__PURE__ */ y({
1055
+ }, Qt = /* @__PURE__ */ y({
1054
1056
  inheritAttrs: !1,
1055
1057
  __name: "input",
1056
1058
  props: {
@@ -1070,14 +1072,14 @@ const Yt = {
1070
1072
  },
1071
1073
  emits: ["update:modelValue"],
1072
1074
  setup(t, { emit: e }) {
1073
- const s = t, n = e, a = h({
1075
+ const s = t, n = e, a = b({
1074
1076
  get() {
1075
1077
  return s.modelValue;
1076
1078
  },
1077
1079
  set(l) {
1078
1080
  n("update:modelValue", l);
1079
1081
  }
1080
- }), o = h(() => s.addCleaner && !s.title || s.captionType !== "" ? "" : s.title), i = (l) => {
1082
+ }), o = b(() => s.addCleaner && !s.title || s.captionType !== "" ? "" : s.title), i = (l) => {
1081
1083
  s.modelValue && l.stopPropagation(), n("update:modelValue", "");
1082
1084
  };
1083
1085
  return (l, f) => (u(), m("label", {
@@ -1109,38 +1111,38 @@ const Yt = {
1109
1111
  placeholder: o.value,
1110
1112
  disabled: l.disabled,
1111
1113
  readonly: l.readonly,
1112
- onKeydown: f[1] || (f[1] = be((r) => (l.addCleaner || !!l.$slots.btn) && i(r), ["esc"]))
1113
- }, l.$attrs), null, 16, Kt), [
1114
- [ne, a.value]
1114
+ onKeydown: f[1] || (f[1] = he((r) => (l.addCleaner || !!l.$slots.btn) && i(r), ["esc"]))
1115
+ }, l.$attrs), null, 16, Gt), [
1116
+ [ae, a.value]
1115
1117
  ]),
1116
1118
  l.addCleaner && a.value && a.value !== "0000-00-00" ? (u(), m("span", {
1117
1119
  key: 1,
1118
1120
  class: "top-input_cleaner",
1119
1121
  "data-top-icon": "",
1120
- onClick: he(i, ["prevent"])
1122
+ onClick: be(i, ["prevent"])
1121
1123
  })) : g("", !0),
1122
- l.captionType !== "" ? (u(), m("span", Qt, W(l.title), 1)) : g("", !0),
1124
+ l.captionType !== "" ? (u(), m("span", Kt, W(l.title), 1)) : g("", !0),
1123
1125
  k(l.$slots, "default")
1124
- ], 10, Gt));
1126
+ ], 10, qt));
1125
1127
  }
1126
- }), Jt = {
1128
+ }), jt = {
1127
1129
  "top-input": "top-input",
1128
1130
  "top-input_input": "top-input_input",
1129
1131
  "top-input-withCleaner": "top-input-withCleaner",
1130
1132
  "top-input_cleaner": "top-input_cleaner",
1131
1133
  "top-loadbar": "top-loadbar"
1132
- }, Zt = {
1133
- $style: Jt
1134
- }, j = /* @__PURE__ */ v(qt, [["__cssModules", Zt]]);
1134
+ }, Jt = {
1135
+ $style: jt
1136
+ }, x = /* @__PURE__ */ v(Qt, [["__cssModules", Jt]]);
1135
1137
  export {
1136
1138
  co as B,
1137
1139
  p as C,
1138
1140
  We as E,
1139
1141
  rt as H,
1140
- j as I,
1142
+ x as I,
1141
1143
  Xt as L,
1142
1144
  wo as T,
1143
- q as _,
1145
+ j as _,
1144
1146
  v as a,
1145
1147
  ge as b,
1146
1148
  we as c,
@@ -1161,11 +1163,11 @@ export {
1161
1163
  uo as r,
1162
1164
  lo as s,
1163
1165
  mo as t,
1164
- U as u,
1166
+ Y as u,
1165
1167
  fo as v,
1166
- bo as w,
1167
- ho as x,
1168
+ ho as w,
1169
+ bo as x,
1168
1170
  go as y,
1169
1171
  vo as z
1170
1172
  };
1171
- //# sourceMappingURL=forms-BScWgSrn.es.js.map
1173
+ //# sourceMappingURL=forms-BwLbWSIF.es.js.map