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