@vanjana/vue-ui 0.1.59 → 0.1.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/theme-light.css +1 -1
- package/dist/types/components/dot-menu.vue.d.ts +2 -2
- package/dist/types/components/form/index.d.ts +2 -1
- package/dist/types/components/form/input-select.vue.d.ts +17 -3
- package/dist/types/components/form/input-text.vue.d.ts +5 -2
- package/dist/types/components/form/input.vue.d.ts +1 -1
- package/dist/types/components/form/select.vue.d.ts +2 -2
- package/dist/types/config.d.ts +22 -0
- package/dist/types/directives/compact.directive.d.ts +14 -0
- package/dist/types/directives/index.d.ts +2 -0
- package/dist/types/directives/resize.directive.d.ts +16 -0
- package/dist/types/model/FormFieldProps.d.ts +2 -0
- package/dist/types/public-api.d.ts +1 -0
- package/dist/types/services/flow.d.ts +16 -0
- package/dist/types/services/index.d.ts +2 -0
- package/dist/types/services/resizeObserver.service.d.ts +19 -0
- package/dist/types/stories/components/compact.stories.d.ts +47 -0
- package/dist/types/stories/components/form-field.stories.d.ts +26 -2
- package/dist/types/stories/components/input.stories.d.ts +2 -2
- package/dist/vanjana-vue-ui.es.js +1440 -1239
- package/dist/vanjana-vue-ui.umd.js +1 -1
- package/dist/vue-ui.css +1 -1
- package/package.json +1 -1
- package/themes/common/components/_button.scss +2 -0
- package/themes/common/components/form/_select.scss +2 -2
- package/themes/default.scss +16 -0
- /package/dist/types/stories/components/{input-text.stories.d.ts → input-text.storie.d.ts} +0 -0
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { createElementBlock as x, openBlock as v, createElementVNode as k, renderSlot as
|
|
2
|
-
import { useRouter as
|
|
1
|
+
import { createElementBlock as x, openBlock as v, createElementVNode as k, renderSlot as T, defineComponent as B, computed as C, normalizeClass as N, createBlock as P, createCommentVNode as L, createTextVNode as ze, unref as E, toDisplayString as j, useSlots as tn, mergeModels as ue, useModel as ye, ref as R, onMounted as Ae, nextTick as he, onBeforeUnmount as Oe, watch as q, resolveComponent as U, createVNode as D, normalizeStyle as Z, Fragment as be, renderList as Xe, Teleport as tt, Transition as Ie, withCtx as W, withModifiers as de, createSlots as Rt, resolveDynamicComponent as Et, mergeProps as nn, shallowRef as on, getCurrentScope as ln, onScopeDispose as an, shallowReadonly as _e, withKeys as sn, provide as rn, inject as St, toRef as Je, normalizeProps as cn, guardReactiveProps as un, isRef as dn, createApp as fn, h as mn } from "vue";
|
|
2
|
+
import { useRouter as vn, useRoute as pn } from "vue-router";
|
|
3
3
|
const M = (e, n) => {
|
|
4
4
|
const t = e.__vccOpts || e;
|
|
5
5
|
for (const [o, l] of n)
|
|
6
6
|
t[o] = l;
|
|
7
7
|
return t;
|
|
8
|
-
},
|
|
9
|
-
function
|
|
10
|
-
return v(), x("div",
|
|
11
|
-
k("div",
|
|
12
|
-
|
|
8
|
+
}, hn = {}, bn = { class: "button-bar" }, gn = { class: "left" }, yn = { class: "right" };
|
|
9
|
+
function wn(e, n) {
|
|
10
|
+
return v(), x("div", bn, [
|
|
11
|
+
k("div", gn, [
|
|
12
|
+
T(e.$slots, "left", {}, void 0, !0)
|
|
13
13
|
]),
|
|
14
|
-
k("div",
|
|
15
|
-
|
|
14
|
+
k("div", yn, [
|
|
15
|
+
T(e.$slots, "default", {}, void 0, !0)
|
|
16
16
|
])
|
|
17
17
|
]);
|
|
18
18
|
}
|
|
19
|
-
const
|
|
20
|
-
var
|
|
21
|
-
const
|
|
19
|
+
const xn = /* @__PURE__ */ M(hn, [["render", wn], ["__scopeId", "data-v-45a6ed1a"]]);
|
|
20
|
+
var H = /* @__PURE__ */ ((e) => (e.HOME = "fa-regular fa-house", e.DASHBOARD = "fa-solid fa-gauge", e.MENU = "fa-solid fa-bars", e.DOT_MENU = "fa-solid fa-ellipsis-vertical", e.BACK = "fa-regular fa-hand-point-left", e.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", 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.INFO = "fa-regular fa-circle-info", e.WARNING = "fa-regular fa-triangle-exclamation", e.ERROR = "fa-regular fa-circle-xmark", e.CHECK = "fa-regular fa-circle-check", e.LOVE = "fa-regular fa-heart", 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.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))(H || {}), X = /* @__PURE__ */ ((e) => (e.S = "icon-size-s", e.M = "icon-size-m", e.L = "icon-size-l", e))(X || {});
|
|
21
|
+
const Te = /* @__PURE__ */ B({
|
|
22
22
|
__name: "icon",
|
|
23
23
|
props: {
|
|
24
24
|
icon: {},
|
|
25
25
|
size: {}
|
|
26
26
|
},
|
|
27
27
|
setup(e) {
|
|
28
|
-
const n = e, t =
|
|
29
|
-
return (l,
|
|
30
|
-
class:
|
|
28
|
+
const n = e, t = X.M, o = C(() => `${n.icon} ${n.size ?? t}`);
|
|
29
|
+
return (l, s) => (v(), x("i", {
|
|
30
|
+
class: N(o.value)
|
|
31
31
|
}, null, 2));
|
|
32
32
|
}
|
|
33
|
-
}),
|
|
33
|
+
}), _n = ["disabled"], Vn = /* @__PURE__ */ B({
|
|
34
34
|
__name: "button",
|
|
35
35
|
props: {
|
|
36
36
|
label: {},
|
|
@@ -41,51 +41,51 @@ const Oe = /* @__PURE__ */ T({
|
|
|
41
41
|
disabled: { type: Boolean }
|
|
42
42
|
},
|
|
43
43
|
setup(e) {
|
|
44
|
-
const n = e, t =
|
|
45
|
-
return (
|
|
46
|
-
class:
|
|
44
|
+
const n = e, t = X.S, o = C(() => n.primary ? "primary" : n.secondary ? "secondary" : n.tertiary ? "tertiary" : "primary"), l = C(() => !n.label && !!n.icon);
|
|
45
|
+
return (s, a) => (v(), x("button", {
|
|
46
|
+
class: N(["button", o.value, { "icon-only": l.value }]),
|
|
47
47
|
disabled: e.disabled
|
|
48
48
|
}, [
|
|
49
|
-
e.icon ? (v(), P(
|
|
49
|
+
e.icon ? (v(), P(Te, {
|
|
50
50
|
key: 0,
|
|
51
51
|
icon: e.icon,
|
|
52
52
|
size: E(t)
|
|
53
53
|
}, null, 8, ["icon", "size"])) : L("", !0),
|
|
54
|
-
|
|
55
|
-
], 10,
|
|
54
|
+
ze(" " + j(e.label), 1)
|
|
55
|
+
], 10, _n));
|
|
56
56
|
}
|
|
57
|
-
}),
|
|
57
|
+
}), $t = /* @__PURE__ */ M(Vn, [["__scopeId", "data-v-f31c33cf"]]), kn = {
|
|
58
58
|
key: 0,
|
|
59
59
|
class: "header-actions"
|
|
60
|
-
},
|
|
60
|
+
}, Cn = { key: 0 }, Rn = /* @__PURE__ */ B({
|
|
61
61
|
__name: "card",
|
|
62
62
|
props: {
|
|
63
63
|
header: {},
|
|
64
64
|
scrollable: { type: Boolean }
|
|
65
65
|
},
|
|
66
66
|
setup(e) {
|
|
67
|
-
const n =
|
|
67
|
+
const n = tn();
|
|
68
68
|
return (t, o) => (v(), x("div", {
|
|
69
|
-
class:
|
|
69
|
+
class: N(["card", { scrollable: e.scrollable }])
|
|
70
70
|
}, [
|
|
71
71
|
k("header", null, [
|
|
72
|
-
k("h3", null,
|
|
73
|
-
E(n).headerActions ? (v(), x("span",
|
|
74
|
-
|
|
72
|
+
k("h3", null, j(e.header), 1),
|
|
73
|
+
E(n).headerActions ? (v(), x("span", kn, [
|
|
74
|
+
T(t.$slots, "headerActions", {}, void 0, !0)
|
|
75
75
|
])) : L("", !0)
|
|
76
76
|
]),
|
|
77
77
|
k("main", null, [
|
|
78
|
-
|
|
78
|
+
T(t.$slots, "default", {}, void 0, !0)
|
|
79
79
|
]),
|
|
80
|
-
E(n).footer ? (v(), x("footer",
|
|
81
|
-
|
|
80
|
+
E(n).footer ? (v(), x("footer", Cn, [
|
|
81
|
+
T(t.$slots, "footer", {}, void 0, !0)
|
|
82
82
|
])) : L("", !0)
|
|
83
83
|
], 2));
|
|
84
84
|
}
|
|
85
|
-
}),
|
|
85
|
+
}), Lt = /* @__PURE__ */ M(Rn, [["__scopeId", "data-v-ec6ab562"]]), En = { class: "checkbox" }, Sn = ["checked", "disabled"], $n = {
|
|
86
86
|
key: 0,
|
|
87
87
|
class: "checkbox-label"
|
|
88
|
-
},
|
|
88
|
+
}, Ln = /* @__PURE__ */ B({
|
|
89
89
|
__name: "checkbox",
|
|
90
90
|
props: /* @__PURE__ */ ue({
|
|
91
91
|
label: {},
|
|
@@ -100,14 +100,14 @@ const Oe = /* @__PURE__ */ T({
|
|
|
100
100
|
const l = o.target;
|
|
101
101
|
n.value = l.checked;
|
|
102
102
|
};
|
|
103
|
-
return (o, l) => (v(), x("label",
|
|
103
|
+
return (o, l) => (v(), x("label", En, [
|
|
104
104
|
k("input", {
|
|
105
105
|
type: "checkbox",
|
|
106
106
|
checked: n.value,
|
|
107
107
|
onChange: t,
|
|
108
108
|
disabled: e.disabled,
|
|
109
109
|
class: "checkbox-input"
|
|
110
|
-
}, null, 40,
|
|
110
|
+
}, null, 40, Sn),
|
|
111
111
|
l[0] || (l[0] = k("span", { class: "checkbox-box" }, [
|
|
112
112
|
k("svg", {
|
|
113
113
|
class: "checkbox-icon",
|
|
@@ -125,13 +125,13 @@ const Oe = /* @__PURE__ */ T({
|
|
|
125
125
|
})
|
|
126
126
|
])
|
|
127
127
|
], -1)),
|
|
128
|
-
e.label ? (v(), x("span",
|
|
128
|
+
e.label ? (v(), x("span", $n, j(e.label), 1)) : L("", !0)
|
|
129
129
|
]));
|
|
130
130
|
}
|
|
131
|
-
}),
|
|
131
|
+
}), Ca = /* @__PURE__ */ M(Ln, [["__scopeId", "data-v-e2d27ecb"]]), An = ["aria-label"], On = {
|
|
132
132
|
key: 0,
|
|
133
133
|
class: "carousel-indicators"
|
|
134
|
-
},
|
|
134
|
+
}, Tn = /* @__PURE__ */ B({
|
|
135
135
|
__name: "carousel",
|
|
136
136
|
props: {
|
|
137
137
|
autoplay: { type: Boolean },
|
|
@@ -142,99 +142,99 @@ const Oe = /* @__PURE__ */ T({
|
|
|
142
142
|
ariaLabel: {}
|
|
143
143
|
},
|
|
144
144
|
setup(e) {
|
|
145
|
-
const n = e, t = n.autoplay ?? !1, o = n.interval ?? 4e3, l = n.loop ?? !0,
|
|
146
|
-
let
|
|
145
|
+
const n = e, t = n.autoplay ?? !1, o = n.interval ?? 4e3, l = n.loop ?? !0, s = n.pauseOnHover ?? !0, a = n.startIndex ?? 0, r = n.ariaLabel ?? "Carousel", i = R(Math.max(0, a)), u = R(null), c = R(null), d = R(0), m = R(0);
|
|
146
|
+
let f = !1;
|
|
147
147
|
const p = R(0), y = R(!1);
|
|
148
148
|
let V = null, w = null;
|
|
149
149
|
const _ = R(null), h = R(null), O = () => {
|
|
150
|
-
p.value =
|
|
151
|
-
}, A = C(() => d.value > 0 ? { transform: `translateX(${-
|
|
152
|
-
|
|
150
|
+
p.value = u.value ? u.value.children.length : 0, p.value === 0 ? i.value = 0 : i.value >= p.value && (i.value = l ? 0 : p.value - 1), F();
|
|
151
|
+
}, A = C(() => d.value > 0 ? { transform: `translateX(${-i.value * d.value + m.value}px)` } : { transform: `translateX(-${i.value * 100}%)` }), F = () => {
|
|
152
|
+
u.value && Array.from(u.value.children).forEach((S, ve) => {
|
|
153
153
|
try {
|
|
154
|
-
ve ===
|
|
154
|
+
ve === i.value ? S.removeAttribute("aria-hidden") : S.setAttribute("aria-hidden", "true");
|
|
155
155
|
} catch {
|
|
156
156
|
}
|
|
157
157
|
});
|
|
158
|
-
}, g = () => {
|
|
159
|
-
b(), !(!t || p.value <= 1) && (a && y.value || (V = setTimeout(() => {
|
|
160
|
-
j(), g();
|
|
161
|
-
}, o)));
|
|
162
158
|
}, b = () => {
|
|
159
|
+
g(), !(!t || p.value <= 1) && (s && y.value || (V = setTimeout(() => {
|
|
160
|
+
z(), b();
|
|
161
|
+
}, o)));
|
|
162
|
+
}, g = () => {
|
|
163
163
|
V && (clearTimeout(V), V = null);
|
|
164
164
|
}, $ = () => {
|
|
165
|
-
p.value !== 0 && (
|
|
166
|
-
},
|
|
167
|
-
p.value !== 0 && (
|
|
168
|
-
},
|
|
169
|
-
S < 0 || S >= p.value || (
|
|
165
|
+
p.value !== 0 && (i.value <= 0 ? i.value = l ? p.value - 1 : 0 : i.value--);
|
|
166
|
+
}, z = () => {
|
|
167
|
+
p.value !== 0 && (i.value >= p.value - 1 ? i.value = l ? 0 : p.value - 1 : i.value++);
|
|
168
|
+
}, I = (S) => {
|
|
169
|
+
S < 0 || S >= p.value || (i.value = S);
|
|
170
170
|
}, se = () => {
|
|
171
|
-
y.value = !0,
|
|
171
|
+
y.value = !0, s && g();
|
|
172
172
|
}, ie = () => {
|
|
173
|
-
y.value = !1,
|
|
173
|
+
y.value = !1, b();
|
|
174
174
|
}, re = (S) => {
|
|
175
|
-
S.key === "ArrowLeft" ? $() : S.key === "ArrowRight" &&
|
|
175
|
+
S.key === "ArrowLeft" ? $() : S.key === "ArrowRight" && z();
|
|
176
176
|
};
|
|
177
177
|
let xe = 0, J = 0;
|
|
178
178
|
const ne = (S) => {
|
|
179
179
|
xe = S.touches[0].clientX, J = 0;
|
|
180
|
-
},
|
|
180
|
+
}, K = (S) => {
|
|
181
181
|
J = S.touches[0].clientX - xe;
|
|
182
182
|
}, Q = () => {
|
|
183
|
-
J > 50 ? $() : J < -50 &&
|
|
183
|
+
J > 50 ? $() : J < -50 && z(), J = 0;
|
|
184
184
|
};
|
|
185
|
-
let
|
|
186
|
-
const
|
|
185
|
+
let De = 0;
|
|
186
|
+
const dt = (S) => {
|
|
187
187
|
if (S.isPrimary !== !1 && !(S.pointerType === "mouse" && S.button !== 0)) {
|
|
188
|
-
|
|
188
|
+
f = !0, De = S.clientX, m.value = 0, g();
|
|
189
189
|
try {
|
|
190
190
|
S.target?.setPointerCapture?.(S.pointerId);
|
|
191
191
|
} catch {
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
|
-
},
|
|
195
|
-
|
|
196
|
-
},
|
|
197
|
-
if (!
|
|
198
|
-
|
|
194
|
+
}, ft = (S) => {
|
|
195
|
+
f && (m.value = S.clientX - De, S.preventDefault());
|
|
196
|
+
}, mt = () => {
|
|
197
|
+
if (!f) return;
|
|
198
|
+
f = !1;
|
|
199
199
|
const S = Math.max(50, d.value * 0.15);
|
|
200
|
-
|
|
201
|
-
},
|
|
200
|
+
m.value > S ? $() : m.value < -S && z(), m.value = 0, b();
|
|
201
|
+
}, vt = (S) => {
|
|
202
202
|
try {
|
|
203
203
|
S.target?.releasePointerCapture?.(S.pointerId);
|
|
204
204
|
} catch {
|
|
205
205
|
}
|
|
206
|
-
|
|
207
|
-
},
|
|
208
|
-
return
|
|
206
|
+
mt();
|
|
207
|
+
}, pt = () => mt();
|
|
208
|
+
return Ae(() => {
|
|
209
209
|
he(() => {
|
|
210
|
-
if (O(),
|
|
210
|
+
if (O(), u.value && (w = new MutationObserver(O), w.observe(u.value, { childList: !0 }), u.value.addEventListener("touchstart", ne, { passive: !0 }), u.value.addEventListener("touchmove", K, { passive: !0 }), u.value.addEventListener("touchend", Q)), c.value) {
|
|
211
211
|
const S = () => {
|
|
212
|
-
d.value =
|
|
212
|
+
d.value = c.value ? c.value.clientWidth : 0;
|
|
213
213
|
};
|
|
214
214
|
S();
|
|
215
215
|
const ve = window.ResizeObserver;
|
|
216
|
-
if (ve &&
|
|
216
|
+
if (ve && c.value) {
|
|
217
217
|
const pe = new ve(() => S());
|
|
218
|
-
pe.observe(
|
|
218
|
+
pe.observe(c.value), _.value = pe;
|
|
219
219
|
} else
|
|
220
220
|
window.addEventListener("resize", S), h.value = S;
|
|
221
|
-
|
|
221
|
+
c.value && (c.value.addEventListener("pointerdown", dt), c.value.addEventListener("pointermove", ft), c.value.addEventListener("pointerup", vt), c.value.addEventListener("pointercancel", pt));
|
|
222
222
|
}
|
|
223
|
-
F(),
|
|
223
|
+
F(), b();
|
|
224
224
|
});
|
|
225
|
-
}),
|
|
226
|
-
|
|
227
|
-
}), q([
|
|
225
|
+
}), Oe(() => {
|
|
226
|
+
g(), w && u.value && w.disconnect(), u.value && (u.value.removeEventListener("touchstart", ne), u.value.removeEventListener("touchmove", K), u.value.removeEventListener("touchend", Q)), c.value && (_.value && _.value.disconnect && _.value.disconnect(), h.value && window.removeEventListener("resize", h.value), c.value.removeEventListener("pointerdown", dt), c.value.removeEventListener("pointermove", ft), c.value.removeEventListener("pointerup", vt), c.value.removeEventListener("pointercancel", pt));
|
|
227
|
+
}), q([i, () => p.value], () => {
|
|
228
228
|
F();
|
|
229
|
-
}), q([() => y.value,
|
|
230
|
-
|
|
229
|
+
}), q([() => y.value, i], () => {
|
|
230
|
+
b();
|
|
231
231
|
}), (S, ve) => {
|
|
232
|
-
const pe =
|
|
232
|
+
const pe = U("VjButton");
|
|
233
233
|
return v(), x("div", {
|
|
234
234
|
class: "carousel",
|
|
235
235
|
role: "region",
|
|
236
236
|
"aria-roledescription": "carousel",
|
|
237
|
-
"aria-label": E(
|
|
237
|
+
"aria-label": E(r),
|
|
238
238
|
tabindex: "0",
|
|
239
239
|
onKeydown: re,
|
|
240
240
|
onMouseenter: se,
|
|
@@ -243,45 +243,45 @@ const Oe = /* @__PURE__ */ T({
|
|
|
243
243
|
k("div", {
|
|
244
244
|
class: "carousel-window",
|
|
245
245
|
ref_key: "windowRef",
|
|
246
|
-
ref:
|
|
246
|
+
ref: c
|
|
247
247
|
}, [
|
|
248
248
|
k("div", {
|
|
249
249
|
class: "carousel-track",
|
|
250
250
|
ref_key: "track",
|
|
251
|
-
ref:
|
|
251
|
+
ref: u,
|
|
252
252
|
style: Z(A.value)
|
|
253
253
|
}, [
|
|
254
|
-
|
|
254
|
+
T(S.$slots, "default", {}, void 0, !0)
|
|
255
255
|
], 4)
|
|
256
256
|
], 512),
|
|
257
257
|
D(pe, {
|
|
258
258
|
class: "carousel-btn prev",
|
|
259
|
-
icon: E(
|
|
259
|
+
icon: E(H).PREVIOUS,
|
|
260
260
|
onClick: $,
|
|
261
261
|
type: "button",
|
|
262
262
|
"aria-label": "Previous slide"
|
|
263
263
|
}, null, 8, ["icon"]),
|
|
264
264
|
D(pe, {
|
|
265
265
|
class: "carousel-btn next",
|
|
266
|
-
icon: E(
|
|
267
|
-
onClick:
|
|
266
|
+
icon: E(H).NEXT,
|
|
267
|
+
onClick: z,
|
|
268
268
|
type: "button",
|
|
269
269
|
"aria-label": "Next slide"
|
|
270
270
|
}, null, 8, ["icon"]),
|
|
271
|
-
p.value > 1 ? (v(), x("div",
|
|
272
|
-
(v(!0), x(
|
|
273
|
-
key:
|
|
274
|
-
class:
|
|
275
|
-
onClick: (
|
|
276
|
-
"aria-current":
|
|
277
|
-
"aria-label": `Go to slide ${
|
|
271
|
+
p.value > 1 ? (v(), x("div", On, [
|
|
272
|
+
(v(!0), x(be, null, Xe(p.value, (Se) => (v(), P(pe, {
|
|
273
|
+
key: Se - 1,
|
|
274
|
+
class: N(["indicator", { active: Se - 1 === i.value }]),
|
|
275
|
+
onClick: (_a) => I(Se - 1),
|
|
276
|
+
"aria-current": Se - 1 === i.value,
|
|
277
|
+
"aria-label": `Go to slide ${Se}`,
|
|
278
278
|
type: "button"
|
|
279
279
|
}, null, 8, ["class", "onClick", "aria-current", "aria-label"]))), 128))
|
|
280
280
|
])) : L("", !0)
|
|
281
|
-
], 40,
|
|
281
|
+
], 40, An);
|
|
282
282
|
};
|
|
283
283
|
}
|
|
284
|
-
}),
|
|
284
|
+
}), Bn = /* @__PURE__ */ M(Tn, [["__scopeId", "data-v-232abca2"]]), Mn = { class: "dialog-content" }, Pn = { key: 1 }, Fn = { class: "dialog-footer" }, Dn = /* @__PURE__ */ B({
|
|
285
285
|
__name: "dialog",
|
|
286
286
|
props: {
|
|
287
287
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -301,35 +301,35 @@ const Oe = /* @__PURE__ */ T({
|
|
|
301
301
|
const t = e, o = n, l = R(t.modelValue);
|
|
302
302
|
q(
|
|
303
303
|
() => t.modelValue,
|
|
304
|
-
(
|
|
304
|
+
(c) => l.value = c
|
|
305
305
|
);
|
|
306
|
-
const
|
|
306
|
+
const s = () => {
|
|
307
307
|
l.value = !1, o("update:modelValue", !1), o("close");
|
|
308
|
-
},
|
|
309
|
-
o("confirm"),
|
|
310
|
-
},
|
|
311
|
-
o("cancel"),
|
|
312
|
-
},
|
|
313
|
-
t.closeOnBackdrop &&
|
|
314
|
-
},
|
|
315
|
-
|
|
308
|
+
}, a = () => {
|
|
309
|
+
o("confirm"), s();
|
|
310
|
+
}, r = () => {
|
|
311
|
+
o("cancel"), s();
|
|
312
|
+
}, i = () => {
|
|
313
|
+
t.closeOnBackdrop && s();
|
|
314
|
+
}, u = (c) => {
|
|
315
|
+
c.key === "Escape" && t.closeOnEscape && l.value && s();
|
|
316
316
|
};
|
|
317
|
-
return
|
|
318
|
-
document.addEventListener("keydown",
|
|
319
|
-
}),
|
|
320
|
-
document.removeEventListener("keydown",
|
|
321
|
-
}), (
|
|
322
|
-
const
|
|
323
|
-
return v(), P(
|
|
317
|
+
return Ae(() => {
|
|
318
|
+
document.addEventListener("keydown", u);
|
|
319
|
+
}), Oe(() => {
|
|
320
|
+
document.removeEventListener("keydown", u);
|
|
321
|
+
}), (c, d) => {
|
|
322
|
+
const m = U("VjIcon"), f = U("VjButton"), p = U("VjCard");
|
|
323
|
+
return v(), P(tt, { to: "body" }, [
|
|
324
324
|
D(Ie, { name: "dialog-fade" }, {
|
|
325
|
-
default:
|
|
325
|
+
default: W(() => [
|
|
326
326
|
l.value ? (v(), x("div", {
|
|
327
327
|
key: 0,
|
|
328
328
|
class: "dialog-backdrop",
|
|
329
|
-
onClick:
|
|
329
|
+
onClick: i
|
|
330
330
|
}, [
|
|
331
331
|
D(Ie, { name: "dialog-scale" }, {
|
|
332
|
-
default:
|
|
332
|
+
default: W(() => [
|
|
333
333
|
l.value ? (v(), x("div", {
|
|
334
334
|
key: 0,
|
|
335
335
|
class: "dialog-wrapper",
|
|
@@ -339,36 +339,36 @@ const Oe = /* @__PURE__ */ T({
|
|
|
339
339
|
D(p, {
|
|
340
340
|
class: "dialog-card",
|
|
341
341
|
header: e.title || ""
|
|
342
|
-
},
|
|
343
|
-
headerActions:
|
|
344
|
-
D(
|
|
345
|
-
icon: E(
|
|
346
|
-
size: E(
|
|
342
|
+
}, Rt({
|
|
343
|
+
headerActions: W(() => [
|
|
344
|
+
D(m, {
|
|
345
|
+
icon: E(H).CLOSE,
|
|
346
|
+
size: E(X).S,
|
|
347
347
|
class: "dialog-close",
|
|
348
|
-
onClick:
|
|
348
|
+
onClick: s
|
|
349
349
|
}, null, 8, ["icon", "size"])
|
|
350
350
|
]),
|
|
351
|
-
default:
|
|
352
|
-
k("div",
|
|
353
|
-
e.component ? (v(), P(
|
|
351
|
+
default: W(() => [
|
|
352
|
+
k("div", Mn, [
|
|
353
|
+
e.component ? (v(), P(Et(e.component), nn({ key: 0 }, e.componentProps, { onClose: s }), null, 16)) : e.message ? (v(), x("div", Pn, j(e.message), 1)) : T(c.$slots, "default", { key: 2 }, void 0, !0)
|
|
354
354
|
])
|
|
355
355
|
]),
|
|
356
356
|
_: 2
|
|
357
357
|
}, [
|
|
358
358
|
e.showFooter ? {
|
|
359
359
|
name: "footer",
|
|
360
|
-
fn:
|
|
361
|
-
k("div",
|
|
362
|
-
|
|
363
|
-
e.showCancel ? (v(), P(
|
|
360
|
+
fn: W(() => [
|
|
361
|
+
k("div", Fn, [
|
|
362
|
+
T(c.$slots, "footer", {}, () => [
|
|
363
|
+
e.showCancel ? (v(), P(f, {
|
|
364
364
|
key: 0,
|
|
365
365
|
secondary: "",
|
|
366
|
-
onClick:
|
|
366
|
+
onClick: r,
|
|
367
367
|
label: e.cancelText
|
|
368
368
|
}, null, 8, ["label"])) : L("", !0),
|
|
369
|
-
D(
|
|
369
|
+
D(f, {
|
|
370
370
|
primary: "",
|
|
371
|
-
onClick:
|
|
371
|
+
onClick: a,
|
|
372
372
|
label: e.confirmText
|
|
373
373
|
}, null, 8, ["label"])
|
|
374
374
|
], !0)
|
|
@@ -388,78 +388,78 @@ const Oe = /* @__PURE__ */ T({
|
|
|
388
388
|
]);
|
|
389
389
|
};
|
|
390
390
|
}
|
|
391
|
-
}),
|
|
391
|
+
}), At = /* @__PURE__ */ M(Dn, [["__scopeId", "data-v-6af510b3"]]), Re = Math.min, G = Math.max, Ne = Math.round, je = Math.floor, oe = (e) => ({
|
|
392
392
|
x: e,
|
|
393
393
|
y: e
|
|
394
|
-
}),
|
|
394
|
+
}), jn = {
|
|
395
395
|
left: "right",
|
|
396
396
|
right: "left",
|
|
397
397
|
bottom: "top",
|
|
398
398
|
top: "bottom"
|
|
399
|
-
},
|
|
399
|
+
}, zn = {
|
|
400
400
|
start: "end",
|
|
401
401
|
end: "start"
|
|
402
402
|
};
|
|
403
|
-
function
|
|
404
|
-
return G(e,
|
|
403
|
+
function ht(e, n, t) {
|
|
404
|
+
return G(e, Re(n, t));
|
|
405
405
|
}
|
|
406
|
-
function
|
|
406
|
+
function Be(e, n) {
|
|
407
407
|
return typeof e == "function" ? e(n) : e;
|
|
408
408
|
}
|
|
409
409
|
function fe(e) {
|
|
410
410
|
return e.split("-")[0];
|
|
411
411
|
}
|
|
412
|
-
function
|
|
412
|
+
function Me(e) {
|
|
413
413
|
return e.split("-")[1];
|
|
414
414
|
}
|
|
415
|
-
function
|
|
415
|
+
function Ot(e) {
|
|
416
416
|
return e === "x" ? "y" : "x";
|
|
417
417
|
}
|
|
418
|
-
function
|
|
418
|
+
function Tt(e) {
|
|
419
419
|
return e === "y" ? "height" : "width";
|
|
420
420
|
}
|
|
421
|
-
const
|
|
421
|
+
const In = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
422
422
|
function ce(e) {
|
|
423
|
-
return
|
|
423
|
+
return In.has(fe(e)) ? "y" : "x";
|
|
424
424
|
}
|
|
425
|
-
function
|
|
426
|
-
return
|
|
425
|
+
function Bt(e) {
|
|
426
|
+
return Ot(ce(e));
|
|
427
427
|
}
|
|
428
|
-
function
|
|
428
|
+
function Nn(e, n, t) {
|
|
429
429
|
t === void 0 && (t = !1);
|
|
430
|
-
const o =
|
|
431
|
-
let
|
|
432
|
-
return n.reference[
|
|
430
|
+
const o = Me(e), l = Bt(e), s = Tt(l);
|
|
431
|
+
let a = l === "x" ? o === (t ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
432
|
+
return n.reference[s] > n.floating[s] && (a = He(a)), [a, He(a)];
|
|
433
433
|
}
|
|
434
|
-
function
|
|
434
|
+
function Hn(e) {
|
|
435
435
|
const n = He(e);
|
|
436
|
-
return [
|
|
436
|
+
return [Ze(e), n, Ze(n)];
|
|
437
437
|
}
|
|
438
|
-
function
|
|
439
|
-
return e.replace(/start|end/g, (n) =>
|
|
438
|
+
function Ze(e) {
|
|
439
|
+
return e.replace(/start|end/g, (n) => zn[n]);
|
|
440
440
|
}
|
|
441
|
-
const
|
|
442
|
-
function
|
|
441
|
+
const bt = ["left", "right"], gt = ["right", "left"], Wn = ["top", "bottom"], Un = ["bottom", "top"];
|
|
442
|
+
function Xn(e, n, t) {
|
|
443
443
|
switch (e) {
|
|
444
444
|
case "top":
|
|
445
445
|
case "bottom":
|
|
446
|
-
return t ? n ?
|
|
446
|
+
return t ? n ? gt : bt : n ? bt : gt;
|
|
447
447
|
case "left":
|
|
448
448
|
case "right":
|
|
449
|
-
return n ?
|
|
449
|
+
return n ? Wn : Un;
|
|
450
450
|
default:
|
|
451
451
|
return [];
|
|
452
452
|
}
|
|
453
453
|
}
|
|
454
|
-
function
|
|
455
|
-
const l =
|
|
456
|
-
let
|
|
457
|
-
return l && (
|
|
454
|
+
function Kn(e, n, t, o) {
|
|
455
|
+
const l = Me(e);
|
|
456
|
+
let s = Xn(fe(e), t === "start", o);
|
|
457
|
+
return l && (s = s.map((a) => a + "-" + l), n && (s = s.concat(s.map(Ze)))), s;
|
|
458
458
|
}
|
|
459
459
|
function He(e) {
|
|
460
|
-
return e.replace(/left|right|bottom|top/g, (n) =>
|
|
460
|
+
return e.replace(/left|right|bottom|top/g, (n) => jn[n]);
|
|
461
461
|
}
|
|
462
|
-
function
|
|
462
|
+
function qn(e) {
|
|
463
463
|
return {
|
|
464
464
|
top: 0,
|
|
465
465
|
right: 0,
|
|
@@ -468,15 +468,15 @@ function Wn(e) {
|
|
|
468
468
|
...e
|
|
469
469
|
};
|
|
470
470
|
}
|
|
471
|
-
function
|
|
472
|
-
return typeof e != "number" ?
|
|
471
|
+
function Gn(e) {
|
|
472
|
+
return typeof e != "number" ? qn(e) : {
|
|
473
473
|
top: e,
|
|
474
474
|
right: e,
|
|
475
475
|
bottom: e,
|
|
476
476
|
left: e
|
|
477
477
|
};
|
|
478
478
|
}
|
|
479
|
-
function
|
|
479
|
+
function We(e) {
|
|
480
480
|
const {
|
|
481
481
|
x: n,
|
|
482
482
|
y: t,
|
|
@@ -494,152 +494,152 @@ function Ne(e) {
|
|
|
494
494
|
y: t
|
|
495
495
|
};
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function yt(e, n, t) {
|
|
498
498
|
let {
|
|
499
499
|
reference: o,
|
|
500
500
|
floating: l
|
|
501
501
|
} = e;
|
|
502
|
-
const
|
|
503
|
-
let
|
|
504
|
-
switch (
|
|
502
|
+
const s = ce(n), a = Bt(n), r = Tt(a), i = fe(n), u = s === "y", c = o.x + o.width / 2 - l.width / 2, d = o.y + o.height / 2 - l.height / 2, m = o[r] / 2 - l[r] / 2;
|
|
503
|
+
let f;
|
|
504
|
+
switch (i) {
|
|
505
505
|
case "top":
|
|
506
|
-
|
|
507
|
-
x:
|
|
506
|
+
f = {
|
|
507
|
+
x: c,
|
|
508
508
|
y: o.y - l.height
|
|
509
509
|
};
|
|
510
510
|
break;
|
|
511
511
|
case "bottom":
|
|
512
|
-
|
|
513
|
-
x:
|
|
512
|
+
f = {
|
|
513
|
+
x: c,
|
|
514
514
|
y: o.y + o.height
|
|
515
515
|
};
|
|
516
516
|
break;
|
|
517
517
|
case "right":
|
|
518
|
-
|
|
518
|
+
f = {
|
|
519
519
|
x: o.x + o.width,
|
|
520
520
|
y: d
|
|
521
521
|
};
|
|
522
522
|
break;
|
|
523
523
|
case "left":
|
|
524
|
-
|
|
524
|
+
f = {
|
|
525
525
|
x: o.x - l.width,
|
|
526
526
|
y: d
|
|
527
527
|
};
|
|
528
528
|
break;
|
|
529
529
|
default:
|
|
530
|
-
|
|
530
|
+
f = {
|
|
531
531
|
x: o.x,
|
|
532
532
|
y: o.y
|
|
533
533
|
};
|
|
534
534
|
}
|
|
535
|
-
switch (
|
|
535
|
+
switch (Me(n)) {
|
|
536
536
|
case "start":
|
|
537
|
-
|
|
537
|
+
f[a] -= m * (t && u ? -1 : 1);
|
|
538
538
|
break;
|
|
539
539
|
case "end":
|
|
540
|
-
|
|
540
|
+
f[a] += m * (t && u ? -1 : 1);
|
|
541
541
|
break;
|
|
542
542
|
}
|
|
543
|
-
return
|
|
543
|
+
return f;
|
|
544
544
|
}
|
|
545
|
-
const
|
|
545
|
+
const Yn = async (e, n, t) => {
|
|
546
546
|
const {
|
|
547
547
|
placement: o = "bottom",
|
|
548
548
|
strategy: l = "absolute",
|
|
549
|
-
middleware:
|
|
550
|
-
platform:
|
|
551
|
-
} = t,
|
|
552
|
-
let
|
|
549
|
+
middleware: s = [],
|
|
550
|
+
platform: a
|
|
551
|
+
} = t, r = s.filter(Boolean), i = await (a.isRTL == null ? void 0 : a.isRTL(n));
|
|
552
|
+
let u = await a.getElementRects({
|
|
553
553
|
reference: e,
|
|
554
554
|
floating: n,
|
|
555
555
|
strategy: l
|
|
556
556
|
}), {
|
|
557
|
-
x:
|
|
557
|
+
x: c,
|
|
558
558
|
y: d
|
|
559
|
-
} =
|
|
560
|
-
for (let y = 0; y <
|
|
559
|
+
} = yt(u, o, i), m = o, f = {}, p = 0;
|
|
560
|
+
for (let y = 0; y < r.length; y++) {
|
|
561
561
|
const {
|
|
562
562
|
name: V,
|
|
563
563
|
fn: w
|
|
564
|
-
} =
|
|
564
|
+
} = r[y], {
|
|
565
565
|
x: _,
|
|
566
566
|
y: h,
|
|
567
567
|
data: O,
|
|
568
568
|
reset: A
|
|
569
569
|
} = await w({
|
|
570
|
-
x:
|
|
570
|
+
x: c,
|
|
571
571
|
y: d,
|
|
572
572
|
initialPlacement: o,
|
|
573
|
-
placement:
|
|
573
|
+
placement: m,
|
|
574
574
|
strategy: l,
|
|
575
|
-
middlewareData:
|
|
576
|
-
rects:
|
|
577
|
-
platform:
|
|
575
|
+
middlewareData: f,
|
|
576
|
+
rects: u,
|
|
577
|
+
platform: a,
|
|
578
578
|
elements: {
|
|
579
579
|
reference: e,
|
|
580
580
|
floating: n
|
|
581
581
|
}
|
|
582
582
|
});
|
|
583
|
-
|
|
584
|
-
...
|
|
583
|
+
c = _ ?? c, d = h ?? d, f = {
|
|
584
|
+
...f,
|
|
585
585
|
[V]: {
|
|
586
|
-
...
|
|
586
|
+
...f[V],
|
|
587
587
|
...O
|
|
588
588
|
}
|
|
589
|
-
}, A && p <= 50 && (p++, typeof A == "object" && (A.placement && (
|
|
589
|
+
}, A && p <= 50 && (p++, typeof A == "object" && (A.placement && (m = A.placement), A.rects && (u = A.rects === !0 ? await a.getElementRects({
|
|
590
590
|
reference: e,
|
|
591
591
|
floating: n,
|
|
592
592
|
strategy: l
|
|
593
593
|
}) : A.rects), {
|
|
594
|
-
x:
|
|
594
|
+
x: c,
|
|
595
595
|
y: d
|
|
596
|
-
} =
|
|
596
|
+
} = yt(u, m, i)), y = -1);
|
|
597
597
|
}
|
|
598
598
|
return {
|
|
599
|
-
x:
|
|
599
|
+
x: c,
|
|
600
600
|
y: d,
|
|
601
|
-
placement:
|
|
601
|
+
placement: m,
|
|
602
602
|
strategy: l,
|
|
603
|
-
middlewareData:
|
|
603
|
+
middlewareData: f
|
|
604
604
|
};
|
|
605
605
|
};
|
|
606
|
-
async function
|
|
606
|
+
async function nt(e, n) {
|
|
607
607
|
var t;
|
|
608
608
|
n === void 0 && (n = {});
|
|
609
609
|
const {
|
|
610
610
|
x: o,
|
|
611
611
|
y: l,
|
|
612
|
-
platform:
|
|
613
|
-
rects:
|
|
614
|
-
elements:
|
|
615
|
-
strategy:
|
|
612
|
+
platform: s,
|
|
613
|
+
rects: a,
|
|
614
|
+
elements: r,
|
|
615
|
+
strategy: i
|
|
616
616
|
} = e, {
|
|
617
|
-
boundary:
|
|
618
|
-
rootBoundary:
|
|
617
|
+
boundary: u = "clippingAncestors",
|
|
618
|
+
rootBoundary: c = "viewport",
|
|
619
619
|
elementContext: d = "floating",
|
|
620
|
-
altBoundary:
|
|
621
|
-
padding:
|
|
622
|
-
} =
|
|
623
|
-
element: (t = await (
|
|
624
|
-
boundary:
|
|
625
|
-
rootBoundary:
|
|
626
|
-
strategy:
|
|
620
|
+
altBoundary: m = !1,
|
|
621
|
+
padding: f = 0
|
|
622
|
+
} = Be(n, e), p = Gn(f), V = r[m ? d === "floating" ? "reference" : "floating" : d], w = We(await s.getClippingRect({
|
|
623
|
+
element: (t = await (s.isElement == null ? void 0 : s.isElement(V))) == null || t ? V : V.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(r.floating)),
|
|
624
|
+
boundary: u,
|
|
625
|
+
rootBoundary: c,
|
|
626
|
+
strategy: i
|
|
627
627
|
})), _ = d === "floating" ? {
|
|
628
628
|
x: o,
|
|
629
629
|
y: l,
|
|
630
|
-
width:
|
|
631
|
-
height:
|
|
632
|
-
} :
|
|
630
|
+
width: a.floating.width,
|
|
631
|
+
height: a.floating.height
|
|
632
|
+
} : a.reference, h = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(r.floating)), O = await (s.isElement == null ? void 0 : s.isElement(h)) ? await (s.getScale == null ? void 0 : s.getScale(h)) || {
|
|
633
633
|
x: 1,
|
|
634
634
|
y: 1
|
|
635
635
|
} : {
|
|
636
636
|
x: 1,
|
|
637
637
|
y: 1
|
|
638
|
-
}, A =
|
|
639
|
-
elements:
|
|
638
|
+
}, A = We(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
639
|
+
elements: r,
|
|
640
640
|
rect: _,
|
|
641
641
|
offsetParent: h,
|
|
642
|
-
strategy:
|
|
642
|
+
strategy: i
|
|
643
643
|
}) : _);
|
|
644
644
|
return {
|
|
645
645
|
top: (w.top - A.top + p.top) / O.y,
|
|
@@ -648,7 +648,7 @@ async function et(e, n) {
|
|
|
648
648
|
right: (A.right - w.right + p.right) / O.x
|
|
649
649
|
};
|
|
650
650
|
}
|
|
651
|
-
const
|
|
651
|
+
const Jn = function(e) {
|
|
652
652
|
return e === void 0 && (e = {}), {
|
|
653
653
|
name: "flip",
|
|
654
654
|
options: e,
|
|
@@ -656,67 +656,67 @@ const Kn = function(e) {
|
|
|
656
656
|
var t, o;
|
|
657
657
|
const {
|
|
658
658
|
placement: l,
|
|
659
|
-
middlewareData:
|
|
660
|
-
rects:
|
|
661
|
-
initialPlacement:
|
|
662
|
-
platform:
|
|
663
|
-
elements:
|
|
659
|
+
middlewareData: s,
|
|
660
|
+
rects: a,
|
|
661
|
+
initialPlacement: r,
|
|
662
|
+
platform: i,
|
|
663
|
+
elements: u
|
|
664
664
|
} = n, {
|
|
665
|
-
mainAxis:
|
|
665
|
+
mainAxis: c = !0,
|
|
666
666
|
crossAxis: d = !0,
|
|
667
|
-
fallbackPlacements:
|
|
668
|
-
fallbackStrategy:
|
|
667
|
+
fallbackPlacements: m,
|
|
668
|
+
fallbackStrategy: f = "bestFit",
|
|
669
669
|
fallbackAxisSideDirection: p = "none",
|
|
670
670
|
flipAlignment: y = !0,
|
|
671
671
|
...V
|
|
672
|
-
} =
|
|
673
|
-
if ((t =
|
|
672
|
+
} = Be(e, n);
|
|
673
|
+
if ((t = s.arrow) != null && t.alignmentOffset)
|
|
674
674
|
return {};
|
|
675
|
-
const w = fe(l), _ = ce(
|
|
676
|
-
!
|
|
677
|
-
const
|
|
678
|
-
let
|
|
679
|
-
if (
|
|
680
|
-
const re =
|
|
681
|
-
$.push(
|
|
675
|
+
const w = fe(l), _ = ce(r), h = fe(r) === r, O = await (i.isRTL == null ? void 0 : i.isRTL(u.floating)), A = m || (h || !y ? [He(r)] : Hn(r)), F = p !== "none";
|
|
676
|
+
!m && F && A.push(...Kn(r, y, p, O));
|
|
677
|
+
const b = [r, ...A], g = await nt(n, V), $ = [];
|
|
678
|
+
let z = ((o = s.flip) == null ? void 0 : o.overflows) || [];
|
|
679
|
+
if (c && $.push(g[w]), d) {
|
|
680
|
+
const re = Nn(l, a, O);
|
|
681
|
+
$.push(g[re[0]], g[re[1]]);
|
|
682
682
|
}
|
|
683
|
-
if (
|
|
683
|
+
if (z = [...z, {
|
|
684
684
|
placement: l,
|
|
685
685
|
overflows: $
|
|
686
686
|
}], !$.every((re) => re <= 0)) {
|
|
687
|
-
var
|
|
688
|
-
const re = (((
|
|
687
|
+
var I, se;
|
|
688
|
+
const re = (((I = s.flip) == null ? void 0 : I.index) || 0) + 1, xe = b[re];
|
|
689
689
|
if (xe && (!(d === "alignment" ? _ !== ce(xe) : !1) || // We leave the current main axis only if every placement on that axis
|
|
690
690
|
// overflows the main axis.
|
|
691
|
-
|
|
691
|
+
z.every((K) => ce(K.placement) === _ ? K.overflows[0] > 0 : !0)))
|
|
692
692
|
return {
|
|
693
693
|
data: {
|
|
694
694
|
index: re,
|
|
695
|
-
overflows:
|
|
695
|
+
overflows: z
|
|
696
696
|
},
|
|
697
697
|
reset: {
|
|
698
698
|
placement: xe
|
|
699
699
|
}
|
|
700
700
|
};
|
|
701
|
-
let J = (se =
|
|
701
|
+
let J = (se = z.filter((ne) => ne.overflows[0] <= 0).sort((ne, K) => ne.overflows[1] - K.overflows[1])[0]) == null ? void 0 : se.placement;
|
|
702
702
|
if (!J)
|
|
703
|
-
switch (
|
|
703
|
+
switch (f) {
|
|
704
704
|
case "bestFit": {
|
|
705
705
|
var ie;
|
|
706
|
-
const ne = (ie =
|
|
706
|
+
const ne = (ie = z.filter((K) => {
|
|
707
707
|
if (F) {
|
|
708
|
-
const Q = ce(
|
|
708
|
+
const Q = ce(K.placement);
|
|
709
709
|
return Q === _ || // Create a bias to the `y` side axis due to horizontal
|
|
710
710
|
// reading directions favoring greater width.
|
|
711
711
|
Q === "y";
|
|
712
712
|
}
|
|
713
713
|
return !0;
|
|
714
|
-
}).map((
|
|
714
|
+
}).map((K) => [K.placement, K.overflows.filter((Q) => Q > 0).reduce((Q, De) => Q + De, 0)]).sort((K, Q) => K[1] - Q[1])[0]) == null ? void 0 : ie[0];
|
|
715
715
|
ne && (J = ne);
|
|
716
716
|
break;
|
|
717
717
|
}
|
|
718
718
|
case "initialPlacement":
|
|
719
|
-
J =
|
|
719
|
+
J = r;
|
|
720
720
|
break;
|
|
721
721
|
}
|
|
722
722
|
if (l !== J)
|
|
@@ -729,16 +729,16 @@ const Kn = function(e) {
|
|
|
729
729
|
return {};
|
|
730
730
|
}
|
|
731
731
|
};
|
|
732
|
-
},
|
|
733
|
-
async function
|
|
732
|
+
}, Qn = /* @__PURE__ */ new Set(["left", "top"]);
|
|
733
|
+
async function Zn(e, n) {
|
|
734
734
|
const {
|
|
735
735
|
placement: t,
|
|
736
736
|
platform: o,
|
|
737
737
|
elements: l
|
|
738
|
-
} = e,
|
|
738
|
+
} = e, s = await (o.isRTL == null ? void 0 : o.isRTL(l.floating)), a = fe(t), r = Me(t), i = ce(t) === "y", u = Qn.has(a) ? -1 : 1, c = s && i ? -1 : 1, d = Be(n, e);
|
|
739
739
|
let {
|
|
740
|
-
mainAxis:
|
|
741
|
-
crossAxis:
|
|
740
|
+
mainAxis: m,
|
|
741
|
+
crossAxis: f,
|
|
742
742
|
alignmentAxis: p
|
|
743
743
|
} = typeof d == "number" ? {
|
|
744
744
|
mainAxis: d,
|
|
@@ -749,15 +749,15 @@ async function Gn(e, n) {
|
|
|
749
749
|
crossAxis: d.crossAxis || 0,
|
|
750
750
|
alignmentAxis: d.alignmentAxis
|
|
751
751
|
};
|
|
752
|
-
return
|
|
753
|
-
x:
|
|
754
|
-
y:
|
|
752
|
+
return r && typeof p == "number" && (f = r === "end" ? p * -1 : p), i ? {
|
|
753
|
+
x: f * c,
|
|
754
|
+
y: m * u
|
|
755
755
|
} : {
|
|
756
|
-
x:
|
|
757
|
-
y:
|
|
756
|
+
x: m * u,
|
|
757
|
+
y: f * c
|
|
758
758
|
};
|
|
759
759
|
}
|
|
760
|
-
const
|
|
760
|
+
const eo = function(e) {
|
|
761
761
|
return e === void 0 && (e = 0), {
|
|
762
762
|
name: "offset",
|
|
763
763
|
options: e,
|
|
@@ -765,21 +765,21 @@ const Yn = function(e) {
|
|
|
765
765
|
var t, o;
|
|
766
766
|
const {
|
|
767
767
|
x: l,
|
|
768
|
-
y:
|
|
769
|
-
placement:
|
|
770
|
-
middlewareData:
|
|
771
|
-
} = n,
|
|
772
|
-
return
|
|
773
|
-
x: l +
|
|
774
|
-
y:
|
|
768
|
+
y: s,
|
|
769
|
+
placement: a,
|
|
770
|
+
middlewareData: r
|
|
771
|
+
} = n, i = await Zn(n, e);
|
|
772
|
+
return a === ((t = r.offset) == null ? void 0 : t.placement) && (o = r.arrow) != null && o.alignmentOffset ? {} : {
|
|
773
|
+
x: l + i.x,
|
|
774
|
+
y: s + i.y,
|
|
775
775
|
data: {
|
|
776
|
-
...
|
|
777
|
-
placement:
|
|
776
|
+
...i,
|
|
777
|
+
placement: a
|
|
778
778
|
}
|
|
779
779
|
};
|
|
780
780
|
}
|
|
781
781
|
};
|
|
782
|
-
},
|
|
782
|
+
}, to = function(e) {
|
|
783
783
|
return e === void 0 && (e = {}), {
|
|
784
784
|
name: "shift",
|
|
785
785
|
options: e,
|
|
@@ -789,9 +789,9 @@ const Yn = function(e) {
|
|
|
789
789
|
y: o,
|
|
790
790
|
placement: l
|
|
791
791
|
} = n, {
|
|
792
|
-
mainAxis:
|
|
793
|
-
crossAxis:
|
|
794
|
-
limiter:
|
|
792
|
+
mainAxis: s = !0,
|
|
793
|
+
crossAxis: a = !1,
|
|
794
|
+
limiter: r = {
|
|
795
795
|
fn: (V) => {
|
|
796
796
|
let {
|
|
797
797
|
x: w,
|
|
@@ -803,23 +803,23 @@ const Yn = function(e) {
|
|
|
803
803
|
};
|
|
804
804
|
}
|
|
805
805
|
},
|
|
806
|
-
...
|
|
807
|
-
} =
|
|
806
|
+
...i
|
|
807
|
+
} = Be(e, n), u = {
|
|
808
808
|
x: t,
|
|
809
809
|
y: o
|
|
810
|
-
},
|
|
811
|
-
let
|
|
812
|
-
if (a) {
|
|
813
|
-
const V = f === "y" ? "top" : "left", w = f === "y" ? "bottom" : "right", _ = m + i[V], h = m - i[w];
|
|
814
|
-
m = mt(_, m, h);
|
|
815
|
-
}
|
|
810
|
+
}, c = await nt(n, i), d = ce(fe(l)), m = Ot(d);
|
|
811
|
+
let f = u[m], p = u[d];
|
|
816
812
|
if (s) {
|
|
817
|
-
const V =
|
|
818
|
-
|
|
813
|
+
const V = m === "y" ? "top" : "left", w = m === "y" ? "bottom" : "right", _ = f + c[V], h = f - c[w];
|
|
814
|
+
f = ht(_, f, h);
|
|
815
|
+
}
|
|
816
|
+
if (a) {
|
|
817
|
+
const V = d === "y" ? "top" : "left", w = d === "y" ? "bottom" : "right", _ = p + c[V], h = p - c[w];
|
|
818
|
+
p = ht(_, p, h);
|
|
819
819
|
}
|
|
820
|
-
const y =
|
|
820
|
+
const y = r.fn({
|
|
821
821
|
...n,
|
|
822
|
-
[
|
|
822
|
+
[m]: f,
|
|
823
823
|
[d]: p
|
|
824
824
|
});
|
|
825
825
|
return {
|
|
@@ -828,14 +828,14 @@ const Yn = function(e) {
|
|
|
828
828
|
x: y.x - t,
|
|
829
829
|
y: y.y - o,
|
|
830
830
|
enabled: {
|
|
831
|
-
[
|
|
832
|
-
[d]:
|
|
831
|
+
[m]: s,
|
|
832
|
+
[d]: a
|
|
833
833
|
}
|
|
834
834
|
}
|
|
835
835
|
};
|
|
836
836
|
}
|
|
837
837
|
};
|
|
838
|
-
},
|
|
838
|
+
}, no = function(e) {
|
|
839
839
|
return e === void 0 && (e = {}), {
|
|
840
840
|
name: "size",
|
|
841
841
|
options: e,
|
|
@@ -843,31 +843,31 @@ const Yn = function(e) {
|
|
|
843
843
|
var t, o;
|
|
844
844
|
const {
|
|
845
845
|
placement: l,
|
|
846
|
-
rects:
|
|
847
|
-
platform:
|
|
848
|
-
elements:
|
|
846
|
+
rects: s,
|
|
847
|
+
platform: a,
|
|
848
|
+
elements: r
|
|
849
849
|
} = n, {
|
|
850
|
-
apply:
|
|
850
|
+
apply: i = () => {
|
|
851
851
|
},
|
|
852
|
-
...
|
|
853
|
-
} =
|
|
852
|
+
...u
|
|
853
|
+
} = Be(e, n), c = await nt(n, u), d = fe(l), m = Me(l), f = ce(l) === "y", {
|
|
854
854
|
width: p,
|
|
855
855
|
height: y
|
|
856
|
-
} =
|
|
856
|
+
} = s.floating;
|
|
857
857
|
let V, w;
|
|
858
|
-
d === "top" || d === "bottom" ? (V = d, w =
|
|
859
|
-
const _ = y -
|
|
860
|
-
let
|
|
861
|
-
if ((t = n.middlewareData.shift) != null && t.enabled.x && (
|
|
862
|
-
const
|
|
863
|
-
|
|
858
|
+
d === "top" || d === "bottom" ? (V = d, w = m === (await (a.isRTL == null ? void 0 : a.isRTL(r.floating)) ? "start" : "end") ? "left" : "right") : (w = d, V = m === "end" ? "top" : "bottom");
|
|
859
|
+
const _ = y - c.top - c.bottom, h = p - c.left - c.right, O = Re(y - c[V], _), A = Re(p - c[w], h), F = !n.middlewareData.shift;
|
|
860
|
+
let b = O, g = A;
|
|
861
|
+
if ((t = n.middlewareData.shift) != null && t.enabled.x && (g = h), (o = n.middlewareData.shift) != null && o.enabled.y && (b = _), F && !m) {
|
|
862
|
+
const z = G(c.left, 0), I = G(c.right, 0), se = G(c.top, 0), ie = G(c.bottom, 0);
|
|
863
|
+
f ? g = p - 2 * (z !== 0 || I !== 0 ? z + I : G(c.left, c.right)) : b = y - 2 * (se !== 0 || ie !== 0 ? se + ie : G(c.top, c.bottom));
|
|
864
864
|
}
|
|
865
|
-
await
|
|
865
|
+
await i({
|
|
866
866
|
...n,
|
|
867
|
-
availableWidth:
|
|
868
|
-
availableHeight:
|
|
867
|
+
availableWidth: g,
|
|
868
|
+
availableHeight: b
|
|
869
869
|
});
|
|
870
|
-
const $ = await
|
|
870
|
+
const $ = await a.getDimensions(r.floating);
|
|
871
871
|
return p !== $.width || y !== $.height ? {
|
|
872
872
|
reset: {
|
|
873
873
|
rects: !0
|
|
@@ -876,11 +876,11 @@ const Yn = function(e) {
|
|
|
876
876
|
}
|
|
877
877
|
};
|
|
878
878
|
};
|
|
879
|
-
function
|
|
879
|
+
function Ke() {
|
|
880
880
|
return typeof window < "u";
|
|
881
881
|
}
|
|
882
882
|
function we(e) {
|
|
883
|
-
return
|
|
883
|
+
return ot(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
884
884
|
}
|
|
885
885
|
function Y(e) {
|
|
886
886
|
var n;
|
|
@@ -888,37 +888,37 @@ function Y(e) {
|
|
|
888
888
|
}
|
|
889
889
|
function ae(e) {
|
|
890
890
|
var n;
|
|
891
|
-
return (n = (
|
|
891
|
+
return (n = (ot(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : n.documentElement;
|
|
892
892
|
}
|
|
893
|
-
function
|
|
894
|
-
return
|
|
893
|
+
function ot(e) {
|
|
894
|
+
return Ke() ? e instanceof Node || e instanceof Y(e).Node : !1;
|
|
895
895
|
}
|
|
896
896
|
function ee(e) {
|
|
897
|
-
return
|
|
897
|
+
return Ke() ? e instanceof Element || e instanceof Y(e).Element : !1;
|
|
898
898
|
}
|
|
899
899
|
function le(e) {
|
|
900
|
-
return
|
|
900
|
+
return Ke() ? e instanceof HTMLElement || e instanceof Y(e).HTMLElement : !1;
|
|
901
901
|
}
|
|
902
|
-
function
|
|
903
|
-
return !
|
|
902
|
+
function wt(e) {
|
|
903
|
+
return !Ke() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Y(e).ShadowRoot;
|
|
904
904
|
}
|
|
905
|
-
const
|
|
906
|
-
function
|
|
905
|
+
const oo = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
906
|
+
function Pe(e) {
|
|
907
907
|
const {
|
|
908
908
|
overflow: n,
|
|
909
909
|
overflowX: t,
|
|
910
910
|
overflowY: o,
|
|
911
911
|
display: l
|
|
912
912
|
} = te(e);
|
|
913
|
-
return /auto|scroll|overlay|hidden|clip/.test(n + o + t) && !
|
|
913
|
+
return /auto|scroll|overlay|hidden|clip/.test(n + o + t) && !oo.has(l);
|
|
914
914
|
}
|
|
915
|
-
const
|
|
916
|
-
function
|
|
917
|
-
return
|
|
915
|
+
const lo = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
916
|
+
function ao(e) {
|
|
917
|
+
return lo.has(we(e));
|
|
918
918
|
}
|
|
919
|
-
const
|
|
920
|
-
function
|
|
921
|
-
return
|
|
919
|
+
const so = [":popover-open", ":modal"];
|
|
920
|
+
function qe(e) {
|
|
921
|
+
return so.some((n) => {
|
|
922
922
|
try {
|
|
923
923
|
return e.matches(n);
|
|
924
924
|
} catch {
|
|
@@ -926,33 +926,33 @@ function Xe(e) {
|
|
|
926
926
|
}
|
|
927
927
|
});
|
|
928
928
|
}
|
|
929
|
-
const
|
|
930
|
-
function
|
|
931
|
-
const n =
|
|
932
|
-
return
|
|
929
|
+
const io = ["transform", "translate", "scale", "rotate", "perspective"], ro = ["transform", "translate", "scale", "rotate", "perspective", "filter"], co = ["paint", "layout", "strict", "content"];
|
|
930
|
+
function lt(e) {
|
|
931
|
+
const n = at(), t = ee(e) ? te(e) : e;
|
|
932
|
+
return io.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) || ro.some((o) => (t.willChange || "").includes(o)) || co.some((o) => (t.contain || "").includes(o));
|
|
933
933
|
}
|
|
934
|
-
function
|
|
934
|
+
function uo(e) {
|
|
935
935
|
let n = me(e);
|
|
936
|
-
for (; le(n) && !
|
|
937
|
-
if (
|
|
936
|
+
for (; le(n) && !Ee(n); ) {
|
|
937
|
+
if (lt(n))
|
|
938
938
|
return n;
|
|
939
|
-
if (
|
|
939
|
+
if (qe(n))
|
|
940
940
|
return null;
|
|
941
941
|
n = me(n);
|
|
942
942
|
}
|
|
943
943
|
return null;
|
|
944
944
|
}
|
|
945
|
-
function
|
|
945
|
+
function at() {
|
|
946
946
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
947
947
|
}
|
|
948
|
-
const
|
|
949
|
-
function
|
|
950
|
-
return
|
|
948
|
+
const fo = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
949
|
+
function Ee(e) {
|
|
950
|
+
return fo.has(we(e));
|
|
951
951
|
}
|
|
952
952
|
function te(e) {
|
|
953
953
|
return Y(e).getComputedStyle(e);
|
|
954
954
|
}
|
|
955
|
-
function
|
|
955
|
+
function Ge(e) {
|
|
956
956
|
return ee(e) ? {
|
|
957
957
|
scrollLeft: e.scrollLeft,
|
|
958
958
|
scrollTop: e.scrollTop
|
|
@@ -968,182 +968,182 @@ function me(e) {
|
|
|
968
968
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
969
969
|
e.assignedSlot || // DOM Element detected.
|
|
970
970
|
e.parentNode || // ShadowRoot detected.
|
|
971
|
-
|
|
971
|
+
wt(e) && e.host || // Fallback.
|
|
972
972
|
ae(e)
|
|
973
973
|
);
|
|
974
|
-
return
|
|
974
|
+
return wt(n) ? n.host : n;
|
|
975
975
|
}
|
|
976
|
-
function
|
|
976
|
+
function Mt(e) {
|
|
977
977
|
const n = me(e);
|
|
978
|
-
return
|
|
978
|
+
return Ee(n) ? e.ownerDocument ? e.ownerDocument.body : e.body : le(n) && Pe(n) ? n : Mt(n);
|
|
979
979
|
}
|
|
980
|
-
function
|
|
980
|
+
function Le(e, n, t) {
|
|
981
981
|
var o;
|
|
982
982
|
n === void 0 && (n = []), t === void 0 && (t = !0);
|
|
983
|
-
const l =
|
|
984
|
-
if (
|
|
985
|
-
const
|
|
986
|
-
return n.concat(
|
|
983
|
+
const l = Mt(e), s = l === ((o = e.ownerDocument) == null ? void 0 : o.body), a = Y(l);
|
|
984
|
+
if (s) {
|
|
985
|
+
const r = et(a);
|
|
986
|
+
return n.concat(a, a.visualViewport || [], Pe(l) ? l : [], r && t ? Le(r) : []);
|
|
987
987
|
}
|
|
988
|
-
return n.concat(l,
|
|
988
|
+
return n.concat(l, Le(l, [], t));
|
|
989
989
|
}
|
|
990
|
-
function
|
|
990
|
+
function et(e) {
|
|
991
991
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
992
992
|
}
|
|
993
|
-
function
|
|
993
|
+
function Pt(e) {
|
|
994
994
|
const n = te(e);
|
|
995
995
|
let t = parseFloat(n.width) || 0, o = parseFloat(n.height) || 0;
|
|
996
|
-
const l = le(e),
|
|
997
|
-
return
|
|
996
|
+
const l = le(e), s = l ? e.offsetWidth : t, a = l ? e.offsetHeight : o, r = Ne(t) !== s || Ne(o) !== a;
|
|
997
|
+
return r && (t = s, o = a), {
|
|
998
998
|
width: t,
|
|
999
999
|
height: o,
|
|
1000
|
-
$:
|
|
1000
|
+
$: r
|
|
1001
1001
|
};
|
|
1002
1002
|
}
|
|
1003
|
-
function
|
|
1003
|
+
function st(e) {
|
|
1004
1004
|
return ee(e) ? e : e.contextElement;
|
|
1005
1005
|
}
|
|
1006
|
-
function
|
|
1007
|
-
const n =
|
|
1006
|
+
function ke(e) {
|
|
1007
|
+
const n = st(e);
|
|
1008
1008
|
if (!le(n))
|
|
1009
1009
|
return oe(1);
|
|
1010
1010
|
const t = n.getBoundingClientRect(), {
|
|
1011
1011
|
width: o,
|
|
1012
1012
|
height: l,
|
|
1013
|
-
$:
|
|
1014
|
-
} =
|
|
1015
|
-
let
|
|
1016
|
-
return (!
|
|
1017
|
-
x:
|
|
1018
|
-
y:
|
|
1013
|
+
$: s
|
|
1014
|
+
} = Pt(n);
|
|
1015
|
+
let a = (s ? Ne(t.width) : t.width) / o, r = (s ? Ne(t.height) : t.height) / l;
|
|
1016
|
+
return (!a || !Number.isFinite(a)) && (a = 1), (!r || !Number.isFinite(r)) && (r = 1), {
|
|
1017
|
+
x: a,
|
|
1018
|
+
y: r
|
|
1019
1019
|
};
|
|
1020
1020
|
}
|
|
1021
|
-
const
|
|
1022
|
-
function
|
|
1021
|
+
const mo = /* @__PURE__ */ oe(0);
|
|
1022
|
+
function Ft(e) {
|
|
1023
1023
|
const n = Y(e);
|
|
1024
|
-
return !
|
|
1024
|
+
return !at() || !n.visualViewport ? mo : {
|
|
1025
1025
|
x: n.visualViewport.offsetLeft,
|
|
1026
1026
|
y: n.visualViewport.offsetTop
|
|
1027
1027
|
};
|
|
1028
1028
|
}
|
|
1029
|
-
function
|
|
1029
|
+
function vo(e, n, t) {
|
|
1030
1030
|
return n === void 0 && (n = !1), !t || n && t !== Y(e) ? !1 : n;
|
|
1031
1031
|
}
|
|
1032
|
-
function
|
|
1032
|
+
function ge(e, n, t, o) {
|
|
1033
1033
|
n === void 0 && (n = !1), t === void 0 && (t = !1);
|
|
1034
|
-
const l = e.getBoundingClientRect(),
|
|
1035
|
-
let
|
|
1036
|
-
n && (o ? ee(o) && (
|
|
1037
|
-
const
|
|
1038
|
-
let
|
|
1039
|
-
if (
|
|
1040
|
-
const
|
|
1041
|
-
let p =
|
|
1042
|
-
for (; y && o &&
|
|
1043
|
-
const V =
|
|
1044
|
-
|
|
1034
|
+
const l = e.getBoundingClientRect(), s = st(e);
|
|
1035
|
+
let a = oe(1);
|
|
1036
|
+
n && (o ? ee(o) && (a = ke(o)) : a = ke(e));
|
|
1037
|
+
const r = vo(s, t, o) ? Ft(s) : oe(0);
|
|
1038
|
+
let i = (l.left + r.x) / a.x, u = (l.top + r.y) / a.y, c = l.width / a.x, d = l.height / a.y;
|
|
1039
|
+
if (s) {
|
|
1040
|
+
const m = Y(s), f = o && ee(o) ? Y(o) : o;
|
|
1041
|
+
let p = m, y = et(p);
|
|
1042
|
+
for (; y && o && f !== p; ) {
|
|
1043
|
+
const V = ke(y), w = y.getBoundingClientRect(), _ = te(y), h = w.left + (y.clientLeft + parseFloat(_.paddingLeft)) * V.x, O = w.top + (y.clientTop + parseFloat(_.paddingTop)) * V.y;
|
|
1044
|
+
i *= V.x, u *= V.y, c *= V.x, d *= V.y, i += h, u += O, p = Y(y), y = et(p);
|
|
1045
1045
|
}
|
|
1046
1046
|
}
|
|
1047
|
-
return
|
|
1048
|
-
width:
|
|
1047
|
+
return We({
|
|
1048
|
+
width: c,
|
|
1049
1049
|
height: d,
|
|
1050
|
-
x:
|
|
1051
|
-
y:
|
|
1050
|
+
x: i,
|
|
1051
|
+
y: u
|
|
1052
1052
|
});
|
|
1053
1053
|
}
|
|
1054
|
-
function
|
|
1055
|
-
const t =
|
|
1056
|
-
return n ? n.left + t :
|
|
1054
|
+
function Ye(e, n) {
|
|
1055
|
+
const t = Ge(e).scrollLeft;
|
|
1056
|
+
return n ? n.left + t : ge(ae(e)).left + t;
|
|
1057
1057
|
}
|
|
1058
|
-
function
|
|
1059
|
-
const t = e.getBoundingClientRect(), o = t.left + n.scrollLeft -
|
|
1058
|
+
function Dt(e, n) {
|
|
1059
|
+
const t = e.getBoundingClientRect(), o = t.left + n.scrollLeft - Ye(e, t), l = t.top + n.scrollTop;
|
|
1060
1060
|
return {
|
|
1061
1061
|
x: o,
|
|
1062
1062
|
y: l
|
|
1063
1063
|
};
|
|
1064
1064
|
}
|
|
1065
|
-
function
|
|
1065
|
+
function po(e) {
|
|
1066
1066
|
let {
|
|
1067
1067
|
elements: n,
|
|
1068
1068
|
rect: t,
|
|
1069
1069
|
offsetParent: o,
|
|
1070
1070
|
strategy: l
|
|
1071
1071
|
} = e;
|
|
1072
|
-
const
|
|
1073
|
-
if (o ===
|
|
1072
|
+
const s = l === "fixed", a = ae(o), r = n ? qe(n.floating) : !1;
|
|
1073
|
+
if (o === a || r && s)
|
|
1074
1074
|
return t;
|
|
1075
|
-
let
|
|
1075
|
+
let i = {
|
|
1076
1076
|
scrollLeft: 0,
|
|
1077
1077
|
scrollTop: 0
|
|
1078
|
-
},
|
|
1079
|
-
const
|
|
1080
|
-
if ((d || !d && !
|
|
1081
|
-
const
|
|
1082
|
-
|
|
1078
|
+
}, u = oe(1);
|
|
1079
|
+
const c = oe(0), d = le(o);
|
|
1080
|
+
if ((d || !d && !s) && ((we(o) !== "body" || Pe(a)) && (i = Ge(o)), le(o))) {
|
|
1081
|
+
const f = ge(o);
|
|
1082
|
+
u = ke(o), c.x = f.x + o.clientLeft, c.y = f.y + o.clientTop;
|
|
1083
1083
|
}
|
|
1084
|
-
const
|
|
1084
|
+
const m = a && !d && !s ? Dt(a, i) : oe(0);
|
|
1085
1085
|
return {
|
|
1086
|
-
width: t.width *
|
|
1087
|
-
height: t.height *
|
|
1088
|
-
x: t.x *
|
|
1089
|
-
y: t.y *
|
|
1086
|
+
width: t.width * u.x,
|
|
1087
|
+
height: t.height * u.y,
|
|
1088
|
+
x: t.x * u.x - i.scrollLeft * u.x + c.x + m.x,
|
|
1089
|
+
y: t.y * u.y - i.scrollTop * u.y + c.y + m.y
|
|
1090
1090
|
};
|
|
1091
1091
|
}
|
|
1092
|
-
function
|
|
1092
|
+
function ho(e) {
|
|
1093
1093
|
return Array.from(e.getClientRects());
|
|
1094
1094
|
}
|
|
1095
|
-
function
|
|
1096
|
-
const n = ae(e), t =
|
|
1097
|
-
let
|
|
1098
|
-
const
|
|
1099
|
-
return te(o).direction === "rtl" && (
|
|
1095
|
+
function bo(e) {
|
|
1096
|
+
const n = ae(e), t = Ge(e), o = e.ownerDocument.body, l = G(n.scrollWidth, n.clientWidth, o.scrollWidth, o.clientWidth), s = G(n.scrollHeight, n.clientHeight, o.scrollHeight, o.clientHeight);
|
|
1097
|
+
let a = -t.scrollLeft + Ye(e);
|
|
1098
|
+
const r = -t.scrollTop;
|
|
1099
|
+
return te(o).direction === "rtl" && (a += G(n.clientWidth, o.clientWidth) - l), {
|
|
1100
1100
|
width: l,
|
|
1101
|
-
height:
|
|
1102
|
-
x:
|
|
1103
|
-
y:
|
|
1101
|
+
height: s,
|
|
1102
|
+
x: a,
|
|
1103
|
+
y: r
|
|
1104
1104
|
};
|
|
1105
1105
|
}
|
|
1106
|
-
const
|
|
1107
|
-
function
|
|
1106
|
+
const xt = 25;
|
|
1107
|
+
function go(e, n) {
|
|
1108
1108
|
const t = Y(e), o = ae(e), l = t.visualViewport;
|
|
1109
|
-
let
|
|
1109
|
+
let s = o.clientWidth, a = o.clientHeight, r = 0, i = 0;
|
|
1110
1110
|
if (l) {
|
|
1111
|
-
|
|
1112
|
-
const
|
|
1113
|
-
(!
|
|
1114
|
-
}
|
|
1115
|
-
const
|
|
1116
|
-
if (
|
|
1117
|
-
const
|
|
1118
|
-
p <=
|
|
1119
|
-
} else
|
|
1111
|
+
s = l.width, a = l.height;
|
|
1112
|
+
const c = at();
|
|
1113
|
+
(!c || c && n === "fixed") && (r = l.offsetLeft, i = l.offsetTop);
|
|
1114
|
+
}
|
|
1115
|
+
const u = Ye(o);
|
|
1116
|
+
if (u <= 0) {
|
|
1117
|
+
const c = o.ownerDocument, d = c.body, m = getComputedStyle(d), f = c.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, p = Math.abs(o.clientWidth - d.clientWidth - f);
|
|
1118
|
+
p <= xt && (s -= p);
|
|
1119
|
+
} else u <= xt && (s += u);
|
|
1120
1120
|
return {
|
|
1121
|
-
width:
|
|
1122
|
-
height:
|
|
1123
|
-
x:
|
|
1124
|
-
y:
|
|
1121
|
+
width: s,
|
|
1122
|
+
height: a,
|
|
1123
|
+
x: r,
|
|
1124
|
+
y: i
|
|
1125
1125
|
};
|
|
1126
1126
|
}
|
|
1127
|
-
const
|
|
1128
|
-
function
|
|
1129
|
-
const t =
|
|
1127
|
+
const yo = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
1128
|
+
function wo(e, n) {
|
|
1129
|
+
const t = ge(e, !0, n === "fixed"), o = t.top + e.clientTop, l = t.left + e.clientLeft, s = le(e) ? ke(e) : oe(1), a = e.clientWidth * s.x, r = e.clientHeight * s.y, i = l * s.x, u = o * s.y;
|
|
1130
1130
|
return {
|
|
1131
|
-
width:
|
|
1132
|
-
height:
|
|
1133
|
-
x:
|
|
1134
|
-
y:
|
|
1131
|
+
width: a,
|
|
1132
|
+
height: r,
|
|
1133
|
+
x: i,
|
|
1134
|
+
y: u
|
|
1135
1135
|
};
|
|
1136
1136
|
}
|
|
1137
|
-
function
|
|
1137
|
+
function _t(e, n, t) {
|
|
1138
1138
|
let o;
|
|
1139
1139
|
if (n === "viewport")
|
|
1140
|
-
o =
|
|
1140
|
+
o = go(e, t);
|
|
1141
1141
|
else if (n === "document")
|
|
1142
|
-
o =
|
|
1142
|
+
o = bo(ae(e));
|
|
1143
1143
|
else if (ee(n))
|
|
1144
|
-
o =
|
|
1144
|
+
o = wo(n, t);
|
|
1145
1145
|
else {
|
|
1146
|
-
const l =
|
|
1146
|
+
const l = Ft(e);
|
|
1147
1147
|
o = {
|
|
1148
1148
|
x: n.x - l.x,
|
|
1149
1149
|
y: n.y - l.y,
|
|
@@ -1151,81 +1151,81 @@ function yt(e, n, t) {
|
|
|
1151
1151
|
height: n.height
|
|
1152
1152
|
};
|
|
1153
1153
|
}
|
|
1154
|
-
return
|
|
1154
|
+
return We(o);
|
|
1155
1155
|
}
|
|
1156
|
-
function
|
|
1156
|
+
function jt(e, n) {
|
|
1157
1157
|
const t = me(e);
|
|
1158
|
-
return t === n || !ee(t) ||
|
|
1158
|
+
return t === n || !ee(t) || Ee(t) ? !1 : te(t).position === "fixed" || jt(t, n);
|
|
1159
1159
|
}
|
|
1160
|
-
function
|
|
1160
|
+
function xo(e, n) {
|
|
1161
1161
|
const t = n.get(e);
|
|
1162
1162
|
if (t)
|
|
1163
1163
|
return t;
|
|
1164
|
-
let o =
|
|
1165
|
-
const
|
|
1166
|
-
let
|
|
1167
|
-
for (; ee(
|
|
1168
|
-
const
|
|
1169
|
-
!
|
|
1164
|
+
let o = Le(e, [], !1).filter((r) => ee(r) && we(r) !== "body"), l = null;
|
|
1165
|
+
const s = te(e).position === "fixed";
|
|
1166
|
+
let a = s ? me(e) : e;
|
|
1167
|
+
for (; ee(a) && !Ee(a); ) {
|
|
1168
|
+
const r = te(a), i = lt(a);
|
|
1169
|
+
!i && r.position === "fixed" && (l = null), (s ? !i && !l : !i && r.position === "static" && !!l && yo.has(l.position) || Pe(a) && !i && jt(e, a)) ? o = o.filter((c) => c !== a) : l = r, a = me(a);
|
|
1170
1170
|
}
|
|
1171
1171
|
return n.set(e, o), o;
|
|
1172
1172
|
}
|
|
1173
|
-
function
|
|
1173
|
+
function _o(e) {
|
|
1174
1174
|
let {
|
|
1175
1175
|
element: n,
|
|
1176
1176
|
boundary: t,
|
|
1177
1177
|
rootBoundary: o,
|
|
1178
1178
|
strategy: l
|
|
1179
1179
|
} = e;
|
|
1180
|
-
const
|
|
1181
|
-
const d =
|
|
1182
|
-
return
|
|
1183
|
-
},
|
|
1180
|
+
const a = [...t === "clippingAncestors" ? qe(n) ? [] : xo(n, this._c) : [].concat(t), o], r = a[0], i = a.reduce((u, c) => {
|
|
1181
|
+
const d = _t(n, c, l);
|
|
1182
|
+
return u.top = G(d.top, u.top), u.right = Re(d.right, u.right), u.bottom = Re(d.bottom, u.bottom), u.left = G(d.left, u.left), u;
|
|
1183
|
+
}, _t(n, r, l));
|
|
1184
1184
|
return {
|
|
1185
|
-
width:
|
|
1186
|
-
height:
|
|
1187
|
-
x:
|
|
1188
|
-
y:
|
|
1185
|
+
width: i.right - i.left,
|
|
1186
|
+
height: i.bottom - i.top,
|
|
1187
|
+
x: i.left,
|
|
1188
|
+
y: i.top
|
|
1189
1189
|
};
|
|
1190
1190
|
}
|
|
1191
|
-
function
|
|
1191
|
+
function Vo(e) {
|
|
1192
1192
|
const {
|
|
1193
1193
|
width: n,
|
|
1194
1194
|
height: t
|
|
1195
|
-
} =
|
|
1195
|
+
} = Pt(e);
|
|
1196
1196
|
return {
|
|
1197
1197
|
width: n,
|
|
1198
1198
|
height: t
|
|
1199
1199
|
};
|
|
1200
1200
|
}
|
|
1201
|
-
function
|
|
1202
|
-
const o = le(n), l = ae(n),
|
|
1203
|
-
let
|
|
1201
|
+
function ko(e, n, t) {
|
|
1202
|
+
const o = le(n), l = ae(n), s = t === "fixed", a = ge(e, !0, s, n);
|
|
1203
|
+
let r = {
|
|
1204
1204
|
scrollLeft: 0,
|
|
1205
1205
|
scrollTop: 0
|
|
1206
1206
|
};
|
|
1207
|
-
const
|
|
1208
|
-
function
|
|
1209
|
-
|
|
1210
|
-
}
|
|
1211
|
-
if (o || !o && !
|
|
1212
|
-
if ((we(n) !== "body" ||
|
|
1213
|
-
const
|
|
1214
|
-
|
|
1215
|
-
} else l &&
|
|
1216
|
-
|
|
1217
|
-
const
|
|
1207
|
+
const i = oe(0);
|
|
1208
|
+
function u() {
|
|
1209
|
+
i.x = Ye(l);
|
|
1210
|
+
}
|
|
1211
|
+
if (o || !o && !s)
|
|
1212
|
+
if ((we(n) !== "body" || Pe(l)) && (r = Ge(n)), o) {
|
|
1213
|
+
const f = ge(n, !0, s, n);
|
|
1214
|
+
i.x = f.x + n.clientLeft, i.y = f.y + n.clientTop;
|
|
1215
|
+
} else l && u();
|
|
1216
|
+
s && !o && l && u();
|
|
1217
|
+
const c = l && !o && !s ? Dt(l, r) : oe(0), d = a.left + r.scrollLeft - i.x - c.x, m = a.top + r.scrollTop - i.y - c.y;
|
|
1218
1218
|
return {
|
|
1219
1219
|
x: d,
|
|
1220
|
-
y:
|
|
1221
|
-
width:
|
|
1222
|
-
height:
|
|
1220
|
+
y: m,
|
|
1221
|
+
width: a.width,
|
|
1222
|
+
height: a.height
|
|
1223
1223
|
};
|
|
1224
1224
|
}
|
|
1225
|
-
function
|
|
1225
|
+
function Qe(e) {
|
|
1226
1226
|
return te(e).position === "static";
|
|
1227
1227
|
}
|
|
1228
|
-
function
|
|
1228
|
+
function Vt(e, n) {
|
|
1229
1229
|
if (!le(e) || te(e).position === "fixed")
|
|
1230
1230
|
return null;
|
|
1231
1231
|
if (n)
|
|
@@ -1233,28 +1233,28 @@ function wt(e, n) {
|
|
|
1233
1233
|
let t = e.offsetParent;
|
|
1234
1234
|
return ae(e) === t && (t = t.ownerDocument.body), t;
|
|
1235
1235
|
}
|
|
1236
|
-
function
|
|
1236
|
+
function zt(e, n) {
|
|
1237
1237
|
const t = Y(e);
|
|
1238
|
-
if (
|
|
1238
|
+
if (qe(e))
|
|
1239
1239
|
return t;
|
|
1240
1240
|
if (!le(e)) {
|
|
1241
1241
|
let l = me(e);
|
|
1242
|
-
for (; l && !
|
|
1243
|
-
if (ee(l) && !
|
|
1242
|
+
for (; l && !Ee(l); ) {
|
|
1243
|
+
if (ee(l) && !Qe(l))
|
|
1244
1244
|
return l;
|
|
1245
1245
|
l = me(l);
|
|
1246
1246
|
}
|
|
1247
1247
|
return t;
|
|
1248
1248
|
}
|
|
1249
|
-
let o =
|
|
1250
|
-
for (; o &&
|
|
1251
|
-
o =
|
|
1252
|
-
return o &&
|
|
1249
|
+
let o = Vt(e, n);
|
|
1250
|
+
for (; o && ao(o) && Qe(o); )
|
|
1251
|
+
o = Vt(o, n);
|
|
1252
|
+
return o && Ee(o) && Qe(o) && !lt(o) ? t : o || uo(e) || t;
|
|
1253
1253
|
}
|
|
1254
|
-
const
|
|
1255
|
-
const n = this.getOffsetParent ||
|
|
1254
|
+
const Co = async function(e) {
|
|
1255
|
+
const n = this.getOffsetParent || zt, t = this.getDimensions, o = await t(e.floating);
|
|
1256
1256
|
return {
|
|
1257
|
-
reference:
|
|
1257
|
+
reference: ko(e.reference, await n(e.floating), e.strategy),
|
|
1258
1258
|
floating: {
|
|
1259
1259
|
x: 0,
|
|
1260
1260
|
y: 0,
|
|
@@ -1263,56 +1263,56 @@ const xo = async function(e) {
|
|
|
1263
1263
|
}
|
|
1264
1264
|
};
|
|
1265
1265
|
};
|
|
1266
|
-
function
|
|
1266
|
+
function Ro(e) {
|
|
1267
1267
|
return te(e).direction === "rtl";
|
|
1268
1268
|
}
|
|
1269
|
-
const
|
|
1270
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
1269
|
+
const Eo = {
|
|
1270
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: po,
|
|
1271
1271
|
getDocumentElement: ae,
|
|
1272
|
-
getClippingRect:
|
|
1273
|
-
getOffsetParent:
|
|
1274
|
-
getElementRects:
|
|
1275
|
-
getClientRects:
|
|
1276
|
-
getDimensions:
|
|
1277
|
-
getScale:
|
|
1272
|
+
getClippingRect: _o,
|
|
1273
|
+
getOffsetParent: zt,
|
|
1274
|
+
getElementRects: Co,
|
|
1275
|
+
getClientRects: ho,
|
|
1276
|
+
getDimensions: Vo,
|
|
1277
|
+
getScale: ke,
|
|
1278
1278
|
isElement: ee,
|
|
1279
|
-
isRTL:
|
|
1279
|
+
isRTL: Ro
|
|
1280
1280
|
};
|
|
1281
|
-
function
|
|
1281
|
+
function It(e, n) {
|
|
1282
1282
|
return e.x === n.x && e.y === n.y && e.width === n.width && e.height === n.height;
|
|
1283
1283
|
}
|
|
1284
|
-
function
|
|
1284
|
+
function So(e, n) {
|
|
1285
1285
|
let t = null, o;
|
|
1286
1286
|
const l = ae(e);
|
|
1287
|
-
function
|
|
1288
|
-
var
|
|
1289
|
-
clearTimeout(o), (
|
|
1290
|
-
}
|
|
1291
|
-
function
|
|
1292
|
-
|
|
1293
|
-
const
|
|
1294
|
-
left:
|
|
1287
|
+
function s() {
|
|
1288
|
+
var r;
|
|
1289
|
+
clearTimeout(o), (r = t) == null || r.disconnect(), t = null;
|
|
1290
|
+
}
|
|
1291
|
+
function a(r, i) {
|
|
1292
|
+
r === void 0 && (r = !1), i === void 0 && (i = 1), s();
|
|
1293
|
+
const u = e.getBoundingClientRect(), {
|
|
1294
|
+
left: c,
|
|
1295
1295
|
top: d,
|
|
1296
|
-
width:
|
|
1297
|
-
height:
|
|
1298
|
-
} =
|
|
1299
|
-
if (
|
|
1296
|
+
width: m,
|
|
1297
|
+
height: f
|
|
1298
|
+
} = u;
|
|
1299
|
+
if (r || n(), !m || !f)
|
|
1300
1300
|
return;
|
|
1301
|
-
const p =
|
|
1301
|
+
const p = je(d), y = je(l.clientWidth - (c + m)), V = je(l.clientHeight - (d + f)), w = je(c), h = {
|
|
1302
1302
|
rootMargin: -p + "px " + -y + "px " + -V + "px " + -w + "px",
|
|
1303
|
-
threshold: G(0,
|
|
1303
|
+
threshold: G(0, Re(1, i)) || 1
|
|
1304
1304
|
};
|
|
1305
1305
|
let O = !0;
|
|
1306
1306
|
function A(F) {
|
|
1307
|
-
const
|
|
1308
|
-
if (
|
|
1307
|
+
const b = F[0].intersectionRatio;
|
|
1308
|
+
if (b !== i) {
|
|
1309
1309
|
if (!O)
|
|
1310
|
-
return
|
|
1311
|
-
|
|
1312
|
-
|
|
1310
|
+
return a();
|
|
1311
|
+
b ? a(!1, b) : o = setTimeout(() => {
|
|
1312
|
+
a(!1, 1e-7);
|
|
1313
1313
|
}, 1e3);
|
|
1314
1314
|
}
|
|
1315
|
-
|
|
1315
|
+
b === 1 && !It(u, e.getBoundingClientRect()) && a(), O = !1;
|
|
1316
1316
|
}
|
|
1317
1317
|
try {
|
|
1318
1318
|
t = new IntersectionObserver(A, {
|
|
@@ -1325,123 +1325,123 @@ function ko(e, n) {
|
|
|
1325
1325
|
}
|
|
1326
1326
|
t.observe(e);
|
|
1327
1327
|
}
|
|
1328
|
-
return
|
|
1328
|
+
return a(!0), s;
|
|
1329
1329
|
}
|
|
1330
|
-
function
|
|
1330
|
+
function Nt(e, n, t, o) {
|
|
1331
1331
|
o === void 0 && (o = {});
|
|
1332
1332
|
const {
|
|
1333
1333
|
ancestorScroll: l = !0,
|
|
1334
|
-
ancestorResize:
|
|
1335
|
-
elementResize:
|
|
1336
|
-
layoutShift:
|
|
1337
|
-
animationFrame:
|
|
1338
|
-
} = o,
|
|
1339
|
-
|
|
1334
|
+
ancestorResize: s = !0,
|
|
1335
|
+
elementResize: a = typeof ResizeObserver == "function",
|
|
1336
|
+
layoutShift: r = typeof IntersectionObserver == "function",
|
|
1337
|
+
animationFrame: i = !1
|
|
1338
|
+
} = o, u = st(e), c = l || s ? [...u ? Le(u) : [], ...Le(n)] : [];
|
|
1339
|
+
c.forEach((w) => {
|
|
1340
1340
|
l && w.addEventListener("scroll", t, {
|
|
1341
1341
|
passive: !0
|
|
1342
|
-
}),
|
|
1342
|
+
}), s && w.addEventListener("resize", t);
|
|
1343
1343
|
});
|
|
1344
|
-
const d =
|
|
1345
|
-
let
|
|
1346
|
-
|
|
1344
|
+
const d = u && r ? So(u, t) : null;
|
|
1345
|
+
let m = -1, f = null;
|
|
1346
|
+
a && (f = new ResizeObserver((w) => {
|
|
1347
1347
|
let [_] = w;
|
|
1348
|
-
_ && _.target ===
|
|
1348
|
+
_ && _.target === u && f && (f.unobserve(n), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
|
|
1349
1349
|
var h;
|
|
1350
|
-
(h =
|
|
1350
|
+
(h = f) == null || h.observe(n);
|
|
1351
1351
|
})), t();
|
|
1352
|
-
}),
|
|
1353
|
-
let p, y =
|
|
1354
|
-
|
|
1352
|
+
}), u && !i && f.observe(u), f.observe(n));
|
|
1353
|
+
let p, y = i ? ge(e) : null;
|
|
1354
|
+
i && V();
|
|
1355
1355
|
function V() {
|
|
1356
|
-
const w =
|
|
1357
|
-
y && !
|
|
1356
|
+
const w = ge(e);
|
|
1357
|
+
y && !It(y, w) && t(), y = w, p = requestAnimationFrame(V);
|
|
1358
1358
|
}
|
|
1359
1359
|
return t(), () => {
|
|
1360
1360
|
var w;
|
|
1361
|
-
|
|
1362
|
-
l && _.removeEventListener("scroll", t),
|
|
1363
|
-
}), d?.(), (w =
|
|
1361
|
+
c.forEach((_) => {
|
|
1362
|
+
l && _.removeEventListener("scroll", t), s && _.removeEventListener("resize", t);
|
|
1363
|
+
}), d?.(), (w = f) == null || w.disconnect(), f = null, i && cancelAnimationFrame(p);
|
|
1364
1364
|
};
|
|
1365
1365
|
}
|
|
1366
|
-
const
|
|
1366
|
+
const Ht = eo, Wt = to, Ut = Jn, $o = no, Lo = (e, n, t) => {
|
|
1367
1367
|
const o = /* @__PURE__ */ new Map(), l = {
|
|
1368
|
-
platform:
|
|
1368
|
+
platform: Eo,
|
|
1369
1369
|
...t
|
|
1370
|
-
},
|
|
1370
|
+
}, s = {
|
|
1371
1371
|
...l.platform,
|
|
1372
1372
|
_c: o
|
|
1373
1373
|
};
|
|
1374
|
-
return
|
|
1374
|
+
return Yn(e, n, {
|
|
1375
1375
|
...l,
|
|
1376
|
-
platform:
|
|
1376
|
+
platform: s
|
|
1377
1377
|
});
|
|
1378
1378
|
};
|
|
1379
|
-
function
|
|
1379
|
+
function Ao(e) {
|
|
1380
1380
|
return e != null && typeof e == "object" && "$el" in e;
|
|
1381
1381
|
}
|
|
1382
|
-
function
|
|
1383
|
-
if (
|
|
1382
|
+
function kt(e) {
|
|
1383
|
+
if (Ao(e)) {
|
|
1384
1384
|
const n = e.$el;
|
|
1385
|
-
return
|
|
1385
|
+
return ot(n) && we(n) === "#comment" ? null : n;
|
|
1386
1386
|
}
|
|
1387
1387
|
return e;
|
|
1388
1388
|
}
|
|
1389
|
-
function
|
|
1389
|
+
function $e(e) {
|
|
1390
1390
|
return typeof e == "function" ? e() : E(e);
|
|
1391
1391
|
}
|
|
1392
|
-
function
|
|
1392
|
+
function Xt(e) {
|
|
1393
1393
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1394
1394
|
}
|
|
1395
|
-
function
|
|
1396
|
-
const t =
|
|
1395
|
+
function Ct(e, n) {
|
|
1396
|
+
const t = Xt(e);
|
|
1397
1397
|
return Math.round(n * t) / t;
|
|
1398
1398
|
}
|
|
1399
|
-
function
|
|
1399
|
+
function Kt(e, n, t) {
|
|
1400
1400
|
t === void 0 && (t = {});
|
|
1401
1401
|
const o = t.whileElementsMounted, l = C(() => {
|
|
1402
|
-
var
|
|
1403
|
-
return (
|
|
1404
|
-
}),
|
|
1405
|
-
var
|
|
1406
|
-
return (
|
|
1407
|
-
}),
|
|
1408
|
-
var
|
|
1409
|
-
return (
|
|
1410
|
-
}),
|
|
1411
|
-
var
|
|
1412
|
-
return (
|
|
1413
|
-
}),
|
|
1414
|
-
const
|
|
1415
|
-
position:
|
|
1402
|
+
var b;
|
|
1403
|
+
return (b = $e(t.open)) != null ? b : !0;
|
|
1404
|
+
}), s = C(() => $e(t.middleware)), a = C(() => {
|
|
1405
|
+
var b;
|
|
1406
|
+
return (b = $e(t.placement)) != null ? b : "bottom";
|
|
1407
|
+
}), r = C(() => {
|
|
1408
|
+
var b;
|
|
1409
|
+
return (b = $e(t.strategy)) != null ? b : "absolute";
|
|
1410
|
+
}), i = C(() => {
|
|
1411
|
+
var b;
|
|
1412
|
+
return (b = $e(t.transform)) != null ? b : !0;
|
|
1413
|
+
}), u = C(() => kt(e.value)), c = C(() => kt(n.value)), d = R(0), m = R(0), f = R(r.value), p = R(a.value), y = on({}), V = R(!1), w = C(() => {
|
|
1414
|
+
const b = {
|
|
1415
|
+
position: f.value,
|
|
1416
1416
|
left: "0",
|
|
1417
1417
|
top: "0"
|
|
1418
1418
|
};
|
|
1419
|
-
if (!
|
|
1420
|
-
return
|
|
1421
|
-
const
|
|
1422
|
-
return
|
|
1423
|
-
...
|
|
1424
|
-
transform: "translate(" +
|
|
1425
|
-
...
|
|
1419
|
+
if (!c.value)
|
|
1420
|
+
return b;
|
|
1421
|
+
const g = Ct(c.value, d.value), $ = Ct(c.value, m.value);
|
|
1422
|
+
return i.value ? {
|
|
1423
|
+
...b,
|
|
1424
|
+
transform: "translate(" + g + "px, " + $ + "px)",
|
|
1425
|
+
...Xt(c.value) >= 1.5 && {
|
|
1426
1426
|
willChange: "transform"
|
|
1427
1427
|
}
|
|
1428
1428
|
} : {
|
|
1429
|
-
position:
|
|
1430
|
-
left:
|
|
1429
|
+
position: f.value,
|
|
1430
|
+
left: g + "px",
|
|
1431
1431
|
top: $ + "px"
|
|
1432
1432
|
};
|
|
1433
1433
|
});
|
|
1434
1434
|
let _;
|
|
1435
1435
|
function h() {
|
|
1436
|
-
if (
|
|
1436
|
+
if (u.value == null || c.value == null)
|
|
1437
1437
|
return;
|
|
1438
|
-
const
|
|
1439
|
-
|
|
1440
|
-
middleware:
|
|
1441
|
-
placement:
|
|
1442
|
-
strategy:
|
|
1443
|
-
}).then((
|
|
1444
|
-
d.value =
|
|
1438
|
+
const b = l.value;
|
|
1439
|
+
Lo(u.value, c.value, {
|
|
1440
|
+
middleware: s.value,
|
|
1441
|
+
placement: a.value,
|
|
1442
|
+
strategy: r.value
|
|
1443
|
+
}).then((g) => {
|
|
1444
|
+
d.value = g.x, m.value = g.y, f.value = g.strategy, p.value = g.placement, y.value = g.middlewareData, V.value = b !== !1;
|
|
1445
1445
|
});
|
|
1446
1446
|
}
|
|
1447
1447
|
function O() {
|
|
@@ -1452,24 +1452,24 @@ function Nt(e, n, t) {
|
|
|
1452
1452
|
h();
|
|
1453
1453
|
return;
|
|
1454
1454
|
}
|
|
1455
|
-
if (
|
|
1456
|
-
_ = o(
|
|
1455
|
+
if (u.value != null && c.value != null) {
|
|
1456
|
+
_ = o(u.value, c.value, h);
|
|
1457
1457
|
return;
|
|
1458
1458
|
}
|
|
1459
1459
|
}
|
|
1460
1460
|
function F() {
|
|
1461
1461
|
l.value || (V.value = !1);
|
|
1462
1462
|
}
|
|
1463
|
-
return q([
|
|
1463
|
+
return q([s, a, r, l], h, {
|
|
1464
1464
|
flush: "sync"
|
|
1465
|
-
}), q([
|
|
1465
|
+
}), q([u, c], A, {
|
|
1466
1466
|
flush: "sync"
|
|
1467
1467
|
}), q(l, F, {
|
|
1468
1468
|
flush: "sync"
|
|
1469
|
-
}),
|
|
1469
|
+
}), ln() && an(O), {
|
|
1470
1470
|
x: _e(d),
|
|
1471
|
-
y: _e(
|
|
1472
|
-
strategy: _e(
|
|
1471
|
+
y: _e(m),
|
|
1472
|
+
strategy: _e(f),
|
|
1473
1473
|
placement: _e(p),
|
|
1474
1474
|
middlewareData: _e(y),
|
|
1475
1475
|
isPositioned: _e(V),
|
|
@@ -1477,48 +1477,52 @@ function Nt(e, n, t) {
|
|
|
1477
1477
|
update: h
|
|
1478
1478
|
};
|
|
1479
1479
|
}
|
|
1480
|
-
const
|
|
1480
|
+
const Oo = /* @__PURE__ */ B({
|
|
1481
1481
|
inheritAttrs: !1,
|
|
1482
1482
|
__name: "dot-menu",
|
|
1483
1483
|
props: {
|
|
1484
1484
|
icon: {}
|
|
1485
1485
|
},
|
|
1486
1486
|
setup(e) {
|
|
1487
|
-
const n = e, t = R(!1), o = R(null), l = R(null),
|
|
1487
|
+
const n = e, t = R(!1), o = R(null), l = R(null), s = C(() => n.icon ?? H.DOT_MENU), { floatingStyles: a } = Kt(o, l, {
|
|
1488
1488
|
placement: "bottom-end",
|
|
1489
|
-
middleware: [
|
|
1490
|
-
whileElementsMounted:
|
|
1491
|
-
}),
|
|
1489
|
+
middleware: [Ht(8), Ut(), Wt({ padding: 8 })],
|
|
1490
|
+
whileElementsMounted: Nt
|
|
1491
|
+
}), r = () => {
|
|
1492
1492
|
t.value = !t.value;
|
|
1493
|
-
},
|
|
1493
|
+
}, i = () => {
|
|
1494
1494
|
t.value = !1;
|
|
1495
|
+
}, u = (c) => {
|
|
1496
|
+
const d = c.target;
|
|
1497
|
+
d && (d.closest(".menu-action") || d.closest('[role="menuitem"]') || d.closest("a")) && i();
|
|
1495
1498
|
};
|
|
1496
|
-
return (
|
|
1497
|
-
const
|
|
1498
|
-
return v(), x(
|
|
1499
|
+
return (c, d) => {
|
|
1500
|
+
const m = U("VjButton"), f = U("VjMenu");
|
|
1501
|
+
return v(), x(be, null, [
|
|
1499
1502
|
k("div", {
|
|
1500
|
-
class:
|
|
1503
|
+
class: N(["dot-menu-container", c.$attrs.class])
|
|
1501
1504
|
}, [
|
|
1502
|
-
D(
|
|
1505
|
+
D(m, {
|
|
1503
1506
|
ref_key: "buttonRef",
|
|
1504
1507
|
ref: o,
|
|
1505
1508
|
class: "dot-menu",
|
|
1506
1509
|
tertiary: "",
|
|
1507
|
-
icon:
|
|
1508
|
-
onClick:
|
|
1510
|
+
icon: s.value,
|
|
1511
|
+
onClick: r
|
|
1509
1512
|
}, null, 8, ["icon"]),
|
|
1510
1513
|
D(Ie, { name: "menu" }, {
|
|
1511
|
-
default:
|
|
1514
|
+
default: W(() => [
|
|
1512
1515
|
t.value ? (v(), P(f, {
|
|
1513
1516
|
key: 0,
|
|
1514
1517
|
ref_key: "floatingRef",
|
|
1515
1518
|
ref: l,
|
|
1516
|
-
style: Z(E(
|
|
1519
|
+
style: Z(E(a)),
|
|
1517
1520
|
class: "menu-dropdown",
|
|
1518
|
-
onClose:
|
|
1521
|
+
onClose: i,
|
|
1522
|
+
onClick: u
|
|
1519
1523
|
}, {
|
|
1520
|
-
default:
|
|
1521
|
-
|
|
1524
|
+
default: W(() => [
|
|
1525
|
+
T(c.$slots, "default", {}, void 0, !0)
|
|
1522
1526
|
]),
|
|
1523
1527
|
_: 3
|
|
1524
1528
|
}, 8, ["style"])) : L("", !0)
|
|
@@ -1526,17 +1530,17 @@ const So = /* @__PURE__ */ T({
|
|
|
1526
1530
|
_: 3
|
|
1527
1531
|
})
|
|
1528
1532
|
], 2),
|
|
1529
|
-
(v(), P(
|
|
1533
|
+
(v(), P(tt, { to: "body" }, [
|
|
1530
1534
|
t.value ? (v(), x("div", {
|
|
1531
1535
|
key: 0,
|
|
1532
1536
|
class: "menu-backdrop",
|
|
1533
|
-
onClick:
|
|
1537
|
+
onClick: i
|
|
1534
1538
|
})) : L("", !0)
|
|
1535
1539
|
]))
|
|
1536
1540
|
], 64);
|
|
1537
1541
|
};
|
|
1538
1542
|
}
|
|
1539
|
-
}),
|
|
1543
|
+
}), To = /* @__PURE__ */ M(Oo, [["__scopeId", "data-v-67bd71e4"]]), Bo = /* @__PURE__ */ B({
|
|
1540
1544
|
__name: "link-button",
|
|
1541
1545
|
props: {
|
|
1542
1546
|
label: {},
|
|
@@ -1548,27 +1552,27 @@ const So = /* @__PURE__ */ T({
|
|
|
1548
1552
|
disabled: { type: Boolean }
|
|
1549
1553
|
},
|
|
1550
1554
|
setup(e) {
|
|
1551
|
-
const n = e, t =
|
|
1552
|
-
return (l,
|
|
1553
|
-
const
|
|
1554
|
-
return v(), P(
|
|
1555
|
+
const n = e, t = X.S, o = C(() => n.primary ? "primary" : n.secondary ? "secondary" : n.tertiary ? "tertiary" : "primary");
|
|
1556
|
+
return (l, s) => {
|
|
1557
|
+
const a = U("router-link");
|
|
1558
|
+
return v(), P(a, {
|
|
1555
1559
|
to: e.to,
|
|
1556
|
-
class:
|
|
1560
|
+
class: N(["button", o.value]),
|
|
1557
1561
|
disabled: e.disabled
|
|
1558
1562
|
}, {
|
|
1559
|
-
default:
|
|
1560
|
-
e.icon ? (v(), P(
|
|
1563
|
+
default: W(() => [
|
|
1564
|
+
e.icon ? (v(), P(Te, {
|
|
1561
1565
|
key: 0,
|
|
1562
1566
|
icon: e.icon,
|
|
1563
1567
|
size: E(t)
|
|
1564
1568
|
}, null, 8, ["icon", "size"])) : L("", !0),
|
|
1565
|
-
|
|
1569
|
+
ze(" " + j(e.label), 1)
|
|
1566
1570
|
]),
|
|
1567
1571
|
_: 1
|
|
1568
1572
|
}, 8, ["to", "class", "disabled"]);
|
|
1569
1573
|
};
|
|
1570
1574
|
}
|
|
1571
|
-
}),
|
|
1575
|
+
}), Mo = /* @__PURE__ */ M(Bo, [["__scopeId", "data-v-bd3cf2f5"]]), Po = ["disabled"], Fo = { class: "menu-action--icon" }, Do = /* @__PURE__ */ B({
|
|
1572
1576
|
__name: "menu-action",
|
|
1573
1577
|
props: {
|
|
1574
1578
|
label: {},
|
|
@@ -1576,37 +1580,37 @@ const So = /* @__PURE__ */ T({
|
|
|
1576
1580
|
disabled: { type: Boolean }
|
|
1577
1581
|
},
|
|
1578
1582
|
setup(e) {
|
|
1579
|
-
const n =
|
|
1583
|
+
const n = X.S;
|
|
1580
1584
|
return (t, o) => (v(), x("button", {
|
|
1581
1585
|
class: "menu-action button tertiary",
|
|
1582
1586
|
disabled: e.disabled
|
|
1583
1587
|
}, [
|
|
1584
|
-
k("span",
|
|
1585
|
-
e.icon ? (v(), P(
|
|
1588
|
+
k("span", Fo, [
|
|
1589
|
+
e.icon ? (v(), P(Te, {
|
|
1586
1590
|
key: 0,
|
|
1587
1591
|
icon: e.icon,
|
|
1588
1592
|
size: E(n)
|
|
1589
1593
|
}, null, 8, ["icon", "size"])) : L("", !0)
|
|
1590
1594
|
]),
|
|
1591
|
-
k("span", null,
|
|
1592
|
-
], 8,
|
|
1595
|
+
k("span", null, j(e.label), 1)
|
|
1596
|
+
], 8, Po));
|
|
1593
1597
|
}
|
|
1594
|
-
}),
|
|
1595
|
-
function
|
|
1596
|
-
return v(), x("div",
|
|
1597
|
-
|
|
1598
|
+
}), jo = /* @__PURE__ */ M(Do, [["__scopeId", "data-v-07850995"]]), zo = {}, Io = { class: "menu" };
|
|
1599
|
+
function No(e, n) {
|
|
1600
|
+
return v(), x("div", Io, [
|
|
1601
|
+
T(e.$slots, "default", {}, void 0, !0)
|
|
1598
1602
|
]);
|
|
1599
1603
|
}
|
|
1600
|
-
const
|
|
1604
|
+
const Ho = /* @__PURE__ */ M(zo, [["render", No], ["__scopeId", "data-v-259fec08"]]), Wo = { class: "page" }, Uo = {
|
|
1601
1605
|
key: 0,
|
|
1602
1606
|
class: "page-error"
|
|
1603
|
-
},
|
|
1607
|
+
}, Xo = {
|
|
1604
1608
|
key: 1,
|
|
1605
1609
|
class: "contents"
|
|
1606
|
-
},
|
|
1610
|
+
}, Ko = {
|
|
1607
1611
|
key: 2,
|
|
1608
1612
|
class: "actions"
|
|
1609
|
-
},
|
|
1613
|
+
}, qo = { key: 3 }, Go = { key: 0 }, Yo = /* @__PURE__ */ B({
|
|
1610
1614
|
__name: "page",
|
|
1611
1615
|
props: {
|
|
1612
1616
|
title: {},
|
|
@@ -1614,38 +1618,38 @@ const jo = /* @__PURE__ */ M(Po, [["render", Do], ["__scopeId", "data-v-259fec08
|
|
|
1614
1618
|
errorMessage: {}
|
|
1615
1619
|
},
|
|
1616
1620
|
setup(e) {
|
|
1617
|
-
return (n, t) => (v(), x("div",
|
|
1621
|
+
return (n, t) => (v(), x("div", Wo, [
|
|
1618
1622
|
k("header", null, [
|
|
1619
|
-
k("h2", null,
|
|
1623
|
+
k("h2", null, j(e.title), 1),
|
|
1620
1624
|
k("span", null, [
|
|
1621
|
-
|
|
1625
|
+
T(n.$slots, "headerActions", {}, void 0, !0)
|
|
1622
1626
|
])
|
|
1623
1627
|
]),
|
|
1624
1628
|
k("main", {
|
|
1625
|
-
class:
|
|
1629
|
+
class: N({ scrollable: e.scrollable })
|
|
1626
1630
|
}, [
|
|
1627
|
-
e.errorMessage ? (v(), x("div",
|
|
1628
|
-
|
|
1631
|
+
e.errorMessage ? (v(), x("div", Uo, [
|
|
1632
|
+
T(n.$slots, "error", {}, void 0, !0)
|
|
1629
1633
|
])) : L("", !0),
|
|
1630
|
-
e.errorMessage ? L("", !0) : (v(), x("div",
|
|
1631
|
-
|
|
1634
|
+
e.errorMessage ? L("", !0) : (v(), x("div", Xo, [
|
|
1635
|
+
T(n.$slots, "default", {}, void 0, !0)
|
|
1632
1636
|
])),
|
|
1633
|
-
e.errorMessage ? L("", !0) : (v(), x("div",
|
|
1634
|
-
|
|
1637
|
+
e.errorMessage ? L("", !0) : (v(), x("div", Ko, [
|
|
1638
|
+
T(n.$slots, "actions", {}, void 0, !0)
|
|
1635
1639
|
])),
|
|
1636
|
-
n.$slots.flexFooter ? (v(), x("footer",
|
|
1637
|
-
|
|
1640
|
+
n.$slots.flexFooter ? (v(), x("footer", qo, [
|
|
1641
|
+
T(n.$slots, "flexFooter", {}, void 0, !0)
|
|
1638
1642
|
])) : L("", !0)
|
|
1639
1643
|
], 2),
|
|
1640
|
-
n.$slots.footer ? (v(), x("footer",
|
|
1641
|
-
|
|
1644
|
+
n.$slots.footer ? (v(), x("footer", Go, [
|
|
1645
|
+
T(n.$slots, "footer", {}, void 0, !0)
|
|
1642
1646
|
])) : L("", !0)
|
|
1643
1647
|
]));
|
|
1644
1648
|
}
|
|
1645
|
-
}),
|
|
1649
|
+
}), Jo = /* @__PURE__ */ M(Yo, [["__scopeId", "data-v-1618f861"]]), Qo = {
|
|
1646
1650
|
class: "paginator-info",
|
|
1647
1651
|
"aria-live": "polite"
|
|
1648
|
-
},
|
|
1652
|
+
}, Zo = /* @__PURE__ */ B({
|
|
1649
1653
|
__name: "paginator",
|
|
1650
1654
|
props: /* @__PURE__ */ ue({
|
|
1651
1655
|
totalItems: {},
|
|
@@ -1657,63 +1661,63 @@ const jo = /* @__PURE__ */ M(Po, [["render", Do], ["__scopeId", "data-v-259fec08
|
|
|
1657
1661
|
}),
|
|
1658
1662
|
emits: /* @__PURE__ */ ue(["change"], ["update:modelValue"]),
|
|
1659
1663
|
setup(e, { emit: n }) {
|
|
1660
|
-
const t = e, o = ye(e, "modelValue"), l = n,
|
|
1661
|
-
const _ = Math.min(Math.max(1, Math.floor(w)),
|
|
1664
|
+
const t = e, o = ye(e, "modelValue"), l = n, s = C(() => Math.max(1, Math.ceil((t.totalItems ?? 0) / t.pageSize))), a = C(() => Math.min(Math.max(1, o.value ?? 1), s.value)), r = C(() => a.value), i = C(() => a.value <= 1), u = C(() => a.value >= s.value), c = C(() => t.labels?.item ?? "Eintrag"), d = C(() => t.labels?.of ?? "von"), m = (w) => {
|
|
1665
|
+
const _ = Math.min(Math.max(1, Math.floor(w)), s.value);
|
|
1662
1666
|
_ !== o.value && (o.value = _, l("change", _));
|
|
1663
|
-
},
|
|
1667
|
+
}, f = () => m(1), p = () => m(a.value - 1), y = () => m(a.value + 1), V = () => m(s.value);
|
|
1664
1668
|
return q([() => t.totalItems, () => t.pageSize], () => {
|
|
1665
|
-
o.value >
|
|
1669
|
+
o.value > s.value && m(s.value);
|
|
1666
1670
|
}), (w, _) => {
|
|
1667
|
-
const h =
|
|
1671
|
+
const h = U("VjButton");
|
|
1668
1672
|
return v(), x("nav", {
|
|
1669
1673
|
class: "paginator",
|
|
1670
1674
|
"aria-label": "Pagination",
|
|
1671
|
-
onKeydown: _[0] || (_[0] =
|
|
1675
|
+
onKeydown: _[0] || (_[0] = sn(de(() => {
|
|
1672
1676
|
}, ["prevent"]), ["enter"]))
|
|
1673
1677
|
}, [
|
|
1674
1678
|
D(h, {
|
|
1675
1679
|
tertiary: "",
|
|
1676
1680
|
class: "paginator-btn",
|
|
1677
|
-
icon: E(
|
|
1678
|
-
disabled:
|
|
1679
|
-
onClick:
|
|
1681
|
+
icon: E(H).FIRST,
|
|
1682
|
+
disabled: i.value,
|
|
1683
|
+
onClick: f,
|
|
1680
1684
|
"aria-label": "First page"
|
|
1681
1685
|
}, null, 8, ["icon", "disabled"]),
|
|
1682
1686
|
D(h, {
|
|
1683
1687
|
tertiary: "",
|
|
1684
1688
|
class: "paginator-btn",
|
|
1685
|
-
icon: E(
|
|
1686
|
-
disabled:
|
|
1689
|
+
icon: E(H).PREVIOUS,
|
|
1690
|
+
disabled: i.value,
|
|
1687
1691
|
onClick: p,
|
|
1688
1692
|
"aria-label": "Previous page"
|
|
1689
1693
|
}, null, 8, ["icon", "disabled"]),
|
|
1690
|
-
|
|
1691
|
-
current:
|
|
1692
|
-
totalPages:
|
|
1693
|
-
goTo:
|
|
1694
|
+
T(w.$slots, "info", {
|
|
1695
|
+
current: a.value,
|
|
1696
|
+
totalPages: s.value,
|
|
1697
|
+
goTo: m
|
|
1694
1698
|
}, () => [
|
|
1695
|
-
k("div",
|
|
1699
|
+
k("div", Qo, j(c.value) + " " + j(r.value) + " " + j(d.value) + " " + j(s.value), 1)
|
|
1696
1700
|
], !0),
|
|
1697
1701
|
D(h, {
|
|
1698
1702
|
tertiary: "",
|
|
1699
1703
|
class: "paginator-btn",
|
|
1700
|
-
icon: E(
|
|
1701
|
-
disabled:
|
|
1704
|
+
icon: E(H).NEXT,
|
|
1705
|
+
disabled: u.value,
|
|
1702
1706
|
onClick: y,
|
|
1703
1707
|
"aria-label": "Next page"
|
|
1704
1708
|
}, null, 8, ["icon", "disabled"]),
|
|
1705
1709
|
D(h, {
|
|
1706
1710
|
tertiary: "",
|
|
1707
1711
|
class: "paginator-btn",
|
|
1708
|
-
icon: E(
|
|
1709
|
-
disabled:
|
|
1712
|
+
icon: E(H).LAST,
|
|
1713
|
+
disabled: u.value,
|
|
1710
1714
|
onClick: V,
|
|
1711
1715
|
"aria-label": "Last page"
|
|
1712
1716
|
}, null, 8, ["icon", "disabled"])
|
|
1713
1717
|
], 32);
|
|
1714
1718
|
};
|
|
1715
1719
|
}
|
|
1716
|
-
}),
|
|
1720
|
+
}), el = /* @__PURE__ */ M(Zo, [["__scopeId", "data-v-b6fa8efe"]]), tl = { class: "search-field" }, nl = ["value", "placeholder"], ol = /* @__PURE__ */ B({
|
|
1717
1721
|
__name: "search-field",
|
|
1718
1722
|
props: /* @__PURE__ */ ue({
|
|
1719
1723
|
placeholder: { default: "Search..." }
|
|
@@ -1723,47 +1727,47 @@ const jo = /* @__PURE__ */ M(Po, [["render", Do], ["__scopeId", "data-v-259fec08
|
|
|
1723
1727
|
}),
|
|
1724
1728
|
emits: ["update:modelValue"],
|
|
1725
1729
|
setup(e) {
|
|
1726
|
-
const n = ye(e, "modelValue"), t = (
|
|
1727
|
-
n.value =
|
|
1730
|
+
const n = ye(e, "modelValue"), t = (s) => {
|
|
1731
|
+
n.value = s.target.value;
|
|
1728
1732
|
}, o = () => {
|
|
1729
1733
|
n.value = "";
|
|
1730
1734
|
}, l = C(() => !n.value);
|
|
1731
|
-
return (
|
|
1732
|
-
const
|
|
1733
|
-
return v(), x("div",
|
|
1734
|
-
D(
|
|
1735
|
-
icon: E(
|
|
1736
|
-
size: E(
|
|
1735
|
+
return (s, a) => {
|
|
1736
|
+
const r = U("VjIcon");
|
|
1737
|
+
return v(), x("div", tl, [
|
|
1738
|
+
D(r, {
|
|
1739
|
+
icon: E(H).SEARCH,
|
|
1740
|
+
size: E(X).S
|
|
1737
1741
|
}, null, 8, ["icon", "size"]),
|
|
1738
1742
|
k("input", {
|
|
1739
1743
|
value: n.value,
|
|
1740
1744
|
onInput: t,
|
|
1741
1745
|
type: "text",
|
|
1742
1746
|
placeholder: e.placeholder
|
|
1743
|
-
}, null, 40,
|
|
1744
|
-
D(
|
|
1745
|
-
class:
|
|
1746
|
-
icon: E(
|
|
1747
|
-
size: E(
|
|
1747
|
+
}, null, 40, nl),
|
|
1748
|
+
D(r, {
|
|
1749
|
+
class: N(["reset", { invisible: l.value }]),
|
|
1750
|
+
icon: E(H).CLOSE,
|
|
1751
|
+
size: E(X).S,
|
|
1748
1752
|
onClick: o
|
|
1749
1753
|
}, null, 8, ["class", "icon", "size"])
|
|
1750
1754
|
]);
|
|
1751
1755
|
};
|
|
1752
1756
|
}
|
|
1753
|
-
}),
|
|
1757
|
+
}), ll = /* @__PURE__ */ M(ol, [["__scopeId", "data-v-2771c8ed"]]), al = /* @__PURE__ */ B({
|
|
1754
1758
|
__name: "separator",
|
|
1755
1759
|
props: {
|
|
1756
1760
|
vertical: { type: Boolean }
|
|
1757
1761
|
},
|
|
1758
1762
|
setup(e) {
|
|
1759
1763
|
return (n, t) => (v(), x("div", {
|
|
1760
|
-
class:
|
|
1764
|
+
class: N(["separator", { vertical: e.vertical }])
|
|
1761
1765
|
}, null, 2));
|
|
1762
1766
|
}
|
|
1763
|
-
}),
|
|
1767
|
+
}), sl = /* @__PURE__ */ M(al, [["__scopeId", "data-v-e354bb4e"]]), il = { class: "tab-view" }, rl = {
|
|
1764
1768
|
ref: "headerRef",
|
|
1765
1769
|
class: "tab-view-header"
|
|
1766
|
-
},
|
|
1770
|
+
}, cl = ["onClick"], ul = { class: "tab-view-content" }, dl = /* @__PURE__ */ B({
|
|
1767
1771
|
__name: "tab-view",
|
|
1768
1772
|
props: {
|
|
1769
1773
|
modelValue: {},
|
|
@@ -1774,72 +1778,99 @@ const jo = /* @__PURE__ */ M(Po, [["render", Do], ["__scopeId", "data-v-259fec08
|
|
|
1774
1778
|
const n = ye(e, "modelValue"), t = R([]), o = R([]), l = R({
|
|
1775
1779
|
width: "0px",
|
|
1776
1780
|
transform: "translateX(0px)"
|
|
1777
|
-
}),
|
|
1778
|
-
|
|
1779
|
-
},
|
|
1780
|
-
const
|
|
1781
|
-
if (
|
|
1782
|
-
const
|
|
1781
|
+
}), s = (u, c) => {
|
|
1782
|
+
u && (o.value[c] = u);
|
|
1783
|
+
}, a = () => {
|
|
1784
|
+
const u = t.value.findIndex((c) => c.name === n.value);
|
|
1785
|
+
if (u >= 0 && o.value[u]) {
|
|
1786
|
+
const c = o.value[u], d = c.offsetWidth, m = c.offsetLeft;
|
|
1783
1787
|
l.value = {
|
|
1784
1788
|
width: `${d}px`,
|
|
1785
|
-
transform: `translateX(${
|
|
1789
|
+
transform: `translateX(${m}px)`
|
|
1786
1790
|
};
|
|
1787
1791
|
}
|
|
1788
|
-
},
|
|
1789
|
-
t.value.find((d) => d.name ===
|
|
1790
|
-
!n.value && t.value.length === 1 && (n.value =
|
|
1792
|
+
}, r = (u, c) => {
|
|
1793
|
+
t.value.find((d) => d.name === u) || (t.value.push({ name: u, label: c }), he(() => {
|
|
1794
|
+
!n.value && t.value.length === 1 && (n.value = u), a();
|
|
1791
1795
|
}));
|
|
1792
|
-
},
|
|
1793
|
-
n.value =
|
|
1796
|
+
}, i = (u) => {
|
|
1797
|
+
n.value = u;
|
|
1794
1798
|
};
|
|
1795
1799
|
return q(n, () => {
|
|
1796
1800
|
he(() => {
|
|
1797
|
-
|
|
1801
|
+
a();
|
|
1798
1802
|
});
|
|
1799
|
-
}),
|
|
1803
|
+
}), rn("tabView", {
|
|
1800
1804
|
activeTab: () => n.value,
|
|
1801
|
-
registerTab:
|
|
1802
|
-
}), (
|
|
1803
|
-
k("div",
|
|
1804
|
-
(v(!0), x(
|
|
1805
|
+
registerTab: r
|
|
1806
|
+
}), (u, c) => (v(), x("div", il, [
|
|
1807
|
+
k("div", rl, [
|
|
1808
|
+
(v(!0), x(be, null, Xe(t.value, (d, m) => (v(), x("div", {
|
|
1805
1809
|
key: d.name,
|
|
1806
1810
|
ref_for: !0,
|
|
1807
|
-
ref: (
|
|
1808
|
-
class:
|
|
1809
|
-
onClick: (
|
|
1810
|
-
},
|
|
1811
|
-
|
|
1811
|
+
ref: (f) => s(f, m),
|
|
1812
|
+
class: N(["tab-button", { active: n.value === d.name }]),
|
|
1813
|
+
onClick: (f) => i(d.name)
|
|
1814
|
+
}, j(d.label), 11, cl))), 128)),
|
|
1815
|
+
c[0] || (c[0] = k("div", { class: "tab-line" }, null, -1)),
|
|
1812
1816
|
k("div", {
|
|
1813
1817
|
class: "tab-indicator",
|
|
1814
1818
|
style: Z(l.value)
|
|
1815
1819
|
}, null, 4)
|
|
1816
1820
|
], 512),
|
|
1817
|
-
k("div",
|
|
1818
|
-
|
|
1821
|
+
k("div", ul, [
|
|
1822
|
+
T(u.$slots, "default", {}, void 0, !0)
|
|
1819
1823
|
])
|
|
1820
1824
|
]));
|
|
1821
1825
|
}
|
|
1822
|
-
}),
|
|
1826
|
+
}), fl = /* @__PURE__ */ M(dl, [["__scopeId", "data-v-3d4ee454"]]), ml = {
|
|
1823
1827
|
key: 0,
|
|
1824
1828
|
class: "tab"
|
|
1825
|
-
},
|
|
1829
|
+
}, vl = /* @__PURE__ */ B({
|
|
1826
1830
|
__name: "tab",
|
|
1827
1831
|
props: {
|
|
1828
1832
|
name: {},
|
|
1829
1833
|
label: {}
|
|
1830
1834
|
},
|
|
1831
1835
|
setup(e) {
|
|
1832
|
-
const n = e, t =
|
|
1833
|
-
return
|
|
1836
|
+
const n = e, t = St("tabView"), o = C(() => t?.activeTab() === n.name);
|
|
1837
|
+
return Ae(() => {
|
|
1834
1838
|
t?.registerTab(n.name, n.label);
|
|
1835
|
-
}), (l,
|
|
1836
|
-
|
|
1839
|
+
}), (l, s) => o.value ? (v(), x("div", ml, [
|
|
1840
|
+
T(l.$slots, "default")
|
|
1837
1841
|
])) : L("", !0);
|
|
1838
1842
|
}
|
|
1839
|
-
}),
|
|
1840
|
-
|
|
1843
|
+
}), qt = {
|
|
1844
|
+
form: {
|
|
1845
|
+
labelPosition: "inline"
|
|
1846
|
+
}
|
|
1847
|
+
};
|
|
1848
|
+
let Ue = {};
|
|
1849
|
+
function Ra(e) {
|
|
1850
|
+
Ue = {
|
|
1851
|
+
...Ue,
|
|
1852
|
+
...e,
|
|
1853
|
+
form: {
|
|
1854
|
+
...qt.form,
|
|
1855
|
+
...e.form
|
|
1856
|
+
}
|
|
1857
|
+
};
|
|
1858
|
+
}
|
|
1859
|
+
function pl() {
|
|
1860
|
+
return {
|
|
1861
|
+
form: {
|
|
1862
|
+
...qt.form,
|
|
1863
|
+
...Ue.form
|
|
1864
|
+
}
|
|
1865
|
+
};
|
|
1866
|
+
}
|
|
1867
|
+
function Ea() {
|
|
1868
|
+
Ue = {};
|
|
1869
|
+
}
|
|
1870
|
+
const hl = ["data-colspan", "data-newline"], bl = ["for"], gl = { class: "form-field__wrapper" }, yl = ["for"], wl = {
|
|
1871
|
+
key: 1,
|
|
1841
1872
|
class: "form-field__error"
|
|
1842
|
-
},
|
|
1873
|
+
}, xl = /* @__PURE__ */ B({
|
|
1843
1874
|
__name: "form-field",
|
|
1844
1875
|
props: {
|
|
1845
1876
|
modelValue: {},
|
|
@@ -1850,52 +1881,63 @@ const jo = /* @__PURE__ */ M(Po, [["render", Do], ["__scopeId", "data-v-259fec08
|
|
|
1850
1881
|
colspan: {},
|
|
1851
1882
|
newLine: { type: Boolean },
|
|
1852
1883
|
spanRow: { type: Boolean },
|
|
1853
|
-
error: {}
|
|
1884
|
+
error: {},
|
|
1885
|
+
labelPosition: {}
|
|
1854
1886
|
},
|
|
1855
1887
|
emits: ["update:modelValue", "focus", "blur"],
|
|
1856
1888
|
setup(e, { emit: n }) {
|
|
1857
|
-
const t = e, o = n, l = R(t.modelValue),
|
|
1889
|
+
const t = e, o = n, l = R(t.modelValue), s = R(!1), a = C(() => `form-field-${t.id ?? Math.random().toString(36).slice(2)}`), r = C(() => t.labelPosition ?? pl().form.labelPosition);
|
|
1858
1890
|
q(
|
|
1859
1891
|
() => t.modelValue,
|
|
1860
1892
|
(f) => l.value = f
|
|
1861
1893
|
);
|
|
1862
|
-
const
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
l.value
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1894
|
+
const i = C(() => {
|
|
1895
|
+
if (console.log(t.labelPosition, r.value, s.value, l.value), r.value === "outline")
|
|
1896
|
+
return !0;
|
|
1897
|
+
const f = l.value !== "" && l.value !== null && l.value !== void 0;
|
|
1898
|
+
return s.value || f;
|
|
1899
|
+
}), u = C(() => r.value === "outline" || i.value ? t.placeholder : "");
|
|
1900
|
+
function c(f) {
|
|
1901
|
+
const y = f.target.value;
|
|
1902
|
+
l.value = y, o("update:modelValue", y);
|
|
1869
1903
|
}
|
|
1870
1904
|
function d(f) {
|
|
1871
|
-
|
|
1905
|
+
s.value = !0, o("focus", f);
|
|
1906
|
+
}
|
|
1907
|
+
function m(f) {
|
|
1908
|
+
s.value = !1, o("blur", f);
|
|
1872
1909
|
}
|
|
1873
|
-
return (f,
|
|
1874
|
-
class:
|
|
1910
|
+
return (f, p) => (v(), x("div", {
|
|
1911
|
+
class: N(["form-field", `form-field--${r.value}`, { disabled: e.disabled }, { labelless: !e.label }, { error: !!e.error }]),
|
|
1875
1912
|
"data-colspan": t.spanRow ? void 0 : t.colspan,
|
|
1876
1913
|
"data-newline": t.spanRow || t.newLine ? "true" : void 0,
|
|
1877
1914
|
style: Z(t.spanRow ? { gridColumn: "1 / -1" } : void 0)
|
|
1878
1915
|
}, [
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1916
|
+
e.label && r.value === "outline" ? (v(), x("label", {
|
|
1917
|
+
key: 0,
|
|
1918
|
+
for: a.value,
|
|
1919
|
+
class: "form-field__label-outline"
|
|
1920
|
+
}, j(e.label) + " " + j(r.value), 9, bl)) : L("", !0),
|
|
1921
|
+
k("div", gl, [
|
|
1922
|
+
T(f.$slots, "control", {
|
|
1923
|
+
id: a.value,
|
|
1882
1924
|
value: l.value,
|
|
1883
|
-
onInput:
|
|
1884
|
-
onFocus:
|
|
1885
|
-
onBlur:
|
|
1925
|
+
onInput: c,
|
|
1926
|
+
onFocus: d,
|
|
1927
|
+
onBlur: m,
|
|
1886
1928
|
disabled: e.disabled,
|
|
1887
|
-
placeholder:
|
|
1929
|
+
placeholder: u.value
|
|
1888
1930
|
}, void 0, !0),
|
|
1889
|
-
e.label ? (v(), x("label", {
|
|
1931
|
+
e.label && r.value === "inline" ? (v(), x("label", {
|
|
1890
1932
|
key: 0,
|
|
1891
|
-
for:
|
|
1892
|
-
class:
|
|
1893
|
-
},
|
|
1933
|
+
for: a.value,
|
|
1934
|
+
class: N(["form-field__label", { "form-field__label--float": i.value }])
|
|
1935
|
+
}, j(e.label), 11, yl)) : L("", !0)
|
|
1894
1936
|
]),
|
|
1895
|
-
e.error ? (v(), x("div",
|
|
1896
|
-
], 14,
|
|
1937
|
+
e.error ? (v(), x("div", wl, j(e.error), 1)) : L("", !0)
|
|
1938
|
+
], 14, hl));
|
|
1897
1939
|
}
|
|
1898
|
-
}),
|
|
1940
|
+
}), Fe = /* @__PURE__ */ M(xl, [["__scopeId", "data-v-4ab68d08"]]), _l = /* @__PURE__ */ B({
|
|
1899
1941
|
__name: "form-layout",
|
|
1900
1942
|
props: {
|
|
1901
1943
|
columns: { type: Number, default: 4 },
|
|
@@ -1906,16 +1948,16 @@ const jo = /* @__PURE__ */ M(Po, [["render", Do], ["__scopeId", "data-v-259fec08
|
|
|
1906
1948
|
let o = null;
|
|
1907
1949
|
function l() {
|
|
1908
1950
|
if (!t.value) return;
|
|
1909
|
-
Array.from(t.value.children).forEach((
|
|
1910
|
-
const
|
|
1911
|
-
|
|
1951
|
+
Array.from(t.value.children).forEach((a) => {
|
|
1952
|
+
const r = a.getAttribute("data-colspan"), i = r ? Math.max(1, Number(r) || 1) : 1, u = a.getAttribute("data-newline");
|
|
1953
|
+
u !== null && u !== "false" ? a.style.gridColumn = "1 / -1" : a.style.gridColumn = `span ${i}`;
|
|
1912
1954
|
});
|
|
1913
1955
|
}
|
|
1914
|
-
return
|
|
1956
|
+
return Ae(() => {
|
|
1915
1957
|
he(() => {
|
|
1916
1958
|
l(), t.value && (o = new MutationObserver(() => l()), o.observe(t.value, { childList: !0, subtree: !1, attributes: !0, attributeFilter: ["data-colspan", "data-newline"] }));
|
|
1917
1959
|
});
|
|
1918
|
-
}),
|
|
1960
|
+
}), Oe(() => {
|
|
1919
1961
|
o?.disconnect();
|
|
1920
1962
|
}), q(
|
|
1921
1963
|
() => n.columns,
|
|
@@ -1923,34 +1965,34 @@ const jo = /* @__PURE__ */ M(Po, [["render", Do], ["__scopeId", "data-v-259fec08
|
|
|
1923
1965
|
), q(
|
|
1924
1966
|
() => n.gap,
|
|
1925
1967
|
() => he(l)
|
|
1926
|
-
), (
|
|
1968
|
+
), (s, a) => (v(), x("div", {
|
|
1927
1969
|
ref_key: "container",
|
|
1928
1970
|
ref: t,
|
|
1929
1971
|
class: "form-layout",
|
|
1930
1972
|
style: Z({ gridTemplateColumns: `repeat(${e.columns}, minmax(0, 1fr))`, gap: e.gap })
|
|
1931
1973
|
}, [
|
|
1932
|
-
|
|
1974
|
+
T(s.$slots, "default", {}, void 0, !0)
|
|
1933
1975
|
], 4));
|
|
1934
1976
|
}
|
|
1935
|
-
}),
|
|
1977
|
+
}), Vl = /* @__PURE__ */ M(_l, [["__scopeId", "data-v-96f62ab7"]]), kl = {
|
|
1936
1978
|
key: 0,
|
|
1937
1979
|
class: "form-section__title",
|
|
1938
1980
|
"data-newline": ""
|
|
1939
|
-
},
|
|
1981
|
+
}, Cl = /* @__PURE__ */ B({
|
|
1940
1982
|
__name: "form-section",
|
|
1941
1983
|
props: {
|
|
1942
1984
|
title: {}
|
|
1943
1985
|
},
|
|
1944
1986
|
setup(e) {
|
|
1945
|
-
return (n, t) => (v(), x(
|
|
1946
|
-
e.title ? (v(), x("h3",
|
|
1947
|
-
|
|
1987
|
+
return (n, t) => (v(), x(be, null, [
|
|
1988
|
+
e.title ? (v(), x("h3", kl, j(e.title), 1)) : L("", !0),
|
|
1989
|
+
T(n.$slots, "default", {}, void 0, !0)
|
|
1948
1990
|
], 64));
|
|
1949
1991
|
}
|
|
1950
|
-
}),
|
|
1992
|
+
}), Rl = /* @__PURE__ */ M(Cl, [["__scopeId", "data-v-69cff1d0"]]), El = ["id", "disabled"], Sl = { class: "select-value" }, $l = {
|
|
1951
1993
|
key: 1,
|
|
1952
1994
|
class: "select-placeholder"
|
|
1953
|
-
},
|
|
1995
|
+
}, Ll = { class: "select-options" }, Al = ["onClick", "onMouseenter"], Ol = /* @__PURE__ */ B({
|
|
1954
1996
|
inheritAttrs: !1,
|
|
1955
1997
|
__name: "select",
|
|
1956
1998
|
props: /* @__PURE__ */ ue({
|
|
@@ -1968,13 +2010,13 @@ const jo = /* @__PURE__ */ M(Po, [["render", Do], ["__scopeId", "data-v-259fec08
|
|
|
1968
2010
|
}),
|
|
1969
2011
|
emits: ["update:modelValue"],
|
|
1970
2012
|
setup(e, { expose: n }) {
|
|
1971
|
-
const t = e, o = ye(e, "modelValue"), l = R(!1),
|
|
2013
|
+
const t = e, o = ye(e, "modelValue"), l = R(!1), s = R(-1), a = R(null), r = R(null), i = R(null), { floatingStyles: u } = Kt(r, i, {
|
|
1972
2014
|
placement: "bottom-start",
|
|
1973
2015
|
middleware: [
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
2016
|
+
Ht(4),
|
|
2017
|
+
Ut(),
|
|
2018
|
+
Wt({ padding: 8 }),
|
|
2019
|
+
$o({
|
|
1978
2020
|
apply({ rects: h, elements: O }) {
|
|
1979
2021
|
Object.assign(O.floating.style, {
|
|
1980
2022
|
minWidth: `${h.reference.width}px`
|
|
@@ -1982,38 +2024,38 @@ const jo = /* @__PURE__ */ M(Po, [["render", Do], ["__scopeId", "data-v-259fec08
|
|
|
1982
2024
|
}
|
|
1983
2025
|
})
|
|
1984
2026
|
],
|
|
1985
|
-
whileElementsMounted:
|
|
1986
|
-
}),
|
|
2027
|
+
whileElementsMounted: Nt
|
|
2028
|
+
}), c = (h) => t.optionLabel ? typeof t.optionLabel == "function" ? t.optionLabel(h) : String(h[t.optionLabel]) : String(h), d = (h) => t.optionValue ? typeof t.optionValue == "function" ? t.optionValue(h) : h[t.optionValue] : h, m = C(() => t.options.find((h) => d(h) === o.value)), f = (h) => d(h) === o.value, p = () => {
|
|
1987
2029
|
t.disabled || (l.value = !l.value);
|
|
1988
2030
|
}, y = () => {
|
|
1989
|
-
l.value = !1,
|
|
2031
|
+
l.value = !1, s.value = -1;
|
|
1990
2032
|
}, V = (h) => {
|
|
1991
2033
|
o.value = d(h), y();
|
|
1992
2034
|
}, w = () => {
|
|
1993
2035
|
o.value = void 0;
|
|
1994
2036
|
}, _ = (h) => {
|
|
1995
|
-
l.value &&
|
|
2037
|
+
l.value && a.value && !a.value.contains(h.target) && y();
|
|
1996
2038
|
};
|
|
1997
|
-
return
|
|
2039
|
+
return Ae(() => {
|
|
1998
2040
|
document.addEventListener("click", _);
|
|
1999
|
-
}),
|
|
2041
|
+
}), Oe(() => {
|
|
2000
2042
|
document.removeEventListener("click", _);
|
|
2001
2043
|
}), q(l, (h) => {
|
|
2002
|
-
h &&
|
|
2044
|
+
h && m.value && (s.value = t.options.findIndex((O) => f(O)));
|
|
2003
2045
|
}), n({
|
|
2004
|
-
focus: () =>
|
|
2005
|
-
blur: () =>
|
|
2046
|
+
focus: () => r.value?.focus(),
|
|
2047
|
+
blur: () => r.value?.blur()
|
|
2006
2048
|
}), (h, O) => {
|
|
2007
|
-
const A =
|
|
2008
|
-
return v(), x(
|
|
2049
|
+
const A = U("VjIcon");
|
|
2050
|
+
return v(), x(be, null, [
|
|
2009
2051
|
k("div", {
|
|
2010
2052
|
ref_key: "selectRef",
|
|
2011
|
-
ref:
|
|
2012
|
-
class:
|
|
2053
|
+
ref: a,
|
|
2054
|
+
class: N(["select", h.$attrs.class])
|
|
2013
2055
|
}, [
|
|
2014
2056
|
k("button", {
|
|
2015
2057
|
ref_key: "buttonRef",
|
|
2016
|
-
ref:
|
|
2058
|
+
ref: r,
|
|
2017
2059
|
type: "button",
|
|
2018
2060
|
class: "select-trigger",
|
|
2019
2061
|
id: t.id,
|
|
@@ -2023,60 +2065,60 @@ const jo = /* @__PURE__ */ M(Po, [["render", Do], ["__scopeId", "data-v-259fec08
|
|
|
2023
2065
|
t.icon ? (v(), P(A, {
|
|
2024
2066
|
key: 0,
|
|
2025
2067
|
icon: t.icon,
|
|
2026
|
-
size: E(
|
|
2068
|
+
size: E(X).S,
|
|
2027
2069
|
class: "select-icon-left"
|
|
2028
2070
|
}, null, 8, ["icon", "size"])) : L("", !0),
|
|
2029
|
-
k("span",
|
|
2030
|
-
|
|
2071
|
+
k("span", Sl, [
|
|
2072
|
+
m.value ? T(h.$slots, "selected", {
|
|
2031
2073
|
key: 0,
|
|
2032
|
-
option:
|
|
2074
|
+
option: m.value
|
|
2033
2075
|
}, () => [
|
|
2034
|
-
|
|
2035
|
-
], !0) : (v(), x("span",
|
|
2076
|
+
ze(j(c(m.value)), 1)
|
|
2077
|
+
], !0) : (v(), x("span", $l, j(e.placeholder), 1))
|
|
2036
2078
|
]),
|
|
2037
|
-
t.clearable &&
|
|
2079
|
+
t.clearable && m.value && !e.disabled ? (v(), P(A, {
|
|
2038
2080
|
key: 1,
|
|
2039
|
-
icon: E(
|
|
2040
|
-
size: E(
|
|
2081
|
+
icon: E(H).CLOSE,
|
|
2082
|
+
size: E(X).S,
|
|
2041
2083
|
class: "select-clear-icon",
|
|
2042
2084
|
onClick: de(w, ["stop"])
|
|
2043
2085
|
}, null, 8, ["icon", "size"])) : L("", !0),
|
|
2044
2086
|
D(A, {
|
|
2045
|
-
icon: E(
|
|
2046
|
-
size: E(
|
|
2047
|
-
class:
|
|
2087
|
+
icon: E(H).CHEVRON_DOWN,
|
|
2088
|
+
size: E(X).S,
|
|
2089
|
+
class: N(["select-icon-right", { open: l.value }])
|
|
2048
2090
|
}, null, 8, ["icon", "size", "class"])
|
|
2049
|
-
], 8,
|
|
2091
|
+
], 8, El),
|
|
2050
2092
|
D(Ie, { name: "dropdown" }, {
|
|
2051
|
-
default:
|
|
2093
|
+
default: W(() => [
|
|
2052
2094
|
l.value ? (v(), x("div", {
|
|
2053
2095
|
key: 0,
|
|
2054
2096
|
ref_key: "floatingRef",
|
|
2055
|
-
ref:
|
|
2056
|
-
style: Z(E(
|
|
2097
|
+
ref: i,
|
|
2098
|
+
style: Z(E(u)),
|
|
2057
2099
|
class: "select-dropdown"
|
|
2058
2100
|
}, [
|
|
2059
|
-
k("div",
|
|
2060
|
-
(v(!0), x(
|
|
2101
|
+
k("div", Ll, [
|
|
2102
|
+
(v(!0), x(be, null, Xe(e.options, (F, b) => (v(), x("div", {
|
|
2061
2103
|
key: String(d(F)),
|
|
2062
|
-
class:
|
|
2063
|
-
onClick: (
|
|
2064
|
-
onMouseenter: (
|
|
2104
|
+
class: N(["select-option", { selected: f(F), highlighted: s.value === b }]),
|
|
2105
|
+
onClick: (g) => V(F),
|
|
2106
|
+
onMouseenter: (g) => s.value = b
|
|
2065
2107
|
}, [
|
|
2066
|
-
|
|
2108
|
+
T(h.$slots, "option", {
|
|
2067
2109
|
option: F,
|
|
2068
|
-
selected:
|
|
2110
|
+
selected: f(F)
|
|
2069
2111
|
}, () => [
|
|
2070
|
-
|
|
2112
|
+
ze(j(c(F)), 1)
|
|
2071
2113
|
], !0)
|
|
2072
|
-
], 42,
|
|
2114
|
+
], 42, Al))), 128))
|
|
2073
2115
|
])
|
|
2074
2116
|
], 4)) : L("", !0)
|
|
2075
2117
|
]),
|
|
2076
2118
|
_: 3
|
|
2077
2119
|
})
|
|
2078
2120
|
], 2),
|
|
2079
|
-
(v(), P(
|
|
2121
|
+
(v(), P(tt, { to: "body" }, [
|
|
2080
2122
|
l.value ? (v(), x("div", {
|
|
2081
2123
|
key: 0,
|
|
2082
2124
|
class: "select-backdrop",
|
|
@@ -2086,7 +2128,7 @@ const jo = /* @__PURE__ */ M(Po, [["render", Do], ["__scopeId", "data-v-259fec08
|
|
|
2086
2128
|
], 64);
|
|
2087
2129
|
};
|
|
2088
2130
|
}
|
|
2089
|
-
}),
|
|
2131
|
+
}), Gt = /* @__PURE__ */ M(Ol, [["__scopeId", "data-v-fc22f0e9"]]), Tl = /* @__PURE__ */ B({
|
|
2090
2132
|
__name: "input-select",
|
|
2091
2133
|
props: {
|
|
2092
2134
|
modelValue: {},
|
|
@@ -2098,16 +2140,17 @@ const jo = /* @__PURE__ */ M(Po, [["render", Do], ["__scopeId", "data-v-259fec08
|
|
|
2098
2140
|
newLine: { type: Boolean },
|
|
2099
2141
|
spanRow: { type: Boolean },
|
|
2100
2142
|
error: {},
|
|
2143
|
+
labelPosition: {},
|
|
2101
2144
|
options: {}
|
|
2102
2145
|
},
|
|
2103
2146
|
emits: ["update:modelValue", "input", "focus", "blur"],
|
|
2104
2147
|
setup(e, { emit: n }) {
|
|
2105
|
-
const t = e, o = n, l = R(t.modelValue),
|
|
2106
|
-
l.value =
|
|
2148
|
+
const t = e, o = n, l = R(t.modelValue), s = (a) => {
|
|
2149
|
+
l.value = a, o("update:modelValue", a);
|
|
2107
2150
|
};
|
|
2108
|
-
return (
|
|
2151
|
+
return (a, r) => (v(), P(Fe, {
|
|
2109
2152
|
modelValue: l.value,
|
|
2110
|
-
"onUpdate:modelValue":
|
|
2153
|
+
"onUpdate:modelValue": s,
|
|
2111
2154
|
label: t.label,
|
|
2112
2155
|
id: t.id,
|
|
2113
2156
|
placeholder: t.placeholder,
|
|
@@ -2115,28 +2158,234 @@ const jo = /* @__PURE__ */ M(Po, [["render", Do], ["__scopeId", "data-v-259fec08
|
|
|
2115
2158
|
colspan: t.colspan,
|
|
2116
2159
|
newLine: t.newLine,
|
|
2117
2160
|
spanRow: t.spanRow,
|
|
2118
|
-
error: t.error
|
|
2161
|
+
error: t.error,
|
|
2162
|
+
labelPosition: t.labelPosition
|
|
2119
2163
|
}, {
|
|
2120
|
-
control:
|
|
2121
|
-
D(
|
|
2122
|
-
id:
|
|
2164
|
+
control: W(({ id: i, disabled: u, placeholder: c }) => [
|
|
2165
|
+
D(Gt, {
|
|
2166
|
+
id: i,
|
|
2123
2167
|
modelValue: l.value,
|
|
2124
2168
|
"onUpdate:modelValue": [
|
|
2125
|
-
|
|
2126
|
-
|
|
2169
|
+
r[0] || (r[0] = (d) => l.value = d),
|
|
2170
|
+
s
|
|
2127
2171
|
],
|
|
2128
2172
|
options: t.options,
|
|
2129
|
-
placeholder:
|
|
2130
|
-
disabled:
|
|
2173
|
+
placeholder: c,
|
|
2174
|
+
disabled: u,
|
|
2131
2175
|
"option-label": (d) => d.label,
|
|
2132
2176
|
"option-value": (d) => d.value,
|
|
2133
2177
|
clearable: ""
|
|
2134
|
-
},
|
|
2178
|
+
}, Rt({ _: 2 }, [
|
|
2179
|
+
a.$slots.selected ? {
|
|
2180
|
+
name: "selected",
|
|
2181
|
+
fn: W(({ option: d }) => [
|
|
2182
|
+
T(a.$slots, "selected", { option: d })
|
|
2183
|
+
]),
|
|
2184
|
+
key: "0"
|
|
2185
|
+
} : void 0,
|
|
2186
|
+
a.$slots.option ? {
|
|
2187
|
+
name: "option",
|
|
2188
|
+
fn: W(({ option: d }) => [
|
|
2189
|
+
T(a.$slots, "option", { option: d })
|
|
2190
|
+
]),
|
|
2191
|
+
key: "1"
|
|
2192
|
+
} : void 0
|
|
2193
|
+
]), 1032, ["id", "modelValue", "options", "placeholder", "disabled", "option-label", "option-value"])
|
|
2194
|
+
]),
|
|
2195
|
+
_: 3
|
|
2196
|
+
}, 8, ["modelValue", "label", "id", "placeholder", "disabled", "colspan", "newLine", "spanRow", "error", "labelPosition"]));
|
|
2197
|
+
}
|
|
2198
|
+
}), Bl = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-label"], Ml = ["aria-valuemin", "aria-valuemax", "aria-valuenow"], Pl = /* @__PURE__ */ B({
|
|
2199
|
+
__name: "slider",
|
|
2200
|
+
props: {
|
|
2201
|
+
modelValue: { default: void 0 },
|
|
2202
|
+
min: { default: 0 },
|
|
2203
|
+
max: { default: 100 },
|
|
2204
|
+
step: { default: 1 },
|
|
2205
|
+
range: { type: Boolean, default: !1 }
|
|
2206
|
+
},
|
|
2207
|
+
emits: ["update:modelValue", "change"],
|
|
2208
|
+
setup(e, { emit: n }) {
|
|
2209
|
+
const t = e, o = n, l = R(null), s = R(!1), a = R(!1), r = (b, g, $) => Math.min(Math.max(b, g), $), i = R(
|
|
2210
|
+
t.range ? Array.isArray(t.modelValue) ? t.modelValue[0] : t.min : typeof t.modelValue == "number" ? t.modelValue : t.min
|
|
2211
|
+
), u = R(t.range && Array.isArray(t.modelValue) ? t.modelValue[1] : t.max);
|
|
2212
|
+
q(
|
|
2213
|
+
() => t.modelValue,
|
|
2214
|
+
(b) => {
|
|
2215
|
+
t.range ? Array.isArray(b) && (i.value = r(b[0], t.min, t.max), u.value = r(b[1], t.min, t.max)) : typeof b == "number" && (i.value = r(b, t.min, t.max));
|
|
2216
|
+
},
|
|
2217
|
+
{ immediate: !0 }
|
|
2218
|
+
);
|
|
2219
|
+
const c = (b) => (b - t.min) / (t.max - t.min) * 100, d = C(() => ({ left: `${c(i.value)}%` })), m = C(() => ({ left: `${c(u.value)}%` })), f = C(() => {
|
|
2220
|
+
if (!t.range) return { width: `${c(i.value)}%`, left: "0%" };
|
|
2221
|
+
const b = c(i.value), g = c(u.value);
|
|
2222
|
+
return { left: `${b}%`, width: `${Math.max(0, g - b)}%` };
|
|
2223
|
+
});
|
|
2224
|
+
let p = null, y = null;
|
|
2225
|
+
const V = async (b, g) => {
|
|
2226
|
+
p = b, y = g.pointerId, b === "low" ? s.value = !0 : a.value = !0;
|
|
2227
|
+
try {
|
|
2228
|
+
g.target.setPointerCapture(g.pointerId);
|
|
2229
|
+
} catch {
|
|
2230
|
+
}
|
|
2231
|
+
window.addEventListener("pointermove", _), window.addEventListener("pointerup", w);
|
|
2232
|
+
}, w = (b) => {
|
|
2233
|
+
if (y != null && b)
|
|
2234
|
+
try {
|
|
2235
|
+
b.target.releasePointerCapture(b.pointerId);
|
|
2236
|
+
} catch {
|
|
2237
|
+
}
|
|
2238
|
+
p = null, y = null, s.value = !1, a.value = !1, window.removeEventListener("pointermove", _), window.removeEventListener("pointerup", w), A();
|
|
2239
|
+
}, _ = (b) => {
|
|
2240
|
+
if (!p || !l.value) return;
|
|
2241
|
+
const g = l.value.getBoundingClientRect(), $ = r(b.clientX - g.left, 0, g.width), z = t.min + $ / g.width * (t.max - t.min), I = Math.round(z / t.step) * t.step;
|
|
2242
|
+
p === "low" ? t.range ? i.value = Math.min(I, u.value) : i.value = r(I, t.min, t.max) : p === "high" && (u.value = Math.max(I, i.value));
|
|
2243
|
+
}, h = (b) => {
|
|
2244
|
+
if (!l.value) return;
|
|
2245
|
+
const g = l.value.getBoundingClientRect(), $ = r(b.clientX - g.left, 0, g.width), z = t.min + $ / g.width * (t.max - t.min), I = Math.round(z / t.step) * t.step;
|
|
2246
|
+
if (t.range) {
|
|
2247
|
+
const se = Math.abs(I - i.value), ie = Math.abs(I - u.value);
|
|
2248
|
+
se <= ie ? i.value = Math.min(I, u.value) : u.value = Math.max(I, i.value);
|
|
2249
|
+
} else
|
|
2250
|
+
i.value = r(I, t.min, t.max);
|
|
2251
|
+
A();
|
|
2252
|
+
}, O = (b, g) => {
|
|
2253
|
+
const $ = t.step, z = g.key === "ArrowLeft" || g.key === "ArrowDown" ? -1 : g.key === "ArrowRight" || g.key === "ArrowUp" ? 1 : 0;
|
|
2254
|
+
if (z) {
|
|
2255
|
+
if (b === "low") {
|
|
2256
|
+
const I = r(i.value + z * $, t.min, t.range ? u.value : t.max);
|
|
2257
|
+
i.value = I, s.value = !0, setTimeout(() => s.value = !1, 800);
|
|
2258
|
+
} else {
|
|
2259
|
+
const I = r(u.value + z * $, t.range ? i.value : t.max, t.max);
|
|
2260
|
+
u.value = I, a.value = !0, setTimeout(() => a.value = !1, 800);
|
|
2261
|
+
}
|
|
2262
|
+
A();
|
|
2263
|
+
}
|
|
2264
|
+
}, A = () => {
|
|
2265
|
+
t.range ? (o("update:modelValue", [i.value, u.value]), o("change", [i.value, u.value])) : (o("update:modelValue", i.value), o("change", i.value));
|
|
2266
|
+
};
|
|
2267
|
+
Oe(() => {
|
|
2268
|
+
window.removeEventListener("pointermove", _), window.removeEventListener("pointerup", w);
|
|
2269
|
+
}), q([() => t.min, () => t.max], () => {
|
|
2270
|
+
i.value = r(i.value, t.min, t.max), u.value = r(u.value, t.min, t.max);
|
|
2271
|
+
});
|
|
2272
|
+
const F = C(() => t.range);
|
|
2273
|
+
return he(() => {
|
|
2274
|
+
t.modelValue === void 0 && (t.range ? o("update:modelValue", [i.value, u.value]) : o("update:modelValue", i.value));
|
|
2275
|
+
}), (b, g) => (v(), x("div", {
|
|
2276
|
+
class: "vj-slider",
|
|
2277
|
+
onPointerdown: g[8] || (g[8] = de(() => {
|
|
2278
|
+
}, ["stop"]))
|
|
2279
|
+
}, [
|
|
2280
|
+
k("div", {
|
|
2281
|
+
class: "track",
|
|
2282
|
+
ref_key: "track",
|
|
2283
|
+
ref: l,
|
|
2284
|
+
onClick: h
|
|
2285
|
+
}, [
|
|
2286
|
+
k("div", {
|
|
2287
|
+
class: "range",
|
|
2288
|
+
style: Z(f.value)
|
|
2289
|
+
}, null, 4),
|
|
2290
|
+
s.value ? (v(), x("div", {
|
|
2291
|
+
key: 0,
|
|
2292
|
+
class: "tooltip",
|
|
2293
|
+
style: Z({ left: d.value.left })
|
|
2294
|
+
}, j(i.value), 5)) : L("", !0),
|
|
2295
|
+
k("button", {
|
|
2296
|
+
class: "handle low",
|
|
2297
|
+
style: Z(d.value),
|
|
2298
|
+
"aria-valuemin": e.min,
|
|
2299
|
+
"aria-valuemax": e.max,
|
|
2300
|
+
"aria-valuenow": i.value,
|
|
2301
|
+
"aria-label": F.value ? "Lower value" : "Value",
|
|
2302
|
+
onPointerdown: g[0] || (g[0] = de(($) => V("low", $), ["prevent"])),
|
|
2303
|
+
onFocus: g[1] || (g[1] = ($) => s.value = !0),
|
|
2304
|
+
onBlur: g[2] || (g[2] = ($) => s.value = !1),
|
|
2305
|
+
onKeydown: g[3] || (g[3] = de(($) => O("low", $), ["stop", "prevent"])),
|
|
2306
|
+
role: "slider",
|
|
2307
|
+
tabindex: "0"
|
|
2308
|
+
}, null, 44, Bl),
|
|
2309
|
+
F.value && a.value ? (v(), x("div", {
|
|
2310
|
+
key: 1,
|
|
2311
|
+
class: "tooltip",
|
|
2312
|
+
style: Z({ left: m.value.left })
|
|
2313
|
+
}, j(u.value), 5)) : L("", !0),
|
|
2314
|
+
F.value ? (v(), x("button", {
|
|
2315
|
+
key: 2,
|
|
2316
|
+
class: "handle high",
|
|
2317
|
+
style: Z(m.value),
|
|
2318
|
+
"aria-valuemin": e.min,
|
|
2319
|
+
"aria-valuemax": e.max,
|
|
2320
|
+
"aria-valuenow": u.value,
|
|
2321
|
+
"aria-label": "Upper value",
|
|
2322
|
+
onPointerdown: g[4] || (g[4] = de(($) => V("high", $), ["prevent"])),
|
|
2323
|
+
onFocus: g[5] || (g[5] = ($) => a.value = !0),
|
|
2324
|
+
onBlur: g[6] || (g[6] = ($) => a.value = !1),
|
|
2325
|
+
onKeydown: g[7] || (g[7] = de(($) => O("high", $), ["stop", "prevent"])),
|
|
2326
|
+
role: "slider",
|
|
2327
|
+
tabindex: "0"
|
|
2328
|
+
}, null, 44, Ml)) : L("", !0)
|
|
2329
|
+
], 512)
|
|
2330
|
+
], 32));
|
|
2331
|
+
}
|
|
2332
|
+
}), Fl = /* @__PURE__ */ M(Pl, [["__scopeId", "data-v-d47c7475"]]), Dl = ["onFocusin", "onFocusout"], jl = /* @__PURE__ */ B({
|
|
2333
|
+
__name: "input-slider",
|
|
2334
|
+
props: {
|
|
2335
|
+
modelValue: {},
|
|
2336
|
+
label: {},
|
|
2337
|
+
id: {},
|
|
2338
|
+
placeholder: {},
|
|
2339
|
+
disabled: { type: Boolean },
|
|
2340
|
+
colspan: {},
|
|
2341
|
+
newLine: { type: Boolean },
|
|
2342
|
+
spanRow: { type: Boolean },
|
|
2343
|
+
error: {},
|
|
2344
|
+
labelPosition: {},
|
|
2345
|
+
min: {},
|
|
2346
|
+
max: {},
|
|
2347
|
+
step: {}
|
|
2348
|
+
},
|
|
2349
|
+
emits: ["update:modelValue", "input", "focus", "blur"],
|
|
2350
|
+
setup(e, { emit: n }) {
|
|
2351
|
+
const t = e, o = n, l = t.modelValue === void 0 ? 0 : Number(t.modelValue), s = R(Number.isNaN(l) ? 0 : l), a = (r) => {
|
|
2352
|
+
const i = typeof r == "number" ? r : Number(r ?? 0);
|
|
2353
|
+
s.value = Number.isNaN(i) ? 0 : i, o("update:modelValue", s.value), o("input", s.value);
|
|
2354
|
+
};
|
|
2355
|
+
return (r, i) => (v(), P(Fe, {
|
|
2356
|
+
modelValue: s.value,
|
|
2357
|
+
"onUpdate:modelValue": a,
|
|
2358
|
+
label: t.label,
|
|
2359
|
+
id: t.id,
|
|
2360
|
+
placeholder: " ",
|
|
2361
|
+
disabled: t.disabled,
|
|
2362
|
+
colspan: t.colspan,
|
|
2363
|
+
newLine: t.newLine,
|
|
2364
|
+
spanRow: t.spanRow,
|
|
2365
|
+
error: t.error
|
|
2366
|
+
}, {
|
|
2367
|
+
control: W(({ id: u, disabled: c, placeholder: d, onFocus: m, onBlur: f }) => [
|
|
2368
|
+
k("div", {
|
|
2369
|
+
class: "input-slider__control",
|
|
2370
|
+
onFocusin: m,
|
|
2371
|
+
onFocusout: f
|
|
2372
|
+
}, [
|
|
2373
|
+
D(Fl, {
|
|
2374
|
+
id: u,
|
|
2375
|
+
modelValue: s.value,
|
|
2376
|
+
"onUpdate:modelValue": i[0] || (i[0] = (p) => s.value = p),
|
|
2377
|
+
min: t.min,
|
|
2378
|
+
max: t.max,
|
|
2379
|
+
step: t.step,
|
|
2380
|
+
range: !1,
|
|
2381
|
+
disabled: c
|
|
2382
|
+
}, null, 8, ["id", "modelValue", "min", "max", "step", "disabled"])
|
|
2383
|
+
], 40, Dl)
|
|
2135
2384
|
]),
|
|
2136
2385
|
_: 1
|
|
2137
|
-
}, 8, ["modelValue", "label", "id", "
|
|
2386
|
+
}, 8, ["modelValue", "label", "id", "disabled", "colspan", "newLine", "spanRow", "error"]));
|
|
2138
2387
|
}
|
|
2139
|
-
}),
|
|
2388
|
+
}), zl = /* @__PURE__ */ M(jl, [["__scopeId", "data-v-051e6d17"]]), Il = { class: "textarea" }, Nl = ["value", "placeholder", "disabled", "rows"], Hl = /* @__PURE__ */ B({
|
|
2140
2389
|
__name: "textarea",
|
|
2141
2390
|
props: /* @__PURE__ */ ue({
|
|
2142
2391
|
icon: {},
|
|
@@ -2150,44 +2399,44 @@ const jo = /* @__PURE__ */ M(Po, [["render", Do], ["__scopeId", "data-v-259fec08
|
|
|
2150
2399
|
}),
|
|
2151
2400
|
emits: /* @__PURE__ */ ue(["focus", "blur"], ["update:modelValue"]),
|
|
2152
2401
|
setup(e, { emit: n }) {
|
|
2153
|
-
const t = n, o = ye(e, "modelValue"), l = (
|
|
2154
|
-
o.value =
|
|
2155
|
-
},
|
|
2402
|
+
const t = n, o = ye(e, "modelValue"), l = (u) => {
|
|
2403
|
+
o.value = u.target.value;
|
|
2404
|
+
}, s = () => {
|
|
2156
2405
|
o.value = "";
|
|
2157
|
-
},
|
|
2158
|
-
t("focus",
|
|
2159
|
-
},
|
|
2160
|
-
t("blur",
|
|
2161
|
-
},
|
|
2162
|
-
return (
|
|
2163
|
-
const d =
|
|
2164
|
-
return v(), x("div",
|
|
2406
|
+
}, a = (u) => {
|
|
2407
|
+
t("focus", u);
|
|
2408
|
+
}, r = (u) => {
|
|
2409
|
+
t("blur", u);
|
|
2410
|
+
}, i = C(() => !o.value);
|
|
2411
|
+
return (u, c) => {
|
|
2412
|
+
const d = U("VjIcon");
|
|
2413
|
+
return v(), x("div", Il, [
|
|
2165
2414
|
e.icon ? (v(), P(d, {
|
|
2166
2415
|
key: 0,
|
|
2167
2416
|
icon: e.icon,
|
|
2168
|
-
size: E(
|
|
2417
|
+
size: E(X).S,
|
|
2169
2418
|
class: "textarea-icon"
|
|
2170
2419
|
}, null, 8, ["icon", "size"])) : L("", !0),
|
|
2171
2420
|
k("textarea", {
|
|
2172
2421
|
value: o.value,
|
|
2173
2422
|
onInput: l,
|
|
2174
|
-
onFocus:
|
|
2175
|
-
onBlur:
|
|
2423
|
+
onFocus: a,
|
|
2424
|
+
onBlur: r,
|
|
2176
2425
|
placeholder: e.placeholder,
|
|
2177
2426
|
disabled: e.disabled,
|
|
2178
2427
|
rows: e.rows
|
|
2179
|
-
}, null, 40,
|
|
2428
|
+
}, null, 40, Nl),
|
|
2180
2429
|
e.clearable && !e.disabled ? (v(), P(d, {
|
|
2181
2430
|
key: 1,
|
|
2182
|
-
class:
|
|
2183
|
-
icon: E(
|
|
2184
|
-
size: E(
|
|
2185
|
-
onClick:
|
|
2431
|
+
class: N(["clear-icon", { invisible: i.value }]),
|
|
2432
|
+
icon: E(H).CLOSE,
|
|
2433
|
+
size: E(X).S,
|
|
2434
|
+
onClick: s
|
|
2186
2435
|
}, null, 8, ["class", "icon", "size"])) : L("", !0)
|
|
2187
2436
|
]);
|
|
2188
2437
|
};
|
|
2189
2438
|
}
|
|
2190
|
-
}),
|
|
2439
|
+
}), Yt = /* @__PURE__ */ M(Hl, [["__scopeId", "data-v-2ea43716"]]), Wl = /* @__PURE__ */ B({
|
|
2191
2440
|
__name: "input-text-area",
|
|
2192
2441
|
props: {
|
|
2193
2442
|
modelValue: {},
|
|
@@ -2199,22 +2448,23 @@ const jo = /* @__PURE__ */ M(Po, [["render", Do], ["__scopeId", "data-v-259fec08
|
|
|
2199
2448
|
newLine: { type: Boolean },
|
|
2200
2449
|
spanRow: { type: Boolean },
|
|
2201
2450
|
error: {},
|
|
2451
|
+
labelPosition: {},
|
|
2202
2452
|
rows: {}
|
|
2203
2453
|
},
|
|
2204
2454
|
emits: ["update:modelValue", "input", "focus", "blur"],
|
|
2205
2455
|
setup(e, { emit: n }) {
|
|
2206
|
-
const t = e, o = n, l = (
|
|
2207
|
-
l(
|
|
2208
|
-
},
|
|
2209
|
-
const
|
|
2210
|
-
return
|
|
2456
|
+
const t = e, o = n, l = (c) => o("update:modelValue", c), s = (c) => o("input", c), a = (c) => o("focus", c), r = (c) => o("blur", c), i = (c) => {
|
|
2457
|
+
l(c ?? "");
|
|
2458
|
+
}, u = C(() => {
|
|
2459
|
+
const c = t.modelValue;
|
|
2460
|
+
return c == null ? "" : String(c);
|
|
2211
2461
|
});
|
|
2212
|
-
return (
|
|
2462
|
+
return (c, d) => (v(), P(Fe, {
|
|
2213
2463
|
modelValue: t.modelValue,
|
|
2214
2464
|
"onUpdate:modelValue": l,
|
|
2215
|
-
onInput:
|
|
2216
|
-
onFocus:
|
|
2217
|
-
onBlur:
|
|
2465
|
+
onInput: s,
|
|
2466
|
+
onFocus: a,
|
|
2467
|
+
onBlur: r,
|
|
2218
2468
|
label: t.label,
|
|
2219
2469
|
id: t.id,
|
|
2220
2470
|
placeholder: t.placeholder,
|
|
@@ -2222,29 +2472,30 @@ const jo = /* @__PURE__ */ M(Po, [["render", Do], ["__scopeId", "data-v-259fec08
|
|
|
2222
2472
|
colspan: t.colspan,
|
|
2223
2473
|
newLine: t.newLine,
|
|
2224
2474
|
spanRow: t.spanRow,
|
|
2475
|
+
labelPosition: t.labelPosition,
|
|
2225
2476
|
error: t.error
|
|
2226
2477
|
}, {
|
|
2227
|
-
control:
|
|
2228
|
-
D(
|
|
2229
|
-
id:
|
|
2230
|
-
modelValue:
|
|
2231
|
-
"onUpdate:modelValue":
|
|
2478
|
+
control: W(({ id: m, disabled: f, placeholder: p, onFocus: y, onBlur: V }) => [
|
|
2479
|
+
D(Yt, {
|
|
2480
|
+
id: m,
|
|
2481
|
+
modelValue: u.value,
|
|
2482
|
+
"onUpdate:modelValue": i,
|
|
2232
2483
|
onFocus: (w) => {
|
|
2233
|
-
y(w),
|
|
2484
|
+
y(w), a(w);
|
|
2234
2485
|
},
|
|
2235
2486
|
onBlur: (w) => {
|
|
2236
|
-
V(w),
|
|
2487
|
+
V(w), r(w);
|
|
2237
2488
|
},
|
|
2238
2489
|
placeholder: p,
|
|
2239
|
-
disabled:
|
|
2490
|
+
disabled: f,
|
|
2240
2491
|
rows: t.rows,
|
|
2241
2492
|
clearable: ""
|
|
2242
2493
|
}, null, 8, ["id", "modelValue", "onFocus", "onBlur", "placeholder", "disabled", "rows"])
|
|
2243
2494
|
]),
|
|
2244
2495
|
_: 1
|
|
2245
|
-
}, 8, ["modelValue", "label", "id", "placeholder", "disabled", "colspan", "newLine", "spanRow", "error"]));
|
|
2496
|
+
}, 8, ["modelValue", "label", "id", "placeholder", "disabled", "colspan", "newLine", "spanRow", "labelPosition", "error"]));
|
|
2246
2497
|
}
|
|
2247
|
-
}),
|
|
2498
|
+
}), Ul = { class: "input" }, Xl = ["value", "type", "placeholder", "disabled"], Kl = /* @__PURE__ */ B({
|
|
2248
2499
|
__name: "input",
|
|
2249
2500
|
props: /* @__PURE__ */ ue({
|
|
2250
2501
|
icon: {},
|
|
@@ -2258,43 +2509,43 @@ const jo = /* @__PURE__ */ M(Po, [["render", Do], ["__scopeId", "data-v-259fec08
|
|
|
2258
2509
|
}),
|
|
2259
2510
|
emits: /* @__PURE__ */ ue(["focus", "blur"], ["update:modelValue"]),
|
|
2260
2511
|
setup(e, { emit: n }) {
|
|
2261
|
-
const t = n, o = ye(e, "modelValue"), l = (
|
|
2262
|
-
o.value =
|
|
2263
|
-
},
|
|
2512
|
+
const t = n, o = ye(e, "modelValue"), l = (u) => {
|
|
2513
|
+
o.value = u.target.value;
|
|
2514
|
+
}, s = () => {
|
|
2264
2515
|
o.value = "";
|
|
2265
|
-
},
|
|
2266
|
-
t("focus",
|
|
2267
|
-
},
|
|
2268
|
-
t("blur",
|
|
2269
|
-
},
|
|
2270
|
-
return (
|
|
2271
|
-
const d =
|
|
2272
|
-
return v(), x("div",
|
|
2516
|
+
}, a = (u) => {
|
|
2517
|
+
t("focus", u);
|
|
2518
|
+
}, r = (u) => {
|
|
2519
|
+
t("blur", u);
|
|
2520
|
+
}, i = C(() => !o.value);
|
|
2521
|
+
return (u, c) => {
|
|
2522
|
+
const d = U("VjIcon");
|
|
2523
|
+
return v(), x("div", Ul, [
|
|
2273
2524
|
e.icon ? (v(), P(d, {
|
|
2274
2525
|
key: 0,
|
|
2275
2526
|
icon: e.icon,
|
|
2276
|
-
size: E(
|
|
2527
|
+
size: E(X).S
|
|
2277
2528
|
}, null, 8, ["icon", "size"])) : L("", !0),
|
|
2278
2529
|
k("input", {
|
|
2279
2530
|
value: o.value,
|
|
2280
2531
|
onInput: l,
|
|
2281
|
-
onFocus:
|
|
2282
|
-
onBlur:
|
|
2532
|
+
onFocus: a,
|
|
2533
|
+
onBlur: r,
|
|
2283
2534
|
type: e.type,
|
|
2284
2535
|
placeholder: e.placeholder,
|
|
2285
2536
|
disabled: e.disabled
|
|
2286
|
-
}, null, 40,
|
|
2537
|
+
}, null, 40, Xl),
|
|
2287
2538
|
e.clearable && !e.disabled ? (v(), P(d, {
|
|
2288
2539
|
key: 1,
|
|
2289
|
-
class:
|
|
2290
|
-
icon: E(
|
|
2291
|
-
size: E(
|
|
2292
|
-
onClick:
|
|
2540
|
+
class: N(["clear-icon", { invisible: i.value }]),
|
|
2541
|
+
icon: E(H).CLOSE,
|
|
2542
|
+
size: E(X).S,
|
|
2543
|
+
onClick: s
|
|
2293
2544
|
}, null, 8, ["class", "icon", "size"])) : L("", !0)
|
|
2294
2545
|
]);
|
|
2295
2546
|
};
|
|
2296
2547
|
}
|
|
2297
|
-
}),
|
|
2548
|
+
}), Jt = /* @__PURE__ */ M(Kl, [["__scopeId", "data-v-3187d49c"]]), ql = /* @__PURE__ */ B({
|
|
2298
2549
|
__name: "input-text",
|
|
2299
2550
|
props: {
|
|
2300
2551
|
modelValue: {},
|
|
@@ -2305,19 +2556,21 @@ const jo = /* @__PURE__ */ M(Po, [["render", Do], ["__scopeId", "data-v-259fec08
|
|
|
2305
2556
|
colspan: {},
|
|
2306
2557
|
newLine: { type: Boolean },
|
|
2307
2558
|
spanRow: { type: Boolean },
|
|
2308
|
-
error: {}
|
|
2559
|
+
error: {},
|
|
2560
|
+
labelPosition: {},
|
|
2561
|
+
type: {}
|
|
2309
2562
|
},
|
|
2310
2563
|
emits: ["update:modelValue", "input", "focus", "blur"],
|
|
2311
2564
|
setup(e, { emit: n }) {
|
|
2312
|
-
const t = n, o = (
|
|
2313
|
-
o(
|
|
2565
|
+
const t = n, o = (i) => t("update:modelValue", i), l = (i) => t("input", i), s = (i) => t("focus", i), a = (i) => t("blur", i), r = (i) => {
|
|
2566
|
+
o(i ?? "");
|
|
2314
2567
|
};
|
|
2315
|
-
return (
|
|
2568
|
+
return (i, u) => (v(), P(Fe, {
|
|
2316
2569
|
modelValue: e.modelValue,
|
|
2317
2570
|
"onUpdate:modelValue": o,
|
|
2318
2571
|
onInput: l,
|
|
2319
|
-
onFocus:
|
|
2320
|
-
onBlur:
|
|
2572
|
+
onFocus: s,
|
|
2573
|
+
onBlur: a,
|
|
2321
2574
|
label: e.label,
|
|
2322
2575
|
id: e.id,
|
|
2323
2576
|
placeholder: e.placeholder,
|
|
@@ -2325,28 +2578,30 @@ const jo = /* @__PURE__ */ M(Po, [["render", Do], ["__scopeId", "data-v-259fec08
|
|
|
2325
2578
|
colspan: e.colspan,
|
|
2326
2579
|
newLine: e.newLine,
|
|
2327
2580
|
spanRow: e.spanRow,
|
|
2328
|
-
error: e.error
|
|
2581
|
+
error: e.error,
|
|
2582
|
+
labelPosition: e.labelPosition
|
|
2329
2583
|
}, {
|
|
2330
|
-
control:
|
|
2331
|
-
D(
|
|
2332
|
-
id:
|
|
2584
|
+
control: W(({ id: c, disabled: d, placeholder: m, onFocus: f, onBlur: p }) => [
|
|
2585
|
+
D(Jt, {
|
|
2586
|
+
id: c,
|
|
2333
2587
|
modelValue: e.modelValue,
|
|
2334
|
-
|
|
2588
|
+
type: e.type,
|
|
2589
|
+
"onUpdate:modelValue": r,
|
|
2335
2590
|
onFocus: (y) => {
|
|
2336
|
-
|
|
2591
|
+
f(y), s(y);
|
|
2337
2592
|
},
|
|
2338
2593
|
onBlur: (y) => {
|
|
2339
|
-
p(y),
|
|
2594
|
+
p(y), a(y);
|
|
2340
2595
|
},
|
|
2341
|
-
placeholder:
|
|
2596
|
+
placeholder: m,
|
|
2342
2597
|
disabled: d,
|
|
2343
2598
|
clearable: ""
|
|
2344
|
-
}, null, 8, ["id", "modelValue", "onFocus", "onBlur", "placeholder", "disabled"])
|
|
2599
|
+
}, null, 8, ["id", "modelValue", "type", "onFocus", "onBlur", "placeholder", "disabled"])
|
|
2345
2600
|
]),
|
|
2346
2601
|
_: 1
|
|
2347
|
-
}, 8, ["modelValue", "label", "id", "placeholder", "disabled", "colspan", "newLine", "spanRow", "error"]));
|
|
2602
|
+
}, 8, ["modelValue", "label", "id", "placeholder", "disabled", "colspan", "newLine", "spanRow", "error", "labelPosition"]));
|
|
2348
2603
|
}
|
|
2349
|
-
}),
|
|
2604
|
+
}), Gl = { class: "shell-navigation-item" }, Yl = { class: "shell-navigation-item-label" }, Jl = /* @__PURE__ */ B({
|
|
2350
2605
|
__name: "shell-navigation-item",
|
|
2351
2606
|
props: {
|
|
2352
2607
|
label: {},
|
|
@@ -2355,56 +2610,56 @@ const jo = /* @__PURE__ */ M(Po, [["render", Do], ["__scopeId", "data-v-259fec08
|
|
|
2355
2610
|
},
|
|
2356
2611
|
setup(e) {
|
|
2357
2612
|
return (n, t) => {
|
|
2358
|
-
const o =
|
|
2359
|
-
return v(), x("li",
|
|
2613
|
+
const o = U("VjIcon"), l = U("RouterLink");
|
|
2614
|
+
return v(), x("li", Gl, [
|
|
2360
2615
|
D(l, {
|
|
2361
2616
|
to: e.to,
|
|
2362
2617
|
class: "shell-navigation-item-link"
|
|
2363
2618
|
}, {
|
|
2364
|
-
default:
|
|
2619
|
+
default: W(() => [
|
|
2365
2620
|
D(o, {
|
|
2366
2621
|
icon: e.icon,
|
|
2367
2622
|
class: "shell-navigation-item-icon"
|
|
2368
2623
|
}, null, 8, ["icon"]),
|
|
2369
|
-
k("label",
|
|
2624
|
+
k("label", Yl, j(e.label), 1)
|
|
2370
2625
|
]),
|
|
2371
2626
|
_: 1
|
|
2372
2627
|
}, 8, ["to"])
|
|
2373
2628
|
]);
|
|
2374
2629
|
};
|
|
2375
2630
|
}
|
|
2376
|
-
}),
|
|
2631
|
+
}), Ql = /* @__PURE__ */ M(Jl, [["__scopeId", "data-v-d5c087be"]]), Zl = { class: "navigation-top" }, ea = { class: "navigation-bottom" }, ta = /* @__PURE__ */ B({
|
|
2377
2632
|
__name: "shell-navigation",
|
|
2378
2633
|
setup(e) {
|
|
2379
|
-
const n =
|
|
2634
|
+
const n = St(fa, va());
|
|
2380
2635
|
console.log("navigationProvider", n);
|
|
2381
2636
|
const t = C(() => n.showLabels);
|
|
2382
2637
|
return (o, l) => {
|
|
2383
|
-
const
|
|
2638
|
+
const s = U("VjShellNavigationItem");
|
|
2384
2639
|
return v(), x("nav", {
|
|
2385
|
-
class:
|
|
2640
|
+
class: N(["shell-navigation", { "with-labels": t.value }])
|
|
2386
2641
|
}, [
|
|
2387
|
-
k("ul",
|
|
2388
|
-
E(n).hasParent && E(n).backRoute.value ? (v(), P(
|
|
2642
|
+
k("ul", Zl, [
|
|
2643
|
+
E(n).hasParent && E(n).backRoute.value ? (v(), P(s, {
|
|
2389
2644
|
key: 0,
|
|
2390
2645
|
to: E(n).backRoute.value,
|
|
2391
2646
|
label: "BACK",
|
|
2392
|
-
icon: E(
|
|
2647
|
+
icon: E(H).HOME
|
|
2393
2648
|
}, null, 8, ["to", "icon"])) : L("", !0),
|
|
2394
|
-
(v(!0), x(
|
|
2395
|
-
key:
|
|
2396
|
-
to: { name:
|
|
2397
|
-
label:
|
|
2398
|
-
icon:
|
|
2649
|
+
(v(!0), x(be, null, Xe(E(n).childRoutes.value, (a) => (v(), P(s, {
|
|
2650
|
+
key: a.name,
|
|
2651
|
+
to: { name: a.name },
|
|
2652
|
+
label: a.meta.label,
|
|
2653
|
+
icon: a.meta.icon ?? E(H).HOME
|
|
2399
2654
|
}, null, 8, ["to", "label", "icon"]))), 128))
|
|
2400
2655
|
]),
|
|
2401
|
-
k("ul",
|
|
2402
|
-
|
|
2656
|
+
k("ul", ea, [
|
|
2657
|
+
T(o.$slots, "fixed", {}, void 0, !0)
|
|
2403
2658
|
])
|
|
2404
2659
|
], 2);
|
|
2405
2660
|
};
|
|
2406
2661
|
}
|
|
2407
|
-
}),
|
|
2662
|
+
}), Qt = /* @__PURE__ */ M(ta, [["__scopeId", "data-v-0f990f5b"]]), na = { class: "shell" }, oa = { class: "shell-title" }, la = ["src"], aa = { class: "header-actions" }, sa = /* @__PURE__ */ B({
|
|
2408
2663
|
__name: "shell",
|
|
2409
2664
|
props: {
|
|
2410
2665
|
title: {},
|
|
@@ -2412,235 +2667,53 @@ const jo = /* @__PURE__ */ M(Po, [["render", Do], ["__scopeId", "data-v-259fec08
|
|
|
2412
2667
|
showNavigation: { type: Boolean }
|
|
2413
2668
|
},
|
|
2414
2669
|
setup(e) {
|
|
2415
|
-
const n =
|
|
2416
|
-
const
|
|
2417
|
-
return
|
|
2670
|
+
const n = ya(), t = Je(n, "asideComponent"), o = Je(n, "hasAside"), l = Je(n, "asideData"), s = C(() => {
|
|
2671
|
+
const a = l.value;
|
|
2672
|
+
return a && typeof a == "object" ? a : {};
|
|
2418
2673
|
});
|
|
2419
|
-
return (
|
|
2420
|
-
const
|
|
2421
|
-
return v(), x("div",
|
|
2674
|
+
return (a, r) => {
|
|
2675
|
+
const i = U("router-view");
|
|
2676
|
+
return v(), x("div", na, [
|
|
2422
2677
|
k("header", null, [
|
|
2423
|
-
k("span",
|
|
2678
|
+
k("span", oa, [
|
|
2424
2679
|
e.icon ? (v(), x("img", {
|
|
2425
2680
|
key: 0,
|
|
2426
2681
|
src: e.icon,
|
|
2427
2682
|
alt: "Shell Icon"
|
|
2428
|
-
}, null, 8,
|
|
2429
|
-
k("h1", null,
|
|
2683
|
+
}, null, 8, la)) : L("", !0),
|
|
2684
|
+
k("h1", null, j(e.title), 1)
|
|
2430
2685
|
]),
|
|
2431
|
-
k("div",
|
|
2432
|
-
|
|
2686
|
+
k("div", aa, [
|
|
2687
|
+
T(a.$slots, "header-actions", {}, void 0, !0)
|
|
2433
2688
|
])
|
|
2434
2689
|
]),
|
|
2435
2690
|
k("div", {
|
|
2436
|
-
class:
|
|
2691
|
+
class: N(["shell-content", { "with-navigation": e.showNavigation }])
|
|
2437
2692
|
}, [
|
|
2438
|
-
e.showNavigation ? (v(), P(E(
|
|
2693
|
+
e.showNavigation ? (v(), P(E(Qt), { key: 0 })) : L("", !0),
|
|
2439
2694
|
k("main", null, [
|
|
2440
|
-
|
|
2441
|
-
D(
|
|
2695
|
+
T(a.$slots, "default", {}, () => [
|
|
2696
|
+
D(i)
|
|
2442
2697
|
], !0)
|
|
2443
2698
|
]),
|
|
2444
2699
|
k("aside", {
|
|
2445
|
-
class:
|
|
2700
|
+
class: N({ "aside-visible": o.value })
|
|
2446
2701
|
}, [
|
|
2447
|
-
(v(), P(
|
|
2702
|
+
(v(), P(Et(t.value), cn(un(s.value)), null, 16))
|
|
2448
2703
|
], 2)
|
|
2449
2704
|
], 2),
|
|
2450
|
-
|
|
2705
|
+
r[0] || (r[0] = k("footer", null, null, -1))
|
|
2451
2706
|
]);
|
|
2452
2707
|
};
|
|
2453
2708
|
}
|
|
2454
|
-
}),
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
modelValue: { default: void 0 },
|
|
2458
|
-
min: { default: 0 },
|
|
2459
|
-
max: { default: 100 },
|
|
2460
|
-
step: { default: 1 },
|
|
2461
|
-
range: { type: Boolean, default: !1 }
|
|
2462
|
-
},
|
|
2463
|
-
emits: ["update:modelValue", "change"],
|
|
2464
|
-
setup(e, { emit: n }) {
|
|
2465
|
-
const t = e, o = n, l = R(null), a = R(!1), s = R(!1), u = (g, b, $) => Math.min(Math.max(g, b), $), c = R(
|
|
2466
|
-
t.range ? Array.isArray(t.modelValue) ? t.modelValue[0] : t.min : typeof t.modelValue == "number" ? t.modelValue : t.min
|
|
2467
|
-
), r = R(t.range && Array.isArray(t.modelValue) ? t.modelValue[1] : t.max);
|
|
2468
|
-
q(
|
|
2469
|
-
() => t.modelValue,
|
|
2470
|
-
(g) => {
|
|
2471
|
-
t.range ? Array.isArray(g) && (c.value = u(g[0], t.min, t.max), r.value = u(g[1], t.min, t.max)) : typeof g == "number" && (c.value = u(g, t.min, t.max));
|
|
2472
|
-
},
|
|
2473
|
-
{ immediate: !0 }
|
|
2474
|
-
);
|
|
2475
|
-
const i = (g) => (g - t.min) / (t.max - t.min) * 100, d = C(() => ({ left: `${i(c.value)}%` })), f = C(() => ({ left: `${i(r.value)}%` })), m = C(() => {
|
|
2476
|
-
if (!t.range) return { width: `${i(c.value)}%`, left: "0%" };
|
|
2477
|
-
const g = i(c.value), b = i(r.value);
|
|
2478
|
-
return { left: `${g}%`, width: `${Math.max(0, b - g)}%` };
|
|
2479
|
-
});
|
|
2480
|
-
let p = null, y = null;
|
|
2481
|
-
const V = async (g, b) => {
|
|
2482
|
-
p = g, y = b.pointerId, g === "low" ? a.value = !0 : s.value = !0;
|
|
2483
|
-
try {
|
|
2484
|
-
b.target.setPointerCapture(b.pointerId);
|
|
2485
|
-
} catch {
|
|
2486
|
-
}
|
|
2487
|
-
window.addEventListener("pointermove", _), window.addEventListener("pointerup", w);
|
|
2488
|
-
}, w = (g) => {
|
|
2489
|
-
if (y != null && g)
|
|
2490
|
-
try {
|
|
2491
|
-
g.target.releasePointerCapture(g.pointerId);
|
|
2492
|
-
} catch {
|
|
2493
|
-
}
|
|
2494
|
-
p = null, y = null, a.value = !1, s.value = !1, window.removeEventListener("pointermove", _), window.removeEventListener("pointerup", w), A();
|
|
2495
|
-
}, _ = (g) => {
|
|
2496
|
-
if (!p || !l.value) return;
|
|
2497
|
-
const b = l.value.getBoundingClientRect(), $ = u(g.clientX - b.left, 0, b.width), j = t.min + $ / b.width * (t.max - t.min), z = Math.round(j / t.step) * t.step;
|
|
2498
|
-
p === "low" ? t.range ? c.value = Math.min(z, r.value) : c.value = u(z, t.min, t.max) : p === "high" && (r.value = Math.max(z, c.value));
|
|
2499
|
-
}, h = (g) => {
|
|
2500
|
-
if (!l.value) return;
|
|
2501
|
-
const b = l.value.getBoundingClientRect(), $ = u(g.clientX - b.left, 0, b.width), j = t.min + $ / b.width * (t.max - t.min), z = Math.round(j / t.step) * t.step;
|
|
2502
|
-
if (t.range) {
|
|
2503
|
-
const se = Math.abs(z - c.value), ie = Math.abs(z - r.value);
|
|
2504
|
-
se <= ie ? c.value = Math.min(z, r.value) : r.value = Math.max(z, c.value);
|
|
2505
|
-
} else
|
|
2506
|
-
c.value = u(z, t.min, t.max);
|
|
2507
|
-
A();
|
|
2508
|
-
}, O = (g, b) => {
|
|
2509
|
-
const $ = t.step, j = b.key === "ArrowLeft" || b.key === "ArrowDown" ? -1 : b.key === "ArrowRight" || b.key === "ArrowUp" ? 1 : 0;
|
|
2510
|
-
if (j) {
|
|
2511
|
-
if (g === "low") {
|
|
2512
|
-
const z = u(c.value + j * $, t.min, t.range ? r.value : t.max);
|
|
2513
|
-
c.value = z, a.value = !0, setTimeout(() => a.value = !1, 800);
|
|
2514
|
-
} else {
|
|
2515
|
-
const z = u(r.value + j * $, t.range ? c.value : t.max, t.max);
|
|
2516
|
-
r.value = z, s.value = !0, setTimeout(() => s.value = !1, 800);
|
|
2517
|
-
}
|
|
2518
|
-
A();
|
|
2519
|
-
}
|
|
2520
|
-
}, A = () => {
|
|
2521
|
-
t.range ? (o("update:modelValue", [c.value, r.value]), o("change", [c.value, r.value])) : (o("update:modelValue", c.value), o("change", c.value));
|
|
2522
|
-
};
|
|
2523
|
-
Ae(() => {
|
|
2524
|
-
window.removeEventListener("pointermove", _), window.removeEventListener("pointerup", w);
|
|
2525
|
-
}), q([() => t.min, () => t.max], () => {
|
|
2526
|
-
c.value = u(c.value, t.min, t.max), r.value = u(r.value, t.min, t.max);
|
|
2527
|
-
});
|
|
2528
|
-
const F = C(() => t.range);
|
|
2529
|
-
return he(() => {
|
|
2530
|
-
t.modelValue === void 0 && (t.range ? o("update:modelValue", [c.value, r.value]) : o("update:modelValue", c.value));
|
|
2531
|
-
}), (g, b) => (v(), x("div", {
|
|
2532
|
-
class: "vj-slider",
|
|
2533
|
-
onPointerdown: b[8] || (b[8] = de(() => {
|
|
2534
|
-
}, ["stop"]))
|
|
2535
|
-
}, [
|
|
2536
|
-
k("div", {
|
|
2537
|
-
class: "track",
|
|
2538
|
-
ref_key: "track",
|
|
2539
|
-
ref: l,
|
|
2540
|
-
onClick: h
|
|
2541
|
-
}, [
|
|
2542
|
-
k("div", {
|
|
2543
|
-
class: "range",
|
|
2544
|
-
style: Z(m.value)
|
|
2545
|
-
}, null, 4),
|
|
2546
|
-
a.value ? (v(), x("div", {
|
|
2547
|
-
key: 0,
|
|
2548
|
-
class: "tooltip",
|
|
2549
|
-
style: Z({ left: d.value.left })
|
|
2550
|
-
}, I(c.value), 5)) : L("", !0),
|
|
2551
|
-
k("button", {
|
|
2552
|
-
class: "handle low",
|
|
2553
|
-
style: Z(d.value),
|
|
2554
|
-
"aria-valuemin": e.min,
|
|
2555
|
-
"aria-valuemax": e.max,
|
|
2556
|
-
"aria-valuenow": c.value,
|
|
2557
|
-
"aria-label": F.value ? "Lower value" : "Value",
|
|
2558
|
-
onPointerdown: b[0] || (b[0] = de(($) => V("low", $), ["prevent"])),
|
|
2559
|
-
onFocus: b[1] || (b[1] = ($) => a.value = !0),
|
|
2560
|
-
onBlur: b[2] || (b[2] = ($) => a.value = !1),
|
|
2561
|
-
onKeydown: b[3] || (b[3] = de(($) => O("low", $), ["stop", "prevent"])),
|
|
2562
|
-
role: "slider",
|
|
2563
|
-
tabindex: "0"
|
|
2564
|
-
}, null, 44, Gl),
|
|
2565
|
-
F.value && s.value ? (v(), x("div", {
|
|
2566
|
-
key: 1,
|
|
2567
|
-
class: "tooltip",
|
|
2568
|
-
style: Z({ left: f.value.left })
|
|
2569
|
-
}, I(r.value), 5)) : L("", !0),
|
|
2570
|
-
F.value ? (v(), x("button", {
|
|
2571
|
-
key: 2,
|
|
2572
|
-
class: "handle high",
|
|
2573
|
-
style: Z(f.value),
|
|
2574
|
-
"aria-valuemin": e.min,
|
|
2575
|
-
"aria-valuemax": e.max,
|
|
2576
|
-
"aria-valuenow": r.value,
|
|
2577
|
-
"aria-label": "Upper value",
|
|
2578
|
-
onPointerdown: b[4] || (b[4] = de(($) => V("high", $), ["prevent"])),
|
|
2579
|
-
onFocus: b[5] || (b[5] = ($) => s.value = !0),
|
|
2580
|
-
onBlur: b[6] || (b[6] = ($) => s.value = !1),
|
|
2581
|
-
onKeydown: b[7] || (b[7] = de(($) => O("high", $), ["stop", "prevent"])),
|
|
2582
|
-
role: "slider",
|
|
2583
|
-
tabindex: "0"
|
|
2584
|
-
}, null, 44, Yl)) : L("", !0)
|
|
2585
|
-
], 512)
|
|
2586
|
-
], 32));
|
|
2587
|
-
}
|
|
2588
|
-
}), Ql = /* @__PURE__ */ M(Jl, [["__scopeId", "data-v-d47c7475"]]), Zl = ["onFocusin", "onFocusout"], ea = /* @__PURE__ */ T({
|
|
2589
|
-
__name: "input-slider",
|
|
2590
|
-
props: {
|
|
2591
|
-
modelValue: {},
|
|
2592
|
-
label: {},
|
|
2593
|
-
id: {},
|
|
2594
|
-
placeholder: {},
|
|
2595
|
-
disabled: { type: Boolean },
|
|
2596
|
-
colspan: {},
|
|
2597
|
-
newLine: { type: Boolean },
|
|
2598
|
-
spanRow: { type: Boolean },
|
|
2599
|
-
error: {},
|
|
2600
|
-
min: {},
|
|
2601
|
-
max: {},
|
|
2602
|
-
step: {}
|
|
2709
|
+
}), ia = /* @__PURE__ */ M(sa, [["__scopeId", "data-v-336560c3"]]), ra = {
|
|
2710
|
+
mounted(e) {
|
|
2711
|
+
e.classList.add("compact");
|
|
2603
2712
|
},
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
const t = e, o = n, l = t.modelValue === void 0 ? 0 : Number(t.modelValue), a = R(Number.isNaN(l) ? 0 : l), s = (u) => {
|
|
2607
|
-
const c = typeof u == "number" ? u : Number(u ?? 0);
|
|
2608
|
-
a.value = Number.isNaN(c) ? 0 : c, o("update:modelValue", a.value), o("input", a.value);
|
|
2609
|
-
};
|
|
2610
|
-
return (u, c) => (v(), P(Pe, {
|
|
2611
|
-
modelValue: a.value,
|
|
2612
|
-
"onUpdate:modelValue": s,
|
|
2613
|
-
label: t.label,
|
|
2614
|
-
id: t.id,
|
|
2615
|
-
placeholder: " ",
|
|
2616
|
-
disabled: t.disabled,
|
|
2617
|
-
colspan: t.colspan,
|
|
2618
|
-
newLine: t.newLine,
|
|
2619
|
-
spanRow: t.spanRow,
|
|
2620
|
-
error: t.error
|
|
2621
|
-
}, {
|
|
2622
|
-
control: K(({ id: r, disabled: i, placeholder: d, onFocus: f, onBlur: m }) => [
|
|
2623
|
-
k("div", {
|
|
2624
|
-
class: "input-slider__control",
|
|
2625
|
-
onFocusin: f,
|
|
2626
|
-
onFocusout: m
|
|
2627
|
-
}, [
|
|
2628
|
-
D(Ql, {
|
|
2629
|
-
id: r,
|
|
2630
|
-
modelValue: a.value,
|
|
2631
|
-
"onUpdate:modelValue": c[0] || (c[0] = (p) => a.value = p),
|
|
2632
|
-
min: t.min,
|
|
2633
|
-
max: t.max,
|
|
2634
|
-
step: t.step,
|
|
2635
|
-
range: !1,
|
|
2636
|
-
disabled: i
|
|
2637
|
-
}, null, 8, ["id", "modelValue", "min", "max", "step", "disabled"])
|
|
2638
|
-
], 40, Zl)
|
|
2639
|
-
]),
|
|
2640
|
-
_: 1
|
|
2641
|
-
}, 8, ["modelValue", "label", "id", "disabled", "colspan", "newLine", "spanRow", "error"]));
|
|
2713
|
+
unmounted(e) {
|
|
2714
|
+
e.classList.remove("compact");
|
|
2642
2715
|
}
|
|
2643
|
-
}
|
|
2716
|
+
}, Zt = [
|
|
2644
2717
|
'input:not([disabled]):not([type="hidden"])',
|
|
2645
2718
|
"select:not([disabled])",
|
|
2646
2719
|
"textarea:not([disabled])",
|
|
@@ -2649,70 +2722,151 @@ const jo = /* @__PURE__ */ M(Po, [["render", Do], ["__scopeId", "data-v-259fec08
|
|
|
2649
2722
|
'[tabindex]:not([tabindex="-1"])',
|
|
2650
2723
|
'[contenteditable="true"]'
|
|
2651
2724
|
].join(", ");
|
|
2652
|
-
function
|
|
2653
|
-
const n = e.querySelectorAll(
|
|
2725
|
+
function ca(e) {
|
|
2726
|
+
const n = e.querySelectorAll(Zt);
|
|
2654
2727
|
for (const t of Array.from(n))
|
|
2655
2728
|
if (t.offsetParent !== null || t.getClientRects().length > 0)
|
|
2656
2729
|
return t;
|
|
2657
2730
|
return null;
|
|
2658
2731
|
}
|
|
2659
|
-
const
|
|
2732
|
+
const ua = {
|
|
2660
2733
|
mounted(e, n) {
|
|
2661
2734
|
const t = typeof n.value == "number" ? n.value : 0, o = () => {
|
|
2662
|
-
if (e.matches(
|
|
2735
|
+
if (e.matches(Zt)) {
|
|
2663
2736
|
e.focus();
|
|
2664
2737
|
return;
|
|
2665
2738
|
}
|
|
2666
|
-
const l =
|
|
2739
|
+
const l = ca(e);
|
|
2667
2740
|
l && l.focus();
|
|
2668
2741
|
};
|
|
2669
2742
|
t > 0 ? setTimeout(o, t) : requestAnimationFrame(o);
|
|
2670
2743
|
}
|
|
2671
|
-
}
|
|
2672
|
-
|
|
2744
|
+
};
|
|
2745
|
+
class it {
|
|
2746
|
+
static _instance = null;
|
|
2747
|
+
observer = null;
|
|
2748
|
+
targets = /* @__PURE__ */ new Map();
|
|
2749
|
+
constructor() {
|
|
2750
|
+
this.init();
|
|
2751
|
+
}
|
|
2752
|
+
static get instance() {
|
|
2753
|
+
return this._instance || (this._instance = new it()), this._instance;
|
|
2754
|
+
}
|
|
2755
|
+
init() {
|
|
2756
|
+
typeof window < "u" && "ResizeObserver" in window ? this.observer = new ResizeObserver((n) => {
|
|
2757
|
+
for (const t of n) this.handleEntry(t);
|
|
2758
|
+
}) : typeof window < "u" && globalThis.addEventListener("resize", this.handleWindowResize);
|
|
2759
|
+
}
|
|
2760
|
+
handleWindowResize = () => {
|
|
2761
|
+
for (const n of this.targets.keys()) {
|
|
2762
|
+
const t = n.getBoundingClientRect(), o = {
|
|
2763
|
+
target: n,
|
|
2764
|
+
contentRect: t
|
|
2765
|
+
};
|
|
2766
|
+
this.handleEntry(o);
|
|
2767
|
+
}
|
|
2768
|
+
};
|
|
2769
|
+
handleEntry(n) {
|
|
2770
|
+
const t = this.targets.get(n.target);
|
|
2771
|
+
if (!t) return;
|
|
2772
|
+
const o = n.contentRect.width, l = n.contentRect.height, s = n.target;
|
|
2773
|
+
for (const a of t.callbacks)
|
|
2774
|
+
try {
|
|
2775
|
+
a(o, l, s);
|
|
2776
|
+
} catch (r) {
|
|
2777
|
+
console.error("resize callback error", r);
|
|
2778
|
+
}
|
|
2779
|
+
if (t.breakpoints) {
|
|
2780
|
+
const a = Object.keys(t.breakpoints).map((i) => Number(i)).filter((i) => !Number.isNaN(i)).sort((i, u) => i - u);
|
|
2781
|
+
let r;
|
|
2782
|
+
for (const i of a)
|
|
2783
|
+
o >= i && (r = t.breakpoints[i]);
|
|
2784
|
+
r !== t.currentClass && (t.currentClass && n.target.classList.remove(t.currentClass), r && n.target.classList.add(r), t.currentClass = r);
|
|
2785
|
+
}
|
|
2786
|
+
}
|
|
2787
|
+
observe(n, t, o) {
|
|
2788
|
+
const l = this.targets.get(n);
|
|
2789
|
+
if (l)
|
|
2790
|
+
t && l.callbacks.add(t), o?.breakpoints && (l.breakpoints = o.breakpoints);
|
|
2791
|
+
else {
|
|
2792
|
+
const s = /* @__PURE__ */ new Set();
|
|
2793
|
+
t && s.add(t), this.targets.set(n, { callbacks: s, breakpoints: o?.breakpoints }), this.observer && this.observer.observe(n);
|
|
2794
|
+
}
|
|
2795
|
+
if (o?.immediate) {
|
|
2796
|
+
const s = n.getBoundingClientRect(), a = { target: n, contentRect: s };
|
|
2797
|
+
if (this.handleEntry(a), t) {
|
|
2798
|
+
const r = s.width, i = s.height;
|
|
2799
|
+
t(r, i, n);
|
|
2800
|
+
}
|
|
2801
|
+
}
|
|
2802
|
+
}
|
|
2803
|
+
unobserve(n, t) {
|
|
2804
|
+
const o = this.targets.get(n);
|
|
2805
|
+
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)));
|
|
2806
|
+
}
|
|
2807
|
+
}
|
|
2808
|
+
const Ve = it.instance, da = {
|
|
2809
|
+
mounted(e, n) {
|
|
2810
|
+
const t = n.value, o = typeof t == "function" ? t : t?.onResize, l = typeof t == "object" && t?.breakpoints ? t.breakpoints : void 0, s = typeof t == "object" && !!t?.immediate, a = e;
|
|
2811
|
+
a.__resize_cb = o, a.__resize_breakpoints = l, o && Ve.observe(e, o, { breakpoints: l, immediate: s });
|
|
2812
|
+
},
|
|
2813
|
+
updated(e, n) {
|
|
2814
|
+
const t = e, o = t.__resize_cb, l = t.__resize_breakpoints, s = n.value, a = typeof s == "function" ? s : s?.onResize, r = typeof s == "object" && s?.breakpoints ? s.breakpoints : void 0;
|
|
2815
|
+
if (o !== a) {
|
|
2816
|
+
o && Ve.unobserve(e, o), a && Ve.observe(e, a, { breakpoints: r, immediate: !!(s && typeof s == "object" && s.immediate) }), t.__resize_cb = a, t.__resize_breakpoints = r;
|
|
2817
|
+
return;
|
|
2818
|
+
}
|
|
2819
|
+
JSON.stringify(l || {}) !== JSON.stringify(r || {}) && (o && Ve.unobserve(e, o), a && Ve.observe(e, a, { breakpoints: r, immediate: !0 }), t.__resize_breakpoints = r);
|
|
2820
|
+
},
|
|
2821
|
+
unmounted(e) {
|
|
2822
|
+
const n = e, t = n.__resize_cb;
|
|
2823
|
+
t && Ve.unobserve(e, t), delete n.__resize_cb, delete n.__resize_breakpoints;
|
|
2824
|
+
}
|
|
2825
|
+
}, fa = "navigationProvider";
|
|
2826
|
+
function ma(e) {
|
|
2673
2827
|
return !!e.meta && "icon" in e.meta && "label" in e.meta;
|
|
2674
2828
|
}
|
|
2675
|
-
const
|
|
2676
|
-
const e =
|
|
2677
|
-
const
|
|
2678
|
-
return
|
|
2829
|
+
const va = () => {
|
|
2830
|
+
const e = vn(), n = pn(), t = !0, o = C(() => {
|
|
2831
|
+
const c = e.getRoutes();
|
|
2832
|
+
return c.filter((d) => d.path !== "/" && !c.some((m) => m.children?.some((f) => f.name === d.name)));
|
|
2679
2833
|
}), l = C(() => {
|
|
2680
|
-
const
|
|
2681
|
-
return
|
|
2682
|
-
}),
|
|
2683
|
-
const
|
|
2684
|
-
return
|
|
2685
|
-
}),
|
|
2686
|
-
if (!
|
|
2687
|
-
const d = e.getRoutes().find((
|
|
2834
|
+
const c = n.matched;
|
|
2835
|
+
return c.length ? c[c.length - 1] : null;
|
|
2836
|
+
}), s = C(() => {
|
|
2837
|
+
const c = n.matched;
|
|
2838
|
+
return c.length > 1 ? c[c.length - 2] : null;
|
|
2839
|
+
}), a = C(() => !!(l.value?.children?.length || s.value)), r = C(() => l.value?.children?.length ? l.value : s.value?.children?.length ? s.value : null), i = C(() => {
|
|
2840
|
+
if (!r.value) return null;
|
|
2841
|
+
const d = e.getRoutes().find((m) => m.children?.some((f) => f.name === r.value.name));
|
|
2688
2842
|
return d ? { name: d.name } : { path: "/" };
|
|
2689
|
-
}),
|
|
2690
|
-
let
|
|
2691
|
-
return n.path === "/" ?
|
|
2843
|
+
}), u = C(() => {
|
|
2844
|
+
let c = [];
|
|
2845
|
+
return n.path === "/" ? c = o.value : l.value?.children?.length ? c = l.value.children : s.value?.children?.length ? c = s.value.children : c = o.value, c.filter(ma);
|
|
2692
2846
|
});
|
|
2693
2847
|
return {
|
|
2694
|
-
hasParent:
|
|
2695
|
-
backRoute:
|
|
2696
|
-
childRoutes:
|
|
2848
|
+
hasParent: a,
|
|
2849
|
+
backRoute: i,
|
|
2850
|
+
childRoutes: u,
|
|
2697
2851
|
showLabels: t
|
|
2698
2852
|
};
|
|
2699
|
-
},
|
|
2700
|
-
const o =
|
|
2853
|
+
}, Sa = (e, n = !0, t = void 0) => {
|
|
2854
|
+
const o = dn(e) ? e : R(e), l = !!t, s = R(t || null);
|
|
2701
2855
|
return {
|
|
2702
2856
|
hasParent: l,
|
|
2703
|
-
backRoute:
|
|
2857
|
+
backRoute: s,
|
|
2704
2858
|
childRoutes: o,
|
|
2705
2859
|
showLabels: n
|
|
2706
2860
|
};
|
|
2707
|
-
},
|
|
2708
|
-
let
|
|
2709
|
-
const
|
|
2710
|
-
|
|
2711
|
-
}),
|
|
2712
|
-
onClose: (t) =>
|
|
2713
|
-
}),
|
|
2861
|
+
}, rt = R(!1), ct = R(null), ut = R(null);
|
|
2862
|
+
let Ce = [];
|
|
2863
|
+
const en = (e) => (Ce.push(e), () => {
|
|
2864
|
+
Ce = Ce.filter((n) => n !== e);
|
|
2865
|
+
}), pa = (e, n) => (Ce = [], ct.value = e, ut.value = n ?? null, rt.value = !0, {
|
|
2866
|
+
onClose: (t) => en(t)
|
|
2867
|
+
}), ha = (e) => {
|
|
2714
2868
|
try {
|
|
2715
|
-
|
|
2869
|
+
Ce.forEach((n) => {
|
|
2716
2870
|
try {
|
|
2717
2871
|
n(e);
|
|
2718
2872
|
} catch (t) {
|
|
@@ -2720,26 +2874,66 @@ const Gt = (e) => (ke.push(e), () => {
|
|
|
2720
2874
|
}
|
|
2721
2875
|
});
|
|
2722
2876
|
} finally {
|
|
2723
|
-
|
|
2724
|
-
}
|
|
2725
|
-
},
|
|
2726
|
-
|
|
2727
|
-
},
|
|
2728
|
-
asideComponent:
|
|
2729
|
-
asideData:
|
|
2730
|
-
showAside:
|
|
2731
|
-
closeAside:
|
|
2732
|
-
onAsideClose:
|
|
2733
|
-
hasAside:
|
|
2734
|
-
},
|
|
2877
|
+
rt.value = !1, setTimeout(ba, 1e3);
|
|
2878
|
+
}
|
|
2879
|
+
}, ba = () => {
|
|
2880
|
+
Ce = [], ct.value = null, ut.value = null;
|
|
2881
|
+
}, ga = {
|
|
2882
|
+
asideComponent: ct,
|
|
2883
|
+
asideData: ut,
|
|
2884
|
+
showAside: pa,
|
|
2885
|
+
closeAside: ha,
|
|
2886
|
+
onAsideClose: en,
|
|
2887
|
+
hasAside: rt
|
|
2888
|
+
}, ya = () => ga, $a = (e, n) => {
|
|
2735
2889
|
let t = null;
|
|
2736
2890
|
return (...l) => {
|
|
2737
2891
|
t && clearTimeout(t), t = setTimeout(() => {
|
|
2738
2892
|
e(...l);
|
|
2739
2893
|
}, n);
|
|
2740
2894
|
};
|
|
2895
|
+
}, La = () => {
|
|
2896
|
+
const e = R(!1), n = R(null), t = () => {
|
|
2897
|
+
n.value = null;
|
|
2898
|
+
};
|
|
2899
|
+
class o {
|
|
2900
|
+
inner;
|
|
2901
|
+
defaultValue;
|
|
2902
|
+
handlers = [];
|
|
2903
|
+
constructor(a, r) {
|
|
2904
|
+
this.inner = a, this.defaultValue = r;
|
|
2905
|
+
}
|
|
2906
|
+
onError(a) {
|
|
2907
|
+
return this.handlers.push(a), this;
|
|
2908
|
+
}
|
|
2909
|
+
async exec() {
|
|
2910
|
+
n.value = null, e.value = !0;
|
|
2911
|
+
try {
|
|
2912
|
+
return await this.inner();
|
|
2913
|
+
} catch (a) {
|
|
2914
|
+
n.value = a;
|
|
2915
|
+
for (const r of this.handlers)
|
|
2916
|
+
try {
|
|
2917
|
+
r(a);
|
|
2918
|
+
} catch (i) {
|
|
2919
|
+
console.error("onError handler failed", i);
|
|
2920
|
+
}
|
|
2921
|
+
if (this.defaultValue !== void 0) return this.defaultValue;
|
|
2922
|
+
throw a;
|
|
2923
|
+
} finally {
|
|
2924
|
+
e.value = !1;
|
|
2925
|
+
}
|
|
2926
|
+
}
|
|
2927
|
+
then(a, r) {
|
|
2928
|
+
return this.exec().then(a, r);
|
|
2929
|
+
}
|
|
2930
|
+
}
|
|
2931
|
+
function l(s, a) {
|
|
2932
|
+
return new o(s, a);
|
|
2933
|
+
}
|
|
2934
|
+
return { run: l, running: e, error: n, clearError: t };
|
|
2741
2935
|
};
|
|
2742
|
-
class
|
|
2936
|
+
class wa {
|
|
2743
2937
|
containerElement = null;
|
|
2744
2938
|
apps = [];
|
|
2745
2939
|
ensureContainer() {
|
|
@@ -2749,15 +2943,15 @@ class fa {
|
|
|
2749
2943
|
return new Promise((t) => {
|
|
2750
2944
|
const o = this.ensureContainer(), l = document.createElement("div");
|
|
2751
2945
|
o.appendChild(l);
|
|
2752
|
-
let
|
|
2753
|
-
const
|
|
2754
|
-
|
|
2755
|
-
const
|
|
2756
|
-
|
|
2946
|
+
let s = !1;
|
|
2947
|
+
const a = () => {
|
|
2948
|
+
s || (s = !0, setTimeout(() => {
|
|
2949
|
+
const i = this.apps.find((u) => u.element === l);
|
|
2950
|
+
i && (i.app.unmount(), this.apps = this.apps.filter((u) => u !== i)), l.remove();
|
|
2757
2951
|
}, 300));
|
|
2758
|
-
},
|
|
2952
|
+
}, r = fn({
|
|
2759
2953
|
setup() {
|
|
2760
|
-
return () =>
|
|
2954
|
+
return () => mn(At, {
|
|
2761
2955
|
modelValue: !0,
|
|
2762
2956
|
title: n.title,
|
|
2763
2957
|
message: n.message,
|
|
@@ -2770,18 +2964,18 @@ class fa {
|
|
|
2770
2964
|
closeOnBackdrop: n.closeOnBackdrop ?? !1,
|
|
2771
2965
|
closeOnEscape: n.closeOnEscape ?? !0,
|
|
2772
2966
|
onConfirm: () => {
|
|
2773
|
-
t(!0),
|
|
2967
|
+
t(!0), a();
|
|
2774
2968
|
},
|
|
2775
2969
|
onCancel: () => {
|
|
2776
|
-
t(!1),
|
|
2970
|
+
t(!1), a();
|
|
2777
2971
|
},
|
|
2778
2972
|
onClose: () => {
|
|
2779
|
-
|
|
2973
|
+
s || t(!1), a();
|
|
2780
2974
|
}
|
|
2781
2975
|
});
|
|
2782
2976
|
}
|
|
2783
2977
|
});
|
|
2784
|
-
|
|
2978
|
+
r.component("VjCard", Lt), r.component("VjIcon", Te), r.component("VjButton", $t), r.mount(l), this.apps.push({ app: r, element: l });
|
|
2785
2979
|
});
|
|
2786
2980
|
}
|
|
2787
2981
|
confirm(n) {
|
|
@@ -2809,54 +3003,61 @@ class fa {
|
|
|
2809
3003
|
}), this.apps = [];
|
|
2810
3004
|
}
|
|
2811
3005
|
}
|
|
2812
|
-
const
|
|
2813
|
-
function
|
|
2814
|
-
return
|
|
3006
|
+
const xa = new wa();
|
|
3007
|
+
function Aa() {
|
|
3008
|
+
return xa;
|
|
2815
3009
|
}
|
|
2816
|
-
const
|
|
3010
|
+
const Oa = {
|
|
2817
3011
|
install(e) {
|
|
2818
|
-
e.component("VjButton",
|
|
3012
|
+
e.component("VjButton", $t), e.component("VjButtonBar", xn), e.component("VjCard", Lt), e.component("VjCarousel", Bn), e.component("VjDotMenu", To), e.component("VjIcon", Te), e.component("VjLinkButton", Mo), e.component("VjMenu", Ho), e.component("VjMenuAction", jo), e.component("VjPage", Jo), e.component("VjPaginator", el), e.component("VjTab", vl), e.component("VjTabView", fl), e.component("VjDialog", At), e.component("VjInput", Jt), e.component("VjSelect", Gt), e.component("VjTextArea", Yt), e.component("VjFormField", Fe), e.component("VjFormLayout", Vl), e.component("VjFormSection", Rl), e.component("VjInputText", ql), e.component("VjInputTextArea", Wl), e.component("VjInputSelect", Tl), e.component("VjInputSlider", zl), e.component("VjShellNavigation", Qt), e.component("VjShellNavigationItem", Ql), e.component("VjShell", ia), e.component("VjSearchField", ll), e.component("VjSeparator", sl), e.directive("focus", ua), e.directive("resize", da), e.directive("compact", ra);
|
|
2819
3013
|
}
|
|
2820
3014
|
};
|
|
2821
3015
|
export {
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
el as
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
3016
|
+
$t as Button,
|
|
3017
|
+
xn as ButtonBar,
|
|
3018
|
+
Lt as Card,
|
|
3019
|
+
Bn as Carousel,
|
|
3020
|
+
Ca as Checkbox,
|
|
3021
|
+
At as Dialog,
|
|
3022
|
+
To as DotMenu,
|
|
3023
|
+
Fe as FormField,
|
|
3024
|
+
Vl as FormLayout,
|
|
3025
|
+
Rl as FormSection,
|
|
3026
|
+
Te as Icon,
|
|
3027
|
+
H as IconNames,
|
|
3028
|
+
X as IconSize,
|
|
3029
|
+
Jt as Input,
|
|
3030
|
+
Tl as InputSelect,
|
|
3031
|
+
zl as InputSlider,
|
|
3032
|
+
ql as InputText,
|
|
3033
|
+
Wl as InputTextArea,
|
|
3034
|
+
Mo as LinkButton,
|
|
3035
|
+
Ho as Menu,
|
|
3036
|
+
jo as MenuAction,
|
|
3037
|
+
Jo as Page,
|
|
3038
|
+
el as Paginator,
|
|
3039
|
+
ll as SearchField,
|
|
3040
|
+
Gt as Select,
|
|
3041
|
+
sl as Separator,
|
|
3042
|
+
ia as Shell,
|
|
3043
|
+
Qt as ShellNavigation,
|
|
3044
|
+
Ql as ShellNavigationItem,
|
|
3045
|
+
vl as Tab,
|
|
3046
|
+
fl as TabView,
|
|
3047
|
+
Yt as TextArea,
|
|
3048
|
+
Oa as VjComponents,
|
|
3049
|
+
fa as VjNavigationProviderKey,
|
|
3050
|
+
ra as compactDirective,
|
|
3051
|
+
Ra as configureVueUI,
|
|
3052
|
+
xa as dialogService,
|
|
3053
|
+
pl as getVueUIConfig,
|
|
3054
|
+
Ea as resetVueUIConfig,
|
|
3055
|
+
ya as useAsideService,
|
|
3056
|
+
$a as useDebounce,
|
|
3057
|
+
Aa as useDialog,
|
|
3058
|
+
La as useFlow,
|
|
3059
|
+
va as useRouterNavigationProvider,
|
|
3060
|
+
Sa as useStaticNavigationProvider,
|
|
3061
|
+
ua as vFocusFirst,
|
|
3062
|
+
da as vResize
|
|
2862
3063
|
};
|