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