@topvisor/ui 1.0.41 → 1.0.42-checkvisibility.0
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/{core-CwjGTMhd.es.js → core-BAG3GPtC.es.js} +4 -4
- package/.chunks/{core-CwjGTMhd.es.js.map → core-BAG3GPtC.es.js.map} +1 -1
- package/.chunks/{core-D2o3elGA.amd.js → core-BW5pBSkC.amd.js} +2 -2
- package/.chunks/{core-D2o3elGA.amd.js.map → core-BW5pBSkC.amd.js.map} +1 -1
- package/.chunks/{datepicker-Byyye2pn.amd.js → datepicker-BWaVsTd0.amd.js} +2 -2
- package/.chunks/{datepicker-Byyye2pn.amd.js.map → datepicker-BWaVsTd0.amd.js.map} +1 -1
- package/.chunks/{datepicker-N83oX3hx.es.js → datepicker-DCDYQmsc.es.js} +2 -2
- package/.chunks/{datepicker-N83oX3hx.es.js.map → datepicker-DCDYQmsc.es.js.map} +1 -1
- package/.chunks/{dialog_selectorRegions-pDIYvl7b.amd.js → dialog_selectorRegions-C-MZasKk.amd.js} +2 -2
- package/.chunks/{dialog_selectorRegions-pDIYvl7b.amd.js.map → dialog_selectorRegions-C-MZasKk.amd.js.map} +1 -1
- package/.chunks/{dialog_selectorRegions-lYV2SJBx.es.js → dialog_selectorRegions-DhFJmdQM.es.js} +4 -4
- package/.chunks/{dialog_selectorRegions-lYV2SJBx.es.js.map → dialog_selectorRegions-DhFJmdQM.es.js.map} +1 -1
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-B92h9NoR.amd.js +2 -0
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-B92h9NoR.amd.js.map +1 -0
- package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-X3S_WcSV.es.js → dialogs.vue_vue_type_script_setup_true_lang-LxNjWbxU.es.js} +113 -97
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-LxNjWbxU.es.js.map +1 -0
- package/.chunks/{forms-C-fyoosd.es.js → forms-DOGPN_TR.es.js} +480 -468
- package/.chunks/{forms-C-fyoosd.es.js.map → forms-DOGPN_TR.es.js.map} +1 -1
- package/.chunks/forms-Gb7ujpmz.amd.js +3 -0
- package/.chunks/{forms-DO87ZZk9.amd.js.map → forms-Gb7ujpmz.amd.js.map} +1 -1
- package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-DDQSxC8E.amd.js → listItem.vue_vue_type_script_setup_true_lang-CF_hIWa6.amd.js} +2 -2
- package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-DDQSxC8E.amd.js.map → listItem.vue_vue_type_script_setup_true_lang-CF_hIWa6.amd.js.map} +1 -1
- package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-BJTTvdc7.es.js → listItem.vue_vue_type_script_setup_true_lang-CJQj81Yq.es.js} +2 -2
- package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-BJTTvdc7.es.js.map → listItem.vue_vue_type_script_setup_true_lang-CJQj81Yq.es.js.map} +1 -1
- package/.chunks/{menu.vue_vue_type_style_index_0_lang-7eYwnVLw.amd.js → menu.vue_vue_type_style_index_0_lang-CczcI_-j.amd.js} +2 -2
- package/.chunks/{menu.vue_vue_type_style_index_0_lang-7eYwnVLw.amd.js.map → menu.vue_vue_type_style_index_0_lang-CczcI_-j.amd.js.map} +1 -1
- package/.chunks/{menu.vue_vue_type_style_index_0_lang-Bi9Z81pC.es.js → menu.vue_vue_type_style_index_0_lang-Dq5eEX9i.es.js} +2 -2
- package/.chunks/{menu.vue_vue_type_style_index_0_lang-Bi9Z81pC.es.js.map → menu.vue_vue_type_style_index_0_lang-Dq5eEX9i.es.js.map} +1 -1
- package/.chunks/{notice-B8nfJMJN.amd.js → notice-C5sXcBql.amd.js} +2 -2
- package/.chunks/{notice-B8nfJMJN.amd.js.map → notice-C5sXcBql.amd.js.map} +1 -1
- package/.chunks/{notice-DCONQ8rR.es.js → notice-DE88Oe-t.es.js} +2 -2
- package/.chunks/{notice-DCONQ8rR.es.js.map → notice-DE88Oe-t.es.js.map} +1 -1
- package/.chunks/{page.vue_vue_type_script_setup_true_lang-Dze2ZUr3.es.js → page.vue_vue_type_script_setup_true_lang-DV1TJ_hF.es.js} +4 -4
- package/.chunks/page.vue_vue_type_script_setup_true_lang-DV1TJ_hF.es.js.map +1 -0
- package/.chunks/{page.vue_vue_type_script_setup_true_lang-Cg3dLy7K.amd.js → page.vue_vue_type_script_setup_true_lang-wVql7Y7c.amd.js} +2 -2
- package/.chunks/page.vue_vue_type_script_setup_true_lang-wVql7Y7c.amd.js.map +1 -0
- package/.chunks/popup-B_8bvIsF.amd.js +2 -0
- package/.chunks/{popup-XXfdNLmr.amd.js.map → popup-B_8bvIsF.amd.js.map} +1 -1
- package/.chunks/{popup-PpCQY5Zi.es.js → popup-BjsK_pMZ.es.js} +106 -80
- package/.chunks/{popup-PpCQY5Zi.es.js.map → popup-BjsK_pMZ.es.js.map} +1 -1
- package/.chunks/{utils-DAIrXU57.amd.js → utils-BYruuiOR.amd.js} +2 -2
- package/.chunks/{utils-DAIrXU57.amd.js.map → utils-BYruuiOR.amd.js.map} +1 -1
- package/.chunks/utils-BbbR1pxf.amd.js +2 -0
- package/.chunks/utils-BbbR1pxf.amd.js.map +1 -0
- package/.chunks/{utils-BcKnFj1j.es.js → utils-CB-BjgcP.es.js} +242 -166
- package/.chunks/utils-CB-BjgcP.es.js.map +1 -0
- package/.chunks/{utils-DsICGMuv.es.js → utils-DtQUyz9-.es.js} +2 -2
- package/.chunks/{utils-DsICGMuv.es.js.map → utils-DtQUyz9-.es.js.map} +1 -1
- package/assets/core.css +1 -1
- package/assets/forms.css +1 -1
- package/assets/formsExt.css +1 -1
- package/assets/notice.css +1 -1
- package/charts/charts.amd.js +1 -1
- package/charts/charts.js +1 -1
- package/components/dialog/dialog/dialogs/dialogs.vue.d.ts +3 -0
- package/components/dialog/lib/types.d.ts +23 -0
- package/components/dialog/lib/utils.d.ts +8 -8
- package/components/dialog/lib/utils.globalEvents.d.ts +2 -2
- package/components/dialog/lib/worker.d.ts +12 -11
- package/components/formsExt/formsExt.d.ts +2 -0
- package/components/formsExt/policy/policy.vue.d.ts +4 -0
- package/components/formsExt/policy/types.d.ts +10 -0
- package/components/formsExt/selector2/composables/useMenu.d.ts +2 -0
- package/components/formsExt/selector2/selector2.vue.d.ts +5 -180
- package/components/formsExt/selector2/types.d.ts +17 -8
- package/core/app.amd.js +1 -1
- package/core/app.js +5 -5
- package/core/core/core.d.ts +1 -1
- package/core/core/options.d.ts +7 -6
- package/core/core/state.d.ts +1 -1
- package/core/plugins/core.d.ts +1 -1
- package/core/utils/date.d.ts +30 -12
- package/core/utils/dom.d.ts +17 -1
- package/dialog/dialog.amd.js +1 -1
- package/dialog/dialog.js +2 -2
- package/forms/forms.amd.js +1 -1
- package/forms/forms.js +1 -1
- package/formsExt/formsExt.amd.js +1 -1
- package/formsExt/formsExt.amd.js.map +1 -1
- package/formsExt/formsExt.js +320 -283
- package/formsExt/formsExt.js.map +1 -1
- package/icomoon/demo.html +15 -1
- package/icomoon/fonts/Topvisor-2.eot +0 -0
- package/icomoon/fonts/Topvisor-2.svg +1 -0
- package/icomoon/fonts/Topvisor-2.ttf +0 -0
- package/icomoon/fonts/Topvisor-2.woff +0 -0
- package/icomoon/selection.json +1 -1
- package/icomoon/style.css +8 -5
- package/layout/layout.amd.js +1 -1
- package/layout/layout.js +1 -1
- package/package.json +1 -1
- package/popup/popup.amd.js +1 -1
- package/popup/popup.js +2 -2
- package/popup/worker.amd.js +1 -1
- package/popup/worker.js +2 -2
- package/project/project.amd.js +1 -1
- package/project/project.js +5 -5
- package/tabsView/tabsView.amd.js +1 -1
- package/tabsView/tabsView.js +1 -1
- package/utils/clipboard.amd.js +1 -1
- package/utils/clipboard.js +1 -1
- package/utils/date.amd.js +1 -1
- package/utils/date.js +4 -3
- package/utils/device.amd.js +1 -1
- package/utils/device.js +1 -1
- package/utils/dom.amd.js +1 -1
- package/utils/dom.amd.js.map +1 -1
- package/utils/dom.js +44 -27
- package/utils/dom.js.map +1 -1
- package/utils/lodash.amd.js +1 -1
- package/utils/lodash.js +1 -1
- package/utils/price.amd.js +1 -1
- package/utils/price.js +1 -1
- package/utils/searchers.amd.js +1 -1
- package/utils/searchers.js +3 -3
- package/utils/string.amd.js +1 -1
- package/utils/string.js +1 -1
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-B14m3p7q.amd.js +0 -2
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-B14m3p7q.amd.js.map +0 -1
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-X3S_WcSV.es.js.map +0 -1
- package/.chunks/forms-DO87ZZk9.amd.js +0 -3
- package/.chunks/page.vue_vue_type_script_setup_true_lang-Cg3dLy7K.amd.js.map +0 -1
- package/.chunks/page.vue_vue_type_script_setup_true_lang-Dze2ZUr3.es.js.map +0 -1
- package/.chunks/popup-XXfdNLmr.amd.js +0 -2
- package/.chunks/utils-BcKnFj1j.es.js.map +0 -1
- package/.chunks/utils-pvFg1FqE.amd.js +0 -2
- package/.chunks/utils-pvFg1FqE.amd.js.map +0 -1
- package/icomoon/Topvisor icons.json +0 -6612
package/formsExt/formsExt.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Core as
|
|
2
|
-
import { defineComponent as B, ref as w, computed as
|
|
3
|
-
import { w as
|
|
4
|
-
import { TopPopup as
|
|
1
|
+
import { Core as R } from "../core/app.js";
|
|
2
|
+
import { defineComponent as B, ref as w, computed as S, createElementBlock as f, openBlock as d, normalizeClass as A, createCommentVNode as T, createElementVNode as _, toDisplayString as C, createVNode as z, withKeys as L, withModifiers as P, createBlock as V, createSlots as O, withCtx as $, createTextVNode as I, watch as M, toRef as G, mergeProps as W, mergeModels as F, useModel as U, Fragment as E, renderList as K, withDirectives as j, vModelRadio as Q, resolveDirective as Z, unref as v, renderSlot as D, resolveDynamicComponent as q } from "vue";
|
|
3
|
+
import { w as x, _ as H, f as ee, d as te, u as oe, C as X, x as le, g as se } from "../.chunks/forms-DOGPN_TR.es.js";
|
|
4
|
+
import { TopPopup as ae, TopPopupListItem as N, TopPopupWidgetInput as ne } from "../popup/popup.js";
|
|
5
5
|
import { invertKeyboardLayout as re } from "../utils/keyboard.js";
|
|
6
|
-
import { _ as
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
const
|
|
6
|
+
import { _ as ie } from "../.chunks/menu.vue_vue_type_style_index_0_lang-Dq5eEX9i.es.js";
|
|
7
|
+
const Y = ["../assets/formsExt.css"].map((o) => import.meta.resolve(o));
|
|
8
|
+
R.insertCSSLinkToPage(Y, !0);
|
|
9
|
+
const ue = { class: "top-editArea_footer" }, de = /* @__PURE__ */ B({
|
|
10
10
|
__name: "editArea",
|
|
11
11
|
props: {
|
|
12
12
|
defaultValue: { default: "" },
|
|
@@ -31,92 +31,92 @@ const ie = { class: "top-editArea_footer" }, ue = /* @__PURE__ */ B({
|
|
|
31
31
|
maxLength: {}
|
|
32
32
|
},
|
|
33
33
|
emits: ["submit", "close", "clickOnTitle"],
|
|
34
|
-
setup(
|
|
35
|
-
const
|
|
36
|
-
a("submit",
|
|
34
|
+
setup(o, { emit: e }) {
|
|
35
|
+
const l = o, a = e, n = w(l.defaultValue), t = w(l.isFocused), p = S(() => n.value !== l.defaultValue), c = (r) => {
|
|
36
|
+
a("submit", r), n.value = l.defaultValue;
|
|
37
37
|
}, y = () => {
|
|
38
|
-
if (
|
|
38
|
+
if (l.forceShowCloseBtn && !p.value) {
|
|
39
39
|
a("close");
|
|
40
40
|
return;
|
|
41
41
|
}
|
|
42
|
-
n.value =
|
|
43
|
-
},
|
|
44
|
-
|
|
42
|
+
n.value = l.defaultValue;
|
|
43
|
+
}, k = () => {
|
|
44
|
+
l.attachToKeyboard && a("clickOnTitle");
|
|
45
45
|
};
|
|
46
|
-
return (
|
|
47
|
-
class:
|
|
46
|
+
return (r, b) => (d(), f("div", {
|
|
47
|
+
class: A({
|
|
48
48
|
"top-editArea": !0,
|
|
49
|
-
"top-editArea-attachedToKeyboard":
|
|
49
|
+
"top-editArea-attachedToKeyboard": r.attachToKeyboard
|
|
50
50
|
})
|
|
51
51
|
}, [
|
|
52
|
-
|
|
52
|
+
r.title ? (d(), f("div", {
|
|
53
53
|
key: 0,
|
|
54
54
|
class: "top-editArea_title",
|
|
55
|
-
onClick:
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
class:
|
|
55
|
+
onClick: b[0] || (b[0] = (u) => k())
|
|
56
|
+
}, C(r.title), 1)) : T("", !0),
|
|
57
|
+
_("div", {
|
|
58
|
+
class: A({
|
|
59
59
|
"top-editArea_form": !0,
|
|
60
|
-
"top-error":
|
|
60
|
+
"top-error": r.isError,
|
|
61
61
|
"top-focus": t.value
|
|
62
62
|
})
|
|
63
63
|
}, [
|
|
64
|
-
|
|
64
|
+
z(x, {
|
|
65
65
|
modelValue: n.value,
|
|
66
|
-
"onUpdate:modelValue":
|
|
67
|
-
name:
|
|
68
|
-
placeholder:
|
|
69
|
-
rows:
|
|
70
|
-
minHeight:
|
|
71
|
-
expandable:
|
|
72
|
-
disabled:
|
|
73
|
-
readonly:
|
|
74
|
-
isError:
|
|
75
|
-
hint:
|
|
66
|
+
"onUpdate:modelValue": b[1] || (b[1] = (u) => n.value = u),
|
|
67
|
+
name: r.name,
|
|
68
|
+
placeholder: r.placeholder,
|
|
69
|
+
rows: r.rows,
|
|
70
|
+
minHeight: r.minHeight,
|
|
71
|
+
expandable: r.expandable,
|
|
72
|
+
disabled: r.disabled,
|
|
73
|
+
readonly: r.readonly,
|
|
74
|
+
isError: r.isError,
|
|
75
|
+
hint: r.hint,
|
|
76
76
|
class: "top-editArea_element",
|
|
77
|
-
onFocus:
|
|
78
|
-
onBlur:
|
|
77
|
+
onFocus: b[2] || (b[2] = () => t.value = !0),
|
|
78
|
+
onBlur: b[3] || (b[3] = () => t.value = !1),
|
|
79
79
|
onKeyup: [
|
|
80
80
|
L(y, ["esc"]),
|
|
81
|
-
|
|
81
|
+
b[4] || (b[4] = L(P((u) => c(n.value), ["ctrl"]), ["enter"]))
|
|
82
82
|
]
|
|
83
83
|
}, null, 8, ["modelValue", "name", "placeholder", "rows", "minHeight", "expandable", "disabled", "readonly", "isError", "hint"]),
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
_("div", ue, [
|
|
85
|
+
p.value || r.forceShowCloseBtn ? (d(), V(H, {
|
|
86
86
|
key: 0,
|
|
87
|
-
icon:
|
|
87
|
+
icon: r.$core.state.isMobile ? "" : "",
|
|
88
88
|
class: "top-editArea_button",
|
|
89
89
|
color: "theme",
|
|
90
90
|
styling: "soft",
|
|
91
91
|
onClick: y
|
|
92
|
-
},
|
|
93
|
-
|
|
92
|
+
}, O({ _: 2 }, [
|
|
93
|
+
r.$core.state.isMobile ? void 0 : {
|
|
94
94
|
name: "default",
|
|
95
|
-
fn:
|
|
96
|
-
|
|
95
|
+
fn: $(() => [
|
|
96
|
+
I(C(r.cancelText), 1)
|
|
97
97
|
]),
|
|
98
98
|
key: "0"
|
|
99
99
|
}
|
|
100
|
-
]), 1032, ["icon"])) :
|
|
101
|
-
|
|
100
|
+
]), 1032, ["icon"])) : T("", !0),
|
|
101
|
+
p.value ? (d(), V(H, {
|
|
102
102
|
key: 1,
|
|
103
103
|
class: "top-editArea_button",
|
|
104
|
-
icon:
|
|
105
|
-
onClick:
|
|
106
|
-
},
|
|
107
|
-
|
|
104
|
+
icon: r.$core.state.isMobile ? "" : "",
|
|
105
|
+
onClick: b[5] || (b[5] = (u) => c(n.value))
|
|
106
|
+
}, O({ _: 2 }, [
|
|
107
|
+
r.$core.state.isMobile ? void 0 : {
|
|
108
108
|
name: "default",
|
|
109
|
-
fn:
|
|
110
|
-
|
|
109
|
+
fn: $(() => [
|
|
110
|
+
I(C(r.submitText), 1)
|
|
111
111
|
]),
|
|
112
112
|
key: "0"
|
|
113
113
|
}
|
|
114
|
-
]), 1032, ["icon"])) :
|
|
114
|
+
]), 1032, ["icon"])) : T("", !0)
|
|
115
115
|
])
|
|
116
116
|
], 2)
|
|
117
117
|
], 2));
|
|
118
118
|
}
|
|
119
|
-
}),
|
|
119
|
+
}), pe = { class: "top-editInput" }, ce = /* @__PURE__ */ B({
|
|
120
120
|
__name: "editInput",
|
|
121
121
|
props: {
|
|
122
122
|
modelValue: {},
|
|
@@ -124,34 +124,34 @@ const ie = { class: "top-editArea_footer" }, ue = /* @__PURE__ */ B({
|
|
|
124
124
|
button: {}
|
|
125
125
|
},
|
|
126
126
|
emits: ["update:modelValue"],
|
|
127
|
-
setup(
|
|
128
|
-
const
|
|
129
|
-
|
|
130
|
-
a.value =
|
|
127
|
+
setup(o, { emit: e }) {
|
|
128
|
+
const l = o, a = w(l.modelValue);
|
|
129
|
+
M(G(l.modelValue), () => {
|
|
130
|
+
a.value = l.modelValue;
|
|
131
131
|
});
|
|
132
|
-
const n =
|
|
132
|
+
const n = e, t = () => {
|
|
133
133
|
n("update:modelValue", a.value);
|
|
134
134
|
};
|
|
135
|
-
return (
|
|
136
|
-
|
|
137
|
-
onKeydownCapture: c[0] || (c[0] = L(
|
|
138
|
-
onKeydown: L(
|
|
135
|
+
return (p, c) => (d(), f("div", pe, [
|
|
136
|
+
z(ee, W(p.input, {
|
|
137
|
+
onKeydownCapture: c[0] || (c[0] = L(P((y) => a.value = p.modelValue, ["stop"]), ["esc"])),
|
|
138
|
+
onKeydown: L(P(t, ["stop"]), ["enter"]),
|
|
139
139
|
modelValue: a.value,
|
|
140
140
|
"onUpdate:modelValue": c[1] || (c[1] = (y) => a.value = y)
|
|
141
141
|
}), null, 16, ["onKeydown", "modelValue"]),
|
|
142
|
-
a.value !==
|
|
142
|
+
a.value !== p.modelValue ? (d(), V(H, W({
|
|
143
143
|
key: 0,
|
|
144
144
|
icon: "",
|
|
145
145
|
styling: "soft"
|
|
146
|
-
},
|
|
146
|
+
}, p.button, { onClick: t }), null, 16)) : T("", !0)
|
|
147
147
|
]));
|
|
148
148
|
}
|
|
149
|
-
}),
|
|
149
|
+
}), me = ["data-top-icon", "onClick"], fe = {
|
|
150
150
|
key: 0,
|
|
151
151
|
class: "top-radioGroup_circle"
|
|
152
|
-
},
|
|
152
|
+
}, ve = ["value", "disabled"], ye = /* @__PURE__ */ B({
|
|
153
153
|
__name: "radioGroup",
|
|
154
|
-
props: /* @__PURE__ */
|
|
154
|
+
props: /* @__PURE__ */ F({
|
|
155
155
|
modelValue: {},
|
|
156
156
|
radiosProps: {},
|
|
157
157
|
showIndicator: { type: Boolean },
|
|
@@ -164,53 +164,53 @@ const ie = { class: "top-editArea_footer" }, ue = /* @__PURE__ */ B({
|
|
|
164
164
|
modelModifiers: {}
|
|
165
165
|
}),
|
|
166
166
|
emits: ["update:modelValue"],
|
|
167
|
-
setup(
|
|
168
|
-
const
|
|
169
|
-
|
|
170
|
-
var t,
|
|
171
|
-
(t =
|
|
167
|
+
setup(o) {
|
|
168
|
+
const e = U(o, "modelValue"), l = o, a = w(null);
|
|
169
|
+
M(e, () => {
|
|
170
|
+
var t, p, c, y, k;
|
|
171
|
+
(t = l.radiosProps) != null && t.some((r) => r.value === e.value) || (e.value = ((c = (p = l.radiosProps) == null ? void 0 : p[0]) == null ? void 0 : c.value) ?? ""), (k = (y = a.value) == null ? void 0 : y.querySelector(".radioGroup_item-selected")) == null || k.scrollIntoView();
|
|
172
172
|
}, { immediate: !0 });
|
|
173
173
|
const n = "radioGroup-" + Math.random();
|
|
174
|
-
return (t,
|
|
174
|
+
return (t, p) => (d(), f("div", {
|
|
175
175
|
ref_key: "elRef",
|
|
176
176
|
ref: a,
|
|
177
|
-
class:
|
|
177
|
+
class: A({
|
|
178
178
|
"top-radioGroup": !0,
|
|
179
179
|
"top-scrollBarXHidding": !0,
|
|
180
180
|
["top-size_" + t.size]: !!t.size,
|
|
181
181
|
"top-error": t.isError
|
|
182
182
|
})
|
|
183
183
|
}, [
|
|
184
|
-
(
|
|
185
|
-
class:
|
|
186
|
-
"top-radioGroup_item-selected": c.value ===
|
|
184
|
+
(d(!0), f(E, null, K(t.radiosProps, (c) => (d(), f("label", {
|
|
185
|
+
class: A({
|
|
186
|
+
"top-radioGroup_item-selected": c.value === e.value,
|
|
187
187
|
"top-radioGroup_item": !0,
|
|
188
188
|
"top-forms-focusable": !0,
|
|
189
189
|
"top-disabled": c.disabled
|
|
190
190
|
}),
|
|
191
191
|
"data-top-icon": c.icon,
|
|
192
|
-
onClick: (y) =>
|
|
192
|
+
onClick: (y) => e.value = c.value
|
|
193
193
|
}, [
|
|
194
|
-
|
|
195
|
-
t.showIndicator ? (
|
|
196
|
-
|
|
197
|
-
"onUpdate:modelValue":
|
|
194
|
+
I(C(c.title) + " ", 1),
|
|
195
|
+
t.showIndicator ? (d(), f("span", fe)) : T("", !0),
|
|
196
|
+
j(_("input", {
|
|
197
|
+
"onUpdate:modelValue": p[0] || (p[0] = (y) => e.value = y),
|
|
198
198
|
name: n,
|
|
199
199
|
type: "radio",
|
|
200
|
-
class:
|
|
200
|
+
class: A({
|
|
201
201
|
"top-unvisible": !0
|
|
202
202
|
}),
|
|
203
203
|
value: c.value,
|
|
204
204
|
disabled: c.disabled
|
|
205
|
-
}, null, 8,
|
|
206
|
-
[Q,
|
|
205
|
+
}, null, 8, ve), [
|
|
206
|
+
[Q, e.value]
|
|
207
207
|
])
|
|
208
|
-
], 10,
|
|
208
|
+
], 10, me))), 256))
|
|
209
209
|
], 2));
|
|
210
210
|
}
|
|
211
|
-
}),
|
|
211
|
+
}), he = ["data-top-icon"], be = ["value", "checked", "disabled", "onChange"], ge = /* @__PURE__ */ B({
|
|
212
212
|
__name: "checkboxGroup",
|
|
213
|
-
props: /* @__PURE__ */
|
|
213
|
+
props: /* @__PURE__ */ F({
|
|
214
214
|
modelValue: {},
|
|
215
215
|
items: {},
|
|
216
216
|
size: { default: "s" },
|
|
@@ -223,13 +223,13 @@ const ie = { class: "top-editArea_footer" }, ue = /* @__PURE__ */ B({
|
|
|
223
223
|
modelModifiers: {}
|
|
224
224
|
}),
|
|
225
225
|
emits: ["update:modelValue"],
|
|
226
|
-
setup(
|
|
227
|
-
const
|
|
228
|
-
const n = [...
|
|
229
|
-
t === -1 ? n.push(a) : n.splice(t, 1),
|
|
226
|
+
setup(o) {
|
|
227
|
+
const e = U(o, "modelValue"), l = (a) => {
|
|
228
|
+
const n = [...e.value], t = n.indexOf(a);
|
|
229
|
+
t === -1 ? n.push(a) : n.splice(t, 1), e.value = n;
|
|
230
230
|
};
|
|
231
|
-
return (a, n) => (
|
|
232
|
-
class:
|
|
231
|
+
return (a, n) => (d(), f("div", {
|
|
232
|
+
class: A({
|
|
233
233
|
"top-checkboxGroup": !0,
|
|
234
234
|
["top-checkboxGroup-" + a.styling]: !0,
|
|
235
235
|
"top-scrollBarXHidding": !0,
|
|
@@ -237,126 +237,136 @@ const ie = { class: "top-editArea_footer" }, ue = /* @__PURE__ */ B({
|
|
|
237
237
|
"top-error": a.isError
|
|
238
238
|
})
|
|
239
239
|
}, [
|
|
240
|
-
(
|
|
240
|
+
(d(!0), f(E, null, K(a.items, (t) => (d(), f("label", {
|
|
241
241
|
key: t.id,
|
|
242
|
-
class:
|
|
242
|
+
class: A({
|
|
243
243
|
"top-checkboxGroup_item": !0,
|
|
244
|
-
"top-checkboxGroup_item-selected":
|
|
244
|
+
"top-checkboxGroup_item-selected": e.value.includes(t.id),
|
|
245
245
|
"top-forms-focusable": !0,
|
|
246
246
|
"top-disabled": t.disabled
|
|
247
247
|
}),
|
|
248
248
|
"data-top-icon": t.icon
|
|
249
249
|
}, [
|
|
250
|
-
|
|
250
|
+
_("input", {
|
|
251
251
|
type: "checkbox",
|
|
252
252
|
class: "top-unvisible",
|
|
253
253
|
value: t.id,
|
|
254
|
-
checked:
|
|
254
|
+
checked: e.value.includes(t.id),
|
|
255
255
|
disabled: t.disabled,
|
|
256
|
-
onChange: (
|
|
257
|
-
}, null, 40,
|
|
258
|
-
|
|
259
|
-
], 10,
|
|
256
|
+
onChange: (p) => l(t.id)
|
|
257
|
+
}, null, 40, be),
|
|
258
|
+
I(" " + C(t.title), 1)
|
|
259
|
+
], 10, he))), 128))
|
|
260
260
|
], 2));
|
|
261
261
|
}
|
|
262
|
-
}),
|
|
262
|
+
}), Te = { class: "top-selector2_itemMulti top-ellipsis" }, ke = /* @__PURE__ */ B({
|
|
263
263
|
__name: "itemMulti",
|
|
264
264
|
props: {
|
|
265
265
|
id: {},
|
|
266
266
|
name: {}
|
|
267
267
|
},
|
|
268
268
|
emits: ["delete"],
|
|
269
|
-
setup(
|
|
270
|
-
return (
|
|
271
|
-
|
|
272
|
-
|
|
269
|
+
setup(o) {
|
|
270
|
+
return (e, l) => (d(), f("div", Te, [
|
|
271
|
+
I(C(e.name) + " ", 1),
|
|
272
|
+
_("span", {
|
|
273
273
|
class: "top-selector2_itemMultiDelete",
|
|
274
274
|
"data-top-icon": "",
|
|
275
|
-
onClick:
|
|
276
|
-
onMousedown:
|
|
275
|
+
onClick: l[0] || (l[0] = (a) => e.$emit("delete", e.id)),
|
|
276
|
+
onMousedown: l[1] || (l[1] = P(() => {
|
|
277
277
|
}, ["stop"]))
|
|
278
278
|
}, null, 32)
|
|
279
279
|
]));
|
|
280
280
|
}
|
|
281
|
-
}),
|
|
281
|
+
}), Ce = (o, e, l) => {
|
|
282
282
|
const a = w([]), n = w(!1);
|
|
283
|
-
let t = "",
|
|
284
|
-
|
|
283
|
+
let t = "", p;
|
|
284
|
+
o && !o.params.limit && (o.params.limit = 100);
|
|
285
285
|
const c = async () => {
|
|
286
|
-
if (!
|
|
287
|
-
let
|
|
288
|
-
if (
|
|
289
|
-
return
|
|
290
|
-
if (n.value = !0,
|
|
291
|
-
if (!Array.isArray(
|
|
286
|
+
if (!o) return;
|
|
287
|
+
let u, s;
|
|
288
|
+
if (l && (o.cache ??= /* @__PURE__ */ new Map(), s = JSON.stringify(o.params), u = o.cache.get(s), u))
|
|
289
|
+
return u;
|
|
290
|
+
if (n.value = !0, u = await o.call(), n.value = !1, u.errors) return;
|
|
291
|
+
if (!Array.isArray(u.result)) {
|
|
292
292
|
console.warn("В result ожидался массив");
|
|
293
293
|
return;
|
|
294
294
|
}
|
|
295
|
-
const
|
|
296
|
-
if (
|
|
297
|
-
console.warn(`В result[${
|
|
295
|
+
const i = u.result.findIndex((h) => h.id === void 0 || h.name === void 0);
|
|
296
|
+
if (i !== -1) {
|
|
297
|
+
console.warn(`В result[${i}] нет id или name`);
|
|
298
298
|
return;
|
|
299
299
|
}
|
|
300
|
-
return
|
|
300
|
+
return l && o.cache.set(s, u), u;
|
|
301
301
|
}, y = async () => {
|
|
302
|
-
if (!
|
|
303
|
-
|
|
304
|
-
const
|
|
305
|
-
|
|
306
|
-
},
|
|
307
|
-
if (!
|
|
308
|
-
|
|
309
|
-
const
|
|
310
|
-
|
|
311
|
-
},
|
|
302
|
+
if (!o) return;
|
|
303
|
+
o.params.offset = 0, o.params.search = t;
|
|
304
|
+
const u = await c();
|
|
305
|
+
u && (p = u.nextOffset, a.value = u.result);
|
|
306
|
+
}, k = async () => {
|
|
307
|
+
if (!o || !p || n.value) return;
|
|
308
|
+
o.params.offset = p, o.params.search = t;
|
|
309
|
+
const u = await c();
|
|
310
|
+
u && (p = u.nextOffset, a.value = a.value.concat(u.result));
|
|
311
|
+
}, r = te(() => y(), 200);
|
|
312
312
|
return {
|
|
313
|
-
apiRequest:
|
|
313
|
+
apiRequest: o,
|
|
314
314
|
items: a,
|
|
315
315
|
isLoading: n,
|
|
316
|
-
loadAppend:
|
|
317
|
-
setSearchTextAndLoad: (
|
|
318
|
-
|
|
316
|
+
loadAppend: k,
|
|
317
|
+
setSearchTextAndLoad: (u, s = !0) => {
|
|
318
|
+
o && (u.length < e || u === t && a.value.length || (t = u, s ? r() : y()));
|
|
319
319
|
}
|
|
320
320
|
};
|
|
321
|
-
},
|
|
322
|
-
const
|
|
323
|
-
id:
|
|
321
|
+
}, $e = 0, J = (o, e, l = !0) => l && e.id === null ? Array.isArray(o) ? o.some((a) => a.id === e.id && a.name === e.name) : e.name === o.name : Array.isArray(o) ? o.some((a) => a.id === e.id) : e.id === o.id, Ae = (o, e, l, a, n, t) => {
|
|
322
|
+
const p = w(""), c = {
|
|
323
|
+
id: $e,
|
|
324
324
|
name: oe().Common.All
|
|
325
325
|
}, y = () => {
|
|
326
|
-
|
|
327
|
-
},
|
|
328
|
-
var
|
|
329
|
-
const
|
|
330
|
-
return !
|
|
331
|
-
}),
|
|
332
|
-
const
|
|
333
|
-
let
|
|
334
|
-
return
|
|
335
|
-
const
|
|
336
|
-
(
|
|
337
|
-
}),
|
|
326
|
+
p.value = "", t.items.value = [];
|
|
327
|
+
}, k = S(() => {
|
|
328
|
+
var i;
|
|
329
|
+
const s = [];
|
|
330
|
+
return !l && a.value && s.push(c), (i = e.value) == null || i.forEach((h) => s.push({ ...h })), s;
|
|
331
|
+
}), r = S(() => {
|
|
332
|
+
const s = p.value.toLowerCase(), i = re(s);
|
|
333
|
+
let h = [];
|
|
334
|
+
return k.value.forEach((m) => {
|
|
335
|
+
const g = m.name.toLowerCase();
|
|
336
|
+
(m.id === Number(s) || g.includes(s) || g.includes(i)) && (g === s || g === i ? h.unshift(m) : h.push(m));
|
|
337
|
+
}), h.push(...t.items.value), n.value && p.value && (!h.length || h[0].name.toLowerCase() !== s) && h.push({
|
|
338
338
|
id: null,
|
|
339
|
-
name:
|
|
340
|
-
}),
|
|
339
|
+
name: p.value
|
|
340
|
+
}), l && (h = h.filter((m) => !J(o.value, m))), h;
|
|
341
341
|
});
|
|
342
342
|
return {
|
|
343
|
-
searchText:
|
|
343
|
+
searchText: p,
|
|
344
344
|
resetSearch: y,
|
|
345
|
-
items:
|
|
346
|
-
itemsForShow:
|
|
345
|
+
items: k,
|
|
346
|
+
itemsForShow: r,
|
|
347
|
+
selectNextItem: () => {
|
|
348
|
+
if (!Array.isArray(o.value)) {
|
|
349
|
+
const i = (r.value.findIndex((h) => h.id === o.value.id) + 1) % r.value.length;
|
|
350
|
+
o.value = { ...r.value[i] };
|
|
351
|
+
}
|
|
352
|
+
},
|
|
353
|
+
deleteItemById: async (s) => {
|
|
354
|
+
Array.isArray(o.value) && (o.value = o.value.filter((i) => i.id !== s));
|
|
355
|
+
}
|
|
347
356
|
};
|
|
348
|
-
},
|
|
357
|
+
}, Ve = {
|
|
349
358
|
key: 0,
|
|
350
359
|
class: "top-selector2_activeItems"
|
|
351
|
-
},
|
|
360
|
+
}, we = {
|
|
352
361
|
key: 1,
|
|
353
362
|
class: "top-selector2_activeName top-ellipsis"
|
|
354
|
-
},
|
|
363
|
+
}, _e = /* @__PURE__ */ B({
|
|
355
364
|
__name: "selector2",
|
|
356
|
-
props: /* @__PURE__ */
|
|
365
|
+
props: /* @__PURE__ */ F({
|
|
357
366
|
modelValue: {},
|
|
358
367
|
items: { default: () => [] },
|
|
359
368
|
multiselect: { type: Boolean },
|
|
369
|
+
title: {},
|
|
360
370
|
disabled: { type: Boolean },
|
|
361
371
|
size: { default: "s" },
|
|
362
372
|
isError: { type: Boolean },
|
|
@@ -366,163 +376,158 @@ const ie = { class: "top-editArea_footer" }, ue = /* @__PURE__ */ B({
|
|
|
366
376
|
appendSearchToResult: { type: Boolean },
|
|
367
377
|
appendAllValue: { type: Boolean },
|
|
368
378
|
addChanger: { type: Boolean },
|
|
379
|
+
searchType: { default: "popup" },
|
|
369
380
|
placeholder: {},
|
|
370
|
-
|
|
371
|
-
showSearch: { type: Boolean, default: !0 }
|
|
381
|
+
selectedAsPlaceholder: { type: Boolean, default: !0 }
|
|
372
382
|
}, {
|
|
373
383
|
modelValue: { required: !0 },
|
|
374
384
|
modelModifiers: {}
|
|
375
385
|
}),
|
|
376
386
|
emits: ["update:modelValue"],
|
|
377
|
-
setup(
|
|
378
|
-
const
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
}));
|
|
391
|
-
}, i = w(!1);
|
|
392
|
-
n.apiRequest && (E(i, () => {
|
|
393
|
-
i.value && n.setSearchTextAndLoad(t.searchText.value, !1);
|
|
394
|
-
}), E(t.searchText, () => n.setSearchTextAndLoad(t.searchText.value)));
|
|
395
|
-
const m = (l) => {
|
|
396
|
-
o.multiselect && Array.isArray(e.value) ? J(e.value, l) || (e.value = [...e.value, l]) : e.value = l;
|
|
397
|
-
}, r = () => {
|
|
398
|
-
var l;
|
|
399
|
-
i.value = !1, (l = a.value) == null || l.focus(), t.searchText.value && t.resetSearch();
|
|
400
|
-
}, v = (l) => {
|
|
401
|
-
const u = l.target;
|
|
402
|
-
u.scrollTop / (u.scrollHeight - u.offsetHeight) > 0.8 && n.loadAppend();
|
|
387
|
+
setup(o) {
|
|
388
|
+
const e = o, l = U(o, "modelValue"), a = w(null), n = Ce(e.apiRequest, e.minLength || 0, e.useCache), t = Ae(l, G(e, "items"), e.multiselect, G(e, "appendAllValue"), G(e, "appendSearchToResult"), n), p = S(() => e.searchType === "inline" && e.multiselect || e.searchType === "inline" && X.state.isMobile ? "popup" : e.searchType), c = S(() => p.value === "inline" ? "TopInput" : "div");
|
|
389
|
+
n.apiRequest && M(t.searchText, () => n.setSearchTextAndLoad(t.searchText.value));
|
|
390
|
+
const y = (s) => {
|
|
391
|
+
e.multiselect && Array.isArray(l.value) ? J(l.value, s) || (l.value = [...l.value, s]) : l.value = s;
|
|
392
|
+
}, k = S(() => Array.isArray(l.value) || e.multiselect || !e.selectedAsPlaceholder ? e.placeholder : l.value.name || e.placeholder), r = () => {
|
|
393
|
+
n.apiRequest && n.setSearchTextAndLoad(t.searchText.value, !1);
|
|
394
|
+
}, b = () => {
|
|
395
|
+
var s;
|
|
396
|
+
(s = a.value) == null || s.focus(), t.searchText.value && t.resetSearch();
|
|
397
|
+
}, u = (s) => {
|
|
398
|
+
const i = s.target;
|
|
399
|
+
i.scrollTop / (i.scrollHeight - i.offsetHeight) > 0.8 && n.loadAppend();
|
|
403
400
|
};
|
|
404
|
-
return window.__STORYBOOK_PREVIEW__ &&
|
|
405
|
-
() =>
|
|
401
|
+
return window.__STORYBOOK_PREVIEW__ && (M(
|
|
402
|
+
() => e.multiselect,
|
|
406
403
|
() => {
|
|
407
|
-
|
|
404
|
+
l.value = e.multiselect ? [] : { id: null, name: "" };
|
|
408
405
|
},
|
|
409
406
|
{ immediate: !0 }
|
|
410
|
-
), (
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
407
|
+
), M(
|
|
408
|
+
() => e.searchType,
|
|
409
|
+
() => {
|
|
410
|
+
setTimeout(() => {
|
|
411
|
+
location.reload();
|
|
412
|
+
}, 300);
|
|
413
|
+
}
|
|
414
|
+
)), (s, i) => {
|
|
415
|
+
const h = Z("top-focus");
|
|
416
|
+
return d(), V(v(ae), {
|
|
417
|
+
onOpen: i[4] || (i[4] = (m) => r()),
|
|
418
|
+
onClose: i[5] || (i[5] = (m) => b()),
|
|
419
|
+
onScrollContentList: i[6] || (i[6] = (m) => s.apiRequest ? u(m) : void 0),
|
|
418
420
|
notch: !1,
|
|
419
421
|
transitionDuration: 0
|
|
420
|
-
},
|
|
421
|
-
opener:
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
class: C({
|
|
422
|
+
}, O({
|
|
423
|
+
opener: $(() => [
|
|
424
|
+
j((d(), V(q(c.value), {
|
|
425
|
+
ref: "subcomponentSelector",
|
|
426
|
+
class: A({
|
|
426
427
|
"top-selector2": !0,
|
|
427
|
-
"top-selector2-multiselect":
|
|
428
|
-
["top-size_" +
|
|
429
|
-
"top-disabled":
|
|
430
|
-
"top-forms-focusable": !
|
|
431
|
-
"top-error":
|
|
428
|
+
"top-selector2-multiselect": s.multiselect,
|
|
429
|
+
["top-size_" + s.size]: !0,
|
|
430
|
+
"top-disabled": s.disabled,
|
|
431
|
+
"top-forms-focusable": !s.disabled,
|
|
432
|
+
"top-error": s.isError
|
|
432
433
|
}),
|
|
433
434
|
onKeydown: [
|
|
434
|
-
|
|
435
|
-
|
|
435
|
+
i[1] || (i[1] = L(P((m) => m.currentTarget.click(), ["stop", "prevent"]), ["up", "down", "enter", "space"])),
|
|
436
|
+
i[2] || (i[2] = L((m) => l.value = [], ["delete"]))
|
|
436
437
|
],
|
|
437
438
|
tabindex: "0"
|
|
438
|
-
},
|
|
439
|
-
|
|
440
|
-
(
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
439
|
+
}, {
|
|
440
|
+
default: $(() => [
|
|
441
|
+
s.multiselect ? (d(), f("div", Ve, [
|
|
442
|
+
(d(!0), f(E, null, K(l.value, (m) => (d(), V(ke, {
|
|
443
|
+
id: m.id,
|
|
444
|
+
name: m.name,
|
|
445
|
+
onDelete: v(t).deleteItemById
|
|
446
|
+
}, null, 8, ["id", "name", "onDelete"]))), 256))
|
|
447
|
+
])) : T("", !0),
|
|
448
|
+
s.multiselect ? T("", !0) : (d(), f("span", we, C(Array.isArray(l.value) ? "" : l.value.name), 1)),
|
|
449
|
+
s.addChanger && !s.multiselect && v(t).items.value.length > 1 && !s.disabled ? (d(), f("span", {
|
|
450
|
+
key: 2,
|
|
451
|
+
class: "top-changer top-changer-selector",
|
|
452
|
+
"data-top-popup-disabled": "true",
|
|
453
|
+
onClick: i[0] || (i[0] = //@ts-ignore
|
|
454
|
+
(...m) => v(t).selectNextItem && v(t).selectNextItem(...m))
|
|
455
|
+
})) : T("", !0)
|
|
456
|
+
]),
|
|
457
|
+
_: 1
|
|
458
|
+
}, 40, ["class"])), [
|
|
454
459
|
[
|
|
455
|
-
|
|
456
|
-
|
|
460
|
+
h,
|
|
461
|
+
s.isError,
|
|
457
462
|
void 0,
|
|
458
463
|
{ onupdate: !0 }
|
|
459
464
|
]
|
|
460
465
|
])
|
|
461
466
|
]),
|
|
462
|
-
contentList:
|
|
463
|
-
var
|
|
467
|
+
contentList: $(() => {
|
|
468
|
+
var m;
|
|
464
469
|
return [
|
|
465
|
-
(
|
|
466
|
-
class:
|
|
467
|
-
"top-active": !Array.isArray(
|
|
470
|
+
(d(!0), f(E, null, K(v(t).itemsForShow.value, (g) => (d(), V(v(N), {
|
|
471
|
+
class: A({
|
|
472
|
+
"top-active": !Array.isArray(l.value) && !s.multiselect && l.value.id === g.id && l.value.name === g.name
|
|
468
473
|
}),
|
|
469
|
-
key:
|
|
470
|
-
closeByClick: !
|
|
471
|
-
onClick: (
|
|
474
|
+
key: g.id ?? void 0,
|
|
475
|
+
closeByClick: !s.multiselect || v(X).state.isMobile,
|
|
476
|
+
onClick: (Ge) => y(g)
|
|
472
477
|
}, {
|
|
473
|
-
default:
|
|
474
|
-
|
|
478
|
+
default: $(() => [
|
|
479
|
+
s.$slots.item ? D(s.$slots, "item", {
|
|
475
480
|
key: 0,
|
|
476
|
-
item:
|
|
477
|
-
}) : (
|
|
478
|
-
|
|
481
|
+
item: g
|
|
482
|
+
}) : (d(), f(E, { key: 1 }, [
|
|
483
|
+
I(C(g.name), 1)
|
|
479
484
|
], 64))
|
|
480
485
|
]),
|
|
481
486
|
_: 2
|
|
482
487
|
}, 1032, ["class", "closeByClick", "onClick"]))), 128)),
|
|
483
|
-
!
|
|
488
|
+
!v(n).isLoading.value && !v(t).itemsForShow.value.length ? (d(), V(v(N), {
|
|
484
489
|
key: 0,
|
|
485
490
|
type: "regular"
|
|
486
491
|
}, {
|
|
487
|
-
default:
|
|
488
|
-
|
|
492
|
+
default: $(() => [
|
|
493
|
+
I(C(s.$i18n.Common.No_results), 1)
|
|
489
494
|
]),
|
|
490
495
|
_: 1
|
|
491
|
-
})) :
|
|
492
|
-
|
|
496
|
+
})) : T("", !0),
|
|
497
|
+
v(n).isLoading.value && (s.searchType !== "popup" || (m = s.apiRequest) != null && m.params.offset) ? (d(), V(v(N), {
|
|
493
498
|
key: 1,
|
|
494
499
|
type: "regular"
|
|
495
500
|
}, {
|
|
496
|
-
default:
|
|
497
|
-
|
|
501
|
+
default: $(() => [
|
|
502
|
+
z(v(le), { type: "circles" })
|
|
498
503
|
]),
|
|
499
504
|
_: 1
|
|
500
|
-
})) :
|
|
505
|
+
})) : T("", !0)
|
|
501
506
|
];
|
|
502
507
|
}),
|
|
503
508
|
_: 2
|
|
504
509
|
}, [
|
|
505
|
-
|
|
510
|
+
s.searchType === "popup" ? {
|
|
506
511
|
name: "widget",
|
|
507
|
-
fn:
|
|
508
|
-
var
|
|
512
|
+
fn: $(() => {
|
|
513
|
+
var m;
|
|
509
514
|
return [
|
|
510
|
-
|
|
515
|
+
z(v(ne), {
|
|
511
516
|
title: "Поиск",
|
|
512
517
|
icon: "",
|
|
513
|
-
modelValue:
|
|
514
|
-
"onUpdate:modelValue":
|
|
515
|
-
isLoading:
|
|
516
|
-
placeholder:
|
|
518
|
+
modelValue: v(t).searchText.value,
|
|
519
|
+
"onUpdate:modelValue": i[3] || (i[3] = (g) => v(t).searchText.value = g),
|
|
520
|
+
isLoading: v(n).isLoading.value && !((m = s.apiRequest) != null && m.params.offset),
|
|
521
|
+
placeholder: k.value
|
|
517
522
|
}, null, 8, ["modelValue", "isLoading", "placeholder"])
|
|
518
523
|
];
|
|
519
524
|
}),
|
|
520
525
|
key: "0"
|
|
521
526
|
} : void 0
|
|
522
|
-
]),
|
|
527
|
+
]), 1024);
|
|
523
528
|
};
|
|
524
529
|
}
|
|
525
|
-
}),
|
|
530
|
+
}), Ie = ["data-top-icon"], Be = { class: "top-info_text" }, Se = {
|
|
526
531
|
key: 0,
|
|
527
532
|
class: "top-info_value"
|
|
528
533
|
}, Le = /* @__PURE__ */ B({
|
|
@@ -532,31 +537,63 @@ const ie = { class: "top-editArea_footer" }, ue = /* @__PURE__ */ B({
|
|
|
532
537
|
styling: { default: "default" },
|
|
533
538
|
size: { default: "default" }
|
|
534
539
|
},
|
|
535
|
-
setup(
|
|
536
|
-
return (
|
|
537
|
-
class:
|
|
540
|
+
setup(o) {
|
|
541
|
+
return (e, l) => (d(), f("div", {
|
|
542
|
+
class: A({
|
|
538
543
|
"top-info": !0,
|
|
539
|
-
["top-size_" +
|
|
540
|
-
["top-info-styling_" +
|
|
544
|
+
["top-size_" + e.size]: !0,
|
|
545
|
+
["top-info-styling_" + e.styling]: !0
|
|
541
546
|
}),
|
|
542
|
-
"data-top-icon":
|
|
547
|
+
"data-top-icon": e.icon
|
|
543
548
|
}, [
|
|
544
|
-
|
|
545
|
-
D(
|
|
549
|
+
_("div", Be, [
|
|
550
|
+
D(e.$slots, "default")
|
|
546
551
|
]),
|
|
547
|
-
|
|
548
|
-
D(
|
|
549
|
-
])) :
|
|
550
|
-
], 10,
|
|
552
|
+
e.$slots.additional ? (d(), f("span", Se, [
|
|
553
|
+
D(e.$slots, "additional")
|
|
554
|
+
])) : T("", !0)
|
|
555
|
+
], 10, Ie));
|
|
556
|
+
}
|
|
557
|
+
}), Me = {
|
|
558
|
+
key: 0,
|
|
559
|
+
class: "top-policy"
|
|
560
|
+
}, Ee = { class: "top-policy_title" }, ze = ["innerHTML"], Pe = /* @__PURE__ */ B({
|
|
561
|
+
__name: "policy",
|
|
562
|
+
props: {
|
|
563
|
+
title: {},
|
|
564
|
+
text: {}
|
|
565
|
+
},
|
|
566
|
+
setup(o) {
|
|
567
|
+
const e = w(!0), l = () => {
|
|
568
|
+
const a = location.hostname.split(".").slice(-2).join(".");
|
|
569
|
+
document.cookie = `cookie_consent=accepted; path=/; domain=.${a}; max-age=31536000`, e.value = !1;
|
|
570
|
+
};
|
|
571
|
+
return (a, n) => e.value ? (d(), f("div", Me, [
|
|
572
|
+
_("div", Ee, C(a.title), 1),
|
|
573
|
+
_("div", {
|
|
574
|
+
class: "top-policy_description",
|
|
575
|
+
innerHTML: a.text
|
|
576
|
+
}, null, 8, ze),
|
|
577
|
+
z(v(se), {
|
|
578
|
+
size: "m",
|
|
579
|
+
onClick: l
|
|
580
|
+
}, {
|
|
581
|
+
default: $(() => [
|
|
582
|
+
I(C(a.$i18n.Common.Allow), 1)
|
|
583
|
+
]),
|
|
584
|
+
_: 1
|
|
585
|
+
})
|
|
586
|
+
])) : T("", !0);
|
|
551
587
|
}
|
|
552
|
-
}),
|
|
588
|
+
}), Ue = de, We = ce, Xe = ye, je = ge, Je = _e, Re = ie, Ye = Le, Qe = Pe;
|
|
553
589
|
export {
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
590
|
+
je as TopCheckboxGroup,
|
|
591
|
+
Ue as TopEditArea,
|
|
592
|
+
We as TopEditInput,
|
|
593
|
+
Ye as TopInfo,
|
|
558
594
|
Re as TopMenu,
|
|
559
|
-
|
|
560
|
-
|
|
595
|
+
Qe as TopPolicy,
|
|
596
|
+
Xe as TopRadioGroup,
|
|
597
|
+
Je as TopSelector2
|
|
561
598
|
};
|
|
562
599
|
//# sourceMappingURL=formsExt.js.map
|