@topvisor/ui 0.9.34-utils-components-3 → 0.9.34-utils-components-4
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-B-QNMaqL.es.js +289 -0
- package/.chunks/datepicker-B-QNMaqL.es.js.map +1 -0
- package/.chunks/datepicker-BtTKGtP7.amd.js +247 -0
- package/.chunks/datepicker-BtTKGtP7.amd.js.map +1 -0
- package/.chunks/{forms-zlyhVXZ9.es.js → forms-CRdPxA6a.es.js} +90 -90
- package/.chunks/forms-CRdPxA6a.es.js.map +1 -0
- package/.chunks/{forms-CvUw0pdr.amd.js → forms-CbJDUr1_.amd.js} +3 -3
- package/.chunks/forms-CbJDUr1_.amd.js.map +1 -0
- package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-C1JdWeQq.es.js → listItem.vue_vue_type_script_setup_true_lang-D5EXHsIJ.es.js} +2 -2
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-D5EXHsIJ.es.js.map +1 -0
- package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-C0vCVRTn.amd.js → listItem.vue_vue_type_script_setup_true_lang-W45jLCVb.amd.js} +2 -2
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-W45jLCVb.amd.js.map +1 -0
- package/.chunks/{menu-D8OY3zle.amd.js → menu-BNQ5GpPq.amd.js} +2 -2
- package/.chunks/menu-BNQ5GpPq.amd.js.map +1 -0
- package/.chunks/{menu-DFQAjecc.es.js → menu-D8Pkjvdh.es.js} +2 -2
- package/.chunks/menu-D8Pkjvdh.es.js.map +1 -0
- package/.chunks/{popup-BoqfTf-1.es.js → popup-DUd8G4iQ.es.js} +485 -485
- package/.chunks/popup-DUd8G4iQ.es.js.map +1 -0
- package/.chunks/{popup-31lyEYe3.amd.js → popup-DcfMTbwU.amd.js} +440 -440
- package/.chunks/popup-DcfMTbwU.amd.js.map +1 -0
- package/.chunks/store-Bl79G7T_.amd.js.map +1 -1
- package/.chunks/store-PoMCiuBr.es.js.map +1 -1
- package/README.md +86 -86
- package/assets/forms.css +1 -1
- package/assets/formsExt.css +1 -1
- package/core/core.amd.js +1 -1
- package/core/core.js +1 -1
- package/core/directives/focus.amd.js +1 -1
- package/core/directives/focus.js +1 -1
- package/core/directives/sticky.amd.js +1 -1
- package/core/directives/sticky.js +1 -1
- package/core/directives/swimUp.amd.js +1 -1
- package/core/directives/swimUp.js +1 -1
- package/core/directives/tooltip.amd.js +1 -1
- package/core/directives/tooltip.js +1 -1
- package/core/plugin/plugin.amd.js +1 -1
- package/core/plugin/plugin.amd.js.map +1 -1
- package/core/plugin/plugin.js +2 -2
- package/core/plugin/plugin.js.map +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 +362 -122
- 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 +3379 -3379
- package/icomoon/fonts/Topvisor-2.svg +263 -263
- package/icomoon/style.css +740 -740
- package/package.json +32 -32
- package/popup/popup.amd.js +1 -1
- package/popup/popup.amd.js.map +1 -1
- package/popup/popup.js +2 -2
- package/popup/popup.js.map +1 -1
- package/popup/worker.amd.js +1 -1
- package/popup/worker.amd.js.map +1 -1
- package/popup/worker.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 +3 -3
- package/project/project.js.map +1 -1
- package/require/css.amd.js +11 -11
- package/src/components/formsExt/formsExt.d.ts +2 -0
- package/src/components/formsExt/selector2/itemMulti.vue.d.ts +18 -0
- package/src/components/formsExt/selector2/selector2.vue.d.ts +132 -0
- package/tabs/tabs.amd.js +1 -1
- package/tabs/tabs.amd.js.map +1 -1
- package/tabs/tabs.js +1 -1
- 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 +1 -1
- package/tabsView/tabsView.js.map +1 -1
- package/utils/check.amd.js.map +1 -1
- package/utils/check.js.map +1 -1
- package/utils/css.amd.js.map +1 -1
- 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/image.amd.js.map +1 -1
- package/utils/image.js.map +1 -1
- package/utils/keyboard.amd.js.map +1 -1
- package/utils/keyboard.js.map +1 -1
- package/utils/number.amd.js.map +1 -1
- package/utils/number.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.map +1 -1
- 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/web-types.json +62 -62
- package/.chunks/datepicker-CtnkRS5e.es.js +0 -289
- package/.chunks/datepicker-CtnkRS5e.es.js.map +0 -1
- package/.chunks/datepicker-DquD9mIq.amd.js +0 -247
- package/.chunks/datepicker-DquD9mIq.amd.js.map +0 -1
- package/.chunks/forms-CvUw0pdr.amd.js.map +0 -1
- package/.chunks/forms-zlyhVXZ9.es.js.map +0 -1
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-C0vCVRTn.amd.js.map +0 -1
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-C1JdWeQq.es.js.map +0 -1
- package/.chunks/menu-D8OY3zle.amd.js.map +0 -1
- package/.chunks/menu-DFQAjecc.es.js.map +0 -1
- package/.chunks/popup-31lyEYe3.amd.js.map +0 -1
- package/.chunks/popup-BoqfTf-1.es.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { insertToPage as re } from "../utils/css.js";
|
|
2
|
-
import { reactive as Y, defineComponent as y, useCssVars as oe, computed as
|
|
2
|
+
import { reactive as Y, defineComponent as y, useCssVars as oe, computed as b, openBlock as u, createElementBlock as m, createElementVNode as S, createCommentVNode as g, createBlock as M, resolveDynamicComponent as de, normalizeClass as v, withCtx as D, renderSlot as k, createTextVNode as pe, toDisplayString as V, mergeModels as I, useModel as se, withDirectives as W, vModelCheckbox as ne, unref as B, mergeProps as P, withKeys as ue, vModelText as ae, withModifiers as ce, onUnmounted as me, ref as fe, vModelRadio as he, resolveDirective as be, watch as ge, Fragment as O, renderList as X, vModelSelect as ve } from "vue";
|
|
3
3
|
const le = ["../assets/forms.css"].map((t) => import.meta.resolve(t));
|
|
4
4
|
re(le, !0);
|
|
5
|
-
function
|
|
5
|
+
function we() {
|
|
6
6
|
return "devicePixelRatio" in window && window.devicePixelRatio > 1;
|
|
7
7
|
}
|
|
8
8
|
function ye() {
|
|
@@ -22,7 +22,7 @@ function co() {
|
|
|
22
22
|
function mo() {
|
|
23
23
|
return $e() ? "⌘" : "Ctrl";
|
|
24
24
|
}
|
|
25
|
-
const fo = () => $(document).scrollTop(),
|
|
25
|
+
const fo = () => $(document).scrollTop(), ho = () => $(document), bo = () => [document], _e = () => {
|
|
26
26
|
const t = [
|
|
27
27
|
["iOS", /(iPhone|iPad)/i],
|
|
28
28
|
["Android", /(Android)/i],
|
|
@@ -147,7 +147,7 @@ const Le = {
|
|
|
147
147
|
return;
|
|
148
148
|
}
|
|
149
149
|
return p.$(t);
|
|
150
|
-
},
|
|
150
|
+
}, q = (t, e) => {
|
|
151
151
|
var n;
|
|
152
152
|
const s = t.value ?? {};
|
|
153
153
|
return s.content ??= (n = e.props) == null ? void 0 : n.title, s.content = String(s.content).replace(/\r\n|\r|\n/g, "<br>"), s.position ??= {
|
|
@@ -157,11 +157,11 @@ const Le = {
|
|
|
157
157
|
}, Ee = {
|
|
158
158
|
mounted(t, e, s) {
|
|
159
159
|
var n;
|
|
160
|
-
(n = C(t)) == null || n.tooltip(
|
|
160
|
+
(n = C(t)) == null || n.tooltip(q(e, s));
|
|
161
161
|
},
|
|
162
162
|
updated(t, e, s, n) {
|
|
163
163
|
var i;
|
|
164
|
-
const a =
|
|
164
|
+
const a = q(e, s), o = (i = C(t)) == null ? void 0 : i.tooltip("instance");
|
|
165
165
|
o && (o.options = {
|
|
166
166
|
...o.options,
|
|
167
167
|
...a
|
|
@@ -191,7 +191,7 @@ const De = {
|
|
|
191
191
|
E == null || E.disconnect();
|
|
192
192
|
}
|
|
193
193
|
};
|
|
194
|
-
let
|
|
194
|
+
let Q = !1, z, F;
|
|
195
195
|
const A = /* @__PURE__ */ new Map(), Ne = (t, e) => {
|
|
196
196
|
const { distance: s, percent: n } = F, a = t.getBoundingClientRect().top, o = e * n / 100 / s, i = (e - a) / o;
|
|
197
197
|
i <= s ? t.style.transform = `translateY(${s - i}px)` : t.style.transform = "translateY(0px)";
|
|
@@ -219,7 +219,7 @@ const A = /* @__PURE__ */ new Map(), Ne = (t, e) => {
|
|
|
219
219
|
F = {
|
|
220
220
|
distance: a,
|
|
221
221
|
percent: o
|
|
222
|
-
},
|
|
222
|
+
}, Q || (Re(), Q = !0), z.observe(t);
|
|
223
223
|
},
|
|
224
224
|
unmounted(t, e, s) {
|
|
225
225
|
A.delete(t), z == null || z.unobserve(t);
|
|
@@ -272,7 +272,7 @@ class p {
|
|
|
272
272
|
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), p.setState();
|
|
273
273
|
}
|
|
274
274
|
static setState() {
|
|
275
|
-
p.matchMediaIsMobile = window.matchMedia(`(max-width: ${p.options.widthForMobile}px)`), p.state.isMobileUA = ye(), p.state.isRetina =
|
|
275
|
+
p.matchMediaIsMobile = window.matchMedia(`(max-width: ${p.options.widthForMobile}px)`), p.state.isMobileUA = ye(), p.state.isRetina = we(), p.state.isApp = Se(), p.state.dateFormat = this.options.dateFormat, p.state.gmt = this.options.gmt, p.state.isHidden = G.isHidden(), p.setStateByWindowSize(), We.addOnReize(p.onResize), p.onResize(), p.saveToCookie();
|
|
276
276
|
}
|
|
277
277
|
static onResize() {
|
|
278
278
|
p.setStateByWindowSize(), document.documentElement.style.setProperty("--100vh", window.innerHeight + "px");
|
|
@@ -296,7 +296,7 @@ class p {
|
|
|
296
296
|
document.cookie = "device=" + e.join(",") + "; path=/;";
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
|
-
const T = window.L ?? {},
|
|
299
|
+
const T = window.L ?? {}, vo = (t, e, s) => {
|
|
300
300
|
switch (new Date(t, e, s).getDay()) {
|
|
301
301
|
case 0:
|
|
302
302
|
return T.Vs + ".";
|
|
@@ -315,7 +315,7 @@ const T = window.L ?? {}, wo = (t, e, s) => {
|
|
|
315
315
|
default:
|
|
316
316
|
return "";
|
|
317
317
|
}
|
|
318
|
-
},
|
|
318
|
+
}, wo = (t, e = !0, s = 2) => {
|
|
319
319
|
let n = String(t.getFullYear()), a = String(t.getDate()).padStart(2, "0"), o = String(t.getMonth() + 1).padStart(2, "0"), i = String(t.getHours()).padStart(2, "0"), l = String(t.getMinutes()).padStart(2, "0"), f = String(t.getSeconds()).padStart(2, "0"), r = n + "-" + o + "-" + a;
|
|
320
320
|
return s >= 1 && (r += " " + i), s >= 2 && (r += ":" + l), s === 3 && (r += ":" + f), e && (r = L(r, s)), r;
|
|
321
321
|
};
|
|
@@ -332,8 +332,8 @@ function So(t, e = !0) {
|
|
|
332
332
|
const n = (/* @__PURE__ */ new Date()).getTimezoneOffset() / 60 * -1 * 60 * 60 * 1e3, a = 3 * 60 * 60 * 1e3;
|
|
333
333
|
let o;
|
|
334
334
|
t !== void 0 ? o = new Date(t) : o = /* @__PURE__ */ new Date(), o.setTime(o.getTime() - n + a);
|
|
335
|
-
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"),
|
|
336
|
-
return e && (
|
|
335
|
+
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;
|
|
336
|
+
return e && (h = L(h)), h;
|
|
337
337
|
}
|
|
338
338
|
function L(t, e = 2, s, n = p.L.Not_date) {
|
|
339
339
|
if (typeof t == "string" && (!t || t.substring(0, 10) === "0000-00-00") && n && n !== "0000-00-00" || !t) return n;
|
|
@@ -409,15 +409,15 @@ const Oe = { class: "top-avatar" }, Ce = ["src", "title"], Ie = ["title"], Ue =
|
|
|
409
409
|
},
|
|
410
410
|
setup(t) {
|
|
411
411
|
oe((a) => ({
|
|
412
|
-
"
|
|
412
|
+
"32edb3ef": a.size + "px"
|
|
413
413
|
}));
|
|
414
|
-
const e = t, s =
|
|
414
|
+
const e = t, s = b(() => {
|
|
415
415
|
var a, o;
|
|
416
416
|
if (e.isOnline)
|
|
417
417
|
return (a = e.i18n) == null ? void 0 : a.Online;
|
|
418
418
|
if (e.lastActiveTime)
|
|
419
419
|
return ((o = e.i18n) == null ? void 0 : o.LastSeen) + ": " + L(e.lastActiveTime, 2);
|
|
420
|
-
}), n =
|
|
420
|
+
}), n = b(() => e.nickname ? e.nickname + (s.value ? `
|
|
421
421
|
${s.value}` : "") : s.value);
|
|
422
422
|
return (a, o) => (u(), m("div", Oe, [
|
|
423
423
|
S("img", {
|
|
@@ -437,14 +437,14 @@ ${s.value}` : "") : s.value);
|
|
|
437
437
|
"top-avatar": "top-avatar",
|
|
438
438
|
"top-avatar_image": "top-avatar_image",
|
|
439
439
|
"top-avatar_status": "top-avatar_status"
|
|
440
|
-
},
|
|
440
|
+
}, w = (t, e) => {
|
|
441
441
|
const s = t.__vccOpts || t;
|
|
442
442
|
for (const [n, a] of e)
|
|
443
443
|
s[n] = a;
|
|
444
444
|
return s;
|
|
445
445
|
}, Ye = {
|
|
446
446
|
$style: Fe
|
|
447
|
-
}, Xe = /* @__PURE__ */
|
|
447
|
+
}, Xe = /* @__PURE__ */ w(Ue, [["__cssModules", Ye]]), Ge = {
|
|
448
448
|
key: 0,
|
|
449
449
|
class: "top-ellipsis"
|
|
450
450
|
}, Ke = /* @__PURE__ */ y({
|
|
@@ -464,9 +464,9 @@ ${s.value}` : "") : s.value);
|
|
|
464
464
|
isProgress: { type: Boolean }
|
|
465
465
|
},
|
|
466
466
|
setup(t) {
|
|
467
|
-
const e = t, s =
|
|
467
|
+
const e = t, s = b(() => e.href ? "a" : "button"), n = b(() => e.isSubmit ? "submit" : void 0);
|
|
468
468
|
return (a, o) => (u(), M(de(s.value), {
|
|
469
|
-
class:
|
|
469
|
+
class: v({
|
|
470
470
|
"top-active": a.isActive,
|
|
471
471
|
"top-disabled": a.disabled,
|
|
472
472
|
"top-forms-focusable": !a.disabled,
|
|
@@ -497,11 +497,11 @@ ${s.value}` : "") : s.value);
|
|
|
497
497
|
_: 3
|
|
498
498
|
}, 8, ["class", "name", "title", "href", "type", "data-top-icon", "data-top-icon2", "disabled", "inProgress"]));
|
|
499
499
|
}
|
|
500
|
-
}),
|
|
500
|
+
}), qe = "_progress_1hqxk_1", Qe = {
|
|
501
501
|
"top-button": "top-button",
|
|
502
502
|
"top-active": "top-active",
|
|
503
503
|
"top-button-progress": "top-button-progress",
|
|
504
|
-
progress:
|
|
504
|
+
progress: qe,
|
|
505
505
|
"top-button-withoutText": "top-button-withoutText",
|
|
506
506
|
"top-color_blue": "top-color_blue",
|
|
507
507
|
"top-color_green": "top-color_green",
|
|
@@ -515,8 +515,8 @@ ${s.value}` : "") : s.value);
|
|
|
515
515
|
"top-size_l": "top-size_l",
|
|
516
516
|
"top-size_xl": "top-size_xl"
|
|
517
517
|
}, Je = {
|
|
518
|
-
$style:
|
|
519
|
-
}, Ze = /* @__PURE__ */
|
|
518
|
+
$style: Qe
|
|
519
|
+
}, Ze = /* @__PURE__ */ w(Ke, [["__cssModules", Je]]), je = { class: "top-forms-optionLabel" }, xe = /* @__PURE__ */ y({
|
|
520
520
|
__name: "controlLabel",
|
|
521
521
|
props: {
|
|
522
522
|
description: {},
|
|
@@ -525,7 +525,7 @@ ${s.value}` : "") : s.value);
|
|
|
525
525
|
setup(t) {
|
|
526
526
|
return (e, s) => (u(), m("div", je, [
|
|
527
527
|
S("div", {
|
|
528
|
-
class:
|
|
528
|
+
class: v({
|
|
529
529
|
"top-forms-optionLabel_title": !0,
|
|
530
530
|
"top-forms-optionLabel_title-disabled": e.disabled
|
|
531
531
|
})
|
|
@@ -534,7 +534,7 @@ ${s.value}` : "") : s.value);
|
|
|
534
534
|
], 2),
|
|
535
535
|
e.description ? (u(), m("div", {
|
|
536
536
|
key: 0,
|
|
537
|
-
class:
|
|
537
|
+
class: v(["top-forms-optionLabel_description", { "top-forms-optionLabel_description-disabled": e.disabled }])
|
|
538
538
|
}, V(e.description), 3)) : g("", !0)
|
|
539
539
|
]));
|
|
540
540
|
}
|
|
@@ -546,7 +546,7 @@ ${s.value}` : "") : s.value);
|
|
|
546
546
|
"top-forms-optionLabel_description-disabled": "top-forms-optionLabel_description-disabled"
|
|
547
547
|
}, tt = {
|
|
548
548
|
$style: et
|
|
549
|
-
}, H = /* @__PURE__ */
|
|
549
|
+
}, H = /* @__PURE__ */ w(xe, [["__cssModules", tt]]), ot = ["name", "value", "indeterminate", "disabled"], st = /* @__PURE__ */ y({
|
|
550
550
|
__name: "checkbox",
|
|
551
551
|
props: /* @__PURE__ */ I({
|
|
552
552
|
modelValue: { type: [Boolean, Array, Set] },
|
|
@@ -564,7 +564,7 @@ ${s.value}` : "") : s.value);
|
|
|
564
564
|
setup(t) {
|
|
565
565
|
const e = se(t, "modelValue");
|
|
566
566
|
return (s, n) => (u(), m("label", {
|
|
567
|
-
class:
|
|
567
|
+
class: v({
|
|
568
568
|
"top-forms-optionWrapper": !0,
|
|
569
569
|
"top-checkbox": !0,
|
|
570
570
|
["top-checkbox_" + s.name]: !!s.name,
|
|
@@ -574,7 +574,7 @@ ${s.value}` : "") : s.value);
|
|
|
574
574
|
}, [
|
|
575
575
|
W(S("input", {
|
|
576
576
|
type: "checkbox",
|
|
577
|
-
class:
|
|
577
|
+
class: v({
|
|
578
578
|
"top-forms-focusable": !s.disabled,
|
|
579
579
|
"top-forms-option": !0,
|
|
580
580
|
"top-checkbox_input": !0,
|
|
@@ -606,7 +606,7 @@ ${s.value}` : "") : s.value);
|
|
|
606
606
|
"top-error": "top-error"
|
|
607
607
|
}, at = {
|
|
608
608
|
$style: nt
|
|
609
|
-
}, it = /* @__PURE__ */
|
|
609
|
+
}, it = /* @__PURE__ */ w(st, [["__cssModules", at]]), rt = ["title"], lt = /* @__PURE__ */ y({
|
|
610
610
|
__name: "hint",
|
|
611
611
|
props: {
|
|
612
612
|
hint: {}
|
|
@@ -622,7 +622,7 @@ ${s.value}` : "") : s.value);
|
|
|
622
622
|
"top-hint": "top-hint"
|
|
623
623
|
}, pt = {
|
|
624
624
|
$style: dt
|
|
625
|
-
}, ie = /* @__PURE__ */
|
|
625
|
+
}, ie = /* @__PURE__ */ w(lt, [["__cssModules", pt]]), ut = ["data-top-icon", "data-top-icon2"], ct = ["name", "title", "placeholder", "disabled", "readonly"], mt = {
|
|
626
626
|
key: 2,
|
|
627
627
|
class: "top-formsCaption"
|
|
628
628
|
}, ft = /* @__PURE__ */ y({
|
|
@@ -645,18 +645,18 @@ ${s.value}` : "") : s.value);
|
|
|
645
645
|
},
|
|
646
646
|
emits: ["update:modelValue"],
|
|
647
647
|
setup(t, { emit: e }) {
|
|
648
|
-
const s = t, n = e, a =
|
|
648
|
+
const s = t, n = e, a = b({
|
|
649
649
|
get() {
|
|
650
650
|
return s.modelValue;
|
|
651
651
|
},
|
|
652
652
|
set(l) {
|
|
653
653
|
n("update:modelValue", l);
|
|
654
654
|
}
|
|
655
|
-
}), o =
|
|
655
|
+
}), o = b(() => s.addCleaner && !s.title || s.captionType !== "" ? "" : s.title), i = (l) => {
|
|
656
656
|
s.modelValue && l.stopPropagation(), n("update:modelValue", "");
|
|
657
657
|
};
|
|
658
658
|
return (l, f) => (u(), m("label", {
|
|
659
|
-
class:
|
|
659
|
+
class: v({
|
|
660
660
|
"top-input": !0,
|
|
661
661
|
["top-size_" + l.size]: !0,
|
|
662
662
|
"top-disabled": l.disabled,
|
|
@@ -698,15 +698,15 @@ ${s.value}` : "") : s.value);
|
|
|
698
698
|
k(l.$slots, "default")
|
|
699
699
|
], 10, ut));
|
|
700
700
|
}
|
|
701
|
-
}),
|
|
701
|
+
}), ht = {
|
|
702
702
|
"top-input": "top-input",
|
|
703
703
|
"top-input_input": "top-input_input",
|
|
704
704
|
"top-input-withCleaner": "top-input-withCleaner",
|
|
705
705
|
"top-input_cleaner": "top-input_cleaner",
|
|
706
706
|
"top-loadbar": "top-loadbar"
|
|
707
|
-
},
|
|
708
|
-
$style:
|
|
709
|
-
}, gt = /* @__PURE__ */
|
|
707
|
+
}, bt = {
|
|
708
|
+
$style: ht
|
|
709
|
+
}, gt = /* @__PURE__ */ w(ft, [["__cssModules", bt]]), vt = ["modelValue"], wt = !!document.documentElement.ontouchstart && !!document.createElement("input").showPicker;
|
|
710
710
|
let j = (t) => {
|
|
711
711
|
};
|
|
712
712
|
const yt = /* @__PURE__ */ y({
|
|
@@ -734,7 +734,7 @@ const yt = /* @__PURE__ */ y({
|
|
|
734
734
|
});
|
|
735
735
|
const a = fe();
|
|
736
736
|
let o;
|
|
737
|
-
const i =
|
|
737
|
+
const i = b({
|
|
738
738
|
get() {
|
|
739
739
|
return L(s.modelValue, 2, void 0, "0000-00-00");
|
|
740
740
|
},
|
|
@@ -745,23 +745,23 @@ const yt = /* @__PURE__ */ y({
|
|
|
745
745
|
let l = (d) => {
|
|
746
746
|
j(d);
|
|
747
747
|
}, f = (d) => {
|
|
748
|
-
const c = Z(d.target.value),
|
|
749
|
-
if (!
|
|
748
|
+
const c = Z(d.target.value), h = L(c);
|
|
749
|
+
if (!h || h === p.L.Not_date || d.target.value !== h) {
|
|
750
750
|
d.target.value = i.value;
|
|
751
751
|
return;
|
|
752
752
|
}
|
|
753
753
|
i.value = d.target.value;
|
|
754
754
|
};
|
|
755
755
|
async function r(d) {
|
|
756
|
-
const c = await import("./datepicker-
|
|
756
|
+
const c = await import("./datepicker-B-QNMaqL.es.js");
|
|
757
757
|
j = c.oninput, o = c.connectDatepicker(d.target, {
|
|
758
758
|
onSelect: () => f(d)
|
|
759
759
|
}), o && o.datepicker("show");
|
|
760
760
|
}
|
|
761
|
-
return (d, c) => B(
|
|
761
|
+
return (d, c) => B(wt) ? (u(), M(B(x), P({ key: 0 }, d.$props, {
|
|
762
762
|
modelValue: i.value,
|
|
763
763
|
readonly: "",
|
|
764
|
-
onClick: c[1] || (c[1] = (
|
|
764
|
+
onClick: c[1] || (c[1] = (h) => a.value.showPicker())
|
|
765
765
|
}), {
|
|
766
766
|
default: D(() => [
|
|
767
767
|
S("input", {
|
|
@@ -770,14 +770,14 @@ const yt = /* @__PURE__ */ y({
|
|
|
770
770
|
type: "date",
|
|
771
771
|
class: "top-input_input-date",
|
|
772
772
|
modelValue: d.modelValue,
|
|
773
|
-
onChange: c[0] || (c[0] = (
|
|
773
|
+
onChange: c[0] || (c[0] = (h) => i.value = h.target.value),
|
|
774
774
|
tabindex: "-1"
|
|
775
|
-
}, null, 40,
|
|
775
|
+
}, null, 40, vt)
|
|
776
776
|
]),
|
|
777
777
|
_: 1
|
|
778
778
|
}, 16, ["modelValue"])) : (u(), M(B(x), P({ key: 1 }, d.$props, {
|
|
779
779
|
modelValue: i.value,
|
|
780
|
-
"onUpdate:modelValue": c[2] || (c[2] = (
|
|
780
|
+
"onUpdate:modelValue": c[2] || (c[2] = (h) => h === "" ? i.value = "" : ""),
|
|
781
781
|
onInput: B(l),
|
|
782
782
|
onFocusOnce: r,
|
|
783
783
|
onChange: B(f),
|
|
@@ -789,7 +789,7 @@ const yt = /* @__PURE__ */ y({
|
|
|
789
789
|
"top-input_input-date": "top-input_input-date"
|
|
790
790
|
}, $t = {
|
|
791
791
|
$style: St
|
|
792
|
-
}, _t = /* @__PURE__ */
|
|
792
|
+
}, _t = /* @__PURE__ */ w(yt, [["__cssModules", $t]]), kt = { class: "top-inputRange" }, Mt = /* @__PURE__ */ S("span", { class: "top-inputRange_dash" }, " — ", -1), Tt = /* @__PURE__ */ y({
|
|
793
793
|
__name: "inputRange",
|
|
794
794
|
setup(t) {
|
|
795
795
|
return (e, s) => (u(), m("div", kt, [
|
|
@@ -804,7 +804,7 @@ const yt = /* @__PURE__ */ y({
|
|
|
804
804
|
"top-input": "top-input"
|
|
805
805
|
}, Wt = {
|
|
806
806
|
$style: Vt
|
|
807
|
-
}, Bt = /* @__PURE__ */
|
|
807
|
+
}, Bt = /* @__PURE__ */ w(Tt, [["__cssModules", Wt]]), Lt = ["name", "value", "disabled"], Et = /* @__PURE__ */ y({
|
|
808
808
|
__name: "radio",
|
|
809
809
|
props: {
|
|
810
810
|
modelValue: {},
|
|
@@ -816,7 +816,7 @@ const yt = /* @__PURE__ */ y({
|
|
|
816
816
|
},
|
|
817
817
|
emits: ["update:modelValue"],
|
|
818
818
|
setup(t, { emit: e }) {
|
|
819
|
-
const s = t, n = e, a =
|
|
819
|
+
const s = t, n = e, a = b({
|
|
820
820
|
get() {
|
|
821
821
|
return s.modelValue;
|
|
822
822
|
},
|
|
@@ -825,7 +825,7 @@ const yt = /* @__PURE__ */ y({
|
|
|
825
825
|
}
|
|
826
826
|
});
|
|
827
827
|
return (o, i) => (u(), m("label", {
|
|
828
|
-
class:
|
|
828
|
+
class: v({
|
|
829
829
|
"top-forms-optionWrapper": !0,
|
|
830
830
|
"top-radio": !0,
|
|
831
831
|
["top-radio_" + o.name]: o.name !== "",
|
|
@@ -835,7 +835,7 @@ const yt = /* @__PURE__ */ y({
|
|
|
835
835
|
}, [
|
|
836
836
|
W(S("input", {
|
|
837
837
|
type: "radio",
|
|
838
|
-
class:
|
|
838
|
+
class: v({
|
|
839
839
|
"top-forms-focusable": !o.disabled,
|
|
840
840
|
"top-forms-option": !0,
|
|
841
841
|
"top-radio_input": !0,
|
|
@@ -846,7 +846,7 @@ const yt = /* @__PURE__ */ y({
|
|
|
846
846
|
value: o.value,
|
|
847
847
|
disabled: o.disabled
|
|
848
848
|
}, null, 10, Lt), [
|
|
849
|
-
[
|
|
849
|
+
[he, a.value]
|
|
850
850
|
]),
|
|
851
851
|
o.$slots.default ? (u(), M(H, {
|
|
852
852
|
key: 0,
|
|
@@ -866,7 +866,7 @@ const yt = /* @__PURE__ */ y({
|
|
|
866
866
|
"top-error": "top-error"
|
|
867
867
|
}, Dt = {
|
|
868
868
|
$style: zt
|
|
869
|
-
}, Nt = /* @__PURE__ */
|
|
869
|
+
}, Nt = /* @__PURE__ */ w(Et, [["__cssModules", Dt]]), Rt = ["name", "value", "disabled"], At = /* @__PURE__ */ y({
|
|
870
870
|
__name: "switcher",
|
|
871
871
|
props: {
|
|
872
872
|
modelValue: { type: [Boolean, Array, Set] },
|
|
@@ -878,7 +878,7 @@ const yt = /* @__PURE__ */ y({
|
|
|
878
878
|
},
|
|
879
879
|
emits: ["update:modelValue"],
|
|
880
880
|
setup(t, { emit: e }) {
|
|
881
|
-
const s = t, n = e, a =
|
|
881
|
+
const s = t, n = e, a = b({
|
|
882
882
|
get() {
|
|
883
883
|
return s.modelValue;
|
|
884
884
|
},
|
|
@@ -887,7 +887,7 @@ const yt = /* @__PURE__ */ y({
|
|
|
887
887
|
}
|
|
888
888
|
});
|
|
889
889
|
return (o, i) => (u(), m("label", {
|
|
890
|
-
class:
|
|
890
|
+
class: v({
|
|
891
891
|
"top-forms-optionWrapper": !0,
|
|
892
892
|
"top-checkboxSwitcher": !0,
|
|
893
893
|
"top-disabled": o.disabled,
|
|
@@ -896,7 +896,7 @@ const yt = /* @__PURE__ */ y({
|
|
|
896
896
|
}, [
|
|
897
897
|
W(S("input", {
|
|
898
898
|
type: "checkbox",
|
|
899
|
-
class:
|
|
899
|
+
class: v({
|
|
900
900
|
"top-forms-focusable": !o.disabled,
|
|
901
901
|
"top-forms-option": !0,
|
|
902
902
|
"top-checkboxSwitcher_input": !0,
|
|
@@ -927,7 +927,7 @@ const yt = /* @__PURE__ */ y({
|
|
|
927
927
|
"top-error": "top-error"
|
|
928
928
|
}, Ht = {
|
|
929
929
|
$style: Pt
|
|
930
|
-
}, Ot = /* @__PURE__ */
|
|
930
|
+
}, Ot = /* @__PURE__ */ w(At, [["__cssModules", Ht]]), Ct = ["name", "placeholder", "disabled", "readonly", "rows"], It = {
|
|
931
931
|
key: 0,
|
|
932
932
|
class: "top-textarea_pseudoContent"
|
|
933
933
|
}, Ut = /* @__PURE__ */ y({
|
|
@@ -948,9 +948,9 @@ const yt = /* @__PURE__ */ y({
|
|
|
948
948
|
emits: ["update:modelValue"],
|
|
949
949
|
setup(t, { emit: e }) {
|
|
950
950
|
oe((o) => ({
|
|
951
|
-
|
|
951
|
+
32717169: o.minHeight + "px"
|
|
952
952
|
}));
|
|
953
|
-
const s = t, n = e, a =
|
|
953
|
+
const s = t, n = e, a = b({
|
|
954
954
|
get() {
|
|
955
955
|
return s.modelValue;
|
|
956
956
|
},
|
|
@@ -959,9 +959,9 @@ const yt = /* @__PURE__ */ y({
|
|
|
959
959
|
}
|
|
960
960
|
});
|
|
961
961
|
return (o, i) => {
|
|
962
|
-
const l =
|
|
962
|
+
const l = be("top-tooltip");
|
|
963
963
|
return u(), m("label", {
|
|
964
|
-
class:
|
|
964
|
+
class: v({
|
|
965
965
|
"top-textarea": !0,
|
|
966
966
|
["top-textarea-" + o.name]: o.name,
|
|
967
967
|
"top-disabled": o.disabled
|
|
@@ -1005,7 +1005,7 @@ const yt = /* @__PURE__ */ y({
|
|
|
1005
1005
|
"top-textarea_hint": "top-textarea_hint"
|
|
1006
1006
|
}, Yt = {
|
|
1007
1007
|
$style: Ft
|
|
1008
|
-
}, Xt = /* @__PURE__ */
|
|
1008
|
+
}, Xt = /* @__PURE__ */ w(Ut, [["__cssModules", Yt]]), Gt = ["data-value", "data-top-icon", "data-top-icon2"], Kt = ["name", "disabled"], qt = ["label", "disabled"], Qt = ["value", "selected", "disabled"], Jt = ["value", "selected", "disabled"], Zt = {
|
|
1009
1009
|
key: 1,
|
|
1010
1010
|
class: "top-formsCaption"
|
|
1011
1011
|
}, jt = /* @__PURE__ */ y({
|
|
@@ -1028,18 +1028,18 @@ const yt = /* @__PURE__ */ y({
|
|
|
1028
1028
|
}),
|
|
1029
1029
|
emits: /* @__PURE__ */ I(["update:modelValue"], ["update:modelValue"]),
|
|
1030
1030
|
setup(t, { emit: e }) {
|
|
1031
|
-
const s = t, n = se(t, "modelValue"), a =
|
|
1031
|
+
const s = t, n = se(t, "modelValue"), a = b(() => {
|
|
1032
1032
|
const r = /* @__PURE__ */ new Map();
|
|
1033
1033
|
return s.options.forEach((d, c) => {
|
|
1034
1034
|
if (typeof d == "string" && (d = i(c, d)), d.children) {
|
|
1035
|
-
const
|
|
1035
|
+
const h = /* @__PURE__ */ new Map();
|
|
1036
1036
|
d.children.forEach((_, N) => {
|
|
1037
|
-
typeof _ == "string" && (_ = i(N, _)),
|
|
1038
|
-
}), d = { ...d }, d.children =
|
|
1037
|
+
typeof _ == "string" && (_ = i(N, _)), h.set(_.value, _);
|
|
1038
|
+
}), d = { ...d }, d.children = h, r.set(d.value, d);
|
|
1039
1039
|
} else
|
|
1040
1040
|
r.set(d.value, d);
|
|
1041
1041
|
}), r;
|
|
1042
|
-
}), o =
|
|
1042
|
+
}), o = b(() => {
|
|
1043
1043
|
const r = /* @__PURE__ */ new Map();
|
|
1044
1044
|
return a.value.forEach((d) => {
|
|
1045
1045
|
if (!d.disabled) {
|
|
@@ -1062,7 +1062,7 @@ const yt = /* @__PURE__ */ y({
|
|
|
1062
1062
|
], () => {
|
|
1063
1063
|
(n.value === null || n.value === void 0) && o.value.size && (console.warn("Пожалуйста, не передавайте в компонент Select значения null и undefined"), n.value = o.value.keys().next().value);
|
|
1064
1064
|
}, { immediate: !0 });
|
|
1065
|
-
const l =
|
|
1065
|
+
const l = b(() => {
|
|
1066
1066
|
var r;
|
|
1067
1067
|
return (r = o.value.get(n.value)) == null ? void 0 : r.icon;
|
|
1068
1068
|
}), f = () => {
|
|
@@ -1070,7 +1070,7 @@ const yt = /* @__PURE__ */ y({
|
|
|
1070
1070
|
n.value = r[c];
|
|
1071
1071
|
};
|
|
1072
1072
|
return (r, d) => (u(), m("label", {
|
|
1073
|
-
class:
|
|
1073
|
+
class: v({
|
|
1074
1074
|
"top-select": !0,
|
|
1075
1075
|
["top-select-" + r.name]: r.name,
|
|
1076
1076
|
["top-size_" + r.size]: !0,
|
|
@@ -1083,7 +1083,7 @@ const yt = /* @__PURE__ */ y({
|
|
|
1083
1083
|
"data-top-icon2": l.value
|
|
1084
1084
|
}, [
|
|
1085
1085
|
W(S("select", {
|
|
1086
|
-
class:
|
|
1086
|
+
class: v({
|
|
1087
1087
|
"top-forms-focusable": !r.disabled,
|
|
1088
1088
|
"top-select_select": !0,
|
|
1089
1089
|
"top-select_arrow": !0,
|
|
@@ -1093,27 +1093,27 @@ const yt = /* @__PURE__ */ y({
|
|
|
1093
1093
|
disabled: r.disabled,
|
|
1094
1094
|
"onUpdate:modelValue": d[0] || (d[0] = (c) => n.value = c)
|
|
1095
1095
|
}, [
|
|
1096
|
-
(u(!0), m(O, null, X(a.value, ([c,
|
|
1097
|
-
|
|
1096
|
+
(u(!0), m(O, null, X(a.value, ([c, h]) => (u(), m(O, null, [
|
|
1097
|
+
h.children ? (u(), m("optgroup", {
|
|
1098
1098
|
key: "group_" + c,
|
|
1099
|
-
label:
|
|
1100
|
-
disabled:
|
|
1099
|
+
label: h.title,
|
|
1100
|
+
disabled: h.disabled
|
|
1101
1101
|
}, [
|
|
1102
|
-
(u(!0), m(O, null, X(
|
|
1102
|
+
(u(!0), m(O, null, X(h.children, ([_, N]) => (u(), m("option", {
|
|
1103
1103
|
key: _,
|
|
1104
1104
|
value: _,
|
|
1105
1105
|
selected: _ === n.value,
|
|
1106
1106
|
disabled: N.disabled
|
|
1107
|
-
}, V(N.title), 9,
|
|
1108
|
-
], 8,
|
|
1107
|
+
}, V(N.title), 9, Qt))), 128))
|
|
1108
|
+
], 8, qt)) : (u(), m("option", {
|
|
1109
1109
|
key: c ?? void 0,
|
|
1110
1110
|
value: c,
|
|
1111
1111
|
selected: c === n.value,
|
|
1112
|
-
disabled:
|
|
1113
|
-
}, V(
|
|
1112
|
+
disabled: h.disabled
|
|
1113
|
+
}, V(h.title), 9, Jt))
|
|
1114
1114
|
], 64))), 256))
|
|
1115
1115
|
], 10, Kt), [
|
|
1116
|
-
[
|
|
1116
|
+
[ve, n.value]
|
|
1117
1117
|
]),
|
|
1118
1118
|
r.addChanger && o.value.size && !r.disabled ? (u(), m("span", {
|
|
1119
1119
|
key: 0,
|
|
@@ -1130,7 +1130,7 @@ const yt = /* @__PURE__ */ y({
|
|
|
1130
1130
|
"top-changer": "top-changer"
|
|
1131
1131
|
}, eo = {
|
|
1132
1132
|
$style: xt
|
|
1133
|
-
}, to = /* @__PURE__ */
|
|
1133
|
+
}, to = /* @__PURE__ */ w(jt, [["__cssModules", eo]]), oo = {
|
|
1134
1134
|
"top-loadbar": "top-loadbar"
|
|
1135
1135
|
}, so = {}, no = { class: "top-loadbar" };
|
|
1136
1136
|
function ao(t, e) {
|
|
@@ -1138,18 +1138,18 @@ function ao(t, e) {
|
|
|
1138
1138
|
}
|
|
1139
1139
|
const io = {
|
|
1140
1140
|
$style: oo
|
|
1141
|
-
}, ro = /* @__PURE__ */
|
|
1141
|
+
}, ro = /* @__PURE__ */ w(so, [["render", ao], ["__cssModules", io]]), $o = Xe, _o = Ze, ko = it, Mo = H, To = ie, x = gt, Vo = _t, Wo = Bt, Bo = Nt, Lo = Ot, Eo = Xt, zo = to, lo = ro;
|
|
1142
1142
|
export {
|
|
1143
1143
|
mo as A,
|
|
1144
1144
|
fo as B,
|
|
1145
1145
|
p as C,
|
|
1146
|
-
|
|
1146
|
+
ho as D,
|
|
1147
1147
|
We as E,
|
|
1148
|
-
|
|
1148
|
+
bo as F,
|
|
1149
1149
|
_e as G,
|
|
1150
1150
|
go as H,
|
|
1151
|
-
|
|
1152
|
-
|
|
1151
|
+
vo as I,
|
|
1152
|
+
wo as J,
|
|
1153
1153
|
yo as K,
|
|
1154
1154
|
He as L,
|
|
1155
1155
|
So as M,
|
|
@@ -1172,15 +1172,15 @@ export {
|
|
|
1172
1172
|
Eo as n,
|
|
1173
1173
|
L as o,
|
|
1174
1174
|
co as p,
|
|
1175
|
-
|
|
1175
|
+
w as q,
|
|
1176
1176
|
Ze as r,
|
|
1177
1177
|
De as s,
|
|
1178
1178
|
Ee as t,
|
|
1179
1179
|
gt as u,
|
|
1180
1180
|
Xt as v,
|
|
1181
|
-
|
|
1181
|
+
we as w,
|
|
1182
1182
|
ye as x,
|
|
1183
1183
|
Se as y,
|
|
1184
1184
|
$e as z
|
|
1185
1185
|
};
|
|
1186
|
-
//# sourceMappingURL=forms-
|
|
1186
|
+
//# sourceMappingURL=forms-CRdPxA6a.es.js.map
|