sit-onyx 1.0.0-beta.7 → 1.0.0-beta.9
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/components/OnyxFormElement/OnyxFormElement.vue.d.ts +9 -2
- package/dist/components/OnyxFormElement/types.d.ts +6 -0
- package/dist/components/OnyxNavBar/modules/OnyxFlyoutMenu/OnyxFlyoutMenu.vue.d.ts +4 -2
- package/dist/components/OnyxNavBar/modules/OnyxFlyoutMenu/types.d.ts +0 -5
- package/dist/components/OnyxNavBar/modules/OnyxMenuItem/types.d.ts +1 -1
- package/dist/components/OnyxNavBar/modules/OnyxUserMenu/OnyxUserMenu.vue.d.ts +9 -1
- package/dist/components/OnyxNavBar/modules/OnyxUserMenu/UserMenuLayout.vue.d.ts +9 -3
- package/dist/components/OnyxNavBar/modules/OnyxUserMenu/types.d.ts +0 -5
- package/dist/index.cjs +3 -3
- package/dist/index.js +1121 -1106
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as k, useSlots as F, openBlock as s, createElementBlock as
|
|
1
|
+
import { defineComponent as k, useSlots as F, openBlock as s, createElementBlock as d, normalizeClass as g, renderSlot as b, createCommentVNode as _, createElementVNode as v, computed as f, ref as E, watch as G, createTextVNode as U, toDisplayString as S, unref as i, Fragment as z, createBlock as x, inject as ce, watchEffect as J, createVNode as M, withDirectives as j, vModelCheckbox as ot, withCtx as $, mergeProps as B, renderList as X, withModifiers as Pe, resolveDynamicComponent as ue, reactive as Et, onBeforeMount as Ne, onBeforeUnmount as ye, normalizeProps as te, guardReactiveProps as ae, vModelDynamic as Tt, useAttrs as It, vModelText as lt, Teleport as Lt, mergeModels as he, useModel as fe, vShow as nt, createSlots as ve, toRef as Te, provide as At, nextTick as Ht, normalizeStyle as Ie } from "vue";
|
|
2
2
|
const Dt = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "onyx-app__nav"
|
|
@@ -8,26 +8,26 @@ const Dt = {
|
|
|
8
8
|
}, zt = {
|
|
9
9
|
key: 2,
|
|
10
10
|
class: "onyx-app__app-overlay"
|
|
11
|
-
},
|
|
11
|
+
}, Mn = /* @__PURE__ */ k({
|
|
12
12
|
__name: "OnyxAppLayout",
|
|
13
13
|
props: {
|
|
14
14
|
navBarAlignment: { default: "top" }
|
|
15
15
|
},
|
|
16
16
|
setup(t) {
|
|
17
17
|
const a = t, e = F();
|
|
18
|
-
return (o, n) => (s(),
|
|
18
|
+
return (o, n) => (s(), d("div", {
|
|
19
19
|
class: g(["onyx-app", { "onyx-app--horizontal": a.navBarAlignment === "left" }])
|
|
20
20
|
}, [
|
|
21
|
-
e.navBar ? (s(),
|
|
21
|
+
e.navBar ? (s(), d("div", Dt, [
|
|
22
22
|
b(o.$slots, "navBar")
|
|
23
23
|
])) : _("", !0),
|
|
24
|
-
|
|
24
|
+
v("div", Pt, [
|
|
25
25
|
b(o.$slots, "default")
|
|
26
26
|
]),
|
|
27
|
-
e.pageOverlay ? (s(),
|
|
27
|
+
e.pageOverlay ? (s(), d("div", Nt, [
|
|
28
28
|
b(o.$slots, "pageOverlay")
|
|
29
29
|
])) : _("", !0),
|
|
30
|
-
e.appOverlay ? (s(),
|
|
30
|
+
e.appOverlay ? (s(), d("div", zt, [
|
|
31
31
|
b(o.$slots, "appOverlay")
|
|
32
32
|
])) : _("", !0)
|
|
33
33
|
], 2));
|
|
@@ -35,7 +35,7 @@ const Dt = {
|
|
|
35
35
|
}), Rt = ["title"], Ut = ["src", "alt"], Ft = {
|
|
36
36
|
key: 1,
|
|
37
37
|
class: "onyx-avatar__initials"
|
|
38
|
-
},
|
|
38
|
+
}, Ye = /* @__PURE__ */ k({
|
|
39
39
|
__name: "OnyxAvatar",
|
|
40
40
|
props: {
|
|
41
41
|
size: { default: "48px" },
|
|
@@ -43,39 +43,39 @@ const Dt = {
|
|
|
43
43
|
src: {}
|
|
44
44
|
},
|
|
45
45
|
setup(t) {
|
|
46
|
-
const a = t, e = F(), o =
|
|
46
|
+
const a = t, e = F(), o = f(() => {
|
|
47
47
|
const l = a.label.split(" ");
|
|
48
48
|
return (l.length > 1 ? `${l[0].charAt(0)}${l[1].charAt(0)}` : l[0].substring(0, 2)).toUpperCase();
|
|
49
49
|
}), n = E(!1);
|
|
50
50
|
return G(
|
|
51
51
|
() => a.src,
|
|
52
52
|
() => n.value = !1
|
|
53
|
-
), (l,
|
|
53
|
+
), (l, r) => (s(), d("figure", {
|
|
54
54
|
class: g(["onyx-avatar", [`onyx-avatar--${a.size}`, e.default ? "onyx-avatar--custom" : ""]]),
|
|
55
55
|
title: a.label
|
|
56
56
|
}, [
|
|
57
|
-
a.src && !n.value ? (s(),
|
|
57
|
+
a.src && !n.value ? (s(), d("img", {
|
|
58
58
|
key: 0,
|
|
59
59
|
class: "onyx-avatar__svg",
|
|
60
60
|
src: a.src,
|
|
61
61
|
alt: a.label,
|
|
62
|
-
onError:
|
|
63
|
-
}, null, 40, Ut)) : (s(),
|
|
62
|
+
onError: r[0] || (r[0] = (u) => n.value = !0)
|
|
63
|
+
}, null, 40, Ut)) : (s(), d("div", Ft, [
|
|
64
64
|
b(l.$slots, "default", {}, () => [
|
|
65
|
-
U(
|
|
65
|
+
U(S(o.value), 1)
|
|
66
66
|
])
|
|
67
67
|
]))
|
|
68
68
|
], 10, Rt));
|
|
69
69
|
}
|
|
70
|
-
}), qt = { class: "onyx-avatar-stack" },
|
|
70
|
+
}), qt = { class: "onyx-avatar-stack" }, Sn = /* @__PURE__ */ k({
|
|
71
71
|
__name: "OnyxAvatarStack",
|
|
72
72
|
setup(t) {
|
|
73
|
-
return (a, e) => (s(),
|
|
73
|
+
return (a, e) => (s(), d("div", qt, [
|
|
74
74
|
b(a.$slots, "default")
|
|
75
75
|
]));
|
|
76
76
|
}
|
|
77
|
-
}),
|
|
78
|
-
densityClass:
|
|
77
|
+
}), Vn = ["compact", "default", "cozy"], D = (t) => ({
|
|
78
|
+
densityClass: f(() => ({ [`onyx-density-${t.density}`]: t.density }))
|
|
79
79
|
}), Zt = ["innerHTML"], A = /* @__PURE__ */ k({
|
|
80
80
|
__name: "OnyxIcon",
|
|
81
81
|
props: {
|
|
@@ -85,7 +85,7 @@ const Dt = {
|
|
|
85
85
|
},
|
|
86
86
|
setup(t) {
|
|
87
87
|
const a = t;
|
|
88
|
-
return (e, o) => (s(),
|
|
88
|
+
return (e, o) => (s(), d("figure", {
|
|
89
89
|
class: g({
|
|
90
90
|
"onyx-icon": !0,
|
|
91
91
|
[`onyx-icon--${a.size}`]: a.size,
|
|
@@ -105,16 +105,16 @@ const Dt = {
|
|
|
105
105
|
},
|
|
106
106
|
setup(t) {
|
|
107
107
|
const a = t, { densityClass: e } = D(a);
|
|
108
|
-
return (o, n) => (s(),
|
|
108
|
+
return (o, n) => (s(), d("div", {
|
|
109
109
|
class: g(["onyx-badge", [
|
|
110
110
|
"onyx-truncation-ellipsis",
|
|
111
111
|
"onyx-text",
|
|
112
112
|
`onyx-badge--${a.color}`,
|
|
113
113
|
a.dot ? "onyx-badge--dot" : "",
|
|
114
|
-
|
|
114
|
+
i(e)
|
|
115
115
|
]])
|
|
116
116
|
}, [
|
|
117
|
-
a.dot ? _("", !0) : (s(),
|
|
117
|
+
a.dot ? _("", !0) : (s(), d(z, { key: 0 }, [
|
|
118
118
|
a.icon ? (s(), x(A, {
|
|
119
119
|
key: 0,
|
|
120
120
|
class: "onyx-badge__icon",
|
|
@@ -124,7 +124,7 @@ const Dt = {
|
|
|
124
124
|
], 64))
|
|
125
125
|
], 2));
|
|
126
126
|
}
|
|
127
|
-
}),
|
|
127
|
+
}), ze = (t, a) => {
|
|
128
128
|
const e = t.__vccOpts || t;
|
|
129
129
|
for (const [o, n] of a)
|
|
130
130
|
e[o] = n;
|
|
@@ -132,7 +132,7 @@ const Dt = {
|
|
|
132
132
|
}, Kt = {}, jt = {
|
|
133
133
|
class: "onyx-circle-spinner",
|
|
134
134
|
viewBox: "0 0 50 50"
|
|
135
|
-
}, Yt = /* @__PURE__ */
|
|
135
|
+
}, Yt = /* @__PURE__ */ v("circle", {
|
|
136
136
|
class: "onyx-circle-spinner__circle",
|
|
137
137
|
cx: "50%",
|
|
138
138
|
cy: "50%",
|
|
@@ -141,15 +141,15 @@ const Dt = {
|
|
|
141
141
|
Yt
|
|
142
142
|
];
|
|
143
143
|
function Xt(t, a) {
|
|
144
|
-
return s(),
|
|
144
|
+
return s(), d("svg", jt, Wt);
|
|
145
145
|
}
|
|
146
|
-
const Jt = /* @__PURE__ */
|
|
146
|
+
const Jt = /* @__PURE__ */ ze(Kt, [["render", Xt]]), Qt = {}, ea = { class: "onyx-loading-dots" }, ta = /* @__PURE__ */ v("span", { class: "onyx-loading-dots__center" }, null, -1), aa = [
|
|
147
147
|
ta
|
|
148
148
|
];
|
|
149
149
|
function oa(t, a) {
|
|
150
|
-
return s(),
|
|
150
|
+
return s(), d("div", ea, aa);
|
|
151
151
|
}
|
|
152
|
-
const la = /* @__PURE__ */
|
|
152
|
+
const la = /* @__PURE__ */ ze(Qt, [["render", oa]]), Q = /* @__PURE__ */ k({
|
|
153
153
|
__name: "OnyxLoadingIndicator",
|
|
154
154
|
props: {
|
|
155
155
|
type: { default: "dots" }
|
|
@@ -163,9 +163,9 @@ const la = /* @__PURE__ */ Ne(Qt, [["render", oa]]), Q = /* @__PURE__ */ k({
|
|
|
163
163
|
class: "onyx-skeleton"
|
|
164
164
|
};
|
|
165
165
|
function ra(t, a) {
|
|
166
|
-
return s(),
|
|
166
|
+
return s(), d("figure", sa);
|
|
167
167
|
}
|
|
168
|
-
const R = /* @__PURE__ */
|
|
168
|
+
const R = /* @__PURE__ */ ze(na, [["render", ra]]), ia = ["disabled", "type", "aria-label", "autofocus"], ca = { class: "onyx-button__label onyx-truncation-ellipsis" }, Le = /* @__PURE__ */ k({
|
|
169
169
|
__name: "OnyxButton",
|
|
170
170
|
props: {
|
|
171
171
|
density: {},
|
|
@@ -182,23 +182,23 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
182
182
|
emits: ["click"],
|
|
183
183
|
setup(t, { emit: a }) {
|
|
184
184
|
const e = t, { densityClass: o } = D(e), n = a;
|
|
185
|
-
return (l,
|
|
185
|
+
return (l, r) => e.skeleton ? (s(), x(R, {
|
|
186
186
|
key: 0,
|
|
187
|
-
class: g(["onyx-button-skeleton",
|
|
188
|
-
}, null, 8, ["class"])) : (s(),
|
|
187
|
+
class: g(["onyx-button-skeleton", i(o)])
|
|
188
|
+
}, null, 8, ["class"])) : (s(), d("button", {
|
|
189
189
|
key: 1,
|
|
190
190
|
class: g([
|
|
191
191
|
"onyx-button",
|
|
192
192
|
`onyx-button--${e.color}`,
|
|
193
193
|
`onyx-button--${e.mode}`,
|
|
194
194
|
{ "onyx-button--loading": e.loading },
|
|
195
|
-
|
|
195
|
+
i(o)
|
|
196
196
|
]),
|
|
197
197
|
disabled: e.disabled || e.loading,
|
|
198
198
|
type: e.type,
|
|
199
199
|
"aria-label": e.loading ? e.label : void 0,
|
|
200
200
|
autofocus: e.autofocus,
|
|
201
|
-
onClick:
|
|
201
|
+
onClick: r[0] || (r[0] = (u) => n("click"))
|
|
202
202
|
}, [
|
|
203
203
|
e.icon && !e.loading ? (s(), x(A, {
|
|
204
204
|
key: 0,
|
|
@@ -208,17 +208,17 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
208
208
|
key: 1,
|
|
209
209
|
class: "onyx-button__loading"
|
|
210
210
|
})) : _("", !0),
|
|
211
|
-
|
|
211
|
+
v("span", ca, S(e.label), 1)
|
|
212
212
|
], 10, ia));
|
|
213
213
|
}
|
|
214
|
-
}),
|
|
214
|
+
}), Bn = ["button", "submit", "reset"], On = ["primary", "neutral", "danger"], En = ["default", "outline", "plain"], _e = (t) => ({
|
|
215
215
|
/**
|
|
216
216
|
* Class that configures which type of required marker is used.
|
|
217
217
|
*/
|
|
218
|
-
requiredTypeClass:
|
|
218
|
+
requiredTypeClass: f(() => ({
|
|
219
219
|
[`onyx-use-${t.requiredMarker}`]: t.requiredMarker
|
|
220
220
|
})),
|
|
221
|
-
requiredMarkerClass:
|
|
221
|
+
requiredMarkerClass: f(() => ({
|
|
222
222
|
"onyx-required-marker": t.required,
|
|
223
223
|
"onyx-optional-marker": !t.required
|
|
224
224
|
}))
|
|
@@ -277,13 +277,13 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
277
277
|
fullError: '"{value}" must a valid URL.'
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
|
-
},
|
|
280
|
+
}, fa = {
|
|
281
281
|
toggleDropDown: "Toggle selection popover",
|
|
282
282
|
empty: "No data available",
|
|
283
283
|
noMatch: "No item matches your search",
|
|
284
284
|
searchInputLabel: "Filter the list items",
|
|
285
285
|
clearSearch: "Clear search filter"
|
|
286
|
-
},
|
|
286
|
+
}, va = {
|
|
287
287
|
selectAll: "Select all",
|
|
288
288
|
currentSelection: "{n} selected"
|
|
289
289
|
}, _a = {
|
|
@@ -317,34 +317,34 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
317
317
|
label: "Dark",
|
|
318
318
|
description: "This color mode is optimized for darker environments."
|
|
319
319
|
}
|
|
320
|
-
},
|
|
320
|
+
}, Ae = {
|
|
321
321
|
optional: ua,
|
|
322
322
|
cancel: da,
|
|
323
323
|
apply: pa,
|
|
324
324
|
back: ma,
|
|
325
325
|
close: ya,
|
|
326
326
|
validations: ha,
|
|
327
|
-
select:
|
|
328
|
-
selections:
|
|
327
|
+
select: fa,
|
|
328
|
+
selections: va,
|
|
329
329
|
table: _a,
|
|
330
330
|
link: xa,
|
|
331
331
|
navItemOptionsLabel: ba,
|
|
332
332
|
navigation: ga,
|
|
333
333
|
showTooltip: ka,
|
|
334
334
|
colorScheme: wa
|
|
335
|
-
},
|
|
336
|
-
const a =
|
|
335
|
+
}, st = Symbol(), rt = (t = {}) => {
|
|
336
|
+
const a = f(() => i(t == null ? void 0 : t.locale) ?? "en-US");
|
|
337
337
|
if (t.t)
|
|
338
338
|
return { t: t.t, locale: a };
|
|
339
|
-
const e =
|
|
340
|
-
let
|
|
341
|
-
return
|
|
339
|
+
const e = f(() => t != null && t.messages && a.value in t.messages ? t.messages[a.value] : Ae), o = f(() => (n, l = {}) => {
|
|
340
|
+
let r = We(n, e.value) ?? We(n, Ae) ?? "";
|
|
341
|
+
return r = $a(r, l.n), Ma(r, l);
|
|
342
342
|
});
|
|
343
343
|
return { locale: a, t: o };
|
|
344
344
|
}, Ca = (t, a) => {
|
|
345
|
-
const e =
|
|
346
|
-
return t.provide(
|
|
347
|
-
}, P = () =>
|
|
345
|
+
const e = rt(a);
|
|
346
|
+
return t.provide(st, e), e;
|
|
347
|
+
}, P = () => ce(st, () => rt(), !0), We = (t, a) => {
|
|
348
348
|
const e = t.split(".").reduce((o, n) => !o || typeof o == "string" ? o : o[n], a);
|
|
349
349
|
return e && typeof e == "string" ? e : void 0;
|
|
350
350
|
}, $a = (t, a) => {
|
|
@@ -361,20 +361,20 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
361
361
|
return e[n] = e[n] || [], e[n].push(o), e;
|
|
362
362
|
},
|
|
363
363
|
{}
|
|
364
|
-
),
|
|
364
|
+
), it = () => Object.entries(Object.getOwnPropertyDescriptors(ValidityState.prototype)).filter(([t, a]) => a.enumerable).map(([t]) => t), Ba = (t) => it().reduce(
|
|
365
365
|
(a, e) => (a[e] = t[e], a),
|
|
366
366
|
{}
|
|
367
367
|
), Oa = (t) => {
|
|
368
368
|
if (t.valueMissing) return "valueMissing";
|
|
369
|
-
const a =
|
|
369
|
+
const a = it().filter((e) => e !== "valid").sort();
|
|
370
370
|
for (const e of a)
|
|
371
371
|
if (e in t && t[e]) return e;
|
|
372
372
|
}, Ea = Object.keys(
|
|
373
|
-
|
|
373
|
+
Ae.validations.typeMismatch
|
|
374
374
|
), Ta = (t) => {
|
|
375
375
|
if (t)
|
|
376
376
|
return typeof t == "string" ? { shortMessage: t, longMessage: t } : t;
|
|
377
|
-
},
|
|
377
|
+
}, ct = (t) => {
|
|
378
378
|
if (!t) return;
|
|
379
379
|
if (typeof t == "string")
|
|
380
380
|
return t;
|
|
@@ -388,11 +388,11 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
388
388
|
{ once: !0 }
|
|
389
389
|
);
|
|
390
390
|
const n = {
|
|
391
|
-
mounted: (
|
|
392
|
-
J(() =>
|
|
391
|
+
mounted: (r) => {
|
|
392
|
+
J(() => r.setCustomValidity(ct(t.props.customError) ?? "")), G(
|
|
393
393
|
[() => t.props.customError, () => t.props.modelValue],
|
|
394
394
|
() => {
|
|
395
|
-
const u = Ba(
|
|
395
|
+
const u = Ba(r.validity);
|
|
396
396
|
!e.value && u.valid || e.value && Sa(u, e.value) || (e.value = u);
|
|
397
397
|
},
|
|
398
398
|
{ immediate: !0 }
|
|
@@ -404,31 +404,31 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
404
404
|
{ immediate: !0 }
|
|
405
405
|
);
|
|
406
406
|
}
|
|
407
|
-
}, l =
|
|
408
|
-
var
|
|
407
|
+
}, l = f(() => {
|
|
408
|
+
var p, m, y;
|
|
409
409
|
if (!e.value || e.value.valid) return;
|
|
410
|
-
const
|
|
411
|
-
if (u ||
|
|
410
|
+
const r = Oa(e.value), u = Ta(t.props.customError);
|
|
411
|
+
if (u || r === "customError")
|
|
412
412
|
return u || void 0;
|
|
413
|
-
if (!
|
|
414
|
-
if (
|
|
413
|
+
if (!r) return;
|
|
414
|
+
if (r === "typeMismatch") {
|
|
415
415
|
const h = Ea.includes(t.props.type) ? t.props.type : "generic";
|
|
416
416
|
return {
|
|
417
417
|
longMessage: a.value(`validations.typeMismatch.${h}.fullError`, {
|
|
418
|
-
value: (
|
|
418
|
+
value: (p = t.props.modelValue) == null ? void 0 : p.toString()
|
|
419
419
|
}),
|
|
420
420
|
shortMessage: a.value(`validations.typeMismatch.${h}.preview`)
|
|
421
421
|
};
|
|
422
422
|
}
|
|
423
|
-
const
|
|
424
|
-
value: (
|
|
423
|
+
const c = {
|
|
424
|
+
value: (m = t.props.modelValue) == null ? void 0 : m.toString(),
|
|
425
425
|
n: ((y = t.props.modelValue) == null ? void 0 : y.toString().length) ?? 0,
|
|
426
426
|
minLength: t.props.minlength,
|
|
427
427
|
maxLength: t.props.maxlength
|
|
428
428
|
};
|
|
429
429
|
return {
|
|
430
|
-
longMessage: a.value(`validations.${
|
|
431
|
-
shortMessage: a.value(`validations.${
|
|
430
|
+
longMessage: a.value(`validations.${r}.fullError`, c),
|
|
431
|
+
shortMessage: a.value(`validations.${r}.preview`)
|
|
432
432
|
};
|
|
433
433
|
});
|
|
434
434
|
return {
|
|
@@ -438,7 +438,7 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
438
438
|
vCustomValidity: n,
|
|
439
439
|
errorMessages: l
|
|
440
440
|
};
|
|
441
|
-
}, Ia = { class: "onyx-checkbox__container" }, La = ["aria-label", "title", "indeterminate", "disabled", "required", "value", "autofocus"],
|
|
441
|
+
}, Ia = { class: "onyx-checkbox__container" }, La = ["aria-label", "title", "indeterminate", "disabled", "required", "value", "autofocus"], Ve = /* @__PURE__ */ k({
|
|
442
442
|
__name: "OnyxCheckbox",
|
|
443
443
|
props: {
|
|
444
444
|
density: {},
|
|
@@ -458,31 +458,31 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
458
458
|
},
|
|
459
459
|
emits: ["update:modelValue", "validityChange"],
|
|
460
460
|
setup(t, { emit: a }) {
|
|
461
|
-
const e = t, o = a, n =
|
|
461
|
+
const e = t, o = a, n = f({
|
|
462
462
|
get: () => e.modelValue,
|
|
463
|
-
set: (
|
|
464
|
-
}), { requiredMarkerClass: l, requiredTypeClass:
|
|
465
|
-
return (
|
|
463
|
+
set: (p) => o("update:modelValue", p)
|
|
464
|
+
}), { requiredMarkerClass: l, requiredTypeClass: r } = _e(e), { densityClass: u } = D(e), { vCustomValidity: c } = le({ props: e, emit: o });
|
|
465
|
+
return (p, m) => e.skeleton ? (s(), d("div", {
|
|
466
466
|
key: 0,
|
|
467
|
-
class: g(["onyx-checkbox-skeleton",
|
|
467
|
+
class: g(["onyx-checkbox-skeleton", i(u)])
|
|
468
468
|
}, [
|
|
469
|
-
|
|
469
|
+
M(R, { class: "onyx-checkbox-skeleton__input" }),
|
|
470
470
|
e.hideLabel ? _("", !0) : (s(), x(R, {
|
|
471
471
|
key: 0,
|
|
472
472
|
class: "onyx-checkbox-skeleton__label"
|
|
473
473
|
}))
|
|
474
|
-
], 2)) : (s(),
|
|
474
|
+
], 2)) : (s(), d("label", {
|
|
475
475
|
key: 1,
|
|
476
|
-
class: g(["onyx-checkbox", [r
|
|
476
|
+
class: g(["onyx-checkbox", [i(r), i(u)]])
|
|
477
477
|
}, [
|
|
478
|
-
|
|
479
|
-
e.loading ? (s(), x(
|
|
478
|
+
v("div", Ia, [
|
|
479
|
+
e.loading ? (s(), x(i(Q), {
|
|
480
480
|
key: 0,
|
|
481
481
|
class: "onyx-checkbox__loading",
|
|
482
482
|
type: "circle"
|
|
483
|
-
})) :
|
|
483
|
+
})) : j((s(), d("input", {
|
|
484
484
|
key: 1,
|
|
485
|
-
"onUpdate:modelValue":
|
|
485
|
+
"onUpdate:modelValue": m[0] || (m[0] = (y) => n.value = y),
|
|
486
486
|
"aria-label": e.hideLabel ? e.label : void 0,
|
|
487
487
|
title: e.hideLabel ? e.label : void 0,
|
|
488
488
|
class: "onyx-checkbox__input",
|
|
@@ -493,26 +493,26 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
493
493
|
value: e.value,
|
|
494
494
|
autofocus: e.autofocus
|
|
495
495
|
}, null, 8, La)), [
|
|
496
|
-
[
|
|
497
|
-
[
|
|
496
|
+
[ot, n.value],
|
|
497
|
+
[i(c)]
|
|
498
498
|
])
|
|
499
499
|
]),
|
|
500
|
-
e.hideLabel ? _("", !0) : (s(),
|
|
501
|
-
|
|
500
|
+
e.hideLabel ? _("", !0) : (s(), d(z, { key: 0 }, [
|
|
501
|
+
v("p", {
|
|
502
502
|
class: g(["onyx-checkbox__label", [
|
|
503
503
|
`onyx-truncation-${e.truncation}`,
|
|
504
504
|
// shows the required marker inline for multiline labels
|
|
505
|
-
e.truncation === "multiline" ?
|
|
505
|
+
e.truncation === "multiline" ? i(l) : void 0
|
|
506
506
|
]])
|
|
507
|
-
},
|
|
508
|
-
e.truncation === "ellipsis" ? (s(),
|
|
507
|
+
}, S(e.label), 3),
|
|
508
|
+
e.truncation === "ellipsis" ? (s(), d("div", {
|
|
509
509
|
key: 0,
|
|
510
|
-
class: g(["onyx-checkbox__marker", [
|
|
510
|
+
class: g(["onyx-checkbox__marker", [i(l)]])
|
|
511
511
|
}, null, 2)) : _("", !0)
|
|
512
512
|
], 64))
|
|
513
513
|
], 2));
|
|
514
514
|
}
|
|
515
|
-
}), Aa = (t, a) =>
|
|
515
|
+
}), Aa = (t, a) => f(() => {
|
|
516
516
|
const e = a.value.filter(
|
|
517
517
|
(n) => t.value.includes(n)
|
|
518
518
|
), o = e.length === t.value.length;
|
|
@@ -520,7 +520,7 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
520
520
|
modelValue: o,
|
|
521
521
|
indeterminate: !o && t.value.length && e.length ? !0 : void 0
|
|
522
522
|
};
|
|
523
|
-
}),
|
|
523
|
+
}), ut = (t, a, e) => ({
|
|
524
524
|
/**
|
|
525
525
|
* Current "select all" checkbox state.
|
|
526
526
|
* - checked if all options are checked
|
|
@@ -536,14 +536,14 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
536
536
|
*/
|
|
537
537
|
handleChange: (o) => {
|
|
538
538
|
const n = a.value.filter(
|
|
539
|
-
(
|
|
539
|
+
(r) => !t.value.includes(r)
|
|
540
540
|
), l = o ? n.concat(t.value) : n;
|
|
541
541
|
e(l);
|
|
542
542
|
}
|
|
543
543
|
}), Ha = ["disabled"], Da = {
|
|
544
544
|
key: 0,
|
|
545
545
|
class: "onyx-checkbox-group__label"
|
|
546
|
-
},
|
|
546
|
+
}, Tn = /* @__PURE__ */ k({
|
|
547
547
|
__name: "OnyxCheckboxGroup",
|
|
548
548
|
props: {
|
|
549
549
|
density: {},
|
|
@@ -558,55 +558,55 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
558
558
|
},
|
|
559
559
|
emits: ["update:modelValue"],
|
|
560
560
|
setup(t, { emit: a }) {
|
|
561
|
-
const e = t, { densityClass: o } = D(e), n = a, { t: l } = P(),
|
|
562
|
-
const h = y ? [...e.modelValue,
|
|
561
|
+
const e = t, { densityClass: o } = D(e), n = a, { t: l } = P(), r = (m, y) => {
|
|
562
|
+
const h = y ? [...e.modelValue, m] : e.modelValue.filter((w) => w !== m);
|
|
563
563
|
n("update:modelValue", h);
|
|
564
|
-
}, u =
|
|
565
|
-
() => e.options.filter((
|
|
566
|
-
),
|
|
564
|
+
}, u = f(
|
|
565
|
+
() => e.options.filter((m) => !m.disabled && !m.skeleton).map(({ value: m }) => m)
|
|
566
|
+
), c = ut(
|
|
567
567
|
u,
|
|
568
|
-
|
|
569
|
-
(
|
|
570
|
-
),
|
|
568
|
+
f(() => e.modelValue),
|
|
569
|
+
(m) => n("update:modelValue", m)
|
|
570
|
+
), p = f(() => {
|
|
571
571
|
var y;
|
|
572
|
-
const
|
|
573
|
-
return typeof e.withCheckAll == "boolean" ?
|
|
572
|
+
const m = l.value("selections.selectAll");
|
|
573
|
+
return typeof e.withCheckAll == "boolean" ? m : ((y = e.withCheckAll) == null ? void 0 : y.label) ?? m;
|
|
574
574
|
});
|
|
575
|
-
return (
|
|
576
|
-
class: g(["onyx-checkbox-group",
|
|
575
|
+
return (m, y) => (s(), d("fieldset", {
|
|
576
|
+
class: g(["onyx-checkbox-group", i(o)]),
|
|
577
577
|
disabled: e.disabled
|
|
578
578
|
}, [
|
|
579
|
-
e.headline ? (s(),
|
|
580
|
-
|
|
579
|
+
e.headline ? (s(), d("legend", Da, [
|
|
580
|
+
M(i(ie), { is: "h3" }, {
|
|
581
581
|
default: $(() => [
|
|
582
|
-
U(
|
|
582
|
+
U(S(e.headline), 1)
|
|
583
583
|
]),
|
|
584
584
|
_: 1
|
|
585
585
|
})
|
|
586
586
|
])) : _("", !0),
|
|
587
|
-
|
|
587
|
+
v("div", {
|
|
588
588
|
class: g(["onyx-checkbox-group__content", {
|
|
589
589
|
"onyx-checkbox-group__content--horizontal": e.direction === "horizontal",
|
|
590
590
|
"onyx-checkbox-group__content--vertical": e.direction === "vertical"
|
|
591
591
|
}])
|
|
592
592
|
}, [
|
|
593
|
-
e.skeleton === void 0 ? (s(),
|
|
594
|
-
e.withCheckAll ? (s(), x(
|
|
595
|
-
label:
|
|
593
|
+
e.skeleton === void 0 ? (s(), d(z, { key: 0 }, [
|
|
594
|
+
e.withCheckAll ? (s(), x(Ve, B({ key: 0 }, i(c).state.value, {
|
|
595
|
+
label: p.value,
|
|
596
596
|
value: "all",
|
|
597
597
|
class: "onyx-checkbox-group__option onyx-checkbox-group__check-all",
|
|
598
|
-
"onUpdate:modelValue":
|
|
598
|
+
"onUpdate:modelValue": i(c).handleChange
|
|
599
599
|
}), null, 16, ["label", "onUpdate:modelValue"])) : _("", !0),
|
|
600
|
-
(s(!0),
|
|
600
|
+
(s(!0), d(z, null, X(e.options, (h) => (s(), x(Ve, B({
|
|
601
601
|
key: h.value.toString(),
|
|
602
602
|
ref_for: !0
|
|
603
603
|
}, h, {
|
|
604
604
|
truncation: h.truncation ?? e.truncation,
|
|
605
605
|
"model-value": e.modelValue.includes(h.value),
|
|
606
606
|
class: "onyx-checkbox-group__option",
|
|
607
|
-
"onUpdate:modelValue": (
|
|
607
|
+
"onUpdate:modelValue": (w) => r(h.value, w)
|
|
608
608
|
}), null, 16, ["truncation", "model-value", "onUpdate:modelValue"]))), 128))
|
|
609
|
-
], 64)) : (s(!0),
|
|
609
|
+
], 64)) : (s(!0), d(z, { key: 1 }, X(e.skeleton, (h) => (s(), x(Ve, {
|
|
610
610
|
key: h,
|
|
611
611
|
label: `Skeleton ${h}`,
|
|
612
612
|
value: `skeleton-${h}`,
|
|
@@ -626,73 +626,73 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
626
626
|
},
|
|
627
627
|
emits: ["close"],
|
|
628
628
|
setup(t, { emit: a }) {
|
|
629
|
-
const e = t, o = a, n = E(), { densityClass: l } = D(e),
|
|
630
|
-
var u,
|
|
631
|
-
e.modal ? (u = n.value) == null || u.showModal() : (
|
|
629
|
+
const e = t, o = a, n = E(), { densityClass: l } = D(e), r = () => {
|
|
630
|
+
var u, c;
|
|
631
|
+
e.modal ? (u = n.value) == null || u.showModal() : (c = n.value) == null || c.show();
|
|
632
632
|
};
|
|
633
633
|
return G([n, () => e.open], () => {
|
|
634
634
|
var u;
|
|
635
|
-
e.open ?
|
|
635
|
+
e.open ? r() : (u = n.value) == null || u.close();
|
|
636
636
|
}), G(
|
|
637
637
|
() => e.modal,
|
|
638
638
|
() => {
|
|
639
639
|
var u;
|
|
640
|
-
(u = n.value) != null && u.open && (n.value.close(),
|
|
640
|
+
(u = n.value) != null && u.open && (n.value.close(), r());
|
|
641
641
|
}
|
|
642
|
-
), (u,
|
|
642
|
+
), (u, c) => e.open ? (s(), d("dialog", {
|
|
643
643
|
key: 0,
|
|
644
644
|
ref_key: "dialogRef",
|
|
645
645
|
ref: n,
|
|
646
|
-
class: g(["onyx-dialog",
|
|
646
|
+
class: g(["onyx-dialog", i(l), "onyx-truncation-multiline"]),
|
|
647
647
|
"aria-modal": e.modal,
|
|
648
648
|
"aria-label": e.label,
|
|
649
649
|
role: e.alert ? "alertdialog" : void 0,
|
|
650
|
-
onCancel:
|
|
650
|
+
onCancel: c[0] || (c[0] = Pe((p) => o("close"), ["prevent"]))
|
|
651
651
|
}, [
|
|
652
652
|
b(u.$slots, "default")
|
|
653
653
|
], 42, Pa)) : _("", !0);
|
|
654
654
|
}
|
|
655
|
-
}),
|
|
655
|
+
}), dt = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M25.899 6.1C23.166 3.367 19.583 2 16 2S8.834 3.367 6.101 6.1c-5.467 5.467-5.467 14.332 0 19.799C8.834 28.633 12.417 30 16 30s7.166-1.367 9.899-4.101c5.468-5.467 5.468-14.331 0-19.799m-1.414 18.385C22.219 26.752 19.205 28 16 28s-6.219-1.248-8.485-3.515C5.248 22.219 4 19.205 4 16s1.248-6.219 3.515-8.485C9.781 5.248 12.795 4 16 4s6.219 1.248 8.485 3.515S28 12.795 28 16s-1.248 6.219-3.515 8.485"/><path d="M20.814 9.771 16 14.586l-4.814-4.815-1.415 1.414L14.586 16l-4.815 4.814 1.415 1.415L16 17.414l4.814 4.815 1.415-1.415L17.414 16l4.815-4.815z"/></svg>', za = { class: "onyx-empty" }, Ra = { class: "onyx-empty__label onyx-text onyx-truncation-multiline" }, pt = /* @__PURE__ */ k({
|
|
656
656
|
__name: "OnyxEmpty",
|
|
657
657
|
setup(t) {
|
|
658
|
-
return (a, e) => (s(),
|
|
658
|
+
return (a, e) => (s(), d("div", za, [
|
|
659
659
|
b(a.$slots, "icon", {}, () => [
|
|
660
|
-
|
|
661
|
-
icon:
|
|
660
|
+
M(A, {
|
|
661
|
+
icon: i(dt),
|
|
662
662
|
size: "48px"
|
|
663
663
|
}, null, 8, ["icon"])
|
|
664
664
|
]),
|
|
665
|
-
|
|
665
|
+
v("div", Ra, [
|
|
666
666
|
b(a.$slots, "default")
|
|
667
667
|
])
|
|
668
668
|
]));
|
|
669
669
|
}
|
|
670
|
-
}), Ua = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M12.2 10.55v2h5.836l-8.193 8.193 1.414 1.414 8.193-8.193V19.8h2v-9.25z"/></svg>', Fa = (t) => /^http(s?):\/\//.test(t),
|
|
670
|
+
}), Ua = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M12.2 10.55v2h5.836l-8.193 8.193 1.414 1.414 8.193-8.193V19.8h2v-9.25z"/></svg>', Fa = (t) => /^http(s?):\/\//.test(t), Re = /* @__PURE__ */ k({
|
|
671
671
|
__name: "OnyxExternalLinkIcon",
|
|
672
672
|
props: {
|
|
673
673
|
href: {},
|
|
674
674
|
withExternalIcon: { type: [Boolean, String], default: "auto" }
|
|
675
675
|
},
|
|
676
676
|
setup(t) {
|
|
677
|
-
const a = t, e =
|
|
677
|
+
const a = t, e = f(() => {
|
|
678
678
|
const o = a.withExternalIcon;
|
|
679
679
|
return o !== "auto" ? o : Fa(a.href ?? "");
|
|
680
680
|
});
|
|
681
681
|
return (o, n) => e.value ? (s(), x(A, {
|
|
682
682
|
key: 0,
|
|
683
683
|
class: "onyx-external-link-icon",
|
|
684
|
-
icon:
|
|
684
|
+
icon: i(Ua),
|
|
685
685
|
size: "16px"
|
|
686
686
|
}, null, 8, ["icon"])) : _("", !0);
|
|
687
687
|
}
|
|
688
|
-
}),
|
|
688
|
+
}), ie = /* @__PURE__ */ k({
|
|
689
689
|
__name: "OnyxHeadline",
|
|
690
690
|
props: {
|
|
691
691
|
is: {}
|
|
692
692
|
},
|
|
693
693
|
setup(t) {
|
|
694
694
|
const a = t;
|
|
695
|
-
return (e, o) => (s(), x(
|
|
695
|
+
return (e, o) => (s(), x(ue(a.is), {
|
|
696
696
|
class: g(["onyx-headline", `onyx-headline--${a.is}`])
|
|
697
697
|
}, {
|
|
698
698
|
default: $(() => [
|
|
@@ -701,7 +701,7 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
701
701
|
_: 3
|
|
702
702
|
}, 8, ["class"]));
|
|
703
703
|
}
|
|
704
|
-
}),
|
|
704
|
+
}), In = ["h1", "h2", "h3", "h4", "h5", "h6"], Ln = ["12px", "16px", "24px", "32px", "48px", "64px", "96px"], qa = ["aria-label", "title", "type", "disabled", "autofocus"], Za = /* @__PURE__ */ k({
|
|
705
705
|
__name: "OnyxIconButton",
|
|
706
706
|
props: {
|
|
707
707
|
density: {},
|
|
@@ -717,22 +717,22 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
717
717
|
emits: ["click"],
|
|
718
718
|
setup(t, { emit: a }) {
|
|
719
719
|
const e = t, { densityClass: o } = D(e), n = a;
|
|
720
|
-
return (l,
|
|
720
|
+
return (l, r) => e.skeleton ? (s(), x(R, {
|
|
721
721
|
key: 0,
|
|
722
|
-
class: g(["onyx-icon-button-skeleton",
|
|
723
|
-
}, null, 8, ["class"])) : (s(),
|
|
722
|
+
class: g(["onyx-icon-button-skeleton", i(o)])
|
|
723
|
+
}, null, 8, ["class"])) : (s(), d("button", {
|
|
724
724
|
key: 1,
|
|
725
725
|
class: g(["onyx-icon-button", [
|
|
726
726
|
`onyx-icon-button--${e.color}`,
|
|
727
727
|
{ "onyx-icon-button--loading": e.loading },
|
|
728
|
-
|
|
728
|
+
i(o)
|
|
729
729
|
]]),
|
|
730
730
|
"aria-label": e.label,
|
|
731
731
|
title: e.label,
|
|
732
732
|
type: e.type,
|
|
733
733
|
disabled: e.disabled || e.loading,
|
|
734
734
|
autofocus: e.autofocus,
|
|
735
|
-
onClick:
|
|
735
|
+
onClick: r[0] || (r[0] = (u) => n("click"))
|
|
736
736
|
}, [
|
|
737
737
|
e.loading ? (s(), x(Q, {
|
|
738
738
|
key: 0,
|
|
@@ -743,15 +743,15 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
743
743
|
}, null, 8, ["icon"])) : b(l.$slots, "default", { key: 2 })
|
|
744
744
|
], 10, qa));
|
|
745
745
|
}
|
|
746
|
-
}),
|
|
746
|
+
}), mt = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M16 2C8.268 2 2 8.268 2 16s6.268 14 14 14 14-6.268 14-14S23.732 2 16 2m0 26C9.383 28 4 22.617 4 16S9.383 4 16 4s12 5.383 12 12-5.383 12-12 12"/><path d="M15 8h2v2h-2zm0 5h2v11h-2z"/></svg>', ne = (t) => t, Ga = /* @__PURE__ */ (() => {
|
|
747
747
|
let t = 1;
|
|
748
748
|
return () => t++;
|
|
749
|
-
})(),
|
|
749
|
+
})(), K = (t) => `${t}-${Ga()}`, Ka = (t, a) => Object.entries(t).every(
|
|
750
750
|
([e, o]) => a[e] === o
|
|
751
751
|
), ja = (t, a) => typeof a == "string" ? t.key === a : Ka(
|
|
752
752
|
{ altKey: !1, ctrlKey: !1, metaKey: !1, shiftKey: !1, ...a },
|
|
753
753
|
t
|
|
754
|
-
),
|
|
754
|
+
), He = (t) => !Wa.has(t), Ya = [
|
|
755
755
|
"Unidentified",
|
|
756
756
|
"Alt",
|
|
757
757
|
"AltGraph",
|
|
@@ -1059,126 +1059,126 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
1059
1059
|
"MediaPreviousTrack",
|
|
1060
1060
|
"Power",
|
|
1061
1061
|
"Unidentified"
|
|
1062
|
-
], Wa = new Set(Ya), oe =
|
|
1062
|
+
], Wa = new Set(Ya), oe = Et(/* @__PURE__ */ new Map()), Xa = (t, a) => {
|
|
1063
1063
|
if (a != null && a.size) {
|
|
1064
1064
|
oe.set(t, a);
|
|
1065
1065
|
return;
|
|
1066
1066
|
}
|
|
1067
|
-
oe.delete(t), document.removeEventListener(t,
|
|
1068
|
-
},
|
|
1067
|
+
oe.delete(t), document.removeEventListener(t, yt);
|
|
1068
|
+
}, Xe = (t, a) => {
|
|
1069
1069
|
const e = oe.get(t);
|
|
1070
1070
|
e == null || e.delete(a), Xa(t, e);
|
|
1071
1071
|
}, Ja = (t, a) => {
|
|
1072
1072
|
const e = oe.get(t) ?? /* @__PURE__ */ new Set();
|
|
1073
|
-
e.add(a), oe.set(t, e), document.addEventListener(t,
|
|
1074
|
-
},
|
|
1073
|
+
e.add(a), oe.set(t, e), document.addEventListener(t, yt);
|
|
1074
|
+
}, yt = (t) => {
|
|
1075
1075
|
var e;
|
|
1076
1076
|
const a = t.type;
|
|
1077
1077
|
(e = oe.get(a)) == null || e.forEach((o) => o(t));
|
|
1078
|
-
},
|
|
1078
|
+
}, ht = ({
|
|
1079
1079
|
type: t,
|
|
1080
1080
|
listener: a,
|
|
1081
1081
|
disabled: e
|
|
1082
1082
|
}) => {
|
|
1083
|
-
|
|
1083
|
+
Ne(
|
|
1084
1084
|
() => J(
|
|
1085
|
-
() => e != null && e.value ?
|
|
1085
|
+
() => e != null && e.value ? Xe(t, a) : Ja(t, a)
|
|
1086
1086
|
)
|
|
1087
|
-
), ye(() =>
|
|
1088
|
-
},
|
|
1089
|
-
|
|
1090
|
-
var
|
|
1091
|
-
!((
|
|
1087
|
+
), ye(() => Xe(t, a));
|
|
1088
|
+
}, ft = ({ element: t, onOutsideClick: a, disabled: e }) => {
|
|
1089
|
+
ht({ type: "click", listener: ({ target: n }) => {
|
|
1090
|
+
var r;
|
|
1091
|
+
!((r = t.value) != null && r.contains(n)) && a();
|
|
1092
1092
|
}, disabled: e });
|
|
1093
|
-
},
|
|
1093
|
+
}, vt = (t, a) => {
|
|
1094
1094
|
let e;
|
|
1095
1095
|
return (...o) => {
|
|
1096
1096
|
clearTimeout(e), e = setTimeout(() => t(...o), a);
|
|
1097
1097
|
};
|
|
1098
|
-
},
|
|
1098
|
+
}, _t = (t, a = 500) => {
|
|
1099
1099
|
let e = "";
|
|
1100
|
-
const o =
|
|
1100
|
+
const o = vt(() => e = "", a);
|
|
1101
1101
|
return (n) => {
|
|
1102
|
-
|
|
1102
|
+
He(n.key) && (o(), e = `${e}${n.key}`, t(e));
|
|
1103
1103
|
};
|
|
1104
1104
|
}, Qa = ne(
|
|
1105
1105
|
(t) => {
|
|
1106
|
-
const a =
|
|
1106
|
+
const a = f(() => i(t.multiple) ?? !1), e = /* @__PURE__ */ new Map(), o = (c) => (e.has(c) || e.set(c, K("listbox-option")), e.get(c)), n = E(!1);
|
|
1107
1107
|
J(() => {
|
|
1108
|
-
var
|
|
1108
|
+
var p;
|
|
1109
1109
|
if (t.activeOption.value == null || !n.value && !t.controlled)
|
|
1110
1110
|
return;
|
|
1111
|
-
const
|
|
1112
|
-
(
|
|
1111
|
+
const c = o(t.activeOption.value);
|
|
1112
|
+
(p = document.getElementById(c)) == null || p.scrollIntoView({ block: "nearest", inline: "nearest" });
|
|
1113
1113
|
});
|
|
1114
|
-
const l =
|
|
1115
|
-
var
|
|
1116
|
-
return (
|
|
1117
|
-
}),
|
|
1118
|
-
var
|
|
1119
|
-
switch (
|
|
1114
|
+
const l = _t((c) => {
|
|
1115
|
+
var p;
|
|
1116
|
+
return (p = t.onTypeAhead) == null ? void 0 : p.call(t, c);
|
|
1117
|
+
}), r = (c) => {
|
|
1118
|
+
var p, m, y, h, w, V, T;
|
|
1119
|
+
switch (c.key) {
|
|
1120
1120
|
case " ":
|
|
1121
|
-
|
|
1121
|
+
c.preventDefault(), t.activeOption.value != null && ((p = t.onSelect) == null || p.call(t, t.activeOption.value));
|
|
1122
1122
|
break;
|
|
1123
1123
|
case "ArrowUp":
|
|
1124
|
-
if (
|
|
1125
|
-
(
|
|
1124
|
+
if (c.preventDefault(), t.activeOption.value == null) {
|
|
1125
|
+
(m = t.onActivateLast) == null || m.call(t);
|
|
1126
1126
|
return;
|
|
1127
1127
|
}
|
|
1128
1128
|
(y = t.onActivatePrevious) == null || y.call(t, t.activeOption.value);
|
|
1129
1129
|
break;
|
|
1130
1130
|
case "ArrowDown":
|
|
1131
|
-
if (
|
|
1131
|
+
if (c.preventDefault(), t.activeOption.value == null) {
|
|
1132
1132
|
(h = t.onActivateFirst) == null || h.call(t);
|
|
1133
1133
|
return;
|
|
1134
1134
|
}
|
|
1135
|
-
(
|
|
1135
|
+
(w = t.onActivateNext) == null || w.call(t, t.activeOption.value);
|
|
1136
1136
|
break;
|
|
1137
1137
|
case "Home":
|
|
1138
|
-
|
|
1138
|
+
c.preventDefault(), (V = t.onActivateFirst) == null || V.call(t);
|
|
1139
1139
|
break;
|
|
1140
1140
|
case "End":
|
|
1141
|
-
|
|
1141
|
+
c.preventDefault(), (T = t.onActivateLast) == null || T.call(t);
|
|
1142
1142
|
break;
|
|
1143
1143
|
default:
|
|
1144
|
-
l(
|
|
1144
|
+
l(c);
|
|
1145
1145
|
}
|
|
1146
1146
|
};
|
|
1147
1147
|
return {
|
|
1148
1148
|
elements: {
|
|
1149
|
-
listbox:
|
|
1149
|
+
listbox: f(
|
|
1150
1150
|
() => t.controlled ? {
|
|
1151
1151
|
role: "listbox",
|
|
1152
1152
|
"aria-multiselectable": a.value,
|
|
1153
|
-
"aria-label":
|
|
1153
|
+
"aria-label": i(t.label),
|
|
1154
1154
|
tabindex: "-1"
|
|
1155
1155
|
} : {
|
|
1156
1156
|
role: "listbox",
|
|
1157
1157
|
"aria-multiselectable": a.value,
|
|
1158
|
-
"aria-label":
|
|
1158
|
+
"aria-label": i(t.label),
|
|
1159
1159
|
tabindex: "0",
|
|
1160
1160
|
"aria-activedescendant": t.activeOption.value != null ? o(t.activeOption.value) : void 0,
|
|
1161
1161
|
onFocus: () => n.value = !0,
|
|
1162
1162
|
onBlur: () => n.value = !1,
|
|
1163
|
-
onKeydown:
|
|
1163
|
+
onKeydown: r
|
|
1164
1164
|
}
|
|
1165
1165
|
),
|
|
1166
|
-
group:
|
|
1166
|
+
group: f(() => (c) => ({
|
|
1167
1167
|
role: "group",
|
|
1168
|
-
"aria-label":
|
|
1168
|
+
"aria-label": c.label
|
|
1169
1169
|
})),
|
|
1170
|
-
option:
|
|
1171
|
-
const
|
|
1170
|
+
option: f(() => (c) => {
|
|
1171
|
+
const p = c.selected ?? !1;
|
|
1172
1172
|
return {
|
|
1173
|
-
id: o(
|
|
1173
|
+
id: o(c.value),
|
|
1174
1174
|
role: "option",
|
|
1175
|
-
"aria-label":
|
|
1176
|
-
"aria-disabled":
|
|
1177
|
-
"aria-checked": a.value ?
|
|
1178
|
-
"aria-selected": a.value ? void 0 :
|
|
1175
|
+
"aria-label": c.label,
|
|
1176
|
+
"aria-disabled": c.disabled,
|
|
1177
|
+
"aria-checked": a.value ? p : void 0,
|
|
1178
|
+
"aria-selected": a.value ? void 0 : p,
|
|
1179
1179
|
onClick: () => {
|
|
1180
|
-
var
|
|
1181
|
-
return !
|
|
1180
|
+
var m;
|
|
1181
|
+
return !c.disabled && ((m = t.onSelect) == null ? void 0 : m.call(t, c.value));
|
|
1182
1182
|
}
|
|
1183
1183
|
};
|
|
1184
1184
|
})
|
|
@@ -1191,12 +1191,12 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
1191
1191
|
}
|
|
1192
1192
|
};
|
|
1193
1193
|
}
|
|
1194
|
-
),
|
|
1194
|
+
), xt = ["ArrowDown", "ArrowUp", " ", "Enter", "Home", "End"], bt = [
|
|
1195
1195
|
"Escape",
|
|
1196
1196
|
{ key: "ArrowUp", altKey: !0 },
|
|
1197
1197
|
"Enter",
|
|
1198
1198
|
"Tab"
|
|
1199
|
-
], eo = ["Enter", " "], to = ["Enter"], ao = (t, a) =>
|
|
1199
|
+
], eo = ["Enter", " "], to = ["Enter"], ao = (t, a) => De(t, a ? to : eo), De = (t, a) => a.some((e) => ja(t, e)), oo = ne(
|
|
1200
1200
|
({
|
|
1201
1201
|
inputValue: t,
|
|
1202
1202
|
autocomplete: a,
|
|
@@ -1204,33 +1204,33 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
1204
1204
|
onTypeAhead: o,
|
|
1205
1205
|
multiple: n,
|
|
1206
1206
|
label: l,
|
|
1207
|
-
listLabel:
|
|
1207
|
+
listLabel: r,
|
|
1208
1208
|
isExpanded: u,
|
|
1209
|
-
activeOption:
|
|
1210
|
-
onToggle:
|
|
1211
|
-
onSelect:
|
|
1209
|
+
activeOption: c,
|
|
1210
|
+
onToggle: p,
|
|
1211
|
+
onSelect: m,
|
|
1212
1212
|
onActivateFirst: y,
|
|
1213
1213
|
onActivateLast: h,
|
|
1214
|
-
onActivateNext:
|
|
1214
|
+
onActivateNext: w,
|
|
1215
1215
|
onActivatePrevious: V,
|
|
1216
1216
|
templateRef: T
|
|
1217
1217
|
}) => {
|
|
1218
|
-
const ee =
|
|
1219
|
-
const
|
|
1220
|
-
L.value !== "none" && (e == null || e(
|
|
1221
|
-
},
|
|
1222
|
-
|
|
1223
|
-
},
|
|
1218
|
+
const ee = K("comboBox-control"), L = f(() => i(a)), H = f(() => i(u)), Y = f(() => i(n)), se = (O) => {
|
|
1219
|
+
const Me = O.target;
|
|
1220
|
+
L.value !== "none" && (e == null || e(Me.value));
|
|
1221
|
+
}, be = _t((O) => o == null ? void 0 : o(O)), de = (O) => {
|
|
1222
|
+
m == null || m(O), i(Y) || p == null || p();
|
|
1223
|
+
}, ge = (O) => {
|
|
1224
1224
|
switch (O.key) {
|
|
1225
1225
|
case "ArrowUp":
|
|
1226
|
-
if (O.preventDefault(),
|
|
1226
|
+
if (O.preventDefault(), c.value == null)
|
|
1227
1227
|
return h == null ? void 0 : h();
|
|
1228
|
-
V == null || V(
|
|
1228
|
+
V == null || V(c.value);
|
|
1229
1229
|
break;
|
|
1230
1230
|
case "ArrowDown":
|
|
1231
|
-
if (O.preventDefault(),
|
|
1231
|
+
if (O.preventDefault(), c.value == null)
|
|
1232
1232
|
return y == null ? void 0 : y();
|
|
1233
|
-
|
|
1233
|
+
w == null || w(c.value);
|
|
1234
1234
|
break;
|
|
1235
1235
|
case "Home":
|
|
1236
1236
|
O.preventDefault(), y == null || y();
|
|
@@ -1239,47 +1239,47 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
1239
1239
|
O.preventDefault(), h == null || h();
|
|
1240
1240
|
break;
|
|
1241
1241
|
}
|
|
1242
|
-
},
|
|
1243
|
-
if (O.key === "Enter" && O.preventDefault(), !H.value &&
|
|
1244
|
-
return
|
|
1245
|
-
if (ao(O,
|
|
1246
|
-
return
|
|
1247
|
-
if (H.value &&
|
|
1248
|
-
return
|
|
1249
|
-
if (L.value === "none" &&
|
|
1250
|
-
return !H.value && (
|
|
1251
|
-
if (L.value !== "none" &&
|
|
1252
|
-
!H.value && (
|
|
1242
|
+
}, ke = (O) => {
|
|
1243
|
+
if (O.key === "Enter" && O.preventDefault(), !H.value && De(O, xt))
|
|
1244
|
+
return p == null || p(), O.key === " " && O.preventDefault(), O.key === "End" ? h == null ? void 0 : h() : y == null ? void 0 : y();
|
|
1245
|
+
if (ao(O, Y.value))
|
|
1246
|
+
return de(c.value);
|
|
1247
|
+
if (H.value && De(O, bt))
|
|
1248
|
+
return p == null ? void 0 : p();
|
|
1249
|
+
if (L.value === "none" && He(O.key))
|
|
1250
|
+
return !H.value && (p == null || p()), be(O);
|
|
1251
|
+
if (L.value !== "none" && He(O.key)) {
|
|
1252
|
+
!H.value && (p == null || p());
|
|
1253
1253
|
return;
|
|
1254
1254
|
}
|
|
1255
|
-
return
|
|
1256
|
-
},
|
|
1255
|
+
return ge(O);
|
|
1256
|
+
}, re = L.value !== "none" ? {
|
|
1257
1257
|
"aria-autocomplete": L.value,
|
|
1258
1258
|
type: "text"
|
|
1259
1259
|
} : null, {
|
|
1260
|
-
elements: { option:
|
|
1261
|
-
internals: { getOptionId:
|
|
1260
|
+
elements: { option: pe, group: we, listbox: Ce },
|
|
1261
|
+
internals: { getOptionId: $e }
|
|
1262
1262
|
} = Qa({
|
|
1263
|
-
label:
|
|
1264
|
-
multiple:
|
|
1263
|
+
label: r,
|
|
1264
|
+
multiple: Y,
|
|
1265
1265
|
controlled: !0,
|
|
1266
|
-
activeOption:
|
|
1267
|
-
onSelect:
|
|
1266
|
+
activeOption: c,
|
|
1267
|
+
onSelect: de
|
|
1268
1268
|
});
|
|
1269
|
-
return
|
|
1269
|
+
return ft({
|
|
1270
1270
|
element: T,
|
|
1271
1271
|
onOutsideClick() {
|
|
1272
|
-
H.value && (
|
|
1272
|
+
H.value && (p == null || p(!0));
|
|
1273
1273
|
}
|
|
1274
1274
|
}), {
|
|
1275
1275
|
elements: {
|
|
1276
|
-
option:
|
|
1277
|
-
group:
|
|
1276
|
+
option: pe,
|
|
1277
|
+
group: we,
|
|
1278
1278
|
/**
|
|
1279
1279
|
* The listbox associated with the combobox.
|
|
1280
1280
|
*/
|
|
1281
|
-
listbox:
|
|
1282
|
-
...
|
|
1281
|
+
listbox: f(() => ({
|
|
1282
|
+
...Ce.value,
|
|
1283
1283
|
id: ee,
|
|
1284
1284
|
// preventDefault to not lose focus of the combobox
|
|
1285
1285
|
onMousedown: (O) => O.preventDefault()
|
|
@@ -1288,99 +1288,99 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
1288
1288
|
* An input that controls another element, that can dynamically pop-up to help the user set the value of the input.
|
|
1289
1289
|
* The input MAY be either a single-line text field that supports editing and typing or an element that only displays the current value of the combobox.
|
|
1290
1290
|
*/
|
|
1291
|
-
input:
|
|
1291
|
+
input: f(() => ({
|
|
1292
1292
|
value: t.value,
|
|
1293
1293
|
role: "combobox",
|
|
1294
1294
|
"aria-expanded": H.value,
|
|
1295
1295
|
"aria-controls": ee,
|
|
1296
|
-
"aria-label":
|
|
1297
|
-
"aria-activedescendant":
|
|
1298
|
-
onInput:
|
|
1299
|
-
onKeydown:
|
|
1300
|
-
...
|
|
1296
|
+
"aria-label": i(l),
|
|
1297
|
+
"aria-activedescendant": c.value != null ? $e(c.value) : void 0,
|
|
1298
|
+
onInput: se,
|
|
1299
|
+
onKeydown: ke,
|
|
1300
|
+
...re
|
|
1301
1301
|
})),
|
|
1302
1302
|
/**
|
|
1303
1303
|
* An optional button to control the visibility of the popup.
|
|
1304
1304
|
*/
|
|
1305
|
-
button:
|
|
1305
|
+
button: f(() => ({
|
|
1306
1306
|
tabindex: "-1",
|
|
1307
|
-
onClick: () =>
|
|
1307
|
+
onClick: () => p == null ? void 0 : p()
|
|
1308
1308
|
}))
|
|
1309
1309
|
}
|
|
1310
1310
|
};
|
|
1311
1311
|
}
|
|
1312
1312
|
), lo = ne(
|
|
1313
1313
|
({ isExpanded: t, onToggle: a }) => {
|
|
1314
|
-
const e =
|
|
1315
|
-
|
|
1314
|
+
const e = K("menu-button-root"), o = K("menu-button-list"), n = E(), l = K("menu-button-button");
|
|
1315
|
+
ht({
|
|
1316
1316
|
type: "keydown",
|
|
1317
|
-
listener: (
|
|
1318
|
-
disabled:
|
|
1317
|
+
listener: (p) => p.key === "Escape" && t.value && a(),
|
|
1318
|
+
disabled: f(() => !t.value)
|
|
1319
1319
|
});
|
|
1320
|
-
const
|
|
1321
|
-
(
|
|
1320
|
+
const r = vt(
|
|
1321
|
+
(p) => t.value !== p && a(),
|
|
1322
1322
|
200
|
|
1323
|
-
), u = (
|
|
1324
|
-
const
|
|
1323
|
+
), u = (p) => {
|
|
1324
|
+
const m = document.activeElement, y = (m == null ? void 0 : m.closest('[role="menu"]')) || n.value;
|
|
1325
1325
|
if (!y) return;
|
|
1326
1326
|
const h = [...y.querySelectorAll('[role="menuitem"]')];
|
|
1327
|
-
let
|
|
1328
|
-
if (
|
|
1329
|
-
const T = h.indexOf(
|
|
1330
|
-
switch (
|
|
1327
|
+
let w = 0;
|
|
1328
|
+
if (m) {
|
|
1329
|
+
const T = h.indexOf(m);
|
|
1330
|
+
switch (p) {
|
|
1331
1331
|
case "next":
|
|
1332
|
-
|
|
1332
|
+
w = T + 1;
|
|
1333
1333
|
break;
|
|
1334
1334
|
case "prev":
|
|
1335
|
-
|
|
1335
|
+
w = T - 1;
|
|
1336
1336
|
break;
|
|
1337
1337
|
case "first":
|
|
1338
|
-
|
|
1338
|
+
w = 0;
|
|
1339
1339
|
break;
|
|
1340
1340
|
case "last":
|
|
1341
|
-
|
|
1341
|
+
w = h.length - 1;
|
|
1342
1342
|
break;
|
|
1343
1343
|
}
|
|
1344
1344
|
}
|
|
1345
|
-
const V = h[
|
|
1345
|
+
const V = h[w];
|
|
1346
1346
|
V == null || V.focus();
|
|
1347
1347
|
};
|
|
1348
1348
|
return {
|
|
1349
1349
|
elements: {
|
|
1350
1350
|
root: {
|
|
1351
1351
|
id: e,
|
|
1352
|
-
onKeydown: (
|
|
1353
|
-
switch (
|
|
1352
|
+
onKeydown: (p) => {
|
|
1353
|
+
switch (p.key) {
|
|
1354
1354
|
case "ArrowDown":
|
|
1355
1355
|
case "ArrowRight":
|
|
1356
|
-
|
|
1356
|
+
p.preventDefault(), u("next");
|
|
1357
1357
|
break;
|
|
1358
1358
|
case "ArrowUp":
|
|
1359
1359
|
case "ArrowLeft":
|
|
1360
|
-
|
|
1360
|
+
p.preventDefault(), u("prev");
|
|
1361
1361
|
break;
|
|
1362
1362
|
case "Home":
|
|
1363
|
-
|
|
1363
|
+
p.preventDefault(), u("first");
|
|
1364
1364
|
break;
|
|
1365
1365
|
case "End":
|
|
1366
|
-
|
|
1366
|
+
p.preventDefault(), u("last");
|
|
1367
1367
|
break;
|
|
1368
1368
|
case " ":
|
|
1369
|
-
|
|
1369
|
+
p.preventDefault(), p.target.click();
|
|
1370
1370
|
break;
|
|
1371
1371
|
case "Escape":
|
|
1372
|
-
|
|
1372
|
+
p.preventDefault(), t.value && a();
|
|
1373
1373
|
break;
|
|
1374
1374
|
}
|
|
1375
1375
|
},
|
|
1376
|
-
onMouseover: () =>
|
|
1377
|
-
onMouseout: () =>
|
|
1378
|
-
onFocusout: (
|
|
1379
|
-
var
|
|
1380
|
-
(
|
|
1376
|
+
onMouseover: () => r(!0),
|
|
1377
|
+
onMouseout: () => r(!1),
|
|
1378
|
+
onFocusout: (p) => {
|
|
1379
|
+
var m;
|
|
1380
|
+
(m = document.getElementById(e)) != null && m.contains(p.relatedTarget) || t.value && a();
|
|
1381
1381
|
}
|
|
1382
1382
|
},
|
|
1383
|
-
button:
|
|
1383
|
+
button: f(
|
|
1384
1384
|
() => ({
|
|
1385
1385
|
"aria-controls": o,
|
|
1386
1386
|
"aria-expanded": t.value,
|
|
@@ -1396,11 +1396,11 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
1396
1396
|
"aria-labelledby": l,
|
|
1397
1397
|
onClick: () => t.value && a()
|
|
1398
1398
|
},
|
|
1399
|
-
...
|
|
1399
|
+
...gt().elements
|
|
1400
1400
|
}
|
|
1401
1401
|
};
|
|
1402
1402
|
}
|
|
1403
|
-
),
|
|
1403
|
+
), gt = ne(() => ({
|
|
1404
1404
|
elements: {
|
|
1405
1405
|
listItem: {
|
|
1406
1406
|
role: "none"
|
|
@@ -1417,23 +1417,23 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
1417
1417
|
*/
|
|
1418
1418
|
clamp: (t, a, e) => Math.max(Math.min(t, e), a)
|
|
1419
1419
|
}, so = ne(({ navigationName: t }) => {
|
|
1420
|
-
const a =
|
|
1420
|
+
const a = K("nav"), e = () => {
|
|
1421
1421
|
const n = document.getElementById(a);
|
|
1422
1422
|
return n ? [...n.querySelectorAll("button[aria-expanded][aria-controls]")] : [];
|
|
1423
1423
|
}, o = (n, l) => {
|
|
1424
|
-
const
|
|
1424
|
+
const r = e(), u = r.indexOf(n);
|
|
1425
1425
|
if (u === -1) return;
|
|
1426
|
-
const
|
|
1426
|
+
const c = no.clamp(
|
|
1427
1427
|
u + (l === "next" ? 1 : -1),
|
|
1428
1428
|
0,
|
|
1429
|
-
|
|
1429
|
+
r.length - 1
|
|
1430
1430
|
);
|
|
1431
|
-
|
|
1431
|
+
r[c].focus();
|
|
1432
1432
|
};
|
|
1433
1433
|
return {
|
|
1434
1434
|
elements: {
|
|
1435
1435
|
nav: {
|
|
1436
|
-
"aria-label":
|
|
1436
|
+
"aria-label": i(t),
|
|
1437
1437
|
id: a,
|
|
1438
1438
|
onKeydown: (n) => {
|
|
1439
1439
|
switch (n.key) {
|
|
@@ -1449,25 +1449,25 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
1449
1449
|
}
|
|
1450
1450
|
};
|
|
1451
1451
|
}), ro = ne((t) => {
|
|
1452
|
-
const a = E(), e =
|
|
1452
|
+
const a = E(), e = K("tooltip"), o = E(!1);
|
|
1453
1453
|
let n;
|
|
1454
|
-
const l =
|
|
1455
|
-
const h =
|
|
1454
|
+
const l = f(() => {
|
|
1455
|
+
const h = i(t.open);
|
|
1456
1456
|
return typeof h != "object" ? 200 : h.debounce;
|
|
1457
|
-
}),
|
|
1458
|
-
const h =
|
|
1457
|
+
}), r = f(() => {
|
|
1458
|
+
const h = i(t.open);
|
|
1459
1459
|
return typeof h != "object" ? h : h.type;
|
|
1460
|
-
}), u =
|
|
1460
|
+
}), u = f({
|
|
1461
1461
|
get: () => o.value,
|
|
1462
1462
|
set: (h) => {
|
|
1463
1463
|
clearTimeout(n), n = setTimeout(() => {
|
|
1464
1464
|
o.value = h;
|
|
1465
1465
|
}, l.value);
|
|
1466
1466
|
}
|
|
1467
|
-
}),
|
|
1467
|
+
}), c = f(() => typeof r.value == "boolean" ? r.value : u.value), p = () => {
|
|
1468
1468
|
o.value = !o.value;
|
|
1469
|
-
},
|
|
1470
|
-
if (
|
|
1469
|
+
}, m = f(() => {
|
|
1470
|
+
if (r.value === "hover")
|
|
1471
1471
|
return {
|
|
1472
1472
|
onMouseover: () => u.value = !0,
|
|
1473
1473
|
onMouseout: () => u.value = !1,
|
|
@@ -1477,11 +1477,11 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
1477
1477
|
}), y = (h) => {
|
|
1478
1478
|
h.key === "Escape" && (o.value = !1);
|
|
1479
1479
|
};
|
|
1480
|
-
return
|
|
1480
|
+
return ft({
|
|
1481
1481
|
element: a,
|
|
1482
1482
|
onOutsideClick: () => o.value = !1,
|
|
1483
|
-
disabled:
|
|
1484
|
-
}),
|
|
1483
|
+
disabled: f(() => r.value !== "click")
|
|
1484
|
+
}), Ne(() => {
|
|
1485
1485
|
document.addEventListener("keydown", y);
|
|
1486
1486
|
}), ye(() => {
|
|
1487
1487
|
document.removeEventListener("keydown", y);
|
|
@@ -1490,23 +1490,23 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
1490
1490
|
root: {
|
|
1491
1491
|
ref: a
|
|
1492
1492
|
},
|
|
1493
|
-
trigger:
|
|
1493
|
+
trigger: f(() => ({
|
|
1494
1494
|
"aria-describedby": e,
|
|
1495
|
-
onClick:
|
|
1496
|
-
...
|
|
1495
|
+
onClick: r.value === "click" ? p : void 0,
|
|
1496
|
+
...m.value
|
|
1497
1497
|
})),
|
|
1498
|
-
tooltip:
|
|
1498
|
+
tooltip: f(() => ({
|
|
1499
1499
|
role: "tooltip",
|
|
1500
1500
|
id: e,
|
|
1501
1501
|
tabindex: "-1",
|
|
1502
|
-
...
|
|
1502
|
+
...m.value
|
|
1503
1503
|
}))
|
|
1504
1504
|
},
|
|
1505
1505
|
state: {
|
|
1506
|
-
isVisible:
|
|
1506
|
+
isVisible: c
|
|
1507
1507
|
}
|
|
1508
1508
|
};
|
|
1509
|
-
}),
|
|
1509
|
+
}), kt = /* @__PURE__ */ k({
|
|
1510
1510
|
__name: "OnyxTooltip",
|
|
1511
1511
|
props: {
|
|
1512
1512
|
text: {},
|
|
@@ -1521,15 +1521,15 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
1521
1521
|
elements: { root: e, trigger: o, tooltip: n },
|
|
1522
1522
|
state: { isVisible: l }
|
|
1523
1523
|
} = ro({
|
|
1524
|
-
open:
|
|
1524
|
+
open: f(() => a.open)
|
|
1525
1525
|
});
|
|
1526
|
-
return (
|
|
1527
|
-
|
|
1526
|
+
return (r, u) => (s(), d("div", B({ class: "onyx-tooltip-wrapper" }, i(e)), [
|
|
1527
|
+
v("div", B(i(n), {
|
|
1528
1528
|
class: ["onyx-tooltip onyx-text--small onyx-truncation-multiline", {
|
|
1529
1529
|
"onyx-tooltip--danger": a.color === "danger",
|
|
1530
1530
|
"onyx-tooltip--bottom": a.position === "bottom",
|
|
1531
1531
|
"onyx-tooltip--fit-parent": a.fitParent,
|
|
1532
|
-
"onyx-tooltip--hidden": !
|
|
1532
|
+
"onyx-tooltip--hidden": !i(l)
|
|
1533
1533
|
}]
|
|
1534
1534
|
}), [
|
|
1535
1535
|
a.icon ? (s(), x(A, {
|
|
@@ -1537,16 +1537,16 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
1537
1537
|
icon: a.icon,
|
|
1538
1538
|
size: "16px"
|
|
1539
1539
|
}, null, 8, ["icon"])) : _("", !0),
|
|
1540
|
-
b(
|
|
1541
|
-
|
|
1540
|
+
b(r.$slots, "tooltip", {}, () => [
|
|
1541
|
+
v("span", null, S(a.text), 1)
|
|
1542
1542
|
])
|
|
1543
1543
|
], 16),
|
|
1544
|
-
|
|
1545
|
-
b(
|
|
1544
|
+
v("div", te(ae(i(o))), [
|
|
1545
|
+
b(r.$slots, "default")
|
|
1546
1546
|
], 16)
|
|
1547
1547
|
], 16));
|
|
1548
1548
|
}
|
|
1549
|
-
}), io = ["aria-label"],
|
|
1549
|
+
}), io = ["aria-label"], Be = /* @__PURE__ */ k({
|
|
1550
1550
|
__name: "OnyxInfoTooltip",
|
|
1551
1551
|
props: {
|
|
1552
1552
|
text: {},
|
|
@@ -1555,43 +1555,44 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
1555
1555
|
},
|
|
1556
1556
|
setup(t) {
|
|
1557
1557
|
const a = t, { t: e } = P();
|
|
1558
|
-
return (o, n) => (s(), x(
|
|
1558
|
+
return (o, n) => (s(), x(kt, {
|
|
1559
1559
|
class: "onyx-info-tooltip",
|
|
1560
1560
|
text: a.text,
|
|
1561
1561
|
position: a.position
|
|
1562
1562
|
}, {
|
|
1563
1563
|
default: $(() => [
|
|
1564
|
-
|
|
1564
|
+
v("button", {
|
|
1565
1565
|
type: "button",
|
|
1566
|
-
"aria-label": a.label ||
|
|
1566
|
+
"aria-label": a.label || i(e)("showTooltip.info"),
|
|
1567
1567
|
class: "onyx-info-tooltip__trigger"
|
|
1568
1568
|
}, [
|
|
1569
|
-
|
|
1569
|
+
M(A, { icon: i(mt) }, null, 8, ["icon"])
|
|
1570
1570
|
], 8, io)
|
|
1571
1571
|
]),
|
|
1572
1572
|
_: 1
|
|
1573
1573
|
}, 8, ["text", "position"]));
|
|
1574
1574
|
}
|
|
1575
|
-
}), co = {
|
|
1576
|
-
key: 2,
|
|
1577
|
-
class: "onyx-form-element__optional"
|
|
1578
|
-
}, mo = {
|
|
1575
|
+
}), co = {
|
|
1579
1576
|
key: 0,
|
|
1577
|
+
class: "onyx-form-element__label onyx-text--small"
|
|
1578
|
+
}, uo = ["for"], po = {
|
|
1579
|
+
key: 1,
|
|
1580
1580
|
class: "onyx-form-element__footer onyx-text--small"
|
|
1581
|
-
},
|
|
1581
|
+
}, mo = {
|
|
1582
1582
|
key: 0,
|
|
1583
1583
|
class: "onyx-form-element__error-message onyx-truncation-ellipsis"
|
|
1584
|
-
},
|
|
1584
|
+
}, yo = {
|
|
1585
1585
|
key: 2,
|
|
1586
1586
|
class: "onyx-form-element__message onyx-truncation-ellipsis"
|
|
1587
|
-
},
|
|
1587
|
+
}, ho = {
|
|
1588
1588
|
key: 4,
|
|
1589
1589
|
class: "onyx-form-element__counter"
|
|
1590
|
-
},
|
|
1590
|
+
}, Ue = /* @__PURE__ */ k({
|
|
1591
1591
|
__name: "OnyxFormElement",
|
|
1592
1592
|
props: {
|
|
1593
1593
|
required: { type: Boolean, default: !1 },
|
|
1594
1594
|
requiredMarker: {},
|
|
1595
|
+
id: { default: K("onyx-form-element") },
|
|
1595
1596
|
modelValue: {},
|
|
1596
1597
|
label: {},
|
|
1597
1598
|
labelTooltip: {},
|
|
@@ -1603,66 +1604,68 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
1603
1604
|
withCounter: { type: Boolean }
|
|
1604
1605
|
},
|
|
1605
1606
|
setup(t) {
|
|
1606
|
-
const a = t, { t: e } = P(), { requiredMarkerClass: o, requiredTypeClass: n } =
|
|
1607
|
-
var
|
|
1607
|
+
const a = t, { t: e } = P(), { requiredMarkerClass: o, requiredTypeClass: n } = _e(a), l = f(() => {
|
|
1608
|
+
var r;
|
|
1608
1609
|
if (a.withCounter && a.maxlength)
|
|
1609
|
-
return `${(((
|
|
1610
|
+
return `${(((r = a.modelValue) == null ? void 0 : r.toString()) || "").length}/${a.maxlength}`;
|
|
1610
1611
|
});
|
|
1611
|
-
return (
|
|
1612
|
-
var
|
|
1613
|
-
return s(),
|
|
1614
|
-
class: g(["onyx-form-element",
|
|
1612
|
+
return (r, u) => {
|
|
1613
|
+
var c, p;
|
|
1614
|
+
return s(), d("div", {
|
|
1615
|
+
class: g(["onyx-form-element", i(n)])
|
|
1615
1616
|
}, [
|
|
1616
|
-
|
|
1617
|
-
|
|
1617
|
+
a.hideLabel ? _("", !0) : (s(), d("div", co, [
|
|
1618
|
+
v("label", {
|
|
1619
|
+
for: a.id,
|
|
1620
|
+
class: "onyx-truncation-ellipsis"
|
|
1621
|
+
}, S(a.label), 9, uo),
|
|
1622
|
+
a.required ? (s(), d("span", {
|
|
1618
1623
|
key: 0,
|
|
1619
|
-
class: g([
|
|
1620
|
-
},
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
a.message || (d = i.errorMessages) != null && d.shortMessage || l.value ? (s(), p("div", mo, [
|
|
1638
|
-
i.errorMessages ? (s(), p("span", yo, M(i.errorMessages.shortMessage), 1)) : _("", !0),
|
|
1639
|
-
(m = i.errorMessages) != null && m.longMessage ? (s(), x(Ve, {
|
|
1624
|
+
class: g([a.required ? i(o) : void 0])
|
|
1625
|
+
}, null, 2)) : _("", !0),
|
|
1626
|
+
a.labelTooltip ? (s(), x(Be, {
|
|
1627
|
+
key: 1,
|
|
1628
|
+
class: "onyx-form-element__label-tooltip",
|
|
1629
|
+
text: a.labelTooltip
|
|
1630
|
+
}, null, 8, ["text"])) : _("", !0),
|
|
1631
|
+
a.required ? _("", !0) : (s(), d("span", {
|
|
1632
|
+
key: 2,
|
|
1633
|
+
class: g([a.required ? void 0 : i(o)])
|
|
1634
|
+
}, null, 2))
|
|
1635
|
+
])),
|
|
1636
|
+
b(r.$slots, "default", {
|
|
1637
|
+
id: a.id
|
|
1638
|
+
}),
|
|
1639
|
+
a.message || (c = r.errorMessages) != null && c.shortMessage || l.value ? (s(), d("div", po, [
|
|
1640
|
+
r.errorMessages ? (s(), d("span", mo, S(r.errorMessages.shortMessage), 1)) : _("", !0),
|
|
1641
|
+
(p = r.errorMessages) != null && p.longMessage ? (s(), x(Be, {
|
|
1640
1642
|
key: 1,
|
|
1641
1643
|
class: "onyx-form-element__error-tooltip",
|
|
1642
1644
|
color: "danger",
|
|
1643
1645
|
position: "bottom",
|
|
1644
|
-
label:
|
|
1645
|
-
text:
|
|
1646
|
+
label: i(e)("showTooltip.error"),
|
|
1647
|
+
text: r.errorMessages.longMessage
|
|
1646
1648
|
}, null, 8, ["label", "text"])) : _("", !0),
|
|
1647
|
-
a.message ? (s(),
|
|
1648
|
-
a.messageTooltip ? (s(), x(
|
|
1649
|
+
a.message ? (s(), d("span", yo, S(a.message), 1)) : _("", !0),
|
|
1650
|
+
a.messageTooltip ? (s(), x(Be, {
|
|
1649
1651
|
key: 3,
|
|
1650
1652
|
class: "onyx-form-element__message-tooltip",
|
|
1651
1653
|
position: "bottom",
|
|
1652
1654
|
text: a.messageTooltip
|
|
1653
1655
|
}, null, 8, ["text"])) : _("", !0),
|
|
1654
|
-
l.value ? (s(),
|
|
1656
|
+
l.value ? (s(), d("span", ho, S(l.value), 1)) : _("", !0)
|
|
1655
1657
|
])) : _("", !0)
|
|
1656
1658
|
], 2);
|
|
1657
1659
|
};
|
|
1658
1660
|
}
|
|
1659
|
-
}), fo = { class: "onyx-input__wrapper" },
|
|
1661
|
+
}), fo = { class: "onyx-input__wrapper" }, vo = ["id", "placeholder", "type", "required", "autocapitalize", "autocomplete", "autofocus", "name", "pattern", "readonly", "disabled", "minlength", "maxlength", "aria-label", "title"], An = /* @__PURE__ */ k({
|
|
1660
1662
|
__name: "OnyxInput",
|
|
1661
1663
|
props: {
|
|
1662
1664
|
density: {},
|
|
1663
1665
|
required: { type: Boolean, default: !1 },
|
|
1664
1666
|
requiredMarker: {},
|
|
1665
1667
|
customError: {},
|
|
1668
|
+
id: {},
|
|
1666
1669
|
label: {},
|
|
1667
1670
|
labelTooltip: {},
|
|
1668
1671
|
hideLabel: { type: Boolean },
|
|
@@ -1686,57 +1689,58 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
1686
1689
|
},
|
|
1687
1690
|
emits: ["update:modelValue", "change", "focus", "blur", "validityChange"],
|
|
1688
1691
|
setup(t, { emit: a }) {
|
|
1689
|
-
const e = t, o = a, { vCustomValidity: n, errorMessages: l } = le({ props: e, emit: o }), { densityClass:
|
|
1692
|
+
const e = t, o = a, { vCustomValidity: n, errorMessages: l } = le({ props: e, emit: o }), { densityClass: r } = D(e), u = f({
|
|
1690
1693
|
get: () => e.modelValue,
|
|
1691
|
-
set: (
|
|
1692
|
-
}),
|
|
1693
|
-
const y =
|
|
1694
|
+
set: (m) => o("update:modelValue", m)
|
|
1695
|
+
}), c = (m) => {
|
|
1696
|
+
const y = m.target.value;
|
|
1694
1697
|
o("change", y);
|
|
1695
|
-
},
|
|
1696
|
-
return (
|
|
1698
|
+
}, p = f(() => e.pattern instanceof RegExp ? e.pattern.source : e.pattern);
|
|
1699
|
+
return (m, y) => e.skeleton ? (s(), d("div", {
|
|
1697
1700
|
key: 0,
|
|
1698
|
-
class: g(["onyx-input-skeleton", r
|
|
1701
|
+
class: g(["onyx-input-skeleton", i(r)])
|
|
1699
1702
|
}, [
|
|
1700
1703
|
e.hideLabel ? _("", !0) : (s(), x(R, {
|
|
1701
1704
|
key: 0,
|
|
1702
1705
|
class: "onyx-input-skeleton__label"
|
|
1703
1706
|
})),
|
|
1704
|
-
|
|
1705
|
-
], 2)) : (s(),
|
|
1707
|
+
M(R, { class: "onyx-input-skeleton__input" })
|
|
1708
|
+
], 2)) : (s(), d("div", {
|
|
1706
1709
|
key: 1,
|
|
1707
|
-
class: g(["onyx-input", r
|
|
1710
|
+
class: g(["onyx-input", i(r)])
|
|
1708
1711
|
}, [
|
|
1709
|
-
|
|
1710
|
-
default: $(() => [
|
|
1711
|
-
|
|
1712
|
+
M(Ue, B(e, { "error-messages": i(l) }), {
|
|
1713
|
+
default: $(({ id: h }) => [
|
|
1714
|
+
v("div", fo, [
|
|
1712
1715
|
e.loading ? (s(), x(Q, {
|
|
1713
1716
|
key: 0,
|
|
1714
1717
|
class: "onyx-input__loading",
|
|
1715
1718
|
type: "circle"
|
|
1716
1719
|
})) : _("", !0),
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
+
j(v("input", {
|
|
1721
|
+
id: h,
|
|
1722
|
+
"onUpdate:modelValue": y[0] || (y[0] = (w) => u.value = w),
|
|
1720
1723
|
placeholder: e.placeholder,
|
|
1724
|
+
class: "onyx-input__native",
|
|
1721
1725
|
type: e.type,
|
|
1722
1726
|
required: e.required,
|
|
1723
1727
|
autocapitalize: e.autocapitalize,
|
|
1724
1728
|
autocomplete: e.autocomplete,
|
|
1725
1729
|
autofocus: e.autofocus,
|
|
1726
1730
|
name: e.name,
|
|
1727
|
-
pattern:
|
|
1731
|
+
pattern: p.value,
|
|
1728
1732
|
readonly: e.readonly,
|
|
1729
1733
|
disabled: e.disabled || e.loading,
|
|
1730
1734
|
minlength: e.minlength,
|
|
1731
1735
|
maxlength: e.maxlength,
|
|
1732
1736
|
"aria-label": e.hideLabel ? e.label : void 0,
|
|
1733
1737
|
title: e.hideLabel ? e.label : void 0,
|
|
1734
|
-
onChange:
|
|
1735
|
-
onFocus: y[1] || (y[1] = (
|
|
1736
|
-
onBlur: y[2] || (y[2] = (
|
|
1737
|
-
}, null, 40,
|
|
1738
|
-
[
|
|
1739
|
-
[
|
|
1738
|
+
onChange: c,
|
|
1739
|
+
onFocus: y[1] || (y[1] = (w) => o("focus")),
|
|
1740
|
+
onBlur: y[2] || (y[2] = (w) => o("blur"))
|
|
1741
|
+
}, null, 40, vo), [
|
|
1742
|
+
[Tt, u.value],
|
|
1743
|
+
[i(n)]
|
|
1740
1744
|
])
|
|
1741
1745
|
])
|
|
1742
1746
|
]),
|
|
@@ -1744,21 +1748,21 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
1744
1748
|
}, 16, ["error-messages"])
|
|
1745
1749
|
], 2));
|
|
1746
1750
|
}
|
|
1747
|
-
}),
|
|
1751
|
+
}), Hn = ["email", "password", "search", "tel", "text", "url"], Dn = ["none", "sentences", "words", "characters"], wt = /* @__PURE__ */ k({
|
|
1748
1752
|
__name: "OnyxVisuallyHidden",
|
|
1749
1753
|
props: {
|
|
1750
1754
|
is: { default: "span" }
|
|
1751
1755
|
},
|
|
1752
1756
|
setup(t) {
|
|
1753
1757
|
const a = t;
|
|
1754
|
-
return (e, o) => (s(), x(
|
|
1758
|
+
return (e, o) => (s(), x(ue(a.is), { class: "onyx-visually-hidden" }, {
|
|
1755
1759
|
default: $(() => [
|
|
1756
1760
|
b(e.$slots, "default")
|
|
1757
1761
|
]),
|
|
1758
1762
|
_: 3
|
|
1759
1763
|
}));
|
|
1760
1764
|
}
|
|
1761
|
-
}),
|
|
1765
|
+
}), _o = ["href", "target", "rel"], Pn = /* @__PURE__ */ k({
|
|
1762
1766
|
__name: "OnyxLink",
|
|
1763
1767
|
props: {
|
|
1764
1768
|
href: {},
|
|
@@ -1768,24 +1772,24 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
1768
1772
|
emits: ["click"],
|
|
1769
1773
|
setup(t, { emit: a }) {
|
|
1770
1774
|
const e = t, o = a, { t: n } = P();
|
|
1771
|
-
return (l,
|
|
1775
|
+
return (l, r) => (s(), d("a", {
|
|
1772
1776
|
class: "onyx-link",
|
|
1773
1777
|
href: e.href,
|
|
1774
1778
|
target: e.target,
|
|
1775
1779
|
rel: e.target === "_blank" ? "noreferrer" : void 0,
|
|
1776
|
-
onClick:
|
|
1780
|
+
onClick: r[0] || (r[0] = (u) => o("click"))
|
|
1777
1781
|
}, [
|
|
1778
1782
|
b(l.$slots, "default"),
|
|
1779
|
-
e.target === "_blank" ? (s(), x(
|
|
1783
|
+
e.target === "_blank" ? (s(), x(wt, { key: 0 }, {
|
|
1780
1784
|
default: $(() => [
|
|
1781
|
-
U(
|
|
1785
|
+
U(S(i(n)("link.opensExternally")), 1)
|
|
1782
1786
|
]),
|
|
1783
1787
|
_: 1
|
|
1784
1788
|
})) : _("", !0),
|
|
1785
|
-
|
|
1786
|
-
], 8,
|
|
1789
|
+
M(Re, te(ae(e)), null, 16)
|
|
1790
|
+
], 8, _o));
|
|
1787
1791
|
}
|
|
1788
|
-
}),
|
|
1792
|
+
}), Nn = ["_self", "_blank", "_parent", "_top"], Fe = /* @__PURE__ */ k({
|
|
1789
1793
|
__name: "OnyxListItem",
|
|
1790
1794
|
props: {
|
|
1791
1795
|
density: {},
|
|
@@ -1797,10 +1801,10 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
1797
1801
|
},
|
|
1798
1802
|
setup(t) {
|
|
1799
1803
|
const a = t, { densityClass: e } = D(a);
|
|
1800
|
-
return (o, n) => (s(),
|
|
1804
|
+
return (o, n) => (s(), d("li", {
|
|
1801
1805
|
class: g({
|
|
1802
1806
|
"onyx-list-item": !0,
|
|
1803
|
-
...
|
|
1807
|
+
...i(e),
|
|
1804
1808
|
"onyx-list-item--active": a.active,
|
|
1805
1809
|
[`onyx-list-item--${a.color}`]: a.color,
|
|
1806
1810
|
"onyx-list-item--disabled": a.disabled,
|
|
@@ -1811,10 +1815,10 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
1811
1815
|
b(o.$slots, "default")
|
|
1812
1816
|
], 2));
|
|
1813
1817
|
}
|
|
1814
|
-
}),
|
|
1815
|
-
const t =
|
|
1818
|
+
}), xo = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m28.707 27.293-7.969-7.969A9.95 9.95 0 0 0 23 13c0-5.514-4.486-10-10-10S3 7.486 3 13s4.486 10 10 10c2.397 0 4.599-.85 6.324-2.262l7.969 7.969zM5 13c0-4.411 3.589-8 8-8s8 3.589 8 8-3.589 8-8 8-8-3.589-8-8"/></svg>', qe = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m22.707 10.707-1.414-1.414L16 14.586l-5.293-5.293-1.414 1.414L14.586 16l-5.293 5.293 1.414 1.414L16 17.414l5.293 5.293 1.414-1.414L17.414 16z"/></svg>', Ct = () => {
|
|
1819
|
+
const t = It(), a = f(
|
|
1816
1820
|
() => ({ class: t.class, style: t.style })
|
|
1817
|
-
), e =
|
|
1821
|
+
), e = f(() => {
|
|
1818
1822
|
const o = { ...t };
|
|
1819
1823
|
return delete o.class, delete o.style, o;
|
|
1820
1824
|
});
|
|
@@ -1828,7 +1832,7 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
1828
1832
|
*/
|
|
1829
1833
|
restAttrs: e
|
|
1830
1834
|
};
|
|
1831
|
-
},
|
|
1835
|
+
}, bo = ["aria-label"], go = ["aria-label"], ko = /* @__PURE__ */ k({
|
|
1832
1836
|
inheritAttrs: !1,
|
|
1833
1837
|
__name: "OnyxMiniSearch",
|
|
1834
1838
|
props: {
|
|
@@ -1838,7 +1842,7 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
1838
1842
|
},
|
|
1839
1843
|
emits: ["update:modelValue", "clear"],
|
|
1840
1844
|
setup(t, { expose: a, emit: e }) {
|
|
1841
|
-
const o = t, n = e, { rootAttrs: l, restAttrs:
|
|
1845
|
+
const o = t, n = e, { rootAttrs: l, restAttrs: r } = Ct(), { densityClass: u } = D(o), { t: c } = P(), p = E(), m = f({
|
|
1842
1846
|
get: () => o.modelValue,
|
|
1843
1847
|
set: (y) => n("update:modelValue", y ?? "")
|
|
1844
1848
|
});
|
|
@@ -1848,41 +1852,41 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
1848
1852
|
*/
|
|
1849
1853
|
focus: () => {
|
|
1850
1854
|
var y;
|
|
1851
|
-
return (y =
|
|
1855
|
+
return (y = p.value) == null ? void 0 : y.focus();
|
|
1852
1856
|
}
|
|
1853
|
-
}), (y, h) => (s(),
|
|
1854
|
-
class: ["onyx-mini-search",
|
|
1855
|
-
},
|
|
1856
|
-
|
|
1857
|
+
}), (y, h) => (s(), d("div", B({
|
|
1858
|
+
class: ["onyx-mini-search", i(u)]
|
|
1859
|
+
}, i(l)), [
|
|
1860
|
+
j(v("input", B({
|
|
1857
1861
|
ref_key: "input",
|
|
1858
|
-
ref:
|
|
1859
|
-
"onUpdate:modelValue": h[0] || (h[0] = (
|
|
1862
|
+
ref: p,
|
|
1863
|
+
"onUpdate:modelValue": h[0] || (h[0] = (w) => m.value = w),
|
|
1860
1864
|
class: "onyx-mini-search__input",
|
|
1861
1865
|
placeholder: "Search",
|
|
1862
1866
|
type: "text"
|
|
1863
|
-
}, r
|
|
1867
|
+
}, i(r), {
|
|
1864
1868
|
"aria-label": o.label
|
|
1865
|
-
}), null, 16,
|
|
1866
|
-
[
|
|
1869
|
+
}), null, 16, bo), [
|
|
1870
|
+
[lt, m.value]
|
|
1867
1871
|
]),
|
|
1868
|
-
|
|
1872
|
+
v("button", {
|
|
1869
1873
|
type: "button",
|
|
1870
1874
|
class: "onyx-mini-search__clear",
|
|
1871
|
-
"aria-label":
|
|
1875
|
+
"aria-label": i(c)("select.clearSearch"),
|
|
1872
1876
|
tabindex: "-1",
|
|
1873
|
-
onMousedown: h[1] || (h[1] =
|
|
1877
|
+
onMousedown: h[1] || (h[1] = Pe(() => {
|
|
1874
1878
|
}, ["prevent"])),
|
|
1875
|
-
onClick: h[2] || (h[2] = (
|
|
1879
|
+
onClick: h[2] || (h[2] = (w) => n("clear"))
|
|
1876
1880
|
}, [
|
|
1877
|
-
|
|
1878
|
-
], 40,
|
|
1879
|
-
|
|
1881
|
+
M(A, { icon: i(qe) }, null, 8, ["icon"])
|
|
1882
|
+
], 40, go),
|
|
1883
|
+
M(A, {
|
|
1880
1884
|
class: "onyx-mini-search__icon",
|
|
1881
|
-
icon:
|
|
1885
|
+
icon: i(xo)
|
|
1882
1886
|
}, null, 8, ["icon"])
|
|
1883
1887
|
], 16));
|
|
1884
1888
|
}
|
|
1885
|
-
}),
|
|
1889
|
+
}), wo = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m27.707 5.707-1.414-1.414L16 14.586 5.707 4.293 4.293 5.707 14.586 16 4.293 26.293l1.414 1.414L16 17.414l10.293 10.293 1.414-1.414L17.414 16z"/></svg>', Co = { class: "onyx-mobile-nav-button" }, $o = ["aria-label"], Mo = { class: "onyx-mobile-nav-button__flyout" }, So = { class: "onyx-mobile-nav-button__menu" }, Je = /* @__PURE__ */ k({
|
|
1886
1890
|
__name: "OnyxMobileNavButton",
|
|
1887
1891
|
props: {
|
|
1888
1892
|
label: {},
|
|
@@ -1893,45 +1897,45 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
1893
1897
|
emits: ["update:open"],
|
|
1894
1898
|
setup(t, { emit: a }) {
|
|
1895
1899
|
const e = t, o = a;
|
|
1896
|
-
return (n, l) => (s(),
|
|
1897
|
-
|
|
1900
|
+
return (n, l) => (s(), d("div", Co, [
|
|
1901
|
+
v("button", {
|
|
1898
1902
|
type: "button",
|
|
1899
1903
|
class: g(["onyx-mobile-nav-button__trigger", { "onyx-mobile-nav-button__trigger--active": e.open }]),
|
|
1900
1904
|
"aria-label": e.label,
|
|
1901
|
-
onClick: l[0] || (l[0] = (
|
|
1905
|
+
onClick: l[0] || (l[0] = (r) => o("update:open", !e.open))
|
|
1902
1906
|
}, [
|
|
1903
|
-
|
|
1904
|
-
icon: e.open ?
|
|
1907
|
+
M(A, {
|
|
1908
|
+
icon: e.open ? i(wo) : e.icon
|
|
1905
1909
|
}, null, 8, ["icon"])
|
|
1906
|
-
], 10,
|
|
1907
|
-
e.open ? (s(),
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
e.headline ? (s(), x(
|
|
1910
|
+
], 10, $o),
|
|
1911
|
+
e.open ? (s(), d(z, { key: 0 }, [
|
|
1912
|
+
v("div", Mo, [
|
|
1913
|
+
v("div", So, [
|
|
1914
|
+
e.headline ? (s(), x(ie, {
|
|
1911
1915
|
key: 0,
|
|
1912
1916
|
is: "h2",
|
|
1913
1917
|
class: "onyx-mobile-nav-button__headline"
|
|
1914
1918
|
}, {
|
|
1915
1919
|
default: $(() => [
|
|
1916
|
-
U(
|
|
1920
|
+
U(S(e.headline), 1)
|
|
1917
1921
|
]),
|
|
1918
1922
|
_: 1
|
|
1919
1923
|
})) : _("", !0),
|
|
1920
1924
|
b(n.$slots, "default")
|
|
1921
1925
|
])
|
|
1922
1926
|
]),
|
|
1923
|
-
|
|
1927
|
+
v("div", {
|
|
1924
1928
|
class: "onyx-mobile-nav-button__backdrop",
|
|
1925
1929
|
role: "presentation",
|
|
1926
|
-
onClick: l[1] || (l[1] = (
|
|
1930
|
+
onClick: l[1] || (l[1] = (r) => o("update:open", !1))
|
|
1927
1931
|
})
|
|
1928
1932
|
], 64)) : _("", !0)
|
|
1929
1933
|
]));
|
|
1930
1934
|
}
|
|
1931
|
-
}),
|
|
1935
|
+
}), Vo = ["aria-label"], Bo = ["src", "alt"], Oo = {
|
|
1932
1936
|
key: 1,
|
|
1933
1937
|
class: "onyx-text-small onyx-truncation-ellipsis"
|
|
1934
|
-
},
|
|
1938
|
+
}, Eo = /* @__PURE__ */ k({
|
|
1935
1939
|
__name: "OnyxNavAppArea",
|
|
1936
1940
|
props: {
|
|
1937
1941
|
logoUrl: {},
|
|
@@ -1940,27 +1944,27 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
1940
1944
|
},
|
|
1941
1945
|
emits: ["click"],
|
|
1942
1946
|
setup(t, { emit: a }) {
|
|
1943
|
-
const e = t, o = a, { t: n } = P(), l =
|
|
1944
|
-
return (
|
|
1947
|
+
const e = t, o = a, { t: n } = P(), l = f(() => e.label ?? n.value("navigation.goToHome"));
|
|
1948
|
+
return (r, u) => (s(), d("button", {
|
|
1945
1949
|
type: "button",
|
|
1946
1950
|
class: "onyx-nav-app-area",
|
|
1947
1951
|
"aria-label": l.value,
|
|
1948
|
-
onClick: u[0] || (u[0] = (
|
|
1952
|
+
onClick: u[0] || (u[0] = (c) => o("click"))
|
|
1949
1953
|
}, [
|
|
1950
|
-
b(
|
|
1951
|
-
e.logoUrl ? (s(),
|
|
1954
|
+
b(r.$slots, "default", {}, () => [
|
|
1955
|
+
e.logoUrl ? (s(), d("img", {
|
|
1952
1956
|
key: 0,
|
|
1953
1957
|
src: e.logoUrl,
|
|
1954
|
-
alt:
|
|
1958
|
+
alt: i(n)("navigation.appLogo", { appName: e.appName }),
|
|
1955
1959
|
class: "onyx-nav-app-area__logo",
|
|
1956
1960
|
width: "24",
|
|
1957
1961
|
height: "24"
|
|
1958
|
-
}, null, 8,
|
|
1959
|
-
e.appName ? (s(),
|
|
1962
|
+
}, null, 8, Bo)) : _("", !0),
|
|
1963
|
+
e.appName ? (s(), d("span", Oo, S(e.appName), 1)) : _("", !0)
|
|
1960
1964
|
])
|
|
1961
|
-
], 8,
|
|
1965
|
+
], 8, Vo));
|
|
1962
1966
|
}
|
|
1963
|
-
}),
|
|
1967
|
+
}), To = `<svg width="166" height="104" viewBox="0 0 166 104" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1964
1968
|
<g clip-path="url(#clip0_4499_144781)">
|
|
1965
1969
|
<mask id="mask0_4499_144781" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="83" height="104">
|
|
1966
1970
|
<rect width="83" height="104" fill="#D9D9D9"/>
|
|
@@ -2048,7 +2052,7 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
2048
2052
|
</clipPath>
|
|
2049
2053
|
</defs>
|
|
2050
2054
|
</svg>
|
|
2051
|
-
`,
|
|
2055
|
+
`, Io = `<svg width="166" height="104" viewBox="0 0 166 104" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2052
2056
|
<g clip-path="url(#clip0_4499_144833)">
|
|
2053
2057
|
<path d="M0 4C0 1.79086 1.79086 0 4 0H162C164.209 0 166 1.79086 166 4V100C166 102.209 164.209 104 162 104H4C1.79086 104 0 102.209 0 100V4Z" fill="var(--onyx-color-themed-neutral-1100)"/>
|
|
2054
2058
|
<g filter="url(#filter0_d_4499_144833)">
|
|
@@ -2095,7 +2099,7 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
2095
2099
|
</clipPath>
|
|
2096
2100
|
</defs>
|
|
2097
2101
|
</svg>
|
|
2098
|
-
`,
|
|
2102
|
+
`, Lo = `<svg width="166" height="104" viewBox="0 0 166 104" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2099
2103
|
<g clip-path="url(#clip0_4499_144816)">
|
|
2100
2104
|
<path d="M0 4C0 1.79086 1.79086 0 4 0H162C164.209 0 166 1.79086 166 4V100C166 102.209 164.209 104 162 104H4C1.79086 104 0 102.209 0 100V4Z" fill="white"/>
|
|
2101
2105
|
<g filter="url(#filter0_d_4499_144816)">
|
|
@@ -2142,7 +2146,7 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
2142
2146
|
</clipPath>
|
|
2143
2147
|
</defs>
|
|
2144
2148
|
</svg>
|
|
2145
|
-
`,
|
|
2149
|
+
`, Ao = { class: "onyx-color-scheme-dialog__subtitle onyx-text" }, Ho = ["innerHTML"], Do = ["autofocus", "value", "checked", "aria-label"], Po = { class: "onyx-text--small" }, No = { class: "onyx-color-scheme-dialog__actions" }, zo = /* @__PURE__ */ k({
|
|
2146
2150
|
__name: "OnyxColorSchemeDialog",
|
|
2147
2151
|
props: {
|
|
2148
2152
|
open: { type: Boolean, default: !1 },
|
|
@@ -2153,66 +2157,66 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
2153
2157
|
setup(t, { emit: a }) {
|
|
2154
2158
|
const e = t, o = a, n = E(e.modelValue);
|
|
2155
2159
|
J(() => n.value = e.modelValue);
|
|
2156
|
-
const { t: l } = P(),
|
|
2160
|
+
const { t: l } = P(), r = f(() => [
|
|
2157
2161
|
{
|
|
2158
2162
|
value: "auto",
|
|
2159
|
-
image:
|
|
2163
|
+
image: To,
|
|
2160
2164
|
label: l.value("colorScheme.auto.label"),
|
|
2161
2165
|
description: l.value("colorScheme.auto.description")
|
|
2162
2166
|
},
|
|
2163
2167
|
{
|
|
2164
2168
|
value: "light",
|
|
2165
|
-
image:
|
|
2169
|
+
image: Lo,
|
|
2166
2170
|
label: l.value("colorScheme.light.label"),
|
|
2167
2171
|
description: l.value("colorScheme.light.description")
|
|
2168
2172
|
},
|
|
2169
2173
|
{
|
|
2170
2174
|
value: "dark",
|
|
2171
|
-
image:
|
|
2175
|
+
image: Io,
|
|
2172
2176
|
label: l.value("colorScheme.dark.label"),
|
|
2173
2177
|
description: l.value("colorScheme.dark.description")
|
|
2174
2178
|
}
|
|
2175
|
-
]), u = (
|
|
2176
|
-
const
|
|
2177
|
-
n.value =
|
|
2178
|
-
},
|
|
2179
|
+
]), u = (p) => {
|
|
2180
|
+
const m = p.target;
|
|
2181
|
+
n.value = m.value;
|
|
2182
|
+
}, c = () => {
|
|
2179
2183
|
n.value && (o("update:modelValue", n.value), o("close"));
|
|
2180
2184
|
};
|
|
2181
|
-
return (
|
|
2182
|
-
label:
|
|
2185
|
+
return (p, m) => (s(), x(Na, B({ class: "onyx-color-scheme-dialog" }, e, {
|
|
2186
|
+
label: i(l)("colorScheme.headline"),
|
|
2183
2187
|
modal: "",
|
|
2184
|
-
onClose:
|
|
2188
|
+
onClose: m[1] || (m[1] = (y) => o("close"))
|
|
2185
2189
|
}), {
|
|
2186
2190
|
default: $(() => [
|
|
2187
|
-
|
|
2191
|
+
v("form", {
|
|
2188
2192
|
class: "onyx-color-scheme-dialog__form",
|
|
2189
|
-
onSubmit:
|
|
2193
|
+
onSubmit: Pe(c, ["prevent"])
|
|
2190
2194
|
}, [
|
|
2191
|
-
|
|
2192
|
-
|
|
2195
|
+
v("div", null, [
|
|
2196
|
+
M(ie, { is: "h2" }, {
|
|
2193
2197
|
default: $(() => [
|
|
2194
|
-
U(
|
|
2198
|
+
U(S(i(l)("colorScheme.headline")), 1)
|
|
2195
2199
|
]),
|
|
2196
2200
|
_: 1
|
|
2197
2201
|
}),
|
|
2198
|
-
|
|
2202
|
+
v("span", Ao, S(i(l)("colorScheme.subtitle")), 1)
|
|
2199
2203
|
]),
|
|
2200
|
-
|
|
2204
|
+
v("fieldset", {
|
|
2201
2205
|
class: "onyx-color-scheme-dialog__list",
|
|
2202
2206
|
onChange: u
|
|
2203
2207
|
}, [
|
|
2204
|
-
(s(!0),
|
|
2208
|
+
(s(!0), d(z, null, X(r.value, (y) => (s(), d("label", {
|
|
2205
2209
|
key: y.value,
|
|
2206
2210
|
class: "onyx-color-scheme-dialog__option"
|
|
2207
2211
|
}, [
|
|
2208
|
-
|
|
2212
|
+
v("figure", {
|
|
2209
2213
|
class: "onyx-color-scheme-dialog__image",
|
|
2210
2214
|
innerHTML: y.image
|
|
2211
|
-
}, null, 8,
|
|
2212
|
-
|
|
2213
|
-
|
|
2215
|
+
}, null, 8, Ho),
|
|
2216
|
+
v("div", null, [
|
|
2217
|
+
M(wt, { is: "div" }, {
|
|
2214
2218
|
default: $(() => [
|
|
2215
|
-
|
|
2219
|
+
v("input", {
|
|
2216
2220
|
type: "radio",
|
|
2217
2221
|
name: "color-scheme",
|
|
2218
2222
|
autofocus: e.modelValue === y.value,
|
|
@@ -2220,32 +2224,32 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
2220
2224
|
checked: e.modelValue === y.value,
|
|
2221
2225
|
"aria-label": y.label,
|
|
2222
2226
|
required: ""
|
|
2223
|
-
}, null, 8,
|
|
2227
|
+
}, null, 8, Do)
|
|
2224
2228
|
]),
|
|
2225
2229
|
_: 2
|
|
2226
2230
|
}, 1024),
|
|
2227
|
-
|
|
2231
|
+
M(ie, {
|
|
2228
2232
|
is: "h3",
|
|
2229
2233
|
class: "onyx-color-scheme-dialog__label"
|
|
2230
2234
|
}, {
|
|
2231
2235
|
default: $(() => [
|
|
2232
|
-
U(
|
|
2236
|
+
U(S(y.label), 1)
|
|
2233
2237
|
]),
|
|
2234
2238
|
_: 2
|
|
2235
2239
|
}, 1024),
|
|
2236
|
-
|
|
2240
|
+
v("p", Po, S(y.description), 1)
|
|
2237
2241
|
])
|
|
2238
2242
|
]))), 128))
|
|
2239
2243
|
], 32),
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
label:
|
|
2244
|
+
v("div", No, [
|
|
2245
|
+
M(Le, {
|
|
2246
|
+
label: i(l)("cancel"),
|
|
2243
2247
|
mode: "plain",
|
|
2244
2248
|
color: "neutral",
|
|
2245
|
-
onClick:
|
|
2249
|
+
onClick: m[0] || (m[0] = (y) => o("close"))
|
|
2246
2250
|
}, null, 8, ["label"]),
|
|
2247
|
-
|
|
2248
|
-
label:
|
|
2251
|
+
M(Le, {
|
|
2252
|
+
label: i(l)("apply"),
|
|
2249
2253
|
type: "submit"
|
|
2250
2254
|
}, null, 8, ["label"])
|
|
2251
2255
|
])
|
|
@@ -2254,7 +2258,7 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
2254
2258
|
_: 1
|
|
2255
2259
|
}, 16, ["label"]));
|
|
2256
2260
|
}
|
|
2257
|
-
}),
|
|
2261
|
+
}), Ro = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M15.99 2C8.28 2 2 8.27 2 15.99s6.27 13.99 13.99 13.99 13.99-6.27 13.99-13.99S23.7 2 15.99 2m5.96 3.6c.76.44 1.47.96 2.12 1.55v17.66c-.65.59-1.35 1.11-2.12 1.55zm-2 21.69c-.63.22-1.29.39-1.96.51V4.18c.67.11 1.33.28 1.96.51zm6.11-17.77c1.2 1.87 1.91 4.08 1.91 6.47s-.71 4.6-1.91 6.47V9.53ZM4 15.99C4 9.38 9.38 4 15.99 4v23.97C9.38 27.97 4 22.59 4 15.98Z" style="stroke-width:0"/></svg>', $t = /* @__PURE__ */ k({
|
|
2258
2262
|
__name: "OnyxMenuItem",
|
|
2259
2263
|
props: {
|
|
2260
2264
|
href: {},
|
|
@@ -2266,31 +2270,31 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
2266
2270
|
setup(t, { emit: a }) {
|
|
2267
2271
|
const e = t, o = a, {
|
|
2268
2272
|
elements: { listItem: n, menuItem: l }
|
|
2269
|
-
} =
|
|
2270
|
-
return (
|
|
2273
|
+
} = gt();
|
|
2274
|
+
return (r, u) => (s(), x(Fe, B({
|
|
2271
2275
|
selected: e.active,
|
|
2272
2276
|
active: e.active,
|
|
2273
2277
|
color: e.color,
|
|
2274
2278
|
disabled: e.disabled,
|
|
2275
2279
|
class: "onyx-menu-item"
|
|
2276
|
-
},
|
|
2280
|
+
}, i(n)), {
|
|
2277
2281
|
default: $(() => [
|
|
2278
|
-
(s(), x(
|
|
2282
|
+
(s(), x(ue(e.href ? "a" : "button"), B(
|
|
2279
2283
|
{
|
|
2280
2284
|
class: "onyx-menu-item__trigger",
|
|
2281
2285
|
disabled: !e.href && e.disabled,
|
|
2282
2286
|
href: e.href
|
|
2283
2287
|
},
|
|
2284
|
-
|
|
2288
|
+
i(l)({
|
|
2285
2289
|
active: e.active,
|
|
2286
2290
|
disabled: !e.href && e.disabled
|
|
2287
2291
|
}),
|
|
2288
2292
|
{
|
|
2289
|
-
onClick: u[0] || (u[0] = (
|
|
2293
|
+
onClick: u[0] || (u[0] = (c) => o("click"))
|
|
2290
2294
|
}
|
|
2291
2295
|
), {
|
|
2292
2296
|
default: $(() => [
|
|
2293
|
-
b(
|
|
2297
|
+
b(r.$slots, "default")
|
|
2294
2298
|
]),
|
|
2295
2299
|
_: 3
|
|
2296
2300
|
}, 16, ["disabled", "href"]))
|
|
@@ -2298,7 +2302,7 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
2298
2302
|
_: 3
|
|
2299
2303
|
}, 16, ["selected", "active", "color", "disabled"]));
|
|
2300
2304
|
}
|
|
2301
|
-
}),
|
|
2305
|
+
}), Uo = { class: "onyx-color-scheme-menu-item__value" }, zn = /* @__PURE__ */ k({
|
|
2302
2306
|
__name: "OnyxColorSchemeMenuItem",
|
|
2303
2307
|
props: {
|
|
2304
2308
|
modelValue: {}
|
|
@@ -2306,96 +2310,86 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
2306
2310
|
emits: ["update:modelValue"],
|
|
2307
2311
|
setup(t, { emit: a }) {
|
|
2308
2312
|
const e = t, o = a, { t: n } = P(), l = E(!1);
|
|
2309
|
-
return (
|
|
2313
|
+
return (r, u) => (s(), x($t, {
|
|
2310
2314
|
class: "onyx-color-scheme-menu-item",
|
|
2311
|
-
onClick: u[2] || (u[2] = (
|
|
2315
|
+
onClick: u[2] || (u[2] = (c) => l.value = !0)
|
|
2312
2316
|
}, {
|
|
2313
2317
|
default: $(() => [
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
U(
|
|
2317
|
-
|
|
2318
|
+
M(A, { icon: i(Ro) }, null, 8, ["icon"]),
|
|
2319
|
+
v("div", null, [
|
|
2320
|
+
U(S(i(n)("colorScheme.appearance")) + ": ", 1),
|
|
2321
|
+
v("span", Uo, S(i(n)(`colorScheme.${e.modelValue}.label`)), 1)
|
|
2318
2322
|
]),
|
|
2319
|
-
(s(), x(
|
|
2320
|
-
|
|
2323
|
+
(s(), x(Lt, { to: "body" }, [
|
|
2324
|
+
M(zo, {
|
|
2321
2325
|
"model-value": e.modelValue,
|
|
2322
2326
|
open: l.value,
|
|
2323
|
-
onClose: u[0] || (u[0] = (
|
|
2324
|
-
"onUpdate:modelValue": u[1] || (u[1] = (
|
|
2327
|
+
onClose: u[0] || (u[0] = (c) => l.value = !1),
|
|
2328
|
+
"onUpdate:modelValue": u[1] || (u[1] = (c) => o("update:modelValue", c))
|
|
2325
2329
|
}, null, 8, ["model-value", "open"])
|
|
2326
2330
|
]))
|
|
2327
2331
|
]),
|
|
2328
2332
|
_: 1
|
|
2329
2333
|
}));
|
|
2330
2334
|
}
|
|
2331
|
-
}),
|
|
2332
|
-
const o = v(() => t.value === void 0), n = E(o.value ? a : t.value);
|
|
2333
|
-
return v({
|
|
2334
|
-
set: (l) => {
|
|
2335
|
-
n.value = l, e(l);
|
|
2336
|
-
},
|
|
2337
|
-
get: () => o.value ? n.value : t.value
|
|
2338
|
-
});
|
|
2339
|
-
}, qo = ["aria-label"], Ct = /* @__PURE__ */ k({
|
|
2335
|
+
}), Fo = ["aria-label"], Mt = /* @__PURE__ */ k({
|
|
2340
2336
|
__name: "OnyxFlyoutMenu",
|
|
2341
|
-
props: {
|
|
2342
|
-
open: { type: Boolean, default: void 0 },
|
|
2337
|
+
props: /* @__PURE__ */ he({
|
|
2343
2338
|
label: {}
|
|
2344
|
-
},
|
|
2339
|
+
}, {
|
|
2340
|
+
open: { type: Boolean, default: !1 },
|
|
2341
|
+
openModifiers: {}
|
|
2342
|
+
}),
|
|
2345
2343
|
emits: ["update:open"],
|
|
2346
|
-
setup(t
|
|
2347
|
-
const
|
|
2348
|
-
|
|
2349
|
-
!1,
|
|
2350
|
-
(c) => o("update:open", c)
|
|
2351
|
-
), {
|
|
2352
|
-
elements: { root: i, button: u, menu: d }
|
|
2344
|
+
setup(t) {
|
|
2345
|
+
const a = t, e = fe(t, "open"), o = F(), {
|
|
2346
|
+
elements: { root: n, button: l, menu: r }
|
|
2353
2347
|
} = lo({
|
|
2354
|
-
isExpanded:
|
|
2355
|
-
onToggle: () =>
|
|
2356
|
-
}),
|
|
2357
|
-
var
|
|
2358
|
-
if (!
|
|
2359
|
-
const c =
|
|
2360
|
-
return (c == null ? void 0 : c.type.toString()) === "Symbol(v-fgt)" ? Array.isArray(c == null ? void 0 : c.children) ? (
|
|
2348
|
+
isExpanded: e,
|
|
2349
|
+
onToggle: () => e.value = !e.value
|
|
2350
|
+
}), u = f(() => {
|
|
2351
|
+
var p;
|
|
2352
|
+
if (!o.default) return;
|
|
2353
|
+
const c = o.default().at(0);
|
|
2354
|
+
return (c == null ? void 0 : c.type.toString()) === "Symbol(v-fgt)" ? Array.isArray(c == null ? void 0 : c.children) ? (p = c == null ? void 0 : c.children) == null ? void 0 : p.at(0) : void 0 : c;
|
|
2361
2355
|
});
|
|
2362
|
-
return (c,
|
|
2363
|
-
(s(), x(
|
|
2364
|
-
|
|
2356
|
+
return (c, p) => (s(), d("div", B({ class: "onyx-flyout-menu" }, i(n)), [
|
|
2357
|
+
(s(), x(ue(u.value), te(ae(i(l))), null, 16)),
|
|
2358
|
+
o.options || o.header || o.footer ? j((s(), d("div", {
|
|
2365
2359
|
key: 0,
|
|
2366
|
-
"aria-label":
|
|
2360
|
+
"aria-label": a.label,
|
|
2367
2361
|
class: g({
|
|
2368
|
-
"onyx-flyout-menu__list--with-header": !!
|
|
2369
|
-
"onyx-flyout-menu__list--with-footer": !!
|
|
2362
|
+
"onyx-flyout-menu__list--with-header": !!o.header,
|
|
2363
|
+
"onyx-flyout-menu__list--with-footer": !!o.footer,
|
|
2370
2364
|
"onyx-flyout-menu__list": !0
|
|
2371
2365
|
})
|
|
2372
2366
|
}, [
|
|
2373
2367
|
b(c.$slots, "header"),
|
|
2374
|
-
|
|
2368
|
+
o.options ? (s(), d("ul", B({ key: 0 }, i(r), { class: "onyx-flyout-menu__wrapper onyx-flyout-menu__group" }), [
|
|
2375
2369
|
b(c.$slots, "options")
|
|
2376
2370
|
], 16)) : _("", !0),
|
|
2377
2371
|
b(c.$slots, "footer")
|
|
2378
|
-
], 10,
|
|
2379
|
-
[
|
|
2372
|
+
], 10, Fo)), [
|
|
2373
|
+
[nt, e.value]
|
|
2380
2374
|
]) : _("", !0)
|
|
2381
2375
|
], 16));
|
|
2382
2376
|
}
|
|
2383
|
-
}),
|
|
2377
|
+
}), qo = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m13.207 8.293-1.414 1.414L18.086 16l-6.293 6.293 1.414 1.414L20.914 16z"/></svg>', xe = Symbol(), Zo = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32.04 32.04"><path d="M23.52 15.52H11.93l4.13-4.13-1.42-1.41-6.54 6.54 6.54 6.54 1.42-1.42-4.13-4.12h11.59z"/></svg>', Go = ["aria-orientation"], Ko = /* @__PURE__ */ k({
|
|
2384
2378
|
__name: "OnyxNavSeparator",
|
|
2385
2379
|
props: {
|
|
2386
2380
|
orientation: { default: "vertical" }
|
|
2387
2381
|
},
|
|
2388
2382
|
setup(t) {
|
|
2389
|
-
const a = t, e =
|
|
2390
|
-
return (o, n) => (s(),
|
|
2391
|
-
class: g(["onyx-nav-separator", { "onyx-nav-separator--horizontal": a.orientation === "horizontal" ||
|
|
2383
|
+
const a = t, e = ce(xe);
|
|
2384
|
+
return (o, n) => (s(), d("div", {
|
|
2385
|
+
class: g(["onyx-nav-separator", { "onyx-nav-separator--horizontal": a.orientation === "horizontal" || i(e) }]),
|
|
2392
2386
|
role: "separator",
|
|
2393
2387
|
"aria-orientation": a.orientation
|
|
2394
|
-
}, null, 10,
|
|
2388
|
+
}, null, 10, Go));
|
|
2395
2389
|
}
|
|
2396
|
-
}),
|
|
2390
|
+
}), jo = { role: "presentation" }, Yo = /* @__PURE__ */ k({
|
|
2397
2391
|
__name: "NavButtonLayout",
|
|
2398
|
-
props: /* @__PURE__ */
|
|
2392
|
+
props: /* @__PURE__ */ he({
|
|
2399
2393
|
href: {},
|
|
2400
2394
|
withExternalIcon: { type: [Boolean, String] },
|
|
2401
2395
|
label: {},
|
|
@@ -2407,34 +2401,34 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
2407
2401
|
}),
|
|
2408
2402
|
emits: ["update:mobileChildrenOpen"],
|
|
2409
2403
|
setup(t) {
|
|
2410
|
-
const a = t, e = F(), { t: o } = P(), n =
|
|
2411
|
-
return (l,
|
|
2412
|
-
a.isMobile ? (s(),
|
|
2413
|
-
a.isMobile && n.value ? (s(), x(
|
|
2404
|
+
const a = t, e = F(), { t: o } = P(), n = fe(t, "mobileChildrenOpen");
|
|
2405
|
+
return (l, r) => (s(), d("li", jo, [
|
|
2406
|
+
a.isMobile ? (s(), d(z, { key: 0 }, [
|
|
2407
|
+
a.isMobile && n.value ? (s(), x(Le, {
|
|
2414
2408
|
key: 0,
|
|
2415
|
-
label:
|
|
2409
|
+
label: i(o)("back"),
|
|
2416
2410
|
mode: "plain",
|
|
2417
2411
|
color: "neutral",
|
|
2418
|
-
icon:
|
|
2419
|
-
onClick:
|
|
2412
|
+
icon: i(Zo),
|
|
2413
|
+
onClick: r[0] || (r[0] = (u) => n.value = !1)
|
|
2420
2414
|
}, null, 8, ["label", "icon"])) : _("", !0),
|
|
2421
2415
|
!n.value || a.href ? b(l.$slots, "button", { key: 1 }) : _("", !0),
|
|
2422
|
-
n.value && a.href ? (s(), x(
|
|
2416
|
+
n.value && a.href ? (s(), x(Ko, {
|
|
2423
2417
|
key: 2,
|
|
2424
2418
|
orientation: "horizontal"
|
|
2425
2419
|
})) : _("", !0),
|
|
2426
|
-
|
|
2420
|
+
j(v("ul", {
|
|
2427
2421
|
role: "menu",
|
|
2428
2422
|
class: g(["onyx-nav-button__mobile-children", { "onyx-nav-button__mobile-children--open": n.value }])
|
|
2429
2423
|
}, [
|
|
2430
2424
|
b(l.$slots, "options")
|
|
2431
2425
|
], 2), [
|
|
2432
|
-
[
|
|
2426
|
+
[nt, n.value]
|
|
2433
2427
|
])
|
|
2434
|
-
], 64)) : (s(), x(
|
|
2428
|
+
], 64)) : (s(), x(Mt, {
|
|
2435
2429
|
key: 1,
|
|
2436
|
-
label:
|
|
2437
|
-
},
|
|
2430
|
+
label: i(o)("navItemOptionsLabel", { label: a.label })
|
|
2431
|
+
}, ve({
|
|
2438
2432
|
default: $(() => [
|
|
2439
2433
|
b(l.$slots, "button")
|
|
2440
2434
|
]),
|
|
@@ -2450,7 +2444,7 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
2450
2444
|
]), 1032, ["label"]))
|
|
2451
2445
|
]));
|
|
2452
2446
|
}
|
|
2453
|
-
}),
|
|
2447
|
+
}), Wo = ["aria-label"], Xo = { class: "onyx-truncation-ellipsis" }, Rn = /* @__PURE__ */ k({
|
|
2454
2448
|
__name: "OnyxNavButton",
|
|
2455
2449
|
props: {
|
|
2456
2450
|
href: {},
|
|
@@ -2460,49 +2454,49 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
2460
2454
|
},
|
|
2461
2455
|
emits: ["click"],
|
|
2462
2456
|
setup(t, { emit: a }) {
|
|
2463
|
-
const e = t, o = a, n = F(), l =
|
|
2464
|
-
l != null && l.value && u.value && !
|
|
2457
|
+
const e = t, o = a, n = F(), l = ce(xe), r = E(!1), u = f(() => !!n.children), c = () => {
|
|
2458
|
+
l != null && l.value && u.value && !r.value ? r.value = !0 : e.href && o("click", e.href);
|
|
2465
2459
|
};
|
|
2466
|
-
return (
|
|
2467
|
-
"mobile-children-open":
|
|
2468
|
-
"onUpdate:mobileChildrenOpen":
|
|
2460
|
+
return (p, m) => (s(), x(Yo, B({
|
|
2461
|
+
"mobile-children-open": r.value,
|
|
2462
|
+
"onUpdate:mobileChildrenOpen": m[0] || (m[0] = (y) => r.value = y),
|
|
2469
2463
|
class: ["onyx-nav-button", {
|
|
2470
|
-
"onyx-nav-button--mobile":
|
|
2471
|
-
"onyx-nav-button--active": e.active ||
|
|
2464
|
+
"onyx-nav-button--mobile": i(l),
|
|
2465
|
+
"onyx-nav-button--active": e.active || r.value
|
|
2472
2466
|
}],
|
|
2473
|
-
"is-mobile":
|
|
2474
|
-
}, e),
|
|
2467
|
+
"is-mobile": i(l) ?? !1
|
|
2468
|
+
}, e), ve({
|
|
2475
2469
|
button: $(() => [
|
|
2476
|
-
|
|
2470
|
+
v("button", {
|
|
2477
2471
|
class: "onyx-nav-button__trigger onyx-text",
|
|
2478
2472
|
role: "menuitem",
|
|
2479
2473
|
"aria-label": e.label,
|
|
2480
2474
|
type: "button",
|
|
2481
|
-
onClick:
|
|
2475
|
+
onClick: c
|
|
2482
2476
|
}, [
|
|
2483
|
-
b(
|
|
2484
|
-
|
|
2485
|
-
|
|
2477
|
+
b(p.$slots, "default", {}, () => [
|
|
2478
|
+
v("span", Xo, S(e.label), 1),
|
|
2479
|
+
M(Re, te(ae(e)), null, 16)
|
|
2486
2480
|
]),
|
|
2487
|
-
|
|
2481
|
+
i(l) && u.value && !r.value ? (s(), x(A, {
|
|
2488
2482
|
key: 0,
|
|
2489
2483
|
class: "onyx-nav-button__mobile-chevron",
|
|
2490
|
-
icon:
|
|
2484
|
+
icon: i(qo)
|
|
2491
2485
|
}, null, 8, ["icon"])) : _("", !0)
|
|
2492
|
-
], 8,
|
|
2486
|
+
], 8, Wo)
|
|
2493
2487
|
]),
|
|
2494
2488
|
_: 2
|
|
2495
2489
|
}, [
|
|
2496
2490
|
n.children ? {
|
|
2497
2491
|
name: "options",
|
|
2498
2492
|
fn: $(() => [
|
|
2499
|
-
b(
|
|
2493
|
+
b(p.$slots, "children")
|
|
2500
2494
|
]),
|
|
2501
2495
|
key: "0"
|
|
2502
2496
|
} : void 0
|
|
2503
2497
|
]), 1040, ["mobile-children-open", "class", "is-mobile"]));
|
|
2504
2498
|
}
|
|
2505
|
-
}),
|
|
2499
|
+
}), Un = /* @__PURE__ */ k({
|
|
2506
2500
|
__name: "OnyxNavItem",
|
|
2507
2501
|
props: {
|
|
2508
2502
|
href: {},
|
|
@@ -2513,30 +2507,30 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
2513
2507
|
emits: ["click"],
|
|
2514
2508
|
setup(t, { emit: a }) {
|
|
2515
2509
|
const e = t, o = a;
|
|
2516
|
-
return (n, l) => (s(), x(
|
|
2510
|
+
return (n, l) => (s(), x($t, {
|
|
2517
2511
|
class: "onyx-nav-item",
|
|
2518
2512
|
active: e.active,
|
|
2519
2513
|
href: e.href ?? "javascript:void(0)",
|
|
2520
|
-
onClick: l[0] || (l[0] = (
|
|
2514
|
+
onClick: l[0] || (l[0] = (r) => e.href && o("click", e.href))
|
|
2521
2515
|
}, {
|
|
2522
2516
|
default: $(() => [
|
|
2523
2517
|
b(n.$slots, "default", {}, () => [
|
|
2524
|
-
|
|
2525
|
-
|
|
2518
|
+
v("span", null, S(e.label), 1),
|
|
2519
|
+
M(Re, te(ae(e)), null, 16)
|
|
2526
2520
|
])
|
|
2527
2521
|
]),
|
|
2528
2522
|
_: 3
|
|
2529
2523
|
}, 8, ["active", "href"]));
|
|
2530
2524
|
}
|
|
2531
|
-
}),
|
|
2532
|
-
const a = E(), e = E(
|
|
2525
|
+
}), Jo = (t) => {
|
|
2526
|
+
const a = E(), e = E(Oe(new Date(t.value).getTime())), o = f(() => e.value === 0);
|
|
2533
2527
|
return G(
|
|
2534
2528
|
t,
|
|
2535
2529
|
(n) => {
|
|
2536
2530
|
clearInterval(a.value);
|
|
2537
2531
|
const l = new Date(n).getTime();
|
|
2538
|
-
e.value =
|
|
2539
|
-
e.value =
|
|
2532
|
+
e.value = Oe(l), a.value = setInterval(() => {
|
|
2533
|
+
e.value = Oe(l), o.value && clearInterval(a.value);
|
|
2540
2534
|
}, 1e3);
|
|
2541
2535
|
},
|
|
2542
2536
|
{ immediate: !0 }
|
|
@@ -2550,26 +2544,26 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
2550
2544
|
*/
|
|
2551
2545
|
isEnded: o
|
|
2552
2546
|
};
|
|
2553
|
-
},
|
|
2547
|
+
}, Oe = (t) => {
|
|
2554
2548
|
const a = t - Date.now();
|
|
2555
2549
|
return Math.max(a, 0);
|
|
2556
|
-
},
|
|
2550
|
+
}, St = (t) => {
|
|
2557
2551
|
const a = Math.floor(t / 6e4 / 60), e = Math.floor(t / 6e4 % 60), o = Math.floor(t % 6e4 / 1e3);
|
|
2558
2552
|
return { hours: a, minutes: e, seconds: o };
|
|
2559
|
-
},
|
|
2560
|
-
const { hours: e, minutes: o, seconds: n } =
|
|
2561
|
-
let
|
|
2562
|
-
return o > 0 && (u =
|
|
2563
|
-
},
|
|
2553
|
+
}, Qo = (t, a) => {
|
|
2554
|
+
const { hours: e, minutes: o, seconds: n } = St(t), l = (c) => c.toString().padStart(2, "0");
|
|
2555
|
+
let r = "", u = Ee(a.formatToParts(t, "seconds"));
|
|
2556
|
+
return o > 0 && (u = Ee(a.formatToParts(t, "minutes"))), e > 0 && (u = Ee(a.formatToParts(t, "hours")), r = `${l(e)}:`), `${r}${l(o)}:${l(n)} ${u}`;
|
|
2557
|
+
}, Ee = (t) => {
|
|
2564
2558
|
var a;
|
|
2565
2559
|
return ((a = t.at(-1)) == null ? void 0 : a.value.replace(".", "").trim()) ?? "";
|
|
2566
|
-
},
|
|
2567
|
-
const { hours: a, minutes: e, seconds: o } =
|
|
2560
|
+
}, el = (t) => {
|
|
2561
|
+
const { hours: a, minutes: e, seconds: o } = St(t);
|
|
2568
2562
|
return `PT${a}H${e}M${o}S`;
|
|
2569
|
-
},
|
|
2563
|
+
}, tl = ["aria-label"], al = {
|
|
2570
2564
|
key: 0,
|
|
2571
2565
|
class: "onyx-timer__label"
|
|
2572
|
-
},
|
|
2566
|
+
}, ol = ["datetime"], Fn = /* @__PURE__ */ k({
|
|
2573
2567
|
__name: "OnyxTimer",
|
|
2574
2568
|
props: {
|
|
2575
2569
|
endTime: {},
|
|
@@ -2578,146 +2572,155 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
2578
2572
|
},
|
|
2579
2573
|
emits: ["timerEnded"],
|
|
2580
2574
|
setup(t, { emit: a }) {
|
|
2581
|
-
const e = t, o = a, { locale: n } = P(), { timeLeft: l, isEnded:
|
|
2575
|
+
const e = t, o = a, { locale: n } = P(), { timeLeft: l, isEnded: r } = Jo(f(() => e.endTime)), u = f(
|
|
2582
2576
|
() => new Intl.RelativeTimeFormat(n.value, { numeric: "always", style: "short" })
|
|
2583
|
-
),
|
|
2584
|
-
return J(() =>
|
|
2577
|
+
), c = f(() => Qo(l.value, u.value));
|
|
2578
|
+
return J(() => r.value && o("timerEnded")), (p, m) => (s(), d("div", {
|
|
2585
2579
|
class: "onyx-timer onyx-text onyx-truncation-ellipsis",
|
|
2586
2580
|
role: "timer",
|
|
2587
2581
|
"aria-label": e.hideLabel ? e.label : void 0
|
|
2588
2582
|
}, [
|
|
2589
|
-
e.hideLabel ? _("", !0) : (s(),
|
|
2590
|
-
|
|
2591
|
-
datetime:
|
|
2583
|
+
e.hideLabel ? _("", !0) : (s(), d("span", al, S(e.label), 1)),
|
|
2584
|
+
v("time", {
|
|
2585
|
+
datetime: i(el)(i(l)),
|
|
2592
2586
|
class: "onyx-timer__time"
|
|
2593
|
-
},
|
|
2594
|
-
], 8,
|
|
2587
|
+
}, S(c.value), 9, ol)
|
|
2588
|
+
], 8, tl));
|
|
2595
2589
|
}
|
|
2596
|
-
}),
|
|
2590
|
+
}), ll = { class: "onyx-user-menu__footer onyx-text--small" }, nl = /* @__PURE__ */ k({
|
|
2597
2591
|
__name: "UserMenuLayout",
|
|
2598
|
-
props: {
|
|
2592
|
+
props: /* @__PURE__ */ he({
|
|
2599
2593
|
isMobile: { type: Boolean }
|
|
2600
|
-
},
|
|
2594
|
+
}, {
|
|
2595
|
+
flyoutOpen: { type: Boolean, default: !1 },
|
|
2596
|
+
flyoutOpenModifiers: {}
|
|
2597
|
+
}),
|
|
2598
|
+
emits: ["update:flyoutOpen"],
|
|
2601
2599
|
setup(t) {
|
|
2602
|
-
const a = t, e = F(), { t:
|
|
2603
|
-
return (
|
|
2604
|
-
a.isMobile ? (s(),
|
|
2605
|
-
b(
|
|
2606
|
-
b(
|
|
2607
|
-
|
|
2600
|
+
const a = t, e = fe(t, "flyoutOpen"), o = F(), { t: n } = P();
|
|
2601
|
+
return (l, r) => (s(), d("div", null, [
|
|
2602
|
+
a.isMobile ? (s(), d(z, { key: 0 }, [
|
|
2603
|
+
b(l.$slots, "header"),
|
|
2604
|
+
b(l.$slots, "options"),
|
|
2605
|
+
o.footer ? (s(), x(Fe, {
|
|
2608
2606
|
key: 0,
|
|
2609
2607
|
class: "onyx-user-menu__mobile-footer",
|
|
2610
2608
|
disabled: ""
|
|
2611
2609
|
}, {
|
|
2612
2610
|
default: $(() => [
|
|
2613
|
-
b(
|
|
2611
|
+
b(l.$slots, "footer")
|
|
2614
2612
|
]),
|
|
2615
2613
|
_: 3
|
|
2616
2614
|
})) : _("", !0)
|
|
2617
|
-
], 64)) : (s(), x(
|
|
2615
|
+
], 64)) : (s(), x(Mt, {
|
|
2618
2616
|
key: 1,
|
|
2619
|
-
label:
|
|
2620
|
-
|
|
2617
|
+
label: i(n)("navigation.userMenuLabel"),
|
|
2618
|
+
open: e.value
|
|
2619
|
+
}, ve({
|
|
2621
2620
|
header: $(() => [
|
|
2622
|
-
b(
|
|
2621
|
+
b(l.$slots, "header")
|
|
2623
2622
|
]),
|
|
2624
2623
|
options: $(() => [
|
|
2625
|
-
b(
|
|
2624
|
+
b(l.$slots, "options")
|
|
2626
2625
|
]),
|
|
2627
2626
|
default: $(() => [
|
|
2628
|
-
b(
|
|
2627
|
+
b(l.$slots, "button")
|
|
2629
2628
|
]),
|
|
2630
2629
|
_: 2
|
|
2631
2630
|
}, [
|
|
2632
|
-
|
|
2631
|
+
o.footer ? {
|
|
2633
2632
|
name: "footer",
|
|
2634
2633
|
fn: $(() => [
|
|
2635
|
-
|
|
2636
|
-
b(
|
|
2634
|
+
v("div", ll, [
|
|
2635
|
+
b(l.$slots, "footer")
|
|
2637
2636
|
])
|
|
2638
2637
|
]),
|
|
2639
2638
|
key: "0"
|
|
2640
2639
|
} : void 0
|
|
2641
|
-
]), 1032, ["label"]))
|
|
2640
|
+
]), 1032, ["label", "open"]))
|
|
2642
2641
|
]));
|
|
2643
2642
|
}
|
|
2644
|
-
}),
|
|
2643
|
+
}), sl = {
|
|
2645
2644
|
class: "onyx-user-menu__trigger onyx-text",
|
|
2646
2645
|
type: "button"
|
|
2647
|
-
},
|
|
2646
|
+
}, rl = { class: "onyx-truncation-ellipsis" }, il = { class: "onyx-user-menu__header" }, cl = { class: "onyx-truncation-ellipsis" }, ul = { class: "onyx-user-menu__username onyx-text onyx-truncation-ellipsis" }, dl = {
|
|
2648
2647
|
key: 0,
|
|
2649
2648
|
class: "onyx-user-menu__description onyx-text--small onyx-truncation-ellipsis"
|
|
2650
|
-
},
|
|
2649
|
+
}, pl = { class: "onyx-user-menu__options" }, qn = /* @__PURE__ */ k({
|
|
2651
2650
|
__name: "OnyxUserMenu",
|
|
2652
|
-
props: {
|
|
2651
|
+
props: /* @__PURE__ */ he({
|
|
2653
2652
|
username: {},
|
|
2654
2653
|
avatar: {},
|
|
2655
|
-
description: {}
|
|
2656
|
-
|
|
2657
|
-
|
|
2654
|
+
description: {}
|
|
2655
|
+
}, {
|
|
2656
|
+
flyoutOpen: { type: Boolean, default: !1 },
|
|
2657
|
+
flyoutOpenModifiers: {}
|
|
2658
|
+
}),
|
|
2659
|
+
emits: ["update:flyoutOpen"],
|
|
2658
2660
|
setup(t) {
|
|
2659
|
-
const a = t, e =
|
|
2660
|
-
|
|
2661
|
-
|
|
2661
|
+
const a = t, e = fe(t, "flyoutOpen"), o = F(), n = f(() => ({ src: a.avatar, label: a.username })), l = ce(
|
|
2662
|
+
xe,
|
|
2663
|
+
f(() => !1)
|
|
2662
2664
|
);
|
|
2663
|
-
return (
|
|
2664
|
-
class: g(["onyx-user-menu", { "onyx-user-menu--mobile":
|
|
2665
|
-
"is-mobile":
|
|
2666
|
-
|
|
2665
|
+
return (r, u) => (s(), x(nl, {
|
|
2666
|
+
class: g(["onyx-user-menu", { "onyx-user-menu--mobile": i(l) }]),
|
|
2667
|
+
"is-mobile": i(l),
|
|
2668
|
+
"flyout-open": e.value
|
|
2669
|
+
}, ve({
|
|
2667
2670
|
button: $(() => [
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
+
v("button", sl, [
|
|
2672
|
+
M(Ye, B(n.value, { size: "24px" }), null, 16),
|
|
2673
|
+
v("span", rl, S(a.username), 1)
|
|
2671
2674
|
])
|
|
2672
2675
|
]),
|
|
2673
2676
|
header: $(() => [
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
a.description ? (s(),
|
|
2677
|
+
v("div", il, [
|
|
2678
|
+
M(Ye, te(ae(n.value)), null, 16),
|
|
2679
|
+
v("div", cl, [
|
|
2680
|
+
v("div", ul, S(a.username), 1),
|
|
2681
|
+
a.description ? (s(), d("div", dl, S(a.description), 1)) : _("", !0)
|
|
2679
2682
|
])
|
|
2680
2683
|
])
|
|
2681
2684
|
]),
|
|
2682
2685
|
options: $(() => [
|
|
2683
|
-
|
|
2684
|
-
b(
|
|
2686
|
+
v("div", pl, [
|
|
2687
|
+
b(r.$slots, "default")
|
|
2685
2688
|
])
|
|
2686
2689
|
]),
|
|
2687
2690
|
_: 2
|
|
2688
2691
|
}, [
|
|
2689
|
-
|
|
2692
|
+
o.footer ? {
|
|
2690
2693
|
name: "footer",
|
|
2691
2694
|
fn: $(() => [
|
|
2692
|
-
b(
|
|
2695
|
+
b(r.$slots, "footer")
|
|
2693
2696
|
]),
|
|
2694
2697
|
key: "0"
|
|
2695
2698
|
} : void 0
|
|
2696
|
-
]), 1032, ["class", "is-mobile"]));
|
|
2699
|
+
]), 1032, ["class", "is-mobile", "flyout-open"]));
|
|
2697
2700
|
}
|
|
2698
|
-
}),
|
|
2699
|
-
const e = "content-box", o = E(0), n = E(0), l = (
|
|
2700
|
-
const u =
|
|
2701
|
-
o.value = u.reduce((
|
|
2701
|
+
}), ml = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m20.207 9.707-1.414-1.414L11.086 16l7.707 7.707 1.414-1.414L13.914 16z"/></svg>', yl = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M2 15h28v2H2zm0-7h28v2H2zm0 14h28v2H2z"/></svg>', hl = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><circle cx="16" cy="5" r="3"/><circle cx="16" cy="16" r="3"/><circle cx="16" cy="27" r="3"/></svg>', fl = (t, a) => {
|
|
2702
|
+
const e = "content-box", o = E(0), n = E(0), l = (r) => {
|
|
2703
|
+
const u = r[0].contentBoxSize;
|
|
2704
|
+
o.value = u.reduce((c, { inlineSize: p }) => c + p, 0), n.value = u.reduce((c, { blockSize: p }) => c + p, 0);
|
|
2702
2705
|
};
|
|
2703
|
-
return
|
|
2704
|
-
const
|
|
2706
|
+
return Ne(() => {
|
|
2707
|
+
const r = new ResizeObserver(l);
|
|
2705
2708
|
G(
|
|
2706
2709
|
t,
|
|
2707
|
-
(u,
|
|
2708
|
-
|
|
2710
|
+
(u, c) => {
|
|
2711
|
+
c && (r == null || r.unobserve(c)), u && (r == null || r.observe(u, { box: e }));
|
|
2709
2712
|
},
|
|
2710
2713
|
{ immediate: !0 }
|
|
2711
|
-
), ye(() =>
|
|
2714
|
+
), ye(() => r.disconnect());
|
|
2712
2715
|
}), { width: o, height: n };
|
|
2713
|
-
},
|
|
2716
|
+
}, vl = {
|
|
2714
2717
|
"2xs": 320,
|
|
2715
2718
|
xs: 576,
|
|
2716
2719
|
sm: 768,
|
|
2717
2720
|
md: 992,
|
|
2718
2721
|
lg: 1440,
|
|
2719
2722
|
xl: 1920
|
|
2720
|
-
},
|
|
2723
|
+
}, Zn = [
|
|
2721
2724
|
"primary",
|
|
2722
2725
|
"secondary",
|
|
2723
2726
|
"neutral",
|
|
@@ -2725,19 +2728,19 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
2725
2728
|
"warning",
|
|
2726
2729
|
"success",
|
|
2727
2730
|
"info"
|
|
2728
|
-
],
|
|
2731
|
+
], Gn = ["small", "default", "large"], Kn = ["ellipsis", "multiline"], jn = ["horizontal", "vertical"], _l = { class: "onyx-nav-bar__content" }, xl = {
|
|
2729
2732
|
key: 0,
|
|
2730
2733
|
class: "onyx-nav-bar__mobile-page onyx-truncation-ellipsis"
|
|
2731
|
-
},
|
|
2734
|
+
}, bl = { role: "menubar" }, gl = { role: "menubar" }, kl = {
|
|
2732
2735
|
key: 0,
|
|
2733
2736
|
class: "onyx-nav-bar__mobile-context"
|
|
2734
|
-
},
|
|
2737
|
+
}, wl = {
|
|
2735
2738
|
key: 0,
|
|
2736
2739
|
class: "onyx-nav-bar__mobile-global-context"
|
|
2737
|
-
},
|
|
2740
|
+
}, Cl = { class: "onyx-nav-bar__mobile-context-content" }, $l = {
|
|
2738
2741
|
key: 1,
|
|
2739
2742
|
class: "onyx-nav-bar__context"
|
|
2740
|
-
},
|
|
2743
|
+
}, Yn = /* @__PURE__ */ k({
|
|
2741
2744
|
__name: "OnyxNavBar",
|
|
2742
2745
|
props: {
|
|
2743
2746
|
logoUrl: {},
|
|
@@ -2748,13 +2751,13 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
2748
2751
|
},
|
|
2749
2752
|
emits: ["appAreaClick", "backButtonClick"],
|
|
2750
2753
|
setup(t, { expose: a, emit: e }) {
|
|
2751
|
-
const o = t, n = e, l = F(),
|
|
2752
|
-
elements: { nav:
|
|
2753
|
-
} = so({ navigationName:
|
|
2754
|
-
const
|
|
2755
|
-
return u.value !== 0 && u.value <
|
|
2754
|
+
const o = t, n = e, l = F(), r = E(), { width: u } = fl(r), { t: c } = P(), {
|
|
2755
|
+
elements: { nav: p }
|
|
2756
|
+
} = so({ navigationName: Te(() => o.appName) }), m = E(!1), y = E(!1), h = f(() => {
|
|
2757
|
+
const w = typeof o.mobileBreakpoint == "number" ? o.mobileBreakpoint : vl[o.mobileBreakpoint];
|
|
2758
|
+
return u.value !== 0 && u.value < w;
|
|
2756
2759
|
});
|
|
2757
|
-
return At(
|
|
2760
|
+
return At(xe, h), a({
|
|
2758
2761
|
/**
|
|
2759
2762
|
* Closes the mobile burger and context menu.
|
|
2760
2763
|
* Useful if you want to e.g. close them when a nav item is clicked.
|
|
@@ -2769,128 +2772,128 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
2769
2772
|
* ```
|
|
2770
2773
|
*/
|
|
2771
2774
|
closeMobileMenus: () => {
|
|
2772
|
-
|
|
2775
|
+
m.value = !1, y.value = !1;
|
|
2773
2776
|
}
|
|
2774
|
-
}), (
|
|
2777
|
+
}), (w, V) => (s(), d("header", {
|
|
2775
2778
|
ref_key: "navBarRef",
|
|
2776
|
-
ref:
|
|
2779
|
+
ref: r,
|
|
2777
2780
|
class: g(["onyx-nav-bar", { "onyx-nav-bar--mobile": h.value }])
|
|
2778
2781
|
}, [
|
|
2779
|
-
|
|
2780
|
-
h.value && l.mobileActivePage && !
|
|
2781
|
-
b(
|
|
2782
|
-
])) : o.appName || o.logoUrl || l.appArea ? (s(), x(
|
|
2782
|
+
v("div", _l, [
|
|
2783
|
+
h.value && l.mobileActivePage && !m.value && !y.value ? (s(), d("span", xl, [
|
|
2784
|
+
b(w.$slots, "mobileActivePage")
|
|
2785
|
+
])) : o.appName || o.logoUrl || l.appArea ? (s(), x(Eo, {
|
|
2783
2786
|
key: 1,
|
|
2784
2787
|
class: "onyx-nav-bar__app",
|
|
2785
2788
|
"app-name": o.appName,
|
|
2786
2789
|
"logo-url": o.logoUrl,
|
|
2787
2790
|
label: o.appAreaLabel,
|
|
2788
2791
|
onClick: V[0] || (V[0] = (T) => {
|
|
2789
|
-
n("appAreaClick"),
|
|
2792
|
+
n("appAreaClick"), m.value = !1;
|
|
2790
2793
|
})
|
|
2791
2794
|
}, {
|
|
2792
2795
|
default: $(() => [
|
|
2793
|
-
b(
|
|
2796
|
+
b(w.$slots, "appArea")
|
|
2794
2797
|
]),
|
|
2795
2798
|
_: 3
|
|
2796
2799
|
}, 8, ["app-name", "logo-url", "label"])) : _("", !0),
|
|
2797
2800
|
o.withBackButton ? (s(), x(Za, {
|
|
2798
2801
|
key: 2,
|
|
2799
2802
|
class: "onyx-nav-bar__back",
|
|
2800
|
-
label:
|
|
2801
|
-
icon:
|
|
2803
|
+
label: i(c)("navigation.goBack"),
|
|
2804
|
+
icon: i(ml),
|
|
2802
2805
|
color: "neutral",
|
|
2803
2806
|
onClick: V[1] || (V[1] = (T) => n("backButtonClick"))
|
|
2804
2807
|
}, null, 8, ["label", "icon"])) : _("", !0),
|
|
2805
|
-
l.default ? (s(),
|
|
2806
|
-
h.value ? (s(), x(
|
|
2808
|
+
l.default ? (s(), d(z, { key: 3 }, [
|
|
2809
|
+
h.value ? (s(), x(Je, {
|
|
2807
2810
|
key: 0,
|
|
2808
|
-
open:
|
|
2811
|
+
open: m.value,
|
|
2809
2812
|
"onUpdate:open": [
|
|
2810
|
-
V[2] || (V[2] = (T) =>
|
|
2813
|
+
V[2] || (V[2] = (T) => m.value = T),
|
|
2811
2814
|
V[3] || (V[3] = (T) => y.value = !1)
|
|
2812
2815
|
],
|
|
2813
2816
|
class: "onyx-nav-bar__burger",
|
|
2814
|
-
icon:
|
|
2815
|
-
label:
|
|
2816
|
-
headline:
|
|
2817
|
+
icon: i(yl),
|
|
2818
|
+
label: i(c)("navigation.toggleBurgerMenu"),
|
|
2819
|
+
headline: i(c)("navigation.navigationHeadline")
|
|
2817
2820
|
}, {
|
|
2818
2821
|
default: $(() => [
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
b(
|
|
2822
|
+
v("nav", B({ class: "onyx-nav-bar__nav--mobile" }, i(p)), [
|
|
2823
|
+
v("ul", bl, [
|
|
2824
|
+
b(w.$slots, "default")
|
|
2822
2825
|
])
|
|
2823
2826
|
], 16)
|
|
2824
2827
|
]),
|
|
2825
2828
|
_: 3
|
|
2826
|
-
}, 8, ["open", "icon", "label", "headline"])) : (s(),
|
|
2829
|
+
}, 8, ["open", "icon", "label", "headline"])) : (s(), d("nav", B({
|
|
2827
2830
|
key: 1,
|
|
2828
2831
|
class: "onyx-nav-bar__nav"
|
|
2829
|
-
},
|
|
2830
|
-
|
|
2831
|
-
b(
|
|
2832
|
+
}, i(p)), [
|
|
2833
|
+
v("ul", gl, [
|
|
2834
|
+
b(w.$slots, "default")
|
|
2832
2835
|
])
|
|
2833
2836
|
], 16))
|
|
2834
2837
|
], 64)) : _("", !0),
|
|
2835
|
-
l.contextArea || l.globalContextArea ? (s(),
|
|
2836
|
-
h.value ? (s(),
|
|
2837
|
-
l.globalContextArea ? (s(),
|
|
2838
|
-
b(
|
|
2838
|
+
l.contextArea || l.globalContextArea ? (s(), d(z, { key: 4 }, [
|
|
2839
|
+
h.value ? (s(), d("div", kl, [
|
|
2840
|
+
l.globalContextArea ? (s(), d("div", wl, [
|
|
2841
|
+
b(w.$slots, "globalContextArea")
|
|
2839
2842
|
])) : _("", !0),
|
|
2840
|
-
l.contextArea ? (s(), x(
|
|
2843
|
+
l.contextArea ? (s(), x(Je, {
|
|
2841
2844
|
key: 1,
|
|
2842
2845
|
open: y.value,
|
|
2843
2846
|
"onUpdate:open": [
|
|
2844
2847
|
V[4] || (V[4] = (T) => y.value = T),
|
|
2845
|
-
V[5] || (V[5] = (T) =>
|
|
2848
|
+
V[5] || (V[5] = (T) => m.value = !1)
|
|
2846
2849
|
],
|
|
2847
|
-
icon:
|
|
2848
|
-
label:
|
|
2850
|
+
icon: i(hl),
|
|
2851
|
+
label: i(c)("navigation.toggleContextMenu")
|
|
2849
2852
|
}, {
|
|
2850
2853
|
default: $(() => [
|
|
2851
|
-
|
|
2852
|
-
b(
|
|
2854
|
+
v("div", Cl, [
|
|
2855
|
+
b(w.$slots, "contextArea")
|
|
2853
2856
|
])
|
|
2854
2857
|
]),
|
|
2855
2858
|
_: 3
|
|
2856
2859
|
}, 8, ["open", "icon", "label"])) : _("", !0)
|
|
2857
|
-
])) : (s(),
|
|
2858
|
-
l.globalContextArea ? b(
|
|
2859
|
-
l.contextArea ? b(
|
|
2860
|
+
])) : (s(), d("div", $l, [
|
|
2861
|
+
l.globalContextArea ? b(w.$slots, "globalContextArea", { key: 0 }) : _("", !0),
|
|
2862
|
+
l.contextArea ? b(w.$slots, "contextArea", { key: 1 }) : _("", !0)
|
|
2860
2863
|
]))
|
|
2861
2864
|
], 64)) : _("", !0)
|
|
2862
2865
|
])
|
|
2863
2866
|
], 2));
|
|
2864
2867
|
}
|
|
2865
|
-
}),
|
|
2868
|
+
}), Ml = {
|
|
2866
2869
|
key: 0,
|
|
2867
2870
|
class: "onyx-page__sidebar"
|
|
2868
|
-
},
|
|
2871
|
+
}, Sl = { class: "onyx-page__main" }, Vl = {
|
|
2869
2872
|
key: 1,
|
|
2870
2873
|
class: "onyx-page__footer"
|
|
2871
|
-
},
|
|
2874
|
+
}, Wn = /* @__PURE__ */ k({
|
|
2872
2875
|
__name: "OnyxPageLayout",
|
|
2873
2876
|
props: {
|
|
2874
2877
|
footerAsideSidebar: { type: Boolean },
|
|
2875
2878
|
hideSidebar: { type: Boolean }
|
|
2876
2879
|
},
|
|
2877
2880
|
setup(t) {
|
|
2878
|
-
const a = t, e = F(), o =
|
|
2879
|
-
return (n, l) => (s(),
|
|
2881
|
+
const a = t, e = F(), o = f(() => a.footerAsideSidebar ? "onyx-page--footer-partial" : "onyx-page--footer-full");
|
|
2882
|
+
return (n, l) => (s(), d("div", {
|
|
2880
2883
|
class: g(["onyx-page", o.value])
|
|
2881
2884
|
}, [
|
|
2882
|
-
e.sidebar && !a.hideSidebar ? (s(),
|
|
2885
|
+
e.sidebar && !a.hideSidebar ? (s(), d("aside", Ml, [
|
|
2883
2886
|
b(n.$slots, "sidebar")
|
|
2884
2887
|
])) : _("", !0),
|
|
2885
|
-
|
|
2888
|
+
v("main", Sl, [
|
|
2886
2889
|
b(n.$slots, "default")
|
|
2887
2890
|
]),
|
|
2888
|
-
e.footer ? (s(),
|
|
2891
|
+
e.footer ? (s(), d("footer", Vl, [
|
|
2889
2892
|
b(n.$slots, "footer")
|
|
2890
2893
|
])) : _("", !0)
|
|
2891
2894
|
], 2));
|
|
2892
2895
|
}
|
|
2893
|
-
}),
|
|
2896
|
+
}), Bl = ["title"], Ol = ["required", "name", "value", "checked", "disabled", "autofocus"], Qe = /* @__PURE__ */ k({
|
|
2894
2897
|
__name: "OnyxRadioButton",
|
|
2895
2898
|
props: {
|
|
2896
2899
|
density: {},
|
|
@@ -2908,26 +2911,26 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
2908
2911
|
},
|
|
2909
2912
|
emits: ["change", "validityChange"],
|
|
2910
2913
|
setup(t, { emit: a }) {
|
|
2911
|
-
const e = t, o = a, { vCustomValidity: n } = le({ props: e, emit: o }), { densityClass: l } = D(e),
|
|
2912
|
-
const
|
|
2913
|
-
o("change",
|
|
2914
|
+
const e = t, o = a, { vCustomValidity: n } = le({ props: e, emit: o }), { densityClass: l } = D(e), r = (u) => {
|
|
2915
|
+
const c = u.target.checked;
|
|
2916
|
+
o("change", c);
|
|
2914
2917
|
};
|
|
2915
|
-
return (u,
|
|
2918
|
+
return (u, c) => e.skeleton ? (s(), d("div", {
|
|
2916
2919
|
key: 0,
|
|
2917
|
-
class: g(["onyx-radio-button-skeleton",
|
|
2920
|
+
class: g(["onyx-radio-button-skeleton", i(l)])
|
|
2918
2921
|
}, [
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
], 2)) : (s(),
|
|
2922
|
+
M(R, { class: "onyx-radio-button-skeleton__input" }),
|
|
2923
|
+
M(R, { class: "onyx-radio-button-skeleton__label" })
|
|
2924
|
+
], 2)) : (s(), d("label", {
|
|
2922
2925
|
key: 1,
|
|
2923
|
-
class: g(["onyx-radio-button",
|
|
2924
|
-
title:
|
|
2926
|
+
class: g(["onyx-radio-button", i(l)]),
|
|
2927
|
+
title: i(ct)(e.customError)
|
|
2925
2928
|
}, [
|
|
2926
2929
|
e.loading ? (s(), x(Q, {
|
|
2927
2930
|
key: 0,
|
|
2928
2931
|
class: "onyx-radio-button__loading",
|
|
2929
2932
|
type: "circle"
|
|
2930
|
-
})) :
|
|
2933
|
+
})) : j((s(), d("input", {
|
|
2931
2934
|
key: 1,
|
|
2932
2935
|
class: "onyx-radio-button__selector",
|
|
2933
2936
|
type: "radio",
|
|
@@ -2937,19 +2940,19 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
2937
2940
|
checked: e.checked,
|
|
2938
2941
|
disabled: e.disabled,
|
|
2939
2942
|
autofocus: e.autofocus,
|
|
2940
|
-
onChange:
|
|
2941
|
-
}, null, 40,
|
|
2942
|
-
[
|
|
2943
|
+
onChange: r
|
|
2944
|
+
}, null, 40, Ol)), [
|
|
2945
|
+
[i(n)]
|
|
2943
2946
|
]),
|
|
2944
|
-
|
|
2947
|
+
v("span", {
|
|
2945
2948
|
class: g(["onyx-radio-button__label", [`onyx-truncation-${e.truncation}`]])
|
|
2946
|
-
},
|
|
2947
|
-
], 10,
|
|
2949
|
+
}, S(e.label), 3)
|
|
2950
|
+
], 10, Bl));
|
|
2948
2951
|
}
|
|
2949
|
-
}),
|
|
2952
|
+
}), El = ["disabled"], Tl = {
|
|
2950
2953
|
key: 0,
|
|
2951
2954
|
class: "onyx-radio-button-group__headline"
|
|
2952
|
-
},
|
|
2955
|
+
}, Xn = /* @__PURE__ */ k({
|
|
2953
2956
|
__name: "OnyxRadioGroup",
|
|
2954
2957
|
props: {
|
|
2955
2958
|
density: {},
|
|
@@ -2958,7 +2961,7 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
2958
2961
|
customError: {},
|
|
2959
2962
|
truncation: { default: "ellipsis" },
|
|
2960
2963
|
options: {},
|
|
2961
|
-
name: { default: () =>
|
|
2964
|
+
name: { default: () => K("radio-button-group-name") },
|
|
2962
2965
|
modelValue: {},
|
|
2963
2966
|
headline: { default: "" },
|
|
2964
2967
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -2967,56 +2970,56 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
2967
2970
|
},
|
|
2968
2971
|
emits: ["update:modelValue", "validityChange"],
|
|
2969
2972
|
setup(t, { emit: a }) {
|
|
2970
|
-
const e = t, { densityClass: o } = D(e), { requiredMarkerClass: n, requiredTypeClass: l } =
|
|
2971
|
-
|
|
2973
|
+
const e = t, { densityClass: o } = D(e), { requiredMarkerClass: n, requiredTypeClass: l } = _e(e), r = a, u = (c, p) => {
|
|
2974
|
+
c && r("update:modelValue", p);
|
|
2972
2975
|
};
|
|
2973
|
-
return (
|
|
2974
|
-
class: g(["onyx-radio-button-group",
|
|
2976
|
+
return (c, p) => (s(), d("fieldset", {
|
|
2977
|
+
class: g(["onyx-radio-button-group", i(o), i(l)]),
|
|
2975
2978
|
disabled: e.disabled,
|
|
2976
2979
|
role: "radiogroup"
|
|
2977
2980
|
}, [
|
|
2978
|
-
e.headline ? (s(),
|
|
2979
|
-
|
|
2981
|
+
e.headline ? (s(), d("legend", Tl, [
|
|
2982
|
+
M(ie, {
|
|
2980
2983
|
is: "h3",
|
|
2981
|
-
class: g(
|
|
2984
|
+
class: g(i(n))
|
|
2982
2985
|
}, {
|
|
2983
2986
|
default: $(() => [
|
|
2984
|
-
U(
|
|
2987
|
+
U(S(e.headline), 1)
|
|
2985
2988
|
]),
|
|
2986
2989
|
_: 1
|
|
2987
2990
|
}, 8, ["class"])
|
|
2988
2991
|
])) : _("", !0),
|
|
2989
|
-
|
|
2992
|
+
v("div", {
|
|
2990
2993
|
class: g(["onyx-radio-button-group__content", { "onyx-radio-button-group__content--horizontal": e.direction === "horizontal" }])
|
|
2991
2994
|
}, [
|
|
2992
|
-
e.skeleton === void 0 ? (s(!0),
|
|
2993
|
-
key:
|
|
2995
|
+
e.skeleton === void 0 ? (s(!0), d(z, { key: 0 }, X(e.options, (m, y) => (s(), x(Qe, B({
|
|
2996
|
+
key: m.value.toString(),
|
|
2994
2997
|
ref_for: !0
|
|
2995
|
-
},
|
|
2998
|
+
}, m, {
|
|
2996
2999
|
name: e.name,
|
|
2997
3000
|
"custom-error": e.customError,
|
|
2998
|
-
checked:
|
|
3001
|
+
checked: m.value === e.modelValue,
|
|
2999
3002
|
required: e.required,
|
|
3000
|
-
truncation:
|
|
3001
|
-
onValidityChange: (h) => y === 0 &&
|
|
3002
|
-
onChange: (h) => u(h,
|
|
3003
|
-
}), null, 16, ["name", "custom-error", "checked", "required", "truncation", "onValidityChange", "onChange"]))), 128)) : (s(!0),
|
|
3004
|
-
id: `skeleton-${
|
|
3005
|
-
key:
|
|
3006
|
-
value: `skeleton-${
|
|
3003
|
+
truncation: m.truncation ?? e.truncation,
|
|
3004
|
+
onValidityChange: (h) => y === 0 && r("validityChange", h),
|
|
3005
|
+
onChange: (h) => u(h, m.value)
|
|
3006
|
+
}), null, 16, ["name", "custom-error", "checked", "required", "truncation", "onValidityChange", "onChange"]))), 128)) : (s(!0), d(z, { key: 1 }, X(e.skeleton, (m) => (s(), x(Qe, {
|
|
3007
|
+
id: `skeleton-${m}`,
|
|
3008
|
+
key: m,
|
|
3009
|
+
value: `skeleton-${m}`,
|
|
3007
3010
|
label: "Skeleton ${i}",
|
|
3008
3011
|
name: e.name,
|
|
3009
3012
|
skeleton: ""
|
|
3010
3013
|
}, null, 8, ["id", "value", "name"]))), 128))
|
|
3011
3014
|
], 2)
|
|
3012
|
-
], 10,
|
|
3015
|
+
], 10, El));
|
|
3013
3016
|
}
|
|
3014
|
-
}),
|
|
3017
|
+
}), Il = (t) => {
|
|
3015
3018
|
const e = E(!1), o = (l) => {
|
|
3016
|
-
const
|
|
3017
|
-
if (!(
|
|
3018
|
-
const u =
|
|
3019
|
-
e.value = Math.abs(
|
|
3019
|
+
const r = l.target;
|
|
3020
|
+
if (!(r instanceof Element)) return;
|
|
3021
|
+
const u = i(t.offset) ?? 0;
|
|
3022
|
+
e.value = Math.abs(r.scrollTop) + r.clientHeight >= r.scrollHeight - u - 1;
|
|
3020
3023
|
};
|
|
3021
3024
|
return { vScrollEnd: {
|
|
3022
3025
|
mounted: (l) => {
|
|
@@ -3026,7 +3029,15 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
3026
3029
|
});
|
|
3027
3030
|
}
|
|
3028
3031
|
}, isScrollEnd: e };
|
|
3029
|
-
},
|
|
3032
|
+
}, et = (t, a, e) => {
|
|
3033
|
+
const o = f(() => t.value === void 0), n = E(o.value ? a : t.value);
|
|
3034
|
+
return f({
|
|
3035
|
+
set: (l) => {
|
|
3036
|
+
n.value = l, e(l);
|
|
3037
|
+
},
|
|
3038
|
+
get: () => o.value ? n.value : t.value
|
|
3039
|
+
});
|
|
3040
|
+
}, Ll = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="m22.29 18.83 1.41 1.41-7.71 7.71-7.71-7.71 1.41-1.41 6.29 6.29 6.29-6.29ZM16 6.87l6.29 6.29 1.41-1.41-7.71-7.71-7.71 7.71 1.41 1.41 6.29-6.29Z"/></svg>', Al = { class: "onyx-select-input__wrapper" }, Hl = ["id", "readonly", "placeholder", "required", "disabled", "aria-label", "title", "value", "autofocus"], Dl = ["aria-label", "disabled"], Pl = /* @__PURE__ */ k({
|
|
3030
3041
|
inheritAttrs: !1,
|
|
3031
3042
|
__name: "OnyxSelectInput",
|
|
3032
3043
|
props: {
|
|
@@ -3037,6 +3048,7 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
3037
3048
|
modelValue: {},
|
|
3038
3049
|
textMode: {},
|
|
3039
3050
|
autofocus: { type: Boolean },
|
|
3051
|
+
id: {},
|
|
3040
3052
|
label: {},
|
|
3041
3053
|
labelTooltip: {},
|
|
3042
3054
|
hideLabel: { type: Boolean, default: !1 },
|
|
@@ -3052,19 +3064,19 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
3052
3064
|
},
|
|
3053
3065
|
emits: ["click", "validityChange"],
|
|
3054
3066
|
setup(t, { expose: a, emit: e }) {
|
|
3055
|
-
const { rootAttrs: o, restAttrs: n } =
|
|
3067
|
+
const { rootAttrs: o, restAttrs: n } = Ct(), l = t, r = e, { t: u } = P(), { vCustomValidity: c, errorMessages: p } = le({ props: l, emit: r }), m = f(() => l.modelValue ? l.modelValue.length : 0), y = f(() => {
|
|
3056
3068
|
var H;
|
|
3057
3069
|
const L = (H = l.modelValue) == null ? void 0 : H.length;
|
|
3058
3070
|
if (!l.modelValue || !L) return "";
|
|
3059
3071
|
if (L === 1) return l.modelValue[0].label;
|
|
3060
3072
|
switch (l.textMode) {
|
|
3061
3073
|
case "preview":
|
|
3062
|
-
return l.modelValue.map(({ label:
|
|
3074
|
+
return l.modelValue.map(({ label: Y }) => Y).join(", ");
|
|
3063
3075
|
case "summary":
|
|
3064
3076
|
default:
|
|
3065
3077
|
return u.value("selections.currentSelection", { n: L });
|
|
3066
3078
|
}
|
|
3067
|
-
}), h = E(!1), { densityClass:
|
|
3079
|
+
}), h = E(!1), { densityClass: w } = D(l), V = E();
|
|
3068
3080
|
a({ focus: () => {
|
|
3069
3081
|
var L;
|
|
3070
3082
|
return (L = V.value) == null ? void 0 : L.focus();
|
|
@@ -3074,44 +3086,45 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
3074
3086
|
h.value || H && L === !1 && (h.value = !0);
|
|
3075
3087
|
}
|
|
3076
3088
|
);
|
|
3077
|
-
const T =
|
|
3089
|
+
const T = xt.concat(bt), ee = (L) => {
|
|
3078
3090
|
T.includes(L.key) || L.preventDefault();
|
|
3079
3091
|
};
|
|
3080
|
-
return (L, H) => l.skeleton ? (s(),
|
|
3092
|
+
return (L, H) => l.skeleton ? (s(), d("div", B({
|
|
3081
3093
|
key: 0,
|
|
3082
|
-
class: ["onyx-select-input-skeleton",
|
|
3083
|
-
},
|
|
3094
|
+
class: ["onyx-select-input-skeleton", i(w)]
|
|
3095
|
+
}, i(o)), [
|
|
3084
3096
|
l.hideLabel ? _("", !0) : (s(), x(R, {
|
|
3085
3097
|
key: 0,
|
|
3086
3098
|
class: "onyx-select-input-skeleton__label"
|
|
3087
3099
|
})),
|
|
3088
|
-
|
|
3089
|
-
], 16)) : (s(),
|
|
3100
|
+
M(R, { class: "onyx-select-input-skeleton__input" })
|
|
3101
|
+
], 16)) : (s(), d("div", B({
|
|
3090
3102
|
key: 1,
|
|
3091
3103
|
class: [
|
|
3092
3104
|
"onyx-select-input",
|
|
3093
|
-
|
|
3105
|
+
i(w),
|
|
3094
3106
|
l.readonly ? "onyx-select-input--readonly" : "onyx-select-input--editable"
|
|
3095
3107
|
]
|
|
3096
|
-
},
|
|
3097
|
-
|
|
3098
|
-
default: $(() => [
|
|
3099
|
-
|
|
3108
|
+
}, i(o)), [
|
|
3109
|
+
M(Ue, B(l, { "error-messages": i(p) }), {
|
|
3110
|
+
default: $(({ id: Y }) => [
|
|
3111
|
+
v("div", Al, [
|
|
3100
3112
|
l.loading ? (s(), x(Q, {
|
|
3101
3113
|
key: 0,
|
|
3102
3114
|
class: "onyx-select-input__loading",
|
|
3103
3115
|
type: "circle"
|
|
3104
3116
|
})) : _("", !0),
|
|
3105
|
-
|
|
3117
|
+
j(v("input", B({
|
|
3118
|
+
id: Y,
|
|
3106
3119
|
ref_key: "input",
|
|
3107
3120
|
ref: V,
|
|
3108
3121
|
class: {
|
|
3109
3122
|
"onyx-select-input__native": !0,
|
|
3110
3123
|
"onyx-select-input__native--show-focus": l.showFocus,
|
|
3111
3124
|
"onyx-truncation-ellipsis": !0,
|
|
3112
|
-
"onyx-select-input__native--force-invalid":
|
|
3125
|
+
"onyx-select-input__native--force-invalid": i(p) && h.value
|
|
3113
3126
|
}
|
|
3114
|
-
},
|
|
3127
|
+
}, i(n), {
|
|
3115
3128
|
type: "text",
|
|
3116
3129
|
readonly: l.readonly,
|
|
3117
3130
|
placeholder: l.placeholder,
|
|
@@ -3121,46 +3134,46 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
3121
3134
|
title: l.hideLabel ? l.label : void 0,
|
|
3122
3135
|
value: y.value,
|
|
3123
3136
|
autofocus: l.autofocus,
|
|
3124
|
-
onClick: H[0] || (H[0] = (
|
|
3137
|
+
onClick: H[0] || (H[0] = (se) => r("click")),
|
|
3125
3138
|
onKeydown: ee
|
|
3126
|
-
}), null, 16,
|
|
3127
|
-
[
|
|
3139
|
+
}), null, 16, Hl), [
|
|
3140
|
+
[i(c)]
|
|
3128
3141
|
]),
|
|
3129
|
-
l.textMode === "preview" &&
|
|
3142
|
+
l.textMode === "preview" && m.value > 0 ? (s(), x(kt, {
|
|
3130
3143
|
key: 1,
|
|
3131
3144
|
text: y.value,
|
|
3132
3145
|
position: "bottom"
|
|
3133
3146
|
}, {
|
|
3134
3147
|
default: $(() => [
|
|
3135
|
-
|
|
3148
|
+
M(Gt, {
|
|
3136
3149
|
class: "onyx-select-input__badge",
|
|
3137
3150
|
color: "neutral"
|
|
3138
3151
|
}, {
|
|
3139
3152
|
default: $(() => [
|
|
3140
|
-
U(
|
|
3153
|
+
U(S(m.value), 1)
|
|
3141
3154
|
]),
|
|
3142
3155
|
_: 1
|
|
3143
3156
|
})
|
|
3144
3157
|
]),
|
|
3145
3158
|
_: 1
|
|
3146
3159
|
}, 8, ["text"])) : _("", !0),
|
|
3147
|
-
|
|
3160
|
+
v("button", {
|
|
3148
3161
|
class: "onyx-select-input__button",
|
|
3149
3162
|
type: "button",
|
|
3150
|
-
"aria-label":
|
|
3163
|
+
"aria-label": i(u)("select.toggleDropDown"),
|
|
3151
3164
|
tabindex: "-1",
|
|
3152
3165
|
disabled: l.readonly || l.disabled || l.loading,
|
|
3153
|
-
onClick: H[1] || (H[1] = (
|
|
3166
|
+
onClick: H[1] || (H[1] = (se) => r("click"))
|
|
3154
3167
|
}, [
|
|
3155
|
-
|
|
3156
|
-
], 8,
|
|
3168
|
+
M(A, { icon: i(Ll) }, null, 8, ["icon"])
|
|
3169
|
+
], 8, Dl)
|
|
3157
3170
|
])
|
|
3158
3171
|
]),
|
|
3159
3172
|
_: 1
|
|
3160
3173
|
}, 16, ["error-messages"])
|
|
3161
3174
|
], 16));
|
|
3162
3175
|
}
|
|
3163
|
-
}),
|
|
3176
|
+
}), Nl = ["checked", "aria-labelledby", "disabled", "indeterminate"], tt = /* @__PURE__ */ k({
|
|
3164
3177
|
__name: "OnyxSelectOption",
|
|
3165
3178
|
props: {
|
|
3166
3179
|
active: { type: Boolean, default: !1 },
|
|
@@ -3172,13 +3185,13 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
3172
3185
|
},
|
|
3173
3186
|
setup(t) {
|
|
3174
3187
|
const a = t;
|
|
3175
|
-
return (e, o) => (s(), x(
|
|
3188
|
+
return (e, o) => (s(), x(Fe, B({ class: "onyx-select-option" }, a, {
|
|
3176
3189
|
checked: !!e.$attrs["aria-checked"],
|
|
3177
3190
|
selected: !!e.$attrs["aria-selected"],
|
|
3178
3191
|
disabled: !!e.$attrs["aria-disabled"]
|
|
3179
3192
|
}), {
|
|
3180
3193
|
default: $(() => [
|
|
3181
|
-
a.multiple ? (s(),
|
|
3194
|
+
a.multiple ? (s(), d("input", {
|
|
3182
3195
|
key: 0,
|
|
3183
3196
|
checked: !!e.$attrs["aria-checked"],
|
|
3184
3197
|
"aria-labelledby": e.$attrs.id,
|
|
@@ -3188,12 +3201,12 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
3188
3201
|
tabindex: "-1",
|
|
3189
3202
|
class: "onyx-select-option__checkbox",
|
|
3190
3203
|
type: "checkbox"
|
|
3191
|
-
}, null, 8,
|
|
3204
|
+
}, null, 8, Nl)) : _("", !0),
|
|
3192
3205
|
a.icon ? (s(), x(A, {
|
|
3193
3206
|
key: 1,
|
|
3194
3207
|
icon: a.icon
|
|
3195
3208
|
}, null, 8, ["icon"])) : _("", !0),
|
|
3196
|
-
|
|
3209
|
+
v("span", {
|
|
3197
3210
|
class: g([`onyx-truncation-${a.truncation}`])
|
|
3198
3211
|
}, [
|
|
3199
3212
|
b(e.$slots, "default")
|
|
@@ -3202,27 +3215,27 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
3202
3215
|
_: 3
|
|
3203
3216
|
}, 16, ["checked", "selected", "disabled"]));
|
|
3204
3217
|
}
|
|
3205
|
-
}),
|
|
3218
|
+
}), zl = ["inert", "aria-busy"], Rl = {
|
|
3206
3219
|
class: "onyx-select__wrapper",
|
|
3207
3220
|
tabindex: "-1"
|
|
3208
|
-
},
|
|
3221
|
+
}, Ul = {
|
|
3209
3222
|
key: 0,
|
|
3210
3223
|
role: "group",
|
|
3211
3224
|
class: "onyx-select__group"
|
|
3212
|
-
},
|
|
3225
|
+
}, Fl = {
|
|
3213
3226
|
role: "option",
|
|
3214
3227
|
"aria-selected": "false"
|
|
3215
|
-
},
|
|
3228
|
+
}, ql = {
|
|
3216
3229
|
key: 0,
|
|
3217
3230
|
role: "presentation",
|
|
3218
3231
|
class: "onyx-select__group-name onyx-text--small"
|
|
3219
|
-
},
|
|
3232
|
+
}, Zl = {
|
|
3220
3233
|
key: 1,
|
|
3221
3234
|
class: "onyx-select__slot"
|
|
3222
|
-
},
|
|
3235
|
+
}, Gl = {
|
|
3223
3236
|
key: 2,
|
|
3224
3237
|
class: "onyx-select__slot"
|
|
3225
|
-
},
|
|
3238
|
+
}, Jn = /* @__PURE__ */ k({
|
|
3226
3239
|
__name: "OnyxSelect",
|
|
3227
3240
|
props: {
|
|
3228
3241
|
density: {},
|
|
@@ -3236,6 +3249,7 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
3236
3249
|
customError: {},
|
|
3237
3250
|
textMode: {},
|
|
3238
3251
|
autofocus: { type: Boolean },
|
|
3252
|
+
id: {},
|
|
3239
3253
|
label: {},
|
|
3240
3254
|
labelTooltip: {},
|
|
3241
3255
|
hideLabel: { type: Boolean },
|
|
@@ -3256,213 +3270,213 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
3256
3270
|
},
|
|
3257
3271
|
emits: ["update:modelValue", "update:searchTerm", "update:open", "lazyLoad", "validityChange"],
|
|
3258
3272
|
setup(t, { emit: a }) {
|
|
3259
|
-
const e = t, o = a, { densityClass: n } = D(e), l = F(), { t:
|
|
3260
|
-
|
|
3273
|
+
const e = t, o = a, { densityClass: n } = D(e), l = F(), { t: r } = P(), u = et(
|
|
3274
|
+
Te(() => e.searchTerm),
|
|
3261
3275
|
"",
|
|
3262
|
-
(
|
|
3263
|
-
),
|
|
3264
|
-
|
|
3276
|
+
(C) => o("update:searchTerm", C)
|
|
3277
|
+
), c = et(
|
|
3278
|
+
Te(() => e.open),
|
|
3265
3279
|
!1,
|
|
3266
|
-
(
|
|
3267
|
-
),
|
|
3280
|
+
(C) => o("update:open", C)
|
|
3281
|
+
), p = E(), m = E(), y = f(() => e.modelValue ? e.multiple && Array.isArray(e.modelValue) ? e.modelValue : [e.modelValue] : []), h = E(), w = E();
|
|
3268
3282
|
G(
|
|
3269
3283
|
y,
|
|
3270
3284
|
() => {
|
|
3271
|
-
var
|
|
3272
|
-
e.multiple || (
|
|
3285
|
+
var C;
|
|
3286
|
+
e.multiple || (m.value = (C = y.value.at(0)) == null ? void 0 : C.value);
|
|
3273
3287
|
},
|
|
3274
3288
|
{ immediate: !0 }
|
|
3275
3289
|
);
|
|
3276
|
-
const V =
|
|
3277
|
-
|
|
3278
|
-
)), ee = async (
|
|
3290
|
+
const V = K("ONYX_CHECK_ALL"), T = f(() => (e.multiple && e.withCheckAll && !u.value ? [V] : []).concat(
|
|
3291
|
+
Ze.value
|
|
3292
|
+
)), ee = async (C) => {
|
|
3279
3293
|
var I, N;
|
|
3280
3294
|
if (e.readonly) {
|
|
3281
|
-
|
|
3295
|
+
c.value = !1;
|
|
3282
3296
|
return;
|
|
3283
3297
|
}
|
|
3284
|
-
|
|
3285
|
-
}, L = () =>
|
|
3286
|
-
const I = T.value.findIndex((N) => N ===
|
|
3287
|
-
I < T.value.length - 1 && (
|
|
3288
|
-
},
|
|
3289
|
-
const I = T.value.findIndex((N) => N ===
|
|
3290
|
-
I > 0 && (
|
|
3291
|
-
},
|
|
3292
|
-
const I = e.options.find((N) => N.label.toLowerCase().trim().startsWith(
|
|
3293
|
-
I && (
|
|
3294
|
-
},
|
|
3295
|
-
var
|
|
3296
|
-
if (
|
|
3297
|
-
(
|
|
3298
|
+
c.value = !c.value, c.value ? (await Ht(), (N = h.value) == null || N.focus()) : (u.value && (u.value = ""), C || (I = w.value) == null || I.focus());
|
|
3299
|
+
}, L = () => m.value = T.value.at(0), H = () => m.value = T.value.at(-1), Y = (C) => {
|
|
3300
|
+
const I = T.value.findIndex((N) => N === C);
|
|
3301
|
+
I < T.value.length - 1 && (m.value = T.value[I + 1]);
|
|
3302
|
+
}, se = (C) => {
|
|
3303
|
+
const I = T.value.findIndex((N) => N === C);
|
|
3304
|
+
I > 0 && (m.value = T.value[I - 1]);
|
|
3305
|
+
}, be = (C) => {
|
|
3306
|
+
const I = e.options.find((N) => N.label.toLowerCase().trim().startsWith(C.toLowerCase()));
|
|
3307
|
+
I && (m.value = I.value);
|
|
3308
|
+
}, de = (C) => u.value = C, ge = (C) => {
|
|
3309
|
+
var W;
|
|
3310
|
+
if (C === V) {
|
|
3311
|
+
(W = me.value) == null || W.handleChange(!me.value.state.value.modelValue);
|
|
3298
3312
|
return;
|
|
3299
3313
|
}
|
|
3300
|
-
const I = e.options.find(({ value: q }) => q ===
|
|
3314
|
+
const I = e.options.find(({ value: q }) => q === C);
|
|
3301
3315
|
if (!I)
|
|
3302
3316
|
return;
|
|
3303
3317
|
if (!e.multiple)
|
|
3304
3318
|
return o("update:modelValue", I);
|
|
3305
|
-
y.value.some(({ value: q }) => q ===
|
|
3319
|
+
y.value.some(({ value: q }) => q === C) ? o(
|
|
3306
3320
|
"update:modelValue",
|
|
3307
|
-
y.value.filter(({ value: q }) => q !==
|
|
3321
|
+
y.value.filter(({ value: q }) => q !== C)
|
|
3308
3322
|
) : o("update:modelValue", [...y.value, I]);
|
|
3309
|
-
},
|
|
3310
|
-
elements: { input:
|
|
3323
|
+
}, ke = f(() => e.withSearch ? "list" : "none"), {
|
|
3324
|
+
elements: { input: re, option: pe, group: we, listbox: Ce }
|
|
3311
3325
|
} = oo({
|
|
3312
|
-
autocomplete:
|
|
3326
|
+
autocomplete: ke,
|
|
3313
3327
|
label: e.label,
|
|
3314
3328
|
listLabel: e.listLabel,
|
|
3315
|
-
inputValue:
|
|
3316
|
-
activeOption:
|
|
3317
|
-
multiple:
|
|
3318
|
-
isExpanded:
|
|
3319
|
-
templateRef:
|
|
3329
|
+
inputValue: f(() => e.withSearch && u.value || ""),
|
|
3330
|
+
activeOption: f(() => m.value),
|
|
3331
|
+
multiple: f(() => e.multiple),
|
|
3332
|
+
isExpanded: c,
|
|
3333
|
+
templateRef: p,
|
|
3320
3334
|
onToggle: ee,
|
|
3321
3335
|
onActivateFirst: L,
|
|
3322
3336
|
onActivateLast: H,
|
|
3323
|
-
onActivateNext:
|
|
3324
|
-
onActivatePrevious:
|
|
3325
|
-
onTypeAhead:
|
|
3326
|
-
onAutocomplete:
|
|
3327
|
-
onSelect:
|
|
3328
|
-
}),
|
|
3329
|
-
enabled:
|
|
3330
|
-
var
|
|
3331
|
-
return ((
|
|
3337
|
+
onActivateNext: Y,
|
|
3338
|
+
onActivatePrevious: se,
|
|
3339
|
+
onTypeAhead: be,
|
|
3340
|
+
onAutocomplete: de,
|
|
3341
|
+
onSelect: ge
|
|
3342
|
+
}), $e = f(() => Va(e.options, "group")), { vScrollEnd: O, isScrollEnd: Me } = Il({
|
|
3343
|
+
enabled: f(() => {
|
|
3344
|
+
var C;
|
|
3345
|
+
return ((C = e.lazyLoading) == null ? void 0 : C.enabled) ?? !1;
|
|
3332
3346
|
}),
|
|
3333
|
-
loading:
|
|
3334
|
-
offset:
|
|
3335
|
-
var
|
|
3336
|
-
return (
|
|
3347
|
+
loading: f(() => e.loading),
|
|
3348
|
+
offset: f(() => {
|
|
3349
|
+
var C;
|
|
3350
|
+
return (C = e.lazyLoading) == null ? void 0 : C.scrollOffset;
|
|
3337
3351
|
})
|
|
3338
|
-
}),
|
|
3352
|
+
}), Se = f(() => {
|
|
3339
3353
|
if (!e.options.length)
|
|
3340
|
-
return e.withSearch && u.value ?
|
|
3341
|
-
}),
|
|
3342
|
-
() => e.options.filter((
|
|
3343
|
-
),
|
|
3354
|
+
return e.withSearch && u.value ? r.value("select.noMatch") : r.value("select.empty");
|
|
3355
|
+
}), Ze = f(
|
|
3356
|
+
() => e.options.filter((C) => !C.disabled).map(({ value: C }) => C)
|
|
3357
|
+
), me = f(() => {
|
|
3344
3358
|
if (!(!e.multiple || !e.withCheckAll))
|
|
3345
|
-
return
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
(
|
|
3349
|
-
const I =
|
|
3359
|
+
return ut(
|
|
3360
|
+
Ze,
|
|
3361
|
+
f(() => y.value.map(({ value: C }) => C)),
|
|
3362
|
+
(C) => {
|
|
3363
|
+
const I = C.map((N) => e.options.find(({ value: W }) => W === N)).filter((N) => N != null);
|
|
3350
3364
|
o("update:modelValue", I);
|
|
3351
3365
|
}
|
|
3352
3366
|
);
|
|
3353
|
-
}),
|
|
3367
|
+
}), Ge = f(() => {
|
|
3354
3368
|
var I;
|
|
3355
3369
|
if (!e.multiple)
|
|
3356
3370
|
return "";
|
|
3357
|
-
const
|
|
3358
|
-
return typeof e.withCheckAll == "boolean" ?
|
|
3371
|
+
const C = r.value("selections.selectAll");
|
|
3372
|
+
return typeof e.withCheckAll == "boolean" ? C : ((I = e.withCheckAll) == null ? void 0 : I.label) ?? C;
|
|
3359
3373
|
});
|
|
3360
3374
|
J(() => {
|
|
3361
|
-
|
|
3375
|
+
Me.value && o("lazyLoad");
|
|
3362
3376
|
});
|
|
3363
|
-
const
|
|
3364
|
-
const
|
|
3377
|
+
const Bt = f(() => {
|
|
3378
|
+
const C = {
|
|
3365
3379
|
...e,
|
|
3366
3380
|
modelValue: y.value
|
|
3367
3381
|
};
|
|
3368
|
-
return e.withSearch ? { ...
|
|
3382
|
+
return e.withSearch ? { ...C, onKeydown: re.value.onKeydown } : { ...C, ...re.value };
|
|
3369
3383
|
});
|
|
3370
|
-
return (
|
|
3384
|
+
return (C, I) => {
|
|
3371
3385
|
var N;
|
|
3372
|
-
return s(),
|
|
3386
|
+
return s(), d("div", {
|
|
3373
3387
|
ref_key: "selectRef",
|
|
3374
|
-
ref:
|
|
3388
|
+
ref: p,
|
|
3375
3389
|
class: "onyx-select-wrapper"
|
|
3376
3390
|
}, [
|
|
3377
|
-
|
|
3391
|
+
M(Pl, B({
|
|
3378
3392
|
ref_key: "selectInput",
|
|
3379
|
-
ref:
|
|
3380
|
-
},
|
|
3381
|
-
"show-focus":
|
|
3393
|
+
ref: w
|
|
3394
|
+
}, Bt.value, {
|
|
3395
|
+
"show-focus": i(c),
|
|
3382
3396
|
autofocus: e.autofocus,
|
|
3383
3397
|
onClick: ee,
|
|
3384
|
-
onValidityChange: I[0] || (I[0] = (
|
|
3398
|
+
onValidityChange: I[0] || (I[0] = (W) => o("validityChange", W))
|
|
3385
3399
|
}), null, 16, ["show-focus", "autofocus"]),
|
|
3386
|
-
|
|
3387
|
-
class: g(["onyx-select",
|
|
3388
|
-
inert: !
|
|
3400
|
+
v("div", {
|
|
3401
|
+
class: g(["onyx-select", i(n), i(c) ? "onyx-select--open" : ""]),
|
|
3402
|
+
inert: !i(c),
|
|
3389
3403
|
"aria-busy": e.loading
|
|
3390
3404
|
}, [
|
|
3391
|
-
|
|
3392
|
-
e.withSearch ? (s(), x(
|
|
3405
|
+
j((s(), d("div", Rl, [
|
|
3406
|
+
e.withSearch ? (s(), x(ko, B({
|
|
3393
3407
|
key: 0,
|
|
3394
3408
|
ref_key: "miniSearch",
|
|
3395
3409
|
ref: h
|
|
3396
|
-
},
|
|
3397
|
-
label: r
|
|
3410
|
+
}, i(re), {
|
|
3411
|
+
label: i(r)("select.searchInputLabel"),
|
|
3398
3412
|
class: "onyx-select__search",
|
|
3399
|
-
onClear: I[1] || (I[1] = (
|
|
3413
|
+
onClear: I[1] || (I[1] = (W) => u.value = "")
|
|
3400
3414
|
}), null, 16, ["label"])) : _("", !0),
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
b(
|
|
3405
|
-
|
|
3415
|
+
v("div", te(ae(i(Ce))), [
|
|
3416
|
+
Se.value ? (s(), d("ul", Ul, [
|
|
3417
|
+
v("li", Fl, [
|
|
3418
|
+
b(C.$slots, "empty", { defaultMessage: Se.value }, () => [
|
|
3419
|
+
M(pt, null, {
|
|
3406
3420
|
default: $(() => [
|
|
3407
|
-
U(
|
|
3421
|
+
U(S(Se.value), 1)
|
|
3408
3422
|
]),
|
|
3409
3423
|
_: 1
|
|
3410
3424
|
})
|
|
3411
3425
|
])
|
|
3412
3426
|
])
|
|
3413
|
-
])) : (s(!0),
|
|
3414
|
-
var
|
|
3415
|
-
return s(),
|
|
3427
|
+
])) : (s(!0), d(z, { key: 1 }, X($e.value, (W, q) => {
|
|
3428
|
+
var Ke, je;
|
|
3429
|
+
return s(), d("ul", B({
|
|
3416
3430
|
key: q,
|
|
3417
3431
|
class: "onyx-select__group",
|
|
3418
3432
|
ref_for: !0
|
|
3419
|
-
},
|
|
3420
|
-
q != "" ? (s(),
|
|
3421
|
-
e.multiple && e.withCheckAll && !
|
|
3433
|
+
}, i(we)({ label: q })), [
|
|
3434
|
+
q != "" ? (s(), d("li", ql, S(q), 1)) : _("", !0),
|
|
3435
|
+
e.multiple && e.withCheckAll && !i(u) ? (s(), x(tt, B(
|
|
3422
3436
|
{
|
|
3423
3437
|
key: 1,
|
|
3424
3438
|
ref_for: !0
|
|
3425
3439
|
},
|
|
3426
|
-
|
|
3427
|
-
value:
|
|
3428
|
-
label:
|
|
3429
|
-
selected: (
|
|
3440
|
+
i(pe)({
|
|
3441
|
+
value: i(V),
|
|
3442
|
+
label: Ge.value,
|
|
3443
|
+
selected: (Ke = me.value) == null ? void 0 : Ke.state.value.modelValue
|
|
3430
3444
|
}),
|
|
3431
3445
|
{
|
|
3432
3446
|
multiple: "",
|
|
3433
|
-
active:
|
|
3434
|
-
indeterminate: (
|
|
3447
|
+
active: i(V) === m.value,
|
|
3448
|
+
indeterminate: (je = me.value) == null ? void 0 : je.state.value.indeterminate,
|
|
3435
3449
|
density: e.density,
|
|
3436
3450
|
class: "onyx-select__check-all"
|
|
3437
3451
|
}
|
|
3438
3452
|
), {
|
|
3439
3453
|
default: $(() => [
|
|
3440
|
-
U(
|
|
3454
|
+
U(S(Ge.value), 1)
|
|
3441
3455
|
]),
|
|
3442
3456
|
_: 1
|
|
3443
3457
|
}, 16, ["active", "indeterminate", "density"])) : _("", !0),
|
|
3444
|
-
(s(!0),
|
|
3458
|
+
(s(!0), d(z, null, X(W, (Z) => (s(), x(tt, B(
|
|
3445
3459
|
{
|
|
3446
3460
|
key: Z.value.toString(),
|
|
3447
3461
|
ref_for: !0
|
|
3448
3462
|
},
|
|
3449
|
-
|
|
3463
|
+
i(pe)({
|
|
3450
3464
|
value: Z.value,
|
|
3451
3465
|
label: Z.label,
|
|
3452
3466
|
disabled: Z.disabled,
|
|
3453
|
-
selected: y.value.some(({ value:
|
|
3467
|
+
selected: y.value.some(({ value: Ot }) => Ot === Z.value)
|
|
3454
3468
|
}),
|
|
3455
3469
|
{
|
|
3456
3470
|
multiple: e.multiple,
|
|
3457
|
-
active: Z.value ===
|
|
3471
|
+
active: Z.value === m.value,
|
|
3458
3472
|
icon: Z.icon,
|
|
3459
3473
|
density: e.density,
|
|
3460
3474
|
truncation: Z.truncation ?? e.truncation
|
|
3461
3475
|
}
|
|
3462
3476
|
), {
|
|
3463
3477
|
default: $(() => [
|
|
3464
|
-
b(
|
|
3465
|
-
U(
|
|
3478
|
+
b(C.$slots, "option", B({ ref_for: !0 }, Z), () => [
|
|
3479
|
+
U(S(Z.label), 1)
|
|
3466
3480
|
])
|
|
3467
3481
|
]),
|
|
3468
3482
|
_: 2
|
|
@@ -3470,20 +3484,20 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
3470
3484
|
], 16);
|
|
3471
3485
|
}), 128))
|
|
3472
3486
|
], 16),
|
|
3473
|
-
(N = e.lazyLoading) != null && N.loading ? (s(),
|
|
3474
|
-
|
|
3487
|
+
(N = e.lazyLoading) != null && N.loading ? (s(), d("div", Zl, [
|
|
3488
|
+
M(Q, { class: "onyx-select__loading" })
|
|
3475
3489
|
])) : _("", !0),
|
|
3476
|
-
l.optionsEnd ? (s(),
|
|
3477
|
-
b(
|
|
3490
|
+
l.optionsEnd ? (s(), d("div", Gl, [
|
|
3491
|
+
b(C.$slots, "optionsEnd")
|
|
3478
3492
|
])) : _("", !0)
|
|
3479
3493
|
])), [
|
|
3480
|
-
[
|
|
3494
|
+
[i(O)]
|
|
3481
3495
|
])
|
|
3482
|
-
], 10,
|
|
3496
|
+
], 10, zl)
|
|
3483
3497
|
], 512);
|
|
3484
3498
|
};
|
|
3485
3499
|
}
|
|
3486
|
-
}),
|
|
3500
|
+
}), Qn = ["summary", "preview"], Kl = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m21.311 10.793-8.293 8.293-3.291-3.292-1.415 1.415 4.706 4.705 9.707-9.707z"/></svg>', jl = { class: "onyx-switch-skeleton__click-area" }, Yl = ["title"], Wl = ["aria-label", "disabled", "required", "autofocus"], Xl = { class: "onyx-switch__click-area" }, Jl = { class: "onyx-switch__container" }, Ql = { class: "onyx-switch__icon" }, en = /* @__PURE__ */ v("div", { class: "onyx-switch__frame" }, null, -1), es = /* @__PURE__ */ k({
|
|
3487
3501
|
__name: "OnyxSwitch",
|
|
3488
3502
|
props: {
|
|
3489
3503
|
density: {},
|
|
@@ -3501,30 +3515,30 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
3501
3515
|
},
|
|
3502
3516
|
emits: ["update:modelValue", "validityChange"],
|
|
3503
3517
|
setup(t, { emit: a }) {
|
|
3504
|
-
const e = t, o = a, { requiredMarkerClass: n, requiredTypeClass: l } =
|
|
3518
|
+
const e = t, o = a, { requiredMarkerClass: n, requiredTypeClass: l } = _e(e), { densityClass: r } = D(e), { vCustomValidity: u } = le({ props: e, emit: o }), c = f({
|
|
3505
3519
|
get: () => e.modelValue,
|
|
3506
|
-
set: (
|
|
3507
|
-
o("update:modelValue",
|
|
3520
|
+
set: (p) => {
|
|
3521
|
+
o("update:modelValue", p);
|
|
3508
3522
|
}
|
|
3509
3523
|
});
|
|
3510
|
-
return (
|
|
3524
|
+
return (p, m) => e.skeleton ? (s(), d("div", {
|
|
3511
3525
|
key: 0,
|
|
3512
|
-
class: g(["onyx-switch-skeleton", r
|
|
3526
|
+
class: g(["onyx-switch-skeleton", i(r)])
|
|
3513
3527
|
}, [
|
|
3514
|
-
|
|
3515
|
-
|
|
3528
|
+
v("span", jl, [
|
|
3529
|
+
M(R, { class: "onyx-switch-skeleton__input" })
|
|
3516
3530
|
]),
|
|
3517
3531
|
e.hideLabel ? _("", !0) : (s(), x(R, {
|
|
3518
3532
|
key: 0,
|
|
3519
3533
|
class: "onyx-switch-skeleton__label"
|
|
3520
3534
|
}))
|
|
3521
|
-
], 2)) : (s(),
|
|
3535
|
+
], 2)) : (s(), d("label", {
|
|
3522
3536
|
key: 1,
|
|
3523
|
-
class: g(["onyx-switch", [
|
|
3537
|
+
class: g(["onyx-switch", [i(l), i(r)]]),
|
|
3524
3538
|
title: e.hideLabel ? e.label : void 0
|
|
3525
3539
|
}, [
|
|
3526
|
-
|
|
3527
|
-
"onUpdate:modelValue":
|
|
3540
|
+
j(v("input", {
|
|
3541
|
+
"onUpdate:modelValue": m[0] || (m[0] = (y) => c.value = y),
|
|
3528
3542
|
type: "checkbox",
|
|
3529
3543
|
role: "switch",
|
|
3530
3544
|
class: g({ "onyx-switch__input": !0, "onyx-switch__loading": e.loading }),
|
|
@@ -3532,43 +3546,43 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
3532
3546
|
disabled: e.disabled || e.loading,
|
|
3533
3547
|
required: e.required,
|
|
3534
3548
|
autofocus: e.autofocus
|
|
3535
|
-
}, null, 10,
|
|
3536
|
-
[
|
|
3537
|
-
[
|
|
3549
|
+
}, null, 10, Wl), [
|
|
3550
|
+
[ot, c.value],
|
|
3551
|
+
[i(u)]
|
|
3538
3552
|
]),
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
e.loading ? (s(), x(
|
|
3553
|
+
v("span", Xl, [
|
|
3554
|
+
v("span", Jl, [
|
|
3555
|
+
v("span", Ql, [
|
|
3556
|
+
e.loading ? (s(), x(i(Q), {
|
|
3543
3557
|
key: 0,
|
|
3544
3558
|
class: "onyx-switch__spinner",
|
|
3545
3559
|
type: "circle"
|
|
3546
|
-
})) : (s(), x(
|
|
3560
|
+
})) : (s(), x(i(A), {
|
|
3547
3561
|
key: 1,
|
|
3548
|
-
icon:
|
|
3562
|
+
icon: c.value ? i(Kl) : i(qe)
|
|
3549
3563
|
}, null, 8, ["icon"]))
|
|
3550
3564
|
]),
|
|
3551
|
-
|
|
3565
|
+
en
|
|
3552
3566
|
])
|
|
3553
3567
|
]),
|
|
3554
|
-
e.hideLabel ? _("", !0) : (s(),
|
|
3568
|
+
e.hideLabel ? _("", !0) : (s(), d("span", {
|
|
3555
3569
|
key: 0,
|
|
3556
3570
|
class: g(["onyx-switch__label", [
|
|
3557
3571
|
`onyx-truncation-${e.truncation}`,
|
|
3558
3572
|
// shows the required marker inline for multiline labels
|
|
3559
|
-
e.truncation === "multiline" ?
|
|
3573
|
+
e.truncation === "multiline" ? i(n) : void 0
|
|
3560
3574
|
]])
|
|
3561
|
-
},
|
|
3562
|
-
e.truncation === "ellipsis" ? (s(),
|
|
3575
|
+
}, S(e.label), 3)),
|
|
3576
|
+
e.truncation === "ellipsis" ? (s(), d("div", {
|
|
3563
3577
|
key: 1,
|
|
3564
|
-
class: g(["onyx-switch__marker", [
|
|
3578
|
+
class: g(["onyx-switch__marker", [i(n)]])
|
|
3565
3579
|
}, null, 2)) : _("", !0)
|
|
3566
|
-
], 10,
|
|
3580
|
+
], 10, Yl));
|
|
3567
3581
|
}
|
|
3568
|
-
}),
|
|
3582
|
+
}), tn = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2" viewBox="0 0 24 24"><path d="M8.25 17.25h-4.5V6.008h4.5zm-3-1.5h1.5V7.508h-1.5zm14.273 1.958c.457-.668.727-1.47.727-2.333 0-.127-.008-.255-.023-.375V4.508h-4.5v6.765a4.3 4.3 0 0 0-1.5.442V8.258h-4.5v8.992h2.716a4.13 4.13 0 0 0 3.667 2.25c.863 0 1.672-.27 2.332-.727l2.76 2.76 1.058-1.058-2.76-2.76zm-.788-11.7v6.18a4.1 4.1 0 0 0-1.492-.773v-5.4h1.492zm-7.492 9.742V9.758h1.5v3.292a4.1 4.1 0 0 0-.735 2.325c0 .127.007.255.022.375zM16.124 18a2.643 2.643 0 0 1-2.625-2.625 2.643 2.643 0 0 1 2.625-2.625 2.643 2.643 0 0 1 2.625 2.625A2.64 2.64 0 0 1 16.125 18" style="fill-rule:nonzero"/></svg>', an = { class: "onyx-table-wrapper" }, on = ["tabindex"], ln = {
|
|
3569
3583
|
key: 0,
|
|
3570
3584
|
class: "onyx-table__header"
|
|
3571
|
-
},
|
|
3585
|
+
}, nn = { class: "onyx-table__empty" }, sn = { colspan: "100%" }, rn = { class: "onyx-table__empty-content" }, ts = /* @__PURE__ */ k({
|
|
3572
3586
|
__name: "OnyxTable",
|
|
3573
3587
|
props: {
|
|
3574
3588
|
density: {},
|
|
@@ -3577,37 +3591,37 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
3577
3591
|
withPageScrolling: { type: Boolean, default: !1 }
|
|
3578
3592
|
},
|
|
3579
3593
|
setup(t) {
|
|
3580
|
-
const a = t, e = F(), { t: o } = P(), { densityClass: n } = D(a), l =
|
|
3581
|
-
return (
|
|
3582
|
-
|
|
3594
|
+
const a = t, e = F(), { t: o } = P(), { densityClass: n } = D(a), l = f(() => o.value("table.empty"));
|
|
3595
|
+
return (r, u) => (s(), d("div", an, [
|
|
3596
|
+
v("div", {
|
|
3583
3597
|
class: g({ "onyx-table-wrapper__scroll-container": !a.withPageScrolling }),
|
|
3584
3598
|
tabindex: a.withPageScrolling ? void 0 : 0
|
|
3585
3599
|
}, [
|
|
3586
|
-
|
|
3600
|
+
v("table", {
|
|
3587
3601
|
class: g(["onyx-table onyx-text", [
|
|
3588
3602
|
a.striped ? "onyx-table--striped" : "",
|
|
3589
3603
|
a.withVerticalBorders ? "onyx-table--vertical-borders" : "",
|
|
3590
|
-
|
|
3604
|
+
i(n)
|
|
3591
3605
|
]])
|
|
3592
3606
|
}, [
|
|
3593
|
-
e.head ? (s(),
|
|
3594
|
-
b(
|
|
3607
|
+
e.head ? (s(), d("thead", ln, [
|
|
3608
|
+
b(r.$slots, "head")
|
|
3595
3609
|
])) : _("", !0),
|
|
3596
|
-
|
|
3597
|
-
b(
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
b(
|
|
3602
|
-
|
|
3610
|
+
v("tbody", null, [
|
|
3611
|
+
b(r.$slots, "default", {}, () => [
|
|
3612
|
+
v("tr", nn, [
|
|
3613
|
+
v("td", sn, [
|
|
3614
|
+
v("div", rn, [
|
|
3615
|
+
b(r.$slots, "empty", { defaultMessage: l.value }, () => [
|
|
3616
|
+
M(pt, null, {
|
|
3603
3617
|
icon: $(() => [
|
|
3604
|
-
|
|
3605
|
-
icon:
|
|
3618
|
+
M(A, {
|
|
3619
|
+
icon: i(tn),
|
|
3606
3620
|
size: "48px"
|
|
3607
3621
|
}, null, 8, ["icon"])
|
|
3608
3622
|
]),
|
|
3609
3623
|
default: $(() => [
|
|
3610
|
-
U(" " +
|
|
3624
|
+
U(" " + S(l.value), 1)
|
|
3611
3625
|
]),
|
|
3612
3626
|
_: 1
|
|
3613
3627
|
})
|
|
@@ -3618,10 +3632,10 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
3618
3632
|
])
|
|
3619
3633
|
])
|
|
3620
3634
|
], 2)
|
|
3621
|
-
], 10,
|
|
3635
|
+
], 10, on)
|
|
3622
3636
|
]));
|
|
3623
3637
|
}
|
|
3624
|
-
}),
|
|
3638
|
+
}), cn = { class: "onyx-text onyx-truncation-ellipsis" }, as = /* @__PURE__ */ k({
|
|
3625
3639
|
__name: "OnyxTag",
|
|
3626
3640
|
props: {
|
|
3627
3641
|
density: {},
|
|
@@ -3631,18 +3645,18 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
3631
3645
|
},
|
|
3632
3646
|
setup(t) {
|
|
3633
3647
|
const a = t, { densityClass: e } = D(a);
|
|
3634
|
-
return (o, n) => (s(),
|
|
3635
|
-
class: g(["onyx-tag", `onyx-tag--${a.color}`,
|
|
3648
|
+
return (o, n) => (s(), d("div", {
|
|
3649
|
+
class: g(["onyx-tag", `onyx-tag--${a.color}`, i(e)])
|
|
3636
3650
|
}, [
|
|
3637
3651
|
a.icon ? (s(), x(A, {
|
|
3638
3652
|
key: 0,
|
|
3639
3653
|
icon: a.icon,
|
|
3640
3654
|
size: "16px"
|
|
3641
3655
|
}, null, 8, ["icon"])) : _("", !0),
|
|
3642
|
-
|
|
3656
|
+
v("span", cn, S(a.label), 1)
|
|
3643
3657
|
], 2));
|
|
3644
3658
|
}
|
|
3645
|
-
}),
|
|
3659
|
+
}), un = ["data-autosize-value"], dn = ["id", "placeholder", "required", "autocapitalize", "autofocus", "name", "readonly", "disabled", "minlength", "maxlength", "aria-label", "title"], os = /* @__PURE__ */ k({
|
|
3646
3660
|
__name: "OnyxTextarea",
|
|
3647
3661
|
props: {
|
|
3648
3662
|
density: {},
|
|
@@ -3670,44 +3684,45 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
3670
3684
|
},
|
|
3671
3685
|
emits: ["update:modelValue", "change", "focus", "blur", "validityChange"],
|
|
3672
3686
|
setup(t, { emit: a }) {
|
|
3673
|
-
const e = t, o = a, { vCustomValidity: n, errorMessages: l } = le({ props: e, emit: o }), { densityClass:
|
|
3687
|
+
const e = t, o = a, { vCustomValidity: n, errorMessages: l } = le({ props: e, emit: o }), { densityClass: r } = D(e), u = f({
|
|
3674
3688
|
get: () => e.modelValue,
|
|
3675
3689
|
set: (y) => o("update:modelValue", y)
|
|
3676
|
-
}),
|
|
3690
|
+
}), c = (y) => {
|
|
3677
3691
|
const h = y.target.value;
|
|
3678
3692
|
o("change", h);
|
|
3679
|
-
},
|
|
3693
|
+
}, p = f(() => {
|
|
3680
3694
|
if (!e.autosize) return;
|
|
3681
3695
|
const y = e.autosize.min ? Math.max(e.autosize.min, 2) : void 0, h = e.autosize.max;
|
|
3682
3696
|
return [y ? `--min-autosize-rows: ${y}` : "", `--max-autosize-rows: ${h ?? "unset"}`];
|
|
3683
|
-
}),
|
|
3684
|
-
var
|
|
3697
|
+
}), m = (y) => {
|
|
3698
|
+
var w;
|
|
3685
3699
|
const h = y.target;
|
|
3686
|
-
(
|
|
3700
|
+
(w = h.parentElement) == null || w.setAttribute("data-autosize-value", h.value);
|
|
3687
3701
|
};
|
|
3688
|
-
return (y, h) => e.skeleton ? (s(),
|
|
3702
|
+
return (y, h) => e.skeleton ? (s(), d("div", {
|
|
3689
3703
|
key: 0,
|
|
3690
|
-
class: g(["onyx-textarea-skeleton", r
|
|
3691
|
-
style:
|
|
3704
|
+
class: g(["onyx-textarea-skeleton", i(r)]),
|
|
3705
|
+
style: Ie(p.value)
|
|
3692
3706
|
}, [
|
|
3693
3707
|
e.hideLabel ? _("", !0) : (s(), x(R, {
|
|
3694
3708
|
key: 0,
|
|
3695
3709
|
class: "onyx-textarea-skeleton__label"
|
|
3696
3710
|
})),
|
|
3697
|
-
|
|
3698
|
-
], 6)) : (s(),
|
|
3711
|
+
M(R, { class: "onyx-textarea-skeleton__input" })
|
|
3712
|
+
], 6)) : (s(), d("div", {
|
|
3699
3713
|
key: 1,
|
|
3700
|
-
class: g(["onyx-textarea", r
|
|
3701
|
-
style:
|
|
3714
|
+
class: g(["onyx-textarea", i(r)]),
|
|
3715
|
+
style: Ie(p.value)
|
|
3702
3716
|
}, [
|
|
3703
|
-
|
|
3704
|
-
default: $(() => [
|
|
3705
|
-
|
|
3717
|
+
M(Ue, B(e, { "error-messages": i(l) }), {
|
|
3718
|
+
default: $(({ id: w }) => [
|
|
3719
|
+
v("div", {
|
|
3706
3720
|
class: "onyx-textarea__wrapper",
|
|
3707
3721
|
"data-autosize-value": u.value
|
|
3708
3722
|
}, [
|
|
3709
|
-
|
|
3710
|
-
|
|
3723
|
+
j(v("textarea", {
|
|
3724
|
+
id: w,
|
|
3725
|
+
"onUpdate:modelValue": h[0] || (h[0] = (V) => u.value = V),
|
|
3711
3726
|
class: g(["onyx-textarea__native", { "onyx-textarea__native--no-resize": e.disableManualResize }]),
|
|
3712
3727
|
placeholder: e.placeholder,
|
|
3713
3728
|
required: e.required,
|
|
@@ -3720,25 +3735,25 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
3720
3735
|
maxlength: e.maxlength,
|
|
3721
3736
|
"aria-label": e.hideLabel ? e.label : void 0,
|
|
3722
3737
|
title: e.hideLabel ? e.label : void 0,
|
|
3723
|
-
onInput:
|
|
3724
|
-
onChange:
|
|
3725
|
-
onFocus: h[1] || (h[1] = (
|
|
3726
|
-
onBlur: h[2] || (h[2] = (
|
|
3727
|
-
}, null, 42,
|
|
3728
|
-
[
|
|
3729
|
-
[
|
|
3738
|
+
onInput: m,
|
|
3739
|
+
onChange: c,
|
|
3740
|
+
onFocus: h[1] || (h[1] = (V) => o("focus")),
|
|
3741
|
+
onBlur: h[2] || (h[2] = (V) => o("blur"))
|
|
3742
|
+
}, null, 42, dn), [
|
|
3743
|
+
[lt, u.value],
|
|
3744
|
+
[i(n)]
|
|
3730
3745
|
])
|
|
3731
|
-
], 8,
|
|
3746
|
+
], 8, un)
|
|
3732
3747
|
]),
|
|
3733
3748
|
_: 1
|
|
3734
3749
|
}, 16, ["error-messages"])
|
|
3735
3750
|
], 6));
|
|
3736
3751
|
}
|
|
3737
|
-
}),
|
|
3752
|
+
}), pn = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M16 2C8.268 2 2 8.268 2 16s6.268 14 14 14 14-6.268 14-14S23.732 2 16 2m8.485 22.485A11.92 11.92 0 0 1 16 28C9.383 28 4 22.617 4 16S9.383 4 16 4s12 5.383 12 12c0 3.205-1.248 6.219-3.515 8.485"/><path d="M15 22h2v2h-2zm0-14h2v11h-2z"/></svg>', mn = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M16 2C8.268 2 2 8.268 2 16s6.268 14 14 14 14-6.268 14-14S23.732 2 16 2m0 26C9.383 28 4 22.617 4 16S9.383 4 16 4s12 5.383 12 12-5.383 12-12 12"/><path d="m12.987 19.063-3.291-3.292-1.414 1.415 4.705 4.706 9.707-9.708-1.414-1.414z"/></svg>', yn = { class: "onyx-toast-message__wrapper" }, hn = { class: "onyx-toast-message__content onyx-truncation-ellipsis" }, fn = { class: "onyx-toast-message__headline onyx-text" }, vn = { class: "onyx-truncation-ellipsis" }, _n = ["aria-label"], xn = {
|
|
3738
3753
|
key: 0,
|
|
3739
3754
|
class: "onyx-toast-message__description onyx-text--small onyx-truncation-multiline",
|
|
3740
3755
|
tabindex: "0"
|
|
3741
|
-
},
|
|
3756
|
+
}, bn = /* @__PURE__ */ k({
|
|
3742
3757
|
__name: "OnyxToastMessage",
|
|
3743
3758
|
props: {
|
|
3744
3759
|
density: {},
|
|
@@ -3751,55 +3766,55 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
3751
3766
|
},
|
|
3752
3767
|
emits: ["click", "close"],
|
|
3753
3768
|
setup(t, { emit: a }) {
|
|
3754
|
-
const e = t, o = a, { t: n } = P(), { densityClass: l } = D(e),
|
|
3755
|
-
neutral:
|
|
3756
|
-
danger:
|
|
3757
|
-
warning:
|
|
3758
|
-
success:
|
|
3759
|
-
},
|
|
3769
|
+
const e = t, o = a, { t: n } = P(), { densityClass: l } = D(e), r = f(() => e.duration > 0), u = {
|
|
3770
|
+
neutral: mt,
|
|
3771
|
+
danger: dt,
|
|
3772
|
+
warning: pn,
|
|
3773
|
+
success: mn
|
|
3774
|
+
}, c = f(() => {
|
|
3760
3775
|
if (e.icon !== !1)
|
|
3761
3776
|
return e.icon || u[e.color];
|
|
3762
3777
|
});
|
|
3763
|
-
return (
|
|
3764
|
-
class: g(["onyx-toast-message", [`onyx-toast-message--${e.color}`,
|
|
3778
|
+
return (p, m) => (s(), x(ue(e.clickable ? "button" : "div"), {
|
|
3779
|
+
class: g(["onyx-toast-message", [`onyx-toast-message--${e.color}`, i(l)]]),
|
|
3765
3780
|
role: e.color === "danger" || e.color === "warning" ? "alert" : "status",
|
|
3766
3781
|
"aria-label": e.clickable ? e.headline : void 0,
|
|
3767
|
-
onClick:
|
|
3782
|
+
onClick: m[2] || (m[2] = (y) => e.clickable && o("click"))
|
|
3768
3783
|
}, {
|
|
3769
3784
|
default: $(() => [
|
|
3770
|
-
|
|
3771
|
-
|
|
3785
|
+
v("div", yn, [
|
|
3786
|
+
c.value ? (s(), x(A, {
|
|
3772
3787
|
key: 0,
|
|
3773
|
-
icon:
|
|
3788
|
+
icon: c.value
|
|
3774
3789
|
}, null, 8, ["icon"])) : _("", !0),
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
e.clickable ? _("", !0) : (s(),
|
|
3790
|
+
v("div", hn, [
|
|
3791
|
+
v("div", fn, [
|
|
3792
|
+
v("span", vn, S(e.headline), 1),
|
|
3793
|
+
e.clickable ? _("", !0) : (s(), d("button", {
|
|
3779
3794
|
key: 0,
|
|
3780
3795
|
type: "button",
|
|
3781
|
-
"aria-label":
|
|
3796
|
+
"aria-label": i(n)("close"),
|
|
3782
3797
|
class: "onyx-toast-message__close",
|
|
3783
|
-
onClick:
|
|
3798
|
+
onClick: m[0] || (m[0] = (y) => o("close"))
|
|
3784
3799
|
}, [
|
|
3785
|
-
|
|
3786
|
-
], 8,
|
|
3800
|
+
M(A, { icon: i(qe) }, null, 8, ["icon"])
|
|
3801
|
+
], 8, _n))
|
|
3787
3802
|
]),
|
|
3788
|
-
e.description ? (s(),
|
|
3803
|
+
e.description ? (s(), d("p", xn, S(e.description), 1)) : _("", !0)
|
|
3789
3804
|
])
|
|
3790
3805
|
]),
|
|
3791
|
-
|
|
3806
|
+
r.value ? (s(), d("time", {
|
|
3792
3807
|
key: e.duration,
|
|
3793
3808
|
"aria-hidden": "true",
|
|
3794
3809
|
class: "onyx-toast-message__progress-bar",
|
|
3795
|
-
style:
|
|
3796
|
-
onAnimationend:
|
|
3810
|
+
style: Ie({ animationDuration: `${e.duration}ms` }),
|
|
3811
|
+
onAnimationend: m[1] || (m[1] = (y) => o("close"))
|
|
3797
3812
|
}, null, 36)) : _("", !0)
|
|
3798
3813
|
]),
|
|
3799
3814
|
_: 1
|
|
3800
3815
|
}, 8, ["class", "role", "aria-label"]));
|
|
3801
3816
|
}
|
|
3802
|
-
}),
|
|
3817
|
+
}), Vt = Symbol(), gn = () => {
|
|
3803
3818
|
let t = 1;
|
|
3804
3819
|
const a = E([]), e = (n) => {
|
|
3805
3820
|
const l = t++;
|
|
@@ -3813,126 +3828,126 @@ const R = /* @__PURE__ */ Ne(na, [["render", ra]]), ia = ["disabled", "type", "a
|
|
|
3813
3828
|
};
|
|
3814
3829
|
return {
|
|
3815
3830
|
// make toasts readonly so they can not be modified from the outside
|
|
3816
|
-
toasts:
|
|
3831
|
+
toasts: f(() => a.value),
|
|
3817
3832
|
show: e,
|
|
3818
3833
|
remove: o
|
|
3819
3834
|
};
|
|
3820
|
-
},
|
|
3835
|
+
}, kn = () => {
|
|
3821
3836
|
const t = () => {
|
|
3822
3837
|
console.warn(
|
|
3823
3838
|
'Trying to use "useToast()" before the toast provider has been provided. Make sure to "provide" it first.'
|
|
3824
3839
|
);
|
|
3825
3840
|
};
|
|
3826
|
-
return
|
|
3827
|
-
|
|
3841
|
+
return ce(
|
|
3842
|
+
Vt,
|
|
3828
3843
|
// provide fallback so "useToast()" does not return "undefined"
|
|
3829
3844
|
() => ({
|
|
3830
|
-
toasts:
|
|
3845
|
+
toasts: f(() => []),
|
|
3831
3846
|
show: t,
|
|
3832
3847
|
remove: t
|
|
3833
3848
|
}),
|
|
3834
3849
|
!0
|
|
3835
3850
|
);
|
|
3836
|
-
},
|
|
3851
|
+
}, wn = {
|
|
3837
3852
|
key: 0,
|
|
3838
3853
|
class: "onyx-toast",
|
|
3839
3854
|
role: "presentation",
|
|
3840
3855
|
"aria-live": "polite",
|
|
3841
3856
|
open: ""
|
|
3842
|
-
},
|
|
3857
|
+
}, ls = /* @__PURE__ */ k({
|
|
3843
3858
|
__name: "OnyxToast",
|
|
3844
3859
|
setup(t) {
|
|
3845
|
-
const a =
|
|
3846
|
-
return (e, o) =>
|
|
3847
|
-
(s(!0),
|
|
3860
|
+
const a = kn();
|
|
3861
|
+
return (e, o) => i(a).toasts.value.length ? (s(), d("dialog", wn, [
|
|
3862
|
+
(s(!0), d(z, null, X(i(a).toasts.value, ({ id: n, ...l }) => (s(), x(bn, B({
|
|
3848
3863
|
key: n,
|
|
3849
3864
|
ref_for: !0
|
|
3850
3865
|
}, l), null, 16))), 128))
|
|
3851
3866
|
])) : _("", !0);
|
|
3852
3867
|
}
|
|
3853
|
-
}),
|
|
3868
|
+
}), ns = ["top", "bottom"], ss = (t = {}) => ({
|
|
3854
3869
|
install: (a) => {
|
|
3855
3870
|
Ca(a, t.i18n);
|
|
3856
3871
|
const e = a.runWithContext(() => P());
|
|
3857
|
-
J(() =>
|
|
3872
|
+
J(() => Cn(e.t.value("optional"))), a.provide(Vt, gn());
|
|
3858
3873
|
}
|
|
3859
|
-
}),
|
|
3874
|
+
}), Cn = (t) => {
|
|
3860
3875
|
globalThis.document.body.style.setProperty("--onyx-global-optional-text", t);
|
|
3861
|
-
},
|
|
3862
|
-
const e =
|
|
3876
|
+
}, rs = (t, a) => {
|
|
3877
|
+
const e = at(t.toLowerCase()), o = at(a.toLowerCase());
|
|
3863
3878
|
return e.includes(o);
|
|
3864
|
-
},
|
|
3879
|
+
}, at = (t) => t.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
|
|
3865
3880
|
export {
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3881
|
+
Dn as AUTOCAPITALIZE,
|
|
3882
|
+
On as BUTTON_COLORS,
|
|
3883
|
+
En as BUTTON_MODES,
|
|
3884
|
+
Bn as BUTTON_TYPES,
|
|
3885
|
+
Vn as DENSITIES,
|
|
3886
|
+
jn as DIRECTIONS,
|
|
3887
|
+
In as HEADLINE_TYPES,
|
|
3888
|
+
Ln as ICON_SIZES,
|
|
3889
|
+
Hn as INPUT_TYPES,
|
|
3890
|
+
Nn as LINK_TARGETS,
|
|
3891
|
+
xe as MOBILE_NAV_BAR_INJECTION_KEY,
|
|
3892
|
+
Qn as MULTISELECT_TEXT_MODE,
|
|
3893
|
+
vl as ONYX_BREAKPOINTS,
|
|
3894
|
+
Zn as ONYX_COLORS,
|
|
3895
|
+
Mn as OnyxAppLayout,
|
|
3896
|
+
Ye as OnyxAvatar,
|
|
3897
|
+
Sn as OnyxAvatarStack,
|
|
3883
3898
|
Gt as OnyxBadge,
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3899
|
+
Le as OnyxButton,
|
|
3900
|
+
Ve as OnyxCheckbox,
|
|
3901
|
+
Tn as OnyxCheckboxGroup,
|
|
3902
|
+
zo as OnyxColorSchemeDialog,
|
|
3903
|
+
zn as OnyxColorSchemeMenuItem,
|
|
3889
3904
|
Na as OnyxDialog,
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3905
|
+
pt as OnyxEmpty,
|
|
3906
|
+
Re as OnyxExternalLinkIcon,
|
|
3907
|
+
Mt as OnyxFlyoutMenu,
|
|
3908
|
+
ie as OnyxHeadline,
|
|
3894
3909
|
A as OnyxIcon,
|
|
3895
3910
|
Za as OnyxIconButton,
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3911
|
+
Be as OnyxInfoTooltip,
|
|
3912
|
+
An as OnyxInput,
|
|
3913
|
+
Pn as OnyxLink,
|
|
3914
|
+
Fe as OnyxListItem,
|
|
3900
3915
|
Q as OnyxLoadingIndicator,
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3916
|
+
$t as OnyxMenuItem,
|
|
3917
|
+
ko as OnyxMiniSearch,
|
|
3918
|
+
Je as OnyxMobileNavButton,
|
|
3919
|
+
Eo as OnyxNavAppArea,
|
|
3920
|
+
Yn as OnyxNavBar,
|
|
3921
|
+
Rn as OnyxNavButton,
|
|
3922
|
+
Un as OnyxNavItem,
|
|
3923
|
+
Ko as OnyxNavSeparator,
|
|
3924
|
+
Wn as OnyxPageLayout,
|
|
3925
|
+
Qe as OnyxRadioButton,
|
|
3926
|
+
Xn as OnyxRadioGroup,
|
|
3927
|
+
Jn as OnyxSelect,
|
|
3928
|
+
Pl as OnyxSelectInput,
|
|
3929
|
+
tt as OnyxSelectOption,
|
|
3915
3930
|
R as OnyxSkeleton,
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3931
|
+
es as OnyxSwitch,
|
|
3932
|
+
ts as OnyxTable,
|
|
3933
|
+
as as OnyxTag,
|
|
3934
|
+
os as OnyxTextarea,
|
|
3935
|
+
Fn as OnyxTimer,
|
|
3936
|
+
ls as OnyxToast,
|
|
3937
|
+
bn as OnyxToastMessage,
|
|
3938
|
+
kt as OnyxTooltip,
|
|
3939
|
+
qn as OnyxUserMenu,
|
|
3940
|
+
wt as OnyxVisuallyHidden,
|
|
3941
|
+
Gn as TEXT_SIZES,
|
|
3942
|
+
Vt as TOAST_PROVIDER_INJECTION_KEY,
|
|
3943
|
+
ns as TOOLTIP_POSITIONS,
|
|
3944
|
+
Kn as TRUNCATION_TYPES,
|
|
3945
|
+
ss as createOnyx,
|
|
3946
|
+
gn as createToastProvider,
|
|
3947
|
+
rs as normalizedIncludes,
|
|
3933
3948
|
Ca as provideI18n,
|
|
3934
|
-
|
|
3949
|
+
Cn as syncGlobalOptionalText,
|
|
3935
3950
|
D as useDensity,
|
|
3936
|
-
|
|
3937
|
-
|
|
3951
|
+
Il as useScrollEnd,
|
|
3952
|
+
kn as useToast
|
|
3938
3953
|
};
|