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