@topvisor/ui 1.5.9-pnpm.5 → 1.5.9
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-DtFeVRvE.es.amd.js +2 -0
- package/.chunks/formsExt-DtFeVRvE.es.amd.js.map +1 -0
- package/.chunks/{formsExt-BD8Sap5u.es.js → formsExt-DtFeVRvE.es.js} +155 -155
- package/.chunks/formsExt-DtFeVRvE.es.js.map +1 -0
- package/assets/schedule.css +1 -1
- package/assets/themes/dark-th.css +1 -1
- package/assets/themes/dark.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 +1 -1
- package/package.json +2 -1
- package/project/project.amd.js +1 -1
- package/project/project.amd.js.map +1 -1
- package/project/project.js +349 -348
- package/project/project.js.map +1 -1
- package/schedule/schedule.amd.js +1 -1
- package/schedule/schedule.amd.js.map +1 -1
- package/schedule/schedule.js +159 -154
- package/schedule/schedule.js.map +1 -1
- package/src/components/project/groupSelector/groups/utils.d.ts +0 -1
- package/src/components/project/projectSelector/utils.d.ts +8 -2
- package/src/components/project/regionSelector/types.d.ts +17 -10
- package/src/components/project/regionSelector/utils/utils.d.ts +14 -14
- package/src/components/schedule/schedule/{compoents → components}/calendar/types.d.ts +1 -3
- package/src/components/schedule/schedule/{compoents → components}/emails/selector/types.d.ts +6 -2
- package/src/components/schedule/schedule/composables/useModeOptions.d.ts +7 -0
- package/src/components/schedule/schedule/composables/useModelByModeCache.d.ts +9 -0
- package/src/components/schedule/schedule/stories/play/play.d.ts +5 -0
- package/src/components/schedule/schedule/types.d.ts +9 -9
- package/src/components/schedule/schedule/utils.d.ts +1 -6
- package/src/components/schedule/schedule.d.ts +2 -2
- package/.chunks/formsExt-BD8Sap5u.es.amd.js +0 -2
- package/.chunks/formsExt-BD8Sap5u.es.amd.js.map +0 -1
- package/.chunks/formsExt-BD8Sap5u.es.js.map +0 -1
- /package/src/components/schedule/schedule/{compoents → components}/calendar/composables/useDaysByCalendarMode.d.ts +0 -0
- /package/src/components/schedule/schedule/{compoents → components}/emails/types.d.ts +0 -0
- /package/src/components/schedule/schedule/{compoents → components}/socials/types.d.ts +0 -0
- /package/src/components/schedule/schedule/{compoents → components}/timeSelector/types.d.ts +0 -0
|
@@ -10,7 +10,7 @@ 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.es.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-DA17NrM5.es.js";
|
|
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,
|
|
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, nextTick as O, normalizeClass as k, normalizeProps as A, onMounted as j, onUnmounted as M, onUpdated as N, openBlock as P, ref as F, renderList as I, renderSlot as L, resolveComponent as ee, resolveDirective as R, resolveDynamicComponent as te, toDisplayString as z, triggerRef as B, unref as V, useModel as H, watch as U, withCtx as W, withDirectives as G, withKeys as K, withModifiers as q } from "vue";
|
|
14
14
|
//#region src/components/formsExt/menu/menu.vue?vue&type=script&setup=true&lang.ts
|
|
15
15
|
var ne = {
|
|
16
16
|
key: 0,
|
|
@@ -30,7 +30,7 @@ var ne = {
|
|
|
30
30
|
}),
|
|
31
31
|
emits: ["update:modelValue"],
|
|
32
32
|
setup(e) {
|
|
33
|
-
let r = e, i =
|
|
33
|
+
let r = e, i = H(e, "modelValue"), a = F();
|
|
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,24 +66,24 @@ var ne = {
|
|
|
66
66
|
i.value = r.items.map((e) => e.href ?? e.value);
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
|
-
return
|
|
69
|
+
return j(() => u(!1)), N(() => u(!0)), (t, n) => (P(), b("div", {
|
|
70
70
|
ref_key: "el",
|
|
71
71
|
ref: a,
|
|
72
|
-
class:
|
|
72
|
+
class: k({
|
|
73
73
|
"top-menu": !0,
|
|
74
74
|
["top-style_" + e.styling]: !0
|
|
75
75
|
}),
|
|
76
76
|
onWheel: l
|
|
77
|
-
}, [(
|
|
77
|
+
}, [(P(!0), b(h, null, I(e.items, (e) => (P(), 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: W(() => [C(z(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 ? (P(), b("div", ne, [w(s, D(e.selectAllItem, {
|
|
87
87
|
class: "top-menu_item",
|
|
88
88
|
color: "theme",
|
|
89
89
|
styling: "",
|
|
@@ -91,7 +91,7 @@ var ne = {
|
|
|
91
91
|
isActive: i.value.length === e.items.length
|
|
92
92
|
}), S({ _: 2 }, [e.selectAllItem.content ? {
|
|
93
93
|
name: "default",
|
|
94
|
-
fn:
|
|
94
|
+
fn: W(() => [C(z(e.selectAllItem.content), 1)]),
|
|
95
95
|
key: "0"
|
|
96
96
|
} : void 0]), 1040, ["isActive"])])) : y("", !0)], 34));
|
|
97
97
|
}
|
|
@@ -103,26 +103,26 @@ var ne = {
|
|
|
103
103
|
},
|
|
104
104
|
emits: ["delete"],
|
|
105
105
|
setup(e, { emit: t }) {
|
|
106
|
-
return (n, r) => (
|
|
106
|
+
return (n, r) => (P(), b("div", ie, [C(z(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] ||= q(() => {}, ["stop"])
|
|
114
114
|
}, null, 32)]));
|
|
115
115
|
}
|
|
116
|
-
}),
|
|
117
|
-
|
|
118
|
-
},
|
|
119
|
-
|
|
120
|
-
}, $ = (e, t) => {
|
|
121
|
-
q.get(e)?.forEach((e) => t(e));
|
|
116
|
+
}), J = /* @__PURE__ */ new Map(), Y = /* @__PURE__ */ new Map(), X = /* @__PURE__ */ new Map(), Z = (e) => (X.has(e) || X.set(e, F(0)), X.get(e)), Q = (e) => {
|
|
117
|
+
Z(e).value++;
|
|
118
|
+
}, $ = (e) => {
|
|
119
|
+
J.get(e)?.clear(), Q(e);
|
|
122
120
|
}, oe = (e, t) => {
|
|
123
121
|
J.get(e)?.forEach((e) => t(e));
|
|
124
|
-
}, se = (e, t
|
|
125
|
-
|
|
122
|
+
}, se = (e, t) => {
|
|
123
|
+
Y.get(e)?.forEach((e) => t(e));
|
|
124
|
+
}, ce = (e, t, n) => {
|
|
125
|
+
se(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 ne = {
|
|
|
131
131
|
if (e.value.id !== t) return;
|
|
132
132
|
Object.assign(e.value, n), r = !0;
|
|
133
133
|
}
|
|
134
|
-
r &&
|
|
134
|
+
r && B(e);
|
|
135
135
|
});
|
|
136
|
-
},
|
|
136
|
+
}, le = (e) => {
|
|
137
137
|
let t = window.mo?.user?.id;
|
|
138
138
|
return JSON.stringify(e.params) + ":" + e.url + ":" + t;
|
|
139
|
-
},
|
|
140
|
-
let n =
|
|
139
|
+
}, ue = (e, t) => {
|
|
140
|
+
let n = J.get(t)?.get(e);
|
|
141
141
|
if (n) return n.result = n.result.map((e) => ({ ...e })), n;
|
|
142
|
-
},
|
|
143
|
-
|
|
144
|
-
},
|
|
145
|
-
|
|
146
|
-
},
|
|
147
|
-
|
|
142
|
+
}, de = (e, t, n) => {
|
|
143
|
+
J.has(t) || J.set(t, /* @__PURE__ */ new Map()), J.get(t)?.set(e, n);
|
|
144
|
+
}, fe = (e, t) => {
|
|
145
|
+
Y.has(e) || Y.set(e, /* @__PURE__ */ new Set()), Y.get(e)?.add(t), M(() => Y.get(e)?.delete(t));
|
|
146
|
+
}, pe = (e, t, n) => {
|
|
147
|
+
oe(e, (e) => {
|
|
148
148
|
let r = e.result.find((e) => e.id === t);
|
|
149
149
|
r && Object.assign(r, n);
|
|
150
|
-
}),
|
|
151
|
-
},
|
|
152
|
-
|
|
150
|
+
}), ce(e, t, n), Q(e);
|
|
151
|
+
}, me = (e, t) => {
|
|
152
|
+
oe(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
|
+
}), ce(e, t, { name: "--" }), Q(e);
|
|
156
|
+
}, he = (e, t, n, i, a) => {
|
|
157
|
+
let o = F([]), s = F(!1), c = F(0), l = "", u;
|
|
158
|
+
e && !e.params.limit && (e.params.limit = 100), e && fe(e.path, a);
|
|
159
159
|
let d = () => {
|
|
160
160
|
if (!e) return;
|
|
161
161
|
e.params.offset = 0;
|
|
162
|
-
let t = le(
|
|
162
|
+
let t = ue(le(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 && U(Z(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 ? le(e) : void 0;
|
|
175
175
|
if (t) {
|
|
176
|
-
let n =
|
|
176
|
+
let n = ue(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 ne = {
|
|
|
187
187
|
console.warn(`В result[${r}] нет id или name`);
|
|
188
188
|
return;
|
|
189
189
|
}
|
|
190
|
-
return t &&
|
|
190
|
+
return t && de(t, e.path, n), n;
|
|
191
191
|
}, p = async (n) => {
|
|
192
192
|
if (!e) return;
|
|
193
193
|
if (n) {
|
|
@@ -214,11 +214,11 @@ var ne = {
|
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
216
|
};
|
|
217
|
-
},
|
|
217
|
+
}, ge = 0, _e = null, ve = (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, ye = (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
|
+
}, be = (t, n, r, i) => {
|
|
221
|
+
let a = F(""), o = {
|
|
222
222
|
id: 0,
|
|
223
223
|
name: e().Common.All
|
|
224
224
|
}, s = () => {
|
|
@@ -226,7 +226,7 @@ var ne = {
|
|
|
226
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 =
|
|
229
|
+
}), u = F([]), f = F(n.itemsChunkSize), p = () => {
|
|
230
230
|
u.value = g();
|
|
231
231
|
}, m = () => {
|
|
232
232
|
n.itemsChunkSize && f.value !== void 0 && (f.value += n.itemsChunkSize);
|
|
@@ -258,20 +258,20 @@ var ne = {
|
|
|
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) => !ve(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) ? ve(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), U(e, () => {
|
|
270
270
|
p();
|
|
271
271
|
}, { deep: 2 });
|
|
272
|
-
} else
|
|
272
|
+
} else U(a, () => {
|
|
273
273
|
h();
|
|
274
|
-
}),
|
|
274
|
+
}), U([
|
|
275
275
|
t,
|
|
276
276
|
() => n.items,
|
|
277
277
|
a,
|
|
@@ -281,10 +281,10 @@ var ne = {
|
|
|
281
281
|
}, {
|
|
282
282
|
immediate: !0,
|
|
283
283
|
deep: 2
|
|
284
|
-
}),
|
|
285
|
-
(e[0] < r[0] || e[1] !== r[1]) && (Array.isArray(t.value) ? t.value : [t.value]).forEach((e) => {
|
|
284
|
+
}), U([() => n.items?.length ?? 0, () => n.items], async (e, r) => {
|
|
285
|
+
(e[0] < r[0] || e[1] !== r[1]) && (await O(), (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
|
+
}));
|
|
288
288
|
});
|
|
289
289
|
return {
|
|
290
290
|
searchText: a,
|
|
@@ -303,16 +303,16 @@ var ne = {
|
|
|
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
|
+
}, xe = {
|
|
307
307
|
key: 0,
|
|
308
308
|
class: "top-selector2_activeItems"
|
|
309
|
-
},
|
|
309
|
+
}, Se = {
|
|
310
310
|
key: 1,
|
|
311
311
|
class: "top-selector2_activeName top-ellipsis"
|
|
312
|
-
},
|
|
312
|
+
}, Ce = {
|
|
313
313
|
key: 2,
|
|
314
314
|
class: "top-selector2_placeholder top-ellipsis"
|
|
315
|
-
},
|
|
315
|
+
}, we = { class: "top-selector2_searchWidget" }, Te = /* @__PURE__ */ T({
|
|
316
316
|
__name: "selector2",
|
|
317
317
|
props: /*@__PURE__*/ E({
|
|
318
318
|
modelValue: {},
|
|
@@ -354,8 +354,8 @@ var ne = {
|
|
|
354
354
|
}),
|
|
355
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 &&
|
|
357
|
+
let a = e, o = H(e, "modelValue"), c = r, u = _(() => a.searchType === "inline" && a.multiselect || a.searchType === "inline" && n.state.isMobile ? "popup" : a.searchType), d = he(a.api, a.apiSetSearchParams, a.minLength, a.useCache, o), g = be(o, a, c, d), T = _(() => a.buttonProps ? "TopButton" : u.value === "inline" ? "TopInput" : "div"), E = F(null), O = F(null), k = () => E.value?.popup;
|
|
358
|
+
d.apiRequest && U(g.searchText, () => {
|
|
359
359
|
d.setSearchTextAndLoad(g.searchText.value);
|
|
360
360
|
});
|
|
361
361
|
let A = _(() => Array.isArray(o.value) || a.multiselect || !a.selectedAsPlaceholder && u.value !== "inline" ? a.placeholder : o.value?.name || a.placeholder), j = (e) => {
|
|
@@ -379,9 +379,9 @@ var ne = {
|
|
|
379
379
|
(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());
|
|
380
380
|
}, M = (e) => {
|
|
381
381
|
e.preventDefault(), g.selectNextItem();
|
|
382
|
-
},
|
|
382
|
+
}, N = () => {
|
|
383
383
|
d.apiRequest && d.setSearchTextAndLoad(g.searchText.value, !1), c("open");
|
|
384
|
-
},
|
|
384
|
+
}, B = () => {
|
|
385
385
|
g.resetItemsForShow(), u.value === "popup" && g.searchText.value && g.resetSearch();
|
|
386
386
|
}, K = (e) => {
|
|
387
387
|
let t = e.target;
|
|
@@ -391,30 +391,30 @@ var ne = {
|
|
|
391
391
|
getPopup: k,
|
|
392
392
|
popupOpenerRef: O,
|
|
393
393
|
resetCache: (e = !1) => {
|
|
394
|
-
d.apiRequest && (e &&
|
|
394
|
+
d.apiRequest && (e && $(d.apiRequest.path), d.items.value = [], d.countLoading.value = 0, d.apiRequest.params.offset = 0, requestAnimationFrame(() => {
|
|
395
395
|
g.itemsForShow.value = [];
|
|
396
396
|
}), k()?.elPopup && d.setSearchTextAndLoad(g.searchText.value));
|
|
397
397
|
},
|
|
398
398
|
updateCacheItemById: (e, t) => {
|
|
399
|
-
d.apiRequest &&
|
|
399
|
+
d.apiRequest && pe(d.apiRequest.path, e, t);
|
|
400
400
|
},
|
|
401
401
|
deleteCacheItemById: (e) => {
|
|
402
|
-
d.apiRequest &&
|
|
402
|
+
d.apiRequest && me(d.apiRequest.path, e);
|
|
403
403
|
}
|
|
404
404
|
}), (t, r) => {
|
|
405
|
-
let a = ee("TopLoadbar"), c =
|
|
406
|
-
return
|
|
405
|
+
let a = ee("TopLoadbar"), c = R("top-focus"), _ = R("top-shortcut");
|
|
406
|
+
return P(), v(V(m), {
|
|
407
407
|
ref_key: "popupRef",
|
|
408
408
|
ref: E,
|
|
409
|
-
onOpen: r[3] ||= (e) =>
|
|
410
|
-
onClose: r[4] ||= (e) =>
|
|
409
|
+
onOpen: r[3] ||= (e) => N(),
|
|
410
|
+
onClose: r[4] ||= (e) => B(),
|
|
411
411
|
onScrollContentList: r[5] ||= (e) => K(e),
|
|
412
412
|
notch: !1,
|
|
413
413
|
transitionDuration: 0,
|
|
414
414
|
openByFocusInput: u.value === "inline" && (e.openByFocusInput ?? !0),
|
|
415
|
-
disabled: u.value === "inline" &&
|
|
415
|
+
disabled: u.value === "inline" && V(g).genIsShort()
|
|
416
416
|
}, S({
|
|
417
|
-
opener:
|
|
417
|
+
opener: W(() => [G((P(), v(te(T.value), D({
|
|
418
418
|
ref_key: "popupOpenerRef",
|
|
419
419
|
ref: O
|
|
420
420
|
}, e.buttonProps, {
|
|
@@ -432,27 +432,27 @@ var ne = {
|
|
|
432
432
|
icon: e.icon,
|
|
433
433
|
tabindex: "0",
|
|
434
434
|
onKeydown: j,
|
|
435
|
-
onBlur: r[0] ||= (e) => u.value === "inline" &&
|
|
435
|
+
onBlur: r[0] ||= (e) => u.value === "inline" && V(g).resetSearch(),
|
|
436
436
|
placeholder: A.value,
|
|
437
437
|
title: e.title,
|
|
438
438
|
captionType: u.value === "inline" && e.title !== void 0 ? "top" : void 0,
|
|
439
|
-
modelValue:
|
|
440
|
-
"onUpdate:modelValue": r[1] ||= (e) =>
|
|
439
|
+
modelValue: V(g).searchText.value,
|
|
440
|
+
"onUpdate:modelValue": r[1] ||= (e) => V(g).searchText.value = e
|
|
441
441
|
}), {
|
|
442
|
-
default:
|
|
443
|
-
e.multiselect ? (
|
|
442
|
+
default: W(() => [
|
|
443
|
+
e.multiselect ? (P(), b("div", xe, [(P(!0), b(h, null, I(o.value, (e) => (P(), v(ae, {
|
|
444
444
|
key: e.id ?? void 0,
|
|
445
445
|
id: e.id,
|
|
446
446
|
name: e.name,
|
|
447
|
-
onDelete:
|
|
447
|
+
onDelete: V(g).deleteItemByItem
|
|
448
448
|
}, null, 8, [
|
|
449
449
|
"id",
|
|
450
450
|
"name",
|
|
451
451
|
"onDelete"
|
|
452
452
|
]))), 128))])) : y("", !0),
|
|
453
|
-
u.value !== "inline" && !e.multiselect ? (
|
|
454
|
-
e.multiselect && !o.value.length ? (
|
|
455
|
-
e.addChanger && !e.buttonProps && !e.multiselect &&
|
|
453
|
+
u.value !== "inline" && !e.multiselect ? (P(), b("span", Se, z(Array.isArray(o.value) ? "" : o.value.name), 1)) : y("", !0),
|
|
454
|
+
e.multiselect && !o.value.length ? (P(), b("span", Ce, z(A.value), 1)) : y("", !0),
|
|
455
|
+
e.addChanger && !e.buttonProps && !e.multiselect && V(g).itemsForShow.value.length > 1 && !e.disabled ? (P(), b("span", {
|
|
456
456
|
key: 3,
|
|
457
457
|
class: "top-changer top-changer-selector",
|
|
458
458
|
"data-top-popup-disabled": "true",
|
|
@@ -473,48 +473,48 @@ var ne = {
|
|
|
473
473
|
void 0,
|
|
474
474
|
{ onupdate: !0 }
|
|
475
475
|
], [_, e.openerShortcut]])]),
|
|
476
|
-
contentList:
|
|
477
|
-
(
|
|
476
|
+
contentList: W(() => [
|
|
477
|
+
(P(!0), b(h, null, I(V(g).itemsForShow.value, (r) => (P(), v(V(p), D({
|
|
478
478
|
key: r.id ?? void 0,
|
|
479
479
|
class: {
|
|
480
480
|
"top-active": !Array.isArray(o.value) && !e.multiselect && o.value.id === r.id && o.value.name === r.name,
|
|
481
|
-
"top-selector2_item-all": r.id ===
|
|
482
|
-
"top-selector2_item-new": r.id ===
|
|
481
|
+
"top-selector2_item-all": r.id === V(0),
|
|
482
|
+
"top-selector2_item-new": r.id === V(null)
|
|
483
483
|
},
|
|
484
|
-
closeByClick: !e.multiselect ||
|
|
485
|
-
}, { ref_for: !0 }, r.listItemProps, { onClick: (e) =>
|
|
486
|
-
default:
|
|
484
|
+
closeByClick: !e.multiselect || V(n).state.isMobile
|
|
485
|
+
}, { ref_for: !0 }, r.listItemProps, { onClick: (e) => V(g).selectItem(r) }), S({
|
|
486
|
+
default: W(() => [i.item ? L(t.$slots, "item", { item: r }, void 0, void 0, 0) : (P(), b(h, { key: 1 }, [C(z(r.name), 1)], 64))]),
|
|
487
487
|
_: 2
|
|
488
488
|
}, [i.actions ? {
|
|
489
489
|
name: "actions",
|
|
490
|
-
fn:
|
|
490
|
+
fn: W(() => [L(t.$slots, "actions", { item: r })]),
|
|
491
491
|
key: "0"
|
|
492
492
|
} : void 0]), 1040, [
|
|
493
493
|
"class",
|
|
494
494
|
"closeByClick",
|
|
495
495
|
"onClick"
|
|
496
496
|
]))), 128)),
|
|
497
|
-
!
|
|
497
|
+
!V(g).itemsForShow.value.length && !V(g).genIsShort() ? (P(), v(V(p), {
|
|
498
498
|
key: 0,
|
|
499
499
|
type: "regular"
|
|
500
500
|
}, {
|
|
501
|
-
default:
|
|
501
|
+
default: W(() => [V(d).isLoading.value && !V(d).countLoading.value || e.itemsIsLoading ? (P(), v(V(l), {
|
|
502
502
|
key: 0,
|
|
503
503
|
type: "circles"
|
|
504
|
-
})) : (
|
|
504
|
+
})) : (P(), b(h, { key: 1 }, [C(z(t.$i18n.Common.No_results), 1)], 64))]),
|
|
505
505
|
_: 1
|
|
506
506
|
})) : y("", !0),
|
|
507
|
-
|
|
507
|
+
V(d).countLoading.value && V(d).isLoading.value && u.value === "inline" ? (P(), v(a, { key: 1 })) : y("", !0)
|
|
508
508
|
]),
|
|
509
509
|
_: 2
|
|
510
510
|
}, [u.value === "popup" ? {
|
|
511
511
|
name: "widget",
|
|
512
|
-
fn:
|
|
512
|
+
fn: W(() => [x("div", we, [G(w(V(f), {
|
|
513
513
|
title: "Поиск",
|
|
514
514
|
icon: "",
|
|
515
|
-
modelValue:
|
|
516
|
-
"onUpdate:modelValue": r[2] ||= (e) =>
|
|
517
|
-
isLoading: !!
|
|
515
|
+
modelValue: V(g).searchText.value,
|
|
516
|
+
"onUpdate:modelValue": r[2] ||= (e) => V(g).searchText.value = e,
|
|
517
|
+
isLoading: !!V(d).countLoading.value && V(d).isLoading.value,
|
|
518
518
|
placeholder: A.value
|
|
519
519
|
}, null, 8, [
|
|
520
520
|
"modelValue",
|
|
@@ -525,19 +525,19 @@ var ne = {
|
|
|
525
525
|
o.value,
|
|
526
526
|
void 0,
|
|
527
527
|
{ onupdate: !0 }
|
|
528
|
-
]]), e.hasCloserBtn && !t.$core.state.isMobile ? (
|
|
528
|
+
]]), e.hasCloserBtn && !t.$core.state.isMobile ? (P(), v(V(s), {
|
|
529
529
|
key: 0,
|
|
530
530
|
class: "closer",
|
|
531
531
|
color: "theme"
|
|
532
532
|
}, {
|
|
533
|
-
default:
|
|
533
|
+
default: W(() => [C(z(t.$i18n.Common.Cancel), 1)]),
|
|
534
534
|
_: 1
|
|
535
535
|
})) : y("", !0)])]),
|
|
536
536
|
key: "0"
|
|
537
537
|
} : void 0]), 1032, ["openByFocusInput", "disabled"]);
|
|
538
538
|
};
|
|
539
539
|
}
|
|
540
|
-
}),
|
|
540
|
+
}), Ee = { class: "top-editArea_footer" }, De = /* @__PURE__ */ T({
|
|
541
541
|
__name: "editArea",
|
|
542
542
|
props: {
|
|
543
543
|
defaultValue: { default: "" },
|
|
@@ -570,7 +570,7 @@ var ne = {
|
|
|
570
570
|
"clickOnTitle"
|
|
571
571
|
],
|
|
572
572
|
setup(e, { emit: t, slots: n }) {
|
|
573
|
-
let r = e, i = t, a =
|
|
573
|
+
let r = e, i = t, a = F(r.defaultValue), o = F(r.isFocused), l = _(() => a.value !== r.defaultValue), u = (e) => {
|
|
574
574
|
i("submit", e), a.value = r.defaultValue;
|
|
575
575
|
}, d = () => {
|
|
576
576
|
if (r.forceShowCloseBtn && !l.value) {
|
|
@@ -581,14 +581,14 @@ var ne = {
|
|
|
581
581
|
}, f = () => {
|
|
582
582
|
r.attachToKeyboard && i("clickOnTitle");
|
|
583
583
|
};
|
|
584
|
-
return (t, r) => (
|
|
584
|
+
return (t, r) => (P(), b("div", { class: k({
|
|
585
585
|
"top-editArea": !0,
|
|
586
586
|
"top-editArea-attachedToKeyboard": e.attachToKeyboard
|
|
587
|
-
}) }, [e.title || n.caption ? (
|
|
587
|
+
}) }, [e.title || n.caption ? (P(), b("div", {
|
|
588
588
|
key: 0,
|
|
589
589
|
class: "top-editArea_caption",
|
|
590
590
|
onClick: r[0] ||= (e) => f()
|
|
591
|
-
}, [
|
|
591
|
+
}, [L(t.$slots, "caption", {}, () => [C(z(e.title), 1)])])) : y("", !0), x("div", { class: k({
|
|
592
592
|
"top-editArea_form": !0,
|
|
593
593
|
"top-forms-focusable": !0,
|
|
594
594
|
"top-as-input": !0,
|
|
@@ -609,7 +609,7 @@ var ne = {
|
|
|
609
609
|
class: "top-editArea_element",
|
|
610
610
|
onFocus: r[2] ||= () => o.value = !0,
|
|
611
611
|
onBlur: r[3] ||= () => o.value = !1,
|
|
612
|
-
onKeyup: [
|
|
612
|
+
onKeyup: [K(d, ["esc"]), r[4] ||= K(q((e) => u(a.value), ["ctrl"]), ["enter"])]
|
|
613
613
|
}, null, 8, [
|
|
614
614
|
"modelValue",
|
|
615
615
|
"name",
|
|
@@ -621,7 +621,7 @@ var ne = {
|
|
|
621
621
|
"readonly",
|
|
622
622
|
"isError",
|
|
623
623
|
"hint"
|
|
624
|
-
]), x("div",
|
|
624
|
+
]), x("div", Ee, [l.value || e.forceShowCloseBtn ? (P(), v(s, {
|
|
625
625
|
key: 0,
|
|
626
626
|
icon: t.$core.state.isMobile ? "" : "",
|
|
627
627
|
class: "top-editArea_button",
|
|
@@ -630,20 +630,20 @@ var ne = {
|
|
|
630
630
|
onClick: d
|
|
631
631
|
}, S({ _: 2 }, [t.$core.state.isMobile ? void 0 : {
|
|
632
632
|
name: "default",
|
|
633
|
-
fn:
|
|
633
|
+
fn: W(() => [C(z(e.cancelText), 1)]),
|
|
634
634
|
key: "0"
|
|
635
|
-
}]), 1032, ["icon"])) : y("", !0), l.value ? (
|
|
635
|
+
}]), 1032, ["icon"])) : y("", !0), l.value ? (P(), v(s, {
|
|
636
636
|
key: 1,
|
|
637
637
|
class: "top-editArea_button",
|
|
638
638
|
icon: t.$core.state.isMobile ? "" : "",
|
|
639
639
|
onClick: r[5] ||= (e) => u(a.value)
|
|
640
640
|
}, S({ _: 2 }, [t.$core.state.isMobile ? void 0 : {
|
|
641
641
|
name: "default",
|
|
642
|
-
fn:
|
|
642
|
+
fn: W(() => [C(z(e.submitText), 1)]),
|
|
643
643
|
key: "0"
|
|
644
644
|
}]), 1032, ["icon"])) : y("", !0)])], 2)], 2));
|
|
645
645
|
}
|
|
646
|
-
}),
|
|
646
|
+
}), Oe = { class: "top-editInput" }, ke = /* @__PURE__ */ T({
|
|
647
647
|
__name: "editInput",
|
|
648
648
|
props: {
|
|
649
649
|
modelValue: {},
|
|
@@ -653,29 +653,29 @@ var ne = {
|
|
|
653
653
|
},
|
|
654
654
|
emits: ["update:modelValue"],
|
|
655
655
|
setup(e, { emit: t, slots: n }) {
|
|
656
|
-
let r = e, i =
|
|
657
|
-
|
|
656
|
+
let r = e, i = F(r.modelValue);
|
|
657
|
+
U(() => r.modelValue, () => {
|
|
658
658
|
i.value = r.modelValue;
|
|
659
659
|
});
|
|
660
660
|
let o = t, c = () => {
|
|
661
661
|
o("update:modelValue", i.value);
|
|
662
662
|
};
|
|
663
|
-
return (t, r) => (
|
|
664
|
-
onKeydownCapture: r[0] ||=
|
|
665
|
-
onKeydown:
|
|
663
|
+
return (t, r) => (P(), b("div", Oe, [w(a, D(e.input, {
|
|
664
|
+
onKeydownCapture: r[0] ||= K(q((t) => i.value = e.modelValue, ["stop"]), ["esc"]),
|
|
665
|
+
onKeydown: K(q(c, ["stop"]), ["enter"]),
|
|
666
666
|
modelValue: i.value,
|
|
667
667
|
"onUpdate:modelValue": r[1] ||= (e) => i.value = e
|
|
668
668
|
}), S({ _: 2 }, [n.caption ? {
|
|
669
669
|
name: "caption",
|
|
670
|
-
fn:
|
|
670
|
+
fn: W(() => [L(t.$slots, "caption")]),
|
|
671
671
|
key: "0"
|
|
672
|
-
} : void 0]), 1040, ["onKeydown", "modelValue"]), i.value !== e.modelValue || e.alwaysShowSubmitBtn ? (
|
|
672
|
+
} : void 0]), 1040, ["onKeydown", "modelValue"]), i.value !== e.modelValue || e.alwaysShowSubmitBtn ? (P(), v(s, D({
|
|
673
673
|
key: 0,
|
|
674
674
|
icon: "",
|
|
675
675
|
styling: "soft"
|
|
676
676
|
}, e.button, { onClick: c }), null, 16)) : y("", !0)]));
|
|
677
677
|
}
|
|
678
|
-
}),
|
|
678
|
+
}), Ae = /* @__PURE__ */ T({
|
|
679
679
|
__name: "optionGroup",
|
|
680
680
|
props: /*@__PURE__*/ E({
|
|
681
681
|
modelValue: {},
|
|
@@ -689,24 +689,24 @@ var ne = {
|
|
|
689
689
|
}),
|
|
690
690
|
emits: ["update:modelValue"],
|
|
691
691
|
setup(e) {
|
|
692
|
-
let t =
|
|
693
|
-
|
|
692
|
+
let t = H(e, "modelValue"), n = e, r = F(null);
|
|
693
|
+
U(t, () => {
|
|
694
694
|
let e = n.items.map((e) => e.value);
|
|
695
695
|
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();
|
|
696
696
|
}, { immediate: !0 });
|
|
697
697
|
let a = "optionGroup-" + Math.random();
|
|
698
|
-
return (n, s) => (
|
|
698
|
+
return (n, s) => (P(), b("div", {
|
|
699
699
|
ref_key: "elRef",
|
|
700
700
|
ref: r,
|
|
701
|
-
class:
|
|
701
|
+
class: k({
|
|
702
702
|
"top-optionGroup": !0,
|
|
703
703
|
["top-optionGroup-showIndicator_" + Number(e.showIndicator)]: !0,
|
|
704
704
|
"top-scrollBarXHidding": !0,
|
|
705
705
|
["top-size_" + e.size]: !!e.size,
|
|
706
706
|
"top-error": e.isError
|
|
707
707
|
})
|
|
708
|
-
}, [Array.isArray(t.value) ? (
|
|
709
|
-
class:
|
|
708
|
+
}, [Array.isArray(t.value) ? (P(!0), b(h, { key: 0 }, I(e.items, (n) => (P(), v(o, {
|
|
709
|
+
class: k({
|
|
710
710
|
"top-optionGroup_item-selected": t.value.includes(n.value),
|
|
711
711
|
"top-optionGroup_item": !0
|
|
712
712
|
}),
|
|
@@ -719,7 +719,7 @@ var ne = {
|
|
|
719
719
|
"data-top-icon": n.icon
|
|
720
720
|
}, S({ _: 2 }, [n.label ? {
|
|
721
721
|
name: "default",
|
|
722
|
-
fn:
|
|
722
|
+
fn: W(() => [C(z(n.label), 1)]),
|
|
723
723
|
key: "0"
|
|
724
724
|
} : void 0]), 1032, [
|
|
725
725
|
"class",
|
|
@@ -729,8 +729,8 @@ var ne = {
|
|
|
729
729
|
"disabled",
|
|
730
730
|
"isError",
|
|
731
731
|
"data-top-icon"
|
|
732
|
-
]))), 256)) : (
|
|
733
|
-
class:
|
|
732
|
+
]))), 256)) : (P(!0), b(h, { key: 1 }, I(e.items, (n) => (P(), v(i, {
|
|
733
|
+
class: k({
|
|
734
734
|
"top-optionGroup_item-selected": n.value === t.value,
|
|
735
735
|
"top-optionGroup_item": !0
|
|
736
736
|
}),
|
|
@@ -744,7 +744,7 @@ var ne = {
|
|
|
744
744
|
"data-top-icon": n.icon
|
|
745
745
|
}, S({ _: 2 }, [n.label ? {
|
|
746
746
|
name: "default",
|
|
747
|
-
fn:
|
|
747
|
+
fn: W(() => [C(z(n.label), 1)]),
|
|
748
748
|
key: "0"
|
|
749
749
|
} : void 0]), 1032, [
|
|
750
750
|
"class",
|
|
@@ -756,7 +756,7 @@ var ne = {
|
|
|
756
756
|
"data-top-icon"
|
|
757
757
|
]))), 256))], 2));
|
|
758
758
|
}
|
|
759
|
-
}),
|
|
759
|
+
}), je = /* @__PURE__ */ T({
|
|
760
760
|
__name: "radioGroup",
|
|
761
761
|
props: /*@__PURE__*/ E({
|
|
762
762
|
modelValue: {},
|
|
@@ -770,8 +770,8 @@ var ne = {
|
|
|
770
770
|
}),
|
|
771
771
|
emits: ["update:modelValue"],
|
|
772
772
|
setup(e) {
|
|
773
|
-
let t = e, n =
|
|
774
|
-
return (e, r) => (
|
|
773
|
+
let t = e, n = H(e, "modelValue");
|
|
774
|
+
return (e, r) => (P(), v(Ae, {
|
|
775
775
|
class: "top-radioGroup",
|
|
776
776
|
modelValue: n.value,
|
|
777
777
|
"onUpdate:modelValue": r[0] ||= (e) => n.value = e,
|
|
@@ -780,7 +780,7 @@ var ne = {
|
|
|
780
780
|
showIndicator: t.showIndicator,
|
|
781
781
|
isError: t.isError
|
|
782
782
|
}, {
|
|
783
|
-
default:
|
|
783
|
+
default: W(() => [L(e.$slots, "default")]),
|
|
784
784
|
_: 3
|
|
785
785
|
}, 8, [
|
|
786
786
|
"modelValue",
|
|
@@ -790,7 +790,7 @@ var ne = {
|
|
|
790
790
|
"isError"
|
|
791
791
|
]));
|
|
792
792
|
}
|
|
793
|
-
}),
|
|
793
|
+
}), Me = /* @__PURE__ */ T({
|
|
794
794
|
__name: "checkboxGroup",
|
|
795
795
|
props: /*@__PURE__*/ E({
|
|
796
796
|
modelValue: {},
|
|
@@ -804,8 +804,8 @@ var ne = {
|
|
|
804
804
|
}),
|
|
805
805
|
emits: ["update:modelValue"],
|
|
806
806
|
setup(e) {
|
|
807
|
-
let t = e, n =
|
|
808
|
-
return (e, r) => (
|
|
807
|
+
let t = e, n = H(e, "modelValue");
|
|
808
|
+
return (e, r) => (P(), v(Ae, {
|
|
809
809
|
class: "top-checkboxGroup",
|
|
810
810
|
modelValue: n.value,
|
|
811
811
|
"onUpdate:modelValue": r[0] ||= (e) => n.value = e,
|
|
@@ -814,7 +814,7 @@ var ne = {
|
|
|
814
814
|
showIndicator: t.showIndicator,
|
|
815
815
|
isError: t.isError
|
|
816
816
|
}, {
|
|
817
|
-
default:
|
|
817
|
+
default: W(() => [L(e.$slots, "default")]),
|
|
818
818
|
_: 3
|
|
819
819
|
}, 8, [
|
|
820
820
|
"modelValue",
|
|
@@ -824,10 +824,10 @@ var ne = {
|
|
|
824
824
|
"isError"
|
|
825
825
|
]));
|
|
826
826
|
}
|
|
827
|
-
}),
|
|
827
|
+
}), Ne = ["data-top-icon"], Pe = { class: "top-info_text" }, Fe = {
|
|
828
828
|
key: 0,
|
|
829
829
|
class: "top-info_value"
|
|
830
|
-
},
|
|
830
|
+
}, Ie = /* @__PURE__ */ T({
|
|
831
831
|
__name: "info",
|
|
832
832
|
props: {
|
|
833
833
|
icon: {},
|
|
@@ -835,19 +835,19 @@ var ne = {
|
|
|
835
835
|
size: { default: "default" }
|
|
836
836
|
},
|
|
837
837
|
setup(e, { slots: t }) {
|
|
838
|
-
return (n, r) => (
|
|
839
|
-
class:
|
|
838
|
+
return (n, r) => (P(), b("div", {
|
|
839
|
+
class: k({
|
|
840
840
|
"top-info": !0,
|
|
841
841
|
["top-size_" + e.size]: !0,
|
|
842
842
|
["top-info-styling_" + e.styling]: !0
|
|
843
843
|
}),
|
|
844
844
|
"data-top-icon": e.icon
|
|
845
|
-
}, [x("div",
|
|
845
|
+
}, [x("div", Pe, [L(n.$slots, "default")]), t.additional ? (P(), b("span", Fe, [L(n.$slots, "additional")])) : y("", !0)], 10, Ne));
|
|
846
846
|
}
|
|
847
|
-
}),
|
|
847
|
+
}), Le = {
|
|
848
848
|
key: 0,
|
|
849
849
|
class: "top-policy"
|
|
850
|
-
},
|
|
850
|
+
}, Re = { class: "top-policy_title" }, ze = ["innerHTML"], Be = /* @__PURE__ */ T({
|
|
851
851
|
__name: "policy",
|
|
852
852
|
props: {
|
|
853
853
|
title: {},
|
|
@@ -856,28 +856,28 @@ var ne = {
|
|
|
856
856
|
},
|
|
857
857
|
emits: ["accept"],
|
|
858
858
|
setup(e, { emit: t }) {
|
|
859
|
-
let n = t, r =
|
|
859
|
+
let n = t, r = F(!0), i = () => {
|
|
860
860
|
r.value = !1, n("accept");
|
|
861
861
|
};
|
|
862
|
-
return (t, n) => r.value ? (
|
|
863
|
-
x("div",
|
|
862
|
+
return (t, n) => r.value ? (P(), b("div", Le, [
|
|
863
|
+
x("div", Re, z(e.title), 1),
|
|
864
864
|
x("div", {
|
|
865
865
|
class: "top-policy_description",
|
|
866
866
|
innerHTML: e.description
|
|
867
|
-
}, null, 8,
|
|
868
|
-
w(
|
|
867
|
+
}, null, 8, ze),
|
|
868
|
+
w(V(s), {
|
|
869
869
|
size: "m",
|
|
870
870
|
onClick: i
|
|
871
871
|
}, {
|
|
872
|
-
default:
|
|
872
|
+
default: W(() => [C(z(e.acceptText), 1)]),
|
|
873
873
|
_: 1
|
|
874
874
|
})
|
|
875
875
|
])) : y("", !0);
|
|
876
876
|
}
|
|
877
|
-
}),
|
|
877
|
+
}), Ve = {
|
|
878
878
|
key: 0,
|
|
879
879
|
class: "top-banner"
|
|
880
|
-
},
|
|
880
|
+
}, He = { class: "top-banner_wrapper" }, Ue = { class: "top-banner_content" }, We = { class: "top-banner_contentText" }, Ge = /* @__PURE__ */ T({
|
|
881
881
|
__name: "banner",
|
|
882
882
|
props: {
|
|
883
883
|
showCloseButton: {
|
|
@@ -888,7 +888,7 @@ var ne = {
|
|
|
888
888
|
},
|
|
889
889
|
emits: ["close"],
|
|
890
890
|
setup(e, { emit: t }) {
|
|
891
|
-
let n = t, r =
|
|
891
|
+
let n = t, r = F(!0), i = () => {
|
|
892
892
|
r.value = !1;
|
|
893
893
|
}, a = (e) => {
|
|
894
894
|
e instanceof HTMLElement && (e.style.height = `${e.offsetHeight}px`, requestAnimationFrame(() => {
|
|
@@ -897,14 +897,14 @@ var ne = {
|
|
|
897
897
|
}, o = () => {
|
|
898
898
|
n("close");
|
|
899
899
|
};
|
|
900
|
-
return (t, n) => (
|
|
900
|
+
return (t, n) => (P(), v(g, {
|
|
901
901
|
onBeforeLeave: a,
|
|
902
902
|
onAfterLeave: o
|
|
903
903
|
}, {
|
|
904
|
-
default:
|
|
905
|
-
default:
|
|
904
|
+
default: W(() => [r.value ? (P(), b("div", Ve, [x("div", He, [x("div", Ue, [x("span", We, [L(t.$slots, "default")]), e.buttonProps ? (P(), v(s, A(D({ key: 0 }, e.buttonProps)), {
|
|
905
|
+
default: W(() => [e.buttonProps.default ? (P(), b(h, { key: 0 }, [C(z(e.buttonProps.default), 1)], 64)) : y("", !0)]),
|
|
906
906
|
_: 1
|
|
907
|
-
}, 16)) : y("", !0)]), e.showCloseButton ? (
|
|
907
|
+
}, 16)) : y("", !0)]), e.showCloseButton ? (P(), v(s, {
|
|
908
908
|
key: 0,
|
|
909
909
|
class: "top-banner_closeButton",
|
|
910
910
|
color: "theme",
|
|
@@ -917,6 +917,6 @@ var ne = {
|
|
|
917
917
|
}
|
|
918
918
|
});
|
|
919
919
|
//#endregion
|
|
920
|
-
export {
|
|
920
|
+
export { je as a, Te as c, ye as d, $ as f, Me as i, ge as l, Be as n, ke as o, re as p, Ie as r, De as s, Ge as t, _e as u };
|
|
921
921
|
|
|
922
|
-
//# sourceMappingURL=formsExt-
|
|
922
|
+
//# sourceMappingURL=formsExt-DtFeVRvE.es.js.map
|