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