@vanjana/vue-ui 0.1.95 → 0.1.99
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/types/components/amount-bar.vue.d.ts +8 -0
- package/dist/types/components/index.d.ts +3 -1
- package/dist/types/components/notification/index.d.ts +3 -0
- package/dist/types/stories/components/amount-bar.stories.d.ts +38 -0
- package/dist/types/stories/components/notification.stories.d.ts +1 -0
- package/dist/vanjana-vue-ui.es.js +1213 -1162
- package/dist/vanjana-vue-ui.umd.js +1 -1
- package/dist/vue-ui.css +1 -1
- package/package.json +1 -1
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { createElementBlock as g, openBlock as
|
|
2
|
-
import { useRouter as
|
|
1
|
+
import { createElementBlock as g, openBlock as f, createElementVNode as x, renderSlot as M, defineComponent as T, computed as E, normalizeClass as z, createBlock as j, createCommentVNode as L, createTextVNode as Ue, unref as S, toDisplayString as D, useSlots as Ut, ref as C, onMounted as De, nextTick as me, onBeforeUnmount as Re, watch as X, resolveComponent as K, createVNode as O, normalizeStyle as G, Fragment as Z, renderList as ge, mergeModels as ee, useModel as ve, withModifiers as N, Teleport as Pe, Transition as Oe, withCtx as W, createSlots as rt, resolveDynamicComponent as Wt, mergeProps as gn, shallowRef as bn, getCurrentScope as yn, onScopeDispose as wn, shallowReadonly as Ve, render as $t, resolveDirective as Nt, withDirectives as ct, withKeys as lt, provide as _n, inject as Kt, vModelText as xn, toRef as nt, normalizeProps as kn, guardReactiveProps as Vn, TransitionGroup as En, isRef as Cn, createApp as Ln, h as $n } from "vue";
|
|
2
|
+
import { useRouter as Sn, useRoute as Rn } from "vue-router";
|
|
3
3
|
const B = (e, n) => {
|
|
4
4
|
const t = e.__vccOpts || e;
|
|
5
5
|
for (const [o, l] of n)
|
|
6
6
|
t[o] = l;
|
|
7
7
|
return t;
|
|
8
|
-
},
|
|
9
|
-
function
|
|
10
|
-
return
|
|
11
|
-
x("div",
|
|
8
|
+
}, Tn = {}, An = { class: "button-bar" }, On = { class: "left" }, Bn = { class: "right" };
|
|
9
|
+
function Dn(e, n) {
|
|
10
|
+
return f(), g("div", An, [
|
|
11
|
+
x("div", On, [
|
|
12
12
|
M(e.$slots, "left", {}, void 0, !0)
|
|
13
13
|
]),
|
|
14
|
-
x("div",
|
|
14
|
+
x("div", Bn, [
|
|
15
15
|
M(e.$slots, "default", {}, void 0, !0)
|
|
16
16
|
])
|
|
17
17
|
]);
|
|
18
18
|
}
|
|
19
|
-
const
|
|
19
|
+
const Pn = /* @__PURE__ */ B(Tn, [["render", Dn], ["__scopeId", "data-v-45a6ed1a"]]);
|
|
20
20
|
var F = /* @__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))(F || {}), q = /* @__PURE__ */ ((e) => (e.S = "icon-size-s", e.M = "icon-size-m", e.L = "icon-size-l", e))(q || {});
|
|
21
|
-
const
|
|
21
|
+
const be = /* @__PURE__ */ T({
|
|
22
22
|
__name: "icon",
|
|
23
23
|
props: {
|
|
24
24
|
icon: {},
|
|
@@ -26,11 +26,11 @@ const ge = /* @__PURE__ */ A({
|
|
|
26
26
|
},
|
|
27
27
|
setup(e) {
|
|
28
28
|
const n = e, t = q.M, o = E(() => `${n.icon} ${n.size ?? t}`);
|
|
29
|
-
return (l,
|
|
30
|
-
class:
|
|
29
|
+
return (l, a) => (f(), g("i", {
|
|
30
|
+
class: z(o.value)
|
|
31
31
|
}, null, 2));
|
|
32
32
|
}
|
|
33
|
-
}),
|
|
33
|
+
}), Mn = ["disabled"], jn = /* @__PURE__ */ T({
|
|
34
34
|
__name: "button",
|
|
35
35
|
props: {
|
|
36
36
|
label: {},
|
|
@@ -42,50 +42,50 @@ const ge = /* @__PURE__ */ A({
|
|
|
42
42
|
},
|
|
43
43
|
setup(e) {
|
|
44
44
|
const n = e, t = q.S, o = E(() => n.primary ? "primary" : n.secondary ? "secondary" : n.tertiary ? "tertiary" : "primary"), l = E(() => !n.label && !!n.icon);
|
|
45
|
-
return (
|
|
46
|
-
class:
|
|
45
|
+
return (a, i) => (f(), g("button", {
|
|
46
|
+
class: z(["button", o.value, { "icon-only": l.value }]),
|
|
47
47
|
disabled: e.disabled
|
|
48
48
|
}, [
|
|
49
|
-
e.icon ? (
|
|
49
|
+
e.icon ? (f(), j(be, {
|
|
50
50
|
key: 0,
|
|
51
51
|
icon: e.icon,
|
|
52
|
-
size:
|
|
52
|
+
size: S(t)
|
|
53
53
|
}, null, 8, ["icon", "size"])) : L("", !0),
|
|
54
|
-
|
|
55
|
-
], 10,
|
|
54
|
+
Ue(" " + D(e.label), 1)
|
|
55
|
+
], 10, Mn));
|
|
56
56
|
}
|
|
57
|
-
}), ut = /* @__PURE__ */ B(
|
|
57
|
+
}), ut = /* @__PURE__ */ B(jn, [["__scopeId", "data-v-f31c33cf"]]), Fn = {
|
|
58
58
|
key: 0,
|
|
59
59
|
class: "header-actions"
|
|
60
|
-
},
|
|
60
|
+
}, zn = { key: 0 }, In = /* @__PURE__ */ T({
|
|
61
61
|
__name: "card",
|
|
62
62
|
props: {
|
|
63
63
|
header: {},
|
|
64
64
|
scrollable: { type: Boolean }
|
|
65
65
|
},
|
|
66
66
|
setup(e) {
|
|
67
|
-
const n =
|
|
68
|
-
return (t, o) => (
|
|
69
|
-
class:
|
|
67
|
+
const n = Ut();
|
|
68
|
+
return (t, o) => (f(), g("div", {
|
|
69
|
+
class: z(["card", { scrollable: e.scrollable }])
|
|
70
70
|
}, [
|
|
71
71
|
x("header", null, [
|
|
72
72
|
x("h3", null, D(e.header), 1),
|
|
73
|
-
|
|
73
|
+
S(n).headerActions ? (f(), g("span", Fn, [
|
|
74
74
|
M(t.$slots, "headerActions", {}, void 0, !0)
|
|
75
75
|
])) : L("", !0)
|
|
76
76
|
]),
|
|
77
77
|
x("main", null, [
|
|
78
78
|
M(t.$slots, "default", {}, void 0, !0)
|
|
79
79
|
]),
|
|
80
|
-
|
|
80
|
+
S(n).footer ? (f(), g("footer", zn, [
|
|
81
81
|
M(t.$slots, "footer", {}, void 0, !0)
|
|
82
82
|
])) : L("", !0)
|
|
83
83
|
], 2));
|
|
84
84
|
}
|
|
85
|
-
}), at = /* @__PURE__ */ B(
|
|
85
|
+
}), at = /* @__PURE__ */ B(In, [["__scopeId", "data-v-ec6ab562"]]), Hn = ["aria-label"], Un = {
|
|
86
86
|
key: 0,
|
|
87
87
|
class: "carousel-indicators"
|
|
88
|
-
},
|
|
88
|
+
}, Wn = /* @__PURE__ */ T({
|
|
89
89
|
__name: "carousel",
|
|
90
90
|
props: {
|
|
91
91
|
autoplay: { type: Boolean },
|
|
@@ -96,99 +96,99 @@ const ge = /* @__PURE__ */ A({
|
|
|
96
96
|
ariaLabel: {}
|
|
97
97
|
},
|
|
98
98
|
setup(e) {
|
|
99
|
-
const n = e, t = n.autoplay ?? !1, o = n.interval ?? 4e3, l = n.loop ?? !0,
|
|
99
|
+
const n = e, t = n.autoplay ?? !1, o = n.interval ?? 4e3, l = n.loop ?? !0, a = n.pauseOnHover ?? !0, i = n.startIndex ?? 0, r = n.ariaLabel ?? "Carousel", c = C(Math.max(0, i)), s = C(null), u = C(null), d = C(0), v = C(0);
|
|
100
100
|
let m = !1;
|
|
101
101
|
const p = C(0), _ = C(!1);
|
|
102
102
|
let h = null, y = null;
|
|
103
103
|
const w = C(null), b = C(null), $ = () => {
|
|
104
|
-
p.value = s.value ? s.value.children.length : 0, p.value === 0 ? c.value = 0 : c.value >= p.value && (c.value = l ? 0 : p.value - 1),
|
|
105
|
-
}, P = E(() => d.value > 0 ? { transform: `translateX(${-c.value * d.value +
|
|
106
|
-
s.value && Array.from(s.value.children).forEach((
|
|
104
|
+
p.value = s.value ? s.value.children.length : 0, p.value === 0 ? c.value = 0 : c.value >= p.value && (c.value = l ? 0 : p.value - 1), I();
|
|
105
|
+
}, P = E(() => d.value > 0 ? { transform: `translateX(${-c.value * d.value + v.value}px)` } : { transform: `translateX(-${c.value * 100}%)` }), I = () => {
|
|
106
|
+
s.value && Array.from(s.value.children).forEach((R, ye) => {
|
|
107
107
|
try {
|
|
108
|
-
|
|
108
|
+
ye === c.value ? R.removeAttribute("aria-hidden") : R.setAttribute("aria-hidden", "true");
|
|
109
109
|
} catch {
|
|
110
110
|
}
|
|
111
111
|
});
|
|
112
112
|
}, k = () => {
|
|
113
|
-
V(), !(!t || p.value <= 1) && (
|
|
113
|
+
V(), !(!t || p.value <= 1) && (a && _.value || (h = setTimeout(() => {
|
|
114
114
|
H(), k();
|
|
115
115
|
}, o)));
|
|
116
116
|
}, V = () => {
|
|
117
117
|
h && (clearTimeout(h), h = null);
|
|
118
|
-
},
|
|
118
|
+
}, A = () => {
|
|
119
119
|
p.value !== 0 && (c.value <= 0 ? c.value = l ? p.value - 1 : 0 : c.value--);
|
|
120
120
|
}, H = () => {
|
|
121
121
|
p.value !== 0 && (c.value >= p.value - 1 ? c.value = l ? 0 : p.value - 1 : c.value++);
|
|
122
|
-
}, U = (
|
|
123
|
-
|
|
122
|
+
}, U = (R) => {
|
|
123
|
+
R < 0 || R >= p.value || (c.value = R);
|
|
124
124
|
}, ce = () => {
|
|
125
|
-
_.value = !0,
|
|
125
|
+
_.value = !0, a && V();
|
|
126
126
|
}, ue = () => {
|
|
127
127
|
_.value = !1, k();
|
|
128
|
-
}, de = (
|
|
129
|
-
|
|
128
|
+
}, de = (R) => {
|
|
129
|
+
R.key === "ArrowLeft" ? A() : R.key === "ArrowRight" && H();
|
|
130
130
|
};
|
|
131
|
-
let
|
|
132
|
-
const ae = (
|
|
133
|
-
|
|
134
|
-
},
|
|
135
|
-
|
|
136
|
-
},
|
|
137
|
-
|
|
131
|
+
let ke = 0, te = 0;
|
|
132
|
+
const ae = (R) => {
|
|
133
|
+
ke = R.touches[0].clientX, te = 0;
|
|
134
|
+
}, Y = (R) => {
|
|
135
|
+
te = R.touches[0].clientX - ke;
|
|
136
|
+
}, ne = () => {
|
|
137
|
+
te > 50 ? A() : te < -50 && H(), te = 0;
|
|
138
138
|
};
|
|
139
|
-
let
|
|
140
|
-
const
|
|
141
|
-
if (
|
|
142
|
-
m = !0,
|
|
139
|
+
let Ie = 0;
|
|
140
|
+
const kt = (R) => {
|
|
141
|
+
if (R.isPrimary !== !1 && !(R.pointerType === "mouse" && R.button !== 0)) {
|
|
142
|
+
m = !0, Ie = R.clientX, v.value = 0, V();
|
|
143
143
|
try {
|
|
144
|
-
|
|
144
|
+
R.target?.setPointerCapture?.(R.pointerId);
|
|
145
145
|
} catch {
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
|
-
},
|
|
149
|
-
m && (
|
|
150
|
-
},
|
|
148
|
+
}, Vt = (R) => {
|
|
149
|
+
m && (v.value = R.clientX - Ie, R.preventDefault());
|
|
150
|
+
}, Et = () => {
|
|
151
151
|
if (!m) return;
|
|
152
152
|
m = !1;
|
|
153
|
-
const
|
|
154
|
-
|
|
155
|
-
},
|
|
153
|
+
const R = Math.max(50, d.value * 0.15);
|
|
154
|
+
v.value > R ? A() : v.value < -R && H(), v.value = 0, k();
|
|
155
|
+
}, Ct = (R) => {
|
|
156
156
|
try {
|
|
157
|
-
|
|
157
|
+
R.target?.releasePointerCapture?.(R.pointerId);
|
|
158
158
|
} catch {
|
|
159
159
|
}
|
|
160
|
-
|
|
161
|
-
},
|
|
162
|
-
return
|
|
160
|
+
Et();
|
|
161
|
+
}, Lt = () => Et();
|
|
162
|
+
return De(() => {
|
|
163
163
|
me(() => {
|
|
164
|
-
if ($(), s.value && (y = new MutationObserver($), y.observe(s.value, { childList: !0 }), s.value.addEventListener("touchstart", ae, { passive: !0 }), s.value.addEventListener("touchmove",
|
|
165
|
-
const
|
|
164
|
+
if ($(), s.value && (y = new MutationObserver($), y.observe(s.value, { childList: !0 }), s.value.addEventListener("touchstart", ae, { passive: !0 }), s.value.addEventListener("touchmove", Y, { passive: !0 }), s.value.addEventListener("touchend", ne)), u.value) {
|
|
165
|
+
const R = () => {
|
|
166
166
|
d.value = u.value ? u.value.clientWidth : 0;
|
|
167
167
|
};
|
|
168
|
-
|
|
169
|
-
const
|
|
170
|
-
if (
|
|
171
|
-
const
|
|
172
|
-
|
|
168
|
+
R();
|
|
169
|
+
const ye = window.ResizeObserver;
|
|
170
|
+
if (ye && u.value) {
|
|
171
|
+
const we = new ye(() => R());
|
|
172
|
+
we.observe(u.value), w.value = we;
|
|
173
173
|
} else
|
|
174
|
-
window.addEventListener("resize",
|
|
175
|
-
u.value && (u.value.addEventListener("pointerdown",
|
|
174
|
+
window.addEventListener("resize", R), b.value = R;
|
|
175
|
+
u.value && (u.value.addEventListener("pointerdown", kt), u.value.addEventListener("pointermove", Vt), u.value.addEventListener("pointerup", Ct), u.value.addEventListener("pointercancel", Lt));
|
|
176
176
|
}
|
|
177
|
-
|
|
177
|
+
I(), k();
|
|
178
178
|
});
|
|
179
179
|
}), Re(() => {
|
|
180
|
-
V(), y && s.value && y.disconnect(), s.value && (s.value.removeEventListener("touchstart", ae), s.value.removeEventListener("touchmove",
|
|
180
|
+
V(), y && s.value && y.disconnect(), s.value && (s.value.removeEventListener("touchstart", ae), s.value.removeEventListener("touchmove", Y), s.value.removeEventListener("touchend", ne)), u.value && (w.value && w.value.disconnect && w.value.disconnect(), b.value && window.removeEventListener("resize", b.value), u.value.removeEventListener("pointerdown", kt), u.value.removeEventListener("pointermove", Vt), u.value.removeEventListener("pointerup", Ct), u.value.removeEventListener("pointercancel", Lt));
|
|
181
181
|
}), X([c, () => p.value], () => {
|
|
182
|
-
|
|
182
|
+
I();
|
|
183
183
|
}), X([() => _.value, c], () => {
|
|
184
184
|
k();
|
|
185
|
-
}), (
|
|
186
|
-
const
|
|
187
|
-
return
|
|
185
|
+
}), (R, ye) => {
|
|
186
|
+
const we = K("VjButton");
|
|
187
|
+
return f(), g("div", {
|
|
188
188
|
class: "carousel",
|
|
189
189
|
role: "region",
|
|
190
190
|
"aria-roledescription": "carousel",
|
|
191
|
-
"aria-label":
|
|
191
|
+
"aria-label": S(r),
|
|
192
192
|
tabindex: "0",
|
|
193
193
|
onKeydown: de,
|
|
194
194
|
onMouseenter: ce,
|
|
@@ -203,44 +203,44 @@ const ge = /* @__PURE__ */ A({
|
|
|
203
203
|
class: "carousel-track",
|
|
204
204
|
ref_key: "track",
|
|
205
205
|
ref: s,
|
|
206
|
-
style:
|
|
206
|
+
style: G(P.value)
|
|
207
207
|
}, [
|
|
208
|
-
M(
|
|
208
|
+
M(R.$slots, "default", {}, void 0, !0)
|
|
209
209
|
], 4)
|
|
210
210
|
], 512),
|
|
211
|
-
O(
|
|
211
|
+
O(we, {
|
|
212
212
|
class: "carousel-btn prev",
|
|
213
|
-
icon:
|
|
214
|
-
onClick:
|
|
213
|
+
icon: S(F).PREVIOUS,
|
|
214
|
+
onClick: A,
|
|
215
215
|
type: "button",
|
|
216
216
|
"aria-label": "Previous slide"
|
|
217
217
|
}, null, 8, ["icon"]),
|
|
218
|
-
O(
|
|
218
|
+
O(we, {
|
|
219
219
|
class: "carousel-btn next",
|
|
220
|
-
icon:
|
|
220
|
+
icon: S(F).NEXT,
|
|
221
221
|
onClick: H,
|
|
222
222
|
type: "button",
|
|
223
223
|
"aria-label": "Next slide"
|
|
224
224
|
}, null, 8, ["icon"]),
|
|
225
|
-
p.value > 1 ? (
|
|
226
|
-
(
|
|
225
|
+
p.value > 1 ? (f(), g("div", Un, [
|
|
226
|
+
(f(!0), g(Z, null, ge(p.value, (Te) => (f(), j(we, {
|
|
227
227
|
key: Te - 1,
|
|
228
|
-
class:
|
|
229
|
-
onClick: (
|
|
228
|
+
class: z(["indicator", { active: Te - 1 === c.value }]),
|
|
229
|
+
onClick: (Ai) => U(Te - 1),
|
|
230
230
|
"aria-current": Te - 1 === c.value,
|
|
231
231
|
"aria-label": `Go to slide ${Te}`,
|
|
232
232
|
type: "button"
|
|
233
233
|
}, null, 8, ["class", "onClick", "aria-current", "aria-label"]))), 128))
|
|
234
234
|
])) : L("", !0)
|
|
235
|
-
], 40,
|
|
235
|
+
], 40, Hn);
|
|
236
236
|
};
|
|
237
237
|
}
|
|
238
|
-
}),
|
|
238
|
+
}), Di = /* @__PURE__ */ B(Wn, [["__scopeId", "data-v-232abca2"]]), Nn = { class: "checkbox" }, Kn = ["checked", "disabled"], Xn = {
|
|
239
239
|
key: 0,
|
|
240
240
|
class: "checkbox-label"
|
|
241
|
-
},
|
|
241
|
+
}, Gn = /* @__PURE__ */ T({
|
|
242
242
|
__name: "checkbox",
|
|
243
|
-
props: /* @__PURE__ */
|
|
243
|
+
props: /* @__PURE__ */ ee({
|
|
244
244
|
label: {},
|
|
245
245
|
disabled: { type: Boolean }
|
|
246
246
|
}, {
|
|
@@ -253,14 +253,14 @@ const ge = /* @__PURE__ */ A({
|
|
|
253
253
|
const l = o.target;
|
|
254
254
|
n.value = l.checked;
|
|
255
255
|
};
|
|
256
|
-
return (o, l) => (
|
|
256
|
+
return (o, l) => (f(), g("label", Nn, [
|
|
257
257
|
x("input", {
|
|
258
258
|
type: "checkbox",
|
|
259
259
|
checked: n.value,
|
|
260
260
|
onChange: t,
|
|
261
261
|
disabled: e.disabled,
|
|
262
262
|
class: "checkbox-input"
|
|
263
|
-
}, null, 40,
|
|
263
|
+
}, null, 40, Kn),
|
|
264
264
|
l[0] || (l[0] = x("span", { class: "checkbox-box" }, [
|
|
265
265
|
x("svg", {
|
|
266
266
|
class: "checkbox-icon",
|
|
@@ -278,15 +278,15 @@ const ge = /* @__PURE__ */ A({
|
|
|
278
278
|
})
|
|
279
279
|
])
|
|
280
280
|
], -1)),
|
|
281
|
-
e.label ? (
|
|
281
|
+
e.label ? (f(), g("span", Xn, D(e.label), 1)) : L("", !0)
|
|
282
282
|
]));
|
|
283
283
|
}
|
|
284
|
-
}),
|
|
284
|
+
}), qn = /* @__PURE__ */ B(Gn, [["__scopeId", "data-v-d44b45ff"]]), Yn = { class: "radio" }, Jn = ["checked", "disabled"], Qn = {
|
|
285
285
|
key: 0,
|
|
286
286
|
class: "radio-label"
|
|
287
|
-
},
|
|
287
|
+
}, Zn = /* @__PURE__ */ T({
|
|
288
288
|
__name: "radio",
|
|
289
|
-
props: /* @__PURE__ */
|
|
289
|
+
props: /* @__PURE__ */ ee({
|
|
290
290
|
label: {},
|
|
291
291
|
disabled: { type: Boolean }
|
|
292
292
|
}, {
|
|
@@ -299,26 +299,26 @@ const ge = /* @__PURE__ */ A({
|
|
|
299
299
|
const l = o.target;
|
|
300
300
|
n.value = l.checked;
|
|
301
301
|
};
|
|
302
|
-
return (o, l) => (
|
|
302
|
+
return (o, l) => (f(), g("label", Yn, [
|
|
303
303
|
x("input", {
|
|
304
304
|
type: "checkbox",
|
|
305
305
|
checked: n.value,
|
|
306
306
|
onChange: t,
|
|
307
307
|
disabled: e.disabled,
|
|
308
308
|
class: "radio-input"
|
|
309
|
-
}, null, 40,
|
|
309
|
+
}, null, 40, Jn),
|
|
310
310
|
l[0] || (l[0] = x("span", { class: "radio-box" }, [
|
|
311
311
|
x("span", {
|
|
312
312
|
class: "radio-dot",
|
|
313
313
|
"aria-hidden": "true"
|
|
314
314
|
})
|
|
315
315
|
], -1)),
|
|
316
|
-
e.label ? (
|
|
316
|
+
e.label ? (f(), g("span", Qn, D(e.label), 1)) : L("", !0)
|
|
317
317
|
]));
|
|
318
318
|
}
|
|
319
|
-
}),
|
|
319
|
+
}), Pi = /* @__PURE__ */ B(Zn, [["__scopeId", "data-v-f9e4bb65"]]), eo = { class: "chip__label" }, to = /* @__PURE__ */ T({
|
|
320
320
|
__name: "chip",
|
|
321
|
-
props: /* @__PURE__ */
|
|
321
|
+
props: /* @__PURE__ */ ee({
|
|
322
322
|
label: {},
|
|
323
323
|
dismissable: { type: Boolean },
|
|
324
324
|
color: {}
|
|
@@ -326,41 +326,41 @@ const ge = /* @__PURE__ */ A({
|
|
|
326
326
|
modelValue: {},
|
|
327
327
|
modelModifiers: {}
|
|
328
328
|
}),
|
|
329
|
-
emits: /* @__PURE__ */
|
|
329
|
+
emits: /* @__PURE__ */ ee(["update:modelValue", "dismiss", "click"], ["update:modelValue"]),
|
|
330
330
|
setup(e, { emit: n }) {
|
|
331
|
-
const t = e, o = ve(e, "modelValue"), l = n,
|
|
331
|
+
const t = e, o = ve(e, "modelValue"), l = n, a = t.dismissable ?? !1, i = E(() => {
|
|
332
332
|
const c = {};
|
|
333
333
|
return t.color && (c.color = `var(--on-surface-${t.color})`, c.background = `var(--surface-${t.color})`), c;
|
|
334
334
|
}), r = () => {
|
|
335
335
|
l("dismiss", o.value);
|
|
336
336
|
};
|
|
337
|
-
return (c, s) => (
|
|
338
|
-
class:
|
|
339
|
-
style:
|
|
337
|
+
return (c, s) => (f(), g("div", {
|
|
338
|
+
class: z(["chip", { "chip--dismissable": S(a) }]),
|
|
339
|
+
style: G(i.value),
|
|
340
340
|
onClick: s[0] || (s[0] = (u) => c.$emit("click"))
|
|
341
341
|
}, [
|
|
342
|
-
x("span",
|
|
343
|
-
|
|
342
|
+
x("span", eo, D(e.label), 1),
|
|
343
|
+
S(a) ? (f(), g("button", {
|
|
344
344
|
key: 0,
|
|
345
345
|
class: "chip__close",
|
|
346
346
|
type: "button",
|
|
347
|
-
onClick:
|
|
347
|
+
onClick: N(r, ["stop"]),
|
|
348
348
|
"aria-label": "Dismiss"
|
|
349
349
|
}, [
|
|
350
|
-
O(
|
|
351
|
-
icon:
|
|
352
|
-
size:
|
|
350
|
+
O(be, {
|
|
351
|
+
icon: S(F).CLOSE,
|
|
352
|
+
size: S(q).S
|
|
353
353
|
}, null, 8, ["icon", "size"])
|
|
354
354
|
])) : L("", !0)
|
|
355
355
|
], 6));
|
|
356
356
|
}
|
|
357
|
-
}),
|
|
357
|
+
}), Xt = /* @__PURE__ */ B(to, [["__scopeId", "data-v-c2014a3b"]]), no = { class: "chip-group" }, oo = {
|
|
358
358
|
key: 0,
|
|
359
359
|
class: "chip-group__label"
|
|
360
|
-
},
|
|
360
|
+
}, lo = { class: "chip-group__container" }, ao = ["onDragover", "onDrop"], io = ["onDragstart", "onDragover", "onDragenter", "onDrop"], so = ["onDragover", "onDrop"], ro = {
|
|
361
361
|
key: 1,
|
|
362
362
|
class: "chip-group__hint"
|
|
363
|
-
},
|
|
363
|
+
}, co = /* @__PURE__ */ T({
|
|
364
364
|
__name: "chip-group",
|
|
365
365
|
props: {
|
|
366
366
|
items: { default: () => [] },
|
|
@@ -373,8 +373,8 @@ const ge = /* @__PURE__ */ A({
|
|
|
373
373
|
},
|
|
374
374
|
emits: ["update:items", "reorder", "dismiss", "chip-click"],
|
|
375
375
|
setup(e, { emit: n }) {
|
|
376
|
-
const t = e, o = n, l = C(null),
|
|
377
|
-
function
|
|
376
|
+
const t = e, o = n, l = C(null), a = C(null);
|
|
377
|
+
function i(h, y) {
|
|
378
378
|
return typeof h == "string" ? `${h}-${y}` : h[t.itemKey] !== void 0 ? String(h[t.itemKey]) : `item-${y}`;
|
|
379
379
|
}
|
|
380
380
|
function r(h) {
|
|
@@ -387,12 +387,12 @@ const ge = /* @__PURE__ */ A({
|
|
|
387
387
|
l.value === null || l.value === h || (y.preventDefault(), y.dataTransfer && (y.dataTransfer.dropEffect = "move"));
|
|
388
388
|
}
|
|
389
389
|
function u(h) {
|
|
390
|
-
l.value === null || l.value === h || (
|
|
390
|
+
l.value === null || l.value === h || (a.value = h);
|
|
391
391
|
}
|
|
392
392
|
function d() {
|
|
393
393
|
}
|
|
394
|
-
function
|
|
395
|
-
return l.value === null ||
|
|
394
|
+
function v(h, y) {
|
|
395
|
+
return l.value === null || a.value === null || l.value === h ? !1 : y === "before" && a.value === h && l.value > h || y === "after" && a.value === h && l.value < h;
|
|
396
396
|
}
|
|
397
397
|
function m(h, y) {
|
|
398
398
|
if (y.preventDefault(), l.value === null || l.value === h)
|
|
@@ -401,54 +401,54 @@ const ge = /* @__PURE__ */ A({
|
|
|
401
401
|
w.splice(l.value, 1), w.splice(h, 0, b), o("update:items", w), o("reorder", w);
|
|
402
402
|
}
|
|
403
403
|
function p() {
|
|
404
|
-
l.value = null,
|
|
404
|
+
l.value = null, a.value = null;
|
|
405
405
|
}
|
|
406
406
|
function _(h) {
|
|
407
407
|
const y = t.items[h], w = t.items.filter((b, $) => $ !== h);
|
|
408
408
|
o("update:items", w), o("dismiss", y, h);
|
|
409
409
|
}
|
|
410
|
-
return (h, y) => (
|
|
411
|
-
e.label ? (
|
|
412
|
-
x("div",
|
|
413
|
-
(
|
|
414
|
-
key:
|
|
410
|
+
return (h, y) => (f(), g("div", no, [
|
|
411
|
+
e.label ? (f(), g("label", oo, D(e.label), 1)) : L("", !0),
|
|
412
|
+
x("div", lo, [
|
|
413
|
+
(f(!0), g(Z, null, ge(e.items, (w, b) => (f(), g(Z, {
|
|
414
|
+
key: i(w, b)
|
|
415
415
|
}, [
|
|
416
|
-
|
|
416
|
+
v(b, "before") ? (f(), g("div", {
|
|
417
417
|
key: 0,
|
|
418
418
|
class: "chip-group__drop-indicator",
|
|
419
|
-
onDragover:
|
|
419
|
+
onDragover: N(($) => s(b, $), ["prevent"]),
|
|
420
420
|
onDrop: ($) => m(b, $)
|
|
421
|
-
}, null, 40,
|
|
421
|
+
}, null, 40, ao)) : L("", !0),
|
|
422
422
|
x("div", {
|
|
423
|
-
class:
|
|
423
|
+
class: z(["chip-group__item", { "chip-group__item--dragging": l.value === b }]),
|
|
424
424
|
draggable: "true",
|
|
425
425
|
onDragstart: ($) => c(b, $),
|
|
426
|
-
onDragover:
|
|
427
|
-
onDragenter:
|
|
426
|
+
onDragover: N(($) => s(b, $), ["prevent"]),
|
|
427
|
+
onDragenter: N(($) => u(b), ["prevent"]),
|
|
428
428
|
onDragleave: d,
|
|
429
429
|
onDrop: ($) => m(b, $),
|
|
430
430
|
onDragend: p
|
|
431
431
|
}, [
|
|
432
|
-
O(
|
|
432
|
+
O(Xt, {
|
|
433
433
|
label: r(w),
|
|
434
434
|
dismissable: typeof w == "string" ? e.dismissable : w.dismissable ?? e.dismissable,
|
|
435
435
|
color: typeof w == "string" ? e.color : w.color ?? e.color,
|
|
436
436
|
onDismiss: ($) => _(b),
|
|
437
437
|
onClick: ($) => h.$emit("chip-click", w, b)
|
|
438
438
|
}, null, 8, ["label", "dismissable", "color", "onDismiss", "onClick"])
|
|
439
|
-
], 42,
|
|
440
|
-
|
|
439
|
+
], 42, io),
|
|
440
|
+
v(b, "after") ? (f(), g("div", {
|
|
441
441
|
key: 1,
|
|
442
442
|
class: "chip-group__drop-indicator",
|
|
443
|
-
onDragover:
|
|
443
|
+
onDragover: N(($) => s(b, $), ["prevent"]),
|
|
444
444
|
onDrop: ($) => m(b, $)
|
|
445
|
-
}, null, 40,
|
|
445
|
+
}, null, 40, so)) : L("", !0)
|
|
446
446
|
], 64))), 128))
|
|
447
447
|
]),
|
|
448
|
-
e.hint ? (
|
|
448
|
+
e.hint ? (f(), g("div", ro, D(e.hint), 1)) : L("", !0)
|
|
449
449
|
]));
|
|
450
450
|
}
|
|
451
|
-
}),
|
|
451
|
+
}), Gt = /* @__PURE__ */ B(co, [["__scopeId", "data-v-66199d19"]]), uo = { class: "dialog-content" }, fo = { key: 1 }, vo = { class: "dialog-footer" }, mo = /* @__PURE__ */ T({
|
|
452
452
|
__name: "dialog",
|
|
453
453
|
props: {
|
|
454
454
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -470,37 +470,37 @@ const ge = /* @__PURE__ */ A({
|
|
|
470
470
|
() => t.modelValue,
|
|
471
471
|
(u) => l.value = u
|
|
472
472
|
);
|
|
473
|
-
const
|
|
473
|
+
const a = () => {
|
|
474
474
|
l.value = !1, o("update:modelValue", !1), o("close");
|
|
475
|
-
},
|
|
476
|
-
o("confirm"),
|
|
475
|
+
}, i = () => {
|
|
476
|
+
o("confirm"), a();
|
|
477
477
|
}, r = () => {
|
|
478
|
-
o("cancel"),
|
|
478
|
+
o("cancel"), a();
|
|
479
479
|
}, c = () => {
|
|
480
|
-
t.closeOnBackdrop &&
|
|
480
|
+
t.closeOnBackdrop && a();
|
|
481
481
|
}, s = (u) => {
|
|
482
|
-
u.key === "Escape" && t.closeOnEscape && l.value &&
|
|
482
|
+
u.key === "Escape" && t.closeOnEscape && l.value && a();
|
|
483
483
|
};
|
|
484
|
-
return
|
|
484
|
+
return De(() => {
|
|
485
485
|
document.addEventListener("keydown", s);
|
|
486
486
|
}), Re(() => {
|
|
487
487
|
document.removeEventListener("keydown", s);
|
|
488
488
|
}), (u, d) => {
|
|
489
|
-
const
|
|
490
|
-
return
|
|
489
|
+
const v = K("VjIcon"), m = K("VjButton"), p = K("VjCard");
|
|
490
|
+
return f(), j(Pe, { to: "body" }, [
|
|
491
491
|
O(Oe, { name: "dialog-fade" }, {
|
|
492
492
|
default: W(() => [
|
|
493
|
-
l.value ? (
|
|
493
|
+
l.value ? (f(), g("div", {
|
|
494
494
|
key: 0,
|
|
495
495
|
class: "dialog-backdrop",
|
|
496
496
|
onClick: c
|
|
497
497
|
}, [
|
|
498
498
|
O(Oe, { name: "dialog-scale" }, {
|
|
499
499
|
default: W(() => [
|
|
500
|
-
l.value ? (
|
|
500
|
+
l.value ? (f(), g("div", {
|
|
501
501
|
key: 0,
|
|
502
502
|
class: "dialog-wrapper",
|
|
503
|
-
onClick: d[0] || (d[0] =
|
|
503
|
+
onClick: d[0] || (d[0] = N(() => {
|
|
504
504
|
}, ["stop"]))
|
|
505
505
|
}, [
|
|
506
506
|
O(p, {
|
|
@@ -508,16 +508,16 @@ const ge = /* @__PURE__ */ A({
|
|
|
508
508
|
header: e.title || ""
|
|
509
509
|
}, rt({
|
|
510
510
|
headerActions: W(() => [
|
|
511
|
-
O(
|
|
512
|
-
icon:
|
|
513
|
-
size:
|
|
511
|
+
O(v, {
|
|
512
|
+
icon: S(F).CLOSE,
|
|
513
|
+
size: S(q).S,
|
|
514
514
|
class: "dialog-close",
|
|
515
|
-
onClick:
|
|
515
|
+
onClick: a
|
|
516
516
|
}, null, 8, ["icon", "size"])
|
|
517
517
|
]),
|
|
518
518
|
default: W(() => [
|
|
519
|
-
x("div",
|
|
520
|
-
e.component ? (
|
|
519
|
+
x("div", uo, [
|
|
520
|
+
e.component ? (f(), j(Wt(e.component), gn({ key: 0 }, e.componentProps, { onClose: a }), null, 16)) : e.message ? (f(), g("div", fo, D(e.message), 1)) : M(u.$slots, "default", { key: 2 }, void 0, !0)
|
|
521
521
|
])
|
|
522
522
|
]),
|
|
523
523
|
_: 2
|
|
@@ -525,9 +525,9 @@ const ge = /* @__PURE__ */ A({
|
|
|
525
525
|
e.showFooter ? {
|
|
526
526
|
name: "footer",
|
|
527
527
|
fn: W(() => [
|
|
528
|
-
x("div",
|
|
528
|
+
x("div", vo, [
|
|
529
529
|
M(u.$slots, "footer", {}, () => [
|
|
530
|
-
e.showCancel ? (
|
|
530
|
+
e.showCancel ? (f(), j(m, {
|
|
531
531
|
key: 0,
|
|
532
532
|
secondary: "",
|
|
533
533
|
onClick: r,
|
|
@@ -535,7 +535,7 @@ const ge = /* @__PURE__ */ A({
|
|
|
535
535
|
}, null, 8, ["label"])) : L("", !0),
|
|
536
536
|
O(m, {
|
|
537
537
|
primary: "",
|
|
538
|
-
onClick:
|
|
538
|
+
onClick: i,
|
|
539
539
|
label: e.confirmText
|
|
540
540
|
}, null, 8, ["label"])
|
|
541
541
|
], !0)
|
|
@@ -555,10 +555,10 @@ const ge = /* @__PURE__ */ A({
|
|
|
555
555
|
]);
|
|
556
556
|
};
|
|
557
557
|
}
|
|
558
|
-
}), dt = /* @__PURE__ */ B(
|
|
558
|
+
}), dt = /* @__PURE__ */ B(mo, [["__scopeId", "data-v-6af510b3"]]), po = { class: "vj-chip-selector" }, ho = { class: "options-grid" }, go = ["onClick"], bo = {
|
|
559
559
|
key: 0,
|
|
560
560
|
class: "no-options"
|
|
561
|
-
},
|
|
561
|
+
}, yo = /* @__PURE__ */ T({
|
|
562
562
|
__name: "chip-selector",
|
|
563
563
|
props: {
|
|
564
564
|
items: { default: () => [] },
|
|
@@ -570,7 +570,7 @@ const ge = /* @__PURE__ */ A({
|
|
|
570
570
|
},
|
|
571
571
|
emits: ["update:items"],
|
|
572
572
|
setup(e, { emit: n }) {
|
|
573
|
-
const t = e, o = n, l = C([...t.items]),
|
|
573
|
+
const t = e, o = n, l = C([...t.items]), a = C(!1), i = E(() => t.options.filter((s) => !l.value.includes(s.value)));
|
|
574
574
|
function r(s) {
|
|
575
575
|
const u = s;
|
|
576
576
|
l.value = u, o("update:items", u);
|
|
@@ -587,8 +587,8 @@ const ge = /* @__PURE__ */ A({
|
|
|
587
587
|
JSON.stringify(s) !== JSON.stringify(l.value) && (l.value = [...s]);
|
|
588
588
|
},
|
|
589
589
|
{ deep: !0 }
|
|
590
|
-
), (s, u) => (
|
|
591
|
-
O(
|
|
590
|
+
), (s, u) => (f(), g("div", po, [
|
|
591
|
+
O(Gt, {
|
|
592
592
|
items: l.value,
|
|
593
593
|
"onUpdate:items": [
|
|
594
594
|
u[0] || (u[0] = (d) => l.value = d),
|
|
@@ -600,101 +600,101 @@ const ge = /* @__PURE__ */ A({
|
|
|
600
600
|
x("button", {
|
|
601
601
|
type: "button",
|
|
602
602
|
class: "add-button",
|
|
603
|
-
onClick: u[1] || (u[1] = (d) =>
|
|
603
|
+
onClick: u[1] || (u[1] = (d) => a.value = !0)
|
|
604
604
|
}, D(e.addButtonText), 1),
|
|
605
605
|
O(dt, {
|
|
606
|
-
modelValue:
|
|
607
|
-
"onUpdate:modelValue": u[2] || (u[2] = (d) =>
|
|
606
|
+
modelValue: a.value,
|
|
607
|
+
"onUpdate:modelValue": u[2] || (u[2] = (d) => a.value = d),
|
|
608
608
|
title: e.dialogTitle || `Add ${e.label}`,
|
|
609
609
|
"close-on-backdrop": ""
|
|
610
610
|
}, {
|
|
611
611
|
default: W(() => [
|
|
612
|
-
x("div",
|
|
613
|
-
(
|
|
612
|
+
x("div", ho, [
|
|
613
|
+
(f(!0), g(Z, null, ge(i.value, (d) => (f(), g("button", {
|
|
614
614
|
key: d.value,
|
|
615
615
|
type: "button",
|
|
616
616
|
class: "option-btn",
|
|
617
|
-
onClick: (
|
|
618
|
-
}, "+ " + D(d.label), 9,
|
|
617
|
+
onClick: (v) => c(d.value)
|
|
618
|
+
}, "+ " + D(d.label), 9, go))), 128))
|
|
619
619
|
]),
|
|
620
|
-
|
|
620
|
+
i.value.length === 0 ? (f(), g("div", bo, "All options already selected")) : L("", !0)
|
|
621
621
|
]),
|
|
622
622
|
_: 1
|
|
623
623
|
}, 8, ["modelValue", "title"])
|
|
624
624
|
]));
|
|
625
625
|
}
|
|
626
|
-
}),
|
|
626
|
+
}), wo = /* @__PURE__ */ B(yo, [["__scopeId", "data-v-f2e1b880"]]), $e = Math.min, J = Math.max, We = Math.round, He = Math.floor, ie = (e) => ({
|
|
627
627
|
x: e,
|
|
628
628
|
y: e
|
|
629
|
-
}),
|
|
629
|
+
}), _o = {
|
|
630
630
|
left: "right",
|
|
631
631
|
right: "left",
|
|
632
632
|
bottom: "top",
|
|
633
633
|
top: "bottom"
|
|
634
|
-
},
|
|
634
|
+
}, xo = {
|
|
635
635
|
start: "end",
|
|
636
636
|
end: "start"
|
|
637
637
|
};
|
|
638
|
-
function
|
|
639
|
-
return J(e,
|
|
638
|
+
function St(e, n, t) {
|
|
639
|
+
return J(e, $e(n, t));
|
|
640
640
|
}
|
|
641
|
-
function
|
|
641
|
+
function Me(e, n) {
|
|
642
642
|
return typeof e == "function" ? e(n) : e;
|
|
643
643
|
}
|
|
644
644
|
function pe(e) {
|
|
645
645
|
return e.split("-")[0];
|
|
646
646
|
}
|
|
647
|
-
function
|
|
647
|
+
function je(e) {
|
|
648
648
|
return e.split("-")[1];
|
|
649
649
|
}
|
|
650
|
-
function
|
|
650
|
+
function qt(e) {
|
|
651
651
|
return e === "x" ? "y" : "x";
|
|
652
652
|
}
|
|
653
|
-
function
|
|
653
|
+
function Yt(e) {
|
|
654
654
|
return e === "y" ? "height" : "width";
|
|
655
655
|
}
|
|
656
|
-
const
|
|
656
|
+
const ko = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
657
657
|
function fe(e) {
|
|
658
|
-
return
|
|
658
|
+
return ko.has(pe(e)) ? "y" : "x";
|
|
659
659
|
}
|
|
660
|
-
function
|
|
661
|
-
return
|
|
660
|
+
function Jt(e) {
|
|
661
|
+
return qt(fe(e));
|
|
662
662
|
}
|
|
663
|
-
function
|
|
663
|
+
function Vo(e, n, t) {
|
|
664
664
|
t === void 0 && (t = !1);
|
|
665
|
-
const o =
|
|
666
|
-
let
|
|
667
|
-
return n.reference[
|
|
665
|
+
const o = je(e), l = Jt(e), a = Yt(l);
|
|
666
|
+
let i = l === "x" ? o === (t ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
667
|
+
return n.reference[a] > n.floating[a] && (i = Ne(i)), [i, Ne(i)];
|
|
668
668
|
}
|
|
669
|
-
function
|
|
670
|
-
const n =
|
|
669
|
+
function Eo(e) {
|
|
670
|
+
const n = Ne(e);
|
|
671
671
|
return [it(e), n, it(n)];
|
|
672
672
|
}
|
|
673
673
|
function it(e) {
|
|
674
|
-
return e.replace(/start|end/g, (n) =>
|
|
674
|
+
return e.replace(/start|end/g, (n) => xo[n]);
|
|
675
675
|
}
|
|
676
|
-
const Rt = ["left", "right"],
|
|
677
|
-
function
|
|
676
|
+
const Rt = ["left", "right"], Tt = ["right", "left"], Co = ["top", "bottom"], Lo = ["bottom", "top"];
|
|
677
|
+
function $o(e, n, t) {
|
|
678
678
|
switch (e) {
|
|
679
679
|
case "top":
|
|
680
680
|
case "bottom":
|
|
681
|
-
return t ? n ?
|
|
681
|
+
return t ? n ? Tt : Rt : n ? Rt : Tt;
|
|
682
682
|
case "left":
|
|
683
683
|
case "right":
|
|
684
|
-
return n ?
|
|
684
|
+
return n ? Co : Lo;
|
|
685
685
|
default:
|
|
686
686
|
return [];
|
|
687
687
|
}
|
|
688
688
|
}
|
|
689
|
-
function
|
|
690
|
-
const l =
|
|
691
|
-
let
|
|
692
|
-
return l && (
|
|
689
|
+
function So(e, n, t, o) {
|
|
690
|
+
const l = je(e);
|
|
691
|
+
let a = $o(pe(e), t === "start", o);
|
|
692
|
+
return l && (a = a.map((i) => i + "-" + l), n && (a = a.concat(a.map(it)))), a;
|
|
693
693
|
}
|
|
694
|
-
function
|
|
695
|
-
return e.replace(/left|right|bottom|top/g, (n) =>
|
|
694
|
+
function Ne(e) {
|
|
695
|
+
return e.replace(/left|right|bottom|top/g, (n) => _o[n]);
|
|
696
696
|
}
|
|
697
|
-
function
|
|
697
|
+
function Ro(e) {
|
|
698
698
|
return {
|
|
699
699
|
top: 0,
|
|
700
700
|
right: 0,
|
|
@@ -703,8 +703,8 @@ function Lo(e) {
|
|
|
703
703
|
...e
|
|
704
704
|
};
|
|
705
705
|
}
|
|
706
|
-
function
|
|
707
|
-
return typeof e != "number" ?
|
|
706
|
+
function To(e) {
|
|
707
|
+
return typeof e != "number" ? Ro(e) : {
|
|
708
708
|
top: e,
|
|
709
709
|
right: e,
|
|
710
710
|
bottom: e,
|
|
@@ -729,12 +729,12 @@ function Ke(e) {
|
|
|
729
729
|
y: t
|
|
730
730
|
};
|
|
731
731
|
}
|
|
732
|
-
function
|
|
732
|
+
function At(e, n, t) {
|
|
733
733
|
let {
|
|
734
734
|
reference: o,
|
|
735
735
|
floating: l
|
|
736
736
|
} = e;
|
|
737
|
-
const
|
|
737
|
+
const a = fe(n), i = Jt(n), r = Yt(i), c = pe(n), s = a === "y", u = o.x + o.width / 2 - l.width / 2, d = o.y + o.height / 2 - l.height / 2, v = o[r] / 2 - l[r] / 2;
|
|
738
738
|
let m;
|
|
739
739
|
switch (c) {
|
|
740
740
|
case "top":
|
|
@@ -767,31 +767,31 @@ function Tt(e, n, t) {
|
|
|
767
767
|
y: o.y
|
|
768
768
|
};
|
|
769
769
|
}
|
|
770
|
-
switch (
|
|
770
|
+
switch (je(n)) {
|
|
771
771
|
case "start":
|
|
772
|
-
m[
|
|
772
|
+
m[i] -= v * (t && s ? -1 : 1);
|
|
773
773
|
break;
|
|
774
774
|
case "end":
|
|
775
|
-
m[
|
|
775
|
+
m[i] += v * (t && s ? -1 : 1);
|
|
776
776
|
break;
|
|
777
777
|
}
|
|
778
778
|
return m;
|
|
779
779
|
}
|
|
780
|
-
const
|
|
780
|
+
const Ao = async (e, n, t) => {
|
|
781
781
|
const {
|
|
782
782
|
placement: o = "bottom",
|
|
783
783
|
strategy: l = "absolute",
|
|
784
|
-
middleware:
|
|
785
|
-
platform:
|
|
786
|
-
} = t, r =
|
|
787
|
-
let s = await
|
|
784
|
+
middleware: a = [],
|
|
785
|
+
platform: i
|
|
786
|
+
} = t, r = a.filter(Boolean), c = await (i.isRTL == null ? void 0 : i.isRTL(n));
|
|
787
|
+
let s = await i.getElementRects({
|
|
788
788
|
reference: e,
|
|
789
789
|
floating: n,
|
|
790
790
|
strategy: l
|
|
791
791
|
}), {
|
|
792
792
|
x: u,
|
|
793
793
|
y: d
|
|
794
|
-
} =
|
|
794
|
+
} = At(s, o, c), v = o, m = {}, p = 0;
|
|
795
795
|
for (let _ = 0; _ < r.length; _++) {
|
|
796
796
|
const {
|
|
797
797
|
name: h,
|
|
@@ -805,11 +805,11 @@ const Ro = async (e, n, t) => {
|
|
|
805
805
|
x: u,
|
|
806
806
|
y: d,
|
|
807
807
|
initialPlacement: o,
|
|
808
|
-
placement:
|
|
808
|
+
placement: v,
|
|
809
809
|
strategy: l,
|
|
810
810
|
middlewareData: m,
|
|
811
811
|
rects: s,
|
|
812
|
-
platform:
|
|
812
|
+
platform: i,
|
|
813
813
|
elements: {
|
|
814
814
|
reference: e,
|
|
815
815
|
floating: n
|
|
@@ -821,19 +821,19 @@ const Ro = async (e, n, t) => {
|
|
|
821
821
|
...m[h],
|
|
822
822
|
...$
|
|
823
823
|
}
|
|
824
|
-
}, P && p <= 50 && (p++, typeof P == "object" && (P.placement && (
|
|
824
|
+
}, P && p <= 50 && (p++, typeof P == "object" && (P.placement && (v = P.placement), P.rects && (s = P.rects === !0 ? await i.getElementRects({
|
|
825
825
|
reference: e,
|
|
826
826
|
floating: n,
|
|
827
827
|
strategy: l
|
|
828
828
|
}) : P.rects), {
|
|
829
829
|
x: u,
|
|
830
830
|
y: d
|
|
831
|
-
} =
|
|
831
|
+
} = At(s, v, c)), _ = -1);
|
|
832
832
|
}
|
|
833
833
|
return {
|
|
834
834
|
x: u,
|
|
835
835
|
y: d,
|
|
836
|
-
placement:
|
|
836
|
+
placement: v,
|
|
837
837
|
strategy: l,
|
|
838
838
|
middlewareData: m
|
|
839
839
|
};
|
|
@@ -844,33 +844,33 @@ async function ft(e, n) {
|
|
|
844
844
|
const {
|
|
845
845
|
x: o,
|
|
846
846
|
y: l,
|
|
847
|
-
platform:
|
|
848
|
-
rects:
|
|
847
|
+
platform: a,
|
|
848
|
+
rects: i,
|
|
849
849
|
elements: r,
|
|
850
850
|
strategy: c
|
|
851
851
|
} = e, {
|
|
852
852
|
boundary: s = "clippingAncestors",
|
|
853
853
|
rootBoundary: u = "viewport",
|
|
854
854
|
elementContext: d = "floating",
|
|
855
|
-
altBoundary:
|
|
855
|
+
altBoundary: v = !1,
|
|
856
856
|
padding: m = 0
|
|
857
|
-
} =
|
|
858
|
-
element: (t = await (
|
|
857
|
+
} = Me(n, e), p = To(m), h = r[v ? d === "floating" ? "reference" : "floating" : d], y = Ke(await a.getClippingRect({
|
|
858
|
+
element: (t = await (a.isElement == null ? void 0 : a.isElement(h))) == null || t ? h : h.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(r.floating)),
|
|
859
859
|
boundary: s,
|
|
860
860
|
rootBoundary: u,
|
|
861
861
|
strategy: c
|
|
862
862
|
})), w = d === "floating" ? {
|
|
863
863
|
x: o,
|
|
864
864
|
y: l,
|
|
865
|
-
width:
|
|
866
|
-
height:
|
|
867
|
-
} :
|
|
865
|
+
width: i.floating.width,
|
|
866
|
+
height: i.floating.height
|
|
867
|
+
} : i.reference, b = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(r.floating)), $ = await (a.isElement == null ? void 0 : a.isElement(b)) ? await (a.getScale == null ? void 0 : a.getScale(b)) || {
|
|
868
868
|
x: 1,
|
|
869
869
|
y: 1
|
|
870
870
|
} : {
|
|
871
871
|
x: 1,
|
|
872
872
|
y: 1
|
|
873
|
-
}, P = Ke(
|
|
873
|
+
}, P = Ke(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
874
874
|
elements: r,
|
|
875
875
|
rect: w,
|
|
876
876
|
offsetParent: b,
|
|
@@ -883,7 +883,7 @@ async function ft(e, n) {
|
|
|
883
883
|
right: (P.right - y.right + p.right) / $.x
|
|
884
884
|
};
|
|
885
885
|
}
|
|
886
|
-
const
|
|
886
|
+
const Oo = function(e) {
|
|
887
887
|
return e === void 0 && (e = {}), {
|
|
888
888
|
name: "flip",
|
|
889
889
|
options: e,
|
|
@@ -891,88 +891,88 @@ const So = function(e) {
|
|
|
891
891
|
var t, o;
|
|
892
892
|
const {
|
|
893
893
|
placement: l,
|
|
894
|
-
middlewareData:
|
|
895
|
-
rects:
|
|
894
|
+
middlewareData: a,
|
|
895
|
+
rects: i,
|
|
896
896
|
initialPlacement: r,
|
|
897
897
|
platform: c,
|
|
898
898
|
elements: s
|
|
899
899
|
} = n, {
|
|
900
900
|
mainAxis: u = !0,
|
|
901
901
|
crossAxis: d = !0,
|
|
902
|
-
fallbackPlacements:
|
|
902
|
+
fallbackPlacements: v,
|
|
903
903
|
fallbackStrategy: m = "bestFit",
|
|
904
904
|
fallbackAxisSideDirection: p = "none",
|
|
905
905
|
flipAlignment: _ = !0,
|
|
906
906
|
...h
|
|
907
|
-
} =
|
|
908
|
-
if ((t =
|
|
907
|
+
} = Me(e, n);
|
|
908
|
+
if ((t = a.arrow) != null && t.alignmentOffset)
|
|
909
909
|
return {};
|
|
910
|
-
const y = pe(l), w = fe(r), b = pe(r) === r, $ = await (c.isRTL == null ? void 0 : c.isRTL(s.floating)), P =
|
|
911
|
-
!
|
|
912
|
-
const k = [r, ...P], V = await ft(n, h),
|
|
913
|
-
let H = ((o =
|
|
914
|
-
if (u &&
|
|
915
|
-
const de =
|
|
916
|
-
|
|
910
|
+
const y = pe(l), w = fe(r), b = pe(r) === r, $ = await (c.isRTL == null ? void 0 : c.isRTL(s.floating)), P = v || (b || !_ ? [Ne(r)] : Eo(r)), I = p !== "none";
|
|
911
|
+
!v && I && P.push(...So(r, _, p, $));
|
|
912
|
+
const k = [r, ...P], V = await ft(n, h), A = [];
|
|
913
|
+
let H = ((o = a.flip) == null ? void 0 : o.overflows) || [];
|
|
914
|
+
if (u && A.push(V[y]), d) {
|
|
915
|
+
const de = Vo(l, i, $);
|
|
916
|
+
A.push(V[de[0]], V[de[1]]);
|
|
917
917
|
}
|
|
918
918
|
if (H = [...H, {
|
|
919
919
|
placement: l,
|
|
920
|
-
overflows:
|
|
921
|
-
}], !
|
|
920
|
+
overflows: A
|
|
921
|
+
}], !A.every((de) => de <= 0)) {
|
|
922
922
|
var U, ce;
|
|
923
|
-
const de = (((U =
|
|
924
|
-
if (
|
|
923
|
+
const de = (((U = a.flip) == null ? void 0 : U.index) || 0) + 1, ke = k[de];
|
|
924
|
+
if (ke && (!(d === "alignment" ? w !== fe(ke) : !1) || // We leave the current main axis only if every placement on that axis
|
|
925
925
|
// overflows the main axis.
|
|
926
|
-
H.every((
|
|
926
|
+
H.every((Y) => fe(Y.placement) === w ? Y.overflows[0] > 0 : !0)))
|
|
927
927
|
return {
|
|
928
928
|
data: {
|
|
929
929
|
index: de,
|
|
930
930
|
overflows: H
|
|
931
931
|
},
|
|
932
932
|
reset: {
|
|
933
|
-
placement:
|
|
933
|
+
placement: ke
|
|
934
934
|
}
|
|
935
935
|
};
|
|
936
|
-
let
|
|
937
|
-
if (!
|
|
936
|
+
let te = (ce = H.filter((ae) => ae.overflows[0] <= 0).sort((ae, Y) => ae.overflows[1] - Y.overflows[1])[0]) == null ? void 0 : ce.placement;
|
|
937
|
+
if (!te)
|
|
938
938
|
switch (m) {
|
|
939
939
|
case "bestFit": {
|
|
940
940
|
var ue;
|
|
941
|
-
const ae = (ue = H.filter((
|
|
942
|
-
if (
|
|
943
|
-
const
|
|
944
|
-
return
|
|
941
|
+
const ae = (ue = H.filter((Y) => {
|
|
942
|
+
if (I) {
|
|
943
|
+
const ne = fe(Y.placement);
|
|
944
|
+
return ne === w || // Create a bias to the `y` side axis due to horizontal
|
|
945
945
|
// reading directions favoring greater width.
|
|
946
|
-
|
|
946
|
+
ne === "y";
|
|
947
947
|
}
|
|
948
948
|
return !0;
|
|
949
|
-
}).map((
|
|
950
|
-
ae && (
|
|
949
|
+
}).map((Y) => [Y.placement, Y.overflows.filter((ne) => ne > 0).reduce((ne, Ie) => ne + Ie, 0)]).sort((Y, ne) => Y[1] - ne[1])[0]) == null ? void 0 : ue[0];
|
|
950
|
+
ae && (te = ae);
|
|
951
951
|
break;
|
|
952
952
|
}
|
|
953
953
|
case "initialPlacement":
|
|
954
|
-
|
|
954
|
+
te = r;
|
|
955
955
|
break;
|
|
956
956
|
}
|
|
957
|
-
if (l !==
|
|
957
|
+
if (l !== te)
|
|
958
958
|
return {
|
|
959
959
|
reset: {
|
|
960
|
-
placement:
|
|
960
|
+
placement: te
|
|
961
961
|
}
|
|
962
962
|
};
|
|
963
963
|
}
|
|
964
964
|
return {};
|
|
965
965
|
}
|
|
966
966
|
};
|
|
967
|
-
},
|
|
968
|
-
async function
|
|
967
|
+
}, Bo = /* @__PURE__ */ new Set(["left", "top"]);
|
|
968
|
+
async function Do(e, n) {
|
|
969
969
|
const {
|
|
970
970
|
placement: t,
|
|
971
971
|
platform: o,
|
|
972
972
|
elements: l
|
|
973
|
-
} = e,
|
|
973
|
+
} = e, a = await (o.isRTL == null ? void 0 : o.isRTL(l.floating)), i = pe(t), r = je(t), c = fe(t) === "y", s = Bo.has(i) ? -1 : 1, u = a && c ? -1 : 1, d = Me(n, e);
|
|
974
974
|
let {
|
|
975
|
-
mainAxis:
|
|
975
|
+
mainAxis: v,
|
|
976
976
|
crossAxis: m,
|
|
977
977
|
alignmentAxis: p
|
|
978
978
|
} = typeof d == "number" ? {
|
|
@@ -986,13 +986,13 @@ async function Ao(e, n) {
|
|
|
986
986
|
};
|
|
987
987
|
return r && typeof p == "number" && (m = r === "end" ? p * -1 : p), c ? {
|
|
988
988
|
x: m * u,
|
|
989
|
-
y:
|
|
989
|
+
y: v * s
|
|
990
990
|
} : {
|
|
991
|
-
x:
|
|
991
|
+
x: v * s,
|
|
992
992
|
y: m * u
|
|
993
993
|
};
|
|
994
994
|
}
|
|
995
|
-
const
|
|
995
|
+
const Po = function(e) {
|
|
996
996
|
return e === void 0 && (e = 0), {
|
|
997
997
|
name: "offset",
|
|
998
998
|
options: e,
|
|
@@ -1000,21 +1000,21 @@ const Oo = function(e) {
|
|
|
1000
1000
|
var t, o;
|
|
1001
1001
|
const {
|
|
1002
1002
|
x: l,
|
|
1003
|
-
y:
|
|
1004
|
-
placement:
|
|
1003
|
+
y: a,
|
|
1004
|
+
placement: i,
|
|
1005
1005
|
middlewareData: r
|
|
1006
|
-
} = n, c = await
|
|
1007
|
-
return
|
|
1006
|
+
} = n, c = await Do(n, e);
|
|
1007
|
+
return i === ((t = r.offset) == null ? void 0 : t.placement) && (o = r.arrow) != null && o.alignmentOffset ? {} : {
|
|
1008
1008
|
x: l + c.x,
|
|
1009
|
-
y:
|
|
1009
|
+
y: a + c.y,
|
|
1010
1010
|
data: {
|
|
1011
1011
|
...c,
|
|
1012
|
-
placement:
|
|
1012
|
+
placement: i
|
|
1013
1013
|
}
|
|
1014
1014
|
};
|
|
1015
1015
|
}
|
|
1016
1016
|
};
|
|
1017
|
-
},
|
|
1017
|
+
}, Mo = function(e) {
|
|
1018
1018
|
return e === void 0 && (e = {}), {
|
|
1019
1019
|
name: "shift",
|
|
1020
1020
|
options: e,
|
|
@@ -1024,8 +1024,8 @@ const Oo = function(e) {
|
|
|
1024
1024
|
y: o,
|
|
1025
1025
|
placement: l
|
|
1026
1026
|
} = n, {
|
|
1027
|
-
mainAxis:
|
|
1028
|
-
crossAxis:
|
|
1027
|
+
mainAxis: a = !0,
|
|
1028
|
+
crossAxis: i = !1,
|
|
1029
1029
|
limiter: r = {
|
|
1030
1030
|
fn: (h) => {
|
|
1031
1031
|
let {
|
|
@@ -1039,22 +1039,22 @@ const Oo = function(e) {
|
|
|
1039
1039
|
}
|
|
1040
1040
|
},
|
|
1041
1041
|
...c
|
|
1042
|
-
} =
|
|
1042
|
+
} = Me(e, n), s = {
|
|
1043
1043
|
x: t,
|
|
1044
1044
|
y: o
|
|
1045
|
-
}, u = await ft(n, c), d = fe(pe(l)),
|
|
1046
|
-
let m = s[
|
|
1047
|
-
if (i) {
|
|
1048
|
-
const h = f === "y" ? "top" : "left", y = f === "y" ? "bottom" : "right", w = m + u[h], b = m - u[y];
|
|
1049
|
-
m = $t(w, m, b);
|
|
1050
|
-
}
|
|
1045
|
+
}, u = await ft(n, c), d = fe(pe(l)), v = qt(d);
|
|
1046
|
+
let m = s[v], p = s[d];
|
|
1051
1047
|
if (a) {
|
|
1048
|
+
const h = v === "y" ? "top" : "left", y = v === "y" ? "bottom" : "right", w = m + u[h], b = m - u[y];
|
|
1049
|
+
m = St(w, m, b);
|
|
1050
|
+
}
|
|
1051
|
+
if (i) {
|
|
1052
1052
|
const h = d === "y" ? "top" : "left", y = d === "y" ? "bottom" : "right", w = p + u[h], b = p - u[y];
|
|
1053
|
-
p =
|
|
1053
|
+
p = St(w, p, b);
|
|
1054
1054
|
}
|
|
1055
1055
|
const _ = r.fn({
|
|
1056
1056
|
...n,
|
|
1057
|
-
[
|
|
1057
|
+
[v]: m,
|
|
1058
1058
|
[d]: p
|
|
1059
1059
|
});
|
|
1060
1060
|
return {
|
|
@@ -1063,14 +1063,14 @@ const Oo = function(e) {
|
|
|
1063
1063
|
x: _.x - t,
|
|
1064
1064
|
y: _.y - o,
|
|
1065
1065
|
enabled: {
|
|
1066
|
-
[
|
|
1067
|
-
[d]:
|
|
1066
|
+
[v]: a,
|
|
1067
|
+
[d]: i
|
|
1068
1068
|
}
|
|
1069
1069
|
}
|
|
1070
1070
|
};
|
|
1071
1071
|
}
|
|
1072
1072
|
};
|
|
1073
|
-
},
|
|
1073
|
+
}, jo = function(e) {
|
|
1074
1074
|
return e === void 0 && (e = {}), {
|
|
1075
1075
|
name: "size",
|
|
1076
1076
|
options: e,
|
|
@@ -1078,22 +1078,22 @@ const Oo = function(e) {
|
|
|
1078
1078
|
var t, o;
|
|
1079
1079
|
const {
|
|
1080
1080
|
placement: l,
|
|
1081
|
-
rects:
|
|
1082
|
-
platform:
|
|
1081
|
+
rects: a,
|
|
1082
|
+
platform: i,
|
|
1083
1083
|
elements: r
|
|
1084
1084
|
} = n, {
|
|
1085
1085
|
apply: c = () => {
|
|
1086
1086
|
},
|
|
1087
1087
|
...s
|
|
1088
|
-
} =
|
|
1088
|
+
} = Me(e, n), u = await ft(n, s), d = pe(l), v = je(l), m = fe(l) === "y", {
|
|
1089
1089
|
width: p,
|
|
1090
1090
|
height: _
|
|
1091
|
-
} =
|
|
1091
|
+
} = a.floating;
|
|
1092
1092
|
let h, y;
|
|
1093
|
-
d === "top" || d === "bottom" ? (h = d, y =
|
|
1094
|
-
const w = _ - u.top - u.bottom, b = p - u.left - u.right, $ =
|
|
1093
|
+
d === "top" || d === "bottom" ? (h = d, y = v === (await (i.isRTL == null ? void 0 : i.isRTL(r.floating)) ? "start" : "end") ? "left" : "right") : (y = d, h = v === "end" ? "top" : "bottom");
|
|
1094
|
+
const w = _ - u.top - u.bottom, b = p - u.left - u.right, $ = $e(_ - u[h], w), P = $e(p - u[y], b), I = !n.middlewareData.shift;
|
|
1095
1095
|
let k = $, V = P;
|
|
1096
|
-
if ((t = n.middlewareData.shift) != null && t.enabled.x && (V = b), (o = n.middlewareData.shift) != null && o.enabled.y && (k = w),
|
|
1096
|
+
if ((t = n.middlewareData.shift) != null && t.enabled.x && (V = b), (o = n.middlewareData.shift) != null && o.enabled.y && (k = w), I && !v) {
|
|
1097
1097
|
const H = J(u.left, 0), U = J(u.right, 0), ce = J(u.top, 0), ue = J(u.bottom, 0);
|
|
1098
1098
|
m ? V = p - 2 * (H !== 0 || U !== 0 ? H + U : J(u.left, u.right)) : k = _ - 2 * (ce !== 0 || ue !== 0 ? ce + ue : J(u.top, u.bottom));
|
|
1099
1099
|
}
|
|
@@ -1102,8 +1102,8 @@ const Oo = function(e) {
|
|
|
1102
1102
|
availableWidth: V,
|
|
1103
1103
|
availableHeight: k
|
|
1104
1104
|
});
|
|
1105
|
-
const
|
|
1106
|
-
return p !==
|
|
1105
|
+
const A = await i.getDimensions(r.floating);
|
|
1106
|
+
return p !== A.width || _ !== A.height ? {
|
|
1107
1107
|
reset: {
|
|
1108
1108
|
rects: !0
|
|
1109
1109
|
}
|
|
@@ -1111,10 +1111,10 @@ const Oo = function(e) {
|
|
|
1111
1111
|
}
|
|
1112
1112
|
};
|
|
1113
1113
|
};
|
|
1114
|
-
function
|
|
1114
|
+
function Ge() {
|
|
1115
1115
|
return typeof window < "u";
|
|
1116
1116
|
}
|
|
1117
|
-
function
|
|
1117
|
+
function xe(e) {
|
|
1118
1118
|
return vt(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
1119
1119
|
}
|
|
1120
1120
|
function Q(e) {
|
|
@@ -1126,34 +1126,34 @@ function re(e) {
|
|
|
1126
1126
|
return (n = (vt(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : n.documentElement;
|
|
1127
1127
|
}
|
|
1128
1128
|
function vt(e) {
|
|
1129
|
-
return
|
|
1129
|
+
return Ge() ? e instanceof Node || e instanceof Q(e).Node : !1;
|
|
1130
1130
|
}
|
|
1131
1131
|
function oe(e) {
|
|
1132
|
-
return
|
|
1132
|
+
return Ge() ? e instanceof Element || e instanceof Q(e).Element : !1;
|
|
1133
1133
|
}
|
|
1134
1134
|
function se(e) {
|
|
1135
|
-
return
|
|
1135
|
+
return Ge() ? e instanceof HTMLElement || e instanceof Q(e).HTMLElement : !1;
|
|
1136
1136
|
}
|
|
1137
|
-
function
|
|
1138
|
-
return !
|
|
1137
|
+
function Ot(e) {
|
|
1138
|
+
return !Ge() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Q(e).ShadowRoot;
|
|
1139
1139
|
}
|
|
1140
|
-
const
|
|
1141
|
-
function
|
|
1140
|
+
const Fo = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
1141
|
+
function Fe(e) {
|
|
1142
1142
|
const {
|
|
1143
1143
|
overflow: n,
|
|
1144
1144
|
overflowX: t,
|
|
1145
1145
|
overflowY: o,
|
|
1146
1146
|
display: l
|
|
1147
1147
|
} = le(e);
|
|
1148
|
-
return /auto|scroll|overlay|hidden|clip/.test(n + o + t) && !
|
|
1148
|
+
return /auto|scroll|overlay|hidden|clip/.test(n + o + t) && !Fo.has(l);
|
|
1149
1149
|
}
|
|
1150
|
-
const
|
|
1151
|
-
function
|
|
1152
|
-
return
|
|
1150
|
+
const zo = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
1151
|
+
function Io(e) {
|
|
1152
|
+
return zo.has(xe(e));
|
|
1153
1153
|
}
|
|
1154
|
-
const
|
|
1155
|
-
function
|
|
1156
|
-
return
|
|
1154
|
+
const Ho = [":popover-open", ":modal"];
|
|
1155
|
+
function qe(e) {
|
|
1156
|
+
return Ho.some((n) => {
|
|
1157
1157
|
try {
|
|
1158
1158
|
return e.matches(n);
|
|
1159
1159
|
} catch {
|
|
@@ -1161,17 +1161,17 @@ function Ge(e) {
|
|
|
1161
1161
|
}
|
|
1162
1162
|
});
|
|
1163
1163
|
}
|
|
1164
|
-
const
|
|
1164
|
+
const Uo = ["transform", "translate", "scale", "rotate", "perspective"], Wo = ["transform", "translate", "scale", "rotate", "perspective", "filter"], No = ["paint", "layout", "strict", "content"];
|
|
1165
1165
|
function mt(e) {
|
|
1166
1166
|
const n = pt(), t = oe(e) ? le(e) : e;
|
|
1167
|
-
return
|
|
1167
|
+
return Uo.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) || Wo.some((o) => (t.willChange || "").includes(o)) || No.some((o) => (t.contain || "").includes(o));
|
|
1168
1168
|
}
|
|
1169
|
-
function
|
|
1169
|
+
function Ko(e) {
|
|
1170
1170
|
let n = he(e);
|
|
1171
|
-
for (; se(n) &&
|
|
1171
|
+
for (; se(n) && !Se(n); ) {
|
|
1172
1172
|
if (mt(n))
|
|
1173
1173
|
return n;
|
|
1174
|
-
if (
|
|
1174
|
+
if (qe(n))
|
|
1175
1175
|
return null;
|
|
1176
1176
|
n = he(n);
|
|
1177
1177
|
}
|
|
@@ -1180,9 +1180,9 @@ function Uo(e) {
|
|
|
1180
1180
|
function pt() {
|
|
1181
1181
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
1182
1182
|
}
|
|
1183
|
-
const
|
|
1184
|
-
function
|
|
1185
|
-
return
|
|
1183
|
+
const Xo = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
1184
|
+
function Se(e) {
|
|
1185
|
+
return Xo.has(xe(e));
|
|
1186
1186
|
}
|
|
1187
1187
|
function le(e) {
|
|
1188
1188
|
return Q(e).getComputedStyle(e);
|
|
@@ -1197,39 +1197,39 @@ function Ye(e) {
|
|
|
1197
1197
|
};
|
|
1198
1198
|
}
|
|
1199
1199
|
function he(e) {
|
|
1200
|
-
if (
|
|
1200
|
+
if (xe(e) === "html")
|
|
1201
1201
|
return e;
|
|
1202
1202
|
const n = (
|
|
1203
1203
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
1204
1204
|
e.assignedSlot || // DOM Element detected.
|
|
1205
1205
|
e.parentNode || // ShadowRoot detected.
|
|
1206
|
-
|
|
1206
|
+
Ot(e) && e.host || // Fallback.
|
|
1207
1207
|
re(e)
|
|
1208
1208
|
);
|
|
1209
|
-
return
|
|
1209
|
+
return Ot(n) ? n.host : n;
|
|
1210
1210
|
}
|
|
1211
|
-
function
|
|
1211
|
+
function Qt(e) {
|
|
1212
1212
|
const n = he(e);
|
|
1213
|
-
return
|
|
1213
|
+
return Se(n) ? e.ownerDocument ? e.ownerDocument.body : e.body : se(n) && Fe(n) ? n : Qt(n);
|
|
1214
1214
|
}
|
|
1215
|
-
function
|
|
1215
|
+
function Be(e, n, t) {
|
|
1216
1216
|
var o;
|
|
1217
1217
|
n === void 0 && (n = []), t === void 0 && (t = !0);
|
|
1218
|
-
const l =
|
|
1219
|
-
if (
|
|
1220
|
-
const r = st(
|
|
1221
|
-
return n.concat(
|
|
1218
|
+
const l = Qt(e), a = l === ((o = e.ownerDocument) == null ? void 0 : o.body), i = Q(l);
|
|
1219
|
+
if (a) {
|
|
1220
|
+
const r = st(i);
|
|
1221
|
+
return n.concat(i, i.visualViewport || [], Fe(l) ? l : [], r && t ? Be(r) : []);
|
|
1222
1222
|
}
|
|
1223
|
-
return n.concat(l,
|
|
1223
|
+
return n.concat(l, Be(l, [], t));
|
|
1224
1224
|
}
|
|
1225
1225
|
function st(e) {
|
|
1226
1226
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
1227
1227
|
}
|
|
1228
|
-
function
|
|
1228
|
+
function Zt(e) {
|
|
1229
1229
|
const n = le(e);
|
|
1230
1230
|
let t = parseFloat(n.width) || 0, o = parseFloat(n.height) || 0;
|
|
1231
|
-
const l = se(e),
|
|
1232
|
-
return r && (t =
|
|
1231
|
+
const l = se(e), a = l ? e.offsetWidth : t, i = l ? e.offsetHeight : o, r = We(t) !== a || We(o) !== i;
|
|
1232
|
+
return r && (t = a, o = i), {
|
|
1233
1233
|
width: t,
|
|
1234
1234
|
height: o,
|
|
1235
1235
|
$: r
|
|
@@ -1238,44 +1238,44 @@ function Jt(e) {
|
|
|
1238
1238
|
function ht(e) {
|
|
1239
1239
|
return oe(e) ? e : e.contextElement;
|
|
1240
1240
|
}
|
|
1241
|
-
function
|
|
1241
|
+
function Ce(e) {
|
|
1242
1242
|
const n = ht(e);
|
|
1243
1243
|
if (!se(n))
|
|
1244
1244
|
return ie(1);
|
|
1245
1245
|
const t = n.getBoundingClientRect(), {
|
|
1246
1246
|
width: o,
|
|
1247
1247
|
height: l,
|
|
1248
|
-
$:
|
|
1249
|
-
} =
|
|
1250
|
-
let
|
|
1251
|
-
return (!
|
|
1252
|
-
x:
|
|
1248
|
+
$: a
|
|
1249
|
+
} = Zt(n);
|
|
1250
|
+
let i = (a ? We(t.width) : t.width) / o, r = (a ? We(t.height) : t.height) / l;
|
|
1251
|
+
return (!i || !Number.isFinite(i)) && (i = 1), (!r || !Number.isFinite(r)) && (r = 1), {
|
|
1252
|
+
x: i,
|
|
1253
1253
|
y: r
|
|
1254
1254
|
};
|
|
1255
1255
|
}
|
|
1256
|
-
const
|
|
1257
|
-
function
|
|
1256
|
+
const Go = /* @__PURE__ */ ie(0);
|
|
1257
|
+
function en(e) {
|
|
1258
1258
|
const n = Q(e);
|
|
1259
|
-
return !pt() || !n.visualViewport ?
|
|
1259
|
+
return !pt() || !n.visualViewport ? Go : {
|
|
1260
1260
|
x: n.visualViewport.offsetLeft,
|
|
1261
1261
|
y: n.visualViewport.offsetTop
|
|
1262
1262
|
};
|
|
1263
1263
|
}
|
|
1264
|
-
function
|
|
1264
|
+
function qo(e, n, t) {
|
|
1265
1265
|
return n === void 0 && (n = !1), !t || n && t !== Q(e) ? !1 : n;
|
|
1266
1266
|
}
|
|
1267
|
-
function
|
|
1267
|
+
function _e(e, n, t, o) {
|
|
1268
1268
|
n === void 0 && (n = !1), t === void 0 && (t = !1);
|
|
1269
|
-
const l = e.getBoundingClientRect(),
|
|
1270
|
-
let
|
|
1271
|
-
n && (o ? oe(o) && (
|
|
1272
|
-
const r =
|
|
1273
|
-
let c = (l.left + r.x) /
|
|
1274
|
-
if (
|
|
1275
|
-
const
|
|
1276
|
-
let p =
|
|
1269
|
+
const l = e.getBoundingClientRect(), a = ht(e);
|
|
1270
|
+
let i = ie(1);
|
|
1271
|
+
n && (o ? oe(o) && (i = Ce(o)) : i = Ce(e));
|
|
1272
|
+
const r = qo(a, t, o) ? en(a) : ie(0);
|
|
1273
|
+
let c = (l.left + r.x) / i.x, s = (l.top + r.y) / i.y, u = l.width / i.x, d = l.height / i.y;
|
|
1274
|
+
if (a) {
|
|
1275
|
+
const v = Q(a), m = o && oe(o) ? Q(o) : o;
|
|
1276
|
+
let p = v, _ = st(p);
|
|
1277
1277
|
for (; _ && o && m !== p; ) {
|
|
1278
|
-
const h =
|
|
1278
|
+
const h = Ce(_), y = _.getBoundingClientRect(), w = le(_), b = y.left + (_.clientLeft + parseFloat(w.paddingLeft)) * h.x, $ = y.top + (_.clientTop + parseFloat(w.paddingTop)) * h.y;
|
|
1279
1279
|
c *= h.x, s *= h.y, u *= h.x, d *= h.y, c += b, s += $, p = Q(_), _ = st(p);
|
|
1280
1280
|
}
|
|
1281
1281
|
}
|
|
@@ -1288,82 +1288,82 @@ function we(e, n, t, o) {
|
|
|
1288
1288
|
}
|
|
1289
1289
|
function Je(e, n) {
|
|
1290
1290
|
const t = Ye(e).scrollLeft;
|
|
1291
|
-
return n ? n.left + t :
|
|
1291
|
+
return n ? n.left + t : _e(re(e)).left + t;
|
|
1292
1292
|
}
|
|
1293
|
-
function
|
|
1293
|
+
function tn(e, n) {
|
|
1294
1294
|
const t = e.getBoundingClientRect(), o = t.left + n.scrollLeft - Je(e, t), l = t.top + n.scrollTop;
|
|
1295
1295
|
return {
|
|
1296
1296
|
x: o,
|
|
1297
1297
|
y: l
|
|
1298
1298
|
};
|
|
1299
1299
|
}
|
|
1300
|
-
function
|
|
1300
|
+
function Yo(e) {
|
|
1301
1301
|
let {
|
|
1302
1302
|
elements: n,
|
|
1303
1303
|
rect: t,
|
|
1304
1304
|
offsetParent: o,
|
|
1305
1305
|
strategy: l
|
|
1306
1306
|
} = e;
|
|
1307
|
-
const
|
|
1308
|
-
if (o ===
|
|
1307
|
+
const a = l === "fixed", i = re(o), r = n ? qe(n.floating) : !1;
|
|
1308
|
+
if (o === i || r && a)
|
|
1309
1309
|
return t;
|
|
1310
1310
|
let c = {
|
|
1311
1311
|
scrollLeft: 0,
|
|
1312
1312
|
scrollTop: 0
|
|
1313
1313
|
}, s = ie(1);
|
|
1314
1314
|
const u = ie(0), d = se(o);
|
|
1315
|
-
if ((d || !d && !
|
|
1316
|
-
const m =
|
|
1317
|
-
s =
|
|
1315
|
+
if ((d || !d && !a) && ((xe(o) !== "body" || Fe(i)) && (c = Ye(o)), se(o))) {
|
|
1316
|
+
const m = _e(o);
|
|
1317
|
+
s = Ce(o), u.x = m.x + o.clientLeft, u.y = m.y + o.clientTop;
|
|
1318
1318
|
}
|
|
1319
|
-
const
|
|
1319
|
+
const v = i && !d && !a ? tn(i, c) : ie(0);
|
|
1320
1320
|
return {
|
|
1321
1321
|
width: t.width * s.x,
|
|
1322
1322
|
height: t.height * s.y,
|
|
1323
|
-
x: t.x * s.x - c.scrollLeft * s.x + u.x +
|
|
1324
|
-
y: t.y * s.y - c.scrollTop * s.y + u.y +
|
|
1323
|
+
x: t.x * s.x - c.scrollLeft * s.x + u.x + v.x,
|
|
1324
|
+
y: t.y * s.y - c.scrollTop * s.y + u.y + v.y
|
|
1325
1325
|
};
|
|
1326
1326
|
}
|
|
1327
|
-
function
|
|
1327
|
+
function Jo(e) {
|
|
1328
1328
|
return Array.from(e.getClientRects());
|
|
1329
1329
|
}
|
|
1330
|
-
function
|
|
1331
|
-
const n = re(e), t = Ye(e), o = e.ownerDocument.body, l = J(n.scrollWidth, n.clientWidth, o.scrollWidth, o.clientWidth),
|
|
1332
|
-
let
|
|
1330
|
+
function Qo(e) {
|
|
1331
|
+
const n = re(e), t = Ye(e), o = e.ownerDocument.body, l = J(n.scrollWidth, n.clientWidth, o.scrollWidth, o.clientWidth), a = J(n.scrollHeight, n.clientHeight, o.scrollHeight, o.clientHeight);
|
|
1332
|
+
let i = -t.scrollLeft + Je(e);
|
|
1333
1333
|
const r = -t.scrollTop;
|
|
1334
|
-
return le(o).direction === "rtl" && (
|
|
1334
|
+
return le(o).direction === "rtl" && (i += J(n.clientWidth, o.clientWidth) - l), {
|
|
1335
1335
|
width: l,
|
|
1336
|
-
height:
|
|
1337
|
-
x:
|
|
1336
|
+
height: a,
|
|
1337
|
+
x: i,
|
|
1338
1338
|
y: r
|
|
1339
1339
|
};
|
|
1340
1340
|
}
|
|
1341
|
-
const
|
|
1342
|
-
function
|
|
1341
|
+
const Bt = 25;
|
|
1342
|
+
function Zo(e, n) {
|
|
1343
1343
|
const t = Q(e), o = re(e), l = t.visualViewport;
|
|
1344
|
-
let
|
|
1344
|
+
let a = o.clientWidth, i = o.clientHeight, r = 0, c = 0;
|
|
1345
1345
|
if (l) {
|
|
1346
|
-
|
|
1346
|
+
a = l.width, i = l.height;
|
|
1347
1347
|
const u = pt();
|
|
1348
1348
|
(!u || u && n === "fixed") && (r = l.offsetLeft, c = l.offsetTop);
|
|
1349
1349
|
}
|
|
1350
1350
|
const s = Je(o);
|
|
1351
1351
|
if (s <= 0) {
|
|
1352
|
-
const u = o.ownerDocument, d = u.body,
|
|
1353
|
-
p <=
|
|
1354
|
-
} else s <=
|
|
1352
|
+
const u = o.ownerDocument, d = u.body, v = getComputedStyle(d), m = u.compatMode === "CSS1Compat" && parseFloat(v.marginLeft) + parseFloat(v.marginRight) || 0, p = Math.abs(o.clientWidth - d.clientWidth - m);
|
|
1353
|
+
p <= Bt && (a -= p);
|
|
1354
|
+
} else s <= Bt && (a += s);
|
|
1355
1355
|
return {
|
|
1356
|
-
width:
|
|
1357
|
-
height:
|
|
1356
|
+
width: a,
|
|
1357
|
+
height: i,
|
|
1358
1358
|
x: r,
|
|
1359
1359
|
y: c
|
|
1360
1360
|
};
|
|
1361
1361
|
}
|
|
1362
|
-
const
|
|
1363
|
-
function
|
|
1364
|
-
const t =
|
|
1362
|
+
const el = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
1363
|
+
function tl(e, n) {
|
|
1364
|
+
const t = _e(e, !0, n === "fixed"), o = t.top + e.clientTop, l = t.left + e.clientLeft, a = se(e) ? Ce(e) : ie(1), i = e.clientWidth * a.x, r = e.clientHeight * a.y, c = l * a.x, s = o * a.y;
|
|
1365
1365
|
return {
|
|
1366
|
-
width:
|
|
1366
|
+
width: i,
|
|
1367
1367
|
height: r,
|
|
1368
1368
|
x: c,
|
|
1369
1369
|
y: s
|
|
@@ -1372,13 +1372,13 @@ function Qo(e, n) {
|
|
|
1372
1372
|
function Dt(e, n, t) {
|
|
1373
1373
|
let o;
|
|
1374
1374
|
if (n === "viewport")
|
|
1375
|
-
o =
|
|
1375
|
+
o = Zo(e, t);
|
|
1376
1376
|
else if (n === "document")
|
|
1377
|
-
o =
|
|
1377
|
+
o = Qo(re(e));
|
|
1378
1378
|
else if (oe(n))
|
|
1379
|
-
o =
|
|
1379
|
+
o = tl(n, t);
|
|
1380
1380
|
else {
|
|
1381
|
-
const l =
|
|
1381
|
+
const l = en(e);
|
|
1382
1382
|
o = {
|
|
1383
1383
|
x: n.x - l.x,
|
|
1384
1384
|
y: n.y - l.y,
|
|
@@ -1388,33 +1388,33 @@ function Dt(e, n, t) {
|
|
|
1388
1388
|
}
|
|
1389
1389
|
return Ke(o);
|
|
1390
1390
|
}
|
|
1391
|
-
function
|
|
1391
|
+
function nn(e, n) {
|
|
1392
1392
|
const t = he(e);
|
|
1393
|
-
return t === n || !oe(t) ||
|
|
1393
|
+
return t === n || !oe(t) || Se(t) ? !1 : le(t).position === "fixed" || nn(t, n);
|
|
1394
1394
|
}
|
|
1395
|
-
function
|
|
1395
|
+
function nl(e, n) {
|
|
1396
1396
|
const t = n.get(e);
|
|
1397
1397
|
if (t)
|
|
1398
1398
|
return t;
|
|
1399
|
-
let o =
|
|
1400
|
-
const
|
|
1401
|
-
let
|
|
1402
|
-
for (; oe(
|
|
1403
|
-
const r = le(
|
|
1404
|
-
!c && r.position === "fixed" && (l = null), (
|
|
1399
|
+
let o = Be(e, [], !1).filter((r) => oe(r) && xe(r) !== "body"), l = null;
|
|
1400
|
+
const a = le(e).position === "fixed";
|
|
1401
|
+
let i = a ? he(e) : e;
|
|
1402
|
+
for (; oe(i) && !Se(i); ) {
|
|
1403
|
+
const r = le(i), c = mt(i);
|
|
1404
|
+
!c && r.position === "fixed" && (l = null), (a ? !c && !l : !c && r.position === "static" && !!l && el.has(l.position) || Fe(i) && !c && nn(e, i)) ? o = o.filter((u) => u !== i) : l = r, i = he(i);
|
|
1405
1405
|
}
|
|
1406
1406
|
return n.set(e, o), o;
|
|
1407
1407
|
}
|
|
1408
|
-
function
|
|
1408
|
+
function ol(e) {
|
|
1409
1409
|
let {
|
|
1410
1410
|
element: n,
|
|
1411
1411
|
boundary: t,
|
|
1412
1412
|
rootBoundary: o,
|
|
1413
1413
|
strategy: l
|
|
1414
1414
|
} = e;
|
|
1415
|
-
const
|
|
1415
|
+
const i = [...t === "clippingAncestors" ? qe(n) ? [] : nl(n, this._c) : [].concat(t), o], r = i[0], c = i.reduce((s, u) => {
|
|
1416
1416
|
const d = Dt(n, u, l);
|
|
1417
|
-
return s.top = J(d.top, s.top), s.right =
|
|
1417
|
+
return s.top = J(d.top, s.top), s.right = $e(d.right, s.right), s.bottom = $e(d.bottom, s.bottom), s.left = J(d.left, s.left), s;
|
|
1418
1418
|
}, Dt(n, r, l));
|
|
1419
1419
|
return {
|
|
1420
1420
|
width: c.right - c.left,
|
|
@@ -1423,18 +1423,18 @@ function el(e) {
|
|
|
1423
1423
|
y: c.top
|
|
1424
1424
|
};
|
|
1425
1425
|
}
|
|
1426
|
-
function
|
|
1426
|
+
function ll(e) {
|
|
1427
1427
|
const {
|
|
1428
1428
|
width: n,
|
|
1429
1429
|
height: t
|
|
1430
|
-
} =
|
|
1430
|
+
} = Zt(e);
|
|
1431
1431
|
return {
|
|
1432
1432
|
width: n,
|
|
1433
1433
|
height: t
|
|
1434
1434
|
};
|
|
1435
1435
|
}
|
|
1436
|
-
function
|
|
1437
|
-
const o = se(n), l = re(n),
|
|
1436
|
+
function al(e, n, t) {
|
|
1437
|
+
const o = se(n), l = re(n), a = t === "fixed", i = _e(e, !0, a, n);
|
|
1438
1438
|
let r = {
|
|
1439
1439
|
scrollLeft: 0,
|
|
1440
1440
|
scrollTop: 0
|
|
@@ -1443,24 +1443,24 @@ function nl(e, n, t) {
|
|
|
1443
1443
|
function s() {
|
|
1444
1444
|
c.x = Je(l);
|
|
1445
1445
|
}
|
|
1446
|
-
if (o || !o && !
|
|
1447
|
-
if ((
|
|
1448
|
-
const m =
|
|
1446
|
+
if (o || !o && !a)
|
|
1447
|
+
if ((xe(n) !== "body" || Fe(l)) && (r = Ye(n)), o) {
|
|
1448
|
+
const m = _e(n, !0, a, n);
|
|
1449
1449
|
c.x = m.x + n.clientLeft, c.y = m.y + n.clientTop;
|
|
1450
1450
|
} else l && s();
|
|
1451
|
-
|
|
1452
|
-
const u = l && !o && !
|
|
1451
|
+
a && !o && l && s();
|
|
1452
|
+
const u = l && !o && !a ? tn(l, r) : ie(0), d = i.left + r.scrollLeft - c.x - u.x, v = i.top + r.scrollTop - c.y - u.y;
|
|
1453
1453
|
return {
|
|
1454
1454
|
x: d,
|
|
1455
|
-
y:
|
|
1456
|
-
width:
|
|
1457
|
-
height:
|
|
1455
|
+
y: v,
|
|
1456
|
+
width: i.width,
|
|
1457
|
+
height: i.height
|
|
1458
1458
|
};
|
|
1459
1459
|
}
|
|
1460
1460
|
function ot(e) {
|
|
1461
1461
|
return le(e).position === "static";
|
|
1462
1462
|
}
|
|
1463
|
-
function
|
|
1463
|
+
function Pt(e, n) {
|
|
1464
1464
|
if (!se(e) || le(e).position === "fixed")
|
|
1465
1465
|
return null;
|
|
1466
1466
|
if (n)
|
|
@@ -1468,28 +1468,28 @@ function Bt(e, n) {
|
|
|
1468
1468
|
let t = e.offsetParent;
|
|
1469
1469
|
return re(e) === t && (t = t.ownerDocument.body), t;
|
|
1470
1470
|
}
|
|
1471
|
-
function
|
|
1471
|
+
function on(e, n) {
|
|
1472
1472
|
const t = Q(e);
|
|
1473
|
-
if (
|
|
1473
|
+
if (qe(e))
|
|
1474
1474
|
return t;
|
|
1475
1475
|
if (!se(e)) {
|
|
1476
1476
|
let l = he(e);
|
|
1477
|
-
for (; l &&
|
|
1477
|
+
for (; l && !Se(l); ) {
|
|
1478
1478
|
if (oe(l) && !ot(l))
|
|
1479
1479
|
return l;
|
|
1480
1480
|
l = he(l);
|
|
1481
1481
|
}
|
|
1482
1482
|
return t;
|
|
1483
1483
|
}
|
|
1484
|
-
let o =
|
|
1485
|
-
for (; o &&
|
|
1486
|
-
o =
|
|
1487
|
-
return o &&
|
|
1484
|
+
let o = Pt(e, n);
|
|
1485
|
+
for (; o && Io(o) && ot(o); )
|
|
1486
|
+
o = Pt(o, n);
|
|
1487
|
+
return o && Se(o) && ot(o) && !mt(o) ? t : o || Ko(e) || t;
|
|
1488
1488
|
}
|
|
1489
|
-
const
|
|
1490
|
-
const n = this.getOffsetParent ||
|
|
1489
|
+
const il = async function(e) {
|
|
1490
|
+
const n = this.getOffsetParent || on, t = this.getDimensions, o = await t(e.floating);
|
|
1491
1491
|
return {
|
|
1492
|
-
reference:
|
|
1492
|
+
reference: al(e.reference, await n(e.floating), e.strategy),
|
|
1493
1493
|
floating: {
|
|
1494
1494
|
x: 0,
|
|
1495
1495
|
y: 0,
|
|
@@ -1498,56 +1498,56 @@ const ol = async function(e) {
|
|
|
1498
1498
|
}
|
|
1499
1499
|
};
|
|
1500
1500
|
};
|
|
1501
|
-
function
|
|
1501
|
+
function sl(e) {
|
|
1502
1502
|
return le(e).direction === "rtl";
|
|
1503
1503
|
}
|
|
1504
|
-
const
|
|
1505
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
1504
|
+
const rl = {
|
|
1505
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Yo,
|
|
1506
1506
|
getDocumentElement: re,
|
|
1507
|
-
getClippingRect:
|
|
1508
|
-
getOffsetParent:
|
|
1509
|
-
getElementRects:
|
|
1510
|
-
getClientRects:
|
|
1511
|
-
getDimensions:
|
|
1512
|
-
getScale:
|
|
1507
|
+
getClippingRect: ol,
|
|
1508
|
+
getOffsetParent: on,
|
|
1509
|
+
getElementRects: il,
|
|
1510
|
+
getClientRects: Jo,
|
|
1511
|
+
getDimensions: ll,
|
|
1512
|
+
getScale: Ce,
|
|
1513
1513
|
isElement: oe,
|
|
1514
|
-
isRTL:
|
|
1514
|
+
isRTL: sl
|
|
1515
1515
|
};
|
|
1516
|
-
function
|
|
1516
|
+
function ln(e, n) {
|
|
1517
1517
|
return e.x === n.x && e.y === n.y && e.width === n.width && e.height === n.height;
|
|
1518
1518
|
}
|
|
1519
|
-
function
|
|
1519
|
+
function cl(e, n) {
|
|
1520
1520
|
let t = null, o;
|
|
1521
1521
|
const l = re(e);
|
|
1522
|
-
function
|
|
1522
|
+
function a() {
|
|
1523
1523
|
var r;
|
|
1524
1524
|
clearTimeout(o), (r = t) == null || r.disconnect(), t = null;
|
|
1525
1525
|
}
|
|
1526
|
-
function
|
|
1527
|
-
r === void 0 && (r = !1), c === void 0 && (c = 1),
|
|
1526
|
+
function i(r, c) {
|
|
1527
|
+
r === void 0 && (r = !1), c === void 0 && (c = 1), a();
|
|
1528
1528
|
const s = e.getBoundingClientRect(), {
|
|
1529
1529
|
left: u,
|
|
1530
1530
|
top: d,
|
|
1531
|
-
width:
|
|
1531
|
+
width: v,
|
|
1532
1532
|
height: m
|
|
1533
1533
|
} = s;
|
|
1534
|
-
if (r || n(), !
|
|
1534
|
+
if (r || n(), !v || !m)
|
|
1535
1535
|
return;
|
|
1536
|
-
const p =
|
|
1536
|
+
const p = He(d), _ = He(l.clientWidth - (u + v)), h = He(l.clientHeight - (d + m)), y = He(u), b = {
|
|
1537
1537
|
rootMargin: -p + "px " + -_ + "px " + -h + "px " + -y + "px",
|
|
1538
|
-
threshold: J(0,
|
|
1538
|
+
threshold: J(0, $e(1, c)) || 1
|
|
1539
1539
|
};
|
|
1540
1540
|
let $ = !0;
|
|
1541
|
-
function P(
|
|
1542
|
-
const k =
|
|
1541
|
+
function P(I) {
|
|
1542
|
+
const k = I[0].intersectionRatio;
|
|
1543
1543
|
if (k !== c) {
|
|
1544
1544
|
if (!$)
|
|
1545
|
-
return
|
|
1546
|
-
k ?
|
|
1547
|
-
|
|
1545
|
+
return i();
|
|
1546
|
+
k ? i(!1, k) : o = setTimeout(() => {
|
|
1547
|
+
i(!1, 1e-7);
|
|
1548
1548
|
}, 1e3);
|
|
1549
1549
|
}
|
|
1550
|
-
k === 1 && !
|
|
1550
|
+
k === 1 && !ln(s, e.getBoundingClientRect()) && i(), $ = !1;
|
|
1551
1551
|
}
|
|
1552
1552
|
try {
|
|
1553
1553
|
t = new IntersectionObserver(P, {
|
|
@@ -1560,75 +1560,75 @@ function il(e, n) {
|
|
|
1560
1560
|
}
|
|
1561
1561
|
t.observe(e);
|
|
1562
1562
|
}
|
|
1563
|
-
return
|
|
1563
|
+
return i(!0), a;
|
|
1564
1564
|
}
|
|
1565
1565
|
function Qe(e, n, t, o) {
|
|
1566
1566
|
o === void 0 && (o = {});
|
|
1567
1567
|
const {
|
|
1568
1568
|
ancestorScroll: l = !0,
|
|
1569
|
-
ancestorResize:
|
|
1570
|
-
elementResize:
|
|
1569
|
+
ancestorResize: a = !0,
|
|
1570
|
+
elementResize: i = typeof ResizeObserver == "function",
|
|
1571
1571
|
layoutShift: r = typeof IntersectionObserver == "function",
|
|
1572
1572
|
animationFrame: c = !1
|
|
1573
|
-
} = o, s = ht(e), u = l ||
|
|
1573
|
+
} = o, s = ht(e), u = l || a ? [...s ? Be(s) : [], ...Be(n)] : [];
|
|
1574
1574
|
u.forEach((y) => {
|
|
1575
1575
|
l && y.addEventListener("scroll", t, {
|
|
1576
1576
|
passive: !0
|
|
1577
|
-
}),
|
|
1577
|
+
}), a && y.addEventListener("resize", t);
|
|
1578
1578
|
});
|
|
1579
|
-
const d = s && r ?
|
|
1580
|
-
let
|
|
1581
|
-
|
|
1579
|
+
const d = s && r ? cl(s, t) : null;
|
|
1580
|
+
let v = -1, m = null;
|
|
1581
|
+
i && (m = new ResizeObserver((y) => {
|
|
1582
1582
|
let [w] = y;
|
|
1583
|
-
w && w.target === s && m && (m.unobserve(n), cancelAnimationFrame(
|
|
1583
|
+
w && w.target === s && m && (m.unobserve(n), cancelAnimationFrame(v), v = requestAnimationFrame(() => {
|
|
1584
1584
|
var b;
|
|
1585
1585
|
(b = m) == null || b.observe(n);
|
|
1586
1586
|
})), t();
|
|
1587
1587
|
}), s && !c && m.observe(s), m.observe(n));
|
|
1588
|
-
let p, _ = c ?
|
|
1588
|
+
let p, _ = c ? _e(e) : null;
|
|
1589
1589
|
c && h();
|
|
1590
1590
|
function h() {
|
|
1591
|
-
const y =
|
|
1592
|
-
_ && !
|
|
1591
|
+
const y = _e(e);
|
|
1592
|
+
_ && !ln(_, y) && t(), _ = y, p = requestAnimationFrame(h);
|
|
1593
1593
|
}
|
|
1594
1594
|
return t(), () => {
|
|
1595
1595
|
var y;
|
|
1596
1596
|
u.forEach((w) => {
|
|
1597
|
-
l && w.removeEventListener("scroll", t),
|
|
1597
|
+
l && w.removeEventListener("scroll", t), a && w.removeEventListener("resize", t);
|
|
1598
1598
|
}), d?.(), (y = m) == null || y.disconnect(), m = null, c && cancelAnimationFrame(p);
|
|
1599
1599
|
};
|
|
1600
1600
|
}
|
|
1601
|
-
const Ze =
|
|
1601
|
+
const Ze = Po, et = Mo, tt = Oo, ul = jo, an = (e, n, t) => {
|
|
1602
1602
|
const o = /* @__PURE__ */ new Map(), l = {
|
|
1603
|
-
platform:
|
|
1603
|
+
platform: rl,
|
|
1604
1604
|
...t
|
|
1605
|
-
},
|
|
1605
|
+
}, a = {
|
|
1606
1606
|
...l.platform,
|
|
1607
1607
|
_c: o
|
|
1608
1608
|
};
|
|
1609
|
-
return
|
|
1609
|
+
return Ao(e, n, {
|
|
1610
1610
|
...l,
|
|
1611
|
-
platform:
|
|
1611
|
+
platform: a
|
|
1612
1612
|
});
|
|
1613
1613
|
};
|
|
1614
|
-
function
|
|
1614
|
+
function dl(e) {
|
|
1615
1615
|
return e != null && typeof e == "object" && "$el" in e;
|
|
1616
1616
|
}
|
|
1617
|
-
function
|
|
1618
|
-
if (
|
|
1617
|
+
function Mt(e) {
|
|
1618
|
+
if (dl(e)) {
|
|
1619
1619
|
const n = e.$el;
|
|
1620
|
-
return vt(n) &&
|
|
1620
|
+
return vt(n) && xe(n) === "#comment" ? null : n;
|
|
1621
1621
|
}
|
|
1622
1622
|
return e;
|
|
1623
1623
|
}
|
|
1624
1624
|
function Ae(e) {
|
|
1625
|
-
return typeof e == "function" ? e() :
|
|
1625
|
+
return typeof e == "function" ? e() : S(e);
|
|
1626
1626
|
}
|
|
1627
|
-
function
|
|
1627
|
+
function sn(e) {
|
|
1628
1628
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1629
1629
|
}
|
|
1630
|
-
function
|
|
1631
|
-
const t =
|
|
1630
|
+
function jt(e, n) {
|
|
1631
|
+
const t = sn(e);
|
|
1632
1632
|
return Math.round(n * t) / t;
|
|
1633
1633
|
}
|
|
1634
1634
|
function gt(e, n, t) {
|
|
@@ -1636,7 +1636,7 @@ function gt(e, n, t) {
|
|
|
1636
1636
|
const o = t.whileElementsMounted, l = E(() => {
|
|
1637
1637
|
var k;
|
|
1638
1638
|
return (k = Ae(t.open)) != null ? k : !0;
|
|
1639
|
-
}),
|
|
1639
|
+
}), a = E(() => Ae(t.middleware)), i = E(() => {
|
|
1640
1640
|
var k;
|
|
1641
1641
|
return (k = Ae(t.placement)) != null ? k : "bottom";
|
|
1642
1642
|
}), r = E(() => {
|
|
@@ -1645,7 +1645,7 @@ function gt(e, n, t) {
|
|
|
1645
1645
|
}), c = E(() => {
|
|
1646
1646
|
var k;
|
|
1647
1647
|
return (k = Ae(t.transform)) != null ? k : !0;
|
|
1648
|
-
}), s = E(() =>
|
|
1648
|
+
}), s = E(() => Mt(e.value)), u = E(() => Mt(n.value)), d = C(0), v = C(0), m = C(r.value), p = C(i.value), _ = bn({}), h = C(!1), y = E(() => {
|
|
1649
1649
|
const k = {
|
|
1650
1650
|
position: m.value,
|
|
1651
1651
|
left: "0",
|
|
@@ -1653,17 +1653,17 @@ function gt(e, n, t) {
|
|
|
1653
1653
|
};
|
|
1654
1654
|
if (!u.value)
|
|
1655
1655
|
return k;
|
|
1656
|
-
const V =
|
|
1656
|
+
const V = jt(u.value, d.value), A = jt(u.value, v.value);
|
|
1657
1657
|
return c.value ? {
|
|
1658
1658
|
...k,
|
|
1659
|
-
transform: "translate(" + V + "px, " +
|
|
1660
|
-
...
|
|
1659
|
+
transform: "translate(" + V + "px, " + A + "px)",
|
|
1660
|
+
...sn(u.value) >= 1.5 && {
|
|
1661
1661
|
willChange: "transform"
|
|
1662
1662
|
}
|
|
1663
1663
|
} : {
|
|
1664
1664
|
position: m.value,
|
|
1665
1665
|
left: V + "px",
|
|
1666
|
-
top:
|
|
1666
|
+
top: A + "px"
|
|
1667
1667
|
};
|
|
1668
1668
|
});
|
|
1669
1669
|
let w;
|
|
@@ -1671,12 +1671,12 @@ function gt(e, n, t) {
|
|
|
1671
1671
|
if (s.value == null || u.value == null)
|
|
1672
1672
|
return;
|
|
1673
1673
|
const k = l.value;
|
|
1674
|
-
|
|
1675
|
-
middleware:
|
|
1676
|
-
placement:
|
|
1674
|
+
an(s.value, u.value, {
|
|
1675
|
+
middleware: a.value,
|
|
1676
|
+
placement: i.value,
|
|
1677
1677
|
strategy: r.value
|
|
1678
1678
|
}).then((V) => {
|
|
1679
|
-
d.value = V.x,
|
|
1679
|
+
d.value = V.x, v.value = V.y, m.value = V.strategy, p.value = V.placement, _.value = V.middlewareData, h.value = k !== !1;
|
|
1680
1680
|
});
|
|
1681
1681
|
}
|
|
1682
1682
|
function $() {
|
|
@@ -1692,34 +1692,34 @@ function gt(e, n, t) {
|
|
|
1692
1692
|
return;
|
|
1693
1693
|
}
|
|
1694
1694
|
}
|
|
1695
|
-
function
|
|
1695
|
+
function I() {
|
|
1696
1696
|
l.value || (h.value = !1);
|
|
1697
1697
|
}
|
|
1698
|
-
return X([
|
|
1698
|
+
return X([a, i, r, l], b, {
|
|
1699
1699
|
flush: "sync"
|
|
1700
1700
|
}), X([s, u], P, {
|
|
1701
1701
|
flush: "sync"
|
|
1702
|
-
}), X(l,
|
|
1702
|
+
}), X(l, I, {
|
|
1703
1703
|
flush: "sync"
|
|
1704
|
-
}),
|
|
1705
|
-
x:
|
|
1706
|
-
y:
|
|
1707
|
-
strategy:
|
|
1708
|
-
placement:
|
|
1709
|
-
middlewareData:
|
|
1710
|
-
isPositioned:
|
|
1704
|
+
}), yn() && wn($), {
|
|
1705
|
+
x: Ve(d),
|
|
1706
|
+
y: Ve(v),
|
|
1707
|
+
strategy: Ve(m),
|
|
1708
|
+
placement: Ve(p),
|
|
1709
|
+
middlewareData: Ve(_),
|
|
1710
|
+
isPositioned: Ve(h),
|
|
1711
1711
|
floatingStyles: y,
|
|
1712
1712
|
update: b
|
|
1713
1713
|
};
|
|
1714
1714
|
}
|
|
1715
|
-
const
|
|
1715
|
+
const fl = /* @__PURE__ */ T({
|
|
1716
1716
|
inheritAttrs: !1,
|
|
1717
1717
|
__name: "dot-menu",
|
|
1718
1718
|
props: {
|
|
1719
1719
|
icon: {}
|
|
1720
1720
|
},
|
|
1721
1721
|
setup(e) {
|
|
1722
|
-
const n = e, t = C(!1), o = C(null), l = C(null),
|
|
1722
|
+
const n = e, t = C(!1), o = C(null), l = C(null), a = E(() => n.icon ?? F.DOT_MENU), { floatingStyles: i } = gt(o, l, {
|
|
1723
1723
|
placement: "bottom-end",
|
|
1724
1724
|
middleware: [Ze(8), tt(), et({ padding: 8 })],
|
|
1725
1725
|
whileElementsMounted: Qe
|
|
@@ -1732,29 +1732,29 @@ const cl = /* @__PURE__ */ A({
|
|
|
1732
1732
|
d && (d.closest(".menu-action") || d.closest('[role="menuitem"]') || d.closest("a")) && c();
|
|
1733
1733
|
};
|
|
1734
1734
|
return (u, d) => {
|
|
1735
|
-
const
|
|
1736
|
-
return
|
|
1735
|
+
const v = K("VjButton"), m = K("VjMenu");
|
|
1736
|
+
return f(), g(Z, null, [
|
|
1737
1737
|
x("div", {
|
|
1738
|
-
class:
|
|
1738
|
+
class: z(["dot-menu-container", u.$attrs.class])
|
|
1739
1739
|
}, [
|
|
1740
|
-
O(
|
|
1740
|
+
O(v, {
|
|
1741
1741
|
ref_key: "buttonRef",
|
|
1742
1742
|
ref: o,
|
|
1743
1743
|
class: "dot-menu",
|
|
1744
1744
|
tertiary: "",
|
|
1745
|
-
icon:
|
|
1745
|
+
icon: a.value,
|
|
1746
1746
|
onClick: r
|
|
1747
1747
|
}, null, 8, ["icon"]),
|
|
1748
1748
|
O(Oe, { name: "menu" }, {
|
|
1749
1749
|
default: W(() => [
|
|
1750
|
-
t.value ? (
|
|
1750
|
+
t.value ? (f(), j(m, {
|
|
1751
1751
|
key: 0,
|
|
1752
1752
|
ref_key: "floatingRef",
|
|
1753
1753
|
ref: l,
|
|
1754
|
-
style:
|
|
1754
|
+
style: G(S(i)),
|
|
1755
1755
|
class: "menu-dropdown",
|
|
1756
1756
|
onClose: c,
|
|
1757
|
-
|
|
1757
|
+
onClickCapture: s
|
|
1758
1758
|
}, {
|
|
1759
1759
|
default: W(() => [
|
|
1760
1760
|
M(u.$slots, "default", {}, void 0, !0)
|
|
@@ -1765,8 +1765,8 @@ const cl = /* @__PURE__ */ A({
|
|
|
1765
1765
|
_: 3
|
|
1766
1766
|
})
|
|
1767
1767
|
], 2),
|
|
1768
|
-
(
|
|
1769
|
-
t.value ? (
|
|
1768
|
+
(f(), j(Pe, { to: "body" }, [
|
|
1769
|
+
t.value ? (f(), g("div", {
|
|
1770
1770
|
key: 0,
|
|
1771
1771
|
class: "menu-backdrop",
|
|
1772
1772
|
onClick: c
|
|
@@ -1775,7 +1775,7 @@ const cl = /* @__PURE__ */ A({
|
|
|
1775
1775
|
], 64);
|
|
1776
1776
|
};
|
|
1777
1777
|
}
|
|
1778
|
-
}),
|
|
1778
|
+
}), vl = /* @__PURE__ */ B(fl, [["__scopeId", "data-v-3c400bfd"]]), ml = /* @__PURE__ */ T({
|
|
1779
1779
|
__name: "link-button",
|
|
1780
1780
|
props: {
|
|
1781
1781
|
label: {},
|
|
@@ -1788,26 +1788,26 @@ const cl = /* @__PURE__ */ A({
|
|
|
1788
1788
|
},
|
|
1789
1789
|
setup(e) {
|
|
1790
1790
|
const n = e, t = q.S, o = E(() => n.primary ? "primary" : n.secondary ? "secondary" : n.tertiary ? "tertiary" : "primary");
|
|
1791
|
-
return (l,
|
|
1792
|
-
const
|
|
1793
|
-
return
|
|
1791
|
+
return (l, a) => {
|
|
1792
|
+
const i = K("router-link");
|
|
1793
|
+
return f(), j(i, {
|
|
1794
1794
|
to: e.to,
|
|
1795
|
-
class:
|
|
1795
|
+
class: z(["button", o.value]),
|
|
1796
1796
|
disabled: e.disabled
|
|
1797
1797
|
}, {
|
|
1798
1798
|
default: W(() => [
|
|
1799
|
-
e.icon ? (
|
|
1799
|
+
e.icon ? (f(), j(be, {
|
|
1800
1800
|
key: 0,
|
|
1801
1801
|
icon: e.icon,
|
|
1802
|
-
size:
|
|
1802
|
+
size: S(t)
|
|
1803
1803
|
}, null, 8, ["icon", "size"])) : L("", !0),
|
|
1804
|
-
|
|
1804
|
+
Ue(" " + D(e.label), 1)
|
|
1805
1805
|
]),
|
|
1806
1806
|
_: 1
|
|
1807
1807
|
}, 8, ["to", "class", "disabled"]);
|
|
1808
1808
|
};
|
|
1809
1809
|
}
|
|
1810
|
-
}),
|
|
1810
|
+
}), pl = /* @__PURE__ */ B(ml, [["__scopeId", "data-v-bd3cf2f5"]]), hl = ["disabled"], gl = { class: "menu-action--icon" }, bl = /* @__PURE__ */ T({
|
|
1811
1811
|
__name: "menu-action",
|
|
1812
1812
|
props: {
|
|
1813
1813
|
label: {},
|
|
@@ -1816,34 +1816,34 @@ const cl = /* @__PURE__ */ A({
|
|
|
1816
1816
|
},
|
|
1817
1817
|
setup(e) {
|
|
1818
1818
|
const n = q.S;
|
|
1819
|
-
return (t, o) => (
|
|
1819
|
+
return (t, o) => (f(), g("button", {
|
|
1820
1820
|
class: "menu-action button tertiary",
|
|
1821
1821
|
disabled: e.disabled
|
|
1822
1822
|
}, [
|
|
1823
|
-
x("span",
|
|
1824
|
-
e.icon ? (
|
|
1823
|
+
x("span", gl, [
|
|
1824
|
+
e.icon ? (f(), j(be, {
|
|
1825
1825
|
key: 0,
|
|
1826
1826
|
icon: e.icon,
|
|
1827
|
-
size:
|
|
1827
|
+
size: S(n)
|
|
1828
1828
|
}, null, 8, ["icon", "size"])) : L("", !0)
|
|
1829
1829
|
]),
|
|
1830
1830
|
x("span", null, D(e.label), 1)
|
|
1831
|
-
], 8,
|
|
1831
|
+
], 8, hl));
|
|
1832
1832
|
}
|
|
1833
|
-
}),
|
|
1834
|
-
function
|
|
1835
|
-
return
|
|
1833
|
+
}), yl = /* @__PURE__ */ B(bl, [["__scopeId", "data-v-07850995"]]), wl = {}, _l = { class: "menu" };
|
|
1834
|
+
function xl(e, n) {
|
|
1835
|
+
return f(), g("div", _l, [
|
|
1836
1836
|
M(e.$slots, "default", {}, void 0, !0)
|
|
1837
1837
|
]);
|
|
1838
1838
|
}
|
|
1839
|
-
const
|
|
1839
|
+
const kl = /* @__PURE__ */ B(wl, [["render", xl], ["__scopeId", "data-v-259fec08"]]), Vl = {
|
|
1840
1840
|
mounted(e) {
|
|
1841
1841
|
e.classList.add("compact");
|
|
1842
1842
|
},
|
|
1843
1843
|
unmounted(e) {
|
|
1844
1844
|
e.classList.remove("compact");
|
|
1845
1845
|
}
|
|
1846
|
-
},
|
|
1846
|
+
}, rn = [
|
|
1847
1847
|
'input:not([disabled]):not([type="hidden"])',
|
|
1848
1848
|
"select:not([disabled])",
|
|
1849
1849
|
"textarea:not([disabled])",
|
|
@@ -1852,21 +1852,21 @@ const wl = /* @__PURE__ */ B(gl, [["render", yl], ["__scopeId", "data-v-259fec08
|
|
|
1852
1852
|
'[tabindex]:not([tabindex="-1"])',
|
|
1853
1853
|
'[contenteditable="true"]'
|
|
1854
1854
|
].join(", ");
|
|
1855
|
-
function
|
|
1856
|
-
const n = e.querySelectorAll(
|
|
1855
|
+
function El(e) {
|
|
1856
|
+
const n = e.querySelectorAll(rn);
|
|
1857
1857
|
for (const t of Array.from(n))
|
|
1858
1858
|
if (t.offsetParent !== null || t.getClientRects().length > 0)
|
|
1859
1859
|
return t;
|
|
1860
1860
|
return null;
|
|
1861
1861
|
}
|
|
1862
|
-
const
|
|
1862
|
+
const Cl = {
|
|
1863
1863
|
mounted(e, n) {
|
|
1864
1864
|
const t = typeof n.value == "number" ? n.value : 0, o = () => {
|
|
1865
|
-
if (e.matches(
|
|
1865
|
+
if (e.matches(rn)) {
|
|
1866
1866
|
e.focus();
|
|
1867
1867
|
return;
|
|
1868
1868
|
}
|
|
1869
|
-
const l =
|
|
1869
|
+
const l = El(e);
|
|
1870
1870
|
l && l.focus();
|
|
1871
1871
|
};
|
|
1872
1872
|
t > 0 ? setTimeout(o, t) : requestAnimationFrame(o);
|
|
@@ -1899,17 +1899,17 @@ class bt {
|
|
|
1899
1899
|
handleEntry(n) {
|
|
1900
1900
|
const t = this.targets.get(n.target);
|
|
1901
1901
|
if (!t) return;
|
|
1902
|
-
const o = n.contentRect.width, l = n.contentRect.height,
|
|
1903
|
-
for (const
|
|
1902
|
+
const o = n.contentRect.width, l = n.contentRect.height, a = n.target;
|
|
1903
|
+
for (const i of t.callbacks)
|
|
1904
1904
|
try {
|
|
1905
|
-
|
|
1905
|
+
i(o, l, a);
|
|
1906
1906
|
} catch (r) {
|
|
1907
1907
|
console.error("resize callback error", r);
|
|
1908
1908
|
}
|
|
1909
1909
|
if (t.breakpoints) {
|
|
1910
|
-
const
|
|
1910
|
+
const i = Object.keys(t.breakpoints).map((c) => Number(c)).filter((c) => !Number.isNaN(c)).sort((c, s) => c - s);
|
|
1911
1911
|
let r;
|
|
1912
|
-
for (const c of
|
|
1912
|
+
for (const c of i)
|
|
1913
1913
|
o >= c && (r = t.breakpoints[c]);
|
|
1914
1914
|
r !== t.currentClass && (t.currentClass && n.target.classList.remove(t.currentClass), r && n.target.classList.add(r), t.currentClass = r);
|
|
1915
1915
|
}
|
|
@@ -1919,13 +1919,13 @@ class bt {
|
|
|
1919
1919
|
if (l)
|
|
1920
1920
|
t && l.callbacks.add(t), o?.breakpoints && (l.breakpoints = o.breakpoints);
|
|
1921
1921
|
else {
|
|
1922
|
-
const
|
|
1923
|
-
t &&
|
|
1922
|
+
const a = /* @__PURE__ */ new Set();
|
|
1923
|
+
t && a.add(t), this.targets.set(n, { callbacks: a, breakpoints: o?.breakpoints }), this.observer && this.observer.observe(n);
|
|
1924
1924
|
}
|
|
1925
1925
|
if (o?.immediate) {
|
|
1926
|
-
const
|
|
1927
|
-
if (this.handleEntry(
|
|
1928
|
-
const r =
|
|
1926
|
+
const a = n.getBoundingClientRect(), i = { target: n, contentRect: a };
|
|
1927
|
+
if (this.handleEntry(i), t) {
|
|
1928
|
+
const r = a.width, c = a.height;
|
|
1929
1929
|
t(r, c, n);
|
|
1930
1930
|
}
|
|
1931
1931
|
}
|
|
@@ -1935,106 +1935,106 @@ class bt {
|
|
|
1935
1935
|
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)));
|
|
1936
1936
|
}
|
|
1937
1937
|
}
|
|
1938
|
-
const
|
|
1938
|
+
const Ee = bt.instance, Ll = {
|
|
1939
1939
|
mounted(e, n) {
|
|
1940
|
-
const t = n.value, o = typeof t == "function" ? t : t?.onResize, l = typeof t == "object" && t?.breakpoints ? t.breakpoints : void 0,
|
|
1941
|
-
|
|
1940
|
+
const t = n.value, o = typeof t == "function" ? t : t?.onResize, l = typeof t == "object" && t?.breakpoints ? t.breakpoints : void 0, a = typeof t == "object" && !!t?.immediate, i = e;
|
|
1941
|
+
i.__resize_cb = o, i.__resize_breakpoints = l, o && Ee.observe(e, o, { breakpoints: l, immediate: a });
|
|
1942
1942
|
},
|
|
1943
1943
|
updated(e, n) {
|
|
1944
|
-
const t = e, o = t.__resize_cb, l = t.__resize_breakpoints,
|
|
1945
|
-
if (o !==
|
|
1946
|
-
o &&
|
|
1944
|
+
const t = e, o = t.__resize_cb, l = t.__resize_breakpoints, a = n.value, i = typeof a == "function" ? a : a?.onResize, r = typeof a == "object" && a?.breakpoints ? a.breakpoints : void 0;
|
|
1945
|
+
if (o !== i) {
|
|
1946
|
+
o && Ee.unobserve(e, o), i && Ee.observe(e, i, { breakpoints: r, immediate: !!(a && typeof a == "object" && a.immediate) }), t.__resize_cb = i, t.__resize_breakpoints = r;
|
|
1947
1947
|
return;
|
|
1948
1948
|
}
|
|
1949
|
-
JSON.stringify(l || {}) !== JSON.stringify(r || {}) && (o &&
|
|
1949
|
+
JSON.stringify(l || {}) !== JSON.stringify(r || {}) && (o && Ee.unobserve(e, o), i && Ee.observe(e, i, { breakpoints: r, immediate: !0 }), t.__resize_breakpoints = r);
|
|
1950
1950
|
},
|
|
1951
1951
|
unmounted(e) {
|
|
1952
1952
|
const n = e, t = n.__resize_cb;
|
|
1953
|
-
t &&
|
|
1953
|
+
t && Ee.unobserve(e, t), delete n.__resize_cb, delete n.__resize_breakpoints;
|
|
1954
1954
|
}
|
|
1955
|
-
},
|
|
1956
|
-
function
|
|
1957
|
-
return
|
|
1955
|
+
}, $l = {}, Sl = { class: "spinner" };
|
|
1956
|
+
function Rl(e, n) {
|
|
1957
|
+
return f(), g("div", Sl);
|
|
1958
1958
|
}
|
|
1959
|
-
const
|
|
1960
|
-
function
|
|
1959
|
+
const cn = /* @__PURE__ */ B($l, [["render", Rl], ["__scopeId", "data-v-b957fb82"]]), Tl = 200, Al = 120;
|
|
1960
|
+
function Ft(e, n) {
|
|
1961
1961
|
const t = n.querySelector(".vj-loading-inner");
|
|
1962
1962
|
if (!t) return;
|
|
1963
1963
|
const o = e.clientHeight || e.getBoundingClientRect().height;
|
|
1964
1964
|
t.classList.remove("vj-loading-inner--small", "vj-loading-inner--minimal");
|
|
1965
1965
|
const l = t.querySelector(".vj-loading-text");
|
|
1966
|
-
l && l.classList.remove("vj-loading-text--hidden"), o <=
|
|
1966
|
+
l && l.classList.remove("vj-loading-text--hidden"), o <= Al ? (t.classList.add("vj-loading-inner--minimal"), l && l.classList.add("vj-loading-text--hidden")) : o <= Tl && t.classList.add("vj-loading-inner--small");
|
|
1967
1967
|
}
|
|
1968
|
-
const
|
|
1968
|
+
const Ol = {
|
|
1969
1969
|
mounted(e, n) {
|
|
1970
1970
|
let t, o;
|
|
1971
1971
|
if (typeof n.value == "object" && n.value !== null) {
|
|
1972
|
-
const
|
|
1973
|
-
t = !!(
|
|
1972
|
+
const v = n.value;
|
|
1973
|
+
t = !!(v.active ?? !0), o = v.text;
|
|
1974
1974
|
} else
|
|
1975
1975
|
t = !!n.value, o = void 0;
|
|
1976
|
-
const l = getComputedStyle(e),
|
|
1977
|
-
(l.position === "static" || !l.position) && (
|
|
1978
|
-
const
|
|
1979
|
-
|
|
1976
|
+
const l = getComputedStyle(e), a = { overlay: document.createElement("div") };
|
|
1977
|
+
(l.position === "static" || !l.position) && (a.originalPosition = e.style.position, e.style.position = "relative");
|
|
1978
|
+
const i = a.overlay;
|
|
1979
|
+
i.className = "vj-loading-overlay", t || i.classList.add("vj-loading-overlay--hidden");
|
|
1980
1980
|
const r = document.createElement("div"), c = document.createElement("div");
|
|
1981
1981
|
c.className = "vj-loading-inner", c.appendChild(r);
|
|
1982
1982
|
let s;
|
|
1983
|
-
o && (s = document.createElement("div"), s.className = "vj-loading-text", s.textContent = o, c.appendChild(s)),
|
|
1984
|
-
const u = O(
|
|
1985
|
-
|
|
1983
|
+
o && (s = document.createElement("div"), s.className = "vj-loading-text", s.textContent = o, c.appendChild(s)), i.appendChild(c), Ft(e, i);
|
|
1984
|
+
const u = O(cn);
|
|
1985
|
+
$t(u, r), a.spinnerVnode = u, a.spinnerContainer = r, t && (e.setAttribute("aria-busy", "true"), e.style.pointerEvents = "none"), e.appendChild(i);
|
|
1986
1986
|
const d = e;
|
|
1987
|
-
d.__vjLoading =
|
|
1987
|
+
d.__vjLoading = a;
|
|
1988
1988
|
},
|
|
1989
1989
|
updated(e, n) {
|
|
1990
1990
|
const o = e.__vjLoading;
|
|
1991
1991
|
if (!o) return;
|
|
1992
1992
|
const { overlay: l } = o;
|
|
1993
|
-
let
|
|
1993
|
+
let a, i;
|
|
1994
1994
|
if (typeof n.value == "object" && n.value !== null) {
|
|
1995
1995
|
const c = n.value;
|
|
1996
|
-
|
|
1996
|
+
a = !!(c.active ?? !0), i = c.text;
|
|
1997
1997
|
} else
|
|
1998
|
-
|
|
1999
|
-
|
|
1998
|
+
a = !!n.value, i = void 0;
|
|
1999
|
+
a ? (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 = "");
|
|
2000
2000
|
const r = l.querySelector(".vj-loading-inner");
|
|
2001
2001
|
if (r) {
|
|
2002
2002
|
const c = r.querySelector(".vj-loading-text");
|
|
2003
2003
|
if (c)
|
|
2004
|
-
|
|
2005
|
-
else if (
|
|
2004
|
+
i ? c.textContent = i : c.remove();
|
|
2005
|
+
else if (i) {
|
|
2006
2006
|
const s = document.createElement("div");
|
|
2007
|
-
s.className = "vj-loading-text", s.textContent =
|
|
2007
|
+
s.className = "vj-loading-text", s.textContent = i, r.appendChild(s);
|
|
2008
2008
|
}
|
|
2009
2009
|
}
|
|
2010
|
-
|
|
2010
|
+
Ft(e, l);
|
|
2011
2011
|
},
|
|
2012
2012
|
unmounted(e) {
|
|
2013
2013
|
const n = e, t = n.__vjLoading;
|
|
2014
2014
|
if (!t) return;
|
|
2015
2015
|
const { overlay: o, originalPosition: l } = t;
|
|
2016
2016
|
try {
|
|
2017
|
-
t.spinnerContainer &&
|
|
2017
|
+
t.spinnerContainer && $t(null, t.spinnerContainer);
|
|
2018
2018
|
} catch {
|
|
2019
2019
|
}
|
|
2020
2020
|
o && o.parentElement === e && e.removeChild(o), l !== void 0 && (e.style.position = l), n.__vjLoading = void 0;
|
|
2021
2021
|
}
|
|
2022
|
-
},
|
|
2022
|
+
}, Bl = (e) => {
|
|
2023
2023
|
const n = document.createElement("div");
|
|
2024
2024
|
return n.className = "vj-tooltip", n.setAttribute("role", "tooltip"), n.style.position = "absolute", n.style.top = "0", n.style.left = "0", n.style.pointerEvents = "none", n.style.zIndex = "10000", n.textContent = e, n;
|
|
2025
2025
|
};
|
|
2026
|
-
function
|
|
2026
|
+
function zt(e) {
|
|
2027
2027
|
if (!e) return { content: "", placement: "top", delay: 200 };
|
|
2028
2028
|
if (typeof e.value == "string") return { content: e.value, placement: "top", delay: 200 };
|
|
2029
2029
|
const t = e.value || {}, o = t.placement ?? "top";
|
|
2030
2030
|
return { content: t.content ?? "", placement: o, delay: t.delay ?? 200 };
|
|
2031
2031
|
}
|
|
2032
|
-
const
|
|
2032
|
+
const un = {
|
|
2033
2033
|
mounted(e, n) {
|
|
2034
|
-
const t =
|
|
2034
|
+
const t = zt(n), o = Bl(t.content);
|
|
2035
2035
|
document.body.appendChild(o);
|
|
2036
|
-
const l = { tooltip: o, cleanup: void 0, showTimer: null, hideTimer: null },
|
|
2037
|
-
const m = await
|
|
2036
|
+
const l = { tooltip: o, cleanup: void 0, showTimer: null, hideTimer: null }, a = async () => {
|
|
2037
|
+
const m = await an(e, o, {
|
|
2038
2038
|
placement: t.placement,
|
|
2039
2039
|
middleware: [Ze(6), tt(), et({ padding: 8 })]
|
|
2040
2040
|
}), { x: p, y: _ } = m;
|
|
@@ -2042,9 +2042,9 @@ const rn = {
|
|
|
2042
2042
|
left: `${p}px`,
|
|
2043
2043
|
top: `${_}px`
|
|
2044
2044
|
});
|
|
2045
|
-
},
|
|
2045
|
+
}, i = () => {
|
|
2046
2046
|
l.hideTimer && window.clearTimeout(l.hideTimer), l.showTimer = window.setTimeout(() => {
|
|
2047
|
-
o.classList.add("vj-tooltip--visible"),
|
|
2047
|
+
o.classList.add("vj-tooltip--visible"), a(), l.cleanup = Qe(e, o, a);
|
|
2048
2048
|
}, t.delay);
|
|
2049
2049
|
}, r = () => {
|
|
2050
2050
|
l.showTimer && window.clearTimeout(l.showTimer), l.hideTimer = window.setTimeout(() => {
|
|
@@ -2057,20 +2057,20 @@ const rn = {
|
|
|
2057
2057
|
}
|
|
2058
2058
|
}, 50);
|
|
2059
2059
|
}, c = (m) => {
|
|
2060
|
-
|
|
2060
|
+
i();
|
|
2061
2061
|
}, s = (m) => {
|
|
2062
2062
|
r();
|
|
2063
|
-
}, u = () =>
|
|
2064
|
-
m.pointerType === "touch" && (
|
|
2063
|
+
}, u = () => i(), d = () => r(), v = (m) => {
|
|
2064
|
+
m.pointerType === "touch" && (i(), l.docHandler = (p) => {
|
|
2065
2065
|
!o.contains(p.target) && !e.contains(p.target) && (r(), document.removeEventListener("pointerdown", l.docHandler), l.docHandler = void 0);
|
|
2066
2066
|
}, document.addEventListener("pointerdown", l.docHandler));
|
|
2067
2067
|
};
|
|
2068
|
-
e.addEventListener("pointerenter", c), e.addEventListener("pointerleave", s), e.addEventListener("focus", u), e.addEventListener("blur", d), e.addEventListener("pointerdown",
|
|
2068
|
+
e.addEventListener("pointerenter", c), e.addEventListener("pointerleave", s), e.addEventListener("focus", u), e.addEventListener("blur", d), e.addEventListener("pointerdown", v), l.onPointerEnter = c, l.onPointerLeave = s, l.onFocus = u, l.onBlur = d, l.onPointerDown = v, e.__vjTooltip = l;
|
|
2069
2069
|
},
|
|
2070
2070
|
updated(e, n) {
|
|
2071
2071
|
const t = e.__vjTooltip;
|
|
2072
2072
|
if (!t) return;
|
|
2073
|
-
const o =
|
|
2073
|
+
const o = zt(n);
|
|
2074
2074
|
t.tooltip.textContent = o.content;
|
|
2075
2075
|
},
|
|
2076
2076
|
unmounted(e) {
|
|
@@ -2083,7 +2083,7 @@ const rn = {
|
|
|
2083
2083
|
n.tooltip && n.tooltip.parentElement && n.tooltip.parentElement.removeChild(n.tooltip), n.onPointerEnter && e.removeEventListener("pointerenter", n.onPointerEnter), n.onPointerLeave && e.removeEventListener("pointerleave", n.onPointerLeave), n.onFocus && e.removeEventListener("focus", n.onFocus), n.onBlur && e.removeEventListener("blur", n.onBlur), n.onPointerDown && e.removeEventListener("pointerdown", n.onPointerDown), n.docHandler && document.removeEventListener("pointerdown", n.docHandler), e.__vjTooltip = void 0;
|
|
2084
2084
|
}
|
|
2085
2085
|
}
|
|
2086
|
-
},
|
|
2086
|
+
}, Dl = { class: "notification__icon" }, Pl = { class: "notification__message" }, Ml = { class: "notification__title" }, jl = { class: "notification__text" }, Fl = /* @__PURE__ */ T({
|
|
2087
2087
|
__name: "notification",
|
|
2088
2088
|
props: {
|
|
2089
2089
|
type: {},
|
|
@@ -2103,39 +2103,39 @@ const rn = {
|
|
|
2103
2103
|
default:
|
|
2104
2104
|
return F.INFO;
|
|
2105
2105
|
}
|
|
2106
|
-
}),
|
|
2106
|
+
}), a = () => {
|
|
2107
2107
|
o("close");
|
|
2108
2108
|
};
|
|
2109
|
-
return (
|
|
2110
|
-
class:
|
|
2111
|
-
onClick:
|
|
2109
|
+
return (i, r) => (f(), g("div", {
|
|
2110
|
+
class: z(["notification", `notification--${e.type}`]),
|
|
2111
|
+
onClick: a
|
|
2112
2112
|
}, [
|
|
2113
|
-
x("div",
|
|
2114
|
-
O(
|
|
2113
|
+
x("div", Dl, [
|
|
2114
|
+
O(be, { icon: l.value }, null, 8, ["icon"])
|
|
2115
2115
|
]),
|
|
2116
|
-
x("div",
|
|
2117
|
-
x("div",
|
|
2118
|
-
x("div",
|
|
2116
|
+
x("div", Pl, [
|
|
2117
|
+
x("div", Ml, D(e.title), 1),
|
|
2118
|
+
x("div", jl, D(e.message), 1)
|
|
2119
2119
|
]),
|
|
2120
2120
|
O(ut, {
|
|
2121
2121
|
class: "notification__close compact",
|
|
2122
|
-
icon:
|
|
2123
|
-
onClick:
|
|
2122
|
+
icon: S(F).CLOSE,
|
|
2123
|
+
onClick: N(a, ["stop"]),
|
|
2124
2124
|
tertiary: ""
|
|
2125
2125
|
}, null, 8, ["icon"])
|
|
2126
2126
|
], 2));
|
|
2127
2127
|
}
|
|
2128
|
-
}),
|
|
2128
|
+
}), yt = /* @__PURE__ */ B(Fl, [["__scopeId", "data-v-ca4451c0"]]), zl = { class: "page" }, Il = { class: "header-left" }, Hl = { class: "header-titles" }, Ul = { key: 0 }, Wl = { class: "header-actions" }, Nl = {
|
|
2129
2129
|
key: 0,
|
|
2130
2130
|
class: "page-error"
|
|
2131
|
-
},
|
|
2131
|
+
}, Kl = {
|
|
2132
2132
|
key: 1,
|
|
2133
2133
|
class: "contents"
|
|
2134
|
-
},
|
|
2134
|
+
}, Xl = {
|
|
2135
2135
|
key: 2,
|
|
2136
2136
|
class: "actions"
|
|
2137
|
-
},
|
|
2138
|
-
directives: { loading:
|
|
2137
|
+
}, Gl = { key: 3 }, ql = { key: 0 }, Yl = /* @__PURE__ */ T({
|
|
2138
|
+
directives: { loading: Ol },
|
|
2139
2139
|
__name: "page",
|
|
2140
2140
|
props: {
|
|
2141
2141
|
title: {},
|
|
@@ -2148,64 +2148,64 @@ const rn = {
|
|
|
2148
2148
|
},
|
|
2149
2149
|
emits: ["back"],
|
|
2150
2150
|
setup(e, { emit: n }) {
|
|
2151
|
-
const t = e, o = E(() => t.flow?.running?.value ?? !1), l = E(() => t.flow?.error?.value ?? null),
|
|
2152
|
-
return (
|
|
2153
|
-
const c =
|
|
2154
|
-
return ct((
|
|
2151
|
+
const t = e, o = E(() => t.flow?.running?.value ?? !1), l = E(() => t.flow?.error?.value ?? null), a = E(() => t.errorMessage ?? (l.value ? String(l.value) : null));
|
|
2152
|
+
return (i, r) => {
|
|
2153
|
+
const c = K("VjButton"), s = Nt("loading");
|
|
2154
|
+
return ct((f(), g("div", zl, [
|
|
2155
2155
|
x("header", null, [
|
|
2156
|
-
x("div",
|
|
2157
|
-
e.backLabel ? (
|
|
2156
|
+
x("div", Il, [
|
|
2157
|
+
e.backLabel ? (f(), j(c, {
|
|
2158
2158
|
key: 0,
|
|
2159
2159
|
tertiary: "",
|
|
2160
|
-
icon:
|
|
2161
|
-
onClick: r[0] || (r[0] = (u) =>
|
|
2160
|
+
icon: S(F).BACK,
|
|
2161
|
+
onClick: r[0] || (r[0] = (u) => i.$emit("back")),
|
|
2162
2162
|
size: "small"
|
|
2163
2163
|
}, null, 8, ["icon"])) : L("", !0),
|
|
2164
|
-
x("div",
|
|
2164
|
+
x("div", Hl, [
|
|
2165
2165
|
x("h1", null, D(e.title), 1),
|
|
2166
|
-
e.subTitle ? (
|
|
2166
|
+
e.subTitle ? (f(), g("h2", Ul, D(e.subTitle), 1)) : L("", !0)
|
|
2167
2167
|
])
|
|
2168
2168
|
]),
|
|
2169
|
-
x("div",
|
|
2170
|
-
M(
|
|
2169
|
+
x("div", Wl, [
|
|
2170
|
+
M(i.$slots, "headerActions", {}, void 0, !0)
|
|
2171
2171
|
])
|
|
2172
2172
|
]),
|
|
2173
2173
|
x("main", {
|
|
2174
|
-
class:
|
|
2174
|
+
class: z({ scrollable: e.scrollable })
|
|
2175
2175
|
}, [
|
|
2176
|
-
|
|
2177
|
-
M(
|
|
2178
|
-
O(
|
|
2176
|
+
a.value ? (f(), g("div", Nl, [
|
|
2177
|
+
M(i.$slots, "error", {}, () => [
|
|
2178
|
+
O(yt, {
|
|
2179
2179
|
type: "error",
|
|
2180
|
-
title:
|
|
2181
|
-
message:
|
|
2180
|
+
title: a.value,
|
|
2181
|
+
message: a.value
|
|
2182
2182
|
}, null, 8, ["title", "message"])
|
|
2183
2183
|
], !0)
|
|
2184
2184
|
])) : L("", !0),
|
|
2185
|
-
|
|
2186
|
-
M(
|
|
2185
|
+
a.value ? L("", !0) : (f(), g("div", Kl, [
|
|
2186
|
+
M(i.$slots, "default", {}, void 0, !0)
|
|
2187
2187
|
])),
|
|
2188
|
-
|
|
2189
|
-
M(
|
|
2188
|
+
a.value ? L("", !0) : (f(), g("div", Xl, [
|
|
2189
|
+
M(i.$slots, "actions", {}, void 0, !0)
|
|
2190
2190
|
])),
|
|
2191
|
-
|
|
2192
|
-
M(
|
|
2191
|
+
i.$slots.flexFooter ? (f(), g("footer", Gl, [
|
|
2192
|
+
M(i.$slots, "flexFooter", {}, void 0, !0)
|
|
2193
2193
|
])) : L("", !0)
|
|
2194
2194
|
], 2),
|
|
2195
|
-
|
|
2196
|
-
M(
|
|
2195
|
+
i.$slots.footer ? (f(), g("footer", ql, [
|
|
2196
|
+
M(i.$slots, "footer", {}, void 0, !0)
|
|
2197
2197
|
])) : L("", !0)
|
|
2198
2198
|
])), [
|
|
2199
2199
|
[s, { active: o.value, text: t.loadingMessage }]
|
|
2200
2200
|
]);
|
|
2201
2201
|
};
|
|
2202
2202
|
}
|
|
2203
|
-
}),
|
|
2203
|
+
}), Jl = /* @__PURE__ */ B(Yl, [["__scopeId", "data-v-3e724555"]]), Ql = {
|
|
2204
2204
|
class: "paginator-info",
|
|
2205
2205
|
"aria-live": "polite"
|
|
2206
|
-
},
|
|
2206
|
+
}, Zl = /* @__PURE__ */ T({
|
|
2207
2207
|
__name: "paginator",
|
|
2208
|
-
props: /* @__PURE__ */
|
|
2208
|
+
props: /* @__PURE__ */ ee({
|
|
2209
2209
|
totalItems: {},
|
|
2210
2210
|
pageSize: {},
|
|
2211
2211
|
labels: {}
|
|
@@ -2213,26 +2213,26 @@ const rn = {
|
|
|
2213
2213
|
modelValue: { required: !0 },
|
|
2214
2214
|
modelModifiers: {}
|
|
2215
2215
|
}),
|
|
2216
|
-
emits: /* @__PURE__ */
|
|
2216
|
+
emits: /* @__PURE__ */ ee(["change"], ["update:modelValue"]),
|
|
2217
2217
|
setup(e, { emit: n }) {
|
|
2218
|
-
const t = e, o = ve(e, "modelValue"), l = n,
|
|
2219
|
-
const w = Math.min(Math.max(1, Math.floor(y)),
|
|
2218
|
+
const t = e, o = ve(e, "modelValue"), l = n, a = E(() => Math.max(1, Math.ceil((t.totalItems ?? 0) / t.pageSize))), i = E(() => Math.min(Math.max(1, o.value ?? 1), a.value)), r = E(() => i.value), c = E(() => i.value <= 1), s = E(() => i.value >= a.value), u = E(() => t.labels?.item ?? "Eintrag"), d = E(() => t.labels?.of ?? "von"), v = (y) => {
|
|
2219
|
+
const w = Math.min(Math.max(1, Math.floor(y)), a.value);
|
|
2220
2220
|
w !== o.value && (o.value = w, l("change", w));
|
|
2221
|
-
}, m = () =>
|
|
2221
|
+
}, m = () => v(1), p = () => v(i.value - 1), _ = () => v(i.value + 1), h = () => v(a.value);
|
|
2222
2222
|
return X([() => t.totalItems, () => t.pageSize], () => {
|
|
2223
|
-
o.value >
|
|
2223
|
+
o.value > a.value && v(a.value);
|
|
2224
2224
|
}), (y, w) => {
|
|
2225
|
-
const b =
|
|
2226
|
-
return
|
|
2225
|
+
const b = K("VjButton");
|
|
2226
|
+
return f(), g("nav", {
|
|
2227
2227
|
class: "paginator",
|
|
2228
2228
|
"aria-label": "Pagination",
|
|
2229
|
-
onKeydown: w[0] || (w[0] = lt(
|
|
2229
|
+
onKeydown: w[0] || (w[0] = lt(N(() => {
|
|
2230
2230
|
}, ["prevent"]), ["enter"]))
|
|
2231
2231
|
}, [
|
|
2232
2232
|
O(b, {
|
|
2233
2233
|
tertiary: "",
|
|
2234
2234
|
class: "paginator-btn",
|
|
2235
|
-
icon:
|
|
2235
|
+
icon: S(F).FIRST,
|
|
2236
2236
|
disabled: c.value,
|
|
2237
2237
|
onClick: m,
|
|
2238
2238
|
"aria-label": "First page"
|
|
@@ -2240,22 +2240,22 @@ const rn = {
|
|
|
2240
2240
|
O(b, {
|
|
2241
2241
|
tertiary: "",
|
|
2242
2242
|
class: "paginator-btn",
|
|
2243
|
-
icon:
|
|
2243
|
+
icon: S(F).PREVIOUS,
|
|
2244
2244
|
disabled: c.value,
|
|
2245
2245
|
onClick: p,
|
|
2246
2246
|
"aria-label": "Previous page"
|
|
2247
2247
|
}, null, 8, ["icon", "disabled"]),
|
|
2248
2248
|
M(y.$slots, "info", {
|
|
2249
|
-
current:
|
|
2250
|
-
totalPages:
|
|
2251
|
-
goTo:
|
|
2249
|
+
current: i.value,
|
|
2250
|
+
totalPages: a.value,
|
|
2251
|
+
goTo: v
|
|
2252
2252
|
}, () => [
|
|
2253
|
-
x("div",
|
|
2253
|
+
x("div", Ql, D(u.value) + " " + D(r.value) + " " + D(d.value) + " " + D(a.value), 1)
|
|
2254
2254
|
], !0),
|
|
2255
2255
|
O(b, {
|
|
2256
2256
|
tertiary: "",
|
|
2257
2257
|
class: "paginator-btn",
|
|
2258
|
-
icon:
|
|
2258
|
+
icon: S(F).NEXT,
|
|
2259
2259
|
disabled: s.value,
|
|
2260
2260
|
onClick: _,
|
|
2261
2261
|
"aria-label": "Next page"
|
|
@@ -2263,7 +2263,7 @@ const rn = {
|
|
|
2263
2263
|
O(b, {
|
|
2264
2264
|
tertiary: "",
|
|
2265
2265
|
class: "paginator-btn",
|
|
2266
|
-
icon:
|
|
2266
|
+
icon: S(F).LAST,
|
|
2267
2267
|
disabled: s.value,
|
|
2268
2268
|
onClick: h,
|
|
2269
2269
|
"aria-label": "Last page"
|
|
@@ -2271,9 +2271,9 @@ const rn = {
|
|
|
2271
2271
|
], 32);
|
|
2272
2272
|
};
|
|
2273
2273
|
}
|
|
2274
|
-
}),
|
|
2274
|
+
}), ea = /* @__PURE__ */ B(Zl, [["__scopeId", "data-v-b6fa8efe"]]), ta = { class: "search-field" }, na = ["value", "placeholder"], oa = /* @__PURE__ */ T({
|
|
2275
2275
|
__name: "search-field",
|
|
2276
|
-
props: /* @__PURE__ */
|
|
2276
|
+
props: /* @__PURE__ */ ee({
|
|
2277
2277
|
placeholder: { default: "Search..." }
|
|
2278
2278
|
}, {
|
|
2279
2279
|
modelValue: {},
|
|
@@ -2281,47 +2281,47 @@ const rn = {
|
|
|
2281
2281
|
}),
|
|
2282
2282
|
emits: ["update:modelValue"],
|
|
2283
2283
|
setup(e) {
|
|
2284
|
-
const n = ve(e, "modelValue"), t = (
|
|
2285
|
-
n.value =
|
|
2284
|
+
const n = ve(e, "modelValue"), t = (a) => {
|
|
2285
|
+
n.value = a.target.value;
|
|
2286
2286
|
}, o = () => {
|
|
2287
2287
|
n.value = "";
|
|
2288
2288
|
}, l = E(() => !n.value);
|
|
2289
|
-
return (
|
|
2290
|
-
const r =
|
|
2291
|
-
return
|
|
2289
|
+
return (a, i) => {
|
|
2290
|
+
const r = K("VjIcon");
|
|
2291
|
+
return f(), g("div", ta, [
|
|
2292
2292
|
O(r, {
|
|
2293
|
-
icon:
|
|
2294
|
-
size:
|
|
2293
|
+
icon: S(F).SEARCH,
|
|
2294
|
+
size: S(q).S
|
|
2295
2295
|
}, null, 8, ["icon", "size"]),
|
|
2296
2296
|
x("input", {
|
|
2297
2297
|
value: n.value,
|
|
2298
2298
|
onInput: t,
|
|
2299
2299
|
type: "text",
|
|
2300
2300
|
placeholder: e.placeholder
|
|
2301
|
-
}, null, 40,
|
|
2301
|
+
}, null, 40, na),
|
|
2302
2302
|
O(r, {
|
|
2303
|
-
class:
|
|
2304
|
-
icon:
|
|
2305
|
-
size:
|
|
2303
|
+
class: z(["reset", { invisible: l.value }]),
|
|
2304
|
+
icon: S(F).CLOSE,
|
|
2305
|
+
size: S(q).S,
|
|
2306
2306
|
onClick: o
|
|
2307
2307
|
}, null, 8, ["class", "icon", "size"])
|
|
2308
2308
|
]);
|
|
2309
2309
|
};
|
|
2310
2310
|
}
|
|
2311
|
-
}),
|
|
2311
|
+
}), la = /* @__PURE__ */ B(oa, [["__scopeId", "data-v-2771c8ed"]]), aa = /* @__PURE__ */ T({
|
|
2312
2312
|
__name: "separator",
|
|
2313
2313
|
props: {
|
|
2314
2314
|
vertical: { type: Boolean }
|
|
2315
2315
|
},
|
|
2316
2316
|
setup(e) {
|
|
2317
|
-
return (n, t) => (
|
|
2318
|
-
class:
|
|
2317
|
+
return (n, t) => (f(), g("div", {
|
|
2318
|
+
class: z(["separator", { vertical: e.vertical }])
|
|
2319
2319
|
}, null, 2));
|
|
2320
2320
|
}
|
|
2321
|
-
}),
|
|
2321
|
+
}), ia = /* @__PURE__ */ B(aa, [["__scopeId", "data-v-e354bb4e"]]), sa = { class: "tab-view" }, ra = {
|
|
2322
2322
|
ref: "headerRef",
|
|
2323
2323
|
class: "tab-view-header"
|
|
2324
|
-
},
|
|
2324
|
+
}, ca = ["onClick"], ua = { class: "tab-view-content" }, da = /* @__PURE__ */ T({
|
|
2325
2325
|
__name: "tab-view",
|
|
2326
2326
|
props: {
|
|
2327
2327
|
modelValue: {},
|
|
@@ -2332,69 +2332,69 @@ const rn = {
|
|
|
2332
2332
|
const n = ve(e, "modelValue"), t = C([]), o = C([]), l = C({
|
|
2333
2333
|
width: "0px",
|
|
2334
2334
|
transform: "translateX(0px)"
|
|
2335
|
-
}),
|
|
2335
|
+
}), a = (s, u) => {
|
|
2336
2336
|
s && (o.value[u] = s);
|
|
2337
|
-
},
|
|
2337
|
+
}, i = () => {
|
|
2338
2338
|
const s = t.value.findIndex((u) => u.name === n.value);
|
|
2339
2339
|
if (s >= 0 && o.value[s]) {
|
|
2340
|
-
const u = o.value[s], d = u.offsetWidth,
|
|
2340
|
+
const u = o.value[s], d = u.offsetWidth, v = u.offsetLeft;
|
|
2341
2341
|
l.value = {
|
|
2342
2342
|
width: `${d}px`,
|
|
2343
|
-
transform: `translateX(${
|
|
2343
|
+
transform: `translateX(${v}px)`
|
|
2344
2344
|
};
|
|
2345
2345
|
}
|
|
2346
2346
|
}, r = (s, u) => {
|
|
2347
2347
|
t.value.find((d) => d.name === s) || (t.value.push({ name: s, label: u }), me(() => {
|
|
2348
|
-
!n.value && t.value.length === 1 && (n.value = s),
|
|
2348
|
+
!n.value && t.value.length === 1 && (n.value = s), i();
|
|
2349
2349
|
}));
|
|
2350
2350
|
}, c = (s) => {
|
|
2351
2351
|
n.value = s;
|
|
2352
2352
|
};
|
|
2353
2353
|
return X(n, () => {
|
|
2354
2354
|
me(() => {
|
|
2355
|
-
|
|
2355
|
+
i();
|
|
2356
2356
|
});
|
|
2357
|
-
}),
|
|
2357
|
+
}), _n("tabView", {
|
|
2358
2358
|
activeTab: () => n.value,
|
|
2359
2359
|
registerTab: r
|
|
2360
|
-
}), (s, u) => (
|
|
2361
|
-
x("div",
|
|
2362
|
-
(
|
|
2360
|
+
}), (s, u) => (f(), g("div", sa, [
|
|
2361
|
+
x("div", ra, [
|
|
2362
|
+
(f(!0), g(Z, null, ge(t.value, (d, v) => (f(), g("div", {
|
|
2363
2363
|
key: d.name,
|
|
2364
2364
|
ref_for: !0,
|
|
2365
|
-
ref: (m) =>
|
|
2366
|
-
class:
|
|
2365
|
+
ref: (m) => a(m, v),
|
|
2366
|
+
class: z(["tab-button", { active: n.value === d.name }]),
|
|
2367
2367
|
onClick: (m) => c(d.name)
|
|
2368
|
-
}, D(d.label), 11,
|
|
2368
|
+
}, D(d.label), 11, ca))), 128)),
|
|
2369
2369
|
u[0] || (u[0] = x("div", { class: "tab-line" }, null, -1)),
|
|
2370
2370
|
x("div", {
|
|
2371
2371
|
class: "tab-indicator",
|
|
2372
|
-
style:
|
|
2372
|
+
style: G(l.value)
|
|
2373
2373
|
}, null, 4)
|
|
2374
2374
|
], 512),
|
|
2375
|
-
x("div",
|
|
2375
|
+
x("div", ua, [
|
|
2376
2376
|
M(s.$slots, "default", {}, void 0, !0)
|
|
2377
2377
|
])
|
|
2378
2378
|
]));
|
|
2379
2379
|
}
|
|
2380
|
-
}),
|
|
2380
|
+
}), fa = /* @__PURE__ */ B(da, [["__scopeId", "data-v-3d4ee454"]]), va = {
|
|
2381
2381
|
key: 0,
|
|
2382
2382
|
class: "tab"
|
|
2383
|
-
},
|
|
2383
|
+
}, ma = /* @__PURE__ */ T({
|
|
2384
2384
|
__name: "tab",
|
|
2385
2385
|
props: {
|
|
2386
2386
|
name: {},
|
|
2387
2387
|
label: {}
|
|
2388
2388
|
},
|
|
2389
2389
|
setup(e) {
|
|
2390
|
-
const n = e, t =
|
|
2391
|
-
return
|
|
2390
|
+
const n = e, t = Kt("tabView"), o = E(() => t?.activeTab() === n.name);
|
|
2391
|
+
return De(() => {
|
|
2392
2392
|
t?.registerTab(n.name, n.label);
|
|
2393
|
-
}), (l,
|
|
2393
|
+
}), (l, a) => o.value ? (f(), g("div", va, [
|
|
2394
2394
|
M(l.$slots, "default")
|
|
2395
2395
|
])) : L("", !0);
|
|
2396
2396
|
}
|
|
2397
|
-
}),
|
|
2397
|
+
}), pa = ["onKeydown"], ha = /* @__PURE__ */ T({
|
|
2398
2398
|
__name: "editable-label",
|
|
2399
2399
|
props: {
|
|
2400
2400
|
modelValue: {},
|
|
@@ -2402,56 +2402,56 @@ const rn = {
|
|
|
2402
2402
|
},
|
|
2403
2403
|
emits: ["update:modelValue", "edit"],
|
|
2404
2404
|
setup(e, { emit: n }) {
|
|
2405
|
-
const t = e, o = n, l = E(() => t.modelValue ?? ""),
|
|
2405
|
+
const t = e, o = n, l = E(() => t.modelValue ?? ""), a = C(l.value), i = C(!1), r = C(!1), c = C(null), s = E(() => !!t.showIcon);
|
|
2406
2406
|
X(l, (m) => {
|
|
2407
|
-
|
|
2407
|
+
a.value = m;
|
|
2408
2408
|
});
|
|
2409
2409
|
function u() {
|
|
2410
|
-
|
|
2410
|
+
i.value = !0, me(() => c.value?.focus());
|
|
2411
2411
|
}
|
|
2412
2412
|
function d() {
|
|
2413
|
-
|
|
2413
|
+
i.value = !1, a.value !== l.value && (o("update:modelValue", a.value), o("edit", a.value));
|
|
2414
2414
|
}
|
|
2415
|
-
function
|
|
2416
|
-
|
|
2415
|
+
function v() {
|
|
2416
|
+
a.value = l.value, i.value = !1;
|
|
2417
2417
|
}
|
|
2418
|
-
return (m, p) => (
|
|
2419
|
-
class:
|
|
2418
|
+
return (m, p) => (f(), g("span", {
|
|
2419
|
+
class: z(["vj-editable-label", { editing: i.value }]),
|
|
2420
2420
|
onMouseenter: p[1] || (p[1] = (_) => r.value = !0),
|
|
2421
2421
|
onMouseleave: p[2] || (p[2] = (_) => r.value = !1)
|
|
2422
2422
|
}, [
|
|
2423
|
-
|
|
2423
|
+
i.value ? ct((f(), g("input", {
|
|
2424
2424
|
key: 1,
|
|
2425
2425
|
ref_key: "inputRef",
|
|
2426
2426
|
ref: c,
|
|
2427
2427
|
class: "edit-input",
|
|
2428
|
-
"onUpdate:modelValue": p[0] || (p[0] = (_) =>
|
|
2428
|
+
"onUpdate:modelValue": p[0] || (p[0] = (_) => a.value = _),
|
|
2429
2429
|
onKeydown: [
|
|
2430
|
-
lt(
|
|
2431
|
-
lt(
|
|
2430
|
+
lt(N(d, ["prevent"]), ["enter"]),
|
|
2431
|
+
lt(N(v, ["prevent"]), ["esc"])
|
|
2432
2432
|
],
|
|
2433
2433
|
onBlur: d
|
|
2434
|
-
}, null, 40,
|
|
2435
|
-
[
|
|
2436
|
-
]) : (
|
|
2434
|
+
}, null, 40, pa)), [
|
|
2435
|
+
[xn, a.value]
|
|
2436
|
+
]) : (f(), g(Z, { key: 0 }, [
|
|
2437
2437
|
x("span", {
|
|
2438
2438
|
class: "label-text",
|
|
2439
2439
|
onClick: u,
|
|
2440
2440
|
title: "Click to edit"
|
|
2441
2441
|
}, D(l.value), 1),
|
|
2442
|
-
r.value || s.value ? (
|
|
2442
|
+
r.value || s.value ? (f(), g("span", {
|
|
2443
2443
|
key: 0,
|
|
2444
2444
|
class: "edit-icon",
|
|
2445
|
-
onClick:
|
|
2445
|
+
onClick: N(u, ["stop"])
|
|
2446
2446
|
}, [
|
|
2447
|
-
O(
|
|
2448
|
-
icon:
|
|
2447
|
+
O(be, {
|
|
2448
|
+
icon: S(F).EDIT
|
|
2449
2449
|
}, null, 8, ["icon"])
|
|
2450
2450
|
])) : L("", !0)
|
|
2451
2451
|
], 64))
|
|
2452
2452
|
], 34));
|
|
2453
2453
|
}
|
|
2454
|
-
}),
|
|
2454
|
+
}), Mi = /* @__PURE__ */ B(ha, [["__scopeId", "data-v-cdc52c5b"]]), ga = "200% 200%", ba = /* @__PURE__ */ T({
|
|
2455
2455
|
__name: "skeleton",
|
|
2456
2456
|
props: {
|
|
2457
2457
|
width: {},
|
|
@@ -2460,55 +2460,82 @@ const rn = {
|
|
|
2460
2460
|
},
|
|
2461
2461
|
setup(e) {
|
|
2462
2462
|
const n = e, t = E(() => n.width ?? "100%"), o = E(() => n.height ?? "16px"), l = E(() => n.borderRadius ?? "4px");
|
|
2463
|
-
return (
|
|
2463
|
+
return (a, i) => (f(), g("div", {
|
|
2464
2464
|
class: "vj-skeleton",
|
|
2465
|
-
style:
|
|
2465
|
+
style: G({
|
|
2466
2466
|
width: t.value,
|
|
2467
2467
|
height: o.value,
|
|
2468
2468
|
borderRadius: l.value,
|
|
2469
|
-
backgroundSize:
|
|
2469
|
+
backgroundSize: ga
|
|
2470
2470
|
}),
|
|
2471
2471
|
"aria-hidden": "true"
|
|
2472
2472
|
}, null, 4));
|
|
2473
2473
|
}
|
|
2474
|
-
}),
|
|
2474
|
+
}), ya = /* @__PURE__ */ B(ba, [["__scopeId", "data-v-ac05e016"]]), wa = /* @__PURE__ */ T({
|
|
2475
|
+
__name: "amount-bar",
|
|
2476
|
+
props: {
|
|
2477
|
+
amount: {},
|
|
2478
|
+
maxAmount: {},
|
|
2479
|
+
segments: {}
|
|
2480
|
+
},
|
|
2481
|
+
setup(e) {
|
|
2482
|
+
const n = e, t = E(() => n.amount / n.maxAmount * 100), o = (a) => {
|
|
2483
|
+
if (!n.segments) return !1;
|
|
2484
|
+
const i = 100 / n.segments, r = a * i;
|
|
2485
|
+
return t.value > r;
|
|
2486
|
+
}, l = (a) => (160 - a / (n.segments - 1 || 1) * 160).toString();
|
|
2487
|
+
return (a, i) => (f(), g("div", {
|
|
2488
|
+
class: z(["amount-bar", { "amount-bar--segmented": e.segments }])
|
|
2489
|
+
}, [
|
|
2490
|
+
e.segments ? (f(!0), g(Z, { key: 0 }, ge(Array.from({ length: e.segments }), (r, c) => (f(), g("div", {
|
|
2491
|
+
key: c,
|
|
2492
|
+
class: z(["amount-bar__segment", { "amount-bar__segment--filled": o(c) }]),
|
|
2493
|
+
style: G({ "--segment-hue": l(c) })
|
|
2494
|
+
}, null, 6))), 128)) : (f(), g("div", {
|
|
2495
|
+
key: 1,
|
|
2496
|
+
class: "amount-bar__fill",
|
|
2497
|
+
style: G({ width: `${e.amount / e.maxAmount * 100}%` })
|
|
2498
|
+
}, null, 4))
|
|
2499
|
+
], 2));
|
|
2500
|
+
}
|
|
2501
|
+
}), _a = /* @__PURE__ */ B(wa, [["__scopeId", "data-v-f85c6d8c"]]), dn = {
|
|
2475
2502
|
form: {
|
|
2476
2503
|
labelPosition: "inline",
|
|
2477
2504
|
appearance: "bordered"
|
|
2478
2505
|
}
|
|
2479
2506
|
};
|
|
2480
|
-
let
|
|
2481
|
-
function
|
|
2482
|
-
|
|
2483
|
-
...
|
|
2507
|
+
let Xe = {};
|
|
2508
|
+
function ji(e) {
|
|
2509
|
+
Xe = {
|
|
2510
|
+
...Xe,
|
|
2484
2511
|
...e,
|
|
2485
2512
|
form: {
|
|
2486
|
-
...
|
|
2513
|
+
...dn.form,
|
|
2487
2514
|
...e.form
|
|
2488
2515
|
}
|
|
2489
2516
|
};
|
|
2490
2517
|
}
|
|
2491
|
-
function
|
|
2518
|
+
function It() {
|
|
2492
2519
|
return {
|
|
2493
2520
|
form: {
|
|
2494
|
-
...
|
|
2495
|
-
...
|
|
2521
|
+
...dn.form,
|
|
2522
|
+
...Xe.form
|
|
2496
2523
|
}
|
|
2497
2524
|
};
|
|
2498
2525
|
}
|
|
2499
|
-
function
|
|
2500
|
-
|
|
2526
|
+
function Fi() {
|
|
2527
|
+
Xe = {};
|
|
2501
2528
|
}
|
|
2502
|
-
const
|
|
2529
|
+
const xa = ["data-colspan", "data-newline"], ka = ["for"], Va = { class: "form-field__wrapper" }, Ea = ["for"], Ca = {
|
|
2503
2530
|
key: 1,
|
|
2504
2531
|
class: "form-field__error"
|
|
2505
|
-
},
|
|
2532
|
+
}, La = {
|
|
2506
2533
|
key: 2,
|
|
2507
2534
|
class: "form-field__help",
|
|
2508
2535
|
type: "button",
|
|
2509
2536
|
"aria-label": "Hilfe"
|
|
2510
|
-
},
|
|
2511
|
-
directives: { tooltip:
|
|
2537
|
+
}, $a = /* @__PURE__ */ T({
|
|
2538
|
+
directives: { tooltip: un },
|
|
2512
2539
|
__name: "form-field",
|
|
2513
2540
|
props: {
|
|
2514
2541
|
modelValue: {},
|
|
@@ -2526,7 +2553,7 @@ const ba = ["data-colspan", "data-newline"], ya = ["for"], wa = { class: "form-f
|
|
|
2526
2553
|
},
|
|
2527
2554
|
emits: ["update:modelValue", "focus", "blur"],
|
|
2528
2555
|
setup(e, { emit: n }) {
|
|
2529
|
-
const t = e, o = n, l = C(t.modelValue),
|
|
2556
|
+
const t = e, o = n, l = C(t.modelValue), a = C(!1), i = E(() => `form-field-${t.id ?? Math.random().toString(36).slice(2)}`), r = E(() => t.labelPosition ?? It().form.labelPosition), c = E(() => t.appearance ?? It().form.appearance);
|
|
2530
2557
|
X(
|
|
2531
2558
|
() => t.modelValue,
|
|
2532
2559
|
(p) => l.value = p
|
|
@@ -2535,22 +2562,22 @@ const ba = ["data-colspan", "data-newline"], ya = ["for"], wa = { class: "form-f
|
|
|
2535
2562
|
if (r.value === "outline")
|
|
2536
2563
|
return !0;
|
|
2537
2564
|
const p = l.value !== "" && l.value !== null && l.value !== void 0;
|
|
2538
|
-
return
|
|
2565
|
+
return a.value || p;
|
|
2539
2566
|
}), u = E(() => r.value === "outline" || s.value ? t.placeholder : "");
|
|
2540
2567
|
function d(p) {
|
|
2541
2568
|
const h = p.target.value;
|
|
2542
2569
|
l.value = h, o("update:modelValue", h);
|
|
2543
2570
|
}
|
|
2544
|
-
function
|
|
2545
|
-
|
|
2571
|
+
function v(p) {
|
|
2572
|
+
a.value = !0, o("focus", p);
|
|
2546
2573
|
}
|
|
2547
2574
|
function m(p) {
|
|
2548
|
-
|
|
2575
|
+
a.value = !1, o("blur", p);
|
|
2549
2576
|
}
|
|
2550
2577
|
return (p, _) => {
|
|
2551
|
-
const h =
|
|
2552
|
-
return
|
|
2553
|
-
class:
|
|
2578
|
+
const h = K("VjIcon"), y = Nt("tooltip");
|
|
2579
|
+
return f(), g("div", {
|
|
2580
|
+
class: z([
|
|
2554
2581
|
"form-field",
|
|
2555
2582
|
`form-field--${r.value}`,
|
|
2556
2583
|
`form-field--${c.value}`,
|
|
@@ -2560,41 +2587,41 @@ const ba = ["data-colspan", "data-newline"], ya = ["for"], wa = { class: "form-f
|
|
|
2560
2587
|
]),
|
|
2561
2588
|
"data-colspan": t.spanRow ? void 0 : t.colspan,
|
|
2562
2589
|
"data-newline": t.spanRow || t.newLine ? "true" : void 0,
|
|
2563
|
-
style:
|
|
2590
|
+
style: G(t.spanRow ? { gridColumn: "1 / -1" } : void 0)
|
|
2564
2591
|
}, [
|
|
2565
|
-
e.label && r.value === "outline" ? (
|
|
2592
|
+
e.label && r.value === "outline" ? (f(), g("label", {
|
|
2566
2593
|
key: 0,
|
|
2567
|
-
for:
|
|
2594
|
+
for: i.value,
|
|
2568
2595
|
class: "form-field__label-outline"
|
|
2569
|
-
}, D(e.label), 9,
|
|
2570
|
-
x("div",
|
|
2596
|
+
}, D(e.label), 9, ka)) : L("", !0),
|
|
2597
|
+
x("div", Va, [
|
|
2571
2598
|
M(p.$slots, "control", {
|
|
2572
|
-
id:
|
|
2599
|
+
id: i.value,
|
|
2573
2600
|
value: l.value,
|
|
2574
2601
|
onInput: d,
|
|
2575
|
-
onFocus:
|
|
2602
|
+
onFocus: v,
|
|
2576
2603
|
onBlur: m,
|
|
2577
2604
|
disabled: e.disabled,
|
|
2578
2605
|
placeholder: u.value
|
|
2579
2606
|
}, void 0, !0),
|
|
2580
|
-
e.label && r.value === "inline" ? (
|
|
2607
|
+
e.label && r.value === "inline" ? (f(), g("label", {
|
|
2581
2608
|
key: 0,
|
|
2582
|
-
for:
|
|
2583
|
-
class:
|
|
2584
|
-
}, D(e.label), 11,
|
|
2609
|
+
for: i.value,
|
|
2610
|
+
class: z(["form-field__label", { "form-field__label--float": s.value }])
|
|
2611
|
+
}, D(e.label), 11, Ea)) : L("", !0)
|
|
2585
2612
|
]),
|
|
2586
|
-
e.error ? (
|
|
2587
|
-
t.helpText ? ct((
|
|
2613
|
+
e.error ? (f(), g("div", Ca, D(e.error), 1)) : L("", !0),
|
|
2614
|
+
t.helpText ? ct((f(), g("button", La, [
|
|
2588
2615
|
O(h, {
|
|
2589
|
-
icon:
|
|
2616
|
+
icon: S(F).HELP
|
|
2590
2617
|
}, null, 8, ["icon"])
|
|
2591
2618
|
])), [
|
|
2592
2619
|
[y, t.helpText]
|
|
2593
2620
|
]) : L("", !0)
|
|
2594
|
-
], 14,
|
|
2621
|
+
], 14, xa);
|
|
2595
2622
|
};
|
|
2596
2623
|
}
|
|
2597
|
-
}),
|
|
2624
|
+
}), ze = /* @__PURE__ */ B($a, [["__scopeId", "data-v-19959d5e"]]), Sa = /* @__PURE__ */ T({
|
|
2598
2625
|
__name: "form-layout",
|
|
2599
2626
|
props: {
|
|
2600
2627
|
columns: { type: Number, default: 4 },
|
|
@@ -2605,12 +2632,12 @@ const ba = ["data-colspan", "data-newline"], ya = ["for"], wa = { class: "form-f
|
|
|
2605
2632
|
let o = null;
|
|
2606
2633
|
function l() {
|
|
2607
2634
|
if (!t.value) return;
|
|
2608
|
-
Array.from(t.value.children).forEach((
|
|
2609
|
-
const r =
|
|
2610
|
-
s !== null && s !== "false" ?
|
|
2635
|
+
Array.from(t.value.children).forEach((i) => {
|
|
2636
|
+
const r = i.getAttribute("data-colspan"), c = r ? Math.max(1, Number(r) || 1) : 1, s = i.getAttribute("data-newline");
|
|
2637
|
+
s !== null && s !== "false" ? i.style.gridColumn = "1 / -1" : i.style.gridColumn = `span ${c}`;
|
|
2611
2638
|
});
|
|
2612
2639
|
}
|
|
2613
|
-
return
|
|
2640
|
+
return De(() => {
|
|
2614
2641
|
me(() => {
|
|
2615
2642
|
l(), t.value && (o = new MutationObserver(() => l()), o.observe(t.value, { childList: !0, subtree: !1, attributes: !0, attributeFilter: ["data-colspan", "data-newline"] }));
|
|
2616
2643
|
});
|
|
@@ -2622,37 +2649,37 @@ const ba = ["data-colspan", "data-newline"], ya = ["for"], wa = { class: "form-f
|
|
|
2622
2649
|
), X(
|
|
2623
2650
|
() => n.gap,
|
|
2624
2651
|
() => me(l)
|
|
2625
|
-
), (
|
|
2652
|
+
), (a, i) => (f(), g("div", {
|
|
2626
2653
|
ref_key: "container",
|
|
2627
2654
|
ref: t,
|
|
2628
2655
|
class: "form-layout",
|
|
2629
|
-
style:
|
|
2656
|
+
style: G({ gridTemplateColumns: `repeat(${e.columns}, minmax(0, 1fr))`, gap: e.gap })
|
|
2630
2657
|
}, [
|
|
2631
|
-
M(
|
|
2658
|
+
M(a.$slots, "default", {}, void 0, !0)
|
|
2632
2659
|
], 4));
|
|
2633
2660
|
}
|
|
2634
|
-
}),
|
|
2661
|
+
}), Ra = /* @__PURE__ */ B(Sa, [["__scopeId", "data-v-96f62ab7"]]), Ta = {
|
|
2635
2662
|
key: 0,
|
|
2636
2663
|
class: "form-section__title",
|
|
2637
2664
|
"data-newline": ""
|
|
2638
|
-
},
|
|
2665
|
+
}, Aa = /* @__PURE__ */ T({
|
|
2639
2666
|
__name: "form-section",
|
|
2640
2667
|
props: {
|
|
2641
2668
|
title: {}
|
|
2642
2669
|
},
|
|
2643
2670
|
setup(e) {
|
|
2644
|
-
return (n, t) => (
|
|
2645
|
-
e.title ? (
|
|
2671
|
+
return (n, t) => (f(), g(Z, null, [
|
|
2672
|
+
e.title ? (f(), g("h3", Ta, D(e.title), 1)) : L("", !0),
|
|
2646
2673
|
M(n.$slots, "default", {}, void 0, !0)
|
|
2647
2674
|
], 64));
|
|
2648
2675
|
}
|
|
2649
|
-
}),
|
|
2676
|
+
}), Oa = /* @__PURE__ */ B(Aa, [["__scopeId", "data-v-69cff1d0"]]), Ba = ["id", "disabled"], Da = { class: "select-value" }, Pa = {
|
|
2650
2677
|
key: 1,
|
|
2651
2678
|
class: "select-placeholder"
|
|
2652
|
-
},
|
|
2679
|
+
}, Ma = { class: "select-options" }, ja = ["onClick", "onMouseenter"], Fa = /* @__PURE__ */ T({
|
|
2653
2680
|
inheritAttrs: !1,
|
|
2654
2681
|
__name: "select",
|
|
2655
|
-
props: /* @__PURE__ */
|
|
2682
|
+
props: /* @__PURE__ */ ee({
|
|
2656
2683
|
options: {},
|
|
2657
2684
|
placeholder: {},
|
|
2658
2685
|
disabled: { type: Boolean },
|
|
@@ -2667,13 +2694,13 @@ const ba = ["data-colspan", "data-newline"], ya = ["for"], wa = { class: "form-f
|
|
|
2667
2694
|
}),
|
|
2668
2695
|
emits: ["update:modelValue"],
|
|
2669
2696
|
setup(e, { expose: n }) {
|
|
2670
|
-
const t = e, o = ve(e, "modelValue"), l = C(!1),
|
|
2697
|
+
const t = e, o = ve(e, "modelValue"), l = C(!1), a = C(-1), i = C(null), r = C(null), c = C(null), { floatingStyles: s } = gt(r, c, {
|
|
2671
2698
|
placement: "bottom-start",
|
|
2672
2699
|
middleware: [
|
|
2673
2700
|
Ze(4),
|
|
2674
2701
|
tt(),
|
|
2675
2702
|
et({ padding: 8 }),
|
|
2676
|
-
|
|
2703
|
+
ul({
|
|
2677
2704
|
apply({ rects: b, elements: $ }) {
|
|
2678
2705
|
Object.assign($.floating.style, {
|
|
2679
2706
|
minWidth: `${b.reference.width}px`
|
|
@@ -2682,33 +2709,33 @@ const ba = ["data-colspan", "data-newline"], ya = ["for"], wa = { class: "form-f
|
|
|
2682
2709
|
})
|
|
2683
2710
|
],
|
|
2684
2711
|
whileElementsMounted: Qe
|
|
2685
|
-
}), u = (b) => t.optionLabel ? typeof t.optionLabel == "function" ? t.optionLabel(b) : String(b[t.optionLabel]) : String(b), d = (b) => t.optionValue ? typeof t.optionValue == "function" ? t.optionValue(b) : b[t.optionValue] : b,
|
|
2712
|
+
}), u = (b) => t.optionLabel ? typeof t.optionLabel == "function" ? t.optionLabel(b) : String(b[t.optionLabel]) : String(b), d = (b) => t.optionValue ? typeof t.optionValue == "function" ? t.optionValue(b) : b[t.optionValue] : b, v = E(() => t.options.find((b) => d(b) === o.value)), m = (b) => d(b) === o.value, p = () => {
|
|
2686
2713
|
t.disabled || (l.value = !l.value);
|
|
2687
2714
|
}, _ = () => {
|
|
2688
|
-
l.value = !1,
|
|
2715
|
+
l.value = !1, a.value = -1;
|
|
2689
2716
|
}, h = (b) => {
|
|
2690
2717
|
o.value = d(b), _();
|
|
2691
2718
|
}, y = () => {
|
|
2692
2719
|
o.value = void 0;
|
|
2693
2720
|
}, w = (b) => {
|
|
2694
|
-
l.value &&
|
|
2721
|
+
l.value && i.value && !i.value.contains(b.target) && _();
|
|
2695
2722
|
};
|
|
2696
|
-
return
|
|
2723
|
+
return De(() => {
|
|
2697
2724
|
document.addEventListener("click", w);
|
|
2698
2725
|
}), Re(() => {
|
|
2699
2726
|
document.removeEventListener("click", w);
|
|
2700
2727
|
}), X(l, (b) => {
|
|
2701
|
-
b &&
|
|
2728
|
+
b && v.value && (a.value = t.options.findIndex(($) => m($)));
|
|
2702
2729
|
}), n({
|
|
2703
2730
|
focus: () => r.value?.focus(),
|
|
2704
2731
|
blur: () => r.value?.blur()
|
|
2705
2732
|
}), (b, $) => {
|
|
2706
|
-
const P =
|
|
2707
|
-
return
|
|
2733
|
+
const P = K("VjIcon");
|
|
2734
|
+
return f(), g(Z, null, [
|
|
2708
2735
|
x("div", {
|
|
2709
2736
|
ref_key: "selectRef",
|
|
2710
|
-
ref:
|
|
2711
|
-
class:
|
|
2737
|
+
ref: i,
|
|
2738
|
+
class: z(["select", b.$attrs.class])
|
|
2712
2739
|
}, [
|
|
2713
2740
|
x("button", {
|
|
2714
2741
|
ref_key: "buttonRef",
|
|
@@ -2719,64 +2746,64 @@ const ba = ["data-colspan", "data-newline"], ya = ["for"], wa = { class: "form-f
|
|
|
2719
2746
|
onClick: p,
|
|
2720
2747
|
disabled: e.disabled
|
|
2721
2748
|
}, [
|
|
2722
|
-
t.icon ? (
|
|
2749
|
+
t.icon ? (f(), j(P, {
|
|
2723
2750
|
key: 0,
|
|
2724
2751
|
icon: t.icon,
|
|
2725
|
-
size:
|
|
2752
|
+
size: S(q).S,
|
|
2726
2753
|
class: "select-icon-left"
|
|
2727
2754
|
}, null, 8, ["icon", "size"])) : L("", !0),
|
|
2728
|
-
x("span",
|
|
2729
|
-
|
|
2755
|
+
x("span", Da, [
|
|
2756
|
+
v.value ? M(b.$slots, "selected", {
|
|
2730
2757
|
key: 0,
|
|
2731
|
-
option:
|
|
2758
|
+
option: v.value
|
|
2732
2759
|
}, () => [
|
|
2733
|
-
|
|
2734
|
-
], !0) : (
|
|
2760
|
+
Ue(D(u(v.value)), 1)
|
|
2761
|
+
], !0) : (f(), g("span", Pa, D(e.placeholder), 1))
|
|
2735
2762
|
]),
|
|
2736
|
-
t.clearable &&
|
|
2763
|
+
t.clearable && v.value && !e.disabled ? (f(), j(P, {
|
|
2737
2764
|
key: 1,
|
|
2738
|
-
icon:
|
|
2739
|
-
size:
|
|
2765
|
+
icon: S(F).CLOSE,
|
|
2766
|
+
size: S(q).S,
|
|
2740
2767
|
class: "select-clear-icon",
|
|
2741
|
-
onClick:
|
|
2768
|
+
onClick: N(y, ["stop"])
|
|
2742
2769
|
}, null, 8, ["icon", "size"])) : L("", !0),
|
|
2743
2770
|
O(P, {
|
|
2744
|
-
icon:
|
|
2745
|
-
size:
|
|
2746
|
-
class:
|
|
2771
|
+
icon: S(F).CHEVRON_DOWN,
|
|
2772
|
+
size: S(q).S,
|
|
2773
|
+
class: z(["select-icon-right", { open: l.value }])
|
|
2747
2774
|
}, null, 8, ["icon", "size", "class"])
|
|
2748
|
-
], 8,
|
|
2775
|
+
], 8, Ba),
|
|
2749
2776
|
O(Oe, { name: "dropdown" }, {
|
|
2750
2777
|
default: W(() => [
|
|
2751
|
-
l.value ? (
|
|
2778
|
+
l.value ? (f(), g("div", {
|
|
2752
2779
|
key: 0,
|
|
2753
2780
|
ref_key: "floatingRef",
|
|
2754
2781
|
ref: c,
|
|
2755
|
-
style:
|
|
2782
|
+
style: G(S(s)),
|
|
2756
2783
|
class: "select-dropdown"
|
|
2757
2784
|
}, [
|
|
2758
|
-
x("div",
|
|
2759
|
-
(
|
|
2760
|
-
key: String(d(
|
|
2761
|
-
class:
|
|
2762
|
-
onClick: (V) => h(
|
|
2763
|
-
onMouseenter: (V) =>
|
|
2785
|
+
x("div", Ma, [
|
|
2786
|
+
(f(!0), g(Z, null, ge(e.options, (I, k) => (f(), g("div", {
|
|
2787
|
+
key: String(d(I)),
|
|
2788
|
+
class: z(["select-option", { selected: m(I), highlighted: a.value === k }]),
|
|
2789
|
+
onClick: (V) => h(I),
|
|
2790
|
+
onMouseenter: (V) => a.value = k
|
|
2764
2791
|
}, [
|
|
2765
2792
|
M(b.$slots, "option", {
|
|
2766
|
-
option:
|
|
2767
|
-
selected: m(
|
|
2793
|
+
option: I,
|
|
2794
|
+
selected: m(I)
|
|
2768
2795
|
}, () => [
|
|
2769
|
-
|
|
2796
|
+
Ue(D(u(I)), 1)
|
|
2770
2797
|
], !0)
|
|
2771
|
-
], 42,
|
|
2798
|
+
], 42, ja))), 128))
|
|
2772
2799
|
])
|
|
2773
2800
|
], 4)) : L("", !0)
|
|
2774
2801
|
]),
|
|
2775
2802
|
_: 3
|
|
2776
2803
|
})
|
|
2777
2804
|
], 2),
|
|
2778
|
-
(
|
|
2779
|
-
l.value ? (
|
|
2805
|
+
(f(), j(Pe, { to: "body" }, [
|
|
2806
|
+
l.value ? (f(), g("div", {
|
|
2780
2807
|
key: 0,
|
|
2781
2808
|
class: "select-backdrop",
|
|
2782
2809
|
onClick: _
|
|
@@ -2785,7 +2812,7 @@ const ba = ["data-colspan", "data-newline"], ya = ["for"], wa = { class: "form-f
|
|
|
2785
2812
|
], 64);
|
|
2786
2813
|
};
|
|
2787
2814
|
}
|
|
2788
|
-
}),
|
|
2815
|
+
}), fn = /* @__PURE__ */ B(Fa, [["__scopeId", "data-v-fc22f0e9"]]), za = /* @__PURE__ */ T({
|
|
2789
2816
|
__name: "input-select",
|
|
2790
2817
|
props: {
|
|
2791
2818
|
modelValue: {},
|
|
@@ -2807,16 +2834,16 @@ const ba = ["data-colspan", "data-newline"], ya = ["for"], wa = { class: "form-f
|
|
|
2807
2834
|
const t = e, o = n, l = C(t.modelValue);
|
|
2808
2835
|
X(
|
|
2809
2836
|
() => t.modelValue,
|
|
2810
|
-
(
|
|
2811
|
-
l.value =
|
|
2837
|
+
(i) => {
|
|
2838
|
+
l.value = i;
|
|
2812
2839
|
}
|
|
2813
2840
|
);
|
|
2814
|
-
const
|
|
2815
|
-
l.value =
|
|
2841
|
+
const a = (i) => {
|
|
2842
|
+
l.value = i, o("update:modelValue", i);
|
|
2816
2843
|
};
|
|
2817
|
-
return (
|
|
2844
|
+
return (i, r) => (f(), j(ze, {
|
|
2818
2845
|
modelValue: l.value,
|
|
2819
|
-
"onUpdate:modelValue":
|
|
2846
|
+
"onUpdate:modelValue": a,
|
|
2820
2847
|
label: t.label,
|
|
2821
2848
|
id: t.id,
|
|
2822
2849
|
placeholder: t.placeholder,
|
|
@@ -2830,12 +2857,12 @@ const ba = ["data-colspan", "data-newline"], ya = ["for"], wa = { class: "form-f
|
|
|
2830
2857
|
appearance: t.appearance
|
|
2831
2858
|
}, {
|
|
2832
2859
|
control: W(({ id: c, disabled: s, placeholder: u }) => [
|
|
2833
|
-
O(
|
|
2860
|
+
O(fn, {
|
|
2834
2861
|
id: c,
|
|
2835
2862
|
modelValue: l.value,
|
|
2836
2863
|
"onUpdate:modelValue": [
|
|
2837
2864
|
r[0] || (r[0] = (d) => l.value = d),
|
|
2838
|
-
|
|
2865
|
+
a
|
|
2839
2866
|
],
|
|
2840
2867
|
options: t.options,
|
|
2841
2868
|
placeholder: u,
|
|
@@ -2844,17 +2871,17 @@ const ba = ["data-colspan", "data-newline"], ya = ["for"], wa = { class: "form-f
|
|
|
2844
2871
|
"option-value": (d) => d.value,
|
|
2845
2872
|
clearable: ""
|
|
2846
2873
|
}, rt({ _: 2 }, [
|
|
2847
|
-
|
|
2874
|
+
i.$slots.selected ? {
|
|
2848
2875
|
name: "selected",
|
|
2849
2876
|
fn: W(({ option: d }) => [
|
|
2850
|
-
M(
|
|
2877
|
+
M(i.$slots, "selected", { option: d })
|
|
2851
2878
|
]),
|
|
2852
2879
|
key: "0"
|
|
2853
2880
|
} : void 0,
|
|
2854
|
-
|
|
2881
|
+
i.$slots.option ? {
|
|
2855
2882
|
name: "option",
|
|
2856
2883
|
fn: W(({ option: d }) => [
|
|
2857
|
-
M(
|
|
2884
|
+
M(i.$slots, "option", { option: d })
|
|
2858
2885
|
]),
|
|
2859
2886
|
key: "1"
|
|
2860
2887
|
} : void 0
|
|
@@ -2863,7 +2890,7 @@ const ba = ["data-colspan", "data-newline"], ya = ["for"], wa = { class: "form-f
|
|
|
2863
2890
|
_: 3
|
|
2864
2891
|
}, 8, ["modelValue", "label", "id", "placeholder", "disabled", "colspan", "newLine", "spanRow", "error", "helpText", "labelPosition", "appearance"]));
|
|
2865
2892
|
}
|
|
2866
|
-
}),
|
|
2893
|
+
}), Ia = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-label"], Ha = ["aria-valuemin", "aria-valuemax", "aria-valuenow"], Ua = /* @__PURE__ */ T({
|
|
2867
2894
|
__name: "slider",
|
|
2868
2895
|
props: {
|
|
2869
2896
|
modelValue: { default: void 0 },
|
|
@@ -2874,7 +2901,7 @@ const ba = ["data-colspan", "data-newline"], ya = ["for"], wa = { class: "form-f
|
|
|
2874
2901
|
},
|
|
2875
2902
|
emits: ["update:modelValue", "change"],
|
|
2876
2903
|
setup(e, { emit: n }) {
|
|
2877
|
-
const t = e, o = n, l = C(null),
|
|
2904
|
+
const t = e, o = n, l = C(null), a = C(!1), i = C(!1), r = (k, V, A) => Math.min(Math.max(k, V), A), c = C(
|
|
2878
2905
|
t.range ? Array.isArray(t.modelValue) ? t.modelValue[0] : t.min : typeof t.modelValue == "number" ? t.modelValue : t.min
|
|
2879
2906
|
), s = C(t.range && Array.isArray(t.modelValue) ? t.modelValue[1] : t.max);
|
|
2880
2907
|
X(
|
|
@@ -2884,14 +2911,14 @@ const ba = ["data-colspan", "data-newline"], ya = ["for"], wa = { class: "form-f
|
|
|
2884
2911
|
},
|
|
2885
2912
|
{ immediate: !0 }
|
|
2886
2913
|
);
|
|
2887
|
-
const u = (k) => (k - t.min) / (t.max - t.min) * 100, d = E(() => ({ left: `${u(c.value)}%` })),
|
|
2914
|
+
const u = (k) => (k - t.min) / (t.max - t.min) * 100, d = E(() => ({ left: `${u(c.value)}%` })), v = E(() => ({ left: `${u(s.value)}%` })), m = E(() => {
|
|
2888
2915
|
if (!t.range) return { width: `${u(c.value)}%`, left: "0%" };
|
|
2889
2916
|
const k = u(c.value), V = u(s.value);
|
|
2890
2917
|
return { left: `${k}%`, width: `${Math.max(0, V - k)}%` };
|
|
2891
2918
|
});
|
|
2892
2919
|
let p = null, _ = null;
|
|
2893
2920
|
const h = async (k, V) => {
|
|
2894
|
-
p = k, _ = V.pointerId, k === "low" ?
|
|
2921
|
+
p = k, _ = V.pointerId, k === "low" ? a.value = !0 : i.value = !0;
|
|
2895
2922
|
try {
|
|
2896
2923
|
V.target.setPointerCapture(V.pointerId);
|
|
2897
2924
|
} catch {
|
|
@@ -2903,14 +2930,14 @@ const ba = ["data-colspan", "data-newline"], ya = ["for"], wa = { class: "form-f
|
|
|
2903
2930
|
k.target.releasePointerCapture(k.pointerId);
|
|
2904
2931
|
} catch {
|
|
2905
2932
|
}
|
|
2906
|
-
p = null, _ = null,
|
|
2933
|
+
p = null, _ = null, a.value = !1, i.value = !1, window.removeEventListener("pointermove", w), window.removeEventListener("pointerup", y), P();
|
|
2907
2934
|
}, w = (k) => {
|
|
2908
2935
|
if (!p || !l.value) return;
|
|
2909
|
-
const V = l.value.getBoundingClientRect(),
|
|
2936
|
+
const V = l.value.getBoundingClientRect(), A = r(k.clientX - V.left, 0, V.width), H = t.min + A / V.width * (t.max - t.min), U = Math.round(H / t.step) * t.step;
|
|
2910
2937
|
p === "low" ? t.range ? c.value = Math.min(U, s.value) : c.value = r(U, t.min, t.max) : p === "high" && (s.value = Math.max(U, c.value));
|
|
2911
2938
|
}, b = (k) => {
|
|
2912
2939
|
if (!l.value) return;
|
|
2913
|
-
const V = l.value.getBoundingClientRect(),
|
|
2940
|
+
const V = l.value.getBoundingClientRect(), A = r(k.clientX - V.left, 0, V.width), H = t.min + A / V.width * (t.max - t.min), U = Math.round(H / t.step) * t.step;
|
|
2914
2941
|
if (t.range) {
|
|
2915
2942
|
const ce = Math.abs(U - c.value), ue = Math.abs(U - s.value);
|
|
2916
2943
|
ce <= ue ? c.value = Math.min(U, s.value) : s.value = Math.max(U, c.value);
|
|
@@ -2918,14 +2945,14 @@ const ba = ["data-colspan", "data-newline"], ya = ["for"], wa = { class: "form-f
|
|
|
2918
2945
|
c.value = r(U, t.min, t.max);
|
|
2919
2946
|
P();
|
|
2920
2947
|
}, $ = (k, V) => {
|
|
2921
|
-
const
|
|
2948
|
+
const A = t.step, H = V.key === "ArrowLeft" || V.key === "ArrowDown" ? -1 : V.key === "ArrowRight" || V.key === "ArrowUp" ? 1 : 0;
|
|
2922
2949
|
if (H) {
|
|
2923
2950
|
if (k === "low") {
|
|
2924
|
-
const U = r(c.value + H *
|
|
2925
|
-
c.value = U,
|
|
2951
|
+
const U = r(c.value + H * A, t.min, t.range ? s.value : t.max);
|
|
2952
|
+
c.value = U, a.value = !0, setTimeout(() => a.value = !1, 800);
|
|
2926
2953
|
} else {
|
|
2927
|
-
const U = r(s.value + H *
|
|
2928
|
-
s.value = U,
|
|
2954
|
+
const U = r(s.value + H * A, t.range ? c.value : t.max, t.max);
|
|
2955
|
+
s.value = U, i.value = !0, setTimeout(() => i.value = !1, 800);
|
|
2929
2956
|
}
|
|
2930
2957
|
P();
|
|
2931
2958
|
}
|
|
@@ -2937,12 +2964,12 @@ const ba = ["data-colspan", "data-newline"], ya = ["for"], wa = { class: "form-f
|
|
|
2937
2964
|
}), X([() => t.min, () => t.max], () => {
|
|
2938
2965
|
c.value = r(c.value, t.min, t.max), s.value = r(s.value, t.min, t.max);
|
|
2939
2966
|
});
|
|
2940
|
-
const
|
|
2967
|
+
const I = E(() => t.range);
|
|
2941
2968
|
return me(() => {
|
|
2942
2969
|
t.modelValue === void 0 && (t.range ? o("update:modelValue", [c.value, s.value]) : o("update:modelValue", c.value));
|
|
2943
|
-
}), (k, V) => (
|
|
2970
|
+
}), (k, V) => (f(), g("div", {
|
|
2944
2971
|
class: "vj-slider",
|
|
2945
|
-
onPointerdown: V[8] || (V[8] =
|
|
2972
|
+
onPointerdown: V[8] || (V[8] = N(() => {
|
|
2946
2973
|
}, ["stop"]))
|
|
2947
2974
|
}, [
|
|
2948
2975
|
x("div", {
|
|
@@ -2953,51 +2980,51 @@ const ba = ["data-colspan", "data-newline"], ya = ["for"], wa = { class: "form-f
|
|
|
2953
2980
|
}, [
|
|
2954
2981
|
x("div", {
|
|
2955
2982
|
class: "range",
|
|
2956
|
-
style:
|
|
2983
|
+
style: G(m.value)
|
|
2957
2984
|
}, null, 4),
|
|
2958
|
-
|
|
2985
|
+
a.value ? (f(), g("div", {
|
|
2959
2986
|
key: 0,
|
|
2960
2987
|
class: "tooltip",
|
|
2961
|
-
style:
|
|
2988
|
+
style: G({ left: d.value.left })
|
|
2962
2989
|
}, D(c.value), 5)) : L("", !0),
|
|
2963
2990
|
x("button", {
|
|
2964
2991
|
class: "handle low",
|
|
2965
|
-
style:
|
|
2992
|
+
style: G(d.value),
|
|
2966
2993
|
"aria-valuemin": e.min,
|
|
2967
2994
|
"aria-valuemax": e.max,
|
|
2968
2995
|
"aria-valuenow": c.value,
|
|
2969
|
-
"aria-label":
|
|
2970
|
-
onPointerdown: V[0] || (V[0] =
|
|
2971
|
-
onFocus: V[1] || (V[1] = (
|
|
2972
|
-
onBlur: V[2] || (V[2] = (
|
|
2973
|
-
onKeydown: V[3] || (V[3] =
|
|
2996
|
+
"aria-label": I.value ? "Lower value" : "Value",
|
|
2997
|
+
onPointerdown: V[0] || (V[0] = N((A) => h("low", A), ["prevent"])),
|
|
2998
|
+
onFocus: V[1] || (V[1] = (A) => a.value = !0),
|
|
2999
|
+
onBlur: V[2] || (V[2] = (A) => a.value = !1),
|
|
3000
|
+
onKeydown: V[3] || (V[3] = N((A) => $("low", A), ["stop", "prevent"])),
|
|
2974
3001
|
role: "slider",
|
|
2975
3002
|
tabindex: "0"
|
|
2976
|
-
}, null, 44,
|
|
2977
|
-
|
|
3003
|
+
}, null, 44, Ia),
|
|
3004
|
+
I.value && i.value ? (f(), g("div", {
|
|
2978
3005
|
key: 1,
|
|
2979
3006
|
class: "tooltip",
|
|
2980
|
-
style:
|
|
3007
|
+
style: G({ left: v.value.left })
|
|
2981
3008
|
}, D(s.value), 5)) : L("", !0),
|
|
2982
|
-
|
|
3009
|
+
I.value ? (f(), g("button", {
|
|
2983
3010
|
key: 2,
|
|
2984
3011
|
class: "handle high",
|
|
2985
|
-
style:
|
|
3012
|
+
style: G(v.value),
|
|
2986
3013
|
"aria-valuemin": e.min,
|
|
2987
3014
|
"aria-valuemax": e.max,
|
|
2988
3015
|
"aria-valuenow": s.value,
|
|
2989
3016
|
"aria-label": "Upper value",
|
|
2990
|
-
onPointerdown: V[4] || (V[4] =
|
|
2991
|
-
onFocus: V[5] || (V[5] = (
|
|
2992
|
-
onBlur: V[6] || (V[6] = (
|
|
2993
|
-
onKeydown: V[7] || (V[7] =
|
|
3017
|
+
onPointerdown: V[4] || (V[4] = N((A) => h("high", A), ["prevent"])),
|
|
3018
|
+
onFocus: V[5] || (V[5] = (A) => i.value = !0),
|
|
3019
|
+
onBlur: V[6] || (V[6] = (A) => i.value = !1),
|
|
3020
|
+
onKeydown: V[7] || (V[7] = N((A) => $("high", A), ["stop", "prevent"])),
|
|
2994
3021
|
role: "slider",
|
|
2995
3022
|
tabindex: "0"
|
|
2996
|
-
}, null, 44,
|
|
3023
|
+
}, null, 44, Ha)) : L("", !0)
|
|
2997
3024
|
], 512)
|
|
2998
3025
|
], 32));
|
|
2999
3026
|
}
|
|
3000
|
-
}),
|
|
3027
|
+
}), Wa = /* @__PURE__ */ B(Ua, [["__scopeId", "data-v-d47c7475"]]), Na = ["onFocusin", "onFocusout"], Ka = /* @__PURE__ */ T({
|
|
3001
3028
|
__name: "input-slider",
|
|
3002
3029
|
props: {
|
|
3003
3030
|
modelValue: {},
|
|
@@ -3018,13 +3045,13 @@ const ba = ["data-colspan", "data-newline"], ya = ["for"], wa = { class: "form-f
|
|
|
3018
3045
|
},
|
|
3019
3046
|
emits: ["update:modelValue", "input", "focus", "blur"],
|
|
3020
3047
|
setup(e, { emit: n }) {
|
|
3021
|
-
const t = e, o = n, l = t.modelValue === void 0 ? 0 : Number(t.modelValue),
|
|
3048
|
+
const t = e, o = n, l = t.modelValue === void 0 ? 0 : Number(t.modelValue), a = C(Number.isNaN(l) ? 0 : l), i = (r) => {
|
|
3022
3049
|
const c = typeof r == "number" ? r : Number(r ?? 0);
|
|
3023
|
-
|
|
3050
|
+
a.value = Number.isNaN(c) ? 0 : c, o("update:modelValue", a.value), o("input", a.value);
|
|
3024
3051
|
};
|
|
3025
|
-
return (r, c) => (
|
|
3026
|
-
modelValue:
|
|
3027
|
-
"onUpdate:modelValue":
|
|
3052
|
+
return (r, c) => (f(), j(ze, {
|
|
3053
|
+
modelValue: a.value,
|
|
3054
|
+
"onUpdate:modelValue": i,
|
|
3028
3055
|
label: t.label,
|
|
3029
3056
|
id: t.id,
|
|
3030
3057
|
placeholder: " ",
|
|
@@ -3034,30 +3061,30 @@ const ba = ["data-colspan", "data-newline"], ya = ["for"], wa = { class: "form-f
|
|
|
3034
3061
|
spanRow: t.spanRow,
|
|
3035
3062
|
error: t.error
|
|
3036
3063
|
}, {
|
|
3037
|
-
control: W(({ id: s, disabled: u, placeholder: d, onFocus:
|
|
3064
|
+
control: W(({ id: s, disabled: u, placeholder: d, onFocus: v, onBlur: m }) => [
|
|
3038
3065
|
x("div", {
|
|
3039
3066
|
class: "input-slider__control",
|
|
3040
|
-
onFocusin:
|
|
3067
|
+
onFocusin: v,
|
|
3041
3068
|
onFocusout: m
|
|
3042
3069
|
}, [
|
|
3043
|
-
O(
|
|
3070
|
+
O(Wa, {
|
|
3044
3071
|
id: s,
|
|
3045
|
-
modelValue:
|
|
3046
|
-
"onUpdate:modelValue": c[0] || (c[0] = (p) =>
|
|
3072
|
+
modelValue: a.value,
|
|
3073
|
+
"onUpdate:modelValue": c[0] || (c[0] = (p) => a.value = p),
|
|
3047
3074
|
min: t.min,
|
|
3048
3075
|
max: t.max,
|
|
3049
3076
|
step: t.step,
|
|
3050
3077
|
range: !1,
|
|
3051
3078
|
disabled: u
|
|
3052
3079
|
}, null, 8, ["id", "modelValue", "min", "max", "step", "disabled"])
|
|
3053
|
-
], 40,
|
|
3080
|
+
], 40, Na)
|
|
3054
3081
|
]),
|
|
3055
3082
|
_: 1
|
|
3056
3083
|
}, 8, ["modelValue", "label", "id", "disabled", "colspan", "newLine", "spanRow", "error"]));
|
|
3057
3084
|
}
|
|
3058
|
-
}),
|
|
3085
|
+
}), Xa = /* @__PURE__ */ B(Ka, [["__scopeId", "data-v-051e6d17"]]), Ga = { class: "textarea" }, qa = ["value", "placeholder", "disabled", "rows"], Ya = /* @__PURE__ */ T({
|
|
3059
3086
|
__name: "textarea",
|
|
3060
|
-
props: /* @__PURE__ */
|
|
3087
|
+
props: /* @__PURE__ */ ee({
|
|
3061
3088
|
icon: {},
|
|
3062
3089
|
placeholder: {},
|
|
3063
3090
|
disabled: { type: Boolean },
|
|
@@ -3067,46 +3094,46 @@ const ba = ["data-colspan", "data-newline"], ya = ["for"], wa = { class: "form-f
|
|
|
3067
3094
|
modelValue: {},
|
|
3068
3095
|
modelModifiers: {}
|
|
3069
3096
|
}),
|
|
3070
|
-
emits: /* @__PURE__ */
|
|
3097
|
+
emits: /* @__PURE__ */ ee(["focus", "blur"], ["update:modelValue"]),
|
|
3071
3098
|
setup(e, { emit: n }) {
|
|
3072
3099
|
const t = n, o = ve(e, "modelValue"), l = (s) => {
|
|
3073
3100
|
o.value = s.target.value;
|
|
3074
|
-
},
|
|
3101
|
+
}, a = () => {
|
|
3075
3102
|
o.value = "";
|
|
3076
|
-
},
|
|
3103
|
+
}, i = (s) => {
|
|
3077
3104
|
t("focus", s);
|
|
3078
3105
|
}, r = (s) => {
|
|
3079
3106
|
t("blur", s);
|
|
3080
3107
|
}, c = E(() => !o.value);
|
|
3081
3108
|
return (s, u) => {
|
|
3082
|
-
const d =
|
|
3083
|
-
return
|
|
3084
|
-
e.icon ? (
|
|
3109
|
+
const d = K("VjIcon");
|
|
3110
|
+
return f(), g("div", Ga, [
|
|
3111
|
+
e.icon ? (f(), j(d, {
|
|
3085
3112
|
key: 0,
|
|
3086
3113
|
icon: e.icon,
|
|
3087
|
-
size:
|
|
3114
|
+
size: S(q).S,
|
|
3088
3115
|
class: "textarea-icon"
|
|
3089
3116
|
}, null, 8, ["icon", "size"])) : L("", !0),
|
|
3090
3117
|
x("textarea", {
|
|
3091
3118
|
value: o.value,
|
|
3092
3119
|
onInput: l,
|
|
3093
|
-
onFocus:
|
|
3120
|
+
onFocus: i,
|
|
3094
3121
|
onBlur: r,
|
|
3095
3122
|
placeholder: e.placeholder,
|
|
3096
3123
|
disabled: e.disabled,
|
|
3097
3124
|
rows: e.rows
|
|
3098
|
-
}, null, 40,
|
|
3099
|
-
e.clearable && !e.disabled ? (
|
|
3125
|
+
}, null, 40, qa),
|
|
3126
|
+
e.clearable && !e.disabled ? (f(), j(d, {
|
|
3100
3127
|
key: 1,
|
|
3101
|
-
class:
|
|
3102
|
-
icon:
|
|
3103
|
-
size:
|
|
3104
|
-
onClick:
|
|
3128
|
+
class: z(["clear-icon", { invisible: c.value }]),
|
|
3129
|
+
icon: S(F).CLOSE,
|
|
3130
|
+
size: S(q).S,
|
|
3131
|
+
onClick: a
|
|
3105
3132
|
}, null, 8, ["class", "icon", "size"])) : L("", !0)
|
|
3106
3133
|
]);
|
|
3107
3134
|
};
|
|
3108
3135
|
}
|
|
3109
|
-
}),
|
|
3136
|
+
}), vn = /* @__PURE__ */ B(Ya, [["__scopeId", "data-v-2ea43716"]]), Ja = /* @__PURE__ */ T({
|
|
3110
3137
|
__name: "input-text-area",
|
|
3111
3138
|
props: {
|
|
3112
3139
|
modelValue: {},
|
|
@@ -3125,17 +3152,17 @@ const ba = ["data-colspan", "data-newline"], ya = ["for"], wa = { class: "form-f
|
|
|
3125
3152
|
},
|
|
3126
3153
|
emits: ["update:modelValue", "input", "focus", "blur"],
|
|
3127
3154
|
setup(e, { emit: n }) {
|
|
3128
|
-
const t = e, o = n, l = (u) => o("update:modelValue", u),
|
|
3155
|
+
const t = e, o = n, l = (u) => o("update:modelValue", u), a = (u) => o("input", u), i = (u) => o("focus", u), r = (u) => o("blur", u), c = (u) => {
|
|
3129
3156
|
l(u ?? "");
|
|
3130
3157
|
}, s = E(() => {
|
|
3131
3158
|
const u = t.modelValue;
|
|
3132
3159
|
return u == null ? "" : String(u);
|
|
3133
3160
|
});
|
|
3134
|
-
return (u, d) => (
|
|
3161
|
+
return (u, d) => (f(), j(ze, {
|
|
3135
3162
|
modelValue: t.modelValue,
|
|
3136
3163
|
"onUpdate:modelValue": l,
|
|
3137
|
-
onInput:
|
|
3138
|
-
onFocus:
|
|
3164
|
+
onInput: a,
|
|
3165
|
+
onFocus: i,
|
|
3139
3166
|
onBlur: r,
|
|
3140
3167
|
label: t.label,
|
|
3141
3168
|
id: t.id,
|
|
@@ -3149,13 +3176,13 @@ const ba = ["data-colspan", "data-newline"], ya = ["for"], wa = { class: "form-f
|
|
|
3149
3176
|
helpText: t.helpText,
|
|
3150
3177
|
appearance: t.appearance
|
|
3151
3178
|
}, {
|
|
3152
|
-
control: W(({ id:
|
|
3153
|
-
O(
|
|
3154
|
-
id:
|
|
3179
|
+
control: W(({ id: v, disabled: m, placeholder: p, onFocus: _, onBlur: h }) => [
|
|
3180
|
+
O(vn, {
|
|
3181
|
+
id: v,
|
|
3155
3182
|
modelValue: s.value,
|
|
3156
3183
|
"onUpdate:modelValue": c,
|
|
3157
3184
|
onFocus: (y) => {
|
|
3158
|
-
_(y),
|
|
3185
|
+
_(y), i(y);
|
|
3159
3186
|
},
|
|
3160
3187
|
onBlur: (y) => {
|
|
3161
3188
|
h(y), r(y);
|
|
@@ -3169,9 +3196,9 @@ const ba = ["data-colspan", "data-newline"], ya = ["for"], wa = { class: "form-f
|
|
|
3169
3196
|
_: 1
|
|
3170
3197
|
}, 8, ["modelValue", "label", "id", "placeholder", "disabled", "colspan", "newLine", "spanRow", "labelPosition", "error", "helpText", "appearance"]));
|
|
3171
3198
|
}
|
|
3172
|
-
}),
|
|
3199
|
+
}), Qa = { class: "input" }, Za = ["value", "type", "placeholder", "disabled"], ei = /* @__PURE__ */ T({
|
|
3173
3200
|
__name: "input",
|
|
3174
|
-
props: /* @__PURE__ */
|
|
3201
|
+
props: /* @__PURE__ */ ee({
|
|
3175
3202
|
icon: {},
|
|
3176
3203
|
type: {},
|
|
3177
3204
|
placeholder: {},
|
|
@@ -3181,45 +3208,45 @@ const ba = ["data-colspan", "data-newline"], ya = ["for"], wa = { class: "form-f
|
|
|
3181
3208
|
modelValue: {},
|
|
3182
3209
|
modelModifiers: {}
|
|
3183
3210
|
}),
|
|
3184
|
-
emits: /* @__PURE__ */
|
|
3211
|
+
emits: /* @__PURE__ */ ee(["focus", "blur"], ["update:modelValue"]),
|
|
3185
3212
|
setup(e, { emit: n }) {
|
|
3186
3213
|
const t = n, o = ve(e, "modelValue"), l = (s) => {
|
|
3187
3214
|
o.value = s.target.value;
|
|
3188
|
-
},
|
|
3215
|
+
}, a = () => {
|
|
3189
3216
|
o.value = "";
|
|
3190
|
-
},
|
|
3217
|
+
}, i = (s) => {
|
|
3191
3218
|
t("focus", s);
|
|
3192
3219
|
}, r = (s) => {
|
|
3193
3220
|
t("blur", s);
|
|
3194
3221
|
}, c = E(() => !o.value);
|
|
3195
3222
|
return (s, u) => {
|
|
3196
|
-
const d =
|
|
3197
|
-
return
|
|
3198
|
-
e.icon ? (
|
|
3223
|
+
const d = K("VjIcon");
|
|
3224
|
+
return f(), g("div", Qa, [
|
|
3225
|
+
e.icon ? (f(), j(d, {
|
|
3199
3226
|
key: 0,
|
|
3200
3227
|
icon: e.icon,
|
|
3201
|
-
size:
|
|
3228
|
+
size: S(q).S
|
|
3202
3229
|
}, null, 8, ["icon", "size"])) : L("", !0),
|
|
3203
3230
|
x("input", {
|
|
3204
3231
|
value: o.value,
|
|
3205
3232
|
onInput: l,
|
|
3206
|
-
onFocus:
|
|
3233
|
+
onFocus: i,
|
|
3207
3234
|
onBlur: r,
|
|
3208
3235
|
type: e.type,
|
|
3209
3236
|
placeholder: e.placeholder,
|
|
3210
3237
|
disabled: e.disabled
|
|
3211
|
-
}, null, 40,
|
|
3212
|
-
e.clearable && !e.disabled ? (
|
|
3238
|
+
}, null, 40, Za),
|
|
3239
|
+
e.clearable && !e.disabled ? (f(), j(d, {
|
|
3213
3240
|
key: 1,
|
|
3214
|
-
class:
|
|
3215
|
-
icon:
|
|
3216
|
-
size:
|
|
3217
|
-
onClick:
|
|
3241
|
+
class: z(["clear-icon", { invisible: c.value }]),
|
|
3242
|
+
icon: S(F).CLOSE,
|
|
3243
|
+
size: S(q).S,
|
|
3244
|
+
onClick: a
|
|
3218
3245
|
}, null, 8, ["class", "icon", "size"])) : L("", !0)
|
|
3219
3246
|
]);
|
|
3220
3247
|
};
|
|
3221
3248
|
}
|
|
3222
|
-
}),
|
|
3249
|
+
}), mn = /* @__PURE__ */ B(ei, [["__scopeId", "data-v-3187d49c"]]), ti = /* @__PURE__ */ T({
|
|
3223
3250
|
__name: "input-text",
|
|
3224
3251
|
props: {
|
|
3225
3252
|
modelValue: {},
|
|
@@ -3238,14 +3265,14 @@ const ba = ["data-colspan", "data-newline"], ya = ["for"], wa = { class: "form-f
|
|
|
3238
3265
|
},
|
|
3239
3266
|
emits: ["update:modelValue", "input", "focus", "blur"],
|
|
3240
3267
|
setup(e, { emit: n }) {
|
|
3241
|
-
const t = e, o = n, l = (s) => o("update:modelValue", s),
|
|
3268
|
+
const t = e, o = n, l = (s) => o("update:modelValue", s), a = (s) => o("input", s), i = (s) => o("focus", s), r = (s) => o("blur", s), c = (s) => {
|
|
3242
3269
|
l(s ?? "");
|
|
3243
3270
|
};
|
|
3244
|
-
return (s, u) => (
|
|
3271
|
+
return (s, u) => (f(), j(ze, {
|
|
3245
3272
|
modelValue: e.modelValue,
|
|
3246
3273
|
"onUpdate:modelValue": l,
|
|
3247
|
-
onInput:
|
|
3248
|
-
onFocus:
|
|
3274
|
+
onInput: a,
|
|
3275
|
+
onFocus: i,
|
|
3249
3276
|
onBlur: r,
|
|
3250
3277
|
label: e.label,
|
|
3251
3278
|
id: e.id,
|
|
@@ -3259,30 +3286,30 @@ const ba = ["data-colspan", "data-newline"], ya = ["for"], wa = { class: "form-f
|
|
|
3259
3286
|
labelPosition: e.labelPosition,
|
|
3260
3287
|
appearance: e.appearance
|
|
3261
3288
|
}, {
|
|
3262
|
-
control: W(({ id: d, disabled:
|
|
3263
|
-
O(
|
|
3289
|
+
control: W(({ id: d, disabled: v, placeholder: m, onFocus: p, onBlur: _ }) => [
|
|
3290
|
+
O(mn, {
|
|
3264
3291
|
id: d,
|
|
3265
3292
|
modelValue: e.modelValue,
|
|
3266
3293
|
type: e.type,
|
|
3267
3294
|
"onUpdate:modelValue": c,
|
|
3268
3295
|
onFocus: (h) => {
|
|
3269
|
-
p(h),
|
|
3296
|
+
p(h), i(h);
|
|
3270
3297
|
},
|
|
3271
3298
|
onBlur: (h) => {
|
|
3272
3299
|
_(h), r(h);
|
|
3273
3300
|
},
|
|
3274
3301
|
placeholder: m,
|
|
3275
|
-
disabled:
|
|
3302
|
+
disabled: v,
|
|
3276
3303
|
clearable: ""
|
|
3277
3304
|
}, null, 8, ["id", "modelValue", "type", "onFocus", "onBlur", "placeholder", "disabled"])
|
|
3278
3305
|
]),
|
|
3279
3306
|
_: 1
|
|
3280
3307
|
}, 8, ["modelValue", "label", "id", "placeholder", "disabled", "colspan", "newLine", "spanRow", "error", "helpText", "labelPosition", "appearance"]));
|
|
3281
3308
|
}
|
|
3282
|
-
}),
|
|
3309
|
+
}), ni = { class: "shell-navigation-item" }, oi = { class: "shell-navigation-item-label" }, li = {
|
|
3283
3310
|
key: 1,
|
|
3284
3311
|
class: "shell-navigation-item-link"
|
|
3285
|
-
},
|
|
3312
|
+
}, ai = ["aria-expanded"], ii = { class: "shell-navigation-item-label" }, si = /* @__PURE__ */ T({
|
|
3286
3313
|
__name: "shell-navigation-item",
|
|
3287
3314
|
props: {
|
|
3288
3315
|
label: {},
|
|
@@ -3290,30 +3317,30 @@ const ba = ["data-colspan", "data-newline"], ya = ["for"], wa = { class: "form-f
|
|
|
3290
3317
|
to: {}
|
|
3291
3318
|
},
|
|
3292
3319
|
setup(e) {
|
|
3293
|
-
const n =
|
|
3320
|
+
const n = Ut(), t = E(() => !!n.default), o = C(!1), l = C(null), a = C(null), { floatingStyles: i } = gt(l, a, {
|
|
3294
3321
|
placement: "right-start",
|
|
3295
3322
|
middleware: [Ze(8), tt(), et({ padding: 8 })],
|
|
3296
3323
|
whileElementsMounted: Qe
|
|
3297
|
-
}), r = (
|
|
3324
|
+
}), r = (v) => {
|
|
3298
3325
|
t.value && (o.value = !o.value);
|
|
3299
3326
|
}, c = () => {
|
|
3300
3327
|
o.value = !1;
|
|
3301
|
-
}, s = (
|
|
3328
|
+
}, s = (v) => {
|
|
3302
3329
|
c();
|
|
3303
|
-
}, u = (
|
|
3304
|
-
(
|
|
3305
|
-
}, d = (
|
|
3306
|
-
const m =
|
|
3307
|
-
m && (l.value && l.value.contains(m) ||
|
|
3330
|
+
}, u = (v) => {
|
|
3331
|
+
(v.key === "Escape" || v.key === "Esc") && c();
|
|
3332
|
+
}, d = (v) => {
|
|
3333
|
+
const m = v.target;
|
|
3334
|
+
m && (l.value && l.value.contains(m) || a.value && a.value.contains(m) || c());
|
|
3308
3335
|
};
|
|
3309
|
-
return X(o, (
|
|
3310
|
-
|
|
3336
|
+
return X(o, (v) => {
|
|
3337
|
+
v ? (window.addEventListener("keydown", u), window.addEventListener("pointerdown", d)) : (window.removeEventListener("keydown", u), window.removeEventListener("pointerdown", d));
|
|
3311
3338
|
}), Re(() => {
|
|
3312
3339
|
window.removeEventListener("keydown", u), window.removeEventListener("pointerdown", d);
|
|
3313
|
-
}), (
|
|
3314
|
-
const p =
|
|
3315
|
-
return
|
|
3316
|
-
e.to ? (
|
|
3340
|
+
}), (v, m) => {
|
|
3341
|
+
const p = K("VjIcon"), _ = K("RouterLink"), h = K("VjMenu");
|
|
3342
|
+
return f(), g("li", ni, [
|
|
3343
|
+
e.to ? (f(), j(_, {
|
|
3317
3344
|
key: 0,
|
|
3318
3345
|
to: e.to,
|
|
3319
3346
|
class: "shell-navigation-item-link"
|
|
@@ -3323,15 +3350,15 @@ const ba = ["data-colspan", "data-newline"], ya = ["for"], wa = { class: "form-f
|
|
|
3323
3350
|
icon: e.icon,
|
|
3324
3351
|
class: "shell-navigation-item-icon"
|
|
3325
3352
|
}, null, 8, ["icon"]),
|
|
3326
|
-
x("label",
|
|
3353
|
+
x("label", oi, D(e.label), 1)
|
|
3327
3354
|
]),
|
|
3328
3355
|
_: 1
|
|
3329
|
-
}, 8, ["to"])) : (
|
|
3356
|
+
}, 8, ["to"])) : (f(), g("div", li, [
|
|
3330
3357
|
x("button", {
|
|
3331
3358
|
ref_key: "buttonRef",
|
|
3332
3359
|
ref: l,
|
|
3333
3360
|
class: "shell-navigation-item-button",
|
|
3334
|
-
onClick:
|
|
3361
|
+
onClick: N(r, ["stop"]),
|
|
3335
3362
|
"aria-expanded": o.value,
|
|
3336
3363
|
type: "button"
|
|
3337
3364
|
}, [
|
|
@@ -3339,29 +3366,29 @@ const ba = ["data-colspan", "data-newline"], ya = ["for"], wa = { class: "form-f
|
|
|
3339
3366
|
icon: e.icon,
|
|
3340
3367
|
class: "shell-navigation-item-icon"
|
|
3341
3368
|
}, null, 8, ["icon"]),
|
|
3342
|
-
x("label",
|
|
3343
|
-
], 8,
|
|
3369
|
+
x("label", ii, D(e.label), 1)
|
|
3370
|
+
], 8, ai),
|
|
3344
3371
|
O(Oe, { name: "menu" }, {
|
|
3345
3372
|
default: W(() => [
|
|
3346
|
-
o.value ? (
|
|
3373
|
+
o.value ? (f(), j(h, {
|
|
3347
3374
|
key: 0,
|
|
3348
3375
|
ref_key: "floatingRef",
|
|
3349
|
-
ref:
|
|
3350
|
-
style:
|
|
3376
|
+
ref: a,
|
|
3377
|
+
style: G(S(i)),
|
|
3351
3378
|
class: "shell-navigation-item-menu",
|
|
3352
3379
|
onClose: c,
|
|
3353
|
-
onClick:
|
|
3380
|
+
onClick: N(s, ["stop"])
|
|
3354
3381
|
}, {
|
|
3355
3382
|
default: W(() => [
|
|
3356
|
-
M(
|
|
3383
|
+
M(v.$slots, "default", {}, void 0, !0)
|
|
3357
3384
|
]),
|
|
3358
3385
|
_: 3
|
|
3359
3386
|
}, 8, ["style"])) : L("", !0)
|
|
3360
3387
|
]),
|
|
3361
3388
|
_: 3
|
|
3362
3389
|
}),
|
|
3363
|
-
(
|
|
3364
|
-
o.value ? (
|
|
3390
|
+
(f(), j(Pe, { to: "body" }, [
|
|
3391
|
+
o.value ? (f(), g("div", {
|
|
3365
3392
|
key: 0,
|
|
3366
3393
|
class: "menu-backdrop",
|
|
3367
3394
|
onClick: c
|
|
@@ -3371,39 +3398,39 @@ const ba = ["data-colspan", "data-newline"], ya = ["for"], wa = { class: "form-f
|
|
|
3371
3398
|
]);
|
|
3372
3399
|
};
|
|
3373
3400
|
}
|
|
3374
|
-
}),
|
|
3401
|
+
}), ri = /* @__PURE__ */ B(si, [["__scopeId", "data-v-3a50d1c2"]]), ci = { class: "navigation-top" }, ui = {
|
|
3375
3402
|
key: 0,
|
|
3376
3403
|
class: "navigation-bottom"
|
|
3377
|
-
},
|
|
3404
|
+
}, di = /* @__PURE__ */ T({
|
|
3378
3405
|
__name: "shell-navigation",
|
|
3379
3406
|
setup(e) {
|
|
3380
|
-
const n =
|
|
3407
|
+
const n = Kt(xi, Vi()), t = E(() => n.showLabels);
|
|
3381
3408
|
return (o, l) => {
|
|
3382
|
-
const
|
|
3383
|
-
return
|
|
3384
|
-
class:
|
|
3409
|
+
const a = K("VjShellNavigationItem");
|
|
3410
|
+
return f(), g("nav", {
|
|
3411
|
+
class: z(["shell-navigation", { "with-labels": t.value }])
|
|
3385
3412
|
}, [
|
|
3386
|
-
x("ul",
|
|
3387
|
-
|
|
3413
|
+
x("ul", ci, [
|
|
3414
|
+
S(n).hasParent && S(n).backRoute.value ? (f(), j(a, {
|
|
3388
3415
|
key: 0,
|
|
3389
|
-
to:
|
|
3416
|
+
to: S(n).backRoute.value,
|
|
3390
3417
|
label: "BACK",
|
|
3391
|
-
icon:
|
|
3418
|
+
icon: S(F).HOME
|
|
3392
3419
|
}, null, 8, ["to", "icon"])) : L("", !0),
|
|
3393
|
-
(
|
|
3394
|
-
key:
|
|
3395
|
-
to: { name:
|
|
3396
|
-
label:
|
|
3397
|
-
icon:
|
|
3420
|
+
(f(!0), g(Z, null, ge(S(n).childRoutes.value, (i) => (f(), j(a, {
|
|
3421
|
+
key: i.name,
|
|
3422
|
+
to: { name: i.name },
|
|
3423
|
+
label: i.meta.label,
|
|
3424
|
+
icon: i.meta.icon ?? S(F).HOME
|
|
3398
3425
|
}, null, 8, ["to", "label", "icon"]))), 128))
|
|
3399
3426
|
]),
|
|
3400
|
-
o.$slots.fixed ? (
|
|
3427
|
+
o.$slots.fixed ? (f(), g("ul", ui, [
|
|
3401
3428
|
M(o.$slots, "fixed", {}, void 0, !0)
|
|
3402
3429
|
])) : L("", !0)
|
|
3403
3430
|
], 2);
|
|
3404
3431
|
};
|
|
3405
3432
|
}
|
|
3406
|
-
}),
|
|
3433
|
+
}), pn = /* @__PURE__ */ B(di, [["__scopeId", "data-v-306cfc22"]]), fi = { class: "shell" }, vi = { class: "shell-title" }, mi = ["src"], pi = { class: "header-actions" }, hi = /* @__PURE__ */ T({
|
|
3407
3434
|
__name: "shell",
|
|
3408
3435
|
props: {
|
|
3409
3436
|
title: {},
|
|
@@ -3411,98 +3438,186 @@ const ba = ["data-colspan", "data-newline"], ya = ["for"], wa = { class: "form-f
|
|
|
3411
3438
|
showNavigation: { type: Boolean }
|
|
3412
3439
|
},
|
|
3413
3440
|
setup(e) {
|
|
3414
|
-
const n =
|
|
3415
|
-
const
|
|
3416
|
-
return
|
|
3441
|
+
const n = Si(), t = nt(n, "asideComponent"), o = nt(n, "hasAside"), l = nt(n, "asideData"), a = E(() => {
|
|
3442
|
+
const i = l.value;
|
|
3443
|
+
return i && typeof i == "object" ? i : {};
|
|
3417
3444
|
});
|
|
3418
|
-
return (
|
|
3419
|
-
const c =
|
|
3420
|
-
return
|
|
3445
|
+
return (i, r) => {
|
|
3446
|
+
const c = K("router-view");
|
|
3447
|
+
return f(), g("div", fi, [
|
|
3421
3448
|
x("header", null, [
|
|
3422
|
-
x("span",
|
|
3423
|
-
e.icon ? (
|
|
3449
|
+
x("span", vi, [
|
|
3450
|
+
e.icon ? (f(), g("img", {
|
|
3424
3451
|
key: 0,
|
|
3425
3452
|
src: e.icon,
|
|
3426
3453
|
alt: "Shell Icon"
|
|
3427
|
-
}, null, 8,
|
|
3454
|
+
}, null, 8, mi)) : L("", !0),
|
|
3428
3455
|
x("h1", null, D(e.title), 1)
|
|
3429
3456
|
]),
|
|
3430
|
-
x("div",
|
|
3431
|
-
M(
|
|
3457
|
+
x("div", pi, [
|
|
3458
|
+
M(i.$slots, "header-actions", {}, void 0, !0)
|
|
3432
3459
|
])
|
|
3433
3460
|
]),
|
|
3434
3461
|
x("div", {
|
|
3435
|
-
class:
|
|
3462
|
+
class: z(["shell-content", { "with-navigation": e.showNavigation }])
|
|
3436
3463
|
}, [
|
|
3437
|
-
e.showNavigation ? (
|
|
3438
|
-
|
|
3464
|
+
e.showNavigation ? (f(), j(S(pn), { key: 0 }, rt({ _: 2 }, [
|
|
3465
|
+
i.$slots?.["navigation-fixed"] ? {
|
|
3439
3466
|
name: "fixed",
|
|
3440
3467
|
fn: W(() => [
|
|
3441
|
-
M(
|
|
3468
|
+
M(i.$slots, "navigation-fixed", {}, void 0, !0)
|
|
3442
3469
|
]),
|
|
3443
3470
|
key: "0"
|
|
3444
3471
|
} : void 0
|
|
3445
3472
|
]), 1024)) : L("", !0),
|
|
3446
3473
|
x("main", null, [
|
|
3447
|
-
M(
|
|
3474
|
+
M(i.$slots, "default", {}, () => [
|
|
3448
3475
|
O(c)
|
|
3449
3476
|
], !0)
|
|
3450
3477
|
]),
|
|
3451
3478
|
x("aside", {
|
|
3452
|
-
class:
|
|
3479
|
+
class: z({ "aside-visible": o.value })
|
|
3453
3480
|
}, [
|
|
3454
|
-
(
|
|
3481
|
+
(f(), j(Wt(t.value), kn(Vn(a.value)), null, 16))
|
|
3455
3482
|
], 2)
|
|
3456
3483
|
], 2),
|
|
3457
3484
|
r[0] || (r[0] = x("footer", null, null, -1))
|
|
3458
3485
|
]);
|
|
3459
3486
|
};
|
|
3460
3487
|
}
|
|
3461
|
-
}),
|
|
3462
|
-
|
|
3488
|
+
}), gi = /* @__PURE__ */ B(hi, [["__scopeId", "data-v-4dfd0097"]]);
|
|
3489
|
+
class bi {
|
|
3490
|
+
notifications = C([]);
|
|
3491
|
+
notificationIdCounter = 0;
|
|
3492
|
+
/**
|
|
3493
|
+
* Gibt die reaktive Liste der Notifications zurück
|
|
3494
|
+
*/
|
|
3495
|
+
getNotifications() {
|
|
3496
|
+
return this.notifications;
|
|
3497
|
+
}
|
|
3498
|
+
/**
|
|
3499
|
+
* Zeigt eine Notification an
|
|
3500
|
+
* @param type - Der Typ der Notification (info, warning, error, success)
|
|
3501
|
+
* @param message - Die Nachricht
|
|
3502
|
+
* @param duration - Optionale Dauer in ms (Standard: 5000ms, errors bleiben stehen)
|
|
3503
|
+
* @returns Die ID der Notification
|
|
3504
|
+
*/
|
|
3505
|
+
show(n, t, o, l) {
|
|
3506
|
+
const a = `notification-${++this.notificationIdCounter}-${Date.now()}`, i = n === "error" ? void 0 : l ?? 5e3, r = {
|
|
3507
|
+
id: a,
|
|
3508
|
+
type: n,
|
|
3509
|
+
title: t,
|
|
3510
|
+
message: o,
|
|
3511
|
+
duration: i
|
|
3512
|
+
};
|
|
3513
|
+
return this.notifications.value.unshift(r), i && setTimeout(() => {
|
|
3514
|
+
this.remove(a);
|
|
3515
|
+
}, i), a;
|
|
3516
|
+
}
|
|
3517
|
+
/**
|
|
3518
|
+
* Zeigt eine Info-Notification
|
|
3519
|
+
*/
|
|
3520
|
+
info(n, t, o) {
|
|
3521
|
+
return this.show("info", n, t, o);
|
|
3522
|
+
}
|
|
3523
|
+
/**
|
|
3524
|
+
* Zeigt eine Warning-Notification
|
|
3525
|
+
*/
|
|
3526
|
+
warning(n, t, o) {
|
|
3527
|
+
return this.show("warning", n, t, o);
|
|
3528
|
+
}
|
|
3529
|
+
/**
|
|
3530
|
+
* Zeigt eine Error-Notification (bleibt stehen bis manuell geschlossen)
|
|
3531
|
+
*/
|
|
3532
|
+
error(n, t) {
|
|
3533
|
+
return this.show("error", n, t);
|
|
3534
|
+
}
|
|
3535
|
+
/**
|
|
3536
|
+
* Zeigt eine Success-Notification
|
|
3537
|
+
*/
|
|
3538
|
+
success(n, t, o) {
|
|
3539
|
+
return this.show("success", n, t, o);
|
|
3540
|
+
}
|
|
3541
|
+
/**
|
|
3542
|
+
* Entfernt eine spezifische Notification
|
|
3543
|
+
*/
|
|
3544
|
+
remove(n) {
|
|
3545
|
+
const t = this.notifications.value.findIndex((o) => o.id === n);
|
|
3546
|
+
t !== -1 && this.notifications.value.splice(t, 1);
|
|
3547
|
+
}
|
|
3548
|
+
/**
|
|
3549
|
+
* Entfernt alle Notifications
|
|
3550
|
+
*/
|
|
3551
|
+
clearAll() {
|
|
3552
|
+
this.notifications.value = [];
|
|
3553
|
+
}
|
|
3554
|
+
}
|
|
3555
|
+
const Ht = new bi(), yi = { class: "notifications" }, wi = /* @__PURE__ */ T({
|
|
3556
|
+
__name: "notifications",
|
|
3557
|
+
setup(e) {
|
|
3558
|
+
const n = Ht.getNotifications(), t = (o) => Ht.remove(o);
|
|
3559
|
+
return (o, l) => (f(), j(Pe, { to: "body" }, [
|
|
3560
|
+
x("div", yi, [
|
|
3561
|
+
O(En, { name: "notification" }, {
|
|
3562
|
+
default: W(() => [
|
|
3563
|
+
(f(!0), g(Z, null, ge(S(n), (a) => (f(), j(yt, {
|
|
3564
|
+
key: a.id,
|
|
3565
|
+
type: a.type,
|
|
3566
|
+
title: a.title,
|
|
3567
|
+
message: a.message,
|
|
3568
|
+
onClose: (i) => t(a.id)
|
|
3569
|
+
}, null, 8, ["type", "title", "message", "onClose"]))), 128))
|
|
3570
|
+
]),
|
|
3571
|
+
_: 1
|
|
3572
|
+
})
|
|
3573
|
+
])
|
|
3574
|
+
]));
|
|
3575
|
+
}
|
|
3576
|
+
}), _i = /* @__PURE__ */ B(wi, [["__scopeId", "data-v-543c499f"]]), xi = "navigationProvider";
|
|
3577
|
+
function ki(e) {
|
|
3463
3578
|
return !!e.meta && "icon" in e.meta && "label" in e.meta;
|
|
3464
3579
|
}
|
|
3465
|
-
const
|
|
3466
|
-
const e =
|
|
3580
|
+
const Vi = () => {
|
|
3581
|
+
const e = Sn(), n = Rn(), t = !0, o = E(() => {
|
|
3467
3582
|
const u = e.getRoutes();
|
|
3468
|
-
return u.filter((d) => d.path !== "/" && !u.some((
|
|
3583
|
+
return u.filter((d) => d.path !== "/" && !u.some((v) => v.children?.some((m) => m.name === d.name)));
|
|
3469
3584
|
}), l = E(() => {
|
|
3470
3585
|
const u = n.matched;
|
|
3471
3586
|
return u.length ? u[u.length - 1] : null;
|
|
3472
|
-
}),
|
|
3587
|
+
}), a = E(() => {
|
|
3473
3588
|
const u = n.matched;
|
|
3474
3589
|
return u.length > 1 ? u[u.length - 2] : null;
|
|
3475
|
-
}),
|
|
3590
|
+
}), i = E(() => !!(l.value?.children?.length || a.value)), r = E(() => l.value?.children?.length ? l.value : a.value?.children?.length ? a.value : null), c = E(() => {
|
|
3476
3591
|
if (!r.value) return null;
|
|
3477
|
-
const d = e.getRoutes().find((
|
|
3592
|
+
const d = e.getRoutes().find((v) => v.children?.some((m) => m.name === r.value.name));
|
|
3478
3593
|
return d ? { name: d.name } : { path: "/" };
|
|
3479
3594
|
}), s = E(() => {
|
|
3480
3595
|
let u = [];
|
|
3481
|
-
return n.path === "/" ? u = o.value : l.value?.children?.length ? u = l.value.children :
|
|
3596
|
+
return n.path === "/" ? u = o.value : l.value?.children?.length ? u = l.value.children : a.value?.children?.length ? u = a.value.children : u = o.value, u.filter(ki);
|
|
3482
3597
|
});
|
|
3483
3598
|
return {
|
|
3484
|
-
hasParent:
|
|
3599
|
+
hasParent: i,
|
|
3485
3600
|
backRoute: c,
|
|
3486
3601
|
childRoutes: s,
|
|
3487
3602
|
showLabels: t
|
|
3488
3603
|
};
|
|
3489
|
-
},
|
|
3490
|
-
const o =
|
|
3604
|
+
}, zi = (e, n = !0, t = void 0) => {
|
|
3605
|
+
const o = Cn(e) ? e : C(e), l = !!t, a = C(t || null);
|
|
3491
3606
|
return {
|
|
3492
3607
|
hasParent: l,
|
|
3493
|
-
backRoute:
|
|
3608
|
+
backRoute: a,
|
|
3494
3609
|
childRoutes: o,
|
|
3495
3610
|
showLabels: n
|
|
3496
3611
|
};
|
|
3497
|
-
},
|
|
3498
|
-
let
|
|
3499
|
-
const
|
|
3500
|
-
|
|
3501
|
-
}),
|
|
3502
|
-
onClose: (t) =>
|
|
3503
|
-
}),
|
|
3612
|
+
}, wt = C(!1), _t = C(null), xt = C(null);
|
|
3613
|
+
let Le = [];
|
|
3614
|
+
const hn = (e) => (Le.push(e), () => {
|
|
3615
|
+
Le = Le.filter((n) => n !== e);
|
|
3616
|
+
}), Ei = (e, n) => (Le = [], _t.value = e, xt.value = n ?? null, wt.value = !0, {
|
|
3617
|
+
onClose: (t) => hn(t)
|
|
3618
|
+
}), Ci = (e) => {
|
|
3504
3619
|
try {
|
|
3505
|
-
|
|
3620
|
+
Le.forEach((n) => {
|
|
3506
3621
|
try {
|
|
3507
3622
|
n(e);
|
|
3508
3623
|
} catch (t) {
|
|
@@ -3510,18 +3625,18 @@ const mn = (e) => (Ce.push(e), () => {
|
|
|
3510
3625
|
}
|
|
3511
3626
|
});
|
|
3512
3627
|
} finally {
|
|
3513
|
-
|
|
3514
|
-
}
|
|
3515
|
-
},
|
|
3516
|
-
|
|
3517
|
-
},
|
|
3518
|
-
asideComponent:
|
|
3519
|
-
asideData:
|
|
3520
|
-
showAside:
|
|
3521
|
-
closeAside:
|
|
3522
|
-
onAsideClose:
|
|
3523
|
-
hasAside:
|
|
3524
|
-
},
|
|
3628
|
+
wt.value = !1, setTimeout(Li, 1e3);
|
|
3629
|
+
}
|
|
3630
|
+
}, Li = () => {
|
|
3631
|
+
Le = [], _t.value = null, xt.value = null;
|
|
3632
|
+
}, $i = {
|
|
3633
|
+
asideComponent: _t,
|
|
3634
|
+
asideData: xt,
|
|
3635
|
+
showAside: Ei,
|
|
3636
|
+
closeAside: Ci,
|
|
3637
|
+
onAsideClose: hn,
|
|
3638
|
+
hasAside: wt
|
|
3639
|
+
}, Si = () => $i, Ii = (e, n) => {
|
|
3525
3640
|
let t = null;
|
|
3526
3641
|
return (...l) => {
|
|
3527
3642
|
t && clearTimeout(t), t = setTimeout(() => {
|
|
@@ -3529,7 +3644,7 @@ const mn = (e) => (Ce.push(e), () => {
|
|
|
3529
3644
|
}, n);
|
|
3530
3645
|
};
|
|
3531
3646
|
};
|
|
3532
|
-
class
|
|
3647
|
+
class Ri {
|
|
3533
3648
|
containerElement = null;
|
|
3534
3649
|
apps = [];
|
|
3535
3650
|
ensureContainer() {
|
|
@@ -3539,15 +3654,15 @@ class xi {
|
|
|
3539
3654
|
return new Promise((t) => {
|
|
3540
3655
|
const o = this.ensureContainer(), l = document.createElement("div");
|
|
3541
3656
|
o.appendChild(l);
|
|
3542
|
-
let
|
|
3543
|
-
const
|
|
3544
|
-
|
|
3657
|
+
let a = !1;
|
|
3658
|
+
const i = () => {
|
|
3659
|
+
a || (a = !0, setTimeout(() => {
|
|
3545
3660
|
const c = this.apps.find((s) => s.element === l);
|
|
3546
3661
|
c && (c.app.unmount(), this.apps = this.apps.filter((s) => s !== c)), l.remove();
|
|
3547
3662
|
}, 300));
|
|
3548
|
-
}, r =
|
|
3663
|
+
}, r = Ln({
|
|
3549
3664
|
setup() {
|
|
3550
|
-
return () =>
|
|
3665
|
+
return () => $n(dt, {
|
|
3551
3666
|
modelValue: !0,
|
|
3552
3667
|
title: n.title,
|
|
3553
3668
|
message: n.message,
|
|
@@ -3560,18 +3675,18 @@ class xi {
|
|
|
3560
3675
|
closeOnBackdrop: n.closeOnBackdrop ?? !1,
|
|
3561
3676
|
closeOnEscape: n.closeOnEscape ?? !0,
|
|
3562
3677
|
onConfirm: () => {
|
|
3563
|
-
t(!0),
|
|
3678
|
+
t(!0), i();
|
|
3564
3679
|
},
|
|
3565
3680
|
onCancel: () => {
|
|
3566
|
-
t(!1),
|
|
3681
|
+
t(!1), i();
|
|
3567
3682
|
},
|
|
3568
3683
|
onClose: () => {
|
|
3569
|
-
|
|
3684
|
+
a || t(!1), i();
|
|
3570
3685
|
}
|
|
3571
3686
|
});
|
|
3572
3687
|
}
|
|
3573
3688
|
});
|
|
3574
|
-
r.component("VjCard", at), r.component("VjIcon",
|
|
3689
|
+
r.component("VjCard", at), r.component("VjIcon", be), r.component("VjButton", ut), r.mount(l), this.apps.push({ app: r, element: l });
|
|
3575
3690
|
});
|
|
3576
3691
|
}
|
|
3577
3692
|
confirm(n) {
|
|
@@ -3599,11 +3714,11 @@ class xi {
|
|
|
3599
3714
|
}), this.apps = [];
|
|
3600
3715
|
}
|
|
3601
3716
|
}
|
|
3602
|
-
const
|
|
3603
|
-
function
|
|
3604
|
-
return
|
|
3717
|
+
const Ti = new Ri();
|
|
3718
|
+
function Hi() {
|
|
3719
|
+
return Ti;
|
|
3605
3720
|
}
|
|
3606
|
-
const
|
|
3721
|
+
const Ui = () => {
|
|
3607
3722
|
const e = C(!1), n = C(null), t = () => {
|
|
3608
3723
|
n.value = null;
|
|
3609
3724
|
};
|
|
@@ -3611,166 +3726,102 @@ const Pi = () => {
|
|
|
3611
3726
|
inner;
|
|
3612
3727
|
defaultValue;
|
|
3613
3728
|
handlers = [];
|
|
3614
|
-
constructor(
|
|
3615
|
-
this.inner =
|
|
3729
|
+
constructor(i, r) {
|
|
3730
|
+
this.inner = i, this.defaultValue = r;
|
|
3616
3731
|
}
|
|
3617
|
-
onError(
|
|
3618
|
-
return this.handlers.push(
|
|
3732
|
+
onError(i) {
|
|
3733
|
+
return this.handlers.push(i), this;
|
|
3619
3734
|
}
|
|
3620
3735
|
async exec() {
|
|
3621
3736
|
n.value = null, e.value = !0;
|
|
3622
3737
|
try {
|
|
3623
3738
|
return await this.inner();
|
|
3624
|
-
} catch (
|
|
3625
|
-
n.value =
|
|
3739
|
+
} catch (i) {
|
|
3740
|
+
n.value = i;
|
|
3626
3741
|
for (const r of this.handlers)
|
|
3627
3742
|
try {
|
|
3628
|
-
r(
|
|
3743
|
+
r(i);
|
|
3629
3744
|
} catch (c) {
|
|
3630
3745
|
console.error("onError handler failed", c);
|
|
3631
3746
|
}
|
|
3632
3747
|
if (this.defaultValue !== void 0) return this.defaultValue;
|
|
3633
|
-
throw
|
|
3748
|
+
throw i;
|
|
3634
3749
|
} finally {
|
|
3635
3750
|
e.value = !1;
|
|
3636
3751
|
}
|
|
3637
3752
|
}
|
|
3638
|
-
then(
|
|
3639
|
-
return this.exec().then(
|
|
3753
|
+
then(i, r) {
|
|
3754
|
+
return this.exec().then(i, r);
|
|
3640
3755
|
}
|
|
3641
3756
|
}
|
|
3642
|
-
function l(
|
|
3643
|
-
return new o(
|
|
3757
|
+
function l(a, i) {
|
|
3758
|
+
return new o(a, i);
|
|
3644
3759
|
}
|
|
3645
3760
|
return { run: l, running: e, error: n, clearError: t };
|
|
3646
|
-
}
|
|
3647
|
-
class Vi {
|
|
3648
|
-
notifications = C([]);
|
|
3649
|
-
notificationIdCounter = 0;
|
|
3650
|
-
/**
|
|
3651
|
-
* Gibt die reaktive Liste der Notifications zurück
|
|
3652
|
-
*/
|
|
3653
|
-
getNotifications() {
|
|
3654
|
-
return this.notifications;
|
|
3655
|
-
}
|
|
3656
|
-
/**
|
|
3657
|
-
* Zeigt eine Notification an
|
|
3658
|
-
* @param type - Der Typ der Notification (info, warning, error, success)
|
|
3659
|
-
* @param message - Die Nachricht
|
|
3660
|
-
* @param duration - Optionale Dauer in ms (Standard: 5000ms, errors bleiben stehen)
|
|
3661
|
-
* @returns Die ID der Notification
|
|
3662
|
-
*/
|
|
3663
|
-
show(n, t, o, l) {
|
|
3664
|
-
const i = `notification-${++this.notificationIdCounter}-${Date.now()}`, a = n === "error" ? void 0 : l ?? 5e3, r = {
|
|
3665
|
-
id: i,
|
|
3666
|
-
type: n,
|
|
3667
|
-
title: t,
|
|
3668
|
-
message: o,
|
|
3669
|
-
duration: a
|
|
3670
|
-
};
|
|
3671
|
-
return this.notifications.value.unshift(r), a && setTimeout(() => {
|
|
3672
|
-
this.remove(i);
|
|
3673
|
-
}, a), i;
|
|
3674
|
-
}
|
|
3675
|
-
/**
|
|
3676
|
-
* Zeigt eine Info-Notification
|
|
3677
|
-
*/
|
|
3678
|
-
info(n, t, o) {
|
|
3679
|
-
return this.show("info", n, t, o);
|
|
3680
|
-
}
|
|
3681
|
-
/**
|
|
3682
|
-
* Zeigt eine Warning-Notification
|
|
3683
|
-
*/
|
|
3684
|
-
warning(n, t, o) {
|
|
3685
|
-
return this.show("warning", n, t, o);
|
|
3686
|
-
}
|
|
3687
|
-
/**
|
|
3688
|
-
* Zeigt eine Error-Notification (bleibt stehen bis manuell geschlossen)
|
|
3689
|
-
*/
|
|
3690
|
-
error(n, t) {
|
|
3691
|
-
return this.show("error", n, t);
|
|
3692
|
-
}
|
|
3693
|
-
/**
|
|
3694
|
-
* Zeigt eine Success-Notification
|
|
3695
|
-
*/
|
|
3696
|
-
success(n, t, o) {
|
|
3697
|
-
return this.show("success", n, t, o);
|
|
3698
|
-
}
|
|
3699
|
-
/**
|
|
3700
|
-
* Entfernt eine spezifische Notification
|
|
3701
|
-
*/
|
|
3702
|
-
remove(n) {
|
|
3703
|
-
const t = this.notifications.value.findIndex((o) => o.id === n);
|
|
3704
|
-
t !== -1 && this.notifications.value.splice(t, 1);
|
|
3705
|
-
}
|
|
3706
|
-
/**
|
|
3707
|
-
* Entfernt alle Notifications
|
|
3708
|
-
*/
|
|
3709
|
-
clearAll() {
|
|
3710
|
-
this.notifications.value = [];
|
|
3711
|
-
}
|
|
3712
|
-
}
|
|
3713
|
-
const Mi = new Vi(), ji = {
|
|
3761
|
+
}, Wi = {
|
|
3714
3762
|
install(e) {
|
|
3715
|
-
e.component("VjButton", ut), e.component("VjButtonBar",
|
|
3763
|
+
e.component("VjAmountBar", _a), e.component("VjButton", ut), e.component("VjButtonBar", Pn), e.component("VjCard", at), e.component("VjChip", Xt), e.component("VjChipGroup", Gt), e.component("VjChipSelector", wo), e.component("VjCarousel", at), e.component("VjCheckbox", qn), e.component("VjDotMenu", vl), e.component("VjDialog", dt), e.component("VjIcon", be), e.component("VjLinkButton", pl), e.component("VjMenu", kl), e.component("VjMenuAction", yl), e.component("VjPage", Jl), e.component("VjPaginator", ea), e.component("VjTab", ma), e.component("VjTabView", fa), e.component("VjSkeleton", ya), e.component("VjSpinner", cn), e.component("VjNotifications", _i), e.component("VjNotification", yt), e.component("VjInput", mn), e.component("VjSelect", fn), e.component("VjTextArea", vn), e.component("VjFormField", ze), e.component("VjFormLayout", Ra), e.component("VjFormSection", Oa), e.component("VjInputText", ti), e.component("VjInputTextArea", Ja), e.component("VjInputSelect", za), e.component("VjInputSlider", Xa), e.component("VjShellNavigation", pn), e.component("VjShellNavigationItem", ri), e.component("VjShell", gi), e.component("VjSearchField", la), e.component("VjSeparator", ia), e.directive("focus", Cl), e.directive("resize", Ll), e.directive("compact", Vl), e.directive("tooltip", un);
|
|
3716
3764
|
}
|
|
3717
3765
|
};
|
|
3718
3766
|
export {
|
|
3767
|
+
_a as AmountBar,
|
|
3719
3768
|
ut as Button,
|
|
3720
|
-
|
|
3769
|
+
Pn as ButtonBar,
|
|
3721
3770
|
at as Card,
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3771
|
+
Di as Carousel,
|
|
3772
|
+
qn as Checkbox,
|
|
3773
|
+
Xt as Chip,
|
|
3774
|
+
Gt as ChipGroup,
|
|
3775
|
+
wo as ChipSelector,
|
|
3727
3776
|
dt as Dialog,
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3777
|
+
vl as DotMenu,
|
|
3778
|
+
Mi as EditableLabel,
|
|
3779
|
+
Cl as FocusFirstDirective,
|
|
3780
|
+
ze as FormField,
|
|
3781
|
+
Ra as FormLayout,
|
|
3782
|
+
Oa as FormSection,
|
|
3783
|
+
be as Icon,
|
|
3735
3784
|
F as IconNames,
|
|
3736
3785
|
q as IconSize,
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
la as
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3786
|
+
mn as Input,
|
|
3787
|
+
za as InputSelect,
|
|
3788
|
+
Xa as InputSlider,
|
|
3789
|
+
ti as InputText,
|
|
3790
|
+
Ja as InputTextArea,
|
|
3791
|
+
pl as LinkButton,
|
|
3792
|
+
Ol as LoadingDirective,
|
|
3793
|
+
kl as Menu,
|
|
3794
|
+
yl as MenuAction,
|
|
3795
|
+
yt as NotificationComponent,
|
|
3796
|
+
_i as Notifications,
|
|
3797
|
+
Jl as Page,
|
|
3798
|
+
ea as Paginator,
|
|
3799
|
+
Pi as Radio,
|
|
3800
|
+
Ll as ResizeDirective,
|
|
3801
|
+
la as SearchField,
|
|
3802
|
+
fn as Select,
|
|
3803
|
+
ia as Separator,
|
|
3804
|
+
gi as Shell,
|
|
3805
|
+
pn as ShellNavigation,
|
|
3806
|
+
ri as ShellNavigationItem,
|
|
3807
|
+
ya as Skeleton,
|
|
3808
|
+
cn as Spinner,
|
|
3809
|
+
ma as Tab,
|
|
3810
|
+
fa as TabView,
|
|
3811
|
+
vn as TextArea,
|
|
3812
|
+
un as TooltipDirective,
|
|
3813
|
+
Wi as VjComponents,
|
|
3814
|
+
xi as VjNavigationProviderKey,
|
|
3815
|
+
Vl as compactDirective,
|
|
3816
|
+
ji as configureVueUI,
|
|
3817
|
+
Ti as dialogService,
|
|
3818
|
+
It as getVueUIConfig,
|
|
3819
|
+
Ht as notificationService,
|
|
3820
|
+
Fi as resetVueUIConfig,
|
|
3821
|
+
Si as useAsideService,
|
|
3822
|
+
Ii as useDebounce,
|
|
3823
|
+
Hi as useDialog,
|
|
3824
|
+
Ui as useFlow,
|
|
3825
|
+
Vi as useRouterNavigationProvider,
|
|
3826
|
+
zi as useStaticNavigationProvider
|
|
3776
3827
|
};
|