sit-onyx 1.1.0-dev-20250926121514 → 1.1.0-dev-20250929141520
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,4 +1,4 @@
|
|
|
1
|
-
import { computed as m, provide as Re, inject as ve, toRef as ie, ref as V, watch as Y, defineComponent as A, watchEffect as Ie, toRefs as ro, createElementBlock as
|
|
1
|
+
import { computed as m, provide as Re, inject as ve, toRef as ie, ref as V, watch as Y, defineComponent as A, watchEffect as Ie, toRefs as ro, createElementBlock as f, openBlock as i, normalizeClass as I, unref as l, renderSlot as C, onMounted as Oe, createBlock as _, resolveDynamicComponent as Ce, withCtx as S, createVNode as B, createElementVNode as y, withModifiers as Me, readonly as Et, reactive as io, onBeforeMount as Bt, onBeforeUnmount as ht, useId as pe, toValue as Q, shallowRef as Ue, nextTick as Ve, useTemplateRef as J, createCommentVNode as k, createTextVNode as W, toDisplayString as T, normalizeProps as ze, mergeProps as E, Fragment as G, isProxy as xa, toRaw as ka, useAttrs as wa, customRef as Sa, onUnmounted as Lt, normalizeStyle as Te, useSlots as ce, createSlots as _e, isRef as Ee, renderList as de, toHandlers as $a, resolveComponent as Ca, withDirectives as xe, guardReactiveProps as Je, vShow as Yt, Teleport as st, vModelCheckbox as en, vModelText as co, h as le, vModelDynamic as tn, withKeys as Ao, createStaticVNode as Ea, useModel as Ba } from "vue";
|
|
2
2
|
import { iconChevronDownSmall as Oa, iconCircleAttention as uo, iconXSmall as De, iconX as po, iconMoreHorizontalSmall as on, iconCircleCheck as Aa, iconCircleX as nn, iconCircleInformation as Jt, iconUser as Ma, iconArrowSmallUpRight as Ta, iconChevronRightSmall as an, iconArrowSmallLeft as ln, iconHome as Ia, iconMoreHorizontal as Mo, iconSearch as La, iconCheck as Ra, iconSearchX as Va, iconChevronDownUp as Na, iconCheckSmall as bt, iconChevronLeftSmall as sn, iconPlusSmall as za, iconEyeDisabled as Da, iconListArrowUp as rn, iconListArrowDown as cn, 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 un, 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 }))
|
|
@@ -36,22 +36,22 @@ const bp = ["compact", "default", "cozy"], F = (n) => ({
|
|
|
36
36
|
emit: o,
|
|
37
37
|
key: "modelValue",
|
|
38
38
|
default: () => []
|
|
39
|
-
}), { disabled: r, exclusive: u } = ro(e), c = ne(e), { densityClass: d } = F(e), p = (
|
|
39
|
+
}), { disabled: r, exclusive: u } = ro(e), c = ne(e), { densityClass: d } = F(e), p = (v, b) => {
|
|
40
40
|
if (!b) {
|
|
41
|
-
if (!s.value.includes(
|
|
42
|
-
s.value = s.value.filter((h) => h !==
|
|
41
|
+
if (!s.value.includes(v)) return;
|
|
42
|
+
s.value = s.value.filter((h) => h !== v);
|
|
43
43
|
return;
|
|
44
44
|
}
|
|
45
45
|
if (u.value) {
|
|
46
|
-
s.value = [
|
|
46
|
+
s.value = [v];
|
|
47
47
|
return;
|
|
48
48
|
}
|
|
49
|
-
s.value.includes(
|
|
49
|
+
s.value.includes(v) || (s.value = s.value.concat(v));
|
|
50
50
|
};
|
|
51
51
|
return Y(
|
|
52
52
|
u,
|
|
53
|
-
(
|
|
54
|
-
if (
|
|
53
|
+
(v) => {
|
|
54
|
+
if (v && s.value.length > 1) {
|
|
55
55
|
const b = s.value.at(-1);
|
|
56
56
|
s.value = b != null ? [b] : [];
|
|
57
57
|
}
|
|
@@ -63,7 +63,7 @@ const bp = ["compact", "default", "cozy"], F = (n) => ({
|
|
|
63
63
|
updateOpen: p,
|
|
64
64
|
disabled: r,
|
|
65
65
|
skeleton: c
|
|
66
|
-
}), (
|
|
66
|
+
}), (v, b) => (i(), f(
|
|
67
67
|
"div",
|
|
68
68
|
{
|
|
69
69
|
class: I([
|
|
@@ -74,7 +74,7 @@ const bp = ["compact", "default", "cozy"], F = (n) => ({
|
|
|
74
74
|
])
|
|
75
75
|
},
|
|
76
76
|
[
|
|
77
|
-
C(
|
|
77
|
+
C(v.$slots, "default")
|
|
78
78
|
],
|
|
79
79
|
2
|
|
80
80
|
/* CLASS */
|
|
@@ -99,7 +99,7 @@ const gl = ["innerHTML"], z = /* @__PURE__ */ A({
|
|
|
99
99
|
},
|
|
100
100
|
setup(n) {
|
|
101
101
|
const t = n;
|
|
102
|
-
return (e, o) => (i(),
|
|
102
|
+
return (e, o) => (i(), f("figure", {
|
|
103
103
|
class: I({
|
|
104
104
|
"onyx-component": !0,
|
|
105
105
|
"onyx-icon": !0,
|
|
@@ -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 Oe(() => wl("onyx-skeleton")), (t, e) => (i(),
|
|
124
|
+
return Oe(() => 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",
|
|
@@ -134,16 +134,16 @@ const gl = ["innerHTML"], z = /* @__PURE__ */ A({
|
|
|
134
134
|
setup(n) {
|
|
135
135
|
const t = n, e = ve(mn, void 0), o = m({
|
|
136
136
|
get: () => e?.openItems.value.includes(t.value),
|
|
137
|
-
set: (
|
|
137
|
+
set: (v) => e?.updateOpen(t.value, v)
|
|
138
138
|
});
|
|
139
139
|
Y(
|
|
140
140
|
() => t.value,
|
|
141
|
-
(
|
|
142
|
-
e?.updateOpen(
|
|
141
|
+
(v, b) => {
|
|
142
|
+
e?.updateOpen(v, e?.openItems.value.includes(v)), e?.updateOpen(b, !1);
|
|
143
143
|
}
|
|
144
144
|
);
|
|
145
145
|
const a = ne(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
|
-
return (
|
|
146
|
+
return (v, b) => p.value ? (i(), _(Ce(u.value === "card" ? Z : "div"), {
|
|
147
147
|
key: 0,
|
|
148
148
|
class: I([
|
|
149
149
|
"onyx-component",
|
|
@@ -158,7 +158,7 @@ const gl = ["innerHTML"], z = /* @__PURE__ */ A({
|
|
|
158
158
|
]),
|
|
159
159
|
_: 1
|
|
160
160
|
/* STABLE */
|
|
161
|
-
}, 8, ["class"])) : (i(),
|
|
161
|
+
}, 8, ["class"])) : (i(), f("details", {
|
|
162
162
|
key: 1,
|
|
163
163
|
class: I([
|
|
164
164
|
"onyx-component",
|
|
@@ -179,7 +179,7 @@ const gl = ["innerHTML"], z = /* @__PURE__ */ A({
|
|
|
179
179
|
onClick: b[0] || (b[0] = Me((h) => o.value = !o.value, ["prevent"]))
|
|
180
180
|
}, [
|
|
181
181
|
y("div", El, [
|
|
182
|
-
C(
|
|
182
|
+
C(v.$slots, "header")
|
|
183
183
|
]),
|
|
184
184
|
B(z, {
|
|
185
185
|
icon: l(Oa),
|
|
@@ -192,7 +192,7 @@ const gl = ["innerHTML"], z = /* @__PURE__ */ A({
|
|
|
192
192
|
role: "region",
|
|
193
193
|
"aria-labelledby": c.value
|
|
194
194
|
}, [
|
|
195
|
-
C(
|
|
195
|
+
C(v.$slots, "default")
|
|
196
196
|
], 8, Bl)
|
|
197
197
|
], 10, $l));
|
|
198
198
|
}
|
|
@@ -449,7 +449,7 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
449
449
|
activeOption: c,
|
|
450
450
|
onToggle: d,
|
|
451
451
|
onSelect: p,
|
|
452
|
-
onActivateFirst:
|
|
452
|
+
onActivateFirst: v,
|
|
453
453
|
onActivateLast: b,
|
|
454
454
|
onActivateNext: h,
|
|
455
455
|
onActivatePrevious: g,
|
|
@@ -460,7 +460,7 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
460
460
|
w.value !== "none" && t?.(Se.value);
|
|
461
461
|
}, N = gn((R) => e?.(R)), K = (R) => {
|
|
462
462
|
p?.(R), l(O) || d?.();
|
|
463
|
-
},
|
|
463
|
+
}, U = (R) => {
|
|
464
464
|
switch (R.key) {
|
|
465
465
|
case "ArrowUp":
|
|
466
466
|
if (R.preventDefault(), c.value == null)
|
|
@@ -469,11 +469,11 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
469
469
|
break;
|
|
470
470
|
case "ArrowDown":
|
|
471
471
|
if (R.preventDefault(), c.value == null)
|
|
472
|
-
return
|
|
472
|
+
return v?.();
|
|
473
473
|
h?.(c.value);
|
|
474
474
|
break;
|
|
475
475
|
case "Home":
|
|
476
|
-
R.preventDefault(),
|
|
476
|
+
R.preventDefault(), v?.();
|
|
477
477
|
break;
|
|
478
478
|
case "End":
|
|
479
479
|
R.preventDefault(), b?.();
|
|
@@ -481,7 +481,7 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
481
481
|
}
|
|
482
482
|
}, X = (R) => {
|
|
483
483
|
if (R.key === "Enter" && R.preventDefault(), !M.value && eo(R, _n))
|
|
484
|
-
return d?.(), R.key === " " && R.preventDefault(), R.key === "End" ? b?.() :
|
|
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
487
|
if (M.value && eo(R, xn))
|
|
@@ -492,13 +492,13 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
492
492
|
!M.value && d?.();
|
|
493
493
|
return;
|
|
494
494
|
}
|
|
495
|
-
return
|
|
495
|
+
return U(R);
|
|
496
496
|
}, ue = m(() => w.value === "none" ? null : {
|
|
497
497
|
"aria-autocomplete": w.value,
|
|
498
498
|
type: "text"
|
|
499
499
|
}), {
|
|
500
500
|
elements: { option: P, group: D, listbox: te },
|
|
501
|
-
internals: { getOptionId:
|
|
501
|
+
internals: { getOptionId: H }
|
|
502
502
|
} = fs({
|
|
503
503
|
label: s,
|
|
504
504
|
description: r,
|
|
@@ -535,7 +535,7 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
535
535
|
"aria-expanded": M.value,
|
|
536
536
|
"aria-controls": x,
|
|
537
537
|
"aria-label": l(a),
|
|
538
|
-
"aria-activedescendant": c.value != null ?
|
|
538
|
+
"aria-activedescendant": c.value != null ? H(c.value) : void 0,
|
|
539
539
|
onInput: L,
|
|
540
540
|
onKeydown: X,
|
|
541
541
|
...ue.value
|
|
@@ -618,7 +618,7 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
618
618
|
b.preventDefault(), c(!1);
|
|
619
619
|
break;
|
|
620
620
|
}
|
|
621
|
-
},
|
|
621
|
+
}, v = m(() => {
|
|
622
622
|
if (Q(n.trigger) === "hover")
|
|
623
623
|
return {
|
|
624
624
|
onMouseenter: () => c(!0),
|
|
@@ -636,7 +636,7 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
636
636
|
id: t,
|
|
637
637
|
onKeydown: p,
|
|
638
638
|
ref: o,
|
|
639
|
-
...
|
|
639
|
+
...v.value
|
|
640
640
|
})),
|
|
641
641
|
button: m(
|
|
642
642
|
() => ({
|
|
@@ -725,17 +725,17 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
725
725
|
s.parentElement?.querySelectorAll('[role="tab"]') ?? []
|
|
726
726
|
).filter((b) => b.ariaDisabled !== "true"), u = r.indexOf(s), c = (b) => {
|
|
727
727
|
b instanceof HTMLElement && b.focus();
|
|
728
|
-
}, d = () => c(r.at(0)), p = () => c(r.at(-1)),
|
|
728
|
+
}, d = () => c(r.at(0)), p = () => c(r.at(-1)), v = (b) => {
|
|
729
729
|
if (u === -1) return;
|
|
730
730
|
const h = b === "next" ? u + 1 : u - 1;
|
|
731
731
|
return h < 0 ? p() : h >= r.length ? d() : c(r.at(h));
|
|
732
732
|
};
|
|
733
733
|
switch (a.key) {
|
|
734
734
|
case "ArrowRight":
|
|
735
|
-
|
|
735
|
+
v("next");
|
|
736
736
|
break;
|
|
737
737
|
case "ArrowLeft":
|
|
738
|
-
|
|
738
|
+
v("previous");
|
|
739
739
|
break;
|
|
740
740
|
case "Home":
|
|
741
741
|
d();
|
|
@@ -904,7 +904,7 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
904
904
|
// non-modal dialog needs custom support for this
|
|
905
905
|
disabled: m(() => !r.value || e.nonDismissible),
|
|
906
906
|
listener: (d) => vn(d, { key: "Escape" }) && o("update:open", !1)
|
|
907
|
-
}), (d, p) => e.open ? (i(),
|
|
907
|
+
}), (d, p) => e.open ? (i(), f("dialog", {
|
|
908
908
|
key: 0,
|
|
909
909
|
ref: "dialogRef",
|
|
910
910
|
class: I([
|
|
@@ -991,7 +991,7 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
991
991
|
},
|
|
992
992
|
setup(n) {
|
|
993
993
|
const t = n, { t: e } = q(), { navigate: o, isActive: a } = rt();
|
|
994
|
-
return (s, r) => (i(),
|
|
994
|
+
return (s, r) => (i(), f("a", {
|
|
995
995
|
class: I([
|
|
996
996
|
"onyx-component",
|
|
997
997
|
"onyx-router-link",
|
|
@@ -1026,8 +1026,8 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1026
1026
|
},
|
|
1027
1027
|
setup(n) {
|
|
1028
1028
|
const t = n, { t: e } = q(), o = ne(t), a = m(() => t.hash ? Cs(t.hash) : void 0), s = m(() => t.showAs ?? t.is), r = async (u) => {
|
|
1029
|
-
const { origin: c, pathname: d, search: p } = window.location,
|
|
1030
|
-
await navigator.clipboard.writeText(
|
|
1029
|
+
const { origin: c, pathname: d, search: p } = window.location, v = `${c}${d}${p}#${u}`;
|
|
1030
|
+
await navigator.clipboard.writeText(v);
|
|
1031
1031
|
};
|
|
1032
1032
|
return (u, c) => l(o) ? (i(), _(Z, {
|
|
1033
1033
|
key: 0,
|
|
@@ -1116,7 +1116,7 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1116
1116
|
},
|
|
1117
1117
|
16
|
|
1118
1118
|
/* FULL_PROPS */
|
|
1119
|
-
)) : (i(),
|
|
1119
|
+
)) : (i(), f("button", {
|
|
1120
1120
|
key: 1,
|
|
1121
1121
|
ref: "buttonRef",
|
|
1122
1122
|
disabled: l(o) || t.loading,
|
|
@@ -1152,7 +1152,7 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1152
1152
|
t.icon ? (i(), _(z, {
|
|
1153
1153
|
key: 0,
|
|
1154
1154
|
icon: t.icon
|
|
1155
|
-
}, null, 8, ["icon"])) : (i(),
|
|
1155
|
+
}, null, 8, ["icon"])) : (i(), f(
|
|
1156
1156
|
G,
|
|
1157
1157
|
{ key: 1 },
|
|
1158
1158
|
[
|
|
@@ -1319,7 +1319,7 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1319
1319
|
key: 0,
|
|
1320
1320
|
icon: t.icon
|
|
1321
1321
|
}, null, 8, ["icon"])) : k("v-if", !0),
|
|
1322
|
-
t.hideLabel ? k("v-if", !0) : (i(),
|
|
1322
|
+
t.hideLabel ? k("v-if", !0) : (i(), f(
|
|
1323
1323
|
"span",
|
|
1324
1324
|
Ds,
|
|
1325
1325
|
T(t.label),
|
|
@@ -1431,14 +1431,14 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1431
1431
|
}), Lt(() => {
|
|
1432
1432
|
window.removeEventListener("scroll", p, !0);
|
|
1433
1433
|
});
|
|
1434
|
-
const
|
|
1434
|
+
const v = V(!0);
|
|
1435
1435
|
return Bt(() => {
|
|
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,
|
|
1439
1439
|
topPosition: c,
|
|
1440
1440
|
updateAnchorPositionPolyfill: p,
|
|
1441
|
-
useragentSupportsAnchorApi:
|
|
1441
|
+
useragentSupportsAnchorApi: v
|
|
1442
1442
|
};
|
|
1443
1443
|
}, An = (n, t, e = "center") => {
|
|
1444
1444
|
const a = V(e);
|
|
@@ -1462,8 +1462,8 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1462
1462
|
a.value = e;
|
|
1463
1463
|
return;
|
|
1464
1464
|
}
|
|
1465
|
-
const p = (d.width - c.width + 32) / 2,
|
|
1466
|
-
e === "right" && h >=
|
|
1465
|
+
const p = (d.width - c.width + 32) / 2, v = d.width - c.width + 16, b = window.innerWidth, h = c.left, g = b - c.right, $ = h >= p, x = g >= p;
|
|
1466
|
+
e === "right" && h >= v || e === "left" && g >= v || e === "center" && $ && x ? a.value = e : h > g ? a.value = "right" : a.value = "left";
|
|
1467
1467
|
}
|
|
1468
1468
|
};
|
|
1469
1469
|
}, fo = (n, t = "bottom") => {
|
|
@@ -1526,12 +1526,12 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1526
1526
|
return u.value + " span-left";
|
|
1527
1527
|
}
|
|
1528
1528
|
return u.value;
|
|
1529
|
-
}),
|
|
1529
|
+
}), v = J("popover"), b = J("popoverWrapper"), { openDirection: h, updateOpenDirection: g } = fo(b, "bottom"), { openAlignment: $, updateOpenAlignment: x } = An(
|
|
1530
1530
|
b,
|
|
1531
|
-
|
|
1531
|
+
v,
|
|
1532
1532
|
"left"
|
|
1533
1533
|
), { leftPosition: w, topPosition: M, updateAnchorPositionPolyfill: O, useragentSupportsAnchorApi: L } = On({
|
|
1534
|
-
positionedRef:
|
|
1534
|
+
positionedRef: v,
|
|
1535
1535
|
targetRef: b,
|
|
1536
1536
|
positionArea: u,
|
|
1537
1537
|
alignment: c,
|
|
@@ -1539,24 +1539,24 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1539
1539
|
fitParent: !1,
|
|
1540
1540
|
offset: 8
|
|
1541
1541
|
}), { width: N } = He(b), K = (R) => {
|
|
1542
|
-
R ?
|
|
1543
|
-
},
|
|
1542
|
+
R ? v.value?.showPopover?.() : v.value?.hidePopover?.();
|
|
1543
|
+
}, U = () => {
|
|
1544
1544
|
g(), x();
|
|
1545
1545
|
};
|
|
1546
1546
|
Ye({
|
|
1547
1547
|
type: "resize",
|
|
1548
|
-
listener: () =>
|
|
1548
|
+
listener: () => U()
|
|
1549
1549
|
}), Oe(() => {
|
|
1550
|
-
K(r.value),
|
|
1550
|
+
K(r.value), U(), L.value || O();
|
|
1551
1551
|
}), Y(r, async (R) => {
|
|
1552
|
-
await Ve(), K(R),
|
|
1552
|
+
await Ve(), K(R), U(), L.value || O();
|
|
1553
1553
|
});
|
|
1554
1554
|
const X = () => {
|
|
1555
1555
|
s.value = !s.value, a("update:open", !r.value);
|
|
1556
1556
|
}, ue = m(() => ({
|
|
1557
1557
|
onClick: X,
|
|
1558
1558
|
"aria-expanded": r.value,
|
|
1559
|
-
"aria-controls":
|
|
1559
|
+
"aria-controls": v.value?.id,
|
|
1560
1560
|
"aria-haspopup": !0,
|
|
1561
1561
|
disabled: d.value
|
|
1562
1562
|
})), P = pe(), D = m(() => `--anchor-${P}`), te = m(() => ({
|
|
@@ -1569,9 +1569,9 @@ 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 Ve(),
|
|
1572
|
+
L.value || (await Ve(), U(), O());
|
|
1573
1573
|
});
|
|
1574
|
-
const
|
|
1574
|
+
const H = m(() => {
|
|
1575
1575
|
const R = o.fitParent ? `${N.value}px` : void 0;
|
|
1576
1576
|
return L.value ? {
|
|
1577
1577
|
width: R,
|
|
@@ -1583,7 +1583,7 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1583
1583
|
top: M.value
|
|
1584
1584
|
};
|
|
1585
1585
|
});
|
|
1586
|
-
return (R, Se) => (i(),
|
|
1586
|
+
return (R, Se) => (i(), f(
|
|
1587
1587
|
"div",
|
|
1588
1588
|
{
|
|
1589
1589
|
ref: "popoverWrapper",
|
|
@@ -1598,7 +1598,7 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1598
1598
|
"aria-label": o.label,
|
|
1599
1599
|
popover: "manual",
|
|
1600
1600
|
class: I(["onyx-basic-popover__dialog", te.value]),
|
|
1601
|
-
style: Te(
|
|
1601
|
+
style: Te(H.value)
|
|
1602
1602
|
}, [
|
|
1603
1603
|
C(R.$slots, "content")
|
|
1604
1604
|
], 14, Ps)
|
|
@@ -1632,28 +1632,28 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1632
1632
|
disabled: m(() => e.disabled),
|
|
1633
1633
|
position: m(() => u.value?.includes("top") ? "top" : "bottom")
|
|
1634
1634
|
});
|
|
1635
|
-
return (
|
|
1635
|
+
return (v, b) => (i(), _(vo, E(l(fe)(l(c), { ref: r.value }), {
|
|
1636
1636
|
class: "onyx-component onyx-flyout-menu",
|
|
1637
1637
|
open: l(a),
|
|
1638
1638
|
label: e.label,
|
|
1639
1639
|
alignment: e.alignment,
|
|
1640
|
-
disabled:
|
|
1640
|
+
disabled: n.disabled
|
|
1641
1641
|
}), _e({
|
|
1642
1642
|
content: S(() => [
|
|
1643
1643
|
y("div", Us, [
|
|
1644
|
-
C(
|
|
1644
|
+
C(v.$slots, "header")
|
|
1645
1645
|
]),
|
|
1646
|
-
s.options ? (i(),
|
|
1646
|
+
s.options ? (i(), f(
|
|
1647
1647
|
"ul",
|
|
1648
1648
|
E({ key: 0 }, l(p), { class: "onyx-flyout-menu__wrapper onyx-flyout-menu__group" }),
|
|
1649
1649
|
[
|
|
1650
|
-
C(
|
|
1650
|
+
C(v.$slots, "options")
|
|
1651
1651
|
],
|
|
1652
1652
|
16
|
|
1653
1653
|
/* FULL_PROPS */
|
|
1654
1654
|
)) : k("v-if", !0),
|
|
1655
1655
|
y("div", Hs, [
|
|
1656
|
-
C(
|
|
1656
|
+
C(v.$slots, "footer")
|
|
1657
1657
|
])
|
|
1658
1658
|
]),
|
|
1659
1659
|
_: 2
|
|
@@ -1662,7 +1662,7 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1662
1662
|
s.options || s.header || s.footer ? {
|
|
1663
1663
|
name: "default",
|
|
1664
1664
|
fn: S(() => [
|
|
1665
|
-
C(
|
|
1665
|
+
C(v.$slots, "button", { trigger: l(d) })
|
|
1666
1666
|
]),
|
|
1667
1667
|
key: "0"
|
|
1668
1668
|
} : void 0
|
|
@@ -1688,7 +1688,7 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1688
1688
|
key: "open",
|
|
1689
1689
|
default: !1
|
|
1690
1690
|
}), c = m(() => !!a.default), d = m(() => c.value ? u.value ? po : on : e.icon);
|
|
1691
|
-
return (p,
|
|
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, {
|
|
@@ -1697,7 +1697,7 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1697
1697
|
}), null, 16, ["class", "icon", "skeleton"])) : (i(), _(je, {
|
|
1698
1698
|
key: 1,
|
|
1699
1699
|
open: l(u),
|
|
1700
|
-
"onUpdate:open":
|
|
1700
|
+
"onUpdate:open": v[0] || (v[0] = (b) => Ee(u) ? u.value = b : null),
|
|
1701
1701
|
label: e.label,
|
|
1702
1702
|
trigger: "click",
|
|
1703
1703
|
class: I(["onyx-fab", `onyx-fab--${e.alignment}`, l(s)]),
|
|
@@ -1730,7 +1730,7 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1730
1730
|
const t = n, { densityClass: e } = F(t), {
|
|
1731
1731
|
elements: { listItem: o, menuItem: a }
|
|
1732
1732
|
} = yo();
|
|
1733
|
-
return (s, r) => (i(),
|
|
1733
|
+
return (s, r) => (i(), f(
|
|
1734
1734
|
"li",
|
|
1735
1735
|
E({
|
|
1736
1736
|
class: ["onyx-component", "onyx-fab-item", l(e)]
|
|
@@ -1787,7 +1787,7 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1787
1787
|
alignment: o.value
|
|
1788
1788
|
}, {
|
|
1789
1789
|
default: S(() => [
|
|
1790
|
-
(i(!0),
|
|
1790
|
+
(i(!0), f(
|
|
1791
1791
|
G,
|
|
1792
1792
|
null,
|
|
1793
1793
|
de(l(t).items.value, (r) => (i(), _(
|
|
@@ -1817,7 +1817,7 @@ const ds = (n, t) => Object.entries(n).every(
|
|
|
1817
1817
|
viewBox: "0 0 50 50"
|
|
1818
1818
|
};
|
|
1819
1819
|
function Ys(n, t) {
|
|
1820
|
-
return i(),
|
|
1820
|
+
return i(), f("svg", Ws, [...t[0] || (t[0] = [
|
|
1821
1821
|
y(
|
|
1822
1822
|
"circle",
|
|
1823
1823
|
{
|
|
@@ -1834,7 +1834,7 @@ function Ys(n, t) {
|
|
|
1834
1834
|
}
|
|
1835
1835
|
const Js = /* @__PURE__ */ Vt(js, [["render", Ys]]), Zs = {}, Xs = { class: "onyx-component onyx-loading-dots" };
|
|
1836
1836
|
function Qs(n, t) {
|
|
1837
|
-
return i(),
|
|
1837
|
+
return i(), f("div", Xs, [...t[0] || (t[0] = [
|
|
1838
1838
|
y(
|
|
1839
1839
|
"span",
|
|
1840
1840
|
{ class: "onyx-loading-dots__center" },
|
|
@@ -1894,14 +1894,14 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
1894
1894
|
const e = J("rippleTriggerRef"), { ripples: o, hideRipple: a, events: s } = er(e);
|
|
1895
1895
|
return t({
|
|
1896
1896
|
events: s
|
|
1897
|
-
}), (r, u) => (i(),
|
|
1897
|
+
}), (r, u) => (i(), f(
|
|
1898
1898
|
"span",
|
|
1899
1899
|
tr,
|
|
1900
1900
|
[
|
|
1901
|
-
(i(!0),
|
|
1901
|
+
(i(!0), f(
|
|
1902
1902
|
G,
|
|
1903
1903
|
null,
|
|
1904
|
-
de(l(o), ([c, d]) => (i(),
|
|
1904
|
+
de(l(o), ([c, d]) => (i(), f("span", {
|
|
1905
1905
|
key: c,
|
|
1906
1906
|
class: "onyx-ripple__element",
|
|
1907
1907
|
style: Te({
|
|
@@ -2006,7 +2006,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2006
2006
|
emits: ["close"],
|
|
2007
2007
|
setup(n, { emit: t }) {
|
|
2008
2008
|
const e = n, o = t, a = ce(), { t: s } = q(), { densityClass: r } = F(e);
|
|
2009
|
-
return (u, c) => (i(),
|
|
2009
|
+
return (u, c) => (i(), f(
|
|
2010
2010
|
"div",
|
|
2011
2011
|
{
|
|
2012
2012
|
class: I(["onyx-component", "onyx-info-card", `onyx-info-card--${e.color}`, l(r)])
|
|
@@ -2041,10 +2041,10 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2041
2041
|
color: e.color === "neutral" ? "soft" : "medium",
|
|
2042
2042
|
onClick: c[0] || (c[0] = (d) => o("close"))
|
|
2043
2043
|
}, null, 8, ["icon", "label", "color"])) : k("v-if", !0),
|
|
2044
|
-
a.default ? (i(),
|
|
2044
|
+
a.default ? (i(), f("p", sr, [
|
|
2045
2045
|
C(u.$slots, "default")
|
|
2046
2046
|
])) : k("v-if", !0),
|
|
2047
|
-
a.buttons ? (i(),
|
|
2047
|
+
a.buttons ? (i(), f("div", rr, [
|
|
2048
2048
|
C(u.$slots, "buttons")
|
|
2049
2049
|
])) : k("v-if", !0)
|
|
2050
2050
|
])
|
|
@@ -2137,8 +2137,8 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2137
2137
|
__name: "OnyxNotifications",
|
|
2138
2138
|
setup(n) {
|
|
2139
2139
|
const t = dr();
|
|
2140
|
-
return (e, o) => l(t).notifications.value.length ? (i(),
|
|
2141
|
-
(i(!0),
|
|
2140
|
+
return (e, o) => l(t).notifications.value.length ? (i(), f("dialog", pr, [
|
|
2141
|
+
(i(!0), f(
|
|
2142
2142
|
G,
|
|
2143
2143
|
null,
|
|
2144
2144
|
de(l(t).notifications.value, ({ id: a, ...s }) => (i(), _(
|
|
@@ -2158,7 +2158,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2158
2158
|
s.buttons?.length ? {
|
|
2159
2159
|
name: "buttons",
|
|
2160
2160
|
fn: S(() => [
|
|
2161
|
-
(i(!0),
|
|
2161
|
+
(i(!0), f(
|
|
2162
2162
|
G,
|
|
2163
2163
|
null,
|
|
2164
2164
|
de(s.buttons, (r) => (i(), _(
|
|
@@ -2231,17 +2231,17 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2231
2231
|
1
|
|
2232
2232
|
/* TEXT */
|
|
2233
2233
|
),
|
|
2234
|
-
e.clickable ? k("v-if", !0) : (i(),
|
|
2234
|
+
e.clickable ? k("v-if", !0) : (i(), f("button", {
|
|
2235
2235
|
key: 0,
|
|
2236
2236
|
type: "button",
|
|
2237
2237
|
"aria-label": l(a)("close"),
|
|
2238
2238
|
class: "onyx-toast-message__close",
|
|
2239
|
-
onClick: p[0] || (p[0] = (
|
|
2239
|
+
onClick: p[0] || (p[0] = (v) => o("close"))
|
|
2240
2240
|
}, [
|
|
2241
2241
|
B(z, { icon: l(De) }, null, 8, ["icon"])
|
|
2242
2242
|
], 8, br))
|
|
2243
2243
|
]),
|
|
2244
|
-
e.description ? (i(),
|
|
2244
|
+
e.description ? (i(), f(
|
|
2245
2245
|
"p",
|
|
2246
2246
|
gr,
|
|
2247
2247
|
T(e.description),
|
|
@@ -2250,14 +2250,14 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2250
2250
|
)) : k("v-if", !0)
|
|
2251
2251
|
])
|
|
2252
2252
|
]),
|
|
2253
|
-
r.value ? (i(),
|
|
2253
|
+
r.value ? (i(), f(
|
|
2254
2254
|
"time",
|
|
2255
2255
|
{
|
|
2256
2256
|
key: e.duration,
|
|
2257
2257
|
"aria-hidden": "true",
|
|
2258
2258
|
class: "onyx-toast-message__progress-bar",
|
|
2259
2259
|
style: Te({ animationDuration: `${e.duration}ms` }),
|
|
2260
|
-
onAnimationend: p[1] || (p[1] = (
|
|
2260
|
+
onAnimationend: p[1] || (p[1] = (v) => o("close"))
|
|
2261
2261
|
},
|
|
2262
2262
|
null,
|
|
2263
2263
|
36
|
|
@@ -2309,8 +2309,8 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2309
2309
|
__name: "OnyxToast",
|
|
2310
2310
|
setup(n) {
|
|
2311
2311
|
const t = xr();
|
|
2312
|
-
return (e, o) => l(t).toasts.value.length ? (i(),
|
|
2313
|
-
(i(!0),
|
|
2312
|
+
return (e, o) => l(t).toasts.value.length ? (i(), f("dialog", kr, [
|
|
2313
|
+
(i(!0), f(
|
|
2314
2314
|
G,
|
|
2315
2315
|
null,
|
|
2316
2316
|
de(l(t).toasts.value, ({ id: a, ...s }) => (i(), _(
|
|
@@ -2335,13 +2335,13 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2335
2335
|
},
|
|
2336
2336
|
setup(n) {
|
|
2337
2337
|
const t = n, e = ce();
|
|
2338
|
-
return (o, a) => (i(),
|
|
2338
|
+
return (o, a) => (i(), f(
|
|
2339
2339
|
"div",
|
|
2340
2340
|
{
|
|
2341
2341
|
class: I(["onyx-component onyx-app", { "onyx-app--horizontal": t.navBarAlignment === "left" }])
|
|
2342
2342
|
},
|
|
2343
2343
|
[
|
|
2344
|
-
e.navBar ? (i(),
|
|
2344
|
+
e.navBar ? (i(), f("div", Sr, [
|
|
2345
2345
|
C(o.$slots, "navBar")
|
|
2346
2346
|
])) : k("v-if", !0),
|
|
2347
2347
|
y("div", $r, [
|
|
@@ -2372,7 +2372,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2372
2372
|
// reset image error if image changes
|
|
2373
2373
|
() => t.src,
|
|
2374
2374
|
() => u.value = !1
|
|
2375
|
-
), (c, d) => (i(),
|
|
2375
|
+
), (c, d) => (i(), f("figure", {
|
|
2376
2376
|
class: I([
|
|
2377
2377
|
"onyx-component",
|
|
2378
2378
|
"onyx-avatar",
|
|
@@ -2382,17 +2382,17 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2382
2382
|
title: r.value,
|
|
2383
2383
|
"aria-label": r.value
|
|
2384
2384
|
}, [
|
|
2385
|
-
t.src && !u.value ? (i(),
|
|
2385
|
+
t.src && !u.value ? (i(), f("img", {
|
|
2386
2386
|
key: 0,
|
|
2387
2387
|
class: "onyx-avatar__image",
|
|
2388
2388
|
src: t.src,
|
|
2389
2389
|
alt: r.value,
|
|
2390
2390
|
onError: d[0] || (d[0] = (p) => u.value = !0)
|
|
2391
|
-
}, null, 40, Er)) : (i(),
|
|
2391
|
+
}, null, 40, Er)) : (i(), f(
|
|
2392
2392
|
G,
|
|
2393
2393
|
{ key: 1 },
|
|
2394
2394
|
[
|
|
2395
|
-
s.value ? (i(),
|
|
2395
|
+
s.value ? (i(), f(
|
|
2396
2396
|
"div",
|
|
2397
2397
|
Br,
|
|
2398
2398
|
T(s.value),
|
|
@@ -2412,7 +2412,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2412
2412
|
}), Or = { class: "onyx-component onyx-avatar-stack" }, Ar = /* @__PURE__ */ A({
|
|
2413
2413
|
__name: "OnyxAvatarStack",
|
|
2414
2414
|
setup(n) {
|
|
2415
|
-
return (t, e) => (i(),
|
|
2415
|
+
return (t, e) => (i(), f("div", Or, [
|
|
2416
2416
|
C(t.$slots, "default")
|
|
2417
2417
|
]));
|
|
2418
2418
|
}
|
|
@@ -2426,7 +2426,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2426
2426
|
},
|
|
2427
2427
|
setup(n) {
|
|
2428
2428
|
const t = n, { densityClass: e } = F(t);
|
|
2429
|
-
return (o, a) => (i(),
|
|
2429
|
+
return (o, a) => (i(), f(
|
|
2430
2430
|
"div",
|
|
2431
2431
|
{
|
|
2432
2432
|
class: I(["onyx-component onyx-badge", [
|
|
@@ -2438,7 +2438,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2438
2438
|
]])
|
|
2439
2439
|
},
|
|
2440
2440
|
[
|
|
2441
|
-
t.dot ? k("v-if", !0) : (i(),
|
|
2441
|
+
t.dot ? k("v-if", !0) : (i(), f(
|
|
2442
2442
|
G,
|
|
2443
2443
|
{ key: 0 },
|
|
2444
2444
|
[
|
|
@@ -2464,7 +2464,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2464
2464
|
},
|
|
2465
2465
|
setup(n) {
|
|
2466
2466
|
const t = n, { densityClass: e } = F(t);
|
|
2467
|
-
return (o, a) => (i(),
|
|
2467
|
+
return (o, a) => (i(), f(
|
|
2468
2468
|
"div",
|
|
2469
2469
|
{
|
|
2470
2470
|
class: I([
|
|
@@ -2499,8 +2499,8 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2499
2499
|
const u = Do(n.parentRef.value), c = Do(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
|
-
Q(n.direction) === "ltr" && d.reverse(), d.forEach(([p,
|
|
2503
|
-
r -=
|
|
2502
|
+
Q(n.direction) === "ltr" && d.reverse(), d.forEach(([p, v], b, { length: h }) => {
|
|
2503
|
+
r -= v + (b > 0 ? c : 0), r >= 0 || // check if last element fits if more indicator would be hidden
|
|
2504
2504
|
b === h - 1 && r + a.value >= 0 ? t.value.push(p) : e.value.push(p);
|
|
2505
2505
|
});
|
|
2506
2506
|
},
|
|
@@ -2583,7 +2583,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2583
2583
|
},
|
|
2584
2584
|
setup(n) {
|
|
2585
2585
|
const t = n, { densityClass: e } = F(t);
|
|
2586
|
-
return (o, a) => (i(),
|
|
2586
|
+
return (o, a) => (i(), f(
|
|
2587
2587
|
"li",
|
|
2588
2588
|
{
|
|
2589
2589
|
class: I({
|
|
@@ -2630,7 +2630,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2630
2630
|
key: "open",
|
|
2631
2631
|
default: !1
|
|
2632
2632
|
}), d = J("backButtonRef"), p = J("menuItemRef"), {
|
|
2633
|
-
elements: { listItem:
|
|
2633
|
+
elements: { listItem: v, menuItem: b }
|
|
2634
2634
|
} = yo({
|
|
2635
2635
|
onOpen: async () => {
|
|
2636
2636
|
x.value && (c.value = !0, await Ve(), d.value?.$el.querySelector("button").focus());
|
|
@@ -2661,7 +2661,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2661
2661
|
color: s.color,
|
|
2662
2662
|
disabled: s.disabled,
|
|
2663
2663
|
class: ["onyx-menu-item", { "onyx-menu-item--open": l(c) }]
|
|
2664
|
-
}, l(fe)(l(
|
|
2664
|
+
}, l(fe)(l(v), l(o))), {
|
|
2665
2665
|
default: S(() => [
|
|
2666
2666
|
xe(B(ct, E({
|
|
2667
2667
|
ref: "menuItemRef",
|
|
@@ -2688,7 +2688,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2688
2688
|
)
|
|
2689
2689
|
])
|
|
2690
2690
|
]),
|
|
2691
|
-
x.value ? (i(),
|
|
2691
|
+
x.value ? (i(), f("div", Nr, [
|
|
2692
2692
|
B(z, {
|
|
2693
2693
|
icon: l(an),
|
|
2694
2694
|
size: "24px"
|
|
@@ -2700,7 +2700,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2700
2700
|
}, 16, ["disabled", "link"]), [
|
|
2701
2701
|
[Yt, !l(c)]
|
|
2702
2702
|
]),
|
|
2703
|
-
x.value ? xe((i(),
|
|
2703
|
+
x.value ? xe((i(), f(
|
|
2704
2704
|
"ul",
|
|
2705
2705
|
zr,
|
|
2706
2706
|
[
|
|
@@ -2751,11 +2751,11 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2751
2751
|
},
|
|
2752
2752
|
setup(n) {
|
|
2753
2753
|
const t = n, { restAttrs: e, rootAttrs: o } = ge(), { densityClass: a } = F(t), { currentRoute: s } = rt(), r = ne(t), { componentRef: u, isVisible: c } = Nn(zn), d = ve(Dn, void 0), p = m(() => t.href && t.active === "auto" ? t.href === s.value?.path : t.active);
|
|
2754
|
-
return (
|
|
2754
|
+
return (v, b) => (i(), f(
|
|
2755
2755
|
G,
|
|
2756
2756
|
null,
|
|
2757
2757
|
[
|
|
2758
|
-
l(c) || p.value ? (i(),
|
|
2758
|
+
l(c) || p.value ? (i(), f(
|
|
2759
2759
|
"li",
|
|
2760
2760
|
E({
|
|
2761
2761
|
key: 0,
|
|
@@ -2781,7 +2781,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2781
2781
|
"aria-current": p.value ? "page" : void 0
|
|
2782
2782
|
}, l(e)), {
|
|
2783
2783
|
default: S(() => [
|
|
2784
|
-
C(
|
|
2784
|
+
C(v.$slots, "default")
|
|
2785
2785
|
]),
|
|
2786
2786
|
_: 3
|
|
2787
2787
|
/* FORWARDED */
|
|
@@ -2800,7 +2800,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2800
2800
|
active: p.value
|
|
2801
2801
|
}, l(e)), {
|
|
2802
2802
|
default: S(() => [
|
|
2803
|
-
C(
|
|
2803
|
+
C(v.$slots, "default")
|
|
2804
2804
|
]),
|
|
2805
2805
|
_: 3
|
|
2806
2806
|
/* FORWARDED */
|
|
@@ -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 Rt(t), Re(Dn, J("moreListRef")), (a, s) => (i(),
|
|
2886
|
+
return Rt(t), Re(Dn, J("moreListRef")), (a, s) => (i(), f("nav", {
|
|
2887
2887
|
class: I([
|
|
2888
2888
|
"onyx-component",
|
|
2889
2889
|
"onyx-breadcrumb",
|
|
@@ -2898,10 +2898,10 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
2898
2898
|
class: "onyx-breadcrumb__home",
|
|
2899
2899
|
href: t.home?.link ?? "/",
|
|
2900
2900
|
"aria-label": t.home?.label ?? l(e)("breadcrumb.home"),
|
|
2901
|
-
skeleton:
|
|
2901
|
+
skeleton: n.skeleton
|
|
2902
2902
|
}, {
|
|
2903
2903
|
default: S(() => [
|
|
2904
|
-
t.home?.label ? (i(),
|
|
2904
|
+
t.home?.label ? (i(), f(
|
|
2905
2905
|
G,
|
|
2906
2906
|
{ key: 1 },
|
|
2907
2907
|
[
|
|
@@ -3104,10 +3104,10 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3104
3104
|
step: n.props.validStepSize
|
|
3105
3105
|
};
|
|
3106
3106
|
if (u === "typeMismatch") {
|
|
3107
|
-
const
|
|
3107
|
+
const v = jr.includes(n.props.type) ? n.props.type : "generic";
|
|
3108
3108
|
return {
|
|
3109
|
-
longMessage: t.value(`validations.typeMismatch.${
|
|
3110
|
-
shortMessage: t.value(`validations.typeMismatch.${
|
|
3109
|
+
longMessage: t.value(`validations.typeMismatch.${v}.fullError`, p),
|
|
3110
|
+
shortMessage: t.value(`validations.typeMismatch.${v}.preview`, p)
|
|
3111
3111
|
};
|
|
3112
3112
|
}
|
|
3113
3113
|
return {
|
|
@@ -3168,26 +3168,26 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3168
3168
|
isVisible: r
|
|
3169
3169
|
})), d = m(() => typeof e.trigger == "object" ? e.trigger.type : e.trigger), p = m(
|
|
3170
3170
|
() => e.position === "auto" ? N.value : e.position
|
|
3171
|
-
),
|
|
3172
|
-
() => e.alignment === "auto" ?
|
|
3171
|
+
), v = m(
|
|
3172
|
+
() => e.alignment === "auto" ? U.value : e.alignment
|
|
3173
3173
|
), b = m(() => {
|
|
3174
3174
|
let ke = p.value;
|
|
3175
|
-
return (p.value === "top" || p.value === "bottom") && w.value && (
|
|
3175
|
+
return (p.value === "top" || p.value === "bottom") && w.value && (v.value === "left" && (ke = p.value + " x-start"), v.value === "right" && (ke = p.value + " x-end")), ke;
|
|
3176
3176
|
}), h = () => d.value === "hover" ? ws(u.value) : ks(c.value), g = Ue(h());
|
|
3177
3177
|
Y(d, () => g.value = h());
|
|
3178
|
-
const $ = m(() => g.value?.elements.tooltip), x = m(() => Q(g.value?.elements.trigger)), w = m(() => e.alignsWithEdge), M = m(() => e.fitParent), O = J("tooltipWrapperRefEl"), L = J("tooltipRefEl"), { openDirection: N, updateOpenDirection: K } = fo(O, "top"), { openAlignment:
|
|
3178
|
+
const $ = m(() => g.value?.elements.tooltip), x = m(() => Q(g.value?.elements.trigger)), w = m(() => e.alignsWithEdge), M = m(() => e.fitParent), O = J("tooltipWrapperRefEl"), L = J("tooltipRefEl"), { openDirection: N, updateOpenDirection: K } = fo(O, "top"), { openAlignment: U, updateOpenAlignment: X } = An(O, L), { leftPosition: ue, topPosition: P, updateAnchorPositionPolyfill: D, useragentSupportsAnchorApi: te } = On({
|
|
3179
3179
|
positionedRef: L,
|
|
3180
3180
|
targetRef: O,
|
|
3181
3181
|
positionArea: p,
|
|
3182
|
-
alignment:
|
|
3182
|
+
alignment: v,
|
|
3183
3183
|
alignsWithEdge: w,
|
|
3184
3184
|
fitParent: M
|
|
3185
|
-
}),
|
|
3185
|
+
}), H = () => {
|
|
3186
3186
|
K(), X();
|
|
3187
3187
|
};
|
|
3188
3188
|
Ye({
|
|
3189
3189
|
type: "resize",
|
|
3190
|
-
listener: () =>
|
|
3190
|
+
listener: () => H()
|
|
3191
3191
|
});
|
|
3192
3192
|
const R = (ke) => {
|
|
3193
3193
|
ke ? L.value?.showPopover?.() : L.value?.hidePopover?.();
|
|
@@ -3198,17 +3198,17 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3198
3198
|
"onyx-tooltip--aligns-with-edge": w.value,
|
|
3199
3199
|
"onyx-tooltip--hidden": !r.value,
|
|
3200
3200
|
[`onyx-tooltip--position-${p.value.replace(" ", "-")}`]: !0,
|
|
3201
|
-
[`onyx-tooltip--alignment-${
|
|
3201
|
+
[`onyx-tooltip--alignment-${v.value}`]: !0,
|
|
3202
3202
|
"onyx-tooltip--dont-support-anchor": !te.value,
|
|
3203
3203
|
"onyx-tooltip--without-wedge": e.withoutWedge
|
|
3204
3204
|
})), { width: he } = He(O), Qe = m(
|
|
3205
3205
|
() => e.fitParent && O.value ? `${he.value}px` : "max-content"
|
|
3206
3206
|
);
|
|
3207
3207
|
Oe(() => {
|
|
3208
|
-
R(r.value),
|
|
3208
|
+
R(r.value), H(), te.value || D();
|
|
3209
3209
|
}), Y(r, async (ke) => {
|
|
3210
|
-
await Ve(), R(ke),
|
|
3211
|
-
}), Y([Qe, p,
|
|
3210
|
+
await Ve(), R(ke), H(), te.value || D();
|
|
3211
|
+
}), Y([Qe, p, v, w], async () => {
|
|
3212
3212
|
te.value || (await Ve(), D());
|
|
3213
3213
|
});
|
|
3214
3214
|
const et = pe(), me = m(() => `--anchor-${et}`), kt = m(() => te.value ? {
|
|
@@ -3220,7 +3220,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3220
3220
|
left: ue.value,
|
|
3221
3221
|
top: P.value
|
|
3222
3222
|
});
|
|
3223
|
-
return (ke, Eo) => (i(),
|
|
3223
|
+
return (ke, Eo) => (i(), f(
|
|
3224
3224
|
"div",
|
|
3225
3225
|
{
|
|
3226
3226
|
ref: "tooltipWrapperRefEl",
|
|
@@ -3270,8 +3270,8 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3270
3270
|
},
|
|
3271
3271
|
setup(n) {
|
|
3272
3272
|
const t = n, e = m(() => Gn(t.errorMessages)), o = J("targetRef");
|
|
3273
|
-
return (a, s) => (i(),
|
|
3274
|
-
!e.value || t.disabled ? (i(),
|
|
3273
|
+
return (a, s) => (i(), f("div", Yr, [
|
|
3274
|
+
!e.value || t.disabled ? (i(), f(
|
|
3275
3275
|
"div",
|
|
3276
3276
|
Jr,
|
|
3277
3277
|
null,
|
|
@@ -3333,8 +3333,8 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3333
3333
|
emit: a,
|
|
3334
3334
|
key: "modelValue",
|
|
3335
3335
|
default: !1
|
|
3336
|
-
}), { vCustomValidity: c, errorMessages: d } = Pe({ props: o, emit: a }), { densityClass: p } = F(o), { disabled:
|
|
3337
|
-
return t({ input: w }), Ae(w, o), (M, O) => l(h) ? (i(),
|
|
3336
|
+
}), { vCustomValidity: c, errorMessages: d } = Pe({ props: o, emit: a }), { densityClass: p } = F(o), { disabled: v, requiredMarker: b } = be(o), h = ne(o), { requiredMarkerClass: g, requiredTypeClass: $ } = zt(o, b), x = m(() => o.hideLabel ? o.label : void 0), w = J("inputRef");
|
|
3337
|
+
return t({ input: w }), Ae(w, o), (M, O) => l(h) ? (i(), f(
|
|
3338
3338
|
"div",
|
|
3339
3339
|
E({
|
|
3340
3340
|
key: 0,
|
|
@@ -3351,7 +3351,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3351
3351
|
/* FULL_PROPS */
|
|
3352
3352
|
)) : (i(), _(bo, E({
|
|
3353
3353
|
key: 1,
|
|
3354
|
-
disabled: l(
|
|
3354
|
+
disabled: l(v),
|
|
3355
3355
|
"error-messages": l(d)
|
|
3356
3356
|
}, l(s)), {
|
|
3357
3357
|
default: S(() => [
|
|
@@ -3364,7 +3364,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3364
3364
|
key: 0,
|
|
3365
3365
|
class: "onyx-checkbox__loading",
|
|
3366
3366
|
type: "circle"
|
|
3367
|
-
})) : xe((i(),
|
|
3367
|
+
})) : xe((i(), f("input", E({
|
|
3368
3368
|
key: 1,
|
|
3369
3369
|
ref: "inputRef",
|
|
3370
3370
|
"onUpdate:modelValue": O[0] || (O[0] = (L) => Ee(u) ? u.value = L : null),
|
|
@@ -3372,7 +3372,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3372
3372
|
class: "onyx-checkbox__input",
|
|
3373
3373
|
type: "checkbox",
|
|
3374
3374
|
indeterminate: o.indeterminate,
|
|
3375
|
-
disabled: l(
|
|
3375
|
+
disabled: l(v),
|
|
3376
3376
|
required: o.required,
|
|
3377
3377
|
value: o.value,
|
|
3378
3378
|
autofocus: o.autofocus
|
|
@@ -3381,7 +3381,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3381
3381
|
[l(c)]
|
|
3382
3382
|
])
|
|
3383
3383
|
]),
|
|
3384
|
-
o.hideLabel ? k("v-if", !0) : (i(),
|
|
3384
|
+
o.hideLabel ? k("v-if", !0) : (i(), f(
|
|
3385
3385
|
G,
|
|
3386
3386
|
{ key: 0 },
|
|
3387
3387
|
[
|
|
@@ -3398,7 +3398,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3398
3398
|
3
|
|
3399
3399
|
/* TEXT, CLASS */
|
|
3400
3400
|
),
|
|
3401
|
-
o.truncation === "ellipsis" ? (i(),
|
|
3401
|
+
o.truncation === "ellipsis" ? (i(), f(
|
|
3402
3402
|
"div",
|
|
3403
3403
|
{
|
|
3404
3404
|
key: 0,
|
|
@@ -3467,7 +3467,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3467
3467
|
emit: t,
|
|
3468
3468
|
key: "open"
|
|
3469
3469
|
}), s = m(() => typeof e.trigger == "object" ? e.trigger.type : e.trigger);
|
|
3470
|
-
return (r, u) => (i(),
|
|
3470
|
+
return (r, u) => (i(), f("span", ti, [
|
|
3471
3471
|
s.value === "click" ? (i(), _(ft, E({ key: 0 }, e, {
|
|
3472
3472
|
open: l(a),
|
|
3473
3473
|
"onUpdate:open": u[0] || (u[0] = (c) => Ee(a) ? a.value = c : null)
|
|
@@ -3485,7 +3485,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3485
3485
|
]),
|
|
3486
3486
|
_: 1
|
|
3487
3487
|
/* STABLE */
|
|
3488
|
-
}, 16, ["open"])) : (i(),
|
|
3488
|
+
}, 16, ["open"])) : (i(), f(
|
|
3489
3489
|
G,
|
|
3490
3490
|
{ key: 1 },
|
|
3491
3491
|
[
|
|
@@ -3555,7 +3555,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3555
3555
|
u.value = w ? [...u.value, x] : u.value.filter((M) => M !== x);
|
|
3556
3556
|
}, d = m(
|
|
3557
3557
|
() => o.options.filter((x) => !x.disabled && !x.skeleton).map(({ value: x }) => x)
|
|
3558
|
-
), { disabled: p, requiredMarker:
|
|
3558
|
+
), { disabled: p, requiredMarker: v } = be(o), b = ne(o), h = qn(
|
|
3559
3559
|
d,
|
|
3560
3560
|
m(() => u.value),
|
|
3561
3561
|
(x) => u.value = x
|
|
@@ -3565,12 +3565,12 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3565
3565
|
}), $ = J("checkboxesRef");
|
|
3566
3566
|
return t({
|
|
3567
3567
|
inputs: m(() => (Array.isArray($.value) ? $.value : [$.value]).flatMap((w) => w?.input).filter((w) => !!w))
|
|
3568
|
-
}), (x, w) => (i(),
|
|
3568
|
+
}), (x, w) => (i(), f("fieldset", {
|
|
3569
3569
|
class: I(["onyx-component", "onyx-checkbox-group", l(a)]),
|
|
3570
3570
|
disabled: l(p),
|
|
3571
3571
|
"aria-label": o.label
|
|
3572
3572
|
}, [
|
|
3573
|
-
o.hideLabel ? k("v-if", !0) : (i(),
|
|
3573
|
+
o.hideLabel ? k("v-if", !0) : (i(), f("legend", ni, [
|
|
3574
3574
|
B(Fe, { is: "h3" }, {
|
|
3575
3575
|
default: S(() => [
|
|
3576
3576
|
W(
|
|
@@ -3597,7 +3597,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3597
3597
|
}])
|
|
3598
3598
|
},
|
|
3599
3599
|
[
|
|
3600
|
-
l(b) ? typeof l(b) == "number" ? (i(!0),
|
|
3600
|
+
l(b) ? typeof l(b) == "number" ? (i(!0), f(
|
|
3601
3601
|
G,
|
|
3602
3602
|
{ key: 1 },
|
|
3603
3603
|
de(l(b), (M) => (i(), _(mt, {
|
|
@@ -3608,20 +3608,20 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3608
3608
|
}, null, 8, ["label", "value"]))),
|
|
3609
3609
|
128
|
|
3610
3610
|
/* KEYED_FRAGMENT */
|
|
3611
|
-
)) : k("v-if", !0) : (i(),
|
|
3611
|
+
)) : k("v-if", !0) : (i(), f(
|
|
3612
3612
|
G,
|
|
3613
3613
|
{ key: 0 },
|
|
3614
3614
|
[
|
|
3615
3615
|
o.withCheckAll ? (i(), _(mt, E({
|
|
3616
3616
|
key: 0,
|
|
3617
|
-
"required-marker": l(
|
|
3617
|
+
"required-marker": l(v)
|
|
3618
3618
|
}, l(h).state.value, {
|
|
3619
3619
|
label: g.value,
|
|
3620
3620
|
value: "all",
|
|
3621
3621
|
class: "onyx-checkbox-group__option onyx-checkbox-group__check-all",
|
|
3622
3622
|
"onUpdate:modelValue": l(h).handleChange
|
|
3623
3623
|
}), null, 16, ["required-marker", "label", "onUpdate:modelValue"])) : k("v-if", !0),
|
|
3624
|
-
(i(!0),
|
|
3624
|
+
(i(!0), f(
|
|
3625
3625
|
G,
|
|
3626
3626
|
null,
|
|
3627
3627
|
de(o.options, (M) => (i(), _(mt, E({
|
|
@@ -3629,7 +3629,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3629
3629
|
}, { ref_for: !0 }, M, {
|
|
3630
3630
|
ref_for: !0,
|
|
3631
3631
|
ref: "checkboxesRef",
|
|
3632
|
-
"required-marker": l(
|
|
3632
|
+
"required-marker": l(v),
|
|
3633
3633
|
truncation: M.truncation ?? o.truncation,
|
|
3634
3634
|
"model-value": l(u).includes(M.value),
|
|
3635
3635
|
class: "onyx-checkbox-group__option",
|
|
@@ -3661,7 +3661,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3661
3661
|
},
|
|
3662
3662
|
setup(n) {
|
|
3663
3663
|
const t = n, e = ce(), { densityClass: o } = F(t);
|
|
3664
|
-
return (a, s) => (i(),
|
|
3664
|
+
return (a, s) => (i(), f(
|
|
3665
3665
|
"div",
|
|
3666
3666
|
{
|
|
3667
3667
|
class: I(["onyx-component", "onyx-empty", l(o)])
|
|
@@ -3676,7 +3676,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3676
3676
|
y("div", ai, [
|
|
3677
3677
|
C(a.$slots, "default")
|
|
3678
3678
|
]),
|
|
3679
|
-
e.buttons ? (i(),
|
|
3679
|
+
e.buttons ? (i(), f("div", li, [
|
|
3680
3680
|
C(a.$slots, "buttons")
|
|
3681
3681
|
])) : k("v-if", !0)
|
|
3682
3682
|
],
|
|
@@ -3707,16 +3707,16 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3707
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 } = He(r), d = m(() => ({
|
|
3708
3708
|
"--onyx-table-observed-height": `${u.value}px`,
|
|
3709
3709
|
"--onyx-table-observed-width": `${c.value}px`
|
|
3710
|
-
})), p = pe(),
|
|
3711
|
-
return (b, h) => (i(),
|
|
3710
|
+
})), p = pe(), v = m(() => e.headline ? p : void 0);
|
|
3711
|
+
return (b, h) => (i(), f(
|
|
3712
3712
|
"div",
|
|
3713
3713
|
{
|
|
3714
3714
|
class: "onyx-table-wrapper onyx-component",
|
|
3715
3715
|
style: Te(d.value)
|
|
3716
3716
|
},
|
|
3717
3717
|
[
|
|
3718
|
-
e.headline || e.actions ? (i(),
|
|
3719
|
-
y("div", { id:
|
|
3718
|
+
e.headline || e.actions ? (i(), f("div", si, [
|
|
3719
|
+
y("div", { id: v.value }, [
|
|
3720
3720
|
C(b.$slots, "headline")
|
|
3721
3721
|
], 8, ri),
|
|
3722
3722
|
y("div", ii, [
|
|
@@ -3729,7 +3729,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3729
3729
|
{ "onyx-table-wrapper__container--no-scroll": t.withPageScrolling }
|
|
3730
3730
|
],
|
|
3731
3731
|
tabindex: t.withPageScrolling ? void 0 : 0
|
|
3732
|
-
},
|
|
3732
|
+
}, n.scrollContainerAttrs), [
|
|
3733
3733
|
y("table", {
|
|
3734
3734
|
ref: "tableRef",
|
|
3735
3735
|
class: I(["onyx-table onyx-text", [
|
|
@@ -3739,24 +3739,24 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3739
3739
|
},
|
|
3740
3740
|
l(a)
|
|
3741
3741
|
]]),
|
|
3742
|
-
"aria-labelledby":
|
|
3742
|
+
"aria-labelledby": v.value
|
|
3743
3743
|
}, [
|
|
3744
|
-
(i(!0),
|
|
3744
|
+
(i(!0), f(
|
|
3745
3745
|
G,
|
|
3746
3746
|
null,
|
|
3747
|
-
de(t.columnGroups, (g) => (i(),
|
|
3747
|
+
de(t.columnGroups, (g) => (i(), f("colgroup", {
|
|
3748
3748
|
key: g.key,
|
|
3749
3749
|
span: g.span
|
|
3750
3750
|
}, null, 8, di))),
|
|
3751
3751
|
128
|
|
3752
3752
|
/* KEYED_FRAGMENT */
|
|
3753
3753
|
)),
|
|
3754
|
-
e.head ? (i(),
|
|
3755
|
-
t.columnGroups?.length ? (i(),
|
|
3756
|
-
(i(!0),
|
|
3754
|
+
e.head ? (i(), f("thead", pi, [
|
|
3755
|
+
t.columnGroups?.length ? (i(), f("tr", mi, [
|
|
3756
|
+
(i(!0), f(
|
|
3757
3757
|
G,
|
|
3758
3758
|
null,
|
|
3759
|
-
de(t.columnGroups, (g) => (i(),
|
|
3759
|
+
de(t.columnGroups, (g) => (i(), f("th", {
|
|
3760
3760
|
key: g.key,
|
|
3761
3761
|
colspan: g.span,
|
|
3762
3762
|
scope: "colgroup",
|
|
@@ -3793,7 +3793,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3793
3793
|
])
|
|
3794
3794
|
], 10, ui)
|
|
3795
3795
|
], 16, ci),
|
|
3796
|
-
e.bottomLeft || e.pagination ? (i(),
|
|
3796
|
+
e.bottomLeft || e.pagination ? (i(), f("div", bi, [
|
|
3797
3797
|
y("div", null, [
|
|
3798
3798
|
C(b.$slots, "bottomLeft")
|
|
3799
3799
|
]),
|
|
@@ -3829,10 +3829,10 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3829
3829
|
}), _e({
|
|
3830
3830
|
head: S(() => [
|
|
3831
3831
|
y("tr", null, [
|
|
3832
|
-
(i(!0),
|
|
3832
|
+
(i(!0), f(
|
|
3833
3833
|
G,
|
|
3834
3834
|
null,
|
|
3835
|
-
de(t.columns, (r) => (i(),
|
|
3835
|
+
de(t.columns, (r) => (i(), f(
|
|
3836
3836
|
"th",
|
|
3837
3837
|
E({
|
|
3838
3838
|
key: r.key
|
|
@@ -3858,25 +3858,25 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3858
3858
|
])
|
|
3859
3859
|
]),
|
|
3860
3860
|
default: S(() => [
|
|
3861
|
-
(i(!0),
|
|
3861
|
+
(i(!0), f(
|
|
3862
3862
|
G,
|
|
3863
3863
|
null,
|
|
3864
|
-
de(t.rows, (r) => (i(),
|
|
3864
|
+
de(t.rows, (r) => (i(), f(
|
|
3865
3865
|
"tr",
|
|
3866
3866
|
E({
|
|
3867
3867
|
key: r.id
|
|
3868
3868
|
}, { ref_for: !0 }, r.trAttributes),
|
|
3869
3869
|
[
|
|
3870
|
-
(i(!0),
|
|
3870
|
+
(i(!0), f(
|
|
3871
3871
|
G,
|
|
3872
3872
|
null,
|
|
3873
|
-
de(r.columns, (u) => (i(),
|
|
3873
|
+
de(r.columns, (u) => (i(), f(
|
|
3874
3874
|
G,
|
|
3875
3875
|
{
|
|
3876
3876
|
key: u.key
|
|
3877
3877
|
},
|
|
3878
3878
|
[
|
|
3879
|
-
r.cells[u.key] ? (i(),
|
|
3879
|
+
r.cells[u.key] ? (i(), f(
|
|
3880
3880
|
"td",
|
|
3881
3881
|
E({
|
|
3882
3882
|
key: 0,
|
|
@@ -3938,18 +3938,18 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3938
3938
|
emit: a,
|
|
3939
3939
|
key: "modelValue",
|
|
3940
3940
|
default: ""
|
|
3941
|
-
}), { rootAttrs: r, restAttrs: u } = ge(), { densityClass: c } = F(o), { t: d } = q(), p = J("inputRef"),
|
|
3941
|
+
}), { rootAttrs: r, restAttrs: u } = ge(), { densityClass: c } = F(o), { t: d } = q(), p = J("inputRef"), v = m(() => d.value("select.searchPlaceholder"));
|
|
3942
3942
|
return Ae(p, o), t({
|
|
3943
3943
|
/**
|
|
3944
3944
|
* Focuses the input.
|
|
3945
3945
|
*/
|
|
3946
3946
|
focus: () => p.value?.focus()
|
|
3947
|
-
}), (b, h) => (i(),
|
|
3947
|
+
}), (b, h) => (i(), f(
|
|
3948
3948
|
"div",
|
|
3949
3949
|
E({
|
|
3950
3950
|
class: ["onyx-component", "onyx-mini-search", l(c)]
|
|
3951
3951
|
}, l(r), {
|
|
3952
|
-
style: { "--onyx-placeholder-character-count":
|
|
3952
|
+
style: { "--onyx-placeholder-character-count": v.value.length }
|
|
3953
3953
|
}),
|
|
3954
3954
|
[
|
|
3955
3955
|
xe(y("input", E({
|
|
@@ -3957,7 +3957,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3957
3957
|
"onUpdate:modelValue": h[0] || (h[0] = (g) => Ee(s) ? s.value = g : null),
|
|
3958
3958
|
autofocus: o.autofocus,
|
|
3959
3959
|
class: "onyx-mini-search__input onyx-text",
|
|
3960
|
-
placeholder:
|
|
3960
|
+
placeholder: v.value,
|
|
3961
3961
|
type: "text",
|
|
3962
3962
|
size: "1"
|
|
3963
3963
|
}, l(u), {
|
|
@@ -3995,7 +3995,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
3995
3995
|
},
|
|
3996
3996
|
setup(n) {
|
|
3997
3997
|
const t = n, e = ce();
|
|
3998
|
-
return (o, a) => (i(),
|
|
3998
|
+
return (o, a) => (i(), f("div", Si, [
|
|
3999
3999
|
y(
|
|
4000
4000
|
"span",
|
|
4001
4001
|
$i,
|
|
@@ -4003,7 +4003,7 @@ const oo = /* @__PURE__ */ Vt(Zs, [["render", Qs]]), Le = /* @__PURE__ */ A({
|
|
|
4003
4003
|
1
|
|
4004
4004
|
/* TEXT */
|
|
4005
4005
|
),
|
|
4006
|
-
e.actions ? (i(),
|
|
4006
|
+
e.actions ? (i(), f("div", Ci, [
|
|
4007
4007
|
C(o.$slots, "actions")
|
|
4008
4008
|
])) : k("v-if", !0)
|
|
4009
4009
|
]));
|
|
@@ -4132,24 +4132,24 @@ const Ei = (n, t) => {
|
|
|
4132
4132
|
};
|
|
4133
4133
|
});
|
|
4134
4134
|
return wi(u.value, x);
|
|
4135
|
-
}), d = m(() => na(r)), p = () => Ei(c.value, Q(o)),
|
|
4135
|
+
}), d = m(() => na(r)), p = () => Ei(c.value, Q(o)), v = () => fe(
|
|
4136
4136
|
...r.map(({ scrollContainerAttributes: x }) => x?.())
|
|
4137
4137
|
), b = () => {
|
|
4138
4138
|
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
4139
|
return c.value.map((O, L, N) => {
|
|
4140
|
-
const K = w.flatMap((
|
|
4140
|
+
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
4141
|
je,
|
|
4142
4142
|
{
|
|
4143
4143
|
label: t.t.value("navigation.moreActionsFlyout", { column: O.label }),
|
|
4144
4144
|
trigger: "click"
|
|
4145
4145
|
},
|
|
4146
4146
|
{
|
|
4147
|
-
button: ({ trigger:
|
|
4147
|
+
button: ({ trigger: H }) => le(we, {
|
|
4148
4148
|
class: K.length > 1 ? "onyx-system-button--multiple-actions" : "",
|
|
4149
4149
|
label: t.t.value("navigation.moreActionsTrigger"),
|
|
4150
4150
|
color: "medium",
|
|
4151
4151
|
icon: on,
|
|
4152
|
-
...
|
|
4152
|
+
...H
|
|
4153
4153
|
}),
|
|
4154
4154
|
options: () => X
|
|
4155
4155
|
}
|
|
@@ -4164,11 +4164,11 @@ const Ei = (n, t) => {
|
|
|
4164
4164
|
].filter(Boolean);
|
|
4165
4165
|
}
|
|
4166
4166
|
}, te = M.reduce(
|
|
4167
|
-
(
|
|
4168
|
-
(
|
|
4167
|
+
(H, R) => le(R(O, L, N), H),
|
|
4168
|
+
(H) => le(U.component, { label: O.label, ...H }, D)
|
|
4169
4169
|
);
|
|
4170
4170
|
return {
|
|
4171
|
-
thAttributes: fe(
|
|
4171
|
+
thAttributes: fe(U.thAttributes, O.thAttributes),
|
|
4172
4172
|
key: O.key,
|
|
4173
4173
|
width: O.width,
|
|
4174
4174
|
component: () => le(te)
|
|
@@ -4182,14 +4182,14 @@ const Ei = (n, t) => {
|
|
|
4182
4182
|
L && (M = L);
|
|
4183
4183
|
}), M.map((O) => {
|
|
4184
4184
|
const L = O[Tt]?.columns ?? c.value, N = L.reduce(
|
|
4185
|
-
(K, { key:
|
|
4185
|
+
(K, { key: U, type: X, tdAttributes: ue }) => {
|
|
4186
4186
|
const P = d.value.getFor("cell", X.name);
|
|
4187
|
-
return K[
|
|
4187
|
+
return K[U] = {
|
|
4188
4188
|
component: P.component,
|
|
4189
4189
|
props: {
|
|
4190
|
-
key:
|
|
4190
|
+
key: U,
|
|
4191
4191
|
row: O,
|
|
4192
|
-
modelValue: O[
|
|
4192
|
+
modelValue: O[U],
|
|
4193
4193
|
metadata: { typeOptions: X.options }
|
|
4194
4194
|
},
|
|
4195
4195
|
tdAttributes: fe(ue, P.tdAttributes)
|
|
@@ -4208,7 +4208,7 @@ const Ei = (n, t) => {
|
|
|
4208
4208
|
const x = {};
|
|
4209
4209
|
return r.forEach((w) => {
|
|
4210
4210
|
w.slots && Object.entries(w.slots).forEach(([M, O]) => {
|
|
4211
|
-
const L = M, N = x[L] ?? (() => []), K = O(N).filter((
|
|
4211
|
+
const L = M, N = x[L] ?? (() => []), K = O(N).filter((U) => U != null);
|
|
4212
4212
|
K.length && (x[L] = () => K);
|
|
4213
4213
|
});
|
|
4214
4214
|
}), x;
|
|
@@ -4217,7 +4217,7 @@ const Ei = (n, t) => {
|
|
|
4217
4217
|
/**
|
|
4218
4218
|
* Takes the table attributes and maps all
|
|
4219
4219
|
*/
|
|
4220
|
-
createScrollContainerAttributes:
|
|
4220
|
+
createScrollContainerAttributes: v,
|
|
4221
4221
|
/** Uses the column definition and available column group config to generate the column groups for the underlying OnyxTable */
|
|
4222
4222
|
createRendererColumnGroups: p,
|
|
4223
4223
|
/** Takes the column definition and maps all, calls mutation func and maps at the end to RendererCell */
|
|
@@ -4249,40 +4249,40 @@ const Ei = (n, t) => {
|
|
|
4249
4249
|
};
|
|
4250
4250
|
}, Oi = Symbol("Filtering"), wo = 0, Ai = (n) => (t) => {
|
|
4251
4251
|
const { i18n: e } = t, o = ie(n?.filterState ?? {}), a = m(() => Q(n?.columns)), { isEnabled: s, isAsync: r } = ut(t, n), u = (p) => r.value ? p : p.filter(
|
|
4252
|
-
(
|
|
4252
|
+
(v) => Object.entries(o.value).every(
|
|
4253
4253
|
([b, h]) => {
|
|
4254
4254
|
const g = a.value?.[b], $ = { ...n?.filterConfig, ...g?.config };
|
|
4255
4255
|
if (h == null || h === "") return !0;
|
|
4256
|
-
let x = h.toString(), w =
|
|
4256
|
+
let x = h.toString(), w = v[b]?.toString() ?? "";
|
|
4257
4257
|
return $?.filterFunc ? $.filterFunc(
|
|
4258
4258
|
x,
|
|
4259
4259
|
w,
|
|
4260
4260
|
b,
|
|
4261
|
-
|
|
4261
|
+
v
|
|
4262
4262
|
) : (w = At(w), x = At(x), $.caseSensitive || (w = w.toLowerCase(), x = x.toLowerCase()), $.searchFromStart ? w.startsWith(x) : $.exactMatch ? w === x : w.includes(x));
|
|
4263
4263
|
}
|
|
4264
4264
|
)
|
|
4265
4265
|
), c = (p) => {
|
|
4266
4266
|
o.value[p] = "";
|
|
4267
4267
|
}, d = (p) => {
|
|
4268
|
-
let
|
|
4268
|
+
let v = o.value[p] || "";
|
|
4269
4269
|
const b = (h) => {
|
|
4270
|
-
h.key === "Enter" && (o.value[p] =
|
|
4270
|
+
h.key === "Enter" && (o.value[p] = v);
|
|
4271
4271
|
};
|
|
4272
4272
|
return le(Wn, {
|
|
4273
4273
|
label: e.t.value("dataGrid.head.filtering.menu.label", { column: p.toString() }),
|
|
4274
4274
|
class: "onyx-filter-search",
|
|
4275
4275
|
placeholder: e.t.value("dataGrid.head.filtering.menu.placeholder"),
|
|
4276
|
-
modelValue:
|
|
4276
|
+
modelValue: v,
|
|
4277
4277
|
// TODO: check after https://github.com/SchwarzIT/onyx/issues/2982 is closed -- `autofocus` doesn't have an effect currently
|
|
4278
4278
|
autofocus: !0,
|
|
4279
4279
|
"onUpdate:modelValue": (h) => {
|
|
4280
|
-
|
|
4280
|
+
v = h || "";
|
|
4281
4281
|
},
|
|
4282
4282
|
onClear: () => {
|
|
4283
|
-
o.value[p] = "",
|
|
4283
|
+
o.value[p] = "", v = "";
|
|
4284
4284
|
},
|
|
4285
|
-
onChange: () => o.value[p] =
|
|
4285
|
+
onChange: () => o.value[p] = v,
|
|
4286
4286
|
onKeydown: b,
|
|
4287
4287
|
onClick: (h) => {
|
|
4288
4288
|
h.preventDefault(), h.stopPropagation();
|
|
@@ -4374,7 +4374,7 @@ const Ei = (n, t) => {
|
|
|
4374
4374
|
},
|
|
4375
4375
|
setup(n) {
|
|
4376
4376
|
const t = n;
|
|
4377
|
-
return (e, o) => (i(), _(Ce(
|
|
4377
|
+
return (e, o) => (i(), _(Ce(n.messages.hidden ? Ke : "span"), {
|
|
4378
4378
|
class: I(["onyx-component", "onyx-form-message", `onyx-form-message__${t.type}`])
|
|
4379
4379
|
}, {
|
|
4380
4380
|
default: S(() => [
|
|
@@ -4440,18 +4440,18 @@ const Ei = (n, t) => {
|
|
|
4440
4440
|
key: "modelValue"
|
|
4441
4441
|
}), c = m(() => {
|
|
4442
4442
|
if (e.withCounter && e.maxlength) {
|
|
4443
|
-
const p = (u.value?.toString() ?? "").length,
|
|
4443
|
+
const p = (u.value?.toString() ?? "").length, v = typeof e.maxlength == "object" ? e.maxlength.max : e.maxlength, b = p > v;
|
|
4444
4444
|
return {
|
|
4445
4445
|
length: p,
|
|
4446
|
-
maxLength:
|
|
4446
|
+
maxLength: v,
|
|
4447
4447
|
violated: b
|
|
4448
4448
|
};
|
|
4449
4449
|
}
|
|
4450
4450
|
}), d = m(() => {
|
|
4451
|
-
const { errorMessages: p, successMessages:
|
|
4451
|
+
const { errorMessages: p, successMessages: v, message: b } = e, h = {
|
|
4452
4452
|
counter: c.value,
|
|
4453
4453
|
errorMessages: p,
|
|
4454
|
-
successMessages:
|
|
4454
|
+
successMessages: v,
|
|
4455
4455
|
message: b
|
|
4456
4456
|
};
|
|
4457
4457
|
for (const g in h) {
|
|
@@ -4461,23 +4461,23 @@ const Ei = (n, t) => {
|
|
|
4461
4461
|
if (Object.keys(h).length !== 0)
|
|
4462
4462
|
return h;
|
|
4463
4463
|
});
|
|
4464
|
-
return (p,
|
|
4464
|
+
return (p, v) => (i(), f(
|
|
4465
4465
|
"div",
|
|
4466
4466
|
{
|
|
4467
4467
|
class: I([
|
|
4468
4468
|
"onyx-component",
|
|
4469
4469
|
"onyx-form-element",
|
|
4470
4470
|
l(r),
|
|
4471
|
-
|
|
4471
|
+
n.successMessages ? "onyx-form-element--success" : void 0
|
|
4472
4472
|
])
|
|
4473
4473
|
},
|
|
4474
4474
|
[
|
|
4475
|
-
e.hideLabel ? k("v-if", !0) : (i(),
|
|
4475
|
+
e.hideLabel ? k("v-if", !0) : (i(), f("div", Li, [
|
|
4476
4476
|
y("label", {
|
|
4477
4477
|
for: e.id,
|
|
4478
4478
|
class: "onyx-truncation-ellipsis"
|
|
4479
4479
|
}, T(e.label), 9, Ri),
|
|
4480
|
-
e.required ? (i(),
|
|
4480
|
+
e.required ? (i(), f(
|
|
4481
4481
|
"span",
|
|
4482
4482
|
{
|
|
4483
4483
|
key: 0,
|
|
@@ -4493,7 +4493,7 @@ const Ei = (n, t) => {
|
|
|
4493
4493
|
trigger: "hover",
|
|
4494
4494
|
text: e.labelTooltip
|
|
4495
4495
|
}, null, 8, ["text"])) : k("v-if", !0),
|
|
4496
|
-
e.required ? k("v-if", !0) : (i(),
|
|
4496
|
+
e.required ? k("v-if", !0) : (i(), f(
|
|
4497
4497
|
"span",
|
|
4498
4498
|
{
|
|
4499
4499
|
key: 2,
|
|
@@ -4507,7 +4507,7 @@ const Ei = (n, t) => {
|
|
|
4507
4507
|
C(p.$slots, "default", {
|
|
4508
4508
|
id: e.id
|
|
4509
4509
|
}),
|
|
4510
|
-
d.value ? (i(),
|
|
4510
|
+
d.value ? (i(), f("div", Vi, [
|
|
4511
4511
|
y("span", Ni, [
|
|
4512
4512
|
d.value.errorMessages ? (i(), _(Gt, {
|
|
4513
4513
|
key: 0,
|
|
@@ -4528,7 +4528,7 @@ const Ei = (n, t) => {
|
|
|
4528
4528
|
type: "neutral"
|
|
4529
4529
|
}, null, 8, ["messages"])) : k("v-if", !0)
|
|
4530
4530
|
]),
|
|
4531
|
-
d.value.counter ? (i(),
|
|
4531
|
+
d.value.counter ? (i(), f(
|
|
4532
4532
|
"span",
|
|
4533
4533
|
{
|
|
4534
4534
|
key: 0,
|
|
@@ -4576,28 +4576,28 @@ const Ei = (n, t) => {
|
|
|
4576
4576
|
},
|
|
4577
4577
|
emits: ["inputClick", "validityChange"],
|
|
4578
4578
|
setup(n, { expose: t, emit: e }) {
|
|
4579
|
-
const { rootAttrs: o, restAttrs: a } = ge(), s = n, r = e, { t: u } = q(), { vCustomValidity: c, errorMessages: d } = Pe({ props: s, emit: r }), p = m(() => Be(s.success)),
|
|
4580
|
-
const
|
|
4581
|
-
if (!s.modelValue || !
|
|
4582
|
-
if (
|
|
4579
|
+
const { rootAttrs: o, restAttrs: a } = ge(), s = n, r = e, { t: u } = q(), { vCustomValidity: c, errorMessages: d } = Pe({ props: s, emit: r }), p = m(() => Be(s.success)), v = m(() => Be(s.message)), { disabled: b, showError: h } = be(s), g = ne(s), $ = _t(h), x = m(() => s.modelValue ? s.modelValue.length : 0), w = m(() => {
|
|
4580
|
+
const U = s.modelValue?.length;
|
|
4581
|
+
if (!s.modelValue || !U) return "";
|
|
4582
|
+
if (U === 1) return s.modelValue[0];
|
|
4583
4583
|
switch (s.textMode) {
|
|
4584
4584
|
case "preview":
|
|
4585
4585
|
return s.modelValue.join(", ");
|
|
4586
4586
|
case "summary":
|
|
4587
4587
|
default:
|
|
4588
|
-
return u.value("selections.currentSelection", { n:
|
|
4588
|
+
return u.value("selections.currentSelection", { n: U });
|
|
4589
4589
|
}
|
|
4590
4590
|
}), M = V(!1), { densityClass: O } = F(s), L = J("inputRef");
|
|
4591
4591
|
t({ input: L }), Y(
|
|
4592
4592
|
() => s.showFocus,
|
|
4593
|
-
(
|
|
4594
|
-
M.value || X &&
|
|
4593
|
+
(U, X) => {
|
|
4594
|
+
M.value || X && U === !1 && (M.value = !0);
|
|
4595
4595
|
}
|
|
4596
4596
|
);
|
|
4597
|
-
const N = _n.concat(xn), K = (
|
|
4598
|
-
N.includes(
|
|
4597
|
+
const N = _n.concat(xn), K = (U) => {
|
|
4598
|
+
N.includes(U.key) || U.preventDefault();
|
|
4599
4599
|
};
|
|
4600
|
-
return Ae(L, s), (
|
|
4600
|
+
return Ae(L, s), (U, X) => l(g) ? (i(), f(
|
|
4601
4601
|
"div",
|
|
4602
4602
|
E({
|
|
4603
4603
|
key: 0,
|
|
@@ -4612,7 +4612,7 @@ const Ei = (n, t) => {
|
|
|
4612
4612
|
],
|
|
4613
4613
|
16
|
|
4614
4614
|
/* FULL_PROPS */
|
|
4615
|
-
)) : (i(),
|
|
4615
|
+
)) : (i(), f(
|
|
4616
4616
|
"div",
|
|
4617
4617
|
E({
|
|
4618
4618
|
key: 1,
|
|
@@ -4626,7 +4626,7 @@ const Ei = (n, t) => {
|
|
|
4626
4626
|
}, l(o)),
|
|
4627
4627
|
[
|
|
4628
4628
|
B(xt, E(s, {
|
|
4629
|
-
message:
|
|
4629
|
+
message: v.value,
|
|
4630
4630
|
"success-messages": p.value,
|
|
4631
4631
|
"error-messages": l(d)
|
|
4632
4632
|
}), {
|
|
@@ -4735,7 +4735,7 @@ const Ei = (n, t) => {
|
|
|
4735
4735
|
disabled: !!e.$attrs["aria-disabled"]
|
|
4736
4736
|
}), {
|
|
4737
4737
|
default: S(() => [
|
|
4738
|
-
t.multiple ? (i(),
|
|
4738
|
+
t.multiple ? (i(), f("input", {
|
|
4739
4739
|
key: 0,
|
|
4740
4740
|
checked: !!e.$attrs["aria-checked"],
|
|
4741
4741
|
"aria-labelledby": e.$attrs.id,
|
|
@@ -4847,7 +4847,7 @@ const Ei = (n, t) => {
|
|
|
4847
4847
|
emit: a,
|
|
4848
4848
|
key: "open",
|
|
4849
4849
|
default: !1
|
|
4850
|
-
}),
|
|
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, re) => {
|
|
4851
4851
|
const se = o.options.find(({ value: ye }) => ye === re)?.label;
|
|
4852
4852
|
return se && j.push(se), j;
|
|
4853
4853
|
}, [])), w = J("miniSearchRef"), M = J("selectInputRef"), O = m(() => o.noFilter || !d.value ? o.options : o.options.filter(
|
|
@@ -4876,7 +4876,7 @@ const Ei = (n, t) => {
|
|
|
4876
4876
|
}
|
|
4877
4877
|
const se = p.value;
|
|
4878
4878
|
p.value = !se, await Ve(), p.value && h(), se !== p.value && (se ? (d.value && (d.value = ""), j || M.value?.input?.focus()) : w.value?.focus());
|
|
4879
|
-
},
|
|
4879
|
+
}, U = () => g.value = N.value.at(0), X = () => g.value = N.value.at(-1), ue = (j) => {
|
|
4880
4880
|
const re = N.value.findIndex((se) => se === j);
|
|
4881
4881
|
re < N.value.length - 1 && (g.value = N.value[re + 1]);
|
|
4882
4882
|
}, P = (j) => {
|
|
@@ -4885,7 +4885,7 @@ const Ei = (n, t) => {
|
|
|
4885
4885
|
}, D = (j) => {
|
|
4886
4886
|
const re = O.value.find((se) => se.label.toLowerCase().trim().startsWith(j.toLowerCase()));
|
|
4887
4887
|
re && (g.value = re.value);
|
|
4888
|
-
}, te = (j) => d.value = j,
|
|
4888
|
+
}, te = (j) => d.value = j, H = (j) => {
|
|
4889
4889
|
if (j === L) {
|
|
4890
4890
|
wt.value?.handleChange(!wt.value.state.value.modelValue);
|
|
4891
4891
|
return;
|
|
@@ -4909,15 +4909,15 @@ const Ei = (n, t) => {
|
|
|
4909
4909
|
multiple: et,
|
|
4910
4910
|
activeOption: m(() => g.value),
|
|
4911
4911
|
isExpanded: p,
|
|
4912
|
-
templateRef:
|
|
4912
|
+
templateRef: v,
|
|
4913
4913
|
onToggle: K,
|
|
4914
|
-
onActivateFirst:
|
|
4914
|
+
onActivateFirst: U,
|
|
4915
4915
|
onActivateLast: X,
|
|
4916
4916
|
onActivateNext: ue,
|
|
4917
4917
|
onActivatePrevious: P,
|
|
4918
4918
|
onTypeAhead: D,
|
|
4919
4919
|
onAutocomplete: te,
|
|
4920
|
-
onSelect:
|
|
4920
|
+
onSelect: H
|
|
4921
4921
|
}), Bo = () => {
|
|
4922
4922
|
if (o.keepSelectionOrder || !c.value || !Array.isArray(c.value) || c.value.length == 0)
|
|
4923
4923
|
return O.value;
|
|
@@ -4972,7 +4972,7 @@ const Ei = (n, t) => {
|
|
|
4972
4972
|
);
|
|
4973
4973
|
},
|
|
4974
4974
|
{ deep: !0, immediate: !0 }
|
|
4975
|
-
), (j, re) => (i(),
|
|
4975
|
+
), (j, re) => (i(), f(
|
|
4976
4976
|
"div",
|
|
4977
4977
|
Ui,
|
|
4978
4978
|
[
|
|
@@ -4993,7 +4993,7 @@ const Ei = (n, t) => {
|
|
|
4993
4993
|
}), null, 16, ["show-focus", "autofocus"])
|
|
4994
4994
|
]),
|
|
4995
4995
|
content: S(() => [
|
|
4996
|
-
xe((i(),
|
|
4996
|
+
xe((i(), f("div", Hi, [
|
|
4997
4997
|
o.withSearch ? (i(), _(Wn, E({
|
|
4998
4998
|
key: 0,
|
|
4999
4999
|
ref: "miniSearchRef",
|
|
@@ -5008,7 +5008,7 @@ const Ei = (n, t) => {
|
|
|
5008
5008
|
"div",
|
|
5009
5009
|
ze(Je(l(Eo))),
|
|
5010
5010
|
[
|
|
5011
|
-
Pt.value ? (i(),
|
|
5011
|
+
Pt.value ? (i(), f("ul", Gi, [
|
|
5012
5012
|
y("li", qi, [
|
|
5013
5013
|
C(j.$slots, "empty", { defaultMessage: Pt.value }, () => [
|
|
5014
5014
|
B(Kn, {
|
|
@@ -5026,11 +5026,11 @@ const Ei = (n, t) => {
|
|
|
5026
5026
|
}, 8, ["density"])
|
|
5027
5027
|
])
|
|
5028
5028
|
])
|
|
5029
|
-
])) : (i(),
|
|
5029
|
+
])) : (i(), f(
|
|
5030
5030
|
G,
|
|
5031
5031
|
{ key: 1 },
|
|
5032
5032
|
[
|
|
5033
|
-
o.multiple && o.withCheckAll && !l(d) ? (i(),
|
|
5033
|
+
o.multiple && o.withCheckAll && !l(d) ? (i(), f(
|
|
5034
5034
|
"ul",
|
|
5035
5035
|
E({
|
|
5036
5036
|
key: 0,
|
|
@@ -5065,24 +5065,24 @@ const Ei = (n, t) => {
|
|
|
5065
5065
|
16
|
|
5066
5066
|
/* FULL_PROPS */
|
|
5067
5067
|
)) : k("v-if", !0),
|
|
5068
|
-
(i(!0),
|
|
5068
|
+
(i(!0), f(
|
|
5069
5069
|
G,
|
|
5070
5070
|
null,
|
|
5071
|
-
de(dt.value, (se) => (i(),
|
|
5071
|
+
de(dt.value, (se) => (i(), f(
|
|
5072
5072
|
"ul",
|
|
5073
5073
|
E({
|
|
5074
5074
|
key: se.name,
|
|
5075
5075
|
class: "onyx-select__group"
|
|
5076
5076
|
}, { ref_for: !0 }, l(ke)({ label: se.name })),
|
|
5077
5077
|
[
|
|
5078
|
-
se.name !== "" ? (i(),
|
|
5078
|
+
se.name !== "" ? (i(), f(
|
|
5079
5079
|
"li",
|
|
5080
5080
|
Ki,
|
|
5081
5081
|
T(se.name),
|
|
5082
5082
|
1
|
|
5083
5083
|
/* TEXT */
|
|
5084
5084
|
)) : k("v-if", !0),
|
|
5085
|
-
(i(!0),
|
|
5085
|
+
(i(!0), f(
|
|
5086
5086
|
G,
|
|
5087
5087
|
null,
|
|
5088
5088
|
de(se.items, (ye) => (i(), _(qo, E(
|
|
@@ -5134,16 +5134,16 @@ const Ei = (n, t) => {
|
|
|
5134
5134
|
16
|
|
5135
5135
|
/* FULL_PROPS */
|
|
5136
5136
|
),
|
|
5137
|
-
o.lazyLoading?.loading ? (i(),
|
|
5137
|
+
o.lazyLoading?.loading ? (i(), f("div", ji, [
|
|
5138
5138
|
B(Le, { class: "onyx-select__loading" })
|
|
5139
5139
|
])) : k("v-if", !0),
|
|
5140
|
-
s.optionsEnd ? (i(),
|
|
5140
|
+
s.optionsEnd ? (i(), f("div", Wi, [
|
|
5141
5141
|
C(j.$slots, "optionsEnd")
|
|
5142
5142
|
])) : k("v-if", !0)
|
|
5143
5143
|
])), [
|
|
5144
5144
|
[l(ha)]
|
|
5145
5145
|
]),
|
|
5146
|
-
o.listDescription ? (i(),
|
|
5146
|
+
o.listDescription ? (i(), f(
|
|
5147
5147
|
"div",
|
|
5148
5148
|
Yi,
|
|
5149
5149
|
T(o.listDescription),
|
|
@@ -5174,21 +5174,21 @@ const Ei = (n, t) => {
|
|
|
5174
5174
|
Y(c, () => d.value = qt);
|
|
5175
5175
|
const p = () => {
|
|
5176
5176
|
d.value = Math.min(e.pages, d.value + qt);
|
|
5177
|
-
},
|
|
5177
|
+
}, v = m(() => Array.from({ length: e.pages }, ($, x) => {
|
|
5178
5178
|
const w = x + 1;
|
|
5179
5179
|
return {
|
|
5180
5180
|
label: w.toString(),
|
|
5181
5181
|
value: w
|
|
5182
5182
|
};
|
|
5183
5183
|
})), b = m(() => {
|
|
5184
|
-
let $ =
|
|
5184
|
+
let $ = v.value;
|
|
5185
5185
|
const x = c.value.trim().toLowerCase();
|
|
5186
5186
|
return x && ($ = $.filter((w) => Sn(w.label, x))), $.slice(0, d.value);
|
|
5187
5187
|
}), h = m(() => e.modelValue <= 1), g = m(() => e.modelValue >= e.pages);
|
|
5188
5188
|
return ($, x) => l(u) ? (i(), _(Z, {
|
|
5189
5189
|
key: 0,
|
|
5190
5190
|
class: I(["onyx-pagination-skeleton", "onyx-text", l(r)])
|
|
5191
|
-
}, null, 8, ["class"])) : (i(),
|
|
5191
|
+
}, null, 8, ["class"])) : (i(), f("div", {
|
|
5192
5192
|
key: 1,
|
|
5193
5193
|
class: I(["onyx-component", "onyx-pagination", "onyx-text", l(r)]),
|
|
5194
5194
|
role: "group",
|
|
@@ -5272,7 +5272,7 @@ const Ei = (n, t) => {
|
|
|
5272
5272
|
o.value.selectMode = h ? "exclude" : "include", o.value.contingent.clear();
|
|
5273
5273
|
}, d = (h, g) => {
|
|
5274
5274
|
o.value.selectMode === "include" && h === !0 || o.value.selectMode === "exclude" && h === !1 ? o.value.contingent.add(g) : o.value.contingent.delete(g);
|
|
5275
|
-
}, p = () => o.value.contingent.size !== 0 && o.value.contingent.size !== a.value,
|
|
5275
|
+
}, p = () => o.value.contingent.size !== 0 && o.value.contingent.size !== a.value, v = () => {
|
|
5276
5276
|
const { contingent: h, selectMode: g } = o.value;
|
|
5277
5277
|
return g === "exclude" ? h.size === 0 : h.size > 0 && h.size === a.value;
|
|
5278
5278
|
};
|
|
@@ -5305,7 +5305,7 @@ const Ei = (n, t) => {
|
|
|
5305
5305
|
indeterminate: p(),
|
|
5306
5306
|
disabled: a.value === 0,
|
|
5307
5307
|
"onUpdate:modelValue": (h) => c(h),
|
|
5308
|
-
modelValue:
|
|
5308
|
+
modelValue: v()
|
|
5309
5309
|
})
|
|
5310
5310
|
},
|
|
5311
5311
|
cell: {
|
|
@@ -5338,14 +5338,14 @@ const Ei = (n, t) => {
|
|
|
5338
5338
|
n?.paginationState ?? { current: 1, pages: 1, pageSize: n?.pageSize ?? 25 }
|
|
5339
5339
|
), { isEnabled: o, isAsync: a } = ut(t, n), s = m(() => n.disabled?.value ?? !1), r = m(
|
|
5340
5340
|
() => 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:
|
|
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 } = aa({
|
|
5342
5342
|
enabled: m(() => d === "lazy" && !u.value && !Q(n.disabled)),
|
|
5343
5343
|
loading: c
|
|
5344
5344
|
});
|
|
5345
5345
|
return Y(b, (h) => {
|
|
5346
5346
|
h && e.value.current++;
|
|
5347
5347
|
}), Y(p, () => {
|
|
5348
|
-
p.value &&
|
|
5348
|
+
p.value && v.mounted(p.value);
|
|
5349
5349
|
}), {
|
|
5350
5350
|
name: nc,
|
|
5351
5351
|
watch: [e, o, a, s, t.skeleton, b, c],
|
|
@@ -5486,7 +5486,7 @@ const Ei = (n, t) => {
|
|
|
5486
5486
|
withPageScrolling: { type: Boolean }
|
|
5487
5487
|
},
|
|
5488
5488
|
setup(n) {
|
|
5489
|
-
const t = n, e = q(), o = ce(), a = ne(t), s = Ue([]), r = Ue([]), u = Ue(), c = Ue(), d = Ue(), { columns: p, data:
|
|
5489
|
+
const t = n, e = q(), o = ce(), a = ne(t), s = Ue([]), r = Ue([]), u = Ue(), c = Ue(), d = Ue(), { columns: p, data: v, features: b, columnGroups: h, async: g } = ro(t);
|
|
5490
5490
|
let $;
|
|
5491
5491
|
const x = ({
|
|
5492
5492
|
createRendererColumns: w,
|
|
@@ -5496,9 +5496,9 @@ const Ei = (n, t) => {
|
|
|
5496
5496
|
createScrollContainerAttributes: N,
|
|
5497
5497
|
createSlots: K
|
|
5498
5498
|
}) => Y(
|
|
5499
|
-
[
|
|
5499
|
+
[v, a, p, h, e.locale, e.t, ...O],
|
|
5500
5500
|
() => {
|
|
5501
|
-
s.value = w(), r.value = M(
|
|
5501
|
+
s.value = w(), r.value = M(v.value), u.value = L(), c.value = N(), d.value = K();
|
|
5502
5502
|
},
|
|
5503
5503
|
{ immediate: !0, deep: !0 }
|
|
5504
5504
|
);
|
|
@@ -5603,7 +5603,7 @@ const Ei = (n, t) => {
|
|
|
5603
5603
|
order: 9001,
|
|
5604
5604
|
func: (d) => {
|
|
5605
5605
|
const p = d.filter(
|
|
5606
|
-
(
|
|
5606
|
+
(v) => !s.value.has(v.key)
|
|
5607
5607
|
);
|
|
5608
5608
|
return s.value.size > 0 ? [
|
|
5609
5609
|
...p,
|
|
@@ -5654,7 +5654,7 @@ const Ei = (n, t) => {
|
|
|
5654
5654
|
if (!r.value) return;
|
|
5655
5655
|
s.value = r.value.getBoundingClientRect().width, c.value = !0, u = new AbortController();
|
|
5656
5656
|
const g = { signal: u.signal, passive: !0 };
|
|
5657
|
-
window.addEventListener("mousemove",
|
|
5657
|
+
window.addEventListener("mousemove", v, g), window.addEventListener("mouseup", b, g), window.addEventListener("keydown", h, g), o("start");
|
|
5658
5658
|
};
|
|
5659
5659
|
Oe(() => {
|
|
5660
5660
|
Y(
|
|
@@ -5667,7 +5667,7 @@ const Ei = (n, t) => {
|
|
|
5667
5667
|
});
|
|
5668
5668
|
const p = () => {
|
|
5669
5669
|
o("autoSize");
|
|
5670
|
-
},
|
|
5670
|
+
}, v = (g) => {
|
|
5671
5671
|
if (!r.value || !c.value) return;
|
|
5672
5672
|
const $ = r.value.getBoundingClientRect();
|
|
5673
5673
|
let x;
|
|
@@ -5677,7 +5677,7 @@ const Ei = (n, t) => {
|
|
|
5677
5677
|
}, h = (g) => {
|
|
5678
5678
|
g.key === "Escape" && (s.value && o("updateWidth", s.value), b());
|
|
5679
5679
|
};
|
|
5680
|
-
return (g, $) => (i(),
|
|
5680
|
+
return (g, $) => (i(), f(
|
|
5681
5681
|
"button",
|
|
5682
5682
|
{
|
|
5683
5683
|
tabindex: "-1",
|
|
@@ -5715,15 +5715,15 @@ const Ei = (n, t) => {
|
|
|
5715
5715
|
Y(
|
|
5716
5716
|
[a, r],
|
|
5717
5717
|
() => {
|
|
5718
|
-
a.value.forEach((p,
|
|
5719
|
-
const b = `--onyx-data-grid-column-${go(
|
|
5718
|
+
a.value.forEach((p, v) => {
|
|
5719
|
+
const b = `--onyx-data-grid-column-${go(v)}`, h = p.closest(".onyx-table-wrapper__container"), g = r.value.get(v);
|
|
5720
5720
|
g ? h?.style.setProperty(b, g) : h?.style.removeProperty(b);
|
|
5721
5721
|
});
|
|
5722
5722
|
},
|
|
5723
5723
|
{ flush: "post", deep: !0 }
|
|
5724
5724
|
);
|
|
5725
5725
|
const c = (p) => {
|
|
5726
|
-
const
|
|
5726
|
+
const v = p.map((b) => {
|
|
5727
5727
|
if (!s.value(b.key)) return b;
|
|
5728
5728
|
const h = {
|
|
5729
5729
|
class: "onyx-data-grid-resize-cell",
|
|
@@ -5737,16 +5737,16 @@ const Ei = (n, t) => {
|
|
|
5737
5737
|
thAttributes: fe(h, b.thAttributes)
|
|
5738
5738
|
};
|
|
5739
5739
|
});
|
|
5740
|
-
return
|
|
5741
|
-
}, d = (p,
|
|
5740
|
+
return v.push({ key: Ct, type: { name: Ct }, label: "" }), v;
|
|
5741
|
+
}, d = (p, v, b) => {
|
|
5742
5742
|
const h = p.default?.();
|
|
5743
|
-
return !s.value(
|
|
5743
|
+
return !s.value(v.key) || b ? h : [
|
|
5744
5744
|
le(lo, {
|
|
5745
5745
|
min: o,
|
|
5746
|
-
element: a.value.get(
|
|
5747
|
-
active: e.value?.key ===
|
|
5746
|
+
element: a.value.get(v.key),
|
|
5747
|
+
active: e.value?.key === v.key,
|
|
5748
5748
|
onStart: () => {
|
|
5749
|
-
e.value =
|
|
5749
|
+
e.value = v, Array.from(a.value.entries()).forEach(([g, $]) => {
|
|
5750
5750
|
const { width: x } = $.getBoundingClientRect();
|
|
5751
5751
|
r.value.set(g, `${Math.max(o, x)}px`);
|
|
5752
5752
|
});
|
|
@@ -5755,9 +5755,9 @@ const Ei = (n, t) => {
|
|
|
5755
5755
|
e.value = void 0;
|
|
5756
5756
|
},
|
|
5757
5757
|
onUpdateWidth: (g) => {
|
|
5758
|
-
r.value.set(
|
|
5758
|
+
r.value.set(v.key, `${g}px`);
|
|
5759
5759
|
},
|
|
5760
|
-
onAutoSize: () => r.value.set(
|
|
5760
|
+
onAutoSize: () => r.value.set(v.key, "max-content")
|
|
5761
5761
|
}),
|
|
5762
5762
|
h
|
|
5763
5763
|
];
|
|
@@ -5788,8 +5788,8 @@ const Ei = (n, t) => {
|
|
|
5788
5788
|
}
|
|
5789
5789
|
},
|
|
5790
5790
|
header: {
|
|
5791
|
-
wrapper: (p,
|
|
5792
|
-
const $ =
|
|
5791
|
+
wrapper: (p, v, { length: b }) => (h, { slots: g }) => {
|
|
5792
|
+
const $ = v === b - 1, x = p.type.name === Ct;
|
|
5793
5793
|
return d(g, p, $ || x);
|
|
5794
5794
|
}
|
|
5795
5795
|
}
|
|
@@ -5878,7 +5878,7 @@ const Ei = (n, t) => {
|
|
|
5878
5878
|
direction: $,
|
|
5879
5879
|
column: x
|
|
5880
5880
|
};
|
|
5881
|
-
},
|
|
5881
|
+
}, v = m(() => (h, g) => e.value.column === h && e.value.direction === g), b = (h, g) => {
|
|
5882
5882
|
const $ = {
|
|
5883
5883
|
none: Pa,
|
|
5884
5884
|
asc: rn,
|
|
@@ -5887,7 +5887,7 @@ const Ei = (n, t) => {
|
|
|
5887
5887
|
return le(
|
|
5888
5888
|
Ne,
|
|
5889
5889
|
{
|
|
5890
|
-
active:
|
|
5890
|
+
active: v.value(h, g),
|
|
5891
5891
|
onClick: () => e.value = { column: h, direction: g }
|
|
5892
5892
|
},
|
|
5893
5893
|
() => [
|
|
@@ -5942,31 +5942,31 @@ const Ei = (n, t) => {
|
|
|
5942
5942
|
if (!("ResizeObserver" in window)) return;
|
|
5943
5943
|
const p = new ResizeObserver(() => {
|
|
5944
5944
|
Object.entries(a.value).forEach(
|
|
5945
|
-
([
|
|
5946
|
-
), t.value.forEach((
|
|
5945
|
+
([v, b]) => o.value[v] = b.getBoundingClientRect().width
|
|
5946
|
+
), t.value.forEach((v, b) => c(v, b));
|
|
5947
5947
|
});
|
|
5948
5948
|
Y(
|
|
5949
5949
|
a,
|
|
5950
5950
|
() => {
|
|
5951
|
-
p.disconnect(), Object.values(a.value).forEach((
|
|
5951
|
+
p.disconnect(), Object.values(a.value).forEach((v) => p.observe(v));
|
|
5952
5952
|
},
|
|
5953
5953
|
{ deep: !0, immediate: !0 }
|
|
5954
5954
|
), Lt(() => p.disconnect());
|
|
5955
5955
|
});
|
|
5956
|
-
const c = (p,
|
|
5956
|
+
const c = (p, v) => {
|
|
5957
5957
|
if (!n) return;
|
|
5958
|
-
const b = t.value.map((h) => o.value[h]).reduce((h, g, $) => $ <
|
|
5958
|
+
const b = t.value.map((h) => o.value[h]).reduce((h, g, $) => $ < v ? h + g : h, 0);
|
|
5959
5959
|
document.body.style.setProperty(u(p), `${b}px`);
|
|
5960
5960
|
}, d = (p) => {
|
|
5961
|
-
const
|
|
5962
|
-
r.value = e.value === "left" && b > 0 || e.value === "right" && b <
|
|
5961
|
+
const v = p.scrollWidth - p.clientWidth, b = Math.round(p.scrollLeft);
|
|
5962
|
+
r.value = e.value === "left" && b > 0 || e.value === "right" && b < v;
|
|
5963
5963
|
};
|
|
5964
5964
|
return {
|
|
5965
5965
|
name: bc,
|
|
5966
5966
|
watch: [e, t, r],
|
|
5967
5967
|
modifyColumns: {
|
|
5968
5968
|
func: (p) => {
|
|
5969
|
-
const
|
|
5969
|
+
const v = p.filter((h) => t.value.includes(h.key)).map((h) => {
|
|
5970
5970
|
const g = e.value === "left" ? {
|
|
5971
5971
|
right: "auto",
|
|
5972
5972
|
left: `var(${u(h.key)})`
|
|
@@ -6000,7 +6000,7 @@ const Ei = (n, t) => {
|
|
|
6000
6000
|
}
|
|
6001
6001
|
};
|
|
6002
6002
|
}), b = p.filter((h) => !t.value.includes(h.key));
|
|
6003
|
-
return e.value === "left" ? [...
|
|
6003
|
+
return e.value === "left" ? [...v, ...b] : [...b, ...v.slice().reverse()];
|
|
6004
6004
|
}
|
|
6005
6005
|
},
|
|
6006
6006
|
scrollContainerAttributes: () => ({
|
|
@@ -6056,6 +6056,7 @@ const Ei = (n, t) => {
|
|
|
6056
6056
|
success: {},
|
|
6057
6057
|
hideSuccessIcon: { type: Boolean },
|
|
6058
6058
|
hideClearIcon: { type: Boolean },
|
|
6059
|
+
showPassword: { type: Boolean },
|
|
6059
6060
|
modelValue: {},
|
|
6060
6061
|
type: { default: "date" },
|
|
6061
6062
|
min: {},
|
|
@@ -6063,13 +6064,13 @@ const Ei = (n, t) => {
|
|
|
6063
6064
|
},
|
|
6064
6065
|
emits: ["update:modelValue", "validityChange"],
|
|
6065
6066
|
setup(n, { emit: t }) {
|
|
6066
|
-
const e = n, o = t, { rootAttrs: a, restAttrs: s } = ge(), { vCustomValidity: r, errorMessages: u } = Pe({ props: e, emit: o }), c = m(() => Be(e.success)), d = m(() => Be(e.message)), { densityClass: p } = F(e), { disabled:
|
|
6067
|
+
const e = n, o = t, { rootAttrs: a, restAttrs: s } = ge(), { vCustomValidity: r, errorMessages: u } = Pe({ 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 = ne(e), g = _t(b), $ = m(() => (O) => {
|
|
6067
6068
|
const L = O != null && O != null ? new Date(O) : void 0;
|
|
6068
6069
|
if (!no(L)) return;
|
|
6069
6070
|
const N = L.toISOString().split("T")[0];
|
|
6070
6071
|
if (e.type === "date") return N;
|
|
6071
|
-
const K = L.getHours().toString().padStart(2, "0"),
|
|
6072
|
-
return `${N}T${K}:${
|
|
6072
|
+
const K = L.getHours().toString().padStart(2, "0"), U = L.getMinutes().toString().padStart(2, "0");
|
|
6073
|
+
return `${N}T${K}:${U}`;
|
|
6073
6074
|
}), x = ae({
|
|
6074
6075
|
props: e,
|
|
6075
6076
|
emit: o,
|
|
@@ -6081,7 +6082,7 @@ const Ei = (n, t) => {
|
|
|
6081
6082
|
x.value = no(L) ? L.toISOString() : "";
|
|
6082
6083
|
}
|
|
6083
6084
|
}), M = J("inputRef");
|
|
6084
|
-
return Ae(M, e), (O, L) => l(h) ? (i(),
|
|
6085
|
+
return Ae(M, e), (O, L) => l(h) ? (i(), f(
|
|
6085
6086
|
"div",
|
|
6086
6087
|
E({
|
|
6087
6088
|
key: 0,
|
|
@@ -6096,7 +6097,7 @@ const Ei = (n, t) => {
|
|
|
6096
6097
|
],
|
|
6097
6098
|
16
|
|
6098
6099
|
/* FULL_PROPS */
|
|
6099
|
-
)) : (i(),
|
|
6100
|
+
)) : (i(), f(
|
|
6100
6101
|
"div",
|
|
6101
6102
|
E({
|
|
6102
6103
|
key: 1,
|
|
@@ -6115,7 +6116,7 @@ const Ei = (n, t) => {
|
|
|
6115
6116
|
class: "onyx-datepicker__loading",
|
|
6116
6117
|
type: "circle"
|
|
6117
6118
|
})) : k("v-if", !0),
|
|
6118
|
-
xe((i(),
|
|
6119
|
+
xe((i(), f("input", E({
|
|
6119
6120
|
id: N,
|
|
6120
6121
|
key: e.type,
|
|
6121
6122
|
ref: "inputRef",
|
|
@@ -6126,7 +6127,7 @@ const Ei = (n, t) => {
|
|
|
6126
6127
|
autofocus: e.autofocus,
|
|
6127
6128
|
name: e.name,
|
|
6128
6129
|
readonly: e.readonly,
|
|
6129
|
-
disabled: l(
|
|
6130
|
+
disabled: l(v) || e.loading,
|
|
6130
6131
|
"aria-label": e.hideLabel ? e.label : void 0,
|
|
6131
6132
|
title: e.hideLabel ? e.label : void 0,
|
|
6132
6133
|
min: $.value(e.min),
|
|
@@ -6207,7 +6208,7 @@ const Ei = (n, t) => {
|
|
|
6207
6208
|
y("div", $c, [
|
|
6208
6209
|
C(c.$slots, "default")
|
|
6209
6210
|
]),
|
|
6210
|
-
a.footer ? (i(),
|
|
6211
|
+
a.footer ? (i(), f("div", Cc, [
|
|
6211
6212
|
C(c.$slots, "footer")
|
|
6212
6213
|
])) : k("v-if", !0)
|
|
6213
6214
|
]),
|
|
@@ -6228,7 +6229,7 @@ const Ei = (n, t) => {
|
|
|
6228
6229
|
const t = n;
|
|
6229
6230
|
Ms(t), Rt(t);
|
|
6230
6231
|
const { densityClass: e } = F(t);
|
|
6231
|
-
return (o, a) => (i(),
|
|
6232
|
+
return (o, a) => (i(), f(
|
|
6232
6233
|
"form",
|
|
6233
6234
|
{
|
|
6234
6235
|
class: I({
|
|
@@ -6310,7 +6311,7 @@ const Ei = (n, t) => {
|
|
|
6310
6311
|
const c = t.shape === "circle" ? Math.min(t.width, t.height) : t.width, d = t.shape === "circle" ? Math.min(t.width, t.height) : t.height;
|
|
6311
6312
|
return { width: `${c}px`, height: `${d}px` };
|
|
6312
6313
|
}), { restAttrs: r, rootAttrs: u } = ge();
|
|
6313
|
-
return (c, d) => (i(),
|
|
6314
|
+
return (c, d) => (i(), f(
|
|
6314
6315
|
"figure",
|
|
6315
6316
|
E(l(u), {
|
|
6316
6317
|
class: [
|
|
@@ -6324,7 +6325,7 @@ const Ei = (n, t) => {
|
|
|
6324
6325
|
key: 0,
|
|
6325
6326
|
class: "onyx-image__source",
|
|
6326
6327
|
style: s.value
|
|
6327
|
-
}, l(r)), null, 16, ["style"])) : (i(),
|
|
6328
|
+
}, l(r)), null, 16, ["style"])) : (i(), f(
|
|
6328
6329
|
G,
|
|
6329
6330
|
{ key: 1 },
|
|
6330
6331
|
[
|
|
@@ -6335,7 +6336,7 @@ const Ei = (n, t) => {
|
|
|
6335
6336
|
alt: t.alt,
|
|
6336
6337
|
onError: d[0] || (d[0] = (p) => o.value = !0)
|
|
6337
6338
|
}), null, 16, Ec),
|
|
6338
|
-
a.value.dark ? (i(),
|
|
6339
|
+
a.value.dark ? (i(), f("img", E({
|
|
6339
6340
|
key: 0,
|
|
6340
6341
|
class: "onyx-image__source onyx-image__source--dark"
|
|
6341
6342
|
}, { ...l(r), ...t }, {
|
|
@@ -6343,7 +6344,7 @@ const Ei = (n, t) => {
|
|
|
6343
6344
|
alt: t.alt,
|
|
6344
6345
|
onError: d[1] || (d[1] = (p) => o.value = !0)
|
|
6345
6346
|
}), null, 16, Bc)) : k("v-if", !0),
|
|
6346
|
-
o.value ? (i(),
|
|
6347
|
+
o.value ? (i(), f(
|
|
6347
6348
|
"div",
|
|
6348
6349
|
E({
|
|
6349
6350
|
key: 1,
|
|
@@ -6412,7 +6413,7 @@ const Ei = (n, t) => {
|
|
|
6412
6413
|
},
|
|
6413
6414
|
setup(n) {
|
|
6414
6415
|
const t = n, e = ve(Ft, void 0), o = m(() => t.orientation === "vertical" && !e?.value);
|
|
6415
|
-
return (a, s) => (i(),
|
|
6416
|
+
return (a, s) => (i(), f("div", {
|
|
6416
6417
|
class: I(["onyx-component onyx-separator", { "onyx-separator--vertical": o.value }]),
|
|
6417
6418
|
role: "separator",
|
|
6418
6419
|
"aria-orientation": t.orientation
|
|
@@ -6449,21 +6450,27 @@ const Ei = (n, t) => {
|
|
|
6449
6450
|
type: { default: "text" },
|
|
6450
6451
|
pattern: {},
|
|
6451
6452
|
hideSuccessIcon: { type: Boolean, default: !1 },
|
|
6452
|
-
hideClearIcon: { type: Boolean, default: !1 }
|
|
6453
|
+
hideClearIcon: { type: Boolean, default: !1 },
|
|
6454
|
+
showPassword: { type: Boolean, default: void 0 }
|
|
6453
6455
|
},
|
|
6454
|
-
emits: ["validityChange", "update:modelValue"],
|
|
6456
|
+
emits: ["validityChange", "update:modelValue", "update:showPassword"],
|
|
6455
6457
|
setup(n, { expose: t, emit: e }) {
|
|
6456
6458
|
const o = n, a = e, s = ce(), r = ae({
|
|
6457
6459
|
key: "modelValue",
|
|
6458
6460
|
props: o,
|
|
6459
6461
|
emit: a,
|
|
6460
6462
|
default: ""
|
|
6461
|
-
}), { rootAttrs: u, restAttrs: c } = ge(), { t: d } = q(), { maxLength: p, maxLengthError:
|
|
6463
|
+
}), { rootAttrs: u, restAttrs: c } = ge(), { t: d } = q(), { maxLength: p, maxLengthError: v } = ca({ modelValue: r, props: o }), b = m(() => o.error ?? v.value), { vCustomValidity: h, errorMessages: g } = Pe({ 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
6464
|
t({ input: O });
|
|
6463
|
-
const { disabled: L, showError: N } = be(o), K = ne(o),
|
|
6465
|
+
const { disabled: L, showError: N } = be(o), K = ne(o), U = _t(N);
|
|
6464
6466
|
Ae(O, o);
|
|
6465
|
-
const X =
|
|
6466
|
-
|
|
6467
|
+
const X = ae({
|
|
6468
|
+
props: o,
|
|
6469
|
+
emit: a,
|
|
6470
|
+
key: "showPassword",
|
|
6471
|
+
default: !1
|
|
6472
|
+
}), ue = m(() => o.type === "password" && X.value ? "text" : o.type);
|
|
6473
|
+
return (P, D) => l(K) ? (i(), f(
|
|
6467
6474
|
"div",
|
|
6468
6475
|
E({
|
|
6469
6476
|
key: 0,
|
|
@@ -6478,11 +6485,11 @@ const Ei = (n, t) => {
|
|
|
6478
6485
|
],
|
|
6479
6486
|
16
|
|
6480
6487
|
/* FULL_PROPS */
|
|
6481
|
-
)) : (i(),
|
|
6488
|
+
)) : (i(), f(
|
|
6482
6489
|
"div",
|
|
6483
6490
|
E({
|
|
6484
6491
|
key: 1,
|
|
6485
|
-
class: ["onyx-component", "onyx-input", l(w), l(
|
|
6492
|
+
class: ["onyx-component", "onyx-input", l(w), l(U)]
|
|
6486
6493
|
}, l(u)),
|
|
6487
6494
|
[
|
|
6488
6495
|
B(xt, E(o, {
|
|
@@ -6506,7 +6513,7 @@ const Ei = (n, t) => {
|
|
|
6506
6513
|
xe(y("input", E({
|
|
6507
6514
|
id: te,
|
|
6508
6515
|
ref: "inputRef",
|
|
6509
|
-
"onUpdate:modelValue": D[0] || (D[0] = (
|
|
6516
|
+
"onUpdate:modelValue": D[0] || (D[0] = (H) => Ee(r) ? r.value = H : null),
|
|
6510
6517
|
placeholder: o.placeholder,
|
|
6511
6518
|
class: "onyx-input__native",
|
|
6512
6519
|
type: ue.value,
|
|
@@ -6526,7 +6533,7 @@ const Ei = (n, t) => {
|
|
|
6526
6533
|
[tn, l(r)],
|
|
6527
6534
|
[l(h)]
|
|
6528
6535
|
]),
|
|
6529
|
-
!o.hideClearIcon && l(r) !== "" ? (i(),
|
|
6536
|
+
!o.hideClearIcon && l(r) !== "" ? (i(), f("button", {
|
|
6530
6537
|
key: 2,
|
|
6531
6538
|
type: "button",
|
|
6532
6539
|
class: "onyx-input__clear",
|
|
@@ -6551,11 +6558,11 @@ const Ei = (n, t) => {
|
|
|
6551
6558
|
C(P.$slots, "trailing", {}, () => [
|
|
6552
6559
|
o.type === "password" ? (i(), _(we, {
|
|
6553
6560
|
key: 0,
|
|
6554
|
-
icon: X
|
|
6555
|
-
label: X
|
|
6561
|
+
icon: l(X) ? l(Ha) : l(Ga),
|
|
6562
|
+
label: l(X) ? l(d)("input.hidePassword") : l(d)("input.showPassword"),
|
|
6556
6563
|
tabindex: "-1",
|
|
6557
6564
|
color: "soft",
|
|
6558
|
-
onClick: D[2] || (D[2] = (
|
|
6565
|
+
onClick: D[2] || (D[2] = (H) => X.value = !l(X))
|
|
6559
6566
|
}, null, 8, ["icon", "label"])) : k("v-if", !0)
|
|
6560
6567
|
])
|
|
6561
6568
|
])
|
|
@@ -6610,7 +6617,7 @@ const Ei = (n, t) => {
|
|
|
6610
6617
|
emits: ["update:open"],
|
|
6611
6618
|
setup(n, { emit: t }) {
|
|
6612
6619
|
const e = n, o = t, a = m(() => !e.disabled && e.open);
|
|
6613
|
-
return (s, r) => (i(),
|
|
6620
|
+
return (s, r) => (i(), f("div", Vc, [
|
|
6614
6621
|
y("button", {
|
|
6615
6622
|
type: "button",
|
|
6616
6623
|
class: I(["onyx-mobile-nav-button__trigger", { "onyx-mobile-nav-button__trigger--active": e.open }]),
|
|
@@ -6650,7 +6657,7 @@ const Ei = (n, t) => {
|
|
|
6650
6657
|
), [
|
|
6651
6658
|
[Yt, a.value]
|
|
6652
6659
|
]),
|
|
6653
|
-
a.value ? (i(),
|
|
6660
|
+
a.value ? (i(), f("div", {
|
|
6654
6661
|
key: 0,
|
|
6655
6662
|
class: "onyx-mobile-nav-button__backdrop",
|
|
6656
6663
|
role: "presentation",
|
|
@@ -6677,7 +6684,7 @@ const Ei = (n, t) => {
|
|
|
6677
6684
|
modal: "",
|
|
6678
6685
|
class: ["onyx-modal", l(r)],
|
|
6679
6686
|
"aria-describedby": c.value ? l(u) : void 0,
|
|
6680
|
-
"onUpdate:open": p[1] || (p[1] = (
|
|
6687
|
+
"onUpdate:open": p[1] || (p[1] = (v) => o("update:open", v))
|
|
6681
6688
|
}), {
|
|
6682
6689
|
default: S(() => [
|
|
6683
6690
|
y("div", Fc, [
|
|
@@ -6704,10 +6711,10 @@ const Ei = (n, t) => {
|
|
|
6704
6711
|
class: "onyx-alert-dialog__close",
|
|
6705
6712
|
label: l(s)("dialog.close"),
|
|
6706
6713
|
icon: l(De),
|
|
6707
|
-
onClick: p[0] || (p[0] = (
|
|
6714
|
+
onClick: p[0] || (p[0] = (v) => o("update:open", !1))
|
|
6708
6715
|
}, null, 8, ["label", "icon"]))
|
|
6709
6716
|
]),
|
|
6710
|
-
c.value ? (i(),
|
|
6717
|
+
c.value ? (i(), f("div", {
|
|
6711
6718
|
key: 0,
|
|
6712
6719
|
id: l(u),
|
|
6713
6720
|
class: "onyx-modal__description onyx-text--small"
|
|
@@ -6718,7 +6725,7 @@ const Ei = (n, t) => {
|
|
|
6718
6725
|
y("div", Gc, [
|
|
6719
6726
|
C(d.$slots, "default")
|
|
6720
6727
|
]),
|
|
6721
|
-
a.footer ? (i(),
|
|
6728
|
+
a.footer ? (i(), f("div", qc, [
|
|
6722
6729
|
C(d.$slots, "footer")
|
|
6723
6730
|
])) : k("v-if", !0)
|
|
6724
6731
|
]),
|
|
@@ -6745,7 +6752,7 @@ const Ei = (n, t) => {
|
|
|
6745
6752
|
}), {
|
|
6746
6753
|
default: S(() => [
|
|
6747
6754
|
C(s.$slots, "default", {}, () => [
|
|
6748
|
-
t.logoUrl ? (i(),
|
|
6755
|
+
t.logoUrl ? (i(), f("img", {
|
|
6749
6756
|
key: 0,
|
|
6750
6757
|
src: t.logoUrl,
|
|
6751
6758
|
alt: l(e)("navigation.appLogo", { appName: t.appName }),
|
|
@@ -6753,7 +6760,7 @@ const Ei = (n, t) => {
|
|
|
6753
6760
|
width: "24",
|
|
6754
6761
|
height: "24"
|
|
6755
6762
|
}, null, 8, Kc)) : k("v-if", !0),
|
|
6756
|
-
t.appName ? (i(),
|
|
6763
|
+
t.appName ? (i(), f(
|
|
6757
6764
|
"span",
|
|
6758
6765
|
jc,
|
|
6759
6766
|
T(t.appName),
|
|
@@ -6783,16 +6790,16 @@ const Ei = (n, t) => {
|
|
|
6783
6790
|
const e = n, o = t, a = ce(), s = V();
|
|
6784
6791
|
Ie(() => s.value = e.modelValue);
|
|
6785
6792
|
const { t: r } = q(), u = pe(), c = (p) => {
|
|
6786
|
-
const
|
|
6787
|
-
s.value =
|
|
6793
|
+
const v = p.target;
|
|
6794
|
+
s.value = v.value;
|
|
6788
6795
|
}, d = () => {
|
|
6789
6796
|
s.value && (o("update:modelValue", s.value), o("update:open", !1));
|
|
6790
6797
|
};
|
|
6791
|
-
return (p,
|
|
6798
|
+
return (p, v) => (i(), _(pa, E(e, {
|
|
6792
6799
|
open: e.open,
|
|
6793
6800
|
class: "onyx-select-dialog",
|
|
6794
6801
|
label: e.label,
|
|
6795
|
-
"onUpdate:open":
|
|
6802
|
+
"onUpdate:open": v[1] || (v[1] = (b) => o("update:open", b))
|
|
6796
6803
|
}), _e({
|
|
6797
6804
|
footer: S(() => [
|
|
6798
6805
|
B(Lr, null, {
|
|
@@ -6801,7 +6808,7 @@ const Ei = (n, t) => {
|
|
|
6801
6808
|
label: l(r)("cancel"),
|
|
6802
6809
|
mode: "plain",
|
|
6803
6810
|
color: "neutral",
|
|
6804
|
-
onClick:
|
|
6811
|
+
onClick: v[0] || (v[0] = (b) => o("update:open", !1))
|
|
6805
6812
|
}, null, 8, ["label"]),
|
|
6806
6813
|
B(lt, {
|
|
6807
6814
|
label: l(r)("apply"),
|
|
@@ -6826,10 +6833,10 @@ const Ei = (n, t) => {
|
|
|
6826
6833
|
onChange: c
|
|
6827
6834
|
},
|
|
6828
6835
|
[
|
|
6829
|
-
(i(!0),
|
|
6836
|
+
(i(!0), f(
|
|
6830
6837
|
G,
|
|
6831
6838
|
null,
|
|
6832
|
-
de(e.options, (b) => (i(),
|
|
6839
|
+
de(e.options, (b) => (i(), f("label", {
|
|
6833
6840
|
key: b.value
|
|
6834
6841
|
}, [
|
|
6835
6842
|
B(
|
|
@@ -6871,7 +6878,7 @@ const Ei = (n, t) => {
|
|
|
6871
6878
|
1
|
|
6872
6879
|
/* TEXT */
|
|
6873
6880
|
),
|
|
6874
|
-
b.description ? (i(),
|
|
6881
|
+
b.description ? (i(), f(
|
|
6875
6882
|
"p",
|
|
6876
6883
|
Xc,
|
|
6877
6884
|
T(b.description),
|
|
@@ -7107,17 +7114,17 @@ const Ei = (n, t) => {
|
|
|
7107
7114
|
emit: o,
|
|
7108
7115
|
key: "open",
|
|
7109
7116
|
default: !1
|
|
7110
|
-
}), { restAttrs: u, rootAttrs: c } = ge(), d = m(() => !!a.children), { isActive: p } = rt(),
|
|
7117
|
+
}), { 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
7118
|
Ft,
|
|
7112
7119
|
m(() => !1)
|
|
7113
7120
|
), h = ve(da, void 0), g = ve(Zo, !0);
|
|
7114
7121
|
Re(Zo, !1);
|
|
7115
7122
|
const { componentRef: $, isVisible: x } = g ? Nn(ua) : { isVisible: ie(!0) };
|
|
7116
|
-
return (w, M) => (i(),
|
|
7123
|
+
return (w, M) => (i(), f(
|
|
7117
7124
|
G,
|
|
7118
7125
|
null,
|
|
7119
7126
|
[
|
|
7120
|
-
l(b) && l(r) ? (i(),
|
|
7127
|
+
l(b) && l(r) ? (i(), f(
|
|
7121
7128
|
"div",
|
|
7122
7129
|
E({
|
|
7123
7130
|
key: 0,
|
|
@@ -7136,12 +7143,12 @@ const Ei = (n, t) => {
|
|
|
7136
7143
|
icon: l(ln),
|
|
7137
7144
|
onClick: M[0] || (M[0] = (O) => r.value = !1)
|
|
7138
7145
|
}, null, 8, ["label", "icon"]),
|
|
7139
|
-
e.link ? (i(),
|
|
7146
|
+
e.link ? (i(), f(
|
|
7140
7147
|
G,
|
|
7141
7148
|
{ key: 0 },
|
|
7142
7149
|
[
|
|
7143
7150
|
B(We, E(l(fe)(e, l(u)), {
|
|
7144
|
-
active:
|
|
7151
|
+
active: v.value,
|
|
7145
7152
|
context: "mobile"
|
|
7146
7153
|
}), {
|
|
7147
7154
|
default: S(() => [
|
|
@@ -7163,7 +7170,7 @@ const Ei = (n, t) => {
|
|
|
7163
7170
|
16
|
|
7164
7171
|
/* FULL_PROPS */
|
|
7165
7172
|
)) : l(b) ? (i(), _(We, E({ key: 1 }, l(fe)(e, w.$attrs), {
|
|
7166
|
-
active:
|
|
7173
|
+
active: v.value,
|
|
7167
7174
|
context: "mobile",
|
|
7168
7175
|
onClick: M[1] || (M[1] = (O) => d.value && (r.value = !0))
|
|
7169
7176
|
}), _e({
|
|
@@ -7187,7 +7194,7 @@ const Ei = (n, t) => {
|
|
|
7187
7194
|
B(We, E(l(fe)(l(u), e, O), {
|
|
7188
7195
|
ref_key: "componentRef",
|
|
7189
7196
|
ref: $,
|
|
7190
|
-
active:
|
|
7197
|
+
active: v.value,
|
|
7191
7198
|
context: "navbar"
|
|
7192
7199
|
}), _e({
|
|
7193
7200
|
default: S(() => [
|
|
@@ -7213,7 +7220,7 @@ const Ei = (n, t) => {
|
|
|
7213
7220
|
}, 16, ["label"])) : l(g) && l(x) ? (i(), _(We, E({ key: 3 }, l(fe)(e, w.$attrs), {
|
|
7214
7221
|
ref_key: "componentRef",
|
|
7215
7222
|
ref: $,
|
|
7216
|
-
active:
|
|
7223
|
+
active: v.value,
|
|
7217
7224
|
context: "navbar"
|
|
7218
7225
|
}), {
|
|
7219
7226
|
default: S(() => [
|
|
@@ -7222,7 +7229,7 @@ const Ei = (n, t) => {
|
|
|
7222
7229
|
_: 3
|
|
7223
7230
|
/* FORWARDED */
|
|
7224
7231
|
}, 16, ["active"])) : l(x) ? (i(), _(We, E({ key: 4 }, l(fe)(e, w.$attrs), {
|
|
7225
|
-
active:
|
|
7232
|
+
active: v.value,
|
|
7226
7233
|
context: "list"
|
|
7227
7234
|
}), _e({
|
|
7228
7235
|
default: S(() => [
|
|
@@ -7244,7 +7251,7 @@ const Ei = (n, t) => {
|
|
|
7244
7251
|
to: l(h)
|
|
7245
7252
|
}, [
|
|
7246
7253
|
l(x) ? k("v-if", !0) : (i(), _(We, E({ key: 0 }, l(fe)(e, w.$attrs), {
|
|
7247
|
-
active:
|
|
7254
|
+
active: v.value,
|
|
7248
7255
|
context: "list"
|
|
7249
7256
|
}), _e({
|
|
7250
7257
|
default: S(() => [
|
|
@@ -7322,12 +7329,12 @@ const Ei = (n, t) => {
|
|
|
7322
7329
|
* Time (in milliseconds) that the timer has left.
|
|
7323
7330
|
*/
|
|
7324
7331
|
timeLeft: r
|
|
7325
|
-
}), (p,
|
|
7332
|
+
}), (p, v) => (i(), f("div", {
|
|
7326
7333
|
class: "onyx-component onyx-timer onyx-text onyx-truncation-ellipsis",
|
|
7327
7334
|
role: "timer",
|
|
7328
7335
|
"aria-label": o.hideLabel ? o.label : void 0
|
|
7329
7336
|
}, [
|
|
7330
|
-
o.hideLabel ? k("v-if", !0) : (i(),
|
|
7337
|
+
o.hideLabel ? k("v-if", !0) : (i(), f(
|
|
7331
7338
|
"span",
|
|
7332
7339
|
pu,
|
|
7333
7340
|
T(o.label),
|
|
@@ -7355,8 +7362,8 @@ const Ei = (n, t) => {
|
|
|
7355
7362
|
key: "flyoutOpen",
|
|
7356
7363
|
default: !1
|
|
7357
7364
|
}), { t: r } = q();
|
|
7358
|
-
return (u, c) => (i(),
|
|
7359
|
-
e.isMobile ? (i(),
|
|
7365
|
+
return (u, c) => (i(), f("div", yu, [
|
|
7366
|
+
e.isMobile ? (i(), f(
|
|
7360
7367
|
G,
|
|
7361
7368
|
{ key: 0 },
|
|
7362
7369
|
[
|
|
@@ -7382,7 +7389,7 @@ const Ei = (n, t) => {
|
|
|
7382
7389
|
"onUpdate:open": c[0] || (c[0] = (d) => Ee(s) ? s.value = d : null),
|
|
7383
7390
|
label: l(r)("navigation.userMenuLabel"),
|
|
7384
7391
|
alignment: "right",
|
|
7385
|
-
disabled:
|
|
7392
|
+
disabled: n.disabled
|
|
7386
7393
|
}, _e({
|
|
7387
7394
|
button: S(({ trigger: d }) => [
|
|
7388
7395
|
C(u.$slots, "button", { trigger: d })
|
|
@@ -7436,7 +7443,7 @@ const Ei = (n, t) => {
|
|
|
7436
7443
|
"onUpdate:flyoutOpen": d[0] || (d[0] = (p) => Ee(s) ? s.value = p : null),
|
|
7437
7444
|
class: I(["onyx-component onyx-user-menu", { "onyx-user-menu--mobile": l(u) }]),
|
|
7438
7445
|
"is-mobile": l(u),
|
|
7439
|
-
disabled:
|
|
7446
|
+
disabled: n.disabled
|
|
7440
7447
|
}, _e({
|
|
7441
7448
|
button: S(({ trigger: p }) => [
|
|
7442
7449
|
y(
|
|
@@ -7482,7 +7489,7 @@ const Ei = (n, t) => {
|
|
|
7482
7489
|
1
|
|
7483
7490
|
/* TEXT */
|
|
7484
7491
|
),
|
|
7485
|
-
e.description ? (i(),
|
|
7492
|
+
e.description ? (i(), f(
|
|
7486
7493
|
"div",
|
|
7487
7494
|
xu,
|
|
7488
7495
|
T(e.description),
|
|
@@ -7534,10 +7541,10 @@ const Ei = (n, t) => {
|
|
|
7534
7541
|
setup(n, { expose: t, emit: e }) {
|
|
7535
7542
|
const o = n, a = e, s = ce(), r = J("navBarRef"), { width: u } = He(r), { t: c } = q(), { currentRoute: d } = rt(), {
|
|
7536
7543
|
elements: { nav: p }
|
|
7537
|
-
} = _s({ navigationName: ie(() => o.appName) }),
|
|
7544
|
+
} = _s({ navigationName: ie(() => 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(Ot[o.mobile], u.value) : o.mobile);
|
|
7538
7545
|
Re(Ft, g), Re(da, J("moreListRef"));
|
|
7539
7546
|
const $ = () => {
|
|
7540
|
-
|
|
7547
|
+
v.value = !1, b.value = !1;
|
|
7541
7548
|
};
|
|
7542
7549
|
return Y(d, () => $(), { deep: !0 }), t({
|
|
7543
7550
|
/**
|
|
@@ -7555,7 +7562,7 @@ const Ei = (n, t) => {
|
|
|
7555
7562
|
* ```
|
|
7556
7563
|
*/
|
|
7557
7564
|
closeMobileMenus: $
|
|
7558
|
-
}), (x, w) => (i(),
|
|
7565
|
+
}), (x, w) => (i(), f(
|
|
7559
7566
|
"header",
|
|
7560
7567
|
{
|
|
7561
7568
|
ref: "navBarRef",
|
|
@@ -7563,7 +7570,7 @@ const Ei = (n, t) => {
|
|
|
7563
7570
|
},
|
|
7564
7571
|
[
|
|
7565
7572
|
y("div", Su, [
|
|
7566
|
-
g.value && s.mobileActivePage && !
|
|
7573
|
+
g.value && s.mobileActivePage && !v.value && !b.value ? (i(), f("span", $u, [
|
|
7567
7574
|
C(x.$slots, "mobileActivePage")
|
|
7568
7575
|
])) : o.appName || o.logoUrl || s.appArea ? (i(), _(Wc, E({
|
|
7569
7576
|
key: 1,
|
|
@@ -7585,15 +7592,15 @@ const Ei = (n, t) => {
|
|
|
7585
7592
|
color: "neutral",
|
|
7586
7593
|
onClick: w[0] || (w[0] = (M) => a("navigateBack", M))
|
|
7587
7594
|
}, null, 8, ["label", "icon"])) : k("v-if", !0),
|
|
7588
|
-
s.default ? (i(),
|
|
7595
|
+
s.default ? (i(), f(
|
|
7589
7596
|
G,
|
|
7590
7597
|
{ key: 3 },
|
|
7591
7598
|
[
|
|
7592
7599
|
g.value ? (i(), _(Xo, {
|
|
7593
7600
|
key: 0,
|
|
7594
|
-
open:
|
|
7601
|
+
open: v.value,
|
|
7595
7602
|
"onUpdate:open": [
|
|
7596
|
-
w[1] || (w[1] = (M) =>
|
|
7603
|
+
w[1] || (w[1] = (M) => v.value = M),
|
|
7597
7604
|
w[2] || (w[2] = (M) => b.value = !1)
|
|
7598
7605
|
],
|
|
7599
7606
|
class: "onyx-nav-bar__burger",
|
|
@@ -7616,7 +7623,7 @@ const Ei = (n, t) => {
|
|
|
7616
7623
|
]),
|
|
7617
7624
|
_: 3
|
|
7618
7625
|
/* FORWARDED */
|
|
7619
|
-
}, 8, ["open", "icon", "label", "headline"])) : (i(),
|
|
7626
|
+
}, 8, ["open", "icon", "label", "headline"])) : (i(), f(
|
|
7620
7627
|
"nav",
|
|
7621
7628
|
E({
|
|
7622
7629
|
key: 1,
|
|
@@ -7673,12 +7680,12 @@ const Ei = (n, t) => {
|
|
|
7673
7680
|
64
|
|
7674
7681
|
/* STABLE_FRAGMENT */
|
|
7675
7682
|
)) : k("v-if", !0),
|
|
7676
|
-
s.contextArea || s.globalContextArea ? (i(),
|
|
7683
|
+
s.contextArea || s.globalContextArea ? (i(), f(
|
|
7677
7684
|
G,
|
|
7678
7685
|
{ key: 4 },
|
|
7679
7686
|
[
|
|
7680
|
-
g.value ? (i(),
|
|
7681
|
-
s.globalContextArea ? (i(),
|
|
7687
|
+
g.value ? (i(), f("div", Bu, [
|
|
7688
|
+
s.globalContextArea ? (i(), f("div", Ou, [
|
|
7682
7689
|
C(x.$slots, "globalContextArea")
|
|
7683
7690
|
])) : k("v-if", !0),
|
|
7684
7691
|
s.contextArea ? (i(), _(Xo, {
|
|
@@ -7686,7 +7693,7 @@ const Ei = (n, t) => {
|
|
|
7686
7693
|
open: b.value,
|
|
7687
7694
|
"onUpdate:open": [
|
|
7688
7695
|
w[3] || (w[3] = (M) => b.value = M),
|
|
7689
|
-
w[4] || (w[4] = (M) =>
|
|
7696
|
+
w[4] || (w[4] = (M) => v.value = !1)
|
|
7690
7697
|
],
|
|
7691
7698
|
icon: l(un),
|
|
7692
7699
|
label: l(c)("navigation.toggleContextMenu")
|
|
@@ -7699,7 +7706,7 @@ const Ei = (n, t) => {
|
|
|
7699
7706
|
_: 3
|
|
7700
7707
|
/* FORWARDED */
|
|
7701
7708
|
}, 8, ["open", "icon", "label"])) : k("v-if", !0)
|
|
7702
|
-
])) : (i(),
|
|
7709
|
+
])) : (i(), f("div", Mu, [
|
|
7703
7710
|
s.globalContextArea ? C(x.$slots, "globalContextArea", { key: 0 }) : k("v-if", !0),
|
|
7704
7711
|
s.contextArea ? C(x.$slots, "contextArea", { key: 1 }) : k("v-if", !0)
|
|
7705
7712
|
]))
|
|
@@ -7724,8 +7731,8 @@ const Ei = (n, t) => {
|
|
|
7724
7731
|
);
|
|
7725
7732
|
}), Lt(() => clearInterval(s));
|
|
7726
7733
|
const r = m(() => {
|
|
7727
|
-
const
|
|
7728
|
-
return Math.floor(
|
|
7734
|
+
const v = new Date(l(n.time)).getTime() - a.value;
|
|
7735
|
+
return Math.floor(v / 1e3);
|
|
7729
7736
|
}), u = {
|
|
7730
7737
|
// important: the values here must be sorted from highest to lowest so the highest possible value is used for the "timeAgo"
|
|
7731
7738
|
year: 3600 * 24 * 365,
|
|
@@ -7745,8 +7752,8 @@ const Ei = (n, t) => {
|
|
|
7745
7752
|
*/
|
|
7746
7753
|
timeAgo: m(() => {
|
|
7747
7754
|
if (!c.value) return e.value("now");
|
|
7748
|
-
const p = r.value / u[c.value],
|
|
7749
|
-
return o.value.format(
|
|
7755
|
+
const p = r.value / u[c.value], v = p < 0 ? Math.ceil(p) : Math.floor(p);
|
|
7756
|
+
return o.value.format(v, c.value);
|
|
7750
7757
|
})
|
|
7751
7758
|
};
|
|
7752
7759
|
}, Lu = {
|
|
@@ -7773,15 +7780,15 @@ const Ei = (n, t) => {
|
|
|
7773
7780
|
time: ie(t, "createdAt"),
|
|
7774
7781
|
options: { numeric: "auto" }
|
|
7775
7782
|
});
|
|
7776
|
-
return (c, d) => (i(),
|
|
7783
|
+
return (c, d) => (i(), f(
|
|
7777
7784
|
"div",
|
|
7778
7785
|
{
|
|
7779
7786
|
class: I(["onyx-component", "onyx-notification-card", l(o)])
|
|
7780
7787
|
},
|
|
7781
7788
|
[
|
|
7782
|
-
l(a) ? (i(),
|
|
7789
|
+
l(a) ? (i(), f("div", Lu, [
|
|
7783
7790
|
B(Z, { class: "onyx-notification-card-skeleton__header" }),
|
|
7784
|
-
(i(),
|
|
7791
|
+
(i(), f(
|
|
7785
7792
|
G,
|
|
7786
7793
|
null,
|
|
7787
7794
|
de(3, (p) => B(Z, {
|
|
@@ -7791,7 +7798,7 @@ const Ei = (n, t) => {
|
|
|
7791
7798
|
64
|
|
7792
7799
|
/* STABLE_FRAGMENT */
|
|
7793
7800
|
))
|
|
7794
|
-
])) : (i(),
|
|
7801
|
+
])) : (i(), f("div", Ru, [
|
|
7795
7802
|
y("div", null, [
|
|
7796
7803
|
y("div", Vu, [
|
|
7797
7804
|
y("div", Nu, [
|
|
@@ -7858,7 +7865,7 @@ const Ei = (n, t) => {
|
|
|
7858
7865
|
y("p", Fu, [
|
|
7859
7866
|
C(c.$slots, "default")
|
|
7860
7867
|
]),
|
|
7861
|
-
e.actions ? (i(),
|
|
7868
|
+
e.actions ? (i(), f("div", Pu, [
|
|
7862
7869
|
C(c.$slots, "actions")
|
|
7863
7870
|
])) : k("v-if", !0)
|
|
7864
7871
|
]))
|
|
@@ -7875,7 +7882,7 @@ const Ei = (n, t) => {
|
|
|
7875
7882
|
},
|
|
7876
7883
|
setup(n) {
|
|
7877
7884
|
const t = n;
|
|
7878
|
-
return (e, o) => (i(),
|
|
7885
|
+
return (e, o) => (i(), f("div", Uu, [
|
|
7879
7886
|
C(e.$slots, "default"),
|
|
7880
7887
|
t.hidden ? k("v-if", !0) : (i(), _(Nt, {
|
|
7881
7888
|
key: 0,
|
|
@@ -7903,7 +7910,7 @@ const Ei = (n, t) => {
|
|
|
7903
7910
|
},
|
|
7904
7911
|
setup(n) {
|
|
7905
7912
|
const t = n, e = ce();
|
|
7906
|
-
return Rt(t), (o, a) => (i(),
|
|
7913
|
+
return Rt(t), (o, a) => (i(), f(
|
|
7907
7914
|
"div",
|
|
7908
7915
|
{
|
|
7909
7916
|
class: I(["onyx-component onyx-page", [
|
|
@@ -7913,7 +7920,7 @@ const Ei = (n, t) => {
|
|
|
7913
7920
|
]])
|
|
7914
7921
|
},
|
|
7915
7922
|
[
|
|
7916
|
-
e.sidebar ? (i(),
|
|
7923
|
+
e.sidebar ? (i(), f("div", Hu, [
|
|
7917
7924
|
C(o.$slots, "sidebar")
|
|
7918
7925
|
])) : k("v-if", !0),
|
|
7919
7926
|
y("main", Gu, [
|
|
@@ -7929,10 +7936,10 @@ const Ei = (n, t) => {
|
|
|
7929
7936
|
/* CLASS */
|
|
7930
7937
|
)
|
|
7931
7938
|
]),
|
|
7932
|
-
e.sidebarRight ? (i(),
|
|
7939
|
+
e.sidebarRight ? (i(), f("div", qu, [
|
|
7933
7940
|
C(o.$slots, "sidebarRight")
|
|
7934
7941
|
])) : k("v-if", !0),
|
|
7935
|
-
e.footer ? (i(),
|
|
7942
|
+
e.footer ? (i(), f("div", Ku, [
|
|
7936
7943
|
C(o.$slots, "footer")
|
|
7937
7944
|
])) : k("v-if", !0)
|
|
7938
7945
|
],
|
|
@@ -7956,7 +7963,7 @@ const Ei = (n, t) => {
|
|
|
7956
7963
|
return (s, r) => l(o) ? (i(), _(Z, {
|
|
7957
7964
|
key: 0,
|
|
7958
7965
|
class: I(["onyx-progress-item-skeleton", "onyx-text", l(e)])
|
|
7959
|
-
}, null, 8, ["class"])) : (i(),
|
|
7966
|
+
}, null, 8, ["class"])) : (i(), f("button", {
|
|
7960
7967
|
key: 1,
|
|
7961
7968
|
class: I([
|
|
7962
7969
|
"onyx-component",
|
|
@@ -7972,7 +7979,7 @@ const Ei = (n, t) => {
|
|
|
7972
7979
|
a.value ? (i(), _(z, {
|
|
7973
7980
|
key: 0,
|
|
7974
7981
|
icon: a.value
|
|
7975
|
-
}, null, 8, ["icon"])) : (i(),
|
|
7982
|
+
}, null, 8, ["icon"])) : (i(), f(
|
|
7976
7983
|
G,
|
|
7977
7984
|
{ key: 1 },
|
|
7978
7985
|
[
|
|
@@ -8032,19 +8039,19 @@ const Ei = (n, t) => {
|
|
|
8032
8039
|
);
|
|
8033
8040
|
const u = m(() => e.steps.map((c, d) => {
|
|
8034
8041
|
const p = d + 1;
|
|
8035
|
-
let
|
|
8036
|
-
p === e.modelValue ?
|
|
8037
|
-
const b =
|
|
8042
|
+
let v = "default";
|
|
8043
|
+
p === e.modelValue ? v = "active" : p < e.modelValue ? v = "completed" : p <= r.value - 1 && (v = "visited");
|
|
8044
|
+
const b = v === "default" && p !== r.value;
|
|
8038
8045
|
return {
|
|
8039
8046
|
value: p,
|
|
8040
8047
|
disabled: b,
|
|
8041
|
-
status:
|
|
8048
|
+
status: v,
|
|
8042
8049
|
skeleton: s.value,
|
|
8043
8050
|
// allow user to override step properties so he has full control, therefore we add "...step" at the very end
|
|
8044
8051
|
...c
|
|
8045
8052
|
};
|
|
8046
8053
|
}));
|
|
8047
|
-
return (c, d) => (i(),
|
|
8054
|
+
return (c, d) => (i(), f(
|
|
8048
8055
|
"div",
|
|
8049
8056
|
{
|
|
8050
8057
|
class: I([
|
|
@@ -8056,17 +8063,17 @@ const Ei = (n, t) => {
|
|
|
8056
8063
|
},
|
|
8057
8064
|
[
|
|
8058
8065
|
y("div", Zu, [
|
|
8059
|
-
(i(!0),
|
|
8066
|
+
(i(!0), f(
|
|
8060
8067
|
G,
|
|
8061
8068
|
null,
|
|
8062
|
-
de(u.value, (p) => (i(),
|
|
8069
|
+
de(u.value, (p) => (i(), f(
|
|
8063
8070
|
G,
|
|
8064
8071
|
{
|
|
8065
8072
|
key: p.value
|
|
8066
8073
|
},
|
|
8067
8074
|
[
|
|
8068
8075
|
B(Ju, E({ ref_for: !0 }, p, {
|
|
8069
|
-
onClick: (
|
|
8076
|
+
onClick: (v) => o("update:modelValue", p.value)
|
|
8070
8077
|
}), {
|
|
8071
8078
|
default: S(() => [
|
|
8072
8079
|
C(c.$slots, "step", { step: p })
|
|
@@ -8113,8 +8120,8 @@ const Ei = (n, t) => {
|
|
|
8113
8120
|
},
|
|
8114
8121
|
emits: ["validityChange"],
|
|
8115
8122
|
setup(n, { expose: t, emit: e }) {
|
|
8116
|
-
const o = n, a = e, { rootAttrs: s, restAttrs: r } = ge(), { vCustomValidity: u, errorMessages: c } = Pe({ props: o, emit: a }), { densityClass: d } = F(o), { disabled: p } = be(o),
|
|
8117
|
-
return t({ input: b }), Ae(b, o), (h, g) => l(
|
|
8123
|
+
const o = n, a = e, { rootAttrs: s, restAttrs: r } = ge(), { vCustomValidity: u, errorMessages: c } = Pe({ props: o, emit: a }), { densityClass: d } = F(o), { disabled: p } = be(o), v = ne(o), b = J("inputRef");
|
|
8124
|
+
return t({ input: b }), Ae(b, o), (h, g) => l(v) ? (i(), f(
|
|
8118
8125
|
"div",
|
|
8119
8126
|
E({
|
|
8120
8127
|
key: 0,
|
|
@@ -8142,7 +8149,7 @@ const Ei = (n, t) => {
|
|
|
8142
8149
|
key: 0,
|
|
8143
8150
|
class: "onyx-radio-button__loading",
|
|
8144
8151
|
type: "circle"
|
|
8145
|
-
})) : xe((i(),
|
|
8152
|
+
})) : xe((i(), f("input", E({
|
|
8146
8153
|
key: 1,
|
|
8147
8154
|
ref: "inputRef",
|
|
8148
8155
|
class: "onyx-radio-button__selector",
|
|
@@ -8197,22 +8204,22 @@ const Ei = (n, t) => {
|
|
|
8197
8204
|
},
|
|
8198
8205
|
emits: ["validityChange", "update:modelValue"],
|
|
8199
8206
|
setup(n, { expose: t, emit: e }) {
|
|
8200
|
-
const o = n, { densityClass: a } = F(o), { disabled: s, requiredMarker: r } = be(o), { requiredMarkerClass: u, requiredTypeClass: c } = zt(o, r), d = ne(o), p = e,
|
|
8207
|
+
const o = n, { densityClass: a } = F(o), { disabled: s, requiredMarker: r } = be(o), { requiredMarkerClass: u, requiredTypeClass: c } = zt(o, r), d = ne(o), p = e, v = ae({
|
|
8201
8208
|
props: o,
|
|
8202
8209
|
emit: p,
|
|
8203
8210
|
key: "modelValue"
|
|
8204
8211
|
}), b = (g, $) => {
|
|
8205
|
-
g && (
|
|
8212
|
+
g && (v.value = $);
|
|
8206
8213
|
}, h = J("radiobuttonsRef");
|
|
8207
8214
|
return t({
|
|
8208
8215
|
inputs: m(() => yt(h.value).flatMap(($) => $?.input).filter(($) => !!$))
|
|
8209
|
-
}), (g, $) => (i(),
|
|
8216
|
+
}), (g, $) => (i(), f("fieldset", {
|
|
8210
8217
|
class: I(["onyx-component", "onyx-radio-group", l(a), l(c)]),
|
|
8211
8218
|
disabled: l(s),
|
|
8212
8219
|
role: "radiogroup",
|
|
8213
8220
|
"aria-label": o.label
|
|
8214
8221
|
}, [
|
|
8215
|
-
o.hideLabel ? k("v-if", !0) : (i(),
|
|
8222
|
+
o.hideLabel ? k("v-if", !0) : (i(), f("legend", ed, [
|
|
8216
8223
|
B(Fe, {
|
|
8217
8224
|
is: "h3",
|
|
8218
8225
|
class: I(l(u))
|
|
@@ -8239,7 +8246,7 @@ const Ei = (n, t) => {
|
|
|
8239
8246
|
class: I(["onyx-radio-group__content", { "onyx-radio-group__content--horizontal": o.orientation === "horizontal" }])
|
|
8240
8247
|
},
|
|
8241
8248
|
[
|
|
8242
|
-
l(d) ? typeof l(d) == "number" ? (i(!0),
|
|
8249
|
+
l(d) ? typeof l(d) == "number" ? (i(!0), f(
|
|
8243
8250
|
G,
|
|
8244
8251
|
{ key: 1 },
|
|
8245
8252
|
de(l(d), (x) => (i(), _(Qo, {
|
|
@@ -8252,7 +8259,7 @@ const Ei = (n, t) => {
|
|
|
8252
8259
|
}, null, 8, ["id", "value", "name"]))),
|
|
8253
8260
|
128
|
|
8254
8261
|
/* KEYED_FRAGMENT */
|
|
8255
|
-
)) : k("v-if", !0) : (i(!0),
|
|
8262
|
+
)) : k("v-if", !0) : (i(!0), f(
|
|
8256
8263
|
G,
|
|
8257
8264
|
{ key: 0 },
|
|
8258
8265
|
de(o.options, (x, w) => (i(), _(Qo, E({
|
|
@@ -8262,7 +8269,7 @@ const Ei = (n, t) => {
|
|
|
8262
8269
|
ref: "radiobuttonsRef",
|
|
8263
8270
|
name: o.name,
|
|
8264
8271
|
error: o.error,
|
|
8265
|
-
checked: x.value === l(
|
|
8272
|
+
checked: x.value === l(v),
|
|
8266
8273
|
required: o.required,
|
|
8267
8274
|
truncation: x.truncation ?? o.truncation,
|
|
8268
8275
|
onValidityChange: (M) => w === 0 && p("validityChange", M),
|
|
@@ -8298,7 +8305,7 @@ const Ei = (n, t) => {
|
|
|
8298
8305
|
const t = n, { densityClass: e } = F(t), { disabled: o } = be(t), a = J("inputRef");
|
|
8299
8306
|
Ae(a, t);
|
|
8300
8307
|
const { rootAttrs: s, restAttrs: r } = ge();
|
|
8301
|
-
return (u, c) => (i(),
|
|
8308
|
+
return (u, c) => (i(), f(
|
|
8302
8309
|
"div",
|
|
8303
8310
|
E(l(s), {
|
|
8304
8311
|
class: ["onyx-component", "onyx-segmented-control-element", l(e)]
|
|
@@ -8331,7 +8338,7 @@ const Ei = (n, t) => {
|
|
|
8331
8338
|
icon: t.icon,
|
|
8332
8339
|
class: "onyx-segmented-control-element__icon"
|
|
8333
8340
|
}, null, 8, ["icon"])) : k("v-if", !0),
|
|
8334
|
-
t.hideLabel ? k("v-if", !0) : (i(),
|
|
8341
|
+
t.hideLabel ? k("v-if", !0) : (i(), f(
|
|
8335
8342
|
"p",
|
|
8336
8343
|
ad,
|
|
8337
8344
|
T(t.label),
|
|
@@ -8365,22 +8372,22 @@ const Ei = (n, t) => {
|
|
|
8365
8372
|
return (c, d) => l(a) ? (i(), _(Z, {
|
|
8366
8373
|
key: 0,
|
|
8367
8374
|
class: I(["onyx-segmented-control-skeleton", l(s)])
|
|
8368
|
-
}, null, 8, ["class"])) : (i(),
|
|
8375
|
+
}, null, 8, ["class"])) : (i(), f(
|
|
8369
8376
|
"div",
|
|
8370
8377
|
{
|
|
8371
8378
|
key: 1,
|
|
8372
8379
|
class: I(["onyx-component", "onyx-segmented-control", l(s)])
|
|
8373
8380
|
},
|
|
8374
8381
|
[
|
|
8375
|
-
(i(!0),
|
|
8382
|
+
(i(!0), f(
|
|
8376
8383
|
G,
|
|
8377
8384
|
null,
|
|
8378
|
-
de(
|
|
8385
|
+
de(n.options, (p) => (i(), _(ld, E({
|
|
8379
8386
|
key: p.value.toString()
|
|
8380
8387
|
}, { ref_for: !0 }, p, {
|
|
8381
8388
|
name: e.name,
|
|
8382
8389
|
checked: p.value === l(r),
|
|
8383
|
-
onChange: (
|
|
8390
|
+
onChange: (v) => u(p.value)
|
|
8384
8391
|
}), null, 16, ["name", "checked", "onChange"]))),
|
|
8385
8392
|
128
|
|
8386
8393
|
/* KEYED_FRAGMENT */
|
|
@@ -8413,7 +8420,7 @@ const Ei = (n, t) => {
|
|
|
8413
8420
|
]),
|
|
8414
8421
|
_: 3
|
|
8415
8422
|
/* FORWARDED */
|
|
8416
|
-
}, 16, ["class"])) : (i(),
|
|
8423
|
+
}, 16, ["class"])) : (i(), f(
|
|
8417
8424
|
"button",
|
|
8418
8425
|
{
|
|
8419
8426
|
key: 1,
|
|
@@ -8448,7 +8455,7 @@ const Ei = (n, t) => {
|
|
|
8448
8455
|
const e = n, o = t, a = ce(), { densityClass: s } = F(e), r = In(), u = J("sidebarRef"), c = J("modalRef"), d = V(), p = m(() => {
|
|
8449
8456
|
if (d.value)
|
|
8450
8457
|
return { "--onyx-sidebar-width": `${d.value}px` };
|
|
8451
|
-
}),
|
|
8458
|
+
}), v = m(
|
|
8452
8459
|
() => ({
|
|
8453
8460
|
onUpdateWidth: (w) => d.value = w,
|
|
8454
8461
|
onAutoSize: () => d.value = void 0,
|
|
@@ -8491,7 +8498,7 @@ const Ei = (n, t) => {
|
|
|
8491
8498
|
{ immediate: !0 }
|
|
8492
8499
|
), Lt(() => {
|
|
8493
8500
|
r.remove(x);
|
|
8494
|
-
}), (w, M) => !e.temporary && !h.value ? (i(),
|
|
8501
|
+
}), (w, M) => !e.temporary && !h.value ? (i(), f("aside", {
|
|
8495
8502
|
key: 0,
|
|
8496
8503
|
ref: "sidebarRef",
|
|
8497
8504
|
class: I([
|
|
@@ -8504,19 +8511,19 @@ const Ei = (n, t) => {
|
|
|
8504
8511
|
"aria-label": e.label,
|
|
8505
8512
|
style: Te(p.value)
|
|
8506
8513
|
}, [
|
|
8507
|
-
a.header ? (i(),
|
|
8514
|
+
a.header ? (i(), f("header", dd, [
|
|
8508
8515
|
C(w.$slots, "header")
|
|
8509
8516
|
])) : k("v-if", !0),
|
|
8510
8517
|
y("div", pd, [
|
|
8511
8518
|
C(w.$slots, "default")
|
|
8512
8519
|
]),
|
|
8513
|
-
a.footer ? (i(),
|
|
8520
|
+
a.footer ? (i(), f("footer", md, [
|
|
8514
8521
|
C(w.$slots, "footer")
|
|
8515
8522
|
])) : k("v-if", !0),
|
|
8516
8523
|
e.resizable ? (i(), _(lo, E({
|
|
8517
8524
|
key: 2,
|
|
8518
8525
|
element: u.value
|
|
8519
|
-
},
|
|
8526
|
+
}, v.value), null, 16, ["element"])) : k("v-if", !0)
|
|
8520
8527
|
], 14, ud)) : (i(), _(pa, E({ key: 1 }, e.temporary, {
|
|
8521
8528
|
ref: "modalRef",
|
|
8522
8529
|
open: $.value,
|
|
@@ -8539,7 +8546,7 @@ const Ei = (n, t) => {
|
|
|
8539
8546
|
e.resizable ? (i(), _(lo, E({
|
|
8540
8547
|
key: 0,
|
|
8541
8548
|
element: c.value
|
|
8542
|
-
},
|
|
8549
|
+
}, v.value), null, 16, ["element"])) : k("v-if", !0)
|
|
8543
8550
|
]),
|
|
8544
8551
|
_: 2
|
|
8545
8552
|
/* DYNAMIC */
|
|
@@ -8606,29 +8613,29 @@ const Ei = (n, t) => {
|
|
|
8606
8613
|
},
|
|
8607
8614
|
emits: ["validityChange", "update:modelValue"],
|
|
8608
8615
|
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 = ne(o),
|
|
8616
|
+
const o = n, a = e, { t: s, locale: r } = q(), u = J("inputRef"), { disabled: c, showError: d } = be(o), p = ne(o), v = _t(d), { densityClass: b } = F(o), { vCustomValidity: h, errorMessages: g } = Pe({ props: o, emit: a }), $ = m(() => Be(o.success)), x = m(() => Be(o.message)), { rootAttrs: w, restAttrs: M } = ge(), O = V(!1), L = ae({
|
|
8610
8617
|
props: o,
|
|
8611
8618
|
emit: a,
|
|
8612
8619
|
key: "modelValue"
|
|
8613
|
-
}), N = V(), K = m(() => X.value(L.value)),
|
|
8620
|
+
}), N = V(), K = m(() => X.value(L.value)), U = m(() => (H) => o.precision !== void 0 && H != null ? Go(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
8621
|
minimumFractionDigits: o.precision,
|
|
8615
8622
|
maximumFractionDigits: o.precision
|
|
8616
|
-
}) :
|
|
8623
|
+
}) : H.toLocaleString(r.value) : o.formatNumber(H) : o.precision ? Go(H, o.precision) : String(H));
|
|
8617
8624
|
Ie(() => {
|
|
8618
|
-
N.value =
|
|
8625
|
+
N.value = U.value(L.value);
|
|
8619
8626
|
});
|
|
8620
|
-
const ue = (
|
|
8627
|
+
const ue = (H) => {
|
|
8621
8628
|
O.value = !0;
|
|
8622
|
-
const R = L.value || 0, Se = (
|
|
8629
|
+
const R = L.value || 0, Se = (H === "stepUp" ? 1 : -1) * o.stepSize, he = parseFloat(U.value(R + Se));
|
|
8623
8630
|
L.value = So(he, o.min, o.max);
|
|
8624
8631
|
}, P = () => {
|
|
8625
8632
|
if (O.value = !0, N.value == null) {
|
|
8626
8633
|
L.value = void 0;
|
|
8627
8634
|
return;
|
|
8628
8635
|
}
|
|
8629
|
-
N.value =
|
|
8636
|
+
N.value = U.value(parseFloat(N.value)), L.value = parseFloat(N.value);
|
|
8630
8637
|
}, D = m(() => s.value("stepper.increment", { stepSize: o.stepSize })), te = m(() => s.value("stepper.decrement", { stepSize: o.stepSize }));
|
|
8631
|
-
return t({ input: u }), Ae(u, o), (
|
|
8638
|
+
return t({ input: u }), Ae(u, o), (H, R) => l(p) ? (i(), f(
|
|
8632
8639
|
"div",
|
|
8633
8640
|
E({
|
|
8634
8641
|
key: 0,
|
|
@@ -8643,11 +8650,11 @@ const Ei = (n, t) => {
|
|
|
8643
8650
|
],
|
|
8644
8651
|
16
|
|
8645
8652
|
/* FULL_PROPS */
|
|
8646
|
-
)) : (i(),
|
|
8653
|
+
)) : (i(), f(
|
|
8647
8654
|
"div",
|
|
8648
8655
|
E({
|
|
8649
8656
|
key: 1,
|
|
8650
|
-
class: ["onyx-component", "onyx-stepper", l(b), l(
|
|
8657
|
+
class: ["onyx-component", "onyx-stepper", l(b), l(v)]
|
|
8651
8658
|
}, l(w)),
|
|
8652
8659
|
[
|
|
8653
8660
|
B(xt, E(o, {
|
|
@@ -8657,11 +8664,11 @@ const Ei = (n, t) => {
|
|
|
8657
8664
|
}), {
|
|
8658
8665
|
default: S(({ id: Se }) => [
|
|
8659
8666
|
y("div", fd, [
|
|
8660
|
-
o.hideButtons ? k("v-if", !0) : (i(),
|
|
8667
|
+
o.hideButtons ? k("v-if", !0) : (i(), f("button", {
|
|
8661
8668
|
key: 0,
|
|
8662
8669
|
type: "button",
|
|
8663
8670
|
class: "onyx-stepper__counter",
|
|
8664
|
-
disabled: l(c) ||
|
|
8671
|
+
disabled: l(c) || n.readonly || o.loading || o.min !== void 0 && l(L) !== void 0 && l(L) !== null && l(L) <= o.min,
|
|
8665
8672
|
"aria-label": te.value,
|
|
8666
8673
|
tabindex: "-1",
|
|
8667
8674
|
onClick: R[0] || (R[0] = (he) => ue("stepDown"))
|
|
@@ -8672,7 +8679,7 @@ const Ei = (n, t) => {
|
|
|
8672
8679
|
key: 1,
|
|
8673
8680
|
class: "onyx-stepper__loading",
|
|
8674
8681
|
type: "circle"
|
|
8675
|
-
})) : xe((i(),
|
|
8682
|
+
})) : xe((i(), f("input", E({
|
|
8676
8683
|
key: 2,
|
|
8677
8684
|
id: Se,
|
|
8678
8685
|
ref: "inputRef",
|
|
@@ -8708,11 +8715,11 @@ const Ei = (n, t) => {
|
|
|
8708
8715
|
1
|
|
8709
8716
|
/* TEXT */
|
|
8710
8717
|
),
|
|
8711
|
-
o.hideButtons ? k("v-if", !0) : (i(),
|
|
8718
|
+
o.hideButtons ? k("v-if", !0) : (i(), f("button", {
|
|
8712
8719
|
key: 3,
|
|
8713
8720
|
type: "button",
|
|
8714
8721
|
class: "onyx-stepper__counter",
|
|
8715
|
-
disabled: l(c) ||
|
|
8722
|
+
disabled: l(c) || n.readonly || o.loading || o.max !== void 0 && l(L) !== void 0 && l(L) !== null && l(L) >= o.max,
|
|
8716
8723
|
"aria-label": D.value,
|
|
8717
8724
|
tabindex: "-1",
|
|
8718
8725
|
onClick: R[5] || (R[5] = (he) => ue("stepUp"))
|
|
@@ -8749,7 +8756,7 @@ const Ei = (n, t) => {
|
|
|
8749
8756
|
},
|
|
8750
8757
|
emits: ["update:modelValue", "validityChange"],
|
|
8751
8758
|
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:
|
|
8759
|
+
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 } = zt(o, p), { vCustomValidity: h, errorMessages: g } = Pe({ props: o, emit: a }), $ = m(
|
|
8753
8760
|
() => d.value !== !1 ? g.value : void 0
|
|
8754
8761
|
), x = m(() => o.hideLabel && o.label || void 0), w = ne(o), M = ae({
|
|
8755
8762
|
props: o,
|
|
@@ -8757,7 +8764,7 @@ const Ei = (n, t) => {
|
|
|
8757
8764
|
key: "modelValue",
|
|
8758
8765
|
default: !1
|
|
8759
8766
|
}), O = J("inputRef");
|
|
8760
|
-
return t({ input: O }), Ae(O, o), (L, N) => l(w) ? (i(),
|
|
8767
|
+
return t({ input: O }), Ae(O, o), (L, N) => l(w) ? (i(), f(
|
|
8761
8768
|
"div",
|
|
8762
8769
|
E({
|
|
8763
8770
|
key: 0,
|
|
@@ -8819,25 +8826,25 @@ const Ei = (n, t) => {
|
|
|
8819
8826
|
))
|
|
8820
8827
|
])
|
|
8821
8828
|
]),
|
|
8822
|
-
o.hideLabel ? k("v-if", !0) : (i(),
|
|
8829
|
+
o.hideLabel ? k("v-if", !0) : (i(), f(
|
|
8823
8830
|
"span",
|
|
8824
8831
|
{
|
|
8825
8832
|
key: 0,
|
|
8826
8833
|
class: I(["onyx-switch__label", [
|
|
8827
8834
|
`onyx-truncation-${o.truncation}`,
|
|
8828
8835
|
// shows the required marker inline for multiline labels
|
|
8829
|
-
o.truncation === "multiline" ? l(
|
|
8836
|
+
o.truncation === "multiline" ? l(v) : void 0
|
|
8830
8837
|
]])
|
|
8831
8838
|
},
|
|
8832
8839
|
T(o.label),
|
|
8833
8840
|
3
|
|
8834
8841
|
/* TEXT, CLASS */
|
|
8835
8842
|
)),
|
|
8836
|
-
!o.hideLabel && o.truncation === "ellipsis" ? (i(),
|
|
8843
|
+
!o.hideLabel && o.truncation === "ellipsis" ? (i(), f(
|
|
8837
8844
|
"div",
|
|
8838
8845
|
{
|
|
8839
8846
|
key: 1,
|
|
8840
|
-
class: I(["onyx-switch__marker", [l(
|
|
8847
|
+
class: I(["onyx-switch__marker", [l(v)]])
|
|
8841
8848
|
},
|
|
8842
8849
|
null,
|
|
8843
8850
|
2
|
|
@@ -8865,14 +8872,14 @@ const Ei = (n, t) => {
|
|
|
8865
8872
|
disabled: t.disabled || !!a.value
|
|
8866
8873
|
})
|
|
8867
8874
|
);
|
|
8868
|
-
return (u, c) => (i(),
|
|
8875
|
+
return (u, c) => (i(), f(
|
|
8869
8876
|
G,
|
|
8870
8877
|
null,
|
|
8871
8878
|
[
|
|
8872
8879
|
l(a) ? (i(), _(Z, E({
|
|
8873
8880
|
key: 0,
|
|
8874
8881
|
class: ["onyx-tab-skeleton", l(e), s.value]
|
|
8875
|
-
}, r.value), null, 16, ["class"])) : (i(),
|
|
8882
|
+
}, r.value), null, 16, ["class"])) : (i(), f("button", E({
|
|
8876
8883
|
key: 1,
|
|
8877
8884
|
class: [
|
|
8878
8885
|
"onyx-component",
|
|
@@ -8900,7 +8907,7 @@ const Ei = (n, t) => {
|
|
|
8900
8907
|
to: l(o)?.panel.value,
|
|
8901
8908
|
defer: ""
|
|
8902
8909
|
}, [
|
|
8903
|
-
r.value?.["aria-selected"] ? (i(),
|
|
8910
|
+
r.value?.["aria-selected"] ? (i(), f(
|
|
8904
8911
|
"div",
|
|
8905
8912
|
E({ key: 0 }, l(o)?.headless.elements.tabpanel.value({ value: t.value }), { class: "onyx-tab__panel" }),
|
|
8906
8913
|
[
|
|
@@ -8940,7 +8947,7 @@ const Ei = (n, t) => {
|
|
|
8940
8947
|
headless: r,
|
|
8941
8948
|
panel: u,
|
|
8942
8949
|
size: ie(e, "size")
|
|
8943
|
-
}), (c, d) => (i(),
|
|
8950
|
+
}), (c, d) => (i(), f(
|
|
8944
8951
|
"div",
|
|
8945
8952
|
{
|
|
8946
8953
|
ref: "panelRef",
|
|
@@ -9023,7 +9030,7 @@ const Ei = (n, t) => {
|
|
|
9023
9030
|
]),
|
|
9024
9031
|
_: 1
|
|
9025
9032
|
/* STABLE */
|
|
9026
|
-
}, 8, ["text"])) : (i(),
|
|
9033
|
+
}, 8, ["text"])) : (i(), f(
|
|
9027
9034
|
"div",
|
|
9028
9035
|
{
|
|
9029
9036
|
key: 2,
|
|
@@ -9110,7 +9117,7 @@ const Ei = (n, t) => {
|
|
|
9110
9117
|
if (e.link)
|
|
9111
9118
|
return Ze(e.link);
|
|
9112
9119
|
});
|
|
9113
|
-
return (
|
|
9120
|
+
return (v, b) => l(u) ? (i(), _(Z, {
|
|
9114
9121
|
key: 0,
|
|
9115
9122
|
class: I(["onyx-file-card-skeleton", l(s)])
|
|
9116
9123
|
}, null, 8, ["class"])) : (i(), _(Un, {
|
|
@@ -9157,7 +9164,7 @@ const Ei = (n, t) => {
|
|
|
9157
9164
|
]),
|
|
9158
9165
|
_: 1
|
|
9159
9166
|
/* STABLE */
|
|
9160
|
-
}, 8, ["href", "target"])) : (i(),
|
|
9167
|
+
}, 8, ["href", "target"])) : (i(), f(
|
|
9161
9168
|
G,
|
|
9162
9169
|
{ key: 1 },
|
|
9163
9170
|
[
|
|
@@ -9179,7 +9186,7 @@ const Ei = (n, t) => {
|
|
|
9179
9186
|
1
|
|
9180
9187
|
/* TEXT */
|
|
9181
9188
|
),
|
|
9182
|
-
e.status ? (i(),
|
|
9189
|
+
e.status ? (i(), f(
|
|
9183
9190
|
"span",
|
|
9184
9191
|
{
|
|
9185
9192
|
key: 0,
|
|
@@ -9196,11 +9203,11 @@ const Ei = (n, t) => {
|
|
|
9196
9203
|
])
|
|
9197
9204
|
])
|
|
9198
9205
|
]),
|
|
9199
|
-
a.actions ? (i(),
|
|
9200
|
-
C(
|
|
9206
|
+
a.actions ? (i(), f("div", Ud, [
|
|
9207
|
+
C(v.$slots, "actions")
|
|
9201
9208
|
])) : k("v-if", !0)
|
|
9202
9209
|
]),
|
|
9203
|
-
e.status?.progress ? (i(),
|
|
9210
|
+
e.status?.progress ? (i(), f("div", Hd, [
|
|
9204
9211
|
y(
|
|
9205
9212
|
"div",
|
|
9206
9213
|
{
|
|
@@ -9260,7 +9267,7 @@ const Ei = (n, t) => {
|
|
|
9260
9267
|
"aria-hidden": "true"
|
|
9261
9268
|
};
|
|
9262
9269
|
function Wd(n, t) {
|
|
9263
|
-
return i(),
|
|
9270
|
+
return i(), f("svg", jd, [...t[0] || (t[0] = [
|
|
9264
9271
|
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
9272
|
])]);
|
|
9266
9273
|
}
|
|
@@ -9272,7 +9279,7 @@ const am = /* @__PURE__ */ Vt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
|
9272
9279
|
},
|
|
9273
9280
|
setup(n) {
|
|
9274
9281
|
const t = n;
|
|
9275
|
-
return (e, o) => (i(),
|
|
9282
|
+
return (e, o) => (i(), f(
|
|
9276
9283
|
"svg",
|
|
9277
9284
|
{
|
|
9278
9285
|
class: I(["onyx-component onyx-file-upload-svg", {
|
|
@@ -9371,11 +9378,11 @@ const am = /* @__PURE__ */ Vt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
|
9371
9378
|
},
|
|
9372
9379
|
emits: ["update:modelValue"],
|
|
9373
9380
|
setup(n, { emit: t }) {
|
|
9374
|
-
const e = n, o = t, a = ne(e), { disabled: s } = be(e), { t: r } = q(), { densityClass: u } = F(e), { restAttrs: c, rootAttrs: d } = ge(), { formatFileSize: p } = va(),
|
|
9381
|
+
const e = n, o = t, a = ne(e), { disabled: s } = be(e), { t: r } = q(), { densityClass: u } = F(e), { restAttrs: c, rootAttrs: d } = ge(), { formatFileSize: p } = va(), v = ae({
|
|
9375
9382
|
props: e,
|
|
9376
9383
|
emit: o,
|
|
9377
9384
|
key: "modelValue"
|
|
9378
|
-
}), b = J("inputRef"), h = m(() => yt(
|
|
9385
|
+
}), b = J("inputRef"), h = m(() => yt(v.value ?? []).filter((D) => D != null)), g = V(!1), $ = m(() => h.value.map((P, D) => {
|
|
9379
9386
|
if (e.accept && !qd(P, e.accept))
|
|
9380
9387
|
return {
|
|
9381
9388
|
text: r.value("fileUpload.status.fileTypeError", {
|
|
@@ -9390,7 +9397,7 @@ const am = /* @__PURE__ */ Vt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
|
9390
9397
|
}),
|
|
9391
9398
|
color: "danger"
|
|
9392
9399
|
};
|
|
9393
|
-
const te = h.value.slice(0, D + 1).reduce((
|
|
9400
|
+
const te = h.value.slice(0, D + 1).reduce((H, R) => H + R.size, 0);
|
|
9394
9401
|
if (e.maxTotalSize && te > ao(e.maxTotalSize))
|
|
9395
9402
|
return {
|
|
9396
9403
|
text: r.value("fileUpload.status.maxFileSizeError", {
|
|
@@ -9414,13 +9421,13 @@ const am = /* @__PURE__ */ Vt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
|
9414
9421
|
}
|
|
9415
9422
|
}))), w = (P) => {
|
|
9416
9423
|
let D;
|
|
9417
|
-
e.multiple ? e.replace ? D = P.slice() : D = h.value.concat(P) : D = P[0],
|
|
9424
|
+
e.multiple ? e.replace ? D = P.slice() : D = h.value.concat(P) : D = P[0], v.value = D;
|
|
9418
9425
|
}, M = (P) => {
|
|
9419
9426
|
if (e.multiple) {
|
|
9420
9427
|
const D = h.value.filter((te) => te !== P);
|
|
9421
|
-
|
|
9428
|
+
v.value = D;
|
|
9422
9429
|
} else
|
|
9423
|
-
|
|
9430
|
+
v.value = void 0;
|
|
9424
9431
|
}, O = (P) => {
|
|
9425
9432
|
const D = P.target, te = Array.from(D.files ?? []);
|
|
9426
9433
|
w(te), D.value = "";
|
|
@@ -9429,7 +9436,7 @@ const am = /* @__PURE__ */ Vt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
|
9429
9436
|
N.value = !1;
|
|
9430
9437
|
const D = Array.from(P.dataTransfer?.files ?? []);
|
|
9431
9438
|
w(D);
|
|
9432
|
-
},
|
|
9439
|
+
}, U = () => {
|
|
9433
9440
|
s.value || (N.value = !0);
|
|
9434
9441
|
}, X = (P) => {
|
|
9435
9442
|
try {
|
|
@@ -9441,7 +9448,7 @@ const am = /* @__PURE__ */ Vt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
|
9441
9448
|
return (P, D) => l(a) ? (i(), _(Z, {
|
|
9442
9449
|
key: 0,
|
|
9443
9450
|
class: I(["onyx-file-upload-skeleton", `onyx-file-upload-skeleton--${e.size}`, l(u)])
|
|
9444
|
-
}, null, 8, ["class"])) : (i(),
|
|
9451
|
+
}, null, 8, ["class"])) : (i(), f(
|
|
9445
9452
|
"div",
|
|
9446
9453
|
E({
|
|
9447
9454
|
key: 1,
|
|
@@ -9456,7 +9463,7 @@ const am = /* @__PURE__ */ Vt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
|
9456
9463
|
{ "onyx-file-upload--dragging": N.value }
|
|
9457
9464
|
]),
|
|
9458
9465
|
disabled: l(s),
|
|
9459
|
-
onDragenter:
|
|
9466
|
+
onDragenter: U,
|
|
9460
9467
|
onDragleave: D[0] || (D[0] = (te) => N.value = !1),
|
|
9461
9468
|
onDragover: D[1] || (D[1] = Me(() => {
|
|
9462
9469
|
}, ["prevent"])),
|
|
@@ -9467,7 +9474,7 @@ const am = /* @__PURE__ */ Vt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
|
9467
9474
|
key: 0,
|
|
9468
9475
|
disabled: l(s),
|
|
9469
9476
|
active: N.value
|
|
9470
|
-
}, null, 8, ["disabled", "active"])) : (i(),
|
|
9477
|
+
}, null, 8, ["disabled", "active"])) : (i(), f("div", Zd, [
|
|
9471
9478
|
B(z, { icon: l(dl) }, null, 8, ["icon"]),
|
|
9472
9479
|
y(
|
|
9473
9480
|
"span",
|
|
@@ -9477,8 +9484,8 @@ const am = /* @__PURE__ */ Vt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
|
9477
9484
|
/* TEXT */
|
|
9478
9485
|
)
|
|
9479
9486
|
])),
|
|
9480
|
-
L.value ? (i(),
|
|
9481
|
-
e.size === "large" ? (i(),
|
|
9487
|
+
L.value ? (i(), f("div", Xd, [
|
|
9488
|
+
e.size === "large" ? (i(), f("p", Qd, [
|
|
9482
9489
|
y(
|
|
9483
9490
|
"u",
|
|
9484
9491
|
null,
|
|
@@ -9492,13 +9499,13 @@ const am = /* @__PURE__ */ Vt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
|
9492
9499
|
/* TEXT */
|
|
9493
9500
|
)
|
|
9494
9501
|
])) : k("v-if", !0),
|
|
9495
|
-
e.maxSize || e.maxTotalSize ? (i(),
|
|
9502
|
+
e.maxSize || e.maxTotalSize ? (i(), f("p", ep, [
|
|
9496
9503
|
W(
|
|
9497
9504
|
T(l(r)("fileUpload.maxFileSize")) + ": ",
|
|
9498
9505
|
1
|
|
9499
9506
|
/* TEXT */
|
|
9500
9507
|
),
|
|
9501
|
-
e.maxSize && e.maxTotalSize ? (i(),
|
|
9508
|
+
e.maxSize && e.maxTotalSize ? (i(), f(
|
|
9502
9509
|
G,
|
|
9503
9510
|
{ key: 0 },
|
|
9504
9511
|
[
|
|
@@ -9510,7 +9517,7 @@ const am = /* @__PURE__ */ Vt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
|
9510
9517
|
],
|
|
9511
9518
|
64
|
|
9512
9519
|
/* STABLE_FRAGMENT */
|
|
9513
|
-
)) : e.maxSize ? (i(),
|
|
9520
|
+
)) : e.maxSize ? (i(), f(
|
|
9514
9521
|
G,
|
|
9515
9522
|
{ key: 1 },
|
|
9516
9523
|
[
|
|
@@ -9522,7 +9529,7 @@ const am = /* @__PURE__ */ Vt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
|
9522
9529
|
],
|
|
9523
9530
|
64
|
|
9524
9531
|
/* STABLE_FRAGMENT */
|
|
9525
|
-
)) : e.maxTotalSize ? (i(),
|
|
9532
|
+
)) : e.maxTotalSize ? (i(), f(
|
|
9526
9533
|
G,
|
|
9527
9534
|
{ key: 2 },
|
|
9528
9535
|
[
|
|
@@ -9536,14 +9543,14 @@ const am = /* @__PURE__ */ Vt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
|
9536
9543
|
/* STABLE_FRAGMENT */
|
|
9537
9544
|
)) : k("v-if", !0)
|
|
9538
9545
|
])) : k("v-if", !0),
|
|
9539
|
-
e.multiple && e.maxCount ? (i(),
|
|
9546
|
+
e.multiple && e.maxCount ? (i(), f(
|
|
9540
9547
|
"p",
|
|
9541
9548
|
tp,
|
|
9542
9549
|
T(l(r)("fileUpload.maxFileCount", { n: e.maxCount })),
|
|
9543
9550
|
1
|
|
9544
9551
|
/* TEXT */
|
|
9545
9552
|
)) : k("v-if", !0),
|
|
9546
|
-
e.accept?.length ? (i(),
|
|
9553
|
+
e.accept?.length ? (i(), f(
|
|
9547
9554
|
"p",
|
|
9548
9555
|
op,
|
|
9549
9556
|
T(l(r)("fileUpload.allowedFileTypes", { types: e.accept.join(", ") })),
|
|
@@ -9569,7 +9576,7 @@ const am = /* @__PURE__ */ Vt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
|
9569
9576
|
label: g.value ? l(r)("fileUpload.revealFilesButton") : l(r)("fileUpload.hideFilesButton"),
|
|
9570
9577
|
onClick: D[3] || (D[3] = (te) => g.value = !g.value)
|
|
9571
9578
|
}, null, 8, ["label"])) : k("v-if", !0),
|
|
9572
|
-
ue.value ? (i(),
|
|
9579
|
+
ue.value ? (i(), f(
|
|
9573
9580
|
"div",
|
|
9574
9581
|
{
|
|
9575
9582
|
key: 1,
|
|
@@ -9579,7 +9586,7 @@ const am = /* @__PURE__ */ Vt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
|
9579
9586
|
])
|
|
9580
9587
|
},
|
|
9581
9588
|
[
|
|
9582
|
-
(i(!0),
|
|
9589
|
+
(i(!0), f(
|
|
9583
9590
|
G,
|
|
9584
9591
|
null,
|
|
9585
9592
|
de(x.value, (te) => C(P.$slots, "default", {
|
|
@@ -9597,7 +9604,7 @@ const am = /* @__PURE__ */ Vt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
|
9597
9604
|
icon: l(pl),
|
|
9598
9605
|
label: l(r)("fileUpload.removeFile"),
|
|
9599
9606
|
disabled: l(s),
|
|
9600
|
-
onClick: (
|
|
9607
|
+
onClick: (H) => M(te.file)
|
|
9601
9608
|
}, null, 8, ["icon", "label", "disabled", "onClick"])
|
|
9602
9609
|
]),
|
|
9603
9610
|
_: 2
|
|
@@ -9671,6 +9678,7 @@ const am = /* @__PURE__ */ Vt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
|
9671
9678
|
minlength: {},
|
|
9672
9679
|
autocapitalize: { default: "sentences" },
|
|
9673
9680
|
modelValue: {},
|
|
9681
|
+
showPassword: { type: Boolean },
|
|
9674
9682
|
autosize: {},
|
|
9675
9683
|
disableManualResize: { type: Boolean, default: !1 }
|
|
9676
9684
|
},
|
|
@@ -9681,15 +9689,15 @@ const am = /* @__PURE__ */ Vt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
|
9681
9689
|
emit: a,
|
|
9682
9690
|
key: "modelValue",
|
|
9683
9691
|
default: ""
|
|
9684
|
-
}), { rootAttrs: r, restAttrs: u } = ge(), { maxLength: c, maxLengthError: d } = ca({ props: o, modelValue: s }), p = m(() => o.error ?? d.value), { vCustomValidity:
|
|
9692
|
+
}), { rootAttrs: r, restAttrs: u } = ge(), { maxLength: c, maxLengthError: d } = ca({ props: o, modelValue: s }), p = m(() => o.error ?? d.value), { vCustomValidity: v, errorMessages: b } = Pe({ props: o, emit: a, error: p }), { densityClass: h } = F(o), g = m(() => Be(o.success)), $ = m(() => Be(o.message)), x = m(() => {
|
|
9685
9693
|
if (!o.autosize) return;
|
|
9686
|
-
const
|
|
9687
|
-
return [
|
|
9688
|
-
}), w = (
|
|
9689
|
-
const X =
|
|
9694
|
+
const U = o.autosize.min ? Math.max(o.autosize.min, 2) : void 0, X = o.autosize.max;
|
|
9695
|
+
return [U ? `--min-autosize-rows: ${U}` : "", `--max-autosize-rows: ${X ?? "unset"}`];
|
|
9696
|
+
}), w = (U) => {
|
|
9697
|
+
const X = U.target;
|
|
9690
9698
|
X.parentElement?.setAttribute("data-autosize-value", X.value);
|
|
9691
9699
|
}, { disabled: M, showError: O } = be(o), L = ne(o), N = _t(O), K = J("inputRef");
|
|
9692
|
-
return t({ input: K }), Ae(K, o), (
|
|
9700
|
+
return t({ input: K }), Ae(K, o), (U, X) => l(L) ? (i(), f(
|
|
9693
9701
|
"div",
|
|
9694
9702
|
E({
|
|
9695
9703
|
key: 0,
|
|
@@ -9705,7 +9713,7 @@ const am = /* @__PURE__ */ Vt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
|
9705
9713
|
],
|
|
9706
9714
|
16
|
|
9707
9715
|
/* FULL_PROPS */
|
|
9708
|
-
)) : (i(),
|
|
9716
|
+
)) : (i(), f(
|
|
9709
9717
|
"div",
|
|
9710
9718
|
E({
|
|
9711
9719
|
key: 1,
|
|
@@ -9741,7 +9749,7 @@ const am = /* @__PURE__ */ Vt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
|
9741
9749
|
title: o.hideLabel ? o.label : void 0
|
|
9742
9750
|
}, l(u), { onInput: w }), null, 16, lp), [
|
|
9743
9751
|
[co, l(s)],
|
|
9744
|
-
[l(
|
|
9752
|
+
[l(v)]
|
|
9745
9753
|
])
|
|
9746
9754
|
], 8, ap)
|
|
9747
9755
|
]),
|
|
@@ -9783,7 +9791,7 @@ const am = /* @__PURE__ */ Vt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
|
9783
9791
|
{ avatar: "https://www.github.com/MajaZarkova.png", name: "Maja Zarkova" },
|
|
9784
9792
|
{ avatar: "https://www.github.com/ChristianBusshoff.png", name: "Christian Bußhoff" }
|
|
9785
9793
|
];
|
|
9786
|
-
return (u, c) => (i(),
|
|
9794
|
+
return (u, c) => (i(), f("div", ip, [
|
|
9787
9795
|
y(
|
|
9788
9796
|
"div",
|
|
9789
9797
|
{
|
|
@@ -9978,7 +9986,7 @@ const am = /* @__PURE__ */ Vt(Kd, [["render", Wd]]), Yd = /* @__PURE__ */ A({
|
|
|
9978
9986
|
y("div", dp, [
|
|
9979
9987
|
B(Ar, null, {
|
|
9980
9988
|
default: S(() => [
|
|
9981
|
-
(i(),
|
|
9989
|
+
(i(), f(
|
|
9982
9990
|
G,
|
|
9983
9991
|
null,
|
|
9984
9992
|
de(r, (d) => B(Mt, {
|