@topvisor/ui 0.9.26-dev → 0.9.27-dev
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-C0rB8tdN.amd.js → datepicker-34kJtztn.amd.js} +2 -2
- package/.chunks/{datepicker-C0rB8tdN.amd.js.map → datepicker-34kJtztn.amd.js.map} +1 -1
- package/.chunks/{datepicker-BMrdz1zd.es.js → datepicker-DwZTG-k0.es.js} +3 -4
- package/.chunks/{datepicker-BMrdz1zd.es.js.map → datepicker-DwZTG-k0.es.js.map} +1 -1
- package/.chunks/forms-1ZAO_mt8.es.js +1179 -0
- package/.chunks/forms-1ZAO_mt8.es.js.map +1 -0
- package/.chunks/forms-D_IeAEJM.amd.js +3 -0
- package/.chunks/forms-D_IeAEJM.amd.js.map +1 -0
- package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-CHYNz0kA.es.js → listItem.vue_vue_type_script_setup_true_lang-DsAW8MMm.es.js} +38 -38
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DsAW8MMm.es.js.map +1 -0
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-HVMrwfs6.amd.js +2 -0
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-HVMrwfs6.amd.js.map +1 -0
- package/.chunks/menu-C-SkDk9B.amd.js +2 -0
- package/.chunks/menu-C-SkDk9B.amd.js.map +1 -0
- package/.chunks/menu-CBKYqQZZ.es.js +120 -0
- package/.chunks/menu-CBKYqQZZ.es.js.map +1 -0
- package/.chunks/{popup-CyJ0WBUB.amd.js → popup-7Bt5JEDW.amd.js} +2 -2
- package/.chunks/{popup-CyJ0WBUB.amd.js.map → popup-7Bt5JEDW.amd.js.map} +1 -1
- package/.chunks/{popup-B2BoAirk.es.js → popup-D0tRWEp2.es.js} +9 -16
- package/.chunks/{popup-B2BoAirk.es.js.map → popup-D0tRWEp2.es.js.map} +1 -1
- package/.chunks/{widgetInput-Ce8a61St.amd.js → widgetInput-CeUAGCKd.amd.js} +2 -2
- package/.chunks/widgetInput-CeUAGCKd.amd.js.map +1 -0
- package/.chunks/{widgetInput-pNYn7i5g.es.js → widgetInput-CmVe9G3z.es.js} +2 -2
- package/.chunks/{widgetInput-pNYn7i5g.es.js.map → widgetInput-CmVe9G3z.es.js.map} +1 -1
- package/assets/forms.css +1 -1
- package/assets/formsExt.css +1 -1
- package/assets/menu.css +1 -0
- package/assets/project.css +1 -0
- package/core/core.amd.js +1 -1
- package/core/core.js +1 -1
- package/forms/forms.amd.js +1 -1
- package/forms/forms.js +8 -8
- package/formsExt/formsExt.amd.js +1 -1
- package/formsExt/formsExt.amd.js.map +1 -1
- package/formsExt/formsExt.js +248 -357
- package/formsExt/formsExt.js.map +1 -1
- package/icomoon/demo.html +16 -2
- package/icomoon/fonts/Topvisor-2.svg +1 -0
- package/icomoon/fonts/Topvisor-2.ttf +0 -0
- package/icomoon/fonts/Topvisor-2.woff +0 -0
- package/icomoon/selection.json +1 -1
- package/icomoon/style.css +6 -3
- package/package.json +2 -2
- package/popup/popup.amd.js +1 -1
- package/popup/popup.js +2 -2
- package/popup/worker.amd.js +1 -1
- package/popup/worker.amd.js.map +1 -1
- package/popup/worker.d.ts +2 -0
- package/popup/worker.js +4 -6
- package/popup/worker.js.map +1 -1
- package/project/project.amd.js +2 -0
- package/project/project.amd.js.map +1 -0
- package/project/project.d.ts +1 -0
- package/project/project.js +93 -0
- package/project/project.js.map +1 -0
- package/src/components/forms/avatar/avatar.stories.d.ts +16 -15
- package/src/components/forms/avatar/avatar.vue.d.ts +5 -4
- package/src/components/forms/button/button.d.ts +2 -2
- package/src/components/forms/button/button.stories.d.ts +59 -58
- package/src/components/forms/button/button.vue.d.ts +7 -6
- package/src/components/forms/checkbox/checkbox.stories.d.ts +35 -34
- package/src/components/forms/checkbox/checkbox.vue.d.ts +16 -16
- package/src/components/forms/controlLabel/controlLabel.stories.d.ts +13 -13
- package/src/components/forms/controlLabel/controlLabel.vue.d.ts +3 -2
- package/src/components/forms/hint/hint.stories.d.ts +44 -44
- package/src/components/forms/hint/hint.vue.d.ts +3 -2
- package/src/components/forms/input/input.d.ts +2 -2
- package/src/components/forms/input/input.stories.d.ts +64 -63
- package/src/components/forms/input/input.vue.d.ts +7 -6
- package/src/components/forms/inputDate/inputDate.d.ts +2 -1
- package/src/components/forms/inputDate/inputDate.stories.d.ts +31 -30
- package/src/components/forms/inputDate/inputDate.vue.d.ts +5 -4
- package/src/components/forms/inputRange/inputRange.stories.d.ts +93 -92
- package/src/components/forms/inputRange/inputRange.vue.d.ts +1 -1
- package/src/components/forms/loadbar/loadbar.stories.d.ts +1 -1
- package/src/components/forms/loadbar/loadbar.vue.d.ts +1 -1
- package/src/components/forms/radio/radio.stories.d.ts +33 -32
- package/src/components/forms/radio/radio.vue.d.ts +4 -3
- package/src/components/forms/select/select.d.ts +2 -2
- package/src/components/forms/select/select.stories.d.ts +24 -23
- package/src/components/forms/select/select.vue.d.ts +22 -22
- package/src/components/forms/select/stories/exampleOptions.d.ts +2 -1
- package/src/components/forms/switcher/switcher.stories.d.ts +33 -32
- package/src/components/forms/switcher/switcher.vue.d.ts +4 -3
- package/src/components/forms/textarea/textarea.stories.d.ts +25 -24
- package/src/components/forms/textarea/textarea.vue.d.ts +5 -4
- package/src/components/formsExt/editArea/editArea.d.ts +2 -1
- package/src/components/formsExt/editArea/editArea.stories.d.ts +47 -46
- package/src/components/formsExt/editArea/editArea.vue.d.ts +5 -4
- package/src/components/formsExt/editInput/editInput.d.ts +3 -2
- package/src/components/formsExt/editInput/editInput.stories.d.ts +21 -20
- package/src/components/formsExt/editInput/editInput.vue.d.ts +4 -3
- package/src/components/formsExt/menu/menu.d.ts +2 -1
- package/src/components/formsExt/menu/menu.stories.d.ts +16 -15
- package/src/components/formsExt/menu/menu.vue.d.ts +16 -15
- package/src/components/formsExt/menu/stories/items.d.ts +2 -1
- package/src/components/formsExt/radioGroup/radioGroup.d.ts +2 -2
- package/src/components/formsExt/radioGroup/radioGroup.stories.d.ts +16 -15
- package/src/components/formsExt/radioGroup/radioGroup.vue.d.ts +14 -14
- package/src/components/formsExt/selector2/api.d.ts +3 -2
- package/src/components/formsExt/selector2/itemMulti.vue.d.ts +4 -3
- package/src/components/formsExt/selector2/selector2.d.ts +2 -2
- package/src/components/formsExt/selector2/selector2.stories.d.ts +67 -66
- package/src/components/formsExt/selector2/selector2.vue.d.ts +33 -32
- package/src/components/popup/lib/popup.d.ts +2 -4
- package/src/components/popup/lib/worker.d.ts +2 -1
- package/src/components/popup/popup/listItem.vue.d.ts +4 -3
- package/src/components/popup/popup/opener.vue.d.ts +6 -5
- package/src/components/popup/popup/popup.stories.d.ts +217 -216
- package/src/components/popup/popup/popup.vue.d.ts +8 -7
- package/src/components/popup/popup/widgetInput.vue.d.ts +28 -28
- package/src/components/project/project.d.ts +1 -0
- package/src/components/project/selectorCompetitors/selectorCompetitors.d.ts +20 -0
- package/src/components/project/selectorCompetitors/selectorCompetitors.stories.d.ts +42 -0
- package/src/components/project/selectorCompetitors/selectorCompetitors.vue.d.ts +24 -0
- package/src/components/project/selectorCompetitors/stories/items.d.ts +4 -0
- package/src/components/tabs/tabs/content.vue.d.ts +3 -2
- package/src/components/tabs/tabs/tab.vue.d.ts +3 -2
- package/src/components/tabs/tabs/tabs.stories.d.ts +184 -184
- package/src/components/tabs/tabs/tabs.vue.d.ts +3 -2
- package/src/components/tabsView/tabsView/menu.vue.d.ts +6 -6
- package/src/components/tabsView/tabsView/menuDelimeter.vue.d.ts +1 -1
- package/src/components/tabsView/tabsView/menuItem.vue.d.ts +5 -4
- package/src/components/tabsView/tabsView/menuTitle.vue.d.ts +3 -2
- package/src/components/tabsView/tabsView/store.d.ts +23 -22
- package/src/components/tabsView/tabsView/tabsView.d.ts +2 -1
- package/src/components/tabsView/tabsView/tabsView.stories.d.ts +94 -94
- package/src/components/tabsView/tabsView/tabsView.vue.d.ts +12 -12
- package/src/components/tabsView/tabsView//320/255/320/273/320/265/320/274/320/265/320/275/321/202/321/213/MenuItem.stories.d.ts +92 -92
- package/src/components/tabsView/tabsView//320/255/320/273/320/265/320/274/320/265/320/275/321/202/321/213/MenuTitle.stories.d.ts +44 -44
- package/src/core/core/core.d.ts +3 -3
- package/src/core/core/page.d.ts +4 -0
- package/src/core/core/state.d.ts +4 -0
- package/src/core/utils/check.d.ts +22 -0
- package/src/core/utils/date.d.ts +30 -12
- package/src/core/utils/device.d.ts +34 -1
- package/src/core/utils/dom.d.ts +23 -27
- package/src/core/utils/image.d.ts +6 -0
- package/src/core/utils/keyboard.d.ts +3 -0
- package/src/core/utils/number.d.ts +7 -0
- package/src/core/utils/price.d.ts +8 -0
- package/src/core/utils/scroll.d.ts +4 -0
- package/src/core/utils/store/localStorage.d.ts +2 -1
- package/src/core/utils/store/plugin.d.ts +3 -2
- package/src/core/utils/store/store.d.ts +3 -11
- package/src/core/utils/string.d.ts +80 -0
- package/src/core/utils/url.d.ts +32 -0
- package/tabs/tabs.amd.js +1 -1
- package/tabs/tabs.js +1 -1
- package/tabsView/tabsView.amd.js +1 -1
- package/tabsView/tabsView.amd.js.map +1 -1
- package/tabsView/tabsView.js +6 -10
- package/tabsView/tabsView.js.map +1 -1
- package/utils/check.amd.js +2 -0
- package/utils/check.amd.js.map +1 -0
- package/utils/check.d.ts +1 -0
- package/utils/check.js +26 -0
- package/utils/check.js.map +1 -0
- package/utils/css.amd.js.map +1 -1
- package/utils/css.js +1 -2
- package/utils/css.js.map +1 -1
- package/utils/date.amd.js +1 -1
- package/utils/date.js +8 -5
- package/utils/device.amd.js +1 -1
- package/utils/device.js +11 -7
- package/utils/dom.amd.js.map +1 -1
- package/utils/dom.js.map +1 -1
- package/utils/image.amd.js +2 -0
- package/utils/image.amd.js.map +1 -0
- package/utils/image.d.ts +1 -0
- package/utils/image.js +8 -0
- package/utils/image.js.map +1 -0
- package/utils/keyboard.amd.js.map +1 -1
- package/utils/keyboard.js.map +1 -1
- package/utils/number.amd.js +2 -0
- package/utils/number.amd.js.map +1 -0
- package/utils/number.d.ts +1 -0
- package/utils/number.js +9 -0
- package/utils/number.js.map +1 -0
- package/utils/price.amd.js +2 -0
- package/utils/price.amd.js.map +1 -0
- package/utils/price.d.ts +1 -0
- package/utils/price.js +10 -0
- package/utils/price.js.map +1 -0
- package/utils/route.amd.js.map +1 -1
- package/utils/route.js.map +1 -1
- package/utils/scroll.amd.js +1 -1
- package/utils/scroll.amd.js.map +1 -1
- package/utils/scroll.js +21 -15
- package/utils/scroll.js.map +1 -1
- package/utils/string.amd.js +2 -0
- package/utils/string.amd.js.map +1 -0
- package/utils/string.d.ts +1 -0
- package/utils/string.js +138 -0
- package/utils/string.js.map +1 -0
- package/utils/system.amd.js.map +1 -1
- package/utils/system.js.map +1 -1
- package/utils/url.amd.js +3 -0
- package/utils/url.amd.js.map +1 -0
- package/utils/url.d.ts +1 -0
- package/utils/url.js +176 -0
- package/utils/url.js.map +1 -0
- package/utils/window.amd.js +1 -1
- package/utils/window.js +1 -1
- package/.chunks/forms-C4UtO06K.es.js +0 -1026
- package/.chunks/forms-C4UtO06K.es.js.map +0 -1
- package/.chunks/forms-DujTMzoW.amd.js +0 -3
- package/.chunks/forms-DujTMzoW.amd.js.map +0 -1
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CHYNz0kA.es.js.map +0 -1
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-Ob3185Bq.amd.js +0 -2
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-Ob3185Bq.amd.js.map +0 -1
- package/.chunks/widgetInput-Ce8a61St.amd.js.map +0 -1
|
@@ -1,1026 +0,0 @@
|
|
|
1
|
-
import { insertToPage as Z } from "../utils/css.js";
|
|
2
|
-
import { reactive as W, defineComponent as w, useCssVars as K, computed as h, openBlock as u, createElementBlock as m, createElementVNode as $, createCommentVNode as v, createBlock as M, resolveDynamicComponent as ee, normalizeClass as y, withCtx as L, renderSlot as k, createTextVNode as te, toDisplayString as S, mergeModels as A, useModel as Q, withDirectives as V, vModelCheckbox as X, unref as B, mergeProps as T, withKeys as oe, vModelText as J, withModifiers as ae, onUnmounted as se, ref as ne, vModelRadio as ie, resolveDirective as le, watch as re, Fragment as R, renderList as O, vModelSelect as de } from "vue";
|
|
3
|
-
const x = ["../assets/forms.css"].map((s) => import.meta.resolve(s));
|
|
4
|
-
await Z(x);
|
|
5
|
-
function pe() {
|
|
6
|
-
return "devicePixelRatio" in window && window.devicePixelRatio > 1;
|
|
7
|
-
}
|
|
8
|
-
function ue() {
|
|
9
|
-
return !!navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|IEMobile|Opera Mini/i);
|
|
10
|
-
}
|
|
11
|
-
function ce() {
|
|
12
|
-
return navigator.userAgent.indexOf("Topvisor_App") != -1;
|
|
13
|
-
}
|
|
14
|
-
function me() {
|
|
15
|
-
return navigator.userAgent.indexOf("Mac OS X") !== -1;
|
|
16
|
-
}
|
|
17
|
-
function It() {
|
|
18
|
-
const s = /Chrome|Android/.test(navigator.userAgent);
|
|
19
|
-
let t = /Safari/.test(navigator.userAgent);
|
|
20
|
-
return s && t && (t = !1), t;
|
|
21
|
-
}
|
|
22
|
-
function Ht() {
|
|
23
|
-
return me() ? "⌘" : "Ctrl";
|
|
24
|
-
}
|
|
25
|
-
class fe {
|
|
26
|
-
}
|
|
27
|
-
const be = 100;
|
|
28
|
-
let N;
|
|
29
|
-
const C = /* @__PURE__ */ new Map(), E = {
|
|
30
|
-
width: window.innerWidth,
|
|
31
|
-
height: window.innerHeight
|
|
32
|
-
};
|
|
33
|
-
function he(s) {
|
|
34
|
-
C.set(s, s);
|
|
35
|
-
}
|
|
36
|
-
function ve(s) {
|
|
37
|
-
C.delete(s);
|
|
38
|
-
}
|
|
39
|
-
function ye(s) {
|
|
40
|
-
clearTimeout(N), N = setTimeout(function() {
|
|
41
|
-
s.topEvent = {
|
|
42
|
-
widthDiff: E.width - window.innerWidth,
|
|
43
|
-
hightDiff: E.height - window.innerHeight
|
|
44
|
-
}, E.width = window.innerWidth, E.height = window.innerHeight, C.forEach((t) => t(s));
|
|
45
|
-
}, be);
|
|
46
|
-
}
|
|
47
|
-
window.addEventListener("resize", ye);
|
|
48
|
-
const ge = {
|
|
49
|
-
addOnReize: he,
|
|
50
|
-
removeOnResize: ve
|
|
51
|
-
};
|
|
52
|
-
var q;
|
|
53
|
-
const we = {
|
|
54
|
-
widthForMobile: 900,
|
|
55
|
-
dateFormat: "Y-m-d",
|
|
56
|
-
/**
|
|
57
|
-
* Для Москвы: +0300
|
|
58
|
-
*/
|
|
59
|
-
gmt: (q = (/* @__PURE__ */ new Date()).toString().match(/GMT(\S+)/)) == null ? void 0 : q[1]
|
|
60
|
-
};
|
|
61
|
-
var G;
|
|
62
|
-
const $e = {
|
|
63
|
-
/**
|
|
64
|
-
* Device by size
|
|
65
|
-
* @see widthForMobile
|
|
66
|
-
*/
|
|
67
|
-
isMobile: !1,
|
|
68
|
-
/**
|
|
69
|
-
* Device by user agent
|
|
70
|
-
*/
|
|
71
|
-
isMobileUA: !1,
|
|
72
|
-
/**
|
|
73
|
-
* true, если плотность пикселей экрана больше 1
|
|
74
|
-
*/
|
|
75
|
-
isRetina: !1,
|
|
76
|
-
/**
|
|
77
|
-
* true, елси это приложение
|
|
78
|
-
*/
|
|
79
|
-
isApp: !1,
|
|
80
|
-
/**
|
|
81
|
-
* true при горизонтальном расположении устройства
|
|
82
|
-
*/
|
|
83
|
-
isLandscape: !0,
|
|
84
|
-
/**
|
|
85
|
-
* true при вертикальном расположении устройства
|
|
86
|
-
*/
|
|
87
|
-
isPortrait: !1,
|
|
88
|
-
size: 0,
|
|
89
|
-
// См. core.options
|
|
90
|
-
dateFormat: "Y-m-d",
|
|
91
|
-
// См. core.options
|
|
92
|
-
gmt: (G = (/* @__PURE__ */ new Date()).toString().match(/GMT(\S+)/)) == null ? void 0 : G[1]
|
|
93
|
-
}, D = (s) => {
|
|
94
|
-
var t, o;
|
|
95
|
-
if (!((o = (t = p.$) == null ? void 0 : t.ui) != null && o.tooltip)) {
|
|
96
|
-
console.info("Для работы v-top-tooltip требуется глобальная загрузка jQuery UI Tooltip");
|
|
97
|
-
return;
|
|
98
|
-
}
|
|
99
|
-
return p.$(s);
|
|
100
|
-
}, I = (s, t) => {
|
|
101
|
-
var n;
|
|
102
|
-
const o = s.value ?? {};
|
|
103
|
-
return o.content ??= (n = t.props) == null ? void 0 : n.title, o.content = String(o.content).replace(/\r\n|\r|\n/g, "<br>"), o.position ??= {
|
|
104
|
-
my: "bottom-18px",
|
|
105
|
-
at: "top center"
|
|
106
|
-
}, o;
|
|
107
|
-
}, _e = {
|
|
108
|
-
mounted(s, t, o) {
|
|
109
|
-
var n;
|
|
110
|
-
(n = D(s)) == null || n.tooltip(I(t, o));
|
|
111
|
-
},
|
|
112
|
-
updated(s, t, o, n) {
|
|
113
|
-
var d;
|
|
114
|
-
const a = I(t, o), e = (d = D(s)) == null ? void 0 : d.tooltip("instance");
|
|
115
|
-
e && (e.options = {
|
|
116
|
-
...e.options,
|
|
117
|
-
...a
|
|
118
|
-
});
|
|
119
|
-
},
|
|
120
|
-
unmounted(s, t, o) {
|
|
121
|
-
var n;
|
|
122
|
-
(n = D(s)) == null || n.tooltip("destroy");
|
|
123
|
-
}
|
|
124
|
-
}, ke = () => typeof window > "u" ? {} : window, H = ke();
|
|
125
|
-
class p {
|
|
126
|
-
/**
|
|
127
|
-
* Настройки словаря
|
|
128
|
-
*/
|
|
129
|
-
static L = W({
|
|
130
|
-
Not_date: "Not date"
|
|
131
|
-
});
|
|
132
|
-
static page = H.page ?? {};
|
|
133
|
-
static Page = fe;
|
|
134
|
-
static options = we;
|
|
135
|
-
static state = W({ ...$e });
|
|
136
|
-
static matchMediaIsMobile;
|
|
137
|
-
static $ = H.$;
|
|
138
|
-
/**
|
|
139
|
-
* Добавить на страницу стили, используется для загрузки стилей из js
|
|
140
|
-
*
|
|
141
|
-
* Условная загрузка стилей m и pc отключена в пользу производительсности, стили грузятся всегда, но применяются по условию
|
|
142
|
-
* @param style - css стили в строке
|
|
143
|
-
* @param type - если указать 'm' или 'pc', то стили будут применяться по условию в зависимости от настройки this.options.widthForMobile
|
|
144
|
-
*/
|
|
145
|
-
static appendStyle(t, o = "") {
|
|
146
|
-
let n = "all";
|
|
147
|
-
o === "m" && (n = "(max-width: " + this.options.widthForMobile + "px)"), o === "pc" && (n = "(min-width: " + this.options.widthForMobile + "px)");
|
|
148
|
-
const a = document.createElement("style");
|
|
149
|
-
a.innerHTML = t, a.media = n, document.head.append(a);
|
|
150
|
-
}
|
|
151
|
-
/**
|
|
152
|
-
* Установить как плагин в прилоежнии Vue
|
|
153
|
-
* Core.state является общим для всех приложений Vue на странице
|
|
154
|
-
* Core.options является общим для всех приложений Vue на странице
|
|
155
|
-
* @param app - Vue App
|
|
156
|
-
* @param {typeof options} options - параметры UI
|
|
157
|
-
*/
|
|
158
|
-
static install(t, o) {
|
|
159
|
-
p.defineOptions(o), t.provide("top-core", p), this.installDirectives(t);
|
|
160
|
-
}
|
|
161
|
-
static installDirectives(t) {
|
|
162
|
-
t.directive("top-tooltip", _e);
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* Установить конфигурацию UI
|
|
166
|
-
* @param {typeof options} options
|
|
167
|
-
*/
|
|
168
|
-
static defineOptions(t) {
|
|
169
|
-
t != null && t.widthForMobile && (this.options.widthForMobile = t.widthForMobile), t != null && t.dateFormat && (this.options.dateFormat = t.dateFormat), t != null && t.gmt && (this.options.gmt = t.gmt), p.setState();
|
|
170
|
-
}
|
|
171
|
-
static setState() {
|
|
172
|
-
p.matchMediaIsMobile = window.matchMedia(`(max-width: ${p.options.widthForMobile}px)`), p.state.isMobileUA = ue(), p.state.isRetina = pe(), p.state.isApp = ce(), p.state.dateFormat = this.options.dateFormat, p.state.gmt = this.options.gmt, p.setStateByWindowSize(), ge.addOnReize(p.onResize), p.onResize(), p.saveToCookie();
|
|
173
|
-
}
|
|
174
|
-
static onResize() {
|
|
175
|
-
p.setStateByWindowSize(), document.documentElement.style.setProperty("--100vh", window.innerHeight + "px");
|
|
176
|
-
}
|
|
177
|
-
static setStateByWindowSize() {
|
|
178
|
-
var t;
|
|
179
|
-
p.state.isMobile = !!((t = p.matchMediaIsMobile) != null && t.matches), p.state.isLandscape = window.innerWidth > window.innerHeight, p.state.isPortrait = !p.state.isLandscape, p.state.size = window.innerWidth > window.innerHeight ? window.innerWidth : window.innerHeight, p.saveToCookie();
|
|
180
|
-
}
|
|
181
|
-
/**
|
|
182
|
-
* Сохранить информацию об устройстве в cookie
|
|
183
|
-
*/
|
|
184
|
-
static saveToCookie() {
|
|
185
|
-
const t = [
|
|
186
|
-
1,
|
|
187
|
-
window.innerWidth,
|
|
188
|
-
window.innerHeight,
|
|
189
|
-
window.devicePixelRatio,
|
|
190
|
-
Number(p.state.isMobile),
|
|
191
|
-
Number(p.state.isRetina)
|
|
192
|
-
];
|
|
193
|
-
document.cookie = "device=" + t.join(",") + "; path=/;";
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
function Ut(s) {
|
|
197
|
-
return s.indexOf("T") === -1 && (s.length == 10 && (s += " 00:00:00"), s = s.replace(" ", "T") + p.state.gmt), new Date(s);
|
|
198
|
-
}
|
|
199
|
-
function Me(s = void 0, t = !0, o = 0) {
|
|
200
|
-
let n;
|
|
201
|
-
s != null ? n = new Date(s) : n = /* @__PURE__ */ new Date();
|
|
202
|
-
const a = n.getFullYear(), e = String(n.getMonth() + 1).padStart(2, "0"), d = n.getDate().toString().padStart(2, "0"), l = n.getHours().toString().padStart(2, "0"), f = n.getMinutes().toString().padStart(2, "0"), r = n.getSeconds().toString().padStart(2, "0");
|
|
203
|
-
return n = a + "-" + e + "-" + d, o && (n += " "), o >= 1 && (n += l), o >= 2 && (n += ":" + f), o >= 3 && (n += ":" + r), t && (n = F(n, o)), n;
|
|
204
|
-
}
|
|
205
|
-
function F(s, t = 2, o = p.L.Not_date) {
|
|
206
|
-
if ((!s || s.substring(0, 10) === "0000-00-00") && o && o !== "0000-00-00")
|
|
207
|
-
return o;
|
|
208
|
-
const n = p.state.dateFormat.toLowerCase();
|
|
209
|
-
let a = s.substring(0, 10);
|
|
210
|
-
a.length === 7 && (a += "-01"), a += " 00:00", a = a.replace(/-/g, "/");
|
|
211
|
-
const e = new Date(a);
|
|
212
|
-
if (isNaN(Number(e)))
|
|
213
|
-
return o;
|
|
214
|
-
let d = n.replace("y", String(e.getFullYear()).padStart(2, "0")).replace("m", String(e.getMonth() + 1).padStart(2, "0")).replace("d", String(e.getDate()).padStart(2, "0"));
|
|
215
|
-
if (s.length > 10)
|
|
216
|
-
switch (t) {
|
|
217
|
-
case 1:
|
|
218
|
-
d += " " + s.substring(11, 13);
|
|
219
|
-
break;
|
|
220
|
-
case 2:
|
|
221
|
-
d += " " + s.substring(11, 16);
|
|
222
|
-
break;
|
|
223
|
-
case 3:
|
|
224
|
-
d += " " + s.substring(11, 19);
|
|
225
|
-
break;
|
|
226
|
-
}
|
|
227
|
-
return d;
|
|
228
|
-
}
|
|
229
|
-
function U(s, t = p.L.Not_date) {
|
|
230
|
-
if (!s)
|
|
231
|
-
return t;
|
|
232
|
-
if (s.match(/\d\d\d\d-\d\d-\d\d/))
|
|
233
|
-
return s;
|
|
234
|
-
const o = p.state.dateFormat.toLowerCase(), n = s.split(/\W/), a = o.split(/\W/);
|
|
235
|
-
let e = "", d = "", l = "";
|
|
236
|
-
a.forEach((r, i) => {
|
|
237
|
-
switch (r) {
|
|
238
|
-
case "d":
|
|
239
|
-
e = n[i];
|
|
240
|
-
break;
|
|
241
|
-
case "m":
|
|
242
|
-
d = n[i];
|
|
243
|
-
break;
|
|
244
|
-
case "y":
|
|
245
|
-
l = n[i];
|
|
246
|
-
break;
|
|
247
|
-
}
|
|
248
|
-
});
|
|
249
|
-
let f = l + "-" + d + "-" + e;
|
|
250
|
-
return f.match(/\d\d\d\d-\d\d-\d\d/) || (console.info("Неверный формат даты, будет возращена текущая дата, " + f), f = Me((/* @__PURE__ */ new Date()).getTime(), !1).substring(0, 10)), f;
|
|
251
|
-
}
|
|
252
|
-
const Se = { class: "top-avatar" }, Ve = ["src", "title"], Be = ["title"], Le = /* @__PURE__ */ w({
|
|
253
|
-
__name: "avatar",
|
|
254
|
-
props: {
|
|
255
|
-
size: { default: 64 },
|
|
256
|
-
image: {},
|
|
257
|
-
nickname: {},
|
|
258
|
-
isOnline: { type: Boolean },
|
|
259
|
-
lastActiveTime: {},
|
|
260
|
-
i18n: { default: () => ({
|
|
261
|
-
Online: "Online",
|
|
262
|
-
LastSeen: "Last seen"
|
|
263
|
-
}) }
|
|
264
|
-
},
|
|
265
|
-
setup(s) {
|
|
266
|
-
K((a) => ({
|
|
267
|
-
"5365dc30": a.size + "px"
|
|
268
|
-
}));
|
|
269
|
-
const t = s, o = h(() => {
|
|
270
|
-
var a, e;
|
|
271
|
-
if (t.isOnline)
|
|
272
|
-
return (a = t.i18n) == null ? void 0 : a.Online;
|
|
273
|
-
if (t.lastActiveTime)
|
|
274
|
-
return ((e = t.i18n) == null ? void 0 : e.LastSeen) + ": " + F(t.lastActiveTime, 2);
|
|
275
|
-
}), n = h(() => t.nickname ? t.nickname + (o.value ? `
|
|
276
|
-
${o.value}` : "") : o.value);
|
|
277
|
-
return (a, e) => (u(), m("div", Se, [
|
|
278
|
-
$("img", {
|
|
279
|
-
class: "top-avatar_image",
|
|
280
|
-
src: a.image,
|
|
281
|
-
title: n.value,
|
|
282
|
-
alt: ""
|
|
283
|
-
}, null, 8, Ve),
|
|
284
|
-
a.isOnline ? (u(), m("div", {
|
|
285
|
-
key: 0,
|
|
286
|
-
class: "top-avatar_status",
|
|
287
|
-
title: o.value
|
|
288
|
-
}, null, 8, Be)) : v("", !0)
|
|
289
|
-
]));
|
|
290
|
-
}
|
|
291
|
-
}), ze = {
|
|
292
|
-
"top-avatar": "top-avatar",
|
|
293
|
-
"top-avatar_image": "top-avatar_image",
|
|
294
|
-
"top-avatar_status": "top-avatar_status"
|
|
295
|
-
}, g = (s, t) => {
|
|
296
|
-
const o = s.__vccOpts || s;
|
|
297
|
-
for (const [n, a] of t)
|
|
298
|
-
o[n] = a;
|
|
299
|
-
return o;
|
|
300
|
-
}, Ee = {
|
|
301
|
-
$style: ze
|
|
302
|
-
}, jt = /* @__PURE__ */ g(Le, [["__cssModules", Ee]]), Te = {
|
|
303
|
-
key: 0,
|
|
304
|
-
class: "top-ellipsis"
|
|
305
|
-
}, Fe = /* @__PURE__ */ w({
|
|
306
|
-
__name: "button",
|
|
307
|
-
props: {
|
|
308
|
-
color: { default: "blue" },
|
|
309
|
-
styling: { default: "" },
|
|
310
|
-
size: { default: "s" },
|
|
311
|
-
name: {},
|
|
312
|
-
title: {},
|
|
313
|
-
icon: {},
|
|
314
|
-
icon2: {},
|
|
315
|
-
href: {},
|
|
316
|
-
disabled: { type: Boolean },
|
|
317
|
-
isSubmit: { type: Boolean },
|
|
318
|
-
isActive: { type: Boolean },
|
|
319
|
-
isProgress: { type: Boolean }
|
|
320
|
-
},
|
|
321
|
-
setup(s) {
|
|
322
|
-
const t = s, o = h(() => t.href ? "a" : "button"), n = h(() => t.isSubmit ? "submit" : void 0);
|
|
323
|
-
return (a, e) => (u(), M(ee(o.value), {
|
|
324
|
-
class: y({
|
|
325
|
-
"top-active": a.isActive,
|
|
326
|
-
"top-disabled": a.disabled,
|
|
327
|
-
"top-forms-focusable": !a.disabled,
|
|
328
|
-
"top-button": !0,
|
|
329
|
-
"top-button-progress": a.isProgress,
|
|
330
|
-
[`top-size_${a.size}`]: !!a.size,
|
|
331
|
-
[`top-color_${a.color}`]: !0,
|
|
332
|
-
[`top-style_${a.styling}`]: !!a.styling,
|
|
333
|
-
"top-button-withoutText": !a.$slots.default
|
|
334
|
-
}),
|
|
335
|
-
name: a.name,
|
|
336
|
-
title: a.title,
|
|
337
|
-
href: a.href,
|
|
338
|
-
type: n.value,
|
|
339
|
-
"data-top-icon": a.icon || void 0,
|
|
340
|
-
"data-top-icon2": a.icon2 || void 0,
|
|
341
|
-
disabled: a.disabled || void 0,
|
|
342
|
-
inProgress: a.isProgress
|
|
343
|
-
}, {
|
|
344
|
-
default: L(() => [
|
|
345
|
-
a.$slots.default ? (u(), m("span", Te, [
|
|
346
|
-
k(a.$slots, "default", {}, () => [
|
|
347
|
-
te(S(a.icon ? "" : "Button"), 1)
|
|
348
|
-
])
|
|
349
|
-
])) : v("", !0),
|
|
350
|
-
k(a.$slots, "html")
|
|
351
|
-
]),
|
|
352
|
-
_: 3
|
|
353
|
-
}, 8, ["class", "name", "title", "href", "type", "data-top-icon", "data-top-icon2", "disabled", "inProgress"]));
|
|
354
|
-
}
|
|
355
|
-
}), Re = "_progress_1hqxk_1", De = {
|
|
356
|
-
"top-button": "top-button",
|
|
357
|
-
"top-active": "top-active",
|
|
358
|
-
"top-button-progress": "top-button-progress",
|
|
359
|
-
progress: Re,
|
|
360
|
-
"top-button-withoutText": "top-button-withoutText",
|
|
361
|
-
"top-color_blue": "top-color_blue",
|
|
362
|
-
"top-color_green": "top-color_green",
|
|
363
|
-
"top-color_orange": "top-color_orange",
|
|
364
|
-
"top-color_red": "top-color_red",
|
|
365
|
-
"top-color_pink": "top-color_pink",
|
|
366
|
-
"top-color_theme": "top-color_theme",
|
|
367
|
-
"top-style_outline": "top-style_outline",
|
|
368
|
-
"top-style_soft": "top-style_soft",
|
|
369
|
-
"top-style_transparent": "top-style_transparent",
|
|
370
|
-
"top-size_l": "top-size_l",
|
|
371
|
-
"top-size_xl": "top-size_xl"
|
|
372
|
-
}, Ae = {
|
|
373
|
-
$style: De
|
|
374
|
-
}, Yt = /* @__PURE__ */ g(Fe, [["__cssModules", Ae]]), Ce = { class: "top-forms-optionLabel" }, Pe = /* @__PURE__ */ w({
|
|
375
|
-
__name: "controlLabel",
|
|
376
|
-
props: {
|
|
377
|
-
description: {},
|
|
378
|
-
disabled: { type: Boolean }
|
|
379
|
-
},
|
|
380
|
-
setup(s) {
|
|
381
|
-
return (t, o) => (u(), m("div", Ce, [
|
|
382
|
-
$("div", {
|
|
383
|
-
class: y({
|
|
384
|
-
"top-forms-optionLabel_title": !0,
|
|
385
|
-
"top-forms-optionLabel_title-disabled": t.disabled
|
|
386
|
-
})
|
|
387
|
-
}, [
|
|
388
|
-
k(t.$slots, "default")
|
|
389
|
-
], 2),
|
|
390
|
-
t.description ? (u(), m("div", {
|
|
391
|
-
key: 0,
|
|
392
|
-
class: y(["top-forms-optionLabel_description", { "top-forms-optionLabel_description-disabled": t.disabled }])
|
|
393
|
-
}, S(t.description), 3)) : v("", !0)
|
|
394
|
-
]));
|
|
395
|
-
}
|
|
396
|
-
}), We = {
|
|
397
|
-
"top-forms-optionLabel": "top-forms-optionLabel",
|
|
398
|
-
"top-forms-optionLabel_title": "top-forms-optionLabel_title",
|
|
399
|
-
"top-forms-optionLabel_title-disabled": "top-forms-optionLabel_title-disabled",
|
|
400
|
-
"top-forms-optionLabel_description": "top-forms-optionLabel_description",
|
|
401
|
-
"top-forms-optionLabel_description-disabled": "top-forms-optionLabel_description-disabled"
|
|
402
|
-
}, Oe = {
|
|
403
|
-
$style: We
|
|
404
|
-
}, P = /* @__PURE__ */ g(Pe, [["__cssModules", Oe]]), Ne = ["name", "value", "indeterminate", "disabled"], Ie = /* @__PURE__ */ w({
|
|
405
|
-
__name: "checkbox",
|
|
406
|
-
props: /* @__PURE__ */ A({
|
|
407
|
-
modelValue: { type: [Boolean, Array, Set] },
|
|
408
|
-
name: {},
|
|
409
|
-
value: {},
|
|
410
|
-
description: {},
|
|
411
|
-
disabled: { type: Boolean },
|
|
412
|
-
indeterminate: { type: Boolean },
|
|
413
|
-
isError: { type: Boolean }
|
|
414
|
-
}, {
|
|
415
|
-
modelValue: { type: [Boolean, Array, Set] },
|
|
416
|
-
modelModifiers: {}
|
|
417
|
-
}),
|
|
418
|
-
emits: ["update:modelValue"],
|
|
419
|
-
setup(s) {
|
|
420
|
-
const t = Q(s, "modelValue");
|
|
421
|
-
return (o, n) => (u(), m("label", {
|
|
422
|
-
class: y({
|
|
423
|
-
"top-forms-optionWrapper": !0,
|
|
424
|
-
"top-checkbox": !0,
|
|
425
|
-
["top-checkbox_" + o.name]: !!o.name,
|
|
426
|
-
"top-disabled": o.disabled,
|
|
427
|
-
"top-error": o.isError && !o.disabled
|
|
428
|
-
})
|
|
429
|
-
}, [
|
|
430
|
-
V($("input", {
|
|
431
|
-
type: "checkbox",
|
|
432
|
-
class: y({
|
|
433
|
-
"top-forms-focusable": !o.disabled,
|
|
434
|
-
"top-forms-option": !0,
|
|
435
|
-
"top-checkbox_input": !0,
|
|
436
|
-
"top-error": o.isError && !o.disabled
|
|
437
|
-
}),
|
|
438
|
-
name: o.name,
|
|
439
|
-
"onUpdate:modelValue": n[0] || (n[0] = (a) => t.value = a),
|
|
440
|
-
value: o.value,
|
|
441
|
-
indeterminate: o.indeterminate,
|
|
442
|
-
disabled: o.disabled
|
|
443
|
-
}, null, 10, Ne), [
|
|
444
|
-
[X, t.value]
|
|
445
|
-
]),
|
|
446
|
-
o.$slots.default ? (u(), M(P, {
|
|
447
|
-
key: 0,
|
|
448
|
-
description: o.description,
|
|
449
|
-
disabled: o.disabled
|
|
450
|
-
}, {
|
|
451
|
-
default: L(() => [
|
|
452
|
-
k(o.$slots, "default")
|
|
453
|
-
]),
|
|
454
|
-
_: 3
|
|
455
|
-
}, 8, ["description", "disabled"])) : v("", !0)
|
|
456
|
-
], 2));
|
|
457
|
-
}
|
|
458
|
-
}), He = {
|
|
459
|
-
"top-checkbox": "top-checkbox",
|
|
460
|
-
"top-checkbox_input": "top-checkbox_input",
|
|
461
|
-
"top-error": "top-error"
|
|
462
|
-
}, Ue = {
|
|
463
|
-
$style: He
|
|
464
|
-
}, qt = /* @__PURE__ */ g(Ie, [["__cssModules", Ue]]), je = ["title"], Ye = /* @__PURE__ */ w({
|
|
465
|
-
__name: "hint",
|
|
466
|
-
props: {
|
|
467
|
-
hint: {}
|
|
468
|
-
},
|
|
469
|
-
setup(s) {
|
|
470
|
-
return (t, o) => (u(), m("span", {
|
|
471
|
-
class: "top-hint",
|
|
472
|
-
"data-top-icon": "",
|
|
473
|
-
title: t.hint
|
|
474
|
-
}, null, 8, je));
|
|
475
|
-
}
|
|
476
|
-
}), qe = {
|
|
477
|
-
"top-hint": "top-hint"
|
|
478
|
-
}, Ge = {
|
|
479
|
-
$style: qe
|
|
480
|
-
}, Ke = /* @__PURE__ */ g(Ye, [["__cssModules", Ge]]), Qe = ["data-top-icon", "data-top-icon2"], Xe = ["name", "title", "placeholder", "disabled", "readonly"], Je = {
|
|
481
|
-
key: 2,
|
|
482
|
-
class: "top-formsCaption"
|
|
483
|
-
}, Ze = /* @__PURE__ */ w({
|
|
484
|
-
inheritAttrs: !1,
|
|
485
|
-
__name: "input",
|
|
486
|
-
props: {
|
|
487
|
-
modelValue: {},
|
|
488
|
-
name: {},
|
|
489
|
-
disabled: { type: Boolean },
|
|
490
|
-
readonly: { type: Boolean },
|
|
491
|
-
modificator: {},
|
|
492
|
-
size: { default: "s" },
|
|
493
|
-
isError: { type: Boolean },
|
|
494
|
-
isLoading: { type: Boolean },
|
|
495
|
-
icon: {},
|
|
496
|
-
icon2: {},
|
|
497
|
-
addCleaner: { type: Boolean },
|
|
498
|
-
title: {},
|
|
499
|
-
captionType: { default: "" }
|
|
500
|
-
},
|
|
501
|
-
emits: ["update:modelValue"],
|
|
502
|
-
setup(s, { emit: t }) {
|
|
503
|
-
const o = s, n = t, a = h({
|
|
504
|
-
get() {
|
|
505
|
-
return o.modelValue;
|
|
506
|
-
},
|
|
507
|
-
set(l) {
|
|
508
|
-
n("update:modelValue", l);
|
|
509
|
-
}
|
|
510
|
-
}), e = h(() => o.addCleaner && !o.title || o.captionType !== "" ? "" : o.title), d = (l) => {
|
|
511
|
-
o.modelValue && l.stopPropagation(), n("update:modelValue", "");
|
|
512
|
-
};
|
|
513
|
-
return (l, f) => (u(), m("label", {
|
|
514
|
-
class: y({
|
|
515
|
-
"top-input": !0,
|
|
516
|
-
["top-size_" + l.size]: !0,
|
|
517
|
-
"top-disabled": l.disabled,
|
|
518
|
-
["top-input-" + l.modificator]: !!l.modificator,
|
|
519
|
-
"top-input-withCleaner": l.addCleaner && a.value && a.value !== "0000-00-00",
|
|
520
|
-
"top-formsCaptionWrapper": l.captionType !== "",
|
|
521
|
-
"top-formsCaptionWrapper-always": l.captionType === "top"
|
|
522
|
-
}),
|
|
523
|
-
"data-top-icon": l.icon,
|
|
524
|
-
"data-top-icon2": l.icon2
|
|
525
|
-
}, [
|
|
526
|
-
l.isLoading ? (u(), M(B(Wt), { key: 0 })) : v("", !0),
|
|
527
|
-
V($("input", T({
|
|
528
|
-
type: "text",
|
|
529
|
-
class: {
|
|
530
|
-
"top-input_input": !0,
|
|
531
|
-
["top-input_input-" + l.modificator]: !!l.modificator,
|
|
532
|
-
"top-forms-focusable": !l.disabled,
|
|
533
|
-
"top-error": l.isError
|
|
534
|
-
},
|
|
535
|
-
autocomplete: "off_always",
|
|
536
|
-
name: l.name,
|
|
537
|
-
"onUpdate:modelValue": f[0] || (f[0] = (r) => a.value = r),
|
|
538
|
-
title: l.title,
|
|
539
|
-
placeholder: e.value,
|
|
540
|
-
disabled: l.disabled,
|
|
541
|
-
readonly: l.readonly,
|
|
542
|
-
onKeydown: f[1] || (f[1] = oe((r) => (l.addCleaner || !!l.$slots.btn) && d(r), ["esc"]))
|
|
543
|
-
}, l.$attrs), null, 16, Xe), [
|
|
544
|
-
[J, a.value]
|
|
545
|
-
]),
|
|
546
|
-
l.addCleaner && a.value && a.value !== "0000-00-00" ? (u(), m("span", {
|
|
547
|
-
key: 1,
|
|
548
|
-
class: "top-input_cleaner",
|
|
549
|
-
"data-top-icon": "",
|
|
550
|
-
onClick: ae(d, ["prevent"])
|
|
551
|
-
})) : v("", !0),
|
|
552
|
-
l.captionType !== "" ? (u(), m("span", Je, S(l.title), 1)) : v("", !0),
|
|
553
|
-
k(l.$slots, "default")
|
|
554
|
-
], 10, Qe));
|
|
555
|
-
}
|
|
556
|
-
}), xe = {
|
|
557
|
-
"top-input": "top-input",
|
|
558
|
-
"top-input_input": "top-input_input",
|
|
559
|
-
"top-input-withCleaner": "top-input-withCleaner",
|
|
560
|
-
"top-input_cleaner": "top-input_cleaner",
|
|
561
|
-
"top-loadbar": "top-loadbar"
|
|
562
|
-
}, et = {
|
|
563
|
-
$style: xe
|
|
564
|
-
}, j = /* @__PURE__ */ g(Ze, [["__cssModules", et]]), tt = ["modelValue"], ot = !!document.documentElement.ontouchstart && !!document.createElement("input").showPicker;
|
|
565
|
-
let Y = (s) => {
|
|
566
|
-
};
|
|
567
|
-
const at = /* @__PURE__ */ w({
|
|
568
|
-
__name: "inputDate",
|
|
569
|
-
props: {
|
|
570
|
-
modelValue: {},
|
|
571
|
-
name: {},
|
|
572
|
-
disabled: { type: Boolean },
|
|
573
|
-
readonly: { type: Boolean },
|
|
574
|
-
modificator: {},
|
|
575
|
-
size: {},
|
|
576
|
-
isError: { type: Boolean },
|
|
577
|
-
isLoading: { type: Boolean },
|
|
578
|
-
icon: {},
|
|
579
|
-
icon2: { default: "" },
|
|
580
|
-
addCleaner: { type: Boolean },
|
|
581
|
-
title: {},
|
|
582
|
-
captionType: {}
|
|
583
|
-
},
|
|
584
|
-
emits: ["update:modelValue"],
|
|
585
|
-
setup(s, { emit: t }) {
|
|
586
|
-
const o = s, n = t;
|
|
587
|
-
se(() => {
|
|
588
|
-
e && e.datepicker("destroy");
|
|
589
|
-
});
|
|
590
|
-
const a = ne();
|
|
591
|
-
let e;
|
|
592
|
-
const d = h({
|
|
593
|
-
get() {
|
|
594
|
-
return F(o.modelValue, 2, "0000-00-00");
|
|
595
|
-
},
|
|
596
|
-
set(i) {
|
|
597
|
-
i = U(i, "0000-00-00"), n("update:modelValue", i);
|
|
598
|
-
}
|
|
599
|
-
});
|
|
600
|
-
let l = (i) => {
|
|
601
|
-
Y(i);
|
|
602
|
-
}, f = (i) => {
|
|
603
|
-
const c = U(i.target.value), b = F(c);
|
|
604
|
-
if (!b || b === p.L.Not_date || i.target.value !== b) {
|
|
605
|
-
i.target.value = d.value;
|
|
606
|
-
return;
|
|
607
|
-
}
|
|
608
|
-
d.value = i.target.value;
|
|
609
|
-
};
|
|
610
|
-
async function r(i) {
|
|
611
|
-
const c = await import("./datepicker-BMrdz1zd.es.js");
|
|
612
|
-
Y = c.oninput, e = c.connectDatepicker(i.target, {
|
|
613
|
-
onSelect: () => f(i)
|
|
614
|
-
}), e && e.datepicker("show");
|
|
615
|
-
}
|
|
616
|
-
return (i, c) => B(ot) ? (u(), M(B(j), T({ key: 0 }, i.$props, {
|
|
617
|
-
modelValue: d.value,
|
|
618
|
-
readonly: "",
|
|
619
|
-
onClick: c[1] || (c[1] = (b) => a.value.showPicker())
|
|
620
|
-
}), {
|
|
621
|
-
default: L(() => [
|
|
622
|
-
$("input", {
|
|
623
|
-
ref_key: "el",
|
|
624
|
-
ref: a,
|
|
625
|
-
type: "date",
|
|
626
|
-
class: "top-input_input-date",
|
|
627
|
-
modelValue: i.modelValue,
|
|
628
|
-
onChange: c[0] || (c[0] = (b) => d.value = b.target.value),
|
|
629
|
-
tabindex: "-1"
|
|
630
|
-
}, null, 40, tt)
|
|
631
|
-
]),
|
|
632
|
-
_: 1
|
|
633
|
-
}, 16, ["modelValue"])) : (u(), M(B(j), T({ key: 1 }, i.$props, {
|
|
634
|
-
modelValue: d.value,
|
|
635
|
-
"onUpdate:modelValue": c[2] || (c[2] = (b) => b === "" ? d.value = "" : ""),
|
|
636
|
-
onInput: B(l),
|
|
637
|
-
onFocusOnce: r,
|
|
638
|
-
onChange: B(f),
|
|
639
|
-
modificator: "datepicker"
|
|
640
|
-
}), null, 16, ["modelValue", "onInput", "onChange"]));
|
|
641
|
-
}
|
|
642
|
-
}), st = {
|
|
643
|
-
"top-input-datepicker": "top-input-datepicker",
|
|
644
|
-
"top-input_input-date": "top-input_input-date"
|
|
645
|
-
}, nt = {
|
|
646
|
-
$style: st
|
|
647
|
-
}, Gt = /* @__PURE__ */ g(at, [["__cssModules", nt]]), it = { class: "top-inputRange" }, lt = /* @__PURE__ */ $("span", { class: "top-inputRange_dash" }, " — ", -1), rt = /* @__PURE__ */ w({
|
|
648
|
-
__name: "inputRange",
|
|
649
|
-
setup(s) {
|
|
650
|
-
return (t, o) => (u(), m("div", it, [
|
|
651
|
-
k(t.$slots, "from"),
|
|
652
|
-
lt,
|
|
653
|
-
k(t.$slots, "to")
|
|
654
|
-
]));
|
|
655
|
-
}
|
|
656
|
-
}), dt = {
|
|
657
|
-
"top-inputRange": "top-inputRange",
|
|
658
|
-
"top-inputRange_dash": "top-inputRange_dash",
|
|
659
|
-
"top-input": "top-input"
|
|
660
|
-
}, pt = {
|
|
661
|
-
$style: dt
|
|
662
|
-
}, Kt = /* @__PURE__ */ g(rt, [["__cssModules", pt]]), ut = ["name", "value", "disabled"], ct = /* @__PURE__ */ w({
|
|
663
|
-
__name: "radio",
|
|
664
|
-
props: {
|
|
665
|
-
modelValue: {},
|
|
666
|
-
value: {},
|
|
667
|
-
name: {},
|
|
668
|
-
description: {},
|
|
669
|
-
disabled: { type: Boolean },
|
|
670
|
-
isError: { type: Boolean }
|
|
671
|
-
},
|
|
672
|
-
emits: ["update:modelValue"],
|
|
673
|
-
setup(s, { emit: t }) {
|
|
674
|
-
const o = s, n = t, a = h({
|
|
675
|
-
get() {
|
|
676
|
-
return o.modelValue;
|
|
677
|
-
},
|
|
678
|
-
set(e) {
|
|
679
|
-
n("update:modelValue", e);
|
|
680
|
-
}
|
|
681
|
-
});
|
|
682
|
-
return (e, d) => (u(), m("label", {
|
|
683
|
-
class: y({
|
|
684
|
-
"top-forms-optionWrapper": !0,
|
|
685
|
-
"top-radio": !0,
|
|
686
|
-
["top-radio_" + e.name]: e.name !== "",
|
|
687
|
-
"top-disabled": e.disabled,
|
|
688
|
-
"top-error": e.isError && !e.disabled
|
|
689
|
-
})
|
|
690
|
-
}, [
|
|
691
|
-
V($("input", {
|
|
692
|
-
type: "radio",
|
|
693
|
-
class: y({
|
|
694
|
-
"top-forms-focusable": !e.disabled,
|
|
695
|
-
"top-forms-option": !0,
|
|
696
|
-
"top-radio_input": !0,
|
|
697
|
-
"top-error": e.isError && !e.disabled
|
|
698
|
-
}),
|
|
699
|
-
"onUpdate:modelValue": d[0] || (d[0] = (l) => a.value = l),
|
|
700
|
-
name: e.name,
|
|
701
|
-
value: e.value,
|
|
702
|
-
disabled: e.disabled
|
|
703
|
-
}, null, 10, ut), [
|
|
704
|
-
[ie, a.value]
|
|
705
|
-
]),
|
|
706
|
-
e.$slots.default ? (u(), M(P, {
|
|
707
|
-
key: 0,
|
|
708
|
-
description: e.description,
|
|
709
|
-
disabled: e.disabled
|
|
710
|
-
}, {
|
|
711
|
-
default: L(() => [
|
|
712
|
-
k(e.$slots, "default")
|
|
713
|
-
]),
|
|
714
|
-
_: 3
|
|
715
|
-
}, 8, ["description", "disabled"])) : v("", !0)
|
|
716
|
-
], 2));
|
|
717
|
-
}
|
|
718
|
-
}), mt = {
|
|
719
|
-
"top-radio": "top-radio",
|
|
720
|
-
"top-radio_input": "top-radio_input",
|
|
721
|
-
"top-error": "top-error"
|
|
722
|
-
}, ft = {
|
|
723
|
-
$style: mt
|
|
724
|
-
}, Qt = /* @__PURE__ */ g(ct, [["__cssModules", ft]]), bt = ["name", "value", "disabled"], ht = /* @__PURE__ */ w({
|
|
725
|
-
__name: "switcher",
|
|
726
|
-
props: {
|
|
727
|
-
modelValue: { type: [Boolean, Array, Set] },
|
|
728
|
-
name: {},
|
|
729
|
-
value: {},
|
|
730
|
-
description: {},
|
|
731
|
-
disabled: { type: Boolean },
|
|
732
|
-
isError: { type: Boolean }
|
|
733
|
-
},
|
|
734
|
-
emits: ["update:modelValue"],
|
|
735
|
-
setup(s, { emit: t }) {
|
|
736
|
-
const o = s, n = t, a = h({
|
|
737
|
-
get() {
|
|
738
|
-
return o.modelValue;
|
|
739
|
-
},
|
|
740
|
-
set(e) {
|
|
741
|
-
n("update:modelValue", e);
|
|
742
|
-
}
|
|
743
|
-
});
|
|
744
|
-
return (e, d) => (u(), m("label", {
|
|
745
|
-
class: y({
|
|
746
|
-
"top-forms-optionWrapper": !0,
|
|
747
|
-
"top-checkboxSwitcher": !0,
|
|
748
|
-
"top-disabled": e.disabled,
|
|
749
|
-
"top-error": e.isError && !e.disabled
|
|
750
|
-
})
|
|
751
|
-
}, [
|
|
752
|
-
V($("input", {
|
|
753
|
-
type: "checkbox",
|
|
754
|
-
class: y({
|
|
755
|
-
"top-forms-focusable": !e.disabled,
|
|
756
|
-
"top-forms-option": !0,
|
|
757
|
-
"top-checkboxSwitcher_input": !0,
|
|
758
|
-
"top-error": e.isError && !e.disabled
|
|
759
|
-
}),
|
|
760
|
-
"onUpdate:modelValue": d[0] || (d[0] = (l) => a.value = l),
|
|
761
|
-
name: e.name,
|
|
762
|
-
value: e.value,
|
|
763
|
-
disabled: e.disabled
|
|
764
|
-
}, null, 10, bt), [
|
|
765
|
-
[X, a.value]
|
|
766
|
-
]),
|
|
767
|
-
e.$slots.default ? (u(), M(P, {
|
|
768
|
-
key: 0,
|
|
769
|
-
description: e.description,
|
|
770
|
-
disabled: e.disabled
|
|
771
|
-
}, {
|
|
772
|
-
default: L(() => [
|
|
773
|
-
k(e.$slots, "default")
|
|
774
|
-
]),
|
|
775
|
-
_: 3
|
|
776
|
-
}, 8, ["description", "disabled"])) : v("", !0)
|
|
777
|
-
], 2));
|
|
778
|
-
}
|
|
779
|
-
}), vt = {
|
|
780
|
-
"top-checkboxSwitcher": "top-checkboxSwitcher",
|
|
781
|
-
"top-checkboxSwitcher_input": "top-checkboxSwitcher_input",
|
|
782
|
-
"top-error": "top-error"
|
|
783
|
-
}, yt = {
|
|
784
|
-
$style: vt
|
|
785
|
-
}, Xt = /* @__PURE__ */ g(ht, [["__cssModules", yt]]), gt = ["name", "placeholder", "disabled", "readonly", "rows"], wt = {
|
|
786
|
-
key: 0,
|
|
787
|
-
class: "top-textarea_pseudoContent"
|
|
788
|
-
}, $t = /* @__PURE__ */ w({
|
|
789
|
-
inheritAttrs: !1,
|
|
790
|
-
__name: "textarea",
|
|
791
|
-
props: {
|
|
792
|
-
modelValue: {},
|
|
793
|
-
name: {},
|
|
794
|
-
placeholder: {},
|
|
795
|
-
rows: { default: 5 },
|
|
796
|
-
minHeight: { default: 120 },
|
|
797
|
-
expandable: { type: Boolean },
|
|
798
|
-
disabled: { type: Boolean },
|
|
799
|
-
readonly: { type: Boolean },
|
|
800
|
-
isError: { type: Boolean },
|
|
801
|
-
hint: {}
|
|
802
|
-
},
|
|
803
|
-
emits: ["update:modelValue"],
|
|
804
|
-
setup(s, { emit: t }) {
|
|
805
|
-
K((e) => ({
|
|
806
|
-
c35baa86: e.minHeight + "px"
|
|
807
|
-
}));
|
|
808
|
-
const o = s, n = t, a = h({
|
|
809
|
-
get() {
|
|
810
|
-
return o.modelValue;
|
|
811
|
-
},
|
|
812
|
-
set(e) {
|
|
813
|
-
n("update:modelValue", e);
|
|
814
|
-
}
|
|
815
|
-
});
|
|
816
|
-
return (e, d) => {
|
|
817
|
-
const l = le("top-tooltip");
|
|
818
|
-
return u(), m("label", {
|
|
819
|
-
class: y({
|
|
820
|
-
"top-textarea": !0,
|
|
821
|
-
["top-textarea-" + e.name]: e.name,
|
|
822
|
-
"top-disabled": e.disabled
|
|
823
|
-
})
|
|
824
|
-
}, [
|
|
825
|
-
V($("textarea", T({
|
|
826
|
-
type: "text",
|
|
827
|
-
class: {
|
|
828
|
-
"top-forms-focusable": !e.disabled,
|
|
829
|
-
"top-textarea_textarea": !0,
|
|
830
|
-
"top-textarea_textarea-expandable": e.expandable,
|
|
831
|
-
"top-error": e.isError
|
|
832
|
-
},
|
|
833
|
-
autocomplete: "off_always",
|
|
834
|
-
name: e.name,
|
|
835
|
-
placeholder: e.placeholder,
|
|
836
|
-
disabled: e.disabled,
|
|
837
|
-
readonly: e.readonly,
|
|
838
|
-
rows: e.expandable ? void 0 : e.rows
|
|
839
|
-
}, e.$attrs, {
|
|
840
|
-
"onUpdate:modelValue": d[0] || (d[0] = (f) => a.value = f)
|
|
841
|
-
}), null, 16, gt), [
|
|
842
|
-
[J, a.value]
|
|
843
|
-
]),
|
|
844
|
-
e.expandable ? (u(), m("div", wt, S(a.value + " "), 1)) : v("", !0),
|
|
845
|
-
e.hint ? V((u(), M(Ke, {
|
|
846
|
-
key: 1,
|
|
847
|
-
class: "top-textarea_hint",
|
|
848
|
-
hint: e.hint
|
|
849
|
-
}, null, 8, ["hint"])), [
|
|
850
|
-
[l]
|
|
851
|
-
]) : v("", !0)
|
|
852
|
-
], 2);
|
|
853
|
-
};
|
|
854
|
-
}
|
|
855
|
-
}), _t = {
|
|
856
|
-
"top-textarea": "top-textarea",
|
|
857
|
-
"top-textarea_textarea": "top-textarea_textarea",
|
|
858
|
-
"top-textarea_textarea-expandable": "top-textarea_textarea-expandable",
|
|
859
|
-
"top-textarea_pseudoContent": "top-textarea_pseudoContent",
|
|
860
|
-
"top-textarea_hint": "top-textarea_hint"
|
|
861
|
-
}, kt = {
|
|
862
|
-
$style: _t
|
|
863
|
-
}, Jt = /* @__PURE__ */ g($t, [["__cssModules", kt]]), Mt = ["data-value", "data-top-icon", "data-top-icon2"], St = ["name", "disabled"], Vt = ["label", "disabled"], Bt = ["value", "selected", "disabled"], Lt = ["value", "selected", "disabled"], zt = {
|
|
864
|
-
key: 1,
|
|
865
|
-
class: "top-formsCaption"
|
|
866
|
-
}, Et = /* @__PURE__ */ w({
|
|
867
|
-
__name: "select",
|
|
868
|
-
props: /* @__PURE__ */ A({
|
|
869
|
-
modelValue: {},
|
|
870
|
-
options: {},
|
|
871
|
-
name: {},
|
|
872
|
-
disabled: { type: Boolean },
|
|
873
|
-
icon: {},
|
|
874
|
-
size: { default: "s" },
|
|
875
|
-
addChanger: { type: Boolean },
|
|
876
|
-
title: {},
|
|
877
|
-
isError: { type: Boolean }
|
|
878
|
-
}, {
|
|
879
|
-
modelValue: {
|
|
880
|
-
required: !0
|
|
881
|
-
},
|
|
882
|
-
modelModifiers: {}
|
|
883
|
-
}),
|
|
884
|
-
emits: /* @__PURE__ */ A(["update:modelValue"], ["update:modelValue"]),
|
|
885
|
-
setup(s, { emit: t }) {
|
|
886
|
-
const o = s, n = Q(s, "modelValue"), a = h(() => {
|
|
887
|
-
const r = /* @__PURE__ */ new Map();
|
|
888
|
-
return o.options.forEach((i, c) => {
|
|
889
|
-
if (typeof i == "string" && (i = d(c, i)), i.children) {
|
|
890
|
-
const b = /* @__PURE__ */ new Map();
|
|
891
|
-
i.children.forEach((_, z) => {
|
|
892
|
-
typeof _ == "string" && (_ = d(z, _)), b.set(_.value, _);
|
|
893
|
-
}), i = { ...i }, i.children = b, r.set(i.value, i);
|
|
894
|
-
} else
|
|
895
|
-
r.set(i.value, i);
|
|
896
|
-
}), r;
|
|
897
|
-
}), e = h(() => {
|
|
898
|
-
const r = /* @__PURE__ */ new Map();
|
|
899
|
-
return a.value.forEach((i) => {
|
|
900
|
-
if (!i.disabled) {
|
|
901
|
-
if (i.children) {
|
|
902
|
-
i.children.forEach((c) => {
|
|
903
|
-
c.disabled || r.set(c.value, c);
|
|
904
|
-
});
|
|
905
|
-
return;
|
|
906
|
-
}
|
|
907
|
-
r.set(i.value, i);
|
|
908
|
-
}
|
|
909
|
-
}), r;
|
|
910
|
-
}), d = (r, i) => ({
|
|
911
|
-
value: r,
|
|
912
|
-
title: i
|
|
913
|
-
});
|
|
914
|
-
re([
|
|
915
|
-
() => o.modelValue,
|
|
916
|
-
e
|
|
917
|
-
], () => {
|
|
918
|
-
(n.value === null || n.value === void 0) && e.value.size && (console.warn("Пожалуйста, не передавайте в компонент Select значения null и undefined"), n.value = e.value.keys().next().value);
|
|
919
|
-
}, { immediate: !0 });
|
|
920
|
-
const l = h(() => {
|
|
921
|
-
var r;
|
|
922
|
-
return (r = e.value.get(n.value)) == null ? void 0 : r.icon;
|
|
923
|
-
}), f = () => {
|
|
924
|
-
const r = [...e.value.keys()], c = (r.indexOf(n.value) + 1) % r.length;
|
|
925
|
-
n.value = r[c];
|
|
926
|
-
};
|
|
927
|
-
return (r, i) => (u(), m("label", {
|
|
928
|
-
class: y({
|
|
929
|
-
"top-select": !0,
|
|
930
|
-
["top-select-" + r.name]: r.name,
|
|
931
|
-
["top-size_" + r.size]: !0,
|
|
932
|
-
"top-formsCaptionWrapper": !!r.title,
|
|
933
|
-
"top-select-error": r.isError,
|
|
934
|
-
"top-disabled": r.disabled
|
|
935
|
-
}),
|
|
936
|
-
"data-value": n.value,
|
|
937
|
-
"data-top-icon": r.icon,
|
|
938
|
-
"data-top-icon2": l.value
|
|
939
|
-
}, [
|
|
940
|
-
V($("select", {
|
|
941
|
-
class: y({
|
|
942
|
-
"top-forms-focusable": !r.disabled,
|
|
943
|
-
"top-select_select": !0,
|
|
944
|
-
"top-select_arrow": !0,
|
|
945
|
-
"top-error": r.isError
|
|
946
|
-
}),
|
|
947
|
-
name: r.name,
|
|
948
|
-
disabled: r.disabled,
|
|
949
|
-
"onUpdate:modelValue": i[0] || (i[0] = (c) => n.value = c)
|
|
950
|
-
}, [
|
|
951
|
-
(u(!0), m(R, null, O(a.value, ([c, b]) => (u(), m(R, null, [
|
|
952
|
-
b.children ? (u(), m("optgroup", {
|
|
953
|
-
key: "group_" + c,
|
|
954
|
-
label: b.title,
|
|
955
|
-
disabled: b.disabled
|
|
956
|
-
}, [
|
|
957
|
-
(u(!0), m(R, null, O(b.children, ([_, z]) => (u(), m("option", {
|
|
958
|
-
key: _,
|
|
959
|
-
value: _,
|
|
960
|
-
selected: _ === n.value,
|
|
961
|
-
disabled: z.disabled
|
|
962
|
-
}, S(z.title), 9, Bt))), 128))
|
|
963
|
-
], 8, Vt)) : (u(), m("option", {
|
|
964
|
-
key: c ?? void 0,
|
|
965
|
-
value: c,
|
|
966
|
-
selected: c === n.value,
|
|
967
|
-
disabled: b.disabled
|
|
968
|
-
}, S(b.title), 9, Lt))
|
|
969
|
-
], 64))), 256))
|
|
970
|
-
], 10, St), [
|
|
971
|
-
[de, n.value]
|
|
972
|
-
]),
|
|
973
|
-
r.addChanger && e.value.size && !r.disabled ? (u(), m("span", {
|
|
974
|
-
key: 0,
|
|
975
|
-
class: "top-changer",
|
|
976
|
-
onClick: f
|
|
977
|
-
})) : v("", !0),
|
|
978
|
-
r.title ? (u(), m("span", zt, S(r.title), 1)) : v("", !0)
|
|
979
|
-
], 10, Mt));
|
|
980
|
-
}
|
|
981
|
-
}), Tt = {
|
|
982
|
-
"top-select": "top-select",
|
|
983
|
-
"top-select-error": "top-select-error",
|
|
984
|
-
"top-select_select": "top-select_select",
|
|
985
|
-
"top-changer": "top-changer"
|
|
986
|
-
}, Ft = {
|
|
987
|
-
$style: Tt
|
|
988
|
-
}, Zt = /* @__PURE__ */ g(Et, [["__cssModules", Ft]]), Rt = {
|
|
989
|
-
"top-loadbar": "top-loadbar"
|
|
990
|
-
}, Dt = {}, At = { class: "top-loadbar" };
|
|
991
|
-
function Ct(s, t) {
|
|
992
|
-
return u(), m("div", At);
|
|
993
|
-
}
|
|
994
|
-
const Pt = {
|
|
995
|
-
$style: Rt
|
|
996
|
-
}, Wt = /* @__PURE__ */ g(Dt, [["render", Ct], ["__cssModules", Pt]]);
|
|
997
|
-
export {
|
|
998
|
-
Yt as B,
|
|
999
|
-
p as C,
|
|
1000
|
-
ge as E,
|
|
1001
|
-
Ke as H,
|
|
1002
|
-
j as I,
|
|
1003
|
-
Wt as L,
|
|
1004
|
-
Jt as T,
|
|
1005
|
-
H as _,
|
|
1006
|
-
g as a,
|
|
1007
|
-
pe as b,
|
|
1008
|
-
ue as c,
|
|
1009
|
-
F as d,
|
|
1010
|
-
ce as e,
|
|
1011
|
-
me as f,
|
|
1012
|
-
Ht as g,
|
|
1013
|
-
Me as h,
|
|
1014
|
-
It as i,
|
|
1015
|
-
U as j,
|
|
1016
|
-
jt as k,
|
|
1017
|
-
qt as l,
|
|
1018
|
-
P as m,
|
|
1019
|
-
Gt as n,
|
|
1020
|
-
Kt as o,
|
|
1021
|
-
Xt as p,
|
|
1022
|
-
Zt as q,
|
|
1023
|
-
Qt as r,
|
|
1024
|
-
Ut as s
|
|
1025
|
-
};
|
|
1026
|
-
//# sourceMappingURL=forms-C4UtO06K.es.js.map
|