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