@topvisor/ui 1.0.18 → 1.0.19
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.
- package/.chunks/{datepicker-EJRX31J1.es.js → datepicker-B8O5mg_G.es.js} +2 -2
- package/.chunks/{datepicker-EJRX31J1.es.js.map → datepicker-B8O5mg_G.es.js.map} +1 -1
- package/.chunks/{datepicker-DKvr3NYw.amd.js → datepicker-CFiizYlZ.amd.js} +2 -2
- package/.chunks/{datepicker-DKvr3NYw.amd.js.map → datepicker-CFiizYlZ.amd.js.map} +1 -1
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-B55gllXV.amd.js +2 -0
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-B55gllXV.amd.js.map +1 -0
- package/.chunks/{utils-DXI6F7F9.es.js → dialogs.vue_vue_type_script_setup_true_lang-BkBYW0yR.es.js} +75 -147
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-BkBYW0yR.es.js.map +1 -0
- package/.chunks/forms-BWc2kMFD.amd.js +3 -0
- package/.chunks/forms-BWc2kMFD.amd.js.map +1 -0
- package/.chunks/forms-DW_XLzg8.es.js +2018 -0
- package/.chunks/forms-DW_XLzg8.es.js.map +1 -0
- package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-CnEbgJbu.amd.js → listItem.vue_vue_type_script_setup_true_lang-naMiJruI.amd.js} +2 -2
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-naMiJruI.amd.js.map +1 -0
- package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-3UaZvDrd.es.js → listItem.vue_vue_type_script_setup_true_lang-saYIC17M.es.js} +10 -10
- package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-3UaZvDrd.es.js.map → listItem.vue_vue_type_script_setup_true_lang-saYIC17M.es.js.map} +1 -1
- package/.chunks/{menu.vue_vue_type_style_index_0_lang-DcFQyQgs.amd.js → menu.vue_vue_type_style_index_0_lang-06YUloqb.amd.js} +2 -2
- package/.chunks/{menu.vue_vue_type_style_index_0_lang-DcFQyQgs.amd.js.map → menu.vue_vue_type_style_index_0_lang-06YUloqb.amd.js.map} +1 -1
- package/.chunks/{menu.vue_vue_type_style_index_0_lang-C4q81rOQ.es.js → menu.vue_vue_type_style_index_0_lang-CcspstQc.es.js} +24 -24
- package/.chunks/{menu.vue_vue_type_style_index_0_lang-C4q81rOQ.es.js.map → menu.vue_vue_type_style_index_0_lang-CcspstQc.es.js.map} +1 -1
- package/.chunks/{notice-CtXmQ8xM.es.js → notice-BQyuy4nF.es.js} +2 -2
- package/.chunks/{notice-CtXmQ8xM.es.js.map → notice-BQyuy4nF.es.js.map} +1 -1
- package/.chunks/{notice-CYeec0mu.amd.js → notice-zADfJ5TR.amd.js} +2 -2
- package/.chunks/{notice-CYeec0mu.amd.js.map → notice-zADfJ5TR.amd.js.map} +1 -1
- package/.chunks/{popup-38TbXxcV.amd.js → popup-CPS-7fSX.amd.js} +2 -2
- package/.chunks/popup-CPS-7fSX.amd.js.map +1 -0
- package/.chunks/{popup-BzCXSDdA.es.js → popup-DsVptZvL.es.js} +6 -7
- package/.chunks/popup-DsVptZvL.es.js.map +1 -0
- package/.chunks/punycode.es6-C2yitnNb.amd.js.map +1 -1
- package/.chunks/punycode.es6-CNI-zL6U.es.js.map +1 -1
- package/.chunks/store-CX_6ZXhO.es.js.map +1 -1
- package/.chunks/store-esTid5oI.amd.js.map +1 -1
- package/.chunks/utils-B75aamxF.amd.js +2 -0
- package/.chunks/utils-B75aamxF.amd.js.map +1 -0
- package/.chunks/utils-DIP-BdDy.es.js +225 -0
- package/.chunks/utils-DIP-BdDy.es.js.map +1 -0
- package/.chunks/utils-DfYj3r9i.amd.js +2 -0
- package/.chunks/utils-DfYj3r9i.amd.js.map +1 -0
- package/.chunks/utils-h5v4GPgp.es.js +79 -0
- package/.chunks/utils-h5v4GPgp.es.js.map +1 -0
- package/assets/charts.css +1 -1
- package/assets/core.css +1 -1
- package/assets/forms.css +1 -1
- package/assets/formsExt.css +1 -1
- package/assets/layout.css +1 -1
- package/assets/notice.css +1 -1
- package/charts/charts.amd.js +1 -1
- package/charts/charts.amd.js.map +1 -1
- package/charts/charts.js +1 -1
- package/components/charts/miniChart/miniChart.vue.d.ts +5 -5
- package/components/charts/miniCharts/miniCharts.vue.d.ts +9 -6
- package/components/core/notice/item/item.vue.d.ts +1 -1
- package/components/dialog/dialog/dialog.vue.d.ts +4 -3
- package/components/dialog/dialog/dialogs/dialogs.vue.d.ts +1 -1
- package/components/dialog/dialog/page/page.vue.d.ts +2 -1
- package/components/dialog/dialog/page/types.d.ts +7 -0
- package/components/forms/avatar/avatar.vue.d.ts +1 -1
- package/components/forms/button/button.vue.d.ts +2 -1
- package/components/forms/checkbox/checkbox.vue.d.ts +7 -6
- package/components/forms/controlLabel/controlLabel.vue.d.ts +3 -2
- package/components/forms/hint/hint.vue.d.ts +1 -1
- package/components/forms/input/input.vue.d.ts +2 -1
- package/components/forms/inputDate/inputDate.vue.d.ts +3 -1
- package/components/forms/inputRange/inputRange.vue.d.ts +3 -2
- package/components/forms/loadbar/loadbar.vue.d.ts +1 -1
- package/components/forms/radio/radio.vue.d.ts +3 -2
- package/components/forms/select/select.vue.d.ts +5 -5
- package/components/forms/switcher/switcher.vue.d.ts +3 -2
- package/components/formsExt/editArea/editArea.vue.d.ts +1 -1
- package/components/formsExt/editInput/editInput.vue.d.ts +1 -1
- package/components/formsExt/formsExt.d.ts +2 -0
- package/components/formsExt/info/info.vue.d.ts +20 -0
- package/components/formsExt/info/types.d.ts +21 -0
- package/components/formsExt/menu/menu.vue.d.ts +7 -5
- package/components/formsExt/radioGroup/radioGroup.vue.d.ts +7 -5
- package/components/formsExt/selector2/itemMulti.vue.d.ts +1 -1
- package/components/formsExt/selector2/selector2.vue.d.ts +98 -8
- package/components/layout/islandRows/islandRows.vue.d.ts +3 -2
- package/components/layout/islandRows/islandRowsRow/islandRowsRow.vue.d.ts +3 -2
- package/components/layout/islandRows/islandRowsSubTitle/islandRowsSubTitle.vue.d.ts +3 -2
- package/components/layout/rows/rows.vue.d.ts +3 -2
- package/components/popup/alert/alert.vue.d.ts +2 -1
- package/components/popup/confirm/confirm.vue.d.ts +2 -1
- package/components/popup/lib/popup.d.ts +2 -3
- package/components/popup/lib/worker.d.ts +7 -7
- package/components/popup/popup/listItem.vue.d.ts +2 -1
- package/components/popup/popup/opener.vue.d.ts +2 -1
- package/components/popup/popup/popup.vue.d.ts +2 -1
- package/components/popup/popup/widgetInput.vue.d.ts +4 -4
- package/components/popup/prompt/prompt.vue.d.ts +2 -1
- package/components/project/selectorCompetitors/selectorCompetitors.vue.d.ts +5 -5
- package/components/project/selectorRegion/selectorRegion.vue.d.ts +7 -7
- package/components/project/selectorRegion/utils/consts.d.ts +0 -2
- package/components/project/tagSelector/popupListItem/tagPopupListItem.vue.d.ts +5 -3
- package/components/project/tagSelector/popupOpener/popupOpener.vue.d.ts +6 -5
- package/components/project/tagSelector/tagIcon/tagIcon.vue.d.ts +1 -1
- package/components/project/tagSelector/tagSelector.vue.d.ts +6 -6
- package/components/tabs/tabs/content.vue.d.ts +3 -2
- package/components/tabs/tabs/tab.vue.d.ts +2 -1
- package/components/tabs/tabs/tabs.vue.d.ts +3 -2
- package/components/tabsView/tabsView/menu.vue.d.ts +9 -6
- package/components/tabsView/tabsView/menuDelimeter.vue.d.ts +1 -1
- package/components/tabsView/tabsView/menuItem.vue.d.ts +2 -1
- package/components/tabsView/tabsView/menuTitle.vue.d.ts +2 -1
- package/components/tabsView/tabsView/store.d.ts +5 -5
- package/components/tabsView/tabsView/tabsView.vue.d.ts +9 -6
- package/core/app.amd.js +1 -1
- package/core/app.amd.js.map +1 -1
- package/core/app.js +148 -127
- package/core/app.js.map +1 -1
- package/core/core/core.d.ts +2 -0
- package/core/core/preloaders.d.ts +19 -0
- package/core/directives/focus.d.ts +3 -1
- package/core/directives/scrollIntoView.d.ts +3 -0
- package/core/directives/scrollShadow.d.ts +2 -2
- package/core/plugins/i18n.d.ts +13 -3
- package/core/utils/scroll.d.ts +18 -0
- package/core/utils/searchers.d.ts +0 -2
- package/dialog/dialog.amd.js +1 -1
- package/dialog/dialog.amd.js.map +1 -1
- package/dialog/dialog.js +61 -55
- package/dialog/dialog.js.map +1 -1
- package/forms/forms.amd.js +1 -1
- package/forms/forms.js +1 -1
- package/forms/helpers.amd.js.map +1 -1
- package/formsExt/formsExt.amd.js +1 -1
- package/formsExt/formsExt.amd.js.map +1 -1
- package/formsExt/formsExt.js +343 -300
- package/formsExt/formsExt.js.map +1 -1
- package/layout/layout.amd.js +1 -1
- package/layout/layout.amd.js.map +1 -1
- package/layout/layout.js +27 -26
- package/layout/layout.js.map +1 -1
- package/package.json +2 -1
- package/popup/popup.amd.js +1 -1
- package/popup/popup.amd.js.map +1 -1
- package/popup/popup.js +17 -17
- package/popup/worker.amd.js +1 -1
- package/popup/worker.amd.js.map +1 -1
- package/popup/worker.js +3 -3
- package/popup/worker.js.map +1 -1
- package/project/project.amd.js +1 -1
- package/project/project.amd.js.map +1 -1
- package/project/project.js +315 -317
- package/project/project.js.map +1 -1
- package/tabsView/tabsView.amd.js +1 -1
- package/tabsView/tabsView.amd.js.map +1 -1
- package/tabsView/tabsView.js +37 -37
- package/utils/check.amd.js.map +1 -1
- package/utils/check.js.map +1 -1
- package/utils/clipboard.amd.js +1 -1
- package/utils/clipboard.amd.js.map +1 -1
- package/utils/clipboard.js +1 -1
- package/utils/clipboard.js.map +1 -1
- package/utils/date.amd.js +1 -1
- package/utils/date.js +1 -1
- package/utils/device.amd.js +1 -1
- package/utils/device.js +1 -1
- package/utils/dom.amd.js +1 -1
- package/utils/dom.amd.js.map +1 -1
- package/utils/dom.js +30 -30
- package/utils/dom.js.map +1 -1
- package/utils/image.amd.js.map +1 -1
- package/utils/keyboard.amd.js.map +1 -1
- package/utils/lodash.amd.js +1 -1
- package/utils/lodash.js +5 -5
- package/utils/number.amd.js.map +1 -1
- package/utils/price.amd.js +1 -1
- package/utils/price.amd.js.map +1 -1
- package/utils/price.js +1 -1
- package/utils/price.js.map +1 -1
- package/utils/route.amd.js +1 -1
- package/utils/route.amd.js.map +1 -1
- package/utils/route.js +5 -5
- package/utils/route.js.map +1 -1
- package/utils/scroll.amd.js +1 -1
- package/utils/scroll.amd.js.map +1 -1
- package/utils/scroll.js +39 -7
- package/utils/scroll.js.map +1 -1
- package/utils/searchers.amd.js +1 -1
- package/utils/searchers.amd.js.map +1 -1
- package/utils/searchers.js +0 -2
- package/utils/searchers.js.map +1 -1
- package/utils/string.amd.js +1 -1
- package/utils/string.amd.js.map +1 -1
- package/utils/string.js +29 -29
- package/utils/string.js.map +1 -1
- package/utils/system.amd.js.map +1 -1
- package/utils/system.js.map +1 -1
- package/utils/url.amd.js.map +1 -1
- package/utils/url.js.map +1 -1
- package/web-types.json +28 -0
- package/.chunks/forms-CmlWMEyk.amd.js +0 -3
- package/.chunks/forms-CmlWMEyk.amd.js.map +0 -1
- package/.chunks/forms-DDIlFXbF.es.js +0 -1944
- package/.chunks/forms-DDIlFXbF.es.js.map +0 -1
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CnEbgJbu.amd.js.map +0 -1
- package/.chunks/popup-38TbXxcV.amd.js.map +0 -1
- package/.chunks/popup-BzCXSDdA.es.js.map +0 -1
- package/.chunks/utils-CFCfvsI8.es.js +0 -223
- package/.chunks/utils-CFCfvsI8.es.js.map +0 -1
- package/.chunks/utils-CI9JyH64.amd.js +0 -2
- package/.chunks/utils-CI9JyH64.amd.js.map +0 -1
- package/.chunks/utils-DXI6F7F9.es.js.map +0 -1
- package/.chunks/utils-lvXB5hbW.amd.js +0 -2
- package/.chunks/utils-lvXB5hbW.amd.js.map +0 -1
- package/components/formsExt/info/info.d.ts +0 -20
package/core/app.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
import {
|
|
3
|
-
import { defineAsyncComponent as
|
|
4
|
-
import { TopPopupWorker as
|
|
5
|
-
import { T as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
class
|
|
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-DW_XLzg8.es.js";
|
|
2
|
+
import { v as Ut, a as It, u as Pt, t as At } from "../.chunks/forms-DW_XLzg8.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/dialogs.vue_vue_type_script_setup_true_lang-BkBYW0yR.es.js";
|
|
6
|
+
import { isVisible as A } from "../utils/dom.js";
|
|
7
|
+
import { guestLinkToClipboard as X } from "../utils/clipboard.js";
|
|
8
|
+
import { camelToSnakeCase as Z } from "../utils/string.js";
|
|
9
|
+
import { getHash as tt, setHash as et } from "../utils/route.js";
|
|
10
|
+
import { a as Nt, b as Mt } from "../.chunks/utils-h5v4GPgp.es.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
|
-
|
|
24
|
-
}),
|
|
25
|
-
|
|
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,
|
|
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,98 @@ class W {
|
|
|
41
41
|
case !!((i = t.target.parentElement) != null && i.dataset.topPopup):
|
|
42
42
|
e = t.target.parentElement;
|
|
43
43
|
break;
|
|
44
|
-
case !!((
|
|
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
|
|
48
|
+
e && (e.dataset.topPopupDisabled || e.dataset.topPopupOpened || (t.preventDefault(), await d.openByOpener(e)));
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
let
|
|
52
|
-
const
|
|
51
|
+
let v;
|
|
52
|
+
const st = {
|
|
53
53
|
mounted: async (o, t) => {
|
|
54
|
-
|
|
54
|
+
v || (v = (await import("../utils/dom.js")).storage);
|
|
55
55
|
const e = t.arg, s = t.value;
|
|
56
|
-
|
|
56
|
+
v(o, e, s);
|
|
57
57
|
}
|
|
58
|
-
}
|
|
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 = {
|
|
59
66
|
mounted: function(o, t) {
|
|
60
|
-
t.value.
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
|
|
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);
|
|
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));
|
|
67
71
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
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;
|
|
74
98
|
}
|
|
75
99
|
};
|
|
76
|
-
let
|
|
77
|
-
|
|
78
|
-
o
|
|
79
|
-
|
|
80
|
-
const q = {
|
|
81
|
-
mounted(o) {
|
|
82
|
-
o && (o.dataset.scrollShadowInited || (o.dataset.scrollShadowInited = "true", o.onscroll = () => S(o), h && h.observe(o)));
|
|
100
|
+
let p;
|
|
101
|
+
const ct = {
|
|
102
|
+
async mounted(o) {
|
|
103
|
+
p || (p = await import("../utils/scroll.js")), p.connectScrollShadow(o);
|
|
83
104
|
},
|
|
84
|
-
unmounted(o) {
|
|
85
|
-
|
|
105
|
+
async unmounted(o) {
|
|
106
|
+
p || (p = await import("../utils/scroll.js")), p.unconnectScrollShadow(o);
|
|
86
107
|
}
|
|
87
108
|
};
|
|
88
|
-
let
|
|
89
|
-
const
|
|
109
|
+
let u;
|
|
110
|
+
const lt = {
|
|
90
111
|
mounted(o, t, e) {
|
|
91
112
|
const s = t.value || "top-sticky";
|
|
92
|
-
|
|
113
|
+
u = new IntersectionObserver((i) => {
|
|
93
114
|
let n = i[0].intersectionRatio < 1;
|
|
94
115
|
n && t.modifiers.bottom && i[0].intersectionRect.y === 0 && (n = !1), o.classList.toggle(s, n);
|
|
95
116
|
}, {
|
|
96
117
|
threshold: [1]
|
|
97
|
-
}),
|
|
118
|
+
}), u.observe(o);
|
|
98
119
|
},
|
|
99
120
|
unmounted(o, t, e) {
|
|
100
|
-
|
|
121
|
+
u == null || u.disconnect();
|
|
101
122
|
}
|
|
102
123
|
};
|
|
103
|
-
let
|
|
104
|
-
const
|
|
105
|
-
const { distance: e, percent: s } = o.directiveSwipUpOptions, i = o.getBoundingClientRect().top, n = t * s / 100 / e,
|
|
106
|
-
|
|
107
|
-
},
|
|
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) => {
|
|
108
129
|
let t = window.innerHeight;
|
|
109
130
|
window.addEventListener("scroll", () => {
|
|
110
|
-
|
|
131
|
+
T.forEach((e) => pt(e, t));
|
|
111
132
|
}, { passive: !0 }), f = new IntersectionObserver((e) => {
|
|
112
133
|
t = window.innerHeight, e.forEach((s) => {
|
|
113
134
|
const i = s.target;
|
|
114
|
-
if (s.intersectionRatio < 0.1 ?
|
|
135
|
+
if (s.intersectionRatio < 0.1 ? T.delete(i) : T.set(i, i), s.intersectionRatio === 0) {
|
|
115
136
|
const { distance: n } = i.directiveSwipUpOptions;
|
|
116
137
|
i.style.transform = `translateY(${n}px)`;
|
|
117
138
|
}
|
|
@@ -119,41 +140,41 @@ const m = /* @__PURE__ */ new Map(), K = (o, t) => {
|
|
|
119
140
|
}, {
|
|
120
141
|
threshold: 0.1
|
|
121
142
|
});
|
|
122
|
-
},
|
|
143
|
+
}, ut = {
|
|
123
144
|
mounted(o, t, e) {
|
|
124
145
|
var s, i;
|
|
125
|
-
|
|
146
|
+
r.state.isMobileUA || (o.directiveSwipUpOptions = {
|
|
126
147
|
distance: ((s = t.value) == null ? void 0 : s.distance) ?? 100,
|
|
127
148
|
// количество px на которые блок изначально смещен вниз,
|
|
128
149
|
percent: ((i = t.value) == null ? void 0 : i.percent) ?? 30
|
|
129
150
|
// процент высоты экрана поднявшись на который блок закончит подплытие
|
|
130
|
-
},
|
|
151
|
+
}, I || (dt(), I = !0), f.observe(o));
|
|
131
152
|
},
|
|
132
153
|
unmounted(o, t, e) {
|
|
133
|
-
|
|
154
|
+
T.delete(o), f == null || f.unobserve(o);
|
|
134
155
|
}
|
|
135
|
-
},
|
|
156
|
+
}, y = (o) => {
|
|
136
157
|
var t, e;
|
|
137
|
-
if (!((e = (t =
|
|
158
|
+
if (!((e = (t = r.$) == null ? void 0 : t.ui) != null && e.tooltip)) {
|
|
138
159
|
console.info("Для работы v-top-tooltip требуется глобальная загрузка jQuery UI Tooltip");
|
|
139
160
|
return;
|
|
140
161
|
}
|
|
141
|
-
return
|
|
142
|
-
},
|
|
162
|
+
return r.$(o);
|
|
163
|
+
}, P = (o, t) => {
|
|
143
164
|
var s;
|
|
144
165
|
const e = o.value ?? {};
|
|
145
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 ??= {
|
|
146
167
|
my: "bottom-18px",
|
|
147
168
|
at: "top center"
|
|
148
169
|
}, e;
|
|
149
|
-
},
|
|
170
|
+
}, ft = {
|
|
150
171
|
mounted(o, t, e) {
|
|
151
172
|
var s;
|
|
152
|
-
(s =
|
|
173
|
+
(s = y(o)) == null || s.tooltip(P(t, e));
|
|
153
174
|
},
|
|
154
175
|
updated(o, t, e, s) {
|
|
155
|
-
var
|
|
156
|
-
const i =
|
|
176
|
+
var a;
|
|
177
|
+
const i = P(t, e), n = (a = y(o)) == null ? void 0 : a.tooltip("instance");
|
|
157
178
|
n && (n.options = {
|
|
158
179
|
...n.options,
|
|
159
180
|
...i
|
|
@@ -161,19 +182,19 @@ const m = /* @__PURE__ */ new Map(), K = (o, t) => {
|
|
|
161
182
|
},
|
|
162
183
|
unmounted(o, t, e) {
|
|
163
184
|
var s;
|
|
164
|
-
(s =
|
|
185
|
+
(s = y(o)) == null || s.tooltip("destroy");
|
|
165
186
|
}
|
|
166
|
-
},
|
|
187
|
+
}, ht = z(() => import("../.chunks/notice-BQyuy4nF.es.js"));
|
|
167
188
|
window.vd = console.log;
|
|
168
|
-
const
|
|
189
|
+
const yt = {
|
|
169
190
|
install: (o, t) => {
|
|
170
|
-
o.config.globalProperties.$core =
|
|
191
|
+
o.config.globalProperties.$core = r, o.config.globalProperties.$vd = console.log;
|
|
171
192
|
for (const e in t)
|
|
172
|
-
|
|
173
|
-
t.widthForMobile && (
|
|
193
|
+
r.state[e] = t[e];
|
|
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);
|
|
174
195
|
}
|
|
175
196
|
};
|
|
176
|
-
class
|
|
197
|
+
class mt {
|
|
177
198
|
#e;
|
|
178
199
|
#t;
|
|
179
200
|
/**
|
|
@@ -184,13 +205,13 @@ class ot {
|
|
|
184
205
|
#c;
|
|
185
206
|
#i = [];
|
|
186
207
|
#n = [];
|
|
187
|
-
#
|
|
188
|
-
#
|
|
208
|
+
#l = [];
|
|
209
|
+
#a = [];
|
|
189
210
|
constructor(t) {
|
|
190
211
|
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.#
|
|
192
|
-
const e =
|
|
193
|
-
this.#
|
|
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();
|
|
194
215
|
});
|
|
195
216
|
t.store.$subscribe(e);
|
|
196
217
|
}
|
|
@@ -200,25 +221,25 @@ class ot {
|
|
|
200
221
|
* Метод, путь к которому указан в url, должен возвращать сгенерированную ссылку
|
|
201
222
|
*/
|
|
202
223
|
async genGuestLink(t, e) {
|
|
203
|
-
const s = this.#
|
|
224
|
+
const s = this.#u();
|
|
204
225
|
e = Object.assign(e, Object.fromEntries(s));
|
|
205
226
|
const i = await this.#c.gen(t, "fetchColumn").call({}, e);
|
|
206
|
-
i != null && i.errors || await
|
|
227
|
+
i != null && i.errors || await X(i.result);
|
|
207
228
|
}
|
|
208
229
|
/**
|
|
209
230
|
* Сгенерировать опции для гостевой ссылки
|
|
210
231
|
*/
|
|
211
|
-
#
|
|
232
|
+
#u() {
|
|
212
233
|
const t = /* @__PURE__ */ new Map();
|
|
213
|
-
return this.#
|
|
214
|
-
const s =
|
|
234
|
+
return this.#a.forEach((e) => {
|
|
235
|
+
const s = Z(e);
|
|
215
236
|
t.set(s, this.#t[e]);
|
|
216
237
|
}), t;
|
|
217
238
|
}
|
|
218
239
|
/**
|
|
219
240
|
* Установить опции из объекта без фиксации состояния
|
|
220
241
|
*/
|
|
221
|
-
#
|
|
242
|
+
#r(t) {
|
|
222
243
|
t.forEach((e, s) => {
|
|
223
244
|
const i = this.#t[s];
|
|
224
245
|
if (e != null && i !== void 0 && e != null && e.constructor && e.constructor === i.constructor) {
|
|
@@ -242,7 +263,7 @@ class ot {
|
|
|
242
263
|
/**
|
|
243
264
|
* Сгенерировать Map объект с опциями со значениями в оригинальном виде
|
|
244
265
|
*/
|
|
245
|
-
#
|
|
266
|
+
#p(t) {
|
|
246
267
|
const e = /* @__PURE__ */ new Map();
|
|
247
268
|
return t.forEach((s, i) => {
|
|
248
269
|
if (!(s == null || s === "false")) {
|
|
@@ -257,10 +278,10 @@ class ot {
|
|
|
257
278
|
/**
|
|
258
279
|
* Установить опции из хеша адреса страницы
|
|
259
280
|
*/
|
|
260
|
-
#
|
|
281
|
+
#h() {
|
|
261
282
|
let t;
|
|
262
283
|
try {
|
|
263
|
-
t = JSON.parse(
|
|
284
|
+
t = JSON.parse(tt(this.#e));
|
|
264
285
|
} catch {
|
|
265
286
|
}
|
|
266
287
|
if (!t) return;
|
|
@@ -268,19 +289,19 @@ class ot {
|
|
|
268
289
|
this.#i.forEach((s) => {
|
|
269
290
|
const i = t[s];
|
|
270
291
|
i && e.set(s, i);
|
|
271
|
-
}), this.#
|
|
292
|
+
}), this.#r(e);
|
|
272
293
|
}
|
|
273
294
|
/**
|
|
274
295
|
* Сохранить опции в хеш адреса страницы
|
|
275
296
|
*/
|
|
276
|
-
#
|
|
297
|
+
#m() {
|
|
277
298
|
const t = /* @__PURE__ */ new Map();
|
|
278
299
|
this.#i.forEach((i) => {
|
|
279
300
|
const n = this.#t[i];
|
|
280
301
|
t.set(i, n);
|
|
281
302
|
});
|
|
282
303
|
const e = Object.fromEntries(t), s = JSON.stringify(e);
|
|
283
|
-
|
|
304
|
+
et(this.#e, s);
|
|
284
305
|
}
|
|
285
306
|
/**
|
|
286
307
|
* Установить опции из localStorage
|
|
@@ -290,11 +311,11 @@ class ot {
|
|
|
290
311
|
const e = /* @__PURE__ */ new Map();
|
|
291
312
|
let s = "state:" + this.#e;
|
|
292
313
|
t && (s = "state:" + this.#e + ":" + location.pathname), this.#n.forEach((n) => {
|
|
293
|
-
const
|
|
294
|
-
e.set(n,
|
|
314
|
+
const a = localStorage.getItem(s + ":" + n);
|
|
315
|
+
e.set(n, a);
|
|
295
316
|
});
|
|
296
|
-
const i = this.#
|
|
297
|
-
this.#
|
|
317
|
+
const i = this.#p(e);
|
|
318
|
+
this.#r(i);
|
|
298
319
|
}
|
|
299
320
|
/**
|
|
300
321
|
* Сохранить опции в localStorage
|
|
@@ -303,35 +324,35 @@ class ot {
|
|
|
303
324
|
#g(t = !1) {
|
|
304
325
|
const e = /* @__PURE__ */ new Map();
|
|
305
326
|
let s = this.#n, i = "state:" + this.#e;
|
|
306
|
-
t && (s = this.#
|
|
307
|
-
const c = this.#t[
|
|
308
|
-
e.set(
|
|
327
|
+
t && (s = this.#l, i = "state:" + this.#e + ":" + location.pathname), s.forEach((a) => {
|
|
328
|
+
const c = this.#t[a];
|
|
329
|
+
e.set(a, c);
|
|
309
330
|
});
|
|
310
331
|
const n = this.#f(e);
|
|
311
|
-
s.forEach((
|
|
312
|
-
const c = n.get(
|
|
313
|
-
localStorage.setItem(i + ":" +
|
|
332
|
+
s.forEach((a) => {
|
|
333
|
+
const c = n.get(a);
|
|
334
|
+
localStorage.setItem(i + ":" + a, c);
|
|
314
335
|
});
|
|
315
336
|
}
|
|
316
337
|
/**
|
|
317
338
|
* Установить опции из гостевой ссылки
|
|
318
339
|
*/
|
|
319
|
-
#
|
|
320
|
-
var n,
|
|
321
|
-
const t = (
|
|
340
|
+
#T() {
|
|
341
|
+
var n, a, c;
|
|
342
|
+
const t = (a = (n = this.#s) == null ? void 0 : n.guest_data) == null ? void 0 : a.data;
|
|
322
343
|
if (!t) return;
|
|
323
344
|
this.#s.id === -1 && (this.#s.positionsReverseDates = t.positionsReverseDates);
|
|
324
345
|
const e = /* @__PURE__ */ new Map();
|
|
325
|
-
this.#
|
|
326
|
-
const
|
|
327
|
-
e.set(
|
|
346
|
+
this.#a.forEach((l) => {
|
|
347
|
+
const w = t[l];
|
|
348
|
+
e.set(l, w);
|
|
328
349
|
});
|
|
329
|
-
const s = this.#
|
|
330
|
-
this.#
|
|
350
|
+
const s = this.#p(e);
|
|
351
|
+
this.#r(s);
|
|
331
352
|
const i = $(".mod_guest_title");
|
|
332
353
|
if (((c = this.#t.competitorsIds) == null ? void 0 : c.length) === 1 && this.#o.page.data.competitors) {
|
|
333
|
-
let
|
|
334
|
-
|
|
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));
|
|
335
356
|
}
|
|
336
357
|
}
|
|
337
358
|
/**
|
|
@@ -341,8 +362,8 @@ class ot {
|
|
|
341
362
|
*
|
|
342
363
|
* Входные параметры могут меняться пользоваталем и устаревать
|
|
343
364
|
*/
|
|
344
|
-
#
|
|
345
|
-
this.#t.regionsIndexes &&
|
|
365
|
+
#w() {
|
|
366
|
+
this.#t.regionsIndexes && k(this.#t.regionsIndexes, (t) => {
|
|
346
367
|
if (!t.length) return;
|
|
347
368
|
t.forEach((i, n) => t[n] = i);
|
|
348
369
|
const e = TplProjectSelectorRegion.genSearchersMap(), s = [];
|
|
@@ -351,7 +372,7 @@ class ot {
|
|
|
351
372
|
n.index !== -1 && s.push(n.index);
|
|
352
373
|
});
|
|
353
374
|
}), this.#t.regionsIndexes = t.filter((i) => s.includes(i));
|
|
354
|
-
}, { immediate: !0 }), this.#t.competitorsIds &&
|
|
375
|
+
}, { immediate: !0 }), this.#t.competitorsIds && k(this.#t.competitorsIds, (t) => {
|
|
355
376
|
if (!t.length) return;
|
|
356
377
|
t.forEach((s, i) => t[i] = s);
|
|
357
378
|
const e = [this.#o.page.data.project.id];
|
|
@@ -361,21 +382,21 @@ class ot {
|
|
|
361
382
|
}, { immediate: !0 });
|
|
362
383
|
}
|
|
363
384
|
}
|
|
364
|
-
const
|
|
385
|
+
const Lt = (o) => {
|
|
365
386
|
var e, s, i, n;
|
|
366
387
|
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
|
|
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);
|
|
368
389
|
};
|
|
369
390
|
export {
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
391
|
+
r as Core,
|
|
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
|
|
380
401
|
};
|
|
381
402
|
//# sourceMappingURL=app.js.map
|