@topvisor/ui 1.5.4-preloader.1 → 1.5.4-preloader.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.
Files changed (43) hide show
  1. package/.chunks/api-DQSboD9F.amd.js +2 -0
  2. package/.chunks/api-DQSboD9F.amd.js.map +1 -0
  3. package/.chunks/{api-D-JuUXVn.esm.js → api-DQSboD9F.esm.js} +39 -39
  4. package/.chunks/api-DQSboD9F.esm.js.map +1 -0
  5. package/.chunks/formsExt-B32m6XEQ.amd.js +2 -0
  6. package/.chunks/formsExt-B32m6XEQ.amd.js.map +1 -0
  7. package/.chunks/{formsExt-Dy7EHtJS.esm.js → formsExt-B32m6XEQ.esm.js} +161 -143
  8. package/.chunks/formsExt-B32m6XEQ.esm.js.map +1 -0
  9. package/.chunks/mocker-C3O-c0Np.amd.js +2 -0
  10. package/.chunks/mocker-C3O-c0Np.amd.js.map +1 -0
  11. package/.chunks/{mocker-DOnGwq3y.esm.js → mocker-C3O-c0Np.esm.js} +21 -12
  12. package/.chunks/mocker-C3O-c0Np.esm.js.map +1 -0
  13. package/api/index.amd.js +1 -1
  14. package/api/index.amd.js.map +1 -1
  15. package/api/index.js +1 -1
  16. package/assets/themes/dark-th.css +1 -1
  17. package/assets/themes/dark.css +1 -1
  18. package/assets/themes/light.css +1 -1
  19. package/autoload-css-manifest.amd.json +1 -1
  20. package/autoload-css-manifest.json +1 -1
  21. package/formsExt/formsExt.amd.js +1 -1
  22. package/formsExt/formsExt.amd.js.map +1 -1
  23. package/formsExt/formsExt.js +1 -1
  24. package/package.json +1 -1
  25. package/project/project.amd.js +1 -1
  26. package/project/project.amd.js.map +1 -1
  27. package/project/project.js +3 -3
  28. package/project/project.js.map +1 -1
  29. package/src/api/api/mocker/index.d.ts +1 -1
  30. package/src/api/api/types/mocker.d.ts +14 -1
  31. package/src/components/formsExt/selector2/cache.d.ts +14 -3
  32. package/src/components/formsExt/selector2/composables/useAPI.d.ts +2 -2
  33. package/src/components/project/groupSelector/groups/types.d.ts +1 -1
  34. package/src/components/project/groupSelector/types.d.ts +1 -1
  35. package/.chunks/api-D-JuUXVn.amd.js +0 -2
  36. package/.chunks/api-D-JuUXVn.amd.js.map +0 -1
  37. package/.chunks/api-D-JuUXVn.esm.js.map +0 -1
  38. package/.chunks/formsExt-Dy7EHtJS.amd.js +0 -2
  39. package/.chunks/formsExt-Dy7EHtJS.amd.js.map +0 -1
  40. package/.chunks/formsExt-Dy7EHtJS.esm.js.map +0 -1
  41. package/.chunks/mocker-DOnGwq3y.amd.js +0 -2
  42. package/.chunks/mocker-DOnGwq3y.amd.js.map +0 -1
  43. package/.chunks/mocker-DOnGwq3y.esm.js.map +0 -1
@@ -5,17 +5,17 @@
5
5
  _autoloadCSSCore.insertCSSLinkToPage(fileNames, true);
6
6
  /* end import css */
7
7
 
8
- import "./api-D-JuUXVn.esm.js";
8
+ import "./api-DQSboD9F.esm.js";
9
9
  import { E as e, G as t, O as n, P as r, a as i, c as a, f as o, h as s, r as c, t as l } from "./forms-DKVIpGnH.esm.js";
10
10
  import { t as u } from "./field-DEusYVqS.esm.js";
11
11
  import { invertKeyboardLayout as d } from "../utils/keyboard.js";
12
12
  import { a as f, o as p, s as m } from "./popup-CtiL5V44.esm.js";
13
- import { Fragment as h, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createSlots as x, createTextVNode as S, createVNode as C, defineComponent as w, mergeModels as T, mergeProps as E, normalizeClass as D, onMounted as O, onUpdated as k, openBlock as A, ref as j, renderList as M, renderSlot as N, resolveComponent as P, resolveDirective as F, resolveDynamicComponent as ee, toDisplayString as I, toRef as L, unref as R, useModel as z, watch as B, withCtx as V, withDirectives as H, withKeys as U, withModifiers as W } from "vue";
13
+ import { Fragment as h, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createSlots as x, createTextVNode as S, createVNode as C, defineComponent as w, mergeModels as T, mergeProps as E, normalizeClass as D, onMounted as O, onUnmounted as k, onUpdated as ee, openBlock as A, ref as j, renderList as M, renderSlot as N, resolveComponent as P, resolveDirective as F, resolveDynamicComponent as te, toDisplayString as I, toRef as L, triggerRef as R, unref as z, useModel as B, watch as V, withCtx as H, withDirectives as U, withKeys as W, withModifiers as G } from "vue";
14
14
  //#region src/components/formsExt/menu/menu.vue?vue&type=script&setup=true&lang.ts
