@vanjana/vue-ui 0.1.108 → 0.1.110
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/components/index.d.ts +3 -2
- package/dist/vanjana-vue-ui.es.js +1084 -948
- package/dist/vanjana-vue-ui.umd.js +1 -1
- package/dist/vue-ui.css +1 -1
- package/package.json +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { createElementBlock as g, openBlock as
|
|
2
|
-
import { useRouter as
|
|
3
|
-
const
|
|
1
|
+
import { createElementBlock as g, openBlock as v, createElementVNode as x, renderSlot as M, defineComponent as R, computed as C, normalizeClass as I, createBlock as F, createCommentVNode as $, createTextVNode as Ue, unref as S, toDisplayString as B, useSlots as Ut, ref as E, onMounted as Re, nextTick as me, onBeforeUnmount as Te, watch as N, resolveComponent as X, createVNode as D, normalizeStyle as q, Fragment as Z, renderList as ge, mergeModels as ee, useModel as ve, withModifiers as K, provide as Kt, Teleport as Pe, Transition as De, withCtx as U, createSlots as rt, resolveDynamicComponent as Nt, mergeProps as yn, shallowRef as wn, getCurrentScope as _n, onScopeDispose as xn, shallowReadonly as Ve, render as St, resolveDirective as Xt, withDirectives as ct, withKeys as je, inject as ut, onUnmounted as kn, vModelText as Vn, toRef as ot, normalizeProps as Cn, guardReactiveProps as En, TransitionGroup as Ln, isRef as $n, createApp as Sn, h as Rn } from "vue";
|
|
2
|
+
import { useRouter as Tn, useRoute as An } from "vue-router";
|
|
3
|
+
const O = (e, n) => {
|
|
4
4
|
const t = e.__vccOpts || e;
|
|
5
5
|
for (const [o, l] of n)
|
|
6
6
|
t[o] = l;
|
|
7
7
|
return t;
|
|
8
|
-
},
|
|
9
|
-
function
|
|
10
|
-
return
|
|
11
|
-
x("div",
|
|
8
|
+
}, On = {}, Dn = { class: "button-bar" }, jn = { class: "left" }, Bn = { class: "right" };
|
|
9
|
+
function Pn(e, n) {
|
|
10
|
+
return v(), g("div", Dn, [
|
|
11
|
+
x("div", jn, [
|
|
12
12
|
M(e.$slots, "left", {}, void 0, !0)
|
|
13
13
|
]),
|
|
14
14
|
x("div", Bn, [
|
|
@@ -16,21 +16,21 @@ function jn(e, n) {
|
|
|
16
16
|
])
|
|
17
17
|
]);
|
|
18
18
|
}
|
|
19
|
-
const Mn = /* @__PURE__ */
|
|
20
|
-
var
|
|
21
|
-
const be = /* @__PURE__ */
|
|
19
|
+
const Mn = /* @__PURE__ */ O(On, [["render", Pn], ["__scopeId", "data-v-45a6ed1a"]]);
|
|
20
|
+
var H = /* @__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))(H || {}), G = /* @__PURE__ */ ((e) => (e.S = "icon-size-s", e.M = "icon-size-m", e.L = "icon-size-l", e))(G || {});
|
|
21
|
+
const be = /* @__PURE__ */ R({
|
|
22
22
|
__name: "icon",
|
|
23
23
|
props: {
|
|
24
24
|
icon: {},
|
|
25
25
|
size: {}
|
|
26
26
|
},
|
|
27
27
|
setup(e) {
|
|
28
|
-
const n = e, t =
|
|
29
|
-
return (l, a) => (
|
|
30
|
-
class:
|
|
28
|
+
const n = e, t = G.M, o = C(() => `${n.icon} ${n.size ?? t}`);
|
|
29
|
+
return (l, a) => (v(), g("i", {
|
|
30
|
+
class: I(o.value)
|
|
31
31
|
}, null, 2));
|
|
32
32
|
}
|
|
33
|
-
}),
|
|
33
|
+
}), Fn = ["disabled"], zn = /* @__PURE__ */ R({
|
|
34
34
|
__name: "button",
|
|
35
35
|
props: {
|
|
36
36
|
label: {},
|
|
@@ -41,51 +41,51 @@ const be = /* @__PURE__ */ T({
|
|
|
41
41
|
disabled: { type: Boolean }
|
|
42
42
|
},
|
|
43
43
|
setup(e) {
|
|
44
|
-
const n = e, t =
|
|
45
|
-
return (a, i) => (
|
|
46
|
-
class:
|
|
44
|
+
const n = e, t = G.S, o = C(() => n.primary ? "primary" : n.secondary ? "secondary" : n.tertiary ? "tertiary" : "primary"), l = C(() => !n.label && !!n.icon);
|
|
45
|
+
return (a, i) => (v(), g("button", {
|
|
46
|
+
class: I(["button", o.value, { "icon-only": l.value }]),
|
|
47
47
|
disabled: e.disabled
|
|
48
48
|
}, [
|
|
49
|
-
e.icon ? (
|
|
49
|
+
e.icon ? (v(), F(be, {
|
|
50
50
|
key: 0,
|
|
51
51
|
icon: e.icon,
|
|
52
52
|
size: S(t)
|
|
53
|
-
}, null, 8, ["icon", "size"])) :
|
|
53
|
+
}, null, 8, ["icon", "size"])) : $("", !0),
|
|
54
54
|
Ue(" " + B(e.label), 1)
|
|
55
|
-
], 10,
|
|
55
|
+
], 10, Fn));
|
|
56
56
|
}
|
|
57
|
-
}), dt = /* @__PURE__ */
|
|
57
|
+
}), dt = /* @__PURE__ */ O(zn, [["__scopeId", "data-v-f31c33cf"]]), In = {
|
|
58
58
|
key: 0,
|
|
59
59
|
class: "header-actions"
|
|
60
|
-
},
|
|
60
|
+
}, Hn = { key: 0 }, Wn = /* @__PURE__ */ R({
|
|
61
61
|
__name: "card",
|
|
62
62
|
props: {
|
|
63
63
|
header: {},
|
|
64
64
|
scrollable: { type: Boolean }
|
|
65
65
|
},
|
|
66
66
|
setup(e) {
|
|
67
|
-
const n =
|
|
68
|
-
return (t, o) => (
|
|
69
|
-
class:
|
|
67
|
+
const n = Ut();
|
|
68
|
+
return (t, o) => (v(), g("div", {
|
|
69
|
+
class: I(["card", { scrollable: e.scrollable }])
|
|
70
70
|
}, [
|
|
71
71
|
x("header", null, [
|
|
72
72
|
x("h3", null, B(e.header), 1),
|
|
73
|
-
S(n).headerActions ? (
|
|
73
|
+
S(n).headerActions ? (v(), g("span", In, [
|
|
74
74
|
M(t.$slots, "headerActions", {}, void 0, !0)
|
|
75
|
-
])) :
|
|
75
|
+
])) : $("", !0)
|
|
76
76
|
]),
|
|
77
77
|
x("main", null, [
|
|
78
78
|
M(t.$slots, "default", {}, void 0, !0)
|
|
79
79
|
]),
|
|
80
|
-
S(n).footer ? (
|
|
80
|
+
S(n).footer ? (v(), g("footer", Hn, [
|
|
81
81
|
M(t.$slots, "footer", {}, void 0, !0)
|
|
82
|
-
])) :
|
|
82
|
+
])) : $("", !0)
|
|
83
83
|
], 2));
|
|
84
84
|
}
|
|
85
|
-
}), at = /* @__PURE__ */
|
|
85
|
+
}), at = /* @__PURE__ */ O(Wn, [["__scopeId", "data-v-ec6ab562"]]), Un = ["aria-label"], Kn = {
|
|
86
86
|
key: 0,
|
|
87
87
|
class: "carousel-indicators"
|
|
88
|
-
}, Nn = /* @__PURE__ */
|
|
88
|
+
}, Nn = /* @__PURE__ */ R({
|
|
89
89
|
__name: "carousel",
|
|
90
90
|
props: {
|
|
91
91
|
autoplay: { type: Boolean },
|
|
@@ -96,102 +96,102 @@ const be = /* @__PURE__ */ T({
|
|
|
96
96
|
ariaLabel: {}
|
|
97
97
|
},
|
|
98
98
|
setup(e) {
|
|
99
|
-
const n = e, t = n.autoplay ?? !1, o = n.interval ?? 4e3, l = n.loop ?? !0, a = n.pauseOnHover ?? !0, i = n.startIndex ?? 0, c = n.ariaLabel ?? "Carousel", s = E(Math.max(0, i)), r = E(null), u = E(null), d = E(0),
|
|
99
|
+
const n = e, t = n.autoplay ?? !1, o = n.interval ?? 4e3, l = n.loop ?? !0, a = n.pauseOnHover ?? !0, i = n.startIndex ?? 0, c = n.ariaLabel ?? "Carousel", s = E(Math.max(0, i)), r = E(null), u = E(null), d = E(0), f = E(0);
|
|
100
100
|
let m = !1;
|
|
101
101
|
const p = E(0), w = E(!1);
|
|
102
102
|
let h = null, y = null;
|
|
103
|
-
const _ = E(null), b = E(null),
|
|
104
|
-
p.value = r.value ? r.value.children.length : 0, p.value === 0 ? s.value = 0 : s.value >= p.value && (s.value = l ? 0 : p.value - 1),
|
|
105
|
-
}, j = C(() => d.value > 0 ? { transform: `translateX(${-s.value * d.value +
|
|
106
|
-
r.value && Array.from(r.value.children).forEach((
|
|
103
|
+
const _ = E(null), b = E(null), L = () => {
|
|
104
|
+
p.value = r.value ? r.value.children.length : 0, p.value === 0 ? s.value = 0 : s.value >= p.value && (s.value = l ? 0 : p.value - 1), z();
|
|
105
|
+
}, j = C(() => d.value > 0 ? { transform: `translateX(${-s.value * d.value + f.value}px)` } : { transform: `translateX(-${s.value * 100}%)` }), z = () => {
|
|
106
|
+
r.value && Array.from(r.value.children).forEach((A, ye) => {
|
|
107
107
|
try {
|
|
108
|
-
ye === s.value ?
|
|
108
|
+
ye === s.value ? A.removeAttribute("aria-hidden") : A.setAttribute("aria-hidden", "true");
|
|
109
109
|
} catch {
|
|
110
110
|
}
|
|
111
111
|
});
|
|
112
112
|
}, k = () => {
|
|
113
113
|
V(), !(!t || p.value <= 1) && (a && w.value || (h = setTimeout(() => {
|
|
114
|
-
|
|
114
|
+
P(), k();
|
|
115
115
|
}, o)));
|
|
116
116
|
}, V = () => {
|
|
117
117
|
h && (clearTimeout(h), h = null);
|
|
118
|
-
},
|
|
118
|
+
}, T = () => {
|
|
119
119
|
p.value !== 0 && (s.value <= 0 ? s.value = l ? p.value - 1 : 0 : s.value--);
|
|
120
|
-
},
|
|
120
|
+
}, P = () => {
|
|
121
121
|
p.value !== 0 && (s.value >= p.value - 1 ? s.value = l ? 0 : p.value - 1 : s.value++);
|
|
122
|
-
},
|
|
123
|
-
|
|
124
|
-
},
|
|
122
|
+
}, W = (A) => {
|
|
123
|
+
A < 0 || A >= p.value || (s.value = A);
|
|
124
|
+
}, te = () => {
|
|
125
125
|
w.value = !0, a && V();
|
|
126
126
|
}, ue = () => {
|
|
127
127
|
w.value = !1, k();
|
|
128
|
-
}, de = (
|
|
129
|
-
|
|
128
|
+
}, de = (A) => {
|
|
129
|
+
A.key === "ArrowLeft" ? T() : A.key === "ArrowRight" && P();
|
|
130
130
|
};
|
|
131
|
-
let ke = 0,
|
|
132
|
-
const
|
|
133
|
-
ke =
|
|
134
|
-
}, Y = (
|
|
135
|
-
|
|
136
|
-
},
|
|
137
|
-
|
|
131
|
+
let ke = 0, ne = 0;
|
|
132
|
+
const ie = (A) => {
|
|
133
|
+
ke = A.touches[0].clientX, ne = 0;
|
|
134
|
+
}, Y = (A) => {
|
|
135
|
+
ne = A.touches[0].clientX - ke;
|
|
136
|
+
}, oe = () => {
|
|
137
|
+
ne > 50 ? T() : ne < -50 && P(), ne = 0;
|
|
138
138
|
};
|
|
139
|
-
let
|
|
140
|
-
const Vt = (
|
|
141
|
-
if (
|
|
142
|
-
m = !0,
|
|
139
|
+
let He = 0;
|
|
140
|
+
const Vt = (A) => {
|
|
141
|
+
if (A.isPrimary !== !1 && !(A.pointerType === "mouse" && A.button !== 0)) {
|
|
142
|
+
m = !0, He = A.clientX, f.value = 0, V();
|
|
143
143
|
try {
|
|
144
|
-
|
|
144
|
+
A.target?.setPointerCapture?.(A.pointerId);
|
|
145
145
|
} catch {
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
|
-
}, Ct = (
|
|
149
|
-
m && (
|
|
148
|
+
}, Ct = (A) => {
|
|
149
|
+
m && (f.value = A.clientX - He, A.preventDefault());
|
|
150
150
|
}, Et = () => {
|
|
151
151
|
if (!m) return;
|
|
152
152
|
m = !1;
|
|
153
|
-
const
|
|
154
|
-
|
|
155
|
-
}, Lt = (
|
|
153
|
+
const A = Math.max(50, d.value * 0.15);
|
|
154
|
+
f.value > A ? T() : f.value < -A && P(), f.value = 0, k();
|
|
155
|
+
}, Lt = (A) => {
|
|
156
156
|
try {
|
|
157
|
-
|
|
157
|
+
A.target?.releasePointerCapture?.(A.pointerId);
|
|
158
158
|
} catch {
|
|
159
159
|
}
|
|
160
160
|
Et();
|
|
161
161
|
}, $t = () => Et();
|
|
162
|
-
return
|
|
162
|
+
return Re(() => {
|
|
163
163
|
me(() => {
|
|
164
|
-
if (
|
|
165
|
-
const
|
|
164
|
+
if (L(), r.value && (y = new MutationObserver(L), y.observe(r.value, { childList: !0 }), r.value.addEventListener("touchstart", ie, { passive: !0 }), r.value.addEventListener("touchmove", Y, { passive: !0 }), r.value.addEventListener("touchend", oe)), u.value) {
|
|
165
|
+
const A = () => {
|
|
166
166
|
d.value = u.value ? u.value.clientWidth : 0;
|
|
167
167
|
};
|
|
168
|
-
|
|
168
|
+
A();
|
|
169
169
|
const ye = window.ResizeObserver;
|
|
170
170
|
if (ye && u.value) {
|
|
171
|
-
const we = new ye(() =>
|
|
171
|
+
const we = new ye(() => A());
|
|
172
172
|
we.observe(u.value), _.value = we;
|
|
173
173
|
} else
|
|
174
|
-
window.addEventListener("resize",
|
|
174
|
+
window.addEventListener("resize", A), b.value = A;
|
|
175
175
|
u.value && (u.value.addEventListener("pointerdown", Vt), u.value.addEventListener("pointermove", Ct), u.value.addEventListener("pointerup", Lt), u.value.addEventListener("pointercancel", $t));
|
|
176
176
|
}
|
|
177
|
-
|
|
177
|
+
z(), k();
|
|
178
178
|
});
|
|
179
|
-
}),
|
|
180
|
-
V(), y && r.value && y.disconnect(), r.value && (r.value.removeEventListener("touchstart",
|
|
181
|
-
}),
|
|
182
|
-
|
|
183
|
-
}),
|
|
179
|
+
}), Te(() => {
|
|
180
|
+
V(), y && r.value && y.disconnect(), r.value && (r.value.removeEventListener("touchstart", ie), r.value.removeEventListener("touchmove", Y), r.value.removeEventListener("touchend", oe)), u.value && (_.value && _.value.disconnect && _.value.disconnect(), b.value && window.removeEventListener("resize", b.value), u.value.removeEventListener("pointerdown", Vt), u.value.removeEventListener("pointermove", Ct), u.value.removeEventListener("pointerup", Lt), u.value.removeEventListener("pointercancel", $t));
|
|
181
|
+
}), N([s, () => p.value], () => {
|
|
182
|
+
z();
|
|
183
|
+
}), N([() => w.value, s], () => {
|
|
184
184
|
k();
|
|
185
|
-
}), (
|
|
186
|
-
const we =
|
|
187
|
-
return
|
|
185
|
+
}), (A, ye) => {
|
|
186
|
+
const we = X("VjButton");
|
|
187
|
+
return v(), g("div", {
|
|
188
188
|
class: "carousel",
|
|
189
189
|
role: "region",
|
|
190
190
|
"aria-roledescription": "carousel",
|
|
191
191
|
"aria-label": S(c),
|
|
192
192
|
tabindex: "0",
|
|
193
193
|
onKeydown: de,
|
|
194
|
-
onMouseenter:
|
|
194
|
+
onMouseenter: te,
|
|
195
195
|
onMouseleave: ue
|
|
196
196
|
}, [
|
|
197
197
|
x("div", {
|
|
@@ -203,42 +203,42 @@ const be = /* @__PURE__ */ T({
|
|
|
203
203
|
class: "carousel-track",
|
|
204
204
|
ref_key: "track",
|
|
205
205
|
ref: r,
|
|
206
|
-
style:
|
|
206
|
+
style: q(j.value)
|
|
207
207
|
}, [
|
|
208
|
-
M(
|
|
208
|
+
M(A.$slots, "default", {}, void 0, !0)
|
|
209
209
|
], 4)
|
|
210
210
|
], 512),
|
|
211
|
-
|
|
211
|
+
D(we, {
|
|
212
212
|
class: "carousel-btn prev",
|
|
213
|
-
icon: S(
|
|
214
|
-
onClick:
|
|
213
|
+
icon: S(H).PREVIOUS,
|
|
214
|
+
onClick: T,
|
|
215
215
|
type: "button",
|
|
216
216
|
"aria-label": "Previous slide"
|
|
217
217
|
}, null, 8, ["icon"]),
|
|
218
|
-
|
|
218
|
+
D(we, {
|
|
219
219
|
class: "carousel-btn next",
|
|
220
|
-
icon: S(
|
|
221
|
-
onClick:
|
|
220
|
+
icon: S(H).NEXT,
|
|
221
|
+
onClick: P,
|
|
222
222
|
type: "button",
|
|
223
223
|
"aria-label": "Next slide"
|
|
224
224
|
}, null, 8, ["icon"]),
|
|
225
|
-
p.value > 1 ? (
|
|
226
|
-
(
|
|
227
|
-
key:
|
|
228
|
-
class:
|
|
229
|
-
onClick: (
|
|
230
|
-
"aria-current":
|
|
231
|
-
"aria-label": `Go to slide ${
|
|
225
|
+
p.value > 1 ? (v(), g("div", Kn, [
|
|
226
|
+
(v(!0), g(Z, null, ge(p.value, (Ae) => (v(), F(we, {
|
|
227
|
+
key: Ae - 1,
|
|
228
|
+
class: I(["indicator", { active: Ae - 1 === s.value }]),
|
|
229
|
+
onClick: (Hi) => W(Ae - 1),
|
|
230
|
+
"aria-current": Ae - 1 === s.value,
|
|
231
|
+
"aria-label": `Go to slide ${Ae}`,
|
|
232
232
|
type: "button"
|
|
233
233
|
}, null, 8, ["class", "onClick", "aria-current", "aria-label"]))), 128))
|
|
234
|
-
])) :
|
|
234
|
+
])) : $("", !0)
|
|
235
235
|
], 40, Un);
|
|
236
236
|
};
|
|
237
237
|
}
|
|
238
|
-
}),
|
|
238
|
+
}), Ki = /* @__PURE__ */ O(Nn, [["__scopeId", "data-v-232abca2"]]), Xn = { class: "checkbox" }, qn = ["checked", "disabled"], Gn = {
|
|
239
239
|
key: 0,
|
|
240
240
|
class: "checkbox-label"
|
|
241
|
-
},
|
|
241
|
+
}, Yn = /* @__PURE__ */ R({
|
|
242
242
|
__name: "checkbox",
|
|
243
243
|
props: /* @__PURE__ */ ee({
|
|
244
244
|
label: {},
|
|
@@ -253,14 +253,14 @@ const be = /* @__PURE__ */ T({
|
|
|
253
253
|
const l = o.target;
|
|
254
254
|
n.value = l.checked;
|
|
255
255
|
};
|
|
256
|
-
return (o, l) => (
|
|
256
|
+
return (o, l) => (v(), g("label", Xn, [
|
|
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, qn),
|
|
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 be = /* @__PURE__ */ T({
|
|
|
278
278
|
})
|
|
279
279
|
])
|
|
280
280
|
], -1)),
|
|
281
|
-
e.label ? (
|
|
281
|
+
e.label ? (v(), g("span", Gn, B(e.label), 1)) : $("", !0)
|
|
282
282
|
]));
|
|
283
283
|
}
|
|
284
|
-
}),
|
|
284
|
+
}), Jn = /* @__PURE__ */ O(Yn, [["__scopeId", "data-v-d44b45ff"]]), Qn = { class: "radio" }, Zn = ["checked", "disabled"], eo = {
|
|
285
285
|
key: 0,
|
|
286
286
|
class: "radio-label"
|
|
287
|
-
},
|
|
287
|
+
}, to = /* @__PURE__ */ R({
|
|
288
288
|
__name: "radio",
|
|
289
289
|
props: /* @__PURE__ */ ee({
|
|
290
290
|
label: {},
|
|
@@ -299,24 +299,24 @@ const be = /* @__PURE__ */ T({
|
|
|
299
299
|
const l = o.target;
|
|
300
300
|
n.value = l.checked;
|
|
301
301
|
};
|
|
302
|
-
return (o, l) => (
|
|
302
|
+
return (o, l) => (v(), g("label", Qn, [
|
|
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, Zn),
|
|
310
310
|
l[0] || (l[0] = x("span", { class: "radio-box" }, [
|
|
311
311
|
x("span", {
|
|
312
312
|
class: "radio-dot",
|
|
313
313
|
"aria-hidden": "true"
|
|
314
314
|
})
|
|
315
315
|
], -1)),
|
|
316
|
-
e.label ? (
|
|
316
|
+
e.label ? (v(), g("span", eo, B(e.label), 1)) : $("", !0)
|
|
317
317
|
]));
|
|
318
318
|
}
|
|
319
|
-
}),
|
|
319
|
+
}), Ni = /* @__PURE__ */ O(to, [["__scopeId", "data-v-f9e4bb65"]]), no = { class: "chip__label" }, oo = /* @__PURE__ */ R({
|
|
320
320
|
__name: "chip",
|
|
321
321
|
props: /* @__PURE__ */ ee({
|
|
322
322
|
label: {},
|
|
@@ -334,33 +334,33 @@ const be = /* @__PURE__ */ T({
|
|
|
334
334
|
}), c = () => {
|
|
335
335
|
l("dismiss", o.value);
|
|
336
336
|
};
|
|
337
|
-
return (s, r) => (
|
|
338
|
-
class:
|
|
339
|
-
style:
|
|
337
|
+
return (s, r) => (v(), g("div", {
|
|
338
|
+
class: I(["chip", { "chip--dismissable": S(a) }]),
|
|
339
|
+
style: q(i.value),
|
|
340
340
|
onClick: r[0] || (r[0] = (u) => s.$emit("click"))
|
|
341
341
|
}, [
|
|
342
|
-
x("span",
|
|
343
|
-
S(a) ? (
|
|
342
|
+
x("span", no, B(e.label), 1),
|
|
343
|
+
S(a) ? (v(), g("button", {
|
|
344
344
|
key: 0,
|
|
345
345
|
class: "chip__close",
|
|
346
346
|
type: "button",
|
|
347
|
-
onClick:
|
|
347
|
+
onClick: K(c, ["stop"]),
|
|
348
348
|
"aria-label": "Dismiss"
|
|
349
349
|
}, [
|
|
350
|
-
|
|
351
|
-
icon: S(
|
|
352
|
-
size: S(
|
|
350
|
+
D(be, {
|
|
351
|
+
icon: S(H).CLOSE,
|
|
352
|
+
size: S(G).S
|
|
353
353
|
}, null, 8, ["icon", "size"])
|
|
354
|
-
])) :
|
|
354
|
+
])) : $("", !0)
|
|
355
355
|
], 6));
|
|
356
356
|
}
|
|
357
|
-
}),
|
|
357
|
+
}), qt = /* @__PURE__ */ O(oo, [["__scopeId", "data-v-c2014a3b"]]), lo = { class: "chip-group" }, ao = {
|
|
358
358
|
key: 0,
|
|
359
359
|
class: "chip-group__label"
|
|
360
|
-
},
|
|
360
|
+
}, io = { class: "chip-group__container" }, so = ["onDragover", "onDrop"], ro = ["onDragstart", "onDragover", "onDragenter", "onDrop"], co = ["onDragover", "onDrop"], uo = {
|
|
361
361
|
key: 1,
|
|
362
362
|
class: "chip-group__hint"
|
|
363
|
-
},
|
|
363
|
+
}, fo = /* @__PURE__ */ R({
|
|
364
364
|
__name: "chip-group",
|
|
365
365
|
props: {
|
|
366
366
|
items: { default: () => [] },
|
|
@@ -391,7 +391,7 @@ const be = /* @__PURE__ */ T({
|
|
|
391
391
|
}
|
|
392
392
|
function d() {
|
|
393
393
|
}
|
|
394
|
-
function
|
|
394
|
+
function f(h, y) {
|
|
395
395
|
return l.value === null || a.value === null || l.value === h ? !1 : y === "before" && a.value === h && l.value > h || y === "after" && a.value === h && l.value < h;
|
|
396
396
|
}
|
|
397
397
|
function m(h, y) {
|
|
@@ -404,51 +404,51 @@ const be = /* @__PURE__ */ T({
|
|
|
404
404
|
l.value = null, a.value = null;
|
|
405
405
|
}
|
|
406
406
|
function w(h) {
|
|
407
|
-
const y = t.items[h], _ = t.items.filter((b,
|
|
407
|
+
const y = t.items[h], _ = t.items.filter((b, L) => L !== h);
|
|
408
408
|
o("update:items", _), o("dismiss", y, h);
|
|
409
409
|
}
|
|
410
|
-
return (h, y) => (
|
|
411
|
-
e.label ? (
|
|
412
|
-
x("div",
|
|
413
|
-
(
|
|
410
|
+
return (h, y) => (v(), g("div", lo, [
|
|
411
|
+
e.label ? (v(), g("label", ao, B(e.label), 1)) : $("", !0),
|
|
412
|
+
x("div", io, [
|
|
413
|
+
(v(!0), g(Z, null, ge(e.items, (_, b) => (v(), g(Z, {
|
|
414
414
|
key: i(_, b)
|
|
415
415
|
}, [
|
|
416
|
-
|
|
416
|
+
f(b, "before") ? (v(), g("div", {
|
|
417
417
|
key: 0,
|
|
418
418
|
class: "chip-group__drop-indicator",
|
|
419
|
-
onDragover:
|
|
420
|
-
onDrop: (
|
|
421
|
-
}, null, 40,
|
|
419
|
+
onDragover: K((L) => r(b, L), ["prevent"]),
|
|
420
|
+
onDrop: (L) => m(b, L)
|
|
421
|
+
}, null, 40, so)) : $("", !0),
|
|
422
422
|
x("div", {
|
|
423
|
-
class:
|
|
423
|
+
class: I(["chip-group__item", { "chip-group__item--dragging": l.value === b }]),
|
|
424
424
|
draggable: "true",
|
|
425
|
-
onDragstart: (
|
|
426
|
-
onDragover:
|
|
427
|
-
onDragenter:
|
|
425
|
+
onDragstart: (L) => s(b, L),
|
|
426
|
+
onDragover: K((L) => r(b, L), ["prevent"]),
|
|
427
|
+
onDragenter: K((L) => u(b), ["prevent"]),
|
|
428
428
|
onDragleave: d,
|
|
429
|
-
onDrop: (
|
|
429
|
+
onDrop: (L) => m(b, L),
|
|
430
430
|
onDragend: p
|
|
431
431
|
}, [
|
|
432
|
-
|
|
432
|
+
D(qt, {
|
|
433
433
|
label: c(_),
|
|
434
434
|
dismissable: typeof _ == "string" ? e.dismissable : _.dismissable ?? e.dismissable,
|
|
435
435
|
color: typeof _ == "string" ? e.color : _.color ?? e.color,
|
|
436
|
-
onDismiss: (
|
|
437
|
-
onClick: (
|
|
436
|
+
onDismiss: (L) => w(b),
|
|
437
|
+
onClick: (L) => h.$emit("chip-click", _, b)
|
|
438
438
|
}, null, 8, ["label", "dismissable", "color", "onDismiss", "onClick"])
|
|
439
|
-
], 42,
|
|
440
|
-
|
|
439
|
+
], 42, ro),
|
|
440
|
+
f(b, "after") ? (v(), g("div", {
|
|
441
441
|
key: 1,
|
|
442
442
|
class: "chip-group__drop-indicator",
|
|
443
|
-
onDragover:
|
|
444
|
-
onDrop: (
|
|
445
|
-
}, null, 40,
|
|
443
|
+
onDragover: K((L) => r(b, L), ["prevent"]),
|
|
444
|
+
onDrop: (L) => m(b, L)
|
|
445
|
+
}, null, 40, co)) : $("", !0)
|
|
446
446
|
], 64))), 128))
|
|
447
447
|
]),
|
|
448
|
-
e.hint ? (
|
|
448
|
+
e.hint ? (v(), g("div", uo, B(e.hint), 1)) : $("", !0)
|
|
449
449
|
]));
|
|
450
450
|
}
|
|
451
|
-
}),
|
|
451
|
+
}), Gt = /* @__PURE__ */ O(fo, [["__scopeId", "data-v-66199d19"]]), Yt = /* @__PURE__ */ Symbol("VjDialogController"), vo = { class: "dialog-content" }, mo = { key: 1 }, po = { class: "dialog-footer" }, ho = /* @__PURE__ */ R({
|
|
452
452
|
__name: "dialog",
|
|
453
453
|
props: {
|
|
454
454
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -466,7 +466,7 @@ const be = /* @__PURE__ */ T({
|
|
|
466
466
|
emits: ["update:modelValue", "confirm", "cancel", "close", "resolve"],
|
|
467
467
|
setup(e, { emit: n }) {
|
|
468
468
|
const t = e, o = n, l = E(t.modelValue);
|
|
469
|
-
|
|
469
|
+
N(
|
|
470
470
|
() => t.modelValue,
|
|
471
471
|
(d) => l.value = d
|
|
472
472
|
);
|
|
@@ -479,7 +479,7 @@ const be = /* @__PURE__ */ T({
|
|
|
479
479
|
}, s = () => {
|
|
480
480
|
o("cancel"), a();
|
|
481
481
|
};
|
|
482
|
-
|
|
482
|
+
Kt(Yt, {
|
|
483
483
|
close: a,
|
|
484
484
|
resolve: i,
|
|
485
485
|
cancel: s
|
|
@@ -489,64 +489,64 @@ const be = /* @__PURE__ */ T({
|
|
|
489
489
|
}, u = (d) => {
|
|
490
490
|
d.key === "Escape" && t.closeOnEscape && l.value && a();
|
|
491
491
|
};
|
|
492
|
-
return
|
|
492
|
+
return Re(() => {
|
|
493
493
|
document.addEventListener("keydown", u);
|
|
494
|
-
}),
|
|
494
|
+
}), Te(() => {
|
|
495
495
|
document.removeEventListener("keydown", u);
|
|
496
|
-
}), (d,
|
|
497
|
-
const m =
|
|
498
|
-
return
|
|
499
|
-
|
|
500
|
-
default:
|
|
501
|
-
l.value ? (
|
|
496
|
+
}), (d, f) => {
|
|
497
|
+
const m = X("VjIcon"), p = X("VjButton"), w = X("VjCard");
|
|
498
|
+
return v(), F(Pe, { to: "body" }, [
|
|
499
|
+
D(De, { name: "dialog-fade" }, {
|
|
500
|
+
default: U(() => [
|
|
501
|
+
l.value ? (v(), g("div", {
|
|
502
502
|
key: 0,
|
|
503
503
|
class: "dialog-backdrop",
|
|
504
504
|
onClick: r
|
|
505
505
|
}, [
|
|
506
|
-
|
|
507
|
-
default:
|
|
508
|
-
l.value ? (
|
|
506
|
+
D(De, { name: "dialog-scale" }, {
|
|
507
|
+
default: U(() => [
|
|
508
|
+
l.value ? (v(), g("div", {
|
|
509
509
|
key: 0,
|
|
510
510
|
class: "dialog-wrapper",
|
|
511
|
-
onClick:
|
|
511
|
+
onClick: f[0] || (f[0] = K(() => {
|
|
512
512
|
}, ["stop"]))
|
|
513
513
|
}, [
|
|
514
|
-
|
|
514
|
+
D(w, {
|
|
515
515
|
class: "dialog-card",
|
|
516
516
|
header: e.title || ""
|
|
517
517
|
}, rt({
|
|
518
|
-
headerActions:
|
|
519
|
-
|
|
520
|
-
icon: S(
|
|
521
|
-
size: S(
|
|
518
|
+
headerActions: U(() => [
|
|
519
|
+
D(m, {
|
|
520
|
+
icon: S(H).CLOSE,
|
|
521
|
+
size: S(G).S,
|
|
522
522
|
class: "dialog-close",
|
|
523
523
|
onClick: a
|
|
524
524
|
}, null, 8, ["icon", "size"])
|
|
525
525
|
]),
|
|
526
|
-
default:
|
|
527
|
-
x("div",
|
|
528
|
-
e.component ? (
|
|
526
|
+
default: U(() => [
|
|
527
|
+
x("div", vo, [
|
|
528
|
+
e.component ? (v(), F(Nt(e.component), yn({ key: 0 }, e.componentProps, {
|
|
529
529
|
onCancel: s,
|
|
530
530
|
onClose: a,
|
|
531
531
|
onConfirm: c,
|
|
532
532
|
onResolve: i
|
|
533
|
-
}), null, 16)) : e.message ? (
|
|
533
|
+
}), null, 16)) : e.message ? (v(), g("div", mo, B(e.message), 1)) : M(d.$slots, "default", { key: 2 }, void 0, !0)
|
|
534
534
|
])
|
|
535
535
|
]),
|
|
536
536
|
_: 2
|
|
537
537
|
}, [
|
|
538
538
|
e.showFooter ? {
|
|
539
539
|
name: "footer",
|
|
540
|
-
fn:
|
|
541
|
-
x("div",
|
|
540
|
+
fn: U(() => [
|
|
541
|
+
x("div", po, [
|
|
542
542
|
M(d.$slots, "footer", {}, () => [
|
|
543
|
-
e.showCancel ? (
|
|
543
|
+
e.showCancel ? (v(), F(p, {
|
|
544
544
|
key: 0,
|
|
545
545
|
secondary: "",
|
|
546
546
|
onClick: s,
|
|
547
547
|
label: e.cancelText
|
|
548
|
-
}, null, 8, ["label"])) :
|
|
549
|
-
|
|
548
|
+
}, null, 8, ["label"])) : $("", !0),
|
|
549
|
+
D(p, {
|
|
550
550
|
primary: "",
|
|
551
551
|
onClick: c,
|
|
552
552
|
label: e.confirmText
|
|
@@ -557,21 +557,21 @@ const be = /* @__PURE__ */ T({
|
|
|
557
557
|
key: "0"
|
|
558
558
|
} : void 0
|
|
559
559
|
]), 1032, ["header"])
|
|
560
|
-
])) :
|
|
560
|
+
])) : $("", !0)
|
|
561
561
|
]),
|
|
562
562
|
_: 3
|
|
563
563
|
})
|
|
564
|
-
])) :
|
|
564
|
+
])) : $("", !0)
|
|
565
565
|
]),
|
|
566
566
|
_: 3
|
|
567
567
|
})
|
|
568
568
|
]);
|
|
569
569
|
};
|
|
570
570
|
}
|
|
571
|
-
}), ft = /* @__PURE__ */
|
|
571
|
+
}), ft = /* @__PURE__ */ O(ho, [["__scopeId", "data-v-29d1729b"]]), go = { class: "vj-chip-selector" }, bo = { class: "options-grid" }, yo = ["onClick"], wo = {
|
|
572
572
|
key: 0,
|
|
573
573
|
class: "no-options"
|
|
574
|
-
},
|
|
574
|
+
}, _o = /* @__PURE__ */ R({
|
|
575
575
|
__name: "chip-selector",
|
|
576
576
|
props: {
|
|
577
577
|
items: { default: () => [] },
|
|
@@ -594,14 +594,14 @@ const be = /* @__PURE__ */ T({
|
|
|
594
594
|
l.value = u, o("update:items", u);
|
|
595
595
|
}
|
|
596
596
|
}
|
|
597
|
-
return
|
|
597
|
+
return N(
|
|
598
598
|
() => t.items,
|
|
599
599
|
(r) => {
|
|
600
600
|
JSON.stringify(r) !== JSON.stringify(l.value) && (l.value = [...r]);
|
|
601
601
|
},
|
|
602
602
|
{ deep: !0 }
|
|
603
|
-
), (r, u) => (
|
|
604
|
-
|
|
603
|
+
), (r, u) => (v(), g("div", go, [
|
|
604
|
+
D(Gt, {
|
|
605
605
|
items: l.value,
|
|
606
606
|
"onUpdate:items": [
|
|
607
607
|
u[0] || (u[0] = (d) => l.value = d),
|
|
@@ -615,36 +615,36 @@ const be = /* @__PURE__ */ T({
|
|
|
615
615
|
class: "add-button",
|
|
616
616
|
onClick: u[1] || (u[1] = (d) => a.value = !0)
|
|
617
617
|
}, B(e.addButtonText), 1),
|
|
618
|
-
|
|
618
|
+
D(ft, {
|
|
619
619
|
modelValue: a.value,
|
|
620
620
|
"onUpdate:modelValue": u[2] || (u[2] = (d) => a.value = d),
|
|
621
621
|
title: e.dialogTitle || `Add ${e.label}`,
|
|
622
622
|
"close-on-backdrop": ""
|
|
623
623
|
}, {
|
|
624
|
-
default:
|
|
625
|
-
x("div",
|
|
626
|
-
(
|
|
624
|
+
default: U(() => [
|
|
625
|
+
x("div", bo, [
|
|
626
|
+
(v(!0), g(Z, null, ge(i.value, (d) => (v(), g("button", {
|
|
627
627
|
key: d.value,
|
|
628
628
|
type: "button",
|
|
629
629
|
class: "option-btn",
|
|
630
|
-
onClick: (
|
|
631
|
-
}, "+ " + B(d.label), 9,
|
|
630
|
+
onClick: (f) => s(d.value)
|
|
631
|
+
}, "+ " + B(d.label), 9, yo))), 128))
|
|
632
632
|
]),
|
|
633
|
-
i.value.length === 0 ? (
|
|
633
|
+
i.value.length === 0 ? (v(), g("div", wo, "All options already selected")) : $("", !0)
|
|
634
634
|
]),
|
|
635
635
|
_: 1
|
|
636
636
|
}, 8, ["modelValue", "title"])
|
|
637
637
|
]));
|
|
638
638
|
}
|
|
639
|
-
}),
|
|
639
|
+
}), xo = /* @__PURE__ */ O(_o, [["__scopeId", "data-v-f2e1b880"]]), $e = Math.min, J = Math.max, Ke = Math.round, We = Math.floor, se = (e) => ({
|
|
640
640
|
x: e,
|
|
641
641
|
y: e
|
|
642
|
-
}),
|
|
642
|
+
}), ko = {
|
|
643
643
|
left: "right",
|
|
644
644
|
right: "left",
|
|
645
645
|
bottom: "top",
|
|
646
646
|
top: "bottom"
|
|
647
|
-
},
|
|
647
|
+
}, Vo = {
|
|
648
648
|
start: "end",
|
|
649
649
|
end: "start"
|
|
650
650
|
};
|
|
@@ -657,7 +657,7 @@ function Me(e, n) {
|
|
|
657
657
|
function pe(e) {
|
|
658
658
|
return e.split("-")[0];
|
|
659
659
|
}
|
|
660
|
-
function
|
|
660
|
+
function Fe(e) {
|
|
661
661
|
return e.split("-")[1];
|
|
662
662
|
}
|
|
663
663
|
function Jt(e) {
|
|
@@ -666,48 +666,48 @@ function Jt(e) {
|
|
|
666
666
|
function Qt(e) {
|
|
667
667
|
return e === "y" ? "height" : "width";
|
|
668
668
|
}
|
|
669
|
-
const
|
|
669
|
+
const Co = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
670
670
|
function fe(e) {
|
|
671
|
-
return
|
|
671
|
+
return Co.has(pe(e)) ? "y" : "x";
|
|
672
672
|
}
|
|
673
673
|
function Zt(e) {
|
|
674
674
|
return Jt(fe(e));
|
|
675
675
|
}
|
|
676
|
-
function
|
|
676
|
+
function Eo(e, n, t) {
|
|
677
677
|
t === void 0 && (t = !1);
|
|
678
|
-
const o =
|
|
678
|
+
const o = Fe(e), l = Zt(e), a = Qt(l);
|
|
679
679
|
let i = l === "x" ? o === (t ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
680
680
|
return n.reference[a] > n.floating[a] && (i = Ne(i)), [i, Ne(i)];
|
|
681
681
|
}
|
|
682
|
-
function
|
|
682
|
+
function Lo(e) {
|
|
683
683
|
const n = Ne(e);
|
|
684
684
|
return [it(e), n, it(n)];
|
|
685
685
|
}
|
|
686
686
|
function it(e) {
|
|
687
|
-
return e.replace(/start|end/g, (n) =>
|
|
687
|
+
return e.replace(/start|end/g, (n) => Vo[n]);
|
|
688
688
|
}
|
|
689
|
-
const Tt = ["left", "right"], At = ["right", "left"],
|
|
690
|
-
function
|
|
689
|
+
const Tt = ["left", "right"], At = ["right", "left"], $o = ["top", "bottom"], So = ["bottom", "top"];
|
|
690
|
+
function Ro(e, n, t) {
|
|
691
691
|
switch (e) {
|
|
692
692
|
case "top":
|
|
693
693
|
case "bottom":
|
|
694
694
|
return t ? n ? At : Tt : n ? Tt : At;
|
|
695
695
|
case "left":
|
|
696
696
|
case "right":
|
|
697
|
-
return n ?
|
|
697
|
+
return n ? $o : So;
|
|
698
698
|
default:
|
|
699
699
|
return [];
|
|
700
700
|
}
|
|
701
701
|
}
|
|
702
|
-
function
|
|
703
|
-
const l =
|
|
704
|
-
let a =
|
|
702
|
+
function To(e, n, t, o) {
|
|
703
|
+
const l = Fe(e);
|
|
704
|
+
let a = Ro(pe(e), t === "start", o);
|
|
705
705
|
return l && (a = a.map((i) => i + "-" + l), n && (a = a.concat(a.map(it)))), a;
|
|
706
706
|
}
|
|
707
707
|
function Ne(e) {
|
|
708
|
-
return e.replace(/left|right|bottom|top/g, (n) =>
|
|
708
|
+
return e.replace(/left|right|bottom|top/g, (n) => ko[n]);
|
|
709
709
|
}
|
|
710
|
-
function
|
|
710
|
+
function Ao(e) {
|
|
711
711
|
return {
|
|
712
712
|
top: 0,
|
|
713
713
|
right: 0,
|
|
@@ -716,15 +716,15 @@ function To(e) {
|
|
|
716
716
|
...e
|
|
717
717
|
};
|
|
718
718
|
}
|
|
719
|
-
function
|
|
720
|
-
return typeof e != "number" ?
|
|
719
|
+
function Oo(e) {
|
|
720
|
+
return typeof e != "number" ? Ao(e) : {
|
|
721
721
|
top: e,
|
|
722
722
|
right: e,
|
|
723
723
|
bottom: e,
|
|
724
724
|
left: e
|
|
725
725
|
};
|
|
726
726
|
}
|
|
727
|
-
function
|
|
727
|
+
function Xe(e) {
|
|
728
728
|
const {
|
|
729
729
|
x: n,
|
|
730
730
|
y: t,
|
|
@@ -747,7 +747,7 @@ function Ot(e, n, t) {
|
|
|
747
747
|
reference: o,
|
|
748
748
|
floating: l
|
|
749
749
|
} = e;
|
|
750
|
-
const a = fe(n), i = Zt(n), c = Qt(i), s = pe(n), r = a === "y", u = o.x + o.width / 2 - l.width / 2, d = o.y + o.height / 2 - l.height / 2,
|
|
750
|
+
const a = fe(n), i = Zt(n), c = Qt(i), s = pe(n), r = a === "y", u = o.x + o.width / 2 - l.width / 2, d = o.y + o.height / 2 - l.height / 2, f = o[c] / 2 - l[c] / 2;
|
|
751
751
|
let m;
|
|
752
752
|
switch (s) {
|
|
753
753
|
case "top":
|
|
@@ -780,17 +780,17 @@ function Ot(e, n, t) {
|
|
|
780
780
|
y: o.y
|
|
781
781
|
};
|
|
782
782
|
}
|
|
783
|
-
switch (
|
|
783
|
+
switch (Fe(n)) {
|
|
784
784
|
case "start":
|
|
785
|
-
m[i] -=
|
|
785
|
+
m[i] -= f * (t && r ? -1 : 1);
|
|
786
786
|
break;
|
|
787
787
|
case "end":
|
|
788
|
-
m[i] +=
|
|
788
|
+
m[i] += f * (t && r ? -1 : 1);
|
|
789
789
|
break;
|
|
790
790
|
}
|
|
791
791
|
return m;
|
|
792
792
|
}
|
|
793
|
-
const
|
|
793
|
+
const Do = async (e, n, t) => {
|
|
794
794
|
const {
|
|
795
795
|
placement: o = "bottom",
|
|
796
796
|
strategy: l = "absolute",
|
|
@@ -804,7 +804,7 @@ const Oo = async (e, n, t) => {
|
|
|
804
804
|
}), {
|
|
805
805
|
x: u,
|
|
806
806
|
y: d
|
|
807
|
-
} = Ot(r, o, s),
|
|
807
|
+
} = Ot(r, o, s), f = o, m = {}, p = 0;
|
|
808
808
|
for (let w = 0; w < c.length; w++) {
|
|
809
809
|
const {
|
|
810
810
|
name: h,
|
|
@@ -812,13 +812,13 @@ const Oo = async (e, n, t) => {
|
|
|
812
812
|
} = c[w], {
|
|
813
813
|
x: _,
|
|
814
814
|
y: b,
|
|
815
|
-
data:
|
|
815
|
+
data: L,
|
|
816
816
|
reset: j
|
|
817
817
|
} = await y({
|
|
818
818
|
x: u,
|
|
819
819
|
y: d,
|
|
820
820
|
initialPlacement: o,
|
|
821
|
-
placement:
|
|
821
|
+
placement: f,
|
|
822
822
|
strategy: l,
|
|
823
823
|
middlewareData: m,
|
|
824
824
|
rects: r,
|
|
@@ -832,21 +832,21 @@ const Oo = async (e, n, t) => {
|
|
|
832
832
|
...m,
|
|
833
833
|
[h]: {
|
|
834
834
|
...m[h],
|
|
835
|
-
|
|
835
|
+
...L
|
|
836
836
|
}
|
|
837
|
-
}, j && p <= 50 && (p++, typeof j == "object" && (j.placement && (
|
|
837
|
+
}, j && p <= 50 && (p++, typeof j == "object" && (j.placement && (f = j.placement), j.rects && (r = j.rects === !0 ? await i.getElementRects({
|
|
838
838
|
reference: e,
|
|
839
839
|
floating: n,
|
|
840
840
|
strategy: l
|
|
841
841
|
}) : j.rects), {
|
|
842
842
|
x: u,
|
|
843
843
|
y: d
|
|
844
|
-
} = Ot(r,
|
|
844
|
+
} = Ot(r, f, s)), w = -1);
|
|
845
845
|
}
|
|
846
846
|
return {
|
|
847
847
|
x: u,
|
|
848
848
|
y: d,
|
|
849
|
-
placement:
|
|
849
|
+
placement: f,
|
|
850
850
|
strategy: l,
|
|
851
851
|
middlewareData: m
|
|
852
852
|
};
|
|
@@ -865,9 +865,9 @@ async function vt(e, n) {
|
|
|
865
865
|
boundary: r = "clippingAncestors",
|
|
866
866
|
rootBoundary: u = "viewport",
|
|
867
867
|
elementContext: d = "floating",
|
|
868
|
-
altBoundary:
|
|
868
|
+
altBoundary: f = !1,
|
|
869
869
|
padding: m = 0
|
|
870
|
-
} = Me(n, e), p =
|
|
870
|
+
} = Me(n, e), p = Oo(m), h = c[f ? d === "floating" ? "reference" : "floating" : d], y = Xe(await a.getClippingRect({
|
|
871
871
|
element: (t = await (a.isElement == null ? void 0 : a.isElement(h))) == null || t ? h : h.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(c.floating)),
|
|
872
872
|
boundary: r,
|
|
873
873
|
rootBoundary: u,
|
|
@@ -877,26 +877,26 @@ async function vt(e, n) {
|
|
|
877
877
|
y: l,
|
|
878
878
|
width: i.floating.width,
|
|
879
879
|
height: i.floating.height
|
|
880
|
-
} : i.reference, b = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(c.floating)),
|
|
880
|
+
} : i.reference, b = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(c.floating)), L = await (a.isElement == null ? void 0 : a.isElement(b)) ? await (a.getScale == null ? void 0 : a.getScale(b)) || {
|
|
881
881
|
x: 1,
|
|
882
882
|
y: 1
|
|
883
883
|
} : {
|
|
884
884
|
x: 1,
|
|
885
885
|
y: 1
|
|
886
|
-
}, j =
|
|
886
|
+
}, j = Xe(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
887
887
|
elements: c,
|
|
888
888
|
rect: _,
|
|
889
889
|
offsetParent: b,
|
|
890
890
|
strategy: s
|
|
891
891
|
}) : _);
|
|
892
892
|
return {
|
|
893
|
-
top: (y.top - j.top + p.top) /
|
|
894
|
-
bottom: (j.bottom - y.bottom + p.bottom) /
|
|
895
|
-
left: (y.left - j.left + p.left) /
|
|
896
|
-
right: (j.right - y.right + p.right) /
|
|
893
|
+
top: (y.top - j.top + p.top) / L.y,
|
|
894
|
+
bottom: (j.bottom - y.bottom + p.bottom) / L.y,
|
|
895
|
+
left: (y.left - j.left + p.left) / L.x,
|
|
896
|
+
right: (j.right - y.right + p.right) / L.x
|
|
897
897
|
};
|
|
898
898
|
}
|
|
899
|
-
const
|
|
899
|
+
const jo = function(e) {
|
|
900
900
|
return e === void 0 && (e = {}), {
|
|
901
901
|
name: "flip",
|
|
902
902
|
options: e,
|
|
@@ -912,7 +912,7 @@ const Do = function(e) {
|
|
|
912
912
|
} = n, {
|
|
913
913
|
mainAxis: u = !0,
|
|
914
914
|
crossAxis: d = !0,
|
|
915
|
-
fallbackPlacements:
|
|
915
|
+
fallbackPlacements: f,
|
|
916
916
|
fallbackStrategy: m = "bestFit",
|
|
917
917
|
fallbackAxisSideDirection: p = "none",
|
|
918
918
|
flipAlignment: w = !0,
|
|
@@ -920,57 +920,57 @@ const Do = function(e) {
|
|
|
920
920
|
} = Me(e, n);
|
|
921
921
|
if ((t = a.arrow) != null && t.alignmentOffset)
|
|
922
922
|
return {};
|
|
923
|
-
const y = pe(l), _ = fe(c), b = pe(c) === c,
|
|
924
|
-
!
|
|
925
|
-
const k = [c, ...j], V = await vt(n, h),
|
|
926
|
-
let
|
|
927
|
-
if (u &&
|
|
928
|
-
const de =
|
|
929
|
-
|
|
923
|
+
const y = pe(l), _ = fe(c), b = pe(c) === c, L = await (s.isRTL == null ? void 0 : s.isRTL(r.floating)), j = f || (b || !w ? [Ne(c)] : Lo(c)), z = p !== "none";
|
|
924
|
+
!f && z && j.push(...To(c, w, p, L));
|
|
925
|
+
const k = [c, ...j], V = await vt(n, h), T = [];
|
|
926
|
+
let P = ((o = a.flip) == null ? void 0 : o.overflows) || [];
|
|
927
|
+
if (u && T.push(V[y]), d) {
|
|
928
|
+
const de = Eo(l, i, L);
|
|
929
|
+
T.push(V[de[0]], V[de[1]]);
|
|
930
930
|
}
|
|
931
|
-
if (
|
|
931
|
+
if (P = [...P, {
|
|
932
932
|
placement: l,
|
|
933
|
-
overflows:
|
|
934
|
-
}], !
|
|
935
|
-
var
|
|
936
|
-
const de = (((
|
|
933
|
+
overflows: T
|
|
934
|
+
}], !T.every((de) => de <= 0)) {
|
|
935
|
+
var W, te;
|
|
936
|
+
const de = (((W = a.flip) == null ? void 0 : W.index) || 0) + 1, ke = k[de];
|
|
937
937
|
if (ke && (!(d === "alignment" ? _ !== fe(ke) : !1) || // We leave the current main axis only if every placement on that axis
|
|
938
938
|
// overflows the main axis.
|
|
939
|
-
|
|
939
|
+
P.every((Y) => fe(Y.placement) === _ ? Y.overflows[0] > 0 : !0)))
|
|
940
940
|
return {
|
|
941
941
|
data: {
|
|
942
942
|
index: de,
|
|
943
|
-
overflows:
|
|
943
|
+
overflows: P
|
|
944
944
|
},
|
|
945
945
|
reset: {
|
|
946
946
|
placement: ke
|
|
947
947
|
}
|
|
948
948
|
};
|
|
949
|
-
let
|
|
950
|
-
if (!
|
|
949
|
+
let ne = (te = P.filter((ie) => ie.overflows[0] <= 0).sort((ie, Y) => ie.overflows[1] - Y.overflows[1])[0]) == null ? void 0 : te.placement;
|
|
950
|
+
if (!ne)
|
|
951
951
|
switch (m) {
|
|
952
952
|
case "bestFit": {
|
|
953
953
|
var ue;
|
|
954
|
-
const
|
|
955
|
-
if (
|
|
956
|
-
const
|
|
957
|
-
return
|
|
954
|
+
const ie = (ue = P.filter((Y) => {
|
|
955
|
+
if (z) {
|
|
956
|
+
const oe = fe(Y.placement);
|
|
957
|
+
return oe === _ || // Create a bias to the `y` side axis due to horizontal
|
|
958
958
|
// reading directions favoring greater width.
|
|
959
|
-
|
|
959
|
+
oe === "y";
|
|
960
960
|
}
|
|
961
961
|
return !0;
|
|
962
|
-
}).map((Y) => [Y.placement, Y.overflows.filter((
|
|
963
|
-
|
|
962
|
+
}).map((Y) => [Y.placement, Y.overflows.filter((oe) => oe > 0).reduce((oe, He) => oe + He, 0)]).sort((Y, oe) => Y[1] - oe[1])[0]) == null ? void 0 : ue[0];
|
|
963
|
+
ie && (ne = ie);
|
|
964
964
|
break;
|
|
965
965
|
}
|
|
966
966
|
case "initialPlacement":
|
|
967
|
-
|
|
967
|
+
ne = c;
|
|
968
968
|
break;
|
|
969
969
|
}
|
|
970
|
-
if (l !==
|
|
970
|
+
if (l !== ne)
|
|
971
971
|
return {
|
|
972
972
|
reset: {
|
|
973
|
-
placement:
|
|
973
|
+
placement: ne
|
|
974
974
|
}
|
|
975
975
|
};
|
|
976
976
|
}
|
|
@@ -978,14 +978,14 @@ const Do = function(e) {
|
|
|
978
978
|
}
|
|
979
979
|
};
|
|
980
980
|
}, Bo = /* @__PURE__ */ new Set(["left", "top"]);
|
|
981
|
-
async function
|
|
981
|
+
async function Po(e, n) {
|
|
982
982
|
const {
|
|
983
983
|
placement: t,
|
|
984
984
|
platform: o,
|
|
985
985
|
elements: l
|
|
986
|
-
} = e, a = await (o.isRTL == null ? void 0 : o.isRTL(l.floating)), i = pe(t), c =
|
|
986
|
+
} = e, a = await (o.isRTL == null ? void 0 : o.isRTL(l.floating)), i = pe(t), c = Fe(t), s = fe(t) === "y", r = Bo.has(i) ? -1 : 1, u = a && s ? -1 : 1, d = Me(n, e);
|
|
987
987
|
let {
|
|
988
|
-
mainAxis:
|
|
988
|
+
mainAxis: f,
|
|
989
989
|
crossAxis: m,
|
|
990
990
|
alignmentAxis: p
|
|
991
991
|
} = typeof d == "number" ? {
|
|
@@ -999,9 +999,9 @@ async function jo(e, n) {
|
|
|
999
999
|
};
|
|
1000
1000
|
return c && typeof p == "number" && (m = c === "end" ? p * -1 : p), s ? {
|
|
1001
1001
|
x: m * u,
|
|
1002
|
-
y:
|
|
1002
|
+
y: f * r
|
|
1003
1003
|
} : {
|
|
1004
|
-
x:
|
|
1004
|
+
x: f * r,
|
|
1005
1005
|
y: m * u
|
|
1006
1006
|
};
|
|
1007
1007
|
}
|
|
@@ -1016,7 +1016,7 @@ const Mo = function(e) {
|
|
|
1016
1016
|
y: a,
|
|
1017
1017
|
placement: i,
|
|
1018
1018
|
middlewareData: c
|
|
1019
|
-
} = n, s = await
|
|
1019
|
+
} = n, s = await Po(n, e);
|
|
1020
1020
|
return i === ((t = c.offset) == null ? void 0 : t.placement) && (o = c.arrow) != null && o.alignmentOffset ? {} : {
|
|
1021
1021
|
x: l + s.x,
|
|
1022
1022
|
y: a + s.y,
|
|
@@ -1027,7 +1027,7 @@ const Mo = function(e) {
|
|
|
1027
1027
|
};
|
|
1028
1028
|
}
|
|
1029
1029
|
};
|
|
1030
|
-
},
|
|
1030
|
+
}, Fo = function(e) {
|
|
1031
1031
|
return e === void 0 && (e = {}), {
|
|
1032
1032
|
name: "shift",
|
|
1033
1033
|
options: e,
|
|
@@ -1055,10 +1055,10 @@ const Mo = function(e) {
|
|
|
1055
1055
|
} = Me(e, n), r = {
|
|
1056
1056
|
x: t,
|
|
1057
1057
|
y: o
|
|
1058
|
-
}, u = await vt(n, s), d = fe(pe(l)),
|
|
1059
|
-
let m = r[
|
|
1058
|
+
}, u = await vt(n, s), d = fe(pe(l)), f = Jt(d);
|
|
1059
|
+
let m = r[f], p = r[d];
|
|
1060
1060
|
if (a) {
|
|
1061
|
-
const h =
|
|
1061
|
+
const h = f === "y" ? "top" : "left", y = f === "y" ? "bottom" : "right", _ = m + u[h], b = m - u[y];
|
|
1062
1062
|
m = Rt(_, m, b);
|
|
1063
1063
|
}
|
|
1064
1064
|
if (i) {
|
|
@@ -1067,7 +1067,7 @@ const Mo = function(e) {
|
|
|
1067
1067
|
}
|
|
1068
1068
|
const w = c.fn({
|
|
1069
1069
|
...n,
|
|
1070
|
-
[
|
|
1070
|
+
[f]: m,
|
|
1071
1071
|
[d]: p
|
|
1072
1072
|
});
|
|
1073
1073
|
return {
|
|
@@ -1076,14 +1076,14 @@ const Mo = function(e) {
|
|
|
1076
1076
|
x: w.x - t,
|
|
1077
1077
|
y: w.y - o,
|
|
1078
1078
|
enabled: {
|
|
1079
|
-
[
|
|
1079
|
+
[f]: a,
|
|
1080
1080
|
[d]: i
|
|
1081
1081
|
}
|
|
1082
1082
|
}
|
|
1083
1083
|
};
|
|
1084
1084
|
}
|
|
1085
1085
|
};
|
|
1086
|
-
},
|
|
1086
|
+
}, zo = function(e) {
|
|
1087
1087
|
return e === void 0 && (e = {}), {
|
|
1088
1088
|
name: "size",
|
|
1089
1089
|
options: e,
|
|
@@ -1098,25 +1098,25 @@ const Mo = function(e) {
|
|
|
1098
1098
|
apply: s = () => {
|
|
1099
1099
|
},
|
|
1100
1100
|
...r
|
|
1101
|
-
} = Me(e, n), u = await vt(n, r), d = pe(l),
|
|
1101
|
+
} = Me(e, n), u = await vt(n, r), d = pe(l), f = Fe(l), m = fe(l) === "y", {
|
|
1102
1102
|
width: p,
|
|
1103
1103
|
height: w
|
|
1104
1104
|
} = a.floating;
|
|
1105
1105
|
let h, y;
|
|
1106
|
-
d === "top" || d === "bottom" ? (h = d, y =
|
|
1107
|
-
const _ = w - u.top - u.bottom, b = p - u.left - u.right,
|
|
1108
|
-
let k =
|
|
1109
|
-
if ((t = n.middlewareData.shift) != null && t.enabled.x && (V = b), (o = n.middlewareData.shift) != null && o.enabled.y && (k = _),
|
|
1110
|
-
const
|
|
1111
|
-
m ? V = p - 2 * (
|
|
1106
|
+
d === "top" || d === "bottom" ? (h = d, y = f === (await (i.isRTL == null ? void 0 : i.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (y = d, h = f === "end" ? "top" : "bottom");
|
|
1107
|
+
const _ = w - u.top - u.bottom, b = p - u.left - u.right, L = $e(w - u[h], _), j = $e(p - u[y], b), z = !n.middlewareData.shift;
|
|
1108
|
+
let k = L, V = j;
|
|
1109
|
+
if ((t = n.middlewareData.shift) != null && t.enabled.x && (V = b), (o = n.middlewareData.shift) != null && o.enabled.y && (k = _), z && !f) {
|
|
1110
|
+
const P = J(u.left, 0), W = J(u.right, 0), te = J(u.top, 0), ue = J(u.bottom, 0);
|
|
1111
|
+
m ? V = p - 2 * (P !== 0 || W !== 0 ? P + W : J(u.left, u.right)) : k = w - 2 * (te !== 0 || ue !== 0 ? te + ue : J(u.top, u.bottom));
|
|
1112
1112
|
}
|
|
1113
1113
|
await s({
|
|
1114
1114
|
...n,
|
|
1115
1115
|
availableWidth: V,
|
|
1116
1116
|
availableHeight: k
|
|
1117
1117
|
});
|
|
1118
|
-
const
|
|
1119
|
-
return p !==
|
|
1118
|
+
const T = await i.getDimensions(c.floating);
|
|
1119
|
+
return p !== T.width || w !== T.height ? {
|
|
1120
1120
|
reset: {
|
|
1121
1121
|
rects: !0
|
|
1122
1122
|
}
|
|
@@ -1134,38 +1134,38 @@ function Q(e) {
|
|
|
1134
1134
|
var n;
|
|
1135
1135
|
return (e == null || (n = e.ownerDocument) == null ? void 0 : n.defaultView) || window;
|
|
1136
1136
|
}
|
|
1137
|
-
function
|
|
1137
|
+
function ce(e) {
|
|
1138
1138
|
var n;
|
|
1139
1139
|
return (n = (mt(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : n.documentElement;
|
|
1140
1140
|
}
|
|
1141
1141
|
function mt(e) {
|
|
1142
1142
|
return Ge() ? e instanceof Node || e instanceof Q(e).Node : !1;
|
|
1143
1143
|
}
|
|
1144
|
-
function
|
|
1144
|
+
function le(e) {
|
|
1145
1145
|
return Ge() ? e instanceof Element || e instanceof Q(e).Element : !1;
|
|
1146
1146
|
}
|
|
1147
|
-
function
|
|
1147
|
+
function re(e) {
|
|
1148
1148
|
return Ge() ? e instanceof HTMLElement || e instanceof Q(e).HTMLElement : !1;
|
|
1149
1149
|
}
|
|
1150
1150
|
function Dt(e) {
|
|
1151
1151
|
return !Ge() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Q(e).ShadowRoot;
|
|
1152
1152
|
}
|
|
1153
|
-
const
|
|
1154
|
-
function
|
|
1153
|
+
const Io = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
1154
|
+
function ze(e) {
|
|
1155
1155
|
const {
|
|
1156
1156
|
overflow: n,
|
|
1157
1157
|
overflowX: t,
|
|
1158
1158
|
overflowY: o,
|
|
1159
1159
|
display: l
|
|
1160
|
-
} =
|
|
1161
|
-
return /auto|scroll|overlay|hidden|clip/.test(n + o + t) && !
|
|
1160
|
+
} = ae(e);
|
|
1161
|
+
return /auto|scroll|overlay|hidden|clip/.test(n + o + t) && !Io.has(l);
|
|
1162
1162
|
}
|
|
1163
|
-
const
|
|
1164
|
-
function
|
|
1165
|
-
return
|
|
1163
|
+
const Ho = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
1164
|
+
function Wo(e) {
|
|
1165
|
+
return Ho.has(xe(e));
|
|
1166
1166
|
}
|
|
1167
1167
|
const Uo = [":popover-open", ":modal"];
|
|
1168
|
-
function
|
|
1168
|
+
function Ye(e) {
|
|
1169
1169
|
return Uo.some((n) => {
|
|
1170
1170
|
try {
|
|
1171
1171
|
return e.matches(n);
|
|
@@ -1174,17 +1174,17 @@ function qe(e) {
|
|
|
1174
1174
|
}
|
|
1175
1175
|
});
|
|
1176
1176
|
}
|
|
1177
|
-
const
|
|
1177
|
+
const Ko = ["transform", "translate", "scale", "rotate", "perspective"], No = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Xo = ["paint", "layout", "strict", "content"];
|
|
1178
1178
|
function pt(e) {
|
|
1179
|
-
const n = ht(), t =
|
|
1180
|
-
return
|
|
1179
|
+
const n = ht(), t = le(e) ? ae(e) : e;
|
|
1180
|
+
return Ko.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) || No.some((o) => (t.willChange || "").includes(o)) || Xo.some((o) => (t.contain || "").includes(o));
|
|
1181
1181
|
}
|
|
1182
|
-
function
|
|
1182
|
+
function qo(e) {
|
|
1183
1183
|
let n = he(e);
|
|
1184
|
-
for (;
|
|
1184
|
+
for (; re(n) && !Se(n); ) {
|
|
1185
1185
|
if (pt(n))
|
|
1186
1186
|
return n;
|
|
1187
|
-
if (
|
|
1187
|
+
if (Ye(n))
|
|
1188
1188
|
return null;
|
|
1189
1189
|
n = he(n);
|
|
1190
1190
|
}
|
|
@@ -1197,11 +1197,11 @@ const Go = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
|
1197
1197
|
function Se(e) {
|
|
1198
1198
|
return Go.has(xe(e));
|
|
1199
1199
|
}
|
|
1200
|
-
function
|
|
1200
|
+
function ae(e) {
|
|
1201
1201
|
return Q(e).getComputedStyle(e);
|
|
1202
1202
|
}
|
|
1203
|
-
function
|
|
1204
|
-
return
|
|
1203
|
+
function Je(e) {
|
|
1204
|
+
return le(e) ? {
|
|
1205
1205
|
scrollLeft: e.scrollLeft,
|
|
1206
1206
|
scrollTop: e.scrollTop
|
|
1207
1207
|
} : {
|
|
@@ -1217,31 +1217,31 @@ function he(e) {
|
|
|
1217
1217
|
e.assignedSlot || // DOM Element detected.
|
|
1218
1218
|
e.parentNode || // ShadowRoot detected.
|
|
1219
1219
|
Dt(e) && e.host || // Fallback.
|
|
1220
|
-
|
|
1220
|
+
ce(e)
|
|
1221
1221
|
);
|
|
1222
1222
|
return Dt(n) ? n.host : n;
|
|
1223
1223
|
}
|
|
1224
1224
|
function en(e) {
|
|
1225
1225
|
const n = he(e);
|
|
1226
|
-
return Se(n) ? e.ownerDocument ? e.ownerDocument.body : e.body :
|
|
1226
|
+
return Se(n) ? e.ownerDocument ? e.ownerDocument.body : e.body : re(n) && ze(n) ? n : en(n);
|
|
1227
1227
|
}
|
|
1228
|
-
function
|
|
1228
|
+
function Be(e, n, t) {
|
|
1229
1229
|
var o;
|
|
1230
1230
|
n === void 0 && (n = []), t === void 0 && (t = !0);
|
|
1231
1231
|
const l = en(e), a = l === ((o = e.ownerDocument) == null ? void 0 : o.body), i = Q(l);
|
|
1232
1232
|
if (a) {
|
|
1233
1233
|
const c = st(i);
|
|
1234
|
-
return n.concat(i, i.visualViewport || [],
|
|
1234
|
+
return n.concat(i, i.visualViewport || [], ze(l) ? l : [], c && t ? Be(c) : []);
|
|
1235
1235
|
}
|
|
1236
|
-
return n.concat(l,
|
|
1236
|
+
return n.concat(l, Be(l, [], t));
|
|
1237
1237
|
}
|
|
1238
1238
|
function st(e) {
|
|
1239
1239
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
1240
1240
|
}
|
|
1241
1241
|
function tn(e) {
|
|
1242
|
-
const n =
|
|
1242
|
+
const n = ae(e);
|
|
1243
1243
|
let t = parseFloat(n.width) || 0, o = parseFloat(n.height) || 0;
|
|
1244
|
-
const l =
|
|
1244
|
+
const l = re(e), a = l ? e.offsetWidth : t, i = l ? e.offsetHeight : o, c = Ke(t) !== a || Ke(o) !== i;
|
|
1245
1245
|
return c && (t = a, o = i), {
|
|
1246
1246
|
width: t,
|
|
1247
1247
|
height: o,
|
|
@@ -1249,122 +1249,122 @@ function tn(e) {
|
|
|
1249
1249
|
};
|
|
1250
1250
|
}
|
|
1251
1251
|
function gt(e) {
|
|
1252
|
-
return
|
|
1252
|
+
return le(e) ? e : e.contextElement;
|
|
1253
1253
|
}
|
|
1254
1254
|
function Ee(e) {
|
|
1255
1255
|
const n = gt(e);
|
|
1256
|
-
if (!
|
|
1257
|
-
return
|
|
1256
|
+
if (!re(n))
|
|
1257
|
+
return se(1);
|
|
1258
1258
|
const t = n.getBoundingClientRect(), {
|
|
1259
1259
|
width: o,
|
|
1260
1260
|
height: l,
|
|
1261
1261
|
$: a
|
|
1262
1262
|
} = tn(n);
|
|
1263
|
-
let i = (a ?
|
|
1263
|
+
let i = (a ? Ke(t.width) : t.width) / o, c = (a ? Ke(t.height) : t.height) / l;
|
|
1264
1264
|
return (!i || !Number.isFinite(i)) && (i = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
1265
1265
|
x: i,
|
|
1266
1266
|
y: c
|
|
1267
1267
|
};
|
|
1268
1268
|
}
|
|
1269
|
-
const
|
|
1269
|
+
const Yo = /* @__PURE__ */ se(0);
|
|
1270
1270
|
function nn(e) {
|
|
1271
1271
|
const n = Q(e);
|
|
1272
|
-
return !ht() || !n.visualViewport ?
|
|
1272
|
+
return !ht() || !n.visualViewport ? Yo : {
|
|
1273
1273
|
x: n.visualViewport.offsetLeft,
|
|
1274
1274
|
y: n.visualViewport.offsetTop
|
|
1275
1275
|
};
|
|
1276
1276
|
}
|
|
1277
|
-
function
|
|
1277
|
+
function Jo(e, n, t) {
|
|
1278
1278
|
return n === void 0 && (n = !1), !t || n && t !== Q(e) ? !1 : n;
|
|
1279
1279
|
}
|
|
1280
1280
|
function _e(e, n, t, o) {
|
|
1281
1281
|
n === void 0 && (n = !1), t === void 0 && (t = !1);
|
|
1282
1282
|
const l = e.getBoundingClientRect(), a = gt(e);
|
|
1283
|
-
let i =
|
|
1284
|
-
n && (o ?
|
|
1285
|
-
const c =
|
|
1283
|
+
let i = se(1);
|
|
1284
|
+
n && (o ? le(o) && (i = Ee(o)) : i = Ee(e));
|
|
1285
|
+
const c = Jo(a, t, o) ? nn(a) : se(0);
|
|
1286
1286
|
let s = (l.left + c.x) / i.x, r = (l.top + c.y) / i.y, u = l.width / i.x, d = l.height / i.y;
|
|
1287
1287
|
if (a) {
|
|
1288
|
-
const
|
|
1289
|
-
let p =
|
|
1288
|
+
const f = Q(a), m = o && le(o) ? Q(o) : o;
|
|
1289
|
+
let p = f, w = st(p);
|
|
1290
1290
|
for (; w && o && m !== p; ) {
|
|
1291
|
-
const h = Ee(w), y = w.getBoundingClientRect(), _ =
|
|
1292
|
-
s *= h.x, r *= h.y, u *= h.x, d *= h.y, s += b, r +=
|
|
1291
|
+
const h = Ee(w), y = w.getBoundingClientRect(), _ = ae(w), b = y.left + (w.clientLeft + parseFloat(_.paddingLeft)) * h.x, L = y.top + (w.clientTop + parseFloat(_.paddingTop)) * h.y;
|
|
1292
|
+
s *= h.x, r *= h.y, u *= h.x, d *= h.y, s += b, r += L, p = Q(w), w = st(p);
|
|
1293
1293
|
}
|
|
1294
1294
|
}
|
|
1295
|
-
return
|
|
1295
|
+
return Xe({
|
|
1296
1296
|
width: u,
|
|
1297
1297
|
height: d,
|
|
1298
1298
|
x: s,
|
|
1299
1299
|
y: r
|
|
1300
1300
|
});
|
|
1301
1301
|
}
|
|
1302
|
-
function
|
|
1303
|
-
const t =
|
|
1304
|
-
return n ? n.left + t : _e(
|
|
1302
|
+
function Qe(e, n) {
|
|
1303
|
+
const t = Je(e).scrollLeft;
|
|
1304
|
+
return n ? n.left + t : _e(ce(e)).left + t;
|
|
1305
1305
|
}
|
|
1306
1306
|
function on(e, n) {
|
|
1307
|
-
const t = e.getBoundingClientRect(), o = t.left + n.scrollLeft -
|
|
1307
|
+
const t = e.getBoundingClientRect(), o = t.left + n.scrollLeft - Qe(e, t), l = t.top + n.scrollTop;
|
|
1308
1308
|
return {
|
|
1309
1309
|
x: o,
|
|
1310
1310
|
y: l
|
|
1311
1311
|
};
|
|
1312
1312
|
}
|
|
1313
|
-
function
|
|
1313
|
+
function Qo(e) {
|
|
1314
1314
|
let {
|
|
1315
1315
|
elements: n,
|
|
1316
1316
|
rect: t,
|
|
1317
1317
|
offsetParent: o,
|
|
1318
1318
|
strategy: l
|
|
1319
1319
|
} = e;
|
|
1320
|
-
const a = l === "fixed", i =
|
|
1320
|
+
const a = l === "fixed", i = ce(o), c = n ? Ye(n.floating) : !1;
|
|
1321
1321
|
if (o === i || c && a)
|
|
1322
1322
|
return t;
|
|
1323
1323
|
let s = {
|
|
1324
1324
|
scrollLeft: 0,
|
|
1325
1325
|
scrollTop: 0
|
|
1326
|
-
}, r =
|
|
1327
|
-
const u =
|
|
1328
|
-
if ((d || !d && !a) && ((xe(o) !== "body" ||
|
|
1326
|
+
}, r = se(1);
|
|
1327
|
+
const u = se(0), d = re(o);
|
|
1328
|
+
if ((d || !d && !a) && ((xe(o) !== "body" || ze(i)) && (s = Je(o)), re(o))) {
|
|
1329
1329
|
const m = _e(o);
|
|
1330
1330
|
r = Ee(o), u.x = m.x + o.clientLeft, u.y = m.y + o.clientTop;
|
|
1331
1331
|
}
|
|
1332
|
-
const
|
|
1332
|
+
const f = i && !d && !a ? on(i, s) : se(0);
|
|
1333
1333
|
return {
|
|
1334
1334
|
width: t.width * r.x,
|
|
1335
1335
|
height: t.height * r.y,
|
|
1336
|
-
x: t.x * r.x - s.scrollLeft * r.x + u.x +
|
|
1337
|
-
y: t.y * r.y - s.scrollTop * r.y + u.y +
|
|
1336
|
+
x: t.x * r.x - s.scrollLeft * r.x + u.x + f.x,
|
|
1337
|
+
y: t.y * r.y - s.scrollTop * r.y + u.y + f.y
|
|
1338
1338
|
};
|
|
1339
1339
|
}
|
|
1340
|
-
function
|
|
1340
|
+
function Zo(e) {
|
|
1341
1341
|
return Array.from(e.getClientRects());
|
|
1342
1342
|
}
|
|
1343
|
-
function
|
|
1344
|
-
const n =
|
|
1345
|
-
let i = -t.scrollLeft +
|
|
1343
|
+
function el(e) {
|
|
1344
|
+
const n = ce(e), t = Je(e), o = e.ownerDocument.body, l = J(n.scrollWidth, n.clientWidth, o.scrollWidth, o.clientWidth), a = J(n.scrollHeight, n.clientHeight, o.scrollHeight, o.clientHeight);
|
|
1345
|
+
let i = -t.scrollLeft + Qe(e);
|
|
1346
1346
|
const c = -t.scrollTop;
|
|
1347
|
-
return
|
|
1347
|
+
return ae(o).direction === "rtl" && (i += J(n.clientWidth, o.clientWidth) - l), {
|
|
1348
1348
|
width: l,
|
|
1349
1349
|
height: a,
|
|
1350
1350
|
x: i,
|
|
1351
1351
|
y: c
|
|
1352
1352
|
};
|
|
1353
1353
|
}
|
|
1354
|
-
const
|
|
1355
|
-
function
|
|
1356
|
-
const t = Q(e), o =
|
|
1354
|
+
const jt = 25;
|
|
1355
|
+
function tl(e, n) {
|
|
1356
|
+
const t = Q(e), o = ce(e), l = t.visualViewport;
|
|
1357
1357
|
let a = o.clientWidth, i = o.clientHeight, c = 0, s = 0;
|
|
1358
1358
|
if (l) {
|
|
1359
1359
|
a = l.width, i = l.height;
|
|
1360
1360
|
const u = ht();
|
|
1361
1361
|
(!u || u && n === "fixed") && (c = l.offsetLeft, s = l.offsetTop);
|
|
1362
1362
|
}
|
|
1363
|
-
const r =
|
|
1363
|
+
const r = Qe(o);
|
|
1364
1364
|
if (r <= 0) {
|
|
1365
|
-
const u = o.ownerDocument, d = u.body,
|
|
1366
|
-
p <=
|
|
1367
|
-
} else r <=
|
|
1365
|
+
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);
|
|
1366
|
+
p <= jt && (a -= p);
|
|
1367
|
+
} else r <= jt && (a += r);
|
|
1368
1368
|
return {
|
|
1369
1369
|
width: a,
|
|
1370
1370
|
height: i,
|
|
@@ -1372,9 +1372,9 @@ function el(e, n) {
|
|
|
1372
1372
|
y: s
|
|
1373
1373
|
};
|
|
1374
1374
|
}
|
|
1375
|
-
const
|
|
1376
|
-
function
|
|
1377
|
-
const t = _e(e, !0, n === "fixed"), o = t.top + e.clientTop, l = t.left + e.clientLeft, a =
|
|
1375
|
+
const nl = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
1376
|
+
function ol(e, n) {
|
|
1377
|
+
const t = _e(e, !0, n === "fixed"), o = t.top + e.clientTop, l = t.left + e.clientLeft, a = re(e) ? Ee(e) : se(1), i = e.clientWidth * a.x, c = e.clientHeight * a.y, s = l * a.x, r = o * a.y;
|
|
1378
1378
|
return {
|
|
1379
1379
|
width: i,
|
|
1380
1380
|
height: c,
|
|
@@ -1382,14 +1382,14 @@ function nl(e, n) {
|
|
|
1382
1382
|
y: r
|
|
1383
1383
|
};
|
|
1384
1384
|
}
|
|
1385
|
-
function
|
|
1385
|
+
function Bt(e, n, t) {
|
|
1386
1386
|
let o;
|
|
1387
1387
|
if (n === "viewport")
|
|
1388
|
-
o =
|
|
1388
|
+
o = tl(e, t);
|
|
1389
1389
|
else if (n === "document")
|
|
1390
|
-
o =
|
|
1391
|
-
else if (
|
|
1392
|
-
o =
|
|
1390
|
+
o = el(ce(e));
|
|
1391
|
+
else if (le(n))
|
|
1392
|
+
o = ol(n, t);
|
|
1393
1393
|
else {
|
|
1394
1394
|
const l = nn(e);
|
|
1395
1395
|
o = {
|
|
@@ -1399,36 +1399,36 @@ function jt(e, n, t) {
|
|
|
1399
1399
|
height: n.height
|
|
1400
1400
|
};
|
|
1401
1401
|
}
|
|
1402
|
-
return
|
|
1402
|
+
return Xe(o);
|
|
1403
1403
|
}
|
|
1404
1404
|
function ln(e, n) {
|
|
1405
1405
|
const t = he(e);
|
|
1406
|
-
return t === n || !
|
|
1406
|
+
return t === n || !le(t) || Se(t) ? !1 : ae(t).position === "fixed" || ln(t, n);
|
|
1407
1407
|
}
|
|
1408
|
-
function
|
|
1408
|
+
function ll(e, n) {
|
|
1409
1409
|
const t = n.get(e);
|
|
1410
1410
|
if (t)
|
|
1411
1411
|
return t;
|
|
1412
|
-
let o =
|
|
1413
|
-
const a =
|
|
1412
|
+
let o = Be(e, [], !1).filter((c) => le(c) && xe(c) !== "body"), l = null;
|
|
1413
|
+
const a = ae(e).position === "fixed";
|
|
1414
1414
|
let i = a ? he(e) : e;
|
|
1415
|
-
for (;
|
|
1416
|
-
const c =
|
|
1417
|
-
!s && c.position === "fixed" && (l = null), (a ? !s && !l : !s && c.position === "static" && !!l &&
|
|
1415
|
+
for (; le(i) && !Se(i); ) {
|
|
1416
|
+
const c = ae(i), s = pt(i);
|
|
1417
|
+
!s && c.position === "fixed" && (l = null), (a ? !s && !l : !s && c.position === "static" && !!l && nl.has(l.position) || ze(i) && !s && ln(e, i)) ? o = o.filter((u) => u !== i) : l = c, i = he(i);
|
|
1418
1418
|
}
|
|
1419
1419
|
return n.set(e, o), o;
|
|
1420
1420
|
}
|
|
1421
|
-
function
|
|
1421
|
+
function al(e) {
|
|
1422
1422
|
let {
|
|
1423
1423
|
element: n,
|
|
1424
1424
|
boundary: t,
|
|
1425
1425
|
rootBoundary: o,
|
|
1426
1426
|
strategy: l
|
|
1427
1427
|
} = e;
|
|
1428
|
-
const i = [...t === "clippingAncestors" ?
|
|
1429
|
-
const d =
|
|
1428
|
+
const i = [...t === "clippingAncestors" ? Ye(n) ? [] : ll(n, this._c) : [].concat(t), o], c = i[0], s = i.reduce((r, u) => {
|
|
1429
|
+
const d = Bt(n, u, l);
|
|
1430
1430
|
return r.top = J(d.top, r.top), r.right = $e(d.right, r.right), r.bottom = $e(d.bottom, r.bottom), r.left = J(d.left, r.left), r;
|
|
1431
|
-
},
|
|
1431
|
+
}, Bt(n, c, l));
|
|
1432
1432
|
return {
|
|
1433
1433
|
width: s.right - s.left,
|
|
1434
1434
|
height: s.bottom - s.top,
|
|
@@ -1436,7 +1436,7 @@ function ll(e) {
|
|
|
1436
1436
|
y: s.top
|
|
1437
1437
|
};
|
|
1438
1438
|
}
|
|
1439
|
-
function
|
|
1439
|
+
function il(e) {
|
|
1440
1440
|
const {
|
|
1441
1441
|
width: n,
|
|
1442
1442
|
height: t
|
|
@@ -1446,63 +1446,63 @@ function al(e) {
|
|
|
1446
1446
|
height: t
|
|
1447
1447
|
};
|
|
1448
1448
|
}
|
|
1449
|
-
function
|
|
1450
|
-
const o =
|
|
1449
|
+
function sl(e, n, t) {
|
|
1450
|
+
const o = re(n), l = ce(n), a = t === "fixed", i = _e(e, !0, a, n);
|
|
1451
1451
|
let c = {
|
|
1452
1452
|
scrollLeft: 0,
|
|
1453
1453
|
scrollTop: 0
|
|
1454
1454
|
};
|
|
1455
|
-
const s =
|
|
1455
|
+
const s = se(0);
|
|
1456
1456
|
function r() {
|
|
1457
|
-
s.x =
|
|
1457
|
+
s.x = Qe(l);
|
|
1458
1458
|
}
|
|
1459
1459
|
if (o || !o && !a)
|
|
1460
|
-
if ((xe(n) !== "body" ||
|
|
1460
|
+
if ((xe(n) !== "body" || ze(l)) && (c = Je(n)), o) {
|
|
1461
1461
|
const m = _e(n, !0, a, n);
|
|
1462
1462
|
s.x = m.x + n.clientLeft, s.y = m.y + n.clientTop;
|
|
1463
1463
|
} else l && r();
|
|
1464
1464
|
a && !o && l && r();
|
|
1465
|
-
const u = l && !o && !a ? on(l, c) :
|
|
1465
|
+
const u = l && !o && !a ? on(l, c) : se(0), d = i.left + c.scrollLeft - s.x - u.x, f = i.top + c.scrollTop - s.y - u.y;
|
|
1466
1466
|
return {
|
|
1467
1467
|
x: d,
|
|
1468
|
-
y:
|
|
1468
|
+
y: f,
|
|
1469
1469
|
width: i.width,
|
|
1470
1470
|
height: i.height
|
|
1471
1471
|
};
|
|
1472
1472
|
}
|
|
1473
|
-
function
|
|
1474
|
-
return
|
|
1473
|
+
function lt(e) {
|
|
1474
|
+
return ae(e).position === "static";
|
|
1475
1475
|
}
|
|
1476
|
-
function
|
|
1477
|
-
if (!
|
|
1476
|
+
function Pt(e, n) {
|
|
1477
|
+
if (!re(e) || ae(e).position === "fixed")
|
|
1478
1478
|
return null;
|
|
1479
1479
|
if (n)
|
|
1480
1480
|
return n(e);
|
|
1481
1481
|
let t = e.offsetParent;
|
|
1482
|
-
return
|
|
1482
|
+
return ce(e) === t && (t = t.ownerDocument.body), t;
|
|
1483
1483
|
}
|
|
1484
1484
|
function an(e, n) {
|
|
1485
1485
|
const t = Q(e);
|
|
1486
|
-
if (
|
|
1486
|
+
if (Ye(e))
|
|
1487
1487
|
return t;
|
|
1488
|
-
if (!
|
|
1488
|
+
if (!re(e)) {
|
|
1489
1489
|
let l = he(e);
|
|
1490
1490
|
for (; l && !Se(l); ) {
|
|
1491
|
-
if (
|
|
1491
|
+
if (le(l) && !lt(l))
|
|
1492
1492
|
return l;
|
|
1493
1493
|
l = he(l);
|
|
1494
1494
|
}
|
|
1495
1495
|
return t;
|
|
1496
1496
|
}
|
|
1497
|
-
let o =
|
|
1498
|
-
for (; o &&
|
|
1499
|
-
o =
|
|
1500
|
-
return o && Se(o) &&
|
|
1497
|
+
let o = Pt(e, n);
|
|
1498
|
+
for (; o && Wo(o) && lt(o); )
|
|
1499
|
+
o = Pt(o, n);
|
|
1500
|
+
return o && Se(o) && lt(o) && !pt(o) ? t : o || qo(e) || t;
|
|
1501
1501
|
}
|
|
1502
|
-
const
|
|
1502
|
+
const rl = async function(e) {
|
|
1503
1503
|
const n = this.getOffsetParent || an, t = this.getDimensions, o = await t(e.floating);
|
|
1504
1504
|
return {
|
|
1505
|
-
reference:
|
|
1505
|
+
reference: sl(e.reference, await n(e.floating), e.strategy),
|
|
1506
1506
|
floating: {
|
|
1507
1507
|
x: 0,
|
|
1508
1508
|
y: 0,
|
|
@@ -1511,27 +1511,27 @@ const sl = async function(e) {
|
|
|
1511
1511
|
}
|
|
1512
1512
|
};
|
|
1513
1513
|
};
|
|
1514
|
-
function
|
|
1515
|
-
return
|
|
1514
|
+
function cl(e) {
|
|
1515
|
+
return ae(e).direction === "rtl";
|
|
1516
1516
|
}
|
|
1517
|
-
const
|
|
1518
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
1519
|
-
getDocumentElement:
|
|
1520
|
-
getClippingRect:
|
|
1517
|
+
const ul = {
|
|
1518
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Qo,
|
|
1519
|
+
getDocumentElement: ce,
|
|
1520
|
+
getClippingRect: al,
|
|
1521
1521
|
getOffsetParent: an,
|
|
1522
|
-
getElementRects:
|
|
1523
|
-
getClientRects:
|
|
1524
|
-
getDimensions:
|
|
1522
|
+
getElementRects: rl,
|
|
1523
|
+
getClientRects: Zo,
|
|
1524
|
+
getDimensions: il,
|
|
1525
1525
|
getScale: Ee,
|
|
1526
|
-
isElement:
|
|
1527
|
-
isRTL:
|
|
1526
|
+
isElement: le,
|
|
1527
|
+
isRTL: cl
|
|
1528
1528
|
};
|
|
1529
1529
|
function sn(e, n) {
|
|
1530
1530
|
return e.x === n.x && e.y === n.y && e.width === n.width && e.height === n.height;
|
|
1531
1531
|
}
|
|
1532
|
-
function
|
|
1532
|
+
function dl(e, n) {
|
|
1533
1533
|
let t = null, o;
|
|
1534
|
-
const l =
|
|
1534
|
+
const l = ce(e);
|
|
1535
1535
|
function a() {
|
|
1536
1536
|
var c;
|
|
1537
1537
|
clearTimeout(o), (c = t) == null || c.disconnect(), t = null;
|
|
@@ -1541,26 +1541,26 @@ function ul(e, n) {
|
|
|
1541
1541
|
const r = e.getBoundingClientRect(), {
|
|
1542
1542
|
left: u,
|
|
1543
1543
|
top: d,
|
|
1544
|
-
width:
|
|
1544
|
+
width: f,
|
|
1545
1545
|
height: m
|
|
1546
1546
|
} = r;
|
|
1547
|
-
if (c || n(), !
|
|
1547
|
+
if (c || n(), !f || !m)
|
|
1548
1548
|
return;
|
|
1549
|
-
const p =
|
|
1549
|
+
const p = We(d), w = We(l.clientWidth - (u + f)), h = We(l.clientHeight - (d + m)), y = We(u), b = {
|
|
1550
1550
|
rootMargin: -p + "px " + -w + "px " + -h + "px " + -y + "px",
|
|
1551
1551
|
threshold: J(0, $e(1, s)) || 1
|
|
1552
1552
|
};
|
|
1553
|
-
let
|
|
1554
|
-
function j(
|
|
1555
|
-
const k =
|
|
1553
|
+
let L = !0;
|
|
1554
|
+
function j(z) {
|
|
1555
|
+
const k = z[0].intersectionRatio;
|
|
1556
1556
|
if (k !== s) {
|
|
1557
|
-
if (
|
|
1557
|
+
if (!L)
|
|
1558
1558
|
return i();
|
|
1559
1559
|
k ? i(!1, k) : o = setTimeout(() => {
|
|
1560
1560
|
i(!1, 1e-7);
|
|
1561
1561
|
}, 1e3);
|
|
1562
1562
|
}
|
|
1563
|
-
k === 1 && !sn(r, e.getBoundingClientRect()) && i(),
|
|
1563
|
+
k === 1 && !sn(r, e.getBoundingClientRect()) && i(), L = !1;
|
|
1564
1564
|
}
|
|
1565
1565
|
try {
|
|
1566
1566
|
t = new IntersectionObserver(j, {
|
|
@@ -1575,7 +1575,7 @@ function ul(e, n) {
|
|
|
1575
1575
|
}
|
|
1576
1576
|
return i(!0), a;
|
|
1577
1577
|
}
|
|
1578
|
-
function
|
|
1578
|
+
function Ze(e, n, t, o) {
|
|
1579
1579
|
o === void 0 && (o = {});
|
|
1580
1580
|
const {
|
|
1581
1581
|
ancestorScroll: l = !0,
|
|
@@ -1583,17 +1583,17 @@ function Qe(e, n, t, o) {
|
|
|
1583
1583
|
elementResize: i = typeof ResizeObserver == "function",
|
|
1584
1584
|
layoutShift: c = typeof IntersectionObserver == "function",
|
|
1585
1585
|
animationFrame: s = !1
|
|
1586
|
-
} = o, r = gt(e), u = l || a ? [...r ?
|
|
1586
|
+
} = o, r = gt(e), u = l || a ? [...r ? Be(r) : [], ...Be(n)] : [];
|
|
1587
1587
|
u.forEach((y) => {
|
|
1588
1588
|
l && y.addEventListener("scroll", t, {
|
|
1589
1589
|
passive: !0
|
|
1590
1590
|
}), a && y.addEventListener("resize", t);
|
|
1591
1591
|
});
|
|
1592
|
-
const d = r && c ?
|
|
1593
|
-
let
|
|
1592
|
+
const d = r && c ? dl(r, t) : null;
|
|
1593
|
+
let f = -1, m = null;
|
|
1594
1594
|
i && (m = new ResizeObserver((y) => {
|
|
1595
1595
|
let [_] = y;
|
|
1596
|
-
_ && _.target === r && m && (m.unobserve(n), cancelAnimationFrame(
|
|
1596
|
+
_ && _.target === r && m && (m.unobserve(n), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
1597
1597
|
var b;
|
|
1598
1598
|
(b = m) == null || b.observe(n);
|
|
1599
1599
|
})), t();
|
|
@@ -1611,30 +1611,30 @@ function Qe(e, n, t, o) {
|
|
|
1611
1611
|
}), d?.(), (y = m) == null || y.disconnect(), m = null, s && cancelAnimationFrame(p);
|
|
1612
1612
|
};
|
|
1613
1613
|
}
|
|
1614
|
-
const
|
|
1614
|
+
const et = Mo, tt = Fo, nt = jo, fl = zo, rn = (e, n, t) => {
|
|
1615
1615
|
const o = /* @__PURE__ */ new Map(), l = {
|
|
1616
|
-
platform:
|
|
1616
|
+
platform: ul,
|
|
1617
1617
|
...t
|
|
1618
1618
|
}, a = {
|
|
1619
1619
|
...l.platform,
|
|
1620
1620
|
_c: o
|
|
1621
1621
|
};
|
|
1622
|
-
return
|
|
1622
|
+
return Do(e, n, {
|
|
1623
1623
|
...l,
|
|
1624
1624
|
platform: a
|
|
1625
1625
|
});
|
|
1626
1626
|
};
|
|
1627
|
-
function
|
|
1627
|
+
function vl(e) {
|
|
1628
1628
|
return e != null && typeof e == "object" && "$el" in e;
|
|
1629
1629
|
}
|
|
1630
|
-
function
|
|
1631
|
-
if (
|
|
1630
|
+
function Mt(e) {
|
|
1631
|
+
if (vl(e)) {
|
|
1632
1632
|
const n = e.$el;
|
|
1633
1633
|
return mt(n) && xe(n) === "#comment" ? null : n;
|
|
1634
1634
|
}
|
|
1635
1635
|
return e;
|
|
1636
1636
|
}
|
|
1637
|
-
function
|
|
1637
|
+
function Oe(e) {
|
|
1638
1638
|
return typeof e == "function" ? e() : S(e);
|
|
1639
1639
|
}
|
|
1640
1640
|
function cn(e) {
|
|
@@ -1648,17 +1648,17 @@ function bt(e, n, t) {
|
|
|
1648
1648
|
t === void 0 && (t = {});
|
|
1649
1649
|
const o = t.whileElementsMounted, l = C(() => {
|
|
1650
1650
|
var k;
|
|
1651
|
-
return (k =
|
|
1652
|
-
}), a = C(() =>
|
|
1651
|
+
return (k = Oe(t.open)) != null ? k : !0;
|
|
1652
|
+
}), a = C(() => Oe(t.middleware)), i = C(() => {
|
|
1653
1653
|
var k;
|
|
1654
|
-
return (k =
|
|
1654
|
+
return (k = Oe(t.placement)) != null ? k : "bottom";
|
|
1655
1655
|
}), c = C(() => {
|
|
1656
1656
|
var k;
|
|
1657
|
-
return (k =
|
|
1657
|
+
return (k = Oe(t.strategy)) != null ? k : "absolute";
|
|
1658
1658
|
}), s = C(() => {
|
|
1659
1659
|
var k;
|
|
1660
|
-
return (k =
|
|
1661
|
-
}), r = C(() =>
|
|
1660
|
+
return (k = Oe(t.transform)) != null ? k : !0;
|
|
1661
|
+
}), r = C(() => Mt(e.value)), u = C(() => Mt(n.value)), d = E(0), f = E(0), m = E(c.value), p = E(i.value), w = wn({}), h = E(!1), y = C(() => {
|
|
1662
1662
|
const k = {
|
|
1663
1663
|
position: m.value,
|
|
1664
1664
|
left: "0",
|
|
@@ -1666,17 +1666,17 @@ function bt(e, n, t) {
|
|
|
1666
1666
|
};
|
|
1667
1667
|
if (!u.value)
|
|
1668
1668
|
return k;
|
|
1669
|
-
const V = Ft(u.value, d.value),
|
|
1669
|
+
const V = Ft(u.value, d.value), T = Ft(u.value, f.value);
|
|
1670
1670
|
return s.value ? {
|
|
1671
1671
|
...k,
|
|
1672
|
-
transform: "translate(" + V + "px, " +
|
|
1672
|
+
transform: "translate(" + V + "px, " + T + "px)",
|
|
1673
1673
|
...cn(u.value) >= 1.5 && {
|
|
1674
1674
|
willChange: "transform"
|
|
1675
1675
|
}
|
|
1676
1676
|
} : {
|
|
1677
1677
|
position: m.value,
|
|
1678
1678
|
left: V + "px",
|
|
1679
|
-
top:
|
|
1679
|
+
top: T + "px"
|
|
1680
1680
|
};
|
|
1681
1681
|
});
|
|
1682
1682
|
let _;
|
|
@@ -1689,14 +1689,14 @@ function bt(e, n, t) {
|
|
|
1689
1689
|
placement: i.value,
|
|
1690
1690
|
strategy: c.value
|
|
1691
1691
|
}).then((V) => {
|
|
1692
|
-
d.value = V.x,
|
|
1692
|
+
d.value = V.x, f.value = V.y, m.value = V.strategy, p.value = V.placement, w.value = V.middlewareData, h.value = k !== !1;
|
|
1693
1693
|
});
|
|
1694
1694
|
}
|
|
1695
|
-
function
|
|
1695
|
+
function L() {
|
|
1696
1696
|
typeof _ == "function" && (_(), _ = void 0);
|
|
1697
1697
|
}
|
|
1698
1698
|
function j() {
|
|
1699
|
-
if (
|
|
1699
|
+
if (L(), o === void 0) {
|
|
1700
1700
|
b();
|
|
1701
1701
|
return;
|
|
1702
1702
|
}
|
|
@@ -1705,18 +1705,18 @@ function bt(e, n, t) {
|
|
|
1705
1705
|
return;
|
|
1706
1706
|
}
|
|
1707
1707
|
}
|
|
1708
|
-
function
|
|
1708
|
+
function z() {
|
|
1709
1709
|
l.value || (h.value = !1);
|
|
1710
1710
|
}
|
|
1711
|
-
return
|
|
1711
|
+
return N([a, i, c, l], b, {
|
|
1712
1712
|
flush: "sync"
|
|
1713
|
-
}),
|
|
1713
|
+
}), N([r, u], j, {
|
|
1714
1714
|
flush: "sync"
|
|
1715
|
-
}),
|
|
1715
|
+
}), N(l, z, {
|
|
1716
1716
|
flush: "sync"
|
|
1717
|
-
}), _n() && xn(
|
|
1717
|
+
}), _n() && xn(L), {
|
|
1718
1718
|
x: Ve(d),
|
|
1719
|
-
y: Ve(
|
|
1719
|
+
y: Ve(f),
|
|
1720
1720
|
strategy: Ve(m),
|
|
1721
1721
|
placement: Ve(p),
|
|
1722
1722
|
middlewareData: Ve(w),
|
|
@@ -1725,17 +1725,17 @@ function bt(e, n, t) {
|
|
|
1725
1725
|
update: b
|
|
1726
1726
|
};
|
|
1727
1727
|
}
|
|
1728
|
-
const
|
|
1728
|
+
const ml = /* @__PURE__ */ R({
|
|
1729
1729
|
inheritAttrs: !1,
|
|
1730
1730
|
__name: "dot-menu",
|
|
1731
1731
|
props: {
|
|
1732
1732
|
icon: {}
|
|
1733
1733
|
},
|
|
1734
1734
|
setup(e) {
|
|
1735
|
-
const n = e, t = E(!1), o = E(null), l = E(null), a = C(() => n.icon ??
|
|
1735
|
+
const n = e, t = E(!1), o = E(null), l = E(null), a = C(() => n.icon ?? H.DOT_MENU), { floatingStyles: i } = bt(o, l, {
|
|
1736
1736
|
placement: "bottom-end",
|
|
1737
|
-
middleware: [
|
|
1738
|
-
whileElementsMounted:
|
|
1737
|
+
middleware: [et(8), nt(), tt({ padding: 8 })],
|
|
1738
|
+
whileElementsMounted: Ze
|
|
1739
1739
|
}), c = () => {
|
|
1740
1740
|
t.value = !t.value;
|
|
1741
1741
|
}, s = () => {
|
|
@@ -1745,12 +1745,12 @@ const vl = /* @__PURE__ */ T({
|
|
|
1745
1745
|
d && (d.closest(".menu-action") || d.closest('[role="menuitem"]') || d.closest("a")) && s();
|
|
1746
1746
|
};
|
|
1747
1747
|
return (u, d) => {
|
|
1748
|
-
const
|
|
1749
|
-
return
|
|
1748
|
+
const f = X("VjButton"), m = X("VjMenu");
|
|
1749
|
+
return v(), g(Z, null, [
|
|
1750
1750
|
x("div", {
|
|
1751
|
-
class:
|
|
1751
|
+
class: I(["dot-menu-container", u.$attrs.class])
|
|
1752
1752
|
}, [
|
|
1753
|
-
|
|
1753
|
+
D(f, {
|
|
1754
1754
|
ref_key: "buttonRef",
|
|
1755
1755
|
ref: o,
|
|
1756
1756
|
class: "dot-menu",
|
|
@@ -1758,37 +1758,37 @@ const vl = /* @__PURE__ */ T({
|
|
|
1758
1758
|
icon: a.value,
|
|
1759
1759
|
onClick: c
|
|
1760
1760
|
}, null, 8, ["icon"]),
|
|
1761
|
-
|
|
1762
|
-
default:
|
|
1763
|
-
t.value ? (
|
|
1761
|
+
D(De, { name: "menu" }, {
|
|
1762
|
+
default: U(() => [
|
|
1763
|
+
t.value ? (v(), F(m, {
|
|
1764
1764
|
key: 0,
|
|
1765
1765
|
ref_key: "floatingRef",
|
|
1766
1766
|
ref: l,
|
|
1767
|
-
style:
|
|
1767
|
+
style: q(S(i)),
|
|
1768
1768
|
class: "menu-dropdown",
|
|
1769
1769
|
onClose: s,
|
|
1770
1770
|
onClickCapture: r
|
|
1771
1771
|
}, {
|
|
1772
|
-
default:
|
|
1772
|
+
default: U(() => [
|
|
1773
1773
|
M(u.$slots, "default", {}, void 0, !0)
|
|
1774
1774
|
]),
|
|
1775
1775
|
_: 3
|
|
1776
|
-
}, 8, ["style"])) :
|
|
1776
|
+
}, 8, ["style"])) : $("", !0)
|
|
1777
1777
|
]),
|
|
1778
1778
|
_: 3
|
|
1779
1779
|
})
|
|
1780
1780
|
], 2),
|
|
1781
|
-
(
|
|
1782
|
-
t.value ? (
|
|
1781
|
+
(v(), F(Pe, { to: "body" }, [
|
|
1782
|
+
t.value ? (v(), g("div", {
|
|
1783
1783
|
key: 0,
|
|
1784
1784
|
class: "menu-backdrop",
|
|
1785
1785
|
onClick: s
|
|
1786
|
-
})) :
|
|
1786
|
+
})) : $("", !0)
|
|
1787
1787
|
]))
|
|
1788
1788
|
], 64);
|
|
1789
1789
|
};
|
|
1790
1790
|
}
|
|
1791
|
-
}),
|
|
1791
|
+
}), pl = /* @__PURE__ */ O(ml, [["__scopeId", "data-v-3c400bfd"]]), hl = /* @__PURE__ */ R({
|
|
1792
1792
|
__name: "link-button",
|
|
1793
1793
|
props: {
|
|
1794
1794
|
label: {},
|
|
@@ -1800,27 +1800,27 @@ const vl = /* @__PURE__ */ T({
|
|
|
1800
1800
|
disabled: { type: Boolean }
|
|
1801
1801
|
},
|
|
1802
1802
|
setup(e) {
|
|
1803
|
-
const n = e, t =
|
|
1803
|
+
const n = e, t = G.S, o = C(() => n.primary ? "primary" : n.secondary ? "secondary" : n.tertiary ? "tertiary" : "primary");
|
|
1804
1804
|
return (l, a) => {
|
|
1805
|
-
const i =
|
|
1806
|
-
return
|
|
1805
|
+
const i = X("router-link");
|
|
1806
|
+
return v(), F(i, {
|
|
1807
1807
|
to: e.to,
|
|
1808
|
-
class:
|
|
1808
|
+
class: I(["button", o.value]),
|
|
1809
1809
|
disabled: e.disabled
|
|
1810
1810
|
}, {
|
|
1811
|
-
default:
|
|
1812
|
-
e.icon ? (
|
|
1811
|
+
default: U(() => [
|
|
1812
|
+
e.icon ? (v(), F(be, {
|
|
1813
1813
|
key: 0,
|
|
1814
1814
|
icon: e.icon,
|
|
1815
1815
|
size: S(t)
|
|
1816
|
-
}, null, 8, ["icon", "size"])) :
|
|
1816
|
+
}, null, 8, ["icon", "size"])) : $("", !0),
|
|
1817
1817
|
Ue(" " + B(e.label), 1)
|
|
1818
1818
|
]),
|
|
1819
1819
|
_: 1
|
|
1820
1820
|
}, 8, ["to", "class", "disabled"]);
|
|
1821
1821
|
};
|
|
1822
1822
|
}
|
|
1823
|
-
}),
|
|
1823
|
+
}), gl = /* @__PURE__ */ O(hl, [["__scopeId", "data-v-bd3cf2f5"]]), bl = ["disabled"], yl = { class: "menu-action--icon" }, wl = /* @__PURE__ */ R({
|
|
1824
1824
|
__name: "menu-action",
|
|
1825
1825
|
props: {
|
|
1826
1826
|
label: {},
|
|
@@ -1828,28 +1828,28 @@ const vl = /* @__PURE__ */ T({
|
|
|
1828
1828
|
disabled: { type: Boolean }
|
|
1829
1829
|
},
|
|
1830
1830
|
setup(e) {
|
|
1831
|
-
const n =
|
|
1832
|
-
return (t, o) => (
|
|
1831
|
+
const n = G.S;
|
|
1832
|
+
return (t, o) => (v(), g("button", {
|
|
1833
1833
|
class: "menu-action button tertiary",
|
|
1834
1834
|
disabled: e.disabled
|
|
1835
1835
|
}, [
|
|
1836
|
-
x("span",
|
|
1837
|
-
e.icon ? (
|
|
1836
|
+
x("span", yl, [
|
|
1837
|
+
e.icon ? (v(), F(be, {
|
|
1838
1838
|
key: 0,
|
|
1839
1839
|
icon: e.icon,
|
|
1840
1840
|
size: S(n)
|
|
1841
|
-
}, null, 8, ["icon", "size"])) :
|
|
1841
|
+
}, null, 8, ["icon", "size"])) : $("", !0)
|
|
1842
1842
|
]),
|
|
1843
1843
|
x("span", null, B(e.label), 1)
|
|
1844
|
-
], 8,
|
|
1844
|
+
], 8, bl));
|
|
1845
1845
|
}
|
|
1846
|
-
}),
|
|
1847
|
-
function
|
|
1848
|
-
return
|
|
1846
|
+
}), _l = /* @__PURE__ */ O(wl, [["__scopeId", "data-v-07850995"]]), xl = {}, kl = { class: "menu" };
|
|
1847
|
+
function Vl(e, n) {
|
|
1848
|
+
return v(), g("div", kl, [
|
|
1849
1849
|
M(e.$slots, "default", {}, void 0, !0)
|
|
1850
1850
|
]);
|
|
1851
1851
|
}
|
|
1852
|
-
const
|
|
1852
|
+
const Cl = /* @__PURE__ */ O(xl, [["render", Vl], ["__scopeId", "data-v-259fec08"]]), El = {
|
|
1853
1853
|
mounted(e) {
|
|
1854
1854
|
e.classList.add("compact");
|
|
1855
1855
|
},
|
|
@@ -1865,21 +1865,21 @@ const Vl = /* @__PURE__ */ D(_l, [["render", kl], ["__scopeId", "data-v-259fec08
|
|
|
1865
1865
|
'[tabindex]:not([tabindex="-1"])',
|
|
1866
1866
|
'[contenteditable="true"]'
|
|
1867
1867
|
].join(", ");
|
|
1868
|
-
function
|
|
1868
|
+
function Ll(e) {
|
|
1869
1869
|
const n = e.querySelectorAll(un);
|
|
1870
1870
|
for (const t of Array.from(n))
|
|
1871
1871
|
if (t.offsetParent !== null || t.getClientRects().length > 0)
|
|
1872
1872
|
return t;
|
|
1873
1873
|
return null;
|
|
1874
1874
|
}
|
|
1875
|
-
const
|
|
1875
|
+
const $l = {
|
|
1876
1876
|
mounted(e, n) {
|
|
1877
1877
|
const t = typeof n.value == "number" ? n.value : 0, o = () => {
|
|
1878
1878
|
if (e.matches(un)) {
|
|
1879
1879
|
e.focus();
|
|
1880
1880
|
return;
|
|
1881
1881
|
}
|
|
1882
|
-
const l =
|
|
1882
|
+
const l = Ll(e);
|
|
1883
1883
|
l && l.focus();
|
|
1884
1884
|
};
|
|
1885
1885
|
t > 0 ? setTimeout(o, t) : requestAnimationFrame(o);
|
|
@@ -1948,7 +1948,7 @@ class yt {
|
|
|
1948
1948
|
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)));
|
|
1949
1949
|
}
|
|
1950
1950
|
}
|
|
1951
|
-
const Ce = yt.instance,
|
|
1951
|
+
const Ce = yt.instance, Sl = {
|
|
1952
1952
|
mounted(e, n) {
|
|
1953
1953
|
const t = n.value, o = typeof t == "function" ? t : t?.onResize, l = typeof t == "object" && t?.breakpoints ? t.breakpoints : void 0, a = typeof t == "object" && !!t?.immediate, i = e;
|
|
1954
1954
|
i.__resize_cb = o, i.__resize_breakpoints = l, o && Ce.observe(e, o, { breakpoints: l, immediate: a });
|
|
@@ -1965,25 +1965,25 @@ const Ce = yt.instance, $l = {
|
|
|
1965
1965
|
const n = e, t = n.__resize_cb;
|
|
1966
1966
|
t && Ce.unobserve(e, t), delete n.__resize_cb, delete n.__resize_breakpoints;
|
|
1967
1967
|
}
|
|
1968
|
-
},
|
|
1969
|
-
function
|
|
1970
|
-
return
|
|
1968
|
+
}, Rl = {}, Tl = { class: "spinner" };
|
|
1969
|
+
function Al(e, n) {
|
|
1970
|
+
return v(), g("div", Tl);
|
|
1971
1971
|
}
|
|
1972
|
-
const dn = /* @__PURE__ */
|
|
1972
|
+
const dn = /* @__PURE__ */ O(Rl, [["render", Al], ["__scopeId", "data-v-b957fb82"]]), Ol = 200, Dl = 120;
|
|
1973
1973
|
function zt(e, n) {
|
|
1974
1974
|
const t = n.querySelector(".vj-loading-inner");
|
|
1975
1975
|
if (!t) return;
|
|
1976
1976
|
const o = e.clientHeight || e.getBoundingClientRect().height;
|
|
1977
1977
|
t.classList.remove("vj-loading-inner--small", "vj-loading-inner--minimal");
|
|
1978
1978
|
const l = t.querySelector(".vj-loading-text");
|
|
1979
|
-
l && l.classList.remove("vj-loading-text--hidden"), o <=
|
|
1979
|
+
l && l.classList.remove("vj-loading-text--hidden"), o <= Dl ? (t.classList.add("vj-loading-inner--minimal"), l && l.classList.add("vj-loading-text--hidden")) : o <= Ol && t.classList.add("vj-loading-inner--small");
|
|
1980
1980
|
}
|
|
1981
|
-
const
|
|
1981
|
+
const jl = {
|
|
1982
1982
|
mounted(e, n) {
|
|
1983
1983
|
let t, o;
|
|
1984
1984
|
if (typeof n.value == "object" && n.value !== null) {
|
|
1985
|
-
const
|
|
1986
|
-
t = !!(
|
|
1985
|
+
const f = n.value;
|
|
1986
|
+
t = !!(f.active ?? !0), o = f.text;
|
|
1987
1987
|
} else
|
|
1988
1988
|
t = !!n.value, o = void 0;
|
|
1989
1989
|
const l = getComputedStyle(e), a = { overlay: document.createElement("div") };
|
|
@@ -1994,7 +1994,7 @@ const Dl = {
|
|
|
1994
1994
|
s.className = "vj-loading-inner", s.appendChild(c);
|
|
1995
1995
|
let r;
|
|
1996
1996
|
o && (r = document.createElement("div"), r.className = "vj-loading-text", r.textContent = o, s.appendChild(r)), i.appendChild(s), zt(e, i);
|
|
1997
|
-
const u =
|
|
1997
|
+
const u = D(dn);
|
|
1998
1998
|
St(u, c), a.spinnerVnode = u, a.spinnerContainer = c, t && (e.setAttribute("aria-busy", "true"), e.style.pointerEvents = "none"), e.appendChild(i);
|
|
1999
1999
|
const d = e;
|
|
2000
2000
|
d.__vjLoading = a;
|
|
@@ -2049,7 +2049,7 @@ const fn = {
|
|
|
2049
2049
|
const l = { tooltip: o, cleanup: void 0, showTimer: null, hideTimer: null }, a = async () => {
|
|
2050
2050
|
const m = await rn(e, o, {
|
|
2051
2051
|
placement: t.placement,
|
|
2052
|
-
middleware: [
|
|
2052
|
+
middleware: [et(6), nt(), tt({ padding: 8 })]
|
|
2053
2053
|
}), { x: p, y: w } = m;
|
|
2054
2054
|
Object.assign(o.style, {
|
|
2055
2055
|
left: `${p}px`,
|
|
@@ -2057,7 +2057,7 @@ const fn = {
|
|
|
2057
2057
|
});
|
|
2058
2058
|
}, i = () => {
|
|
2059
2059
|
l.hideTimer && window.clearTimeout(l.hideTimer), l.showTimer = window.setTimeout(() => {
|
|
2060
|
-
o.classList.add("vj-tooltip--visible"), a(), l.cleanup =
|
|
2060
|
+
o.classList.add("vj-tooltip--visible"), a(), l.cleanup = Ze(e, o, a);
|
|
2061
2061
|
}, t.delay);
|
|
2062
2062
|
}, c = () => {
|
|
2063
2063
|
l.showTimer && window.clearTimeout(l.showTimer), l.hideTimer = window.setTimeout(() => {
|
|
@@ -2073,12 +2073,12 @@ const fn = {
|
|
|
2073
2073
|
i();
|
|
2074
2074
|
}, r = (m) => {
|
|
2075
2075
|
c();
|
|
2076
|
-
}, u = () => i(), d = () => c(),
|
|
2076
|
+
}, u = () => i(), d = () => c(), f = (m) => {
|
|
2077
2077
|
m.pointerType === "touch" && (i(), l.docHandler = (p) => {
|
|
2078
2078
|
!o.contains(p.target) && !e.contains(p.target) && (c(), document.removeEventListener("pointerdown", l.docHandler), l.docHandler = void 0);
|
|
2079
2079
|
}, document.addEventListener("pointerdown", l.docHandler));
|
|
2080
2080
|
};
|
|
2081
|
-
e.addEventListener("pointerenter", s), e.addEventListener("pointerleave", r), e.addEventListener("focus", u), e.addEventListener("blur", d), e.addEventListener("pointerdown",
|
|
2081
|
+
e.addEventListener("pointerenter", s), e.addEventListener("pointerleave", r), e.addEventListener("focus", u), e.addEventListener("blur", d), e.addEventListener("pointerdown", f), l.onPointerEnter = s, l.onPointerLeave = r, l.onFocus = u, l.onBlur = d, l.onPointerDown = f, e.__vjTooltip = l;
|
|
2082
2082
|
},
|
|
2083
2083
|
updated(e, n) {
|
|
2084
2084
|
const t = e.__vjTooltip;
|
|
@@ -2096,7 +2096,7 @@ const fn = {
|
|
|
2096
2096
|
n.tooltip && n.tooltip.parentElement && n.tooltip.parentElement.removeChild(n.tooltip), n.onPointerEnter && e.removeEventListener("pointerenter", n.onPointerEnter), n.onPointerLeave && e.removeEventListener("pointerleave", n.onPointerLeave), n.onFocus && e.removeEventListener("focus", n.onFocus), n.onBlur && e.removeEventListener("blur", n.onBlur), n.onPointerDown && e.removeEventListener("pointerdown", n.onPointerDown), n.docHandler && document.removeEventListener("pointerdown", n.docHandler), e.__vjTooltip = void 0;
|
|
2097
2097
|
}
|
|
2098
2098
|
}
|
|
2099
|
-
},
|
|
2099
|
+
}, Pl = { class: "notification__icon" }, Ml = { class: "notification__message" }, Fl = { class: "notification__title" }, zl = { class: "notification__text" }, Il = /* @__PURE__ */ R({
|
|
2100
2100
|
__name: "notification",
|
|
2101
2101
|
props: {
|
|
2102
2102
|
type: {},
|
|
@@ -2108,47 +2108,47 @@ const fn = {
|
|
|
2108
2108
|
const t = e, o = n, l = C(() => {
|
|
2109
2109
|
switch (t.type) {
|
|
2110
2110
|
case "success":
|
|
2111
|
-
return
|
|
2111
|
+
return H.CHECK;
|
|
2112
2112
|
case "warning":
|
|
2113
|
-
return
|
|
2113
|
+
return H.WARNING;
|
|
2114
2114
|
case "error":
|
|
2115
|
-
return
|
|
2115
|
+
return H.ERROR;
|
|
2116
2116
|
default:
|
|
2117
|
-
return
|
|
2117
|
+
return H.INFO;
|
|
2118
2118
|
}
|
|
2119
2119
|
}), a = () => {
|
|
2120
2120
|
o("close");
|
|
2121
2121
|
};
|
|
2122
|
-
return (i, c) => (
|
|
2123
|
-
class:
|
|
2122
|
+
return (i, c) => (v(), g("div", {
|
|
2123
|
+
class: I(["notification", `notification--${e.type}`]),
|
|
2124
2124
|
onClick: a
|
|
2125
2125
|
}, [
|
|
2126
|
-
x("div",
|
|
2127
|
-
|
|
2126
|
+
x("div", Pl, [
|
|
2127
|
+
D(be, { icon: l.value }, null, 8, ["icon"])
|
|
2128
2128
|
]),
|
|
2129
2129
|
x("div", Ml, [
|
|
2130
|
-
x("div",
|
|
2131
|
-
x("div",
|
|
2130
|
+
x("div", Fl, B(e.title), 1),
|
|
2131
|
+
x("div", zl, B(e.message), 1)
|
|
2132
2132
|
]),
|
|
2133
|
-
|
|
2133
|
+
D(dt, {
|
|
2134
2134
|
class: "notification__close compact",
|
|
2135
|
-
icon: S(
|
|
2136
|
-
onClick:
|
|
2135
|
+
icon: S(H).CLOSE,
|
|
2136
|
+
onClick: K(a, ["stop"]),
|
|
2137
2137
|
tertiary: ""
|
|
2138
2138
|
}, null, 8, ["icon"])
|
|
2139
2139
|
], 2));
|
|
2140
2140
|
}
|
|
2141
|
-
}), wt = /* @__PURE__ */
|
|
2141
|
+
}), wt = /* @__PURE__ */ O(Il, [["__scopeId", "data-v-ca4451c0"]]), Hl = { class: "page" }, Wl = { class: "header-left" }, Ul = { class: "header-titles" }, Kl = { key: 0 }, Nl = { class: "header-actions" }, Xl = {
|
|
2142
2142
|
key: 0,
|
|
2143
2143
|
class: "page-error"
|
|
2144
|
-
},
|
|
2144
|
+
}, ql = {
|
|
2145
2145
|
key: 1,
|
|
2146
2146
|
class: "contents"
|
|
2147
2147
|
}, Gl = {
|
|
2148
2148
|
key: 2,
|
|
2149
2149
|
class: "actions"
|
|
2150
|
-
},
|
|
2151
|
-
directives: { loading:
|
|
2150
|
+
}, Yl = { key: 3 }, Jl = { key: 0 }, Ql = /* @__PURE__ */ R({
|
|
2151
|
+
directives: { loading: jl },
|
|
2152
2152
|
__name: "page",
|
|
2153
2153
|
props: {
|
|
2154
2154
|
title: {},
|
|
@@ -2163,20 +2163,20 @@ const fn = {
|
|
|
2163
2163
|
setup(e, { emit: n }) {
|
|
2164
2164
|
const t = e, o = C(() => t.flow?.running?.value ?? !1), l = C(() => t.flow?.error?.value ?? null), a = C(() => t.errorMessage ?? (l.value ? String(l.value) : null));
|
|
2165
2165
|
return (i, c) => {
|
|
2166
|
-
const s =
|
|
2167
|
-
return ct((
|
|
2166
|
+
const s = X("VjButton"), r = Xt("loading");
|
|
2167
|
+
return ct((v(), g("div", Hl, [
|
|
2168
2168
|
x("header", null, [
|
|
2169
|
-
x("div",
|
|
2170
|
-
e.backLabel ? (
|
|
2169
|
+
x("div", Wl, [
|
|
2170
|
+
e.backLabel ? (v(), F(s, {
|
|
2171
2171
|
key: 0,
|
|
2172
2172
|
tertiary: "",
|
|
2173
|
-
icon: S(
|
|
2173
|
+
icon: S(H).BACK,
|
|
2174
2174
|
onClick: c[0] || (c[0] = (u) => i.$emit("back")),
|
|
2175
2175
|
size: "small"
|
|
2176
|
-
}, null, 8, ["icon"])) :
|
|
2176
|
+
}, null, 8, ["icon"])) : $("", !0),
|
|
2177
2177
|
x("div", Ul, [
|
|
2178
2178
|
x("h1", null, B(e.title), 1),
|
|
2179
|
-
e.subTitle ? (
|
|
2179
|
+
e.subTitle ? (v(), g("h2", Kl, B(e.subTitle), 1)) : $("", !0)
|
|
2180
2180
|
])
|
|
2181
2181
|
]),
|
|
2182
2182
|
x("div", Nl, [
|
|
@@ -2184,39 +2184,39 @@ const fn = {
|
|
|
2184
2184
|
])
|
|
2185
2185
|
]),
|
|
2186
2186
|
x("main", {
|
|
2187
|
-
class:
|
|
2187
|
+
class: I({ scrollable: e.scrollable })
|
|
2188
2188
|
}, [
|
|
2189
|
-
a.value ? (
|
|
2189
|
+
a.value ? (v(), g("div", Xl, [
|
|
2190
2190
|
M(i.$slots, "error", {}, () => [
|
|
2191
|
-
|
|
2191
|
+
D(wt, {
|
|
2192
2192
|
type: "error",
|
|
2193
2193
|
title: a.value,
|
|
2194
2194
|
message: a.value
|
|
2195
2195
|
}, null, 8, ["title", "message"])
|
|
2196
2196
|
], !0)
|
|
2197
|
-
])) :
|
|
2198
|
-
a.value ?
|
|
2197
|
+
])) : $("", !0),
|
|
2198
|
+
a.value ? $("", !0) : (v(), g("div", ql, [
|
|
2199
2199
|
M(i.$slots, "default", {}, void 0, !0)
|
|
2200
2200
|
])),
|
|
2201
|
-
a.value ?
|
|
2201
|
+
a.value ? $("", !0) : (v(), g("div", Gl, [
|
|
2202
2202
|
M(i.$slots, "actions", {}, void 0, !0)
|
|
2203
2203
|
])),
|
|
2204
|
-
i.$slots.flexFooter ? (
|
|
2204
|
+
i.$slots.flexFooter ? (v(), g("footer", Yl, [
|
|
2205
2205
|
M(i.$slots, "flexFooter", {}, void 0, !0)
|
|
2206
|
-
])) :
|
|
2206
|
+
])) : $("", !0)
|
|
2207
2207
|
], 2),
|
|
2208
|
-
i.$slots.footer ? (
|
|
2208
|
+
i.$slots.footer ? (v(), g("footer", Jl, [
|
|
2209
2209
|
M(i.$slots, "footer", {}, void 0, !0)
|
|
2210
|
-
])) :
|
|
2210
|
+
])) : $("", !0)
|
|
2211
2211
|
])), [
|
|
2212
2212
|
[r, { active: o.value, text: t.loadingMessage }]
|
|
2213
2213
|
]);
|
|
2214
2214
|
};
|
|
2215
2215
|
}
|
|
2216
|
-
}),
|
|
2216
|
+
}), Zl = /* @__PURE__ */ O(Ql, [["__scopeId", "data-v-3e724555"]]), ea = {
|
|
2217
2217
|
class: "paginator-info",
|
|
2218
2218
|
"aria-live": "polite"
|
|
2219
|
-
},
|
|
2219
|
+
}, ta = /* @__PURE__ */ R({
|
|
2220
2220
|
__name: "paginator",
|
|
2221
2221
|
props: /* @__PURE__ */ ee({
|
|
2222
2222
|
totalItems: {},
|
|
@@ -2228,32 +2228,32 @@ const fn = {
|
|
|
2228
2228
|
}),
|
|
2229
2229
|
emits: /* @__PURE__ */ ee(["change"], ["update:modelValue"]),
|
|
2230
2230
|
setup(e, { emit: n }) {
|
|
2231
|
-
const t = e, o = ve(e, "modelValue"), l = n, a = C(() => Math.max(1, Math.ceil((t.totalItems ?? 0) / t.pageSize))), i = C(() => Math.min(Math.max(1, o.value ?? 1), a.value)), c = C(() => i.value), s = C(() => i.value <= 1), r = C(() => i.value >= a.value), u = C(() => t.labels?.item ?? "Eintrag"), d = C(() => t.labels?.of ?? "von"),
|
|
2231
|
+
const t = e, o = ve(e, "modelValue"), l = n, a = C(() => Math.max(1, Math.ceil((t.totalItems ?? 0) / t.pageSize))), i = C(() => Math.min(Math.max(1, o.value ?? 1), a.value)), c = C(() => i.value), s = C(() => i.value <= 1), r = C(() => i.value >= a.value), u = C(() => t.labels?.item ?? "Eintrag"), d = C(() => t.labels?.of ?? "von"), f = (y) => {
|
|
2232
2232
|
const _ = Math.min(Math.max(1, Math.floor(y)), a.value);
|
|
2233
2233
|
_ !== o.value && (o.value = _, l("change", _));
|
|
2234
|
-
}, m = () =>
|
|
2235
|
-
return
|
|
2236
|
-
o.value > a.value &&
|
|
2234
|
+
}, m = () => f(1), p = () => f(i.value - 1), w = () => f(i.value + 1), h = () => f(a.value);
|
|
2235
|
+
return N([() => t.totalItems, () => t.pageSize], () => {
|
|
2236
|
+
o.value > a.value && f(a.value);
|
|
2237
2237
|
}), (y, _) => {
|
|
2238
|
-
const b =
|
|
2239
|
-
return
|
|
2238
|
+
const b = X("VjButton");
|
|
2239
|
+
return v(), g("nav", {
|
|
2240
2240
|
class: "paginator",
|
|
2241
2241
|
"aria-label": "Pagination",
|
|
2242
|
-
onKeydown: _[0] || (_[0] =
|
|
2242
|
+
onKeydown: _[0] || (_[0] = je(K(() => {
|
|
2243
2243
|
}, ["prevent"]), ["enter"]))
|
|
2244
2244
|
}, [
|
|
2245
|
-
|
|
2245
|
+
D(b, {
|
|
2246
2246
|
tertiary: "",
|
|
2247
2247
|
class: "paginator-btn",
|
|
2248
|
-
icon: S(
|
|
2248
|
+
icon: S(H).FIRST,
|
|
2249
2249
|
disabled: s.value,
|
|
2250
2250
|
onClick: m,
|
|
2251
2251
|
"aria-label": "First page"
|
|
2252
2252
|
}, null, 8, ["icon", "disabled"]),
|
|
2253
|
-
|
|
2253
|
+
D(b, {
|
|
2254
2254
|
tertiary: "",
|
|
2255
2255
|
class: "paginator-btn",
|
|
2256
|
-
icon: S(
|
|
2256
|
+
icon: S(H).PREVIOUS,
|
|
2257
2257
|
disabled: s.value,
|
|
2258
2258
|
onClick: p,
|
|
2259
2259
|
"aria-label": "Previous page"
|
|
@@ -2261,22 +2261,22 @@ const fn = {
|
|
|
2261
2261
|
M(y.$slots, "info", {
|
|
2262
2262
|
current: i.value,
|
|
2263
2263
|
totalPages: a.value,
|
|
2264
|
-
goTo:
|
|
2264
|
+
goTo: f
|
|
2265
2265
|
}, () => [
|
|
2266
|
-
x("div",
|
|
2266
|
+
x("div", ea, B(u.value) + " " + B(c.value) + " " + B(d.value) + " " + B(a.value), 1)
|
|
2267
2267
|
], !0),
|
|
2268
|
-
|
|
2268
|
+
D(b, {
|
|
2269
2269
|
tertiary: "",
|
|
2270
2270
|
class: "paginator-btn",
|
|
2271
|
-
icon: S(
|
|
2271
|
+
icon: S(H).NEXT,
|
|
2272
2272
|
disabled: r.value,
|
|
2273
2273
|
onClick: w,
|
|
2274
2274
|
"aria-label": "Next page"
|
|
2275
2275
|
}, null, 8, ["icon", "disabled"]),
|
|
2276
|
-
|
|
2276
|
+
D(b, {
|
|
2277
2277
|
tertiary: "",
|
|
2278
2278
|
class: "paginator-btn",
|
|
2279
|
-
icon: S(
|
|
2279
|
+
icon: S(H).LAST,
|
|
2280
2280
|
disabled: r.value,
|
|
2281
2281
|
onClick: h,
|
|
2282
2282
|
"aria-label": "Last page"
|
|
@@ -2284,7 +2284,7 @@ const fn = {
|
|
|
2284
2284
|
], 32);
|
|
2285
2285
|
};
|
|
2286
2286
|
}
|
|
2287
|
-
}),
|
|
2287
|
+
}), na = /* @__PURE__ */ O(ta, [["__scopeId", "data-v-b6fa8efe"]]), oa = { class: "search-field" }, la = ["value", "placeholder"], aa = /* @__PURE__ */ R({
|
|
2288
2288
|
__name: "search-field",
|
|
2289
2289
|
props: /* @__PURE__ */ ee({
|
|
2290
2290
|
placeholder: { default: "Search..." }
|
|
@@ -2300,41 +2300,58 @@ const fn = {
|
|
|
2300
2300
|
n.value = "";
|
|
2301
2301
|
}, l = C(() => !n.value);
|
|
2302
2302
|
return (a, i) => {
|
|
2303
|
-
const c =
|
|
2304
|
-
return
|
|
2305
|
-
|
|
2306
|
-
icon: S(
|
|
2307
|
-
size: S(
|
|
2303
|
+
const c = X("VjIcon");
|
|
2304
|
+
return v(), g("div", oa, [
|
|
2305
|
+
D(c, {
|
|
2306
|
+
icon: S(H).SEARCH,
|
|
2307
|
+
size: S(G).S
|
|
2308
2308
|
}, null, 8, ["icon", "size"]),
|
|
2309
2309
|
x("input", {
|
|
2310
2310
|
value: n.value,
|
|
2311
2311
|
onInput: t,
|
|
2312
2312
|
type: "text",
|
|
2313
2313
|
placeholder: e.placeholder
|
|
2314
|
-
}, null, 40,
|
|
2315
|
-
|
|
2316
|
-
class:
|
|
2317
|
-
icon: S(
|
|
2318
|
-
size: S(
|
|
2314
|
+
}, null, 40, la),
|
|
2315
|
+
D(c, {
|
|
2316
|
+
class: I(["reset", { invisible: l.value }]),
|
|
2317
|
+
icon: S(H).CLOSE,
|
|
2318
|
+
size: S(G).S,
|
|
2319
2319
|
onClick: o
|
|
2320
2320
|
}, null, 8, ["class", "icon", "size"])
|
|
2321
2321
|
]);
|
|
2322
2322
|
};
|
|
2323
2323
|
}
|
|
2324
|
-
}),
|
|
2324
|
+
}), ia = /* @__PURE__ */ O(aa, [["__scopeId", "data-v-2771c8ed"]]), sa = /* @__PURE__ */ R({
|
|
2325
2325
|
__name: "separator",
|
|
2326
2326
|
props: {
|
|
2327
2327
|
vertical: { type: Boolean }
|
|
2328
2328
|
},
|
|
2329
2329
|
setup(e) {
|
|
2330
|
-
return (n, t) => (
|
|
2331
|
-
class:
|
|
2330
|
+
return (n, t) => (v(), g("div", {
|
|
2331
|
+
class: I(["separator", { vertical: e.vertical }])
|
|
2332
2332
|
}, null, 2));
|
|
2333
2333
|
}
|
|
2334
|
-
}),
|
|
2334
|
+
}), ra = /* @__PURE__ */ O(sa, [["__scopeId", "data-v-e354bb4e"]]), ca = {
|
|
2335
|
+
key: 0,
|
|
2336
|
+
class: "tab"
|
|
2337
|
+
}, ua = /* @__PURE__ */ R({
|
|
2338
|
+
__name: "tab",
|
|
2339
|
+
props: {
|
|
2340
|
+
name: {},
|
|
2341
|
+
label: {}
|
|
2342
|
+
},
|
|
2343
|
+
setup(e) {
|
|
2344
|
+
const n = e, t = ut("tabView"), o = C(() => t?.activeTab() === n.name);
|
|
2345
|
+
return Re(() => {
|
|
2346
|
+
t?.registerTab(n.name, n.label);
|
|
2347
|
+
}), (l, a) => o.value ? (v(), g("div", ca, [
|
|
2348
|
+
M(l.$slots, "default")
|
|
2349
|
+
])) : $("", !0);
|
|
2350
|
+
}
|
|
2351
|
+
}), da = { class: "tab-view" }, fa = {
|
|
2335
2352
|
ref: "headerRef",
|
|
2336
2353
|
class: "tab-view-header"
|
|
2337
|
-
},
|
|
2354
|
+
}, va = ["onClick"], ma = { class: "tab-view-content" }, pa = /* @__PURE__ */ R({
|
|
2338
2355
|
__name: "tab-view",
|
|
2339
2356
|
props: {
|
|
2340
2357
|
modelValue: {},
|
|
@@ -2350,10 +2367,10 @@ const fn = {
|
|
|
2350
2367
|
}, i = () => {
|
|
2351
2368
|
const r = t.value.findIndex((u) => u.name === n.value);
|
|
2352
2369
|
if (r >= 0 && o.value[r]) {
|
|
2353
|
-
const u = o.value[r], d = u.offsetWidth,
|
|
2370
|
+
const u = o.value[r], d = u.offsetWidth, f = u.offsetLeft;
|
|
2354
2371
|
l.value = {
|
|
2355
2372
|
width: `${d}px`,
|
|
2356
|
-
transform: `translateX(${
|
|
2373
|
+
transform: `translateX(${f}px)`
|
|
2357
2374
|
};
|
|
2358
2375
|
}
|
|
2359
2376
|
}, c = (r, u) => {
|
|
@@ -2363,51 +2380,169 @@ const fn = {
|
|
|
2363
2380
|
}, s = (r) => {
|
|
2364
2381
|
n.value = r;
|
|
2365
2382
|
};
|
|
2366
|
-
return
|
|
2383
|
+
return N(n, () => {
|
|
2367
2384
|
me(() => {
|
|
2368
2385
|
i();
|
|
2369
2386
|
});
|
|
2370
|
-
}),
|
|
2387
|
+
}), Kt("tabView", {
|
|
2371
2388
|
activeTab: () => n.value,
|
|
2372
2389
|
registerTab: c
|
|
2373
|
-
}), (r, u) => (
|
|
2374
|
-
x("div",
|
|
2375
|
-
(
|
|
2390
|
+
}), (r, u) => (v(), g("div", da, [
|
|
2391
|
+
x("div", fa, [
|
|
2392
|
+
(v(!0), g(Z, null, ge(t.value, (d, f) => (v(), g("div", {
|
|
2376
2393
|
key: d.name,
|
|
2377
2394
|
ref_for: !0,
|
|
2378
|
-
ref: (m) => a(m,
|
|
2379
|
-
class:
|
|
2395
|
+
ref: (m) => a(m, f),
|
|
2396
|
+
class: I(["tab-button", { active: n.value === d.name }]),
|
|
2380
2397
|
onClick: (m) => s(d.name)
|
|
2381
|
-
}, B(d.label), 11,
|
|
2398
|
+
}, B(d.label), 11, va))), 128)),
|
|
2382
2399
|
u[0] || (u[0] = x("div", { class: "tab-line" }, null, -1)),
|
|
2383
2400
|
x("div", {
|
|
2384
2401
|
class: "tab-indicator",
|
|
2385
|
-
style:
|
|
2402
|
+
style: q(l.value)
|
|
2386
2403
|
}, null, 4)
|
|
2387
2404
|
], 512),
|
|
2388
|
-
x("div",
|
|
2405
|
+
x("div", ma, [
|
|
2389
2406
|
M(r.$slots, "default", {}, void 0, !0)
|
|
2390
2407
|
])
|
|
2391
2408
|
]));
|
|
2392
2409
|
}
|
|
2393
|
-
}),
|
|
2394
|
-
|
|
2395
|
-
class: "tab"
|
|
2396
|
-
}, pa = /* @__PURE__ */ T({
|
|
2397
|
-
__name: "tab",
|
|
2410
|
+
}), ha = /* @__PURE__ */ O(pa, [["__scopeId", "data-v-3d4ee454"]]), ga = ["width", "height", "role", "tabindex", "aria-label", "onKeydown"], ba = ["cx", "cy", "r", "stroke-width"], ya = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], wa = ["transform"], _a = ["x", "y", "width", "height", "rx"], xa = ["x", "y", "width", "height", "rx"], ka = /* @__PURE__ */ R({
|
|
2411
|
+
__name: "timer",
|
|
2398
2412
|
props: {
|
|
2399
|
-
|
|
2400
|
-
|
|
2413
|
+
duration: { default: 5e3 },
|
|
2414
|
+
action: { type: Function, default: void 0 },
|
|
2415
|
+
pausable: { type: Boolean, default: !1 },
|
|
2416
|
+
paused: { type: Boolean, default: !1 },
|
|
2417
|
+
timerSize: { default: "m" }
|
|
2401
2418
|
},
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
}),
|
|
2419
|
+
emits: ["update:paused"],
|
|
2420
|
+
setup(e, { emit: n }) {
|
|
2421
|
+
const t = {
|
|
2422
|
+
s: { size: 24, strokeWidth: 1, innerStrokeWidth: 2 },
|
|
2423
|
+
m: { size: 32, strokeWidth: 1, innerStrokeWidth: 4 },
|
|
2424
|
+
l: { size: 40, strokeWidth: 2, innerStrokeWidth: 6 },
|
|
2425
|
+
xl: { size: 64, strokeWidth: 2, innerStrokeWidth: 8 },
|
|
2426
|
+
xxl: { size: 92, strokeWidth: 2, innerStrokeWidth: 10 }
|
|
2427
|
+
}, o = e, l = n, a = C(() => t[o.timerSize].size), i = C(() => t[o.timerSize].strokeWidth), c = C(() => t[o.timerSize].innerStrokeWidth), s = E(!1), r = E(100), u = E(!1), d = E(o.paused);
|
|
2428
|
+
let f = null, m = null, p = 0;
|
|
2429
|
+
const w = C(() => (a.value - Math.max(i.value, c.value)) / 2), h = C(() => 2 * Math.PI * w.value), y = C(() => h.value * (1 - r.value / 100));
|
|
2430
|
+
N(
|
|
2431
|
+
() => o.paused,
|
|
2432
|
+
(P) => {
|
|
2433
|
+
d.value = P, P ? k() : V();
|
|
2434
|
+
}
|
|
2435
|
+
), Re(() => {
|
|
2436
|
+
b();
|
|
2437
|
+
}), kn(() => {
|
|
2438
|
+
T();
|
|
2439
|
+
});
|
|
2440
|
+
function _() {
|
|
2441
|
+
o.pausable && (d.value = !d.value, l("update:paused", d.value));
|
|
2442
|
+
}
|
|
2443
|
+
function b() {
|
|
2444
|
+
d.value || (m = performance.now() - p, L());
|
|
2445
|
+
}
|
|
2446
|
+
function L() {
|
|
2447
|
+
if (!m || d.value) return;
|
|
2448
|
+
p = performance.now() - m;
|
|
2449
|
+
const W = Math.max(0, o.duration - p), te = W / o.duration * 100;
|
|
2450
|
+
r.value = te, W > 0 ? f = requestAnimationFrame(L) : j();
|
|
2451
|
+
}
|
|
2452
|
+
async function j() {
|
|
2453
|
+
if (!o.action) {
|
|
2454
|
+
z();
|
|
2455
|
+
return;
|
|
2456
|
+
}
|
|
2457
|
+
s.value = !0;
|
|
2458
|
+
try {
|
|
2459
|
+
await o.action();
|
|
2460
|
+
} catch (P) {
|
|
2461
|
+
console.error("Timer action failed:", P);
|
|
2462
|
+
} finally {
|
|
2463
|
+
s.value = !1, z();
|
|
2464
|
+
}
|
|
2465
|
+
}
|
|
2466
|
+
function z() {
|
|
2467
|
+
u.value = !0, p = 0, requestAnimationFrame(() => {
|
|
2468
|
+
r.value = 100, requestAnimationFrame(() => {
|
|
2469
|
+
u.value = !1, b();
|
|
2470
|
+
});
|
|
2471
|
+
});
|
|
2472
|
+
}
|
|
2473
|
+
function k() {
|
|
2474
|
+
f !== null && (cancelAnimationFrame(f), f = null);
|
|
2475
|
+
}
|
|
2476
|
+
function V() {
|
|
2477
|
+
f === null && !s.value && b();
|
|
2478
|
+
}
|
|
2479
|
+
function T() {
|
|
2480
|
+
f !== null && (cancelAnimationFrame(f), f = null);
|
|
2481
|
+
}
|
|
2482
|
+
return (P, W) => (v(), g("svg", {
|
|
2483
|
+
width: a.value,
|
|
2484
|
+
height: a.value,
|
|
2485
|
+
class: I([
|
|
2486
|
+
"vj-timer",
|
|
2487
|
+
{
|
|
2488
|
+
"vj-timer--executing": s.value,
|
|
2489
|
+
"vj-timer--resetting": u.value,
|
|
2490
|
+
"vj-timer--pausable": e.pausable,
|
|
2491
|
+
"vj-timer--paused": d.value
|
|
2492
|
+
}
|
|
2493
|
+
]),
|
|
2494
|
+
role: e.pausable ? "button" : void 0,
|
|
2495
|
+
tabindex: e.pausable ? 0 : void 0,
|
|
2496
|
+
"aria-label": e.pausable ? d.value ? "Resume timer" : "Pause timer" : void 0,
|
|
2497
|
+
onClick: _,
|
|
2498
|
+
onKeydown: [
|
|
2499
|
+
je(K(_, ["prevent"]), ["space"]),
|
|
2500
|
+
je(_, ["enter"])
|
|
2501
|
+
]
|
|
2502
|
+
}, [
|
|
2503
|
+
x("circle", {
|
|
2504
|
+
cx: a.value / 2,
|
|
2505
|
+
cy: a.value / 2,
|
|
2506
|
+
r: w.value,
|
|
2507
|
+
"stroke-width": i.value,
|
|
2508
|
+
class: "vj-timer__outer-ring",
|
|
2509
|
+
fill: "none"
|
|
2510
|
+
}, null, 8, ba),
|
|
2511
|
+
x("circle", {
|
|
2512
|
+
cx: a.value / 2,
|
|
2513
|
+
cy: a.value / 2,
|
|
2514
|
+
r: w.value,
|
|
2515
|
+
"stroke-width": c.value,
|
|
2516
|
+
"stroke-dasharray": h.value,
|
|
2517
|
+
"stroke-dashoffset": y.value,
|
|
2518
|
+
class: "vj-timer__progress-ring",
|
|
2519
|
+
fill: "none"
|
|
2520
|
+
}, null, 8, ya),
|
|
2521
|
+
d.value ? (v(), g("g", {
|
|
2522
|
+
key: 0,
|
|
2523
|
+
class: "vj-timer__pause-icon",
|
|
2524
|
+
transform: `translate(${a.value / 2},${a.value / 2}) rotate(-90) scale(-1, 1)`
|
|
2525
|
+
}, [
|
|
2526
|
+
x("rect", {
|
|
2527
|
+
x: -a.value * 0.12,
|
|
2528
|
+
y: -a.value * 0.15,
|
|
2529
|
+
width: a.value * 0.08,
|
|
2530
|
+
height: a.value * 0.3,
|
|
2531
|
+
rx: a.value * 0.015,
|
|
2532
|
+
class: "vj-timer__pause-bar"
|
|
2533
|
+
}, null, 8, _a),
|
|
2534
|
+
x("rect", {
|
|
2535
|
+
x: a.value * 0.04,
|
|
2536
|
+
y: -a.value * 0.15,
|
|
2537
|
+
width: a.value * 0.08,
|
|
2538
|
+
height: a.value * 0.3,
|
|
2539
|
+
rx: a.value * 0.015,
|
|
2540
|
+
class: "vj-timer__pause-bar"
|
|
2541
|
+
}, null, 8, xa)
|
|
2542
|
+
], 8, wa)) : $("", !0)
|
|
2543
|
+
], 42, ga));
|
|
2544
|
+
}
|
|
2545
|
+
}), Va = /* @__PURE__ */ O(ka, [["__scopeId", "data-v-49a33853"]]), Ca = ["onKeydown"], Ea = /* @__PURE__ */ R({
|
|
2411
2546
|
__name: "editable-label",
|
|
2412
2547
|
props: {
|
|
2413
2548
|
modelValue: {},
|
|
@@ -2416,7 +2551,7 @@ const fn = {
|
|
|
2416
2551
|
emits: ["update:modelValue", "edit"],
|
|
2417
2552
|
setup(e, { emit: n }) {
|
|
2418
2553
|
const t = e, o = n, l = C(() => t.modelValue ?? ""), a = E(l.value), i = E(!1), c = E(!1), s = E(null), r = C(() => !!t.showIcon);
|
|
2419
|
-
|
|
2554
|
+
N(l, (m) => {
|
|
2420
2555
|
a.value = m;
|
|
2421
2556
|
});
|
|
2422
2557
|
function u() {
|
|
@@ -2425,46 +2560,46 @@ const fn = {
|
|
|
2425
2560
|
function d() {
|
|
2426
2561
|
i.value = !1, a.value !== l.value && (o("update:modelValue", a.value), o("edit", a.value));
|
|
2427
2562
|
}
|
|
2428
|
-
function
|
|
2563
|
+
function f() {
|
|
2429
2564
|
a.value = l.value, i.value = !1;
|
|
2430
2565
|
}
|
|
2431
|
-
return (m, p) => (
|
|
2432
|
-
class:
|
|
2566
|
+
return (m, p) => (v(), g("span", {
|
|
2567
|
+
class: I(["vj-editable-label", { editing: i.value }]),
|
|
2433
2568
|
onMouseenter: p[1] || (p[1] = (w) => c.value = !0),
|
|
2434
2569
|
onMouseleave: p[2] || (p[2] = (w) => c.value = !1)
|
|
2435
2570
|
}, [
|
|
2436
|
-
i.value ? ct((
|
|
2571
|
+
i.value ? ct((v(), g("input", {
|
|
2437
2572
|
key: 1,
|
|
2438
2573
|
ref_key: "inputRef",
|
|
2439
2574
|
ref: s,
|
|
2440
2575
|
class: "edit-input",
|
|
2441
2576
|
"onUpdate:modelValue": p[0] || (p[0] = (w) => a.value = w),
|
|
2442
2577
|
onKeydown: [
|
|
2443
|
-
|
|
2444
|
-
|
|
2578
|
+
je(K(d, ["prevent"]), ["enter"]),
|
|
2579
|
+
je(K(f, ["prevent"]), ["esc"])
|
|
2445
2580
|
],
|
|
2446
2581
|
onBlur: d
|
|
2447
|
-
}, null, 40,
|
|
2448
|
-
[
|
|
2449
|
-
]) : (
|
|
2582
|
+
}, null, 40, Ca)), [
|
|
2583
|
+
[Vn, a.value]
|
|
2584
|
+
]) : (v(), g(Z, { key: 0 }, [
|
|
2450
2585
|
x("span", {
|
|
2451
2586
|
class: "label-text",
|
|
2452
2587
|
onClick: u,
|
|
2453
2588
|
title: "Click to edit"
|
|
2454
2589
|
}, B(l.value), 1),
|
|
2455
|
-
c.value || r.value ? (
|
|
2590
|
+
c.value || r.value ? (v(), g("span", {
|
|
2456
2591
|
key: 0,
|
|
2457
2592
|
class: "edit-icon",
|
|
2458
|
-
onClick:
|
|
2593
|
+
onClick: K(u, ["stop"])
|
|
2459
2594
|
}, [
|
|
2460
|
-
|
|
2461
|
-
icon: S(
|
|
2595
|
+
D(be, {
|
|
2596
|
+
icon: S(H).EDIT
|
|
2462
2597
|
}, null, 8, ["icon"])
|
|
2463
|
-
])) :
|
|
2598
|
+
])) : $("", !0)
|
|
2464
2599
|
], 64))
|
|
2465
2600
|
], 34));
|
|
2466
2601
|
}
|
|
2467
|
-
}),
|
|
2602
|
+
}), Xi = /* @__PURE__ */ O(Ea, [["__scopeId", "data-v-cdc52c5b"]]), La = "200% 200%", $a = /* @__PURE__ */ R({
|
|
2468
2603
|
__name: "skeleton",
|
|
2469
2604
|
props: {
|
|
2470
2605
|
width: {},
|
|
@@ -2473,18 +2608,18 @@ const fn = {
|
|
|
2473
2608
|
},
|
|
2474
2609
|
setup(e) {
|
|
2475
2610
|
const n = e, t = C(() => n.width ?? "100%"), o = C(() => n.height ?? "16px"), l = C(() => n.borderRadius ?? "4px");
|
|
2476
|
-
return (a, i) => (
|
|
2611
|
+
return (a, i) => (v(), g("div", {
|
|
2477
2612
|
class: "vj-skeleton",
|
|
2478
|
-
style:
|
|
2613
|
+
style: q({
|
|
2479
2614
|
width: t.value,
|
|
2480
2615
|
height: o.value,
|
|
2481
2616
|
borderRadius: l.value,
|
|
2482
|
-
backgroundSize:
|
|
2617
|
+
backgroundSize: La
|
|
2483
2618
|
}),
|
|
2484
2619
|
"aria-hidden": "true"
|
|
2485
2620
|
}, null, 4));
|
|
2486
2621
|
}
|
|
2487
|
-
}),
|
|
2622
|
+
}), Sa = /* @__PURE__ */ O($a, [["__scopeId", "data-v-ac05e016"]]), Ra = /* @__PURE__ */ R({
|
|
2488
2623
|
__name: "amount-bar",
|
|
2489
2624
|
props: {
|
|
2490
2625
|
amount: {},
|
|
@@ -2498,8 +2633,8 @@ const fn = {
|
|
|
2498
2633
|
const i = 100 / n.segments, c = a * i;
|
|
2499
2634
|
return t.value > c;
|
|
2500
2635
|
}, l = (a) => (160 - a / (n.segments - 1 || 1) * 160).toString();
|
|
2501
|
-
return (a, i) => (
|
|
2502
|
-
class:
|
|
2636
|
+
return (a, i) => (v(), g("div", {
|
|
2637
|
+
class: I([
|
|
2503
2638
|
"amount-bar",
|
|
2504
2639
|
{
|
|
2505
2640
|
"amount-bar--segmented": e.segments,
|
|
@@ -2508,27 +2643,27 @@ const fn = {
|
|
|
2508
2643
|
}
|
|
2509
2644
|
])
|
|
2510
2645
|
}, [
|
|
2511
|
-
e.segments ? (
|
|
2646
|
+
e.segments ? (v(!0), g(Z, { key: 0 }, ge(Array.from({ length: e.segments }), (c, s) => (v(), g("div", {
|
|
2512
2647
|
key: s,
|
|
2513
|
-
class:
|
|
2514
|
-
style:
|
|
2515
|
-
}, null, 6))), 128)) : (
|
|
2648
|
+
class: I(["amount-bar__segment", { "amount-bar__segment--filled": o(s) }]),
|
|
2649
|
+
style: q(o(s) && e.colorMode === "hue-gradient" ? { backgroundColor: `hsl(${l(s)}, 100%, 45%)` } : {})
|
|
2650
|
+
}, null, 6))), 128)) : (v(), g("div", {
|
|
2516
2651
|
key: 1,
|
|
2517
2652
|
class: "amount-bar__fill",
|
|
2518
|
-
style:
|
|
2653
|
+
style: q({ width: `${e.amount / e.maxAmount * 100}%` })
|
|
2519
2654
|
}, null, 4))
|
|
2520
2655
|
], 2));
|
|
2521
2656
|
}
|
|
2522
|
-
}),
|
|
2657
|
+
}), Ta = /* @__PURE__ */ O(Ra, [["__scopeId", "data-v-7e89d03f"]]), vn = {
|
|
2523
2658
|
form: {
|
|
2524
2659
|
labelPosition: "inline",
|
|
2525
2660
|
appearance: "bordered"
|
|
2526
2661
|
}
|
|
2527
2662
|
};
|
|
2528
|
-
let
|
|
2529
|
-
function
|
|
2530
|
-
|
|
2531
|
-
...
|
|
2663
|
+
let qe = {};
|
|
2664
|
+
function qi(e) {
|
|
2665
|
+
qe = {
|
|
2666
|
+
...qe,
|
|
2532
2667
|
...e,
|
|
2533
2668
|
form: {
|
|
2534
2669
|
...vn.form,
|
|
@@ -2540,22 +2675,22 @@ function Ht() {
|
|
|
2540
2675
|
return {
|
|
2541
2676
|
form: {
|
|
2542
2677
|
...vn.form,
|
|
2543
|
-
...
|
|
2678
|
+
...qe.form
|
|
2544
2679
|
}
|
|
2545
2680
|
};
|
|
2546
2681
|
}
|
|
2547
|
-
function
|
|
2548
|
-
|
|
2682
|
+
function Gi() {
|
|
2683
|
+
qe = {};
|
|
2549
2684
|
}
|
|
2550
|
-
const
|
|
2685
|
+
const Aa = ["data-colspan", "data-newline"], Oa = ["for"], Da = { class: "form-field__wrapper" }, ja = ["for"], Ba = {
|
|
2551
2686
|
key: 1,
|
|
2552
2687
|
class: "form-field__error"
|
|
2553
|
-
},
|
|
2688
|
+
}, Pa = {
|
|
2554
2689
|
key: 2,
|
|
2555
2690
|
class: "form-field__help",
|
|
2556
2691
|
type: "button",
|
|
2557
2692
|
"aria-label": "Hilfe"
|
|
2558
|
-
},
|
|
2693
|
+
}, Ma = /* @__PURE__ */ R({
|
|
2559
2694
|
directives: { tooltip: fn },
|
|
2560
2695
|
__name: "form-field",
|
|
2561
2696
|
props: {
|
|
@@ -2575,7 +2710,7 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
2575
2710
|
emits: ["update:modelValue", "focus", "blur"],
|
|
2576
2711
|
setup(e, { emit: n }) {
|
|
2577
2712
|
const t = e, o = n, l = E(t.modelValue), a = E(!1), i = C(() => `form-field-${t.id ?? Math.random().toString(36).slice(2)}`), c = C(() => t.labelPosition ?? Ht().form.labelPosition), s = C(() => t.appearance ?? Ht().form.appearance);
|
|
2578
|
-
|
|
2713
|
+
N(
|
|
2579
2714
|
() => t.modelValue,
|
|
2580
2715
|
(p) => l.value = p
|
|
2581
2716
|
);
|
|
@@ -2589,16 +2724,16 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
2589
2724
|
const h = p.target.value;
|
|
2590
2725
|
l.value = h, o("update:modelValue", h);
|
|
2591
2726
|
}
|
|
2592
|
-
function
|
|
2727
|
+
function f(p) {
|
|
2593
2728
|
a.value = !0, o("focus", p);
|
|
2594
2729
|
}
|
|
2595
2730
|
function m(p) {
|
|
2596
2731
|
a.value = !1, o("blur", p);
|
|
2597
2732
|
}
|
|
2598
2733
|
return (p, w) => {
|
|
2599
|
-
const h =
|
|
2600
|
-
return
|
|
2601
|
-
class:
|
|
2734
|
+
const h = X("VjIcon"), y = Xt("tooltip");
|
|
2735
|
+
return v(), g("div", {
|
|
2736
|
+
class: I([
|
|
2602
2737
|
"form-field",
|
|
2603
2738
|
`form-field--${c.value}`,
|
|
2604
2739
|
`form-field--${s.value}`,
|
|
@@ -2608,41 +2743,41 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
2608
2743
|
]),
|
|
2609
2744
|
"data-colspan": t.spanRow ? void 0 : t.colspan,
|
|
2610
2745
|
"data-newline": t.spanRow || t.newLine ? "true" : void 0,
|
|
2611
|
-
style:
|
|
2746
|
+
style: q(t.spanRow ? { gridColumn: "1 / -1" } : void 0)
|
|
2612
2747
|
}, [
|
|
2613
|
-
e.label && c.value === "outline" ? (
|
|
2748
|
+
e.label && c.value === "outline" ? (v(), g("label", {
|
|
2614
2749
|
key: 0,
|
|
2615
2750
|
for: i.value,
|
|
2616
2751
|
class: "form-field__label-outline"
|
|
2617
|
-
}, B(e.label), 9,
|
|
2618
|
-
x("div",
|
|
2752
|
+
}, B(e.label), 9, Oa)) : $("", !0),
|
|
2753
|
+
x("div", Da, [
|
|
2619
2754
|
M(p.$slots, "control", {
|
|
2620
2755
|
id: i.value,
|
|
2621
2756
|
value: l.value,
|
|
2622
2757
|
onInput: d,
|
|
2623
|
-
onFocus:
|
|
2758
|
+
onFocus: f,
|
|
2624
2759
|
onBlur: m,
|
|
2625
2760
|
disabled: e.disabled,
|
|
2626
2761
|
placeholder: u.value
|
|
2627
2762
|
}, void 0, !0),
|
|
2628
|
-
e.label && c.value === "inline" ? (
|
|
2763
|
+
e.label && c.value === "inline" ? (v(), g("label", {
|
|
2629
2764
|
key: 0,
|
|
2630
2765
|
for: i.value,
|
|
2631
|
-
class:
|
|
2632
|
-
}, B(e.label), 11,
|
|
2766
|
+
class: I(["form-field__label", { "form-field__label--float": r.value }])
|
|
2767
|
+
}, B(e.label), 11, ja)) : $("", !0)
|
|
2633
2768
|
]),
|
|
2634
|
-
e.error ? (
|
|
2635
|
-
t.helpText ? ct((
|
|
2636
|
-
|
|
2637
|
-
icon: S(
|
|
2769
|
+
e.error ? (v(), g("div", Ba, B(e.error), 1)) : $("", !0),
|
|
2770
|
+
t.helpText ? ct((v(), g("button", Pa, [
|
|
2771
|
+
D(h, {
|
|
2772
|
+
icon: S(H).HELP
|
|
2638
2773
|
}, null, 8, ["icon"])
|
|
2639
2774
|
])), [
|
|
2640
2775
|
[y, t.helpText]
|
|
2641
|
-
]) :
|
|
2642
|
-
], 14,
|
|
2776
|
+
]) : $("", !0)
|
|
2777
|
+
], 14, Aa);
|
|
2643
2778
|
};
|
|
2644
2779
|
}
|
|
2645
|
-
}),
|
|
2780
|
+
}), Ie = /* @__PURE__ */ O(Ma, [["__scopeId", "data-v-19959d5e"]]), Fa = /* @__PURE__ */ R({
|
|
2646
2781
|
__name: "form-layout",
|
|
2647
2782
|
props: {
|
|
2648
2783
|
columns: { type: Number, default: 4 },
|
|
@@ -2658,46 +2793,46 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
2658
2793
|
r !== null && r !== "false" ? i.style.gridColumn = "1 / -1" : i.style.gridColumn = `span ${s}`;
|
|
2659
2794
|
});
|
|
2660
2795
|
}
|
|
2661
|
-
return
|
|
2796
|
+
return Re(() => {
|
|
2662
2797
|
me(() => {
|
|
2663
2798
|
l(), t.value && (o = new MutationObserver(() => l()), o.observe(t.value, { childList: !0, subtree: !1, attributes: !0, attributeFilter: ["data-colspan", "data-newline"] }));
|
|
2664
2799
|
});
|
|
2665
|
-
}),
|
|
2800
|
+
}), Te(() => {
|
|
2666
2801
|
o?.disconnect();
|
|
2667
|
-
}),
|
|
2802
|
+
}), N(
|
|
2668
2803
|
() => n.columns,
|
|
2669
2804
|
() => me(l)
|
|
2670
|
-
),
|
|
2805
|
+
), N(
|
|
2671
2806
|
() => n.gap,
|
|
2672
2807
|
() => me(l)
|
|
2673
|
-
), (a, i) => (
|
|
2808
|
+
), (a, i) => (v(), g("div", {
|
|
2674
2809
|
ref_key: "container",
|
|
2675
2810
|
ref: t,
|
|
2676
2811
|
class: "form-layout",
|
|
2677
|
-
style:
|
|
2812
|
+
style: q({ gridTemplateColumns: `repeat(${e.columns}, minmax(0, 1fr))`, gap: e.gap })
|
|
2678
2813
|
}, [
|
|
2679
2814
|
M(a.$slots, "default", {}, void 0, !0)
|
|
2680
2815
|
], 4));
|
|
2681
2816
|
}
|
|
2682
|
-
}),
|
|
2817
|
+
}), za = /* @__PURE__ */ O(Fa, [["__scopeId", "data-v-96f62ab7"]]), Ia = {
|
|
2683
2818
|
key: 0,
|
|
2684
2819
|
class: "form-section__title",
|
|
2685
2820
|
"data-newline": ""
|
|
2686
|
-
},
|
|
2821
|
+
}, Ha = /* @__PURE__ */ R({
|
|
2687
2822
|
__name: "form-section",
|
|
2688
2823
|
props: {
|
|
2689
2824
|
title: {}
|
|
2690
2825
|
},
|
|
2691
2826
|
setup(e) {
|
|
2692
|
-
return (n, t) => (
|
|
2693
|
-
e.title ? (
|
|
2827
|
+
return (n, t) => (v(), g(Z, null, [
|
|
2828
|
+
e.title ? (v(), g("h3", Ia, B(e.title), 1)) : $("", !0),
|
|
2694
2829
|
M(n.$slots, "default", {}, void 0, !0)
|
|
2695
2830
|
], 64));
|
|
2696
2831
|
}
|
|
2697
|
-
}),
|
|
2832
|
+
}), Wa = /* @__PURE__ */ O(Ha, [["__scopeId", "data-v-69cff1d0"]]), Ua = ["id", "disabled"], Ka = { class: "select-value" }, Na = {
|
|
2698
2833
|
key: 1,
|
|
2699
2834
|
class: "select-placeholder"
|
|
2700
|
-
},
|
|
2835
|
+
}, Xa = { class: "select-options" }, qa = ["onClick", "onMouseenter"], Ga = /* @__PURE__ */ R({
|
|
2701
2836
|
inheritAttrs: !1,
|
|
2702
2837
|
__name: "select",
|
|
2703
2838
|
props: /* @__PURE__ */ ee({
|
|
@@ -2718,19 +2853,19 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
2718
2853
|
const t = e, o = ve(e, "modelValue"), l = E(!1), a = E(-1), i = E(null), c = E(null), s = E(null), { floatingStyles: r } = bt(c, s, {
|
|
2719
2854
|
placement: "bottom-start",
|
|
2720
2855
|
middleware: [
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
apply({ rects: b, elements:
|
|
2726
|
-
Object.assign(
|
|
2856
|
+
et(4),
|
|
2857
|
+
nt(),
|
|
2858
|
+
tt({ padding: 8 }),
|
|
2859
|
+
fl({
|
|
2860
|
+
apply({ rects: b, elements: L }) {
|
|
2861
|
+
Object.assign(L.floating.style, {
|
|
2727
2862
|
minWidth: `${b.reference.width}px`
|
|
2728
2863
|
});
|
|
2729
2864
|
}
|
|
2730
2865
|
})
|
|
2731
2866
|
],
|
|
2732
|
-
whileElementsMounted:
|
|
2733
|
-
}), 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,
|
|
2867
|
+
whileElementsMounted: Ze
|
|
2868
|
+
}), 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 = C(() => t.options.find((b) => d(b) === o.value)), m = (b) => d(b) === o.value, p = () => {
|
|
2734
2869
|
t.disabled || (l.value = !l.value);
|
|
2735
2870
|
}, w = () => {
|
|
2736
2871
|
l.value = !1, a.value = -1;
|
|
@@ -2741,22 +2876,22 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
2741
2876
|
}, _ = (b) => {
|
|
2742
2877
|
l.value && i.value && !i.value.contains(b.target) && w();
|
|
2743
2878
|
};
|
|
2744
|
-
return
|
|
2879
|
+
return Re(() => {
|
|
2745
2880
|
document.addEventListener("click", _);
|
|
2746
|
-
}),
|
|
2881
|
+
}), Te(() => {
|
|
2747
2882
|
document.removeEventListener("click", _);
|
|
2748
|
-
}),
|
|
2749
|
-
b &&
|
|
2883
|
+
}), N(l, (b) => {
|
|
2884
|
+
b && f.value && (a.value = t.options.findIndex((L) => m(L)));
|
|
2750
2885
|
}), n({
|
|
2751
2886
|
focus: () => c.value?.focus(),
|
|
2752
2887
|
blur: () => c.value?.blur()
|
|
2753
|
-
}), (b,
|
|
2754
|
-
const j =
|
|
2755
|
-
return
|
|
2888
|
+
}), (b, L) => {
|
|
2889
|
+
const j = X("VjIcon");
|
|
2890
|
+
return v(), g(Z, null, [
|
|
2756
2891
|
x("div", {
|
|
2757
2892
|
ref_key: "selectRef",
|
|
2758
2893
|
ref: i,
|
|
2759
|
-
class:
|
|
2894
|
+
class: I(["select", b.$attrs.class])
|
|
2760
2895
|
}, [
|
|
2761
2896
|
x("button", {
|
|
2762
2897
|
ref_key: "buttonRef",
|
|
@@ -2767,73 +2902,73 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
2767
2902
|
onClick: p,
|
|
2768
2903
|
disabled: e.disabled
|
|
2769
2904
|
}, [
|
|
2770
|
-
t.icon ? (
|
|
2905
|
+
t.icon ? (v(), F(j, {
|
|
2771
2906
|
key: 0,
|
|
2772
2907
|
icon: t.icon,
|
|
2773
|
-
size: S(
|
|
2908
|
+
size: S(G).S,
|
|
2774
2909
|
class: "select-icon-left"
|
|
2775
|
-
}, null, 8, ["icon", "size"])) :
|
|
2776
|
-
x("span",
|
|
2777
|
-
|
|
2910
|
+
}, null, 8, ["icon", "size"])) : $("", !0),
|
|
2911
|
+
x("span", Ka, [
|
|
2912
|
+
f.value ? M(b.$slots, "selected", {
|
|
2778
2913
|
key: 0,
|
|
2779
|
-
option:
|
|
2914
|
+
option: f.value
|
|
2780
2915
|
}, () => [
|
|
2781
|
-
Ue(B(u(
|
|
2782
|
-
], !0) : (
|
|
2916
|
+
Ue(B(u(f.value)), 1)
|
|
2917
|
+
], !0) : (v(), g("span", Na, B(e.placeholder), 1))
|
|
2783
2918
|
]),
|
|
2784
|
-
t.clearable &&
|
|
2919
|
+
t.clearable && f.value && !e.disabled ? (v(), F(j, {
|
|
2785
2920
|
key: 1,
|
|
2786
|
-
icon: S(
|
|
2787
|
-
size: S(
|
|
2921
|
+
icon: S(H).CLOSE,
|
|
2922
|
+
size: S(G).S,
|
|
2788
2923
|
class: "select-clear-icon",
|
|
2789
|
-
onClick:
|
|
2790
|
-
}, null, 8, ["icon", "size"])) :
|
|
2791
|
-
|
|
2792
|
-
icon: S(
|
|
2793
|
-
size: S(
|
|
2794
|
-
class:
|
|
2924
|
+
onClick: K(y, ["stop"])
|
|
2925
|
+
}, null, 8, ["icon", "size"])) : $("", !0),
|
|
2926
|
+
D(j, {
|
|
2927
|
+
icon: S(H).CHEVRON_DOWN,
|
|
2928
|
+
size: S(G).S,
|
|
2929
|
+
class: I(["select-icon-right", { open: l.value }])
|
|
2795
2930
|
}, null, 8, ["icon", "size", "class"])
|
|
2796
|
-
], 8,
|
|
2797
|
-
|
|
2798
|
-
default:
|
|
2799
|
-
l.value ? (
|
|
2931
|
+
], 8, Ua),
|
|
2932
|
+
D(De, { name: "dropdown" }, {
|
|
2933
|
+
default: U(() => [
|
|
2934
|
+
l.value ? (v(), g("div", {
|
|
2800
2935
|
key: 0,
|
|
2801
2936
|
ref_key: "floatingRef",
|
|
2802
2937
|
ref: s,
|
|
2803
|
-
style:
|
|
2938
|
+
style: q(S(r)),
|
|
2804
2939
|
class: "select-dropdown"
|
|
2805
2940
|
}, [
|
|
2806
|
-
x("div",
|
|
2807
|
-
(
|
|
2808
|
-
key: String(d(
|
|
2809
|
-
class:
|
|
2810
|
-
onClick: (V) => h(
|
|
2941
|
+
x("div", Xa, [
|
|
2942
|
+
(v(!0), g(Z, null, ge(e.options, (z, k) => (v(), g("div", {
|
|
2943
|
+
key: String(d(z)),
|
|
2944
|
+
class: I(["select-option", { selected: m(z), highlighted: a.value === k }]),
|
|
2945
|
+
onClick: (V) => h(z),
|
|
2811
2946
|
onMouseenter: (V) => a.value = k
|
|
2812
2947
|
}, [
|
|
2813
2948
|
M(b.$slots, "option", {
|
|
2814
|
-
option:
|
|
2815
|
-
selected: m(
|
|
2949
|
+
option: z,
|
|
2950
|
+
selected: m(z)
|
|
2816
2951
|
}, () => [
|
|
2817
|
-
Ue(B(u(
|
|
2952
|
+
Ue(B(u(z)), 1)
|
|
2818
2953
|
], !0)
|
|
2819
|
-
], 42,
|
|
2954
|
+
], 42, qa))), 128))
|
|
2820
2955
|
])
|
|
2821
|
-
], 4)) :
|
|
2956
|
+
], 4)) : $("", !0)
|
|
2822
2957
|
]),
|
|
2823
2958
|
_: 3
|
|
2824
2959
|
})
|
|
2825
2960
|
], 2),
|
|
2826
|
-
(
|
|
2827
|
-
l.value ? (
|
|
2961
|
+
(v(), F(Pe, { to: "body" }, [
|
|
2962
|
+
l.value ? (v(), g("div", {
|
|
2828
2963
|
key: 0,
|
|
2829
2964
|
class: "select-backdrop",
|
|
2830
2965
|
onClick: w
|
|
2831
|
-
})) :
|
|
2966
|
+
})) : $("", !0)
|
|
2832
2967
|
]))
|
|
2833
2968
|
], 64);
|
|
2834
2969
|
};
|
|
2835
2970
|
}
|
|
2836
|
-
}), mn = /* @__PURE__ */
|
|
2971
|
+
}), mn = /* @__PURE__ */ O(Ga, [["__scopeId", "data-v-fc22f0e9"]]), Ya = /* @__PURE__ */ R({
|
|
2837
2972
|
__name: "input-select",
|
|
2838
2973
|
props: {
|
|
2839
2974
|
modelValue: {},
|
|
@@ -2853,7 +2988,7 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
2853
2988
|
emits: ["update:modelValue", "input", "focus", "blur"],
|
|
2854
2989
|
setup(e, { emit: n }) {
|
|
2855
2990
|
const t = e, o = n, l = E(t.modelValue);
|
|
2856
|
-
|
|
2991
|
+
N(
|
|
2857
2992
|
() => t.modelValue,
|
|
2858
2993
|
(i) => {
|
|
2859
2994
|
l.value = i;
|
|
@@ -2862,7 +2997,7 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
2862
2997
|
const a = (i) => {
|
|
2863
2998
|
l.value = i, o("update:modelValue", i);
|
|
2864
2999
|
};
|
|
2865
|
-
return (i, c) => (
|
|
3000
|
+
return (i, c) => (v(), F(Ie, {
|
|
2866
3001
|
modelValue: l.value,
|
|
2867
3002
|
"onUpdate:modelValue": a,
|
|
2868
3003
|
label: t.label,
|
|
@@ -2877,8 +3012,8 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
2877
3012
|
labelPosition: t.labelPosition,
|
|
2878
3013
|
appearance: t.appearance
|
|
2879
3014
|
}, {
|
|
2880
|
-
control:
|
|
2881
|
-
|
|
3015
|
+
control: U(({ id: s, disabled: r, placeholder: u }) => [
|
|
3016
|
+
D(mn, {
|
|
2882
3017
|
id: s,
|
|
2883
3018
|
modelValue: l.value,
|
|
2884
3019
|
"onUpdate:modelValue": [
|
|
@@ -2894,14 +3029,14 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
2894
3029
|
}, rt({ _: 2 }, [
|
|
2895
3030
|
i.$slots.selected ? {
|
|
2896
3031
|
name: "selected",
|
|
2897
|
-
fn:
|
|
3032
|
+
fn: U(({ option: d }) => [
|
|
2898
3033
|
M(i.$slots, "selected", { option: d })
|
|
2899
3034
|
]),
|
|
2900
3035
|
key: "0"
|
|
2901
3036
|
} : void 0,
|
|
2902
3037
|
i.$slots.option ? {
|
|
2903
3038
|
name: "option",
|
|
2904
|
-
fn:
|
|
3039
|
+
fn: U(({ option: d }) => [
|
|
2905
3040
|
M(i.$slots, "option", { option: d })
|
|
2906
3041
|
]),
|
|
2907
3042
|
key: "1"
|
|
@@ -2911,7 +3046,7 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
2911
3046
|
_: 3
|
|
2912
3047
|
}, 8, ["modelValue", "label", "id", "placeholder", "disabled", "colspan", "newLine", "spanRow", "error", "helpText", "labelPosition", "appearance"]));
|
|
2913
3048
|
}
|
|
2914
|
-
}),
|
|
3049
|
+
}), Ja = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-label"], Qa = ["aria-valuemin", "aria-valuemax", "aria-valuenow"], Za = /* @__PURE__ */ R({
|
|
2915
3050
|
__name: "slider",
|
|
2916
3051
|
props: {
|
|
2917
3052
|
modelValue: { default: void 0 },
|
|
@@ -2922,17 +3057,17 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
2922
3057
|
},
|
|
2923
3058
|
emits: ["update:modelValue", "change"],
|
|
2924
3059
|
setup(e, { emit: n }) {
|
|
2925
|
-
const t = e, o = n, l = E(null), a = E(!1), i = E(!1), c = (k, V,
|
|
3060
|
+
const t = e, o = n, l = E(null), a = E(!1), i = E(!1), c = (k, V, T) => Math.min(Math.max(k, V), T), s = E(
|
|
2926
3061
|
t.range ? Array.isArray(t.modelValue) ? t.modelValue[0] : t.min : typeof t.modelValue == "number" ? t.modelValue : t.min
|
|
2927
3062
|
), r = E(t.range && Array.isArray(t.modelValue) ? t.modelValue[1] : t.max);
|
|
2928
|
-
|
|
3063
|
+
N(
|
|
2929
3064
|
() => t.modelValue,
|
|
2930
3065
|
(k) => {
|
|
2931
3066
|
t.range ? Array.isArray(k) && (s.value = c(k[0], t.min, t.max), r.value = c(k[1], t.min, t.max)) : typeof k == "number" && (s.value = c(k, t.min, t.max));
|
|
2932
3067
|
},
|
|
2933
3068
|
{ immediate: !0 }
|
|
2934
3069
|
);
|
|
2935
|
-
const u = (k) => (k - t.min) / (t.max - t.min) * 100, d = C(() => ({ left: `${u(s.value)}%` })),
|
|
3070
|
+
const u = (k) => (k - t.min) / (t.max - t.min) * 100, d = C(() => ({ left: `${u(s.value)}%` })), f = C(() => ({ left: `${u(r.value)}%` })), m = C(() => {
|
|
2936
3071
|
if (!t.range) return { width: `${u(s.value)}%`, left: "0%" };
|
|
2937
3072
|
const k = u(s.value), V = u(r.value);
|
|
2938
3073
|
return { left: `${k}%`, width: `${Math.max(0, V - k)}%` };
|
|
@@ -2954,43 +3089,43 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
2954
3089
|
p = null, w = null, a.value = !1, i.value = !1, window.removeEventListener("pointermove", _), window.removeEventListener("pointerup", y), j();
|
|
2955
3090
|
}, _ = (k) => {
|
|
2956
3091
|
if (!p || !l.value) return;
|
|
2957
|
-
const V = l.value.getBoundingClientRect(),
|
|
2958
|
-
p === "low" ? t.range ? s.value = Math.min(
|
|
3092
|
+
const V = l.value.getBoundingClientRect(), T = c(k.clientX - V.left, 0, V.width), P = t.min + T / V.width * (t.max - t.min), W = Math.round(P / t.step) * t.step;
|
|
3093
|
+
p === "low" ? t.range ? s.value = Math.min(W, r.value) : s.value = c(W, t.min, t.max) : p === "high" && (r.value = Math.max(W, s.value));
|
|
2959
3094
|
}, b = (k) => {
|
|
2960
3095
|
if (!l.value) return;
|
|
2961
|
-
const V = l.value.getBoundingClientRect(),
|
|
3096
|
+
const V = l.value.getBoundingClientRect(), T = c(k.clientX - V.left, 0, V.width), P = t.min + T / V.width * (t.max - t.min), W = Math.round(P / t.step) * t.step;
|
|
2962
3097
|
if (t.range) {
|
|
2963
|
-
const
|
|
2964
|
-
|
|
3098
|
+
const te = Math.abs(W - s.value), ue = Math.abs(W - r.value);
|
|
3099
|
+
te <= ue ? s.value = Math.min(W, r.value) : r.value = Math.max(W, s.value);
|
|
2965
3100
|
} else
|
|
2966
|
-
s.value = c(
|
|
3101
|
+
s.value = c(W, t.min, t.max);
|
|
2967
3102
|
j();
|
|
2968
|
-
},
|
|
2969
|
-
const
|
|
2970
|
-
if (
|
|
3103
|
+
}, L = (k, V) => {
|
|
3104
|
+
const T = t.step, P = V.key === "ArrowLeft" || V.key === "ArrowDown" ? -1 : V.key === "ArrowRight" || V.key === "ArrowUp" ? 1 : 0;
|
|
3105
|
+
if (P) {
|
|
2971
3106
|
if (k === "low") {
|
|
2972
|
-
const
|
|
2973
|
-
s.value =
|
|
3107
|
+
const W = c(s.value + P * T, t.min, t.range ? r.value : t.max);
|
|
3108
|
+
s.value = W, a.value = !0, setTimeout(() => a.value = !1, 800);
|
|
2974
3109
|
} else {
|
|
2975
|
-
const
|
|
2976
|
-
r.value =
|
|
3110
|
+
const W = c(r.value + P * T, t.range ? s.value : t.max, t.max);
|
|
3111
|
+
r.value = W, i.value = !0, setTimeout(() => i.value = !1, 800);
|
|
2977
3112
|
}
|
|
2978
3113
|
j();
|
|
2979
3114
|
}
|
|
2980
3115
|
}, j = () => {
|
|
2981
3116
|
t.range ? (o("update:modelValue", [s.value, r.value]), o("change", [s.value, r.value])) : (o("update:modelValue", s.value), o("change", s.value));
|
|
2982
3117
|
};
|
|
2983
|
-
|
|
3118
|
+
Te(() => {
|
|
2984
3119
|
window.removeEventListener("pointermove", _), window.removeEventListener("pointerup", y);
|
|
2985
|
-
}),
|
|
3120
|
+
}), N([() => t.min, () => t.max], () => {
|
|
2986
3121
|
s.value = c(s.value, t.min, t.max), r.value = c(r.value, t.min, t.max);
|
|
2987
3122
|
});
|
|
2988
|
-
const
|
|
3123
|
+
const z = C(() => t.range);
|
|
2989
3124
|
return me(() => {
|
|
2990
3125
|
t.modelValue === void 0 && (t.range ? o("update:modelValue", [s.value, r.value]) : o("update:modelValue", s.value));
|
|
2991
|
-
}), (k, V) => (
|
|
3126
|
+
}), (k, V) => (v(), g("div", {
|
|
2992
3127
|
class: "vj-slider",
|
|
2993
|
-
onPointerdown: V[8] || (V[8] =
|
|
3128
|
+
onPointerdown: V[8] || (V[8] = K(() => {
|
|
2994
3129
|
}, ["stop"]))
|
|
2995
3130
|
}, [
|
|
2996
3131
|
x("div", {
|
|
@@ -3001,51 +3136,51 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
3001
3136
|
}, [
|
|
3002
3137
|
x("div", {
|
|
3003
3138
|
class: "range",
|
|
3004
|
-
style:
|
|
3139
|
+
style: q(m.value)
|
|
3005
3140
|
}, null, 4),
|
|
3006
|
-
a.value ? (
|
|
3141
|
+
a.value ? (v(), g("div", {
|
|
3007
3142
|
key: 0,
|
|
3008
3143
|
class: "tooltip",
|
|
3009
|
-
style:
|
|
3010
|
-
}, B(s.value), 5)) :
|
|
3144
|
+
style: q({ left: d.value.left })
|
|
3145
|
+
}, B(s.value), 5)) : $("", !0),
|
|
3011
3146
|
x("button", {
|
|
3012
3147
|
class: "handle low",
|
|
3013
|
-
style:
|
|
3148
|
+
style: q(d.value),
|
|
3014
3149
|
"aria-valuemin": e.min,
|
|
3015
3150
|
"aria-valuemax": e.max,
|
|
3016
3151
|
"aria-valuenow": s.value,
|
|
3017
|
-
"aria-label":
|
|
3018
|
-
onPointerdown: V[0] || (V[0] =
|
|
3019
|
-
onFocus: V[1] || (V[1] = (
|
|
3020
|
-
onBlur: V[2] || (V[2] = (
|
|
3021
|
-
onKeydown: V[3] || (V[3] =
|
|
3152
|
+
"aria-label": z.value ? "Lower value" : "Value",
|
|
3153
|
+
onPointerdown: V[0] || (V[0] = K((T) => h("low", T), ["prevent"])),
|
|
3154
|
+
onFocus: V[1] || (V[1] = (T) => a.value = !0),
|
|
3155
|
+
onBlur: V[2] || (V[2] = (T) => a.value = !1),
|
|
3156
|
+
onKeydown: V[3] || (V[3] = K((T) => L("low", T), ["stop", "prevent"])),
|
|
3022
3157
|
role: "slider",
|
|
3023
3158
|
tabindex: "0"
|
|
3024
|
-
}, null, 44,
|
|
3025
|
-
|
|
3159
|
+
}, null, 44, Ja),
|
|
3160
|
+
z.value && i.value ? (v(), g("div", {
|
|
3026
3161
|
key: 1,
|
|
3027
3162
|
class: "tooltip",
|
|
3028
|
-
style:
|
|
3029
|
-
}, B(r.value), 5)) :
|
|
3030
|
-
|
|
3163
|
+
style: q({ left: f.value.left })
|
|
3164
|
+
}, B(r.value), 5)) : $("", !0),
|
|
3165
|
+
z.value ? (v(), g("button", {
|
|
3031
3166
|
key: 2,
|
|
3032
3167
|
class: "handle high",
|
|
3033
|
-
style:
|
|
3168
|
+
style: q(f.value),
|
|
3034
3169
|
"aria-valuemin": e.min,
|
|
3035
3170
|
"aria-valuemax": e.max,
|
|
3036
3171
|
"aria-valuenow": r.value,
|
|
3037
3172
|
"aria-label": "Upper value",
|
|
3038
|
-
onPointerdown: V[4] || (V[4] =
|
|
3039
|
-
onFocus: V[5] || (V[5] = (
|
|
3040
|
-
onBlur: V[6] || (V[6] = (
|
|
3041
|
-
onKeydown: V[7] || (V[7] =
|
|
3173
|
+
onPointerdown: V[4] || (V[4] = K((T) => h("high", T), ["prevent"])),
|
|
3174
|
+
onFocus: V[5] || (V[5] = (T) => i.value = !0),
|
|
3175
|
+
onBlur: V[6] || (V[6] = (T) => i.value = !1),
|
|
3176
|
+
onKeydown: V[7] || (V[7] = K((T) => L("high", T), ["stop", "prevent"])),
|
|
3042
3177
|
role: "slider",
|
|
3043
3178
|
tabindex: "0"
|
|
3044
|
-
}, null, 44,
|
|
3179
|
+
}, null, 44, Qa)) : $("", !0)
|
|
3045
3180
|
], 512)
|
|
3046
3181
|
], 32));
|
|
3047
3182
|
}
|
|
3048
|
-
}),
|
|
3183
|
+
}), ei = /* @__PURE__ */ O(Za, [["__scopeId", "data-v-d47c7475"]]), ti = ["onFocusin", "onFocusout"], ni = /* @__PURE__ */ R({
|
|
3049
3184
|
__name: "input-slider",
|
|
3050
3185
|
props: {
|
|
3051
3186
|
modelValue: {},
|
|
@@ -3070,7 +3205,7 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
3070
3205
|
const s = typeof c == "number" ? c : Number(c ?? 0);
|
|
3071
3206
|
a.value = Number.isNaN(s) ? 0 : s, o("update:modelValue", a.value), o("input", a.value);
|
|
3072
3207
|
};
|
|
3073
|
-
return (c, s) => (
|
|
3208
|
+
return (c, s) => (v(), F(Ie, {
|
|
3074
3209
|
modelValue: a.value,
|
|
3075
3210
|
"onUpdate:modelValue": i,
|
|
3076
3211
|
label: t.label,
|
|
@@ -3082,13 +3217,13 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
3082
3217
|
spanRow: t.spanRow,
|
|
3083
3218
|
error: t.error
|
|
3084
3219
|
}, {
|
|
3085
|
-
control:
|
|
3220
|
+
control: U(({ id: r, disabled: u, placeholder: d, onFocus: f, onBlur: m }) => [
|
|
3086
3221
|
x("div", {
|
|
3087
3222
|
class: "input-slider__control",
|
|
3088
|
-
onFocusin:
|
|
3223
|
+
onFocusin: f,
|
|
3089
3224
|
onFocusout: m
|
|
3090
3225
|
}, [
|
|
3091
|
-
|
|
3226
|
+
D(ei, {
|
|
3092
3227
|
id: r,
|
|
3093
3228
|
modelValue: a.value,
|
|
3094
3229
|
"onUpdate:modelValue": s[0] || (s[0] = (p) => a.value = p),
|
|
@@ -3098,12 +3233,12 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
3098
3233
|
range: !1,
|
|
3099
3234
|
disabled: u
|
|
3100
3235
|
}, null, 8, ["id", "modelValue", "min", "max", "step", "disabled"])
|
|
3101
|
-
], 40,
|
|
3236
|
+
], 40, ti)
|
|
3102
3237
|
]),
|
|
3103
3238
|
_: 1
|
|
3104
3239
|
}, 8, ["modelValue", "label", "id", "disabled", "colspan", "newLine", "spanRow", "error"]));
|
|
3105
3240
|
}
|
|
3106
|
-
}),
|
|
3241
|
+
}), oi = /* @__PURE__ */ O(ni, [["__scopeId", "data-v-051e6d17"]]), li = { class: "textarea" }, ai = ["value", "placeholder", "disabled", "rows"], ii = /* @__PURE__ */ R({
|
|
3107
3242
|
__name: "textarea",
|
|
3108
3243
|
props: /* @__PURE__ */ ee({
|
|
3109
3244
|
icon: {},
|
|
@@ -3127,14 +3262,14 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
3127
3262
|
t("blur", r);
|
|
3128
3263
|
}, s = C(() => !o.value);
|
|
3129
3264
|
return (r, u) => {
|
|
3130
|
-
const d =
|
|
3131
|
-
return
|
|
3132
|
-
e.icon ? (
|
|
3265
|
+
const d = X("VjIcon");
|
|
3266
|
+
return v(), g("div", li, [
|
|
3267
|
+
e.icon ? (v(), F(d, {
|
|
3133
3268
|
key: 0,
|
|
3134
3269
|
icon: e.icon,
|
|
3135
|
-
size: S(
|
|
3270
|
+
size: S(G).S,
|
|
3136
3271
|
class: "textarea-icon"
|
|
3137
|
-
}, null, 8, ["icon", "size"])) :
|
|
3272
|
+
}, null, 8, ["icon", "size"])) : $("", !0),
|
|
3138
3273
|
x("textarea", {
|
|
3139
3274
|
value: o.value,
|
|
3140
3275
|
onInput: l,
|
|
@@ -3143,18 +3278,18 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
3143
3278
|
placeholder: e.placeholder,
|
|
3144
3279
|
disabled: e.disabled,
|
|
3145
3280
|
rows: e.rows
|
|
3146
|
-
}, null, 40,
|
|
3147
|
-
e.clearable && !e.disabled ? (
|
|
3281
|
+
}, null, 40, ai),
|
|
3282
|
+
e.clearable && !e.disabled ? (v(), F(d, {
|
|
3148
3283
|
key: 1,
|
|
3149
|
-
class:
|
|
3150
|
-
icon: S(
|
|
3151
|
-
size: S(
|
|
3284
|
+
class: I(["clear-icon", { invisible: s.value }]),
|
|
3285
|
+
icon: S(H).CLOSE,
|
|
3286
|
+
size: S(G).S,
|
|
3152
3287
|
onClick: a
|
|
3153
|
-
}, null, 8, ["class", "icon", "size"])) :
|
|
3288
|
+
}, null, 8, ["class", "icon", "size"])) : $("", !0)
|
|
3154
3289
|
]);
|
|
3155
3290
|
};
|
|
3156
3291
|
}
|
|
3157
|
-
}), pn = /* @__PURE__ */
|
|
3292
|
+
}), pn = /* @__PURE__ */ O(ii, [["__scopeId", "data-v-2ea43716"]]), si = /* @__PURE__ */ R({
|
|
3158
3293
|
__name: "input-text-area",
|
|
3159
3294
|
props: {
|
|
3160
3295
|
modelValue: {},
|
|
@@ -3179,7 +3314,7 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
3179
3314
|
const u = t.modelValue;
|
|
3180
3315
|
return u == null ? "" : String(u);
|
|
3181
3316
|
});
|
|
3182
|
-
return (u, d) => (
|
|
3317
|
+
return (u, d) => (v(), F(Ie, {
|
|
3183
3318
|
modelValue: t.modelValue,
|
|
3184
3319
|
"onUpdate:modelValue": l,
|
|
3185
3320
|
onInput: a,
|
|
@@ -3197,9 +3332,9 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
3197
3332
|
helpText: t.helpText,
|
|
3198
3333
|
appearance: t.appearance
|
|
3199
3334
|
}, {
|
|
3200
|
-
control:
|
|
3201
|
-
|
|
3202
|
-
id:
|
|
3335
|
+
control: U(({ id: f, disabled: m, placeholder: p, onFocus: w, onBlur: h }) => [
|
|
3336
|
+
D(pn, {
|
|
3337
|
+
id: f,
|
|
3203
3338
|
modelValue: r.value,
|
|
3204
3339
|
"onUpdate:modelValue": s,
|
|
3205
3340
|
onFocus: (y) => {
|
|
@@ -3217,7 +3352,7 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
3217
3352
|
_: 1
|
|
3218
3353
|
}, 8, ["modelValue", "label", "id", "placeholder", "disabled", "colspan", "newLine", "spanRow", "labelPosition", "error", "helpText", "appearance"]));
|
|
3219
3354
|
}
|
|
3220
|
-
}),
|
|
3355
|
+
}), ri = { class: "input" }, ci = ["value", "type", "placeholder", "disabled"], ui = /* @__PURE__ */ R({
|
|
3221
3356
|
__name: "input",
|
|
3222
3357
|
props: /* @__PURE__ */ ee({
|
|
3223
3358
|
icon: {},
|
|
@@ -3241,13 +3376,13 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
3241
3376
|
t("blur", r);
|
|
3242
3377
|
}, s = C(() => !o.value);
|
|
3243
3378
|
return (r, u) => {
|
|
3244
|
-
const d =
|
|
3245
|
-
return
|
|
3246
|
-
e.icon ? (
|
|
3379
|
+
const d = X("VjIcon");
|
|
3380
|
+
return v(), g("div", ri, [
|
|
3381
|
+
e.icon ? (v(), F(d, {
|
|
3247
3382
|
key: 0,
|
|
3248
3383
|
icon: e.icon,
|
|
3249
|
-
size: S(
|
|
3250
|
-
}, null, 8, ["icon", "size"])) :
|
|
3384
|
+
size: S(G).S
|
|
3385
|
+
}, null, 8, ["icon", "size"])) : $("", !0),
|
|
3251
3386
|
x("input", {
|
|
3252
3387
|
value: o.value,
|
|
3253
3388
|
onInput: l,
|
|
@@ -3256,18 +3391,18 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
3256
3391
|
type: e.type,
|
|
3257
3392
|
placeholder: e.placeholder,
|
|
3258
3393
|
disabled: e.disabled
|
|
3259
|
-
}, null, 40,
|
|
3260
|
-
e.clearable && !e.disabled ? (
|
|
3394
|
+
}, null, 40, ci),
|
|
3395
|
+
e.clearable && !e.disabled ? (v(), F(d, {
|
|
3261
3396
|
key: 1,
|
|
3262
|
-
class:
|
|
3263
|
-
icon: S(
|
|
3264
|
-
size: S(
|
|
3397
|
+
class: I(["clear-icon", { invisible: s.value }]),
|
|
3398
|
+
icon: S(H).CLOSE,
|
|
3399
|
+
size: S(G).S,
|
|
3265
3400
|
onClick: a
|
|
3266
|
-
}, null, 8, ["class", "icon", "size"])) :
|
|
3401
|
+
}, null, 8, ["class", "icon", "size"])) : $("", !0)
|
|
3267
3402
|
]);
|
|
3268
3403
|
};
|
|
3269
3404
|
}
|
|
3270
|
-
}), hn = /* @__PURE__ */
|
|
3405
|
+
}), hn = /* @__PURE__ */ O(ui, [["__scopeId", "data-v-3187d49c"]]), di = /* @__PURE__ */ R({
|
|
3271
3406
|
__name: "input-text",
|
|
3272
3407
|
props: {
|
|
3273
3408
|
modelValue: {},
|
|
@@ -3289,7 +3424,7 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
3289
3424
|
const t = e, o = n, l = (r) => o("update:modelValue", r), a = (r) => o("input", r), i = (r) => o("focus", r), c = (r) => o("blur", r), s = (r) => {
|
|
3290
3425
|
l(r ?? "");
|
|
3291
3426
|
};
|
|
3292
|
-
return (r, u) => (
|
|
3427
|
+
return (r, u) => (v(), F(Ie, {
|
|
3293
3428
|
modelValue: e.modelValue,
|
|
3294
3429
|
"onUpdate:modelValue": l,
|
|
3295
3430
|
onInput: a,
|
|
@@ -3307,8 +3442,8 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
3307
3442
|
labelPosition: e.labelPosition,
|
|
3308
3443
|
appearance: e.appearance
|
|
3309
3444
|
}, {
|
|
3310
|
-
control:
|
|
3311
|
-
|
|
3445
|
+
control: U(({ id: d, disabled: f, placeholder: m, onFocus: p, onBlur: w }) => [
|
|
3446
|
+
D(hn, {
|
|
3312
3447
|
id: d,
|
|
3313
3448
|
modelValue: e.modelValue,
|
|
3314
3449
|
type: e.type,
|
|
@@ -3320,17 +3455,17 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
3320
3455
|
w(h), c(h);
|
|
3321
3456
|
},
|
|
3322
3457
|
placeholder: m,
|
|
3323
|
-
disabled:
|
|
3458
|
+
disabled: f,
|
|
3324
3459
|
clearable: ""
|
|
3325
3460
|
}, null, 8, ["id", "modelValue", "type", "onFocus", "onBlur", "placeholder", "disabled"])
|
|
3326
3461
|
]),
|
|
3327
3462
|
_: 1
|
|
3328
3463
|
}, 8, ["modelValue", "label", "id", "placeholder", "disabled", "colspan", "newLine", "spanRow", "error", "helpText", "labelPosition", "appearance"]));
|
|
3329
3464
|
}
|
|
3330
|
-
}),
|
|
3465
|
+
}), fi = { class: "shell-navigation-item" }, vi = { class: "shell-navigation-item-label" }, mi = {
|
|
3331
3466
|
key: 1,
|
|
3332
3467
|
class: "shell-navigation-item-link"
|
|
3333
|
-
},
|
|
3468
|
+
}, pi = ["aria-expanded"], hi = { class: "shell-navigation-item-label" }, gi = /* @__PURE__ */ R({
|
|
3334
3469
|
__name: "shell-navigation-item",
|
|
3335
3470
|
props: {
|
|
3336
3471
|
label: {},
|
|
@@ -3338,120 +3473,120 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
3338
3473
|
to: {}
|
|
3339
3474
|
},
|
|
3340
3475
|
setup(e) {
|
|
3341
|
-
const n =
|
|
3476
|
+
const n = Ut(), t = C(() => !!n.default), o = E(!1), l = E(null), a = E(null), { floatingStyles: i } = bt(l, a, {
|
|
3342
3477
|
placement: "right-start",
|
|
3343
|
-
middleware: [
|
|
3344
|
-
whileElementsMounted:
|
|
3345
|
-
}), c = (
|
|
3478
|
+
middleware: [et(8), nt(), tt({ padding: 8 })],
|
|
3479
|
+
whileElementsMounted: Ze
|
|
3480
|
+
}), c = (f) => {
|
|
3346
3481
|
t.value && (o.value = !o.value);
|
|
3347
3482
|
}, s = () => {
|
|
3348
3483
|
o.value = !1;
|
|
3349
|
-
}, r = (
|
|
3484
|
+
}, r = (f) => {
|
|
3350
3485
|
s();
|
|
3351
|
-
}, u = (
|
|
3352
|
-
(
|
|
3353
|
-
}, d = (
|
|
3354
|
-
const m =
|
|
3486
|
+
}, u = (f) => {
|
|
3487
|
+
(f.key === "Escape" || f.key === "Esc") && s();
|
|
3488
|
+
}, d = (f) => {
|
|
3489
|
+
const m = f.target;
|
|
3355
3490
|
m && (l.value && l.value.contains(m) || a.value && a.value.contains(m) || s());
|
|
3356
3491
|
};
|
|
3357
|
-
return
|
|
3358
|
-
|
|
3359
|
-
}),
|
|
3492
|
+
return N(o, (f) => {
|
|
3493
|
+
f ? (window.addEventListener("keydown", u), window.addEventListener("pointerdown", d)) : (window.removeEventListener("keydown", u), window.removeEventListener("pointerdown", d));
|
|
3494
|
+
}), Te(() => {
|
|
3360
3495
|
window.removeEventListener("keydown", u), window.removeEventListener("pointerdown", d);
|
|
3361
|
-
}), (
|
|
3362
|
-
const p =
|
|
3363
|
-
return
|
|
3364
|
-
e.to ? (
|
|
3496
|
+
}), (f, m) => {
|
|
3497
|
+
const p = X("VjIcon"), w = X("RouterLink"), h = X("VjMenu");
|
|
3498
|
+
return v(), g("li", fi, [
|
|
3499
|
+
e.to ? (v(), F(w, {
|
|
3365
3500
|
key: 0,
|
|
3366
3501
|
to: e.to,
|
|
3367
3502
|
class: "shell-navigation-item-link"
|
|
3368
3503
|
}, {
|
|
3369
|
-
default:
|
|
3370
|
-
|
|
3504
|
+
default: U(() => [
|
|
3505
|
+
D(p, {
|
|
3371
3506
|
icon: e.icon,
|
|
3372
3507
|
class: "shell-navigation-item-icon"
|
|
3373
3508
|
}, null, 8, ["icon"]),
|
|
3374
|
-
x("label",
|
|
3509
|
+
x("label", vi, B(e.label), 1)
|
|
3375
3510
|
]),
|
|
3376
3511
|
_: 1
|
|
3377
|
-
}, 8, ["to"])) : (
|
|
3512
|
+
}, 8, ["to"])) : (v(), g("div", mi, [
|
|
3378
3513
|
x("button", {
|
|
3379
3514
|
ref_key: "buttonRef",
|
|
3380
3515
|
ref: l,
|
|
3381
3516
|
class: "shell-navigation-item-button",
|
|
3382
|
-
onClick:
|
|
3517
|
+
onClick: K(c, ["stop"]),
|
|
3383
3518
|
"aria-expanded": o.value,
|
|
3384
3519
|
type: "button"
|
|
3385
3520
|
}, [
|
|
3386
|
-
|
|
3521
|
+
D(p, {
|
|
3387
3522
|
icon: e.icon,
|
|
3388
3523
|
class: "shell-navigation-item-icon"
|
|
3389
3524
|
}, null, 8, ["icon"]),
|
|
3390
|
-
x("label",
|
|
3391
|
-
], 8,
|
|
3392
|
-
|
|
3393
|
-
default:
|
|
3394
|
-
o.value ? (
|
|
3525
|
+
x("label", hi, B(e.label), 1)
|
|
3526
|
+
], 8, pi),
|
|
3527
|
+
D(De, { name: "menu" }, {
|
|
3528
|
+
default: U(() => [
|
|
3529
|
+
o.value ? (v(), F(h, {
|
|
3395
3530
|
key: 0,
|
|
3396
3531
|
ref_key: "floatingRef",
|
|
3397
3532
|
ref: a,
|
|
3398
|
-
style:
|
|
3533
|
+
style: q(S(i)),
|
|
3399
3534
|
class: "shell-navigation-item-menu",
|
|
3400
3535
|
onClose: s,
|
|
3401
|
-
onClick:
|
|
3536
|
+
onClick: K(r, ["stop"])
|
|
3402
3537
|
}, {
|
|
3403
|
-
default:
|
|
3404
|
-
M(
|
|
3538
|
+
default: U(() => [
|
|
3539
|
+
M(f.$slots, "default", {}, void 0, !0)
|
|
3405
3540
|
]),
|
|
3406
3541
|
_: 3
|
|
3407
|
-
}, 8, ["style"])) :
|
|
3542
|
+
}, 8, ["style"])) : $("", !0)
|
|
3408
3543
|
]),
|
|
3409
3544
|
_: 3
|
|
3410
3545
|
}),
|
|
3411
|
-
(
|
|
3412
|
-
o.value ? (
|
|
3546
|
+
(v(), F(Pe, { to: "body" }, [
|
|
3547
|
+
o.value ? (v(), g("div", {
|
|
3413
3548
|
key: 0,
|
|
3414
3549
|
class: "menu-backdrop",
|
|
3415
3550
|
onClick: s
|
|
3416
|
-
})) :
|
|
3551
|
+
})) : $("", !0)
|
|
3417
3552
|
]))
|
|
3418
3553
|
]))
|
|
3419
3554
|
]);
|
|
3420
3555
|
};
|
|
3421
3556
|
}
|
|
3422
|
-
}),
|
|
3557
|
+
}), bi = /* @__PURE__ */ O(gi, [["__scopeId", "data-v-3a50d1c2"]]), yi = { class: "navigation-top" }, wi = {
|
|
3423
3558
|
key: 0,
|
|
3424
3559
|
class: "navigation-bottom"
|
|
3425
|
-
},
|
|
3560
|
+
}, _i = /* @__PURE__ */ R({
|
|
3426
3561
|
__name: "shell-navigation",
|
|
3427
3562
|
setup(e) {
|
|
3428
|
-
const n = ut(
|
|
3563
|
+
const n = ut(Ai, Di()), t = C(() => n.showLabels);
|
|
3429
3564
|
return (o, l) => {
|
|
3430
|
-
const a =
|
|
3431
|
-
return
|
|
3432
|
-
class:
|
|
3565
|
+
const a = X("VjShellNavigationItem");
|
|
3566
|
+
return v(), g("nav", {
|
|
3567
|
+
class: I(["shell-navigation", { "with-labels": t.value }])
|
|
3433
3568
|
}, [
|
|
3434
|
-
x("ul",
|
|
3435
|
-
S(n).hasParent && S(n).backRoute.value ? (
|
|
3569
|
+
x("ul", yi, [
|
|
3570
|
+
S(n).hasParent && S(n).backRoute.value ? (v(), F(a, {
|
|
3436
3571
|
key: 0,
|
|
3437
3572
|
to: S(n).backRoute.value,
|
|
3438
3573
|
label: "BACK",
|
|
3439
|
-
icon: S(
|
|
3440
|
-
}, null, 8, ["to", "icon"])) :
|
|
3441
|
-
(
|
|
3574
|
+
icon: S(H).HOME
|
|
3575
|
+
}, null, 8, ["to", "icon"])) : $("", !0),
|
|
3576
|
+
(v(!0), g(Z, null, ge(S(n).childRoutes.value, (i) => (v(), F(a, {
|
|
3442
3577
|
key: i.name,
|
|
3443
3578
|
to: { name: i.name },
|
|
3444
3579
|
label: i.meta.label,
|
|
3445
|
-
icon: i.meta.icon ?? S(
|
|
3580
|
+
icon: i.meta.icon ?? S(H).HOME
|
|
3446
3581
|
}, null, 8, ["to", "label", "icon"]))), 128))
|
|
3447
3582
|
]),
|
|
3448
|
-
o.$slots.fixed ? (
|
|
3583
|
+
o.$slots.fixed ? (v(), g("ul", wi, [
|
|
3449
3584
|
M(o.$slots, "fixed", {}, void 0, !0)
|
|
3450
|
-
])) :
|
|
3585
|
+
])) : $("", !0)
|
|
3451
3586
|
], 2);
|
|
3452
3587
|
};
|
|
3453
3588
|
}
|
|
3454
|
-
}), gn = /* @__PURE__ */
|
|
3589
|
+
}), gn = /* @__PURE__ */ O(_i, [["__scopeId", "data-v-306cfc22"]]), xi = { class: "shell" }, ki = { class: "shell-title" }, Vi = ["src"], Ci = { class: "header-actions" }, Ei = /* @__PURE__ */ R({
|
|
3455
3590
|
__name: "shell",
|
|
3456
3591
|
props: {
|
|
3457
3592
|
title: {},
|
|
@@ -3459,55 +3594,55 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
3459
3594
|
showNavigation: { type: Boolean }
|
|
3460
3595
|
},
|
|
3461
3596
|
setup(e) {
|
|
3462
|
-
const n =
|
|
3597
|
+
const n = Fi(), t = ot(n, "asideComponent"), o = ot(n, "hasAside"), l = ot(n, "asideData"), a = C(() => {
|
|
3463
3598
|
const i = l.value;
|
|
3464
3599
|
return i && typeof i == "object" ? i : {};
|
|
3465
3600
|
});
|
|
3466
3601
|
return (i, c) => {
|
|
3467
|
-
const s =
|
|
3468
|
-
return
|
|
3602
|
+
const s = X("router-view");
|
|
3603
|
+
return v(), g("div", xi, [
|
|
3469
3604
|
x("header", null, [
|
|
3470
|
-
x("span",
|
|
3471
|
-
e.icon ? (
|
|
3605
|
+
x("span", ki, [
|
|
3606
|
+
e.icon ? (v(), g("img", {
|
|
3472
3607
|
key: 0,
|
|
3473
3608
|
src: e.icon,
|
|
3474
3609
|
alt: "Shell Icon"
|
|
3475
|
-
}, null, 8,
|
|
3610
|
+
}, null, 8, Vi)) : $("", !0),
|
|
3476
3611
|
x("h1", null, B(e.title), 1)
|
|
3477
3612
|
]),
|
|
3478
|
-
x("div",
|
|
3613
|
+
x("div", Ci, [
|
|
3479
3614
|
M(i.$slots, "header-actions", {}, void 0, !0)
|
|
3480
3615
|
])
|
|
3481
3616
|
]),
|
|
3482
3617
|
x("div", {
|
|
3483
|
-
class:
|
|
3618
|
+
class: I(["shell-content", { "with-navigation": e.showNavigation }])
|
|
3484
3619
|
}, [
|
|
3485
|
-
e.showNavigation ? (
|
|
3620
|
+
e.showNavigation ? (v(), F(S(gn), { key: 0 }, rt({ _: 2 }, [
|
|
3486
3621
|
i.$slots?.["navigation-fixed"] ? {
|
|
3487
3622
|
name: "fixed",
|
|
3488
|
-
fn:
|
|
3623
|
+
fn: U(() => [
|
|
3489
3624
|
M(i.$slots, "navigation-fixed", {}, void 0, !0)
|
|
3490
3625
|
]),
|
|
3491
3626
|
key: "0"
|
|
3492
3627
|
} : void 0
|
|
3493
|
-
]), 1024)) :
|
|
3628
|
+
]), 1024)) : $("", !0),
|
|
3494
3629
|
x("main", null, [
|
|
3495
3630
|
M(i.$slots, "default", {}, () => [
|
|
3496
|
-
|
|
3631
|
+
D(s)
|
|
3497
3632
|
], !0)
|
|
3498
3633
|
]),
|
|
3499
3634
|
x("aside", {
|
|
3500
|
-
class:
|
|
3635
|
+
class: I({ "aside-visible": o.value })
|
|
3501
3636
|
}, [
|
|
3502
|
-
(
|
|
3637
|
+
(v(), F(Nt(t.value), Cn(En(a.value)), null, 16))
|
|
3503
3638
|
], 2)
|
|
3504
3639
|
], 2),
|
|
3505
3640
|
c[0] || (c[0] = x("footer", null, null, -1))
|
|
3506
3641
|
]);
|
|
3507
3642
|
};
|
|
3508
3643
|
}
|
|
3509
|
-
}),
|
|
3510
|
-
class
|
|
3644
|
+
}), Li = /* @__PURE__ */ O(Ei, [["__scopeId", "data-v-4dfd0097"]]);
|
|
3645
|
+
class $i {
|
|
3511
3646
|
notifications = E([]);
|
|
3512
3647
|
notificationIdCounter = 0;
|
|
3513
3648
|
/**
|
|
@@ -3573,15 +3708,15 @@ class yi {
|
|
|
3573
3708
|
this.notifications.value = [];
|
|
3574
3709
|
}
|
|
3575
3710
|
}
|
|
3576
|
-
const
|
|
3711
|
+
const Wt = new $i(), Si = { class: "notifications" }, Ri = /* @__PURE__ */ R({
|
|
3577
3712
|
__name: "notifications",
|
|
3578
3713
|
setup(e) {
|
|
3579
|
-
const n =
|
|
3580
|
-
return (o, l) => (
|
|
3581
|
-
x("div",
|
|
3582
|
-
|
|
3583
|
-
default:
|
|
3584
|
-
(
|
|
3714
|
+
const n = Wt.getNotifications(), t = (o) => Wt.remove(o);
|
|
3715
|
+
return (o, l) => (v(), F(Pe, { to: "body" }, [
|
|
3716
|
+
x("div", Si, [
|
|
3717
|
+
D(Ln, { name: "notification" }, {
|
|
3718
|
+
default: U(() => [
|
|
3719
|
+
(v(!0), g(Z, null, ge(S(n), (a) => (v(), F(wt, {
|
|
3585
3720
|
key: a.id,
|
|
3586
3721
|
type: a.type,
|
|
3587
3722
|
title: a.title,
|
|
@@ -3594,14 +3729,14 @@ const Ut = new yi(), wi = { class: "notifications" }, _i = /* @__PURE__ */ T({
|
|
|
3594
3729
|
])
|
|
3595
3730
|
]));
|
|
3596
3731
|
}
|
|
3597
|
-
}),
|
|
3598
|
-
function
|
|
3732
|
+
}), Ti = /* @__PURE__ */ O(Ri, [["__scopeId", "data-v-543c499f"]]), Ai = "navigationProvider";
|
|
3733
|
+
function Oi(e) {
|
|
3599
3734
|
return !!e.meta && "icon" in e.meta && "label" in e.meta;
|
|
3600
3735
|
}
|
|
3601
|
-
const
|
|
3602
|
-
const e =
|
|
3736
|
+
const Di = () => {
|
|
3737
|
+
const e = Tn(), n = An(), t = !0, o = C(() => {
|
|
3603
3738
|
const u = e.getRoutes();
|
|
3604
|
-
return u.filter((d) => d.path !== "/" && !u.some((
|
|
3739
|
+
return u.filter((d) => d.path !== "/" && !u.some((f) => f.children?.some((m) => m.name === d.name)));
|
|
3605
3740
|
}), l = C(() => {
|
|
3606
3741
|
const u = n.matched;
|
|
3607
3742
|
return u.length ? u[u.length - 1] : null;
|
|
@@ -3610,11 +3745,11 @@ const Ci = () => {
|
|
|
3610
3745
|
return u.length > 1 ? u[u.length - 2] : null;
|
|
3611
3746
|
}), i = C(() => !!(l.value?.children?.length || a.value)), c = C(() => l.value?.children?.length ? l.value : a.value?.children?.length ? a.value : null), s = C(() => {
|
|
3612
3747
|
if (!c.value) return null;
|
|
3613
|
-
const d = e.getRoutes().find((
|
|
3748
|
+
const d = e.getRoutes().find((f) => f.children?.some((m) => m.name === c.value.name));
|
|
3614
3749
|
return d ? { name: d.name } : { path: "/" };
|
|
3615
3750
|
}), r = C(() => {
|
|
3616
3751
|
let u = [];
|
|
3617
|
-
return n.path === "/" ? u = o.value : l.value?.children?.length ? u = l.value.children : a.value?.children?.length ? u = a.value.children : u = o.value, u.filter(
|
|
3752
|
+
return n.path === "/" ? u = o.value : l.value?.children?.length ? u = l.value.children : a.value?.children?.length ? u = a.value.children : u = o.value, u.filter(Oi);
|
|
3618
3753
|
});
|
|
3619
3754
|
return {
|
|
3620
3755
|
hasParent: i,
|
|
@@ -3622,8 +3757,8 @@ const Ci = () => {
|
|
|
3622
3757
|
childRoutes: r,
|
|
3623
3758
|
showLabels: t
|
|
3624
3759
|
};
|
|
3625
|
-
},
|
|
3626
|
-
const o =
|
|
3760
|
+
}, Yi = (e, n = !0, t = void 0) => {
|
|
3761
|
+
const o = $n(e) ? e : E(e), l = !!t, a = E(t || null);
|
|
3627
3762
|
return {
|
|
3628
3763
|
hasParent: l,
|
|
3629
3764
|
backRoute: a,
|
|
@@ -3634,9 +3769,9 @@ const Ci = () => {
|
|
|
3634
3769
|
let Le = [];
|
|
3635
3770
|
const bn = (e) => (Le.push(e), () => {
|
|
3636
3771
|
Le = Le.filter((n) => n !== e);
|
|
3637
|
-
}),
|
|
3772
|
+
}), ji = (e, n) => (Le = [], xt.value = e, kt.value = n ?? null, _t.value = !0, {
|
|
3638
3773
|
onClose: (t) => bn(t)
|
|
3639
|
-
}),
|
|
3774
|
+
}), Bi = (e) => {
|
|
3640
3775
|
try {
|
|
3641
3776
|
Le.forEach((n) => {
|
|
3642
3777
|
try {
|
|
@@ -3646,18 +3781,18 @@ const bn = (e) => (Le.push(e), () => {
|
|
|
3646
3781
|
}
|
|
3647
3782
|
});
|
|
3648
3783
|
} finally {
|
|
3649
|
-
_t.value = !1, setTimeout(
|
|
3784
|
+
_t.value = !1, setTimeout(Pi, 1e3);
|
|
3650
3785
|
}
|
|
3651
|
-
},
|
|
3786
|
+
}, Pi = () => {
|
|
3652
3787
|
Le = [], xt.value = null, kt.value = null;
|
|
3653
|
-
},
|
|
3788
|
+
}, Mi = {
|
|
3654
3789
|
asideComponent: xt,
|
|
3655
3790
|
asideData: kt,
|
|
3656
|
-
showAside:
|
|
3657
|
-
closeAside:
|
|
3791
|
+
showAside: ji,
|
|
3792
|
+
closeAside: Bi,
|
|
3658
3793
|
onAsideClose: bn,
|
|
3659
3794
|
hasAside: _t
|
|
3660
|
-
},
|
|
3795
|
+
}, Fi = () => Mi, Ji = (e, n) => {
|
|
3661
3796
|
let t = null;
|
|
3662
3797
|
return (...l) => {
|
|
3663
3798
|
t && clearTimeout(t), t = setTimeout(() => {
|
|
@@ -3665,7 +3800,7 @@ const bn = (e) => (Le.push(e), () => {
|
|
|
3665
3800
|
}, n);
|
|
3666
3801
|
};
|
|
3667
3802
|
};
|
|
3668
|
-
class
|
|
3803
|
+
class zi {
|
|
3669
3804
|
containerElement = null;
|
|
3670
3805
|
apps = [];
|
|
3671
3806
|
mainApp = null;
|
|
@@ -3688,9 +3823,9 @@ class Ti {
|
|
|
3688
3823
|
const s = this.apps.find((r) => r.element === l);
|
|
3689
3824
|
s && (s.app.unmount(), this.apps = this.apps.filter((r) => r !== s)), l.remove();
|
|
3690
3825
|
}, 300));
|
|
3691
|
-
}, c =
|
|
3826
|
+
}, c = Sn({
|
|
3692
3827
|
setup() {
|
|
3693
|
-
return () =>
|
|
3828
|
+
return () => Rn(ft, {
|
|
3694
3829
|
modelValue: !0,
|
|
3695
3830
|
title: n.title,
|
|
3696
3831
|
message: n.message,
|
|
@@ -3745,17 +3880,17 @@ class Ti {
|
|
|
3745
3880
|
}), this.apps = [];
|
|
3746
3881
|
}
|
|
3747
3882
|
}
|
|
3748
|
-
const
|
|
3749
|
-
function
|
|
3750
|
-
return
|
|
3883
|
+
const Ii = new zi();
|
|
3884
|
+
function Qi() {
|
|
3885
|
+
return Ii;
|
|
3751
3886
|
}
|
|
3752
|
-
function
|
|
3887
|
+
function Zi() {
|
|
3753
3888
|
const e = ut(Yt, null);
|
|
3754
3889
|
if (!e)
|
|
3755
3890
|
throw new Error("useDialogController must be used inside a dialog component.");
|
|
3756
3891
|
return e;
|
|
3757
3892
|
}
|
|
3758
|
-
const
|
|
3893
|
+
const es = () => {
|
|
3759
3894
|
const e = E(!1), n = E(null), t = () => {
|
|
3760
3895
|
n.value = null;
|
|
3761
3896
|
};
|
|
@@ -3795,72 +3930,73 @@ const Ni = () => {
|
|
|
3795
3930
|
return new o(a, i);
|
|
3796
3931
|
}
|
|
3797
3932
|
return { run: l, running: e, error: n, clearError: t };
|
|
3798
|
-
},
|
|
3933
|
+
}, ts = {
|
|
3799
3934
|
install(e) {
|
|
3800
|
-
e.component("VjAmountBar",
|
|
3935
|
+
e.component("VjAmountBar", Ta), e.component("VjButton", dt), e.component("VjButtonBar", Mn), e.component("VjCard", at), e.component("VjChip", qt), e.component("VjChipGroup", Gt), e.component("VjChipSelector", xo), e.component("VjCarousel", at), e.component("VjCheckbox", Jn), e.component("VjDotMenu", pl), e.component("VjDialog", ft), e.component("VjIcon", be), e.component("VjLinkButton", gl), e.component("VjMenu", Cl), e.component("VjMenuAction", _l), e.component("VjPage", Zl), e.component("VjPaginator", na), e.component("VjTab", ua), e.component("VjTabView", ha), e.component("VjTimer", Va), e.component("VjSkeleton", Sa), e.component("VjSpinner", dn), e.component("VjNotifications", Ti), e.component("VjNotification", wt), e.component("VjInput", hn), e.component("VjSelect", mn), e.component("VjTextArea", pn), e.component("VjFormField", Ie), e.component("VjFormLayout", za), e.component("VjFormSection", Wa), e.component("VjInputText", di), e.component("VjInputTextArea", si), e.component("VjInputSelect", Ya), e.component("VjInputSlider", oi), e.component("VjShellNavigation", gn), e.component("VjShellNavigationItem", bi), e.component("VjShell", Li), e.component("VjSearchField", ia), e.component("VjSeparator", ra), e.directive("focus", $l), e.directive("resize", Sl), e.directive("compact", El), e.directive("tooltip", fn);
|
|
3801
3936
|
}
|
|
3802
3937
|
};
|
|
3803
3938
|
export {
|
|
3804
|
-
|
|
3939
|
+
Ta as AmountBar,
|
|
3805
3940
|
dt as Button,
|
|
3806
3941
|
Mn as ButtonBar,
|
|
3807
3942
|
at as Card,
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3943
|
+
Ki as Carousel,
|
|
3944
|
+
Jn as Checkbox,
|
|
3945
|
+
qt as Chip,
|
|
3946
|
+
Gt as ChipGroup,
|
|
3947
|
+
xo as ChipSelector,
|
|
3813
3948
|
ft as Dialog,
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3949
|
+
pl as DotMenu,
|
|
3950
|
+
Xi as EditableLabel,
|
|
3951
|
+
$l as FocusFirstDirective,
|
|
3952
|
+
Ie as FormField,
|
|
3953
|
+
za as FormLayout,
|
|
3954
|
+
Wa as FormSection,
|
|
3820
3955
|
be as Icon,
|
|
3821
|
-
|
|
3822
|
-
|
|
3956
|
+
H as IconNames,
|
|
3957
|
+
G as IconSize,
|
|
3823
3958
|
hn as Input,
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3959
|
+
Ya as InputSelect,
|
|
3960
|
+
oi as InputSlider,
|
|
3961
|
+
di as InputText,
|
|
3962
|
+
si as InputTextArea,
|
|
3963
|
+
gl as LinkButton,
|
|
3964
|
+
jl as LoadingDirective,
|
|
3965
|
+
Cl as Menu,
|
|
3966
|
+
_l as MenuAction,
|
|
3832
3967
|
wt as NotificationComponent,
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3968
|
+
Ti as Notifications,
|
|
3969
|
+
Zl as Page,
|
|
3970
|
+
na as Paginator,
|
|
3971
|
+
Ni as Radio,
|
|
3972
|
+
Sl as ResizeDirective,
|
|
3973
|
+
ia as SearchField,
|
|
3839
3974
|
mn as Select,
|
|
3840
|
-
|
|
3841
|
-
|
|
3975
|
+
ra as Separator,
|
|
3976
|
+
Li as Shell,
|
|
3842
3977
|
gn as ShellNavigation,
|
|
3843
|
-
|
|
3844
|
-
|
|
3978
|
+
bi as ShellNavigationItem,
|
|
3979
|
+
Sa as Skeleton,
|
|
3845
3980
|
dn as Spinner,
|
|
3846
|
-
|
|
3847
|
-
|
|
3981
|
+
ua as Tab,
|
|
3982
|
+
ha as TabView,
|
|
3848
3983
|
pn as TextArea,
|
|
3984
|
+
Va as Timer,
|
|
3849
3985
|
fn as TooltipDirective,
|
|
3850
|
-
|
|
3986
|
+
ts as VjComponents,
|
|
3851
3987
|
Yt as VjDialogControllerKey,
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3988
|
+
Ai as VjNavigationProviderKey,
|
|
3989
|
+
El as compactDirective,
|
|
3990
|
+
qi as configureVueUI,
|
|
3991
|
+
Ii as dialogService,
|
|
3856
3992
|
Ht as getVueUIConfig,
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3993
|
+
Wt as notificationService,
|
|
3994
|
+
Gi as resetVueUIConfig,
|
|
3995
|
+
Fi as useAsideService,
|
|
3996
|
+
Ji as useDebounce,
|
|
3997
|
+
Qi as useDialog,
|
|
3998
|
+
Zi as useDialogController,
|
|
3999
|
+
es as useFlow,
|
|
4000
|
+
Di as useRouterNavigationProvider,
|
|
4001
|
+
Yi as useStaticNavigationProvider
|
|
3866
4002
|
};
|