@topvisor/ui 0.0.33 → 0.0.34
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-48f2fa8d.es.js → datepicker-0b648b9f.es.js} +2 -2
- package/.chunks/{datepicker-48f2fa8d.es.js.map → datepicker-0b648b9f.es.js.map} +1 -1
- package/.chunks/{datepicker-f94ba423.amd.js → datepicker-0e9a0541.amd.js} +2 -2
- package/.chunks/{datepicker-f94ba423.amd.js.map → datepicker-0e9a0541.amd.js.map} +1 -1
- package/.chunks/{forms-cab135c7.amd.js → forms-02202302.amd.js} +3 -3
- package/.chunks/forms-02202302.amd.js.map +1 -0
- package/.chunks/{forms-6c397f5a.es.js → forms-eb00d0c1.es.js} +128 -117
- package/.chunks/forms-eb00d0c1.es.js.map +1 -0
- package/.chunks/{popup-04c385e0.es.js → popup-6f73b4b2.es.js} +3 -4
- package/.chunks/popup-6f73b4b2.es.js.map +1 -0
- package/.chunks/{popup-33f53a1c.amd.js → popup-e1f34511.amd.js} +3 -4
- package/.chunks/popup-e1f34511.amd.js.map +1 -0
- package/core/core.amd.js +1 -1
- package/core/core.js +1 -1
- package/core.css +1 -1
- package/forms/forms.amd.js +1 -1
- package/forms/forms.js +1 -1
- package/forms.css +1 -1
- package/formsExt/formsExt.amd.js +1 -1
- package/formsExt/formsExt.js +1 -1
- package/package.json +1 -1
- package/popup/popup.amd.js +1 -1
- package/popup/popup.js +1 -1
- package/popup/worker.amd.js +1 -1
- package/popup/worker.js +2 -2
- package/tabs/tabs.amd.js +1 -1
- package/tabs/tabs.js +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/forms-6c397f5a.es.js.map +0 -1
- package/.chunks/forms-cab135c7.amd.js.map +0 -1
- package/.chunks/popup-04c385e0.es.js.map +0 -1
- package/.chunks/popup-33f53a1c.amd.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { reactive as
|
|
2
|
-
class
|
|
1
|
+
import { reactive as P, defineComponent as v, computed as b, openBlock as u, createBlock as $, resolveDynamicComponent as X, normalizeClass as h, withCtx as S, renderSlot as M, createTextVNode as q, toDisplayString as w, createElementBlock as m, createElementVNode as g, createCommentVNode as f, withDirectives as k, vModelCheckbox as K, mergeProps as L, withKeys as J, withModifiers as U, vModelText as Q, ref as Z, unref as V, onUnmounted as x, vModelRadio as ee, useCssVars as te, resolveDirective as oe, watch as ae, toRef as se, Fragment as D, renderList as N, vModelSelect as ie } from "vue";
|
|
2
|
+
class T {
|
|
3
3
|
static isRetina() {
|
|
4
4
|
return "devicePixelRatio" in window && window.devicePixelRatio > 1;
|
|
5
5
|
}
|
|
@@ -30,23 +30,23 @@ class L {
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
const ne = 100;
|
|
33
|
-
let
|
|
34
|
-
const
|
|
33
|
+
let H;
|
|
34
|
+
const R = /* @__PURE__ */ new Map(), z = {
|
|
35
35
|
width: window.innerWidth,
|
|
36
36
|
height: window.innerHeight
|
|
37
37
|
};
|
|
38
38
|
function le(n) {
|
|
39
|
-
|
|
39
|
+
R.set(n, n);
|
|
40
40
|
}
|
|
41
41
|
function re(n) {
|
|
42
|
-
|
|
42
|
+
R.delete(n);
|
|
43
43
|
}
|
|
44
44
|
function de(n) {
|
|
45
|
-
clearTimeout(
|
|
45
|
+
clearTimeout(H), H = setTimeout(function() {
|
|
46
46
|
n.topEvent = {
|
|
47
|
-
widthDiff:
|
|
48
|
-
hightDiff:
|
|
49
|
-
},
|
|
47
|
+
widthDiff: z.width - window.innerWidth,
|
|
48
|
+
hightDiff: z.height - window.innerHeight
|
|
49
|
+
}, z.width = window.innerWidth, z.height = window.innerHeight, R.forEach((t) => t(n));
|
|
50
50
|
}, ne);
|
|
51
51
|
}
|
|
52
52
|
window.addEventListener("resize", de);
|
|
@@ -54,16 +54,16 @@ const pe = {
|
|
|
54
54
|
addOnReize: le,
|
|
55
55
|
removeOnResize: re
|
|
56
56
|
};
|
|
57
|
-
var
|
|
57
|
+
var Y;
|
|
58
58
|
const ue = {
|
|
59
59
|
widthForMobile: 900,
|
|
60
60
|
dateFormat: "Y-m-d",
|
|
61
61
|
/**
|
|
62
62
|
* Для Москвы: +0300
|
|
63
63
|
*/
|
|
64
|
-
gmt: (
|
|
64
|
+
gmt: (Y = (/* @__PURE__ */ new Date()).toString().match(/GMT(\S+)/)) == null ? void 0 : Y[1]
|
|
65
65
|
};
|
|
66
|
-
var
|
|
66
|
+
var G;
|
|
67
67
|
const ce = {
|
|
68
68
|
/**
|
|
69
69
|
* Device by size
|
|
@@ -94,15 +94,15 @@ const ce = {
|
|
|
94
94
|
// См. core.options
|
|
95
95
|
dateFormat: "Y-m-d",
|
|
96
96
|
// См. core.options
|
|
97
|
-
gmt: (
|
|
98
|
-
},
|
|
97
|
+
gmt: (G = (/* @__PURE__ */ new Date()).toString().match(/GMT(\S+)/)) == null ? void 0 : G[1]
|
|
98
|
+
}, E = window, C = (n) => {
|
|
99
99
|
var t, a;
|
|
100
|
-
if (!((a = (t =
|
|
100
|
+
if (!((a = (t = E == null ? void 0 : E.jQuery) == null ? void 0 : t.ui) != null && a.tooltip)) {
|
|
101
101
|
console.info("Для работы v-top-tooltip требуется глобальная загрузка jQuery UI Tooltip");
|
|
102
102
|
return;
|
|
103
103
|
}
|
|
104
|
-
return
|
|
105
|
-
},
|
|
104
|
+
return E.jQuery(n);
|
|
105
|
+
}, I = (n, t) => {
|
|
106
106
|
var o;
|
|
107
107
|
const a = n.value ?? {};
|
|
108
108
|
return a.content ??= (o = t.props) == null ? void 0 : o.title, a.content = String(a.content).replace(/\r\n|\r|\n/g, "<br>"), a.position ??= {
|
|
@@ -112,11 +112,11 @@ const ce = {
|
|
|
112
112
|
}, me = {
|
|
113
113
|
mounted(n, t, a) {
|
|
114
114
|
var o;
|
|
115
|
-
(o =
|
|
115
|
+
(o = C(n)) == null || o.tooltip(I(t, a));
|
|
116
116
|
},
|
|
117
117
|
updated(n, t, a, o) {
|
|
118
118
|
var s;
|
|
119
|
-
const e =
|
|
119
|
+
const e = I(t, a), l = (s = C(n)) == null ? void 0 : s.tooltip("instance");
|
|
120
120
|
l && (l.options = {
|
|
121
121
|
...l.options,
|
|
122
122
|
...e
|
|
@@ -124,19 +124,19 @@ const ce = {
|
|
|
124
124
|
},
|
|
125
125
|
unmounted(n, t, a) {
|
|
126
126
|
var o;
|
|
127
|
-
(o =
|
|
127
|
+
(o = C(n)) == null || o.tooltip("destroy");
|
|
128
128
|
}
|
|
129
|
-
},
|
|
129
|
+
}, A = window;
|
|
130
130
|
class d {
|
|
131
131
|
/**
|
|
132
132
|
* Настройки словаря
|
|
133
133
|
*/
|
|
134
|
-
static L =
|
|
134
|
+
static L = P({
|
|
135
135
|
Not_date: "Not date"
|
|
136
136
|
});
|
|
137
|
-
static page = (
|
|
137
|
+
static page = (A == null ? void 0 : A.page) || {};
|
|
138
138
|
static options = ue;
|
|
139
|
-
static state =
|
|
139
|
+
static state = P({ ...ce });
|
|
140
140
|
static matchMediaIsMobile;
|
|
141
141
|
/**
|
|
142
142
|
* Добавить на страницу стили, используется для загрузки стилей из js
|
|
@@ -172,7 +172,7 @@ class d {
|
|
|
172
172
|
t != null && t.widthForMobile && (this.options.widthForMobile = t.widthForMobile), t != null && t.dateFormat && (this.options.dateFormat = t.dateFormat), t != null && t.gmt && (this.options.gmt = t.gmt), d.setState();
|
|
173
173
|
}
|
|
174
174
|
static setState() {
|
|
175
|
-
d.matchMediaIsMobile = window.matchMedia(`(max-width: ${d.options.widthForMobile}px)`), d.state.isMobileUA =
|
|
175
|
+
d.matchMediaIsMobile = window.matchMedia(`(max-width: ${d.options.widthForMobile}px)`), d.state.isMobileUA = T.isMobile(), d.state.isRetina = T.isRetina(), d.state.isApp = T.isApp(), d.state.dateFormat = this.options.dateFormat, d.state.gmt = this.options.gmt, d.setStateByWindowSize(), pe.addOnReize(d.onResize), d.onResize(), d.saveToCookie();
|
|
176
176
|
}
|
|
177
177
|
static onResize() {
|
|
178
178
|
d.setStateByWindowSize(), document.documentElement.style.setProperty("--100vh", window.innerHeight + "px");
|
|
@@ -196,7 +196,7 @@ class d {
|
|
|
196
196
|
document.cookie = "device=" + t.join(",") + "; path=/;";
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
class
|
|
199
|
+
class F {
|
|
200
200
|
/**
|
|
201
201
|
* Получить объект Date из строки
|
|
202
202
|
* @param date - строка с датой
|
|
@@ -256,16 +256,16 @@ class B {
|
|
|
256
256
|
return t;
|
|
257
257
|
const o = d.state.dateFormat.toLowerCase(), e = t.split(/\W/), l = o.split(/\W/);
|
|
258
258
|
let s = "", i = "", r = "";
|
|
259
|
-
l.forEach((c,
|
|
259
|
+
l.forEach((c, _) => {
|
|
260
260
|
switch (c) {
|
|
261
261
|
case "d":
|
|
262
|
-
s = e[
|
|
262
|
+
s = e[_];
|
|
263
263
|
break;
|
|
264
264
|
case "m":
|
|
265
|
-
i = e[
|
|
265
|
+
i = e[_];
|
|
266
266
|
break;
|
|
267
267
|
case "y":
|
|
268
|
-
r = e[
|
|
268
|
+
r = e[_];
|
|
269
269
|
break;
|
|
270
270
|
}
|
|
271
271
|
});
|
|
@@ -273,7 +273,7 @@ class B {
|
|
|
273
273
|
return p.match(/\d\d\d\d-\d\d-\d\d/) || (console.info("Неверный формат даты, будет возращена текущая дата, " + p), p = this.ms2Date((/* @__PURE__ */ new Date()).getTime(), !1).substring(0, 10)), p;
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
|
-
const be = /* @__PURE__ */
|
|
276
|
+
const be = /* @__PURE__ */ v({
|
|
277
277
|
__name: "button",
|
|
278
278
|
props: {
|
|
279
279
|
color: { default: "blue" },
|
|
@@ -291,7 +291,7 @@ const be = /* @__PURE__ */ y({
|
|
|
291
291
|
},
|
|
292
292
|
setup(n) {
|
|
293
293
|
const t = n, a = b(() => t.href ? "a" : "button"), o = b(() => t.isSubmit ? "submit" : void 0);
|
|
294
|
-
return (e, l) => (u(),
|
|
294
|
+
return (e, l) => (u(), $(X(a.value), {
|
|
295
295
|
class: h({
|
|
296
296
|
"top-active": e.isActive,
|
|
297
297
|
"top-disabled": e.disabled,
|
|
@@ -311,9 +311,9 @@ const be = /* @__PURE__ */ y({
|
|
|
311
311
|
disabled: e.disabled || void 0,
|
|
312
312
|
inProgress: e.isProgress
|
|
313
313
|
}, {
|
|
314
|
-
default:
|
|
315
|
-
|
|
316
|
-
q(
|
|
314
|
+
default: S(() => [
|
|
315
|
+
M(e.$slots, "default", {}, () => [
|
|
316
|
+
q(w(e.icon ? "" : "Button"), 1)
|
|
317
317
|
])
|
|
318
318
|
]),
|
|
319
319
|
_: 3
|
|
@@ -335,48 +335,48 @@ const be = /* @__PURE__ */ y({
|
|
|
335
335
|
"top-style_transparent": "top-style_transparent",
|
|
336
336
|
"top-size_l": "top-size_l",
|
|
337
337
|
"top-size_xl": "top-size_xl"
|
|
338
|
-
},
|
|
338
|
+
}, y = (n, t) => {
|
|
339
339
|
const a = n.__vccOpts || n;
|
|
340
340
|
for (const [o, e] of t)
|
|
341
341
|
a[o] = e;
|
|
342
342
|
return a;
|
|
343
|
-
},
|
|
343
|
+
}, ve = {
|
|
344
344
|
$style: fe
|
|
345
|
-
}, mt = /* @__PURE__ */
|
|
345
|
+
}, mt = /* @__PURE__ */ y(be, [["__cssModules", ve]]), ye = { class: "top-forms-optionLabel" }, ge = {
|
|
346
346
|
key: 0,
|
|
347
347
|
class: "top-forms-optionLabel_description"
|
|
348
|
-
}, we = /* @__PURE__ */
|
|
348
|
+
}, we = /* @__PURE__ */ v({
|
|
349
349
|
__name: "controlLabel",
|
|
350
350
|
props: {
|
|
351
|
-
title: {},
|
|
352
351
|
description: {},
|
|
353
352
|
disabled: { type: Boolean }
|
|
354
353
|
},
|
|
355
354
|
setup(n) {
|
|
356
|
-
return (t, a) => (u(), m("div",
|
|
357
|
-
|
|
355
|
+
return (t, a) => (u(), m("div", ye, [
|
|
356
|
+
g("div", {
|
|
358
357
|
class: h({
|
|
359
358
|
"top-forms-optionLabel_title": !0,
|
|
360
359
|
"top-forms-optionLabel_title-disabled": t.disabled
|
|
361
360
|
})
|
|
362
|
-
},
|
|
363
|
-
|
|
361
|
+
}, [
|
|
362
|
+
M(t.$slots, "default")
|
|
363
|
+
], 2),
|
|
364
|
+
t.description ? (u(), m("div", ge, w(t.description), 1)) : f("", !0)
|
|
364
365
|
]));
|
|
365
366
|
}
|
|
366
|
-
}),
|
|
367
|
+
}), $e = {
|
|
367
368
|
"top-forms-optionLabel": "top-forms-optionLabel",
|
|
368
369
|
"top-forms-optionLabel_title": "top-forms-optionLabel_title",
|
|
369
370
|
"top-forms-optionLabel_title-disabled": "top-forms-optionLabel_title-disabled",
|
|
370
371
|
"top-forms-optionLabel_description": "top-forms-optionLabel_description"
|
|
371
|
-
},
|
|
372
|
-
$style:
|
|
373
|
-
},
|
|
372
|
+
}, ke = {
|
|
373
|
+
$style: $e
|
|
374
|
+
}, W = /* @__PURE__ */ y(we, [["__cssModules", ke]]), Me = ["name", "value", "indeterminate", "disabled"], Ve = /* @__PURE__ */ v({
|
|
374
375
|
__name: "checkbox",
|
|
375
376
|
props: {
|
|
376
377
|
modelValue: { type: [Boolean, Array, Set] },
|
|
377
378
|
name: {},
|
|
378
379
|
value: {},
|
|
379
|
-
title: {},
|
|
380
380
|
description: {},
|
|
381
381
|
disabled: { type: Boolean },
|
|
382
382
|
indeterminate: { type: Boolean },
|
|
@@ -401,7 +401,7 @@ const be = /* @__PURE__ */ y({
|
|
|
401
401
|
"top-error": e.isError && !e.disabled
|
|
402
402
|
})
|
|
403
403
|
}, [
|
|
404
|
-
|
|
404
|
+
k(g("input", {
|
|
405
405
|
type: "checkbox",
|
|
406
406
|
class: h({
|
|
407
407
|
"top-forms-focusable": !e.disabled,
|
|
@@ -417,12 +417,16 @@ const be = /* @__PURE__ */ y({
|
|
|
417
417
|
}, null, 10, Me), [
|
|
418
418
|
[K, o.value]
|
|
419
419
|
]),
|
|
420
|
-
e.
|
|
420
|
+
e.$slots.default ? (u(), $(W, {
|
|
421
421
|
key: 0,
|
|
422
|
-
title: e.title,
|
|
423
422
|
description: e.description,
|
|
424
423
|
disabled: e.disabled
|
|
425
|
-
},
|
|
424
|
+
}, {
|
|
425
|
+
default: S(() => [
|
|
426
|
+
M(e.$slots, "default")
|
|
427
|
+
]),
|
|
428
|
+
_: 3
|
|
429
|
+
}, 8, ["description", "disabled"])) : f("", !0)
|
|
426
430
|
], 2));
|
|
427
431
|
}
|
|
428
432
|
}), Se = {
|
|
@@ -431,7 +435,7 @@ const be = /* @__PURE__ */ y({
|
|
|
431
435
|
"top-error": "top-error"
|
|
432
436
|
}, _e = {
|
|
433
437
|
$style: Se
|
|
434
|
-
}, bt = /* @__PURE__ */
|
|
438
|
+
}, bt = /* @__PURE__ */ y(Ve, [["__cssModules", _e]]), Be = ["title"], ze = /* @__PURE__ */ v({
|
|
435
439
|
__name: "hint",
|
|
436
440
|
props: {
|
|
437
441
|
hint: {}
|
|
@@ -447,10 +451,10 @@ const be = /* @__PURE__ */ y({
|
|
|
447
451
|
"top-hint": "top-hint"
|
|
448
452
|
}, Fe = {
|
|
449
453
|
$style: Ee
|
|
450
|
-
}, Le = /* @__PURE__ */
|
|
454
|
+
}, Le = /* @__PURE__ */ y(ze, [["__cssModules", Fe]]), De = ["data-top-icon", "data-top-icon2"], Te = ["name", "title", "placeholder", "disabled", "readonly"], Ce = ["onClick"], Ae = {
|
|
451
455
|
key: 1,
|
|
452
456
|
class: "top-formsCaption"
|
|
453
|
-
}, Re = /* @__PURE__ */
|
|
457
|
+
}, Re = /* @__PURE__ */ v({
|
|
454
458
|
inheritAttrs: !1,
|
|
455
459
|
__name: "input",
|
|
456
460
|
props: {
|
|
@@ -492,7 +496,7 @@ const be = /* @__PURE__ */ y({
|
|
|
492
496
|
"data-top-icon": s.icon,
|
|
493
497
|
"data-top-icon2": s.icon2
|
|
494
498
|
}, [
|
|
495
|
-
|
|
499
|
+
k(g("input", L({
|
|
496
500
|
type: "text",
|
|
497
501
|
class: {
|
|
498
502
|
"top-input_input": !0,
|
|
@@ -507,7 +511,7 @@ const be = /* @__PURE__ */ y({
|
|
|
507
511
|
placeholder: e.value,
|
|
508
512
|
disabled: s.disabled,
|
|
509
513
|
readonly: s.readonly,
|
|
510
|
-
onKeydown: i[1] || (i[1] = J(
|
|
514
|
+
onKeydown: i[1] || (i[1] = J(U(() => (s.addCleaner || !!s.$slots.btn) && l(), ["stop"]), ["esc"]))
|
|
511
515
|
}, s.$attrs), null, 16, Te), [
|
|
512
516
|
[Q, o.value]
|
|
513
517
|
]),
|
|
@@ -515,10 +519,10 @@ const be = /* @__PURE__ */ y({
|
|
|
515
519
|
key: 0,
|
|
516
520
|
class: "top-input_cleaner",
|
|
517
521
|
"data-top-icon": "",
|
|
518
|
-
onClick:
|
|
522
|
+
onClick: U(l, ["prevent"])
|
|
519
523
|
}, null, 8, Ce)) : f("", !0),
|
|
520
|
-
s.captionType !== "" ? (u(), m("span", Ae,
|
|
521
|
-
|
|
524
|
+
s.captionType !== "" ? (u(), m("span", Ae, w(s.title), 1)) : f("", !0),
|
|
525
|
+
M(s.$slots, "default")
|
|
522
526
|
], 10, De));
|
|
523
527
|
}
|
|
524
528
|
}), We = {
|
|
@@ -528,10 +532,10 @@ const be = /* @__PURE__ */ y({
|
|
|
528
532
|
"top-input_cleaner": "top-input_cleaner"
|
|
529
533
|
}, Pe = {
|
|
530
534
|
$style: We
|
|
531
|
-
},
|
|
532
|
-
let
|
|
535
|
+
}, O = /* @__PURE__ */ y(Re, [["__cssModules", Pe]]), Ue = ["modelValue"], Ne = !!document.documentElement.ontouchstart && !!document.createElement("input").showPicker;
|
|
536
|
+
let j = (n) => {
|
|
533
537
|
};
|
|
534
|
-
const He = /* @__PURE__ */
|
|
538
|
+
const He = /* @__PURE__ */ v({
|
|
535
539
|
__name: "inputDate",
|
|
536
540
|
props: {
|
|
537
541
|
modelValue: {},
|
|
@@ -551,16 +555,16 @@ const He = /* @__PURE__ */ y({
|
|
|
551
555
|
setup(n, { emit: t }) {
|
|
552
556
|
const a = n, o = Z(), e = b({
|
|
553
557
|
get() {
|
|
554
|
-
return
|
|
558
|
+
return F.dateFormat(a.modelValue, 2, "0000-00-00");
|
|
555
559
|
},
|
|
556
560
|
set(r) {
|
|
557
|
-
r =
|
|
561
|
+
r = F.dateUnformat(r, "0000-00-00"), t("update:modelValue", r);
|
|
558
562
|
}
|
|
559
563
|
});
|
|
560
564
|
let l = (r) => {
|
|
561
|
-
|
|
565
|
+
j(r);
|
|
562
566
|
}, s = (r) => {
|
|
563
|
-
const p =
|
|
567
|
+
const p = F.dateUnformat(r.target.value), c = F.dateFormat(p);
|
|
564
568
|
if (!c || c === d.L.Not_date || r.target.value !== c) {
|
|
565
569
|
r.target.value = e.value;
|
|
566
570
|
return;
|
|
@@ -568,20 +572,20 @@ const He = /* @__PURE__ */ y({
|
|
|
568
572
|
e.value = r.target.value;
|
|
569
573
|
};
|
|
570
574
|
async function i(r) {
|
|
571
|
-
const p = await import("./datepicker-
|
|
572
|
-
|
|
575
|
+
const p = await import("./datepicker-0b648b9f.es.js");
|
|
576
|
+
j = p.oninput;
|
|
573
577
|
const c = p.connectDatepicker(r.target, {
|
|
574
578
|
onSelect: () => s(r)
|
|
575
579
|
});
|
|
576
580
|
c && (c.datepicker("show"), x(() => c.datepicker("destroy")));
|
|
577
581
|
}
|
|
578
|
-
return (r, p) => V(Ne) ? (u(),
|
|
582
|
+
return (r, p) => V(Ne) ? (u(), $(V(O), L({ key: 0 }, r.$props, {
|
|
579
583
|
modelValue: e.value,
|
|
580
584
|
readonly: "",
|
|
581
585
|
onClick: p[1] || (p[1] = (c) => o.value.showPicker())
|
|
582
586
|
}), {
|
|
583
|
-
default:
|
|
584
|
-
|
|
587
|
+
default: S(() => [
|
|
588
|
+
g("input", {
|
|
585
589
|
ref_key: "el",
|
|
586
590
|
ref: o,
|
|
587
591
|
type: "date",
|
|
@@ -592,7 +596,7 @@ const He = /* @__PURE__ */ y({
|
|
|
592
596
|
}, null, 40, Ue)
|
|
593
597
|
]),
|
|
594
598
|
_: 1
|
|
595
|
-
}, 16, ["modelValue"])) : (u(),
|
|
599
|
+
}, 16, ["modelValue"])) : (u(), $(V(O), L({ key: 1 }, r.$props, {
|
|
596
600
|
modelValue: e.value,
|
|
597
601
|
"onUpdate:modelValue": p[2] || (p[2] = (c) => c === "" ? e.value = "" : ""),
|
|
598
602
|
onInput: V(l),
|
|
@@ -606,13 +610,12 @@ const He = /* @__PURE__ */ y({
|
|
|
606
610
|
"top-input_input-date": "top-input_input-date"
|
|
607
611
|
}, Oe = {
|
|
608
612
|
$style: Ie
|
|
609
|
-
}, ht = /* @__PURE__ */
|
|
613
|
+
}, ht = /* @__PURE__ */ y(He, [["__cssModules", Oe]]), je = ["name", "value", "disabled"], Ye = /* @__PURE__ */ v({
|
|
610
614
|
__name: "radio",
|
|
611
615
|
props: {
|
|
612
616
|
modelValue: {},
|
|
613
617
|
value: {},
|
|
614
618
|
name: {},
|
|
615
|
-
title: {},
|
|
616
619
|
description: {},
|
|
617
620
|
disabled: { type: Boolean },
|
|
618
621
|
isError: { type: Boolean }
|
|
@@ -636,7 +639,7 @@ const He = /* @__PURE__ */ y({
|
|
|
636
639
|
"top-error": e.isError && !e.disabled
|
|
637
640
|
})
|
|
638
641
|
}, [
|
|
639
|
-
|
|
642
|
+
k(g("input", {
|
|
640
643
|
type: "radio",
|
|
641
644
|
class: h({
|
|
642
645
|
"top-forms-focusable": !e.disabled,
|
|
@@ -651,12 +654,16 @@ const He = /* @__PURE__ */ y({
|
|
|
651
654
|
}, null, 10, je), [
|
|
652
655
|
[ee, o.value]
|
|
653
656
|
]),
|
|
654
|
-
e.
|
|
657
|
+
e.$slots.default ? (u(), $(W, {
|
|
655
658
|
key: 0,
|
|
656
|
-
title: e.title,
|
|
657
659
|
description: e.description,
|
|
658
660
|
disabled: e.disabled
|
|
659
|
-
},
|
|
661
|
+
}, {
|
|
662
|
+
default: S(() => [
|
|
663
|
+
M(e.$slots, "default")
|
|
664
|
+
]),
|
|
665
|
+
_: 3
|
|
666
|
+
}, 8, ["description", "disabled"])) : f("", !0)
|
|
660
667
|
], 2));
|
|
661
668
|
}
|
|
662
669
|
}), Ge = {
|
|
@@ -665,13 +672,12 @@ const He = /* @__PURE__ */ y({
|
|
|
665
672
|
"top-error": "top-error"
|
|
666
673
|
}, Ke = {
|
|
667
674
|
$style: Ge
|
|
668
|
-
}, ft = /* @__PURE__ */
|
|
675
|
+
}, ft = /* @__PURE__ */ y(Ye, [["__cssModules", Ke]]), Qe = ["name", "value", "disabled"], Xe = /* @__PURE__ */ v({
|
|
669
676
|
__name: "switcher",
|
|
670
677
|
props: {
|
|
671
678
|
modelValue: { type: [Boolean, Array, Set] },
|
|
672
679
|
name: {},
|
|
673
680
|
value: {},
|
|
674
|
-
title: {},
|
|
675
681
|
description: {},
|
|
676
682
|
disabled: { type: Boolean },
|
|
677
683
|
isError: { type: Boolean }
|
|
@@ -694,7 +700,7 @@ const He = /* @__PURE__ */ y({
|
|
|
694
700
|
"top-error": e.isError && !e.disabled
|
|
695
701
|
})
|
|
696
702
|
}, [
|
|
697
|
-
|
|
703
|
+
k(g("input", {
|
|
698
704
|
type: "checkbox",
|
|
699
705
|
class: h({
|
|
700
706
|
"top-forms-focusable": !e.disabled,
|
|
@@ -709,12 +715,16 @@ const He = /* @__PURE__ */ y({
|
|
|
709
715
|
}, null, 10, Qe), [
|
|
710
716
|
[K, o.value]
|
|
711
717
|
]),
|
|
712
|
-
e.
|
|
718
|
+
e.$slots.default ? (u(), $(W, {
|
|
713
719
|
key: 0,
|
|
714
|
-
title: e.title,
|
|
715
720
|
description: e.description,
|
|
716
721
|
disabled: e.disabled
|
|
717
|
-
},
|
|
722
|
+
}, {
|
|
723
|
+
default: S(() => [
|
|
724
|
+
M(e.$slots, "default")
|
|
725
|
+
]),
|
|
726
|
+
_: 3
|
|
727
|
+
}, 8, ["description", "disabled"])) : f("", !0)
|
|
718
728
|
], 2));
|
|
719
729
|
}
|
|
720
730
|
}), qe = {
|
|
@@ -723,10 +733,10 @@ const He = /* @__PURE__ */ y({
|
|
|
723
733
|
"top-error": "top-error"
|
|
724
734
|
}, Je = {
|
|
725
735
|
$style: qe
|
|
726
|
-
},
|
|
736
|
+
}, vt = /* @__PURE__ */ y(Xe, [["__cssModules", Je]]), Ze = ["name", "placeholder", "disabled", "readonly", "rows"], xe = {
|
|
727
737
|
key: 0,
|
|
728
738
|
class: "top-textarea_pseudoContent"
|
|
729
|
-
}, et = /* @__PURE__ */
|
|
739
|
+
}, et = /* @__PURE__ */ v({
|
|
730
740
|
inheritAttrs: !1,
|
|
731
741
|
__name: "textarea",
|
|
732
742
|
props: {
|
|
@@ -764,7 +774,7 @@ const He = /* @__PURE__ */ y({
|
|
|
764
774
|
"top-disabled": e.disabled
|
|
765
775
|
})
|
|
766
776
|
}, [
|
|
767
|
-
|
|
777
|
+
k(g("textarea", L({
|
|
768
778
|
type: "text",
|
|
769
779
|
class: {
|
|
770
780
|
"top-forms-focusable": !e.disabled,
|
|
@@ -783,8 +793,8 @@ const He = /* @__PURE__ */ y({
|
|
|
783
793
|
}), null, 16, Ze), [
|
|
784
794
|
[Q, o.value]
|
|
785
795
|
]),
|
|
786
|
-
e.expandable ? (u(), m("div", xe,
|
|
787
|
-
e.hint ?
|
|
796
|
+
e.expandable ? (u(), m("div", xe, w(o.value + " "), 1)) : f("", !0),
|
|
797
|
+
e.hint ? k((u(), $(Le, {
|
|
788
798
|
key: 1,
|
|
789
799
|
class: "top-textarea_hint",
|
|
790
800
|
hint: e.hint
|
|
@@ -802,10 +812,10 @@ const He = /* @__PURE__ */ y({
|
|
|
802
812
|
"top-textarea_hint": "top-textarea_hint"
|
|
803
813
|
}, ot = {
|
|
804
814
|
$style: tt
|
|
805
|
-
},
|
|
815
|
+
}, yt = /* @__PURE__ */ y(et, [["__cssModules", ot]]), at = ["data-value", "data-top-icon", "data-top-icon2"], st = ["name", "disabled"], it = ["label", "disabled"], nt = ["value", "selected", "disabled"], lt = ["value", "selected", "disabled"], rt = {
|
|
806
816
|
key: 1,
|
|
807
817
|
class: "top-formsCaption"
|
|
808
|
-
}, dt = /* @__PURE__ */
|
|
818
|
+
}, dt = /* @__PURE__ */ v({
|
|
809
819
|
__name: "select",
|
|
810
820
|
props: {
|
|
811
821
|
modelValue: {},
|
|
@@ -867,7 +877,7 @@ const He = /* @__PURE__ */ y({
|
|
|
867
877
|
"data-top-icon": i.icon,
|
|
868
878
|
"data-top-icon2": e.value
|
|
869
879
|
}, [
|
|
870
|
-
|
|
880
|
+
k(g("select", {
|
|
871
881
|
class: h({
|
|
872
882
|
"top-forms-focusable": !i.disabled,
|
|
873
883
|
"top-select_select": !0,
|
|
@@ -878,58 +888,59 @@ const He = /* @__PURE__ */ y({
|
|
|
878
888
|
disabled: i.disabled,
|
|
879
889
|
"onUpdate:modelValue": r[0] || (r[0] = (p) => o.value = p)
|
|
880
890
|
}, [
|
|
881
|
-
(u(!0), m(
|
|
891
|
+
(u(!0), m(D, null, N(i.options.entries(), ([p, c]) => (u(), m(D, null, [
|
|
882
892
|
c.children ? (u(), m("optgroup", {
|
|
883
893
|
key: "group_" + c.value,
|
|
884
894
|
label: c.title,
|
|
885
895
|
disabled: c.disabled
|
|
886
896
|
}, [
|
|
887
|
-
(u(!0), m(
|
|
888
|
-
key:
|
|
889
|
-
value:
|
|
890
|
-
|
|
891
|
-
|
|
897
|
+
(u(!0), m(D, null, N(c.children.entries(), ([_, B]) => (u(), m("option", {
|
|
898
|
+
key: c.value,
|
|
899
|
+
value: B.value,
|
|
900
|
+
selected: B.value === o.value,
|
|
901
|
+
disabled: B.disabled
|
|
902
|
+
}, w(B.title), 9, nt))), 128))
|
|
892
903
|
], 8, it)) : (u(), m("option", {
|
|
893
|
-
key:
|
|
904
|
+
key: c.value,
|
|
894
905
|
value: c.value,
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
},
|
|
906
|
+
selected: c.value === o.value,
|
|
907
|
+
disabled: c.disabled
|
|
908
|
+
}, w(c.title), 9, lt))
|
|
898
909
|
], 64))), 256))
|
|
899
910
|
], 10, st), [
|
|
900
911
|
[ie, o.value]
|
|
901
912
|
]),
|
|
902
913
|
i.addChanger && l.value.size && !i.disabled ? (u(), m("span", {
|
|
903
914
|
key: 0,
|
|
904
|
-
class: "top-
|
|
915
|
+
class: "top-changer",
|
|
905
916
|
onClick: s
|
|
906
917
|
})) : f("", !0),
|
|
907
|
-
i.title ? (u(), m("span", rt,
|
|
918
|
+
i.title ? (u(), m("span", rt, w(i.title), 1)) : f("", !0)
|
|
908
919
|
], 10, at));
|
|
909
920
|
}
|
|
910
921
|
}), pt = {
|
|
911
922
|
"top-select": "top-select",
|
|
912
923
|
"top-select-error": "top-select-error",
|
|
913
924
|
"top-select_select": "top-select_select",
|
|
914
|
-
"top-
|
|
925
|
+
"top-changer": "top-changer"
|
|
915
926
|
}, ut = {
|
|
916
927
|
$style: pt
|
|
917
|
-
}, gt = /* @__PURE__ */
|
|
928
|
+
}, gt = /* @__PURE__ */ y(dt, [["__cssModules", ut]]);
|
|
918
929
|
export {
|
|
919
930
|
mt as B,
|
|
920
931
|
d as C,
|
|
921
|
-
|
|
932
|
+
T as D,
|
|
922
933
|
pe as E,
|
|
923
934
|
Le as H,
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
935
|
+
O as I,
|
|
936
|
+
yt as T,
|
|
937
|
+
F as U,
|
|
938
|
+
y as _,
|
|
939
|
+
W as a,
|
|
929
940
|
gt as b,
|
|
930
941
|
bt as c,
|
|
931
942
|
ht as i,
|
|
932
943
|
ft as r,
|
|
933
|
-
|
|
944
|
+
vt as s
|
|
934
945
|
};
|
|
935
|
-
//# sourceMappingURL=forms-
|
|
946
|
+
//# sourceMappingURL=forms-eb00d0c1.es.js.map
|