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