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