sit-onyx 1.1.0-dev-20250930120837 → 1.2.0-dev-20251008133229
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/OnyxBasicPopover/OnyxBasicPopover.d.vue.ts +1 -1
- package/dist/components/OnyxBasicPopover/types.d.ts +1 -1
- package/dist/components/OnyxDialog/OnyxDialog.d.vue.ts +1 -1
- package/dist/components/OnyxInfoCard/OnyxInfoCard.d.vue.ts +14 -0
- package/dist/components/OnyxInfoCard/types.d.ts +2 -0
- package/dist/composables/{useClipping.d.ts → useSticky.d.ts} +5 -5
- package/dist/index.esm-bundler.js +113 -91
- package/dist/index.esm-bundler.js.map +1 -1
- package/dist/index.js +368 -349
- package/dist/style.css +1 -1
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { computed as m, provide as Fe, inject as ge, toRef as
|
|
2
|
-
import { iconChevronDownSmall as Ta, iconCircleAttention as yo, iconXSmall as qe, iconX as fo, iconMoreHorizontalSmall as
|
|
1
|
+
import { computed as m, provide as Fe, inject as ge, toRef as ce, ref as N, watch as X, defineComponent as A, watchEffect as De, toRefs as Lt, createElementBlock as v, openBlock as i, normalizeClass as R, unref as l, renderSlot as E, onMounted as Ce, createBlock as _, resolveDynamicComponent as Me, withCtx as $, createVNode as O, createElementVNode as y, withModifiers as Re, readonly as Ot, reactive as po, onBeforeMount as Mt, onBeforeUnmount as _t, useId as me, toValue as U, nextTick as Pe, shallowRef as Ye, useTemplateRef as oe, createCommentVNode as w, createTextVNode as Z, toDisplayString as I, normalizeProps as Ne, mergeProps as B, Fragment as K, isProxy as Sa, toRaw as $a, useAttrs as Ca, customRef as Ea, onUnmounted as Dt, normalizeStyle as Le, useSlots as ye, createSlots as ke, isRef as Ae, renderList as ue, toHandlers as Ba, resolveComponent as Oa, withDirectives as we, guardReactiveProps as Ze, vShow as Xt, Teleport as rt, vModelCheckbox as ln, vModelText as mo, h as ie, vModelDynamic as sn, withKeys as Ro, createStaticVNode as Ma, useModel as Aa } from "vue";
|
|
2
|
+
import { iconChevronDownSmall as Ta, iconCircleAttention as yo, iconXSmall as qe, iconX as fo, iconMoreHorizontalSmall as rn, iconMoreVertical as vo, iconCircleCheck as Ia, iconCircleX as cn, iconCircleInformation as Qt, iconUser as Ra, iconArrowSmallUpRight as La, iconChevronRightSmall as ho, iconArrowSmallLeft as un, iconHome as Da, iconMoreHorizontal as Lo, iconChevronLeftSmall as bo, iconSearch as Na, iconCheck as Va, iconSearchX as za, iconChevronDownUp as Fa, iconCheckSmall as xt, iconPlusSmall as Pa, iconEyeDisabled as Ua, iconListArrowUp as dn, iconListArrowDown as pn, iconArrowsSort as Ha, iconCircleBlock as Ga, iconFileDisabled as qa, iconEyeClosed as Ka, iconEye as ja, iconCircleContrast as Wa, iconTranslate as Ya, iconMenu as Ja, iconNotificationFlag as Za, iconMinus as Xa, iconPlus as Qa, iconFile as el, iconFilePdf as tl, iconFileCsv as ol, iconAudio as nl, iconVideocam as al, iconPicture as ll, iconFileRtf as sl, iconFilePpt as rl, iconFileXls as il, iconFileXlsx as cl, iconFileDoc as ul, iconFileGlobe as dl, iconFileArchive as pl, iconFileText as ml, iconCloudArrowUp as yl, iconTrash as fl, iconShareIos as vl, iconArrowSmallRight as hl, iconSettings as bl, iconLogout as gl } from "@sit-onyx/icons";
|
|
3
3
|
const Ip = ["compact", "default", "cozy"], q = (o) => ({
|
|
4
4
|
densityClass: m(() => ({ [`onyx-density-${o.density}`]: !!o.density }))
|
|
5
5
|
}), _l = void 0, mn = Symbol(), ne = Symbol("SKELETON_INJECTED_SYMBOL"), yn = (o) => (t) => m(() => typeof t.skeleton != "symbol" ? t.skeleton : t.skeleton === ne && o?.skeleton === !0 ? 3 : !1), Nt = (o) => Fe(mn, yn(o)), xl = yn(), se = (o) => ge(
|
|
@@ -7,7 +7,7 @@ const Ip = ["compact", "default", "cozy"], q = (o) => ({
|
|
|
7
7
|
/** Default */
|
|
8
8
|
xl
|
|
9
9
|
)(o), re = (o) => {
|
|
10
|
-
const t =
|
|
10
|
+
const t = ce(o.props, o.key), e = () => typeof o.default == "function" ? o.default() : o.default, n = N(e());
|
|
11
11
|
X(t, (s) => n.value = s);
|
|
12
12
|
const a = m({
|
|
13
13
|
get: () => t.value ?? n.value ?? e(),
|
|
@@ -58,8 +58,8 @@ const Ip = ["compact", "default", "cozy"], q = (o) => ({
|
|
|
58
58
|
},
|
|
59
59
|
{ immediate: !0 }
|
|
60
60
|
), Fe(fn, {
|
|
61
|
-
openItems:
|
|
62
|
-
type:
|
|
61
|
+
openItems: ce(() => s.value),
|
|
62
|
+
type: ce(() => e.type),
|
|
63
63
|
updateOpen: p,
|
|
64
64
|
disabled: r,
|
|
65
65
|
skeleton: c
|
|
@@ -121,7 +121,7 @@ const kl = ["innerHTML"], H = /* @__PURE__ */ A({
|
|
|
121
121
|
}, te = /* @__PURE__ */ A({
|
|
122
122
|
__name: "OnyxSkeleton",
|
|
123
123
|
setup(o) {
|
|
124
|
-
return
|
|
124
|
+
return Ce(() => Cl("onyx-skeleton")), (t, e) => (i(), v("figure", El));
|
|
125
125
|
}
|
|
126
126
|
}), Bl = ["open"], Ol = ["id", "tabindex", "aria-expanded", "aria-controls", "aria-disabled"], Ml = { class: "onyx-accordion-item__header-content" }, Al = ["id", "aria-labelledby"], Dp = /* @__PURE__ */ A({
|
|
127
127
|
__name: "OnyxAccordionItem",
|
|
@@ -245,8 +245,8 @@ const kl = ["innerHTML"], H = /* @__PURE__ */ A({
|
|
|
245
245
|
}, ds = {
|
|
246
246
|
decimal: { style: "decimal" }
|
|
247
247
|
}, vn = Symbol(), hn = (o = {}) => {
|
|
248
|
-
const t = Ot(
|
|
249
|
-
let c =
|
|
248
|
+
const t = Ot(ce(o?.locale ?? "en-US")), e = m(() => o.messages?.[t.value] ?? to), n = m(() => (r, u = {}) => {
|
|
249
|
+
let c = Do(r, e.value) ?? Do(r, to) ?? "";
|
|
250
250
|
return c = ms(c, u.n), ys(c, u);
|
|
251
251
|
}), a = m(() => (r, u) => new Intl.DateTimeFormat(
|
|
252
252
|
t.value,
|
|
@@ -257,7 +257,7 @@ const kl = ["innerHTML"], H = /* @__PURE__ */ A({
|
|
|
257
257
|
).format(r));
|
|
258
258
|
return {
|
|
259
259
|
// If the user provided a custom `t` function, it is used instead of the default.
|
|
260
|
-
t: o.t ? Ot(
|
|
260
|
+
t: o.t ? Ot(ce(o.t)) : n,
|
|
261
261
|
locale: t,
|
|
262
262
|
d: a,
|
|
263
263
|
n: s
|
|
@@ -265,7 +265,7 @@ const kl = ["innerHTML"], H = /* @__PURE__ */ A({
|
|
|
265
265
|
}, ps = (o, t) => {
|
|
266
266
|
const e = hn(t);
|
|
267
267
|
return o.provide(vn, e), e;
|
|
268
|
-
}, W = () => ge(vn, () => hn(), !0),
|
|
268
|
+
}, W = () => ge(vn, () => hn(), !0), Do = (o, t) => {
|
|
269
269
|
const e = o.split(".").reduce((n, a) => !n || typeof n == "string" ? n : n[a], t);
|
|
270
270
|
return e && typeof e == "string" ? e : void 0;
|
|
271
271
|
}, ms = (o, t) => {
|
|
@@ -278,8 +278,8 @@ const kl = ["innerHTML"], H = /* @__PURE__ */ A({
|
|
|
278
278
|
let e = Object.entries(t).reduce((n, [a, s]) => s === void 0 ? n : n.replace(new RegExp(`{${a}}`, "gi"), s.toString()), o);
|
|
279
279
|
return e = e.replace(/{'(.*?)'}/g, "$1"), e.replace(/{.*}\s?/gi, "");
|
|
280
280
|
}, Ke = (o) => o;
|
|
281
|
-
function
|
|
282
|
-
const o =
|
|
281
|
+
function No() {
|
|
282
|
+
const o = Ye();
|
|
283
283
|
return m({
|
|
284
284
|
set: (t) => {
|
|
285
285
|
o.value = t != null && "$el" in t ? t.$el : t;
|
|
@@ -287,7 +287,7 @@ function Do() {
|
|
|
287
287
|
get: () => o.value
|
|
288
288
|
});
|
|
289
289
|
}
|
|
290
|
-
const oo = (o) => ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"].indexOf(o),
|
|
290
|
+
const oo = (o) => ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"].indexOf(o), Vo = (o, t) => {
|
|
291
291
|
const e = o.getDay(), n = oo(t);
|
|
292
292
|
return ((e === 0 ? 6 : e - 1) - n + 7) % 7;
|
|
293
293
|
}, ve = (o) => {
|
|
@@ -352,14 +352,14 @@ const oo = (o) => ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Satu
|
|
|
352
352
|
break;
|
|
353
353
|
case "Home":
|
|
354
354
|
if (o.weekStartDay) {
|
|
355
|
-
const Q =
|
|
355
|
+
const Q = Vo(L, U(o.weekStartDay));
|
|
356
356
|
L.setDate(L.getDate() - Q);
|
|
357
357
|
}
|
|
358
358
|
z = !0;
|
|
359
359
|
break;
|
|
360
360
|
case "End":
|
|
361
361
|
if (o.weekStartDay) {
|
|
362
|
-
const Q =
|
|
362
|
+
const Q = Vo(L, U(o.weekStartDay));
|
|
363
363
|
L.setDate(L.getDate() + (6 - Q));
|
|
364
364
|
}
|
|
365
365
|
z = !0;
|
|
@@ -461,7 +461,7 @@ const oo = (o) => ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Satu
|
|
|
461
461
|
return;
|
|
462
462
|
}
|
|
463
463
|
lt.delete(o), document.removeEventListener(o, gn);
|
|
464
|
-
},
|
|
464
|
+
}, zo = (o, t) => {
|
|
465
465
|
const e = lt.get(o);
|
|
466
466
|
e?.delete(t), gs(o, e);
|
|
467
467
|
}, _s = (o, t) => {
|
|
@@ -477,10 +477,10 @@ const oo = (o) => ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Satu
|
|
|
477
477
|
}) => {
|
|
478
478
|
Mt(
|
|
479
479
|
() => De(
|
|
480
|
-
() => e?.value ?
|
|
480
|
+
() => e?.value ? zo(o, t) : _s(o, t)
|
|
481
481
|
)
|
|
482
|
-
), _t(() =>
|
|
483
|
-
},
|
|
482
|
+
), _t(() => zo(o, t));
|
|
483
|
+
}, go = ({
|
|
484
484
|
inside: o,
|
|
485
485
|
onOutsideClick: t,
|
|
486
486
|
disabled: e,
|
|
@@ -597,8 +597,8 @@ const oo = (o) => ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Satu
|
|
|
597
597
|
{ key: "ArrowUp", altKey: !0 },
|
|
598
598
|
"Enter",
|
|
599
599
|
"Tab"
|
|
600
|
-
],
|
|
601
|
-
const e = t ? [...
|
|
600
|
+
], Fo = ["Enter"], ks = (o, t) => {
|
|
601
|
+
const e = t ? [...Fo, " "] : Fo;
|
|
602
602
|
return ao(o, e);
|
|
603
603
|
}, ao = (o, t) => t.some((e) => bn(o, e)), ws = Ke(
|
|
604
604
|
({
|
|
@@ -672,7 +672,7 @@ const oo = (o) => ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Satu
|
|
|
672
672
|
isExpanded: M,
|
|
673
673
|
onSelect: L
|
|
674
674
|
});
|
|
675
|
-
return
|
|
675
|
+
return go({
|
|
676
676
|
inside: C,
|
|
677
677
|
onOutsideClick() {
|
|
678
678
|
M.value && d?.(!0);
|
|
@@ -715,7 +715,7 @@ const oo = (o) => ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Satu
|
|
|
715
715
|
};
|
|
716
716
|
}
|
|
717
717
|
), Ss = Ke((o) => {
|
|
718
|
-
const t = me(), e = me(), n =
|
|
718
|
+
const t = me(), e = me(), n = No(), a = No(), s = me(), r = m(() => U(o.position) ?? "bottom");
|
|
719
719
|
Ue({
|
|
720
720
|
type: "keydown",
|
|
721
721
|
listener: (h) => h.key === "Escape" && c(!1),
|
|
@@ -789,7 +789,7 @@ const oo = (o) => ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Satu
|
|
|
789
789
|
onMouseleave: () => c(!1, !0)
|
|
790
790
|
};
|
|
791
791
|
});
|
|
792
|
-
return
|
|
792
|
+
return go({
|
|
793
793
|
inside: n,
|
|
794
794
|
onOutsideClick: () => c(!1),
|
|
795
795
|
disabled: m(() => !o.isExpanded.value),
|
|
@@ -820,10 +820,10 @@ const oo = (o) => ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Satu
|
|
|
820
820
|
"aria-labelledby": s,
|
|
821
821
|
onClick: () => c(!1)
|
|
822
822
|
},
|
|
823
|
-
...
|
|
823
|
+
..._o().elements
|
|
824
824
|
}
|
|
825
825
|
};
|
|
826
|
-
}),
|
|
826
|
+
}), _o = Ke((o) => {
|
|
827
827
|
const t = (e) => {
|
|
828
828
|
switch (e.key) {
|
|
829
829
|
case "ArrowRight":
|
|
@@ -953,7 +953,7 @@ const oo = (o) => ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Satu
|
|
|
953
953
|
disabled: m(() => !o.value)
|
|
954
954
|
}), Bs = Ke(
|
|
955
955
|
({ toggleLabel: o, isVisible: t }) => {
|
|
956
|
-
const e = me(), n =
|
|
956
|
+
const e = me(), n = ce(t ?? !1);
|
|
957
957
|
Sn({ isExpanded: n });
|
|
958
958
|
const a = () => n.value = !n.value;
|
|
959
959
|
return {
|
|
@@ -988,7 +988,7 @@ const oo = (o) => ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Satu
|
|
|
988
988
|
};
|
|
989
989
|
}
|
|
990
990
|
), Os = Ke(({ debounce: o, isVisible: t }) => {
|
|
991
|
-
const e = me(), n =
|
|
991
|
+
const e = me(), n = ce(t ?? !1);
|
|
992
992
|
let a;
|
|
993
993
|
const s = m({
|
|
994
994
|
get: () => n.value,
|
|
@@ -1056,7 +1056,7 @@ const oo = (o) => ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Satu
|
|
|
1056
1056
|
}
|
|
1057
1057
|
);
|
|
1058
1058
|
const c = oe("contentRef");
|
|
1059
|
-
return
|
|
1059
|
+
return go({
|
|
1060
1060
|
inside: c,
|
|
1061
1061
|
// modal dialog obscures other content and can be closed by outside click
|
|
1062
1062
|
// non-modal dialog allows interactions with other elements without closing
|
|
@@ -1117,7 +1117,7 @@ const oo = (o) => ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Satu
|
|
|
1117
1117
|
o && En(s) && Ls(a) && (a.preventDefault(), o.push(s));
|
|
1118
1118
|
}, n = m(() => (a) => {
|
|
1119
1119
|
if (!t.value || a == null) return !1;
|
|
1120
|
-
const s =
|
|
1120
|
+
const s = Po(tt(a).href), r = Po(t.value.path), { hash: u } = t.value;
|
|
1121
1121
|
return s === "/" ? r === s : u && u === s ? !0 : r === s;
|
|
1122
1122
|
});
|
|
1123
1123
|
return { navigate: e, currentRoute: t, isActive: n };
|
|
@@ -1129,10 +1129,10 @@ const oo = (o) => ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Satu
|
|
|
1129
1129
|
}
|
|
1130
1130
|
return !0;
|
|
1131
1131
|
}
|
|
1132
|
-
},
|
|
1132
|
+
}, Po = (o) => {
|
|
1133
1133
|
const t = o.trim();
|
|
1134
1134
|
return t === "" ? "/" : t === "/" ? t : t.replace(/\/+$/, "");
|
|
1135
|
-
}, Bn = Symbol(),
|
|
1135
|
+
}, Bn = Symbol(), Xe = /* @__PURE__ */ A({
|
|
1136
1136
|
__name: "OnyxVisuallyHidden",
|
|
1137
1137
|
props: {
|
|
1138
1138
|
is: { default: "span" }
|
|
@@ -1167,7 +1167,7 @@ const oo = (o) => ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Satu
|
|
|
1167
1167
|
onClick: r[0] || (r[0] = (u) => l(n)(u, t.href))
|
|
1168
1168
|
}, [
|
|
1169
1169
|
E(s.$slots, "default"),
|
|
1170
|
-
t.target === "_blank" ? (i(), _(
|
|
1170
|
+
t.target === "_blank" ? (i(), _(Xe, { key: 0 }, {
|
|
1171
1171
|
default: $(() => [
|
|
1172
1172
|
Z(
|
|
1173
1173
|
I(l(e)("link.opensExternally")),
|
|
@@ -1211,7 +1211,7 @@ const oo = (o) => ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Satu
|
|
|
1211
1211
|
onClick: c[0] || (c[0] = (d) => r(a.value))
|
|
1212
1212
|
}, {
|
|
1213
1213
|
default: $(() => [
|
|
1214
|
-
O(
|
|
1214
|
+
O(Xe, null, {
|
|
1215
1215
|
default: $(() => [
|
|
1216
1216
|
Z(
|
|
1217
1217
|
I(l(e)("headline.copyLinkTo")),
|
|
@@ -1233,7 +1233,7 @@ const oo = (o) => ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Satu
|
|
|
1233
1233
|
}, 8, ["id", "class"]));
|
|
1234
1234
|
}
|
|
1235
1235
|
}), Ie = (o, t) => {
|
|
1236
|
-
t.autofocus &&
|
|
1236
|
+
t.autofocus && Ce(() => {
|
|
1237
1237
|
if (!t.loading) {
|
|
1238
1238
|
o.value?.focus();
|
|
1239
1239
|
return;
|
|
@@ -1251,11 +1251,11 @@ const oo = (o) => ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Satu
|
|
|
1251
1251
|
disabled: Kt(o, t, "disabled", !1),
|
|
1252
1252
|
showError: Kt(o, t, "showError", "touched"),
|
|
1253
1253
|
requiredMarker: Kt(o, t, "requiredMarker", "required")
|
|
1254
|
-
}), Ns = (o) => Fe(On, Mn(o &&
|
|
1254
|
+
}), Ns = (o) => Fe(On, Mn(o && ce(o))), Vs = Mn(), _e = (o) => ge(
|
|
1255
1255
|
On,
|
|
1256
1256
|
/** Default */
|
|
1257
1257
|
Vs
|
|
1258
|
-
)(
|
|
1258
|
+
)(ce(o)), zs = ["disabled", "type", "autofocus"], ut = /* @__PURE__ */ A({
|
|
1259
1259
|
__name: "ButtonOrLinkLayout",
|
|
1260
1260
|
props: {
|
|
1261
1261
|
disabled: { type: [Boolean, Symbol] },
|
|
@@ -1290,7 +1290,7 @@ const oo = (o) => ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Satu
|
|
|
1290
1290
|
E(s.$slots, "default")
|
|
1291
1291
|
], 8, zs));
|
|
1292
1292
|
}
|
|
1293
|
-
}),
|
|
1293
|
+
}), Se = /* @__PURE__ */ A({
|
|
1294
1294
|
__name: "OnyxSystemButton",
|
|
1295
1295
|
props: {
|
|
1296
1296
|
disabled: { type: [Boolean, Symbol], default: le },
|
|
@@ -1383,7 +1383,7 @@ const oo = (o) => ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Satu
|
|
|
1383
1383
|
/* STABLE */
|
|
1384
1384
|
})
|
|
1385
1385
|
]),
|
|
1386
|
-
O(
|
|
1386
|
+
O(Se, {
|
|
1387
1387
|
class: "onyx-alert-modal__close",
|
|
1388
1388
|
label: l(a)("dialog.close"),
|
|
1389
1389
|
icon: l(qe),
|
|
@@ -1444,7 +1444,7 @@ const oo = (o) => ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Satu
|
|
|
1444
1444
|
}
|
|
1445
1445
|
}));
|
|
1446
1446
|
return e[at] = o ?? [], e;
|
|
1447
|
-
},
|
|
1447
|
+
}, Uo = (o) => !!o && typeof o == "object" && at in o, be = (...o) => o.reduce((t, e) => {
|
|
1448
1448
|
e?.ref;
|
|
1449
1449
|
const n = e && Sa(e) && "ref" in e ? $a(e).ref : e?.ref, a = t?.ref, s = B(t ?? {}, e ?? {});
|
|
1450
1450
|
if (!a && !n)
|
|
@@ -1452,7 +1452,7 @@ const oo = (o) => ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Satu
|
|
|
1452
1452
|
if (!a || !n)
|
|
1453
1453
|
return s.ref = n ?? a, s;
|
|
1454
1454
|
let r;
|
|
1455
|
-
return
|
|
1455
|
+
return Uo(a) ? (a[at].push(n), r = a) : Uo(n) ? (n[at].push(a), r = n) : r = Gs(a, n), s.ref = r, s;
|
|
1456
1456
|
}, {}), qs = {
|
|
1457
1457
|
key: 1,
|
|
1458
1458
|
class: "onyx-fab-button__label"
|
|
@@ -1502,7 +1502,7 @@ const oo = (o) => ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Satu
|
|
|
1502
1502
|
const c = e === "content-box" ? u.contentBoxSize : e === "border-box" ? u.borderBoxSize : u.devicePixelContentBoxSize;
|
|
1503
1503
|
n.value = c.reduce((d, { inlineSize: p }) => d + p, 0), a.value = c.reduce((d, { blockSize: p }) => d + p, 0);
|
|
1504
1504
|
};
|
|
1505
|
-
return
|
|
1505
|
+
return Ce(() => {
|
|
1506
1506
|
if (!("ResizeObserver" in window)) return;
|
|
1507
1507
|
const r = new ResizeObserver(s);
|
|
1508
1508
|
if (!o) {
|
|
@@ -1512,19 +1512,19 @@ const oo = (o) => ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Satu
|
|
|
1512
1512
|
X(
|
|
1513
1513
|
o,
|
|
1514
1514
|
(u, c) => {
|
|
1515
|
-
const d =
|
|
1515
|
+
const d = Je(u), p = Je(c);
|
|
1516
1516
|
p && r?.unobserve(p), d ? r?.observe(d, { box: e }) : (n.value = 0, a.value = 0);
|
|
1517
1517
|
},
|
|
1518
1518
|
{ immediate: !0 }
|
|
1519
1519
|
), _t(() => r.disconnect());
|
|
1520
1520
|
}), { width: n, height: a };
|
|
1521
|
-
},
|
|
1521
|
+
}, Je = (o) => o instanceof Element ? o : o?.$el, Ks = (o, t) => {
|
|
1522
1522
|
const e = N(!1), n = (a) => {
|
|
1523
1523
|
a.forEach((s) => {
|
|
1524
1524
|
e.value = s.isIntersecting;
|
|
1525
1525
|
});
|
|
1526
1526
|
};
|
|
1527
|
-
return
|
|
1527
|
+
return Ce(() => {
|
|
1528
1528
|
if (!("IntersectionObserver" in window)) return;
|
|
1529
1529
|
const a = new IntersectionObserver(n, {
|
|
1530
1530
|
root: null,
|
|
@@ -1538,7 +1538,7 @@ const oo = (o) => ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Satu
|
|
|
1538
1538
|
X(
|
|
1539
1539
|
o,
|
|
1540
1540
|
(s, r) => {
|
|
1541
|
-
const u =
|
|
1541
|
+
const u = Je(s), c = Je(r);
|
|
1542
1542
|
c && a.unobserve(c), u && a.observe(u);
|
|
1543
1543
|
},
|
|
1544
1544
|
{ immediate: !0 }
|
|
@@ -1554,7 +1554,7 @@ const oo = (o) => ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Satu
|
|
|
1554
1554
|
offset: r = 0
|
|
1555
1555
|
}) => {
|
|
1556
1556
|
const u = N("-1000px"), c = N("-1000px"), { isIntersecting: d } = Ks(t), p = () => {
|
|
1557
|
-
const h =
|
|
1557
|
+
const h = Je(o.value), b = Je(t.value);
|
|
1558
1558
|
if (!h || !b)
|
|
1559
1559
|
return;
|
|
1560
1560
|
const g = b.getBoundingClientRect(), C = h.getBoundingClientRect();
|
|
@@ -1604,7 +1604,54 @@ const oo = (o) => ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Satu
|
|
|
1604
1604
|
updateAnchorPositionPolyfill: p,
|
|
1605
1605
|
useragentSupportsAnchorApi: f
|
|
1606
1606
|
};
|
|
1607
|
-
}
|
|
1607
|
+
}, Tn = (o, t, e = "center") => {
|
|
1608
|
+
const a = N(e);
|
|
1609
|
+
return {
|
|
1610
|
+
/**
|
|
1611
|
+
* Direction in which the popover should open to.
|
|
1612
|
+
*/
|
|
1613
|
+
openAlignment: a,
|
|
1614
|
+
/**
|
|
1615
|
+
* Detects in which direction a popover should be opened, depending on the available space in each direction.
|
|
1616
|
+
* Should only be called onBeforeMount or later to support server side rendering.
|
|
1617
|
+
*/
|
|
1618
|
+
updateOpenAlignment: () => {
|
|
1619
|
+
const r = l(o), u = l(t);
|
|
1620
|
+
if (!r || !u) {
|
|
1621
|
+
a.value = e;
|
|
1622
|
+
return;
|
|
1623
|
+
}
|
|
1624
|
+
const c = r.getBoundingClientRect(), d = u.getBoundingClientRect();
|
|
1625
|
+
if (d.width < c.width) {
|
|
1626
|
+
a.value = e;
|
|
1627
|
+
return;
|
|
1628
|
+
}
|
|
1629
|
+
const p = (d.width - c.width + 32) / 2, f = d.width - c.width + 16, h = window.innerWidth, b = c.left, g = h - c.right, C = b >= p, k = g >= p;
|
|
1630
|
+
e === "right" && b >= f || e === "left" && g >= f || e === "center" && C && k ? a.value = e : b > g ? a.value = "right" : a.value = "left";
|
|
1631
|
+
}
|
|
1632
|
+
};
|
|
1633
|
+
}, xo = (o, t = "bottom") => {
|
|
1634
|
+
const e = N(t);
|
|
1635
|
+
return {
|
|
1636
|
+
/**
|
|
1637
|
+
* Direction in which the popover should open to.
|
|
1638
|
+
*/
|
|
1639
|
+
openDirection: e,
|
|
1640
|
+
/**
|
|
1641
|
+
* Detects in which direction a popover should be opened, depending on the available space in each direction.
|
|
1642
|
+
* Should only be called onBeforeMount or later to support server side rendering.
|
|
1643
|
+
*/
|
|
1644
|
+
updateOpenDirection: () => {
|
|
1645
|
+
const a = l(o);
|
|
1646
|
+
if (!a) {
|
|
1647
|
+
e.value = t;
|
|
1648
|
+
return;
|
|
1649
|
+
}
|
|
1650
|
+
const s = In(a)?.getBoundingClientRect(), r = a.getBoundingClientRect(), u = s?.top ?? window.visualViewport?.pageTop ?? 0, d = (s?.bottom ?? window.visualViewport?.height ?? 0) - r.bottom, p = r.top - u;
|
|
1651
|
+
e.value = p > d ? "top" : "bottom";
|
|
1652
|
+
}
|
|
1653
|
+
};
|
|
1654
|
+
}, In = (o) => o ? getComputedStyle(o).overflow.includes("hidden") ? o : o.parentElement ? In(o.parentElement) : void 0 : void 0;
|
|
1608
1655
|
function js(o) {
|
|
1609
1656
|
const t = N(), e = N(), n = N(!1), a = () => {
|
|
1610
1657
|
if (!(!o.popoverRef.value || !o.popoverWrapperRef.value || !o.isVisible.value))
|
|
@@ -1642,7 +1689,7 @@ function js(o) {
|
|
|
1642
1689
|
const c = o.popoverRef.value.getBoundingClientRect(), d = c.top < 16, p = c.bottom > window.innerHeight - 16;
|
|
1643
1690
|
(d || p) && (n.value = !0, d ? (e.value = "top", t.value = { left: c.left + "px", top: "var(--onyx-density-md)" }) : p && (e.value = "bottom", t.value = { left: c.left + "px", bottom: "var(--onyx-density-md)" }));
|
|
1644
1691
|
}
|
|
1645
|
-
}, s = m(() => !o.
|
|
1692
|
+
}, s = m(() => !o.sticky.value || !o.isVisible.value);
|
|
1646
1693
|
return Ue({
|
|
1647
1694
|
type: "scroll",
|
|
1648
1695
|
listener: () => a(),
|
|
@@ -1651,58 +1698,11 @@ function js(o) {
|
|
|
1651
1698
|
type: "resize",
|
|
1652
1699
|
listener: () => a(),
|
|
1653
1700
|
disabled: s
|
|
1654
|
-
}),
|
|
1701
|
+
}), Ce(async () => {
|
|
1655
1702
|
await Pe(), s.value || a();
|
|
1656
|
-
}), {
|
|
1703
|
+
}), { stickyStyles: t, scrolledOut: e, isSticky: n, checkVisibilityOnScroll: a };
|
|
1657
1704
|
}
|
|
1658
|
-
const
|
|
1659
|
-
const a = N(e);
|
|
1660
|
-
return {
|
|
1661
|
-
/**
|
|
1662
|
-
* Direction in which the popover should open to.
|
|
1663
|
-
*/
|
|
1664
|
-
openAlignment: a,
|
|
1665
|
-
/**
|
|
1666
|
-
* Detects in which direction a popover should be opened, depending on the available space in each direction.
|
|
1667
|
-
* Should only be called onBeforeMount or later to support server side rendering.
|
|
1668
|
-
*/
|
|
1669
|
-
updateOpenAlignment: () => {
|
|
1670
|
-
const r = l(o), u = l(t);
|
|
1671
|
-
if (!r || !u) {
|
|
1672
|
-
a.value = e;
|
|
1673
|
-
return;
|
|
1674
|
-
}
|
|
1675
|
-
const c = r.getBoundingClientRect(), d = u.getBoundingClientRect();
|
|
1676
|
-
if (d.width < c.width) {
|
|
1677
|
-
a.value = e;
|
|
1678
|
-
return;
|
|
1679
|
-
}
|
|
1680
|
-
const p = (d.width - c.width + 32) / 2, f = d.width - c.width + 16, h = window.innerWidth, b = c.left, g = h - c.right, C = b >= p, k = g >= p;
|
|
1681
|
-
e === "right" && b >= f || e === "left" && g >= f || e === "center" && C && k ? a.value = e : b > g ? a.value = "right" : a.value = "left";
|
|
1682
|
-
}
|
|
1683
|
-
};
|
|
1684
|
-
}, _o = (o, t = "bottom") => {
|
|
1685
|
-
const e = N(t);
|
|
1686
|
-
return {
|
|
1687
|
-
/**
|
|
1688
|
-
* Direction in which the popover should open to.
|
|
1689
|
-
*/
|
|
1690
|
-
openDirection: e,
|
|
1691
|
-
/**
|
|
1692
|
-
* Detects in which direction a popover should be opened, depending on the available space in each direction.
|
|
1693
|
-
* Should only be called onBeforeMount or later to support server side rendering.
|
|
1694
|
-
*/
|
|
1695
|
-
updateOpenDirection: () => {
|
|
1696
|
-
const a = l(o);
|
|
1697
|
-
if (!a) {
|
|
1698
|
-
e.value = t;
|
|
1699
|
-
return;
|
|
1700
|
-
}
|
|
1701
|
-
const s = In(a)?.getBoundingClientRect(), r = a.getBoundingClientRect(), u = s?.top ?? window.visualViewport?.pageTop ?? 0, d = (s?.bottom ?? window.visualViewport?.height ?? 0) - r.bottom, p = r.top - u;
|
|
1702
|
-
e.value = p > d ? "top" : "bottom";
|
|
1703
|
-
}
|
|
1704
|
-
};
|
|
1705
|
-
}, In = (o) => o ? getComputedStyle(o).overflow.includes("hidden") ? o : o.parentElement ? In(o.parentElement) : void 0 : void 0, Ws = ["role", "aria-label"], xo = /* @__PURE__ */ A({
|
|
1705
|
+
const Ws = ["role", "aria-label"], ko = /* @__PURE__ */ A({
|
|
1706
1706
|
__name: "OnyxBasicPopover",
|
|
1707
1707
|
props: {
|
|
1708
1708
|
label: {},
|
|
@@ -1712,7 +1712,7 @@ const Tn = (o, t, e = "center") => {
|
|
|
1712
1712
|
fitParent: { type: Boolean },
|
|
1713
1713
|
disabled: { type: Boolean },
|
|
1714
1714
|
role: { default: "dialog" },
|
|
1715
|
-
|
|
1715
|
+
sticky: { type: Boolean, default: !1 }
|
|
1716
1716
|
},
|
|
1717
1717
|
emits: ["update:open"],
|
|
1718
1718
|
setup(o, { expose: t, emit: e }) {
|
|
@@ -1742,7 +1742,7 @@ const Tn = (o, t, e = "center") => {
|
|
|
1742
1742
|
return `${u.value} span-left`;
|
|
1743
1743
|
}
|
|
1744
1744
|
return u.value.includes(" ") ? u.value : `${u.value} center`;
|
|
1745
|
-
}), f = oe("popover"), h = oe("popoverWrapper"), { openDirection: b, updateOpenDirection: g } =
|
|
1745
|
+
}), f = oe("popover"), h = oe("popoverWrapper"), { openDirection: b, updateOpenDirection: g } = xo(h, "bottom"), { openAlignment: C, updateOpenAlignment: k } = Tn(
|
|
1746
1746
|
h,
|
|
1747
1747
|
f,
|
|
1748
1748
|
"left"
|
|
@@ -1758,17 +1758,17 @@ const Tn = (o, t, e = "center") => {
|
|
|
1758
1758
|
Y ? f.value?.showPopover?.() : f.value?.hidePopover?.();
|
|
1759
1759
|
}, z = () => {
|
|
1760
1760
|
g(), k();
|
|
1761
|
-
}, {
|
|
1761
|
+
}, { stickyStyles: j, isSticky: Q } = js({
|
|
1762
1762
|
popoverRef: f,
|
|
1763
1763
|
popoverWrapperRef: h,
|
|
1764
1764
|
popoverPosition: u,
|
|
1765
1765
|
isVisible: r,
|
|
1766
|
-
|
|
1766
|
+
sticky: ce(() => n.sticky)
|
|
1767
1767
|
});
|
|
1768
1768
|
Ue({
|
|
1769
1769
|
type: "resize",
|
|
1770
1770
|
listener: () => z()
|
|
1771
|
-
}),
|
|
1771
|
+
}), Ce(() => {
|
|
1772
1772
|
L(r.value), z(), T.value || x();
|
|
1773
1773
|
}), X(r, async (Y) => {
|
|
1774
1774
|
await Pe(), L(Y), z(), T.value || x();
|
|
@@ -1786,7 +1786,7 @@ const Tn = (o, t, e = "center") => {
|
|
|
1786
1786
|
[`onyx-basic-popover__dialog--alignment-${c.value}`]: !0,
|
|
1787
1787
|
"onyx-basic-popover__dialog--fitparent": n.fitParent,
|
|
1788
1788
|
"onyx-basic-popover__dialog--disabled": d.value,
|
|
1789
|
-
"onyx-basic-popover__dialog--
|
|
1789
|
+
"onyx-basic-popover__dialog--sticky": Q.value,
|
|
1790
1790
|
"onyx-basic-popover__dialog--dont-support-anchor": !T.value
|
|
1791
1791
|
}));
|
|
1792
1792
|
X(d, () => {
|
|
@@ -1830,7 +1830,7 @@ const Tn = (o, t, e = "center") => {
|
|
|
1830
1830
|
/* STYLE */
|
|
1831
1831
|
));
|
|
1832
1832
|
}
|
|
1833
|
-
}), Ys = { class: "onyx-flyout-menu__list-header" }, Js = { class: "onyx-flyout-menu__list-footer" },
|
|
1833
|
+
}), Ys = { class: "onyx-flyout-menu__list-header" }, Js = { class: "onyx-flyout-menu__list-footer" }, je = /* @__PURE__ */ A({
|
|
1834
1834
|
__name: "OnyxFlyoutMenu",
|
|
1835
1835
|
props: {
|
|
1836
1836
|
alignment: { default: "auto" },
|
|
@@ -1855,7 +1855,7 @@ const Tn = (o, t, e = "center") => {
|
|
|
1855
1855
|
disabled: m(() => e.disabled),
|
|
1856
1856
|
position: m(() => u.value?.includes("top") ? "top" : "bottom")
|
|
1857
1857
|
});
|
|
1858
|
-
return (f, h) => (i(), _(
|
|
1858
|
+
return (f, h) => (i(), _(ko, B(l(be)(l(c), { ref: r.value }), {
|
|
1859
1859
|
class: "onyx-component onyx-flyout-menu",
|
|
1860
1860
|
open: l(a),
|
|
1861
1861
|
label: e.label,
|
|
@@ -1891,7 +1891,7 @@ const Tn = (o, t, e = "center") => {
|
|
|
1891
1891
|
} : void 0
|
|
1892
1892
|
]), 1040, ["open", "label", "alignment", "disabled"]));
|
|
1893
1893
|
}
|
|
1894
|
-
}),
|
|
1894
|
+
}), Ho = /* @__PURE__ */ A({
|
|
1895
1895
|
__name: "OnyxFAB",
|
|
1896
1896
|
props: {
|
|
1897
1897
|
density: {},
|
|
@@ -1910,14 +1910,14 @@ const Tn = (o, t, e = "center") => {
|
|
|
1910
1910
|
emit: n,
|
|
1911
1911
|
key: "open",
|
|
1912
1912
|
default: !1
|
|
1913
|
-
}), c = m(() => !!a.default), d = m(() => c.value ? u.value ? fo :
|
|
1913
|
+
}), c = m(() => !!a.default), d = m(() => c.value ? u.value ? fo : rn : e.icon);
|
|
1914
1914
|
return (p, f) => !c.value || l(r) ? (i(), _(lo, B({
|
|
1915
1915
|
key: 0,
|
|
1916
1916
|
class: ["onyx-fab", `onyx-fab--${e.alignment}`]
|
|
1917
1917
|
}, e, {
|
|
1918
1918
|
icon: d.value,
|
|
1919
1919
|
skeleton: l(r)
|
|
1920
|
-
}), null, 16, ["class", "icon", "skeleton"])) : (i(), _(
|
|
1920
|
+
}), null, 16, ["class", "icon", "skeleton"])) : (i(), _(je, {
|
|
1921
1921
|
key: 1,
|
|
1922
1922
|
open: l(u),
|
|
1923
1923
|
"onUpdate:open": f[0] || (f[0] = (h) => Ae(u) ? u.value = h : null),
|
|
@@ -1952,7 +1952,7 @@ const Tn = (o, t, e = "center") => {
|
|
|
1952
1952
|
setup(o) {
|
|
1953
1953
|
const t = o, { densityClass: e } = q(t), {
|
|
1954
1954
|
elements: { listItem: n, menuItem: a }
|
|
1955
|
-
} =
|
|
1955
|
+
} = _o();
|
|
1956
1956
|
return (s, r) => (i(), v(
|
|
1957
1957
|
"li",
|
|
1958
1958
|
B({
|
|
@@ -1968,8 +1968,8 @@ const Tn = (o, t, e = "center") => {
|
|
|
1968
1968
|
));
|
|
1969
1969
|
}
|
|
1970
1970
|
}), Rn = Symbol(), Xs = () => {
|
|
1971
|
-
const o =
|
|
1972
|
-
o.value = o.value.concat(
|
|
1971
|
+
const o = Ye([]), t = (n) => {
|
|
1972
|
+
o.value = o.value.concat(ce(n));
|
|
1973
1973
|
}, e = (n) => {
|
|
1974
1974
|
o.value = o.value.filter((a) => a.value.id !== n);
|
|
1975
1975
|
};
|
|
@@ -1999,12 +1999,12 @@ const Tn = (o, t, e = "center") => {
|
|
|
1999
1999
|
() => t.items.value.some((a) => a.value.alignment === "left") ? "left" : "right"
|
|
2000
2000
|
);
|
|
2001
2001
|
return (a, s) => l(t).items.value.length === 1 ? (i(), _(
|
|
2002
|
-
|
|
2002
|
+
Ho,
|
|
2003
2003
|
Ne(B({ key: 0 }, l(t).items.value[0].value)),
|
|
2004
2004
|
null,
|
|
2005
2005
|
16
|
|
2006
2006
|
/* FULL_PROPS */
|
|
2007
|
-
)) : l(t).items.value.length > 1 ? (i(), _(
|
|
2007
|
+
)) : l(t).items.value.length > 1 ? (i(), _(Ho, {
|
|
2008
2008
|
key: 1,
|
|
2009
2009
|
label: l(e)("globalFAB.label"),
|
|
2010
2010
|
alignment: n.value
|
|
@@ -2013,7 +2013,7 @@ const Tn = (o, t, e = "center") => {
|
|
|
2013
2013
|
(i(!0), v(
|
|
2014
2014
|
K,
|
|
2015
2015
|
null,
|
|
2016
|
-
|
|
2016
|
+
ue(l(t).items.value, (r) => (i(), _(
|
|
2017
2017
|
Zs,
|
|
2018
2018
|
B({
|
|
2019
2019
|
key: r.value.id
|
|
@@ -2124,7 +2124,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
2124
2124
|
(i(!0), v(
|
|
2125
2125
|
K,
|
|
2126
2126
|
null,
|
|
2127
|
-
|
|
2127
|
+
ue(l(n), ([c, d]) => (i(), v("span", {
|
|
2128
2128
|
key: c,
|
|
2129
2129
|
class: "onyx-ripple__element",
|
|
2130
2130
|
style: Le({
|
|
@@ -2212,10 +2212,10 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
2212
2212
|
}, 16, ["class", "aria-label"]));
|
|
2213
2213
|
}
|
|
2214
2214
|
}), pr = { class: "onyx-info-card__content" }, mr = {
|
|
2215
|
-
key:
|
|
2215
|
+
key: 3,
|
|
2216
2216
|
class: "onyx-info-card__description onyx-text--small"
|
|
2217
2217
|
}, yr = {
|
|
2218
|
-
key:
|
|
2218
|
+
key: 4,
|
|
2219
2219
|
class: "onyx-info-card__buttons onyx-density-compact"
|
|
2220
2220
|
}, fr = /* @__PURE__ */ A({
|
|
2221
2221
|
__name: "OnyxInfoCard",
|
|
@@ -2228,8 +2228,8 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
2228
2228
|
},
|
|
2229
2229
|
emits: ["close"],
|
|
2230
2230
|
setup(o, { emit: t }) {
|
|
2231
|
-
const e = o, n = t, a = ye(), { t: s } = W(), { densityClass: r } = q(e);
|
|
2232
|
-
return (
|
|
2231
|
+
const e = o, n = t, a = ye(), { t: s } = W(), { densityClass: r } = q(e), u = m(() => e.color === "neutral" ? "soft" : "medium");
|
|
2232
|
+
return (c, d) => (i(), v(
|
|
2233
2233
|
"div",
|
|
2234
2234
|
{
|
|
2235
2235
|
class: R(["onyx-component", "onyx-info-card", `onyx-info-card--${e.color}`, l(r)])
|
|
@@ -2256,19 +2256,38 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
2256
2256
|
_: 1
|
|
2257
2257
|
/* STABLE */
|
|
2258
2258
|
})) : w("v-if", !0),
|
|
2259
|
-
|
|
2259
|
+
a.headerActions ? (i(), _(je, {
|
|
2260
2260
|
key: 1,
|
|
2261
|
-
class: "onyx-info-
|
|
2261
|
+
class: "onyx-info-card__action",
|
|
2262
|
+
label: l(s)("notificationCard.moreActions"),
|
|
2263
|
+
trigger: "click",
|
|
2264
|
+
alignment: "right"
|
|
2265
|
+
}, {
|
|
2266
|
+
button: $(({ trigger: p }) => [
|
|
2267
|
+
O(Se, B(p, {
|
|
2268
|
+
label: l(s)("notificationCard.toggleActions"),
|
|
2269
|
+
icon: l(vo),
|
|
2270
|
+
color: u.value
|
|
2271
|
+
}), null, 16, ["label", "icon", "color"])
|
|
2272
|
+
]),
|
|
2273
|
+
options: $(() => [
|
|
2274
|
+
E(c.$slots, "headerActions")
|
|
2275
|
+
]),
|
|
2276
|
+
_: 3
|
|
2277
|
+
/* FORWARDED */
|
|
2278
|
+
}, 8, ["label"])) : e.closable ? (i(), _(Se, {
|
|
2279
|
+
key: 2,
|
|
2280
|
+
class: "onyx-info-card__close onyx-info-card__action",
|
|
2262
2281
|
icon: l(qe),
|
|
2263
2282
|
label: l(s)("close"),
|
|
2264
|
-
color:
|
|
2265
|
-
onClick:
|
|
2283
|
+
color: u.value,
|
|
2284
|
+
onClick: d[0] || (d[0] = (p) => n("close"))
|
|
2266
2285
|
}, null, 8, ["icon", "label", "color"])) : w("v-if", !0),
|
|
2267
2286
|
a.default ? (i(), v("p", mr, [
|
|
2268
|
-
E(
|
|
2287
|
+
E(c.$slots, "default")
|
|
2269
2288
|
])) : w("v-if", !0),
|
|
2270
2289
|
a.buttons ? (i(), v("div", yr, [
|
|
2271
|
-
E(
|
|
2290
|
+
E(c.$slots, "buttons")
|
|
2272
2291
|
])) : w("v-if", !0)
|
|
2273
2292
|
])
|
|
2274
2293
|
],
|
|
@@ -2364,7 +2383,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
2364
2383
|
(i(!0), v(
|
|
2365
2384
|
K,
|
|
2366
2385
|
null,
|
|
2367
|
-
|
|
2386
|
+
ue(l(t).notifications.value, ({ id: a, ...s }) => (i(), _(
|
|
2368
2387
|
vr,
|
|
2369
2388
|
B({ key: a }, { ref_for: !0 }, s),
|
|
2370
2389
|
ke({
|
|
@@ -2384,7 +2403,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
2384
2403
|
(i(!0), v(
|
|
2385
2404
|
K,
|
|
2386
2405
|
null,
|
|
2387
|
-
|
|
2406
|
+
ue(s.buttons, (r) => (i(), _(
|
|
2388
2407
|
st,
|
|
2389
2408
|
B({
|
|
2390
2409
|
key: r.label
|
|
@@ -2427,7 +2446,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
2427
2446
|
setup(o, { emit: t }) {
|
|
2428
2447
|
const e = o, n = t, { t: a } = W(), { densityClass: s } = q(e), r = m(() => e.duration > 0), u = {
|
|
2429
2448
|
neutral: Qt,
|
|
2430
|
-
danger:
|
|
2449
|
+
danger: cn,
|
|
2431
2450
|
warning: yo,
|
|
2432
2451
|
success: Ia
|
|
2433
2452
|
}, c = m(() => {
|
|
@@ -2536,7 +2555,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
2536
2555
|
(i(!0), v(
|
|
2537
2556
|
K,
|
|
2538
2557
|
null,
|
|
2539
|
-
|
|
2558
|
+
ue(l(t).toasts.value, ({ id: a, ...s }) => (i(), _(
|
|
2540
2559
|
Nn,
|
|
2541
2560
|
B({ key: a }, { ref_for: !0 }, s),
|
|
2542
2561
|
null,
|
|
@@ -2713,13 +2732,13 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
2713
2732
|
}
|
|
2714
2733
|
}), Ur = (o) => {
|
|
2715
2734
|
const t = N(), e = N(), { width: n } = He(o.parentRef), { width: a } = He(o.moreIndicatorRef), s = po(/* @__PURE__ */ new Map());
|
|
2716
|
-
return
|
|
2735
|
+
return Ce(() => {
|
|
2717
2736
|
X(
|
|
2718
|
-
[n, a, s,
|
|
2737
|
+
[n, a, s, ce(o.direction)],
|
|
2719
2738
|
() => {
|
|
2720
2739
|
let r = n.value;
|
|
2721
2740
|
if (r <= 0) return;
|
|
2722
|
-
const u =
|
|
2741
|
+
const u = Go(o.parentRef.value), c = Go(o.listRef.value);
|
|
2723
2742
|
a.value > 0 && (r -= a.value + u), t.value = [], e.value = [];
|
|
2724
2743
|
const d = Array.from(s.entries());
|
|
2725
2744
|
U(o.direction) === "ltr" && d.reverse(), d.forEach(([p, f], h, { length: b }) => {
|
|
@@ -2751,8 +2770,8 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
2751
2770
|
*/
|
|
2752
2771
|
componentMap: s
|
|
2753
2772
|
};
|
|
2754
|
-
},
|
|
2755
|
-
const t =
|
|
2773
|
+
}, Go = (o) => {
|
|
2774
|
+
const t = Je(o);
|
|
2756
2775
|
return t && Number.parseFloat(getComputedStyle(t).columnGap) || 0;
|
|
2757
2776
|
}, zn = (o) => {
|
|
2758
2777
|
const t = me(), e = N(), n = ge(o, void 0), { width: a } = He(e, { box: "border-box" });
|
|
@@ -2794,7 +2813,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
2794
2813
|
size: "16px"
|
|
2795
2814
|
}, null, 8, ["icon"])) : w("v-if", !0);
|
|
2796
2815
|
}
|
|
2797
|
-
}),
|
|
2816
|
+
}), wo = /* @__PURE__ */ A({
|
|
2798
2817
|
__name: "OnyxListItem",
|
|
2799
2818
|
props: {
|
|
2800
2819
|
density: {},
|
|
@@ -2854,7 +2873,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
2854
2873
|
default: !1
|
|
2855
2874
|
}), d = oe("backButtonRef"), p = oe("menuItemRef"), {
|
|
2856
2875
|
elements: { listItem: f, menuItem: h }
|
|
2857
|
-
} =
|
|
2876
|
+
} = _o({
|
|
2858
2877
|
onOpen: async () => {
|
|
2859
2878
|
k.value && (c.value = !0, await Pe(), d.value?.$el.querySelector("button").focus());
|
|
2860
2879
|
}
|
|
@@ -2878,7 +2897,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
2878
2897
|
};
|
|
2879
2898
|
return (x, T) => {
|
|
2880
2899
|
const D = Oa("OnyxMenuItem", !0);
|
|
2881
|
-
return i(), _(
|
|
2900
|
+
return i(), _(wo, B({
|
|
2882
2901
|
selected: g.value,
|
|
2883
2902
|
active: g.value,
|
|
2884
2903
|
color: s.color,
|
|
@@ -2904,7 +2923,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
2904
2923
|
),
|
|
2905
2924
|
O(
|
|
2906
2925
|
Un,
|
|
2907
|
-
Ne(
|
|
2926
|
+
Ne(Ze(s.link ? l(tt)(s.link) : void 0)),
|
|
2908
2927
|
null,
|
|
2909
2928
|
16
|
|
2910
2929
|
/* FULL_PROPS */
|
|
@@ -2913,7 +2932,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
2913
2932
|
]),
|
|
2914
2933
|
k.value ? (i(), v("div", Gr, [
|
|
2915
2934
|
O(H, {
|
|
2916
|
-
icon: l(
|
|
2935
|
+
icon: l(ho),
|
|
2917
2936
|
size: "24px"
|
|
2918
2937
|
}, null, 8, ["icon"])
|
|
2919
2938
|
])) : w("v-if", !0)
|
|
@@ -2937,7 +2956,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
2937
2956
|
},
|
|
2938
2957
|
{
|
|
2939
2958
|
default: $(() => [
|
|
2940
|
-
O(H, { icon: l(
|
|
2959
|
+
O(H, { icon: l(un) }, null, 8, ["icon"]),
|
|
2941
2960
|
Z(
|
|
2942
2961
|
" " + I(l(e)("back")),
|
|
2943
2962
|
1
|
|
@@ -2963,7 +2982,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
2963
2982
|
}, 16, ["selected", "active", "color", "disabled", "class"]);
|
|
2964
2983
|
};
|
|
2965
2984
|
}
|
|
2966
|
-
}),
|
|
2985
|
+
}), qo = /* @__PURE__ */ A({
|
|
2967
2986
|
inheritAttrs: !1,
|
|
2968
2987
|
__name: "OnyxBreadcrumbItem",
|
|
2969
2988
|
props: {
|
|
@@ -3047,7 +3066,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
3047
3066
|
parentRef: a,
|
|
3048
3067
|
listRef: s,
|
|
3049
3068
|
moreIndicatorRef: r,
|
|
3050
|
-
direction:
|
|
3069
|
+
direction: ce(() => e.direction)
|
|
3051
3070
|
});
|
|
3052
3071
|
return Fe(e.injectionKey, u), X(
|
|
3053
3072
|
[() => u.visibleElements.value?.length, () => u.hiddenElements.value?.length],
|
|
@@ -3117,7 +3136,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
3117
3136
|
"aria-hidden": t.skeleton
|
|
3118
3137
|
}, [
|
|
3119
3138
|
y("ol", jr, [
|
|
3120
|
-
O(
|
|
3139
|
+
O(qo, {
|
|
3121
3140
|
class: "onyx-breadcrumb__home",
|
|
3122
3141
|
href: t.home?.link ?? "/",
|
|
3123
3142
|
"aria-label": t.home?.label ?? l(e)("breadcrumb.home"),
|
|
@@ -3152,7 +3171,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
3152
3171
|
default: $(({ attributes: r }) => [
|
|
3153
3172
|
y(
|
|
3154
3173
|
"div",
|
|
3155
|
-
Ne(
|
|
3174
|
+
Ne(Ze(r)),
|
|
3156
3175
|
[
|
|
3157
3176
|
E(a.$slots, "default")
|
|
3158
3177
|
],
|
|
@@ -3161,19 +3180,19 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
3161
3180
|
)
|
|
3162
3181
|
]),
|
|
3163
3182
|
more: $(({ attributes: r }) => [
|
|
3164
|
-
O(
|
|
3183
|
+
O(je, B(r, {
|
|
3165
3184
|
label: l(e)("navigation.moreNavItemsLabel"),
|
|
3166
3185
|
trigger: "click"
|
|
3167
3186
|
}), {
|
|
3168
3187
|
button: $(({ trigger: u }) => [
|
|
3169
|
-
O(
|
|
3188
|
+
O(qo, B(u, {
|
|
3170
3189
|
"aria-label": l(e)("navigation.showMoreNavItemsLabel"),
|
|
3171
3190
|
title: l(e)("navigation.showMoreNavItemsLabel"),
|
|
3172
|
-
icon: l(
|
|
3191
|
+
icon: l(Lo)
|
|
3173
3192
|
}), {
|
|
3174
3193
|
default: $(() => [
|
|
3175
3194
|
O(H, {
|
|
3176
|
-
icon: l(
|
|
3195
|
+
icon: l(Lo),
|
|
3177
3196
|
size: "16px"
|
|
3178
3197
|
}, null, 8, ["icon"])
|
|
3179
3198
|
]),
|
|
@@ -3306,9 +3325,9 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
3306
3325
|
return `${p.value} x-end`;
|
|
3307
3326
|
}
|
|
3308
3327
|
return p.value.includes(" ") ? p.value : `${p.value} center`;
|
|
3309
|
-
}), b = () => d.value === "hover" ? Os(u.value) : Bs(c.value), g =
|
|
3328
|
+
}), b = () => d.value === "hover" ? Os(u.value) : Bs(c.value), g = Ye(b());
|
|
3310
3329
|
X(d, () => g.value = b());
|
|
3311
|
-
const C = m(() => g.value?.elements.tooltip), k = m(() => U(g.value?.elements.trigger)), S =
|
|
3330
|
+
const C = m(() => g.value?.elements.tooltip), k = m(() => U(g.value?.elements.trigger)), S = ce(() => e.alignsWithEdge), M = ce(() => e.fitParent), x = oe("tooltipWrapperRefEl"), T = oe("tooltipRefEl"), { openDirection: D, updateOpenDirection: L } = xo(x, "top"), { openAlignment: z, updateOpenAlignment: j } = Tn(x, T), { leftPosition: Q, topPosition: P, updateAnchorPositionPolyfill: F, useragentSupportsAnchorApi: ee } = An({
|
|
3312
3331
|
positionedRef: T,
|
|
3313
3332
|
targetRef: x,
|
|
3314
3333
|
positionArea: p,
|
|
@@ -3337,9 +3356,9 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
3337
3356
|
})), { width: Y } = He(x), Be = m(
|
|
3338
3357
|
() => e.fitParent && x.value ? `${Y.value}px` : "max-content"
|
|
3339
3358
|
);
|
|
3340
|
-
|
|
3359
|
+
Ce(() => {
|
|
3341
3360
|
V(r.value), G();
|
|
3342
|
-
}),
|
|
3361
|
+
}), Ce(() => {
|
|
3343
3362
|
ee.value || X(
|
|
3344
3363
|
[Be, p, f, S, r],
|
|
3345
3364
|
() => F(),
|
|
@@ -3352,9 +3371,9 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
3352
3371
|
},
|
|
3353
3372
|
{ flush: "post" }
|
|
3354
3373
|
);
|
|
3355
|
-
const
|
|
3374
|
+
const $e = `--anchor-${me()}`, fe = m(() => ee.value ? {
|
|
3356
3375
|
width: Be.value,
|
|
3357
|
-
"position-anchor":
|
|
3376
|
+
"position-anchor": $e,
|
|
3358
3377
|
"position-area": h.value
|
|
3359
3378
|
} : {
|
|
3360
3379
|
width: Be.value,
|
|
@@ -3366,7 +3385,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
3366
3385
|
{
|
|
3367
3386
|
ref: "tooltipWrapperRefEl",
|
|
3368
3387
|
class: R(["onyx-component", "onyx-tooltip-wrapper", l(a)]),
|
|
3369
|
-
style: Le(`anchor-name: ${
|
|
3388
|
+
style: Le(`anchor-name: ${$e}`)
|
|
3370
3389
|
},
|
|
3371
3390
|
[
|
|
3372
3391
|
y(
|
|
@@ -3558,7 +3577,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
3558
3577
|
O(vt, {
|
|
3559
3578
|
label: l(r)("calendar.previousMonthButton"),
|
|
3560
3579
|
color: "neutral",
|
|
3561
|
-
icon: l(
|
|
3580
|
+
icon: l(bo),
|
|
3562
3581
|
disabled: l(f),
|
|
3563
3582
|
onClick: l(j)
|
|
3564
3583
|
}, null, 8, ["label", "icon", "disabled", "onClick"]),
|
|
@@ -3582,7 +3601,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
3582
3601
|
O(vt, {
|
|
3583
3602
|
label: l(r)("calendar.nextMonthButton"),
|
|
3584
3603
|
color: "neutral",
|
|
3585
|
-
icon: l(
|
|
3604
|
+
icon: l(ho),
|
|
3586
3605
|
disabled: l(f),
|
|
3587
3606
|
onClick: l(Q)
|
|
3588
3607
|
}, null, 8, ["label", "icon", "disabled", "onClick"])
|
|
@@ -3594,14 +3613,14 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
3594
3613
|
y("div", ti, [
|
|
3595
3614
|
y(
|
|
3596
3615
|
"table",
|
|
3597
|
-
Ne(
|
|
3616
|
+
Ne(Ze(l(D))),
|
|
3598
3617
|
[
|
|
3599
3618
|
y("thead", null, [
|
|
3600
3619
|
y("tr", null, [
|
|
3601
3620
|
(i(!0), v(
|
|
3602
3621
|
K,
|
|
3603
3622
|
null,
|
|
3604
|
-
|
|
3623
|
+
ue(l(T), (Y, Be) => (i(), v("th", {
|
|
3605
3624
|
key: Be,
|
|
3606
3625
|
scope: "col",
|
|
3607
3626
|
abbr: Y,
|
|
@@ -3616,22 +3635,22 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
3616
3635
|
(i(!0), v(
|
|
3617
3636
|
K,
|
|
3618
3637
|
null,
|
|
3619
|
-
|
|
3638
|
+
ue(l(x), (Y, Be) => (i(), v("tr", { key: Be }, [
|
|
3620
3639
|
(i(!0), v(
|
|
3621
3640
|
K,
|
|
3622
3641
|
null,
|
|
3623
|
-
|
|
3642
|
+
ue(Y, ($e, fe) => (i(), v(
|
|
3624
3643
|
"td",
|
|
3625
|
-
B({ key: fe }, { ref_for: !0 }, l(L)(
|
|
3644
|
+
B({ key: fe }, { ref_for: !0 }, l(L)($e)),
|
|
3626
3645
|
[
|
|
3627
|
-
|
|
3646
|
+
$e.date ? (i(), v(
|
|
3628
3647
|
"button",
|
|
3629
3648
|
B({
|
|
3630
3649
|
key: 0,
|
|
3631
3650
|
ref_for: !0
|
|
3632
|
-
}, l(z)(
|
|
3651
|
+
}, l(z)($e), {
|
|
3633
3652
|
ref_for: !0,
|
|
3634
|
-
ref: (Oe) => p(Oe,
|
|
3653
|
+
ref: (Oe) => p(Oe, $e.date?.toISOString().slice(0, 10)),
|
|
3635
3654
|
type: "button"
|
|
3636
3655
|
}),
|
|
3637
3656
|
[
|
|
@@ -3639,7 +3658,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
3639
3658
|
y(
|
|
3640
3659
|
"span",
|
|
3641
3660
|
ai,
|
|
3642
|
-
I(
|
|
3661
|
+
I($e.date.getDate()),
|
|
3643
3662
|
1
|
|
3644
3663
|
/* TEXT */
|
|
3645
3664
|
)
|
|
@@ -3692,7 +3711,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
3692
3711
|
}, ii = (o, t) => {
|
|
3693
3712
|
const e = Object.entries(o).filter(([a, s]) => s !== void 0), n = Object.entries(t).filter(([a, s]) => s !== void 0);
|
|
3694
3713
|
return e.length !== n.length ? !1 : e.every(([a, s]) => s === t[a]);
|
|
3695
|
-
},
|
|
3714
|
+
}, Ko = (o, t) => o.reduce(
|
|
3696
3715
|
(e, n) => {
|
|
3697
3716
|
const a = n[t] ?? "";
|
|
3698
3717
|
return e[a] = e[a] || [], e[a].push(n), e;
|
|
@@ -3744,7 +3763,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
3744
3763
|
return o.shortMessage;
|
|
3745
3764
|
const { shortMessage: t, longMessage: e } = o;
|
|
3746
3765
|
return `${t}: ${e}`;
|
|
3747
|
-
},
|
|
3766
|
+
}, We = (o) => {
|
|
3748
3767
|
const { t, locale: e } = W(), n = N(!1), { vCustomValidity: a, validityState: s } = ui({
|
|
3749
3768
|
error: m(() => Kn(o.props.error || U(o.error))),
|
|
3750
3769
|
props: o.props
|
|
@@ -3771,8 +3790,8 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
3771
3790
|
n: o.props.modelValue?.toString().length ?? 0,
|
|
3772
3791
|
minLength: o.props.minlength,
|
|
3773
3792
|
maxLength: d,
|
|
3774
|
-
min:
|
|
3775
|
-
max:
|
|
3793
|
+
min: jo(e.value, o.props.type, o.props.min),
|
|
3794
|
+
max: jo(e.value, o.props.type, o.props.max),
|
|
3776
3795
|
step: o.props.validStepSize
|
|
3777
3796
|
};
|
|
3778
3797
|
if (u === "typeMismatch") {
|
|
@@ -3797,7 +3816,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
3797
3816
|
*/
|
|
3798
3817
|
errorMessages: r
|
|
3799
3818
|
};
|
|
3800
|
-
},
|
|
3819
|
+
}, jo = (o, t, e) => {
|
|
3801
3820
|
if (!t || !["date", "datetime-local"].includes(t)) return e?.toString();
|
|
3802
3821
|
const n = e != null ? new Date(e) : void 0;
|
|
3803
3822
|
if (!ro(n)) return e?.toString();
|
|
@@ -3811,7 +3830,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
3811
3830
|
}, pi = { class: "onyx-component" }, mi = {
|
|
3812
3831
|
key: 0,
|
|
3813
3832
|
ref: "targetRef"
|
|
3814
|
-
},
|
|
3833
|
+
}, So = /* @__PURE__ */ A({
|
|
3815
3834
|
__name: "OnyxErrorTooltip",
|
|
3816
3835
|
props: {
|
|
3817
3836
|
errorMessages: {},
|
|
@@ -3882,7 +3901,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
3882
3901
|
emit: a,
|
|
3883
3902
|
key: "modelValue",
|
|
3884
3903
|
default: !1
|
|
3885
|
-
}), { vCustomValidity: c, errorMessages: d } =
|
|
3904
|
+
}), { vCustomValidity: c, errorMessages: d } = We({ props: n, emit: a }), { densityClass: p } = q(n), { disabled: f, requiredMarker: h } = _e(n), b = se(n), { requiredMarkerClass: g, requiredTypeClass: C } = Ft(n, h), k = m(() => n.hideLabel ? n.label : void 0), S = oe("inputRef");
|
|
3886
3905
|
return t({ input: S }), Ie(S, n), (M, x) => l(b) ? (i(), v(
|
|
3887
3906
|
"div",
|
|
3888
3907
|
B({
|
|
@@ -3898,7 +3917,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
3898
3917
|
],
|
|
3899
3918
|
16
|
|
3900
3919
|
/* FULL_PROPS */
|
|
3901
|
-
)) : (i(), _(
|
|
3920
|
+
)) : (i(), _(So, B({
|
|
3902
3921
|
key: 1,
|
|
3903
3922
|
disabled: l(f),
|
|
3904
3923
|
"error-messages": l(d)
|
|
@@ -3926,7 +3945,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
3926
3945
|
value: n.value,
|
|
3927
3946
|
autofocus: n.autofocus
|
|
3928
3947
|
}, l(r)), null, 16, vi)), [
|
|
3929
|
-
[
|
|
3948
|
+
[ln, l(u)],
|
|
3930
3949
|
[l(c)]
|
|
3931
3950
|
])
|
|
3932
3951
|
]),
|
|
@@ -4022,7 +4041,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
4022
4041
|
"onUpdate:open": u[0] || (u[0] = (c) => Ae(a) ? a.value = c : null)
|
|
4023
4042
|
}), {
|
|
4024
4043
|
default: $(({ trigger: c }) => [
|
|
4025
|
-
O(
|
|
4044
|
+
O(Se, B({
|
|
4026
4045
|
label: (
|
|
4027
4046
|
// if type is `click` aria-label will always be defined
|
|
4028
4047
|
c["aria-label"]
|
|
@@ -4057,7 +4076,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
4057
4076
|
_: 1
|
|
4058
4077
|
/* STABLE */
|
|
4059
4078
|
}, 16, ["open"]),
|
|
4060
|
-
O(
|
|
4079
|
+
O(Xe, null, {
|
|
4061
4080
|
default: $(() => [
|
|
4062
4081
|
Z(
|
|
4063
4082
|
I(e.text),
|
|
@@ -4077,7 +4096,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
4077
4096
|
}), gi = ["disabled", "aria-label"], _i = {
|
|
4078
4097
|
key: 0,
|
|
4079
4098
|
class: "onyx-checkbox-group__label"
|
|
4080
|
-
},
|
|
4099
|
+
}, Wo = /* @__PURE__ */ A({
|
|
4081
4100
|
__name: "OnyxCheckboxGroup",
|
|
4082
4101
|
props: {
|
|
4083
4102
|
truncation: { default: "ellipsis" },
|
|
@@ -4149,7 +4168,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
4149
4168
|
l(h) ? typeof l(h) == "number" ? (i(!0), v(
|
|
4150
4169
|
K,
|
|
4151
4170
|
{ key: 1 },
|
|
4152
|
-
|
|
4171
|
+
ue(l(h), (M) => (i(), _(yt, {
|
|
4153
4172
|
key: M,
|
|
4154
4173
|
label: `Skeleton ${M}`,
|
|
4155
4174
|
value: `skeleton-${M}`,
|
|
@@ -4173,7 +4192,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
4173
4192
|
(i(!0), v(
|
|
4174
4193
|
K,
|
|
4175
4194
|
null,
|
|
4176
|
-
|
|
4195
|
+
ue(n.options, (M) => (i(), _(yt, B({
|
|
4177
4196
|
key: M.value.toString()
|
|
4178
4197
|
}, { ref_for: !0 }, M, {
|
|
4179
4198
|
ref_for: !0,
|
|
@@ -4197,7 +4216,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
4197
4216
|
)
|
|
4198
4217
|
], 10, gi));
|
|
4199
4218
|
}
|
|
4200
|
-
}),
|
|
4219
|
+
}), $o = (o) => {
|
|
4201
4220
|
const t = typeof o == "symbol" && o.description ? o.description : String(o);
|
|
4202
4221
|
return globalThis.window && window.CSS ? CSS.escape(t) : t.replace(/\W/g, "-");
|
|
4203
4222
|
}, xi = { class: "onyx-empty__label onyx-text onyx-truncation-multiline" }, ki = {
|
|
@@ -4218,7 +4237,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
4218
4237
|
[
|
|
4219
4238
|
E(a.$slots, "icon", {}, () => [
|
|
4220
4239
|
O(H, {
|
|
4221
|
-
icon: l(
|
|
4240
|
+
icon: l(cn),
|
|
4222
4241
|
size: "48px"
|
|
4223
4242
|
}, null, 8, ["icon"])
|
|
4224
4243
|
]),
|
|
@@ -4293,7 +4312,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
4293
4312
|
(i(!0), v(
|
|
4294
4313
|
K,
|
|
4295
4314
|
null,
|
|
4296
|
-
|
|
4315
|
+
ue(t.columnGroups, (g) => (i(), v("colgroup", {
|
|
4297
4316
|
key: g.key,
|
|
4298
4317
|
span: g.span
|
|
4299
4318
|
}, null, 8, Bi))),
|
|
@@ -4305,7 +4324,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
4305
4324
|
(i(!0), v(
|
|
4306
4325
|
K,
|
|
4307
4326
|
null,
|
|
4308
|
-
|
|
4327
|
+
ue(t.columnGroups, (g) => (i(), v("th", {
|
|
4309
4328
|
key: g.key,
|
|
4310
4329
|
colspan: g.span,
|
|
4311
4330
|
scope: "colgroup",
|
|
@@ -4371,7 +4390,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
4371
4390
|
const t = o, e = ye(), n = m(() => ({
|
|
4372
4391
|
"--onyx-data-grid-column-count": t.columns.length,
|
|
4373
4392
|
"--onyx-data-grid-row-count": Math.max(t.rows.length + 2, 3),
|
|
4374
|
-
"--onyx-data-grid-template-columns": t.columns.map(({ key: a, width: s }) => `var(${`--onyx-data-grid-column-${
|
|
4393
|
+
"--onyx-data-grid-template-columns": t.columns.map(({ key: a, width: s }) => `var(${`--onyx-data-grid-column-${$o(a)}`}, ${s ?? "minmax(min-content, 1fr)"})`).join(" ")
|
|
4375
4394
|
}));
|
|
4376
4395
|
return (a, s) => (i(), _(Yn, B({ class: "onyx-data-grid" }, t, {
|
|
4377
4396
|
"scroll-container-attrs": l(be)(t.scrollContainerAttrs, { style: n.value })
|
|
@@ -4381,7 +4400,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
4381
4400
|
(i(!0), v(
|
|
4382
4401
|
K,
|
|
4383
4402
|
null,
|
|
4384
|
-
|
|
4403
|
+
ue(t.columns, (r) => (i(), v(
|
|
4385
4404
|
"th",
|
|
4386
4405
|
B({
|
|
4387
4406
|
key: r.key
|
|
@@ -4410,7 +4429,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
4410
4429
|
(i(!0), v(
|
|
4411
4430
|
K,
|
|
4412
4431
|
null,
|
|
4413
|
-
|
|
4432
|
+
ue(t.rows, (r) => (i(), v(
|
|
4414
4433
|
"tr",
|
|
4415
4434
|
B({
|
|
4416
4435
|
key: r.id
|
|
@@ -4419,7 +4438,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
4419
4438
|
(i(!0), v(
|
|
4420
4439
|
K,
|
|
4421
4440
|
null,
|
|
4422
|
-
|
|
4441
|
+
ue(r.columns, (u) => (i(), v(
|
|
4423
4442
|
K,
|
|
4424
4443
|
{
|
|
4425
4444
|
key: u.key
|
|
@@ -4461,10 +4480,10 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
4461
4480
|
_: 2
|
|
4462
4481
|
/* DYNAMIC */
|
|
4463
4482
|
}, [
|
|
4464
|
-
|
|
4483
|
+
ue(e, (r, u) => ({
|
|
4465
4484
|
name: u,
|
|
4466
4485
|
fn: $((c) => [
|
|
4467
|
-
E(a.$slots, r?.name, Ne(
|
|
4486
|
+
E(a.$slots, r?.name, Ne(Ze(c)), () => [
|
|
4468
4487
|
(i(), _(Me(r)))
|
|
4469
4488
|
])
|
|
4470
4489
|
])
|
|
@@ -4557,21 +4576,21 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
4557
4576
|
])) : w("v-if", !0)
|
|
4558
4577
|
]));
|
|
4559
4578
|
}
|
|
4560
|
-
}),
|
|
4579
|
+
}), Co = "-", gt = (o) => o?.fallback ?? Co, Ee = (o) => Object.freeze(o), Zn = (o, t) => {
|
|
4561
4580
|
if (o == null || o instanceof Date || typeof o == "boolean" || typeof o == "symbol")
|
|
4562
4581
|
return gt(t);
|
|
4563
4582
|
const { n: e } = W();
|
|
4564
|
-
return e.value(o, t?.format ?? "decimal").replace("NaN",
|
|
4583
|
+
return e.value(o, t?.format ?? "decimal").replace("NaN", Co);
|
|
4565
4584
|
}, Xn = Ee({
|
|
4566
4585
|
header: { component: ot },
|
|
4567
4586
|
cell: {
|
|
4568
4587
|
component: ({ metadata: o, modelValue: t }) => Zn(t, o?.typeOptions),
|
|
4569
4588
|
tdAttributes: { class: "onyx-data-grid-number-cell" }
|
|
4570
4589
|
}
|
|
4571
|
-
}),
|
|
4590
|
+
}), Eo = (o, t) => o == null ? gt(t) : Array.isArray(o) ? o.map((e) => Eo(e)).filter((e) => e != gt(t)).join(", ") : o instanceof Date ? o.toString() : typeof o == "object" ? JSON.stringify(o) : String(o), Bo = Ee({
|
|
4572
4591
|
header: { component: ot },
|
|
4573
4592
|
cell: {
|
|
4574
|
-
component: (o) =>
|
|
4593
|
+
component: (o) => Eo(o.modelValue, o.metadata?.typeOptions)
|
|
4575
4594
|
}
|
|
4576
4595
|
}), kt = (o, t) => {
|
|
4577
4596
|
if (o == null || typeof o == "boolean") return gt(t);
|
|
@@ -4625,7 +4644,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
4625
4644
|
return [
|
|
4626
4645
|
ie(H, r),
|
|
4627
4646
|
// since icons are aria hidden (visual only), we include the value with OnyxVisuallyHidden here for screen readers
|
|
4628
|
-
ie(
|
|
4647
|
+
ie(Xe, void 0, () => r.label)
|
|
4629
4648
|
];
|
|
4630
4649
|
}
|
|
4631
4650
|
}
|
|
@@ -4638,7 +4657,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
4638
4657
|
* Returns a renderer for any given component and type.
|
|
4639
4658
|
* Uses the fallbackRenderer if necessary.
|
|
4640
4659
|
*/
|
|
4641
|
-
getFor: (n, a) => e.get(a)?.[n] ??
|
|
4660
|
+
getFor: (n, a) => e.get(a)?.[n] ?? Bo[n]
|
|
4642
4661
|
// Map returns undefined if `type` is undefined, so it's safe to use the Non-Null assertion.
|
|
4643
4662
|
};
|
|
4644
4663
|
};
|
|
@@ -4687,29 +4706,29 @@ const Gi = (o, t) => {
|
|
|
4687
4706
|
const k = r.map((x) => x.header).filter((x) => !!x), S = k.map((x) => x.actions).filter((x) => !!x), M = k.map((x) => x.wrapper).filter((x) => !!x);
|
|
4688
4707
|
return c.value.map((x, T, D) => {
|
|
4689
4708
|
const L = S.flatMap((G) => G(x, T, D)), z = d.value.getFor("header", x.type.name), j = L.map(({ menuItems: G }) => G).filter((G) => !!G), Q = L.map(({ iconComponent: G }) => G), P = ie(
|
|
4690
|
-
|
|
4709
|
+
je,
|
|
4691
4710
|
{
|
|
4692
4711
|
label: t.t.value("navigation.moreActionsFlyout", { column: x.label }),
|
|
4693
4712
|
trigger: "click"
|
|
4694
4713
|
},
|
|
4695
4714
|
{
|
|
4696
|
-
button: ({ trigger: G }) => ie(
|
|
4715
|
+
button: ({ trigger: G }) => ie(Se, {
|
|
4697
4716
|
class: L.length > 1 ? "onyx-system-button--multiple-actions" : "",
|
|
4698
4717
|
label: t.t.value("navigation.moreActionsTrigger"),
|
|
4699
4718
|
color: "medium",
|
|
4700
|
-
icon:
|
|
4719
|
+
icon: rn,
|
|
4701
4720
|
...G
|
|
4702
4721
|
}),
|
|
4703
4722
|
options: () => j
|
|
4704
4723
|
}
|
|
4705
4724
|
), F = {
|
|
4706
4725
|
actions: () => {
|
|
4707
|
-
const V = bt(Q).map((fe) => typeof fe == "object" && "iconComponent" in fe ? fe : { iconComponent: fe }), ae = V.filter((fe) => fe?.alwaysShowInHeader).map((fe) => fe.iconComponent), Y = V.find((fe) => !fe.alwaysShowInHeader)?.iconComponent ?? null,
|
|
4726
|
+
const V = bt(Q).map((fe) => typeof fe == "object" && "iconComponent" in fe ? fe : { iconComponent: fe }), ae = V.filter((fe) => fe?.alwaysShowInHeader).map((fe) => fe.iconComponent), Y = V.find((fe) => !fe.alwaysShowInHeader)?.iconComponent ?? null, $e = L.filter(
|
|
4708
4727
|
(fe) => !fe.iconComponent?.alwaysShowInHeader
|
|
4709
4728
|
).length > 1 || L.some((fe) => fe.showFlyoutMenu);
|
|
4710
4729
|
return [
|
|
4711
|
-
|
|
4712
|
-
|
|
4730
|
+
...$e ? ae : [],
|
|
4731
|
+
$e ? P : Y
|
|
4713
4732
|
].filter(Boolean);
|
|
4714
4733
|
}
|
|
4715
4734
|
}, ee = M.reduce(
|
|
@@ -4796,8 +4815,8 @@ const Gi = (o, t) => {
|
|
|
4796
4815
|
*/
|
|
4797
4816
|
isAsync: n
|
|
4798
4817
|
};
|
|
4799
|
-
}, Ki = Symbol("Filtering"),
|
|
4800
|
-
const { i18n: e } = t, n =
|
|
4818
|
+
}, Ki = Symbol("Filtering"), Oo = 0, ji = (o) => (t) => {
|
|
4819
|
+
const { i18n: e } = t, n = ce(o?.filterState ?? {}), a = m(() => U(o?.columns)), { isEnabled: s, isAsync: r } = dt(t, o), u = (p) => r.value ? p : p.filter(
|
|
4801
4820
|
(f) => Object.entries(n.value).every(
|
|
4802
4821
|
([h, b]) => {
|
|
4803
4822
|
const g = a.value?.[h], C = { ...o?.filterConfig, ...g?.config };
|
|
@@ -4843,13 +4862,13 @@ const Gi = (o, t) => {
|
|
|
4843
4862
|
watch: [n, a],
|
|
4844
4863
|
mutation: {
|
|
4845
4864
|
func: u,
|
|
4846
|
-
order:
|
|
4865
|
+
order: Oo
|
|
4847
4866
|
},
|
|
4848
4867
|
header: {
|
|
4849
4868
|
actions: ({ key: p }) => s.value(p) ? [
|
|
4850
4869
|
{
|
|
4851
4870
|
iconComponent: n.value[p] ? {
|
|
4852
|
-
iconComponent: ie(
|
|
4871
|
+
iconComponent: ie(Se, {
|
|
4853
4872
|
label: e.t.value("dataGrid.head.filtering.removeLabel", {
|
|
4854
4873
|
column: p.toString()
|
|
4855
4874
|
}),
|
|
@@ -4879,10 +4898,10 @@ const Gi = (o, t) => {
|
|
|
4879
4898
|
});
|
|
4880
4899
|
}
|
|
4881
4900
|
}, isScrollEnd: Ot(e) };
|
|
4882
|
-
},
|
|
4901
|
+
}, Mo = (o, t, e) => {
|
|
4883
4902
|
const n = t ?? -1 / 0, a = e ?? 1 / 0;
|
|
4884
4903
|
return Math.min(Math.max(o, n), a);
|
|
4885
|
-
},
|
|
4904
|
+
}, Yo = (o, t) => {
|
|
4886
4905
|
if (o == null) return "";
|
|
4887
4906
|
if (t >= 0) return o.toFixed(t);
|
|
4888
4907
|
const e = Math.pow(10, t);
|
|
@@ -4923,7 +4942,7 @@ const Gi = (o, t) => {
|
|
|
4923
4942
|
},
|
|
4924
4943
|
setup(o) {
|
|
4925
4944
|
const t = o;
|
|
4926
|
-
return (e, n) => (i(), _(Me(o.messages.hidden ?
|
|
4945
|
+
return (e, n) => (i(), _(Me(o.messages.hidden ? Xe : "span"), {
|
|
4927
4946
|
class: R(["onyx-component", "onyx-form-message", `onyx-form-message__${t.type}`])
|
|
4928
4947
|
}, {
|
|
4929
4948
|
default: $(() => [
|
|
@@ -5125,7 +5144,7 @@ const Gi = (o, t) => {
|
|
|
5125
5144
|
},
|
|
5126
5145
|
emits: ["inputClick", "validityChange"],
|
|
5127
5146
|
setup(o, { expose: t, emit: e }) {
|
|
5128
|
-
const { rootAttrs: n, restAttrs: a } = xe(), s = o, r = e, { t: u } = W(), { vCustomValidity: c, errorMessages: d } =
|
|
5147
|
+
const { rootAttrs: n, restAttrs: a } = xe(), s = o, r = e, { t: u } = W(), { vCustomValidity: c, errorMessages: d } = We({ props: s, emit: r }), p = m(() => Te(s.success)), f = m(() => Te(s.message)), { disabled: h, showError: b } = _e(s), g = se(s), C = wt(b), k = m(() => s.modelValue ? s.modelValue.length : 0), S = m(() => {
|
|
5129
5148
|
const z = s.modelValue?.length;
|
|
5130
5149
|
if (!s.modelValue || !z) return "";
|
|
5131
5150
|
if (z === 1) return s.modelValue[0];
|
|
@@ -5266,7 +5285,7 @@ const Gi = (o, t) => {
|
|
|
5266
5285
|
/* FULL_PROPS */
|
|
5267
5286
|
));
|
|
5268
5287
|
}
|
|
5269
|
-
}), ac = ["checked", "aria-labelledby", "disabled", "indeterminate"],
|
|
5288
|
+
}), ac = ["checked", "aria-labelledby", "disabled", "indeterminate"], Jo = /* @__PURE__ */ A({
|
|
5270
5289
|
__name: "OnyxSelectOption",
|
|
5271
5290
|
props: {
|
|
5272
5291
|
active: { type: Boolean, default: !1 },
|
|
@@ -5278,7 +5297,7 @@ const Gi = (o, t) => {
|
|
|
5278
5297
|
},
|
|
5279
5298
|
setup(o) {
|
|
5280
5299
|
const t = o;
|
|
5281
|
-
return (e, n) => (i(), _(
|
|
5300
|
+
return (e, n) => (i(), _(wo, B({ class: "onyx-component onyx-select-option" }, t, {
|
|
5282
5301
|
checked: !!e.$attrs["aria-checked"],
|
|
5283
5302
|
selected: !!e.$attrs["aria-selected"],
|
|
5284
5303
|
disabled: !!e.$attrs["aria-disabled"]
|
|
@@ -5396,7 +5415,7 @@ const Gi = (o, t) => {
|
|
|
5396
5415
|
emit: a,
|
|
5397
5416
|
key: "open",
|
|
5398
5417
|
default: !1
|
|
5399
|
-
}), f = oe("selectRef"), { openDirection: h, updateOpenDirection: b } =
|
|
5418
|
+
}), f = oe("selectRef"), { openDirection: h, updateOpenDirection: b } = xo(f), g = N(), C = m(() => bt(c.value)), k = m(() => n.valueLabel !== void 0 ? bt(n.valueLabel) : C.value.reduce((J, pe) => {
|
|
5400
5419
|
const de = n.options.find(({ value: he }) => he === pe)?.label;
|
|
5401
5420
|
return de && J.push(de), J;
|
|
5402
5421
|
}, [])), S = oe("miniSearchRef"), M = oe("selectInputRef"), x = m(() => n.noFilter || !d.value ? n.options : n.options.filter(
|
|
@@ -5410,10 +5429,10 @@ const Gi = (o, t) => {
|
|
|
5410
5429
|
{ immediate: !0 }
|
|
5411
5430
|
);
|
|
5412
5431
|
const T = me(), D = m(() => (n.multiple && n.withCheckAll && !d.value ? [T] : []).concat(
|
|
5413
|
-
|
|
5432
|
+
Io.value
|
|
5414
5433
|
)), L = async (J) => {
|
|
5415
|
-
const pe =
|
|
5416
|
-
|
|
5434
|
+
const pe = Ko(
|
|
5435
|
+
To(),
|
|
5417
5436
|
"group"
|
|
5418
5437
|
);
|
|
5419
5438
|
if (n.keepSelectionOrder ? pt.value = Et(pe) : pt.value = Et(
|
|
@@ -5448,14 +5467,14 @@ const Gi = (o, t) => {
|
|
|
5448
5467
|
C.value.some((he) => he === J) ? c.value = C.value.filter(
|
|
5449
5468
|
(he) => he !== J
|
|
5450
5469
|
) : c.value = [...C.value, J];
|
|
5451
|
-
}, V = m(() => n.withSearch ? "list" : "none"), { label: ae, listLabel: Y, listDescription: Be, multiple:
|
|
5470
|
+
}, V = m(() => n.withSearch ? "list" : "none"), { label: ae, listLabel: Y, listDescription: Be, multiple: $e } = Lt(n), {
|
|
5452
5471
|
elements: { input: fe, option: Oe, group: Ht, listbox: ga }
|
|
5453
5472
|
} = ws({
|
|
5454
5473
|
autocomplete: V,
|
|
5455
5474
|
label: ae,
|
|
5456
5475
|
listLabel: Y,
|
|
5457
5476
|
listDescription: Be,
|
|
5458
|
-
multiple:
|
|
5477
|
+
multiple: $e,
|
|
5459
5478
|
activeOption: m(() => g.value),
|
|
5460
5479
|
isExpanded: p,
|
|
5461
5480
|
templateRef: f,
|
|
@@ -5467,7 +5486,7 @@ const Gi = (o, t) => {
|
|
|
5467
5486
|
onTypeAhead: F,
|
|
5468
5487
|
onAutocomplete: ee,
|
|
5469
5488
|
onSelect: G
|
|
5470
|
-
}),
|
|
5489
|
+
}), To = () => {
|
|
5471
5490
|
if (n.keepSelectionOrder || !c.value || !Array.isArray(c.value) || c.value.length == 0)
|
|
5472
5491
|
return x.value;
|
|
5473
5492
|
const J = new Set(c.value);
|
|
@@ -5482,11 +5501,11 @@ const Gi = (o, t) => {
|
|
|
5482
5501
|
}), Gt = m(() => {
|
|
5483
5502
|
if (!x.value.length)
|
|
5484
5503
|
return n.withSearch && d.value ? r.value("select.noMatch") : r.value("select.empty");
|
|
5485
|
-
}),
|
|
5504
|
+
}), Io = m(
|
|
5486
5505
|
() => x.value.filter((J) => !J.disabled).map(({ value: J }) => J)
|
|
5487
5506
|
), $t = m(() => {
|
|
5488
5507
|
if (!(!n.multiple || !n.withCheckAll))
|
|
5489
|
-
return jn(
|
|
5508
|
+
return jn(Io, C, (J) => {
|
|
5490
5509
|
const pe = J.map((de) => n.options.find(({ value: he }) => he === de)?.value).filter((de) => de != null);
|
|
5491
5510
|
c.value = pe;
|
|
5492
5511
|
});
|
|
@@ -5511,8 +5530,8 @@ const Gi = (o, t) => {
|
|
|
5511
5530
|
return t({ input: m(() => M.value?.input) }), X(
|
|
5512
5531
|
[x],
|
|
5513
5532
|
() => {
|
|
5514
|
-
const J =
|
|
5515
|
-
|
|
5533
|
+
const J = Ko(
|
|
5534
|
+
To(),
|
|
5516
5535
|
"group"
|
|
5517
5536
|
);
|
|
5518
5537
|
n.keepSelectionOrder ? pt.value = Et(J) : pt.value = Et(
|
|
@@ -5525,7 +5544,7 @@ const Gi = (o, t) => {
|
|
|
5525
5544
|
"div",
|
|
5526
5545
|
lc,
|
|
5527
5546
|
[
|
|
5528
|
-
O(
|
|
5547
|
+
O(ko, {
|
|
5529
5548
|
class: R(l(u)),
|
|
5530
5549
|
label: n.listLabel,
|
|
5531
5550
|
position: l(h),
|
|
@@ -5555,7 +5574,7 @@ const Gi = (o, t) => {
|
|
|
5555
5574
|
}), null, 16, ["model-value", "label"])) : w("v-if", !0),
|
|
5556
5575
|
y(
|
|
5557
5576
|
"div",
|
|
5558
|
-
Ne(
|
|
5577
|
+
Ne(Ze(l(ga))),
|
|
5559
5578
|
[
|
|
5560
5579
|
Gt.value ? (i(), v("ul", rc, [
|
|
5561
5580
|
y("li", ic, [
|
|
@@ -5586,7 +5605,7 @@ const Gi = (o, t) => {
|
|
|
5586
5605
|
class: "onyx-select__check-all"
|
|
5587
5606
|
}, l(Ht)({ label: qt.value })),
|
|
5588
5607
|
[
|
|
5589
|
-
O(
|
|
5608
|
+
O(Jo, B(
|
|
5590
5609
|
l(Oe)({
|
|
5591
5610
|
value: l(T),
|
|
5592
5611
|
label: qt.value,
|
|
@@ -5617,7 +5636,7 @@ const Gi = (o, t) => {
|
|
|
5617
5636
|
(i(!0), v(
|
|
5618
5637
|
K,
|
|
5619
5638
|
null,
|
|
5620
|
-
|
|
5639
|
+
ue(pt.value, (de) => (i(), v(
|
|
5621
5640
|
"ul",
|
|
5622
5641
|
B({
|
|
5623
5642
|
key: de.name,
|
|
@@ -5634,7 +5653,7 @@ const Gi = (o, t) => {
|
|
|
5634
5653
|
(i(!0), v(
|
|
5635
5654
|
K,
|
|
5636
5655
|
null,
|
|
5637
|
-
|
|
5656
|
+
ue(de.items, (he) => (i(), _(Jo, B(
|
|
5638
5657
|
{
|
|
5639
5658
|
key: he.value.toString()
|
|
5640
5659
|
},
|
|
@@ -5776,7 +5795,7 @@ const Gi = (o, t) => {
|
|
|
5776
5795
|
disabled: e.disabled || b.value,
|
|
5777
5796
|
onClick: k[2] || (k[2] = (S) => n("update:modelValue", e.modelValue - 1))
|
|
5778
5797
|
}, [
|
|
5779
|
-
O(H, { icon: l(
|
|
5798
|
+
O(H, { icon: l(bo) }, null, 8, ["icon"])
|
|
5780
5799
|
], 8, fc),
|
|
5781
5800
|
y("button", {
|
|
5782
5801
|
class: "onyx-pagination__button",
|
|
@@ -5785,7 +5804,7 @@ const Gi = (o, t) => {
|
|
|
5785
5804
|
disabled: e.disabled || g.value,
|
|
5786
5805
|
onClick: k[3] || (k[3] = (S) => n("update:modelValue", e.modelValue + 1))
|
|
5787
5806
|
}, [
|
|
5788
|
-
O(H, { icon: l(
|
|
5807
|
+
O(H, { icon: l(ho) }, null, 8, ["icon"])
|
|
5789
5808
|
], 8, vc)
|
|
5790
5809
|
], 14, mc));
|
|
5791
5810
|
}
|
|
@@ -5812,12 +5831,12 @@ const Gi = (o, t) => {
|
|
|
5812
5831
|
));
|
|
5813
5832
|
}
|
|
5814
5833
|
}), bc = Symbol("Selection"), ca = 1e3, gc = (o) => (t) => {
|
|
5815
|
-
const e = `selection-column-${me()}`, n =
|
|
5834
|
+
const e = `selection-column-${me()}`, n = ce(
|
|
5816
5835
|
o?.selectionState ?? {
|
|
5817
5836
|
selectMode: "include",
|
|
5818
5837
|
contingent: /* @__PURE__ */ new Set()
|
|
5819
5838
|
}
|
|
5820
|
-
), a = N(0), s =
|
|
5839
|
+
), a = N(0), s = ce(o?.hover ?? !1), { isEnabled: r } = dt(t, o), u = (b) => n.value.selectMode === "include" ? n.value.contingent.has(b) : !n.value.contingent.has(b), c = (b) => {
|
|
5821
5840
|
n.value.selectMode = b ? "exclude" : "include", n.value.contingent.clear();
|
|
5822
5841
|
}, d = (b, g) => {
|
|
5823
5842
|
n.value.selectMode === "include" && b === !0 || n.value.selectMode === "exclude" && b === !1 ? n.value.contingent.add(g) : n.value.contingent.delete(g);
|
|
@@ -5882,8 +5901,8 @@ const Gi = (o, t) => {
|
|
|
5882
5901
|
})
|
|
5883
5902
|
}
|
|
5884
5903
|
};
|
|
5885
|
-
}, _c = Symbol("Pagination"), xc = Symbol("LazyLoadingRow"),
|
|
5886
|
-
const e =
|
|
5904
|
+
}, _c = Symbol("Pagination"), xc = Symbol("LazyLoadingRow"), Zo = Symbol("LazyLoadingRenderer"), kc = Symbol("ButtonLoadingRow"), Xo = Symbol("ButtonLoadingRenderer"), ua = Math.min(Oo, ca) - 1, wc = (o = {}) => (t) => {
|
|
5905
|
+
const e = ce(
|
|
5887
5906
|
o?.paginationState ?? { current: 1, pages: 1, pageSize: o?.pageSize ?? 25 }
|
|
5888
5907
|
), { isEnabled: n, isAsync: a } = dt(t, o), s = m(() => o.disabled?.value ?? !1), r = m(
|
|
5889
5908
|
() => e.value.pages > 1 || e.value.current > e.value.pageSize
|
|
@@ -5904,7 +5923,7 @@ const Gi = (o, t) => {
|
|
|
5904
5923
|
if (!n.value()) return b;
|
|
5905
5924
|
let g = b.slice();
|
|
5906
5925
|
if (!a.value) {
|
|
5907
|
-
e.value.pages = Math.ceil(g.length / e.value.pageSize), e.value.current =
|
|
5926
|
+
e.value.pages = Math.ceil(g.length / e.value.pageSize), e.value.current = Mo(e.value.current, 1, e.value.pages);
|
|
5908
5927
|
let C = (e.value.current - 1) * e.value.pageSize;
|
|
5909
5928
|
const k = C + e.value.pageSize;
|
|
5910
5929
|
d !== "select" && (C = 0), g = g.slice(C, k);
|
|
@@ -5912,18 +5931,18 @@ const Gi = (o, t) => {
|
|
|
5912
5931
|
return d === "lazy" && c.value && g.push({
|
|
5913
5932
|
id: xc,
|
|
5914
5933
|
[It]: {
|
|
5915
|
-
columns: [{ key: "id", type: { name:
|
|
5934
|
+
columns: [{ key: "id", type: { name: Zo } }]
|
|
5916
5935
|
}
|
|
5917
5936
|
}), d === "button" && (!u.value || c.value) && g.push({
|
|
5918
5937
|
id: kc,
|
|
5919
5938
|
[It]: {
|
|
5920
|
-
columns: [{ key: "id", type: { name:
|
|
5939
|
+
columns: [{ key: "id", type: { name: Xo } }]
|
|
5921
5940
|
}
|
|
5922
5941
|
}), g;
|
|
5923
5942
|
}
|
|
5924
5943
|
},
|
|
5925
5944
|
typeRenderer: {
|
|
5926
|
-
[
|
|
5945
|
+
[Zo]: Ee({
|
|
5927
5946
|
cell: {
|
|
5928
5947
|
tdAttributes: {
|
|
5929
5948
|
class: "onyx-data-grid__lazy-pagination",
|
|
@@ -5932,13 +5951,13 @@ const Gi = (o, t) => {
|
|
|
5932
5951
|
component: () => ie(so)
|
|
5933
5952
|
}
|
|
5934
5953
|
}),
|
|
5935
|
-
[
|
|
5954
|
+
[Xo]: Ee({
|
|
5936
5955
|
cell: {
|
|
5937
5956
|
tdAttributes: {
|
|
5938
5957
|
class: "onyx-data-grid__button-pagination",
|
|
5939
5958
|
colspan: 99
|
|
5940
5959
|
},
|
|
5941
|
-
component: () => c.value ? ie(so) : ie(
|
|
5960
|
+
component: () => c.value ? ie(so) : ie(Se, {
|
|
5942
5961
|
label: t.i18n.t.value("dataGrid.loadMore"),
|
|
5943
5962
|
color: "medium",
|
|
5944
5963
|
disabled: U(o.disabled),
|
|
@@ -5968,7 +5987,7 @@ const Gi = (o, t) => {
|
|
|
5968
5987
|
}
|
|
5969
5988
|
})
|
|
5970
5989
|
};
|
|
5971
|
-
}, Sc = Symbol("Base"), $c = Math.max(
|
|
5990
|
+
}, Sc = Symbol("Base"), $c = Math.max(Oo, ua) + 1, Cc = (o) => ({ skeleton: t }) => {
|
|
5972
5991
|
const e = N(0), n = m(() => {
|
|
5973
5992
|
const a = U(o?.headline);
|
|
5974
5993
|
if (a)
|
|
@@ -5996,7 +6015,7 @@ const Gi = (o, t) => {
|
|
|
5996
6015
|
}),
|
|
5997
6016
|
typeRenderer: {
|
|
5998
6017
|
number: Xn,
|
|
5999
|
-
string:
|
|
6018
|
+
string: Bo,
|
|
6000
6019
|
date: Qn,
|
|
6001
6020
|
"datetime-local": ea,
|
|
6002
6021
|
time: ta,
|
|
@@ -6035,7 +6054,7 @@ const Gi = (o, t) => {
|
|
|
6035
6054
|
withPageScrolling: { type: Boolean }
|
|
6036
6055
|
},
|
|
6037
6056
|
setup(o) {
|
|
6038
|
-
const t = o, e = W(), n = ye(), a = se(t), s =
|
|
6057
|
+
const t = o, e = W(), n = ye(), a = se(t), s = Ye([]), r = Ye([]), u = Ye(), c = Ye(), d = Ye(), { columns: p, data: f, features: h, columnGroups: b, async: g } = Lt(t);
|
|
6039
6058
|
let C;
|
|
6040
6059
|
const k = ({
|
|
6041
6060
|
createRendererColumns: S,
|
|
@@ -6055,7 +6074,7 @@ const Gi = (o, t) => {
|
|
|
6055
6074
|
h,
|
|
6056
6075
|
() => {
|
|
6057
6076
|
const S = qi(
|
|
6058
|
-
[Cc({ headline:
|
|
6077
|
+
[Cc({ headline: ce(t, "headline") }), ...h.value],
|
|
6059
6078
|
{
|
|
6060
6079
|
i18n: e,
|
|
6061
6080
|
columnConfig: p,
|
|
@@ -6084,7 +6103,7 @@ const Gi = (o, t) => {
|
|
|
6084
6103
|
_: 2
|
|
6085
6104
|
/* DYNAMIC */
|
|
6086
6105
|
}, [
|
|
6087
|
-
|
|
6106
|
+
ue(d.value, (x, T) => ({
|
|
6088
6107
|
name: T,
|
|
6089
6108
|
fn: $(() => [
|
|
6090
6109
|
(i(), _(Me(x)))
|
|
@@ -6093,24 +6112,24 @@ const Gi = (o, t) => {
|
|
|
6093
6112
|
n.empty ? {
|
|
6094
6113
|
name: "empty",
|
|
6095
6114
|
fn: $((x) => [
|
|
6096
|
-
E(S.$slots, "empty", Ne(
|
|
6115
|
+
E(S.$slots, "empty", Ne(Ze(x)))
|
|
6097
6116
|
]),
|
|
6098
6117
|
key: "0"
|
|
6099
6118
|
} : void 0
|
|
6100
6119
|
]), 1040, ["column-groups", "columns", "rows", "scroll-container-attrs"]));
|
|
6101
6120
|
}
|
|
6102
6121
|
}), Ec = Symbol("HideColumnsFeature"), Yt = Symbol("HiddenColumn"), Bc = (o) => (t) => {
|
|
6103
|
-
const { i18n: e } = t, { isEnabled: n } = dt(t, o), a = N([]), s =
|
|
6122
|
+
const { i18n: e } = t, { isEnabled: n } = dt(t, o), a = N([]), s = ce(o?.state ?? /* @__PURE__ */ new Set()), r = m(
|
|
6104
6123
|
() => a.value.filter((d) => s.value.has(d.key))
|
|
6105
6124
|
), u = () => ie(
|
|
6106
|
-
|
|
6125
|
+
je,
|
|
6107
6126
|
{
|
|
6108
6127
|
label: e.t.value("dataGrid.head.hideColumns.revealFlyout"),
|
|
6109
6128
|
trigger: "click",
|
|
6110
6129
|
alignment: "right"
|
|
6111
6130
|
},
|
|
6112
6131
|
{
|
|
6113
|
-
button: ({ trigger: d }) => ie(
|
|
6132
|
+
button: ({ trigger: d }) => ie(Se, {
|
|
6114
6133
|
class: "",
|
|
6115
6134
|
label: e.t.value("dataGrid.head.hideColumns.revealTrigger"),
|
|
6116
6135
|
color: "medium",
|
|
@@ -6197,7 +6216,7 @@ const Gi = (o, t) => {
|
|
|
6197
6216
|
},
|
|
6198
6217
|
emits: ["updateWidth", "autoSize", "start", "end"],
|
|
6199
6218
|
setup(o, { emit: t }) {
|
|
6200
|
-
const e = o, n = t, { t: a } = W(), s = N(), r = m(() =>
|
|
6219
|
+
const e = o, n = t, { t: a } = W(), s = N(), r = m(() => Je(e.element));
|
|
6201
6220
|
let u;
|
|
6202
6221
|
const c = N(!1), d = () => {
|
|
6203
6222
|
if (!r.value) return;
|
|
@@ -6205,7 +6224,7 @@ const Gi = (o, t) => {
|
|
|
6205
6224
|
const g = { signal: u.signal, passive: !0 };
|
|
6206
6225
|
window.addEventListener("mousemove", f, g), window.addEventListener("mouseup", h, g), window.addEventListener("keydown", b, g), n("start");
|
|
6207
6226
|
};
|
|
6208
|
-
|
|
6227
|
+
Ce(() => {
|
|
6209
6228
|
X(
|
|
6210
6229
|
() => e.active,
|
|
6211
6230
|
(g) => {
|
|
@@ -6243,7 +6262,7 @@ const Gi = (o, t) => {
|
|
|
6243
6262
|
onDblclick: p
|
|
6244
6263
|
},
|
|
6245
6264
|
[
|
|
6246
|
-
O(
|
|
6265
|
+
O(Xe, null, {
|
|
6247
6266
|
default: $(() => [
|
|
6248
6267
|
Z(
|
|
6249
6268
|
I(l(a)("resizeHandle.label")),
|
|
@@ -6265,7 +6284,7 @@ const Gi = (o, t) => {
|
|
|
6265
6284
|
[a, r],
|
|
6266
6285
|
() => {
|
|
6267
6286
|
a.value.forEach((p, f) => {
|
|
6268
|
-
const h = `--onyx-data-grid-column-${
|
|
6287
|
+
const h = `--onyx-data-grid-column-${$o(f)}`, b = p.closest(".onyx-table-wrapper__container"), g = r.value.get(f);
|
|
6269
6288
|
g ? b?.style.setProperty(h, g) : b?.style.removeProperty(h);
|
|
6270
6289
|
});
|
|
6271
6290
|
},
|
|
@@ -6343,7 +6362,7 @@ const Gi = (o, t) => {
|
|
|
6343
6362
|
}
|
|
6344
6363
|
}
|
|
6345
6364
|
};
|
|
6346
|
-
},
|
|
6365
|
+
}, Ao = (o, t, e) => e.compare(String(o), String(t)), nt = (o, t) => Number(o) - Number(t), Ac = (o, t) => nt(o ? 1 : 0, t ? 1 : 0), Qo = (o) => new Date(
|
|
6347
6366
|
Date.UTC(
|
|
6348
6367
|
0,
|
|
6349
6368
|
0,
|
|
@@ -6355,11 +6374,11 @@ const Gi = (o, t) => {
|
|
|
6355
6374
|
)
|
|
6356
6375
|
), Tc = (o, t, e) => {
|
|
6357
6376
|
if (!(o instanceof Date && t instanceof Date))
|
|
6358
|
-
return
|
|
6359
|
-
const n =
|
|
6377
|
+
return Ao(o, t, e);
|
|
6378
|
+
const n = Qo(o), a = Qo(t);
|
|
6360
6379
|
return nt(n, a);
|
|
6361
|
-
},
|
|
6362
|
-
string:
|
|
6380
|
+
}, en = Object.freeze({
|
|
6381
|
+
string: Ao,
|
|
6363
6382
|
number: nt,
|
|
6364
6383
|
date: nt,
|
|
6365
6384
|
"datetime-local": nt,
|
|
@@ -6368,7 +6387,7 @@ const Gi = (o, t) => {
|
|
|
6368
6387
|
timestamp: nt,
|
|
6369
6388
|
skeleton: () => 0,
|
|
6370
6389
|
boolean: Ac
|
|
6371
|
-
}),
|
|
6390
|
+
}), tn = /* @__PURE__ */ A({
|
|
6372
6391
|
__name: "SortAction",
|
|
6373
6392
|
props: {
|
|
6374
6393
|
columnLabel: {},
|
|
@@ -6376,14 +6395,14 @@ const Gi = (o, t) => {
|
|
|
6376
6395
|
},
|
|
6377
6396
|
setup(o) {
|
|
6378
6397
|
const t = o, { t: e } = W(), n = m(
|
|
6379
|
-
() => t.sortDirection === "asc" ?
|
|
6398
|
+
() => t.sortDirection === "asc" ? dn : t.sortDirection === "desc" ? pn : Ha
|
|
6380
6399
|
), a = m(() => {
|
|
6381
6400
|
const s = uo(t.sortDirection);
|
|
6382
6401
|
return e.value(`dataGrid.head.sorting.action.${s}`, {
|
|
6383
6402
|
field: t.columnLabel
|
|
6384
6403
|
});
|
|
6385
6404
|
});
|
|
6386
|
-
return (s, r) => (i(), _(
|
|
6405
|
+
return (s, r) => (i(), _(Se, {
|
|
6387
6406
|
label: a.value,
|
|
6388
6407
|
icon: n.value,
|
|
6389
6408
|
color: "medium"
|
|
@@ -6400,7 +6419,7 @@ const Gi = (o, t) => {
|
|
|
6400
6419
|
return "asc";
|
|
6401
6420
|
}
|
|
6402
6421
|
}, Ic = Symbol("Sorting"), Rc = (o) => (t) => {
|
|
6403
|
-
const e =
|
|
6422
|
+
const e = ce(
|
|
6404
6423
|
o?.sortState ?? {
|
|
6405
6424
|
column: void 0,
|
|
6406
6425
|
direction: "none"
|
|
@@ -6414,7 +6433,7 @@ const Gi = (o, t) => {
|
|
|
6414
6433
|
if (C)
|
|
6415
6434
|
return C;
|
|
6416
6435
|
const k = r.find(({ key: S }) => b === S)?.type.name ?? "";
|
|
6417
|
-
return
|
|
6436
|
+
return en[k] ? en[k] : Ao;
|
|
6418
6437
|
}, d = (b) => {
|
|
6419
6438
|
const { column: g, direction: C } = e.value;
|
|
6420
6439
|
if (s.value || !g || C === "none")
|
|
@@ -6430,8 +6449,8 @@ const Gi = (o, t) => {
|
|
|
6430
6449
|
}, f = m(() => (b, g) => e.value.column === b && e.value.direction === g), h = (b, g) => {
|
|
6431
6450
|
const C = {
|
|
6432
6451
|
none: Ga,
|
|
6433
|
-
asc:
|
|
6434
|
-
desc:
|
|
6452
|
+
asc: dn,
|
|
6453
|
+
desc: pn
|
|
6435
6454
|
};
|
|
6436
6455
|
return ie(
|
|
6437
6456
|
Ge,
|
|
@@ -6461,7 +6480,7 @@ const Gi = (o, t) => {
|
|
|
6461
6480
|
header: {
|
|
6462
6481
|
actions: ({ key: b, label: g }) => a.value(b) ? [
|
|
6463
6482
|
{
|
|
6464
|
-
iconComponent: ie(
|
|
6483
|
+
iconComponent: ie(tn, {
|
|
6465
6484
|
columnLabel: g,
|
|
6466
6485
|
sortDirection: e.value.column === b ? e.value.direction : void 0,
|
|
6467
6486
|
onClick: () => p(b)
|
|
@@ -6474,7 +6493,7 @@ const Gi = (o, t) => {
|
|
|
6474
6493
|
},
|
|
6475
6494
|
e.value.column === b && e.value.direction && e.value.direction !== "none" ? {
|
|
6476
6495
|
iconComponent: {
|
|
6477
|
-
iconComponent: ie(
|
|
6496
|
+
iconComponent: ie(tn, {
|
|
6478
6497
|
columnLabel: g,
|
|
6479
6498
|
sortDirection: e.value.column === b ? e.value.direction : void 0,
|
|
6480
6499
|
onClick: () => p(b, !0)
|
|
@@ -6486,8 +6505,8 @@ const Gi = (o, t) => {
|
|
|
6486
6505
|
}
|
|
6487
6506
|
};
|
|
6488
6507
|
}, Lc = Symbol("StickyColumns"), Dc = (o) => () => {
|
|
6489
|
-
const t = m(() => U(o?.columns) ?? []), e = m(() => U(o?.position) ?? "left"), n = N({}), a = N({}), s = me(), r = N(!1), u = (p) => `--onyx-data-grid-sticky-column-position-${s}-${
|
|
6490
|
-
|
|
6508
|
+
const t = m(() => U(o?.columns) ?? []), e = m(() => U(o?.position) ?? "left"), n = N({}), a = N({}), s = me(), r = N(!1), u = (p) => `--onyx-data-grid-sticky-column-position-${s}-${$o(p)}`;
|
|
6509
|
+
Ce(() => {
|
|
6491
6510
|
if (!("ResizeObserver" in window)) return;
|
|
6492
6511
|
const p = new ResizeObserver(() => {
|
|
6493
6512
|
Object.entries(a.value).forEach(
|
|
@@ -6564,17 +6583,17 @@ const Gi = (o, t) => {
|
|
|
6564
6583
|
BOOLEAN_RENDERER: aa,
|
|
6565
6584
|
DATETIME_RENDERER: ea,
|
|
6566
6585
|
DATE_RENDERER: Qn,
|
|
6567
|
-
FALLBACK_RENDER_VALUE:
|
|
6586
|
+
FALLBACK_RENDER_VALUE: Co,
|
|
6568
6587
|
NUMBER_RENDERER: Xn,
|
|
6569
6588
|
SKELETON_RENDERER: na,
|
|
6570
|
-
STRING_RENDERER:
|
|
6589
|
+
STRING_RENDERER: Bo,
|
|
6571
6590
|
TIMESTAMP_RENDERER: oa,
|
|
6572
6591
|
TIME_RENDERER: ta,
|
|
6573
6592
|
createRenderer: la,
|
|
6574
6593
|
createTypeRenderer: Ee,
|
|
6575
6594
|
dateFormatter: kt,
|
|
6576
6595
|
numberFormatter: Zn,
|
|
6577
|
-
stringFormatter:
|
|
6596
|
+
stringFormatter: Eo,
|
|
6578
6597
|
useFiltering: ji,
|
|
6579
6598
|
useHideColumns: Bc,
|
|
6580
6599
|
usePagination: wc,
|
|
@@ -6613,7 +6632,7 @@ const Gi = (o, t) => {
|
|
|
6613
6632
|
},
|
|
6614
6633
|
emits: ["update:modelValue", "validityChange"],
|
|
6615
6634
|
setup(o, { emit: t }) {
|
|
6616
|
-
const e = o, n = t, { rootAttrs: a, restAttrs: s } = xe(), { vCustomValidity: r, errorMessages: u } =
|
|
6635
|
+
const e = o, n = t, { rootAttrs: a, restAttrs: s } = xe(), { vCustomValidity: r, errorMessages: u } = We({ props: e, emit: n }), c = m(() => Te(e.success)), d = m(() => Te(e.message)), { densityClass: p } = q(e), { disabled: f, showError: h } = _e(e), b = se(e), g = wt(h), C = m(() => (x) => {
|
|
6617
6636
|
const T = x != null && x != null ? new Date(x) : void 0;
|
|
6618
6637
|
if (!ro(T)) return;
|
|
6619
6638
|
const D = T.toISOString().split("T")[0];
|
|
@@ -6682,7 +6701,7 @@ const Gi = (o, t) => {
|
|
|
6682
6701
|
min: C.value(e.min),
|
|
6683
6702
|
max: C.value(e.max)
|
|
6684
6703
|
}, l(s)), null, 16, Vc)), [
|
|
6685
|
-
[
|
|
6704
|
+
[sn, S.value],
|
|
6686
6705
|
[l(r)]
|
|
6687
6706
|
])
|
|
6688
6707
|
])
|
|
@@ -6707,7 +6726,7 @@ const Gi = (o, t) => {
|
|
|
6707
6726
|
position: {},
|
|
6708
6727
|
alignment: {},
|
|
6709
6728
|
disabled: { type: Boolean },
|
|
6710
|
-
|
|
6729
|
+
sticky: { type: Boolean, default: !0 },
|
|
6711
6730
|
nonDismissible: { type: Boolean }
|
|
6712
6731
|
},
|
|
6713
6732
|
emits: ["update:open"],
|
|
@@ -6718,7 +6737,7 @@ const Gi = (o, t) => {
|
|
|
6718
6737
|
key: "open",
|
|
6719
6738
|
default: !1
|
|
6720
6739
|
});
|
|
6721
|
-
return (c, d) => (i(), _(
|
|
6740
|
+
return (c, d) => (i(), _(ko, B(e, {
|
|
6722
6741
|
open: l(u),
|
|
6723
6742
|
"onUpdate:open": d[1] || (d[1] = (p) => Ae(u) ? u.value = p : null),
|
|
6724
6743
|
class: ["onyx-dialog", l(r)]
|
|
@@ -6746,7 +6765,7 @@ const Gi = (o, t) => {
|
|
|
6746
6765
|
})
|
|
6747
6766
|
])
|
|
6748
6767
|
]),
|
|
6749
|
-
e.nonDismissible ? w("v-if", !0) : (i(), _(
|
|
6768
|
+
e.nonDismissible ? w("v-if", !0) : (i(), _(Se, {
|
|
6750
6769
|
key: 0,
|
|
6751
6770
|
class: "onyx-alert-dialog__close",
|
|
6752
6771
|
label: l(s)("dialog.close"),
|
|
@@ -6913,7 +6932,7 @@ const Gi = (o, t) => {
|
|
|
6913
6932
|
*/
|
|
6914
6933
|
maxLength: a
|
|
6915
6934
|
};
|
|
6916
|
-
}, Ut = Symbol(),
|
|
6935
|
+
}, Ut = Symbol(), on = Symbol(), pa = Symbol(), ma = Symbol(), jc = ["aria-orientation"], Rt = /* @__PURE__ */ A({
|
|
6917
6936
|
__name: "OnyxSeparator",
|
|
6918
6937
|
props: {
|
|
6919
6938
|
orientation: { default: "horizontal" }
|
|
@@ -6967,7 +6986,7 @@ const Gi = (o, t) => {
|
|
|
6967
6986
|
props: n,
|
|
6968
6987
|
emit: a,
|
|
6969
6988
|
default: ""
|
|
6970
|
-
}), { rootAttrs: u, restAttrs: c } = xe(), { t: d } = W(), { maxLength: p, maxLengthError: f } = da({ modelValue: r, props: n }), h = m(() => n.error ?? f.value), { vCustomValidity: b, errorMessages: g } =
|
|
6989
|
+
}), { rootAttrs: u, restAttrs: c } = xe(), { t: d } = W(), { maxLength: p, maxLengthError: f } = da({ modelValue: r, props: n }), h = m(() => n.error ?? f.value), { vCustomValidity: b, errorMessages: g } = We({ props: n, emit: a, error: h }), C = m(() => Te(n.success)), k = m(() => Te(n.message)), { densityClass: S } = q(n), M = m(() => n.pattern instanceof RegExp ? n.pattern.source : n.pattern), x = oe("inputRef");
|
|
6971
6990
|
t({ input: x });
|
|
6972
6991
|
const { disabled: T, showError: D } = _e(n), L = se(n), z = wt(D);
|
|
6973
6992
|
Ie(x, n);
|
|
@@ -7037,7 +7056,7 @@ const Gi = (o, t) => {
|
|
|
7037
7056
|
"aria-label": n.hideLabel ? n.label : void 0,
|
|
7038
7057
|
title: n.hideLabel ? n.label : void 0
|
|
7039
7058
|
}, l(c)), null, 16, Yc), [
|
|
7040
|
-
[
|
|
7059
|
+
[sn, l(r)],
|
|
7041
7060
|
[l(b)]
|
|
7042
7061
|
]),
|
|
7043
7062
|
!n.hideClearIcon && l(r) !== "" ? (i(), v("button", {
|
|
@@ -7063,7 +7082,7 @@ const Gi = (o, t) => {
|
|
|
7063
7082
|
class: "onyx-input__separator onyx-input__separator--trailing"
|
|
7064
7083
|
})) : w("v-if", !0),
|
|
7065
7084
|
E(P.$slots, "trailing", {}, () => [
|
|
7066
|
-
n.type === "password" ? (i(), _(
|
|
7085
|
+
n.type === "password" ? (i(), _(Se, {
|
|
7067
7086
|
key: 0,
|
|
7068
7087
|
icon: l(j) ? l(Ka) : l(ja),
|
|
7069
7088
|
label: l(j) ? l(d)("input.hidePassword") : l(d)("input.showPassword"),
|
|
@@ -7099,7 +7118,7 @@ const Gi = (o, t) => {
|
|
|
7099
7118
|
E(e.$slots, "default"),
|
|
7100
7119
|
O(
|
|
7101
7120
|
Un,
|
|
7102
|
-
Ne(
|
|
7121
|
+
Ne(Ze(t)),
|
|
7103
7122
|
null,
|
|
7104
7123
|
16
|
|
7105
7124
|
/* FULL_PROPS */
|
|
@@ -7112,7 +7131,7 @@ const Gi = (o, t) => {
|
|
|
7112
7131
|
/* FULL_PROPS */
|
|
7113
7132
|
));
|
|
7114
7133
|
}
|
|
7115
|
-
}), Qc = { class: "onyx-component onyx-mobile-nav-button" }, eu = ["aria-label", "disabled"], tu = { class: "onyx-mobile-nav-button__flyout" }, ou = { class: "onyx-mobile-nav-button__menu" },
|
|
7134
|
+
}), Qc = { class: "onyx-component onyx-mobile-nav-button" }, eu = ["aria-label", "disabled"], tu = { class: "onyx-mobile-nav-button__flyout" }, ou = { class: "onyx-mobile-nav-button__menu" }, nn = /* @__PURE__ */ A({
|
|
7116
7135
|
__name: "OnyxMobileNavButton",
|
|
7117
7136
|
props: {
|
|
7118
7137
|
label: {},
|
|
@@ -7213,7 +7232,7 @@ const Gi = (o, t) => {
|
|
|
7213
7232
|
})
|
|
7214
7233
|
])
|
|
7215
7234
|
]),
|
|
7216
|
-
e.nonDismissible ? w("v-if", !0) : (i(), _(
|
|
7235
|
+
e.nonDismissible ? w("v-if", !0) : (i(), _(Se, {
|
|
7217
7236
|
key: 0,
|
|
7218
7237
|
class: "onyx-alert-dialog__close",
|
|
7219
7238
|
label: l(s)("dialog.close"),
|
|
@@ -7343,7 +7362,7 @@ const Gi = (o, t) => {
|
|
|
7343
7362
|
(i(!0), v(
|
|
7344
7363
|
K,
|
|
7345
7364
|
null,
|
|
7346
|
-
|
|
7365
|
+
ue(e.options, (h) => (i(), v("label", {
|
|
7347
7366
|
key: h.value
|
|
7348
7367
|
}, [
|
|
7349
7368
|
O(
|
|
@@ -7358,7 +7377,7 @@ const Gi = (o, t) => {
|
|
|
7358
7377
|
}, null, 8, ["icon"])) : w("v-if", !0),
|
|
7359
7378
|
y("div", null, [
|
|
7360
7379
|
O(
|
|
7361
|
-
|
|
7380
|
+
Xe,
|
|
7362
7381
|
{ is: "div" },
|
|
7363
7382
|
{
|
|
7364
7383
|
default: $(() => [
|
|
@@ -7624,9 +7643,9 @@ const Gi = (o, t) => {
|
|
|
7624
7643
|
}), { restAttrs: u, rootAttrs: c } = xe(), d = m(() => !!a.children), { isActive: p } = it(), f = m(() => e.active !== "auto" ? e.active : p.value(e.link)), h = ge(
|
|
7625
7644
|
Ut,
|
|
7626
7645
|
m(() => !1)
|
|
7627
|
-
), b = ge(ma, void 0), g = ge(
|
|
7628
|
-
Fe(
|
|
7629
|
-
const { componentRef: C, isVisible: k } = g ? zn(pa) : { isVisible:
|
|
7646
|
+
), b = ge(ma, void 0), g = ge(on, !0);
|
|
7647
|
+
Fe(on, !1);
|
|
7648
|
+
const { componentRef: C, isVisible: k } = g ? zn(pa) : { isVisible: ce(!0) };
|
|
7630
7649
|
return (S, M) => (i(), v(
|
|
7631
7650
|
K,
|
|
7632
7651
|
null,
|
|
@@ -7647,7 +7666,7 @@ const Gi = (o, t) => {
|
|
|
7647
7666
|
label: l(s)("back"),
|
|
7648
7667
|
mode: "plain",
|
|
7649
7668
|
color: "neutral",
|
|
7650
|
-
icon: l(
|
|
7669
|
+
icon: l(un),
|
|
7651
7670
|
onClick: M[0] || (M[0] = (x) => r.value = !1)
|
|
7652
7671
|
}, null, 8, ["label", "icon"]),
|
|
7653
7672
|
e.link ? (i(), v(
|
|
@@ -7694,7 +7713,7 @@ const Gi = (o, t) => {
|
|
|
7694
7713
|
]),
|
|
7695
7714
|
key: "0"
|
|
7696
7715
|
} : void 0
|
|
7697
|
-
]), 1040, ["active"])) : l(g) && d.value && l(k) ? (i(), _(
|
|
7716
|
+
]), 1040, ["active"])) : l(g) && d.value && l(k) ? (i(), _(je, B({ key: 2 }, l(c), {
|
|
7698
7717
|
label: l(s)("navItemOptionsLabel", { label: e.label })
|
|
7699
7718
|
}), {
|
|
7700
7719
|
button: $(({ trigger: x }) => [
|
|
@@ -7876,7 +7895,7 @@ const Gi = (o, t) => {
|
|
|
7876
7895
|
[
|
|
7877
7896
|
E(u.$slots, "header"),
|
|
7878
7897
|
E(u.$slots, "options"),
|
|
7879
|
-
a.footer ? (i(), _(
|
|
7898
|
+
a.footer ? (i(), _(wo, {
|
|
7880
7899
|
key: 0,
|
|
7881
7900
|
class: "onyx-user-menu__mobile-footer",
|
|
7882
7901
|
disabled: ""
|
|
@@ -7890,7 +7909,7 @@ const Gi = (o, t) => {
|
|
|
7890
7909
|
],
|
|
7891
7910
|
64
|
|
7892
7911
|
/* STABLE_FRAGMENT */
|
|
7893
|
-
)) : (i(), _(
|
|
7912
|
+
)) : (i(), _(je, {
|
|
7894
7913
|
key: 1,
|
|
7895
7914
|
open: l(s),
|
|
7896
7915
|
"onUpdate:open": c[0] || (c[0] = (d) => Ae(s) ? s.value = d : null),
|
|
@@ -8048,7 +8067,7 @@ const Gi = (o, t) => {
|
|
|
8048
8067
|
setup(o, { expose: t, emit: e }) {
|
|
8049
8068
|
const n = o, a = e, s = ye(), r = oe("navBarRef"), { width: u } = He(r), { t: c } = W(), { currentRoute: d } = it(), {
|
|
8050
8069
|
elements: { nav: p }
|
|
8051
|
-
} = Cs({ navigationName:
|
|
8070
|
+
} = Cs({ navigationName: ce(() => n.appName) }), f = N(!1), h = N(!1), b = (k, S) => S !== 0 && S < k, g = m(() => typeof n.mobile == "number" ? b(n.mobile, u.value) : typeof n.mobile == "string" ? b(ft[n.mobile], u.value) : n.mobile);
|
|
8052
8071
|
Fe(Ut, g), Fe(ma, oe("moreListRef"));
|
|
8053
8072
|
const C = () => {
|
|
8054
8073
|
f.value = !1, h.value = !1;
|
|
@@ -8095,7 +8114,7 @@ const Gi = (o, t) => {
|
|
|
8095
8114
|
key: 2,
|
|
8096
8115
|
class: "onyx-nav-bar__back",
|
|
8097
8116
|
label: l(c)("navigation.goBack"),
|
|
8098
|
-
icon: l(
|
|
8117
|
+
icon: l(bo),
|
|
8099
8118
|
color: "neutral",
|
|
8100
8119
|
onClick: S[0] || (S[0] = (M) => a("navigateBack", M))
|
|
8101
8120
|
}, null, 8, ["label", "icon"])) : w("v-if", !0),
|
|
@@ -8103,7 +8122,7 @@ const Gi = (o, t) => {
|
|
|
8103
8122
|
K,
|
|
8104
8123
|
{ key: 3 },
|
|
8105
8124
|
[
|
|
8106
|
-
g.value ? (i(), _(
|
|
8125
|
+
g.value ? (i(), _(nn, {
|
|
8107
8126
|
key: 0,
|
|
8108
8127
|
open: f.value,
|
|
8109
8128
|
"onUpdate:open": [
|
|
@@ -8145,7 +8164,7 @@ const Gi = (o, t) => {
|
|
|
8145
8164
|
default: $(({ attributes: M }) => [
|
|
8146
8165
|
y(
|
|
8147
8166
|
"div",
|
|
8148
|
-
Ne(
|
|
8167
|
+
Ne(Ze(M)),
|
|
8149
8168
|
[
|
|
8150
8169
|
E(k.$slots, "default")
|
|
8151
8170
|
],
|
|
@@ -8154,7 +8173,7 @@ const Gi = (o, t) => {
|
|
|
8154
8173
|
)
|
|
8155
8174
|
]),
|
|
8156
8175
|
more: $(({ attributes: M, hiddenElements: x }) => [
|
|
8157
|
-
O(
|
|
8176
|
+
O(je, B({
|
|
8158
8177
|
label: l(c)("navigation.showMoreNavItemsLabel")
|
|
8159
8178
|
}, M), {
|
|
8160
8179
|
button: $(({ trigger: T }) => [
|
|
@@ -8195,14 +8214,14 @@ const Gi = (o, t) => {
|
|
|
8195
8214
|
s.globalContextArea ? (i(), v("div", Ku, [
|
|
8196
8215
|
E(k.$slots, "globalContextArea")
|
|
8197
8216
|
])) : w("v-if", !0),
|
|
8198
|
-
s.contextArea ? (i(), _(
|
|
8217
|
+
s.contextArea ? (i(), _(nn, {
|
|
8199
8218
|
key: 1,
|
|
8200
8219
|
open: h.value,
|
|
8201
8220
|
"onUpdate:open": [
|
|
8202
8221
|
S[3] || (S[3] = (M) => h.value = M),
|
|
8203
8222
|
S[4] || (S[4] = (M) => f.value = !1)
|
|
8204
8223
|
],
|
|
8205
|
-
icon: l(
|
|
8224
|
+
icon: l(vo),
|
|
8206
8225
|
label: l(c)("navigation.toggleContextMenu")
|
|
8207
8226
|
}, {
|
|
8208
8227
|
default: $(() => [
|
|
@@ -8230,7 +8249,7 @@ const Gi = (o, t) => {
|
|
|
8230
8249
|
}), Ju = (o) => {
|
|
8231
8250
|
const { locale: t, t: e } = W(), n = m(() => new Intl.RelativeTimeFormat(t.value, l(o.options))), a = N(Date.now());
|
|
8232
8251
|
let s;
|
|
8233
|
-
|
|
8252
|
+
Ce(() => {
|
|
8234
8253
|
s = setInterval(
|
|
8235
8254
|
() => a.value = Date.now(),
|
|
8236
8255
|
// run interval only every 10 seconds to not run too many intervals
|
|
@@ -8284,7 +8303,7 @@ const Gi = (o, t) => {
|
|
|
8284
8303
|
},
|
|
8285
8304
|
setup(o) {
|
|
8286
8305
|
const t = o, e = ye(), { densityClass: n } = q(t), a = se(t), { d: s, t: r } = W(), { timeAgo: u } = Ju({
|
|
8287
|
-
time:
|
|
8306
|
+
time: ce(t, "createdAt"),
|
|
8288
8307
|
options: { numeric: "auto" }
|
|
8289
8308
|
});
|
|
8290
8309
|
return (c, d) => (i(), v(
|
|
@@ -8298,7 +8317,7 @@ const Gi = (o, t) => {
|
|
|
8298
8317
|
(i(), v(
|
|
8299
8318
|
K,
|
|
8300
8319
|
null,
|
|
8301
|
-
|
|
8320
|
+
ue(3, (p) => O(te, {
|
|
8302
8321
|
key: p,
|
|
8303
8322
|
class: "onyx-notification-card-skeleton__content"
|
|
8304
8323
|
})),
|
|
@@ -8331,7 +8350,7 @@ const Gi = (o, t) => {
|
|
|
8331
8350
|
key: 0,
|
|
8332
8351
|
dot: ""
|
|
8333
8352
|
})) : w("v-if", !0),
|
|
8334
|
-
e.headerActions ? (i(), _(
|
|
8353
|
+
e.headerActions ? (i(), _(je, {
|
|
8335
8354
|
key: 1,
|
|
8336
8355
|
class: "onyx-notification-card__more-actions",
|
|
8337
8356
|
label: l(r)("notificationCard.moreActions"),
|
|
@@ -8339,9 +8358,9 @@ const Gi = (o, t) => {
|
|
|
8339
8358
|
alignment: "right"
|
|
8340
8359
|
}, {
|
|
8341
8360
|
button: $(({ trigger: p }) => [
|
|
8342
|
-
O(
|
|
8361
|
+
O(Se, B(p, {
|
|
8343
8362
|
label: l(r)("notificationCard.toggleActions"),
|
|
8344
|
-
icon: l(
|
|
8363
|
+
icon: l(vo)
|
|
8345
8364
|
}), null, 16, ["label", "icon"])
|
|
8346
8365
|
]),
|
|
8347
8366
|
options: $(() => [
|
|
@@ -8573,7 +8592,7 @@ const Gi = (o, t) => {
|
|
|
8573
8592
|
(i(!0), v(
|
|
8574
8593
|
K,
|
|
8575
8594
|
null,
|
|
8576
|
-
|
|
8595
|
+
ue(u.value, (p) => (i(), v(
|
|
8577
8596
|
K,
|
|
8578
8597
|
{
|
|
8579
8598
|
key: p.value
|
|
@@ -8607,7 +8626,7 @@ const Gi = (o, t) => {
|
|
|
8607
8626
|
/* CLASS */
|
|
8608
8627
|
));
|
|
8609
8628
|
}
|
|
8610
|
-
}), fd = ["required", "name", "value", "checked", "disabled", "autofocus"],
|
|
8629
|
+
}), fd = ["required", "name", "value", "checked", "disabled", "autofocus"], an = /* @__PURE__ */ A({
|
|
8611
8630
|
inheritAttrs: !1,
|
|
8612
8631
|
__name: "OnyxRadioButton",
|
|
8613
8632
|
props: {
|
|
@@ -8627,7 +8646,7 @@ const Gi = (o, t) => {
|
|
|
8627
8646
|
},
|
|
8628
8647
|
emits: ["validityChange"],
|
|
8629
8648
|
setup(o, { expose: t, emit: e }) {
|
|
8630
|
-
const n = o, a = e, { rootAttrs: s, restAttrs: r } = xe(), { vCustomValidity: u, errorMessages: c } =
|
|
8649
|
+
const n = o, a = e, { rootAttrs: s, restAttrs: r } = xe(), { vCustomValidity: u, errorMessages: c } = We({ props: n, emit: a }), { densityClass: d } = q(n), { disabled: p } = _e(n), f = se(n), h = oe("inputRef");
|
|
8631
8650
|
return t({ input: h }), Ie(h, n), (b, g) => l(f) ? (i(), v(
|
|
8632
8651
|
"div",
|
|
8633
8652
|
B({
|
|
@@ -8640,7 +8659,7 @@ const Gi = (o, t) => {
|
|
|
8640
8659
|
],
|
|
8641
8660
|
16
|
|
8642
8661
|
/* FULL_PROPS */
|
|
8643
|
-
)) : (i(), _(
|
|
8662
|
+
)) : (i(), _(So, B({
|
|
8644
8663
|
key: 1,
|
|
8645
8664
|
disabled: l(p),
|
|
8646
8665
|
"error-messages": l(c)
|
|
@@ -8756,7 +8775,7 @@ const Gi = (o, t) => {
|
|
|
8756
8775
|
l(d) ? typeof l(d) == "number" ? (i(!0), v(
|
|
8757
8776
|
K,
|
|
8758
8777
|
{ key: 1 },
|
|
8759
|
-
|
|
8778
|
+
ue(l(d), (k) => (i(), _(an, {
|
|
8760
8779
|
id: `skeleton-${k}`,
|
|
8761
8780
|
key: k,
|
|
8762
8781
|
value: `skeleton-${k}`,
|
|
@@ -8769,7 +8788,7 @@ const Gi = (o, t) => {
|
|
|
8769
8788
|
)) : w("v-if", !0) : (i(!0), v(
|
|
8770
8789
|
K,
|
|
8771
8790
|
{ key: 0 },
|
|
8772
|
-
|
|
8791
|
+
ue(n.options, (k, S) => (i(), _(an, B({
|
|
8773
8792
|
key: k.value.toString()
|
|
8774
8793
|
}, { ref_for: !0 }, k, {
|
|
8775
8794
|
ref_for: !0,
|
|
@@ -8818,7 +8837,7 @@ const Gi = (o, t) => {
|
|
|
8818
8837
|
class: ["onyx-component", "onyx-segmented-control-element", l(e)]
|
|
8819
8838
|
}),
|
|
8820
8839
|
[
|
|
8821
|
-
O(
|
|
8840
|
+
O(Xe, null, {
|
|
8822
8841
|
default: $(() => [
|
|
8823
8842
|
y("input", B(l(r), {
|
|
8824
8843
|
id: t.value.toString(),
|
|
@@ -8889,7 +8908,7 @@ const Gi = (o, t) => {
|
|
|
8889
8908
|
(i(!0), v(
|
|
8890
8909
|
K,
|
|
8891
8910
|
null,
|
|
8892
|
-
|
|
8911
|
+
ue(o.options, (p) => (i(), _(kd, B({
|
|
8893
8912
|
key: p.value.toString()
|
|
8894
8913
|
}, { ref_for: !0 }, p, {
|
|
8895
8914
|
name: e.name,
|
|
@@ -9120,21 +9139,21 @@ const Gi = (o, t) => {
|
|
|
9120
9139
|
},
|
|
9121
9140
|
emits: ["validityChange", "update:modelValue"],
|
|
9122
9141
|
setup(o, { expose: t, emit: e }) {
|
|
9123
|
-
const n = o, a = e, { t: s, locale: r } = W(), u = oe("inputRef"), { disabled: c, showError: d } = _e(n), p = se(n), f = wt(d), { densityClass: h } = q(n), { vCustomValidity: b, errorMessages: g } =
|
|
9142
|
+
const n = o, a = e, { t: s, locale: r } = W(), u = oe("inputRef"), { disabled: c, showError: d } = _e(n), p = se(n), f = wt(d), { densityClass: h } = q(n), { vCustomValidity: b, errorMessages: g } = We({ props: n, emit: a }), C = m(() => Te(n.success)), k = m(() => Te(n.message)), { rootAttrs: S, restAttrs: M } = xe(), x = N(!1), T = re({
|
|
9124
9143
|
props: n,
|
|
9125
9144
|
emit: a,
|
|
9126
9145
|
key: "modelValue"
|
|
9127
|
-
}), D = N(), L = m(() => j.value(T.value)), z = m(() => (G) => n.precision !== void 0 && G != null ?
|
|
9146
|
+
}), D = N(), L = m(() => j.value(T.value)), z = m(() => (G) => n.precision !== void 0 && G != null ? Yo(G, n.precision) : G?.toString() ?? ""), j = m(() => (G) => G == null || Number.isNaN(G) ? "" : n.formatNumber ? typeof n.formatNumber == "boolean" ? n.precision ? G.toLocaleString(r.value, {
|
|
9128
9147
|
minimumFractionDigits: n.precision,
|
|
9129
9148
|
maximumFractionDigits: n.precision
|
|
9130
|
-
}) : G.toLocaleString(r.value) : n.formatNumber(G) : n.precision ?
|
|
9149
|
+
}) : G.toLocaleString(r.value) : n.formatNumber(G) : n.precision ? Yo(G, n.precision) : String(G));
|
|
9131
9150
|
De(() => {
|
|
9132
9151
|
D.value = z.value(T.value);
|
|
9133
9152
|
});
|
|
9134
9153
|
const Q = (G) => {
|
|
9135
9154
|
x.value = !0;
|
|
9136
9155
|
const V = T.value || 0, ae = (G === "stepUp" ? 1 : -1) * n.stepSize, Y = parseFloat(z.value(V + ae));
|
|
9137
|
-
T.value =
|
|
9156
|
+
T.value = Mo(Y, n.min, n.max);
|
|
9138
9157
|
}, P = () => {
|
|
9139
9158
|
if (x.value = !0, D.value == null) {
|
|
9140
9159
|
T.value = void 0;
|
|
@@ -9208,8 +9227,8 @@ const Gi = (o, t) => {
|
|
|
9208
9227
|
onChange: P,
|
|
9209
9228
|
onFocusin: V[2] || (V[2] = (Y) => Y.target?.select()),
|
|
9210
9229
|
onKeydown: [
|
|
9211
|
-
V[3] || (V[3] =
|
|
9212
|
-
V[4] || (V[4] =
|
|
9230
|
+
V[3] || (V[3] = Ro(Re((Y) => Q("stepUp"), ["prevent"]), ["up"])),
|
|
9231
|
+
V[4] || (V[4] = Ro(Re((Y) => Q("stepDown"), ["prevent"]), ["down"]))
|
|
9213
9232
|
]
|
|
9214
9233
|
}), null, 16, Rd)), [
|
|
9215
9234
|
[mo, D.value],
|
|
@@ -9263,7 +9282,7 @@ const Gi = (o, t) => {
|
|
|
9263
9282
|
},
|
|
9264
9283
|
emits: ["update:modelValue", "validityChange"],
|
|
9265
9284
|
setup(o, { expose: t, emit: e }) {
|
|
9266
|
-
const n = o, a = e, { rootAttrs: s, restAttrs: r } = xe(), { densityClass: u } = q(n), { disabled: c, showError: d, requiredMarker: p } = _e(n), { requiredMarkerClass: f, requiredTypeClass: h } = Ft(n, p), { vCustomValidity: b, errorMessages: g } =
|
|
9285
|
+
const n = o, a = e, { rootAttrs: s, restAttrs: r } = xe(), { densityClass: u } = q(n), { disabled: c, showError: d, requiredMarker: p } = _e(n), { requiredMarkerClass: f, requiredTypeClass: h } = Ft(n, p), { vCustomValidity: b, errorMessages: g } = We({ props: n, emit: a }), C = m(
|
|
9267
9286
|
() => d.value !== !1 ? g.value : void 0
|
|
9268
9287
|
), k = m(() => n.hideLabel && n.label || void 0), S = se(n), M = re({
|
|
9269
9288
|
props: n,
|
|
@@ -9288,7 +9307,7 @@ const Gi = (o, t) => {
|
|
|
9288
9307
|
],
|
|
9289
9308
|
16
|
|
9290
9309
|
/* FULL_PROPS */
|
|
9291
|
-
)) : (i(), _(
|
|
9310
|
+
)) : (i(), _(So, B({
|
|
9292
9311
|
key: 1,
|
|
9293
9312
|
disabled: l(c),
|
|
9294
9313
|
"error-messages": C.value
|
|
@@ -9309,7 +9328,7 @@ const Gi = (o, t) => {
|
|
|
9309
9328
|
required: n.required,
|
|
9310
9329
|
autofocus: n.autofocus
|
|
9311
9330
|
}, l(r)), null, 16, Fd), [
|
|
9312
|
-
[
|
|
9331
|
+
[ln, l(M)],
|
|
9313
9332
|
[l(b)]
|
|
9314
9333
|
]),
|
|
9315
9334
|
y("span", Pd, [
|
|
@@ -9446,14 +9465,14 @@ const Gi = (o, t) => {
|
|
|
9446
9465
|
emit: n,
|
|
9447
9466
|
key: "modelValue"
|
|
9448
9467
|
}), r = Es({
|
|
9449
|
-
label:
|
|
9450
|
-
selectedTab:
|
|
9468
|
+
label: ce(e, "label"),
|
|
9469
|
+
selectedTab: ce(() => s.value),
|
|
9451
9470
|
onSelect: (c) => s.value = c
|
|
9452
9471
|
}), u = oe("panelRef");
|
|
9453
9472
|
return Nt(e), Fe(ha, {
|
|
9454
9473
|
headless: r,
|
|
9455
9474
|
panel: u,
|
|
9456
|
-
size:
|
|
9475
|
+
size: ce(e, "size")
|
|
9457
9476
|
}), (c, d) => (i(), v(
|
|
9458
9477
|
"div",
|
|
9459
9478
|
{
|
|
@@ -9539,7 +9558,7 @@ const Gi = (o, t) => {
|
|
|
9539
9558
|
},
|
|
9540
9559
|
emits: ["validityChange"],
|
|
9541
9560
|
setup(o, { emit: t }) {
|
|
9542
|
-
const e = o, n = t, a = ye(), { densityClass: s } = q(e), { formatFileSize: r } = ba(), u = se(e), c = m(() => e.status?.color === "danger" ? e.status.text : void 0), { vCustomValidity: d } =
|
|
9561
|
+
const e = o, n = t, a = ye(), { densityClass: s } = q(e), { formatFileSize: r } = ba(), u = se(e), c = m(() => e.status?.color === "danger" ? e.status.text : void 0), { vCustomValidity: d } = We({ props: {}, emit: n, error: c }), p = m(() => {
|
|
9543
9562
|
if (e.link)
|
|
9544
9563
|
return tt(e.link);
|
|
9545
9564
|
});
|
|
@@ -9641,7 +9660,7 @@ const Gi = (o, t) => {
|
|
|
9641
9660
|
"onyx-file-card__progress-bar",
|
|
9642
9661
|
`onyx-file-card__progress-bar--${e.status.color}`
|
|
9643
9662
|
]),
|
|
9644
|
-
style: Le({ width: l(
|
|
9663
|
+
style: Le({ width: l(Mo)(e.status.progress, 0, 100) + "%" })
|
|
9645
9664
|
},
|
|
9646
9665
|
null,
|
|
9647
9666
|
6
|
|
@@ -9996,7 +10015,7 @@ const _m = /* @__PURE__ */ Vt(rp, [["render", cp]]), up = /* @__PURE__ */ A({
|
|
|
9996
10015
|
disabled: l(s),
|
|
9997
10016
|
name: e.name
|
|
9998
10017
|
}, l(c), { onChange: x }), null, 16, bp),
|
|
9999
|
-
e.listType === "button" && b.value.length ? (i(), _(
|
|
10018
|
+
e.listType === "button" && b.value.length ? (i(), _(Se, {
|
|
10000
10019
|
key: 0,
|
|
10001
10020
|
class: "onyx-file-upload__list-button",
|
|
10002
10021
|
label: g.value ? l(r)("fileUpload.revealFilesButton") : l(r)("fileUpload.hideFilesButton"),
|
|
@@ -10015,7 +10034,7 @@ const _m = /* @__PURE__ */ Vt(rp, [["render", cp]]), up = /* @__PURE__ */ A({
|
|
|
10015
10034
|
(i(!0), v(
|
|
10016
10035
|
K,
|
|
10017
10036
|
null,
|
|
10018
|
-
|
|
10037
|
+
ue(k.value, (ee) => E(P.$slots, "default", {
|
|
10019
10038
|
key: ee.props.filename,
|
|
10020
10039
|
file: ee.file,
|
|
10021
10040
|
props: ee.props
|
|
@@ -10115,7 +10134,7 @@ const _m = /* @__PURE__ */ Vt(rp, [["render", cp]]), up = /* @__PURE__ */ A({
|
|
|
10115
10134
|
emit: a,
|
|
10116
10135
|
key: "modelValue",
|
|
10117
10136
|
default: ""
|
|
10118
|
-
}), { rootAttrs: r, restAttrs: u } = xe(), { maxLength: c, maxLengthError: d } = da({ props: n, modelValue: s }), p = m(() => n.error ?? d.value), { vCustomValidity: f, errorMessages: h } =
|
|
10137
|
+
}), { rootAttrs: r, restAttrs: u } = xe(), { maxLength: c, maxLengthError: d } = da({ props: n, modelValue: s }), p = m(() => n.error ?? d.value), { vCustomValidity: f, errorMessages: h } = We({ props: n, emit: a, error: p }), { densityClass: b } = q(n), g = m(() => Te(n.success)), C = m(() => Te(n.message)), k = m(() => {
|
|
10119
10138
|
if (!n.autosize) return;
|
|
10120
10139
|
const z = n.autosize.min ? Math.max(n.autosize.min, 2) : void 0, j = n.autosize.max;
|
|
10121
10140
|
return [z ? `--min-autosize-rows: ${z}` : "", `--max-autosize-rows: ${j ?? "unset"}`];
|
|
@@ -10400,7 +10419,7 @@ const _m = /* @__PURE__ */ Vt(rp, [["render", cp]]), up = /* @__PURE__ */ A({
|
|
|
10400
10419
|
color: "success"
|
|
10401
10420
|
})
|
|
10402
10421
|
]),
|
|
10403
|
-
O(
|
|
10422
|
+
O(Wo, {
|
|
10404
10423
|
modelValue: s.value.checkboxGroup,
|
|
10405
10424
|
"onUpdate:modelValue": c[4] || (c[4] = (d) => s.value.checkboxGroup = d),
|
|
10406
10425
|
class: "grid--checkboxes",
|
|
@@ -10415,7 +10434,7 @@ const _m = /* @__PURE__ */ Vt(rp, [["render", cp]]), up = /* @__PURE__ */ A({
|
|
|
10415
10434
|
(i(), v(
|
|
10416
10435
|
K,
|
|
10417
10436
|
null,
|
|
10418
|
-
|
|
10437
|
+
ue(r, (d) => O(Tt, {
|
|
10419
10438
|
key: d.name,
|
|
10420
10439
|
"full-name": d.name,
|
|
10421
10440
|
src: d.avatar,
|
|
@@ -10477,7 +10496,7 @@ const _m = /* @__PURE__ */ Vt(rp, [["render", cp]]), up = /* @__PURE__ */ A({
|
|
|
10477
10496
|
-1
|
|
10478
10497
|
/* CACHED */
|
|
10479
10498
|
)),
|
|
10480
|
-
O(
|
|
10499
|
+
O(Wo, {
|
|
10481
10500
|
label: "Checkbox group (skeleton)",
|
|
10482
10501
|
"hide-label": "",
|
|
10483
10502
|
orientation: "horizontal",
|
|
@@ -10571,7 +10590,7 @@ const _m = /* @__PURE__ */ Vt(rp, [["render", cp]]), up = /* @__PURE__ */ A({
|
|
|
10571
10590
|
]));
|
|
10572
10591
|
}
|
|
10573
10592
|
}), wm = /* @__PURE__ */ Vt(Op, [["__scopeId", "data-v-c46b11f7"]]), Sm = (o) => {
|
|
10574
|
-
|
|
10593
|
+
Ce(() => {
|
|
10575
10594
|
X([o], () => {
|
|
10576
10595
|
const t = document.documentElement, e = "onyx-transition-active", n = () => {
|
|
10577
10596
|
t.classList.remove(e);
|
|
@@ -10614,7 +10633,7 @@ export {
|
|
|
10614
10633
|
cm as LINK_TARGETS,
|
|
10615
10634
|
Ut as MOBILE_NAV_BAR_INJECTION_KEY,
|
|
10616
10635
|
pm as MULTISELECT_TEXT_MODE,
|
|
10617
|
-
|
|
10636
|
+
on as NAV_BAR_IS_TOP_LEVEL_INJECTION_KEY,
|
|
10618
10637
|
pa as NAV_BAR_MORE_LIST_INJECTION_KEY,
|
|
10619
10638
|
ma as NAV_BAR_MORE_LIST_TARGET_INJECTION_KEY,
|
|
10620
10639
|
Dn as NOTIFICATIONS_PROVIDER_INJECTION_KEY,
|
|
@@ -10629,14 +10648,14 @@ export {
|
|
|
10629
10648
|
Nr as OnyxAvatarStack,
|
|
10630
10649
|
zt as OnyxBadge,
|
|
10631
10650
|
$n as OnyxBasicDialog,
|
|
10632
|
-
|
|
10651
|
+
ko as OnyxBasicPopover,
|
|
10633
10652
|
Pr as OnyxBottomBar,
|
|
10634
10653
|
zp as OnyxBreadcrumb,
|
|
10635
|
-
|
|
10654
|
+
qo as OnyxBreadcrumbItem,
|
|
10636
10655
|
st as OnyxButton,
|
|
10637
10656
|
Gn as OnyxCard,
|
|
10638
10657
|
yt as OnyxCheckbox,
|
|
10639
|
-
|
|
10658
|
+
Wo as OnyxCheckboxGroup,
|
|
10640
10659
|
gu as OnyxColorSchemeDialog,
|
|
10641
10660
|
xu as OnyxColorSchemeMenuItem,
|
|
10642
10661
|
wm as OnyxComponentShowcase,
|
|
@@ -10647,7 +10666,7 @@ export {
|
|
|
10647
10666
|
Wn as OnyxEmpty,
|
|
10648
10667
|
_m as OnyxErrorSVG,
|
|
10649
10668
|
Un as OnyxExternalLinkIcon,
|
|
10650
|
-
|
|
10669
|
+
Ho as OnyxFAB,
|
|
10651
10670
|
lo as OnyxFABButton,
|
|
10652
10671
|
Zs as OnyxFABItem,
|
|
10653
10672
|
lp as OnyxFileCard,
|
|
@@ -10655,7 +10674,7 @@ export {
|
|
|
10655
10674
|
xm as OnyxFileUpload,
|
|
10656
10675
|
up as OnyxFileUploadSVG,
|
|
10657
10676
|
km as OnyxFilterTag,
|
|
10658
|
-
|
|
10677
|
+
je as OnyxFlyoutMenu,
|
|
10659
10678
|
Jp as OnyxForm,
|
|
10660
10679
|
St as OnyxFormElement,
|
|
10661
10680
|
Qs as OnyxGlobalFAB,
|
|
@@ -10668,11 +10687,11 @@ export {
|
|
|
10668
10687
|
Zc as OnyxInput,
|
|
10669
10688
|
om as OnyxLanguageMenuItem,
|
|
10670
10689
|
Xc as OnyxLink,
|
|
10671
|
-
|
|
10690
|
+
wo as OnyxListItem,
|
|
10672
10691
|
ze as OnyxLoadingIndicator,
|
|
10673
10692
|
Ge as OnyxMenuItem,
|
|
10674
10693
|
Jn as OnyxMiniSearch,
|
|
10675
|
-
|
|
10694
|
+
nn as OnyxMobileNavButton,
|
|
10676
10695
|
ya as OnyxModal,
|
|
10677
10696
|
Hn as OnyxMoreList,
|
|
10678
10697
|
du as OnyxNavAppArea,
|
|
@@ -10687,7 +10706,7 @@ export {
|
|
|
10687
10706
|
ia as OnyxPagination,
|
|
10688
10707
|
md as OnyxProgressItem,
|
|
10689
10708
|
im as OnyxProgressSteps,
|
|
10690
|
-
|
|
10709
|
+
an as OnyxRadioButton,
|
|
10691
10710
|
bd as OnyxRadioGroup,
|
|
10692
10711
|
ct as OnyxRouterLink,
|
|
10693
10712
|
um as OnyxSegmentedControl,
|
|
@@ -10695,14 +10714,14 @@ export {
|
|
|
10695
10714
|
ra as OnyxSelect,
|
|
10696
10715
|
fa as OnyxSelectDialog,
|
|
10697
10716
|
nc as OnyxSelectInput,
|
|
10698
|
-
|
|
10717
|
+
Jo as OnyxSelectOption,
|
|
10699
10718
|
Rt as OnyxSeparator,
|
|
10700
10719
|
ym as OnyxSidebar,
|
|
10701
10720
|
mm as OnyxSidebarItem,
|
|
10702
10721
|
te as OnyxSkeleton,
|
|
10703
10722
|
Nd as OnyxStepper,
|
|
10704
10723
|
Gd as OnyxSwitch,
|
|
10705
|
-
|
|
10724
|
+
Se as OnyxSystemButton,
|
|
10706
10725
|
hm as OnyxTab,
|
|
10707
10726
|
Yn as OnyxTable,
|
|
10708
10727
|
bm as OnyxTabs,
|
|
@@ -10714,7 +10733,7 @@ export {
|
|
|
10714
10733
|
ht as OnyxTooltip,
|
|
10715
10734
|
Hp as OnyxUnstableCalendar,
|
|
10716
10735
|
Fu as OnyxUserMenu,
|
|
10717
|
-
|
|
10736
|
+
Xe as OnyxVisuallyHidden,
|
|
10718
10737
|
rm as PROGRESS_ITEM_STATUS,
|
|
10719
10738
|
Bn as ROUTER_INJECTION_KEY,
|
|
10720
10739
|
dm as SELECT_ALIGNMENTS,
|