@topvisor/ui 0.9.18 → 0.9.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/.chunks/{datepicker-C7YUpcvo.amd.js → datepicker-B9eprAyk.amd.js} +2 -2
  2. package/.chunks/{datepicker-C7YUpcvo.amd.js.map → datepicker-B9eprAyk.amd.js.map} +1 -1
  3. package/.chunks/{datepicker-Bv7QQgby.es.js → datepicker-C86O1mQq.es.js} +2 -2
  4. package/.chunks/{datepicker-Bv7QQgby.es.js.map → datepicker-C86O1mQq.es.js.map} +1 -1
  5. package/.chunks/{forms-_rDwj89q.amd.js → forms-DkNAMd-D.amd.js} +3 -3
  6. package/.chunks/forms-DkNAMd-D.amd.js.map +1 -0
  7. package/.chunks/{forms-C4Cwecin.es.js → forms-gb7uf2K8.es.js} +159 -159
  8. package/.chunks/forms-gb7uf2K8.es.js.map +1 -0
  9. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-HTufWVek.amd.js → listItem.vue_vue_type_script_setup_true_lang-2TAzIZZA.amd.js} +2 -2
  10. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-HTufWVek.amd.js.map → listItem.vue_vue_type_script_setup_true_lang-2TAzIZZA.amd.js.map} +1 -1
  11. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-Bdn15bn4.es.js → listItem.vue_vue_type_script_setup_true_lang-Caw4oFU-.es.js} +2 -2
  12. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-Bdn15bn4.es.js.map → listItem.vue_vue_type_script_setup_true_lang-Caw4oFU-.es.js.map} +1 -1
  13. package/.chunks/{popup-DFeFrj9j.es.js → popup-B-BAfp1v.es.js} +5 -3
  14. package/.chunks/popup-B-BAfp1v.es.js.map +1 -0
  15. package/.chunks/{popup-DsGIUjVp.amd.js → popup-CV5MPPEu.amd.js} +5 -3
  16. package/.chunks/popup-CV5MPPEu.amd.js.map +1 -0
  17. package/.chunks/{widgetInput-VXzd43n4.amd.js → widgetInput-BxO9y9L7.amd.js} +2 -2
  18. package/.chunks/widgetInput-BxO9y9L7.amd.js.map +1 -0
  19. package/.chunks/{widgetInput-CRzxG31N.es.js → widgetInput-DPOH_qya.es.js} +9 -9
  20. package/.chunks/{widgetInput-CRzxG31N.es.js.map → widgetInput-DPOH_qya.es.js.map} +1 -1
  21. package/core/core.amd.js +1 -1
  22. package/core/core.js +1 -1
  23. package/forms/forms.amd.js +1 -1
  24. package/forms/forms.js +1 -1
  25. package/formsExt/formsExt.amd.js +1 -1
  26. package/formsExt/formsExt.js +3 -3
  27. package/package.json +1 -1
  28. package/popup/popup.amd.js +1 -1
  29. package/popup/popup.js +2 -2
  30. package/popup/worker.amd.js +1 -1
  31. package/popup/worker.js +2 -2
  32. package/src/core/utils/window.d.ts +1 -1
  33. package/tabs/tabs.amd.js +1 -1
  34. package/tabs/tabs.js +1 -1
  35. package/tabsView/tabsView.amd.js +1 -1
  36. package/tabsView/tabsView.js +2 -2
  37. package/utils/date.amd.js +1 -1
  38. package/utils/date.js +1 -1
  39. package/utils/device.amd.js +1 -1
  40. package/utils/device.js +3 -3
  41. package/utils/scroll.amd.js +1 -1
  42. package/utils/scroll.amd.js.map +1 -1
  43. package/utils/scroll.js +1 -1
  44. package/utils/scroll.js.map +1 -1
  45. package/utils/window.amd.js +1 -1
  46. package/utils/window.js +2 -2
  47. package/.chunks/forms-C4Cwecin.es.js.map +0 -1
  48. package/.chunks/forms-_rDwj89q.amd.js.map +0 -1
  49. package/.chunks/popup-DFeFrj9j.es.js.map +0 -1
  50. package/.chunks/popup-DsGIUjVp.amd.js.map +0 -1
  51. package/.chunks/widgetInput-VXzd43n4.amd.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { insertToPage as Z } from "../utils/css.js";
2
- import { reactive as N, defineComponent as _, useCssVars as q, computed as $, openBlock as u, createElementBlock as m, createElementVNode as w, createCommentVNode as v, createBlock as S, resolveDynamicComponent as ee, normalizeClass as y, withCtx as z, renderSlot as M, createTextVNode as te, toDisplayString as V, mergeModels as C, useModel as Q, withDirectives as B, vModelCheckbox as X, unref as L, mergeProps as F, withKeys as oe, vModelText as J, withModifiers as ae, onUnmounted as se, ref as ne, vModelRadio as ie, resolveDirective as le, watch as re, Fragment as D, renderList as O, vModelSelect as de } from "vue";
2
+ import { reactive as W, defineComponent as w, useCssVars as q, computed as g, openBlock as u, createElementBlock as m, createElementVNode as $, createCommentVNode as h, createBlock as M, resolveDynamicComponent as ee, normalizeClass as v, withCtx as L, renderSlot as k, createTextVNode as te, toDisplayString as S, mergeModels as A, useModel as Q, withDirectives as V, vModelCheckbox as X, unref as B, mergeProps as T, withKeys as oe, vModelText as J, withModifiers as ae, onUnmounted as se, ref as ne, vModelRadio as ie, resolveDirective as le, watch as re, Fragment as R, renderList as N, vModelSelect as de } from "vue";
3
3
  const x = ["../assets/forms.css"].map((a) => import.meta.resolve(a));
4
4
  await Z(x);
