@topvisor/ui 0.9.27-dev → 0.9.29-0

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 (137) hide show
  1. package/.chunks/datepicker-BWFx68Rc.amd.js +247 -0
  2. package/.chunks/datepicker-BWFx68Rc.amd.js.map +1 -0
  3. package/.chunks/datepicker-BfPBssvK.es.js +289 -0
  4. package/.chunks/datepicker-BfPBssvK.es.js.map +1 -0
  5. package/.chunks/{forms-1ZAO_mt8.es.js → forms-BScWgSrn.es.js} +116 -124
  6. package/.chunks/forms-BScWgSrn.es.js.map +1 -0
  7. package/.chunks/forms-DBYpY73Z.amd.js +3 -0
  8. package/.chunks/forms-DBYpY73Z.amd.js.map +1 -0
  9. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-DsAW8MMm.es.js → listItem.vue_vue_type_script_setup_true_lang-BzEj4QFY.es.js} +2 -2
  10. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-BzEj4QFY.es.js.map +1 -0
  11. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-HVMrwfs6.amd.js → listItem.vue_vue_type_script_setup_true_lang-D-5F2CnX.amd.js} +2 -2
  12. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-D-5F2CnX.amd.js.map +1 -0
  13. package/.chunks/{menu-C-SkDk9B.amd.js → menu-BWyv8Yuu.amd.js} +2 -2
  14. package/.chunks/menu-BWyv8Yuu.amd.js.map +1 -0
  15. package/.chunks/{menu-CBKYqQZZ.es.js → menu-DbC1zr5j.es.js} +2 -2
  16. package/.chunks/menu-DbC1zr5j.es.js.map +1 -0
  17. package/.chunks/{popup-D0tRWEp2.es.js → popup-B4tgc-1X.es.js} +438 -431
  18. package/.chunks/popup-B4tgc-1X.es.js.map +1 -0
  19. package/.chunks/{popup-7Bt5JEDW.amd.js → popup-DPzeQf9t.amd.js} +393 -386
  20. package/.chunks/popup-DPzeQf9t.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-CmVe9G3z.es.js → widgetInput-DCXTtndM.es.js} +2 -2
  24. package/.chunks/widgetInput-DCXTtndM.es.js.map +1 -0
  25. package/.chunks/{widgetInput-CeUAGCKd.amd.js → widgetInput-L8yGX3-T.amd.js} +2 -2
  26. package/.chunks/widgetInput-L8yGX3-T.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 +53 -52
  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 +20 -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 +3 -3
  63. package/project/project.js.map +1 -1
  64. package/require/css.amd.js +11 -11
  65. package/src/core/core/core.d.ts +0 -1
  66. package/src/core/core/page.d.ts +0 -4
  67. package/src/core/core/state.d.ts +0 -4
  68. package/src/core/utils/common.d.ts +21 -0
  69. package/src/core/utils/string.d.ts +0 -4
  70. package/tabs/tabs.amd.js +1 -1
  71. package/tabs/tabs.js +1 -1
  72. package/tabsView/tabsView.amd.js +1 -1
  73. package/tabsView/tabsView.amd.js.map +1 -1
  74. package/tabsView/tabsView.js +2 -2
  75. package/tabsView/tabsView.js.map +1 -1
  76. package/utils/check.amd.js.map +1 -1
  77. package/utils/check.js.map +1 -1
  78. package/utils/common.amd.js +2 -0
  79. package/utils/common.amd.js.map +1 -0
  80. package/utils/common.d.ts +1 -0
  81. package/utils/common.js +21 -0
  82. package/utils/common.js.map +1 -0
  83. package/utils/css.amd.js.map +1 -1
  84. package/utils/css.js.map +1 -1
  85. package/utils/date.amd.js +1 -1
  86. package/utils/date.js +1 -1
  87. package/utils/device.amd.js +1 -1
  88. package/utils/device.js +1 -1
  89. package/utils/dom.amd.js.map +1 -1
  90. package/utils/dom.js.map +1 -1
  91. package/utils/keyboard.amd.js.map +1 -1
  92. package/utils/keyboard.js.map +1 -1
  93. package/utils/price.amd.js.map +1 -1
  94. package/utils/price.js.map +1 -1
  95. package/utils/route.amd.js.map +1 -1
  96. package/utils/route.js.map +1 -1
  97. package/utils/scroll.amd.js +1 -1
  98. package/utils/scroll.amd.js.map +1 -1
  99. package/utils/scroll.js +1 -1
  100. package/utils/scroll.js.map +1 -1
  101. package/utils/string.amd.js +1 -1
  102. package/utils/string.amd.js.map +1 -1
  103. package/utils/string.js +13 -20
  104. package/utils/string.js.map +1 -1
  105. package/utils/system.amd.js.map +1 -1
  106. package/utils/system.js.map +1 -1
  107. package/utils/url.amd.js.map +1 -1
  108. package/utils/url.js.map +1 -1
  109. package/utils/window.amd.js +1 -1
  110. package/utils/window.js +1 -1
  111. package/.chunks/datepicker-34kJtztn.amd.js +0 -234
  112. package/.chunks/datepicker-34kJtztn.amd.js.map +0 -1
  113. package/.chunks/datepicker-DwZTG-k0.es.js +0 -276
  114. package/.chunks/datepicker-DwZTG-k0.es.js.map +0 -1
  115. package/.chunks/forms-1ZAO_mt8.es.js.map +0 -1
  116. package/.chunks/forms-D_IeAEJM.amd.js +0 -3
  117. package/.chunks/forms-D_IeAEJM.amd.js.map +0 -1
  118. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DsAW8MMm.es.js.map +0 -1
  119. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-HVMrwfs6.amd.js.map +0 -1
  120. package/.chunks/menu-C-SkDk9B.amd.js.map +0 -1
  121. package/.chunks/menu-CBKYqQZZ.es.js.map +0 -1
  122. package/.chunks/popup-7Bt5JEDW.amd.js.map +0 -1
  123. package/.chunks/popup-D0tRWEp2.es.js.map +0 -1
  124. package/.chunks/widgetInput-CeUAGCKd.amd.js.map +0 -1
  125. package/.chunks/widgetInput-CmVe9G3z.es.js.map +0 -1
  126. package/src/core/utils/image.d.ts +0 -6
  127. package/src/core/utils/number.d.ts +0 -7
  128. package/utils/image.amd.js +0 -2
  129. package/utils/image.amd.js.map +0 -1
  130. package/utils/image.d.ts +0 -1
  131. package/utils/image.js +0 -8
  132. package/utils/image.js.map +0 -1
  133. package/utils/number.amd.js +0 -2
  134. package/utils/number.amd.js.map +0 -1
  135. package/utils/number.d.ts +0 -1
  136. package/utils/number.js +0 -9
  137. package/utils/number.js.map +0 -1
