@topvisor/ui 0.9.37 → 1.0.0-colors-3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.chunks/{datepicker-D_95vv2c.amd.js → datepicker-CGWwMJRV.amd.js} +10 -10
- package/.chunks/datepicker-CGWwMJRV.amd.js.map +1 -0
- package/.chunks/{datepicker-CcRVcC5P.es.js → datepicker-INKeNnsk.es.js} +22 -22
- package/.chunks/datepicker-INKeNnsk.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-BZoPbSQt.es.js → forms-BDAati-M.es.js} +264 -249
- package/.chunks/forms-BDAati-M.es.js.map +1 -0
- package/.chunks/forms-ZqLh7cu5.amd.js +3 -0
- package/.chunks/forms-ZqLh7cu5.amd.js.map +1 -0
- package/.chunks/i18n-C_OH9IT3.amd.js +2 -0
- package/.chunks/{i18n-eDh3Aaw9.amd.js.map → i18n-C_OH9IT3.amd.js.map} +1 -1
- package/.chunks/i18n-DuTvft1T.es.js +26 -0
- package/.chunks/{i18n-qpB8zyhD.es.js.map → i18n-DuTvft1T.es.js.map} +1 -1
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-B-fUb36w.amd.js +2 -0
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-B-fUb36w.amd.js.map +1 -0
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CaEDfkda.es.js +174 -0
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CaEDfkda.es.js.map +1 -0
- package/.chunks/menu-BDD1uC-t.amd.js +2 -0
- package/.chunks/menu-BDD1uC-t.amd.js.map +1 -0
- package/.chunks/{menu-DDYYS64d.es.js → menu-DJZI8eh6.es.js} +30 -32
- package/.chunks/menu-DJZI8eh6.es.js.map +1 -0
- package/.chunks/{popup-Bc6YggdE.es.js → popup-C18N-1yr.es.js} +23 -17
- package/.chunks/popup-C18N-1yr.es.js.map +1 -0
- package/.chunks/{popup-BFJ2eTTB.amd.js → popup-C497Sl7G.amd.js} +16 -10
- package/.chunks/popup-C497Sl7G.amd.js.map +1 -0
- package/assets/core.css +1 -1
- package/assets/dark.css +1 -1
- package/assets/forms.css +1 -1
- package/assets/formsExt.css +1 -1
- package/assets/light.css +1 -1
- package/assets/listItem.css +1 -1
- package/assets/menu.css +1 -1
- package/assets/tabs.css +1 -1
- package/assets/tabsView.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.d.ts +1 -0
- 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/package.json +1 -2
- 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/tabs/tabs.amd.js +1 -1
- package/tabs/tabs.d.ts +1 -0
- package/tabs/tabs.js +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.d.ts +1 -0
- package/utils/clipboard.d.ts +1 -0
- 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.d.ts +3 -0
- package/utils/image.d.ts +1 -0
- package/utils/keyboard.d.ts +1 -0
- 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.d.ts +1 -0
- package/utils/price.amd.js +1 -1
- package/utils/price.d.ts +1 -0
- package/utils/price.js +2 -2
- package/utils/route.d.ts +1 -0
- package/utils/scroll.d.ts +1 -0
- package/utils/store.d.ts +1 -0
- package/utils/string.amd.js +1 -1
- package/utils/string.d.ts +1 -0
- package/utils/string.js +1 -1
- package/utils/system.d.ts +1 -0
- package/utils/url.d.ts +1 -0
- package/.chunks/datepicker-CcRVcC5P.es.js.map +0 -1
- 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-qpB8zyhD.es.js +0 -20
- 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 _, 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 Yt() {
|
|
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 qt() {
|
|
20
|
+
return me() ? "⌘" : "Ctrl";
|
|
21
21
|
}
|
|
22
|
-
const
|
|
22
|
+
const Kt = () => $(document).scrollTop(), Gt = () => $(document), Qt = () => [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
|
+
}, Jt = 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 ?? {}, Zt = (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
|
+
}, jt = (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 xt(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 eo(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/))
|
|
@@ -359,7 +360,7 @@ function X(t, a = c.L.Not_date) {
|
|
|
359
360
|
let m = i + "-" + d + "-" + e;
|
|
360
361
|
return m.match(/\d\d\d\d-\d\d-\d\d/) || (console.info("Неверный формат даты, будет возращена текущая дата, " + m), m = ve((/* @__PURE__ */ new Date()).getTime(), !1).substring(0, 10)), m;
|
|
361
362
|
}
|
|
362
|
-
const $e = { class: "top-avatar" },
|
|
363
|
+
const $e = { class: "top-avatar" }, _e = ["src", "title"], Se = ["title"], ke = /* @__PURE__ */ v({
|
|
363
364
|
__name: "avatar",
|
|
364
365
|
props: {
|
|
365
366
|
size: { default: 64 },
|
|
@@ -374,31 +375,31 @@ const $e = { class: "top-avatar" }, Se = ["src", "title"], _e = ["title"], ke =
|
|
|
374
375
|
},
|
|
375
376
|
setup(t) {
|
|
376
377
|
G((s) => ({
|
|
377
|
-
"
|
|
378
|
+
"32a7c02c": 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
|
+
_("img", {
|
|
389
390
|
class: "top-avatar_image",
|
|
390
391
|
src: s.image,
|
|
391
392
|
title: n.value,
|
|
392
393
|
alt: ""
|
|
393
|
-
}, null, 8,
|
|
394
|
+
}, null, 8, _e),
|
|
394
395
|
s.isOnline ? (u(), f("div", {
|
|
395
396
|
key: 0,
|
|
396
397
|
class: "top-avatar_status",
|
|
397
398
|
title: o.value
|
|
398
|
-
}, null, 8,
|
|
399
|
+
}, null, 8, Se)) : 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_4k8h1_1", ze = "_hover_4k8h1_1", De = {
|
|
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",
|
|
@@ -476,21 +486,25 @@ ${o.value}` : "") : o.value);
|
|
|
476
486
|
"top-color_theme": "top-color_theme",
|
|
477
487
|
"top-style_outline": "top-style_outline",
|
|
478
488
|
"top-style_soft": "top-style_soft",
|
|
489
|
+
hover: ze,
|
|
479
490
|
"top-style_transparent": "top-style_transparent",
|
|
491
|
+
"top-ellipsis": "top-ellipsis",
|
|
492
|
+
"top-size_xs": "top-size_xs",
|
|
493
|
+
"top-size_m": "top-size_m",
|
|
480
494
|
"top-size_l": "top-size_l",
|
|
481
|
-
"top-
|
|
482
|
-
},
|
|
483
|
-
$style:
|
|
484
|
-
},
|
|
495
|
+
"top-button_badge-afterText": "top-button_badge-afterText"
|
|
496
|
+
}, Pe = {
|
|
497
|
+
$style: De
|
|
498
|
+
}, Ae = /* @__PURE__ */ y(Le, [["__cssModules", Pe]]), Ne = { class: "top-forms-optionLabel" }, Re = /* @__PURE__ */ v({
|
|
485
499
|
__name: "controlLabel",
|
|
486
500
|
props: {
|
|
487
501
|
description: {},
|
|
488
502
|
disabled: { type: Boolean }
|
|
489
503
|
},
|
|
490
504
|
setup(t) {
|
|
491
|
-
return (a, o) => (u(), f("div",
|
|
492
|
-
|
|
493
|
-
class:
|
|
505
|
+
return (a, o) => (u(), f("div", Ne, [
|
|
506
|
+
_("div", {
|
|
507
|
+
class: g({
|
|
494
508
|
"top-forms-optionLabel_title": !0,
|
|
495
509
|
"top-forms-optionLabel_title-disabled": a.disabled
|
|
496
510
|
})
|
|
@@ -499,21 +513,21 @@ ${o.value}` : "") : o.value);
|
|
|
499
513
|
], 2),
|
|
500
514
|
a.description ? (u(), f("div", {
|
|
501
515
|
key: 0,
|
|
502
|
-
class:
|
|
503
|
-
}, V(a.description), 3)) :
|
|
516
|
+
class: g(["top-forms-optionLabel_description", { "top-forms-optionLabel_description-disabled": a.disabled }])
|
|
517
|
+
}, V(a.description), 3)) : h("", !0)
|
|
504
518
|
]));
|
|
505
519
|
}
|
|
506
|
-
}),
|
|
520
|
+
}), Ce = {
|
|
507
521
|
"top-forms-optionLabel": "top-forms-optionLabel",
|
|
508
522
|
"top-forms-optionLabel_title": "top-forms-optionLabel_title",
|
|
509
523
|
"top-forms-optionLabel_title-disabled": "top-forms-optionLabel_title-disabled",
|
|
510
524
|
"top-forms-optionLabel_description": "top-forms-optionLabel_description",
|
|
511
525
|
"top-forms-optionLabel_description-disabled": "top-forms-optionLabel_description-disabled"
|
|
512
|
-
},
|
|
513
|
-
$style:
|
|
514
|
-
}, P = /* @__PURE__ */ y(
|
|
526
|
+
}, Oe = {
|
|
527
|
+
$style: Ce
|
|
528
|
+
}, P = /* @__PURE__ */ y(Re, [["__cssModules", Oe]]), He = ["name", "value", "indeterminate", "disabled"], Ie = /* @__PURE__ */ v({
|
|
515
529
|
__name: "checkbox",
|
|
516
|
-
props: /* @__PURE__ */
|
|
530
|
+
props: /* @__PURE__ */ C({
|
|
517
531
|
modelValue: { type: [Boolean, Array, Set] },
|
|
518
532
|
name: {},
|
|
519
533
|
value: {},
|
|
@@ -527,9 +541,9 @@ ${o.value}` : "") : o.value);
|
|
|
527
541
|
}),
|
|
528
542
|
emits: ["update:modelValue"],
|
|
529
543
|
setup(t) {
|
|
530
|
-
const a =
|
|
544
|
+
const a = Q(t, "modelValue");
|
|
531
545
|
return (o, n) => (u(), f("label", {
|
|
532
|
-
class:
|
|
546
|
+
class: g({
|
|
533
547
|
"top-forms-optionWrapper": !0,
|
|
534
548
|
"top-checkbox": !0,
|
|
535
549
|
["top-checkbox_" + o.name]: !!o.name,
|
|
@@ -537,9 +551,9 @@ ${o.value}` : "") : o.value);
|
|
|
537
551
|
"top-error": o.isError && !o.disabled
|
|
538
552
|
})
|
|
539
553
|
}, [
|
|
540
|
-
W(
|
|
554
|
+
W(_("input", {
|
|
541
555
|
type: "checkbox",
|
|
542
|
-
class:
|
|
556
|
+
class: g({
|
|
543
557
|
"top-forms-focusable": !o.disabled,
|
|
544
558
|
"top-forms-option": !0,
|
|
545
559
|
"top-checkbox_input": !0,
|
|
@@ -550,10 +564,10 @@ ${o.value}` : "") : o.value);
|
|
|
550
564
|
value: o.value,
|
|
551
565
|
indeterminate: o.indeterminate,
|
|
552
566
|
disabled: o.disabled
|
|
553
|
-
}, null, 10,
|
|
554
|
-
[
|
|
567
|
+
}, null, 10, He), [
|
|
568
|
+
[J, a.value]
|
|
555
569
|
]),
|
|
556
|
-
o.$slots.default ? (u(),
|
|
570
|
+
o.$slots.default ? (u(), T(P, {
|
|
557
571
|
key: 0,
|
|
558
572
|
description: o.description,
|
|
559
573
|
disabled: o.disabled
|
|
@@ -562,16 +576,16 @@ ${o.value}` : "") : o.value);
|
|
|
562
576
|
k(o.$slots, "default")
|
|
563
577
|
]),
|
|
564
578
|
_: 3
|
|
565
|
-
}, 8, ["description", "disabled"])) :
|
|
579
|
+
}, 8, ["description", "disabled"])) : h("", !0)
|
|
566
580
|
], 2));
|
|
567
581
|
}
|
|
568
|
-
}),
|
|
582
|
+
}), Fe = {
|
|
569
583
|
"top-checkbox": "top-checkbox",
|
|
570
584
|
"top-checkbox_input": "top-checkbox_input",
|
|
571
585
|
"top-error": "top-error"
|
|
572
|
-
},
|
|
573
|
-
$style:
|
|
574
|
-
},
|
|
586
|
+
}, Ue = {
|
|
587
|
+
$style: Fe
|
|
588
|
+
}, Xe = /* @__PURE__ */ y(Ie, [["__cssModules", Ue]]), Ye = ["title"], qe = /* @__PURE__ */ v({
|
|
575
589
|
__name: "hint",
|
|
576
590
|
props: {
|
|
577
591
|
hint: {}
|
|
@@ -581,24 +595,24 @@ ${o.value}` : "") : o.value);
|
|
|
581
595
|
class: "top-hint",
|
|
582
596
|
"data-top-icon": "",
|
|
583
597
|
title: a.hint
|
|
584
|
-
}, null, 8,
|
|
598
|
+
}, null, 8, Ye));
|
|
585
599
|
}
|
|
586
|
-
}),
|
|
600
|
+
}), Ke = {
|
|
587
601
|
"top-hint": "top-hint"
|
|
588
|
-
},
|
|
589
|
-
$style:
|
|
590
|
-
},
|
|
602
|
+
}, Ge = {
|
|
603
|
+
$style: Ke
|
|
604
|
+
}, j = /* @__PURE__ */ y(qe, [["__cssModules", Ge]]), Qe = {
|
|
591
605
|
"top-loadbar": "top-loadbar"
|
|
592
|
-
},
|
|
593
|
-
function
|
|
594
|
-
return u(), f("div",
|
|
606
|
+
}, Je = {}, Ze = { class: "top-loadbar" };
|
|
607
|
+
function je(t, a) {
|
|
608
|
+
return u(), f("div", Ze);
|
|
595
609
|
}
|
|
596
|
-
const
|
|
597
|
-
$style:
|
|
598
|
-
},
|
|
610
|
+
const xe = {
|
|
611
|
+
$style: Qe
|
|
612
|
+
}, x = /* @__PURE__ */ y(Je, [["render", je], ["__cssModules", xe]]), et = ["data-top-icon", "data-top-icon2"], tt = ["name", "title", "placeholder", "disabled", "readonly"], ot = {
|
|
599
613
|
key: 2,
|
|
600
614
|
class: "top-formsCaption"
|
|
601
|
-
},
|
|
615
|
+
}, st = /* @__PURE__ */ v({
|
|
602
616
|
inheritAttrs: !1,
|
|
603
617
|
__name: "input",
|
|
604
618
|
props: {
|
|
@@ -618,18 +632,18 @@ const Ze = {
|
|
|
618
632
|
},
|
|
619
633
|
emits: ["update:modelValue"],
|
|
620
634
|
setup(t, { emit: a }) {
|
|
621
|
-
const o = t, n = a, s =
|
|
635
|
+
const o = t, n = a, s = w({
|
|
622
636
|
get() {
|
|
623
637
|
return o.modelValue;
|
|
624
638
|
},
|
|
625
639
|
set(i) {
|
|
626
640
|
n("update:modelValue", i);
|
|
627
641
|
}
|
|
628
|
-
}), e =
|
|
642
|
+
}), e = w(() => o.addCleaner && !o.title || o.captionType !== "" ? "" : o.title), d = (i) => {
|
|
629
643
|
o.modelValue && i.stopPropagation(), n("update:modelValue", "");
|
|
630
644
|
};
|
|
631
645
|
return (i, m) => (u(), f("label", {
|
|
632
|
-
class:
|
|
646
|
+
class: g({
|
|
633
647
|
"top-input": !0,
|
|
634
648
|
["top-size_" + i.size]: !0,
|
|
635
649
|
"top-disabled": i.disabled,
|
|
@@ -641,8 +655,8 @@ const Ze = {
|
|
|
641
655
|
"data-top-icon": i.icon,
|
|
642
656
|
"data-top-icon2": i.icon2
|
|
643
657
|
}, [
|
|
644
|
-
i.isLoading ? (u(),
|
|
645
|
-
W(
|
|
658
|
+
i.isLoading ? (u(), T(x, { key: 0 })) : h("", !0),
|
|
659
|
+
W(_("input", D({
|
|
646
660
|
type: "text",
|
|
647
661
|
class: {
|
|
648
662
|
"top-input_input": !0,
|
|
@@ -657,32 +671,32 @@ const Ze = {
|
|
|
657
671
|
placeholder: e.value,
|
|
658
672
|
disabled: i.disabled,
|
|
659
673
|
readonly: i.readonly,
|
|
660
|
-
onKeydown: m[1] || (m[1] =
|
|
661
|
-
}, i.$attrs), null, 16,
|
|
662
|
-
[
|
|
674
|
+
onKeydown: m[1] || (m[1] = oe((r) => (i.addCleaner || !!i.$slots.btn) && d(r), ["esc"]))
|
|
675
|
+
}, i.$attrs), null, 16, tt), [
|
|
676
|
+
[Z, s.value]
|
|
663
677
|
]),
|
|
664
678
|
i.addCleaner && s.value && s.value !== "0000-00-00" ? (u(), f("span", {
|
|
665
679
|
key: 1,
|
|
666
680
|
class: "top-input_cleaner",
|
|
667
681
|
"data-top-icon": "",
|
|
668
|
-
onClick:
|
|
669
|
-
})) :
|
|
670
|
-
i.captionType !== "" ? (u(), f("span",
|
|
682
|
+
onClick: se(d, ["prevent"])
|
|
683
|
+
})) : h("", !0),
|
|
684
|
+
i.captionType !== "" ? (u(), f("span", ot, V(i.title), 1)) : h("", !0),
|
|
671
685
|
k(i.$slots, "default")
|
|
672
|
-
], 10,
|
|
686
|
+
], 10, et));
|
|
673
687
|
}
|
|
674
|
-
}),
|
|
688
|
+
}), at = {
|
|
675
689
|
"top-input": "top-input",
|
|
676
690
|
"top-input_input": "top-input_input",
|
|
677
691
|
"top-input-withCleaner": "top-input-withCleaner",
|
|
678
692
|
"top-input_cleaner": "top-input_cleaner",
|
|
679
693
|
"top-loadbar": "top-loadbar"
|
|
680
|
-
},
|
|
681
|
-
$style:
|
|
682
|
-
}, O = /* @__PURE__ */ y(
|
|
683
|
-
let
|
|
694
|
+
}, nt = {
|
|
695
|
+
$style: at
|
|
696
|
+
}, O = /* @__PURE__ */ y(st, [["__cssModules", nt]]), it = ["modelValue"], rt = !!document.documentElement.ontouchstart && !!document.createElement("input").showPicker;
|
|
697
|
+
let q = (t) => {
|
|
684
698
|
};
|
|
685
|
-
const
|
|
699
|
+
const lt = /* @__PURE__ */ v({
|
|
686
700
|
__name: "inputDate",
|
|
687
701
|
props: {
|
|
688
702
|
modelValue: {},
|
|
@@ -702,82 +716,82 @@ const it = /* @__PURE__ */ v({
|
|
|
702
716
|
emits: ["update:modelValue"],
|
|
703
717
|
setup(t, { emit: a }) {
|
|
704
718
|
const o = t, n = a;
|
|
705
|
-
|
|
719
|
+
ae(() => {
|
|
706
720
|
e && e.datepicker("destroy");
|
|
707
721
|
});
|
|
708
|
-
const s =
|
|
722
|
+
const s = ne();
|
|
709
723
|
let e;
|
|
710
|
-
const d =
|
|
724
|
+
const d = w({
|
|
711
725
|
get() {
|
|
712
726
|
return B(o.modelValue, 2, void 0, "0000-00-00");
|
|
713
727
|
},
|
|
714
728
|
set(l) {
|
|
715
|
-
l =
|
|
729
|
+
l = Y(l, "0000-00-00"), n("update:modelValue", l);
|
|
716
730
|
}
|
|
717
731
|
});
|
|
718
732
|
let i = (l) => {
|
|
719
|
-
|
|
733
|
+
q(l);
|
|
720
734
|
}, m = (l) => {
|
|
721
|
-
const p =
|
|
722
|
-
if (!
|
|
735
|
+
const p = Y(l.target.value), b = B(p);
|
|
736
|
+
if (!b || b === c.L.Not_date || l.target.value !== b) {
|
|
723
737
|
l.target.value = d.value;
|
|
724
738
|
return;
|
|
725
739
|
}
|
|
726
740
|
d.value = l.target.value;
|
|
727
741
|
};
|
|
728
742
|
async function r(l) {
|
|
729
|
-
const p = await import("./datepicker-
|
|
730
|
-
|
|
743
|
+
const p = await import("./datepicker-INKeNnsk.es.js");
|
|
744
|
+
q = p.oninput, e = p.connectDatepicker(l.target, {
|
|
731
745
|
onSelect: () => m(l)
|
|
732
746
|
}), e && e.datepicker("show");
|
|
733
747
|
}
|
|
734
|
-
return (l, p) => A(
|
|
748
|
+
return (l, p) => A(rt) ? (u(), T(O, D({ key: 0 }, l.$props, {
|
|
735
749
|
modelValue: d.value,
|
|
736
750
|
readonly: "",
|
|
737
|
-
onClick: p[1] || (p[1] = (
|
|
751
|
+
onClick: p[1] || (p[1] = (b) => s.value.showPicker())
|
|
738
752
|
}), {
|
|
739
753
|
default: L(() => [
|
|
740
|
-
|
|
754
|
+
_("input", {
|
|
741
755
|
ref_key: "el",
|
|
742
756
|
ref: s,
|
|
743
757
|
type: "date",
|
|
744
758
|
class: "top-input_input-date",
|
|
745
759
|
modelValue: l.modelValue,
|
|
746
|
-
onChange: p[0] || (p[0] = (
|
|
760
|
+
onChange: p[0] || (p[0] = (b) => d.value = b.target.value),
|
|
747
761
|
tabindex: "-1"
|
|
748
|
-
}, null, 40,
|
|
762
|
+
}, null, 40, it)
|
|
749
763
|
]),
|
|
750
764
|
_: 1
|
|
751
|
-
}, 16, ["modelValue"])) : (u(),
|
|
765
|
+
}, 16, ["modelValue"])) : (u(), T(O, D({ key: 1 }, l.$props, {
|
|
752
766
|
modelValue: d.value,
|
|
753
|
-
"onUpdate:modelValue": p[2] || (p[2] = (
|
|
767
|
+
"onUpdate:modelValue": p[2] || (p[2] = (b) => b === "" ? d.value = "" : ""),
|
|
754
768
|
onInput: A(i),
|
|
755
769
|
onFocusOnce: r,
|
|
756
770
|
onChange: A(m),
|
|
757
771
|
modificator: "datepicker"
|
|
758
772
|
}), null, 16, ["modelValue", "onInput", "onChange"]));
|
|
759
773
|
}
|
|
760
|
-
}),
|
|
774
|
+
}), dt = {
|
|
761
775
|
"top-input-datepicker": "top-input-datepicker",
|
|
762
776
|
"top-input_input-date": "top-input_input-date"
|
|
763
|
-
},
|
|
764
|
-
$style:
|
|
765
|
-
},
|
|
777
|
+
}, pt = {
|
|
778
|
+
$style: dt
|
|
779
|
+
}, ut = /* @__PURE__ */ y(lt, [["__cssModules", pt]]), ct = { class: "top-inputRange" }, mt = /* @__PURE__ */ _("span", { class: "top-inputRange_dash" }, " — ", -1), ft = /* @__PURE__ */ v({
|
|
766
780
|
__name: "inputRange",
|
|
767
781
|
setup(t) {
|
|
768
|
-
return (a, o) => (u(), f("div",
|
|
782
|
+
return (a, o) => (u(), f("div", ct, [
|
|
769
783
|
k(a.$slots, "from"),
|
|
770
|
-
|
|
784
|
+
mt,
|
|
771
785
|
k(a.$slots, "to")
|
|
772
786
|
]));
|
|
773
787
|
}
|
|
774
|
-
}),
|
|
788
|
+
}), bt = {
|
|
775
789
|
"top-inputRange": "top-inputRange",
|
|
776
790
|
"top-inputRange_dash": "top-inputRange_dash",
|
|
777
791
|
"top-input": "top-input"
|
|
778
|
-
},
|
|
779
|
-
$style:
|
|
780
|
-
},
|
|
792
|
+
}, ht = {
|
|
793
|
+
$style: bt
|
|
794
|
+
}, gt = /* @__PURE__ */ y(ft, [["__cssModules", ht]]), wt = ["name", "value", "disabled"], yt = /* @__PURE__ */ v({
|
|
781
795
|
__name: "radio",
|
|
782
796
|
props: {
|
|
783
797
|
modelValue: {},
|
|
@@ -789,7 +803,7 @@ const it = /* @__PURE__ */ v({
|
|
|
789
803
|
},
|
|
790
804
|
emits: ["update:modelValue"],
|
|
791
805
|
setup(t, { emit: a }) {
|
|
792
|
-
const o = t, n = a, s =
|
|
806
|
+
const o = t, n = a, s = w({
|
|
793
807
|
get() {
|
|
794
808
|
return o.modelValue;
|
|
795
809
|
},
|
|
@@ -798,7 +812,7 @@ const it = /* @__PURE__ */ v({
|
|
|
798
812
|
}
|
|
799
813
|
});
|
|
800
814
|
return (e, d) => (u(), f("label", {
|
|
801
|
-
class:
|
|
815
|
+
class: g({
|
|
802
816
|
"top-forms-optionWrapper": !0,
|
|
803
817
|
"top-radio": !0,
|
|
804
818
|
["top-radio_" + e.name]: e.name !== "",
|
|
@@ -806,9 +820,9 @@ const it = /* @__PURE__ */ v({
|
|
|
806
820
|
"top-error": e.isError && !e.disabled
|
|
807
821
|
})
|
|
808
822
|
}, [
|
|
809
|
-
W(
|
|
823
|
+
W(_("input", {
|
|
810
824
|
type: "radio",
|
|
811
|
-
class:
|
|
825
|
+
class: g({
|
|
812
826
|
"top-forms-focusable": !e.disabled,
|
|
813
827
|
"top-forms-option": !0,
|
|
814
828
|
"top-radio_input": !0,
|
|
@@ -818,10 +832,10 @@ const it = /* @__PURE__ */ v({
|
|
|
818
832
|
name: e.name,
|
|
819
833
|
value: e.value,
|
|
820
834
|
disabled: e.disabled
|
|
821
|
-
}, null, 10,
|
|
822
|
-
[
|
|
835
|
+
}, null, 10, wt), [
|
|
836
|
+
[ie, s.value]
|
|
823
837
|
]),
|
|
824
|
-
e.$slots.default ? (u(),
|
|
838
|
+
e.$slots.default ? (u(), T(P, {
|
|
825
839
|
key: 0,
|
|
826
840
|
description: e.description,
|
|
827
841
|
disabled: e.disabled
|
|
@@ -830,16 +844,16 @@ const it = /* @__PURE__ */ v({
|
|
|
830
844
|
k(e.$slots, "default")
|
|
831
845
|
]),
|
|
832
846
|
_: 3
|
|
833
|
-
}, 8, ["description", "disabled"])) :
|
|
847
|
+
}, 8, ["description", "disabled"])) : h("", !0)
|
|
834
848
|
], 2));
|
|
835
849
|
}
|
|
836
|
-
}),
|
|
850
|
+
}), vt = {
|
|
837
851
|
"top-radio": "top-radio",
|
|
838
852
|
"top-radio_input": "top-radio_input",
|
|
839
853
|
"top-error": "top-error"
|
|
840
|
-
},
|
|
841
|
-
$style:
|
|
842
|
-
},
|
|
854
|
+
}, $t = {
|
|
855
|
+
$style: vt
|
|
856
|
+
}, _t = /* @__PURE__ */ y(yt, [["__cssModules", $t]]), St = ["name", "value", "disabled"], kt = /* @__PURE__ */ v({
|
|
843
857
|
__name: "switcher",
|
|
844
858
|
props: {
|
|
845
859
|
modelValue: { type: [Boolean, Array, Set] },
|
|
@@ -851,7 +865,7 @@ const it = /* @__PURE__ */ v({
|
|
|
851
865
|
},
|
|
852
866
|
emits: ["update:modelValue"],
|
|
853
867
|
setup(t, { emit: a }) {
|
|
854
|
-
const o = t, n = a, s =
|
|
868
|
+
const o = t, n = a, s = w({
|
|
855
869
|
get() {
|
|
856
870
|
return o.modelValue;
|
|
857
871
|
},
|
|
@@ -860,16 +874,16 @@ const it = /* @__PURE__ */ v({
|
|
|
860
874
|
}
|
|
861
875
|
});
|
|
862
876
|
return (e, d) => (u(), f("label", {
|
|
863
|
-
class:
|
|
877
|
+
class: g({
|
|
864
878
|
"top-forms-optionWrapper": !0,
|
|
865
879
|
"top-checkboxSwitcher": !0,
|
|
866
880
|
"top-disabled": e.disabled,
|
|
867
881
|
"top-error": e.isError && !e.disabled
|
|
868
882
|
})
|
|
869
883
|
}, [
|
|
870
|
-
W(
|
|
884
|
+
W(_("input", {
|
|
871
885
|
type: "checkbox",
|
|
872
|
-
class:
|
|
886
|
+
class: g({
|
|
873
887
|
"top-forms-focusable": !e.disabled,
|
|
874
888
|
"top-forms-option": !0,
|
|
875
889
|
"top-checkboxSwitcher_input": !0,
|
|
@@ -879,10 +893,10 @@ const it = /* @__PURE__ */ v({
|
|
|
879
893
|
name: e.name,
|
|
880
894
|
value: e.value,
|
|
881
895
|
disabled: e.disabled
|
|
882
|
-
}, null, 10,
|
|
883
|
-
[
|
|
896
|
+
}, null, 10, St), [
|
|
897
|
+
[J, s.value]
|
|
884
898
|
]),
|
|
885
|
-
e.$slots.default ? (u(),
|
|
899
|
+
e.$slots.default ? (u(), T(P, {
|
|
886
900
|
key: 0,
|
|
887
901
|
description: e.description,
|
|
888
902
|
disabled: e.disabled
|
|
@@ -891,19 +905,19 @@ const it = /* @__PURE__ */ v({
|
|
|
891
905
|
k(e.$slots, "default")
|
|
892
906
|
]),
|
|
893
907
|
_: 3
|
|
894
|
-
}, 8, ["description", "disabled"])) :
|
|
908
|
+
}, 8, ["description", "disabled"])) : h("", !0)
|
|
895
909
|
], 2));
|
|
896
910
|
}
|
|
897
|
-
}),
|
|
911
|
+
}), Tt = {
|
|
898
912
|
"top-checkboxSwitcher": "top-checkboxSwitcher",
|
|
899
913
|
"top-checkboxSwitcher_input": "top-checkboxSwitcher_input",
|
|
900
914
|
"top-error": "top-error"
|
|
901
|
-
},
|
|
902
|
-
$style:
|
|
903
|
-
},
|
|
915
|
+
}, Mt = {
|
|
916
|
+
$style: Tt
|
|
917
|
+
}, Vt = /* @__PURE__ */ y(kt, [["__cssModules", Mt]]), Wt = ["name", "placeholder", "disabled", "readonly", "rows"], Bt = {
|
|
904
918
|
key: 0,
|
|
905
919
|
class: "top-textarea_pseudoContent"
|
|
906
|
-
},
|
|
920
|
+
}, Lt = /* @__PURE__ */ v({
|
|
907
921
|
inheritAttrs: !1,
|
|
908
922
|
__name: "textarea",
|
|
909
923
|
props: {
|
|
@@ -921,9 +935,9 @@ const it = /* @__PURE__ */ v({
|
|
|
921
935
|
emits: ["update:modelValue"],
|
|
922
936
|
setup(t, { emit: a }) {
|
|
923
937
|
G((e) => ({
|
|
924
|
-
|
|
938
|
+
"3a69e87d": e.minHeight + "px"
|
|
925
939
|
}));
|
|
926
|
-
const o = t, n = a, s =
|
|
940
|
+
const o = t, n = a, s = w({
|
|
927
941
|
get() {
|
|
928
942
|
return o.modelValue;
|
|
929
943
|
},
|
|
@@ -932,15 +946,15 @@ const it = /* @__PURE__ */ v({
|
|
|
932
946
|
}
|
|
933
947
|
});
|
|
934
948
|
return (e, d) => {
|
|
935
|
-
const i =
|
|
949
|
+
const i = re("top-tooltip");
|
|
936
950
|
return u(), f("label", {
|
|
937
|
-
class:
|
|
951
|
+
class: g({
|
|
938
952
|
"top-textarea": !0,
|
|
939
953
|
["top-textarea-" + e.name]: e.name,
|
|
940
954
|
"top-disabled": e.disabled
|
|
941
955
|
})
|
|
942
956
|
}, [
|
|
943
|
-
W(
|
|
957
|
+
W(_("textarea", D({
|
|
944
958
|
type: "text",
|
|
945
959
|
class: {
|
|
946
960
|
"top-forms-focusable": !e.disabled,
|
|
@@ -956,34 +970,34 @@ const it = /* @__PURE__ */ v({
|
|
|
956
970
|
rows: e.expandable ? void 0 : e.rows
|
|
957
971
|
}, e.$attrs, {
|
|
958
972
|
"onUpdate:modelValue": d[0] || (d[0] = (m) => s.value = m)
|
|
959
|
-
}), null, 16,
|
|
960
|
-
[
|
|
973
|
+
}), null, 16, Wt), [
|
|
974
|
+
[Z, s.value]
|
|
961
975
|
]),
|
|
962
|
-
e.expandable ? (u(), f("div",
|
|
963
|
-
e.hint ? W((u(),
|
|
976
|
+
e.expandable ? (u(), f("div", Bt, V(s.value + " "), 1)) : h("", !0),
|
|
977
|
+
e.hint ? W((u(), T(j, {
|
|
964
978
|
key: 1,
|
|
965
979
|
class: "top-textarea_hint",
|
|
966
980
|
hint: e.hint
|
|
967
981
|
}, null, 8, ["hint"])), [
|
|
968
982
|
[i]
|
|
969
|
-
]) :
|
|
983
|
+
]) : h("", !0)
|
|
970
984
|
], 2);
|
|
971
985
|
};
|
|
972
986
|
}
|
|
973
|
-
}),
|
|
987
|
+
}), Et = {
|
|
974
988
|
"top-textarea": "top-textarea",
|
|
975
989
|
"top-textarea_textarea": "top-textarea_textarea",
|
|
976
990
|
"top-textarea_textarea-expandable": "top-textarea_textarea-expandable",
|
|
977
991
|
"top-textarea_pseudoContent": "top-textarea_pseudoContent",
|
|
978
992
|
"top-textarea_hint": "top-textarea_hint"
|
|
979
|
-
},
|
|
980
|
-
$style:
|
|
981
|
-
},
|
|
993
|
+
}, zt = {
|
|
994
|
+
$style: Et
|
|
995
|
+
}, Dt = /* @__PURE__ */ y(Lt, [["__cssModules", zt]]), Pt = ["data-value", "data-top-icon", "data-top-icon2"], At = ["name", "disabled"], Nt = ["label", "disabled"], Rt = ["value", "selected", "disabled"], Ct = ["value", "selected", "disabled"], Ot = {
|
|
982
996
|
key: 1,
|
|
983
997
|
class: "top-formsCaption"
|
|
984
|
-
},
|
|
998
|
+
}, Ht = /* @__PURE__ */ v({
|
|
985
999
|
__name: "select",
|
|
986
|
-
props: /* @__PURE__ */
|
|
1000
|
+
props: /* @__PURE__ */ C({
|
|
987
1001
|
modelValue: {},
|
|
988
1002
|
options: {},
|
|
989
1003
|
name: {},
|
|
@@ -999,20 +1013,20 @@ const it = /* @__PURE__ */ v({
|
|
|
999
1013
|
},
|
|
1000
1014
|
modelModifiers: {}
|
|
1001
1015
|
}),
|
|
1002
|
-
emits: /* @__PURE__ */
|
|
1016
|
+
emits: /* @__PURE__ */ C(["update:modelValue"], ["update:modelValue"]),
|
|
1003
1017
|
setup(t, { emit: a }) {
|
|
1004
|
-
const o = t, n =
|
|
1018
|
+
const o = t, n = Q(t, "modelValue"), s = w(() => {
|
|
1005
1019
|
const r = /* @__PURE__ */ new Map();
|
|
1006
1020
|
return o.options.forEach((l, p) => {
|
|
1007
1021
|
if (typeof l == "string" && (l = d(p, l)), l.children) {
|
|
1008
|
-
const
|
|
1009
|
-
l.children.forEach((
|
|
1010
|
-
typeof
|
|
1011
|
-
}), l = { ...l }, l.children =
|
|
1022
|
+
const b = /* @__PURE__ */ new Map();
|
|
1023
|
+
l.children.forEach((S, E) => {
|
|
1024
|
+
typeof S == "string" && (S = d(E, S)), b.set(S.value, S);
|
|
1025
|
+
}), l = { ...l }, l.children = b, r.set(l.value, l);
|
|
1012
1026
|
} else
|
|
1013
1027
|
r.set(l.value, l);
|
|
1014
1028
|
}), r;
|
|
1015
|
-
}), e =
|
|
1029
|
+
}), e = w(() => {
|
|
1016
1030
|
const r = /* @__PURE__ */ new Map();
|
|
1017
1031
|
return s.value.forEach((l) => {
|
|
1018
1032
|
if (!l.disabled) {
|
|
@@ -1029,13 +1043,13 @@ const it = /* @__PURE__ */ v({
|
|
|
1029
1043
|
value: r,
|
|
1030
1044
|
title: l
|
|
1031
1045
|
});
|
|
1032
|
-
|
|
1046
|
+
le([
|
|
1033
1047
|
() => o.modelValue,
|
|
1034
1048
|
e
|
|
1035
1049
|
], () => {
|
|
1036
1050
|
(n.value === null || n.value === void 0) && e.value.size && (console.warn("Пожалуйста, не передавайте в компонент Select значения null и undefined"), n.value = e.value.keys().next().value);
|
|
1037
1051
|
}, { immediate: !0 });
|
|
1038
|
-
const i =
|
|
1052
|
+
const i = w(() => {
|
|
1039
1053
|
var r;
|
|
1040
1054
|
return (r = e.value.get(n.value)) == null ? void 0 : r.icon;
|
|
1041
1055
|
}), m = () => {
|
|
@@ -1043,7 +1057,7 @@ const it = /* @__PURE__ */ v({
|
|
|
1043
1057
|
n.value = r[p];
|
|
1044
1058
|
};
|
|
1045
1059
|
return (r, l) => (u(), f("label", {
|
|
1046
|
-
class:
|
|
1060
|
+
class: g({
|
|
1047
1061
|
"top-select": !0,
|
|
1048
1062
|
["top-select-" + r.name]: r.name,
|
|
1049
1063
|
["top-size_" + r.size]: !0,
|
|
@@ -1055,8 +1069,8 @@ const it = /* @__PURE__ */ v({
|
|
|
1055
1069
|
"data-top-icon": r.icon,
|
|
1056
1070
|
"data-top-icon2": i.value
|
|
1057
1071
|
}, [
|
|
1058
|
-
W(
|
|
1059
|
-
class:
|
|
1072
|
+
W(_("select", {
|
|
1073
|
+
class: g({
|
|
1060
1074
|
"top-forms-focusable": !r.disabled,
|
|
1061
1075
|
"top-select_select": !0,
|
|
1062
1076
|
"top-select_arrow": !0,
|
|
@@ -1066,82 +1080,83 @@ const it = /* @__PURE__ */ v({
|
|
|
1066
1080
|
disabled: r.disabled,
|
|
1067
1081
|
"onUpdate:modelValue": l[0] || (l[0] = (p) => n.value = p)
|
|
1068
1082
|
}, [
|
|
1069
|
-
(u(!0), f(
|
|
1070
|
-
|
|
1083
|
+
(u(!0), f(N, null, F(s.value, ([p, b]) => (u(), f(N, null, [
|
|
1084
|
+
b.children ? (u(), f("optgroup", {
|
|
1071
1085
|
key: "group_" + p,
|
|
1072
|
-
label:
|
|
1073
|
-
disabled:
|
|
1086
|
+
label: b.title,
|
|
1087
|
+
disabled: b.disabled
|
|
1074
1088
|
}, [
|
|
1075
|
-
(u(!0), f(
|
|
1076
|
-
key:
|
|
1077
|
-
value:
|
|
1078
|
-
selected:
|
|
1089
|
+
(u(!0), f(N, null, F(b.children, ([S, E]) => (u(), f("option", {
|
|
1090
|
+
key: S,
|
|
1091
|
+
value: S,
|
|
1092
|
+
selected: S === n.value,
|
|
1079
1093
|
disabled: E.disabled
|
|
1080
|
-
}, V(E.title), 9,
|
|
1081
|
-
], 8,
|
|
1094
|
+
}, V(E.title), 9, Rt))), 128))
|
|
1095
|
+
], 8, Nt)) : (u(), f("option", {
|
|
1082
1096
|
key: p ?? void 0,
|
|
1083
1097
|
value: p,
|
|
1084
1098
|
selected: p === n.value,
|
|
1085
|
-
disabled:
|
|
1086
|
-
}, V(
|
|
1099
|
+
disabled: b.disabled
|
|
1100
|
+
}, V(b.title), 9, Ct))
|
|
1087
1101
|
], 64))), 256))
|
|
1088
|
-
], 10,
|
|
1089
|
-
[
|
|
1102
|
+
], 10, At), [
|
|
1103
|
+
[de, n.value]
|
|
1090
1104
|
]),
|
|
1091
1105
|
r.addChanger && e.value.size && !r.disabled ? (u(), f("span", {
|
|
1092
1106
|
key: 0,
|
|
1093
1107
|
class: "top-changer",
|
|
1094
1108
|
onClick: m
|
|
1095
|
-
})) :
|
|
1096
|
-
r.title ? (u(), f("span",
|
|
1097
|
-
], 10,
|
|
1109
|
+
})) : h("", !0),
|
|
1110
|
+
r.title ? (u(), f("span", Ot, V(r.title), 1)) : h("", !0)
|
|
1111
|
+
], 10, Pt));
|
|
1098
1112
|
}
|
|
1099
|
-
}),
|
|
1113
|
+
}), It = {
|
|
1100
1114
|
"top-select": "top-select",
|
|
1101
1115
|
"top-select-error": "top-select-error",
|
|
1102
1116
|
"top-select_select": "top-select_select",
|
|
1103
1117
|
"top-changer": "top-changer"
|
|
1104
|
-
},
|
|
1105
|
-
$style:
|
|
1106
|
-
},
|
|
1118
|
+
}, Ft = {
|
|
1119
|
+
$style: It
|
|
1120
|
+
}, Ut = /* @__PURE__ */ y(Ht, [["__cssModules", Ft]]), to = Ve, oo = Ae, so = Xe, ao = P, no = j, io = O, ro = ut, lo = gt, po = _t, uo = Vt, co = Dt, mo = Ut, fo = x;
|
|
1107
1121
|
export {
|
|
1108
|
-
|
|
1109
|
-
|
|
1122
|
+
Qt as A,
|
|
1123
|
+
fe as B,
|
|
1110
1124
|
c as C,
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1125
|
+
Jt as D,
|
|
1126
|
+
X as E,
|
|
1127
|
+
Zt as F,
|
|
1128
|
+
jt as G,
|
|
1129
|
+
xt as H,
|
|
1130
|
+
ve as I,
|
|
1131
|
+
eo as J,
|
|
1132
|
+
Y as K,
|
|
1133
|
+
Ae as T,
|
|
1119
1134
|
y as _,
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1135
|
+
to as a,
|
|
1136
|
+
oo as b,
|
|
1137
|
+
so as c,
|
|
1123
1138
|
B as d,
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1139
|
+
ao as e,
|
|
1140
|
+
no as f,
|
|
1141
|
+
io as g,
|
|
1142
|
+
ro as h,
|
|
1143
|
+
Yt as i,
|
|
1144
|
+
lo as j,
|
|
1145
|
+
fo as k,
|
|
1146
|
+
po as l,
|
|
1147
|
+
mo as m,
|
|
1133
1148
|
uo as n,
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1149
|
+
co as o,
|
|
1150
|
+
j as p,
|
|
1151
|
+
O as q,
|
|
1152
|
+
Dt as r,
|
|
1153
|
+
x as s,
|
|
1139
1154
|
pe as t,
|
|
1140
1155
|
ue as u,
|
|
1141
1156
|
ce as v,
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1157
|
+
me as w,
|
|
1158
|
+
qt as x,
|
|
1159
|
+
Kt as y,
|
|
1145
1160
|
Gt as z
|
|
1146
1161
|
};
|
|
1147
|
-
//# sourceMappingURL=forms-
|
|
1162
|
+
//# sourceMappingURL=forms-BDAati-M.es.js.map
|