5
5
  function pe() {
@@ -25,23 +25,23 @@ function It() {
25
25
  class fe {
26
26
  }
27
27
  const be = 100;
28
- let H;
29
- const P = /* @__PURE__ */ new Map(), T = {
28
+ let O;
29
+ const C = /* @__PURE__ */ new Map(), E = {
30
30
  width: window.innerWidth,
31
31
  height: window.innerHeight
32
32
  };
33
33
  function he(a) {
34
- P.set(a, a);
34
+ C.set(a, a);
35
35
  }
36
36
  function ve(a) {
37
- P.delete(a);
37
+ C.delete(a);
38
38
  }
39
39
  function ye(a) {
40
- clearTimeout(H), H = setTimeout(function() {
40
+ clearTimeout(O), O = setTimeout(function() {
41
41
  a.topEvent = {
42
- widthDiff: T.width - window.innerWidth,
43
- hightDiff: T.height - window.innerHeight
44
- }, T.width = window.innerWidth, T.height = window.innerHeight, P.forEach((t) => t(a));
42
+ widthDiff: E.width - window.innerWidth,
43
+ hightDiff: E.height - window.innerHeight
44
+ }, E.width = window.innerWidth, E.height = window.innerHeight, C.forEach((t) => t(a));
45
45
  }, be);
46
46
  }
47
47
  window.addEventListener("resize", ye);
@@ -50,7 +50,7 @@ const ge = {
50
50
  removeOnResize: ve
51
51
  };
52
52
  var G;
53
- const $e = {
53
+ const we = {
54
54
  widthForMobile: 900,
55
55
  dateFormat: "Y-m-d",
56
56
  /**
@@ -59,7 +59,7 @@ const $e = {
59
59
  gmt: (G = (/* @__PURE__ */ new Date()).toString().match(/GMT(\S+)/)) == null ? void 0 : G[1]
60
60
  };
61
61
  var K;
62
- const _e = {
62
+ const $e = {
63
63
  /**
64
64
  * Device by size
65
65
  * @see widthForMobile
@@ -90,28 +90,28 @@ const _e = {
90
90
  dateFormat: "Y-m-d",
91
91
  // См. core.options
92
92
  gmt: (K = (/* @__PURE__ */ new Date()).toString().match(/GMT(\S+)/)) == null ? void 0 : K[1]
93
- }, A = (a) => {
93
+ }, D = (a) => {
94
94
  var t, o;
95
95
  if (!((o = (t = p.$) == null ? void 0 : t.ui) != null && o.tooltip)) {
96
96
  console.info("Для работы v-top-tooltip требуется глобальная загрузка jQuery UI Tooltip");
97
97
  return;
98
98
  }
99
99
  return p.$(a);
100
- }, I = (a, t) => {
100
+ }, H = (a, t) => {
101
101
  var s;
102
102
  const o = a.value ?? {};
103
103
  return o.content ??= (s = t.props) == null ? void 0 : s.title, o.content = String(o.content).replace(/\r\n|\r|\n/g, "<br>"), o.position ??= {
104
104
  my: "bottom-18px",
105
105
  at: "top center"
106
106
  }, o;
107
- }, we = {
107
+ }, _e = {
108
108
  mounted(a, t, o) {
109
109
  var s;
110
- (s = A(a)) == null || s.tooltip(I(t, o));
110
+ (s = D(a)) == null || s.tooltip(H(t, o));
111
111
  },
112
112
  updated(a, t, o, s) {
113
113
  var d;
114
- const n = I(t, o), e = (d = A(a)) == null ? void 0 : d.tooltip("instance");
114
+ const n = H(t, o), e = (d = D(a)) == null ? void 0 : d.tooltip("instance");
115
115
  e && (e.options = {
116
116
  ...e.options,
117
117
  ...n
@@ -119,22 +119,22 @@ const _e = {
119
119
  },
120
120
  unmounted(a, t, o) {
121
121
  var s;
122
- (s = A(a)) == null || s.tooltip("destroy");
122
+ (s = D(a)) == null || s.tooltip("destroy");
123
123
  }
124
- }, ke = () => typeof h > "u" ? {} : h, h = ke();
124
+ }, ke = () => typeof window > "u" ? {} : window, I = ke();
125
125
  class p {
126
126
  /**
127
127
  * Настройки словаря
128
128
  */
129
- static L = N({
129
+ static L = W({
130
130
  Not_date: "Not date"
131
131
  });
132
- static page = h.page ?? {};
132
+ static page = I.page ?? {};
133
133
  static Page = fe;
134
- static options = $e;
135
- static state = N({ ..._e });
134
+ static options = we;
135
+ static state = W({ ...$e });
136
136
  static matchMediaIsMobile;
137
- static $ = h.$;
137
+ static $ = I.$;
138
138
  /**
139
139
  * Добавить на страницу стили, используется для загрузки стилей из js
140
140
  *
@@ -159,7 +159,7 @@ class p {
159
159
  p.defineOptions(o), t.provide("top-core", p), this.installDirectives(t);
160
160
  }
161
161
  static installDirectives(t) {
162
- t.directive("top-tooltip", we);
162
+ t.directive("top-tooltip", _e);
163
163
  }
164
164
  /**
165
165
  * Установить конфигурацию UI
@@ -169,14 +169,14 @@ class p {
169
169
  t != null && t.widthForMobile && (this.options.widthForMobile = t.widthForMobile), t != null && t.dateFormat && (this.options.dateFormat = t.dateFormat), t != null && t.gmt && (this.options.gmt = t.gmt), p.setState();
170
170
  }
171
171
  static setState() {
172
- p.matchMediaIsMobile = h.matchMedia(`(max-width: ${p.options.widthForMobile}px)`), p.state.isMobileUA = ue(), p.state.isRetina = pe(), p.state.isApp = ce(), p.state.dateFormat = this.options.dateFormat, p.state.gmt = this.options.gmt, p.setStateByWindowSize(), ge.addOnReize(p.onResize), p.onResize(), p.saveToCookie();
172
+ p.matchMediaIsMobile = window.matchMedia(`(max-width: ${p.options.widthForMobile}px)`), p.state.isMobileUA = ue(), p.state.isRetina = pe(), p.state.isApp = ce(), p.state.dateFormat = this.options.dateFormat, p.state.gmt = this.options.gmt, p.setStateByWindowSize(), ge.addOnReize(p.onResize), p.onResize(), p.saveToCookie();
173
173
  }
174
174
  static onResize() {
175
- p.setStateByWindowSize(), document.documentElement.style.setProperty("--100vh", h.innerHeight + "px");
175
+ p.setStateByWindowSize(), document.documentElement.style.setProperty("--100vh", window.innerHeight + "px");
176
176
  }
177
177
  static setStateByWindowSize() {
178
178
  var t;
179
- p.state.isMobile = !!((t = p.matchMediaIsMobile) != null && t.matches), p.state.isLandscape = h.innerWidth > h.innerHeight, p.state.isPortrait = !p.state.isLandscape, p.state.size = h.innerWidth > h.innerHeight ? h.innerWidth : h.innerHeight, p.saveToCookie();
179
+ p.state.isMobile = !!((t = p.matchMediaIsMobile) != null && t.matches), p.state.isLandscape = window.innerWidth > window.innerHeight, p.state.isPortrait = !p.state.isLandscape, p.state.size = window.innerWidth > window.innerHeight ? window.innerWidth : window.innerHeight, p.saveToCookie();
180
180
  }
181
181
  /**
182
182
  * Сохранить информацию об устройстве в cookie
@@ -184,9 +184,9 @@ class p {
184
184
  static saveToCookie() {
185
185
  const t = [
186
186
  1,
187
- h.innerWidth,
188
- h.innerHeight,
189
- h.devicePixelRatio,
187
+ window.innerWidth,
188
+ window.innerHeight,
189
+ window.devicePixelRatio,
190
190
  Number(p.state.isMobile),
191
191
  Number(p.state.isRetina)
192
192
  ];
@@ -200,9 +200,9 @@ function Me(a = void 0, t = !0, o = 0) {
200
200
  let s;
201
201
  a != null ? s = new Date(a) : s = /* @__PURE__ */ new Date();
202
202
  const n = s.getFullYear(), e = String(s.getMonth() + 1).padStart(2, "0"), d = s.getDate().toString().padStart(2, "0"), l = s.getHours().toString().padStart(2, "0"), f = s.getMinutes().toString().padStart(2, "0"), r = s.getSeconds().toString().padStart(2, "0");
203
- return s = n + "-" + e + "-" + d, o && (s += " "), o >= 1 && (s += l), o >= 2 && (s += ":" + f), o >= 3 && (s += ":" + r), t && (s = R(s, o)), s;
203
+ return s = n + "-" + e + "-" + d, o && (s += " "), o >= 1 && (s += l), o >= 2 && (s += ":" + f), o >= 3 && (s += ":" + r), t && (s = F(s, o)), s;
204
204
  }
205
- function R(a, t = 2, o = p.L.Not_date) {
205
+ function F(a, t = 2, o = p.L.Not_date) {
206
206
  if ((!a || a.substring(0, 10) === "0000-00-00") && o && o !== "0000-00-00")
207
207
  return o;
208
208
  const s = p.state.dateFormat.toLowerCase();
@@ -249,7 +249,7 @@ function U(a, t = p.L.Not_date) {
249
249
  let f = l + "-" + d + "-" + e;
250
250
  return f.match(/\d\d\d\d-\d\d-\d\d/) || (console.info("Неверный формат даты, будет возращена текущая дата, " + f), f = Me((/* @__PURE__ */ new Date()).getTime(), !1).substring(0, 10)), f;
251
251
  }
252
- const Se = { class: "top-avatar" }, Ve = ["src", "title"], Be = ["title"], Le = /* @__PURE__ */ _({
252
+ const Se = { class: "top-avatar" }, Ve = ["src", "title"], Be = ["title"], Le = /* @__PURE__ */ w({
253
253
  __name: "avatar",
254
254
  props: {
255
255
  size: { default: 64 },
@@ -267,14 +267,14 @@ const Se = { class: "top-avatar" }, Ve = ["src", "title"], Be = ["title"], Le =
267
267
  Online: "Онлайн",
268
268
  LastSeen: "Заходил(а)"
269
269
  }
270
- }, s = $(() => {
270
+ }, s = g(() => {
271
271
  if (t.isOnline)
272
272
  return o.user.Online;
273
273
  if (t.lastActiveTime)
274
- return o.user.LastSeen + ": " + R(t.lastActiveTime, 2);
274
+ return o.user.LastSeen + ": " + F(t.lastActiveTime, 2);
275
275
  });
276
276
  return (n, e) => (u(), m("div", Se, [
277
- w("img", {
277
+ $("img", {
278
278
  class: "top-avatar_image",
279
279
  src: n.image,
280
280
  title: t.nickname + (s.value ? `
@@ -285,24 +285,24 @@ ${s.value}` : ""),
285
285
  key: 0,
286
286
  class: "top-avatar_status",
287
287
  title: s.value
288
- }, null, 8, Be)) : v("", !0)
288
+ }, null, 8, Be)) : h("", !0)
289
289
  ]));
290
290
  }
291
291
  }), ze = {
292
292
  "top-avatar": "top-avatar",
293
293
  "top-avatar_image": "top-avatar_image",
294
294
  "top-avatar_status": "top-avatar_status"
295
- }, g = (a, t) => {
295
+ }, y = (a, t) => {
296
296
  const o = a.__vccOpts || a;
297
297
  for (const [s, n] of t)
298
298
  o[s] = n;
299
299
  return o;
300
300
  }, Ee = {
301
301
  $style: ze
302
- }, jt = /* @__PURE__ */ g(Le, [["__cssModules", Ee]]), Te = {
302
+ }, jt = /* @__PURE__ */ y(Le, [["__cssModules", Ee]]), Te = {
303
303
  key: 0,
304
304
  class: "top-ellipsis"
305
- }, Fe = /* @__PURE__ */ _({
305
+ }, Fe = /* @__PURE__ */ w({
306
306
  __name: "button",
307
307
  props: {
308
308
  color: { default: "blue" },
@@ -319,9 +319,9 @@ ${s.value}` : ""),
319
319
  isProgress: { type: Boolean }
320
320
  },
321
321
  setup(a) {
322
- const t = a, o = $(() => t.href ? "a" : "button"), s = $(() => t.isSubmit ? "submit" : void 0);
323
- return (n, e) => (u(), S(ee(o.value), {
324
- class: y({
322
+ const t = a, o = g(() => t.href ? "a" : "button"), s = g(() => t.isSubmit ? "submit" : void 0);
323
+ return (n, e) => (u(), M(ee(o.value), {
324
+ class: v({
325
325
  "top-active": n.isActive,
326
326
  "top-disabled": n.disabled,
327
327
  "top-forms-focusable": !n.disabled,
@@ -341,13 +341,13 @@ ${s.value}` : ""),
341
341
  disabled: n.disabled || void 0,
342
342
  inProgress: n.isProgress
343
343
  }, {
344
- default: z(() => [
344
+ default: L(() => [
345
345
  n.$slots.default ? (u(), m("span", Te, [
346
- M(n.$slots, "default", {}, () => [
347
- te(V(n.icon ? "" : "Button"), 1)
346
+ k(n.$slots, "default", {}, () => [
347
+ te(S(n.icon ? "" : "Button"), 1)
348
348
  ])
349
- ])) : v("", !0),
350
- M(n.$slots, "html")
349
+ ])) : h("", !0),
350
+ k(n.$slots, "html")
351
351
  ]),
352
352
  _: 3
353
353
  }, 8, ["class", "name", "title", "href", "type", "data-top-icon", "data-top-icon2", "disabled", "inProgress"]));
@@ -371,7 +371,7 @@ ${s.value}` : ""),
371
371
  "top-size_xl": "top-size_xl"
372
372
  }, Ae = {
373
373
  $style: De
374
- }, Yt = /* @__PURE__ */ g(Fe, [["__cssModules", Ae]]), Ce = { class: "top-forms-optionLabel" }, Pe = /* @__PURE__ */ _({
374
+ }, Yt = /* @__PURE__ */ y(Fe, [["__cssModules", Ae]]), Ce = { class: "top-forms-optionLabel" }, Pe = /* @__PURE__ */ w({
375
375
  __name: "controlLabel",
376
376
  props: {
377
377
  description: {},
@@ -379,18 +379,18 @@ ${s.value}` : ""),
379
379
  },
380
380
  setup(a) {
381
381
  return (t, o) => (u(), m("div", Ce, [
382
- w("div", {
383
- class: y({
382
+ $("div", {
383
+ class: v({
384
384
  "top-forms-optionLabel_title": !0,
385
385
  "top-forms-optionLabel_title-disabled": t.disabled
386
386
  })
387
387
  }, [
388
- M(t.$slots, "default")
388
+ k(t.$slots, "default")
389
389
  ], 2),
390
390
  t.description ? (u(), m("div", {
391
391
  key: 0,
392
- class: y(["top-forms-optionLabel_description", { "top-forms-optionLabel_description-disabled": t.disabled }])
393
- }, V(t.description), 3)) : v("", !0)
392
+ class: v(["top-forms-optionLabel_description", { "top-forms-optionLabel_description-disabled": t.disabled }])
393
+ }, S(t.description), 3)) : h("", !0)
394
394
  ]));
395
395
  }
396
396
  }), We = {
@@ -401,9 +401,9 @@ ${s.value}` : ""),
401
401
  "top-forms-optionLabel_description-disabled": "top-forms-optionLabel_description-disabled"
402
402
  }, Ne = {
403
403
  $style: We
404
- }, W = /* @__PURE__ */ g(Pe, [["__cssModules", Ne]]), Oe = ["name", "value", "indeterminate", "disabled"], He = /* @__PURE__ */ _({
404
+ }, P = /* @__PURE__ */ y(Pe, [["__cssModules", Ne]]), Oe = ["name", "value", "indeterminate", "disabled"], He = /* @__PURE__ */ w({
405
405
  __name: "checkbox",
406
- props: /* @__PURE__ */ C({
406
+ props: /* @__PURE__ */ A({
407
407
  modelValue: { type: [Boolean, Array, Set] },
408
408
  name: {},
409
409
  value: {},
@@ -419,7 +419,7 @@ ${s.value}` : ""),
419
419
  setup(a) {
420
420
  const t = Q(a, "modelValue");
421
421
  return (o, s) => (u(), m("label", {
422
- class: y({
422
+ class: v({
423
423
  "top-forms-optionWrapper": !0,
424
424
  "top-checkbox": !0,
425
425
  ["top-checkbox_" + o.name]: !!o.name,
@@ -427,9 +427,9 @@ ${s.value}` : ""),
427
427
  "top-error": o.isError && !o.disabled
428
428
  })
429
429
  }, [
430
- B(w("input", {
430
+ V($("input", {
431
431
  type: "checkbox",
432
- class: y({
432
+ class: v({
433
433
  "top-forms-focusable": !o.disabled,
434
434
  "top-forms-option": !0,
435
435
  "top-checkbox_input": !0,
@@ -443,16 +443,16 @@ ${s.value}` : ""),
443
443
  }, null, 10, Oe), [
444
444
  [X, t.value]
445
445
  ]),
446
- o.$slots.default ? (u(), S(W, {
446
+ o.$slots.default ? (u(), M(P, {
447
447
  key: 0,
448
448
  description: o.description,
449
449
  disabled: o.disabled
450
450
  }, {
451
- default: z(() => [
452
- M(o.$slots, "default")
451
+ default: L(() => [
452
+ k(o.$slots, "default")
453
453
  ]),
454
454
  _: 3
455
- }, 8, ["description", "disabled"])) : v("", !0)
455
+ }, 8, ["description", "disabled"])) : h("", !0)
456
456
  ], 2));
457
457
  }
458
458
  }), Ie = {
@@ -461,7 +461,7 @@ ${s.value}` : ""),
461
461
  "top-error": "top-error"
462
462
  }, Ue = {
463
463
  $style: Ie
464
- }, Gt = /* @__PURE__ */ g(He, [["__cssModules", Ue]]), je = ["title"], Ye = /* @__PURE__ */ _({
464
+ }, Gt = /* @__PURE__ */ y(He, [["__cssModules", Ue]]), je = ["title"], Ye = /* @__PURE__ */ w({
465
465
  __name: "hint",
466
466
  props: {
467
467
  hint: {}
@@ -477,10 +477,10 @@ ${s.value}` : ""),
477
477
  "top-hint": "top-hint"
478
478
  }, Ke = {
479
479
  $style: Ge
480
- }, qe = /* @__PURE__ */ g(Ye, [["__cssModules", Ke]]), Qe = ["data-top-icon", "data-top-icon2"], Xe = ["name", "title", "placeholder", "disabled", "readonly"], Je = {
480
+ }, qe = /* @__PURE__ */ y(Ye, [["__cssModules", Ke]]), Qe = ["data-top-icon", "data-top-icon2"], Xe = ["name", "title", "placeholder", "disabled", "readonly"], Je = {
481
481
  key: 2,
482
482
  class: "top-formsCaption"
483
- }, Ze = /* @__PURE__ */ _({
483
+ }, Ze = /* @__PURE__ */ w({
484
484
  inheritAttrs: !1,
485
485
  __name: "input",
486
486
  props: {
@@ -500,18 +500,18 @@ ${s.value}` : ""),
500
500
  },
501
501
  emits: ["update:modelValue"],
502
502
  setup(a, { emit: t }) {
503
- const o = a, s = t, n = $({
503
+ const o = a, s = t, n = g({
504
504
  get() {
505
505
  return o.modelValue;
506
506
  },
507
507
  set(l) {
508
508
  s("update:modelValue", l);
509
509
  }
510
- }), e = $(() => o.addCleaner && !o.title || o.captionType !== "" ? "" : o.title), d = (l) => {
510
+ }), e = g(() => o.addCleaner && !o.title || o.captionType !== "" ? "" : o.title), d = (l) => {
511
511
  o.modelValue && l.stopPropagation(), s("update:modelValue", "");
512
512
  };
513
513
  return (l, f) => (u(), m("label", {
514
- class: y({
514
+ class: v({
515
515
  "top-input": !0,
516
516
  ["top-size_" + l.size]: !0,
517
517
  "top-disabled": l.disabled,
@@ -523,8 +523,8 @@ ${s.value}` : ""),
523
523
  "data-top-icon": l.icon,
524
524
  "data-top-icon2": l.icon2
525
525
  }, [
526
- l.isLoading ? (u(), S(L(Wt), { key: 0 })) : v("", !0),
527
- B(w("input", F({
526
+ l.isLoading ? (u(), M(B(Wt), { key: 0 })) : h("", !0),
527
+ V($("input", T({
528
528
  type: "text",
529
529
  class: {
530
530
  "top-input_input": !0,
@@ -548,9 +548,9 @@ ${s.value}` : ""),
548
548
  class: "top-input_cleaner",
549
549
  "data-top-icon": "",
550
550
  onClick: ae(d, ["prevent"])
551
- })) : v("", !0),
552
- l.captionType !== "" ? (u(), m("span", Je, V(l.title), 1)) : v("", !0),
553
- M(l.$slots, "default")
551
+ })) : h("", !0),
552
+ l.captionType !== "" ? (u(), m("span", Je, S(l.title), 1)) : h("", !0),
553
+ k(l.$slots, "default")
554
554
  ], 10, Qe));
555
555
  }
556
556
  }), xe = {
@@ -561,10 +561,10 @@ ${s.value}` : ""),
561
561
  "top-loadbar": "top-loadbar"
562
562
  }, et = {
563
563
  $style: xe
564
- }, j = /* @__PURE__ */ g(Ze, [["__cssModules", et]]), tt = ["modelValue"], ot = !!document.documentElement.ontouchstart && !!document.createElement("input").showPicker;
564
+ }, j = /* @__PURE__ */ y(Ze, [["__cssModules", et]]), tt = ["modelValue"], ot = !!document.documentElement.ontouchstart && !!document.createElement("input").showPicker;
565
565
  let Y = (a) => {
566
566
  };
567
- const at = /* @__PURE__ */ _({
567
+ const at = /* @__PURE__ */ w({
568
568
  __name: "inputDate",
569
569
  props: {
570
570
  modelValue: {},
@@ -589,9 +589,9 @@ const at = /* @__PURE__ */ _({
589
589
  });
590
590
  const n = ne();
591
591
  let e;
592
- const d = $({
592
+ const d = g({
593
593
  get() {
594
- return R(o.modelValue, 2, "0000-00-00");
594
+ return F(o.modelValue, 2, "0000-00-00");
595
595
  },
596
596
  set(i) {
597
597
  i = U(i, "0000-00-00"), s("update:modelValue", i);
@@ -600,7 +600,7 @@ const at = /* @__PURE__ */ _({
600
600
  let l = (i) => {
601
601
  Y(i);
602
602
  }, f = (i) => {
603
- const c = U(i.target.value), b = R(c);
603
+ const c = U(i.target.value), b = F(c);
604
604
  if (!b || b === p.L.Not_date || i.target.value !== b) {
605
605
  i.target.value = d.value;
606
606
  return;
@@ -608,18 +608,18 @@ const at = /* @__PURE__ */ _({
608
608
  d.value = i.target.value;
609
609
  };
610
610
  async function r(i) {
611
- const c = await import("./datepicker-Bv7QQgby.es.js");
611
+ const c = await import("./datepicker-C86O1mQq.es.js");
612
612
  Y = c.oninput, e = c.connectDatepicker(i.target, {
613
613
  onSelect: () => f(i)
614
614
  }), e && e.datepicker("show");
615
615
  }
616
- return (i, c) => L(ot) ? (u(), S(L(j), F({ key: 0 }, i.$props, {
616
+ return (i, c) => B(ot) ? (u(), M(B(j), T({ key: 0 }, i.$props, {
617
617
  modelValue: d.value,
618
618
  readonly: "",
619
619
  onClick: c[1] || (c[1] = (b) => n.value.showPicker())
620
620
  }), {
621
- default: z(() => [
622
- w("input", {
621
+ default: L(() => [
622
+ $("input", {
623
623
  ref_key: "el",
624
624
  ref: n,
625
625
  type: "date",
@@ -630,12 +630,12 @@ const at = /* @__PURE__ */ _({
630
630
  }, null, 40, tt)
631
631
  ]),
632
632
  _: 1
633
- }, 16, ["modelValue"])) : (u(), S(L(j), F({ key: 1 }, i.$props, {
633
+ }, 16, ["modelValue"])) : (u(), M(B(j), T({ key: 1 }, i.$props, {
634
634
  modelValue: d.value,
635
635
  "onUpdate:modelValue": c[2] || (c[2] = (b) => b === "" ? d.value = "" : ""),
636
- onInput: L(l),
636
+ onInput: B(l),
637
637
  onFocusOnce: r,
638
- onChange: L(f),
638
+ onChange: B(f),
639
639
  modificator: "datepicker"
640
640
  }), null, 16, ["modelValue", "onInput", "onChange"]));
641
641
  }
@@ -644,13 +644,13 @@ const at = /* @__PURE__ */ _({
644
644
  "top-input_input-date": "top-input_input-date"
645
645
  }, nt = {
646
646
  $style: st
647
- }, Kt = /* @__PURE__ */ g(at, [["__cssModules", nt]]), it = { class: "top-inputRange" }, lt = /* @__PURE__ */ w("span", { class: "top-inputRange_dash" }, " — ", -1), rt = /* @__PURE__ */ _({
647
+ }, Kt = /* @__PURE__ */ y(at, [["__cssModules", nt]]), it = { class: "top-inputRange" }, lt = /* @__PURE__ */ $("span", { class: "top-inputRange_dash" }, " — ", -1), rt = /* @__PURE__ */ w({
648
648
  __name: "inputRange",
649
649
  setup(a) {
650
650
  return (t, o) => (u(), m("div", it, [
651
- M(t.$slots, "from"),
651
+ k(t.$slots, "from"),
652
652
  lt,
653
- M(t.$slots, "to")
653
+ k(t.$slots, "to")
654
654
  ]));
655
655
  }
656
656
  }), dt = {
@@ -659,7 +659,7 @@ const at = /* @__PURE__ */ _({
659
659
  "top-input": "top-input"
660
660
  }, pt = {
661
661
  $style: dt
662
- }, qt = /* @__PURE__ */ g(rt, [["__cssModules", pt]]), ut = ["name", "value", "disabled"], ct = /* @__PURE__ */ _({
662
+ }, qt = /* @__PURE__ */ y(rt, [["__cssModules", pt]]), ut = ["name", "value", "disabled"], ct = /* @__PURE__ */ w({
663
663
  __name: "radio",
664
664
  props: {
665
665
  modelValue: {},
@@ -671,7 +671,7 @@ const at = /* @__PURE__ */ _({
671
671
  },
672
672
  emits: ["update:modelValue"],
673
673
  setup(a, { emit: t }) {
674
- const o = a, s = t, n = $({
674
+ const o = a, s = t, n = g({
675
675
  get() {
676
676
  return o.modelValue;
677
677
  },
@@ -680,7 +680,7 @@ const at = /* @__PURE__ */ _({
680
680
  }
681
681
  });
682
682
  return (e, d) => (u(), m("label", {
683
- class: y({
683
+ class: v({
684
684
  "top-forms-optionWrapper": !0,
685
685
  "top-radio": !0,
686
686
  ["top-radio_" + e.name]: e.name !== "",
@@ -688,9 +688,9 @@ const at = /* @__PURE__ */ _({
688
688
  "top-error": e.isError && !e.disabled
689
689
  })
690
690
  }, [
691
- B(w("input", {
691
+ V($("input", {
692
692
  type: "radio",
693
- class: y({
693
+ class: v({
694
694
  "top-forms-focusable": !e.disabled,
695
695
  "top-forms-option": !0,
696
696
  "top-radio_input": !0,
@@ -703,16 +703,16 @@ const at = /* @__PURE__ */ _({
703
703
  }, null, 10, ut), [
704
704
  [ie, n.value]
705
705
  ]),
706
- e.$slots.default ? (u(), S(W, {
706
+ e.$slots.default ? (u(), M(P, {
707
707
  key: 0,
708
708
  description: e.description,
709
709
  disabled: e.disabled
710
710
  }, {
711
- default: z(() => [
712
- M(e.$slots, "default")
711
+ default: L(() => [
712
+ k(e.$slots, "default")
713
713
  ]),
714
714
  _: 3
715
- }, 8, ["description", "disabled"])) : v("", !0)
715
+ }, 8, ["description", "disabled"])) : h("", !0)
716
716
  ], 2));
717
717
  }
718
718
  }), mt = {
@@ -721,7 +721,7 @@ const at = /* @__PURE__ */ _({
721
721
  "top-error": "top-error"
722
722
  }, ft = {
723
723
  $style: mt
724
- }, Qt = /* @__PURE__ */ g(ct, [["__cssModules", ft]]), bt = ["name", "value", "disabled"], ht = /* @__PURE__ */ _({
724
+ }, Qt = /* @__PURE__ */ y(ct, [["__cssModules", ft]]), bt = ["name", "value", "disabled"], ht = /* @__PURE__ */ w({
725
725
  __name: "switcher",
726
726
  props: {
727
727
  modelValue: { type: [Boolean, Array, Set] },
@@ -733,7 +733,7 @@ const at = /* @__PURE__ */ _({
733
733
  },
734
734
  emits: ["update:modelValue"],
735
735
  setup(a, { emit: t }) {
736
- const o = a, s = t, n = $({
736
+ const o = a, s = t, n = g({
737
737
  get() {
738
738
  return o.modelValue;
739
739
  },
@@ -742,16 +742,16 @@ const at = /* @__PURE__ */ _({
742
742
  }
743
743
  });
744
744
  return (e, d) => (u(), m("label", {
745
- class: y({
745
+ class: v({
746
746
  "top-forms-optionWrapper": !0,
747
747
  "top-checkboxSwitcher": !0,
748
748
  "top-disabled": e.disabled,
749
749
  "top-error": e.isError && !e.disabled
750
750
  })
751
751
  }, [
752
- B(w("input", {
752
+ V($("input", {
753
753
  type: "checkbox",
754
- class: y({
754
+ class: v({
755
755
  "top-forms-focusable": !e.disabled,
756
756
  "top-forms-option": !0,
757
757
  "top-checkboxSwitcher_input": !0,
@@ -764,16 +764,16 @@ const at = /* @__PURE__ */ _({
764
764
  }, null, 10, bt), [
765
765
  [X, n.value]
766
766
  ]),
767
- e.$slots.default ? (u(), S(W, {
767
+ e.$slots.default ? (u(), M(P, {
768
768
  key: 0,
769
769
  description: e.description,
770
770
  disabled: e.disabled
771
771
  }, {
772
- default: z(() => [
773
- M(e.$slots, "default")
772
+ default: L(() => [
773
+ k(e.$slots, "default")
774
774
  ]),
775
775
  _: 3
776
- }, 8, ["description", "disabled"])) : v("", !0)
776
+ }, 8, ["description", "disabled"])) : h("", !0)
777
777
  ], 2));
778
778
  }
779
779
  }), vt = {
@@ -782,10 +782,10 @@ const at = /* @__PURE__ */ _({
782
782
  "top-error": "top-error"
783
783
  }, yt = {
784
784
  $style: vt
785
- }, Xt = /* @__PURE__ */ g(ht, [["__cssModules", yt]]), gt = ["name", "placeholder", "disabled", "readonly", "rows"], $t = {
785
+ }, Xt = /* @__PURE__ */ y(ht, [["__cssModules", yt]]), gt = ["name", "placeholder", "disabled", "readonly", "rows"], wt = {
786
786
  key: 0,
787
787
  class: "top-textarea_pseudoContent"
788
- }, _t = /* @__PURE__ */ _({
788
+ }, $t = /* @__PURE__ */ w({
789
789
  inheritAttrs: !1,
790
790
  __name: "textarea",
791
791
  props: {
@@ -805,7 +805,7 @@ const at = /* @__PURE__ */ _({
805
805
  q((e) => ({
806
806
  c838a038: e.minHeight + "px"
807
807
  }));
808
- const o = a, s = t, n = $({
808
+ const o = a, s = t, n = g({
809
809
  get() {
810
810
  return o.modelValue;
811
811
  },
@@ -816,13 +816,13 @@ const at = /* @__PURE__ */ _({
816
816
  return (e, d) => {
817
817
  const l = le("top-tooltip");
818
818
  return u(), m("label", {
819
- class: y({
819
+ class: v({
820
820
  "top-textarea": !0,
821
821
  ["top-textarea-" + e.name]: e.name,
822
822
  "top-disabled": e.disabled
823
823
  })
824
824
  }, [
825
- B(w("textarea", F({
825
+ V($("textarea", T({
826
826
  type: "text",
827
827
  class: {
828
828
  "top-forms-focusable": !e.disabled,
@@ -841,31 +841,31 @@ const at = /* @__PURE__ */ _({
841
841
  }), null, 16, gt), [
842
842
  [J, n.value]
843
843
  ]),
844
- e.expandable ? (u(), m("div", $t, V(n.value + " "), 1)) : v("", !0),
845
- e.hint ? B((u(), S(qe, {
844
+ e.expandable ? (u(), m("div", wt, S(n.value + " "), 1)) : h("", !0),
845
+ e.hint ? V((u(), M(qe, {
846
846
  key: 1,
847
847
  class: "top-textarea_hint",
848
848
  hint: e.hint
849
849
  }, null, 8, ["hint"])), [
850
850
  [l]
851
- ]) : v("", !0)
851
+ ]) : h("", !0)
852
852
  ], 2);
853
853
  };
854
854
  }
855
- }), wt = {
855
+ }), _t = {
856
856
  "top-textarea": "top-textarea",
857
857
  "top-textarea_textarea": "top-textarea_textarea",
858
858
  "top-textarea_textarea-expandable": "top-textarea_textarea-expandable",
859
859
  "top-textarea_pseudoContent": "top-textarea_pseudoContent",
860
860
  "top-textarea_hint": "top-textarea_hint"
861
861
  }, kt = {
862
- $style: wt
863
- }, Jt = /* @__PURE__ */ g(_t, [["__cssModules", kt]]), Mt = ["data-value", "data-top-icon", "data-top-icon2"], St = ["name", "disabled"], Vt = ["label", "disabled"], Bt = ["value", "selected", "disabled"], Lt = ["value", "selected", "disabled"], zt = {
862
+ $style: _t
863
+ }, Jt = /* @__PURE__ */ y($t, [["__cssModules", kt]]), Mt = ["data-value", "data-top-icon", "data-top-icon2"], St = ["name", "disabled"], Vt = ["label", "disabled"], Bt = ["value", "selected", "disabled"], Lt = ["value", "selected", "disabled"], zt = {
864
864
  key: 1,
865
865
  class: "top-formsCaption"
866
- }, Et = /* @__PURE__ */ _({
866
+ }, Et = /* @__PURE__ */ w({
867
867
  __name: "select",
868
- props: /* @__PURE__ */ C({
868
+ props: /* @__PURE__ */ A({
869
869
  modelValue: {},
870
870
  options: {},
871
871
  name: {},
@@ -881,20 +881,20 @@ const at = /* @__PURE__ */ _({
881
881
  },
882
882
  modelModifiers: {}
883
883
  }),
884
- emits: /* @__PURE__ */ C(["update:modelValue"], ["update:modelValue"]),
884
+ emits: /* @__PURE__ */ A(["update:modelValue"], ["update:modelValue"]),
885
885
  setup(a, { emit: t }) {
886
- const o = a, s = Q(a, "modelValue"), n = $(() => {
886
+ const o = a, s = Q(a, "modelValue"), n = g(() => {
887
887
  const r = /* @__PURE__ */ new Map();
888
888
  return o.options.forEach((i, c) => {
889
889
  if (typeof i == "string" && (i = d(c, i)), i.children) {
890
890
  const b = /* @__PURE__ */ new Map();
891
- i.children.forEach((k, E) => {
892
- typeof k == "string" && (k = d(E, k)), b.set(k.value, k);
891
+ i.children.forEach((_, z) => {
892
+ typeof _ == "string" && (_ = d(z, _)), b.set(_.value, _);
893
893
  }), i = { ...i }, i.children = b, r.set(i.value, i);
894
894
  } else
895
895
  r.set(i.value, i);
896
896
  }), r;
897
- }), e = $(() => {
897
+ }), e = g(() => {
898
898
  const r = /* @__PURE__ */ new Map();
899
899
  return n.value.forEach((i) => {
900
900
  if (!i.disabled) {
@@ -917,7 +917,7 @@ const at = /* @__PURE__ */ _({
917
917
  ], () => {
918
918
  (s.value === null || s.value === void 0) && e.value.size && (console.warn("Пожалуйста, не передавайте в компонент Select значения null и undefined"), s.value = e.value.keys().next().value);
919
919
  }, { immediate: !0 });
920
- const l = $(() => {
920
+ const l = g(() => {
921
921
  var r;
922
922
  return (r = e.value.get(s.value)) == null ? void 0 : r.icon;
923
923
  }), f = () => {
@@ -925,7 +925,7 @@ const at = /* @__PURE__ */ _({
925
925
  s.value = r[c];
926
926
  };
927
927
  return (r, i) => (u(), m("label", {
928
- class: y({
928
+ class: v({
929
929
  "top-select": !0,
930
930
  ["top-select-" + r.name]: r.name,
931
931
  ["top-size_" + r.size]: !0,
@@ -937,8 +937,8 @@ const at = /* @__PURE__ */ _({
937
937
  "data-top-icon": r.icon,
938
938
  "data-top-icon2": l.value
939
939
  }, [
940
- B(w("select", {
941
- class: y({
940
+ V($("select", {
941
+ class: v({
942
942
  "top-forms-focusable": !r.disabled,
943
943
  "top-select_select": !0,
944
944
  "top-select_arrow": !0,
@@ -948,24 +948,24 @@ const at = /* @__PURE__ */ _({
948
948
  disabled: r.disabled,
949
949
  "onUpdate:modelValue": i[0] || (i[0] = (c) => s.value = c)
950
950
  }, [
951
- (u(!0), m(D, null, O(n.value, ([c, b]) => (u(), m(D, null, [
951
+ (u(!0), m(R, null, N(n.value, ([c, b]) => (u(), m(R, null, [
952
952
  b.children ? (u(), m("optgroup", {
953
953
  key: "group_" + c,
954
954
  label: b.title,
955
955
  disabled: b.disabled
956
956
  }, [
957
- (u(!0), m(D, null, O(b.children, ([k, E]) => (u(), m("option", {
958
- key: k,
959
- value: k,
960
- selected: k === s.value,
961
- disabled: E.disabled
962
- }, V(E.title), 9, Bt))), 128))
957
+ (u(!0), m(R, null, N(b.children, ([_, z]) => (u(), m("option", {
958
+ key: _,
959
+ value: _,
960
+ selected: _ === s.value,
961
+ disabled: z.disabled
962
+ }, S(z.title), 9, Bt))), 128))
963
963
  ], 8, Vt)) : (u(), m("option", {
964
964
  key: c ?? void 0,
965
965
  value: c,
966
966
  selected: c === s.value,
967
967
  disabled: b.disabled
968
- }, V(b.title), 9, Lt))
968
+ }, S(b.title), 9, Lt))
969
969
  ], 64))), 256))
970
970
  ], 10, St), [
971
971
  [de, s.value]
@@ -974,8 +974,8 @@ const at = /* @__PURE__ */ _({
974
974
  key: 0,
975
975
  class: "top-changer",
976
976
  onClick: f
977
- })) : v("", !0),
978
- r.title ? (u(), m("span", zt, V(r.title), 1)) : v("", !0)
977
+ })) : h("", !0),
978
+ r.title ? (u(), m("span", zt, S(r.title), 1)) : h("", !0)
979
979
  ], 10, Mt));
980
980
  }
981
981
  }), Tt = {
@@ -985,7 +985,7 @@ const at = /* @__PURE__ */ _({
985
985
  "top-changer": "top-changer"
986
986
  }, Ft = {
987
987
  $style: Tt
988
- }, Zt = /* @__PURE__ */ g(Et, [["__cssModules", Ft]]), Rt = {
988
+ }, Zt = /* @__PURE__ */ y(Et, [["__cssModules", Ft]]), Rt = {
989
989
  "top-loadbar": "top-loadbar"
990
990
  }, Dt = {}, At = { class: "top-loadbar" };
991
991
  function Ct(a, t) {
@@ -993,7 +993,7 @@ function Ct(a, t) {
993
993
  }
994
994
  const Pt = {
995
995
  $style: Rt
996
- }, Wt = /* @__PURE__ */ g(Dt, [["render", Ct], ["__cssModules", Pt]]);
996
+ }, Wt = /* @__PURE__ */ y(Dt, [["render", Ct], ["__cssModules", Pt]]);
997
997
  export {
998
998
  Yt as B,
999
999
  p as C,
@@ -1002,25 +1002,25 @@ export {
1002
1002
  j as I,
1003
1003
  Wt as L,
1004
1004
  Jt as T,
1005
- g as _,
1006
- pe as a,
1007
- ue as b,
1008
- ce as c,
1009
- R as d,
1010
- me as e,
1011
- Me as f,
1005
+ I as _,
1006
+ y as a,
1007
+ pe as b,
1008
+ ue as c,
1009
+ F as d,
1010
+ ce as e,
1011
+ me as f,
1012
1012
  It as g,
1013
- U as h,
1013
+ Me as h,
1014
1014
  Ht as i,
1015
- jt as j,
1016
- Gt as k,
1017
- W as l,
1018
- Kt as m,
1019
- qt as n,
1020
- Xt as o,
1021
- Zt as p,
1015
+ U as j,
1016
+ jt as k,
1017
+ Gt as l,
1018
+ P as m,
1019
+ Kt as n,
1020
+ qt as o,
1021
+ Xt as p,
1022
+ Zt as q,
1022
1023
  Qt as r,
1023
- Ut as s,
1024
- h as w
1024
+ Ut as s
1025
1025
  };
1026
- //# sourceMappingURL=forms-C4Cwecin.es.js.map
1026
+ //# sourceMappingURL=forms-gb7uf2K8.es.js.map