@topvisor/ui 1.3.5-5.0 → 1.3.5-popupFromInput.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-DmO1i1Ua.amd.js → core-DcLw0dEO.amd.js} +2 -2
- package/.chunks/{core-DmO1i1Ua.amd.js.map → core-DcLw0dEO.amd.js.map} +1 -1
- package/.chunks/{core-CaWxDXrZ.es.js → core-DpTLGhiK.es.js} +4 -4
- package/.chunks/{core-CaWxDXrZ.es.js.map → core-DpTLGhiK.es.js.map} +1 -1
- package/.chunks/{datepicker-CPrHVH4x.amd.js → datepicker-Bq_z2paN.amd.js} +2 -2
- package/.chunks/{datepicker-CPrHVH4x.amd.js.map → datepicker-Bq_z2paN.amd.js.map} +1 -1
- package/.chunks/{datepicker-J8Zg9mKt.es.js → datepicker-CGGp0VnN.es.js} +2 -2
- package/.chunks/{datepicker-J8Zg9mKt.es.js.map → datepicker-CGGp0VnN.es.js.map} +1 -1
- package/.chunks/{dialog_selectorRegions-DoEjgXtb.es.js → dialog_selectorRegions-BtAADQHf.es.js} +4 -4
- package/.chunks/{dialog_selectorRegions-DoEjgXtb.es.js.map → dialog_selectorRegions-BtAADQHf.es.js.map} +1 -1
- package/.chunks/{dialog_selectorRegions-DzufTzj9.amd.js → dialog_selectorRegions-DCrHvHDs.amd.js} +2 -2
- package/.chunks/{dialog_selectorRegions-DzufTzj9.amd.js.map → dialog_selectorRegions-DCrHvHDs.amd.js.map} +1 -1
- package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-8KsNy0Bd.amd.js → dialogs.vue_vue_type_script_setup_true_lang-Bf0wXalT.amd.js} +2 -2
- package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-8KsNy0Bd.amd.js.map → dialogs.vue_vue_type_script_setup_true_lang-Bf0wXalT.amd.js.map} +1 -1
- package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-DvkvzHEY.es.js → dialogs.vue_vue_type_script_setup_true_lang-DCVIoEeY.es.js} +2 -2
- package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-DvkvzHEY.es.js.map → dialogs.vue_vue_type_script_setup_true_lang-DCVIoEeY.es.js.map} +1 -1
- package/.chunks/{forms-COXAfg9G.es.js → forms-BhbgRJ5I.es.js} +51 -53
- package/.chunks/{forms-COXAfg9G.es.js.map → forms-BhbgRJ5I.es.js.map} +1 -1
- package/.chunks/{forms-DXX5M4DO.amd.js → forms-CNcrvkYD.amd.js} +3 -3
- package/.chunks/{forms-DXX5M4DO.amd.js.map → forms-CNcrvkYD.amd.js.map} +1 -1
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-QvP1d9jN.amd.js +2 -0
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-QvP1d9jN.amd.js.map +1 -0
- package/.chunks/{listItem.vue_vue_type_script_setup_true_lang--W1RouXP.es.js → listItem.vue_vue_type_script_setup_true_lang-xvzbyqai.es.js} +36 -39
- package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-DzV225TL.amd.js.map → listItem.vue_vue_type_script_setup_true_lang-xvzbyqai.es.js.map} +1 -1
- package/.chunks/{menu.vue_vue_type_style_index_0_lang-D3OAqOqX.amd.js → menu.vue_vue_type_style_index_0_lang-C3Rr6ZyL.amd.js} +2 -2
- package/.chunks/{menu.vue_vue_type_style_index_0_lang-D3OAqOqX.amd.js.map → menu.vue_vue_type_style_index_0_lang-C3Rr6ZyL.amd.js.map} +1 -1
- package/.chunks/{menu.vue_vue_type_style_index_0_lang-BiyxTfdE.es.js → menu.vue_vue_type_style_index_0_lang-dOeZ7an1.es.js} +2 -2
- package/.chunks/{menu.vue_vue_type_style_index_0_lang-BiyxTfdE.es.js.map → menu.vue_vue_type_style_index_0_lang-dOeZ7an1.es.js.map} +1 -1
- package/.chunks/{notice-CSGn_jTM.amd.js → notice-BpLsm6Zh.amd.js} +2 -2
- package/.chunks/{notice-CSGn_jTM.amd.js.map → notice-BpLsm6Zh.amd.js.map} +1 -1
- package/.chunks/{notice-P7CXfEuX.es.js → notice-CpPhDTUb.es.js} +2 -2
- package/.chunks/{notice-P7CXfEuX.es.js.map → notice-CpPhDTUb.es.js.map} +1 -1
- package/.chunks/opener.vue_vue_type_script_setup_true_lang-DRzrTv7Q.es.js.map +1 -1
- package/.chunks/opener.vue_vue_type_script_setup_true_lang-gNZhYkDf.amd.js.map +1 -1
- package/.chunks/{page.vue_vue_type_script_setup_true_lang-D9m45rLs.es.js → page.vue_vue_type_script_setup_true_lang-9abPBMpd.es.js} +4 -4
- package/.chunks/{page.vue_vue_type_script_setup_true_lang-D9m45rLs.es.js.map → page.vue_vue_type_script_setup_true_lang-9abPBMpd.es.js.map} +1 -1
- package/.chunks/{page.vue_vue_type_script_setup_true_lang-DHPOnLj5.amd.js → page.vue_vue_type_script_setup_true_lang-B-1LEQAz.amd.js} +2 -2
- package/.chunks/{page.vue_vue_type_script_setup_true_lang-DHPOnLj5.amd.js.map → page.vue_vue_type_script_setup_true_lang-B-1LEQAz.amd.js.map} +1 -1
- package/.chunks/{popup-G7FYKscC.es.js → popup-BJj9BJP5.es.js} +2 -2
- package/.chunks/{popup-G7FYKscC.es.js.map → popup-BJj9BJP5.es.js.map} +1 -1
- package/.chunks/{popup-CF4k7j3U.amd.js → popup-CfXISjhC.amd.js} +2 -2
- package/.chunks/{popup-CF4k7j3U.amd.js.map → popup-CfXISjhC.amd.js.map} +1 -1
- package/.chunks/{utils-D505nRsu.amd.js → utils-5uxIj2CI.amd.js} +2 -2
- package/.chunks/{utils-D505nRsu.amd.js.map → utils-5uxIj2CI.amd.js.map} +1 -1
- package/.chunks/{utils-DmxcQpWA.amd.js → utils-Bg_su8b-.amd.js} +2 -2
- package/.chunks/{utils-DmxcQpWA.amd.js.map → utils-Bg_su8b-.amd.js.map} +1 -1
- package/.chunks/{utils-CWm0zAtM.es.js → utils-D58EUoHa.es.js} +3 -3
- package/.chunks/{utils-CWm0zAtM.es.js.map → utils-D58EUoHa.es.js.map} +1 -1
- package/.chunks/{utils-Rbz9mxy6.es.js → utils-UBgfsQ8v.es.js} +2 -2
- package/.chunks/{utils-Rbz9mxy6.es.js.map → utils-UBgfsQ8v.es.js.map} +1 -1
- package/.chunks/{widgetInput.vue_vue_type_script_setup_true_lang-TVpBXc9F.es.js → widgetInput.vue_vue_type_script_setup_true_lang-CSD2uMSW.es.js} +2 -2
- package/.chunks/{widgetInput.vue_vue_type_script_setup_true_lang-TVpBXc9F.es.js.map → widgetInput.vue_vue_type_script_setup_true_lang-CSD2uMSW.es.js.map} +1 -1
- package/.chunks/{widgetInput.vue_vue_type_script_setup_true_lang-BU-FdL6d.amd.js → widgetInput.vue_vue_type_script_setup_true_lang-D6SVtg2Q.amd.js} +2 -2
- package/.chunks/{widgetInput.vue_vue_type_script_setup_true_lang-BU-FdL6d.amd.js.map → widgetInput.vue_vue_type_script_setup_true_lang-D6SVtg2Q.amd.js.map} +1 -1
- package/assets/forms.css +1 -1
- package/charts/charts.amd.js +1 -1
- package/charts/charts.js +1 -1
- package/core/app.amd.js +1 -1
- package/core/app.js +5 -5
- 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 +362 -374
- package/formsExt/formsExt.js.map +1 -1
- 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 +4 -4
- 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/src/api/api/types/ext.d.ts +2 -2
- package/src/components/forms/button/types.d.ts +0 -6
- package/src/components/formsExt/libs/optionGroup/types.d.ts +1 -1
- package/src/components/formsExt/selector2/composables/useAPI.d.ts +2 -3
- package/src/components/formsExt/selector2/composables/useMenu.d.ts +1 -1
- package/src/components/formsExt/selector2/selector2.vue.d.ts +0 -2
- package/src/components/formsExt/selector2/types.d.ts +1 -18
- package/src/components/formsExt/selector2/utils.d.ts +0 -1
- package/src/components/popup/popup/opener.vue.d.ts +0 -1
- package/tabsView/tabsView.amd.js +1 -1
- package/tabsView/tabsView.js +2 -2
- package/utils/clipboard.amd.js +1 -1
- package/utils/clipboard.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/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/listItem.vue_vue_type_script_setup_true_lang--W1RouXP.es.js.map +0 -1
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DzV225TL.amd.js +0 -2
package/formsExt/formsExt.js
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
const fileNames = ['../assets/formsExt.css', '../assets/popupHint.css'].map(fileName => import.meta.resolve(fileName));
|
|
4
4
|
_autoloadCSSCore.insertCSSLinkToPage(fileNames, true);
|
|
5
5
|
|
|
6
|
-
import { defineComponent as
|
|
7
|
-
import { q as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { _ as
|
|
6
|
+
import { defineComponent as B, ref as C, computed as S, createElementBlock as b, openBlock as p, normalizeClass as E, createCommentVNode as k, createElementVNode as M, toDisplayString as w, createVNode as D, withKeys as N, withModifiers as O, createBlock as T, createSlots as j, withCtx as A, createTextVNode as _, watch as L, toRef as P, mergeProps as J, mergeModels as H, useModel as U, Fragment as R, renderList as q, renderSlot as G, resolveDirective as Z, unref as f, withDirectives as x, resolveDynamicComponent as ee } from "vue";
|
|
7
|
+
import { q as te, c as F, _ as oe, j as le, n as se, d as ae, u as re, C as X, r as ne } from "../.chunks/forms-BhbgRJ5I.es.js";
|
|
8
|
+
import { _ as ie, a as W } from "../.chunks/listItem.vue_vue_type_script_setup_true_lang-xvzbyqai.es.js";
|
|
9
|
+
import { _ as ue } from "../.chunks/widgetInput.vue_vue_type_script_setup_true_lang-CSD2uMSW.es.js";
|
|
10
10
|
/* empty css */
|
|
11
|
-
import { invertKeyboardLayout as
|
|
12
|
-
import { _ as
|
|
13
|
-
const
|
|
11
|
+
import { invertKeyboardLayout as de } from "../utils/keyboard.js";
|
|
12
|
+
import { _ as qe } from "../.chunks/menu.vue_vue_type_style_index_0_lang-dOeZ7an1.es.js";
|
|
13
|
+
const pe = { class: "top-editArea_footer" }, Me = /* @__PURE__ */ B({
|
|
14
14
|
__name: "editArea",
|
|
15
15
|
props: {
|
|
16
16
|
defaultValue: { default: "" },
|
|
@@ -35,85 +35,85 @@ const me = { class: "top-editArea_footer" }, Re = /* @__PURE__ */ C({
|
|
|
35
35
|
maxLength: {}
|
|
36
36
|
},
|
|
37
37
|
emits: ["submit", "close", "clickOnTitle"],
|
|
38
|
-
setup(
|
|
39
|
-
const t =
|
|
40
|
-
|
|
41
|
-
},
|
|
42
|
-
if (t.forceShowCloseBtn && !
|
|
43
|
-
|
|
38
|
+
setup(l, { emit: e }) {
|
|
39
|
+
const t = l, s = e, c = C(t.defaultValue), r = C(t.isFocused), a = S(() => c.value !== t.defaultValue), i = (u) => {
|
|
40
|
+
s("submit", u), c.value = t.defaultValue;
|
|
41
|
+
}, m = () => {
|
|
42
|
+
if (t.forceShowCloseBtn && !a.value) {
|
|
43
|
+
s("close");
|
|
44
44
|
return;
|
|
45
45
|
}
|
|
46
|
-
|
|
47
|
-
},
|
|
48
|
-
t.attachToKeyboard &&
|
|
46
|
+
c.value = t.defaultValue;
|
|
47
|
+
}, $ = () => {
|
|
48
|
+
t.attachToKeyboard && s("clickOnTitle");
|
|
49
49
|
};
|
|
50
|
-
return (
|
|
51
|
-
class:
|
|
50
|
+
return (u, v) => (p(), b("div", {
|
|
51
|
+
class: E({
|
|
52
52
|
"top-editArea": !0,
|
|
53
|
-
"top-editArea-attachedToKeyboard":
|
|
53
|
+
"top-editArea-attachedToKeyboard": u.attachToKeyboard
|
|
54
54
|
})
|
|
55
55
|
}, [
|
|
56
|
-
|
|
56
|
+
u.title ? (p(), b("div", {
|
|
57
57
|
key: 0,
|
|
58
58
|
class: "top-editArea_title",
|
|
59
|
-
onClick: v[0] || (v[0] = (
|
|
60
|
-
},
|
|
61
|
-
|
|
62
|
-
class:
|
|
59
|
+
onClick: v[0] || (v[0] = (I) => $())
|
|
60
|
+
}, w(u.title), 1)) : k("", !0),
|
|
61
|
+
M("div", {
|
|
62
|
+
class: E({
|
|
63
63
|
"top-editArea_form": !0,
|
|
64
64
|
"top-forms-focusable": !0,
|
|
65
65
|
"top-as-input": !0,
|
|
66
|
-
"top-error":
|
|
67
|
-
"top-focus":
|
|
66
|
+
"top-error": u.isError,
|
|
67
|
+
"top-focus": r.value
|
|
68
68
|
})
|
|
69
69
|
}, [
|
|
70
|
-
D(
|
|
71
|
-
modelValue:
|
|
72
|
-
"onUpdate:modelValue": v[1] || (v[1] = (
|
|
73
|
-
name:
|
|
74
|
-
placeholder:
|
|
75
|
-
rows:
|
|
76
|
-
minHeight:
|
|
77
|
-
expandable:
|
|
78
|
-
disabled:
|
|
79
|
-
readonly:
|
|
80
|
-
isError:
|
|
81
|
-
hint:
|
|
70
|
+
D(te, {
|
|
71
|
+
modelValue: c.value,
|
|
72
|
+
"onUpdate:modelValue": v[1] || (v[1] = (I) => c.value = I),
|
|
73
|
+
name: u.name,
|
|
74
|
+
placeholder: u.placeholder,
|
|
75
|
+
rows: u.rows,
|
|
76
|
+
minHeight: u.minHeight,
|
|
77
|
+
expandable: u.expandable,
|
|
78
|
+
disabled: u.disabled,
|
|
79
|
+
readonly: u.readonly,
|
|
80
|
+
isError: u.isError,
|
|
81
|
+
hint: u.hint,
|
|
82
82
|
class: "top-editArea_element",
|
|
83
|
-
onFocus: v[2] || (v[2] = () =>
|
|
84
|
-
onBlur: v[3] || (v[3] = () =>
|
|
83
|
+
onFocus: v[2] || (v[2] = () => r.value = !0),
|
|
84
|
+
onBlur: v[3] || (v[3] = () => r.value = !1),
|
|
85
85
|
onKeyup: [
|
|
86
|
-
|
|
87
|
-
v[4] || (v[4] =
|
|
86
|
+
N(m, ["esc"]),
|
|
87
|
+
v[4] || (v[4] = N(O((I) => i(c.value), ["ctrl"]), ["enter"]))
|
|
88
88
|
]
|
|
89
89
|
}, null, 8, ["modelValue", "name", "placeholder", "rows", "minHeight", "expandable", "disabled", "readonly", "isError", "hint"]),
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
M("div", pe, [
|
|
91
|
+
a.value || u.forceShowCloseBtn ? (p(), T(F, {
|
|
92
92
|
key: 0,
|
|
93
|
-
icon:
|
|
93
|
+
icon: u.$core.state.isMobile ? "" : "",
|
|
94
94
|
class: "top-editArea_button",
|
|
95
95
|
color: "theme",
|
|
96
96
|
styling: "soft",
|
|
97
|
-
onClick:
|
|
98
|
-
},
|
|
99
|
-
|
|
97
|
+
onClick: m
|
|
98
|
+
}, j({ _: 2 }, [
|
|
99
|
+
u.$core.state.isMobile ? void 0 : {
|
|
100
100
|
name: "default",
|
|
101
|
-
fn:
|
|
102
|
-
|
|
101
|
+
fn: A(() => [
|
|
102
|
+
_(w(u.cancelText), 1)
|
|
103
103
|
]),
|
|
104
104
|
key: "0"
|
|
105
105
|
}
|
|
106
106
|
]), 1032, ["icon"])) : k("", !0),
|
|
107
|
-
|
|
107
|
+
a.value ? (p(), T(F, {
|
|
108
108
|
key: 1,
|
|
109
109
|
class: "top-editArea_button",
|
|
110
|
-
icon:
|
|
111
|
-
onClick: v[5] || (v[5] = (
|
|
112
|
-
},
|
|
113
|
-
|
|
110
|
+
icon: u.$core.state.isMobile ? "" : "",
|
|
111
|
+
onClick: v[5] || (v[5] = (I) => i(c.value))
|
|
112
|
+
}, j({ _: 2 }, [
|
|
113
|
+
u.$core.state.isMobile ? void 0 : {
|
|
114
114
|
name: "default",
|
|
115
|
-
fn:
|
|
116
|
-
|
|
115
|
+
fn: A(() => [
|
|
116
|
+
_(w(u.submitText), 1)
|
|
117
117
|
]),
|
|
118
118
|
key: "0"
|
|
119
119
|
}
|
|
@@ -122,7 +122,7 @@ const me = { class: "top-editArea_footer" }, Re = /* @__PURE__ */ C({
|
|
|
122
122
|
], 2)
|
|
123
123
|
], 2));
|
|
124
124
|
}
|
|
125
|
-
}),
|
|
125
|
+
}), ce = { class: "top-editInput" }, ze = /* @__PURE__ */ B({
|
|
126
126
|
__name: "editInput",
|
|
127
127
|
props: {
|
|
128
128
|
modelValue: {},
|
|
@@ -130,31 +130,31 @@ const me = { class: "top-editArea_footer" }, Re = /* @__PURE__ */ C({
|
|
|
130
130
|
button: {}
|
|
131
131
|
},
|
|
132
132
|
emits: ["update:modelValue"],
|
|
133
|
-
setup(
|
|
134
|
-
const t =
|
|
135
|
-
|
|
136
|
-
|
|
133
|
+
setup(l, { emit: e }) {
|
|
134
|
+
const t = l, s = C(t.modelValue);
|
|
135
|
+
L(P(t.modelValue), () => {
|
|
136
|
+
s.value = t.modelValue;
|
|
137
137
|
});
|
|
138
|
-
const
|
|
139
|
-
|
|
138
|
+
const c = e, r = () => {
|
|
139
|
+
c("update:modelValue", s.value);
|
|
140
140
|
};
|
|
141
|
-
return (
|
|
142
|
-
D(
|
|
143
|
-
onKeydownCapture:
|
|
144
|
-
onKeydown:
|
|
145
|
-
modelValue:
|
|
146
|
-
"onUpdate:modelValue":
|
|
141
|
+
return (a, i) => (p(), b("div", ce, [
|
|
142
|
+
D(oe, J(a.input, {
|
|
143
|
+
onKeydownCapture: i[0] || (i[0] = N(O((m) => s.value = a.modelValue, ["stop"]), ["esc"])),
|
|
144
|
+
onKeydown: N(O(r, ["stop"]), ["enter"]),
|
|
145
|
+
modelValue: s.value,
|
|
146
|
+
"onUpdate:modelValue": i[1] || (i[1] = (m) => s.value = m)
|
|
147
147
|
}), null, 16, ["onKeydown", "modelValue"]),
|
|
148
|
-
|
|
148
|
+
s.value !== a.modelValue ? (p(), T(F, J({
|
|
149
149
|
key: 0,
|
|
150
150
|
icon: "",
|
|
151
151
|
styling: "soft"
|
|
152
|
-
},
|
|
152
|
+
}, a.button, { onClick: r }), null, 16)) : k("", !0)
|
|
153
153
|
]));
|
|
154
154
|
}
|
|
155
|
-
}),
|
|
155
|
+
}), Q = /* @__PURE__ */ B({
|
|
156
156
|
__name: "optionGroup",
|
|
157
|
-
props: /* @__PURE__ */
|
|
157
|
+
props: /* @__PURE__ */ H({
|
|
158
158
|
modelValue: {},
|
|
159
159
|
items: {},
|
|
160
160
|
size: { default: "s" },
|
|
@@ -167,72 +167,66 @@ const me = { class: "top-editArea_footer" }, Re = /* @__PURE__ */ C({
|
|
|
167
167
|
modelModifiers: {}
|
|
168
168
|
}),
|
|
169
169
|
emits: ["update:modelValue"],
|
|
170
|
-
setup(
|
|
171
|
-
const
|
|
172
|
-
|
|
173
|
-
var
|
|
174
|
-
const
|
|
175
|
-
Array.isArray(
|
|
170
|
+
setup(l) {
|
|
171
|
+
const e = U(l, "modelValue"), t = l, s = C(null);
|
|
172
|
+
L(e, () => {
|
|
173
|
+
var a, i;
|
|
174
|
+
const r = t.items.map((m) => m.value);
|
|
175
|
+
Array.isArray(e.value) ? e.value.find(($) => !r.includes($)) && (e.value = e.value.filter(($) => r.includes($))) : r.includes(e.value) || (e.value = r[0] ?? ""), (i = (a = s.value) == null ? void 0 : a.querySelector(".radioGroup_item-selected")) == null || i.scrollIntoView();
|
|
176
176
|
}, { immediate: !0 });
|
|
177
|
-
const
|
|
178
|
-
return (
|
|
177
|
+
const c = "optionGroup-" + Math.random();
|
|
178
|
+
return (r, a) => (p(), b("div", {
|
|
179
179
|
ref_key: "elRef",
|
|
180
|
-
ref:
|
|
181
|
-
class:
|
|
180
|
+
ref: s,
|
|
181
|
+
class: E({
|
|
182
182
|
"top-optionGroup": !0,
|
|
183
|
-
["top-optionGroup-showIndicator_" + Number(
|
|
183
|
+
["top-optionGroup-showIndicator_" + Number(r.showIndicator)]: !0,
|
|
184
184
|
"top-scrollBarXHidding": !0,
|
|
185
|
-
["top-size_" +
|
|
186
|
-
"top-error":
|
|
185
|
+
["top-size_" + r.size]: !!r.size,
|
|
186
|
+
"top-error": r.isError
|
|
187
187
|
})
|
|
188
188
|
}, [
|
|
189
|
-
Array.isArray(
|
|
190
|
-
class:
|
|
191
|
-
"top-optionGroup_item-selected":
|
|
189
|
+
Array.isArray(e.value) ? (p(!0), b(R, { key: 0 }, q(r.items, (i) => (p(), T(le, {
|
|
190
|
+
class: E({
|
|
191
|
+
"top-optionGroup_item-selected": e.value.includes(i.value),
|
|
192
192
|
"top-optionGroup_item": !0
|
|
193
193
|
}),
|
|
194
|
-
modelValue:
|
|
195
|
-
"onUpdate:modelValue":
|
|
196
|
-
value:
|
|
197
|
-
title:
|
|
198
|
-
disabled:
|
|
199
|
-
isError:
|
|
200
|
-
"data-top-icon":
|
|
201
|
-
},
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
]), 1032, ["class", "modelValue", "value", "title", "disabled", "isError", "data-top-icon"]))), 256)) : (u(!0), b(R, { key: 1 }, H(a.items, (r) => (u(), $(re, {
|
|
210
|
-
class: L({
|
|
211
|
-
"top-optionGroup_item-selected": r.value === o.value,
|
|
194
|
+
modelValue: e.value,
|
|
195
|
+
"onUpdate:modelValue": a[0] || (a[0] = (m) => e.value = m),
|
|
196
|
+
value: i.value,
|
|
197
|
+
title: i.title,
|
|
198
|
+
disabled: i.disabled,
|
|
199
|
+
isError: r.isError,
|
|
200
|
+
"data-top-icon": i.icon
|
|
201
|
+
}, {
|
|
202
|
+
default: A(() => [
|
|
203
|
+
_(w(i.label), 1)
|
|
204
|
+
]),
|
|
205
|
+
_: 2
|
|
206
|
+
}, 1032, ["class", "modelValue", "value", "title", "disabled", "isError", "data-top-icon"]))), 256)) : (p(!0), b(R, { key: 1 }, q(r.items, (i) => (p(), T(se, {
|
|
207
|
+
class: E({
|
|
208
|
+
"top-optionGroup_item-selected": i.value === e.value,
|
|
212
209
|
"top-optionGroup_item": !0
|
|
213
210
|
}),
|
|
214
|
-
modelValue:
|
|
215
|
-
"onUpdate:modelValue":
|
|
216
|
-
name:
|
|
217
|
-
value:
|
|
218
|
-
title:
|
|
219
|
-
disabled:
|
|
220
|
-
isError:
|
|
221
|
-
"data-top-icon":
|
|
222
|
-
},
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
key: "0"
|
|
229
|
-
} : void 0
|
|
230
|
-
]), 1032, ["class", "modelValue", "value", "title", "disabled", "isError", "data-top-icon"]))), 256))
|
|
211
|
+
modelValue: e.value,
|
|
212
|
+
"onUpdate:modelValue": a[1] || (a[1] = (m) => e.value = m),
|
|
213
|
+
name: c,
|
|
214
|
+
value: i.value,
|
|
215
|
+
title: i.title,
|
|
216
|
+
disabled: i.disabled,
|
|
217
|
+
isError: r.isError,
|
|
218
|
+
"data-top-icon": i.icon
|
|
219
|
+
}, {
|
|
220
|
+
default: A(() => [
|
|
221
|
+
_(w(i.label), 1)
|
|
222
|
+
]),
|
|
223
|
+
_: 2
|
|
224
|
+
}, 1032, ["class", "modelValue", "value", "title", "disabled", "isError", "data-top-icon"]))), 256))
|
|
231
225
|
], 2));
|
|
232
226
|
}
|
|
233
|
-
}),
|
|
227
|
+
}), Ke = /* @__PURE__ */ B({
|
|
234
228
|
__name: "radioGroup",
|
|
235
|
-
props: /* @__PURE__ */
|
|
229
|
+
props: /* @__PURE__ */ H({
|
|
236
230
|
modelValue: {},
|
|
237
231
|
items: {},
|
|
238
232
|
size: {},
|
|
@@ -245,26 +239,26 @@ const me = { class: "top-editArea_footer" }, Re = /* @__PURE__ */ C({
|
|
|
245
239
|
modelModifiers: {}
|
|
246
240
|
}),
|
|
247
241
|
emits: ["update:modelValue"],
|
|
248
|
-
setup(
|
|
249
|
-
const
|
|
250
|
-
return (t,
|
|
242
|
+
setup(l) {
|
|
243
|
+
const e = U(l, "modelValue");
|
|
244
|
+
return (t, s) => (p(), T(Q, {
|
|
251
245
|
class: "top-radioGroup",
|
|
252
|
-
modelValue:
|
|
253
|
-
"onUpdate:modelValue":
|
|
246
|
+
modelValue: e.value,
|
|
247
|
+
"onUpdate:modelValue": s[0] || (s[0] = (c) => e.value = c),
|
|
254
248
|
items: t.$props.items,
|
|
255
249
|
size: t.$props.size,
|
|
256
250
|
showIndicator: t.$props.showIndicator,
|
|
257
251
|
isError: t.$props.isError
|
|
258
252
|
}, {
|
|
259
|
-
default:
|
|
260
|
-
|
|
253
|
+
default: A(() => [
|
|
254
|
+
G(t.$slots, "default")
|
|
261
255
|
]),
|
|
262
256
|
_: 3
|
|
263
257
|
}, 8, ["modelValue", "items", "size", "showIndicator", "isError"]));
|
|
264
258
|
}
|
|
265
|
-
}),
|
|
259
|
+
}), Re = /* @__PURE__ */ B({
|
|
266
260
|
__name: "checkboxGroup",
|
|
267
|
-
props: /* @__PURE__ */
|
|
261
|
+
props: /* @__PURE__ */ H({
|
|
268
262
|
modelValue: {},
|
|
269
263
|
items: {},
|
|
270
264
|
size: {},
|
|
@@ -277,144 +271,140 @@ const me = { class: "top-editArea_footer" }, Re = /* @__PURE__ */ C({
|
|
|
277
271
|
modelModifiers: {}
|
|
278
272
|
}),
|
|
279
273
|
emits: ["update:modelValue"],
|
|
280
|
-
setup(
|
|
281
|
-
const
|
|
282
|
-
return (t,
|
|
274
|
+
setup(l) {
|
|
275
|
+
const e = U(l, "modelValue");
|
|
276
|
+
return (t, s) => (p(), T(Q, {
|
|
283
277
|
class: "top-checkboxGroup",
|
|
284
|
-
modelValue:
|
|
285
|
-
"onUpdate:modelValue":
|
|
278
|
+
modelValue: e.value,
|
|
279
|
+
"onUpdate:modelValue": s[0] || (s[0] = (c) => e.value = c),
|
|
286
280
|
items: t.$props.items,
|
|
287
281
|
size: t.$props.size,
|
|
288
282
|
showIndicator: t.$props.showIndicator,
|
|
289
283
|
isError: t.$props.isError
|
|
290
284
|
}, {
|
|
291
|
-
default:
|
|
292
|
-
|
|
285
|
+
default: A(() => [
|
|
286
|
+
G(t.$slots, "default")
|
|
293
287
|
]),
|
|
294
288
|
_: 3
|
|
295
289
|
}, 8, ["modelValue", "items", "size", "showIndicator", "isError"]));
|
|
296
290
|
}
|
|
297
|
-
}),
|
|
291
|
+
}), me = { class: "top-selector2_itemMulti top-ellipsis" }, fe = /* @__PURE__ */ B({
|
|
298
292
|
__name: "itemMulti",
|
|
299
293
|
props: {
|
|
300
294
|
id: {},
|
|
301
295
|
name: {}
|
|
302
296
|
},
|
|
303
297
|
emits: ["delete"],
|
|
304
|
-
setup(
|
|
305
|
-
return (
|
|
306
|
-
|
|
307
|
-
|
|
298
|
+
setup(l) {
|
|
299
|
+
return (e, t) => (p(), b("div", me, [
|
|
300
|
+
_(w(e.name) + " ", 1),
|
|
301
|
+
M("span", {
|
|
308
302
|
class: "top-selector2_itemMultiDelete",
|
|
309
303
|
"data-top-icon": "",
|
|
310
|
-
onClick: t[0] || (t[0] = (
|
|
311
|
-
onMousedown: t[1] || (t[1] =
|
|
304
|
+
onClick: t[0] || (t[0] = (s) => e.$emit("delete", e.id)),
|
|
305
|
+
onMousedown: t[1] || (t[1] = O(() => {
|
|
312
306
|
}, ["stop"]))
|
|
313
307
|
}, null, 32)
|
|
314
308
|
]));
|
|
315
309
|
}
|
|
316
|
-
}),
|
|
317
|
-
const
|
|
318
|
-
let
|
|
319
|
-
|
|
320
|
-
const
|
|
321
|
-
if (!
|
|
322
|
-
let
|
|
323
|
-
if (
|
|
324
|
-
|
|
325
|
-
const
|
|
326
|
-
if (
|
|
327
|
-
return
|
|
310
|
+
}), ve = (l, e, t, s) => {
|
|
311
|
+
const c = C([]), r = /* @__PURE__ */ new Map(), a = C(!1);
|
|
312
|
+
let i = "", m;
|
|
313
|
+
l && !l.params.limit && (l.params.limit = 100);
|
|
314
|
+
const $ = async () => {
|
|
315
|
+
if (!l) return;
|
|
316
|
+
let y;
|
|
317
|
+
if (s) {
|
|
318
|
+
y = JSON.stringify(l.params);
|
|
319
|
+
const o = r.get(y);
|
|
320
|
+
if (o)
|
|
321
|
+
return o;
|
|
328
322
|
}
|
|
329
|
-
|
|
330
|
-
const
|
|
331
|
-
if (
|
|
332
|
-
if (!Array.isArray(
|
|
323
|
+
a.value = !0;
|
|
324
|
+
const g = await l.call();
|
|
325
|
+
if (a.value = !1, g.errors) return;
|
|
326
|
+
if (!Array.isArray(g.result)) {
|
|
333
327
|
console.warn("Array expected in `res.result`");
|
|
334
328
|
return;
|
|
335
329
|
}
|
|
336
|
-
const
|
|
337
|
-
if (
|
|
338
|
-
console.warn(`В result[${
|
|
330
|
+
const z = g.result.findIndex((o) => o.id === void 0 || o.name === void 0);
|
|
331
|
+
if (z !== -1) {
|
|
332
|
+
console.warn(`В result[${z}] нет id или name`);
|
|
339
333
|
return;
|
|
340
334
|
}
|
|
341
|
-
return
|
|
342
|
-
},
|
|
343
|
-
if (!
|
|
344
|
-
if (
|
|
345
|
-
if (!
|
|
346
|
-
|
|
335
|
+
return y && r.set(y, g), g;
|
|
336
|
+
}, u = async (y) => {
|
|
337
|
+
if (!l) return;
|
|
338
|
+
if (y) {
|
|
339
|
+
if (!m || a.value) return;
|
|
340
|
+
l.params.offset = m;
|
|
347
341
|
} else
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
const
|
|
351
|
-
|
|
352
|
-
}, v =
|
|
342
|
+
l.params.offset = 0;
|
|
343
|
+
e == null || e(i);
|
|
344
|
+
const g = await $();
|
|
345
|
+
g && (m = g.nextOffset, y ? c.value = c.value.concat(g.result) : c.value = g.result);
|
|
346
|
+
}, v = ae(() => u(!1), 200);
|
|
353
347
|
return {
|
|
354
|
-
apiRequest:
|
|
355
|
-
items:
|
|
356
|
-
isLoading:
|
|
357
|
-
load:
|
|
358
|
-
setSearchTextAndLoad: (
|
|
359
|
-
|
|
348
|
+
apiRequest: l,
|
|
349
|
+
items: c,
|
|
350
|
+
isLoading: a,
|
|
351
|
+
load: u,
|
|
352
|
+
setSearchTextAndLoad: (y, g = !0) => {
|
|
353
|
+
l && (y.length < t || y === i && c.value.length || (i = y, g ? v() : u(!1)));
|
|
360
354
|
}
|
|
361
355
|
};
|
|
362
|
-
},
|
|
363
|
-
const
|
|
364
|
-
id:
|
|
365
|
-
name:
|
|
366
|
-
},
|
|
367
|
-
|
|
368
|
-
},
|
|
369
|
-
var
|
|
370
|
-
const
|
|
371
|
-
return !
|
|
372
|
-
}), y =
|
|
373
|
-
const
|
|
374
|
-
let
|
|
375
|
-
|
|
376
|
-
const
|
|
377
|
-
(
|
|
378
|
-
}),
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
};
|
|
383
|
-
n.items.value.length ? h.push(p) : h.unshift(p);
|
|
384
|
-
}
|
|
385
|
-
return l && (h = h.filter((p) => !Z(s.value, p))), h;
|
|
356
|
+
}, ye = 0, Y = (l, e, t = !0) => t && e.id === null ? Array.isArray(l) ? l.some((s) => s.id === e.id && s.name === e.name) : e.name === l.name : Array.isArray(l) ? l.some((s) => s.id === e.id) : e.id === l.id, he = (l, e, t, s, c, r, a, i) => {
|
|
357
|
+
const m = C(""), $ = {
|
|
358
|
+
id: ye,
|
|
359
|
+
name: re().Common.All
|
|
360
|
+
}, u = () => {
|
|
361
|
+
m.value = "", i.items.value = [];
|
|
362
|
+
}, v = () => !(!i.apiRequest || r.value !== "inline" || m.value.length >= a), I = S(() => {
|
|
363
|
+
var V;
|
|
364
|
+
const n = [];
|
|
365
|
+
return !t && s.value && n.push($), (V = e.value) == null || V.forEach((d) => n.push({ ...d })), n;
|
|
366
|
+
}), y = S(() => {
|
|
367
|
+
const n = m.value.toLowerCase(), V = de(n);
|
|
368
|
+
let d = [];
|
|
369
|
+
return I.value.forEach((h) => {
|
|
370
|
+
const K = h.name.toLowerCase();
|
|
371
|
+
(h.id === Number(n) || K.includes(n) || K.includes(V)) && (K === n || K === V ? d.unshift(h) : d.push(h));
|
|
372
|
+
}), d.push(...i.items.value), c.value && m.value && (!d.length || d[0].name.toLowerCase() !== n) && d.push({
|
|
373
|
+
id: null,
|
|
374
|
+
name: m.value
|
|
375
|
+
}), t && (d = d.filter((h) => !Y(l.value, h))), d;
|
|
386
376
|
});
|
|
387
377
|
return {
|
|
388
|
-
searchText:
|
|
389
|
-
resetSearch:
|
|
390
|
-
genIsShort:
|
|
391
|
-
items:
|
|
378
|
+
searchText: m,
|
|
379
|
+
resetSearch: u,
|
|
380
|
+
genIsShort: v,
|
|
381
|
+
items: I,
|
|
392
382
|
itemsForShow: y,
|
|
393
|
-
selectItem: (
|
|
394
|
-
|
|
383
|
+
selectItem: (n) => {
|
|
384
|
+
t && Array.isArray(l.value) ? Y(l.value, n) || (l.value = [...l.value, n]) : l.value = n;
|
|
395
385
|
},
|
|
396
386
|
selectNextItem: () => {
|
|
397
|
-
if (!Array.isArray(
|
|
398
|
-
const
|
|
399
|
-
|
|
387
|
+
if (!Array.isArray(l.value)) {
|
|
388
|
+
const V = (y.value.findIndex((d) => d.id === l.value.id) + 1) % y.value.length;
|
|
389
|
+
l.value = { ...y.value[V] };
|
|
400
390
|
}
|
|
401
391
|
},
|
|
402
|
-
deleteItemById: async (
|
|
403
|
-
Array.isArray(
|
|
392
|
+
deleteItemById: async (n) => {
|
|
393
|
+
Array.isArray(l.value) && (l.value = l.value.filter((V) => V.id !== n));
|
|
404
394
|
}
|
|
405
395
|
};
|
|
406
|
-
},
|
|
396
|
+
}, be = {
|
|
407
397
|
key: 0,
|
|
408
398
|
class: "top-selector2_activeItems"
|
|
409
|
-
},
|
|
399
|
+
}, ge = {
|
|
410
400
|
key: 1,
|
|
411
401
|
class: "top-selector2_activeName top-ellipsis"
|
|
412
|
-
},
|
|
402
|
+
}, Ve = {
|
|
413
403
|
key: 2,
|
|
414
404
|
class: "top-selector2_placeholder top-ellipsis"
|
|
415
|
-
},
|
|
405
|
+
}, De = /* @__PURE__ */ B({
|
|
416
406
|
__name: "selector2",
|
|
417
|
-
props: /* @__PURE__ */
|
|
407
|
+
props: /* @__PURE__ */ H({
|
|
418
408
|
modelValue: {},
|
|
419
409
|
items: { default: () => [] },
|
|
420
410
|
title: {},
|
|
@@ -422,7 +412,6 @@ const me = { class: "top-editArea_footer" }, Re = /* @__PURE__ */ C({
|
|
|
422
412
|
modificator: {},
|
|
423
413
|
size: { default: "s" },
|
|
424
414
|
isError: { type: Boolean },
|
|
425
|
-
openByFocus: { type: Boolean },
|
|
426
415
|
searchType: { default: "popup" },
|
|
427
416
|
placeholder: {},
|
|
428
417
|
api: {},
|
|
@@ -439,41 +428,40 @@ const me = { class: "top-editArea_footer" }, Re = /* @__PURE__ */ C({
|
|
|
439
428
|
modelValue: { required: !0 },
|
|
440
429
|
modelModifiers: {}
|
|
441
430
|
}),
|
|
442
|
-
emits:
|
|
443
|
-
setup(
|
|
444
|
-
const
|
|
431
|
+
emits: ["update:modelValue"],
|
|
432
|
+
setup(l) {
|
|
433
|
+
const e = l, t = U(l, "modelValue"), s = S(() => e.searchType === "inline" && e.multiselect || e.searchType === "inline" && X.state.isMobile ? "popup" : e.searchType);
|
|
445
434
|
let c = 0;
|
|
446
|
-
|
|
447
|
-
const r =
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
a,
|
|
435
|
+
s.value === "inline" && e.minLength && (c = e.minLength);
|
|
436
|
+
const r = ve(e.api, e.apiSetSearchParams, c, e.useCache), a = he(
|
|
437
|
+
t,
|
|
438
|
+
P(e, "items"),
|
|
439
|
+
e.multiselect,
|
|
440
|
+
P(e, "appendAllValue"),
|
|
441
|
+
P(e, "appendSearchToResult"),
|
|
442
|
+
s,
|
|
455
443
|
c,
|
|
456
444
|
r
|
|
457
|
-
),
|
|
458
|
-
var
|
|
459
|
-
return (
|
|
445
|
+
), i = S(() => e.buttonProps ? "TopButton" : s.value === "inline" ? "TopInput" : "div"), m = C(null), $ = () => {
|
|
446
|
+
var o;
|
|
447
|
+
return (o = m.value) == null ? void 0 : o.popup;
|
|
460
448
|
};
|
|
461
|
-
r.apiRequest &&
|
|
462
|
-
var
|
|
463
|
-
r.setSearchTextAndLoad(
|
|
464
|
-
}),
|
|
465
|
-
|
|
449
|
+
r.apiRequest && L(a.searchText, () => {
|
|
450
|
+
var o;
|
|
451
|
+
r.setSearchTextAndLoad(a.searchText.value), s.value === "inline" && a.genIsShort() && ((o = $()) == null || o.close());
|
|
452
|
+
}), L(t, () => {
|
|
453
|
+
s.value === "inline" && a.resetSearch();
|
|
466
454
|
});
|
|
467
|
-
const
|
|
468
|
-
var
|
|
469
|
-
return Array.isArray(
|
|
470
|
-
}),
|
|
471
|
-
var
|
|
472
|
-
let
|
|
473
|
-
switch (
|
|
455
|
+
const u = S(() => {
|
|
456
|
+
var o;
|
|
457
|
+
return Array.isArray(t.value) || e.multiselect || !e.selectedAsPlaceholder && s.value !== "inline" ? e.placeholder : ((o = t.value) == null ? void 0 : o.name) || e.placeholder;
|
|
458
|
+
}), v = (o) => {
|
|
459
|
+
var d, h;
|
|
460
|
+
let n = !1;
|
|
461
|
+
switch (o.key) {
|
|
474
462
|
case "Delete":
|
|
475
463
|
case "Backspace":
|
|
476
|
-
Array.isArray(
|
|
464
|
+
Array.isArray(t.value) && (o.preventDefault(), o.stopPropagation(), t.value.pop());
|
|
477
465
|
break;
|
|
478
466
|
case "ArrowUp":
|
|
479
467
|
case "ArrowRight":
|
|
@@ -481,146 +469,146 @@ const me = { class: "top-editArea_footer" }, Re = /* @__PURE__ */ C({
|
|
|
481
469
|
case "ArrowLeft":
|
|
482
470
|
case "Enter":
|
|
483
471
|
case " ":
|
|
484
|
-
|
|
472
|
+
n = !0;
|
|
485
473
|
break;
|
|
486
474
|
case "Escape":
|
|
487
|
-
|
|
475
|
+
s.value === "inline" && a.resetSearch();
|
|
488
476
|
break;
|
|
489
477
|
}
|
|
490
|
-
const
|
|
491
|
-
(
|
|
492
|
-
},
|
|
493
|
-
|
|
494
|
-
},
|
|
495
|
-
var
|
|
478
|
+
const V = o.key.length === 1 && !o.ctrlKey && !o.metaKey;
|
|
479
|
+
(s.value === "popup" || s.value === "inline") && V && (n = !0), (d = $()) != null && d.elPopup && (n = !1), n && (s.value === "popup" && (o.preventDefault(), o.stopPropagation(), V && (a.searchText.value || (a.searchText.value = o.key))), (h = o.currentTarget) == null || h.click());
|
|
480
|
+
}, I = (o) => {
|
|
481
|
+
o.preventDefault(), a.selectNextItem();
|
|
482
|
+
}, y = () => {
|
|
483
|
+
var o;
|
|
496
484
|
if (r.apiRequest) {
|
|
497
|
-
if (
|
|
498
|
-
(
|
|
485
|
+
if (a.genIsShort()) {
|
|
486
|
+
(o = $()) == null || o.close();
|
|
499
487
|
return;
|
|
500
488
|
}
|
|
501
|
-
r.setSearchTextAndLoad(
|
|
489
|
+
r.setSearchTextAndLoad(a.searchText.value, !1);
|
|
502
490
|
}
|
|
503
|
-
},
|
|
504
|
-
|
|
505
|
-
},
|
|
506
|
-
const
|
|
507
|
-
|
|
491
|
+
}, g = () => {
|
|
492
|
+
s.value && a.searchText.value && a.resetSearch();
|
|
493
|
+
}, z = (o) => {
|
|
494
|
+
const n = o.target;
|
|
495
|
+
n.scrollTop / (n.scrollHeight - n.offsetHeight) > 0.8 && r.load(!0);
|
|
508
496
|
};
|
|
509
|
-
return window.__STORYBOOK_PREVIEW__ && (
|
|
510
|
-
() =>
|
|
497
|
+
return window.__STORYBOOK_PREVIEW__ && (L(
|
|
498
|
+
() => e.multiselect,
|
|
511
499
|
() => {
|
|
512
|
-
|
|
500
|
+
e.multiselect ? Array.isArray(t.value) || (t.value = [
|
|
513
501
|
{
|
|
514
502
|
id: 1,
|
|
515
503
|
name: "Выбери меня"
|
|
516
504
|
}
|
|
517
|
-
]) : Array.isArray(
|
|
505
|
+
]) : Array.isArray(t.value) && (t.value = {
|
|
518
506
|
id: null,
|
|
519
507
|
name: ""
|
|
520
508
|
});
|
|
521
509
|
},
|
|
522
510
|
{ immediate: !0 }
|
|
523
|
-
),
|
|
524
|
-
() =>
|
|
511
|
+
), L(
|
|
512
|
+
() => e.searchType,
|
|
525
513
|
() => {
|
|
526
514
|
setTimeout(() => {
|
|
527
515
|
location.reload();
|
|
528
516
|
}, 500);
|
|
529
517
|
}
|
|
530
|
-
)), (
|
|
531
|
-
const
|
|
532
|
-
return
|
|
518
|
+
)), (o, n) => {
|
|
519
|
+
const V = Z("top-focus");
|
|
520
|
+
return p(), T(f(ie), {
|
|
533
521
|
ref_key: "popupRef",
|
|
534
|
-
ref:
|
|
535
|
-
onOpen:
|
|
536
|
-
onClose:
|
|
537
|
-
onScrollContentList:
|
|
538
|
-
notch:
|
|
522
|
+
ref: m,
|
|
523
|
+
onOpen: n[2] || (n[2] = (d) => y()),
|
|
524
|
+
onClose: n[3] || (n[3] = (d) => g()),
|
|
525
|
+
onScrollContentList: n[4] || (n[4] = (d) => f(r) ? z(d) : void 0),
|
|
526
|
+
notch: s.value !== "inline",
|
|
539
527
|
transitionDuration: 0,
|
|
540
|
-
openByFocus:
|
|
541
|
-
},
|
|
542
|
-
opener:
|
|
543
|
-
|
|
528
|
+
openByFocus: s.value === "inline"
|
|
529
|
+
}, j({
|
|
530
|
+
opener: A(() => [
|
|
531
|
+
x((p(), T(ee(i.value), J(o.buttonProps, {
|
|
544
532
|
ref: "subcomponentSelector",
|
|
545
533
|
class: {
|
|
546
534
|
"top-selector2": !0,
|
|
547
|
-
"top-selector2-multiselect":
|
|
548
|
-
["top-selector2-" +
|
|
549
|
-
"top-as-input": !
|
|
535
|
+
"top-selector2-multiselect": o.multiselect,
|
|
536
|
+
["top-selector2-" + o.modificator]: !!o.modificator,
|
|
537
|
+
"top-as-input": !o.buttonProps,
|
|
550
538
|
"top-as-selector": !0,
|
|
551
|
-
["top-size_" +
|
|
552
|
-
"top-disabled":
|
|
553
|
-
"top-forms-focusable": !
|
|
554
|
-
"top-error":
|
|
539
|
+
["top-size_" + o.size]: !0,
|
|
540
|
+
"top-disabled": o.disabled,
|
|
541
|
+
"top-forms-focusable": !o.disabled,
|
|
542
|
+
"top-error": o.isError
|
|
555
543
|
},
|
|
556
544
|
tabindex: "0",
|
|
557
|
-
onKeydown:
|
|
558
|
-
placeholder:
|
|
559
|
-
modelValue: f(
|
|
560
|
-
"onUpdate:modelValue":
|
|
545
|
+
onKeydown: v,
|
|
546
|
+
placeholder: u.value,
|
|
547
|
+
modelValue: f(a).searchText.value,
|
|
548
|
+
"onUpdate:modelValue": n[0] || (n[0] = (d) => f(a).searchText.value = d)
|
|
561
549
|
}), {
|
|
562
|
-
default:
|
|
563
|
-
|
|
564
|
-
(
|
|
565
|
-
id:
|
|
566
|
-
name:
|
|
567
|
-
onDelete: f(
|
|
550
|
+
default: A(() => [
|
|
551
|
+
o.multiselect ? (p(), b("div", be, [
|
|
552
|
+
(p(!0), b(R, null, q(t.value, (d) => (p(), T(fe, {
|
|
553
|
+
id: d.id,
|
|
554
|
+
name: d.name,
|
|
555
|
+
onDelete: f(a).deleteItemById
|
|
568
556
|
}, null, 8, ["id", "name", "onDelete"]))), 256))
|
|
569
557
|
])) : k("", !0),
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
558
|
+
s.value !== "inline" && !o.multiselect ? (p(), b("span", ge, w(Array.isArray(t.value) ? "" : t.value.name), 1)) : k("", !0),
|
|
559
|
+
o.multiselect && !t.value.length ? (p(), b("span", Ve, w(u.value), 1)) : k("", !0),
|
|
560
|
+
o.addChanger && !o.buttonProps && !o.multiselect && f(a).items.value.length > 1 && !o.disabled ? (p(), b("span", {
|
|
573
561
|
key: 3,
|
|
574
562
|
class: "top-changer top-changer-selector top-popup_widget",
|
|
575
|
-
onClick:
|
|
563
|
+
onClick: I
|
|
576
564
|
})) : k("", !0)
|
|
577
565
|
]),
|
|
578
566
|
_: 1
|
|
579
567
|
}, 16, ["class", "placeholder", "modelValue"])), [
|
|
580
568
|
[
|
|
581
|
-
|
|
582
|
-
|
|
569
|
+
V,
|
|
570
|
+
o.isError,
|
|
583
571
|
void 0,
|
|
584
572
|
{ onupdate: !0 }
|
|
585
573
|
]
|
|
586
574
|
])
|
|
587
575
|
]),
|
|
588
|
-
contentList:
|
|
589
|
-
var
|
|
576
|
+
contentList: A(() => {
|
|
577
|
+
var d;
|
|
590
578
|
return [
|
|
591
|
-
(
|
|
592
|
-
class:
|
|
593
|
-
"top-active": !Array.isArray(
|
|
579
|
+
(p(!0), b(R, null, q(f(a).itemsForShow.value, (h) => (p(), T(f(W), {
|
|
580
|
+
class: E({
|
|
581
|
+
"top-active": !Array.isArray(t.value) && !o.multiselect && t.value.id === h.id && t.value.name === h.name
|
|
594
582
|
}),
|
|
595
|
-
key:
|
|
596
|
-
closeByClick: !
|
|
597
|
-
onClick: (
|
|
583
|
+
key: h.id ?? void 0,
|
|
584
|
+
closeByClick: !o.multiselect || f(X).state.isMobile,
|
|
585
|
+
onClick: (K) => f(a).selectItem(h)
|
|
598
586
|
}, {
|
|
599
|
-
default:
|
|
600
|
-
|
|
587
|
+
default: A(() => [
|
|
588
|
+
o.$slots.item ? G(o.$slots, "item", {
|
|
601
589
|
key: 0,
|
|
602
|
-
item:
|
|
603
|
-
}) : (
|
|
604
|
-
|
|
590
|
+
item: h
|
|
591
|
+
}) : (p(), b(R, { key: 1 }, [
|
|
592
|
+
_(w(h.name), 1)
|
|
605
593
|
], 64))
|
|
606
594
|
]),
|
|
607
595
|
_: 2
|
|
608
596
|
}, 1032, ["class", "closeByClick", "onClick"]))), 128)),
|
|
609
|
-
!f(r).isLoading.value && !f(
|
|
597
|
+
!f(r).isLoading.value && !f(a).itemsForShow.value.length ? (p(), T(f(W), {
|
|
610
598
|
key: 0,
|
|
611
599
|
type: "regular"
|
|
612
600
|
}, {
|
|
613
|
-
default:
|
|
614
|
-
|
|
601
|
+
default: A(() => [
|
|
602
|
+
_(w(o.$i18n.Common.No_results), 1)
|
|
615
603
|
]),
|
|
616
604
|
_: 1
|
|
617
605
|
})) : k("", !0),
|
|
618
|
-
f(r).isLoading.value && (
|
|
606
|
+
f(r).isLoading.value && (o.searchType !== "popup" || (d = f(r).apiRequest) != null && d.params.offset) ? (p(), T(f(W), {
|
|
619
607
|
key: 1,
|
|
620
608
|
type: "regular"
|
|
621
609
|
}, {
|
|
622
|
-
default:
|
|
623
|
-
D(f(
|
|
610
|
+
default: A(() => [
|
|
611
|
+
D(f(ne), { type: "circles" })
|
|
624
612
|
]),
|
|
625
613
|
_: 1
|
|
626
614
|
})) : k("", !0)
|
|
@@ -628,18 +616,18 @@ const me = { class: "top-editArea_footer" }, Re = /* @__PURE__ */ C({
|
|
|
628
616
|
}),
|
|
629
617
|
_: 2
|
|
630
618
|
}, [
|
|
631
|
-
|
|
619
|
+
s.value === "popup" ? {
|
|
632
620
|
name: "widget",
|
|
633
|
-
fn:
|
|
634
|
-
var
|
|
621
|
+
fn: A(() => {
|
|
622
|
+
var d;
|
|
635
623
|
return [
|
|
636
|
-
D(f(
|
|
624
|
+
D(f(ue), {
|
|
637
625
|
title: "Поиск",
|
|
638
626
|
icon: "",
|
|
639
|
-
modelValue: f(
|
|
640
|
-
"onUpdate:modelValue":
|
|
641
|
-
isLoading: f(r).isLoading.value && !((
|
|
642
|
-
placeholder:
|
|
627
|
+
modelValue: f(a).searchText.value,
|
|
628
|
+
"onUpdate:modelValue": n[1] || (n[1] = (h) => f(a).searchText.value = h),
|
|
629
|
+
isLoading: f(r).isLoading.value && !((d = f(r).apiRequest) != null && d.params.offset),
|
|
630
|
+
placeholder: u.value
|
|
643
631
|
}, null, 8, ["modelValue", "isLoading", "placeholder"])
|
|
644
632
|
];
|
|
645
633
|
}),
|
|
@@ -648,37 +636,37 @@ const me = { class: "top-editArea_footer" }, Re = /* @__PURE__ */ C({
|
|
|
648
636
|
]), 1032, ["notch", "openByFocus"]);
|
|
649
637
|
};
|
|
650
638
|
}
|
|
651
|
-
}),
|
|
639
|
+
}), Ae = ["data-top-icon"], $e = { class: "top-info_text" }, Te = {
|
|
652
640
|
key: 0,
|
|
653
641
|
class: "top-info_value"
|
|
654
|
-
},
|
|
642
|
+
}, Ge = /* @__PURE__ */ B({
|
|
655
643
|
__name: "info",
|
|
656
644
|
props: {
|
|
657
645
|
icon: {},
|
|
658
646
|
styling: { default: "default" },
|
|
659
647
|
size: { default: "default" }
|
|
660
648
|
},
|
|
661
|
-
setup(
|
|
662
|
-
return (
|
|
663
|
-
class:
|
|
649
|
+
setup(l) {
|
|
650
|
+
return (e, t) => (p(), b("div", {
|
|
651
|
+
class: E({
|
|
664
652
|
"top-info": !0,
|
|
665
|
-
["top-size_" +
|
|
666
|
-
["top-info-styling_" +
|
|
653
|
+
["top-size_" + e.size]: !0,
|
|
654
|
+
["top-info-styling_" + e.styling]: !0
|
|
667
655
|
}),
|
|
668
|
-
"data-top-icon":
|
|
656
|
+
"data-top-icon": e.icon
|
|
669
657
|
}, [
|
|
670
|
-
|
|
671
|
-
|
|
658
|
+
M("div", $e, [
|
|
659
|
+
G(e.$slots, "default")
|
|
672
660
|
]),
|
|
673
|
-
|
|
674
|
-
|
|
661
|
+
e.$slots.additional ? (p(), b("span", Te, [
|
|
662
|
+
G(e.$slots, "additional")
|
|
675
663
|
])) : k("", !0)
|
|
676
|
-
], 10,
|
|
664
|
+
], 10, Ae));
|
|
677
665
|
}
|
|
678
|
-
}),
|
|
666
|
+
}), ke = {
|
|
679
667
|
key: 0,
|
|
680
668
|
class: "top-policy"
|
|
681
|
-
},
|
|
669
|
+
}, we = { class: "top-policy_title" }, Ie = ["innerHTML"], Pe = /* @__PURE__ */ B({
|
|
682
670
|
__name: "policy",
|
|
683
671
|
props: {
|
|
684
672
|
title: {},
|
|
@@ -686,22 +674,22 @@ const me = { class: "top-editArea_footer" }, Re = /* @__PURE__ */ C({
|
|
|
686
674
|
acceptText: {}
|
|
687
675
|
},
|
|
688
676
|
emits: ["accept"],
|
|
689
|
-
setup(
|
|
690
|
-
const t =
|
|
691
|
-
|
|
677
|
+
setup(l, { emit: e }) {
|
|
678
|
+
const t = e, s = C(!0), c = () => {
|
|
679
|
+
s.value = !1, t("accept");
|
|
692
680
|
};
|
|
693
|
-
return (
|
|
694
|
-
|
|
695
|
-
|
|
681
|
+
return (r, a) => s.value ? (p(), b("div", ke, [
|
|
682
|
+
M("div", we, w(r.title), 1),
|
|
683
|
+
M("div", {
|
|
696
684
|
class: "top-policy_description",
|
|
697
|
-
innerHTML:
|
|
698
|
-
}, null, 8,
|
|
699
|
-
D(f(
|
|
685
|
+
innerHTML: r.description
|
|
686
|
+
}, null, 8, Ie),
|
|
687
|
+
D(f(F), {
|
|
700
688
|
size: "m",
|
|
701
|
-
onClick:
|
|
689
|
+
onClick: c
|
|
702
690
|
}, {
|
|
703
|
-
default:
|
|
704
|
-
|
|
691
|
+
default: A(() => [
|
|
692
|
+
_(w(r.acceptText), 1)
|
|
705
693
|
]),
|
|
706
694
|
_: 1
|
|
707
695
|
})
|
|
@@ -709,13 +697,13 @@ const me = { class: "top-editArea_footer" }, Re = /* @__PURE__ */ C({
|
|
|
709
697
|
}
|
|
710
698
|
});
|
|
711
699
|
export {
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
700
|
+
Re as TopCheckboxGroup,
|
|
701
|
+
Me as TopEditArea,
|
|
702
|
+
ze as TopEditInput,
|
|
703
|
+
Ge as TopInfo,
|
|
704
|
+
qe as TopMenu,
|
|
705
|
+
Pe as TopPolicy,
|
|
706
|
+
Ke as TopRadioGroup,
|
|
707
|
+
De as TopSelector2
|
|
720
708
|
};
|
|
721
709
|
//# sourceMappingURL=formsExt.js.map
|