@vanjana/vue-ui 0.1.126 → 0.1.129
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/page.vue.d.ts +1 -1
- package/dist/types/components/paginator.vue.d.ts +1 -1
- package/dist/types/components/slider.vue.d.ts +2 -2
- package/dist/types/components/step-flow.vue.d.ts +16 -0
- 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/page.stories.d.ts +7 -6
- package/dist/types/stories/components/step-flow.stories.d.ts +31 -0
- package/dist/types/stories/components/textarea.stories.d.ts +1 -1
- package/dist/vanjana-vue-ui.es.js +1020 -1015
- package/dist/vanjana-vue-ui.umd.js +1 -1
- package/dist/vue-ui.css +1 -1
- package/package.json +1 -1
- package/themes/common/_mixins.scss +4 -1
- package/themes/common/components/_page.scss +16 -5
- 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
|
|
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
|
-
|
|
131
|
+
M(i.$slots, "default", {}, void 0, !0)
|
|
130
132
|
])
|
|
131
133
|
])) : L("", !0)
|
|
132
134
|
]),
|
|
@@ -134,14 +136,14 @@ 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, [
|
|
141
|
-
|
|
143
|
+
M(e.$slots, "left", {}, void 0, !0)
|
|
142
144
|
]),
|
|
143
145
|
_("div", Nn, [
|
|
144
|
-
|
|
146
|
+
M(e.$slots, "default", {}, void 0, !0)
|
|
145
147
|
])
|
|
146
148
|
]);
|
|
147
149
|
}
|
|
@@ -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
|
}, [
|
|
@@ -184,18 +186,18 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
184
186
|
class: I(["card", { scrollable: e.scrollable }])
|
|
185
187
|
}, [
|
|
186
188
|
_("header", null, [
|
|
187
|
-
|
|
189
|
+
M(t.$slots, "header", {}, () => [
|
|
188
190
|
_("h3", null, O(e.header), 1),
|
|
189
191
|
$(n).headerActions ? (f(), g("span", Yn, [
|
|
190
|
-
|
|
192
|
+
M(t.$slots, "headerActions", {}, void 0, !0)
|
|
191
193
|
])) : L("", !0)
|
|
192
194
|
], !0)
|
|
193
195
|
]),
|
|
194
196
|
_("main", null, [
|
|
195
|
-
|
|
197
|
+
M(t.$slots, "default", {}, void 0, !0)
|
|
196
198
|
]),
|
|
197
199
|
$(n).footer ? (f(), g("footer", Jn, [
|
|
198
|
-
|
|
200
|
+
M(t.$slots, "footer", {}, void 0, !0)
|
|
199
201
|
])) : L("", !0)
|
|
200
202
|
], 2));
|
|
201
203
|
}
|
|
@@ -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
|
-
},
|
|
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,10 +321,10 @@ 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)
|
|
327
329
|
], 512),
|
|
328
330
|
T(we, {
|
|
@@ -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 ===
|
|
346
|
-
onClick: (
|
|
347
|
-
"aria-current": Oe - 1 ===
|
|
347
|
+
class: I(["indicator", { active: Oe - 1 === r.value }]),
|
|
348
|
+
onClick: (ds) => W(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))
|
|
@@ -352,12 +354,12 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
352
354
|
], 40, Zn);
|
|
353
355
|
};
|
|
354
356
|
}
|
|
355
|
-
}),
|
|
357
|
+
}), ms = /* @__PURE__ */ A(to, [["__scopeId", "data-v-232abca2"]]), no = { class: "checkbox" }, oo = ["checked", "disabled"], lo = {
|
|
356
358
|
key: 0,
|
|
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
|
};
|
|
@@ -433,9 +435,9 @@ const Xn = /* @__PURE__ */ A(Hn, [["render", Kn], ["__scopeId", "data-v-45a6ed1a
|
|
|
433
435
|
e.label ? (f(), g("span", co, O(e.label), 1)) : L("", !0)
|
|
434
436
|
]));
|
|
435
437
|
}
|
|
436
|
-
}),
|
|
438
|
+
}), ps = /* @__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,17 +639,17 @@ 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:
|
|
650
|
-
}), null, 16)) : e.message ? (f(), g("div", ko, O(e.message), 1)) :
|
|
651
|
+
onResolve: a
|
|
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
|
]),
|
|
653
655
|
_: 2
|
|
@@ -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",
|
|
659
|
-
|
|
660
|
+
_("div", Vo, [
|
|
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,
|
|
@@ -930,7 +932,7 @@ const Wo = async (e, n, t) => {
|
|
|
930
932
|
x,
|
|
931
933
|
y: w,
|
|
932
934
|
data: S,
|
|
933
|
-
reset:
|
|
935
|
+
reset: j
|
|
934
936
|
} = await b({
|
|
935
937
|
x: u,
|
|
936
938
|
y: d,
|
|
@@ -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
|
-
},
|
|
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,43 +976,43 @@ 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
|
-
},
|
|
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
|
-
top: (b.top -
|
|
1011
|
-
bottom: (
|
|
1012
|
-
left: (b.left -
|
|
1013
|
-
right: (
|
|
1012
|
+
top: (b.top - j.top + h.top) / S.y,
|
|
1013
|
+
bottom: (j.bottom - b.bottom + h.bottom) / S.y,
|
|
1014
|
+
left: (b.left - j.left + h.left) / S.x,
|
|
1015
|
+
right: (j.right - b.right + h.right) / S.x
|
|
1014
1016
|
};
|
|
1015
1017
|
}
|
|
1016
1018
|
const Uo = function(e) {
|
|
@@ -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 (
|
|
1041
|
-
!v && H &&
|
|
1042
|
-
const
|
|
1043
|
-
let F = ((o =
|
|
1044
|
-
if (u && D.push(
|
|
1045
|
-
const ve = Bo(l,
|
|
1046
|
-
D.push(
|
|
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";
|
|
1043
|
+
!v && H && j.push(...zo(c, y, h, S));
|
|
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 (
|
|
1224
|
-
const x = y - u.top - u.bottom, w = h - u.left - u.right, S = Se(y - u[m], x),
|
|
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 ?
|
|
1225
|
+
d === "top" || d === "bottom" ? (m = d, b = v === (await (a.isRTL == null ? void 0 : a.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (b = d, m = v === "end" ? "top" : "bottom");
|
|
1226
|
+
const x = y - u.top - u.bottom, w = h - u.left - u.right, S = Se(y - u[m], x), j = Se(h - u[b], w), H = !n.middlewareData.shift;
|
|
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,74 +1651,74 @@ 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
|
-
function
|
|
1672
|
-
const
|
|
1673
|
-
if (
|
|
1673
|
+
function j(H) {
|
|
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
|
-
t = new IntersectionObserver(
|
|
1685
|
+
t = new IntersectionObserver(j, {
|
|
1684
1686
|
...w,
|
|
1685
1687
|
// Handle <iframe>s
|
|
1686
1688
|
root: l.ownerDocument
|
|
1687
1689
|
});
|
|
1688
1690
|
} catch {
|
|
1689
|
-
t = new IntersectionObserver(
|
|
1691
|
+
t = new IntersectionObserver(j, w);
|
|
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,80 +1766,80 @@ 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() {
|
|
1813
1815
|
typeof x == "function" && (x(), x = void 0);
|
|
1814
1816
|
}
|
|
1815
|
-
function
|
|
1817
|
+
function j() {
|
|
1816
1818
|
if (S(), o === void 0) {
|
|
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,13 +1883,13 @@ 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)
|
|
1891
1893
|
]),
|
|
1892
1894
|
_: 3
|
|
1893
1895
|
}, 8, ["style"])) : L("", !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: {},
|
|
@@ -1963,7 +1965,7 @@ const kl = /* @__PURE__ */ R({
|
|
|
1963
1965
|
}), Tl = /* @__PURE__ */ A(Sl, [["__scopeId", "data-v-07850995"]]), Rl = {}, Al = { class: "menu" };
|
|
1964
1966
|
function Ol(e, n) {
|
|
1965
1967
|
return f(), g("div", Al, [
|
|
1966
|
-
|
|
1968
|
+
M(e.$slots, "default", {}, void 0, !0)
|
|
1967
1969
|
]);
|
|
1968
1970
|
}
|
|
1969
1971
|
const Dl = /* @__PURE__ */ A(Rl, [["render", Ol], ["__scopeId", "data-v-259fec08"]]), Bl = {
|
|
@@ -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
|
-
|
|
2246
|
+
M(a.$slots, "default", {}, () => [
|
|
2245
2247
|
_("div", Xl, [
|
|
2246
2248
|
T(te, { icon: l.value }, null, 8, ["icon"])
|
|
2247
2249
|
]),
|
|
@@ -2255,22 +2257,25 @@ 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
|
])
|
|
2262
2264
|
], 2));
|
|
2263
2265
|
}
|
|
2264
|
-
}), xt = /* @__PURE__ */ A(Ql, [["__scopeId", "data-v-f9ee0c98"]]), Zl = { class: "page" }, ea = {
|
|
2266
|
+
}), xt = /* @__PURE__ */ A(Ql, [["__scopeId", "data-v-f9ee0c98"]]), Zl = { class: "page" }, ea = {
|
|
2267
|
+
key: 0,
|
|
2268
|
+
class: "page-header"
|
|
2269
|
+
}, ta = { class: "header-left" }, na = { class: "header-titles" }, oa = { key: 0 }, la = { class: "header-actions" }, aa = {
|
|
2265
2270
|
key: 0,
|
|
2266
2271
|
class: "page-error"
|
|
2267
|
-
},
|
|
2272
|
+
}, ia = {
|
|
2268
2273
|
key: 1,
|
|
2269
2274
|
class: "contents"
|
|
2270
|
-
},
|
|
2275
|
+
}, sa = {
|
|
2271
2276
|
key: 2,
|
|
2272
2277
|
class: "actions"
|
|
2273
|
-
},
|
|
2278
|
+
}, ra = { key: 3 }, ca = { key: 1 }, ua = /* @__PURE__ */ R({
|
|
2274
2279
|
directives: { loading: Ul },
|
|
2275
2280
|
__name: "page",
|
|
2276
2281
|
props: {
|
|
@@ -2284,64 +2289,64 @@ const vn = {
|
|
|
2284
2289
|
},
|
|
2285
2290
|
emits: ["back"],
|
|
2286
2291
|
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
|
|
2292
|
+
const t = e, o = k(() => t.flow?.running?.value ?? !1), l = k(() => t.flow?.error?.value ?? null), i = k(() => t.errorMessage ?? (l.value ? String(l.value) : null));
|
|
2293
|
+
return (a, c) => {
|
|
2294
|
+
const r = q("VjButton"), s = qt("loading");
|
|
2290
2295
|
return ft((f(), g("div", Zl, [
|
|
2291
|
-
|
|
2292
|
-
_("div",
|
|
2293
|
-
e.backLabel ? (f(), P(
|
|
2296
|
+
e.title || e.subTitle || e.backLabel || a.$slots.headerActions ? (f(), g("header", ea, [
|
|
2297
|
+
_("div", ta, [
|
|
2298
|
+
e.backLabel ? (f(), P(r, {
|
|
2294
2299
|
key: 0,
|
|
2295
2300
|
tertiary: "",
|
|
2296
2301
|
icon: $(z).BACK,
|
|
2297
|
-
onClick: c[0] || (c[0] = (u) =>
|
|
2302
|
+
onClick: c[0] || (c[0] = (u) => a.$emit("back")),
|
|
2298
2303
|
size: "small"
|
|
2299
2304
|
}, null, 8, ["icon"])) : L("", !0),
|
|
2300
|
-
_("div",
|
|
2305
|
+
_("div", na, [
|
|
2301
2306
|
_("h1", null, O(e.title), 1),
|
|
2302
|
-
e.subTitle ? (f(), g("h2",
|
|
2307
|
+
e.subTitle ? (f(), g("h2", oa, O(e.subTitle), 1)) : L("", !0)
|
|
2303
2308
|
])
|
|
2304
2309
|
]),
|
|
2305
|
-
_("div",
|
|
2306
|
-
|
|
2310
|
+
_("div", la, [
|
|
2311
|
+
M(a.$slots, "headerActions", {}, void 0, !0)
|
|
2307
2312
|
])
|
|
2308
|
-
]),
|
|
2313
|
+
])) : L("", !0),
|
|
2309
2314
|
_("main", {
|
|
2310
2315
|
class: I({ scrollable: e.scrollable })
|
|
2311
2316
|
}, [
|
|
2312
|
-
|
|
2313
|
-
|
|
2317
|
+
i.value ? (f(), g("div", aa, [
|
|
2318
|
+
M(a.$slots, "error", {}, () => [
|
|
2314
2319
|
T(xt, {
|
|
2315
2320
|
type: "error",
|
|
2316
|
-
title:
|
|
2317
|
-
message:
|
|
2321
|
+
title: i.value,
|
|
2322
|
+
message: i.value
|
|
2318
2323
|
}, null, 8, ["title", "message"])
|
|
2319
2324
|
], !0)
|
|
2320
2325
|
])) : L("", !0),
|
|
2321
|
-
|
|
2322
|
-
|
|
2326
|
+
i.value ? L("", !0) : (f(), g("div", ia, [
|
|
2327
|
+
M(a.$slots, "default", {}, void 0, !0)
|
|
2323
2328
|
])),
|
|
2324
|
-
|
|
2325
|
-
|
|
2329
|
+
i.value ? L("", !0) : (f(), g("div", sa, [
|
|
2330
|
+
M(a.$slots, "actions", {}, void 0, !0)
|
|
2326
2331
|
])),
|
|
2327
|
-
|
|
2328
|
-
|
|
2332
|
+
a.$slots.flexFooter ? (f(), g("footer", ra, [
|
|
2333
|
+
M(a.$slots, "flexFooter", {}, void 0, !0)
|
|
2329
2334
|
])) : L("", !0)
|
|
2330
2335
|
], 2),
|
|
2331
|
-
|
|
2332
|
-
|
|
2336
|
+
a.$slots.footer ? (f(), g("footer", ca, [
|
|
2337
|
+
M(a.$slots, "footer", {}, void 0, !0)
|
|
2333
2338
|
])) : L("", !0)
|
|
2334
2339
|
])), [
|
|
2335
|
-
[
|
|
2340
|
+
[s, { active: o.value, text: t.loadingMessage }]
|
|
2336
2341
|
]);
|
|
2337
2342
|
};
|
|
2338
2343
|
}
|
|
2339
|
-
}),
|
|
2344
|
+
}), da = /* @__PURE__ */ A(ua, [["__scopeId", "data-v-1f4253d2"]]), fa = {
|
|
2340
2345
|
class: "paginator-info",
|
|
2341
2346
|
"aria-live": "polite"
|
|
2342
|
-
},
|
|
2347
|
+
}, va = /* @__PURE__ */ R({
|
|
2343
2348
|
__name: "paginator",
|
|
2344
|
-
props: /* @__PURE__ */
|
|
2349
|
+
props: /* @__PURE__ */ G({
|
|
2345
2350
|
totalItems: {},
|
|
2346
2351
|
pageSize: {},
|
|
2347
2352
|
labels: {}
|
|
@@ -2349,14 +2354,14 @@ const vn = {
|
|
|
2349
2354
|
modelValue: { required: !0 },
|
|
2350
2355
|
modelModifiers: {}
|
|
2351
2356
|
}),
|
|
2352
|
-
emits: /* @__PURE__ */
|
|
2357
|
+
emits: /* @__PURE__ */ G(["change"], ["update:modelValue"]),
|
|
2353
2358
|
setup(e, { emit: n }) {
|
|
2354
|
-
const t = e, o =
|
|
2355
|
-
const x = Math.min(Math.max(1, Math.floor(b)),
|
|
2359
|
+
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) => {
|
|
2360
|
+
const x = Math.min(Math.max(1, Math.floor(b)), i.value);
|
|
2356
2361
|
x !== o.value && (o.value = x, l("change", x));
|
|
2357
|
-
}, p = () => v(1), h = () => v(
|
|
2362
|
+
}, p = () => v(1), h = () => v(a.value - 1), y = () => v(a.value + 1), m = () => v(i.value);
|
|
2358
2363
|
return K([() => t.totalItems, () => t.pageSize], () => {
|
|
2359
|
-
o.value >
|
|
2364
|
+
o.value > i.value && v(i.value);
|
|
2360
2365
|
}), (b, x) => {
|
|
2361
2366
|
const w = q("VjButton");
|
|
2362
2367
|
return f(), g("nav", {
|
|
@@ -2369,7 +2374,7 @@ const vn = {
|
|
|
2369
2374
|
tertiary: "",
|
|
2370
2375
|
class: "paginator-btn",
|
|
2371
2376
|
icon: $(z).FIRST,
|
|
2372
|
-
disabled:
|
|
2377
|
+
disabled: r.value,
|
|
2373
2378
|
onClick: p,
|
|
2374
2379
|
"aria-label": "First page"
|
|
2375
2380
|
}, null, 8, ["icon", "disabled"]),
|
|
@@ -2377,22 +2382,22 @@ const vn = {
|
|
|
2377
2382
|
tertiary: "",
|
|
2378
2383
|
class: "paginator-btn",
|
|
2379
2384
|
icon: $(z).PREVIOUS,
|
|
2380
|
-
disabled:
|
|
2385
|
+
disabled: r.value,
|
|
2381
2386
|
onClick: h,
|
|
2382
2387
|
"aria-label": "Previous page"
|
|
2383
2388
|
}, null, 8, ["icon", "disabled"]),
|
|
2384
|
-
|
|
2385
|
-
current:
|
|
2386
|
-
totalPages:
|
|
2389
|
+
M(b.$slots, "info", {
|
|
2390
|
+
current: a.value,
|
|
2391
|
+
totalPages: i.value,
|
|
2387
2392
|
goTo: v
|
|
2388
2393
|
}, () => [
|
|
2389
|
-
_("div",
|
|
2394
|
+
_("div", fa, O(u.value) + " " + O(c.value) + " " + O(d.value) + " " + O(i.value), 1)
|
|
2390
2395
|
], !0),
|
|
2391
2396
|
T(w, {
|
|
2392
2397
|
tertiary: "",
|
|
2393
2398
|
class: "paginator-btn",
|
|
2394
2399
|
icon: $(z).NEXT,
|
|
2395
|
-
disabled:
|
|
2400
|
+
disabled: s.value,
|
|
2396
2401
|
onClick: y,
|
|
2397
2402
|
"aria-label": "Next page"
|
|
2398
2403
|
}, null, 8, ["icon", "disabled"]),
|
|
@@ -2400,16 +2405,16 @@ const vn = {
|
|
|
2400
2405
|
tertiary: "",
|
|
2401
2406
|
class: "paginator-btn",
|
|
2402
2407
|
icon: $(z).LAST,
|
|
2403
|
-
disabled:
|
|
2408
|
+
disabled: s.value,
|
|
2404
2409
|
onClick: m,
|
|
2405
2410
|
"aria-label": "Last page"
|
|
2406
2411
|
}, null, 8, ["icon", "disabled"])
|
|
2407
2412
|
], 32);
|
|
2408
2413
|
};
|
|
2409
2414
|
}
|
|
2410
|
-
}),
|
|
2415
|
+
}), ma = /* @__PURE__ */ A(va, [["__scopeId", "data-v-b6fa8efe"]]), pa = { class: "search-field" }, ha = ["value", "placeholder"], ga = /* @__PURE__ */ R({
|
|
2411
2416
|
__name: "search-field",
|
|
2412
|
-
props: /* @__PURE__ */
|
|
2417
|
+
props: /* @__PURE__ */ G({
|
|
2413
2418
|
placeholder: { default: "Search..." }
|
|
2414
2419
|
}, {
|
|
2415
2420
|
modelValue: {},
|
|
@@ -2417,14 +2422,14 @@ const vn = {
|
|
|
2417
2422
|
}),
|
|
2418
2423
|
emits: ["update:modelValue"],
|
|
2419
2424
|
setup(e) {
|
|
2420
|
-
const n =
|
|
2421
|
-
n.value =
|
|
2425
|
+
const n = ne(e, "modelValue"), t = (i) => {
|
|
2426
|
+
n.value = i.target.value;
|
|
2422
2427
|
}, o = () => {
|
|
2423
2428
|
n.value = "";
|
|
2424
2429
|
}, l = k(() => !n.value);
|
|
2425
|
-
return (
|
|
2430
|
+
return (i, a) => {
|
|
2426
2431
|
const c = q("VjIcon");
|
|
2427
|
-
return f(), g("div",
|
|
2432
|
+
return f(), g("div", pa, [
|
|
2428
2433
|
T(c, {
|
|
2429
2434
|
icon: $(z).SEARCH,
|
|
2430
2435
|
size: $(X).S
|
|
@@ -2434,7 +2439,7 @@ const vn = {
|
|
|
2434
2439
|
onInput: t,
|
|
2435
2440
|
type: "text",
|
|
2436
2441
|
placeholder: e.placeholder
|
|
2437
|
-
}, null, 40,
|
|
2442
|
+
}, null, 40, ha),
|
|
2438
2443
|
T(c, {
|
|
2439
2444
|
class: I(["reset", { invisible: l.value }]),
|
|
2440
2445
|
icon: $(z).CLOSE,
|
|
@@ -2444,7 +2449,7 @@ const vn = {
|
|
|
2444
2449
|
]);
|
|
2445
2450
|
};
|
|
2446
2451
|
}
|
|
2447
|
-
}),
|
|
2452
|
+
}), ba = /* @__PURE__ */ A(ga, [["__scopeId", "data-v-2771c8ed"]]), ya = /* @__PURE__ */ R({
|
|
2448
2453
|
__name: "separator",
|
|
2449
2454
|
props: {
|
|
2450
2455
|
vertical: { type: Boolean }
|
|
@@ -2454,10 +2459,10 @@ const vn = {
|
|
|
2454
2459
|
class: I(["separator", { vertical: e.vertical }])
|
|
2455
2460
|
}, null, 2));
|
|
2456
2461
|
}
|
|
2457
|
-
}),
|
|
2462
|
+
}), wa = /* @__PURE__ */ A(ya, [["__scopeId", "data-v-e354bb4e"]]), _a = {
|
|
2458
2463
|
key: 0,
|
|
2459
2464
|
class: "tab"
|
|
2460
|
-
},
|
|
2465
|
+
}, xa = /* @__PURE__ */ R({
|
|
2461
2466
|
__name: "tab",
|
|
2462
2467
|
props: {
|
|
2463
2468
|
name: {},
|
|
@@ -2467,14 +2472,14 @@ const vn = {
|
|
|
2467
2472
|
const n = e, t = vt("tabView"), o = k(() => t?.activeTab() === n.name);
|
|
2468
2473
|
return Re(() => {
|
|
2469
2474
|
t?.registerTab(n.name, n.label);
|
|
2470
|
-
}), (l,
|
|
2471
|
-
|
|
2475
|
+
}), (l, i) => o.value ? (f(), g("div", _a, [
|
|
2476
|
+
M(l.$slots, "default")
|
|
2472
2477
|
])) : L("", !0);
|
|
2473
2478
|
}
|
|
2474
|
-
}),
|
|
2479
|
+
}), ka = { class: "tab-view" }, Va = {
|
|
2475
2480
|
ref: "headerRef",
|
|
2476
2481
|
class: "tab-view-header"
|
|
2477
|
-
}, Ca = ["onClick"],
|
|
2482
|
+
}, Ca = ["onClick"], Ea = { class: "tab-view-content" }, $a = /* @__PURE__ */ R({
|
|
2478
2483
|
__name: "tab-view",
|
|
2479
2484
|
props: {
|
|
2480
2485
|
modelValue: {},
|
|
@@ -2482,55 +2487,55 @@ const vn = {
|
|
|
2482
2487
|
},
|
|
2483
2488
|
emits: ["update:modelValue"],
|
|
2484
2489
|
setup(e) {
|
|
2485
|
-
const n =
|
|
2490
|
+
const n = ne(e, "modelValue"), t = E([]), o = E([]), l = E({
|
|
2486
2491
|
width: "0px",
|
|
2487
2492
|
transform: "translateX(0px)"
|
|
2488
|
-
}),
|
|
2489
|
-
|
|
2490
|
-
},
|
|
2491
|
-
const
|
|
2492
|
-
if (
|
|
2493
|
-
const u = o.value[
|
|
2493
|
+
}), i = (s, u) => {
|
|
2494
|
+
s && (o.value[u] = s);
|
|
2495
|
+
}, a = () => {
|
|
2496
|
+
const s = t.value.findIndex((u) => u.name === n.value);
|
|
2497
|
+
if (s >= 0 && o.value[s]) {
|
|
2498
|
+
const u = o.value[s], d = u.offsetWidth, v = u.offsetLeft;
|
|
2494
2499
|
l.value = {
|
|
2495
2500
|
width: `${d}px`,
|
|
2496
2501
|
transform: `translateX(${v}px)`
|
|
2497
2502
|
};
|
|
2498
2503
|
}
|
|
2499
|
-
}, c = (
|
|
2500
|
-
t.value.find((d) => d.name ===
|
|
2501
|
-
!n.value && t.value.length === 1 && (n.value =
|
|
2504
|
+
}, c = (s, u) => {
|
|
2505
|
+
t.value.find((d) => d.name === s) || (t.value.push({ name: s, label: u }), he(() => {
|
|
2506
|
+
!n.value && t.value.length === 1 && (n.value = s), a();
|
|
2502
2507
|
}));
|
|
2503
|
-
},
|
|
2504
|
-
n.value =
|
|
2508
|
+
}, r = (s) => {
|
|
2509
|
+
n.value = s;
|
|
2505
2510
|
};
|
|
2506
2511
|
return K(n, () => {
|
|
2507
2512
|
he(() => {
|
|
2508
|
-
|
|
2513
|
+
a();
|
|
2509
2514
|
});
|
|
2510
2515
|
}), Xt("tabView", {
|
|
2511
2516
|
activeTab: () => n.value,
|
|
2512
2517
|
registerTab: c
|
|
2513
|
-
}), (
|
|
2514
|
-
_("div",
|
|
2518
|
+
}), (s, u) => (f(), g("div", ka, [
|
|
2519
|
+
_("div", Va, [
|
|
2515
2520
|
(f(!0), g(Q, null, pe(t.value, (d, v) => (f(), g("div", {
|
|
2516
2521
|
key: d.name,
|
|
2517
2522
|
ref_for: !0,
|
|
2518
|
-
ref: (p) =>
|
|
2523
|
+
ref: (p) => i(p, v),
|
|
2519
2524
|
class: I(["tab-button", { active: n.value === d.name }]),
|
|
2520
|
-
onClick: (p) =>
|
|
2525
|
+
onClick: (p) => r(d.name)
|
|
2521
2526
|
}, O(d.label), 11, Ca))), 128)),
|
|
2522
2527
|
u[0] || (u[0] = _("div", { class: "tab-line" }, null, -1)),
|
|
2523
2528
|
_("div", {
|
|
2524
2529
|
class: "tab-indicator",
|
|
2525
|
-
style:
|
|
2530
|
+
style: Y(l.value)
|
|
2526
2531
|
}, null, 4)
|
|
2527
2532
|
], 512),
|
|
2528
|
-
_("div",
|
|
2529
|
-
|
|
2533
|
+
_("div", Ea, [
|
|
2534
|
+
M(s.$slots, "default", {}, void 0, !0)
|
|
2530
2535
|
])
|
|
2531
2536
|
]));
|
|
2532
2537
|
}
|
|
2533
|
-
}),
|
|
2538
|
+
}), La = /* @__PURE__ */ A($a, [["__scopeId", "data-v-3d4ee454"]]), Sa = ["width", "height", "role", "tabindex", "aria-label", "onKeydown"], Ta = ["cx", "cy", "r", "stroke-width"], Ra = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Aa = ["transform"], Oa = ["x", "y", "width", "height", "rx"], Da = ["x", "y", "width", "height", "rx"], Ba = /* @__PURE__ */ R({
|
|
2534
2539
|
__name: "timer",
|
|
2535
2540
|
props: {
|
|
2536
2541
|
duration: { default: 5e3 },
|
|
@@ -2547,17 +2552,17 @@ const vn = {
|
|
|
2547
2552
|
l: { size: 40, strokeWidth: 2, innerStrokeWidth: 6 },
|
|
2548
2553
|
xl: { size: 64, strokeWidth: 2, innerStrokeWidth: 8 },
|
|
2549
2554
|
xxl: { size: 92, strokeWidth: 2, innerStrokeWidth: 10 }
|
|
2550
|
-
}, o = e, l = n,
|
|
2555
|
+
}, 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
2556
|
let v = null, p = null, h = 0;
|
|
2552
|
-
const y = k(() => (
|
|
2557
|
+
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
2558
|
K(
|
|
2554
2559
|
() => o.paused,
|
|
2555
2560
|
(F) => {
|
|
2556
|
-
d.value = F, F ?
|
|
2561
|
+
d.value = F, F ? V() : C();
|
|
2557
2562
|
}
|
|
2558
2563
|
), Re(() => {
|
|
2559
2564
|
w();
|
|
2560
|
-
}),
|
|
2565
|
+
}), Vn(() => {
|
|
2561
2566
|
D();
|
|
2562
2567
|
});
|
|
2563
2568
|
function x() {
|
|
@@ -2569,46 +2574,46 @@ const vn = {
|
|
|
2569
2574
|
function S() {
|
|
2570
2575
|
if (!p || d.value) return;
|
|
2571
2576
|
h = performance.now() - p;
|
|
2572
|
-
const W = Math.max(0, o.duration - h),
|
|
2573
|
-
|
|
2577
|
+
const W = Math.max(0, o.duration - h), oe = W / o.duration * 100;
|
|
2578
|
+
s.value = oe, W > 0 ? v = requestAnimationFrame(S) : j();
|
|
2574
2579
|
}
|
|
2575
|
-
async function
|
|
2580
|
+
async function j() {
|
|
2576
2581
|
if (!o.action) {
|
|
2577
2582
|
H();
|
|
2578
2583
|
return;
|
|
2579
2584
|
}
|
|
2580
|
-
|
|
2585
|
+
r.value = !0;
|
|
2581
2586
|
try {
|
|
2582
2587
|
await o.action();
|
|
2583
2588
|
} catch (F) {
|
|
2584
2589
|
console.error("Timer action failed:", F);
|
|
2585
2590
|
} finally {
|
|
2586
|
-
|
|
2591
|
+
r.value = !1, H();
|
|
2587
2592
|
}
|
|
2588
2593
|
}
|
|
2589
2594
|
function H() {
|
|
2590
2595
|
u.value = !0, h = 0, requestAnimationFrame(() => {
|
|
2591
|
-
|
|
2596
|
+
s.value = 100, requestAnimationFrame(() => {
|
|
2592
2597
|
u.value = !1, w();
|
|
2593
2598
|
});
|
|
2594
2599
|
});
|
|
2595
2600
|
}
|
|
2596
|
-
function
|
|
2601
|
+
function V() {
|
|
2597
2602
|
v !== null && (cancelAnimationFrame(v), v = null);
|
|
2598
2603
|
}
|
|
2599
|
-
function
|
|
2600
|
-
v === null && !
|
|
2604
|
+
function C() {
|
|
2605
|
+
v === null && !r.value && w();
|
|
2601
2606
|
}
|
|
2602
2607
|
function D() {
|
|
2603
2608
|
v !== null && (cancelAnimationFrame(v), v = null);
|
|
2604
2609
|
}
|
|
2605
2610
|
return (F, W) => (f(), g("svg", {
|
|
2606
|
-
width:
|
|
2607
|
-
height:
|
|
2611
|
+
width: i.value,
|
|
2612
|
+
height: i.value,
|
|
2608
2613
|
class: I([
|
|
2609
2614
|
"vj-timer",
|
|
2610
2615
|
{
|
|
2611
|
-
"vj-timer--executing":
|
|
2616
|
+
"vj-timer--executing": r.value,
|
|
2612
2617
|
"vj-timer--resetting": u.value,
|
|
2613
2618
|
"vj-timer--pausable": e.pausable,
|
|
2614
2619
|
"vj-timer--paused": d.value
|
|
@@ -2624,48 +2629,48 @@ const vn = {
|
|
|
2624
2629
|
]
|
|
2625
2630
|
}, [
|
|
2626
2631
|
_("circle", {
|
|
2627
|
-
cx:
|
|
2628
|
-
cy:
|
|
2632
|
+
cx: i.value / 2,
|
|
2633
|
+
cy: i.value / 2,
|
|
2629
2634
|
r: y.value,
|
|
2630
|
-
"stroke-width":
|
|
2635
|
+
"stroke-width": a.value,
|
|
2631
2636
|
class: "vj-timer__outer-ring",
|
|
2632
2637
|
fill: "none"
|
|
2633
|
-
}, null, 8,
|
|
2638
|
+
}, null, 8, Ta),
|
|
2634
2639
|
_("circle", {
|
|
2635
|
-
cx:
|
|
2636
|
-
cy:
|
|
2640
|
+
cx: i.value / 2,
|
|
2641
|
+
cy: i.value / 2,
|
|
2637
2642
|
r: y.value,
|
|
2638
2643
|
"stroke-width": c.value,
|
|
2639
2644
|
"stroke-dasharray": m.value,
|
|
2640
2645
|
"stroke-dashoffset": b.value,
|
|
2641
2646
|
class: "vj-timer__progress-ring",
|
|
2642
2647
|
fill: "none"
|
|
2643
|
-
}, null, 8,
|
|
2648
|
+
}, null, 8, Ra),
|
|
2644
2649
|
d.value ? (f(), g("g", {
|
|
2645
2650
|
key: 0,
|
|
2646
2651
|
class: "vj-timer__pause-icon",
|
|
2647
|
-
transform: `translate(${
|
|
2652
|
+
transform: `translate(${i.value / 2},${i.value / 2}) rotate(-90) scale(-1, 1)`
|
|
2648
2653
|
}, [
|
|
2649
2654
|
_("rect", {
|
|
2650
|
-
x: -
|
|
2651
|
-
y: -
|
|
2652
|
-
width:
|
|
2653
|
-
height:
|
|
2654
|
-
rx:
|
|
2655
|
+
x: -i.value * 0.12,
|
|
2656
|
+
y: -i.value * 0.15,
|
|
2657
|
+
width: i.value * 0.08,
|
|
2658
|
+
height: i.value * 0.3,
|
|
2659
|
+
rx: i.value * 0.015,
|
|
2655
2660
|
class: "vj-timer__pause-bar"
|
|
2656
|
-
}, null, 8,
|
|
2661
|
+
}, null, 8, Oa),
|
|
2657
2662
|
_("rect", {
|
|
2658
|
-
x:
|
|
2659
|
-
y: -
|
|
2660
|
-
width:
|
|
2661
|
-
height:
|
|
2662
|
-
rx:
|
|
2663
|
+
x: i.value * 0.04,
|
|
2664
|
+
y: -i.value * 0.15,
|
|
2665
|
+
width: i.value * 0.08,
|
|
2666
|
+
height: i.value * 0.3,
|
|
2667
|
+
rx: i.value * 0.015,
|
|
2663
2668
|
class: "vj-timer__pause-bar"
|
|
2664
|
-
}, null, 8,
|
|
2665
|
-
], 8,
|
|
2666
|
-
], 42,
|
|
2669
|
+
}, null, 8, Da)
|
|
2670
|
+
], 8, Aa)) : L("", !0)
|
|
2671
|
+
], 42, Sa));
|
|
2667
2672
|
}
|
|
2668
|
-
}),
|
|
2673
|
+
}), Ma = /* @__PURE__ */ A(Ba, [["__scopeId", "data-v-49a33853"]]), ja = ["onKeydown"], Pa = /* @__PURE__ */ R({
|
|
2669
2674
|
__name: "editable-label",
|
|
2670
2675
|
props: {
|
|
2671
2676
|
modelValue: {},
|
|
@@ -2673,44 +2678,44 @@ const vn = {
|
|
|
2673
2678
|
},
|
|
2674
2679
|
emits: ["update:modelValue", "edit"],
|
|
2675
2680
|
setup(e, { emit: n }) {
|
|
2676
|
-
const t = e, o = n, l = k(() => t.modelValue ?? ""),
|
|
2681
|
+
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
2682
|
K(l, (p) => {
|
|
2678
|
-
|
|
2683
|
+
i.value = p;
|
|
2679
2684
|
});
|
|
2680
2685
|
function u() {
|
|
2681
|
-
|
|
2686
|
+
a.value = !0, he(() => r.value?.focus());
|
|
2682
2687
|
}
|
|
2683
2688
|
function d() {
|
|
2684
|
-
|
|
2689
|
+
a.value = !1, i.value !== l.value && (o("update:modelValue", i.value), o("edit", i.value));
|
|
2685
2690
|
}
|
|
2686
2691
|
function v() {
|
|
2687
|
-
|
|
2692
|
+
i.value = l.value, a.value = !1;
|
|
2688
2693
|
}
|
|
2689
2694
|
return (p, h) => (f(), g("span", {
|
|
2690
|
-
class: I(["vj-editable-label", { editing:
|
|
2695
|
+
class: I(["vj-editable-label", { editing: a.value }]),
|
|
2691
2696
|
onMouseenter: h[1] || (h[1] = (y) => c.value = !0),
|
|
2692
2697
|
onMouseleave: h[2] || (h[2] = (y) => c.value = !1)
|
|
2693
2698
|
}, [
|
|
2694
|
-
|
|
2699
|
+
a.value ? ft((f(), g("input", {
|
|
2695
2700
|
key: 1,
|
|
2696
2701
|
ref_key: "inputRef",
|
|
2697
|
-
ref:
|
|
2702
|
+
ref: r,
|
|
2698
2703
|
class: "edit-input",
|
|
2699
|
-
"onUpdate:modelValue": h[0] || (h[0] = (y) =>
|
|
2704
|
+
"onUpdate:modelValue": h[0] || (h[0] = (y) => i.value = y),
|
|
2700
2705
|
onKeydown: [
|
|
2701
2706
|
Be(U(d, ["prevent"]), ["enter"]),
|
|
2702
2707
|
Be(U(v, ["prevent"]), ["esc"])
|
|
2703
2708
|
],
|
|
2704
2709
|
onBlur: d
|
|
2705
2710
|
}, null, 40, ja)), [
|
|
2706
|
-
[
|
|
2711
|
+
[Cn, i.value]
|
|
2707
2712
|
]) : (f(), g(Q, { key: 0 }, [
|
|
2708
2713
|
_("span", {
|
|
2709
2714
|
class: "label-text",
|
|
2710
2715
|
onClick: u,
|
|
2711
2716
|
title: "Click to edit"
|
|
2712
2717
|
}, O(l.value), 1),
|
|
2713
|
-
c.value ||
|
|
2718
|
+
c.value || s.value ? (f(), g("span", {
|
|
2714
2719
|
key: 0,
|
|
2715
2720
|
class: "edit-icon",
|
|
2716
2721
|
onClick: U(u, ["stop"])
|
|
@@ -2722,7 +2727,7 @@ const vn = {
|
|
|
2722
2727
|
], 64))
|
|
2723
2728
|
], 34));
|
|
2724
2729
|
}
|
|
2725
|
-
}),
|
|
2730
|
+
}), hs = /* @__PURE__ */ A(Pa, [["__scopeId", "data-v-cdc52c5b"]]), Fa = "200% 200%", za = /* @__PURE__ */ R({
|
|
2726
2731
|
__name: "skeleton",
|
|
2727
2732
|
props: {
|
|
2728
2733
|
width: {},
|
|
@@ -2731,18 +2736,18 @@ const vn = {
|
|
|
2731
2736
|
},
|
|
2732
2737
|
setup(e) {
|
|
2733
2738
|
const n = e, t = k(() => n.width ?? "100%"), o = k(() => n.height ?? "16px"), l = k(() => n.borderRadius ?? "4px");
|
|
2734
|
-
return (
|
|
2739
|
+
return (i, a) => (f(), g("div", {
|
|
2735
2740
|
class: "vj-skeleton",
|
|
2736
|
-
style:
|
|
2741
|
+
style: Y({
|
|
2737
2742
|
width: t.value,
|
|
2738
2743
|
height: o.value,
|
|
2739
2744
|
borderRadius: l.value,
|
|
2740
|
-
backgroundSize:
|
|
2745
|
+
backgroundSize: Fa
|
|
2741
2746
|
}),
|
|
2742
2747
|
"aria-hidden": "true"
|
|
2743
2748
|
}, null, 4));
|
|
2744
2749
|
}
|
|
2745
|
-
}),
|
|
2750
|
+
}), Ia = /* @__PURE__ */ A(za, [["__scopeId", "data-v-ac05e016"]]), Ha = /* @__PURE__ */ R({
|
|
2746
2751
|
__name: "amount-bar",
|
|
2747
2752
|
props: {
|
|
2748
2753
|
amount: {},
|
|
@@ -2751,12 +2756,12 @@ const vn = {
|
|
|
2751
2756
|
colorMode: { default: "monochrome" }
|
|
2752
2757
|
},
|
|
2753
2758
|
setup(e) {
|
|
2754
|
-
const n = e, t = k(() => n.amount / n.maxAmount * 100), o = (
|
|
2759
|
+
const n = e, t = k(() => n.amount / n.maxAmount * 100), o = (i) => {
|
|
2755
2760
|
if (!n.segments) return !1;
|
|
2756
|
-
const
|
|
2761
|
+
const a = 100 / n.segments, c = i * a;
|
|
2757
2762
|
return t.value > c;
|
|
2758
|
-
}, l = (
|
|
2759
|
-
return (
|
|
2763
|
+
}, l = (i) => (160 - i / (n.segments - 1 || 1) * 160).toString();
|
|
2764
|
+
return (i, a) => (f(), g("div", {
|
|
2760
2765
|
class: I([
|
|
2761
2766
|
"amount-bar",
|
|
2762
2767
|
{
|
|
@@ -2766,23 +2771,23 @@ const vn = {
|
|
|
2766
2771
|
}
|
|
2767
2772
|
])
|
|
2768
2773
|
}, [
|
|
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:
|
|
2774
|
+
e.segments ? (f(!0), g(Q, { key: 0 }, pe(Array.from({ length: e.segments }), (c, r) => (f(), g("div", {
|
|
2775
|
+
key: r,
|
|
2776
|
+
class: I(["amount-bar__segment", { "amount-bar__segment--filled": o(r) }]),
|
|
2777
|
+
style: Y(o(r) && e.colorMode === "hue-gradient" ? { backgroundColor: `hsl(${l(r)}, 100%, 45%)` } : {})
|
|
2773
2778
|
}, null, 6))), 128)) : (f(), g("div", {
|
|
2774
2779
|
key: 1,
|
|
2775
2780
|
class: "amount-bar__fill",
|
|
2776
|
-
style:
|
|
2781
|
+
style: Y({ width: `${e.amount / e.maxAmount * 100}%` })
|
|
2777
2782
|
}, null, 4))
|
|
2778
2783
|
], 2));
|
|
2779
2784
|
}
|
|
2780
|
-
}),
|
|
2785
|
+
}), Wa = /* @__PURE__ */ A(Ha, [["__scopeId", "data-v-7e89d03f"]]), Ua = ["multiple", "accept", "disabled"], Na = { class: "upload-text" }, Ka = { class: "upload-title" }, Xa = { class: "upload-subtitle" }, qa = {
|
|
2781
2786
|
key: 0,
|
|
2782
2787
|
class: "upload-files"
|
|
2783
|
-
},
|
|
2788
|
+
}, Ga = { class: "file-info" }, Ya = { class: "file-details" }, Ja = { class: "file-name" }, Qa = { class: "file-size" }, Za = /* @__PURE__ */ R({
|
|
2784
2789
|
__name: "upload",
|
|
2785
|
-
props: /* @__PURE__ */
|
|
2790
|
+
props: /* @__PURE__ */ G({
|
|
2786
2791
|
multiple: { type: Boolean, default: !0 },
|
|
2787
2792
|
accept: { default: "*" },
|
|
2788
2793
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -2797,18 +2802,18 @@ const vn = {
|
|
|
2797
2802
|
},
|
|
2798
2803
|
modelModifiers: {}
|
|
2799
2804
|
}),
|
|
2800
|
-
emits: /* @__PURE__ */
|
|
2805
|
+
emits: /* @__PURE__ */ G(["update:modelValue", "file-added", "file-removed"], ["update:modelValue"]),
|
|
2801
2806
|
setup(e, { emit: n }) {
|
|
2802
|
-
const t = e, o = n, l =
|
|
2807
|
+
const t = e, o = n, l = ne(e, "modelValue"), i = E(), a = E(!1), c = E(!1), r = (y) => {
|
|
2803
2808
|
const m = y.target, b = Array.from(m.files || []);
|
|
2804
|
-
v(b),
|
|
2805
|
-
},
|
|
2806
|
-
t.disabled || (
|
|
2809
|
+
v(b), i.value && (i.value.value = "");
|
|
2810
|
+
}, s = () => {
|
|
2811
|
+
t.disabled || (a.value = !0, c.value = !0);
|
|
2807
2812
|
}, u = () => {
|
|
2808
|
-
|
|
2813
|
+
a.value = !1, c.value = !1;
|
|
2809
2814
|
}, d = (y) => {
|
|
2810
2815
|
if (t.disabled) return;
|
|
2811
|
-
|
|
2816
|
+
a.value = !1, c.value = !1;
|
|
2812
2817
|
const m = Array.from(y.dataTransfer?.files || []);
|
|
2813
2818
|
v(m);
|
|
2814
2819
|
}, v = (y) => {
|
|
@@ -2825,25 +2830,25 @@ const vn = {
|
|
|
2825
2830
|
return Math.round(y / Math.pow(m, x) * 100) / 100 + " " + b[x];
|
|
2826
2831
|
};
|
|
2827
2832
|
return (y, m) => (f(), g("div", {
|
|
2828
|
-
class: I(["upload", { dragging:
|
|
2833
|
+
class: I(["upload", { dragging: a.value, disabled: e.disabled }])
|
|
2829
2834
|
}, [
|
|
2830
2835
|
_("input", {
|
|
2831
2836
|
ref_key: "fileInput",
|
|
2832
|
-
ref:
|
|
2837
|
+
ref: i,
|
|
2833
2838
|
type: "file",
|
|
2834
2839
|
multiple: e.multiple,
|
|
2835
2840
|
accept: e.accept,
|
|
2836
2841
|
disabled: e.disabled,
|
|
2837
2842
|
class: "upload-input",
|
|
2838
|
-
onChange:
|
|
2839
|
-
onDragover:
|
|
2843
|
+
onChange: r,
|
|
2844
|
+
onDragover: s,
|
|
2840
2845
|
onDragleave: u,
|
|
2841
2846
|
onDrop: d
|
|
2842
|
-
}, null, 40,
|
|
2847
|
+
}, null, 40, Ua),
|
|
2843
2848
|
_("div", {
|
|
2844
2849
|
class: "upload-content",
|
|
2845
|
-
onClick: m[1] || (m[1] = (b) =>
|
|
2846
|
-
onDragover: U(
|
|
2850
|
+
onClick: m[1] || (m[1] = (b) => i.value?.click()),
|
|
2851
|
+
onDragover: U(s, ["prevent"]),
|
|
2847
2852
|
onDragleave: U(u, ["prevent"]),
|
|
2848
2853
|
onDrop: U(d, ["prevent"])
|
|
2849
2854
|
}, [
|
|
@@ -2852,30 +2857,30 @@ const vn = {
|
|
|
2852
2857
|
size: $(X).L,
|
|
2853
2858
|
class: "upload-icon"
|
|
2854
2859
|
}, null, 8, ["icon", "size"]),
|
|
2855
|
-
_("div",
|
|
2856
|
-
_("p",
|
|
2857
|
-
_("p",
|
|
2860
|
+
_("div", Na, [
|
|
2861
|
+
_("p", Ka, O(c.value ? e.dropText : e.uploadText), 1),
|
|
2862
|
+
_("p", Xa, O(e.subtitleText), 1)
|
|
2858
2863
|
]),
|
|
2859
2864
|
T(Ge, {
|
|
2860
2865
|
label: e.browseText,
|
|
2861
2866
|
primary: !0,
|
|
2862
2867
|
disabled: e.disabled,
|
|
2863
|
-
onClick: m[0] || (m[0] = U((b) =>
|
|
2868
|
+
onClick: m[0] || (m[0] = U((b) => i.value?.click(), ["stop"]))
|
|
2864
2869
|
}, null, 8, ["label", "disabled"])
|
|
2865
2870
|
], 32),
|
|
2866
|
-
l.value.length > 0 ? (f(), g("div",
|
|
2871
|
+
l.value.length > 0 ? (f(), g("div", qa, [
|
|
2867
2872
|
(f(!0), g(Q, null, pe(l.value, (b, x) => (f(), g("div", {
|
|
2868
2873
|
key: x,
|
|
2869
2874
|
class: "upload-file-item"
|
|
2870
2875
|
}, [
|
|
2871
|
-
_("div",
|
|
2876
|
+
_("div", Ga, [
|
|
2872
2877
|
T(te, {
|
|
2873
2878
|
icon: $(z).ATTACHMENT,
|
|
2874
2879
|
size: $(X).S
|
|
2875
2880
|
}, null, 8, ["icon", "size"]),
|
|
2876
|
-
_("div",
|
|
2877
|
-
_("p",
|
|
2878
|
-
_("p",
|
|
2881
|
+
_("div", Ya, [
|
|
2882
|
+
_("p", Ja, O(b.name), 1),
|
|
2883
|
+
_("p", Qa, O(h(b.size)), 1)
|
|
2879
2884
|
])
|
|
2880
2885
|
]),
|
|
2881
2886
|
e.disabled ? L("", !0) : (f(), P(te, {
|
|
@@ -2889,14 +2894,14 @@ const vn = {
|
|
|
2889
2894
|
])) : L("", !0)
|
|
2890
2895
|
], 2));
|
|
2891
2896
|
}
|
|
2892
|
-
}),
|
|
2897
|
+
}), ei = /* @__PURE__ */ A(Za, [["__scopeId", "data-v-2f7be5e5"]]), mn = {
|
|
2893
2898
|
form: {
|
|
2894
2899
|
labelPosition: "inline",
|
|
2895
2900
|
appearance: "bordered"
|
|
2896
2901
|
}
|
|
2897
2902
|
};
|
|
2898
2903
|
let qe = {};
|
|
2899
|
-
function
|
|
2904
|
+
function gs(e) {
|
|
2900
2905
|
qe = {
|
|
2901
2906
|
...qe,
|
|
2902
2907
|
...e,
|
|
@@ -2914,18 +2919,18 @@ function Ut() {
|
|
|
2914
2919
|
}
|
|
2915
2920
|
};
|
|
2916
2921
|
}
|
|
2917
|
-
function
|
|
2922
|
+
function bs() {
|
|
2918
2923
|
qe = {};
|
|
2919
2924
|
}
|
|
2920
|
-
const
|
|
2925
|
+
const ti = ["data-colspan", "data-newline"], ni = ["for"], oi = { class: "form-field__wrapper" }, li = ["for"], ai = {
|
|
2921
2926
|
key: 1,
|
|
2922
2927
|
class: "form-field__error"
|
|
2923
|
-
},
|
|
2928
|
+
}, ii = {
|
|
2924
2929
|
key: 2,
|
|
2925
2930
|
class: "form-field__help",
|
|
2926
2931
|
type: "button",
|
|
2927
2932
|
"aria-label": "Hilfe"
|
|
2928
|
-
},
|
|
2933
|
+
}, si = /* @__PURE__ */ R({
|
|
2929
2934
|
directives: { tooltip: vn },
|
|
2930
2935
|
__name: "form-field",
|
|
2931
2936
|
props: {
|
|
@@ -2944,26 +2949,26 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
2944
2949
|
},
|
|
2945
2950
|
emits: ["update:modelValue", "focus", "blur"],
|
|
2946
2951
|
setup(e, { emit: n }) {
|
|
2947
|
-
const t = e, o = n, l = E(t.modelValue),
|
|
2952
|
+
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
2953
|
K(
|
|
2949
2954
|
() => t.modelValue,
|
|
2950
2955
|
(h) => l.value = h
|
|
2951
2956
|
);
|
|
2952
|
-
const
|
|
2957
|
+
const s = k(() => {
|
|
2953
2958
|
if (c.value === "outline")
|
|
2954
2959
|
return !0;
|
|
2955
2960
|
const h = l.value !== "" && l.value !== null && l.value !== void 0;
|
|
2956
|
-
return
|
|
2957
|
-
}), u = k(() => c.value === "outline" ||
|
|
2961
|
+
return i.value || h;
|
|
2962
|
+
}), u = k(() => c.value === "outline" || s.value ? t.placeholder : "");
|
|
2958
2963
|
function d(h) {
|
|
2959
2964
|
const m = h.target.value;
|
|
2960
2965
|
l.value = m, o("update:modelValue", m);
|
|
2961
2966
|
}
|
|
2962
2967
|
function v(h) {
|
|
2963
|
-
|
|
2968
|
+
i.value = !0, o("focus", h);
|
|
2964
2969
|
}
|
|
2965
2970
|
function p(h) {
|
|
2966
|
-
|
|
2971
|
+
i.value = !1, o("blur", h);
|
|
2967
2972
|
}
|
|
2968
2973
|
return (h, y) => {
|
|
2969
2974
|
const m = q("VjIcon"), b = qt("tooltip");
|
|
@@ -2971,23 +2976,23 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
2971
2976
|
class: I([
|
|
2972
2977
|
"form-field",
|
|
2973
2978
|
`form-field--${c.value}`,
|
|
2974
|
-
`form-field--${
|
|
2979
|
+
`form-field--${r.value}`,
|
|
2975
2980
|
{ disabled: e.disabled },
|
|
2976
2981
|
{ labelless: !e.label },
|
|
2977
2982
|
{ error: !!e.error }
|
|
2978
2983
|
]),
|
|
2979
2984
|
"data-colspan": t.spanRow ? void 0 : t.colspan,
|
|
2980
2985
|
"data-newline": t.spanRow || t.newLine ? "true" : void 0,
|
|
2981
|
-
style:
|
|
2986
|
+
style: Y(t.spanRow ? { gridColumn: "1 / -1" } : void 0)
|
|
2982
2987
|
}, [
|
|
2983
2988
|
e.label && c.value === "outline" ? (f(), g("label", {
|
|
2984
2989
|
key: 0,
|
|
2985
|
-
for:
|
|
2990
|
+
for: a.value,
|
|
2986
2991
|
class: "form-field__label-outline"
|
|
2987
|
-
}, O(e.label), 9,
|
|
2988
|
-
_("div",
|
|
2989
|
-
|
|
2990
|
-
id:
|
|
2992
|
+
}, O(e.label), 9, ni)) : L("", !0),
|
|
2993
|
+
_("div", oi, [
|
|
2994
|
+
M(h.$slots, "control", {
|
|
2995
|
+
id: a.value,
|
|
2991
2996
|
value: l.value,
|
|
2992
2997
|
onInput: d,
|
|
2993
2998
|
onFocus: v,
|
|
@@ -2997,22 +3002,22 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
2997
3002
|
}, void 0, !0),
|
|
2998
3003
|
e.label && c.value === "inline" ? (f(), g("label", {
|
|
2999
3004
|
key: 0,
|
|
3000
|
-
for:
|
|
3001
|
-
class: I(["form-field__label", { "form-field__label--float":
|
|
3002
|
-
}, O(e.label), 11,
|
|
3005
|
+
for: a.value,
|
|
3006
|
+
class: I(["form-field__label", { "form-field__label--float": s.value }])
|
|
3007
|
+
}, O(e.label), 11, li)) : L("", !0)
|
|
3003
3008
|
]),
|
|
3004
|
-
e.error ? (f(), g("div",
|
|
3005
|
-
t.helpText ? ft((f(), g("button",
|
|
3009
|
+
e.error ? (f(), g("div", ai, O(e.error), 1)) : L("", !0),
|
|
3010
|
+
t.helpText ? ft((f(), g("button", ii, [
|
|
3006
3011
|
T(m, {
|
|
3007
3012
|
icon: $(z).HELP
|
|
3008
3013
|
}, null, 8, ["icon"])
|
|
3009
3014
|
])), [
|
|
3010
3015
|
[b, t.helpText]
|
|
3011
3016
|
]) : L("", !0)
|
|
3012
|
-
], 14,
|
|
3017
|
+
], 14, ti);
|
|
3013
3018
|
};
|
|
3014
3019
|
}
|
|
3015
|
-
}), Ie = /* @__PURE__ */ A(
|
|
3020
|
+
}), Ie = /* @__PURE__ */ A(si, [["__scopeId", "data-v-19959d5e"]]), ri = /* @__PURE__ */ R({
|
|
3016
3021
|
__name: "form-layout",
|
|
3017
3022
|
props: {
|
|
3018
3023
|
columns: { type: Number, default: 4 },
|
|
@@ -3023,9 +3028,9 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3023
3028
|
let o = null;
|
|
3024
3029
|
function l() {
|
|
3025
3030
|
if (!t.value) return;
|
|
3026
|
-
Array.from(t.value.children).forEach((
|
|
3027
|
-
const c =
|
|
3028
|
-
|
|
3031
|
+
Array.from(t.value.children).forEach((a) => {
|
|
3032
|
+
const c = a.getAttribute("data-colspan"), r = c ? Math.max(1, Number(c) || 1) : 1, s = a.getAttribute("data-newline");
|
|
3033
|
+
s !== null && s !== "false" ? a.style.gridColumn = "1 / -1" : a.style.gridColumn = `span ${r}`;
|
|
3029
3034
|
});
|
|
3030
3035
|
}
|
|
3031
3036
|
return Re(() => {
|
|
@@ -3040,37 +3045,37 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3040
3045
|
), K(
|
|
3041
3046
|
() => n.gap,
|
|
3042
3047
|
() => he(l)
|
|
3043
|
-
), (
|
|
3048
|
+
), (i, a) => (f(), g("div", {
|
|
3044
3049
|
ref_key: "container",
|
|
3045
3050
|
ref: t,
|
|
3046
3051
|
class: "form-layout",
|
|
3047
|
-
style:
|
|
3052
|
+
style: Y({ gridTemplateColumns: `repeat(${e.columns}, minmax(0, 1fr))`, gap: e.gap })
|
|
3048
3053
|
}, [
|
|
3049
|
-
|
|
3054
|
+
M(i.$slots, "default", {}, void 0, !0)
|
|
3050
3055
|
], 4));
|
|
3051
3056
|
}
|
|
3052
|
-
}),
|
|
3057
|
+
}), ci = /* @__PURE__ */ A(ri, [["__scopeId", "data-v-96f62ab7"]]), ui = {
|
|
3053
3058
|
key: 0,
|
|
3054
3059
|
class: "form-section__title",
|
|
3055
3060
|
"data-newline": ""
|
|
3056
|
-
},
|
|
3061
|
+
}, di = /* @__PURE__ */ R({
|
|
3057
3062
|
__name: "form-section",
|
|
3058
3063
|
props: {
|
|
3059
3064
|
title: {}
|
|
3060
3065
|
},
|
|
3061
3066
|
setup(e) {
|
|
3062
3067
|
return (n, t) => (f(), g(Q, null, [
|
|
3063
|
-
e.title ? (f(), g("h3",
|
|
3064
|
-
|
|
3068
|
+
e.title ? (f(), g("h3", ui, O(e.title), 1)) : L("", !0),
|
|
3069
|
+
M(n.$slots, "default", {}, void 0, !0)
|
|
3065
3070
|
], 64));
|
|
3066
3071
|
}
|
|
3067
|
-
}),
|
|
3072
|
+
}), fi = /* @__PURE__ */ A(di, [["__scopeId", "data-v-69cff1d0"]]), vi = ["id", "disabled"], mi = { class: "select-value" }, pi = {
|
|
3068
3073
|
key: 1,
|
|
3069
3074
|
class: "select-placeholder"
|
|
3070
|
-
},
|
|
3075
|
+
}, hi = { class: "select-options" }, gi = ["onClick", "onMouseenter"], bi = /* @__PURE__ */ R({
|
|
3071
3076
|
inheritAttrs: !1,
|
|
3072
3077
|
__name: "select",
|
|
3073
|
-
props: /* @__PURE__ */
|
|
3078
|
+
props: /* @__PURE__ */ G({
|
|
3074
3079
|
options: {},
|
|
3075
3080
|
placeholder: {},
|
|
3076
3081
|
disabled: { type: Boolean },
|
|
@@ -3085,7 +3090,7 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3085
3090
|
}),
|
|
3086
3091
|
emits: ["update:modelValue"],
|
|
3087
3092
|
setup(e, { expose: n }) {
|
|
3088
|
-
const t = e, o =
|
|
3093
|
+
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
3094
|
placement: "bottom-start",
|
|
3090
3095
|
middleware: [
|
|
3091
3096
|
tt(4),
|
|
@@ -3103,29 +3108,29 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3103
3108
|
}), 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
3109
|
t.disabled || (l.value = !l.value);
|
|
3105
3110
|
}, y = () => {
|
|
3106
|
-
l.value = !1,
|
|
3111
|
+
l.value = !1, i.value = -1;
|
|
3107
3112
|
}, m = (w) => {
|
|
3108
3113
|
o.value = d(w), y();
|
|
3109
3114
|
}, b = () => {
|
|
3110
3115
|
o.value = void 0;
|
|
3111
3116
|
}, x = (w) => {
|
|
3112
|
-
l.value &&
|
|
3117
|
+
l.value && a.value && !a.value.contains(w.target) && y();
|
|
3113
3118
|
};
|
|
3114
3119
|
return Re(() => {
|
|
3115
3120
|
document.addEventListener("click", x);
|
|
3116
3121
|
}), Ae(() => {
|
|
3117
3122
|
document.removeEventListener("click", x);
|
|
3118
3123
|
}), K(l, (w) => {
|
|
3119
|
-
w && v.value && (
|
|
3124
|
+
w && v.value && (i.value = t.options.findIndex((S) => p(S)));
|
|
3120
3125
|
}), n({
|
|
3121
3126
|
focus: () => c.value?.focus(),
|
|
3122
3127
|
blur: () => c.value?.blur()
|
|
3123
3128
|
}), (w, S) => {
|
|
3124
|
-
const
|
|
3129
|
+
const j = q("VjIcon");
|
|
3125
3130
|
return f(), g(Q, null, [
|
|
3126
3131
|
_("div", {
|
|
3127
3132
|
ref_key: "selectRef",
|
|
3128
|
-
ref:
|
|
3133
|
+
ref: a,
|
|
3129
3134
|
class: I(["select", w.$attrs.class])
|
|
3130
3135
|
}, [
|
|
3131
3136
|
_("button", {
|
|
@@ -3137,58 +3142,58 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3137
3142
|
onClick: h,
|
|
3138
3143
|
disabled: e.disabled
|
|
3139
3144
|
}, [
|
|
3140
|
-
t.icon ? (f(), P(
|
|
3145
|
+
t.icon ? (f(), P(j, {
|
|
3141
3146
|
key: 0,
|
|
3142
3147
|
icon: t.icon,
|
|
3143
3148
|
size: $(X).S,
|
|
3144
3149
|
class: "select-icon-left"
|
|
3145
3150
|
}, null, 8, ["icon", "size"])) : L("", !0),
|
|
3146
|
-
_("span",
|
|
3147
|
-
v.value ?
|
|
3151
|
+
_("span", mi, [
|
|
3152
|
+
v.value ? M(w.$slots, "selected", {
|
|
3148
3153
|
key: 0,
|
|
3149
3154
|
option: v.value
|
|
3150
3155
|
}, () => [
|
|
3151
3156
|
Ue(O(u(v.value)), 1)
|
|
3152
|
-
], !0) : (f(), g("span",
|
|
3157
|
+
], !0) : (f(), g("span", pi, O(e.placeholder), 1))
|
|
3153
3158
|
]),
|
|
3154
|
-
t.clearable && v.value && !e.disabled ? (f(), P(
|
|
3159
|
+
t.clearable && v.value && !e.disabled ? (f(), P(j, {
|
|
3155
3160
|
key: 1,
|
|
3156
3161
|
icon: $(z).CLOSE,
|
|
3157
3162
|
size: $(X).S,
|
|
3158
3163
|
class: "select-clear-icon",
|
|
3159
3164
|
onClick: U(b, ["stop"])
|
|
3160
3165
|
}, null, 8, ["icon", "size"])) : L("", !0),
|
|
3161
|
-
T(
|
|
3166
|
+
T(j, {
|
|
3162
3167
|
icon: $(z).CHEVRON_DOWN,
|
|
3163
3168
|
size: $(X).S,
|
|
3164
3169
|
class: I(["select-icon-right", { open: l.value }])
|
|
3165
3170
|
}, null, 8, ["icon", "size", "class"])
|
|
3166
|
-
], 8,
|
|
3171
|
+
], 8, vi)
|
|
3167
3172
|
], 2),
|
|
3168
|
-
(f(), P(
|
|
3173
|
+
(f(), P(je, { to: "body" }, [
|
|
3169
3174
|
T(Le, { name: "dropdown" }, {
|
|
3170
3175
|
default: N(() => [
|
|
3171
3176
|
l.value ? (f(), g("div", {
|
|
3172
3177
|
key: 0,
|
|
3173
3178
|
ref_key: "floatingRef",
|
|
3174
|
-
ref:
|
|
3175
|
-
style:
|
|
3179
|
+
ref: r,
|
|
3180
|
+
style: Y($(s)),
|
|
3176
3181
|
class: "select-dropdown"
|
|
3177
3182
|
}, [
|
|
3178
|
-
_("div",
|
|
3179
|
-
(f(!0), g(Q, null, pe(e.options, (H,
|
|
3183
|
+
_("div", hi, [
|
|
3184
|
+
(f(!0), g(Q, null, pe(e.options, (H, V) => (f(), g("div", {
|
|
3180
3185
|
key: String(d(H)),
|
|
3181
|
-
class: I(["select-option", { selected: p(H), highlighted:
|
|
3182
|
-
onClick: (
|
|
3183
|
-
onMouseenter: (
|
|
3186
|
+
class: I(["select-option", { selected: p(H), highlighted: i.value === V }]),
|
|
3187
|
+
onClick: (C) => m(H),
|
|
3188
|
+
onMouseenter: (C) => i.value = V
|
|
3184
3189
|
}, [
|
|
3185
|
-
|
|
3190
|
+
M(w.$slots, "option", {
|
|
3186
3191
|
option: H,
|
|
3187
3192
|
selected: p(H)
|
|
3188
3193
|
}, () => [
|
|
3189
3194
|
Ue(O(u(H)), 1)
|
|
3190
3195
|
], !0)
|
|
3191
|
-
], 42,
|
|
3196
|
+
], 42, gi))), 128))
|
|
3192
3197
|
])
|
|
3193
3198
|
], 4)) : L("", !0)
|
|
3194
3199
|
]),
|
|
@@ -3203,7 +3208,7 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3203
3208
|
], 64);
|
|
3204
3209
|
};
|
|
3205
3210
|
}
|
|
3206
|
-
}), pn = /* @__PURE__ */ A(
|
|
3211
|
+
}), pn = /* @__PURE__ */ A(bi, [["__scopeId", "data-v-f33ae75c"]]), yi = /* @__PURE__ */ R({
|
|
3207
3212
|
__name: "input-select",
|
|
3208
3213
|
props: {
|
|
3209
3214
|
modelValue: {},
|
|
@@ -3225,16 +3230,16 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3225
3230
|
const t = e, o = n, l = E(t.modelValue);
|
|
3226
3231
|
K(
|
|
3227
3232
|
() => t.modelValue,
|
|
3228
|
-
(
|
|
3229
|
-
l.value =
|
|
3233
|
+
(a) => {
|
|
3234
|
+
l.value = a;
|
|
3230
3235
|
}
|
|
3231
3236
|
);
|
|
3232
|
-
const
|
|
3233
|
-
l.value =
|
|
3237
|
+
const i = (a) => {
|
|
3238
|
+
l.value = a, o("update:modelValue", a);
|
|
3234
3239
|
};
|
|
3235
|
-
return (
|
|
3240
|
+
return (a, c) => (f(), P(Ie, {
|
|
3236
3241
|
modelValue: l.value,
|
|
3237
|
-
"onUpdate:modelValue":
|
|
3242
|
+
"onUpdate:modelValue": i,
|
|
3238
3243
|
label: t.label,
|
|
3239
3244
|
id: t.id,
|
|
3240
3245
|
placeholder: t.placeholder,
|
|
@@ -3247,32 +3252,32 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3247
3252
|
labelPosition: t.labelPosition,
|
|
3248
3253
|
appearance: t.appearance
|
|
3249
3254
|
}, {
|
|
3250
|
-
control: N(({ id:
|
|
3255
|
+
control: N(({ id: r, disabled: s, placeholder: u }) => [
|
|
3251
3256
|
T(pn, {
|
|
3252
|
-
id:
|
|
3257
|
+
id: r,
|
|
3253
3258
|
modelValue: l.value,
|
|
3254
3259
|
"onUpdate:modelValue": [
|
|
3255
3260
|
c[0] || (c[0] = (d) => l.value = d),
|
|
3256
|
-
|
|
3261
|
+
i
|
|
3257
3262
|
],
|
|
3258
3263
|
options: t.options,
|
|
3259
3264
|
placeholder: u,
|
|
3260
|
-
disabled:
|
|
3265
|
+
disabled: s,
|
|
3261
3266
|
"option-label": (d) => d.label,
|
|
3262
3267
|
"option-value": (d) => d.value,
|
|
3263
3268
|
clearable: ""
|
|
3264
3269
|
}, dt({ _: 2 }, [
|
|
3265
|
-
|
|
3270
|
+
a.$slots.selected ? {
|
|
3266
3271
|
name: "selected",
|
|
3267
3272
|
fn: N(({ option: d }) => [
|
|
3268
|
-
|
|
3273
|
+
M(a.$slots, "selected", { option: d })
|
|
3269
3274
|
]),
|
|
3270
3275
|
key: "0"
|
|
3271
3276
|
} : void 0,
|
|
3272
|
-
|
|
3277
|
+
a.$slots.option ? {
|
|
3273
3278
|
name: "option",
|
|
3274
3279
|
fn: N(({ option: d }) => [
|
|
3275
|
-
|
|
3280
|
+
M(a.$slots, "option", { option: d })
|
|
3276
3281
|
]),
|
|
3277
3282
|
key: "1"
|
|
3278
3283
|
} : void 0
|
|
@@ -3281,7 +3286,7 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3281
3286
|
_: 3
|
|
3282
3287
|
}, 8, ["modelValue", "label", "id", "placeholder", "disabled", "colspan", "newLine", "spanRow", "error", "helpText", "labelPosition", "appearance"]));
|
|
3283
3288
|
}
|
|
3284
|
-
}),
|
|
3289
|
+
}), wi = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-label"], _i = ["aria-valuemin", "aria-valuemax", "aria-valuenow"], xi = /* @__PURE__ */ R({
|
|
3285
3290
|
__name: "slider",
|
|
3286
3291
|
props: {
|
|
3287
3292
|
modelValue: { default: void 0 },
|
|
@@ -3292,75 +3297,75 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3292
3297
|
},
|
|
3293
3298
|
emits: ["update:modelValue", "change"],
|
|
3294
3299
|
setup(e, { emit: n }) {
|
|
3295
|
-
const t = e, o = n, l = E(null),
|
|
3300
|
+
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
3301
|
t.range ? Array.isArray(t.modelValue) ? t.modelValue[0] : t.min : typeof t.modelValue == "number" ? t.modelValue : t.min
|
|
3297
|
-
),
|
|
3302
|
+
), s = E(t.range && Array.isArray(t.modelValue) ? t.modelValue[1] : t.max);
|
|
3298
3303
|
K(
|
|
3299
3304
|
() => t.modelValue,
|
|
3300
|
-
(
|
|
3301
|
-
t.range ? Array.isArray(
|
|
3305
|
+
(V) => {
|
|
3306
|
+
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
3307
|
},
|
|
3303
3308
|
{ immediate: !0 }
|
|
3304
3309
|
);
|
|
3305
|
-
const u = (
|
|
3306
|
-
if (!t.range) return { width: `${u(
|
|
3307
|
-
const
|
|
3308
|
-
return { left: `${
|
|
3310
|
+
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(() => {
|
|
3311
|
+
if (!t.range) return { width: `${u(r.value)}%`, left: "0%" };
|
|
3312
|
+
const V = u(r.value), C = u(s.value);
|
|
3313
|
+
return { left: `${V}%`, width: `${Math.max(0, C - V)}%` };
|
|
3309
3314
|
});
|
|
3310
3315
|
let h = null, y = null;
|
|
3311
|
-
const m = async (
|
|
3312
|
-
h =
|
|
3316
|
+
const m = async (V, C) => {
|
|
3317
|
+
h = V, y = C.pointerId, V === "low" ? i.value = !0 : a.value = !0;
|
|
3313
3318
|
try {
|
|
3314
|
-
|
|
3319
|
+
C.target.setPointerCapture(C.pointerId);
|
|
3315
3320
|
} catch {
|
|
3316
3321
|
}
|
|
3317
3322
|
window.addEventListener("pointermove", x), window.addEventListener("pointerup", b);
|
|
3318
|
-
}, b = (
|
|
3319
|
-
if (y != null &&
|
|
3323
|
+
}, b = (V) => {
|
|
3324
|
+
if (y != null && V)
|
|
3320
3325
|
try {
|
|
3321
|
-
|
|
3326
|
+
V.target.releasePointerCapture(V.pointerId);
|
|
3322
3327
|
} catch {
|
|
3323
3328
|
}
|
|
3324
|
-
h = null, y = null,
|
|
3325
|
-
}, x = (
|
|
3329
|
+
h = null, y = null, i.value = !1, a.value = !1, window.removeEventListener("pointermove", x), window.removeEventListener("pointerup", b), j();
|
|
3330
|
+
}, x = (V) => {
|
|
3326
3331
|
if (!h || !l.value) return;
|
|
3327
|
-
const
|
|
3328
|
-
h === "low" ? t.range ?
|
|
3329
|
-
}, w = (
|
|
3332
|
+
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;
|
|
3333
|
+
h === "low" ? t.range ? r.value = Math.min(W, s.value) : r.value = c(W, t.min, t.max) : h === "high" && (s.value = Math.max(W, r.value));
|
|
3334
|
+
}, w = (V) => {
|
|
3330
3335
|
if (!l.value) return;
|
|
3331
|
-
const
|
|
3336
|
+
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
3337
|
if (t.range) {
|
|
3333
|
-
const
|
|
3334
|
-
|
|
3338
|
+
const oe = Math.abs(W - r.value), fe = Math.abs(W - s.value);
|
|
3339
|
+
oe <= fe ? r.value = Math.min(W, s.value) : s.value = Math.max(W, r.value);
|
|
3335
3340
|
} else
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
}, S = (
|
|
3339
|
-
const D = t.step, F =
|
|
3341
|
+
r.value = c(W, t.min, t.max);
|
|
3342
|
+
j();
|
|
3343
|
+
}, S = (V, C) => {
|
|
3344
|
+
const D = t.step, F = C.key === "ArrowLeft" || C.key === "ArrowDown" ? -1 : C.key === "ArrowRight" || C.key === "ArrowUp" ? 1 : 0;
|
|
3340
3345
|
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);
|
|
3346
|
+
if (V === "low") {
|
|
3347
|
+
const W = c(r.value + F * D, t.min, t.range ? s.value : t.max);
|
|
3346
3348
|
r.value = W, i.value = !0, setTimeout(() => i.value = !1, 800);
|
|
3349
|
+
} else {
|
|
3350
|
+
const W = c(s.value + F * D, t.range ? r.value : t.max, t.max);
|
|
3351
|
+
s.value = W, a.value = !0, setTimeout(() => a.value = !1, 800);
|
|
3347
3352
|
}
|
|
3348
|
-
|
|
3353
|
+
j();
|
|
3349
3354
|
}
|
|
3350
|
-
},
|
|
3351
|
-
t.range ? (o("update:modelValue", [
|
|
3355
|
+
}, j = () => {
|
|
3356
|
+
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
3357
|
};
|
|
3353
3358
|
Ae(() => {
|
|
3354
3359
|
window.removeEventListener("pointermove", x), window.removeEventListener("pointerup", b);
|
|
3355
3360
|
}), K([() => t.min, () => t.max], () => {
|
|
3356
|
-
|
|
3361
|
+
r.value = c(r.value, t.min, t.max), s.value = c(s.value, t.min, t.max);
|
|
3357
3362
|
});
|
|
3358
3363
|
const H = k(() => t.range);
|
|
3359
3364
|
return he(() => {
|
|
3360
|
-
t.modelValue === void 0 && (t.range ? o("update:modelValue", [
|
|
3361
|
-
}), (
|
|
3365
|
+
t.modelValue === void 0 && (t.range ? o("update:modelValue", [r.value, s.value]) : o("update:modelValue", r.value));
|
|
3366
|
+
}), (V, C) => (f(), g("div", {
|
|
3362
3367
|
class: "vj-slider",
|
|
3363
|
-
onPointerdown:
|
|
3368
|
+
onPointerdown: C[8] || (C[8] = U(() => {
|
|
3364
3369
|
}, ["stop"]))
|
|
3365
3370
|
}, [
|
|
3366
3371
|
_("div", {
|
|
@@ -3371,53 +3376,53 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3371
3376
|
}, [
|
|
3372
3377
|
_("div", {
|
|
3373
3378
|
class: "range",
|
|
3374
|
-
style:
|
|
3379
|
+
style: Y(p.value)
|
|
3375
3380
|
}, null, 4),
|
|
3376
|
-
|
|
3381
|
+
i.value ? (f(), g("div", {
|
|
3377
3382
|
key: 0,
|
|
3378
3383
|
class: "tooltip",
|
|
3379
|
-
style:
|
|
3380
|
-
}, O(
|
|
3384
|
+
style: Y({ left: d.value.left })
|
|
3385
|
+
}, O(r.value), 5)) : L("", !0),
|
|
3381
3386
|
_("button", {
|
|
3382
3387
|
class: "handle low",
|
|
3383
|
-
style:
|
|
3388
|
+
style: Y(d.value),
|
|
3384
3389
|
"aria-valuemin": e.min,
|
|
3385
3390
|
"aria-valuemax": e.max,
|
|
3386
|
-
"aria-valuenow":
|
|
3391
|
+
"aria-valuenow": r.value,
|
|
3387
3392
|
"aria-label": H.value ? "Lower value" : "Value",
|
|
3388
|
-
onPointerdown:
|
|
3389
|
-
onFocus:
|
|
3390
|
-
onBlur:
|
|
3391
|
-
onKeydown:
|
|
3393
|
+
onPointerdown: C[0] || (C[0] = U((D) => m("low", D), ["prevent"])),
|
|
3394
|
+
onFocus: C[1] || (C[1] = (D) => i.value = !0),
|
|
3395
|
+
onBlur: C[2] || (C[2] = (D) => i.value = !1),
|
|
3396
|
+
onKeydown: C[3] || (C[3] = U((D) => S("low", D), ["stop", "prevent"])),
|
|
3392
3397
|
role: "slider",
|
|
3393
3398
|
tabindex: "0"
|
|
3394
|
-
}, null, 44,
|
|
3395
|
-
H.value &&
|
|
3399
|
+
}, null, 44, wi),
|
|
3400
|
+
H.value && a.value ? (f(), g("div", {
|
|
3396
3401
|
key: 1,
|
|
3397
3402
|
class: "tooltip",
|
|
3398
|
-
style:
|
|
3399
|
-
}, O(
|
|
3403
|
+
style: Y({ left: v.value.left })
|
|
3404
|
+
}, O(s.value), 5)) : L("", !0),
|
|
3400
3405
|
H.value ? (f(), g("button", {
|
|
3401
3406
|
key: 2,
|
|
3402
3407
|
class: "handle high",
|
|
3403
|
-
style:
|
|
3408
|
+
style: Y(v.value),
|
|
3404
3409
|
"aria-valuemin": e.min,
|
|
3405
3410
|
"aria-valuemax": e.max,
|
|
3406
|
-
"aria-valuenow":
|
|
3411
|
+
"aria-valuenow": s.value,
|
|
3407
3412
|
"aria-label": "Upper value",
|
|
3408
|
-
onPointerdown:
|
|
3409
|
-
onFocus:
|
|
3410
|
-
onBlur:
|
|
3411
|
-
onKeydown:
|
|
3413
|
+
onPointerdown: C[4] || (C[4] = U((D) => m("high", D), ["prevent"])),
|
|
3414
|
+
onFocus: C[5] || (C[5] = (D) => a.value = !0),
|
|
3415
|
+
onBlur: C[6] || (C[6] = (D) => a.value = !1),
|
|
3416
|
+
onKeydown: C[7] || (C[7] = U((D) => S("high", D), ["stop", "prevent"])),
|
|
3412
3417
|
role: "slider",
|
|
3413
3418
|
tabindex: "0"
|
|
3414
|
-
}, null, 44,
|
|
3419
|
+
}, null, 44, _i)) : L("", !0)
|
|
3415
3420
|
], 512)
|
|
3416
3421
|
], 32));
|
|
3417
3422
|
}
|
|
3418
|
-
}),
|
|
3423
|
+
}), ki = /* @__PURE__ */ A(xi, [["__scopeId", "data-v-d47c7475"]]), Vi = ["onFocusin", "onFocusout"], Ci = /* @__PURE__ */ R({
|
|
3419
3424
|
__name: "input-slider",
|
|
3420
|
-
props: /* @__PURE__ */
|
|
3425
|
+
props: /* @__PURE__ */ G({
|
|
3421
3426
|
modelValue: {},
|
|
3422
3427
|
label: {},
|
|
3423
3428
|
id: {},
|
|
@@ -3437,22 +3442,22 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3437
3442
|
modelValue: {},
|
|
3438
3443
|
modelModifiers: {}
|
|
3439
3444
|
}),
|
|
3440
|
-
emits: /* @__PURE__ */
|
|
3445
|
+
emits: /* @__PURE__ */ G(["update:modelValue", "input", "focus", "blur"], ["update:modelValue"]),
|
|
3441
3446
|
setup(e, { emit: n }) {
|
|
3442
|
-
const t = e, o =
|
|
3443
|
-
K(o, (
|
|
3444
|
-
const
|
|
3445
|
-
|
|
3447
|
+
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);
|
|
3448
|
+
K(o, (r) => {
|
|
3449
|
+
const s = r === void 0 ? 0 : Number(r);
|
|
3450
|
+
a.value = Number.isNaN(s) ? 0 : s;
|
|
3446
3451
|
});
|
|
3447
|
-
const c = (
|
|
3448
|
-
console.log("onUpdateModel",
|
|
3449
|
-
const
|
|
3450
|
-
|
|
3452
|
+
const c = (r) => {
|
|
3453
|
+
console.log("onUpdateModel", r);
|
|
3454
|
+
const s = typeof r == "number" ? r : Number(r ?? 0);
|
|
3455
|
+
a.value = Number.isNaN(s) ? 0 : s, l("update:modelValue", a.value), l("input", a.value);
|
|
3451
3456
|
};
|
|
3452
|
-
return (
|
|
3453
|
-
modelValue:
|
|
3457
|
+
return (r, s) => (f(), P(Ie, {
|
|
3458
|
+
modelValue: a.value,
|
|
3454
3459
|
"onUpdate:modelValue": [
|
|
3455
|
-
|
|
3460
|
+
s[1] || (s[1] = (u) => a.value = u),
|
|
3456
3461
|
c
|
|
3457
3462
|
],
|
|
3458
3463
|
label: t.label,
|
|
@@ -3470,11 +3475,11 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3470
3475
|
onFocusin: p,
|
|
3471
3476
|
onFocusout: h
|
|
3472
3477
|
}, [
|
|
3473
|
-
T(
|
|
3478
|
+
T(ki, {
|
|
3474
3479
|
id: u,
|
|
3475
|
-
modelValue:
|
|
3480
|
+
modelValue: a.value,
|
|
3476
3481
|
"onUpdate:modelValue": [
|
|
3477
|
-
|
|
3482
|
+
s[0] || (s[0] = (y) => a.value = y),
|
|
3478
3483
|
c
|
|
3479
3484
|
],
|
|
3480
3485
|
min: t.min,
|
|
@@ -3483,14 +3488,14 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3483
3488
|
range: !1,
|
|
3484
3489
|
disabled: d
|
|
3485
3490
|
}, null, 8, ["id", "modelValue", "min", "max", "step", "disabled"])
|
|
3486
|
-
], 40,
|
|
3491
|
+
], 40, Vi)
|
|
3487
3492
|
]),
|
|
3488
3493
|
_: 1
|
|
3489
3494
|
}, 8, ["modelValue", "label", "id", "disabled", "colspan", "newLine", "spanRow", "error"]));
|
|
3490
3495
|
}
|
|
3491
|
-
}),
|
|
3496
|
+
}), Ei = /* @__PURE__ */ A(Ci, [["__scopeId", "data-v-8f16d318"]]), $i = { class: "textarea" }, Li = ["value", "placeholder", "disabled", "rows"], Si = /* @__PURE__ */ R({
|
|
3492
3497
|
__name: "textarea",
|
|
3493
|
-
props: /* @__PURE__ */
|
|
3498
|
+
props: /* @__PURE__ */ G({
|
|
3494
3499
|
icon: {},
|
|
3495
3500
|
placeholder: {},
|
|
3496
3501
|
disabled: { type: Boolean },
|
|
@@ -3500,20 +3505,20 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3500
3505
|
modelValue: {},
|
|
3501
3506
|
modelModifiers: {}
|
|
3502
3507
|
}),
|
|
3503
|
-
emits: /* @__PURE__ */
|
|
3508
|
+
emits: /* @__PURE__ */ G(["focus", "blur"], ["update:modelValue"]),
|
|
3504
3509
|
setup(e, { emit: n }) {
|
|
3505
|
-
const t = n, o =
|
|
3506
|
-
o.value =
|
|
3507
|
-
},
|
|
3510
|
+
const t = n, o = ne(e, "modelValue"), l = (s) => {
|
|
3511
|
+
o.value = s.target.value;
|
|
3512
|
+
}, i = () => {
|
|
3508
3513
|
o.value = "";
|
|
3509
|
-
},
|
|
3510
|
-
t("focus",
|
|
3511
|
-
}, c = (
|
|
3512
|
-
t("blur",
|
|
3513
|
-
},
|
|
3514
|
-
return (
|
|
3514
|
+
}, a = (s) => {
|
|
3515
|
+
t("focus", s);
|
|
3516
|
+
}, c = (s) => {
|
|
3517
|
+
t("blur", s);
|
|
3518
|
+
}, r = k(() => !o.value);
|
|
3519
|
+
return (s, u) => {
|
|
3515
3520
|
const d = q("VjIcon");
|
|
3516
|
-
return f(), g("div",
|
|
3521
|
+
return f(), g("div", $i, [
|
|
3517
3522
|
e.icon ? (f(), P(d, {
|
|
3518
3523
|
key: 0,
|
|
3519
3524
|
icon: e.icon,
|
|
@@ -3523,23 +3528,23 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3523
3528
|
_("textarea", {
|
|
3524
3529
|
value: o.value,
|
|
3525
3530
|
onInput: l,
|
|
3526
|
-
onFocus:
|
|
3531
|
+
onFocus: a,
|
|
3527
3532
|
onBlur: c,
|
|
3528
3533
|
placeholder: e.placeholder,
|
|
3529
3534
|
disabled: e.disabled,
|
|
3530
3535
|
rows: e.rows
|
|
3531
|
-
}, null, 40,
|
|
3536
|
+
}, null, 40, Li),
|
|
3532
3537
|
e.clearable && !e.disabled ? (f(), P(d, {
|
|
3533
3538
|
key: 1,
|
|
3534
|
-
class: I(["clear-icon", { invisible:
|
|
3539
|
+
class: I(["clear-icon", { invisible: r.value }]),
|
|
3535
3540
|
icon: $(z).CLOSE,
|
|
3536
3541
|
size: $(X).S,
|
|
3537
|
-
onClick:
|
|
3542
|
+
onClick: i
|
|
3538
3543
|
}, null, 8, ["class", "icon", "size"])) : L("", !0)
|
|
3539
3544
|
]);
|
|
3540
3545
|
};
|
|
3541
3546
|
}
|
|
3542
|
-
}), hn = /* @__PURE__ */ A(
|
|
3547
|
+
}), hn = /* @__PURE__ */ A(Si, [["__scopeId", "data-v-2ea43716"]]), Ti = /* @__PURE__ */ R({
|
|
3543
3548
|
__name: "input-text-area",
|
|
3544
3549
|
props: {
|
|
3545
3550
|
modelValue: {},
|
|
@@ -3558,17 +3563,17 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3558
3563
|
},
|
|
3559
3564
|
emits: ["update:modelValue", "input", "focus", "blur"],
|
|
3560
3565
|
setup(e, { emit: n }) {
|
|
3561
|
-
const t = e, o = n, l = (u) => o("update:modelValue", u),
|
|
3566
|
+
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
3567
|
l(u ?? "");
|
|
3563
|
-
},
|
|
3568
|
+
}, s = k(() => {
|
|
3564
3569
|
const u = t.modelValue;
|
|
3565
3570
|
return u == null ? "" : String(u);
|
|
3566
3571
|
});
|
|
3567
3572
|
return (u, d) => (f(), P(Ie, {
|
|
3568
3573
|
modelValue: t.modelValue,
|
|
3569
3574
|
"onUpdate:modelValue": l,
|
|
3570
|
-
onInput:
|
|
3571
|
-
onFocus:
|
|
3575
|
+
onInput: i,
|
|
3576
|
+
onFocus: a,
|
|
3572
3577
|
onBlur: c,
|
|
3573
3578
|
label: t.label,
|
|
3574
3579
|
id: t.id,
|
|
@@ -3585,10 +3590,10 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3585
3590
|
control: N(({ id: v, disabled: p, placeholder: h, onFocus: y, onBlur: m }) => [
|
|
3586
3591
|
T(hn, {
|
|
3587
3592
|
id: v,
|
|
3588
|
-
modelValue:
|
|
3589
|
-
"onUpdate:modelValue":
|
|
3593
|
+
modelValue: s.value,
|
|
3594
|
+
"onUpdate:modelValue": r,
|
|
3590
3595
|
onFocus: (b) => {
|
|
3591
|
-
y(b),
|
|
3596
|
+
y(b), a(b);
|
|
3592
3597
|
},
|
|
3593
3598
|
onBlur: (b) => {
|
|
3594
3599
|
m(b), c(b);
|
|
@@ -3602,9 +3607,9 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3602
3607
|
_: 1
|
|
3603
3608
|
}, 8, ["modelValue", "label", "id", "placeholder", "disabled", "colspan", "newLine", "spanRow", "labelPosition", "error", "helpText", "appearance"]));
|
|
3604
3609
|
}
|
|
3605
|
-
}),
|
|
3610
|
+
}), Ri = { class: "input" }, Ai = ["value", "type", "placeholder", "disabled"], Oi = /* @__PURE__ */ R({
|
|
3606
3611
|
__name: "input",
|
|
3607
|
-
props: /* @__PURE__ */
|
|
3612
|
+
props: /* @__PURE__ */ G({
|
|
3608
3613
|
icon: {},
|
|
3609
3614
|
type: {},
|
|
3610
3615
|
placeholder: {},
|
|
@@ -3614,20 +3619,20 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3614
3619
|
modelValue: {},
|
|
3615
3620
|
modelModifiers: {}
|
|
3616
3621
|
}),
|
|
3617
|
-
emits: /* @__PURE__ */
|
|
3622
|
+
emits: /* @__PURE__ */ G(["focus", "blur"], ["update:modelValue"]),
|
|
3618
3623
|
setup(e, { emit: n }) {
|
|
3619
|
-
const t = n, o =
|
|
3620
|
-
o.value =
|
|
3621
|
-
},
|
|
3624
|
+
const t = n, o = ne(e, "modelValue"), l = (s) => {
|
|
3625
|
+
o.value = s.target.value;
|
|
3626
|
+
}, i = () => {
|
|
3622
3627
|
o.value = "";
|
|
3623
|
-
},
|
|
3624
|
-
t("focus",
|
|
3625
|
-
}, c = (
|
|
3626
|
-
t("blur",
|
|
3627
|
-
},
|
|
3628
|
-
return (
|
|
3628
|
+
}, a = (s) => {
|
|
3629
|
+
t("focus", s);
|
|
3630
|
+
}, c = (s) => {
|
|
3631
|
+
t("blur", s);
|
|
3632
|
+
}, r = k(() => !o.value);
|
|
3633
|
+
return (s, u) => {
|
|
3629
3634
|
const d = q("VjIcon");
|
|
3630
|
-
return f(), g("div",
|
|
3635
|
+
return f(), g("div", Ri, [
|
|
3631
3636
|
e.icon ? (f(), P(d, {
|
|
3632
3637
|
key: 0,
|
|
3633
3638
|
icon: e.icon,
|
|
@@ -3636,23 +3641,23 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3636
3641
|
_("input", {
|
|
3637
3642
|
value: o.value,
|
|
3638
3643
|
onInput: l,
|
|
3639
|
-
onFocus:
|
|
3644
|
+
onFocus: a,
|
|
3640
3645
|
onBlur: c,
|
|
3641
3646
|
type: e.type,
|
|
3642
3647
|
placeholder: e.placeholder,
|
|
3643
3648
|
disabled: e.disabled
|
|
3644
|
-
}, null, 40,
|
|
3649
|
+
}, null, 40, Ai),
|
|
3645
3650
|
e.clearable && !e.disabled ? (f(), P(d, {
|
|
3646
3651
|
key: 1,
|
|
3647
|
-
class: I(["clear-icon", { invisible:
|
|
3652
|
+
class: I(["clear-icon", { invisible: r.value }]),
|
|
3648
3653
|
icon: $(z).CLOSE,
|
|
3649
3654
|
size: $(X).S,
|
|
3650
|
-
onClick:
|
|
3655
|
+
onClick: i
|
|
3651
3656
|
}, null, 8, ["class", "icon", "size"])) : L("", !0)
|
|
3652
3657
|
]);
|
|
3653
3658
|
};
|
|
3654
3659
|
}
|
|
3655
|
-
}), gn = /* @__PURE__ */ A(
|
|
3660
|
+
}), gn = /* @__PURE__ */ A(Oi, [["__scopeId", "data-v-3187d49c"]]), Di = /* @__PURE__ */ R({
|
|
3656
3661
|
__name: "input-text",
|
|
3657
3662
|
props: {
|
|
3658
3663
|
modelValue: {},
|
|
@@ -3671,14 +3676,14 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3671
3676
|
},
|
|
3672
3677
|
emits: ["update:modelValue", "input", "focus", "blur"],
|
|
3673
3678
|
setup(e, { emit: n }) {
|
|
3674
|
-
const t = e, o = n, l = (
|
|
3675
|
-
l(
|
|
3679
|
+
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) => {
|
|
3680
|
+
l(s ?? "");
|
|
3676
3681
|
};
|
|
3677
|
-
return (
|
|
3682
|
+
return (s, u) => (f(), P(Ie, {
|
|
3678
3683
|
modelValue: e.modelValue,
|
|
3679
3684
|
"onUpdate:modelValue": l,
|
|
3680
|
-
onInput:
|
|
3681
|
-
onFocus:
|
|
3685
|
+
onInput: i,
|
|
3686
|
+
onFocus: a,
|
|
3682
3687
|
onBlur: c,
|
|
3683
3688
|
label: e.label,
|
|
3684
3689
|
id: e.id,
|
|
@@ -3697,9 +3702,9 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3697
3702
|
id: d,
|
|
3698
3703
|
modelValue: e.modelValue,
|
|
3699
3704
|
type: e.type,
|
|
3700
|
-
"onUpdate:modelValue":
|
|
3705
|
+
"onUpdate:modelValue": r,
|
|
3701
3706
|
onFocus: (m) => {
|
|
3702
|
-
h(m),
|
|
3707
|
+
h(m), a(m);
|
|
3703
3708
|
},
|
|
3704
3709
|
onBlur: (m) => {
|
|
3705
3710
|
y(m), c(m);
|
|
@@ -3712,10 +3717,10 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3712
3717
|
_: 1
|
|
3713
3718
|
}, 8, ["modelValue", "label", "id", "placeholder", "disabled", "colspan", "newLine", "spanRow", "error", "helpText", "labelPosition", "appearance"]));
|
|
3714
3719
|
}
|
|
3715
|
-
}),
|
|
3720
|
+
}), Bi = { class: "shell-navigation-item" }, Mi = { class: "shell-navigation-item-label" }, ji = {
|
|
3716
3721
|
key: 1,
|
|
3717
3722
|
class: "shell-navigation-item-link"
|
|
3718
|
-
},
|
|
3723
|
+
}, Pi = ["aria-expanded"], Fi = { class: "shell-navigation-item-label" }, zi = /* @__PURE__ */ R({
|
|
3719
3724
|
__name: "shell-navigation-item",
|
|
3720
3725
|
props: {
|
|
3721
3726
|
label: {},
|
|
@@ -3723,21 +3728,21 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3723
3728
|
to: {}
|
|
3724
3729
|
},
|
|
3725
3730
|
setup(e) {
|
|
3726
|
-
const n = Kt(), t = k(() => !!n.default), o = E(!1), l = E(null),
|
|
3731
|
+
const n = Kt(), t = k(() => !!n.default), o = E(!1), l = E(null), i = E(null), { floatingStyles: a } = wt(l, i, {
|
|
3727
3732
|
placement: "right-start",
|
|
3728
3733
|
middleware: [tt(8), ot(), nt({ padding: 8 })],
|
|
3729
3734
|
whileElementsMounted: et
|
|
3730
3735
|
}), c = (v) => {
|
|
3731
3736
|
t.value && (o.value = !o.value);
|
|
3732
|
-
},
|
|
3737
|
+
}, r = () => {
|
|
3733
3738
|
o.value = !1;
|
|
3734
|
-
},
|
|
3735
|
-
|
|
3739
|
+
}, s = (v) => {
|
|
3740
|
+
r();
|
|
3736
3741
|
}, u = (v) => {
|
|
3737
|
-
(v.key === "Escape" || v.key === "Esc") &&
|
|
3742
|
+
(v.key === "Escape" || v.key === "Esc") && r();
|
|
3738
3743
|
}, d = (v) => {
|
|
3739
3744
|
const p = v.target;
|
|
3740
|
-
p && (l.value && l.value.contains(p) ||
|
|
3745
|
+
p && (l.value && l.value.contains(p) || i.value && i.value.contains(p) || r());
|
|
3741
3746
|
};
|
|
3742
3747
|
return K(o, (v) => {
|
|
3743
3748
|
v ? (window.addEventListener("keydown", u), window.addEventListener("pointerdown", d)) : (window.removeEventListener("keydown", u), window.removeEventListener("pointerdown", d));
|
|
@@ -3745,7 +3750,7 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3745
3750
|
window.removeEventListener("keydown", u), window.removeEventListener("pointerdown", d);
|
|
3746
3751
|
}), (v, p) => {
|
|
3747
3752
|
const h = q("VjIcon"), y = q("RouterLink"), m = q("VjMenu");
|
|
3748
|
-
return f(), g("li",
|
|
3753
|
+
return f(), g("li", Bi, [
|
|
3749
3754
|
e.to ? (f(), P(y, {
|
|
3750
3755
|
key: 0,
|
|
3751
3756
|
to: e.to,
|
|
@@ -3756,7 +3761,7 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3756
3761
|
icon: e.icon,
|
|
3757
3762
|
class: "shell-navigation-item-icon"
|
|
3758
3763
|
}, null, 8, ["icon"]),
|
|
3759
|
-
_("label",
|
|
3764
|
+
_("label", Mi, O(e.label), 1)
|
|
3760
3765
|
]),
|
|
3761
3766
|
_: 1
|
|
3762
3767
|
}, 8, ["to"])) : (f(), g("div", ji, [
|
|
@@ -3772,71 +3777,71 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3772
3777
|
icon: e.icon,
|
|
3773
3778
|
class: "shell-navigation-item-icon"
|
|
3774
3779
|
}, null, 8, ["icon"]),
|
|
3775
|
-
_("label",
|
|
3776
|
-
], 8,
|
|
3780
|
+
_("label", Fi, O(e.label), 1)
|
|
3781
|
+
], 8, Pi),
|
|
3777
3782
|
T(Le, { name: "menu" }, {
|
|
3778
3783
|
default: N(() => [
|
|
3779
3784
|
o.value ? (f(), P(m, {
|
|
3780
3785
|
key: 0,
|
|
3781
3786
|
ref_key: "floatingRef",
|
|
3782
|
-
ref:
|
|
3783
|
-
style:
|
|
3787
|
+
ref: i,
|
|
3788
|
+
style: Y($(a)),
|
|
3784
3789
|
class: "shell-navigation-item-menu",
|
|
3785
|
-
onClose:
|
|
3786
|
-
onClick: U(
|
|
3790
|
+
onClose: r,
|
|
3791
|
+
onClick: U(s, ["stop"])
|
|
3787
3792
|
}, {
|
|
3788
3793
|
default: N(() => [
|
|
3789
|
-
|
|
3794
|
+
M(v.$slots, "default", {}, void 0, !0)
|
|
3790
3795
|
]),
|
|
3791
3796
|
_: 3
|
|
3792
3797
|
}, 8, ["style"])) : L("", !0)
|
|
3793
3798
|
]),
|
|
3794
3799
|
_: 3
|
|
3795
3800
|
}),
|
|
3796
|
-
(f(), P(
|
|
3801
|
+
(f(), P(je, { to: "body" }, [
|
|
3797
3802
|
o.value ? (f(), g("div", {
|
|
3798
3803
|
key: 0,
|
|
3799
3804
|
class: "menu-backdrop",
|
|
3800
|
-
onClick:
|
|
3805
|
+
onClick: r
|
|
3801
3806
|
})) : L("", !0)
|
|
3802
3807
|
]))
|
|
3803
3808
|
]))
|
|
3804
3809
|
]);
|
|
3805
3810
|
};
|
|
3806
3811
|
}
|
|
3807
|
-
}),
|
|
3812
|
+
}), Ii = /* @__PURE__ */ A(zi, [["__scopeId", "data-v-3a50d1c2"]]), Hi = { class: "navigation-top" }, Wi = {
|
|
3808
3813
|
key: 0,
|
|
3809
3814
|
class: "navigation-bottom"
|
|
3810
|
-
},
|
|
3815
|
+
}, Ui = /* @__PURE__ */ R({
|
|
3811
3816
|
__name: "shell-navigation",
|
|
3812
3817
|
setup(e) {
|
|
3813
|
-
const n = vt(
|
|
3818
|
+
const n = vt(ts, os()), t = k(() => n.showLabels);
|
|
3814
3819
|
return (o, l) => {
|
|
3815
|
-
const
|
|
3820
|
+
const i = q("VjShellNavigationItem");
|
|
3816
3821
|
return f(), g("nav", {
|
|
3817
3822
|
class: I(["shell-navigation", { "with-labels": t.value }])
|
|
3818
3823
|
}, [
|
|
3819
|
-
_("ul",
|
|
3820
|
-
$(n).hasParent && $(n).backRoute.value ? (f(), P(
|
|
3824
|
+
_("ul", Hi, [
|
|
3825
|
+
$(n).hasParent && $(n).backRoute.value ? (f(), P(i, {
|
|
3821
3826
|
key: 0,
|
|
3822
3827
|
to: $(n).backRoute.value,
|
|
3823
3828
|
label: "BACK",
|
|
3824
3829
|
icon: $(z).HOME
|
|
3825
3830
|
}, 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:
|
|
3831
|
+
(f(!0), g(Q, null, pe($(n).childRoutes.value, (a) => (f(), P(i, {
|
|
3832
|
+
key: a.name,
|
|
3833
|
+
to: { name: a.name },
|
|
3834
|
+
label: a.meta.label,
|
|
3835
|
+
icon: a.meta.icon ?? $(z).HOME
|
|
3831
3836
|
}, null, 8, ["to", "label", "icon"]))), 128))
|
|
3832
3837
|
]),
|
|
3833
|
-
o.$slots.fixed ? (f(), g("ul",
|
|
3834
|
-
|
|
3838
|
+
o.$slots.fixed ? (f(), g("ul", Wi, [
|
|
3839
|
+
M(o.$slots, "fixed", {}, void 0, !0)
|
|
3835
3840
|
])) : L("", !0)
|
|
3836
3841
|
], 2);
|
|
3837
3842
|
};
|
|
3838
3843
|
}
|
|
3839
|
-
}), bn = /* @__PURE__ */ A(
|
|
3844
|
+
}), bn = /* @__PURE__ */ A(Ui, [["__scopeId", "data-v-306cfc22"]]), Ni = { class: "shell" }, Ki = { class: "shell-title" }, Xi = ["src"], qi = { class: "header-actions" }, Gi = /* @__PURE__ */ R({
|
|
3840
3845
|
__name: "shell",
|
|
3841
3846
|
props: {
|
|
3842
3847
|
title: {},
|
|
@@ -3844,25 +3849,25 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3844
3849
|
showNavigation: { type: Boolean }
|
|
3845
3850
|
},
|
|
3846
3851
|
setup(e) {
|
|
3847
|
-
const n =
|
|
3848
|
-
const
|
|
3849
|
-
return
|
|
3852
|
+
const n = rs(), t = lt(n, "asideComponent"), o = lt(n, "hasAside"), l = lt(n, "asideData"), i = k(() => {
|
|
3853
|
+
const a = l.value;
|
|
3854
|
+
return a && typeof a == "object" ? a : {};
|
|
3850
3855
|
});
|
|
3851
|
-
return (
|
|
3852
|
-
const
|
|
3853
|
-
return f(), g("div",
|
|
3856
|
+
return (a, c) => {
|
|
3857
|
+
const r = q("router-view");
|
|
3858
|
+
return f(), g("div", Ni, [
|
|
3854
3859
|
_("header", null, [
|
|
3855
|
-
|
|
3856
|
-
_("span",
|
|
3860
|
+
M(a.$slots, "header", {}, () => [
|
|
3861
|
+
_("span", Ki, [
|
|
3857
3862
|
e.icon ? (f(), g("img", {
|
|
3858
3863
|
key: 0,
|
|
3859
3864
|
src: e.icon,
|
|
3860
3865
|
alt: "Shell Icon"
|
|
3861
|
-
}, null, 8,
|
|
3866
|
+
}, null, 8, Xi)) : L("", !0),
|
|
3862
3867
|
_("h1", null, O(e.title), 1)
|
|
3863
3868
|
]),
|
|
3864
|
-
_("div",
|
|
3865
|
-
|
|
3869
|
+
_("div", qi, [
|
|
3870
|
+
M(a.$slots, "header-actions", {}, void 0, !0)
|
|
3866
3871
|
])
|
|
3867
3872
|
], !0)
|
|
3868
3873
|
]),
|
|
@@ -3870,31 +3875,31 @@ const ei = ["data-colspan", "data-newline"], ti = ["for"], ni = { class: "form-f
|
|
|
3870
3875
|
class: I(["shell-content", { "with-navigation": e.showNavigation }])
|
|
3871
3876
|
}, [
|
|
3872
3877
|
e.showNavigation ? (f(), P($(bn), { key: 0 }, dt({ _: 2 }, [
|
|
3873
|
-
|
|
3878
|
+
a.$slots?.["navigation-fixed"] ? {
|
|
3874
3879
|
name: "fixed",
|
|
3875
3880
|
fn: N(() => [
|
|
3876
|
-
|
|
3881
|
+
M(a.$slots, "navigation-fixed", {}, void 0, !0)
|
|
3877
3882
|
]),
|
|
3878
3883
|
key: "0"
|
|
3879
3884
|
} : void 0
|
|
3880
3885
|
]), 1024)) : L("", !0),
|
|
3881
3886
|
_("main", null, [
|
|
3882
|
-
|
|
3883
|
-
T(
|
|
3887
|
+
M(a.$slots, "default", {}, () => [
|
|
3888
|
+
T(r)
|
|
3884
3889
|
], !0)
|
|
3885
3890
|
]),
|
|
3886
3891
|
_("aside", {
|
|
3887
3892
|
class: I({ "aside-visible": o.value })
|
|
3888
3893
|
}, [
|
|
3889
|
-
(f(), P(ut(t.value), En($n(
|
|
3894
|
+
(f(), P(ut(t.value), En($n(i.value)), null, 16))
|
|
3890
3895
|
], 2)
|
|
3891
3896
|
], 2),
|
|
3892
3897
|
c[0] || (c[0] = _("footer", null, null, -1))
|
|
3893
3898
|
]);
|
|
3894
3899
|
};
|
|
3895
3900
|
}
|
|
3896
|
-
}),
|
|
3897
|
-
class
|
|
3901
|
+
}), Yi = /* @__PURE__ */ A(Gi, [["__scopeId", "data-v-6a20620c"]]);
|
|
3902
|
+
class Ji {
|
|
3898
3903
|
notifications = E([]);
|
|
3899
3904
|
notificationIdCounter = 0;
|
|
3900
3905
|
/**
|
|
@@ -3911,16 +3916,16 @@ class Yi {
|
|
|
3911
3916
|
* @returns Die ID der Notification
|
|
3912
3917
|
*/
|
|
3913
3918
|
show(n, t, o, l) {
|
|
3914
|
-
const
|
|
3915
|
-
id:
|
|
3919
|
+
const i = `notification-${++this.notificationIdCounter}-${Date.now()}`, a = n === "error" ? void 0 : l ?? 5e3, c = {
|
|
3920
|
+
id: i,
|
|
3916
3921
|
type: n,
|
|
3917
3922
|
title: t,
|
|
3918
3923
|
message: o,
|
|
3919
|
-
duration:
|
|
3924
|
+
duration: a
|
|
3920
3925
|
};
|
|
3921
|
-
return this.notifications.value.unshift(c),
|
|
3922
|
-
this.remove(
|
|
3923
|
-
},
|
|
3926
|
+
return this.notifications.value.unshift(c), a && setTimeout(() => {
|
|
3927
|
+
this.remove(i);
|
|
3928
|
+
}, a), i;
|
|
3924
3929
|
}
|
|
3925
3930
|
/**
|
|
3926
3931
|
* Zeigt eine Info-Notification
|
|
@@ -3960,20 +3965,20 @@ class Yi {
|
|
|
3960
3965
|
this.notifications.value = [];
|
|
3961
3966
|
}
|
|
3962
3967
|
}
|
|
3963
|
-
const Nt = new
|
|
3968
|
+
const Nt = new Ji(), Qi = { class: "notifications" }, Zi = /* @__PURE__ */ R({
|
|
3964
3969
|
__name: "notifications",
|
|
3965
3970
|
setup(e) {
|
|
3966
3971
|
const n = Nt.getNotifications(), t = (o) => Nt.remove(o);
|
|
3967
|
-
return (o, l) => (f(), P(
|
|
3968
|
-
_("div",
|
|
3972
|
+
return (o, l) => (f(), P(je, { to: "body" }, [
|
|
3973
|
+
_("div", Qi, [
|
|
3969
3974
|
T(Ln, { name: "notification" }, {
|
|
3970
3975
|
default: N(() => [
|
|
3971
|
-
(f(!0), g(Q, null, pe($(n), (
|
|
3972
|
-
key:
|
|
3973
|
-
type:
|
|
3974
|
-
title:
|
|
3975
|
-
message:
|
|
3976
|
-
onClose: (
|
|
3976
|
+
(f(!0), g(Q, null, pe($(n), (i) => (f(), P(xt, {
|
|
3977
|
+
key: i.id,
|
|
3978
|
+
type: i.type,
|
|
3979
|
+
title: i.title,
|
|
3980
|
+
message: i.message,
|
|
3981
|
+
onClose: (a) => t(i.id)
|
|
3977
3982
|
}, null, 8, ["type", "title", "message", "onClose"]))), 128))
|
|
3978
3983
|
]),
|
|
3979
3984
|
_: 1
|
|
@@ -3981,49 +3986,49 @@ const Nt = new Yi(), Ji = { class: "notifications" }, Qi = /* @__PURE__ */ R({
|
|
|
3981
3986
|
])
|
|
3982
3987
|
]));
|
|
3983
3988
|
}
|
|
3984
|
-
}),
|
|
3985
|
-
function
|
|
3989
|
+
}), es = /* @__PURE__ */ A(Zi, [["__scopeId", "data-v-543c499f"]]), ts = "navigationProvider";
|
|
3990
|
+
function ns(e) {
|
|
3986
3991
|
return !!e.meta && "icon" in e.meta && "label" in e.meta;
|
|
3987
3992
|
}
|
|
3988
|
-
const
|
|
3993
|
+
const os = () => {
|
|
3989
3994
|
const e = An(), n = On(), t = !0, o = k(() => {
|
|
3990
3995
|
const u = e.getRoutes();
|
|
3991
3996
|
return u.filter((d) => d.path !== "/" && !u.some((v) => v.children?.some((p) => p.name === d.name)));
|
|
3992
3997
|
}), l = k(() => {
|
|
3993
3998
|
const u = n.matched;
|
|
3994
3999
|
return u.length ? u[u.length - 1] : null;
|
|
3995
|
-
}),
|
|
4000
|
+
}), i = k(() => {
|
|
3996
4001
|
const u = n.matched;
|
|
3997
4002
|
return u.length > 1 ? u[u.length - 2] : null;
|
|
3998
|
-
}),
|
|
4003
|
+
}), 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(() => {
|
|
3999
4004
|
if (!c.value) return null;
|
|
4000
4005
|
const d = e.getRoutes().find((v) => v.children?.some((p) => p.name === c.value.name));
|
|
4001
4006
|
return d ? { name: d.name } : { path: "/" };
|
|
4002
|
-
}),
|
|
4007
|
+
}), s = k(() => {
|
|
4003
4008
|
let u = [];
|
|
4004
|
-
return n.path === "/" ? u = o.value : l.value?.children?.length ? u = l.value.children :
|
|
4009
|
+
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(ns);
|
|
4005
4010
|
});
|
|
4006
4011
|
return {
|
|
4007
|
-
hasParent:
|
|
4008
|
-
backRoute:
|
|
4009
|
-
childRoutes:
|
|
4012
|
+
hasParent: a,
|
|
4013
|
+
backRoute: r,
|
|
4014
|
+
childRoutes: s,
|
|
4010
4015
|
showLabels: t
|
|
4011
4016
|
};
|
|
4012
|
-
},
|
|
4013
|
-
const o = Sn(e) ? e : E(e), l = !!t,
|
|
4017
|
+
}, ys = (e, n = !0, t = void 0) => {
|
|
4018
|
+
const o = Sn(e) ? e : E(e), l = !!t, i = E(t || null);
|
|
4014
4019
|
return {
|
|
4015
4020
|
hasParent: l,
|
|
4016
|
-
backRoute:
|
|
4021
|
+
backRoute: i,
|
|
4017
4022
|
childRoutes: o,
|
|
4018
4023
|
showLabels: n
|
|
4019
4024
|
};
|
|
4020
|
-
}, kt = E(!1),
|
|
4025
|
+
}, kt = E(!1), Vt = E(null), Ct = E(null);
|
|
4021
4026
|
let $e = [];
|
|
4022
4027
|
const yn = (e) => ($e.push(e), () => {
|
|
4023
4028
|
$e = $e.filter((n) => n !== e);
|
|
4024
|
-
}),
|
|
4029
|
+
}), ls = (e, n) => ($e = [], Vt.value = e, Ct.value = n ?? null, kt.value = !0, {
|
|
4025
4030
|
onClose: (t) => yn(t)
|
|
4026
|
-
}),
|
|
4031
|
+
}), as = (e) => {
|
|
4027
4032
|
try {
|
|
4028
4033
|
$e.forEach((n) => {
|
|
4029
4034
|
try {
|
|
@@ -4033,18 +4038,18 @@ const yn = (e) => ($e.push(e), () => {
|
|
|
4033
4038
|
}
|
|
4034
4039
|
});
|
|
4035
4040
|
} finally {
|
|
4036
|
-
kt.value = !1, setTimeout(
|
|
4041
|
+
kt.value = !1, setTimeout(is, 1e3);
|
|
4037
4042
|
}
|
|
4038
|
-
},
|
|
4039
|
-
$e = [],
|
|
4040
|
-
},
|
|
4041
|
-
asideComponent:
|
|
4042
|
-
asideData:
|
|
4043
|
-
showAside:
|
|
4044
|
-
closeAside:
|
|
4043
|
+
}, is = () => {
|
|
4044
|
+
$e = [], Vt.value = null, Ct.value = null;
|
|
4045
|
+
}, ss = {
|
|
4046
|
+
asideComponent: Vt,
|
|
4047
|
+
asideData: Ct,
|
|
4048
|
+
showAside: ls,
|
|
4049
|
+
closeAside: as,
|
|
4045
4050
|
onAsideClose: yn,
|
|
4046
4051
|
hasAside: kt
|
|
4047
|
-
},
|
|
4052
|
+
}, rs = () => ss, ws = (e, n) => {
|
|
4048
4053
|
let t = null;
|
|
4049
4054
|
return (...l) => {
|
|
4050
4055
|
t && clearTimeout(t), t = setTimeout(() => {
|
|
@@ -4052,7 +4057,7 @@ const yn = (e) => ($e.push(e), () => {
|
|
|
4052
4057
|
}, n);
|
|
4053
4058
|
};
|
|
4054
4059
|
};
|
|
4055
|
-
class
|
|
4060
|
+
class cs {
|
|
4056
4061
|
containerElement = null;
|
|
4057
4062
|
apps = [];
|
|
4058
4063
|
mainApp = null;
|
|
@@ -4069,11 +4074,11 @@ class rs {
|
|
|
4069
4074
|
return new Promise((t) => {
|
|
4070
4075
|
const o = this.ensureContainer(), l = document.createElement("div");
|
|
4071
4076
|
o.appendChild(l);
|
|
4072
|
-
let
|
|
4073
|
-
const
|
|
4074
|
-
|
|
4075
|
-
const
|
|
4076
|
-
|
|
4077
|
+
let i = !1;
|
|
4078
|
+
const a = () => {
|
|
4079
|
+
i || (i = !0, setTimeout(() => {
|
|
4080
|
+
const r = this.apps.find((s) => s.element === l);
|
|
4081
|
+
r && (r.app.unmount(), this.apps = this.apps.filter((s) => s !== r)), l.remove();
|
|
4077
4082
|
}, 300));
|
|
4078
4083
|
}, c = Tn({
|
|
4079
4084
|
setup() {
|
|
@@ -4090,16 +4095,16 @@ class rs {
|
|
|
4090
4095
|
closeOnBackdrop: n.closeOnBackdrop ?? !1,
|
|
4091
4096
|
closeOnEscape: n.closeOnEscape ?? !0,
|
|
4092
4097
|
onConfirm: () => {
|
|
4093
|
-
t(!0),
|
|
4098
|
+
t(!0), a();
|
|
4094
4099
|
},
|
|
4095
4100
|
onCancel: () => {
|
|
4096
|
-
t(!1),
|
|
4101
|
+
t(!1), a();
|
|
4097
4102
|
},
|
|
4098
|
-
onResolve: (
|
|
4099
|
-
t(
|
|
4103
|
+
onResolve: (r) => {
|
|
4104
|
+
t(r), a();
|
|
4100
4105
|
},
|
|
4101
4106
|
onClose: () => {
|
|
4102
|
-
|
|
4107
|
+
i || t(!1), a();
|
|
4103
4108
|
}
|
|
4104
4109
|
});
|
|
4105
4110
|
}
|
|
@@ -4132,17 +4137,17 @@ class rs {
|
|
|
4132
4137
|
}), this.apps = [];
|
|
4133
4138
|
}
|
|
4134
4139
|
}
|
|
4135
|
-
const
|
|
4136
|
-
function ws() {
|
|
4137
|
-
return cs;
|
|
4138
|
-
}
|
|
4140
|
+
const us = new cs();
|
|
4139
4141
|
function _s() {
|
|
4142
|
+
return us;
|
|
4143
|
+
}
|
|
4144
|
+
function xs() {
|
|
4140
4145
|
const e = vt(Jt, null);
|
|
4141
4146
|
if (!e)
|
|
4142
4147
|
throw new Error("useDialogController must be used inside a dialog component.");
|
|
4143
4148
|
return e;
|
|
4144
4149
|
}
|
|
4145
|
-
const
|
|
4150
|
+
const ks = () => {
|
|
4146
4151
|
const e = E(!1), n = E(null), t = () => {
|
|
4147
4152
|
n.value = null;
|
|
4148
4153
|
};
|
|
@@ -4150,108 +4155,108 @@ const xs = () => {
|
|
|
4150
4155
|
inner;
|
|
4151
4156
|
defaultValue;
|
|
4152
4157
|
handlers = [];
|
|
4153
|
-
constructor(
|
|
4154
|
-
this.inner =
|
|
4158
|
+
constructor(a, c) {
|
|
4159
|
+
this.inner = a, this.defaultValue = c;
|
|
4155
4160
|
}
|
|
4156
|
-
onError(
|
|
4157
|
-
return this.handlers.push(
|
|
4161
|
+
onError(a) {
|
|
4162
|
+
return this.handlers.push(a), this;
|
|
4158
4163
|
}
|
|
4159
4164
|
async exec() {
|
|
4160
4165
|
n.value = null, e.value = !0;
|
|
4161
4166
|
try {
|
|
4162
4167
|
return await this.inner();
|
|
4163
|
-
} catch (
|
|
4164
|
-
n.value =
|
|
4168
|
+
} catch (a) {
|
|
4169
|
+
n.value = a;
|
|
4165
4170
|
for (const c of this.handlers)
|
|
4166
4171
|
try {
|
|
4167
|
-
c(
|
|
4168
|
-
} catch (
|
|
4169
|
-
console.error("onError handler failed",
|
|
4172
|
+
c(a);
|
|
4173
|
+
} catch (r) {
|
|
4174
|
+
console.error("onError handler failed", r);
|
|
4170
4175
|
}
|
|
4171
4176
|
if (this.defaultValue !== void 0) return this.defaultValue;
|
|
4172
|
-
throw
|
|
4177
|
+
throw a;
|
|
4173
4178
|
} finally {
|
|
4174
4179
|
e.value = !1;
|
|
4175
4180
|
}
|
|
4176
4181
|
}
|
|
4177
|
-
then(
|
|
4178
|
-
return this.exec().then(
|
|
4182
|
+
then(a, c) {
|
|
4183
|
+
return this.exec().then(a, c);
|
|
4179
4184
|
}
|
|
4180
4185
|
}
|
|
4181
|
-
function l(
|
|
4182
|
-
return new o(
|
|
4186
|
+
function l(i, a) {
|
|
4187
|
+
return new o(i, a);
|
|
4183
4188
|
}
|
|
4184
4189
|
return { run: l, running: e, error: n, clearError: t };
|
|
4185
|
-
},
|
|
4190
|
+
}, Vs = {
|
|
4186
4191
|
install(e) {
|
|
4187
|
-
e.component("VjAccordion", In), e.component("VjAmountBar",
|
|
4192
|
+
e.component("VjAccordion", In), e.component("VjAmountBar", Wa), 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", da), e.component("VjPaginator", ma), e.component("VjTab", xa), e.component("VjTabView", La), e.component("VjTimer", Ma), e.component("VjSkeleton", Ia), e.component("VjSpinner", fn), e.component("VjNotifications", es), e.component("VjNotification", xt), e.component("VjUpload", ei), e.component("VjInput", gn), e.component("VjSelect", pn), e.component("VjTextArea", hn), e.component("VjFormField", Ie), e.component("VjFormLayout", ci), e.component("VjFormSection", fi), e.component("VjInputText", Di), e.component("VjInputTextArea", Ti), e.component("VjInputSelect", yi), e.component("VjInputSlider", Ei), e.component("VjShellNavigation", bn), e.component("VjShellNavigationItem", Ii), e.component("VjShell", Yi), e.component("VjSearchField", ba), e.component("VjSeparator", wa), e.directive("focus", jl), e.directive("resize", Pl), e.directive("compact", Bl), e.directive("tooltip", vn);
|
|
4188
4193
|
}
|
|
4189
4194
|
};
|
|
4190
4195
|
export {
|
|
4191
4196
|
In as Accordion,
|
|
4192
|
-
|
|
4197
|
+
Wa as AmountBar,
|
|
4193
4198
|
Ge as Button,
|
|
4194
4199
|
Xn as ButtonBar,
|
|
4195
4200
|
st as Card,
|
|
4196
|
-
|
|
4201
|
+
ms as Carousel,
|
|
4197
4202
|
io as Checkbox,
|
|
4198
4203
|
Gt as Chip,
|
|
4199
4204
|
Yt as ChipGroup,
|
|
4200
4205
|
Ro as ChipSelector,
|
|
4201
4206
|
mt as Dialog,
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4207
|
+
Vl as DotMenu,
|
|
4208
|
+
hs as EditableLabel,
|
|
4209
|
+
jl as FocusFirstDirective,
|
|
4205
4210
|
Ie as FormField,
|
|
4206
|
-
|
|
4207
|
-
|
|
4211
|
+
ci as FormLayout,
|
|
4212
|
+
fi as FormSection,
|
|
4208
4213
|
te as Icon,
|
|
4209
4214
|
z as IconNames,
|
|
4210
4215
|
X as IconSize,
|
|
4211
4216
|
gn as Input,
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4217
|
+
yi as InputSelect,
|
|
4218
|
+
Ei as InputSlider,
|
|
4219
|
+
Di as InputText,
|
|
4220
|
+
Ti as InputTextArea,
|
|
4216
4221
|
El as LinkButton,
|
|
4217
4222
|
Ul as LoadingDirective,
|
|
4218
4223
|
Dl as Menu,
|
|
4219
4224
|
Tl as MenuAction,
|
|
4220
4225
|
xt as NotificationComponent,
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4226
|
+
es as Notifications,
|
|
4227
|
+
da as Page,
|
|
4228
|
+
ma as Paginator,
|
|
4229
|
+
ps as Radio,
|
|
4225
4230
|
Pl as ResizeDirective,
|
|
4226
|
-
|
|
4231
|
+
ba as SearchField,
|
|
4227
4232
|
pn as Select,
|
|
4228
|
-
|
|
4229
|
-
|
|
4233
|
+
wa as Separator,
|
|
4234
|
+
Yi as Shell,
|
|
4230
4235
|
bn as ShellNavigation,
|
|
4231
|
-
|
|
4232
|
-
|
|
4236
|
+
Ii as ShellNavigationItem,
|
|
4237
|
+
Ia as Skeleton,
|
|
4233
4238
|
fn as Spinner,
|
|
4234
|
-
|
|
4235
|
-
|
|
4239
|
+
xa as Tab,
|
|
4240
|
+
La as TabView,
|
|
4236
4241
|
hn as TextArea,
|
|
4237
|
-
|
|
4242
|
+
Ma as Timer,
|
|
4238
4243
|
vn as TooltipDirective,
|
|
4239
|
-
|
|
4240
|
-
|
|
4244
|
+
ei as Upload,
|
|
4245
|
+
Vs as VjComponents,
|
|
4241
4246
|
Jt as VjDialogControllerKey,
|
|
4242
|
-
|
|
4247
|
+
ts as VjNavigationProviderKey,
|
|
4243
4248
|
Bl as compactDirective,
|
|
4244
|
-
|
|
4245
|
-
|
|
4249
|
+
gs as configureVueUI,
|
|
4250
|
+
us as dialogService,
|
|
4246
4251
|
Ut as getVueUIConfig,
|
|
4247
4252
|
at as iconRegistry,
|
|
4248
4253
|
Nt as notificationService,
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4254
|
+
bs as resetVueUIConfig,
|
|
4255
|
+
rs as useAsideService,
|
|
4256
|
+
ws as useDebounce,
|
|
4257
|
+
_s as useDialog,
|
|
4258
|
+
xs as useDialogController,
|
|
4259
|
+
ks as useFlow,
|
|
4260
|
+
os as useRouterNavigationProvider,
|
|
4261
|
+
ys as useStaticNavigationProvider
|
|
4257
4262
|
};
|