@topvisor/ui 1.4.0-TopGroupSelector.5 → 1.4.0-TopGroupSelector.7
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/policy.vue_vue_type_style_index_0_lang-BfL6Mj6K.amd.js +2 -0
- package/.chunks/{policy.vue_vue_type_style_index_0_lang-BUIBGweg.amd.js.map → policy.vue_vue_type_style_index_0_lang-BfL6Mj6K.amd.js.map} +1 -1
- package/.chunks/{policy.vue_vue_type_style_index_0_lang-B61ZEDWr.es.js → policy.vue_vue_type_style_index_0_lang-b4Vb3SlQ.es.js} +107 -105
- package/.chunks/{policy.vue_vue_type_style_index_0_lang-B61ZEDWr.es.js.map → policy.vue_vue_type_style_index_0_lang-b4Vb3SlQ.es.js.map} +1 -1
- package/.chunks/popupHint.vue_vue_type_style_index_0_lang-Bp_-W068.es.js.map +1 -1
- package/.chunks/popupHint.vue_vue_type_style_index_0_lang-D42xEF-j.amd.js.map +1 -1
- package/api/index.amd.js +1 -1
- package/api/index.amd.js.map +1 -1
- package/api/index.js +13 -11
- package/api/index.js.map +1 -1
- package/assets/project.css +1 -1
- package/formsExt/formsExt.amd.js +1 -1
- package/formsExt/formsExt.js +1 -1
- package/package.json +1 -1
- package/popup/worker.amd.js +1 -1
- package/popup/worker.amd.js.map +1 -1
- package/popup/worker.js +9 -7
- 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 +41 -43
- package/project/project.js.map +1 -1
- package/src/components/project/project.d.ts +0 -10
- package/.chunks/policy.vue_vue_type_style_index_0_lang-BUIBGweg.amd.js +0 -2
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
const fileNames = ['../assets/policy.css'].map(fileName => import.meta.resolve(fileName));
|
|
4
4
|
_autoloadCSSCore.insertCSSLinkToPage(fileNames, true);
|
|
5
5
|
|
|
6
|
-
import { defineComponent as J, mergeModels as
|
|
7
|
-
import { e as X, b as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { _ as
|
|
10
|
-
import { invertKeyboardLayout as
|
|
11
|
-
import { g as
|
|
12
|
-
const
|
|
6
|
+
import { defineComponent as J, mergeModels as W, useModel as ee, ref as $, onMounted as ae, onUpdated as se, createElementBlock as L, openBlock as g, normalizeClass as ne, createCommentVNode as M, Fragment as F, renderList as z, createBlock as S, mergeProps as R, createSlots as U, withCtx as B, createTextVNode as E, toDisplayString as P, createVNode as te, createElementVNode as re, withModifiers as oe, computed as N, watch as H, toRef as O, resolveComponent as ie, resolveDirective as ue, unref as f, renderSlot as ce, withDirectives as Q, resolveDynamicComponent as fe } from "vue";
|
|
7
|
+
import { e as X, b as de, C as Y, d as pe, u as ve, r as me } from "./forms-Cwv0JCi5.es.js";
|
|
8
|
+
import { _ as ye, b as Z } from "./popupHint.vue_vue_type_style_index_0_lang-Bp_-W068.es.js";
|
|
9
|
+
import { _ as he } from "./widgetInput.vue_vue_type_script_setup_true_lang-HbtV9agA.es.js";
|
|
10
|
+
import { invertKeyboardLayout as ge } from "../utils/keyboard.js";
|
|
11
|
+
import { g as Ae } from "./field-CyyFzM-Y.es.js";
|
|
12
|
+
const Ie = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "top-menu_selectAll"
|
|
15
15
|
}, Re = /* @__PURE__ */ J({
|
|
16
16
|
__name: "menu",
|
|
17
|
-
props: /* @__PURE__ */
|
|
17
|
+
props: /* @__PURE__ */ W({
|
|
18
18
|
modelValue: {},
|
|
19
19
|
items: {},
|
|
20
20
|
isMultiple: { type: Boolean },
|
|
@@ -33,14 +33,14 @@ const Ae = {
|
|
|
33
33
|
!a.isMultiple && typeof l.value != "string" && typeof l.value != "number" && console.warn('Type check failed for prop "modelValue". Expected String: ' + typeof l.value), a.isMultiple && !Array.isArray(l.value) && console.warn('Type check failed for prop "modelValue". Expected Array: ' + typeof l.value), a.isMultiple && !a.canBeEmptyMultiple && Array.isArray(l.value) && !l.value.length && a.items[0] && (l.value = [a.items[0]?.href ?? a.items[0]?.value]);
|
|
34
34
|
const u = (n) => Array.isArray(l.value) ? l.value.includes(n.value) : n.value === l.value, b = (n, v = !1) => {
|
|
35
35
|
if (Array.isArray(l.value)) {
|
|
36
|
-
let
|
|
36
|
+
let i = l.value.slice();
|
|
37
37
|
if (v) {
|
|
38
|
-
|
|
39
|
-
const A =
|
|
40
|
-
A === -1 ?
|
|
38
|
+
i.length || (i = a.items.map((y) => y.value));
|
|
39
|
+
const A = i.indexOf(n.value);
|
|
40
|
+
A === -1 ? i.push(n.value) : i.splice(A, 1);
|
|
41
41
|
} else
|
|
42
|
-
|
|
43
|
-
!a.canBeEmptyMultiple && !
|
|
42
|
+
i.length === 1 && i[0] === n.value ? i = [] : i = [n.value];
|
|
43
|
+
!a.canBeEmptyMultiple && !i.length && (i = [n.value]), l.value = i;
|
|
44
44
|
return;
|
|
45
45
|
}
|
|
46
46
|
l.value = n.value;
|
|
@@ -52,9 +52,9 @@ const Ae = {
|
|
|
52
52
|
}, c = (n = !0) => {
|
|
53
53
|
const v = t.value.querySelector(".top-active");
|
|
54
54
|
if (!v) return;
|
|
55
|
-
const
|
|
55
|
+
const i = 24, A = v.offsetLeft - t.value.offsetLeft - i, y = v.offsetLeft - t.value.offsetLeft + v.clientWidth + i, h = t.value.scrollLeft, x = t.value.clientWidth + t.value.scrollLeft;
|
|
56
56
|
let I;
|
|
57
|
-
A < h && (I = A), y > x && (I = y - t.value.clientWidth), I !== void 0 && (
|
|
57
|
+
A < h && (I = A), y > x && (I = y - t.value.clientWidth), I !== void 0 && (de() ? Y.$?.(t.value).animate({ scrollLeft: I }, n ? 200 : 0) : t.value.scrollTo({ left: I, behavior: n ? "smooth" : "auto" }));
|
|
58
58
|
}, s = () => {
|
|
59
59
|
if (Array.isArray(l.value)) {
|
|
60
60
|
if (l.value.length === a.items.length) {
|
|
@@ -64,38 +64,38 @@ const Ae = {
|
|
|
64
64
|
l.value = a.items.map((n) => n.href ?? n.value);
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
|
-
return
|
|
67
|
+
return ae(() => c(!1)), se(() => c(!0)), (n, v) => (g(), L("div", {
|
|
68
68
|
ref_key: "el",
|
|
69
69
|
ref: t,
|
|
70
|
-
class:
|
|
70
|
+
class: ne({
|
|
71
71
|
"top-menu": !0,
|
|
72
72
|
["top-style_" + e.styling]: !0
|
|
73
73
|
// ['top-unwrap-x']: styling === 'default',
|
|
74
74
|
}),
|
|
75
75
|
onWheel: d
|
|
76
76
|
}, [
|
|
77
|
-
(g(!0), L(F, null,
|
|
77
|
+
(g(!0), L(F, null, z(e.items, (i) => (g(), S(X, R({ ref_for: !0 }, i, {
|
|
78
78
|
class: "top-menu_item",
|
|
79
79
|
color: "theme",
|
|
80
|
-
onClick: (A) => b(
|
|
81
|
-
isActive: u(
|
|
82
|
-
}),
|
|
83
|
-
|
|
80
|
+
onClick: (A) => b(i, A.ctrlKey || A.metaKey),
|
|
81
|
+
isActive: u(i)
|
|
82
|
+
}), U({ _: 2 }, [
|
|
83
|
+
i.content ? {
|
|
84
84
|
name: "default",
|
|
85
85
|
fn: B(() => [
|
|
86
|
-
E(P(
|
|
86
|
+
E(P(i.content), 1)
|
|
87
87
|
]),
|
|
88
88
|
key: "0"
|
|
89
89
|
} : void 0
|
|
90
90
|
]), 1040, ["onClick", "isActive"]))), 256)),
|
|
91
|
-
Array.isArray(l.value) && e.selectAllItem ? (g(), L("div",
|
|
91
|
+
Array.isArray(l.value) && e.selectAllItem ? (g(), L("div", Ie, [
|
|
92
92
|
te(X, R(e.selectAllItem, {
|
|
93
93
|
class: "top-menu_item",
|
|
94
94
|
color: "theme",
|
|
95
95
|
styling: "",
|
|
96
|
-
onClick: v[0] || (v[0] = (
|
|
96
|
+
onClick: v[0] || (v[0] = (i) => s()),
|
|
97
97
|
isActive: l.value.length === e.items.length
|
|
98
|
-
}),
|
|
98
|
+
}), U({ _: 2 }, [
|
|
99
99
|
e.selectAllItem.content ? {
|
|
100
100
|
name: "default",
|
|
101
101
|
fn: B(() => [
|
|
@@ -107,7 +107,7 @@ const Ae = {
|
|
|
107
107
|
])) : M("", !0)
|
|
108
108
|
], 34));
|
|
109
109
|
}
|
|
110
|
-
}),
|
|
110
|
+
}), ke = { class: "top-selector2_itemMulti top-ellipsis" }, Le = /* @__PURE__ */ J({
|
|
111
111
|
__name: "itemMulti",
|
|
112
112
|
props: {
|
|
113
113
|
id: {},
|
|
@@ -115,33 +115,33 @@ const Ae = {
|
|
|
115
115
|
},
|
|
116
116
|
emits: ["delete"],
|
|
117
117
|
setup(e) {
|
|
118
|
-
return (a, l) => (g(), L("div",
|
|
118
|
+
return (a, l) => (g(), L("div", ke, [
|
|
119
119
|
E(P(e.name) + " ", 1),
|
|
120
|
-
|
|
120
|
+
re("span", {
|
|
121
121
|
class: "top-selector2_itemMultiDelete",
|
|
122
122
|
"data-top-icon": "",
|
|
123
123
|
onClick: l[0] || (l[0] = (t) => a.$emit("delete", { id: e.id, name: e.name })),
|
|
124
|
-
onMousedown: l[1] || (l[1] =
|
|
124
|
+
onMousedown: l[1] || (l[1] = oe(() => {
|
|
125
125
|
}, ["stop"]))
|
|
126
126
|
}, null, 32)
|
|
127
127
|
]));
|
|
128
128
|
}
|
|
129
|
-
}), D = /* @__PURE__ */ new Map(),
|
|
129
|
+
}), D = /* @__PURE__ */ new Map(), Ce = (e) => {
|
|
130
130
|
D.get(e)?.clear();
|
|
131
|
-
},
|
|
131
|
+
}, Te = (e) => {
|
|
132
132
|
const a = window.mo?.user?.id;
|
|
133
133
|
return JSON.stringify(e.params) + ":" + e.url + ":" + a;
|
|
134
|
-
},
|
|
134
|
+
}, be = (e, a) => D.get(a)?.get(e), xe = (e, a, l) => {
|
|
135
135
|
D.has(a) || D.set(a, /* @__PURE__ */ new Map()), D.get(a)?.set(e, l);
|
|
136
|
-
},
|
|
136
|
+
}, we = (e, a, l, t) => {
|
|
137
137
|
const u = $([]), b = $(!1), d = $(0);
|
|
138
138
|
let c = "", s;
|
|
139
139
|
e && !e.params.limit && (e.params.limit = 100);
|
|
140
140
|
const n = async () => {
|
|
141
141
|
if (!e) return;
|
|
142
|
-
const y = t ?
|
|
142
|
+
const y = t ? Te(e) : void 0;
|
|
143
143
|
if (y) {
|
|
144
|
-
const I =
|
|
144
|
+
const I = be(y, e.path);
|
|
145
145
|
if (I)
|
|
146
146
|
return e.abortByFingerprint(), I;
|
|
147
147
|
}
|
|
@@ -156,7 +156,7 @@ const Ae = {
|
|
|
156
156
|
console.warn(`В result[${x}] нет id или name`);
|
|
157
157
|
return;
|
|
158
158
|
}
|
|
159
|
-
return y &&
|
|
159
|
+
return y && xe(y, e.path, h), h;
|
|
160
160
|
}, v = async (y) => {
|
|
161
161
|
if (!e) return;
|
|
162
162
|
if (y) {
|
|
@@ -167,7 +167,7 @@ const Ae = {
|
|
|
167
167
|
a?.(e, c), b.value = !0;
|
|
168
168
|
const h = await n();
|
|
169
169
|
b.value = !1, d.value++, h && (s = h.nextOffset, y ? u.value = u.value.concat(h.result) : u.value = h.result);
|
|
170
|
-
},
|
|
170
|
+
}, i = pe(() => v(!1), 200);
|
|
171
171
|
return {
|
|
172
172
|
apiRequest: e,
|
|
173
173
|
items: u,
|
|
@@ -180,18 +180,18 @@ const Ae = {
|
|
|
180
180
|
e.abortByFingerprint(), u.value = [];
|
|
181
181
|
return;
|
|
182
182
|
}
|
|
183
|
-
y === c && u.value.length || (c = y, h ?
|
|
183
|
+
y === c && u.value.length || (c = y, h ? i() : v(!1));
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
};
|
|
187
|
-
},
|
|
187
|
+
}, le = 0, K = null, _ = (e, a, l = !0) => l && a.id === K ? Array.isArray(e) ? e.some((t) => t.id === a.id && t.name === a.name) : a.name === e.name : Array.isArray(e) ? e.some((t) => t.id === a.id) : a.id === e.id, Ke = (e, a, l) => {
|
|
188
188
|
let t = e.params.filters ?? [];
|
|
189
|
-
t = t.filter((u) => u.name !== l), a && t.push(
|
|
190
|
-
},
|
|
189
|
+
t = t.filter((u) => u.name !== l), a && t.push(Ae(l, "CONTAINS", [a])), e.changeParams({ filters: t });
|
|
190
|
+
}, Se = (e, a, l, t, u, b, d, c, s) => {
|
|
191
191
|
const n = $(""), v = {
|
|
192
|
-
id:
|
|
193
|
-
name:
|
|
194
|
-
},
|
|
192
|
+
id: le,
|
|
193
|
+
name: ve().Common.All
|
|
194
|
+
}, i = () => {
|
|
195
195
|
n.value = "";
|
|
196
196
|
}, A = () => !(!s.apiRequest || n.value.length >= c), y = N(() => {
|
|
197
197
|
const r = [];
|
|
@@ -199,15 +199,15 @@ const Ae = {
|
|
|
199
199
|
}), h = $([]), x = () => {
|
|
200
200
|
h.value = I();
|
|
201
201
|
}, I = () => {
|
|
202
|
-
const r = n.value.toLowerCase(), C =
|
|
203
|
-
let
|
|
202
|
+
const r = n.value.toLowerCase(), C = ge(r);
|
|
203
|
+
let o = [], w;
|
|
204
204
|
const T = [], j = () => {
|
|
205
|
-
T.at(-1)?.listItemProps?.type === "delimiter" && T.pop(), T.length && (
|
|
205
|
+
T.at(-1)?.listItemProps?.type === "delimiter" && T.pop(), T.length && (w && o.push(w), o.push(...T), T.length = 0);
|
|
206
206
|
};
|
|
207
207
|
for (const k of y.value)
|
|
208
208
|
switch (k.listItemProps?.type) {
|
|
209
209
|
case "title":
|
|
210
|
-
j(),
|
|
210
|
+
j(), w = k;
|
|
211
211
|
break;
|
|
212
212
|
case "delimiter":
|
|
213
213
|
if (T.length) {
|
|
@@ -219,27 +219,27 @@ const Ae = {
|
|
|
219
219
|
const V = k.name.toLowerCase();
|
|
220
220
|
(k.id === Number(r) || V.includes(r) || V.includes(C)) && (V === r || V === C ? T.unshift(k) : T.push(k));
|
|
221
221
|
}
|
|
222
|
-
if (j(),
|
|
223
|
-
!
|
|
222
|
+
if (j(), o.push(...s.items.value), b.value && n.value && // результаты могут быть найдены, но не точные, тогда предложить добавить элемент
|
|
223
|
+
!o.find((k) => k.name.toLowerCase() === r)) {
|
|
224
224
|
const k = {
|
|
225
|
-
id:
|
|
225
|
+
id: K,
|
|
226
226
|
name: n.value
|
|
227
227
|
};
|
|
228
|
-
|
|
228
|
+
o.push(k);
|
|
229
229
|
}
|
|
230
|
-
return t && (
|
|
231
|
-
},
|
|
232
|
-
r.listItemProps?.type === "title" || r.listItemProps?.type === "delimiter" || (t && Array.isArray(e.value) ? _(e.value, r) || (e.value = [...e.value, r]) : e.value = r, r.id ===
|
|
233
|
-
|
|
230
|
+
return t && (o = o.filter((k) => !_(e.value, k))), o;
|
|
231
|
+
}, q = (r) => {
|
|
232
|
+
r.listItemProps?.type === "title" || r.listItemProps?.type === "delimiter" || (t && Array.isArray(e.value) ? _(e.value, r) || (e.value = [...e.value, r]) : e.value = r, r.id === K && a("appendItem", r), setTimeout(() => {
|
|
233
|
+
i();
|
|
234
234
|
}));
|
|
235
235
|
};
|
|
236
236
|
if (s.apiRequest) {
|
|
237
237
|
const r = [l, s.items];
|
|
238
|
-
t && r.push(e),
|
|
238
|
+
t && r.push(e), H(r, () => {
|
|
239
239
|
x();
|
|
240
240
|
});
|
|
241
241
|
} else
|
|
242
|
-
|
|
242
|
+
H([e, l, n], () => {
|
|
243
243
|
x();
|
|
244
244
|
}, {
|
|
245
245
|
immediate: !0,
|
|
@@ -248,14 +248,14 @@ const Ae = {
|
|
|
248
248
|
});
|
|
249
249
|
return {
|
|
250
250
|
searchText: n,
|
|
251
|
-
resetSearch:
|
|
251
|
+
resetSearch: i,
|
|
252
252
|
genIsShort: A,
|
|
253
253
|
itemsForShow: h,
|
|
254
|
-
selectItem:
|
|
254
|
+
selectItem: q,
|
|
255
255
|
selectNextItem: () => {
|
|
256
256
|
if (Array.isArray(e.value)) return;
|
|
257
|
-
const r = h.value.filter((
|
|
258
|
-
e.value = { ...r[
|
|
257
|
+
const r = h.value.filter((w) => !["title", "delimiter"].includes(w.listItemProps?.type ?? "")), o = (r.findIndex((w) => w.id === e.value.id) + 1) % r.length;
|
|
258
|
+
e.value = { ...r[o] };
|
|
259
259
|
},
|
|
260
260
|
deleteItemByItem: async (r) => {
|
|
261
261
|
Array.isArray(e.value) && (e.value = e.value.filter((C) => C.id !== r.id || C.name !== r.name));
|
|
@@ -272,7 +272,7 @@ const Ae = {
|
|
|
272
272
|
class: "top-selector2_placeholder top-ellipsis"
|
|
273
273
|
}, qe = /* @__PURE__ */ J({
|
|
274
274
|
__name: "selector2",
|
|
275
|
-
props: /* @__PURE__ */
|
|
275
|
+
props: /* @__PURE__ */ W({
|
|
276
276
|
modelValue: {},
|
|
277
277
|
items: { default: () => [] },
|
|
278
278
|
title: {},
|
|
@@ -298,7 +298,7 @@ const Ae = {
|
|
|
298
298
|
modelValue: { required: !0 },
|
|
299
299
|
modelModifiers: {}
|
|
300
300
|
}),
|
|
301
|
-
emits: /* @__PURE__ */
|
|
301
|
+
emits: /* @__PURE__ */ W(["appendItem"], ["update:modelValue"]),
|
|
302
302
|
setup(e, { expose: a, emit: l }) {
|
|
303
303
|
const t = e, u = ee(e, "modelValue"), b = l;
|
|
304
304
|
a({
|
|
@@ -308,23 +308,23 @@ const Ae = {
|
|
|
308
308
|
* @param resetAPICache - Сбросить API кеш, по умолчанию не сбрасывается. Для случаев, когда загруженные данные становятся неактуальными
|
|
309
309
|
*/
|
|
310
310
|
resetCache: (m = !1) => {
|
|
311
|
-
c.apiRequest && (m &&
|
|
311
|
+
c.apiRequest && (m && Ce(c.apiRequest.path), c.items.value = [], c.countLoading.value = 0, c.apiRequest.params.offset = 0, requestAnimationFrame(() => {
|
|
312
312
|
s.itemsForShow.value = [];
|
|
313
|
-
}),
|
|
313
|
+
}), i()?.elPopup && c.setSearchTextAndLoad(s.searchText.value));
|
|
314
314
|
}
|
|
315
315
|
});
|
|
316
|
-
const d = N(() => t.searchType === "inline" && t.multiselect || t.searchType === "inline" &&
|
|
316
|
+
const d = N(() => t.searchType === "inline" && t.multiselect || t.searchType === "inline" && Y.state.isMobile ? "popup" : t.searchType), c = we(t.api, t.apiSetSearchParams, t.minLength, t.useCache), s = Se(
|
|
317
317
|
u,
|
|
318
318
|
b,
|
|
319
|
-
|
|
319
|
+
O(t, "items"),
|
|
320
320
|
t.multiselect,
|
|
321
|
-
|
|
322
|
-
|
|
321
|
+
O(t, "useAllItem"),
|
|
322
|
+
O(t, "appendSearchToResult"),
|
|
323
323
|
d,
|
|
324
324
|
t.minLength,
|
|
325
325
|
c
|
|
326
|
-
), n = N(() => t.buttonProps ? "TopButton" : d.value === "inline" ? "TopInput" : "div"), v = $(null),
|
|
327
|
-
c.apiRequest &&
|
|
326
|
+
), n = N(() => t.buttonProps ? "TopButton" : d.value === "inline" ? "TopInput" : "div"), v = $(null), i = () => v.value?.popup;
|
|
327
|
+
c.apiRequest && H(s.searchText, () => {
|
|
328
328
|
c.setSearchTextAndLoad(s.searchText.value);
|
|
329
329
|
});
|
|
330
330
|
const A = N(() => Array.isArray(u.value) || t.multiselect || !t.selectedAsPlaceholder && d.value !== "inline" ? t.placeholder : u.value?.name || t.placeholder), y = (m) => {
|
|
@@ -347,32 +347,32 @@ const Ae = {
|
|
|
347
347
|
break;
|
|
348
348
|
}
|
|
349
349
|
const r = m.key.length === 1 && !m.ctrlKey && !m.metaKey;
|
|
350
|
-
(d.value === "popup" || d.value === "inline") && r && (p = !0),
|
|
350
|
+
(d.value === "popup" || d.value === "inline") && r && (p = !0), i()?.elPopup && (p = !1), p && (d.value === "popup" && (m.preventDefault(), m.stopPropagation(), r && (s.searchText.value || (s.searchText.value = m.key))), m.currentTarget?.click());
|
|
351
351
|
}, h = (m) => {
|
|
352
352
|
m.preventDefault(), s.selectNextItem();
|
|
353
353
|
}, x = () => {
|
|
354
354
|
c.apiRequest && c.setSearchTextAndLoad(s.searchText.value, !1);
|
|
355
355
|
}, I = () => {
|
|
356
356
|
d.value === "popup" && s.searchText.value && s.resetSearch();
|
|
357
|
-
},
|
|
357
|
+
}, q = (m) => {
|
|
358
358
|
const p = m.target;
|
|
359
359
|
p.scrollTop / (p.scrollHeight - p.offsetHeight) > 0.8 && c.load(!0);
|
|
360
360
|
};
|
|
361
361
|
return (m, p) => {
|
|
362
|
-
const r =
|
|
363
|
-
return g(),
|
|
362
|
+
const r = ie("TopLoadbar"), C = ue("top-focus");
|
|
363
|
+
return g(), S(f(ye), {
|
|
364
364
|
ref_key: "popupRef",
|
|
365
365
|
ref: v,
|
|
366
|
-
onOpen: p[3] || (p[3] = (
|
|
367
|
-
onClose: p[4] || (p[4] = (
|
|
368
|
-
onScrollContentList: p[5] || (p[5] = (
|
|
366
|
+
onOpen: p[3] || (p[3] = (o) => x()),
|
|
367
|
+
onClose: p[4] || (p[4] = (o) => I()),
|
|
368
|
+
onScrollContentList: p[5] || (p[5] = (o) => f(c) ? q(o) : void 0),
|
|
369
369
|
notch: !1,
|
|
370
370
|
transitionDuration: 0,
|
|
371
371
|
openByFocusInput: d.value === "inline" && (e.openByFocusInput ?? !0),
|
|
372
372
|
disabled: d.value === "inline" && f(s).genIsShort()
|
|
373
|
-
},
|
|
373
|
+
}, U({
|
|
374
374
|
opener: B(() => [
|
|
375
|
-
Q((g(),
|
|
375
|
+
Q((g(), S(fe(n.value), R(e.buttonProps, {
|
|
376
376
|
class: {
|
|
377
377
|
"top-selector2": !0,
|
|
378
378
|
"top-selector2-multiselect": e.multiselect,
|
|
@@ -387,18 +387,18 @@ const Ae = {
|
|
|
387
387
|
icon: e.icon,
|
|
388
388
|
tabindex: "0",
|
|
389
389
|
onKeydown: y,
|
|
390
|
-
onBlur: p[0] || (p[0] = (
|
|
390
|
+
onBlur: p[0] || (p[0] = (o) => d.value === "inline" && f(s).resetSearch()),
|
|
391
391
|
placeholder: A.value,
|
|
392
392
|
title: e.title,
|
|
393
393
|
captionType: d.value === "inline" && e.title !== void 0 ? "top" : void 0,
|
|
394
394
|
modelValue: f(s).searchText.value,
|
|
395
|
-
"onUpdate:modelValue": p[1] || (p[1] = (
|
|
395
|
+
"onUpdate:modelValue": p[1] || (p[1] = (o) => f(s).searchText.value = o)
|
|
396
396
|
}), {
|
|
397
397
|
default: B(() => [
|
|
398
398
|
e.multiselect ? (g(), L("div", Be, [
|
|
399
|
-
(g(!0), L(F, null,
|
|
400
|
-
id:
|
|
401
|
-
name:
|
|
399
|
+
(g(!0), L(F, null, z(u.value, (o) => (g(), S(Le, {
|
|
400
|
+
id: o.id,
|
|
401
|
+
name: o.name,
|
|
402
402
|
onDelete: f(s).deleteItemByItem
|
|
403
403
|
}, null, 8, ["id", "name", "onDelete"]))), 256))
|
|
404
404
|
])) : M("", !0),
|
|
@@ -422,51 +422,53 @@ const Ae = {
|
|
|
422
422
|
])
|
|
423
423
|
]),
|
|
424
424
|
contentList: B(() => [
|
|
425
|
-
(g(!0), L(F, null,
|
|
426
|
-
key:
|
|
425
|
+
(g(!0), L(F, null, z(f(s).itemsForShow.value, (o) => (g(), S(f(Z), R({
|
|
426
|
+
key: o.id ?? void 0,
|
|
427
427
|
class: {
|
|
428
|
-
"top-active": !Array.isArray(u.value) && !e.multiselect && u.value.id ===
|
|
428
|
+
"top-active": !Array.isArray(u.value) && !e.multiselect && u.value.id === o.id && u.value.name === o.name,
|
|
429
|
+
"top-selector2_item-all": o.id === f(le),
|
|
430
|
+
"top-selector2_item-new": o.id === f(K)
|
|
429
431
|
}
|
|
430
|
-
}, { ref_for: !0 },
|
|
431
|
-
closeByClick: !e.multiselect || f(
|
|
432
|
-
onClick: (
|
|
432
|
+
}, { ref_for: !0 }, o.listItemProps, {
|
|
433
|
+
closeByClick: !e.multiselect || f(Y).state.isMobile,
|
|
434
|
+
onClick: (w) => f(s).selectItem(o)
|
|
433
435
|
}), {
|
|
434
436
|
default: B(() => [
|
|
435
|
-
m.$slots.item ?
|
|
437
|
+
m.$slots.item ? ce(m.$slots, "item", {
|
|
436
438
|
key: 0,
|
|
437
|
-
item:
|
|
439
|
+
item: o
|
|
438
440
|
}) : (g(), L(F, { key: 1 }, [
|
|
439
|
-
E(P(
|
|
441
|
+
E(P(o.name), 1)
|
|
440
442
|
], 64))
|
|
441
443
|
]),
|
|
442
444
|
_: 2
|
|
443
445
|
}, 1040, ["class", "closeByClick", "onClick"]))), 128)),
|
|
444
|
-
!f(s).itemsForShow.value.length && !f(s).genIsShort() ? (g(),
|
|
446
|
+
!f(s).itemsForShow.value.length && !f(s).genIsShort() ? (g(), S(f(Z), {
|
|
445
447
|
key: 0,
|
|
446
448
|
type: "regular"
|
|
447
449
|
}, {
|
|
448
450
|
default: B(() => [
|
|
449
451
|
!f(c).isLoading.value || f(c).countLoading.value ? (g(), L(F, { key: 0 }, [
|
|
450
452
|
E(P(m.$i18n.Common.No_results), 1)
|
|
451
|
-
], 64)) : (g(),
|
|
453
|
+
], 64)) : (g(), S(f(me), {
|
|
452
454
|
key: 1,
|
|
453
455
|
type: "circles"
|
|
454
456
|
}))
|
|
455
457
|
]),
|
|
456
458
|
_: 1
|
|
457
459
|
})) : M("", !0),
|
|
458
|
-
f(c).countLoading.value && f(c).isLoading.value && d.value === "inline" ? (g(),
|
|
460
|
+
f(c).countLoading.value && f(c).isLoading.value && d.value === "inline" ? (g(), S(r, { key: 1 })) : M("", !0)
|
|
459
461
|
]),
|
|
460
462
|
_: 2
|
|
461
463
|
}, [
|
|
462
464
|
d.value === "popup" ? {
|
|
463
465
|
name: "widget",
|
|
464
466
|
fn: B(() => [
|
|
465
|
-
Q(te(f(
|
|
467
|
+
Q(te(f(he), {
|
|
466
468
|
title: "Поиск",
|
|
467
469
|
icon: "",
|
|
468
470
|
modelValue: f(s).searchText.value,
|
|
469
|
-
"onUpdate:modelValue": p[2] || (p[2] = (
|
|
471
|
+
"onUpdate:modelValue": p[2] || (p[2] = (o) => f(s).searchText.value = o),
|
|
470
472
|
isLoading: !!f(c).countLoading.value && f(c).isLoading.value,
|
|
471
473
|
placeholder: A.value
|
|
472
474
|
}, null, 8, ["modelValue", "isLoading", "placeholder"]), [
|
|
@@ -485,10 +487,10 @@ const Ae = {
|
|
|
485
487
|
}
|
|
486
488
|
});
|
|
487
489
|
export {
|
|
488
|
-
|
|
490
|
+
K as I,
|
|
489
491
|
qe as _,
|
|
490
492
|
Re as a,
|
|
491
493
|
Ke as b,
|
|
492
|
-
|
|
494
|
+
le as c
|
|
493
495
|
};
|
|
494
|
-
//# sourceMappingURL=policy.vue_vue_type_style_index_0_lang-
|
|
496
|
+
//# sourceMappingURL=policy.vue_vue_type_style_index_0_lang-b4Vb3SlQ.es.js.map
|