@vanjana/vue-ui 0.1.108 → 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 +4 -2
- 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 +1432 -1183
- 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 Rn, useRoute 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
|
-
},
|
|
9
|
-
function
|
|
10
|
-
return f(),
|
|
11
|
-
x("div", Dn, [
|
|
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 = q.M, o =
|
|
29
|
-
return (l, a) => (f(),
|
|
30
|
-
class:
|
|
28
|
+
const n = e, t = q.M, o = V(() => `${n.icon} ${n.size ?? t}`);
|
|
29
|
+
return (l, a) => (f(), b("i", {
|
|
30
|
+
class: I(o.value)
|
|
31
31
|
}, null, 2));
|
|
32
32
|
}
|
|
33
|
-
}),
|
|
33
|
+
}), Fn = ["disabled"], zn = /* @__PURE__ */ T({
|
|
34
34
|
__name: "button",
|
|
35
35
|
props: {
|
|
36
36
|
label: {},
|
|
@@ -41,48 +41,48 @@ const be = /* @__PURE__ */ T({
|
|
|
41
41
|
disabled: { type: Boolean }
|
|
42
42
|
},
|
|
43
43
|
setup(e) {
|
|
44
|
-
const n = e, t = q.S, o =
|
|
45
|
-
return (a, i) => (f(),
|
|
46
|
-
class:
|
|
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
|
+
class: I(["button", o.value, { "icon-only": l.value }]),
|
|
47
47
|
disabled: e.disabled
|
|
48
48
|
}, [
|
|
49
|
-
e.icon ? (f(),
|
|
49
|
+
e.icon ? (f(), M(le, {
|
|
50
50
|
key: 0,
|
|
51
51
|
icon: e.icon,
|
|
52
|
-
size:
|
|
52
|
+
size: $(t)
|
|
53
53
|
}, null, 8, ["icon", "size"])) : L("", !0),
|
|
54
|
-
Ue(" " +
|
|
55
|
-
], 10,
|
|
54
|
+
Ue(" " + D(e.label), 1)
|
|
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
|
-
},
|
|
60
|
+
}, Hn = { key: 0 }, Wn = /* @__PURE__ */ T({
|
|
61
61
|
__name: "card",
|
|
62
62
|
props: {
|
|
63
63
|
header: {},
|
|
64
64
|
scrollable: { type: Boolean }
|
|
65
65
|
},
|
|
66
66
|
setup(e) {
|
|
67
|
-
const n =
|
|
68
|
-
return (t, o) => (f(),
|
|
69
|
-
class:
|
|
67
|
+
const n = Ut();
|
|
68
|
+
return (t, o) => (f(), b("div", {
|
|
69
|
+
class: I(["card", { scrollable: e.scrollable }])
|
|
70
70
|
}, [
|
|
71
71
|
x("header", null, [
|
|
72
|
-
x("h3", null,
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
x("h3", null, D(e.header), 1),
|
|
73
|
+
$(n).headerActions ? (f(), b("span", In, [
|
|
74
|
+
F(t.$slots, "headerActions", {}, void 0, !0)
|
|
75
75
|
])) : L("", !0)
|
|
76
76
|
]),
|
|
77
77
|
x("main", null, [
|
|
78
|
-
|
|
78
|
+
F(t.$slots, "default", {}, void 0, !0)
|
|
79
79
|
]),
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
$(n).footer ? (f(), b("footer", Hn, [
|
|
81
|
+
F(t.$slots, "footer", {}, void 0, !0)
|
|
82
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
88
|
}, Nn = /* @__PURE__ */ T({
|
|
@@ -97,102 +97,102 @@ const be = /* @__PURE__ */ T({
|
|
|
97
97
|
},
|
|
98
98
|
setup(e) {
|
|
99
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
|
|
101
|
-
const
|
|
102
|
-
let
|
|
103
|
-
const _ = E(null),
|
|
104
|
-
|
|
105
|
-
}, j =
|
|
106
|
-
r.value && Array.from(r.value.children).forEach((
|
|
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
|
-
|
|
114
|
-
|
|
113
|
+
C(), !(!t || h.value <= 1) && (a && y.value || (m = setTimeout(() => {
|
|
114
|
+
P(), k();
|
|
115
115
|
}, o)));
|
|
116
|
-
},
|
|
117
|
-
|
|
116
|
+
}, C = () => {
|
|
117
|
+
m && (clearTimeout(m), m = null);
|
|
118
118
|
}, A = () => {
|
|
119
|
-
|
|
120
|
-
},
|
|
121
|
-
|
|
122
|
-
},
|
|
123
|
-
|
|
124
|
-
},
|
|
125
|
-
|
|
126
|
-
},
|
|
127
|
-
|
|
128
|
-
},
|
|
129
|
-
|
|
119
|
+
h.value !== 0 && (s.value <= 0 ? s.value = l ? h.value - 1 : 0 : s.value--);
|
|
120
|
+
}, P = () => {
|
|
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
|
+
}, te = () => {
|
|
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
|
-
let ke = 0,
|
|
132
|
-
const
|
|
133
|
-
ke =
|
|
134
|
-
}, Y = (
|
|
135
|
-
|
|
136
|
-
},
|
|
137
|
-
|
|
131
|
+
let ke = 0, ne = 0;
|
|
132
|
+
const se = (O) => {
|
|
133
|
+
ke = O.touches[0].clientX, ne = 0;
|
|
134
|
+
}, Y = (O) => {
|
|
135
|
+
ne = O.touches[0].clientX - ke;
|
|
136
|
+
}, oe = () => {
|
|
137
|
+
ne > 50 ? A() : ne < -50 && P(), ne = 0;
|
|
138
138
|
};
|
|
139
|
-
let
|
|
140
|
-
const
|
|
141
|
-
if (
|
|
142
|
-
|
|
139
|
+
let He = 0;
|
|
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
|
-
v.value >
|
|
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
179
|
}), Re(() => {
|
|
180
|
-
|
|
181
|
-
}),
|
|
182
|
-
|
|
183
|
-
}),
|
|
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
|
-
}), (
|
|
186
|
-
const we =
|
|
187
|
-
return f(),
|
|
185
|
+
}), (O, ye) => {
|
|
186
|
+
const we = X("VjButton");
|
|
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:
|
|
194
|
-
onMouseenter:
|
|
195
|
-
onMouseleave:
|
|
193
|
+
onKeydown: ve,
|
|
194
|
+
onMouseenter: te,
|
|
195
|
+
onMouseleave: fe
|
|
196
196
|
}, [
|
|
197
197
|
x("div", {
|
|
198
198
|
class: "carousel-window",
|
|
@@ -205,42 +205,42 @@ const be = /* @__PURE__ */ T({
|
|
|
205
205
|
ref: r,
|
|
206
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:
|
|
213
|
+
icon: $(z).PREVIOUS,
|
|
214
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:
|
|
221
|
-
onClick:
|
|
220
|
+
icon: $(z).NEXT,
|
|
221
|
+
onClick: P,
|
|
222
222
|
type: "button",
|
|
223
223
|
"aria-label": "Next slide"
|
|
224
224
|
}, null, 8, ["icon"]),
|
|
225
|
-
|
|
226
|
-
(f(!0),
|
|
227
|
-
key:
|
|
228
|
-
class:
|
|
229
|
-
onClick: (
|
|
230
|
-
"aria-current":
|
|
231
|
-
"aria-label": `Go to slide ${
|
|
225
|
+
h.value > 1 ? (f(), b("div", Kn, [
|
|
226
|
+
(f(!0), b(J, null, pe(h.value, (Ae) => (f(), M(we, {
|
|
227
|
+
key: Ae - 1,
|
|
228
|
+
class: I(["indicator", { active: Ae - 1 === s.value }]),
|
|
229
|
+
onClick: (Zi) => W(Ae - 1),
|
|
230
|
+
"aria-current": Ae - 1 === s.value,
|
|
231
|
+
"aria-label": `Go to slide ${Ae}`,
|
|
232
232
|
type: "button"
|
|
233
233
|
}, null, 8, ["class", "onClick", "aria-current", "aria-label"]))), 128))
|
|
234
234
|
])) : 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
|
-
},
|
|
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,18 +249,18 @@ const be = /* @__PURE__ */ T({
|
|
|
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) => (f(),
|
|
256
|
+
return (o, l) => (f(), b("label", Xn, [
|
|
257
257
|
x("input", {
|
|
258
258
|
type: "checkbox",
|
|
259
259
|
checked: n.value,
|
|
260
260
|
onChange: t,
|
|
261
261
|
disabled: e.disabled,
|
|
262
262
|
class: "checkbox-input"
|
|
263
|
-
}, null, 40,
|
|
263
|
+
}, null, 40, qn),
|
|
264
264
|
l[0] || (l[0] = x("span", { class: "checkbox-box" }, [
|
|
265
265
|
x("svg", {
|
|
266
266
|
class: "checkbox-icon",
|
|
@@ -278,15 +278,15 @@ const be = /* @__PURE__ */ T({
|
|
|
278
278
|
})
|
|
279
279
|
])
|
|
280
280
|
], -1)),
|
|
281
|
-
e.label ? (f(),
|
|
281
|
+
e.label ? (f(), b("span", Gn, D(e.label), 1)) : L("", !0)
|
|
282
282
|
]));
|
|
283
283
|
}
|
|
284
|
-
}),
|
|
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
|
-
},
|
|
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,30 +295,30 @@ const be = /* @__PURE__ */ T({
|
|
|
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) => (f(),
|
|
302
|
+
return (o, l) => (f(), b("label", Qn, [
|
|
303
303
|
x("input", {
|
|
304
304
|
type: "checkbox",
|
|
305
305
|
checked: n.value,
|
|
306
306
|
onChange: t,
|
|
307
307
|
disabled: e.disabled,
|
|
308
308
|
class: "radio-input"
|
|
309
|
-
}, null, 40,
|
|
309
|
+
}, null, 40, Zn),
|
|
310
310
|
l[0] || (l[0] = x("span", { class: "radio-box" }, [
|
|
311
311
|
x("span", {
|
|
312
312
|
class: "radio-dot",
|
|
313
313
|
"aria-hidden": "true"
|
|
314
314
|
})
|
|
315
315
|
], -1)),
|
|
316
|
-
e.label ? (f(),
|
|
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__ */ T({
|
|
|
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) => (f(),
|
|
338
|
-
class:
|
|
337
|
+
return (s, r) => (f(), b("div", {
|
|
338
|
+
class: I(["chip", { "chip--dismissable": $(a) }]),
|
|
339
339
|
style: G(i.value),
|
|
340
340
|
onClick: r[0] || (r[0] = (u) => s.$emit("click"))
|
|
341
341
|
}, [
|
|
342
|
-
x("span",
|
|
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
|
-
}),
|
|
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
|
-
},
|
|
363
|
+
}, fo = /* @__PURE__ */ T({
|
|
364
364
|
__name: "chip-group",
|
|
365
365
|
props: {
|
|
366
366
|
items: { default: () => [] },
|
|
@@ -374,81 +374,81 @@ const be = /* @__PURE__ */ T({
|
|
|
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 v(
|
|
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 ? (f(),
|
|
412
|
-
x("div",
|
|
413
|
-
(f(!0),
|
|
414
|
-
key: i(_,
|
|
410
|
+
return (m, g) => (f(), b("div", lo, [
|
|
411
|
+
e.label ? (f(), b("label", ao, D(e.label), 1)) : L("", !0),
|
|
412
|
+
x("div", io, [
|
|
413
|
+
(f(!0), b(J, null, pe(e.items, (_, w) => (f(), b(J, {
|
|
414
|
+
key: i(_, w)
|
|
415
415
|
}, [
|
|
416
|
-
v(
|
|
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,
|
|
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:
|
|
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
|
-
], 42,
|
|
440
|
-
v(
|
|
439
|
+
], 42, ro),
|
|
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,
|
|
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 ? (f(),
|
|
448
|
+
e.hint ? (f(), b("div", uo, D(e.hint), 1)) : L("", !0)
|
|
449
449
|
]));
|
|
450
450
|
}
|
|
451
|
-
}),
|
|
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 },
|
|
@@ -466,7 +466,7 @@ const be = /* @__PURE__ */ T({
|
|
|
466
466
|
emits: ["update:modelValue", "confirm", "cancel", "close", "resolve"],
|
|
467
467
|
setup(e, { emit: n }) {
|
|
468
468
|
const t = e, o = n, l = E(t.modelValue);
|
|
469
|
-
|
|
469
|
+
N(
|
|
470
470
|
() => t.modelValue,
|
|
471
471
|
(d) => l.value = d
|
|
472
472
|
);
|
|
@@ -479,7 +479,7 @@ const be = /* @__PURE__ */ T({
|
|
|
479
479
|
}, s = () => {
|
|
480
480
|
o("cancel"), a();
|
|
481
481
|
};
|
|
482
|
-
|
|
482
|
+
Kt(Yt, {
|
|
483
483
|
close: a,
|
|
484
484
|
resolve: i,
|
|
485
485
|
cancel: s
|
|
@@ -489,64 +489,64 @@ const be = /* @__PURE__ */ T({
|
|
|
489
489
|
}, u = (d) => {
|
|
490
490
|
d.key === "Escape" && t.closeOnEscape && l.value && a();
|
|
491
491
|
};
|
|
492
|
-
return
|
|
492
|
+
return Te(() => {
|
|
493
493
|
document.addEventListener("keydown", u);
|
|
494
494
|
}), Re(() => {
|
|
495
495
|
document.removeEventListener("keydown", u);
|
|
496
496
|
}), (d, v) => {
|
|
497
|
-
const
|
|
498
|
-
return f(),
|
|
499
|
-
|
|
500
|
-
default:
|
|
501
|
-
l.value ? (f(),
|
|
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 ? (f(),
|
|
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: v[0] || (v[0] =
|
|
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:
|
|
527
|
-
x("div",
|
|
528
|
-
e.component ? (f(),
|
|
526
|
+
default: K(() => [
|
|
527
|
+
x("div", vo, [
|
|
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 ? (f(),
|
|
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:
|
|
541
|
-
x("div",
|
|
542
|
-
|
|
543
|
-
e.showCancel ? (f(),
|
|
540
|
+
fn: K(() => [
|
|
541
|
+
x("div", po, [
|
|
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
548
|
}, null, 8, ["label"])) : L("", !0),
|
|
549
|
-
|
|
549
|
+
R(h, {
|
|
550
550
|
primary: "",
|
|
551
551
|
onClick: c,
|
|
552
552
|
label: e.confirmText
|
|
@@ -568,10 +568,10 @@ const be = /* @__PURE__ */ T({
|
|
|
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
|
-
},
|
|
574
|
+
}, _o = /* @__PURE__ */ T({
|
|
575
575
|
__name: "chip-selector",
|
|
576
576
|
props: {
|
|
577
577
|
items: { default: () => [] },
|
|
@@ -583,7 +583,7 @@ const be = /* @__PURE__ */ T({
|
|
|
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);
|
|
@@ -594,14 +594,14 @@ const be = /* @__PURE__ */ T({
|
|
|
594
594
|
l.value = u, o("update:items", u);
|
|
595
595
|
}
|
|
596
596
|
}
|
|
597
|
-
return
|
|
597
|
+
return N(
|
|
598
598
|
() => t.items,
|
|
599
599
|
(r) => {
|
|
600
600
|
JSON.stringify(r) !== JSON.stringify(l.value) && (l.value = [...r]);
|
|
601
601
|
},
|
|
602
602
|
{ deep: !0 }
|
|
603
|
-
), (r, u) => (f(),
|
|
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,50 +614,50 @@ const be = /* @__PURE__ */ T({
|
|
|
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:
|
|
625
|
-
x("div",
|
|
626
|
-
(f(!0),
|
|
624
|
+
default: K(() => [
|
|
625
|
+
x("div", bo, [
|
|
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
630
|
onClick: (v) => s(d.value)
|
|
631
|
-
}, "+ " +
|
|
631
|
+
}, "+ " + D(d.label), 9, yo))), 128))
|
|
632
632
|
]),
|
|
633
|
-
i.value.length === 0 ? (f(),
|
|
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
|
-
}),
|
|
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 = {
|
|
643
643
|
left: "right",
|
|
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
|
-
function
|
|
660
|
+
function Fe(e) {
|
|
661
661
|
return e.split("-")[1];
|
|
662
662
|
}
|
|
663
663
|
function Jt(e) {
|
|
@@ -667,47 +667,47 @@ function Qt(e) {
|
|
|
667
667
|
return e === "y" ? "height" : "width";
|
|
668
668
|
}
|
|
669
669
|
const Vo = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
670
|
-
function
|
|
671
|
-
return Vo.has(
|
|
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
|
-
function
|
|
676
|
+
function Eo(e, n, t) {
|
|
677
677
|
t === void 0 && (t = !1);
|
|
678
|
-
const o =
|
|
678
|
+
const o = Fe(e), l = Zt(e), a = Qt(l);
|
|
679
679
|
let i = l === "x" ? o === (t ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
680
680
|
return n.reference[a] > n.floating[a] && (i = Ne(i)), [i, Ne(i)];
|
|
681
681
|
}
|
|
682
|
-
function
|
|
682
|
+
function $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 ? Lo :
|
|
697
|
+
return n ? Lo : So;
|
|
698
698
|
default:
|
|
699
699
|
return [];
|
|
700
700
|
}
|
|
701
701
|
}
|
|
702
702
|
function Ro(e, n, t, o) {
|
|
703
|
-
const l =
|
|
704
|
-
let a =
|
|
705
|
-
return l && (a = a.map((i) => i + "-" + l), n && (a = a.concat(a.map(
|
|
703
|
+
const l = Fe(e);
|
|
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
|
-
return e.replace(/left|right|bottom|top/g, (n) =>
|
|
708
|
+
return e.replace(/left|right|bottom|top/g, (n) => ko[n]);
|
|
709
709
|
}
|
|
710
|
-
function
|
|
710
|
+
function Ao(e) {
|
|
711
711
|
return {
|
|
712
712
|
top: 0,
|
|
713
713
|
right: 0,
|
|
@@ -716,15 +716,15 @@ function To(e) {
|
|
|
716
716
|
...e
|
|
717
717
|
};
|
|
718
718
|
}
|
|
719
|
-
function
|
|
720
|
-
return typeof e != "number" ?
|
|
719
|
+
function Oo(e) {
|
|
720
|
+
return typeof e != "number" ? Ao(e) : {
|
|
721
721
|
top: e,
|
|
722
722
|
right: e,
|
|
723
723
|
bottom: e,
|
|
724
724
|
left: e
|
|
725
725
|
};
|
|
726
726
|
}
|
|
727
|
-
function
|
|
727
|
+
function Xe(e) {
|
|
728
728
|
const {
|
|
729
729
|
x: n,
|
|
730
730
|
y: t,
|
|
@@ -747,50 +747,50 @@ 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
|
-
switch (
|
|
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
|
-
const
|
|
793
|
+
const Do = async (e, n, t) => {
|
|
794
794
|
const {
|
|
795
795
|
placement: o = "bottom",
|
|
796
796
|
strategy: l = "absolute",
|
|
@@ -804,23 +804,23 @@ const Oo = async (e, n, t) => {
|
|
|
804
804
|
}), {
|
|
805
805
|
x: u,
|
|
806
806
|
y: d
|
|
807
|
-
} = Ot(r, o, s), v = o,
|
|
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
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 Oo = 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, v, s)),
|
|
844
|
+
} = Ot(r, v, s)), y = -1);
|
|
845
845
|
}
|
|
846
846
|
return {
|
|
847
847
|
x: u,
|
|
848
848
|
y: d,
|
|
849
849
|
placement: v,
|
|
850
850
|
strategy: l,
|
|
851
|
-
middlewareData:
|
|
851
|
+
middlewareData: p
|
|
852
852
|
};
|
|
853
853
|
};
|
|
854
854
|
async function vt(e, n) {
|
|
@@ -866,9 +866,9 @@ async function vt(e, n) {
|
|
|
866
866
|
rootBoundary: u = "viewport",
|
|
867
867
|
elementContext: d = "floating",
|
|
868
868
|
altBoundary: v = !1,
|
|
869
|
-
padding:
|
|
870
|
-
} =
|
|
871
|
-
element: (t = await (a.isElement == null ? void 0 : a.isElement(
|
|
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,26 +877,26 @@ async function vt(e, n) {
|
|
|
877
877
|
y: l,
|
|
878
878
|
width: i.floating.width,
|
|
879
879
|
height: i.floating.height
|
|
880
|
-
} : i.reference,
|
|
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
|
} : {
|
|
884
884
|
x: 1,
|
|
885
885
|
y: 1
|
|
886
|
-
}, j =
|
|
886
|
+
}, j = Xe(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
887
887
|
elements: c,
|
|
888
888
|
rect: _,
|
|
889
|
-
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,
|
|
@@ -913,81 +913,81 @@ const Do = function(e) {
|
|
|
913
913
|
mainAxis: u = !0,
|
|
914
914
|
crossAxis: d = !0,
|
|
915
915
|
fallbackPlacements: v,
|
|
916
|
-
fallbackStrategy:
|
|
917
|
-
fallbackAxisSideDirection:
|
|
918
|
-
flipAlignment:
|
|
919
|
-
...
|
|
920
|
-
} =
|
|
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
|
-
!v &&
|
|
925
|
-
const k = [c, ...j],
|
|
926
|
-
let
|
|
927
|
-
if (u && A.push(
|
|
928
|
-
const
|
|
929
|
-
A.push(
|
|
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
|
+
let P = ((o = a.flip) == null ? void 0 : o.overflows) || [];
|
|
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
|
-
if (
|
|
931
|
+
if (P = [...P, {
|
|
932
932
|
placement: l,
|
|
933
933
|
overflows: A
|
|
934
|
-
}], !A.every((
|
|
935
|
-
var
|
|
936
|
-
const
|
|
937
|
-
if (ke && (!(d === "alignment" ? _ !==
|
|
934
|
+
}], !A.every((ve) => ve <= 0)) {
|
|
935
|
+
var W, te;
|
|
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
|
-
|
|
939
|
+
P.every((Y) => me(Y.placement) === _ ? Y.overflows[0] > 0 : !0)))
|
|
940
940
|
return {
|
|
941
941
|
data: {
|
|
942
|
-
index:
|
|
943
|
-
overflows:
|
|
942
|
+
index: ve,
|
|
943
|
+
overflows: P
|
|
944
944
|
},
|
|
945
945
|
reset: {
|
|
946
946
|
placement: ke
|
|
947
947
|
}
|
|
948
948
|
};
|
|
949
|
-
let
|
|
950
|
-
if (!
|
|
951
|
-
switch (
|
|
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
|
+
if (!ne)
|
|
951
|
+
switch (p) {
|
|
952
952
|
case "bestFit": {
|
|
953
|
-
var
|
|
954
|
-
const
|
|
955
|
-
if (
|
|
956
|
-
const
|
|
957
|
-
return
|
|
953
|
+
var fe;
|
|
954
|
+
const se = (fe = P.filter((Y) => {
|
|
955
|
+
if (H) {
|
|
956
|
+
const oe = me(Y.placement);
|
|
957
|
+
return oe === _ || // Create a bias to the `y` side axis due to horizontal
|
|
958
958
|
// reading directions favoring greater width.
|
|
959
|
-
|
|
959
|
+
oe === "y";
|
|
960
960
|
}
|
|
961
961
|
return !0;
|
|
962
|
-
}).map((Y) => [Y.placement, Y.overflows.filter((
|
|
963
|
-
|
|
962
|
+
}).map((Y) => [Y.placement, Y.overflows.filter((oe) => oe > 0).reduce((oe, He) => oe + He, 0)]).sort((Y, oe) => Y[1] - oe[1])[0]) == null ? void 0 : fe[0];
|
|
963
|
+
se && (ne = se);
|
|
964
964
|
break;
|
|
965
965
|
}
|
|
966
966
|
case "initialPlacement":
|
|
967
|
-
|
|
967
|
+
ne = c;
|
|
968
968
|
break;
|
|
969
969
|
}
|
|
970
|
-
if (l !==
|
|
970
|
+
if (l !== ne)
|
|
971
971
|
return {
|
|
972
972
|
reset: {
|
|
973
|
-
placement:
|
|
973
|
+
placement: ne
|
|
974
974
|
}
|
|
975
975
|
};
|
|
976
976
|
}
|
|
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
988
|
mainAxis: v,
|
|
989
|
-
crossAxis:
|
|
990
|
-
alignmentAxis:
|
|
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 jo(e, n) {
|
|
|
997
997
|
crossAxis: d.crossAxis || 0,
|
|
998
998
|
alignmentAxis: d.alignmentAxis
|
|
999
999
|
};
|
|
1000
|
-
return c && typeof
|
|
1001
|
-
x:
|
|
1000
|
+
return c && typeof h == "number" && (p = c === "end" ? h * -1 : h), s ? {
|
|
1001
|
+
x: p * u,
|
|
1002
1002
|
y: v * r
|
|
1003
1003
|
} : {
|
|
1004
1004
|
x: v * r,
|
|
1005
|
-
y:
|
|
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,
|
|
@@ -1027,7 +1027,7 @@ const Mo = function(e) {
|
|
|
1027
1027
|
};
|
|
1028
1028
|
}
|
|
1029
1029
|
};
|
|
1030
|
-
},
|
|
1030
|
+
}, Fo = function(e) {
|
|
1031
1031
|
return e === void 0 && (e = {}), {
|
|
1032
1032
|
name: "shift",
|
|
1033
1033
|
options: e,
|
|
@@ -1040,41 +1040,41 @@ 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
|
-
[v]:
|
|
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
|
|
@@ -1083,7 +1083,7 @@ const Mo = function(e) {
|
|
|
1083
1083
|
};
|
|
1084
1084
|
}
|
|
1085
1085
|
};
|
|
1086
|
-
},
|
|
1086
|
+
}, zo = function(e) {
|
|
1087
1087
|
return e === void 0 && (e = {}), {
|
|
1088
1088
|
name: "size",
|
|
1089
1089
|
options: e,
|
|
@@ -1098,25 +1098,25 @@ const Mo = function(e) {
|
|
|
1098
1098
|
apply: s = () => {
|
|
1099
1099
|
},
|
|
1100
1100
|
...r
|
|
1101
|
-
} =
|
|
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
|
|
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
1118
|
const A = await i.getDimensions(c.floating);
|
|
1119
|
-
return
|
|
1119
|
+
return h !== A.width || y !== A.height ? {
|
|
1120
1120
|
reset: {
|
|
1121
1121
|
rects: !0
|
|
1122
1122
|
}
|
|
@@ -1124,48 +1124,48 @@ 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
|
-
const
|
|
1154
|
-
function
|
|
1153
|
+
const Io = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
1154
|
+
function ze(e) {
|
|
1155
1155
|
const {
|
|
1156
1156
|
overflow: n,
|
|
1157
1157
|
overflowX: t,
|
|
1158
1158
|
overflowY: o,
|
|
1159
1159
|
display: l
|
|
1160
|
-
} =
|
|
1161
|
-
return /auto|scroll|overlay|hidden|clip/.test(n + o + t) && !
|
|
1160
|
+
} = ie(e);
|
|
1161
|
+
return /auto|scroll|overlay|hidden|clip/.test(n + o + t) && !Io.has(l);
|
|
1162
1162
|
}
|
|
1163
|
-
const
|
|
1164
|
-
function
|
|
1165
|
-
return
|
|
1163
|
+
const Ho = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
1164
|
+
function Wo(e) {
|
|
1165
|
+
return Ho.has(xe(e));
|
|
1166
1166
|
}
|
|
1167
1167
|
const Uo = [":popover-open", ":modal"];
|
|
1168
|
-
function
|
|
1168
|
+
function Je(e) {
|
|
1169
1169
|
return Uo.some((n) => {
|
|
1170
1170
|
try {
|
|
1171
1171
|
return e.matches(n);
|
|
@@ -1174,19 +1174,19 @@ function qe(e) {
|
|
|
1174
1174
|
}
|
|
1175
1175
|
});
|
|
1176
1176
|
}
|
|
1177
|
-
const
|
|
1177
|
+
const Ko = ["transform", "translate", "scale", "rotate", "perspective"], No = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Xo = ["paint", "layout", "strict", "content"];
|
|
1178
1178
|
function pt(e) {
|
|
1179
|
-
const n = ht(), t =
|
|
1180
|
-
return
|
|
1179
|
+
const n = ht(), t = ae(e) ? ie(e) : e;
|
|
1180
|
+
return Ko.some((o) => t[o] ? t[o] !== "none" : !1) || (t.containerType ? t.containerType !== "normal" : !1) || !n && (t.backdropFilter ? t.backdropFilter !== "none" : !1) || !n && (t.filter ? t.filter !== "none" : !1) || No.some((o) => (t.willChange || "").includes(o)) || Xo.some((o) => (t.contain || "").includes(o));
|
|
1181
1181
|
}
|
|
1182
|
-
function
|
|
1183
|
-
let n =
|
|
1184
|
-
for (;
|
|
1182
|
+
function qo(e) {
|
|
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 Ye(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 || [],
|
|
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,87 +1249,87 @@ 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,
|
|
1261
1261
|
$: a
|
|
1262
1262
|
} = tn(n);
|
|
1263
|
-
let i = (a ?
|
|
1263
|
+
let i = (a ? Ke(t.width) : t.width) / o, c = (a ? Ke(t.height) : t.height) / l;
|
|
1264
1264
|
return (!i || !Number.isFinite(i)) && (i = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
1265
1265
|
x: i,
|
|
1266
1266
|
y: c
|
|
1267
1267
|
};
|
|
1268
1268
|
}
|
|
1269
|
-
const
|
|
1269
|
+
const Yo = /* @__PURE__ */ re(0);
|
|
1270
1270
|
function nn(e) {
|
|
1271
|
-
const n =
|
|
1272
|
-
return !ht() || !n.visualViewport ?
|
|
1271
|
+
const n = ee(e);
|
|
1272
|
+
return !ht() || !n.visualViewport ? Yo : {
|
|
1273
1273
|
x: n.visualViewport.offsetLeft,
|
|
1274
1274
|
y: n.visualViewport.offsetTop
|
|
1275
1275
|
};
|
|
1276
1276
|
}
|
|
1277
|
-
function
|
|
1278
|
-
return n === void 0 && (n = !1), !t || n && t !==
|
|
1277
|
+
function Jo(e, 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 =
|
|
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 v =
|
|
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
|
-
return
|
|
1295
|
+
return Xe({
|
|
1296
1296
|
width: u,
|
|
1297
1297
|
height: d,
|
|
1298
1298
|
x: s,
|
|
1299
1299
|
y: r
|
|
1300
1300
|
});
|
|
1301
1301
|
}
|
|
1302
|
-
function
|
|
1303
|
-
const t =
|
|
1304
|
-
return n ? n.left + t : _e(
|
|
1302
|
+
function 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
|
|
1311
1311
|
};
|
|
1312
1312
|
}
|
|
1313
|
-
function
|
|
1313
|
+
function Qo(e) {
|
|
1314
1314
|
let {
|
|
1315
1315
|
elements: n,
|
|
1316
1316
|
rect: t,
|
|
1317
1317
|
offsetParent: o,
|
|
1318
1318
|
strategy: l
|
|
1319
1319
|
} = e;
|
|
1320
|
-
const a = l === "fixed", i =
|
|
1320
|
+
const a = l === "fixed", i = 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" ||
|
|
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 v = i && !d && !a ? on(i, s) :
|
|
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,
|
|
@@ -1337,14 +1337,14 @@ function Jo(e) {
|
|
|
1337
1337
|
y: t.y * r.y - s.scrollTop * r.y + u.y + v.y
|
|
1338
1338
|
};
|
|
1339
1339
|
}
|
|
1340
|
-
function
|
|
1340
|
+
function Zo(e) {
|
|
1341
1341
|
return Array.from(e.getClientRects());
|
|
1342
1342
|
}
|
|
1343
|
-
function
|
|
1344
|
-
const n =
|
|
1345
|
-
let i = -t.scrollLeft +
|
|
1343
|
+
function el(e) {
|
|
1344
|
+
const n = 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,
|
|
@@ -1352,18 +1352,18 @@ function Zo(e) {
|
|
|
1352
1352
|
};
|
|
1353
1353
|
}
|
|
1354
1354
|
const Bt = 25;
|
|
1355
|
-
function
|
|
1356
|
-
const t =
|
|
1355
|
+
function tl(e, n) {
|
|
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, v = getComputedStyle(d),
|
|
1366
|
-
|
|
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
1367
|
} else r <= Bt && (a += r);
|
|
1368
1368
|
return {
|
|
1369
1369
|
width: a,
|
|
@@ -1372,9 +1372,9 @@ function el(e, n) {
|
|
|
1372
1372
|
y: s
|
|
1373
1373
|
};
|
|
1374
1374
|
}
|
|
1375
|
-
const
|
|
1376
|
-
function
|
|
1377
|
-
const t = _e(e, !0, n === "fixed"), o = t.top + e.clientTop, l = t.left + e.clientLeft, a =
|
|
1375
|
+
const nl = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
1376
|
+
function ol(e, n) {
|
|
1377
|
+
const t = _e(e, !0, n === "fixed"), o = t.top + e.clientTop, l = t.left + e.clientLeft, a = 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,
|
|
@@ -1385,11 +1385,11 @@ function nl(e, n) {
|
|
|
1385
1385
|
function jt(e, n, t) {
|
|
1386
1386
|
let o;
|
|
1387
1387
|
if (n === "viewport")
|
|
1388
|
-
o =
|
|
1388
|
+
o = tl(e, t);
|
|
1389
1389
|
else if (n === "document")
|
|
1390
|
-
o =
|
|
1391
|
-
else if (
|
|
1392
|
-
o =
|
|
1390
|
+
o = el(de(e));
|
|
1391
|
+
else if (ae(n))
|
|
1392
|
+
o = ol(n, t);
|
|
1393
1393
|
else {
|
|
1394
1394
|
const l = nn(e);
|
|
1395
1395
|
o = {
|
|
@@ -1399,35 +1399,35 @@ function jt(e, n, t) {
|
|
|
1399
1399
|
height: n.height
|
|
1400
1400
|
};
|
|
1401
1401
|
}
|
|
1402
|
-
return
|
|
1402
|
+
return Xe(o);
|
|
1403
1403
|
}
|
|
1404
1404
|
function ln(e, n) {
|
|
1405
|
-
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
|
-
function
|
|
1408
|
+
function ll(e, n) {
|
|
1409
1409
|
const t = n.get(e);
|
|
1410
1410
|
if (t)
|
|
1411
1411
|
return t;
|
|
1412
|
-
let o =
|
|
1413
|
-
const a =
|
|
1414
|
-
let i = a ?
|
|
1415
|
-
for (;
|
|
1416
|
-
const c =
|
|
1417
|
-
!s && c.position === "fixed" && (l = null), (a ? !s && !l : !s && c.position === "static" && !!l &&
|
|
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
|
}
|
|
1421
|
-
function
|
|
1421
|
+
function al(e) {
|
|
1422
1422
|
let {
|
|
1423
1423
|
element: n,
|
|
1424
1424
|
boundary: t,
|
|
1425
1425
|
rootBoundary: o,
|
|
1426
1426
|
strategy: l
|
|
1427
1427
|
} = e;
|
|
1428
|
-
const i = [...t === "clippingAncestors" ?
|
|
1428
|
+
const i = [...t === "clippingAncestors" ? Je(n) ? [] : ll(n, this._c) : [].concat(t), o], c = i[0], s = i.reduce((r, u) => {
|
|
1429
1429
|
const d = jt(n, u, l);
|
|
1430
|
-
return r.top =
|
|
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
1431
|
}, jt(n, c, l));
|
|
1432
1432
|
return {
|
|
1433
1433
|
width: s.right - s.left,
|
|
@@ -1436,7 +1436,7 @@ function ll(e) {
|
|
|
1436
1436
|
y: s.top
|
|
1437
1437
|
};
|
|
1438
1438
|
}
|
|
1439
|
-
function
|
|
1439
|
+
function il(e) {
|
|
1440
1440
|
const {
|
|
1441
1441
|
width: n,
|
|
1442
1442
|
height: t
|
|
@@ -1446,23 +1446,23 @@ function al(e) {
|
|
|
1446
1446
|
height: t
|
|
1447
1447
|
};
|
|
1448
1448
|
}
|
|
1449
|
-
function
|
|
1450
|
-
const o =
|
|
1449
|
+
function sl(e, n, t) {
|
|
1450
|
+
const o = 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" ||
|
|
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
1468
|
y: v,
|
|
@@ -1470,39 +1470,39 @@ function il(e, n, t) {
|
|
|
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
1476
|
function Mt(e, n) {
|
|
1477
|
-
if (!
|
|
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
1497
|
let o = Mt(e, n);
|
|
1498
|
-
for (; o &&
|
|
1498
|
+
for (; o && Wo(o) && at(o); )
|
|
1499
1499
|
o = Mt(o, n);
|
|
1500
|
-
return o && Se(o) &&
|
|
1500
|
+
return o && Se(o) && at(o) && !pt(o) ? t : o || qo(e) || t;
|
|
1501
1501
|
}
|
|
1502
|
-
const
|
|
1502
|
+
const rl = async function(e) {
|
|
1503
1503
|
const n = this.getOffsetParent || an, t = this.getDimensions, o = await t(e.floating);
|
|
1504
1504
|
return {
|
|
1505
|
-
reference:
|
|
1505
|
+
reference: sl(e.reference, await n(e.floating), e.strategy),
|
|
1506
1506
|
floating: {
|
|
1507
1507
|
x: 0,
|
|
1508
1508
|
y: 0,
|
|
@@ -1511,27 +1511,27 @@ const sl = async function(e) {
|
|
|
1511
1511
|
}
|
|
1512
1512
|
};
|
|
1513
1513
|
};
|
|
1514
|
-
function
|
|
1515
|
-
return
|
|
1514
|
+
function cl(e) {
|
|
1515
|
+
return ie(e).direction === "rtl";
|
|
1516
1516
|
}
|
|
1517
|
-
const
|
|
1518
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
1519
|
-
getDocumentElement:
|
|
1520
|
-
getClippingRect:
|
|
1517
|
+
const ul = {
|
|
1518
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Qo,
|
|
1519
|
+
getDocumentElement: de,
|
|
1520
|
+
getClippingRect: al,
|
|
1521
1521
|
getOffsetParent: an,
|
|
1522
|
-
getElementRects:
|
|
1523
|
-
getClientRects:
|
|
1524
|
-
getDimensions:
|
|
1522
|
+
getElementRects: rl,
|
|
1523
|
+
getClientRects: Zo,
|
|
1524
|
+
getDimensions: il,
|
|
1525
1525
|
getScale: Ee,
|
|
1526
|
-
isElement:
|
|
1527
|
-
isRTL:
|
|
1526
|
+
isElement: ae,
|
|
1527
|
+
isRTL: cl
|
|
1528
1528
|
};
|
|
1529
1529
|
function sn(e, n) {
|
|
1530
1530
|
return e.x === n.x && e.y === n.y && e.width === n.width && e.height === n.height;
|
|
1531
1531
|
}
|
|
1532
|
-
function
|
|
1532
|
+
function dl(e, n) {
|
|
1533
1533
|
let t = null, o;
|
|
1534
|
-
const l =
|
|
1534
|
+
const l = de(e);
|
|
1535
1535
|
function a() {
|
|
1536
1536
|
var c;
|
|
1537
1537
|
clearTimeout(o), (c = t) == null || c.disconnect(), t = null;
|
|
@@ -1542,40 +1542,40 @@ function ul(e, n) {
|
|
|
1542
1542
|
left: u,
|
|
1543
1543
|
top: d,
|
|
1544
1544
|
width: v,
|
|
1545
|
-
height:
|
|
1545
|
+
height: p
|
|
1546
1546
|
} = r;
|
|
1547
|
-
if (c || n(), !v || !
|
|
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,59 +1583,59 @@ function Qe(e, n, t, o) {
|
|
|
1583
1583
|
elementResize: i = typeof ResizeObserver == "function",
|
|
1584
1584
|
layoutShift: c = typeof IntersectionObserver == "function",
|
|
1585
1585
|
animationFrame: s = !1
|
|
1586
|
-
} = o, r = gt(e), u = l || a ? [...r ?
|
|
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
|
-
const d = r && c ?
|
|
1593
|
-
let v = -1,
|
|
1594
|
-
i && (
|
|
1595
|
-
let [_] =
|
|
1596
|
-
_ && _.target === r &&
|
|
1597
|
-
var
|
|
1598
|
-
(
|
|
1592
|
+
const d = r && c ? dl(r, t) : null;
|
|
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
|
-
platform:
|
|
1616
|
+
platform: ul,
|
|
1617
1617
|
...t
|
|
1618
1618
|
}, a = {
|
|
1619
1619
|
...l.platform,
|
|
1620
1620
|
_c: o
|
|
1621
1621
|
};
|
|
1622
|
-
return
|
|
1622
|
+
return Do(e, n, {
|
|
1623
1623
|
...l,
|
|
1624
1624
|
platform: a
|
|
1625
1625
|
});
|
|
1626
1626
|
};
|
|
1627
|
-
function
|
|
1627
|
+
function vl(e) {
|
|
1628
1628
|
return e != null && typeof e == "object" && "$el" in e;
|
|
1629
1629
|
}
|
|
1630
1630
|
function Pt(e) {
|
|
1631
|
-
if (
|
|
1631
|
+
if (vl(e)) {
|
|
1632
1632
|
const n = e.$el;
|
|
1633
1633
|
return mt(n) && xe(n) === "#comment" ? null : n;
|
|
1634
1634
|
}
|
|
1635
1635
|
return e;
|
|
1636
1636
|
}
|
|
1637
|
-
function
|
|
1638
|
-
return typeof e == "function" ? e() :
|
|
1637
|
+
function Oe(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
|
-
return (k =
|
|
1652
|
-
}), a =
|
|
1651
|
+
return (k = Oe(t.open)) != null ? k : !0;
|
|
1652
|
+
}), a = V(() => Oe(t.middleware)), i = V(() => {
|
|
1653
1653
|
var k;
|
|
1654
|
-
return (k =
|
|
1655
|
-
}), c =
|
|
1654
|
+
return (k = Oe(t.placement)) != null ? k : "bottom";
|
|
1655
|
+
}), c = V(() => {
|
|
1656
1656
|
var k;
|
|
1657
|
-
return (k =
|
|
1658
|
-
}), s =
|
|
1657
|
+
return (k = Oe(t.strategy)) != null ? k : "absolute";
|
|
1658
|
+
}), s = V(() => {
|
|
1659
1659
|
var k;
|
|
1660
|
-
return (k =
|
|
1661
|
-
}), r =
|
|
1660
|
+
return (k = Oe(t.transform)) != null ? k : !0;
|
|
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:
|
|
1677
|
+
position: p.value,
|
|
1678
|
+
left: C + "px",
|
|
1679
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
|
|
1711
|
+
return N([a, i, c, l], w, {
|
|
1712
1712
|
flush: "sync"
|
|
1713
|
-
}),
|
|
1713
|
+
}), N([r, u], j, {
|
|
1714
1714
|
flush: "sync"
|
|
1715
|
-
}),
|
|
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
|
|
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 vl = /* @__PURE__ */ T({
|
|
|
1745
1745
|
d && (d.closest(".menu-action") || d.closest('[role="menuitem"]') || d.closest("a")) && s();
|
|
1746
1746
|
};
|
|
1747
1747
|
return (u, d) => {
|
|
1748
|
-
const v =
|
|
1749
|
-
return f(),
|
|
1748
|
+
const v = X("VjButton"), p = X("VjMenu");
|
|
1749
|
+
return f(), b(J, null, [
|
|
1750
1750
|
x("div", {
|
|
1751
|
-
class:
|
|
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,19 +1758,19 @@ const vl = /* @__PURE__ */ T({
|
|
|
1758
1758
|
icon: a.value,
|
|
1759
1759
|
onClick: c
|
|
1760
1760
|
}, null, 8, ["icon"]),
|
|
1761
|
-
|
|
1762
|
-
default:
|
|
1763
|
-
t.value ? (f(),
|
|
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: G(
|
|
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
1776
|
}, 8, ["style"])) : L("", !0)
|
|
@@ -1778,8 +1778,8 @@ const vl = /* @__PURE__ */ T({
|
|
|
1778
1778
|
_: 3
|
|
1779
1779
|
})
|
|
1780
1780
|
], 2),
|
|
1781
|
-
(f(),
|
|
1782
|
-
t.value ? (f(),
|
|
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
|
|
@@ -1788,7 +1788,7 @@ const vl = /* @__PURE__ */ T({
|
|
|
1788
1788
|
], 64);
|
|
1789
1789
|
};
|
|
1790
1790
|
}
|
|
1791
|
-
}),
|
|
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 vl = /* @__PURE__ */ T({
|
|
|
1800
1800
|
disabled: { type: Boolean }
|
|
1801
1801
|
},
|
|
1802
1802
|
setup(e) {
|
|
1803
|
-
const n = e, t = q.S, o =
|
|
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
|
-
const i =
|
|
1806
|
-
return f(),
|
|
1805
|
+
const i = X("router-link");
|
|
1806
|
+
return f(), M(i, {
|
|
1807
1807
|
to: e.to,
|
|
1808
|
-
class:
|
|
1808
|
+
class: I(["button", o.value]),
|
|
1809
1809
|
disabled: e.disabled
|
|
1810
1810
|
}, {
|
|
1811
|
-
default:
|
|
1812
|
-
e.icon ? (f(),
|
|
1811
|
+
default: K(() => [
|
|
1812
|
+
e.icon ? (f(), M(le, {
|
|
1813
1813
|
key: 0,
|
|
1814
1814
|
icon: e.icon,
|
|
1815
|
-
size:
|
|
1815
|
+
size: $(t)
|
|
1816
1816
|
}, null, 8, ["icon", "size"])) : L("", !0),
|
|
1817
|
-
Ue(" " +
|
|
1817
|
+
Ue(" " + D(e.label), 1)
|
|
1818
1818
|
]),
|
|
1819
1819
|
_: 1
|
|
1820
1820
|
}, 8, ["to", "class", "disabled"]);
|
|
1821
1821
|
};
|
|
1822
1822
|
}
|
|
1823
|
-
}),
|
|
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: {},
|
|
@@ -1829,27 +1829,27 @@ const vl = /* @__PURE__ */ T({
|
|
|
1829
1829
|
},
|
|
1830
1830
|
setup(e) {
|
|
1831
1831
|
const n = q.S;
|
|
1832
|
-
return (t, o) => (f(),
|
|
1832
|
+
return (t, o) => (f(), b("button", {
|
|
1833
1833
|
class: "menu-action button tertiary",
|
|
1834
1834
|
disabled: e.disabled
|
|
1835
1835
|
}, [
|
|
1836
|
-
x("span",
|
|
1837
|
-
e.icon ? (f(),
|
|
1836
|
+
x("span", yl, [
|
|
1837
|
+
e.icon ? (f(), M(le, {
|
|
1838
1838
|
key: 0,
|
|
1839
1839
|
icon: e.icon,
|
|
1840
|
-
size:
|
|
1840
|
+
size: $(n)
|
|
1841
1841
|
}, null, 8, ["icon", "size"])) : L("", !0)
|
|
1842
1842
|
]),
|
|
1843
|
-
x("span", null,
|
|
1844
|
-
], 8,
|
|
1843
|
+
x("span", null, D(e.label), 1)
|
|
1844
|
+
], 8, bl));
|
|
1845
1845
|
}
|
|
1846
|
-
}),
|
|
1847
|
-
function
|
|
1848
|
-
return f(),
|
|
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 Vl = /* @__PURE__ */
|
|
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,7 +1865,7 @@ const Vl = /* @__PURE__ */ D(_l, [["render", kl], ["__scopeId", "data-v-259fec08
|
|
|
1865
1865
|
'[tabindex]:not([tabindex="-1"])',
|
|
1866
1866
|
'[contenteditable="true"]'
|
|
1867
1867
|
].join(", ");
|
|
1868
|
-
function
|
|
1868
|
+
function $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)
|
|
@@ -1879,7 +1879,7 @@ const Ll = {
|
|
|
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,37 +1948,37 @@ 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
|
-
},
|
|
1969
|
-
function
|
|
1970
|
-
return f(),
|
|
1968
|
+
}, Tl = {}, Rl = { class: "spinner" };
|
|
1969
|
+
function Al(e, n) {
|
|
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;
|
|
1976
1976
|
const o = e.clientHeight || e.getBoundingClientRect().height;
|
|
1977
1977
|
t.classList.remove("vj-loading-inner--small", "vj-loading-inner--minimal");
|
|
1978
1978
|
const l = t.querySelector(".vj-loading-text");
|
|
1979
|
-
l && l.classList.remove("vj-loading-text--hidden"), o <=
|
|
1979
|
+
l && l.classList.remove("vj-loading-text--hidden"), o <= Dl ? (t.classList.add("vj-loading-inner--minimal"), l && l.classList.add("vj-loading-text--hidden")) : o <= Ol && t.classList.add("vj-loading-inner--small");
|
|
1980
1980
|
}
|
|
1981
|
-
const
|
|
1981
|
+
const Bl = {
|
|
1982
1982
|
mounted(e, n) {
|
|
1983
1983
|
let t, o;
|
|
1984
1984
|
if (typeof n.value == "object" && n.value !== null) {
|
|
@@ -1994,7 +1994,7 @@ const Dl = {
|
|
|
1994
1994
|
s.className = "vj-loading-inner", s.appendChild(c);
|
|
1995
1995
|
let r;
|
|
1996
1996
|
o && (r = document.createElement("div"), r.className = "vj-loading-text", r.textContent = o, s.appendChild(r)), i.appendChild(s), zt(e, i);
|
|
1997
|
-
const u =
|
|
1997
|
+
const u = 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 Dl = {
|
|
|
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,13 +2069,13 @@ 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(), v = (
|
|
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
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;
|
|
@@ -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,50 +2105,50 @@ 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) => (f(),
|
|
2123
|
-
class:
|
|
2122
|
+
return (i, c) => (f(), b("div", {
|
|
2123
|
+
class: I(["notification", `notification--${e.type}`]),
|
|
2124
2124
|
onClick: a
|
|
2125
2125
|
}, [
|
|
2126
|
-
x("div", jl, [
|
|
2127
|
-
O(be, { icon: l.value }, null, 8, ["icon"])
|
|
2128
|
-
]),
|
|
2129
2126
|
x("div", Ml, [
|
|
2130
|
-
|
|
2131
|
-
|
|
2127
|
+
R(le, { icon: l.value }, null, 8, ["icon"])
|
|
2128
|
+
]),
|
|
2129
|
+
x("div", Pl, [
|
|
2130
|
+
x("div", Fl, D(e.title), 1),
|
|
2131
|
+
x("div", zl, D(e.message), 1)
|
|
2132
2132
|
]),
|
|
2133
|
-
|
|
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 = {
|
|
2145
2145
|
key: 1,
|
|
2146
2146
|
class: "contents"
|
|
2147
2147
|
}, Gl = {
|
|
2148
2148
|
key: 2,
|
|
2149
2149
|
class: "actions"
|
|
2150
|
-
},
|
|
2151
|
-
directives: { loading:
|
|
2150
|
+
}, Yl = { key: 3 }, Jl = { key: 0 }, Ql = /* @__PURE__ */ 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
|
-
const s =
|
|
2167
|
-
return
|
|
2166
|
+
const s = X("VjButton"), r = Xt("loading");
|
|
2167
|
+
return ut((f(), b("div", Hl, [
|
|
2168
2168
|
x("header", null, [
|
|
2169
|
-
x("div",
|
|
2170
|
-
e.backLabel ? (f(),
|
|
2169
|
+
x("div", Wl, [
|
|
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
2176
|
}, null, 8, ["icon"])) : L("", !0),
|
|
2177
2177
|
x("div", Ul, [
|
|
2178
|
-
x("h1", null,
|
|
2179
|
-
e.subTitle ? (f(),
|
|
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
|
-
class:
|
|
2187
|
+
class: I({ scrollable: e.scrollable })
|
|
2188
2188
|
}, [
|
|
2189
|
-
a.value ? (f(),
|
|
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
2197
|
])) : L("", !0),
|
|
2198
|
-
a.value ? L("", !0) : (f(),
|
|
2199
|
-
|
|
2198
|
+
a.value ? L("", !0) : (f(), b("div", ql, [
|
|
2199
|
+
F(i.$slots, "default", {}, void 0, !0)
|
|
2200
2200
|
])),
|
|
2201
|
-
a.value ? L("", !0) : (f(),
|
|
2202
|
-
|
|
2201
|
+
a.value ? L("", !0) : (f(), b("div", Gl, [
|
|
2202
|
+
F(i.$slots, "actions", {}, void 0, !0)
|
|
2203
2203
|
])),
|
|
2204
|
-
i.$slots.flexFooter ? (f(),
|
|
2205
|
-
|
|
2204
|
+
i.$slots.flexFooter ? (f(), b("footer", Yl, [
|
|
2205
|
+
F(i.$slots, "flexFooter", {}, void 0, !0)
|
|
2206
2206
|
])) : L("", !0)
|
|
2207
2207
|
], 2),
|
|
2208
|
-
i.$slots.footer ? (f(),
|
|
2209
|
-
|
|
2208
|
+
i.$slots.footer ? (f(), b("footer", Jl, [
|
|
2209
|
+
F(i.$slots, "footer", {}, void 0, !0)
|
|
2210
2210
|
])) : L("", !0)
|
|
2211
2211
|
])), [
|
|
2212
2212
|
[r, { active: o.value, text: t.loadingMessage }]
|
|
2213
2213
|
]);
|
|
2214
2214
|
};
|
|
2215
2215
|
}
|
|
2216
|
-
}),
|
|
2216
|
+
}), Zl = /* @__PURE__ */ B(Ql, [["__scopeId", "data-v-3e724555"]]), ea = {
|
|
2217
2217
|
class: "paginator-info",
|
|
2218
2218
|
"aria-live": "polite"
|
|
2219
|
-
},
|
|
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
|
-
},
|
|
2235
|
-
return
|
|
2234
|
+
}, p = () => v(1), h = () => v(i.value - 1), y = () => v(i.value + 1), m = () => v(a.value);
|
|
2235
|
+
return N([() => t.totalItems, () => t.pageSize], () => {
|
|
2236
2236
|
o.value > a.value && v(a.value);
|
|
2237
|
-
}), (
|
|
2238
|
-
const
|
|
2239
|
-
return f(),
|
|
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
2264
|
goTo: v
|
|
2265
2265
|
}, () => [
|
|
2266
|
-
x("div",
|
|
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
|
-
}),
|
|
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,47 +2294,64 @@ 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
|
-
const c =
|
|
2304
|
-
return f(),
|
|
2305
|
-
|
|
2306
|
-
icon:
|
|
2307
|
-
size:
|
|
2303
|
+
const c = X("VjIcon");
|
|
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,
|
|
2311
2311
|
onInput: t,
|
|
2312
2312
|
type: "text",
|
|
2313
2313
|
placeholder: e.placeholder
|
|
2314
|
-
}, null, 40,
|
|
2315
|
-
|
|
2316
|
-
class:
|
|
2317
|
-
icon:
|
|
2318
|
-
size:
|
|
2314
|
+
}, null, 40, la),
|
|
2315
|
+
R(c, {
|
|
2316
|
+
class: I(["reset", { invisible: l.value }]),
|
|
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
|
-
}),
|
|
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) => (f(),
|
|
2331
|
-
class:
|
|
2330
|
+
return (n, t) => (f(), b("div", {
|
|
2331
|
+
class: I(["separator", { vertical: e.vertical }])
|
|
2332
2332
|
}, null, 2));
|
|
2333
2333
|
}
|
|
2334
|
-
}),
|
|
2334
|
+
}), ra = /* @__PURE__ */ B(sa, [["__scopeId", "data-v-e354bb4e"]]), ca = {
|
|
2335
|
+
key: 0,
|
|
2336
|
+
class: "tab"
|
|
2337
|
+
}, ua = /* @__PURE__ */ T({
|
|
2338
|
+
__name: "tab",
|
|
2339
|
+
props: {
|
|
2340
|
+
name: {},
|
|
2341
|
+
label: {}
|
|
2342
|
+
},
|
|
2343
|
+
setup(e) {
|
|
2344
|
+
const n = e, t = dt("tabView"), o = V(() => t?.activeTab() === n.name);
|
|
2345
|
+
return Te(() => {
|
|
2346
|
+
t?.registerTab(n.name, n.label);
|
|
2347
|
+
}), (l, a) => o.value ? (f(), b("div", ca, [
|
|
2348
|
+
F(l.$slots, "default")
|
|
2349
|
+
])) : L("", !0);
|
|
2350
|
+
}
|
|
2351
|
+
}), da = { class: "tab-view" }, fa = {
|
|
2335
2352
|
ref: "headerRef",
|
|
2336
2353
|
class: "tab-view-header"
|
|
2337
|
-
},
|
|
2354
|
+
}, va = ["onClick"], ma = { class: "tab-view-content" }, pa = /* @__PURE__ */ T({
|
|
2338
2355
|
__name: "tab-view",
|
|
2339
2356
|
props: {
|
|
2340
2357
|
modelValue: {},
|
|
@@ -2342,7 +2359,7 @@ const fn = {
|
|
|
2342
2359
|
},
|
|
2343
2360
|
emits: ["update:modelValue"],
|
|
2344
2361
|
setup(e) {
|
|
2345
|
-
const n =
|
|
2362
|
+
const n = ue(e, "modelValue"), t = E([]), o = E([]), l = E({
|
|
2346
2363
|
width: "0px",
|
|
2347
2364
|
transform: "translateX(0px)"
|
|
2348
2365
|
}), a = (r, u) => {
|
|
@@ -2357,57 +2374,175 @@ const fn = {
|
|
|
2357
2374
|
};
|
|
2358
2375
|
}
|
|
2359
2376
|
}, c = (r, u) => {
|
|
2360
|
-
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(() => {
|
|
2361
2378
|
!n.value && t.value.length === 1 && (n.value = r), i();
|
|
2362
2379
|
}));
|
|
2363
2380
|
}, s = (r) => {
|
|
2364
2381
|
n.value = r;
|
|
2365
2382
|
};
|
|
2366
|
-
return
|
|
2367
|
-
|
|
2383
|
+
return N(n, () => {
|
|
2384
|
+
he(() => {
|
|
2368
2385
|
i();
|
|
2369
2386
|
});
|
|
2370
|
-
}),
|
|
2387
|
+
}), Kt("tabView", {
|
|
2371
2388
|
activeTab: () => n.value,
|
|
2372
2389
|
registerTab: c
|
|
2373
|
-
}), (r, u) => (f(),
|
|
2374
|
-
x("div",
|
|
2375
|
-
(f(!0),
|
|
2390
|
+
}), (r, u) => (f(), b("div", da, [
|
|
2391
|
+
x("div", fa, [
|
|
2392
|
+
(f(!0), b(J, null, pe(t.value, (d, v) => (f(), b("div", {
|
|
2376
2393
|
key: d.name,
|
|
2377
2394
|
ref_for: !0,
|
|
2378
|
-
ref: (
|
|
2379
|
-
class:
|
|
2380
|
-
onClick: (
|
|
2381
|
-
},
|
|
2395
|
+
ref: (p) => a(p, v),
|
|
2396
|
+
class: I(["tab-button", { active: n.value === d.name }]),
|
|
2397
|
+
onClick: (p) => s(d.name)
|
|
2398
|
+
}, D(d.label), 11, va))), 128)),
|
|
2382
2399
|
u[0] || (u[0] = x("div", { class: "tab-line" }, null, -1)),
|
|
2383
2400
|
x("div", {
|
|
2384
2401
|
class: "tab-indicator",
|
|
2385
2402
|
style: G(l.value)
|
|
2386
2403
|
}, null, 4)
|
|
2387
2404
|
], 512),
|
|
2388
|
-
x("div",
|
|
2389
|
-
|
|
2405
|
+
x("div", ma, [
|
|
2406
|
+
F(r.$slots, "default", {}, void 0, !0)
|
|
2390
2407
|
])
|
|
2391
2408
|
]));
|
|
2392
2409
|
}
|
|
2393
|
-
}),
|
|
2394
|
-
|
|
2395
|
-
class: "tab"
|
|
2396
|
-
}, pa = /* @__PURE__ */ T({
|
|
2397
|
-
__name: "tab",
|
|
2410
|
+
}), ha = /* @__PURE__ */ 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
|
+
__name: "timer",
|
|
2398
2412
|
props: {
|
|
2399
|
-
|
|
2400
|
-
|
|
2413
|
+
duration: { default: 5e3 },
|
|
2414
|
+
action: { type: Function, default: void 0 },
|
|
2415
|
+
pausable: { type: Boolean, default: !1 },
|
|
2416
|
+
paused: { type: Boolean, default: !1 },
|
|
2417
|
+
timerSize: { default: "m" }
|
|
2401
2418
|
},
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2419
|
+
emits: ["update:paused"],
|
|
2420
|
+
setup(e, { emit: n }) {
|
|
2421
|
+
const t = {
|
|
2422
|
+
s: { size: 24, strokeWidth: 1, innerStrokeWidth: 2 },
|
|
2423
|
+
m: { size: 32, strokeWidth: 1, innerStrokeWidth: 4 },
|
|
2424
|
+
l: { size: 40, strokeWidth: 2, innerStrokeWidth: 6 },
|
|
2425
|
+
xl: { size: 64, strokeWidth: 2, innerStrokeWidth: 8 },
|
|
2426
|
+
xxl: { size: 92, strokeWidth: 2, innerStrokeWidth: 10 }
|
|
2427
|
+
}, o = e, l = n, a = 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
|
+
N(
|
|
2431
|
+
() => o.paused,
|
|
2432
|
+
(P) => {
|
|
2433
|
+
d.value = P, P ? k() : C();
|
|
2434
|
+
}
|
|
2435
|
+
), Te(() => {
|
|
2436
|
+
w();
|
|
2437
|
+
}), kn(() => {
|
|
2438
|
+
A();
|
|
2439
|
+
});
|
|
2440
|
+
function _() {
|
|
2441
|
+
o.pausable && (d.value = !d.value, l("update:paused", d.value));
|
|
2442
|
+
}
|
|
2443
|
+
function w() {
|
|
2444
|
+
d.value || (p = performance.now() - h, S());
|
|
2445
|
+
}
|
|
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
|
+
}
|
|
2452
|
+
async function j() {
|
|
2453
|
+
if (!o.action) {
|
|
2454
|
+
H();
|
|
2455
|
+
return;
|
|
2456
|
+
}
|
|
2457
|
+
s.value = !0;
|
|
2458
|
+
try {
|
|
2459
|
+
await o.action();
|
|
2460
|
+
} catch (P) {
|
|
2461
|
+
console.error("Timer action failed:", P);
|
|
2462
|
+
} finally {
|
|
2463
|
+
s.value = !1, H();
|
|
2464
|
+
}
|
|
2465
|
+
}
|
|
2466
|
+
function H() {
|
|
2467
|
+
u.value = !0, h = 0, requestAnimationFrame(() => {
|
|
2468
|
+
r.value = 100, requestAnimationFrame(() => {
|
|
2469
|
+
u.value = !1, w();
|
|
2470
|
+
});
|
|
2471
|
+
});
|
|
2472
|
+
}
|
|
2473
|
+
function k() {
|
|
2474
|
+
v !== null && (cancelAnimationFrame(v), v = null);
|
|
2475
|
+
}
|
|
2476
|
+
function C() {
|
|
2477
|
+
v === null && !s.value && w();
|
|
2478
|
+
}
|
|
2479
|
+
function A() {
|
|
2480
|
+
v !== null && (cancelAnimationFrame(v), v = null);
|
|
2481
|
+
}
|
|
2482
|
+
return (P, W) => (f(), b("svg", {
|
|
2483
|
+
width: a.value,
|
|
2484
|
+
height: a.value,
|
|
2485
|
+
class: I([
|
|
2486
|
+
"vj-timer",
|
|
2487
|
+
{
|
|
2488
|
+
"vj-timer--executing": s.value,
|
|
2489
|
+
"vj-timer--resetting": u.value,
|
|
2490
|
+
"vj-timer--pausable": e.pausable,
|
|
2491
|
+
"vj-timer--paused": d.value
|
|
2492
|
+
}
|
|
2493
|
+
]),
|
|
2494
|
+
role: e.pausable ? "button" : void 0,
|
|
2495
|
+
tabindex: e.pausable ? 0 : void 0,
|
|
2496
|
+
"aria-label": e.pausable ? d.value ? "Resume timer" : "Pause timer" : void 0,
|
|
2497
|
+
onClick: _,
|
|
2498
|
+
onKeydown: [
|
|
2499
|
+
Be(U(_, ["prevent"]), ["space"]),
|
|
2500
|
+
Be(_, ["enter"])
|
|
2501
|
+
]
|
|
2502
|
+
}, [
|
|
2503
|
+
x("circle", {
|
|
2504
|
+
cx: a.value / 2,
|
|
2505
|
+
cy: a.value / 2,
|
|
2506
|
+
r: y.value,
|
|
2507
|
+
"stroke-width": i.value,
|
|
2508
|
+
class: "vj-timer__outer-ring",
|
|
2509
|
+
fill: "none"
|
|
2510
|
+
}, null, 8, ba),
|
|
2511
|
+
x("circle", {
|
|
2512
|
+
cx: a.value / 2,
|
|
2513
|
+
cy: a.value / 2,
|
|
2514
|
+
r: y.value,
|
|
2515
|
+
"stroke-width": c.value,
|
|
2516
|
+
"stroke-dasharray": m.value,
|
|
2517
|
+
"stroke-dashoffset": g.value,
|
|
2518
|
+
class: "vj-timer__progress-ring",
|
|
2519
|
+
fill: "none"
|
|
2520
|
+
}, null, 8, ya),
|
|
2521
|
+
d.value ? (f(), b("g", {
|
|
2522
|
+
key: 0,
|
|
2523
|
+
class: "vj-timer__pause-icon",
|
|
2524
|
+
transform: `translate(${a.value / 2},${a.value / 2}) rotate(-90) scale(-1, 1)`
|
|
2525
|
+
}, [
|
|
2526
|
+
x("rect", {
|
|
2527
|
+
x: -a.value * 0.12,
|
|
2528
|
+
y: -a.value * 0.15,
|
|
2529
|
+
width: a.value * 0.08,
|
|
2530
|
+
height: a.value * 0.3,
|
|
2531
|
+
rx: a.value * 0.015,
|
|
2532
|
+
class: "vj-timer__pause-bar"
|
|
2533
|
+
}, null, 8, _a),
|
|
2534
|
+
x("rect", {
|
|
2535
|
+
x: a.value * 0.04,
|
|
2536
|
+
y: -a.value * 0.15,
|
|
2537
|
+
width: a.value * 0.08,
|
|
2538
|
+
height: a.value * 0.3,
|
|
2539
|
+
rx: a.value * 0.015,
|
|
2540
|
+
class: "vj-timer__pause-bar"
|
|
2541
|
+
}, null, 8, xa)
|
|
2542
|
+
], 8, wa)) : L("", !0)
|
|
2543
|
+
], 42, ga));
|
|
2409
2544
|
}
|
|
2410
|
-
}),
|
|
2545
|
+
}), Ca = /* @__PURE__ */ B(ka, [["__scopeId", "data-v-49a33853"]]), Va = ["onKeydown"], Ea = /* @__PURE__ */ T({
|
|
2411
2546
|
__name: "editable-label",
|
|
2412
2547
|
props: {
|
|
2413
2548
|
modelValue: {},
|
|
@@ -2415,12 +2550,12 @@ const fn = {
|
|
|
2415
2550
|
},
|
|
2416
2551
|
emits: ["update:modelValue", "edit"],
|
|
2417
2552
|
setup(e, { emit: n }) {
|
|
2418
|
-
const t = e, o = n, l =
|
|
2419
|
-
|
|
2420
|
-
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;
|
|
2421
2556
|
});
|
|
2422
2557
|
function u() {
|
|
2423
|
-
i.value = !0,
|
|
2558
|
+
i.value = !0, he(() => s.value?.focus());
|
|
2424
2559
|
}
|
|
2425
2560
|
function d() {
|
|
2426
2561
|
i.value = !1, a.value !== l.value && (o("update:modelValue", a.value), o("edit", a.value));
|
|
@@ -2428,43 +2563,43 @@ const fn = {
|
|
|
2428
2563
|
function v() {
|
|
2429
2564
|
a.value = l.value, i.value = !1;
|
|
2430
2565
|
}
|
|
2431
|
-
return (
|
|
2432
|
-
class:
|
|
2433
|
-
onMouseenter:
|
|
2434
|
-
onMouseleave:
|
|
2566
|
+
return (p, h) => (f(), b("span", {
|
|
2567
|
+
class: I(["vj-editable-label", { editing: i.value }]),
|
|
2568
|
+
onMouseenter: h[1] || (h[1] = (y) => c.value = !0),
|
|
2569
|
+
onMouseleave: h[2] || (h[2] = (y) => c.value = !1)
|
|
2435
2570
|
}, [
|
|
2436
|
-
i.value ?
|
|
2571
|
+
i.value ? ut((f(), b("input", {
|
|
2437
2572
|
key: 1,
|
|
2438
2573
|
ref_key: "inputRef",
|
|
2439
2574
|
ref: s,
|
|
2440
2575
|
class: "edit-input",
|
|
2441
|
-
"onUpdate:modelValue":
|
|
2576
|
+
"onUpdate:modelValue": h[0] || (h[0] = (y) => a.value = y),
|
|
2442
2577
|
onKeydown: [
|
|
2443
|
-
|
|
2444
|
-
|
|
2578
|
+
Be(U(d, ["prevent"]), ["enter"]),
|
|
2579
|
+
Be(U(v, ["prevent"]), ["esc"])
|
|
2445
2580
|
],
|
|
2446
2581
|
onBlur: d
|
|
2447
|
-
}, null, 40,
|
|
2448
|
-
[
|
|
2449
|
-
]) : (f(),
|
|
2582
|
+
}, null, 40, Va)), [
|
|
2583
|
+
[Cn, a.value]
|
|
2584
|
+
]) : (f(), b(J, { key: 0 }, [
|
|
2450
2585
|
x("span", {
|
|
2451
2586
|
class: "label-text",
|
|
2452
2587
|
onClick: u,
|
|
2453
2588
|
title: "Click to edit"
|
|
2454
|
-
},
|
|
2455
|
-
c.value || r.value ? (f(),
|
|
2589
|
+
}, D(l.value), 1),
|
|
2590
|
+
c.value || r.value ? (f(), b("span", {
|
|
2456
2591
|
key: 0,
|
|
2457
2592
|
class: "edit-icon",
|
|
2458
|
-
onClick:
|
|
2593
|
+
onClick: U(u, ["stop"])
|
|
2459
2594
|
}, [
|
|
2460
|
-
|
|
2461
|
-
icon:
|
|
2595
|
+
R(le, {
|
|
2596
|
+
icon: $(z).EDIT
|
|
2462
2597
|
}, null, 8, ["icon"])
|
|
2463
2598
|
])) : L("", !0)
|
|
2464
2599
|
], 64))
|
|
2465
2600
|
], 34));
|
|
2466
2601
|
}
|
|
2467
|
-
}),
|
|
2602
|
+
}), ls = /* @__PURE__ */ B(Ea, [["__scopeId", "data-v-cdc52c5b"]]), $a = "200% 200%", La = /* @__PURE__ */ T({
|
|
2468
2603
|
__name: "skeleton",
|
|
2469
2604
|
props: {
|
|
2470
2605
|
width: {},
|
|
@@ -2472,19 +2607,19 @@ const fn = {
|
|
|
2472
2607
|
borderRadius: {}
|
|
2473
2608
|
},
|
|
2474
2609
|
setup(e) {
|
|
2475
|
-
const n = e, t =
|
|
2476
|
-
return (a, i) => (f(),
|
|
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", {
|
|
2477
2612
|
class: "vj-skeleton",
|
|
2478
2613
|
style: G({
|
|
2479
2614
|
width: t.value,
|
|
2480
2615
|
height: o.value,
|
|
2481
2616
|
borderRadius: l.value,
|
|
2482
|
-
backgroundSize:
|
|
2617
|
+
backgroundSize: $a
|
|
2483
2618
|
}),
|
|
2484
2619
|
"aria-hidden": "true"
|
|
2485
2620
|
}, null, 4));
|
|
2486
2621
|
}
|
|
2487
|
-
}),
|
|
2622
|
+
}), Sa = /* @__PURE__ */ B(La, [["__scopeId", "data-v-ac05e016"]]), Ta = /* @__PURE__ */ T({
|
|
2488
2623
|
__name: "amount-bar",
|
|
2489
2624
|
props: {
|
|
2490
2625
|
amount: {},
|
|
@@ -2493,13 +2628,13 @@ const fn = {
|
|
|
2493
2628
|
colorMode: { default: "monochrome" }
|
|
2494
2629
|
},
|
|
2495
2630
|
setup(e) {
|
|
2496
|
-
const n = e, t =
|
|
2631
|
+
const n = e, t = V(() => n.amount / n.maxAmount * 100), o = (a) => {
|
|
2497
2632
|
if (!n.segments) return !1;
|
|
2498
2633
|
const i = 100 / n.segments, c = a * i;
|
|
2499
2634
|
return t.value > c;
|
|
2500
2635
|
}, l = (a) => (160 - a / (n.segments - 1 || 1) * 160).toString();
|
|
2501
|
-
return (a, i) => (f(),
|
|
2502
|
-
class:
|
|
2636
|
+
return (a, i) => (f(), b("div", {
|
|
2637
|
+
class: I([
|
|
2503
2638
|
"amount-bar",
|
|
2504
2639
|
{
|
|
2505
2640
|
"amount-bar--segmented": e.segments,
|
|
@@ -2508,27 +2643,139 @@ const fn = {
|
|
|
2508
2643
|
}
|
|
2509
2644
|
])
|
|
2510
2645
|
}, [
|
|
2511
|
-
e.segments ? (f(!0),
|
|
2646
|
+
e.segments ? (f(!0), b(J, { key: 0 }, pe(Array.from({ length: e.segments }), (c, s) => (f(), b("div", {
|
|
2512
2647
|
key: s,
|
|
2513
|
-
class:
|
|
2648
|
+
class: I(["amount-bar__segment", { "amount-bar__segment--filled": o(s) }]),
|
|
2514
2649
|
style: G(o(s) && e.colorMode === "hue-gradient" ? { backgroundColor: `hsl(${l(s)}, 100%, 45%)` } : {})
|
|
2515
|
-
}, null, 6))), 128)) : (f(),
|
|
2650
|
+
}, null, 6))), 128)) : (f(), b("div", {
|
|
2516
2651
|
key: 1,
|
|
2517
2652
|
class: "amount-bar__fill",
|
|
2518
2653
|
style: G({ width: `${e.amount / e.maxAmount * 100}%` })
|
|
2519
2654
|
}, null, 4))
|
|
2520
2655
|
], 2));
|
|
2521
2656
|
}
|
|
2522
|
-
}),
|
|
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 = {
|
|
2523
2770
|
form: {
|
|
2524
2771
|
labelPosition: "inline",
|
|
2525
2772
|
appearance: "bordered"
|
|
2526
2773
|
}
|
|
2527
2774
|
};
|
|
2528
|
-
let
|
|
2529
|
-
function
|
|
2530
|
-
|
|
2531
|
-
...
|
|
2775
|
+
let qe = {};
|
|
2776
|
+
function as(e) {
|
|
2777
|
+
qe = {
|
|
2778
|
+
...qe,
|
|
2532
2779
|
...e,
|
|
2533
2780
|
form: {
|
|
2534
2781
|
...vn.form,
|
|
@@ -2540,22 +2787,22 @@ function Ht() {
|
|
|
2540
2787
|
return {
|
|
2541
2788
|
form: {
|
|
2542
2789
|
...vn.form,
|
|
2543
|
-
...
|
|
2790
|
+
...qe.form
|
|
2544
2791
|
}
|
|
2545
2792
|
};
|
|
2546
2793
|
}
|
|
2547
|
-
function
|
|
2548
|
-
|
|
2794
|
+
function is() {
|
|
2795
|
+
qe = {};
|
|
2549
2796
|
}
|
|
2550
|
-
const
|
|
2797
|
+
const Wa = ["data-colspan", "data-newline"], Ua = ["for"], Ka = { class: "form-field__wrapper" }, Na = ["for"], Xa = {
|
|
2551
2798
|
key: 1,
|
|
2552
2799
|
class: "form-field__error"
|
|
2553
|
-
},
|
|
2800
|
+
}, qa = {
|
|
2554
2801
|
key: 2,
|
|
2555
2802
|
class: "form-field__help",
|
|
2556
2803
|
type: "button",
|
|
2557
2804
|
"aria-label": "Hilfe"
|
|
2558
|
-
},
|
|
2805
|
+
}, Ga = /* @__PURE__ */ T({
|
|
2559
2806
|
directives: { tooltip: fn },
|
|
2560
2807
|
__name: "form-field",
|
|
2561
2808
|
props: {
|
|
@@ -2574,31 +2821,31 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
2574
2821
|
},
|
|
2575
2822
|
emits: ["update:modelValue", "focus", "blur"],
|
|
2576
2823
|
setup(e, { emit: n }) {
|
|
2577
|
-
const t = e, o = n, l = E(t.modelValue), a = E(!1), i =
|
|
2578
|
-
|
|
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);
|
|
2825
|
+
N(
|
|
2579
2826
|
() => t.modelValue,
|
|
2580
|
-
(
|
|
2827
|
+
(h) => l.value = h
|
|
2581
2828
|
);
|
|
2582
|
-
const r =
|
|
2829
|
+
const r = V(() => {
|
|
2583
2830
|
if (c.value === "outline")
|
|
2584
2831
|
return !0;
|
|
2585
|
-
const
|
|
2586
|
-
return a.value ||
|
|
2587
|
-
}), u =
|
|
2588
|
-
function d(
|
|
2589
|
-
const
|
|
2590
|
-
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);
|
|
2591
2838
|
}
|
|
2592
|
-
function v(
|
|
2593
|
-
a.value = !0, o("focus",
|
|
2839
|
+
function v(h) {
|
|
2840
|
+
a.value = !0, o("focus", h);
|
|
2594
2841
|
}
|
|
2595
|
-
function
|
|
2596
|
-
a.value = !1, o("blur",
|
|
2842
|
+
function p(h) {
|
|
2843
|
+
a.value = !1, o("blur", h);
|
|
2597
2844
|
}
|
|
2598
|
-
return (
|
|
2599
|
-
const
|
|
2600
|
-
return f(),
|
|
2601
|
-
class:
|
|
2845
|
+
return (h, y) => {
|
|
2846
|
+
const m = X("VjIcon"), g = Xt("tooltip");
|
|
2847
|
+
return f(), b("div", {
|
|
2848
|
+
class: I([
|
|
2602
2849
|
"form-field",
|
|
2603
2850
|
`form-field--${c.value}`,
|
|
2604
2851
|
`form-field--${s.value}`,
|
|
@@ -2610,39 +2857,39 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
2610
2857
|
"data-newline": t.spanRow || t.newLine ? "true" : void 0,
|
|
2611
2858
|
style: G(t.spanRow ? { gridColumn: "1 / -1" } : void 0)
|
|
2612
2859
|
}, [
|
|
2613
|
-
e.label && c.value === "outline" ? (f(),
|
|
2860
|
+
e.label && c.value === "outline" ? (f(), b("label", {
|
|
2614
2861
|
key: 0,
|
|
2615
2862
|
for: i.value,
|
|
2616
2863
|
class: "form-field__label-outline"
|
|
2617
|
-
},
|
|
2618
|
-
x("div",
|
|
2619
|
-
|
|
2864
|
+
}, D(e.label), 9, Ua)) : L("", !0),
|
|
2865
|
+
x("div", Ka, [
|
|
2866
|
+
F(h.$slots, "control", {
|
|
2620
2867
|
id: i.value,
|
|
2621
2868
|
value: l.value,
|
|
2622
2869
|
onInput: d,
|
|
2623
2870
|
onFocus: v,
|
|
2624
|
-
onBlur:
|
|
2871
|
+
onBlur: p,
|
|
2625
2872
|
disabled: e.disabled,
|
|
2626
2873
|
placeholder: u.value
|
|
2627
2874
|
}, void 0, !0),
|
|
2628
|
-
e.label && c.value === "inline" ? (f(),
|
|
2875
|
+
e.label && c.value === "inline" ? (f(), b("label", {
|
|
2629
2876
|
key: 0,
|
|
2630
2877
|
for: i.value,
|
|
2631
|
-
class:
|
|
2632
|
-
},
|
|
2878
|
+
class: I(["form-field__label", { "form-field__label--float": r.value }])
|
|
2879
|
+
}, D(e.label), 11, Na)) : L("", !0)
|
|
2633
2880
|
]),
|
|
2634
|
-
e.error ? (f(),
|
|
2635
|
-
t.helpText ?
|
|
2636
|
-
|
|
2637
|
-
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
|
|
2638
2885
|
}, null, 8, ["icon"])
|
|
2639
2886
|
])), [
|
|
2640
|
-
[
|
|
2887
|
+
[g, t.helpText]
|
|
2641
2888
|
]) : L("", !0)
|
|
2642
|
-
], 14,
|
|
2889
|
+
], 14, Wa);
|
|
2643
2890
|
};
|
|
2644
2891
|
}
|
|
2645
|
-
}),
|
|
2892
|
+
}), Ie = /* @__PURE__ */ B(Ga, [["__scopeId", "data-v-19959d5e"]]), Ya = /* @__PURE__ */ T({
|
|
2646
2893
|
__name: "form-layout",
|
|
2647
2894
|
props: {
|
|
2648
2895
|
columns: { type: Number, default: 4 },
|
|
@@ -2658,49 +2905,49 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
2658
2905
|
r !== null && r !== "false" ? i.style.gridColumn = "1 / -1" : i.style.gridColumn = `span ${s}`;
|
|
2659
2906
|
});
|
|
2660
2907
|
}
|
|
2661
|
-
return
|
|
2662
|
-
|
|
2908
|
+
return Te(() => {
|
|
2909
|
+
he(() => {
|
|
2663
2910
|
l(), t.value && (o = new MutationObserver(() => l()), o.observe(t.value, { childList: !0, subtree: !1, attributes: !0, attributeFilter: ["data-colspan", "data-newline"] }));
|
|
2664
2911
|
});
|
|
2665
2912
|
}), Re(() => {
|
|
2666
2913
|
o?.disconnect();
|
|
2667
|
-
}),
|
|
2914
|
+
}), N(
|
|
2668
2915
|
() => n.columns,
|
|
2669
|
-
() =>
|
|
2670
|
-
),
|
|
2916
|
+
() => he(l)
|
|
2917
|
+
), N(
|
|
2671
2918
|
() => n.gap,
|
|
2672
|
-
() =>
|
|
2673
|
-
), (a, i) => (f(),
|
|
2919
|
+
() => he(l)
|
|
2920
|
+
), (a, i) => (f(), b("div", {
|
|
2674
2921
|
ref_key: "container",
|
|
2675
2922
|
ref: t,
|
|
2676
2923
|
class: "form-layout",
|
|
2677
2924
|
style: G({ gridTemplateColumns: `repeat(${e.columns}, minmax(0, 1fr))`, gap: e.gap })
|
|
2678
2925
|
}, [
|
|
2679
|
-
|
|
2926
|
+
F(a.$slots, "default", {}, void 0, !0)
|
|
2680
2927
|
], 4));
|
|
2681
2928
|
}
|
|
2682
|
-
}),
|
|
2929
|
+
}), Ja = /* @__PURE__ */ B(Ya, [["__scopeId", "data-v-96f62ab7"]]), Qa = {
|
|
2683
2930
|
key: 0,
|
|
2684
2931
|
class: "form-section__title",
|
|
2685
2932
|
"data-newline": ""
|
|
2686
|
-
},
|
|
2933
|
+
}, Za = /* @__PURE__ */ T({
|
|
2687
2934
|
__name: "form-section",
|
|
2688
2935
|
props: {
|
|
2689
2936
|
title: {}
|
|
2690
2937
|
},
|
|
2691
2938
|
setup(e) {
|
|
2692
|
-
return (n, t) => (f(),
|
|
2693
|
-
e.title ? (f(),
|
|
2694
|
-
|
|
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)
|
|
2695
2942
|
], 64));
|
|
2696
2943
|
}
|
|
2697
|
-
}),
|
|
2944
|
+
}), ei = /* @__PURE__ */ B(Za, [["__scopeId", "data-v-69cff1d0"]]), ti = ["id", "disabled"], ni = { class: "select-value" }, oi = {
|
|
2698
2945
|
key: 1,
|
|
2699
2946
|
class: "select-placeholder"
|
|
2700
|
-
},
|
|
2947
|
+
}, li = { class: "select-options" }, ai = ["onClick", "onMouseenter"], ii = /* @__PURE__ */ T({
|
|
2701
2948
|
inheritAttrs: !1,
|
|
2702
2949
|
__name: "select",
|
|
2703
|
-
props: /* @__PURE__ */
|
|
2950
|
+
props: /* @__PURE__ */ Q({
|
|
2704
2951
|
options: {},
|
|
2705
2952
|
placeholder: {},
|
|
2706
2953
|
disabled: { type: Boolean },
|
|
@@ -2715,48 +2962,48 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
2715
2962
|
}),
|
|
2716
2963
|
emits: ["update:modelValue"],
|
|
2717
2964
|
setup(e, { expose: n }) {
|
|
2718
|
-
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, {
|
|
2719
2966
|
placement: "bottom-start",
|
|
2720
2967
|
middleware: [
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
apply({ rects:
|
|
2726
|
-
Object.assign(
|
|
2727
|
-
minWidth: `${
|
|
2968
|
+
tt(4),
|
|
2969
|
+
ot(),
|
|
2970
|
+
nt({ padding: 8 }),
|
|
2971
|
+
fl({
|
|
2972
|
+
apply({ rects: w, elements: S }) {
|
|
2973
|
+
Object.assign(S.floating.style, {
|
|
2974
|
+
minWidth: `${w.reference.width}px`
|
|
2728
2975
|
});
|
|
2729
2976
|
}
|
|
2730
2977
|
})
|
|
2731
2978
|
],
|
|
2732
|
-
whileElementsMounted:
|
|
2733
|
-
}), 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 = () => {
|
|
2734
2981
|
t.disabled || (l.value = !l.value);
|
|
2735
|
-
}, w = () => {
|
|
2736
|
-
l.value = !1, a.value = -1;
|
|
2737
|
-
}, h = (b) => {
|
|
2738
|
-
o.value = d(b), w();
|
|
2739
2982
|
}, y = () => {
|
|
2983
|
+
l.value = !1, a.value = -1;
|
|
2984
|
+
}, m = (w) => {
|
|
2985
|
+
o.value = d(w), y();
|
|
2986
|
+
}, g = () => {
|
|
2740
2987
|
o.value = void 0;
|
|
2741
|
-
}, _ = (
|
|
2742
|
-
l.value && i.value && !i.value.contains(
|
|
2988
|
+
}, _ = (w) => {
|
|
2989
|
+
l.value && i.value && !i.value.contains(w.target) && y();
|
|
2743
2990
|
};
|
|
2744
|
-
return
|
|
2991
|
+
return Te(() => {
|
|
2745
2992
|
document.addEventListener("click", _);
|
|
2746
2993
|
}), Re(() => {
|
|
2747
2994
|
document.removeEventListener("click", _);
|
|
2748
|
-
}),
|
|
2749
|
-
|
|
2995
|
+
}), N(l, (w) => {
|
|
2996
|
+
w && v.value && (a.value = t.options.findIndex((S) => p(S)));
|
|
2750
2997
|
}), n({
|
|
2751
2998
|
focus: () => c.value?.focus(),
|
|
2752
2999
|
blur: () => c.value?.blur()
|
|
2753
|
-
}), (
|
|
2754
|
-
const j =
|
|
2755
|
-
return f(),
|
|
3000
|
+
}), (w, S) => {
|
|
3001
|
+
const j = X("VjIcon");
|
|
3002
|
+
return f(), b(J, null, [
|
|
2756
3003
|
x("div", {
|
|
2757
3004
|
ref_key: "selectRef",
|
|
2758
3005
|
ref: i,
|
|
2759
|
-
class:
|
|
3006
|
+
class: I(["select", w.$attrs.class])
|
|
2760
3007
|
}, [
|
|
2761
3008
|
x("button", {
|
|
2762
3009
|
ref_key: "buttonRef",
|
|
@@ -2764,76 +3011,76 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
2764
3011
|
type: "button",
|
|
2765
3012
|
class: "select-trigger",
|
|
2766
3013
|
id: t.id,
|
|
2767
|
-
onClick:
|
|
3014
|
+
onClick: h,
|
|
2768
3015
|
disabled: e.disabled
|
|
2769
3016
|
}, [
|
|
2770
|
-
t.icon ? (f(),
|
|
3017
|
+
t.icon ? (f(), M(j, {
|
|
2771
3018
|
key: 0,
|
|
2772
3019
|
icon: t.icon,
|
|
2773
|
-
size:
|
|
3020
|
+
size: $(q).S,
|
|
2774
3021
|
class: "select-icon-left"
|
|
2775
3022
|
}, null, 8, ["icon", "size"])) : L("", !0),
|
|
2776
|
-
x("span",
|
|
2777
|
-
v.value ?
|
|
3023
|
+
x("span", ni, [
|
|
3024
|
+
v.value ? F(w.$slots, "selected", {
|
|
2778
3025
|
key: 0,
|
|
2779
3026
|
option: v.value
|
|
2780
3027
|
}, () => [
|
|
2781
|
-
Ue(
|
|
2782
|
-
], !0) : (f(),
|
|
3028
|
+
Ue(D(u(v.value)), 1)
|
|
3029
|
+
], !0) : (f(), b("span", oi, D(e.placeholder), 1))
|
|
2783
3030
|
]),
|
|
2784
|
-
t.clearable && v.value && !e.disabled ? (f(),
|
|
3031
|
+
t.clearable && v.value && !e.disabled ? (f(), M(j, {
|
|
2785
3032
|
key: 1,
|
|
2786
|
-
icon:
|
|
2787
|
-
size:
|
|
3033
|
+
icon: $(z).CLOSE,
|
|
3034
|
+
size: $(q).S,
|
|
2788
3035
|
class: "select-clear-icon",
|
|
2789
|
-
onClick:
|
|
3036
|
+
onClick: U(g, ["stop"])
|
|
2790
3037
|
}, null, 8, ["icon", "size"])) : L("", !0),
|
|
2791
|
-
|
|
2792
|
-
icon:
|
|
2793
|
-
size:
|
|
2794
|
-
class:
|
|
3038
|
+
R(j, {
|
|
3039
|
+
icon: $(z).CHEVRON_DOWN,
|
|
3040
|
+
size: $(q).S,
|
|
3041
|
+
class: I(["select-icon-right", { open: l.value }])
|
|
2795
3042
|
}, null, 8, ["icon", "size", "class"])
|
|
2796
|
-
], 8,
|
|
2797
|
-
|
|
2798
|
-
default:
|
|
2799
|
-
l.value ? (f(),
|
|
3043
|
+
], 8, ti),
|
|
3044
|
+
R(De, { name: "dropdown" }, {
|
|
3045
|
+
default: K(() => [
|
|
3046
|
+
l.value ? (f(), b("div", {
|
|
2800
3047
|
key: 0,
|
|
2801
3048
|
ref_key: "floatingRef",
|
|
2802
3049
|
ref: s,
|
|
2803
|
-
style: G(
|
|
3050
|
+
style: G($(r)),
|
|
2804
3051
|
class: "select-dropdown"
|
|
2805
3052
|
}, [
|
|
2806
|
-
x("div",
|
|
2807
|
-
(f(!0),
|
|
2808
|
-
key: String(d(
|
|
2809
|
-
class:
|
|
2810
|
-
onClick: (
|
|
2811
|
-
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
|
|
2812
3059
|
}, [
|
|
2813
|
-
|
|
2814
|
-
option:
|
|
2815
|
-
selected:
|
|
3060
|
+
F(w.$slots, "option", {
|
|
3061
|
+
option: H,
|
|
3062
|
+
selected: p(H)
|
|
2816
3063
|
}, () => [
|
|
2817
|
-
Ue(
|
|
3064
|
+
Ue(D(u(H)), 1)
|
|
2818
3065
|
], !0)
|
|
2819
|
-
], 42,
|
|
3066
|
+
], 42, ai))), 128))
|
|
2820
3067
|
])
|
|
2821
3068
|
], 4)) : L("", !0)
|
|
2822
3069
|
]),
|
|
2823
3070
|
_: 3
|
|
2824
3071
|
})
|
|
2825
3072
|
], 2),
|
|
2826
|
-
(f(),
|
|
2827
|
-
l.value ? (f(),
|
|
3073
|
+
(f(), M(Me, { to: "body" }, [
|
|
3074
|
+
l.value ? (f(), b("div", {
|
|
2828
3075
|
key: 0,
|
|
2829
3076
|
class: "select-backdrop",
|
|
2830
|
-
onClick:
|
|
3077
|
+
onClick: y
|
|
2831
3078
|
})) : L("", !0)
|
|
2832
3079
|
]))
|
|
2833
3080
|
], 64);
|
|
2834
3081
|
};
|
|
2835
3082
|
}
|
|
2836
|
-
}), mn = /* @__PURE__ */
|
|
3083
|
+
}), mn = /* @__PURE__ */ B(ii, [["__scopeId", "data-v-fc22f0e9"]]), si = /* @__PURE__ */ T({
|
|
2837
3084
|
__name: "input-select",
|
|
2838
3085
|
props: {
|
|
2839
3086
|
modelValue: {},
|
|
@@ -2853,7 +3100,7 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
2853
3100
|
emits: ["update:modelValue", "input", "focus", "blur"],
|
|
2854
3101
|
setup(e, { emit: n }) {
|
|
2855
3102
|
const t = e, o = n, l = E(t.modelValue);
|
|
2856
|
-
|
|
3103
|
+
N(
|
|
2857
3104
|
() => t.modelValue,
|
|
2858
3105
|
(i) => {
|
|
2859
3106
|
l.value = i;
|
|
@@ -2862,7 +3109,7 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
2862
3109
|
const a = (i) => {
|
|
2863
3110
|
l.value = i, o("update:modelValue", i);
|
|
2864
3111
|
};
|
|
2865
|
-
return (i, c) => (f(),
|
|
3112
|
+
return (i, c) => (f(), M(Ie, {
|
|
2866
3113
|
modelValue: l.value,
|
|
2867
3114
|
"onUpdate:modelValue": a,
|
|
2868
3115
|
label: t.label,
|
|
@@ -2877,8 +3124,8 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
2877
3124
|
labelPosition: t.labelPosition,
|
|
2878
3125
|
appearance: t.appearance
|
|
2879
3126
|
}, {
|
|
2880
|
-
control:
|
|
2881
|
-
|
|
3127
|
+
control: K(({ id: s, disabled: r, placeholder: u }) => [
|
|
3128
|
+
R(mn, {
|
|
2882
3129
|
id: s,
|
|
2883
3130
|
modelValue: l.value,
|
|
2884
3131
|
"onUpdate:modelValue": [
|
|
@@ -2891,18 +3138,18 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
2891
3138
|
"option-label": (d) => d.label,
|
|
2892
3139
|
"option-value": (d) => d.value,
|
|
2893
3140
|
clearable: ""
|
|
2894
|
-
},
|
|
3141
|
+
}, ct({ _: 2 }, [
|
|
2895
3142
|
i.$slots.selected ? {
|
|
2896
3143
|
name: "selected",
|
|
2897
|
-
fn:
|
|
2898
|
-
|
|
3144
|
+
fn: K(({ option: d }) => [
|
|
3145
|
+
F(i.$slots, "selected", { option: d })
|
|
2899
3146
|
]),
|
|
2900
3147
|
key: "0"
|
|
2901
3148
|
} : void 0,
|
|
2902
3149
|
i.$slots.option ? {
|
|
2903
3150
|
name: "option",
|
|
2904
|
-
fn:
|
|
2905
|
-
|
|
3151
|
+
fn: K(({ option: d }) => [
|
|
3152
|
+
F(i.$slots, "option", { option: d })
|
|
2906
3153
|
]),
|
|
2907
3154
|
key: "1"
|
|
2908
3155
|
} : void 0
|
|
@@ -2911,7 +3158,7 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
2911
3158
|
_: 3
|
|
2912
3159
|
}, 8, ["modelValue", "label", "id", "placeholder", "disabled", "colspan", "newLine", "spanRow", "error", "helpText", "labelPosition", "appearance"]));
|
|
2913
3160
|
}
|
|
2914
|
-
}),
|
|
3161
|
+
}), ri = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-label"], ci = ["aria-valuemin", "aria-valuemax", "aria-valuenow"], ui = /* @__PURE__ */ T({
|
|
2915
3162
|
__name: "slider",
|
|
2916
3163
|
props: {
|
|
2917
3164
|
modelValue: { default: void 0 },
|
|
@@ -2922,58 +3169,58 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
2922
3169
|
},
|
|
2923
3170
|
emits: ["update:modelValue", "change"],
|
|
2924
3171
|
setup(e, { emit: n }) {
|
|
2925
|
-
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(
|
|
2926
3173
|
t.range ? Array.isArray(t.modelValue) ? t.modelValue[0] : t.min : typeof t.modelValue == "number" ? t.modelValue : t.min
|
|
2927
3174
|
), r = E(t.range && Array.isArray(t.modelValue) ? t.modelValue[1] : t.max);
|
|
2928
|
-
|
|
3175
|
+
N(
|
|
2929
3176
|
() => t.modelValue,
|
|
2930
3177
|
(k) => {
|
|
2931
3178
|
t.range ? Array.isArray(k) && (s.value = c(k[0], t.min, t.max), r.value = c(k[1], t.min, t.max)) : typeof k == "number" && (s.value = c(k, t.min, t.max));
|
|
2932
3179
|
},
|
|
2933
3180
|
{ immediate: !0 }
|
|
2934
3181
|
);
|
|
2935
|
-
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(() => {
|
|
2936
3183
|
if (!t.range) return { width: `${u(s.value)}%`, left: "0%" };
|
|
2937
|
-
const k = u(s.value),
|
|
2938
|
-
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)}%` };
|
|
2939
3186
|
});
|
|
2940
|
-
let
|
|
2941
|
-
const
|
|
2942
|
-
|
|
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;
|
|
2943
3190
|
try {
|
|
2944
|
-
|
|
3191
|
+
C.target.setPointerCapture(C.pointerId);
|
|
2945
3192
|
} catch {
|
|
2946
3193
|
}
|
|
2947
|
-
window.addEventListener("pointermove", _), window.addEventListener("pointerup",
|
|
2948
|
-
},
|
|
2949
|
-
if (
|
|
3194
|
+
window.addEventListener("pointermove", _), window.addEventListener("pointerup", g);
|
|
3195
|
+
}, g = (k) => {
|
|
3196
|
+
if (y != null && k)
|
|
2950
3197
|
try {
|
|
2951
3198
|
k.target.releasePointerCapture(k.pointerId);
|
|
2952
3199
|
} catch {
|
|
2953
3200
|
}
|
|
2954
|
-
|
|
3201
|
+
h = null, y = null, a.value = !1, i.value = !1, window.removeEventListener("pointermove", _), window.removeEventListener("pointerup", g), j();
|
|
2955
3202
|
}, _ = (k) => {
|
|
2956
|
-
if (!
|
|
2957
|
-
const
|
|
2958
|
-
|
|
2959
|
-
},
|
|
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) => {
|
|
2960
3207
|
if (!l.value) return;
|
|
2961
|
-
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;
|
|
2962
3209
|
if (t.range) {
|
|
2963
|
-
const
|
|
2964
|
-
|
|
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);
|
|
2965
3212
|
} else
|
|
2966
|
-
s.value = c(
|
|
3213
|
+
s.value = c(W, t.min, t.max);
|
|
2967
3214
|
j();
|
|
2968
|
-
},
|
|
2969
|
-
const A = t.step,
|
|
2970
|
-
if (
|
|
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;
|
|
3217
|
+
if (P) {
|
|
2971
3218
|
if (k === "low") {
|
|
2972
|
-
const
|
|
2973
|
-
s.value =
|
|
3219
|
+
const W = c(s.value + P * A, t.min, t.range ? r.value : t.max);
|
|
3220
|
+
s.value = W, a.value = !0, setTimeout(() => a.value = !1, 800);
|
|
2974
3221
|
} else {
|
|
2975
|
-
const
|
|
2976
|
-
r.value =
|
|
3222
|
+
const W = c(r.value + P * A, t.range ? s.value : t.max, t.max);
|
|
3223
|
+
r.value = W, i.value = !0, setTimeout(() => i.value = !1, 800);
|
|
2977
3224
|
}
|
|
2978
3225
|
j();
|
|
2979
3226
|
}
|
|
@@ -2981,53 +3228,53 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
2981
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));
|
|
2982
3229
|
};
|
|
2983
3230
|
Re(() => {
|
|
2984
|
-
window.removeEventListener("pointermove", _), window.removeEventListener("pointerup",
|
|
2985
|
-
}),
|
|
3231
|
+
window.removeEventListener("pointermove", _), window.removeEventListener("pointerup", g);
|
|
3232
|
+
}), N([() => t.min, () => t.max], () => {
|
|
2986
3233
|
s.value = c(s.value, t.min, t.max), r.value = c(r.value, t.min, t.max);
|
|
2987
3234
|
});
|
|
2988
|
-
const
|
|
2989
|
-
return
|
|
3235
|
+
const H = V(() => t.range);
|
|
3236
|
+
return he(() => {
|
|
2990
3237
|
t.modelValue === void 0 && (t.range ? o("update:modelValue", [s.value, r.value]) : o("update:modelValue", s.value));
|
|
2991
|
-
}), (k,
|
|
3238
|
+
}), (k, C) => (f(), b("div", {
|
|
2992
3239
|
class: "vj-slider",
|
|
2993
|
-
onPointerdown:
|
|
3240
|
+
onPointerdown: C[8] || (C[8] = U(() => {
|
|
2994
3241
|
}, ["stop"]))
|
|
2995
3242
|
}, [
|
|
2996
3243
|
x("div", {
|
|
2997
3244
|
class: "track",
|
|
2998
3245
|
ref_key: "track",
|
|
2999
3246
|
ref: l,
|
|
3000
|
-
onClick:
|
|
3247
|
+
onClick: w
|
|
3001
3248
|
}, [
|
|
3002
3249
|
x("div", {
|
|
3003
3250
|
class: "range",
|
|
3004
|
-
style: G(
|
|
3251
|
+
style: G(p.value)
|
|
3005
3252
|
}, null, 4),
|
|
3006
|
-
a.value ? (f(),
|
|
3253
|
+
a.value ? (f(), b("div", {
|
|
3007
3254
|
key: 0,
|
|
3008
3255
|
class: "tooltip",
|
|
3009
3256
|
style: G({ left: d.value.left })
|
|
3010
|
-
},
|
|
3257
|
+
}, D(s.value), 5)) : L("", !0),
|
|
3011
3258
|
x("button", {
|
|
3012
3259
|
class: "handle low",
|
|
3013
3260
|
style: G(d.value),
|
|
3014
3261
|
"aria-valuemin": e.min,
|
|
3015
3262
|
"aria-valuemax": e.max,
|
|
3016
3263
|
"aria-valuenow": s.value,
|
|
3017
|
-
"aria-label":
|
|
3018
|
-
onPointerdown:
|
|
3019
|
-
onFocus:
|
|
3020
|
-
onBlur:
|
|
3021
|
-
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"])),
|
|
3022
3269
|
role: "slider",
|
|
3023
3270
|
tabindex: "0"
|
|
3024
|
-
}, null, 44,
|
|
3025
|
-
|
|
3271
|
+
}, null, 44, ri),
|
|
3272
|
+
H.value && i.value ? (f(), b("div", {
|
|
3026
3273
|
key: 1,
|
|
3027
3274
|
class: "tooltip",
|
|
3028
3275
|
style: G({ left: v.value.left })
|
|
3029
|
-
},
|
|
3030
|
-
|
|
3276
|
+
}, D(r.value), 5)) : L("", !0),
|
|
3277
|
+
H.value ? (f(), b("button", {
|
|
3031
3278
|
key: 2,
|
|
3032
3279
|
class: "handle high",
|
|
3033
3280
|
style: G(v.value),
|
|
@@ -3035,17 +3282,17 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
3035
3282
|
"aria-valuemax": e.max,
|
|
3036
3283
|
"aria-valuenow": r.value,
|
|
3037
3284
|
"aria-label": "Upper value",
|
|
3038
|
-
onPointerdown:
|
|
3039
|
-
onFocus:
|
|
3040
|
-
onBlur:
|
|
3041
|
-
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"])),
|
|
3042
3289
|
role: "slider",
|
|
3043
3290
|
tabindex: "0"
|
|
3044
|
-
}, null, 44,
|
|
3291
|
+
}, null, 44, ci)) : L("", !0)
|
|
3045
3292
|
], 512)
|
|
3046
3293
|
], 32));
|
|
3047
3294
|
}
|
|
3048
|
-
}),
|
|
3295
|
+
}), di = /* @__PURE__ */ B(ui, [["__scopeId", "data-v-d47c7475"]]), fi = ["onFocusin", "onFocusout"], vi = /* @__PURE__ */ T({
|
|
3049
3296
|
__name: "input-slider",
|
|
3050
3297
|
props: {
|
|
3051
3298
|
modelValue: {},
|
|
@@ -3070,7 +3317,7 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
3070
3317
|
const s = typeof c == "number" ? c : Number(c ?? 0);
|
|
3071
3318
|
a.value = Number.isNaN(s) ? 0 : s, o("update:modelValue", a.value), o("input", a.value);
|
|
3072
3319
|
};
|
|
3073
|
-
return (c, s) => (f(),
|
|
3320
|
+
return (c, s) => (f(), M(Ie, {
|
|
3074
3321
|
modelValue: a.value,
|
|
3075
3322
|
"onUpdate:modelValue": i,
|
|
3076
3323
|
label: t.label,
|
|
@@ -3082,30 +3329,30 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
3082
3329
|
spanRow: t.spanRow,
|
|
3083
3330
|
error: t.error
|
|
3084
3331
|
}, {
|
|
3085
|
-
control:
|
|
3332
|
+
control: K(({ id: r, disabled: u, placeholder: d, onFocus: v, onBlur: p }) => [
|
|
3086
3333
|
x("div", {
|
|
3087
3334
|
class: "input-slider__control",
|
|
3088
3335
|
onFocusin: v,
|
|
3089
|
-
onFocusout:
|
|
3336
|
+
onFocusout: p
|
|
3090
3337
|
}, [
|
|
3091
|
-
|
|
3338
|
+
R(di, {
|
|
3092
3339
|
id: r,
|
|
3093
3340
|
modelValue: a.value,
|
|
3094
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
3341
|
+
"onUpdate:modelValue": s[0] || (s[0] = (h) => a.value = h),
|
|
3095
3342
|
min: t.min,
|
|
3096
3343
|
max: t.max,
|
|
3097
3344
|
step: t.step,
|
|
3098
3345
|
range: !1,
|
|
3099
3346
|
disabled: u
|
|
3100
3347
|
}, null, 8, ["id", "modelValue", "min", "max", "step", "disabled"])
|
|
3101
|
-
], 40,
|
|
3348
|
+
], 40, fi)
|
|
3102
3349
|
]),
|
|
3103
3350
|
_: 1
|
|
3104
3351
|
}, 8, ["modelValue", "label", "id", "disabled", "colspan", "newLine", "spanRow", "error"]));
|
|
3105
3352
|
}
|
|
3106
|
-
}),
|
|
3353
|
+
}), mi = /* @__PURE__ */ B(vi, [["__scopeId", "data-v-051e6d17"]]), pi = { class: "textarea" }, hi = ["value", "placeholder", "disabled", "rows"], gi = /* @__PURE__ */ T({
|
|
3107
3354
|
__name: "textarea",
|
|
3108
|
-
props: /* @__PURE__ */
|
|
3355
|
+
props: /* @__PURE__ */ Q({
|
|
3109
3356
|
icon: {},
|
|
3110
3357
|
placeholder: {},
|
|
3111
3358
|
disabled: { type: Boolean },
|
|
@@ -3115,9 +3362,9 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
3115
3362
|
modelValue: {},
|
|
3116
3363
|
modelModifiers: {}
|
|
3117
3364
|
}),
|
|
3118
|
-
emits: /* @__PURE__ */
|
|
3365
|
+
emits: /* @__PURE__ */ Q(["focus", "blur"], ["update:modelValue"]),
|
|
3119
3366
|
setup(e, { emit: n }) {
|
|
3120
|
-
const t = n, o =
|
|
3367
|
+
const t = n, o = ue(e, "modelValue"), l = (r) => {
|
|
3121
3368
|
o.value = r.target.value;
|
|
3122
3369
|
}, a = () => {
|
|
3123
3370
|
o.value = "";
|
|
@@ -3125,14 +3372,14 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
3125
3372
|
t("focus", r);
|
|
3126
3373
|
}, c = (r) => {
|
|
3127
3374
|
t("blur", r);
|
|
3128
|
-
}, s =
|
|
3375
|
+
}, s = V(() => !o.value);
|
|
3129
3376
|
return (r, u) => {
|
|
3130
|
-
const d =
|
|
3131
|
-
return f(),
|
|
3132
|
-
e.icon ? (f(),
|
|
3377
|
+
const d = X("VjIcon");
|
|
3378
|
+
return f(), b("div", pi, [
|
|
3379
|
+
e.icon ? (f(), M(d, {
|
|
3133
3380
|
key: 0,
|
|
3134
3381
|
icon: e.icon,
|
|
3135
|
-
size:
|
|
3382
|
+
size: $(q).S,
|
|
3136
3383
|
class: "textarea-icon"
|
|
3137
3384
|
}, null, 8, ["icon", "size"])) : L("", !0),
|
|
3138
3385
|
x("textarea", {
|
|
@@ -3143,18 +3390,18 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
3143
3390
|
placeholder: e.placeholder,
|
|
3144
3391
|
disabled: e.disabled,
|
|
3145
3392
|
rows: e.rows
|
|
3146
|
-
}, null, 40,
|
|
3147
|
-
e.clearable && !e.disabled ? (f(),
|
|
3393
|
+
}, null, 40, hi),
|
|
3394
|
+
e.clearable && !e.disabled ? (f(), M(d, {
|
|
3148
3395
|
key: 1,
|
|
3149
|
-
class:
|
|
3150
|
-
icon:
|
|
3151
|
-
size:
|
|
3396
|
+
class: I(["clear-icon", { invisible: s.value }]),
|
|
3397
|
+
icon: $(z).CLOSE,
|
|
3398
|
+
size: $(q).S,
|
|
3152
3399
|
onClick: a
|
|
3153
3400
|
}, null, 8, ["class", "icon", "size"])) : L("", !0)
|
|
3154
3401
|
]);
|
|
3155
3402
|
};
|
|
3156
3403
|
}
|
|
3157
|
-
}), pn = /* @__PURE__ */
|
|
3404
|
+
}), pn = /* @__PURE__ */ B(gi, [["__scopeId", "data-v-2ea43716"]]), bi = /* @__PURE__ */ T({
|
|
3158
3405
|
__name: "input-text-area",
|
|
3159
3406
|
props: {
|
|
3160
3407
|
modelValue: {},
|
|
@@ -3175,11 +3422,11 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
3175
3422
|
setup(e, { emit: n }) {
|
|
3176
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) => {
|
|
3177
3424
|
l(u ?? "");
|
|
3178
|
-
}, r =
|
|
3425
|
+
}, r = V(() => {
|
|
3179
3426
|
const u = t.modelValue;
|
|
3180
3427
|
return u == null ? "" : String(u);
|
|
3181
3428
|
});
|
|
3182
|
-
return (u, d) => (f(),
|
|
3429
|
+
return (u, d) => (f(), M(Ie, {
|
|
3183
3430
|
modelValue: t.modelValue,
|
|
3184
3431
|
"onUpdate:modelValue": l,
|
|
3185
3432
|
onInput: a,
|
|
@@ -3197,19 +3444,19 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
3197
3444
|
helpText: t.helpText,
|
|
3198
3445
|
appearance: t.appearance
|
|
3199
3446
|
}, {
|
|
3200
|
-
control:
|
|
3201
|
-
|
|
3447
|
+
control: K(({ id: v, disabled: p, placeholder: h, onFocus: y, onBlur: m }) => [
|
|
3448
|
+
R(pn, {
|
|
3202
3449
|
id: v,
|
|
3203
3450
|
modelValue: r.value,
|
|
3204
3451
|
"onUpdate:modelValue": s,
|
|
3205
|
-
onFocus: (
|
|
3206
|
-
|
|
3452
|
+
onFocus: (g) => {
|
|
3453
|
+
y(g), i(g);
|
|
3207
3454
|
},
|
|
3208
|
-
onBlur: (
|
|
3209
|
-
|
|
3455
|
+
onBlur: (g) => {
|
|
3456
|
+
m(g), c(g);
|
|
3210
3457
|
},
|
|
3211
|
-
placeholder:
|
|
3212
|
-
disabled:
|
|
3458
|
+
placeholder: h,
|
|
3459
|
+
disabled: p,
|
|
3213
3460
|
rows: t.rows,
|
|
3214
3461
|
clearable: ""
|
|
3215
3462
|
}, null, 8, ["id", "modelValue", "onFocus", "onBlur", "placeholder", "disabled", "rows"])
|
|
@@ -3217,9 +3464,9 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
3217
3464
|
_: 1
|
|
3218
3465
|
}, 8, ["modelValue", "label", "id", "placeholder", "disabled", "colspan", "newLine", "spanRow", "labelPosition", "error", "helpText", "appearance"]));
|
|
3219
3466
|
}
|
|
3220
|
-
}),
|
|
3467
|
+
}), yi = { class: "input" }, wi = ["value", "type", "placeholder", "disabled"], _i = /* @__PURE__ */ T({
|
|
3221
3468
|
__name: "input",
|
|
3222
|
-
props: /* @__PURE__ */
|
|
3469
|
+
props: /* @__PURE__ */ Q({
|
|
3223
3470
|
icon: {},
|
|
3224
3471
|
type: {},
|
|
3225
3472
|
placeholder: {},
|
|
@@ -3229,9 +3476,9 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
3229
3476
|
modelValue: {},
|
|
3230
3477
|
modelModifiers: {}
|
|
3231
3478
|
}),
|
|
3232
|
-
emits: /* @__PURE__ */
|
|
3479
|
+
emits: /* @__PURE__ */ Q(["focus", "blur"], ["update:modelValue"]),
|
|
3233
3480
|
setup(e, { emit: n }) {
|
|
3234
|
-
const t = n, o =
|
|
3481
|
+
const t = n, o = ue(e, "modelValue"), l = (r) => {
|
|
3235
3482
|
o.value = r.target.value;
|
|
3236
3483
|
}, a = () => {
|
|
3237
3484
|
o.value = "";
|
|
@@ -3239,14 +3486,14 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
3239
3486
|
t("focus", r);
|
|
3240
3487
|
}, c = (r) => {
|
|
3241
3488
|
t("blur", r);
|
|
3242
|
-
}, s =
|
|
3489
|
+
}, s = V(() => !o.value);
|
|
3243
3490
|
return (r, u) => {
|
|
3244
|
-
const d =
|
|
3245
|
-
return f(),
|
|
3246
|
-
e.icon ? (f(),
|
|
3491
|
+
const d = X("VjIcon");
|
|
3492
|
+
return f(), b("div", yi, [
|
|
3493
|
+
e.icon ? (f(), M(d, {
|
|
3247
3494
|
key: 0,
|
|
3248
3495
|
icon: e.icon,
|
|
3249
|
-
size:
|
|
3496
|
+
size: $(q).S
|
|
3250
3497
|
}, null, 8, ["icon", "size"])) : L("", !0),
|
|
3251
3498
|
x("input", {
|
|
3252
3499
|
value: o.value,
|
|
@@ -3256,18 +3503,18 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
3256
3503
|
type: e.type,
|
|
3257
3504
|
placeholder: e.placeholder,
|
|
3258
3505
|
disabled: e.disabled
|
|
3259
|
-
}, null, 40,
|
|
3260
|
-
e.clearable && !e.disabled ? (f(),
|
|
3506
|
+
}, null, 40, wi),
|
|
3507
|
+
e.clearable && !e.disabled ? (f(), M(d, {
|
|
3261
3508
|
key: 1,
|
|
3262
|
-
class:
|
|
3263
|
-
icon:
|
|
3264
|
-
size:
|
|
3509
|
+
class: I(["clear-icon", { invisible: s.value }]),
|
|
3510
|
+
icon: $(z).CLOSE,
|
|
3511
|
+
size: $(q).S,
|
|
3265
3512
|
onClick: a
|
|
3266
3513
|
}, null, 8, ["class", "icon", "size"])) : L("", !0)
|
|
3267
3514
|
]);
|
|
3268
3515
|
};
|
|
3269
3516
|
}
|
|
3270
|
-
}), hn = /* @__PURE__ */
|
|
3517
|
+
}), hn = /* @__PURE__ */ B(_i, [["__scopeId", "data-v-3187d49c"]]), xi = /* @__PURE__ */ T({
|
|
3271
3518
|
__name: "input-text",
|
|
3272
3519
|
props: {
|
|
3273
3520
|
modelValue: {},
|
|
@@ -3289,7 +3536,7 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
3289
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) => {
|
|
3290
3537
|
l(r ?? "");
|
|
3291
3538
|
};
|
|
3292
|
-
return (r, u) => (f(),
|
|
3539
|
+
return (r, u) => (f(), M(Ie, {
|
|
3293
3540
|
modelValue: e.modelValue,
|
|
3294
3541
|
"onUpdate:modelValue": l,
|
|
3295
3542
|
onInput: a,
|
|
@@ -3307,19 +3554,19 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
3307
3554
|
labelPosition: e.labelPosition,
|
|
3308
3555
|
appearance: e.appearance
|
|
3309
3556
|
}, {
|
|
3310
|
-
control:
|
|
3311
|
-
|
|
3557
|
+
control: K(({ id: d, disabled: v, placeholder: p, onFocus: h, onBlur: y }) => [
|
|
3558
|
+
R(hn, {
|
|
3312
3559
|
id: d,
|
|
3313
3560
|
modelValue: e.modelValue,
|
|
3314
3561
|
type: e.type,
|
|
3315
3562
|
"onUpdate:modelValue": s,
|
|
3316
|
-
onFocus: (
|
|
3317
|
-
|
|
3563
|
+
onFocus: (m) => {
|
|
3564
|
+
h(m), i(m);
|
|
3318
3565
|
},
|
|
3319
|
-
onBlur: (
|
|
3320
|
-
|
|
3566
|
+
onBlur: (m) => {
|
|
3567
|
+
y(m), c(m);
|
|
3321
3568
|
},
|
|
3322
|
-
placeholder:
|
|
3569
|
+
placeholder: p,
|
|
3323
3570
|
disabled: v,
|
|
3324
3571
|
clearable: ""
|
|
3325
3572
|
}, null, 8, ["id", "modelValue", "type", "onFocus", "onBlur", "placeholder", "disabled"])
|
|
@@ -3327,10 +3574,10 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
3327
3574
|
_: 1
|
|
3328
3575
|
}, 8, ["modelValue", "label", "id", "placeholder", "disabled", "colspan", "newLine", "spanRow", "error", "helpText", "labelPosition", "appearance"]));
|
|
3329
3576
|
}
|
|
3330
|
-
}),
|
|
3577
|
+
}), ki = { class: "shell-navigation-item" }, Ci = { class: "shell-navigation-item-label" }, Vi = {
|
|
3331
3578
|
key: 1,
|
|
3332
3579
|
class: "shell-navigation-item-link"
|
|
3333
|
-
},
|
|
3580
|
+
}, Ei = ["aria-expanded"], $i = { class: "shell-navigation-item-label" }, Li = /* @__PURE__ */ T({
|
|
3334
3581
|
__name: "shell-navigation-item",
|
|
3335
3582
|
props: {
|
|
3336
3583
|
label: {},
|
|
@@ -3338,10 +3585,10 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
3338
3585
|
to: {}
|
|
3339
3586
|
},
|
|
3340
3587
|
setup(e) {
|
|
3341
|
-
const n =
|
|
3588
|
+
const n = Ut(), t = V(() => !!n.default), o = E(!1), l = E(null), a = E(null), { floatingStyles: i } = bt(l, a, {
|
|
3342
3589
|
placement: "right-start",
|
|
3343
|
-
middleware: [
|
|
3344
|
-
whileElementsMounted:
|
|
3590
|
+
middleware: [tt(8), ot(), nt({ padding: 8 })],
|
|
3591
|
+
whileElementsMounted: et
|
|
3345
3592
|
}), c = (v) => {
|
|
3346
3593
|
t.value && (o.value = !o.value);
|
|
3347
3594
|
}, s = () => {
|
|
@@ -3351,65 +3598,65 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
3351
3598
|
}, u = (v) => {
|
|
3352
3599
|
(v.key === "Escape" || v.key === "Esc") && s();
|
|
3353
3600
|
}, d = (v) => {
|
|
3354
|
-
const
|
|
3355
|
-
|
|
3601
|
+
const p = v.target;
|
|
3602
|
+
p && (l.value && l.value.contains(p) || a.value && a.value.contains(p) || s());
|
|
3356
3603
|
};
|
|
3357
|
-
return
|
|
3604
|
+
return N(o, (v) => {
|
|
3358
3605
|
v ? (window.addEventListener("keydown", u), window.addEventListener("pointerdown", d)) : (window.removeEventListener("keydown", u), window.removeEventListener("pointerdown", d));
|
|
3359
3606
|
}), Re(() => {
|
|
3360
3607
|
window.removeEventListener("keydown", u), window.removeEventListener("pointerdown", d);
|
|
3361
|
-
}), (v,
|
|
3362
|
-
const
|
|
3363
|
-
return f(),
|
|
3364
|
-
e.to ? (f(),
|
|
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, {
|
|
3365
3612
|
key: 0,
|
|
3366
3613
|
to: e.to,
|
|
3367
3614
|
class: "shell-navigation-item-link"
|
|
3368
3615
|
}, {
|
|
3369
|
-
default:
|
|
3370
|
-
|
|
3616
|
+
default: K(() => [
|
|
3617
|
+
R(h, {
|
|
3371
3618
|
icon: e.icon,
|
|
3372
3619
|
class: "shell-navigation-item-icon"
|
|
3373
3620
|
}, null, 8, ["icon"]),
|
|
3374
|
-
x("label",
|
|
3621
|
+
x("label", Ci, D(e.label), 1)
|
|
3375
3622
|
]),
|
|
3376
3623
|
_: 1
|
|
3377
|
-
}, 8, ["to"])) : (f(),
|
|
3624
|
+
}, 8, ["to"])) : (f(), b("div", Vi, [
|
|
3378
3625
|
x("button", {
|
|
3379
3626
|
ref_key: "buttonRef",
|
|
3380
3627
|
ref: l,
|
|
3381
3628
|
class: "shell-navigation-item-button",
|
|
3382
|
-
onClick:
|
|
3629
|
+
onClick: U(c, ["stop"]),
|
|
3383
3630
|
"aria-expanded": o.value,
|
|
3384
3631
|
type: "button"
|
|
3385
3632
|
}, [
|
|
3386
|
-
|
|
3633
|
+
R(h, {
|
|
3387
3634
|
icon: e.icon,
|
|
3388
3635
|
class: "shell-navigation-item-icon"
|
|
3389
3636
|
}, null, 8, ["icon"]),
|
|
3390
|
-
x("label",
|
|
3391
|
-
], 8,
|
|
3392
|
-
|
|
3393
|
-
default:
|
|
3394
|
-
o.value ? (f(),
|
|
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, {
|
|
3395
3642
|
key: 0,
|
|
3396
3643
|
ref_key: "floatingRef",
|
|
3397
3644
|
ref: a,
|
|
3398
|
-
style: G(
|
|
3645
|
+
style: G($(i)),
|
|
3399
3646
|
class: "shell-navigation-item-menu",
|
|
3400
3647
|
onClose: s,
|
|
3401
|
-
onClick:
|
|
3648
|
+
onClick: U(r, ["stop"])
|
|
3402
3649
|
}, {
|
|
3403
|
-
default:
|
|
3404
|
-
|
|
3650
|
+
default: K(() => [
|
|
3651
|
+
F(v.$slots, "default", {}, void 0, !0)
|
|
3405
3652
|
]),
|
|
3406
3653
|
_: 3
|
|
3407
3654
|
}, 8, ["style"])) : L("", !0)
|
|
3408
3655
|
]),
|
|
3409
3656
|
_: 3
|
|
3410
3657
|
}),
|
|
3411
|
-
(f(),
|
|
3412
|
-
o.value ? (f(),
|
|
3658
|
+
(f(), M(Me, { to: "body" }, [
|
|
3659
|
+
o.value ? (f(), b("div", {
|
|
3413
3660
|
key: 0,
|
|
3414
3661
|
class: "menu-backdrop",
|
|
3415
3662
|
onClick: s
|
|
@@ -3419,39 +3666,39 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
3419
3666
|
]);
|
|
3420
3667
|
};
|
|
3421
3668
|
}
|
|
3422
|
-
}),
|
|
3669
|
+
}), Si = /* @__PURE__ */ B(Li, [["__scopeId", "data-v-3a50d1c2"]]), Ti = { class: "navigation-top" }, Ri = {
|
|
3423
3670
|
key: 0,
|
|
3424
3671
|
class: "navigation-bottom"
|
|
3425
|
-
},
|
|
3672
|
+
}, Ai = /* @__PURE__ */ T({
|
|
3426
3673
|
__name: "shell-navigation",
|
|
3427
3674
|
setup(e) {
|
|
3428
|
-
const n =
|
|
3675
|
+
const n = dt(Wi, Ki()), t = V(() => n.showLabels);
|
|
3429
3676
|
return (o, l) => {
|
|
3430
|
-
const a =
|
|
3431
|
-
return f(),
|
|
3432
|
-
class:
|
|
3677
|
+
const a = X("VjShellNavigationItem");
|
|
3678
|
+
return f(), b("nav", {
|
|
3679
|
+
class: I(["shell-navigation", { "with-labels": t.value }])
|
|
3433
3680
|
}, [
|
|
3434
|
-
x("ul",
|
|
3435
|
-
|
|
3681
|
+
x("ul", Ti, [
|
|
3682
|
+
$(n).hasParent && $(n).backRoute.value ? (f(), M(a, {
|
|
3436
3683
|
key: 0,
|
|
3437
|
-
to:
|
|
3684
|
+
to: $(n).backRoute.value,
|
|
3438
3685
|
label: "BACK",
|
|
3439
|
-
icon:
|
|
3686
|
+
icon: $(z).HOME
|
|
3440
3687
|
}, null, 8, ["to", "icon"])) : L("", !0),
|
|
3441
|
-
(f(!0),
|
|
3688
|
+
(f(!0), b(J, null, pe($(n).childRoutes.value, (i) => (f(), M(a, {
|
|
3442
3689
|
key: i.name,
|
|
3443
3690
|
to: { name: i.name },
|
|
3444
3691
|
label: i.meta.label,
|
|
3445
|
-
icon: i.meta.icon ??
|
|
3692
|
+
icon: i.meta.icon ?? $(z).HOME
|
|
3446
3693
|
}, null, 8, ["to", "label", "icon"]))), 128))
|
|
3447
3694
|
]),
|
|
3448
|
-
o.$slots.fixed ? (f(),
|
|
3449
|
-
|
|
3695
|
+
o.$slots.fixed ? (f(), b("ul", Ri, [
|
|
3696
|
+
F(o.$slots, "fixed", {}, void 0, !0)
|
|
3450
3697
|
])) : L("", !0)
|
|
3451
3698
|
], 2);
|
|
3452
3699
|
};
|
|
3453
3700
|
}
|
|
3454
|
-
}), 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({
|
|
3455
3702
|
__name: "shell",
|
|
3456
3703
|
props: {
|
|
3457
3704
|
title: {},
|
|
@@ -3459,55 +3706,55 @@ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-f
|
|
|
3459
3706
|
showNavigation: { type: Boolean }
|
|
3460
3707
|
},
|
|
3461
3708
|
setup(e) {
|
|
3462
|
-
const n =
|
|
3709
|
+
const n = Yi(), t = lt(n, "asideComponent"), o = lt(n, "hasAside"), l = lt(n, "asideData"), a = V(() => {
|
|
3463
3710
|
const i = l.value;
|
|
3464
3711
|
return i && typeof i == "object" ? i : {};
|
|
3465
3712
|
});
|
|
3466
3713
|
return (i, c) => {
|
|
3467
|
-
const s =
|
|
3468
|
-
return f(),
|
|
3714
|
+
const s = X("router-view");
|
|
3715
|
+
return f(), b("div", Oi, [
|
|
3469
3716
|
x("header", null, [
|
|
3470
|
-
x("span",
|
|
3471
|
-
e.icon ? (f(),
|
|
3717
|
+
x("span", Di, [
|
|
3718
|
+
e.icon ? (f(), b("img", {
|
|
3472
3719
|
key: 0,
|
|
3473
3720
|
src: e.icon,
|
|
3474
3721
|
alt: "Shell Icon"
|
|
3475
|
-
}, null, 8,
|
|
3476
|
-
x("h1", null,
|
|
3722
|
+
}, null, 8, Bi)) : L("", !0),
|
|
3723
|
+
x("h1", null, D(e.title), 1)
|
|
3477
3724
|
]),
|
|
3478
|
-
x("div",
|
|
3479
|
-
|
|
3725
|
+
x("div", ji, [
|
|
3726
|
+
F(i.$slots, "header-actions", {}, void 0, !0)
|
|
3480
3727
|
])
|
|
3481
3728
|
]),
|
|
3482
3729
|
x("div", {
|
|
3483
|
-
class:
|
|
3730
|
+
class: I(["shell-content", { "with-navigation": e.showNavigation }])
|
|
3484
3731
|
}, [
|
|
3485
|
-
e.showNavigation ? (f(),
|
|
3732
|
+
e.showNavigation ? (f(), M($(gn), { key: 0 }, ct({ _: 2 }, [
|
|
3486
3733
|
i.$slots?.["navigation-fixed"] ? {
|
|
3487
3734
|
name: "fixed",
|
|
3488
|
-
fn:
|
|
3489
|
-
|
|
3735
|
+
fn: K(() => [
|
|
3736
|
+
F(i.$slots, "navigation-fixed", {}, void 0, !0)
|
|
3490
3737
|
]),
|
|
3491
3738
|
key: "0"
|
|
3492
3739
|
} : void 0
|
|
3493
3740
|
]), 1024)) : L("", !0),
|
|
3494
3741
|
x("main", null, [
|
|
3495
|
-
|
|
3496
|
-
|
|
3742
|
+
F(i.$slots, "default", {}, () => [
|
|
3743
|
+
R(s)
|
|
3497
3744
|
], !0)
|
|
3498
3745
|
]),
|
|
3499
3746
|
x("aside", {
|
|
3500
|
-
class:
|
|
3747
|
+
class: I({ "aside-visible": o.value })
|
|
3501
3748
|
}, [
|
|
3502
|
-
(f(),
|
|
3749
|
+
(f(), M(Nt(t.value), Vn(En(a.value)), null, 16))
|
|
3503
3750
|
], 2)
|
|
3504
3751
|
], 2),
|
|
3505
3752
|
c[0] || (c[0] = x("footer", null, null, -1))
|
|
3506
3753
|
]);
|
|
3507
3754
|
};
|
|
3508
3755
|
}
|
|
3509
|
-
}),
|
|
3510
|
-
class
|
|
3756
|
+
}), Pi = /* @__PURE__ */ B(Mi, [["__scopeId", "data-v-4dfd0097"]]);
|
|
3757
|
+
class Fi {
|
|
3511
3758
|
notifications = E([]);
|
|
3512
3759
|
notificationIdCounter = 0;
|
|
3513
3760
|
/**
|
|
@@ -3573,15 +3820,15 @@ class yi {
|
|
|
3573
3820
|
this.notifications.value = [];
|
|
3574
3821
|
}
|
|
3575
3822
|
}
|
|
3576
|
-
const
|
|
3823
|
+
const Wt = new Fi(), zi = { class: "notifications" }, Ii = /* @__PURE__ */ T({
|
|
3577
3824
|
__name: "notifications",
|
|
3578
3825
|
setup(e) {
|
|
3579
|
-
const n =
|
|
3580
|
-
return (o, l) => (f(),
|
|
3581
|
-
x("div",
|
|
3582
|
-
|
|
3583
|
-
default:
|
|
3584
|
-
(f(!0),
|
|
3826
|
+
const n = Wt.getNotifications(), t = (o) => Wt.remove(o);
|
|
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, {
|
|
3585
3832
|
key: a.id,
|
|
3586
3833
|
type: a.type,
|
|
3587
3834
|
title: a.title,
|
|
@@ -3594,27 +3841,27 @@ const Ut = new yi(), wi = { class: "notifications" }, _i = /* @__PURE__ */ T({
|
|
|
3594
3841
|
])
|
|
3595
3842
|
]));
|
|
3596
3843
|
}
|
|
3597
|
-
}),
|
|
3598
|
-
function
|
|
3844
|
+
}), Hi = /* @__PURE__ */ B(Ii, [["__scopeId", "data-v-543c499f"]]), Wi = "navigationProvider";
|
|
3845
|
+
function Ui(e) {
|
|
3599
3846
|
return !!e.meta && "icon" in e.meta && "label" in e.meta;
|
|
3600
3847
|
}
|
|
3601
|
-
const
|
|
3602
|
-
const e = Rn(), n =
|
|
3848
|
+
const Ki = () => {
|
|
3849
|
+
const e = Rn(), n = An(), t = !0, o = V(() => {
|
|
3603
3850
|
const u = e.getRoutes();
|
|
3604
|
-
return u.filter((d) => d.path !== "/" && !u.some((v) => v.children?.some((
|
|
3605
|
-
}), l =
|
|
3851
|
+
return u.filter((d) => d.path !== "/" && !u.some((v) => v.children?.some((p) => p.name === d.name)));
|
|
3852
|
+
}), l = V(() => {
|
|
3606
3853
|
const u = n.matched;
|
|
3607
3854
|
return u.length ? u[u.length - 1] : null;
|
|
3608
|
-
}), a =
|
|
3855
|
+
}), a = V(() => {
|
|
3609
3856
|
const u = n.matched;
|
|
3610
3857
|
return u.length > 1 ? u[u.length - 2] : null;
|
|
3611
|
-
}), 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(() => {
|
|
3612
3859
|
if (!c.value) return null;
|
|
3613
|
-
const d = e.getRoutes().find((v) => v.children?.some((
|
|
3860
|
+
const d = e.getRoutes().find((v) => v.children?.some((p) => p.name === c.value.name));
|
|
3614
3861
|
return d ? { name: d.name } : { path: "/" };
|
|
3615
|
-
}), r =
|
|
3862
|
+
}), r = V(() => {
|
|
3616
3863
|
let u = [];
|
|
3617
|
-
return n.path === "/" ? u = o.value : l.value?.children?.length ? u = l.value.children : a.value?.children?.length ? u = a.value.children : u = o.value, u.filter(
|
|
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);
|
|
3618
3865
|
});
|
|
3619
3866
|
return {
|
|
3620
3867
|
hasParent: i,
|
|
@@ -3622,7 +3869,7 @@ const Ci = () => {
|
|
|
3622
3869
|
childRoutes: r,
|
|
3623
3870
|
showLabels: t
|
|
3624
3871
|
};
|
|
3625
|
-
},
|
|
3872
|
+
}, ss = (e, n = !0, t = void 0) => {
|
|
3626
3873
|
const o = Ln(e) ? e : E(e), l = !!t, a = E(t || null);
|
|
3627
3874
|
return {
|
|
3628
3875
|
hasParent: l,
|
|
@@ -3631,14 +3878,14 @@ const Ci = () => {
|
|
|
3631
3878
|
showLabels: n
|
|
3632
3879
|
};
|
|
3633
3880
|
}, _t = E(!1), xt = E(null), kt = E(null);
|
|
3634
|
-
let
|
|
3635
|
-
const bn = (e) => (
|
|
3636
|
-
|
|
3637
|
-
}),
|
|
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, {
|
|
3638
3885
|
onClose: (t) => bn(t)
|
|
3639
|
-
}),
|
|
3886
|
+
}), Xi = (e) => {
|
|
3640
3887
|
try {
|
|
3641
|
-
|
|
3888
|
+
$e.forEach((n) => {
|
|
3642
3889
|
try {
|
|
3643
3890
|
n(e);
|
|
3644
3891
|
} catch (t) {
|
|
@@ -3646,18 +3893,18 @@ const bn = (e) => (Le.push(e), () => {
|
|
|
3646
3893
|
}
|
|
3647
3894
|
});
|
|
3648
3895
|
} finally {
|
|
3649
|
-
_t.value = !1, setTimeout(
|
|
3896
|
+
_t.value = !1, setTimeout(qi, 1e3);
|
|
3650
3897
|
}
|
|
3651
|
-
},
|
|
3652
|
-
|
|
3653
|
-
},
|
|
3898
|
+
}, qi = () => {
|
|
3899
|
+
$e = [], xt.value = null, kt.value = null;
|
|
3900
|
+
}, Gi = {
|
|
3654
3901
|
asideComponent: xt,
|
|
3655
3902
|
asideData: kt,
|
|
3656
|
-
showAside:
|
|
3657
|
-
closeAside:
|
|
3903
|
+
showAside: Ni,
|
|
3904
|
+
closeAside: Xi,
|
|
3658
3905
|
onAsideClose: bn,
|
|
3659
3906
|
hasAside: _t
|
|
3660
|
-
},
|
|
3907
|
+
}, Yi = () => Gi, rs = (e, n) => {
|
|
3661
3908
|
let t = null;
|
|
3662
3909
|
return (...l) => {
|
|
3663
3910
|
t && clearTimeout(t), t = setTimeout(() => {
|
|
@@ -3665,7 +3912,7 @@ const bn = (e) => (Le.push(e), () => {
|
|
|
3665
3912
|
}, n);
|
|
3666
3913
|
};
|
|
3667
3914
|
};
|
|
3668
|
-
class
|
|
3915
|
+
class Ji {
|
|
3669
3916
|
containerElement = null;
|
|
3670
3917
|
apps = [];
|
|
3671
3918
|
mainApp = null;
|
|
@@ -3688,9 +3935,9 @@ class Ti {
|
|
|
3688
3935
|
const s = this.apps.find((r) => r.element === l);
|
|
3689
3936
|
s && (s.app.unmount(), this.apps = this.apps.filter((r) => r !== s)), l.remove();
|
|
3690
3937
|
}, 300));
|
|
3691
|
-
}, c =
|
|
3938
|
+
}, c = Sn({
|
|
3692
3939
|
setup() {
|
|
3693
|
-
return () =>
|
|
3940
|
+
return () => Tn(ft, {
|
|
3694
3941
|
modelValue: !0,
|
|
3695
3942
|
title: n.title,
|
|
3696
3943
|
message: n.message,
|
|
@@ -3717,7 +3964,7 @@ class Ti {
|
|
|
3717
3964
|
});
|
|
3718
3965
|
}
|
|
3719
3966
|
});
|
|
3720
|
-
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 });
|
|
3721
3968
|
});
|
|
3722
3969
|
}
|
|
3723
3970
|
confirm(n) {
|
|
@@ -3745,17 +3992,17 @@ class Ti {
|
|
|
3745
3992
|
}), this.apps = [];
|
|
3746
3993
|
}
|
|
3747
3994
|
}
|
|
3748
|
-
const
|
|
3749
|
-
function
|
|
3750
|
-
return
|
|
3995
|
+
const Qi = new Ji();
|
|
3996
|
+
function cs() {
|
|
3997
|
+
return Qi;
|
|
3751
3998
|
}
|
|
3752
|
-
function
|
|
3753
|
-
const e =
|
|
3999
|
+
function us() {
|
|
4000
|
+
const e = dt(Yt, null);
|
|
3754
4001
|
if (!e)
|
|
3755
4002
|
throw new Error("useDialogController must be used inside a dialog component.");
|
|
3756
4003
|
return e;
|
|
3757
4004
|
}
|
|
3758
|
-
const
|
|
4005
|
+
const ds = () => {
|
|
3759
4006
|
const e = E(!1), n = E(null), t = () => {
|
|
3760
4007
|
n.value = null;
|
|
3761
4008
|
};
|
|
@@ -3795,72 +4042,74 @@ const Ni = () => {
|
|
|
3795
4042
|
return new o(a, i);
|
|
3796
4043
|
}
|
|
3797
4044
|
return { run: l, running: e, error: n, clearError: t };
|
|
3798
|
-
},
|
|
4045
|
+
}, fs = {
|
|
3799
4046
|
install(e) {
|
|
3800
|
-
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);
|
|
3801
4048
|
}
|
|
3802
4049
|
};
|
|
3803
4050
|
export {
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
4051
|
+
Ra as AmountBar,
|
|
4052
|
+
Ge as Button,
|
|
4053
|
+
Pn as ButtonBar,
|
|
4054
|
+
it as Card,
|
|
4055
|
+
ns as Carousel,
|
|
4056
|
+
Jn as Checkbox,
|
|
4057
|
+
qt as Chip,
|
|
4058
|
+
Gt as ChipGroup,
|
|
4059
|
+
xo as ChipSelector,
|
|
3813
4060
|
ft as Dialog,
|
|
3814
|
-
|
|
3815
|
-
|
|
4061
|
+
pl as DotMenu,
|
|
4062
|
+
ls as EditableLabel,
|
|
3816
4063
|
Ll as FocusFirstDirective,
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
4064
|
+
Ie as FormField,
|
|
4065
|
+
Ja as FormLayout,
|
|
4066
|
+
ei as FormSection,
|
|
4067
|
+
le as Icon,
|
|
4068
|
+
z as IconNames,
|
|
3822
4069
|
q as IconSize,
|
|
3823
4070
|
hn as Input,
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
4071
|
+
si as InputSelect,
|
|
4072
|
+
mi as InputSlider,
|
|
4073
|
+
xi as InputText,
|
|
4074
|
+
bi as InputTextArea,
|
|
4075
|
+
gl as LinkButton,
|
|
4076
|
+
Bl as LoadingDirective,
|
|
3830
4077
|
Vl as Menu,
|
|
3831
|
-
|
|
4078
|
+
_l as MenuAction,
|
|
3832
4079
|
wt as NotificationComponent,
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
4080
|
+
Hi as Notifications,
|
|
4081
|
+
Zl as Page,
|
|
4082
|
+
na as Paginator,
|
|
4083
|
+
os as Radio,
|
|
4084
|
+
Sl as ResizeDirective,
|
|
4085
|
+
ia as SearchField,
|
|
3839
4086
|
mn as Select,
|
|
3840
|
-
|
|
3841
|
-
|
|
4087
|
+
ra as Separator,
|
|
4088
|
+
Pi as Shell,
|
|
3842
4089
|
gn as ShellNavigation,
|
|
3843
|
-
|
|
3844
|
-
|
|
4090
|
+
Si as ShellNavigationItem,
|
|
4091
|
+
Sa as Skeleton,
|
|
3845
4092
|
dn as Spinner,
|
|
3846
|
-
|
|
3847
|
-
|
|
4093
|
+
ua as Tab,
|
|
4094
|
+
ha as TabView,
|
|
3848
4095
|
pn as TextArea,
|
|
4096
|
+
Ca as Timer,
|
|
3849
4097
|
fn as TooltipDirective,
|
|
3850
|
-
|
|
4098
|
+
Ha as Upload,
|
|
4099
|
+
fs as VjComponents,
|
|
3851
4100
|
Yt as VjDialogControllerKey,
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
4101
|
+
Wi as VjNavigationProviderKey,
|
|
4102
|
+
El as compactDirective,
|
|
4103
|
+
as as configureVueUI,
|
|
4104
|
+
Qi as dialogService,
|
|
3856
4105
|
Ht as getVueUIConfig,
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
4106
|
+
Wt as notificationService,
|
|
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
|
|
3866
4115
|
};
|