@topvisor/ui 1.3.5-4 → 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-BS_ygt0h.amd.js → core-DcLw0dEO.amd.js} +2 -2
- package/.chunks/{core-BS_ygt0h.amd.js.map → core-DcLw0dEO.amd.js.map} +1 -1
- package/.chunks/{core-DF7fuQev.es.js → core-DpTLGhiK.es.js} +4 -4
- package/.chunks/{core-DF7fuQev.es.js.map → core-DpTLGhiK.es.js.map} +1 -1
- package/.chunks/{datepicker-BYLW8X5k.amd.js → datepicker-Bq_z2paN.amd.js} +2 -2
- package/.chunks/{datepicker-BYLW8X5k.amd.js.map → datepicker-Bq_z2paN.amd.js.map} +1 -1
- package/.chunks/{datepicker-BVIBaChw.es.js → datepicker-CGGp0VnN.es.js} +2 -2
- package/.chunks/{datepicker-BVIBaChw.es.js.map → datepicker-CGGp0VnN.es.js.map} +1 -1
- package/.chunks/{dialog_selectorRegions-D5DOxBQO.es.js → dialog_selectorRegions-BtAADQHf.es.js} +4 -4
- package/.chunks/{dialog_selectorRegions-D5DOxBQO.es.js.map → dialog_selectorRegions-BtAADQHf.es.js.map} +1 -1
- package/.chunks/{dialog_selectorRegions-CaR2-Qo2.amd.js → dialog_selectorRegions-DCrHvHDs.amd.js} +2 -2
- package/.chunks/{dialog_selectorRegions-CaR2-Qo2.amd.js.map → dialog_selectorRegions-DCrHvHDs.amd.js.map} +1 -1
- package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-B5rYBKgA.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-B5rYBKgA.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-CPByl0SB.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-CPByl0SB.es.js.map → dialogs.vue_vue_type_script_setup_true_lang-DCVIoEeY.es.js.map} +1 -1
- package/.chunks/{forms-BrdvrjiZ.es.js → forms-BhbgRJ5I.es.js} +5 -5
- package/.chunks/{forms-BrdvrjiZ.es.js.map → forms-BhbgRJ5I.es.js.map} +1 -1
- package/.chunks/{forms-CzUjrBXG.amd.js → forms-CNcrvkYD.amd.js} +3 -3
- package/.chunks/{forms-CzUjrBXG.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-xvzbyqai.es.js +196 -0
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-xvzbyqai.es.js.map +1 -0
- package/.chunks/{menu.vue_vue_type_style_index_0_lang-jnHbXDIR.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-jnHbXDIR.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-BNr8VcFM.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-BNr8VcFM.es.js.map → menu.vue_vue_type_style_index_0_lang-dOeZ7an1.es.js.map} +1 -1
- package/.chunks/{notice-CzWMWg_D.amd.js → notice-BpLsm6Zh.amd.js} +2 -2
- package/.chunks/{notice-CzWMWg_D.amd.js.map → notice-BpLsm6Zh.amd.js.map} +1 -1
- package/.chunks/{notice-BPgkjMG1.es.js → notice-CpPhDTUb.es.js} +2 -2
- package/.chunks/{notice-BPgkjMG1.es.js.map → notice-CpPhDTUb.es.js.map} +1 -1
- package/.chunks/opener.vue_vue_type_script_setup_true_lang-DRzrTv7Q.es.js +36 -0
- package/.chunks/opener.vue_vue_type_script_setup_true_lang-DRzrTv7Q.es.js.map +1 -0
- package/.chunks/opener.vue_vue_type_script_setup_true_lang-gNZhYkDf.amd.js +2 -0
- package/.chunks/opener.vue_vue_type_script_setup_true_lang-gNZhYkDf.amd.js.map +1 -0
- package/.chunks/{page.vue_vue_type_script_setup_true_lang-XMwkQHNU.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-XMwkQHNU.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-C-BJRiFc.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-C-BJRiFc.amd.js.map → page.vue_vue_type_script_setup_true_lang-B-1LEQAz.amd.js.map} +1 -1
- package/.chunks/{popup-do4HUI7u.es.js → popup-BJj9BJP5.es.js} +116 -90
- package/.chunks/popup-BJj9BJP5.es.js.map +1 -0
- package/.chunks/popup-CfXISjhC.amd.js +2 -0
- package/.chunks/popup-CfXISjhC.amd.js.map +1 -0
- package/.chunks/{utils-BgVG2kmp.amd.js → utils-5uxIj2CI.amd.js} +2 -2
- package/.chunks/{utils-BgVG2kmp.amd.js.map → utils-5uxIj2CI.amd.js.map} +1 -1
- package/.chunks/{utils-BqT8hS8L.amd.js → utils-Bg_su8b-.amd.js} +2 -2
- package/.chunks/{utils-BqT8hS8L.amd.js.map → utils-Bg_su8b-.amd.js.map} +1 -1
- package/.chunks/{utils-B6aJagiK.es.js → utils-D58EUoHa.es.js} +3 -3
- package/.chunks/{utils-B6aJagiK.es.js.map → utils-D58EUoHa.es.js.map} +1 -1
- package/.chunks/{utils-DyhMNhnz.es.js → utils-UBgfsQ8v.es.js} +2 -2
- package/.chunks/{utils-DyhMNhnz.es.js.map → utils-UBgfsQ8v.es.js.map} +1 -1
- package/.chunks/{widgetInput.vue_vue_type_script_setup_true_lang-Bo064qPK.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-Bo064qPK.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-CVsiIZz5.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-CVsiIZz5.amd.js.map → widgetInput.vue_vue_type_script_setup_true_lang-D6SVtg2Q.amd.js.map} +1 -1
- package/assets/listItem.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 +280 -293
- 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.amd.js.map +1 -1
- package/popup/popup.js +39 -34
- package/popup/popup.js.map +1 -1
- package/popup/worker.amd.js +1 -1
- package/popup/worker.amd.js.map +1 -1
- package/popup/worker.js +24 -20
- package/popup/worker.js.map +1 -1
- package/project/project.amd.js +1 -1
- package/project/project.amd.js.map +1 -1
- package/project/project.js +26 -25
- package/project/project.js.map +1 -1
- package/src/components/forms/input/input.vue.d.ts +1 -1
- package/src/components/forms/input/types.d.ts +1 -1
- package/src/components/forms/inputDate/inputDate.vue.d.ts +1 -1
- package/src/components/popup/lib/popup.d.ts +14 -2
- package/src/components/popup/lib/worker.d.ts +1 -1
- package/src/components/popup/popup/opener/opener.vue.d.ts +17 -0
- package/src/components/popup/popup/opener/types.d.ts +51 -0
- package/src/components/popup/popup/opener.vue.d.ts +0 -1
- package/src/components/popup/popup/types.d.ts +1 -45
- package/src/components/project/tagSelector/utils/el.d.ts +1 -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-DZ6ExJKC.es.js +0 -192
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DZ6ExJKC.es.js.map +0 -1
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-_sniT1lq.amd.js +0 -2
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-_sniT1lq.amd.js.map +0 -1
- package/.chunks/popup-UOJ-t8-v.amd.js +0 -2
- package/.chunks/popup-UOJ-t8-v.amd.js.map +0 -1
- package/.chunks/popup-do4HUI7u.es.js.map +0 -1
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: "" },
|
|
@@ -36,30 +36,30 @@ const ce = { class: "top-editArea_footer" }, Ke = /* @__PURE__ */ E({
|
|
|
36
36
|
},
|
|
37
37
|
emits: ["submit", "close", "clickOnTitle"],
|
|
38
38
|
setup(l, { emit: e }) {
|
|
39
|
-
const
|
|
40
|
-
s("submit", u),
|
|
41
|
-
},
|
|
42
|
-
if (
|
|
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
43
|
s("close");
|
|
44
44
|
return;
|
|
45
45
|
}
|
|
46
|
-
|
|
47
|
-
},
|
|
48
|
-
|
|
46
|
+
c.value = t.defaultValue;
|
|
47
|
+
}, $ = () => {
|
|
48
|
+
t.attachToKeyboard && s("clickOnTitle");
|
|
49
49
|
};
|
|
50
|
-
return (u, v) => (
|
|
51
|
-
class:
|
|
50
|
+
return (u, v) => (p(), b("div", {
|
|
51
|
+
class: E({
|
|
52
52
|
"top-editArea": !0,
|
|
53
53
|
"top-editArea-attachedToKeyboard": u.attachToKeyboard
|
|
54
54
|
})
|
|
55
55
|
}, [
|
|
56
|
-
u.title ? (
|
|
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,
|
|
@@ -67,9 +67,9 @@ const ce = { class: "top-editArea_footer" }, Ke = /* @__PURE__ */ E({
|
|
|
67
67
|
"top-focus": r.value
|
|
68
68
|
})
|
|
69
69
|
}, [
|
|
70
|
-
|
|
71
|
-
modelValue:
|
|
72
|
-
"onUpdate:modelValue": v[1] || (v[1] = (
|
|
70
|
+
D(te, {
|
|
71
|
+
modelValue: c.value,
|
|
72
|
+
"onUpdate:modelValue": v[1] || (v[1] = (I) => c.value = I),
|
|
73
73
|
name: u.name,
|
|
74
74
|
placeholder: u.placeholder,
|
|
75
75
|
rows: u.rows,
|
|
@@ -83,46 +83,46 @@ const ce = { class: "top-editArea_footer" }, Ke = /* @__PURE__ */ E({
|
|
|
83
83
|
onFocus: v[2] || (v[2] = () => r.value = !0),
|
|
84
84
|
onBlur: v[3] || (v[3] = () => r.value = !1),
|
|
85
85
|
onKeyup: [
|
|
86
|
-
N(
|
|
87
|
-
v[4] || (v[4] = N(
|
|
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
|
-
a.value || u.forceShowCloseBtn ? (
|
|
90
|
+
M("div", pe, [
|
|
91
|
+
a.value || u.forceShowCloseBtn ? (p(), T(F, {
|
|
92
92
|
key: 0,
|
|
93
93
|
icon: u.$core.state.isMobile ? "" : "",
|
|
94
94
|
class: "top-editArea_button",
|
|
95
95
|
color: "theme",
|
|
96
96
|
styling: "soft",
|
|
97
|
-
onClick:
|
|
98
|
-
},
|
|
97
|
+
onClick: m
|
|
98
|
+
}, j({ _: 2 }, [
|
|
99
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
|
-
]), 1032, ["icon"])) :
|
|
107
|
-
a.value ? (
|
|
106
|
+
]), 1032, ["icon"])) : k("", !0),
|
|
107
|
+
a.value ? (p(), T(F, {
|
|
108
108
|
key: 1,
|
|
109
109
|
class: "top-editArea_button",
|
|
110
110
|
icon: u.$core.state.isMobile ? "" : "",
|
|
111
|
-
onClick: v[5] || (v[5] = (
|
|
112
|
-
},
|
|
111
|
+
onClick: v[5] || (v[5] = (I) => i(c.value))
|
|
112
|
+
}, j({ _: 2 }, [
|
|
113
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
|
}
|
|
120
|
-
]), 1032, ["icon"])) :
|
|
120
|
+
]), 1032, ["icon"])) : k("", !0)
|
|
121
121
|
])
|
|
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: {},
|
|
@@ -131,30 +131,30 @@ const ce = { class: "top-editArea_footer" }, Ke = /* @__PURE__ */ E({
|
|
|
131
131
|
},
|
|
132
132
|
emits: ["update:modelValue"],
|
|
133
133
|
setup(l, { emit: e }) {
|
|
134
|
-
const
|
|
135
|
-
|
|
136
|
-
s.value =
|
|
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 (a, i) => (
|
|
142
|
-
|
|
143
|
-
onKeydownCapture: i[0] || (i[0] = N(
|
|
144
|
-
onKeydown: N(
|
|
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
145
|
modelValue: s.value,
|
|
146
|
-
"onUpdate:modelValue": i[1] || (i[1] = (
|
|
146
|
+
"onUpdate:modelValue": i[1] || (i[1] = (m) => s.value = m)
|
|
147
147
|
}), null, 16, ["onKeydown", "modelValue"]),
|
|
148
|
-
s.value !== a.modelValue ? (
|
|
148
|
+
s.value !== a.modelValue ? (p(), T(F, J({
|
|
149
149
|
key: 0,
|
|
150
150
|
icon: "",
|
|
151
151
|
styling: "soft"
|
|
152
|
-
}, a.button, { onClick: r }), null, 16)) :
|
|
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" },
|
|
@@ -168,17 +168,17 @@ const ce = { class: "top-editArea_footer" }, Ke = /* @__PURE__ */ E({
|
|
|
168
168
|
}),
|
|
169
169
|
emits: ["update:modelValue"],
|
|
170
170
|
setup(l) {
|
|
171
|
-
const e =
|
|
172
|
-
|
|
171
|
+
const e = U(l, "modelValue"), t = l, s = C(null);
|
|
172
|
+
L(e, () => {
|
|
173
173
|
var a, i;
|
|
174
|
-
const r =
|
|
175
|
-
Array.isArray(e.value) ? e.value.find((
|
|
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 (r, a) => (
|
|
177
|
+
const c = "optionGroup-" + Math.random();
|
|
178
|
+
return (r, a) => (p(), b("div", {
|
|
179
179
|
ref_key: "elRef",
|
|
180
180
|
ref: s,
|
|
181
|
-
class:
|
|
181
|
+
class: E({
|
|
182
182
|
"top-optionGroup": !0,
|
|
183
183
|
["top-optionGroup-showIndicator_" + Number(r.showIndicator)]: !0,
|
|
184
184
|
"top-scrollBarXHidding": !0,
|
|
@@ -186,47 +186,47 @@ const ce = { class: "top-editArea_footer" }, Ke = /* @__PURE__ */ E({
|
|
|
186
186
|
"top-error": r.isError
|
|
187
187
|
})
|
|
188
188
|
}, [
|
|
189
|
-
Array.isArray(e.value) ? (
|
|
190
|
-
class:
|
|
189
|
+
Array.isArray(e.value) ? (p(!0), b(R, { key: 0 }, q(r.items, (i) => (p(), T(le, {
|
|
190
|
+
class: E({
|
|
191
191
|
"top-optionGroup_item-selected": e.value.includes(i.value),
|
|
192
192
|
"top-optionGroup_item": !0
|
|
193
193
|
}),
|
|
194
194
|
modelValue: e.value,
|
|
195
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
195
|
+
"onUpdate:modelValue": a[0] || (a[0] = (m) => e.value = m),
|
|
196
196
|
value: i.value,
|
|
197
197
|
title: i.title,
|
|
198
198
|
disabled: i.disabled,
|
|
199
199
|
isError: r.isError,
|
|
200
200
|
"data-top-icon": i.icon
|
|
201
201
|
}, {
|
|
202
|
-
default:
|
|
203
|
-
|
|
202
|
+
default: A(() => [
|
|
203
|
+
_(w(i.label), 1)
|
|
204
204
|
]),
|
|
205
205
|
_: 2
|
|
206
|
-
}, 1032, ["class", "modelValue", "value", "title", "disabled", "isError", "data-top-icon"]))), 256)) : (
|
|
207
|
-
class:
|
|
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
208
|
"top-optionGroup_item-selected": i.value === e.value,
|
|
209
209
|
"top-optionGroup_item": !0
|
|
210
210
|
}),
|
|
211
211
|
modelValue: e.value,
|
|
212
|
-
"onUpdate:modelValue": a[1] || (a[1] = (
|
|
213
|
-
name:
|
|
212
|
+
"onUpdate:modelValue": a[1] || (a[1] = (m) => e.value = m),
|
|
213
|
+
name: c,
|
|
214
214
|
value: i.value,
|
|
215
215
|
title: i.title,
|
|
216
216
|
disabled: i.disabled,
|
|
217
217
|
isError: r.isError,
|
|
218
218
|
"data-top-icon": i.icon
|
|
219
219
|
}, {
|
|
220
|
-
default:
|
|
221
|
-
|
|
220
|
+
default: A(() => [
|
|
221
|
+
_(w(i.label), 1)
|
|
222
222
|
]),
|
|
223
223
|
_: 2
|
|
224
224
|
}, 1032, ["class", "modelValue", "value", "title", "disabled", "isError", "data-top-icon"]))), 256))
|
|
225
225
|
], 2));
|
|
226
226
|
}
|
|
227
|
-
}),
|
|
227
|
+
}), Ke = /* @__PURE__ */ B({
|
|
228
228
|
__name: "radioGroup",
|
|
229
|
-
props: /* @__PURE__ */
|
|
229
|
+
props: /* @__PURE__ */ H({
|
|
230
230
|
modelValue: {},
|
|
231
231
|
items: {},
|
|
232
232
|
size: {},
|
|
@@ -240,25 +240,25 @@ const ce = { class: "top-editArea_footer" }, Ke = /* @__PURE__ */ E({
|
|
|
240
240
|
}),
|
|
241
241
|
emits: ["update:modelValue"],
|
|
242
242
|
setup(l) {
|
|
243
|
-
const e =
|
|
244
|
-
return (
|
|
243
|
+
const e = U(l, "modelValue");
|
|
244
|
+
return (t, s) => (p(), T(Q, {
|
|
245
245
|
class: "top-radioGroup",
|
|
246
246
|
modelValue: e.value,
|
|
247
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
248
|
-
items:
|
|
249
|
-
size:
|
|
250
|
-
showIndicator:
|
|
251
|
-
isError:
|
|
247
|
+
"onUpdate:modelValue": s[0] || (s[0] = (c) => e.value = c),
|
|
248
|
+
items: t.$props.items,
|
|
249
|
+
size: t.$props.size,
|
|
250
|
+
showIndicator: t.$props.showIndicator,
|
|
251
|
+
isError: t.$props.isError
|
|
252
252
|
}, {
|
|
253
|
-
default:
|
|
254
|
-
|
|
253
|
+
default: A(() => [
|
|
254
|
+
G(t.$slots, "default")
|
|
255
255
|
]),
|
|
256
256
|
_: 3
|
|
257
257
|
}, 8, ["modelValue", "items", "size", "showIndicator", "isError"]));
|
|
258
258
|
}
|
|
259
|
-
}),
|
|
259
|
+
}), Re = /* @__PURE__ */ B({
|
|
260
260
|
__name: "checkboxGroup",
|
|
261
|
-
props: /* @__PURE__ */
|
|
261
|
+
props: /* @__PURE__ */ H({
|
|
262
262
|
modelValue: {},
|
|
263
263
|
items: {},
|
|
264
264
|
size: {},
|
|
@@ -272,23 +272,23 @@ const ce = { class: "top-editArea_footer" }, Ke = /* @__PURE__ */ E({
|
|
|
272
272
|
}),
|
|
273
273
|
emits: ["update:modelValue"],
|
|
274
274
|
setup(l) {
|
|
275
|
-
const e =
|
|
276
|
-
return (
|
|
275
|
+
const e = U(l, "modelValue");
|
|
276
|
+
return (t, s) => (p(), T(Q, {
|
|
277
277
|
class: "top-checkboxGroup",
|
|
278
278
|
modelValue: e.value,
|
|
279
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
280
|
-
items:
|
|
281
|
-
size:
|
|
282
|
-
showIndicator:
|
|
283
|
-
isError:
|
|
279
|
+
"onUpdate:modelValue": s[0] || (s[0] = (c) => e.value = c),
|
|
280
|
+
items: t.$props.items,
|
|
281
|
+
size: t.$props.size,
|
|
282
|
+
showIndicator: t.$props.showIndicator,
|
|
283
|
+
isError: t.$props.isError
|
|
284
284
|
}, {
|
|
285
|
-
default:
|
|
286
|
-
|
|
285
|
+
default: A(() => [
|
|
286
|
+
G(t.$slots, "default")
|
|
287
287
|
]),
|
|
288
288
|
_: 3
|
|
289
289
|
}, 8, ["modelValue", "items", "size", "showIndicator", "isError"]));
|
|
290
290
|
}
|
|
291
|
-
}),
|
|
291
|
+
}), me = { class: "top-selector2_itemMulti top-ellipsis" }, fe = /* @__PURE__ */ B({
|
|
292
292
|
__name: "itemMulti",
|
|
293
293
|
props: {
|
|
294
294
|
id: {},
|
|
@@ -296,29 +296,29 @@ const ce = { class: "top-editArea_footer" }, Ke = /* @__PURE__ */ E({
|
|
|
296
296
|
},
|
|
297
297
|
emits: ["delete"],
|
|
298
298
|
setup(l) {
|
|
299
|
-
return (e,
|
|
300
|
-
|
|
301
|
-
|
|
299
|
+
return (e, t) => (p(), b("div", me, [
|
|
300
|
+
_(w(e.name) + " ", 1),
|
|
301
|
+
M("span", {
|
|
302
302
|
class: "top-selector2_itemMultiDelete",
|
|
303
303
|
"data-top-icon": "",
|
|
304
|
-
onClick:
|
|
305
|
-
onMousedown:
|
|
304
|
+
onClick: t[0] || (t[0] = (s) => e.$emit("delete", e.id)),
|
|
305
|
+
onMousedown: t[1] || (t[1] = O(() => {
|
|
306
306
|
}, ["stop"]))
|
|
307
307
|
}, null, 32)
|
|
308
308
|
]));
|
|
309
309
|
}
|
|
310
|
-
}),
|
|
311
|
-
const
|
|
312
|
-
let i = "",
|
|
310
|
+
}), ve = (l, e, t, s) => {
|
|
311
|
+
const c = C([]), r = /* @__PURE__ */ new Map(), a = C(!1);
|
|
312
|
+
let i = "", m;
|
|
313
313
|
l && !l.params.limit && (l.params.limit = 100);
|
|
314
|
-
const
|
|
314
|
+
const $ = async () => {
|
|
315
315
|
if (!l) return;
|
|
316
316
|
let y;
|
|
317
317
|
if (s) {
|
|
318
318
|
y = JSON.stringify(l.params);
|
|
319
|
-
const
|
|
320
|
-
if (
|
|
321
|
-
return
|
|
319
|
+
const o = r.get(y);
|
|
320
|
+
if (o)
|
|
321
|
+
return o;
|
|
322
322
|
}
|
|
323
323
|
a.value = !0;
|
|
324
324
|
const g = await l.call();
|
|
@@ -327,84 +327,84 @@ const ce = { class: "top-editArea_footer" }, Ke = /* @__PURE__ */ E({
|
|
|
327
327
|
console.warn("Array expected in `res.result`");
|
|
328
328
|
return;
|
|
329
329
|
}
|
|
330
|
-
const
|
|
331
|
-
if (
|
|
332
|
-
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`);
|
|
333
333
|
return;
|
|
334
334
|
}
|
|
335
335
|
return y && r.set(y, g), g;
|
|
336
336
|
}, u = async (y) => {
|
|
337
337
|
if (!l) return;
|
|
338
338
|
if (y) {
|
|
339
|
-
if (!
|
|
340
|
-
l.params.offset =
|
|
339
|
+
if (!m || a.value) return;
|
|
340
|
+
l.params.offset = m;
|
|
341
341
|
} else
|
|
342
342
|
l.params.offset = 0;
|
|
343
343
|
e == null || e(i);
|
|
344
|
-
const g = await
|
|
345
|
-
g && (
|
|
346
|
-
}, v =
|
|
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);
|
|
347
347
|
return {
|
|
348
348
|
apiRequest: l,
|
|
349
|
-
items:
|
|
349
|
+
items: c,
|
|
350
350
|
isLoading: a,
|
|
351
351
|
load: u,
|
|
352
352
|
setSearchTextAndLoad: (y, g = !0) => {
|
|
353
|
-
l && (y.length <
|
|
353
|
+
l && (y.length < t || y === i && c.value.length || (i = y, g ? v() : u(!1)));
|
|
354
354
|
}
|
|
355
355
|
};
|
|
356
|
-
},
|
|
357
|
-
const
|
|
358
|
-
id:
|
|
359
|
-
name:
|
|
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
360
|
}, u = () => {
|
|
361
|
-
|
|
362
|
-
}, v = () => !(!i.apiRequest || r.value !== "inline" ||
|
|
363
|
-
var
|
|
364
|
-
const
|
|
365
|
-
return !
|
|
366
|
-
}), y =
|
|
367
|
-
const
|
|
368
|
-
let
|
|
369
|
-
return
|
|
370
|
-
const
|
|
371
|
-
(
|
|
372
|
-
}),
|
|
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
373
|
id: null,
|
|
374
|
-
name:
|
|
375
|
-
}),
|
|
374
|
+
name: m.value
|
|
375
|
+
}), t && (d = d.filter((h) => !Y(l.value, h))), d;
|
|
376
376
|
});
|
|
377
377
|
return {
|
|
378
|
-
searchText:
|
|
378
|
+
searchText: m,
|
|
379
379
|
resetSearch: u,
|
|
380
380
|
genIsShort: v,
|
|
381
|
-
items:
|
|
381
|
+
items: I,
|
|
382
382
|
itemsForShow: y,
|
|
383
|
-
selectItem: (
|
|
384
|
-
|
|
383
|
+
selectItem: (n) => {
|
|
384
|
+
t && Array.isArray(l.value) ? Y(l.value, n) || (l.value = [...l.value, n]) : l.value = n;
|
|
385
385
|
},
|
|
386
386
|
selectNextItem: () => {
|
|
387
387
|
if (!Array.isArray(l.value)) {
|
|
388
|
-
const
|
|
389
|
-
l.value = { ...y.value[
|
|
388
|
+
const V = (y.value.findIndex((d) => d.id === l.value.id) + 1) % y.value.length;
|
|
389
|
+
l.value = { ...y.value[V] };
|
|
390
390
|
}
|
|
391
391
|
},
|
|
392
|
-
deleteItemById: async (
|
|
393
|
-
Array.isArray(l.value) && (l.value = l.value.filter((
|
|
392
|
+
deleteItemById: async (n) => {
|
|
393
|
+
Array.isArray(l.value) && (l.value = l.value.filter((V) => V.id !== n));
|
|
394
394
|
}
|
|
395
395
|
};
|
|
396
|
-
},
|
|
396
|
+
}, be = {
|
|
397
397
|
key: 0,
|
|
398
398
|
class: "top-selector2_activeItems"
|
|
399
|
-
},
|
|
399
|
+
}, ge = {
|
|
400
400
|
key: 1,
|
|
401
401
|
class: "top-selector2_activeName top-ellipsis"
|
|
402
|
-
},
|
|
402
|
+
}, Ve = {
|
|
403
403
|
key: 2,
|
|
404
404
|
class: "top-selector2_placeholder top-ellipsis"
|
|
405
|
-
},
|
|
405
|
+
}, De = /* @__PURE__ */ B({
|
|
406
406
|
__name: "selector2",
|
|
407
|
-
props: /* @__PURE__ */
|
|
407
|
+
props: /* @__PURE__ */ H({
|
|
408
408
|
modelValue: {},
|
|
409
409
|
items: { default: () => [] },
|
|
410
410
|
title: {},
|
|
@@ -430,38 +430,38 @@ const ce = { class: "top-editArea_footer" }, Ke = /* @__PURE__ */ E({
|
|
|
430
430
|
}),
|
|
431
431
|
emits: ["update:modelValue"],
|
|
432
432
|
setup(l) {
|
|
433
|
-
const e = l,
|
|
434
|
-
let
|
|
435
|
-
s.value === "inline" && e.minLength && (
|
|
436
|
-
const r =
|
|
437
|
-
|
|
438
|
-
|
|
433
|
+
const e = l, t = U(l, "modelValue"), s = S(() => e.searchType === "inline" && e.multiselect || e.searchType === "inline" && X.state.isMobile ? "popup" : e.searchType);
|
|
434
|
+
let c = 0;
|
|
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
439
|
e.multiselect,
|
|
440
|
-
|
|
441
|
-
|
|
440
|
+
P(e, "appendAllValue"),
|
|
441
|
+
P(e, "appendSearchToResult"),
|
|
442
442
|
s,
|
|
443
|
-
|
|
443
|
+
c,
|
|
444
444
|
r
|
|
445
|
-
), i =
|
|
446
|
-
var
|
|
447
|
-
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;
|
|
448
448
|
};
|
|
449
|
-
r.apiRequest &&
|
|
450
|
-
var
|
|
451
|
-
r.setSearchTextAndLoad(a.searchText.value), s.value === "inline" && a.genIsShort() && ((
|
|
452
|
-
}),
|
|
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
453
|
s.value === "inline" && a.resetSearch();
|
|
454
454
|
});
|
|
455
|
-
const u =
|
|
456
|
-
var
|
|
457
|
-
return Array.isArray(
|
|
458
|
-
}), v = (
|
|
459
|
-
var
|
|
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
460
|
let n = !1;
|
|
461
|
-
switch (
|
|
461
|
+
switch (o.key) {
|
|
462
462
|
case "Delete":
|
|
463
463
|
case "Backspace":
|
|
464
|
-
Array.isArray(
|
|
464
|
+
Array.isArray(t.value) && (o.preventDefault(), o.stopPropagation(), t.value.pop());
|
|
465
465
|
break;
|
|
466
466
|
case "ArrowUp":
|
|
467
467
|
case "ArrowRight":
|
|
@@ -475,184 +475,171 @@ const ce = { class: "top-editArea_footer" }, Ke = /* @__PURE__ */ E({
|
|
|
475
475
|
s.value === "inline" && a.resetSearch();
|
|
476
476
|
break;
|
|
477
477
|
}
|
|
478
|
-
const
|
|
479
|
-
(s.value === "popup" || s.value === "inline") &&
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
var
|
|
484
|
-
|
|
485
|
-
}, g = (t) => {
|
|
486
|
-
var n, A;
|
|
487
|
-
t.preventDefault(), T = !0, (A = (n = t.currentTarget) == null ? void 0 : n.parentElement) == null || A.focus(), T = !1, a.selectNextItem();
|
|
488
|
-
}, R = () => {
|
|
489
|
-
var t;
|
|
490
|
-
if (T = !0, r.apiRequest) {
|
|
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;
|
|
484
|
+
if (r.apiRequest) {
|
|
491
485
|
if (a.genIsShort()) {
|
|
492
|
-
(
|
|
486
|
+
(o = $()) == null || o.close();
|
|
493
487
|
return;
|
|
494
488
|
}
|
|
495
489
|
r.setSearchTextAndLoad(a.searchText.value, !1);
|
|
496
490
|
}
|
|
497
|
-
},
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
}, h = (t) => {
|
|
502
|
-
const n = t.target;
|
|
491
|
+
}, g = () => {
|
|
492
|
+
s.value && a.searchText.value && a.resetSearch();
|
|
493
|
+
}, z = (o) => {
|
|
494
|
+
const n = o.target;
|
|
503
495
|
n.scrollTop / (n.scrollHeight - n.offsetHeight) > 0.8 && r.load(!0);
|
|
504
496
|
};
|
|
505
|
-
return window.__STORYBOOK_PREVIEW__ && (
|
|
497
|
+
return window.__STORYBOOK_PREVIEW__ && (L(
|
|
506
498
|
() => e.multiselect,
|
|
507
499
|
() => {
|
|
508
|
-
e.multiselect ? Array.isArray(
|
|
500
|
+
e.multiselect ? Array.isArray(t.value) || (t.value = [
|
|
509
501
|
{
|
|
510
502
|
id: 1,
|
|
511
503
|
name: "Выбери меня"
|
|
512
504
|
}
|
|
513
|
-
]) : Array.isArray(
|
|
505
|
+
]) : Array.isArray(t.value) && (t.value = {
|
|
514
506
|
id: null,
|
|
515
507
|
name: ""
|
|
516
508
|
});
|
|
517
509
|
},
|
|
518
510
|
{ immediate: !0 }
|
|
519
|
-
),
|
|
511
|
+
), L(
|
|
520
512
|
() => e.searchType,
|
|
521
513
|
() => {
|
|
522
514
|
setTimeout(() => {
|
|
523
515
|
location.reload();
|
|
524
516
|
}, 500);
|
|
525
517
|
}
|
|
526
|
-
)), (
|
|
527
|
-
const
|
|
528
|
-
return
|
|
518
|
+
)), (o, n) => {
|
|
519
|
+
const V = Z("top-focus");
|
|
520
|
+
return p(), T(f(ie), {
|
|
529
521
|
ref_key: "popupRef",
|
|
530
|
-
ref:
|
|
531
|
-
onOpen: n[
|
|
532
|
-
onClose: n[
|
|
533
|
-
onScrollContentList: n[
|
|
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),
|
|
534
526
|
notch: s.value !== "inline",
|
|
535
|
-
transitionDuration: 0
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
527
|
+
transitionDuration: 0,
|
|
528
|
+
openByFocus: s.value === "inline"
|
|
529
|
+
}, j({
|
|
530
|
+
opener: A(() => [
|
|
531
|
+
x((p(), T(ee(i.value), J(o.buttonProps, {
|
|
539
532
|
ref: "subcomponentSelector",
|
|
540
533
|
class: {
|
|
541
534
|
"top-selector2": !0,
|
|
542
|
-
"top-selector2-multiselect":
|
|
543
|
-
["top-selector2-" +
|
|
544
|
-
"top-as-input": !
|
|
535
|
+
"top-selector2-multiselect": o.multiselect,
|
|
536
|
+
["top-selector2-" + o.modificator]: !!o.modificator,
|
|
537
|
+
"top-as-input": !o.buttonProps,
|
|
545
538
|
"top-as-selector": !0,
|
|
546
|
-
["top-size_" +
|
|
547
|
-
"top-disabled":
|
|
548
|
-
"top-forms-focusable": !
|
|
549
|
-
"top-error":
|
|
539
|
+
["top-size_" + o.size]: !0,
|
|
540
|
+
"top-disabled": o.disabled,
|
|
541
|
+
"top-forms-focusable": !o.disabled,
|
|
542
|
+
"top-error": o.isError
|
|
550
543
|
},
|
|
551
544
|
tabindex: "0",
|
|
552
545
|
onKeydown: v,
|
|
553
546
|
placeholder: u.value,
|
|
554
|
-
modelValue:
|
|
555
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
556
|
-
onFocus: y,
|
|
557
|
-
onBlur: n[1] || (n[1] = (f) => {
|
|
558
|
-
var $;
|
|
559
|
-
return ($ = V()) != null && $.isClosed ? m(a).resetSearch() : "";
|
|
560
|
-
})
|
|
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:
|
|
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
|
-
])) :
|
|
570
|
-
s.value !== "inline" && !
|
|
571
|
-
|
|
572
|
-
|
|
557
|
+
])) : k("", !0),
|
|
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
|
-
|
|
576
|
-
|
|
577
|
-
})) : I("", !0)
|
|
563
|
+
onClick: I
|
|
564
|
+
})) : k("", !0)
|
|
578
565
|
]),
|
|
579
566
|
_: 1
|
|
580
567
|
}, 16, ["class", "placeholder", "modelValue"])), [
|
|
581
568
|
[
|
|
582
|
-
|
|
583
|
-
|
|
569
|
+
V,
|
|
570
|
+
o.isError,
|
|
584
571
|
void 0,
|
|
585
572
|
{ onupdate: !0 }
|
|
586
573
|
]
|
|
587
574
|
])
|
|
588
575
|
]),
|
|
589
|
-
contentList:
|
|
590
|
-
var
|
|
576
|
+
contentList: A(() => {
|
|
577
|
+
var d;
|
|
591
578
|
return [
|
|
592
|
-
(
|
|
593
|
-
class:
|
|
594
|
-
"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
|
|
595
582
|
}),
|
|
596
|
-
key:
|
|
597
|
-
closeByClick: !
|
|
598
|
-
onClick: (
|
|
583
|
+
key: h.id ?? void 0,
|
|
584
|
+
closeByClick: !o.multiselect || f(X).state.isMobile,
|
|
585
|
+
onClick: (K) => f(a).selectItem(h)
|
|
599
586
|
}, {
|
|
600
|
-
default:
|
|
601
|
-
|
|
587
|
+
default: A(() => [
|
|
588
|
+
o.$slots.item ? G(o.$slots, "item", {
|
|
602
589
|
key: 0,
|
|
603
|
-
item:
|
|
604
|
-
}) : (
|
|
605
|
-
|
|
590
|
+
item: h
|
|
591
|
+
}) : (p(), b(R, { key: 1 }, [
|
|
592
|
+
_(w(h.name), 1)
|
|
606
593
|
], 64))
|
|
607
594
|
]),
|
|
608
595
|
_: 2
|
|
609
596
|
}, 1032, ["class", "closeByClick", "onClick"]))), 128)),
|
|
610
|
-
!
|
|
597
|
+
!f(r).isLoading.value && !f(a).itemsForShow.value.length ? (p(), T(f(W), {
|
|
611
598
|
key: 0,
|
|
612
599
|
type: "regular"
|
|
613
600
|
}, {
|
|
614
|
-
default:
|
|
615
|
-
|
|
601
|
+
default: A(() => [
|
|
602
|
+
_(w(o.$i18n.Common.No_results), 1)
|
|
616
603
|
]),
|
|
617
604
|
_: 1
|
|
618
|
-
})) :
|
|
619
|
-
|
|
605
|
+
})) : k("", !0),
|
|
606
|
+
f(r).isLoading.value && (o.searchType !== "popup" || (d = f(r).apiRequest) != null && d.params.offset) ? (p(), T(f(W), {
|
|
620
607
|
key: 1,
|
|
621
608
|
type: "regular"
|
|
622
609
|
}, {
|
|
623
|
-
default:
|
|
624
|
-
|
|
610
|
+
default: A(() => [
|
|
611
|
+
D(f(ne), { type: "circles" })
|
|
625
612
|
]),
|
|
626
613
|
_: 1
|
|
627
|
-
})) :
|
|
614
|
+
})) : k("", !0)
|
|
628
615
|
];
|
|
629
616
|
}),
|
|
630
617
|
_: 2
|
|
631
618
|
}, [
|
|
632
619
|
s.value === "popup" ? {
|
|
633
620
|
name: "widget",
|
|
634
|
-
fn:
|
|
635
|
-
var
|
|
621
|
+
fn: A(() => {
|
|
622
|
+
var d;
|
|
636
623
|
return [
|
|
637
|
-
|
|
624
|
+
D(f(ue), {
|
|
638
625
|
title: "Поиск",
|
|
639
626
|
icon: "",
|
|
640
|
-
modelValue:
|
|
641
|
-
"onUpdate:modelValue": n[
|
|
642
|
-
isLoading:
|
|
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),
|
|
643
630
|
placeholder: u.value
|
|
644
631
|
}, null, 8, ["modelValue", "isLoading", "placeholder"])
|
|
645
632
|
];
|
|
646
633
|
}),
|
|
647
634
|
key: "0"
|
|
648
635
|
} : void 0
|
|
649
|
-
]), 1032, ["notch"]);
|
|
636
|
+
]), 1032, ["notch", "openByFocus"]);
|
|
650
637
|
};
|
|
651
638
|
}
|
|
652
|
-
}), Ae = ["data-top-icon"], $e = { class: "top-info_text" },
|
|
639
|
+
}), Ae = ["data-top-icon"], $e = { class: "top-info_text" }, Te = {
|
|
653
640
|
key: 0,
|
|
654
641
|
class: "top-info_value"
|
|
655
|
-
},
|
|
642
|
+
}, Ge = /* @__PURE__ */ B({
|
|
656
643
|
__name: "info",
|
|
657
644
|
props: {
|
|
658
645
|
icon: {},
|
|
@@ -660,26 +647,26 @@ const ce = { class: "top-editArea_footer" }, Ke = /* @__PURE__ */ E({
|
|
|
660
647
|
size: { default: "default" }
|
|
661
648
|
},
|
|
662
649
|
setup(l) {
|
|
663
|
-
return (e,
|
|
664
|
-
class:
|
|
650
|
+
return (e, t) => (p(), b("div", {
|
|
651
|
+
class: E({
|
|
665
652
|
"top-info": !0,
|
|
666
653
|
["top-size_" + e.size]: !0,
|
|
667
654
|
["top-info-styling_" + e.styling]: !0
|
|
668
655
|
}),
|
|
669
656
|
"data-top-icon": e.icon
|
|
670
657
|
}, [
|
|
671
|
-
|
|
672
|
-
|
|
658
|
+
M("div", $e, [
|
|
659
|
+
G(e.$slots, "default")
|
|
673
660
|
]),
|
|
674
|
-
e.$slots.additional ? (
|
|
675
|
-
|
|
676
|
-
])) :
|
|
661
|
+
e.$slots.additional ? (p(), b("span", Te, [
|
|
662
|
+
G(e.$slots, "additional")
|
|
663
|
+
])) : k("", !0)
|
|
677
664
|
], 10, Ae));
|
|
678
665
|
}
|
|
679
|
-
}),
|
|
666
|
+
}), ke = {
|
|
680
667
|
key: 0,
|
|
681
668
|
class: "top-policy"
|
|
682
|
-
},
|
|
669
|
+
}, we = { class: "top-policy_title" }, Ie = ["innerHTML"], Pe = /* @__PURE__ */ B({
|
|
683
670
|
__name: "policy",
|
|
684
671
|
props: {
|
|
685
672
|
title: {},
|
|
@@ -688,35 +675,35 @@ const ce = { class: "top-editArea_footer" }, Ke = /* @__PURE__ */ E({
|
|
|
688
675
|
},
|
|
689
676
|
emits: ["accept"],
|
|
690
677
|
setup(l, { emit: e }) {
|
|
691
|
-
const
|
|
692
|
-
s.value = !1,
|
|
678
|
+
const t = e, s = C(!0), c = () => {
|
|
679
|
+
s.value = !1, t("accept");
|
|
693
680
|
};
|
|
694
|
-
return (r, a) => s.value ? (
|
|
695
|
-
|
|
696
|
-
|
|
681
|
+
return (r, a) => s.value ? (p(), b("div", ke, [
|
|
682
|
+
M("div", we, w(r.title), 1),
|
|
683
|
+
M("div", {
|
|
697
684
|
class: "top-policy_description",
|
|
698
685
|
innerHTML: r.description
|
|
699
|
-
}, null, 8,
|
|
700
|
-
|
|
686
|
+
}, null, 8, Ie),
|
|
687
|
+
D(f(F), {
|
|
701
688
|
size: "m",
|
|
702
|
-
onClick:
|
|
689
|
+
onClick: c
|
|
703
690
|
}, {
|
|
704
|
-
default:
|
|
705
|
-
|
|
691
|
+
default: A(() => [
|
|
692
|
+
_(w(r.acceptText), 1)
|
|
706
693
|
]),
|
|
707
694
|
_: 1
|
|
708
695
|
})
|
|
709
|
-
])) :
|
|
696
|
+
])) : k("", !0);
|
|
710
697
|
}
|
|
711
698
|
});
|
|
712
699
|
export {
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
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
|
|
721
708
|
};
|
|
722
709
|
//# sourceMappingURL=formsExt.js.map
|