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