@topvisor/ui 1.5.8 → 1.5.9-colorTableUp.1
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/formsExt-DG99Ktz8.amd.js +2 -0
- package/.chunks/formsExt-DG99Ktz8.amd.js.map +1 -0
- package/.chunks/{formsExt-BZZEpY-a.esm.js → formsExt-DG99Ktz8.esm.js} +222 -180
- package/.chunks/formsExt-DG99Ktz8.esm.js.map +1 -0
- package/assets/formsExt.css +1 -1
- package/assets/themes/light.css +1 -1
- package/autoload-css-manifest.amd.json +1 -1
- package/autoload-css-manifest.json +1 -1
- package/formsExt/formsExt.amd.js +1 -1
- package/formsExt/formsExt.amd.js.map +1 -1
- package/formsExt/formsExt.js +2 -2
- package/package.json +1 -1
- package/project/project.amd.js +1 -1
- package/project/project.amd.js.map +1 -1
- package/project/project.js +297 -297
- package/project/project.js.map +1 -1
- package/src/components/formsExt/banner/types.d.ts +22 -0
- package/src/components/formsExt/formsExt.d.ts +1 -0
- package/.chunks/formsExt-BZZEpY-a.amd.js +0 -2
- package/.chunks/formsExt-BZZEpY-a.amd.js.map +0 -1
- package/.chunks/formsExt-BZZEpY-a.esm.js.map +0 -1
|
@@ -10,14 +10,14 @@ 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,
|
|
|
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-DViuKwOc.esm.js";
|
|
13
|
-
import { Fragment as h,
|
|
13
|
+
import { Fragment as h, Transition as g, computed as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createSlots as S, createTextVNode as C, createVNode as w, defineComponent as T, mergeModels as E, mergeProps as D, normalizeClass as O, normalizeProps as k, onMounted as A, onUnmounted as j, onUpdated as M, openBlock as N, ref as P, renderList as F, renderSlot as I, resolveComponent as ee, resolveDirective as L, resolveDynamicComponent as te, toDisplayString as R, triggerRef as z, unref as B, useModel as V, watch as H, withCtx as U, withDirectives as W, withKeys as G, withModifiers as K } from "vue";
|
|
14
14
|
//#region src/components/formsExt/menu/menu.vue?vue&type=script&setup=true&lang.ts
|
|
15
|
-
var
|
|
15
|
+
var ne = {
|
|
16
16
|
key: 0,
|
|
17
17
|
class: "top-menu_selectAll"
|
|
18
|
-
},
|
|
18
|
+
}, re = /* @__PURE__ */ T({
|
|
19
19
|
__name: "menu",
|
|
20
|
-
props: /*@__PURE__*/
|
|
20
|
+
props: /*@__PURE__*/ E({
|
|
21
21
|
modelValue: {},
|
|
22
22
|
items: {},
|
|
23
23
|
isMultiple: { type: Boolean },
|
|
@@ -30,7 +30,7 @@ var G = {
|
|
|
30
30
|
}),
|
|
31
31
|
emits: ["update:modelValue"],
|
|
32
32
|
setup(e) {
|
|
33
|
-
let r = e, i =
|
|
33
|
+
let r = e, i = V(e, "modelValue"), a = P();
|
|
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,36 +66,36 @@ var G = {
|
|
|
66
66
|
i.value = r.items.map((e) => e.href ?? e.value);
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
|
-
return
|
|
69
|
+
return A(() => u(!1)), M(() => u(!0)), (t, n) => (N(), b("div", {
|
|
70
70
|
ref_key: "el",
|
|
71
71
|
ref: a,
|
|
72
|
-
class:
|
|
72
|
+
class: O({
|
|
73
73
|
"top-menu": !0,
|
|
74
74
|
["top-style_" + e.styling]: !0
|
|
75
75
|
}),
|
|
76
76
|
onWheel: l
|
|
77
|
-
}, [(
|
|
77
|
+
}, [(N(!0), b(h, null, F(e.items, (e) => (N(), v(s, D({ ref_for: !0 }, e, {
|
|
78
78
|
class: "top-menu_item",
|
|
79
79
|
color: "theme",
|
|
80
80
|
onClick: (t) => c(e, t.ctrlKey || t.metaKey),
|
|
81
81
|
isActive: o(e)
|
|
82
|
-
}),
|
|
82
|
+
}), S({ _: 2 }, [e.content ? {
|
|
83
83
|
name: "default",
|
|
84
|
-
fn:
|
|
84
|
+
fn: U(() => [C(R(e.content), 1)]),
|
|
85
85
|
key: "0"
|
|
86
|
-
} : void 0]), 1040, ["onClick", "isActive"]))), 256)), Array.isArray(i.value) && e.selectAllItem ? (
|
|
86
|
+
} : void 0]), 1040, ["onClick", "isActive"]))), 256)), Array.isArray(i.value) && e.selectAllItem ? (N(), b("div", ne, [w(s, D(e.selectAllItem, {
|
|
87
87
|
class: "top-menu_item",
|
|
88
88
|
color: "theme",
|
|
89
89
|
styling: "",
|
|
90
90
|
onClick: n[0] ||= (e) => d(),
|
|
91
91
|
isActive: i.value.length === e.items.length
|
|
92
|
-
}),
|
|
92
|
+
}), S({ _: 2 }, [e.selectAllItem.content ? {
|
|
93
93
|
name: "default",
|
|
94
|
-
fn:
|
|
94
|
+
fn: U(() => [C(R(e.selectAllItem.content), 1)]),
|
|
95
95
|
key: "0"
|
|
96
|
-
} : void 0]), 1040, ["isActive"])])) :
|
|
96
|
+
} : void 0]), 1040, ["isActive"])])) : y("", !0)], 34));
|
|
97
97
|
}
|
|
98
|
-
}),
|
|
98
|
+
}), ie = { class: "top-selector2_itemMulti top-ellipsis" }, ae = /* @__PURE__ */ T({
|
|
99
99
|
__name: "itemMulti",
|
|
100
100
|
props: {
|
|
101
101
|
id: {},
|
|
@@ -103,26 +103,26 @@ var G = {
|
|
|
103
103
|
},
|
|
104
104
|
emits: ["delete"],
|
|
105
105
|
setup(e, { emit: t }) {
|
|
106
|
-
return (n, r) => (
|
|
106
|
+
return (n, r) => (N(), b("div", ie, [C(R(e.name) + " ", 1), x("span", {
|
|
107
107
|
class: "top-selector2_itemMultiDelete",
|
|
108
108
|
"data-top-icon": "",
|
|
109
109
|
onClick: r[0] ||= (n) => t("delete", {
|
|
110
110
|
id: e.id,
|
|
111
111
|
name: e.name
|
|
112
112
|
}),
|
|
113
|
-
onMousedown: r[1] ||=
|
|
113
|
+
onMousedown: r[1] ||= K(() => {}, ["stop"])
|
|
114
114
|
}, null, 32)]));
|
|
115
115
|
}
|
|
116
|
-
}), q = /* @__PURE__ */ new Map(), J = /* @__PURE__ */ new Map(), Y = /* @__PURE__ */ new Map(), X = (e) => (Y.has(e) || Y.set(e,
|
|
116
|
+
}), q = /* @__PURE__ */ new Map(), J = /* @__PURE__ */ new Map(), Y = /* @__PURE__ */ new Map(), X = (e) => (Y.has(e) || Y.set(e, P(0)), Y.get(e)), Z = (e) => {
|
|
117
117
|
X(e).value++;
|
|
118
118
|
}, Q = (e) => {
|
|
119
119
|
q.get(e)?.clear(), Z(e);
|
|
120
120
|
}, $ = (e, t) => {
|
|
121
121
|
q.get(e)?.forEach((e) => t(e));
|
|
122
|
-
},
|
|
122
|
+
}, oe = (e, t) => {
|
|
123
123
|
J.get(e)?.forEach((e) => t(e));
|
|
124
|
-
},
|
|
125
|
-
|
|
124
|
+
}, se = (e, t, n) => {
|
|
125
|
+
oe(e, (e) => {
|
|
126
126
|
let r = !1;
|
|
127
127
|
if (Array.isArray(e.value)) e.value.filter((e) => e.id === t).forEach((e) => {
|
|
128
128
|
Object.assign(e, n), r = !0;
|
|
@@ -131,49 +131,49 @@ var G = {
|
|
|
131
131
|
if (e.value.id !== t) return;
|
|
132
132
|
Object.assign(e.value, n), r = !0;
|
|
133
133
|
}
|
|
134
|
-
r &&
|
|
134
|
+
r && z(e);
|
|
135
135
|
});
|
|
136
|
-
},
|
|
136
|
+
}, ce = (e) => {
|
|
137
137
|
let t = window.mo?.user?.id;
|
|
138
138
|
return JSON.stringify(e.params) + ":" + e.url + ":" + t;
|
|
139
|
-
},
|
|
139
|
+
}, le = (e, t) => {
|
|
140
140
|
let n = q.get(t)?.get(e);
|
|
141
141
|
if (n) return n.result = n.result.map((e) => ({ ...e })), n;
|
|
142
|
-
}, ce = (e, t, n) => {
|
|
143
|
-
q.has(t) || q.set(t, /* @__PURE__ */ new Map()), q.get(t)?.set(e, n);
|
|
144
|
-
}, le = (e, t) => {
|
|
145
|
-
J.has(e) || J.set(e, /* @__PURE__ */ new Set()), J.get(e)?.add(t), k(() => J.get(e)?.delete(t));
|
|
146
142
|
}, ue = (e, t, n) => {
|
|
143
|
+
q.has(t) || q.set(t, /* @__PURE__ */ new Map()), q.get(t)?.set(e, n);
|
|
144
|
+
}, de = (e, t) => {
|
|
145
|
+
J.has(e) || J.set(e, /* @__PURE__ */ new Set()), J.get(e)?.add(t), j(() => J.get(e)?.delete(t));
|
|
146
|
+
}, fe = (e, t, n) => {
|
|
147
147
|
$(e, (e) => {
|
|
148
148
|
let r = e.result.find((e) => e.id === t);
|
|
149
149
|
r && Object.assign(r, n);
|
|
150
|
-
}),
|
|
151
|
-
},
|
|
150
|
+
}), se(e, t, n), Z(e);
|
|
151
|
+
}, pe = (e, t) => {
|
|
152
152
|
$(e, (e) => {
|
|
153
153
|
let n = e.result.findIndex((e) => e.id === t);
|
|
154
154
|
n !== -1 && (e.result.splice(n, 1), e.nextOffset && e.nextOffset--);
|
|
155
|
-
}),
|
|
156
|
-
},
|
|
157
|
-
let o =
|
|
158
|
-
e && !e.params.limit && (e.params.limit = 100), e &&
|
|
155
|
+
}), se(e, t, { name: "--" }), Z(e);
|
|
156
|
+
}, me = (e, t, n, i, a) => {
|
|
157
|
+
let o = P([]), s = P(!1), c = P(0), l = "", u;
|
|
158
|
+
e && !e.params.limit && (e.params.limit = 100), e && de(e.path, a);
|
|
159
159
|
let d = () => {
|
|
160
160
|
if (!e) return;
|
|
161
161
|
e.params.offset = 0;
|
|
162
|
-
let t =
|
|
162
|
+
let t = le(ce(e), e.path);
|
|
163
163
|
if (!t) {
|
|
164
164
|
o.value = [], u = void 0;
|
|
165
165
|
return;
|
|
166
166
|
}
|
|
167
167
|
o.value = t.result, u = t.nextOffset;
|
|
168
168
|
};
|
|
169
|
-
e && i &&
|
|
169
|
+
e && i && H(X(e.path), () => {
|
|
170
170
|
d();
|
|
171
171
|
});
|
|
172
172
|
let f = async () => {
|
|
173
173
|
if (!e) return;
|
|
174
|
-
let t = i ?
|
|
174
|
+
let t = i ? ce(e) : void 0;
|
|
175
175
|
if (t) {
|
|
176
|
-
let n =
|
|
176
|
+
let n = le(t, e.path);
|
|
177
177
|
if (n) return e.abortByFingerprint(), n;
|
|
178
178
|
}
|
|
179
179
|
let n = await e.call();
|
|
@@ -187,7 +187,7 @@ var G = {
|
|
|
187
187
|
console.warn(`В result[${r}] нет id или name`);
|
|
188
188
|
return;
|
|
189
189
|
}
|
|
190
|
-
return t &&
|
|
190
|
+
return t && ue(t, e.path, n), n;
|
|
191
191
|
}, p = async (n) => {
|
|
192
192
|
if (!e) return;
|
|
193
193
|
if (n) {
|
|
@@ -214,25 +214,25 @@ var G = {
|
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
216
|
};
|
|
217
|
-
},
|
|
217
|
+
}, he = 0, ge = null, _e = (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, ve = (e, t, n) => {
|
|
218
218
|
let r = e.params.filters ?? [];
|
|
219
219
|
r = r.filter((e) => e.name !== n), t && r.push(u(n, "CONTAINS", [t])), e.changeParams({ filters: r });
|
|
220
|
-
},
|
|
221
|
-
let a =
|
|
220
|
+
}, ye = (t, n, r, i) => {
|
|
221
|
+
let a = P(""), o = {
|
|
222
222
|
id: 0,
|
|
223
223
|
name: e().Common.All
|
|
224
224
|
}, s = () => {
|
|
225
225
|
a.value = "";
|
|
226
|
-
}, c = () => !(!i.apiRequest || a.value.length >= n.minLength), l =
|
|
226
|
+
}, c = () => !(!i.apiRequest || a.value.length >= n.minLength), l = _(() => {
|
|
227
227
|
let e = [];
|
|
228
228
|
return !n.multiselect && n.useAllItem && (typeof n.useAllItem == "string" && (o.name = n.useAllItem), e.push(o)), n.items?.forEach((t) => e.push(t)), e;
|
|
229
|
-
}), u =
|
|
230
|
-
u.value =
|
|
229
|
+
}), u = P([]), f = P(n.itemsChunkSize), p = () => {
|
|
230
|
+
u.value = g();
|
|
231
231
|
}, m = () => {
|
|
232
232
|
!n.itemsChunkSize || f.value === void 0 || (f.value += n.itemsChunkSize);
|
|
233
233
|
}, h = () => {
|
|
234
234
|
n.itemsChunkSize && (f.value = n.itemsChunkSize);
|
|
235
|
-
},
|
|
235
|
+
}, g = () => {
|
|
236
236
|
let e = a.value.toLowerCase(), r = d(e), o = [], s, c = [], u = () => {
|
|
237
237
|
c.at(-1)?.listItemProps?.type === "delimiter" && c.pop(), c.length &&= (s && o.push(s), o.push(...c), 0);
|
|
238
238
|
}, p = (t) => {
|
|
@@ -258,20 +258,20 @@ var G = {
|
|
|
258
258
|
};
|
|
259
259
|
n.appendWithoutSelect && (e.listItemProps = { closeByClick: !1 }), o.push(e);
|
|
260
260
|
}
|
|
261
|
-
return n.multiselect && (o = o.filter((e) => !
|
|
261
|
+
return n.multiselect && (o = o.filter((e) => !_e(t.value, e))), n.prepareItemsBeforeRender && (o = n.prepareItemsBeforeRender(o)), o;
|
|
262
262
|
}, v = (e) => {
|
|
263
|
-
e.listItemProps?.type === "title" || e.listItemProps?.type === "delimiter" || e.id === null && (r("appendItem", e), n.appendWithoutSelect) || (n.multiselect && Array.isArray(t.value) ?
|
|
263
|
+
e.listItemProps?.type === "title" || e.listItemProps?.type === "delimiter" || e.id === null && (r("appendItem", e), n.appendWithoutSelect) || (n.multiselect && Array.isArray(t.value) ? _e(t.value, e) || (t.value = [...t.value, e]) : t.value = e, setTimeout(() => {
|
|
264
264
|
s();
|
|
265
265
|
}));
|
|
266
266
|
};
|
|
267
267
|
if (i.apiRequest) {
|
|
268
268
|
let e = [() => n.items, i.items];
|
|
269
|
-
n.multiselect && e.push(t),
|
|
269
|
+
n.multiselect && e.push(t), H(e, () => {
|
|
270
270
|
p();
|
|
271
271
|
}, { deep: 2 });
|
|
272
|
-
} else
|
|
272
|
+
} else H(a, () => {
|
|
273
273
|
h();
|
|
274
|
-
}),
|
|
274
|
+
}), H([
|
|
275
275
|
t,
|
|
276
276
|
() => n.items,
|
|
277
277
|
a,
|
|
@@ -281,7 +281,7 @@ var G = {
|
|
|
281
281
|
}, {
|
|
282
282
|
immediate: !0,
|
|
283
283
|
deep: 2
|
|
284
|
-
}),
|
|
284
|
+
}), H([() => n.items?.length ?? 0, () => n.items], (e, r) => {
|
|
285
285
|
(e[0] < r[0] || e[1] !== r[1]) && (Array.isArray(t.value) ? t.value : [t.value]).forEach((e) => {
|
|
286
286
|
e.id !== o.id && (n.items?.find((t) => t.id === e.id) || (e.name = "--"));
|
|
287
287
|
});
|
|
@@ -303,18 +303,18 @@ var G = {
|
|
|
303
303
|
Array.isArray(t.value) && (t.value = t.value.filter((t) => t.id !== e.id || t.name !== e.name));
|
|
304
304
|
}
|
|
305
305
|
};
|
|
306
|
-
},
|
|
306
|
+
}, be = {
|
|
307
307
|
key: 0,
|
|
308
308
|
class: "top-selector2_activeItems"
|
|
309
|
-
},
|
|
309
|
+
}, xe = {
|
|
310
310
|
key: 1,
|
|
311
311
|
class: "top-selector2_activeName top-ellipsis"
|
|
312
|
-
},
|
|
312
|
+
}, Se = {
|
|
313
313
|
key: 2,
|
|
314
314
|
class: "top-selector2_placeholder top-ellipsis"
|
|
315
|
-
},
|
|
315
|
+
}, Ce = { class: "top-selector2_searchWidget" }, we = /* @__PURE__ */ T({
|
|
316
316
|
__name: "selector2",
|
|
317
|
-
props: /*@__PURE__*/
|
|
317
|
+
props: /*@__PURE__*/ E({
|
|
318
318
|
modelValue: {},
|
|
319
319
|
items: { default: () => [] },
|
|
320
320
|
itemsChunkSize: {},
|
|
@@ -352,13 +352,13 @@ var G = {
|
|
|
352
352
|
modelValue: { required: !0 },
|
|
353
353
|
modelModifiers: {}
|
|
354
354
|
}),
|
|
355
|
-
emits: /*@__PURE__*/
|
|
355
|
+
emits: /*@__PURE__*/ E(["appendItem", "open"], ["update:modelValue"]),
|
|
356
356
|
setup(e, { expose: t, emit: r, slots: i }) {
|
|
357
|
-
let a = e, o =
|
|
358
|
-
d.apiRequest &&
|
|
359
|
-
d.setSearchTextAndLoad(
|
|
357
|
+
let a = e, o = V(e, "modelValue"), c = r, u = _(() => a.searchType === "inline" && a.multiselect || a.searchType === "inline" && n.state.isMobile ? "popup" : a.searchType), d = me(a.api, a.apiSetSearchParams, a.minLength, a.useCache, o), g = ye(o, a, c, d), T = _(() => a.buttonProps ? "TopButton" : u.value === "inline" ? "TopInput" : "div"), E = P(null), O = P(null), k = () => E.value?.popup;
|
|
358
|
+
d.apiRequest && H(g.searchText, () => {
|
|
359
|
+
d.setSearchTextAndLoad(g.searchText.value);
|
|
360
360
|
});
|
|
361
|
-
let A =
|
|
361
|
+
let A = _(() => Array.isArray(o.value) || a.multiselect || !a.selectedAsPlaceholder && u.value !== "inline" ? a.placeholder : o.value?.name || a.placeholder), j = (e) => {
|
|
362
362
|
let t = !1;
|
|
363
363
|
switch (e.key) {
|
|
364
364
|
case "Delete":
|
|
@@ -374,49 +374,49 @@ var G = {
|
|
|
374
374
|
t = !0;
|
|
375
375
|
break;
|
|
376
376
|
case "Escape":
|
|
377
|
-
u.value === "inline" &&
|
|
377
|
+
u.value === "inline" && g.resetSearch();
|
|
378
378
|
break;
|
|
379
379
|
}
|
|
380
380
|
let n = e.key.length === 1 && !e.ctrlKey && !e.metaKey;
|
|
381
|
-
(u.value === "popup" || u.value === "inline") && n && (t = !0), k()?.elPopup && (t = !1), t && (u.value === "popup" && (e.preventDefault(), e.stopPropagation(), n && (
|
|
382
|
-
},
|
|
383
|
-
e.preventDefault(),
|
|
384
|
-
},
|
|
385
|
-
d.apiRequest && d.setSearchTextAndLoad(
|
|
381
|
+
(u.value === "popup" || u.value === "inline") && n && (t = !0), k()?.elPopup && (t = !1), t && (u.value === "popup" && (e.preventDefault(), e.stopPropagation(), n && (g.searchText.value || (g.searchText.value = e.key))), e.currentTarget?.click());
|
|
382
|
+
}, M = (e) => {
|
|
383
|
+
e.preventDefault(), g.selectNextItem();
|
|
384
|
+
}, z = () => {
|
|
385
|
+
d.apiRequest && d.setSearchTextAndLoad(g.searchText.value, !1), c("open");
|
|
386
386
|
}, G = () => {
|
|
387
|
-
|
|
387
|
+
g.resetItemsForShow(), u.value === "popup" && g.searchText.value && g.resetSearch();
|
|
388
388
|
}, K = (e) => {
|
|
389
389
|
let t = e.target;
|
|
390
|
-
t.scrollTop / (t.scrollHeight - t.offsetHeight) > .8 && (a.api ? d.load(!0) :
|
|
390
|
+
t.scrollTop / (t.scrollHeight - t.offsetHeight) > .8 && (a.api ? d.load(!0) : g.revelItemsForShow());
|
|
391
391
|
};
|
|
392
392
|
return t({
|
|
393
393
|
getPopup: k,
|
|
394
394
|
popupOpenerRef: O,
|
|
395
395
|
resetCache: (e = !1) => {
|
|
396
396
|
d.apiRequest && (e && Q(d.apiRequest.path), d.items.value = [], d.countLoading.value = 0, d.apiRequest.params.offset = 0, requestAnimationFrame(() => {
|
|
397
|
-
|
|
398
|
-
}), k()?.elPopup && d.setSearchTextAndLoad(
|
|
397
|
+
g.itemsForShow.value = [];
|
|
398
|
+
}), k()?.elPopup && d.setSearchTextAndLoad(g.searchText.value));
|
|
399
399
|
},
|
|
400
400
|
updateCacheItemById: (e, t) => {
|
|
401
|
-
d.apiRequest &&
|
|
401
|
+
d.apiRequest && fe(d.apiRequest.path, e, t);
|
|
402
402
|
},
|
|
403
403
|
deleteCacheItemById: (e) => {
|
|
404
|
-
d.apiRequest &&
|
|
404
|
+
d.apiRequest && pe(d.apiRequest.path, e);
|
|
405
405
|
}
|
|
406
406
|
}), (t, r) => {
|
|
407
|
-
let a = ee("TopLoadbar"), c =
|
|
408
|
-
return
|
|
407
|
+
let a = ee("TopLoadbar"), c = L("top-focus"), _ = L("top-shortcut");
|
|
408
|
+
return N(), v(B(m), {
|
|
409
409
|
ref_key: "popupRef",
|
|
410
|
-
ref:
|
|
411
|
-
onOpen: r[3] ||= (e) =>
|
|
410
|
+
ref: E,
|
|
411
|
+
onOpen: r[3] ||= (e) => z(),
|
|
412
412
|
onClose: r[4] ||= (e) => G(),
|
|
413
413
|
onScrollContentList: r[5] ||= (e) => K(e),
|
|
414
414
|
notch: !1,
|
|
415
415
|
transitionDuration: 0,
|
|
416
416
|
openByFocusInput: u.value === "inline" && (e.openByFocusInput ?? !0),
|
|
417
|
-
disabled: u.value === "inline" &&
|
|
418
|
-
},
|
|
419
|
-
opener:
|
|
417
|
+
disabled: u.value === "inline" && B(g).genIsShort()
|
|
418
|
+
}, S({
|
|
419
|
+
opener: U(() => [W((N(), v(te(T.value), D({
|
|
420
420
|
ref_key: "popupOpenerRef",
|
|
421
421
|
ref: O
|
|
422
422
|
}, e.buttonProps, {
|
|
@@ -433,33 +433,33 @@ var G = {
|
|
|
433
433
|
},
|
|
434
434
|
icon: e.icon,
|
|
435
435
|
tabindex: "0",
|
|
436
|
-
onKeydown:
|
|
437
|
-
onBlur: r[0] ||= (e) => u.value === "inline" &&
|
|
436
|
+
onKeydown: j,
|
|
437
|
+
onBlur: r[0] ||= (e) => u.value === "inline" && B(g).resetSearch(),
|
|
438
438
|
placeholder: A.value,
|
|
439
439
|
title: e.title,
|
|
440
440
|
captionType: u.value === "inline" && e.title !== void 0 ? "top" : void 0,
|
|
441
|
-
modelValue:
|
|
442
|
-
"onUpdate:modelValue": r[1] ||= (e) =>
|
|
441
|
+
modelValue: B(g).searchText.value,
|
|
442
|
+
"onUpdate:modelValue": r[1] ||= (e) => B(g).searchText.value = e
|
|
443
443
|
}), {
|
|
444
|
-
default:
|
|
445
|
-
e.multiselect ? (
|
|
444
|
+
default: U(() => [
|
|
445
|
+
e.multiselect ? (N(), b("div", be, [(N(!0), b(h, null, F(o.value, (e) => (N(), v(ae, {
|
|
446
446
|
key: e.id ?? void 0,
|
|
447
447
|
id: e.id,
|
|
448
448
|
name: e.name,
|
|
449
|
-
onDelete:
|
|
449
|
+
onDelete: B(g).deleteItemByItem
|
|
450
450
|
}, null, 8, [
|
|
451
451
|
"id",
|
|
452
452
|
"name",
|
|
453
453
|
"onDelete"
|
|
454
|
-
]))), 128))])) :
|
|
455
|
-
u.value !== "inline" && !e.multiselect ? (
|
|
456
|
-
e.multiselect && !o.value.length ? (
|
|
457
|
-
e.addChanger && !e.buttonProps && !e.multiselect &&
|
|
454
|
+
]))), 128))])) : y("", !0),
|
|
455
|
+
u.value !== "inline" && !e.multiselect ? (N(), b("span", xe, R(Array.isArray(o.value) ? "" : o.value.name), 1)) : y("", !0),
|
|
456
|
+
e.multiselect && !o.value.length ? (N(), b("span", Se, R(A.value), 1)) : y("", !0),
|
|
457
|
+
e.addChanger && !e.buttonProps && !e.multiselect && B(g).itemsForShow.value.length > 1 && !e.disabled ? (N(), b("span", {
|
|
458
458
|
key: 3,
|
|
459
459
|
class: "top-changer top-changer-selector",
|
|
460
460
|
"data-top-popup-disabled": "true",
|
|
461
|
-
onClick:
|
|
462
|
-
})) :
|
|
461
|
+
onClick: M
|
|
462
|
+
})) : y("", !0)
|
|
463
463
|
]),
|
|
464
464
|
_: 1
|
|
465
465
|
}, 16, [
|
|
@@ -474,49 +474,49 @@ var G = {
|
|
|
474
474
|
e.isError,
|
|
475
475
|
void 0,
|
|
476
476
|
{ onupdate: !0 }
|
|
477
|
-
], [
|
|
478
|
-
contentList:
|
|
479
|
-
(
|
|
477
|
+
], [_, e.openerShortcut]])]),
|
|
478
|
+
contentList: U(() => [
|
|
479
|
+
(N(!0), b(h, null, F(B(g).itemsForShow.value, (r) => (N(), v(B(p), D({
|
|
480
480
|
key: r.id ?? void 0,
|
|
481
481
|
class: {
|
|
482
482
|
"top-active": !Array.isArray(o.value) && !e.multiselect && o.value.id === r.id && o.value.name === r.name,
|
|
483
|
-
"top-selector2_item-all": r.id ===
|
|
484
|
-
"top-selector2_item-new": r.id ===
|
|
483
|
+
"top-selector2_item-all": r.id === B(0),
|
|
484
|
+
"top-selector2_item-new": r.id === B(null)
|
|
485
485
|
},
|
|
486
|
-
closeByClick: !e.multiselect ||
|
|
487
|
-
}, { ref_for: !0 }, r.listItemProps, { onClick: (e) =>
|
|
488
|
-
default:
|
|
486
|
+
closeByClick: !e.multiselect || B(n).state.isMobile
|
|
487
|
+
}, { ref_for: !0 }, r.listItemProps, { onClick: (e) => B(g).selectItem(r) }), S({
|
|
488
|
+
default: U(() => [i.item ? I(t.$slots, "item", { item: r }, void 0, void 0, 0) : (N(), b(h, { key: 1 }, [C(R(r.name), 1)], 64))]),
|
|
489
489
|
_: 2
|
|
490
490
|
}, [i.actions ? {
|
|
491
491
|
name: "actions",
|
|
492
|
-
fn:
|
|
492
|
+
fn: U(() => [I(t.$slots, "actions", { item: r })]),
|
|
493
493
|
key: "0"
|
|
494
494
|
} : void 0]), 1040, [
|
|
495
495
|
"class",
|
|
496
496
|
"closeByClick",
|
|
497
497
|
"onClick"
|
|
498
498
|
]))), 128)),
|
|
499
|
-
!
|
|
499
|
+
!B(g).itemsForShow.value.length && !B(g).genIsShort() ? (N(), v(B(p), {
|
|
500
500
|
key: 0,
|
|
501
501
|
type: "regular"
|
|
502
502
|
}, {
|
|
503
|
-
default:
|
|
503
|
+
default: U(() => [B(d).isLoading.value && !B(d).countLoading.value || e.itemsIsLoading ? (N(), v(B(l), {
|
|
504
504
|
key: 0,
|
|
505
505
|
type: "circles"
|
|
506
|
-
})) : (
|
|
506
|
+
})) : (N(), b(h, { key: 1 }, [C(R(t.$i18n.Common.No_results), 1)], 64))]),
|
|
507
507
|
_: 1
|
|
508
|
-
})) :
|
|
509
|
-
|
|
508
|
+
})) : y("", !0),
|
|
509
|
+
B(d).countLoading.value && B(d).isLoading.value && u.value === "inline" ? (N(), v(a, { key: 1 })) : y("", !0)
|
|
510
510
|
]),
|
|
511
511
|
_: 2
|
|
512
512
|
}, [u.value === "popup" ? {
|
|
513
513
|
name: "widget",
|
|
514
|
-
fn:
|
|
514
|
+
fn: U(() => [x("div", Ce, [W(w(B(f), {
|
|
515
515
|
title: "Поиск",
|
|
516
516
|
icon: "",
|
|
517
|
-
modelValue:
|
|
518
|
-
"onUpdate:modelValue": r[2] ||= (e) =>
|
|
519
|
-
isLoading: !!
|
|
517
|
+
modelValue: B(g).searchText.value,
|
|
518
|
+
"onUpdate:modelValue": r[2] ||= (e) => B(g).searchText.value = e,
|
|
519
|
+
isLoading: !!B(d).countLoading.value && B(d).isLoading.value,
|
|
520
520
|
placeholder: A.value
|
|
521
521
|
}, null, 8, [
|
|
522
522
|
"modelValue",
|
|
@@ -527,19 +527,19 @@ var G = {
|
|
|
527
527
|
o.value,
|
|
528
528
|
void 0,
|
|
529
529
|
{ onupdate: !0 }
|
|
530
|
-
]]), e.hasCloserBtn && !t.$core.state.isMobile ? (
|
|
530
|
+
]]), e.hasCloserBtn && !t.$core.state.isMobile ? (N(), v(B(s), {
|
|
531
531
|
key: 0,
|
|
532
532
|
class: "closer",
|
|
533
533
|
color: "theme"
|
|
534
534
|
}, {
|
|
535
|
-
default:
|
|
535
|
+
default: U(() => [C(R(t.$i18n.Common.Cancel), 1)]),
|
|
536
536
|
_: 1
|
|
537
|
-
})) :
|
|
537
|
+
})) : y("", !0)])]),
|
|
538
538
|
key: "0"
|
|
539
539
|
} : void 0]), 1032, ["openByFocusInput", "disabled"]);
|
|
540
540
|
};
|
|
541
541
|
}
|
|
542
|
-
}),
|
|
542
|
+
}), Te = { class: "top-editArea_footer" }, Ee = /* @__PURE__ */ T({
|
|
543
543
|
__name: "editArea",
|
|
544
544
|
props: {
|
|
545
545
|
defaultValue: { default: "" },
|
|
@@ -572,7 +572,7 @@ var G = {
|
|
|
572
572
|
"clickOnTitle"
|
|
573
573
|
],
|
|
574
574
|
setup(e, { emit: t, slots: n }) {
|
|
575
|
-
let r = e, i = t, a =
|
|
575
|
+
let r = e, i = t, a = P(r.defaultValue), o = P(r.isFocused), l = _(() => a.value !== r.defaultValue), u = (e) => {
|
|
576
576
|
i("submit", e), a.value = r.defaultValue;
|
|
577
577
|
}, d = () => {
|
|
578
578
|
if (r.forceShowCloseBtn && !l.value) {
|
|
@@ -583,20 +583,20 @@ var G = {
|
|
|
583
583
|
}, f = () => {
|
|
584
584
|
r.attachToKeyboard && i("clickOnTitle");
|
|
585
585
|
};
|
|
586
|
-
return (t, r) => (
|
|
586
|
+
return (t, r) => (N(), b("div", { class: O({
|
|
587
587
|
"top-editArea": !0,
|
|
588
588
|
"top-editArea-attachedToKeyboard": e.attachToKeyboard
|
|
589
|
-
}) }, [e.title || n.caption ? (
|
|
589
|
+
}) }, [e.title || n.caption ? (N(), b("div", {
|
|
590
590
|
key: 0,
|
|
591
591
|
class: "top-editArea_caption",
|
|
592
592
|
onClick: r[0] ||= (e) => f()
|
|
593
|
-
}, [
|
|
593
|
+
}, [I(t.$slots, "caption", {}, () => [C(R(e.title), 1)])])) : y("", !0), x("div", { class: O({
|
|
594
594
|
"top-editArea_form": !0,
|
|
595
595
|
"top-forms-focusable": !0,
|
|
596
596
|
"top-as-input": !0,
|
|
597
597
|
"top-error": e.isError,
|
|
598
598
|
"top-focus": o.value
|
|
599
|
-
}) }, [
|
|
599
|
+
}) }, [w(c, {
|
|
600
600
|
modelValue: a.value,
|
|
601
601
|
"onUpdate:modelValue": r[1] ||= (e) => a.value = e,
|
|
602
602
|
name: e.name,
|
|
@@ -611,7 +611,7 @@ var G = {
|
|
|
611
611
|
class: "top-editArea_element",
|
|
612
612
|
onFocus: r[2] ||= () => o.value = !0,
|
|
613
613
|
onBlur: r[3] ||= () => o.value = !1,
|
|
614
|
-
onKeyup: [
|
|
614
|
+
onKeyup: [G(d, ["esc"]), r[4] ||= G(K((e) => u(a.value), ["ctrl"]), ["enter"])]
|
|
615
615
|
}, null, 8, [
|
|
616
616
|
"modelValue",
|
|
617
617
|
"name",
|
|
@@ -623,29 +623,29 @@ var G = {
|
|
|
623
623
|
"readonly",
|
|
624
624
|
"isError",
|
|
625
625
|
"hint"
|
|
626
|
-
]),
|
|
626
|
+
]), x("div", Te, [l.value || e.forceShowCloseBtn ? (N(), v(s, {
|
|
627
627
|
key: 0,
|
|
628
628
|
icon: t.$core.state.isMobile ? "" : "",
|
|
629
629
|
class: "top-editArea_button",
|
|
630
630
|
color: "theme",
|
|
631
631
|
styling: "soft",
|
|
632
632
|
onClick: d
|
|
633
|
-
},
|
|
633
|
+
}, S({ _: 2 }, [t.$core.state.isMobile ? void 0 : {
|
|
634
634
|
name: "default",
|
|
635
|
-
fn:
|
|
635
|
+
fn: U(() => [C(R(e.cancelText), 1)]),
|
|
636
636
|
key: "0"
|
|
637
|
-
}]), 1032, ["icon"])) :
|
|
637
|
+
}]), 1032, ["icon"])) : y("", !0), l.value ? (N(), v(s, {
|
|
638
638
|
key: 1,
|
|
639
639
|
class: "top-editArea_button",
|
|
640
640
|
icon: t.$core.state.isMobile ? "" : "",
|
|
641
641
|
onClick: r[5] ||= (e) => u(a.value)
|
|
642
|
-
},
|
|
642
|
+
}, S({ _: 2 }, [t.$core.state.isMobile ? void 0 : {
|
|
643
643
|
name: "default",
|
|
644
|
-
fn:
|
|
644
|
+
fn: U(() => [C(R(e.submitText), 1)]),
|
|
645
645
|
key: "0"
|
|
646
|
-
}]), 1032, ["icon"])) :
|
|
646
|
+
}]), 1032, ["icon"])) : y("", !0)])], 2)], 2));
|
|
647
647
|
}
|
|
648
|
-
}),
|
|
648
|
+
}), De = { class: "top-editInput" }, Oe = /* @__PURE__ */ T({
|
|
649
649
|
__name: "editInput",
|
|
650
650
|
props: {
|
|
651
651
|
modelValue: {},
|
|
@@ -655,31 +655,31 @@ var G = {
|
|
|
655
655
|
},
|
|
656
656
|
emits: ["update:modelValue"],
|
|
657
657
|
setup(e, { emit: t, slots: n }) {
|
|
658
|
-
let r = e, i =
|
|
659
|
-
|
|
658
|
+
let r = e, i = P(r.modelValue);
|
|
659
|
+
H(() => r.modelValue, () => {
|
|
660
660
|
i.value = r.modelValue;
|
|
661
661
|
});
|
|
662
662
|
let o = t, c = () => {
|
|
663
663
|
o("update:modelValue", i.value);
|
|
664
664
|
};
|
|
665
|
-
return (t, r) => (
|
|
666
|
-
onKeydownCapture: r[0] ||=
|
|
667
|
-
onKeydown:
|
|
665
|
+
return (t, r) => (N(), b("div", De, [w(a, D(e.input, {
|
|
666
|
+
onKeydownCapture: r[0] ||= G(K((t) => i.value = e.modelValue, ["stop"]), ["esc"]),
|
|
667
|
+
onKeydown: G(K(c, ["stop"]), ["enter"]),
|
|
668
668
|
modelValue: i.value,
|
|
669
669
|
"onUpdate:modelValue": r[1] ||= (e) => i.value = e
|
|
670
|
-
}),
|
|
670
|
+
}), S({ _: 2 }, [n.caption ? {
|
|
671
671
|
name: "caption",
|
|
672
|
-
fn:
|
|
672
|
+
fn: U(() => [I(t.$slots, "caption")]),
|
|
673
673
|
key: "0"
|
|
674
|
-
} : void 0]), 1040, ["onKeydown", "modelValue"]), i.value !== e.modelValue || e.alwaysShowSubmitBtn ? (
|
|
674
|
+
} : void 0]), 1040, ["onKeydown", "modelValue"]), i.value !== e.modelValue || e.alwaysShowSubmitBtn ? (N(), v(s, D({
|
|
675
675
|
key: 0,
|
|
676
676
|
icon: "",
|
|
677
677
|
styling: "soft"
|
|
678
|
-
}, e.button, { onClick: c }), null, 16)) :
|
|
678
|
+
}, e.button, { onClick: c }), null, 16)) : y("", !0)]));
|
|
679
679
|
}
|
|
680
|
-
}),
|
|
680
|
+
}), ke = /* @__PURE__ */ T({
|
|
681
681
|
__name: "optionGroup",
|
|
682
|
-
props: /*@__PURE__*/
|
|
682
|
+
props: /*@__PURE__*/ E({
|
|
683
683
|
modelValue: {},
|
|
684
684
|
items: {},
|
|
685
685
|
size: { default: "s" },
|
|
@@ -691,24 +691,24 @@ var G = {
|
|
|
691
691
|
}),
|
|
692
692
|
emits: ["update:modelValue"],
|
|
693
693
|
setup(e) {
|
|
694
|
-
let t =
|
|
695
|
-
|
|
694
|
+
let t = V(e, "modelValue"), n = e, r = P(null);
|
|
695
|
+
H(t, () => {
|
|
696
696
|
let e = n.items.map((e) => e.value);
|
|
697
697
|
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();
|
|
698
698
|
}, { immediate: !0 });
|
|
699
699
|
let a = "optionGroup-" + Math.random();
|
|
700
|
-
return (n, s) => (
|
|
700
|
+
return (n, s) => (N(), b("div", {
|
|
701
701
|
ref_key: "elRef",
|
|
702
702
|
ref: r,
|
|
703
|
-
class:
|
|
703
|
+
class: O({
|
|
704
704
|
"top-optionGroup": !0,
|
|
705
705
|
["top-optionGroup-showIndicator_" + Number(e.showIndicator)]: !0,
|
|
706
706
|
"top-scrollBarXHidding": !0,
|
|
707
707
|
["top-size_" + e.size]: !!e.size,
|
|
708
708
|
"top-error": e.isError
|
|
709
709
|
})
|
|
710
|
-
}, [Array.isArray(t.value) ? (
|
|
711
|
-
class:
|
|
710
|
+
}, [Array.isArray(t.value) ? (N(!0), b(h, { key: 0 }, F(e.items, (n) => (N(), v(o, {
|
|
711
|
+
class: O({
|
|
712
712
|
"top-optionGroup_item-selected": t.value.includes(n.value),
|
|
713
713
|
"top-optionGroup_item": !0
|
|
714
714
|
}),
|
|
@@ -719,9 +719,9 @@ var G = {
|
|
|
719
719
|
disabled: n.disabled,
|
|
720
720
|
isError: e.isError,
|
|
721
721
|
"data-top-icon": n.icon
|
|
722
|
-
},
|
|
722
|
+
}, S({ _: 2 }, [n.label ? {
|
|
723
723
|
name: "default",
|
|
724
|
-
fn:
|
|
724
|
+
fn: U(() => [C(R(n.label), 1)]),
|
|
725
725
|
key: "0"
|
|
726
726
|
} : void 0]), 1032, [
|
|
727
727
|
"class",
|
|
@@ -731,8 +731,8 @@ var G = {
|
|
|
731
731
|
"disabled",
|
|
732
732
|
"isError",
|
|
733
733
|
"data-top-icon"
|
|
734
|
-
]))), 256)) : (
|
|
735
|
-
class:
|
|
734
|
+
]))), 256)) : (N(!0), b(h, { key: 1 }, F(e.items, (n) => (N(), v(i, {
|
|
735
|
+
class: O({
|
|
736
736
|
"top-optionGroup_item-selected": n.value === t.value,
|
|
737
737
|
"top-optionGroup_item": !0
|
|
738
738
|
}),
|
|
@@ -744,9 +744,9 @@ var G = {
|
|
|
744
744
|
disabled: n.disabled,
|
|
745
745
|
isError: e.isError,
|
|
746
746
|
"data-top-icon": n.icon
|
|
747
|
-
},
|
|
747
|
+
}, S({ _: 2 }, [n.label ? {
|
|
748
748
|
name: "default",
|
|
749
|
-
fn:
|
|
749
|
+
fn: U(() => [C(R(n.label), 1)]),
|
|
750
750
|
key: "0"
|
|
751
751
|
} : void 0]), 1032, [
|
|
752
752
|
"class",
|
|
@@ -758,9 +758,9 @@ var G = {
|
|
|
758
758
|
"data-top-icon"
|
|
759
759
|
]))), 256))], 2));
|
|
760
760
|
}
|
|
761
|
-
}),
|
|
761
|
+
}), Ae = /* @__PURE__ */ T({
|
|
762
762
|
__name: "radioGroup",
|
|
763
|
-
props: /*@__PURE__*/
|
|
763
|
+
props: /*@__PURE__*/ E({
|
|
764
764
|
modelValue: {},
|
|
765
765
|
items: {},
|
|
766
766
|
size: {},
|
|
@@ -772,8 +772,8 @@ var G = {
|
|
|
772
772
|
}),
|
|
773
773
|
emits: ["update:modelValue"],
|
|
774
774
|
setup(e) {
|
|
775
|
-
let t = e, n =
|
|
776
|
-
return (e, r) => (
|
|
775
|
+
let t = e, n = V(e, "modelValue");
|
|
776
|
+
return (e, r) => (N(), v(ke, {
|
|
777
777
|
class: "top-radioGroup",
|
|
778
778
|
modelValue: n.value,
|
|
779
779
|
"onUpdate:modelValue": r[0] ||= (e) => n.value = e,
|
|
@@ -782,7 +782,7 @@ var G = {
|
|
|
782
782
|
showIndicator: t.showIndicator,
|
|
783
783
|
isError: t.isError
|
|
784
784
|
}, {
|
|
785
|
-
default:
|
|
785
|
+
default: U(() => [I(e.$slots, "default")]),
|
|
786
786
|
_: 3
|
|
787
787
|
}, 8, [
|
|
788
788
|
"modelValue",
|
|
@@ -792,9 +792,9 @@ var G = {
|
|
|
792
792
|
"isError"
|
|
793
793
|
]));
|
|
794
794
|
}
|
|
795
|
-
}),
|
|
795
|
+
}), je = /* @__PURE__ */ T({
|
|
796
796
|
__name: "checkboxGroup",
|
|
797
|
-
props: /*@__PURE__*/
|
|
797
|
+
props: /*@__PURE__*/ E({
|
|
798
798
|
modelValue: {},
|
|
799
799
|
items: {},
|
|
800
800
|
size: {},
|
|
@@ -806,8 +806,8 @@ var G = {
|
|
|
806
806
|
}),
|
|
807
807
|
emits: ["update:modelValue"],
|
|
808
808
|
setup(e) {
|
|
809
|
-
let t = e, n =
|
|
810
|
-
return (e, r) => (
|
|
809
|
+
let t = e, n = V(e, "modelValue");
|
|
810
|
+
return (e, r) => (N(), v(ke, {
|
|
811
811
|
class: "top-checkboxGroup",
|
|
812
812
|
modelValue: n.value,
|
|
813
813
|
"onUpdate:modelValue": r[0] ||= (e) => n.value = e,
|
|
@@ -816,7 +816,7 @@ var G = {
|
|
|
816
816
|
showIndicator: t.showIndicator,
|
|
817
817
|
isError: t.isError
|
|
818
818
|
}, {
|
|
819
|
-
default:
|
|
819
|
+
default: U(() => [I(e.$slots, "default")]),
|
|
820
820
|
_: 3
|
|
821
821
|
}, 8, [
|
|
822
822
|
"modelValue",
|
|
@@ -826,10 +826,10 @@ var G = {
|
|
|
826
826
|
"isError"
|
|
827
827
|
]));
|
|
828
828
|
}
|
|
829
|
-
}),
|
|
829
|
+
}), Me = ["data-top-icon"], Ne = { class: "top-info_text" }, Pe = {
|
|
830
830
|
key: 0,
|
|
831
831
|
class: "top-info_value"
|
|
832
|
-
},
|
|
832
|
+
}, Fe = /* @__PURE__ */ T({
|
|
833
833
|
__name: "info",
|
|
834
834
|
props: {
|
|
835
835
|
icon: {},
|
|
@@ -837,19 +837,19 @@ var G = {
|
|
|
837
837
|
size: { default: "default" }
|
|
838
838
|
},
|
|
839
839
|
setup(e, { slots: t }) {
|
|
840
|
-
return (n, r) => (
|
|
841
|
-
class:
|
|
840
|
+
return (n, r) => (N(), b("div", {
|
|
841
|
+
class: O({
|
|
842
842
|
"top-info": !0,
|
|
843
843
|
["top-size_" + e.size]: !0,
|
|
844
844
|
["top-info-styling_" + e.styling]: !0
|
|
845
845
|
}),
|
|
846
846
|
"data-top-icon": e.icon
|
|
847
|
-
}, [
|
|
847
|
+
}, [x("div", Ne, [I(n.$slots, "default")]), t.additional ? (N(), b("span", Pe, [I(n.$slots, "additional")])) : y("", !0)], 10, Me));
|
|
848
848
|
}
|
|
849
|
-
}),
|
|
849
|
+
}), Ie = {
|
|
850
850
|
key: 0,
|
|
851
851
|
class: "top-policy"
|
|
852
|
-
},
|
|
852
|
+
}, Le = { class: "top-policy_title" }, Re = ["innerHTML"], ze = /* @__PURE__ */ T({
|
|
853
853
|
__name: "policy",
|
|
854
854
|
props: {
|
|
855
855
|
title: {},
|
|
@@ -858,26 +858,68 @@ var G = {
|
|
|
858
858
|
},
|
|
859
859
|
emits: ["accept"],
|
|
860
860
|
setup(e, { emit: t }) {
|
|
861
|
-
let n = t, r =
|
|
861
|
+
let n = t, r = P(!0), i = () => {
|
|
862
862
|
r.value = !1, n("accept");
|
|
863
863
|
};
|
|
864
|
-
return (t, n) => r.value ? (
|
|
865
|
-
|
|
866
|
-
|
|
864
|
+
return (t, n) => r.value ? (N(), b("div", Ie, [
|
|
865
|
+
x("div", Le, R(e.title), 1),
|
|
866
|
+
x("div", {
|
|
867
867
|
class: "top-policy_description",
|
|
868
868
|
innerHTML: e.description
|
|
869
|
-
}, null, 8,
|
|
870
|
-
|
|
869
|
+
}, null, 8, Re),
|
|
870
|
+
w(B(s), {
|
|
871
871
|
size: "m",
|
|
872
872
|
onClick: i
|
|
873
873
|
}, {
|
|
874
|
-
default:
|
|
874
|
+
default: U(() => [C(R(e.acceptText), 1)]),
|
|
875
875
|
_: 1
|
|
876
876
|
})
|
|
877
|
-
])) :
|
|
877
|
+
])) : y("", !0);
|
|
878
|
+
}
|
|
879
|
+
}), Be = {
|
|
880
|
+
key: 0,
|
|
881
|
+
class: "top-banner"
|
|
882
|
+
}, Ve = { class: "top-banner_content" }, He = { class: "top-banner_contentText" }, Ue = /* @__PURE__ */ T({
|
|
883
|
+
__name: "banner",
|
|
884
|
+
props: {
|
|
885
|
+
showCloseButton: {
|
|
886
|
+
type: Boolean,
|
|
887
|
+
default: !0
|
|
888
|
+
},
|
|
889
|
+
buttonProps: {}
|
|
890
|
+
},
|
|
891
|
+
emits: ["close"],
|
|
892
|
+
setup(e, { emit: t }) {
|
|
893
|
+
let n = t, r = P(!0), i = P(!1), a = () => {
|
|
894
|
+
i.value || (i.value = !0, r.value = !1);
|
|
895
|
+
}, o = (e) => {
|
|
896
|
+
let t = e;
|
|
897
|
+
t.style.height = `${t.offsetHeight}px`, t.style.overflow = "hidden", requestAnimationFrame(() => {
|
|
898
|
+
t.style.height = "0px", t.style.paddingTop = "0px", t.style.paddingBottom = "0px", t.style.opacity = "0";
|
|
899
|
+
});
|
|
900
|
+
}, c = () => {
|
|
901
|
+
n("close");
|
|
902
|
+
};
|
|
903
|
+
return (t, n) => (N(), v(g, {
|
|
904
|
+
duration: 200,
|
|
905
|
+
onBeforeLeave: o,
|
|
906
|
+
onAfterLeave: c
|
|
907
|
+
}, {
|
|
908
|
+
default: U(() => [r.value ? (N(), b("div", Be, [x("div", Ve, [x("span", He, [I(t.$slots, "default")]), e.buttonProps ? (N(), v(s, k(D({ key: 0 }, e.buttonProps)), {
|
|
909
|
+
default: U(() => [e.buttonProps.default ? (N(), b(h, { key: 0 }, [C(R(e.buttonProps.default), 1)], 64)) : y("", !0)]),
|
|
910
|
+
_: 1
|
|
911
|
+
}, 16)) : y("", !0)]), e.showCloseButton ? (N(), v(s, {
|
|
912
|
+
key: 0,
|
|
913
|
+
class: "top-banner_closeButton",
|
|
914
|
+
color: "theme",
|
|
915
|
+
icon: "",
|
|
916
|
+
onClick: a
|
|
917
|
+
})) : y("", !0)])) : y("", !0)]),
|
|
918
|
+
_: 3
|
|
919
|
+
}));
|
|
878
920
|
}
|
|
879
921
|
});
|
|
880
922
|
//#endregion
|
|
881
|
-
export {
|
|
923
|
+
export { Ae as a, we as c, ve as d, Q as f, je as i, he as l, ze as n, Oe as o, re as p, Fe as r, Ee as s, Ue as t, ge as u };
|
|
882
924
|
|
|
883
|
-
//# sourceMappingURL=formsExt-
|
|
925
|
+
//# sourceMappingURL=formsExt-DG99Ktz8.esm.js.map
|