@topvisor/ui 1.0.16 → 1.0.18-autofocus-3

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 (196) hide show
  1. package/.chunks/{datepicker-DW_EVh8-.amd.js → datepicker-2XyFBnpB.amd.js} +2 -2
  2. package/.chunks/{datepicker-DW_EVh8-.amd.js.map → datepicker-2XyFBnpB.amd.js.map} +1 -1
  3. package/.chunks/{datepicker-CDFryb2R.es.js → datepicker-CUB0U_lQ.es.js} +2 -2
  4. package/.chunks/{datepicker-CDFryb2R.es.js.map → datepicker-CUB0U_lQ.es.js.map} +1 -1
  5. package/.chunks/forms-CgS7En_e.amd.js +3 -0
  6. package/.chunks/{forms-CORLOoYZ.amd.js.map → forms-CgS7En_e.amd.js.map} +1 -1
  7. package/.chunks/forms-cAFIQajo.es.js +1995 -0
  8. package/.chunks/{forms-DmpPuKKh.es.js.map → forms-cAFIQajo.es.js.map} +1 -1
  9. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DwVG6MzF.amd.js +2 -0
  10. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DwVG6MzF.amd.js.map +1 -0
  11. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DxPx80QT.es.js +181 -0
  12. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-Cry_LWLq.es.js.map → listItem.vue_vue_type_script_setup_true_lang-DxPx80QT.es.js.map} +1 -1
  13. package/.chunks/{menu.vue_vue_type_style_index_0_lang-BQFq184r.es.js → menu.vue_vue_type_style_index_0_lang-BoLzlJHY.es.js} +24 -24
  14. package/.chunks/{menu.vue_vue_type_style_index_0_lang-BQFq184r.es.js.map → menu.vue_vue_type_style_index_0_lang-BoLzlJHY.es.js.map} +1 -1
  15. package/.chunks/{menu.vue_vue_type_style_index_0_lang-Chd1ygyG.amd.js → menu.vue_vue_type_style_index_0_lang-Dpm2Wnt9.amd.js} +2 -2
  16. package/.chunks/{menu.vue_vue_type_style_index_0_lang-Chd1ygyG.amd.js.map → menu.vue_vue_type_style_index_0_lang-Dpm2Wnt9.amd.js.map} +1 -1
  17. package/.chunks/{notice-BNik2ZIo.es.js → notice-DRCVp0mf.es.js} +2 -2
  18. package/.chunks/{notice-BNik2ZIo.es.js.map → notice-DRCVp0mf.es.js.map} +1 -1
  19. package/.chunks/{notice-BnvlWLlj.amd.js → notice-EerveAd9.amd.js} +2 -2
  20. package/.chunks/{notice-BnvlWLlj.amd.js.map → notice-EerveAd9.amd.js.map} +1 -1
  21. package/.chunks/popup-D6-5Xu_J.amd.js +2 -0
  22. package/.chunks/{popup-Dm9xIxVU.amd.js.map → popup-D6-5Xu_J.amd.js.map} +1 -1
  23. package/.chunks/{popup-BxLi2sMk.es.js → popup-DZDWzqMA.es.js} +4 -4
  24. package/.chunks/{popup-BxLi2sMk.es.js.map → popup-DZDWzqMA.es.js.map} +1 -1
  25. package/.chunks/punycode.es6-C2yitnNb.amd.js.map +1 -1
  26. package/.chunks/punycode.es6-CNI-zL6U.es.js.map +1 -1
  27. package/.chunks/store-CX_6ZXhO.es.js.map +1 -1
  28. package/.chunks/store-esTid5oI.amd.js.map +1 -1
  29. package/.chunks/{utils-k0wIxxij.amd.js → utils-CQcFLRGs.amd.js} +2 -2
  30. package/.chunks/{utils-k0wIxxij.amd.js.map → utils-CQcFLRGs.amd.js.map} +1 -1
  31. package/.chunks/{utils-DFwHp4q7.es.js → utils-DP2t2MXK.es.js} +85 -87
  32. package/.chunks/utils-DP2t2MXK.es.js.map +1 -0
  33. package/.chunks/{utils-CKpKCxOO.es.js → utils-DTkdtW9l.es.js} +78 -78
  34. package/.chunks/{utils-CKpKCxOO.es.js.map → utils-DTkdtW9l.es.js.map} +1 -1
  35. package/.chunks/utils-kDi9Zfjp.amd.js +2 -0
  36. package/.chunks/utils-kDi9Zfjp.amd.js.map +1 -0
  37. package/assets/core.css +1 -1
  38. package/assets/forms.css +1 -1
  39. package/assets/formsExt.css +1 -1
  40. package/assets/layout.css +1 -1
  41. package/assets/themes/dark-th.css +1 -1
  42. package/assets/themes/dark.css +1 -1
  43. package/assets/themes/light.css +1 -1
  44. package/charts/charts.amd.js +1 -1
  45. package/charts/charts.amd.js.map +1 -1
  46. package/charts/charts.js +1 -1
  47. package/components/charts/miniChart/miniChart.vue.d.ts +5 -5
  48. package/components/charts/miniCharts/miniCharts.vue.d.ts +9 -6
  49. package/components/core/notice/item/item.vue.d.ts +1 -1
  50. package/components/dialog/dialog/dialog.vue.d.ts +3 -2
  51. package/components/dialog/dialog/dialogs/dialogs.vue.d.ts +1 -1
  52. package/components/dialog/dialog/page/page.vue.d.ts +2 -1
  53. package/components/forms/avatar/avatar.vue.d.ts +1 -1
  54. package/components/forms/button/button.vue.d.ts +2 -1
  55. package/components/forms/button/types.d.ts +1 -0
  56. package/components/forms/checkbox/checkbox.vue.d.ts +7 -6
  57. package/components/forms/controlLabel/controlLabel.vue.d.ts +3 -2
  58. package/components/forms/hint/hint.vue.d.ts +1 -1
  59. package/components/forms/input/input.vue.d.ts +2 -1
  60. package/components/forms/inputDate/inputDate.vue.d.ts +3 -1
  61. package/components/forms/inputRange/inputRange.vue.d.ts +3 -2
  62. package/components/forms/loadbar/loadbar.vue.d.ts +1 -1
  63. package/components/forms/radio/radio.vue.d.ts +3 -2
  64. package/components/forms/select/select.vue.d.ts +5 -5
  65. package/components/forms/switcher/switcher.vue.d.ts +3 -2
  66. package/components/formsExt/editArea/editArea.vue.d.ts +1 -1
  67. package/components/formsExt/editInput/editInput.vue.d.ts +1 -1
  68. package/components/formsExt/formsExt.d.ts +2 -0
  69. package/components/formsExt/info/info.vue.d.ts +22 -0
  70. package/components/formsExt/info/types.d.ts +15 -0
  71. package/components/formsExt/menu/menu.vue.d.ts +7 -5
  72. package/components/formsExt/radioGroup/radioGroup.vue.d.ts +7 -5
  73. package/components/formsExt/selector2/itemMulti.vue.d.ts +1 -1
  74. package/components/formsExt/selector2/selector2.vue.d.ts +96 -8
  75. package/components/layout/islandRows/islandRows.vue.d.ts +3 -2
  76. package/components/layout/islandRows/islandRowsRow/islandRowsRow.vue.d.ts +3 -2
  77. package/components/layout/islandRows/islandRowsSubTitle/islandRowsSubTitle.vue.d.ts +18 -0
  78. package/components/layout/layout.d.ts +2 -0
  79. package/components/layout/rows/rows.vue.d.ts +3 -2
  80. package/components/popup/alert/alert.vue.d.ts +2 -1
  81. package/components/popup/confirm/confirm.vue.d.ts +2 -1
  82. package/components/popup/popup/listItem.vue.d.ts +2 -1
  83. package/components/popup/popup/opener.vue.d.ts +2 -1
  84. package/components/popup/popup/popup.vue.d.ts +2 -1
  85. package/components/popup/popup/widgetInput.vue.d.ts +4 -4
  86. package/components/popup/prompt/prompt.vue.d.ts +2 -1
  87. package/components/project/selectorCompetitors/selectorCompetitors.vue.d.ts +5 -5
  88. package/components/project/selectorRegion/selectorRegion.vue.d.ts +7 -7
  89. package/components/project/tagSelector/popupListItem/tagPopupListItem.vue.d.ts +5 -3
  90. package/components/project/tagSelector/popupOpener/popupOpener.vue.d.ts +6 -5
  91. package/components/project/tagSelector/tagIcon/tagIcon.vue.d.ts +1 -1
  92. package/components/project/tagSelector/tagSelector.vue.d.ts +6 -6
  93. package/components/tabs/tabs/content.vue.d.ts +3 -2
  94. package/components/tabs/tabs/tab.vue.d.ts +2 -1
  95. package/components/tabs/tabs/tabs.vue.d.ts +3 -2
  96. package/components/tabsView/tabsView/menu.vue.d.ts +9 -6
  97. package/components/tabsView/tabsView/menuDelimeter.vue.d.ts +1 -1
  98. package/components/tabsView/tabsView/menuItem.vue.d.ts +2 -1
  99. package/components/tabsView/tabsView/menuTitle.vue.d.ts +2 -1
  100. package/components/tabsView/tabsView/store.d.ts +5 -5
  101. package/components/tabsView/tabsView/tabsView.vue.d.ts +9 -6
  102. package/core/app.amd.js +1 -1
  103. package/core/app.amd.js.map +1 -1
  104. package/core/app.js +209 -162
  105. package/core/app.js.map +1 -1
  106. package/core/directives/focus.d.ts +3 -1
  107. package/core/directives/scrollIntoView.d.ts +3 -0
  108. package/core/directives/scrollShadow.d.ts +15 -0
  109. package/core/utils/number.d.ts +6 -0
  110. package/core/utils/scroll.d.ts +3 -2
  111. package/core/utils/string.d.ts +1 -1
  112. package/dialog/dialog.amd.js +1 -1
  113. package/dialog/dialog.amd.js.map +1 -1
  114. package/dialog/dialog.js +84 -79
  115. package/dialog/dialog.js.map +1 -1
  116. package/forms/forms.amd.js +1 -1
  117. package/forms/forms.js +1 -1
  118. package/forms/helpers.amd.js.map +1 -1
  119. package/formsExt/formsExt.amd.js +1 -1
  120. package/formsExt/formsExt.amd.js.map +1 -1
  121. package/formsExt/formsExt.js +330 -290
  122. package/formsExt/formsExt.js.map +1 -1
  123. package/layout/layout.amd.js +1 -1
  124. package/layout/layout.amd.js.map +1 -1
  125. package/layout/layout.js +33 -25
  126. package/layout/layout.js.map +1 -1
  127. package/package.json +31 -31
  128. package/popup/popup.amd.js +1 -1
  129. package/popup/popup.amd.js.map +1 -1
  130. package/popup/popup.js +17 -17
  131. package/popup/worker.amd.js +1 -1
  132. package/popup/worker.amd.js.map +1 -1
  133. package/popup/worker.js +9 -10
  134. package/popup/worker.js.map +1 -1
  135. package/project/project.amd.js +1 -1
  136. package/project/project.amd.js.map +1 -1
  137. package/project/project.js +307 -307
  138. package/tabsView/tabsView.amd.js +1 -1
  139. package/tabsView/tabsView.amd.js.map +1 -1
  140. package/tabsView/tabsView.js +37 -37
  141. package/utils/check.amd.js +1 -1
  142. package/utils/check.amd.js.map +1 -1
  143. package/utils/check.js +1 -1
  144. package/utils/check.js.map +1 -1
  145. package/utils/clipboard.amd.js +1 -1
  146. package/utils/clipboard.amd.js.map +1 -1
  147. package/utils/clipboard.js +1 -1
  148. package/utils/clipboard.js.map +1 -1
  149. package/utils/date.amd.js +1 -1
  150. package/utils/date.js +1 -1
  151. package/utils/device.amd.js +1 -1
  152. package/utils/device.js +1 -1
  153. package/utils/dom.amd.js +1 -1
  154. package/utils/dom.amd.js.map +1 -1
  155. package/utils/dom.js +30 -30
  156. package/utils/dom.js.map +1 -1
  157. package/utils/image.amd.js.map +1 -1
  158. package/utils/keyboard.amd.js.map +1 -1
  159. package/utils/lodash.amd.js +1 -1
  160. package/utils/lodash.js +1 -1
  161. package/utils/number.amd.js +1 -1
  162. package/utils/number.amd.js.map +1 -1
  163. package/utils/number.js +7 -3
  164. package/utils/number.js.map +1 -1
  165. package/utils/price.amd.js +1 -1
  166. package/utils/price.amd.js.map +1 -1
  167. package/utils/price.js +1 -1
  168. package/utils/price.js.map +1 -1
  169. package/utils/route.amd.js +1 -1
  170. package/utils/route.amd.js.map +1 -1
  171. package/utils/route.js +5 -5
  172. package/utils/route.js.map +1 -1
  173. package/utils/scroll.amd.js +1 -1
  174. package/utils/scroll.amd.js.map +1 -1
  175. package/utils/scroll.js +19 -14
  176. package/utils/scroll.js.map +1 -1
  177. package/utils/searchers.amd.js.map +1 -1
  178. package/utils/searchers.js.map +1 -1
  179. package/utils/string.amd.js +1 -1
  180. package/utils/string.amd.js.map +1 -1
  181. package/utils/string.js +48 -47
  182. package/utils/string.js.map +1 -1
  183. package/utils/system.amd.js.map +1 -1
  184. package/utils/system.js.map +1 -1
  185. package/utils/url.amd.js.map +1 -1
  186. package/utils/url.js.map +1 -1
  187. package/web-types.json +41 -0
  188. package/.chunks/forms-CORLOoYZ.amd.js +0 -3
  189. package/.chunks/forms-DmpPuKKh.es.js +0 -1944
  190. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-BZar2z_p.amd.js +0 -2
  191. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-BZar2z_p.amd.js.map +0 -1
  192. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-Cry_LWLq.es.js +0 -174
  193. package/.chunks/popup-Dm9xIxVU.amd.js +0 -2
  194. package/.chunks/utils-COOeS9rk.amd.js +0 -2
  195. package/.chunks/utils-COOeS9rk.amd.js.map +0 -1
  196. package/.chunks/utils-DFwHp4q7.es.js.map +0 -1
