@topvisor/ui 0.9.29-0 → 0.9.29
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-C5l1LY9e.es.js +276 -0
- package/.chunks/datepicker-C5l1LY9e.es.js.map +1 -0
- package/.chunks/datepicker-CCrqadMd.amd.js +234 -0
- package/.chunks/datepicker-CCrqadMd.amd.js.map +1 -0
- package/.chunks/{forms-DBYpY73Z.amd.js → forms-0MQ_zU80.amd.js} +3 -3
- package/.chunks/forms-0MQ_zU80.amd.js.map +1 -0
- package/.chunks/{forms-BScWgSrn.es.js → forms-BwLbWSIF.es.js} +99 -97
- package/.chunks/forms-BwLbWSIF.es.js.map +1 -0
- package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-BzEj4QFY.es.js → listItem.vue_vue_type_script_setup_true_lang-C4297RyP.es.js} +39 -37
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-C4297RyP.es.js.map +1 -0
- package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-D-5F2CnX.amd.js → listItem.vue_vue_type_script_setup_true_lang-Cr9e1nzK.amd.js} +2 -2
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-Cr9e1nzK.amd.js.map +1 -0
- package/.chunks/{menu-BWyv8Yuu.amd.js → menu-BGUYnOx6.amd.js} +2 -2
- package/.chunks/menu-BGUYnOx6.amd.js.map +1 -0
- package/.chunks/{menu-DbC1zr5j.es.js → menu-Czk2awpe.es.js} +41 -39
- package/.chunks/menu-Czk2awpe.es.js.map +1 -0
- package/.chunks/{popup-B4tgc-1X.es.js → popup-C5Ha2nU3.es.js} +431 -438
- package/.chunks/popup-C5Ha2nU3.es.js.map +1 -0
- package/.chunks/{popup-DPzeQf9t.amd.js → popup-CcxDRowY.amd.js} +386 -393
- package/.chunks/popup-CcxDRowY.amd.js.map +1 -0
- package/.chunks/store-Bl79G7T_.amd.js.map +1 -1
- package/.chunks/store-PoMCiuBr.es.js.map +1 -1
- package/.chunks/{widgetInput-DCXTtndM.es.js → widgetInput-DZXnw5Ms.es.js} +13 -11
- package/.chunks/widgetInput-DZXnw5Ms.es.js.map +1 -0
- package/.chunks/{widgetInput-L8yGX3-T.amd.js → widgetInput-DfOBj0qz.amd.js} +2 -2
- package/.chunks/widgetInput-DfOBj0qz.amd.js.map +1 -0
- package/README.md +86 -86
- package/assets/core.css +1 -1
- package/assets/dark.css +1 -1
- package/assets/forms.css +1 -1
- package/assets/formsExt.css +1 -1
- package/assets/light.css +1 -1
- package/assets/menu.css +1 -1
- package/assets/tabs.css +1 -1
- package/assets/tabsView.css +1 -1
- package/assets/widgetInput.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/forms/helpers.amd.js.map +1 -1
- package/forms/helpers.js.map +1 -1
- package/formsExt/formsExt.amd.js +1 -1
- package/formsExt/formsExt.amd.js.map +1 -1
- package/formsExt/formsExt.js +21 -20
- package/formsExt/formsExt.js.map +1 -1
- package/icomoon/Read Me.txt +7 -7
- package/icomoon/demo-files/demo.css +161 -161
- package/icomoon/demo-files/demo.js +30 -30
- package/icomoon/demo.html +3239 -3239
- package/icomoon/fonts/Topvisor-2.svg +253 -253
- package/icomoon/style.css +710 -710
- package/package.json +24 -20
- 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.js +2 -2
- package/popup/worker.js.map +1 -1
- package/project/project.amd.js +1 -1
- package/project/project.amd.js.map +1 -1
- package/project/project.js +33 -31
- package/project/project.js.map +1 -1
- package/require/css.amd.js +17 -11
- package/src/core/utils/css.d.ts +3 -1
- package/src/core/utils/system.d.ts +1 -1
- package/tabs/tabs.amd.js +1 -1
- package/tabs/tabs.js +23 -21
- package/tabs/tabs.js.map +1 -1
- package/tabsView/tabsView.amd.js +1 -1
- package/tabsView/tabsView.amd.js.map +1 -1
- package/tabsView/tabsView.js +45 -43
- package/tabsView/tabsView.js.map +1 -1
- package/utils/check.amd.js.map +1 -1
- package/utils/check.js.map +1 -1
- package/utils/common.amd.js.map +1 -1
- package/utils/common.js.map +1 -1
- package/utils/css.amd.js +1 -1
- package/utils/css.amd.js.map +1 -1
- package/utils/css.js +24 -29
- package/utils/css.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/utils/dom.amd.js.map +1 -1
- package/utils/dom.js.map +1 -1
- package/utils/keyboard.amd.js.map +1 -1
- package/utils/keyboard.js.map +1 -1
- package/utils/price.amd.js.map +1 -1
- package/utils/price.js.map +1 -1
- 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 +1 -1
- package/utils/scroll.js.map +1 -1
- package/utils/string.amd.js.map +1 -1
- package/utils/string.js.map +1 -1
- package/utils/system.amd.js +1 -1
- package/utils/system.amd.js.map +1 -1
- package/utils/system.js +14 -14
- package/utils/system.js.map +1 -1
- package/utils/url.amd.js.map +1 -1
- package/utils/url.js.map +1 -1
- package/utils/window.amd.js +1 -1
- package/utils/window.js +1 -1
- package/.chunks/datepicker-BWFx68Rc.amd.js +0 -247
- package/.chunks/datepicker-BWFx68Rc.amd.js.map +0 -1
- package/.chunks/datepicker-BfPBssvK.es.js +0 -289
- package/.chunks/datepicker-BfPBssvK.es.js.map +0 -1
- package/.chunks/forms-BScWgSrn.es.js.map +0 -1
- package/.chunks/forms-DBYpY73Z.amd.js.map +0 -1
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-BzEj4QFY.es.js.map +0 -1
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-D-5F2CnX.amd.js.map +0 -1
- package/.chunks/menu-BWyv8Yuu.amd.js.map +0 -1
- package/.chunks/menu-DbC1zr5j.es.js.map +0 -1
- package/.chunks/popup-B4tgc-1X.es.js.map +0 -1
- package/.chunks/popup-DPzeQf9t.amd.js.map +0 -1
- package/.chunks/widgetInput-DCXTtndM.es.js.map +0 -1
- package/.chunks/widgetInput-L8yGX3-T.amd.js.map +0 -1
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { insertToPage as
|
|
2
|
-
import { reactive as
|
|
3
|
-
const
|
|
4
|
-
|
|
1
|
+
import { insertToPage as ie } from "../utils/css.js";
|
|
2
|
+
import { reactive as X, defineComponent as y, useCssVars as oe, computed as b, openBlock as u, createElementBlock as m, createElementVNode as _, createCommentVNode as g, createBlock as M, resolveDynamicComponent as re, normalizeClass as w, withCtx as D, renderSlot as k, createTextVNode as le, toDisplayString as W, mergeModels as H, useModel as se, withDirectives as T, vModelCheckbox as ne, onUnmounted as de, ref as pe, unref as B, mergeProps as A, vModelRadio as ue, resolveDirective as ce, vModelText as ae, watch as me, Fragment as O, renderList as q, vModelSelect as fe, withKeys as he, withModifiers as be } from "vue";
|
|
3
|
+
const I = ["../assets/forms.css"].map((t) => import.meta.resolve(t));
|
|
4
|
+
console.time(I.join());
|
|
5
|
+
ie(I);
|
|
6
|
+
console.timeEnd(I.join());
|
|
5
7
|
function ge() {
|
|
6
8
|
return "devicePixelRatio" in window && window.devicePixelRatio > 1;
|
|
7
9
|
}
|
|
@@ -68,22 +70,22 @@ class $e {
|
|
|
68
70
|
}
|
|
69
71
|
const Se = 100;
|
|
70
72
|
let G;
|
|
71
|
-
const
|
|
73
|
+
const F = /* @__PURE__ */ new Map(), R = {
|
|
72
74
|
width: window.innerWidth,
|
|
73
75
|
height: window.innerHeight
|
|
74
76
|
};
|
|
75
77
|
function ke(t) {
|
|
76
|
-
|
|
78
|
+
F.set(t, t);
|
|
77
79
|
}
|
|
78
80
|
function Me(t) {
|
|
79
|
-
|
|
81
|
+
F.delete(t);
|
|
80
82
|
}
|
|
81
83
|
function Ve(t) {
|
|
82
84
|
clearTimeout(G), G = setTimeout(function() {
|
|
83
85
|
t.topEvent = {
|
|
84
86
|
widthDiff: R.width - window.innerWidth,
|
|
85
87
|
hightDiff: R.height - window.innerHeight
|
|
86
|
-
}, R.width = window.innerWidth, R.height = window.innerHeight,
|
|
88
|
+
}, R.width = window.innerWidth, R.height = window.innerHeight, F.forEach((e) => e(t));
|
|
87
89
|
}, Se);
|
|
88
90
|
}
|
|
89
91
|
window.addEventListener("resize", Ve);
|
|
@@ -91,16 +93,16 @@ const We = {
|
|
|
91
93
|
addOnReize: ke,
|
|
92
94
|
removeOnResize: Me
|
|
93
95
|
};
|
|
94
|
-
var
|
|
96
|
+
var ee;
|
|
95
97
|
const Te = {
|
|
96
98
|
widthForMobile: 900,
|
|
97
99
|
dateFormat: "Y-m-d",
|
|
98
100
|
/**
|
|
99
101
|
* Для Москвы: +0300
|
|
100
102
|
*/
|
|
101
|
-
gmt: (
|
|
103
|
+
gmt: (ee = (/* @__PURE__ */ new Date()).toString().match(/GMT(\S+)/)) == null ? void 0 : ee[1]
|
|
102
104
|
};
|
|
103
|
-
var
|
|
105
|
+
var te;
|
|
104
106
|
const Be = {
|
|
105
107
|
/**
|
|
106
108
|
* Device by size
|
|
@@ -131,7 +133,7 @@ const Be = {
|
|
|
131
133
|
// См. core.options
|
|
132
134
|
dateFormat: "Y-m-d",
|
|
133
135
|
// См. core.options
|
|
134
|
-
gmt: (
|
|
136
|
+
gmt: (te = (/* @__PURE__ */ new Date()).toString().match(/GMT(\S+)/)) == null ? void 0 : te[1]
|
|
135
137
|
}, C = (t) => {
|
|
136
138
|
var e, s;
|
|
137
139
|
if (!((s = (e = p.$) == null ? void 0 : e.ui) != null && s.tooltip)) {
|
|
@@ -183,9 +185,9 @@ const ze = {
|
|
|
183
185
|
E == null || E.disconnect();
|
|
184
186
|
}
|
|
185
187
|
};
|
|
186
|
-
let Q = !1, z,
|
|
188
|
+
let Q = !1, z, U;
|
|
187
189
|
const P = /* @__PURE__ */ new Map(), De = (t, e) => {
|
|
188
|
-
const { distance: s, percent: n } =
|
|
190
|
+
const { distance: s, percent: n } = U, a = t.getBoundingClientRect().top, o = e * n / 100 / s, i = (e - a) / o;
|
|
189
191
|
i <= s ? t.style.transform = `translateY(${s - i}px)` : t.style.transform = "translateY(0px)";
|
|
190
192
|
}, Ne = (t) => {
|
|
191
193
|
let e = window.innerHeight;
|
|
@@ -195,7 +197,7 @@ const P = /* @__PURE__ */ new Map(), De = (t, e) => {
|
|
|
195
197
|
e = window.innerHeight, s.forEach((n) => {
|
|
196
198
|
const a = n.target;
|
|
197
199
|
if (n.intersectionRatio < 0.1 ? P.delete(a) : P.set(a, a), n.intersectionRatio === 0) {
|
|
198
|
-
const { distance: o, percent: i } =
|
|
200
|
+
const { distance: o, percent: i } = U;
|
|
199
201
|
a.style.transform = `translateY(${o}px)`;
|
|
200
202
|
}
|
|
201
203
|
});
|
|
@@ -208,7 +210,7 @@ const P = /* @__PURE__ */ new Map(), De = (t, e) => {
|
|
|
208
210
|
if (p.state.isMobileUA) return;
|
|
209
211
|
const n = (i = e.arg) == null ? void 0 : i.split(":");
|
|
210
212
|
let a = Number((n == null ? void 0 : n[0]) ?? 100), o = Number((n == null ? void 0 : n[1]) ?? 30);
|
|
211
|
-
|
|
213
|
+
U = {
|
|
212
214
|
distance: a,
|
|
213
215
|
percent: o
|
|
214
216
|
}, Q || (Ne(), Q = !0), z.observe(t);
|
|
@@ -216,20 +218,20 @@ const P = /* @__PURE__ */ new Map(), De = (t, e) => {
|
|
|
216
218
|
unmounted(t, e, s) {
|
|
217
219
|
P.delete(t), z == null || z.unobserve(t);
|
|
218
220
|
}
|
|
219
|
-
}, Pe = () => typeof window > "u" ? {} : window,
|
|
221
|
+
}, Pe = () => typeof window > "u" ? {} : window, j = Pe();
|
|
220
222
|
class p {
|
|
221
223
|
/**
|
|
222
224
|
* Настройки словаря
|
|
223
225
|
*/
|
|
224
|
-
static L =
|
|
226
|
+
static L = X({
|
|
225
227
|
Not_date: "Not date"
|
|
226
228
|
});
|
|
227
|
-
static page =
|
|
229
|
+
static page = j.page ?? {};
|
|
228
230
|
static Page = $e;
|
|
229
231
|
static options = Te;
|
|
230
|
-
static state =
|
|
232
|
+
static state = X({ ...Be });
|
|
231
233
|
static matchMediaIsMobile;
|
|
232
|
-
static $ =
|
|
234
|
+
static $ = j.$;
|
|
233
235
|
/**
|
|
234
236
|
* Добавить на страницу стили, используется для загрузки стилей из js
|
|
235
237
|
*
|
|
@@ -324,8 +326,8 @@ function po(t, e = !0) {
|
|
|
324
326
|
const n = (/* @__PURE__ */ new Date()).getTimezoneOffset() / 60 * -1 * 60 * 60 * 1e3, a = 3 * 60 * 60 * 1e3;
|
|
325
327
|
let o;
|
|
326
328
|
t !== void 0 ? o = new Date(t) : o = /* @__PURE__ */ new Date(), o.setTime(o.getTime() - n + a);
|
|
327
|
-
let i = String(o.getFullYear()), l = String(o.getDate()).padStart(2, "0"), f = String(o.getMonth() + 1).padStart(2, "0"), r = String(o.getHours()).padStart(2, "0"), d = String(o.getMinutes()).padStart(2, "0"), c = String(o.getSeconds()).padStart(2, "0"),
|
|
328
|
-
return e && (
|
|
329
|
+
let i = String(o.getFullYear()), l = String(o.getDate()).padStart(2, "0"), f = String(o.getMonth() + 1).padStart(2, "0"), r = String(o.getHours()).padStart(2, "0"), d = String(o.getMinutes()).padStart(2, "0"), c = String(o.getSeconds()).padStart(2, "0"), h = i + "-" + f + "-" + l + " " + r + ":" + d + ":" + c;
|
|
330
|
+
return e && (h = L(h)), h;
|
|
329
331
|
}
|
|
330
332
|
function L(t, e = 2, s, n = p.L.Not_date) {
|
|
331
333
|
if (typeof t == "string" && (!t || t.substring(0, 10) === "0000-00-00") && n && n !== "0000-00-00")
|
|
@@ -401,16 +403,16 @@ const Oe = { class: "top-avatar" }, Ce = ["src", "title"], He = ["title"], Ie =
|
|
|
401
403
|
}) }
|
|
402
404
|
},
|
|
403
405
|
setup(t) {
|
|
404
|
-
|
|
405
|
-
"
|
|
406
|
+
oe((a) => ({
|
|
407
|
+
"5365dc30": a.size + "px"
|
|
406
408
|
}));
|
|
407
|
-
const e = t, s =
|
|
409
|
+
const e = t, s = b(() => {
|
|
408
410
|
var a, o;
|
|
409
411
|
if (e.isOnline)
|
|
410
412
|
return (a = e.i18n) == null ? void 0 : a.Online;
|
|
411
413
|
if (e.lastActiveTime)
|
|
412
414
|
return ((o = e.i18n) == null ? void 0 : o.LastSeen) + ": " + L(e.lastActiveTime, 2);
|
|
413
|
-
}), n =
|
|
415
|
+
}), n = b(() => e.nickname ? e.nickname + (s.value ? `
|
|
414
416
|
${s.value}` : "") : s.value);
|
|
415
417
|
return (a, o) => (u(), m("div", Oe, [
|
|
416
418
|
_("img", {
|
|
@@ -457,7 +459,7 @@ ${s.value}` : "") : s.value);
|
|
|
457
459
|
isProgress: { type: Boolean }
|
|
458
460
|
},
|
|
459
461
|
setup(t) {
|
|
460
|
-
const e = t, s =
|
|
462
|
+
const e = t, s = b(() => e.href ? "a" : "button"), n = b(() => e.isSubmit ? "submit" : void 0);
|
|
461
463
|
return (a, o) => (u(), M(re(s.value), {
|
|
462
464
|
class: w({
|
|
463
465
|
"top-active": a.isActive,
|
|
@@ -490,11 +492,11 @@ ${s.value}` : "") : s.value);
|
|
|
490
492
|
_: 3
|
|
491
493
|
}, 8, ["class", "name", "title", "href", "type", "data-top-icon", "data-top-icon2", "disabled", "inProgress"]));
|
|
492
494
|
}
|
|
493
|
-
}),
|
|
495
|
+
}), qe = "_progress_1hqxk_1", Ge = {
|
|
494
496
|
"top-button": "top-button",
|
|
495
497
|
"top-active": "top-active",
|
|
496
498
|
"top-button-progress": "top-button-progress",
|
|
497
|
-
progress:
|
|
499
|
+
progress: qe,
|
|
498
500
|
"top-button-withoutText": "top-button-withoutText",
|
|
499
501
|
"top-color_blue": "top-color_blue",
|
|
500
502
|
"top-color_green": "top-color_green",
|
|
@@ -507,16 +509,16 @@ ${s.value}` : "") : s.value);
|
|
|
507
509
|
"top-style_transparent": "top-style_transparent",
|
|
508
510
|
"top-size_l": "top-size_l",
|
|
509
511
|
"top-size_xl": "top-size_xl"
|
|
510
|
-
},
|
|
511
|
-
$style:
|
|
512
|
-
}, co = /* @__PURE__ */ v(Xe, [["__cssModules",
|
|
512
|
+
}, Ke = {
|
|
513
|
+
$style: Ge
|
|
514
|
+
}, co = /* @__PURE__ */ v(Xe, [["__cssModules", Ke]]), Qe = { class: "top-forms-optionLabel" }, je = /* @__PURE__ */ y({
|
|
513
515
|
__name: "controlLabel",
|
|
514
516
|
props: {
|
|
515
517
|
description: {},
|
|
516
518
|
disabled: { type: Boolean }
|
|
517
519
|
},
|
|
518
520
|
setup(t) {
|
|
519
|
-
return (e, s) => (u(), m("div",
|
|
521
|
+
return (e, s) => (u(), m("div", Qe, [
|
|
520
522
|
_("div", {
|
|
521
523
|
class: w({
|
|
522
524
|
"top-forms-optionLabel_title": !0,
|
|
@@ -531,15 +533,15 @@ ${s.value}` : "") : s.value);
|
|
|
531
533
|
}, W(e.description), 3)) : g("", !0)
|
|
532
534
|
]));
|
|
533
535
|
}
|
|
534
|
-
}),
|
|
536
|
+
}), Je = {
|
|
535
537
|
"top-forms-optionLabel": "top-forms-optionLabel",
|
|
536
538
|
"top-forms-optionLabel_title": "top-forms-optionLabel_title",
|
|
537
539
|
"top-forms-optionLabel_title-disabled": "top-forms-optionLabel_title-disabled",
|
|
538
540
|
"top-forms-optionLabel_description": "top-forms-optionLabel_description",
|
|
539
541
|
"top-forms-optionLabel_description-disabled": "top-forms-optionLabel_description-disabled"
|
|
540
|
-
},
|
|
541
|
-
$style:
|
|
542
|
-
},
|
|
542
|
+
}, Ze = {
|
|
543
|
+
$style: Je
|
|
544
|
+
}, Y = /* @__PURE__ */ v(je, [["__cssModules", Ze]]), xe = ["name", "value", "indeterminate", "disabled"], et = /* @__PURE__ */ y({
|
|
543
545
|
__name: "checkbox",
|
|
544
546
|
props: /* @__PURE__ */ H({
|
|
545
547
|
modelValue: { type: [Boolean, Array, Set] },
|
|
@@ -555,7 +557,7 @@ ${s.value}` : "") : s.value);
|
|
|
555
557
|
}),
|
|
556
558
|
emits: ["update:modelValue"],
|
|
557
559
|
setup(t) {
|
|
558
|
-
const e =
|
|
560
|
+
const e = se(t, "modelValue");
|
|
559
561
|
return (s, n) => (u(), m("label", {
|
|
560
562
|
class: w({
|
|
561
563
|
"top-forms-optionWrapper": !0,
|
|
@@ -579,9 +581,9 @@ ${s.value}` : "") : s.value);
|
|
|
579
581
|
indeterminate: s.indeterminate,
|
|
580
582
|
disabled: s.disabled
|
|
581
583
|
}, null, 10, xe), [
|
|
582
|
-
[
|
|
584
|
+
[ne, e.value]
|
|
583
585
|
]),
|
|
584
|
-
s.$slots.default ? (u(), M(
|
|
586
|
+
s.$slots.default ? (u(), M(Y, {
|
|
585
587
|
key: 0,
|
|
586
588
|
description: s.description,
|
|
587
589
|
disabled: s.disabled
|
|
@@ -643,7 +645,7 @@ const pt = /* @__PURE__ */ y({
|
|
|
643
645
|
});
|
|
644
646
|
const a = pe();
|
|
645
647
|
let o;
|
|
646
|
-
const i =
|
|
648
|
+
const i = b({
|
|
647
649
|
get() {
|
|
648
650
|
return L(s.modelValue, 2, void 0, "0000-00-00");
|
|
649
651
|
},
|
|
@@ -654,23 +656,23 @@ const pt = /* @__PURE__ */ y({
|
|
|
654
656
|
let l = (d) => {
|
|
655
657
|
Z(d);
|
|
656
658
|
}, f = (d) => {
|
|
657
|
-
const c = J(d.target.value),
|
|
658
|
-
if (!
|
|
659
|
+
const c = J(d.target.value), h = L(c);
|
|
660
|
+
if (!h || h === p.L.Not_date || d.target.value !== h) {
|
|
659
661
|
d.target.value = i.value;
|
|
660
662
|
return;
|
|
661
663
|
}
|
|
662
664
|
i.value = d.target.value;
|
|
663
665
|
};
|
|
664
666
|
async function r(d) {
|
|
665
|
-
const c = await import("./datepicker-
|
|
667
|
+
const c = await import("./datepicker-C5l1LY9e.es.js");
|
|
666
668
|
Z = c.oninput, o = c.connectDatepicker(d.target, {
|
|
667
669
|
onSelect: () => f(d)
|
|
668
670
|
}), o && o.datepicker("show");
|
|
669
671
|
}
|
|
670
|
-
return (d, c) => B(dt) ? (u(), M(B(
|
|
672
|
+
return (d, c) => B(dt) ? (u(), M(B(x), A({ key: 0 }, d.$props, {
|
|
671
673
|
modelValue: i.value,
|
|
672
674
|
readonly: "",
|
|
673
|
-
onClick: c[1] || (c[1] = (
|
|
675
|
+
onClick: c[1] || (c[1] = (h) => a.value.showPicker())
|
|
674
676
|
}), {
|
|
675
677
|
default: D(() => [
|
|
676
678
|
_("input", {
|
|
@@ -679,14 +681,14 @@ const pt = /* @__PURE__ */ y({
|
|
|
679
681
|
type: "date",
|
|
680
682
|
class: "top-input_input-date",
|
|
681
683
|
modelValue: d.modelValue,
|
|
682
|
-
onChange: c[0] || (c[0] = (
|
|
684
|
+
onChange: c[0] || (c[0] = (h) => i.value = h.target.value),
|
|
683
685
|
tabindex: "-1"
|
|
684
686
|
}, null, 40, lt)
|
|
685
687
|
]),
|
|
686
688
|
_: 1
|
|
687
|
-
}, 16, ["modelValue"])) : (u(), M(B(
|
|
689
|
+
}, 16, ["modelValue"])) : (u(), M(B(x), A({ key: 1 }, d.$props, {
|
|
688
690
|
modelValue: i.value,
|
|
689
|
-
"onUpdate:modelValue": c[2] || (c[2] = (
|
|
691
|
+
"onUpdate:modelValue": c[2] || (c[2] = (h) => h === "" ? i.value = "" : ""),
|
|
690
692
|
onInput: B(l),
|
|
691
693
|
onFocusOnce: r,
|
|
692
694
|
onChange: B(f),
|
|
@@ -698,7 +700,7 @@ const pt = /* @__PURE__ */ y({
|
|
|
698
700
|
"top-input_input-date": "top-input_input-date"
|
|
699
701
|
}, ct = {
|
|
700
702
|
$style: ut
|
|
701
|
-
}, fo = /* @__PURE__ */ v(pt, [["__cssModules", ct]]), mt = { class: "top-inputRange" }, ft = /* @__PURE__ */ _("span", { class: "top-inputRange_dash" }, " — ", -1),
|
|
703
|
+
}, fo = /* @__PURE__ */ v(pt, [["__cssModules", ct]]), mt = { class: "top-inputRange" }, ft = /* @__PURE__ */ _("span", { class: "top-inputRange_dash" }, " — ", -1), ht = /* @__PURE__ */ y({
|
|
702
704
|
__name: "inputRange",
|
|
703
705
|
setup(t) {
|
|
704
706
|
return (e, s) => (u(), m("div", mt, [
|
|
@@ -707,13 +709,13 @@ const pt = /* @__PURE__ */ y({
|
|
|
707
709
|
k(e.$slots, "to")
|
|
708
710
|
]));
|
|
709
711
|
}
|
|
710
|
-
}),
|
|
712
|
+
}), bt = {
|
|
711
713
|
"top-inputRange": "top-inputRange",
|
|
712
714
|
"top-inputRange_dash": "top-inputRange_dash",
|
|
713
715
|
"top-input": "top-input"
|
|
714
716
|
}, gt = {
|
|
715
|
-
$style:
|
|
716
|
-
},
|
|
717
|
+
$style: bt
|
|
718
|
+
}, ho = /* @__PURE__ */ v(ht, [["__cssModules", gt]]), wt = ["name", "value", "disabled"], vt = /* @__PURE__ */ y({
|
|
717
719
|
__name: "radio",
|
|
718
720
|
props: {
|
|
719
721
|
modelValue: {},
|
|
@@ -725,7 +727,7 @@ const pt = /* @__PURE__ */ y({
|
|
|
725
727
|
},
|
|
726
728
|
emits: ["update:modelValue"],
|
|
727
729
|
setup(t, { emit: e }) {
|
|
728
|
-
const s = t, n = e, a =
|
|
730
|
+
const s = t, n = e, a = b({
|
|
729
731
|
get() {
|
|
730
732
|
return s.modelValue;
|
|
731
733
|
},
|
|
@@ -757,7 +759,7 @@ const pt = /* @__PURE__ */ y({
|
|
|
757
759
|
}, null, 10, wt), [
|
|
758
760
|
[ue, a.value]
|
|
759
761
|
]),
|
|
760
|
-
o.$slots.default ? (u(), M(
|
|
762
|
+
o.$slots.default ? (u(), M(Y, {
|
|
761
763
|
key: 0,
|
|
762
764
|
description: o.description,
|
|
763
765
|
disabled: o.disabled
|
|
@@ -775,7 +777,7 @@ const pt = /* @__PURE__ */ y({
|
|
|
775
777
|
"top-error": "top-error"
|
|
776
778
|
}, _t = {
|
|
777
779
|
$style: yt
|
|
778
|
-
},
|
|
780
|
+
}, bo = /* @__PURE__ */ v(vt, [["__cssModules", _t]]), $t = ["name", "value", "disabled"], St = /* @__PURE__ */ y({
|
|
779
781
|
__name: "switcher",
|
|
780
782
|
props: {
|
|
781
783
|
modelValue: { type: [Boolean, Array, Set] },
|
|
@@ -787,7 +789,7 @@ const pt = /* @__PURE__ */ y({
|
|
|
787
789
|
},
|
|
788
790
|
emits: ["update:modelValue"],
|
|
789
791
|
setup(t, { emit: e }) {
|
|
790
|
-
const s = t, n = e, a =
|
|
792
|
+
const s = t, n = e, a = b({
|
|
791
793
|
get() {
|
|
792
794
|
return s.modelValue;
|
|
793
795
|
},
|
|
@@ -816,9 +818,9 @@ const pt = /* @__PURE__ */ y({
|
|
|
816
818
|
value: o.value,
|
|
817
819
|
disabled: o.disabled
|
|
818
820
|
}, null, 10, $t), [
|
|
819
|
-
[
|
|
821
|
+
[ne, a.value]
|
|
820
822
|
]),
|
|
821
|
-
o.$slots.default ? (u(), M(
|
|
823
|
+
o.$slots.default ? (u(), M(Y, {
|
|
822
824
|
key: 0,
|
|
823
825
|
description: o.description,
|
|
824
826
|
disabled: o.disabled
|
|
@@ -856,10 +858,10 @@ const pt = /* @__PURE__ */ y({
|
|
|
856
858
|
},
|
|
857
859
|
emits: ["update:modelValue"],
|
|
858
860
|
setup(t, { emit: e }) {
|
|
859
|
-
|
|
860
|
-
|
|
861
|
+
oe((o) => ({
|
|
862
|
+
c35baa86: o.minHeight + "px"
|
|
861
863
|
}));
|
|
862
|
-
const s = t, n = e, a =
|
|
864
|
+
const s = t, n = e, a = b({
|
|
863
865
|
get() {
|
|
864
866
|
return s.modelValue;
|
|
865
867
|
},
|
|
@@ -893,7 +895,7 @@ const pt = /* @__PURE__ */ y({
|
|
|
893
895
|
}, o.$attrs, {
|
|
894
896
|
"onUpdate:modelValue": i[0] || (i[0] = (f) => a.value = f)
|
|
895
897
|
}), null, 16, Vt), [
|
|
896
|
-
[
|
|
898
|
+
[ae, a.value]
|
|
897
899
|
]),
|
|
898
900
|
o.expandable ? (u(), m("div", Wt, W(a.value + " "), 1)) : g("", !0),
|
|
899
901
|
o.hint ? T((u(), M(rt, {
|
|
@@ -937,18 +939,18 @@ const pt = /* @__PURE__ */ y({
|
|
|
937
939
|
}),
|
|
938
940
|
emits: /* @__PURE__ */ H(["update:modelValue"], ["update:modelValue"]),
|
|
939
941
|
setup(t, { emit: e }) {
|
|
940
|
-
const s = t, n =
|
|
942
|
+
const s = t, n = se(t, "modelValue"), a = b(() => {
|
|
941
943
|
const r = /* @__PURE__ */ new Map();
|
|
942
944
|
return s.options.forEach((d, c) => {
|
|
943
945
|
if (typeof d == "string" && (d = i(c, d)), d.children) {
|
|
944
|
-
const
|
|
946
|
+
const h = /* @__PURE__ */ new Map();
|
|
945
947
|
d.children.forEach((S, N) => {
|
|
946
|
-
typeof S == "string" && (S = i(N, S)),
|
|
947
|
-
}), d = { ...d }, d.children =
|
|
948
|
+
typeof S == "string" && (S = i(N, S)), h.set(S.value, S);
|
|
949
|
+
}), d = { ...d }, d.children = h, r.set(d.value, d);
|
|
948
950
|
} else
|
|
949
951
|
r.set(d.value, d);
|
|
950
952
|
}), r;
|
|
951
|
-
}), o =
|
|
953
|
+
}), o = b(() => {
|
|
952
954
|
const r = /* @__PURE__ */ new Map();
|
|
953
955
|
return a.value.forEach((d) => {
|
|
954
956
|
if (!d.disabled) {
|
|
@@ -971,7 +973,7 @@ const pt = /* @__PURE__ */ y({
|
|
|
971
973
|
], () => {
|
|
972
974
|
(n.value === null || n.value === void 0) && o.value.size && (console.warn("Пожалуйста, не передавайте в компонент Select значения null и undefined"), n.value = o.value.keys().next().value);
|
|
973
975
|
}, { immediate: !0 });
|
|
974
|
-
const l =
|
|
976
|
+
const l = b(() => {
|
|
975
977
|
var r;
|
|
976
978
|
return (r = o.value.get(n.value)) == null ? void 0 : r.icon;
|
|
977
979
|
}), f = () => {
|
|
@@ -1002,13 +1004,13 @@ const pt = /* @__PURE__ */ y({
|
|
|
1002
1004
|
disabled: r.disabled,
|
|
1003
1005
|
"onUpdate:modelValue": d[0] || (d[0] = (c) => n.value = c)
|
|
1004
1006
|
}, [
|
|
1005
|
-
(u(!0), m(O, null,
|
|
1006
|
-
|
|
1007
|
+
(u(!0), m(O, null, q(a.value, ([c, h]) => (u(), m(O, null, [
|
|
1008
|
+
h.children ? (u(), m("optgroup", {
|
|
1007
1009
|
key: "group_" + c,
|
|
1008
|
-
label:
|
|
1009
|
-
disabled:
|
|
1010
|
+
label: h.title,
|
|
1011
|
+
disabled: h.disabled
|
|
1010
1012
|
}, [
|
|
1011
|
-
(u(!0), m(O, null,
|
|
1013
|
+
(u(!0), m(O, null, q(h.children, ([S, N]) => (u(), m("option", {
|
|
1012
1014
|
key: S,
|
|
1013
1015
|
value: S,
|
|
1014
1016
|
selected: S === n.value,
|
|
@@ -1018,8 +1020,8 @@ const pt = /* @__PURE__ */ y({
|
|
|
1018
1020
|
key: c ?? void 0,
|
|
1019
1021
|
value: c,
|
|
1020
1022
|
selected: c === n.value,
|
|
1021
|
-
disabled:
|
|
1022
|
-
}, W(
|
|
1023
|
+
disabled: h.disabled
|
|
1024
|
+
}, W(h.title), 9, Rt))
|
|
1023
1025
|
], 64))), 256))
|
|
1024
1026
|
], 10, zt), [
|
|
1025
1027
|
[fe, n.value]
|
|
@@ -1047,10 +1049,10 @@ function Ut(t, e) {
|
|
|
1047
1049
|
}
|
|
1048
1050
|
const Yt = {
|
|
1049
1051
|
$style: Ht
|
|
1050
|
-
}, Xt = /* @__PURE__ */ v(It, [["render", Ut], ["__cssModules", Yt]]),
|
|
1052
|
+
}, Xt = /* @__PURE__ */ v(It, [["render", Ut], ["__cssModules", Yt]]), qt = ["data-top-icon", "data-top-icon2"], Gt = ["name", "title", "placeholder", "disabled", "readonly"], Kt = {
|
|
1051
1053
|
key: 2,
|
|
1052
1054
|
class: "top-formsCaption"
|
|
1053
|
-
},
|
|
1055
|
+
}, Qt = /* @__PURE__ */ y({
|
|
1054
1056
|
inheritAttrs: !1,
|
|
1055
1057
|
__name: "input",
|
|
1056
1058
|
props: {
|
|
@@ -1070,14 +1072,14 @@ const Yt = {
|
|
|
1070
1072
|
},
|
|
1071
1073
|
emits: ["update:modelValue"],
|
|
1072
1074
|
setup(t, { emit: e }) {
|
|
1073
|
-
const s = t, n = e, a =
|
|
1075
|
+
const s = t, n = e, a = b({
|
|
1074
1076
|
get() {
|
|
1075
1077
|
return s.modelValue;
|
|
1076
1078
|
},
|
|
1077
1079
|
set(l) {
|
|
1078
1080
|
n("update:modelValue", l);
|
|
1079
1081
|
}
|
|
1080
|
-
}), o =
|
|
1082
|
+
}), o = b(() => s.addCleaner && !s.title || s.captionType !== "" ? "" : s.title), i = (l) => {
|
|
1081
1083
|
s.modelValue && l.stopPropagation(), n("update:modelValue", "");
|
|
1082
1084
|
};
|
|
1083
1085
|
return (l, f) => (u(), m("label", {
|
|
@@ -1109,38 +1111,38 @@ const Yt = {
|
|
|
1109
1111
|
placeholder: o.value,
|
|
1110
1112
|
disabled: l.disabled,
|
|
1111
1113
|
readonly: l.readonly,
|
|
1112
|
-
onKeydown: f[1] || (f[1] =
|
|
1113
|
-
}, l.$attrs), null, 16,
|
|
1114
|
-
[
|
|
1114
|
+
onKeydown: f[1] || (f[1] = he((r) => (l.addCleaner || !!l.$slots.btn) && i(r), ["esc"]))
|
|
1115
|
+
}, l.$attrs), null, 16, Gt), [
|
|
1116
|
+
[ae, a.value]
|
|
1115
1117
|
]),
|
|
1116
1118
|
l.addCleaner && a.value && a.value !== "0000-00-00" ? (u(), m("span", {
|
|
1117
1119
|
key: 1,
|
|
1118
1120
|
class: "top-input_cleaner",
|
|
1119
1121
|
"data-top-icon": "",
|
|
1120
|
-
onClick:
|
|
1122
|
+
onClick: be(i, ["prevent"])
|
|
1121
1123
|
})) : g("", !0),
|
|
1122
|
-
l.captionType !== "" ? (u(), m("span",
|
|
1124
|
+
l.captionType !== "" ? (u(), m("span", Kt, W(l.title), 1)) : g("", !0),
|
|
1123
1125
|
k(l.$slots, "default")
|
|
1124
|
-
], 10,
|
|
1126
|
+
], 10, qt));
|
|
1125
1127
|
}
|
|
1126
|
-
}),
|
|
1128
|
+
}), jt = {
|
|
1127
1129
|
"top-input": "top-input",
|
|
1128
1130
|
"top-input_input": "top-input_input",
|
|
1129
1131
|
"top-input-withCleaner": "top-input-withCleaner",
|
|
1130
1132
|
"top-input_cleaner": "top-input_cleaner",
|
|
1131
1133
|
"top-loadbar": "top-loadbar"
|
|
1132
|
-
},
|
|
1133
|
-
$style:
|
|
1134
|
-
},
|
|
1134
|
+
}, Jt = {
|
|
1135
|
+
$style: jt
|
|
1136
|
+
}, x = /* @__PURE__ */ v(Qt, [["__cssModules", Jt]]);
|
|
1135
1137
|
export {
|
|
1136
1138
|
co as B,
|
|
1137
1139
|
p as C,
|
|
1138
1140
|
We as E,
|
|
1139
1141
|
rt as H,
|
|
1140
|
-
|
|
1142
|
+
x as I,
|
|
1141
1143
|
Xt as L,
|
|
1142
1144
|
wo as T,
|
|
1143
|
-
|
|
1145
|
+
j as _,
|
|
1144
1146
|
v as a,
|
|
1145
1147
|
ge as b,
|
|
1146
1148
|
we as c,
|
|
@@ -1161,11 +1163,11 @@ export {
|
|
|
1161
1163
|
uo as r,
|
|
1162
1164
|
lo as s,
|
|
1163
1165
|
mo as t,
|
|
1164
|
-
|
|
1166
|
+
Y as u,
|
|
1165
1167
|
fo as v,
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
+
ho as w,
|
|
1169
|
+
bo as x,
|
|
1168
1170
|
go as y,
|
|
1169
1171
|
vo as z
|
|
1170
1172
|
};
|
|
1171
|
-
//# sourceMappingURL=forms-
|
|
1173
|
+
//# sourceMappingURL=forms-BwLbWSIF.es.js.map
|