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