sit-onyx 1.1.0-dev-20250930114848 → 1.1.0
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/composables/{useClipping.d.ts → useSticky.d.ts} +5 -5
- package/dist/index.esm-bundler.js +83 -83
- package/dist/index.esm-bundler.js.map +1 -1
- package/dist/index.js +110 -110
- package/dist/style.css +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed as m, provide as Fe, inject as ge, toRef 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 $e, 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 We, 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 Je, vShow as Xt, Teleport as rt, vModelCheckbox as an, vModelText as mo, h as ie, vModelDynamic as ln, withKeys as Io, createStaticVNode as Ma, useModel as Aa } from "vue";
|
|
2
2
|
import { iconChevronDownSmall as Ta, iconCircleAttention as yo, iconXSmall as qe, iconX as fo, iconMoreHorizontalSmall as sn, iconCircleCheck as Ia, iconCircleX as rn, iconCircleInformation as Qt, iconUser as Ra, iconArrowSmallUpRight as La, iconChevronRightSmall as vo, iconArrowSmallLeft as cn, iconHome as Da, iconMoreHorizontal as Ro, iconChevronLeftSmall as ho, iconSearch as Na, iconCheck as Va, iconSearchX as za, iconChevronDownUp as Fa, iconCheckSmall as xt, iconPlusSmall as Pa, iconEyeDisabled as Ua, iconListArrowUp as un, iconListArrowDown as dn, iconArrowsSort as Ha, iconCircleBlock as Ga, iconFileDisabled as qa, iconEyeClosed as Ka, iconEye as ja, iconCircleContrast as Wa, iconTranslate as Ya, iconMenu as Ja, iconMoreVertical as pn, 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 }))
|
|
@@ -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
|
|
@@ -245,7 +245,7 @@ const kl = ["innerHTML"], H = /* @__PURE__ */ A({
|
|
|
245
245
|
}, ds = {
|
|
246
246
|
decimal: { style: "decimal" }
|
|
247
247
|
}, vn = Symbol(), hn = (o = {}) => {
|
|
248
|
-
const t = Ot(
|
|
248
|
+
const t = Ot(ce(o?.locale ?? "en-US")), e = m(() => o.messages?.[t.value] ?? to), n = m(() => (r, u = {}) => {
|
|
249
249
|
let c = Lo(r, e.value) ?? Lo(r, to) ?? "";
|
|
250
250
|
return c = ms(c, u.n), ys(c, u);
|
|
251
251
|
}), a = m(() => (r, u) => new Intl.DateTimeFormat(
|
|
@@ -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
|
|
@@ -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,
|
|
@@ -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] },
|
|
@@ -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
|
+
}, _o = (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(),
|
|
@@ -1653,56 +1700,9 @@ function js(o) {
|
|
|
1653
1700
|
disabled: s
|
|
1654
1701
|
}), $e(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"], xo = /* @__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 }) {
|
|
@@ -1758,12 +1758,12 @@ 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",
|
|
@@ -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, () => {
|
|
@@ -1969,7 +1969,7 @@ const Tn = (o, t, e = "center") => {
|
|
|
1969
1969
|
}
|
|
1970
1970
|
}), Rn = Symbol(), Xs = () => {
|
|
1971
1971
|
const o = We([]), t = (n) => {
|
|
1972
|
-
o.value = o.value.concat(
|
|
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
|
};
|
|
@@ -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({
|
|
@@ -2364,7 +2364,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
2364
2364
|
(i(!0), v(
|
|
2365
2365
|
K,
|
|
2366
2366
|
null,
|
|
2367
|
-
|
|
2367
|
+
ue(l(t).notifications.value, ({ id: a, ...s }) => (i(), _(
|
|
2368
2368
|
vr,
|
|
2369
2369
|
B({ key: a }, { ref_for: !0 }, s),
|
|
2370
2370
|
ke({
|
|
@@ -2384,7 +2384,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
2384
2384
|
(i(!0), v(
|
|
2385
2385
|
K,
|
|
2386
2386
|
null,
|
|
2387
|
-
|
|
2387
|
+
ue(s.buttons, (r) => (i(), _(
|
|
2388
2388
|
st,
|
|
2389
2389
|
B({
|
|
2390
2390
|
key: r.label
|
|
@@ -2536,7 +2536,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
2536
2536
|
(i(!0), v(
|
|
2537
2537
|
K,
|
|
2538
2538
|
null,
|
|
2539
|
-
|
|
2539
|
+
ue(l(t).toasts.value, ({ id: a, ...s }) => (i(), _(
|
|
2540
2540
|
Nn,
|
|
2541
2541
|
B({ key: a }, { ref_for: !0 }, s),
|
|
2542
2542
|
null,
|
|
@@ -2715,7 +2715,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
2715
2715
|
const t = N(), e = N(), { width: n } = He(o.parentRef), { width: a } = He(o.moreIndicatorRef), s = po(/* @__PURE__ */ new Map());
|
|
2716
2716
|
return $e(() => {
|
|
2717
2717
|
X(
|
|
2718
|
-
[n, a, s,
|
|
2718
|
+
[n, a, s, ce(o.direction)],
|
|
2719
2719
|
() => {
|
|
2720
2720
|
let r = n.value;
|
|
2721
2721
|
if (r <= 0) return;
|
|
@@ -3047,7 +3047,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
3047
3047
|
parentRef: a,
|
|
3048
3048
|
listRef: s,
|
|
3049
3049
|
moreIndicatorRef: r,
|
|
3050
|
-
direction:
|
|
3050
|
+
direction: ce(() => e.direction)
|
|
3051
3051
|
});
|
|
3052
3052
|
return Fe(e.injectionKey, u), X(
|
|
3053
3053
|
[() => u.visibleElements.value?.length, () => u.hiddenElements.value?.length],
|
|
@@ -3308,7 +3308,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
3308
3308
|
return p.value.includes(" ") ? p.value : `${p.value} center`;
|
|
3309
3309
|
}), b = () => d.value === "hover" ? Os(u.value) : Bs(c.value), g = We(b());
|
|
3310
3310
|
X(d, () => g.value = b());
|
|
3311
|
-
const C = m(() => g.value?.elements.tooltip), k = m(() => U(g.value?.elements.trigger)), S =
|
|
3311
|
+
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 } = _o(x, "top"), { openAlignment: z, updateOpenAlignment: j } = Tn(x, T), { leftPosition: Q, topPosition: P, updateAnchorPositionPolyfill: F, useragentSupportsAnchorApi: ee } = An({
|
|
3312
3312
|
positionedRef: T,
|
|
3313
3313
|
targetRef: x,
|
|
3314
3314
|
positionArea: p,
|
|
@@ -3601,7 +3601,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
3601
3601
|
(i(!0), v(
|
|
3602
3602
|
K,
|
|
3603
3603
|
null,
|
|
3604
|
-
|
|
3604
|
+
ue(l(T), (Y, Be) => (i(), v("th", {
|
|
3605
3605
|
key: Be,
|
|
3606
3606
|
scope: "col",
|
|
3607
3607
|
abbr: Y,
|
|
@@ -3616,11 +3616,11 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
3616
3616
|
(i(!0), v(
|
|
3617
3617
|
K,
|
|
3618
3618
|
null,
|
|
3619
|
-
|
|
3619
|
+
ue(l(x), (Y, Be) => (i(), v("tr", { key: Be }, [
|
|
3620
3620
|
(i(!0), v(
|
|
3621
3621
|
K,
|
|
3622
3622
|
null,
|
|
3623
|
-
|
|
3623
|
+
ue(Y, (Se, fe) => (i(), v(
|
|
3624
3624
|
"td",
|
|
3625
3625
|
B({ key: fe }, { ref_for: !0 }, l(L)(Se)),
|
|
3626
3626
|
[
|
|
@@ -4149,7 +4149,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
4149
4149
|
l(h) ? typeof l(h) == "number" ? (i(!0), v(
|
|
4150
4150
|
K,
|
|
4151
4151
|
{ key: 1 },
|
|
4152
|
-
|
|
4152
|
+
ue(l(h), (M) => (i(), _(yt, {
|
|
4153
4153
|
key: M,
|
|
4154
4154
|
label: `Skeleton ${M}`,
|
|
4155
4155
|
value: `skeleton-${M}`,
|
|
@@ -4173,7 +4173,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
4173
4173
|
(i(!0), v(
|
|
4174
4174
|
K,
|
|
4175
4175
|
null,
|
|
4176
|
-
|
|
4176
|
+
ue(n.options, (M) => (i(), _(yt, B({
|
|
4177
4177
|
key: M.value.toString()
|
|
4178
4178
|
}, { ref_for: !0 }, M, {
|
|
4179
4179
|
ref_for: !0,
|
|
@@ -4293,7 +4293,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
4293
4293
|
(i(!0), v(
|
|
4294
4294
|
K,
|
|
4295
4295
|
null,
|
|
4296
|
-
|
|
4296
|
+
ue(t.columnGroups, (g) => (i(), v("colgroup", {
|
|
4297
4297
|
key: g.key,
|
|
4298
4298
|
span: g.span
|
|
4299
4299
|
}, null, 8, Bi))),
|
|
@@ -4305,7 +4305,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
4305
4305
|
(i(!0), v(
|
|
4306
4306
|
K,
|
|
4307
4307
|
null,
|
|
4308
|
-
|
|
4308
|
+
ue(t.columnGroups, (g) => (i(), v("th", {
|
|
4309
4309
|
key: g.key,
|
|
4310
4310
|
colspan: g.span,
|
|
4311
4311
|
scope: "colgroup",
|
|
@@ -4381,7 +4381,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
4381
4381
|
(i(!0), v(
|
|
4382
4382
|
K,
|
|
4383
4383
|
null,
|
|
4384
|
-
|
|
4384
|
+
ue(t.columns, (r) => (i(), v(
|
|
4385
4385
|
"th",
|
|
4386
4386
|
B({
|
|
4387
4387
|
key: r.key
|
|
@@ -4410,7 +4410,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
4410
4410
|
(i(!0), v(
|
|
4411
4411
|
K,
|
|
4412
4412
|
null,
|
|
4413
|
-
|
|
4413
|
+
ue(t.rows, (r) => (i(), v(
|
|
4414
4414
|
"tr",
|
|
4415
4415
|
B({
|
|
4416
4416
|
key: r.id
|
|
@@ -4419,7 +4419,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
4419
4419
|
(i(!0), v(
|
|
4420
4420
|
K,
|
|
4421
4421
|
null,
|
|
4422
|
-
|
|
4422
|
+
ue(r.columns, (u) => (i(), v(
|
|
4423
4423
|
K,
|
|
4424
4424
|
{
|
|
4425
4425
|
key: u.key
|
|
@@ -4461,7 +4461,7 @@ const so = /* @__PURE__ */ Vt(ar, [["render", sr]]), ze = /* @__PURE__ */ A({
|
|
|
4461
4461
|
_: 2
|
|
4462
4462
|
/* DYNAMIC */
|
|
4463
4463
|
}, [
|
|
4464
|
-
|
|
4464
|
+
ue(e, (r, u) => ({
|
|
4465
4465
|
name: u,
|
|
4466
4466
|
fn: $((c) => [
|
|
4467
4467
|
E(a.$slots, r?.name, Ne(Je(c)), () => [
|
|
@@ -4797,7 +4797,7 @@ const Gi = (o, t) => {
|
|
|
4797
4797
|
isAsync: n
|
|
4798
4798
|
};
|
|
4799
4799
|
}, Ki = Symbol("Filtering"), Bo = 0, ji = (o) => (t) => {
|
|
4800
|
-
const { i18n: e } = t, n =
|
|
4800
|
+
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
4801
|
(f) => Object.entries(n.value).every(
|
|
4802
4802
|
([h, b]) => {
|
|
4803
4803
|
const g = a.value?.[h], C = { ...o?.filterConfig, ...g?.config };
|
|
@@ -5617,7 +5617,7 @@ const Gi = (o, t) => {
|
|
|
5617
5617
|
(i(!0), v(
|
|
5618
5618
|
K,
|
|
5619
5619
|
null,
|
|
5620
|
-
|
|
5620
|
+
ue(pt.value, (de) => (i(), v(
|
|
5621
5621
|
"ul",
|
|
5622
5622
|
B({
|
|
5623
5623
|
key: de.name,
|
|
@@ -5634,7 +5634,7 @@ const Gi = (o, t) => {
|
|
|
5634
5634
|
(i(!0), v(
|
|
5635
5635
|
K,
|
|
5636
5636
|
null,
|
|
5637
|
-
|
|
5637
|
+
ue(de.items, (he) => (i(), _(Yo, B(
|
|
5638
5638
|
{
|
|
5639
5639
|
key: he.value.toString()
|
|
5640
5640
|
},
|
|
@@ -5812,12 +5812,12 @@ const Gi = (o, t) => {
|
|
|
5812
5812
|
));
|
|
5813
5813
|
}
|
|
5814
5814
|
}), bc = Symbol("Selection"), ca = 1e3, gc = (o) => (t) => {
|
|
5815
|
-
const e = `selection-column-${me()}`, n =
|
|
5815
|
+
const e = `selection-column-${me()}`, n = ce(
|
|
5816
5816
|
o?.selectionState ?? {
|
|
5817
5817
|
selectMode: "include",
|
|
5818
5818
|
contingent: /* @__PURE__ */ new Set()
|
|
5819
5819
|
}
|
|
5820
|
-
), a = N(0), s =
|
|
5820
|
+
), 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
5821
|
n.value.selectMode = b ? "exclude" : "include", n.value.contingent.clear();
|
|
5822
5822
|
}, d = (b, g) => {
|
|
5823
5823
|
n.value.selectMode === "include" && b === !0 || n.value.selectMode === "exclude" && b === !1 ? n.value.contingent.add(g) : n.value.contingent.delete(g);
|
|
@@ -5883,7 +5883,7 @@ const Gi = (o, t) => {
|
|
|
5883
5883
|
}
|
|
5884
5884
|
};
|
|
5885
5885
|
}, _c = Symbol("Pagination"), xc = Symbol("LazyLoadingRow"), Jo = Symbol("LazyLoadingRenderer"), kc = Symbol("ButtonLoadingRow"), Zo = Symbol("ButtonLoadingRenderer"), ua = Math.min(Bo, ca) - 1, wc = (o = {}) => (t) => {
|
|
5886
|
-
const e =
|
|
5886
|
+
const e = ce(
|
|
5887
5887
|
o?.paginationState ?? { current: 1, pages: 1, pageSize: o?.pageSize ?? 25 }
|
|
5888
5888
|
), { isEnabled: n, isAsync: a } = dt(t, o), s = m(() => o.disabled?.value ?? !1), r = m(
|
|
5889
5889
|
() => e.value.pages > 1 || e.value.current > e.value.pageSize
|
|
@@ -6055,7 +6055,7 @@ const Gi = (o, t) => {
|
|
|
6055
6055
|
h,
|
|
6056
6056
|
() => {
|
|
6057
6057
|
const S = qi(
|
|
6058
|
-
[Cc({ headline:
|
|
6058
|
+
[Cc({ headline: ce(t, "headline") }), ...h.value],
|
|
6059
6059
|
{
|
|
6060
6060
|
i18n: e,
|
|
6061
6061
|
columnConfig: p,
|
|
@@ -6084,7 +6084,7 @@ const Gi = (o, t) => {
|
|
|
6084
6084
|
_: 2
|
|
6085
6085
|
/* DYNAMIC */
|
|
6086
6086
|
}, [
|
|
6087
|
-
|
|
6087
|
+
ue(d.value, (x, T) => ({
|
|
6088
6088
|
name: T,
|
|
6089
6089
|
fn: $(() => [
|
|
6090
6090
|
(i(), _(Me(x)))
|
|
@@ -6100,7 +6100,7 @@ const Gi = (o, t) => {
|
|
|
6100
6100
|
]), 1040, ["column-groups", "columns", "rows", "scroll-container-attrs"]));
|
|
6101
6101
|
}
|
|
6102
6102
|
}), Ec = Symbol("HideColumnsFeature"), Yt = Symbol("HiddenColumn"), Bc = (o) => (t) => {
|
|
6103
|
-
const { i18n: e } = t, { isEnabled: n } = dt(t, o), a = N([]), s =
|
|
6103
|
+
const { i18n: e } = t, { isEnabled: n } = dt(t, o), a = N([]), s = ce(o?.state ?? /* @__PURE__ */ new Set()), r = m(
|
|
6104
6104
|
() => a.value.filter((d) => s.value.has(d.key))
|
|
6105
6105
|
), u = () => ie(
|
|
6106
6106
|
Xe,
|
|
@@ -6400,7 +6400,7 @@ const Gi = (o, t) => {
|
|
|
6400
6400
|
return "asc";
|
|
6401
6401
|
}
|
|
6402
6402
|
}, Ic = Symbol("Sorting"), Rc = (o) => (t) => {
|
|
6403
|
-
const e =
|
|
6403
|
+
const e = ce(
|
|
6404
6404
|
o?.sortState ?? {
|
|
6405
6405
|
column: void 0,
|
|
6406
6406
|
direction: "none"
|
|
@@ -6707,7 +6707,7 @@ const Gi = (o, t) => {
|
|
|
6707
6707
|
position: {},
|
|
6708
6708
|
alignment: {},
|
|
6709
6709
|
disabled: { type: Boolean },
|
|
6710
|
-
|
|
6710
|
+
sticky: { type: Boolean, default: !0 },
|
|
6711
6711
|
nonDismissible: { type: Boolean }
|
|
6712
6712
|
},
|
|
6713
6713
|
emits: ["update:open"],
|
|
@@ -7343,7 +7343,7 @@ const Gi = (o, t) => {
|
|
|
7343
7343
|
(i(!0), v(
|
|
7344
7344
|
K,
|
|
7345
7345
|
null,
|
|
7346
|
-
|
|
7346
|
+
ue(e.options, (h) => (i(), v("label", {
|
|
7347
7347
|
key: h.value
|
|
7348
7348
|
}, [
|
|
7349
7349
|
O(
|
|
@@ -7626,7 +7626,7 @@ const Gi = (o, t) => {
|
|
|
7626
7626
|
m(() => !1)
|
|
7627
7627
|
), b = ge(ma, void 0), g = ge(tn, !0);
|
|
7628
7628
|
Fe(tn, !1);
|
|
7629
|
-
const { componentRef: C, isVisible: k } = g ? zn(pa) : { isVisible:
|
|
7629
|
+
const { componentRef: C, isVisible: k } = g ? zn(pa) : { isVisible: ce(!0) };
|
|
7630
7630
|
return (S, M) => (i(), v(
|
|
7631
7631
|
K,
|
|
7632
7632
|
null,
|
|
@@ -8048,7 +8048,7 @@ const Gi = (o, t) => {
|
|
|
8048
8048
|
setup(o, { expose: t, emit: e }) {
|
|
8049
8049
|
const n = o, a = e, s = ye(), r = oe("navBarRef"), { width: u } = He(r), { t: c } = W(), { currentRoute: d } = it(), {
|
|
8050
8050
|
elements: { nav: p }
|
|
8051
|
-
} = Cs({ navigationName:
|
|
8051
|
+
} = 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
8052
|
Fe(Ut, g), Fe(ma, oe("moreListRef"));
|
|
8053
8053
|
const C = () => {
|
|
8054
8054
|
f.value = !1, h.value = !1;
|
|
@@ -8284,7 +8284,7 @@ const Gi = (o, t) => {
|
|
|
8284
8284
|
},
|
|
8285
8285
|
setup(o) {
|
|
8286
8286
|
const t = o, e = ye(), { densityClass: n } = q(t), a = se(t), { d: s, t: r } = W(), { timeAgo: u } = Ju({
|
|
8287
|
-
time:
|
|
8287
|
+
time: ce(t, "createdAt"),
|
|
8288
8288
|
options: { numeric: "auto" }
|
|
8289
8289
|
});
|
|
8290
8290
|
return (c, d) => (i(), v(
|
|
@@ -8298,7 +8298,7 @@ const Gi = (o, t) => {
|
|
|
8298
8298
|
(i(), v(
|
|
8299
8299
|
K,
|
|
8300
8300
|
null,
|
|
8301
|
-
|
|
8301
|
+
ue(3, (p) => O(te, {
|
|
8302
8302
|
key: p,
|
|
8303
8303
|
class: "onyx-notification-card-skeleton__content"
|
|
8304
8304
|
})),
|
|
@@ -8573,7 +8573,7 @@ const Gi = (o, t) => {
|
|
|
8573
8573
|
(i(!0), v(
|
|
8574
8574
|
K,
|
|
8575
8575
|
null,
|
|
8576
|
-
|
|
8576
|
+
ue(u.value, (p) => (i(), v(
|
|
8577
8577
|
K,
|
|
8578
8578
|
{
|
|
8579
8579
|
key: p.value
|
|
@@ -8756,7 +8756,7 @@ const Gi = (o, t) => {
|
|
|
8756
8756
|
l(d) ? typeof l(d) == "number" ? (i(!0), v(
|
|
8757
8757
|
K,
|
|
8758
8758
|
{ key: 1 },
|
|
8759
|
-
|
|
8759
|
+
ue(l(d), (k) => (i(), _(nn, {
|
|
8760
8760
|
id: `skeleton-${k}`,
|
|
8761
8761
|
key: k,
|
|
8762
8762
|
value: `skeleton-${k}`,
|
|
@@ -8769,7 +8769,7 @@ const Gi = (o, t) => {
|
|
|
8769
8769
|
)) : w("v-if", !0) : (i(!0), v(
|
|
8770
8770
|
K,
|
|
8771
8771
|
{ key: 0 },
|
|
8772
|
-
|
|
8772
|
+
ue(n.options, (k, S) => (i(), _(nn, B({
|
|
8773
8773
|
key: k.value.toString()
|
|
8774
8774
|
}, { ref_for: !0 }, k, {
|
|
8775
8775
|
ref_for: !0,
|
|
@@ -8889,7 +8889,7 @@ const Gi = (o, t) => {
|
|
|
8889
8889
|
(i(!0), v(
|
|
8890
8890
|
K,
|
|
8891
8891
|
null,
|
|
8892
|
-
|
|
8892
|
+
ue(o.options, (p) => (i(), _(kd, B({
|
|
8893
8893
|
key: p.value.toString()
|
|
8894
8894
|
}, { ref_for: !0 }, p, {
|
|
8895
8895
|
name: e.name,
|
|
@@ -9446,14 +9446,14 @@ const Gi = (o, t) => {
|
|
|
9446
9446
|
emit: n,
|
|
9447
9447
|
key: "modelValue"
|
|
9448
9448
|
}), r = Es({
|
|
9449
|
-
label:
|
|
9450
|
-
selectedTab:
|
|
9449
|
+
label: ce(e, "label"),
|
|
9450
|
+
selectedTab: ce(() => s.value),
|
|
9451
9451
|
onSelect: (c) => s.value = c
|
|
9452
9452
|
}), u = oe("panelRef");
|
|
9453
9453
|
return Nt(e), Fe(ha, {
|
|
9454
9454
|
headless: r,
|
|
9455
9455
|
panel: u,
|
|
9456
|
-
size:
|
|
9456
|
+
size: ce(e, "size")
|
|
9457
9457
|
}), (c, d) => (i(), v(
|
|
9458
9458
|
"div",
|
|
9459
9459
|
{
|
|
@@ -10015,7 +10015,7 @@ const _m = /* @__PURE__ */ Vt(rp, [["render", cp]]), up = /* @__PURE__ */ A({
|
|
|
10015
10015
|
(i(!0), v(
|
|
10016
10016
|
K,
|
|
10017
10017
|
null,
|
|
10018
|
-
|
|
10018
|
+
ue(k.value, (ee) => E(P.$slots, "default", {
|
|
10019
10019
|
key: ee.props.filename,
|
|
10020
10020
|
file: ee.file,
|
|
10021
10021
|
props: ee.props
|
|
@@ -10415,7 +10415,7 @@ const _m = /* @__PURE__ */ Vt(rp, [["render", cp]]), up = /* @__PURE__ */ A({
|
|
|
10415
10415
|
(i(), v(
|
|
10416
10416
|
K,
|
|
10417
10417
|
null,
|
|
10418
|
-
|
|
10418
|
+
ue(r, (d) => O(Tt, {
|
|
10419
10419
|
key: d.name,
|
|
10420
10420
|
"full-name": d.name,
|
|
10421
10421
|
src: d.avatar,
|