@factorialco/f0-react 13.1.1 → 13.2.1
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/{ArchiveThumbnail-BhSVjw6x.js → ArchiveThumbnail-BGWiJFfA.js} +3 -3
- package/dist/{ArchiveViewer-DASJzwJb.js → ArchiveViewer-gaakCGJ3.js} +5 -5
- package/dist/{ChatPostComposerDialog-D92jj4BV.js → ChatPostComposerDialog-GQrKR74F.js} +3 -3
- package/dist/{CoachmarkProvider-dxh4P0AZ.js → CoachmarkProvider-Bdo8Y_D0.js} +27335 -27303
- package/dist/{CodeThumbnail-IP_vOyov.js → CodeThumbnail-Bm_GaLxm.js} +1 -1
- package/dist/{CodeViewer-DZoJ7fdL.js → CodeViewer-Ia0NwKX_.js} +6 -6
- package/dist/{DocumentToolbar-B8_j2Zl4.js → DocumentToolbar-D4KElA1V.js} +5 -5
- package/dist/{DocxViewer-DboJaTr3.js → DocxViewer-C6otSnj3.js} +3 -3
- package/dist/{F0AiProcessingOverlay-DT4ktT3j.js → F0AiProcessingOverlay-DMkI1tRu.js} +9 -9
- package/dist/{F0Alert-BfltCzQ2.js → F0Alert-D664MgOC.js} +5 -5
- package/dist/F0AudioPlayer-CgoLw3-_.js +2 -0
- package/dist/{F0Button-C1-0hRRA.js → F0Button-Bo-Zw0Zx.js} +3 -3
- package/dist/{F0CanvasPanel-Cj4TWcke.js → F0CanvasPanel-BWbAs38E.js} +19 -18
- package/dist/{F0DocumentViewer-BqYSh98Y.js → F0DocumentViewer-D8VcE-pQ.js} +4 -4
- package/dist/{F0DocumentViewer-7bsl-VJ7.js → F0DocumentViewer-DGk2W39u.js} +1 -1
- package/dist/{F0Icon-DmCBV0gK.js → F0Icon-P9uOVsGz.js} +1 -1
- package/dist/{F0Map-DV3c_rk8.js → F0Map-C510FLet.js} +7 -7
- package/dist/{F0Select-DDqZWGSC.js → F0Select-CzWp91j0.js} +8 -8
- package/dist/{F0Text-KD9_ThWl.js → F0Text-BG36S9Xx.js} +2 -2
- package/dist/F0VideoPlayer-BDUW3ILk.js +1 -0
- package/dist/{F0VideoPlayer-5HdkeIbo.js → F0VideoPlayer-C_fMkaxj.js} +6 -6
- package/dist/{HtmlThumbnail-CGNpFG13.js → HtmlThumbnail-BiphE7Y5.js} +1 -1
- package/dist/{HtmlViewer-Ux6YE3lc.js → HtmlViewer-DZHyuKz5.js} +9 -9
- package/dist/{LayoutGroup-88jf2Qrz.js → LayoutGroup-DLtALSqH.js} +1 -1
- package/dist/{Map-BMb6SEH2.js → Map-YloQD9VT.js} +10 -10
- package/dist/{PdfThumbnail-BXNX1dm4.js → PdfThumbnail-9X44csq5.js} +3 -3
- package/dist/{PdfViewer-vXrU8Kxe.js → PdfViewer-DtdRvpvP.js} +10 -10
- package/dist/{SandboxedHtmlFrame-B29PHJ6m.js → SandboxedHtmlFrame-DeAt348C.js} +2 -2
- package/dist/{SheetViewer-DMQqX_e_.js → SheetViewer-_iq4uwXW.js} +5 -5
- package/dist/{TextViewer-YNNSwjUG.js → TextViewer-C7xx-4YQ.js} +4 -4
- package/dist/ai.d.ts +3 -3
- package/dist/ai.js +4 -4
- package/dist/component-status.js +1 -1
- package/dist/{dist-CBheMQQo.js → dist-C_W2CLtJ.js} +4 -4
- package/dist/{dist-CFY0KELA.js → dist-Do5FlVaY.js} +1 -1
- package/dist/{dist-zvwuNflP.js → dist-Ol7JA7z9.js} +1 -1
- package/dist/experimental.d.ts +3 -3
- package/dist/experimental.js +16 -15
- package/dist/{exports-BPCb_V_l.d.ts → exports-CebiqGLM.d.ts} +1 -1
- package/dist/f0.d.ts +4 -4
- package/dist/f0.js +17 -17
- package/dist/{highlight-D_pakpV2.js → highlight-izD68Eru.js} +1 -1
- package/dist/{i18n-provider-Bdgo-LeP.js → i18n-provider-C_PTccYX.js} +1 -1
- package/dist/{i18n-provider-defaults-DyPn8R7T.d.ts → i18n-provider-defaults-DD3oVvPp.d.ts} +1 -0
- package/dist/{i18n-provider-defaults-B9vdZZeS.js → i18n-provider-defaults-JkDaKXzI.js} +2 -1
- package/dist/i18n-provider-defaults.d.ts +1 -1
- package/dist/i18n-provider-defaults.js +1 -1
- package/dist/{index-BrWCSgfc.d.ts → index-CpTdsnxc.d.ts} +7 -2
- package/dist/{maplibre-C_cFb8qK.js → maplibre-CHP-aU_V.js} +1 -1
- package/dist/{pdfWorker-Cr7w7uDW.js → pdfWorker-kyGjjW4X.js} +15 -6
- package/dist/pdfWorker.css +1 -0
- package/dist/{popover-ics24JxK.js → popover-DhWTWc7-.js} +1 -1
- package/dist/{scrollarea-BbCUnpY7.js → scrollarea-pyluD6aV.js} +3 -3
- package/dist/{skeleton-AC0Fb8zj.js → skeleton-CyLv1Ytt.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/{toolbarStyles-BffylLUB.js → toolbarStyles-stzlyka-.js} +1 -1
- package/dist/{types-CRx-aTBt.d.ts → types-ei71RXBT.d.ts} +19 -7
- package/dist/{useData-DikJqoNa.js → useData-BmoyjoRL.js} +150 -129
- package/package.json +1 -1
- package/dist/F0AudioPlayer-DJ7kXNPF.js +0 -2
- package/dist/F0VideoPlayer-Czpw9u5k.js +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { r as e } from "./rolldown-runtime-BItFwnF5.js";
|
|
2
|
-
import { a as t, i as n, r } from "./i18n-provider-
|
|
3
|
-
import { n as i, t as a } from "./skeleton-
|
|
2
|
+
import { a as t, i as n, r } from "./i18n-provider-C_PTccYX.js";
|
|
3
|
+
import { n as i, t as a } from "./skeleton-CyLv1Ytt.js";
|
|
4
4
|
import { L as o, R as s } from "./tooltip-BX4dSfeL.js";
|
|
5
|
-
import { N as c, S as l, U as u, f as d, t as f } from "./F0Button-
|
|
6
|
-
import { o as p, r as m, t as h } from "./F0Icon-
|
|
7
|
-
import { A as g, E as _, H as v, M as y, O as b, T as x, a as ee, b as S, i as te, k as C, t as w } from "./popover-
|
|
8
|
-
import { n as T, r as E } from "./scrollarea-
|
|
5
|
+
import { N as c, S as l, U as u, f as d, t as f } from "./F0Button-Bo-Zw0Zx.js";
|
|
6
|
+
import { o as p, r as m, t as h } from "./F0Icon-P9uOVsGz.js";
|
|
7
|
+
import { A as g, E as _, H as v, M as y, O as b, T as x, a as ee, b as S, i as te, k as C, t as w } from "./popover-DhWTWc7-.js";
|
|
8
|
+
import { n as T, r as E } from "./scrollarea-pyluD6aV.js";
|
|
9
9
|
import { t as D } from "./dist-Cuwaibqg.js";
|
|
10
10
|
import { t as ne } from "./ownValue-D4uSXt0d.js";
|
|
11
11
|
import * as O from "react";
|
|
@@ -17575,10 +17575,31 @@ var fd = t(dd), pd = o("opacity-0 transition-opacity motion-reduce:transition-no
|
|
|
17575
17575
|
dataTestId: n
|
|
17576
17576
|
});
|
|
17577
17577
|
}
|
|
17578
|
-
}
|
|
17579
|
-
|
|
17580
|
-
|
|
17581
|
-
|
|
17578
|
+
};
|
|
17579
|
+
function vd(e, t) {
|
|
17580
|
+
if ("aria-label" in e && e["aria-label"]) return e["aria-label"];
|
|
17581
|
+
switch (e.type) {
|
|
17582
|
+
case "person": return `${e.firstName} ${e.lastName}`.trim() || void 0;
|
|
17583
|
+
case "team":
|
|
17584
|
+
case "company": return e.name;
|
|
17585
|
+
case "file": return e.file.name;
|
|
17586
|
+
case "flag": return t[e.flag] ?? e.flag;
|
|
17587
|
+
default: return;
|
|
17588
|
+
}
|
|
17589
|
+
}
|
|
17590
|
+
var yd = ({ actions: e, onClick: t, ...n }) => {
|
|
17591
|
+
let { countries: i } = r(), a = t ? /* @__PURE__ */ z("button", {
|
|
17592
|
+
type: "button",
|
|
17593
|
+
"aria-label": vd(n.avatar, i),
|
|
17594
|
+
onClick: t,
|
|
17595
|
+
className: o("flex cursor-pointer border-0 bg-transparent p-0", n.avatar.type === "person" ? "rounded-full" : "rounded-md", s()),
|
|
17596
|
+
children: /* @__PURE__ */ z(_d, { ...n })
|
|
17597
|
+
}) : /* @__PURE__ */ z(_d, { ...n });
|
|
17598
|
+
return e?.length ? /* @__PURE__ */ z(hd, {
|
|
17599
|
+
actions: e,
|
|
17600
|
+
children: a
|
|
17601
|
+
}) : a;
|
|
17602
|
+
}, bd = t(yd), xd = u.create(h), Sd = ({ count: e, totalItemsCount: t, isOpen: n }) => {
|
|
17582
17603
|
let i = r();
|
|
17583
17604
|
return /* @__PURE__ */ B("div", {
|
|
17584
17605
|
className: o("flex items-center gap-1 rounded py-1.5 pl-3 pr-2 text-base font-medium text-f1-foreground transition-colors hover:bg-f1-background-secondary", n && "bg-f1-background-secondary"),
|
|
@@ -17587,7 +17608,7 @@ var fd = t(dd), pd = o("opacity-0 transition-opacity motion-reduce:transition-no
|
|
|
17587
17608
|
/* @__PURE__ */ z("span", { children: i.actions.more }),
|
|
17588
17609
|
/* @__PURE__ */ z("div", {
|
|
17589
17610
|
className: "flex h-5 w-5 items-center justify-center after:absolute after:h-4 after:w-4 after:rounded-xs after:bg-f1-background-secondary after:content-['']",
|
|
17590
|
-
children: /* @__PURE__ */ z(
|
|
17611
|
+
children: /* @__PURE__ */ z(xd, {
|
|
17591
17612
|
icon: ae,
|
|
17592
17613
|
initial: { rotate: 0 },
|
|
17593
17614
|
animate: { rotate: n ? 180 : 0 },
|
|
@@ -17597,11 +17618,11 @@ var fd = t(dd), pd = o("opacity-0 transition-opacity motion-reduce:transition-no
|
|
|
17597
17618
|
]
|
|
17598
17619
|
});
|
|
17599
17620
|
};
|
|
17600
|
-
|
|
17621
|
+
Sd.displayName = "OverflowIndicator";
|
|
17601
17622
|
//#endregion
|
|
17602
17623
|
//#region src/elements/OverflowList/useOverflowCalculation.ts
|
|
17603
|
-
var
|
|
17604
|
-
function
|
|
17624
|
+
var Cd = 20;
|
|
17625
|
+
function wd(e, t, n) {
|
|
17605
17626
|
let r = I(null), i = I(null), a = I(null), o = I(null), s = I(null), [c, u] = L(null), [d, f] = L(!1);
|
|
17606
17627
|
l({
|
|
17607
17628
|
ref: r,
|
|
@@ -17641,7 +17662,7 @@ function Cd(e, t, n) {
|
|
|
17641
17662
|
if (_ !== null && h > _) {
|
|
17642
17663
|
let e = m({
|
|
17643
17664
|
itemWidths: d,
|
|
17644
|
-
availableWidth: g -
|
|
17665
|
+
availableWidth: g - Cd
|
|
17645
17666
|
});
|
|
17646
17667
|
e < h && (h = Math.max(e, _));
|
|
17647
17668
|
}
|
|
@@ -17679,14 +17700,14 @@ function Cd(e, t, n) {
|
|
|
17679
17700
|
}
|
|
17680
17701
|
//#endregion
|
|
17681
17702
|
//#region src/elements/OverflowList/OverflowList.tsx
|
|
17682
|
-
var
|
|
17703
|
+
var Td = function({ items: e, renderListItem: t, renderDropdownItem: n, overflowIndicatorWithPopover: r = !0, renderOverflowIndicator: i, forceShowingOverflowIndicator: c = !1, className: l = "", gap: u = 8, max: d, min: f = 0, fluidItems: p = !1, itemsWidth: m }) {
|
|
17683
17704
|
let [h, g] = L(!1), _ = j((e) => {
|
|
17684
17705
|
g(e);
|
|
17685
|
-
}, []), { containerRef: v, overflowButtonRef: y, customOverflowIndicatorRef: b, measurementContainerRef: x, visibleItems: S, overflowItems: C, isInitialized: T } =
|
|
17706
|
+
}, []), { containerRef: v, overflowButtonRef: y, customOverflowIndicatorRef: b, measurementContainerRef: x, visibleItems: S, overflowItems: C, isInitialized: T } = wd(e, u, {
|
|
17686
17707
|
max: d,
|
|
17687
17708
|
min: f,
|
|
17688
17709
|
itemsWidth: m
|
|
17689
|
-
}), E = F(() => /* @__PURE__ */ z(
|
|
17710
|
+
}), E = F(() => /* @__PURE__ */ z(Sd, {
|
|
17690
17711
|
totalItemsCount: e.length,
|
|
17691
17712
|
isOpen: h,
|
|
17692
17713
|
count: C.length
|
|
@@ -17751,10 +17772,10 @@ var wd = function({ items: e, renderListItem: t, renderDropdownItem: n, overflow
|
|
|
17751
17772
|
]
|
|
17752
17773
|
});
|
|
17753
17774
|
};
|
|
17754
|
-
|
|
17775
|
+
Td.displayName = "OverflowList";
|
|
17755
17776
|
//#endregion
|
|
17756
17777
|
//#region src/elements/avatars/F0AvatarList/utils.ts
|
|
17757
|
-
function
|
|
17778
|
+
function Ed(e, t) {
|
|
17758
17779
|
switch (e) {
|
|
17759
17780
|
case "person": return `${t.firstName} ${t.lastName}`;
|
|
17760
17781
|
case "team": return t.name;
|
|
@@ -17766,7 +17787,7 @@ function Td(e, t) {
|
|
|
17766
17787
|
}
|
|
17767
17788
|
//#endregion
|
|
17768
17789
|
//#region src/elements/avatars/F0AvatarList/components/MaxCounter.tsx
|
|
17769
|
-
var
|
|
17790
|
+
var Dd = p({
|
|
17770
17791
|
base: "flex shrink-0 items-center justify-center bg-f1-background-secondary font-medium text-f1-foreground-secondary",
|
|
17771
17792
|
variants: {
|
|
17772
17793
|
size: {
|
|
@@ -17792,7 +17813,7 @@ var Ed = p({
|
|
|
17792
17813
|
size: "md",
|
|
17793
17814
|
type: "base"
|
|
17794
17815
|
}
|
|
17795
|
-
}),
|
|
17816
|
+
}), Od = ({ count: e, size: t = "md", type: n, list: r, avatarType: i = "person" }) => {
|
|
17796
17817
|
let [a, c] = L(!1), l = I(!1), u = I(null), d = I(void 0);
|
|
17797
17818
|
N(() => () => clearTimeout(d.current), []);
|
|
17798
17819
|
let f = () => clearTimeout(d.current), p = () => {
|
|
@@ -17807,7 +17828,7 @@ var Ed = p({
|
|
|
17807
17828
|
children: ["+", e]
|
|
17808
17829
|
})] }) : `+${e}`;
|
|
17809
17830
|
if (!r?.length) return /* @__PURE__ */ z("div", {
|
|
17810
|
-
className: o("cursor-default font-medium transition",
|
|
17831
|
+
className: o("cursor-default font-medium transition", Dd({
|
|
17811
17832
|
size: t,
|
|
17812
17833
|
type: n
|
|
17813
17834
|
})),
|
|
@@ -17819,7 +17840,7 @@ var Ed = p({
|
|
|
17819
17840
|
className: "flex w-[180px] min-w-0 items-center gap-1.5 px-2 py-1 [&:first-child]:pt-2 [&:last-child]:pb-2",
|
|
17820
17841
|
children: [/* @__PURE__ */ z("div", {
|
|
17821
17842
|
className: "h-6 w-6 shrink-0",
|
|
17822
|
-
children: /* @__PURE__ */ z(
|
|
17843
|
+
children: /* @__PURE__ */ z(bd, {
|
|
17823
17844
|
avatar: {
|
|
17824
17845
|
type: i,
|
|
17825
17846
|
...e
|
|
@@ -17830,7 +17851,7 @@ var Ed = p({
|
|
|
17830
17851
|
className: "flex min-w-0 flex-1 flex-col",
|
|
17831
17852
|
children: [/* @__PURE__ */ z("div", {
|
|
17832
17853
|
className: "truncate font-semibold",
|
|
17833
|
-
children:
|
|
17854
|
+
children: Ed(i, e)
|
|
17834
17855
|
}), n ? /* @__PURE__ */ z("div", {
|
|
17835
17856
|
className: "truncate text-sm text-current opacity-70",
|
|
17836
17857
|
children: n
|
|
@@ -17850,7 +17871,7 @@ var Ed = p({
|
|
|
17850
17871
|
onClick: (e) => {
|
|
17851
17872
|
l.current = !1, a && (e.preventDefault(), u.current?.focus());
|
|
17852
17873
|
},
|
|
17853
|
-
className: o("cursor-pointer font-medium transition hover:bg-f1-background-secondary-hover",
|
|
17874
|
+
className: o("cursor-pointer font-medium transition hover:bg-f1-background-secondary-hover", Dd({
|
|
17854
17875
|
size: t,
|
|
17855
17876
|
type: n
|
|
17856
17877
|
}), s()),
|
|
@@ -17877,11 +17898,11 @@ var Ed = p({
|
|
|
17877
17898
|
})
|
|
17878
17899
|
})]
|
|
17879
17900
|
});
|
|
17880
|
-
},
|
|
17901
|
+
}, kd = [
|
|
17881
17902
|
"xs",
|
|
17882
17903
|
"sm",
|
|
17883
17904
|
"md"
|
|
17884
|
-
],
|
|
17905
|
+
], Ad = {
|
|
17885
17906
|
base: {
|
|
17886
17907
|
md: "path('M1.08993 5.46009C0 7.59921 0 10.3995 0 16C0 21.6005 0 24.4008 1.08993 26.5399C2.04867 28.4215 3.57847 29.9513 5.46009 30.9101C7.59921 32 10.3995 32 16 32C21.6005 32 24.4008 32 26.5399 30.9101C27.4506 30.446 28.279 29.8482 29 29.1414C28.2314 28.388 27.5846 27.5108 27.0899 26.5399C26 24.4008 26 21.6005 26 16C26 10.3995 26 7.59921 27.0899 5.46009C27.5846 4.48921 28.2314 3.612 29 2.85857C28.279 2.15181 27.4506 1.55398 26.5399 1.08993C24.4008 0 21.6005 0 16 0C10.3995 0 7.59921 0 5.46009 1.08993C3.57847 2.04867 2.04867 3.57847 1.08993 5.46009Z')",
|
|
17887
17908
|
sm: "path('M0.608964 4.93853C0 6.4087 0 8.27247 0 12C0 15.7275 0 17.5913 0.608964 19.0615C1.42092 21.0217 2.97831 22.5791 4.93853 23.391C6.4087 24 8.27247 24 12 24C15.7275 24 17.5913 24 19.0615 23.391C19.9729 23.0135 20.7972 22.4749 21.5 21.8095C20.6912 21.0438 20.0434 20.1103 19.609 19.0615C19 17.5913 19 15.7275 19 12C19 8.27247 19 6.4087 19.609 4.93853C20.0434 3.88971 20.6912 2.95622 21.5 2.19052C20.7972 1.52515 19.9729 0.986481 19.0615 0.608964C17.5913 0 15.7275 0 12 0C8.27247 0 6.4087 0 4.93853 0.608964C2.97831 1.42092 1.42092 2.97831 0.608964 4.93853Z')",
|
|
@@ -17892,8 +17913,8 @@ var Ed = p({
|
|
|
17892
17913
|
sm: "path('M21.3746 4.50813C19.1755 1.76008 15.7933 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24C15.7933 24 19.1755 22.2399 21.3746 19.4919C19.8788 17.3743 19 14.7898 19 12C19 9.21023 19.8788 6.62571 21.3746 4.50813Z')",
|
|
17893
17914
|
xs: "path('M18 4.19899C16.7442 5.95406 16 8.13577 16 10.5C16 12.8642 16.7442 15.0459 18 16.801C16.1755 19.3508 13.2712 21 10 21C4.47716 21 0 16.299 0 10.5C0 4.70102 4.47716 0 10 0C13.2712 0 16.1755 1.64923 18 4.19899Z')"
|
|
17894
17915
|
}
|
|
17895
|
-
},
|
|
17896
|
-
if (t && !
|
|
17916
|
+
}, jd = ({ avatars: e, size: t = "md", type: n, noTooltip: r = !1, remainingCount: i, max: a, tooltipScroll: o, layout: s }) => {
|
|
17917
|
+
if (t && !kd.includes(t)) {
|
|
17897
17918
|
let e = {
|
|
17898
17919
|
small: "sm",
|
|
17899
17920
|
medium: "md",
|
|
@@ -17910,7 +17931,7 @@ var Ed = p({
|
|
|
17910
17931
|
sm: 24,
|
|
17911
17932
|
md: 32
|
|
17912
17933
|
})[t], [t]);
|
|
17913
|
-
return /* @__PURE__ */ z(
|
|
17934
|
+
return /* @__PURE__ */ z(Td, {
|
|
17914
17935
|
max: a,
|
|
17915
17936
|
min: a,
|
|
17916
17937
|
items: e.map((e) => ({
|
|
@@ -17921,10 +17942,10 @@ var Ed = p({
|
|
|
17921
17942
|
itemsWidth: u,
|
|
17922
17943
|
className: "flex items-center",
|
|
17923
17944
|
renderListItem: (a, o) => {
|
|
17924
|
-
let s =
|
|
17945
|
+
let s = Ed(n, a), l = a.tooltipDescription, u = !!a.badge, d = o === e.length - 1, f = /* @__PURE__ */ z("div", {
|
|
17925
17946
|
className: "flex h-fit w-fit shrink-0 items-center justify-center",
|
|
17926
|
-
style: (!d || d && i !== void 0) && !u ? { clipPath:
|
|
17927
|
-
children: /* @__PURE__ */ z(
|
|
17947
|
+
style: (!d || d && i !== void 0) && !u ? { clipPath: Ad[n === "person" ? "rounded" : "base"][t] } : void 0,
|
|
17948
|
+
children: /* @__PURE__ */ z(bd, {
|
|
17928
17949
|
avatar: {
|
|
17929
17950
|
...a,
|
|
17930
17951
|
type: n
|
|
@@ -17943,7 +17964,7 @@ var Ed = p({
|
|
|
17943
17964
|
renderOverflowIndicator: (r) => /* @__PURE__ */ z("div", {
|
|
17944
17965
|
className: "flex h-fit w-fit items-center",
|
|
17945
17966
|
style: { marginLeft: l },
|
|
17946
|
-
children: /* @__PURE__ */ z(
|
|
17967
|
+
children: /* @__PURE__ */ z(Od, {
|
|
17947
17968
|
count: (i ?? 0) + r,
|
|
17948
17969
|
size: t,
|
|
17949
17970
|
type: n === "person" ? "rounded" : "base",
|
|
@@ -17954,14 +17975,14 @@ var Ed = p({
|
|
|
17954
17975
|
overflowIndicatorWithPopover: !1
|
|
17955
17976
|
});
|
|
17956
17977
|
};
|
|
17957
|
-
|
|
17958
|
-
var
|
|
17978
|
+
jd.displayName = "AvatarList";
|
|
17979
|
+
var Md = t(jd);
|
|
17959
17980
|
//#endregion
|
|
17960
17981
|
//#region ../../node_modules/.pnpm/zen-observable-ts@1.1.0/node_modules/zen-observable-ts/module.js
|
|
17961
|
-
function
|
|
17982
|
+
function Nd(e, t) {
|
|
17962
17983
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
17963
17984
|
if (n) return (n = n.call(e)).next.bind(n);
|
|
17964
|
-
if (Array.isArray(e) || (n =
|
|
17985
|
+
if (Array.isArray(e) || (n = Pd(e)) || t && e && typeof e.length == "number") {
|
|
17965
17986
|
n && (e = n);
|
|
17966
17987
|
var r = 0;
|
|
17967
17988
|
return function() {
|
|
@@ -17973,57 +17994,57 @@ function Md(e, t) {
|
|
|
17973
17994
|
}
|
|
17974
17995
|
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
17975
17996
|
}
|
|
17976
|
-
function
|
|
17997
|
+
function Pd(e, t) {
|
|
17977
17998
|
if (e) {
|
|
17978
|
-
if (typeof e == "string") return
|
|
17999
|
+
if (typeof e == "string") return Fd(e, t);
|
|
17979
18000
|
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
17980
18001
|
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
|
|
17981
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
18002
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Fd(e, t);
|
|
17982
18003
|
}
|
|
17983
18004
|
}
|
|
17984
|
-
function
|
|
18005
|
+
function Fd(e, t) {
|
|
17985
18006
|
(t == null || t > e.length) && (t = e.length);
|
|
17986
18007
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
17987
18008
|
return r;
|
|
17988
18009
|
}
|
|
17989
|
-
function
|
|
18010
|
+
function Id(e, t) {
|
|
17990
18011
|
for (var n = 0; n < t.length; n++) {
|
|
17991
18012
|
var r = t[n];
|
|
17992
18013
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
|
17993
18014
|
}
|
|
17994
18015
|
}
|
|
17995
|
-
function
|
|
17996
|
-
return t &&
|
|
18016
|
+
function Ld(e, t, n) {
|
|
18017
|
+
return t && Id(e.prototype, t), n && Id(e, n), e;
|
|
17997
18018
|
}
|
|
17998
|
-
var
|
|
18019
|
+
var Rd = function() {
|
|
17999
18020
|
return typeof Symbol == "function";
|
|
18000
|
-
}, Rd = function(e) {
|
|
18001
|
-
return Ld() && !!Symbol[e];
|
|
18002
18021
|
}, zd = function(e) {
|
|
18003
|
-
return Rd(
|
|
18022
|
+
return Rd() && !!Symbol[e];
|
|
18023
|
+
}, Bd = function(e) {
|
|
18024
|
+
return zd(e) ? Symbol[e] : "@@" + e;
|
|
18004
18025
|
};
|
|
18005
|
-
|
|
18006
|
-
var
|
|
18007
|
-
function
|
|
18026
|
+
Rd() && !zd("observable") && (Symbol.observable = Symbol("observable"));
|
|
18027
|
+
var Vd = Bd("iterator"), Hd = Bd("observable"), Ud = Bd("species");
|
|
18028
|
+
function Wd(e, t) {
|
|
18008
18029
|
var n = e[t];
|
|
18009
18030
|
if (n != null) {
|
|
18010
18031
|
if (typeof n != "function") throw TypeError(n + " is not a function");
|
|
18011
18032
|
return n;
|
|
18012
18033
|
}
|
|
18013
18034
|
}
|
|
18014
|
-
function
|
|
18035
|
+
function Gd(e) {
|
|
18015
18036
|
var t = e.constructor;
|
|
18016
|
-
return t !== void 0 && (t = t[
|
|
18037
|
+
return t !== void 0 && (t = t[Ud], t === null && (t = void 0)), t === void 0 ? tf : t;
|
|
18017
18038
|
}
|
|
18018
|
-
function
|
|
18019
|
-
return e instanceof
|
|
18039
|
+
function Kd(e) {
|
|
18040
|
+
return e instanceof tf;
|
|
18020
18041
|
}
|
|
18021
18042
|
function $(e) {
|
|
18022
18043
|
$.log ? $.log(e) : setTimeout(function() {
|
|
18023
18044
|
throw e;
|
|
18024
18045
|
});
|
|
18025
18046
|
}
|
|
18026
|
-
function
|
|
18047
|
+
function qd(e) {
|
|
18027
18048
|
Promise.resolve().then(function() {
|
|
18028
18049
|
try {
|
|
18029
18050
|
e();
|
|
@@ -18032,63 +18053,63 @@ function Kd(e) {
|
|
|
18032
18053
|
}
|
|
18033
18054
|
});
|
|
18034
18055
|
}
|
|
18035
|
-
function
|
|
18056
|
+
function Jd(e) {
|
|
18036
18057
|
var t = e._cleanup;
|
|
18037
18058
|
if (t !== void 0 && (e._cleanup = void 0, t)) try {
|
|
18038
18059
|
if (typeof t == "function") t();
|
|
18039
18060
|
else {
|
|
18040
|
-
var n =
|
|
18061
|
+
var n = Wd(t, "unsubscribe");
|
|
18041
18062
|
n && n.call(t);
|
|
18042
18063
|
}
|
|
18043
18064
|
} catch (e) {
|
|
18044
18065
|
$(e);
|
|
18045
18066
|
}
|
|
18046
18067
|
}
|
|
18047
|
-
function
|
|
18068
|
+
function Yd(e) {
|
|
18048
18069
|
e._observer = void 0, e._queue = void 0, e._state = "closed";
|
|
18049
18070
|
}
|
|
18050
|
-
function
|
|
18071
|
+
function Xd(e) {
|
|
18051
18072
|
var t = e._queue;
|
|
18052
18073
|
if (t) {
|
|
18053
18074
|
e._queue = void 0, e._state = "ready";
|
|
18054
|
-
for (var n = 0; n < t.length && (
|
|
18075
|
+
for (var n = 0; n < t.length && (Zd(e, t[n].type, t[n].value), e._state !== "closed"); ++n);
|
|
18055
18076
|
}
|
|
18056
18077
|
}
|
|
18057
|
-
function
|
|
18078
|
+
function Zd(e, t, n) {
|
|
18058
18079
|
e._state = "running";
|
|
18059
18080
|
var r = e._observer;
|
|
18060
18081
|
try {
|
|
18061
|
-
var i =
|
|
18082
|
+
var i = Wd(r, t);
|
|
18062
18083
|
switch (t) {
|
|
18063
18084
|
case "next":
|
|
18064
18085
|
i && i.call(r, n);
|
|
18065
18086
|
break;
|
|
18066
18087
|
case "error":
|
|
18067
|
-
if (
|
|
18088
|
+
if (Yd(e), i) i.call(r, n);
|
|
18068
18089
|
else throw n;
|
|
18069
18090
|
break;
|
|
18070
|
-
case "complete":
|
|
18091
|
+
case "complete": Yd(e), i && i.call(r);
|
|
18071
18092
|
}
|
|
18072
18093
|
} catch (e) {
|
|
18073
18094
|
$(e);
|
|
18074
18095
|
}
|
|
18075
|
-
e._state === "closed" ?
|
|
18096
|
+
e._state === "closed" ? Jd(e) : e._state === "running" && (e._state = "ready");
|
|
18076
18097
|
}
|
|
18077
|
-
function
|
|
18098
|
+
function Qd(e, t, n) {
|
|
18078
18099
|
e._state !== "closed" && (e._state === "buffering" ? e._queue.push({
|
|
18079
18100
|
type: t,
|
|
18080
18101
|
value: n
|
|
18081
|
-
}) : e._state === "ready" ?
|
|
18102
|
+
}) : e._state === "ready" ? Zd(e, t, n) : (e._state = "buffering", e._queue = [{
|
|
18082
18103
|
type: t,
|
|
18083
18104
|
value: n
|
|
18084
|
-
}],
|
|
18085
|
-
return
|
|
18105
|
+
}], qd(function() {
|
|
18106
|
+
return Xd(e);
|
|
18086
18107
|
})));
|
|
18087
18108
|
}
|
|
18088
|
-
var
|
|
18109
|
+
var $d = /*#__PURE__*/ function() {
|
|
18089
18110
|
function e(e, t) {
|
|
18090
18111
|
this._cleanup = void 0, this._observer = e, this._queue = void 0, this._state = "initializing";
|
|
18091
|
-
var n = new
|
|
18112
|
+
var n = new ef(this);
|
|
18092
18113
|
try {
|
|
18093
18114
|
this._cleanup = t.call(void 0, n);
|
|
18094
18115
|
} catch (e) {
|
|
@@ -18098,31 +18119,31 @@ var Qd = /*#__PURE__*/ function() {
|
|
|
18098
18119
|
}
|
|
18099
18120
|
var t = e.prototype;
|
|
18100
18121
|
return t.unsubscribe = function() {
|
|
18101
|
-
this._state !== "closed" && (
|
|
18102
|
-
},
|
|
18122
|
+
this._state !== "closed" && (Yd(this), Jd(this));
|
|
18123
|
+
}, Ld(e, [{
|
|
18103
18124
|
key: "closed",
|
|
18104
18125
|
get: function() {
|
|
18105
18126
|
return this._state === "closed";
|
|
18106
18127
|
}
|
|
18107
18128
|
}]), e;
|
|
18108
|
-
}(),
|
|
18129
|
+
}(), ef = /*#__PURE__*/ function() {
|
|
18109
18130
|
function e(e) {
|
|
18110
18131
|
this._subscription = e;
|
|
18111
18132
|
}
|
|
18112
18133
|
var t = e.prototype;
|
|
18113
18134
|
return t.next = function(e) {
|
|
18114
|
-
|
|
18135
|
+
Qd(this._subscription, "next", e);
|
|
18115
18136
|
}, t.error = function(e) {
|
|
18116
|
-
|
|
18137
|
+
Qd(this._subscription, "error", e);
|
|
18117
18138
|
}, t.complete = function() {
|
|
18118
|
-
|
|
18119
|
-
},
|
|
18139
|
+
Qd(this._subscription, "complete");
|
|
18140
|
+
}, Ld(e, [{
|
|
18120
18141
|
key: "closed",
|
|
18121
18142
|
get: function() {
|
|
18122
18143
|
return this._subscription._state === "closed";
|
|
18123
18144
|
}
|
|
18124
18145
|
}]), e;
|
|
18125
|
-
}(),
|
|
18146
|
+
}(), tf = /*#__PURE__*/ function() {
|
|
18126
18147
|
function e(t) {
|
|
18127
18148
|
if (!(this instanceof e)) throw TypeError("Observable cannot be called as a function");
|
|
18128
18149
|
if (typeof t != "function") throw TypeError("Observable initializer must be a function");
|
|
@@ -18134,7 +18155,7 @@ var Qd = /*#__PURE__*/ function() {
|
|
|
18134
18155
|
next: e,
|
|
18135
18156
|
error: arguments[1],
|
|
18136
18157
|
complete: arguments[2]
|
|
18137
|
-
}), new
|
|
18158
|
+
}), new $d(e, this._subscriber);
|
|
18138
18159
|
}, t.forEach = function(e) {
|
|
18139
18160
|
var t = this;
|
|
18140
18161
|
return new Promise(function(n, r) {
|
|
@@ -18160,7 +18181,7 @@ var Qd = /*#__PURE__*/ function() {
|
|
|
18160
18181
|
}, t.map = function(e) {
|
|
18161
18182
|
var t = this;
|
|
18162
18183
|
if (typeof e != "function") throw TypeError(e + " is not a function");
|
|
18163
|
-
return new (
|
|
18184
|
+
return new (Gd(this))(function(n) {
|
|
18164
18185
|
return t.subscribe({
|
|
18165
18186
|
next: function(t) {
|
|
18166
18187
|
try {
|
|
@@ -18181,7 +18202,7 @@ var Qd = /*#__PURE__*/ function() {
|
|
|
18181
18202
|
}, t.filter = function(e) {
|
|
18182
18203
|
var t = this;
|
|
18183
18204
|
if (typeof e != "function") throw TypeError(e + " is not a function");
|
|
18184
|
-
return new (
|
|
18205
|
+
return new (Gd(this))(function(n) {
|
|
18185
18206
|
return t.subscribe({
|
|
18186
18207
|
next: function(t) {
|
|
18187
18208
|
try {
|
|
@@ -18202,7 +18223,7 @@ var Qd = /*#__PURE__*/ function() {
|
|
|
18202
18223
|
}, t.reduce = function(e) {
|
|
18203
18224
|
var t = this;
|
|
18204
18225
|
if (typeof e != "function") throw TypeError(e + " is not a function");
|
|
18205
|
-
var n =
|
|
18226
|
+
var n = Gd(this), r = arguments.length > 1, i = !1, a = arguments[1];
|
|
18206
18227
|
return new n(function(n) {
|
|
18207
18228
|
return t.subscribe({
|
|
18208
18229
|
next: function(t) {
|
|
@@ -18224,7 +18245,7 @@ var Qd = /*#__PURE__*/ function() {
|
|
|
18224
18245
|
});
|
|
18225
18246
|
});
|
|
18226
18247
|
}, t.concat = function() {
|
|
18227
|
-
var e = this, t = [...arguments], n =
|
|
18248
|
+
var e = this, t = [...arguments], n = Gd(this);
|
|
18228
18249
|
return new n(function(r) {
|
|
18229
18250
|
var i, a = 0;
|
|
18230
18251
|
function o(e) {
|
|
@@ -18247,7 +18268,7 @@ var Qd = /*#__PURE__*/ function() {
|
|
|
18247
18268
|
}, t.flatMap = function(e) {
|
|
18248
18269
|
var t = this;
|
|
18249
18270
|
if (typeof e != "function") throw TypeError(e + " is not a function");
|
|
18250
|
-
var n =
|
|
18271
|
+
var n = Gd(this);
|
|
18251
18272
|
return new n(function(r) {
|
|
18252
18273
|
var i = [], a = t.subscribe({
|
|
18253
18274
|
next: function(t) {
|
|
@@ -18286,23 +18307,23 @@ var Qd = /*#__PURE__*/ function() {
|
|
|
18286
18307
|
}), a.unsubscribe();
|
|
18287
18308
|
};
|
|
18288
18309
|
});
|
|
18289
|
-
}, t[
|
|
18310
|
+
}, t[Hd] = function() {
|
|
18290
18311
|
return this;
|
|
18291
18312
|
}, e.from = function(t) {
|
|
18292
18313
|
var n = typeof this == "function" ? this : e;
|
|
18293
18314
|
if (t == null) throw TypeError(t + " is not an object");
|
|
18294
|
-
var r =
|
|
18315
|
+
var r = Wd(t, Hd);
|
|
18295
18316
|
if (r) {
|
|
18296
18317
|
var i = r.call(t);
|
|
18297
18318
|
if (Object(i) !== i) throw TypeError(i + " is not an object");
|
|
18298
|
-
return
|
|
18319
|
+
return Kd(i) && i.constructor === n ? i : new n(function(e) {
|
|
18299
18320
|
return i.subscribe(e);
|
|
18300
18321
|
});
|
|
18301
18322
|
}
|
|
18302
|
-
if (
|
|
18303
|
-
|
|
18323
|
+
if (zd("iterator") && (r = Wd(t, Vd), r)) return new n(function(e) {
|
|
18324
|
+
qd(function() {
|
|
18304
18325
|
if (!e.closed) {
|
|
18305
|
-
for (var n =
|
|
18326
|
+
for (var n = Nd(r.call(t)), i; !(i = n()).done;) {
|
|
18306
18327
|
var a = i.value;
|
|
18307
18328
|
if (e.next(a), e.closed) return;
|
|
18308
18329
|
}
|
|
@@ -18311,7 +18332,7 @@ var Qd = /*#__PURE__*/ function() {
|
|
|
18311
18332
|
});
|
|
18312
18333
|
});
|
|
18313
18334
|
if (Array.isArray(t)) return new n(function(e) {
|
|
18314
|
-
|
|
18335
|
+
qd(function() {
|
|
18315
18336
|
if (!e.closed) {
|
|
18316
18337
|
for (var n = 0; n < t.length; ++n) if (e.next(t[n]), e.closed) return;
|
|
18317
18338
|
e.complete();
|
|
@@ -18322,37 +18343,37 @@ var Qd = /*#__PURE__*/ function() {
|
|
|
18322
18343
|
}, e.of = function() {
|
|
18323
18344
|
var t = [...arguments];
|
|
18324
18345
|
return new (typeof this == "function" ? this : e)(function(e) {
|
|
18325
|
-
|
|
18346
|
+
qd(function() {
|
|
18326
18347
|
if (!e.closed) {
|
|
18327
18348
|
for (var n = 0; n < t.length; ++n) if (e.next(t[n]), e.closed) return;
|
|
18328
18349
|
e.complete();
|
|
18329
18350
|
}
|
|
18330
18351
|
});
|
|
18331
18352
|
});
|
|
18332
|
-
},
|
|
18333
|
-
key:
|
|
18353
|
+
}, Ld(e, null, [{
|
|
18354
|
+
key: Ud,
|
|
18334
18355
|
get: function() {
|
|
18335
18356
|
return this;
|
|
18336
18357
|
}
|
|
18337
18358
|
}]), e;
|
|
18338
18359
|
}();
|
|
18339
|
-
|
|
18360
|
+
Rd() && Object.defineProperty(tf, Symbol("extensions"), {
|
|
18340
18361
|
value: {
|
|
18341
|
-
symbol:
|
|
18362
|
+
symbol: Hd,
|
|
18342
18363
|
hostReportError: $
|
|
18343
18364
|
},
|
|
18344
18365
|
configurable: !0
|
|
18345
18366
|
});
|
|
18346
18367
|
//#endregion
|
|
18347
18368
|
//#region src/elements/lib/promise-to-observable.ts
|
|
18348
|
-
function
|
|
18369
|
+
function nf(e) {
|
|
18349
18370
|
return typeof e == "object" && !!e && "subscribe" in e;
|
|
18350
18371
|
}
|
|
18351
|
-
function
|
|
18372
|
+
function rf(e) {
|
|
18352
18373
|
return typeof e == "object" && !!e && "then" in e;
|
|
18353
18374
|
}
|
|
18354
|
-
function
|
|
18355
|
-
return new
|
|
18375
|
+
function af(e) {
|
|
18376
|
+
return new tf((t) => (t.next({
|
|
18356
18377
|
loading: !0,
|
|
18357
18378
|
error: null,
|
|
18358
18379
|
data: null
|
|
@@ -18372,7 +18393,7 @@ function rf(e) {
|
|
|
18372
18393
|
}
|
|
18373
18394
|
//#endregion
|
|
18374
18395
|
//#region src/elements/lib/objectPaths.ts
|
|
18375
|
-
function
|
|
18396
|
+
function of(e, t) {
|
|
18376
18397
|
if (!e || typeof e != "object") return;
|
|
18377
18398
|
let n = t.split("."), r = e;
|
|
18378
18399
|
for (let e of n) if (r && typeof r == "object" && e in r) r = r[e];
|
|
@@ -18381,7 +18402,7 @@ function af(e, t) {
|
|
|
18381
18402
|
}
|
|
18382
18403
|
//#endregion
|
|
18383
18404
|
//#region src/blocks/datasource/types/groupId.typings.ts
|
|
18384
|
-
var
|
|
18405
|
+
var sf = Symbol("groupId"), cf = (e, t) => {
|
|
18385
18406
|
let n = /* @__PURE__ */ new Map();
|
|
18386
18407
|
for (let r of e) {
|
|
18387
18408
|
let e = String(r[t]);
|
|
@@ -18391,27 +18412,27 @@ var of = Symbol("groupId"), sf = (e, t) => {
|
|
|
18391
18412
|
};
|
|
18392
18413
|
//#endregion
|
|
18393
18414
|
//#region src/blocks/datasource/useData.ts
|
|
18394
|
-
function
|
|
18415
|
+
function lf(e, t) {
|
|
18395
18416
|
return e === t ? void 0 : e?.page;
|
|
18396
18417
|
}
|
|
18397
|
-
function
|
|
18418
|
+
function uf({ paginationType: e, sameQuery: t, perPage: n, previousPerPage: r, currentPage: i }) {
|
|
18398
18419
|
return e === "pages" && t && n !== r ? i : void 0;
|
|
18399
18420
|
}
|
|
18400
|
-
var
|
|
18421
|
+
var df = (e, t, n) => {
|
|
18401
18422
|
let r = n.current;
|
|
18402
18423
|
return r.field !== t && (r.field = t, r.entries = /* @__PURE__ */ new WeakMap()), e.map((e) => {
|
|
18403
18424
|
let n = r.entries.get(e);
|
|
18404
18425
|
if (n) return n;
|
|
18405
18426
|
let i = {
|
|
18406
18427
|
...e,
|
|
18407
|
-
[
|
|
18428
|
+
[sf]: of(e, t) || void 0
|
|
18408
18429
|
};
|
|
18409
18430
|
return r.entries.set(e, i), i;
|
|
18410
18431
|
});
|
|
18411
|
-
},
|
|
18432
|
+
}, ff = "", pf = ({ records: e, parentKey: t, fields: n, groupByConfig: r, filters: i }) => {
|
|
18412
18433
|
let [a, ...o] = n, s = r[a], c = [], l = /* @__PURE__ */ new Map();
|
|
18413
18434
|
for (let t of e) {
|
|
18414
|
-
let e =
|
|
18435
|
+
let e = of(t, a);
|
|
18415
18436
|
if (!e) {
|
|
18416
18437
|
c.push(t);
|
|
18417
18438
|
continue;
|
|
@@ -18421,7 +18442,7 @@ var uf = (e, t, n) => {
|
|
|
18421
18442
|
}
|
|
18422
18443
|
return {
|
|
18423
18444
|
groups: Array.from(l.entries()).map(([e, n]) => {
|
|
18424
|
-
let a = `${t}${e}`, c = o.length > 0 ?
|
|
18445
|
+
let a = `${t}${e}`, c = o.length > 0 ? pf({
|
|
18425
18446
|
records: n,
|
|
18426
18447
|
parentKey: a,
|
|
18427
18448
|
fields: o,
|
|
@@ -18442,7 +18463,7 @@ var uf = (e, t, n) => {
|
|
|
18442
18463
|
own: c
|
|
18443
18464
|
};
|
|
18444
18465
|
};
|
|
18445
|
-
function
|
|
18466
|
+
function mf() {
|
|
18446
18467
|
let [e, t] = L(!0), [n, r] = L([]), [i, a] = L(null);
|
|
18447
18468
|
return {
|
|
18448
18469
|
isInitialLoading: e,
|
|
@@ -18453,16 +18474,16 @@ function pf() {
|
|
|
18453
18474
|
setError: a
|
|
18454
18475
|
};
|
|
18455
18476
|
}
|
|
18456
|
-
function
|
|
18477
|
+
function hf() {
|
|
18457
18478
|
let [e, t] = L(null);
|
|
18458
18479
|
return {
|
|
18459
18480
|
paginationInfo: e,
|
|
18460
18481
|
setPaginationInfo: t
|
|
18461
18482
|
};
|
|
18462
18483
|
}
|
|
18463
|
-
var
|
|
18464
|
-
function
|
|
18465
|
-
let { dataAdapter: l, currentFilters: u, currentSortings: d, search: f, currentSearch: p, setCurrentSearch: m, isLoading: h, setIsLoading: g, currentGrouping: _, grouping: v, idProvider: y =
|
|
18484
|
+
var gf = (e) => e, _f = (e, t) => "id" in e ? `${e.id}` : t || JSON.stringify(e);
|
|
18485
|
+
function vf(e, { filters: t, enabled: n = !0, pageRequest: r, onPageRequested: i, onError: a, fetchParamsProvider: o = gf, onResponse: s } = {}, c = []) {
|
|
18486
|
+
let { dataAdapter: l, currentFilters: u, currentSortings: d, search: f, currentSearch: p, setCurrentSearch: m, isLoading: h, setIsLoading: g, currentGrouping: _, grouping: v, idProvider: y = _f, itemPreFilter: b, currentPage: x, onPaginationChange: ee } = e, S = I(), { isInitialLoading: te, setIsInitialLoading: C, data: w, setData: T, error: E, setError: D } = mf(), [ne, O] = L(0), { paginationInfo: k, setPaginationInfo: A } = hf();
|
|
18466
18487
|
N(() => {
|
|
18467
18488
|
b && T((e) => {
|
|
18468
18489
|
let t = e.length, n = e.filter(b), r = t - n.length;
|
|
@@ -18540,7 +18561,7 @@ function _f(e, { filters: t, enabled: n = !0, pageRequest: r, onPageRequested: i
|
|
|
18540
18561
|
}), pe = F(() => {
|
|
18541
18562
|
let e = _?.field, t = v?.groupBy;
|
|
18542
18563
|
if (e && t && t[e]) {
|
|
18543
|
-
let n =
|
|
18564
|
+
let n = df(w, e, fe), r = n.filter((e) => e[sf] === void 0), i = cf(n.filter((e) => e[sf] !== void 0), sf), a = t[e], o = (_?.thenBy ?? []).map((e) => String(e.field)).filter((e) => !!t[e]);
|
|
18544
18565
|
return {
|
|
18545
18566
|
type: "grouped",
|
|
18546
18567
|
records: n,
|
|
@@ -18557,7 +18578,7 @@ function _f(e, { filters: t, enabled: n = !0, pageRequest: r, onPageRequested: i
|
|
|
18557
18578
|
records: n,
|
|
18558
18579
|
...(() => {
|
|
18559
18580
|
if (!o.length) return {};
|
|
18560
|
-
let r =
|
|
18581
|
+
let r = pf({
|
|
18561
18582
|
records: n,
|
|
18562
18583
|
parentKey: e,
|
|
18563
18584
|
fields: o,
|
|
@@ -18643,7 +18664,7 @@ function _f(e, { filters: t, enabled: n = !0, pageRequest: r, onPageRequested: i
|
|
|
18643
18664
|
J(f, r, void 0, c);
|
|
18644
18665
|
return;
|
|
18645
18666
|
}
|
|
18646
|
-
let p = ("subscribe" in f ? f :
|
|
18667
|
+
let p = ("subscribe" in f ? f : af(f)).subscribe({
|
|
18647
18668
|
next: (e) => {
|
|
18648
18669
|
e.data ? J(e.data, r, e.loading, c) : e.loading ? g(!0) : e.error && Y(e.error);
|
|
18649
18670
|
},
|
|
@@ -18665,7 +18686,7 @@ function _f(e, { filters: t, enabled: n = !0, pageRequest: r, onPageRequested: i
|
|
|
18665
18686
|
g,
|
|
18666
18687
|
...c
|
|
18667
18688
|
]), me = j((e) => {
|
|
18668
|
-
|
|
18689
|
+
yf(k) && (G.current?.(e, "navigation"), g(!0), X({
|
|
18669
18690
|
filters: K,
|
|
18670
18691
|
currentPage: e,
|
|
18671
18692
|
search: q
|
|
@@ -18680,7 +18701,7 @@ function _f(e, { filters: t, enabled: n = !0, pageRequest: r, onPageRequested: i
|
|
|
18680
18701
|
]), he = j(() => {
|
|
18681
18702
|
let e = M.current;
|
|
18682
18703
|
if (!(!e || h || z)) {
|
|
18683
|
-
if (!
|
|
18704
|
+
if (!bf(e)) console.warn("loadMore is only applicable for infinite-scroll pagination type");
|
|
18684
18705
|
else if (e.hasMore) {
|
|
18685
18706
|
let t = e.cursor;
|
|
18686
18707
|
B(!0), g(!0), V.current = !0, X({
|
|
@@ -18709,8 +18730,8 @@ function _f(e, { filters: t, enabled: n = !0, pageRequest: r, onPageRequested: i
|
|
|
18709
18730
|
grouping: _,
|
|
18710
18731
|
search: q,
|
|
18711
18732
|
paginationType: l.paginationType
|
|
18712
|
-
}), i = n === se.current && c.length === U.current.length && c.every((e, t) => Object.is(e, U.current[t])), a =
|
|
18713
|
-
if (!h && W.current === 1 && a === void 0 && l.paginationType === "pages" && e !== void 0 && i && H.current !== void 0 && e < H.current &&
|
|
18733
|
+
}), i = n === se.current && c.length === U.current.length && c.every((e, t) => Object.is(e, U.current[t])), a = lf(r, le.current);
|
|
18734
|
+
if (!h && W.current === 1 && a === void 0 && l.paginationType === "pages" && e !== void 0 && i && H.current !== void 0 && e < H.current && yf(t) && t.currentPage === 1 && oe.current.length >= e) {
|
|
18714
18735
|
H.current = e, T((t) => t.slice(0, e)), A((t) => t && t.type === "pages" ? {
|
|
18715
18736
|
...t,
|
|
18716
18737
|
perPage: e,
|
|
@@ -18718,7 +18739,7 @@ function _f(e, { filters: t, enabled: n = !0, pageRequest: r, onPageRequested: i
|
|
|
18718
18739
|
} : t);
|
|
18719
18740
|
return;
|
|
18720
18741
|
}
|
|
18721
|
-
let o =
|
|
18742
|
+
let o = uf({
|
|
18722
18743
|
paginationType: l.paginationType,
|
|
18723
18744
|
sameQuery: i,
|
|
18724
18745
|
perPage: e,
|
|
@@ -18763,11 +18784,11 @@ function _f(e, { filters: t, enabled: n = !0, pageRequest: r, onPageRequested: i
|
|
|
18763
18784
|
committedQuery: ie
|
|
18764
18785
|
};
|
|
18765
18786
|
}
|
|
18766
|
-
function
|
|
18787
|
+
function yf(e) {
|
|
18767
18788
|
return e !== null && e.type === "pages";
|
|
18768
18789
|
}
|
|
18769
|
-
function
|
|
18790
|
+
function bf(e) {
|
|
18770
18791
|
return e !== null && e.type === "infinite-scroll";
|
|
18771
18792
|
}
|
|
18772
18793
|
//#endregion
|
|
18773
|
-
export { Ot as A, oe as B, yn as C, Qt as D, en as E, ce as F, ae as H, W as I, U as L, Me as M, Oe as N, It as O, le as P, H as R, wn as S, ln as T, ie as U, V, sd as _,
|
|
18794
|
+
export { Ot as A, oe as B, yn as C, Qt as D, en as E, ce as F, ae as H, W as I, U as L, Me as M, Oe as N, It as O, le as P, H as R, wn as S, ln as T, ie as U, V, sd as _, sf as a, Pn as b, af as c, wd as d, bd as f, cd as g, ud as h, vf as i, Fe as j, Nt as k, Md as l, fd as m, bf as n, nf as o, yd as p, yf as r, rf as s, ff as t, Td as u, id as v, Q as w, kn as x, td as y, se as z };
|