@vanjana/vue-ui 0.1.131 → 0.1.134
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/dist/theme-light.css +1 -1
- package/dist/types/components/form/select.vue.d.ts +36 -11
- package/dist/types/stories/components/shell.stories.d.ts +2 -0
- package/dist/vanjana-vue-ui.es.js +437 -409
- package/dist/vanjana-vue-ui.umd.js +1 -1
- package/dist/vue-ui.css +1 -1
- package/package.json +1 -1
- package/themes/common/components/_page.scss +3 -0
- package/themes/common/components/_shell.scss +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as R, computed as k, createElementBlock as g, openBlock as f, normalizeClass as I, unref as
|
|
1
|
+
import { defineComponent as R, computed as k, createElementBlock as g, openBlock as f, normalizeClass as I, unref as S, createBlock as P, createCommentVNode as L, resolveDynamicComponent as ut, mergeModels as G, useModel as ne, createElementVNode as _, createVNode as T, toDisplayString as O, Transition as Se, withCtx as N, renderSlot as M, createTextVNode as Ue, useSlots as Xt, ref as $, onMounted as Re, nextTick as he, onBeforeUnmount as Ae, watch as K, resolveComponent as q, normalizeStyle as Y, Fragment as Q, renderList as pe, withModifiers as U, provide as qt, Teleport as je, createSlots as dt, mergeProps as ft, shallowRef as _n, getCurrentScope as xn, onScopeDispose as kn, shallowReadonly as Ce, render as At, resolveDirective as Gt, withDirectives as vt, withKeys as Be, inject as mt, onUnmounted as Cn, vModelText as Vn, toRef as lt, normalizeProps as En, guardReactiveProps as $n, TransitionGroup as Sn, isRef as Ln, createApp as Tn, h as Rn } from "vue";
|
|
2
2
|
import { useRouter as An, useRoute as On } from "vue-router";
|
|
3
3
|
var z = /* @__PURE__ */ ((e) => (e.HOME = "fa-regular fa-house", e.DASHBOARD = "fa-solid fa-gauge", e.MENU = "fa-solid fa-bars", e.DOT_MENU = "fa-solid fa-ellipsis-vertical", e.BACK = "fa-regular fa-hand-point-left", e.LOGOUT = "fa-solid fa-right-from-bracket", e.CHEVRON_LEFT = "fa-solid fa-chevron-left", e.CHEVRON_RIGHT = "fa-solid fa-chevron-right", e.CHEVRON_UP = "fa-solid fa-chevron-up", e.CHEVRON_DOWN = "fa-solid fa-chevron-down", e.PREVIOUS = "fa-solid fa-angle-left", e.FIRST = "fa-solid fa-angles-left", e.NEXT = "fa-solid fa-angle-right", e.LAST = "fa-solid fa-angles-right", e.USER = "fa-regular fa-user-circle", e.CHARACTER = "fa-solid fa-person", e.SETTINGS = "fa-solid fa-gear", e.ADD = "fa-regular fa-plus", e.EDIT = "fa-solid fa-pen", e.REMOVE = "fa-regular fa-trash-can", e.DELETE = "fa-regular fa-trash-can", e.SHARE = "fa-solid fa-share-nodes", e.SORT = "fa-regular fa-arrow-up-arrow-down", e.CLOSE = "fa-regular fa-circle-xmark", e.SAVE = "fa-regular fa-floppy-disk", e.COPY = "fa-regular fa-copy", e.DUPLICATE = "fa-regular fa-clone", e.CUT = "fa-solid fa-scissors", e.PASTE = "fa-regular fa-clipboard", e.REFRESH = "fa-solid fa-rotate-right", e.RELOAD = "fa-solid fa-arrows-rotate", e.PRINT = "fa-solid fa-print", e.FILTER = "fa-solid fa-filter", e.UNDO = "fa-solid fa-rotate-left", e.REDO = "fa-solid fa-rotate-right", e.PIN = "fa-solid fa-thumbtack", e.EXPAND = "fa-solid fa-expand", e.COLLAPSE = "fa-solid fa-compress", e.EXTERNAL_LINK = "fa-solid fa-arrow-up-right-from-square", e.INFO = "fa-solid fa-circle-info", e.WARNING = "fa-solid fa-triangle-exclamation", e.ERROR = "fa-regular fa-circle-xmark", e.CHECK = "fa-regular fa-circle-check", e.LOVE = "fa-regular fa-heart", e.STAR = "fa-regular fa-star", e.STAR_FILLED = "fa-solid fa-star", e.HELP = "fa-regular fa-circle-question", e.QUESTION = "fa-solid fa-question", e.PROJECT = "fa-regular fa-folder-open", e.FOLDER = "fa-regular fa-folder", e.FILE_TEXT = "fa-regular fa-file-lines", e.UPLOAD = "fa-solid fa-cloud-arrow-up", e.DOWNLOAD = "fa-solid fa-cloud-arrow-down", e.ATTACHMENT = "fa-solid fa-paperclip", e.LINK = "fa-solid fa-link", e.TAG = "fa-solid fa-tag", e.TAGS = "fa-solid fa-tags", e.SEARCH = "fa-solid fa-magnifying-glass", e.MESSAGE_SQUARE = "fa-regular fa-message", e.MAIL = "fa-regular fa-envelope", e.SHOPPING_BAG = "fa-regular fa-bag-shopping", e.COMMENT = "fa-regular fa-comment", e.COMMENTS = "fa-regular fa-comments", e.CALENDAR = "fa-regular fa-calendar", e.CALENDAR_DAY = "fa-solid fa-calendar-day", e.CLOCK = "fa-regular fa-clock", e.HISTORY = "fa-solid fa-clock-rotate-left", e.LOCK = "fa-solid fa-lock", e.UNLOCK = "fa-solid fa-lock-open", e.EYE = "fa-regular fa-eye", e.EYE_SLASH = "fa-regular fa-eye-slash", e.SHIELD = "fa-solid fa-shield", e.LIST = "fa-solid fa-list", e.GRID = "fa-solid fa-grid", e.TABLE = "fa-solid fa-table", e.COLUMNS = "fa-solid fa-columns", e.BELL = "fa-regular fa-bell", e.IMAGE = "fa-regular fa-image", e))(z || {}), X = /* @__PURE__ */ ((e) => (e.S = "icon-size-s", e.M = "icon-size-m", e.L = "icon-size-l", e))(X || {});
|
|
4
4
|
class Dn {
|
|
@@ -64,7 +64,7 @@ const at = new Dn(), Bn = /* @__PURE__ */ R({
|
|
|
64
64
|
return a?.type === "component" ? a.value : null;
|
|
65
65
|
});
|
|
66
66
|
return (a, c) => (f(), g("div", {
|
|
67
|
-
class: I(["icon-wrapper", n.size ??
|
|
67
|
+
class: I(["icon-wrapper", n.size ?? S(t)])
|
|
68
68
|
}, [
|
|
69
69
|
o.value ? (f(), g("i", {
|
|
70
70
|
key: 0,
|
|
@@ -115,12 +115,12 @@ const at = new Dn(), Bn = /* @__PURE__ */ R({
|
|
|
115
115
|
}, [
|
|
116
116
|
_("span", jn, O(e.title), 1),
|
|
117
117
|
T(te, {
|
|
118
|
-
icon:
|
|
119
|
-
size:
|
|
118
|
+
icon: S(z).CHEVRON_DOWN,
|
|
119
|
+
size: S(X).S,
|
|
120
120
|
class: "accordion-icon"
|
|
121
121
|
}, null, 8, ["icon", "size"])
|
|
122
122
|
], 8, Mn),
|
|
123
|
-
T(
|
|
123
|
+
T(Se, {
|
|
124
124
|
name: "accordion",
|
|
125
125
|
onEnter: o,
|
|
126
126
|
onLeave: l
|
|
@@ -166,7 +166,7 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
166
166
|
e.icon ? (f(), P(te, {
|
|
167
167
|
key: 0,
|
|
168
168
|
icon: e.icon,
|
|
169
|
-
size:
|
|
169
|
+
size: S(t)
|
|
170
170
|
}, null, 8, ["icon", "size"])) : L("", !0),
|
|
171
171
|
Ue(" " + O(e.label), 1)
|
|
172
172
|
], 10, qn));
|
|
@@ -181,14 +181,14 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
181
181
|
scrollable: { type: Boolean }
|
|
182
182
|
},
|
|
183
183
|
setup(e) {
|
|
184
|
-
const n =
|
|
184
|
+
const n = Xt();
|
|
185
185
|
return (t, o) => (f(), g("div", {
|
|
186
186
|
class: I(["card", { scrollable: e.scrollable }])
|
|
187
187
|
}, [
|
|
188
188
|
_("header", null, [
|
|
189
189
|
M(t.$slots, "header", {}, () => [
|
|
190
190
|
_("h3", null, O(e.header), 1),
|
|
191
|
-
|
|
191
|
+
S(n).headerActions ? (f(), g("span", Yn, [
|
|
192
192
|
M(t.$slots, "headerActions", {}, void 0, !0)
|
|
193
193
|
])) : L("", !0)
|
|
194
194
|
], !0)
|
|
@@ -196,7 +196,7 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
196
196
|
_("main", null, [
|
|
197
197
|
M(t.$slots, "default", {}, void 0, !0)
|
|
198
198
|
]),
|
|
199
|
-
|
|
199
|
+
S(n).footer ? (f(), g("footer", Jn, [
|
|
200
200
|
M(t.$slots, "footer", {}, void 0, !0)
|
|
201
201
|
])) : L("", !0)
|
|
202
202
|
], 2));
|
|
@@ -215,11 +215,11 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
215
215
|
ariaLabel: {}
|
|
216
216
|
},
|
|
217
217
|
setup(e) {
|
|
218
|
-
const n = e, t = n.autoplay ?? !1, o = n.interval ?? 4e3, l = n.loop ?? !0, i = n.pauseOnHover ?? !0, a = n.startIndex ?? 0, c = n.ariaLabel ?? "Carousel", r =
|
|
218
|
+
const n = e, t = n.autoplay ?? !1, o = n.interval ?? 4e3, l = n.loop ?? !0, i = n.pauseOnHover ?? !0, a = n.startIndex ?? 0, c = n.ariaLabel ?? "Carousel", r = $(Math.max(0, a)), s = $(null), u = $(null), d = $(0), v = $(0);
|
|
219
219
|
let p = !1;
|
|
220
|
-
const h =
|
|
220
|
+
const h = $(0), y = $(!1);
|
|
221
221
|
let m = null, b = null;
|
|
222
|
-
const x =
|
|
222
|
+
const x = $(null), w = $(null), E = () => {
|
|
223
223
|
h.value = s.value ? s.value.children.length : 0, h.value === 0 ? r.value = 0 : r.value >= h.value && (r.value = l ? 0 : h.value - 1), H();
|
|
224
224
|
}, j = k(() => d.value > 0 ? { transform: `translateX(${-r.value * d.value + v.value}px)` } : { transform: `translateX(-${r.value * 100}%)` }), H = () => {
|
|
225
225
|
s.value && Array.from(s.value.children).forEach((B, ye) => {
|
|
@@ -228,11 +228,11 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
228
228
|
} catch {
|
|
229
229
|
}
|
|
230
230
|
});
|
|
231
|
-
}, V = () => {
|
|
232
|
-
C(), !(!t || h.value <= 1) && (i && y.value || (m = setTimeout(() => {
|
|
233
|
-
F(), V();
|
|
234
|
-
}, o)));
|
|
235
231
|
}, C = () => {
|
|
232
|
+
V(), !(!t || h.value <= 1) && (i && y.value || (m = setTimeout(() => {
|
|
233
|
+
F(), C();
|
|
234
|
+
}, o)));
|
|
235
|
+
}, V = () => {
|
|
236
236
|
m && (clearTimeout(m), m = null);
|
|
237
237
|
}, D = () => {
|
|
238
238
|
h.value !== 0 && (r.value <= 0 ? r.value = l ? h.value - 1 : 0 : r.value--);
|
|
@@ -241,9 +241,9 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
241
241
|
}, W = (B) => {
|
|
242
242
|
B < 0 || B >= h.value || (r.value = B);
|
|
243
243
|
}, oe = () => {
|
|
244
|
-
y.value = !0, i &&
|
|
244
|
+
y.value = !0, i && V();
|
|
245
245
|
}, fe = () => {
|
|
246
|
-
y.value = !1,
|
|
246
|
+
y.value = !1, C();
|
|
247
247
|
}, ve = (B) => {
|
|
248
248
|
B.key === "ArrowLeft" ? D() : B.key === "ArrowRight" && F();
|
|
249
249
|
};
|
|
@@ -256,31 +256,31 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
256
256
|
le > 50 ? D() : le < -50 && F(), le = 0;
|
|
257
257
|
};
|
|
258
258
|
let He = 0;
|
|
259
|
-
const
|
|
259
|
+
const $t = (B) => {
|
|
260
260
|
if (B.isPrimary !== !1 && !(B.pointerType === "mouse" && B.button !== 0)) {
|
|
261
|
-
p = !0, He = B.clientX, v.value = 0,
|
|
261
|
+
p = !0, He = B.clientX, v.value = 0, V();
|
|
262
262
|
try {
|
|
263
263
|
B.target?.setPointerCapture?.(B.pointerId);
|
|
264
264
|
} catch {
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
|
-
},
|
|
267
|
+
}, St = (B) => {
|
|
268
268
|
p && (v.value = B.clientX - He, B.preventDefault());
|
|
269
269
|
}, Lt = () => {
|
|
270
270
|
if (!p) return;
|
|
271
271
|
p = !1;
|
|
272
272
|
const B = Math.max(50, d.value * 0.15);
|
|
273
|
-
v.value > B ? D() : v.value < -B && F(), v.value = 0,
|
|
274
|
-
},
|
|
273
|
+
v.value > B ? D() : v.value < -B && F(), v.value = 0, C();
|
|
274
|
+
}, Tt = (B) => {
|
|
275
275
|
try {
|
|
276
276
|
B.target?.releasePointerCapture?.(B.pointerId);
|
|
277
277
|
} catch {
|
|
278
278
|
}
|
|
279
279
|
Lt();
|
|
280
|
-
},
|
|
280
|
+
}, Rt = () => Lt();
|
|
281
281
|
return Re(() => {
|
|
282
282
|
he(() => {
|
|
283
|
-
if (
|
|
283
|
+
if (E(), s.value && (b = new MutationObserver(E), b.observe(s.value, { childList: !0 }), s.value.addEventListener("touchstart", re, { passive: !0 }), s.value.addEventListener("touchmove", J, { passive: !0 }), s.value.addEventListener("touchend", ae)), u.value) {
|
|
284
284
|
const B = () => {
|
|
285
285
|
d.value = u.value ? u.value.clientWidth : 0;
|
|
286
286
|
};
|
|
@@ -291,23 +291,23 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
291
291
|
we.observe(u.value), x.value = we;
|
|
292
292
|
} else
|
|
293
293
|
window.addEventListener("resize", B), w.value = B;
|
|
294
|
-
u.value && (u.value.addEventListener("pointerdown",
|
|
294
|
+
u.value && (u.value.addEventListener("pointerdown", $t), u.value.addEventListener("pointermove", St), u.value.addEventListener("pointerup", Tt), u.value.addEventListener("pointercancel", Rt));
|
|
295
295
|
}
|
|
296
|
-
H(),
|
|
296
|
+
H(), C();
|
|
297
297
|
});
|
|
298
298
|
}), Ae(() => {
|
|
299
|
-
|
|
299
|
+
V(), b && s.value && b.disconnect(), s.value && (s.value.removeEventListener("touchstart", re), s.value.removeEventListener("touchmove", J), s.value.removeEventListener("touchend", ae)), u.value && (x.value && x.value.disconnect && x.value.disconnect(), w.value && window.removeEventListener("resize", w.value), u.value.removeEventListener("pointerdown", $t), u.value.removeEventListener("pointermove", St), u.value.removeEventListener("pointerup", Tt), u.value.removeEventListener("pointercancel", Rt));
|
|
300
300
|
}), K([r, () => h.value], () => {
|
|
301
301
|
H();
|
|
302
302
|
}), K([() => y.value, r], () => {
|
|
303
|
-
|
|
303
|
+
C();
|
|
304
304
|
}), (B, ye) => {
|
|
305
305
|
const we = q("VjButton");
|
|
306
306
|
return f(), g("div", {
|
|
307
307
|
class: "carousel",
|
|
308
308
|
role: "region",
|
|
309
309
|
"aria-roledescription": "carousel",
|
|
310
|
-
"aria-label":
|
|
310
|
+
"aria-label": S(c),
|
|
311
311
|
tabindex: "0",
|
|
312
312
|
onKeydown: ve,
|
|
313
313
|
onMouseenter: oe,
|
|
@@ -329,14 +329,14 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
329
329
|
], 512),
|
|
330
330
|
T(we, {
|
|
331
331
|
class: "carousel-btn prev",
|
|
332
|
-
icon:
|
|
332
|
+
icon: S(z).PREVIOUS,
|
|
333
333
|
onClick: D,
|
|
334
334
|
type: "button",
|
|
335
335
|
"aria-label": "Previous slide"
|
|
336
336
|
}, null, 8, ["icon"]),
|
|
337
337
|
T(we, {
|
|
338
338
|
class: "carousel-btn next",
|
|
339
|
-
icon:
|
|
339
|
+
icon: S(z).NEXT,
|
|
340
340
|
onClick: F,
|
|
341
341
|
type: "button",
|
|
342
342
|
"aria-label": "Next slide"
|
|
@@ -454,12 +454,12 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
454
454
|
l("dismiss", o.value);
|
|
455
455
|
};
|
|
456
456
|
return (r, s) => (f(), g("div", {
|
|
457
|
-
class: I(["chip", { "chip--dismissable":
|
|
457
|
+
class: I(["chip", { "chip--dismissable": S(i) }]),
|
|
458
458
|
style: Y(a.value),
|
|
459
459
|
onClick: s[0] || (s[0] = (u) => r.$emit("click"))
|
|
460
460
|
}, [
|
|
461
461
|
_("span", fo, O(e.label), 1),
|
|
462
|
-
|
|
462
|
+
S(i) ? (f(), g("button", {
|
|
463
463
|
key: 0,
|
|
464
464
|
class: "chip__close",
|
|
465
465
|
type: "button",
|
|
@@ -467,13 +467,13 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
467
467
|
"aria-label": "Dismiss"
|
|
468
468
|
}, [
|
|
469
469
|
T(te, {
|
|
470
|
-
icon:
|
|
471
|
-
size:
|
|
470
|
+
icon: S(z).CLOSE,
|
|
471
|
+
size: S(X).S
|
|
472
472
|
}, null, 8, ["icon", "size"])
|
|
473
473
|
])) : L("", !0)
|
|
474
474
|
], 6));
|
|
475
475
|
}
|
|
476
|
-
}),
|
|
476
|
+
}), Yt = /* @__PURE__ */ A(vo, [["__scopeId", "data-v-c2014a3b"]]), mo = { class: "chip-group" }, po = {
|
|
477
477
|
key: 0,
|
|
478
478
|
class: "chip-group__label"
|
|
479
479
|
}, ho = { class: "chip-group__container" }, go = ["onDragover", "onDrop"], bo = ["onDragstart", "onDragover", "onDragenter", "onDrop"], yo = ["onDragover", "onDrop"], wo = {
|
|
@@ -492,7 +492,7 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
492
492
|
},
|
|
493
493
|
emits: ["update:items", "reorder", "dismiss", "chip-click"],
|
|
494
494
|
setup(e, { emit: n }) {
|
|
495
|
-
const t = e, o = n, l =
|
|
495
|
+
const t = e, o = n, l = $(null), i = $(null);
|
|
496
496
|
function a(m, b) {
|
|
497
497
|
return typeof m == "string" ? `${m}-${b}` : m[t.itemKey] !== void 0 ? String(m[t.itemKey]) : `item-${b}`;
|
|
498
498
|
}
|
|
@@ -523,7 +523,7 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
523
523
|
l.value = null, i.value = null;
|
|
524
524
|
}
|
|
525
525
|
function y(m) {
|
|
526
|
-
const b = t.items[m], x = t.items.filter((w,
|
|
526
|
+
const b = t.items[m], x = t.items.filter((w, E) => E !== m);
|
|
527
527
|
o("update:items", x), o("dismiss", b, m);
|
|
528
528
|
}
|
|
529
529
|
return (m, b) => (f(), g("div", mo, [
|
|
@@ -535,39 +535,39 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
535
535
|
v(w, "before") ? (f(), g("div", {
|
|
536
536
|
key: 0,
|
|
537
537
|
class: "chip-group__drop-indicator",
|
|
538
|
-
onDragover: U((
|
|
539
|
-
onDrop: (
|
|
538
|
+
onDragover: U((E) => s(w, E), ["prevent"]),
|
|
539
|
+
onDrop: (E) => p(w, E)
|
|
540
540
|
}, null, 40, go)) : L("", !0),
|
|
541
541
|
_("div", {
|
|
542
542
|
class: I(["chip-group__item", { "chip-group__item--dragging": l.value === w }]),
|
|
543
543
|
draggable: "true",
|
|
544
|
-
onDragstart: (
|
|
545
|
-
onDragover: U((
|
|
546
|
-
onDragenter: U((
|
|
544
|
+
onDragstart: (E) => r(w, E),
|
|
545
|
+
onDragover: U((E) => s(w, E), ["prevent"]),
|
|
546
|
+
onDragenter: U((E) => u(w), ["prevent"]),
|
|
547
547
|
onDragleave: d,
|
|
548
|
-
onDrop: (
|
|
548
|
+
onDrop: (E) => p(w, E),
|
|
549
549
|
onDragend: h
|
|
550
550
|
}, [
|
|
551
|
-
T(
|
|
551
|
+
T(Yt, {
|
|
552
552
|
label: c(x),
|
|
553
553
|
dismissable: typeof x == "string" ? e.dismissable : x.dismissable ?? e.dismissable,
|
|
554
554
|
color: typeof x == "string" ? e.color : x.color ?? e.color,
|
|
555
|
-
onDismiss: (
|
|
556
|
-
onClick: (
|
|
555
|
+
onDismiss: (E) => y(w),
|
|
556
|
+
onClick: (E) => m.$emit("chip-click", x, w)
|
|
557
557
|
}, null, 8, ["label", "dismissable", "color", "onDismiss", "onClick"])
|
|
558
558
|
], 42, bo),
|
|
559
559
|
v(w, "after") ? (f(), g("div", {
|
|
560
560
|
key: 1,
|
|
561
561
|
class: "chip-group__drop-indicator",
|
|
562
|
-
onDragover: U((
|
|
563
|
-
onDrop: (
|
|
562
|
+
onDragover: U((E) => s(w, E), ["prevent"]),
|
|
563
|
+
onDrop: (E) => p(w, E)
|
|
564
564
|
}, null, 40, yo)) : L("", !0)
|
|
565
565
|
], 64))), 128))
|
|
566
566
|
]),
|
|
567
567
|
e.hint ? (f(), g("div", wo, O(e.hint), 1)) : L("", !0)
|
|
568
568
|
]));
|
|
569
569
|
}
|
|
570
|
-
}),
|
|
570
|
+
}), Jt = /* @__PURE__ */ A(_o, [["__scopeId", "data-v-66199d19"]]), Qt = /* @__PURE__ */ Symbol("VjDialogController"), xo = { class: "dialog-content" }, ko = { key: 1 }, Co = { class: "dialog-footer" }, Vo = /* @__PURE__ */ R({
|
|
571
571
|
__name: "dialog",
|
|
572
572
|
props: {
|
|
573
573
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -584,7 +584,7 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
584
584
|
},
|
|
585
585
|
emits: ["update:modelValue", "confirm", "cancel", "close", "resolve"],
|
|
586
586
|
setup(e, { emit: n }) {
|
|
587
|
-
const t = e, o = n, l =
|
|
587
|
+
const t = e, o = n, l = $(t.modelValue);
|
|
588
588
|
K(
|
|
589
589
|
() => t.modelValue,
|
|
590
590
|
(d) => l.value = d
|
|
@@ -598,7 +598,7 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
598
598
|
}, r = () => {
|
|
599
599
|
o("cancel"), i();
|
|
600
600
|
};
|
|
601
|
-
|
|
601
|
+
qt(Qt, {
|
|
602
602
|
close: i,
|
|
603
603
|
resolve: a,
|
|
604
604
|
cancel: r
|
|
@@ -615,14 +615,14 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
615
615
|
}), (d, v) => {
|
|
616
616
|
const p = q("VjIcon"), h = q("VjButton"), y = q("VjCard");
|
|
617
617
|
return f(), P(je, { to: "body" }, [
|
|
618
|
-
T(
|
|
618
|
+
T(Se, { name: "dialog-fade" }, {
|
|
619
619
|
default: N(() => [
|
|
620
620
|
l.value ? (f(), g("div", {
|
|
621
621
|
key: 0,
|
|
622
622
|
class: "dialog-backdrop",
|
|
623
623
|
onClick: s
|
|
624
624
|
}, [
|
|
625
|
-
T(
|
|
625
|
+
T(Se, { name: "dialog-scale" }, {
|
|
626
626
|
default: N(() => [
|
|
627
627
|
l.value ? (f(), g("div", {
|
|
628
628
|
key: 0,
|
|
@@ -636,15 +636,15 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
636
636
|
}, dt({
|
|
637
637
|
headerActions: N(() => [
|
|
638
638
|
T(p, {
|
|
639
|
-
icon:
|
|
640
|
-
size:
|
|
639
|
+
icon: S(z).CLOSE,
|
|
640
|
+
size: S(X).S,
|
|
641
641
|
class: "dialog-close",
|
|
642
642
|
onClick: i
|
|
643
643
|
}, null, 8, ["icon", "size"])
|
|
644
644
|
]),
|
|
645
645
|
default: N(() => [
|
|
646
646
|
_("div", xo, [
|
|
647
|
-
e.component ? (f(), P(ut(e.component),
|
|
647
|
+
e.component ? (f(), P(ut(e.component), ft({ key: 0 }, e.componentProps, {
|
|
648
648
|
onCancel: r,
|
|
649
649
|
onClose: i,
|
|
650
650
|
onConfirm: c,
|
|
@@ -657,7 +657,7 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
657
657
|
e.showFooter ? {
|
|
658
658
|
name: "footer",
|
|
659
659
|
fn: N(() => [
|
|
660
|
-
_("div",
|
|
660
|
+
_("div", Co, [
|
|
661
661
|
M(d.$slots, "footer", {}, () => [
|
|
662
662
|
e.showCancel ? (f(), P(h, {
|
|
663
663
|
key: 0,
|
|
@@ -687,7 +687,7 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
687
687
|
]);
|
|
688
688
|
};
|
|
689
689
|
}
|
|
690
|
-
}),
|
|
690
|
+
}), pt = /* @__PURE__ */ A(Vo, [["__scopeId", "data-v-29d1729b"]]), Eo = { class: "vj-chip-selector" }, $o = { class: "options-grid" }, So = ["onClick"], Lo = {
|
|
691
691
|
key: 0,
|
|
692
692
|
class: "no-options"
|
|
693
693
|
}, To = /* @__PURE__ */ R({
|
|
@@ -702,7 +702,7 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
702
702
|
},
|
|
703
703
|
emits: ["update:items"],
|
|
704
704
|
setup(e, { emit: n }) {
|
|
705
|
-
const t = e, o = n, l =
|
|
705
|
+
const t = e, o = n, l = $([...t.items]), i = $(!1), a = k(() => t.options.filter((s) => !l.value.includes(s.value)));
|
|
706
706
|
function c(s) {
|
|
707
707
|
const u = s;
|
|
708
708
|
l.value = u, o("update:items", u);
|
|
@@ -720,7 +720,7 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
720
720
|
},
|
|
721
721
|
{ deep: !0 }
|
|
722
722
|
), (s, u) => (f(), g("div", Eo, [
|
|
723
|
-
T(
|
|
723
|
+
T(Jt, {
|
|
724
724
|
items: l.value,
|
|
725
725
|
"onUpdate:items": [
|
|
726
726
|
u[0] || (u[0] = (d) => l.value = d),
|
|
@@ -734,7 +734,7 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
734
734
|
class: "add-button",
|
|
735
735
|
onClick: u[1] || (u[1] = (d) => i.value = !0)
|
|
736
736
|
}, O(e.addButtonText), 1),
|
|
737
|
-
T(
|
|
737
|
+
T(pt, {
|
|
738
738
|
modelValue: i.value,
|
|
739
739
|
"onUpdate:modelValue": u[2] || (u[2] = (d) => i.value = d),
|
|
740
740
|
title: e.dialogTitle || `Add ${e.label}`,
|
|
@@ -747,15 +747,15 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
747
747
|
type: "button",
|
|
748
748
|
class: "option-btn",
|
|
749
749
|
onClick: (v) => r(d.value)
|
|
750
|
-
}, "+ " + O(d.label), 9,
|
|
750
|
+
}, "+ " + O(d.label), 9, So))), 128))
|
|
751
751
|
]),
|
|
752
|
-
a.value.length === 0 ? (f(), g("div",
|
|
752
|
+
a.value.length === 0 ? (f(), g("div", Lo, "All options already selected")) : L("", !0)
|
|
753
753
|
]),
|
|
754
754
|
_: 1
|
|
755
755
|
}, 8, ["modelValue", "title"])
|
|
756
756
|
]));
|
|
757
757
|
}
|
|
758
|
-
}), Ro = /* @__PURE__ */ A(To, [["__scopeId", "data-v-f2e1b880"]]),
|
|
758
|
+
}), Ro = /* @__PURE__ */ A(To, [["__scopeId", "data-v-f2e1b880"]]), Le = Math.min, Z = Math.max, Ne = Math.round, We = Math.floor, ce = (e) => ({
|
|
759
759
|
x: e,
|
|
760
760
|
y: e
|
|
761
761
|
}), Ao = {
|
|
@@ -767,8 +767,8 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
767
767
|
start: "end",
|
|
768
768
|
end: "start"
|
|
769
769
|
};
|
|
770
|
-
function
|
|
771
|
-
return Z(e,
|
|
770
|
+
function Ot(e, n, t) {
|
|
771
|
+
return Z(e, Le(n, t));
|
|
772
772
|
}
|
|
773
773
|
function Pe(e, n) {
|
|
774
774
|
return typeof e == "function" ? e(n) : e;
|
|
@@ -779,22 +779,22 @@ function ge(e) {
|
|
|
779
779
|
function Fe(e) {
|
|
780
780
|
return e.split("-")[1];
|
|
781
781
|
}
|
|
782
|
-
function
|
|
782
|
+
function Zt(e) {
|
|
783
783
|
return e === "x" ? "y" : "x";
|
|
784
784
|
}
|
|
785
|
-
function
|
|
785
|
+
function en(e) {
|
|
786
786
|
return e === "y" ? "height" : "width";
|
|
787
787
|
}
|
|
788
788
|
const Do = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
789
789
|
function me(e) {
|
|
790
790
|
return Do.has(ge(e)) ? "y" : "x";
|
|
791
791
|
}
|
|
792
|
-
function
|
|
793
|
-
return
|
|
792
|
+
function tn(e) {
|
|
793
|
+
return Zt(me(e));
|
|
794
794
|
}
|
|
795
795
|
function Bo(e, n, t) {
|
|
796
796
|
t === void 0 && (t = !1);
|
|
797
|
-
const o = Fe(e), l =
|
|
797
|
+
const o = Fe(e), l = tn(e), i = en(l);
|
|
798
798
|
let a = l === "x" ? o === (t ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
799
799
|
return n.reference[i] > n.floating[i] && (a = Ke(a)), [a, Ke(a)];
|
|
800
800
|
}
|
|
@@ -805,12 +805,12 @@ function Mo(e) {
|
|
|
805
805
|
function rt(e) {
|
|
806
806
|
return e.replace(/start|end/g, (n) => Oo[n]);
|
|
807
807
|
}
|
|
808
|
-
const
|
|
808
|
+
const Dt = ["left", "right"], Bt = ["right", "left"], jo = ["top", "bottom"], Po = ["bottom", "top"];
|
|
809
809
|
function Fo(e, n, t) {
|
|
810
810
|
switch (e) {
|
|
811
811
|
case "top":
|
|
812
812
|
case "bottom":
|
|
813
|
-
return t ? n ?
|
|
813
|
+
return t ? n ? Bt : Dt : n ? Dt : Bt;
|
|
814
814
|
case "left":
|
|
815
815
|
case "right":
|
|
816
816
|
return n ? jo : Po;
|
|
@@ -861,12 +861,12 @@ function Xe(e) {
|
|
|
861
861
|
y: t
|
|
862
862
|
};
|
|
863
863
|
}
|
|
864
|
-
function
|
|
864
|
+
function Mt(e, n, t) {
|
|
865
865
|
let {
|
|
866
866
|
reference: o,
|
|
867
867
|
floating: l
|
|
868
868
|
} = e;
|
|
869
|
-
const i = me(n), a =
|
|
869
|
+
const i = me(n), a = tn(n), c = en(a), r = ge(n), s = i === "y", u = o.x + o.width / 2 - l.width / 2, d = o.y + o.height / 2 - l.height / 2, v = o[c] / 2 - l[c] / 2;
|
|
870
870
|
let p;
|
|
871
871
|
switch (r) {
|
|
872
872
|
case "top":
|
|
@@ -923,7 +923,7 @@ const Wo = async (e, n, t) => {
|
|
|
923
923
|
}), {
|
|
924
924
|
x: u,
|
|
925
925
|
y: d
|
|
926
|
-
} =
|
|
926
|
+
} = Mt(s, o, r), v = o, p = {}, h = 0;
|
|
927
927
|
for (let y = 0; y < c.length; y++) {
|
|
928
928
|
const {
|
|
929
929
|
name: m,
|
|
@@ -931,7 +931,7 @@ const Wo = async (e, n, t) => {
|
|
|
931
931
|
} = c[y], {
|
|
932
932
|
x,
|
|
933
933
|
y: w,
|
|
934
|
-
data:
|
|
934
|
+
data: E,
|
|
935
935
|
reset: j
|
|
936
936
|
} = await b({
|
|
937
937
|
x: u,
|
|
@@ -951,7 +951,7 @@ const Wo = async (e, n, t) => {
|
|
|
951
951
|
...p,
|
|
952
952
|
[m]: {
|
|
953
953
|
...p[m],
|
|
954
|
-
...
|
|
954
|
+
...E
|
|
955
955
|
}
|
|
956
956
|
}, j && h <= 50 && (h++, typeof j == "object" && (j.placement && (v = j.placement), j.rects && (s = j.rects === !0 ? await a.getElementRects({
|
|
957
957
|
reference: e,
|
|
@@ -960,7 +960,7 @@ const Wo = async (e, n, t) => {
|
|
|
960
960
|
}) : j.rects), {
|
|
961
961
|
x: u,
|
|
962
962
|
y: d
|
|
963
|
-
} =
|
|
963
|
+
} = Mt(s, v, r)), y = -1);
|
|
964
964
|
}
|
|
965
965
|
return {
|
|
966
966
|
x: u,
|
|
@@ -970,7 +970,7 @@ const Wo = async (e, n, t) => {
|
|
|
970
970
|
middlewareData: p
|
|
971
971
|
};
|
|
972
972
|
};
|
|
973
|
-
async function
|
|
973
|
+
async function ht(e, n) {
|
|
974
974
|
var t;
|
|
975
975
|
n === void 0 && (n = {});
|
|
976
976
|
const {
|
|
@@ -996,7 +996,7 @@ async function pt(e, n) {
|
|
|
996
996
|
y: l,
|
|
997
997
|
width: a.floating.width,
|
|
998
998
|
height: a.floating.height
|
|
999
|
-
} : a.reference, w = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(c.floating)),
|
|
999
|
+
} : a.reference, w = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(c.floating)), E = await (i.isElement == null ? void 0 : i.isElement(w)) ? await (i.getScale == null ? void 0 : i.getScale(w)) || {
|
|
1000
1000
|
x: 1,
|
|
1001
1001
|
y: 1
|
|
1002
1002
|
} : {
|
|
@@ -1009,10 +1009,10 @@ async function pt(e, n) {
|
|
|
1009
1009
|
strategy: r
|
|
1010
1010
|
}) : x);
|
|
1011
1011
|
return {
|
|
1012
|
-
top: (b.top - j.top + h.top) /
|
|
1013
|
-
bottom: (j.bottom - b.bottom + h.bottom) /
|
|
1014
|
-
left: (b.left - j.left + h.left) /
|
|
1015
|
-
right: (j.right - b.right + h.right) /
|
|
1012
|
+
top: (b.top - j.top + h.top) / E.y,
|
|
1013
|
+
bottom: (j.bottom - b.bottom + h.bottom) / E.y,
|
|
1014
|
+
left: (b.left - j.left + h.left) / E.x,
|
|
1015
|
+
right: (j.right - b.right + h.right) / E.x
|
|
1016
1016
|
};
|
|
1017
1017
|
}
|
|
1018
1018
|
const Uo = function(e) {
|
|
@@ -1039,20 +1039,20 @@ const Uo = function(e) {
|
|
|
1039
1039
|
} = Pe(e, n);
|
|
1040
1040
|
if ((t = i.arrow) != null && t.alignmentOffset)
|
|
1041
1041
|
return {};
|
|
1042
|
-
const b = ge(l), x = me(c), w = ge(c) === c,
|
|
1043
|
-
!v && H && j.push(...zo(c, y, h,
|
|
1044
|
-
const
|
|
1042
|
+
const b = ge(l), x = me(c), w = ge(c) === c, E = await (r.isRTL == null ? void 0 : r.isRTL(s.floating)), j = v || (w || !y ? [Ke(c)] : Mo(c)), H = h !== "none";
|
|
1043
|
+
!v && H && j.push(...zo(c, y, h, E));
|
|
1044
|
+
const C = [c, ...j], V = await ht(n, m), D = [];
|
|
1045
1045
|
let F = ((o = i.flip) == null ? void 0 : o.overflows) || [];
|
|
1046
|
-
if (u && D.push(
|
|
1047
|
-
const ve = Bo(l, a,
|
|
1048
|
-
D.push(
|
|
1046
|
+
if (u && D.push(V[b]), d) {
|
|
1047
|
+
const ve = Bo(l, a, E);
|
|
1048
|
+
D.push(V[ve[0]], V[ve[1]]);
|
|
1049
1049
|
}
|
|
1050
1050
|
if (F = [...F, {
|
|
1051
1051
|
placement: l,
|
|
1052
1052
|
overflows: D
|
|
1053
1053
|
}], !D.every((ve) => ve <= 0)) {
|
|
1054
1054
|
var W, oe;
|
|
1055
|
-
const ve = (((W = i.flip) == null ? void 0 : W.index) || 0) + 1, ke =
|
|
1055
|
+
const ve = (((W = i.flip) == null ? void 0 : W.index) || 0) + 1, ke = C[ve];
|
|
1056
1056
|
if (ke && (!(d === "alignment" ? x !== me(ke) : !1) || // We leave the current main axis only if every placement on that axis
|
|
1057
1057
|
// overflows the main axis.
|
|
1058
1058
|
F.every((J) => me(J.placement) === x ? J.overflows[0] > 0 : !0)))
|
|
@@ -1174,15 +1174,15 @@ const Xo = function(e) {
|
|
|
1174
1174
|
} = Pe(e, n), s = {
|
|
1175
1175
|
x: t,
|
|
1176
1176
|
y: o
|
|
1177
|
-
}, u = await
|
|
1177
|
+
}, u = await ht(n, r), d = me(ge(l)), v = Zt(d);
|
|
1178
1178
|
let p = s[v], h = s[d];
|
|
1179
1179
|
if (i) {
|
|
1180
1180
|
const m = v === "y" ? "top" : "left", b = v === "y" ? "bottom" : "right", x = p + u[m], w = p - u[b];
|
|
1181
|
-
p =
|
|
1181
|
+
p = Ot(x, p, w);
|
|
1182
1182
|
}
|
|
1183
1183
|
if (a) {
|
|
1184
1184
|
const m = d === "y" ? "top" : "left", b = d === "y" ? "bottom" : "right", x = h + u[m], w = h - u[b];
|
|
1185
|
-
h =
|
|
1185
|
+
h = Ot(x, h, w);
|
|
1186
1186
|
}
|
|
1187
1187
|
const y = c.fn({
|
|
1188
1188
|
...n,
|
|
@@ -1217,22 +1217,22 @@ const Xo = function(e) {
|
|
|
1217
1217
|
apply: r = () => {
|
|
1218
1218
|
},
|
|
1219
1219
|
...s
|
|
1220
|
-
} = Pe(e, n), u = await
|
|
1220
|
+
} = Pe(e, n), u = await ht(n, s), d = ge(l), v = Fe(l), p = me(l) === "y", {
|
|
1221
1221
|
width: h,
|
|
1222
1222
|
height: y
|
|
1223
1223
|
} = i.floating;
|
|
1224
1224
|
let m, b;
|
|
1225
1225
|
d === "top" || d === "bottom" ? (m = d, b = v === (await (a.isRTL == null ? void 0 : a.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (b = d, m = v === "end" ? "top" : "bottom");
|
|
1226
|
-
const x = y - u.top - u.bottom, w = h - u.left - u.right,
|
|
1227
|
-
let
|
|
1228
|
-
if ((t = n.middlewareData.shift) != null && t.enabled.x && (
|
|
1226
|
+
const x = y - u.top - u.bottom, w = h - u.left - u.right, E = Le(y - u[m], x), j = Le(h - u[b], w), H = !n.middlewareData.shift;
|
|
1227
|
+
let C = E, V = j;
|
|
1228
|
+
if ((t = n.middlewareData.shift) != null && t.enabled.x && (V = w), (o = n.middlewareData.shift) != null && o.enabled.y && (C = x), H && !v) {
|
|
1229
1229
|
const F = Z(u.left, 0), W = Z(u.right, 0), oe = Z(u.top, 0), fe = Z(u.bottom, 0);
|
|
1230
|
-
p ?
|
|
1230
|
+
p ? V = h - 2 * (F !== 0 || W !== 0 ? F + W : Z(u.left, u.right)) : C = y - 2 * (oe !== 0 || fe !== 0 ? oe + fe : Z(u.top, u.bottom));
|
|
1231
1231
|
}
|
|
1232
1232
|
await r({
|
|
1233
1233
|
...n,
|
|
1234
|
-
availableWidth:
|
|
1235
|
-
availableHeight:
|
|
1234
|
+
availableWidth: V,
|
|
1235
|
+
availableHeight: C
|
|
1236
1236
|
});
|
|
1237
1237
|
const D = await a.getDimensions(c.floating);
|
|
1238
1238
|
return h !== D.width || y !== D.height ? {
|
|
@@ -1247,7 +1247,7 @@ function Ye() {
|
|
|
1247
1247
|
return typeof window < "u";
|
|
1248
1248
|
}
|
|
1249
1249
|
function xe(e) {
|
|
1250
|
-
return
|
|
1250
|
+
return gt(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
1251
1251
|
}
|
|
1252
1252
|
function ee(e) {
|
|
1253
1253
|
var n;
|
|
@@ -1255,9 +1255,9 @@ function ee(e) {
|
|
|
1255
1255
|
}
|
|
1256
1256
|
function de(e) {
|
|
1257
1257
|
var n;
|
|
1258
|
-
return (n = (
|
|
1258
|
+
return (n = (gt(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : n.documentElement;
|
|
1259
1259
|
}
|
|
1260
|
-
function
|
|
1260
|
+
function gt(e) {
|
|
1261
1261
|
return Ye() ? e instanceof Node || e instanceof ee(e).Node : !1;
|
|
1262
1262
|
}
|
|
1263
1263
|
function ie(e) {
|
|
@@ -1266,7 +1266,7 @@ function ie(e) {
|
|
|
1266
1266
|
function ue(e) {
|
|
1267
1267
|
return Ye() ? e instanceof HTMLElement || e instanceof ee(e).HTMLElement : !1;
|
|
1268
1268
|
}
|
|
1269
|
-
function
|
|
1269
|
+
function jt(e) {
|
|
1270
1270
|
return !Ye() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof ee(e).ShadowRoot;
|
|
1271
1271
|
}
|
|
1272
1272
|
const Yo = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
@@ -1294,14 +1294,14 @@ function Je(e) {
|
|
|
1294
1294
|
});
|
|
1295
1295
|
}
|
|
1296
1296
|
const el = ["transform", "translate", "scale", "rotate", "perspective"], tl = ["transform", "translate", "scale", "rotate", "perspective", "filter"], nl = ["paint", "layout", "strict", "content"];
|
|
1297
|
-
function
|
|
1298
|
-
const n =
|
|
1297
|
+
function bt(e) {
|
|
1298
|
+
const n = yt(), t = ie(e) ? se(e) : e;
|
|
1299
1299
|
return el.some((o) => t[o] ? t[o] !== "none" : !1) || (t.containerType ? t.containerType !== "normal" : !1) || !n && (t.backdropFilter ? t.backdropFilter !== "none" : !1) || !n && (t.filter ? t.filter !== "none" : !1) || tl.some((o) => (t.willChange || "").includes(o)) || nl.some((o) => (t.contain || "").includes(o));
|
|
1300
1300
|
}
|
|
1301
1301
|
function ol(e) {
|
|
1302
1302
|
let n = be(e);
|
|
1303
1303
|
for (; ue(n) && !Te(n); ) {
|
|
1304
|
-
if (
|
|
1304
|
+
if (bt(n))
|
|
1305
1305
|
return n;
|
|
1306
1306
|
if (Je(n))
|
|
1307
1307
|
return null;
|
|
@@ -1309,7 +1309,7 @@ function ol(e) {
|
|
|
1309
1309
|
}
|
|
1310
1310
|
return null;
|
|
1311
1311
|
}
|
|
1312
|
-
function
|
|
1312
|
+
function yt() {
|
|
1313
1313
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
1314
1314
|
}
|
|
1315
1315
|
const ll = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
@@ -1335,19 +1335,19 @@ function be(e) {
|
|
|
1335
1335
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
1336
1336
|
e.assignedSlot || // DOM Element detected.
|
|
1337
1337
|
e.parentNode || // ShadowRoot detected.
|
|
1338
|
-
|
|
1338
|
+
jt(e) && e.host || // Fallback.
|
|
1339
1339
|
de(e)
|
|
1340
1340
|
);
|
|
1341
|
-
return
|
|
1341
|
+
return jt(n) ? n.host : n;
|
|
1342
1342
|
}
|
|
1343
|
-
function
|
|
1343
|
+
function nn(e) {
|
|
1344
1344
|
const n = be(e);
|
|
1345
|
-
return Te(n) ? e.ownerDocument ? e.ownerDocument.body : e.body : ue(n) && ze(n) ? n :
|
|
1345
|
+
return Te(n) ? e.ownerDocument ? e.ownerDocument.body : e.body : ue(n) && ze(n) ? n : nn(n);
|
|
1346
1346
|
}
|
|
1347
1347
|
function Me(e, n, t) {
|
|
1348
1348
|
var o;
|
|
1349
1349
|
n === void 0 && (n = []), t === void 0 && (t = !0);
|
|
1350
|
-
const l =
|
|
1350
|
+
const l = nn(e), i = l === ((o = e.ownerDocument) == null ? void 0 : o.body), a = ee(l);
|
|
1351
1351
|
if (i) {
|
|
1352
1352
|
const c = ct(a);
|
|
1353
1353
|
return n.concat(a, a.visualViewport || [], ze(l) ? l : [], c && t ? Me(c) : []);
|
|
@@ -1357,7 +1357,7 @@ function Me(e, n, t) {
|
|
|
1357
1357
|
function ct(e) {
|
|
1358
1358
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
1359
1359
|
}
|
|
1360
|
-
function
|
|
1360
|
+
function on(e) {
|
|
1361
1361
|
const n = se(e);
|
|
1362
1362
|
let t = parseFloat(n.width) || 0, o = parseFloat(n.height) || 0;
|
|
1363
1363
|
const l = ue(e), i = l ? e.offsetWidth : t, a = l ? e.offsetHeight : o, c = Ne(t) !== i || Ne(o) !== a;
|
|
@@ -1367,18 +1367,18 @@ function nn(e) {
|
|
|
1367
1367
|
$: c
|
|
1368
1368
|
};
|
|
1369
1369
|
}
|
|
1370
|
-
function
|
|
1370
|
+
function wt(e) {
|
|
1371
1371
|
return ie(e) ? e : e.contextElement;
|
|
1372
1372
|
}
|
|
1373
1373
|
function Ee(e) {
|
|
1374
|
-
const n =
|
|
1374
|
+
const n = wt(e);
|
|
1375
1375
|
if (!ue(n))
|
|
1376
1376
|
return ce(1);
|
|
1377
1377
|
const t = n.getBoundingClientRect(), {
|
|
1378
1378
|
width: o,
|
|
1379
1379
|
height: l,
|
|
1380
1380
|
$: i
|
|
1381
|
-
} =
|
|
1381
|
+
} = on(n);
|
|
1382
1382
|
let a = (i ? Ne(t.width) : t.width) / o, c = (i ? Ne(t.height) : t.height) / l;
|
|
1383
1383
|
return (!a || !Number.isFinite(a)) && (a = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
1384
1384
|
x: a,
|
|
@@ -1386,9 +1386,9 @@ function Ee(e) {
|
|
|
1386
1386
|
};
|
|
1387
1387
|
}
|
|
1388
1388
|
const al = /* @__PURE__ */ ce(0);
|
|
1389
|
-
function
|
|
1389
|
+
function ln(e) {
|
|
1390
1390
|
const n = ee(e);
|
|
1391
|
-
return !
|
|
1391
|
+
return !yt() || !n.visualViewport ? al : {
|
|
1392
1392
|
x: n.visualViewport.offsetLeft,
|
|
1393
1393
|
y: n.visualViewport.offsetTop
|
|
1394
1394
|
};
|
|
@@ -1398,17 +1398,17 @@ function il(e, n, t) {
|
|
|
1398
1398
|
}
|
|
1399
1399
|
function _e(e, n, t, o) {
|
|
1400
1400
|
n === void 0 && (n = !1), t === void 0 && (t = !1);
|
|
1401
|
-
const l = e.getBoundingClientRect(), i =
|
|
1401
|
+
const l = e.getBoundingClientRect(), i = wt(e);
|
|
1402
1402
|
let a = ce(1);
|
|
1403
1403
|
n && (o ? ie(o) && (a = Ee(o)) : a = Ee(e));
|
|
1404
|
-
const c = il(i, t, o) ?
|
|
1404
|
+
const c = il(i, t, o) ? ln(i) : ce(0);
|
|
1405
1405
|
let r = (l.left + c.x) / a.x, s = (l.top + c.y) / a.y, u = l.width / a.x, d = l.height / a.y;
|
|
1406
1406
|
if (i) {
|
|
1407
1407
|
const v = ee(i), p = o && ie(o) ? ee(o) : o;
|
|
1408
1408
|
let h = v, y = ct(h);
|
|
1409
1409
|
for (; y && o && p !== h; ) {
|
|
1410
|
-
const m = Ee(y), b = y.getBoundingClientRect(), x = se(y), w = b.left + (y.clientLeft + parseFloat(x.paddingLeft)) * m.x,
|
|
1411
|
-
r *= m.x, s *= m.y, u *= m.x, d *= m.y, r += w, s +=
|
|
1410
|
+
const m = Ee(y), b = y.getBoundingClientRect(), x = se(y), w = b.left + (y.clientLeft + parseFloat(x.paddingLeft)) * m.x, E = b.top + (y.clientTop + parseFloat(x.paddingTop)) * m.y;
|
|
1411
|
+
r *= m.x, s *= m.y, u *= m.x, d *= m.y, r += w, s += E, h = ee(y), y = ct(h);
|
|
1412
1412
|
}
|
|
1413
1413
|
}
|
|
1414
1414
|
return Xe({
|
|
@@ -1422,7 +1422,7 @@ function Ze(e, n) {
|
|
|
1422
1422
|
const t = Qe(e).scrollLeft;
|
|
1423
1423
|
return n ? n.left + t : _e(de(e)).left + t;
|
|
1424
1424
|
}
|
|
1425
|
-
function
|
|
1425
|
+
function an(e, n) {
|
|
1426
1426
|
const t = e.getBoundingClientRect(), o = t.left + n.scrollLeft - Ze(e, t), l = t.top + n.scrollTop;
|
|
1427
1427
|
return {
|
|
1428
1428
|
x: o,
|
|
@@ -1448,7 +1448,7 @@ function sl(e) {
|
|
|
1448
1448
|
const p = _e(o);
|
|
1449
1449
|
s = Ee(o), u.x = p.x + o.clientLeft, u.y = p.y + o.clientTop;
|
|
1450
1450
|
}
|
|
1451
|
-
const v = a && !d && !i ?
|
|
1451
|
+
const v = a && !d && !i ? an(a, r) : ce(0);
|
|
1452
1452
|
return {
|
|
1453
1453
|
width: t.width * s.x,
|
|
1454
1454
|
height: t.height * s.y,
|
|
@@ -1470,20 +1470,20 @@ function cl(e) {
|
|
|
1470
1470
|
y: c
|
|
1471
1471
|
};
|
|
1472
1472
|
}
|
|
1473
|
-
const
|
|
1473
|
+
const Pt = 25;
|
|
1474
1474
|
function ul(e, n) {
|
|
1475
1475
|
const t = ee(e), o = de(e), l = t.visualViewport;
|
|
1476
1476
|
let i = o.clientWidth, a = o.clientHeight, c = 0, r = 0;
|
|
1477
1477
|
if (l) {
|
|
1478
1478
|
i = l.width, a = l.height;
|
|
1479
|
-
const u =
|
|
1479
|
+
const u = yt();
|
|
1480
1480
|
(!u || u && n === "fixed") && (c = l.offsetLeft, r = l.offsetTop);
|
|
1481
1481
|
}
|
|
1482
1482
|
const s = Ze(o);
|
|
1483
1483
|
if (s <= 0) {
|
|
1484
1484
|
const u = o.ownerDocument, d = u.body, v = getComputedStyle(d), p = u.compatMode === "CSS1Compat" && parseFloat(v.marginLeft) + parseFloat(v.marginRight) || 0, h = Math.abs(o.clientWidth - d.clientWidth - p);
|
|
1485
|
-
h <=
|
|
1486
|
-
} else s <=
|
|
1485
|
+
h <= Pt && (i -= h);
|
|
1486
|
+
} else s <= Pt && (i += s);
|
|
1487
1487
|
return {
|
|
1488
1488
|
width: i,
|
|
1489
1489
|
height: a,
|
|
@@ -1501,7 +1501,7 @@ function fl(e, n) {
|
|
|
1501
1501
|
y: s
|
|
1502
1502
|
};
|
|
1503
1503
|
}
|
|
1504
|
-
function
|
|
1504
|
+
function Ft(e, n, t) {
|
|
1505
1505
|
let o;
|
|
1506
1506
|
if (n === "viewport")
|
|
1507
1507
|
o = ul(e, t);
|
|
@@ -1510,7 +1510,7 @@ function Pt(e, n, t) {
|
|
|
1510
1510
|
else if (ie(n))
|
|
1511
1511
|
o = fl(n, t);
|
|
1512
1512
|
else {
|
|
1513
|
-
const l =
|
|
1513
|
+
const l = ln(e);
|
|
1514
1514
|
o = {
|
|
1515
1515
|
x: n.x - l.x,
|
|
1516
1516
|
y: n.y - l.y,
|
|
@@ -1520,9 +1520,9 @@ function Pt(e, n, t) {
|
|
|
1520
1520
|
}
|
|
1521
1521
|
return Xe(o);
|
|
1522
1522
|
}
|
|
1523
|
-
function
|
|
1523
|
+
function sn(e, n) {
|
|
1524
1524
|
const t = be(e);
|
|
1525
|
-
return t === n || !ie(t) || Te(t) ? !1 : se(t).position === "fixed" ||
|
|
1525
|
+
return t === n || !ie(t) || Te(t) ? !1 : se(t).position === "fixed" || sn(t, n);
|
|
1526
1526
|
}
|
|
1527
1527
|
function vl(e, n) {
|
|
1528
1528
|
const t = n.get(e);
|
|
@@ -1532,8 +1532,8 @@ function vl(e, n) {
|
|
|
1532
1532
|
const i = se(e).position === "fixed";
|
|
1533
1533
|
let a = i ? be(e) : e;
|
|
1534
1534
|
for (; ie(a) && !Te(a); ) {
|
|
1535
|
-
const c = se(a), r =
|
|
1536
|
-
!r && c.position === "fixed" && (l = null), (i ? !r && !l : !r && c.position === "static" && !!l && dl.has(l.position) || ze(a) && !r &&
|
|
1535
|
+
const c = se(a), r = bt(a);
|
|
1536
|
+
!r && c.position === "fixed" && (l = null), (i ? !r && !l : !r && c.position === "static" && !!l && dl.has(l.position) || ze(a) && !r && sn(e, a)) ? o = o.filter((u) => u !== a) : l = c, a = be(a);
|
|
1537
1537
|
}
|
|
1538
1538
|
return n.set(e, o), o;
|
|
1539
1539
|
}
|
|
@@ -1545,9 +1545,9 @@ function ml(e) {
|
|
|
1545
1545
|
strategy: l
|
|
1546
1546
|
} = e;
|
|
1547
1547
|
const a = [...t === "clippingAncestors" ? Je(n) ? [] : vl(n, this._c) : [].concat(t), o], c = a[0], r = a.reduce((s, u) => {
|
|
1548
|
-
const d =
|
|
1549
|
-
return s.top = Z(d.top, s.top), s.right =
|
|
1550
|
-
},
|
|
1548
|
+
const d = Ft(n, u, l);
|
|
1549
|
+
return s.top = Z(d.top, s.top), s.right = Le(d.right, s.right), s.bottom = Le(d.bottom, s.bottom), s.left = Z(d.left, s.left), s;
|
|
1550
|
+
}, Ft(n, c, l));
|
|
1551
1551
|
return {
|
|
1552
1552
|
width: r.right - r.left,
|
|
1553
1553
|
height: r.bottom - r.top,
|
|
@@ -1559,7 +1559,7 @@ function pl(e) {
|
|
|
1559
1559
|
const {
|
|
1560
1560
|
width: n,
|
|
1561
1561
|
height: t
|
|
1562
|
-
} =
|
|
1562
|
+
} = on(e);
|
|
1563
1563
|
return {
|
|
1564
1564
|
width: n,
|
|
1565
1565
|
height: t
|
|
@@ -1581,7 +1581,7 @@ function hl(e, n, t) {
|
|
|
1581
1581
|
r.x = p.x + n.clientLeft, r.y = p.y + n.clientTop;
|
|
1582
1582
|
} else l && s();
|
|
1583
1583
|
i && !o && l && s();
|
|
1584
|
-
const u = l && !o && !i ?
|
|
1584
|
+
const u = l && !o && !i ? an(l, c) : ce(0), d = a.left + c.scrollLeft - r.x - u.x, v = a.top + c.scrollTop - r.y - u.y;
|
|
1585
1585
|
return {
|
|
1586
1586
|
x: d,
|
|
1587
1587
|
y: v,
|
|
@@ -1592,7 +1592,7 @@ function hl(e, n, t) {
|
|
|
1592
1592
|
function it(e) {
|
|
1593
1593
|
return se(e).position === "static";
|
|
1594
1594
|
}
|
|
1595
|
-
function
|
|
1595
|
+
function zt(e, n) {
|
|
1596
1596
|
if (!ue(e) || se(e).position === "fixed")
|
|
1597
1597
|
return null;
|
|
1598
1598
|
if (n)
|
|
@@ -1600,7 +1600,7 @@ function Ft(e, n) {
|
|
|
1600
1600
|
let t = e.offsetParent;
|
|
1601
1601
|
return de(e) === t && (t = t.ownerDocument.body), t;
|
|
1602
1602
|
}
|
|
1603
|
-
function
|
|
1603
|
+
function rn(e, n) {
|
|
1604
1604
|
const t = ee(e);
|
|
1605
1605
|
if (Je(e))
|
|
1606
1606
|
return t;
|
|
@@ -1613,13 +1613,13 @@ function sn(e, n) {
|
|
|
1613
1613
|
}
|
|
1614
1614
|
return t;
|
|
1615
1615
|
}
|
|
1616
|
-
let o =
|
|
1616
|
+
let o = zt(e, n);
|
|
1617
1617
|
for (; o && Qo(o) && it(o); )
|
|
1618
|
-
o =
|
|
1619
|
-
return o && Te(o) && it(o) && !
|
|
1618
|
+
o = zt(o, n);
|
|
1619
|
+
return o && Te(o) && it(o) && !bt(o) ? t : o || ol(e) || t;
|
|
1620
1620
|
}
|
|
1621
1621
|
const gl = async function(e) {
|
|
1622
|
-
const n = this.getOffsetParent ||
|
|
1622
|
+
const n = this.getOffsetParent || rn, t = this.getDimensions, o = await t(e.floating);
|
|
1623
1623
|
return {
|
|
1624
1624
|
reference: hl(e.reference, await n(e.floating), e.strategy),
|
|
1625
1625
|
floating: {
|
|
@@ -1637,7 +1637,7 @@ const yl = {
|
|
|
1637
1637
|
convertOffsetParentRelativeRectToViewportRelativeRect: sl,
|
|
1638
1638
|
getDocumentElement: de,
|
|
1639
1639
|
getClippingRect: ml,
|
|
1640
|
-
getOffsetParent:
|
|
1640
|
+
getOffsetParent: rn,
|
|
1641
1641
|
getElementRects: gl,
|
|
1642
1642
|
getClientRects: rl,
|
|
1643
1643
|
getDimensions: pl,
|
|
@@ -1645,7 +1645,7 @@ const yl = {
|
|
|
1645
1645
|
isElement: ie,
|
|
1646
1646
|
isRTL: bl
|
|
1647
1647
|
};
|
|
1648
|
-
function
|
|
1648
|
+
function cn(e, n) {
|
|
1649
1649
|
return e.x === n.x && e.y === n.y && e.width === n.width && e.height === n.height;
|
|
1650
1650
|
}
|
|
1651
1651
|
function wl(e, n) {
|
|
@@ -1667,19 +1667,19 @@ function wl(e, n) {
|
|
|
1667
1667
|
return;
|
|
1668
1668
|
const h = We(d), y = We(l.clientWidth - (u + v)), m = We(l.clientHeight - (d + p)), b = We(u), w = {
|
|
1669
1669
|
rootMargin: -h + "px " + -y + "px " + -m + "px " + -b + "px",
|
|
1670
|
-
threshold: Z(0,
|
|
1670
|
+
threshold: Z(0, Le(1, r)) || 1
|
|
1671
1671
|
};
|
|
1672
|
-
let
|
|
1672
|
+
let E = !0;
|
|
1673
1673
|
function j(H) {
|
|
1674
|
-
const
|
|
1675
|
-
if (
|
|
1676
|
-
if (!
|
|
1674
|
+
const C = H[0].intersectionRatio;
|
|
1675
|
+
if (C !== r) {
|
|
1676
|
+
if (!E)
|
|
1677
1677
|
return a();
|
|
1678
|
-
|
|
1678
|
+
C ? a(!1, C) : o = setTimeout(() => {
|
|
1679
1679
|
a(!1, 1e-7);
|
|
1680
1680
|
}, 1e3);
|
|
1681
1681
|
}
|
|
1682
|
-
|
|
1682
|
+
C === 1 && !cn(s, e.getBoundingClientRect()) && a(), E = !1;
|
|
1683
1683
|
}
|
|
1684
1684
|
try {
|
|
1685
1685
|
t = new IntersectionObserver(j, {
|
|
@@ -1702,7 +1702,7 @@ function et(e, n, t, o) {
|
|
|
1702
1702
|
elementResize: a = typeof ResizeObserver == "function",
|
|
1703
1703
|
layoutShift: c = typeof IntersectionObserver == "function",
|
|
1704
1704
|
animationFrame: r = !1
|
|
1705
|
-
} = o, s =
|
|
1705
|
+
} = o, s = wt(e), u = l || i ? [...s ? Me(s) : [], ...Me(n)] : [];
|
|
1706
1706
|
u.forEach((b) => {
|
|
1707
1707
|
l && b.addEventListener("scroll", t, {
|
|
1708
1708
|
passive: !0
|
|
@@ -1721,7 +1721,7 @@ function et(e, n, t, o) {
|
|
|
1721
1721
|
r && m();
|
|
1722
1722
|
function m() {
|
|
1723
1723
|
const b = _e(e);
|
|
1724
|
-
y && !
|
|
1724
|
+
y && !cn(y, b) && t(), y = b, h = requestAnimationFrame(m);
|
|
1725
1725
|
}
|
|
1726
1726
|
return t(), () => {
|
|
1727
1727
|
var b;
|
|
@@ -1730,7 +1730,7 @@ function et(e, n, t, o) {
|
|
|
1730
1730
|
}), d?.(), (b = p) == null || b.disconnect(), p = null, r && cancelAnimationFrame(h);
|
|
1731
1731
|
};
|
|
1732
1732
|
}
|
|
1733
|
-
const tt = Xo, nt = qo, ot = Uo, _l = Go,
|
|
1733
|
+
const tt = Xo, nt = qo, ot = Uo, _l = Go, un = (e, n, t) => {
|
|
1734
1734
|
const o = /* @__PURE__ */ new Map(), l = {
|
|
1735
1735
|
platform: yl,
|
|
1736
1736
|
...t
|
|
@@ -1746,55 +1746,55 @@ const tt = Xo, nt = qo, ot = Uo, _l = Go, cn = (e, n, t) => {
|
|
|
1746
1746
|
function xl(e) {
|
|
1747
1747
|
return e != null && typeof e == "object" && "$el" in e;
|
|
1748
1748
|
}
|
|
1749
|
-
function
|
|
1749
|
+
function It(e) {
|
|
1750
1750
|
if (xl(e)) {
|
|
1751
1751
|
const n = e.$el;
|
|
1752
|
-
return
|
|
1752
|
+
return gt(n) && xe(n) === "#comment" ? null : n;
|
|
1753
1753
|
}
|
|
1754
1754
|
return e;
|
|
1755
1755
|
}
|
|
1756
1756
|
function De(e) {
|
|
1757
|
-
return typeof e == "function" ? e() :
|
|
1757
|
+
return typeof e == "function" ? e() : S(e);
|
|
1758
1758
|
}
|
|
1759
|
-
function
|
|
1759
|
+
function dn(e) {
|
|
1760
1760
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1761
1761
|
}
|
|
1762
|
-
function
|
|
1763
|
-
const t =
|
|
1762
|
+
function Ht(e, n) {
|
|
1763
|
+
const t = dn(e);
|
|
1764
1764
|
return Math.round(n * t) / t;
|
|
1765
1765
|
}
|
|
1766
|
-
function
|
|
1766
|
+
function _t(e, n, t) {
|
|
1767
1767
|
t === void 0 && (t = {});
|
|
1768
1768
|
const o = t.whileElementsMounted, l = k(() => {
|
|
1769
|
-
var
|
|
1770
|
-
return (
|
|
1769
|
+
var C;
|
|
1770
|
+
return (C = De(t.open)) != null ? C : !0;
|
|
1771
1771
|
}), i = k(() => De(t.middleware)), a = k(() => {
|
|
1772
|
-
var
|
|
1773
|
-
return (
|
|
1772
|
+
var C;
|
|
1773
|
+
return (C = De(t.placement)) != null ? C : "bottom";
|
|
1774
1774
|
}), c = k(() => {
|
|
1775
|
-
var
|
|
1776
|
-
return (
|
|
1775
|
+
var C;
|
|
1776
|
+
return (C = De(t.strategy)) != null ? C : "absolute";
|
|
1777
1777
|
}), r = k(() => {
|
|
1778
|
-
var
|
|
1779
|
-
return (
|
|
1780
|
-
}), s = k(() =>
|
|
1781
|
-
const
|
|
1778
|
+
var C;
|
|
1779
|
+
return (C = De(t.transform)) != null ? C : !0;
|
|
1780
|
+
}), s = k(() => It(e.value)), u = k(() => It(n.value)), d = $(0), v = $(0), p = $(c.value), h = $(a.value), y = _n({}), m = $(!1), b = k(() => {
|
|
1781
|
+
const C = {
|
|
1782
1782
|
position: p.value,
|
|
1783
1783
|
left: "0",
|
|
1784
1784
|
top: "0"
|
|
1785
1785
|
};
|
|
1786
1786
|
if (!u.value)
|
|
1787
|
-
return
|
|
1788
|
-
const
|
|
1787
|
+
return C;
|
|
1788
|
+
const V = Ht(u.value, d.value), D = Ht(u.value, v.value);
|
|
1789
1789
|
return r.value ? {
|
|
1790
|
-
...
|
|
1791
|
-
transform: "translate(" +
|
|
1792
|
-
...
|
|
1790
|
+
...C,
|
|
1791
|
+
transform: "translate(" + V + "px, " + D + "px)",
|
|
1792
|
+
...dn(u.value) >= 1.5 && {
|
|
1793
1793
|
willChange: "transform"
|
|
1794
1794
|
}
|
|
1795
1795
|
} : {
|
|
1796
1796
|
position: p.value,
|
|
1797
|
-
left:
|
|
1797
|
+
left: V + "px",
|
|
1798
1798
|
top: D + "px"
|
|
1799
1799
|
};
|
|
1800
1800
|
});
|
|
@@ -1802,20 +1802,20 @@ function wt(e, n, t) {
|
|
|
1802
1802
|
function w() {
|
|
1803
1803
|
if (s.value == null || u.value == null)
|
|
1804
1804
|
return;
|
|
1805
|
-
const
|
|
1806
|
-
|
|
1805
|
+
const C = l.value;
|
|
1806
|
+
un(s.value, u.value, {
|
|
1807
1807
|
middleware: i.value,
|
|
1808
1808
|
placement: a.value,
|
|
1809
1809
|
strategy: c.value
|
|
1810
|
-
}).then((
|
|
1811
|
-
d.value =
|
|
1810
|
+
}).then((V) => {
|
|
1811
|
+
d.value = V.x, v.value = V.y, p.value = V.strategy, h.value = V.placement, y.value = V.middlewareData, m.value = C !== !1;
|
|
1812
1812
|
});
|
|
1813
1813
|
}
|
|
1814
|
-
function
|
|
1814
|
+
function E() {
|
|
1815
1815
|
typeof x == "function" && (x(), x = void 0);
|
|
1816
1816
|
}
|
|
1817
1817
|
function j() {
|
|
1818
|
-
if (
|
|
1818
|
+
if (E(), o === void 0) {
|
|
1819
1819
|
w();
|
|
1820
1820
|
return;
|
|
1821
1821
|
}
|
|
@@ -1833,13 +1833,13 @@ function wt(e, n, t) {
|
|
|
1833
1833
|
flush: "sync"
|
|
1834
1834
|
}), K(l, H, {
|
|
1835
1835
|
flush: "sync"
|
|
1836
|
-
}), xn() && kn(
|
|
1837
|
-
x:
|
|
1838
|
-
y:
|
|
1839
|
-
strategy:
|
|
1840
|
-
placement:
|
|
1841
|
-
middlewareData:
|
|
1842
|
-
isPositioned:
|
|
1836
|
+
}), xn() && kn(E), {
|
|
1837
|
+
x: Ce(d),
|
|
1838
|
+
y: Ce(v),
|
|
1839
|
+
strategy: Ce(p),
|
|
1840
|
+
placement: Ce(h),
|
|
1841
|
+
middlewareData: Ce(y),
|
|
1842
|
+
isPositioned: Ce(m),
|
|
1843
1843
|
floatingStyles: b,
|
|
1844
1844
|
update: w
|
|
1845
1845
|
};
|
|
@@ -1851,7 +1851,7 @@ const kl = /* @__PURE__ */ R({
|
|
|
1851
1851
|
icon: {}
|
|
1852
1852
|
},
|
|
1853
1853
|
setup(e) {
|
|
1854
|
-
const n = e, t =
|
|
1854
|
+
const n = e, t = $(!1), o = $(null), l = $(null), i = k(() => n.icon ?? z.DOT_MENU), { floatingStyles: a } = _t(o, l, {
|
|
1855
1855
|
placement: "bottom-end",
|
|
1856
1856
|
middleware: [tt(8), ot(), nt({ padding: 8 })],
|
|
1857
1857
|
whileElementsMounted: et
|
|
@@ -1866,9 +1866,7 @@ const kl = /* @__PURE__ */ R({
|
|
|
1866
1866
|
return (u, d) => {
|
|
1867
1867
|
const v = q("VjButton"), p = q("VjMenu");
|
|
1868
1868
|
return f(), g(Q, null, [
|
|
1869
|
-
_("div", {
|
|
1870
|
-
class: I(["dot-menu-container", u.$attrs.class])
|
|
1871
|
-
}, [
|
|
1869
|
+
_("div", ft({ class: "dot-menu-container" }, u.$attrs), [
|
|
1872
1870
|
T(v, {
|
|
1873
1871
|
ref_key: "buttonRef",
|
|
1874
1872
|
ref: o,
|
|
@@ -1877,13 +1875,13 @@ const kl = /* @__PURE__ */ R({
|
|
|
1877
1875
|
icon: i.value,
|
|
1878
1876
|
onClick: c
|
|
1879
1877
|
}, null, 8, ["icon"]),
|
|
1880
|
-
T(
|
|
1878
|
+
T(Se, { name: "menu" }, {
|
|
1881
1879
|
default: N(() => [
|
|
1882
1880
|
t.value ? (f(), P(p, {
|
|
1883
1881
|
key: 0,
|
|
1884
1882
|
ref_key: "floatingRef",
|
|
1885
1883
|
ref: l,
|
|
1886
|
-
style: Y(
|
|
1884
|
+
style: Y(S(a)),
|
|
1887
1885
|
class: "menu-dropdown",
|
|
1888
1886
|
onClose: r,
|
|
1889
1887
|
onClickCapture: s
|
|
@@ -1896,7 +1894,7 @@ const kl = /* @__PURE__ */ R({
|
|
|
1896
1894
|
]),
|
|
1897
1895
|
_: 3
|
|
1898
1896
|
})
|
|
1899
|
-
],
|
|
1897
|
+
], 16),
|
|
1900
1898
|
(f(), P(je, { to: "body" }, [
|
|
1901
1899
|
t.value ? (f(), g("div", {
|
|
1902
1900
|
key: 0,
|
|
@@ -1907,7 +1905,7 @@ const kl = /* @__PURE__ */ R({
|
|
|
1907
1905
|
], 64);
|
|
1908
1906
|
};
|
|
1909
1907
|
}
|
|
1910
|
-
}),
|
|
1908
|
+
}), Cl = /* @__PURE__ */ A(kl, [["__scopeId", "data-v-d744e938"]]), Vl = /* @__PURE__ */ R({
|
|
1911
1909
|
__name: "link-button",
|
|
1912
1910
|
props: {
|
|
1913
1911
|
label: {},
|
|
@@ -1931,7 +1929,7 @@ const kl = /* @__PURE__ */ R({
|
|
|
1931
1929
|
e.icon ? (f(), P(te, {
|
|
1932
1930
|
key: 0,
|
|
1933
1931
|
icon: e.icon,
|
|
1934
|
-
size:
|
|
1932
|
+
size: S(t)
|
|
1935
1933
|
}, null, 8, ["icon", "size"])) : L("", !0),
|
|
1936
1934
|
Ue(" " + O(e.label), 1)
|
|
1937
1935
|
]),
|
|
@@ -1939,7 +1937,7 @@ const kl = /* @__PURE__ */ R({
|
|
|
1939
1937
|
}, 8, ["to", "class", "disabled"]);
|
|
1940
1938
|
};
|
|
1941
1939
|
}
|
|
1942
|
-
}), El = /* @__PURE__ */ A(
|
|
1940
|
+
}), El = /* @__PURE__ */ A(Vl, [["__scopeId", "data-v-bd3cf2f5"]]), $l = ["disabled"], Sl = { class: "menu-action--icon" }, Ll = /* @__PURE__ */ R({
|
|
1943
1941
|
__name: "menu-action",
|
|
1944
1942
|
props: {
|
|
1945
1943
|
label: {},
|
|
@@ -1952,17 +1950,17 @@ const kl = /* @__PURE__ */ R({
|
|
|
1952
1950
|
class: "menu-action button tertiary",
|
|
1953
1951
|
disabled: e.disabled
|
|
1954
1952
|
}, [
|
|
1955
|
-
_("span",
|
|
1953
|
+
_("span", Sl, [
|
|
1956
1954
|
e.icon ? (f(), P(te, {
|
|
1957
1955
|
key: 0,
|
|
1958
1956
|
icon: e.icon,
|
|
1959
|
-
size:
|
|
1957
|
+
size: S(n)
|
|
1960
1958
|
}, null, 8, ["icon", "size"])) : L("", !0)
|
|
1961
1959
|
]),
|
|
1962
1960
|
_("span", null, O(e.label), 1)
|
|
1963
1961
|
], 8, $l));
|
|
1964
1962
|
}
|
|
1965
|
-
}), Tl = /* @__PURE__ */ A(
|
|
1963
|
+
}), Tl = /* @__PURE__ */ A(Ll, [["__scopeId", "data-v-07850995"]]), Rl = {}, Al = { class: "menu" };
|
|
1966
1964
|
function Ol(e, n) {
|
|
1967
1965
|
return f(), g("div", Al, [
|
|
1968
1966
|
M(e.$slots, "default", {}, void 0, !0)
|
|
@@ -1975,7 +1973,7 @@ const Dl = /* @__PURE__ */ A(Rl, [["render", Ol], ["__scopeId", "data-v-259fec08
|
|
|
1975
1973
|
unmounted(e) {
|
|
1976
1974
|
e.classList.remove("compact");
|
|
1977
1975
|
}
|
|
1978
|
-
},
|
|
1976
|
+
}, fn = [
|
|
1979
1977
|
'input:not([disabled]):not([type="hidden"])',
|
|
1980
1978
|
"select:not([disabled])",
|
|
1981
1979
|
"textarea:not([disabled])",
|
|
@@ -1985,7 +1983,7 @@ const Dl = /* @__PURE__ */ A(Rl, [["render", Ol], ["__scopeId", "data-v-259fec08
|
|
|
1985
1983
|
'[contenteditable="true"]'
|
|
1986
1984
|
].join(", ");
|
|
1987
1985
|
function Ml(e) {
|
|
1988
|
-
const n = e.querySelectorAll(
|
|
1986
|
+
const n = e.querySelectorAll(fn);
|
|
1989
1987
|
for (const t of Array.from(n))
|
|
1990
1988
|
if (t.offsetParent !== null || t.getClientRects().length > 0)
|
|
1991
1989
|
return t;
|
|
@@ -1994,7 +1992,7 @@ function Ml(e) {
|
|
|
1994
1992
|
const jl = {
|
|
1995
1993
|
mounted(e, n) {
|
|
1996
1994
|
const t = typeof n.value == "number" ? n.value : 0, o = () => {
|
|
1997
|
-
if (e.matches(
|
|
1995
|
+
if (e.matches(fn)) {
|
|
1998
1996
|
e.focus();
|
|
1999
1997
|
return;
|
|
2000
1998
|
}
|
|
@@ -2004,7 +2002,7 @@ const jl = {
|
|
|
2004
2002
|
t > 0 ? setTimeout(o, t) : requestAnimationFrame(o);
|
|
2005
2003
|
}
|
|
2006
2004
|
};
|
|
2007
|
-
class
|
|
2005
|
+
class xt {
|
|
2008
2006
|
static _instance = null;
|
|
2009
2007
|
observer = null;
|
|
2010
2008
|
targets = /* @__PURE__ */ new Map();
|
|
@@ -2012,7 +2010,7 @@ class _t {
|
|
|
2012
2010
|
this.init();
|
|
2013
2011
|
}
|
|
2014
2012
|
static get instance() {
|
|
2015
|
-
return this._instance || (this._instance = new
|
|
2013
|
+
return this._instance || (this._instance = new xt()), this._instance;
|
|
2016
2014
|
}
|
|
2017
2015
|
init() {
|
|
2018
2016
|
typeof window < "u" && "ResizeObserver" in window ? this.observer = new ResizeObserver((n) => {
|
|
@@ -2067,29 +2065,29 @@ class _t {
|
|
|
2067
2065
|
o && (t && o.callbacks.delete(t), (!t || o.callbacks.size === 0) && (this.targets.delete(n), this.observer && this.observer.unobserve(n), o.currentClass && n.classList && n.classList.remove(o.currentClass)));
|
|
2068
2066
|
}
|
|
2069
2067
|
}
|
|
2070
|
-
const
|
|
2068
|
+
const Ve = xt.instance, Pl = {
|
|
2071
2069
|
mounted(e, n) {
|
|
2072
2070
|
const t = n.value, o = typeof t == "function" ? t : t?.onResize, l = typeof t == "object" && t?.breakpoints ? t.breakpoints : void 0, i = typeof t == "object" && !!t?.immediate, a = e;
|
|
2073
|
-
a.__resize_cb = o, a.__resize_breakpoints = l, o &&
|
|
2071
|
+
a.__resize_cb = o, a.__resize_breakpoints = l, o && Ve.observe(e, o, { breakpoints: l, immediate: i });
|
|
2074
2072
|
},
|
|
2075
2073
|
updated(e, n) {
|
|
2076
2074
|
const t = e, o = t.__resize_cb, l = t.__resize_breakpoints, i = n.value, a = typeof i == "function" ? i : i?.onResize, c = typeof i == "object" && i?.breakpoints ? i.breakpoints : void 0;
|
|
2077
2075
|
if (o !== a) {
|
|
2078
|
-
o &&
|
|
2076
|
+
o && Ve.unobserve(e, o), a && Ve.observe(e, a, { breakpoints: c, immediate: !!(i && typeof i == "object" && i.immediate) }), t.__resize_cb = a, t.__resize_breakpoints = c;
|
|
2079
2077
|
return;
|
|
2080
2078
|
}
|
|
2081
|
-
JSON.stringify(l || {}) !== JSON.stringify(c || {}) && (o &&
|
|
2079
|
+
JSON.stringify(l || {}) !== JSON.stringify(c || {}) && (o && Ve.unobserve(e, o), a && Ve.observe(e, a, { breakpoints: c, immediate: !0 }), t.__resize_breakpoints = c);
|
|
2082
2080
|
},
|
|
2083
2081
|
unmounted(e) {
|
|
2084
2082
|
const n = e, t = n.__resize_cb;
|
|
2085
|
-
t &&
|
|
2083
|
+
t && Ve.unobserve(e, t), delete n.__resize_cb, delete n.__resize_breakpoints;
|
|
2086
2084
|
}
|
|
2087
2085
|
}, Fl = {}, zl = { class: "spinner" };
|
|
2088
2086
|
function Il(e, n) {
|
|
2089
2087
|
return f(), g("div", zl);
|
|
2090
2088
|
}
|
|
2091
|
-
const
|
|
2092
|
-
function
|
|
2089
|
+
const vn = /* @__PURE__ */ A(Fl, [["render", Il], ["__scopeId", "data-v-b957fb82"]]), Hl = 200, Wl = 120;
|
|
2090
|
+
function Wt(e, n) {
|
|
2093
2091
|
const t = n.querySelector(".vj-loading-inner");
|
|
2094
2092
|
if (!t) return;
|
|
2095
2093
|
const o = e.clientHeight || e.getBoundingClientRect().height;
|
|
@@ -2112,9 +2110,9 @@ const Ul = {
|
|
|
2112
2110
|
const c = document.createElement("div"), r = document.createElement("div");
|
|
2113
2111
|
r.className = "vj-loading-inner", r.appendChild(c);
|
|
2114
2112
|
let s;
|
|
2115
|
-
o && (s = document.createElement("div"), s.className = "vj-loading-text", s.textContent = o, r.appendChild(s)), a.appendChild(r),
|
|
2116
|
-
const u = T(
|
|
2117
|
-
|
|
2113
|
+
o && (s = document.createElement("div"), s.className = "vj-loading-text", s.textContent = o, r.appendChild(s)), a.appendChild(r), Wt(e, a);
|
|
2114
|
+
const u = T(vn);
|
|
2115
|
+
At(u, c), i.spinnerVnode = u, i.spinnerContainer = c, t && (e.setAttribute("aria-busy", "true"), e.style.pointerEvents = "none"), e.appendChild(a);
|
|
2118
2116
|
const d = e;
|
|
2119
2117
|
d.__vjLoading = i;
|
|
2120
2118
|
},
|
|
@@ -2139,14 +2137,14 @@ const Ul = {
|
|
|
2139
2137
|
s.className = "vj-loading-text", s.textContent = a, c.appendChild(s);
|
|
2140
2138
|
}
|
|
2141
2139
|
}
|
|
2142
|
-
|
|
2140
|
+
Wt(e, l);
|
|
2143
2141
|
},
|
|
2144
2142
|
unmounted(e) {
|
|
2145
2143
|
const n = e, t = n.__vjLoading;
|
|
2146
2144
|
if (!t) return;
|
|
2147
2145
|
const { overlay: o, originalPosition: l } = t;
|
|
2148
2146
|
try {
|
|
2149
|
-
t.spinnerContainer &&
|
|
2147
|
+
t.spinnerContainer && At(null, t.spinnerContainer);
|
|
2150
2148
|
} catch {
|
|
2151
2149
|
}
|
|
2152
2150
|
o && o.parentElement === e && e.removeChild(o), l !== void 0 && (e.style.position = l), n.__vjLoading = void 0;
|
|
@@ -2155,18 +2153,18 @@ const Ul = {
|
|
|
2155
2153
|
const n = document.createElement("div");
|
|
2156
2154
|
return n.className = "vj-tooltip", n.setAttribute("role", "tooltip"), n.style.position = "absolute", n.style.top = "0", n.style.left = "0", n.style.pointerEvents = "none", n.style.zIndex = "10000", n.textContent = e, n;
|
|
2157
2155
|
};
|
|
2158
|
-
function
|
|
2156
|
+
function Ut(e) {
|
|
2159
2157
|
if (!e) return { content: "", placement: "top", delay: 200 };
|
|
2160
2158
|
if (typeof e.value == "string") return { content: e.value, placement: "top", delay: 200 };
|
|
2161
2159
|
const t = e.value || {}, o = t.placement ?? "top";
|
|
2162
2160
|
return { content: t.content ?? "", placement: o, delay: t.delay ?? 200 };
|
|
2163
2161
|
}
|
|
2164
|
-
const
|
|
2162
|
+
const mn = {
|
|
2165
2163
|
mounted(e, n) {
|
|
2166
|
-
const t =
|
|
2164
|
+
const t = Ut(n), o = Nl(t.content);
|
|
2167
2165
|
document.body.appendChild(o);
|
|
2168
2166
|
const l = { tooltip: o, cleanup: void 0, showTimer: null, hideTimer: null }, i = async () => {
|
|
2169
|
-
const p = await
|
|
2167
|
+
const p = await un(e, o, {
|
|
2170
2168
|
placement: t.placement,
|
|
2171
2169
|
middleware: [tt(6), ot(), nt({ padding: 8 })]
|
|
2172
2170
|
}), { x: h, y } = p;
|
|
@@ -2202,7 +2200,7 @@ const vn = {
|
|
|
2202
2200
|
updated(e, n) {
|
|
2203
2201
|
const t = e.__vjTooltip;
|
|
2204
2202
|
if (!t) return;
|
|
2205
|
-
const o =
|
|
2203
|
+
const o = Ut(n);
|
|
2206
2204
|
t.tooltip.textContent = o.content;
|
|
2207
2205
|
},
|
|
2208
2206
|
unmounted(e) {
|
|
@@ -2256,14 +2254,14 @@ const vn = {
|
|
|
2256
2254
|
_("div", Jl, [
|
|
2257
2255
|
T(Ge, {
|
|
2258
2256
|
class: "notification__close compact",
|
|
2259
|
-
icon:
|
|
2257
|
+
icon: S(z).CLOSE,
|
|
2260
2258
|
onClick: U(i, ["stop"]),
|
|
2261
2259
|
tertiary: ""
|
|
2262
2260
|
}, null, 8, ["icon"])
|
|
2263
2261
|
])
|
|
2264
2262
|
], 2));
|
|
2265
2263
|
}
|
|
2266
|
-
}),
|
|
2264
|
+
}), kt = /* @__PURE__ */ A(Ql, [["__scopeId", "data-v-f9ee0c98"]]), Zl = { class: "page" }, ea = {
|
|
2267
2265
|
key: 0,
|
|
2268
2266
|
class: "page-header"
|
|
2269
2267
|
}, ta = { class: "header-left" }, na = { class: "header-titles" }, oa = { key: 0 }, la = { class: "header-actions" }, aa = {
|
|
@@ -2291,14 +2289,14 @@ const vn = {
|
|
|
2291
2289
|
setup(e, { emit: n }) {
|
|
2292
2290
|
const t = e, o = k(() => t.flow?.running?.value ?? !1), l = k(() => t.flow?.error?.value ?? null), i = k(() => t.errorMessage ?? (l.value ? String(l.value) : null));
|
|
2293
2291
|
return (a, c) => {
|
|
2294
|
-
const r = q("VjButton"), s =
|
|
2295
|
-
return
|
|
2292
|
+
const r = q("VjButton"), s = Gt("loading");
|
|
2293
|
+
return vt((f(), g("div", Zl, [
|
|
2296
2294
|
e.title || e.subTitle || e.backLabel || a.$slots.headerActions ? (f(), g("header", ea, [
|
|
2297
2295
|
_("div", ta, [
|
|
2298
2296
|
e.backLabel ? (f(), P(r, {
|
|
2299
2297
|
key: 0,
|
|
2300
2298
|
tertiary: "",
|
|
2301
|
-
icon:
|
|
2299
|
+
icon: S(z).BACK,
|
|
2302
2300
|
onClick: c[0] || (c[0] = (u) => a.$emit("back")),
|
|
2303
2301
|
size: "small"
|
|
2304
2302
|
}, null, 8, ["icon"])) : L("", !0),
|
|
@@ -2316,7 +2314,7 @@ const vn = {
|
|
|
2316
2314
|
}, [
|
|
2317
2315
|
i.value ? (f(), g("div", aa, [
|
|
2318
2316
|
M(a.$slots, "error", {}, () => [
|
|
2319
|
-
T(
|
|
2317
|
+
T(kt, {
|
|
2320
2318
|
type: "error",
|
|
2321
2319
|
title: i.value,
|
|
2322
2320
|
message: i.value
|
|
@@ -2373,7 +2371,7 @@ const vn = {
|
|
|
2373
2371
|
T(w, {
|
|
2374
2372
|
tertiary: "",
|
|
2375
2373
|
class: "paginator-btn",
|
|
2376
|
-
icon:
|
|
2374
|
+
icon: S(z).FIRST,
|
|
2377
2375
|
disabled: r.value,
|
|
2378
2376
|
onClick: p,
|
|
2379
2377
|
"aria-label": "First page"
|
|
@@ -2381,7 +2379,7 @@ const vn = {
|
|
|
2381
2379
|
T(w, {
|
|
2382
2380
|
tertiary: "",
|
|
2383
2381
|
class: "paginator-btn",
|
|
2384
|
-
icon:
|
|
2382
|
+
icon: S(z).PREVIOUS,
|
|
2385
2383
|
disabled: r.value,
|
|
2386
2384
|
onClick: h,
|
|
2387
2385
|
"aria-label": "Previous page"
|
|
@@ -2396,7 +2394,7 @@ const vn = {
|
|
|
2396
2394
|
T(w, {
|
|
2397
2395
|
tertiary: "",
|
|
2398
2396
|
class: "paginator-btn",
|
|
2399
|
-
icon:
|
|
2397
|
+
icon: S(z).NEXT,
|
|
2400
2398
|
disabled: s.value,
|
|
2401
2399
|
onClick: y,
|
|
2402
2400
|
"aria-label": "Next page"
|
|
@@ -2404,7 +2402,7 @@ const vn = {
|
|
|
2404
2402
|
T(w, {
|
|
2405
2403
|
tertiary: "",
|
|
2406
2404
|
class: "paginator-btn",
|
|
2407
|
-
icon:
|
|
2405
|
+
icon: S(z).LAST,
|
|
2408
2406
|
disabled: s.value,
|
|
2409
2407
|
onClick: m,
|
|
2410
2408
|
"aria-label": "Last page"
|
|
@@ -2431,8 +2429,8 @@ const vn = {
|
|
|
2431
2429
|
const c = q("VjIcon");
|
|
2432
2430
|
return f(), g("div", pa, [
|
|
2433
2431
|
T(c, {
|
|
2434
|
-
icon:
|
|
2435
|
-
size:
|
|
2432
|
+
icon: S(z).SEARCH,
|
|
2433
|
+
size: S(X).S
|
|
2436
2434
|
}, null, 8, ["icon", "size"]),
|
|
2437
2435
|
_("input", {
|
|
2438
2436
|
value: n.value,
|
|
@@ -2442,8 +2440,8 @@ const vn = {
|
|
|
2442
2440
|
}, null, 40, ha),
|
|
2443
2441
|
T(c, {
|
|
2444
2442
|
class: I(["reset", { invisible: l.value }]),
|
|
2445
|
-
icon:
|
|
2446
|
-
size:
|
|
2443
|
+
icon: S(z).CLOSE,
|
|
2444
|
+
size: S(X).S,
|
|
2447
2445
|
onClick: o
|
|
2448
2446
|
}, null, 8, ["class", "icon", "size"])
|
|
2449
2447
|
]);
|
|
@@ -2469,17 +2467,17 @@ const vn = {
|
|
|
2469
2467
|
label: {}
|
|
2470
2468
|
},
|
|
2471
2469
|
setup(e) {
|
|
2472
|
-
const n = e, t =
|
|
2470
|
+
const n = e, t = mt("tabView"), o = k(() => t?.activeTab() === n.name);
|
|
2473
2471
|
return Re(() => {
|
|
2474
2472
|
t?.registerTab(n.name, n.label);
|
|
2475
2473
|
}), (l, i) => o.value ? (f(), g("div", _a, [
|
|
2476
2474
|
M(l.$slots, "default")
|
|
2477
2475
|
])) : L("", !0);
|
|
2478
2476
|
}
|
|
2479
|
-
}), ka = { class: "tab-view" },
|
|
2477
|
+
}), ka = { class: "tab-view" }, Ca = {
|
|
2480
2478
|
ref: "headerRef",
|
|
2481
2479
|
class: "tab-view-header"
|
|
2482
|
-
},
|
|
2480
|
+
}, Va = ["onClick"], Ea = { class: "tab-view-content" }, $a = /* @__PURE__ */ R({
|
|
2483
2481
|
__name: "tab-view",
|
|
2484
2482
|
props: {
|
|
2485
2483
|
modelValue: {},
|
|
@@ -2487,7 +2485,7 @@ const vn = {
|
|
|
2487
2485
|
},
|
|
2488
2486
|
emits: ["update:modelValue"],
|
|
2489
2487
|
setup(e) {
|
|
2490
|
-
const n = ne(e, "modelValue"), t =
|
|
2488
|
+
const n = ne(e, "modelValue"), t = $([]), o = $([]), l = $({
|
|
2491
2489
|
width: "0px",
|
|
2492
2490
|
transform: "translateX(0px)"
|
|
2493
2491
|
}), i = (s, u) => {
|
|
@@ -2512,18 +2510,18 @@ const vn = {
|
|
|
2512
2510
|
he(() => {
|
|
2513
2511
|
a();
|
|
2514
2512
|
});
|
|
2515
|
-
}),
|
|
2513
|
+
}), qt("tabView", {
|
|
2516
2514
|
activeTab: () => n.value,
|
|
2517
2515
|
registerTab: c
|
|
2518
2516
|
}), (s, u) => (f(), g("div", ka, [
|
|
2519
|
-
_("div",
|
|
2517
|
+
_("div", Ca, [
|
|
2520
2518
|
(f(!0), g(Q, null, pe(t.value, (d, v) => (f(), g("div", {
|
|
2521
2519
|
key: d.name,
|
|
2522
2520
|
ref_for: !0,
|
|
2523
2521
|
ref: (p) => i(p, v),
|
|
2524
2522
|
class: I(["tab-button", { active: n.value === d.name }]),
|
|
2525
2523
|
onClick: (p) => r(d.name)
|
|
2526
|
-
}, O(d.label), 11,
|
|
2524
|
+
}, O(d.label), 11, Va))), 128)),
|
|
2527
2525
|
u[0] || (u[0] = _("div", { class: "tab-line" }, null, -1)),
|
|
2528
2526
|
_("div", {
|
|
2529
2527
|
class: "tab-indicator",
|
|
@@ -2535,7 +2533,7 @@ const vn = {
|
|
|
2535
2533
|
])
|
|
2536
2534
|
]));
|
|
2537
2535
|
}
|
|
2538
|
-
}),
|
|
2536
|
+
}), Sa = /* @__PURE__ */ A($a, [["__scopeId", "data-v-3d4ee454"]]), La = ["width", "height", "role", "tabindex", "aria-label", "onKeydown"], Ta = ["cx", "cy", "r", "stroke-width"], Ra = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Aa = ["transform"], Oa = ["x", "y", "width", "height", "rx"], Da = ["x", "y", "width", "height", "rx"], Ba = /* @__PURE__ */ R({
|
|
2539
2537
|
__name: "timer",
|
|
2540
2538
|
props: {
|
|
2541
2539
|
duration: { default: 5e3 },
|
|
@@ -2552,30 +2550,30 @@ const vn = {
|
|
|
2552
2550
|
l: { size: 40, strokeWidth: 2, innerStrokeWidth: 6 },
|
|
2553
2551
|
xl: { size: 64, strokeWidth: 2, innerStrokeWidth: 8 },
|
|
2554
2552
|
xxl: { size: 92, strokeWidth: 2, innerStrokeWidth: 10 }
|
|
2555
|
-
}, o = e, l = n, i = k(() => t[o.timerSize].size), a = k(() => t[o.timerSize].strokeWidth), c = k(() => t[o.timerSize].innerStrokeWidth), r =
|
|
2553
|
+
}, o = e, l = n, i = k(() => t[o.timerSize].size), a = k(() => t[o.timerSize].strokeWidth), c = k(() => t[o.timerSize].innerStrokeWidth), r = $(!1), s = $(100), u = $(!1), d = $(o.paused);
|
|
2556
2554
|
let v = null, p = null, h = 0;
|
|
2557
2555
|
const y = k(() => (i.value - Math.max(a.value, c.value)) / 2), m = k(() => 2 * Math.PI * y.value), b = k(() => m.value * (1 - s.value / 100));
|
|
2558
2556
|
K(
|
|
2559
2557
|
() => o.paused,
|
|
2560
2558
|
(F) => {
|
|
2561
|
-
d.value = F, F ?
|
|
2559
|
+
d.value = F, F ? C() : V();
|
|
2562
2560
|
}
|
|
2563
2561
|
), Re(() => {
|
|
2564
2562
|
w();
|
|
2565
|
-
}),
|
|
2563
|
+
}), Cn(() => {
|
|
2566
2564
|
D();
|
|
2567
2565
|
});
|
|
2568
2566
|
function x() {
|
|
2569
2567
|
o.pausable && (d.value = !d.value, l("update:paused", d.value));
|
|
2570
2568
|
}
|
|
2571
2569
|
function w() {
|
|
2572
|
-
d.value || (p = performance.now() - h,
|
|
2570
|
+
d.value || (p = performance.now() - h, E());
|
|
2573
2571
|
}
|
|
2574
|
-
function
|
|
2572
|
+
function E() {
|
|
2575
2573
|
if (!p || d.value) return;
|
|
2576
2574
|
h = performance.now() - p;
|
|
2577
2575
|
const W = Math.max(0, o.duration - h), oe = W / o.duration * 100;
|
|
2578
|
-
s.value = oe, W > 0 ? v = requestAnimationFrame(
|
|
2576
|
+
s.value = oe, W > 0 ? v = requestAnimationFrame(E) : j();
|
|
2579
2577
|
}
|
|
2580
2578
|
async function j() {
|
|
2581
2579
|
if (!o.action) {
|
|
@@ -2598,10 +2596,10 @@ const vn = {
|
|
|
2598
2596
|
});
|
|
2599
2597
|
});
|
|
2600
2598
|
}
|
|
2601
|
-
function
|
|
2599
|
+
function C() {
|
|
2602
2600
|
v !== null && (cancelAnimationFrame(v), v = null);
|
|
2603
2601
|
}
|
|
2604
|
-
function
|
|
2602
|
+
function V() {
|
|
2605
2603
|
v === null && !r.value && w();
|
|
2606
2604
|
}
|
|
2607
2605
|
function D() {
|
|
@@ -2668,7 +2666,7 @@ const vn = {
|
|
|
2668
2666
|
class: "vj-timer__pause-bar"
|
|
2669
2667
|
}, null, 8, Da)
|
|
2670
2668
|
], 8, Aa)) : L("", !0)
|
|
2671
|
-
], 42,
|
|
2669
|
+
], 42, La));
|
|
2672
2670
|
}
|
|
2673
2671
|
}), Ma = /* @__PURE__ */ A(Ba, [["__scopeId", "data-v-49a33853"]]), ja = ["onKeydown"], Pa = /* @__PURE__ */ R({
|
|
2674
2672
|
__name: "editable-label",
|
|
@@ -2678,7 +2676,7 @@ const vn = {
|
|
|
2678
2676
|
},
|
|
2679
2677
|
emits: ["update:modelValue", "edit"],
|
|
2680
2678
|
setup(e, { emit: n }) {
|
|
2681
|
-
const t = e, o = n, l = k(() => t.modelValue ?? ""), i =
|
|
2679
|
+
const t = e, o = n, l = k(() => t.modelValue ?? ""), i = $(l.value), a = $(!1), c = $(!1), r = $(null), s = k(() => !!t.showIcon);
|
|
2682
2680
|
K(l, (p) => {
|
|
2683
2681
|
i.value = p;
|
|
2684
2682
|
});
|
|
@@ -2696,7 +2694,7 @@ const vn = {
|
|
|
2696
2694
|
onMouseenter: h[1] || (h[1] = (y) => c.value = !0),
|
|
2697
2695
|
onMouseleave: h[2] || (h[2] = (y) => c.value = !1)
|
|
2698
2696
|
}, [
|
|
2699
|
-
a.value ?
|
|
2697
|
+
a.value ? vt((f(), g("input", {
|
|
2700
2698
|
key: 1,
|
|
2701
2699
|
ref_key: "inputRef",
|
|
2702
2700
|
ref: r,
|
|
@@ -2708,7 +2706,7 @@ const vn = {
|
|
|
2708
2706
|
],
|
|
2709
2707
|
onBlur: d
|
|
2710
2708
|
}, null, 40, ja)), [
|
|
2711
|
-
[
|
|
2709
|
+
[Vn, i.value]
|
|
2712
2710
|
]) : (f(), g(Q, { key: 0 }, [
|
|
2713
2711
|
_("span", {
|
|
2714
2712
|
class: "label-text",
|
|
@@ -2721,7 +2719,7 @@ const vn = {
|
|
|
2721
2719
|
onClick: U(u, ["stop"])
|
|
2722
2720
|
}, [
|
|
2723
2721
|
T(te, {
|
|
2724
|
-
icon:
|
|
2722
|
+
icon: S(z).EDIT
|
|
2725
2723
|
}, null, 8, ["icon"])
|
|
2726
2724
|
])) : L("", !0)
|
|
2727
2725
|
], 64))
|
|
@@ -2804,7 +2802,7 @@ const vn = {
|
|
|
2804
2802
|
}),
|
|
2805
2803
|
emits: /* @__PURE__ */ G(["update:modelValue", "file-added", "file-removed"], ["update:modelValue"]),
|
|
2806
2804
|
setup(e, { emit: n }) {
|
|
2807
|
-
const t = e, o = n, l = ne(e, "modelValue"), i =
|
|
2805
|
+
const t = e, o = n, l = ne(e, "modelValue"), i = $(), a = $(!1), c = $(!1), r = (y) => {
|
|
2808
2806
|
const m = y.target, b = Array.from(m.files || []);
|
|
2809
2807
|
v(b), i.value && (i.value.value = "");
|
|
2810
2808
|
}, s = () => {
|
|
@@ -2853,8 +2851,8 @@ const vn = {
|
|
|
2853
2851
|
onDrop: U(d, ["prevent"])
|
|
2854
2852
|
}, [
|
|
2855
2853
|
T(te, {
|
|
2856
|
-
icon:
|
|
2857
|
-
size:
|
|
2854
|
+
icon: S(z).UPLOAD,
|
|
2855
|
+
size: S(X).L,
|
|
2858
2856
|
class: "upload-icon"
|
|
2859
2857
|
}, null, 8, ["icon", "size"]),
|
|
2860
2858
|
_("div", Na, [
|
|
@@ -2875,8 +2873,8 @@ const vn = {
|
|
|
2875
2873
|
}, [
|
|
2876
2874
|
_("div", Ga, [
|
|
2877
2875
|
T(te, {
|
|
2878
|
-
icon:
|
|
2879
|
-
size:
|
|
2876
|
+
icon: S(z).ATTACHMENT,
|
|
2877
|
+
size: S(X).S
|
|
2880
2878
|
}, null, 8, ["icon", "size"]),
|
|
2881
2879
|
_("div", Ya, [
|
|
2882
2880
|
_("p", Ja, O(b.name), 1),
|
|
@@ -2885,8 +2883,8 @@ const vn = {
|
|
|
2885
2883
|
]),
|
|
2886
2884
|
e.disabled ? L("", !0) : (f(), P(te, {
|
|
2887
2885
|
key: 0,
|
|
2888
|
-
icon:
|
|
2889
|
-
size:
|
|
2886
|
+
icon: S(z).CLOSE,
|
|
2887
|
+
size: S(X).S,
|
|
2890
2888
|
class: "remove-icon",
|
|
2891
2889
|
onClick: (w) => p(x)
|
|
2892
2890
|
}, null, 8, ["icon", "size", "onClick"]))
|
|
@@ -2894,7 +2892,7 @@ const vn = {
|
|
|
2894
2892
|
])) : L("", !0)
|
|
2895
2893
|
], 2));
|
|
2896
2894
|
}
|
|
2897
|
-
}), ei = /* @__PURE__ */ A(Za, [["__scopeId", "data-v-2f7be5e5"]]),
|
|
2895
|
+
}), ei = /* @__PURE__ */ A(Za, [["__scopeId", "data-v-2f7be5e5"]]), pn = {
|
|
2898
2896
|
form: {
|
|
2899
2897
|
labelPosition: "inline",
|
|
2900
2898
|
appearance: "bordered"
|
|
@@ -2906,15 +2904,15 @@ function gs(e) {
|
|
|
2906
2904
|
...qe,
|
|
2907
2905
|
...e,
|
|
2908
2906
|
form: {
|
|
2909
|
-
...
|
|
2907
|
+
...pn.form,
|
|
2910
2908
|
...e.form
|
|
2911
2909
|
}
|
|
2912
2910
|
};
|
|
2913
2911
|
}
|
|
2914
|
-
function
|
|
2912
|
+
function Nt() {
|
|
2915
2913
|
return {
|
|
2916
2914
|
form: {
|
|
2917
|
-
...
|
|
2915
|
+
...pn.form,
|
|
2918
2916
|
...qe.form
|
|
2919
2917
|
}
|
|
2920
2918
|
};
|
|
@@ -2931,7 +2929,7 @@ const ti = ["data-colspan", "data-newline"], ni = ["for"], oi = { class: "form-f
|
|
|
2931
2929
|
type: "button",
|
|
2932
2930
|
"aria-label": "Hilfe"
|
|
2933
2931
|
}, si = /* @__PURE__ */ R({
|
|
2934
|
-
directives: { tooltip:
|
|
2932
|
+
directives: { tooltip: mn },
|
|
2935
2933
|
__name: "form-field",
|
|
2936
2934
|
props: {
|
|
2937
2935
|
modelValue: {},
|
|
@@ -2949,7 +2947,7 @@ const ti = ["data-colspan", "data-newline"], ni = ["for"], oi = { class: "form-f
|
|
|
2949
2947
|
},
|
|
2950
2948
|
emits: ["update:modelValue", "focus", "blur"],
|
|
2951
2949
|
setup(e, { emit: n }) {
|
|
2952
|
-
const t = e, o = n, l =
|
|
2950
|
+
const t = e, o = n, l = $(t.modelValue), i = $(!1), a = k(() => `form-field-${t.id ?? Math.random().toString(36).slice(2)}`), c = k(() => t.labelPosition ?? Nt().form.labelPosition), r = k(() => t.appearance ?? Nt().form.appearance);
|
|
2953
2951
|
K(
|
|
2954
2952
|
() => t.modelValue,
|
|
2955
2953
|
(h) => l.value = h
|
|
@@ -2971,7 +2969,7 @@ const ti = ["data-colspan", "data-newline"], ni = ["for"], oi = { class: "form-f
|
|
|
2971
2969
|
i.value = !1, o("blur", h);
|
|
2972
2970
|
}
|
|
2973
2971
|
return (h, y) => {
|
|
2974
|
-
const m = q("VjIcon"), b =
|
|
2972
|
+
const m = q("VjIcon"), b = Gt("tooltip");
|
|
2975
2973
|
return f(), g("div", {
|
|
2976
2974
|
class: I([
|
|
2977
2975
|
"form-field",
|
|
@@ -3007,9 +3005,9 @@ const ti = ["data-colspan", "data-newline"], ni = ["for"], oi = { class: "form-f
|
|
|
3007
3005
|
}, O(e.label), 11, li)) : L("", !0)
|
|
3008
3006
|
]),
|
|
3009
3007
|
e.error ? (f(), g("div", ai, O(e.error), 1)) : L("", !0),
|
|
3010
|
-
t.helpText ?
|
|
3008
|
+
t.helpText ? vt((f(), g("button", ii, [
|
|
3011
3009
|
T(m, {
|
|
3012
|
-
icon:
|
|
3010
|
+
icon: S(z).HELP
|
|
3013
3011
|
}, null, 8, ["icon"])
|
|
3014
3012
|
])), [
|
|
3015
3013
|
[b, t.helpText]
|
|
@@ -3024,7 +3022,7 @@ const ti = ["data-colspan", "data-newline"], ni = ["for"], oi = { class: "form-f
|
|
|
3024
3022
|
gap: { type: String, default: "0.75rem" }
|
|
3025
3023
|
},
|
|
3026
3024
|
setup(e) {
|
|
3027
|
-
const n = e, t =
|
|
3025
|
+
const n = e, t = $(null);
|
|
3028
3026
|
let o = null;
|
|
3029
3027
|
function l() {
|
|
3030
3028
|
if (!t.value) return;
|
|
@@ -3076,36 +3074,66 @@ const ti = ["data-colspan", "data-newline"], ni = ["for"], oi = { class: "form-f
|
|
|
3076
3074
|
inheritAttrs: !1,
|
|
3077
3075
|
__name: "select",
|
|
3078
3076
|
props: /* @__PURE__ */ G({
|
|
3079
|
-
options: {
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3077
|
+
options: {
|
|
3078
|
+
type: Array,
|
|
3079
|
+
required: !0
|
|
3080
|
+
},
|
|
3081
|
+
placeholder: {
|
|
3082
|
+
type: String,
|
|
3083
|
+
default: void 0
|
|
3084
|
+
},
|
|
3085
|
+
disabled: {
|
|
3086
|
+
type: Boolean,
|
|
3087
|
+
default: !1
|
|
3088
|
+
},
|
|
3089
|
+
optionLabel: {
|
|
3090
|
+
type: [String, Number, Symbol, Function],
|
|
3091
|
+
default: void 0
|
|
3092
|
+
},
|
|
3093
|
+
id: {
|
|
3094
|
+
type: String,
|
|
3095
|
+
default: void 0
|
|
3096
|
+
},
|
|
3097
|
+
optionValue: {
|
|
3098
|
+
type: [String, Number, Symbol, Function],
|
|
3099
|
+
default: void 0
|
|
3100
|
+
},
|
|
3101
|
+
icon: {
|
|
3102
|
+
type: String,
|
|
3103
|
+
default: void 0
|
|
3104
|
+
},
|
|
3105
|
+
clearable: {
|
|
3106
|
+
type: Boolean,
|
|
3107
|
+
default: !1
|
|
3108
|
+
}
|
|
3087
3109
|
}, {
|
|
3088
3110
|
modelValue: {},
|
|
3089
3111
|
modelModifiers: {}
|
|
3090
3112
|
}),
|
|
3091
3113
|
emits: ["update:modelValue"],
|
|
3092
3114
|
setup(e, { expose: n }) {
|
|
3093
|
-
const t = e, o = ne(e, "modelValue"), l =
|
|
3115
|
+
const t = e, o = ne(e, "modelValue"), l = $(!1), i = $(-1), a = $(null), c = $(null), r = $(null), { floatingStyles: s } = _t(c, r, {
|
|
3094
3116
|
placement: "bottom-start",
|
|
3095
3117
|
middleware: [
|
|
3096
3118
|
tt(4),
|
|
3097
3119
|
ot(),
|
|
3098
3120
|
nt({ padding: 8 }),
|
|
3099
3121
|
_l({
|
|
3100
|
-
apply({ rects: w, elements:
|
|
3101
|
-
Object.assign(
|
|
3122
|
+
apply({ rects: w, elements: E }) {
|
|
3123
|
+
Object.assign(E.floating.style, {
|
|
3102
3124
|
minWidth: `${w.reference.width}px`
|
|
3103
3125
|
});
|
|
3104
3126
|
}
|
|
3105
3127
|
})
|
|
3106
3128
|
],
|
|
3107
3129
|
whileElementsMounted: et
|
|
3108
|
-
}), u = (w) =>
|
|
3130
|
+
}), u = (w) => {
|
|
3131
|
+
const E = t.optionLabel;
|
|
3132
|
+
return E ? typeof E == "function" ? E(w) : String(w[E]) : String(w);
|
|
3133
|
+
}, d = (w) => {
|
|
3134
|
+
const E = t.optionValue;
|
|
3135
|
+
return E ? typeof E == "function" ? E(w) : w[E] : w;
|
|
3136
|
+
}, v = k(() => t.options.find((w) => d(w) === o.value)), p = (w) => d(w) === o.value, h = () => {
|
|
3109
3137
|
t.disabled || (l.value = !l.value);
|
|
3110
3138
|
}, y = () => {
|
|
3111
3139
|
l.value = !1, i.value = -1;
|
|
@@ -3121,18 +3149,18 @@ const ti = ["data-colspan", "data-newline"], ni = ["for"], oi = { class: "form-f
|
|
|
3121
3149
|
}), Ae(() => {
|
|
3122
3150
|
document.removeEventListener("click", x);
|
|
3123
3151
|
}), K(l, (w) => {
|
|
3124
|
-
w && v.value && (i.value = t.options.findIndex((
|
|
3152
|
+
w && v.value && (i.value = t.options.findIndex((E) => p(E)));
|
|
3125
3153
|
}), n({
|
|
3126
3154
|
focus: () => c.value?.focus(),
|
|
3127
3155
|
blur: () => c.value?.blur()
|
|
3128
|
-
}), (w,
|
|
3156
|
+
}), (w, E) => {
|
|
3129
3157
|
const j = q("VjIcon");
|
|
3130
3158
|
return f(), g(Q, null, [
|
|
3131
|
-
_("div", {
|
|
3159
|
+
_("div", ft({
|
|
3132
3160
|
ref_key: "selectRef",
|
|
3133
3161
|
ref: a,
|
|
3134
|
-
class:
|
|
3135
|
-
}, [
|
|
3162
|
+
class: "select"
|
|
3163
|
+
}, w.$attrs), [
|
|
3136
3164
|
_("button", {
|
|
3137
3165
|
ref_key: "buttonRef",
|
|
3138
3166
|
ref: c,
|
|
@@ -3145,7 +3173,7 @@ const ti = ["data-colspan", "data-newline"], ni = ["for"], oi = { class: "form-f
|
|
|
3145
3173
|
t.icon ? (f(), P(j, {
|
|
3146
3174
|
key: 0,
|
|
3147
3175
|
icon: t.icon,
|
|
3148
|
-
size:
|
|
3176
|
+
size: S(X).S,
|
|
3149
3177
|
class: "select-icon-left"
|
|
3150
3178
|
}, null, 8, ["icon", "size"])) : L("", !0),
|
|
3151
3179
|
_("span", mi, [
|
|
@@ -3158,34 +3186,34 @@ const ti = ["data-colspan", "data-newline"], ni = ["for"], oi = { class: "form-f
|
|
|
3158
3186
|
]),
|
|
3159
3187
|
t.clearable && v.value && !e.disabled ? (f(), P(j, {
|
|
3160
3188
|
key: 1,
|
|
3161
|
-
icon:
|
|
3162
|
-
size:
|
|
3189
|
+
icon: S(z).CLOSE,
|
|
3190
|
+
size: S(X).S,
|
|
3163
3191
|
class: "select-clear-icon",
|
|
3164
3192
|
onClick: U(b, ["stop"])
|
|
3165
3193
|
}, null, 8, ["icon", "size"])) : L("", !0),
|
|
3166
3194
|
T(j, {
|
|
3167
|
-
icon:
|
|
3168
|
-
size:
|
|
3195
|
+
icon: S(z).CHEVRON_DOWN,
|
|
3196
|
+
size: S(X).S,
|
|
3169
3197
|
class: I(["select-icon-right", { open: l.value }])
|
|
3170
3198
|
}, null, 8, ["icon", "size", "class"])
|
|
3171
3199
|
], 8, vi)
|
|
3172
|
-
],
|
|
3200
|
+
], 16),
|
|
3173
3201
|
(f(), P(je, { to: "body" }, [
|
|
3174
|
-
T(
|
|
3202
|
+
T(Se, { name: "dropdown" }, {
|
|
3175
3203
|
default: N(() => [
|
|
3176
3204
|
l.value ? (f(), g("div", {
|
|
3177
3205
|
key: 0,
|
|
3178
3206
|
ref_key: "floatingRef",
|
|
3179
3207
|
ref: r,
|
|
3180
|
-
style: Y(
|
|
3208
|
+
style: Y(S(s)),
|
|
3181
3209
|
class: "select-dropdown"
|
|
3182
3210
|
}, [
|
|
3183
3211
|
_("div", hi, [
|
|
3184
|
-
(f(!0), g(Q, null, pe(e.options, (H,
|
|
3212
|
+
(f(!0), g(Q, null, pe(e.options, (H, C) => (f(), g("div", {
|
|
3185
3213
|
key: String(d(H)),
|
|
3186
|
-
class: I(["select-option", { selected: p(H), highlighted: i.value ===
|
|
3187
|
-
onClick: (
|
|
3188
|
-
onMouseenter: (
|
|
3214
|
+
class: I(["select-option", { selected: p(H), highlighted: i.value === C }]),
|
|
3215
|
+
onClick: (V) => m(H),
|
|
3216
|
+
onMouseenter: (V) => i.value = C
|
|
3189
3217
|
}, [
|
|
3190
3218
|
M(w.$slots, "option", {
|
|
3191
3219
|
option: H,
|
|
@@ -3208,7 +3236,7 @@ const ti = ["data-colspan", "data-newline"], ni = ["for"], oi = { class: "form-f
|
|
|
3208
3236
|
], 64);
|
|
3209
3237
|
};
|
|
3210
3238
|
}
|
|
3211
|
-
}),
|
|
3239
|
+
}), hn = /* @__PURE__ */ A(bi, [["__scopeId", "data-v-95354f61"]]), yi = /* @__PURE__ */ R({
|
|
3212
3240
|
__name: "input-select",
|
|
3213
3241
|
props: {
|
|
3214
3242
|
modelValue: {},
|
|
@@ -3227,7 +3255,7 @@ const ti = ["data-colspan", "data-newline"], ni = ["for"], oi = { class: "form-f
|
|
|
3227
3255
|
},
|
|
3228
3256
|
emits: ["update:modelValue", "input", "focus", "blur"],
|
|
3229
3257
|
setup(e, { emit: n }) {
|
|
3230
|
-
const t = e, o = n, l =
|
|
3258
|
+
const t = e, o = n, l = $(t.modelValue);
|
|
3231
3259
|
K(
|
|
3232
3260
|
() => t.modelValue,
|
|
3233
3261
|
(a) => {
|
|
@@ -3253,7 +3281,7 @@ const ti = ["data-colspan", "data-newline"], ni = ["for"], oi = { class: "form-f
|
|
|
3253
3281
|
appearance: t.appearance
|
|
3254
3282
|
}, {
|
|
3255
3283
|
control: N(({ id: r, disabled: s, placeholder: u }) => [
|
|
3256
|
-
T(
|
|
3284
|
+
T(hn, {
|
|
3257
3285
|
id: r,
|
|
3258
3286
|
modelValue: l.value,
|
|
3259
3287
|
"onUpdate:modelValue": [
|
|
@@ -3297,53 +3325,53 @@ const ti = ["data-colspan", "data-newline"], ni = ["for"], oi = { class: "form-f
|
|
|
3297
3325
|
},
|
|
3298
3326
|
emits: ["update:modelValue", "change"],
|
|
3299
3327
|
setup(e, { emit: n }) {
|
|
3300
|
-
const t = e, o = n, l =
|
|
3328
|
+
const t = e, o = n, l = $(null), i = $(!1), a = $(!1), c = (C, V, D) => Math.min(Math.max(C, V), D), r = $(
|
|
3301
3329
|
t.range ? Array.isArray(t.modelValue) ? t.modelValue[0] : t.min : typeof t.modelValue == "number" ? t.modelValue : t.min
|
|
3302
|
-
), s =
|
|
3330
|
+
), s = $(t.range && Array.isArray(t.modelValue) ? t.modelValue[1] : t.max);
|
|
3303
3331
|
K(
|
|
3304
3332
|
() => t.modelValue,
|
|
3305
|
-
(
|
|
3306
|
-
t.range ? Array.isArray(
|
|
3333
|
+
(C) => {
|
|
3334
|
+
t.range ? Array.isArray(C) && (r.value = c(C[0], t.min, t.max), s.value = c(C[1], t.min, t.max)) : typeof C == "number" && (r.value = c(C, t.min, t.max));
|
|
3307
3335
|
},
|
|
3308
3336
|
{ immediate: !0 }
|
|
3309
3337
|
);
|
|
3310
|
-
const u = (
|
|
3338
|
+
const u = (C) => (C - t.min) / (t.max - t.min) * 100, d = k(() => ({ left: `${u(r.value)}%` })), v = k(() => ({ left: `${u(s.value)}%` })), p = k(() => {
|
|
3311
3339
|
if (!t.range) return { width: `${u(r.value)}%`, left: "0%" };
|
|
3312
|
-
const
|
|
3313
|
-
return { left: `${
|
|
3340
|
+
const C = u(r.value), V = u(s.value);
|
|
3341
|
+
return { left: `${C}%`, width: `${Math.max(0, V - C)}%` };
|
|
3314
3342
|
});
|
|
3315
3343
|
let h = null, y = null;
|
|
3316
|
-
const m = async (
|
|
3317
|
-
h =
|
|
3344
|
+
const m = async (C, V) => {
|
|
3345
|
+
h = C, y = V.pointerId, C === "low" ? i.value = !0 : a.value = !0;
|
|
3318
3346
|
try {
|
|
3319
|
-
|
|
3347
|
+
V.target.setPointerCapture(V.pointerId);
|
|
3320
3348
|
} catch {
|
|
3321
3349
|
}
|
|
3322
3350
|
window.addEventListener("pointermove", x), window.addEventListener("pointerup", b);
|
|
3323
|
-
}, b = (
|
|
3324
|
-
if (y != null &&
|
|
3351
|
+
}, b = (C) => {
|
|
3352
|
+
if (y != null && C)
|
|
3325
3353
|
try {
|
|
3326
|
-
|
|
3354
|
+
C.target.releasePointerCapture(C.pointerId);
|
|
3327
3355
|
} catch {
|
|
3328
3356
|
}
|
|
3329
3357
|
h = null, y = null, i.value = !1, a.value = !1, window.removeEventListener("pointermove", x), window.removeEventListener("pointerup", b), j();
|
|
3330
|
-
}, x = (
|
|
3358
|
+
}, x = (C) => {
|
|
3331
3359
|
if (!h || !l.value) return;
|
|
3332
|
-
const
|
|
3360
|
+
const V = l.value.getBoundingClientRect(), D = c(C.clientX - V.left, 0, V.width), F = t.min + D / V.width * (t.max - t.min), W = Math.round(F / t.step) * t.step;
|
|
3333
3361
|
h === "low" ? t.range ? r.value = Math.min(W, s.value) : r.value = c(W, t.min, t.max) : h === "high" && (s.value = Math.max(W, r.value));
|
|
3334
|
-
}, w = (
|
|
3362
|
+
}, w = (C) => {
|
|
3335
3363
|
if (!l.value) return;
|
|
3336
|
-
const
|
|
3364
|
+
const V = l.value.getBoundingClientRect(), D = c(C.clientX - V.left, 0, V.width), F = t.min + D / V.width * (t.max - t.min), W = Math.round(F / t.step) * t.step;
|
|
3337
3365
|
if (t.range) {
|
|
3338
3366
|
const oe = Math.abs(W - r.value), fe = Math.abs(W - s.value);
|
|
3339
3367
|
oe <= fe ? r.value = Math.min(W, s.value) : s.value = Math.max(W, r.value);
|
|
3340
3368
|
} else
|
|
3341
3369
|
r.value = c(W, t.min, t.max);
|
|
3342
3370
|
j();
|
|
3343
|
-
},
|
|
3344
|
-
const D = t.step, F =
|
|
3371
|
+
}, E = (C, V) => {
|
|
3372
|
+
const D = t.step, F = V.key === "ArrowLeft" || V.key === "ArrowDown" ? -1 : V.key === "ArrowRight" || V.key === "ArrowUp" ? 1 : 0;
|
|
3345
3373
|
if (F) {
|
|
3346
|
-
if (
|
|
3374
|
+
if (C === "low") {
|
|
3347
3375
|
const W = c(r.value + F * D, t.min, t.range ? s.value : t.max);
|
|
3348
3376
|
r.value = W, i.value = !0, setTimeout(() => i.value = !1, 800);
|
|
3349
3377
|
} else {
|
|
@@ -3363,9 +3391,9 @@ const ti = ["data-colspan", "data-newline"], ni = ["for"], oi = { class: "form-f
|
|
|
3363
3391
|
const H = k(() => t.range);
|
|
3364
3392
|
return he(() => {
|
|
3365
3393
|
t.modelValue === void 0 && (t.range ? o("update:modelValue", [r.value, s.value]) : o("update:modelValue", r.value));
|
|
3366
|
-
}), (
|
|
3394
|
+
}), (C, V) => (f(), g("div", {
|
|
3367
3395
|
class: "vj-slider",
|
|
3368
|
-
onPointerdown:
|
|
3396
|
+
onPointerdown: V[8] || (V[8] = U(() => {
|
|
3369
3397
|
}, ["stop"]))
|
|
3370
3398
|
}, [
|
|
3371
3399
|
_("div", {
|
|
@@ -3390,10 +3418,10 @@ const ti = ["data-colspan", "data-newline"], ni = ["for"], oi = { class: "form-f
|
|
|
3390
3418
|
"aria-valuemax": e.max,
|
|
3391
3419
|
"aria-valuenow": r.value,
|
|
3392
3420
|
"aria-label": H.value ? "Lower value" : "Value",
|
|
3393
|
-
onPointerdown:
|
|
3394
|
-
onFocus:
|
|
3395
|
-
onBlur:
|
|
3396
|
-
onKeydown:
|
|
3421
|
+
onPointerdown: V[0] || (V[0] = U((D) => m("low", D), ["prevent"])),
|
|
3422
|
+
onFocus: V[1] || (V[1] = (D) => i.value = !0),
|
|
3423
|
+
onBlur: V[2] || (V[2] = (D) => i.value = !1),
|
|
3424
|
+
onKeydown: V[3] || (V[3] = U((D) => E("low", D), ["stop", "prevent"])),
|
|
3397
3425
|
role: "slider",
|
|
3398
3426
|
tabindex: "0"
|
|
3399
3427
|
}, null, 44, wi),
|
|
@@ -3410,17 +3438,17 @@ const ti = ["data-colspan", "data-newline"], ni = ["for"], oi = { class: "form-f
|
|
|
3410
3438
|
"aria-valuemax": e.max,
|
|
3411
3439
|
"aria-valuenow": s.value,
|
|
3412
3440
|
"aria-label": "Upper value",
|
|
3413
|
-
onPointerdown:
|
|
3414
|
-
onFocus:
|
|
3415
|
-
onBlur:
|
|
3416
|
-
onKeydown:
|
|
3441
|
+
onPointerdown: V[4] || (V[4] = U((D) => m("high", D), ["prevent"])),
|
|
3442
|
+
onFocus: V[5] || (V[5] = (D) => a.value = !0),
|
|
3443
|
+
onBlur: V[6] || (V[6] = (D) => a.value = !1),
|
|
3444
|
+
onKeydown: V[7] || (V[7] = U((D) => E("high", D), ["stop", "prevent"])),
|
|
3417
3445
|
role: "slider",
|
|
3418
3446
|
tabindex: "0"
|
|
3419
3447
|
}, null, 44, _i)) : L("", !0)
|
|
3420
3448
|
], 512)
|
|
3421
3449
|
], 32));
|
|
3422
3450
|
}
|
|
3423
|
-
}), ki = /* @__PURE__ */ A(xi, [["__scopeId", "data-v-d47c7475"]]),
|
|
3451
|
+
}), ki = /* @__PURE__ */ A(xi, [["__scopeId", "data-v-d47c7475"]]), Ci = ["onFocusin", "onFocusout"], Vi = /* @__PURE__ */ R({
|
|
3424
3452
|
__name: "input-slider",
|
|
3425
3453
|
props: /* @__PURE__ */ G({
|
|
3426
3454
|
modelValue: {},
|
|
@@ -3444,7 +3472,7 @@ const ti = ["data-colspan", "data-newline"], ni = ["for"], oi = { class: "form-f
|
|
|
3444
3472
|
}),
|
|
3445
3473
|
emits: /* @__PURE__ */ G(["update:modelValue", "input", "focus", "blur"], ["update:modelValue"]),
|
|
3446
3474
|
setup(e, { emit: n }) {
|
|
3447
|
-
const t = e, o = ne(e, "modelValue"), l = n, i = o.value === void 0 ? 0 : Number(o.value), a =
|
|
3475
|
+
const t = e, o = ne(e, "modelValue"), l = n, i = o.value === void 0 ? 0 : Number(o.value), a = $(Number.isNaN(i) ? 0 : i);
|
|
3448
3476
|
K(o, (r) => {
|
|
3449
3477
|
const s = r === void 0 ? 0 : Number(r);
|
|
3450
3478
|
a.value = Number.isNaN(s) ? 0 : s;
|
|
@@ -3488,12 +3516,12 @@ const ti = ["data-colspan", "data-newline"], ni = ["for"], oi = { class: "form-f
|
|
|
3488
3516
|
range: !1,
|
|
3489
3517
|
disabled: d
|
|
3490
3518
|
}, null, 8, ["id", "modelValue", "min", "max", "step", "disabled"])
|
|
3491
|
-
], 40,
|
|
3519
|
+
], 40, Ci)
|
|
3492
3520
|
]),
|
|
3493
3521
|
_: 1
|
|
3494
3522
|
}, 8, ["modelValue", "label", "id", "disabled", "colspan", "newLine", "spanRow", "error"]));
|
|
3495
3523
|
}
|
|
3496
|
-
}), Ei = /* @__PURE__ */ A(
|
|
3524
|
+
}), Ei = /* @__PURE__ */ A(Vi, [["__scopeId", "data-v-8f16d318"]]), $i = { class: "textarea" }, Si = ["value", "placeholder", "disabled", "rows"], Li = /* @__PURE__ */ R({
|
|
3497
3525
|
__name: "textarea",
|
|
3498
3526
|
props: /* @__PURE__ */ G({
|
|
3499
3527
|
icon: {},
|
|
@@ -3522,7 +3550,7 @@ const ti = ["data-colspan", "data-newline"], ni = ["for"], oi = { class: "form-f
|
|
|
3522
3550
|
e.icon ? (f(), P(d, {
|
|
3523
3551
|
key: 0,
|
|
3524
3552
|
icon: e.icon,
|
|
3525
|
-
size:
|
|
3553
|
+
size: S(X).S,
|
|
3526
3554
|
class: "textarea-icon"
|
|
3527
3555
|
}, null, 8, ["icon", "size"])) : L("", !0),
|
|
3528
3556
|
_("textarea", {
|
|
@@ -3533,18 +3561,18 @@ const ti = ["data-colspan", "data-newline"], ni = ["for"], oi = { class: "form-f
|
|
|
3533
3561
|
placeholder: e.placeholder,
|
|
3534
3562
|
disabled: e.disabled,
|
|
3535
3563
|
rows: e.rows
|
|
3536
|
-
}, null, 40,
|
|
3564
|
+
}, null, 40, Si),
|
|
3537
3565
|
e.clearable && !e.disabled ? (f(), P(d, {
|
|
3538
3566
|
key: 1,
|
|
3539
3567
|
class: I(["clear-icon", { invisible: r.value }]),
|
|
3540
|
-
icon:
|
|
3541
|
-
size:
|
|
3568
|
+
icon: S(z).CLOSE,
|
|
3569
|
+
size: S(X).S,
|
|
3542
3570
|
onClick: i
|
|
3543
3571
|
}, null, 8, ["class", "icon", "size"])) : L("", !0)
|
|
3544
3572
|
]);
|
|
3545
3573
|
};
|
|
3546
3574
|
}
|
|
3547
|
-
}),
|
|
3575
|
+
}), gn = /* @__PURE__ */ A(Li, [["__scopeId", "data-v-2ea43716"]]), Ti = /* @__PURE__ */ R({
|
|
3548
3576
|
__name: "input-text-area",
|
|
3549
3577
|
props: {
|
|
3550
3578
|
modelValue: {},
|
|
@@ -3588,7 +3616,7 @@ const ti = ["data-colspan", "data-newline"], ni = ["for"], oi = { class: "form-f
|
|
|
3588
3616
|
appearance: t.appearance
|
|
3589
3617
|
}, {
|
|
3590
3618
|
control: N(({ id: v, disabled: p, placeholder: h, onFocus: y, onBlur: m }) => [
|
|
3591
|
-
T(
|
|
3619
|
+
T(gn, {
|
|
3592
3620
|
id: v,
|
|
3593
3621
|
modelValue: s.value,
|
|
3594
3622
|
"onUpdate:modelValue": r,
|
|
@@ -3636,7 +3664,7 @@ const ti = ["data-colspan", "data-newline"], ni = ["for"], oi = { class: "form-f
|
|
|
3636
3664
|
e.icon ? (f(), P(d, {
|
|
3637
3665
|
key: 0,
|
|
3638
3666
|
icon: e.icon,
|
|
3639
|
-
size:
|
|
3667
|
+
size: S(X).S
|
|
3640
3668
|
}, null, 8, ["icon", "size"])) : L("", !0),
|
|
3641
3669
|
_("input", {
|
|
3642
3670
|
value: o.value,
|
|
@@ -3650,14 +3678,14 @@ const ti = ["data-colspan", "data-newline"], ni = ["for"], oi = { class: "form-f
|
|
|
3650
3678
|
e.clearable && !e.disabled ? (f(), P(d, {
|
|
3651
3679
|
key: 1,
|
|
3652
3680
|
class: I(["clear-icon", { invisible: r.value }]),
|
|
3653
|
-
icon:
|
|
3654
|
-
size:
|
|
3681
|
+
icon: S(z).CLOSE,
|
|
3682
|
+
size: S(X).S,
|
|
3655
3683
|
onClick: i
|
|
3656
3684
|
}, null, 8, ["class", "icon", "size"])) : L("", !0)
|
|
3657
3685
|
]);
|
|
3658
3686
|
};
|
|
3659
3687
|
}
|
|
3660
|
-
}),
|
|
3688
|
+
}), bn = /* @__PURE__ */ A(Oi, [["__scopeId", "data-v-3187d49c"]]), Di = /* @__PURE__ */ R({
|
|
3661
3689
|
__name: "input-text",
|
|
3662
3690
|
props: {
|
|
3663
3691
|
modelValue: {},
|
|
@@ -3698,7 +3726,7 @@ const ti = ["data-colspan", "data-newline"], ni = ["for"], oi = { class: "form-f
|
|
|
3698
3726
|
appearance: e.appearance
|
|
3699
3727
|
}, {
|
|
3700
3728
|
control: N(({ id: d, disabled: v, placeholder: p, onFocus: h, onBlur: y }) => [
|
|
3701
|
-
T(
|
|
3729
|
+
T(bn, {
|
|
3702
3730
|
id: d,
|
|
3703
3731
|
modelValue: e.modelValue,
|
|
3704
3732
|
type: e.type,
|
|
@@ -3728,7 +3756,7 @@ const ti = ["data-colspan", "data-newline"], ni = ["for"], oi = { class: "form-f
|
|
|
3728
3756
|
to: {}
|
|
3729
3757
|
},
|
|
3730
3758
|
setup(e) {
|
|
3731
|
-
const n =
|
|
3759
|
+
const n = Xt(), t = k(() => !!n.default), o = $(!1), l = $(null), i = $(null), { floatingStyles: a } = _t(l, i, {
|
|
3732
3760
|
placement: "right-start",
|
|
3733
3761
|
middleware: [tt(8), ot(), nt({ padding: 8 })],
|
|
3734
3762
|
whileElementsMounted: et
|
|
@@ -3779,13 +3807,13 @@ const ti = ["data-colspan", "data-newline"], ni = ["for"], oi = { class: "form-f
|
|
|
3779
3807
|
}, null, 8, ["icon"]),
|
|
3780
3808
|
_("label", Fi, O(e.label), 1)
|
|
3781
3809
|
], 8, Pi),
|
|
3782
|
-
T(
|
|
3810
|
+
T(Se, { name: "menu" }, {
|
|
3783
3811
|
default: N(() => [
|
|
3784
3812
|
o.value ? (f(), P(m, {
|
|
3785
3813
|
key: 0,
|
|
3786
3814
|
ref_key: "floatingRef",
|
|
3787
3815
|
ref: i,
|
|
3788
|
-
style: Y(
|
|
3816
|
+
style: Y(S(a)),
|
|
3789
3817
|
class: "shell-navigation-item-menu",
|
|
3790
3818
|
onClose: r,
|
|
3791
3819
|
onClick: U(s, ["stop"])
|
|
@@ -3815,24 +3843,24 @@ const ti = ["data-colspan", "data-newline"], ni = ["for"], oi = { class: "form-f
|
|
|
3815
3843
|
}, Ui = /* @__PURE__ */ R({
|
|
3816
3844
|
__name: "shell-navigation",
|
|
3817
3845
|
setup(e) {
|
|
3818
|
-
const n =
|
|
3846
|
+
const n = mt(ts, os()), t = k(() => n.showLabels);
|
|
3819
3847
|
return (o, l) => {
|
|
3820
3848
|
const i = q("VjShellNavigationItem");
|
|
3821
3849
|
return f(), g("nav", {
|
|
3822
3850
|
class: I(["shell-navigation", { "with-labels": t.value }])
|
|
3823
3851
|
}, [
|
|
3824
3852
|
_("ul", Hi, [
|
|
3825
|
-
|
|
3853
|
+
S(n).hasParent && S(n).backRoute.value ? (f(), P(i, {
|
|
3826
3854
|
key: 0,
|
|
3827
|
-
to:
|
|
3855
|
+
to: S(n).backRoute.value,
|
|
3828
3856
|
label: "BACK",
|
|
3829
|
-
icon:
|
|
3857
|
+
icon: S(z).HOME
|
|
3830
3858
|
}, null, 8, ["to", "icon"])) : L("", !0),
|
|
3831
|
-
(f(!0), g(Q, null, pe(
|
|
3859
|
+
(f(!0), g(Q, null, pe(S(n).childRoutes.value, (a) => (f(), P(i, {
|
|
3832
3860
|
key: a.name,
|
|
3833
3861
|
to: { name: a.name },
|
|
3834
3862
|
label: a.meta.label,
|
|
3835
|
-
icon: a.meta.icon ??
|
|
3863
|
+
icon: a.meta.icon ?? S(z).HOME
|
|
3836
3864
|
}, null, 8, ["to", "label", "icon"]))), 128))
|
|
3837
3865
|
]),
|
|
3838
3866
|
o.$slots.fixed ? (f(), g("ul", Wi, [
|
|
@@ -3841,7 +3869,7 @@ const ti = ["data-colspan", "data-newline"], ni = ["for"], oi = { class: "form-f
|
|
|
3841
3869
|
], 2);
|
|
3842
3870
|
};
|
|
3843
3871
|
}
|
|
3844
|
-
}),
|
|
3872
|
+
}), yn = /* @__PURE__ */ A(Ui, [["__scopeId", "data-v-306cfc22"]]), Ni = { class: "shell" }, Ki = { class: "shell-title" }, Xi = ["src"], qi = { class: "header-actions" }, Gi = /* @__PURE__ */ R({
|
|
3845
3873
|
__name: "shell",
|
|
3846
3874
|
props: {
|
|
3847
3875
|
title: {},
|
|
@@ -3874,7 +3902,7 @@ const ti = ["data-colspan", "data-newline"], ni = ["for"], oi = { class: "form-f
|
|
|
3874
3902
|
_("div", {
|
|
3875
3903
|
class: I(["shell-content", { "with-navigation": e.showNavigation }])
|
|
3876
3904
|
}, [
|
|
3877
|
-
e.showNavigation ? (f(), P(
|
|
3905
|
+
e.showNavigation ? (f(), P(S(yn), { key: 0 }, dt({ _: 2 }, [
|
|
3878
3906
|
a.$slots?.["navigation-fixed"] ? {
|
|
3879
3907
|
name: "fixed",
|
|
3880
3908
|
fn: N(() => [
|
|
@@ -3900,7 +3928,7 @@ const ti = ["data-colspan", "data-newline"], ni = ["for"], oi = { class: "form-f
|
|
|
3900
3928
|
}
|
|
3901
3929
|
}), Yi = /* @__PURE__ */ A(Gi, [["__scopeId", "data-v-6a20620c"]]);
|
|
3902
3930
|
class Ji {
|
|
3903
|
-
notifications =
|
|
3931
|
+
notifications = $([]);
|
|
3904
3932
|
notificationIdCounter = 0;
|
|
3905
3933
|
/**
|
|
3906
3934
|
* Gibt die reaktive Liste der Notifications zurück
|
|
@@ -3965,15 +3993,15 @@ class Ji {
|
|
|
3965
3993
|
this.notifications.value = [];
|
|
3966
3994
|
}
|
|
3967
3995
|
}
|
|
3968
|
-
const
|
|
3996
|
+
const Kt = new Ji(), Qi = { class: "notifications" }, Zi = /* @__PURE__ */ R({
|
|
3969
3997
|
__name: "notifications",
|
|
3970
3998
|
setup(e) {
|
|
3971
|
-
const n =
|
|
3999
|
+
const n = Kt.getNotifications(), t = (o) => Kt.remove(o);
|
|
3972
4000
|
return (o, l) => (f(), P(je, { to: "body" }, [
|
|
3973
4001
|
_("div", Qi, [
|
|
3974
|
-
T(
|
|
4002
|
+
T(Sn, { name: "notification" }, {
|
|
3975
4003
|
default: N(() => [
|
|
3976
|
-
(f(!0), g(Q, null, pe(
|
|
4004
|
+
(f(!0), g(Q, null, pe(S(n), (i) => (f(), P(kt, {
|
|
3977
4005
|
key: i.id,
|
|
3978
4006
|
type: i.type,
|
|
3979
4007
|
title: i.title,
|
|
@@ -4015,19 +4043,19 @@ const os = () => {
|
|
|
4015
4043
|
showLabels: t
|
|
4016
4044
|
};
|
|
4017
4045
|
}, ys = (e, n = !0, t = void 0) => {
|
|
4018
|
-
const o =
|
|
4046
|
+
const o = Ln(e) ? e : $(e), l = !!t, i = $(t || null);
|
|
4019
4047
|
return {
|
|
4020
4048
|
hasParent: l,
|
|
4021
4049
|
backRoute: i,
|
|
4022
4050
|
childRoutes: o,
|
|
4023
4051
|
showLabels: n
|
|
4024
4052
|
};
|
|
4025
|
-
},
|
|
4053
|
+
}, Ct = $(!1), Vt = $(null), Et = $(null);
|
|
4026
4054
|
let $e = [];
|
|
4027
|
-
const
|
|
4055
|
+
const wn = (e) => ($e.push(e), () => {
|
|
4028
4056
|
$e = $e.filter((n) => n !== e);
|
|
4029
|
-
}), ls = (e, n) => ($e = [], Vt.value = e,
|
|
4030
|
-
onClose: (t) =>
|
|
4057
|
+
}), ls = (e, n) => ($e = [], Vt.value = e, Et.value = n ?? null, Ct.value = !0, {
|
|
4058
|
+
onClose: (t) => wn(t)
|
|
4031
4059
|
}), as = (e) => {
|
|
4032
4060
|
try {
|
|
4033
4061
|
$e.forEach((n) => {
|
|
@@ -4038,17 +4066,17 @@ const yn = (e) => ($e.push(e), () => {
|
|
|
4038
4066
|
}
|
|
4039
4067
|
});
|
|
4040
4068
|
} finally {
|
|
4041
|
-
|
|
4069
|
+
Ct.value = !1, setTimeout(is, 1e3);
|
|
4042
4070
|
}
|
|
4043
4071
|
}, is = () => {
|
|
4044
|
-
$e = [], Vt.value = null,
|
|
4072
|
+
$e = [], Vt.value = null, Et.value = null;
|
|
4045
4073
|
}, ss = {
|
|
4046
4074
|
asideComponent: Vt,
|
|
4047
|
-
asideData:
|
|
4075
|
+
asideData: Et,
|
|
4048
4076
|
showAside: ls,
|
|
4049
4077
|
closeAside: as,
|
|
4050
|
-
onAsideClose:
|
|
4051
|
-
hasAside:
|
|
4078
|
+
onAsideClose: wn,
|
|
4079
|
+
hasAside: Ct
|
|
4052
4080
|
}, rs = () => ss, ws = (e, n) => {
|
|
4053
4081
|
let t = null;
|
|
4054
4082
|
return (...l) => {
|
|
@@ -4082,7 +4110,7 @@ class cs {
|
|
|
4082
4110
|
}, 300));
|
|
4083
4111
|
}, c = Tn({
|
|
4084
4112
|
setup() {
|
|
4085
|
-
return () => Rn(
|
|
4113
|
+
return () => Rn(pt, {
|
|
4086
4114
|
modelValue: !0,
|
|
4087
4115
|
title: n.title,
|
|
4088
4116
|
message: n.message,
|
|
@@ -4142,13 +4170,13 @@ function _s() {
|
|
|
4142
4170
|
return us;
|
|
4143
4171
|
}
|
|
4144
4172
|
function xs() {
|
|
4145
|
-
const e =
|
|
4173
|
+
const e = mt(Qt, null);
|
|
4146
4174
|
if (!e)
|
|
4147
4175
|
throw new Error("useDialogController must be used inside a dialog component.");
|
|
4148
4176
|
return e;
|
|
4149
4177
|
}
|
|
4150
4178
|
const ks = () => {
|
|
4151
|
-
const e =
|
|
4179
|
+
const e = $(!1), n = $(null), t = () => {
|
|
4152
4180
|
n.value = null;
|
|
4153
4181
|
};
|
|
4154
4182
|
class o {
|
|
@@ -4187,9 +4215,9 @@ const ks = () => {
|
|
|
4187
4215
|
return new o(i, a);
|
|
4188
4216
|
}
|
|
4189
4217
|
return { run: l, running: e, error: n, clearError: t };
|
|
4190
|
-
},
|
|
4218
|
+
}, Cs = {
|
|
4191
4219
|
install(e) {
|
|
4192
|
-
e.component("VjAccordion", In), e.component("VjAmountBar", Wa), e.component("VjButton", Ge), e.component("VjButtonBar", Xn), e.component("VjCard", st), e.component("VjChip",
|
|
4220
|
+
e.component("VjAccordion", In), e.component("VjAmountBar", Wa), e.component("VjButton", Ge), e.component("VjButtonBar", Xn), e.component("VjCard", st), e.component("VjChip", Yt), e.component("VjChipGroup", Jt), e.component("VjChipSelector", Ro), e.component("VjCarousel", st), e.component("VjCheckbox", io), e.component("VjDotMenu", Cl), e.component("VjDialog", pt), e.component("VjIcon", te), e.component("VjLinkButton", El), e.component("VjMenu", Dl), e.component("VjMenuAction", Tl), e.component("VjPage", da), e.component("VjPaginator", ma), e.component("VjTab", xa), e.component("VjTabView", Sa), e.component("VjTimer", Ma), e.component("VjSkeleton", Ia), e.component("VjSpinner", vn), e.component("VjNotifications", es), e.component("VjNotification", kt), e.component("VjUpload", ei), e.component("VjInput", bn), e.component("VjSelect", hn), e.component("VjTextArea", gn), e.component("VjFormField", Ie), e.component("VjFormLayout", ci), e.component("VjFormSection", fi), e.component("VjInputText", Di), e.component("VjInputTextArea", Ti), e.component("VjInputSelect", yi), e.component("VjInputSlider", Ei), e.component("VjShellNavigation", yn), e.component("VjShellNavigationItem", Ii), e.component("VjShell", Yi), e.component("VjSearchField", ba), e.component("VjSeparator", wa), e.directive("focus", jl), e.directive("resize", Pl), e.directive("compact", Bl), e.directive("tooltip", mn);
|
|
4193
4221
|
}
|
|
4194
4222
|
};
|
|
4195
4223
|
export {
|
|
@@ -4200,11 +4228,11 @@ export {
|
|
|
4200
4228
|
st as Card,
|
|
4201
4229
|
ms as Carousel,
|
|
4202
4230
|
io as Checkbox,
|
|
4203
|
-
|
|
4204
|
-
|
|
4231
|
+
Yt as Chip,
|
|
4232
|
+
Jt as ChipGroup,
|
|
4205
4233
|
Ro as ChipSelector,
|
|
4206
|
-
|
|
4207
|
-
|
|
4234
|
+
pt as Dialog,
|
|
4235
|
+
Cl as DotMenu,
|
|
4208
4236
|
hs as EditableLabel,
|
|
4209
4237
|
jl as FocusFirstDirective,
|
|
4210
4238
|
Ie as FormField,
|
|
@@ -4213,7 +4241,7 @@ export {
|
|
|
4213
4241
|
te as Icon,
|
|
4214
4242
|
z as IconNames,
|
|
4215
4243
|
X as IconSize,
|
|
4216
|
-
|
|
4244
|
+
bn as Input,
|
|
4217
4245
|
yi as InputSelect,
|
|
4218
4246
|
Ei as InputSlider,
|
|
4219
4247
|
Di as InputText,
|
|
@@ -4222,35 +4250,35 @@ export {
|
|
|
4222
4250
|
Ul as LoadingDirective,
|
|
4223
4251
|
Dl as Menu,
|
|
4224
4252
|
Tl as MenuAction,
|
|
4225
|
-
|
|
4253
|
+
kt as NotificationComponent,
|
|
4226
4254
|
es as Notifications,
|
|
4227
4255
|
da as Page,
|
|
4228
4256
|
ma as Paginator,
|
|
4229
4257
|
ps as Radio,
|
|
4230
4258
|
Pl as ResizeDirective,
|
|
4231
4259
|
ba as SearchField,
|
|
4232
|
-
|
|
4260
|
+
hn as Select,
|
|
4233
4261
|
wa as Separator,
|
|
4234
4262
|
Yi as Shell,
|
|
4235
|
-
|
|
4263
|
+
yn as ShellNavigation,
|
|
4236
4264
|
Ii as ShellNavigationItem,
|
|
4237
4265
|
Ia as Skeleton,
|
|
4238
|
-
|
|
4266
|
+
vn as Spinner,
|
|
4239
4267
|
xa as Tab,
|
|
4240
|
-
|
|
4241
|
-
|
|
4268
|
+
Sa as TabView,
|
|
4269
|
+
gn as TextArea,
|
|
4242
4270
|
Ma as Timer,
|
|
4243
|
-
|
|
4271
|
+
mn as TooltipDirective,
|
|
4244
4272
|
ei as Upload,
|
|
4245
|
-
|
|
4246
|
-
|
|
4273
|
+
Cs as VjComponents,
|
|
4274
|
+
Qt as VjDialogControllerKey,
|
|
4247
4275
|
ts as VjNavigationProviderKey,
|
|
4248
4276
|
Bl as compactDirective,
|
|
4249
4277
|
gs as configureVueUI,
|
|
4250
4278
|
us as dialogService,
|
|
4251
|
-
|
|
4279
|
+
Nt as getVueUIConfig,
|
|
4252
4280
|
at as iconRegistry,
|
|
4253
|
-
|
|
4281
|
+
Kt as notificationService,
|
|
4254
4282
|
bs as resetVueUIConfig,
|
|
4255
4283
|
rs as useAsideService,
|
|
4256
4284
|
ws as useDebounce,
|