@topvisor/ui 0.9.37 → 1.0.0-rc-2
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-C-d1Do_N.amd.js +248 -0
- package/.chunks/datepicker-C-d1Do_N.amd.js.map +1 -0
- package/.chunks/datepicker-DTNYG8Iy.es.js +290 -0
- package/.chunks/datepicker-DTNYG8Iy.es.js.map +1 -0
- package/.chunks/debounce-4ipCj607.amd.js +2 -0
- package/.chunks/debounce-4ipCj607.amd.js.map +1 -0
- package/.chunks/debounce-BISRz08p.es.js +116 -0
- package/.chunks/debounce-BISRz08p.es.js.map +1 -0
- package/.chunks/forms--Ye61xQ5.amd.js +3 -0
- package/.chunks/forms--Ye61xQ5.amd.js.map +1 -0
- package/.chunks/{forms-BZoPbSQt.es.js → forms-NfVxcPud.es.js} +241 -227
- package/.chunks/forms-NfVxcPud.es.js.map +1 -0
- package/.chunks/i18n-C_OH9IT3.amd.js +2 -0
- package/.chunks/i18n-C_OH9IT3.amd.js.map +1 -0
- package/.chunks/i18n-DuTvft1T.es.js +26 -0
- package/.chunks/i18n-DuTvft1T.es.js.map +1 -0
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-BToGplRR.es.js +174 -0
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-BToGplRR.es.js.map +1 -0
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-BsrusTUW.amd.js +2 -0
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-BsrusTUW.amd.js.map +1 -0
- package/.chunks/{menu-DDYYS64d.es.js → menu-ChmT8cWp.es.js} +30 -32
- package/.chunks/menu-ChmT8cWp.es.js.map +1 -0
- package/.chunks/menu-Gnm18ZCc.amd.js +2 -0
- package/.chunks/menu-Gnm18ZCc.amd.js.map +1 -0
- package/.chunks/{popup-BFJ2eTTB.amd.js → popup-Dwf3PJQf.amd.js} +447 -441
- package/.chunks/popup-Dwf3PJQf.amd.js.map +1 -0
- package/.chunks/{popup-Bc6YggdE.es.js → popup-_a1ivPRI.es.js} +491 -485
- package/.chunks/popup-_a1ivPRI.es.js.map +1 -0
- package/.chunks/store-CX_6ZXhO.es.js.map +1 -1
- package/.chunks/store-esTid5oI.amd.js.map +1 -1
- package/README.md +86 -86
- package/assets/core.css +1 -1
- package/assets/forms.css +1 -1
- package/assets/listItem.css +1 -1
- package/assets/menu.css +1 -1
- package/common/common.d.ts +1 -1
- package/components/forms/avatar/avatar.vue.d.ts +12 -12
- package/components/forms/button/button.d.ts +14 -2
- package/components/forms/button/button.vue.d.ts +11 -12
- package/components/forms/checkbox/checkbox.vue.d.ts +19 -43
- package/components/forms/controlLabel/controlLabel.vue.d.ts +7 -8
- package/components/forms/forms.d.ts +0 -1
- package/components/forms/hint/hint.vue.d.ts +2 -3
- package/components/forms/input/input.d.ts +0 -1
- package/components/forms/input/input.vue.d.ts +11 -12
- package/components/forms/inputDate/inputDate.d.ts +0 -1
- package/components/forms/inputDate/inputDate.vue.d.ts +11 -12
- package/components/forms/radio/radio.vue.d.ts +8 -9
- package/components/forms/select/select.d.ts +0 -1
- package/components/forms/select/select.vue.d.ts +31 -69
- package/components/forms/select/stories/exampleOptions.d.ts +0 -1
- package/components/forms/switcher/switcher.vue.d.ts +8 -9
- package/components/forms/textarea/textarea.vue.d.ts +11 -12
- package/components/formsExt/editArea/editArea.d.ts +0 -1
- package/components/formsExt/editArea/editArea.vue.d.ts +13 -14
- package/components/formsExt/editInput/editInput.d.ts +0 -1
- package/components/formsExt/editInput/editInput.vue.d.ts +3 -4
- package/components/formsExt/formsExt.d.ts +0 -1
- package/components/formsExt/menu/menu.d.ts +0 -1
- package/components/formsExt/menu/menu.vue.d.ts +32 -48
- package/components/formsExt/menu/stories/items.d.ts +0 -1
- package/components/formsExt/radioGroup/radioGroup.d.ts +0 -1
- package/components/formsExt/radioGroup/radioGroup.vue.d.ts +31 -42
- package/components/formsExt/selector2/api.d.ts +0 -1
- package/components/formsExt/selector2/itemMulti.vue.d.ts +3 -4
- package/components/formsExt/selector2/selector2.d.ts +0 -1
- package/components/formsExt/selector2/selector2.vue.d.ts +37 -117
- package/components/popup/alert/alert.d.ts +8 -0
- package/components/popup/alert/alert.vue.d.ts +33 -0
- package/components/popup/confirm/confirm.d.ts +21 -0
- package/components/popup/confirm/confirm.vue.d.ts +35 -0
- package/components/popup/lib/popup.d.ts +0 -1
- package/components/popup/lib/worker.d.ts +4 -5
- package/components/popup/popup/listItem.vue.d.ts +11 -12
- package/components/popup/popup/opener.vue.d.ts +13 -14
- package/components/popup/popup/popup.d.ts +8 -2
- package/components/popup/popup/popup.vue.d.ts +13 -14
- package/components/popup/popup/widgetInput.vue.d.ts +32 -82
- package/components/popup/popup.d.ts +6 -1
- package/components/popup/prompt/prompt.d.ts +21 -0
- package/components/popup/prompt/prompt.vue.d.ts +35 -0
- package/components/project/project.d.ts +0 -1
- package/components/project/selectorCompetitors/composables.d.ts +0 -1
- package/components/project/selectorCompetitors/selectorCompetitors.d.ts +0 -1
- package/components/project/selectorCompetitors/selectorCompetitors.vue.d.ts +32 -24
- package/components/tabs/tabs/content.vue.d.ts +7 -8
- package/components/tabs/tabs/tab.vue.d.ts +7 -8
- package/components/tabs/tabs/tabs.vue.d.ts +7 -8
- package/components/tabs/tabs.d.ts +0 -1
- package/components/tabsView/tabsView/menu.vue.d.ts +22 -14
- package/components/tabsView/tabsView/menuItem.vue.d.ts +12 -12
- package/components/tabsView/tabsView/menuTitle.vue.d.ts +8 -8
- package/components/tabsView/tabsView/store.d.ts +1 -2
- package/components/tabsView/tabsView/tabsView.d.ts +0 -1
- package/components/tabsView/tabsView/tabsView.vue.d.ts +34 -34
- package/components/tabsView/tabsView.d.ts +0 -1
- package/core/app.amd.js +1 -1
- package/core/app.amd.js.map +1 -1
- package/core/app.d.ts +0 -1
- package/core/app.js +23 -21
- package/core/app.js.map +1 -1
- package/core/core/core.d.ts +14 -0
- package/core/core.amd.js +1 -1
- package/core/core.d.ts +2 -1
- package/core/core.js +1 -1
- package/core/directives/focus.d.ts +0 -1
- package/core/directives/sticky.d.ts +0 -1
- package/core/directives/swimUp.d.ts +0 -1
- package/core/directives/tooltip.d.ts +0 -1
- package/core/plugins/core.d.ts +0 -1
- package/core/plugins/i18n.d.ts +0 -1
- package/core/plugins/piniaTPA.d.ts +0 -1
- package/core/utils/lodash.d.ts +6 -0
- package/core/utils/price.d.ts +0 -1
- package/core/utils/store/localStorage.d.ts +0 -1
- package/core/utils/store/plugin.d.ts +0 -1
- package/core/utils/store/store.d.ts +0 -1
- package/forms/forms.amd.js +1 -1
- package/forms/forms.d.ts +1 -0
- package/forms/forms.js +1 -1
- package/forms/helpers.amd.js.map +1 -1
- package/forms/helpers.d.ts +1 -0
- package/forms/helpers.js.map +1 -1
- package/formsExt/formsExt.amd.js +1 -1
- package/formsExt/formsExt.amd.js.map +1 -1
- package/formsExt/formsExt.d.ts +1 -0
- package/formsExt/formsExt.js +3 -3
- package/formsExt/formsExt.js.map +1 -1
- package/icomoon/Read Me.txt +7 -7
- package/icomoon/demo-files/demo.css +161 -161
- package/icomoon/demo-files/demo.js +30 -30
- package/icomoon/demo.html +3379 -3379
- package/icomoon/fonts/Topvisor-2.svg +263 -263
- package/icomoon/style.css +740 -740
- package/package.json +36 -37
- package/popup/popup.amd.js +1 -1
- package/popup/popup.amd.js.map +1 -1
- package/popup/popup.d.ts +1 -0
- package/popup/popup.js +219 -21
- package/popup/popup.js.map +1 -1
- package/popup/worker.amd.js +1 -1
- package/popup/worker.amd.js.map +1 -1
- package/popup/worker.d.ts +3 -0
- package/popup/worker.js +2 -2
- 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.d.ts +1 -0
- package/project/project.js +20 -20
- package/project/project.js.map +1 -1
- package/require/css.amd.js +12 -12
- package/tabs/tabs.amd.js +1 -1
- package/tabs/tabs.amd.js.map +1 -1
- package/tabs/tabs.d.ts +1 -0
- package/tabs/tabs.js +1 -1
- package/tabs/tabs.js.map +1 -1
- package/tabsView/tabsView.amd.js +1 -1
- package/tabsView/tabsView.amd.js.map +1 -1
- package/tabsView/tabsView.d.ts +1 -0
- package/tabsView/tabsView.js +1 -1
- package/tabsView/tabsView.js.map +1 -1
- package/utils/check.amd.js.map +1 -1
- package/utils/check.d.ts +1 -0
- package/utils/check.js.map +1 -1
- package/utils/clipboard.amd.js.map +1 -1
- package/utils/clipboard.d.ts +1 -0
- package/utils/clipboard.js.map +1 -1
- package/utils/date.amd.js +1 -1
- package/utils/date.d.ts +1 -0
- package/utils/date.js +2 -2
- package/utils/device.amd.js +1 -1
- package/utils/device.d.ts +1 -0
- package/utils/device.js +1 -1
- package/utils/dom.amd.js.map +1 -1
- package/utils/dom.d.ts +3 -0
- package/utils/dom.js.map +1 -1
- package/utils/image.amd.js.map +1 -1
- package/utils/image.d.ts +1 -0
- package/utils/image.js.map +1 -1
- package/utils/keyboard.amd.js.map +1 -1
- package/utils/keyboard.d.ts +1 -0
- package/utils/keyboard.js.map +1 -1
- package/utils/lodash.amd.js +2 -0
- package/utils/lodash.amd.js.map +1 -0
- package/utils/lodash.d.ts +2 -0
- package/utils/lodash.js +706 -0
- package/utils/lodash.js.map +1 -0
- package/utils/number.amd.js.map +1 -1
- package/utils/number.d.ts +1 -0
- package/utils/number.js.map +1 -1
- package/utils/price.amd.js +1 -1
- package/utils/price.amd.js.map +1 -1
- package/utils/price.d.ts +1 -0
- package/utils/price.js +2 -2
- package/utils/price.js.map +1 -1
- package/utils/route.amd.js.map +1 -1
- package/utils/route.d.ts +1 -0
- package/utils/route.js.map +1 -1
- package/utils/scroll.amd.js.map +1 -1
- package/utils/scroll.d.ts +1 -0
- package/utils/scroll.js.map +1 -1
- package/utils/store.d.ts +1 -0
- package/utils/string.amd.js +1 -1
- package/utils/string.amd.js.map +1 -1
- package/utils/string.d.ts +1 -0
- package/utils/string.js +1 -1
- package/utils/string.js.map +1 -1
- package/utils/system.amd.js.map +1 -1
- package/utils/system.d.ts +1 -0
- package/utils/system.js.map +1 -1
- package/utils/url.amd.js.map +1 -1
- package/utils/url.d.ts +1 -0
- package/utils/url.js.map +1 -1
- package/web-types.json +72 -72
- package/.chunks/datepicker-CcRVcC5P.es.js +0 -290
- package/.chunks/datepicker-CcRVcC5P.es.js.map +0 -1
- package/.chunks/datepicker-D_95vv2c.amd.js +0 -248
- package/.chunks/datepicker-D_95vv2c.amd.js.map +0 -1
- package/.chunks/forms-BZoPbSQt.es.js.map +0 -1
- package/.chunks/forms-KR6uVX5Z.amd.js +0 -3
- package/.chunks/forms-KR6uVX5Z.amd.js.map +0 -1
- package/.chunks/i18n-eDh3Aaw9.amd.js +0 -2
- package/.chunks/i18n-eDh3Aaw9.amd.js.map +0 -1
- package/.chunks/i18n-qpB8zyhD.es.js +0 -20
- package/.chunks/i18n-qpB8zyhD.es.js.map +0 -1
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-4m2ZOlaP.amd.js +0 -2
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-4m2ZOlaP.amd.js.map +0 -1
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-C2uuAtpx.es.js +0 -161
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-C2uuAtpx.es.js.map +0 -1
- package/.chunks/menu-CNIQ9vFJ.amd.js +0 -2
- package/.chunks/menu-CNIQ9vFJ.amd.js.map +0 -1
- package/.chunks/menu-DDYYS64d.es.js.map +0 -1
- package/.chunks/popup-BFJ2eTTB.amd.js.map +0 -1
- package/.chunks/popup-Bc6YggdE.es.js.map +0 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { reactive as I, defineComponent as v, useCssVars as G, computed as
|
|
2
|
-
function
|
|
1
|
+
import { reactive as I, defineComponent as v, useCssVars as G, computed as w, openBlock as u, createElementBlock as f, createElementVNode as S, createCommentVNode as h, createBlock as T, resolveDynamicComponent as ee, normalizeClass as g, withCtx as L, renderSlot as k, createTextVNode as te, toDisplayString as V, mergeModels as C, useModel as Q, withDirectives as W, vModelCheckbox as J, mergeProps as D, withKeys as oe, vModelText as Z, withModifiers as se, onUnmounted as ae, ref as ne, unref as A, vModelRadio as ie, resolveDirective as re, watch as le, Fragment as N, renderList as F, vModelSelect as de } from "vue";
|
|
2
|
+
function pe() {
|
|
3
3
|
return "devicePixelRatio" in window && window.devicePixelRatio > 1;
|
|
4
4
|
}
|
|
5
|
-
function
|
|
5
|
+
function ue() {
|
|
6
6
|
return !!navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|IEMobile|Opera Mini/i);
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function ce() {
|
|
9
9
|
return navigator.userAgent.indexOf("Topvisor_App") != -1;
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function me() {
|
|
12
12
|
return navigator.userAgent.indexOf("Mac OS X") !== -1;
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function Xt() {
|
|
15
15
|
const t = /Chrome|Android/.test(navigator.userAgent);
|
|
16
16
|
let a = /Safari/.test(navigator.userAgent);
|
|
17
17
|
return t && a && (a = !1), a;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
return
|
|
19
|
+
function Yt() {
|
|
20
|
+
return me() ? "⌘" : "Ctrl";
|
|
21
21
|
}
|
|
22
|
-
const
|
|
22
|
+
const qt = () => $(document).scrollTop(), Kt = () => $(document), Gt = () => [document], fe = () => {
|
|
23
23
|
const t = [
|
|
24
24
|
["iOS", /(iPhone|iPad)/i],
|
|
25
25
|
["Android", /(Android)/i],
|
|
@@ -52,15 +52,15 @@ const Yt = () => $(document).scrollTop(), qt = () => $(document), Gt = () => [do
|
|
|
52
52
|
break;
|
|
53
53
|
}
|
|
54
54
|
return a;
|
|
55
|
-
},
|
|
55
|
+
}, Qt = async () => {
|
|
56
56
|
var a;
|
|
57
|
-
let t =
|
|
57
|
+
let t = fe();
|
|
58
58
|
if (t === "Windows 10") {
|
|
59
59
|
const o = await ((a = navigator == null ? void 0 : navigator.userAgentData) == null ? void 0 : a.getHighEntropyValues(["platformVersion"]));
|
|
60
60
|
o && o.platformVersion >= "13" && (t = "Windows 11");
|
|
61
61
|
}
|
|
62
62
|
return t;
|
|
63
|
-
},
|
|
63
|
+
}, be = 100;
|
|
64
64
|
let U;
|
|
65
65
|
const H = /* @__PURE__ */ new Map(), z = {
|
|
66
66
|
width: window.innerWidth,
|
|
@@ -69,24 +69,24 @@ const H = /* @__PURE__ */ new Map(), z = {
|
|
|
69
69
|
function he(t) {
|
|
70
70
|
H.set(t, t);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function ge(t) {
|
|
73
73
|
H.delete(t);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function we(t) {
|
|
76
76
|
clearTimeout(U), U = setTimeout(function() {
|
|
77
77
|
t.topEvent = {
|
|
78
78
|
widthDiff: z.width - window.innerWidth,
|
|
79
79
|
hightDiff: z.height - window.innerHeight
|
|
80
80
|
}, z.width = window.innerWidth, z.height = window.innerHeight, H.forEach((a) => a(t));
|
|
81
|
-
},
|
|
81
|
+
}, be);
|
|
82
82
|
}
|
|
83
|
-
window.addEventListener("resize",
|
|
84
|
-
const
|
|
83
|
+
window.addEventListener("resize", we);
|
|
84
|
+
const X = {
|
|
85
85
|
addOnReize: he,
|
|
86
|
-
removeOnResize:
|
|
86
|
+
removeOnResize: ge
|
|
87
87
|
};
|
|
88
|
-
var
|
|
89
|
-
const
|
|
88
|
+
var K;
|
|
89
|
+
const R = {
|
|
90
90
|
/**
|
|
91
91
|
* Базовая ширина страницы для отображения ПК / Мобильной версии сайта
|
|
92
92
|
*/
|
|
@@ -102,11 +102,11 @@ const C = {
|
|
|
102
102
|
/**
|
|
103
103
|
* Для Москвы: +0300
|
|
104
104
|
*/
|
|
105
|
-
gmt: (
|
|
105
|
+
gmt: (K = (/* @__PURE__ */ new Date()).toString().match(/GMT(\S+)/)) == null ? void 0 : K[1]
|
|
106
106
|
}, ye = {
|
|
107
|
-
dateFormat:
|
|
108
|
-
currency:
|
|
109
|
-
gmt:
|
|
107
|
+
dateFormat: R.dateFormat,
|
|
108
|
+
currency: R.currency,
|
|
109
|
+
gmt: R.gmt,
|
|
110
110
|
/**
|
|
111
111
|
* Device by size
|
|
112
112
|
* @see widthForMobile
|
|
@@ -154,8 +154,9 @@ class c {
|
|
|
154
154
|
static widthForMobile = 900;
|
|
155
155
|
static matchMediaIsMobile;
|
|
156
156
|
static $ = window.$;
|
|
157
|
+
static Events = X;
|
|
157
158
|
static _setState() {
|
|
158
|
-
c.matchMediaIsMobile = window.matchMedia(`(max-width: ${c.widthForMobile}px)`), c.state.isMobileUA =
|
|
159
|
+
c.matchMediaIsMobile = window.matchMedia(`(max-width: ${c.widthForMobile}px)`), c.state.isMobileUA = ue(), c.state.isRetina = pe(), c.state.isApp = ce(), c.setStateByWindowSize(), X.addOnReize(c.onResize), c.onResize(), c.saveToCookie();
|
|
159
160
|
}
|
|
160
161
|
static onResize() {
|
|
161
162
|
c.setStateByWindowSize(), document.documentElement.style.setProperty("--100vh", window.innerHeight + "px");
|
|
@@ -222,8 +223,8 @@ class c {
|
|
|
222
223
|
const d = "topCSSLink-" + e.replace(/\W/g, "-");
|
|
223
224
|
if (window.hasOwnProperty(d)) return;
|
|
224
225
|
let i, m;
|
|
225
|
-
const r = new Promise((p,
|
|
226
|
-
i = p, m =
|
|
226
|
+
const r = new Promise((p, b) => {
|
|
227
|
+
i = p, m = b;
|
|
227
228
|
});
|
|
228
229
|
s.push(r);
|
|
229
230
|
const l = document.createElement("link");
|
|
@@ -261,30 +262,30 @@ class c {
|
|
|
261
262
|
s.innerHTML = a, s.media = n, document.head.append(s);
|
|
262
263
|
};
|
|
263
264
|
}
|
|
264
|
-
const
|
|
265
|
+
const M = window.L ?? {}, Jt = (t, a, o) => {
|
|
265
266
|
switch (new Date(t, a, o).getDay()) {
|
|
266
267
|
case 0:
|
|
267
|
-
return
|
|
268
|
+
return M.Vs + ".";
|
|
268
269
|
case 1:
|
|
269
|
-
return
|
|
270
|
+
return M.Pn + ".";
|
|
270
271
|
case 2:
|
|
271
|
-
return
|
|
272
|
+
return M.Vt + ".";
|
|
272
273
|
case 3:
|
|
273
|
-
return
|
|
274
|
+
return M.Sr + ".";
|
|
274
275
|
case 4:
|
|
275
|
-
return
|
|
276
|
+
return M.Ct + ".";
|
|
276
277
|
case 5:
|
|
277
|
-
return
|
|
278
|
+
return M.Pt + ".";
|
|
278
279
|
case 6:
|
|
279
|
-
return
|
|
280
|
+
return M.Sb + ".";
|
|
280
281
|
default:
|
|
281
282
|
return "";
|
|
282
283
|
}
|
|
283
|
-
},
|
|
284
|
+
}, Zt = (t, a = !0, o = 2) => {
|
|
284
285
|
let n = String(t.getFullYear()), s = String(t.getDate()).padStart(2, "0"), e = String(t.getMonth() + 1).padStart(2, "0"), d = String(t.getHours()).padStart(2, "0"), i = String(t.getMinutes()).padStart(2, "0"), m = String(t.getSeconds()).padStart(2, "0"), r = n + "-" + e + "-" + s;
|
|
285
286
|
return o >= 1 && (r += " " + d), o >= 2 && (r += ":" + i), o === 3 && (r += ":" + m), a && (r = B(r, o)), r;
|
|
286
287
|
};
|
|
287
|
-
function
|
|
288
|
+
function jt(t) {
|
|
288
289
|
return t.indexOf("T") === -1 && (t.length == 10 && (t += " 00:00:00"), t = t.replace(" ", "T") + c.state.gmt), new Date(t);
|
|
289
290
|
}
|
|
290
291
|
function ve(t, a = !0, o = 0) {
|
|
@@ -293,12 +294,12 @@ function ve(t, a = !0, o = 0) {
|
|
|
293
294
|
const s = n.getFullYear(), e = String(n.getMonth() + 1).padStart(2, "0"), d = n.getDate().toString().padStart(2, "0"), i = n.getHours().toString().padStart(2, "0"), m = n.getMinutes().toString().padStart(2, "0"), r = n.getSeconds().toString().padStart(2, "0");
|
|
294
295
|
return n = s + "-" + e + "-" + d, o && (n += " "), o >= 1 && (n += i), o >= 2 && (n += ":" + m), o >= 3 && (n += ":" + r), a && (n = B(n, o)), n;
|
|
295
296
|
}
|
|
296
|
-
function
|
|
297
|
+
function xt(t, a = !0) {
|
|
297
298
|
const n = (/* @__PURE__ */ new Date()).getTimezoneOffset() / 60 * -1 * 60 * 60 * 1e3, s = 3 * 60 * 60 * 1e3;
|
|
298
299
|
let e;
|
|
299
300
|
t !== void 0 ? e = new Date(t) : e = /* @__PURE__ */ new Date(), e.setTime(e.getTime() - n + s);
|
|
300
|
-
let d = String(e.getFullYear()), i = String(e.getDate()).padStart(2, "0"), m = String(e.getMonth() + 1).padStart(2, "0"), r = String(e.getHours()).padStart(2, "0"), l = String(e.getMinutes()).padStart(2, "0"), p = String(e.getSeconds()).padStart(2, "0"),
|
|
301
|
-
return a && (
|
|
301
|
+
let d = String(e.getFullYear()), i = String(e.getDate()).padStart(2, "0"), m = String(e.getMonth() + 1).padStart(2, "0"), r = String(e.getHours()).padStart(2, "0"), l = String(e.getMinutes()).padStart(2, "0"), p = String(e.getSeconds()).padStart(2, "0"), b = d + "-" + m + "-" + i + " " + r + ":" + l + ":" + p;
|
|
302
|
+
return a && (b = B(b)), b;
|
|
302
303
|
}
|
|
303
304
|
function B(t, a = 2, o, n = c.L.Not_date) {
|
|
304
305
|
if (typeof t == "string" && (!t || t.substring(0, 10) === "0000-00-00") && n && n !== "0000-00-00" || !t) return n;
|
|
@@ -336,7 +337,7 @@ function B(t, a = 2, o, n = c.L.Not_date) {
|
|
|
336
337
|
}
|
|
337
338
|
return e = e.trim(), e;
|
|
338
339
|
}
|
|
339
|
-
function
|
|
340
|
+
function Y(t, a = c.L.Not_date) {
|
|
340
341
|
if (!t)
|
|
341
342
|
return a;
|
|
342
343
|
if (t.match(/\d\d\d\d-\d\d-\d\d/))
|
|
@@ -374,15 +375,15 @@ const $e = { class: "top-avatar" }, Se = ["src", "title"], _e = ["title"], ke =
|
|
|
374
375
|
},
|
|
375
376
|
setup(t) {
|
|
376
377
|
G((s) => ({
|
|
377
|
-
"
|
|
378
|
+
"4394695c": s.size + "px"
|
|
378
379
|
}));
|
|
379
|
-
const a = t, o =
|
|
380
|
+
const a = t, o = w(() => {
|
|
380
381
|
var s, e;
|
|
381
382
|
if (a.isOnline)
|
|
382
383
|
return (s = a.i18n) == null ? void 0 : s.Online;
|
|
383
384
|
if (a.lastActiveTime)
|
|
384
385
|
return ((e = a.i18n) == null ? void 0 : e.LastSeen) + ": " + B(a.lastActiveTime, 2);
|
|
385
|
-
}), n =
|
|
386
|
+
}), n = w(() => a.nickname ? a.nickname + (o.value ? `
|
|
386
387
|
${o.value}` : "") : o.value);
|
|
387
388
|
return (s, e) => (u(), f("div", $e, [
|
|
388
389
|
S("img", {
|
|
@@ -395,10 +396,10 @@ ${o.value}` : "") : o.value);
|
|
|
395
396
|
key: 0,
|
|
396
397
|
class: "top-avatar_status",
|
|
397
398
|
title: o.value
|
|
398
|
-
}, null, 8, _e)) :
|
|
399
|
+
}, null, 8, _e)) : h("", !0)
|
|
399
400
|
]));
|
|
400
401
|
}
|
|
401
|
-
}),
|
|
402
|
+
}), Te = {
|
|
402
403
|
"top-avatar": "top-avatar",
|
|
403
404
|
"top-avatar_image": "top-avatar_image",
|
|
404
405
|
"top-avatar_status": "top-avatar_status"
|
|
@@ -407,12 +408,12 @@ ${o.value}` : "") : o.value);
|
|
|
407
408
|
for (const [n, s] of a)
|
|
408
409
|
o[n] = s;
|
|
409
410
|
return o;
|
|
410
|
-
},
|
|
411
|
-
$style:
|
|
412
|
-
}, Ve = /* @__PURE__ */ y(ke, [["__cssModules",
|
|
413
|
-
key:
|
|
411
|
+
}, Me = {
|
|
412
|
+
$style: Te
|
|
413
|
+
}, Ve = /* @__PURE__ */ y(ke, [["__cssModules", Me]]), We = ["data-top-badge"], Be = {
|
|
414
|
+
key: 1,
|
|
414
415
|
class: "top-ellipsis"
|
|
415
|
-
},
|
|
416
|
+
}, Le = /* @__PURE__ */ v({
|
|
416
417
|
__name: "button",
|
|
417
418
|
props: {
|
|
418
419
|
color: { default: "blue" },
|
|
@@ -423,15 +424,17 @@ ${o.value}` : "") : o.value);
|
|
|
423
424
|
icon: {},
|
|
424
425
|
icon2: {},
|
|
425
426
|
href: {},
|
|
427
|
+
badgeNumber: {},
|
|
428
|
+
badgePosAfterText: { type: Boolean },
|
|
426
429
|
disabled: { type: Boolean },
|
|
427
430
|
isSubmit: { type: Boolean },
|
|
428
431
|
isActive: { type: Boolean },
|
|
429
432
|
isProgress: { type: Boolean }
|
|
430
433
|
},
|
|
431
434
|
setup(t) {
|
|
432
|
-
const a = t, o =
|
|
433
|
-
return (s, e) => (u(),
|
|
434
|
-
class:
|
|
435
|
+
const a = t, o = w(() => a.href ? "a" : "button"), n = w(() => a.isSubmit ? "submit" : void 0);
|
|
436
|
+
return (s, e) => (u(), T(ee(o.value), {
|
|
437
|
+
class: g({
|
|
435
438
|
"top-active": s.isActive,
|
|
436
439
|
"top-disabled": s.disabled,
|
|
437
440
|
"top-forms-focusable": !s.disabled,
|
|
@@ -452,21 +455,28 @@ ${o.value}` : "") : o.value);
|
|
|
452
455
|
inProgress: s.isProgress
|
|
453
456
|
}, {
|
|
454
457
|
default: L(() => [
|
|
455
|
-
s
|
|
458
|
+
s.badgeNumber ? (u(), f("span", {
|
|
459
|
+
key: 0,
|
|
460
|
+
"data-top-badge": s.badgeNumber,
|
|
461
|
+
class: g(["top-button_badge", {
|
|
462
|
+
"top-button_badge-afterText": s.badgePosAfterText
|
|
463
|
+
}])
|
|
464
|
+
}, null, 10, We)) : h("", !0),
|
|
465
|
+
s.$slots.default ? (u(), f("span", Be, [
|
|
456
466
|
k(s.$slots, "default", {}, () => [
|
|
457
|
-
|
|
467
|
+
te(V(s.icon ? "" : "Button"), 1)
|
|
458
468
|
])
|
|
459
|
-
])) :
|
|
469
|
+
])) : h("", !0),
|
|
460
470
|
k(s.$slots, "html")
|
|
461
471
|
]),
|
|
462
472
|
_: 3
|
|
463
473
|
}, 8, ["class", "name", "title", "href", "type", "data-top-icon", "data-top-icon2", "disabled", "inProgress"]));
|
|
464
474
|
}
|
|
465
|
-
}),
|
|
475
|
+
}), Ee = "_progress_13336_1", ze = {
|
|
466
476
|
"top-button": "top-button",
|
|
467
477
|
"top-active": "top-active",
|
|
468
478
|
"top-button-progress": "top-button-progress",
|
|
469
|
-
progress:
|
|
479
|
+
progress: Ee,
|
|
470
480
|
"top-button-withoutText": "top-button-withoutText",
|
|
471
481
|
"top-color_blue": "top-color_blue",
|
|
472
482
|
"top-color_green": "top-color_green",
|
|
@@ -477,20 +487,23 @@ ${o.value}` : "") : o.value);
|
|
|
477
487
|
"top-style_outline": "top-style_outline",
|
|
478
488
|
"top-style_soft": "top-style_soft",
|
|
479
489
|
"top-style_transparent": "top-style_transparent",
|
|
490
|
+
"top-ellipsis": "top-ellipsis",
|
|
491
|
+
"top-size_xs": "top-size_xs",
|
|
492
|
+
"top-size_m": "top-size_m",
|
|
480
493
|
"top-size_l": "top-size_l",
|
|
481
|
-
"top-
|
|
482
|
-
},
|
|
483
|
-
$style:
|
|
484
|
-
},
|
|
494
|
+
"top-button_badge-afterText": "top-button_badge-afterText"
|
|
495
|
+
}, De = {
|
|
496
|
+
$style: ze
|
|
497
|
+
}, Pe = /* @__PURE__ */ y(Le, [["__cssModules", De]]), Ae = { class: "top-forms-optionLabel" }, Ne = /* @__PURE__ */ v({
|
|
485
498
|
__name: "controlLabel",
|
|
486
499
|
props: {
|
|
487
500
|
description: {},
|
|
488
501
|
disabled: { type: Boolean }
|
|
489
502
|
},
|
|
490
503
|
setup(t) {
|
|
491
|
-
return (a, o) => (u(), f("div",
|
|
504
|
+
return (a, o) => (u(), f("div", Ae, [
|
|
492
505
|
S("div", {
|
|
493
|
-
class:
|
|
506
|
+
class: g({
|
|
494
507
|
"top-forms-optionLabel_title": !0,
|
|
495
508
|
"top-forms-optionLabel_title-disabled": a.disabled
|
|
496
509
|
})
|
|
@@ -499,8 +512,8 @@ ${o.value}` : "") : o.value);
|
|
|
499
512
|
], 2),
|
|
500
513
|
a.description ? (u(), f("div", {
|
|
501
514
|
key: 0,
|
|
502
|
-
class:
|
|
503
|
-
}, V(a.description), 3)) :
|
|
515
|
+
class: g(["top-forms-optionLabel_description", { "top-forms-optionLabel_description-disabled": a.disabled }])
|
|
516
|
+
}, V(a.description), 3)) : h("", !0)
|
|
504
517
|
]));
|
|
505
518
|
}
|
|
506
519
|
}), Re = {
|
|
@@ -511,9 +524,9 @@ ${o.value}` : "") : o.value);
|
|
|
511
524
|
"top-forms-optionLabel_description-disabled": "top-forms-optionLabel_description-disabled"
|
|
512
525
|
}, Ce = {
|
|
513
526
|
$style: Re
|
|
514
|
-
}, P = /* @__PURE__ */ y(
|
|
527
|
+
}, P = /* @__PURE__ */ y(Ne, [["__cssModules", Ce]]), Oe = ["name", "value", "indeterminate", "disabled"], He = /* @__PURE__ */ v({
|
|
515
528
|
__name: "checkbox",
|
|
516
|
-
props: /* @__PURE__ */
|
|
529
|
+
props: /* @__PURE__ */ C({
|
|
517
530
|
modelValue: { type: [Boolean, Array, Set] },
|
|
518
531
|
name: {},
|
|
519
532
|
value: {},
|
|
@@ -527,9 +540,9 @@ ${o.value}` : "") : o.value);
|
|
|
527
540
|
}),
|
|
528
541
|
emits: ["update:modelValue"],
|
|
529
542
|
setup(t) {
|
|
530
|
-
const a =
|
|
543
|
+
const a = Q(t, "modelValue");
|
|
531
544
|
return (o, n) => (u(), f("label", {
|
|
532
|
-
class:
|
|
545
|
+
class: g({
|
|
533
546
|
"top-forms-optionWrapper": !0,
|
|
534
547
|
"top-checkbox": !0,
|
|
535
548
|
["top-checkbox_" + o.name]: !!o.name,
|
|
@@ -539,7 +552,7 @@ ${o.value}` : "") : o.value);
|
|
|
539
552
|
}, [
|
|
540
553
|
W(S("input", {
|
|
541
554
|
type: "checkbox",
|
|
542
|
-
class:
|
|
555
|
+
class: g({
|
|
543
556
|
"top-forms-focusable": !o.disabled,
|
|
544
557
|
"top-forms-option": !0,
|
|
545
558
|
"top-checkbox_input": !0,
|
|
@@ -550,10 +563,10 @@ ${o.value}` : "") : o.value);
|
|
|
550
563
|
value: o.value,
|
|
551
564
|
indeterminate: o.indeterminate,
|
|
552
565
|
disabled: o.disabled
|
|
553
|
-
}, null, 10,
|
|
554
|
-
[
|
|
566
|
+
}, null, 10, Oe), [
|
|
567
|
+
[J, a.value]
|
|
555
568
|
]),
|
|
556
|
-
o.$slots.default ? (u(),
|
|
569
|
+
o.$slots.default ? (u(), T(P, {
|
|
557
570
|
key: 0,
|
|
558
571
|
description: o.description,
|
|
559
572
|
disabled: o.disabled
|
|
@@ -562,16 +575,16 @@ ${o.value}` : "") : o.value);
|
|
|
562
575
|
k(o.$slots, "default")
|
|
563
576
|
]),
|
|
564
577
|
_: 3
|
|
565
|
-
}, 8, ["description", "disabled"])) :
|
|
578
|
+
}, 8, ["description", "disabled"])) : h("", !0)
|
|
566
579
|
], 2));
|
|
567
580
|
}
|
|
568
|
-
}),
|
|
581
|
+
}), Ie = {
|
|
569
582
|
"top-checkbox": "top-checkbox",
|
|
570
583
|
"top-checkbox_input": "top-checkbox_input",
|
|
571
584
|
"top-error": "top-error"
|
|
572
|
-
},
|
|
573
|
-
$style:
|
|
574
|
-
},
|
|
585
|
+
}, Fe = {
|
|
586
|
+
$style: Ie
|
|
587
|
+
}, Ue = /* @__PURE__ */ y(He, [["__cssModules", Fe]]), Xe = ["title"], Ye = /* @__PURE__ */ v({
|
|
575
588
|
__name: "hint",
|
|
576
589
|
props: {
|
|
577
590
|
hint: {}
|
|
@@ -581,24 +594,24 @@ ${o.value}` : "") : o.value);
|
|
|
581
594
|
class: "top-hint",
|
|
582
595
|
"data-top-icon": "",
|
|
583
596
|
title: a.hint
|
|
584
|
-
}, null, 8,
|
|
597
|
+
}, null, 8, Xe));
|
|
585
598
|
}
|
|
586
|
-
}),
|
|
599
|
+
}), qe = {
|
|
587
600
|
"top-hint": "top-hint"
|
|
588
|
-
},
|
|
589
|
-
$style:
|
|
590
|
-
},
|
|
601
|
+
}, Ke = {
|
|
602
|
+
$style: qe
|
|
603
|
+
}, j = /* @__PURE__ */ y(Ye, [["__cssModules", Ke]]), Ge = {
|
|
591
604
|
"top-loadbar": "top-loadbar"
|
|
592
|
-
},
|
|
593
|
-
function
|
|
594
|
-
return u(), f("div",
|
|
605
|
+
}, Qe = {}, Je = { class: "top-loadbar" };
|
|
606
|
+
function Ze(t, a) {
|
|
607
|
+
return u(), f("div", Je);
|
|
595
608
|
}
|
|
596
|
-
const
|
|
609
|
+
const je = {
|
|
597
610
|
$style: Ge
|
|
598
|
-
},
|
|
611
|
+
}, x = /* @__PURE__ */ y(Qe, [["render", Ze], ["__cssModules", je]]), xe = ["data-top-icon", "data-top-icon2"], et = ["name", "title", "placeholder", "disabled", "readonly"], tt = {
|
|
599
612
|
key: 2,
|
|
600
613
|
class: "top-formsCaption"
|
|
601
|
-
},
|
|
614
|
+
}, ot = /* @__PURE__ */ v({
|
|
602
615
|
inheritAttrs: !1,
|
|
603
616
|
__name: "input",
|
|
604
617
|
props: {
|
|
@@ -618,18 +631,18 @@ const Ze = {
|
|
|
618
631
|
},
|
|
619
632
|
emits: ["update:modelValue"],
|
|
620
633
|
setup(t, { emit: a }) {
|
|
621
|
-
const o = t, n = a, s =
|
|
634
|
+
const o = t, n = a, s = w({
|
|
622
635
|
get() {
|
|
623
636
|
return o.modelValue;
|
|
624
637
|
},
|
|
625
638
|
set(i) {
|
|
626
639
|
n("update:modelValue", i);
|
|
627
640
|
}
|
|
628
|
-
}), e =
|
|
641
|
+
}), e = w(() => o.addCleaner && !o.title || o.captionType !== "" ? "" : o.title), d = (i) => {
|
|
629
642
|
o.modelValue && i.stopPropagation(), n("update:modelValue", "");
|
|
630
643
|
};
|
|
631
644
|
return (i, m) => (u(), f("label", {
|
|
632
|
-
class:
|
|
645
|
+
class: g({
|
|
633
646
|
"top-input": !0,
|
|
634
647
|
["top-size_" + i.size]: !0,
|
|
635
648
|
"top-disabled": i.disabled,
|
|
@@ -641,7 +654,7 @@ const Ze = {
|
|
|
641
654
|
"data-top-icon": i.icon,
|
|
642
655
|
"data-top-icon2": i.icon2
|
|
643
656
|
}, [
|
|
644
|
-
i.isLoading ? (u(),
|
|
657
|
+
i.isLoading ? (u(), T(x, { key: 0 })) : h("", !0),
|
|
645
658
|
W(S("input", D({
|
|
646
659
|
type: "text",
|
|
647
660
|
class: {
|
|
@@ -657,32 +670,32 @@ const Ze = {
|
|
|
657
670
|
placeholder: e.value,
|
|
658
671
|
disabled: i.disabled,
|
|
659
672
|
readonly: i.readonly,
|
|
660
|
-
onKeydown: m[1] || (m[1] =
|
|
661
|
-
}, i.$attrs), null, 16,
|
|
662
|
-
[
|
|
673
|
+
onKeydown: m[1] || (m[1] = oe((r) => (i.addCleaner || !!i.$slots.btn) && d(r), ["esc"]))
|
|
674
|
+
}, i.$attrs), null, 16, et), [
|
|
675
|
+
[Z, s.value]
|
|
663
676
|
]),
|
|
664
677
|
i.addCleaner && s.value && s.value !== "0000-00-00" ? (u(), f("span", {
|
|
665
678
|
key: 1,
|
|
666
679
|
class: "top-input_cleaner",
|
|
667
680
|
"data-top-icon": "",
|
|
668
|
-
onClick:
|
|
669
|
-
})) :
|
|
670
|
-
i.captionType !== "" ? (u(), f("span",
|
|
681
|
+
onClick: se(d, ["prevent"])
|
|
682
|
+
})) : h("", !0),
|
|
683
|
+
i.captionType !== "" ? (u(), f("span", tt, V(i.title), 1)) : h("", !0),
|
|
671
684
|
k(i.$slots, "default")
|
|
672
|
-
], 10,
|
|
685
|
+
], 10, xe));
|
|
673
686
|
}
|
|
674
|
-
}),
|
|
687
|
+
}), st = {
|
|
675
688
|
"top-input": "top-input",
|
|
676
689
|
"top-input_input": "top-input_input",
|
|
677
690
|
"top-input-withCleaner": "top-input-withCleaner",
|
|
678
691
|
"top-input_cleaner": "top-input_cleaner",
|
|
679
692
|
"top-loadbar": "top-loadbar"
|
|
680
|
-
},
|
|
681
|
-
$style:
|
|
682
|
-
}, O = /* @__PURE__ */ y(
|
|
683
|
-
let
|
|
693
|
+
}, at = {
|
|
694
|
+
$style: st
|
|
695
|
+
}, O = /* @__PURE__ */ y(ot, [["__cssModules", at]]), nt = ["modelValue"], it = !!document.documentElement.ontouchstart && !!document.createElement("input").showPicker;
|
|
696
|
+
let q = (t) => {
|
|
684
697
|
};
|
|
685
|
-
const
|
|
698
|
+
const rt = /* @__PURE__ */ v({
|
|
686
699
|
__name: "inputDate",
|
|
687
700
|
props: {
|
|
688
701
|
modelValue: {},
|
|
@@ -702,39 +715,39 @@ const it = /* @__PURE__ */ v({
|
|
|
702
715
|
emits: ["update:modelValue"],
|
|
703
716
|
setup(t, { emit: a }) {
|
|
704
717
|
const o = t, n = a;
|
|
705
|
-
|
|
718
|
+
ae(() => {
|
|
706
719
|
e && e.datepicker("destroy");
|
|
707
720
|
});
|
|
708
|
-
const s =
|
|
721
|
+
const s = ne();
|
|
709
722
|
let e;
|
|
710
|
-
const d =
|
|
723
|
+
const d = w({
|
|
711
724
|
get() {
|
|
712
725
|
return B(o.modelValue, 2, void 0, "0000-00-00");
|
|
713
726
|
},
|
|
714
727
|
set(l) {
|
|
715
|
-
l =
|
|
728
|
+
l = Y(l, "0000-00-00"), n("update:modelValue", l);
|
|
716
729
|
}
|
|
717
730
|
});
|
|
718
731
|
let i = (l) => {
|
|
719
|
-
|
|
732
|
+
q(l);
|
|
720
733
|
}, m = (l) => {
|
|
721
|
-
const p =
|
|
722
|
-
if (!
|
|
734
|
+
const p = Y(l.target.value), b = B(p);
|
|
735
|
+
if (!b || b === c.L.Not_date || l.target.value !== b) {
|
|
723
736
|
l.target.value = d.value;
|
|
724
737
|
return;
|
|
725
738
|
}
|
|
726
739
|
d.value = l.target.value;
|
|
727
740
|
};
|
|
728
741
|
async function r(l) {
|
|
729
|
-
const p = await import("./datepicker-
|
|
730
|
-
|
|
742
|
+
const p = await import("./datepicker-DTNYG8Iy.es.js");
|
|
743
|
+
q = p.oninput, e = p.connectDatepicker(l.target, {
|
|
731
744
|
onSelect: () => m(l)
|
|
732
745
|
}), e && e.datepicker("show");
|
|
733
746
|
}
|
|
734
|
-
return (l, p) => A(
|
|
747
|
+
return (l, p) => A(it) ? (u(), T(O, D({ key: 0 }, l.$props, {
|
|
735
748
|
modelValue: d.value,
|
|
736
749
|
readonly: "",
|
|
737
|
-
onClick: p[1] || (p[1] = (
|
|
750
|
+
onClick: p[1] || (p[1] = (b) => s.value.showPicker())
|
|
738
751
|
}), {
|
|
739
752
|
default: L(() => [
|
|
740
753
|
S("input", {
|
|
@@ -743,41 +756,41 @@ const it = /* @__PURE__ */ v({
|
|
|
743
756
|
type: "date",
|
|
744
757
|
class: "top-input_input-date",
|
|
745
758
|
modelValue: l.modelValue,
|
|
746
|
-
onChange: p[0] || (p[0] = (
|
|
759
|
+
onChange: p[0] || (p[0] = (b) => d.value = b.target.value),
|
|
747
760
|
tabindex: "-1"
|
|
748
|
-
}, null, 40,
|
|
761
|
+
}, null, 40, nt)
|
|
749
762
|
]),
|
|
750
763
|
_: 1
|
|
751
|
-
}, 16, ["modelValue"])) : (u(),
|
|
764
|
+
}, 16, ["modelValue"])) : (u(), T(O, D({ key: 1 }, l.$props, {
|
|
752
765
|
modelValue: d.value,
|
|
753
|
-
"onUpdate:modelValue": p[2] || (p[2] = (
|
|
766
|
+
"onUpdate:modelValue": p[2] || (p[2] = (b) => b === "" ? d.value = "" : ""),
|
|
754
767
|
onInput: A(i),
|
|
755
768
|
onFocusOnce: r,
|
|
756
769
|
onChange: A(m),
|
|
757
770
|
modificator: "datepicker"
|
|
758
771
|
}), null, 16, ["modelValue", "onInput", "onChange"]));
|
|
759
772
|
}
|
|
760
|
-
}),
|
|
773
|
+
}), lt = {
|
|
761
774
|
"top-input-datepicker": "top-input-datepicker",
|
|
762
775
|
"top-input_input-date": "top-input_input-date"
|
|
763
|
-
},
|
|
764
|
-
$style:
|
|
765
|
-
},
|
|
776
|
+
}, dt = {
|
|
777
|
+
$style: lt
|
|
778
|
+
}, pt = /* @__PURE__ */ y(rt, [["__cssModules", dt]]), ut = { class: "top-inputRange" }, ct = /* @__PURE__ */ S("span", { class: "top-inputRange_dash" }, " — ", -1), mt = /* @__PURE__ */ v({
|
|
766
779
|
__name: "inputRange",
|
|
767
780
|
setup(t) {
|
|
768
|
-
return (a, o) => (u(), f("div",
|
|
781
|
+
return (a, o) => (u(), f("div", ut, [
|
|
769
782
|
k(a.$slots, "from"),
|
|
770
|
-
|
|
783
|
+
ct,
|
|
771
784
|
k(a.$slots, "to")
|
|
772
785
|
]));
|
|
773
786
|
}
|
|
774
|
-
}),
|
|
787
|
+
}), ft = {
|
|
775
788
|
"top-inputRange": "top-inputRange",
|
|
776
789
|
"top-inputRange_dash": "top-inputRange_dash",
|
|
777
790
|
"top-input": "top-input"
|
|
778
|
-
},
|
|
779
|
-
$style:
|
|
780
|
-
}, ht = /* @__PURE__ */ y(
|
|
791
|
+
}, bt = {
|
|
792
|
+
$style: ft
|
|
793
|
+
}, ht = /* @__PURE__ */ y(mt, [["__cssModules", bt]]), gt = ["name", "value", "disabled"], wt = /* @__PURE__ */ v({
|
|
781
794
|
__name: "radio",
|
|
782
795
|
props: {
|
|
783
796
|
modelValue: {},
|
|
@@ -789,7 +802,7 @@ const it = /* @__PURE__ */ v({
|
|
|
789
802
|
},
|
|
790
803
|
emits: ["update:modelValue"],
|
|
791
804
|
setup(t, { emit: a }) {
|
|
792
|
-
const o = t, n = a, s =
|
|
805
|
+
const o = t, n = a, s = w({
|
|
793
806
|
get() {
|
|
794
807
|
return o.modelValue;
|
|
795
808
|
},
|
|
@@ -798,7 +811,7 @@ const it = /* @__PURE__ */ v({
|
|
|
798
811
|
}
|
|
799
812
|
});
|
|
800
813
|
return (e, d) => (u(), f("label", {
|
|
801
|
-
class:
|
|
814
|
+
class: g({
|
|
802
815
|
"top-forms-optionWrapper": !0,
|
|
803
816
|
"top-radio": !0,
|
|
804
817
|
["top-radio_" + e.name]: e.name !== "",
|
|
@@ -808,7 +821,7 @@ const it = /* @__PURE__ */ v({
|
|
|
808
821
|
}, [
|
|
809
822
|
W(S("input", {
|
|
810
823
|
type: "radio",
|
|
811
|
-
class:
|
|
824
|
+
class: g({
|
|
812
825
|
"top-forms-focusable": !e.disabled,
|
|
813
826
|
"top-forms-option": !0,
|
|
814
827
|
"top-radio_input": !0,
|
|
@@ -818,10 +831,10 @@ const it = /* @__PURE__ */ v({
|
|
|
818
831
|
name: e.name,
|
|
819
832
|
value: e.value,
|
|
820
833
|
disabled: e.disabled
|
|
821
|
-
}, null, 10,
|
|
822
|
-
[
|
|
834
|
+
}, null, 10, gt), [
|
|
835
|
+
[ie, s.value]
|
|
823
836
|
]),
|
|
824
|
-
e.$slots.default ? (u(),
|
|
837
|
+
e.$slots.default ? (u(), T(P, {
|
|
825
838
|
key: 0,
|
|
826
839
|
description: e.description,
|
|
827
840
|
disabled: e.disabled
|
|
@@ -830,16 +843,16 @@ const it = /* @__PURE__ */ v({
|
|
|
830
843
|
k(e.$slots, "default")
|
|
831
844
|
]),
|
|
832
845
|
_: 3
|
|
833
|
-
}, 8, ["description", "disabled"])) :
|
|
846
|
+
}, 8, ["description", "disabled"])) : h("", !0)
|
|
834
847
|
], 2));
|
|
835
848
|
}
|
|
836
|
-
}),
|
|
849
|
+
}), yt = {
|
|
837
850
|
"top-radio": "top-radio",
|
|
838
851
|
"top-radio_input": "top-radio_input",
|
|
839
852
|
"top-error": "top-error"
|
|
840
|
-
},
|
|
841
|
-
$style:
|
|
842
|
-
},
|
|
853
|
+
}, vt = {
|
|
854
|
+
$style: yt
|
|
855
|
+
}, $t = /* @__PURE__ */ y(wt, [["__cssModules", vt]]), St = ["name", "value", "disabled"], _t = /* @__PURE__ */ v({
|
|
843
856
|
__name: "switcher",
|
|
844
857
|
props: {
|
|
845
858
|
modelValue: { type: [Boolean, Array, Set] },
|
|
@@ -851,7 +864,7 @@ const it = /* @__PURE__ */ v({
|
|
|
851
864
|
},
|
|
852
865
|
emits: ["update:modelValue"],
|
|
853
866
|
setup(t, { emit: a }) {
|
|
854
|
-
const o = t, n = a, s =
|
|
867
|
+
const o = t, n = a, s = w({
|
|
855
868
|
get() {
|
|
856
869
|
return o.modelValue;
|
|
857
870
|
},
|
|
@@ -860,7 +873,7 @@ const it = /* @__PURE__ */ v({
|
|
|
860
873
|
}
|
|
861
874
|
});
|
|
862
875
|
return (e, d) => (u(), f("label", {
|
|
863
|
-
class:
|
|
876
|
+
class: g({
|
|
864
877
|
"top-forms-optionWrapper": !0,
|
|
865
878
|
"top-checkboxSwitcher": !0,
|
|
866
879
|
"top-disabled": e.disabled,
|
|
@@ -869,7 +882,7 @@ const it = /* @__PURE__ */ v({
|
|
|
869
882
|
}, [
|
|
870
883
|
W(S("input", {
|
|
871
884
|
type: "checkbox",
|
|
872
|
-
class:
|
|
885
|
+
class: g({
|
|
873
886
|
"top-forms-focusable": !e.disabled,
|
|
874
887
|
"top-forms-option": !0,
|
|
875
888
|
"top-checkboxSwitcher_input": !0,
|
|
@@ -879,10 +892,10 @@ const it = /* @__PURE__ */ v({
|
|
|
879
892
|
name: e.name,
|
|
880
893
|
value: e.value,
|
|
881
894
|
disabled: e.disabled
|
|
882
|
-
}, null, 10,
|
|
883
|
-
[
|
|
895
|
+
}, null, 10, St), [
|
|
896
|
+
[J, s.value]
|
|
884
897
|
]),
|
|
885
|
-
e.$slots.default ? (u(),
|
|
898
|
+
e.$slots.default ? (u(), T(P, {
|
|
886
899
|
key: 0,
|
|
887
900
|
description: e.description,
|
|
888
901
|
disabled: e.disabled
|
|
@@ -891,19 +904,19 @@ const it = /* @__PURE__ */ v({
|
|
|
891
904
|
k(e.$slots, "default")
|
|
892
905
|
]),
|
|
893
906
|
_: 3
|
|
894
|
-
}, 8, ["description", "disabled"])) :
|
|
907
|
+
}, 8, ["description", "disabled"])) : h("", !0)
|
|
895
908
|
], 2));
|
|
896
909
|
}
|
|
897
|
-
}),
|
|
910
|
+
}), kt = {
|
|
898
911
|
"top-checkboxSwitcher": "top-checkboxSwitcher",
|
|
899
912
|
"top-checkboxSwitcher_input": "top-checkboxSwitcher_input",
|
|
900
913
|
"top-error": "top-error"
|
|
901
|
-
},
|
|
902
|
-
$style:
|
|
903
|
-
}, Mt = /* @__PURE__ */ y(
|
|
914
|
+
}, Tt = {
|
|
915
|
+
$style: kt
|
|
916
|
+
}, Mt = /* @__PURE__ */ y(_t, [["__cssModules", Tt]]), Vt = ["name", "placeholder", "disabled", "readonly", "rows"], Wt = {
|
|
904
917
|
key: 0,
|
|
905
918
|
class: "top-textarea_pseudoContent"
|
|
906
|
-
},
|
|
919
|
+
}, Bt = /* @__PURE__ */ v({
|
|
907
920
|
inheritAttrs: !1,
|
|
908
921
|
__name: "textarea",
|
|
909
922
|
props: {
|
|
@@ -921,9 +934,9 @@ const it = /* @__PURE__ */ v({
|
|
|
921
934
|
emits: ["update:modelValue"],
|
|
922
935
|
setup(t, { emit: a }) {
|
|
923
936
|
G((e) => ({
|
|
924
|
-
|
|
937
|
+
"403001b8": e.minHeight + "px"
|
|
925
938
|
}));
|
|
926
|
-
const o = t, n = a, s =
|
|
939
|
+
const o = t, n = a, s = w({
|
|
927
940
|
get() {
|
|
928
941
|
return o.modelValue;
|
|
929
942
|
},
|
|
@@ -932,9 +945,9 @@ const it = /* @__PURE__ */ v({
|
|
|
932
945
|
}
|
|
933
946
|
});
|
|
934
947
|
return (e, d) => {
|
|
935
|
-
const i =
|
|
948
|
+
const i = re("top-tooltip");
|
|
936
949
|
return u(), f("label", {
|
|
937
|
-
class:
|
|
950
|
+
class: g({
|
|
938
951
|
"top-textarea": !0,
|
|
939
952
|
["top-textarea-" + e.name]: e.name,
|
|
940
953
|
"top-disabled": e.disabled
|
|
@@ -956,34 +969,34 @@ const it = /* @__PURE__ */ v({
|
|
|
956
969
|
rows: e.expandable ? void 0 : e.rows
|
|
957
970
|
}, e.$attrs, {
|
|
958
971
|
"onUpdate:modelValue": d[0] || (d[0] = (m) => s.value = m)
|
|
959
|
-
}), null, 16,
|
|
960
|
-
[
|
|
972
|
+
}), null, 16, Vt), [
|
|
973
|
+
[Z, s.value]
|
|
961
974
|
]),
|
|
962
|
-
e.expandable ? (u(), f("div",
|
|
963
|
-
e.hint ? W((u(),
|
|
975
|
+
e.expandable ? (u(), f("div", Wt, V(s.value + " "), 1)) : h("", !0),
|
|
976
|
+
e.hint ? W((u(), T(j, {
|
|
964
977
|
key: 1,
|
|
965
978
|
class: "top-textarea_hint",
|
|
966
979
|
hint: e.hint
|
|
967
980
|
}, null, 8, ["hint"])), [
|
|
968
981
|
[i]
|
|
969
|
-
]) :
|
|
982
|
+
]) : h("", !0)
|
|
970
983
|
], 2);
|
|
971
984
|
};
|
|
972
985
|
}
|
|
973
|
-
}),
|
|
986
|
+
}), Lt = {
|
|
974
987
|
"top-textarea": "top-textarea",
|
|
975
988
|
"top-textarea_textarea": "top-textarea_textarea",
|
|
976
989
|
"top-textarea_textarea-expandable": "top-textarea_textarea-expandable",
|
|
977
990
|
"top-textarea_pseudoContent": "top-textarea_pseudoContent",
|
|
978
991
|
"top-textarea_hint": "top-textarea_hint"
|
|
979
|
-
},
|
|
980
|
-
$style:
|
|
981
|
-
},
|
|
992
|
+
}, Et = {
|
|
993
|
+
$style: Lt
|
|
994
|
+
}, zt = /* @__PURE__ */ y(Bt, [["__cssModules", Et]]), Dt = ["data-value", "data-top-icon", "data-top-icon2"], Pt = ["name", "disabled"], At = ["label", "disabled"], Nt = ["value", "selected", "disabled"], Rt = ["value", "selected", "disabled"], Ct = {
|
|
982
995
|
key: 1,
|
|
983
996
|
class: "top-formsCaption"
|
|
984
|
-
},
|
|
997
|
+
}, Ot = /* @__PURE__ */ v({
|
|
985
998
|
__name: "select",
|
|
986
|
-
props: /* @__PURE__ */
|
|
999
|
+
props: /* @__PURE__ */ C({
|
|
987
1000
|
modelValue: {},
|
|
988
1001
|
options: {},
|
|
989
1002
|
name: {},
|
|
@@ -999,20 +1012,20 @@ const it = /* @__PURE__ */ v({
|
|
|
999
1012
|
},
|
|
1000
1013
|
modelModifiers: {}
|
|
1001
1014
|
}),
|
|
1002
|
-
emits: /* @__PURE__ */
|
|
1015
|
+
emits: /* @__PURE__ */ C(["update:modelValue"], ["update:modelValue"]),
|
|
1003
1016
|
setup(t, { emit: a }) {
|
|
1004
|
-
const o = t, n =
|
|
1017
|
+
const o = t, n = Q(t, "modelValue"), s = w(() => {
|
|
1005
1018
|
const r = /* @__PURE__ */ new Map();
|
|
1006
1019
|
return o.options.forEach((l, p) => {
|
|
1007
1020
|
if (typeof l == "string" && (l = d(p, l)), l.children) {
|
|
1008
|
-
const
|
|
1021
|
+
const b = /* @__PURE__ */ new Map();
|
|
1009
1022
|
l.children.forEach((_, E) => {
|
|
1010
|
-
typeof _ == "string" && (_ = d(E, _)),
|
|
1011
|
-
}), l = { ...l }, l.children =
|
|
1023
|
+
typeof _ == "string" && (_ = d(E, _)), b.set(_.value, _);
|
|
1024
|
+
}), l = { ...l }, l.children = b, r.set(l.value, l);
|
|
1012
1025
|
} else
|
|
1013
1026
|
r.set(l.value, l);
|
|
1014
1027
|
}), r;
|
|
1015
|
-
}), e =
|
|
1028
|
+
}), e = w(() => {
|
|
1016
1029
|
const r = /* @__PURE__ */ new Map();
|
|
1017
1030
|
return s.value.forEach((l) => {
|
|
1018
1031
|
if (!l.disabled) {
|
|
@@ -1029,13 +1042,13 @@ const it = /* @__PURE__ */ v({
|
|
|
1029
1042
|
value: r,
|
|
1030
1043
|
title: l
|
|
1031
1044
|
});
|
|
1032
|
-
|
|
1045
|
+
le([
|
|
1033
1046
|
() => o.modelValue,
|
|
1034
1047
|
e
|
|
1035
1048
|
], () => {
|
|
1036
1049
|
(n.value === null || n.value === void 0) && e.value.size && (console.warn("Пожалуйста, не передавайте в компонент Select значения null и undefined"), n.value = e.value.keys().next().value);
|
|
1037
1050
|
}, { immediate: !0 });
|
|
1038
|
-
const i =
|
|
1051
|
+
const i = w(() => {
|
|
1039
1052
|
var r;
|
|
1040
1053
|
return (r = e.value.get(n.value)) == null ? void 0 : r.icon;
|
|
1041
1054
|
}), m = () => {
|
|
@@ -1043,7 +1056,7 @@ const it = /* @__PURE__ */ v({
|
|
|
1043
1056
|
n.value = r[p];
|
|
1044
1057
|
};
|
|
1045
1058
|
return (r, l) => (u(), f("label", {
|
|
1046
|
-
class:
|
|
1059
|
+
class: g({
|
|
1047
1060
|
"top-select": !0,
|
|
1048
1061
|
["top-select-" + r.name]: r.name,
|
|
1049
1062
|
["top-size_" + r.size]: !0,
|
|
@@ -1056,7 +1069,7 @@ const it = /* @__PURE__ */ v({
|
|
|
1056
1069
|
"data-top-icon2": i.value
|
|
1057
1070
|
}, [
|
|
1058
1071
|
W(S("select", {
|
|
1059
|
-
class:
|
|
1072
|
+
class: g({
|
|
1060
1073
|
"top-forms-focusable": !r.disabled,
|
|
1061
1074
|
"top-select_select": !0,
|
|
1062
1075
|
"top-select_arrow": !0,
|
|
@@ -1066,82 +1079,83 @@ const it = /* @__PURE__ */ v({
|
|
|
1066
1079
|
disabled: r.disabled,
|
|
1067
1080
|
"onUpdate:modelValue": l[0] || (l[0] = (p) => n.value = p)
|
|
1068
1081
|
}, [
|
|
1069
|
-
(u(!0), f(
|
|
1070
|
-
|
|
1082
|
+
(u(!0), f(N, null, F(s.value, ([p, b]) => (u(), f(N, null, [
|
|
1083
|
+
b.children ? (u(), f("optgroup", {
|
|
1071
1084
|
key: "group_" + p,
|
|
1072
|
-
label:
|
|
1073
|
-
disabled:
|
|
1085
|
+
label: b.title,
|
|
1086
|
+
disabled: b.disabled
|
|
1074
1087
|
}, [
|
|
1075
|
-
(u(!0), f(
|
|
1088
|
+
(u(!0), f(N, null, F(b.children, ([_, E]) => (u(), f("option", {
|
|
1076
1089
|
key: _,
|
|
1077
1090
|
value: _,
|
|
1078
1091
|
selected: _ === n.value,
|
|
1079
1092
|
disabled: E.disabled
|
|
1080
|
-
}, V(E.title), 9,
|
|
1081
|
-
], 8,
|
|
1093
|
+
}, V(E.title), 9, Nt))), 128))
|
|
1094
|
+
], 8, At)) : (u(), f("option", {
|
|
1082
1095
|
key: p ?? void 0,
|
|
1083
1096
|
value: p,
|
|
1084
1097
|
selected: p === n.value,
|
|
1085
|
-
disabled:
|
|
1086
|
-
}, V(
|
|
1098
|
+
disabled: b.disabled
|
|
1099
|
+
}, V(b.title), 9, Rt))
|
|
1087
1100
|
], 64))), 256))
|
|
1088
|
-
], 10,
|
|
1089
|
-
[
|
|
1101
|
+
], 10, Pt), [
|
|
1102
|
+
[de, n.value]
|
|
1090
1103
|
]),
|
|
1091
1104
|
r.addChanger && e.value.size && !r.disabled ? (u(), f("span", {
|
|
1092
1105
|
key: 0,
|
|
1093
1106
|
class: "top-changer",
|
|
1094
1107
|
onClick: m
|
|
1095
|
-
})) :
|
|
1096
|
-
r.title ? (u(), f("span", Ct, V(r.title), 1)) :
|
|
1097
|
-
], 10,
|
|
1108
|
+
})) : h("", !0),
|
|
1109
|
+
r.title ? (u(), f("span", Ct, V(r.title), 1)) : h("", !0)
|
|
1110
|
+
], 10, Dt));
|
|
1098
1111
|
}
|
|
1099
|
-
}),
|
|
1112
|
+
}), Ht = {
|
|
1100
1113
|
"top-select": "top-select",
|
|
1101
1114
|
"top-select-error": "top-select-error",
|
|
1102
1115
|
"top-select_select": "top-select_select",
|
|
1103
1116
|
"top-changer": "top-changer"
|
|
1104
|
-
},
|
|
1105
|
-
$style:
|
|
1106
|
-
},
|
|
1117
|
+
}, It = {
|
|
1118
|
+
$style: Ht
|
|
1119
|
+
}, Ft = /* @__PURE__ */ y(Ot, [["__cssModules", It]]), eo = Ve, to = Pe, oo = Ue, so = P, ao = j, no = O, io = pt, ro = ht, lo = $t, po = Mt, uo = zt, co = Ft, mo = x;
|
|
1107
1120
|
export {
|
|
1108
|
-
|
|
1109
|
-
|
|
1121
|
+
Gt as A,
|
|
1122
|
+
fe as B,
|
|
1110
1123
|
c as C,
|
|
1111
1124
|
Qt as D,
|
|
1112
|
-
|
|
1125
|
+
X as E,
|
|
1113
1126
|
Jt as F,
|
|
1114
1127
|
Zt as G,
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1128
|
+
jt as H,
|
|
1129
|
+
ve as I,
|
|
1130
|
+
xt as J,
|
|
1131
|
+
Y as K,
|
|
1132
|
+
Pe as T,
|
|
1119
1133
|
y as _,
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1134
|
+
eo as a,
|
|
1135
|
+
to as b,
|
|
1136
|
+
oo as c,
|
|
1123
1137
|
B as d,
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1138
|
+
so as e,
|
|
1139
|
+
ao as f,
|
|
1140
|
+
no as g,
|
|
1141
|
+
io as h,
|
|
1142
|
+
Xt as i,
|
|
1143
|
+
ro as j,
|
|
1144
|
+
mo as k,
|
|
1145
|
+
lo as l,
|
|
1146
|
+
co as m,
|
|
1147
|
+
po as n,
|
|
1148
|
+
uo as o,
|
|
1149
|
+
j as p,
|
|
1150
|
+
O as q,
|
|
1151
|
+
zt as r,
|
|
1152
|
+
x as s,
|
|
1139
1153
|
pe as t,
|
|
1140
1154
|
ue as u,
|
|
1141
1155
|
ce as v,
|
|
1142
|
-
|
|
1156
|
+
me as w,
|
|
1143
1157
|
Yt as x,
|
|
1144
1158
|
qt as y,
|
|
1145
|
-
|
|
1159
|
+
Kt as z
|
|
1146
1160
|
};
|
|
1147
|
-
//# sourceMappingURL=forms-
|
|
1161
|
+
//# sourceMappingURL=forms-NfVxcPud.es.js.map
|