15
- var G = {
15
+ var ne = {
16
16
  key: 0,
17
17
  class: "top-menu_selectAll"
18
- }, te = /* @__PURE__ */ w({
18
+ }, re = /* @__PURE__ */ w({
19
19
  __name: "menu",
20
20
  props: /*@__PURE__*/ T({
21
21
  modelValue: {},
@@ -30,7 +30,7 @@ var G = {
30
30
  }),
31
31
  emits: ["update:modelValue"],
32
32
  setup(e) {
33
- let r = e, i = z(e, "modelValue"), a = j();
33
+ let r = e, i = B(e, "modelValue"), a = j();
34
34
  !r.isMultiple && typeof i.value != "string" && typeof i.value != "number" && console.warn("Type check failed for prop \"modelValue\". Expected String: " + typeof i.value), r.isMultiple && !Array.isArray(i.value) && console.warn("Type check failed for prop \"modelValue\". Expected Array: " + typeof i.value), r.isMultiple && !r.canBeEmptyMultiple && Array.isArray(i.value) && !i.value.length && r.items[0] && (i.value = [r.items[0]?.href ?? r.items[0]?.value]);
35
35
  let o = (e) => Array.isArray(i.value) ? i.value.includes(e.value) : e.value === i.value, c = (e, t = !1) => {
36
36
  if (Array.isArray(i.value)) {
@@ -66,7 +66,7 @@ var G = {
66
66
  i.value = r.items.map((e) => e.href ?? e.value);
67
67
  }
68
68
  };
69
- return O(() => u(!1)), k(() => u(!0)), (t, n) => (A(), y("div", {
69
+ return O(() => u(!1)), ee(() => u(!0)), (t, n) => (A(), y("div", {
70
70
  ref_key: "el",
71
71
  ref: a,
72
72
  class: D({
@@ -81,9 +81,9 @@ var G = {
81
81
  isActive: o(e)
82
82
  }), x({ _: 2 }, [e.content ? {
83
83
  name: "default",
84
- fn: V(() => [S(I(e.content), 1)]),
84
+ fn: H(() => [S(I(e.content), 1)]),
85
85
  key: "0"
86
- } : void 0]), 1040, ["onClick", "isActive"]))), 256)), Array.isArray(i.value) && e.selectAllItem ? (A(), y("div", G, [C(s, E(e.selectAllItem, {
86
+ } : void 0]), 1040, ["onClick", "isActive"]))), 256)), Array.isArray(i.value) && e.selectAllItem ? (A(), y("div", ne, [C(s, E(e.selectAllItem, {
87
87
  class: "top-menu_item",
88
88
  color: "theme",
89
89
  styling: "",
@@ -91,11 +91,11 @@ var G = {
91
91
  isActive: i.value.length === e.items.length
92
92
  }), x({ _: 2 }, [e.selectAllItem.content ? {
93
93
  name: "default",
94
- fn: V(() => [S(I(e.selectAllItem.content), 1)]),
94
+ fn: H(() => [S(I(e.selectAllItem.content), 1)]),
95
95
  key: "0"
96
96
  } : void 0]), 1040, ["isActive"])])) : v("", !0)], 34));
97
97
  }
98
- }), ne = { class: "top-selector2_itemMulti top-ellipsis" }, re = /* @__PURE__ */ w({
98
+ }), ie = { class: "top-selector2_itemMulti top-ellipsis" }, ae = /* @__PURE__ */ w({
99
99
  __name: "itemMulti",
100
100
  props: {
101
101
  id: {},
@@ -103,59 +103,77 @@ var G = {
103
103
  },
104
104
  emits: ["delete"],
105
105
  setup(e) {
106
- return (t, n) => (A(), y("div", ne, [S(I(e.name) + " ", 1), b("span", {
106
+ return (t, n) => (A(), y("div", ie, [S(I(e.name) + " ", 1), b("span", {
107
107
  class: "top-selector2_itemMultiDelete",
108
108
  "data-top-icon": "",
109
109
  onClick: n[0] ||= (n) => t.$emit("delete", {
110
110
  id: e.id,
111
111
  name: e.name
112
112
  }),
113
- onMousedown: n[1] ||= W(() => {}, ["stop"])
113
+ onMousedown: n[1] ||= G(() => {}, ["stop"])
114
114
  }, null, 32)]));
115
115
  }
116
- }), K = /* @__PURE__ */ new Map(), q = /* @__PURE__ */ new Map(), J = (e) => (q.has(e) || q.set(e, j(0)), q.get(e)), Y = (e) => {
117
- J(e).value++;
118
- }, ie = (e) => {
119
- K.get(e)?.clear(), Y(e);
120
- }, X = (e, t) => {
121
- let n = K.get(e);
122
- if (n) for (let e of n.values()) t(e, e.result);
123
- }, Z = (e) => {
116
+ }), K = /* @__PURE__ */ new Map(), q = /* @__PURE__ */ new Map(), J = /* @__PURE__ */ new Map(), Y = (e) => (J.has(e) || J.set(e, j(0)), J.get(e)), X = (e) => {
117
+ Y(e).value++;
118
+ }, oe = (e) => {
119
+ K.get(e)?.clear(), X(e);
120
+ }, Z = (e, t) => {
121
+ K.get(e)?.forEach((e) => t(e));
122
+ }, se = (e, t) => {
123
+ q.get(e)?.forEach((e) => t(e));
124
+ }, Q = (e, t, n) => {
125
+ se(e, (e) => {
126
+ let r = !1;
127
+ if (Array.isArray(e.value)) e.value.filter((e) => e.id === t).forEach((e) => {
128
+ Object.assign(e, n), r = !0;
129
+ });
130
+ else {
131
+ if (e.value.id !== t) return;
132
+ Object.assign(e.value, n), r = !0;
133
+ }
134
+ r && R(e);
135
+ });
136
+ }, $ = (e) => {
124
137
  let t = window.mo?.user?.id;
125
138
  return JSON.stringify(e.params) + ":" + e.url + ":" + t;
126
- }, Q = (e, t) => K.get(t)?.get(e), ae = (e, t, n) => {
139
+ }, ce = (e, t) => {
140
+ let n = K.get(t)?.get(e);
141
+ if (n) return n.result = n.result.map((e) => ({ ...e })), n;
142
+ }, le = (e, t, n) => {
127
143
  K.has(t) || K.set(t, /* @__PURE__ */ new Map()), K.get(t)?.set(e, n);
128
- }, oe = (e, t, n) => {
129
- X(e, (e, r) => {
130
- let i = r.find((e) => e.id === t);
131
- i && Object.assign(i, n);
132
- }), Y(e);
133
- }, se = (e, t) => {
134
- X(e, (e, n) => {
135
- let r = n.findIndex((e) => e.id === t);
136
- r !== -1 && (n[r].name = "--", n.splice(r, 1), e.nextOffset && e.nextOffset--);
137
- }), Y(e);
138
- }, ce = (e, t, n, i) => {
139
- let a = j([]), o = j(!1), s = j(0), c = "", l;
140
- e && !e.params.limit && (e.params.limit = 100);
141
- let u = () => {
144
+ }, ue = (e, t) => {
145
+ q.has(e) || q.set(e, /* @__PURE__ */ new Set()), q.get(e)?.add(t), k(() => q.get(e)?.delete(t));
146
+ }, de = (e, t, n) => {
147
+ Z(e, (e) => {
148
+ let r = e.result.find((e) => e.id === t);
149
+ r && Object.assign(r, n);
150
+ }), Q(e, t, n), X(e);
151
+ }, fe = (e, t) => {
152
+ Z(e, (e) => {
153
+ let n = e.result.findIndex((e) => e.id === t);
154
+ n !== -1 && (e.result.splice(n, 1), e.nextOffset && e.nextOffset--);
155
+ }), Q(e, t, { name: "--" }), X(e);
156
+ }, pe = (e, t, n, i, a) => {
157
+ let o = j([]), s = j(!1), c = j(0), l = "", u;
158
+ e && !e.params.limit && (e.params.limit = 100), e && ue(e.path, a);
159
+ let d = () => {
142
160
  if (!e) return;
143
161
  e.params.offset = 0;
144
- let t = Q(Z(e), e.path);
162
+ let t = ce($(e), e.path);
145
163
  if (!t) {
146
- a.value = [], l = void 0;
164
+ o.value = [], u = void 0;
147
165
  return;
148
166
  }
149
- a.value = t.result, l = t.nextOffset;
167
+ o.value = t.result, u = t.nextOffset;
150
168
  };
151
- e && i && B(J(e.path), () => {
152
- u();
169
+ e && i && V(Y(e.path), () => {
170
+ d();
153
171
  });
154
- let d = async () => {
172
+ let f = async () => {
155
173
  if (!e) return;
156
- let t = i ? Z(e) : void 0;
174
+ let t = i ? $(e) : void 0;
157
175
  if (t) {
158
- let n = Q(t, e.path);
176
+ let n = ce(t, e.path);
159
177
  if (n) return e.abortByFingerprint(), n;
160
178
  }
161
179
  let n = await e.call();
@@ -169,37 +187,37 @@ var G = {
169
187
  console.warn(`В result[${r}] нет id или name`);
170
188
  return;
171
189
  }
172
- return t && ae(t, e.path, n), n;
173
- }, f = async (n) => {
190
+ return t && le(t, e.path, n), n;
191
+ }, p = async (n) => {
174
192
  if (!e) return;
175
193
  if (n) {
176
- if (!l || o.value) return;
177
- e.params.offset = l;
194
+ if (!u || s.value) return;
195
+ e.params.offset = u;
178
196
  } else e.params.offset = 0;
179
- t?.(e, c), o.value = !0;
180
- let r = await d();
181
- o.value = !1, s.value++, r && (l = r.nextOffset, n ? a.value = a.value.concat(r.result) : a.value = r.result);
182
- }, p = r(() => f(!1), 200);
197
+ t?.(e, l), s.value = !0;
198
+ let r = await f();
199
+ s.value = !1, c.value++, r && (u = r.nextOffset, n ? o.value = o.value.concat(r.result) : o.value = r.result);
200
+ }, m = r(() => p(!1), 200);
183
201
  return {
184
202
  apiRequest: e,
185
- items: a,
186
- isLoading: o,
187
- countLoading: s,
188
- load: f,
203
+ items: o,
204
+ isLoading: s,
205
+ countLoading: c,
206
+ load: p,
189
207
  setSearchTextAndLoad: (t, r = !0) => {
190
208
  if (e) {
191
209
  if (t.length < n) {
192
- e.abortByFingerprint(), a.value = [];
210
+ e.abortByFingerprint(), o.value = [];
193
211
  return;
194
212
  }
195
- t === c && a.value.length || (c = t, r ? p() : f(!1));
213
+ t === l && o.value.length || (l = t, r ? m() : p(!1));
196
214
  }
197
215
  }
198
216
  };
199
- }, le = 0, ue = null, $ = (e, t, n = !0) => n && t.id === null ? Array.isArray(e) ? e.some((e) => e.id === t.id && e.name === t.name) : t.name === e.name : Array.isArray(e) ? e.some((e) => e.id === t.id) : t.id === e.id, de = (e, t, n) => {
217
+ }, me = 0, he = null, ge = (e, t, n = !0) => n && t.id === null ? Array.isArray(e) ? e.some((e) => e.id === t.id && e.name === t.name) : t.name === e.name : Array.isArray(e) ? e.some((e) => e.id === t.id) : t.id === e.id, _e = (e, t, n) => {
200
218
  let r = e.params.filters ?? [];
201
219
  r = r.filter((e) => e.name !== n), t && r.push(u(n, "CONTAINS", [t])), e.changeParams({ filters: r });
202
- }, fe = (t, n, r, i, a, o, s, c, l, u, f, p, m, h) => {
220
+ }, ve = (t, n, r, i, a, o, s, c, l, u, f, p, m, h) => {
203
221
  let _ = j(""), v = {
204
222
  id: 0,
205
223
  name: e().Common.All
@@ -236,18 +254,18 @@ var G = {
236
254
  };
237
255
  u.value && (e.listItemProps = { closeByClick: !1 }), r.push(e);
238
256
  }
239
- return a && (r = r.filter((e) => !$(t.value, e))), i && (r = i(r)), r;
257
+ return a && (r = r.filter((e) => !ge(t.value, e))), i && (r = i(r)), r;
240
258
  }, T = (e) => {
241
- e.listItemProps?.type === "title" || e.listItemProps?.type === "delimiter" || e.id === null && (n("appendItem", e), u.value) || (a && Array.isArray(t.value) ? $(t.value, e) || (t.value = [...t.value, e]) : t.value = e, setTimeout(() => {
259
+ e.listItemProps?.type === "title" || e.listItemProps?.type === "delimiter" || e.id === null && (n("appendItem", e), u.value) || (a && Array.isArray(t.value) ? ge(t.value, e) || (t.value = [...t.value, e]) : t.value = e, setTimeout(() => {
242
260
  y();
243
261
  }));
244
262
  };
245
263
  if (h.apiRequest) {
246
264
  let e = [r, h.items];
247
- a && e.push(t), B(e, () => {
265
+ a && e.push(t), V(e, () => {
248
266
  C();
249
267
  }, { deep: 2 });
250
- } else B([
268
+ } else V([
251
269
  t,
252
270
  r,
253
271
  _
@@ -272,16 +290,16 @@ var G = {
272
290
  Array.isArray(t.value) && (t.value = t.value.filter((t) => t.id !== e.id || t.name !== e.name));
273
291
  }
274
292
  };
275
- }, pe = {
293
+ }, ye = {
276
294
  key: 0,
277
295
  class: "top-selector2_activeItems"
278
- }, me = {
296
+ }, be = {
279
297
  key: 1,
280
298
  class: "top-selector2_activeName top-ellipsis"
281
- }, he = {
299
+ }, xe = {
282
300
  key: 2,
283
301
  class: "top-selector2_placeholder top-ellipsis"
284
- }, ge = { class: "top-selector2_searchWidget" }, _e = /* @__PURE__ */ w({
302
+ }, Se = { class: "top-selector2_searchWidget" }, Ce = /* @__PURE__ */ w({
285
303
  __name: "selector2",
286
304
  props: /*@__PURE__*/ T({
287
305
  modelValue: {},
@@ -321,22 +339,22 @@ var G = {
321
339
  }),
322
340
  emits: /*@__PURE__*/ T(["appendItem", "open"], ["update:modelValue"]),
323
341
  setup(e, { expose: t, emit: r }) {
324
- let i = e, a = z(e, "modelValue"), o = r;
342
+ let i = e, a = B(e, "modelValue"), o = r;
325
343
  t({
326
344
  resetCache: (e = !1) => {
327
- c.apiRequest && (e && ie(c.apiRequest.path), c.items.value = [], c.countLoading.value = 0, c.apiRequest.params.offset = 0, requestAnimationFrame(() => {
345
+ c.apiRequest && (e && oe(c.apiRequest.path), c.items.value = [], c.countLoading.value = 0, c.apiRequest.params.offset = 0, requestAnimationFrame(() => {
328
346
  u.itemsForShow.value = [];
329
347
  }), T()?.elPopup && c.setSearchTextAndLoad(u.searchText.value));
330
348
  },
331
349
  updateCacheItemById: (e, t) => {
332
- c.apiRequest && c.apiRequest && oe(c.apiRequest.path, e, t);
350
+ c.apiRequest && de(c.apiRequest.path, e, t);
333
351
  },
334
352
  deleteCacheItemById: (e) => {
335
- c.apiRequest && c.apiRequest && se(c.apiRequest.path, e);
353
+ c.apiRequest && fe(c.apiRequest.path, e);
336
354
  }
337
355
  });
338
- let s = g(() => i.searchType === "inline" && i.multiselect || i.searchType === "inline" && n.state.isMobile ? "popup" : i.searchType), c = ce(i.api, i.apiSetSearchParams, i.minLength, i.useCache), u = fe(a, o, L(i, "items"), i.prepareItemsBeforeRender, i.multiselect, L(i, "useAllItem"), L(i, "appendSearchToResult"), L(i, "appendSearchAllowDuplicate"), L(i, "appendSearchToResultCond"), L(i, "appendWithoutSelect"), L(i, "searchFields"), s, i.minLength, c), d = g(() => i.buttonProps ? "TopButton" : s.value === "inline" ? "TopInput" : "div"), w = j(null), T = () => w.value?.popup;
339
- c.apiRequest && B(u.searchText, () => {
356
+ let s = g(() => i.searchType === "inline" && i.multiselect || i.searchType === "inline" && n.state.isMobile ? "popup" : i.searchType), c = pe(i.api, i.apiSetSearchParams, i.minLength, i.useCache, a), u = ve(a, o, L(i, "items"), i.prepareItemsBeforeRender, i.multiselect, L(i, "useAllItem"), L(i, "appendSearchToResult"), L(i, "appendSearchAllowDuplicate"), L(i, "appendSearchToResultCond"), L(i, "appendWithoutSelect"), L(i, "searchFields"), s, i.minLength, c), d = g(() => i.buttonProps ? "TopButton" : s.value === "inline" ? "TopInput" : "div"), w = j(null), T = () => w.value?.popup;
357
+ c.apiRequest && V(u.searchText, () => {
340
358
  c.setSearchTextAndLoad(u.searchText.value);
341
359
  });
342
360
  let D = g(() => Array.isArray(a.value) || i.multiselect || !i.selectedAsPlaceholder && s.value !== "inline" ? i.placeholder : a.value?.name || i.placeholder), O = (e) => {
@@ -362,28 +380,28 @@ var G = {
362
380
  (s.value === "popup" || s.value === "inline") && n && (t = !0), T()?.elPopup && (t = !1), t && (s.value === "popup" && (e.preventDefault(), e.stopPropagation(), n && (u.searchText.value || (u.searchText.value = e.key))), e.currentTarget?.click());
363
381
  }, k = (e) => {
364
382
  e.preventDefault(), u.selectNextItem();
365
- }, U = () => {
383
+ }, ee = () => {
366
384
  c.apiRequest && c.setSearchTextAndLoad(u.searchText.value, !1), o("open");
367
- }, W = () => {
385
+ }, R = () => {
368
386
  s.value === "popup" && u.searchText.value && u.resetSearch();
369
- }, G = (e) => {
387
+ }, W = (e) => {
370
388
  let t = e.target;
371
389
  t.scrollTop / (t.scrollHeight - t.offsetHeight) > .8 && c.load(!0);
372
390
  };
373
391
  return (t, r) => {
374
392
  let i = P("TopButton"), o = P("TopLoadbar"), g = F("top-focus"), T = F("top-shortcut");
375
- return A(), _(R(m), {
393
+ return A(), _(z(m), {
376
394
  ref_key: "popupRef",
377
395
  ref: w,
378
- onOpen: r[3] ||= (e) => U(),
379
- onClose: r[4] ||= (e) => W(),
380
- onScrollContentList: r[5] ||= (e) => R(c) ? G(e) : void 0,
396
+ onOpen: r[3] ||= (e) => ee(),
397
+ onClose: r[4] ||= (e) => R(),
398
+ onScrollContentList: r[5] ||= (e) => z(c) ? W(e) : void 0,
381
399
  notch: !1,
382
400
  transitionDuration: 0,
383
401
  openByFocusInput: s.value === "inline" && (e.openByFocusInput ?? !0),
384
- disabled: s.value === "inline" && R(u).genIsShort()
402
+ disabled: s.value === "inline" && z(u).genIsShort()
385
403
  }, x({
386
- opener: V(() => [H((A(), _(ee(d.value), E(e.buttonProps, {
404
+ opener: H(() => [U((A(), _(te(d.value), E(e.buttonProps, {
387
405
  class: {
388
406
  "top-selector2": !0,
389
407
  "top-selector2-multiselect": e.multiselect,
@@ -398,27 +416,27 @@ var G = {
398
416
  icon: e.icon,
399
417
  tabindex: "0",
400
418
  onKeydown: O,
401
- onBlur: r[0] ||= (e) => s.value === "inline" && R(u).resetSearch(),
419
+ onBlur: r[0] ||= (e) => s.value === "inline" && z(u).resetSearch(),
402
420
  placeholder: D.value,
403
421
  title: e.title,
404
422
  captionType: s.value === "inline" && e.title !== void 0 ? "top" : void 0,
405
- modelValue: R(u).searchText.value,
406
- "onUpdate:modelValue": r[1] ||= (e) => R(u).searchText.value = e
423
+ modelValue: z(u).searchText.value,
424
+ "onUpdate:modelValue": r[1] ||= (e) => z(u).searchText.value = e
407
425
  }), {
408
- default: V(() => [
409
- e.multiselect ? (A(), y("div", pe, [(A(!0), y(h, null, M(a.value, (e) => (A(), _(re, {
426
+ default: H(() => [
427
+ e.multiselect ? (A(), y("div", ye, [(A(!0), y(h, null, M(a.value, (e) => (A(), _(ae, {
410
428
  key: e.id ?? void 0,
411
429
  id: e.id,
412
430
  name: e.name,
413
- onDelete: R(u).deleteItemByItem
431
+ onDelete: z(u).deleteItemByItem
414
432
  }, null, 8, [
415
433
  "id",
416
434
  "name",
417
435
  "onDelete"
418
436
  ]))), 128))])) : v("", !0),
419
- s.value !== "inline" && !e.multiselect ? (A(), y("span", me, I(Array.isArray(a.value) ? "" : a.value.name), 1)) : v("", !0),
420
- e.multiselect && !a.value.length ? (A(), y("span", he, I(D.value), 1)) : v("", !0),
421
- e.addChanger && !e.buttonProps && !e.multiselect && R(u).itemsForShow.value.length > 1 && !e.disabled ? (A(), y("span", {
437
+ s.value !== "inline" && !e.multiselect ? (A(), y("span", be, I(Array.isArray(a.value) ? "" : a.value.name), 1)) : v("", !0),
438
+ e.multiselect && !a.value.length ? (A(), y("span", xe, I(D.value), 1)) : v("", !0),
439
+ e.addChanger && !e.buttonProps && !e.multiselect && z(u).itemsForShow.value.length > 1 && !e.disabled ? (A(), y("span", {
422
440
  key: 3,
423
441
  class: "top-changer top-changer-selector",
424
442
  "data-top-popup-disabled": "true",
@@ -439,51 +457,51 @@ var G = {
439
457
  void 0,
440
458
  { onupdate: !0 }
441
459
  ], [T, e.openerShortcut]])]),
442
- contentList: V(() => [
443
- (A(!0), y(h, null, M(R(u).itemsForShow.value, (r) => (A(), _(R(p), E({
460
+ contentList: H(() => [
461
+ (A(!0), y(h, null, M(z(u).itemsForShow.value, (r) => (A(), _(z(p), E({
444
462
  key: r.id ?? void 0,
445
463
  class: {
446
464
  "top-active": !Array.isArray(a.value) && !e.multiselect && a.value.id === r.id && a.value.name === r.name,
447
- "top-selector2_item-all": r.id === R(0),
448
- "top-selector2_item-new": r.id === R(null)
465
+ "top-selector2_item-all": r.id === z(0),
466
+ "top-selector2_item-new": r.id === z(null)
449
467
  },
450
- closeByClick: !e.multiselect || R(n).state.isMobile
451
- }, { ref_for: !0 }, r.listItemProps, { onClick: (e) => R(u).selectItem(r) }), x({
452
- default: V(() => [t.$slots.item ? N(t.$slots, "item", {
468
+ closeByClick: !e.multiselect || z(n).state.isMobile
469
+ }, { ref_for: !0 }, r.listItemProps, { onClick: (e) => z(u).selectItem(r) }), x({
470
+ default: H(() => [t.$slots.item ? N(t.$slots, "item", {
453
471
  key: 0,
454
472
  item: r
455
473
  }) : (A(), y(h, { key: 1 }, [S(I(r.name), 1)], 64))]),
456
474
  _: 2
457
475
  }, [t.$slots.actions ? {
458
476
  name: "actions",
459
- fn: V(() => [N(t.$slots, "actions", { item: r })]),
477
+ fn: H(() => [N(t.$slots, "actions", { item: r })]),
460
478
  key: "0"
461
479
  } : void 0]), 1040, [
462
480
  "class",
463
481
  "closeByClick",
464
482
  "onClick"
465
483
  ]))), 128)),
466
- !R(u).itemsForShow.value.length && !R(u).genIsShort() ? (A(), _(R(p), {
484
+ !z(u).itemsForShow.value.length && !z(u).genIsShort() ? (A(), _(z(p), {
467
485
  key: 0,
468
486
  type: "regular"
469
487
  }, {
470
- default: V(() => [!R(c).isLoading.value || R(c).countLoading.value ? (A(), y(h, { key: 0 }, [S(I(t.$i18n.Common.No_results), 1)], 64)) : (A(), _(R(l), {
488
+ default: H(() => [!z(c).isLoading.value || z(c).countLoading.value ? (A(), y(h, { key: 0 }, [S(I(t.$i18n.Common.No_results), 1)], 64)) : (A(), _(z(l), {
471
489
  key: 1,
472
490
  type: "circles"
473
491
  }))]),
474
492
  _: 1
475
493
  })) : v("", !0),
476
- R(c).countLoading.value && R(c).isLoading.value && s.value === "inline" ? (A(), _(o, { key: 1 })) : v("", !0)
494
+ z(c).countLoading.value && z(c).isLoading.value && s.value === "inline" ? (A(), _(o, { key: 1 })) : v("", !0)
477
495
  ]),
478
496
  _: 2
479
497
  }, [s.value === "popup" ? {
480
498
  name: "widget",
481
- fn: V(() => [b("div", ge, [H(C(R(f), {
499
+ fn: H(() => [b("div", Se, [U(C(z(f), {
482
500
  title: "Поиск",
483
501
  icon: "",
484
- modelValue: R(u).searchText.value,
485
- "onUpdate:modelValue": r[2] ||= (e) => R(u).searchText.value = e,
486
- isLoading: !!R(c).countLoading.value && R(c).isLoading.value,
502
+ modelValue: z(u).searchText.value,
503
+ "onUpdate:modelValue": r[2] ||= (e) => z(u).searchText.value = e,
504
+ isLoading: !!z(c).countLoading.value && z(c).isLoading.value,
487
505
  placeholder: D.value
488
506
  }, null, 8, [
489
507
  "modelValue",
@@ -499,14 +517,14 @@ var G = {
499
517
  class: "closer",
500
518
  color: "theme"
501
519
  }, {
502
- default: V(() => [S(I(t.$i18n.Common.Cancel), 1)]),
520
+ default: H(() => [S(I(t.$i18n.Common.Cancel), 1)]),
503
521
  _: 1
504
522
  })) : v("", !0)])]),
505
523
  key: "0"
506
524
  } : void 0]), 1032, ["openByFocusInput", "disabled"]);
507
525
  };
508
526
  }
509
- }), ve = { class: "top-editArea_footer" }, ye = /* @__PURE__ */ w({
527
+ }), we = { class: "top-editArea_footer" }, Te = /* @__PURE__ */ w({
510
528
  __name: "editArea",
511
529
  props: {
512
530
  defaultValue: { default: "" },
@@ -578,7 +596,7 @@ var G = {
578
596
  class: "top-editArea_element",
579
597
  onFocus: n[2] ||= () => a.value = !0,
580
598
  onBlur: n[3] ||= () => a.value = !1,
581
- onKeyup: [U(u, ["esc"]), n[4] ||= U(W((e) => l(i.value), ["ctrl"]), ["enter"])]
599
+ onKeyup: [W(u, ["esc"]), n[4] ||= W(G((e) => l(i.value), ["ctrl"]), ["enter"])]
582
600
  }, null, 8, [
583
601
  "modelValue",
584
602
  "name",
@@ -590,7 +608,7 @@ var G = {
590
608
  "readonly",
591
609
  "isError",
592
610
  "hint"
593
- ]), b("div", ve, [o.value || e.forceShowCloseBtn ? (A(), _(s, {
611
+ ]), b("div", we, [o.value || e.forceShowCloseBtn ? (A(), _(s, {
594
612
  key: 0,
595
613
  icon: t.$core.state.isMobile ? "" : "",
596
614
  class: "top-editArea_button",
@@ -599,7 +617,7 @@ var G = {
599
617
  onClick: u
600
618
  }, x({ _: 2 }, [t.$core.state.isMobile ? void 0 : {
601
619
  name: "default",
602
- fn: V(() => [S(I(e.cancelText), 1)]),
620
+ fn: H(() => [S(I(e.cancelText), 1)]),
603
621
  key: "0"
604
622
  }]), 1032, ["icon"])) : v("", !0), o.value ? (A(), _(s, {
605
623
  key: 1,
@@ -608,11 +626,11 @@ var G = {
608
626
  onClick: n[5] ||= (e) => l(i.value)
609
627
  }, x({ _: 2 }, [t.$core.state.isMobile ? void 0 : {
610
628
  name: "default",
611
- fn: V(() => [S(I(e.submitText), 1)]),
629
+ fn: H(() => [S(I(e.submitText), 1)]),
612
630
  key: "0"
613
631
  }]), 1032, ["icon"])) : v("", !0)])], 2)], 2));
614
632
  }
615
- }), be = { class: "top-editInput" }, xe = /* @__PURE__ */ w({
633
+ }), Ee = { class: "top-editInput" }, De = /* @__PURE__ */ w({
616
634
  __name: "editInput",
617
635
  props: {
618
636
  modelValue: {},
@@ -623,20 +641,20 @@ var G = {
623
641
  emits: ["update:modelValue"],
624
642
  setup(e, { emit: t }) {
625
643
  let n = e, r = j(n.modelValue);
626
- B(() => n.modelValue, () => {
644
+ V(() => n.modelValue, () => {
627
645
  r.value = n.modelValue;
628
646
  });
629
647
  let i = t, o = () => {
630
648
  i("update:modelValue", r.value);
631
649
  };
632
- return (t, n) => (A(), y("div", be, [C(a, E(e.input, {
633
- onKeydownCapture: n[0] ||= U(W((t) => r.value = e.modelValue, ["stop"]), ["esc"]),
634
- onKeydown: U(W(o, ["stop"]), ["enter"]),
650
+ return (t, n) => (A(), y("div", Ee, [C(a, E(e.input, {
651
+ onKeydownCapture: n[0] ||= W(G((t) => r.value = e.modelValue, ["stop"]), ["esc"]),
652
+ onKeydown: W(G(o, ["stop"]), ["enter"]),
635
653
  modelValue: r.value,
636
654
  "onUpdate:modelValue": n[1] ||= (e) => r.value = e
637
655
  }), x({ _: 2 }, [t.$slots.caption ? {
638
656
  name: "caption",
639
- fn: V(() => [N(t.$slots, "caption")]),
657
+ fn: H(() => [N(t.$slots, "caption")]),
640
658
  key: "0"
641
659
  } : void 0]), 1040, ["onKeydown", "modelValue"]), r.value !== e.modelValue || e.alwaysShowSubmitBtn ? (A(), _(s, E({
642
660
  key: 0,
@@ -644,7 +662,7 @@ var G = {
644
662
  styling: "soft"
645
663
  }, e.button, { onClick: o }), null, 16)) : v("", !0)]));
646
664
  }
647
- }), Se = /* @__PURE__ */ w({
665
+ }), Oe = /* @__PURE__ */ w({
648
666
  __name: "optionGroup",
649
667
  props: /*@__PURE__*/ T({
650
668
  modelValue: {},
@@ -658,8 +676,8 @@ var G = {
658
676
  }),
659
677
  emits: ["update:modelValue"],
660
678
  setup(e) {
661
- let t = z(e, "modelValue"), n = e, r = j(null);
662
- B(t, () => {
679
+ let t = B(e, "modelValue"), n = e, r = j(null);
680
+ V(t, () => {
663
681
  let e = n.items.map((e) => e.value);
664
682
  Array.isArray(t.value) ? t.value.find((t) => !e.includes(t)) && (t.value = t.value.filter((t) => e.includes(t))) : e.includes(t.value) || (t.value = e[0] ?? ""), r.value?.querySelector(".radioGroup_item-selected")?.scrollIntoView();
665
683
  }, { immediate: !0 });
@@ -688,7 +706,7 @@ var G = {
688
706
  "data-top-icon": n.icon
689
707
  }, x({ _: 2 }, [n.label ? {
690
708
  name: "default",
691
- fn: V(() => [S(I(n.label), 1)]),
709
+ fn: H(() => [S(I(n.label), 1)]),
692
710
  key: "0"
693
711
  } : void 0]), 1032, [
694
712
  "class",
@@ -713,7 +731,7 @@ var G = {
713
731
  "data-top-icon": n.icon
714
732
  }, x({ _: 2 }, [n.label ? {
715
733
  name: "default",
716
- fn: V(() => [S(I(n.label), 1)]),
734
+ fn: H(() => [S(I(n.label), 1)]),
717
735
  key: "0"
718
736
  } : void 0]), 1032, [
719
737
  "class",
@@ -725,7 +743,7 @@ var G = {
725
743
  "data-top-icon"
726
744
  ]))), 256))], 2));
727
745
  }
728
- }), Ce = /* @__PURE__ */ w({
746
+ }), ke = /* @__PURE__ */ w({
729
747
  __name: "radioGroup",
730
748
  props: /*@__PURE__*/ T({
731
749
  modelValue: {},
@@ -739,8 +757,8 @@ var G = {
739
757
  }),
740
758
  emits: ["update:modelValue"],
741
759
  setup(e) {
742
- let t = z(e, "modelValue");
743
- return (e, n) => (A(), _(Se, {
760
+ let t = B(e, "modelValue");
761
+ return (e, n) => (A(), _(Oe, {
744
762
  class: "top-radioGroup",
745
763
  modelValue: t.value,
746
764
  "onUpdate:modelValue": n[0] ||= (e) => t.value = e,
@@ -749,7 +767,7 @@ var G = {
749
767
  showIndicator: e.$props.showIndicator,
750
768
  isError: e.$props.isError
751
769
  }, {
752
- default: V(() => [N(e.$slots, "default")]),
770
+ default: H(() => [N(e.$slots, "default")]),
753
771
  _: 3
754
772
  }, 8, [
755
773
  "modelValue",
@@ -759,7 +777,7 @@ var G = {
759
777
  "isError"
760
778
  ]));
761
779
  }
762
- }), we = /* @__PURE__ */ w({
780
+ }), Ae = /* @__PURE__ */ w({
763
781
  __name: "checkboxGroup",
764
782
  props: /*@__PURE__*/ T({
765
783
  modelValue: {},
@@ -773,8 +791,8 @@ var G = {
773
791
  }),
774
792
  emits: ["update:modelValue"],
775
793
  setup(e) {
776
- let t = z(e, "modelValue");
777
- return (e, n) => (A(), _(Se, {
794
+ let t = B(e, "modelValue");
795
+ return (e, n) => (A(), _(Oe, {
778
796
  class: "top-checkboxGroup",
779
797
  modelValue: t.value,
780
798
  "onUpdate:modelValue": n[0] ||= (e) => t.value = e,
@@ -783,7 +801,7 @@ var G = {
783
801
  showIndicator: e.$props.showIndicator,
784
802
  isError: e.$props.isError
785
803
  }, {
786
- default: V(() => [N(e.$slots, "default")]),
804
+ default: H(() => [N(e.$slots, "default")]),
787
805
  _: 3
788
806
  }, 8, [
789
807
  "modelValue",
@@ -793,10 +811,10 @@ var G = {
793
811
  "isError"
794
812
  ]));
795
813
  }
796
- }), Te = ["data-top-icon"], Ee = { class: "top-info_text" }, De = {
814
+ }), je = ["data-top-icon"], Me = { class: "top-info_text" }, Ne = {
797
815
  key: 0,
798
816
  class: "top-info_value"
799
- }, Oe = /* @__PURE__ */ w({
817
+ }, Pe = /* @__PURE__ */ w({
800
818
  __name: "info",
801
819
  props: {
802
820
  icon: {},
@@ -811,12 +829,12 @@ var G = {
811
829
  ["top-info-styling_" + e.styling]: !0
812
830
  }),
813
831
  "data-top-icon": e.icon
814
- }, [b("div", Ee, [N(t.$slots, "default")]), t.$slots.additional ? (A(), y("span", De, [N(t.$slots, "additional")])) : v("", !0)], 10, Te));
832
+ }, [b("div", Me, [N(t.$slots, "default")]), t.$slots.additional ? (A(), y("span", Ne, [N(t.$slots, "additional")])) : v("", !0)], 10, je));
815
833
  }
816
- }), ke = {
834
+ }), Fe = {
817
835
  key: 0,
818
836
  class: "top-policy"
819
- }, Ae = { class: "top-policy_title" }, je = ["innerHTML"], Me = /* @__PURE__ */ w({
837
+ }, Ie = { class: "top-policy_title" }, Le = ["innerHTML"], Re = /* @__PURE__ */ w({
820
838
  __name: "policy",
821
839
  props: {
822
840
  title: {},
@@ -828,23 +846,23 @@ var G = {
828
846
  let n = t, r = j(!0), i = () => {
829
847
  r.value = !1, n("accept");
830
848
  };
831
- return (t, n) => r.value ? (A(), y("div", ke, [
832
- b("div", Ae, I(e.title), 1),
849
+ return (t, n) => r.value ? (A(), y("div", Fe, [
850
+ b("div", Ie, I(e.title), 1),
833
851
  b("div", {
834
852
  class: "top-policy_description",
835
853
  innerHTML: e.description
836
- }, null, 8, je),
837
- C(R(s), {
854
+ }, null, 8, Le),
855
+ C(z(s), {
838
856
  size: "m",
839
857
  onClick: i
840
858
  }, {
841
- default: V(() => [S(I(e.acceptText), 1)]),
859
+ default: H(() => [S(I(e.acceptText), 1)]),
842
860
  _: 1
843
861
  })
844
862
  ])) : v("", !0);
845
863
  }
846
864
  });
847
865
  //#endregion
848
- export { xe as a, le as c, te as d, Ce as i, ue as l, Oe as n, ye as o, we as r, _e as s, Me as t, de as u };
866
+ export { De as a, me as c, re as d, ke as i, he as l, Pe as n, Te as o, Ae as r, Ce as s, Re as t, _e as u };
849
867
 
850
- //# sourceMappingURL=formsExt-Dy7EHtJS.esm.js.map
868
+ //# sourceMappingURL=formsExt-B32m6XEQ.esm.js.map