@@ -1,17 +1,17 @@
1
- import { insertToPage as ie } from "../utils/css.js";
2
- import { reactive as Y, 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 le, normalizeClass as w, withCtx as D, renderSlot as k, createTextVNode as de, toDisplayString as W, mergeModels as C, useModel as se, withDirectives as T, vModelCheckbox as ne, onUnmounted as pe, ref as ue, unref as B, mergeProps as A, vModelRadio as ce, resolveDirective as me, vModelText as ae, watch as fe, Fragment as O, renderList as X, vModelSelect as he, withKeys as be, withModifiers as ge } from "vue";
3
- const re = ["../assets/forms.css"].map((t) => import.meta.resolve(t));
4
- await ie(re);
5
- function we() {
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);
5
+ function ge() {
6
6
  return "devicePixelRatio" in window && window.devicePixelRatio > 1;
7
7
  }
8
- function ve() {
8
+ function we() {
9
9
  return !!navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|IEMobile|Opera Mini/i);
10
10
  }
11
- function ye() {
11
+ function ve() {
12
12
  return navigator.userAgent.indexOf("Topvisor_App") != -1;
13
13
  }
14
- function _e() {
14
+ function ye() {
15
15
  return navigator.userAgent.indexOf("Mac OS X") !== -1;
16
16
  }
17
17
  function eo() {
@@ -20,9 +20,9 @@ function eo() {
20
20
  return t && e && (e = !1), e;
21
21
  }
22
22
  function to() {
23
- return _e() ? "⌘" : "Ctrl";
23
+ return ye() ? "⌘" : "Ctrl";
24
24
  }
25
- const oo = () => $(document).scrollTop(), so = () => $(document), no = () => [document], $e = () => {
25
+ const oo = () => $(document).scrollTop(), so = () => $(document), no = () => [document], _e = () => {
26
26
  const t = [
27
27
  ["iOS", /(iPhone|iPad)/i],
28
28
  ["Android", /(Android)/i],
@@ -57,18 +57,14 @@ const oo = () => $(document).scrollTop(), so = () => $(document), no = () => [do
57
57
  return e;
58
58
  }, ao = async () => {
59
59
  var e;
60
- let t = $e();
60
+ let t = _e();
61
61
  if (t === "Windows 10") {
62
62
  const s = await ((e = navigator == null ? void 0 : navigator.userAgentData) == null ? void 0 : e.getHighEntropyValues(["platformVersion"]));
63
63
  s && s.platformVersion >= "13" && (t = "Windows 11");
64
64
  }
65
65
  return t;
66
66
  };
67
- class q {
68
- /**
69
- * Проверить скрыта страница или нет
70
- */
71
- static isHidden = () => document.hidden;
67
+ class $e {
72
68
  }
73
69
  const Se = 100;
74
70
  let G;
@@ -95,16 +91,16 @@ const We = {
95
91
  addOnReize: ke,
96
92
  removeOnResize: Me
97
93
  };
98
- var ee;
94
+ var x;
99
95
  const Te = {
100
96
  widthForMobile: 900,
101
97
  dateFormat: "Y-m-d",
102
98
  /**
103
99
  * Для Москвы: +0300
104
100
  */
105
- gmt: (ee = (/* @__PURE__ */ new Date()).toString().match(/GMT(\S+)/)) == null ? void 0 : ee[1]
101
+ gmt: (x = (/* @__PURE__ */ new Date()).toString().match(/GMT(\S+)/)) == null ? void 0 : x[1]
106
102
  };
107
- var te;
103
+ var ee;
108
104
  const Be = {
109
105
  /**
110
106
  * Device by size
@@ -135,12 +131,8 @@ const Be = {
135
131
  // См. core.options
136
132
  dateFormat: "Y-m-d",
137
133
  // См. core.options
138
- gmt: (te = (/* @__PURE__ */ new Date()).toString().match(/GMT(\S+)/)) == null ? void 0 : te[1],
139
- /**
140
- * true, если страница скрыта
141
- */
142
- isHidden: !1
143
- }, H = (t) => {
134
+ gmt: (ee = (/* @__PURE__ */ new Date()).toString().match(/GMT(\S+)/)) == null ? void 0 : ee[1]
135
+ }, C = (t) => {
144
136
  var e, s;
145
137
  if (!((s = (e = p.$) == null ? void 0 : e.ui) != null && s.tooltip)) {
146
138
  console.info("Для работы v-top-tooltip требуется глобальная загрузка jQuery UI Tooltip");
@@ -157,11 +149,11 @@ const Be = {
157
149
  }, Le = {
158
150
  mounted(t, e, s) {
159
151
  var n;
160
- (n = H(t)) == null || n.tooltip(K(e, s));
152
+ (n = C(t)) == null || n.tooltip(K(e, s));
161
153
  },
162
154
  updated(t, e, s, n) {
163
155
  var i;
164
- const a = K(e, s), o = (i = H(t)) == null ? void 0 : i.tooltip("instance");
156
+ const a = K(e, s), o = (i = C(t)) == null ? void 0 : i.tooltip("instance");
165
157
  o && (o.options = {
166
158
  ...o.options,
167
159
  ...a
@@ -169,7 +161,7 @@ const Be = {
169
161
  },
170
162
  unmounted(t, e, s) {
171
163
  var n;
172
- (n = H(t)) == null || n.tooltip("destroy");
164
+ (n = C(t)) == null || n.tooltip("destroy");
173
165
  }
174
166
  }, Ee = {
175
167
  mounted: function(t, e) {
@@ -224,7 +216,7 @@ const P = /* @__PURE__ */ new Map(), De = (t, e) => {
224
216
  unmounted(t, e, s) {
225
217
  P.delete(t), z == null || z.unobserve(t);
226
218
  }
227
- }, Pe = () => typeof window > "u" ? {} : window, J = Pe();
219
+ }, Pe = () => typeof window > "u" ? {} : window, q = Pe();
228
220
  class p {
229
221
  /**
230
222
  * Настройки словаря
@@ -232,12 +224,12 @@ class p {
232
224
  static L = Y({
233
225
  Not_date: "Not date"
234
226
  });
235
- static page = J.page ?? {};
236
- static Page = q;
227
+ static page = q.page ?? {};
228
+ static Page = $e;
237
229
  static options = Te;
238
230
  static state = Y({ ...Be });
239
231
  static matchMediaIsMobile;
240
- static $ = J.$;
232
+ static $ = q.$;
241
233
  /**
242
234
  * Добавить на страницу стили, используется для загрузки стилей из js
243
235
  *
@@ -272,7 +264,7 @@ class p {
272
264
  e != null && e.widthForMobile && (this.options.widthForMobile = e.widthForMobile), e != null && e.dateFormat && (this.options.dateFormat = e.dateFormat), e != null && e.gmt && (this.options.gmt = e.gmt), p.setState();
273
265
  }
274
266
  static setState() {
275
- p.matchMediaIsMobile = window.matchMedia(`(max-width: ${p.options.widthForMobile}px)`), p.state.isMobileUA = ve(), p.state.isRetina = we(), p.state.isApp = ye(), p.state.dateFormat = this.options.dateFormat, p.state.gmt = this.options.gmt, p.state.isHidden = q.isHidden(), p.setStateByWindowSize(), We.addOnReize(p.onResize), p.onResize(), p.saveToCookie();
267
+ p.matchMediaIsMobile = window.matchMedia(`(max-width: ${p.options.widthForMobile}px)`), p.state.isMobileUA = we(), p.state.isRetina = ge(), p.state.isApp = ve(), p.state.dateFormat = this.options.dateFormat, p.state.gmt = this.options.gmt, p.setStateByWindowSize(), We.addOnReize(p.onResize), p.onResize(), p.saveToCookie();
276
268
  }
277
269
  static onResize() {
278
270
  p.setStateByWindowSize(), document.documentElement.style.setProperty("--100vh", window.innerHeight + "px");
@@ -332,8 +324,8 @@ function po(t, e = !0) {
332
324
  const n = (/* @__PURE__ */ new Date()).getTimezoneOffset() / 60 * -1 * 60 * 60 * 1e3, a = 3 * 60 * 60 * 1e3;
333
325
  let o;
334
326
  t !== void 0 ? o = new Date(t) : o = /* @__PURE__ */ new Date(), o.setTime(o.getTime() - n + a);
335
- 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;
336
- return e && (h = L(h)), h;
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;
337
329
  }
338
330
  function L(t, e = 2, s, n = p.L.Not_date) {
339
331
  if (typeof t == "string" && (!t || t.substring(0, 10) === "0000-00-00") && n && n !== "0000-00-00")
@@ -372,7 +364,7 @@ function L(t, e = 2, s, n = p.L.Not_date) {
372
364
  }
373
365
  return o = o.trim(), o;
374
366
  }
375
- function Z(t, e = p.L.Not_date) {
367
+ function J(t, e = p.L.Not_date) {
376
368
  if (!t)
377
369
  return e;
378
370
  if (t.match(/\d\d\d\d-\d\d-\d\d/))
@@ -395,7 +387,7 @@ function Z(t, e = p.L.Not_date) {
395
387
  let f = l + "-" + i + "-" + o;
396
388
  return f.match(/\d\d\d\d-\d\d-\d\d/) || (console.info("Неверный формат даты, будет возращена текущая дата, " + f), f = Ae((/* @__PURE__ */ new Date()).getTime(), !1).substring(0, 10)), f;
397
389
  }
398
- const Oe = { class: "top-avatar" }, He = ["src", "title"], Ce = ["title"], Ie = /* @__PURE__ */ y({
390
+ const Oe = { class: "top-avatar" }, Ce = ["src", "title"], He = ["title"], Ie = /* @__PURE__ */ y({
399
391
  __name: "avatar",
400
392
  props: {
401
393
  size: { default: 64 },
@@ -409,16 +401,16 @@ const Oe = { class: "top-avatar" }, He = ["src", "title"], Ce = ["title"], Ie =
409
401
  }) }
410
402
  },
411
403
  setup(t) {
412
- oe((a) => ({
413
- "5365dc30": a.size + "px"
404
+ te((a) => ({
405
+ "15bd2dfc": a.size + "px"
414
406
  }));
415
- const e = t, s = b(() => {
407
+ const e = t, s = h(() => {
416
408
  var a, o;
417
409
  if (e.isOnline)
418
410
  return (a = e.i18n) == null ? void 0 : a.Online;
419
411
  if (e.lastActiveTime)
420
412
  return ((o = e.i18n) == null ? void 0 : o.LastSeen) + ": " + L(e.lastActiveTime, 2);
421
- }), n = b(() => e.nickname ? e.nickname + (s.value ? `
413
+ }), n = h(() => e.nickname ? e.nickname + (s.value ? `
422
414
  ${s.value}` : "") : s.value);
423
415
  return (a, o) => (u(), m("div", Oe, [
424
416
  _("img", {
@@ -426,12 +418,12 @@ ${s.value}` : "") : s.value);
426
418
  src: a.image,
427
419
  title: n.value,
428
420
  alt: ""
429
- }, null, 8, He),
421
+ }, null, 8, Ce),
430
422
  a.isOnline ? (u(), m("div", {
431
423
  key: 0,
432
424
  class: "top-avatar_status",
433
425
  title: s.value
434
- }, null, 8, Ce)) : g("", !0)
426
+ }, null, 8, He)) : g("", !0)
435
427
  ]));
436
428
  }
437
429
  }), Fe = {
@@ -465,8 +457,8 @@ ${s.value}` : "") : s.value);
465
457
  isProgress: { type: Boolean }
466
458
  },
467
459
  setup(t) {
468
- const e = t, s = b(() => e.href ? "a" : "button"), n = b(() => e.isSubmit ? "submit" : void 0);
469
- return (a, o) => (u(), M(le(s.value), {
460
+ const e = t, s = h(() => e.href ? "a" : "button"), n = h(() => e.isSubmit ? "submit" : void 0);
461
+ return (a, o) => (u(), M(re(s.value), {
470
462
  class: w({
471
463
  "top-active": a.isActive,
472
464
  "top-disabled": a.disabled,
@@ -490,7 +482,7 @@ ${s.value}` : "") : s.value);
490
482
  default: D(() => [
491
483
  a.$slots.default ? (u(), m("span", Ye, [
492
484
  k(a.$slots, "default", {}, () => [
493
- de(W(a.icon ? "" : "Button"), 1)
485
+ le(W(a.icon ? "" : "Button"), 1)
494
486
  ])
495
487
  ])) : g("", !0),
496
488
  k(a.$slots, "html")
@@ -498,11 +490,11 @@ ${s.value}` : "") : s.value);
498
490
  _: 3
499
491
  }, 8, ["class", "name", "title", "href", "type", "data-top-icon", "data-top-icon2", "disabled", "inProgress"]));
500
492
  }
501
- }), qe = "_progress_1hqxk_1", Ge = {
493
+ }), Ge = "_progress_1f1nw_1", Ke = {
502
494
  "top-button": "top-button",
503
495
  "top-active": "top-active",
504
496
  "top-button-progress": "top-button-progress",
505
- progress: qe,
497
+ progress: Ge,
506
498
  "top-button-withoutText": "top-button-withoutText",
507
499
  "top-color_blue": "top-color_blue",
508
500
  "top-color_green": "top-color_green",
@@ -515,16 +507,16 @@ ${s.value}` : "") : s.value);
515
507
  "top-style_transparent": "top-style_transparent",
516
508
  "top-size_l": "top-size_l",
517
509
  "top-size_xl": "top-size_xl"
518
- }, Ke = {
519
- $style: Ge
520
- }, co = /* @__PURE__ */ v(Xe, [["__cssModules", Ke]]), Qe = { class: "top-forms-optionLabel" }, Je = /* @__PURE__ */ y({
510
+ }, Qe = {
511
+ $style: Ke
512
+ }, co = /* @__PURE__ */ v(Xe, [["__cssModules", Qe]]), qe = { class: "top-forms-optionLabel" }, Je = /* @__PURE__ */ y({
521
513
  __name: "controlLabel",
522
514
  props: {
523
515
  description: {},
524
516
  disabled: { type: Boolean }
525
517
  },
526
518
  setup(t) {
527
- return (e, s) => (u(), m("div", Qe, [
519
+ return (e, s) => (u(), m("div", qe, [
528
520
  _("div", {
529
521
  class: w({
530
522
  "top-forms-optionLabel_title": !0,
@@ -549,7 +541,7 @@ ${s.value}` : "") : s.value);
549
541
  $style: Ze
550
542
  }, U = /* @__PURE__ */ v(Je, [["__cssModules", je]]), xe = ["name", "value", "indeterminate", "disabled"], et = /* @__PURE__ */ y({
551
543
  __name: "checkbox",
552
- props: /* @__PURE__ */ C({
544
+ props: /* @__PURE__ */ H({
553
545
  modelValue: { type: [Boolean, Array, Set] },
554
546
  name: {},
555
547
  value: {},
@@ -563,7 +555,7 @@ ${s.value}` : "") : s.value);
563
555
  }),
564
556
  emits: ["update:modelValue"],
565
557
  setup(t) {
566
- const e = se(t, "modelValue");
558
+ const e = oe(t, "modelValue");
567
559
  return (s, n) => (u(), m("label", {
568
560
  class: w({
569
561
  "top-forms-optionWrapper": !0,
@@ -587,7 +579,7 @@ ${s.value}` : "") : s.value);
587
579
  indeterminate: s.indeterminate,
588
580
  disabled: s.disabled
589
581
  }, null, 10, xe), [
590
- [ne, e.value]
582
+ [se, e.value]
591
583
  ]),
592
584
  s.$slots.default ? (u(), M(U, {
593
585
  key: 0,
@@ -624,7 +616,7 @@ ${s.value}` : "") : s.value);
624
616
  }, it = {
625
617
  $style: at
626
618
  }, rt = /* @__PURE__ */ v(nt, [["__cssModules", it]]), lt = ["modelValue"], dt = !!document.documentElement.ontouchstart && !!document.createElement("input").showPicker;
627
- let j = (t) => {
619
+ let Z = (t) => {
628
620
  };
629
621
  const pt = /* @__PURE__ */ y({
630
622
  __name: "inputDate",
@@ -646,39 +638,39 @@ const pt = /* @__PURE__ */ y({
646
638
  emits: ["update:modelValue"],
647
639
  setup(t, { emit: e }) {
648
640
  const s = t, n = e;
649
- pe(() => {
641
+ de(() => {
650
642
  o && o.datepicker("destroy");
651
643
  });
652
- const a = ue();
644
+ const a = pe();
653
645
  let o;
654
- const i = b({
646
+ const i = h({
655
647
  get() {
656
648
  return L(s.modelValue, 2, void 0, "0000-00-00");
657
649
  },
658
650
  set(d) {
659
- d = Z(d, "0000-00-00"), n("update:modelValue", d);
651
+ d = J(d, "0000-00-00"), n("update:modelValue", d);
660
652
  }
661
653
  });
662
654
  let l = (d) => {
663
- j(d);
655
+ Z(d);
664
656
  }, f = (d) => {
665
- const c = Z(d.target.value), h = L(c);
666
- if (!h || h === p.L.Not_date || d.target.value !== h) {
657
+ const c = J(d.target.value), b = L(c);
658
+ if (!b || b === p.L.Not_date || d.target.value !== b) {
667
659
  d.target.value = i.value;
668
660
  return;
669
661
  }
670
662
  i.value = d.target.value;
671
663
  };
672
664
  async function r(d) {
673
- const c = await import("./datepicker-DwZTG-k0.es.js");
674
- j = c.oninput, o = c.connectDatepicker(d.target, {
665
+ const c = await import("./datepicker-BfPBssvK.es.js");
666
+ Z = c.oninput, o = c.connectDatepicker(d.target, {
675
667
  onSelect: () => f(d)
676
668
  }), o && o.datepicker("show");
677
669
  }
678
- return (d, c) => B(dt) ? (u(), M(B(x), A({ key: 0 }, d.$props, {
670
+ return (d, c) => B(dt) ? (u(), M(B(j), A({ key: 0 }, d.$props, {
679
671
  modelValue: i.value,
680
672
  readonly: "",
681
- onClick: c[1] || (c[1] = (h) => a.value.showPicker())
673
+ onClick: c[1] || (c[1] = (b) => a.value.showPicker())
682
674
  }), {
683
675
  default: D(() => [
684
676
  _("input", {
@@ -687,14 +679,14 @@ const pt = /* @__PURE__ */ y({
687
679
  type: "date",
688
680
  class: "top-input_input-date",
689
681
  modelValue: d.modelValue,
690
- onChange: c[0] || (c[0] = (h) => i.value = h.target.value),
682
+ onChange: c[0] || (c[0] = (b) => i.value = b.target.value),
691
683
  tabindex: "-1"
692
684
  }, null, 40, lt)
693
685
  ]),
694
686
  _: 1
695
- }, 16, ["modelValue"])) : (u(), M(B(x), A({ key: 1 }, d.$props, {
687
+ }, 16, ["modelValue"])) : (u(), M(B(j), A({ key: 1 }, d.$props, {
696
688
  modelValue: i.value,
697
- "onUpdate:modelValue": c[2] || (c[2] = (h) => h === "" ? i.value = "" : ""),
689
+ "onUpdate:modelValue": c[2] || (c[2] = (b) => b === "" ? i.value = "" : ""),
698
690
  onInput: B(l),
699
691
  onFocusOnce: r,
700
692
  onChange: B(f),
@@ -706,7 +698,7 @@ const pt = /* @__PURE__ */ y({
706
698
  "top-input_input-date": "top-input_input-date"
707
699
  }, ct = {
708
700
  $style: ut
709
- }, fo = /* @__PURE__ */ v(pt, [["__cssModules", ct]]), mt = { class: "top-inputRange" }, ft = /* @__PURE__ */ _("span", { class: "top-inputRange_dash" }, " — ", -1), ht = /* @__PURE__ */ y({
701
+ }, fo = /* @__PURE__ */ v(pt, [["__cssModules", ct]]), mt = { class: "top-inputRange" }, ft = /* @__PURE__ */ _("span", { class: "top-inputRange_dash" }, " — ", -1), bt = /* @__PURE__ */ y({
710
702
  __name: "inputRange",
711
703
  setup(t) {
712
704
  return (e, s) => (u(), m("div", mt, [
@@ -715,13 +707,13 @@ const pt = /* @__PURE__ */ y({
715
707
  k(e.$slots, "to")
716
708
  ]));
717
709
  }
718
- }), bt = {
710
+ }), ht = {
719
711
  "top-inputRange": "top-inputRange",
720
712
  "top-inputRange_dash": "top-inputRange_dash",
721
713
  "top-input": "top-input"
722
714
  }, gt = {
723
- $style: bt
724
- }, ho = /* @__PURE__ */ v(ht, [["__cssModules", gt]]), wt = ["name", "value", "disabled"], vt = /* @__PURE__ */ y({
715
+ $style: ht
716
+ }, bo = /* @__PURE__ */ v(bt, [["__cssModules", gt]]), wt = ["name", "value", "disabled"], vt = /* @__PURE__ */ y({
725
717
  __name: "radio",
726
718
  props: {
727
719
  modelValue: {},
@@ -733,7 +725,7 @@ const pt = /* @__PURE__ */ y({
733
725
  },
734
726
  emits: ["update:modelValue"],
735
727
  setup(t, { emit: e }) {
736
- const s = t, n = e, a = b({
728
+ const s = t, n = e, a = h({
737
729
  get() {
738
730
  return s.modelValue;
739
731
  },
@@ -763,7 +755,7 @@ const pt = /* @__PURE__ */ y({
763
755
  value: o.value,
764
756
  disabled: o.disabled
765
757
  }, null, 10, wt), [
766
- [ce, a.value]
758
+ [ue, a.value]
767
759
  ]),
768
760
  o.$slots.default ? (u(), M(U, {
769
761
  key: 0,
@@ -783,7 +775,7 @@ const pt = /* @__PURE__ */ y({
783
775
  "top-error": "top-error"
784
776
  }, _t = {
785
777
  $style: yt
786
- }, bo = /* @__PURE__ */ v(vt, [["__cssModules", _t]]), $t = ["name", "value", "disabled"], St = /* @__PURE__ */ y({
778
+ }, ho = /* @__PURE__ */ v(vt, [["__cssModules", _t]]), $t = ["name", "value", "disabled"], St = /* @__PURE__ */ y({
787
779
  __name: "switcher",
788
780
  props: {
789
781
  modelValue: { type: [Boolean, Array, Set] },
@@ -795,7 +787,7 @@ const pt = /* @__PURE__ */ y({
795
787
  },
796
788
  emits: ["update:modelValue"],
797
789
  setup(t, { emit: e }) {
798
- const s = t, n = e, a = b({
790
+ const s = t, n = e, a = h({
799
791
  get() {
800
792
  return s.modelValue;
801
793
  },
@@ -824,7 +816,7 @@ const pt = /* @__PURE__ */ y({
824
816
  value: o.value,
825
817
  disabled: o.disabled
826
818
  }, null, 10, $t), [
827
- [ne, a.value]
819
+ [se, a.value]
828
820
  ]),
829
821
  o.$slots.default ? (u(), M(U, {
830
822
  key: 0,
@@ -864,10 +856,10 @@ const pt = /* @__PURE__ */ y({
864
856
  },
865
857
  emits: ["update:modelValue"],
866
858
  setup(t, { emit: e }) {
867
- oe((o) => ({
868
- c35baa86: o.minHeight + "px"
859
+ te((o) => ({
860
+ "6e3fbb58": o.minHeight + "px"
869
861
  }));
870
- const s = t, n = e, a = b({
862
+ const s = t, n = e, a = h({
871
863
  get() {
872
864
  return s.modelValue;
873
865
  },
@@ -876,7 +868,7 @@ const pt = /* @__PURE__ */ y({
876
868
  }
877
869
  });
878
870
  return (o, i) => {
879
- const l = me("top-tooltip");
871
+ const l = ce("top-tooltip");
880
872
  return u(), m("label", {
881
873
  class: w({
882
874
  "top-textarea": !0,
@@ -901,7 +893,7 @@ const pt = /* @__PURE__ */ y({
901
893
  }, o.$attrs, {
902
894
  "onUpdate:modelValue": i[0] || (i[0] = (f) => a.value = f)
903
895
  }), null, 16, Vt), [
904
- [ae, a.value]
896
+ [ne, a.value]
905
897
  ]),
906
898
  o.expandable ? (u(), m("div", Wt, W(a.value + " "), 1)) : g("", !0),
907
899
  o.hint ? T((u(), M(rt, {
@@ -927,7 +919,7 @@ const pt = /* @__PURE__ */ y({
927
919
  class: "top-formsCaption"
928
920
  }, At = /* @__PURE__ */ y({
929
921
  __name: "select",
930
- props: /* @__PURE__ */ C({
922
+ props: /* @__PURE__ */ H({
931
923
  modelValue: {},
932
924
  options: {},
933
925
  name: {},
@@ -943,20 +935,20 @@ const pt = /* @__PURE__ */ y({
943
935
  },
944
936
  modelModifiers: {}
945
937
  }),
946
- emits: /* @__PURE__ */ C(["update:modelValue"], ["update:modelValue"]),
938
+ emits: /* @__PURE__ */ H(["update:modelValue"], ["update:modelValue"]),
947
939
  setup(t, { emit: e }) {
948
- const s = t, n = se(t, "modelValue"), a = b(() => {
940
+ const s = t, n = oe(t, "modelValue"), a = h(() => {
949
941
  const r = /* @__PURE__ */ new Map();
950
942
  return s.options.forEach((d, c) => {
951
943
  if (typeof d == "string" && (d = i(c, d)), d.children) {
952
- const h = /* @__PURE__ */ new Map();
944
+ const b = /* @__PURE__ */ new Map();
953
945
  d.children.forEach((S, N) => {
954
- typeof S == "string" && (S = i(N, S)), h.set(S.value, S);
955
- }), d = { ...d }, d.children = h, r.set(d.value, d);
946
+ typeof S == "string" && (S = i(N, S)), b.set(S.value, S);
947
+ }), d = { ...d }, d.children = b, r.set(d.value, d);
956
948
  } else
957
949
  r.set(d.value, d);
958
950
  }), r;
959
- }), o = b(() => {
951
+ }), o = h(() => {
960
952
  const r = /* @__PURE__ */ new Map();
961
953
  return a.value.forEach((d) => {
962
954
  if (!d.disabled) {
@@ -973,13 +965,13 @@ const pt = /* @__PURE__ */ y({
973
965
  value: r,
974
966
  title: d
975
967
  });
976
- fe([
968
+ me([
977
969
  () => s.modelValue,
978
970
  o
979
971
  ], () => {
980
972
  (n.value === null || n.value === void 0) && o.value.size && (console.warn("Пожалуйста, не передавайте в компонент Select значения null и undefined"), n.value = o.value.keys().next().value);
981
973
  }, { immediate: !0 });
982
- const l = b(() => {
974
+ const l = h(() => {
983
975
  var r;
984
976
  return (r = o.value.get(n.value)) == null ? void 0 : r.icon;
985
977
  }), f = () => {
@@ -1010,13 +1002,13 @@ const pt = /* @__PURE__ */ y({
1010
1002
  disabled: r.disabled,
1011
1003
  "onUpdate:modelValue": d[0] || (d[0] = (c) => n.value = c)
1012
1004
  }, [
1013
- (u(!0), m(O, null, X(a.value, ([c, h]) => (u(), m(O, null, [
1014
- h.children ? (u(), m("optgroup", {
1005
+ (u(!0), m(O, null, X(a.value, ([c, b]) => (u(), m(O, null, [
1006
+ b.children ? (u(), m("optgroup", {
1015
1007
  key: "group_" + c,
1016
- label: h.title,
1017
- disabled: h.disabled
1008
+ label: b.title,
1009
+ disabled: b.disabled
1018
1010
  }, [
1019
- (u(!0), m(O, null, X(h.children, ([S, N]) => (u(), m("option", {
1011
+ (u(!0), m(O, null, X(b.children, ([S, N]) => (u(), m("option", {
1020
1012
  key: S,
1021
1013
  value: S,
1022
1014
  selected: S === n.value,
@@ -1026,11 +1018,11 @@ const pt = /* @__PURE__ */ y({
1026
1018
  key: c ?? void 0,
1027
1019
  value: c,
1028
1020
  selected: c === n.value,
1029
- disabled: h.disabled
1030
- }, W(h.title), 9, Rt))
1021
+ disabled: b.disabled
1022
+ }, W(b.title), 9, Rt))
1031
1023
  ], 64))), 256))
1032
1024
  ], 10, zt), [
1033
- [he, n.value]
1025
+ [fe, n.value]
1034
1026
  ]),
1035
1027
  r.addChanger && o.value.size && !r.disabled ? (u(), m("span", {
1036
1028
  key: 0,
@@ -1045,20 +1037,20 @@ const pt = /* @__PURE__ */ y({
1045
1037
  "top-select-error": "top-select-error",
1046
1038
  "top-select_select": "top-select_select",
1047
1039
  "top-changer": "top-changer"
1048
- }, Ht = {
1040
+ }, Ct = {
1049
1041
  $style: Ot
1050
- }, vo = /* @__PURE__ */ v(At, [["__cssModules", Ht]]), Ct = {
1042
+ }, vo = /* @__PURE__ */ v(At, [["__cssModules", Ct]]), Ht = {
1051
1043
  "top-loadbar": "top-loadbar"
1052
1044
  }, It = {}, Ft = { class: "top-loadbar" };
1053
1045
  function Ut(t, e) {
1054
1046
  return u(), m("div", Ft);
1055
1047
  }
1056
1048
  const Yt = {
1057
- $style: Ct
1058
- }, Xt = /* @__PURE__ */ v(It, [["render", Ut], ["__cssModules", Yt]]), qt = ["data-top-icon", "data-top-icon2"], Gt = ["name", "title", "placeholder", "disabled", "readonly"], Kt = {
1049
+ $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 = {
1059
1051
  key: 2,
1060
1052
  class: "top-formsCaption"
1061
- }, Qt = /* @__PURE__ */ y({
1053
+ }, qt = /* @__PURE__ */ y({
1062
1054
  inheritAttrs: !1,
1063
1055
  __name: "input",
1064
1056
  props: {
@@ -1078,14 +1070,14 @@ const Yt = {
1078
1070
  },
1079
1071
  emits: ["update:modelValue"],
1080
1072
  setup(t, { emit: e }) {
1081
- const s = t, n = e, a = b({
1073
+ const s = t, n = e, a = h({
1082
1074
  get() {
1083
1075
  return s.modelValue;
1084
1076
  },
1085
1077
  set(l) {
1086
1078
  n("update:modelValue", l);
1087
1079
  }
1088
- }), o = b(() => s.addCleaner && !s.title || s.captionType !== "" ? "" : s.title), i = (l) => {
1080
+ }), o = h(() => s.addCleaner && !s.title || s.captionType !== "" ? "" : s.title), i = (l) => {
1089
1081
  s.modelValue && l.stopPropagation(), n("update:modelValue", "");
1090
1082
  };
1091
1083
  return (l, f) => (u(), m("label", {
@@ -1118,18 +1110,18 @@ const Yt = {
1118
1110
  disabled: l.disabled,
1119
1111
  readonly: l.readonly,
1120
1112
  onKeydown: f[1] || (f[1] = be((r) => (l.addCleaner || !!l.$slots.btn) && i(r), ["esc"]))
1121
- }, l.$attrs), null, 16, Gt), [
1122
- [ae, a.value]
1113
+ }, l.$attrs), null, 16, Kt), [
1114
+ [ne, a.value]
1123
1115
  ]),
1124
1116
  l.addCleaner && a.value && a.value !== "0000-00-00" ? (u(), m("span", {
1125
1117
  key: 1,
1126
1118
  class: "top-input_cleaner",
1127
1119
  "data-top-icon": "",
1128
- onClick: ge(i, ["prevent"])
1120
+ onClick: he(i, ["prevent"])
1129
1121
  })) : g("", !0),
1130
- l.captionType !== "" ? (u(), m("span", Kt, W(l.title), 1)) : g("", !0),
1122
+ l.captionType !== "" ? (u(), m("span", Qt, W(l.title), 1)) : g("", !0),
1131
1123
  k(l.$slots, "default")
1132
- ], 10, qt));
1124
+ ], 10, Gt));
1133
1125
  }
1134
1126
  }), Jt = {
1135
1127
  "top-input": "top-input",
@@ -1139,22 +1131,22 @@ const Yt = {
1139
1131
  "top-loadbar": "top-loadbar"
1140
1132
  }, Zt = {
1141
1133
  $style: Jt
1142
- }, x = /* @__PURE__ */ v(Qt, [["__cssModules", Zt]]);
1134
+ }, j = /* @__PURE__ */ v(qt, [["__cssModules", Zt]]);
1143
1135
  export {
1144
1136
  co as B,
1145
1137
  p as C,
1146
1138
  We as E,
1147
1139
  rt as H,
1148
- x as I,
1140
+ j as I,
1149
1141
  Xt as L,
1150
1142
  wo as T,
1151
- J as _,
1143
+ q as _,
1152
1144
  v as a,
1153
- we as b,
1154
- ve as c,
1145
+ ge as b,
1146
+ we as c,
1155
1147
  L as d,
1156
- ye as e,
1157
- _e as f,
1148
+ ve as e,
1149
+ ye as f,
1158
1150
  to as g,
1159
1151
  oo as h,
1160
1152
  eo as i,
@@ -1165,15 +1157,15 @@ export {
1165
1157
  ro as n,
1166
1158
  Ae as o,
1167
1159
  po as p,
1168
- Z as q,
1160
+ J as q,
1169
1161
  uo as r,
1170
1162
  lo as s,
1171
1163
  mo as t,
1172
1164
  U as u,
1173
1165
  fo as v,
1174
- ho as w,
1175
- bo as x,
1166
+ bo as w,
1167
+ ho as x,
1176
1168
  go as y,
1177
1169
  vo as z
1178
1170
  };
1179
- //# sourceMappingURL=forms-1ZAO_mt8.es.js.map
1171
+ //# sourceMappingURL=forms-BScWgSrn.es.js.map