@topvisor/ui 1.3.3-piniaTPAPluginClearHash.0 → 1.3.3
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-BrkcXLtM.es.js → core-PgN-H_aP.es.js} +4 -4
- package/.chunks/{core-BrkcXLtM.es.js.map → core-PgN-H_aP.es.js.map} +1 -1
- package/.chunks/{datepicker-Dfl91fRZ.es.js → datepicker-lHzfJ7vE.es.js} +2 -2
- package/.chunks/{datepicker-Dfl91fRZ.es.js.map → datepicker-lHzfJ7vE.es.js.map} +1 -1
- package/.chunks/{dialog_selectorRegions-QbGG0L91.es.js → dialog_selectorRegions-Ccsrpo2C.es.js} +55 -53
- package/.chunks/{dialog_selectorRegions-QbGG0L91.es.js.map → dialog_selectorRegions-Ccsrpo2C.es.js.map} +1 -1
- package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-8LLCo4IK.es.js → dialogs.vue_vue_type_script_setup_true_lang-Bei7eCOi.es.js} +2 -2
- package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-8LLCo4IK.es.js.map → dialogs.vue_vue_type_script_setup_true_lang-Bei7eCOi.es.js.map} +1 -1
- package/.chunks/{forms-BWoAyEVH.es.js → forms-CuEEAPvm.es.js} +5 -5
- package/.chunks/{forms-BWoAyEVH.es.js.map → forms-CuEEAPvm.es.js.map} +1 -1
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-_3WmLmPV.es.js +186 -0
- package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-Dljef_xa.es.js.map → listItem.vue_vue_type_script_setup_true_lang-_3WmLmPV.es.js.map} +1 -1
- package/.chunks/{menu.vue_vue_type_style_index_0_lang-HDPVVgzy.es.js → menu.vue_vue_type_style_index_0_lang-Ct0tivnh.es.js} +35 -33
- package/.chunks/{menu.vue_vue_type_style_index_0_lang-HDPVVgzy.es.js.map → menu.vue_vue_type_style_index_0_lang-Ct0tivnh.es.js.map} +1 -1
- package/.chunks/notice-Aw2dLsyE.es.js +194 -0
- package/.chunks/{notice-DYd206Yd.es.js.map → notice-Aw2dLsyE.es.js.map} +1 -1
- package/.chunks/{page.vue_vue_type_script_setup_true_lang-B26E2LsY.es.js → page.vue_vue_type_script_setup_true_lang-x02Y0eiE.es.js} +4 -4
- package/.chunks/{page.vue_vue_type_script_setup_true_lang-B26E2LsY.es.js.map → page.vue_vue_type_script_setup_true_lang-x02Y0eiE.es.js.map} +1 -1
- package/.chunks/{popup-1pqtx_O5.es.js → popup-axQQEyIk.es.js} +2 -2
- package/.chunks/{popup-1pqtx_O5.es.js.map → popup-axQQEyIk.es.js.map} +1 -1
- package/.chunks/popupHint.vue_vue_type_style_index_0_lang-Cce9ZdtW.amd.js +2 -0
- package/.chunks/popupHint.vue_vue_type_style_index_0_lang-Cce9ZdtW.amd.js.map +1 -0
- package/.chunks/{utils-Dk7uXZsi.es.js → utils-BHW-ownM.es.js} +2 -2
- package/.chunks/{utils-Dk7uXZsi.es.js.map → utils-BHW-ownM.es.js.map} +1 -1
- package/.chunks/{utils-C_yz4vdX.es.js → utils-D1fvioEG.es.js} +3 -3
- package/.chunks/{utils-C_yz4vdX.es.js.map → utils-D1fvioEG.es.js.map} +1 -1
- package/.chunks/{widgetInput.vue_vue_type_script_setup_true_lang-Cr_jgOW4.es.js → widgetInput.vue_vue_type_script_setup_true_lang-IWJIVl4_.es.js} +2 -2
- package/.chunks/{widgetInput.vue_vue_type_script_setup_true_lang-Cr_jgOW4.es.js.map → widgetInput.vue_vue_type_script_setup_true_lang-IWJIVl4_.es.js.map} +1 -1
- package/charts/charts.js +62 -60
- package/charts/charts.js.map +1 -1
- package/core/app.amd.js +1 -1
- package/core/app.amd.js.map +1 -1
- package/core/app.js +26 -26
- package/core/app.js.map +1 -1
- package/dialog/dialog.js +2 -2
- package/extra/extra.js +22 -20
- package/extra/extra.js.map +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 +115 -113
- package/formsExt/formsExt.js.map +1 -1
- package/layout/layout.js +37 -35
- package/layout/layout.js.map +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 +9 -4
- package/popup/worker.js +2 -2
- package/project/project.js +245 -243
- package/project/project.js.map +1 -1
- package/tabs/tabs.js +28 -26
- package/tabs/tabs.js.map +1 -1
- package/tabsView/tabsView.amd.js +1 -1
- package/tabsView/tabsView.amd.js.map +1 -1
- package/tabsView/tabsView.js +67 -65
- package/tabsView/tabsView.js.map +1 -1
- package/utils/clipboard.js +1 -1
- package/utils/date.js +1 -1
- package/utils/device.js +1 -1
- package/utils/lodash.js +1 -1
- package/utils/price.js +1 -1
- package/utils/searchers.js +3 -3
- package/utils/string.js +1 -1
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-Dljef_xa.es.js +0 -184
- package/.chunks/notice-DYd206Yd.es.js +0 -192
- package/.chunks/popupHint.vue_vue_type_style_index_0_lang-BCpRWeKK.amd.js +0 -2
- package/.chunks/popupHint.vue_vue_type_style_index_0_lang-BCpRWeKK.amd.js.map +0 -1
package/formsExt/formsExt.js
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
|
|
2
|
+
import { Core as _autoloadCSSCore } from '../core/app.js';
|
|
3
|
+
const fileNames = ['../assets/formsExt.css', '../assets/popupHint.css'].map(fileName => import.meta.resolve(fileName));
|
|
4
|
+
_autoloadCSSCore.insertCSSLinkToPage(fileNames, true);
|
|
5
|
+
|
|
6
|
+
import { defineComponent as E, ref as B, computed as z, createElementBlock as b, openBlock as d, normalizeClass as S, createCommentVNode as I, createElementVNode as K, toDisplayString as C, createVNode as G, withKeys as N, withModifiers as q, createBlock as w, createSlots as J, withCtx as k, createTextVNode as L, watch as M, toRef as O, mergeProps as X, mergeModels as U, useModel as W, Fragment as D, renderList as F, renderSlot as P, resolveDirective as x, unref as m, withDirectives as ee, resolveDynamicComponent as te } from "vue";
|
|
7
|
+
import { q as oe, c as H, _ as le, j as se, n as ae, d as re, u as ne, C as Y, r as ie } from "../.chunks/forms-CuEEAPvm.es.js";
|
|
8
|
+
import { _ as ue, b as j } from "../.chunks/listItem.vue_vue_type_script_setup_true_lang-_3WmLmPV.es.js";
|
|
9
|
+
import { _ as de } from "../.chunks/widgetInput.vue_vue_type_script_setup_true_lang-IWJIVl4_.es.js";
|
|
6
10
|
/* empty css */
|
|
7
|
-
import { invertKeyboardLayout as
|
|
8
|
-
import { _ as
|
|
9
|
-
const
|
|
10
|
-
x.insertCSSLinkToPage(ee, !0);
|
|
11
|
-
const fe = { class: "top-editArea_footer" }, De = /* @__PURE__ */ E({
|
|
11
|
+
import { invertKeyboardLayout as pe } from "../utils/keyboard.js";
|
|
12
|
+
import { _ as He } from "../.chunks/menu.vue_vue_type_style_index_0_lang-Ct0tivnh.es.js";
|
|
13
|
+
const ce = { class: "top-editArea_footer" }, Ke = /* @__PURE__ */ E({
|
|
12
14
|
__name: "editArea",
|
|
13
15
|
props: {
|
|
14
16
|
defaultValue: { default: "" },
|
|
@@ -42,11 +44,11 @@ const fe = { class: "top-editArea_footer" }, De = /* @__PURE__ */ E({
|
|
|
42
44
|
return;
|
|
43
45
|
}
|
|
44
46
|
p.value = o.defaultValue;
|
|
45
|
-
},
|
|
47
|
+
}, V = () => {
|
|
46
48
|
o.attachToKeyboard && s("clickOnTitle");
|
|
47
49
|
};
|
|
48
50
|
return (u, v) => (d(), b("div", {
|
|
49
|
-
class:
|
|
51
|
+
class: S({
|
|
50
52
|
"top-editArea": !0,
|
|
51
53
|
"top-editArea-attachedToKeyboard": u.attachToKeyboard
|
|
52
54
|
})
|
|
@@ -54,10 +56,10 @@ const fe = { class: "top-editArea_footer" }, De = /* @__PURE__ */ E({
|
|
|
54
56
|
u.title ? (d(), b("div", {
|
|
55
57
|
key: 0,
|
|
56
58
|
class: "top-editArea_title",
|
|
57
|
-
onClick: v[0] || (v[0] = (
|
|
59
|
+
onClick: v[0] || (v[0] = (T) => V())
|
|
58
60
|
}, C(u.title), 1)) : I("", !0),
|
|
59
61
|
K("div", {
|
|
60
|
-
class:
|
|
62
|
+
class: S({
|
|
61
63
|
"top-editArea_form": !0,
|
|
62
64
|
"top-forms-focusable": !0,
|
|
63
65
|
"top-as-input": !0,
|
|
@@ -65,9 +67,9 @@ const fe = { class: "top-editArea_footer" }, De = /* @__PURE__ */ E({
|
|
|
65
67
|
"top-focus": r.value
|
|
66
68
|
})
|
|
67
69
|
}, [
|
|
68
|
-
|
|
70
|
+
G(oe, {
|
|
69
71
|
modelValue: p.value,
|
|
70
|
-
"onUpdate:modelValue": v[1] || (v[1] = (
|
|
72
|
+
"onUpdate:modelValue": v[1] || (v[1] = (T) => p.value = T),
|
|
71
73
|
name: u.name,
|
|
72
74
|
placeholder: u.placeholder,
|
|
73
75
|
rows: u.rows,
|
|
@@ -81,11 +83,11 @@ const fe = { class: "top-editArea_footer" }, De = /* @__PURE__ */ E({
|
|
|
81
83
|
onFocus: v[2] || (v[2] = () => r.value = !0),
|
|
82
84
|
onBlur: v[3] || (v[3] = () => r.value = !1),
|
|
83
85
|
onKeyup: [
|
|
84
|
-
|
|
85
|
-
v[4] || (v[4] =
|
|
86
|
+
N(c, ["esc"]),
|
|
87
|
+
v[4] || (v[4] = N(q((T) => i(p.value), ["ctrl"]), ["enter"]))
|
|
86
88
|
]
|
|
87
89
|
}, null, 8, ["modelValue", "name", "placeholder", "rows", "minHeight", "expandable", "disabled", "readonly", "isError", "hint"]),
|
|
88
|
-
K("div",
|
|
90
|
+
K("div", ce, [
|
|
89
91
|
a.value || u.forceShowCloseBtn ? (d(), w(H, {
|
|
90
92
|
key: 0,
|
|
91
93
|
icon: u.$core.state.isMobile ? "" : "",
|
|
@@ -97,7 +99,7 @@ const fe = { class: "top-editArea_footer" }, De = /* @__PURE__ */ E({
|
|
|
97
99
|
u.$core.state.isMobile ? void 0 : {
|
|
98
100
|
name: "default",
|
|
99
101
|
fn: k(() => [
|
|
100
|
-
|
|
102
|
+
L(C(u.cancelText), 1)
|
|
101
103
|
]),
|
|
102
104
|
key: "0"
|
|
103
105
|
}
|
|
@@ -106,12 +108,12 @@ const fe = { class: "top-editArea_footer" }, De = /* @__PURE__ */ E({
|
|
|
106
108
|
key: 1,
|
|
107
109
|
class: "top-editArea_button",
|
|
108
110
|
icon: u.$core.state.isMobile ? "" : "",
|
|
109
|
-
onClick: v[5] || (v[5] = (
|
|
111
|
+
onClick: v[5] || (v[5] = (T) => i(p.value))
|
|
110
112
|
}, J({ _: 2 }, [
|
|
111
113
|
u.$core.state.isMobile ? void 0 : {
|
|
112
114
|
name: "default",
|
|
113
115
|
fn: k(() => [
|
|
114
|
-
|
|
116
|
+
L(C(u.submitText), 1)
|
|
115
117
|
]),
|
|
116
118
|
key: "0"
|
|
117
119
|
}
|
|
@@ -120,7 +122,7 @@ const fe = { class: "top-editArea_footer" }, De = /* @__PURE__ */ E({
|
|
|
120
122
|
], 2)
|
|
121
123
|
], 2));
|
|
122
124
|
}
|
|
123
|
-
}),
|
|
125
|
+
}), me = { class: "top-editInput" }, Re = /* @__PURE__ */ E({
|
|
124
126
|
__name: "editInput",
|
|
125
127
|
props: {
|
|
126
128
|
modelValue: {},
|
|
@@ -130,16 +132,16 @@ const fe = { class: "top-editArea_footer" }, De = /* @__PURE__ */ E({
|
|
|
130
132
|
emits: ["update:modelValue"],
|
|
131
133
|
setup(l, { emit: e }) {
|
|
132
134
|
const o = l, s = B(o.modelValue);
|
|
133
|
-
M(
|
|
135
|
+
M(O(o.modelValue), () => {
|
|
134
136
|
s.value = o.modelValue;
|
|
135
137
|
});
|
|
136
138
|
const p = e, r = () => {
|
|
137
139
|
p("update:modelValue", s.value);
|
|
138
140
|
};
|
|
139
|
-
return (a, i) => (d(), b("div",
|
|
140
|
-
|
|
141
|
-
onKeydownCapture: i[0] || (i[0] =
|
|
142
|
-
onKeydown:
|
|
141
|
+
return (a, i) => (d(), b("div", me, [
|
|
142
|
+
G(le, X(a.input, {
|
|
143
|
+
onKeydownCapture: i[0] || (i[0] = N(q((c) => s.value = a.modelValue, ["stop"]), ["esc"])),
|
|
144
|
+
onKeydown: N(q(r, ["stop"]), ["enter"]),
|
|
143
145
|
modelValue: s.value,
|
|
144
146
|
"onUpdate:modelValue": i[1] || (i[1] = (c) => s.value = c)
|
|
145
147
|
}), null, 16, ["onKeydown", "modelValue"]),
|
|
@@ -170,13 +172,13 @@ const fe = { class: "top-editArea_footer" }, De = /* @__PURE__ */ E({
|
|
|
170
172
|
M(e, () => {
|
|
171
173
|
var a, i;
|
|
172
174
|
const r = o.items.map((c) => c.value);
|
|
173
|
-
Array.isArray(e.value) ? e.value.find((
|
|
175
|
+
Array.isArray(e.value) ? e.value.find((V) => !r.includes(V)) && (e.value = e.value.filter((V) => r.includes(V))) : r.includes(e.value) || (e.value = r[0] ?? ""), (i = (a = s.value) == null ? void 0 : a.querySelector(".radioGroup_item-selected")) == null || i.scrollIntoView();
|
|
174
176
|
}, { immediate: !0 });
|
|
175
177
|
const p = "optionGroup-" + Math.random();
|
|
176
178
|
return (r, a) => (d(), b("div", {
|
|
177
179
|
ref_key: "elRef",
|
|
178
180
|
ref: s,
|
|
179
|
-
class:
|
|
181
|
+
class: S({
|
|
180
182
|
"top-optionGroup": !0,
|
|
181
183
|
["top-optionGroup-showIndicator_" + Number(r.showIndicator)]: !0,
|
|
182
184
|
"top-scrollBarXHidding": !0,
|
|
@@ -184,8 +186,8 @@ const fe = { class: "top-editArea_footer" }, De = /* @__PURE__ */ E({
|
|
|
184
186
|
"top-error": r.isError
|
|
185
187
|
})
|
|
186
188
|
}, [
|
|
187
|
-
Array.isArray(e.value) ? (d(!0), b(
|
|
188
|
-
class:
|
|
189
|
+
Array.isArray(e.value) ? (d(!0), b(D, { key: 0 }, F(r.items, (i) => (d(), w(se, {
|
|
190
|
+
class: S({
|
|
189
191
|
"top-optionGroup_item-selected": e.value.includes(i.value),
|
|
190
192
|
"top-optionGroup_item": !0
|
|
191
193
|
}),
|
|
@@ -197,11 +199,11 @@ const fe = { class: "top-editArea_footer" }, De = /* @__PURE__ */ E({
|
|
|
197
199
|
"data-top-icon": i.icon
|
|
198
200
|
}, {
|
|
199
201
|
default: k(() => [
|
|
200
|
-
|
|
202
|
+
L(C(i.title), 1)
|
|
201
203
|
]),
|
|
202
204
|
_: 2
|
|
203
|
-
}, 1032, ["class", "modelValue", "value", "disabled", "isError", "data-top-icon"]))), 256)) : (d(!0), b(
|
|
204
|
-
class:
|
|
205
|
+
}, 1032, ["class", "modelValue", "value", "disabled", "isError", "data-top-icon"]))), 256)) : (d(!0), b(D, { key: 1 }, F(r.items, (i) => (d(), w(ae, {
|
|
206
|
+
class: S({
|
|
205
207
|
"top-optionGroup_item-selected": i.value === e.value,
|
|
206
208
|
"top-optionGroup_item": !0
|
|
207
209
|
}),
|
|
@@ -214,13 +216,13 @@ const fe = { class: "top-editArea_footer" }, De = /* @__PURE__ */ E({
|
|
|
214
216
|
"data-top-icon": i.icon
|
|
215
217
|
}, {
|
|
216
218
|
default: k(() => [
|
|
217
|
-
|
|
219
|
+
L(C(i.title), 1)
|
|
218
220
|
]),
|
|
219
221
|
_: 2
|
|
220
222
|
}, 1032, ["class", "modelValue", "value", "disabled", "isError", "data-top-icon"]))), 256))
|
|
221
223
|
], 2));
|
|
222
224
|
}
|
|
223
|
-
}),
|
|
225
|
+
}), De = /* @__PURE__ */ E({
|
|
224
226
|
__name: "radioGroup",
|
|
225
227
|
props: /* @__PURE__ */ U({
|
|
226
228
|
modelValue: {},
|
|
@@ -247,12 +249,12 @@ const fe = { class: "top-editArea_footer" }, De = /* @__PURE__ */ E({
|
|
|
247
249
|
isError: o.$props.isError
|
|
248
250
|
}, {
|
|
249
251
|
default: k(() => [
|
|
250
|
-
|
|
252
|
+
P(o.$slots, "default")
|
|
251
253
|
]),
|
|
252
254
|
_: 3
|
|
253
255
|
}, 8, ["modelValue", "items", "size", "showIndicator", "isError"]));
|
|
254
256
|
}
|
|
255
|
-
}),
|
|
257
|
+
}), Ge = /* @__PURE__ */ E({
|
|
256
258
|
__name: "checkboxGroup",
|
|
257
259
|
props: /* @__PURE__ */ U({
|
|
258
260
|
modelValue: {},
|
|
@@ -279,12 +281,12 @@ const fe = { class: "top-editArea_footer" }, De = /* @__PURE__ */ E({
|
|
|
279
281
|
isError: o.$props.isError
|
|
280
282
|
}, {
|
|
281
283
|
default: k(() => [
|
|
282
|
-
|
|
284
|
+
P(o.$slots, "default")
|
|
283
285
|
]),
|
|
284
286
|
_: 3
|
|
285
287
|
}, 8, ["modelValue", "items", "size", "showIndicator", "isError"]));
|
|
286
288
|
}
|
|
287
|
-
}),
|
|
289
|
+
}), fe = { class: "top-selector2_itemMulti top-ellipsis" }, ve = /* @__PURE__ */ E({
|
|
288
290
|
__name: "itemMulti",
|
|
289
291
|
props: {
|
|
290
292
|
id: {},
|
|
@@ -292,8 +294,8 @@ const fe = { class: "top-editArea_footer" }, De = /* @__PURE__ */ E({
|
|
|
292
294
|
},
|
|
293
295
|
emits: ["delete"],
|
|
294
296
|
setup(l) {
|
|
295
|
-
return (e, o) => (d(), b("div",
|
|
296
|
-
|
|
297
|
+
return (e, o) => (d(), b("div", fe, [
|
|
298
|
+
L(C(e.name) + " ", 1),
|
|
297
299
|
K("span", {
|
|
298
300
|
class: "top-selector2_itemMultiDelete",
|
|
299
301
|
"data-top-icon": "",
|
|
@@ -303,11 +305,11 @@ const fe = { class: "top-editArea_footer" }, De = /* @__PURE__ */ E({
|
|
|
303
305
|
}, null, 32)
|
|
304
306
|
]));
|
|
305
307
|
}
|
|
306
|
-
}),
|
|
308
|
+
}), ye = (l, e, o, s) => {
|
|
307
309
|
const p = B([]), r = /* @__PURE__ */ new Map(), a = B(!1);
|
|
308
310
|
let i = "", c;
|
|
309
311
|
l && !l.params.limit && (l.params.limit = 100);
|
|
310
|
-
const
|
|
312
|
+
const V = async () => {
|
|
311
313
|
if (!l) return;
|
|
312
314
|
let y;
|
|
313
315
|
if (s) {
|
|
@@ -337,9 +339,9 @@ const fe = { class: "top-editArea_footer" }, De = /* @__PURE__ */ E({
|
|
|
337
339
|
} else
|
|
338
340
|
l.params.offset = 0;
|
|
339
341
|
e == null || e(i);
|
|
340
|
-
const g = await
|
|
342
|
+
const g = await V();
|
|
341
343
|
g && (c = g.nextOffset, y ? p.value = p.value.concat(g.result) : p.value = g.result);
|
|
342
|
-
}, v =
|
|
344
|
+
}, v = re(() => u(!1), 200);
|
|
343
345
|
return {
|
|
344
346
|
apiRequest: l,
|
|
345
347
|
items: p,
|
|
@@ -349,20 +351,20 @@ const fe = { class: "top-editArea_footer" }, De = /* @__PURE__ */ E({
|
|
|
349
351
|
l && (y.length < o || y === i && p.value.length || (i = y, g ? v() : u(!1)));
|
|
350
352
|
}
|
|
351
353
|
};
|
|
352
|
-
},
|
|
353
|
-
const c = B(""),
|
|
354
|
-
id:
|
|
355
|
-
name:
|
|
354
|
+
}, he = 0, Q = (l, e, o = !0) => o && 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, be = (l, e, o, s, p, r, a, i) => {
|
|
355
|
+
const c = B(""), V = {
|
|
356
|
+
id: he,
|
|
357
|
+
name: ne().Common.All
|
|
356
358
|
}, u = () => {
|
|
357
359
|
c.value = "", i.items.value = [];
|
|
358
|
-
}, v = () => !(!i.apiRequest || r.value !== "inline" || c.value.length >= a),
|
|
360
|
+
}, v = () => !(!i.apiRequest || r.value !== "inline" || c.value.length >= a), T = z(() => {
|
|
359
361
|
var t;
|
|
360
362
|
const h = [];
|
|
361
|
-
return !o && s.value && h.push(
|
|
363
|
+
return !o && s.value && h.push(V), (t = e.value) == null || t.forEach((n) => h.push({ ...n })), h;
|
|
362
364
|
}), y = z(() => {
|
|
363
|
-
const h = c.value.toLowerCase(), t =
|
|
365
|
+
const h = c.value.toLowerCase(), t = pe(h);
|
|
364
366
|
let n = [];
|
|
365
|
-
return
|
|
367
|
+
return T.value.forEach((A) => {
|
|
366
368
|
const f = A.name.toLowerCase();
|
|
367
369
|
(A.id === Number(h) || f.includes(h) || f.includes(t)) && (f === h || f === t ? n.unshift(A) : n.push(A));
|
|
368
370
|
}), n.push(...i.items.value), p.value && c.value && (!n.length || n[0].name.toLowerCase() !== h) && n.push({
|
|
@@ -374,7 +376,7 @@ const fe = { class: "top-editArea_footer" }, De = /* @__PURE__ */ E({
|
|
|
374
376
|
searchText: c,
|
|
375
377
|
resetSearch: u,
|
|
376
378
|
genIsShort: v,
|
|
377
|
-
items:
|
|
379
|
+
items: T,
|
|
378
380
|
itemsForShow: y,
|
|
379
381
|
selectItem: (h) => {
|
|
380
382
|
o && Array.isArray(l.value) ? Q(l.value, h) || (l.value = [...l.value, h]) : l.value = h;
|
|
@@ -389,16 +391,16 @@ const fe = { class: "top-editArea_footer" }, De = /* @__PURE__ */ E({
|
|
|
389
391
|
Array.isArray(l.value) && (l.value = l.value.filter((t) => t.id !== h));
|
|
390
392
|
}
|
|
391
393
|
};
|
|
392
|
-
},
|
|
394
|
+
}, ge = {
|
|
393
395
|
key: 0,
|
|
394
396
|
class: "top-selector2_activeItems"
|
|
395
|
-
},
|
|
397
|
+
}, Ve = {
|
|
396
398
|
key: 1,
|
|
397
399
|
class: "top-selector2_activeName top-ellipsis"
|
|
398
|
-
},
|
|
400
|
+
}, Te = {
|
|
399
401
|
key: 2,
|
|
400
402
|
class: "top-selector2_placeholder top-ellipsis"
|
|
401
|
-
},
|
|
403
|
+
}, Pe = /* @__PURE__ */ E({
|
|
402
404
|
__name: "selector2",
|
|
403
405
|
props: /* @__PURE__ */ U({
|
|
404
406
|
modelValue: {},
|
|
@@ -429,22 +431,22 @@ const fe = { class: "top-editArea_footer" }, De = /* @__PURE__ */ E({
|
|
|
429
431
|
const e = l, o = W(l, "modelValue"), s = z(() => e.searchType === "inline" && e.multiselect || e.searchType === "inline" && Y.state.isMobile ? "popup" : e.searchType);
|
|
430
432
|
let p = 0;
|
|
431
433
|
s.value === "inline" && e.minLength && (p = e.minLength);
|
|
432
|
-
const r =
|
|
434
|
+
const r = ye(e.api, e.apiSetSearchParams, p, e.useCache), a = be(
|
|
433
435
|
o,
|
|
434
|
-
|
|
436
|
+
O(e, "items"),
|
|
435
437
|
e.multiselect,
|
|
436
|
-
|
|
437
|
-
|
|
438
|
+
O(e, "appendAllValue"),
|
|
439
|
+
O(e, "appendSearchToResult"),
|
|
438
440
|
s,
|
|
439
441
|
p,
|
|
440
442
|
r
|
|
441
|
-
), i = z(() => e.buttonProps ? "TopButton" : s.value === "inline" ? "TopInput" : "div"), c = B(null),
|
|
443
|
+
), i = z(() => e.buttonProps ? "TopButton" : s.value === "inline" ? "TopInput" : "div"), c = B(null), V = () => {
|
|
442
444
|
var t;
|
|
443
445
|
return (t = c.value) == null ? void 0 : t.popup;
|
|
444
446
|
};
|
|
445
447
|
r.apiRequest && M(a.searchText, () => {
|
|
446
448
|
var t;
|
|
447
|
-
r.setSearchTextAndLoad(a.searchText.value), s.value === "inline" && a.genIsShort() && ((t =
|
|
449
|
+
r.setSearchTextAndLoad(a.searchText.value), s.value === "inline" && a.genIsShort() && ((t = V()) == null || t.close());
|
|
448
450
|
}), M(o, () => {
|
|
449
451
|
s.value === "inline" && a.resetSearch();
|
|
450
452
|
});
|
|
@@ -472,27 +474,27 @@ const fe = { class: "top-editArea_footer" }, De = /* @__PURE__ */ E({
|
|
|
472
474
|
break;
|
|
473
475
|
}
|
|
474
476
|
const A = t.key.length === 1 && !t.ctrlKey && !t.metaKey;
|
|
475
|
-
(s.value === "popup" || s.value === "inline") && A && (n = !0), (f =
|
|
477
|
+
(s.value === "popup" || s.value === "inline") && A && (n = !0), (f = V()) != null && f.elPopup && (n = !1), n && (s.value === "popup" && (t.preventDefault(), t.stopPropagation(), A && (a.searchText.value || (a.searchText.value = t.key))), ($ = t.currentTarget) == null || $.click());
|
|
476
478
|
};
|
|
477
|
-
let
|
|
479
|
+
let T = !1;
|
|
478
480
|
const y = (t) => {
|
|
479
481
|
var n;
|
|
480
|
-
|
|
482
|
+
T || s.value === "inline" && ((n = t.currentTarget) == null || n.click());
|
|
481
483
|
}, g = (t) => {
|
|
482
484
|
var n, A;
|
|
483
|
-
t.preventDefault(),
|
|
485
|
+
t.preventDefault(), T = !0, (A = (n = t.currentTarget) == null ? void 0 : n.parentElement) == null || A.focus(), T = !1, a.selectNextItem();
|
|
484
486
|
}, R = () => {
|
|
485
487
|
var t;
|
|
486
|
-
if (
|
|
488
|
+
if (T = !0, r.apiRequest) {
|
|
487
489
|
if (a.genIsShort()) {
|
|
488
|
-
(t =
|
|
490
|
+
(t = V()) == null || t.close();
|
|
489
491
|
return;
|
|
490
492
|
}
|
|
491
493
|
r.setSearchTextAndLoad(a.searchText.value, !1);
|
|
492
494
|
}
|
|
493
495
|
}, _ = () => {
|
|
494
496
|
setTimeout(() => {
|
|
495
|
-
|
|
497
|
+
T = !1;
|
|
496
498
|
}, 100), s.value === "popup" && a.searchText.value && a.resetSearch();
|
|
497
499
|
}, h = (t) => {
|
|
498
500
|
const n = t.target;
|
|
@@ -520,8 +522,8 @@ const fe = { class: "top-editArea_footer" }, De = /* @__PURE__ */ E({
|
|
|
520
522
|
}, 500);
|
|
521
523
|
}
|
|
522
524
|
)), (t, n) => {
|
|
523
|
-
const A =
|
|
524
|
-
return d(), w(m(
|
|
525
|
+
const A = x("top-focus");
|
|
526
|
+
return d(), w(m(ue), {
|
|
525
527
|
ref_key: "popupRef",
|
|
526
528
|
ref: c,
|
|
527
529
|
onOpen: n[3] || (n[3] = (f) => R()),
|
|
@@ -531,7 +533,7 @@ const fe = { class: "top-editArea_footer" }, De = /* @__PURE__ */ E({
|
|
|
531
533
|
transitionDuration: 0
|
|
532
534
|
}, J({
|
|
533
535
|
opener: k(() => [
|
|
534
|
-
|
|
536
|
+
ee((d(), w(te(i.value), X(t.buttonProps, {
|
|
535
537
|
ref: "subcomponentSelector",
|
|
536
538
|
class: {
|
|
537
539
|
"top-selector2": !0,
|
|
@@ -552,19 +554,19 @@ const fe = { class: "top-editArea_footer" }, De = /* @__PURE__ */ E({
|
|
|
552
554
|
onFocus: y,
|
|
553
555
|
onBlur: n[1] || (n[1] = (f) => {
|
|
554
556
|
var $;
|
|
555
|
-
return ($ =
|
|
557
|
+
return ($ = V()) != null && $.isClosed ? m(a).resetSearch() : "";
|
|
556
558
|
})
|
|
557
559
|
}), {
|
|
558
560
|
default: k(() => [
|
|
559
|
-
t.multiselect ? (d(), b("div",
|
|
560
|
-
(d(!0), b(
|
|
561
|
+
t.multiselect ? (d(), b("div", ge, [
|
|
562
|
+
(d(!0), b(D, null, F(o.value, (f) => (d(), w(ve, {
|
|
561
563
|
id: f.id,
|
|
562
564
|
name: f.name,
|
|
563
565
|
onDelete: m(a).deleteItemById
|
|
564
566
|
}, null, 8, ["id", "name", "onDelete"]))), 256))
|
|
565
567
|
])) : I("", !0),
|
|
566
|
-
s.value !== "inline" && !t.multiselect ? (d(), b("span",
|
|
567
|
-
t.multiselect && !o.value.length ? (d(), b("span",
|
|
568
|
+
s.value !== "inline" && !t.multiselect ? (d(), b("span", Ve, C(Array.isArray(o.value) ? "" : o.value.name), 1)) : I("", !0),
|
|
569
|
+
t.multiselect && !o.value.length ? (d(), b("span", Te, C(u.value), 1)) : I("", !0),
|
|
568
570
|
t.addChanger && !t.buttonProps && !t.multiselect && m(a).items.value.length > 1 && !t.disabled ? (d(), b("span", {
|
|
569
571
|
key: 3,
|
|
570
572
|
class: "top-changer top-changer-selector top-popup_widget",
|
|
@@ -585,20 +587,20 @@ const fe = { class: "top-editArea_footer" }, De = /* @__PURE__ */ E({
|
|
|
585
587
|
contentList: k(() => {
|
|
586
588
|
var f;
|
|
587
589
|
return [
|
|
588
|
-
(d(!0), b(
|
|
589
|
-
class:
|
|
590
|
+
(d(!0), b(D, null, F(m(a).itemsForShow.value, ($) => (d(), w(m(j), {
|
|
591
|
+
class: S({
|
|
590
592
|
"top-active": !Array.isArray(o.value) && !t.multiselect && o.value.id === $.id && o.value.name === $.name
|
|
591
593
|
}),
|
|
592
594
|
key: $.id ?? void 0,
|
|
593
595
|
closeByClick: !t.multiselect || m(Y).state.isMobile,
|
|
594
|
-
onClick: (
|
|
596
|
+
onClick: (Be) => m(a).selectItem($)
|
|
595
597
|
}, {
|
|
596
598
|
default: k(() => [
|
|
597
|
-
t.$slots.item ?
|
|
599
|
+
t.$slots.item ? P(t.$slots, "item", {
|
|
598
600
|
key: 0,
|
|
599
601
|
item: $
|
|
600
|
-
}) : (d(), b(
|
|
601
|
-
|
|
602
|
+
}) : (d(), b(D, { key: 1 }, [
|
|
603
|
+
L(C($.name), 1)
|
|
602
604
|
], 64))
|
|
603
605
|
]),
|
|
604
606
|
_: 2
|
|
@@ -608,7 +610,7 @@ const fe = { class: "top-editArea_footer" }, De = /* @__PURE__ */ E({
|
|
|
608
610
|
type: "regular"
|
|
609
611
|
}, {
|
|
610
612
|
default: k(() => [
|
|
611
|
-
|
|
613
|
+
L(C(t.$i18n.Common.No_results), 1)
|
|
612
614
|
]),
|
|
613
615
|
_: 1
|
|
614
616
|
})) : I("", !0),
|
|
@@ -617,7 +619,7 @@ const fe = { class: "top-editArea_footer" }, De = /* @__PURE__ */ E({
|
|
|
617
619
|
type: "regular"
|
|
618
620
|
}, {
|
|
619
621
|
default: k(() => [
|
|
620
|
-
|
|
622
|
+
G(m(ie), { type: "circles" })
|
|
621
623
|
]),
|
|
622
624
|
_: 1
|
|
623
625
|
})) : I("", !0)
|
|
@@ -630,7 +632,7 @@ const fe = { class: "top-editArea_footer" }, De = /* @__PURE__ */ E({
|
|
|
630
632
|
fn: k(() => {
|
|
631
633
|
var f;
|
|
632
634
|
return [
|
|
633
|
-
|
|
635
|
+
G(m(de), {
|
|
634
636
|
title: "Поиск",
|
|
635
637
|
icon: "",
|
|
636
638
|
modelValue: m(a).searchText.value,
|
|
@@ -645,10 +647,10 @@ const fe = { class: "top-editArea_footer" }, De = /* @__PURE__ */ E({
|
|
|
645
647
|
]), 1032, ["notch"]);
|
|
646
648
|
};
|
|
647
649
|
}
|
|
648
|
-
}),
|
|
650
|
+
}), Ae = ["data-top-icon"], $e = { class: "top-info_text" }, ke = {
|
|
649
651
|
key: 0,
|
|
650
652
|
class: "top-info_value"
|
|
651
|
-
},
|
|
653
|
+
}, Oe = /* @__PURE__ */ E({
|
|
652
654
|
__name: "info",
|
|
653
655
|
props: {
|
|
654
656
|
icon: {},
|
|
@@ -657,25 +659,25 @@ const fe = { class: "top-editArea_footer" }, De = /* @__PURE__ */ E({
|
|
|
657
659
|
},
|
|
658
660
|
setup(l) {
|
|
659
661
|
return (e, o) => (d(), b("div", {
|
|
660
|
-
class:
|
|
662
|
+
class: S({
|
|
661
663
|
"top-info": !0,
|
|
662
664
|
["top-size_" + e.size]: !0,
|
|
663
665
|
["top-info-styling_" + e.styling]: !0
|
|
664
666
|
}),
|
|
665
667
|
"data-top-icon": e.icon
|
|
666
668
|
}, [
|
|
667
|
-
K("div",
|
|
668
|
-
|
|
669
|
+
K("div", $e, [
|
|
670
|
+
P(e.$slots, "default")
|
|
669
671
|
]),
|
|
670
|
-
e.$slots.additional ? (d(), b("span",
|
|
671
|
-
|
|
672
|
+
e.$slots.additional ? (d(), b("span", ke, [
|
|
673
|
+
P(e.$slots, "additional")
|
|
672
674
|
])) : I("", !0)
|
|
673
|
-
], 10,
|
|
675
|
+
], 10, Ae));
|
|
674
676
|
}
|
|
675
|
-
}),
|
|
677
|
+
}), we = {
|
|
676
678
|
key: 0,
|
|
677
679
|
class: "top-policy"
|
|
678
|
-
},
|
|
680
|
+
}, Ie = { class: "top-policy_title" }, Ce = ["innerHTML"], Ne = /* @__PURE__ */ E({
|
|
679
681
|
__name: "policy",
|
|
680
682
|
props: {
|
|
681
683
|
title: {},
|
|
@@ -687,18 +689,18 @@ const fe = { class: "top-editArea_footer" }, De = /* @__PURE__ */ E({
|
|
|
687
689
|
const o = e, s = B(!0), p = () => {
|
|
688
690
|
s.value = !1, o("accept");
|
|
689
691
|
};
|
|
690
|
-
return (r, a) => s.value ? (d(), b("div",
|
|
691
|
-
K("div",
|
|
692
|
+
return (r, a) => s.value ? (d(), b("div", we, [
|
|
693
|
+
K("div", Ie, C(r.title), 1),
|
|
692
694
|
K("div", {
|
|
693
695
|
class: "top-policy_description",
|
|
694
696
|
innerHTML: r.description
|
|
695
|
-
}, null, 8,
|
|
696
|
-
|
|
697
|
+
}, null, 8, Ce),
|
|
698
|
+
G(m(H), {
|
|
697
699
|
size: "m",
|
|
698
700
|
onClick: p
|
|
699
701
|
}, {
|
|
700
702
|
default: k(() => [
|
|
701
|
-
|
|
703
|
+
L(C(r.acceptText), 1)
|
|
702
704
|
]),
|
|
703
705
|
_: 1
|
|
704
706
|
})
|
|
@@ -706,13 +708,13 @@ const fe = { class: "top-editArea_footer" }, De = /* @__PURE__ */ E({
|
|
|
706
708
|
}
|
|
707
709
|
});
|
|
708
710
|
export {
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
711
|
+
Ge as TopCheckboxGroup,
|
|
712
|
+
Ke as TopEditArea,
|
|
713
|
+
Re as TopEditInput,
|
|
714
|
+
Oe as TopInfo,
|
|
715
|
+
He as TopMenu,
|
|
716
|
+
Ne as TopPolicy,
|
|
717
|
+
De as TopRadioGroup,
|
|
718
|
+
Pe as TopSelector2
|
|
717
719
|
};
|
|
718
720
|
//# sourceMappingURL=formsExt.js.map
|