@topvisor/ui 1.0.18 → 1.0.20-focus-1

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