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