@topvisor/ui 0.9.35 → 0.9.36-colors-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-Dmeojg66.es.js → datepicker-DbeGplcq.es.js} +38 -39
- package/.chunks/datepicker-DbeGplcq.es.js.map +1 -0
- package/.chunks/{datepicker-BG0u8UXv.amd.js → datepicker-Dg37tPrw.amd.js} +11 -11
- package/.chunks/datepicker-Dg37tPrw.amd.js.map +1 -0
- package/.chunks/forms-2IN9bh7q.amd.js +3 -0
- package/.chunks/forms-2IN9bh7q.amd.js.map +1 -0
- package/.chunks/{forms-CPEVHoks.es.js → forms-C7R2OMNd.es.js} +465 -389
- package/.chunks/forms-C7R2OMNd.es.js.map +1 -0
- package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-CkZHzNZU.amd.js → listItem.vue_vue_type_script_setup_true_lang-CvNHf34E.amd.js} +2 -2
- package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-CkZHzNZU.amd.js.map → listItem.vue_vue_type_script_setup_true_lang-CvNHf34E.amd.js.map} +1 -1
- package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-Dlm9Et7q.es.js → listItem.vue_vue_type_script_setup_true_lang-DoJIZ5ah.es.js} +20 -20
- package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-Dlm9Et7q.es.js.map → listItem.vue_vue_type_script_setup_true_lang-DoJIZ5ah.es.js.map} +1 -1
- package/.chunks/{menu-CiQMMrnp.es.js → menu-YUHrBwaU.es.js} +34 -34
- package/.chunks/{menu-CiQMMrnp.es.js.map → menu-YUHrBwaU.es.js.map} +1 -1
- package/.chunks/{menu-SmyeSNWQ.amd.js → menu-pOA_212c.amd.js} +2 -2
- package/.chunks/{menu-SmyeSNWQ.amd.js.map → menu-pOA_212c.amd.js.map} +1 -1
- package/.chunks/{popup-Bv_sxmoj.es.js → popup-BWh8DRIt.es.js} +28 -28
- package/.chunks/popup-BWh8DRIt.es.js.map +1 -0
- package/.chunks/popup-CKfepE91.amd.js +442 -0
- package/.chunks/popup-CKfepE91.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/menu.css +1 -1
- package/assets/popup.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 +0 -1
- 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 +11 -12
- 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/lib/popup.d.ts +0 -1
- package/components/popup/lib/worker.d.ts +0 -1
- package/components/popup/popup/listItem.vue.d.ts +11 -12
- package/components/popup/popup/opener.vue.d.ts +11 -12
- package/components/popup/popup/popup.vue.d.ts +11 -12
- package/components/popup/popup/widgetInput.vue.d.ts +32 -82
- package/components/popup/popup.d.ts +0 -1
- 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 +2 -2
- package/core/app.js.map +1 -1
- package/core/core/core.d.ts +40 -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/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 +58 -58
- package/formsExt/formsExt.js.map +1 -1
- package/package.json +1 -1
- package/popup/popup.amd.js +1 -1
- package/popup/popup.d.ts +1 -0
- package/popup/popup.js +17 -17
- package/popup/popup.js.map +1 -1
- package/popup/worker.amd.js +1 -1
- package/popup/worker.d.ts +3 -0
- package/popup/worker.js +2 -2
- package/project/project.amd.js +1 -1
- package/project/project.d.ts +1 -0
- package/project/project.js +19 -19
- package/require/css.amd.js +4 -4
- package/tabs/tabs.amd.js +1 -1
- package/tabs/tabs.d.ts +1 -0
- package/tabs/tabs.js +13 -13
- 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 +44 -44
- 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 +1 -1
- 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/number.d.ts +1 -0
- package/utils/price.amd.js +1 -1
- package/utils/price.d.ts +1 -0
- package/utils/price.js +1 -1
- package/utils/route.d.ts +1 -0
- package/utils/scroll.d.ts +1 -0
- package/utils/store.d.ts +1 -0
- package/utils/string.d.ts +1 -0
- package/utils/system.d.ts +1 -0
- package/utils/url.d.ts +1 -0
- package/.chunks/datepicker-BG0u8UXv.amd.js.map +0 -1
- package/.chunks/datepicker-Dmeojg66.es.js.map +0 -1
- package/.chunks/forms-CPEVHoks.es.js.map +0 -1
- package/.chunks/forms-oowSA2rF.amd.js +0 -3
- package/.chunks/forms-oowSA2rF.amd.js.map +0 -1
- package/.chunks/popup-Bv_sxmoj.es.js.map +0 -1
- package/.chunks/popup-ClvUyl7S.amd.js +0 -441
- package/.chunks/popup-ClvUyl7S.amd.js.map +0 -1
- package/core/utils/css.d.ts +0 -43
- package/utils/css.amd.js +0 -2
- package/utils/css.amd.js.map +0 -1
- package/utils/css.d.ts +0 -1
- package/utils/css.js +0 -45
- package/utils/css.js.map +0 -1
|
@@ -1,28 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
const ee = ["../assets/forms.css"].map((t) => import.meta.resolve(t));
|
|
4
|
-
x(ee, !0);
|
|
5
|
-
function ue() {
|
|
1
|
+
import { reactive as I, defineComponent as v, useCssVars as G, computed as b, openBlock as u, createElementBlock as f, createElementVNode as S, createCommentVNode as g, createBlock as M, resolveDynamicComponent as x, normalizeClass as w, withCtx as L, renderSlot as k, createTextVNode as ee, toDisplayString as V, mergeModels as N, useModel as K, withDirectives as W, vModelCheckbox as Q, mergeProps as D, withKeys as te, vModelText as J, withModifiers as oe, onUnmounted as se, ref as ae, unref as A, vModelRadio as ne, resolveDirective as ie, watch as re, Fragment as R, renderList as F, vModelSelect as le } from "vue";
|
|
2
|
+
function de() {
|
|
6
3
|
return "devicePixelRatio" in window && window.devicePixelRatio > 1;
|
|
7
4
|
}
|
|
8
|
-
function
|
|
5
|
+
function pe() {
|
|
9
6
|
return !!navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|IEMobile|Opera Mini/i);
|
|
10
7
|
}
|
|
11
|
-
function
|
|
8
|
+
function ue() {
|
|
12
9
|
return navigator.userAgent.indexOf("Topvisor_App") != -1;
|
|
13
10
|
}
|
|
14
|
-
function
|
|
11
|
+
function ce() {
|
|
15
12
|
return navigator.userAgent.indexOf("Mac OS X") !== -1;
|
|
16
13
|
}
|
|
17
|
-
function
|
|
14
|
+
function Xt() {
|
|
18
15
|
const t = /Chrome|Android/.test(navigator.userAgent);
|
|
19
|
-
let
|
|
20
|
-
return t &&
|
|
16
|
+
let a = /Safari/.test(navigator.userAgent);
|
|
17
|
+
return t && a && (a = !1), a;
|
|
21
18
|
}
|
|
22
|
-
function
|
|
23
|
-
return
|
|
19
|
+
function Yt() {
|
|
20
|
+
return ce() ? "⌘" : "Ctrl";
|
|
24
21
|
}
|
|
25
|
-
const
|
|
22
|
+
const qt = () => $(document).scrollTop(), Gt = () => $(document), Kt = () => [document], me = () => {
|
|
26
23
|
const t = [
|
|
27
24
|
["iOS", /(iPhone|iPad)/i],
|
|
28
25
|
["Android", /(Android)/i],
|
|
@@ -48,48 +45,48 @@ const Gt = () => $(document).scrollTop(), Qt = () => $(document), Jt = () => [do
|
|
|
48
45
|
["BeOS", /BeOS/i],
|
|
49
46
|
["OS/2", /OS\/2/i]
|
|
50
47
|
];
|
|
51
|
-
let
|
|
48
|
+
let a = "";
|
|
52
49
|
for (let o = 0; o < t.length; o++)
|
|
53
50
|
if (t[o][1].test(navigator.userAgent)) {
|
|
54
|
-
|
|
51
|
+
a = t[o][0];
|
|
55
52
|
break;
|
|
56
53
|
}
|
|
57
|
-
return
|
|
58
|
-
},
|
|
59
|
-
var
|
|
60
|
-
let t =
|
|
54
|
+
return a;
|
|
55
|
+
}, Qt = async () => {
|
|
56
|
+
var a;
|
|
57
|
+
let t = me();
|
|
61
58
|
if (t === "Windows 10") {
|
|
62
|
-
const o = await ((
|
|
59
|
+
const o = await ((a = navigator == null ? void 0 : navigator.userAgentData) == null ? void 0 : a.getHighEntropyValues(["platformVersion"]));
|
|
63
60
|
o && o.platformVersion >= "13" && (t = "Windows 11");
|
|
64
61
|
}
|
|
65
62
|
return t;
|
|
66
|
-
},
|
|
67
|
-
let
|
|
68
|
-
const H = /* @__PURE__ */ new Map(),
|
|
63
|
+
}, fe = 100;
|
|
64
|
+
let U;
|
|
65
|
+
const H = /* @__PURE__ */ new Map(), z = {
|
|
69
66
|
width: window.innerWidth,
|
|
70
67
|
height: window.innerHeight
|
|
71
68
|
};
|
|
72
|
-
function
|
|
69
|
+
function he(t) {
|
|
73
70
|
H.set(t, t);
|
|
74
71
|
}
|
|
75
|
-
function
|
|
72
|
+
function be(t) {
|
|
76
73
|
H.delete(t);
|
|
77
74
|
}
|
|
78
|
-
function
|
|
79
|
-
clearTimeout(
|
|
75
|
+
function ge(t) {
|
|
76
|
+
clearTimeout(U), U = setTimeout(function() {
|
|
80
77
|
t.topEvent = {
|
|
81
|
-
widthDiff:
|
|
82
|
-
hightDiff:
|
|
83
|
-
},
|
|
84
|
-
},
|
|
78
|
+
widthDiff: z.width - window.innerWidth,
|
|
79
|
+
hightDiff: z.height - window.innerHeight
|
|
80
|
+
}, z.width = window.innerWidth, z.height = window.innerHeight, H.forEach((a) => a(t));
|
|
81
|
+
}, fe);
|
|
85
82
|
}
|
|
86
|
-
window.addEventListener("resize",
|
|
83
|
+
window.addEventListener("resize", ge);
|
|
87
84
|
const we = {
|
|
88
|
-
addOnReize:
|
|
89
|
-
removeOnResize:
|
|
85
|
+
addOnReize: he,
|
|
86
|
+
removeOnResize: be
|
|
90
87
|
};
|
|
91
|
-
var
|
|
92
|
-
const
|
|
88
|
+
var q;
|
|
89
|
+
const C = {
|
|
93
90
|
/**
|
|
94
91
|
* Базовая ширина страницы для отображения ПК / Мобильной версии сайта
|
|
95
92
|
*/
|
|
@@ -105,11 +102,11 @@ const P = {
|
|
|
105
102
|
/**
|
|
106
103
|
* Для Москвы: +0300
|
|
107
104
|
*/
|
|
108
|
-
gmt: (
|
|
109
|
-
},
|
|
110
|
-
dateFormat:
|
|
111
|
-
currency:
|
|
112
|
-
gmt:
|
|
105
|
+
gmt: (q = (/* @__PURE__ */ new Date()).toString().match(/GMT(\S+)/)) == null ? void 0 : q[1]
|
|
106
|
+
}, ye = {
|
|
107
|
+
dateFormat: C.dateFormat,
|
|
108
|
+
currency: C.currency,
|
|
109
|
+
gmt: C.gmt,
|
|
113
110
|
/**
|
|
114
111
|
* Device by size
|
|
115
112
|
* @see widthForMobile
|
|
@@ -153,25 +150,25 @@ class c {
|
|
|
153
150
|
static L = I({
|
|
154
151
|
Not_date: "Not date"
|
|
155
152
|
});
|
|
156
|
-
static state = I({
|
|
153
|
+
static state = I({ ...ye });
|
|
157
154
|
static widthForMobile = 900;
|
|
158
155
|
static matchMediaIsMobile;
|
|
159
156
|
static $ = window.$;
|
|
160
157
|
static _setState() {
|
|
161
|
-
c.matchMediaIsMobile = window.matchMedia(`(max-width: ${c.widthForMobile}px)`), c.state.isMobileUA =
|
|
158
|
+
c.matchMediaIsMobile = window.matchMedia(`(max-width: ${c.widthForMobile}px)`), c.state.isMobileUA = pe(), c.state.isRetina = de(), c.state.isApp = ue(), c.setStateByWindowSize(), we.addOnReize(c.onResize), c.onResize(), c.saveToCookie();
|
|
162
159
|
}
|
|
163
160
|
static onResize() {
|
|
164
161
|
c.setStateByWindowSize(), document.documentElement.style.setProperty("--100vh", window.innerHeight + "px");
|
|
165
162
|
}
|
|
166
163
|
static setStateByWindowSize() {
|
|
167
|
-
var
|
|
168
|
-
c.state.isMobile = !!((
|
|
164
|
+
var a;
|
|
165
|
+
c.state.isMobile = !!((a = c.matchMediaIsMobile) != null && a.matches), c.state.isLandscape = window.innerWidth > window.innerHeight, c.state.isPortrait = !c.state.isLandscape, c.state.size = window.innerWidth > window.innerHeight ? window.innerWidth : window.innerHeight, c.saveToCookie();
|
|
169
166
|
}
|
|
170
167
|
/**
|
|
171
168
|
* Сохранить информацию об устройстве в cookie
|
|
172
169
|
*/
|
|
173
170
|
static saveToCookie() {
|
|
174
|
-
const
|
|
171
|
+
const a = [
|
|
175
172
|
1,
|
|
176
173
|
window.innerWidth,
|
|
177
174
|
window.innerHeight,
|
|
@@ -179,74 +176,152 @@ class c {
|
|
|
179
176
|
Number(c.state.isMobile),
|
|
180
177
|
Number(c.state.isRetina)
|
|
181
178
|
];
|
|
182
|
-
document.cookie = "device=" +
|
|
179
|
+
document.cookie = "device=" + a.join(",") + "; path=/;";
|
|
183
180
|
}
|
|
184
181
|
/**
|
|
185
182
|
* Проверить скрыта страница или нет
|
|
186
183
|
*/
|
|
187
184
|
static isHidden = () => document.hidden;
|
|
185
|
+
/**
|
|
186
|
+
* Вставить css стили на страницу по ссылке с автоматическим добавлением правил media
|
|
187
|
+
*
|
|
188
|
+
* Правила media:
|
|
189
|
+
* - Файлы *.m.css будут грузиться, только на экранах с шириной менее, чем Core.widthForMobile
|
|
190
|
+
* - Файлы *.pc.css будут грузиться, только на экранах с шириной более, чем Core.widthForMobile
|
|
191
|
+
*
|
|
192
|
+
* Настройкой Core.widthForMobile можно управлять через plugin: @topvisor/ui/plugin/core
|
|
193
|
+
*
|
|
194
|
+
* @param fileNames - список ссылок на css файлы
|
|
195
|
+
* @param useSync - использовать синхронную загрузку css, только для css с того же домена. В синхронном режиме стили предзагружаются независимо от
|
|
196
|
+
* media
|
|
197
|
+
*/
|
|
198
|
+
static insertCSSLinkToPage = (a, o = !1) => {
|
|
199
|
+
const n = /* @__PURE__ */ new Map();
|
|
200
|
+
n.set("::", []), a.forEach((e) => {
|
|
201
|
+
let d = !1, i = !1;
|
|
202
|
+
e.match(/\.m\./) && (d = !0), e.match(/\.pc\./) && (i = !0);
|
|
203
|
+
const m = `${d}:${i}`;
|
|
204
|
+
n.has(m) || n.set(`${d}:${i}`, []), n.get(`${d}:${i}`).push(e);
|
|
205
|
+
});
|
|
206
|
+
const s = [];
|
|
207
|
+
return n.forEach((e, d) => {
|
|
208
|
+
if (!e.length)
|
|
209
|
+
return;
|
|
210
|
+
const [i, m] = d.split(":").map((p) => p === "true");
|
|
211
|
+
let r = "all";
|
|
212
|
+
i && (r = "(max-width: " + c.widthForMobile + "px)"), m && (r = "(min-width: " + c.widthForMobile + "px)"), c._insertToPage(e, r, o).forEach((p) => s.push(p));
|
|
213
|
+
}), Promise.all(s);
|
|
214
|
+
};
|
|
215
|
+
static _insertToPage = (a, o, n) => {
|
|
216
|
+
const s = [];
|
|
217
|
+
return a.forEach((e) => {
|
|
218
|
+
if (n) {
|
|
219
|
+
const p = new XMLHttpRequest();
|
|
220
|
+
p.open("GET", e, !1), p.send();
|
|
221
|
+
}
|
|
222
|
+
const d = "topCSSLink-" + e.replace(/\W/g, "-");
|
|
223
|
+
if (window.hasOwnProperty(d)) return;
|
|
224
|
+
let i, m;
|
|
225
|
+
const r = new Promise((p, h) => {
|
|
226
|
+
i = p, m = h;
|
|
227
|
+
});
|
|
228
|
+
s.push(r);
|
|
229
|
+
const l = document.createElement("link");
|
|
230
|
+
l.id = d, l.rel = "stylesheet", l.media = o, l.href = e, l.onload = () => i(), l.onerror = () => m(), document.head.append(l);
|
|
231
|
+
}), s;
|
|
232
|
+
};
|
|
233
|
+
/**
|
|
234
|
+
* Вставить css стили на страницу с автоматическим добавлением правил media
|
|
235
|
+
*
|
|
236
|
+
* Загрузка с Vite:
|
|
237
|
+
*
|
|
238
|
+
* ```js
|
|
239
|
+
* import style from '/style.css?raw';
|
|
240
|
+
*
|
|
241
|
+
* insertToPageAsInine(style);
|
|
242
|
+
* ```
|
|
243
|
+
*
|
|
244
|
+
* Загрузка с fetch:
|
|
245
|
+
*
|
|
246
|
+
* ```js
|
|
247
|
+
* const style = await fetch('./style.css');
|
|
248
|
+
*
|
|
249
|
+
* insertToPageAsInine(style);
|
|
250
|
+
* ```
|
|
251
|
+
*
|
|
252
|
+
* @param style - css стили в строке
|
|
253
|
+
* @param type - если указать 'm' или 'pc', то стили будут применяться по условию в зависимости от настройки this.widthForMobile
|
|
254
|
+
*
|
|
255
|
+
* @see insertToPage
|
|
256
|
+
*/
|
|
257
|
+
static insertStyleToPage = (a, o = "") => {
|
|
258
|
+
let n = "all";
|
|
259
|
+
o === "m" && (n = "(max-width: " + c.widthForMobile + "px)"), o === "pc" && (n = "(min-width: " + c.widthForMobile + "px)");
|
|
260
|
+
const s = document.createElement("style");
|
|
261
|
+
s.innerHTML = a, s.media = n, document.head.append(s);
|
|
262
|
+
};
|
|
188
263
|
}
|
|
189
|
-
const
|
|
190
|
-
switch (new Date(t,
|
|
264
|
+
const T = window.L ?? {}, Jt = (t, a, o) => {
|
|
265
|
+
switch (new Date(t, a, o).getDay()) {
|
|
191
266
|
case 0:
|
|
192
|
-
return
|
|
267
|
+
return T.Vs + ".";
|
|
193
268
|
case 1:
|
|
194
|
-
return
|
|
269
|
+
return T.Pn + ".";
|
|
195
270
|
case 2:
|
|
196
|
-
return
|
|
271
|
+
return T.Vt + ".";
|
|
197
272
|
case 3:
|
|
198
|
-
return
|
|
273
|
+
return T.Sr + ".";
|
|
199
274
|
case 4:
|
|
200
|
-
return
|
|
275
|
+
return T.Ct + ".";
|
|
201
276
|
case 5:
|
|
202
|
-
return
|
|
277
|
+
return T.Pt + ".";
|
|
203
278
|
case 6:
|
|
204
|
-
return
|
|
279
|
+
return T.Sb + ".";
|
|
205
280
|
default:
|
|
206
281
|
return "";
|
|
207
282
|
}
|
|
208
|
-
},
|
|
209
|
-
let n = String(t.getFullYear()),
|
|
210
|
-
return o >= 1 && (
|
|
283
|
+
}, Zt = (t, a = !0, o = 2) => {
|
|
284
|
+
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
|
+
return o >= 1 && (r += " " + d), o >= 2 && (r += ":" + i), o === 3 && (r += ":" + m), a && (r = B(r, o)), r;
|
|
211
286
|
};
|
|
212
|
-
function
|
|
287
|
+
function jt(t) {
|
|
213
288
|
return t.indexOf("T") === -1 && (t.length == 10 && (t += " 00:00:00"), t = t.replace(" ", "T") + c.state.gmt), new Date(t);
|
|
214
289
|
}
|
|
215
|
-
function
|
|
290
|
+
function ve(t, a = !0, o = 0) {
|
|
216
291
|
let n;
|
|
217
292
|
t != null ? n = new Date(t) : n = /* @__PURE__ */ new Date();
|
|
218
|
-
const
|
|
219
|
-
return n =
|
|
293
|
+
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
|
+
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;
|
|
220
295
|
}
|
|
221
|
-
function
|
|
222
|
-
const n = (/* @__PURE__ */ new Date()).getTimezoneOffset() / 60 * -1 * 60 * 60 * 1e3,
|
|
296
|
+
function xt(t, a = !0) {
|
|
297
|
+
const n = (/* @__PURE__ */ new Date()).getTimezoneOffset() / 60 * -1 * 60 * 60 * 1e3, s = 3 * 60 * 60 * 1e3;
|
|
223
298
|
let e;
|
|
224
|
-
t !== void 0 ? e = new Date(t) : e = /* @__PURE__ */ new Date(), e.setTime(e.getTime() - n +
|
|
225
|
-
let d = String(e.getFullYear()),
|
|
226
|
-
return
|
|
299
|
+
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"), h = d + "-" + m + "-" + i + " " + r + ":" + l + ":" + p;
|
|
301
|
+
return a && (h = B(h)), h;
|
|
227
302
|
}
|
|
228
|
-
function B(t,
|
|
303
|
+
function B(t, a = 2, o, n = c.L.Not_date) {
|
|
229
304
|
if (typeof t == "string" && (!t || t.substring(0, 10) === "0000-00-00") && n && n !== "0000-00-00" || !t) return n;
|
|
230
305
|
o || (o = c.state.dateFormat), o = o.toLowerCase().replace("m", "mm").replace("y", "yy").replace("d", "dd");
|
|
231
|
-
let
|
|
306
|
+
let s;
|
|
232
307
|
if (t instanceof Date)
|
|
233
|
-
|
|
308
|
+
s = t;
|
|
234
309
|
else {
|
|
235
310
|
let d = t.substring(0, 10);
|
|
236
|
-
if (d.length === 7 && (d += "-01"), d += " 00:00", d = d.replace(/-/g, "/"),
|
|
311
|
+
if (d.length === 7 && (d += "-01"), d += " 00:00", d = d.replace(/-/g, "/"), s = new Date(d), isNaN(Number(s))) return n;
|
|
237
312
|
}
|
|
238
313
|
let e = "";
|
|
239
|
-
if (o && window.$ && (e = $.datepicker.formatDate(o,
|
|
314
|
+
if (o && window.$ && (e = $.datepicker.formatDate(o, s)), a && typeof t == "string" && t.length > 10 || a && t instanceof Date) {
|
|
240
315
|
let d = "";
|
|
241
316
|
if (t instanceof Date)
|
|
242
317
|
d = (/* @__PURE__ */ new Date()).toLocaleTimeString("en-US", {
|
|
243
318
|
hour12: !1,
|
|
244
319
|
hour: "numeric",
|
|
245
|
-
minute:
|
|
246
|
-
second:
|
|
320
|
+
minute: a >= 2 ? "numeric" : void 0,
|
|
321
|
+
second: a >= 3 ? "numeric" : void 0
|
|
247
322
|
});
|
|
248
323
|
else
|
|
249
|
-
switch (
|
|
324
|
+
switch (a) {
|
|
250
325
|
case 1:
|
|
251
326
|
d = t.substring(11, 13);
|
|
252
327
|
break;
|
|
@@ -261,15 +336,15 @@ function B(t, s = 2, o, n = c.L.Not_date) {
|
|
|
261
336
|
}
|
|
262
337
|
return e = e.trim(), e;
|
|
263
338
|
}
|
|
264
|
-
function X(t,
|
|
339
|
+
function X(t, a = c.L.Not_date) {
|
|
265
340
|
if (!t)
|
|
266
|
-
return
|
|
341
|
+
return a;
|
|
267
342
|
if (t.match(/\d\d\d\d-\d\d-\d\d/))
|
|
268
343
|
return t;
|
|
269
|
-
const o = c.state.dateFormat.toLowerCase(), n = t.split(/\W/),
|
|
270
|
-
let e = "", d = "",
|
|
271
|
-
|
|
272
|
-
switch (
|
|
344
|
+
const o = c.state.dateFormat.toLowerCase(), n = t.split(/\W/), s = o.split(/\W/);
|
|
345
|
+
let e = "", d = "", i = "";
|
|
346
|
+
s.forEach((r, l) => {
|
|
347
|
+
switch (r) {
|
|
273
348
|
case "d":
|
|
274
349
|
e = n[l];
|
|
275
350
|
break;
|
|
@@ -277,14 +352,14 @@ function X(t, s = c.L.Not_date) {
|
|
|
277
352
|
d = n[l];
|
|
278
353
|
break;
|
|
279
354
|
case "y":
|
|
280
|
-
|
|
355
|
+
i = n[l];
|
|
281
356
|
break;
|
|
282
357
|
}
|
|
283
358
|
});
|
|
284
|
-
let
|
|
285
|
-
return
|
|
359
|
+
let m = i + "-" + d + "-" + e;
|
|
360
|
+
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;
|
|
286
361
|
}
|
|
287
|
-
const
|
|
362
|
+
const $e = { class: "top-avatar" }, Se = ["src", "title"], _e = ["title"], ke = /* @__PURE__ */ v({
|
|
288
363
|
__name: "avatar",
|
|
289
364
|
props: {
|
|
290
365
|
size: { default: 64 },
|
|
@@ -298,46 +373,46 @@ const _e = { class: "top-avatar" }, ke = ["src", "title"], Te = ["title"], Me =
|
|
|
298
373
|
}) }
|
|
299
374
|
},
|
|
300
375
|
setup(t) {
|
|
301
|
-
|
|
302
|
-
"
|
|
376
|
+
G((s) => ({
|
|
377
|
+
"32a7c02c": s.size + "px"
|
|
303
378
|
}));
|
|
304
|
-
const
|
|
305
|
-
var
|
|
306
|
-
if (
|
|
307
|
-
return (
|
|
308
|
-
if (
|
|
309
|
-
return ((e =
|
|
310
|
-
}), n =
|
|
379
|
+
const a = t, o = b(() => {
|
|
380
|
+
var s, e;
|
|
381
|
+
if (a.isOnline)
|
|
382
|
+
return (s = a.i18n) == null ? void 0 : s.Online;
|
|
383
|
+
if (a.lastActiveTime)
|
|
384
|
+
return ((e = a.i18n) == null ? void 0 : e.LastSeen) + ": " + B(a.lastActiveTime, 2);
|
|
385
|
+
}), n = b(() => a.nickname ? a.nickname + (o.value ? `
|
|
311
386
|
${o.value}` : "") : o.value);
|
|
312
|
-
return (
|
|
387
|
+
return (s, e) => (u(), f("div", $e, [
|
|
313
388
|
S("img", {
|
|
314
389
|
class: "top-avatar_image",
|
|
315
|
-
src:
|
|
390
|
+
src: s.image,
|
|
316
391
|
title: n.value,
|
|
317
392
|
alt: ""
|
|
318
|
-
}, null, 8,
|
|
319
|
-
|
|
393
|
+
}, null, 8, Se),
|
|
394
|
+
s.isOnline ? (u(), f("div", {
|
|
320
395
|
key: 0,
|
|
321
396
|
class: "top-avatar_status",
|
|
322
397
|
title: o.value
|
|
323
|
-
}, null, 8,
|
|
398
|
+
}, null, 8, _e)) : g("", !0)
|
|
324
399
|
]));
|
|
325
400
|
}
|
|
326
|
-
}),
|
|
401
|
+
}), Me = {
|
|
327
402
|
"top-avatar": "top-avatar",
|
|
328
403
|
"top-avatar_image": "top-avatar_image",
|
|
329
404
|
"top-avatar_status": "top-avatar_status"
|
|
330
|
-
},
|
|
405
|
+
}, y = (t, a) => {
|
|
331
406
|
const o = t.__vccOpts || t;
|
|
332
|
-
for (const [n,
|
|
333
|
-
o[n] =
|
|
407
|
+
for (const [n, s] of a)
|
|
408
|
+
o[n] = s;
|
|
334
409
|
return o;
|
|
335
|
-
},
|
|
336
|
-
$style:
|
|
337
|
-
},
|
|
410
|
+
}, Te = {
|
|
411
|
+
$style: Me
|
|
412
|
+
}, Ve = /* @__PURE__ */ y(ke, [["__cssModules", Te]]), We = {
|
|
338
413
|
key: 0,
|
|
339
414
|
class: "top-ellipsis"
|
|
340
|
-
},
|
|
415
|
+
}, Be = /* @__PURE__ */ v({
|
|
341
416
|
__name: "button",
|
|
342
417
|
props: {
|
|
343
418
|
color: { default: "blue" },
|
|
@@ -354,44 +429,44 @@ ${o.value}` : "") : o.value);
|
|
|
354
429
|
isProgress: { type: Boolean }
|
|
355
430
|
},
|
|
356
431
|
setup(t) {
|
|
357
|
-
const
|
|
358
|
-
return (
|
|
359
|
-
class:
|
|
360
|
-
"top-active":
|
|
361
|
-
"top-disabled":
|
|
362
|
-
"top-forms-focusable": !
|
|
432
|
+
const a = t, o = b(() => a.href ? "a" : "button"), n = b(() => a.isSubmit ? "submit" : void 0);
|
|
433
|
+
return (s, e) => (u(), M(x(o.value), {
|
|
434
|
+
class: w({
|
|
435
|
+
"top-active": s.isActive,
|
|
436
|
+
"top-disabled": s.disabled,
|
|
437
|
+
"top-forms-focusable": !s.disabled,
|
|
363
438
|
"top-button": !0,
|
|
364
|
-
"top-button-progress":
|
|
365
|
-
[`top-size_${
|
|
366
|
-
[`top-color_${
|
|
367
|
-
[`top-style_${
|
|
368
|
-
"top-button-withoutText": !
|
|
439
|
+
"top-button-progress": s.isProgress,
|
|
440
|
+
[`top-size_${s.size}`]: !!s.size,
|
|
441
|
+
[`top-color_${s.color}`]: !0,
|
|
442
|
+
[`top-style_${s.styling}`]: !!s.styling,
|
|
443
|
+
"top-button-withoutText": !s.$slots.default
|
|
369
444
|
}),
|
|
370
|
-
name:
|
|
371
|
-
title:
|
|
372
|
-
href:
|
|
445
|
+
name: s.name,
|
|
446
|
+
title: s.title,
|
|
447
|
+
href: s.href,
|
|
373
448
|
type: n.value,
|
|
374
|
-
"data-top-icon":
|
|
375
|
-
"data-top-icon2":
|
|
376
|
-
disabled:
|
|
377
|
-
inProgress:
|
|
449
|
+
"data-top-icon": s.icon || void 0,
|
|
450
|
+
"data-top-icon2": s.icon2 || void 0,
|
|
451
|
+
disabled: s.disabled || void 0,
|
|
452
|
+
inProgress: s.isProgress
|
|
378
453
|
}, {
|
|
379
454
|
default: L(() => [
|
|
380
|
-
|
|
381
|
-
k(
|
|
382
|
-
|
|
455
|
+
s.$slots.default ? (u(), f("span", We, [
|
|
456
|
+
k(s.$slots, "default", {}, () => [
|
|
457
|
+
ee(V(s.icon ? "" : "Button"), 1)
|
|
383
458
|
])
|
|
384
459
|
])) : g("", !0),
|
|
385
|
-
k(
|
|
460
|
+
k(s.$slots, "html")
|
|
386
461
|
]),
|
|
387
462
|
_: 3
|
|
388
463
|
}, 8, ["class", "name", "title", "href", "type", "data-top-icon", "data-top-icon2", "disabled", "inProgress"]));
|
|
389
464
|
}
|
|
390
|
-
}),
|
|
465
|
+
}), Le = "_progress_1f1nw_1", Ee = "_hover_1f1nw_1", ze = {
|
|
391
466
|
"top-button": "top-button",
|
|
392
467
|
"top-active": "top-active",
|
|
393
468
|
"top-button-progress": "top-button-progress",
|
|
394
|
-
progress:
|
|
469
|
+
progress: Le,
|
|
395
470
|
"top-button-withoutText": "top-button-withoutText",
|
|
396
471
|
"top-color_blue": "top-color_blue",
|
|
397
472
|
"top-color_green": "top-color_green",
|
|
@@ -401,44 +476,45 @@ ${o.value}` : "") : o.value);
|
|
|
401
476
|
"top-color_theme": "top-color_theme",
|
|
402
477
|
"top-style_outline": "top-style_outline",
|
|
403
478
|
"top-style_soft": "top-style_soft",
|
|
479
|
+
hover: Ee,
|
|
404
480
|
"top-style_transparent": "top-style_transparent",
|
|
405
481
|
"top-size_l": "top-size_l",
|
|
406
482
|
"top-size_xl": "top-size_xl"
|
|
407
|
-
},
|
|
408
|
-
$style:
|
|
409
|
-
},
|
|
483
|
+
}, De = {
|
|
484
|
+
$style: ze
|
|
485
|
+
}, Pe = /* @__PURE__ */ y(Be, [["__cssModules", De]]), Ae = { class: "top-forms-optionLabel" }, Re = /* @__PURE__ */ v({
|
|
410
486
|
__name: "controlLabel",
|
|
411
487
|
props: {
|
|
412
488
|
description: {},
|
|
413
489
|
disabled: { type: Boolean }
|
|
414
490
|
},
|
|
415
491
|
setup(t) {
|
|
416
|
-
return (
|
|
492
|
+
return (a, o) => (u(), f("div", Ae, [
|
|
417
493
|
S("div", {
|
|
418
|
-
class:
|
|
494
|
+
class: w({
|
|
419
495
|
"top-forms-optionLabel_title": !0,
|
|
420
|
-
"top-forms-optionLabel_title-disabled":
|
|
496
|
+
"top-forms-optionLabel_title-disabled": a.disabled
|
|
421
497
|
})
|
|
422
498
|
}, [
|
|
423
|
-
k(
|
|
499
|
+
k(a.$slots, "default")
|
|
424
500
|
], 2),
|
|
425
|
-
|
|
501
|
+
a.description ? (u(), f("div", {
|
|
426
502
|
key: 0,
|
|
427
|
-
class:
|
|
428
|
-
}, V(
|
|
503
|
+
class: w(["top-forms-optionLabel_description", { "top-forms-optionLabel_description-disabled": a.disabled }])
|
|
504
|
+
}, V(a.description), 3)) : g("", !0)
|
|
429
505
|
]));
|
|
430
506
|
}
|
|
431
|
-
}),
|
|
507
|
+
}), Ce = {
|
|
432
508
|
"top-forms-optionLabel": "top-forms-optionLabel",
|
|
433
509
|
"top-forms-optionLabel_title": "top-forms-optionLabel_title",
|
|
434
510
|
"top-forms-optionLabel_title-disabled": "top-forms-optionLabel_title-disabled",
|
|
435
511
|
"top-forms-optionLabel_description": "top-forms-optionLabel_description",
|
|
436
512
|
"top-forms-optionLabel_description-disabled": "top-forms-optionLabel_description-disabled"
|
|
437
|
-
},
|
|
438
|
-
$style:
|
|
439
|
-
},
|
|
513
|
+
}, Ne = {
|
|
514
|
+
$style: Ce
|
|
515
|
+
}, P = /* @__PURE__ */ y(Re, [["__cssModules", Ne]]), Oe = ["name", "value", "indeterminate", "disabled"], He = /* @__PURE__ */ v({
|
|
440
516
|
__name: "checkbox",
|
|
441
|
-
props: /* @__PURE__ */
|
|
517
|
+
props: /* @__PURE__ */ N({
|
|
442
518
|
modelValue: { type: [Boolean, Array, Set] },
|
|
443
519
|
name: {},
|
|
444
520
|
value: {},
|
|
@@ -452,9 +528,9 @@ ${o.value}` : "") : o.value);
|
|
|
452
528
|
}),
|
|
453
529
|
emits: ["update:modelValue"],
|
|
454
530
|
setup(t) {
|
|
455
|
-
const
|
|
456
|
-
return (o, n) => (
|
|
457
|
-
class:
|
|
531
|
+
const a = K(t, "modelValue");
|
|
532
|
+
return (o, n) => (u(), f("label", {
|
|
533
|
+
class: w({
|
|
458
534
|
"top-forms-optionWrapper": !0,
|
|
459
535
|
"top-checkbox": !0,
|
|
460
536
|
["top-checkbox_" + o.name]: !!o.name,
|
|
@@ -464,21 +540,21 @@ ${o.value}` : "") : o.value);
|
|
|
464
540
|
}, [
|
|
465
541
|
W(S("input", {
|
|
466
542
|
type: "checkbox",
|
|
467
|
-
class:
|
|
543
|
+
class: w({
|
|
468
544
|
"top-forms-focusable": !o.disabled,
|
|
469
545
|
"top-forms-option": !0,
|
|
470
546
|
"top-checkbox_input": !0,
|
|
471
547
|
"top-error": o.isError && !o.disabled
|
|
472
548
|
}),
|
|
473
549
|
name: o.name,
|
|
474
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
550
|
+
"onUpdate:modelValue": n[0] || (n[0] = (s) => a.value = s),
|
|
475
551
|
value: o.value,
|
|
476
552
|
indeterminate: o.indeterminate,
|
|
477
553
|
disabled: o.disabled
|
|
478
|
-
}, null, 10,
|
|
479
|
-
[Q,
|
|
554
|
+
}, null, 10, Oe), [
|
|
555
|
+
[Q, a.value]
|
|
480
556
|
]),
|
|
481
|
-
o.$slots.default ? (
|
|
557
|
+
o.$slots.default ? (u(), M(P, {
|
|
482
558
|
key: 0,
|
|
483
559
|
description: o.description,
|
|
484
560
|
disabled: o.disabled
|
|
@@ -490,40 +566,40 @@ ${o.value}` : "") : o.value);
|
|
|
490
566
|
}, 8, ["description", "disabled"])) : g("", !0)
|
|
491
567
|
], 2));
|
|
492
568
|
}
|
|
493
|
-
}),
|
|
569
|
+
}), Ie = {
|
|
494
570
|
"top-checkbox": "top-checkbox",
|
|
495
571
|
"top-checkbox_input": "top-checkbox_input",
|
|
496
572
|
"top-error": "top-error"
|
|
497
573
|
}, Fe = {
|
|
498
|
-
$style:
|
|
499
|
-
},
|
|
574
|
+
$style: Ie
|
|
575
|
+
}, Ue = /* @__PURE__ */ y(He, [["__cssModules", Fe]]), Xe = ["title"], Ye = /* @__PURE__ */ v({
|
|
500
576
|
__name: "hint",
|
|
501
577
|
props: {
|
|
502
578
|
hint: {}
|
|
503
579
|
},
|
|
504
580
|
setup(t) {
|
|
505
|
-
return (
|
|
581
|
+
return (a, o) => (u(), f("span", {
|
|
506
582
|
class: "top-hint",
|
|
507
583
|
"data-top-icon": "",
|
|
508
|
-
title:
|
|
509
|
-
}, null, 8,
|
|
584
|
+
title: a.hint
|
|
585
|
+
}, null, 8, Xe));
|
|
510
586
|
}
|
|
511
587
|
}), qe = {
|
|
512
588
|
"top-hint": "top-hint"
|
|
513
589
|
}, Ge = {
|
|
514
590
|
$style: qe
|
|
515
|
-
}, Z = /* @__PURE__ */
|
|
591
|
+
}, Z = /* @__PURE__ */ y(Ye, [["__cssModules", Ge]]), Ke = {
|
|
516
592
|
"top-loadbar": "top-loadbar"
|
|
517
|
-
},
|
|
518
|
-
function
|
|
519
|
-
return
|
|
593
|
+
}, Qe = {}, Je = { class: "top-loadbar" };
|
|
594
|
+
function Ze(t, a) {
|
|
595
|
+
return u(), f("div", Je);
|
|
520
596
|
}
|
|
521
|
-
const
|
|
522
|
-
$style:
|
|
523
|
-
}, j = /* @__PURE__ */
|
|
597
|
+
const je = {
|
|
598
|
+
$style: Ke
|
|
599
|
+
}, j = /* @__PURE__ */ y(Qe, [["render", Ze], ["__cssModules", je]]), xe = ["data-top-icon", "data-top-icon2"], et = ["name", "title", "placeholder", "disabled", "readonly"], tt = {
|
|
524
600
|
key: 2,
|
|
525
601
|
class: "top-formsCaption"
|
|
526
|
-
},
|
|
602
|
+
}, ot = /* @__PURE__ */ v({
|
|
527
603
|
inheritAttrs: !1,
|
|
528
604
|
__name: "input",
|
|
529
605
|
props: {
|
|
@@ -542,72 +618,72 @@ const xe = {
|
|
|
542
618
|
captionType: { default: "" }
|
|
543
619
|
},
|
|
544
620
|
emits: ["update:modelValue"],
|
|
545
|
-
setup(t, { emit:
|
|
546
|
-
const o = t, n =
|
|
621
|
+
setup(t, { emit: a }) {
|
|
622
|
+
const o = t, n = a, s = b({
|
|
547
623
|
get() {
|
|
548
624
|
return o.modelValue;
|
|
549
625
|
},
|
|
550
|
-
set(
|
|
551
|
-
n("update:modelValue",
|
|
626
|
+
set(i) {
|
|
627
|
+
n("update:modelValue", i);
|
|
552
628
|
}
|
|
553
|
-
}), e =
|
|
554
|
-
o.modelValue &&
|
|
629
|
+
}), e = b(() => o.addCleaner && !o.title || o.captionType !== "" ? "" : o.title), d = (i) => {
|
|
630
|
+
o.modelValue && i.stopPropagation(), n("update:modelValue", "");
|
|
555
631
|
};
|
|
556
|
-
return (
|
|
557
|
-
class:
|
|
632
|
+
return (i, m) => (u(), f("label", {
|
|
633
|
+
class: w({
|
|
558
634
|
"top-input": !0,
|
|
559
|
-
["top-size_" +
|
|
560
|
-
"top-disabled":
|
|
561
|
-
["top-input-" +
|
|
562
|
-
"top-input-withCleaner":
|
|
563
|
-
"top-formsCaptionWrapper":
|
|
564
|
-
"top-formsCaptionWrapper-always":
|
|
635
|
+
["top-size_" + i.size]: !0,
|
|
636
|
+
"top-disabled": i.disabled,
|
|
637
|
+
["top-input-" + i.modificator]: !!i.modificator,
|
|
638
|
+
"top-input-withCleaner": i.addCleaner && s.value && s.value !== "0000-00-00",
|
|
639
|
+
"top-formsCaptionWrapper": i.captionType !== "",
|
|
640
|
+
"top-formsCaptionWrapper-always": i.captionType === "top"
|
|
565
641
|
}),
|
|
566
|
-
"data-top-icon":
|
|
567
|
-
"data-top-icon2":
|
|
642
|
+
"data-top-icon": i.icon,
|
|
643
|
+
"data-top-icon2": i.icon2
|
|
568
644
|
}, [
|
|
569
|
-
|
|
570
|
-
W(S("input",
|
|
645
|
+
i.isLoading ? (u(), M(j, { key: 0 })) : g("", !0),
|
|
646
|
+
W(S("input", D({
|
|
571
647
|
type: "text",
|
|
572
648
|
class: {
|
|
573
649
|
"top-input_input": !0,
|
|
574
|
-
["top-input_input-" +
|
|
575
|
-
"top-forms-focusable": !
|
|
576
|
-
"top-error":
|
|
650
|
+
["top-input_input-" + i.modificator]: !!i.modificator,
|
|
651
|
+
"top-forms-focusable": !i.disabled,
|
|
652
|
+
"top-error": i.isError
|
|
577
653
|
},
|
|
578
654
|
autocomplete: "off_always",
|
|
579
|
-
name:
|
|
580
|
-
"onUpdate:modelValue":
|
|
581
|
-
title:
|
|
655
|
+
name: i.name,
|
|
656
|
+
"onUpdate:modelValue": m[0] || (m[0] = (r) => s.value = r),
|
|
657
|
+
title: i.title,
|
|
582
658
|
placeholder: e.value,
|
|
583
|
-
disabled:
|
|
584
|
-
readonly:
|
|
585
|
-
onKeydown:
|
|
586
|
-
},
|
|
587
|
-
[J,
|
|
659
|
+
disabled: i.disabled,
|
|
660
|
+
readonly: i.readonly,
|
|
661
|
+
onKeydown: m[1] || (m[1] = te((r) => (i.addCleaner || !!i.$slots.btn) && d(r), ["esc"]))
|
|
662
|
+
}, i.$attrs), null, 16, et), [
|
|
663
|
+
[J, s.value]
|
|
588
664
|
]),
|
|
589
|
-
|
|
665
|
+
i.addCleaner && s.value && s.value !== "0000-00-00" ? (u(), f("span", {
|
|
590
666
|
key: 1,
|
|
591
667
|
class: "top-input_cleaner",
|
|
592
668
|
"data-top-icon": "",
|
|
593
|
-
onClick:
|
|
669
|
+
onClick: oe(d, ["prevent"])
|
|
594
670
|
})) : g("", !0),
|
|
595
|
-
|
|
596
|
-
k(
|
|
597
|
-
], 10,
|
|
671
|
+
i.captionType !== "" ? (u(), f("span", tt, V(i.title), 1)) : g("", !0),
|
|
672
|
+
k(i.$slots, "default")
|
|
673
|
+
], 10, xe));
|
|
598
674
|
}
|
|
599
|
-
}),
|
|
675
|
+
}), st = {
|
|
600
676
|
"top-input": "top-input",
|
|
601
677
|
"top-input_input": "top-input_input",
|
|
602
678
|
"top-input-withCleaner": "top-input-withCleaner",
|
|
603
679
|
"top-input_cleaner": "top-input_cleaner",
|
|
604
680
|
"top-loadbar": "top-loadbar"
|
|
605
|
-
},
|
|
606
|
-
$style:
|
|
607
|
-
}, O = /* @__PURE__ */
|
|
681
|
+
}, at = {
|
|
682
|
+
$style: st
|
|
683
|
+
}, O = /* @__PURE__ */ y(ot, [["__cssModules", at]]), nt = ["modelValue"], it = !!document.documentElement.ontouchstart && !!document.createElement("input").showPicker;
|
|
608
684
|
let Y = (t) => {
|
|
609
685
|
};
|
|
610
|
-
const
|
|
686
|
+
const rt = /* @__PURE__ */ v({
|
|
611
687
|
__name: "inputDate",
|
|
612
688
|
props: {
|
|
613
689
|
modelValue: {},
|
|
@@ -625,14 +701,14 @@ const lt = /* @__PURE__ */ w({
|
|
|
625
701
|
captionType: {}
|
|
626
702
|
},
|
|
627
703
|
emits: ["update:modelValue"],
|
|
628
|
-
setup(t, { emit:
|
|
629
|
-
const o = t, n =
|
|
630
|
-
|
|
704
|
+
setup(t, { emit: a }) {
|
|
705
|
+
const o = t, n = a;
|
|
706
|
+
se(() => {
|
|
631
707
|
e && e.datepicker("destroy");
|
|
632
708
|
});
|
|
633
|
-
const
|
|
709
|
+
const s = ae();
|
|
634
710
|
let e;
|
|
635
|
-
const d =
|
|
711
|
+
const d = b({
|
|
636
712
|
get() {
|
|
637
713
|
return B(o.modelValue, 2, void 0, "0000-00-00");
|
|
638
714
|
},
|
|
@@ -640,69 +716,69 @@ const lt = /* @__PURE__ */ w({
|
|
|
640
716
|
l = X(l, "0000-00-00"), n("update:modelValue", l);
|
|
641
717
|
}
|
|
642
718
|
});
|
|
643
|
-
let
|
|
719
|
+
let i = (l) => {
|
|
644
720
|
Y(l);
|
|
645
|
-
},
|
|
646
|
-
const
|
|
647
|
-
if (!
|
|
721
|
+
}, m = (l) => {
|
|
722
|
+
const p = X(l.target.value), h = B(p);
|
|
723
|
+
if (!h || h === c.L.Not_date || l.target.value !== h) {
|
|
648
724
|
l.target.value = d.value;
|
|
649
725
|
return;
|
|
650
726
|
}
|
|
651
727
|
d.value = l.target.value;
|
|
652
728
|
};
|
|
653
|
-
async function
|
|
654
|
-
const
|
|
655
|
-
Y =
|
|
656
|
-
onSelect: () =>
|
|
729
|
+
async function r(l) {
|
|
730
|
+
const p = await import("./datepicker-DbeGplcq.es.js");
|
|
731
|
+
Y = p.oninput, e = p.connectDatepicker(l.target, {
|
|
732
|
+
onSelect: () => m(l)
|
|
657
733
|
}), e && e.datepicker("show");
|
|
658
734
|
}
|
|
659
|
-
return (l,
|
|
735
|
+
return (l, p) => A(it) ? (u(), M(O, D({ key: 0 }, l.$props, {
|
|
660
736
|
modelValue: d.value,
|
|
661
737
|
readonly: "",
|
|
662
|
-
onClick:
|
|
738
|
+
onClick: p[1] || (p[1] = (h) => s.value.showPicker())
|
|
663
739
|
}), {
|
|
664
740
|
default: L(() => [
|
|
665
741
|
S("input", {
|
|
666
742
|
ref_key: "el",
|
|
667
|
-
ref:
|
|
743
|
+
ref: s,
|
|
668
744
|
type: "date",
|
|
669
745
|
class: "top-input_input-date",
|
|
670
746
|
modelValue: l.modelValue,
|
|
671
|
-
onChange:
|
|
747
|
+
onChange: p[0] || (p[0] = (h) => d.value = h.target.value),
|
|
672
748
|
tabindex: "-1"
|
|
673
|
-
}, null, 40,
|
|
749
|
+
}, null, 40, nt)
|
|
674
750
|
]),
|
|
675
751
|
_: 1
|
|
676
|
-
}, 16, ["modelValue"])) : (
|
|
752
|
+
}, 16, ["modelValue"])) : (u(), M(O, D({ key: 1 }, l.$props, {
|
|
677
753
|
modelValue: d.value,
|
|
678
|
-
"onUpdate:modelValue":
|
|
679
|
-
onInput: A(
|
|
680
|
-
onFocusOnce:
|
|
681
|
-
onChange: A(
|
|
754
|
+
"onUpdate:modelValue": p[2] || (p[2] = (h) => h === "" ? d.value = "" : ""),
|
|
755
|
+
onInput: A(i),
|
|
756
|
+
onFocusOnce: r,
|
|
757
|
+
onChange: A(m),
|
|
682
758
|
modificator: "datepicker"
|
|
683
759
|
}), null, 16, ["modelValue", "onInput", "onChange"]));
|
|
684
760
|
}
|
|
685
|
-
}),
|
|
761
|
+
}), lt = {
|
|
686
762
|
"top-input-datepicker": "top-input-datepicker",
|
|
687
763
|
"top-input_input-date": "top-input_input-date"
|
|
688
|
-
},
|
|
689
|
-
$style:
|
|
690
|
-
},
|
|
764
|
+
}, dt = {
|
|
765
|
+
$style: lt
|
|
766
|
+
}, pt = /* @__PURE__ */ y(rt, [["__cssModules", dt]]), ut = { class: "top-inputRange" }, ct = /* @__PURE__ */ S("span", { class: "top-inputRange_dash" }, " — ", -1), mt = /* @__PURE__ */ v({
|
|
691
767
|
__name: "inputRange",
|
|
692
768
|
setup(t) {
|
|
693
|
-
return (
|
|
694
|
-
k(
|
|
695
|
-
|
|
696
|
-
k(
|
|
769
|
+
return (a, o) => (u(), f("div", ut, [
|
|
770
|
+
k(a.$slots, "from"),
|
|
771
|
+
ct,
|
|
772
|
+
k(a.$slots, "to")
|
|
697
773
|
]));
|
|
698
774
|
}
|
|
699
|
-
}),
|
|
775
|
+
}), ft = {
|
|
700
776
|
"top-inputRange": "top-inputRange",
|
|
701
777
|
"top-inputRange_dash": "top-inputRange_dash",
|
|
702
778
|
"top-input": "top-input"
|
|
703
779
|
}, ht = {
|
|
704
|
-
$style:
|
|
705
|
-
},
|
|
780
|
+
$style: ft
|
|
781
|
+
}, bt = /* @__PURE__ */ y(mt, [["__cssModules", ht]]), gt = ["name", "value", "disabled"], wt = /* @__PURE__ */ v({
|
|
706
782
|
__name: "radio",
|
|
707
783
|
props: {
|
|
708
784
|
modelValue: {},
|
|
@@ -713,8 +789,8 @@ const lt = /* @__PURE__ */ w({
|
|
|
713
789
|
isError: { type: Boolean }
|
|
714
790
|
},
|
|
715
791
|
emits: ["update:modelValue"],
|
|
716
|
-
setup(t, { emit:
|
|
717
|
-
const o = t, n =
|
|
792
|
+
setup(t, { emit: a }) {
|
|
793
|
+
const o = t, n = a, s = b({
|
|
718
794
|
get() {
|
|
719
795
|
return o.modelValue;
|
|
720
796
|
},
|
|
@@ -722,8 +798,8 @@ const lt = /* @__PURE__ */ w({
|
|
|
722
798
|
n("update:modelValue", e);
|
|
723
799
|
}
|
|
724
800
|
});
|
|
725
|
-
return (e, d) => (
|
|
726
|
-
class:
|
|
801
|
+
return (e, d) => (u(), f("label", {
|
|
802
|
+
class: w({
|
|
727
803
|
"top-forms-optionWrapper": !0,
|
|
728
804
|
"top-radio": !0,
|
|
729
805
|
["top-radio_" + e.name]: e.name !== "",
|
|
@@ -733,20 +809,20 @@ const lt = /* @__PURE__ */ w({
|
|
|
733
809
|
}, [
|
|
734
810
|
W(S("input", {
|
|
735
811
|
type: "radio",
|
|
736
|
-
class:
|
|
812
|
+
class: w({
|
|
737
813
|
"top-forms-focusable": !e.disabled,
|
|
738
814
|
"top-forms-option": !0,
|
|
739
815
|
"top-radio_input": !0,
|
|
740
816
|
"top-error": e.isError && !e.disabled
|
|
741
817
|
}),
|
|
742
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
818
|
+
"onUpdate:modelValue": d[0] || (d[0] = (i) => s.value = i),
|
|
743
819
|
name: e.name,
|
|
744
820
|
value: e.value,
|
|
745
821
|
disabled: e.disabled
|
|
746
|
-
}, null, 10,
|
|
747
|
-
[
|
|
822
|
+
}, null, 10, gt), [
|
|
823
|
+
[ne, s.value]
|
|
748
824
|
]),
|
|
749
|
-
e.$slots.default ? (
|
|
825
|
+
e.$slots.default ? (u(), M(P, {
|
|
750
826
|
key: 0,
|
|
751
827
|
description: e.description,
|
|
752
828
|
disabled: e.disabled
|
|
@@ -758,13 +834,13 @@ const lt = /* @__PURE__ */ w({
|
|
|
758
834
|
}, 8, ["description", "disabled"])) : g("", !0)
|
|
759
835
|
], 2));
|
|
760
836
|
}
|
|
761
|
-
}),
|
|
837
|
+
}), yt = {
|
|
762
838
|
"top-radio": "top-radio",
|
|
763
839
|
"top-radio_input": "top-radio_input",
|
|
764
840
|
"top-error": "top-error"
|
|
765
|
-
},
|
|
766
|
-
$style:
|
|
767
|
-
},
|
|
841
|
+
}, vt = {
|
|
842
|
+
$style: yt
|
|
843
|
+
}, $t = /* @__PURE__ */ y(wt, [["__cssModules", vt]]), St = ["name", "value", "disabled"], _t = /* @__PURE__ */ v({
|
|
768
844
|
__name: "switcher",
|
|
769
845
|
props: {
|
|
770
846
|
modelValue: { type: [Boolean, Array, Set] },
|
|
@@ -775,8 +851,8 @@ const lt = /* @__PURE__ */ w({
|
|
|
775
851
|
isError: { type: Boolean }
|
|
776
852
|
},
|
|
777
853
|
emits: ["update:modelValue"],
|
|
778
|
-
setup(t, { emit:
|
|
779
|
-
const o = t, n =
|
|
854
|
+
setup(t, { emit: a }) {
|
|
855
|
+
const o = t, n = a, s = b({
|
|
780
856
|
get() {
|
|
781
857
|
return o.modelValue;
|
|
782
858
|
},
|
|
@@ -784,8 +860,8 @@ const lt = /* @__PURE__ */ w({
|
|
|
784
860
|
n("update:modelValue", e);
|
|
785
861
|
}
|
|
786
862
|
});
|
|
787
|
-
return (e, d) => (
|
|
788
|
-
class:
|
|
863
|
+
return (e, d) => (u(), f("label", {
|
|
864
|
+
class: w({
|
|
789
865
|
"top-forms-optionWrapper": !0,
|
|
790
866
|
"top-checkboxSwitcher": !0,
|
|
791
867
|
"top-disabled": e.disabled,
|
|
@@ -794,20 +870,20 @@ const lt = /* @__PURE__ */ w({
|
|
|
794
870
|
}, [
|
|
795
871
|
W(S("input", {
|
|
796
872
|
type: "checkbox",
|
|
797
|
-
class:
|
|
873
|
+
class: w({
|
|
798
874
|
"top-forms-focusable": !e.disabled,
|
|
799
875
|
"top-forms-option": !0,
|
|
800
876
|
"top-checkboxSwitcher_input": !0,
|
|
801
877
|
"top-error": e.isError && !e.disabled
|
|
802
878
|
}),
|
|
803
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
879
|
+
"onUpdate:modelValue": d[0] || (d[0] = (i) => s.value = i),
|
|
804
880
|
name: e.name,
|
|
805
881
|
value: e.value,
|
|
806
882
|
disabled: e.disabled
|
|
807
|
-
}, null, 10,
|
|
808
|
-
[Q,
|
|
883
|
+
}, null, 10, St), [
|
|
884
|
+
[Q, s.value]
|
|
809
885
|
]),
|
|
810
|
-
e.$slots.default ? (
|
|
886
|
+
e.$slots.default ? (u(), M(P, {
|
|
811
887
|
key: 0,
|
|
812
888
|
description: e.description,
|
|
813
889
|
disabled: e.disabled
|
|
@@ -819,16 +895,16 @@ const lt = /* @__PURE__ */ w({
|
|
|
819
895
|
}, 8, ["description", "disabled"])) : g("", !0)
|
|
820
896
|
], 2));
|
|
821
897
|
}
|
|
822
|
-
}),
|
|
898
|
+
}), kt = {
|
|
823
899
|
"top-checkboxSwitcher": "top-checkboxSwitcher",
|
|
824
900
|
"top-checkboxSwitcher_input": "top-checkboxSwitcher_input",
|
|
825
901
|
"top-error": "top-error"
|
|
826
902
|
}, Mt = {
|
|
827
|
-
$style:
|
|
828
|
-
},
|
|
903
|
+
$style: kt
|
|
904
|
+
}, Tt = /* @__PURE__ */ y(_t, [["__cssModules", Mt]]), Vt = ["name", "placeholder", "disabled", "readonly", "rows"], Wt = {
|
|
829
905
|
key: 0,
|
|
830
906
|
class: "top-textarea_pseudoContent"
|
|
831
|
-
},
|
|
907
|
+
}, Bt = /* @__PURE__ */ v({
|
|
832
908
|
inheritAttrs: !1,
|
|
833
909
|
__name: "textarea",
|
|
834
910
|
props: {
|
|
@@ -844,11 +920,11 @@ const lt = /* @__PURE__ */ w({
|
|
|
844
920
|
hint: {}
|
|
845
921
|
},
|
|
846
922
|
emits: ["update:modelValue"],
|
|
847
|
-
setup(t, { emit:
|
|
848
|
-
|
|
849
|
-
|
|
923
|
+
setup(t, { emit: a }) {
|
|
924
|
+
G((e) => ({
|
|
925
|
+
"3a69e87d": e.minHeight + "px"
|
|
850
926
|
}));
|
|
851
|
-
const o = t, n =
|
|
927
|
+
const o = t, n = a, s = b({
|
|
852
928
|
get() {
|
|
853
929
|
return o.modelValue;
|
|
854
930
|
},
|
|
@@ -857,15 +933,15 @@ const lt = /* @__PURE__ */ w({
|
|
|
857
933
|
}
|
|
858
934
|
});
|
|
859
935
|
return (e, d) => {
|
|
860
|
-
const
|
|
861
|
-
return
|
|
862
|
-
class:
|
|
936
|
+
const i = ie("top-tooltip");
|
|
937
|
+
return u(), f("label", {
|
|
938
|
+
class: w({
|
|
863
939
|
"top-textarea": !0,
|
|
864
940
|
["top-textarea-" + e.name]: e.name,
|
|
865
941
|
"top-disabled": e.disabled
|
|
866
942
|
})
|
|
867
943
|
}, [
|
|
868
|
-
W(S("textarea",
|
|
944
|
+
W(S("textarea", D({
|
|
869
945
|
type: "text",
|
|
870
946
|
class: {
|
|
871
947
|
"top-forms-focusable": !e.disabled,
|
|
@@ -880,35 +956,35 @@ const lt = /* @__PURE__ */ w({
|
|
|
880
956
|
readonly: e.readonly,
|
|
881
957
|
rows: e.expandable ? void 0 : e.rows
|
|
882
958
|
}, e.$attrs, {
|
|
883
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
884
|
-
}), null, 16,
|
|
885
|
-
[J,
|
|
959
|
+
"onUpdate:modelValue": d[0] || (d[0] = (m) => s.value = m)
|
|
960
|
+
}), null, 16, Vt), [
|
|
961
|
+
[J, s.value]
|
|
886
962
|
]),
|
|
887
|
-
e.expandable ? (
|
|
888
|
-
e.hint ? W((
|
|
963
|
+
e.expandable ? (u(), f("div", Wt, V(s.value + " "), 1)) : g("", !0),
|
|
964
|
+
e.hint ? W((u(), M(Z, {
|
|
889
965
|
key: 1,
|
|
890
966
|
class: "top-textarea_hint",
|
|
891
967
|
hint: e.hint
|
|
892
968
|
}, null, 8, ["hint"])), [
|
|
893
|
-
[
|
|
969
|
+
[i]
|
|
894
970
|
]) : g("", !0)
|
|
895
971
|
], 2);
|
|
896
972
|
};
|
|
897
973
|
}
|
|
898
|
-
}),
|
|
974
|
+
}), Lt = {
|
|
899
975
|
"top-textarea": "top-textarea",
|
|
900
976
|
"top-textarea_textarea": "top-textarea_textarea",
|
|
901
977
|
"top-textarea_textarea-expandable": "top-textarea_textarea-expandable",
|
|
902
978
|
"top-textarea_pseudoContent": "top-textarea_pseudoContent",
|
|
903
979
|
"top-textarea_hint": "top-textarea_hint"
|
|
904
|
-
},
|
|
905
|
-
$style:
|
|
906
|
-
},
|
|
980
|
+
}, Et = {
|
|
981
|
+
$style: Lt
|
|
982
|
+
}, zt = /* @__PURE__ */ y(Bt, [["__cssModules", Et]]), Dt = ["data-value", "data-top-icon", "data-top-icon2"], Pt = ["name", "disabled"], At = ["label", "disabled"], Rt = ["value", "selected", "disabled"], Ct = ["value", "selected", "disabled"], Nt = {
|
|
907
983
|
key: 1,
|
|
908
984
|
class: "top-formsCaption"
|
|
909
|
-
},
|
|
985
|
+
}, Ot = /* @__PURE__ */ v({
|
|
910
986
|
__name: "select",
|
|
911
|
-
props: /* @__PURE__ */
|
|
987
|
+
props: /* @__PURE__ */ N({
|
|
912
988
|
modelValue: {},
|
|
913
989
|
options: {},
|
|
914
990
|
name: {},
|
|
@@ -924,149 +1000,149 @@ const lt = /* @__PURE__ */ w({
|
|
|
924
1000
|
},
|
|
925
1001
|
modelModifiers: {}
|
|
926
1002
|
}),
|
|
927
|
-
emits: /* @__PURE__ */
|
|
928
|
-
setup(t, { emit:
|
|
929
|
-
const o = t, n =
|
|
930
|
-
const
|
|
931
|
-
return o.options.forEach((l,
|
|
932
|
-
if (typeof l == "string" && (l = d(
|
|
933
|
-
const
|
|
934
|
-
l.children.forEach((_,
|
|
935
|
-
typeof _ == "string" && (_ = d(
|
|
936
|
-
}), l = { ...l }, l.children =
|
|
1003
|
+
emits: /* @__PURE__ */ N(["update:modelValue"], ["update:modelValue"]),
|
|
1004
|
+
setup(t, { emit: a }) {
|
|
1005
|
+
const o = t, n = K(t, "modelValue"), s = b(() => {
|
|
1006
|
+
const r = /* @__PURE__ */ new Map();
|
|
1007
|
+
return o.options.forEach((l, p) => {
|
|
1008
|
+
if (typeof l == "string" && (l = d(p, l)), l.children) {
|
|
1009
|
+
const h = /* @__PURE__ */ new Map();
|
|
1010
|
+
l.children.forEach((_, E) => {
|
|
1011
|
+
typeof _ == "string" && (_ = d(E, _)), h.set(_.value, _);
|
|
1012
|
+
}), l = { ...l }, l.children = h, r.set(l.value, l);
|
|
937
1013
|
} else
|
|
938
|
-
|
|
939
|
-
}),
|
|
940
|
-
}), e =
|
|
941
|
-
const
|
|
942
|
-
return
|
|
1014
|
+
r.set(l.value, l);
|
|
1015
|
+
}), r;
|
|
1016
|
+
}), e = b(() => {
|
|
1017
|
+
const r = /* @__PURE__ */ new Map();
|
|
1018
|
+
return s.value.forEach((l) => {
|
|
943
1019
|
if (!l.disabled) {
|
|
944
1020
|
if (l.children) {
|
|
945
|
-
l.children.forEach((
|
|
946
|
-
|
|
1021
|
+
l.children.forEach((p) => {
|
|
1022
|
+
p.disabled || r.set(p.value, p);
|
|
947
1023
|
});
|
|
948
1024
|
return;
|
|
949
1025
|
}
|
|
950
|
-
|
|
1026
|
+
r.set(l.value, l);
|
|
951
1027
|
}
|
|
952
|
-
}),
|
|
953
|
-
}), d = (
|
|
954
|
-
value:
|
|
1028
|
+
}), r;
|
|
1029
|
+
}), d = (r, l) => ({
|
|
1030
|
+
value: r,
|
|
955
1031
|
title: l
|
|
956
1032
|
});
|
|
957
|
-
|
|
1033
|
+
re([
|
|
958
1034
|
() => o.modelValue,
|
|
959
1035
|
e
|
|
960
1036
|
], () => {
|
|
961
1037
|
(n.value === null || n.value === void 0) && e.value.size && (console.warn("Пожалуйста, не передавайте в компонент Select значения null и undefined"), n.value = e.value.keys().next().value);
|
|
962
1038
|
}, { immediate: !0 });
|
|
963
|
-
const
|
|
964
|
-
var
|
|
965
|
-
return (
|
|
966
|
-
}),
|
|
967
|
-
const
|
|
968
|
-
n.value =
|
|
1039
|
+
const i = b(() => {
|
|
1040
|
+
var r;
|
|
1041
|
+
return (r = e.value.get(n.value)) == null ? void 0 : r.icon;
|
|
1042
|
+
}), m = () => {
|
|
1043
|
+
const r = [...e.value.keys()], p = (r.indexOf(n.value) + 1) % r.length;
|
|
1044
|
+
n.value = r[p];
|
|
969
1045
|
};
|
|
970
|
-
return (
|
|
971
|
-
class:
|
|
1046
|
+
return (r, l) => (u(), f("label", {
|
|
1047
|
+
class: w({
|
|
972
1048
|
"top-select": !0,
|
|
973
|
-
["top-select-" +
|
|
974
|
-
["top-size_" +
|
|
975
|
-
"top-formsCaptionWrapper": !!
|
|
976
|
-
"top-select-error":
|
|
977
|
-
"top-disabled":
|
|
1049
|
+
["top-select-" + r.name]: r.name,
|
|
1050
|
+
["top-size_" + r.size]: !0,
|
|
1051
|
+
"top-formsCaptionWrapper": !!r.title,
|
|
1052
|
+
"top-select-error": r.isError,
|
|
1053
|
+
"top-disabled": r.disabled
|
|
978
1054
|
}),
|
|
979
1055
|
"data-value": n.value,
|
|
980
|
-
"data-top-icon":
|
|
981
|
-
"data-top-icon2":
|
|
1056
|
+
"data-top-icon": r.icon,
|
|
1057
|
+
"data-top-icon2": i.value
|
|
982
1058
|
}, [
|
|
983
1059
|
W(S("select", {
|
|
984
|
-
class:
|
|
985
|
-
"top-forms-focusable": !
|
|
1060
|
+
class: w({
|
|
1061
|
+
"top-forms-focusable": !r.disabled,
|
|
986
1062
|
"top-select_select": !0,
|
|
987
1063
|
"top-select_arrow": !0,
|
|
988
|
-
"top-error":
|
|
1064
|
+
"top-error": r.isError
|
|
989
1065
|
}),
|
|
990
|
-
name:
|
|
991
|
-
disabled:
|
|
992
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
1066
|
+
name: r.name,
|
|
1067
|
+
disabled: r.disabled,
|
|
1068
|
+
"onUpdate:modelValue": l[0] || (l[0] = (p) => n.value = p)
|
|
993
1069
|
}, [
|
|
994
|
-
(
|
|
995
|
-
|
|
996
|
-
key: "group_" +
|
|
997
|
-
label:
|
|
998
|
-
disabled:
|
|
1070
|
+
(u(!0), f(R, null, F(s.value, ([p, h]) => (u(), f(R, null, [
|
|
1071
|
+
h.children ? (u(), f("optgroup", {
|
|
1072
|
+
key: "group_" + p,
|
|
1073
|
+
label: h.title,
|
|
1074
|
+
disabled: h.disabled
|
|
999
1075
|
}, [
|
|
1000
|
-
(
|
|
1076
|
+
(u(!0), f(R, null, F(h.children, ([_, E]) => (u(), f("option", {
|
|
1001
1077
|
key: _,
|
|
1002
1078
|
value: _,
|
|
1003
1079
|
selected: _ === n.value,
|
|
1004
|
-
disabled:
|
|
1005
|
-
}, V(
|
|
1006
|
-
], 8,
|
|
1007
|
-
key:
|
|
1008
|
-
value:
|
|
1009
|
-
selected:
|
|
1010
|
-
disabled:
|
|
1011
|
-
}, V(
|
|
1080
|
+
disabled: E.disabled
|
|
1081
|
+
}, V(E.title), 9, Rt))), 128))
|
|
1082
|
+
], 8, At)) : (u(), f("option", {
|
|
1083
|
+
key: p ?? void 0,
|
|
1084
|
+
value: p,
|
|
1085
|
+
selected: p === n.value,
|
|
1086
|
+
disabled: h.disabled
|
|
1087
|
+
}, V(h.title), 9, Ct))
|
|
1012
1088
|
], 64))), 256))
|
|
1013
|
-
], 10,
|
|
1014
|
-
[
|
|
1089
|
+
], 10, Pt), [
|
|
1090
|
+
[le, n.value]
|
|
1015
1091
|
]),
|
|
1016
|
-
|
|
1092
|
+
r.addChanger && e.value.size && !r.disabled ? (u(), f("span", {
|
|
1017
1093
|
key: 0,
|
|
1018
1094
|
class: "top-changer",
|
|
1019
|
-
onClick:
|
|
1095
|
+
onClick: m
|
|
1020
1096
|
})) : g("", !0),
|
|
1021
|
-
|
|
1022
|
-
], 10,
|
|
1097
|
+
r.title ? (u(), f("span", Nt, V(r.title), 1)) : g("", !0)
|
|
1098
|
+
], 10, Dt));
|
|
1023
1099
|
}
|
|
1024
|
-
}),
|
|
1100
|
+
}), Ht = {
|
|
1025
1101
|
"top-select": "top-select",
|
|
1026
1102
|
"top-select-error": "top-select-error",
|
|
1027
1103
|
"top-select_select": "top-select_select",
|
|
1028
1104
|
"top-changer": "top-changer"
|
|
1029
|
-
},
|
|
1030
|
-
$style:
|
|
1031
|
-
}, Ft = /* @__PURE__ */
|
|
1105
|
+
}, It = {
|
|
1106
|
+
$style: Ht
|
|
1107
|
+
}, Ft = /* @__PURE__ */ y(Ot, [["__cssModules", It]]), eo = Ve, to = Pe, oo = Ue, so = P, ao = Z, no = O, io = pt, ro = bt, lo = $t, po = Tt, uo = zt, co = Ft, mo = j;
|
|
1032
1108
|
export {
|
|
1033
|
-
|
|
1034
|
-
|
|
1109
|
+
me as A,
|
|
1110
|
+
Qt as B,
|
|
1035
1111
|
c as C,
|
|
1036
|
-
|
|
1112
|
+
Jt as D,
|
|
1037
1113
|
we as E,
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1114
|
+
Zt as F,
|
|
1115
|
+
jt as G,
|
|
1116
|
+
ve as H,
|
|
1117
|
+
xt as I,
|
|
1042
1118
|
X as J,
|
|
1043
|
-
|
|
1044
|
-
|
|
1119
|
+
Pe as T,
|
|
1120
|
+
y as _,
|
|
1045
1121
|
O as a,
|
|
1046
|
-
|
|
1047
|
-
|
|
1122
|
+
eo as b,
|
|
1123
|
+
to as c,
|
|
1048
1124
|
B as d,
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1125
|
+
oo as e,
|
|
1126
|
+
so as f,
|
|
1127
|
+
ao as g,
|
|
1128
|
+
no as h,
|
|
1129
|
+
Xt as i,
|
|
1130
|
+
io as j,
|
|
1131
|
+
ro as k,
|
|
1132
|
+
mo as l,
|
|
1133
|
+
lo as m,
|
|
1134
|
+
co as n,
|
|
1135
|
+
po as o,
|
|
1136
|
+
uo as p,
|
|
1137
|
+
zt as q,
|
|
1062
1138
|
j as r,
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1139
|
+
de as s,
|
|
1140
|
+
pe as t,
|
|
1141
|
+
ue as u,
|
|
1142
|
+
ce as v,
|
|
1143
|
+
Yt as w,
|
|
1144
|
+
qt as x,
|
|
1145
|
+
Gt as y,
|
|
1146
|
+
Kt as z
|
|
1071
1147
|
};
|
|
1072
|
-
//# sourceMappingURL=forms-
|
|
1148
|
+
//# sourceMappingURL=forms-C7R2OMNd.es.js.map
|