sit-onyx 1.1.0-dev-20250929075001 → 1.1.0-dev-20250929145347
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/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { computed as m, provide as Re, inject as ve, toRef as
|
|
2
|
-
import { iconChevronDownSmall as Oa, iconCircleAttention as uo, iconXSmall as
|
|
1
|
+
import { computed as m, provide as Re, inject as ve, toRef as se, ref as V, watch as Y, defineComponent as A, watchEffect as Te, toRefs as ro, createElementBlock as f, openBlock as i, normalizeClass as I, unref as l, renderSlot as C, onMounted as Se, createBlock as _, resolveDynamicComponent as Ce, withCtx as S, createVNode as B, createElementVNode as y, withModifiers as Ae, readonly as Ct, reactive as io, onBeforeMount as Et, onBeforeUnmount as ht, useId as pe, toValue as Q, shallowRef as Pe, nextTick as Ye, useTemplateRef as J, createCommentVNode as k, createTextVNode as W, toDisplayString as T, normalizeProps as Ne, mergeProps as E, Fragment as G, isProxy as xa, toRaw as ka, useAttrs as wa, customRef as Sa, onUnmounted as It, normalizeStyle as Me, useSlots as ce, createSlots as _e, isRef as Ee, renderList as de, toHandlers as $a, resolveComponent as Ca, withDirectives as xe, guardReactiveProps as Ze, vShow as Yt, Teleport as st, vModelCheckbox as Qo, vModelText as co, h as le, vModelDynamic as en, withKeys as Oo, createStaticVNode as Ea, useModel as Ba } from "vue";
|
|
2
|
+
import { iconChevronDownSmall as Oa, iconCircleAttention as uo, iconXSmall as ze, iconX as po, iconMoreHorizontalSmall as tn, iconCircleCheck as Aa, iconCircleX as on, iconCircleInformation as Jt, iconUser as Ma, iconArrowSmallUpRight as Ta, iconChevronRightSmall as nn, iconArrowSmallLeft as an, iconHome as Ia, iconMoreHorizontal as Ao, iconSearch as La, iconCheck as Ra, iconSearchX as Va, iconChevronDownUp as Na, iconCheckSmall as bt, iconChevronLeftSmall as ln, iconPlusSmall as za, iconEyeDisabled as Da, iconListArrowUp as sn, iconListArrowDown as rn, iconArrowsSort as Fa, iconCircleBlock as Pa, iconFileDisabled as Ua, iconEyeClosed as Ha, iconEye as Ga, iconCircleContrast as qa, iconTranslate as Ka, iconMenu as ja, iconMoreVertical as cn, iconNotificationFlag as Wa, iconMinus as Ya, iconPlus as Ja, iconFile as Za, iconFilePdf as Xa, iconFileCsv as Qa, iconAudio as el, iconVideocam as tl, iconPicture as ol, iconFileRtf as nl, iconFilePpt as al, iconFileXls as ll, iconFileXlsx as sl, iconFileDoc as rl, iconFileGlobe as il, iconFileArchive as cl, iconFileText as ul, iconCloudArrowUp as dl, iconTrash as pl, iconShareIos as ml, iconArrowSmallRight as yl, iconSettings as fl, iconLogout as vl } from "@sit-onyx/icons";
|
|
3
3
|
const bp = ["compact", "default", "cozy"], F = (n) => ({
|
|
4
4
|
densityClass: m(() => ({ [`onyx-density-${n.density}`]: !!n.density }))
|
|
5
|
-
}), hl = void 0,
|
|
6
|
-
|
|
5
|
+
}), hl = void 0, un = Symbol(), ee = Symbol("SKELETON_INJECTED_SYMBOL"), dn = (n) => (t) => m(() => typeof t.skeleton != "symbol" ? t.skeleton : t.skeleton === ee && n?.skeleton === !0 ? 3 : !1), Lt = (n) => Re(un, dn(n)), bl = dn(), oe = (n) => ve(
|
|
6
|
+
un,
|
|
7
7
|
/** Default */
|
|
8
8
|
bl
|
|
9
9
|
)(n), ae = (n) => {
|
|
10
|
-
const t =
|
|
10
|
+
const t = se(n.props, n.key), e = () => typeof n.default == "function" ? n.default() : n.default, o = V(e());
|
|
11
11
|
Y(t, (s) => o.value = s);
|
|
12
12
|
const a = m({
|
|
13
13
|
get: () => t.value ?? o.value ?? e(),
|
|
@@ -16,7 +16,7 @@ const bp = ["compact", "default", "cozy"], F = (n) => ({
|
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
return a;
|
|
19
|
-
},
|
|
19
|
+
}, pn = Symbol(), gp = ["default", "nested-large", "nested-small", "card"], _p = /* @__PURE__ */ A({
|
|
20
20
|
__name: "OnyxAccordion",
|
|
21
21
|
props: {
|
|
22
22
|
density: {},
|
|
@@ -29,14 +29,14 @@ const bp = ["compact", "default", "cozy"], F = (n) => ({
|
|
|
29
29
|
emits: ["update:modelValue"],
|
|
30
30
|
setup(n, { emit: t }) {
|
|
31
31
|
const e = n, o = t, a = V([]);
|
|
32
|
-
|
|
32
|
+
Te(() => a.value = e.modelValue ?? []);
|
|
33
33
|
const s = ae({
|
|
34
34
|
// if modelValue is set by the user, it should be used instead of the internally managed open items
|
|
35
35
|
props: e,
|
|
36
36
|
emit: o,
|
|
37
37
|
key: "modelValue",
|
|
38
38
|
default: () => []
|
|
39
|
-
}), { disabled: r, exclusive: u } = ro(e), c =
|
|
39
|
+
}), { disabled: r, exclusive: u } = ro(e), c = oe(e), { densityClass: d } = F(e), p = (v, b) => {
|
|
40
40
|
if (!b) {
|
|
41
41
|
if (!s.value.includes(v)) return;
|
|
42
42
|
s.value = s.value.filter((h) => h !== v);
|
|
@@ -57,9 +57,9 @@ const bp = ["compact", "default", "cozy"], F = (n) => ({
|
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
{ immediate: !0 }
|
|
60
|
-
), Re(
|
|
61
|
-
openItems:
|
|
62
|
-
type:
|
|
60
|
+
), Re(pn, {
|
|
61
|
+
openItems: se(() => s.value),
|
|
62
|
+
type: se(() => e.type),
|
|
63
63
|
updateOpen: p,
|
|
64
64
|
disabled: r,
|
|
65
65
|
skeleton: c
|
|
@@ -80,7 +80,7 @@ const bp = ["compact", "default", "cozy"], F = (n) => ({
|
|
|
80
80
|
/* CLASS */
|
|
81
81
|
));
|
|
82
82
|
}
|
|
83
|
-
}),
|
|
83
|
+
}), Bt = {
|
|
84
84
|
"2xs": 320,
|
|
85
85
|
xs: 577,
|
|
86
86
|
sm: 769,
|
|
@@ -88,7 +88,7 @@ const bp = ["compact", "default", "cozy"], F = (n) => ({
|
|
|
88
88
|
lg: 1441,
|
|
89
89
|
xl: 1921
|
|
90
90
|
};
|
|
91
|
-
|
|
91
|
+
Bt.lg - 1, Bt.xl - 1;
|
|
92
92
|
const gl = ["innerHTML"], z = /* @__PURE__ */ A({
|
|
93
93
|
__name: "OnyxIcon",
|
|
94
94
|
props: {
|
|
@@ -121,7 +121,7 @@ const gl = ["innerHTML"], z = /* @__PURE__ */ A({
|
|
|
121
121
|
}, Z = /* @__PURE__ */ A({
|
|
122
122
|
__name: "OnyxSkeleton",
|
|
123
123
|
setup(n) {
|
|
124
|
-
return
|
|
124
|
+
return Se(() => wl("onyx-skeleton")), (t, e) => (i(), f("figure", Sl));
|
|
125
125
|
}
|
|
126
126
|
}), $l = ["open"], Cl = ["id", "tabindex", "aria-expanded", "aria-controls", "aria-disabled"], El = { class: "onyx-accordion-item__header-content" }, Bl = ["id", "aria-labelledby"], xp = /* @__PURE__ */ A({
|
|
127
127
|
__name: "OnyxAccordionItem",
|
|
@@ -132,7 +132,7 @@ const gl = ["innerHTML"], z = /* @__PURE__ */ A({
|
|
|
132
132
|
skeleton: { type: [Symbol, Boolean, Number], default: ee }
|
|
133
133
|
},
|
|
134
134
|
setup(n) {
|
|
135
|
-
const t = n, e = ve(
|
|
135
|
+
const t = n, e = ve(pn, void 0), o = m({
|
|
136
136
|
get: () => e?.openItems.value.includes(t.value),
|
|
137
137
|
set: (v) => e?.updateOpen(t.value, v)
|
|
138
138
|
});
|
|
@@ -142,7 +142,7 @@ const gl = ["innerHTML"], z = /* @__PURE__ */ A({
|
|
|
142
142
|
e?.updateOpen(v, e?.openItems.value.includes(v)), e?.updateOpen(b, !1);
|
|
143
143
|
}
|
|
144
144
|
);
|
|
145
|
-
const a =
|
|
145
|
+
const a = oe(t), { densityClass: s } = F(t), r = m(() => e?.disabled.value || t.disabled), u = m(() => e?.type.value ?? "default"), c = m(() => `header-${t.value.toString()}`), d = m(() => `panel-${t.value.toString()}`), p = m(() => a.value || e?.skeleton.value);
|
|
146
146
|
return (v, b) => p.value ? (i(), _(Ce(u.value === "card" ? Z : "div"), {
|
|
147
147
|
key: 0,
|
|
148
148
|
class: I([
|
|
@@ -176,7 +176,7 @@ const gl = ["innerHTML"], z = /* @__PURE__ */ A({
|
|
|
176
176
|
"aria-expanded": o.value,
|
|
177
177
|
"aria-controls": d.value,
|
|
178
178
|
"aria-disabled": r.value,
|
|
179
|
-
onClick: b[0] || (b[0] =
|
|
179
|
+
onClick: b[0] || (b[0] = Ae((h) => o.value = !o.value, ["prevent"]))
|
|
180
180
|
}, [
|
|
181
181
|
y("div", El, [
|
|
182
182
|
C(v.$slots, "header")
|
|
@@ -243,9 +243,9 @@ const gl = ["innerHTML"], z = /* @__PURE__ */ A({
|
|
|
243
243
|
globalFAB: ss
|
|
244
244
|
}, rs = {
|
|
245
245
|
decimal: { style: "decimal" }
|
|
246
|
-
},
|
|
247
|
-
const t =
|
|
248
|
-
let c =
|
|
246
|
+
}, mn = Symbol(), yn = (n = {}) => {
|
|
247
|
+
const t = Ct(se(n?.locale ?? "en-US")), e = m(() => n.messages?.[t.value] ?? Xt), o = m(() => (r, u = {}) => {
|
|
248
|
+
let c = Mo(r, e.value) ?? Mo(r, Xt) ?? "";
|
|
249
249
|
return c = cs(c, u.n), us(c, u);
|
|
250
250
|
}), a = m(() => (r, u) => new Intl.DateTimeFormat(
|
|
251
251
|
t.value,
|
|
@@ -256,15 +256,15 @@ const gl = ["innerHTML"], z = /* @__PURE__ */ A({
|
|
|
256
256
|
).format(r));
|
|
257
257
|
return {
|
|
258
258
|
// If the user provided a custom `t` function, it is used instead of the default.
|
|
259
|
-
t: n.t ?
|
|
259
|
+
t: n.t ? Ct(se(n.t)) : o,
|
|
260
260
|
locale: t,
|
|
261
261
|
d: a,
|
|
262
262
|
n: s
|
|
263
263
|
};
|
|
264
264
|
}, is = (n, t) => {
|
|
265
|
-
const e =
|
|
266
|
-
return n.provide(
|
|
267
|
-
}, q = () => ve(
|
|
265
|
+
const e = yn(t);
|
|
266
|
+
return n.provide(mn, e), e;
|
|
267
|
+
}, q = () => ve(mn, () => yn(), !0), Mo = (n, t) => {
|
|
268
268
|
const e = n.split(".").reduce((o, a) => !o || typeof o == "string" ? o : o[a], t);
|
|
269
269
|
return e && typeof e == "string" ? e : void 0;
|
|
270
270
|
}, cs = (n, t) => {
|
|
@@ -276,9 +276,9 @@ const gl = ["innerHTML"], z = /* @__PURE__ */ A({
|
|
|
276
276
|
if (!t) return n;
|
|
277
277
|
let e = Object.entries(t).reduce((o, [a, s]) => s === void 0 ? o : o.replace(new RegExp(`{${a}}`, "gi"), s.toString()), n);
|
|
278
278
|
return e = e.replace(/{'(.*?)'}/g, "$1"), e.replace(/{.*}\s?/gi, "");
|
|
279
|
-
},
|
|
280
|
-
function
|
|
281
|
-
const n =
|
|
279
|
+
}, Ge = (n) => n;
|
|
280
|
+
function To() {
|
|
281
|
+
const n = Pe();
|
|
282
282
|
return m({
|
|
283
283
|
set: (t) => {
|
|
284
284
|
n.value = t != null && "$el" in t ? t.$el : t;
|
|
@@ -288,7 +288,7 @@ function Io() {
|
|
|
288
288
|
}
|
|
289
289
|
const ds = (n, t) => Object.entries(n).every(
|
|
290
290
|
([e, o]) => t[e] === o
|
|
291
|
-
),
|
|
291
|
+
), fn = (n, t) => typeof t == "string" ? n.key === t : ds(
|
|
292
292
|
{ altKey: !1, ctrlKey: !1, metaKey: !1, shiftKey: !1, ...t },
|
|
293
293
|
n
|
|
294
294
|
), ps = new Intl.Segmenter("en-US"), Qt = (n) => [...ps.segment(n)].length === 1, at = io(/* @__PURE__ */ new Map()), ms = (n, t) => {
|
|
@@ -296,26 +296,26 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
296
296
|
at.set(n, t);
|
|
297
297
|
return;
|
|
298
298
|
}
|
|
299
|
-
at.delete(n), document.removeEventListener(n,
|
|
300
|
-
},
|
|
299
|
+
at.delete(n), document.removeEventListener(n, vn);
|
|
300
|
+
}, Io = (n, t) => {
|
|
301
301
|
const e = at.get(n);
|
|
302
302
|
e?.delete(t), ms(n, e);
|
|
303
303
|
}, ys = (n, t) => {
|
|
304
304
|
const e = at.get(n) ?? /* @__PURE__ */ new Set();
|
|
305
|
-
e.add(t), at.set(n, e), document.addEventListener(n,
|
|
306
|
-
},
|
|
305
|
+
e.add(t), at.set(n, e), document.addEventListener(n, vn);
|
|
306
|
+
}, vn = (n) => {
|
|
307
307
|
const t = n.type;
|
|
308
308
|
at.get(t)?.forEach((e) => e(n));
|
|
309
|
-
},
|
|
309
|
+
}, Je = ({
|
|
310
310
|
type: n,
|
|
311
311
|
listener: t,
|
|
312
312
|
disabled: e
|
|
313
313
|
}) => {
|
|
314
|
-
|
|
315
|
-
() =>
|
|
316
|
-
() => e?.value ?
|
|
314
|
+
Et(
|
|
315
|
+
() => Te(
|
|
316
|
+
() => e?.value ? Io(n, t) : ys(n, t)
|
|
317
317
|
)
|
|
318
|
-
), ht(() =>
|
|
318
|
+
), ht(() => Io(n, t));
|
|
319
319
|
}, mo = ({
|
|
320
320
|
inside: n,
|
|
321
321
|
onOutsideClick: t,
|
|
@@ -327,33 +327,33 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
327
327
|
const u = Q(n);
|
|
328
328
|
return !(Array.isArray(u) ? u : [u]).some((d) => d?.contains(r));
|
|
329
329
|
};
|
|
330
|
-
|
|
330
|
+
Je({ type: "mousedown", listener: (r) => {
|
|
331
331
|
a(r.target) && t(r);
|
|
332
|
-
}, disabled: e }), o &&
|
|
332
|
+
}, disabled: e }), o && Je({ type: "keydown", listener: async (u) => {
|
|
333
333
|
u.key === "Tab" && (await new Promise((c) => setTimeout(c)), a(document.activeElement) && t(u));
|
|
334
334
|
}, disabled: e });
|
|
335
|
-
},
|
|
335
|
+
}, hn = (n, t) => {
|
|
336
336
|
let e;
|
|
337
337
|
const o = (...a) => {
|
|
338
338
|
clearTimeout(e), e = setTimeout(() => n(...a), Q(t));
|
|
339
339
|
};
|
|
340
340
|
return o.abort = () => clearTimeout(e), o;
|
|
341
|
-
},
|
|
341
|
+
}, bn = (n, t = 500) => {
|
|
342
342
|
let e = "";
|
|
343
|
-
const o =
|
|
343
|
+
const o = hn(() => e = "", t);
|
|
344
344
|
return (a) => {
|
|
345
345
|
Qt(a.key) && (o(), e = `${e}${a.key}`, n(e));
|
|
346
346
|
};
|
|
347
|
-
}, fs =
|
|
347
|
+
}, fs = Ge(
|
|
348
348
|
(n) => {
|
|
349
349
|
const t = m(() => l(n.multiple) ?? !1), e = m(() => l(n.isExpanded) ?? !1), o = /* @__PURE__ */ new Map(), a = (d) => (o.has(d) || o.set(d, pe()), o.get(d)), s = V(!1);
|
|
350
|
-
|
|
350
|
+
Te(async () => {
|
|
351
351
|
if (!e.value || n.activeOption.value == null || !s.value && !n.controlled)
|
|
352
352
|
return;
|
|
353
353
|
const d = a(n.activeOption.value);
|
|
354
|
-
await
|
|
354
|
+
await Ye(), document.getElementById(d)?.scrollIntoView({ block: "nearest", inline: "nearest" });
|
|
355
355
|
});
|
|
356
|
-
const r =
|
|
356
|
+
const r = bn((d) => n.onTypeAhead?.(d)), u = (d) => {
|
|
357
357
|
switch (d.key) {
|
|
358
358
|
case " ":
|
|
359
359
|
d.preventDefault(), n.activeOption.value != null && n.onSelect?.(n.activeOption.value);
|
|
@@ -428,15 +428,15 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
428
428
|
}
|
|
429
429
|
};
|
|
430
430
|
}
|
|
431
|
-
),
|
|
431
|
+
), gn = ["ArrowDown", "ArrowUp", " ", "Enter", "Home", "End"], _n = [
|
|
432
432
|
"Escape",
|
|
433
433
|
{ key: "ArrowUp", altKey: !0 },
|
|
434
434
|
"Enter",
|
|
435
435
|
"Tab"
|
|
436
|
-
],
|
|
437
|
-
const e = t ? [...
|
|
436
|
+
], Lo = ["Enter"], vs = (n, t) => {
|
|
437
|
+
const e = t ? [...Lo, " "] : Lo;
|
|
438
438
|
return eo(n, e);
|
|
439
|
-
}, eo = (n, t) => t.some((e) =>
|
|
439
|
+
}, eo = (n, t) => t.some((e) => fn(n, e)), hs = Ge(
|
|
440
440
|
({
|
|
441
441
|
autocomplete: n,
|
|
442
442
|
onAutocomplete: t,
|
|
@@ -456,9 +456,9 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
456
456
|
templateRef: $
|
|
457
457
|
}) => {
|
|
458
458
|
const x = pe(), w = m(() => l(n)), M = m(() => l(u)), O = m(() => l(o)), L = (R) => {
|
|
459
|
-
const
|
|
460
|
-
w.value !== "none" && t?.(
|
|
461
|
-
}, N =
|
|
459
|
+
const we = R.target;
|
|
460
|
+
w.value !== "none" && t?.(we.value);
|
|
461
|
+
}, N = bn((R) => e?.(R)), K = (R) => {
|
|
462
462
|
p?.(R), l(O) || d?.();
|
|
463
463
|
}, U = (R) => {
|
|
464
464
|
switch (R.key) {
|
|
@@ -480,11 +480,11 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
480
480
|
break;
|
|
481
481
|
}
|
|
482
482
|
}, X = (R) => {
|
|
483
|
-
if (R.key === "Enter" && R.preventDefault(), !M.value && eo(R,
|
|
483
|
+
if (R.key === "Enter" && R.preventDefault(), !M.value && eo(R, gn))
|
|
484
484
|
return d?.(), R.key === " " && R.preventDefault(), R.key === "End" ? b?.() : v?.();
|
|
485
485
|
if (vs(R, w.value === "none"))
|
|
486
486
|
return K(c.value);
|
|
487
|
-
if (M.value && eo(R,
|
|
487
|
+
if (M.value && eo(R, _n))
|
|
488
488
|
return d?.();
|
|
489
489
|
if (w.value === "none" && Qt(R.key))
|
|
490
490
|
return !M.value && d?.(), N(R);
|
|
@@ -497,7 +497,7 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
497
497
|
"aria-autocomplete": w.value,
|
|
498
498
|
type: "text"
|
|
499
499
|
}), {
|
|
500
|
-
elements: { option: P, group: D, listbox:
|
|
500
|
+
elements: { option: P, group: D, listbox: ne },
|
|
501
501
|
internals: { getOptionId: H }
|
|
502
502
|
} = fs({
|
|
503
503
|
label: s,
|
|
@@ -521,7 +521,7 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
521
521
|
* The listbox associated with the combobox.
|
|
522
522
|
*/
|
|
523
523
|
listbox: m(() => ({
|
|
524
|
-
...
|
|
524
|
+
...ne.value,
|
|
525
525
|
id: x,
|
|
526
526
|
// preventDefault to not lose focus of the combobox
|
|
527
527
|
onMousedown: (R) => R.preventDefault()
|
|
@@ -550,14 +550,14 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
550
550
|
}
|
|
551
551
|
};
|
|
552
552
|
}
|
|
553
|
-
), bs =
|
|
554
|
-
const t = pe(), e = pe(), o =
|
|
555
|
-
|
|
553
|
+
), bs = Ge((n) => {
|
|
554
|
+
const t = pe(), e = pe(), o = To(), a = To(), s = pe(), r = m(() => Q(n.position) ?? "bottom");
|
|
555
|
+
Je({
|
|
556
556
|
type: "keydown",
|
|
557
557
|
listener: (b) => b.key === "Escape" && c(!1),
|
|
558
558
|
disabled: m(() => !n.isExpanded.value)
|
|
559
559
|
});
|
|
560
|
-
const u =
|
|
560
|
+
const u = hn(() => n.onToggle(), 200);
|
|
561
561
|
Y(n.isExpanded, () => u.abort());
|
|
562
562
|
const c = (b, h = !1) => {
|
|
563
563
|
if (!n.disabled?.value) {
|
|
@@ -659,7 +659,7 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
659
659
|
...yo().elements
|
|
660
660
|
}
|
|
661
661
|
};
|
|
662
|
-
}), yo =
|
|
662
|
+
}), yo = Ge((n) => {
|
|
663
663
|
const t = (e) => {
|
|
664
664
|
switch (e.key) {
|
|
665
665
|
case "ArrowRight":
|
|
@@ -687,7 +687,7 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
687
687
|
* Ensures that a given `number` is or is between a given `min` and `max`.
|
|
688
688
|
*/
|
|
689
689
|
clamp: (n, t, e) => Math.max(Math.min(n, e), t)
|
|
690
|
-
}, _s =
|
|
690
|
+
}, _s = Ge(({ navigationName: n }) => {
|
|
691
691
|
const t = pe(), e = () => {
|
|
692
692
|
const a = t ? document.getElementById(t) : void 0;
|
|
693
693
|
return a ? Array.from(a.querySelectorAll("button[aria-expanded][aria-controls]")) : [];
|
|
@@ -719,7 +719,7 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
719
719
|
}
|
|
720
720
|
}
|
|
721
721
|
};
|
|
722
|
-
}), xs =
|
|
722
|
+
}), xs = Ge((n) => {
|
|
723
723
|
const t = /* @__PURE__ */ new Map(), e = (a) => (t.has(a) || t.set(a, { tabId: pe(), panelId: pe() }), t.get(a)), o = (a) => {
|
|
724
724
|
const s = a.target, r = Array.from(
|
|
725
725
|
s.parentElement?.querySelectorAll('[role="tab"]') ?? []
|
|
@@ -781,16 +781,16 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
781
781
|
})
|
|
782
782
|
}
|
|
783
783
|
};
|
|
784
|
-
}),
|
|
784
|
+
}), xn = ({ isExpanded: n }) => Je({
|
|
785
785
|
type: "keydown",
|
|
786
786
|
listener: (t) => {
|
|
787
787
|
t.key === "Escape" && (n.value = !1);
|
|
788
788
|
},
|
|
789
789
|
disabled: m(() => !n.value)
|
|
790
|
-
}), ks =
|
|
790
|
+
}), ks = Ge(
|
|
791
791
|
({ toggleLabel: n, isVisible: t }) => {
|
|
792
|
-
const e = pe(), o =
|
|
793
|
-
|
|
792
|
+
const e = pe(), o = se(t ?? !1);
|
|
793
|
+
xn({ isExpanded: o });
|
|
794
794
|
const a = () => o.value = !o.value;
|
|
795
795
|
return {
|
|
796
796
|
elements: {
|
|
@@ -823,8 +823,8 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
823
823
|
}
|
|
824
824
|
};
|
|
825
825
|
}
|
|
826
|
-
), ws =
|
|
827
|
-
const e = pe(), o =
|
|
826
|
+
), ws = Ge(({ debounce: n, isVisible: t }) => {
|
|
827
|
+
const e = pe(), o = se(t ?? !1);
|
|
828
828
|
let a;
|
|
829
829
|
const s = m({
|
|
830
830
|
get: () => o.value,
|
|
@@ -839,7 +839,7 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
839
839
|
onFocusin: () => o.value = !0,
|
|
840
840
|
onFocusout: () => o.value = !1
|
|
841
841
|
};
|
|
842
|
-
return
|
|
842
|
+
return xn({ isExpanded: o }), {
|
|
843
843
|
elements: {
|
|
844
844
|
/**
|
|
845
845
|
* The element which controls the tooltip visibility on hover.
|
|
@@ -867,7 +867,7 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
867
867
|
}), Ss = ["aria-modal", "aria-label", "role"], $s = {
|
|
868
868
|
ref: "contentRef",
|
|
869
869
|
class: "onyx-basic-dialog__content"
|
|
870
|
-
},
|
|
870
|
+
}, kn = /* @__PURE__ */ A({
|
|
871
871
|
__name: "OnyxBasicDialog",
|
|
872
872
|
props: {
|
|
873
873
|
density: {},
|
|
@@ -898,12 +898,12 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
898
898
|
// non-modal dialog allows interactions with other elements without closing
|
|
899
899
|
disabled: m(() => !r.value || e.nonDismissible || !e.modal),
|
|
900
900
|
onOutsideClick: () => o("update:open", !1)
|
|
901
|
-
}),
|
|
901
|
+
}), Je({
|
|
902
902
|
type: "keydown",
|
|
903
903
|
// modal dialog has native support for closing via `Escape`
|
|
904
904
|
// non-modal dialog needs custom support for this
|
|
905
905
|
disabled: m(() => !r.value || e.nonDismissible),
|
|
906
|
-
listener: (d) =>
|
|
906
|
+
listener: (d) => fn(d, { key: "Escape" }) && o("update:open", !1)
|
|
907
907
|
}), (d, p) => e.open ? (i(), f("dialog", {
|
|
908
908
|
key: 0,
|
|
909
909
|
ref: "dialogRef",
|
|
@@ -917,7 +917,7 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
917
917
|
"aria-modal": e.modal,
|
|
918
918
|
"aria-label": e.label,
|
|
919
919
|
role: e.alert ? "alertdialog" : void 0,
|
|
920
|
-
onCancel: p[0] || (p[0] =
|
|
920
|
+
onCancel: p[0] || (p[0] = Ae(() => {
|
|
921
921
|
}, ["prevent"]))
|
|
922
922
|
}, [
|
|
923
923
|
y(
|
|
@@ -931,29 +931,29 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
931
931
|
)
|
|
932
932
|
], 42, Ss)) : k("v-if", !0);
|
|
933
933
|
}
|
|
934
|
-
}),
|
|
935
|
-
const e =
|
|
934
|
+
}), wn = (n, t) => {
|
|
935
|
+
const e = Ot(n.toLowerCase()), o = Ot(t.toLowerCase());
|
|
936
936
|
return e.includes(o);
|
|
937
|
-
},
|
|
937
|
+
}, Ot = (n) => n.normalize("NFD").replace(/[\u0300-\u036f]/g, ""), Cs = (n) => n.trim().toLowerCase().replace(/\W/gi, "-"), Es = (n, t) => {
|
|
938
938
|
if (Bs.test(n))
|
|
939
939
|
return;
|
|
940
940
|
const e = new Intl.Segmenter(t, { granularity: "word" }), o = n.trim().toLocaleUpperCase(t), a = Array.from(e.segment(o)).filter((u) => u.isWordLike);
|
|
941
941
|
if (a.length === 0) return;
|
|
942
942
|
const s = a[0].segment, r = a.length === 1 ? void 0 : a.at(-1)?.segment;
|
|
943
|
-
return r ? `${
|
|
944
|
-
},
|
|
943
|
+
return r ? `${wt(s, t, 0)}${wt(r, t, 0)}` : `${wt(s, t, 0)}${wt(s, t, 1)}`;
|
|
944
|
+
}, wt = (n, t, e) => {
|
|
945
945
|
const o = new Intl.Segmenter(t, { granularity: "grapheme" });
|
|
946
946
|
return Array.from(o.segment(n)).map((s) => s.segment).at(e) ?? "";
|
|
947
|
-
}, Bs = /[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uAC00-\uD7AF\uD7B0-\uD7FF\u3040-\u309F\u30A0-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[\uD840-\uD869][\uDC00-\uDED6]/,
|
|
948
|
-
const n = ve(
|
|
947
|
+
}, Bs = /[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uAC00-\uD7AF\uD7B0-\uD7FF\u3040-\u309F\u30A0-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[\uD840-\uD869][\uDC00-\uDED6]/, Xe = (n) => typeof n == "string" ? { href: n } : n, Sn = (n) => !URL.canParse(n), rt = () => {
|
|
948
|
+
const n = ve($n, void 0), t = m(() => {
|
|
949
949
|
if (!n) return;
|
|
950
950
|
const a = l(n.currentRoute);
|
|
951
951
|
return typeof a == "string" ? { path: a } : a;
|
|
952
952
|
}), e = (a, s) => {
|
|
953
|
-
n &&
|
|
953
|
+
n && Sn(s) && Os(a) && (a.preventDefault(), n.push(s));
|
|
954
954
|
}, o = m(() => (a) => {
|
|
955
955
|
if (!t.value || a == null) return !1;
|
|
956
|
-
const s =
|
|
956
|
+
const s = Ro(Xe(a).href), r = Ro(t.value.path), { hash: u } = t.value;
|
|
957
957
|
return s === "/" ? r === s : u && u === s ? !0 : r === s;
|
|
958
958
|
});
|
|
959
959
|
return { navigate: e, currentRoute: t, isActive: o };
|
|
@@ -965,10 +965,10 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
965
965
|
}
|
|
966
966
|
return !0;
|
|
967
967
|
}
|
|
968
|
-
},
|
|
968
|
+
}, Ro = (n) => {
|
|
969
969
|
const t = n.trim();
|
|
970
970
|
return t === "" ? "/" : t === "/" ? t : t.replace(/\/+$/, "");
|
|
971
|
-
},
|
|
971
|
+
}, $n = Symbol(), qe = /* @__PURE__ */ A({
|
|
972
972
|
__name: "OnyxVisuallyHidden",
|
|
973
973
|
props: {
|
|
974
974
|
is: { default: "span" }
|
|
@@ -1003,7 +1003,7 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1003
1003
|
onClick: r[0] || (r[0] = (u) => l(o)(u, t.href))
|
|
1004
1004
|
}, [
|
|
1005
1005
|
C(s.$slots, "default"),
|
|
1006
|
-
t.target === "_blank" ? (i(), _(
|
|
1006
|
+
t.target === "_blank" ? (i(), _(qe, { key: 0 }, {
|
|
1007
1007
|
default: S(() => [
|
|
1008
1008
|
W(
|
|
1009
1009
|
T(l(e)("link.opensExternally")),
|
|
@@ -1016,7 +1016,7 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1016
1016
|
})) : k("v-if", !0)
|
|
1017
1017
|
], 10, As));
|
|
1018
1018
|
}
|
|
1019
|
-
}),
|
|
1019
|
+
}), De = /* @__PURE__ */ A({
|
|
1020
1020
|
__name: "OnyxHeadline",
|
|
1021
1021
|
props: {
|
|
1022
1022
|
is: {},
|
|
@@ -1025,7 +1025,7 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1025
1025
|
skeleton: { type: [Symbol, Boolean, Number], default: ee }
|
|
1026
1026
|
},
|
|
1027
1027
|
setup(n) {
|
|
1028
|
-
const t = n, { t: e } = q(), o =
|
|
1028
|
+
const t = n, { t: e } = q(), o = oe(t), a = m(() => t.hash ? Cs(t.hash) : void 0), s = m(() => t.showAs ?? t.is), r = async (u) => {
|
|
1029
1029
|
const { origin: c, pathname: d, search: p } = window.location, v = `${c}${d}${p}#${u}`;
|
|
1030
1030
|
await navigator.clipboard.writeText(v);
|
|
1031
1031
|
};
|
|
@@ -1047,7 +1047,7 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1047
1047
|
onClick: c[0] || (c[0] = (d) => r(a.value))
|
|
1048
1048
|
}, {
|
|
1049
1049
|
default: S(() => [
|
|
1050
|
-
B(
|
|
1050
|
+
B(qe, null, {
|
|
1051
1051
|
default: S(() => [
|
|
1052
1052
|
W(
|
|
1053
1053
|
T(l(e)("headline.copyLinkTo")),
|
|
@@ -1068,8 +1068,8 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1068
1068
|
/* FORWARDED */
|
|
1069
1069
|
}, 8, ["id", "class"]));
|
|
1070
1070
|
}
|
|
1071
|
-
}),
|
|
1072
|
-
t.autofocus &&
|
|
1071
|
+
}), Oe = (n, t) => {
|
|
1072
|
+
t.autofocus && Se(() => {
|
|
1073
1073
|
if (!t.loading) {
|
|
1074
1074
|
n.value?.focus();
|
|
1075
1075
|
return;
|
|
@@ -1080,18 +1080,18 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1080
1080
|
{ once: !0 }
|
|
1081
1081
|
);
|
|
1082
1082
|
});
|
|
1083
|
-
},
|
|
1083
|
+
}, Cn = Symbol(), te = Symbol("FORM_INJECTED_SYMBOL"), Ht = (n, t, e, o) => m(() => {
|
|
1084
1084
|
const a = t.value[e];
|
|
1085
|
-
return a != null && typeof a != "symbol" ? a : a ===
|
|
1086
|
-
}),
|
|
1085
|
+
return a != null && typeof a != "symbol" ? a : a === te ? n?.value[e] ?? o : o;
|
|
1086
|
+
}), En = (n) => (t) => ({
|
|
1087
1087
|
disabled: Ht(n, t, "disabled", !1),
|
|
1088
1088
|
showError: Ht(n, t, "showError", "touched"),
|
|
1089
1089
|
requiredMarker: Ht(n, t, "requiredMarker", "required")
|
|
1090
|
-
}), Ms = (n) => Re(
|
|
1091
|
-
|
|
1090
|
+
}), Ms = (n) => Re(Cn, En(n && se(n))), Ts = En(), be = (n) => ve(
|
|
1091
|
+
Cn,
|
|
1092
1092
|
/** Default */
|
|
1093
1093
|
Ts
|
|
1094
|
-
)(
|
|
1094
|
+
)(se(n)), Is = ["disabled", "type", "autofocus"], ct = /* @__PURE__ */ A({
|
|
1095
1095
|
__name: "ButtonOrLinkLayout",
|
|
1096
1096
|
props: {
|
|
1097
1097
|
disabled: { type: [Boolean, Symbol] },
|
|
@@ -1102,11 +1102,11 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1102
1102
|
},
|
|
1103
1103
|
setup(n) {
|
|
1104
1104
|
const t = n, e = J("buttonRef"), { disabled: o } = be(t), a = m(
|
|
1105
|
-
() => t.link != null ?
|
|
1105
|
+
() => t.link != null ? Xe(t.link) : void 0
|
|
1106
1106
|
);
|
|
1107
|
-
return
|
|
1107
|
+
return Oe(e, t), (s, r) => a.value ? (i(), _(
|
|
1108
1108
|
it,
|
|
1109
|
-
|
|
1109
|
+
Ne(E({ key: 0 }, a.value)),
|
|
1110
1110
|
{
|
|
1111
1111
|
default: S(() => [
|
|
1112
1112
|
C(s.$slots, "default")
|
|
@@ -1126,10 +1126,10 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1126
1126
|
C(s.$slots, "default")
|
|
1127
1127
|
], 8, Is));
|
|
1128
1128
|
}
|
|
1129
|
-
}),
|
|
1129
|
+
}), ke = /* @__PURE__ */ A({
|
|
1130
1130
|
__name: "OnyxSystemButton",
|
|
1131
1131
|
props: {
|
|
1132
|
-
disabled: { type: [Boolean, Symbol], default:
|
|
1132
|
+
disabled: { type: [Boolean, Symbol], default: te },
|
|
1133
1133
|
autofocus: { type: Boolean, default: !1 },
|
|
1134
1134
|
skeleton: { type: [Symbol, Boolean, Number], default: ee },
|
|
1135
1135
|
link: {},
|
|
@@ -1138,7 +1138,7 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1138
1138
|
color: { default: "intense" }
|
|
1139
1139
|
},
|
|
1140
1140
|
setup(n) {
|
|
1141
|
-
const t = n, e =
|
|
1141
|
+
const t = n, e = oe(t);
|
|
1142
1142
|
return (o, a) => l(e) ? (i(), _(Z, {
|
|
1143
1143
|
key: 0,
|
|
1144
1144
|
class: I(["onyx-system-button-skeleton", t.icon ? "" : "onyx-system-button-skeleton--text"])
|
|
@@ -1182,7 +1182,7 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1182
1182
|
emits: ["update:open"],
|
|
1183
1183
|
setup(n, { emit: t }) {
|
|
1184
1184
|
const e = n, o = t, { t: a } = q(), { densityClass: s } = F(e), r = pe();
|
|
1185
|
-
return (u, c) => (i(), _(
|
|
1185
|
+
return (u, c) => (i(), _(kn, E({
|
|
1186
1186
|
class: ["onyx-alert-modal", l(s)]
|
|
1187
1187
|
}, e, {
|
|
1188
1188
|
"aria-describedby": l(r),
|
|
@@ -1207,7 +1207,7 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1207
1207
|
C(u.$slots, "headline", {
|
|
1208
1208
|
label: e.label
|
|
1209
1209
|
}, () => [
|
|
1210
|
-
B(
|
|
1210
|
+
B(De, { is: "h2" }, {
|
|
1211
1211
|
default: S(() => [
|
|
1212
1212
|
W(
|
|
1213
1213
|
T(e.label),
|
|
@@ -1219,10 +1219,10 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1219
1219
|
/* STABLE */
|
|
1220
1220
|
})
|
|
1221
1221
|
]),
|
|
1222
|
-
B(
|
|
1222
|
+
B(ke, {
|
|
1223
1223
|
class: "onyx-alert-modal__close",
|
|
1224
1224
|
label: l(a)("dialog.close"),
|
|
1225
|
-
icon: l(
|
|
1225
|
+
icon: l(ze),
|
|
1226
1226
|
onClick: c[0] || (c[0] = (d) => o("update:open", !1))
|
|
1227
1227
|
}, null, 8, ["label", "icon"])
|
|
1228
1228
|
]),
|
|
@@ -1280,7 +1280,7 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1280
1280
|
}
|
|
1281
1281
|
}));
|
|
1282
1282
|
return e[nt] = n ?? [], e;
|
|
1283
|
-
},
|
|
1283
|
+
}, Vo = (n) => !!n && typeof n == "object" && nt in n, fe = (...n) => n.reduce((t, e) => {
|
|
1284
1284
|
e?.ref;
|
|
1285
1285
|
const o = e && xa(e) && "ref" in e ? ka(e).ref : e?.ref, a = t?.ref, s = E(t ?? {}, e ?? {});
|
|
1286
1286
|
if (!a && !o)
|
|
@@ -1288,7 +1288,7 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1288
1288
|
if (!a || !o)
|
|
1289
1289
|
return s.ref = o ?? a, s;
|
|
1290
1290
|
let r;
|
|
1291
|
-
return
|
|
1291
|
+
return Vo(a) ? (a[nt].push(o), r = a) : Vo(o) ? (o[nt].push(a), r = o) : r = zs(a, o), s.ref = r, s;
|
|
1292
1292
|
}, {}), Ds = {
|
|
1293
1293
|
key: 1,
|
|
1294
1294
|
class: "onyx-fab-button__label"
|
|
@@ -1303,7 +1303,7 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1303
1303
|
skeleton: { type: [Symbol, Boolean, Number], default: ee }
|
|
1304
1304
|
},
|
|
1305
1305
|
setup(n) {
|
|
1306
|
-
const t = n, { densityClass: e } = F(t), o =
|
|
1306
|
+
const t = n, { densityClass: e } = F(t), o = oe(t);
|
|
1307
1307
|
return (a, s) => l(o) ? (i(), _(Z, {
|
|
1308
1308
|
key: 0,
|
|
1309
1309
|
class: I(["onyx-fab-button-skeleton", l(e)])
|
|
@@ -1331,14 +1331,14 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1331
1331
|
/* STABLE */
|
|
1332
1332
|
}, 8, ["class", "title", "aria-label", "link"]));
|
|
1333
1333
|
}
|
|
1334
|
-
}),
|
|
1334
|
+
}), Ue = (n, t) => {
|
|
1335
1335
|
const e = t?.box ?? "content-box", o = V(0), a = V(0), s = (r) => {
|
|
1336
1336
|
const u = r[0];
|
|
1337
1337
|
if (!u) return;
|
|
1338
1338
|
const c = e === "content-box" ? u.contentBoxSize : e === "border-box" ? u.borderBoxSize : u.devicePixelContentBoxSize;
|
|
1339
1339
|
o.value = c.reduce((d, { inlineSize: p }) => d + p, 0), a.value = c.reduce((d, { blockSize: p }) => d + p, 0);
|
|
1340
1340
|
};
|
|
1341
|
-
return
|
|
1341
|
+
return Se(() => {
|
|
1342
1342
|
if (!("ResizeObserver" in window)) return;
|
|
1343
1343
|
const r = new ResizeObserver(s);
|
|
1344
1344
|
if (!n) {
|
|
@@ -1348,19 +1348,19 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1348
1348
|
Y(
|
|
1349
1349
|
n,
|
|
1350
1350
|
(u, c) => {
|
|
1351
|
-
const d =
|
|
1351
|
+
const d = He(u), p = He(c);
|
|
1352
1352
|
p && r?.unobserve(p), d ? r?.observe(d, { box: e }) : (o.value = 0, a.value = 0);
|
|
1353
1353
|
},
|
|
1354
1354
|
{ immediate: !0 }
|
|
1355
1355
|
), ht(() => r.disconnect());
|
|
1356
1356
|
}), { width: o, height: a };
|
|
1357
|
-
},
|
|
1357
|
+
}, He = (n) => n instanceof Element ? n : n?.$el, Fs = (n, t) => {
|
|
1358
1358
|
const e = V(!1), o = (a) => {
|
|
1359
1359
|
a.forEach((s) => {
|
|
1360
1360
|
e.value = s.isIntersecting;
|
|
1361
1361
|
});
|
|
1362
1362
|
};
|
|
1363
|
-
return
|
|
1363
|
+
return Se(() => {
|
|
1364
1364
|
if (!("IntersectionObserver" in window)) return;
|
|
1365
1365
|
const a = new IntersectionObserver(o, {
|
|
1366
1366
|
root: null,
|
|
@@ -1374,13 +1374,13 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1374
1374
|
Y(
|
|
1375
1375
|
n,
|
|
1376
1376
|
(s, r) => {
|
|
1377
|
-
const u =
|
|
1377
|
+
const u = He(s), c = He(r);
|
|
1378
1378
|
c && a.unobserve(c), u && a.observe(u);
|
|
1379
1379
|
},
|
|
1380
1380
|
{ immediate: !0 }
|
|
1381
1381
|
), ht(() => a.disconnect());
|
|
1382
1382
|
}), { isIntersecting: e };
|
|
1383
|
-
},
|
|
1383
|
+
}, Bn = ({
|
|
1384
1384
|
positionedRef: n,
|
|
1385
1385
|
targetRef: t,
|
|
1386
1386
|
positionArea: e,
|
|
@@ -1390,7 +1390,7 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1390
1390
|
offset: r = 0
|
|
1391
1391
|
}) => {
|
|
1392
1392
|
const u = V("-1000px"), c = V("-1000px"), { isIntersecting: d } = Fs(t), p = () => {
|
|
1393
|
-
const b =
|
|
1393
|
+
const b = He(n.value), h = He(t.value);
|
|
1394
1394
|
if (!b || !h)
|
|
1395
1395
|
return;
|
|
1396
1396
|
const g = h.getBoundingClientRect(), $ = b.getBoundingClientRect();
|
|
@@ -1424,15 +1424,15 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1424
1424
|
}
|
|
1425
1425
|
u.value = `${w}px`, c.value = `${x}px`;
|
|
1426
1426
|
};
|
|
1427
|
-
|
|
1428
|
-
|
|
1427
|
+
Et(() => {
|
|
1428
|
+
Te(() => {
|
|
1429
1429
|
d.value && n.value ? window.addEventListener("scroll", p, !0) : (window.removeEventListener("scroll", p, !0), u.value = "-1000px", c.value = "-1000px");
|
|
1430
1430
|
});
|
|
1431
|
-
}),
|
|
1431
|
+
}), It(() => {
|
|
1432
1432
|
window.removeEventListener("scroll", p, !0);
|
|
1433
1433
|
});
|
|
1434
1434
|
const v = V(!0);
|
|
1435
|
-
return
|
|
1435
|
+
return Et(() => {
|
|
1436
1436
|
v.value = "CSS" in globalThis && typeof CSS < "u" && CSS.supports("anchor-name: --test") && CSS.supports("position-area: top");
|
|
1437
1437
|
}), {
|
|
1438
1438
|
leftPosition: u,
|
|
@@ -1440,7 +1440,7 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1440
1440
|
updateAnchorPositionPolyfill: p,
|
|
1441
1441
|
useragentSupportsAnchorApi: v
|
|
1442
1442
|
};
|
|
1443
|
-
},
|
|
1443
|
+
}, On = (n, t, e = "center") => {
|
|
1444
1444
|
const a = V(e);
|
|
1445
1445
|
return {
|
|
1446
1446
|
/**
|
|
@@ -1483,11 +1483,11 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1483
1483
|
e.value = t;
|
|
1484
1484
|
return;
|
|
1485
1485
|
}
|
|
1486
|
-
const s =
|
|
1486
|
+
const s = An(a)?.getBoundingClientRect(), r = a.getBoundingClientRect(), u = s?.top ?? window.visualViewport?.pageTop ?? 0, d = (s?.bottom ?? window.visualViewport?.height ?? 0) - r.bottom, p = r.top - u;
|
|
1487
1487
|
e.value = p > d ? "top" : "bottom";
|
|
1488
1488
|
}
|
|
1489
1489
|
};
|
|
1490
|
-
},
|
|
1490
|
+
}, An = (n) => n ? getComputedStyle(n).overflow.includes("hidden") ? n : n.parentElement ? An(n.parentElement) : void 0 : void 0, Ps = ["role", "aria-label"], vo = /* @__PURE__ */ A({
|
|
1491
1491
|
__name: "OnyxBasicPopover",
|
|
1492
1492
|
props: {
|
|
1493
1493
|
label: {},
|
|
@@ -1526,11 +1526,11 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1526
1526
|
return u.value + " span-left";
|
|
1527
1527
|
}
|
|
1528
1528
|
return u.value;
|
|
1529
|
-
}), v = J("popover"), b = J("popoverWrapper"), { openDirection: h, updateOpenDirection: g } = fo(b, "bottom"), { openAlignment: $, updateOpenAlignment: x } =
|
|
1529
|
+
}), v = J("popover"), b = J("popoverWrapper"), { openDirection: h, updateOpenDirection: g } = fo(b, "bottom"), { openAlignment: $, updateOpenAlignment: x } = On(
|
|
1530
1530
|
b,
|
|
1531
1531
|
v,
|
|
1532
1532
|
"left"
|
|
1533
|
-
), { leftPosition: w, topPosition: M, updateAnchorPositionPolyfill: O, useragentSupportsAnchorApi: L } =
|
|
1533
|
+
), { leftPosition: w, topPosition: M, updateAnchorPositionPolyfill: O, useragentSupportsAnchorApi: L } = Bn({
|
|
1534
1534
|
positionedRef: v,
|
|
1535
1535
|
targetRef: b,
|
|
1536
1536
|
positionArea: u,
|
|
@@ -1538,18 +1538,18 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1538
1538
|
alignsWithEdge: !0,
|
|
1539
1539
|
fitParent: !1,
|
|
1540
1540
|
offset: 8
|
|
1541
|
-
}), { width: N } =
|
|
1541
|
+
}), { width: N } = Ue(b), K = (R) => {
|
|
1542
1542
|
R ? v.value?.showPopover?.() : v.value?.hidePopover?.();
|
|
1543
1543
|
}, U = () => {
|
|
1544
1544
|
g(), x();
|
|
1545
1545
|
};
|
|
1546
|
-
|
|
1546
|
+
Je({
|
|
1547
1547
|
type: "resize",
|
|
1548
1548
|
listener: () => U()
|
|
1549
|
-
}),
|
|
1549
|
+
}), Se(() => {
|
|
1550
1550
|
K(r.value), U(), L.value || O();
|
|
1551
1551
|
}), Y(r, async (R) => {
|
|
1552
|
-
await
|
|
1552
|
+
await Ye(), K(R), U(), L.value || O();
|
|
1553
1553
|
});
|
|
1554
1554
|
const X = () => {
|
|
1555
1555
|
s.value = !s.value, a("update:open", !r.value);
|
|
@@ -1559,7 +1559,7 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1559
1559
|
"aria-controls": v.value?.id,
|
|
1560
1560
|
"aria-haspopup": !0,
|
|
1561
1561
|
disabled: d.value
|
|
1562
|
-
})), P = pe(), D = m(() => `--anchor-${P}`),
|
|
1562
|
+
})), P = pe(), D = m(() => `--anchor-${P}`), ne = m(() => ({
|
|
1563
1563
|
[`onyx-basic-popover__dialog--position-${u.value.replace(" ", "-")}`]: !0,
|
|
1564
1564
|
[`onyx-basic-popover__dialog--alignment-${c.value}`]: !0,
|
|
1565
1565
|
"onyx-basic-popover__dialog--fitparent": o.fitParent,
|
|
@@ -1569,7 +1569,7 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1569
1569
|
Y(d, () => {
|
|
1570
1570
|
d.value && (s.value = !1);
|
|
1571
1571
|
}), Y([u, c, N], async () => {
|
|
1572
|
-
L.value || (await
|
|
1572
|
+
L.value || (await Ye(), U(), O());
|
|
1573
1573
|
});
|
|
1574
1574
|
const H = m(() => {
|
|
1575
1575
|
const R = o.fitParent ? `${N.value}px` : void 0;
|
|
@@ -1583,12 +1583,12 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1583
1583
|
top: M.value
|
|
1584
1584
|
};
|
|
1585
1585
|
});
|
|
1586
|
-
return (R,
|
|
1586
|
+
return (R, we) => (i(), f(
|
|
1587
1587
|
"div",
|
|
1588
1588
|
{
|
|
1589
1589
|
ref: "popoverWrapper",
|
|
1590
1590
|
class: "onyx-component onyx-basic-popover",
|
|
1591
|
-
style:
|
|
1591
|
+
style: Me(`anchor-name: ${D.value}`)
|
|
1592
1592
|
},
|
|
1593
1593
|
[
|
|
1594
1594
|
C(R.$slots, "default", { trigger: ue.value }),
|
|
@@ -1597,8 +1597,8 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1597
1597
|
role: o.role,
|
|
1598
1598
|
"aria-label": o.label,
|
|
1599
1599
|
popover: "manual",
|
|
1600
|
-
class: I(["onyx-basic-popover__dialog",
|
|
1601
|
-
style:
|
|
1600
|
+
class: I(["onyx-basic-popover__dialog", ne.value]),
|
|
1601
|
+
style: Me(H.value)
|
|
1602
1602
|
}, [
|
|
1603
1603
|
C(R.$slots, "content")
|
|
1604
1604
|
], 14, Ps)
|
|
@@ -1607,7 +1607,7 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1607
1607
|
/* STYLE */
|
|
1608
1608
|
));
|
|
1609
1609
|
}
|
|
1610
|
-
}), Us = { class: "onyx-flyout-menu__list-header" }, Hs = { class: "onyx-flyout-menu__list-footer" },
|
|
1610
|
+
}), Us = { class: "onyx-flyout-menu__list-header" }, Hs = { class: "onyx-flyout-menu__list-footer" }, Ke = /* @__PURE__ */ A({
|
|
1611
1611
|
__name: "OnyxFlyoutMenu",
|
|
1612
1612
|
props: {
|
|
1613
1613
|
alignment: { default: "auto" },
|
|
@@ -1668,7 +1668,7 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1668
1668
|
} : void 0
|
|
1669
1669
|
]), 1040, ["open", "label", "alignment", "disabled"]));
|
|
1670
1670
|
}
|
|
1671
|
-
}),
|
|
1671
|
+
}), No = /* @__PURE__ */ A({
|
|
1672
1672
|
__name: "OnyxFAB",
|
|
1673
1673
|
props: {
|
|
1674
1674
|
density: {},
|
|
@@ -1682,19 +1682,19 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1682
1682
|
},
|
|
1683
1683
|
emits: ["update:open"],
|
|
1684
1684
|
setup(n, { emit: t }) {
|
|
1685
|
-
const e = n, o = t, a = ce(), { densityClass: s } = F(e), r =
|
|
1685
|
+
const e = n, o = t, a = ce(), { densityClass: s } = F(e), r = oe(e), u = ae({
|
|
1686
1686
|
props: e,
|
|
1687
1687
|
emit: o,
|
|
1688
1688
|
key: "open",
|
|
1689
1689
|
default: !1
|
|
1690
|
-
}), c = m(() => !!a.default), d = m(() => c.value ? u.value ? po :
|
|
1690
|
+
}), c = m(() => !!a.default), d = m(() => c.value ? u.value ? po : tn : e.icon);
|
|
1691
1691
|
return (p, v) => !c.value || l(r) ? (i(), _(to, E({
|
|
1692
1692
|
key: 0,
|
|
1693
1693
|
class: ["onyx-fab", `onyx-fab--${e.alignment}`]
|
|
1694
1694
|
}, e, {
|
|
1695
1695
|
icon: d.value,
|
|
1696
1696
|
skeleton: l(r)
|
|
1697
|
-
}), null, 16, ["class", "icon", "skeleton"])) : (i(), _(
|
|
1697
|
+
}), null, 16, ["class", "icon", "skeleton"])) : (i(), _(Ke, {
|
|
1698
1698
|
key: 1,
|
|
1699
1699
|
open: l(u),
|
|
1700
1700
|
"onUpdate:open": v[0] || (v[0] = (b) => Ee(u) ? u.value = b : null),
|
|
@@ -1744,9 +1744,9 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1744
1744
|
/* FULL_PROPS */
|
|
1745
1745
|
));
|
|
1746
1746
|
}
|
|
1747
|
-
}),
|
|
1748
|
-
const n =
|
|
1749
|
-
n.value = n.value.concat(
|
|
1747
|
+
}), Mn = Symbol(), qs = () => {
|
|
1748
|
+
const n = Pe([]), t = (o) => {
|
|
1749
|
+
n.value = n.value.concat(se(o));
|
|
1750
1750
|
}, e = (o) => {
|
|
1751
1751
|
n.value = n.value.filter((a) => a.value.id !== o);
|
|
1752
1752
|
};
|
|
@@ -1756,11 +1756,11 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1756
1756
|
add: t,
|
|
1757
1757
|
remove: e
|
|
1758
1758
|
};
|
|
1759
|
-
},
|
|
1759
|
+
}, Tn = () => {
|
|
1760
1760
|
const n = () => {
|
|
1761
1761
|
};
|
|
1762
1762
|
return ve(
|
|
1763
|
-
|
|
1763
|
+
Mn,
|
|
1764
1764
|
// provide fallback so "useGlobalFAB()" does not return "undefined"
|
|
1765
1765
|
() => ({
|
|
1766
1766
|
items: m(() => []),
|
|
@@ -1772,16 +1772,16 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1772
1772
|
}, Ks = /* @__PURE__ */ A({
|
|
1773
1773
|
__name: "OnyxGlobalFAB",
|
|
1774
1774
|
setup(n) {
|
|
1775
|
-
const t =
|
|
1775
|
+
const t = Tn(), { t: e } = q(), o = m(
|
|
1776
1776
|
() => t.items.value.some((a) => a.value.alignment === "left") ? "left" : "right"
|
|
1777
1777
|
);
|
|
1778
1778
|
return (a, s) => l(t).items.value.length === 1 ? (i(), _(
|
|
1779
|
-
|
|
1780
|
-
|
|
1779
|
+
No,
|
|
1780
|
+
Ne(E({ key: 0 }, l(t).items.value[0].value)),
|
|
1781
1781
|
null,
|
|
1782
1782
|
16
|
|
1783
1783
|
/* FULL_PROPS */
|
|
1784
|
-
)) : l(t).items.value.length > 1 ? (i(), _(
|
|
1784
|
+
)) : l(t).items.value.length > 1 ? (i(), _(No, {
|
|
1785
1785
|
key: 1,
|
|
1786
1786
|
label: l(e)("globalFAB.label"),
|
|
1787
1787
|
alignment: o.value
|
|
@@ -1807,7 +1807,7 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1807
1807
|
/* STABLE */
|
|
1808
1808
|
}, 8, ["label", "alignment"])) : k("v-if", !0);
|
|
1809
1809
|
}
|
|
1810
|
-
}),
|
|
1810
|
+
}), Rt = (n, t) => {
|
|
1811
1811
|
const e = n.__vccOpts || n;
|
|
1812
1812
|
for (const [o, a] of t)
|
|
1813
1813
|
e[o] = a;
|
|
@@ -1832,7 +1832,7 @@ function Ys(n, t) {
|
|
|
1832
1832
|
)
|
|
1833
1833
|
])]);
|
|
1834
1834
|
}
|
|
1835
|
-
const Js = /* @__PURE__ */
|
|
1835
|
+
const Js = /* @__PURE__ */ Rt(js, [["render", Ys]]), Zs = {}, Xs = { class: "onyx-component onyx-loading-dots" };
|
|
1836
1836
|
function Qs(n, t) {
|
|
1837
1837
|
return i(), f("div", Xs, [...t[0] || (t[0] = [
|
|
1838
1838
|
y(
|
|
@@ -1844,7 +1844,7 @@ function Qs(n, t) {
|
|
|
1844
1844
|
)
|
|
1845
1845
|
])]);
|
|
1846
1846
|
}
|
|
1847
|
-
const oo = /* @__PURE__ */
|
|
1847
|
+
const oo = /* @__PURE__ */ Rt(Zs, [["render", Qs]]), Ie = /* @__PURE__ */ A({
|
|
1848
1848
|
__name: "OnyxLoadingIndicator",
|
|
1849
1849
|
props: {
|
|
1850
1850
|
type: { default: "dots" }
|
|
@@ -1873,7 +1873,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
1873
1873
|
u.animationEnded && e.delete(c);
|
|
1874
1874
|
});
|
|
1875
1875
|
}, r = V({});
|
|
1876
|
-
return
|
|
1876
|
+
return Et(() => {
|
|
1877
1877
|
window.matchMedia?.("pointer: none").matches ? r.value = {
|
|
1878
1878
|
touchstart: o,
|
|
1879
1879
|
touchend: s,
|
|
@@ -1904,7 +1904,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
1904
1904
|
de(l(o), ([c, d]) => (i(), f("span", {
|
|
1905
1905
|
key: c,
|
|
1906
1906
|
class: "onyx-ripple__element",
|
|
1907
|
-
style:
|
|
1907
|
+
style: Me({
|
|
1908
1908
|
"--onyx-ripple-left": d.left,
|
|
1909
1909
|
"--onyx-ripple-top": d.top
|
|
1910
1910
|
}),
|
|
@@ -1925,7 +1925,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
1925
1925
|
density: {},
|
|
1926
1926
|
autofocus: { type: Boolean },
|
|
1927
1927
|
label: {},
|
|
1928
|
-
disabled: { type: [Boolean, Symbol], default:
|
|
1928
|
+
disabled: { type: [Boolean, Symbol], default: te },
|
|
1929
1929
|
loading: { type: Boolean, default: !1 },
|
|
1930
1930
|
type: { default: "button" },
|
|
1931
1931
|
color: { default: "primary" },
|
|
@@ -1936,7 +1936,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
1936
1936
|
link: {}
|
|
1937
1937
|
},
|
|
1938
1938
|
setup(n) {
|
|
1939
|
-
const t = n, { densityClass: e } = F(t), { disabled: o } = be(t), a =
|
|
1939
|
+
const t = n, { densityClass: e } = F(t), { disabled: o } = be(t), a = oe(t), s = J("rippleRef"), r = m(() => s.value?.events ?? {});
|
|
1940
1940
|
return (u, c) => l(a) ? (i(), _(Z, {
|
|
1941
1941
|
key: 0,
|
|
1942
1942
|
class: I(["onyx-button-skeleton", l(e)])
|
|
@@ -1967,7 +1967,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
1967
1967
|
class: "onyx-button__icon",
|
|
1968
1968
|
icon: t.icon
|
|
1969
1969
|
}, null, 8, ["icon"])) : k("v-if", !0),
|
|
1970
|
-
t.loading ? (i(), _(
|
|
1970
|
+
t.loading ? (i(), _(Ie, {
|
|
1971
1971
|
key: 2,
|
|
1972
1972
|
class: "onyx-button__loading"
|
|
1973
1973
|
})) : k("v-if", !0),
|
|
@@ -2018,7 +2018,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2018
2018
|
icon: e.icon
|
|
2019
2019
|
}, null, 8, ["icon"])) : k("v-if", !0),
|
|
2020
2020
|
y("div", lr, [
|
|
2021
|
-
e.headline ? (i(), _(
|
|
2021
|
+
e.headline ? (i(), _(De, {
|
|
2022
2022
|
key: 0,
|
|
2023
2023
|
is: "h3",
|
|
2024
2024
|
class: "onyx-info-card__headline onyx-truncation-multiline"
|
|
@@ -2033,10 +2033,10 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2033
2033
|
_: 1
|
|
2034
2034
|
/* STABLE */
|
|
2035
2035
|
})) : k("v-if", !0),
|
|
2036
|
-
e.closable ? (i(), _(
|
|
2036
|
+
e.closable ? (i(), _(ke, {
|
|
2037
2037
|
key: 1,
|
|
2038
2038
|
class: "onyx-info-card__close",
|
|
2039
|
-
icon: l(
|
|
2039
|
+
icon: l(ze),
|
|
2040
2040
|
label: l(s)("close"),
|
|
2041
2041
|
color: e.color === "neutral" ? "soft" : "medium",
|
|
2042
2042
|
onClick: c[0] || (c[0] = (d) => o("close"))
|
|
@@ -2074,7 +2074,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2074
2074
|
icon: e.icon ?? !1,
|
|
2075
2075
|
closable: "",
|
|
2076
2076
|
tabindex: "0",
|
|
2077
|
-
style:
|
|
2077
|
+
style: Me({ animationDuration: e.duration ? `${e.duration}ms` : void 0 }),
|
|
2078
2078
|
role: "status",
|
|
2079
2079
|
"aria-label": e.headline,
|
|
2080
2080
|
onClose: r[0] || (r[0] = (u) => o("close")),
|
|
@@ -2095,7 +2095,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2095
2095
|
} : void 0
|
|
2096
2096
|
]), 1032, ["class", "headline", "icon", "style", "aria-label"]));
|
|
2097
2097
|
}
|
|
2098
|
-
}),
|
|
2098
|
+
}), In = Symbol(), ur = () => {
|
|
2099
2099
|
let n = 1;
|
|
2100
2100
|
const t = V([]), e = (a) => {
|
|
2101
2101
|
const s = n++;
|
|
@@ -2118,7 +2118,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2118
2118
|
'Trying to use "useNotification()" before the notifications provider has been provided. Make sure to "provide" it first.'
|
|
2119
2119
|
);
|
|
2120
2120
|
return ve(
|
|
2121
|
-
|
|
2121
|
+
In,
|
|
2122
2122
|
// provide fallback so "useNotification()" does not return "undefined"
|
|
2123
2123
|
() => ({
|
|
2124
2124
|
notifications: m(() => []),
|
|
@@ -2189,7 +2189,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2189
2189
|
key: 0,
|
|
2190
2190
|
class: "onyx-toast-message__description onyx-text--small onyx-truncation-multiline",
|
|
2191
2191
|
tabindex: "0"
|
|
2192
|
-
},
|
|
2192
|
+
}, Ln = /* @__PURE__ */ A({
|
|
2193
2193
|
__name: "OnyxToastMessage",
|
|
2194
2194
|
props: {
|
|
2195
2195
|
density: {},
|
|
@@ -2204,7 +2204,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2204
2204
|
setup(n, { emit: t }) {
|
|
2205
2205
|
const e = n, o = t, { t: a } = q(), { densityClass: s } = F(e), r = m(() => e.duration > 0), u = {
|
|
2206
2206
|
neutral: Jt,
|
|
2207
|
-
danger:
|
|
2207
|
+
danger: on,
|
|
2208
2208
|
warning: uo,
|
|
2209
2209
|
success: Aa
|
|
2210
2210
|
}, c = m(() => {
|
|
@@ -2238,7 +2238,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2238
2238
|
class: "onyx-toast-message__close",
|
|
2239
2239
|
onClick: p[0] || (p[0] = (v) => o("close"))
|
|
2240
2240
|
}, [
|
|
2241
|
-
B(z, { icon: l(
|
|
2241
|
+
B(z, { icon: l(ze) }, null, 8, ["icon"])
|
|
2242
2242
|
], 8, br))
|
|
2243
2243
|
]),
|
|
2244
2244
|
e.description ? (i(), f(
|
|
@@ -2256,7 +2256,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2256
2256
|
key: e.duration,
|
|
2257
2257
|
"aria-hidden": "true",
|
|
2258
2258
|
class: "onyx-toast-message__progress-bar",
|
|
2259
|
-
style:
|
|
2259
|
+
style: Me({ animationDuration: `${e.duration}ms` }),
|
|
2260
2260
|
onAnimationend: p[1] || (p[1] = (v) => o("close"))
|
|
2261
2261
|
},
|
|
2262
2262
|
null,
|
|
@@ -2268,7 +2268,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2268
2268
|
/* STABLE */
|
|
2269
2269
|
}, 8, ["class", "role", "aria-label"]));
|
|
2270
2270
|
}
|
|
2271
|
-
}),
|
|
2271
|
+
}), Rn = Symbol(), _r = () => {
|
|
2272
2272
|
let n = 1;
|
|
2273
2273
|
const t = V([]), e = (a) => {
|
|
2274
2274
|
const s = n++;
|
|
@@ -2290,7 +2290,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2290
2290
|
const n = () => {
|
|
2291
2291
|
};
|
|
2292
2292
|
return ve(
|
|
2293
|
-
|
|
2293
|
+
Rn,
|
|
2294
2294
|
// provide fallback so "useToast()" does not return "undefined"
|
|
2295
2295
|
() => ({
|
|
2296
2296
|
toasts: m(() => []),
|
|
@@ -2314,7 +2314,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2314
2314
|
G,
|
|
2315
2315
|
null,
|
|
2316
2316
|
de(l(t).toasts.value, ({ id: a, ...s }) => (i(), _(
|
|
2317
|
-
|
|
2317
|
+
Ln,
|
|
2318
2318
|
E({ key: a }, { ref_for: !0 }, s),
|
|
2319
2319
|
null,
|
|
2320
2320
|
16
|
|
@@ -2358,7 +2358,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2358
2358
|
}), Cr = ["title", "aria-label"], Er = ["src", "alt"], Br = {
|
|
2359
2359
|
key: 0,
|
|
2360
2360
|
class: "onyx-avatar__initials"
|
|
2361
|
-
},
|
|
2361
|
+
}, At = /* @__PURE__ */ A({
|
|
2362
2362
|
__name: "OnyxAvatar",
|
|
2363
2363
|
props: {
|
|
2364
2364
|
size: { default: "48px" },
|
|
@@ -2416,7 +2416,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2416
2416
|
C(t.$slots, "default")
|
|
2417
2417
|
]));
|
|
2418
2418
|
}
|
|
2419
|
-
}),
|
|
2419
|
+
}), Vt = /* @__PURE__ */ A({
|
|
2420
2420
|
__name: "OnyxBadge",
|
|
2421
2421
|
props: {
|
|
2422
2422
|
density: {},
|
|
@@ -2489,14 +2489,14 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2489
2489
|
));
|
|
2490
2490
|
}
|
|
2491
2491
|
}), Rr = (n) => {
|
|
2492
|
-
const t = V(), e = V(), { width: o } =
|
|
2493
|
-
return
|
|
2492
|
+
const t = V(), e = V(), { width: o } = Ue(n.parentRef), { width: a } = Ue(n.moreIndicatorRef), s = io(/* @__PURE__ */ new Map());
|
|
2493
|
+
return Se(() => {
|
|
2494
2494
|
Y(
|
|
2495
|
-
[o, a, s,
|
|
2495
|
+
[o, a, s, se(n.direction)],
|
|
2496
2496
|
() => {
|
|
2497
2497
|
let r = o.value;
|
|
2498
2498
|
if (r <= 0) return;
|
|
2499
|
-
const u =
|
|
2499
|
+
const u = zo(n.parentRef.value), c = zo(n.listRef.value);
|
|
2500
2500
|
a.value > 0 && (r -= a.value + u), t.value = [], e.value = [];
|
|
2501
2501
|
const d = Array.from(s.entries());
|
|
2502
2502
|
Q(n.direction) === "ltr" && d.reverse(), d.forEach(([p, v], b, { length: h }) => {
|
|
@@ -2528,11 +2528,11 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2528
2528
|
*/
|
|
2529
2529
|
componentMap: s
|
|
2530
2530
|
};
|
|
2531
|
-
},
|
|
2532
|
-
const t =
|
|
2531
|
+
}, zo = (n) => {
|
|
2532
|
+
const t = He(n);
|
|
2533
2533
|
return t && Number.parseFloat(getComputedStyle(t).columnGap) || 0;
|
|
2534
|
-
},
|
|
2535
|
-
const t = pe(), e = V(), o = ve(n, void 0), { width: a } =
|
|
2534
|
+
}, Vn = (n) => {
|
|
2535
|
+
const t = pe(), e = V(), o = ve(n, void 0), { width: a } = Ue(e, { box: "border-box" });
|
|
2536
2536
|
Y(
|
|
2537
2537
|
a,
|
|
2538
2538
|
(r) => {
|
|
@@ -2553,7 +2553,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2553
2553
|
*/
|
|
2554
2554
|
isVisible: s
|
|
2555
2555
|
};
|
|
2556
|
-
},
|
|
2556
|
+
}, Nn = Symbol(), zn = Symbol(), Dn = /* @__PURE__ */ A({
|
|
2557
2557
|
__name: "OnyxExternalLinkIcon",
|
|
2558
2558
|
props: {
|
|
2559
2559
|
href: {},
|
|
@@ -2562,7 +2562,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2562
2562
|
setup(n) {
|
|
2563
2563
|
const t = n, e = m(() => {
|
|
2564
2564
|
const o = t.withExternalIcon;
|
|
2565
|
-
return o !== "auto" ? o :
|
|
2565
|
+
return o !== "auto" ? o : !Sn(t.href ?? "");
|
|
2566
2566
|
});
|
|
2567
2567
|
return (o, a) => e.value ? (i(), _(z, {
|
|
2568
2568
|
key: 0,
|
|
@@ -2611,7 +2611,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2611
2611
|
key: 0,
|
|
2612
2612
|
role: "menu",
|
|
2613
2613
|
class: "onyx-menu-item__children"
|
|
2614
|
-
},
|
|
2614
|
+
}, Ve = /* @__PURE__ */ A({
|
|
2615
2615
|
inheritAttrs: !1,
|
|
2616
2616
|
__name: "OnyxMenuItem",
|
|
2617
2617
|
props: {
|
|
@@ -2633,7 +2633,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2633
2633
|
elements: { listItem: v, menuItem: b }
|
|
2634
2634
|
} = yo({
|
|
2635
2635
|
onOpen: async () => {
|
|
2636
|
-
x.value && (c.value = !0, await
|
|
2636
|
+
x.value && (c.value = !0, await Ye(), d.value?.$el.querySelector("button").focus());
|
|
2637
2637
|
}
|
|
2638
2638
|
}), { isActive: h } = rt(), g = m(() => s.active !== "auto" ? s.active : h.value(s.link)), $ = m(
|
|
2639
2639
|
() => b({
|
|
@@ -2642,14 +2642,14 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2642
2642
|
})
|
|
2643
2643
|
), x = m(() => !!u.children), w = m(
|
|
2644
2644
|
() => x.value ? {
|
|
2645
|
-
onClick:
|
|
2645
|
+
onClick: Ae(() => c.value = !0, ["stop"])
|
|
2646
2646
|
} : null
|
|
2647
2647
|
), M = async (O) => {
|
|
2648
2648
|
switch (O.key) {
|
|
2649
2649
|
case "ArrowLeft":
|
|
2650
2650
|
case " ":
|
|
2651
2651
|
case "Enter":
|
|
2652
|
-
O.preventDefault(), c.value = !1, await
|
|
2652
|
+
O.preventDefault(), c.value = !1, await Ye(), p.value?.$el.focus();
|
|
2653
2653
|
break;
|
|
2654
2654
|
}
|
|
2655
2655
|
};
|
|
@@ -2680,8 +2680,8 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2680
2680
|
/* TEXT */
|
|
2681
2681
|
),
|
|
2682
2682
|
B(
|
|
2683
|
-
|
|
2684
|
-
|
|
2683
|
+
Dn,
|
|
2684
|
+
Ne(Ze(s.link ? l(Xe)(s.link) : void 0)),
|
|
2685
2685
|
null,
|
|
2686
2686
|
16
|
|
2687
2687
|
/* FULL_PROPS */
|
|
@@ -2690,7 +2690,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2690
2690
|
]),
|
|
2691
2691
|
x.value ? (i(), f("div", Nr, [
|
|
2692
2692
|
B(z, {
|
|
2693
|
-
icon: l(
|
|
2693
|
+
icon: l(nn),
|
|
2694
2694
|
size: "24px"
|
|
2695
2695
|
}, null, 8, ["icon"])
|
|
2696
2696
|
])) : k("v-if", !0)
|
|
@@ -2710,11 +2710,11 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2710
2710
|
ref: "backButtonRef",
|
|
2711
2711
|
class: "onyx-menu-item__back",
|
|
2712
2712
|
onKeydown: M,
|
|
2713
|
-
onClick: L[0] || (L[0] =
|
|
2713
|
+
onClick: L[0] || (L[0] = Ae((K) => c.value = !1, ["stop"]))
|
|
2714
2714
|
},
|
|
2715
2715
|
{
|
|
2716
2716
|
default: S(() => [
|
|
2717
|
-
B(z, { icon: l(
|
|
2717
|
+
B(z, { icon: l(an) }, null, 8, ["icon"]),
|
|
2718
2718
|
W(
|
|
2719
2719
|
" " + T(l(e)("back")),
|
|
2720
2720
|
1
|
|
@@ -2740,7 +2740,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2740
2740
|
}, 16, ["selected", "active", "color", "disabled", "class"]);
|
|
2741
2741
|
};
|
|
2742
2742
|
}
|
|
2743
|
-
}),
|
|
2743
|
+
}), Do = /* @__PURE__ */ A({
|
|
2744
2744
|
inheritAttrs: !1,
|
|
2745
2745
|
__name: "OnyxBreadcrumbItem",
|
|
2746
2746
|
props: {
|
|
@@ -2750,7 +2750,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2750
2750
|
href: {}
|
|
2751
2751
|
},
|
|
2752
2752
|
setup(n) {
|
|
2753
|
-
const t = n, { restAttrs: e, rootAttrs: o } = ge(), { densityClass: a } = F(t), { currentRoute: s } = rt(), r =
|
|
2753
|
+
const t = n, { restAttrs: e, rootAttrs: o } = ge(), { densityClass: a } = F(t), { currentRoute: s } = rt(), r = oe(t), { componentRef: u, isVisible: c } = Vn(Nn), d = ve(zn, void 0), p = m(() => t.href && t.active === "auto" ? t.href === s.value?.path : t.active);
|
|
2754
2754
|
return (v, b) => (i(), f(
|
|
2755
2755
|
G,
|
|
2756
2756
|
null,
|
|
@@ -2794,7 +2794,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2794
2794
|
key: 1,
|
|
2795
2795
|
to: l(d)
|
|
2796
2796
|
}, [
|
|
2797
|
-
l(c) ? k("v-if", !0) : (i(), _(
|
|
2797
|
+
l(c) ? k("v-if", !0) : (i(), _(Ve, E({
|
|
2798
2798
|
key: 0,
|
|
2799
2799
|
link: t.href,
|
|
2800
2800
|
active: p.value
|
|
@@ -2811,7 +2811,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2811
2811
|
/* STABLE_FRAGMENT */
|
|
2812
2812
|
));
|
|
2813
2813
|
}
|
|
2814
|
-
}),
|
|
2814
|
+
}), Fn = /* @__PURE__ */ A({
|
|
2815
2815
|
__name: "OnyxMoreList",
|
|
2816
2816
|
props: {
|
|
2817
2817
|
injectionKey: {},
|
|
@@ -2824,7 +2824,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2824
2824
|
parentRef: a,
|
|
2825
2825
|
listRef: s,
|
|
2826
2826
|
moreIndicatorRef: r,
|
|
2827
|
-
direction:
|
|
2827
|
+
direction: se(() => e.direction)
|
|
2828
2828
|
});
|
|
2829
2829
|
return Re(e.injectionKey, u), Y(
|
|
2830
2830
|
[() => u.visibleElements.value?.length, () => u.hiddenElements.value?.length],
|
|
@@ -2883,7 +2883,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2883
2883
|
},
|
|
2884
2884
|
setup(n) {
|
|
2885
2885
|
const t = n, { t: e } = q(), { densityClass: o } = F(t);
|
|
2886
|
-
return
|
|
2886
|
+
return Lt(t), Re(zn, J("moreListRef")), (a, s) => (i(), f("nav", {
|
|
2887
2887
|
class: I([
|
|
2888
2888
|
"onyx-component",
|
|
2889
2889
|
"onyx-breadcrumb",
|
|
@@ -2894,7 +2894,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2894
2894
|
"aria-hidden": t.skeleton
|
|
2895
2895
|
}, [
|
|
2896
2896
|
y("ol", Fr, [
|
|
2897
|
-
B(
|
|
2897
|
+
B(Do, {
|
|
2898
2898
|
class: "onyx-breadcrumb__home",
|
|
2899
2899
|
href: t.home?.link ?? "/",
|
|
2900
2900
|
"aria-label": t.home?.label ?? l(e)("breadcrumb.home"),
|
|
@@ -2922,14 +2922,14 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2922
2922
|
_: 1
|
|
2923
2923
|
/* STABLE */
|
|
2924
2924
|
}, 8, ["href", "aria-label", "skeleton"]),
|
|
2925
|
-
B(
|
|
2926
|
-
"injection-key": l(
|
|
2925
|
+
B(Fn, {
|
|
2926
|
+
"injection-key": l(Nn),
|
|
2927
2927
|
direction: "ltr"
|
|
2928
2928
|
}, {
|
|
2929
2929
|
default: S(({ attributes: r }) => [
|
|
2930
2930
|
y(
|
|
2931
2931
|
"div",
|
|
2932
|
-
|
|
2932
|
+
Ne(Ze(r)),
|
|
2933
2933
|
[
|
|
2934
2934
|
C(a.$slots, "default")
|
|
2935
2935
|
],
|
|
@@ -2938,19 +2938,19 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2938
2938
|
)
|
|
2939
2939
|
]),
|
|
2940
2940
|
more: S(({ attributes: r }) => [
|
|
2941
|
-
B(
|
|
2941
|
+
B(Ke, E(r, {
|
|
2942
2942
|
label: l(e)("navigation.moreNavItemsLabel"),
|
|
2943
2943
|
trigger: "click"
|
|
2944
2944
|
}), {
|
|
2945
2945
|
button: S(({ trigger: u }) => [
|
|
2946
|
-
B(
|
|
2946
|
+
B(Do, E(u, {
|
|
2947
2947
|
"aria-label": l(e)("navigation.showMoreNavItemsLabel"),
|
|
2948
2948
|
title: l(e)("navigation.showMoreNavItemsLabel"),
|
|
2949
|
-
icon: l(
|
|
2949
|
+
icon: l(Ao)
|
|
2950
2950
|
}), {
|
|
2951
2951
|
default: S(() => [
|
|
2952
2952
|
B(z, {
|
|
2953
|
-
icon: l(
|
|
2953
|
+
icon: l(Ao),
|
|
2954
2954
|
size: "16px"
|
|
2955
2955
|
}, null, 8, ["icon"])
|
|
2956
2956
|
]),
|
|
@@ -2977,7 +2977,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2977
2977
|
])
|
|
2978
2978
|
], 10, Dr));
|
|
2979
2979
|
}
|
|
2980
|
-
}), $p = ["button", "submit", "reset"], Cp = ["primary", "neutral", "danger"], Ep = ["default", "outline", "plain"],
|
|
2980
|
+
}), $p = ["button", "submit", "reset"], Cp = ["primary", "neutral", "danger"], Ep = ["default", "outline", "plain"], Pn = /* @__PURE__ */ A({
|
|
2981
2981
|
__name: "OnyxCard",
|
|
2982
2982
|
props: {
|
|
2983
2983
|
density: {},
|
|
@@ -2986,7 +2986,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2986
2986
|
},
|
|
2987
2987
|
setup(n) {
|
|
2988
2988
|
const t = n, { densityClass: e } = F(t), o = m(
|
|
2989
|
-
() => t.link != null ?
|
|
2989
|
+
() => t.link != null ? Xe(t.link) : void 0
|
|
2990
2990
|
);
|
|
2991
2991
|
return (a, s) => (i(), _(Ce(o.value ? it : t.clickable ? "button" : "div"), E(o.value, {
|
|
2992
2992
|
class: ["onyx-component", "onyx-card", l(e), "onyx-truncation-multiline", "onyx-text"]
|
|
@@ -2998,7 +2998,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2998
2998
|
/* FORWARDED */
|
|
2999
2999
|
}, 16, ["class"]));
|
|
3000
3000
|
}
|
|
3001
|
-
}),
|
|
3001
|
+
}), Nt = (n, t) => ({
|
|
3002
3002
|
/**
|
|
3003
3003
|
* Class that configures which type of required marker is used.
|
|
3004
3004
|
*/
|
|
@@ -3009,24 +3009,24 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3009
3009
|
"onyx-required-marker": n.required,
|
|
3010
3010
|
"onyx-optional-marker": !n.required
|
|
3011
3011
|
}))
|
|
3012
|
-
}), no = (n) => n instanceof Date && !isNaN(n),
|
|
3012
|
+
}), no = (n) => n instanceof Date && !isNaN(n), Un = () => Object.entries(Object.getOwnPropertyDescriptors(ValidityState.prototype)).filter(([n, t]) => t.enumerable).map(([n]) => n), Ur = (n) => Un().reduce(
|
|
3013
3013
|
(t, e) => (t[e] = n[e], t),
|
|
3014
3014
|
{}
|
|
3015
3015
|
), Hr = (n) => {
|
|
3016
3016
|
if (n.valueMissing) return "valueMissing";
|
|
3017
|
-
const t =
|
|
3017
|
+
const t = Un().filter((e) => e !== "valid").sort();
|
|
3018
3018
|
for (const e of t)
|
|
3019
3019
|
if (e in n && n[e]) return e;
|
|
3020
3020
|
}, Gr = (n, t) => {
|
|
3021
3021
|
const e = Object.entries(n).filter(([a, s]) => s !== void 0), o = Object.entries(t).filter(([a, s]) => s !== void 0);
|
|
3022
3022
|
return e.length !== o.length ? !1 : e.every(([a, s]) => s === t[a]);
|
|
3023
|
-
},
|
|
3023
|
+
}, Fo = (n, t) => n.reduce(
|
|
3024
3024
|
(e, o) => {
|
|
3025
3025
|
const a = o[t] ?? "";
|
|
3026
3026
|
return e[a] = e[a] || [], e[a].push(o), e;
|
|
3027
3027
|
},
|
|
3028
3028
|
{}
|
|
3029
|
-
),
|
|
3029
|
+
), St = (n, t) => {
|
|
3030
3030
|
const e = Object.entries(n);
|
|
3031
3031
|
return t && e.sort(([o], [a]) => o === t ? -1 : a === t ? 1 : 0), e.map(([o, a]) => ({
|
|
3032
3032
|
name: o,
|
|
@@ -3064,7 +3064,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3064
3064
|
), Be = (n) => {
|
|
3065
3065
|
if (n)
|
|
3066
3066
|
return typeof n == "string" ? { shortMessage: n, longMessage: n, hidden: !1 } : n;
|
|
3067
|
-
},
|
|
3067
|
+
}, Hn = (n) => {
|
|
3068
3068
|
if (!n) return;
|
|
3069
3069
|
if (typeof n == "string")
|
|
3070
3070
|
return n;
|
|
@@ -3072,9 +3072,9 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3072
3072
|
return n.shortMessage;
|
|
3073
3073
|
const { shortMessage: t, longMessage: e } = n;
|
|
3074
3074
|
return `${t}: ${e}`;
|
|
3075
|
-
},
|
|
3075
|
+
}, Fe = (n) => {
|
|
3076
3076
|
const { t, locale: e } = q(), o = V(!1), { vCustomValidity: a, validityState: s } = Kr({
|
|
3077
|
-
error: m(() =>
|
|
3077
|
+
error: m(() => Hn(n.props.error || Q(n.error))),
|
|
3078
3078
|
props: n.props
|
|
3079
3079
|
});
|
|
3080
3080
|
Y(
|
|
@@ -3099,8 +3099,8 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3099
3099
|
n: n.props.modelValue?.toString().length ?? 0,
|
|
3100
3100
|
minLength: n.props.minlength,
|
|
3101
3101
|
maxLength: d,
|
|
3102
|
-
min:
|
|
3103
|
-
max:
|
|
3102
|
+
min: Po(e.value, n.props.type, n.props.min),
|
|
3103
|
+
max: Po(e.value, n.props.type, n.props.max),
|
|
3104
3104
|
step: n.props.validStepSize
|
|
3105
3105
|
};
|
|
3106
3106
|
if (u === "typeMismatch") {
|
|
@@ -3125,7 +3125,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3125
3125
|
*/
|
|
3126
3126
|
errorMessages: r
|
|
3127
3127
|
};
|
|
3128
|
-
},
|
|
3128
|
+
}, Po = (n, t, e) => {
|
|
3129
3129
|
if (!t || !["date", "datetime-local"].includes(t)) return e?.toString();
|
|
3130
3130
|
const o = e != null ? new Date(e) : void 0;
|
|
3131
3131
|
if (!no(o)) return e?.toString();
|
|
@@ -3171,11 +3171,16 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3171
3171
|
), v = m(
|
|
3172
3172
|
() => e.alignment === "auto" ? U.value : e.alignment
|
|
3173
3173
|
), b = m(() => {
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3174
|
+
if ((p.value === "top" || p.value === "bottom") && e.alignsWithEdge) {
|
|
3175
|
+
if (v.value === "left")
|
|
3176
|
+
return `${p.value} x-start`;
|
|
3177
|
+
if (v.value === "right")
|
|
3178
|
+
return `${p.value} x-end`;
|
|
3179
|
+
}
|
|
3180
|
+
return p.value.includes(" ") ? p.value : `${p.value} center`;
|
|
3181
|
+
}), h = () => d.value === "hover" ? ws(u.value) : ks(c.value), g = Pe(h());
|
|
3177
3182
|
Y(d, () => g.value = h());
|
|
3178
|
-
const $ = m(() => g.value?.elements.tooltip), x = m(() => Q(g.value?.elements.trigger)), w =
|
|
3183
|
+
const $ = m(() => g.value?.elements.tooltip), x = m(() => Q(g.value?.elements.trigger)), w = se(() => e.alignsWithEdge), M = se(() => e.fitParent), O = J("tooltipWrapperRefEl"), L = J("tooltipRefEl"), { openDirection: N, updateOpenDirection: K } = fo(O, "top"), { openAlignment: U, updateOpenAlignment: X } = On(O, L), { leftPosition: ue, topPosition: P, updateAnchorPositionPolyfill: D, useragentSupportsAnchorApi: ne } = Bn({
|
|
3179
3184
|
positionedRef: L,
|
|
3180
3185
|
targetRef: O,
|
|
3181
3186
|
positionArea: p,
|
|
@@ -3185,13 +3190,13 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3185
3190
|
}), H = () => {
|
|
3186
3191
|
K(), X();
|
|
3187
3192
|
};
|
|
3188
|
-
|
|
3193
|
+
Je({
|
|
3189
3194
|
type: "resize",
|
|
3190
3195
|
listener: () => H()
|
|
3191
3196
|
});
|
|
3192
|
-
const R = (
|
|
3193
|
-
|
|
3194
|
-
},
|
|
3197
|
+
const R = (Le) => {
|
|
3198
|
+
Le ? L.value?.showPopover?.() : L.value?.hidePopover?.();
|
|
3199
|
+
}, we = m(() => ({
|
|
3195
3200
|
"onyx-tooltip--danger": e.color === "danger",
|
|
3196
3201
|
"onyx-tooltip--success": e.color === "success",
|
|
3197
3202
|
"onyx-tooltip--fit-parent": e.fitParent,
|
|
@@ -3199,40 +3204,48 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3199
3204
|
"onyx-tooltip--hidden": !r.value,
|
|
3200
3205
|
[`onyx-tooltip--position-${p.value.replace(" ", "-")}`]: !0,
|
|
3201
3206
|
[`onyx-tooltip--alignment-${v.value}`]: !0,
|
|
3202
|
-
"onyx-tooltip--dont-support-anchor": !
|
|
3207
|
+
"onyx-tooltip--dont-support-anchor": !ne.value,
|
|
3203
3208
|
"onyx-tooltip--without-wedge": e.withoutWedge
|
|
3204
|
-
})), { width: he } =
|
|
3209
|
+
})), { width: he } = Ue(O), et = m(
|
|
3205
3210
|
() => e.fitParent && O.value ? `${he.value}px` : "max-content"
|
|
3206
3211
|
);
|
|
3207
|
-
|
|
3208
|
-
R(r.value), H()
|
|
3209
|
-
}),
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3212
|
+
Se(() => {
|
|
3213
|
+
R(r.value), H();
|
|
3214
|
+
}), Se(() => {
|
|
3215
|
+
ne.value || Y(
|
|
3216
|
+
[et, p, v, w, r],
|
|
3217
|
+
() => D(),
|
|
3218
|
+
{ flush: "post", immediate: !0 }
|
|
3219
|
+
);
|
|
3220
|
+
}), Y(
|
|
3221
|
+
r,
|
|
3222
|
+
async (Le) => {
|
|
3223
|
+
R(Le), H();
|
|
3224
|
+
},
|
|
3225
|
+
{ flush: "post" }
|
|
3226
|
+
);
|
|
3227
|
+
const je = `--anchor-${pe()}`, me = m(() => ne.value ? {
|
|
3228
|
+
width: et.value,
|
|
3229
|
+
"position-anchor": je,
|
|
3217
3230
|
"position-area": b.value
|
|
3218
3231
|
} : {
|
|
3219
|
-
width:
|
|
3232
|
+
width: et.value,
|
|
3220
3233
|
left: ue.value,
|
|
3221
3234
|
top: P.value
|
|
3222
3235
|
});
|
|
3223
|
-
return (
|
|
3236
|
+
return (Le, Ft) => (i(), f(
|
|
3224
3237
|
"div",
|
|
3225
3238
|
{
|
|
3226
3239
|
ref: "tooltipWrapperRefEl",
|
|
3227
3240
|
class: I(["onyx-component", "onyx-tooltip-wrapper", l(a)]),
|
|
3228
|
-
style:
|
|
3241
|
+
style: Me(`anchor-name: ${je}`)
|
|
3229
3242
|
},
|
|
3230
3243
|
[
|
|
3231
3244
|
y(
|
|
3232
3245
|
"div",
|
|
3233
3246
|
E({ ref: "tooltipRefEl" }, $.value, {
|
|
3234
|
-
class: ["onyx-tooltip", "onyx-text--small", "onyx-truncation-multiline",
|
|
3235
|
-
style:
|
|
3247
|
+
class: ["onyx-tooltip", "onyx-text--small", "onyx-truncation-multiline", we.value],
|
|
3248
|
+
style: me.value
|
|
3236
3249
|
}),
|
|
3237
3250
|
[
|
|
3238
3251
|
y("div", Wr, [
|
|
@@ -3241,7 +3254,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3241
3254
|
icon: e.icon,
|
|
3242
3255
|
size: "16px"
|
|
3243
3256
|
}, null, 8, ["icon"])) : k("v-if", !0),
|
|
3244
|
-
C(
|
|
3257
|
+
C(Le.$slots, "tooltip", {}, () => [
|
|
3245
3258
|
W(
|
|
3246
3259
|
T(e.text),
|
|
3247
3260
|
1
|
|
@@ -3253,7 +3266,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3253
3266
|
16
|
|
3254
3267
|
/* FULL_PROPS */
|
|
3255
3268
|
),
|
|
3256
|
-
C(
|
|
3269
|
+
C(Le.$slots, "default", { trigger: x.value })
|
|
3257
3270
|
],
|
|
3258
3271
|
6
|
|
3259
3272
|
/* CLASS, STYLE */
|
|
@@ -3269,7 +3282,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3269
3282
|
disabled: { type: Boolean }
|
|
3270
3283
|
},
|
|
3271
3284
|
setup(n) {
|
|
3272
|
-
const t = n, e = m(() =>
|
|
3285
|
+
const t = n, e = m(() => Hn(t.errorMessages)), o = J("targetRef");
|
|
3273
3286
|
return (a, s) => (i(), f("div", Yr, [
|
|
3274
3287
|
!e.value || t.disabled ? (i(), f(
|
|
3275
3288
|
"div",
|
|
@@ -3310,9 +3323,9 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3310
3323
|
inheritAttrs: !1,
|
|
3311
3324
|
__name: "OnyxCheckbox",
|
|
3312
3325
|
props: {
|
|
3313
|
-
disabled: { type: [Boolean, Symbol], default:
|
|
3326
|
+
disabled: { type: [Boolean, Symbol], default: te },
|
|
3314
3327
|
showError: {},
|
|
3315
|
-
requiredMarker: { default:
|
|
3328
|
+
requiredMarker: { default: te },
|
|
3316
3329
|
autofocus: { type: Boolean },
|
|
3317
3330
|
required: { type: Boolean, default: !1 },
|
|
3318
3331
|
density: {},
|
|
@@ -3333,8 +3346,8 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3333
3346
|
emit: a,
|
|
3334
3347
|
key: "modelValue",
|
|
3335
3348
|
default: !1
|
|
3336
|
-
}), { vCustomValidity: c, errorMessages: d } =
|
|
3337
|
-
return t({ input: w }),
|
|
3349
|
+
}), { vCustomValidity: c, errorMessages: d } = Fe({ props: o, emit: a }), { densityClass: p } = F(o), { disabled: v, requiredMarker: b } = be(o), h = oe(o), { requiredMarkerClass: g, requiredTypeClass: $ } = Nt(o, b), x = m(() => o.hideLabel ? o.label : void 0), w = J("inputRef");
|
|
3350
|
+
return t({ input: w }), Oe(w, o), (M, O) => l(h) ? (i(), f(
|
|
3338
3351
|
"div",
|
|
3339
3352
|
E({
|
|
3340
3353
|
key: 0,
|
|
@@ -3360,7 +3373,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3360
3373
|
title: x.value
|
|
3361
3374
|
}, [
|
|
3362
3375
|
y("div", Xr, [
|
|
3363
|
-
o.loading ? (i(), _(
|
|
3376
|
+
o.loading ? (i(), _(Ie, {
|
|
3364
3377
|
key: 0,
|
|
3365
3378
|
class: "onyx-checkbox__loading",
|
|
3366
3379
|
type: "circle"
|
|
@@ -3377,7 +3390,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3377
3390
|
value: o.value,
|
|
3378
3391
|
autofocus: o.autofocus
|
|
3379
3392
|
}, l(r)), null, 16, Qr)), [
|
|
3380
|
-
[
|
|
3393
|
+
[Qo, l(u)],
|
|
3381
3394
|
[l(c)]
|
|
3382
3395
|
])
|
|
3383
3396
|
]),
|
|
@@ -3426,7 +3439,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3426
3439
|
modelValue: o,
|
|
3427
3440
|
indeterminate: !o && n.value.length && e.length ? !0 : void 0
|
|
3428
3441
|
};
|
|
3429
|
-
}),
|
|
3442
|
+
}), Gn = (n, t, e) => ({
|
|
3430
3443
|
/**
|
|
3431
3444
|
* Current "select all" checkbox state.
|
|
3432
3445
|
* - checked if all options are checked
|
|
@@ -3446,7 +3459,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3446
3459
|
), s = o ? a.concat(n.value) : a;
|
|
3447
3460
|
e(s);
|
|
3448
3461
|
}
|
|
3449
|
-
}), ti = { class: "onyx-component onyx-info-tooltip" },
|
|
3462
|
+
}), ti = { class: "onyx-component onyx-info-tooltip" }, zt = /* @__PURE__ */ A({
|
|
3450
3463
|
__name: "OnyxInfoTooltip",
|
|
3451
3464
|
props: {
|
|
3452
3465
|
text: {},
|
|
@@ -3473,7 +3486,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3473
3486
|
"onUpdate:open": u[0] || (u[0] = (c) => Ee(a) ? a.value = c : null)
|
|
3474
3487
|
}), {
|
|
3475
3488
|
default: S(({ trigger: c }) => [
|
|
3476
|
-
B(
|
|
3489
|
+
B(ke, E({
|
|
3477
3490
|
label: (
|
|
3478
3491
|
// if type is `click` aria-label will always be defined
|
|
3479
3492
|
c["aria-label"]
|
|
@@ -3508,7 +3521,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3508
3521
|
_: 1
|
|
3509
3522
|
/* STABLE */
|
|
3510
3523
|
}, 16, ["open"]),
|
|
3511
|
-
B(
|
|
3524
|
+
B(qe, null, {
|
|
3512
3525
|
default: S(() => [
|
|
3513
3526
|
W(
|
|
3514
3527
|
T(e.text),
|
|
@@ -3528,7 +3541,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3528
3541
|
}), oi = ["disabled", "aria-label"], ni = {
|
|
3529
3542
|
key: 0,
|
|
3530
3543
|
class: "onyx-checkbox-group__label"
|
|
3531
|
-
},
|
|
3544
|
+
}, Uo = /* @__PURE__ */ A({
|
|
3532
3545
|
__name: "OnyxCheckboxGroup",
|
|
3533
3546
|
props: {
|
|
3534
3547
|
truncation: { default: "ellipsis" },
|
|
@@ -3537,8 +3550,8 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3537
3550
|
hideLabel: { type: Boolean },
|
|
3538
3551
|
density: {},
|
|
3539
3552
|
skeleton: { type: [Symbol, Boolean, Number], default: ee },
|
|
3540
|
-
disabled: { type: [Boolean, Symbol], default:
|
|
3541
|
-
requiredMarker: { default:
|
|
3553
|
+
disabled: { type: [Boolean, Symbol], default: te },
|
|
3554
|
+
requiredMarker: { default: te },
|
|
3542
3555
|
options: {},
|
|
3543
3556
|
modelValue: {},
|
|
3544
3557
|
orientation: { default: "vertical" },
|
|
@@ -3555,7 +3568,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3555
3568
|
u.value = w ? [...u.value, x] : u.value.filter((M) => M !== x);
|
|
3556
3569
|
}, d = m(
|
|
3557
3570
|
() => o.options.filter((x) => !x.disabled && !x.skeleton).map(({ value: x }) => x)
|
|
3558
|
-
), { disabled: p, requiredMarker: v } = be(o), b =
|
|
3571
|
+
), { disabled: p, requiredMarker: v } = be(o), b = oe(o), h = Gn(
|
|
3559
3572
|
d,
|
|
3560
3573
|
m(() => u.value),
|
|
3561
3574
|
(x) => u.value = x
|
|
@@ -3571,7 +3584,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3571
3584
|
"aria-label": o.label
|
|
3572
3585
|
}, [
|
|
3573
3586
|
o.hideLabel ? k("v-if", !0) : (i(), f("legend", ni, [
|
|
3574
|
-
B(
|
|
3587
|
+
B(De, { is: "h3" }, {
|
|
3575
3588
|
default: S(() => [
|
|
3576
3589
|
W(
|
|
3577
3590
|
T(o.label),
|
|
@@ -3582,7 +3595,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3582
3595
|
_: 1
|
|
3583
3596
|
/* STABLE */
|
|
3584
3597
|
}),
|
|
3585
|
-
o.labelTooltip ? (i(), _(
|
|
3598
|
+
o.labelTooltip ? (i(), _(zt, {
|
|
3586
3599
|
key: 0,
|
|
3587
3600
|
trigger: "hover",
|
|
3588
3601
|
text: o.labelTooltip
|
|
@@ -3654,7 +3667,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3654
3667
|
}, ai = { class: "onyx-empty__label onyx-text onyx-truncation-multiline" }, li = {
|
|
3655
3668
|
key: 0,
|
|
3656
3669
|
class: "onyx-empty__buttons"
|
|
3657
|
-
},
|
|
3670
|
+
}, qn = /* @__PURE__ */ A({
|
|
3658
3671
|
__name: "OnyxEmpty",
|
|
3659
3672
|
props: {
|
|
3660
3673
|
density: {}
|
|
@@ -3669,7 +3682,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3669
3682
|
[
|
|
3670
3683
|
C(a.$slots, "icon", {}, () => [
|
|
3671
3684
|
B(z, {
|
|
3672
|
-
icon: l(
|
|
3685
|
+
icon: l(on),
|
|
3673
3686
|
size: "48px"
|
|
3674
3687
|
}, null, 8, ["icon"])
|
|
3675
3688
|
]),
|
|
@@ -3693,7 +3706,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3693
3706
|
}, mi = { key: 0 }, yi = ["colspan"], fi = { class: "onyx-table__empty" }, vi = { colspan: "99" }, hi = { class: "onyx-table__empty-content" }, bi = {
|
|
3694
3707
|
key: 1,
|
|
3695
3708
|
class: "onyx-table-wrapper__bottom"
|
|
3696
|
-
},
|
|
3709
|
+
}, Kn = /* @__PURE__ */ A({
|
|
3697
3710
|
__name: "OnyxTable",
|
|
3698
3711
|
props: {
|
|
3699
3712
|
density: {},
|
|
@@ -3704,7 +3717,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3704
3717
|
scrollContainerAttrs: {}
|
|
3705
3718
|
},
|
|
3706
3719
|
setup(n) {
|
|
3707
|
-
const t = n, e = ce(), { t: o } = q(), { densityClass: a } = F(t), s = m(() => o.value("table.empty")), r = J("tableRef"), { height: u, width: c } =
|
|
3720
|
+
const t = n, e = ce(), { t: o } = q(), { densityClass: a } = F(t), s = m(() => o.value("table.empty")), r = J("tableRef"), { height: u, width: c } = Ue(r), d = m(() => ({
|
|
3708
3721
|
"--onyx-table-observed-height": `${u.value}px`,
|
|
3709
3722
|
"--onyx-table-observed-width": `${c.value}px`
|
|
3710
3723
|
})), p = pe(), v = m(() => e.headline ? p : void 0);
|
|
@@ -3712,7 +3725,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3712
3725
|
"div",
|
|
3713
3726
|
{
|
|
3714
3727
|
class: "onyx-table-wrapper onyx-component",
|
|
3715
|
-
style:
|
|
3728
|
+
style: Me(d.value)
|
|
3716
3729
|
},
|
|
3717
3730
|
[
|
|
3718
3731
|
e.headline || e.actions ? (i(), f("div", si, [
|
|
@@ -3774,7 +3787,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3774
3787
|
y("td", vi, [
|
|
3775
3788
|
y("div", hi, [
|
|
3776
3789
|
C(b.$slots, "empty", { defaultMessage: s.value }, () => [
|
|
3777
|
-
B(
|
|
3790
|
+
B(qn, null, {
|
|
3778
3791
|
default: S(() => [
|
|
3779
3792
|
W(
|
|
3780
3793
|
T(s.value),
|
|
@@ -3824,7 +3837,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3824
3837
|
"--onyx-data-grid-row-count": Math.max(t.rows.length + 2, 3),
|
|
3825
3838
|
"--onyx-data-grid-template-columns": t.columns.map(({ key: a, width: s }) => `var(${`--onyx-data-grid-column-${go(a)}`}, ${s ?? "minmax(min-content, 1fr)"})`).join(" ")
|
|
3826
3839
|
}));
|
|
3827
|
-
return (a, s) => (i(), _(
|
|
3840
|
+
return (a, s) => (i(), _(Kn, E({ class: "onyx-data-grid" }, t, {
|
|
3828
3841
|
"scroll-container-attrs": l(fe)(t.scrollContainerAttrs, { style: o.value })
|
|
3829
3842
|
}), _e({
|
|
3830
3843
|
head: S(() => [
|
|
@@ -3915,14 +3928,14 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3915
3928
|
de(e, (r, u) => ({
|
|
3916
3929
|
name: u,
|
|
3917
3930
|
fn: S((c) => [
|
|
3918
|
-
C(a.$slots, r?.name,
|
|
3931
|
+
C(a.$slots, r?.name, Ne(Ze(c)), () => [
|
|
3919
3932
|
(i(), _(Ce(r)))
|
|
3920
3933
|
])
|
|
3921
3934
|
])
|
|
3922
3935
|
}))
|
|
3923
3936
|
]), 1040, ["scroll-container-attrs"]));
|
|
3924
3937
|
}
|
|
3925
|
-
}), _i = ["autofocus", "placeholder", "aria-label"], xi = ["aria-label"],
|
|
3938
|
+
}), _i = ["autofocus", "placeholder", "aria-label"], xi = ["aria-label"], jn = /* @__PURE__ */ A({
|
|
3926
3939
|
inheritAttrs: !1,
|
|
3927
3940
|
__name: "OnyxMiniSearch",
|
|
3928
3941
|
props: {
|
|
@@ -3939,7 +3952,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3939
3952
|
key: "modelValue",
|
|
3940
3953
|
default: ""
|
|
3941
3954
|
}), { rootAttrs: r, restAttrs: u } = ge(), { densityClass: c } = F(o), { t: d } = q(), p = J("inputRef"), v = m(() => d.value("select.searchPlaceholder"));
|
|
3942
|
-
return
|
|
3955
|
+
return Oe(p, o), t({
|
|
3943
3956
|
/**
|
|
3944
3957
|
* Focuses the input.
|
|
3945
3958
|
*/
|
|
@@ -3970,11 +3983,11 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3970
3983
|
class: "onyx-mini-search__clear",
|
|
3971
3984
|
"aria-label": l(d)("select.clearSearch"),
|
|
3972
3985
|
tabindex: "-1",
|
|
3973
|
-
onMousedown: h[1] || (h[1] =
|
|
3986
|
+
onMousedown: h[1] || (h[1] = Ae(() => {
|
|
3974
3987
|
}, ["prevent"])),
|
|
3975
3988
|
onClick: h[2] || (h[2] = (g) => a("clear"))
|
|
3976
3989
|
}, [
|
|
3977
|
-
B(z, { icon: l(
|
|
3990
|
+
B(z, { icon: l(ze) }, null, 8, ["icon"])
|
|
3978
3991
|
], 40, xi),
|
|
3979
3992
|
B(z, {
|
|
3980
3993
|
class: "onyx-mini-search__icon",
|
|
@@ -3985,10 +3998,10 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3985
3998
|
/* FULL_PROPS */
|
|
3986
3999
|
));
|
|
3987
4000
|
}
|
|
3988
|
-
}), ki = (n, t) => n.flatMap((e) => e[t]).filter((e) => e?.func).sort((e, o) => (e?.order ?? 0) - (o?.order ?? 0)), wi = (n, t) => n.reduce((e, o) => o.func(e), t),
|
|
4001
|
+
}), ki = (n, t) => n.flatMap((e) => e[t]).filter((e) => e?.func).sort((e, o) => (e?.order ?? 0) - (o?.order ?? 0)), wi = (n, t) => n.reduce((e, o) => o.func(e), t), Mt = Symbol("RowOptions"), Si = { class: "onyx-component onyx-data-grid-header-cell" }, $i = { class: "onyx-data-grid-header-cell__label" }, Ci = {
|
|
3989
4002
|
key: 0,
|
|
3990
4003
|
class: "onyx-data-grid-header-cell__actions"
|
|
3991
|
-
},
|
|
4004
|
+
}, Qe = /* @__PURE__ */ A({
|
|
3992
4005
|
__name: "HeaderCell",
|
|
3993
4006
|
props: {
|
|
3994
4007
|
label: {}
|
|
@@ -4008,19 +4021,19 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
4008
4021
|
])) : k("v-if", !0)
|
|
4009
4022
|
]));
|
|
4010
4023
|
}
|
|
4011
|
-
}), _o = "-", vt = (n) => n?.fallback ?? _o, $e = (n) => Object.freeze(n),
|
|
4024
|
+
}), _o = "-", vt = (n) => n?.fallback ?? _o, $e = (n) => Object.freeze(n), Wn = (n, t) => {
|
|
4012
4025
|
if (n == null || n instanceof Date || typeof n == "boolean" || typeof n == "symbol")
|
|
4013
4026
|
return vt(t);
|
|
4014
4027
|
const { n: e } = q();
|
|
4015
4028
|
return e.value(n, t?.format ?? "decimal").replace("NaN", _o);
|
|
4016
|
-
},
|
|
4017
|
-
header: { component:
|
|
4029
|
+
}, Yn = $e({
|
|
4030
|
+
header: { component: Qe },
|
|
4018
4031
|
cell: {
|
|
4019
|
-
component: ({ metadata: n, modelValue: t }) =>
|
|
4032
|
+
component: ({ metadata: n, modelValue: t }) => Wn(t, n?.typeOptions),
|
|
4020
4033
|
tdAttributes: { class: "onyx-data-grid-number-cell" }
|
|
4021
4034
|
}
|
|
4022
4035
|
}), xo = (n, t) => n == null ? vt(t) : Array.isArray(n) ? n.map((e) => xo(e)).filter((e) => e != vt(t)).join(", ") : n instanceof Date ? n.toString() : typeof n == "object" ? JSON.stringify(n) : String(n), ko = $e({
|
|
4023
|
-
header: { component:
|
|
4036
|
+
header: { component: Qe },
|
|
4024
4037
|
cell: {
|
|
4025
4038
|
component: (n) => xo(n.modelValue, n.metadata?.typeOptions)
|
|
4026
4039
|
}
|
|
@@ -4033,32 +4046,32 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
4033
4046
|
} catch {
|
|
4034
4047
|
return vt(t);
|
|
4035
4048
|
}
|
|
4036
|
-
},
|
|
4037
|
-
header: { component:
|
|
4049
|
+
}, Jn = $e({
|
|
4050
|
+
header: { component: Qe },
|
|
4038
4051
|
cell: {
|
|
4039
4052
|
component: (n) => gt(n.modelValue, { format: "date", ...n.metadata?.typeOptions })
|
|
4040
4053
|
}
|
|
4041
|
-
}),
|
|
4042
|
-
header: { component:
|
|
4054
|
+
}), Zn = $e({
|
|
4055
|
+
header: { component: Qe },
|
|
4043
4056
|
cell: {
|
|
4044
4057
|
component: (n) => gt(n.modelValue, { format: "datetime-local", ...n.metadata?.typeOptions })
|
|
4045
4058
|
}
|
|
4046
|
-
}),
|
|
4047
|
-
header: { component:
|
|
4059
|
+
}), Xn = $e({
|
|
4060
|
+
header: { component: Qe },
|
|
4048
4061
|
cell: {
|
|
4049
4062
|
component: (n) => gt(n.modelValue, { format: "time", ...n.metadata?.typeOptions })
|
|
4050
4063
|
}
|
|
4051
|
-
}),
|
|
4052
|
-
header: { component:
|
|
4064
|
+
}), Qn = $e({
|
|
4065
|
+
header: { component: Qe },
|
|
4053
4066
|
cell: {
|
|
4054
4067
|
component: (n) => gt(n.modelValue, { format: "timestamp", ...n.metadata?.typeOptions })
|
|
4055
4068
|
}
|
|
4056
|
-
}),
|
|
4069
|
+
}), ea = $e({
|
|
4057
4070
|
cell: {
|
|
4058
4071
|
component: () => le(Z)
|
|
4059
4072
|
}
|
|
4060
|
-
}),
|
|
4061
|
-
header: { component:
|
|
4073
|
+
}), ta = $e({
|
|
4074
|
+
header: { component: Qe },
|
|
4062
4075
|
cell: {
|
|
4063
4076
|
tdAttributes: {
|
|
4064
4077
|
class: "onyx-data-grid-boolean-cell"
|
|
@@ -4076,11 +4089,11 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
4076
4089
|
return [
|
|
4077
4090
|
le(z, r),
|
|
4078
4091
|
// since icons are aria hidden (visual only), we include the value with OnyxVisuallyHidden here for screen readers
|
|
4079
|
-
le(
|
|
4092
|
+
le(qe, void 0, () => r.label)
|
|
4080
4093
|
];
|
|
4081
4094
|
}
|
|
4082
4095
|
}
|
|
4083
|
-
}),
|
|
4096
|
+
}), oa = (n) => {
|
|
4084
4097
|
const t = [
|
|
4085
4098
|
...n.flatMap(({ typeRenderer: o }) => o && qr(o)).filter(Boolean)
|
|
4086
4099
|
], e = new Map(t);
|
|
@@ -4132,38 +4145,38 @@ const Ei = (n, t) => {
|
|
|
4132
4145
|
};
|
|
4133
4146
|
});
|
|
4134
4147
|
return wi(u.value, x);
|
|
4135
|
-
}), d = m(() =>
|
|
4148
|
+
}), d = m(() => oa(r)), p = () => Ei(c.value, Q(o)), v = () => fe(
|
|
4136
4149
|
...r.map(({ scrollContainerAttributes: x }) => x?.())
|
|
4137
4150
|
), b = () => {
|
|
4138
4151
|
const x = r.map((O) => O.header).filter((O) => !!O), w = x.map((O) => O.actions).filter((O) => !!O), M = x.map((O) => O.wrapper).filter((O) => !!O);
|
|
4139
4152
|
return c.value.map((O, L, N) => {
|
|
4140
4153
|
const K = w.flatMap((H) => H(O, L, N)), U = d.value.getFor("header", O.type.name), X = K.map(({ menuItems: H }) => H).filter((H) => !!H), ue = K.map(({ iconComponent: H }) => H), P = le(
|
|
4141
|
-
|
|
4154
|
+
Ke,
|
|
4142
4155
|
{
|
|
4143
4156
|
label: t.t.value("navigation.moreActionsFlyout", { column: O.label }),
|
|
4144
4157
|
trigger: "click"
|
|
4145
4158
|
},
|
|
4146
4159
|
{
|
|
4147
|
-
button: ({ trigger: H }) => le(
|
|
4160
|
+
button: ({ trigger: H }) => le(ke, {
|
|
4148
4161
|
class: K.length > 1 ? "onyx-system-button--multiple-actions" : "",
|
|
4149
4162
|
label: t.t.value("navigation.moreActionsTrigger"),
|
|
4150
4163
|
color: "medium",
|
|
4151
|
-
icon:
|
|
4164
|
+
icon: tn,
|
|
4152
4165
|
...H
|
|
4153
4166
|
}),
|
|
4154
4167
|
options: () => X
|
|
4155
4168
|
}
|
|
4156
4169
|
), D = {
|
|
4157
4170
|
actions: () => {
|
|
4158
|
-
const R = yt(ue).map((me) => typeof me == "object" && "iconComponent" in me ? me : { iconComponent: me }),
|
|
4171
|
+
const R = yt(ue).map((me) => typeof me == "object" && "iconComponent" in me ? me : { iconComponent: me }), we = R.filter((me) => me?.alwaysShowInHeader).map((me) => me.iconComponent), he = R.find((me) => !me.alwaysShowInHeader)?.iconComponent ?? null, je = K.filter(
|
|
4159
4172
|
(me) => !me.iconComponent?.alwaysShowInHeader
|
|
4160
4173
|
).length > 1 || K.some((me) => me.showFlyoutMenu);
|
|
4161
4174
|
return [
|
|
4162
|
-
...
|
|
4163
|
-
|
|
4175
|
+
...je ? we : [],
|
|
4176
|
+
je ? P : he
|
|
4164
4177
|
].filter(Boolean);
|
|
4165
4178
|
}
|
|
4166
|
-
},
|
|
4179
|
+
}, ne = M.reduce(
|
|
4167
4180
|
(H, R) => le(R(O, L, N), H),
|
|
4168
4181
|
(H) => le(U.component, { label: O.label, ...H }, D)
|
|
4169
4182
|
);
|
|
@@ -4171,7 +4184,7 @@ const Ei = (n, t) => {
|
|
|
4171
4184
|
thAttributes: fe(U.thAttributes, O.thAttributes),
|
|
4172
4185
|
key: O.key,
|
|
4173
4186
|
width: O.width,
|
|
4174
|
-
component: () => le(
|
|
4187
|
+
component: () => le(ne)
|
|
4175
4188
|
};
|
|
4176
4189
|
});
|
|
4177
4190
|
}, h = (x) => {
|
|
@@ -4181,7 +4194,7 @@ const Ei = (n, t) => {
|
|
|
4181
4194
|
const L = O(M);
|
|
4182
4195
|
L && (M = L);
|
|
4183
4196
|
}), M.map((O) => {
|
|
4184
|
-
const L = O[
|
|
4197
|
+
const L = O[Mt]?.columns ?? c.value, N = L.reduce(
|
|
4185
4198
|
(K, { key: U, type: X, tdAttributes: ue }) => {
|
|
4186
4199
|
const P = d.value.getFor("cell", X.name);
|
|
4187
4200
|
return K[U] = {
|
|
@@ -4199,7 +4212,7 @@ const Ei = (n, t) => {
|
|
|
4199
4212
|
);
|
|
4200
4213
|
return {
|
|
4201
4214
|
id: O.id,
|
|
4202
|
-
trAttributes: O[
|
|
4215
|
+
trAttributes: O[Mt]?.trAttributes,
|
|
4203
4216
|
columns: L,
|
|
4204
4217
|
cells: N
|
|
4205
4218
|
};
|
|
@@ -4248,7 +4261,7 @@ const Ei = (n, t) => {
|
|
|
4248
4261
|
isAsync: o
|
|
4249
4262
|
};
|
|
4250
4263
|
}, Oi = Symbol("Filtering"), wo = 0, Ai = (n) => (t) => {
|
|
4251
|
-
const { i18n: e } = t, o =
|
|
4264
|
+
const { i18n: e } = t, o = se(n?.filterState ?? {}), a = m(() => Q(n?.columns)), { isEnabled: s, isAsync: r } = ut(t, n), u = (p) => r.value ? p : p.filter(
|
|
4252
4265
|
(v) => Object.entries(o.value).every(
|
|
4253
4266
|
([b, h]) => {
|
|
4254
4267
|
const g = a.value?.[b], $ = { ...n?.filterConfig, ...g?.config };
|
|
@@ -4259,7 +4272,7 @@ const Ei = (n, t) => {
|
|
|
4259
4272
|
w,
|
|
4260
4273
|
b,
|
|
4261
4274
|
v
|
|
4262
|
-
) : (w =
|
|
4275
|
+
) : (w = Ot(w), x = Ot(x), $.caseSensitive || (w = w.toLowerCase(), x = x.toLowerCase()), $.searchFromStart ? w.startsWith(x) : $.exactMatch ? w === x : w.includes(x));
|
|
4263
4276
|
}
|
|
4264
4277
|
)
|
|
4265
4278
|
), c = (p) => {
|
|
@@ -4269,7 +4282,7 @@ const Ei = (n, t) => {
|
|
|
4269
4282
|
const b = (h) => {
|
|
4270
4283
|
h.key === "Enter" && (o.value[p] = v);
|
|
4271
4284
|
};
|
|
4272
|
-
return le(
|
|
4285
|
+
return le(jn, {
|
|
4273
4286
|
label: e.t.value("dataGrid.head.filtering.menu.label", { column: p.toString() }),
|
|
4274
4287
|
class: "onyx-filter-search",
|
|
4275
4288
|
placeholder: e.t.value("dataGrid.head.filtering.menu.placeholder"),
|
|
@@ -4300,7 +4313,7 @@ const Ei = (n, t) => {
|
|
|
4300
4313
|
actions: ({ key: p }) => s.value(p) ? [
|
|
4301
4314
|
{
|
|
4302
4315
|
iconComponent: o.value[p] ? {
|
|
4303
|
-
iconComponent: le(
|
|
4316
|
+
iconComponent: le(ke, {
|
|
4304
4317
|
label: e.t.value("dataGrid.head.filtering.removeLabel", {
|
|
4305
4318
|
column: p.toString()
|
|
4306
4319
|
}),
|
|
@@ -4316,7 +4329,7 @@ const Ei = (n, t) => {
|
|
|
4316
4329
|
] : []
|
|
4317
4330
|
}
|
|
4318
4331
|
};
|
|
4319
|
-
},
|
|
4332
|
+
}, na = (n) => {
|
|
4320
4333
|
const e = V(!1), o = (s) => {
|
|
4321
4334
|
const r = s.target;
|
|
4322
4335
|
if (!(r instanceof Element)) return;
|
|
@@ -4325,15 +4338,15 @@ const Ei = (n, t) => {
|
|
|
4325
4338
|
};
|
|
4326
4339
|
return { vScrollEnd: {
|
|
4327
4340
|
mounted: (s) => {
|
|
4328
|
-
|
|
4341
|
+
Te(() => {
|
|
4329
4342
|
(n.enabled?.value ?? !0) && !n.loading.value ? s.addEventListener("scroll", o) : s.removeEventListener("scroll", o);
|
|
4330
4343
|
});
|
|
4331
4344
|
}
|
|
4332
|
-
}, isScrollEnd:
|
|
4345
|
+
}, isScrollEnd: Ct(e) };
|
|
4333
4346
|
}, So = (n, t, e) => {
|
|
4334
4347
|
const o = t ?? -1 / 0, a = e ?? 1 / 0;
|
|
4335
4348
|
return Math.min(Math.max(n, o), a);
|
|
4336
|
-
},
|
|
4349
|
+
}, Ho = (n, t) => {
|
|
4337
4350
|
if (n == null) return "";
|
|
4338
4351
|
if (t >= 0) return n.toFixed(t);
|
|
4339
4352
|
const e = Math.pow(10, t);
|
|
@@ -4374,7 +4387,7 @@ const Ei = (n, t) => {
|
|
|
4374
4387
|
},
|
|
4375
4388
|
setup(n) {
|
|
4376
4389
|
const t = n;
|
|
4377
|
-
return (e, o) => (i(), _(Ce(n.messages.hidden ?
|
|
4390
|
+
return (e, o) => (i(), _(Ce(n.messages.hidden ? qe : "span"), {
|
|
4378
4391
|
class: I(["onyx-component", "onyx-form-message", `onyx-form-message__${t.type}`])
|
|
4379
4392
|
}, {
|
|
4380
4393
|
default: S(() => [
|
|
@@ -4385,7 +4398,7 @@ const Ei = (n, t) => {
|
|
|
4385
4398
|
1
|
|
4386
4399
|
/* TEXT */
|
|
4387
4400
|
),
|
|
4388
|
-
t.messages.longMessage ? (i(), _(
|
|
4401
|
+
t.messages.longMessage ? (i(), _(zt, {
|
|
4389
4402
|
key: 0,
|
|
4390
4403
|
class: "onyx-form-message__tooltip",
|
|
4391
4404
|
position: "bottom",
|
|
@@ -4409,7 +4422,7 @@ const Ei = (n, t) => {
|
|
|
4409
4422
|
props: {
|
|
4410
4423
|
disabled: { type: [Boolean, Symbol] },
|
|
4411
4424
|
showError: {},
|
|
4412
|
-
requiredMarker: { default:
|
|
4425
|
+
requiredMarker: { default: te },
|
|
4413
4426
|
required: { type: Boolean, default: !1 },
|
|
4414
4427
|
density: {},
|
|
4415
4428
|
autofocus: { type: Boolean },
|
|
@@ -4434,7 +4447,7 @@ const Ei = (n, t) => {
|
|
|
4434
4447
|
},
|
|
4435
4448
|
emits: ["update:modelValue"],
|
|
4436
4449
|
setup(n, { emit: t }) {
|
|
4437
|
-
const e = n, o = t, { requiredMarker: a } = be(e), { requiredMarkerClass: s, requiredTypeClass: r } =
|
|
4450
|
+
const e = n, o = t, { requiredMarker: a } = be(e), { requiredMarkerClass: s, requiredTypeClass: r } = Nt(e, a), u = ae({
|
|
4438
4451
|
props: e,
|
|
4439
4452
|
emit: o,
|
|
4440
4453
|
key: "modelValue"
|
|
@@ -4487,7 +4500,7 @@ const Ei = (n, t) => {
|
|
|
4487
4500
|
2
|
|
4488
4501
|
/* CLASS */
|
|
4489
4502
|
)) : k("v-if", !0),
|
|
4490
|
-
e.labelTooltip ? (i(), _(
|
|
4503
|
+
e.labelTooltip ? (i(), _(zt, {
|
|
4491
4504
|
key: 1,
|
|
4492
4505
|
class: "onyx-form-element__label-tooltip",
|
|
4493
4506
|
trigger: "hover",
|
|
@@ -4551,8 +4564,8 @@ const Ei = (n, t) => {
|
|
|
4551
4564
|
inheritAttrs: !1,
|
|
4552
4565
|
__name: "OnyxSelectInput",
|
|
4553
4566
|
props: {
|
|
4554
|
-
disabled: { type: [Boolean, Symbol], default:
|
|
4555
|
-
showError: { default:
|
|
4567
|
+
disabled: { type: [Boolean, Symbol], default: te },
|
|
4568
|
+
showError: { default: te },
|
|
4556
4569
|
requiredMarker: {},
|
|
4557
4570
|
required: { type: Boolean },
|
|
4558
4571
|
density: {},
|
|
@@ -4576,7 +4589,7 @@ const Ei = (n, t) => {
|
|
|
4576
4589
|
},
|
|
4577
4590
|
emits: ["inputClick", "validityChange"],
|
|
4578
4591
|
setup(n, { expose: t, emit: e }) {
|
|
4579
|
-
const { rootAttrs: o, restAttrs: a } = ge(), s = n, r = e, { t: u } = q(), { vCustomValidity: c, errorMessages: d } =
|
|
4592
|
+
const { rootAttrs: o, restAttrs: a } = ge(), s = n, r = e, { t: u } = q(), { vCustomValidity: c, errorMessages: d } = Fe({ props: s, emit: r }), p = m(() => Be(s.success)), v = m(() => Be(s.message)), { disabled: b, showError: h } = be(s), g = oe(s), $ = _t(h), x = m(() => s.modelValue ? s.modelValue.length : 0), w = m(() => {
|
|
4580
4593
|
const U = s.modelValue?.length;
|
|
4581
4594
|
if (!s.modelValue || !U) return "";
|
|
4582
4595
|
if (U === 1) return s.modelValue[0];
|
|
@@ -4594,10 +4607,10 @@ const Ei = (n, t) => {
|
|
|
4594
4607
|
M.value || X && U === !1 && (M.value = !0);
|
|
4595
4608
|
}
|
|
4596
4609
|
);
|
|
4597
|
-
const N =
|
|
4610
|
+
const N = gn.concat(_n), K = (U) => {
|
|
4598
4611
|
N.includes(U.key) || U.preventDefault();
|
|
4599
4612
|
};
|
|
4600
|
-
return
|
|
4613
|
+
return Oe(L, s), (U, X) => l(g) ? (i(), f(
|
|
4601
4614
|
"div",
|
|
4602
4615
|
E({
|
|
4603
4616
|
key: 0,
|
|
@@ -4635,7 +4648,7 @@ const Ei = (n, t) => {
|
|
|
4635
4648
|
class: "onyx-select-input__wrapper",
|
|
4636
4649
|
onClick: X[0] || (X[0] = (P) => !l(b) && !s.loading && r("inputClick"))
|
|
4637
4650
|
}, [
|
|
4638
|
-
s.loading ? (i(), _(
|
|
4651
|
+
s.loading ? (i(), _(Ie, {
|
|
4639
4652
|
key: 0,
|
|
4640
4653
|
class: "onyx-select-input__loading",
|
|
4641
4654
|
type: "circle"
|
|
@@ -4671,7 +4684,7 @@ const Ei = (n, t) => {
|
|
|
4671
4684
|
}, {
|
|
4672
4685
|
default: S(({ trigger: P }) => [
|
|
4673
4686
|
B(
|
|
4674
|
-
|
|
4687
|
+
Vt,
|
|
4675
4688
|
E({ class: "onyx-select-input__badge" }, P, { color: "neutral" }),
|
|
4676
4689
|
{
|
|
4677
4690
|
default: S(() => [
|
|
@@ -4717,7 +4730,7 @@ const Ei = (n, t) => {
|
|
|
4717
4730
|
/* FULL_PROPS */
|
|
4718
4731
|
));
|
|
4719
4732
|
}
|
|
4720
|
-
}), Pi = ["checked", "aria-labelledby", "disabled", "indeterminate"],
|
|
4733
|
+
}), Pi = ["checked", "aria-labelledby", "disabled", "indeterminate"], Go = /* @__PURE__ */ A({
|
|
4721
4734
|
__name: "OnyxSelectOption",
|
|
4722
4735
|
props: {
|
|
4723
4736
|
active: { type: Boolean, default: !1 },
|
|
@@ -4792,12 +4805,12 @@ const Ei = (n, t) => {
|
|
|
4792
4805
|
}, Yi = {
|
|
4793
4806
|
key: 0,
|
|
4794
4807
|
class: "onyx-select__description onyx-text--small"
|
|
4795
|
-
},
|
|
4808
|
+
}, aa = /* @__PURE__ */ A({
|
|
4796
4809
|
__name: "OnyxSelect",
|
|
4797
4810
|
props: {
|
|
4798
4811
|
density: {},
|
|
4799
|
-
showError: { default:
|
|
4800
|
-
requiredMarker: { default:
|
|
4812
|
+
showError: { default: te },
|
|
4813
|
+
requiredMarker: { default: te },
|
|
4801
4814
|
required: { type: Boolean },
|
|
4802
4815
|
error: {},
|
|
4803
4816
|
autofocus: { type: Boolean },
|
|
@@ -4819,7 +4832,7 @@ const Ei = (n, t) => {
|
|
|
4819
4832
|
withSearch: { type: Boolean },
|
|
4820
4833
|
multiple: { type: Boolean },
|
|
4821
4834
|
withCheckAll: { type: [Boolean, Object] },
|
|
4822
|
-
disabled: { type: [Boolean, Symbol], default:
|
|
4835
|
+
disabled: { type: [Boolean, Symbol], default: te },
|
|
4823
4836
|
valueLabel: { default: void 0 },
|
|
4824
4837
|
alignment: { default: "full" },
|
|
4825
4838
|
listLabel: {},
|
|
@@ -4847,11 +4860,11 @@ const Ei = (n, t) => {
|
|
|
4847
4860
|
emit: a,
|
|
4848
4861
|
key: "open",
|
|
4849
4862
|
default: !1
|
|
4850
|
-
}), v = J("selectRef"), { openDirection: b, updateOpenDirection: h } = fo(v), g = V(), $ = m(() => yt(c.value)), x = m(() => o.valueLabel !== void 0 ? yt(o.valueLabel) : $.value.reduce((j,
|
|
4851
|
-
const
|
|
4852
|
-
return
|
|
4863
|
+
}), v = J("selectRef"), { openDirection: b, updateOpenDirection: h } = fo(v), g = V(), $ = m(() => yt(c.value)), x = m(() => o.valueLabel !== void 0 ? yt(o.valueLabel) : $.value.reduce((j, ie) => {
|
|
4864
|
+
const re = o.options.find(({ value: ye }) => ye === ie)?.label;
|
|
4865
|
+
return re && j.push(re), j;
|
|
4853
4866
|
}, [])), w = J("miniSearchRef"), M = J("selectInputRef"), O = m(() => o.noFilter || !d.value ? o.options : o.options.filter(
|
|
4854
|
-
({ label: j }) =>
|
|
4867
|
+
({ label: j }) => wn(j, d.value)
|
|
4855
4868
|
));
|
|
4856
4869
|
Y(
|
|
4857
4870
|
$,
|
|
@@ -4861,33 +4874,33 @@ const Ei = (n, t) => {
|
|
|
4861
4874
|
{ immediate: !0 }
|
|
4862
4875
|
);
|
|
4863
4876
|
const L = pe(), N = m(() => (o.multiple && o.withCheckAll && !d.value ? [L] : []).concat(
|
|
4864
|
-
|
|
4877
|
+
Bo.value
|
|
4865
4878
|
)), K = async (j) => {
|
|
4866
|
-
const
|
|
4867
|
-
|
|
4879
|
+
const ie = Fo(
|
|
4880
|
+
Eo(),
|
|
4868
4881
|
"group"
|
|
4869
4882
|
);
|
|
4870
|
-
if (o.keepSelectionOrder ? dt.value =
|
|
4871
|
-
|
|
4883
|
+
if (o.keepSelectionOrder ? dt.value = St(ie) : dt.value = St(
|
|
4884
|
+
ie,
|
|
4872
4885
|
r.value("selections.selectGroup")
|
|
4873
4886
|
), o.readonly) {
|
|
4874
4887
|
p.value = !1;
|
|
4875
4888
|
return;
|
|
4876
4889
|
}
|
|
4877
|
-
const
|
|
4878
|
-
p.value = !
|
|
4890
|
+
const re = p.value;
|
|
4891
|
+
p.value = !re, await Ye(), p.value && h(), re !== p.value && (re ? (d.value && (d.value = ""), j || M.value?.input?.focus()) : w.value?.focus());
|
|
4879
4892
|
}, U = () => g.value = N.value.at(0), X = () => g.value = N.value.at(-1), ue = (j) => {
|
|
4880
|
-
const
|
|
4881
|
-
|
|
4893
|
+
const ie = N.value.findIndex((re) => re === j);
|
|
4894
|
+
ie < N.value.length - 1 && (g.value = N.value[ie + 1]);
|
|
4882
4895
|
}, P = (j) => {
|
|
4883
|
-
const
|
|
4884
|
-
|
|
4896
|
+
const ie = N.value.findIndex((re) => re === j);
|
|
4897
|
+
ie > 0 && (g.value = N.value[ie - 1]);
|
|
4885
4898
|
}, D = (j) => {
|
|
4886
|
-
const
|
|
4887
|
-
|
|
4888
|
-
},
|
|
4899
|
+
const ie = O.value.find((re) => re.label.toLowerCase().trim().startsWith(j.toLowerCase()));
|
|
4900
|
+
ie && (g.value = ie.value);
|
|
4901
|
+
}, ne = (j) => d.value = j, H = (j) => {
|
|
4889
4902
|
if (j === L) {
|
|
4890
|
-
|
|
4903
|
+
kt.value?.handleChange(!kt.value.state.value.modelValue);
|
|
4891
4904
|
return;
|
|
4892
4905
|
}
|
|
4893
4906
|
if (!O.value.find(({ value: ye }) => ye === j))
|
|
@@ -4899,14 +4912,14 @@ const Ei = (n, t) => {
|
|
|
4899
4912
|
$.value.some((ye) => ye === j) ? c.value = $.value.filter(
|
|
4900
4913
|
(ye) => ye !== j
|
|
4901
4914
|
) : c.value = [...$.value, j];
|
|
4902
|
-
}, R = m(() => o.withSearch ? "list" : "none"), { label:
|
|
4903
|
-
elements: { input: me, option:
|
|
4915
|
+
}, R = m(() => o.withSearch ? "list" : "none"), { label: we, listLabel: he, listDescription: et, multiple: je } = ro(o), {
|
|
4916
|
+
elements: { input: me, option: Le, group: Ft, listbox: va }
|
|
4904
4917
|
} = hs({
|
|
4905
4918
|
autocomplete: R,
|
|
4906
|
-
label:
|
|
4919
|
+
label: we,
|
|
4907
4920
|
listLabel: he,
|
|
4908
|
-
listDescription:
|
|
4909
|
-
multiple:
|
|
4921
|
+
listDescription: et,
|
|
4922
|
+
multiple: je,
|
|
4910
4923
|
activeOption: m(() => g.value),
|
|
4911
4924
|
isExpanded: p,
|
|
4912
4925
|
templateRef: v,
|
|
@@ -4916,30 +4929,30 @@ const Ei = (n, t) => {
|
|
|
4916
4929
|
onActivateNext: ue,
|
|
4917
4930
|
onActivatePrevious: P,
|
|
4918
4931
|
onTypeAhead: D,
|
|
4919
|
-
onAutocomplete:
|
|
4932
|
+
onAutocomplete: ne,
|
|
4920
4933
|
onSelect: H
|
|
4921
|
-
}),
|
|
4934
|
+
}), Eo = () => {
|
|
4922
4935
|
if (o.keepSelectionOrder || !c.value || !Array.isArray(c.value) || c.value.length == 0)
|
|
4923
4936
|
return O.value;
|
|
4924
4937
|
const j = new Set(c.value);
|
|
4925
|
-
return O.value.map((
|
|
4926
|
-
...
|
|
4927
|
-
group: j.has(
|
|
4938
|
+
return O.value.map((ie) => ({
|
|
4939
|
+
...ie,
|
|
4940
|
+
group: j.has(ie.value) ? r.value("selections.selectGroup") : ie.group
|
|
4928
4941
|
}));
|
|
4929
|
-
}, dt = V(), { vScrollEnd: ha, isScrollEnd: ba } =
|
|
4942
|
+
}, dt = V(), { vScrollEnd: ha, isScrollEnd: ba } = na({
|
|
4930
4943
|
enabled: m(() => o.lazyLoading?.enabled ?? !1),
|
|
4931
4944
|
loading: m(() => o.loading),
|
|
4932
4945
|
offset: m(() => o.lazyLoading?.scrollOffset)
|
|
4933
4946
|
}), Pt = m(() => {
|
|
4934
4947
|
if (!O.value.length)
|
|
4935
4948
|
return o.withSearch && d.value ? r.value("select.noMatch") : r.value("select.empty");
|
|
4936
|
-
}),
|
|
4949
|
+
}), Bo = m(
|
|
4937
4950
|
() => O.value.filter((j) => !j.disabled).map(({ value: j }) => j)
|
|
4938
|
-
),
|
|
4951
|
+
), kt = m(() => {
|
|
4939
4952
|
if (!(!o.multiple || !o.withCheckAll))
|
|
4940
|
-
return
|
|
4941
|
-
const
|
|
4942
|
-
c.value =
|
|
4953
|
+
return Gn(Bo, $, (j) => {
|
|
4954
|
+
const ie = j.map((re) => o.options.find(({ value: ye }) => ye === re)?.value).filter((re) => re != null);
|
|
4955
|
+
c.value = ie;
|
|
4943
4956
|
});
|
|
4944
4957
|
}), Ut = m(() => {
|
|
4945
4958
|
if (!o.multiple)
|
|
@@ -4947,7 +4960,7 @@ const Ei = (n, t) => {
|
|
|
4947
4960
|
const j = r.value("selections.selectAll");
|
|
4948
4961
|
return typeof o.withCheckAll == "object" ? o.withCheckAll.label ?? j : j;
|
|
4949
4962
|
});
|
|
4950
|
-
|
|
4963
|
+
Te(() => {
|
|
4951
4964
|
ba.value && a("lazyLoad");
|
|
4952
4965
|
});
|
|
4953
4966
|
const ga = m(() => {
|
|
@@ -4962,17 +4975,17 @@ const Ei = (n, t) => {
|
|
|
4962
4975
|
return t({ input: m(() => M.value?.input) }), Y(
|
|
4963
4976
|
[O],
|
|
4964
4977
|
() => {
|
|
4965
|
-
const j =
|
|
4966
|
-
|
|
4978
|
+
const j = Fo(
|
|
4979
|
+
Eo(),
|
|
4967
4980
|
"group"
|
|
4968
4981
|
);
|
|
4969
|
-
o.keepSelectionOrder ? dt.value =
|
|
4982
|
+
o.keepSelectionOrder ? dt.value = St(j) : dt.value = St(
|
|
4970
4983
|
j,
|
|
4971
4984
|
r.value("selections.selectGroup")
|
|
4972
4985
|
);
|
|
4973
4986
|
},
|
|
4974
4987
|
{ deep: !0, immediate: !0 }
|
|
4975
|
-
), (j,
|
|
4988
|
+
), (j, ie) => (i(), f(
|
|
4976
4989
|
"div",
|
|
4977
4990
|
Ui,
|
|
4978
4991
|
[
|
|
@@ -4989,12 +5002,12 @@ const Ei = (n, t) => {
|
|
|
4989
5002
|
"show-focus": l(p),
|
|
4990
5003
|
autofocus: o.autofocus,
|
|
4991
5004
|
onInputClick: K,
|
|
4992
|
-
onValidityChange:
|
|
5005
|
+
onValidityChange: ie[0] || (ie[0] = (re) => a("validityChange", re))
|
|
4993
5006
|
}), null, 16, ["show-focus", "autofocus"])
|
|
4994
5007
|
]),
|
|
4995
5008
|
content: S(() => [
|
|
4996
5009
|
xe((i(), f("div", Hi, [
|
|
4997
|
-
o.withSearch ? (i(), _(
|
|
5010
|
+
o.withSearch ? (i(), _(jn, E({
|
|
4998
5011
|
key: 0,
|
|
4999
5012
|
ref: "miniSearchRef",
|
|
5000
5013
|
autofocus: "",
|
|
@@ -5002,16 +5015,16 @@ const Ei = (n, t) => {
|
|
|
5002
5015
|
}, l(me), {
|
|
5003
5016
|
label: l(r)("select.searchInputLabel"),
|
|
5004
5017
|
class: "onyx-select__search",
|
|
5005
|
-
onClear:
|
|
5018
|
+
onClear: ie[1] || (ie[1] = (re) => d.value = "")
|
|
5006
5019
|
}), null, 16, ["model-value", "label"])) : k("v-if", !0),
|
|
5007
5020
|
y(
|
|
5008
5021
|
"div",
|
|
5009
|
-
|
|
5022
|
+
Ne(Ze(l(va))),
|
|
5010
5023
|
[
|
|
5011
5024
|
Pt.value ? (i(), f("ul", Gi, [
|
|
5012
5025
|
y("li", qi, [
|
|
5013
5026
|
C(j.$slots, "empty", { defaultMessage: Pt.value }, () => [
|
|
5014
|
-
B(
|
|
5027
|
+
B(qn, {
|
|
5015
5028
|
density: o.density
|
|
5016
5029
|
}, {
|
|
5017
5030
|
default: S(() => [
|
|
@@ -5035,19 +5048,19 @@ const Ei = (n, t) => {
|
|
|
5035
5048
|
E({
|
|
5036
5049
|
key: 0,
|
|
5037
5050
|
class: "onyx-select__check-all"
|
|
5038
|
-
}, l(
|
|
5051
|
+
}, l(Ft)({ label: Ut.value })),
|
|
5039
5052
|
[
|
|
5040
|
-
B(
|
|
5041
|
-
l(
|
|
5053
|
+
B(Go, E(
|
|
5054
|
+
l(Le)({
|
|
5042
5055
|
value: l(L),
|
|
5043
5056
|
label: Ut.value,
|
|
5044
5057
|
// TODO: remove type cast once its fixed in Vue / vue-tsc version
|
|
5045
|
-
selected:
|
|
5058
|
+
selected: kt.value?.state.value.modelValue
|
|
5046
5059
|
}),
|
|
5047
5060
|
{
|
|
5048
5061
|
multiple: "",
|
|
5049
5062
|
active: l(L) === g.value,
|
|
5050
|
-
indeterminate:
|
|
5063
|
+
indeterminate: kt.value?.state.value.indeterminate,
|
|
5051
5064
|
density: o.density
|
|
5052
5065
|
}
|
|
5053
5066
|
), {
|
|
@@ -5068,29 +5081,29 @@ const Ei = (n, t) => {
|
|
|
5068
5081
|
(i(!0), f(
|
|
5069
5082
|
G,
|
|
5070
5083
|
null,
|
|
5071
|
-
de(dt.value, (
|
|
5084
|
+
de(dt.value, (re) => (i(), f(
|
|
5072
5085
|
"ul",
|
|
5073
5086
|
E({
|
|
5074
|
-
key:
|
|
5087
|
+
key: re.name,
|
|
5075
5088
|
class: "onyx-select__group"
|
|
5076
|
-
}, { ref_for: !0 }, l(
|
|
5089
|
+
}, { ref_for: !0 }, l(Ft)({ label: re.name })),
|
|
5077
5090
|
[
|
|
5078
|
-
|
|
5091
|
+
re.name !== "" ? (i(), f(
|
|
5079
5092
|
"li",
|
|
5080
5093
|
Ki,
|
|
5081
|
-
T(
|
|
5094
|
+
T(re.name),
|
|
5082
5095
|
1
|
|
5083
5096
|
/* TEXT */
|
|
5084
5097
|
)) : k("v-if", !0),
|
|
5085
5098
|
(i(!0), f(
|
|
5086
5099
|
G,
|
|
5087
5100
|
null,
|
|
5088
|
-
de(
|
|
5101
|
+
de(re.items, (ye) => (i(), _(Go, E(
|
|
5089
5102
|
{
|
|
5090
5103
|
key: ye.value.toString()
|
|
5091
5104
|
},
|
|
5092
5105
|
{ ref_for: !0 },
|
|
5093
|
-
l(
|
|
5106
|
+
l(Le)({
|
|
5094
5107
|
value: ye.value,
|
|
5095
5108
|
label: ye.label,
|
|
5096
5109
|
disabled: ye.disabled,
|
|
@@ -5135,7 +5148,7 @@ const Ei = (n, t) => {
|
|
|
5135
5148
|
/* FULL_PROPS */
|
|
5136
5149
|
),
|
|
5137
5150
|
o.lazyLoading?.loading ? (i(), f("div", ji, [
|
|
5138
|
-
B(
|
|
5151
|
+
B(Ie, { class: "onyx-select__loading" })
|
|
5139
5152
|
])) : k("v-if", !0),
|
|
5140
5153
|
s.optionsEnd ? (i(), f("div", Wi, [
|
|
5141
5154
|
C(j.$slots, "optionsEnd")
|
|
@@ -5170,7 +5183,7 @@ const Ei = (n, t) => {
|
|
|
5170
5183
|
},
|
|
5171
5184
|
emits: ["update:modelValue"],
|
|
5172
5185
|
setup(n, { emit: t }) {
|
|
5173
|
-
const e = n, o = t, { t: a, n: s } = q(), { densityClass: r } = F(e), u =
|
|
5186
|
+
const e = n, o = t, { t: a, n: s } = q(), { densityClass: r } = F(e), u = oe(e), c = V(""), d = V(qt);
|
|
5174
5187
|
Y(c, () => d.value = qt);
|
|
5175
5188
|
const p = () => {
|
|
5176
5189
|
d.value = Math.min(e.pages, d.value + qt);
|
|
@@ -5183,7 +5196,7 @@ const Ei = (n, t) => {
|
|
|
5183
5196
|
})), b = m(() => {
|
|
5184
5197
|
let $ = v.value;
|
|
5185
5198
|
const x = c.value.trim().toLowerCase();
|
|
5186
|
-
return x && ($ = $.filter((w) =>
|
|
5199
|
+
return x && ($ = $.filter((w) => wn(w.label, x))), $.slice(0, d.value);
|
|
5187
5200
|
}), h = m(() => e.modelValue <= 1), g = m(() => e.modelValue >= e.pages);
|
|
5188
5201
|
return ($, x) => l(u) ? (i(), _(Z, {
|
|
5189
5202
|
key: 0,
|
|
@@ -5193,9 +5206,9 @@ const Ei = (n, t) => {
|
|
|
5193
5206
|
class: I(["onyx-component", "onyx-pagination", "onyx-text", l(r)]),
|
|
5194
5207
|
role: "group",
|
|
5195
5208
|
"aria-label": l(a)("pagination.label"),
|
|
5196
|
-
style:
|
|
5209
|
+
style: Me({ "--onyx-pagination-character-count": e.modelValue.toString().length })
|
|
5197
5210
|
}, [
|
|
5198
|
-
B(
|
|
5211
|
+
B(aa, {
|
|
5199
5212
|
"search-term": c.value,
|
|
5200
5213
|
"onUpdate:searchTerm": x[0] || (x[0] = (w) => c.value = w),
|
|
5201
5214
|
class: "onyx-pagination__select",
|
|
@@ -5227,7 +5240,7 @@ const Ei = (n, t) => {
|
|
|
5227
5240
|
disabled: e.disabled || h.value,
|
|
5228
5241
|
onClick: x[2] || (x[2] = (w) => o("update:modelValue", e.modelValue - 1))
|
|
5229
5242
|
}, [
|
|
5230
|
-
B(z, { icon: l(
|
|
5243
|
+
B(z, { icon: l(ln) }, null, 8, ["icon"])
|
|
5231
5244
|
], 8, Xi),
|
|
5232
5245
|
y("button", {
|
|
5233
5246
|
class: "onyx-pagination__button",
|
|
@@ -5236,11 +5249,11 @@ const Ei = (n, t) => {
|
|
|
5236
5249
|
disabled: e.disabled || g.value,
|
|
5237
5250
|
onClick: x[3] || (x[3] = (w) => o("update:modelValue", e.modelValue + 1))
|
|
5238
5251
|
}, [
|
|
5239
|
-
B(z, { icon: l(
|
|
5252
|
+
B(z, { icon: l(nn) }, null, 8, ["icon"])
|
|
5240
5253
|
], 8, Qi)
|
|
5241
5254
|
], 14, Ji));
|
|
5242
5255
|
}
|
|
5243
|
-
}),
|
|
5256
|
+
}), la = /* @__PURE__ */ A({
|
|
5244
5257
|
__name: "OnyxPagination",
|
|
5245
5258
|
props: {
|
|
5246
5259
|
density: {},
|
|
@@ -5262,13 +5275,13 @@ const Ei = (n, t) => {
|
|
|
5262
5275
|
/* FULL_PROPS */
|
|
5263
5276
|
));
|
|
5264
5277
|
}
|
|
5265
|
-
}), tc = Symbol("Selection"),
|
|
5266
|
-
const e = `selection-column-${pe()}`, o =
|
|
5278
|
+
}), tc = Symbol("Selection"), sa = 1e3, oc = (n) => (t) => {
|
|
5279
|
+
const e = `selection-column-${pe()}`, o = se(
|
|
5267
5280
|
n?.selectionState ?? {
|
|
5268
5281
|
selectMode: "include",
|
|
5269
5282
|
contingent: /* @__PURE__ */ new Set()
|
|
5270
5283
|
}
|
|
5271
|
-
), a = V(0), s =
|
|
5284
|
+
), a = V(0), s = se(n?.hover ?? !1), { isEnabled: r } = ut(t, n), u = (h) => o.value.selectMode === "include" ? o.value.contingent.has(h) : !o.value.contingent.has(h), c = (h) => {
|
|
5272
5285
|
o.value.selectMode = h ? "exclude" : "include", o.value.contingent.clear();
|
|
5273
5286
|
}, d = (h, g) => {
|
|
5274
5287
|
o.value.selectMode === "include" && h === !0 || o.value.selectMode === "exclude" && h === !1 ? o.value.contingent.add(g) : o.value.contingent.delete(g);
|
|
@@ -5292,7 +5305,7 @@ const Ei = (n, t) => {
|
|
|
5292
5305
|
},
|
|
5293
5306
|
mutation: {
|
|
5294
5307
|
func: (h) => (a.value = h.length, h),
|
|
5295
|
-
order:
|
|
5308
|
+
order: sa
|
|
5296
5309
|
},
|
|
5297
5310
|
typeRenderer: {
|
|
5298
5311
|
[e]: $e({
|
|
@@ -5333,12 +5346,12 @@ const Ei = (n, t) => {
|
|
|
5333
5346
|
})
|
|
5334
5347
|
}
|
|
5335
5348
|
};
|
|
5336
|
-
}, nc = Symbol("Pagination"), ac = Symbol("LazyLoadingRow"),
|
|
5337
|
-
const e =
|
|
5349
|
+
}, nc = Symbol("Pagination"), ac = Symbol("LazyLoadingRow"), qo = Symbol("LazyLoadingRenderer"), lc = Symbol("ButtonLoadingRow"), Ko = Symbol("ButtonLoadingRenderer"), ra = Math.min(wo, sa) - 1, sc = (n = {}) => (t) => {
|
|
5350
|
+
const e = se(
|
|
5338
5351
|
n?.paginationState ?? { current: 1, pages: 1, pageSize: n?.pageSize ?? 25 }
|
|
5339
5352
|
), { isEnabled: o, isAsync: a } = ut(t, n), s = m(() => n.disabled?.value ?? !1), r = m(
|
|
5340
5353
|
() => e.value.pages > 1 || e.value.current > e.value.pageSize
|
|
5341
|
-
), u = m(() => e.value.current >= e.value.pages), c = m(() => n.loading?.value ?? !1), d = n.type ?? "select", p = V(), { vScrollEnd: v, isScrollEnd: b } =
|
|
5354
|
+
), u = m(() => e.value.current >= e.value.pages), c = m(() => n.loading?.value ?? !1), d = n.type ?? "select", p = V(), { vScrollEnd: v, isScrollEnd: b } = na({
|
|
5342
5355
|
enabled: m(() => d === "lazy" && !u.value && !Q(n.disabled)),
|
|
5343
5356
|
loading: c
|
|
5344
5357
|
});
|
|
@@ -5350,7 +5363,7 @@ const Ei = (n, t) => {
|
|
|
5350
5363
|
name: nc,
|
|
5351
5364
|
watch: [e, o, a, s, t.skeleton, b, c],
|
|
5352
5365
|
mutation: {
|
|
5353
|
-
order:
|
|
5366
|
+
order: ra,
|
|
5354
5367
|
func: (h) => {
|
|
5355
5368
|
if (!o.value()) return h;
|
|
5356
5369
|
let g = h.slice();
|
|
@@ -5362,19 +5375,19 @@ const Ei = (n, t) => {
|
|
|
5362
5375
|
}
|
|
5363
5376
|
return d === "lazy" && c.value && g.push({
|
|
5364
5377
|
id: ac,
|
|
5365
|
-
[
|
|
5366
|
-
columns: [{ key: "id", type: { name:
|
|
5378
|
+
[Mt]: {
|
|
5379
|
+
columns: [{ key: "id", type: { name: qo } }]
|
|
5367
5380
|
}
|
|
5368
5381
|
}), d === "button" && (!u.value || c.value) && g.push({
|
|
5369
5382
|
id: lc,
|
|
5370
|
-
[
|
|
5371
|
-
columns: [{ key: "id", type: { name:
|
|
5383
|
+
[Mt]: {
|
|
5384
|
+
columns: [{ key: "id", type: { name: Ko } }]
|
|
5372
5385
|
}
|
|
5373
5386
|
}), g;
|
|
5374
5387
|
}
|
|
5375
5388
|
},
|
|
5376
5389
|
typeRenderer: {
|
|
5377
|
-
[
|
|
5390
|
+
[qo]: $e({
|
|
5378
5391
|
cell: {
|
|
5379
5392
|
tdAttributes: {
|
|
5380
5393
|
class: "onyx-data-grid__lazy-pagination",
|
|
@@ -5383,13 +5396,13 @@ const Ei = (n, t) => {
|
|
|
5383
5396
|
component: () => le(oo)
|
|
5384
5397
|
}
|
|
5385
5398
|
}),
|
|
5386
|
-
[
|
|
5399
|
+
[Ko]: $e({
|
|
5387
5400
|
cell: {
|
|
5388
5401
|
tdAttributes: {
|
|
5389
5402
|
class: "onyx-data-grid__button-pagination",
|
|
5390
5403
|
colspan: 99
|
|
5391
5404
|
},
|
|
5392
|
-
component: () => c.value ? le(oo) : le(
|
|
5405
|
+
component: () => c.value ? le(oo) : le(ke, {
|
|
5393
5406
|
label: t.i18n.t.value("dataGrid.loadMore"),
|
|
5394
5407
|
color: "medium",
|
|
5395
5408
|
disabled: Q(n.disabled),
|
|
@@ -5403,7 +5416,7 @@ const Ei = (n, t) => {
|
|
|
5403
5416
|
if (!o.value() || d !== "select") return [];
|
|
5404
5417
|
const h = t.skeleton.value && !r.value;
|
|
5405
5418
|
return !r.value && !h ? [] : [
|
|
5406
|
-
le(
|
|
5419
|
+
le(la, {
|
|
5407
5420
|
modelValue: e.value.current,
|
|
5408
5421
|
pages: e.value.pages,
|
|
5409
5422
|
disabled: s.value,
|
|
@@ -5419,7 +5432,7 @@ const Ei = (n, t) => {
|
|
|
5419
5432
|
}
|
|
5420
5433
|
})
|
|
5421
5434
|
};
|
|
5422
|
-
}, rc = Symbol("Base"), ic = Math.max(wo,
|
|
5435
|
+
}, rc = Symbol("Base"), ic = Math.max(wo, ra) + 1, cc = (n) => ({ skeleton: t }) => {
|
|
5423
5436
|
const e = V(0), o = m(() => {
|
|
5424
5437
|
const a = Q(n?.headline);
|
|
5425
5438
|
if (a)
|
|
@@ -5446,18 +5459,18 @@ const Ei = (n, t) => {
|
|
|
5446
5459
|
class: t.value ? "onyx-data-grid--skeleton" : ""
|
|
5447
5460
|
}),
|
|
5448
5461
|
typeRenderer: {
|
|
5449
|
-
number:
|
|
5462
|
+
number: Yn,
|
|
5450
5463
|
string: ko,
|
|
5451
|
-
date:
|
|
5452
|
-
"datetime-local":
|
|
5453
|
-
time:
|
|
5454
|
-
timestamp:
|
|
5455
|
-
skeleton:
|
|
5456
|
-
boolean:
|
|
5464
|
+
date: Jn,
|
|
5465
|
+
"datetime-local": Zn,
|
|
5466
|
+
time: Xn,
|
|
5467
|
+
timestamp: Qn,
|
|
5468
|
+
skeleton: ea,
|
|
5469
|
+
boolean: ta
|
|
5457
5470
|
},
|
|
5458
5471
|
slots: {
|
|
5459
5472
|
headline: (a) => o.value ? [
|
|
5460
|
-
le(
|
|
5473
|
+
le(De, o.value, () => [
|
|
5461
5474
|
o.value?.text,
|
|
5462
5475
|
o.value?.rowCount && !t.value ? le(
|
|
5463
5476
|
"span",
|
|
@@ -5486,7 +5499,7 @@ const Ei = (n, t) => {
|
|
|
5486
5499
|
withPageScrolling: { type: Boolean }
|
|
5487
5500
|
},
|
|
5488
5501
|
setup(n) {
|
|
5489
|
-
const t = n, e = q(), o = ce(), a =
|
|
5502
|
+
const t = n, e = q(), o = ce(), a = oe(t), s = Pe([]), r = Pe([]), u = Pe(), c = Pe(), d = Pe(), { columns: p, data: v, features: b, columnGroups: h, async: g } = ro(t);
|
|
5490
5503
|
let $;
|
|
5491
5504
|
const x = ({
|
|
5492
5505
|
createRendererColumns: w,
|
|
@@ -5506,7 +5519,7 @@ const Ei = (n, t) => {
|
|
|
5506
5519
|
b,
|
|
5507
5520
|
() => {
|
|
5508
5521
|
const w = Bi(
|
|
5509
|
-
[cc({ headline:
|
|
5522
|
+
[cc({ headline: se(t, "headline") }), ...b.value],
|
|
5510
5523
|
{
|
|
5511
5524
|
i18n: e,
|
|
5512
5525
|
columnConfig: p,
|
|
@@ -5544,24 +5557,24 @@ const Ei = (n, t) => {
|
|
|
5544
5557
|
o.empty ? {
|
|
5545
5558
|
name: "empty",
|
|
5546
5559
|
fn: S((O) => [
|
|
5547
|
-
C(w.$slots, "empty",
|
|
5560
|
+
C(w.$slots, "empty", Ne(Ze(O)))
|
|
5548
5561
|
]),
|
|
5549
5562
|
key: "0"
|
|
5550
5563
|
} : void 0
|
|
5551
5564
|
]), 1040, ["column-groups", "columns", "rows", "scroll-container-attrs"]));
|
|
5552
5565
|
}
|
|
5553
5566
|
}), uc = Symbol("HideColumnsFeature"), Kt = Symbol("HiddenColumn"), dc = (n) => (t) => {
|
|
5554
|
-
const { i18n: e } = t, { isEnabled: o } = ut(t, n), a = V([]), s =
|
|
5567
|
+
const { i18n: e } = t, { isEnabled: o } = ut(t, n), a = V([]), s = se(n?.state ?? /* @__PURE__ */ new Set()), r = m(
|
|
5555
5568
|
() => a.value.filter((d) => s.value.has(d.key))
|
|
5556
5569
|
), u = () => le(
|
|
5557
|
-
|
|
5570
|
+
Ke,
|
|
5558
5571
|
{
|
|
5559
5572
|
label: e.t.value("dataGrid.head.hideColumns.revealFlyout"),
|
|
5560
5573
|
trigger: "click",
|
|
5561
5574
|
alignment: "right"
|
|
5562
5575
|
},
|
|
5563
5576
|
{
|
|
5564
|
-
button: ({ trigger: d }) => le(
|
|
5577
|
+
button: ({ trigger: d }) => le(ke, {
|
|
5565
5578
|
class: "",
|
|
5566
5579
|
label: e.t.value("dataGrid.head.hideColumns.revealTrigger"),
|
|
5567
5580
|
color: "medium",
|
|
@@ -5570,7 +5583,7 @@ const Ei = (n, t) => {
|
|
|
5570
5583
|
}),
|
|
5571
5584
|
options: () => Array.from(r.value).sort((d, p) => Intl.Collator(e.locale.value).compare(d.label, p.label)).map(
|
|
5572
5585
|
({ key: d, label: p }) => le(
|
|
5573
|
-
|
|
5586
|
+
Ve,
|
|
5574
5587
|
{
|
|
5575
5588
|
onClick: () => s.value.delete(d)
|
|
5576
5589
|
},
|
|
@@ -5579,7 +5592,7 @@ const Ei = (n, t) => {
|
|
|
5579
5592
|
)
|
|
5580
5593
|
}
|
|
5581
5594
|
), c = (d) => le(
|
|
5582
|
-
|
|
5595
|
+
Ve,
|
|
5583
5596
|
{
|
|
5584
5597
|
onClick: () => s.value.add(d)
|
|
5585
5598
|
},
|
|
@@ -5648,7 +5661,7 @@ const Ei = (n, t) => {
|
|
|
5648
5661
|
},
|
|
5649
5662
|
emits: ["updateWidth", "autoSize", "start", "end"],
|
|
5650
5663
|
setup(n, { emit: t }) {
|
|
5651
|
-
const e = n, o = t, { t: a } = q(), s = V(), r = m(() =>
|
|
5664
|
+
const e = n, o = t, { t: a } = q(), s = V(), r = m(() => He(e.element));
|
|
5652
5665
|
let u;
|
|
5653
5666
|
const c = V(!1), d = () => {
|
|
5654
5667
|
if (!r.value) return;
|
|
@@ -5656,7 +5669,7 @@ const Ei = (n, t) => {
|
|
|
5656
5669
|
const g = { signal: u.signal, passive: !0 };
|
|
5657
5670
|
window.addEventListener("mousemove", v, g), window.addEventListener("mouseup", b, g), window.addEventListener("keydown", h, g), o("start");
|
|
5658
5671
|
};
|
|
5659
|
-
|
|
5672
|
+
Se(() => {
|
|
5660
5673
|
Y(
|
|
5661
5674
|
() => e.active,
|
|
5662
5675
|
(g) => {
|
|
@@ -5694,7 +5707,7 @@ const Ei = (n, t) => {
|
|
|
5694
5707
|
onDblclick: p
|
|
5695
5708
|
},
|
|
5696
5709
|
[
|
|
5697
|
-
B(
|
|
5710
|
+
B(qe, null, {
|
|
5698
5711
|
default: S(() => [
|
|
5699
5712
|
W(
|
|
5700
5713
|
T(l(a)("resizeHandle.label")),
|
|
@@ -5710,7 +5723,7 @@ const Ei = (n, t) => {
|
|
|
5710
5723
|
/* CLASS, NEED_HYDRATION */
|
|
5711
5724
|
));
|
|
5712
5725
|
}
|
|
5713
|
-
}), pc = Symbol("Resizing"),
|
|
5726
|
+
}), pc = Symbol("Resizing"), $t = Symbol("FILLER_COLUMN"), mc = (n) => (t) => {
|
|
5714
5727
|
const e = V(), o = 48, a = V(/* @__PURE__ */ new Map()), { isEnabled: s } = ut(t, n), r = V(/* @__PURE__ */ new Map()), u = V();
|
|
5715
5728
|
Y(
|
|
5716
5729
|
[a, r],
|
|
@@ -5737,7 +5750,7 @@ const Ei = (n, t) => {
|
|
|
5737
5750
|
thAttributes: fe(h, b.thAttributes)
|
|
5738
5751
|
};
|
|
5739
5752
|
});
|
|
5740
|
-
return v.push({ key:
|
|
5753
|
+
return v.push({ key: $t, type: { name: $t }, label: "" }), v;
|
|
5741
5754
|
}, d = (p, v, b) => {
|
|
5742
5755
|
const h = p.default?.();
|
|
5743
5756
|
return !s.value(v.key) || b ? h : [
|
|
@@ -5776,7 +5789,7 @@ const Ei = (n, t) => {
|
|
|
5776
5789
|
/**
|
|
5777
5790
|
* The filler column stretches the remaining space in case the column widths are smaller than the table's intended width.
|
|
5778
5791
|
*/
|
|
5779
|
-
[
|
|
5792
|
+
[$t]: {
|
|
5780
5793
|
header: {
|
|
5781
5794
|
thAttributes: { class: "onyx-data-grid-filler-column-cell", "aria-hidden": !0 },
|
|
5782
5795
|
component: () => null
|
|
@@ -5789,12 +5802,12 @@ const Ei = (n, t) => {
|
|
|
5789
5802
|
},
|
|
5790
5803
|
header: {
|
|
5791
5804
|
wrapper: (p, v, { length: b }) => (h, { slots: g }) => {
|
|
5792
|
-
const $ = v === b - 1, x = p.type.name ===
|
|
5805
|
+
const $ = v === b - 1, x = p.type.name === $t;
|
|
5793
5806
|
return d(g, p, $ || x);
|
|
5794
5807
|
}
|
|
5795
5808
|
}
|
|
5796
5809
|
};
|
|
5797
|
-
}, $o = (n, t, e) => e.compare(String(n), String(t)), ot = (n, t) => Number(n) - Number(t), yc = (n, t) => ot(n ? 1 : 0, t ? 1 : 0),
|
|
5810
|
+
}, $o = (n, t, e) => e.compare(String(n), String(t)), ot = (n, t) => Number(n) - Number(t), yc = (n, t) => ot(n ? 1 : 0, t ? 1 : 0), jo = (n) => new Date(
|
|
5798
5811
|
Date.UTC(
|
|
5799
5812
|
0,
|
|
5800
5813
|
0,
|
|
@@ -5807,9 +5820,9 @@ const Ei = (n, t) => {
|
|
|
5807
5820
|
), fc = (n, t, e) => {
|
|
5808
5821
|
if (!(n instanceof Date && t instanceof Date))
|
|
5809
5822
|
return $o(n, t, e);
|
|
5810
|
-
const o =
|
|
5823
|
+
const o = jo(n), a = jo(t);
|
|
5811
5824
|
return ot(o, a);
|
|
5812
|
-
},
|
|
5825
|
+
}, Wo = Object.freeze({
|
|
5813
5826
|
string: $o,
|
|
5814
5827
|
number: ot,
|
|
5815
5828
|
date: ot,
|
|
@@ -5819,7 +5832,7 @@ const Ei = (n, t) => {
|
|
|
5819
5832
|
timestamp: ot,
|
|
5820
5833
|
skeleton: () => 0,
|
|
5821
5834
|
boolean: yc
|
|
5822
|
-
}),
|
|
5835
|
+
}), Yo = /* @__PURE__ */ A({
|
|
5823
5836
|
__name: "SortAction",
|
|
5824
5837
|
props: {
|
|
5825
5838
|
columnLabel: {},
|
|
@@ -5827,14 +5840,14 @@ const Ei = (n, t) => {
|
|
|
5827
5840
|
},
|
|
5828
5841
|
setup(n) {
|
|
5829
5842
|
const t = n, { t: e } = q(), o = m(
|
|
5830
|
-
() => t.sortDirection === "asc" ?
|
|
5843
|
+
() => t.sortDirection === "asc" ? sn : t.sortDirection === "desc" ? rn : Fa
|
|
5831
5844
|
), a = m(() => {
|
|
5832
5845
|
const s = so(t.sortDirection);
|
|
5833
5846
|
return e.value(`dataGrid.head.sorting.action.${s}`, {
|
|
5834
5847
|
field: t.columnLabel
|
|
5835
5848
|
});
|
|
5836
5849
|
});
|
|
5837
|
-
return (s, r) => (i(), _(
|
|
5850
|
+
return (s, r) => (i(), _(ke, {
|
|
5838
5851
|
label: a.value,
|
|
5839
5852
|
icon: o.value,
|
|
5840
5853
|
color: "medium"
|
|
@@ -5851,7 +5864,7 @@ const Ei = (n, t) => {
|
|
|
5851
5864
|
return "asc";
|
|
5852
5865
|
}
|
|
5853
5866
|
}, vc = Symbol("Sorting"), hc = (n) => (t) => {
|
|
5854
|
-
const e =
|
|
5867
|
+
const e = se(
|
|
5855
5868
|
n?.sortState ?? {
|
|
5856
5869
|
column: void 0,
|
|
5857
5870
|
direction: "none"
|
|
@@ -5865,7 +5878,7 @@ const Ei = (n, t) => {
|
|
|
5865
5878
|
if ($)
|
|
5866
5879
|
return $;
|
|
5867
5880
|
const x = r.find(({ key: w }) => h === w)?.type.name ?? "";
|
|
5868
|
-
return
|
|
5881
|
+
return Wo[x] ? Wo[x] : $o;
|
|
5869
5882
|
}, d = (h) => {
|
|
5870
5883
|
const { column: g, direction: $ } = e.value;
|
|
5871
5884
|
if (s.value || !g || $ === "none")
|
|
@@ -5881,11 +5894,11 @@ const Ei = (n, t) => {
|
|
|
5881
5894
|
}, v = m(() => (h, g) => e.value.column === h && e.value.direction === g), b = (h, g) => {
|
|
5882
5895
|
const $ = {
|
|
5883
5896
|
none: Pa,
|
|
5884
|
-
asc:
|
|
5885
|
-
desc:
|
|
5897
|
+
asc: sn,
|
|
5898
|
+
desc: rn
|
|
5886
5899
|
};
|
|
5887
5900
|
return le(
|
|
5888
|
-
|
|
5901
|
+
Ve,
|
|
5889
5902
|
{
|
|
5890
5903
|
active: v.value(h, g),
|
|
5891
5904
|
onClick: () => e.value = { column: h, direction: g }
|
|
@@ -5912,7 +5925,7 @@ const Ei = (n, t) => {
|
|
|
5912
5925
|
header: {
|
|
5913
5926
|
actions: ({ key: h, label: g }) => a.value(h) ? [
|
|
5914
5927
|
{
|
|
5915
|
-
iconComponent: le(
|
|
5928
|
+
iconComponent: le(Yo, {
|
|
5916
5929
|
columnLabel: g,
|
|
5917
5930
|
sortDirection: e.value.column === h ? e.value.direction : void 0,
|
|
5918
5931
|
onClick: () => p(h)
|
|
@@ -5925,7 +5938,7 @@ const Ei = (n, t) => {
|
|
|
5925
5938
|
},
|
|
5926
5939
|
e.value.column === h && e.value.direction && e.value.direction !== "none" ? {
|
|
5927
5940
|
iconComponent: {
|
|
5928
|
-
iconComponent: le(
|
|
5941
|
+
iconComponent: le(Yo, {
|
|
5929
5942
|
columnLabel: g,
|
|
5930
5943
|
sortDirection: e.value.column === h ? e.value.direction : void 0,
|
|
5931
5944
|
onClick: () => p(h, !0)
|
|
@@ -5938,7 +5951,7 @@ const Ei = (n, t) => {
|
|
|
5938
5951
|
};
|
|
5939
5952
|
}, bc = Symbol("StickyColumns"), gc = (n) => () => {
|
|
5940
5953
|
const t = m(() => Q(n?.columns) ?? []), e = m(() => Q(n?.position) ?? "left"), o = V({}), a = V({}), s = pe(), r = V(!1), u = (p) => `--onyx-data-grid-sticky-column-position-${s}-${go(p)}`;
|
|
5941
|
-
|
|
5954
|
+
Se(() => {
|
|
5942
5955
|
if (!("ResizeObserver" in window)) return;
|
|
5943
5956
|
const p = new ResizeObserver(() => {
|
|
5944
5957
|
Object.entries(a.value).forEach(
|
|
@@ -5951,7 +5964,7 @@ const Ei = (n, t) => {
|
|
|
5951
5964
|
p.disconnect(), Object.values(a.value).forEach((v) => p.observe(v));
|
|
5952
5965
|
},
|
|
5953
5966
|
{ deep: !0, immediate: !0 }
|
|
5954
|
-
),
|
|
5967
|
+
), It(() => p.disconnect());
|
|
5955
5968
|
});
|
|
5956
5969
|
const c = (p, v) => {
|
|
5957
5970
|
if (!n) return;
|
|
@@ -6005,26 +6018,26 @@ const Ei = (n, t) => {
|
|
|
6005
6018
|
},
|
|
6006
6019
|
scrollContainerAttributes: () => ({
|
|
6007
6020
|
ref: (p) => {
|
|
6008
|
-
p &&
|
|
6021
|
+
p && Ye(() => d(p));
|
|
6009
6022
|
},
|
|
6010
6023
|
onScrollCapturePassive: (p) => d(p.target)
|
|
6011
6024
|
})
|
|
6012
6025
|
};
|
|
6013
6026
|
}, Ap = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6014
6027
|
__proto__: null,
|
|
6015
|
-
BOOLEAN_RENDERER:
|
|
6016
|
-
DATETIME_RENDERER:
|
|
6017
|
-
DATE_RENDERER:
|
|
6028
|
+
BOOLEAN_RENDERER: ta,
|
|
6029
|
+
DATETIME_RENDERER: Zn,
|
|
6030
|
+
DATE_RENDERER: Jn,
|
|
6018
6031
|
FALLBACK_RENDER_VALUE: _o,
|
|
6019
|
-
NUMBER_RENDERER:
|
|
6020
|
-
SKELETON_RENDERER:
|
|
6032
|
+
NUMBER_RENDERER: Yn,
|
|
6033
|
+
SKELETON_RENDERER: ea,
|
|
6021
6034
|
STRING_RENDERER: ko,
|
|
6022
|
-
TIMESTAMP_RENDERER:
|
|
6023
|
-
TIME_RENDERER:
|
|
6024
|
-
createRenderer:
|
|
6035
|
+
TIMESTAMP_RENDERER: Qn,
|
|
6036
|
+
TIME_RENDERER: Xn,
|
|
6037
|
+
createRenderer: oa,
|
|
6025
6038
|
createTypeRenderer: $e,
|
|
6026
6039
|
dateFormatter: gt,
|
|
6027
|
-
numberFormatter:
|
|
6040
|
+
numberFormatter: Wn,
|
|
6028
6041
|
stringFormatter: xo,
|
|
6029
6042
|
useFiltering: Ai,
|
|
6030
6043
|
useHideColumns: dc,
|
|
@@ -6037,8 +6050,8 @@ const Ei = (n, t) => {
|
|
|
6037
6050
|
inheritAttrs: !1,
|
|
6038
6051
|
__name: "OnyxDatePicker",
|
|
6039
6052
|
props: {
|
|
6040
|
-
disabled: { type: [Boolean, Symbol], default:
|
|
6041
|
-
showError: { default:
|
|
6053
|
+
disabled: { type: [Boolean, Symbol], default: te },
|
|
6054
|
+
showError: { default: te },
|
|
6042
6055
|
requiredMarker: {},
|
|
6043
6056
|
required: { type: Boolean, default: !1 },
|
|
6044
6057
|
density: {},
|
|
@@ -6056,6 +6069,7 @@ const Ei = (n, t) => {
|
|
|
6056
6069
|
success: {},
|
|
6057
6070
|
hideSuccessIcon: { type: Boolean },
|
|
6058
6071
|
hideClearIcon: { type: Boolean },
|
|
6072
|
+
showPassword: { type: Boolean },
|
|
6059
6073
|
modelValue: {},
|
|
6060
6074
|
type: { default: "date" },
|
|
6061
6075
|
min: {},
|
|
@@ -6063,7 +6077,7 @@ const Ei = (n, t) => {
|
|
|
6063
6077
|
},
|
|
6064
6078
|
emits: ["update:modelValue", "validityChange"],
|
|
6065
6079
|
setup(n, { emit: t }) {
|
|
6066
|
-
const e = n, o = t, { rootAttrs: a, restAttrs: s } = ge(), { vCustomValidity: r, errorMessages: u } =
|
|
6080
|
+
const e = n, o = t, { rootAttrs: a, restAttrs: s } = ge(), { vCustomValidity: r, errorMessages: u } = Fe({ props: e, emit: o }), c = m(() => Be(e.success)), d = m(() => Be(e.message)), { densityClass: p } = F(e), { disabled: v, showError: b } = be(e), h = oe(e), g = _t(b), $ = m(() => (O) => {
|
|
6067
6081
|
const L = O != null && O != null ? new Date(O) : void 0;
|
|
6068
6082
|
if (!no(L)) return;
|
|
6069
6083
|
const N = L.toISOString().split("T")[0];
|
|
@@ -6081,7 +6095,7 @@ const Ei = (n, t) => {
|
|
|
6081
6095
|
x.value = no(L) ? L.toISOString() : "";
|
|
6082
6096
|
}
|
|
6083
6097
|
}), M = J("inputRef");
|
|
6084
|
-
return
|
|
6098
|
+
return Oe(M, e), (O, L) => l(h) ? (i(), f(
|
|
6085
6099
|
"div",
|
|
6086
6100
|
E({
|
|
6087
6101
|
key: 0,
|
|
@@ -6110,7 +6124,7 @@ const Ei = (n, t) => {
|
|
|
6110
6124
|
}), {
|
|
6111
6125
|
default: S(({ id: N }) => [
|
|
6112
6126
|
y("div", _c, [
|
|
6113
|
-
e.loading ? (i(), _(
|
|
6127
|
+
e.loading ? (i(), _(Ie, {
|
|
6114
6128
|
key: 0,
|
|
6115
6129
|
class: "onyx-datepicker__loading",
|
|
6116
6130
|
type: "circle"
|
|
@@ -6132,7 +6146,7 @@ const Ei = (n, t) => {
|
|
|
6132
6146
|
min: $.value(e.min),
|
|
6133
6147
|
max: $.value(e.max)
|
|
6134
6148
|
}, l(s)), null, 16, xc)), [
|
|
6135
|
-
[
|
|
6149
|
+
[en, w.value],
|
|
6136
6150
|
[l(r)]
|
|
6137
6151
|
])
|
|
6138
6152
|
])
|
|
@@ -6182,7 +6196,7 @@ const Ei = (n, t) => {
|
|
|
6182
6196
|
C(c.$slots, "headline", {
|
|
6183
6197
|
label: e.label
|
|
6184
6198
|
}, () => [
|
|
6185
|
-
B(
|
|
6199
|
+
B(De, { is: "h2" }, {
|
|
6186
6200
|
default: S(() => [
|
|
6187
6201
|
W(
|
|
6188
6202
|
T(e.label),
|
|
@@ -6195,11 +6209,11 @@ const Ei = (n, t) => {
|
|
|
6195
6209
|
})
|
|
6196
6210
|
])
|
|
6197
6211
|
]),
|
|
6198
|
-
e.nonDismissible ? k("v-if", !0) : (i(), _(
|
|
6212
|
+
e.nonDismissible ? k("v-if", !0) : (i(), _(ke, {
|
|
6199
6213
|
key: 0,
|
|
6200
6214
|
class: "onyx-alert-dialog__close",
|
|
6201
6215
|
label: l(s)("dialog.close"),
|
|
6202
|
-
icon: l(
|
|
6216
|
+
icon: l(ze),
|
|
6203
6217
|
onClick: d[0] || (d[0] = () => u.value = !l(u))
|
|
6204
6218
|
}, null, 8, ["label", "icon"]))
|
|
6205
6219
|
])
|
|
@@ -6226,7 +6240,7 @@ const Ei = (n, t) => {
|
|
|
6226
6240
|
},
|
|
6227
6241
|
setup(n) {
|
|
6228
6242
|
const t = n;
|
|
6229
|
-
Ms(t),
|
|
6243
|
+
Ms(t), Lt(t);
|
|
6230
6244
|
const { densityClass: e } = F(t);
|
|
6231
6245
|
return (o, a) => (i(), f(
|
|
6232
6246
|
"form",
|
|
@@ -6251,7 +6265,7 @@ const Ei = (n, t) => {
|
|
|
6251
6265
|
autofocus: { type: Boolean },
|
|
6252
6266
|
link: {},
|
|
6253
6267
|
label: {},
|
|
6254
|
-
disabled: { type: [Boolean, Symbol], default:
|
|
6268
|
+
disabled: { type: [Boolean, Symbol], default: te },
|
|
6255
6269
|
type: { default: "button" },
|
|
6256
6270
|
color: { default: "primary" },
|
|
6257
6271
|
loading: { type: Boolean },
|
|
@@ -6259,7 +6273,7 @@ const Ei = (n, t) => {
|
|
|
6259
6273
|
skeleton: { type: [Symbol, Boolean, Number], default: ee }
|
|
6260
6274
|
},
|
|
6261
6275
|
setup(n) {
|
|
6262
|
-
const t = n, { densityClass: e } = F(t), o =
|
|
6276
|
+
const t = n, { densityClass: e } = F(t), o = oe(t);
|
|
6263
6277
|
return (a, s) => l(o) ? (i(), _(Z, {
|
|
6264
6278
|
key: 0,
|
|
6265
6279
|
class: I(["onyx-icon-button-skeleton", l(e)])
|
|
@@ -6275,7 +6289,7 @@ const Ei = (n, t) => {
|
|
|
6275
6289
|
]
|
|
6276
6290
|
}), {
|
|
6277
6291
|
default: S(() => [
|
|
6278
|
-
t.loading ? (i(), _(
|
|
6292
|
+
t.loading ? (i(), _(Ie, {
|
|
6279
6293
|
key: 0,
|
|
6280
6294
|
type: "circle"
|
|
6281
6295
|
})) : t.icon ? (i(), _(z, {
|
|
@@ -6300,7 +6314,7 @@ const Ei = (n, t) => {
|
|
|
6300
6314
|
skeleton: { type: [Symbol, Boolean, Number], default: ee }
|
|
6301
6315
|
},
|
|
6302
6316
|
setup(n) {
|
|
6303
|
-
const t = n, e =
|
|
6317
|
+
const t = n, e = oe(t), o = V(!1);
|
|
6304
6318
|
Y(
|
|
6305
6319
|
() => t.src,
|
|
6306
6320
|
() => o.value = !1,
|
|
@@ -6375,7 +6389,7 @@ const Ei = (n, t) => {
|
|
|
6375
6389
|
/* FULL_PROPS */
|
|
6376
6390
|
));
|
|
6377
6391
|
}
|
|
6378
|
-
}), zp = ["rounded", "circle", "clip", "clip-inverted"],
|
|
6392
|
+
}), zp = ["rounded", "circle", "clip", "clip-inverted"], ia = (n) => {
|
|
6379
6393
|
const { t } = q(), e = m(() => {
|
|
6380
6394
|
const s = n.props.maxlength;
|
|
6381
6395
|
return {
|
|
@@ -6405,13 +6419,13 @@ const Ei = (n, t) => {
|
|
|
6405
6419
|
*/
|
|
6406
6420
|
maxLength: a
|
|
6407
6421
|
};
|
|
6408
|
-
},
|
|
6422
|
+
}, Dt = Symbol(), Jo = Symbol(), ca = Symbol(), ua = Symbol(), Ac = ["aria-orientation"], Tt = /* @__PURE__ */ A({
|
|
6409
6423
|
__name: "OnyxSeparator",
|
|
6410
6424
|
props: {
|
|
6411
6425
|
orientation: { default: "horizontal" }
|
|
6412
6426
|
},
|
|
6413
6427
|
setup(n) {
|
|
6414
|
-
const t = n, e = ve(
|
|
6428
|
+
const t = n, e = ve(Dt, void 0), o = m(() => t.orientation === "vertical" && !e?.value);
|
|
6415
6429
|
return (a, s) => (i(), f("div", {
|
|
6416
6430
|
class: I(["onyx-component onyx-separator", { "onyx-separator--vertical": o.value }]),
|
|
6417
6431
|
role: "separator",
|
|
@@ -6422,9 +6436,9 @@ const Ei = (n, t) => {
|
|
|
6422
6436
|
inheritAttrs: !1,
|
|
6423
6437
|
__name: "OnyxInput",
|
|
6424
6438
|
props: {
|
|
6425
|
-
disabled: { type: [Boolean, Symbol], default:
|
|
6426
|
-
showError: { default:
|
|
6427
|
-
requiredMarker: { default:
|
|
6439
|
+
disabled: { type: [Boolean, Symbol], default: te },
|
|
6440
|
+
showError: { default: te },
|
|
6441
|
+
requiredMarker: { default: te },
|
|
6428
6442
|
required: { type: Boolean, default: !1 },
|
|
6429
6443
|
density: {},
|
|
6430
6444
|
error: {},
|
|
@@ -6449,20 +6463,26 @@ const Ei = (n, t) => {
|
|
|
6449
6463
|
type: { default: "text" },
|
|
6450
6464
|
pattern: {},
|
|
6451
6465
|
hideSuccessIcon: { type: Boolean, default: !1 },
|
|
6452
|
-
hideClearIcon: { type: Boolean, default: !1 }
|
|
6466
|
+
hideClearIcon: { type: Boolean, default: !1 },
|
|
6467
|
+
showPassword: { type: Boolean, default: void 0 }
|
|
6453
6468
|
},
|
|
6454
|
-
emits: ["validityChange", "update:modelValue"],
|
|
6469
|
+
emits: ["validityChange", "update:modelValue", "update:showPassword"],
|
|
6455
6470
|
setup(n, { expose: t, emit: e }) {
|
|
6456
6471
|
const o = n, a = e, s = ce(), r = ae({
|
|
6457
6472
|
key: "modelValue",
|
|
6458
6473
|
props: o,
|
|
6459
6474
|
emit: a,
|
|
6460
6475
|
default: ""
|
|
6461
|
-
}), { rootAttrs: u, restAttrs: c } = ge(), { t: d } = q(), { maxLength: p, maxLengthError: v } =
|
|
6476
|
+
}), { rootAttrs: u, restAttrs: c } = ge(), { t: d } = q(), { maxLength: p, maxLengthError: v } = ia({ modelValue: r, props: o }), b = m(() => o.error ?? v.value), { vCustomValidity: h, errorMessages: g } = Fe({ props: o, emit: a, error: b }), $ = m(() => Be(o.success)), x = m(() => Be(o.message)), { densityClass: w } = F(o), M = m(() => o.pattern instanceof RegExp ? o.pattern.source : o.pattern), O = J("inputRef");
|
|
6462
6477
|
t({ input: O });
|
|
6463
|
-
const { disabled: L, showError: N } = be(o), K =
|
|
6464
|
-
|
|
6465
|
-
const X =
|
|
6478
|
+
const { disabled: L, showError: N } = be(o), K = oe(o), U = _t(N);
|
|
6479
|
+
Oe(O, o);
|
|
6480
|
+
const X = ae({
|
|
6481
|
+
props: o,
|
|
6482
|
+
emit: a,
|
|
6483
|
+
key: "showPassword",
|
|
6484
|
+
default: !1
|
|
6485
|
+
}), ue = m(() => o.type === "password" && X.value ? "text" : o.type);
|
|
6466
6486
|
return (P, D) => l(K) ? (i(), f(
|
|
6467
6487
|
"div",
|
|
6468
6488
|
E({
|
|
@@ -6490,21 +6510,21 @@ const Ei = (n, t) => {
|
|
|
6490
6510
|
"success-messages": $.value,
|
|
6491
6511
|
message: x.value
|
|
6492
6512
|
}), {
|
|
6493
|
-
default: S(({ id:
|
|
6513
|
+
default: S(({ id: ne }) => [
|
|
6494
6514
|
y("div", Mc, [
|
|
6495
6515
|
C(P.$slots, "leading"),
|
|
6496
|
-
s.leading ? (i(), _(
|
|
6516
|
+
s.leading ? (i(), _(Tt, {
|
|
6497
6517
|
key: 0,
|
|
6498
6518
|
orientation: "vertical",
|
|
6499
6519
|
class: "onyx-input__separator onyx-input__separator--leading"
|
|
6500
6520
|
})) : k("v-if", !0),
|
|
6501
|
-
o.loading ? (i(), _(
|
|
6521
|
+
o.loading ? (i(), _(Ie, {
|
|
6502
6522
|
key: 1,
|
|
6503
6523
|
class: "onyx-input__loading",
|
|
6504
6524
|
type: "circle"
|
|
6505
6525
|
})) : k("v-if", !0),
|
|
6506
6526
|
xe(y("input", E({
|
|
6507
|
-
id:
|
|
6527
|
+
id: ne,
|
|
6508
6528
|
ref: "inputRef",
|
|
6509
6529
|
"onUpdate:modelValue": D[0] || (D[0] = (H) => Ee(r) ? r.value = H : null),
|
|
6510
6530
|
placeholder: o.placeholder,
|
|
@@ -6523,7 +6543,7 @@ const Ei = (n, t) => {
|
|
|
6523
6543
|
"aria-label": o.hideLabel ? o.label : void 0,
|
|
6524
6544
|
title: o.hideLabel ? o.label : void 0
|
|
6525
6545
|
}, l(c)), null, 16, Tc), [
|
|
6526
|
-
[
|
|
6546
|
+
[en, l(r)],
|
|
6527
6547
|
[l(h)]
|
|
6528
6548
|
]),
|
|
6529
6549
|
!o.hideClearIcon && l(r) !== "" ? (i(), f("button", {
|
|
@@ -6535,7 +6555,7 @@ const Ei = (n, t) => {
|
|
|
6535
6555
|
tabindex: "-1",
|
|
6536
6556
|
onClick: D[1] || (D[1] = () => r.value = "")
|
|
6537
6557
|
}, [
|
|
6538
|
-
B(z, { icon: l(
|
|
6558
|
+
B(z, { icon: l(ze) }, null, 8, ["icon"])
|
|
6539
6559
|
], 8, Ic)) : k("v-if", !0),
|
|
6540
6560
|
!o.hideSuccessIcon && $.value ? (i(), _(z, {
|
|
6541
6561
|
key: 3,
|
|
@@ -6543,19 +6563,19 @@ const Ei = (n, t) => {
|
|
|
6543
6563
|
icon: l(bt),
|
|
6544
6564
|
color: "success"
|
|
6545
6565
|
}, null, 8, ["icon"])) : k("v-if", !0),
|
|
6546
|
-
s.trailing || o.type === "password" ? (i(), _(
|
|
6566
|
+
s.trailing || o.type === "password" ? (i(), _(Tt, {
|
|
6547
6567
|
key: 4,
|
|
6548
6568
|
orientation: "vertical",
|
|
6549
6569
|
class: "onyx-input__separator onyx-input__separator--trailing"
|
|
6550
6570
|
})) : k("v-if", !0),
|
|
6551
6571
|
C(P.$slots, "trailing", {}, () => [
|
|
6552
|
-
o.type === "password" ? (i(), _(
|
|
6572
|
+
o.type === "password" ? (i(), _(ke, {
|
|
6553
6573
|
key: 0,
|
|
6554
|
-
icon: X
|
|
6555
|
-
label: X
|
|
6574
|
+
icon: l(X) ? l(Ha) : l(Ga),
|
|
6575
|
+
label: l(X) ? l(d)("input.hidePassword") : l(d)("input.showPassword"),
|
|
6556
6576
|
tabindex: "-1",
|
|
6557
6577
|
color: "soft",
|
|
6558
|
-
onClick: D[2] || (D[2] = (H) => X.value = !X
|
|
6578
|
+
onClick: D[2] || (D[2] = (H) => X.value = !l(X))
|
|
6559
6579
|
}, null, 8, ["icon", "label"])) : k("v-if", !0)
|
|
6560
6580
|
])
|
|
6561
6581
|
])
|
|
@@ -6584,8 +6604,8 @@ const Ei = (n, t) => {
|
|
|
6584
6604
|
default: S(() => [
|
|
6585
6605
|
C(e.$slots, "default"),
|
|
6586
6606
|
B(
|
|
6587
|
-
|
|
6588
|
-
|
|
6607
|
+
Dn,
|
|
6608
|
+
Ne(Ze(t)),
|
|
6589
6609
|
null,
|
|
6590
6610
|
16
|
|
6591
6611
|
/* FULL_PROPS */
|
|
@@ -6598,7 +6618,7 @@ const Ei = (n, t) => {
|
|
|
6598
6618
|
/* FULL_PROPS */
|
|
6599
6619
|
));
|
|
6600
6620
|
}
|
|
6601
|
-
}), Vc = { class: "onyx-component onyx-mobile-nav-button" }, Nc = ["aria-label", "disabled"], zc = { class: "onyx-mobile-nav-button__flyout" }, Dc = { class: "onyx-mobile-nav-button__menu" },
|
|
6621
|
+
}), Vc = { class: "onyx-component onyx-mobile-nav-button" }, Nc = ["aria-label", "disabled"], zc = { class: "onyx-mobile-nav-button__flyout" }, Dc = { class: "onyx-mobile-nav-button__menu" }, Zo = /* @__PURE__ */ A({
|
|
6602
6622
|
__name: "OnyxMobileNavButton",
|
|
6603
6623
|
props: {
|
|
6604
6624
|
label: {},
|
|
@@ -6627,7 +6647,7 @@ const Ei = (n, t) => {
|
|
|
6627
6647
|
zc,
|
|
6628
6648
|
[
|
|
6629
6649
|
y("div", Dc, [
|
|
6630
|
-
e.headline ? (i(), _(
|
|
6650
|
+
e.headline ? (i(), _(De, {
|
|
6631
6651
|
key: 0,
|
|
6632
6652
|
is: "h2",
|
|
6633
6653
|
class: "onyx-mobile-nav-button__headline"
|
|
@@ -6661,7 +6681,7 @@ const Ei = (n, t) => {
|
|
|
6661
6681
|
}), Fc = { class: "onyx-modal__header" }, Pc = { class: "onyx-modal__headline" }, Uc = { class: "onyx-modal__headline-content" }, Hc = ["id"], Gc = { class: "onyx-modal__body" }, qc = {
|
|
6662
6682
|
key: 0,
|
|
6663
6683
|
class: "onyx-modal__footer"
|
|
6664
|
-
},
|
|
6684
|
+
}, da = /* @__PURE__ */ A({
|
|
6665
6685
|
__name: "OnyxModal",
|
|
6666
6686
|
props: {
|
|
6667
6687
|
density: {},
|
|
@@ -6673,7 +6693,7 @@ const Ei = (n, t) => {
|
|
|
6673
6693
|
emits: ["update:open"],
|
|
6674
6694
|
setup(n, { emit: t }) {
|
|
6675
6695
|
const e = n, o = t, a = ce(), { t: s } = q(), { densityClass: r } = F(e), u = pe(), c = m(() => !!a.description);
|
|
6676
|
-
return (d, p) => (i(), _(
|
|
6696
|
+
return (d, p) => (i(), _(kn, E(e, {
|
|
6677
6697
|
modal: "",
|
|
6678
6698
|
class: ["onyx-modal", l(r)],
|
|
6679
6699
|
"aria-describedby": c.value ? l(u) : void 0,
|
|
@@ -6686,7 +6706,7 @@ const Ei = (n, t) => {
|
|
|
6686
6706
|
C(d.$slots, "headline", {
|
|
6687
6707
|
label: e.label
|
|
6688
6708
|
}, () => [
|
|
6689
|
-
B(
|
|
6709
|
+
B(De, { is: "h2" }, {
|
|
6690
6710
|
default: S(() => [
|
|
6691
6711
|
W(
|
|
6692
6712
|
T(e.label),
|
|
@@ -6699,11 +6719,11 @@ const Ei = (n, t) => {
|
|
|
6699
6719
|
})
|
|
6700
6720
|
])
|
|
6701
6721
|
]),
|
|
6702
|
-
e.nonDismissible ? k("v-if", !0) : (i(), _(
|
|
6722
|
+
e.nonDismissible ? k("v-if", !0) : (i(), _(ke, {
|
|
6703
6723
|
key: 0,
|
|
6704
6724
|
class: "onyx-alert-dialog__close",
|
|
6705
6725
|
label: l(s)("dialog.close"),
|
|
6706
|
-
icon: l(
|
|
6726
|
+
icon: l(ze),
|
|
6707
6727
|
onClick: p[0] || (p[0] = (v) => o("update:open", !1))
|
|
6708
6728
|
}, null, 8, ["label", "icon"]))
|
|
6709
6729
|
]),
|
|
@@ -6738,7 +6758,7 @@ const Ei = (n, t) => {
|
|
|
6738
6758
|
label: {}
|
|
6739
6759
|
},
|
|
6740
6760
|
setup(n) {
|
|
6741
|
-
const t = n, { t: e } = q(), o = m(() => t.label ?? e.value("navigation.goToHome")), a = m(() =>
|
|
6761
|
+
const t = n, { t: e } = q(), o = m(() => t.label ?? e.value("navigation.goToHome")), a = m(() => Xe(t.link));
|
|
6742
6762
|
return (s, r) => (i(), _(it, E(a.value, {
|
|
6743
6763
|
class: "onyx-component onyx-nav-app-area",
|
|
6744
6764
|
"aria-label": o.value
|
|
@@ -6769,7 +6789,7 @@ const Ei = (n, t) => {
|
|
|
6769
6789
|
}), Yc = ["id"], Jc = ["autofocus", "value", "checked", "aria-label"], Zc = { class: "onyx-select-dialog__label" }, Xc = {
|
|
6770
6790
|
key: 0,
|
|
6771
6791
|
class: "onyx-text--small"
|
|
6772
|
-
},
|
|
6792
|
+
}, pa = /* @__PURE__ */ A({
|
|
6773
6793
|
__name: "OnyxSelectDialog",
|
|
6774
6794
|
props: {
|
|
6775
6795
|
open: { type: [Boolean, null], default: !1 },
|
|
@@ -6781,14 +6801,14 @@ const Ei = (n, t) => {
|
|
|
6781
6801
|
emits: ["update:modelValue", "update:open"],
|
|
6782
6802
|
setup(n, { emit: t }) {
|
|
6783
6803
|
const e = n, o = t, a = ce(), s = V();
|
|
6784
|
-
|
|
6804
|
+
Te(() => s.value = e.modelValue);
|
|
6785
6805
|
const { t: r } = q(), u = pe(), c = (p) => {
|
|
6786
6806
|
const v = p.target;
|
|
6787
6807
|
s.value = v.value;
|
|
6788
6808
|
}, d = () => {
|
|
6789
6809
|
s.value && (o("update:modelValue", s.value), o("update:open", !1));
|
|
6790
6810
|
};
|
|
6791
|
-
return (p, v) => (i(), _(
|
|
6811
|
+
return (p, v) => (i(), _(da, E(e, {
|
|
6792
6812
|
open: e.open,
|
|
6793
6813
|
class: "onyx-select-dialog",
|
|
6794
6814
|
label: e.label,
|
|
@@ -6817,7 +6837,7 @@ const Ei = (n, t) => {
|
|
|
6817
6837
|
y("form", {
|
|
6818
6838
|
id: l(u),
|
|
6819
6839
|
class: "onyx-select-dialog__form",
|
|
6820
|
-
onSubmit:
|
|
6840
|
+
onSubmit: Ae(d, ["prevent"])
|
|
6821
6841
|
}, [
|
|
6822
6842
|
y(
|
|
6823
6843
|
"fieldset",
|
|
@@ -6833,7 +6853,7 @@ const Ei = (n, t) => {
|
|
|
6833
6853
|
key: b.value
|
|
6834
6854
|
}, [
|
|
6835
6855
|
B(
|
|
6836
|
-
|
|
6856
|
+
Pn,
|
|
6837
6857
|
{ class: "onyx-select-dialog__option" },
|
|
6838
6858
|
{
|
|
6839
6859
|
default: S(() => [
|
|
@@ -6844,7 +6864,7 @@ const Ei = (n, t) => {
|
|
|
6844
6864
|
}, null, 8, ["icon"])) : k("v-if", !0),
|
|
6845
6865
|
y("div", null, [
|
|
6846
6866
|
B(
|
|
6847
|
-
|
|
6867
|
+
qe,
|
|
6848
6868
|
{ is: "div" },
|
|
6849
6869
|
{
|
|
6850
6870
|
default: S(() => [
|
|
@@ -6937,7 +6957,7 @@ const Ei = (n, t) => {
|
|
|
6937
6957
|
description: a.value("colorScheme.dark.description")
|
|
6938
6958
|
}
|
|
6939
6959
|
]);
|
|
6940
|
-
return (r, u) => (i(), _(
|
|
6960
|
+
return (r, u) => (i(), _(pa, E({ class: "onyx-color-scheme-dialog" }, e, {
|
|
6941
6961
|
label: l(a)("colorScheme.headline"),
|
|
6942
6962
|
options: s.value,
|
|
6943
6963
|
open: e.open,
|
|
@@ -6963,7 +6983,7 @@ const Ei = (n, t) => {
|
|
|
6963
6983
|
emits: ["update:modelValue"],
|
|
6964
6984
|
setup(n, { emit: t }) {
|
|
6965
6985
|
const e = n, o = t, { t: a } = q(), s = V(!1);
|
|
6966
|
-
return (r, u) => (i(), _(
|
|
6986
|
+
return (r, u) => (i(), _(Ve, {
|
|
6967
6987
|
class: "onyx-component onyx-color-scheme-menu-item",
|
|
6968
6988
|
onClick: u[2] || (u[2] = (c) => s.value = !0)
|
|
6969
6989
|
}, {
|
|
@@ -7005,7 +7025,7 @@ const Ei = (n, t) => {
|
|
|
7005
7025
|
emits: ["update:modelValue"],
|
|
7006
7026
|
setup(n, { emit: t }) {
|
|
7007
7027
|
const e = n, o = t, { t: a } = q(), s = V(!1), r = m(() => e.options.find(({ value: u }) => u === e.modelValue)?.label ?? e.modelValue);
|
|
7008
|
-
return (u, c) => (i(), _(
|
|
7028
|
+
return (u, c) => (i(), _(Ve, {
|
|
7009
7029
|
class: "onyx-component onyx-language-menu-item",
|
|
7010
7030
|
onClick: c[2] || (c[2] = (d) => s.value = !0)
|
|
7011
7031
|
}, {
|
|
@@ -7026,7 +7046,7 @@ const Ei = (n, t) => {
|
|
|
7026
7046
|
)
|
|
7027
7047
|
]),
|
|
7028
7048
|
(i(), _(st, { to: "body" }, [
|
|
7029
|
-
B(l(
|
|
7049
|
+
B(l(pa), {
|
|
7030
7050
|
open: s.value,
|
|
7031
7051
|
"onUpdate:open": c[0] || (c[0] = (d) => s.value = d),
|
|
7032
7052
|
"model-value": e.modelValue,
|
|
@@ -7063,7 +7083,7 @@ const Ei = (n, t) => {
|
|
|
7063
7083
|
},
|
|
7064
7084
|
setup(n) {
|
|
7065
7085
|
const t = n, e = ce(), o = m(() => !!e.children);
|
|
7066
|
-
return (a, s) => (i(), _(
|
|
7086
|
+
return (a, s) => (i(), _(Ve, E(t, {
|
|
7067
7087
|
link: o.value && t.context !== "navbar" ? void 0 : t.link,
|
|
7068
7088
|
class: {
|
|
7069
7089
|
"onyx-nav-item": !0,
|
|
@@ -7108,11 +7128,11 @@ const Ei = (n, t) => {
|
|
|
7108
7128
|
key: "open",
|
|
7109
7129
|
default: !1
|
|
7110
7130
|
}), { restAttrs: u, rootAttrs: c } = ge(), d = m(() => !!a.children), { isActive: p } = rt(), v = m(() => e.active !== "auto" ? e.active : p.value(e.link)), b = ve(
|
|
7111
|
-
|
|
7131
|
+
Dt,
|
|
7112
7132
|
m(() => !1)
|
|
7113
|
-
), h = ve(
|
|
7114
|
-
Re(
|
|
7115
|
-
const { componentRef: $, isVisible: x } = g ?
|
|
7133
|
+
), h = ve(ua, void 0), g = ve(Jo, !0);
|
|
7134
|
+
Re(Jo, !1);
|
|
7135
|
+
const { componentRef: $, isVisible: x } = g ? Vn(ca) : { isVisible: se(!0) };
|
|
7116
7136
|
return (w, M) => (i(), f(
|
|
7117
7137
|
G,
|
|
7118
7138
|
null,
|
|
@@ -7133,7 +7153,7 @@ const Ei = (n, t) => {
|
|
|
7133
7153
|
label: l(s)("back"),
|
|
7134
7154
|
mode: "plain",
|
|
7135
7155
|
color: "neutral",
|
|
7136
|
-
icon: l(
|
|
7156
|
+
icon: l(an),
|
|
7137
7157
|
onClick: M[0] || (M[0] = (O) => r.value = !1)
|
|
7138
7158
|
}, null, 8, ["label", "icon"]),
|
|
7139
7159
|
e.link ? (i(), f(
|
|
@@ -7150,7 +7170,7 @@ const Ei = (n, t) => {
|
|
|
7150
7170
|
_: 3
|
|
7151
7171
|
/* FORWARDED */
|
|
7152
7172
|
}, 16, ["active"]),
|
|
7153
|
-
B(
|
|
7173
|
+
B(Tt)
|
|
7154
7174
|
],
|
|
7155
7175
|
64
|
|
7156
7176
|
/* STABLE_FRAGMENT */
|
|
@@ -7180,7 +7200,7 @@ const Ei = (n, t) => {
|
|
|
7180
7200
|
]),
|
|
7181
7201
|
key: "0"
|
|
7182
7202
|
} : void 0
|
|
7183
|
-
]), 1040, ["active"])) : l(g) && d.value && l(x) ? (i(), _(
|
|
7203
|
+
]), 1040, ["active"])) : l(g) && d.value && l(x) ? (i(), _(Ke, E({ key: 2 }, l(c), {
|
|
7184
7204
|
label: l(s)("navItemOptionsLabel", { label: e.label })
|
|
7185
7205
|
}), {
|
|
7186
7206
|
button: S(({ trigger: O }) => [
|
|
@@ -7283,7 +7303,7 @@ const Ei = (n, t) => {
|
|
|
7283
7303
|
/**
|
|
7284
7304
|
* Time (in milliseconds) that the timer has left.
|
|
7285
7305
|
*/
|
|
7286
|
-
timeLeft:
|
|
7306
|
+
timeLeft: Ct(e),
|
|
7287
7307
|
/**
|
|
7288
7308
|
* Whether the timer is ended.
|
|
7289
7309
|
*/
|
|
@@ -7292,15 +7312,15 @@ const Ei = (n, t) => {
|
|
|
7292
7312
|
}, jt = (n) => {
|
|
7293
7313
|
const t = n - Date.now();
|
|
7294
7314
|
return Math.max(t, 0);
|
|
7295
|
-
},
|
|
7315
|
+
}, ma = (n) => {
|
|
7296
7316
|
const t = Math.floor(n / 6e4 / 60), e = Math.floor(n / 6e4 % 60), o = Math.floor(n % 6e4 / 1e3);
|
|
7297
7317
|
return { hours: t, minutes: e, seconds: o };
|
|
7298
7318
|
}, cu = (n, t) => {
|
|
7299
|
-
const { hours: e, minutes: o, seconds: a } =
|
|
7319
|
+
const { hours: e, minutes: o, seconds: a } = ma(n), s = (c) => c.toString().padStart(2, "0");
|
|
7300
7320
|
let r = "", u = Wt(t.formatToParts(n, "seconds"));
|
|
7301
7321
|
return o > 0 && (u = Wt(t.formatToParts(n, "minutes"))), e > 0 && (u = Wt(t.formatToParts(n, "hours")), r = `${s(e)}:`), `${r}${s(o)}:${s(a)} ${u}`;
|
|
7302
7322
|
}, Wt = (n) => n.at(-1)?.value.replace(".", "").trim() ?? "", uu = (n) => {
|
|
7303
|
-
const { hours: t, minutes: e, seconds: o } =
|
|
7323
|
+
const { hours: t, minutes: e, seconds: o } = ma(n);
|
|
7304
7324
|
return `PT${t}H${e}M${o}S`;
|
|
7305
7325
|
}, du = ["aria-label"], pu = {
|
|
7306
7326
|
key: 0,
|
|
@@ -7317,7 +7337,7 @@ const Ei = (n, t) => {
|
|
|
7317
7337
|
const o = n, a = e, { locale: s } = q(), { timeLeft: r, isEnded: u } = iu(m(() => o.endTime)), c = m(
|
|
7318
7338
|
() => new Intl.RelativeTimeFormat(s.value, { numeric: "always", style: "short" })
|
|
7319
7339
|
), d = m(() => cu(r.value, c.value));
|
|
7320
|
-
return
|
|
7340
|
+
return Te(() => u.value && a("timerEnded")), t({
|
|
7321
7341
|
/**
|
|
7322
7342
|
* Time (in milliseconds) that the timer has left.
|
|
7323
7343
|
*/
|
|
@@ -7376,7 +7396,7 @@ const Ei = (n, t) => {
|
|
|
7376
7396
|
],
|
|
7377
7397
|
64
|
|
7378
7398
|
/* STABLE_FRAGMENT */
|
|
7379
|
-
)) : (i(), _(
|
|
7399
|
+
)) : (i(), _(Ke, {
|
|
7380
7400
|
key: 1,
|
|
7381
7401
|
open: l(s),
|
|
7382
7402
|
"onUpdate:open": c[0] || (c[0] = (d) => Ee(s) ? s.value = d : null),
|
|
@@ -7428,7 +7448,7 @@ const Ei = (n, t) => {
|
|
|
7428
7448
|
key: "flyoutOpen",
|
|
7429
7449
|
default: !1
|
|
7430
7450
|
}), r = m(() => typeof e.avatar == "object" ? e.avatar : { src: e.avatar, fullName: e.fullName }), u = ve(
|
|
7431
|
-
|
|
7451
|
+
Dt,
|
|
7432
7452
|
m(() => !1)
|
|
7433
7453
|
);
|
|
7434
7454
|
return (c, d) => (i(), _(vu, {
|
|
@@ -7447,7 +7467,7 @@ const Ei = (n, t) => {
|
|
|
7447
7467
|
}, p),
|
|
7448
7468
|
[
|
|
7449
7469
|
B(
|
|
7450
|
-
|
|
7470
|
+
At,
|
|
7451
7471
|
E(r.value, { size: "24px" }),
|
|
7452
7472
|
null,
|
|
7453
7473
|
16
|
|
@@ -7468,7 +7488,7 @@ const Ei = (n, t) => {
|
|
|
7468
7488
|
header: S(() => [
|
|
7469
7489
|
y("div", bu, [
|
|
7470
7490
|
B(
|
|
7471
|
-
|
|
7491
|
+
At,
|
|
7472
7492
|
E(r.value, { size: "48px" }),
|
|
7473
7493
|
null,
|
|
7474
7494
|
16
|
|
@@ -7532,10 +7552,10 @@ const Ei = (n, t) => {
|
|
|
7532
7552
|
},
|
|
7533
7553
|
emits: ["navigateBack"],
|
|
7534
7554
|
setup(n, { expose: t, emit: e }) {
|
|
7535
|
-
const o = n, a = e, s = ce(), r = J("navBarRef"), { width: u } =
|
|
7555
|
+
const o = n, a = e, s = ce(), r = J("navBarRef"), { width: u } = Ue(r), { t: c } = q(), { currentRoute: d } = rt(), {
|
|
7536
7556
|
elements: { nav: p }
|
|
7537
|
-
} = _s({ navigationName:
|
|
7538
|
-
Re(
|
|
7557
|
+
} = _s({ navigationName: se(() => o.appName) }), v = V(!1), b = V(!1), h = (x, w) => w !== 0 && w < x, g = m(() => typeof o.mobile == "number" ? h(o.mobile, u.value) : typeof o.mobile == "string" ? h(Bt[o.mobile], u.value) : o.mobile);
|
|
7558
|
+
Re(Dt, g), Re(ua, J("moreListRef"));
|
|
7539
7559
|
const $ = () => {
|
|
7540
7560
|
v.value = !1, b.value = !1;
|
|
7541
7561
|
};
|
|
@@ -7581,7 +7601,7 @@ const Ei = (n, t) => {
|
|
|
7581
7601
|
key: 2,
|
|
7582
7602
|
class: "onyx-nav-bar__back",
|
|
7583
7603
|
label: l(c)("navigation.goBack"),
|
|
7584
|
-
icon: l(
|
|
7604
|
+
icon: l(ln),
|
|
7585
7605
|
color: "neutral",
|
|
7586
7606
|
onClick: w[0] || (w[0] = (M) => a("navigateBack", M))
|
|
7587
7607
|
}, null, 8, ["label", "icon"])) : k("v-if", !0),
|
|
@@ -7589,7 +7609,7 @@ const Ei = (n, t) => {
|
|
|
7589
7609
|
G,
|
|
7590
7610
|
{ key: 3 },
|
|
7591
7611
|
[
|
|
7592
|
-
g.value ? (i(), _(
|
|
7612
|
+
g.value ? (i(), _(Zo, {
|
|
7593
7613
|
key: 0,
|
|
7594
7614
|
open: v.value,
|
|
7595
7615
|
"onUpdate:open": [
|
|
@@ -7623,15 +7643,15 @@ const Ei = (n, t) => {
|
|
|
7623
7643
|
class: "onyx-nav-bar__nav"
|
|
7624
7644
|
}, l(p)),
|
|
7625
7645
|
[
|
|
7626
|
-
B(
|
|
7646
|
+
B(Fn, {
|
|
7627
7647
|
is: "ul",
|
|
7628
7648
|
role: "menubar",
|
|
7629
|
-
"injection-key": l(
|
|
7649
|
+
"injection-key": l(ca)
|
|
7630
7650
|
}, {
|
|
7631
7651
|
default: S(({ attributes: M }) => [
|
|
7632
7652
|
y(
|
|
7633
7653
|
"div",
|
|
7634
|
-
|
|
7654
|
+
Ne(Ze(M)),
|
|
7635
7655
|
[
|
|
7636
7656
|
C(x.$slots, "default")
|
|
7637
7657
|
],
|
|
@@ -7640,7 +7660,7 @@ const Ei = (n, t) => {
|
|
|
7640
7660
|
)
|
|
7641
7661
|
]),
|
|
7642
7662
|
more: S(({ attributes: M, hiddenElements: O }) => [
|
|
7643
|
-
B(
|
|
7663
|
+
B(Ke, E({
|
|
7644
7664
|
label: l(c)("navigation.showMoreNavItemsLabel")
|
|
7645
7665
|
}, M), {
|
|
7646
7666
|
button: S(({ trigger: L }) => [
|
|
@@ -7681,14 +7701,14 @@ const Ei = (n, t) => {
|
|
|
7681
7701
|
s.globalContextArea ? (i(), f("div", Ou, [
|
|
7682
7702
|
C(x.$slots, "globalContextArea")
|
|
7683
7703
|
])) : k("v-if", !0),
|
|
7684
|
-
s.contextArea ? (i(), _(
|
|
7704
|
+
s.contextArea ? (i(), _(Zo, {
|
|
7685
7705
|
key: 1,
|
|
7686
7706
|
open: b.value,
|
|
7687
7707
|
"onUpdate:open": [
|
|
7688
7708
|
w[3] || (w[3] = (M) => b.value = M),
|
|
7689
7709
|
w[4] || (w[4] = (M) => v.value = !1)
|
|
7690
7710
|
],
|
|
7691
|
-
icon: l(
|
|
7711
|
+
icon: l(cn),
|
|
7692
7712
|
label: l(c)("navigation.toggleContextMenu")
|
|
7693
7713
|
}, {
|
|
7694
7714
|
default: S(() => [
|
|
@@ -7716,13 +7736,13 @@ const Ei = (n, t) => {
|
|
|
7716
7736
|
}), Iu = (n) => {
|
|
7717
7737
|
const { locale: t, t: e } = q(), o = m(() => new Intl.RelativeTimeFormat(t.value, l(n.options))), a = V(Date.now());
|
|
7718
7738
|
let s;
|
|
7719
|
-
|
|
7739
|
+
Se(() => {
|
|
7720
7740
|
s = setInterval(
|
|
7721
7741
|
() => a.value = Date.now(),
|
|
7722
7742
|
// run interval only every 10 seconds to not run too many intervals
|
|
7723
7743
|
1e3 * 10
|
|
7724
7744
|
);
|
|
7725
|
-
}),
|
|
7745
|
+
}), It(() => clearInterval(s));
|
|
7726
7746
|
const r = m(() => {
|
|
7727
7747
|
const v = new Date(l(n.time)).getTime() - a.value;
|
|
7728
7748
|
return Math.floor(v / 1e3);
|
|
@@ -7769,8 +7789,8 @@ const Ei = (n, t) => {
|
|
|
7769
7789
|
skeleton: { type: [Symbol, Boolean, Number], default: ee }
|
|
7770
7790
|
},
|
|
7771
7791
|
setup(n) {
|
|
7772
|
-
const t = n, e = ce(), { densityClass: o } = F(t), a =
|
|
7773
|
-
time:
|
|
7792
|
+
const t = n, e = ce(), { densityClass: o } = F(t), a = oe(t), { d: s, t: r } = q(), { timeAgo: u } = Iu({
|
|
7793
|
+
time: se(t, "createdAt"),
|
|
7774
7794
|
options: { numeric: "auto" }
|
|
7775
7795
|
});
|
|
7776
7796
|
return (c, d) => (i(), f(
|
|
@@ -7800,7 +7820,7 @@ const Ei = (n, t) => {
|
|
|
7800
7820
|
class: "onyx-notification-card__icon",
|
|
7801
7821
|
icon: t.icon
|
|
7802
7822
|
}, null, 8, ["icon"])) : k("v-if", !0),
|
|
7803
|
-
B(
|
|
7823
|
+
B(De, { is: "h3" }, {
|
|
7804
7824
|
default: S(() => [
|
|
7805
7825
|
W(
|
|
7806
7826
|
T(t.headline),
|
|
@@ -7813,11 +7833,11 @@ const Ei = (n, t) => {
|
|
|
7813
7833
|
})
|
|
7814
7834
|
]),
|
|
7815
7835
|
y("div", zu, [
|
|
7816
|
-
t.unread ? (i(), _(
|
|
7836
|
+
t.unread ? (i(), _(Vt, {
|
|
7817
7837
|
key: 0,
|
|
7818
7838
|
dot: ""
|
|
7819
7839
|
})) : k("v-if", !0),
|
|
7820
|
-
e.headerActions ? (i(), _(
|
|
7840
|
+
e.headerActions ? (i(), _(Ke, {
|
|
7821
7841
|
key: 1,
|
|
7822
7842
|
class: "onyx-notification-card__more-actions",
|
|
7823
7843
|
label: l(r)("notificationCard.moreActions"),
|
|
@@ -7825,9 +7845,9 @@ const Ei = (n, t) => {
|
|
|
7825
7845
|
alignment: "right"
|
|
7826
7846
|
}, {
|
|
7827
7847
|
button: S(({ trigger: p }) => [
|
|
7828
|
-
B(
|
|
7848
|
+
B(ke, E(p, {
|
|
7829
7849
|
label: l(r)("notificationCard.toggleActions"),
|
|
7830
|
-
icon: l(
|
|
7850
|
+
icon: l(cn)
|
|
7831
7851
|
}), null, 16, ["label", "icon"])
|
|
7832
7852
|
]),
|
|
7833
7853
|
options: S(() => [
|
|
@@ -7877,7 +7897,7 @@ const Ei = (n, t) => {
|
|
|
7877
7897
|
const t = n;
|
|
7878
7898
|
return (e, o) => (i(), f("div", Uu, [
|
|
7879
7899
|
C(e.$slots, "default"),
|
|
7880
|
-
t.hidden ? k("v-if", !0) : (i(), _(
|
|
7900
|
+
t.hidden ? k("v-if", !0) : (i(), _(Vt, {
|
|
7881
7901
|
key: 0,
|
|
7882
7902
|
class: "onyx-notification-dot__badge",
|
|
7883
7903
|
color: t.color,
|
|
@@ -7903,7 +7923,7 @@ const Ei = (n, t) => {
|
|
|
7903
7923
|
},
|
|
7904
7924
|
setup(n) {
|
|
7905
7925
|
const t = n, e = ce();
|
|
7906
|
-
return
|
|
7926
|
+
return Lt(t), (o, a) => (i(), f(
|
|
7907
7927
|
"div",
|
|
7908
7928
|
{
|
|
7909
7929
|
class: I(["onyx-component onyx-page", [
|
|
@@ -7952,7 +7972,7 @@ const Ei = (n, t) => {
|
|
|
7952
7972
|
skeleton: { type: [Symbol, Boolean, Number], default: ee }
|
|
7953
7973
|
},
|
|
7954
7974
|
setup(n) {
|
|
7955
|
-
const t = n, { densityClass: e } = F(t), o =
|
|
7975
|
+
const t = n, { densityClass: e } = F(t), o = oe(t), a = m(() => t.status === "completed" || t.status === "visited" ? bt : t.status === "invalid" ? Wa : t.icon);
|
|
7956
7976
|
return (s, r) => l(o) ? (i(), _(Z, {
|
|
7957
7977
|
key: 0,
|
|
7958
7978
|
class: I(["onyx-progress-item-skeleton", "onyx-text", l(e)])
|
|
@@ -8017,7 +8037,7 @@ const Ei = (n, t) => {
|
|
|
8017
8037
|
},
|
|
8018
8038
|
emits: ["update:modelValue", "update:highestValue"],
|
|
8019
8039
|
setup(n, { emit: t }) {
|
|
8020
|
-
const e = n, o = t, { densityClass: a } = F(e), s =
|
|
8040
|
+
const e = n, o = t, { densityClass: a } = F(e), s = oe(e), r = ae({
|
|
8021
8041
|
props: e,
|
|
8022
8042
|
emit: o,
|
|
8023
8043
|
key: "highestValue",
|
|
@@ -8074,7 +8094,7 @@ const Ei = (n, t) => {
|
|
|
8074
8094
|
_: 2
|
|
8075
8095
|
/* DYNAMIC */
|
|
8076
8096
|
}, 1040, ["onClick"]),
|
|
8077
|
-
p.value < u.value.length ? (i(), _(
|
|
8097
|
+
p.value < u.value.length ? (i(), _(Tt, {
|
|
8078
8098
|
key: 0,
|
|
8079
8099
|
"aria-hidden": "true",
|
|
8080
8100
|
class: "onyx-progress-steps__separator",
|
|
@@ -8093,11 +8113,11 @@ const Ei = (n, t) => {
|
|
|
8093
8113
|
/* CLASS */
|
|
8094
8114
|
));
|
|
8095
8115
|
}
|
|
8096
|
-
}), Xu = ["required", "name", "value", "checked", "disabled", "autofocus"],
|
|
8116
|
+
}), Xu = ["required", "name", "value", "checked", "disabled", "autofocus"], Xo = /* @__PURE__ */ A({
|
|
8097
8117
|
inheritAttrs: !1,
|
|
8098
8118
|
__name: "OnyxRadioButton",
|
|
8099
8119
|
props: {
|
|
8100
|
-
disabled: { type: [Boolean, Symbol], default:
|
|
8120
|
+
disabled: { type: [Boolean, Symbol], default: te },
|
|
8101
8121
|
showError: {},
|
|
8102
8122
|
autofocus: { type: Boolean },
|
|
8103
8123
|
required: { type: Boolean, default: !1 },
|
|
@@ -8113,8 +8133,8 @@ const Ei = (n, t) => {
|
|
|
8113
8133
|
},
|
|
8114
8134
|
emits: ["validityChange"],
|
|
8115
8135
|
setup(n, { expose: t, emit: e }) {
|
|
8116
|
-
const o = n, a = e, { rootAttrs: s, restAttrs: r } = ge(), { vCustomValidity: u, errorMessages: c } =
|
|
8117
|
-
return t({ input: b }),
|
|
8136
|
+
const o = n, a = e, { rootAttrs: s, restAttrs: r } = ge(), { vCustomValidity: u, errorMessages: c } = Fe({ props: o, emit: a }), { densityClass: d } = F(o), { disabled: p } = be(o), v = oe(o), b = J("inputRef");
|
|
8137
|
+
return t({ input: b }), Oe(b, o), (h, g) => l(v) ? (i(), f(
|
|
8118
8138
|
"div",
|
|
8119
8139
|
E({
|
|
8120
8140
|
key: 0,
|
|
@@ -8138,7 +8158,7 @@ const Ei = (n, t) => {
|
|
|
8138
8158
|
class: I(["onyx-component", "onyx-radio-button", l(d)])
|
|
8139
8159
|
},
|
|
8140
8160
|
[
|
|
8141
|
-
o.loading ? (i(), _(
|
|
8161
|
+
o.loading ? (i(), _(Ie, {
|
|
8142
8162
|
key: 0,
|
|
8143
8163
|
class: "onyx-radio-button__loading",
|
|
8144
8164
|
type: "circle"
|
|
@@ -8189,15 +8209,15 @@ const Ei = (n, t) => {
|
|
|
8189
8209
|
density: {},
|
|
8190
8210
|
error: {},
|
|
8191
8211
|
required: { type: Boolean, default: !1 },
|
|
8192
|
-
requiredMarker: { default:
|
|
8193
|
-
disabled: { type: [Boolean, Symbol], default:
|
|
8212
|
+
requiredMarker: { default: te },
|
|
8213
|
+
disabled: { type: [Boolean, Symbol], default: te },
|
|
8194
8214
|
options: {},
|
|
8195
8215
|
modelValue: {},
|
|
8196
8216
|
orientation: { default: "vertical" }
|
|
8197
8217
|
},
|
|
8198
8218
|
emits: ["validityChange", "update:modelValue"],
|
|
8199
8219
|
setup(n, { expose: t, emit: e }) {
|
|
8200
|
-
const o = n, { densityClass: a } = F(o), { disabled: s, requiredMarker: r } = be(o), { requiredMarkerClass: u, requiredTypeClass: c } =
|
|
8220
|
+
const o = n, { densityClass: a } = F(o), { disabled: s, requiredMarker: r } = be(o), { requiredMarkerClass: u, requiredTypeClass: c } = Nt(o, r), d = oe(o), p = e, v = ae({
|
|
8201
8221
|
props: o,
|
|
8202
8222
|
emit: p,
|
|
8203
8223
|
key: "modelValue"
|
|
@@ -8213,7 +8233,7 @@ const Ei = (n, t) => {
|
|
|
8213
8233
|
"aria-label": o.label
|
|
8214
8234
|
}, [
|
|
8215
8235
|
o.hideLabel ? k("v-if", !0) : (i(), f("legend", ed, [
|
|
8216
|
-
B(
|
|
8236
|
+
B(De, {
|
|
8217
8237
|
is: "h3",
|
|
8218
8238
|
class: I(l(u))
|
|
8219
8239
|
}, {
|
|
@@ -8227,7 +8247,7 @@ const Ei = (n, t) => {
|
|
|
8227
8247
|
_: 1
|
|
8228
8248
|
/* STABLE */
|
|
8229
8249
|
}, 8, ["class"]),
|
|
8230
|
-
o.labelTooltip ? (i(), _(
|
|
8250
|
+
o.labelTooltip ? (i(), _(zt, {
|
|
8231
8251
|
key: 0,
|
|
8232
8252
|
trigger: "hover",
|
|
8233
8253
|
text: o.labelTooltip
|
|
@@ -8242,7 +8262,7 @@ const Ei = (n, t) => {
|
|
|
8242
8262
|
l(d) ? typeof l(d) == "number" ? (i(!0), f(
|
|
8243
8263
|
G,
|
|
8244
8264
|
{ key: 1 },
|
|
8245
|
-
de(l(d), (x) => (i(), _(
|
|
8265
|
+
de(l(d), (x) => (i(), _(Xo, {
|
|
8246
8266
|
id: `skeleton-${x}`,
|
|
8247
8267
|
key: x,
|
|
8248
8268
|
value: `skeleton-${x}`,
|
|
@@ -8255,7 +8275,7 @@ const Ei = (n, t) => {
|
|
|
8255
8275
|
)) : k("v-if", !0) : (i(!0), f(
|
|
8256
8276
|
G,
|
|
8257
8277
|
{ key: 0 },
|
|
8258
|
-
de(o.options, (x, w) => (i(), _(
|
|
8278
|
+
de(o.options, (x, w) => (i(), _(Xo, E({
|
|
8259
8279
|
key: x.value.toString()
|
|
8260
8280
|
}, { ref_for: !0 }, x, {
|
|
8261
8281
|
ref_for: !0,
|
|
@@ -8288,7 +8308,7 @@ const Ei = (n, t) => {
|
|
|
8288
8308
|
label: {},
|
|
8289
8309
|
hideLabel: { type: Boolean },
|
|
8290
8310
|
autofocus: { type: Boolean },
|
|
8291
|
-
disabled: { type: [Boolean, Symbol], default:
|
|
8311
|
+
disabled: { type: [Boolean, Symbol], default: te },
|
|
8292
8312
|
icon: {},
|
|
8293
8313
|
name: {},
|
|
8294
8314
|
density: {},
|
|
@@ -8296,7 +8316,7 @@ const Ei = (n, t) => {
|
|
|
8296
8316
|
},
|
|
8297
8317
|
setup(n) {
|
|
8298
8318
|
const t = n, { densityClass: e } = F(t), { disabled: o } = be(t), a = J("inputRef");
|
|
8299
|
-
|
|
8319
|
+
Oe(a, t);
|
|
8300
8320
|
const { rootAttrs: s, restAttrs: r } = ge();
|
|
8301
8321
|
return (u, c) => (i(), f(
|
|
8302
8322
|
"div",
|
|
@@ -8304,7 +8324,7 @@ const Ei = (n, t) => {
|
|
|
8304
8324
|
class: ["onyx-component", "onyx-segmented-control-element", l(e)]
|
|
8305
8325
|
}),
|
|
8306
8326
|
[
|
|
8307
|
-
B(
|
|
8327
|
+
B(qe, null, {
|
|
8308
8328
|
default: S(() => [
|
|
8309
8329
|
y("input", E(l(r), {
|
|
8310
8330
|
id: t.value.toString(),
|
|
@@ -8355,7 +8375,7 @@ const Ei = (n, t) => {
|
|
|
8355
8375
|
},
|
|
8356
8376
|
emits: ["update:modelValue"],
|
|
8357
8377
|
setup(n, { emit: t }) {
|
|
8358
|
-
const e = n, o = t, a =
|
|
8378
|
+
const e = n, o = t, a = oe(e), { densityClass: s } = F(e), r = ae({
|
|
8359
8379
|
props: e,
|
|
8360
8380
|
emit: o,
|
|
8361
8381
|
key: "modelValue"
|
|
@@ -8398,7 +8418,7 @@ const Ei = (n, t) => {
|
|
|
8398
8418
|
active: { type: [Boolean, String], default: "auto" }
|
|
8399
8419
|
},
|
|
8400
8420
|
setup(n) {
|
|
8401
|
-
const t = n, { densityClass: e } = F(t), { isActive: o } = rt(), a = m(() => typeof t.active == "boolean" ? t.active : o.value(t.link)), s = m(() => t.link ?
|
|
8421
|
+
const t = n, { densityClass: e } = F(t), { isActive: o } = rt(), a = m(() => typeof t.active == "boolean" ? t.active : o.value(t.link)), s = m(() => t.link ? Xe(t.link) : void 0), r = m(() => [
|
|
8402
8422
|
"onyx-component",
|
|
8403
8423
|
"onyx-sidebar-item",
|
|
8404
8424
|
e.value,
|
|
@@ -8445,7 +8465,7 @@ const Ei = (n, t) => {
|
|
|
8445
8465
|
},
|
|
8446
8466
|
emits: ["close"],
|
|
8447
8467
|
setup(n, { emit: t }) {
|
|
8448
|
-
const e = n, o = t, a = ce(), { densityClass: s } = F(e), r =
|
|
8468
|
+
const e = n, o = t, a = ce(), { densityClass: s } = F(e), r = Tn(), u = J("sidebarRef"), c = J("modalRef"), d = V(), p = m(() => {
|
|
8449
8469
|
if (d.value)
|
|
8450
8470
|
return { "--onyx-sidebar-width": `${d.value}px` };
|
|
8451
8471
|
}), v = m(
|
|
@@ -8454,9 +8474,9 @@ const Ei = (n, t) => {
|
|
|
8454
8474
|
onAutoSize: () => d.value = void 0,
|
|
8455
8475
|
alignment: e.alignment === "left" ? "right" : "left"
|
|
8456
8476
|
})
|
|
8457
|
-
), { width: b } =
|
|
8477
|
+
), { width: b } = Ue(), h = m(() => {
|
|
8458
8478
|
if (!e.collapseSidebar || b.value === 0) return !1;
|
|
8459
|
-
const w = typeof e.collapseSidebar == "number" ? e.collapseSidebar :
|
|
8479
|
+
const w = typeof e.collapseSidebar == "number" ? e.collapseSidebar : Bt[e.collapseSidebar];
|
|
8460
8480
|
return b.value <= w;
|
|
8461
8481
|
}), g = V(!1), $ = m({
|
|
8462
8482
|
get: () => typeof e.temporary?.open == "boolean" ? e.temporary.open : g.value,
|
|
@@ -8489,7 +8509,7 @@ const Ei = (n, t) => {
|
|
|
8489
8509
|
);
|
|
8490
8510
|
},
|
|
8491
8511
|
{ immediate: !0 }
|
|
8492
|
-
),
|
|
8512
|
+
), It(() => {
|
|
8493
8513
|
r.remove(x);
|
|
8494
8514
|
}), (w, M) => !e.temporary && !h.value ? (i(), f("aside", {
|
|
8495
8515
|
key: 0,
|
|
@@ -8502,7 +8522,7 @@ const Ei = (n, t) => {
|
|
|
8502
8522
|
{ "onyx-sidebar--right": e.alignment === "right" }
|
|
8503
8523
|
]),
|
|
8504
8524
|
"aria-label": e.label,
|
|
8505
|
-
style:
|
|
8525
|
+
style: Me(p.value)
|
|
8506
8526
|
}, [
|
|
8507
8527
|
a.header ? (i(), f("header", dd, [
|
|
8508
8528
|
C(w.$slots, "header")
|
|
@@ -8517,7 +8537,7 @@ const Ei = (n, t) => {
|
|
|
8517
8537
|
key: 2,
|
|
8518
8538
|
element: u.value
|
|
8519
8539
|
}, v.value), null, 16, ["element"])) : k("v-if", !0)
|
|
8520
|
-
], 14, ud)) : (i(), _(
|
|
8540
|
+
], 14, ud)) : (i(), _(da, E({ key: 1 }, e.temporary, {
|
|
8521
8541
|
ref: "modalRef",
|
|
8522
8542
|
open: $.value,
|
|
8523
8543
|
"onUpdate:open": M[0] || (M[0] = (O) => $.value = O),
|
|
@@ -8576,8 +8596,8 @@ const Ei = (n, t) => {
|
|
|
8576
8596
|
inheritAttrs: !1,
|
|
8577
8597
|
__name: "OnyxStepper",
|
|
8578
8598
|
props: {
|
|
8579
|
-
disabled: { type: [Boolean, Symbol], default:
|
|
8580
|
-
showError: { default:
|
|
8599
|
+
disabled: { type: [Boolean, Symbol], default: te },
|
|
8600
|
+
showError: { default: te },
|
|
8581
8601
|
requiredMarker: {},
|
|
8582
8602
|
required: { type: Boolean },
|
|
8583
8603
|
density: {},
|
|
@@ -8606,20 +8626,20 @@ const Ei = (n, t) => {
|
|
|
8606
8626
|
},
|
|
8607
8627
|
emits: ["validityChange", "update:modelValue"],
|
|
8608
8628
|
setup(n, { expose: t, emit: e }) {
|
|
8609
|
-
const o = n, a = e, { t: s, locale: r } = q(), u = J("inputRef"), { disabled: c, showError: d } = be(o), p =
|
|
8629
|
+
const o = n, a = e, { t: s, locale: r } = q(), u = J("inputRef"), { disabled: c, showError: d } = be(o), p = oe(o), v = _t(d), { densityClass: b } = F(o), { vCustomValidity: h, errorMessages: g } = Fe({ props: o, emit: a }), $ = m(() => Be(o.success)), x = m(() => Be(o.message)), { rootAttrs: w, restAttrs: M } = ge(), O = V(!1), L = ae({
|
|
8610
8630
|
props: o,
|
|
8611
8631
|
emit: a,
|
|
8612
8632
|
key: "modelValue"
|
|
8613
|
-
}), N = V(), K = m(() => X.value(L.value)), U = m(() => (H) => o.precision !== void 0 && H != null ?
|
|
8633
|
+
}), N = V(), K = m(() => X.value(L.value)), U = m(() => (H) => o.precision !== void 0 && H != null ? Ho(H, o.precision) : H?.toString() ?? ""), X = m(() => (H) => H == null || Number.isNaN(H) ? "" : o.formatNumber ? typeof o.formatNumber == "boolean" ? o.precision ? H.toLocaleString(r.value, {
|
|
8614
8634
|
minimumFractionDigits: o.precision,
|
|
8615
8635
|
maximumFractionDigits: o.precision
|
|
8616
|
-
}) : H.toLocaleString(r.value) : o.formatNumber(H) : o.precision ?
|
|
8617
|
-
|
|
8636
|
+
}) : H.toLocaleString(r.value) : o.formatNumber(H) : o.precision ? Ho(H, o.precision) : String(H));
|
|
8637
|
+
Te(() => {
|
|
8618
8638
|
N.value = U.value(L.value);
|
|
8619
8639
|
});
|
|
8620
8640
|
const ue = (H) => {
|
|
8621
8641
|
O.value = !0;
|
|
8622
|
-
const R = L.value || 0,
|
|
8642
|
+
const R = L.value || 0, we = (H === "stepUp" ? 1 : -1) * o.stepSize, he = parseFloat(U.value(R + we));
|
|
8623
8643
|
L.value = So(he, o.min, o.max);
|
|
8624
8644
|
}, P = () => {
|
|
8625
8645
|
if (O.value = !0, N.value == null) {
|
|
@@ -8627,8 +8647,8 @@ const Ei = (n, t) => {
|
|
|
8627
8647
|
return;
|
|
8628
8648
|
}
|
|
8629
8649
|
N.value = U.value(parseFloat(N.value)), L.value = parseFloat(N.value);
|
|
8630
|
-
}, D = m(() => s.value("stepper.increment", { stepSize: o.stepSize })),
|
|
8631
|
-
return t({ input: u }),
|
|
8650
|
+
}, D = m(() => s.value("stepper.increment", { stepSize: o.stepSize })), ne = m(() => s.value("stepper.decrement", { stepSize: o.stepSize }));
|
|
8651
|
+
return t({ input: u }), Oe(u, o), (H, R) => l(p) ? (i(), f(
|
|
8632
8652
|
"div",
|
|
8633
8653
|
E({
|
|
8634
8654
|
key: 0,
|
|
@@ -8655,26 +8675,26 @@ const Ei = (n, t) => {
|
|
|
8655
8675
|
"success-messages": $.value,
|
|
8656
8676
|
"error-messages": l(g)
|
|
8657
8677
|
}), {
|
|
8658
|
-
default: S(({ id:
|
|
8678
|
+
default: S(({ id: we }) => [
|
|
8659
8679
|
y("div", fd, [
|
|
8660
8680
|
o.hideButtons ? k("v-if", !0) : (i(), f("button", {
|
|
8661
8681
|
key: 0,
|
|
8662
8682
|
type: "button",
|
|
8663
8683
|
class: "onyx-stepper__counter",
|
|
8664
8684
|
disabled: l(c) || n.readonly || o.loading || o.min !== void 0 && l(L) !== void 0 && l(L) !== null && l(L) <= o.min,
|
|
8665
|
-
"aria-label":
|
|
8685
|
+
"aria-label": ne.value,
|
|
8666
8686
|
tabindex: "-1",
|
|
8667
8687
|
onClick: R[0] || (R[0] = (he) => ue("stepDown"))
|
|
8668
8688
|
}, [
|
|
8669
8689
|
B(z, { icon: l(Ya) }, null, 8, ["icon"])
|
|
8670
8690
|
], 8, vd)),
|
|
8671
|
-
o.loading ? (i(), _(
|
|
8691
|
+
o.loading ? (i(), _(Ie, {
|
|
8672
8692
|
key: 1,
|
|
8673
8693
|
class: "onyx-stepper__loading",
|
|
8674
8694
|
type: "circle"
|
|
8675
8695
|
})) : xe((i(), f("input", E({
|
|
8676
8696
|
key: 2,
|
|
8677
|
-
id:
|
|
8697
|
+
id: we,
|
|
8678
8698
|
ref: "inputRef",
|
|
8679
8699
|
"onUpdate:modelValue": R[1] || (R[1] = (he) => N.value = he),
|
|
8680
8700
|
class: ["onyx-stepper__native", { "onyx-stepper__native--touched": O.value }],
|
|
@@ -8694,8 +8714,8 @@ const Ei = (n, t) => {
|
|
|
8694
8714
|
onChange: P,
|
|
8695
8715
|
onFocusin: R[2] || (R[2] = (he) => he.target?.select()),
|
|
8696
8716
|
onKeydown: [
|
|
8697
|
-
R[3] || (R[3] =
|
|
8698
|
-
R[4] || (R[4] =
|
|
8717
|
+
R[3] || (R[3] = Oo(Ae((he) => ue("stepUp"), ["prevent"]), ["up"])),
|
|
8718
|
+
R[4] || (R[4] = Oo(Ae((he) => ue("stepDown"), ["prevent"]), ["down"]))
|
|
8699
8719
|
]
|
|
8700
8720
|
}), null, 16, hd)), [
|
|
8701
8721
|
[co, N.value],
|
|
@@ -8733,9 +8753,9 @@ const Ei = (n, t) => {
|
|
|
8733
8753
|
inheritAttrs: !1,
|
|
8734
8754
|
__name: "OnyxSwitch",
|
|
8735
8755
|
props: {
|
|
8736
|
-
disabled: { type: [Boolean, Symbol], default:
|
|
8737
|
-
showError: { default:
|
|
8738
|
-
requiredMarker: { default:
|
|
8756
|
+
disabled: { type: [Boolean, Symbol], default: te },
|
|
8757
|
+
showError: { default: te },
|
|
8758
|
+
requiredMarker: { default: te },
|
|
8739
8759
|
autofocus: { type: Boolean },
|
|
8740
8760
|
required: { type: Boolean },
|
|
8741
8761
|
density: {},
|
|
@@ -8749,15 +8769,15 @@ const Ei = (n, t) => {
|
|
|
8749
8769
|
},
|
|
8750
8770
|
emits: ["update:modelValue", "validityChange"],
|
|
8751
8771
|
setup(n, { expose: t, emit: e }) {
|
|
8752
|
-
const o = n, a = e, { rootAttrs: s, restAttrs: r } = ge(), { densityClass: u } = F(o), { disabled: c, showError: d, requiredMarker: p } = be(o), { requiredMarkerClass: v, requiredTypeClass: b } =
|
|
8772
|
+
const o = n, a = e, { rootAttrs: s, restAttrs: r } = ge(), { densityClass: u } = F(o), { disabled: c, showError: d, requiredMarker: p } = be(o), { requiredMarkerClass: v, requiredTypeClass: b } = Nt(o, p), { vCustomValidity: h, errorMessages: g } = Fe({ props: o, emit: a }), $ = m(
|
|
8753
8773
|
() => d.value !== !1 ? g.value : void 0
|
|
8754
|
-
), x = m(() => o.hideLabel && o.label || void 0), w =
|
|
8774
|
+
), x = m(() => o.hideLabel && o.label || void 0), w = oe(o), M = ae({
|
|
8755
8775
|
props: o,
|
|
8756
8776
|
emit: a,
|
|
8757
8777
|
key: "modelValue",
|
|
8758
8778
|
default: !1
|
|
8759
8779
|
}), O = J("inputRef");
|
|
8760
|
-
return t({ input: O }),
|
|
8780
|
+
return t({ input: O }), Oe(O, o), (L, N) => l(w) ? (i(), f(
|
|
8761
8781
|
"div",
|
|
8762
8782
|
E({
|
|
8763
8783
|
key: 0,
|
|
@@ -8795,19 +8815,19 @@ const Ei = (n, t) => {
|
|
|
8795
8815
|
required: o.required,
|
|
8796
8816
|
autofocus: o.autofocus
|
|
8797
8817
|
}, l(r)), null, 16, wd), [
|
|
8798
|
-
[
|
|
8818
|
+
[Qo, l(M)],
|
|
8799
8819
|
[l(h)]
|
|
8800
8820
|
]),
|
|
8801
8821
|
y("span", Sd, [
|
|
8802
8822
|
y("span", $d, [
|
|
8803
8823
|
y("span", Cd, [
|
|
8804
|
-
o.loading ? (i(), _(
|
|
8824
|
+
o.loading ? (i(), _(Ie, {
|
|
8805
8825
|
key: 0,
|
|
8806
8826
|
class: "onyx-switch__spinner",
|
|
8807
8827
|
type: "circle"
|
|
8808
8828
|
})) : (i(), _(z, {
|
|
8809
8829
|
key: 1,
|
|
8810
|
-
icon: l(M) ? l(bt) : l(
|
|
8830
|
+
icon: l(M) ? l(bt) : l(ze)
|
|
8811
8831
|
}, null, 8, ["icon"]))
|
|
8812
8832
|
]),
|
|
8813
8833
|
N[1] || (N[1] = y(
|
|
@@ -8849,7 +8869,7 @@ const Ei = (n, t) => {
|
|
|
8849
8869
|
/* STABLE */
|
|
8850
8870
|
}, 16, ["disabled", "error-messages"]));
|
|
8851
8871
|
}
|
|
8852
|
-
}), em = ["intense", "soft", "medium"],
|
|
8872
|
+
}), em = ["intense", "soft", "medium"], ya = Symbol(), Bd = ["disabled"], Od = { class: "onyx-tab__label" }, tm = /* @__PURE__ */ A({
|
|
8853
8873
|
__name: "OnyxTab",
|
|
8854
8874
|
props: {
|
|
8855
8875
|
density: {},
|
|
@@ -8859,7 +8879,7 @@ const Ei = (n, t) => {
|
|
|
8859
8879
|
skeleton: { type: [Symbol, Boolean, Number], default: ee }
|
|
8860
8880
|
},
|
|
8861
8881
|
setup(n) {
|
|
8862
|
-
const t = n, { densityClass: e } = F(t), o = ve(
|
|
8882
|
+
const t = n, { densityClass: e } = F(t), o = ve(ya, void 0), a = oe(t), s = m(() => `onyx-tab--${o?.size.value}`), r = m(
|
|
8863
8883
|
() => o?.headless.elements.tab.value({
|
|
8864
8884
|
value: t.value,
|
|
8865
8885
|
disabled: t.disabled || !!a.value
|
|
@@ -8932,14 +8952,14 @@ const Ei = (n, t) => {
|
|
|
8932
8952
|
emit: o,
|
|
8933
8953
|
key: "modelValue"
|
|
8934
8954
|
}), r = xs({
|
|
8935
|
-
label:
|
|
8936
|
-
selectedTab:
|
|
8955
|
+
label: se(e, "label"),
|
|
8956
|
+
selectedTab: se(() => s.value),
|
|
8937
8957
|
onSelect: (c) => s.value = c
|
|
8938
8958
|
}), u = J("panelRef");
|
|
8939
|
-
return
|
|
8959
|
+
return Lt(e), Re(ya, {
|
|
8940
8960
|
headless: r,
|
|
8941
8961
|
panel: u,
|
|
8942
|
-
size:
|
|
8962
|
+
size: se(e, "size")
|
|
8943
8963
|
}), (c, d) => (i(), f(
|
|
8944
8964
|
"div",
|
|
8945
8965
|
{
|
|
@@ -8977,7 +8997,7 @@ const Ei = (n, t) => {
|
|
|
8977
8997
|
skeleton: { type: [Symbol, Boolean, Number], default: ee }
|
|
8978
8998
|
},
|
|
8979
8999
|
setup(n) {
|
|
8980
|
-
const t = n, { densityClass: e } = F(t), o =
|
|
9000
|
+
const t = n, { densityClass: e } = F(t), o = oe(t), a = m(() => [
|
|
8981
9001
|
"onyx-component",
|
|
8982
9002
|
"onyx-tag",
|
|
8983
9003
|
`onyx-tag--${t.color}`,
|
|
@@ -9047,7 +9067,7 @@ const Ei = (n, t) => {
|
|
|
9047
9067
|
/* CLASS */
|
|
9048
9068
|
));
|
|
9049
9069
|
}
|
|
9050
|
-
}), Td = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.25 16.5h1.5V18h-1.5zM12.75 6h-1.5v8.25h1.5z"/><path fill-rule="evenodd" d="M12 1.5a10.5 10.5 0 1 0 0 21 10.5 10.5 0 0 0 0-21m6.364 16.864A9 9 0 1 1 21 12a8.94 8.94 0 0 1-2.636 6.364" clip-rule="evenodd"/></svg>',
|
|
9070
|
+
}), Td = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.25 16.5h1.5V18h-1.5zM12.75 6h-1.5v8.25h1.5z"/><path fill-rule="evenodd" d="M12 1.5a10.5 10.5 0 1 0 0 21 10.5 10.5 0 0 0 0-21m6.364 16.864A9 9 0 1 1 21 12a8.94 8.94 0 0 1-2.636 6.364" clip-rule="evenodd"/></svg>', fa = () => {
|
|
9051
9071
|
const { locale: n } = q();
|
|
9052
9072
|
return {
|
|
9053
9073
|
/**
|
|
@@ -9106,14 +9126,14 @@ const Ei = (n, t) => {
|
|
|
9106
9126
|
},
|
|
9107
9127
|
emits: ["validityChange"],
|
|
9108
9128
|
setup(n, { emit: t }) {
|
|
9109
|
-
const e = n, o = t, a = ce(), { densityClass: s } = F(e), { formatFileSize: r } =
|
|
9129
|
+
const e = n, o = t, a = ce(), { densityClass: s } = F(e), { formatFileSize: r } = fa(), u = oe(e), c = m(() => e.status?.color === "danger" ? e.status.text : void 0), { vCustomValidity: d } = Fe({ props: {}, emit: o, error: c }), p = m(() => {
|
|
9110
9130
|
if (e.link)
|
|
9111
|
-
return
|
|
9131
|
+
return Xe(e.link);
|
|
9112
9132
|
});
|
|
9113
9133
|
return (v, b) => l(u) ? (i(), _(Z, {
|
|
9114
9134
|
key: 0,
|
|
9115
9135
|
class: I(["onyx-file-card-skeleton", l(s)])
|
|
9116
|
-
}, null, 8, ["class"])) : (i(), _(
|
|
9136
|
+
}, null, 8, ["class"])) : (i(), _(Pn, {
|
|
9117
9137
|
key: 1,
|
|
9118
9138
|
class: I(["onyx-component", "onyx-file-card", l(s)])
|
|
9119
9139
|
}, {
|
|
@@ -9208,7 +9228,7 @@ const Ei = (n, t) => {
|
|
|
9208
9228
|
"onyx-file-card__progress-bar",
|
|
9209
9229
|
`onyx-file-card__progress-bar--${e.status.color}`
|
|
9210
9230
|
]),
|
|
9211
|
-
style:
|
|
9231
|
+
style: Me({ width: l(So)(e.status.progress, 0, 100) + "%" })
|
|
9212
9232
|
},
|
|
9213
9233
|
null,
|
|
9214
9234
|
6
|
|
@@ -9264,7 +9284,7 @@ function Wd(n, t) {
|
|
|
9264
9284
|
Ea('<circle cx="292.60911" cy="213" r="213" fill="var(--onyx-error-svg-background-color-circle)"></circle><path d="M31.39089,151.64237c0,77.49789,48.6181,140.20819,108.70073,140.20819" transform="translate(-31.39089 -100.5)" fill="var(--onyx-error-svg-background-color)"></path><path d="M140.09162,291.85056c0-78.36865,54.255-141.78356,121.30372-141.78356" transform="translate(-31.39089 -100.5)" fill="var(--onyx-error-svg-background-color-primary)"></path><path d="M70.77521,158.66768c0,73.61476,31.00285,133.18288,69.31641,133.18288" transform="translate(-31.39089 -100.5)" fill="var(--onyx-error-svg-background-color-primary)"></path><path d="M140.09162,291.85056c0-100.13772,62.7103-181.16788,140.20819-181.16788" transform="translate(-31.39089 -100.5)" fill="var(--onyx-error-svg-background-color)"></path><ellipse cx="198.60911" cy="424.5" rx="187" ry="25.43993" fill="var(--onyx-error-svg-background-color-accent)"></ellipse><ellipse cx="198.60911" cy="424.5" rx="157" ry="21.35866" opacity="0.1"></ellipse><ellipse cx="836.60911" cy="660.5" rx="283" ry="38.5" fill="var(--onyx-error-svg-background-color-accent)"></ellipse><ellipse cx="310.60911" cy="645.5" rx="170" ry="23.12721" fill="var(--onyx-error-svg-background-color-accent)"></ellipse><path d="M494,726.5c90,23,263-30,282-90" transform="translate(-31.39089 -100.5)" fill="none" stroke="var(--onyx-error-svg-background-color-cable)" stroke-miterlimit="10" stroke-width="2"></path><path d="M341,359.5s130-36,138,80-107,149-17,172" transform="translate(-31.39089 -100.5)" fill="none" stroke="var(--onyx-error-svg-background-color-cable)" stroke-miterlimit="10" stroke-width="2"></path><path d="M215.40233,637.78332s39.0723-10.82,41.47675,24.04449-32.15951,44.78287-5.10946,51.69566" transform="translate(-31.39089 -100.5)" fill="none" stroke="var(--onyx-error-svg-background-color-cable)" stroke-miterlimit="10" stroke-width="2"></path><path d="M810.09554,663.73988,802.218,714.03505s-38.78182,20.60284-11.51335,21.20881,155.73324,0,155.73324,0,24.84461,0-14.54318-21.81478l-7.87756-52.719Z" transform="translate(-31.39089 -100.5)" fill="var(--onyx-error-svg-background-color)"></path><path d="M785.21906,734.69812c6.193-5.51039,16.9989-11.252,16.9989-11.252l7.87756-50.2952,113.9216.10717,7.87756,49.582c9.185,5.08711,14.8749,8.987,18.20362,11.97818,5.05882-1.15422,10.58716-5.44353-18.20362-21.38921l-7.87756-52.719-113.9216,3.02983L802.218,714.03506S769.62985,731.34968,785.21906,734.69812Z" transform="translate(-31.39089 -100.5)" opacity="0.1"></path><rect x="578.43291" y="212.68859" width="513.25314" height="357.51989" rx="18.04568" fill="var(--onyx-error-svg-background-color)"></rect><rect x="595.70294" y="231.77652" width="478.71308" height="267.83694" fill="var(--onyx-error-svg-background-color-accent)"></rect><circle cx="835.05948" cy="223.29299" r="3.02983" fill="var(--onyx-error-svg-background-color-device-controls)"></circle><path d="M1123.07694,621.32226V652.6628a18.04341,18.04341,0,0,1-18.04568,18.04568H627.86949A18.04341,18.04341,0,0,1,609.8238,652.6628V621.32226Z" transform="translate(-31.39089 -100.5)" fill="var(--onyx-error-svg-background-color)"></path><polygon points="968.978 667.466 968.978 673.526 642.968 673.526 642.968 668.678 643.417 667.466 651.452 645.651 962.312 645.651 968.978 667.466" fill="var(--onyx-error-svg-background-color)"></polygon><path d="M1125.828,762.03359c-.59383,2.539-2.83591,5.21743-7.90178,7.75032-18.179,9.08949-55.1429-2.42386-55.1429-2.42386s-28.4804-4.84773-28.4804-17.573a22.72457,22.72457,0,0,1,2.49658-1.48459c7.64294-4.04351,32.98449-14.02122,77.9177.42248a18.73921,18.73921,0,0,1,8.54106,5.59715C1125.07908,756.45353,1126.50669,759.15715,1125.828,762.03359Z" transform="translate(-31.39089 -100.5)" fill="var(--onyx-error-svg-background-color)"></path><path d="M1125.828,762.03359c-22.251,8.526-42.0843,9.1622-62.43871-4.975-10.26507-7.12617-19.59089-8.88955-26.58979-8.75618,7.64294-4.04351,32.98449-14.02122,77.9177.42248a18.73921,18.73921,0,0,1,8.54106,5.59715C1125.07908,756.45353,1126.50669,759.15715,1125.828,762.03359Z" transform="translate(-31.39089 -100.5)" opacity="0.1"></path><ellipse cx="1066.53846" cy="654.13477" rx="7.87756" ry="2.42386" fill="var(--onyx-error-svg-background-color-device-controls)"></ellipse><circle cx="835.05948" cy="545.66686" r="11.51335" fill="var(--onyx-error-svg-background-color-device-controls)"></circle><polygon points="968.978 667.466 968.978 673.526 642.968 673.526 642.968 668.678 643.417 667.466 968.978 667.466" opacity="0.1"></polygon><rect x="108.60911" y="159" width="208" height="242" fill="var(--onyx-error-svg-background-color)"></rect><rect x="87.60911" y="135" width="250" height="86" fill="var(--onyx-error-svg-background-color-accent)"></rect><rect x="87.60911" y="237" width="250" height="86" fill="var(--onyx-error-svg-background-color-accent)"></rect><rect x="87.60911" y="339" width="250" height="86" fill="var(--onyx-error-svg-background-color-accent)"></rect><rect x="271.60911" y="150" width="16" height="16" fill="var(--onyx-error-svg-background-color-primary)" opacity="0.4"></rect><rect x="294.60911" y="150" width="16" height="16" fill="var(--onyx-error-svg-background-color-primary)" opacity="0.8"></rect><rect x="317.60911" y="150" width="16" height="16" fill="var(--onyx-error-svg-background-color-primary)"></rect><rect x="271.60911" y="251" width="16" height="16" fill="var(--onyx-error-svg-background-color-primary)" opacity="0.4"></rect><rect x="294.60911" y="251" width="16" height="16" fill="var(--onyx-error-svg-background-color-primary)" opacity="0.8"></rect><rect x="317.60911" y="251" width="16" height="16" fill="var(--onyx-error-svg-background-color-primary)"></rect><rect x="271.60911" y="352" width="16" height="16" fill="var(--onyx-error-svg-background-color-primary)" opacity="0.4"></rect><rect x="294.60911" y="352" width="16" height="16" fill="var(--onyx-error-svg-background-color-primary)" opacity="0.8"></rect><rect x="317.60911" y="352" width="16" height="16" fill="var(--onyx-error-svg-background-color-primary)"></rect><circle cx="316.60911" cy="538" r="79" fill="var(--onyx-error-svg-background-color)"></circle><rect x="280.60911" y="600" width="24" height="43" fill="var(--onyx-error-svg-background-color)"></rect><rect x="328.60911" y="600" width="24" height="43" fill="var(--onyx-error-svg-background-color)"></rect><ellipse cx="300.60911" cy="643.5" rx="20" ry="7.5" fill="var(--onyx-error-svg-background-color)"></ellipse><ellipse cx="348.60911" cy="642.5" rx="20" ry="7.5" fill="var(--onyx-error-svg-background-color)"></ellipse><circle cx="318.60911" cy="518" r="27" fill="var(--onyx-error-svg-background-color-face)"></circle><circle cx="318.60911" cy="518" r="9" fill="var(--onyx-error-svg-background-color-accent)"></circle><path d="M271.36733,565.03228c-6.37889-28.56758,14.01185-57.43392,45.544-64.47477s62.2651,10.41,68.644,38.9776-14.51861,39.10379-46.05075,46.14464S277.74622,593.59986,271.36733,565.03228Z" transform="translate(-31.39089 -100.5)" fill="var(--onyx-error-svg-background-color-primary)"></path><ellipse cx="417.21511" cy="611.34365" rx="39.5" ry="12.40027" transform="translate(-238.28665 112.98044) rotate(-23.17116)" fill="var(--onyx-error-svg-background-color)"></ellipse><ellipse cx="269.21511" cy="664.34365" rx="39.5" ry="12.40027" transform="translate(-271.07969 59.02084) rotate(-23.17116)" fill="var(--onyx-error-svg-background-color)"></ellipse><path d="M394,661.5c0,7.732-19.90861,23-42,23s-43-14.268-43-22,20.90861-6,43-6S394,653.768,394,661.5Z" transform="translate(-31.39089 -100.5)" fill="var(--onyx-error-svg-background-color-face)"></path>', 48)
|
|
9265
9285
|
])]);
|
|
9266
9286
|
}
|
|
9267
|
-
const am = /* @__PURE__ */
|
|
9287
|
+
const am = /* @__PURE__ */ Rt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
9268
9288
|
__name: "OnyxFileUploadSVG",
|
|
9269
9289
|
props: {
|
|
9270
9290
|
disabled: { type: Boolean },
|
|
@@ -9364,14 +9384,14 @@ const am = /* @__PURE__ */ Vt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
|
9364
9384
|
maxTotalSize: {},
|
|
9365
9385
|
maxCount: {},
|
|
9366
9386
|
replace: { type: Boolean },
|
|
9367
|
-
disabled: { type: [Boolean, Symbol], default:
|
|
9387
|
+
disabled: { type: [Boolean, Symbol], default: te },
|
|
9368
9388
|
size: { default: "large" },
|
|
9369
9389
|
skeleton: { type: [Symbol, Boolean, Number], default: ee },
|
|
9370
9390
|
listType: { default: "list" }
|
|
9371
9391
|
},
|
|
9372
9392
|
emits: ["update:modelValue"],
|
|
9373
9393
|
setup(n, { emit: t }) {
|
|
9374
|
-
const e = n, o = t, a =
|
|
9394
|
+
const e = n, o = t, a = oe(e), { disabled: s } = be(e), { t: r } = q(), { densityClass: u } = F(e), { restAttrs: c, rootAttrs: d } = ge(), { formatFileSize: p } = fa(), v = ae({
|
|
9375
9395
|
props: e,
|
|
9376
9396
|
emit: o,
|
|
9377
9397
|
key: "modelValue"
|
|
@@ -9390,8 +9410,8 @@ const am = /* @__PURE__ */ Vt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
|
9390
9410
|
}),
|
|
9391
9411
|
color: "danger"
|
|
9392
9412
|
};
|
|
9393
|
-
const
|
|
9394
|
-
if (e.maxTotalSize &&
|
|
9413
|
+
const ne = h.value.slice(0, D + 1).reduce((H, R) => H + R.size, 0);
|
|
9414
|
+
if (e.maxTotalSize && ne > ao(e.maxTotalSize))
|
|
9395
9415
|
return {
|
|
9396
9416
|
text: r.value("fileUpload.status.maxFileSizeError", {
|
|
9397
9417
|
size: p.value(e.maxTotalSize)
|
|
@@ -9417,13 +9437,13 @@ const am = /* @__PURE__ */ Vt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
|
9417
9437
|
e.multiple ? e.replace ? D = P.slice() : D = h.value.concat(P) : D = P[0], v.value = D;
|
|
9418
9438
|
}, M = (P) => {
|
|
9419
9439
|
if (e.multiple) {
|
|
9420
|
-
const D = h.value.filter((
|
|
9440
|
+
const D = h.value.filter((ne) => ne !== P);
|
|
9421
9441
|
v.value = D;
|
|
9422
9442
|
} else
|
|
9423
9443
|
v.value = void 0;
|
|
9424
9444
|
}, O = (P) => {
|
|
9425
|
-
const D = P.target,
|
|
9426
|
-
w(
|
|
9445
|
+
const D = P.target, ne = Array.from(D.files ?? []);
|
|
9446
|
+
w(ne), D.value = "";
|
|
9427
9447
|
}, L = m(() => e.size === "large" || (e.maxSize || e.maxTotalSize || e.maxCount || e.accept?.length) && e.size !== "small"), N = V(!1), K = (P) => {
|
|
9428
9448
|
if (s.value) return;
|
|
9429
9449
|
N.value = !1;
|
|
@@ -9457,11 +9477,11 @@ const am = /* @__PURE__ */ Vt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
|
9457
9477
|
]),
|
|
9458
9478
|
disabled: l(s),
|
|
9459
9479
|
onDragenter: U,
|
|
9460
|
-
onDragleave: D[0] || (D[0] = (
|
|
9461
|
-
onDragover: D[1] || (D[1] =
|
|
9480
|
+
onDragleave: D[0] || (D[0] = (ne) => N.value = !1),
|
|
9481
|
+
onDragover: D[1] || (D[1] = Ae(() => {
|
|
9462
9482
|
}, ["prevent"])),
|
|
9463
|
-
onDrop:
|
|
9464
|
-
onClick: D[2] || (D[2] = (
|
|
9483
|
+
onDrop: Ae(K, ["prevent"]),
|
|
9484
|
+
onClick: D[2] || (D[2] = (ne) => b.value?.click())
|
|
9465
9485
|
}, [
|
|
9466
9486
|
e.size === "large" ? (i(), _(l(Yd), {
|
|
9467
9487
|
key: 0,
|
|
@@ -9563,11 +9583,11 @@ const am = /* @__PURE__ */ Vt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
|
9563
9583
|
disabled: l(s),
|
|
9564
9584
|
name: e.name
|
|
9565
9585
|
}, l(c), { onChange: O }), null, 16, np),
|
|
9566
|
-
e.listType === "button" && h.value.length ? (i(), _(
|
|
9586
|
+
e.listType === "button" && h.value.length ? (i(), _(ke, {
|
|
9567
9587
|
key: 0,
|
|
9568
9588
|
class: "onyx-file-upload__list-button",
|
|
9569
9589
|
label: g.value ? l(r)("fileUpload.revealFilesButton") : l(r)("fileUpload.hideFilesButton"),
|
|
9570
|
-
onClick: D[3] || (D[3] = (
|
|
9590
|
+
onClick: D[3] || (D[3] = (ne) => g.value = !g.value)
|
|
9571
9591
|
}, null, 8, ["label"])) : k("v-if", !0),
|
|
9572
9592
|
ue.value ? (i(), f(
|
|
9573
9593
|
"div",
|
|
@@ -9582,14 +9602,14 @@ const am = /* @__PURE__ */ Vt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
|
9582
9602
|
(i(!0), f(
|
|
9583
9603
|
G,
|
|
9584
9604
|
null,
|
|
9585
|
-
de(x.value, (
|
|
9586
|
-
key:
|
|
9587
|
-
file:
|
|
9588
|
-
props:
|
|
9605
|
+
de(x.value, (ne) => C(P.$slots, "default", {
|
|
9606
|
+
key: ne.props.filename,
|
|
9607
|
+
file: ne.file,
|
|
9608
|
+
props: ne.props
|
|
9589
9609
|
}, () => [
|
|
9590
9610
|
B(
|
|
9591
9611
|
Gd,
|
|
9592
|
-
E({ ref_for: !0 },
|
|
9612
|
+
E({ ref_for: !0 }, ne.props),
|
|
9593
9613
|
{
|
|
9594
9614
|
actions: S(() => [
|
|
9595
9615
|
B(Co, {
|
|
@@ -9597,7 +9617,7 @@ const am = /* @__PURE__ */ Vt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
|
9597
9617
|
icon: l(pl),
|
|
9598
9618
|
label: l(r)("fileUpload.removeFile"),
|
|
9599
9619
|
disabled: l(s),
|
|
9600
|
-
onClick: (H) => M(
|
|
9620
|
+
onClick: (H) => M(ne.file)
|
|
9601
9621
|
}, null, 8, ["icon", "label", "disabled", "onClick"])
|
|
9602
9622
|
]),
|
|
9603
9623
|
_: 2
|
|
@@ -9637,9 +9657,9 @@ const am = /* @__PURE__ */ Vt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
|
9637
9657
|
default: !1
|
|
9638
9658
|
}), r = m(
|
|
9639
9659
|
() => s.value ? a.value("filterTag.clickToRemove", { label: e.label }) : a.value("filterTag.clickToAdd", { label: e.label })
|
|
9640
|
-
), u =
|
|
9660
|
+
), u = oe(e);
|
|
9641
9661
|
return (c, d) => (i(), _(tt, E(e, {
|
|
9642
|
-
clickable: { label: r.value, actionIcon: l(s) ? l(
|
|
9662
|
+
clickable: { label: r.value, actionIcon: l(s) ? l(ze) : void 0 },
|
|
9643
9663
|
class: "onyx-filter-tag",
|
|
9644
9664
|
skeleton: l(u),
|
|
9645
9665
|
onClick: d[0] || (d[0] = (p) => s.value = !l(s))
|
|
@@ -9649,9 +9669,9 @@ const am = /* @__PURE__ */ Vt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
|
9649
9669
|
inheritAttrs: !1,
|
|
9650
9670
|
__name: "OnyxTextarea",
|
|
9651
9671
|
props: {
|
|
9652
|
-
disabled: { type: [Boolean, Symbol], default:
|
|
9653
|
-
showError: { default:
|
|
9654
|
-
requiredMarker: { default:
|
|
9672
|
+
disabled: { type: [Boolean, Symbol], default: te },
|
|
9673
|
+
showError: { default: te },
|
|
9674
|
+
requiredMarker: { default: te },
|
|
9655
9675
|
required: { type: Boolean, default: !1 },
|
|
9656
9676
|
density: {},
|
|
9657
9677
|
error: {},
|
|
@@ -9671,6 +9691,7 @@ const am = /* @__PURE__ */ Vt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
|
9671
9691
|
minlength: {},
|
|
9672
9692
|
autocapitalize: { default: "sentences" },
|
|
9673
9693
|
modelValue: {},
|
|
9694
|
+
showPassword: { type: Boolean },
|
|
9674
9695
|
autosize: {},
|
|
9675
9696
|
disableManualResize: { type: Boolean, default: !1 }
|
|
9676
9697
|
},
|
|
@@ -9681,15 +9702,15 @@ const am = /* @__PURE__ */ Vt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
|
9681
9702
|
emit: a,
|
|
9682
9703
|
key: "modelValue",
|
|
9683
9704
|
default: ""
|
|
9684
|
-
}), { rootAttrs: r, restAttrs: u } = ge(), { maxLength: c, maxLengthError: d } =
|
|
9705
|
+
}), { rootAttrs: r, restAttrs: u } = ge(), { maxLength: c, maxLengthError: d } = ia({ props: o, modelValue: s }), p = m(() => o.error ?? d.value), { vCustomValidity: v, errorMessages: b } = Fe({ props: o, emit: a, error: p }), { densityClass: h } = F(o), g = m(() => Be(o.success)), $ = m(() => Be(o.message)), x = m(() => {
|
|
9685
9706
|
if (!o.autosize) return;
|
|
9686
9707
|
const U = o.autosize.min ? Math.max(o.autosize.min, 2) : void 0, X = o.autosize.max;
|
|
9687
9708
|
return [U ? `--min-autosize-rows: ${U}` : "", `--max-autosize-rows: ${X ?? "unset"}`];
|
|
9688
9709
|
}), w = (U) => {
|
|
9689
9710
|
const X = U.target;
|
|
9690
9711
|
X.parentElement?.setAttribute("data-autosize-value", X.value);
|
|
9691
|
-
}, { disabled: M, showError: O } = be(o), L =
|
|
9692
|
-
return t({ input: K }),
|
|
9712
|
+
}, { disabled: M, showError: O } = be(o), L = oe(o), N = _t(O), K = J("inputRef");
|
|
9713
|
+
return t({ input: K }), Oe(K, o), (U, X) => l(L) ? (i(), f(
|
|
9693
9714
|
"div",
|
|
9694
9715
|
E({
|
|
9695
9716
|
key: 0,
|
|
@@ -9791,12 +9812,12 @@ const am = /* @__PURE__ */ Vt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
|
9791
9812
|
},
|
|
9792
9813
|
[
|
|
9793
9814
|
y("div", cp, [
|
|
9794
|
-
B(
|
|
9815
|
+
B(la, {
|
|
9795
9816
|
modelValue: s.value.pagination,
|
|
9796
9817
|
"onUpdate:modelValue": c[0] || (c[0] = (d) => s.value.pagination = d),
|
|
9797
9818
|
pages: 6
|
|
9798
9819
|
}, null, 8, ["modelValue"]),
|
|
9799
|
-
B(
|
|
9820
|
+
B(aa, {
|
|
9800
9821
|
modelValue: s.value.select,
|
|
9801
9822
|
"onUpdate:modelValue": c[1] || (c[1] = (d) => s.value.select = d),
|
|
9802
9823
|
class: "showcase__select",
|
|
@@ -9814,7 +9835,7 @@ const am = /* @__PURE__ */ Vt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
|
9814
9835
|
label: "Dark mode"
|
|
9815
9836
|
}, null, 8, ["modelValue"])
|
|
9816
9837
|
]),
|
|
9817
|
-
B(
|
|
9838
|
+
B(Kn, {
|
|
9818
9839
|
class: "grid--table",
|
|
9819
9840
|
striped: ""
|
|
9820
9841
|
}, {
|
|
@@ -9930,14 +9951,14 @@ const am = /* @__PURE__ */ Vt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
|
9930
9951
|
placeholder: "Enter free text here",
|
|
9931
9952
|
autosize: { min: 7, max: 14 }
|
|
9932
9953
|
}, null, 8, ["modelValue"]),
|
|
9933
|
-
B(
|
|
9954
|
+
B(Ln, {
|
|
9934
9955
|
class: "grid--toast",
|
|
9935
9956
|
headline: "Toast notification",
|
|
9936
9957
|
description: "Description",
|
|
9937
9958
|
duration: 0
|
|
9938
9959
|
}),
|
|
9939
9960
|
y("div", up, [
|
|
9940
|
-
B(
|
|
9961
|
+
B(Vt, null, {
|
|
9941
9962
|
default: S(() => [...c[15] || (c[15] = [
|
|
9942
9963
|
W(
|
|
9943
9964
|
"Badge",
|
|
@@ -9966,7 +9987,7 @@ const am = /* @__PURE__ */ Vt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
|
9966
9987
|
color: "success"
|
|
9967
9988
|
})
|
|
9968
9989
|
]),
|
|
9969
|
-
B(
|
|
9990
|
+
B(Uo, {
|
|
9970
9991
|
modelValue: s.value.checkboxGroup,
|
|
9971
9992
|
"onUpdate:modelValue": c[4] || (c[4] = (d) => s.value.checkboxGroup = d),
|
|
9972
9993
|
class: "grid--checkboxes",
|
|
@@ -9981,7 +10002,7 @@ const am = /* @__PURE__ */ Vt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
|
9981
10002
|
(i(), f(
|
|
9982
10003
|
G,
|
|
9983
10004
|
null,
|
|
9984
|
-
de(r, (d) => B(
|
|
10005
|
+
de(r, (d) => B(At, {
|
|
9985
10006
|
key: d.name,
|
|
9986
10007
|
"full-name": d.name,
|
|
9987
10008
|
src: d.avatar,
|
|
@@ -9990,7 +10011,7 @@ const am = /* @__PURE__ */ Vt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
|
9990
10011
|
64
|
|
9991
10012
|
/* STABLE_FRAGMENT */
|
|
9992
10013
|
)),
|
|
9993
|
-
B(
|
|
10014
|
+
B(At, {
|
|
9994
10015
|
"full-name": "Three others",
|
|
9995
10016
|
initials: "+3",
|
|
9996
10017
|
size: "32px"
|
|
@@ -10043,7 +10064,7 @@ const am = /* @__PURE__ */ Vt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
|
10043
10064
|
-1
|
|
10044
10065
|
/* CACHED */
|
|
10045
10066
|
)),
|
|
10046
|
-
B(
|
|
10067
|
+
B(Uo, {
|
|
10047
10068
|
label: "Checkbox group (skeleton)",
|
|
10048
10069
|
"hide-label": "",
|
|
10049
10070
|
orientation: "horizontal",
|
|
@@ -10076,7 +10097,7 @@ const am = /* @__PURE__ */ Vt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
|
10076
10097
|
)
|
|
10077
10098
|
])]),
|
|
10078
10099
|
default: S(() => [
|
|
10079
|
-
B(
|
|
10100
|
+
B(Ve, null, {
|
|
10080
10101
|
default: S(() => [
|
|
10081
10102
|
B(z, { icon: l(fl) }, null, 8, ["icon"]),
|
|
10082
10103
|
c[17] || (c[17] = W(
|
|
@@ -10092,7 +10113,7 @@ const am = /* @__PURE__ */ Vt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
|
10092
10113
|
"model-value": t.value ? "dark" : "light",
|
|
10093
10114
|
"onUpdate:modelValue": c[7] || (c[7] = (d) => t.value = d === "dark")
|
|
10094
10115
|
}, null, 8, ["model-value"]),
|
|
10095
|
-
B(
|
|
10116
|
+
B(Ve, { color: "danger" }, {
|
|
10096
10117
|
default: S(() => [
|
|
10097
10118
|
B(z, { icon: l(vl) }, null, 8, ["icon"]),
|
|
10098
10119
|
c[18] || (c[18] = W(
|
|
@@ -10136,8 +10157,8 @@ const am = /* @__PURE__ */ Vt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
|
10136
10157
|
)
|
|
10137
10158
|
]));
|
|
10138
10159
|
}
|
|
10139
|
-
}), rm = /* @__PURE__ */
|
|
10140
|
-
|
|
10160
|
+
}), rm = /* @__PURE__ */ Rt(yp, [["__scopeId", "data-v-c46b11f7"]]), im = (n) => {
|
|
10161
|
+
Se(() => {
|
|
10141
10162
|
Y([n], () => {
|
|
10142
10163
|
const t = document.documentElement, e = "onyx-transition-active", o = () => {
|
|
10143
10164
|
t.classList.remove(e);
|
|
@@ -10149,9 +10170,9 @@ const am = /* @__PURE__ */ Vt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
|
10149
10170
|
install: (t) => {
|
|
10150
10171
|
is(t, n.i18n);
|
|
10151
10172
|
const e = t.runWithContext(() => q());
|
|
10152
|
-
t.provide(
|
|
10173
|
+
t.provide(Rn, _r()), t.provide(Mn, qs()), t.provide(In, ur()), n.router && t.provide($n, n.router), t.mixin({
|
|
10153
10174
|
beforeMount: () => {
|
|
10154
|
-
|
|
10175
|
+
Te(() => {
|
|
10155
10176
|
fp(e.t.value("optional"));
|
|
10156
10177
|
});
|
|
10157
10178
|
}
|
|
@@ -10161,48 +10182,48 @@ const am = /* @__PURE__ */ Vt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
|
10161
10182
|
globalThis.document?.body.style.setProperty("--onyx-global-optional-text", `"${n}"`);
|
|
10162
10183
|
};
|
|
10163
10184
|
export {
|
|
10164
|
-
|
|
10185
|
+
pn as ACCORDION_INJECTION_KEY,
|
|
10165
10186
|
gp as ACCORDION_TYPES,
|
|
10166
|
-
|
|
10167
|
-
|
|
10187
|
+
Nn as BREADCRUMB_MORE_LIST_INJECTION_KEY,
|
|
10188
|
+
zn as BREADCRUMB_MORE_LIST_TARGET_INJECTION_KEY,
|
|
10168
10189
|
Cp as BUTTON_COLORS,
|
|
10169
10190
|
Ep as BUTTON_MODES,
|
|
10170
10191
|
$p as BUTTON_TYPES,
|
|
10171
10192
|
bp as DENSITIES,
|
|
10172
10193
|
Tp as DIALOG_ALIGNMENTS,
|
|
10173
10194
|
Ap as DataGridFeatures,
|
|
10174
|
-
|
|
10175
|
-
|
|
10195
|
+
Mt as DataGridRowOptionsSymbol,
|
|
10196
|
+
Mn as GLOBAL_FAB_PROVIDER_INJECTION_KEY,
|
|
10176
10197
|
Rp as HEADLINE_TYPES,
|
|
10177
10198
|
Vp as ICON_SIZES,
|
|
10178
10199
|
zp as IMAGE_SHAPES,
|
|
10179
10200
|
Dp as INPUT_TYPES,
|
|
10180
10201
|
jp as LINK_TARGETS,
|
|
10181
|
-
|
|
10202
|
+
Dt as MOBILE_NAV_BAR_INJECTION_KEY,
|
|
10182
10203
|
Jp as MULTISELECT_TEXT_MODE,
|
|
10183
|
-
|
|
10184
|
-
|
|
10185
|
-
|
|
10186
|
-
|
|
10187
|
-
|
|
10204
|
+
Jo as NAV_BAR_IS_TOP_LEVEL_INJECTION_KEY,
|
|
10205
|
+
ca as NAV_BAR_MORE_LIST_INJECTION_KEY,
|
|
10206
|
+
ua as NAV_BAR_MORE_LIST_TARGET_INJECTION_KEY,
|
|
10207
|
+
In as NOTIFICATIONS_PROVIDER_INJECTION_KEY,
|
|
10208
|
+
Bt as ONYX_BREAKPOINTS,
|
|
10188
10209
|
cm as ONYX_COLORS,
|
|
10189
10210
|
pm as ORIENTATIONS,
|
|
10190
10211
|
_p as OnyxAccordion,
|
|
10191
10212
|
xp as OnyxAccordionItem,
|
|
10192
10213
|
kp as OnyxAlertModal,
|
|
10193
10214
|
wp as OnyxAppLayout,
|
|
10194
|
-
|
|
10215
|
+
At as OnyxAvatar,
|
|
10195
10216
|
Ar as OnyxAvatarStack,
|
|
10196
|
-
|
|
10197
|
-
|
|
10217
|
+
Vt as OnyxBadge,
|
|
10218
|
+
kn as OnyxBasicDialog,
|
|
10198
10219
|
vo as OnyxBasicPopover,
|
|
10199
10220
|
Lr as OnyxBottomBar,
|
|
10200
10221
|
Sp as OnyxBreadcrumb,
|
|
10201
|
-
|
|
10222
|
+
Do as OnyxBreadcrumbItem,
|
|
10202
10223
|
lt as OnyxButton,
|
|
10203
|
-
|
|
10224
|
+
Pn as OnyxCard,
|
|
10204
10225
|
mt as OnyxCheckbox,
|
|
10205
|
-
|
|
10226
|
+
Uo as OnyxCheckboxGroup,
|
|
10206
10227
|
ou as OnyxColorSchemeDialog,
|
|
10207
10228
|
au as OnyxColorSchemeMenuItem,
|
|
10208
10229
|
rm as OnyxComponentShowcase,
|
|
@@ -10210,10 +10231,10 @@ export {
|
|
|
10210
10231
|
gi as OnyxDataGridRenderer,
|
|
10211
10232
|
Mp as OnyxDatePicker,
|
|
10212
10233
|
Ip as OnyxDialog,
|
|
10213
|
-
|
|
10234
|
+
qn as OnyxEmpty,
|
|
10214
10235
|
am as OnyxErrorSVG,
|
|
10215
|
-
|
|
10216
|
-
|
|
10236
|
+
Dn as OnyxExternalLinkIcon,
|
|
10237
|
+
No as OnyxFAB,
|
|
10217
10238
|
to as OnyxFABButton,
|
|
10218
10239
|
Gs as OnyxFABItem,
|
|
10219
10240
|
Gd as OnyxFileCard,
|
|
@@ -10221,26 +10242,26 @@ export {
|
|
|
10221
10242
|
lm as OnyxFileUpload,
|
|
10222
10243
|
Yd as OnyxFileUploadSVG,
|
|
10223
10244
|
sm as OnyxFilterTag,
|
|
10224
|
-
|
|
10245
|
+
Ke as OnyxFlyoutMenu,
|
|
10225
10246
|
Lp as OnyxForm,
|
|
10226
10247
|
xt as OnyxFormElement,
|
|
10227
10248
|
Ks as OnyxGlobalFAB,
|
|
10228
|
-
|
|
10249
|
+
De as OnyxHeadline,
|
|
10229
10250
|
z as OnyxIcon,
|
|
10230
10251
|
Co as OnyxIconButton,
|
|
10231
10252
|
Np as OnyxImage,
|
|
10232
10253
|
ir as OnyxInfoCard,
|
|
10233
|
-
|
|
10254
|
+
zt as OnyxInfoTooltip,
|
|
10234
10255
|
Lc as OnyxInput,
|
|
10235
10256
|
Fp as OnyxLanguageMenuItem,
|
|
10236
10257
|
Rc as OnyxLink,
|
|
10237
10258
|
ho as OnyxListItem,
|
|
10238
|
-
|
|
10239
|
-
|
|
10240
|
-
|
|
10241
|
-
|
|
10242
|
-
|
|
10243
|
-
|
|
10259
|
+
Ie as OnyxLoadingIndicator,
|
|
10260
|
+
Ve as OnyxMenuItem,
|
|
10261
|
+
jn as OnyxMiniSearch,
|
|
10262
|
+
Zo as OnyxMobileNavButton,
|
|
10263
|
+
da as OnyxModal,
|
|
10264
|
+
Fn as OnyxMoreList,
|
|
10244
10265
|
Wc as OnyxNavAppArea,
|
|
10245
10266
|
Tu as OnyxNavBar,
|
|
10246
10267
|
pt as OnyxNavItem,
|
|
@@ -10250,46 +10271,46 @@ export {
|
|
|
10250
10271
|
cr as OnyxNotificationMessage,
|
|
10251
10272
|
mr as OnyxNotifications,
|
|
10252
10273
|
Gp as OnyxPageLayout,
|
|
10253
|
-
|
|
10274
|
+
la as OnyxPagination,
|
|
10254
10275
|
Ju as OnyxProgressItem,
|
|
10255
10276
|
Kp as OnyxProgressSteps,
|
|
10256
|
-
|
|
10277
|
+
Xo as OnyxRadioButton,
|
|
10257
10278
|
td as OnyxRadioGroup,
|
|
10258
10279
|
it as OnyxRouterLink,
|
|
10259
10280
|
Wp as OnyxSegmentedControl,
|
|
10260
10281
|
ld as OnyxSegmentedControlElement,
|
|
10261
|
-
|
|
10262
|
-
|
|
10282
|
+
aa as OnyxSelect,
|
|
10283
|
+
pa as OnyxSelectDialog,
|
|
10263
10284
|
Fi as OnyxSelectInput,
|
|
10264
|
-
|
|
10265
|
-
|
|
10285
|
+
Go as OnyxSelectOption,
|
|
10286
|
+
Tt as OnyxSeparator,
|
|
10266
10287
|
Xp as OnyxSidebar,
|
|
10267
10288
|
Zp as OnyxSidebarItem,
|
|
10268
10289
|
Z as OnyxSkeleton,
|
|
10269
10290
|
_d as OnyxStepper,
|
|
10270
10291
|
Ed as OnyxSwitch,
|
|
10271
|
-
|
|
10292
|
+
ke as OnyxSystemButton,
|
|
10272
10293
|
tm as OnyxTab,
|
|
10273
|
-
|
|
10294
|
+
Kn as OnyxTable,
|
|
10274
10295
|
om as OnyxTabs,
|
|
10275
10296
|
tt as OnyxTag,
|
|
10276
10297
|
sp as OnyxTextarea,
|
|
10277
10298
|
Pp as OnyxTimer,
|
|
10278
10299
|
wr as OnyxToast,
|
|
10279
|
-
|
|
10300
|
+
Ln as OnyxToastMessage,
|
|
10280
10301
|
ft as OnyxTooltip,
|
|
10281
10302
|
wu as OnyxUserMenu,
|
|
10282
|
-
|
|
10303
|
+
qe as OnyxVisuallyHidden,
|
|
10283
10304
|
qp as PROGRESS_ITEM_STATUS,
|
|
10284
|
-
|
|
10305
|
+
$n as ROUTER_INJECTION_KEY,
|
|
10285
10306
|
Yp as SELECT_ALIGNMENTS,
|
|
10286
10307
|
Qp as SIDEBAR_ALIGNMENT,
|
|
10287
10308
|
ee as SKELETON_INJECTED_SYMBOL,
|
|
10288
10309
|
nm as SUPPORTED_FILE_TYPE_ICON_MEDIA_TYPES,
|
|
10289
10310
|
em as SYSTEM_BUTTON_COLORS,
|
|
10290
|
-
|
|
10311
|
+
ya as TABS_INJECTION_KEY,
|
|
10291
10312
|
um as TEXT_SIZES,
|
|
10292
|
-
|
|
10313
|
+
Rn as TOAST_PROVIDER_INJECTION_KEY,
|
|
10293
10314
|
dm as TRUNCATION_TYPES,
|
|
10294
10315
|
Bp as createFeature,
|
|
10295
10316
|
qs as createGlobalFABProvider,
|
|
@@ -10297,20 +10318,20 @@ export {
|
|
|
10297
10318
|
mm as createOnyx,
|
|
10298
10319
|
Ei as createTableColumnGroups,
|
|
10299
10320
|
_r as createToastProvider,
|
|
10300
|
-
|
|
10301
|
-
|
|
10302
|
-
|
|
10321
|
+
Xe as extractLinkProps,
|
|
10322
|
+
Sn as isInternalLink,
|
|
10323
|
+
wn as normalizedIncludes,
|
|
10303
10324
|
is as provideI18n,
|
|
10304
|
-
|
|
10325
|
+
Lt as provideSkeletonContext,
|
|
10305
10326
|
Bi as useDataGridFeatures,
|
|
10306
10327
|
F as useDensity,
|
|
10307
10328
|
ut as useFeatureContext,
|
|
10308
|
-
|
|
10309
|
-
|
|
10329
|
+
fa as useFileSize,
|
|
10330
|
+
Tn as useGlobalFAB,
|
|
10310
10331
|
rt as useLink,
|
|
10311
10332
|
dr as useNotification,
|
|
10312
|
-
|
|
10313
|
-
|
|
10333
|
+
na as useScrollEnd,
|
|
10334
|
+
oe as useSkeletonContext,
|
|
10314
10335
|
im as useThemeTransition,
|
|
10315
10336
|
xr as useToast
|
|
10316
10337
|
};
|