@vanjana/vue-ui 0.1.124 → 0.1.128
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/accordion.vue.d.ts +10 -9
- package/dist/types/components/chip.vue.d.ts +2 -2
- package/dist/types/components/dialog.vue.d.ts +2 -2
- package/dist/types/components/form/form-field.vue.d.ts +2 -2
- package/dist/types/components/form/input-select.vue.d.ts +1 -1
- package/dist/types/components/form/input-slider.vue.d.ts +2 -2
- package/dist/types/components/form/input-text-area.vue.d.ts +2 -2
- package/dist/types/components/form/input-text.vue.d.ts +2 -2
- package/dist/types/components/form/input.vue.d.ts +1 -1
- package/dist/types/components/form/textarea.vue.d.ts +1 -1
- package/dist/types/components/paginator.vue.d.ts +1 -1
- package/dist/types/components/shell/shell.vue.d.ts +6 -4
- package/dist/types/components/slider.vue.d.ts +2 -2
- package/dist/types/stories/components/accordion.stories.d.ts +15 -25
- package/dist/types/stories/components/chip.stories.d.ts +2 -2
- package/dist/types/stories/components/compact.stories.d.ts +2 -2
- package/dist/types/stories/components/dialog.stories.d.ts +5 -5
- package/dist/types/stories/components/form-field-help.stories.d.ts +2 -2
- package/dist/types/stories/components/form-field.stories.d.ts +2 -2
- package/dist/types/stories/components/input.stories.d.ts +1 -1
- package/dist/types/stories/components/shell.stories.d.ts +4 -0
- package/dist/types/stories/components/textarea.stories.d.ts +1 -1
- package/dist/vanjana-vue-ui.es.js +847 -843
- 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/form/_select.scss +53 -14
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as R, computed as k, createElementBlock as g, openBlock as f, normalizeClass as I, unref as $, createBlock as P, createCommentVNode as L, resolveDynamicComponent as ut, createElementVNode as _, createVNode as T, toDisplayString as O, Transition as Le, withCtx as N, renderSlot as M, createTextVNode as Ue, useSlots as Kt, ref as E, onMounted as Re, nextTick as he, onBeforeUnmount as Ae, watch as K, resolveComponent as q, normalizeStyle as
|
|
1
|
+
import { defineComponent as R, computed as k, createElementBlock as g, openBlock as f, normalizeClass as I, unref as $, 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 Le, withCtx as N, renderSlot as M, createTextVNode as Ue, useSlots as Kt, ref as E, 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 Xt, Teleport as je, createSlots as dt, mergeProps as wn, shallowRef as _n, getCurrentScope as xn, onScopeDispose as kn, shallowReadonly as Ve, render as Rt, resolveDirective as qt, withDirectives as ft, withKeys as Be, inject as vt, onUnmounted as Vn, vModelText as Cn, toRef as lt, normalizeProps as En, guardReactiveProps as $n, TransitionGroup as Ln, isRef as Sn, 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 {
|
|
@@ -57,19 +57,19 @@ const at = new Dn(), Bn = /* @__PURE__ */ R({
|
|
|
57
57
|
const n = e, t = X.M, o = k(() => n.icon.startsWith("fa-") ? !0 : at.getIcon(n.icon)?.type === "string"), l = k(() => {
|
|
58
58
|
if (n.icon.startsWith("fa-"))
|
|
59
59
|
return n.icon;
|
|
60
|
-
const
|
|
61
|
-
return
|
|
62
|
-
}),
|
|
63
|
-
const
|
|
64
|
-
return
|
|
60
|
+
const a = at.getIcon(n.icon);
|
|
61
|
+
return a?.type === "string" ? a.value : "";
|
|
62
|
+
}), i = k(() => {
|
|
63
|
+
const a = at.getIcon(n.icon);
|
|
64
|
+
return a?.type === "component" ? a.value : null;
|
|
65
65
|
});
|
|
66
|
-
return (
|
|
66
|
+
return (a, c) => (f(), g("div", {
|
|
67
67
|
class: I(["icon-wrapper", n.size ?? $(t)])
|
|
68
68
|
}, [
|
|
69
69
|
o.value ? (f(), g("i", {
|
|
70
70
|
key: 0,
|
|
71
71
|
class: I(l.value)
|
|
72
|
-
}, null, 2)) :
|
|
72
|
+
}, null, 2)) : i.value ? (f(), P(ut(i.value), { key: 1 })) : L("", !0)
|
|
73
73
|
], 2));
|
|
74
74
|
}
|
|
75
75
|
}), A = (e, n) => {
|
|
@@ -77,56 +77,58 @@ const at = new Dn(), Bn = /* @__PURE__ */ R({
|
|
|
77
77
|
for (const [o, l] of n)
|
|
78
78
|
t[o] = l;
|
|
79
79
|
return t;
|
|
80
|
-
}, te = /* @__PURE__ */ A(Bn, [["__scopeId", "data-v-64e345f0"]]),
|
|
80
|
+
}, te = /* @__PURE__ */ A(Bn, [["__scopeId", "data-v-64e345f0"]]), Mn = ["aria-expanded", "disabled"], jn = { class: "accordion-title" }, Pn = {
|
|
81
81
|
key: 0,
|
|
82
82
|
id: "accordion-panel",
|
|
83
83
|
class: "accordion-content",
|
|
84
84
|
role: "region"
|
|
85
85
|
}, Fn = { class: "accordion-body" }, zn = /* @__PURE__ */ R({
|
|
86
86
|
__name: "accordion",
|
|
87
|
-
props: {
|
|
87
|
+
props: /* @__PURE__ */ G({
|
|
88
88
|
title: {},
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
89
|
+
disabled: { type: Boolean }
|
|
90
|
+
}, {
|
|
91
|
+
modelValue: { type: Boolean, default: !1 },
|
|
92
|
+
modelModifiers: {}
|
|
93
|
+
}),
|
|
94
|
+
emits: ["update:modelValue"],
|
|
95
|
+
setup(e) {
|
|
96
|
+
const n = ne(e, "modelValue"), t = () => {
|
|
97
|
+
n.value = !n.value;
|
|
98
|
+
}, o = (i) => {
|
|
99
|
+
const a = i;
|
|
100
|
+
a.style.height = "0", a.offsetHeight, a.style.height = `${a.scrollHeight}px`;
|
|
101
|
+
}, l = (i) => {
|
|
102
|
+
const a = i;
|
|
103
|
+
a.style.height = `${a.scrollHeight}px`, a.offsetHeight, a.style.height = "0";
|
|
102
104
|
};
|
|
103
|
-
return (
|
|
104
|
-
class: I(["accordion", { "accordion--open":
|
|
105
|
+
return (i, a) => (f(), g("div", {
|
|
106
|
+
class: I(["accordion", { "accordion--open": n.value, "accordion--disabled": e.disabled }])
|
|
105
107
|
}, [
|
|
106
108
|
_("button", {
|
|
107
109
|
type: "button",
|
|
108
110
|
class: "accordion-header",
|
|
109
|
-
onClick:
|
|
110
|
-
"aria-expanded":
|
|
111
|
+
onClick: t,
|
|
112
|
+
"aria-expanded": n.value,
|
|
111
113
|
disabled: e.disabled,
|
|
112
114
|
"aria-controls": "accordion-panel"
|
|
113
115
|
}, [
|
|
114
|
-
_("span",
|
|
116
|
+
_("span", jn, O(e.title), 1),
|
|
115
117
|
T(te, {
|
|
116
118
|
icon: $(z).CHEVRON_DOWN,
|
|
117
119
|
size: $(X).S,
|
|
118
120
|
class: "accordion-icon"
|
|
119
121
|
}, null, 8, ["icon", "size"])
|
|
120
|
-
], 8,
|
|
122
|
+
], 8, Mn),
|
|
121
123
|
T(Le, {
|
|
122
124
|
name: "accordion",
|
|
123
|
-
onEnter:
|
|
124
|
-
onLeave:
|
|
125
|
+
onEnter: o,
|
|
126
|
+
onLeave: l
|
|
125
127
|
}, {
|
|
126
128
|
default: N(() => [
|
|
127
|
-
|
|
129
|
+
n.value ? (f(), g("div", Pn, [
|
|
128
130
|
_("div", Fn, [
|
|
129
|
-
M(
|
|
131
|
+
M(i.$slots, "default", {}, void 0, !0)
|
|
130
132
|
])
|
|
131
133
|
])) : L("", !0)
|
|
132
134
|
]),
|
|
@@ -134,7 +136,7 @@ const at = new Dn(), Bn = /* @__PURE__ */ R({
|
|
|
134
136
|
})
|
|
135
137
|
], 2));
|
|
136
138
|
}
|
|
137
|
-
}), In = /* @__PURE__ */ A(zn, [["__scopeId", "data-v-
|
|
139
|
+
}), In = /* @__PURE__ */ A(zn, [["__scopeId", "data-v-06b86067"]]), Hn = {}, Wn = { class: "button-bar" }, Un = { class: "left" }, Nn = { class: "right" };
|
|
138
140
|
function Kn(e, n) {
|
|
139
141
|
return f(), g("div", Wn, [
|
|
140
142
|
_("div", Un, [
|
|
@@ -157,7 +159,7 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
157
159
|
},
|
|
158
160
|
setup(e) {
|
|
159
161
|
const n = e, t = X.S, o = k(() => n.primary ? "primary" : n.secondary ? "secondary" : n.tertiary ? "tertiary" : "primary"), l = k(() => !n.label && !!n.icon);
|
|
160
|
-
return (
|
|
162
|
+
return (i, a) => (f(), g("button", {
|
|
161
163
|
class: I(["button", o.value, { "icon-only": l.value }]),
|
|
162
164
|
disabled: e.disabled
|
|
163
165
|
}, [
|
|
@@ -213,50 +215,50 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
213
215
|
ariaLabel: {}
|
|
214
216
|
},
|
|
215
217
|
setup(e) {
|
|
216
|
-
const n = e, t = n.autoplay ?? !1, o = n.interval ?? 4e3, l = n.loop ?? !0,
|
|
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 = E(Math.max(0, a)), s = E(null), u = E(null), d = E(0), v = E(0);
|
|
217
219
|
let p = !1;
|
|
218
220
|
const h = E(0), y = E(!1);
|
|
219
221
|
let m = null, b = null;
|
|
220
222
|
const x = E(null), w = E(null), S = () => {
|
|
221
|
-
h.value =
|
|
222
|
-
}, j = k(() => d.value > 0 ? { transform: `translateX(${-
|
|
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
|
+
}, j = k(() => d.value > 0 ? { transform: `translateX(${-r.value * d.value + v.value}px)` } : { transform: `translateX(-${r.value * 100}%)` }), H = () => {
|
|
225
|
+
s.value && Array.from(s.value.children).forEach((B, ye) => {
|
|
224
226
|
try {
|
|
225
|
-
ye ===
|
|
227
|
+
ye === r.value ? B.removeAttribute("aria-hidden") : B.setAttribute("aria-hidden", "true");
|
|
226
228
|
} catch {
|
|
227
229
|
}
|
|
228
230
|
});
|
|
229
|
-
}, C = () => {
|
|
230
|
-
V(), !(!t || h.value <= 1) && (a && y.value || (m = setTimeout(() => {
|
|
231
|
-
F(), C();
|
|
232
|
-
}, o)));
|
|
233
231
|
}, V = () => {
|
|
232
|
+
C(), !(!t || h.value <= 1) && (i && y.value || (m = setTimeout(() => {
|
|
233
|
+
F(), V();
|
|
234
|
+
}, o)));
|
|
235
|
+
}, C = () => {
|
|
234
236
|
m && (clearTimeout(m), m = null);
|
|
235
237
|
}, D = () => {
|
|
236
|
-
h.value !== 0 && (
|
|
238
|
+
h.value !== 0 && (r.value <= 0 ? r.value = l ? h.value - 1 : 0 : r.value--);
|
|
237
239
|
}, F = () => {
|
|
238
|
-
h.value !== 0 && (
|
|
240
|
+
h.value !== 0 && (r.value >= h.value - 1 ? r.value = l ? 0 : h.value - 1 : r.value++);
|
|
239
241
|
}, W = (B) => {
|
|
240
|
-
B < 0 || B >= h.value || (
|
|
241
|
-
},
|
|
242
|
-
y.value = !0,
|
|
242
|
+
B < 0 || B >= h.value || (r.value = B);
|
|
243
|
+
}, oe = () => {
|
|
244
|
+
y.value = !0, i && C();
|
|
243
245
|
}, fe = () => {
|
|
244
|
-
y.value = !1,
|
|
246
|
+
y.value = !1, V();
|
|
245
247
|
}, ve = (B) => {
|
|
246
248
|
B.key === "ArrowLeft" ? D() : B.key === "ArrowRight" && F();
|
|
247
249
|
};
|
|
248
|
-
let ke = 0,
|
|
250
|
+
let ke = 0, le = 0;
|
|
249
251
|
const re = (B) => {
|
|
250
|
-
ke = B.touches[0].clientX,
|
|
252
|
+
ke = B.touches[0].clientX, le = 0;
|
|
251
253
|
}, J = (B) => {
|
|
252
|
-
|
|
253
|
-
},
|
|
254
|
-
|
|
254
|
+
le = B.touches[0].clientX - ke;
|
|
255
|
+
}, ae = () => {
|
|
256
|
+
le > 50 ? D() : le < -50 && F(), le = 0;
|
|
255
257
|
};
|
|
256
258
|
let He = 0;
|
|
257
259
|
const Et = (B) => {
|
|
258
260
|
if (B.isPrimary !== !1 && !(B.pointerType === "mouse" && B.button !== 0)) {
|
|
259
|
-
p = !0, He = B.clientX, v.value = 0,
|
|
261
|
+
p = !0, He = B.clientX, v.value = 0, C();
|
|
260
262
|
try {
|
|
261
263
|
B.target?.setPointerCapture?.(B.pointerId);
|
|
262
264
|
} catch {
|
|
@@ -268,7 +270,7 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
268
270
|
if (!p) return;
|
|
269
271
|
p = !1;
|
|
270
272
|
const B = Math.max(50, d.value * 0.15);
|
|
271
|
-
v.value > B ? D() : v.value < -B && F(), v.value = 0,
|
|
273
|
+
v.value > B ? D() : v.value < -B && F(), v.value = 0, V();
|
|
272
274
|
}, St = (B) => {
|
|
273
275
|
try {
|
|
274
276
|
B.target?.releasePointerCapture?.(B.pointerId);
|
|
@@ -278,7 +280,7 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
278
280
|
}, Tt = () => Lt();
|
|
279
281
|
return Re(() => {
|
|
280
282
|
he(() => {
|
|
281
|
-
if (S(),
|
|
283
|
+
if (S(), s.value && (b = new MutationObserver(S), 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) {
|
|
282
284
|
const B = () => {
|
|
283
285
|
d.value = u.value ? u.value.clientWidth : 0;
|
|
284
286
|
};
|
|
@@ -291,14 +293,14 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
291
293
|
window.addEventListener("resize", B), w.value = B;
|
|
292
294
|
u.value && (u.value.addEventListener("pointerdown", Et), u.value.addEventListener("pointermove", $t), u.value.addEventListener("pointerup", St), u.value.addEventListener("pointercancel", Tt));
|
|
293
295
|
}
|
|
294
|
-
H(),
|
|
296
|
+
H(), V();
|
|
295
297
|
});
|
|
296
298
|
}), Ae(() => {
|
|
297
|
-
|
|
298
|
-
}), K([
|
|
299
|
+
C(), 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", Et), u.value.removeEventListener("pointermove", $t), u.value.removeEventListener("pointerup", St), u.value.removeEventListener("pointercancel", Tt));
|
|
300
|
+
}), K([r, () => h.value], () => {
|
|
299
301
|
H();
|
|
300
|
-
}), K([() => y.value,
|
|
301
|
-
|
|
302
|
+
}), K([() => y.value, r], () => {
|
|
303
|
+
V();
|
|
302
304
|
}), (B, ye) => {
|
|
303
305
|
const we = q("VjButton");
|
|
304
306
|
return f(), g("div", {
|
|
@@ -308,7 +310,7 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
308
310
|
"aria-label": $(c),
|
|
309
311
|
tabindex: "0",
|
|
310
312
|
onKeydown: ve,
|
|
311
|
-
onMouseenter:
|
|
313
|
+
onMouseenter: oe,
|
|
312
314
|
onMouseleave: fe
|
|
313
315
|
}, [
|
|
314
316
|
_("div", {
|
|
@@ -319,8 +321,8 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
319
321
|
_("div", {
|
|
320
322
|
class: "carousel-track",
|
|
321
323
|
ref_key: "track",
|
|
322
|
-
ref:
|
|
323
|
-
style:
|
|
324
|
+
ref: s,
|
|
325
|
+
style: Y(j.value)
|
|
324
326
|
}, [
|
|
325
327
|
M(B.$slots, "default", {}, void 0, !0)
|
|
326
328
|
], 4)
|
|
@@ -342,9 +344,9 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
342
344
|
h.value > 1 ? (f(), g("div", eo, [
|
|
343
345
|
(f(!0), g(Q, null, pe(h.value, (Oe) => (f(), P(we, {
|
|
344
346
|
key: Oe - 1,
|
|
345
|
-
class: I(["indicator", { active: Oe - 1 ===
|
|
347
|
+
class: I(["indicator", { active: Oe - 1 === r.value }]),
|
|
346
348
|
onClick: (us) => W(Oe - 1),
|
|
347
|
-
"aria-current": Oe - 1 ===
|
|
349
|
+
"aria-current": Oe - 1 === r.value,
|
|
348
350
|
"aria-label": `Go to slide ${Oe}`,
|
|
349
351
|
type: "button"
|
|
350
352
|
}, null, 8, ["class", "onClick", "aria-current", "aria-label"]))), 128))
|
|
@@ -357,7 +359,7 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
357
359
|
class: "checkbox-label"
|
|
358
360
|
}, ao = /* @__PURE__ */ R({
|
|
359
361
|
__name: "checkbox",
|
|
360
|
-
props: /* @__PURE__ */
|
|
362
|
+
props: /* @__PURE__ */ G({
|
|
361
363
|
label: {},
|
|
362
364
|
disabled: { type: Boolean }
|
|
363
365
|
}, {
|
|
@@ -366,7 +368,7 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
366
368
|
}),
|
|
367
369
|
emits: ["update:modelValue"],
|
|
368
370
|
setup(e) {
|
|
369
|
-
const n =
|
|
371
|
+
const n = ne(e, "modelValue"), t = (o) => {
|
|
370
372
|
const l = o.target;
|
|
371
373
|
n.value = l.checked;
|
|
372
374
|
};
|
|
@@ -403,7 +405,7 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
403
405
|
class: "radio-label"
|
|
404
406
|
}, uo = /* @__PURE__ */ R({
|
|
405
407
|
__name: "radio",
|
|
406
|
-
props: /* @__PURE__ */
|
|
408
|
+
props: /* @__PURE__ */ G({
|
|
407
409
|
label: {},
|
|
408
410
|
disabled: { type: Boolean }
|
|
409
411
|
}, {
|
|
@@ -412,7 +414,7 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
412
414
|
}),
|
|
413
415
|
emits: ["update:modelValue"],
|
|
414
416
|
setup(e) {
|
|
415
|
-
const n =
|
|
417
|
+
const n = ne(e, "modelValue"), t = (o) => {
|
|
416
418
|
const l = o.target;
|
|
417
419
|
n.value = l.checked;
|
|
418
420
|
};
|
|
@@ -435,7 +437,7 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
435
437
|
}
|
|
436
438
|
}), ms = /* @__PURE__ */ A(uo, [["__scopeId", "data-v-f9e4bb65"]]), fo = { class: "chip__label" }, vo = /* @__PURE__ */ R({
|
|
437
439
|
__name: "chip",
|
|
438
|
-
props: /* @__PURE__ */
|
|
440
|
+
props: /* @__PURE__ */ G({
|
|
439
441
|
label: {},
|
|
440
442
|
dismissable: { type: Boolean },
|
|
441
443
|
color: {}
|
|
@@ -443,21 +445,21 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
443
445
|
modelValue: {},
|
|
444
446
|
modelModifiers: {}
|
|
445
447
|
}),
|
|
446
|
-
emits: /* @__PURE__ */
|
|
448
|
+
emits: /* @__PURE__ */ G(["update:modelValue", "dismiss", "click"], ["update:modelValue"]),
|
|
447
449
|
setup(e, { emit: n }) {
|
|
448
|
-
const t = e, o =
|
|
449
|
-
const
|
|
450
|
-
return t.color && (
|
|
450
|
+
const t = e, o = ne(e, "modelValue"), l = n, i = t.dismissable ?? !1, a = k(() => {
|
|
451
|
+
const r = {};
|
|
452
|
+
return t.color && (r.color = `var(--on-surface-${t.color})`, r.background = `var(--surface-${t.color})`), r;
|
|
451
453
|
}), c = () => {
|
|
452
454
|
l("dismiss", o.value);
|
|
453
455
|
};
|
|
454
|
-
return (
|
|
455
|
-
class: I(["chip", { "chip--dismissable": $(
|
|
456
|
-
style:
|
|
457
|
-
onClick:
|
|
456
|
+
return (r, s) => (f(), g("div", {
|
|
457
|
+
class: I(["chip", { "chip--dismissable": $(i) }]),
|
|
458
|
+
style: Y(a.value),
|
|
459
|
+
onClick: s[0] || (s[0] = (u) => r.$emit("click"))
|
|
458
460
|
}, [
|
|
459
461
|
_("span", fo, O(e.label), 1),
|
|
460
|
-
$(
|
|
462
|
+
$(i) ? (f(), g("button", {
|
|
461
463
|
key: 0,
|
|
462
464
|
class: "chip__close",
|
|
463
465
|
type: "button",
|
|
@@ -490,26 +492,26 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
490
492
|
},
|
|
491
493
|
emits: ["update:items", "reorder", "dismiss", "chip-click"],
|
|
492
494
|
setup(e, { emit: n }) {
|
|
493
|
-
const t = e, o = n, l = E(null),
|
|
494
|
-
function
|
|
495
|
+
const t = e, o = n, l = E(null), i = E(null);
|
|
496
|
+
function a(m, b) {
|
|
495
497
|
return typeof m == "string" ? `${m}-${b}` : m[t.itemKey] !== void 0 ? String(m[t.itemKey]) : `item-${b}`;
|
|
496
498
|
}
|
|
497
499
|
function c(m) {
|
|
498
500
|
return typeof m == "string" ? m : m[t.itemLabel] !== void 0 ? String(m[t.itemLabel]) : String(m.value || "");
|
|
499
501
|
}
|
|
500
|
-
function
|
|
502
|
+
function r(m, b) {
|
|
501
503
|
l.value = m, b.dataTransfer && (b.dataTransfer.effectAllowed = "move", b.dataTransfer.setData("text/plain", String(m)));
|
|
502
504
|
}
|
|
503
|
-
function
|
|
505
|
+
function s(m, b) {
|
|
504
506
|
l.value === null || l.value === m || (b.preventDefault(), b.dataTransfer && (b.dataTransfer.dropEffect = "move"));
|
|
505
507
|
}
|
|
506
508
|
function u(m) {
|
|
507
|
-
l.value === null || l.value === m || (
|
|
509
|
+
l.value === null || l.value === m || (i.value = m);
|
|
508
510
|
}
|
|
509
511
|
function d() {
|
|
510
512
|
}
|
|
511
513
|
function v(m, b) {
|
|
512
|
-
return l.value === null ||
|
|
514
|
+
return l.value === null || i.value === null || l.value === m ? !1 : b === "before" && i.value === m && l.value > m || b === "after" && i.value === m && l.value < m;
|
|
513
515
|
}
|
|
514
516
|
function p(m, b) {
|
|
515
517
|
if (b.preventDefault(), l.value === null || l.value === m)
|
|
@@ -518,7 +520,7 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
518
520
|
x.splice(l.value, 1), x.splice(m, 0, w), o("update:items", x), o("reorder", x);
|
|
519
521
|
}
|
|
520
522
|
function h() {
|
|
521
|
-
l.value = null,
|
|
523
|
+
l.value = null, i.value = null;
|
|
522
524
|
}
|
|
523
525
|
function y(m) {
|
|
524
526
|
const b = t.items[m], x = t.items.filter((w, S) => S !== m);
|
|
@@ -528,19 +530,19 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
528
530
|
e.label ? (f(), g("label", po, O(e.label), 1)) : L("", !0),
|
|
529
531
|
_("div", ho, [
|
|
530
532
|
(f(!0), g(Q, null, pe(e.items, (x, w) => (f(), g(Q, {
|
|
531
|
-
key:
|
|
533
|
+
key: a(x, w)
|
|
532
534
|
}, [
|
|
533
535
|
v(w, "before") ? (f(), g("div", {
|
|
534
536
|
key: 0,
|
|
535
537
|
class: "chip-group__drop-indicator",
|
|
536
|
-
onDragover: U((S) =>
|
|
538
|
+
onDragover: U((S) => s(w, S), ["prevent"]),
|
|
537
539
|
onDrop: (S) => p(w, S)
|
|
538
540
|
}, null, 40, go)) : L("", !0),
|
|
539
541
|
_("div", {
|
|
540
542
|
class: I(["chip-group__item", { "chip-group__item--dragging": l.value === w }]),
|
|
541
543
|
draggable: "true",
|
|
542
|
-
onDragstart: (S) =>
|
|
543
|
-
onDragover: U((S) =>
|
|
544
|
+
onDragstart: (S) => r(w, S),
|
|
545
|
+
onDragover: U((S) => s(w, S), ["prevent"]),
|
|
544
546
|
onDragenter: U((S) => u(w), ["prevent"]),
|
|
545
547
|
onDragleave: d,
|
|
546
548
|
onDrop: (S) => p(w, S),
|
|
@@ -557,7 +559,7 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
557
559
|
v(w, "after") ? (f(), g("div", {
|
|
558
560
|
key: 1,
|
|
559
561
|
class: "chip-group__drop-indicator",
|
|
560
|
-
onDragover: U((S) =>
|
|
562
|
+
onDragover: U((S) => s(w, S), ["prevent"]),
|
|
561
563
|
onDrop: (S) => p(w, S)
|
|
562
564
|
}, null, 40, yo)) : L("", !0)
|
|
563
565
|
], 64))), 128))
|
|
@@ -565,7 +567,7 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
565
567
|
e.hint ? (f(), g("div", wo, O(e.hint), 1)) : L("", !0)
|
|
566
568
|
]));
|
|
567
569
|
}
|
|
568
|
-
}), Yt = /* @__PURE__ */ A(_o, [["__scopeId", "data-v-66199d19"]]), Jt = /* @__PURE__ */ Symbol("VjDialogController"), xo = { class: "dialog-content" }, ko = { key: 1 },
|
|
570
|
+
}), Yt = /* @__PURE__ */ A(_o, [["__scopeId", "data-v-66199d19"]]), Jt = /* @__PURE__ */ Symbol("VjDialogController"), xo = { class: "dialog-content" }, ko = { key: 1 }, Vo = { class: "dialog-footer" }, Co = /* @__PURE__ */ R({
|
|
569
571
|
__name: "dialog",
|
|
570
572
|
props: {
|
|
571
573
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -587,24 +589,24 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
587
589
|
() => t.modelValue,
|
|
588
590
|
(d) => l.value = d
|
|
589
591
|
);
|
|
590
|
-
const
|
|
592
|
+
const i = () => {
|
|
591
593
|
l.value = !1, o("update:modelValue", !1), o("close");
|
|
592
|
-
},
|
|
593
|
-
o("resolve", d),
|
|
594
|
+
}, a = (d) => {
|
|
595
|
+
o("resolve", d), i();
|
|
594
596
|
}, c = () => {
|
|
595
|
-
o("confirm"),
|
|
596
|
-
},
|
|
597
|
-
o("cancel"),
|
|
597
|
+
o("confirm"), i();
|
|
598
|
+
}, r = () => {
|
|
599
|
+
o("cancel"), i();
|
|
598
600
|
};
|
|
599
601
|
Xt(Jt, {
|
|
600
|
-
close:
|
|
601
|
-
resolve:
|
|
602
|
-
cancel:
|
|
602
|
+
close: i,
|
|
603
|
+
resolve: a,
|
|
604
|
+
cancel: r
|
|
603
605
|
});
|
|
604
|
-
const
|
|
605
|
-
t.closeOnBackdrop &&
|
|
606
|
+
const s = () => {
|
|
607
|
+
t.closeOnBackdrop && i();
|
|
606
608
|
}, u = (d) => {
|
|
607
|
-
d.key === "Escape" && t.closeOnEscape && l.value &&
|
|
609
|
+
d.key === "Escape" && t.closeOnEscape && l.value && i();
|
|
608
610
|
};
|
|
609
611
|
return Re(() => {
|
|
610
612
|
document.addEventListener("keydown", u);
|
|
@@ -612,13 +614,13 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
612
614
|
document.removeEventListener("keydown", u);
|
|
613
615
|
}), (d, v) => {
|
|
614
616
|
const p = q("VjIcon"), h = q("VjButton"), y = q("VjCard");
|
|
615
|
-
return f(), P(
|
|
617
|
+
return f(), P(je, { to: "body" }, [
|
|
616
618
|
T(Le, { name: "dialog-fade" }, {
|
|
617
619
|
default: N(() => [
|
|
618
620
|
l.value ? (f(), g("div", {
|
|
619
621
|
key: 0,
|
|
620
622
|
class: "dialog-backdrop",
|
|
621
|
-
onClick:
|
|
623
|
+
onClick: s
|
|
622
624
|
}, [
|
|
623
625
|
T(Le, { name: "dialog-scale" }, {
|
|
624
626
|
default: N(() => [
|
|
@@ -637,16 +639,16 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
637
639
|
icon: $(z).CLOSE,
|
|
638
640
|
size: $(X).S,
|
|
639
641
|
class: "dialog-close",
|
|
640
|
-
onClick:
|
|
642
|
+
onClick: i
|
|
641
643
|
}, null, 8, ["icon", "size"])
|
|
642
644
|
]),
|
|
643
645
|
default: N(() => [
|
|
644
646
|
_("div", xo, [
|
|
645
647
|
e.component ? (f(), P(ut(e.component), wn({ key: 0 }, e.componentProps, {
|
|
646
|
-
onCancel:
|
|
647
|
-
onClose:
|
|
648
|
+
onCancel: r,
|
|
649
|
+
onClose: i,
|
|
648
650
|
onConfirm: c,
|
|
649
|
-
onResolve:
|
|
651
|
+
onResolve: a
|
|
650
652
|
}), null, 16)) : e.message ? (f(), g("div", ko, O(e.message), 1)) : M(d.$slots, "default", { key: 2 }, void 0, !0)
|
|
651
653
|
])
|
|
652
654
|
]),
|
|
@@ -655,12 +657,12 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
655
657
|
e.showFooter ? {
|
|
656
658
|
name: "footer",
|
|
657
659
|
fn: N(() => [
|
|
658
|
-
_("div",
|
|
660
|
+
_("div", Vo, [
|
|
659
661
|
M(d.$slots, "footer", {}, () => [
|
|
660
662
|
e.showCancel ? (f(), P(h, {
|
|
661
663
|
key: 0,
|
|
662
664
|
secondary: "",
|
|
663
|
-
onClick:
|
|
665
|
+
onClick: r,
|
|
664
666
|
label: e.cancelText
|
|
665
667
|
}, null, 8, ["label"])) : L("", !0),
|
|
666
668
|
T(h, {
|
|
@@ -685,7 +687,7 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
685
687
|
]);
|
|
686
688
|
};
|
|
687
689
|
}
|
|
688
|
-
}), mt = /* @__PURE__ */ A(
|
|
690
|
+
}), mt = /* @__PURE__ */ A(Co, [["__scopeId", "data-v-29d1729b"]]), Eo = { class: "vj-chip-selector" }, $o = { class: "options-grid" }, Lo = ["onClick"], So = {
|
|
689
691
|
key: 0,
|
|
690
692
|
class: "no-options"
|
|
691
693
|
}, To = /* @__PURE__ */ R({
|
|
@@ -700,24 +702,24 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
700
702
|
},
|
|
701
703
|
emits: ["update:items"],
|
|
702
704
|
setup(e, { emit: n }) {
|
|
703
|
-
const t = e, o = n, l = E([...t.items]),
|
|
704
|
-
function c(
|
|
705
|
-
const u =
|
|
705
|
+
const t = e, o = n, l = E([...t.items]), i = E(!1), a = k(() => t.options.filter((s) => !l.value.includes(s.value)));
|
|
706
|
+
function c(s) {
|
|
707
|
+
const u = s;
|
|
706
708
|
l.value = u, o("update:items", u);
|
|
707
709
|
}
|
|
708
|
-
function s
|
|
709
|
-
if (!l.value.includes(
|
|
710
|
-
const u = [...l.value,
|
|
710
|
+
function r(s) {
|
|
711
|
+
if (!l.value.includes(s)) {
|
|
712
|
+
const u = [...l.value, s];
|
|
711
713
|
l.value = u, o("update:items", u);
|
|
712
714
|
}
|
|
713
715
|
}
|
|
714
716
|
return K(
|
|
715
717
|
() => t.items,
|
|
716
|
-
(
|
|
717
|
-
JSON.stringify(
|
|
718
|
+
(s) => {
|
|
719
|
+
JSON.stringify(s) !== JSON.stringify(l.value) && (l.value = [...s]);
|
|
718
720
|
},
|
|
719
721
|
{ deep: !0 }
|
|
720
|
-
), (
|
|
722
|
+
), (s, u) => (f(), g("div", Eo, [
|
|
721
723
|
T(Yt, {
|
|
722
724
|
items: l.value,
|
|
723
725
|
"onUpdate:items": [
|
|
@@ -730,24 +732,24 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
730
732
|
_("button", {
|
|
731
733
|
type: "button",
|
|
732
734
|
class: "add-button",
|
|
733
|
-
onClick: u[1] || (u[1] = (d) =>
|
|
735
|
+
onClick: u[1] || (u[1] = (d) => i.value = !0)
|
|
734
736
|
}, O(e.addButtonText), 1),
|
|
735
737
|
T(mt, {
|
|
736
|
-
modelValue:
|
|
737
|
-
"onUpdate:modelValue": u[2] || (u[2] = (d) =>
|
|
738
|
+
modelValue: i.value,
|
|
739
|
+
"onUpdate:modelValue": u[2] || (u[2] = (d) => i.value = d),
|
|
738
740
|
title: e.dialogTitle || `Add ${e.label}`,
|
|
739
741
|
"close-on-backdrop": ""
|
|
740
742
|
}, {
|
|
741
743
|
default: N(() => [
|
|
742
744
|
_("div", $o, [
|
|
743
|
-
(f(!0), g(Q, null, pe(
|
|
745
|
+
(f(!0), g(Q, null, pe(a.value, (d) => (f(), g("button", {
|
|
744
746
|
key: d.value,
|
|
745
747
|
type: "button",
|
|
746
748
|
class: "option-btn",
|
|
747
|
-
onClick: (v) =>
|
|
749
|
+
onClick: (v) => r(d.value)
|
|
748
750
|
}, "+ " + O(d.label), 9, Lo))), 128))
|
|
749
751
|
]),
|
|
750
|
-
|
|
752
|
+
a.value.length === 0 ? (f(), g("div", So, "All options already selected")) : L("", !0)
|
|
751
753
|
]),
|
|
752
754
|
_: 1
|
|
753
755
|
}, 8, ["modelValue", "title"])
|
|
@@ -792,18 +794,18 @@ function en(e) {
|
|
|
792
794
|
}
|
|
793
795
|
function Bo(e, n, t) {
|
|
794
796
|
t === void 0 && (t = !1);
|
|
795
|
-
const o = Fe(e), l = en(e),
|
|
796
|
-
let
|
|
797
|
-
return n.reference[
|
|
797
|
+
const o = Fe(e), l = en(e), i = Zt(l);
|
|
798
|
+
let a = l === "x" ? o === (t ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
799
|
+
return n.reference[i] > n.floating[i] && (a = Ke(a)), [a, Ke(a)];
|
|
798
800
|
}
|
|
799
|
-
function
|
|
801
|
+
function Mo(e) {
|
|
800
802
|
const n = Ke(e);
|
|
801
803
|
return [rt(e), n, rt(n)];
|
|
802
804
|
}
|
|
803
805
|
function rt(e) {
|
|
804
806
|
return e.replace(/start|end/g, (n) => Oo[n]);
|
|
805
807
|
}
|
|
806
|
-
const Ot = ["left", "right"], Dt = ["right", "left"],
|
|
808
|
+
const Ot = ["left", "right"], Dt = ["right", "left"], jo = ["top", "bottom"], Po = ["bottom", "top"];
|
|
807
809
|
function Fo(e, n, t) {
|
|
808
810
|
switch (e) {
|
|
809
811
|
case "top":
|
|
@@ -811,15 +813,15 @@ function Fo(e, n, t) {
|
|
|
811
813
|
return t ? n ? Dt : Ot : n ? Ot : Dt;
|
|
812
814
|
case "left":
|
|
813
815
|
case "right":
|
|
814
|
-
return n ?
|
|
816
|
+
return n ? jo : Po;
|
|
815
817
|
default:
|
|
816
818
|
return [];
|
|
817
819
|
}
|
|
818
820
|
}
|
|
819
821
|
function zo(e, n, t, o) {
|
|
820
822
|
const l = Fe(e);
|
|
821
|
-
let
|
|
822
|
-
return l && (
|
|
823
|
+
let i = Fo(ge(e), t === "start", o);
|
|
824
|
+
return l && (i = i.map((a) => a + "-" + l), n && (i = i.concat(i.map(rt)))), i;
|
|
823
825
|
}
|
|
824
826
|
function Ke(e) {
|
|
825
827
|
return e.replace(/left|right|bottom|top/g, (n) => Ao[n]);
|
|
@@ -864,9 +866,9 @@ function Bt(e, n, t) {
|
|
|
864
866
|
reference: o,
|
|
865
867
|
floating: l
|
|
866
868
|
} = e;
|
|
867
|
-
const
|
|
869
|
+
const i = me(n), a = en(n), c = Zt(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;
|
|
868
870
|
let p;
|
|
869
|
-
switch (
|
|
871
|
+
switch (r) {
|
|
870
872
|
case "top":
|
|
871
873
|
p = {
|
|
872
874
|
x: u,
|
|
@@ -899,10 +901,10 @@ function Bt(e, n, t) {
|
|
|
899
901
|
}
|
|
900
902
|
switch (Fe(n)) {
|
|
901
903
|
case "start":
|
|
902
|
-
p[
|
|
904
|
+
p[a] -= v * (t && s ? -1 : 1);
|
|
903
905
|
break;
|
|
904
906
|
case "end":
|
|
905
|
-
p[
|
|
907
|
+
p[a] += v * (t && s ? -1 : 1);
|
|
906
908
|
break;
|
|
907
909
|
}
|
|
908
910
|
return p;
|
|
@@ -911,17 +913,17 @@ const Wo = async (e, n, t) => {
|
|
|
911
913
|
const {
|
|
912
914
|
placement: o = "bottom",
|
|
913
915
|
strategy: l = "absolute",
|
|
914
|
-
middleware:
|
|
915
|
-
platform:
|
|
916
|
-
} = t, c =
|
|
917
|
-
let
|
|
916
|
+
middleware: i = [],
|
|
917
|
+
platform: a
|
|
918
|
+
} = t, c = i.filter(Boolean), r = await (a.isRTL == null ? void 0 : a.isRTL(n));
|
|
919
|
+
let s = await a.getElementRects({
|
|
918
920
|
reference: e,
|
|
919
921
|
floating: n,
|
|
920
922
|
strategy: l
|
|
921
923
|
}), {
|
|
922
924
|
x: u,
|
|
923
925
|
y: d
|
|
924
|
-
} = Bt(
|
|
926
|
+
} = Bt(s, o, r), v = o, p = {}, h = 0;
|
|
925
927
|
for (let y = 0; y < c.length; y++) {
|
|
926
928
|
const {
|
|
927
929
|
name: m,
|
|
@@ -938,8 +940,8 @@ const Wo = async (e, n, t) => {
|
|
|
938
940
|
placement: v,
|
|
939
941
|
strategy: l,
|
|
940
942
|
middlewareData: p,
|
|
941
|
-
rects:
|
|
942
|
-
platform:
|
|
943
|
+
rects: s,
|
|
944
|
+
platform: a,
|
|
943
945
|
elements: {
|
|
944
946
|
reference: e,
|
|
945
947
|
floating: n
|
|
@@ -951,14 +953,14 @@ const Wo = async (e, n, t) => {
|
|
|
951
953
|
...p[m],
|
|
952
954
|
...S
|
|
953
955
|
}
|
|
954
|
-
}, j && h <= 50 && (h++, typeof j == "object" && (j.placement && (v = j.placement), j.rects && (
|
|
956
|
+
}, j && h <= 50 && (h++, typeof j == "object" && (j.placement && (v = j.placement), j.rects && (s = j.rects === !0 ? await a.getElementRects({
|
|
955
957
|
reference: e,
|
|
956
958
|
floating: n,
|
|
957
959
|
strategy: l
|
|
958
960
|
}) : j.rects), {
|
|
959
961
|
x: u,
|
|
960
962
|
y: d
|
|
961
|
-
} = Bt(
|
|
963
|
+
} = Bt(s, v, r)), y = -1);
|
|
962
964
|
}
|
|
963
965
|
return {
|
|
964
966
|
x: u,
|
|
@@ -974,37 +976,37 @@ async function pt(e, n) {
|
|
|
974
976
|
const {
|
|
975
977
|
x: o,
|
|
976
978
|
y: l,
|
|
977
|
-
platform:
|
|
978
|
-
rects:
|
|
979
|
+
platform: i,
|
|
980
|
+
rects: a,
|
|
979
981
|
elements: c,
|
|
980
|
-
strategy:
|
|
982
|
+
strategy: r
|
|
981
983
|
} = e, {
|
|
982
|
-
boundary:
|
|
984
|
+
boundary: s = "clippingAncestors",
|
|
983
985
|
rootBoundary: u = "viewport",
|
|
984
986
|
elementContext: d = "floating",
|
|
985
987
|
altBoundary: v = !1,
|
|
986
988
|
padding: p = 0
|
|
987
|
-
} = Pe(n, e), h = Ho(p), m = c[v ? d === "floating" ? "reference" : "floating" : d], b = Xe(await
|
|
988
|
-
element: (t = await (
|
|
989
|
-
boundary:
|
|
989
|
+
} = Pe(n, e), h = Ho(p), m = c[v ? d === "floating" ? "reference" : "floating" : d], b = Xe(await i.getClippingRect({
|
|
990
|
+
element: (t = await (i.isElement == null ? void 0 : i.isElement(m))) == null || t ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(c.floating)),
|
|
991
|
+
boundary: s,
|
|
990
992
|
rootBoundary: u,
|
|
991
|
-
strategy:
|
|
993
|
+
strategy: r
|
|
992
994
|
})), x = d === "floating" ? {
|
|
993
995
|
x: o,
|
|
994
996
|
y: l,
|
|
995
|
-
width:
|
|
996
|
-
height:
|
|
997
|
-
} :
|
|
997
|
+
width: a.floating.width,
|
|
998
|
+
height: a.floating.height
|
|
999
|
+
} : a.reference, w = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(c.floating)), S = await (i.isElement == null ? void 0 : i.isElement(w)) ? await (i.getScale == null ? void 0 : i.getScale(w)) || {
|
|
998
1000
|
x: 1,
|
|
999
1001
|
y: 1
|
|
1000
1002
|
} : {
|
|
1001
1003
|
x: 1,
|
|
1002
1004
|
y: 1
|
|
1003
|
-
}, j = Xe(
|
|
1005
|
+
}, j = Xe(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
1004
1006
|
elements: c,
|
|
1005
1007
|
rect: x,
|
|
1006
1008
|
offsetParent: w,
|
|
1007
|
-
strategy:
|
|
1009
|
+
strategy: r
|
|
1008
1010
|
}) : x);
|
|
1009
1011
|
return {
|
|
1010
1012
|
top: (b.top - j.top + h.top) / S.y,
|
|
@@ -1021,11 +1023,11 @@ const Uo = function(e) {
|
|
|
1021
1023
|
var t, o;
|
|
1022
1024
|
const {
|
|
1023
1025
|
placement: l,
|
|
1024
|
-
middlewareData:
|
|
1025
|
-
rects:
|
|
1026
|
+
middlewareData: i,
|
|
1027
|
+
rects: a,
|
|
1026
1028
|
initialPlacement: c,
|
|
1027
|
-
platform:
|
|
1028
|
-
elements:
|
|
1029
|
+
platform: r,
|
|
1030
|
+
elements: s
|
|
1029
1031
|
} = n, {
|
|
1030
1032
|
mainAxis: u = !0,
|
|
1031
1033
|
crossAxis: d = !0,
|
|
@@ -1035,22 +1037,22 @@ const Uo = function(e) {
|
|
|
1035
1037
|
flipAlignment: y = !0,
|
|
1036
1038
|
...m
|
|
1037
1039
|
} = Pe(e, n);
|
|
1038
|
-
if ((t =
|
|
1040
|
+
if ((t = i.arrow) != null && t.alignmentOffset)
|
|
1039
1041
|
return {};
|
|
1040
|
-
const b = ge(l), x = me(c), w = ge(c) === c, S = await (
|
|
1042
|
+
const b = ge(l), x = me(c), w = ge(c) === c, S = await (r.isRTL == null ? void 0 : r.isRTL(s.floating)), j = v || (w || !y ? [Ke(c)] : Mo(c)), H = h !== "none";
|
|
1041
1043
|
!v && H && j.push(...zo(c, y, h, S));
|
|
1042
|
-
const
|
|
1043
|
-
let F = ((o =
|
|
1044
|
-
if (u && D.push(
|
|
1045
|
-
const ve = Bo(l,
|
|
1046
|
-
D.push(
|
|
1044
|
+
const V = [c, ...j], C = await pt(n, m), D = [];
|
|
1045
|
+
let F = ((o = i.flip) == null ? void 0 : o.overflows) || [];
|
|
1046
|
+
if (u && D.push(C[b]), d) {
|
|
1047
|
+
const ve = Bo(l, a, S);
|
|
1048
|
+
D.push(C[ve[0]], C[ve[1]]);
|
|
1047
1049
|
}
|
|
1048
1050
|
if (F = [...F, {
|
|
1049
1051
|
placement: l,
|
|
1050
1052
|
overflows: D
|
|
1051
1053
|
}], !D.every((ve) => ve <= 0)) {
|
|
1052
|
-
var W,
|
|
1053
|
-
const ve = (((W =
|
|
1054
|
+
var W, oe;
|
|
1055
|
+
const ve = (((W = i.flip) == null ? void 0 : W.index) || 0) + 1, ke = V[ve];
|
|
1054
1056
|
if (ke && (!(d === "alignment" ? x !== me(ke) : !1) || // We leave the current main axis only if every placement on that axis
|
|
1055
1057
|
// overflows the main axis.
|
|
1056
1058
|
F.every((J) => me(J.placement) === x ? J.overflows[0] > 0 : !0)))
|
|
@@ -1063,31 +1065,31 @@ const Uo = function(e) {
|
|
|
1063
1065
|
placement: ke
|
|
1064
1066
|
}
|
|
1065
1067
|
};
|
|
1066
|
-
let
|
|
1067
|
-
if (!
|
|
1068
|
+
let le = (oe = F.filter((re) => re.overflows[0] <= 0).sort((re, J) => re.overflows[1] - J.overflows[1])[0]) == null ? void 0 : oe.placement;
|
|
1069
|
+
if (!le)
|
|
1068
1070
|
switch (p) {
|
|
1069
1071
|
case "bestFit": {
|
|
1070
1072
|
var fe;
|
|
1071
1073
|
const re = (fe = F.filter((J) => {
|
|
1072
1074
|
if (H) {
|
|
1073
|
-
const
|
|
1074
|
-
return
|
|
1075
|
+
const ae = me(J.placement);
|
|
1076
|
+
return ae === x || // Create a bias to the `y` side axis due to horizontal
|
|
1075
1077
|
// reading directions favoring greater width.
|
|
1076
|
-
|
|
1078
|
+
ae === "y";
|
|
1077
1079
|
}
|
|
1078
1080
|
return !0;
|
|
1079
|
-
}).map((J) => [J.placement, J.overflows.filter((
|
|
1080
|
-
re && (
|
|
1081
|
+
}).map((J) => [J.placement, J.overflows.filter((ae) => ae > 0).reduce((ae, He) => ae + He, 0)]).sort((J, ae) => J[1] - ae[1])[0]) == null ? void 0 : fe[0];
|
|
1082
|
+
re && (le = re);
|
|
1081
1083
|
break;
|
|
1082
1084
|
}
|
|
1083
1085
|
case "initialPlacement":
|
|
1084
|
-
|
|
1086
|
+
le = c;
|
|
1085
1087
|
break;
|
|
1086
1088
|
}
|
|
1087
|
-
if (l !==
|
|
1089
|
+
if (l !== le)
|
|
1088
1090
|
return {
|
|
1089
1091
|
reset: {
|
|
1090
|
-
placement:
|
|
1092
|
+
placement: le
|
|
1091
1093
|
}
|
|
1092
1094
|
};
|
|
1093
1095
|
}
|
|
@@ -1100,7 +1102,7 @@ async function Ko(e, n) {
|
|
|
1100
1102
|
placement: t,
|
|
1101
1103
|
platform: o,
|
|
1102
1104
|
elements: l
|
|
1103
|
-
} = e,
|
|
1105
|
+
} = e, i = await (o.isRTL == null ? void 0 : o.isRTL(l.floating)), a = ge(t), c = Fe(t), r = me(t) === "y", s = No.has(a) ? -1 : 1, u = i && r ? -1 : 1, d = Pe(n, e);
|
|
1104
1106
|
let {
|
|
1105
1107
|
mainAxis: v,
|
|
1106
1108
|
crossAxis: p,
|
|
@@ -1114,11 +1116,11 @@ async function Ko(e, n) {
|
|
|
1114
1116
|
crossAxis: d.crossAxis || 0,
|
|
1115
1117
|
alignmentAxis: d.alignmentAxis
|
|
1116
1118
|
};
|
|
1117
|
-
return c && typeof h == "number" && (p = c === "end" ? h * -1 : h),
|
|
1119
|
+
return c && typeof h == "number" && (p = c === "end" ? h * -1 : h), r ? {
|
|
1118
1120
|
x: p * u,
|
|
1119
|
-
y: v *
|
|
1121
|
+
y: v * s
|
|
1120
1122
|
} : {
|
|
1121
|
-
x: v *
|
|
1123
|
+
x: v * s,
|
|
1122
1124
|
y: p * u
|
|
1123
1125
|
};
|
|
1124
1126
|
}
|
|
@@ -1130,16 +1132,16 @@ const Xo = function(e) {
|
|
|
1130
1132
|
var t, o;
|
|
1131
1133
|
const {
|
|
1132
1134
|
x: l,
|
|
1133
|
-
y:
|
|
1134
|
-
placement:
|
|
1135
|
+
y: i,
|
|
1136
|
+
placement: a,
|
|
1135
1137
|
middlewareData: c
|
|
1136
|
-
} = n,
|
|
1137
|
-
return
|
|
1138
|
-
x: l +
|
|
1139
|
-
y:
|
|
1138
|
+
} = n, r = await Ko(n, e);
|
|
1139
|
+
return a === ((t = c.offset) == null ? void 0 : t.placement) && (o = c.arrow) != null && o.alignmentOffset ? {} : {
|
|
1140
|
+
x: l + r.x,
|
|
1141
|
+
y: i + r.y,
|
|
1140
1142
|
data: {
|
|
1141
|
-
...
|
|
1142
|
-
placement:
|
|
1143
|
+
...r,
|
|
1144
|
+
placement: a
|
|
1143
1145
|
}
|
|
1144
1146
|
};
|
|
1145
1147
|
}
|
|
@@ -1154,8 +1156,8 @@ const Xo = function(e) {
|
|
|
1154
1156
|
y: o,
|
|
1155
1157
|
placement: l
|
|
1156
1158
|
} = n, {
|
|
1157
|
-
mainAxis:
|
|
1158
|
-
crossAxis:
|
|
1159
|
+
mainAxis: i = !0,
|
|
1160
|
+
crossAxis: a = !1,
|
|
1159
1161
|
limiter: c = {
|
|
1160
1162
|
fn: (m) => {
|
|
1161
1163
|
let {
|
|
@@ -1168,17 +1170,17 @@ const Xo = function(e) {
|
|
|
1168
1170
|
};
|
|
1169
1171
|
}
|
|
1170
1172
|
},
|
|
1171
|
-
...
|
|
1172
|
-
} = Pe(e, n),
|
|
1173
|
+
...r
|
|
1174
|
+
} = Pe(e, n), s = {
|
|
1173
1175
|
x: t,
|
|
1174
1176
|
y: o
|
|
1175
|
-
}, u = await pt(n,
|
|
1176
|
-
let p =
|
|
1177
|
-
if (
|
|
1177
|
+
}, u = await pt(n, r), d = me(ge(l)), v = Qt(d);
|
|
1178
|
+
let p = s[v], h = s[d];
|
|
1179
|
+
if (i) {
|
|
1178
1180
|
const m = v === "y" ? "top" : "left", b = v === "y" ? "bottom" : "right", x = p + u[m], w = p - u[b];
|
|
1179
1181
|
p = At(x, p, w);
|
|
1180
1182
|
}
|
|
1181
|
-
if (
|
|
1183
|
+
if (a) {
|
|
1182
1184
|
const m = d === "y" ? "top" : "left", b = d === "y" ? "bottom" : "right", x = h + u[m], w = h - u[b];
|
|
1183
1185
|
h = At(x, h, w);
|
|
1184
1186
|
}
|
|
@@ -1193,8 +1195,8 @@ const Xo = function(e) {
|
|
|
1193
1195
|
x: y.x - t,
|
|
1194
1196
|
y: y.y - o,
|
|
1195
1197
|
enabled: {
|
|
1196
|
-
[v]:
|
|
1197
|
-
[d]:
|
|
1198
|
+
[v]: i,
|
|
1199
|
+
[d]: a
|
|
1198
1200
|
}
|
|
1199
1201
|
}
|
|
1200
1202
|
};
|
|
@@ -1208,31 +1210,31 @@ const Xo = function(e) {
|
|
|
1208
1210
|
var t, o;
|
|
1209
1211
|
const {
|
|
1210
1212
|
placement: l,
|
|
1211
|
-
rects:
|
|
1212
|
-
platform:
|
|
1213
|
+
rects: i,
|
|
1214
|
+
platform: a,
|
|
1213
1215
|
elements: c
|
|
1214
1216
|
} = n, {
|
|
1215
|
-
apply:
|
|
1217
|
+
apply: r = () => {
|
|
1216
1218
|
},
|
|
1217
|
-
...
|
|
1218
|
-
} = Pe(e, n), u = await pt(n,
|
|
1219
|
+
...s
|
|
1220
|
+
} = Pe(e, n), u = await pt(n, s), d = ge(l), v = Fe(l), p = me(l) === "y", {
|
|
1219
1221
|
width: h,
|
|
1220
1222
|
height: y
|
|
1221
|
-
} =
|
|
1223
|
+
} = i.floating;
|
|
1222
1224
|
let m, b;
|
|
1223
|
-
d === "top" || d === "bottom" ? (m = d, b = v === (await (
|
|
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");
|
|
1224
1226
|
const x = y - u.top - u.bottom, w = h - u.left - u.right, S = Se(y - u[m], x), j = Se(h - u[b], w), H = !n.middlewareData.shift;
|
|
1225
|
-
let
|
|
1226
|
-
if ((t = n.middlewareData.shift) != null && t.enabled.x && (
|
|
1227
|
-
const F = Z(u.left, 0), W = Z(u.right, 0),
|
|
1228
|
-
p ?
|
|
1227
|
+
let V = S, C = j;
|
|
1228
|
+
if ((t = n.middlewareData.shift) != null && t.enabled.x && (C = w), (o = n.middlewareData.shift) != null && o.enabled.y && (V = x), H && !v) {
|
|
1229
|
+
const F = Z(u.left, 0), W = Z(u.right, 0), oe = Z(u.top, 0), fe = Z(u.bottom, 0);
|
|
1230
|
+
p ? C = h - 2 * (F !== 0 || W !== 0 ? F + W : Z(u.left, u.right)) : V = y - 2 * (oe !== 0 || fe !== 0 ? oe + fe : Z(u.top, u.bottom));
|
|
1229
1231
|
}
|
|
1230
|
-
await
|
|
1232
|
+
await r({
|
|
1231
1233
|
...n,
|
|
1232
|
-
availableWidth:
|
|
1233
|
-
availableHeight:
|
|
1234
|
+
availableWidth: C,
|
|
1235
|
+
availableHeight: V
|
|
1234
1236
|
});
|
|
1235
|
-
const D = await
|
|
1237
|
+
const D = await a.getDimensions(c.floating);
|
|
1236
1238
|
return h !== D.width || y !== D.height ? {
|
|
1237
1239
|
reset: {
|
|
1238
1240
|
rects: !0
|
|
@@ -1258,13 +1260,13 @@ function de(e) {
|
|
|
1258
1260
|
function ht(e) {
|
|
1259
1261
|
return Ye() ? e instanceof Node || e instanceof ee(e).Node : !1;
|
|
1260
1262
|
}
|
|
1261
|
-
function
|
|
1263
|
+
function ie(e) {
|
|
1262
1264
|
return Ye() ? e instanceof Element || e instanceof ee(e).Element : !1;
|
|
1263
1265
|
}
|
|
1264
1266
|
function ue(e) {
|
|
1265
1267
|
return Ye() ? e instanceof HTMLElement || e instanceof ee(e).HTMLElement : !1;
|
|
1266
1268
|
}
|
|
1267
|
-
function
|
|
1269
|
+
function Mt(e) {
|
|
1268
1270
|
return !Ye() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof ee(e).ShadowRoot;
|
|
1269
1271
|
}
|
|
1270
1272
|
const Yo = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
@@ -1274,7 +1276,7 @@ function ze(e) {
|
|
|
1274
1276
|
overflowX: t,
|
|
1275
1277
|
overflowY: o,
|
|
1276
1278
|
display: l
|
|
1277
|
-
} =
|
|
1279
|
+
} = se(e);
|
|
1278
1280
|
return /auto|scroll|overlay|hidden|clip/.test(n + o + t) && !Yo.has(l);
|
|
1279
1281
|
}
|
|
1280
1282
|
const Jo = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
@@ -1293,7 +1295,7 @@ function Je(e) {
|
|
|
1293
1295
|
}
|
|
1294
1296
|
const el = ["transform", "translate", "scale", "rotate", "perspective"], tl = ["transform", "translate", "scale", "rotate", "perspective", "filter"], nl = ["paint", "layout", "strict", "content"];
|
|
1295
1297
|
function gt(e) {
|
|
1296
|
-
const n = bt(), t =
|
|
1298
|
+
const n = bt(), t = ie(e) ? se(e) : e;
|
|
1297
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));
|
|
1298
1300
|
}
|
|
1299
1301
|
function ol(e) {
|
|
@@ -1314,11 +1316,11 @@ const ll = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
|
1314
1316
|
function Te(e) {
|
|
1315
1317
|
return ll.has(xe(e));
|
|
1316
1318
|
}
|
|
1317
|
-
function
|
|
1319
|
+
function se(e) {
|
|
1318
1320
|
return ee(e).getComputedStyle(e);
|
|
1319
1321
|
}
|
|
1320
1322
|
function Qe(e) {
|
|
1321
|
-
return
|
|
1323
|
+
return ie(e) ? {
|
|
1322
1324
|
scrollLeft: e.scrollLeft,
|
|
1323
1325
|
scrollTop: e.scrollTop
|
|
1324
1326
|
} : {
|
|
@@ -1333,40 +1335,40 @@ function be(e) {
|
|
|
1333
1335
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
1334
1336
|
e.assignedSlot || // DOM Element detected.
|
|
1335
1337
|
e.parentNode || // ShadowRoot detected.
|
|
1336
|
-
|
|
1338
|
+
Mt(e) && e.host || // Fallback.
|
|
1337
1339
|
de(e)
|
|
1338
1340
|
);
|
|
1339
|
-
return
|
|
1341
|
+
return Mt(n) ? n.host : n;
|
|
1340
1342
|
}
|
|
1341
1343
|
function tn(e) {
|
|
1342
1344
|
const n = be(e);
|
|
1343
1345
|
return Te(n) ? e.ownerDocument ? e.ownerDocument.body : e.body : ue(n) && ze(n) ? n : tn(n);
|
|
1344
1346
|
}
|
|
1345
|
-
function
|
|
1347
|
+
function Me(e, n, t) {
|
|
1346
1348
|
var o;
|
|
1347
1349
|
n === void 0 && (n = []), t === void 0 && (t = !0);
|
|
1348
|
-
const l = tn(e),
|
|
1349
|
-
if (
|
|
1350
|
-
const c = ct(
|
|
1351
|
-
return n.concat(
|
|
1350
|
+
const l = tn(e), i = l === ((o = e.ownerDocument) == null ? void 0 : o.body), a = ee(l);
|
|
1351
|
+
if (i) {
|
|
1352
|
+
const c = ct(a);
|
|
1353
|
+
return n.concat(a, a.visualViewport || [], ze(l) ? l : [], c && t ? Me(c) : []);
|
|
1352
1354
|
}
|
|
1353
|
-
return n.concat(l,
|
|
1355
|
+
return n.concat(l, Me(l, [], t));
|
|
1354
1356
|
}
|
|
1355
1357
|
function ct(e) {
|
|
1356
1358
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
1357
1359
|
}
|
|
1358
1360
|
function nn(e) {
|
|
1359
|
-
const n =
|
|
1361
|
+
const n = se(e);
|
|
1360
1362
|
let t = parseFloat(n.width) || 0, o = parseFloat(n.height) || 0;
|
|
1361
|
-
const l = ue(e),
|
|
1362
|
-
return c && (t =
|
|
1363
|
+
const l = ue(e), i = l ? e.offsetWidth : t, a = l ? e.offsetHeight : o, c = Ne(t) !== i || Ne(o) !== a;
|
|
1364
|
+
return c && (t = i, o = a), {
|
|
1363
1365
|
width: t,
|
|
1364
1366
|
height: o,
|
|
1365
1367
|
$: c
|
|
1366
1368
|
};
|
|
1367
1369
|
}
|
|
1368
1370
|
function yt(e) {
|
|
1369
|
-
return
|
|
1371
|
+
return ie(e) ? e : e.contextElement;
|
|
1370
1372
|
}
|
|
1371
1373
|
function Ee(e) {
|
|
1372
1374
|
const n = yt(e);
|
|
@@ -1375,11 +1377,11 @@ function Ee(e) {
|
|
|
1375
1377
|
const t = n.getBoundingClientRect(), {
|
|
1376
1378
|
width: o,
|
|
1377
1379
|
height: l,
|
|
1378
|
-
$:
|
|
1380
|
+
$: i
|
|
1379
1381
|
} = nn(n);
|
|
1380
|
-
let
|
|
1381
|
-
return (!
|
|
1382
|
-
x:
|
|
1382
|
+
let a = (i ? Ne(t.width) : t.width) / o, c = (i ? Ne(t.height) : t.height) / l;
|
|
1383
|
+
return (!a || !Number.isFinite(a)) && (a = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
1384
|
+
x: a,
|
|
1383
1385
|
y: c
|
|
1384
1386
|
};
|
|
1385
1387
|
}
|
|
@@ -1396,24 +1398,24 @@ function il(e, n, t) {
|
|
|
1396
1398
|
}
|
|
1397
1399
|
function _e(e, n, t, o) {
|
|
1398
1400
|
n === void 0 && (n = !1), t === void 0 && (t = !1);
|
|
1399
|
-
const l = e.getBoundingClientRect(),
|
|
1400
|
-
let
|
|
1401
|
-
n && (o ?
|
|
1402
|
-
const c = il(
|
|
1403
|
-
let
|
|
1404
|
-
if (
|
|
1405
|
-
const v = ee(
|
|
1401
|
+
const l = e.getBoundingClientRect(), i = yt(e);
|
|
1402
|
+
let a = ce(1);
|
|
1403
|
+
n && (o ? ie(o) && (a = Ee(o)) : a = Ee(e));
|
|
1404
|
+
const c = il(i, t, o) ? on(i) : ce(0);
|
|
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
|
+
if (i) {
|
|
1407
|
+
const v = ee(i), p = o && ie(o) ? ee(o) : o;
|
|
1406
1408
|
let h = v, y = ct(h);
|
|
1407
1409
|
for (; y && o && p !== h; ) {
|
|
1408
|
-
const m = Ee(y), b = y.getBoundingClientRect(), x =
|
|
1409
|
-
|
|
1410
|
+
const m = Ee(y), b = y.getBoundingClientRect(), x = se(y), w = b.left + (y.clientLeft + parseFloat(x.paddingLeft)) * m.x, S = 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 += S, h = ee(y), y = ct(h);
|
|
1410
1412
|
}
|
|
1411
1413
|
}
|
|
1412
1414
|
return Xe({
|
|
1413
1415
|
width: u,
|
|
1414
1416
|
height: d,
|
|
1415
|
-
x:
|
|
1416
|
-
y:
|
|
1417
|
+
x: r,
|
|
1418
|
+
y: s
|
|
1417
1419
|
});
|
|
1418
1420
|
}
|
|
1419
1421
|
function Ze(e, n) {
|
|
@@ -1434,69 +1436,69 @@ function sl(e) {
|
|
|
1434
1436
|
offsetParent: o,
|
|
1435
1437
|
strategy: l
|
|
1436
1438
|
} = e;
|
|
1437
|
-
const
|
|
1438
|
-
if (o ===
|
|
1439
|
+
const i = l === "fixed", a = de(o), c = n ? Je(n.floating) : !1;
|
|
1440
|
+
if (o === a || c && i)
|
|
1439
1441
|
return t;
|
|
1440
|
-
let
|
|
1442
|
+
let r = {
|
|
1441
1443
|
scrollLeft: 0,
|
|
1442
1444
|
scrollTop: 0
|
|
1443
|
-
},
|
|
1445
|
+
}, s = ce(1);
|
|
1444
1446
|
const u = ce(0), d = ue(o);
|
|
1445
|
-
if ((d || !d && !
|
|
1447
|
+
if ((d || !d && !i) && ((xe(o) !== "body" || ze(a)) && (r = Qe(o)), ue(o))) {
|
|
1446
1448
|
const p = _e(o);
|
|
1447
|
-
|
|
1449
|
+
s = Ee(o), u.x = p.x + o.clientLeft, u.y = p.y + o.clientTop;
|
|
1448
1450
|
}
|
|
1449
|
-
const v =
|
|
1451
|
+
const v = a && !d && !i ? ln(a, r) : ce(0);
|
|
1450
1452
|
return {
|
|
1451
|
-
width: t.width *
|
|
1452
|
-
height: t.height *
|
|
1453
|
-
x: t.x *
|
|
1454
|
-
y: t.y *
|
|
1453
|
+
width: t.width * s.x,
|
|
1454
|
+
height: t.height * s.y,
|
|
1455
|
+
x: t.x * s.x - r.scrollLeft * s.x + u.x + v.x,
|
|
1456
|
+
y: t.y * s.y - r.scrollTop * s.y + u.y + v.y
|
|
1455
1457
|
};
|
|
1456
1458
|
}
|
|
1457
1459
|
function rl(e) {
|
|
1458
1460
|
return Array.from(e.getClientRects());
|
|
1459
1461
|
}
|
|
1460
1462
|
function cl(e) {
|
|
1461
|
-
const n = de(e), t = Qe(e), o = e.ownerDocument.body, l = Z(n.scrollWidth, n.clientWidth, o.scrollWidth, o.clientWidth),
|
|
1462
|
-
let
|
|
1463
|
+
const n = de(e), t = Qe(e), o = e.ownerDocument.body, l = Z(n.scrollWidth, n.clientWidth, o.scrollWidth, o.clientWidth), i = Z(n.scrollHeight, n.clientHeight, o.scrollHeight, o.clientHeight);
|
|
1464
|
+
let a = -t.scrollLeft + Ze(e);
|
|
1463
1465
|
const c = -t.scrollTop;
|
|
1464
|
-
return
|
|
1466
|
+
return se(o).direction === "rtl" && (a += Z(n.clientWidth, o.clientWidth) - l), {
|
|
1465
1467
|
width: l,
|
|
1466
|
-
height:
|
|
1467
|
-
x:
|
|
1468
|
+
height: i,
|
|
1469
|
+
x: a,
|
|
1468
1470
|
y: c
|
|
1469
1471
|
};
|
|
1470
1472
|
}
|
|
1471
|
-
const
|
|
1473
|
+
const jt = 25;
|
|
1472
1474
|
function ul(e, n) {
|
|
1473
1475
|
const t = ee(e), o = de(e), l = t.visualViewport;
|
|
1474
|
-
let
|
|
1476
|
+
let i = o.clientWidth, a = o.clientHeight, c = 0, r = 0;
|
|
1475
1477
|
if (l) {
|
|
1476
|
-
|
|
1478
|
+
i = l.width, a = l.height;
|
|
1477
1479
|
const u = bt();
|
|
1478
|
-
(!u || u && n === "fixed") && (c = l.offsetLeft,
|
|
1480
|
+
(!u || u && n === "fixed") && (c = l.offsetLeft, r = l.offsetTop);
|
|
1479
1481
|
}
|
|
1480
|
-
const
|
|
1481
|
-
if (
|
|
1482
|
+
const s = Ze(o);
|
|
1483
|
+
if (s <= 0) {
|
|
1482
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);
|
|
1483
|
-
h <=
|
|
1484
|
-
} else
|
|
1485
|
+
h <= jt && (i -= h);
|
|
1486
|
+
} else s <= jt && (i += s);
|
|
1485
1487
|
return {
|
|
1486
|
-
width:
|
|
1487
|
-
height:
|
|
1488
|
+
width: i,
|
|
1489
|
+
height: a,
|
|
1488
1490
|
x: c,
|
|
1489
|
-
y:
|
|
1491
|
+
y: r
|
|
1490
1492
|
};
|
|
1491
1493
|
}
|
|
1492
1494
|
const dl = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
1493
1495
|
function fl(e, n) {
|
|
1494
|
-
const t = _e(e, !0, n === "fixed"), o = t.top + e.clientTop, l = t.left + e.clientLeft,
|
|
1496
|
+
const t = _e(e, !0, n === "fixed"), o = t.top + e.clientTop, l = t.left + e.clientLeft, i = ue(e) ? Ee(e) : ce(1), a = e.clientWidth * i.x, c = e.clientHeight * i.y, r = l * i.x, s = o * i.y;
|
|
1495
1497
|
return {
|
|
1496
|
-
width:
|
|
1498
|
+
width: a,
|
|
1497
1499
|
height: c,
|
|
1498
|
-
x:
|
|
1499
|
-
y:
|
|
1500
|
+
x: r,
|
|
1501
|
+
y: s
|
|
1500
1502
|
};
|
|
1501
1503
|
}
|
|
1502
1504
|
function Pt(e, n, t) {
|
|
@@ -1505,7 +1507,7 @@ function Pt(e, n, t) {
|
|
|
1505
1507
|
o = ul(e, t);
|
|
1506
1508
|
else if (n === "document")
|
|
1507
1509
|
o = cl(de(e));
|
|
1508
|
-
else if (
|
|
1510
|
+
else if (ie(n))
|
|
1509
1511
|
o = fl(n, t);
|
|
1510
1512
|
else {
|
|
1511
1513
|
const l = on(e);
|
|
@@ -1520,18 +1522,18 @@ function Pt(e, n, t) {
|
|
|
1520
1522
|
}
|
|
1521
1523
|
function an(e, n) {
|
|
1522
1524
|
const t = be(e);
|
|
1523
|
-
return t === n || !
|
|
1525
|
+
return t === n || !ie(t) || Te(t) ? !1 : se(t).position === "fixed" || an(t, n);
|
|
1524
1526
|
}
|
|
1525
1527
|
function vl(e, n) {
|
|
1526
1528
|
const t = n.get(e);
|
|
1527
1529
|
if (t)
|
|
1528
1530
|
return t;
|
|
1529
|
-
let o =
|
|
1530
|
-
const
|
|
1531
|
-
let
|
|
1532
|
-
for (;
|
|
1533
|
-
const c =
|
|
1534
|
-
!
|
|
1531
|
+
let o = Me(e, [], !1).filter((c) => ie(c) && xe(c) !== "body"), l = null;
|
|
1532
|
+
const i = se(e).position === "fixed";
|
|
1533
|
+
let a = i ? be(e) : e;
|
|
1534
|
+
for (; ie(a) && !Te(a); ) {
|
|
1535
|
+
const c = se(a), r = gt(a);
|
|
1536
|
+
!r && c.position === "fixed" && (l = null), (i ? !r && !l : !r && c.position === "static" && !!l && dl.has(l.position) || ze(a) && !r && an(e, a)) ? o = o.filter((u) => u !== a) : l = c, a = be(a);
|
|
1535
1537
|
}
|
|
1536
1538
|
return n.set(e, o), o;
|
|
1537
1539
|
}
|
|
@@ -1542,15 +1544,15 @@ function ml(e) {
|
|
|
1542
1544
|
rootBoundary: o,
|
|
1543
1545
|
strategy: l
|
|
1544
1546
|
} = e;
|
|
1545
|
-
const
|
|
1547
|
+
const a = [...t === "clippingAncestors" ? Je(n) ? [] : vl(n, this._c) : [].concat(t), o], c = a[0], r = a.reduce((s, u) => {
|
|
1546
1548
|
const d = Pt(n, u, l);
|
|
1547
|
-
return
|
|
1549
|
+
return s.top = Z(d.top, s.top), s.right = Se(d.right, s.right), s.bottom = Se(d.bottom, s.bottom), s.left = Z(d.left, s.left), s;
|
|
1548
1550
|
}, Pt(n, c, l));
|
|
1549
1551
|
return {
|
|
1550
|
-
width:
|
|
1551
|
-
height:
|
|
1552
|
-
x:
|
|
1553
|
-
y:
|
|
1552
|
+
width: r.right - r.left,
|
|
1553
|
+
height: r.bottom - r.top,
|
|
1554
|
+
x: r.left,
|
|
1555
|
+
y: r.top
|
|
1554
1556
|
};
|
|
1555
1557
|
}
|
|
1556
1558
|
function pl(e) {
|
|
@@ -1564,34 +1566,34 @@ function pl(e) {
|
|
|
1564
1566
|
};
|
|
1565
1567
|
}
|
|
1566
1568
|
function hl(e, n, t) {
|
|
1567
|
-
const o = ue(n), l = de(n),
|
|
1569
|
+
const o = ue(n), l = de(n), i = t === "fixed", a = _e(e, !0, i, n);
|
|
1568
1570
|
let c = {
|
|
1569
1571
|
scrollLeft: 0,
|
|
1570
1572
|
scrollTop: 0
|
|
1571
1573
|
};
|
|
1572
|
-
const
|
|
1573
|
-
function
|
|
1574
|
-
|
|
1574
|
+
const r = ce(0);
|
|
1575
|
+
function s() {
|
|
1576
|
+
r.x = Ze(l);
|
|
1575
1577
|
}
|
|
1576
|
-
if (o || !o && !
|
|
1578
|
+
if (o || !o && !i)
|
|
1577
1579
|
if ((xe(n) !== "body" || ze(l)) && (c = Qe(n)), o) {
|
|
1578
|
-
const p = _e(n, !0,
|
|
1579
|
-
|
|
1580
|
-
} else l &&
|
|
1581
|
-
|
|
1582
|
-
const u = l && !o && !
|
|
1580
|
+
const p = _e(n, !0, i, n);
|
|
1581
|
+
r.x = p.x + n.clientLeft, r.y = p.y + n.clientTop;
|
|
1582
|
+
} else l && s();
|
|
1583
|
+
i && !o && l && s();
|
|
1584
|
+
const u = l && !o && !i ? ln(l, c) : ce(0), d = a.left + c.scrollLeft - r.x - u.x, v = a.top + c.scrollTop - r.y - u.y;
|
|
1583
1585
|
return {
|
|
1584
1586
|
x: d,
|
|
1585
1587
|
y: v,
|
|
1586
|
-
width:
|
|
1587
|
-
height:
|
|
1588
|
+
width: a.width,
|
|
1589
|
+
height: a.height
|
|
1588
1590
|
};
|
|
1589
1591
|
}
|
|
1590
1592
|
function it(e) {
|
|
1591
|
-
return
|
|
1593
|
+
return se(e).position === "static";
|
|
1592
1594
|
}
|
|
1593
1595
|
function Ft(e, n) {
|
|
1594
|
-
if (!ue(e) ||
|
|
1596
|
+
if (!ue(e) || se(e).position === "fixed")
|
|
1595
1597
|
return null;
|
|
1596
1598
|
if (n)
|
|
1597
1599
|
return n(e);
|
|
@@ -1605,7 +1607,7 @@ function sn(e, n) {
|
|
|
1605
1607
|
if (!ue(e)) {
|
|
1606
1608
|
let l = be(e);
|
|
1607
1609
|
for (; l && !Te(l); ) {
|
|
1608
|
-
if (
|
|
1610
|
+
if (ie(l) && !it(l))
|
|
1609
1611
|
return l;
|
|
1610
1612
|
l = be(l);
|
|
1611
1613
|
}
|
|
@@ -1629,7 +1631,7 @@ const gl = async function(e) {
|
|
|
1629
1631
|
};
|
|
1630
1632
|
};
|
|
1631
1633
|
function bl(e) {
|
|
1632
|
-
return
|
|
1634
|
+
return se(e).direction === "rtl";
|
|
1633
1635
|
}
|
|
1634
1636
|
const yl = {
|
|
1635
1637
|
convertOffsetParentRelativeRectToViewportRelativeRect: sl,
|
|
@@ -1640,7 +1642,7 @@ const yl = {
|
|
|
1640
1642
|
getClientRects: rl,
|
|
1641
1643
|
getDimensions: pl,
|
|
1642
1644
|
getScale: Ee,
|
|
1643
|
-
isElement:
|
|
1645
|
+
isElement: ie,
|
|
1644
1646
|
isRTL: bl
|
|
1645
1647
|
};
|
|
1646
1648
|
function rn(e, n) {
|
|
@@ -1649,35 +1651,35 @@ function rn(e, n) {
|
|
|
1649
1651
|
function wl(e, n) {
|
|
1650
1652
|
let t = null, o;
|
|
1651
1653
|
const l = de(e);
|
|
1652
|
-
function
|
|
1654
|
+
function i() {
|
|
1653
1655
|
var c;
|
|
1654
1656
|
clearTimeout(o), (c = t) == null || c.disconnect(), t = null;
|
|
1655
1657
|
}
|
|
1656
|
-
function
|
|
1657
|
-
c === void 0 && (c = !1),
|
|
1658
|
-
const
|
|
1658
|
+
function a(c, r) {
|
|
1659
|
+
c === void 0 && (c = !1), r === void 0 && (r = 1), i();
|
|
1660
|
+
const s = e.getBoundingClientRect(), {
|
|
1659
1661
|
left: u,
|
|
1660
1662
|
top: d,
|
|
1661
1663
|
width: v,
|
|
1662
1664
|
height: p
|
|
1663
|
-
} =
|
|
1665
|
+
} = s;
|
|
1664
1666
|
if (c || n(), !v || !p)
|
|
1665
1667
|
return;
|
|
1666
1668
|
const h = We(d), y = We(l.clientWidth - (u + v)), m = We(l.clientHeight - (d + p)), b = We(u), w = {
|
|
1667
1669
|
rootMargin: -h + "px " + -y + "px " + -m + "px " + -b + "px",
|
|
1668
|
-
threshold: Z(0, Se(1,
|
|
1670
|
+
threshold: Z(0, Se(1, r)) || 1
|
|
1669
1671
|
};
|
|
1670
1672
|
let S = !0;
|
|
1671
1673
|
function j(H) {
|
|
1672
|
-
const
|
|
1673
|
-
if (
|
|
1674
|
+
const V = H[0].intersectionRatio;
|
|
1675
|
+
if (V !== r) {
|
|
1674
1676
|
if (!S)
|
|
1675
|
-
return
|
|
1676
|
-
|
|
1677
|
-
|
|
1677
|
+
return a();
|
|
1678
|
+
V ? a(!1, V) : o = setTimeout(() => {
|
|
1679
|
+
a(!1, 1e-7);
|
|
1678
1680
|
}, 1e3);
|
|
1679
1681
|
}
|
|
1680
|
-
|
|
1682
|
+
V === 1 && !rn(s, e.getBoundingClientRect()) && a(), S = !1;
|
|
1681
1683
|
}
|
|
1682
1684
|
try {
|
|
1683
1685
|
t = new IntersectionObserver(j, {
|
|
@@ -1690,33 +1692,33 @@ function wl(e, n) {
|
|
|
1690
1692
|
}
|
|
1691
1693
|
t.observe(e);
|
|
1692
1694
|
}
|
|
1693
|
-
return
|
|
1695
|
+
return a(!0), i;
|
|
1694
1696
|
}
|
|
1695
1697
|
function et(e, n, t, o) {
|
|
1696
1698
|
o === void 0 && (o = {});
|
|
1697
1699
|
const {
|
|
1698
1700
|
ancestorScroll: l = !0,
|
|
1699
|
-
ancestorResize:
|
|
1700
|
-
elementResize:
|
|
1701
|
+
ancestorResize: i = !0,
|
|
1702
|
+
elementResize: a = typeof ResizeObserver == "function",
|
|
1701
1703
|
layoutShift: c = typeof IntersectionObserver == "function",
|
|
1702
|
-
animationFrame:
|
|
1703
|
-
} = o,
|
|
1704
|
+
animationFrame: r = !1
|
|
1705
|
+
} = o, s = yt(e), u = l || i ? [...s ? Me(s) : [], ...Me(n)] : [];
|
|
1704
1706
|
u.forEach((b) => {
|
|
1705
1707
|
l && b.addEventListener("scroll", t, {
|
|
1706
1708
|
passive: !0
|
|
1707
|
-
}),
|
|
1709
|
+
}), i && b.addEventListener("resize", t);
|
|
1708
1710
|
});
|
|
1709
|
-
const d =
|
|
1711
|
+
const d = s && c ? wl(s, t) : null;
|
|
1710
1712
|
let v = -1, p = null;
|
|
1711
|
-
|
|
1713
|
+
a && (p = new ResizeObserver((b) => {
|
|
1712
1714
|
let [x] = b;
|
|
1713
|
-
x && x.target ===
|
|
1715
|
+
x && x.target === s && p && (p.unobserve(n), cancelAnimationFrame(v), v = requestAnimationFrame(() => {
|
|
1714
1716
|
var w;
|
|
1715
1717
|
(w = p) == null || w.observe(n);
|
|
1716
1718
|
})), t();
|
|
1717
|
-
}),
|
|
1718
|
-
let h, y =
|
|
1719
|
-
|
|
1719
|
+
}), s && !r && p.observe(s), p.observe(n));
|
|
1720
|
+
let h, y = r ? _e(e) : null;
|
|
1721
|
+
r && m();
|
|
1720
1722
|
function m() {
|
|
1721
1723
|
const b = _e(e);
|
|
1722
1724
|
y && !rn(y, b) && t(), y = b, h = requestAnimationFrame(m);
|
|
@@ -1724,21 +1726,21 @@ function et(e, n, t, o) {
|
|
|
1724
1726
|
return t(), () => {
|
|
1725
1727
|
var b;
|
|
1726
1728
|
u.forEach((x) => {
|
|
1727
|
-
l && x.removeEventListener("scroll", t),
|
|
1728
|
-
}), d?.(), (b = p) == null || b.disconnect(), p = null,
|
|
1729
|
+
l && x.removeEventListener("scroll", t), i && x.removeEventListener("resize", t);
|
|
1730
|
+
}), d?.(), (b = p) == null || b.disconnect(), p = null, r && cancelAnimationFrame(h);
|
|
1729
1731
|
};
|
|
1730
1732
|
}
|
|
1731
1733
|
const tt = Xo, nt = qo, ot = Uo, _l = Go, cn = (e, n, t) => {
|
|
1732
1734
|
const o = /* @__PURE__ */ new Map(), l = {
|
|
1733
1735
|
platform: yl,
|
|
1734
1736
|
...t
|
|
1735
|
-
},
|
|
1737
|
+
}, i = {
|
|
1736
1738
|
...l.platform,
|
|
1737
1739
|
_c: o
|
|
1738
1740
|
};
|
|
1739
1741
|
return Wo(e, n, {
|
|
1740
1742
|
...l,
|
|
1741
|
-
platform:
|
|
1743
|
+
platform: i
|
|
1742
1744
|
});
|
|
1743
1745
|
};
|
|
1744
1746
|
function xl(e) {
|
|
@@ -1764,49 +1766,49 @@ function It(e, n) {
|
|
|
1764
1766
|
function wt(e, n, t) {
|
|
1765
1767
|
t === void 0 && (t = {});
|
|
1766
1768
|
const o = t.whileElementsMounted, l = k(() => {
|
|
1767
|
-
var
|
|
1768
|
-
return (
|
|
1769
|
-
}),
|
|
1770
|
-
var
|
|
1771
|
-
return (
|
|
1769
|
+
var V;
|
|
1770
|
+
return (V = De(t.open)) != null ? V : !0;
|
|
1771
|
+
}), i = k(() => De(t.middleware)), a = k(() => {
|
|
1772
|
+
var V;
|
|
1773
|
+
return (V = De(t.placement)) != null ? V : "bottom";
|
|
1772
1774
|
}), c = k(() => {
|
|
1773
|
-
var
|
|
1774
|
-
return (
|
|
1775
|
-
}),
|
|
1776
|
-
var
|
|
1777
|
-
return (
|
|
1778
|
-
}),
|
|
1779
|
-
const
|
|
1775
|
+
var V;
|
|
1776
|
+
return (V = De(t.strategy)) != null ? V : "absolute";
|
|
1777
|
+
}), r = k(() => {
|
|
1778
|
+
var V;
|
|
1779
|
+
return (V = De(t.transform)) != null ? V : !0;
|
|
1780
|
+
}), s = k(() => zt(e.value)), u = k(() => zt(n.value)), d = E(0), v = E(0), p = E(c.value), h = E(a.value), y = _n({}), m = E(!1), b = k(() => {
|
|
1781
|
+
const V = {
|
|
1780
1782
|
position: p.value,
|
|
1781
1783
|
left: "0",
|
|
1782
1784
|
top: "0"
|
|
1783
1785
|
};
|
|
1784
1786
|
if (!u.value)
|
|
1785
|
-
return
|
|
1786
|
-
const
|
|
1787
|
-
return
|
|
1788
|
-
...
|
|
1789
|
-
transform: "translate(" +
|
|
1787
|
+
return V;
|
|
1788
|
+
const C = It(u.value, d.value), D = It(u.value, v.value);
|
|
1789
|
+
return r.value ? {
|
|
1790
|
+
...V,
|
|
1791
|
+
transform: "translate(" + C + "px, " + D + "px)",
|
|
1790
1792
|
...un(u.value) >= 1.5 && {
|
|
1791
1793
|
willChange: "transform"
|
|
1792
1794
|
}
|
|
1793
1795
|
} : {
|
|
1794
1796
|
position: p.value,
|
|
1795
|
-
left:
|
|
1797
|
+
left: C + "px",
|
|
1796
1798
|
top: D + "px"
|
|
1797
1799
|
};
|
|
1798
1800
|
});
|
|
1799
1801
|
let x;
|
|
1800
1802
|
function w() {
|
|
1801
|
-
if (
|
|
1803
|
+
if (s.value == null || u.value == null)
|
|
1802
1804
|
return;
|
|
1803
|
-
const
|
|
1804
|
-
cn(
|
|
1805
|
-
middleware:
|
|
1806
|
-
placement:
|
|
1805
|
+
const V = l.value;
|
|
1806
|
+
cn(s.value, u.value, {
|
|
1807
|
+
middleware: i.value,
|
|
1808
|
+
placement: a.value,
|
|
1807
1809
|
strategy: c.value
|
|
1808
|
-
}).then((
|
|
1809
|
-
d.value =
|
|
1810
|
+
}).then((C) => {
|
|
1811
|
+
d.value = C.x, v.value = C.y, p.value = C.strategy, h.value = C.placement, y.value = C.middlewareData, m.value = V !== !1;
|
|
1810
1812
|
});
|
|
1811
1813
|
}
|
|
1812
1814
|
function S() {
|
|
@@ -1817,27 +1819,27 @@ function wt(e, n, t) {
|
|
|
1817
1819
|
w();
|
|
1818
1820
|
return;
|
|
1819
1821
|
}
|
|
1820
|
-
if (
|
|
1821
|
-
x = o(
|
|
1822
|
+
if (s.value != null && u.value != null) {
|
|
1823
|
+
x = o(s.value, u.value, w);
|
|
1822
1824
|
return;
|
|
1823
1825
|
}
|
|
1824
1826
|
}
|
|
1825
1827
|
function H() {
|
|
1826
1828
|
l.value || (m.value = !1);
|
|
1827
1829
|
}
|
|
1828
|
-
return K([
|
|
1830
|
+
return K([i, a, c, l], w, {
|
|
1829
1831
|
flush: "sync"
|
|
1830
|
-
}), K([
|
|
1832
|
+
}), K([s, u], j, {
|
|
1831
1833
|
flush: "sync"
|
|
1832
1834
|
}), K(l, H, {
|
|
1833
1835
|
flush: "sync"
|
|
1834
1836
|
}), xn() && kn(S), {
|
|
1835
|
-
x:
|
|
1836
|
-
y:
|
|
1837
|
-
strategy:
|
|
1838
|
-
placement:
|
|
1839
|
-
middlewareData:
|
|
1840
|
-
isPositioned:
|
|
1837
|
+
x: Ve(d),
|
|
1838
|
+
y: Ve(v),
|
|
1839
|
+
strategy: Ve(p),
|
|
1840
|
+
placement: Ve(h),
|
|
1841
|
+
middlewareData: Ve(y),
|
|
1842
|
+
isPositioned: Ve(m),
|
|
1841
1843
|
floatingStyles: b,
|
|
1842
1844
|
update: w
|
|
1843
1845
|
};
|
|
@@ -1849,17 +1851,17 @@ const kl = /* @__PURE__ */ R({
|
|
|
1849
1851
|
icon: {}
|
|
1850
1852
|
},
|
|
1851
1853
|
setup(e) {
|
|
1852
|
-
const n = e, t = E(!1), o = E(null), l = E(null),
|
|
1854
|
+
const n = e, t = E(!1), o = E(null), l = E(null), i = k(() => n.icon ?? z.DOT_MENU), { floatingStyles: a } = wt(o, l, {
|
|
1853
1855
|
placement: "bottom-end",
|
|
1854
1856
|
middleware: [tt(8), ot(), nt({ padding: 8 })],
|
|
1855
1857
|
whileElementsMounted: et
|
|
1856
1858
|
}), c = () => {
|
|
1857
1859
|
t.value = !t.value;
|
|
1858
|
-
},
|
|
1860
|
+
}, r = () => {
|
|
1859
1861
|
t.value = !1;
|
|
1860
|
-
},
|
|
1862
|
+
}, s = (u) => {
|
|
1861
1863
|
const d = u.target;
|
|
1862
|
-
d && (d.closest(".menu-action") || d.closest('[role="menuitem"]') || d.closest("a")) &&
|
|
1864
|
+
d && (d.closest(".menu-action") || d.closest('[role="menuitem"]') || d.closest("a")) && r();
|
|
1863
1865
|
};
|
|
1864
1866
|
return (u, d) => {
|
|
1865
1867
|
const v = q("VjButton"), p = q("VjMenu");
|
|
@@ -1872,7 +1874,7 @@ const kl = /* @__PURE__ */ R({
|
|
|
1872
1874
|
ref: o,
|
|
1873
1875
|
class: "dot-menu",
|
|
1874
1876
|
tertiary: "",
|
|
1875
|
-
icon:
|
|
1877
|
+
icon: i.value,
|
|
1876
1878
|
onClick: c
|
|
1877
1879
|
}, null, 8, ["icon"]),
|
|
1878
1880
|
T(Le, { name: "menu" }, {
|
|
@@ -1881,10 +1883,10 @@ const kl = /* @__PURE__ */ R({
|
|
|
1881
1883
|
key: 0,
|
|
1882
1884
|
ref_key: "floatingRef",
|
|
1883
1885
|
ref: l,
|
|
1884
|
-
style:
|
|
1886
|
+
style: Y($(a)),
|
|
1885
1887
|
class: "menu-dropdown",
|
|
1886
|
-
onClose:
|
|
1887
|
-
onClickCapture:
|
|
1888
|
+
onClose: r,
|
|
1889
|
+
onClickCapture: s
|
|
1888
1890
|
}, {
|
|
1889
1891
|
default: N(() => [
|
|
1890
1892
|
M(u.$slots, "default", {}, void 0, !0)
|
|
@@ -1895,17 +1897,17 @@ const kl = /* @__PURE__ */ R({
|
|
|
1895
1897
|
_: 3
|
|
1896
1898
|
})
|
|
1897
1899
|
], 2),
|
|
1898
|
-
(f(), P(
|
|
1900
|
+
(f(), P(je, { to: "body" }, [
|
|
1899
1901
|
t.value ? (f(), g("div", {
|
|
1900
1902
|
key: 0,
|
|
1901
1903
|
class: "menu-backdrop",
|
|
1902
|
-
onClick:
|
|
1904
|
+
onClick: r
|
|
1903
1905
|
})) : L("", !0)
|
|
1904
1906
|
]))
|
|
1905
1907
|
], 64);
|
|
1906
1908
|
};
|
|
1907
1909
|
}
|
|
1908
|
-
}),
|
|
1910
|
+
}), Vl = /* @__PURE__ */ A(kl, [["__scopeId", "data-v-3c400bfd"]]), Cl = /* @__PURE__ */ R({
|
|
1909
1911
|
__name: "link-button",
|
|
1910
1912
|
props: {
|
|
1911
1913
|
label: {},
|
|
@@ -1918,9 +1920,9 @@ const kl = /* @__PURE__ */ R({
|
|
|
1918
1920
|
},
|
|
1919
1921
|
setup(e) {
|
|
1920
1922
|
const n = e, t = X.S, o = k(() => n.primary ? "primary" : n.secondary ? "secondary" : n.tertiary ? "tertiary" : "primary");
|
|
1921
|
-
return (l,
|
|
1922
|
-
const
|
|
1923
|
-
return f(), P(
|
|
1923
|
+
return (l, i) => {
|
|
1924
|
+
const a = q("router-link");
|
|
1925
|
+
return f(), P(a, {
|
|
1924
1926
|
to: e.to,
|
|
1925
1927
|
class: I(["button", o.value]),
|
|
1926
1928
|
disabled: e.disabled
|
|
@@ -1937,7 +1939,7 @@ const kl = /* @__PURE__ */ R({
|
|
|
1937
1939
|
}, 8, ["to", "class", "disabled"]);
|
|
1938
1940
|
};
|
|
1939
1941
|
}
|
|
1940
|
-
}), El = /* @__PURE__ */ A(
|
|
1942
|
+
}), El = /* @__PURE__ */ A(Cl, [["__scopeId", "data-v-bd3cf2f5"]]), $l = ["disabled"], Ll = { class: "menu-action--icon" }, Sl = /* @__PURE__ */ R({
|
|
1941
1943
|
__name: "menu-action",
|
|
1942
1944
|
props: {
|
|
1943
1945
|
label: {},
|
|
@@ -1982,21 +1984,21 @@ const Dl = /* @__PURE__ */ A(Rl, [["render", Ol], ["__scopeId", "data-v-259fec08
|
|
|
1982
1984
|
'[tabindex]:not([tabindex="-1"])',
|
|
1983
1985
|
'[contenteditable="true"]'
|
|
1984
1986
|
].join(", ");
|
|
1985
|
-
function
|
|
1987
|
+
function Ml(e) {
|
|
1986
1988
|
const n = e.querySelectorAll(dn);
|
|
1987
1989
|
for (const t of Array.from(n))
|
|
1988
1990
|
if (t.offsetParent !== null || t.getClientRects().length > 0)
|
|
1989
1991
|
return t;
|
|
1990
1992
|
return null;
|
|
1991
1993
|
}
|
|
1992
|
-
const
|
|
1994
|
+
const jl = {
|
|
1993
1995
|
mounted(e, n) {
|
|
1994
1996
|
const t = typeof n.value == "number" ? n.value : 0, o = () => {
|
|
1995
1997
|
if (e.matches(dn)) {
|
|
1996
1998
|
e.focus();
|
|
1997
1999
|
return;
|
|
1998
2000
|
}
|
|
1999
|
-
const l =
|
|
2001
|
+
const l = Ml(e);
|
|
2000
2002
|
l && l.focus();
|
|
2001
2003
|
};
|
|
2002
2004
|
t > 0 ? setTimeout(o, t) : requestAnimationFrame(o);
|
|
@@ -2029,18 +2031,18 @@ class _t {
|
|
|
2029
2031
|
handleEntry(n) {
|
|
2030
2032
|
const t = this.targets.get(n.target);
|
|
2031
2033
|
if (!t) return;
|
|
2032
|
-
const o = n.contentRect.width, l = n.contentRect.height,
|
|
2033
|
-
for (const
|
|
2034
|
+
const o = n.contentRect.width, l = n.contentRect.height, i = n.target;
|
|
2035
|
+
for (const a of t.callbacks)
|
|
2034
2036
|
try {
|
|
2035
|
-
|
|
2037
|
+
a(o, l, i);
|
|
2036
2038
|
} catch (c) {
|
|
2037
2039
|
console.error("resize callback error", c);
|
|
2038
2040
|
}
|
|
2039
2041
|
if (t.breakpoints) {
|
|
2040
|
-
const
|
|
2042
|
+
const a = Object.keys(t.breakpoints).map((r) => Number(r)).filter((r) => !Number.isNaN(r)).sort((r, s) => r - s);
|
|
2041
2043
|
let c;
|
|
2042
|
-
for (const
|
|
2043
|
-
o >=
|
|
2044
|
+
for (const r of a)
|
|
2045
|
+
o >= r && (c = t.breakpoints[r]);
|
|
2044
2046
|
c !== t.currentClass && (t.currentClass && n.target.classList.remove(t.currentClass), c && n.target.classList.add(c), t.currentClass = c);
|
|
2045
2047
|
}
|
|
2046
2048
|
}
|
|
@@ -2049,14 +2051,14 @@ class _t {
|
|
|
2049
2051
|
if (l)
|
|
2050
2052
|
t && l.callbacks.add(t), o?.breakpoints && (l.breakpoints = o.breakpoints);
|
|
2051
2053
|
else {
|
|
2052
|
-
const
|
|
2053
|
-
t &&
|
|
2054
|
+
const i = /* @__PURE__ */ new Set();
|
|
2055
|
+
t && i.add(t), this.targets.set(n, { callbacks: i, breakpoints: o?.breakpoints }), this.observer && this.observer.observe(n);
|
|
2054
2056
|
}
|
|
2055
2057
|
if (o?.immediate) {
|
|
2056
|
-
const
|
|
2057
|
-
if (this.handleEntry(
|
|
2058
|
-
const c =
|
|
2059
|
-
t(c,
|
|
2058
|
+
const i = n.getBoundingClientRect(), a = { target: n, contentRect: i };
|
|
2059
|
+
if (this.handleEntry(a), t) {
|
|
2060
|
+
const c = i.width, r = i.height;
|
|
2061
|
+
t(c, r, n);
|
|
2060
2062
|
}
|
|
2061
2063
|
}
|
|
2062
2064
|
}
|
|
@@ -2065,22 +2067,22 @@ class _t {
|
|
|
2065
2067
|
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)));
|
|
2066
2068
|
}
|
|
2067
2069
|
}
|
|
2068
|
-
const
|
|
2070
|
+
const Ce = _t.instance, Pl = {
|
|
2069
2071
|
mounted(e, n) {
|
|
2070
|
-
const t = n.value, o = typeof t == "function" ? t : t?.onResize, l = typeof t == "object" && t?.breakpoints ? t.breakpoints : void 0,
|
|
2071
|
-
|
|
2072
|
+
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 && Ce.observe(e, o, { breakpoints: l, immediate: i });
|
|
2072
2074
|
},
|
|
2073
2075
|
updated(e, n) {
|
|
2074
|
-
const t = e, o = t.__resize_cb, l = t.__resize_breakpoints,
|
|
2075
|
-
if (o !==
|
|
2076
|
-
o &&
|
|
2076
|
+
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
|
+
if (o !== a) {
|
|
2078
|
+
o && Ce.unobserve(e, o), a && Ce.observe(e, a, { breakpoints: c, immediate: !!(i && typeof i == "object" && i.immediate) }), t.__resize_cb = a, t.__resize_breakpoints = c;
|
|
2077
2079
|
return;
|
|
2078
2080
|
}
|
|
2079
|
-
JSON.stringify(l || {}) !== JSON.stringify(c || {}) && (o &&
|
|
2081
|
+
JSON.stringify(l || {}) !== JSON.stringify(c || {}) && (o && Ce.unobserve(e, o), a && Ce.observe(e, a, { breakpoints: c, immediate: !0 }), t.__resize_breakpoints = c);
|
|
2080
2082
|
},
|
|
2081
2083
|
unmounted(e) {
|
|
2082
2084
|
const n = e, t = n.__resize_cb;
|
|
2083
|
-
t &&
|
|
2085
|
+
t && Ce.unobserve(e, t), delete n.__resize_cb, delete n.__resize_breakpoints;
|
|
2084
2086
|
}
|
|
2085
2087
|
}, Fl = {}, zl = { class: "spinner" };
|
|
2086
2088
|
function Il(e, n) {
|
|
@@ -2103,38 +2105,38 @@ const Ul = {
|
|
|
2103
2105
|
t = !!(v.active ?? !0), o = v.text;
|
|
2104
2106
|
} else
|
|
2105
2107
|
t = !!n.value, o = void 0;
|
|
2106
|
-
const l = getComputedStyle(e),
|
|
2107
|
-
(l.position === "static" || !l.position) && (
|
|
2108
|
-
const
|
|
2109
|
-
|
|
2110
|
-
const c = document.createElement("div"),
|
|
2111
|
-
|
|
2112
|
-
let
|
|
2113
|
-
o && (
|
|
2108
|
+
const l = getComputedStyle(e), i = { overlay: document.createElement("div") };
|
|
2109
|
+
(l.position === "static" || !l.position) && (i.originalPosition = e.style.position, e.style.position = "relative");
|
|
2110
|
+
const a = i.overlay;
|
|
2111
|
+
a.className = "vj-loading-overlay", t || a.classList.add("vj-loading-overlay--hidden");
|
|
2112
|
+
const c = document.createElement("div"), r = document.createElement("div");
|
|
2113
|
+
r.className = "vj-loading-inner", r.appendChild(c);
|
|
2114
|
+
let s;
|
|
2115
|
+
o && (s = document.createElement("div"), s.className = "vj-loading-text", s.textContent = o, r.appendChild(s)), a.appendChild(r), Ht(e, a);
|
|
2114
2116
|
const u = T(fn);
|
|
2115
|
-
Rt(u, c),
|
|
2117
|
+
Rt(u, c), i.spinnerVnode = u, i.spinnerContainer = c, t && (e.setAttribute("aria-busy", "true"), e.style.pointerEvents = "none"), e.appendChild(a);
|
|
2116
2118
|
const d = e;
|
|
2117
|
-
d.__vjLoading =
|
|
2119
|
+
d.__vjLoading = i;
|
|
2118
2120
|
},
|
|
2119
2121
|
updated(e, n) {
|
|
2120
2122
|
const o = e.__vjLoading;
|
|
2121
2123
|
if (!o) return;
|
|
2122
2124
|
const { overlay: l } = o;
|
|
2123
|
-
let
|
|
2125
|
+
let i, a;
|
|
2124
2126
|
if (typeof n.value == "object" && n.value !== null) {
|
|
2125
|
-
const
|
|
2126
|
-
|
|
2127
|
+
const r = n.value;
|
|
2128
|
+
i = !!(r.active ?? !0), a = r.text;
|
|
2127
2129
|
} else
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
+
i = !!n.value, a = void 0;
|
|
2131
|
+
i ? (l.classList.remove("vj-loading-overlay--hidden"), e.setAttribute("aria-busy", "true"), e.style.pointerEvents = "none") : (l.classList.add("vj-loading-overlay--hidden"), e.removeAttribute("aria-busy"), e.style.pointerEvents = "");
|
|
2130
2132
|
const c = l.querySelector(".vj-loading-inner");
|
|
2131
2133
|
if (c) {
|
|
2132
|
-
const
|
|
2133
|
-
if (
|
|
2134
|
-
|
|
2135
|
-
else if (
|
|
2136
|
-
const
|
|
2137
|
-
|
|
2134
|
+
const r = c.querySelector(".vj-loading-text");
|
|
2135
|
+
if (r)
|
|
2136
|
+
a ? r.textContent = a : r.remove();
|
|
2137
|
+
else if (a) {
|
|
2138
|
+
const s = document.createElement("div");
|
|
2139
|
+
s.className = "vj-loading-text", s.textContent = a, c.appendChild(s);
|
|
2138
2140
|
}
|
|
2139
2141
|
}
|
|
2140
2142
|
Ht(e, l);
|
|
@@ -2163,7 +2165,7 @@ const vn = {
|
|
|
2163
2165
|
mounted(e, n) {
|
|
2164
2166
|
const t = Wt(n), o = Nl(t.content);
|
|
2165
2167
|
document.body.appendChild(o);
|
|
2166
|
-
const l = { tooltip: o, cleanup: void 0, showTimer: null, hideTimer: null },
|
|
2168
|
+
const l = { tooltip: o, cleanup: void 0, showTimer: null, hideTimer: null }, i = async () => {
|
|
2167
2169
|
const p = await cn(e, o, {
|
|
2168
2170
|
placement: t.placement,
|
|
2169
2171
|
middleware: [tt(6), ot(), nt({ padding: 8 })]
|
|
@@ -2172,9 +2174,9 @@ const vn = {
|
|
|
2172
2174
|
left: `${h}px`,
|
|
2173
2175
|
top: `${y}px`
|
|
2174
2176
|
});
|
|
2175
|
-
},
|
|
2177
|
+
}, a = () => {
|
|
2176
2178
|
l.hideTimer && window.clearTimeout(l.hideTimer), l.showTimer = window.setTimeout(() => {
|
|
2177
|
-
o.classList.add("vj-tooltip--visible"),
|
|
2179
|
+
o.classList.add("vj-tooltip--visible"), i(), l.cleanup = et(e, o, i);
|
|
2178
2180
|
}, t.delay);
|
|
2179
2181
|
}, c = () => {
|
|
2180
2182
|
l.showTimer && window.clearTimeout(l.showTimer), l.hideTimer = window.setTimeout(() => {
|
|
@@ -2186,16 +2188,16 @@ const vn = {
|
|
|
2186
2188
|
l.cleanup = void 0;
|
|
2187
2189
|
}
|
|
2188
2190
|
}, 50);
|
|
2189
|
-
}, s = (p) => {
|
|
2190
|
-
i();
|
|
2191
2191
|
}, r = (p) => {
|
|
2192
|
+
a();
|
|
2193
|
+
}, s = (p) => {
|
|
2192
2194
|
c();
|
|
2193
|
-
}, u = () =>
|
|
2194
|
-
p.pointerType === "touch" && (
|
|
2195
|
+
}, u = () => a(), d = () => c(), v = (p) => {
|
|
2196
|
+
p.pointerType === "touch" && (a(), l.docHandler = (h) => {
|
|
2195
2197
|
!o.contains(h.target) && !e.contains(h.target) && (c(), document.removeEventListener("pointerdown", l.docHandler), l.docHandler = void 0);
|
|
2196
2198
|
}, document.addEventListener("pointerdown", l.docHandler));
|
|
2197
2199
|
};
|
|
2198
|
-
e.addEventListener("pointerenter",
|
|
2200
|
+
e.addEventListener("pointerenter", r), e.addEventListener("pointerleave", s), e.addEventListener("focus", u), e.addEventListener("blur", d), e.addEventListener("pointerdown", v), l.onPointerEnter = r, l.onPointerLeave = s, l.onFocus = u, l.onBlur = d, l.onPointerDown = v, e.__vjTooltip = l;
|
|
2199
2201
|
},
|
|
2200
2202
|
updated(e, n) {
|
|
2201
2203
|
const t = e.__vjTooltip;
|
|
@@ -2233,15 +2235,15 @@ const vn = {
|
|
|
2233
2235
|
default:
|
|
2234
2236
|
return z.INFO;
|
|
2235
2237
|
}
|
|
2236
|
-
}),
|
|
2238
|
+
}), i = () => {
|
|
2237
2239
|
o("close");
|
|
2238
2240
|
};
|
|
2239
|
-
return (
|
|
2241
|
+
return (a, c) => (f(), g("div", {
|
|
2240
2242
|
class: I(["notification", `notification--${e.type}`]),
|
|
2241
|
-
onClick:
|
|
2243
|
+
onClick: i
|
|
2242
2244
|
}, [
|
|
2243
2245
|
_("div", Kl, [
|
|
2244
|
-
M(
|
|
2246
|
+
M(a.$slots, "default", {}, () => [
|
|
2245
2247
|
_("div", Xl, [
|
|
2246
2248
|
T(te, { icon: l.value }, null, 8, ["icon"])
|
|
2247
2249
|
]),
|
|
@@ -2255,7 +2257,7 @@ const vn = {
|
|
|
2255
2257
|
T(Ge, {
|
|
2256
2258
|
class: "notification__close compact",
|
|
2257
2259
|
icon: $(z).CLOSE,
|
|
2258
|
-
onClick: U(
|
|
2260
|
+
onClick: U(i, ["stop"]),
|
|
2259
2261
|
tertiary: ""
|
|
2260
2262
|
}, null, 8, ["icon"])
|
|
2261
2263
|
])
|
|
@@ -2284,17 +2286,17 @@ const vn = {
|
|
|
2284
2286
|
},
|
|
2285
2287
|
emits: ["back"],
|
|
2286
2288
|
setup(e, { emit: n }) {
|
|
2287
|
-
const t = e, o = k(() => t.flow?.running?.value ?? !1), l = k(() => t.flow?.error?.value ?? null),
|
|
2288
|
-
return (
|
|
2289
|
-
const
|
|
2289
|
+
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));
|
|
2290
|
+
return (a, c) => {
|
|
2291
|
+
const r = q("VjButton"), s = qt("loading");
|
|
2290
2292
|
return ft((f(), g("div", Zl, [
|
|
2291
2293
|
_("header", null, [
|
|
2292
2294
|
_("div", ea, [
|
|
2293
|
-
e.backLabel ? (f(), P(
|
|
2295
|
+
e.backLabel ? (f(), P(r, {
|
|
2294
2296
|
key: 0,
|
|
2295
2297
|
tertiary: "",
|
|
2296
2298
|
icon: $(z).BACK,
|
|
2297
|
-
onClick: c[0] || (c[0] = (u) =>
|
|
2299
|
+
onClick: c[0] || (c[0] = (u) => a.$emit("back")),
|
|
2298
2300
|
size: "small"
|
|
2299
2301
|
}, null, 8, ["icon"])) : L("", !0),
|
|
2300
2302
|
_("div", ta, [
|
|
@@ -2303,36 +2305,36 @@ const vn = {
|
|
|
2303
2305
|
])
|
|
2304
2306
|
]),
|
|
2305
2307
|
_("div", oa, [
|
|
2306
|
-
M(
|
|
2308
|
+
M(a.$slots, "headerActions", {}, void 0, !0)
|
|
2307
2309
|
])
|
|
2308
2310
|
]),
|
|
2309
2311
|
_("main", {
|
|
2310
2312
|
class: I({ scrollable: e.scrollable })
|
|
2311
2313
|
}, [
|
|
2312
|
-
|
|
2313
|
-
M(
|
|
2314
|
+
i.value ? (f(), g("div", la, [
|
|
2315
|
+
M(a.$slots, "error", {}, () => [
|
|
2314
2316
|
T(xt, {
|
|
2315
2317
|
type: "error",
|
|
2316
|
-
title:
|
|
2317
|
-
message:
|
|
2318
|
+
title: i.value,
|
|
2319
|
+
message: i.value
|
|
2318
2320
|
}, null, 8, ["title", "message"])
|
|
2319
2321
|
], !0)
|
|
2320
2322
|
])) : L("", !0),
|
|
2321
|
-
|
|
2322
|
-
M(
|
|
2323
|
+
i.value ? L("", !0) : (f(), g("div", aa, [
|
|
2324
|
+
M(a.$slots, "default", {}, void 0, !0)
|
|
2323
2325
|
])),
|
|
2324
|
-
|
|
2325
|
-
M(
|
|
2326
|
+
i.value ? L("", !0) : (f(), g("div", ia, [
|
|
2327
|
+
M(a.$slots, "actions", {}, void 0, !0)
|
|
2326
2328
|
])),
|
|
2327
|
-
|
|
2328
|
-
M(
|
|
2329
|
+
a.$slots.flexFooter ? (f(), g("footer", sa, [
|
|
2330
|
+
M(a.$slots, "flexFooter", {}, void 0, !0)
|
|
2329
2331
|
])) : L("", !0)
|
|
2330
2332
|
], 2),
|
|
2331
|
-
|
|
2332
|
-
M(
|
|
2333
|
+
a.$slots.footer ? (f(), g("footer", ra, [
|
|
2334
|
+
M(a.$slots, "footer", {}, void 0, !0)
|
|
2333
2335
|
])) : L("", !0)
|
|
2334
2336
|
])), [
|
|
2335
|
-
[
|
|
2337
|
+
[s, { active: o.value, text: t.loadingMessage }]
|
|
2336
2338
|
]);
|
|
2337
2339
|
};
|
|
2338
2340
|
}
|
|
@@ -2341,7 +2343,7 @@ const vn = {
|
|
|
2341
2343
|
"aria-live": "polite"
|
|
2342
2344
|
}, fa = /* @__PURE__ */ R({
|
|
2343
2345
|
__name: "paginator",
|
|
2344
|
-
props: /* @__PURE__ */
|
|
2346
|
+
props: /* @__PURE__ */ G({
|
|
2345
2347
|
totalItems: {},
|
|
2346
2348
|
pageSize: {},
|
|
2347
2349
|
labels: {}
|
|
@@ -2349,14 +2351,14 @@ const vn = {
|
|
|
2349
2351
|
modelValue: { required: !0 },
|
|
2350
2352
|
modelModifiers: {}
|
|
2351
2353
|
}),
|
|
2352
|
-
emits: /* @__PURE__ */
|
|
2354
|
+
emits: /* @__PURE__ */ G(["change"], ["update:modelValue"]),
|
|
2353
2355
|
setup(e, { emit: n }) {
|
|
2354
|
-
const t = e, o =
|
|
2355
|
-
const x = Math.min(Math.max(1, Math.floor(b)),
|
|
2356
|
+
const t = e, o = ne(e, "modelValue"), l = n, i = k(() => Math.max(1, Math.ceil((t.totalItems ?? 0) / t.pageSize))), a = k(() => Math.min(Math.max(1, o.value ?? 1), i.value)), c = k(() => a.value), r = k(() => a.value <= 1), s = k(() => a.value >= i.value), u = k(() => t.labels?.item ?? "Eintrag"), d = k(() => t.labels?.of ?? "von"), v = (b) => {
|
|
2357
|
+
const x = Math.min(Math.max(1, Math.floor(b)), i.value);
|
|
2356
2358
|
x !== o.value && (o.value = x, l("change", x));
|
|
2357
|
-
}, p = () => v(1), h = () => v(
|
|
2359
|
+
}, p = () => v(1), h = () => v(a.value - 1), y = () => v(a.value + 1), m = () => v(i.value);
|
|
2358
2360
|
return K([() => t.totalItems, () => t.pageSize], () => {
|
|
2359
|
-
o.value >
|
|
2361
|
+
o.value > i.value && v(i.value);
|
|
2360
2362
|
}), (b, x) => {
|
|
2361
2363
|
const w = q("VjButton");
|
|
2362
2364
|
return f(), g("nav", {
|
|
@@ -2369,7 +2371,7 @@ const vn = {
|
|
|
2369
2371
|
tertiary: "",
|
|
2370
2372
|
class: "paginator-btn",
|
|
2371
2373
|
icon: $(z).FIRST,
|
|
2372
|
-
disabled:
|
|
2374
|
+
disabled: r.value,
|
|
2373
2375
|
onClick: p,
|
|
2374
2376
|
"aria-label": "First page"
|
|
2375
2377
|
}, null, 8, ["icon", "disabled"]),
|
|
@@ -2377,22 +2379,22 @@ const vn = {
|
|
|
2377
2379
|
tertiary: "",
|
|
2378
2380
|
class: "paginator-btn",
|
|
2379
2381
|
icon: $(z).PREVIOUS,
|
|
2380
|
-
disabled:
|
|
2382
|
+
disabled: r.value,
|
|
2381
2383
|
onClick: h,
|
|
2382
2384
|
"aria-label": "Previous page"
|
|
2383
2385
|
}, null, 8, ["icon", "disabled"]),
|
|
2384
2386
|
M(b.$slots, "info", {
|
|
2385
|
-
current:
|
|
2386
|
-
totalPages:
|
|
2387
|
+
current: a.value,
|
|
2388
|
+
totalPages: i.value,
|
|
2387
2389
|
goTo: v
|
|
2388
2390
|
}, () => [
|
|
2389
|
-
_("div", da, O(u.value) + " " + O(c.value) + " " + O(d.value) + " " + O(
|
|
2391
|
+
_("div", da, O(u.value) + " " + O(c.value) + " " + O(d.value) + " " + O(i.value), 1)
|
|
2390
2392
|
], !0),
|
|
2391
2393
|
T(w, {
|
|
2392
2394
|
tertiary: "",
|
|
2393
2395
|
class: "paginator-btn",
|
|
2394
2396
|
icon: $(z).NEXT,
|
|
2395
|
-
disabled:
|
|
2397
|
+
disabled: s.value,
|
|
2396
2398
|
onClick: y,
|
|
2397
2399
|
"aria-label": "Next page"
|
|
2398
2400
|
}, null, 8, ["icon", "disabled"]),
|
|
@@ -2400,7 +2402,7 @@ const vn = {
|
|
|
2400
2402
|
tertiary: "",
|
|
2401
2403
|
class: "paginator-btn",
|
|
2402
2404
|
icon: $(z).LAST,
|
|
2403
|
-
disabled:
|
|
2405
|
+
disabled: s.value,
|
|
2404
2406
|
onClick: m,
|
|
2405
2407
|
"aria-label": "Last page"
|
|
2406
2408
|
}, null, 8, ["icon", "disabled"])
|
|
@@ -2409,7 +2411,7 @@ const vn = {
|
|
|
2409
2411
|
}
|
|
2410
2412
|
}), va = /* @__PURE__ */ A(fa, [["__scopeId", "data-v-b6fa8efe"]]), ma = { class: "search-field" }, pa = ["value", "placeholder"], ha = /* @__PURE__ */ R({
|
|
2411
2413
|
__name: "search-field",
|
|
2412
|
-
props: /* @__PURE__ */
|
|
2414
|
+
props: /* @__PURE__ */ G({
|
|
2413
2415
|
placeholder: { default: "Search..." }
|
|
2414
2416
|
}, {
|
|
2415
2417
|
modelValue: {},
|
|
@@ -2417,12 +2419,12 @@ const vn = {
|
|
|
2417
2419
|
}),
|
|
2418
2420
|
emits: ["update:modelValue"],
|
|
2419
2421
|
setup(e) {
|
|
2420
|
-
const n =
|
|
2421
|
-
n.value =
|
|
2422
|
+
const n = ne(e, "modelValue"), t = (i) => {
|
|
2423
|
+
n.value = i.target.value;
|
|
2422
2424
|
}, o = () => {
|
|
2423
2425
|
n.value = "";
|
|
2424
2426
|
}, l = k(() => !n.value);
|
|
2425
|
-
return (
|
|
2427
|
+
return (i, a) => {
|
|
2426
2428
|
const c = q("VjIcon");
|
|
2427
2429
|
return f(), g("div", ma, [
|
|
2428
2430
|
T(c, {
|
|
@@ -2467,14 +2469,14 @@ const vn = {
|
|
|
2467
2469
|
const n = e, t = vt("tabView"), o = k(() => t?.activeTab() === n.name);
|
|
2468
2470
|
return Re(() => {
|
|
2469
2471
|
t?.registerTab(n.name, n.label);
|
|
2470
|
-
}), (l,
|
|
2472
|
+
}), (l, i) => o.value ? (f(), g("div", wa, [
|
|
2471
2473
|
M(l.$slots, "default")
|
|
2472
2474
|
])) : L("", !0);
|
|
2473
2475
|
}
|
|
2474
2476
|
}), xa = { class: "tab-view" }, ka = {
|
|
2475
2477
|
ref: "headerRef",
|
|
2476
2478
|
class: "tab-view-header"
|
|
2477
|
-
},
|
|
2479
|
+
}, Va = ["onClick"], Ca = { class: "tab-view-content" }, Ea = /* @__PURE__ */ R({
|
|
2478
2480
|
__name: "tab-view",
|
|
2479
2481
|
props: {
|
|
2480
2482
|
modelValue: {},
|
|
@@ -2482,51 +2484,51 @@ const vn = {
|
|
|
2482
2484
|
},
|
|
2483
2485
|
emits: ["update:modelValue"],
|
|
2484
2486
|
setup(e) {
|
|
2485
|
-
const n =
|
|
2487
|
+
const n = ne(e, "modelValue"), t = E([]), o = E([]), l = E({
|
|
2486
2488
|
width: "0px",
|
|
2487
2489
|
transform: "translateX(0px)"
|
|
2488
|
-
}),
|
|
2489
|
-
|
|
2490
|
-
},
|
|
2491
|
-
const
|
|
2492
|
-
if (
|
|
2493
|
-
const u = o.value[
|
|
2490
|
+
}), i = (s, u) => {
|
|
2491
|
+
s && (o.value[u] = s);
|
|
2492
|
+
}, a = () => {
|
|
2493
|
+
const s = t.value.findIndex((u) => u.name === n.value);
|
|
2494
|
+
if (s >= 0 && o.value[s]) {
|
|
2495
|
+
const u = o.value[s], d = u.offsetWidth, v = u.offsetLeft;
|
|
2494
2496
|
l.value = {
|
|
2495
2497
|
width: `${d}px`,
|
|
2496
2498
|
transform: `translateX(${v}px)`
|
|
2497
2499
|
};
|
|
2498
2500
|
}
|
|
2499
|
-
}, c = (
|
|
2500
|
-
t.value.find((d) => d.name ===
|
|
2501
|
-
!n.value && t.value.length === 1 && (n.value =
|
|
2501
|
+
}, c = (s, u) => {
|
|
2502
|
+
t.value.find((d) => d.name === s) || (t.value.push({ name: s, label: u }), he(() => {
|
|
2503
|
+
!n.value && t.value.length === 1 && (n.value = s), a();
|
|
2502
2504
|
}));
|
|
2503
|
-
},
|
|
2504
|
-
n.value =
|
|
2505
|
+
}, r = (s) => {
|
|
2506
|
+
n.value = s;
|
|
2505
2507
|
};
|
|
2506
2508
|
return K(n, () => {
|
|
2507
2509
|
he(() => {
|
|
2508
|
-
|
|
2510
|
+
a();
|
|
2509
2511
|
});
|
|
2510
2512
|
}), Xt("tabView", {
|
|
2511
2513
|
activeTab: () => n.value,
|
|
2512
2514
|
registerTab: c
|
|
2513
|
-
}), (
|
|
2515
|
+
}), (s, u) => (f(), g("div", xa, [
|
|
2514
2516
|
_("div", ka, [
|
|
2515
2517
|
(f(!0), g(Q, null, pe(t.value, (d, v) => (f(), g("div", {
|
|
2516
2518
|
key: d.name,
|
|
2517
2519
|
ref_for: !0,
|
|
2518
|
-
ref: (p) =>
|
|
2520
|
+
ref: (p) => i(p, v),
|
|
2519
2521
|
class: I(["tab-button", { active: n.value === d.name }]),
|
|
2520
|
-
onClick: (p) =>
|
|
2521
|
-
}, O(d.label), 11,
|
|
2522
|
+
onClick: (p) => r(d.name)
|
|
2523
|
+
}, O(d.label), 11, Va))), 128)),
|
|
2522
2524
|
u[0] || (u[0] = _("div", { class: "tab-line" }, null, -1)),
|
|
2523
2525
|
_("div", {
|
|
2524
2526
|
class: "tab-indicator",
|
|
2525
|
-
style:
|
|
2527
|
+
style: Y(l.value)
|
|
2526
2528
|
}, null, 4)
|
|
2527
2529
|
], 512),
|
|
2528
|
-
_("div",
|
|
2529
|
-
M(
|
|
2530
|
+
_("div", Ca, [
|
|
2531
|
+
M(s.$slots, "default", {}, void 0, !0)
|
|
2530
2532
|
])
|
|
2531
2533
|
]));
|
|
2532
2534
|
}
|
|
@@ -2547,17 +2549,17 @@ const vn = {
|
|
|
2547
2549
|
l: { size: 40, strokeWidth: 2, innerStrokeWidth: 6 },
|
|
2548
2550
|
xl: { size: 64, strokeWidth: 2, innerStrokeWidth: 8 },
|
|
2549
2551
|
xxl: { size: 92, strokeWidth: 2, innerStrokeWidth: 10 }
|
|
2550
|
-
}, o = e, l = n,
|
|
2552
|
+
}, o = e, l = n, i = k(() => t[o.timerSize].size), a = k(() => t[o.timerSize].strokeWidth), c = k(() => t[o.timerSize].innerStrokeWidth), r = E(!1), s = E(100), u = E(!1), d = E(o.paused);
|
|
2551
2553
|
let v = null, p = null, h = 0;
|
|
2552
|
-
const y = k(() => (
|
|
2554
|
+
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));
|
|
2553
2555
|
K(
|
|
2554
2556
|
() => o.paused,
|
|
2555
2557
|
(F) => {
|
|
2556
|
-
d.value = F, F ?
|
|
2558
|
+
d.value = F, F ? V() : C();
|
|
2557
2559
|
}
|
|
2558
2560
|
), Re(() => {
|
|
2559
2561
|
w();
|
|
2560
|
-
}),
|
|
2562
|
+
}), Vn(() => {
|
|
2561
2563
|
D();
|
|
2562
2564
|
});
|
|
2563
2565
|
function x() {
|
|
@@ -2569,46 +2571,46 @@ const vn = {
|
|
|
2569
2571
|
function S() {
|
|
2570
2572
|
if (!p || d.value) return;
|
|
2571
2573
|
h = performance.now() - p;
|
|
2572
|
-
const W = Math.max(0, o.duration - h),
|
|
2573
|
-
|
|
2574
|
+
const W = Math.max(0, o.duration - h), oe = W / o.duration * 100;
|
|
2575
|
+
s.value = oe, W > 0 ? v = requestAnimationFrame(S) : j();
|
|
2574
2576
|
}
|
|
2575
2577
|
async function j() {
|
|
2576
2578
|
if (!o.action) {
|
|
2577
2579
|
H();
|
|
2578
2580
|
return;
|
|
2579
2581
|
}
|
|
2580
|
-
|
|
2582
|
+
r.value = !0;
|
|
2581
2583
|
try {
|
|
2582
2584
|
await o.action();
|
|
2583
2585
|
} catch (F) {
|
|
2584
2586
|
console.error("Timer action failed:", F);
|
|
2585
2587
|
} finally {
|
|
2586
|
-
|
|
2588
|
+
r.value = !1, H();
|
|
2587
2589
|
}
|
|
2588
2590
|
}
|
|
2589
2591
|
function H() {
|
|
2590
2592
|
u.value = !0, h = 0, requestAnimationFrame(() => {
|
|
2591
|
-
|
|
2593
|
+
s.value = 100, requestAnimationFrame(() => {
|
|
2592
2594
|
u.value = !1, w();
|
|
2593
2595
|
});
|
|
2594
2596
|
});
|
|
2595
2597
|
}
|
|
2596
|
-
function
|
|
2598
|
+
function V() {
|
|
2597
2599
|
v !== null && (cancelAnimationFrame(v), v = null);
|
|
2598
2600
|
}
|
|
2599
|
-
function
|
|
2600
|
-
v === null && !
|
|
2601
|
+
function C() {
|
|
2602
|
+
v === null && !r.value && w();
|
|
2601
2603
|
}
|
|
2602
2604
|
function D() {
|
|
2603
2605
|
v !== null && (cancelAnimationFrame(v), v = null);
|
|
2604
2606
|
}
|
|
2605
2607
|
return (F, W) => (f(), g("svg", {
|
|
2606
|
-
width:
|
|
2607
|
-
height:
|
|
2608
|
+
width: i.value,
|
|
2609
|
+
height: i.value,
|
|
2608
2610
|
class: I([
|
|
2609
2611
|
"vj-timer",
|
|
2610
2612
|
{
|
|
2611
|
-
"vj-timer--executing":
|
|
2613
|
+
"vj-timer--executing": r.value,
|
|
2612
2614
|
"vj-timer--resetting": u.value,
|
|
2613
2615
|
"vj-timer--pausable": e.pausable,
|
|
2614
2616
|
"vj-timer--paused": d.value
|
|
@@ -2624,16 +2626,16 @@ const vn = {
|
|
|
2624
2626
|
]
|
|
2625
2627
|
}, [
|
|
2626
2628
|
_("circle", {
|
|
2627
|
-
cx:
|
|
2628
|
-
cy:
|
|
2629
|
+
cx: i.value / 2,
|
|
2630
|
+
cy: i.value / 2,
|
|
2629
2631
|
r: y.value,
|
|
2630
|
-
"stroke-width":
|
|
2632
|
+
"stroke-width": a.value,
|
|
2631
2633
|
class: "vj-timer__outer-ring",
|
|
2632
2634
|
fill: "none"
|
|
2633
2635
|
}, null, 8, Sa),
|
|
2634
2636
|
_("circle", {
|
|
2635
|
-
cx:
|
|
2636
|
-
cy:
|
|
2637
|
+
cx: i.value / 2,
|
|
2638
|
+
cy: i.value / 2,
|
|
2637
2639
|
r: y.value,
|
|
2638
2640
|
"stroke-width": c.value,
|
|
2639
2641
|
"stroke-dasharray": m.value,
|
|
@@ -2644,28 +2646,28 @@ const vn = {
|
|
|
2644
2646
|
d.value ? (f(), g("g", {
|
|
2645
2647
|
key: 0,
|
|
2646
2648
|
class: "vj-timer__pause-icon",
|
|
2647
|
-
transform: `translate(${
|
|
2649
|
+
transform: `translate(${i.value / 2},${i.value / 2}) rotate(-90) scale(-1, 1)`
|
|
2648
2650
|
}, [
|
|
2649
2651
|
_("rect", {
|
|
2650
|
-
x: -
|
|
2651
|
-
y: -
|
|
2652
|
-
width:
|
|
2653
|
-
height:
|
|
2654
|
-
rx:
|
|
2652
|
+
x: -i.value * 0.12,
|
|
2653
|
+
y: -i.value * 0.15,
|
|
2654
|
+
width: i.value * 0.08,
|
|
2655
|
+
height: i.value * 0.3,
|
|
2656
|
+
rx: i.value * 0.015,
|
|
2655
2657
|
class: "vj-timer__pause-bar"
|
|
2656
2658
|
}, null, 8, Aa),
|
|
2657
2659
|
_("rect", {
|
|
2658
|
-
x:
|
|
2659
|
-
y: -
|
|
2660
|
-
width:
|
|
2661
|
-
height:
|
|
2662
|
-
rx:
|
|
2660
|
+
x: i.value * 0.04,
|
|
2661
|
+
y: -i.value * 0.15,
|
|
2662
|
+
width: i.value * 0.08,
|
|
2663
|
+
height: i.value * 0.3,
|
|
2664
|
+
rx: i.value * 0.015,
|
|
2663
2665
|
class: "vj-timer__pause-bar"
|
|
2664
2666
|
}, null, 8, Oa)
|
|
2665
2667
|
], 8, Ra)) : L("", !0)
|
|
2666
2668
|
], 42, La));
|
|
2667
2669
|
}
|
|
2668
|
-
}), Ba = /* @__PURE__ */ A(Da, [["__scopeId", "data-v-49a33853"]]),
|
|
2670
|
+
}), Ba = /* @__PURE__ */ A(Da, [["__scopeId", "data-v-49a33853"]]), Ma = ["onKeydown"], ja = /* @__PURE__ */ R({
|
|
2669
2671
|
__name: "editable-label",
|
|
2670
2672
|
props: {
|
|
2671
2673
|
modelValue: {},
|
|
@@ -2673,44 +2675,44 @@ const vn = {
|
|
|
2673
2675
|
},
|
|
2674
2676
|
emits: ["update:modelValue", "edit"],
|
|
2675
2677
|
setup(e, { emit: n }) {
|
|
2676
|
-
const t = e, o = n, l = k(() => t.modelValue ?? ""),
|
|
2678
|
+
const t = e, o = n, l = k(() => t.modelValue ?? ""), i = E(l.value), a = E(!1), c = E(!1), r = E(null), s = k(() => !!t.showIcon);
|
|
2677
2679
|
K(l, (p) => {
|
|
2678
|
-
|
|
2680
|
+
i.value = p;
|
|
2679
2681
|
});
|
|
2680
2682
|
function u() {
|
|
2681
|
-
|
|
2683
|
+
a.value = !0, he(() => r.value?.focus());
|
|
2682
2684
|
}
|
|
2683
2685
|
function d() {
|
|
2684
|
-
|
|
2686
|
+
a.value = !1, i.value !== l.value && (o("update:modelValue", i.value), o("edit", i.value));
|
|
2685
2687
|
}
|
|
2686
2688
|
function v() {
|
|
2687
|
-
|
|
2689
|
+
i.value = l.value, a.value = !1;
|
|
2688
2690
|
}
|
|
2689
2691
|
return (p, h) => (f(), g("span", {
|
|
2690
|
-
class: I(["vj-editable-label", { editing:
|
|
2692
|
+
class: I(["vj-editable-label", { editing: a.value }]),
|
|
2691
2693
|
onMouseenter: h[1] || (h[1] = (y) => c.value = !0),
|
|
2692
2694
|
onMouseleave: h[2] || (h[2] = (y) => c.value = !1)
|
|
2693
2695
|
}, [
|
|
2694
|
-
|
|
2696
|
+
a.value ? ft((f(), g("input", {
|
|
2695
2697
|
key: 1,
|
|
2696
2698
|
ref_key: "inputRef",
|
|
2697
|
-
ref:
|
|
2699
|
+
ref: r,
|
|
2698
2700
|
class: "edit-input",
|
|
2699
|
-
"onUpdate:modelValue": h[0] || (h[0] = (y) =>
|
|
2701
|
+
"onUpdate:modelValue": h[0] || (h[0] = (y) => i.value = y),
|
|
2700
2702
|
onKeydown: [
|
|
2701
2703
|
Be(U(d, ["prevent"]), ["enter"]),
|
|
2702
2704
|
Be(U(v, ["prevent"]), ["esc"])
|
|
2703
2705
|
],
|
|
2704
2706
|
onBlur: d
|
|
2705
|
-
}, null, 40,
|
|
2706
|
-
[
|
|
2707
|
+
}, null, 40, Ma)), [
|
|
2708
|
+
[Cn, i.value]
|
|
2707
2709
|
]) : (f(), g(Q, { key: 0 }, [
|
|
2708
2710
|
_("span", {
|
|
2709
2711
|
class: "label-text",
|
|
2710
2712
|
onClick: u,
|
|
2711
2713
|
title: "Click to edit"
|
|
2712
2714
|
}, O(l.value), 1),
|
|
2713
|
-
c.value ||
|
|
2715
|
+
c.value || s.value ? (f(), g("span", {
|
|
2714
2716
|
key: 0,
|
|
2715
2717
|
class: "edit-icon",
|
|
2716
2718
|
onClick: U(u, ["stop"])
|
|
@@ -2722,7 +2724,7 @@ const vn = {
|
|
|
2722
2724
|
], 64))
|
|
2723
2725
|
], 34));
|
|
2724
2726
|
}
|
|
2725
|
-
}), ps = /* @__PURE__ */ A(
|
|
2727
|
+
}), ps = /* @__PURE__ */ A(ja, [["__scopeId", "data-v-cdc52c5b"]]), Pa = "200% 200%", Fa = /* @__PURE__ */ R({
|
|
2726
2728
|
__name: "skeleton",
|
|
2727
2729
|
props: {
|
|
2728
2730
|
width: {},
|
|
@@ -2731,9 +2733,9 @@ const vn = {
|
|
|
2731
2733
|
},
|
|
2732
2734
|
setup(e) {
|
|
2733
2735
|
const n = e, t = k(() => n.width ?? "100%"), o = k(() => n.height ?? "16px"), l = k(() => n.borderRadius ?? "4px");
|
|
2734
|
-
return (
|
|
2736
|
+
return (i, a) => (f(), g("div", {
|
|
2735
2737
|
class: "vj-skeleton",
|
|
2736
|
-
style:
|
|
2738
|
+
style: Y({
|
|
2737
2739
|
width: t.value,
|
|
2738
2740
|
height: o.value,
|
|
2739
2741
|
borderRadius: l.value,
|
|
@@ -2751,12 +2753,12 @@ const vn = {
|
|
|
2751
2753
|
colorMode: { default: "monochrome" }
|
|
2752
2754
|
},
|
|
2753
2755
|
setup(e) {
|
|
2754
|
-
const n = e, t = k(() => n.amount / n.maxAmount * 100), o = (
|
|
2756
|
+
const n = e, t = k(() => n.amount / n.maxAmount * 100), o = (i) => {
|
|
2755
2757
|
if (!n.segments) return !1;
|
|
2756
|
-
const
|
|
2758
|
+
const a = 100 / n.segments, c = i * a;
|
|
2757
2759
|
return t.value > c;
|
|
2758
|
-
}, l = (
|
|
2759
|
-
return (
|
|
2760
|
+
}, l = (i) => (160 - i / (n.segments - 1 || 1) * 160).toString();
|
|
2761
|
+
return (i, a) => (f(), g("div", {
|
|
2760
2762
|
class: I([
|
|
2761
2763
|
"amount-bar",
|
|
2762
2764
|
{
|
|
@@ -2766,14 +2768,14 @@ const vn = {
|
|
|
2766
2768
|
}
|
|
2767
2769
|
])
|
|
2768
2770
|
}, [
|
|
2769
|
-
e.segments ? (f(!0), g(Q, { key: 0 }, pe(Array.from({ length: e.segments }), (c,
|
|
2770
|
-
key:
|
|
2771
|
-
class: I(["amount-bar__segment", { "amount-bar__segment--filled": o(
|
|
2772
|
-
style:
|
|
2771
|
+
e.segments ? (f(!0), g(Q, { key: 0 }, pe(Array.from({ length: e.segments }), (c, r) => (f(), g("div", {
|
|
2772
|
+
key: r,
|
|
2773
|
+
class: I(["amount-bar__segment", { "amount-bar__segment--filled": o(r) }]),
|
|
2774
|
+
style: Y(o(r) && e.colorMode === "hue-gradient" ? { backgroundColor: `hsl(${l(r)}, 100%, 45%)` } : {})
|
|
2773
2775
|
}, null, 6))), 128)) : (f(), g("div", {
|
|
2774
2776
|
key: 1,
|
|
2775
2777
|
class: "amount-bar__fill",
|
|
2776
|
-
style:
|
|
2778
|
+
style: Y({ width: `${e.amount / e.maxAmount * 100}%` })
|
|
2777
2779
|
}, null, 4))
|
|
2778
2780
|
], 2));
|
|
2779
2781
|
}
|
|
@@ -2782,7 +2784,7 @@ const vn = {
|
|
|
2782
2784
|
class: "upload-files"
|
|
2783
2785
|
}, qa = { class: "file-info" }, Ga = { class: "file-details" }, Ya = { class: "file-name" }, Ja = { class: "file-size" }, Qa = /* @__PURE__ */ R({
|
|
2784
2786
|
__name: "upload",
|
|
2785
|
-
props: /* @__PURE__ */
|
|
2787
|
+
props: /* @__PURE__ */ G({
|
|
2786
2788
|
multiple: { type: Boolean, default: !0 },
|
|
2787
2789
|
accept: { default: "*" },
|
|
2788
2790
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -2797,18 +2799,18 @@ const vn = {
|
|
|
2797
2799
|
},
|
|
2798
2800
|
modelModifiers: {}
|
|
2799
2801
|
}),
|
|
2800
|
-
emits: /* @__PURE__ */
|
|
2802
|
+
emits: /* @__PURE__ */ G(["update:modelValue", "file-added", "file-removed"], ["update:modelValue"]),
|
|
2801
2803
|
setup(e, { emit: n }) {
|
|
2802
|
-
const t = e, o = n, l =
|
|
2804
|
+
const t = e, o = n, l = ne(e, "modelValue"), i = E(), a = E(!1), c = E(!1), r = (y) => {
|
|
2803
2805
|
const m = y.target, b = Array.from(m.files || []);
|
|
2804
|
-
v(b),
|
|
2805
|
-
},
|
|
2806
|
-
t.disabled || (
|
|
2806
|
+
v(b), i.value && (i.value.value = "");
|
|
2807
|
+
}, s = () => {
|
|
2808
|
+
t.disabled || (a.value = !0, c.value = !0);
|
|
2807
2809
|
}, u = () => {
|
|
2808
|
-
|
|
2810
|
+
a.value = !1, c.value = !1;
|
|
2809
2811
|
}, d = (y) => {
|
|
2810
2812
|
if (t.disabled) return;
|
|
2811
|
-
|
|
2813
|
+
a.value = !1, c.value = !1;
|
|
2812
2814
|
const m = Array.from(y.dataTransfer?.files || []);
|
|
2813
2815
|
v(m);
|
|
2814
2816
|
}, v = (y) => {
|
|
@@ -2825,25 +2827,25 @@ const vn = {
|
|
|
2825
2827
|
return Math.round(y / Math.pow(m, x) * 100) / 100 + " " + b[x];
|
|
2826
2828
|
};
|
|
2827
2829
|
return (y, m) => (f(), g("div", {
|
|
2828
|
-
class: I(["upload", { dragging:
|
|
2830
|
+
class: I(["upload", { dragging: a.value, disabled: e.disabled }])
|
|
2829
2831
|
}, [
|
|
2830
2832
|
_("input", {
|
|
2831
2833
|
ref_key: "fileInput",
|
|
2832
|
-
ref:
|
|
2834
|
+
ref: i,
|
|
2833
2835
|
type: "file",
|
|
2834
2836
|
multiple: e.multiple,
|
|
2835
2837
|
accept: e.accept,
|
|
2836
2838
|
disabled: e.disabled,
|
|
2837
2839
|
class: "upload-input",
|
|
2838
|
-
onChange:
|
|
2839
|
-
onDragover:
|
|
2840
|
+
onChange: r,
|
|
2841
|
+
onDragover: s,
|
|
2840
2842
|
onDragleave: u,
|
|
2841
2843
|
onDrop: d
|
|
2842
2844
|
}, null, 40, Wa),
|
|
2843
2845
|
_("div", {
|
|
2844
2846
|
class: "upload-content",
|
|
2845
|
-
onClick: m[1] || (m[1] = (b) =>
|
|
2846
|
-
onDragover: U(
|
|
2847
|
+
onClick: m[1] || (m[1] = (b) => i.value?.click()),
|
|
2848
|
+
onDragover: U(s, ["prevent"]),
|
|
2847
2849
|
onDragleave: U(u, ["prevent"]),
|
|
2848
2850
|
onDrop: U(d, ["prevent"])
|
|
2849
2851
|
}, [
|
|
@@ -2860,7 +2862,7 @@ const vn = {
|
|
|
2860
2862
|
label: e.browseText,
|
|
2861
2863
|
primary: !0,
|
|
2862
2864
|
disabled: e.disabled,
|
|
2863
|
-
onClick: m[0] || (m[0] = U((b) =>
|
|
2865
|
+
onClick: m[0] || (m[0] = U((b) => i.value?.click(), ["stop"]))
|
|
2864
2866
|
}, null, 8, ["label", "disabled"])
|
|
2865
2867
|
], 32),
|
|
2866
2868
|
l.value.length > 0 ? (f(), g("div", Xa, [
|
|
@@ -2944,26 +2946,26 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
2944
2946
|
},
|
|
2945
2947
|
emits: ["update:modelValue", "focus", "blur"],
|
|
2946
2948
|
setup(e, { emit: n }) {
|
|
2947
|
-
const t = e, o = n, l = E(t.modelValue),
|
|
2949
|
+
const t = e, o = n, l = E(t.modelValue), i = E(!1), a = k(() => `form-field-${t.id ?? Math.random().toString(36).slice(2)}`), c = k(() => t.labelPosition ?? Ut().form.labelPosition), r = k(() => t.appearance ?? Ut().form.appearance);
|
|
2948
2950
|
K(
|
|
2949
2951
|
() => t.modelValue,
|
|
2950
2952
|
(h) => l.value = h
|
|
2951
2953
|
);
|
|
2952
|
-
const
|
|
2954
|
+
const s = k(() => {
|
|
2953
2955
|
if (c.value === "outline")
|
|
2954
2956
|
return !0;
|
|
2955
2957
|
const h = l.value !== "" && l.value !== null && l.value !== void 0;
|
|
2956
|
-
return
|
|
2957
|
-
}), u = k(() => c.value === "outline" ||
|
|
2958
|
+
return i.value || h;
|
|
2959
|
+
}), u = k(() => c.value === "outline" || s.value ? t.placeholder : "");
|
|
2958
2960
|
function d(h) {
|
|
2959
2961
|
const m = h.target.value;
|
|
2960
2962
|
l.value = m, o("update:modelValue", m);
|
|
2961
2963
|
}
|
|
2962
2964
|
function v(h) {
|
|
2963
|
-
|
|
2965
|
+
i.value = !0, o("focus", h);
|
|
2964
2966
|
}
|
|
2965
2967
|
function p(h) {
|
|
2966
|
-
|
|
2968
|
+
i.value = !1, o("blur", h);
|
|
2967
2969
|
}
|
|
2968
2970
|
return (h, y) => {
|
|
2969
2971
|
const m = q("VjIcon"), b = qt("tooltip");
|
|
@@ -2971,23 +2973,23 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
2971
2973
|
class: I([
|
|
2972
2974
|
"form-field",
|
|
2973
2975
|
`form-field--${c.value}`,
|
|
2974
|
-
`form-field--${
|
|
2976
|
+
`form-field--${r.value}`,
|
|
2975
2977
|
{ disabled: e.disabled },
|
|
2976
2978
|
{ labelless: !e.label },
|
|
2977
2979
|
{ error: !!e.error }
|
|
2978
2980
|
]),
|
|
2979
2981
|
"data-colspan": t.spanRow ? void 0 : t.colspan,
|
|
2980
2982
|
"data-newline": t.spanRow || t.newLine ? "true" : void 0,
|
|
2981
|
-
style:
|
|
2983
|
+
style: Y(t.spanRow ? { gridColumn: "1 / -1" } : void 0)
|
|
2982
2984
|
}, [
|
|
2983
2985
|
e.label && c.value === "outline" ? (f(), g("label", {
|
|
2984
2986
|
key: 0,
|
|
2985
|
-
for:
|
|
2987
|
+
for: a.value,
|
|
2986
2988
|
class: "form-field__label-outline"
|
|
2987
2989
|
}, O(e.label), 9, ti)) : L("", !0),
|
|
2988
2990
|
_("div", ni, [
|
|
2989
2991
|
M(h.$slots, "control", {
|
|
2990
|
-
id:
|
|
2992
|
+
id: a.value,
|
|
2991
2993
|
value: l.value,
|
|
2992
2994
|
onInput: d,
|
|
2993
2995
|
onFocus: v,
|
|
@@ -2997,8 +2999,8 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
2997
2999
|
}, void 0, !0),
|
|
2998
3000
|
e.label && c.value === "inline" ? (f(), g("label", {
|
|
2999
3001
|
key: 0,
|
|
3000
|
-
for:
|
|
3001
|
-
class: I(["form-field__label", { "form-field__label--float":
|
|
3002
|
+
for: a.value,
|
|
3003
|
+
class: I(["form-field__label", { "form-field__label--float": s.value }])
|
|
3002
3004
|
}, O(e.label), 11, oi)) : L("", !0)
|
|
3003
3005
|
]),
|
|
3004
3006
|
e.error ? (f(), g("div", li, O(e.error), 1)) : L("", !0),
|
|
@@ -3023,9 +3025,9 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3023
3025
|
let o = null;
|
|
3024
3026
|
function l() {
|
|
3025
3027
|
if (!t.value) return;
|
|
3026
|
-
Array.from(t.value.children).forEach((
|
|
3027
|
-
const c =
|
|
3028
|
-
|
|
3028
|
+
Array.from(t.value.children).forEach((a) => {
|
|
3029
|
+
const c = a.getAttribute("data-colspan"), r = c ? Math.max(1, Number(c) || 1) : 1, s = a.getAttribute("data-newline");
|
|
3030
|
+
s !== null && s !== "false" ? a.style.gridColumn = "1 / -1" : a.style.gridColumn = `span ${r}`;
|
|
3029
3031
|
});
|
|
3030
3032
|
}
|
|
3031
3033
|
return Re(() => {
|
|
@@ -3040,13 +3042,13 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3040
3042
|
), K(
|
|
3041
3043
|
() => n.gap,
|
|
3042
3044
|
() => he(l)
|
|
3043
|
-
), (
|
|
3045
|
+
), (i, a) => (f(), g("div", {
|
|
3044
3046
|
ref_key: "container",
|
|
3045
3047
|
ref: t,
|
|
3046
3048
|
class: "form-layout",
|
|
3047
|
-
style:
|
|
3049
|
+
style: Y({ gridTemplateColumns: `repeat(${e.columns}, minmax(0, 1fr))`, gap: e.gap })
|
|
3048
3050
|
}, [
|
|
3049
|
-
M(
|
|
3051
|
+
M(i.$slots, "default", {}, void 0, !0)
|
|
3050
3052
|
], 4));
|
|
3051
3053
|
}
|
|
3052
3054
|
}), ri = /* @__PURE__ */ A(si, [["__scopeId", "data-v-96f62ab7"]]), ci = {
|
|
@@ -3070,7 +3072,7 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3070
3072
|
}, pi = { class: "select-options" }, hi = ["onClick", "onMouseenter"], gi = /* @__PURE__ */ R({
|
|
3071
3073
|
inheritAttrs: !1,
|
|
3072
3074
|
__name: "select",
|
|
3073
|
-
props: /* @__PURE__ */
|
|
3075
|
+
props: /* @__PURE__ */ G({
|
|
3074
3076
|
options: {},
|
|
3075
3077
|
placeholder: {},
|
|
3076
3078
|
disabled: { type: Boolean },
|
|
@@ -3085,7 +3087,7 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3085
3087
|
}),
|
|
3086
3088
|
emits: ["update:modelValue"],
|
|
3087
3089
|
setup(e, { expose: n }) {
|
|
3088
|
-
const t = e, o =
|
|
3090
|
+
const t = e, o = ne(e, "modelValue"), l = E(!1), i = E(-1), a = E(null), c = E(null), r = E(null), { floatingStyles: s } = wt(c, r, {
|
|
3089
3091
|
placement: "bottom-start",
|
|
3090
3092
|
middleware: [
|
|
3091
3093
|
tt(4),
|
|
@@ -3103,20 +3105,20 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3103
3105
|
}), u = (w) => t.optionLabel ? typeof t.optionLabel == "function" ? t.optionLabel(w) : String(w[t.optionLabel]) : String(w), d = (w) => t.optionValue ? typeof t.optionValue == "function" ? t.optionValue(w) : w[t.optionValue] : w, v = k(() => t.options.find((w) => d(w) === o.value)), p = (w) => d(w) === o.value, h = () => {
|
|
3104
3106
|
t.disabled || (l.value = !l.value);
|
|
3105
3107
|
}, y = () => {
|
|
3106
|
-
l.value = !1,
|
|
3108
|
+
l.value = !1, i.value = -1;
|
|
3107
3109
|
}, m = (w) => {
|
|
3108
3110
|
o.value = d(w), y();
|
|
3109
3111
|
}, b = () => {
|
|
3110
3112
|
o.value = void 0;
|
|
3111
3113
|
}, x = (w) => {
|
|
3112
|
-
l.value &&
|
|
3114
|
+
l.value && a.value && !a.value.contains(w.target) && y();
|
|
3113
3115
|
};
|
|
3114
3116
|
return Re(() => {
|
|
3115
3117
|
document.addEventListener("click", x);
|
|
3116
3118
|
}), Ae(() => {
|
|
3117
3119
|
document.removeEventListener("click", x);
|
|
3118
3120
|
}), K(l, (w) => {
|
|
3119
|
-
w && v.value && (
|
|
3121
|
+
w && v.value && (i.value = t.options.findIndex((S) => p(S)));
|
|
3120
3122
|
}), n({
|
|
3121
3123
|
focus: () => c.value?.focus(),
|
|
3122
3124
|
blur: () => c.value?.blur()
|
|
@@ -3125,7 +3127,7 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3125
3127
|
return f(), g(Q, null, [
|
|
3126
3128
|
_("div", {
|
|
3127
3129
|
ref_key: "selectRef",
|
|
3128
|
-
ref:
|
|
3130
|
+
ref: a,
|
|
3129
3131
|
class: I(["select", w.$attrs.class])
|
|
3130
3132
|
}, [
|
|
3131
3133
|
_("button", {
|
|
@@ -3165,22 +3167,22 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3165
3167
|
}, null, 8, ["icon", "size", "class"])
|
|
3166
3168
|
], 8, fi)
|
|
3167
3169
|
], 2),
|
|
3168
|
-
(f(), P(
|
|
3170
|
+
(f(), P(je, { to: "body" }, [
|
|
3169
3171
|
T(Le, { name: "dropdown" }, {
|
|
3170
3172
|
default: N(() => [
|
|
3171
3173
|
l.value ? (f(), g("div", {
|
|
3172
3174
|
key: 0,
|
|
3173
3175
|
ref_key: "floatingRef",
|
|
3174
|
-
ref:
|
|
3175
|
-
style:
|
|
3176
|
+
ref: r,
|
|
3177
|
+
style: Y($(s)),
|
|
3176
3178
|
class: "select-dropdown"
|
|
3177
3179
|
}, [
|
|
3178
3180
|
_("div", pi, [
|
|
3179
|
-
(f(!0), g(Q, null, pe(e.options, (H,
|
|
3181
|
+
(f(!0), g(Q, null, pe(e.options, (H, V) => (f(), g("div", {
|
|
3180
3182
|
key: String(d(H)),
|
|
3181
|
-
class: I(["select-option", { selected: p(H), highlighted:
|
|
3182
|
-
onClick: (
|
|
3183
|
-
onMouseenter: (
|
|
3183
|
+
class: I(["select-option", { selected: p(H), highlighted: i.value === V }]),
|
|
3184
|
+
onClick: (C) => m(H),
|
|
3185
|
+
onMouseenter: (C) => i.value = V
|
|
3184
3186
|
}, [
|
|
3185
3187
|
M(w.$slots, "option", {
|
|
3186
3188
|
option: H,
|
|
@@ -3203,7 +3205,7 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3203
3205
|
], 64);
|
|
3204
3206
|
};
|
|
3205
3207
|
}
|
|
3206
|
-
}), pn = /* @__PURE__ */ A(gi, [["__scopeId", "data-v-
|
|
3208
|
+
}), pn = /* @__PURE__ */ A(gi, [["__scopeId", "data-v-f33ae75c"]]), bi = /* @__PURE__ */ R({
|
|
3207
3209
|
__name: "input-select",
|
|
3208
3210
|
props: {
|
|
3209
3211
|
modelValue: {},
|
|
@@ -3225,16 +3227,16 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3225
3227
|
const t = e, o = n, l = E(t.modelValue);
|
|
3226
3228
|
K(
|
|
3227
3229
|
() => t.modelValue,
|
|
3228
|
-
(
|
|
3229
|
-
l.value =
|
|
3230
|
+
(a) => {
|
|
3231
|
+
l.value = a;
|
|
3230
3232
|
}
|
|
3231
3233
|
);
|
|
3232
|
-
const
|
|
3233
|
-
l.value =
|
|
3234
|
+
const i = (a) => {
|
|
3235
|
+
l.value = a, o("update:modelValue", a);
|
|
3234
3236
|
};
|
|
3235
|
-
return (
|
|
3237
|
+
return (a, c) => (f(), P(Ie, {
|
|
3236
3238
|
modelValue: l.value,
|
|
3237
|
-
"onUpdate:modelValue":
|
|
3239
|
+
"onUpdate:modelValue": i,
|
|
3238
3240
|
label: t.label,
|
|
3239
3241
|
id: t.id,
|
|
3240
3242
|
placeholder: t.placeholder,
|
|
@@ -3247,32 +3249,32 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3247
3249
|
labelPosition: t.labelPosition,
|
|
3248
3250
|
appearance: t.appearance
|
|
3249
3251
|
}, {
|
|
3250
|
-
control: N(({ id:
|
|
3252
|
+
control: N(({ id: r, disabled: s, placeholder: u }) => [
|
|
3251
3253
|
T(pn, {
|
|
3252
|
-
id:
|
|
3254
|
+
id: r,
|
|
3253
3255
|
modelValue: l.value,
|
|
3254
3256
|
"onUpdate:modelValue": [
|
|
3255
3257
|
c[0] || (c[0] = (d) => l.value = d),
|
|
3256
|
-
|
|
3258
|
+
i
|
|
3257
3259
|
],
|
|
3258
3260
|
options: t.options,
|
|
3259
3261
|
placeholder: u,
|
|
3260
|
-
disabled:
|
|
3262
|
+
disabled: s,
|
|
3261
3263
|
"option-label": (d) => d.label,
|
|
3262
3264
|
"option-value": (d) => d.value,
|
|
3263
3265
|
clearable: ""
|
|
3264
3266
|
}, dt({ _: 2 }, [
|
|
3265
|
-
|
|
3267
|
+
a.$slots.selected ? {
|
|
3266
3268
|
name: "selected",
|
|
3267
3269
|
fn: N(({ option: d }) => [
|
|
3268
|
-
M(
|
|
3270
|
+
M(a.$slots, "selected", { option: d })
|
|
3269
3271
|
]),
|
|
3270
3272
|
key: "0"
|
|
3271
3273
|
} : void 0,
|
|
3272
|
-
|
|
3274
|
+
a.$slots.option ? {
|
|
3273
3275
|
name: "option",
|
|
3274
3276
|
fn: N(({ option: d }) => [
|
|
3275
|
-
M(
|
|
3277
|
+
M(a.$slots, "option", { option: d })
|
|
3276
3278
|
]),
|
|
3277
3279
|
key: "1"
|
|
3278
3280
|
} : void 0
|
|
@@ -3292,75 +3294,75 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3292
3294
|
},
|
|
3293
3295
|
emits: ["update:modelValue", "change"],
|
|
3294
3296
|
setup(e, { emit: n }) {
|
|
3295
|
-
const t = e, o = n, l = E(null),
|
|
3297
|
+
const t = e, o = n, l = E(null), i = E(!1), a = E(!1), c = (V, C, D) => Math.min(Math.max(V, C), D), r = E(
|
|
3296
3298
|
t.range ? Array.isArray(t.modelValue) ? t.modelValue[0] : t.min : typeof t.modelValue == "number" ? t.modelValue : t.min
|
|
3297
|
-
),
|
|
3299
|
+
), s = E(t.range && Array.isArray(t.modelValue) ? t.modelValue[1] : t.max);
|
|
3298
3300
|
K(
|
|
3299
3301
|
() => t.modelValue,
|
|
3300
|
-
(
|
|
3301
|
-
t.range ? Array.isArray(
|
|
3302
|
+
(V) => {
|
|
3303
|
+
t.range ? Array.isArray(V) && (r.value = c(V[0], t.min, t.max), s.value = c(V[1], t.min, t.max)) : typeof V == "number" && (r.value = c(V, t.min, t.max));
|
|
3302
3304
|
},
|
|
3303
3305
|
{ immediate: !0 }
|
|
3304
3306
|
);
|
|
3305
|
-
const u = (
|
|
3306
|
-
if (!t.range) return { width: `${u(
|
|
3307
|
-
const
|
|
3308
|
-
return { left: `${
|
|
3307
|
+
const u = (V) => (V - t.min) / (t.max - t.min) * 100, d = k(() => ({ left: `${u(r.value)}%` })), v = k(() => ({ left: `${u(s.value)}%` })), p = k(() => {
|
|
3308
|
+
if (!t.range) return { width: `${u(r.value)}%`, left: "0%" };
|
|
3309
|
+
const V = u(r.value), C = u(s.value);
|
|
3310
|
+
return { left: `${V}%`, width: `${Math.max(0, C - V)}%` };
|
|
3309
3311
|
});
|
|
3310
3312
|
let h = null, y = null;
|
|
3311
|
-
const m = async (
|
|
3312
|
-
h =
|
|
3313
|
+
const m = async (V, C) => {
|
|
3314
|
+
h = V, y = C.pointerId, V === "low" ? i.value = !0 : a.value = !0;
|
|
3313
3315
|
try {
|
|
3314
|
-
|
|
3316
|
+
C.target.setPointerCapture(C.pointerId);
|
|
3315
3317
|
} catch {
|
|
3316
3318
|
}
|
|
3317
3319
|
window.addEventListener("pointermove", x), window.addEventListener("pointerup", b);
|
|
3318
|
-
}, b = (
|
|
3319
|
-
if (y != null &&
|
|
3320
|
+
}, b = (V) => {
|
|
3321
|
+
if (y != null && V)
|
|
3320
3322
|
try {
|
|
3321
|
-
|
|
3323
|
+
V.target.releasePointerCapture(V.pointerId);
|
|
3322
3324
|
} catch {
|
|
3323
3325
|
}
|
|
3324
|
-
h = null, y = null,
|
|
3325
|
-
}, x = (
|
|
3326
|
+
h = null, y = null, i.value = !1, a.value = !1, window.removeEventListener("pointermove", x), window.removeEventListener("pointerup", b), j();
|
|
3327
|
+
}, x = (V) => {
|
|
3326
3328
|
if (!h || !l.value) return;
|
|
3327
|
-
const
|
|
3328
|
-
h === "low" ? t.range ?
|
|
3329
|
-
}, w = (
|
|
3329
|
+
const C = l.value.getBoundingClientRect(), D = c(V.clientX - C.left, 0, C.width), F = t.min + D / C.width * (t.max - t.min), W = Math.round(F / t.step) * t.step;
|
|
3330
|
+
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));
|
|
3331
|
+
}, w = (V) => {
|
|
3330
3332
|
if (!l.value) return;
|
|
3331
|
-
const
|
|
3333
|
+
const C = l.value.getBoundingClientRect(), D = c(V.clientX - C.left, 0, C.width), F = t.min + D / C.width * (t.max - t.min), W = Math.round(F / t.step) * t.step;
|
|
3332
3334
|
if (t.range) {
|
|
3333
|
-
const
|
|
3334
|
-
|
|
3335
|
+
const oe = Math.abs(W - r.value), fe = Math.abs(W - s.value);
|
|
3336
|
+
oe <= fe ? r.value = Math.min(W, s.value) : s.value = Math.max(W, r.value);
|
|
3335
3337
|
} else
|
|
3336
|
-
|
|
3338
|
+
r.value = c(W, t.min, t.max);
|
|
3337
3339
|
j();
|
|
3338
|
-
}, S = (
|
|
3339
|
-
const D = t.step, F =
|
|
3340
|
+
}, S = (V, C) => {
|
|
3341
|
+
const D = t.step, F = C.key === "ArrowLeft" || C.key === "ArrowDown" ? -1 : C.key === "ArrowRight" || C.key === "ArrowUp" ? 1 : 0;
|
|
3340
3342
|
if (F) {
|
|
3341
|
-
if (
|
|
3342
|
-
const W = c(
|
|
3343
|
-
s.value = W, a.value = !0, setTimeout(() => a.value = !1, 800);
|
|
3344
|
-
} else {
|
|
3345
|
-
const W = c(r.value + F * D, t.range ? s.value : t.max, t.max);
|
|
3343
|
+
if (V === "low") {
|
|
3344
|
+
const W = c(r.value + F * D, t.min, t.range ? s.value : t.max);
|
|
3346
3345
|
r.value = W, i.value = !0, setTimeout(() => i.value = !1, 800);
|
|
3346
|
+
} else {
|
|
3347
|
+
const W = c(s.value + F * D, t.range ? r.value : t.max, t.max);
|
|
3348
|
+
s.value = W, a.value = !0, setTimeout(() => a.value = !1, 800);
|
|
3347
3349
|
}
|
|
3348
3350
|
j();
|
|
3349
3351
|
}
|
|
3350
3352
|
}, j = () => {
|
|
3351
|
-
t.range ? (o("update:modelValue", [
|
|
3353
|
+
t.range ? (o("update:modelValue", [r.value, s.value]), o("change", [r.value, s.value])) : (o("update:modelValue", r.value), o("change", r.value));
|
|
3352
3354
|
};
|
|
3353
3355
|
Ae(() => {
|
|
3354
3356
|
window.removeEventListener("pointermove", x), window.removeEventListener("pointerup", b);
|
|
3355
3357
|
}), K([() => t.min, () => t.max], () => {
|
|
3356
|
-
|
|
3358
|
+
r.value = c(r.value, t.min, t.max), s.value = c(s.value, t.min, t.max);
|
|
3357
3359
|
});
|
|
3358
3360
|
const H = k(() => t.range);
|
|
3359
3361
|
return he(() => {
|
|
3360
|
-
t.modelValue === void 0 && (t.range ? o("update:modelValue", [
|
|
3361
|
-
}), (
|
|
3362
|
+
t.modelValue === void 0 && (t.range ? o("update:modelValue", [r.value, s.value]) : o("update:modelValue", r.value));
|
|
3363
|
+
}), (V, C) => (f(), g("div", {
|
|
3362
3364
|
class: "vj-slider",
|
|
3363
|
-
onPointerdown:
|
|
3365
|
+
onPointerdown: C[8] || (C[8] = U(() => {
|
|
3364
3366
|
}, ["stop"]))
|
|
3365
3367
|
}, [
|
|
3366
3368
|
_("div", {
|
|
@@ -3371,53 +3373,53 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3371
3373
|
}, [
|
|
3372
3374
|
_("div", {
|
|
3373
3375
|
class: "range",
|
|
3374
|
-
style:
|
|
3376
|
+
style: Y(p.value)
|
|
3375
3377
|
}, null, 4),
|
|
3376
|
-
|
|
3378
|
+
i.value ? (f(), g("div", {
|
|
3377
3379
|
key: 0,
|
|
3378
3380
|
class: "tooltip",
|
|
3379
|
-
style:
|
|
3380
|
-
}, O(
|
|
3381
|
+
style: Y({ left: d.value.left })
|
|
3382
|
+
}, O(r.value), 5)) : L("", !0),
|
|
3381
3383
|
_("button", {
|
|
3382
3384
|
class: "handle low",
|
|
3383
|
-
style:
|
|
3385
|
+
style: Y(d.value),
|
|
3384
3386
|
"aria-valuemin": e.min,
|
|
3385
3387
|
"aria-valuemax": e.max,
|
|
3386
|
-
"aria-valuenow":
|
|
3388
|
+
"aria-valuenow": r.value,
|
|
3387
3389
|
"aria-label": H.value ? "Lower value" : "Value",
|
|
3388
|
-
onPointerdown:
|
|
3389
|
-
onFocus:
|
|
3390
|
-
onBlur:
|
|
3391
|
-
onKeydown:
|
|
3390
|
+
onPointerdown: C[0] || (C[0] = U((D) => m("low", D), ["prevent"])),
|
|
3391
|
+
onFocus: C[1] || (C[1] = (D) => i.value = !0),
|
|
3392
|
+
onBlur: C[2] || (C[2] = (D) => i.value = !1),
|
|
3393
|
+
onKeydown: C[3] || (C[3] = U((D) => S("low", D), ["stop", "prevent"])),
|
|
3392
3394
|
role: "slider",
|
|
3393
3395
|
tabindex: "0"
|
|
3394
3396
|
}, null, 44, yi),
|
|
3395
|
-
H.value &&
|
|
3397
|
+
H.value && a.value ? (f(), g("div", {
|
|
3396
3398
|
key: 1,
|
|
3397
3399
|
class: "tooltip",
|
|
3398
|
-
style:
|
|
3399
|
-
}, O(
|
|
3400
|
+
style: Y({ left: v.value.left })
|
|
3401
|
+
}, O(s.value), 5)) : L("", !0),
|
|
3400
3402
|
H.value ? (f(), g("button", {
|
|
3401
3403
|
key: 2,
|
|
3402
3404
|
class: "handle high",
|
|
3403
|
-
style:
|
|
3405
|
+
style: Y(v.value),
|
|
3404
3406
|
"aria-valuemin": e.min,
|
|
3405
3407
|
"aria-valuemax": e.max,
|
|
3406
|
-
"aria-valuenow":
|
|
3408
|
+
"aria-valuenow": s.value,
|
|
3407
3409
|
"aria-label": "Upper value",
|
|
3408
|
-
onPointerdown:
|
|
3409
|
-
onFocus:
|
|
3410
|
-
onBlur:
|
|
3411
|
-
onKeydown:
|
|
3410
|
+
onPointerdown: C[4] || (C[4] = U((D) => m("high", D), ["prevent"])),
|
|
3411
|
+
onFocus: C[5] || (C[5] = (D) => a.value = !0),
|
|
3412
|
+
onBlur: C[6] || (C[6] = (D) => a.value = !1),
|
|
3413
|
+
onKeydown: C[7] || (C[7] = U((D) => S("high", D), ["stop", "prevent"])),
|
|
3412
3414
|
role: "slider",
|
|
3413
3415
|
tabindex: "0"
|
|
3414
3416
|
}, null, 44, wi)) : L("", !0)
|
|
3415
3417
|
], 512)
|
|
3416
3418
|
], 32));
|
|
3417
3419
|
}
|
|
3418
|
-
}), xi = /* @__PURE__ */ A(_i, [["__scopeId", "data-v-d47c7475"]]), ki = ["onFocusin", "onFocusout"],
|
|
3420
|
+
}), xi = /* @__PURE__ */ A(_i, [["__scopeId", "data-v-d47c7475"]]), ki = ["onFocusin", "onFocusout"], Vi = /* @__PURE__ */ R({
|
|
3419
3421
|
__name: "input-slider",
|
|
3420
|
-
props: /* @__PURE__ */
|
|
3422
|
+
props: /* @__PURE__ */ G({
|
|
3421
3423
|
modelValue: {},
|
|
3422
3424
|
label: {},
|
|
3423
3425
|
id: {},
|
|
@@ -3437,22 +3439,22 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3437
3439
|
modelValue: {},
|
|
3438
3440
|
modelModifiers: {}
|
|
3439
3441
|
}),
|
|
3440
|
-
emits: /* @__PURE__ */
|
|
3442
|
+
emits: /* @__PURE__ */ G(["update:modelValue", "input", "focus", "blur"], ["update:modelValue"]),
|
|
3441
3443
|
setup(e, { emit: n }) {
|
|
3442
|
-
const t = e, o =
|
|
3443
|
-
K(o, (
|
|
3444
|
-
const
|
|
3445
|
-
|
|
3444
|
+
const t = e, o = ne(e, "modelValue"), l = n, i = o.value === void 0 ? 0 : Number(o.value), a = E(Number.isNaN(i) ? 0 : i);
|
|
3445
|
+
K(o, (r) => {
|
|
3446
|
+
const s = r === void 0 ? 0 : Number(r);
|
|
3447
|
+
a.value = Number.isNaN(s) ? 0 : s;
|
|
3446
3448
|
});
|
|
3447
|
-
const c = (
|
|
3448
|
-
console.log("onUpdateModel",
|
|
3449
|
-
const
|
|
3450
|
-
|
|
3449
|
+
const c = (r) => {
|
|
3450
|
+
console.log("onUpdateModel", r);
|
|
3451
|
+
const s = typeof r == "number" ? r : Number(r ?? 0);
|
|
3452
|
+
a.value = Number.isNaN(s) ? 0 : s, l("update:modelValue", a.value), l("input", a.value);
|
|
3451
3453
|
};
|
|
3452
|
-
return (
|
|
3453
|
-
modelValue:
|
|
3454
|
+
return (r, s) => (f(), P(Ie, {
|
|
3455
|
+
modelValue: a.value,
|
|
3454
3456
|
"onUpdate:modelValue": [
|
|
3455
|
-
|
|
3457
|
+
s[1] || (s[1] = (u) => a.value = u),
|
|
3456
3458
|
c
|
|
3457
3459
|
],
|
|
3458
3460
|
label: t.label,
|
|
@@ -3472,9 +3474,9 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3472
3474
|
}, [
|
|
3473
3475
|
T(xi, {
|
|
3474
3476
|
id: u,
|
|
3475
|
-
modelValue:
|
|
3477
|
+
modelValue: a.value,
|
|
3476
3478
|
"onUpdate:modelValue": [
|
|
3477
|
-
|
|
3479
|
+
s[0] || (s[0] = (y) => a.value = y),
|
|
3478
3480
|
c
|
|
3479
3481
|
],
|
|
3480
3482
|
min: t.min,
|
|
@@ -3488,9 +3490,9 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3488
3490
|
_: 1
|
|
3489
3491
|
}, 8, ["modelValue", "label", "id", "disabled", "colspan", "newLine", "spanRow", "error"]));
|
|
3490
3492
|
}
|
|
3491
|
-
}),
|
|
3493
|
+
}), Ci = /* @__PURE__ */ A(Vi, [["__scopeId", "data-v-8f16d318"]]), Ei = { class: "textarea" }, $i = ["value", "placeholder", "disabled", "rows"], Li = /* @__PURE__ */ R({
|
|
3492
3494
|
__name: "textarea",
|
|
3493
|
-
props: /* @__PURE__ */
|
|
3495
|
+
props: /* @__PURE__ */ G({
|
|
3494
3496
|
icon: {},
|
|
3495
3497
|
placeholder: {},
|
|
3496
3498
|
disabled: { type: Boolean },
|
|
@@ -3500,18 +3502,18 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3500
3502
|
modelValue: {},
|
|
3501
3503
|
modelModifiers: {}
|
|
3502
3504
|
}),
|
|
3503
|
-
emits: /* @__PURE__ */
|
|
3505
|
+
emits: /* @__PURE__ */ G(["focus", "blur"], ["update:modelValue"]),
|
|
3504
3506
|
setup(e, { emit: n }) {
|
|
3505
|
-
const t = n, o =
|
|
3506
|
-
o.value =
|
|
3507
|
-
},
|
|
3507
|
+
const t = n, o = ne(e, "modelValue"), l = (s) => {
|
|
3508
|
+
o.value = s.target.value;
|
|
3509
|
+
}, i = () => {
|
|
3508
3510
|
o.value = "";
|
|
3509
|
-
},
|
|
3510
|
-
t("focus",
|
|
3511
|
-
}, c = (
|
|
3512
|
-
t("blur",
|
|
3513
|
-
},
|
|
3514
|
-
return (
|
|
3511
|
+
}, a = (s) => {
|
|
3512
|
+
t("focus", s);
|
|
3513
|
+
}, c = (s) => {
|
|
3514
|
+
t("blur", s);
|
|
3515
|
+
}, r = k(() => !o.value);
|
|
3516
|
+
return (s, u) => {
|
|
3515
3517
|
const d = q("VjIcon");
|
|
3516
3518
|
return f(), g("div", Ei, [
|
|
3517
3519
|
e.icon ? (f(), P(d, {
|
|
@@ -3523,7 +3525,7 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3523
3525
|
_("textarea", {
|
|
3524
3526
|
value: o.value,
|
|
3525
3527
|
onInput: l,
|
|
3526
|
-
onFocus:
|
|
3528
|
+
onFocus: a,
|
|
3527
3529
|
onBlur: c,
|
|
3528
3530
|
placeholder: e.placeholder,
|
|
3529
3531
|
disabled: e.disabled,
|
|
@@ -3531,10 +3533,10 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3531
3533
|
}, null, 40, $i),
|
|
3532
3534
|
e.clearable && !e.disabled ? (f(), P(d, {
|
|
3533
3535
|
key: 1,
|
|
3534
|
-
class: I(["clear-icon", { invisible:
|
|
3536
|
+
class: I(["clear-icon", { invisible: r.value }]),
|
|
3535
3537
|
icon: $(z).CLOSE,
|
|
3536
3538
|
size: $(X).S,
|
|
3537
|
-
onClick:
|
|
3539
|
+
onClick: i
|
|
3538
3540
|
}, null, 8, ["class", "icon", "size"])) : L("", !0)
|
|
3539
3541
|
]);
|
|
3540
3542
|
};
|
|
@@ -3558,17 +3560,17 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3558
3560
|
},
|
|
3559
3561
|
emits: ["update:modelValue", "input", "focus", "blur"],
|
|
3560
3562
|
setup(e, { emit: n }) {
|
|
3561
|
-
const t = e, o = n, l = (u) => o("update:modelValue", u),
|
|
3563
|
+
const t = e, o = n, l = (u) => o("update:modelValue", u), i = (u) => o("input", u), a = (u) => o("focus", u), c = (u) => o("blur", u), r = (u) => {
|
|
3562
3564
|
l(u ?? "");
|
|
3563
|
-
},
|
|
3565
|
+
}, s = k(() => {
|
|
3564
3566
|
const u = t.modelValue;
|
|
3565
3567
|
return u == null ? "" : String(u);
|
|
3566
3568
|
});
|
|
3567
3569
|
return (u, d) => (f(), P(Ie, {
|
|
3568
3570
|
modelValue: t.modelValue,
|
|
3569
3571
|
"onUpdate:modelValue": l,
|
|
3570
|
-
onInput:
|
|
3571
|
-
onFocus:
|
|
3572
|
+
onInput: i,
|
|
3573
|
+
onFocus: a,
|
|
3572
3574
|
onBlur: c,
|
|
3573
3575
|
label: t.label,
|
|
3574
3576
|
id: t.id,
|
|
@@ -3585,10 +3587,10 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3585
3587
|
control: N(({ id: v, disabled: p, placeholder: h, onFocus: y, onBlur: m }) => [
|
|
3586
3588
|
T(hn, {
|
|
3587
3589
|
id: v,
|
|
3588
|
-
modelValue:
|
|
3589
|
-
"onUpdate:modelValue":
|
|
3590
|
+
modelValue: s.value,
|
|
3591
|
+
"onUpdate:modelValue": r,
|
|
3590
3592
|
onFocus: (b) => {
|
|
3591
|
-
y(b),
|
|
3593
|
+
y(b), a(b);
|
|
3592
3594
|
},
|
|
3593
3595
|
onBlur: (b) => {
|
|
3594
3596
|
m(b), c(b);
|
|
@@ -3604,7 +3606,7 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3604
3606
|
}
|
|
3605
3607
|
}), Ti = { class: "input" }, Ri = ["value", "type", "placeholder", "disabled"], Ai = /* @__PURE__ */ R({
|
|
3606
3608
|
__name: "input",
|
|
3607
|
-
props: /* @__PURE__ */
|
|
3609
|
+
props: /* @__PURE__ */ G({
|
|
3608
3610
|
icon: {},
|
|
3609
3611
|
type: {},
|
|
3610
3612
|
placeholder: {},
|
|
@@ -3614,18 +3616,18 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3614
3616
|
modelValue: {},
|
|
3615
3617
|
modelModifiers: {}
|
|
3616
3618
|
}),
|
|
3617
|
-
emits: /* @__PURE__ */
|
|
3619
|
+
emits: /* @__PURE__ */ G(["focus", "blur"], ["update:modelValue"]),
|
|
3618
3620
|
setup(e, { emit: n }) {
|
|
3619
|
-
const t = n, o =
|
|
3620
|
-
o.value =
|
|
3621
|
-
},
|
|
3621
|
+
const t = n, o = ne(e, "modelValue"), l = (s) => {
|
|
3622
|
+
o.value = s.target.value;
|
|
3623
|
+
}, i = () => {
|
|
3622
3624
|
o.value = "";
|
|
3623
|
-
},
|
|
3624
|
-
t("focus",
|
|
3625
|
-
}, c = (
|
|
3626
|
-
t("blur",
|
|
3627
|
-
},
|
|
3628
|
-
return (
|
|
3625
|
+
}, a = (s) => {
|
|
3626
|
+
t("focus", s);
|
|
3627
|
+
}, c = (s) => {
|
|
3628
|
+
t("blur", s);
|
|
3629
|
+
}, r = k(() => !o.value);
|
|
3630
|
+
return (s, u) => {
|
|
3629
3631
|
const d = q("VjIcon");
|
|
3630
3632
|
return f(), g("div", Ti, [
|
|
3631
3633
|
e.icon ? (f(), P(d, {
|
|
@@ -3636,7 +3638,7 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3636
3638
|
_("input", {
|
|
3637
3639
|
value: o.value,
|
|
3638
3640
|
onInput: l,
|
|
3639
|
-
onFocus:
|
|
3641
|
+
onFocus: a,
|
|
3640
3642
|
onBlur: c,
|
|
3641
3643
|
type: e.type,
|
|
3642
3644
|
placeholder: e.placeholder,
|
|
@@ -3644,10 +3646,10 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3644
3646
|
}, null, 40, Ri),
|
|
3645
3647
|
e.clearable && !e.disabled ? (f(), P(d, {
|
|
3646
3648
|
key: 1,
|
|
3647
|
-
class: I(["clear-icon", { invisible:
|
|
3649
|
+
class: I(["clear-icon", { invisible: r.value }]),
|
|
3648
3650
|
icon: $(z).CLOSE,
|
|
3649
3651
|
size: $(X).S,
|
|
3650
|
-
onClick:
|
|
3652
|
+
onClick: i
|
|
3651
3653
|
}, null, 8, ["class", "icon", "size"])) : L("", !0)
|
|
3652
3654
|
]);
|
|
3653
3655
|
};
|
|
@@ -3671,14 +3673,14 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3671
3673
|
},
|
|
3672
3674
|
emits: ["update:modelValue", "input", "focus", "blur"],
|
|
3673
3675
|
setup(e, { emit: n }) {
|
|
3674
|
-
const t = e, o = n, l = (
|
|
3675
|
-
l(
|
|
3676
|
+
const t = e, o = n, l = (s) => o("update:modelValue", s), i = (s) => o("input", s), a = (s) => o("focus", s), c = (s) => o("blur", s), r = (s) => {
|
|
3677
|
+
l(s ?? "");
|
|
3676
3678
|
};
|
|
3677
|
-
return (
|
|
3679
|
+
return (s, u) => (f(), P(Ie, {
|
|
3678
3680
|
modelValue: e.modelValue,
|
|
3679
3681
|
"onUpdate:modelValue": l,
|
|
3680
|
-
onInput:
|
|
3681
|
-
onFocus:
|
|
3682
|
+
onInput: i,
|
|
3683
|
+
onFocus: a,
|
|
3682
3684
|
onBlur: c,
|
|
3683
3685
|
label: e.label,
|
|
3684
3686
|
id: e.id,
|
|
@@ -3697,9 +3699,9 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3697
3699
|
id: d,
|
|
3698
3700
|
modelValue: e.modelValue,
|
|
3699
3701
|
type: e.type,
|
|
3700
|
-
"onUpdate:modelValue":
|
|
3702
|
+
"onUpdate:modelValue": r,
|
|
3701
3703
|
onFocus: (m) => {
|
|
3702
|
-
h(m),
|
|
3704
|
+
h(m), a(m);
|
|
3703
3705
|
},
|
|
3704
3706
|
onBlur: (m) => {
|
|
3705
3707
|
y(m), c(m);
|
|
@@ -3712,10 +3714,10 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3712
3714
|
_: 1
|
|
3713
3715
|
}, 8, ["modelValue", "label", "id", "placeholder", "disabled", "colspan", "newLine", "spanRow", "error", "helpText", "labelPosition", "appearance"]));
|
|
3714
3716
|
}
|
|
3715
|
-
}), Di = { class: "shell-navigation-item" }, Bi = { class: "shell-navigation-item-label" },
|
|
3717
|
+
}), Di = { class: "shell-navigation-item" }, Bi = { class: "shell-navigation-item-label" }, Mi = {
|
|
3716
3718
|
key: 1,
|
|
3717
3719
|
class: "shell-navigation-item-link"
|
|
3718
|
-
},
|
|
3720
|
+
}, ji = ["aria-expanded"], Pi = { class: "shell-navigation-item-label" }, Fi = /* @__PURE__ */ R({
|
|
3719
3721
|
__name: "shell-navigation-item",
|
|
3720
3722
|
props: {
|
|
3721
3723
|
label: {},
|
|
@@ -3723,21 +3725,21 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3723
3725
|
to: {}
|
|
3724
3726
|
},
|
|
3725
3727
|
setup(e) {
|
|
3726
|
-
const n = Kt(), t = k(() => !!n.default), o = E(!1), l = E(null),
|
|
3728
|
+
const n = Kt(), t = k(() => !!n.default), o = E(!1), l = E(null), i = E(null), { floatingStyles: a } = wt(l, i, {
|
|
3727
3729
|
placement: "right-start",
|
|
3728
3730
|
middleware: [tt(8), ot(), nt({ padding: 8 })],
|
|
3729
3731
|
whileElementsMounted: et
|
|
3730
3732
|
}), c = (v) => {
|
|
3731
3733
|
t.value && (o.value = !o.value);
|
|
3732
|
-
},
|
|
3734
|
+
}, r = () => {
|
|
3733
3735
|
o.value = !1;
|
|
3734
|
-
},
|
|
3735
|
-
|
|
3736
|
+
}, s = (v) => {
|
|
3737
|
+
r();
|
|
3736
3738
|
}, u = (v) => {
|
|
3737
|
-
(v.key === "Escape" || v.key === "Esc") &&
|
|
3739
|
+
(v.key === "Escape" || v.key === "Esc") && r();
|
|
3738
3740
|
}, d = (v) => {
|
|
3739
3741
|
const p = v.target;
|
|
3740
|
-
p && (l.value && l.value.contains(p) ||
|
|
3742
|
+
p && (l.value && l.value.contains(p) || i.value && i.value.contains(p) || r());
|
|
3741
3743
|
};
|
|
3742
3744
|
return K(o, (v) => {
|
|
3743
3745
|
v ? (window.addEventListener("keydown", u), window.addEventListener("pointerdown", d)) : (window.removeEventListener("keydown", u), window.removeEventListener("pointerdown", d));
|
|
@@ -3759,7 +3761,7 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3759
3761
|
_("label", Bi, O(e.label), 1)
|
|
3760
3762
|
]),
|
|
3761
3763
|
_: 1
|
|
3762
|
-
}, 8, ["to"])) : (f(), g("div",
|
|
3764
|
+
}, 8, ["to"])) : (f(), g("div", Mi, [
|
|
3763
3765
|
_("button", {
|
|
3764
3766
|
ref_key: "buttonRef",
|
|
3765
3767
|
ref: l,
|
|
@@ -3773,17 +3775,17 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3773
3775
|
class: "shell-navigation-item-icon"
|
|
3774
3776
|
}, null, 8, ["icon"]),
|
|
3775
3777
|
_("label", Pi, O(e.label), 1)
|
|
3776
|
-
], 8,
|
|
3778
|
+
], 8, ji),
|
|
3777
3779
|
T(Le, { name: "menu" }, {
|
|
3778
3780
|
default: N(() => [
|
|
3779
3781
|
o.value ? (f(), P(m, {
|
|
3780
3782
|
key: 0,
|
|
3781
3783
|
ref_key: "floatingRef",
|
|
3782
|
-
ref:
|
|
3783
|
-
style:
|
|
3784
|
+
ref: i,
|
|
3785
|
+
style: Y($(a)),
|
|
3784
3786
|
class: "shell-navigation-item-menu",
|
|
3785
|
-
onClose:
|
|
3786
|
-
onClick: U(
|
|
3787
|
+
onClose: r,
|
|
3788
|
+
onClick: U(s, ["stop"])
|
|
3787
3789
|
}, {
|
|
3788
3790
|
default: N(() => [
|
|
3789
3791
|
M(v.$slots, "default", {}, void 0, !0)
|
|
@@ -3793,11 +3795,11 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3793
3795
|
]),
|
|
3794
3796
|
_: 3
|
|
3795
3797
|
}),
|
|
3796
|
-
(f(), P(
|
|
3798
|
+
(f(), P(je, { to: "body" }, [
|
|
3797
3799
|
o.value ? (f(), g("div", {
|
|
3798
3800
|
key: 0,
|
|
3799
3801
|
class: "menu-backdrop",
|
|
3800
|
-
onClick:
|
|
3802
|
+
onClick: r
|
|
3801
3803
|
})) : L("", !0)
|
|
3802
3804
|
]))
|
|
3803
3805
|
]))
|
|
@@ -3812,22 +3814,22 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3812
3814
|
setup(e) {
|
|
3813
3815
|
const n = vt(es, ns()), t = k(() => n.showLabels);
|
|
3814
3816
|
return (o, l) => {
|
|
3815
|
-
const
|
|
3817
|
+
const i = q("VjShellNavigationItem");
|
|
3816
3818
|
return f(), g("nav", {
|
|
3817
3819
|
class: I(["shell-navigation", { "with-labels": t.value }])
|
|
3818
3820
|
}, [
|
|
3819
3821
|
_("ul", Ii, [
|
|
3820
|
-
$(n).hasParent && $(n).backRoute.value ? (f(), P(
|
|
3822
|
+
$(n).hasParent && $(n).backRoute.value ? (f(), P(i, {
|
|
3821
3823
|
key: 0,
|
|
3822
3824
|
to: $(n).backRoute.value,
|
|
3823
3825
|
label: "BACK",
|
|
3824
3826
|
icon: $(z).HOME
|
|
3825
3827
|
}, null, 8, ["to", "icon"])) : L("", !0),
|
|
3826
|
-
(f(!0), g(Q, null, pe($(n).childRoutes.value, (
|
|
3827
|
-
key:
|
|
3828
|
-
to: { name:
|
|
3829
|
-
label:
|
|
3830
|
-
icon:
|
|
3828
|
+
(f(!0), g(Q, null, pe($(n).childRoutes.value, (a) => (f(), P(i, {
|
|
3829
|
+
key: a.name,
|
|
3830
|
+
to: { name: a.name },
|
|
3831
|
+
label: a.meta.label,
|
|
3832
|
+
icon: a.meta.icon ?? $(z).HOME
|
|
3831
3833
|
}, null, 8, ["to", "label", "icon"]))), 128))
|
|
3832
3834
|
]),
|
|
3833
3835
|
o.$slots.fixed ? (f(), g("ul", Hi, [
|
|
@@ -3844,54 +3846,56 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3844
3846
|
showNavigation: { type: Boolean }
|
|
3845
3847
|
},
|
|
3846
3848
|
setup(e) {
|
|
3847
|
-
const n = ss(), t = lt(n, "asideComponent"), o = lt(n, "hasAside"), l = lt(n, "asideData"),
|
|
3848
|
-
const
|
|
3849
|
-
return
|
|
3849
|
+
const n = ss(), t = lt(n, "asideComponent"), o = lt(n, "hasAside"), l = lt(n, "asideData"), i = k(() => {
|
|
3850
|
+
const a = l.value;
|
|
3851
|
+
return a && typeof a == "object" ? a : {};
|
|
3850
3852
|
});
|
|
3851
|
-
return (
|
|
3852
|
-
const
|
|
3853
|
+
return (a, c) => {
|
|
3854
|
+
const r = q("router-view");
|
|
3853
3855
|
return f(), g("div", Ui, [
|
|
3854
3856
|
_("header", null, [
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3857
|
+
M(a.$slots, "header", {}, () => [
|
|
3858
|
+
_("span", Ni, [
|
|
3859
|
+
e.icon ? (f(), g("img", {
|
|
3860
|
+
key: 0,
|
|
3861
|
+
src: e.icon,
|
|
3862
|
+
alt: "Shell Icon"
|
|
3863
|
+
}, null, 8, Ki)) : L("", !0),
|
|
3864
|
+
_("h1", null, O(e.title), 1)
|
|
3865
|
+
]),
|
|
3866
|
+
_("div", Xi, [
|
|
3867
|
+
M(a.$slots, "header-actions", {}, void 0, !0)
|
|
3868
|
+
])
|
|
3869
|
+
], !0)
|
|
3866
3870
|
]),
|
|
3867
3871
|
_("div", {
|
|
3868
3872
|
class: I(["shell-content", { "with-navigation": e.showNavigation }])
|
|
3869
3873
|
}, [
|
|
3870
3874
|
e.showNavigation ? (f(), P($(bn), { key: 0 }, dt({ _: 2 }, [
|
|
3871
|
-
|
|
3875
|
+
a.$slots?.["navigation-fixed"] ? {
|
|
3872
3876
|
name: "fixed",
|
|
3873
3877
|
fn: N(() => [
|
|
3874
|
-
M(
|
|
3878
|
+
M(a.$slots, "navigation-fixed", {}, void 0, !0)
|
|
3875
3879
|
]),
|
|
3876
3880
|
key: "0"
|
|
3877
3881
|
} : void 0
|
|
3878
3882
|
]), 1024)) : L("", !0),
|
|
3879
3883
|
_("main", null, [
|
|
3880
|
-
M(
|
|
3881
|
-
T(
|
|
3884
|
+
M(a.$slots, "default", {}, () => [
|
|
3885
|
+
T(r)
|
|
3882
3886
|
], !0)
|
|
3883
3887
|
]),
|
|
3884
3888
|
_("aside", {
|
|
3885
3889
|
class: I({ "aside-visible": o.value })
|
|
3886
3890
|
}, [
|
|
3887
|
-
(f(), P(ut(t.value), En($n(
|
|
3891
|
+
(f(), P(ut(t.value), En($n(i.value)), null, 16))
|
|
3888
3892
|
], 2)
|
|
3889
3893
|
], 2),
|
|
3890
3894
|
c[0] || (c[0] = _("footer", null, null, -1))
|
|
3891
3895
|
]);
|
|
3892
3896
|
};
|
|
3893
3897
|
}
|
|
3894
|
-
}), Gi = /* @__PURE__ */ A(qi, [["__scopeId", "data-v-
|
|
3898
|
+
}), Gi = /* @__PURE__ */ A(qi, [["__scopeId", "data-v-6a20620c"]]);
|
|
3895
3899
|
class Yi {
|
|
3896
3900
|
notifications = E([]);
|
|
3897
3901
|
notificationIdCounter = 0;
|
|
@@ -3909,16 +3913,16 @@ class Yi {
|
|
|
3909
3913
|
* @returns Die ID der Notification
|
|
3910
3914
|
*/
|
|
3911
3915
|
show(n, t, o, l) {
|
|
3912
|
-
const
|
|
3913
|
-
id:
|
|
3916
|
+
const i = `notification-${++this.notificationIdCounter}-${Date.now()}`, a = n === "error" ? void 0 : l ?? 5e3, c = {
|
|
3917
|
+
id: i,
|
|
3914
3918
|
type: n,
|
|
3915
3919
|
title: t,
|
|
3916
3920
|
message: o,
|
|
3917
|
-
duration:
|
|
3921
|
+
duration: a
|
|
3918
3922
|
};
|
|
3919
|
-
return this.notifications.value.unshift(c),
|
|
3920
|
-
this.remove(
|
|
3921
|
-
},
|
|
3923
|
+
return this.notifications.value.unshift(c), a && setTimeout(() => {
|
|
3924
|
+
this.remove(i);
|
|
3925
|
+
}, a), i;
|
|
3922
3926
|
}
|
|
3923
3927
|
/**
|
|
3924
3928
|
* Zeigt eine Info-Notification
|
|
@@ -3962,16 +3966,16 @@ const Nt = new Yi(), Ji = { class: "notifications" }, Qi = /* @__PURE__ */ R({
|
|
|
3962
3966
|
__name: "notifications",
|
|
3963
3967
|
setup(e) {
|
|
3964
3968
|
const n = Nt.getNotifications(), t = (o) => Nt.remove(o);
|
|
3965
|
-
return (o, l) => (f(), P(
|
|
3969
|
+
return (o, l) => (f(), P(je, { to: "body" }, [
|
|
3966
3970
|
_("div", Ji, [
|
|
3967
3971
|
T(Ln, { name: "notification" }, {
|
|
3968
3972
|
default: N(() => [
|
|
3969
|
-
(f(!0), g(Q, null, pe($(n), (
|
|
3970
|
-
key:
|
|
3971
|
-
type:
|
|
3972
|
-
title:
|
|
3973
|
-
message:
|
|
3974
|
-
onClose: (
|
|
3973
|
+
(f(!0), g(Q, null, pe($(n), (i) => (f(), P(xt, {
|
|
3974
|
+
key: i.id,
|
|
3975
|
+
type: i.type,
|
|
3976
|
+
title: i.title,
|
|
3977
|
+
message: i.message,
|
|
3978
|
+
onClose: (a) => t(i.id)
|
|
3975
3979
|
}, null, 8, ["type", "title", "message", "onClose"]))), 128))
|
|
3976
3980
|
]),
|
|
3977
3981
|
_: 1
|
|
@@ -3990,36 +3994,36 @@ const ns = () => {
|
|
|
3990
3994
|
}), l = k(() => {
|
|
3991
3995
|
const u = n.matched;
|
|
3992
3996
|
return u.length ? u[u.length - 1] : null;
|
|
3993
|
-
}),
|
|
3997
|
+
}), i = k(() => {
|
|
3994
3998
|
const u = n.matched;
|
|
3995
3999
|
return u.length > 1 ? u[u.length - 2] : null;
|
|
3996
|
-
}),
|
|
4000
|
+
}), a = k(() => !!(l.value?.children?.length || i.value)), c = k(() => l.value?.children?.length ? l.value : i.value?.children?.length ? i.value : null), r = k(() => {
|
|
3997
4001
|
if (!c.value) return null;
|
|
3998
4002
|
const d = e.getRoutes().find((v) => v.children?.some((p) => p.name === c.value.name));
|
|
3999
4003
|
return d ? { name: d.name } : { path: "/" };
|
|
4000
|
-
}),
|
|
4004
|
+
}), s = k(() => {
|
|
4001
4005
|
let u = [];
|
|
4002
|
-
return n.path === "/" ? u = o.value : l.value?.children?.length ? u = l.value.children :
|
|
4006
|
+
return n.path === "/" ? u = o.value : l.value?.children?.length ? u = l.value.children : i.value?.children?.length ? u = i.value.children : u = o.value, u.filter(ts);
|
|
4003
4007
|
});
|
|
4004
4008
|
return {
|
|
4005
|
-
hasParent:
|
|
4006
|
-
backRoute:
|
|
4007
|
-
childRoutes:
|
|
4009
|
+
hasParent: a,
|
|
4010
|
+
backRoute: r,
|
|
4011
|
+
childRoutes: s,
|
|
4008
4012
|
showLabels: t
|
|
4009
4013
|
};
|
|
4010
4014
|
}, bs = (e, n = !0, t = void 0) => {
|
|
4011
|
-
const o = Sn(e) ? e : E(e), l = !!t,
|
|
4015
|
+
const o = Sn(e) ? e : E(e), l = !!t, i = E(t || null);
|
|
4012
4016
|
return {
|
|
4013
4017
|
hasParent: l,
|
|
4014
|
-
backRoute:
|
|
4018
|
+
backRoute: i,
|
|
4015
4019
|
childRoutes: o,
|
|
4016
4020
|
showLabels: n
|
|
4017
4021
|
};
|
|
4018
|
-
}, kt = E(!1),
|
|
4022
|
+
}, kt = E(!1), Vt = E(null), Ct = E(null);
|
|
4019
4023
|
let $e = [];
|
|
4020
4024
|
const yn = (e) => ($e.push(e), () => {
|
|
4021
4025
|
$e = $e.filter((n) => n !== e);
|
|
4022
|
-
}), os = (e, n) => ($e = [],
|
|
4026
|
+
}), os = (e, n) => ($e = [], Vt.value = e, Ct.value = n ?? null, kt.value = !0, {
|
|
4023
4027
|
onClose: (t) => yn(t)
|
|
4024
4028
|
}), ls = (e) => {
|
|
4025
4029
|
try {
|
|
@@ -4034,10 +4038,10 @@ const yn = (e) => ($e.push(e), () => {
|
|
|
4034
4038
|
kt.value = !1, setTimeout(as, 1e3);
|
|
4035
4039
|
}
|
|
4036
4040
|
}, as = () => {
|
|
4037
|
-
$e = [],
|
|
4041
|
+
$e = [], Vt.value = null, Ct.value = null;
|
|
4038
4042
|
}, is = {
|
|
4039
|
-
asideComponent:
|
|
4040
|
-
asideData:
|
|
4043
|
+
asideComponent: Vt,
|
|
4044
|
+
asideData: Ct,
|
|
4041
4045
|
showAside: os,
|
|
4042
4046
|
closeAside: ls,
|
|
4043
4047
|
onAsideClose: yn,
|
|
@@ -4067,11 +4071,11 @@ class rs {
|
|
|
4067
4071
|
return new Promise((t) => {
|
|
4068
4072
|
const o = this.ensureContainer(), l = document.createElement("div");
|
|
4069
4073
|
o.appendChild(l);
|
|
4070
|
-
let
|
|
4071
|
-
const
|
|
4072
|
-
|
|
4073
|
-
const
|
|
4074
|
-
|
|
4074
|
+
let i = !1;
|
|
4075
|
+
const a = () => {
|
|
4076
|
+
i || (i = !0, setTimeout(() => {
|
|
4077
|
+
const r = this.apps.find((s) => s.element === l);
|
|
4078
|
+
r && (r.app.unmount(), this.apps = this.apps.filter((s) => s !== r)), l.remove();
|
|
4075
4079
|
}, 300));
|
|
4076
4080
|
}, c = Tn({
|
|
4077
4081
|
setup() {
|
|
@@ -4088,16 +4092,16 @@ class rs {
|
|
|
4088
4092
|
closeOnBackdrop: n.closeOnBackdrop ?? !1,
|
|
4089
4093
|
closeOnEscape: n.closeOnEscape ?? !0,
|
|
4090
4094
|
onConfirm: () => {
|
|
4091
|
-
t(!0),
|
|
4095
|
+
t(!0), a();
|
|
4092
4096
|
},
|
|
4093
4097
|
onCancel: () => {
|
|
4094
|
-
t(!1),
|
|
4098
|
+
t(!1), a();
|
|
4095
4099
|
},
|
|
4096
|
-
onResolve: (
|
|
4097
|
-
t(
|
|
4100
|
+
onResolve: (r) => {
|
|
4101
|
+
t(r), a();
|
|
4098
4102
|
},
|
|
4099
4103
|
onClose: () => {
|
|
4100
|
-
|
|
4104
|
+
i || t(!1), a();
|
|
4101
4105
|
}
|
|
4102
4106
|
});
|
|
4103
4107
|
}
|
|
@@ -4148,41 +4152,41 @@ const xs = () => {
|
|
|
4148
4152
|
inner;
|
|
4149
4153
|
defaultValue;
|
|
4150
4154
|
handlers = [];
|
|
4151
|
-
constructor(
|
|
4152
|
-
this.inner =
|
|
4155
|
+
constructor(a, c) {
|
|
4156
|
+
this.inner = a, this.defaultValue = c;
|
|
4153
4157
|
}
|
|
4154
|
-
onError(
|
|
4155
|
-
return this.handlers.push(
|
|
4158
|
+
onError(a) {
|
|
4159
|
+
return this.handlers.push(a), this;
|
|
4156
4160
|
}
|
|
4157
4161
|
async exec() {
|
|
4158
4162
|
n.value = null, e.value = !0;
|
|
4159
4163
|
try {
|
|
4160
4164
|
return await this.inner();
|
|
4161
|
-
} catch (
|
|
4162
|
-
n.value =
|
|
4165
|
+
} catch (a) {
|
|
4166
|
+
n.value = a;
|
|
4163
4167
|
for (const c of this.handlers)
|
|
4164
4168
|
try {
|
|
4165
|
-
c(
|
|
4166
|
-
} catch (
|
|
4167
|
-
console.error("onError handler failed",
|
|
4169
|
+
c(a);
|
|
4170
|
+
} catch (r) {
|
|
4171
|
+
console.error("onError handler failed", r);
|
|
4168
4172
|
}
|
|
4169
4173
|
if (this.defaultValue !== void 0) return this.defaultValue;
|
|
4170
|
-
throw
|
|
4174
|
+
throw a;
|
|
4171
4175
|
} finally {
|
|
4172
4176
|
e.value = !1;
|
|
4173
4177
|
}
|
|
4174
4178
|
}
|
|
4175
|
-
then(
|
|
4176
|
-
return this.exec().then(
|
|
4179
|
+
then(a, c) {
|
|
4180
|
+
return this.exec().then(a, c);
|
|
4177
4181
|
}
|
|
4178
4182
|
}
|
|
4179
|
-
function l(
|
|
4180
|
-
return new o(
|
|
4183
|
+
function l(i, a) {
|
|
4184
|
+
return new o(i, a);
|
|
4181
4185
|
}
|
|
4182
4186
|
return { run: l, running: e, error: n, clearError: t };
|
|
4183
4187
|
}, ks = {
|
|
4184
4188
|
install(e) {
|
|
4185
|
-
e.component("VjAccordion", In), e.component("VjAmountBar", Ha), e.component("VjButton", Ge), e.component("VjButtonBar", Xn), e.component("VjCard", st), e.component("VjChip", Gt), e.component("VjChipGroup", Yt), e.component("VjChipSelector", Ro), e.component("VjCarousel", st), e.component("VjCheckbox", io), e.component("VjDotMenu",
|
|
4189
|
+
e.component("VjAccordion", In), e.component("VjAmountBar", Ha), e.component("VjButton", Ge), e.component("VjButtonBar", Xn), e.component("VjCard", st), e.component("VjChip", Gt), e.component("VjChipGroup", Yt), e.component("VjChipSelector", Ro), e.component("VjCarousel", st), e.component("VjCheckbox", io), e.component("VjDotMenu", Vl), e.component("VjDialog", mt), e.component("VjIcon", te), e.component("VjLinkButton", El), e.component("VjMenu", Dl), e.component("VjMenuAction", Tl), e.component("VjPage", ua), e.component("VjPaginator", va), e.component("VjTab", _a), e.component("VjTabView", $a), e.component("VjTimer", Ba), e.component("VjSkeleton", za), e.component("VjSpinner", fn), e.component("VjNotifications", Zi), e.component("VjNotification", xt), e.component("VjUpload", Za), e.component("VjInput", gn), e.component("VjSelect", pn), e.component("VjTextArea", hn), e.component("VjFormField", Ie), e.component("VjFormLayout", ri), e.component("VjFormSection", di), e.component("VjInputText", Oi), e.component("VjInputTextArea", Si), e.component("VjInputSelect", bi), e.component("VjInputSlider", Ci), e.component("VjShellNavigation", bn), e.component("VjShellNavigationItem", zi), e.component("VjShell", Gi), e.component("VjSearchField", ga), e.component("VjSeparator", ya), e.directive("focus", jl), e.directive("resize", Pl), e.directive("compact", Bl), e.directive("tooltip", vn);
|
|
4186
4190
|
}
|
|
4187
4191
|
};
|
|
4188
4192
|
export {
|
|
@@ -4197,9 +4201,9 @@ export {
|
|
|
4197
4201
|
Yt as ChipGroup,
|
|
4198
4202
|
Ro as ChipSelector,
|
|
4199
4203
|
mt as Dialog,
|
|
4200
|
-
|
|
4204
|
+
Vl as DotMenu,
|
|
4201
4205
|
ps as EditableLabel,
|
|
4202
|
-
|
|
4206
|
+
jl as FocusFirstDirective,
|
|
4203
4207
|
Ie as FormField,
|
|
4204
4208
|
ri as FormLayout,
|
|
4205
4209
|
di as FormSection,
|
|
@@ -4208,7 +4212,7 @@ export {
|
|
|
4208
4212
|
X as IconSize,
|
|
4209
4213
|
gn as Input,
|
|
4210
4214
|
bi as InputSelect,
|
|
4211
|
-
|
|
4215
|
+
Ci as InputSlider,
|
|
4212
4216
|
Oi as InputText,
|
|
4213
4217
|
Si as InputTextArea,
|
|
4214
4218
|
El as LinkButton,
|