package/core/app.js CHANGED
@@ -1,13 +1,14 @@
1
- import { C as r, E as b, T as v, f as S, g as k, h as I, j as L, k as O, l as y, m as P, n as N, o as M, p as _, q as D, r as H, s as U } from "../.chunks/forms-DmpPuKKh.es.js";
2
- import { v as dt, a as lt, u as ht, t as ft } from "../.chunks/forms-DmpPuKKh.es.js";
3
- import { defineAsyncComponent as A, watch as T } from "vue";
1
+ import { C as r, E as N, T as M, f as H, g as C, h as F, j as R, k as V, l as G, m as j, n as x, o as B, p as J, q as W, r as Y, s as q } from "../.chunks/forms-cAFIQajo.es.js";
2
+ import { v as Ut, a as It, u as Pt, t as At } from "../.chunks/forms-cAFIQajo.es.js";
3
+ import { defineAsyncComponent as z, watch as k } from "vue";
4
4
  import { TopPopupWorker as d } from "../popup/worker.js";
5
- import { T as R, _ as C } from "../.chunks/utils-CKpKCxOO.es.js";
6
- import { a as ut, b as gt } from "../.chunks/utils-CKpKCxOO.es.js";
7
- import { guestLinkToClipboard as F } from "../utils/clipboard.js";
8
- import { camelToSnakeCase as G } from "../utils/string.js";
9
- import { getHash as j, setHash as x } from "../utils/route.js";
10
- class B {
5
+ import { T as Q, _ as K } from "../.chunks/utils-DTkdtW9l.es.js";
6
+ import { a as Nt, b as Mt } from "../.chunks/utils-DTkdtW9l.es.js";
7
+ import { isVisible as A } from "../utils/dom.js";
8
+ import { guestLinkToClipboard as X } from "../utils/clipboard.js";
9
+ import { camelToSnakeCase as Z } from "../utils/string.js";
10
+ import { getHash as tt, setHash as et } from "../utils/route.js";
11
+ class ot {
11
12
  static isInited = !1;
12
13
  /**
13
14
  * Добавить глобальные обработчики
@@ -20,7 +21,7 @@ class B {
20
21
  !(t.target instanceof HTMLElement) || !((e = t.target.dataset) != null && e.topPopupOpenByHover) || t.target.click();
21
22
  }), document.addEventListener("scroll", () => {
22
23
  r.state.isMobile || r.state.isMobileUA || d.getAll().forEach((t) => d.close(t));
23
- }), b.addOnReize((t) => {
24
+ }), N.addOnReize((t) => {
24
25
  r.state.isMobile && t.topEvent.widthDiff && d.getAll().forEach((e) => d.close(e));
25
26
  }), document.addEventListener("click", this.onclick));
26
27
  }
@@ -30,124 +31,170 @@ class B {
30
31
  * Обрабатывает клики на открытие Popup
31
32
  */
32
33
  static async onclick(t) {
33
- var o, s, i, a, c;
34
+ var s, i, n, a, c;
34
35
  if (!(t.target instanceof HTMLElement)) return;
35
36
  let e;
36
37
  switch (!0) {
37
- case !!((o = t.target.dataset) != null && o.topPopup):
38
+ case !!((s = t.target.dataset) != null && s.topPopup):
38
39
  e = t.target;
39
40
  break;
40
- case !!((s = t.target.parentElement) != null && s.dataset.topPopup):
41
+ case !!((i = t.target.parentElement) != null && i.dataset.topPopup):
41
42
  e = t.target.parentElement;
42
43
  break;
43
- case !!((a = (i = t.target.parentElement) == null ? void 0 : i.parentElement) != null && a.dataset.topPopup):
44
+ case !!((a = (n = t.target.parentElement) == null ? void 0 : n.parentElement) != null && a.dataset.topPopup):
44
45
  e = (c = t.target.parentElement) == null ? void 0 : c.parentElement;
45
46
  break;
46
47
  }
47
48
  e && (e.dataset.topPopupDisabled || e.dataset.topPopupOpened || (t.preventDefault(), await d.openByOpener(e)));
48
49
  }
49
50
  }
50
- let u;
51
- const J = {
52
- mounted: async (n, t) => {
53
- u || (u = (await import("../utils/dom.js")).storage);
54
- const e = t.arg, o = t.value;
55
- u(n, e, o);
51
+ let v;
52
+ const st = {
53
+ mounted: async (o, t) => {
54
+ v || (v = (await import("../utils/dom.js")).storage);
55
+ const e = t.arg, s = t.value;
56
+ v(o, e, s);
57
+ }
58
+ };
59
+ let E, m = [], b;
60
+ const it = async () => {
61
+ if (!m.length) return;
62
+ m[0].focus(), m = [];
63
+ }, O = async (o) => {
64
+ E || (E = await import("../utils/lodash.js")), b || (b = E.debounce(it, 30)), m.push(o), b();
65
+ }, nt = {
66
+ mounted: function(o, t) {
67
+ o.__TOP_V_FOCUS_VALUE = t.value ?? !0, (t.value ?? !0) && O(o);
68
+ },
69
+ updated: function(o, t) {
70
+ t.modifiers.onupdate && o.__TOP_V_FOCUS_VALUE !== (t.value ?? !0) && (o.__TOP_V_FOCUS_VALUE = t.value ?? !0, (t.value ?? !0) && O(o));
71
+ }
72
+ };
73
+ let h, S;
74
+ const D = (o) => (typeof o == "boolean" || (o ? o = { ...o } : o = {}, o.behavior ??= "smooth", o.block ??= "nearest", o.inline ??= "nearest"), o);
75
+ let g, _;
76
+ const at = async () => {
77
+ if (!g) return;
78
+ const o = await L(g);
79
+ o.isVisible && g.scrollIntoView(o.scrollIntoViewOptions);
80
+ }, U = async (o) => {
81
+ S || (S = await import("../utils/lodash.js")), _ || (_ = S.debounce(at, 30)), g = o, _();
82
+ }, L = async (o, t) => {
83
+ h || (h = await import("../utils/dom.js"));
84
+ let e = h.storage(o, "v-top-scrollIntoView");
85
+ return e || (e = {
86
+ isVisible: A(o),
87
+ scrollIntoViewOptions: D(t)
88
+ }, h.storage(o, "v-top-scrollIntoView", e)), e;
89
+ }, rt = {
90
+ async mounted(o, t) {
91
+ await L(o, t.value), t.modifiers.immediate && U(o);
92
+ },
93
+ async updated(o, t) {
94
+ const e = await L(o, t.value);
95
+ e.scrollIntoViewOptions = D(t.value);
96
+ const s = A(o);
97
+ s && e.isVisible !== s && U(o), e.isVisible = s;
56
98
  }
57
- }, W = {
58
- mounted: function(n, t) {
59
- t.value.disabled || n.focus();
99
+ };
100
+ let p;
101
+ const ct = {
102
+ async mounted(o) {
103
+ p || (p = await import("../utils/scroll.js")), p.connectScrollShadow(o);
104
+ },
105
+ async unmounted(o) {
106
+ p || (p = await import("../utils/scroll.js")), p.unconnectScrollShadow(o);
60
107
  }
61
108
  };
62
- let l;
63
- const Y = {
64
- mounted(n, t, e) {
65
- const o = t.value || "top-sticky";
66
- l = new IntersectionObserver((s) => {
67
- let i = s[0].intersectionRatio < 1;
68
- i && t.modifiers.bottom && s[0].intersectionRect.y === 0 && (i = !1), n.classList.toggle(o, i);
109
+ let u;
110
+ const lt = {
111
+ mounted(o, t, e) {
112
+ const s = t.value || "top-sticky";
113
+ u = new IntersectionObserver((i) => {
114
+ let n = i[0].intersectionRatio < 1;
115
+ n && t.modifiers.bottom && i[0].intersectionRect.y === 0 && (n = !1), o.classList.toggle(s, n);
69
116
  }, {
70
117
  threshold: [1]
71
- }), l.observe(n);
118
+ }), u.observe(o);
72
119
  },
73
- unmounted(n, t, e) {
74
- l == null || l.disconnect();
120
+ unmounted(o, t, e) {
121
+ u == null || u.disconnect();
75
122
  }
76
123
  };
77
- let w = !1, h;
78
- const f = /* @__PURE__ */ new Map(), V = (n, t) => {
79
- const { distance: e, percent: o } = n.directiveSwipUpOptions, s = n.getBoundingClientRect().top, i = t * o / 100 / e, a = (t - s) / i;
80
- a <= e ? n.style.transform = `translateY(${e - a}px)` : n.style.transform = "translateY(0px)";
81
- }, q = (n) => {
124
+ let I = !1, f;
125
+ const T = /* @__PURE__ */ new Map(), pt = (o, t) => {
126
+ const { distance: e, percent: s } = o.directiveSwipUpOptions, i = o.getBoundingClientRect().top, n = t * s / 100 / e, a = (t - i) / n;
127
+ a <= e ? o.style.transform = `translateY(${e - a}px)` : o.style.transform = "translateY(0px)";
128
+ }, dt = (o) => {
82
129
  let t = window.innerHeight;
83
130
  window.addEventListener("scroll", () => {
84
- f.forEach((e) => V(e, t));
85
- }, { passive: !0 }), h = new IntersectionObserver((e) => {
86
- t = window.innerHeight, e.forEach((o) => {
87
- const s = o.target;
88
- if (o.intersectionRatio < 0.1 ? f.delete(s) : f.set(s, s), o.intersectionRatio === 0) {
89
- const { distance: i } = s.directiveSwipUpOptions;
90
- s.style.transform = `translateY(${i}px)`;
131
+ T.forEach((e) => pt(e, t));
132
+ }, { passive: !0 }), f = new IntersectionObserver((e) => {
133
+ t = window.innerHeight, e.forEach((s) => {
134
+ const i = s.target;
135
+ if (s.intersectionRatio < 0.1 ? T.delete(i) : T.set(i, i), s.intersectionRatio === 0) {
136
+ const { distance: n } = i.directiveSwipUpOptions;
137
+ i.style.transform = `translateY(${n}px)`;
91
138
  }
92
139
  });
93
140
  }, {
94
141
  threshold: 0.1
95
142
  });
96
- }, z = {
97
- mounted(n, t, e) {
98
- var o, s;
99
- r.state.isMobileUA || (n.directiveSwipUpOptions = {
100
- distance: ((o = t.value) == null ? void 0 : o.distance) ?? 100,
143
+ }, ut = {
144
+ mounted(o, t, e) {
145
+ var s, i;
146
+ r.state.isMobileUA || (o.directiveSwipUpOptions = {
147
+ distance: ((s = t.value) == null ? void 0 : s.distance) ?? 100,
101
148
  // количество px на которые блок изначально смещен вниз,
102
- percent: ((s = t.value) == null ? void 0 : s.percent) ?? 30
149
+ percent: ((i = t.value) == null ? void 0 : i.percent) ?? 30
103
150
  // процент высоты экрана поднявшись на который блок закончит подплытие
104
- }, w || (q(), w = !0), h.observe(n));
151
+ }, I || (dt(), I = !0), f.observe(o));
105
152
  },
106
- unmounted(n, t, e) {
107
- f.delete(n), h == null || h.unobserve(n);
153
+ unmounted(o, t, e) {
154
+ T.delete(o), f == null || f.unobserve(o);
108
155
  }
109
- }, g = (n) => {
156
+ }, y = (o) => {
110
157
  var t, e;
111
158
  if (!((e = (t = r.$) == null ? void 0 : t.ui) != null && e.tooltip)) {
112
159
  console.info("Для работы v-top-tooltip требуется глобальная загрузка jQuery UI Tooltip");
113
160
  return;
114
161
  }
115
- return r.$(n);
116
- }, E = (n, t) => {
117
- var o;
118
- const e = n.value ?? {};
119
- return e.content ??= (o = t.props) == null ? void 0 : o.title, e.content = String(e.content).replace(/\r\n|\r|\n/g, "<br>"), e.position ??= {
162
+ return r.$(o);
163
+ }, P = (o, t) => {
164
+ var s;
165
+ const e = o.value ?? {};
166
+ return e.content ??= (s = t.props) == null ? void 0 : s.title, e.content = String(e.content).replace(/\r\n|\r|\n/g, "<br>"), e.position ??= {
120
167
  my: "bottom-18px",
121
168
  at: "top center"
122
169
  }, e;
123
- }, Q = {
124
- mounted(n, t, e) {
125
- var o;
126
- (o = g(n)) == null || o.tooltip(E(t, e));
170
+ }, ft = {
171
+ mounted(o, t, e) {
172
+ var s;
173
+ (s = y(o)) == null || s.tooltip(P(t, e));
127
174
  },
128
- updated(n, t, e, o) {
175
+ updated(o, t, e, s) {
129
176
  var a;
130
- const s = E(t, e), i = (a = g(n)) == null ? void 0 : a.tooltip("instance");
131
- i && (i.options = {
132
- ...i.options,
133
- ...s
177
+ const i = P(t, e), n = (a = y(o)) == null ? void 0 : a.tooltip("instance");
178
+ n && (n.options = {
179
+ ...n.options,
180
+ ...i
134
181
  });
135
182
  },
136
- unmounted(n, t, e) {
137
- var o;
138
- (o = g(n)) == null || o.tooltip("destroy");
183
+ unmounted(o, t, e) {
184
+ var s;
185
+ (s = y(o)) == null || s.tooltip("destroy");
139
186
  }
140
- }, K = A(() => import("../.chunks/notice-BNik2ZIo.es.js"));
187
+ }, ht = z(() => import("../.chunks/notice-DRCVp0mf.es.js"));
141
188
  window.vd = console.log;
142
- const at = {
143
- install: (n, t) => {
144
- n.config.globalProperties.$core = r, n.config.globalProperties.$vd = console.log;
189
+ const yt = {
190
+ install: (o, t) => {
191
+ o.config.globalProperties.$core = r, o.config.globalProperties.$vd = console.log;
145
192
  for (const e in t)
146
193
  r.state[e] = t[e];
147
- t.widthForMobile && (r.widthForMobile = t.widthForMobile), t.themeName && (r.themeName = t.themeName), r._setState(), t.topPopupOptions && (d.options = t.topPopupOptions), B.init(), R.init(t.topDialogOptions), n.directive("top-data", J), n.directive("top-focus", W), n.directive("top-sticky", Y), n.directive("top-swim-up", z), n.directive("top-tooltip", Q), n.component("TopAvatar", v), n.component("TopButton", S), n.component("TopCheckbox", k), n.component("TopControlLabel", I), n.component("TopHint", L), n.component("TopInput", O), n.component("TopInputDate", y), n.component("TopInputRange", P), n.component("TopLoadbar", N), n.component("TopRadio", M), n.component("TopSelect", _), n.component("TopSwitcher", D), n.component("TopTextarea", H), n.component("TopNotice", K), n.component("TopDialogs", C);
194
+ t.widthForMobile && (r.widthForMobile = t.widthForMobile), t.themeName && (r.themeName = t.themeName), r._setState(), t.topPopupOptions && (d.options = t.topPopupOptions), ot.init(), Q.init(t.topDialogOptions), o.directive("top-data", st), o.directive("top-focus", nt), o.directive("top-scroll-into-view", rt), o.directive("top-scroll-shadow", ct), o.directive("top-sticky", lt), o.directive("top-swim-up", ut), o.directive("top-tooltip", ft), o.component("TopAvatar", M), o.component("TopButton", H), o.component("TopCheckbox", C), o.component("TopControlLabel", F), o.component("TopHint", R), o.component("TopInput", V), o.component("TopInputDate", G), o.component("TopInputRange", j), o.component("TopLoadbar", x), o.component("TopRadio", B), o.component("TopSelect", J), o.component("TopSwitcher", W), o.component("TopTextarea", Y), o.component("TopNotice", ht), o.component("TopDialogs", K);
148
195
  }
149
196
  };
150
- class X {
197
+ class mt {
151
198
  #e;
152
199
  #t;
153
200
  /**
@@ -156,15 +203,15 @@ class X {
156
203
  #o;
157
204
  #s;
158
205
  #c;
159
- #n = [];
160
206
  #i = [];
161
- #p = [];
207
+ #n = [];
208
+ #l = [];
162
209
  #a = [];
163
210
  constructor(t) {
164
- var o;
165
- this.#t = t.store, this.#e = this.#t.$id, this.#o = t.options.Page, this.#s = t.options.user, this.#c = t.options.Api, this.#n = t.options.tpaNamesUrlHash || [], this.#i = t.options.tpaNamesStorage || [], this.#p = t.options.tpaNamesStorageLocal || [], this.#a = t.options.tpaNamesGuestLink || [], t.store.genGuestLink = (s, i) => this.genGuestLink(s, i), (o = this.#s.guest_data) != null && o.data || (this.#l(), this.#l(!0), this.#m()), this.#T(), this.#w();
166
- const e = U(() => {
167
- this.#u(), this.#g();
211
+ var s;
212
+ this.#t = t.store, this.#e = this.#t.$id, this.#o = t.options.Page, this.#s = t.options.user, this.#c = t.options.Api, this.#i = t.options.tpaNamesUrlHash || [], this.#n = t.options.tpaNamesStorage || [], this.#l = t.options.tpaNamesStorageLocal || [], this.#a = t.options.tpaNamesGuestLink || [], t.store.genGuestLink = (i, n) => this.genGuestLink(i, n), (s = this.#s.guest_data) != null && s.data || (this.#d(), this.#d(!0), this.#h()), this.#T(), this.#w();
213
+ const e = q(() => {
214
+ this.#m(), this.#g();
168
215
  });
169
216
  t.store.$subscribe(e);
170
217
  }
@@ -174,33 +221,33 @@ class X {
174
221
  * Метод, путь к которому указан в url, должен возвращать сгенерированную ссылку
175
222
  */
176
223
  async genGuestLink(t, e) {
177
- const o = this.#h();
178
- e = Object.assign(e, Object.fromEntries(o));
179
- const s = await this.#c.gen(t, "fetchColumn").call({}, e);
180
- s != null && s.errors || await F(s.result);
224
+ const s = this.#u();
225
+ e = Object.assign(e, Object.fromEntries(s));
226
+ const i = await this.#c.gen(t, "fetchColumn").call({}, e);
227
+ i != null && i.errors || await X(i.result);
181
228
  }
182
229
  /**
183
230
  * Сгенерировать опции для гостевой ссылки
184
231
  */
185
- #h() {
232
+ #u() {
186
233
  const t = /* @__PURE__ */ new Map();
187
234
  return this.#a.forEach((e) => {
188
- const o = G(e);
189
- t.set(o, this.#t[e]);
235
+ const s = Z(e);
236
+ t.set(s, this.#t[e]);
190
237
  }), t;
191
238
  }
192
239
  /**
193
240
  * Установить опции из объекта без фиксации состояния
194
241
  */
195
242
  #r(t) {
196
- t.forEach((e, o) => {
197
- const s = this.#t[o];
198
- if (e != null && s !== void 0 && e != null && e.constructor && e.constructor === s.constructor) {
199
- if (o.indexOf("date") === 0 && !Array.isArray(e)) {
243
+ t.forEach((e, s) => {
244
+ const i = this.#t[s];
245
+ if (e != null && i !== void 0 && e != null && e.constructor && e.constructor === i.constructor) {
246
+ if (s.indexOf("date") === 0 && !Array.isArray(e)) {
200
247
  if (typeof e == "string" && !/\d\d\d\d-\d\d-\d\d/.test(e))
201
248
  return;
202
249
  }
203
- this.#t[o] = e;
250
+ this.#t[s] = e;
204
251
  }
205
252
  });
206
253
  }
@@ -209,66 +256,66 @@ class X {
209
256
  */
210
257
  #f(t) {
211
258
  const e = /* @__PURE__ */ new Map();
212
- return t.forEach((o, s) => {
213
- o !== null && (o = JSON.stringify(o), e.set(s, o));
259
+ return t.forEach((s, i) => {
260
+ s !== null && (s = JSON.stringify(s), e.set(i, s));
214
261
  }), e;
215
262
  }
216
263
  /**
217
264
  * Сгенерировать Map объект с опциями со значениями в оригинальном виде
218
265
  */
219
- #d(t) {
266
+ #p(t) {
220
267
  const e = /* @__PURE__ */ new Map();
221
- return t.forEach((o, s) => {
222
- if (!(o == null || o === "false")) {
268
+ return t.forEach((s, i) => {
269
+ if (!(s == null || s === "false")) {
223
270
  try {
224
- if (typeof o == "string" && !/^\d\d\d\d-\d\d-\d\d$/.test(o) && (o = JSON.parse(o)), o == null || o === "false") return;
271
+ if (typeof s == "string" && !/^\d\d\d\d-\d\d-\d\d$/.test(s) && (s = JSON.parse(s)), s == null || s === "false") return;
225
272
  } catch {
226
273
  }
227
- e.set(s, o);
274
+ e.set(i, s);
228
275
  }
229
276
  }), e;
230
277
  }
231
278
  /**
232
279
  * Установить опции из хеша адреса страницы
233
280
  */
234
- #m() {
281
+ #h() {
235
282
  let t;
236
283
  try {
237
- t = JSON.parse(j(this.#e));
284
+ t = JSON.parse(tt(this.#e));
238
285
  } catch {
239
286
  }
240
287
  if (!t) return;
241
288
  const e = /* @__PURE__ */ new Map();
242
- this.#n.forEach((o) => {
243
- const s = t[o];
244
- s && e.set(o, s);
289
+ this.#i.forEach((s) => {
290
+ const i = t[s];
291
+ i && e.set(s, i);
245
292
  }), this.#r(e);
246
293
  }
247
294
  /**
248
295
  * Сохранить опции в хеш адреса страницы
249
296
  */
250
- #u() {
297
+ #m() {
251
298
  const t = /* @__PURE__ */ new Map();
252
- this.#n.forEach((s) => {
253
- const i = this.#t[s];
254
- t.set(s, i);
299
+ this.#i.forEach((i) => {
300
+ const n = this.#t[i];
301
+ t.set(i, n);
255
302
  });
256
- const e = Object.fromEntries(t), o = JSON.stringify(e);
257
- x(this.#e, o);
303
+ const e = Object.fromEntries(t), s = JSON.stringify(e);
304
+ et(this.#e, s);
258
305
  }
259
306
  /**
260
307
  * Установить опции из localStorage
261
308
  * @param isLocal - сохранить с учетом адреса страницы
262
309
  */
263
- #l(t = !1) {
310
+ #d(t = !1) {
264
311
  const e = /* @__PURE__ */ new Map();
265
- let o = "state:" + this.#e;
266
- t && (o = "state:" + this.#e + ":" + location.pathname), this.#i.forEach((i) => {
267
- const a = localStorage.getItem(o + ":" + i);
268
- e.set(i, a);
312
+ let s = "state:" + this.#e;
313
+ t && (s = "state:" + this.#e + ":" + location.pathname), this.#n.forEach((n) => {
314
+ const a = localStorage.getItem(s + ":" + n);
315
+ e.set(n, a);
269
316
  });
270
- const s = this.#d(e);
271
- this.#r(s);
317
+ const i = this.#p(e);
318
+ this.#r(i);
272
319
  }
273
320
  /**
274
321
  * Сохранить опции в localStorage
@@ -276,36 +323,36 @@ class X {
276
323
  */
277
324
  #g(t = !1) {
278
325
  const e = /* @__PURE__ */ new Map();
279
- let o = this.#i, s = "state:" + this.#e;
280
- t && (o = this.#p, s = "state:" + this.#e + ":" + location.pathname), o.forEach((a) => {
326
+ let s = this.#n, i = "state:" + this.#e;
327
+ t && (s = this.#l, i = "state:" + this.#e + ":" + location.pathname), s.forEach((a) => {
281
328
  const c = this.#t[a];
282
329
  e.set(a, c);
283
330
  });
284
- const i = this.#f(e);
285
- o.forEach((a) => {
286
- const c = i.get(a);
287
- localStorage.setItem(s + ":" + a, c);
331
+ const n = this.#f(e);
332
+ s.forEach((a) => {
333
+ const c = n.get(a);
334
+ localStorage.setItem(i + ":" + a, c);
288
335
  });
289
336
  }
290
337
  /**
291
338
  * Установить опции из гостевой ссылки
292
339
  */
293
340
  #T() {
294
- var i, a, c;
295
- const t = (a = (i = this.#s) == null ? void 0 : i.guest_data) == null ? void 0 : a.data;
341
+ var n, a, c;
342
+ const t = (a = (n = this.#s) == null ? void 0 : n.guest_data) == null ? void 0 : a.data;
296
343
  if (!t) return;
297
344
  this.#s.id === -1 && (this.#s.positionsReverseDates = t.positionsReverseDates);
298
345
  const e = /* @__PURE__ */ new Map();
299
- this.#a.forEach((p) => {
300
- const m = t[p];
301
- e.set(p, m);
346
+ this.#a.forEach((l) => {
347
+ const w = t[l];
348
+ e.set(l, w);
302
349
  });
303
- const o = this.#d(e);
304
- this.#r(o);
305
- const s = $(".mod_guest_title");
350
+ const s = this.#p(e);
351
+ this.#r(s);
352
+ const i = $(".mod_guest_title");
306
353
  if (((c = this.#t.competitorsIds) == null ? void 0 : c.length) === 1 && this.#o.page.data.competitors) {
307
- let p = this.#o.page.data.competitors.filter((m) => m.id === t.competitorsIds[0]);
308
- p.length && ($("a", s).attr("href", "http://" + p[0].url), $("a", s).text(p[0].name));
354
+ let l = this.#o.page.data.competitors.filter((w) => w.id === t.competitorsIds[0]);
355
+ l.length && ($("a", i).attr("href", "http://" + l[0].url), $("a", i).text(l[0].name));
309
356
  }
310
357
  }
311
358
  /**
@@ -316,40 +363,40 @@ class X {
316
363
  * Входные параметры могут меняться пользоваталем и устаревать
317
364
  */
318
365
  #w() {
319
- this.#t.regionsIndexes && T(this.#t.regionsIndexes, (t) => {
366
+ this.#t.regionsIndexes && k(this.#t.regionsIndexes, (t) => {
320
367
  if (!t.length) return;
321
- t.forEach((s, i) => t[i] = s);
322
- const e = TplProjectSelectorRegion.genSearchersMap(), o = [];
323
- e.forEach((s) => {
324
- s.regions.forEach((i) => {
325
- i.index !== -1 && o.push(i.index);
368
+ t.forEach((i, n) => t[n] = i);
369
+ const e = TplProjectSelectorRegion.genSearchersMap(), s = [];
370
+ e.forEach((i) => {
371
+ i.regions.forEach((n) => {
372
+ n.index !== -1 && s.push(n.index);
326
373
  });
327
- }), this.#t.regionsIndexes = t.filter((s) => o.includes(s));
328
- }, { immediate: !0 }), this.#t.competitorsIds && T(this.#t.competitorsIds, (t) => {
374
+ }), this.#t.regionsIndexes = t.filter((i) => s.includes(i));
375
+ }, { immediate: !0 }), this.#t.competitorsIds && k(this.#t.competitorsIds, (t) => {
329
376
  if (!t.length) return;
330
- t.forEach((o, s) => t[s] = o);
377
+ t.forEach((s, i) => t[i] = s);
331
378
  const e = [this.#o.page.data.project.id];
332
- this.#o.page.data.project.competitors.forEach((o) => {
333
- o.on >= 0 && e.push(o.id);
334
- }), this.#t.competitorsIds = t.filter((o) => e.includes(o));
379
+ this.#o.page.data.project.competitors.forEach((s) => {
380
+ s.on >= 0 && e.push(s.id);
381
+ }), this.#t.competitorsIds = t.filter((s) => e.includes(s));
335
382
  }, { immediate: !0 });
336
383
  }
337
384
  }
338
- const rt = (n) => {
339
- var e, o, s, i;
340
- const t = n;
341
- !((e = t.options.tpaNamesUrlHash) != null && e.length) && !((o = t.options.tpaNamesStorage) != null && o.length) && !((s = t.options.tpaNamesStorageLocal) != null && s.length) && !((i = t.options.tpaNamesGuestLink) != null && i.length) || new X(t);
385
+ const Lt = (o) => {
386
+ var e, s, i, n;
387
+ const t = o;
388
+ !((e = t.options.tpaNamesUrlHash) != null && e.length) && !((s = t.options.tpaNamesStorage) != null && s.length) && !((i = t.options.tpaNamesStorageLocal) != null && i.length) && !((n = t.options.tpaNamesGuestLink) != null && n.length) || new mt(t);
342
389
  };
343
390
  export {
344
391
  r as Core,
345
- R as TopDialogWorker,
346
- at as corePlugin,
347
- dt as i18nPlugin,
348
- rt as piniaTPAPlugin,
349
- ut as useAsyncTopDialog,
350
- lt as useI18n,
351
- ht as useI18nLang,
352
- ft as useI18nSetLang,
353
- gt as useTopDialog
392
+ Q as TopDialogWorker,
393
+ yt as corePlugin,
394
+ Ut as i18nPlugin,
395
+ Lt as piniaTPAPlugin,
396
+ Nt as useAsyncTopDialog,
397
+ It as useI18n,
398
+ Pt as useI18nLang,
399
+ At as useI18nSetLang,
400
+ Mt as useTopDialog
354
401
  };
355
402
  //# sourceMappingURL=app.js.map