@firecms/core 3.0.0-canary.41 → 3.0.0-canary.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +725 -724
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +5 -5
- package/dist/index.umd.js.map +1 -1
- package/package.json +4 -4
- package/src/components/HomePage/DefaultHomePage.tsx +1 -1
- package/src/components/VirtualTable/VirtualTable.tsx +15 -17
- package/src/hooks/useBuildNavigationController.tsx +4 -4
package/dist/index.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as n, Fragment as
|
|
1
|
+
import { jsx as n, Fragment as Y, jsxs as w } from "react/jsx-runtime";
|
|
2
2
|
import * as At from "react";
|
|
3
|
-
import I, { useRef as se, useEffect as
|
|
3
|
+
import I, { useRef as se, useEffect as G, useContext as Ge, useCallback as x, useMemo as he, useState as F, createElement as Ko, createRef as ea, createContext as ta, forwardRef as ra, useLayoutEffect as Tr, useDeferredValue as ia } from "react";
|
|
4
4
|
import { SnackbarProvider as na, useSnackbar as oa } from "notistack";
|
|
5
5
|
import Ni from "object-hash";
|
|
6
|
-
import { getIn as
|
|
7
|
-
import { getColorSchemeForSeed as fn, CHIP_COLORS as aa, CircleIcon as hn, FunctionsIcon as sa, iconKeys as Xr, coolIconKeys as Mr, Icon as Kr, Tooltip as ve, ErrorIcon as gn, Typography as L, IconButton as ce, ContentCopyIcon as ei, OpenInNewIcon as
|
|
8
|
-
import { Link as
|
|
6
|
+
import { getIn as ir, Field as un, useFormex as Zr, useCreateFormex as mn, Formex as pn, setIn as Or } from "@firecms/formex";
|
|
7
|
+
import { getColorSchemeForSeed as fn, CHIP_COLORS as aa, CircleIcon as hn, FunctionsIcon as sa, iconKeys as Xr, coolIconKeys as Mr, Icon as Kr, Tooltip as ve, ErrorIcon as gn, Typography as L, IconButton as ce, ContentCopyIcon as ei, OpenInNewIcon as dr, DescriptionIcon as la, Skeleton as Ve, Chip as ti, cn as X, defaultBorderMixin as Ee, KeyboardTabIcon as ri, Checkbox as Vt, Markdown as ii, TextareaAutosize as ca, MultiSelect as An, MultiSelectItem as bn, Select as et, SelectItem as tt, BooleanSwitch as da, DateTimeField as Gt, paperMixin as ur, ErrorOutlineIcon as ua, EditIcon as ma, Button as ge, RemoveCircleIcon as pa, Menu as kt, MoreVertIcon as yn, MenuItem as Pe, CircularProgress as jt, SearchBar as ni, Badge as Fi, ArrowUpwardIcon as xr, Popover as oi, FilterListIcon as fa, AssignmentIcon as ha, CenteredView as Xt, Label as ai, TextField as bt, ClearIcon as Qt, BooleanSwitchWithLabel as mr, useOutsideAlerter as wn, DialogActions as xt, AddIcon as st, ExpandablePanel as lt, Card as ga, ArrowForwardIcon as vn, cardMixin as Aa, cardClickableMixin as ba, focusedMixin as zr, StarIcon as _n, StarBorderIcon as kn, Collapse as xn, Container as ya, DeleteIcon as Vr, InfoIcon as wa, CloseIcon as En, fieldBackgroundMixin as nr, RemoveIcon as si, fieldBackgroundDisabledMixin as Bn, fieldBackgroundHoverMixin as li, ArrowDropDownIcon as Cn, useInjectStyles as va, Dialog as ci, DialogContent as di, FileCopyIcon as _a, ContentPasteIcon as ka, Alert as xa, FilterListOffIcon as Ea, SearchIcon as Ba, LoadingButton as Ca, Avatar as Pi, DarkModeIcon as Sa, LightModeIcon as Ia, LogoutIcon as Na, HandleIcon as Fa, debounce as Pa, Tab as Er, Tabs as Qa, Sheet as Sn, useLocaleConfig as Ra, MenuIcon as Qi, ChevronLeftIcon as Da, ShortTextIcon as Ta, SubjectIcon as Oa, FormatQuoteIcon as Ma, HttpIcon as za, EmailIcon as Va, FlagIcon as Ga, ListIcon as ja, ListAltIcon as Ya, NumbersIcon as qa, FormatListNumberedIcon as Ri, UploadFileIcon as Ua, DriveFolderUploadIcon as La, LinkIcon as $a, AddLinkIcon as Wa, ScheduleIcon as Ja, BallotIcon as Di, RepeatIcon as Ti, ViewStreamIcon as Ha } from "@firecms/ui";
|
|
8
|
+
import { Link as pr, useNavigate as Yt, useLocation as fr, UNSAFE_NavigationContext as Za, NavLink as Xa, Route as Kt, Routes as Ka } from "react-router-dom";
|
|
9
9
|
import * as In from "js-search";
|
|
10
10
|
import Z from "react-fast-compare";
|
|
11
11
|
import { format as es } from "date-fns";
|
|
@@ -16,7 +16,7 @@ import { DragDropContext as Pn, Droppable as Qn, Draggable as Rn } from "@hello-
|
|
|
16
16
|
import rs from "react-image-file-resizer";
|
|
17
17
|
import { FixedSizeList as is } from "react-window";
|
|
18
18
|
import ns from "markdown-it";
|
|
19
|
-
import
|
|
19
|
+
import er, { Plugins as Br } from "react-markdown-editor-lite";
|
|
20
20
|
import * as Oe from "yup";
|
|
21
21
|
import * as os from "@radix-ui/react-portal";
|
|
22
22
|
const lu = ({ children: e }) => /* @__PURE__ */ n(
|
|
@@ -207,17 +207,17 @@ function ds(e, t) {
|
|
|
207
207
|
o in a && (r(a[o]) && r(t[o]) ? a[o] = ds(a[o], t[o]) : a[o] === t[o] && (i(a) ? a.splice(o, 1) : delete a[o]));
|
|
208
208
|
}), a;
|
|
209
209
|
}
|
|
210
|
-
const Rt = "type",
|
|
210
|
+
const Rt = "type", or = "value";
|
|
211
211
|
function qt(e) {
|
|
212
212
|
return e.readOnly || e.dataType === "date" && e.autoValue ? !0 : e.dataType === "reference" ? !e.path : !1;
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function hr(e) {
|
|
215
215
|
return typeof e.disabled == "object" && !!e.disabled.hidden;
|
|
216
216
|
}
|
|
217
217
|
function Qe(e) {
|
|
218
218
|
return typeof e == "function";
|
|
219
219
|
}
|
|
220
|
-
function
|
|
220
|
+
function ar(e) {
|
|
221
221
|
return e ? Object.entries(e).map(([t, r]) => {
|
|
222
222
|
const i = hi(r);
|
|
223
223
|
return i === void 0 ? {} : { [t]: i };
|
|
@@ -226,7 +226,7 @@ function or(e) {
|
|
|
226
226
|
function hi(e) {
|
|
227
227
|
if (!Qe(e))
|
|
228
228
|
if (e.dataType === "map" && e.properties) {
|
|
229
|
-
const t =
|
|
229
|
+
const t = ar(e.properties);
|
|
230
230
|
return Object.keys(t).length === 0 ? void 0 : t;
|
|
231
231
|
} else
|
|
232
232
|
return e.defaultValue ? e.defaultValue : zn(e.dataType);
|
|
@@ -279,7 +279,7 @@ function Gr(e, t, r) {
|
|
|
279
279
|
if (t.of && Array.isArray(e))
|
|
280
280
|
i = e.map((a) => Gr(a, t.of, r));
|
|
281
281
|
else if (t.oneOf && Array.isArray(e)) {
|
|
282
|
-
const a = t.oneOf?.typeField ?? Rt, o = t.oneOf?.valueField ??
|
|
282
|
+
const a = t.oneOf?.typeField ?? Rt, o = t.oneOf?.valueField ?? or;
|
|
283
283
|
i = e.map((s) => {
|
|
284
284
|
if (s === null)
|
|
285
285
|
return null;
|
|
@@ -337,8 +337,8 @@ const je = ({
|
|
|
337
337
|
userConfigPersistence: o,
|
|
338
338
|
fields: s
|
|
339
339
|
}) => {
|
|
340
|
-
const c = o?.getCollectionConfig(t), l = Je(c, "properties"), d =
|
|
341
|
-
const y = u ?
|
|
340
|
+
const c = o?.getCollectionConfig(t), l = Je(c, "properties"), d = ar(e.properties), u = i ?? d, p = a ?? i ?? d, m = Object.entries(e.properties).map(([h, A]) => {
|
|
341
|
+
const y = u ? ir(u, h) : void 0, b = ze({
|
|
342
342
|
propertyKey: h,
|
|
343
343
|
propertyOrBuilder: A,
|
|
344
344
|
values: u,
|
|
@@ -706,12 +706,12 @@ function Re(e, t = "small", r = {}) {
|
|
|
706
706
|
if (Qe(e))
|
|
707
707
|
return /* @__PURE__ */ n(sa, { size: t });
|
|
708
708
|
{
|
|
709
|
-
const i =
|
|
709
|
+
const i = wr(e, r);
|
|
710
710
|
return Yr(i, t);
|
|
711
711
|
}
|
|
712
712
|
}
|
|
713
713
|
function ku(e, t) {
|
|
714
|
-
return Qe(e) ? "#888" :
|
|
714
|
+
return Qe(e) ? "#888" : wr(e, t)?.color ?? "#666";
|
|
715
715
|
}
|
|
716
716
|
function ht(e, t) {
|
|
717
717
|
if (typeof e == "object") {
|
|
@@ -753,16 +753,16 @@ function _s(e, t) {
|
|
|
753
753
|
function Eu(e) {
|
|
754
754
|
return e.propertiesOrder ? e.propertiesOrder : [...Object.keys(e.properties), ...(e.additionalFields ?? []).map((t) => t.key)];
|
|
755
755
|
}
|
|
756
|
-
const
|
|
756
|
+
const gr = {
|
|
757
757
|
read: !0,
|
|
758
758
|
edit: !0,
|
|
759
759
|
create: !0,
|
|
760
760
|
delete: !0
|
|
761
761
|
};
|
|
762
|
-
function
|
|
762
|
+
function Ar(e, t, r, i) {
|
|
763
763
|
const a = e.permissions;
|
|
764
764
|
if (a === void 0)
|
|
765
|
-
return
|
|
765
|
+
return gr;
|
|
766
766
|
if (typeof a == "object")
|
|
767
767
|
return a;
|
|
768
768
|
if (typeof a == "function") {
|
|
@@ -779,13 +779,13 @@ function gr(e, t, r, i) {
|
|
|
779
779
|
throw console.error("Permissions:", a), Error("New type of permission added and not mapped");
|
|
780
780
|
}
|
|
781
781
|
function Wn(e, t, r, i) {
|
|
782
|
-
return
|
|
782
|
+
return Ar(e, t, r, i)?.edit ?? gr.edit;
|
|
783
783
|
}
|
|
784
784
|
function Tt(e, t, r, i) {
|
|
785
|
-
return
|
|
785
|
+
return Ar(e, t, r, i)?.create ?? gr.create;
|
|
786
786
|
}
|
|
787
787
|
function yi(e, t, r, i) {
|
|
788
|
-
return
|
|
788
|
+
return Ar(e, t, r, i)?.delete ?? gr.delete;
|
|
789
789
|
}
|
|
790
790
|
const Jn = {
|
|
791
791
|
abc: "alphabet character font letter symbol text type",
|
|
@@ -2750,23 +2750,23 @@ function ks(e) {
|
|
|
2750
2750
|
return Math.abs(t);
|
|
2751
2751
|
}
|
|
2752
2752
|
function xs(e, t) {
|
|
2753
|
-
if (e && (e = jr(e), e in
|
|
2754
|
-
return e in
|
|
2753
|
+
if (e && (e = jr(e), e in sr))
|
|
2754
|
+
return e in sr ? /* @__PURE__ */ n(Kr, { iconKey: e, size: "medium", className: t }) : void 0;
|
|
2755
2755
|
}
|
|
2756
2756
|
const qr = I.memo(
|
|
2757
2757
|
function({ collectionOrView: t, className: r }) {
|
|
2758
2758
|
if (!t)
|
|
2759
|
-
return /* @__PURE__ */ n(
|
|
2759
|
+
return /* @__PURE__ */ n(Y, {});
|
|
2760
2760
|
const i = xs(t.icon, r);
|
|
2761
2761
|
if (t?.icon && i)
|
|
2762
2762
|
return i;
|
|
2763
2763
|
let a = jr(("singularName" in t ? t.singularName : void 0) ?? t.name), o;
|
|
2764
|
-
a in
|
|
2764
|
+
a in sr && (o = a), o || (a = jr(t.path), a in sr && (o = a));
|
|
2765
2765
|
const s = Mr.length;
|
|
2766
2766
|
return o || (o = Mr[ks(t.path) % s]), /* @__PURE__ */ n(Kr, { iconKey: o, size: "medium", className: r });
|
|
2767
2767
|
},
|
|
2768
2768
|
(e, t) => Z(e.collectionOrView?.icon, t.collectionOrView?.icon)
|
|
2769
|
-
),
|
|
2769
|
+
), sr = Xr.reduce((e, t) => (e[t] = t, e), {});
|
|
2770
2770
|
function Bu(e, t) {
|
|
2771
2771
|
if (t !== void 0 && t === 1)
|
|
2772
2772
|
return e;
|
|
@@ -2934,7 +2934,7 @@ function Hn(e, t) {
|
|
|
2934
2934
|
return e.titleProperty;
|
|
2935
2935
|
for (const r in e.properties) {
|
|
2936
2936
|
const i = e.properties[r];
|
|
2937
|
-
if (!Qe(i) &&
|
|
2937
|
+
if (!Qe(i) && wr(i, t)?.key === "text_field")
|
|
2938
2938
|
return r;
|
|
2939
2939
|
}
|
|
2940
2940
|
}
|
|
@@ -3095,14 +3095,14 @@ function Xn(e, t, r = "", i = 0, a = 10) {
|
|
|
3095
3095
|
}
|
|
3096
3096
|
function Ou(e, t = 3) {
|
|
3097
3097
|
const r = se(e);
|
|
3098
|
-
|
|
3098
|
+
G(() => {
|
|
3099
3099
|
console.log("Changed props:"), Xn(e, r.current, "", 0, t), r.current = e;
|
|
3100
3100
|
});
|
|
3101
3101
|
}
|
|
3102
3102
|
const Ps = "100vw", Qs = "55vw", Yi = "768px", Kn = I.createContext({}), Ze = (e) => {
|
|
3103
3103
|
const t = Ge(Kn);
|
|
3104
3104
|
return e?.overrides?.dataSource ? e?.overrides.dataSource : t;
|
|
3105
|
-
}, eo = I.createContext({}), _e = () => Ge(eo), ut = () => Ge(Dn), to = I.createContext({}),
|
|
3105
|
+
}, eo = I.createContext({}), _e = () => Ge(eo), ut = () => Ge(Dn), to = I.createContext({}), br = () => Ge(to), ro = I.createContext({}), mt = () => Ge(ro), io = I.createContext({}), Ut = (e) => {
|
|
3106
3106
|
const t = Ge(io);
|
|
3107
3107
|
return e?.overrides?.storageSource ? e.overrides.storageSource : t;
|
|
3108
3108
|
}, pt = () => {
|
|
@@ -3159,7 +3159,7 @@ const Ps = "100vw", Qs = "55vw", Yi = "768px", Kn = I.createContext({}), Ze = (e
|
|
|
3159
3159
|
))
|
|
3160
3160
|
] });
|
|
3161
3161
|
}, Ds = () => Ge(oo), ao = I.createContext({}), me = () => Ge(ao), so = I.createContext({}), Bt = () => Ge(so), Be = () => {
|
|
3162
|
-
const e = ut(), t =
|
|
3162
|
+
const e = ut(), t = br(), r = mt(), i = _e(), a = Ze(), o = Ut(), s = pt(), c = Et(), l = Ds(), d = me(), u = Bt(), p = I.useRef({
|
|
3163
3163
|
authController: e,
|
|
3164
3164
|
sideDialogsController: t,
|
|
3165
3165
|
sideEntityController: r,
|
|
@@ -3172,7 +3172,7 @@ const Ps = "100vw", Qs = "55vw", Yi = "768px", Kn = I.createContext({}), Ze = (e
|
|
|
3172
3172
|
customizationController: d,
|
|
3173
3173
|
analyticsController: u
|
|
3174
3174
|
});
|
|
3175
|
-
return
|
|
3175
|
+
return G(() => {
|
|
3176
3176
|
p.current = {
|
|
3177
3177
|
authController: e,
|
|
3178
3178
|
sideDialogsController: t,
|
|
@@ -3197,7 +3197,7 @@ function Mu({
|
|
|
3197
3197
|
searchString: o
|
|
3198
3198
|
}) {
|
|
3199
3199
|
const s = Ze(t), l = _e().resolveAliasesFrom(e), d = i ? i[0] : void 0, u = i ? i[1] : void 0, p = Be(), [m, f] = F([]), [g, h] = F(!1), [A, y] = F(), [b, v] = F(!1);
|
|
3200
|
-
return
|
|
3200
|
+
return G(() => {
|
|
3201
3201
|
h(!0);
|
|
3202
3202
|
const E = async (B) => {
|
|
3203
3203
|
if (t.callbacks?.onFetch)
|
|
@@ -3257,7 +3257,7 @@ function lo({
|
|
|
3257
3257
|
useCache: i = !1
|
|
3258
3258
|
}) {
|
|
3259
3259
|
const a = Ze(r), s = _e().resolveAliasesFrom(e), c = Be(), [l, d] = F(), [u, p] = F(!0), [m, f] = F();
|
|
3260
|
-
return
|
|
3260
|
+
return G(() => {
|
|
3261
3261
|
p(!0);
|
|
3262
3262
|
const g = async (A) => {
|
|
3263
3263
|
if (r.callbacks?.onFetch && A)
|
|
@@ -3466,7 +3466,7 @@ function zu({
|
|
|
3466
3466
|
path: e
|
|
3467
3467
|
}) {
|
|
3468
3468
|
const t = Be(), [r, i] = F(), [a, o] = F(!1), [s, c] = F();
|
|
3469
|
-
return
|
|
3469
|
+
return G(() => {
|
|
3470
3470
|
t.navigation && (o(!0), c(void 0), Os({ path: e, context: t }).then((d) => {
|
|
3471
3471
|
i(d);
|
|
3472
3472
|
}).catch((d) => c(d)).finally(() => o(!1)));
|
|
@@ -3474,7 +3474,7 @@ function zu({
|
|
|
3474
3474
|
}
|
|
3475
3475
|
const uo = () => Ge(ui), Ms = (e) => {
|
|
3476
3476
|
const { onSuccess: t, onError: r, disableClipboardAPI: i = !1, copiedDuration: a } = e || {}, o = se(null), [s, c] = F(!1), [l, d] = F("");
|
|
3477
|
-
|
|
3477
|
+
G(() => {
|
|
3478
3478
|
a && setTimeout(() => c(!1), a);
|
|
3479
3479
|
}, [s]);
|
|
3480
3480
|
const u = () => navigator.clipboard !== void 0, p = x((b) => {
|
|
@@ -3516,8 +3516,8 @@ const uo = () => Ge(ui), Ms = (e) => {
|
|
|
3516
3516
|
"3xl": 1920
|
|
3517
3517
|
};
|
|
3518
3518
|
let Ot = mo("lg");
|
|
3519
|
-
const
|
|
3520
|
-
|
|
3519
|
+
const tr = [], Vs = () => {
|
|
3520
|
+
tr.forEach((e) => e(Ot));
|
|
3521
3521
|
};
|
|
3522
3522
|
typeof window < "u" && window.addEventListener("resize", () => {
|
|
3523
3523
|
const e = mo("lg");
|
|
@@ -3525,13 +3525,13 @@ typeof window < "u" && window.addEventListener("resize", () => {
|
|
|
3525
3525
|
});
|
|
3526
3526
|
const We = () => {
|
|
3527
3527
|
const [e, t] = F(Ot);
|
|
3528
|
-
return
|
|
3528
|
+
return G(() => {
|
|
3529
3529
|
const r = (i) => {
|
|
3530
3530
|
t(i);
|
|
3531
3531
|
};
|
|
3532
|
-
return
|
|
3533
|
-
const i =
|
|
3534
|
-
i > -1 &&
|
|
3532
|
+
return tr.push(r), t(Ot), () => {
|
|
3533
|
+
const i = tr.indexOf(r);
|
|
3534
|
+
i > -1 && tr.splice(i, 1);
|
|
3535
3535
|
};
|
|
3536
3536
|
}, []), e;
|
|
3537
3537
|
};
|
|
@@ -3651,7 +3651,7 @@ function qs({
|
|
|
3651
3651
|
}
|
|
3652
3652
|
}
|
|
3653
3653
|
),
|
|
3654
|
-
r && /* @__PURE__ */ w(
|
|
3654
|
+
r && /* @__PURE__ */ w(Y, { children: [
|
|
3655
3655
|
navigator && /* @__PURE__ */ n(ve, { title: "Copy url to clipboard", children: /* @__PURE__ */ n(
|
|
3656
3656
|
"div",
|
|
3657
3657
|
{
|
|
@@ -3689,7 +3689,7 @@ function qs({
|
|
|
3689
3689
|
size: "small",
|
|
3690
3690
|
onClick: (s) => s.stopPropagation(),
|
|
3691
3691
|
children: /* @__PURE__ */ n(
|
|
3692
|
-
|
|
3692
|
+
dr,
|
|
3693
3693
|
{
|
|
3694
3694
|
className: "text-gray-500",
|
|
3695
3695
|
size: "small"
|
|
@@ -3703,7 +3703,7 @@ function qs({
|
|
|
3703
3703
|
"image_preview_" + t
|
|
3704
3704
|
);
|
|
3705
3705
|
}
|
|
3706
|
-
function
|
|
3706
|
+
function lr({
|
|
3707
3707
|
url: e,
|
|
3708
3708
|
previewType: t,
|
|
3709
3709
|
size: r,
|
|
@@ -3768,7 +3768,7 @@ function sr({
|
|
|
3768
3768
|
},
|
|
3769
3769
|
target: "_blank",
|
|
3770
3770
|
children: [
|
|
3771
|
-
/* @__PURE__ */ n(
|
|
3771
|
+
/* @__PURE__ */ n(dr, { size: "small" }),
|
|
3772
3772
|
e
|
|
3773
3773
|
]
|
|
3774
3774
|
}
|
|
@@ -3785,7 +3785,7 @@ function wt({
|
|
|
3785
3785
|
i.url ? r = Hs(i, t) : i.storage ? r = fo(t) : r = it();
|
|
3786
3786
|
} else if (e.dataType === "array") {
|
|
3787
3787
|
const i = e;
|
|
3788
|
-
i.of && (Array.isArray(i.of) ? r = /* @__PURE__ */ w(
|
|
3788
|
+
i.of && (Array.isArray(i.of) ? r = /* @__PURE__ */ w(Y, { children: [
|
|
3789
3789
|
i.of.map((a, o) => Ir(a, o)),
|
|
3790
3790
|
" "
|
|
3791
3791
|
] }) : i.of.dataType === "map" && i.of.properties ? r = Ls(i.of.properties, t, i.of.previewProperties) : i.of.dataType === "string" ? i.of.enumValues ? r = Ws() : i.of.storage ? r = Ir(i.of) : r = $s() : r = Ir(i.of));
|
|
@@ -3795,7 +3795,7 @@ function wt({
|
|
|
3795
3795
|
}
|
|
3796
3796
|
function Us(e, t) {
|
|
3797
3797
|
if (!e.properties)
|
|
3798
|
-
return /* @__PURE__ */ n(
|
|
3798
|
+
return /* @__PURE__ */ n(Y, {});
|
|
3799
3799
|
let r;
|
|
3800
3800
|
return t === "medium" ? r = Object.keys(e.properties) : (r = e.previewProperties || Object.keys(e.properties), t === "small" ? r = r.slice(0, 3) : t === "tiny" && (r = r.slice(0, 1))), t !== "medium" ? /* @__PURE__ */ n(
|
|
3801
3801
|
"div",
|
|
@@ -3865,7 +3865,7 @@ function $s() {
|
|
|
3865
3865
|
}
|
|
3866
3866
|
function Ws() {
|
|
3867
3867
|
return /* @__PURE__ */ n("div", { className: "flex flex-col gap-2", children: [0, 1].map(
|
|
3868
|
-
(e, t) => /* @__PURE__ */ n(
|
|
3868
|
+
(e, t) => /* @__PURE__ */ n(Y, { children: it(t) })
|
|
3869
3869
|
) });
|
|
3870
3870
|
}
|
|
3871
3871
|
function Ir(e, t = 0) {
|
|
@@ -3874,7 +3874,7 @@ function Ir(e, t = 0) {
|
|
|
3874
3874
|
{
|
|
3875
3875
|
className: "flex flex-col gap-2",
|
|
3876
3876
|
children: [0, 1].map(
|
|
3877
|
-
(r, i) => /* @__PURE__ */ n(
|
|
3877
|
+
(r, i) => /* @__PURE__ */ n(Y, { children: /* @__PURE__ */ n(
|
|
3878
3878
|
wt,
|
|
3879
3879
|
{
|
|
3880
3880
|
property: e,
|
|
@@ -3942,7 +3942,7 @@ function el({
|
|
|
3942
3942
|
size: r
|
|
3943
3943
|
}) {
|
|
3944
3944
|
const [i, a] = I.useState(void 0), o = Ut(), [s, c] = I.useState(qi[t]);
|
|
3945
|
-
if (
|
|
3945
|
+
if (G(() => {
|
|
3946
3946
|
if (!t)
|
|
3947
3947
|
return;
|
|
3948
3948
|
let u = !1;
|
|
@@ -3955,7 +3955,7 @@ function el({
|
|
|
3955
3955
|
return null;
|
|
3956
3956
|
const l = s?.metadata ? tl(s?.metadata.contentType) : void 0, d = l?.startsWith("image") ? "image" : l?.startsWith("video") ? "video" : l?.startsWith("audio") ? "audio" : "file";
|
|
3957
3957
|
return s?.fileNotFound ? /* @__PURE__ */ n(Se, { error: "File not found" }) : s?.url ? /* @__PURE__ */ n(
|
|
3958
|
-
|
|
3958
|
+
lr,
|
|
3959
3959
|
{
|
|
3960
3960
|
previewType: d,
|
|
3961
3961
|
url: s.url,
|
|
@@ -4021,7 +4021,7 @@ function go({
|
|
|
4021
4021
|
} else {
|
|
4022
4022
|
if (r.url)
|
|
4023
4023
|
return /* @__PURE__ */ n(
|
|
4024
|
-
|
|
4024
|
+
lr,
|
|
4025
4025
|
{
|
|
4026
4026
|
size: i,
|
|
4027
4027
|
url: t,
|
|
@@ -4030,14 +4030,14 @@ function go({
|
|
|
4030
4030
|
);
|
|
4031
4031
|
{
|
|
4032
4032
|
if (!t)
|
|
4033
|
-
return /* @__PURE__ */ n(
|
|
4033
|
+
return /* @__PURE__ */ n(Y, {});
|
|
4034
4034
|
const a = t.split(`
|
|
4035
4035
|
`);
|
|
4036
4036
|
return t && t.includes(`
|
|
4037
4037
|
`) ? /* @__PURE__ */ n("div", { className: X("overflow-x-scroll", i === "tiny" ? "text-sm" : ""), children: a.map((o, s) => /* @__PURE__ */ w(I.Fragment, { children: [
|
|
4038
4038
|
/* @__PURE__ */ n("span", { children: o }),
|
|
4039
4039
|
s !== a.length - 1 && /* @__PURE__ */ n("br", {})
|
|
4040
|
-
] }, `string_preview_${s}`)) }) : i === "tiny" ? /* @__PURE__ */ n("span", { className: "text-sm", children: t }) : /* @__PURE__ */ n(
|
|
4040
|
+
] }, `string_preview_${s}`)) }) : i === "tiny" ? /* @__PURE__ */ n("span", { className: "text-sm", children: t }) : /* @__PURE__ */ n(Y, { children: t });
|
|
4041
4041
|
}
|
|
4042
4042
|
}
|
|
4043
4043
|
}
|
|
@@ -4523,7 +4523,7 @@ function cl({
|
|
|
4523
4523
|
const s = t;
|
|
4524
4524
|
if (!s)
|
|
4525
4525
|
return null;
|
|
4526
|
-
const c = i === "medium" ? "small" : "tiny", l = o.oneOf.typeField ?? Rt, d = o.oneOf.valueField ??
|
|
4526
|
+
const c = i === "medium" ? "small" : "tiny", l = o.oneOf.typeField ?? Rt, d = o.oneOf.valueField ?? or, u = o.oneOf.properties;
|
|
4527
4527
|
return /* @__PURE__ */ n("div", { className: "flex flex-col", children: s && s.map(
|
|
4528
4528
|
(p, m) => /* @__PURE__ */ n(
|
|
4529
4529
|
I.Fragment,
|
|
@@ -4690,7 +4690,7 @@ function ul({
|
|
|
4690
4690
|
date: e
|
|
4691
4691
|
}) {
|
|
4692
4692
|
const t = me(), r = t?.locale ? ts[t?.locale] : void 0, i = t?.dateTimeFormat ?? As, a = e ? es(e, i, { locale: r }) : "";
|
|
4693
|
-
return /* @__PURE__ */ n(
|
|
4693
|
+
return /* @__PURE__ */ n(Y, { children: a });
|
|
4694
4694
|
}
|
|
4695
4695
|
function ml({
|
|
4696
4696
|
value: e,
|
|
@@ -4730,9 +4730,9 @@ function pl({
|
|
|
4730
4730
|
enumValues: a,
|
|
4731
4731
|
size: r !== "medium" ? "small" : "medium"
|
|
4732
4732
|
}
|
|
4733
|
-
) : /* @__PURE__ */ n(
|
|
4733
|
+
) : /* @__PURE__ */ n(Y, { children: e });
|
|
4734
4734
|
} else
|
|
4735
|
-
return /* @__PURE__ */ n(
|
|
4735
|
+
return /* @__PURE__ */ n(Y, { children: e });
|
|
4736
4736
|
}
|
|
4737
4737
|
const Ie = I.memo(function(t) {
|
|
4738
4738
|
const r = me();
|
|
@@ -4772,13 +4772,13 @@ const Ie = I.memo(function(t) {
|
|
|
4772
4772
|
else if (u.dataType === "string") {
|
|
4773
4773
|
const p = u;
|
|
4774
4774
|
typeof s == "string" ? p.url ? typeof p.url == "boolean" ? i = /* @__PURE__ */ n(
|
|
4775
|
-
|
|
4775
|
+
lr,
|
|
4776
4776
|
{
|
|
4777
4777
|
size: t.size,
|
|
4778
4778
|
url: s
|
|
4779
4779
|
}
|
|
4780
4780
|
) : typeof p.url == "string" && (i = /* @__PURE__ */ n(
|
|
4781
|
-
|
|
4781
|
+
lr,
|
|
4782
4782
|
{
|
|
4783
4783
|
size: t.size,
|
|
4784
4784
|
url: s,
|
|
@@ -4952,7 +4952,7 @@ const ju = At.memo(
|
|
|
4952
4952
|
builder: t
|
|
4953
4953
|
}) {
|
|
4954
4954
|
const [r, i] = F(!0), [a, o] = F(null);
|
|
4955
|
-
return
|
|
4955
|
+
return G(() => {
|
|
4956
4956
|
let s = !1;
|
|
4957
4957
|
return t.then((c) => {
|
|
4958
4958
|
s || (i(!1), o(c));
|
|
@@ -4993,7 +4993,7 @@ function wo({
|
|
|
4993
4993
|
rel: "noopener noreferrer",
|
|
4994
4994
|
target: "_blank",
|
|
4995
4995
|
children: /* @__PURE__ */ n(ce, { children: /* @__PURE__ */ n(
|
|
4996
|
-
|
|
4996
|
+
dr,
|
|
4997
4997
|
{
|
|
4998
4998
|
size: "small"
|
|
4999
4999
|
}
|
|
@@ -5042,13 +5042,13 @@ function fl(e) {
|
|
|
5042
5042
|
updateValue: o,
|
|
5043
5043
|
focused: s
|
|
5044
5044
|
} = e, c = se(i), [l, d] = F(i), u = se(!1);
|
|
5045
|
-
|
|
5045
|
+
G(() => {
|
|
5046
5046
|
c.current !== i && i !== l && d(i), c.current = i;
|
|
5047
5047
|
}, [i]);
|
|
5048
5048
|
const p = I.useCallback(() => {
|
|
5049
5049
|
!i && !l || l !== i && (c.current = l, o(l));
|
|
5050
5050
|
}, [l, o, i]);
|
|
5051
|
-
return bi(l, p, !s, 2e3),
|
|
5051
|
+
return bi(l, p, !s, 2e3), G(() => {
|
|
5052
5052
|
t.current && s && !u.current ? (u.current = !0, t.current.focus({ preventScroll: !0 }), t.current.selectionStart = t.current.value.length, t.current.selectionEnd = t.current.value.length) : u.current = s;
|
|
5053
5053
|
}, [s, t]), /* @__PURE__ */ n(
|
|
5054
5054
|
ca,
|
|
@@ -5096,7 +5096,7 @@ function Nr(e) {
|
|
|
5096
5096
|
multiple: d,
|
|
5097
5097
|
valueType: u
|
|
5098
5098
|
} = e, p = Array.isArray(a) && d || !Array.isArray(a) && !d, m = I.useRef(null);
|
|
5099
|
-
|
|
5099
|
+
G(() => {
|
|
5100
5100
|
m.current && c && m.current?.focus({ preventScroll: !0 });
|
|
5101
5101
|
}, [c, m]);
|
|
5102
5102
|
const f = x((h) => {
|
|
@@ -5196,7 +5196,7 @@ function hl(e) {
|
|
|
5196
5196
|
updateValue: i,
|
|
5197
5197
|
focused: a
|
|
5198
5198
|
} = e, o = r && typeof r == "number" ? r.toString() : "", [s, c] = F(o), l = se(r);
|
|
5199
|
-
|
|
5199
|
+
G(() => {
|
|
5200
5200
|
l.current !== r && String(r) !== s && c(r ? r.toString() : null), l.current = r;
|
|
5201
5201
|
}, [r]);
|
|
5202
5202
|
const d = I.useCallback(() => {
|
|
@@ -5209,14 +5209,14 @@ function hl(e) {
|
|
|
5209
5209
|
} else
|
|
5210
5210
|
i(null);
|
|
5211
5211
|
}, [s, r]);
|
|
5212
|
-
bi(s, d, !a, 2e3),
|
|
5212
|
+
bi(s, d, !a, 2e3), G(
|
|
5213
5213
|
() => {
|
|
5214
5214
|
!a && o !== s && c(r != null ? r.toString() : null);
|
|
5215
5215
|
},
|
|
5216
5216
|
[r, a]
|
|
5217
5217
|
);
|
|
5218
5218
|
const u = I.useRef(null);
|
|
5219
|
-
|
|
5219
|
+
G(() => {
|
|
5220
5220
|
u.current && a && u.current.focus({ preventScroll: !0 });
|
|
5221
5221
|
}, [a, u]);
|
|
5222
5222
|
const p = /^-?[0-9]+[,.]?[0-9]*$/;
|
|
@@ -5242,7 +5242,7 @@ function gl(e) {
|
|
|
5242
5242
|
updateValue: r,
|
|
5243
5243
|
focused: i
|
|
5244
5244
|
} = e, a = I.useRef(null);
|
|
5245
|
-
return
|
|
5245
|
+
return G(() => {
|
|
5246
5246
|
a.current && i && a.current.focus({ preventScroll: !0 });
|
|
5247
5247
|
}, [i, a]), /* @__PURE__ */ n(
|
|
5248
5248
|
da,
|
|
@@ -5351,7 +5351,7 @@ function _o({
|
|
|
5351
5351
|
metadata: p,
|
|
5352
5352
|
size: m
|
|
5353
5353
|
})), [h, A] = F(i), [y, b] = F(g);
|
|
5354
|
-
|
|
5354
|
+
G(() => {
|
|
5355
5355
|
Z(h, i) || (A(i), b(g));
|
|
5356
5356
|
}, [g, i, h]);
|
|
5357
5357
|
const v = x(async (_) => {
|
|
@@ -5369,9 +5369,9 @@ function _o({
|
|
|
5369
5369
|
console.warn("uploadPathOrDownloadUrl is null");
|
|
5370
5370
|
return;
|
|
5371
5371
|
}
|
|
5372
|
-
let
|
|
5373
|
-
C.storagePathOrDownloadUrl = D, C.metadata = S,
|
|
5374
|
-
const R =
|
|
5372
|
+
let P;
|
|
5373
|
+
C.storagePathOrDownloadUrl = D, C.metadata = S, P = [...y], P = Wi(P), b(P);
|
|
5374
|
+
const R = P.filter((j) => !!j.storagePathOrDownloadUrl).map((j) => j.storagePathOrDownloadUrl);
|
|
5375
5375
|
l(u ? R : R ? R[0] : null);
|
|
5376
5376
|
}, [y, u, l, d, s]), B = x(async (_) => {
|
|
5377
5377
|
if (!_.length || c)
|
|
@@ -5466,7 +5466,7 @@ function ko({
|
|
|
5466
5466
|
return I.useEffect(() => (m.current = !0, t.file && g(t.file, t.fileName), () => {
|
|
5467
5467
|
m.current = !1;
|
|
5468
5468
|
}), [t.file, t.fileName, g]), o ? /* @__PURE__ */ n("div", { className: `m-4 w-${a} h-${a}`, children: u && /* @__PURE__ */ n(Ve, { className: `w-${a} h-${a}` }) }) : /* @__PURE__ */ w("div", { className: X(
|
|
5469
|
-
|
|
5469
|
+
ur,
|
|
5470
5470
|
"relative m-4 border-box flex items-center justify-center",
|
|
5471
5471
|
`min-w-[${a}px] min-h-[${a}px]`
|
|
5472
5472
|
), children: [
|
|
@@ -5487,9 +5487,9 @@ function xo({ showError: e, disabled: t, showExpandIcon: r, selected: i, openPop
|
|
|
5487
5487
|
a(d);
|
|
5488
5488
|
}
|
|
5489
5489
|
}, []), l = se();
|
|
5490
|
-
return
|
|
5490
|
+
return G(() => {
|
|
5491
5491
|
l.current && i && l.current.focus({ preventScroll: !0 });
|
|
5492
|
-
}, [i]), /* @__PURE__ */ n(
|
|
5492
|
+
}, [i]), /* @__PURE__ */ n(Y, { children: (e || !t && r) && /* @__PURE__ */ w("div", { ref: s, className: "absolute top-0.5 right-0.5 flex items-center", children: [
|
|
5493
5493
|
i && o,
|
|
5494
5494
|
i && !t && r && /* @__PURE__ */ n(
|
|
5495
5495
|
ce,
|
|
@@ -5620,11 +5620,11 @@ function Bl({
|
|
|
5620
5620
|
}) {
|
|
5621
5621
|
const [y, b] = F(!1), v = d && u === "medium" ? "small" : u;
|
|
5622
5622
|
if (d) {
|
|
5623
|
-
const
|
|
5624
|
-
if (Array.isArray(
|
|
5623
|
+
const O = e;
|
|
5624
|
+
if (Array.isArray(O.of))
|
|
5625
5625
|
throw Error("Using array properties instead of single one in `of` in ArrayProperty");
|
|
5626
|
-
if (
|
|
5627
|
-
if (
|
|
5626
|
+
if (O.of) {
|
|
5627
|
+
if (O.of.dataType !== "string")
|
|
5628
5628
|
throw Error("Storage field using array must be of data type string");
|
|
5629
5629
|
} else
|
|
5630
5630
|
throw Error("Storage field using array must be of data type string");
|
|
@@ -5634,30 +5634,30 @@ function Bl({
|
|
|
5634
5634
|
getRootProps: C,
|
|
5635
5635
|
getInputProps: S,
|
|
5636
5636
|
isDragActive: D,
|
|
5637
|
-
isDragAccept:
|
|
5637
|
+
isDragAccept: P,
|
|
5638
5638
|
isDragReject: R
|
|
5639
5639
|
} = Fn(
|
|
5640
5640
|
{
|
|
5641
|
-
accept: f.acceptedFiles ? f.acceptedFiles.map((
|
|
5641
|
+
accept: f.acceptedFiles ? f.acceptedFiles.map((O) => ({ [O]: [] })).reduce((O, re) => ({ ...O, ...re }), {}) : void 0,
|
|
5642
5642
|
disabled: p,
|
|
5643
5643
|
maxSize: f.maxSize,
|
|
5644
5644
|
noClick: !0,
|
|
5645
5645
|
noKeyboard: !0,
|
|
5646
5646
|
onDrop: g,
|
|
5647
|
-
onDropRejected: (
|
|
5648
|
-
for (const ie of
|
|
5649
|
-
for (const
|
|
5647
|
+
onDropRejected: (O, re) => {
|
|
5648
|
+
for (const ie of O)
|
|
5649
|
+
for (const q of ie.errors)
|
|
5650
5650
|
B.open({
|
|
5651
5651
|
type: "error",
|
|
5652
5652
|
message: `Error uploading file: File is larger than ${f.maxSize} bytes`
|
|
5653
5653
|
});
|
|
5654
5654
|
}
|
|
5655
5655
|
}
|
|
5656
|
-
), { ...
|
|
5656
|
+
), { ...j } = C(), ae = d ? "Drag 'n' drop some files here, or click here to edit" : "Drag 'n' drop a file here, or click here edit", J = d ? e.of : e, H = he(() => yt(v), [v]), K = !p && c;
|
|
5657
5657
|
return /* @__PURE__ */ w(
|
|
5658
5658
|
"div",
|
|
5659
5659
|
{
|
|
5660
|
-
...
|
|
5660
|
+
...j,
|
|
5661
5661
|
onMouseEnter: () => b(!0),
|
|
5662
5662
|
onMouseMove: () => b(!0),
|
|
5663
5663
|
onMouseLeave: () => b(!1),
|
|
@@ -5666,28 +5666,28 @@ function Bl({
|
|
|
5666
5666
|
"relative w-full h-full flex",
|
|
5667
5667
|
`justify-${k ? "start" : "center"}`,
|
|
5668
5668
|
D ? _l : "",
|
|
5669
|
-
|
|
5669
|
+
P ? kl : "",
|
|
5670
5670
|
R ? xl : ""
|
|
5671
5671
|
),
|
|
5672
5672
|
children: [
|
|
5673
5673
|
/* @__PURE__ */ n("input", { autoFocus: m, ...S() }),
|
|
5674
|
-
r.map((
|
|
5674
|
+
r.map((O, re) => {
|
|
5675
5675
|
let ie;
|
|
5676
|
-
return
|
|
5676
|
+
return O.storagePathOrDownloadUrl ? ie = /* @__PURE__ */ n(
|
|
5677
5677
|
Cl,
|
|
5678
5678
|
{
|
|
5679
5679
|
property: J,
|
|
5680
|
-
value:
|
|
5680
|
+
value: O.storagePathOrDownloadUrl,
|
|
5681
5681
|
entity: o,
|
|
5682
5682
|
size: v
|
|
5683
5683
|
},
|
|
5684
5684
|
`storage_preview_${re}`
|
|
5685
|
-
) :
|
|
5685
|
+
) : O.file && (ie = /* @__PURE__ */ n(
|
|
5686
5686
|
ko,
|
|
5687
5687
|
{
|
|
5688
|
-
entry:
|
|
5688
|
+
entry: O,
|
|
5689
5689
|
metadata: E,
|
|
5690
|
-
storagePath: A(
|
|
5690
|
+
storagePath: A(O.file),
|
|
5691
5691
|
onFileUploadComplete: h,
|
|
5692
5692
|
imageSize: H,
|
|
5693
5693
|
simple: !0
|
|
@@ -5812,7 +5812,7 @@ const Sl = I.memo(
|
|
|
5812
5812
|
size: rt(c),
|
|
5813
5813
|
children: /* @__PURE__ */ n(Se, { title: "Value is not a reference.", error: "Click to edit" })
|
|
5814
5814
|
}
|
|
5815
|
-
), E = () => Array.isArray(i) ? /* @__PURE__ */ n(
|
|
5815
|
+
), E = () => Array.isArray(i) ? /* @__PURE__ */ n(Y, { children: i.map(
|
|
5816
5816
|
(k, B) => /* @__PURE__ */ n(
|
|
5817
5817
|
"div",
|
|
5818
5818
|
{
|
|
@@ -6133,7 +6133,7 @@ const Ml = ({
|
|
|
6133
6133
|
},
|
|
6134
6134
|
children: a
|
|
6135
6135
|
}
|
|
6136
|
-
),
|
|
6136
|
+
), cr = I.memo(
|
|
6137
6137
|
function({
|
|
6138
6138
|
children: t,
|
|
6139
6139
|
actions: r,
|
|
@@ -6153,7 +6153,7 @@ const Ml = ({
|
|
|
6153
6153
|
showExpandIcon: A = !0
|
|
6154
6154
|
}) {
|
|
6155
6155
|
const [y, b] = Nn(), v = se(null), E = he(() => vt(i), [i]), [k, B] = F(!1), [_, C] = F(c), S = !o && l;
|
|
6156
|
-
|
|
6156
|
+
G(() => {
|
|
6157
6157
|
c && C(!0);
|
|
6158
6158
|
const ie = setTimeout(() => {
|
|
6159
6159
|
C(!1);
|
|
@@ -6177,26 +6177,26 @@ const Ml = ({
|
|
|
6177
6177
|
D = 1;
|
|
6178
6178
|
break;
|
|
6179
6179
|
}
|
|
6180
|
-
let
|
|
6180
|
+
let P;
|
|
6181
6181
|
switch (d) {
|
|
6182
6182
|
case "right":
|
|
6183
|
-
|
|
6183
|
+
P = "flex-end";
|
|
6184
6184
|
break;
|
|
6185
6185
|
case "center":
|
|
6186
|
-
|
|
6186
|
+
P = "center";
|
|
6187
6187
|
break;
|
|
6188
6188
|
case "left":
|
|
6189
6189
|
default:
|
|
6190
|
-
|
|
6190
|
+
P = "flex-start";
|
|
6191
6191
|
}
|
|
6192
6192
|
const R = x(() => {
|
|
6193
6193
|
if (!f)
|
|
6194
6194
|
return;
|
|
6195
6195
|
const ie = v && v?.current?.getBoundingClientRect();
|
|
6196
6196
|
o ? f(void 0) : !a && ie && f(ie);
|
|
6197
|
-
}, [v, f, a, o]),
|
|
6197
|
+
}, [v, f, a, o]), j = x((ie) => {
|
|
6198
6198
|
R(), ie.stopPropagation();
|
|
6199
|
-
}, [R]), ae = he(() => b ? b.height > E : !1, [b, E]), J = !S && a, H = !o && u && ae, K = !o && !u && ae,
|
|
6199
|
+
}, [R]), ae = he(() => b ? b.height > E : !1, [b, E]), J = !S && a, H = !o && u && ae, K = !o && !u && ae, O = x(() => B(!0), []), re = x(() => B(!1), []);
|
|
6200
6200
|
return /* @__PURE__ */ w(
|
|
6201
6201
|
"div",
|
|
6202
6202
|
{
|
|
@@ -6214,15 +6214,15 @@ const Ml = ({
|
|
|
6214
6214
|
S ? "border-red-500" : ""
|
|
6215
6215
|
),
|
|
6216
6216
|
style: {
|
|
6217
|
-
justifyContent:
|
|
6217
|
+
justifyContent: P,
|
|
6218
6218
|
alignItems: o || !ae ? "center" : void 0,
|
|
6219
6219
|
width: g ?? "100%",
|
|
6220
6220
|
textAlign: d
|
|
6221
6221
|
},
|
|
6222
6222
|
tabIndex: a || o ? void 0 : 0,
|
|
6223
|
-
onFocus:
|
|
6224
|
-
onMouseEnter:
|
|
6225
|
-
onMouseMove:
|
|
6223
|
+
onFocus: j,
|
|
6224
|
+
onMouseEnter: O,
|
|
6225
|
+
onMouseMove: O,
|
|
6226
6226
|
onMouseLeave: re,
|
|
6227
6227
|
children: [
|
|
6228
6228
|
/* @__PURE__ */ w(ue, { children: [
|
|
@@ -6231,7 +6231,7 @@ const Ml = ({
|
|
|
6231
6231
|
Ml,
|
|
6232
6232
|
{
|
|
6233
6233
|
fullHeight: m ?? !1,
|
|
6234
|
-
justifyContent:
|
|
6234
|
+
justifyContent: P,
|
|
6235
6235
|
scrollable: H ?? !1,
|
|
6236
6236
|
faded: K,
|
|
6237
6237
|
children: !m && /* @__PURE__ */ n(
|
|
@@ -6241,7 +6241,7 @@ const Ml = ({
|
|
|
6241
6241
|
style: {
|
|
6242
6242
|
display: "flex",
|
|
6243
6243
|
width: "100%",
|
|
6244
|
-
justifyContent:
|
|
6244
|
+
justifyContent: P,
|
|
6245
6245
|
height: m ? "100%" : void 0
|
|
6246
6246
|
},
|
|
6247
6247
|
children: t
|
|
@@ -6264,7 +6264,7 @@ function Ye({
|
|
|
6264
6264
|
setValue: r
|
|
6265
6265
|
}) {
|
|
6266
6266
|
const i = se(null);
|
|
6267
|
-
|
|
6267
|
+
G(() => {
|
|
6268
6268
|
typeof e.disabled == "object" && !!e.disabled.clearOnDisabled ? t != null && (i.current = t, r(null)) : i.current && (r(i.current), i.current = null);
|
|
6269
6269
|
}, [e]);
|
|
6270
6270
|
}
|
|
@@ -6295,22 +6295,22 @@ const Gl = I.memo(
|
|
|
6295
6295
|
S(!0), setTimeout(() => {
|
|
6296
6296
|
S(!1);
|
|
6297
6297
|
}, 100);
|
|
6298
|
-
}, []),
|
|
6298
|
+
}, []), P = !!a.Field, R = !!a.Preview, j = qt(a), ae = typeof a.disabled == "object" ? a.disabled.disabledMessage : void 0, J = u || p || !!a.disabled, H = he(() => Mt({
|
|
6299
6299
|
property: a,
|
|
6300
6300
|
entityId: d.id,
|
|
6301
6301
|
customFieldValidator: r,
|
|
6302
6302
|
name: t
|
|
6303
6303
|
}), [d.id, a, t]);
|
|
6304
|
-
|
|
6304
|
+
G(
|
|
6305
6305
|
() => {
|
|
6306
6306
|
Z(i, k.current) || (_(void 0), E(i), k.current = i, D());
|
|
6307
6307
|
},
|
|
6308
6308
|
[D, i]
|
|
6309
6309
|
);
|
|
6310
|
-
const K = (
|
|
6311
|
-
Z(
|
|
6312
|
-
_(void 0), k.current =
|
|
6313
|
-
value:
|
|
6310
|
+
const K = (M) => {
|
|
6311
|
+
Z(M, k.current) || (S(!1), H.validate(M).then(() => {
|
|
6312
|
+
_(void 0), k.current = M, f && f({
|
|
6313
|
+
value: M,
|
|
6314
6314
|
propertyKey: t,
|
|
6315
6315
|
setError: _,
|
|
6316
6316
|
onValueUpdated: D,
|
|
@@ -6318,46 +6318,46 @@ const Gl = I.memo(
|
|
|
6318
6318
|
fullPath: l,
|
|
6319
6319
|
context: m
|
|
6320
6320
|
});
|
|
6321
|
-
}).catch((
|
|
6322
|
-
_(
|
|
6321
|
+
}).catch((Q) => {
|
|
6322
|
+
_(Q);
|
|
6323
6323
|
}));
|
|
6324
6324
|
};
|
|
6325
|
-
|
|
6326
|
-
H.validate(v).then(() => _(void 0)).catch((
|
|
6327
|
-
_(
|
|
6325
|
+
G(() => {
|
|
6326
|
+
H.validate(v).then(() => _(void 0)).catch((M) => {
|
|
6327
|
+
_(M);
|
|
6328
6328
|
});
|
|
6329
6329
|
}, [v, H, t, a, d]);
|
|
6330
|
-
const
|
|
6331
|
-
let
|
|
6332
|
-
|
|
6330
|
+
const O = (M) => {
|
|
6331
|
+
let Q;
|
|
6332
|
+
M === void 0 ? Q = null : Q = M, E(Q), K(Q);
|
|
6333
6333
|
};
|
|
6334
6334
|
Ye({
|
|
6335
6335
|
property: a,
|
|
6336
6336
|
value: v,
|
|
6337
|
-
setValue:
|
|
6337
|
+
setValue: O
|
|
6338
6338
|
});
|
|
6339
|
-
const re = x((
|
|
6340
|
-
A(
|
|
6339
|
+
const re = x((M) => {
|
|
6340
|
+
A(M ? {
|
|
6341
6341
|
width: s,
|
|
6342
6342
|
height: c,
|
|
6343
6343
|
entity: d,
|
|
6344
|
-
cellRect:
|
|
6344
|
+
cellRect: M,
|
|
6345
6345
|
propertyKey: t
|
|
6346
6346
|
} : void 0);
|
|
6347
|
-
}, [d, c, t, A, s]), ie = (
|
|
6348
|
-
y && y(
|
|
6347
|
+
}, [d, c, t, A, s]), ie = (M) => {
|
|
6348
|
+
y && y(M ? {
|
|
6349
6349
|
width: s,
|
|
6350
6350
|
height: c,
|
|
6351
6351
|
entity: d,
|
|
6352
|
-
cellRect:
|
|
6352
|
+
cellRect: M,
|
|
6353
6353
|
propertyKey: t
|
|
6354
6354
|
} : void 0);
|
|
6355
6355
|
};
|
|
6356
|
-
let
|
|
6357
|
-
const
|
|
6358
|
-
if (u ||
|
|
6356
|
+
let q, pe = !1, oe = !1, le = !0, z = !1, te = !1, ne = !0;
|
|
6357
|
+
const V = !J && B;
|
|
6358
|
+
if (u || j)
|
|
6359
6359
|
return /* @__PURE__ */ n(
|
|
6360
|
-
|
|
6360
|
+
cr,
|
|
6361
6361
|
{
|
|
6362
6362
|
size: g,
|
|
6363
6363
|
width: s,
|
|
@@ -6365,7 +6365,7 @@ const Gl = I.memo(
|
|
|
6365
6365
|
value: v,
|
|
6366
6366
|
align: o ?? "left",
|
|
6367
6367
|
fullHeight: !1,
|
|
6368
|
-
disabledTooltip: ae ?? (
|
|
6368
|
+
disabledTooltip: ae ?? (j ? "Read only" : void 0),
|
|
6369
6369
|
disabled: !0,
|
|
6370
6370
|
children: /* @__PURE__ */ n(
|
|
6371
6371
|
Ie,
|
|
@@ -6381,9 +6381,9 @@ const Gl = I.memo(
|
|
|
6381
6381
|
},
|
|
6382
6382
|
`${t}_${d.path}_${d.id}`
|
|
6383
6383
|
);
|
|
6384
|
-
if (!
|
|
6384
|
+
if (!P && (!R || b)) {
|
|
6385
6385
|
if (Vl(a))
|
|
6386
|
-
|
|
6386
|
+
q = /* @__PURE__ */ n(
|
|
6387
6387
|
El,
|
|
6388
6388
|
{
|
|
6389
6389
|
error: B,
|
|
@@ -6396,13 +6396,13 @@ const Gl = I.memo(
|
|
|
6396
6396
|
path: l,
|
|
6397
6397
|
value: v,
|
|
6398
6398
|
previewSize: rt(g),
|
|
6399
|
-
updateValue:
|
|
6399
|
+
updateValue: O,
|
|
6400
6400
|
propertyKey: t
|
|
6401
6401
|
}
|
|
6402
6402
|
), ne = !1, oe = !0, te = !0, z = !0;
|
|
6403
6403
|
else if (b && a.dataType === "number") {
|
|
6404
|
-
const
|
|
6405
|
-
|
|
6404
|
+
const Q = a;
|
|
6405
|
+
Q.enumValues ? (q = /* @__PURE__ */ n(
|
|
6406
6406
|
Nr,
|
|
6407
6407
|
{
|
|
6408
6408
|
name: t,
|
|
@@ -6411,12 +6411,12 @@ const Gl = I.memo(
|
|
|
6411
6411
|
focused: b,
|
|
6412
6412
|
valueType: "number",
|
|
6413
6413
|
small: rt(g) !== "medium",
|
|
6414
|
-
enumValues:
|
|
6414
|
+
enumValues: Q.enumValues,
|
|
6415
6415
|
error: B,
|
|
6416
6416
|
internalValue: v,
|
|
6417
|
-
updateValue:
|
|
6417
|
+
updateValue: O
|
|
6418
6418
|
}
|
|
6419
|
-
), te = !0) : (
|
|
6419
|
+
), te = !0) : (q = /* @__PURE__ */ n(
|
|
6420
6420
|
hl,
|
|
6421
6421
|
{
|
|
6422
6422
|
align: o,
|
|
@@ -6424,13 +6424,13 @@ const Gl = I.memo(
|
|
|
6424
6424
|
focused: b,
|
|
6425
6425
|
disabled: J,
|
|
6426
6426
|
value: v,
|
|
6427
|
-
updateValue:
|
|
6427
|
+
updateValue: O
|
|
6428
6428
|
}
|
|
6429
6429
|
), pe = !0);
|
|
6430
6430
|
} else if (b && a.dataType === "string") {
|
|
6431
|
-
const
|
|
6432
|
-
if (
|
|
6433
|
-
|
|
6431
|
+
const Q = a;
|
|
6432
|
+
if (Q.enumValues)
|
|
6433
|
+
q = /* @__PURE__ */ n(
|
|
6434
6434
|
Nr,
|
|
6435
6435
|
{
|
|
6436
6436
|
name: t,
|
|
@@ -6439,39 +6439,39 @@ const Gl = I.memo(
|
|
|
6439
6439
|
disabled: J,
|
|
6440
6440
|
valueType: "string",
|
|
6441
6441
|
small: rt(g) !== "medium",
|
|
6442
|
-
enumValues:
|
|
6442
|
+
enumValues: Q.enumValues,
|
|
6443
6443
|
error: B,
|
|
6444
6444
|
internalValue: v,
|
|
6445
|
-
updateValue:
|
|
6445
|
+
updateValue: O
|
|
6446
6446
|
}
|
|
6447
6447
|
), te = !0;
|
|
6448
|
-
else if (!
|
|
6449
|
-
const
|
|
6450
|
-
|
|
6448
|
+
else if (!Q.storage) {
|
|
6449
|
+
const N = !!Q.multiline || !!Q.markdown;
|
|
6450
|
+
q = /* @__PURE__ */ n(
|
|
6451
6451
|
fl,
|
|
6452
6452
|
{
|
|
6453
6453
|
error: B,
|
|
6454
6454
|
disabled: J,
|
|
6455
|
-
multiline:
|
|
6455
|
+
multiline: N,
|
|
6456
6456
|
focused: b,
|
|
6457
6457
|
value: v,
|
|
6458
|
-
updateValue:
|
|
6458
|
+
updateValue: O
|
|
6459
6459
|
}
|
|
6460
6460
|
), pe = !0;
|
|
6461
6461
|
}
|
|
6462
6462
|
} else if (a.dataType === "boolean")
|
|
6463
|
-
|
|
6463
|
+
q = /* @__PURE__ */ n(
|
|
6464
6464
|
gl,
|
|
6465
6465
|
{
|
|
6466
6466
|
error: B,
|
|
6467
6467
|
disabled: J,
|
|
6468
6468
|
focused: b,
|
|
6469
6469
|
internalValue: v,
|
|
6470
|
-
updateValue:
|
|
6470
|
+
updateValue: O
|
|
6471
6471
|
}
|
|
6472
6472
|
);
|
|
6473
6473
|
else if (a.dataType === "date")
|
|
6474
|
-
|
|
6474
|
+
q = /* @__PURE__ */ n(
|
|
6475
6475
|
Al,
|
|
6476
6476
|
{
|
|
6477
6477
|
name: t,
|
|
@@ -6480,16 +6480,16 @@ const Gl = I.memo(
|
|
|
6480
6480
|
mode: a.mode,
|
|
6481
6481
|
focused: b,
|
|
6482
6482
|
internalValue: v,
|
|
6483
|
-
updateValue:
|
|
6483
|
+
updateValue: O
|
|
6484
6484
|
}
|
|
6485
6485
|
), te = !0, le = !1, pe = !1;
|
|
6486
6486
|
else if (a.dataType === "reference")
|
|
6487
|
-
typeof a.path == "string" && (
|
|
6487
|
+
typeof a.path == "string" && (q = /* @__PURE__ */ n(
|
|
6488
6488
|
Zi,
|
|
6489
6489
|
{
|
|
6490
6490
|
name: t,
|
|
6491
6491
|
internalValue: v,
|
|
6492
|
-
updateValue:
|
|
6492
|
+
updateValue: O,
|
|
6493
6493
|
disabled: J,
|
|
6494
6494
|
size: g,
|
|
6495
6495
|
path: a.path,
|
|
@@ -6500,10 +6500,10 @@ const Gl = I.memo(
|
|
|
6500
6500
|
}
|
|
6501
6501
|
)), pe = !1;
|
|
6502
6502
|
else if (a.dataType === "array") {
|
|
6503
|
-
const
|
|
6504
|
-
if (!
|
|
6503
|
+
const Q = a;
|
|
6504
|
+
if (!Q.of && !Q.oneOf)
|
|
6505
6505
|
throw Error(`You need to specify an 'of' or 'oneOf' prop (or specify a custom field) in your array property ${t}`);
|
|
6506
|
-
|
|
6506
|
+
Q.of && !Array.isArray(Q.of) && (Q.of.dataType === "string" || Q.of.dataType === "number" ? b && Q.of.enumValues && (q = /* @__PURE__ */ n(
|
|
6507
6507
|
Nr,
|
|
6508
6508
|
{
|
|
6509
6509
|
name: t,
|
|
@@ -6511,30 +6511,30 @@ const Gl = I.memo(
|
|
|
6511
6511
|
disabled: J,
|
|
6512
6512
|
focused: b,
|
|
6513
6513
|
small: rt(g) !== "medium",
|
|
6514
|
-
valueType:
|
|
6515
|
-
enumValues:
|
|
6514
|
+
valueType: Q.of.dataType,
|
|
6515
|
+
enumValues: Q.of.enumValues,
|
|
6516
6516
|
error: B,
|
|
6517
6517
|
internalValue: v,
|
|
6518
|
-
updateValue:
|
|
6518
|
+
updateValue: O
|
|
6519
6519
|
}
|
|
6520
|
-
), pe = !0, te = !0, le = !1) :
|
|
6520
|
+
), pe = !0, te = !0, le = !1) : Q.of.dataType === "reference" && (typeof Q.of.path == "string" && (q = /* @__PURE__ */ n(
|
|
6521
6521
|
Zi,
|
|
6522
6522
|
{
|
|
6523
6523
|
name: t,
|
|
6524
6524
|
disabled: J,
|
|
6525
6525
|
internalValue: v,
|
|
6526
|
-
updateValue:
|
|
6526
|
+
updateValue: O,
|
|
6527
6527
|
size: g,
|
|
6528
6528
|
multiselect: !0,
|
|
6529
|
-
path:
|
|
6530
|
-
previewProperties:
|
|
6531
|
-
title:
|
|
6532
|
-
forceFilter:
|
|
6529
|
+
path: Q.of.path,
|
|
6530
|
+
previewProperties: Q.of.previewProperties,
|
|
6531
|
+
title: Q.name,
|
|
6532
|
+
forceFilter: Q.of.forceFilter
|
|
6533
6533
|
}
|
|
6534
6534
|
)), pe = !1));
|
|
6535
6535
|
}
|
|
6536
6536
|
}
|
|
6537
|
-
return
|
|
6537
|
+
return q || (pe = !1, oe = b && !q && !J && !j, q = /* @__PURE__ */ n(
|
|
6538
6538
|
Ie,
|
|
6539
6539
|
{
|
|
6540
6540
|
width: s,
|
|
@@ -6545,13 +6545,13 @@ const Gl = I.memo(
|
|
|
6545
6545
|
size: rt(g)
|
|
6546
6546
|
}
|
|
6547
6547
|
)), /* @__PURE__ */ n(
|
|
6548
|
-
|
|
6548
|
+
cr,
|
|
6549
6549
|
{
|
|
6550
6550
|
size: g,
|
|
6551
6551
|
width: s,
|
|
6552
6552
|
onSelect: re,
|
|
6553
6553
|
selected: b,
|
|
6554
|
-
disabled: J ||
|
|
6554
|
+
disabled: J || j,
|
|
6555
6555
|
disabledTooltip: ae ?? "Disabled",
|
|
6556
6556
|
removePadding: z,
|
|
6557
6557
|
fullHeight: te,
|
|
@@ -6565,14 +6565,14 @@ const Gl = I.memo(
|
|
|
6565
6565
|
actions: ne && /* @__PURE__ */ n(
|
|
6566
6566
|
xo,
|
|
6567
6567
|
{
|
|
6568
|
-
showError:
|
|
6568
|
+
showError: V,
|
|
6569
6569
|
disabled: J,
|
|
6570
6570
|
showExpandIcon: oe,
|
|
6571
6571
|
selected: b,
|
|
6572
6572
|
openPopup: J ? void 0 : ie
|
|
6573
6573
|
}
|
|
6574
6574
|
),
|
|
6575
|
-
children:
|
|
6575
|
+
children: q
|
|
6576
6576
|
},
|
|
6577
6577
|
`cell_${t}_${d.path}_${d.id}`
|
|
6578
6578
|
);
|
|
@@ -6713,7 +6713,7 @@ function Yl({
|
|
|
6713
6713
|
title: l
|
|
6714
6714
|
}) {
|
|
6715
6715
|
const d = I.useRef(null), u = We(), p = I.useRef(!1);
|
|
6716
|
-
|
|
6716
|
+
G(() => {
|
|
6717
6717
|
d.current && p.current && !c && d.current.focus(), p.current = c ?? !1;
|
|
6718
6718
|
}, [c]);
|
|
6719
6719
|
const m = /* @__PURE__ */ n(ve, { title: "Table row size", side: "right", sideOffset: 4, children: /* @__PURE__ */ n(
|
|
@@ -6939,7 +6939,7 @@ const $l = I.memo(
|
|
|
6939
6939
|
]
|
|
6940
6940
|
}
|
|
6941
6941
|
) }),
|
|
6942
|
-
/* @__PURE__ */ w(
|
|
6942
|
+
/* @__PURE__ */ w(Y, { children: [
|
|
6943
6943
|
p && /* @__PURE__ */ n(p, { onHover: m || g }),
|
|
6944
6944
|
l.sortable && (a || B || g) && /* @__PURE__ */ n(
|
|
6945
6945
|
Fi,
|
|
@@ -6955,9 +6955,9 @@ const $l = I.memo(
|
|
|
6955
6955
|
o(l.key);
|
|
6956
6956
|
},
|
|
6957
6957
|
children: [
|
|
6958
|
-
!a && /* @__PURE__ */ n(
|
|
6959
|
-
a === "asc" && /* @__PURE__ */ n(
|
|
6960
|
-
a === "desc" && /* @__PURE__ */ n(
|
|
6958
|
+
!a && /* @__PURE__ */ n(xr, {}),
|
|
6959
|
+
a === "asc" && /* @__PURE__ */ n(xr, {}),
|
|
6960
|
+
a === "desc" && /* @__PURE__ */ n(xr, { className: "rotate-180" })
|
|
6961
6961
|
]
|
|
6962
6962
|
}
|
|
6963
6963
|
)
|
|
@@ -7028,7 +7028,7 @@ function Wl({
|
|
|
7028
7028
|
setHidden: s
|
|
7029
7029
|
}) {
|
|
7030
7030
|
const c = e.key, [l, d] = F(r);
|
|
7031
|
-
if (
|
|
7031
|
+
if (G(() => {
|
|
7032
7032
|
d(r);
|
|
7033
7033
|
}, [r]), !e.filter)
|
|
7034
7034
|
return null;
|
|
@@ -7102,12 +7102,12 @@ const Jl = ({
|
|
|
7102
7102
|
AddColumnComponent: d
|
|
7103
7103
|
}) => {
|
|
7104
7104
|
const u = e.map(() => ea()), [p, m] = F(-1), f = x((k, B, _) => {
|
|
7105
|
-
const C = e[k], S = 100, D = 800,
|
|
7106
|
-
width:
|
|
7105
|
+
const C = e[k], S = 100, D = 800, P = B > D ? D : B < S ? S : B, R = {
|
|
7106
|
+
width: P,
|
|
7107
7107
|
key: C.key,
|
|
7108
7108
|
column: {
|
|
7109
7109
|
...C,
|
|
7110
|
-
width:
|
|
7110
|
+
width: P
|
|
7111
7111
|
}
|
|
7112
7112
|
};
|
|
7113
7113
|
_ ? c(R) : s(R);
|
|
@@ -7131,7 +7131,7 @@ const Jl = ({
|
|
|
7131
7131
|
}, [A, y]), v = x(() => {
|
|
7132
7132
|
document.addEventListener("mousemove", A), document.addEventListener("mouseup", y);
|
|
7133
7133
|
}, [A, y]);
|
|
7134
|
-
|
|
7134
|
+
G(() => (p >= 0 ? v() : b(), () => {
|
|
7135
7135
|
b();
|
|
7136
7136
|
}), [v, p, b]);
|
|
7137
7137
|
const E = x((k) => {
|
|
@@ -7221,14 +7221,14 @@ const Jl = ({
|
|
|
7221
7221
|
);
|
|
7222
7222
|
},
|
|
7223
7223
|
(e, t) => Z(e.rowData, t.rowData) && Z(e.column, t.column) && Z(e.cellData, t.cellData) && Z(e.rowIndex, t.rowIndex) && Z(e.cellRenderer, t.cellRenderer) && Z(e.columnIndex, t.columnIndex)
|
|
7224
|
-
),
|
|
7225
|
-
|
|
7224
|
+
), yr = ta({});
|
|
7225
|
+
yr.displayName = "VirtualListContext";
|
|
7226
7226
|
const Xl = ra(({
|
|
7227
7227
|
children: e,
|
|
7228
7228
|
...t
|
|
7229
|
-
}, r) => /* @__PURE__ */ n(
|
|
7229
|
+
}, r) => /* @__PURE__ */ n(yr.Consumer, { children: (i) => {
|
|
7230
7230
|
const a = i.customView;
|
|
7231
|
-
return /* @__PURE__ */ w(
|
|
7231
|
+
return /* @__PURE__ */ w(Y, { children: [
|
|
7232
7232
|
/* @__PURE__ */ n(
|
|
7233
7233
|
"div",
|
|
7234
7234
|
{
|
|
@@ -7289,65 +7289,66 @@ const Xl = ra(({
|
|
|
7289
7289
|
endAdornment: k,
|
|
7290
7290
|
AddColumnComponent: B
|
|
7291
7291
|
}) {
|
|
7292
|
-
const _ = p ? p[0] : void 0, C = p ? p[1] : void 0, [S, D] = F(o),
|
|
7293
|
-
|
|
7292
|
+
const _ = p ? p[0] : void 0, C = p ? p[1] : void 0, [S, D] = F(o), P = se(null), R = se(0);
|
|
7293
|
+
G(() => {
|
|
7294
7294
|
D(o);
|
|
7295
7295
|
}, [o]);
|
|
7296
|
-
const [
|
|
7297
|
-
D(S.map((
|
|
7298
|
-
}, [S]), H = x((
|
|
7299
|
-
D(S.map((
|
|
7296
|
+
const [j, ae] = Nn(), J = x((V) => {
|
|
7297
|
+
D(S.map((M) => M.key === V.column.key ? V.column : M));
|
|
7298
|
+
}, [S]), H = x((V) => {
|
|
7299
|
+
D(S.map((M) => M.key === V.column.key ? V.column : M)), c && c(V);
|
|
7300
7300
|
}, [S, c]), K = se();
|
|
7301
|
-
|
|
7301
|
+
G(() => {
|
|
7302
7302
|
K.current = l;
|
|
7303
7303
|
}, [l]);
|
|
7304
|
-
const
|
|
7305
|
-
R.current = 0,
|
|
7306
|
-
}, []), re = x((
|
|
7307
|
-
const
|
|
7308
|
-
|
|
7309
|
-
}, [d, C, u, r, g,
|
|
7304
|
+
const O = x(() => {
|
|
7305
|
+
R.current = 0, P.current && P.current.scrollTo(P.current?.scrollLeft, 0);
|
|
7306
|
+
}, []), re = x((V) => {
|
|
7307
|
+
const M = _ === V && C === "desc", N = _ === V && C === "asc" ? "desc" : M ? void 0 : "asc", ee = M ? void 0 : V, ye = K.current, T = N && ee ? [ee, N] : void 0;
|
|
7308
|
+
ye && d && !d(ye, T) && u && u(void 0), r && r(), g && g(T), O();
|
|
7309
|
+
}, [d, C, u, r, g, O, _]);
|
|
7310
7310
|
x(() => {
|
|
7311
7311
|
R.current = 0, g && g(void 0);
|
|
7312
7312
|
}, [g]);
|
|
7313
|
-
const ie = Math.max((t?.length ?? 0) * vt(a) - ae.height, 0),
|
|
7314
|
-
i && (t?.length ?? 0) > 0 &&
|
|
7313
|
+
const ie = Math.max((t?.length ?? 0) * vt(a) - ae.height, 0), q = x((V) => {
|
|
7314
|
+
i && (t?.length ?? 0) > 0 && V > R.current + 600 && (R.current = V, i());
|
|
7315
7315
|
}, [t?.length, i]), pe = x(({
|
|
7316
|
-
scrollOffset:
|
|
7317
|
-
scrollUpdateWasRequested:
|
|
7316
|
+
scrollOffset: V,
|
|
7317
|
+
scrollUpdateWasRequested: M
|
|
7318
7318
|
}) => {
|
|
7319
|
-
!
|
|
7320
|
-
}, [ie,
|
|
7319
|
+
!M && V >= ie - 600 && q(V);
|
|
7320
|
+
}, [ie, q]), oe = x((V, M) => {
|
|
7321
7321
|
R.current = 0;
|
|
7322
|
-
const
|
|
7323
|
-
let
|
|
7324
|
-
|
|
7325
|
-
}, [d, C, u, _]), le = x(() => /* @__PURE__ */ w(
|
|
7322
|
+
const Q = K.current;
|
|
7323
|
+
let N = Q ? { ...Q } : {};
|
|
7324
|
+
M ? N[V.key] = M : delete N[V.key], !d || d(N, _ && C ? [_, C] : void 0) || (N = M ? { [V.key]: M } : {}), u && u(N);
|
|
7325
|
+
}, [d, C, u, _]), le = x(() => h ? /* @__PURE__ */ n($r, {}) : /* @__PURE__ */ w(
|
|
7326
7326
|
"div",
|
|
7327
7327
|
{
|
|
7328
|
-
className: "
|
|
7328
|
+
className: "flex flex-col overflow-auto items-center justify-center p-2 gap-2 h-full",
|
|
7329
7329
|
children: [
|
|
7330
|
-
/* @__PURE__ */ n(
|
|
7331
|
-
|
|
7330
|
+
/* @__PURE__ */ n(ha, {}),
|
|
7331
|
+
f
|
|
7332
7332
|
]
|
|
7333
7333
|
}
|
|
7334
|
-
), [
|
|
7335
|
-
|
|
7334
|
+
), [f, h]), z = !h && (t?.length ?? 0) === 0, te = m ? /* @__PURE__ */ w(
|
|
7335
|
+
Xt,
|
|
7336
7336
|
{
|
|
7337
|
-
|
|
7337
|
+
maxWidth: "2xl",
|
|
7338
|
+
className: "flex flex-col gap-2",
|
|
7338
7339
|
children: [
|
|
7339
|
-
/* @__PURE__ */ n(
|
|
7340
|
-
|
|
7340
|
+
/* @__PURE__ */ n(L, { variant: "h6", children: "Error fetching data from the data source" }),
|
|
7341
|
+
m?.message && /* @__PURE__ */ n(tc, { text: m.message })
|
|
7341
7342
|
]
|
|
7342
7343
|
}
|
|
7343
|
-
)
|
|
7344
|
+
) : z ? le() : void 0, ne = {
|
|
7344
7345
|
data: t,
|
|
7345
7346
|
size: a,
|
|
7346
7347
|
cellRenderer: A,
|
|
7347
7348
|
columns: S,
|
|
7348
7349
|
currentSort: C,
|
|
7349
7350
|
onRowClick: s,
|
|
7350
|
-
customView:
|
|
7351
|
+
customView: te,
|
|
7351
7352
|
onColumnResize: J,
|
|
7352
7353
|
onColumnResizeEnd: H,
|
|
7353
7354
|
filter: K.current,
|
|
@@ -7363,16 +7364,16 @@ const Xl = ra(({
|
|
|
7363
7364
|
return /* @__PURE__ */ n(
|
|
7364
7365
|
"div",
|
|
7365
7366
|
{
|
|
7366
|
-
ref:
|
|
7367
|
+
ref: j,
|
|
7367
7368
|
className: X("h-full w-full", E),
|
|
7368
7369
|
children: /* @__PURE__ */ n(
|
|
7369
|
-
|
|
7370
|
+
yr.Provider,
|
|
7370
7371
|
{
|
|
7371
|
-
value:
|
|
7372
|
+
value: ne,
|
|
7372
7373
|
children: /* @__PURE__ */ n(
|
|
7373
7374
|
ec,
|
|
7374
7375
|
{
|
|
7375
|
-
outerRef:
|
|
7376
|
+
outerRef: P,
|
|
7376
7377
|
width: ae.width,
|
|
7377
7378
|
height: ae.height,
|
|
7378
7379
|
itemCount: (t?.length ?? 0) + (k ? 1 : 0),
|
|
@@ -7401,7 +7402,7 @@ function ec({
|
|
|
7401
7402
|
const c = x(({
|
|
7402
7403
|
index: l,
|
|
7403
7404
|
style: d
|
|
7404
|
-
}) => /* @__PURE__ */ n(
|
|
7405
|
+
}) => /* @__PURE__ */ n(yr.Consumer, { children: ({
|
|
7405
7406
|
onRowClick: u,
|
|
7406
7407
|
data: p,
|
|
7407
7408
|
columns: m,
|
|
@@ -7474,8 +7475,8 @@ function ec({
|
|
|
7474
7475
|
);
|
|
7475
7476
|
}
|
|
7476
7477
|
const tc = ({ text: e }) => {
|
|
7477
|
-
const t = /https?:\/\/[^\s]+/g, r = e.replace(t, (i) => `<a href="${i}" target="_blank">Link
|
|
7478
|
-
return /* @__PURE__ */ n("div", { className: "
|
|
7478
|
+
const t = /https?:\/\/[^\s]+/g, r = e.replace(t, (i) => `<a href="${i}" target="_blank">Link</a><br/>`);
|
|
7479
|
+
return /* @__PURE__ */ n("div", { className: "break-all", dangerouslySetInnerHTML: { __html: r } });
|
|
7479
7480
|
}, Xi = {
|
|
7480
7481
|
"==": "==",
|
|
7481
7482
|
"!=": "!=",
|
|
@@ -7502,12 +7503,12 @@ function rc({
|
|
|
7502
7503
|
i ? l.push("array-contains-any") : l.push("in", "not-in");
|
|
7503
7504
|
const [d, u] = t || [l[0], void 0], [p, m] = F(d), [f, g] = F(u), h = f ? Array.isArray(f) ? f.map((S) => S?.isEntityReference && S?.isEntityReference() ? S.id : null).filter(Boolean) : [f.id] : [];
|
|
7504
7505
|
function A(S, D) {
|
|
7505
|
-
const
|
|
7506
|
-
let
|
|
7507
|
-
|
|
7508
|
-
const ae =
|
|
7506
|
+
const P = Pr.includes(p), R = Pr.includes(S);
|
|
7507
|
+
let j = D;
|
|
7508
|
+
P !== R && (j = R ? j?.isEntityReference && j?.isEntityReference() ? [j] : [] : void 0), m(S), g(j);
|
|
7509
|
+
const ae = j !== null && Array.isArray(j) ? j.length > 0 : j !== void 0;
|
|
7509
7510
|
r(
|
|
7510
|
-
S && ae ? [S,
|
|
7511
|
+
S && ae ? [S, j] : void 0
|
|
7511
7512
|
);
|
|
7512
7513
|
}
|
|
7513
7514
|
const y = _e(), b = he(() => a ? y.getCollection(a) : void 0, [a]), v = (S) => {
|
|
@@ -7735,7 +7736,7 @@ function nc({
|
|
|
7735
7736
|
}
|
|
7736
7737
|
const o = r && r[1];
|
|
7737
7738
|
return /* @__PURE__ */ n("div", { className: "w-[200px]", children: /* @__PURE__ */ n(
|
|
7738
|
-
|
|
7739
|
+
mr,
|
|
7739
7740
|
{
|
|
7740
7741
|
value: o,
|
|
7741
7742
|
allowIndeterminate: !0,
|
|
@@ -7854,12 +7855,12 @@ const ac = I.memo(
|
|
|
7854
7855
|
filterable: C = !0,
|
|
7855
7856
|
emptyComponent: S,
|
|
7856
7857
|
columns: D,
|
|
7857
|
-
forceFilter:
|
|
7858
|
+
forceFilter: P,
|
|
7858
7859
|
highlightedRow: R,
|
|
7859
|
-
endAdornment:
|
|
7860
|
+
endAdornment: j,
|
|
7860
7861
|
AddColumnComponent: ae
|
|
7861
7862
|
}) {
|
|
7862
|
-
const J = se(null), [H, K] = I.useState(void 0),
|
|
7863
|
+
const J = se(null), [H, K] = I.useState(void 0), O = () => {
|
|
7863
7864
|
!k || d || u || b !== void 0 && v?.(b + E);
|
|
7864
7865
|
}, re = x(() => {
|
|
7865
7866
|
v?.(E);
|
|
@@ -7873,7 +7874,7 @@ const ac = I.memo(
|
|
|
7873
7874
|
H && pe();
|
|
7874
7875
|
},
|
|
7875
7876
|
!!H
|
|
7876
|
-
),
|
|
7877
|
+
), G(() => {
|
|
7877
7878
|
const le = (z) => {
|
|
7878
7879
|
z.keyCode === 27 && pe();
|
|
7879
7880
|
};
|
|
@@ -7881,19 +7882,19 @@ const ac = I.memo(
|
|
|
7881
7882
|
document.removeEventListener("keydown", le, !1);
|
|
7882
7883
|
};
|
|
7883
7884
|
});
|
|
7884
|
-
const
|
|
7885
|
+
const q = x((le) => {
|
|
7885
7886
|
K(le);
|
|
7886
7887
|
}, []), pe = x(() => {
|
|
7887
7888
|
K(void 0);
|
|
7888
7889
|
}, []), oe = x((le) => {
|
|
7889
|
-
f?.({ ...le, ...
|
|
7890
|
-
}, [
|
|
7890
|
+
f?.({ ...le, ...P });
|
|
7891
|
+
}, [P]);
|
|
7891
7892
|
return /* @__PURE__ */ n(
|
|
7892
7893
|
Bo.Provider,
|
|
7893
7894
|
{
|
|
7894
7895
|
value: {
|
|
7895
7896
|
setPopupCell: _,
|
|
7896
|
-
select:
|
|
7897
|
+
select: q,
|
|
7897
7898
|
onValueChange: t,
|
|
7898
7899
|
size: s ?? "m",
|
|
7899
7900
|
selectedCell: H
|
|
@@ -7910,7 +7911,7 @@ const ac = I.memo(
|
|
|
7910
7911
|
columns: D,
|
|
7911
7912
|
cellRenderer: r,
|
|
7912
7913
|
onRowClick: c ? void 0 : i ? ie : void 0,
|
|
7913
|
-
onEndReached:
|
|
7914
|
+
onEndReached: O,
|
|
7914
7915
|
onResetPagination: re,
|
|
7915
7916
|
error: p,
|
|
7916
7917
|
paginationEnabled: k,
|
|
@@ -7927,7 +7928,7 @@ const ac = I.memo(
|
|
|
7927
7928
|
rowClassName: x((le) => R?.(le) ? "bg-gray-100 bg-opacity-75 dark:bg-gray-800 dark:bg-opacity-75" : "", [R]),
|
|
7928
7929
|
className: "flex-grow",
|
|
7929
7930
|
emptyComponent: S,
|
|
7930
|
-
endAdornment:
|
|
7931
|
+
endAdornment: j,
|
|
7931
7932
|
AddColumnComponent: ae
|
|
7932
7933
|
}
|
|
7933
7934
|
)
|
|
@@ -8034,17 +8035,17 @@ const Po = function({
|
|
|
8034
8035
|
endAdornment: C,
|
|
8035
8036
|
AddColumnComponent: S,
|
|
8036
8037
|
AdditionalHeaderWidget: D,
|
|
8037
|
-
additionalIDHeaderWidget:
|
|
8038
|
+
additionalIDHeaderWidget: P,
|
|
8038
8039
|
emptyComponent: R,
|
|
8039
|
-
getIdColumnWidth:
|
|
8040
|
+
getIdColumnWidth: j,
|
|
8040
8041
|
onTextSearchClick: ae,
|
|
8041
8042
|
textSearchLoading: J
|
|
8042
8043
|
}) {
|
|
8043
|
-
const H = se(null), K = We(),
|
|
8044
|
+
const H = se(null), K = We(), O = !!t, re = (d?.selectedEntities?.length > 0 ? d?.selectedEntities : u)?.filter(Boolean), ie = Be(), [q, pe] = I.useState(v ?? "m"), oe = re?.map((T) => T.id), le = x((T) => {
|
|
8044
8045
|
f && f(T), pe(T);
|
|
8045
|
-
}, []), z = x((T) => k.setSearchString?.(T), []), te = he(() => y ? y.map((T) => ({ [T.key]: T })).reduce((T,
|
|
8046
|
+
}, []), z = x((T) => k.setSearchString?.(T), []), te = he(() => y ? y.map((T) => ({ [T.key]: T })).reduce((T, $) => ({ ...T, ...$ }), {}) : {}, [y]), ne = s, V = ({
|
|
8046
8047
|
column: T,
|
|
8047
|
-
columnIndex:
|
|
8048
|
+
columnIndex: $,
|
|
8048
8049
|
rowData: be,
|
|
8049
8050
|
rowIndex: xe
|
|
8050
8051
|
}) => {
|
|
@@ -8064,29 +8065,29 @@ const Po = function({
|
|
|
8064
8065
|
property: Le,
|
|
8065
8066
|
value: de?.values ? Je(de.values, qe) : void 0,
|
|
8066
8067
|
customFieldValidator: ne,
|
|
8067
|
-
columnIndex:
|
|
8068
|
+
columnIndex: $,
|
|
8068
8069
|
width: T.width,
|
|
8069
|
-
height: vt(
|
|
8070
|
+
height: vt(q),
|
|
8070
8071
|
entity: de,
|
|
8071
8072
|
disabled: Ue,
|
|
8072
8073
|
path: de.path
|
|
8073
8074
|
},
|
|
8074
8075
|
`property_table_cell_${de.id}_${qe}`
|
|
8075
8076
|
) : it() }) : null;
|
|
8076
|
-
},
|
|
8077
|
+
}, M = x(({
|
|
8077
8078
|
column: T,
|
|
8078
|
-
rowData:
|
|
8079
|
+
rowData: $,
|
|
8079
8080
|
width: be
|
|
8080
8081
|
}) => {
|
|
8081
|
-
const xe =
|
|
8082
|
+
const xe = $, de = te[T.key], qe = de.dependencies ? Object.entries(xe.values).filter(([Le, Xe]) => de.dependencies.includes(Le)).reduce((Le, Xe) => ({ ...Le, ...Xe }), {}) : xe, Ue = de.Builder;
|
|
8082
8083
|
if (!Ue && !de.value)
|
|
8083
8084
|
throw new Error("When using additional fields you need to provide a Builder or a value");
|
|
8084
|
-
const ot = Ue ? /* @__PURE__ */ n(Ue, { entity: xe, context: ie }) : /* @__PURE__ */ n(
|
|
8085
|
+
const ot = Ue ? /* @__PURE__ */ n(Ue, { entity: xe, context: ie }) : /* @__PURE__ */ n(Y, { children: de.value?.({ entity: xe, context: ie }) });
|
|
8085
8086
|
return /* @__PURE__ */ n(
|
|
8086
|
-
|
|
8087
|
+
cr,
|
|
8087
8088
|
{
|
|
8088
8089
|
width: be,
|
|
8089
|
-
size:
|
|
8090
|
+
size: q,
|
|
8090
8091
|
value: qe,
|
|
8091
8092
|
selected: !1,
|
|
8092
8093
|
disabled: !0,
|
|
@@ -8098,63 +8099,63 @@ const Po = function({
|
|
|
8098
8099
|
},
|
|
8099
8100
|
`additional_table_cell_${xe.id}_${T.key}`
|
|
8100
8101
|
);
|
|
8101
|
-
}, [
|
|
8102
|
+
}, [q, oe]), Q = (() => {
|
|
8102
8103
|
const T = Ll({
|
|
8103
8104
|
properties: E,
|
|
8104
8105
|
sortable: _,
|
|
8105
8106
|
forceFilter: t,
|
|
8106
|
-
disabledFilter:
|
|
8107
|
+
disabledFilter: O,
|
|
8107
8108
|
AdditionalHeaderWidget: D
|
|
8108
|
-
}),
|
|
8109
|
+
}), $ = y ? y.map((be) => ({
|
|
8109
8110
|
key: be.key,
|
|
8110
8111
|
align: "left",
|
|
8111
8112
|
sortable: !1,
|
|
8112
8113
|
title: be.name,
|
|
8113
8114
|
width: be.width ?? 200
|
|
8114
8115
|
})) : [];
|
|
8115
|
-
return [...T,
|
|
8116
|
-
})(),
|
|
8116
|
+
return [...T, ...$];
|
|
8117
|
+
})(), ee = [
|
|
8117
8118
|
{
|
|
8118
8119
|
key: "id_ewcfedcswdf3",
|
|
8119
|
-
width:
|
|
8120
|
+
width: j?.() ?? (K ? 160 : 130),
|
|
8120
8121
|
title: "ID",
|
|
8121
8122
|
resizable: !1,
|
|
8122
8123
|
frozen: K,
|
|
8123
8124
|
headerAlign: "center",
|
|
8124
8125
|
align: "center",
|
|
8125
|
-
AdditionalHeaderWidget: () =>
|
|
8126
|
+
AdditionalHeaderWidget: () => P
|
|
8126
8127
|
},
|
|
8127
|
-
...b.map((T) =>
|
|
8128
|
+
...b.map((T) => Q.find(($) => $.key === T.key)).filter(Boolean)
|
|
8128
8129
|
], ye = (T) => {
|
|
8129
|
-
const
|
|
8130
|
+
const $ = T.column, be = T.columns, xe = $.key;
|
|
8130
8131
|
try {
|
|
8131
8132
|
if (T.columnIndex === 0)
|
|
8132
8133
|
return o ? o({
|
|
8133
8134
|
entity: T.rowData,
|
|
8134
|
-
size:
|
|
8135
|
-
width:
|
|
8136
|
-
frozen:
|
|
8135
|
+
size: q,
|
|
8136
|
+
width: $.width,
|
|
8137
|
+
frozen: $.frozen
|
|
8137
8138
|
}) : /* @__PURE__ */ n(
|
|
8138
8139
|
vi,
|
|
8139
8140
|
{
|
|
8140
8141
|
entity: T.rowData,
|
|
8141
|
-
width:
|
|
8142
|
-
frozen:
|
|
8142
|
+
width: $.width,
|
|
8143
|
+
frozen: $.frozen,
|
|
8143
8144
|
isSelected: !1,
|
|
8144
|
-
size:
|
|
8145
|
+
size: q
|
|
8145
8146
|
}
|
|
8146
8147
|
);
|
|
8147
8148
|
if (te[xe])
|
|
8148
|
-
return
|
|
8149
|
+
return M(T);
|
|
8149
8150
|
if (T.columnIndex < be.length + 1)
|
|
8150
|
-
return
|
|
8151
|
+
return V(T);
|
|
8151
8152
|
throw Error("Internal: columns not mapped properly");
|
|
8152
8153
|
} catch (de) {
|
|
8153
8154
|
return console.error("Error rendering cell", de), /* @__PURE__ */ n(
|
|
8154
|
-
|
|
8155
|
+
cr,
|
|
8155
8156
|
{
|
|
8156
|
-
size:
|
|
8157
|
-
width:
|
|
8157
|
+
size: q,
|
|
8158
|
+
width: $.width,
|
|
8158
8159
|
saved: !1,
|
|
8159
8160
|
value: null,
|
|
8160
8161
|
align: "left",
|
|
@@ -8177,7 +8178,7 @@ const Po = function({
|
|
|
8177
8178
|
onTextSearch: g ? z : void 0,
|
|
8178
8179
|
textSearchLoading: J,
|
|
8179
8180
|
onTextSearchClick: g ? ae : void 0,
|
|
8180
|
-
size:
|
|
8181
|
+
size: q,
|
|
8181
8182
|
onSizeChanged: le,
|
|
8182
8183
|
title: a,
|
|
8183
8184
|
actionsStart: r,
|
|
@@ -8188,8 +8189,8 @@ const Po = function({
|
|
|
8188
8189
|
/* @__PURE__ */ n(
|
|
8189
8190
|
ac,
|
|
8190
8191
|
{
|
|
8191
|
-
columns:
|
|
8192
|
-
size:
|
|
8192
|
+
columns: ee,
|
|
8193
|
+
size: q,
|
|
8193
8194
|
inlineEditing: A,
|
|
8194
8195
|
cellRenderer: ye,
|
|
8195
8196
|
onEntityClick: p,
|
|
@@ -8248,40 +8249,40 @@ function Qo({
|
|
|
8248
8249
|
return;
|
|
8249
8250
|
}
|
|
8250
8251
|
return s;
|
|
8251
|
-
}, [s, f]), [k, B] = I.useState(f ?? o ?? void 0), [_, C] = I.useState(E), S = _ ? _[0] : void 0, D = _ ? _[1] : void 0,
|
|
8252
|
+
}, [s, f]), [k, B] = I.useState(f ?? o ?? void 0), [_, C] = I.useState(E), S = _ ? _[0] : void 0, D = _ ? _[1] : void 0, P = Be(), [R, j] = F([]), [ae, J] = F(!1), [H, K] = F(), [O, re] = F(!1), ie = x((z, te) => p.isFilterCombinationValid ? p.isFilterCombinationValid({
|
|
8252
8253
|
path: m,
|
|
8253
8254
|
collection: t,
|
|
8254
8255
|
filterValues: z,
|
|
8255
8256
|
sortBy: te
|
|
8256
|
-
}) : !0, []),
|
|
8257
|
+
}) : !0, []), q = x(() => B(f ?? void 0), [f]), pe = x((z) => {
|
|
8257
8258
|
if (f) {
|
|
8258
8259
|
console.warn("Filter is not compatible with the force filter. Ignoring filter");
|
|
8259
8260
|
return;
|
|
8260
8261
|
}
|
|
8261
8262
|
z && Object.keys(z).length === 0 ? B(void 0) : B(z);
|
|
8262
8263
|
}, [f]);
|
|
8263
|
-
|
|
8264
|
+
G(() => {
|
|
8264
8265
|
J(!0);
|
|
8265
8266
|
const z = async (ne) => {
|
|
8266
8267
|
if (t.callbacks?.onFetch)
|
|
8267
8268
|
try {
|
|
8268
8269
|
ne = await Promise.all(
|
|
8269
|
-
ne.map((
|
|
8270
|
+
ne.map((V) => t.callbacks.onFetch({
|
|
8270
8271
|
collection: t,
|
|
8271
8272
|
path: m,
|
|
8272
|
-
entity:
|
|
8273
|
-
context:
|
|
8273
|
+
entity: V,
|
|
8274
|
+
context: P
|
|
8274
8275
|
}))
|
|
8275
8276
|
);
|
|
8276
|
-
} catch (
|
|
8277
|
-
console.error(
|
|
8277
|
+
} catch (V) {
|
|
8278
|
+
console.error(V);
|
|
8278
8279
|
}
|
|
8279
|
-
J(!1), K(void 0),
|
|
8280
|
-
...
|
|
8280
|
+
J(!1), K(void 0), j(ne.map((V) => ({
|
|
8281
|
+
...V
|
|
8281
8282
|
// values: sanitizeData(e.values, resolvedCollection.properties)
|
|
8282
8283
|
}))), re(!b || ne.length < b);
|
|
8283
8284
|
}, te = (ne) => {
|
|
8284
|
-
console.error("ERROR", ne), J(!1),
|
|
8285
|
+
console.error("ERROR", ne), J(!1), j([]), K(ne);
|
|
8285
8286
|
};
|
|
8286
8287
|
return p.listenCollection ? p.listenCollection({
|
|
8287
8288
|
path: m,
|
|
@@ -8318,7 +8319,7 @@ function Qo({
|
|
|
8318
8319
|
lastDeleteTimestamp: i
|
|
8319
8320
|
}),
|
|
8320
8321
|
dataLoading: ae,
|
|
8321
|
-
noMoreToLoad:
|
|
8322
|
+
noMoreToLoad: O,
|
|
8322
8323
|
dataLoadingError: H,
|
|
8323
8324
|
filterValues: k,
|
|
8324
8325
|
setFilterValues: pe,
|
|
@@ -8326,7 +8327,7 @@ function Qo({
|
|
|
8326
8327
|
setSortBy: C,
|
|
8327
8328
|
searchString: A,
|
|
8328
8329
|
setSearchString: y,
|
|
8329
|
-
clearFilter:
|
|
8330
|
+
clearFilter: q,
|
|
8330
8331
|
itemCount: b,
|
|
8331
8332
|
setItemCount: v,
|
|
8332
8333
|
paginationEnabled: g,
|
|
@@ -8372,33 +8373,33 @@ function uc({
|
|
|
8372
8373
|
}) {
|
|
8373
8374
|
const d = Bi(), u = mt(), p = _e(), m = Bt(), f = me(), g = p.resolveAliasesFrom(a), h = Ze(i), [A, y] = F([]), b = (H) => {
|
|
8374
8375
|
let K;
|
|
8375
|
-
const
|
|
8376
|
+
const O = v.selectedEntities;
|
|
8376
8377
|
if (m.onAnalyticsEvent?.("reference_selection_toggle", {
|
|
8377
8378
|
path: g,
|
|
8378
8379
|
entityId: H.id
|
|
8379
|
-
}),
|
|
8380
|
-
if (
|
|
8381
|
-
K =
|
|
8380
|
+
}), O) {
|
|
8381
|
+
if (O.map((re) => re.id).indexOf(H.id) > -1)
|
|
8382
|
+
K = O.filter((re) => re.id !== H.id);
|
|
8382
8383
|
else {
|
|
8383
|
-
if (l &&
|
|
8384
|
+
if (l && O.length >= l)
|
|
8384
8385
|
return;
|
|
8385
|
-
K = [...
|
|
8386
|
+
K = [...O, H];
|
|
8386
8387
|
}
|
|
8387
8388
|
v.setSelectedEntities(K), t && t(K);
|
|
8388
8389
|
}
|
|
8389
8390
|
}, v = Ro(b);
|
|
8390
|
-
|
|
8391
|
+
G(() => {
|
|
8391
8392
|
let H = !1;
|
|
8392
|
-
const K = o?.map((
|
|
8393
|
+
const K = o?.map((O) => O?.toString()).filter(Boolean);
|
|
8393
8394
|
return K && i ? Promise.all(
|
|
8394
|
-
K.map((
|
|
8395
|
+
K.map((O) => h.fetchEntity({
|
|
8395
8396
|
path: g,
|
|
8396
|
-
entityId:
|
|
8397
|
+
entityId: O,
|
|
8397
8398
|
collection: i
|
|
8398
8399
|
}))
|
|
8399
|
-
).then((
|
|
8400
|
+
).then((O) => {
|
|
8400
8401
|
if (!H) {
|
|
8401
|
-
const re =
|
|
8402
|
+
const re = O.filter((ie) => ie !== void 0);
|
|
8402
8403
|
v.setSelectedEntities(re), y(re);
|
|
8403
8404
|
}
|
|
8404
8405
|
}) : (v.setSelectedEntities([]), y([])), () => {
|
|
@@ -8429,18 +8430,18 @@ function uc({
|
|
|
8429
8430
|
}, _ = ({
|
|
8430
8431
|
entity: H,
|
|
8431
8432
|
size: K,
|
|
8432
|
-
width:
|
|
8433
|
+
width: O,
|
|
8433
8434
|
frozen: re
|
|
8434
8435
|
}) => {
|
|
8435
|
-
const ie = v.selectedEntities,
|
|
8436
|
+
const ie = v.selectedEntities, q = ie && ie.map((pe) => pe.id).indexOf(H.id) > -1;
|
|
8436
8437
|
return /* @__PURE__ */ n(
|
|
8437
8438
|
vi,
|
|
8438
8439
|
{
|
|
8439
|
-
width:
|
|
8440
|
+
width: O,
|
|
8440
8441
|
frozen: re,
|
|
8441
8442
|
entity: H,
|
|
8442
8443
|
size: K,
|
|
8443
|
-
isSelected:
|
|
8444
|
+
isSelected: q,
|
|
8444
8445
|
selectionEnabled: r,
|
|
8445
8446
|
hideId: i?.hideIdFromCollection,
|
|
8446
8447
|
fullPath: g,
|
|
@@ -8462,14 +8463,14 @@ function uc({
|
|
|
8462
8463
|
path: g,
|
|
8463
8464
|
values: {},
|
|
8464
8465
|
fields: f.propertyConfigs
|
|
8465
|
-
}), [i, f.propertyConfigs, g]), D = Io(S, !1),
|
|
8466
|
+
}), [i, f.propertyConfigs, g]), D = Io(S, !1), P = Qo({
|
|
8466
8467
|
fullPath: g,
|
|
8467
8468
|
collection: i,
|
|
8468
8469
|
entitiesDisplayedFirst: A,
|
|
8469
8470
|
forceFilter: c
|
|
8470
8471
|
}), {
|
|
8471
8472
|
textSearchLoading: R,
|
|
8472
|
-
textSearchInitialised:
|
|
8473
|
+
textSearchInitialised: j,
|
|
8473
8474
|
onTextSearchClick: ae,
|
|
8474
8475
|
textSearchEnabled: J
|
|
8475
8476
|
} = (
|
|
@@ -8484,11 +8485,11 @@ function uc({
|
|
|
8484
8485
|
Po,
|
|
8485
8486
|
{
|
|
8486
8487
|
textSearchLoading: R,
|
|
8487
|
-
onTextSearchClick:
|
|
8488
|
+
onTextSearchClick: j ? void 0 : ae,
|
|
8488
8489
|
textSearchEnabled: J,
|
|
8489
8490
|
displayedColumnIds: D,
|
|
8490
8491
|
onEntityClick: k,
|
|
8491
|
-
tableController:
|
|
8492
|
+
tableController: P,
|
|
8492
8493
|
tableRowActionsBuilder: _,
|
|
8493
8494
|
title: /* @__PURE__ */ n(L, { variant: "subtitle2", children: i.singularName ? `Select ${i.singularName}` : `Select from ${i.name}` }),
|
|
8494
8495
|
defaultSize: i.defaultSize,
|
|
@@ -8557,7 +8558,7 @@ function mc({
|
|
|
8557
8558
|
children: /* @__PURE__ */ n(st, {})
|
|
8558
8559
|
}
|
|
8559
8560
|
));
|
|
8560
|
-
return /* @__PURE__ */ w(
|
|
8561
|
+
return /* @__PURE__ */ w(Y, { children: [
|
|
8561
8562
|
/* @__PURE__ */ n(
|
|
8562
8563
|
ge,
|
|
8563
8564
|
{
|
|
@@ -8676,8 +8677,8 @@ function fc({
|
|
|
8676
8677
|
url: t,
|
|
8677
8678
|
icon: r
|
|
8678
8679
|
}) {
|
|
8679
|
-
return /* @__PURE__ */ n(
|
|
8680
|
-
|
|
8680
|
+
return /* @__PURE__ */ n(Y, { children: /* @__PURE__ */ w(
|
|
8681
|
+
pr,
|
|
8681
8682
|
{
|
|
8682
8683
|
tabIndex: 0,
|
|
8683
8684
|
className: X(
|
|
@@ -8761,7 +8762,7 @@ function hc({
|
|
|
8761
8762
|
) : null
|
|
8762
8763
|
));
|
|
8763
8764
|
}
|
|
8764
|
-
const h = /* @__PURE__ */ n(
|
|
8765
|
+
const h = /* @__PURE__ */ n(Y, { children: g });
|
|
8765
8766
|
return c === "admin" ? /* @__PURE__ */ n(
|
|
8766
8767
|
fc,
|
|
8767
8768
|
{
|
|
@@ -8834,16 +8835,16 @@ function Ac({ hidden: e }) {
|
|
|
8834
8835
|
}
|
|
8835
8836
|
const Rr = {};
|
|
8836
8837
|
function bc() {
|
|
8837
|
-
const e =
|
|
8838
|
+
const e = fr(), t = I.useRef(null), [r, i] = I.useState(0), [a, o] = I.useState("down"), s = x(() => {
|
|
8838
8839
|
!t.current || !e.key || (Rr[e.key] = t.current.scrollTop, i(t.current.scrollTop), o(t.current.scrollTop > r ? "down" : "up"));
|
|
8839
8840
|
}, [t, e.key, r]);
|
|
8840
|
-
return
|
|
8841
|
+
return G(() => {
|
|
8841
8842
|
const c = t.current;
|
|
8842
8843
|
if (c)
|
|
8843
8844
|
return c.addEventListener("scroll", s, { passive: !0 }), () => {
|
|
8844
8845
|
c && c.removeEventListener("scroll", s);
|
|
8845
8846
|
};
|
|
8846
|
-
}, [t, s, e]),
|
|
8847
|
+
}, [t, s, e]), G(() => {
|
|
8847
8848
|
!t.current || !Rr[e.key] || t.current.scrollTo(
|
|
8848
8849
|
{
|
|
8849
8850
|
top: Rr[e.key],
|
|
@@ -8877,7 +8878,7 @@ function yc({
|
|
|
8877
8878
|
navigationEntries: d,
|
|
8878
8879
|
groups: u
|
|
8879
8880
|
} = o.topLevelNavigation, [p, m] = F(null), f = p ? d.filter((v) => p.includes(v.url)) : d;
|
|
8880
|
-
|
|
8881
|
+
G(() => {
|
|
8881
8882
|
_t.addDocuments(d);
|
|
8882
8883
|
}, [d]);
|
|
8883
8884
|
const g = x(
|
|
@@ -8897,7 +8898,7 @@ function yc({
|
|
|
8897
8898
|
const v = {
|
|
8898
8899
|
context: i
|
|
8899
8900
|
};
|
|
8900
|
-
b = /* @__PURE__ */ n(
|
|
8901
|
+
b = /* @__PURE__ */ n(Y, { children: a.plugins.filter((E) => E.homePage?.includeSection).map((E, k) => {
|
|
8901
8902
|
const B = E.homePage.includeSection(v);
|
|
8902
8903
|
return /* @__PURE__ */ n(
|
|
8903
8904
|
rn,
|
|
@@ -8963,7 +8964,7 @@ function yc({
|
|
|
8963
8964
|
}
|
|
8964
8965
|
}
|
|
8965
8966
|
) }, `nav_${C.group}_${C.name}`)),
|
|
8966
|
-
k && k.map((C, S) => /* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(C, { ...B }) }, `nav_${v}_add_${S}`))
|
|
8967
|
+
v?.toLowerCase() !== "admin" && k && k.map((C, S) => /* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(C, { ...B }) }, `nav_${v}_add_${S}`))
|
|
8967
8968
|
] })
|
|
8968
8969
|
},
|
|
8969
8970
|
`plugin_section_${v}`
|
|
@@ -9057,7 +9058,7 @@ function wc({
|
|
|
9057
9058
|
}, E = zt(e.Actions).map((k, B) => /* @__PURE__ */ n(ue, { children: /* @__PURE__ */ n(k, { ...v }) }, `actions_${B}`));
|
|
9058
9059
|
return m && m.forEach((k, B) => {
|
|
9059
9060
|
k.collectionView?.CollectionActions && E.push(...zt(k.collectionView?.CollectionActions).map((_, C) => /* @__PURE__ */ n(ue, { children: /* @__PURE__ */ n(_, { ...v, ...k.collectionView?.collectionActionsProps }) }, `plugin_actions_${B}_${C}`)));
|
|
9060
|
-
}), /* @__PURE__ */ w(
|
|
9061
|
+
}), /* @__PURE__ */ w(Y, { children: [
|
|
9061
9062
|
E,
|
|
9062
9063
|
b,
|
|
9063
9064
|
A
|
|
@@ -9095,7 +9096,7 @@ function vc({
|
|
|
9095
9096
|
}, f = () => {
|
|
9096
9097
|
e.current && (e.current.style.top = `${i}px`, e.current.style.left = `${r}px`);
|
|
9097
9098
|
};
|
|
9098
|
-
|
|
9099
|
+
G(() => {
|
|
9099
9100
|
const g = e.current, h = t.current;
|
|
9100
9101
|
if (!(!g || !h))
|
|
9101
9102
|
return h && h.addEventListener("mousedown", d), g && g.addEventListener("mousedown", l), f(), () => {
|
|
@@ -9123,7 +9124,7 @@ const kc = ({ onResize: e }) => {
|
|
|
9123
9124
|
const s = r.current;
|
|
9124
9125
|
s && s.contentDocument && s.contentDocument.defaultView && s.contentDocument.defaultView.addEventListener("resize", a);
|
|
9125
9126
|
}, [a]);
|
|
9126
|
-
return
|
|
9127
|
+
return G(() => {
|
|
9127
9128
|
const s = r.current;
|
|
9128
9129
|
return () => {
|
|
9129
9130
|
s && s.contentDocument && s.contentDocument.defaultView && s.contentDocument.defaultView.removeEventListener("resize", a);
|
|
@@ -9276,7 +9277,7 @@ function nn({
|
|
|
9276
9277
|
const p = x((m) => {
|
|
9277
9278
|
m.stopPropagation(), m.preventDefault(), r(null);
|
|
9278
9279
|
}, [r]);
|
|
9279
|
-
return /* @__PURE__ */ w(
|
|
9280
|
+
return /* @__PURE__ */ w(Y, { children: [
|
|
9280
9281
|
/* @__PURE__ */ n(
|
|
9281
9282
|
et,
|
|
9282
9283
|
{
|
|
@@ -9490,7 +9491,7 @@ function xc({
|
|
|
9490
9491
|
title: c.name,
|
|
9491
9492
|
className: "text-text-secondary dark:text-text-secondary-dark"
|
|
9492
9493
|
}
|
|
9493
|
-
), k = /* @__PURE__ */ w(
|
|
9494
|
+
), k = /* @__PURE__ */ w(Y, { children: [
|
|
9494
9495
|
!h && /* @__PURE__ */ n(
|
|
9495
9496
|
Se,
|
|
9496
9497
|
{
|
|
@@ -9526,12 +9527,12 @@ function xc({
|
|
|
9526
9527
|
)
|
|
9527
9528
|
] })
|
|
9528
9529
|
] });
|
|
9529
|
-
return /* @__PURE__ */ w(
|
|
9530
|
+
return /* @__PURE__ */ w(Y, { children: [
|
|
9530
9531
|
!s && /* @__PURE__ */ n(
|
|
9531
9532
|
lt,
|
|
9532
9533
|
{
|
|
9533
|
-
titleClassName:
|
|
9534
|
-
className: X("px-2 md:px-4 pb-2 md:pb-4 pt-1 md:pt-2",
|
|
9534
|
+
titleClassName: nr,
|
|
9535
|
+
className: X("px-2 md:px-4 pb-2 md:pb-4 pt-1 md:pt-2", nr),
|
|
9535
9536
|
initiallyExpanded: m,
|
|
9536
9537
|
title: E,
|
|
9537
9538
|
children: k
|
|
@@ -9561,7 +9562,7 @@ function To({
|
|
|
9561
9562
|
collection: c
|
|
9562
9563
|
}) {
|
|
9563
9564
|
return /* @__PURE__ */ w("div", { className: X(
|
|
9564
|
-
|
|
9565
|
+
ur,
|
|
9565
9566
|
"relative m-4 border-box flex items-center justify-center",
|
|
9566
9567
|
s === "medium" ? "min-w-[220px] min-h-[220px] max-w-[220px]" : "min-w-[118px] min-h-[118px] max-w-[118px]"
|
|
9567
9568
|
), children: [
|
|
@@ -9643,7 +9644,7 @@ function an({
|
|
|
9643
9644
|
values: d.values,
|
|
9644
9645
|
path: d.path
|
|
9645
9646
|
};
|
|
9646
|
-
return /* @__PURE__ */ w(
|
|
9647
|
+
return /* @__PURE__ */ w(Y, { children: [
|
|
9647
9648
|
!s && /* @__PURE__ */ n(
|
|
9648
9649
|
Te,
|
|
9649
9650
|
{
|
|
@@ -9719,7 +9720,7 @@ function Fc({
|
|
|
9719
9720
|
onDrop: a,
|
|
9720
9721
|
onDropRejected: (C, S) => {
|
|
9721
9722
|
for (const D of C)
|
|
9722
|
-
for (const
|
|
9723
|
+
for (const P of D.errors)
|
|
9723
9724
|
b.open({
|
|
9724
9725
|
type: "error",
|
|
9725
9726
|
message: `Error uploading file: File is larger than ${e.maxSize} bytes`
|
|
@@ -9732,7 +9733,7 @@ function Fc({
|
|
|
9732
9733
|
{
|
|
9733
9734
|
...v(),
|
|
9734
9735
|
className: X(
|
|
9735
|
-
|
|
9736
|
+
nr,
|
|
9736
9737
|
r ? Bn : li,
|
|
9737
9738
|
Ec,
|
|
9738
9739
|
o && l.length ? "" : "flex",
|
|
@@ -9793,16 +9794,16 @@ function Fc({
|
|
|
9793
9794
|
{
|
|
9794
9795
|
draggableId: `array_field_${A}_${C.id}`,
|
|
9795
9796
|
index: S,
|
|
9796
|
-
children: (
|
|
9797
|
+
children: (P, R) => /* @__PURE__ */ n(
|
|
9797
9798
|
"div",
|
|
9798
9799
|
{
|
|
9799
9800
|
tabIndex: -1,
|
|
9800
|
-
ref:
|
|
9801
|
-
...
|
|
9802
|
-
...
|
|
9801
|
+
ref: P.innerRef,
|
|
9802
|
+
...P.draggableProps,
|
|
9803
|
+
...P.dragHandleProps,
|
|
9803
9804
|
className: X(zr, "rounded-md"),
|
|
9804
9805
|
style: {
|
|
9805
|
-
...
|
|
9806
|
+
...P.draggableProps.style
|
|
9806
9807
|
},
|
|
9807
9808
|
children: D
|
|
9808
9809
|
}
|
|
@@ -9957,7 +9958,7 @@ function Pt({
|
|
|
9957
9958
|
} else
|
|
9958
9959
|
i(A.target.value);
|
|
9959
9960
|
}, g = !!u, h = l.dataType === "number" ? "number" : void 0;
|
|
9960
|
-
return /* @__PURE__ */ w(
|
|
9961
|
+
return /* @__PURE__ */ w(Y, { children: [
|
|
9961
9962
|
/* @__PURE__ */ n(
|
|
9962
9963
|
bt,
|
|
9963
9964
|
{
|
|
@@ -10029,9 +10030,9 @@ const Qc = I.forwardRef(function({
|
|
|
10029
10030
|
property: d,
|
|
10030
10031
|
value: r,
|
|
10031
10032
|
setValue: i
|
|
10032
|
-
}), /* @__PURE__ */ w(
|
|
10033
|
+
}), /* @__PURE__ */ w(Y, { children: [
|
|
10033
10034
|
/* @__PURE__ */ n(
|
|
10034
|
-
|
|
10035
|
+
mr,
|
|
10035
10036
|
{
|
|
10036
10037
|
value: r,
|
|
10037
10038
|
onValueChange: (m) => i(m),
|
|
@@ -10078,7 +10079,7 @@ function Rc({
|
|
|
10078
10079
|
property: l,
|
|
10079
10080
|
value: t,
|
|
10080
10081
|
setValue: r
|
|
10081
|
-
}), /* @__PURE__ */ w(
|
|
10082
|
+
}), /* @__PURE__ */ w(Y, { children: [
|
|
10082
10083
|
/* @__PURE__ */ n(
|
|
10083
10084
|
Gt,
|
|
10084
10085
|
{
|
|
@@ -10124,7 +10125,7 @@ function Oo({
|
|
|
10124
10125
|
}) {
|
|
10125
10126
|
if (!c.entityId)
|
|
10126
10127
|
throw new Error("ReadOnlyFieldBinding: Entity id is null");
|
|
10127
|
-
return c.entityId, c.values, c.path, /* @__PURE__ */ w(
|
|
10128
|
+
return c.entityId, c.values, c.path, /* @__PURE__ */ w(Y, { children: [
|
|
10128
10129
|
!a && /* @__PURE__ */ n(
|
|
10129
10130
|
Te,
|
|
10130
10131
|
{
|
|
@@ -10137,7 +10138,7 @@ function Oo({
|
|
|
10137
10138
|
/* @__PURE__ */ n(
|
|
10138
10139
|
"div",
|
|
10139
10140
|
{
|
|
10140
|
-
className: X(
|
|
10141
|
+
className: X(ur, "min-h-14 p-4 md:p-6 overflow-x-scroll no-scrollbar"),
|
|
10141
10142
|
children: /* @__PURE__ */ n(ue, { children: /* @__PURE__ */ n(
|
|
10142
10143
|
Ie,
|
|
10143
10144
|
{
|
|
@@ -10200,7 +10201,7 @@ function Tc({
|
|
|
10200
10201
|
), A = x((y) => {
|
|
10201
10202
|
y.preventDefault(), h.open();
|
|
10202
10203
|
}, [h]);
|
|
10203
|
-
return /* @__PURE__ */ w(
|
|
10204
|
+
return /* @__PURE__ */ w(Y, { children: [
|
|
10204
10205
|
/* @__PURE__ */ n(
|
|
10205
10206
|
Te,
|
|
10206
10207
|
{
|
|
@@ -10216,7 +10217,7 @@ function Tc({
|
|
|
10216
10217
|
error: "The specified collection does not exist. Check console"
|
|
10217
10218
|
}
|
|
10218
10219
|
),
|
|
10219
|
-
f && /* @__PURE__ */ w(
|
|
10220
|
+
f && /* @__PURE__ */ w(Y, { children: [
|
|
10220
10221
|
e && /* @__PURE__ */ n(
|
|
10221
10222
|
He,
|
|
10222
10223
|
{
|
|
@@ -10288,14 +10289,14 @@ function Oc({
|
|
|
10288
10289
|
entityId: r.entityId,
|
|
10289
10290
|
fields: u.propertyConfigs
|
|
10290
10291
|
});
|
|
10291
|
-
if (f === null ||
|
|
10292
|
-
return /* @__PURE__ */ n(
|
|
10292
|
+
if (f === null || hr(f))
|
|
10293
|
+
return /* @__PURE__ */ n(Y, {});
|
|
10293
10294
|
if (qt(f))
|
|
10294
10295
|
m = Oo;
|
|
10295
10296
|
else if (f.Field)
|
|
10296
10297
|
typeof f.Field == "function" && (m = f.Field);
|
|
10297
10298
|
else {
|
|
10298
|
-
const h =
|
|
10299
|
+
const h = wr(f, u.propertyConfigs);
|
|
10299
10300
|
if (!h)
|
|
10300
10301
|
throw console.log("INTERNAL: Could not find field config for property", { propertyKey: e, resolvedProperty: f, fields: u.propertyConfigs, propertyConfig: h }), new Error(`INTERNAL: Could not find field config for property ${e}`);
|
|
10301
10302
|
m = ze({
|
|
@@ -10346,7 +10347,7 @@ function Mc({
|
|
|
10346
10347
|
},
|
|
10347
10348
|
fieldProps: p
|
|
10348
10349
|
}) {
|
|
10349
|
-
const { plugins: m } = me(), f = r.customProps, g = p.field.value, h =
|
|
10350
|
+
const { plugins: m } = me(), f = r.customProps, g = p.field.value, h = ir(p.form.errors, t), A = ir(p.form.touched, t), y = h && (p.form.submitCount > 0 || r.validation?.unique) && (!Array.isArray(h) || !!h.filter((C) => !!C).length), v = zc(d.path, d.collection, t, r, e, m) ?? e, E = p.form.isSubmitting, k = x((C, S) => {
|
|
10350
10351
|
p.form.setFieldTouched(t, !0, !1), p.form.setFieldValue(t, C, S);
|
|
10351
10352
|
}, []), B = x((C, S, D) => {
|
|
10352
10353
|
p.form.setFieldTouched(t, !0, !1), p.form.setFieldValue(C, S, D);
|
|
@@ -10426,7 +10427,7 @@ function Vc({
|
|
|
10426
10427
|
o.properties,
|
|
10427
10428
|
...Object.keys(t).filter((b) => b in o.properties)
|
|
10428
10429
|
) : h = {} : h = o.properties;
|
|
10429
|
-
const A = /* @__PURE__ */ n(
|
|
10430
|
+
const A = /* @__PURE__ */ n(Y, { children: /* @__PURE__ */ n("div", { className: "py-1 flex flex-col space-y-2", children: Object.entries(h).filter(([b, v]) => !hr(v)).map(
|
|
10430
10431
|
([b, v], E) => {
|
|
10431
10432
|
const k = {
|
|
10432
10433
|
propertyKey: `${e}.${b}`,
|
|
@@ -10513,7 +10514,7 @@ function Gc({
|
|
|
10513
10514
|
className: "text-text-secondary dark:text-text-secondary-dark"
|
|
10514
10515
|
}
|
|
10515
10516
|
);
|
|
10516
|
-
return /* @__PURE__ */ w(
|
|
10517
|
+
return /* @__PURE__ */ w(Y, { children: [
|
|
10517
10518
|
!c && /* @__PURE__ */ n(
|
|
10518
10519
|
lt,
|
|
10519
10520
|
{
|
|
@@ -10548,7 +10549,7 @@ function Ei({
|
|
|
10548
10549
|
dataType: Jr(e?.[l]) ?? "string"
|
|
10549
10550
|
}])
|
|
10550
10551
|
);
|
|
10551
|
-
|
|
10552
|
+
G(() => {
|
|
10552
10553
|
const l = a.map(([f, { key: g }]) => g), d = Object.entries(e ?? {}).filter(([f, g]) => g !== void 0).map(([f]) => f), u = d.filter((f) => !l.includes(f)), p = l.filter((f) => !d.includes(f)), m = [...a];
|
|
10553
10554
|
u.forEach((f) => {
|
|
10554
10555
|
m.push([Dr(), {
|
|
@@ -10695,7 +10696,7 @@ function jc({
|
|
|
10695
10696
|
}
|
|
10696
10697
|
}
|
|
10697
10698
|
) : h === "boolean" ? /* @__PURE__ */ n(
|
|
10698
|
-
|
|
10699
|
+
mr,
|
|
10699
10700
|
{
|
|
10700
10701
|
value: f,
|
|
10701
10702
|
size: "small",
|
|
@@ -10776,7 +10777,7 @@ function jc({
|
|
|
10776
10777
|
function m(f) {
|
|
10777
10778
|
l(e, f);
|
|
10778
10779
|
}
|
|
10779
|
-
return /* @__PURE__ */ w(
|
|
10780
|
+
return /* @__PURE__ */ w(Y, { children: [
|
|
10780
10781
|
/* @__PURE__ */ w(
|
|
10781
10782
|
L,
|
|
10782
10783
|
{
|
|
@@ -10912,7 +10913,7 @@ function Yc({
|
|
|
10912
10913
|
}
|
|
10913
10914
|
}
|
|
10914
10915
|
) : u === "boolean" ? /* @__PURE__ */ n(
|
|
10915
|
-
|
|
10916
|
+
mr,
|
|
10916
10917
|
{
|
|
10917
10918
|
value: d,
|
|
10918
10919
|
size: "small",
|
|
@@ -10937,7 +10938,7 @@ function Yc({
|
|
|
10937
10938
|
}
|
|
10938
10939
|
);
|
|
10939
10940
|
}
|
|
10940
|
-
return /* @__PURE__ */ w(
|
|
10941
|
+
return /* @__PURE__ */ w(Y, { children: [
|
|
10941
10942
|
/* @__PURE__ */ w(
|
|
10942
10943
|
L,
|
|
10943
10944
|
{
|
|
@@ -11089,7 +11090,7 @@ function qc({
|
|
|
11089
11090
|
className: "text-text-secondary dark:text-text-secondary-dark"
|
|
11090
11091
|
}
|
|
11091
11092
|
);
|
|
11092
|
-
return /* @__PURE__ */ w(
|
|
11093
|
+
return /* @__PURE__ */ w(Y, { children: [
|
|
11093
11094
|
!c && /* @__PURE__ */ n(
|
|
11094
11095
|
lt,
|
|
11095
11096
|
{
|
|
@@ -11142,7 +11143,7 @@ function Uc({
|
|
|
11142
11143
|
index: E,
|
|
11143
11144
|
value: t[E],
|
|
11144
11145
|
typeField: l.oneOf.typeField ?? Rt,
|
|
11145
|
-
valueField: l.oneOf.valueField ??
|
|
11146
|
+
valueField: l.oneOf.valueField ?? or,
|
|
11146
11147
|
properties: l.oneOf.properties,
|
|
11147
11148
|
autoFocus: k === g,
|
|
11148
11149
|
context: p
|
|
@@ -11169,11 +11170,11 @@ function Uc({
|
|
|
11169
11170
|
setFieldValue: s,
|
|
11170
11171
|
newDefaultEntry: {
|
|
11171
11172
|
[l.oneOf.typeField ?? Rt]: b,
|
|
11172
|
-
[l.oneOf.valueField ??
|
|
11173
|
+
[l.oneOf.valueField ?? or]: hi(l.oneOf.properties[b])
|
|
11173
11174
|
}
|
|
11174
11175
|
}
|
|
11175
11176
|
);
|
|
11176
|
-
return /* @__PURE__ */ w(
|
|
11177
|
+
return /* @__PURE__ */ w(Y, { children: [
|
|
11177
11178
|
!c && /* @__PURE__ */ n(
|
|
11178
11179
|
lt,
|
|
11179
11180
|
{
|
|
@@ -11207,9 +11208,9 @@ function Lc({
|
|
|
11207
11208
|
context: c
|
|
11208
11209
|
}) {
|
|
11209
11210
|
const l = r && r[i], [d, u] = F(l ?? void 0), p = Zr();
|
|
11210
|
-
|
|
11211
|
+
G(() => {
|
|
11211
11212
|
l || y(Object.keys(o)[0]);
|
|
11212
|
-
}, []),
|
|
11213
|
+
}, []), G(() => {
|
|
11213
11214
|
l !== d && u(l);
|
|
11214
11215
|
}, [l]);
|
|
11215
11216
|
const m = d ? o[d] : void 0, f = Object.entries(o).map(([b, v]) => ({
|
|
@@ -11227,14 +11228,14 @@ function Lc({
|
|
|
11227
11228
|
const v = b ? o[b] : void 0;
|
|
11228
11229
|
u(b), p.setFieldTouched(g, !0), p.setFieldValue(g, b), p.setFieldValue(h, v ? hi(v) : null);
|
|
11229
11230
|
};
|
|
11230
|
-
return /* @__PURE__ */ w("div", { className: X(
|
|
11231
|
+
return /* @__PURE__ */ w("div", { className: X(ur, "bg-transparent p-4 my-4 py-8"), children: [
|
|
11231
11232
|
/* @__PURE__ */ n(
|
|
11232
11233
|
un,
|
|
11233
11234
|
{
|
|
11234
11235
|
name: g,
|
|
11235
11236
|
children: (b) => {
|
|
11236
11237
|
const v = b.field.value !== void 0 && b.field.value !== null ? b.field.value : "";
|
|
11237
|
-
return /* @__PURE__ */ n(
|
|
11238
|
+
return /* @__PURE__ */ n(Y, { children: /* @__PURE__ */ n(
|
|
11238
11239
|
et,
|
|
11239
11240
|
{
|
|
11240
11241
|
className: "mb-2",
|
|
@@ -11288,9 +11289,9 @@ function Lc({
|
|
|
11288
11289
|
}
|
|
11289
11290
|
const $c = new ns();
|
|
11290
11291
|
try {
|
|
11291
|
-
|
|
11292
|
+
er.use(Br.AutoResize, {
|
|
11292
11293
|
min: 100
|
|
11293
|
-
}),
|
|
11294
|
+
}), er.unuse(Br.FontUnderline), er.unuse(Br.Clear);
|
|
11294
11295
|
} catch {
|
|
11295
11296
|
}
|
|
11296
11297
|
function Wc({
|
|
@@ -11313,11 +11314,11 @@ function Wc({
|
|
|
11313
11314
|
internalValue: m,
|
|
11314
11315
|
value: t
|
|
11315
11316
|
});
|
|
11316
|
-
return
|
|
11317
|
+
return G(() => {
|
|
11317
11318
|
g.current = t, f(t);
|
|
11318
|
-
}, [t]),
|
|
11319
|
+
}, [t]), G(() => {
|
|
11319
11320
|
h.internalValue !== g.current && r(h.internalValue);
|
|
11320
|
-
}, [h]), /* @__PURE__ */ w(
|
|
11321
|
+
}, [h]), /* @__PURE__ */ w(Y, { children: [
|
|
11321
11322
|
!d && /* @__PURE__ */ n(
|
|
11322
11323
|
L,
|
|
11323
11324
|
{
|
|
@@ -11335,11 +11336,11 @@ function Wc({
|
|
|
11335
11336
|
}
|
|
11336
11337
|
),
|
|
11337
11338
|
/* @__PURE__ */ n(
|
|
11338
|
-
|
|
11339
|
+
er,
|
|
11339
11340
|
{
|
|
11340
11341
|
value: m ?? "",
|
|
11341
11342
|
className: X(
|
|
11342
|
-
|
|
11343
|
+
nr,
|
|
11343
11344
|
o ? Bn : li,
|
|
11344
11345
|
"text-base"
|
|
11345
11346
|
),
|
|
@@ -11999,7 +12000,7 @@ function Hc({
|
|
|
11999
12000
|
};
|
|
12000
12001
|
return /* @__PURE__ */ n("div", { className: "pb-4", children: /* @__PURE__ */ n(Ct, { ...y }) }, `custom_shaped_array_${A}`);
|
|
12001
12002
|
});
|
|
12002
|
-
return /* @__PURE__ */ w(
|
|
12003
|
+
return /* @__PURE__ */ w(Y, { children: [
|
|
12003
12004
|
!s && /* @__PURE__ */ n(
|
|
12004
12005
|
lt,
|
|
12005
12006
|
{
|
|
@@ -12024,7 +12025,7 @@ function Hc({
|
|
|
12024
12025
|
}
|
|
12025
12026
|
const Zc = ({ containerRef: e }) => {
|
|
12026
12027
|
const { isSubmitting: t, isValidating: r, errors: i } = Zr();
|
|
12027
|
-
return
|
|
12028
|
+
return G(() => {
|
|
12028
12029
|
const a = Object.keys(i);
|
|
12029
12030
|
if (a.length > 0 && t && !r) {
|
|
12030
12031
|
const o = e?.current?.querySelector(
|
|
@@ -12070,7 +12071,7 @@ function Kc({
|
|
|
12070
12071
|
disabled: l || s,
|
|
12071
12072
|
name: "id",
|
|
12072
12073
|
value: (o && r === "existing" ? o.id : t) ?? "",
|
|
12073
|
-
endAdornment: s ? /* @__PURE__ */ n(jt, { size: "small" }) : o ? /* @__PURE__ */ w(
|
|
12074
|
+
endAdornment: s ? /* @__PURE__ */ n(jt, { size: "small" }) : o ? /* @__PURE__ */ w(Y, { children: [
|
|
12074
12075
|
/* @__PURE__ */ n(ve, { title: "Copy", children: /* @__PURE__ */ n(
|
|
12075
12076
|
ce,
|
|
12076
12077
|
{
|
|
@@ -12088,12 +12089,12 @@ function Kc({
|
|
|
12088
12089
|
target: "_blank",
|
|
12089
12090
|
onClick: (h) => h.stopPropagation(),
|
|
12090
12091
|
"aria-label": "go-to-datasource",
|
|
12091
|
-
children: /* @__PURE__ */ n(
|
|
12092
|
+
children: /* @__PURE__ */ n(dr, { size: "small" })
|
|
12092
12093
|
}
|
|
12093
12094
|
) })
|
|
12094
12095
|
] }) : void 0
|
|
12095
12096
|
};
|
|
12096
|
-
return /* @__PURE__ */ w(
|
|
12097
|
+
return /* @__PURE__ */ w(Y, { children: [
|
|
12097
12098
|
u && /* @__PURE__ */ n(
|
|
12098
12099
|
et,
|
|
12099
12100
|
{
|
|
@@ -12170,21 +12171,21 @@ function zo({
|
|
|
12170
12171
|
r();
|
|
12171
12172
|
}, [r]), E = x((R) => {
|
|
12172
12173
|
console.debug("Deleted", R);
|
|
12173
|
-
}, []), k = x((R,
|
|
12174
|
+
}, []), k = x((R, j) => {
|
|
12174
12175
|
u.open({
|
|
12175
12176
|
type: "error",
|
|
12176
|
-
message: "Error deleting: " +
|
|
12177
|
-
}), console.error("Error deleting entity"), console.error(
|
|
12178
|
-
}, [b.name]), B = x((R,
|
|
12177
|
+
message: "Error deleting: " + j?.message
|
|
12178
|
+
}), console.error("Error deleting entity"), console.error(j);
|
|
12179
|
+
}, [b.name]), B = x((R, j) => {
|
|
12179
12180
|
u.open({
|
|
12180
12181
|
type: "error",
|
|
12181
|
-
message: "Error before deleting: " +
|
|
12182
|
-
}), console.error(
|
|
12183
|
-
}, [b.name]), _ = x((R,
|
|
12182
|
+
message: "Error before deleting: " + j?.message
|
|
12183
|
+
}), console.error(j);
|
|
12184
|
+
}, [b.name]), _ = x((R, j) => {
|
|
12184
12185
|
u.open({
|
|
12185
12186
|
type: "error",
|
|
12186
|
-
message: "Error after deleting: " +
|
|
12187
|
-
}), console.error(
|
|
12187
|
+
message: "Error after deleting: " + j?.message
|
|
12188
|
+
}), console.error(j);
|
|
12188
12189
|
}, [b.name]), C = x((R) => Ts({
|
|
12189
12190
|
dataSource: l,
|
|
12190
12191
|
entity: R,
|
|
@@ -12216,7 +12217,7 @@ function zo({
|
|
|
12216
12217
|
}, [f, h, C, s, c, r, u, b.name, o]);
|
|
12217
12218
|
let D;
|
|
12218
12219
|
if (f && h)
|
|
12219
|
-
D = /* @__PURE__ */ n(
|
|
12220
|
+
D = /* @__PURE__ */ n(Y, { children: "Multiple entities" });
|
|
12220
12221
|
else {
|
|
12221
12222
|
const R = f;
|
|
12222
12223
|
D = R ? /* @__PURE__ */ n(
|
|
@@ -12226,9 +12227,9 @@ function zo({
|
|
|
12226
12227
|
collection: t,
|
|
12227
12228
|
path: c
|
|
12228
12229
|
}
|
|
12229
|
-
) : /* @__PURE__ */ n(
|
|
12230
|
+
) : /* @__PURE__ */ n(Y, {});
|
|
12230
12231
|
}
|
|
12231
|
-
const
|
|
12232
|
+
const P = h ? /* @__PURE__ */ w(Y, { children: [
|
|
12232
12233
|
/* @__PURE__ */ n("b", { children: b.name }),
|
|
12233
12234
|
": Confirm multiple delete?"
|
|
12234
12235
|
] }) : `Would you like to delete this ${b.singularName ?? b.name}?`;
|
|
@@ -12241,7 +12242,7 @@ function zo({
|
|
|
12241
12242
|
onOpenChange: (R) => R ? void 0 : r(),
|
|
12242
12243
|
children: [
|
|
12243
12244
|
/* @__PURE__ */ w(di, { fullHeight: !0, children: [
|
|
12244
|
-
/* @__PURE__ */ n(L, { variant: "subtitle2", className: "p-4", children:
|
|
12245
|
+
/* @__PURE__ */ n(L, { variant: "subtitle2", className: "p-4", children: P }),
|
|
12245
12246
|
!h && /* @__PURE__ */ n("div", { className: "p-4", children: D })
|
|
12246
12247
|
] }),
|
|
12247
12248
|
/* @__PURE__ */ w(xt, { children: [
|
|
@@ -12391,9 +12392,9 @@ const rd = I.memo(
|
|
|
12391
12392
|
function sn(e, t, r) {
|
|
12392
12393
|
const i = e.properties;
|
|
12393
12394
|
if ((t === "existing" || t === "copy") && r)
|
|
12394
|
-
return r.values ??
|
|
12395
|
+
return r.values ?? ar(i);
|
|
12395
12396
|
if (t === "new")
|
|
12396
|
-
return
|
|
12397
|
+
return ar(i);
|
|
12397
12398
|
throw console.error({
|
|
12398
12399
|
status: t,
|
|
12399
12400
|
entity: r
|
|
@@ -12419,24 +12420,24 @@ function id({
|
|
|
12419
12420
|
path: t,
|
|
12420
12421
|
values: i?.values,
|
|
12421
12422
|
fields: g.propertyConfigs
|
|
12422
|
-
}), [i?.values, t]), v = (e === "new" || e === "copy") && !!b.customId && b.customId !== "optional", E = he(() => e === "new" || e === "copy" ? v ? void 0 : A.generateEntityId(t) : i?.id, []), k = se(!1), B = se(sn(b, e, i)), [_, C] = I.useState(E), [S, D] = I.useState(!1), [
|
|
12423
|
-
collection:
|
|
12423
|
+
}), [i?.values, t]), v = (e === "new" || e === "copy") && !!b.customId && b.customId !== "optional", E = he(() => e === "new" || e === "copy" ? v ? void 0 : A.generateEntityId(t) : i?.id, []), k = se(!1), B = se(sn(b, e, i)), [_, C] = I.useState(E), [S, D] = I.useState(!1), [P, R] = I.useState(), [j, ae] = I.useState(!1), [J, H] = F(i?.values ?? B.current), K = (T) => a({
|
|
12424
|
+
collection: q,
|
|
12424
12425
|
path: t,
|
|
12425
12426
|
entityId: _,
|
|
12426
12427
|
values: T,
|
|
12427
12428
|
previousValues: i?.values,
|
|
12428
12429
|
closeAfterSave: k.current,
|
|
12429
12430
|
autoSave: p ?? !1
|
|
12430
|
-
}).then((
|
|
12431
|
+
}).then(($) => {
|
|
12431
12432
|
const be = e === "new" ? "new_entity_saved" : e === "copy" ? "entity_copied" : e === "existing" ? "entity_edited" : "unmapped_event";
|
|
12432
12433
|
f.onAnalyticsEvent?.(be, { path: t });
|
|
12433
|
-
}).catch((
|
|
12434
|
-
console.error(
|
|
12434
|
+
}).catch(($) => {
|
|
12435
|
+
console.error($), R($);
|
|
12435
12436
|
}).finally(() => {
|
|
12436
12437
|
k.current = !1;
|
|
12437
|
-
}),
|
|
12438
|
+
}), O = (T, $) => {
|
|
12438
12439
|
if (v && !_) {
|
|
12439
|
-
console.error("Missing custom Id"), D(!0),
|
|
12440
|
+
console.error("Missing custom Id"), D(!0), $.setSubmitting(!1);
|
|
12440
12441
|
return;
|
|
12441
12442
|
}
|
|
12442
12443
|
if (R(void 0), D(!1), e === "existing") {
|
|
@@ -12448,56 +12449,56 @@ function id({
|
|
|
12448
12449
|
} else
|
|
12449
12450
|
throw Error("New FormType added, check EntityForm");
|
|
12450
12451
|
return K(T)?.then((be) => {
|
|
12451
|
-
|
|
12452
|
+
$.resetForm({
|
|
12452
12453
|
values: T,
|
|
12453
12454
|
submitCount: 0,
|
|
12454
12455
|
touched: {}
|
|
12455
12456
|
});
|
|
12456
12457
|
}).finally(() => {
|
|
12457
|
-
|
|
12458
|
+
$.setSubmitting(!1);
|
|
12458
12459
|
});
|
|
12459
12460
|
}, re = mn({
|
|
12460
12461
|
initialValues: B.current,
|
|
12461
|
-
onSubmit:
|
|
12462
|
-
validation: (T) =>
|
|
12462
|
+
onSubmit: O,
|
|
12463
|
+
validation: (T) => M?.validate(T, { abortEarly: !1 }).then(() => ({})).catch(($) => {
|
|
12463
12464
|
const be = {};
|
|
12464
|
-
return
|
|
12465
|
+
return $.inner.forEach((xe) => {
|
|
12465
12466
|
be[xe.path] = xe.message;
|
|
12466
|
-
}), od(
|
|
12467
|
+
}), od($);
|
|
12467
12468
|
})
|
|
12468
12469
|
});
|
|
12469
|
-
|
|
12470
|
+
G(() => {
|
|
12470
12471
|
B.current = sn(b, e, i);
|
|
12471
12472
|
const T = re.initialValues;
|
|
12472
12473
|
!re.isSubmitting && T && e === "existing" ? ne(
|
|
12473
|
-
Object.entries(
|
|
12474
|
-
if (
|
|
12474
|
+
Object.entries(q.properties).map(([$, be]) => {
|
|
12475
|
+
if (hr(be))
|
|
12475
12476
|
return {};
|
|
12476
|
-
const xe = T[
|
|
12477
|
-
return Z(xe, de) ? {} : { [
|
|
12478
|
-
}).reduce((
|
|
12477
|
+
const xe = T[$], de = B.current[$];
|
|
12478
|
+
return Z(xe, de) ? {} : { [$]: de };
|
|
12479
|
+
}).reduce(($, be) => ({ ...$, ...be }), {})
|
|
12479
12480
|
) : ne({});
|
|
12480
12481
|
}, [i, b, e]);
|
|
12481
12482
|
const ie = (T) => {
|
|
12482
|
-
const
|
|
12483
|
-
H(T), c && c(T), p && T && !Z(T,
|
|
12483
|
+
const $ = re.initialValues;
|
|
12484
|
+
H(T), c && c(T), p && T && !Z(T, $) && K(T);
|
|
12484
12485
|
};
|
|
12485
|
-
|
|
12486
|
+
G(() => {
|
|
12486
12487
|
_ && l && l(_);
|
|
12487
12488
|
}, [_, l]);
|
|
12488
|
-
const
|
|
12489
|
+
const q = je({
|
|
12489
12490
|
collection: r,
|
|
12490
12491
|
path: t,
|
|
12491
12492
|
entityId: _,
|
|
12492
12493
|
values: J,
|
|
12493
12494
|
previousValues: re.initialValues,
|
|
12494
12495
|
fields: g.propertyConfigs
|
|
12495
|
-
}), pe = Hn(
|
|
12496
|
+
}), pe = Hn(q, g.propertyConfigs), oe = J && pe ? Je(J, pe) : void 0, le = r.callbacks?.onIdUpdate, z = x(async () => {
|
|
12496
12497
|
if (le && J && (e === "new" || e === "copy")) {
|
|
12497
12498
|
ae(!0);
|
|
12498
12499
|
try {
|
|
12499
12500
|
const T = await le({
|
|
12500
|
-
collection:
|
|
12501
|
+
collection: q,
|
|
12501
12502
|
path: t,
|
|
12502
12503
|
entityId: _,
|
|
12503
12504
|
values: J,
|
|
@@ -12510,38 +12511,38 @@ function id({
|
|
|
12510
12511
|
ae(!1);
|
|
12511
12512
|
}
|
|
12512
12513
|
}, [_, J, e]);
|
|
12513
|
-
|
|
12514
|
+
G(() => {
|
|
12514
12515
|
z();
|
|
12515
12516
|
}, [z]);
|
|
12516
|
-
const [te, ne] = F({}),
|
|
12517
|
+
const [te, ne] = F({}), V = x(
|
|
12517
12518
|
({
|
|
12518
12519
|
name: T,
|
|
12519
|
-
value:
|
|
12520
|
+
value: $,
|
|
12520
12521
|
property: be
|
|
12521
|
-
}) => A.checkUniqueField(t, T,
|
|
12522
|
+
}) => A.checkUniqueField(t, T, $, _),
|
|
12522
12523
|
[A, t, _]
|
|
12523
|
-
),
|
|
12524
|
+
), M = he(
|
|
12524
12525
|
() => _ ? Eo(
|
|
12525
12526
|
_,
|
|
12526
|
-
|
|
12527
|
-
|
|
12527
|
+
q.properties,
|
|
12528
|
+
V
|
|
12528
12529
|
) : void 0,
|
|
12529
|
-
[_,
|
|
12530
|
-
),
|
|
12530
|
+
[_, q.properties, V]
|
|
12531
|
+
), Q = ut(), N = x(({
|
|
12531
12532
|
entity: T,
|
|
12532
|
-
customEntityActions:
|
|
12533
|
+
customEntityActions: $
|
|
12533
12534
|
}) => {
|
|
12534
|
-
const be = Tt(r,
|
|
12535
|
-
return be && de.push(Vo), xe && de.push(Go),
|
|
12536
|
-
}, [
|
|
12535
|
+
const be = Tt(r, Q, t, null), xe = T ? yi(r, Q, t, T) : !0, de = [];
|
|
12536
|
+
return be && de.push(Vo), xe && de.push(Go), $ && de.push(...$), de;
|
|
12537
|
+
}, [Q, r, t]), ee = [], ye = {
|
|
12537
12538
|
setFieldValue: re.setFieldValue,
|
|
12538
12539
|
values: re.values,
|
|
12539
|
-
collection:
|
|
12540
|
+
collection: q,
|
|
12540
12541
|
entityId: _,
|
|
12541
12542
|
path: t,
|
|
12542
12543
|
save: K
|
|
12543
12544
|
};
|
|
12544
|
-
if (
|
|
12545
|
+
if (G(() => {
|
|
12545
12546
|
d && d(ye);
|
|
12546
12547
|
}, [d, ye]), y && r) {
|
|
12547
12548
|
const T = {
|
|
@@ -12553,27 +12554,27 @@ function id({
|
|
|
12553
12554
|
currentEntityId: _,
|
|
12554
12555
|
formContext: ye
|
|
12555
12556
|
};
|
|
12556
|
-
|
|
12557
|
-
|
|
12557
|
+
ee.push(...y.map(($, be) => $.form?.Actions ? /* @__PURE__ */ n(
|
|
12558
|
+
$.form.Actions,
|
|
12558
12559
|
{
|
|
12559
12560
|
...T
|
|
12560
12561
|
},
|
|
12561
|
-
`actions_${
|
|
12562
|
+
`actions_${$.key}`
|
|
12562
12563
|
) : null).filter(Boolean));
|
|
12563
12564
|
}
|
|
12564
12565
|
return /* @__PURE__ */ n(pn, { value: re, children: /* @__PURE__ */ w("div", { className: "h-full overflow-auto", children: [
|
|
12565
|
-
|
|
12566
|
+
ee.length > 0 && /* @__PURE__ */ n(
|
|
12566
12567
|
"div",
|
|
12567
12568
|
{
|
|
12568
12569
|
className: X("w-full flex justify-end items-center sticky top-0 right-0 left-0 z-10 bg-opacity-60 bg-slate-200 dark:bg-opacity-60 dark:bg-slate-800 backdrop-blur-md"),
|
|
12569
|
-
children:
|
|
12570
|
+
children: ee
|
|
12570
12571
|
}
|
|
12571
12572
|
),
|
|
12572
12573
|
/* @__PURE__ */ w("div", { className: "pt-12 pb-16 pl-8 pr-8 md:pl-10 md:pr-10", children: [
|
|
12573
12574
|
/* @__PURE__ */ w(
|
|
12574
12575
|
"div",
|
|
12575
12576
|
{
|
|
12576
|
-
className: `w-full py-2 flex flex-col items-start mt-${4 + (
|
|
12577
|
+
className: `w-full py-2 flex flex-col items-start mt-${4 + (ee ? 8 : 0)} lg:mt-${8 + (ee ? 8 : 0)} mb-8`,
|
|
12577
12578
|
children: [
|
|
12578
12579
|
/* @__PURE__ */ n(
|
|
12579
12580
|
L,
|
|
@@ -12599,7 +12600,7 @@ function id({
|
|
|
12599
12600
|
status: e,
|
|
12600
12601
|
onChange: C,
|
|
12601
12602
|
error: S,
|
|
12602
|
-
loading:
|
|
12603
|
+
loading: j,
|
|
12603
12604
|
entity: i
|
|
12604
12605
|
}
|
|
12605
12606
|
),
|
|
@@ -12613,13 +12614,13 @@ function id({
|
|
|
12613
12614
|
onValuesChanged: ie,
|
|
12614
12615
|
underlyingChanges: te,
|
|
12615
12616
|
entity: i,
|
|
12616
|
-
resolvedCollection:
|
|
12617
|
+
resolvedCollection: q,
|
|
12617
12618
|
formContext: ye,
|
|
12618
12619
|
status: e,
|
|
12619
|
-
savingError:
|
|
12620
|
+
savingError: P,
|
|
12620
12621
|
closeAfterSaveRef: k,
|
|
12621
12622
|
autoSave: p,
|
|
12622
|
-
entityActions:
|
|
12623
|
+
entityActions: N({
|
|
12623
12624
|
entity: i,
|
|
12624
12625
|
customEntityActions: r.entityActions
|
|
12625
12626
|
})
|
|
@@ -12649,28 +12650,28 @@ function nd(e) {
|
|
|
12649
12650
|
closeAfterSaveRef: y,
|
|
12650
12651
|
autoSave: b,
|
|
12651
12652
|
entityActions: v
|
|
12652
|
-
} = e, E = Be(), k = v.filter((
|
|
12653
|
-
|
|
12653
|
+
} = e, E = Be(), k = v.filter((P) => P.includeInForm === void 0 || P.includeInForm), B = mt(), _ = A;
|
|
12654
|
+
G(() => {
|
|
12654
12655
|
i && i(_), a && a(t);
|
|
12655
|
-
}, [_, t]),
|
|
12656
|
-
!b && !p && o && c && Object.entries(o).forEach(([
|
|
12657
|
-
const
|
|
12658
|
-
!Z(R,
|
|
12656
|
+
}, [_, t]), G(() => {
|
|
12657
|
+
!b && !p && o && c && Object.entries(o).forEach(([P, R]) => {
|
|
12658
|
+
const j = t[P];
|
|
12659
|
+
!Z(R, j) && !l[P] && (console.debug("Updated value from the datasource:", P, R), d(P, R !== void 0 ? R : null));
|
|
12659
12660
|
});
|
|
12660
12661
|
}, [p, b, o, c, t, l, d]);
|
|
12661
|
-
const C = /* @__PURE__ */ n("div", { className: "flex flex-col gap-8", children: (u.propertiesOrder ?? Object.keys(u.properties)).map((
|
|
12662
|
-
const R = u.properties[
|
|
12662
|
+
const C = /* @__PURE__ */ n("div", { className: "flex flex-col gap-8", children: (u.propertiesOrder ?? Object.keys(u.properties)).map((P) => {
|
|
12663
|
+
const R = u.properties[P];
|
|
12663
12664
|
if (!R)
|
|
12664
|
-
return console.warn(`Property ${
|
|
12665
|
-
const
|
|
12666
|
-
if (
|
|
12665
|
+
return console.warn(`Property ${P} not found in collection ${u.name}`), null;
|
|
12666
|
+
const j = !!o && Object.keys(o).includes(P) && !!l[P], ae = !b && p || qt(R) || !!R.disabled;
|
|
12667
|
+
if (hr(R))
|
|
12667
12668
|
return null;
|
|
12668
12669
|
const H = {
|
|
12669
|
-
propertyKey:
|
|
12670
|
+
propertyKey: P,
|
|
12670
12671
|
disabled: ae,
|
|
12671
12672
|
property: R,
|
|
12672
12673
|
includeDescription: R.description || R.longDescription,
|
|
12673
|
-
underlyingValueHasChanged:
|
|
12674
|
+
underlyingValueHasChanged: j && !b,
|
|
12674
12675
|
context: s,
|
|
12675
12676
|
tableMode: !1,
|
|
12676
12677
|
partOfArray: !1,
|
|
@@ -12680,11 +12681,11 @@ function nd(e) {
|
|
|
12680
12681
|
return /* @__PURE__ */ n(
|
|
12681
12682
|
"div",
|
|
12682
12683
|
{
|
|
12683
|
-
id: `form_field_${
|
|
12684
|
+
id: `form_field_${P}`,
|
|
12684
12685
|
children: /* @__PURE__ */ n(ue, { children: /* @__PURE__ */ n(
|
|
12685
12686
|
ve,
|
|
12686
12687
|
{
|
|
12687
|
-
title: /* @__PURE__ */ n(td, { propertyId:
|
|
12688
|
+
title: /* @__PURE__ */ n(td, { propertyId: P }),
|
|
12688
12689
|
delayDuration: 800,
|
|
12689
12690
|
side: "left",
|
|
12690
12691
|
align: "start",
|
|
@@ -12693,7 +12694,7 @@ function nd(e) {
|
|
|
12693
12694
|
}
|
|
12694
12695
|
) })
|
|
12695
12696
|
},
|
|
12696
|
-
`field_${u.name}_${
|
|
12697
|
+
`field_${u.name}_${P}`
|
|
12697
12698
|
);
|
|
12698
12699
|
}).filter(Boolean) }), S = p || !_ && m === "existing", D = I.useRef(null);
|
|
12699
12700
|
return /* @__PURE__ */ w(
|
|
@@ -12717,12 +12718,12 @@ function nd(e) {
|
|
|
12717
12718
|
/* @__PURE__ */ n("div", { className: "h-14" }),
|
|
12718
12719
|
!b && /* @__PURE__ */ w(xt, { position: "absolute", children: [
|
|
12719
12720
|
h && /* @__PURE__ */ n("div", { className: "text-right", children: /* @__PURE__ */ n(L, { color: "error", children: h.message }) }),
|
|
12720
|
-
c && k.length > 0 && /* @__PURE__ */ n("div", { className: "flex-grow flex overflow-auto no-scrollbar", children: k.map((
|
|
12721
|
+
c && k.length > 0 && /* @__PURE__ */ n("div", { className: "flex-grow flex overflow-auto no-scrollbar", children: k.map((P) => /* @__PURE__ */ n(
|
|
12721
12722
|
ce,
|
|
12722
12723
|
{
|
|
12723
12724
|
color: "primary",
|
|
12724
12725
|
onClick: (R) => {
|
|
12725
|
-
R.stopPropagation(), c &&
|
|
12726
|
+
R.stopPropagation(), c && P.onClick({
|
|
12726
12727
|
entity: c,
|
|
12727
12728
|
fullPath: u.path,
|
|
12728
12729
|
collection: u,
|
|
@@ -12730,9 +12731,9 @@ function nd(e) {
|
|
|
12730
12731
|
sideEntityController: B
|
|
12731
12732
|
});
|
|
12732
12733
|
},
|
|
12733
|
-
children:
|
|
12734
|
+
children: P.icon
|
|
12734
12735
|
},
|
|
12735
|
-
|
|
12736
|
+
P.name
|
|
12736
12737
|
)) }),
|
|
12737
12738
|
/* @__PURE__ */ n(
|
|
12738
12739
|
ge,
|
|
@@ -12788,7 +12789,7 @@ function od(e) {
|
|
|
12788
12789
|
if (e.inner.length === 0)
|
|
12789
12790
|
return Or(t, e.path, e.message);
|
|
12790
12791
|
for (const r of e.inner)
|
|
12791
|
-
|
|
12792
|
+
ir(t, r.path) || (t = Or(t, r.path, r.message));
|
|
12792
12793
|
}
|
|
12793
12794
|
return t;
|
|
12794
12795
|
}
|
|
@@ -12814,7 +12815,7 @@ function sd({
|
|
|
12814
12815
|
values: E,
|
|
12815
12816
|
entityId: y,
|
|
12816
12817
|
fields: m.propertyConfigs
|
|
12817
|
-
}) : void 0, _ = _c(), C = I.useRef(null), S = I.useRef(null), D = I.useRef(!1),
|
|
12818
|
+
}) : void 0, _ = _c(), C = I.useRef(null), S = I.useRef(null), D = I.useRef(!1), P = x(() => {
|
|
12818
12819
|
if (!s)
|
|
12819
12820
|
throw Error("getInitialLocation error");
|
|
12820
12821
|
return {
|
|
@@ -12822,43 +12823,43 @@ function sd({
|
|
|
12822
12823
|
y: s.top < _.height - s.bottom ? s.y + s.height / 2 : s.y - s.height / 2
|
|
12823
12824
|
};
|
|
12824
12825
|
}, [s, _.height, _.width]), R = x(({
|
|
12825
|
-
x:
|
|
12826
|
-
y:
|
|
12826
|
+
x: Q,
|
|
12827
|
+
y: N
|
|
12827
12828
|
}) => {
|
|
12828
|
-
const
|
|
12829
|
-
if (
|
|
12829
|
+
const ee = C.current?.getBoundingClientRect();
|
|
12830
|
+
if (!ee)
|
|
12830
12831
|
throw Error("normalizePosition called before draggableBoundingRect is set");
|
|
12831
12832
|
return {
|
|
12832
|
-
x: Math.max(0, Math.min(
|
|
12833
|
-
y: Math.max(0, Math.min(
|
|
12833
|
+
x: Math.max(0, Math.min(Q, _.width - ee.width)),
|
|
12834
|
+
y: Math.max(0, Math.min(N, _.height - ee.height))
|
|
12834
12835
|
};
|
|
12835
|
-
}, [_]),
|
|
12836
|
-
const
|
|
12837
|
-
if (!s || !
|
|
12836
|
+
}, [_]), j = x((Q) => {
|
|
12837
|
+
const N = C.current?.getBoundingClientRect();
|
|
12838
|
+
if (!s || !N)
|
|
12838
12839
|
return;
|
|
12839
|
-
const
|
|
12840
|
-
(!h ||
|
|
12841
|
-
}, [s,
|
|
12840
|
+
const ee = Q ?? R(P());
|
|
12841
|
+
(!h || ee.x !== h.x || ee.y !== h.y) && A(ee);
|
|
12842
|
+
}, [s, P, R, h]);
|
|
12842
12843
|
vc({
|
|
12843
12844
|
containerRef: C,
|
|
12844
12845
|
innerRef: S,
|
|
12845
12846
|
x: h?.x,
|
|
12846
12847
|
y: h?.y,
|
|
12847
|
-
onMove:
|
|
12848
|
-
}),
|
|
12848
|
+
onMove: j
|
|
12849
|
+
}), G(
|
|
12849
12850
|
() => {
|
|
12850
12851
|
D.current = !1;
|
|
12851
12852
|
},
|
|
12852
12853
|
[i, b]
|
|
12853
12854
|
), Tr(
|
|
12854
12855
|
() => {
|
|
12855
|
-
const
|
|
12856
|
-
!s || !
|
|
12856
|
+
const Q = C.current?.getBoundingClientRect();
|
|
12857
|
+
!s || !Q || D.current || (j(), D.current = !0);
|
|
12857
12858
|
},
|
|
12858
|
-
[s,
|
|
12859
|
+
[s, j, D.current]
|
|
12859
12860
|
), Tr(
|
|
12860
12861
|
() => {
|
|
12861
|
-
|
|
12862
|
+
j(h);
|
|
12862
12863
|
},
|
|
12863
12864
|
[_, s]
|
|
12864
12865
|
);
|
|
@@ -12869,8 +12870,8 @@ function sd({
|
|
|
12869
12870
|
i && B.properties[i] ? { [i]: B.properties[i] } : {},
|
|
12870
12871
|
r
|
|
12871
12872
|
);
|
|
12872
|
-
}, [B, y, i, r]), J = x(() =>
|
|
12873
|
-
value:
|
|
12873
|
+
}, [B, y, i, r]), J = x(() => j(h), [h, j]), H = async (Q) => (g(null), a && b && d && i ? d({
|
|
12874
|
+
value: Q[i],
|
|
12874
12875
|
propertyKey: i,
|
|
12875
12876
|
entity: b,
|
|
12876
12877
|
setError: g,
|
|
@@ -12880,23 +12881,23 @@ function sd({
|
|
|
12880
12881
|
context: p
|
|
12881
12882
|
}) : Promise.resolve());
|
|
12882
12883
|
if (!b)
|
|
12883
|
-
return /* @__PURE__ */ n(
|
|
12884
|
+
return /* @__PURE__ */ n(Y, {});
|
|
12884
12885
|
const K = mn({
|
|
12885
12886
|
initialValues: b?.values ?? {},
|
|
12886
|
-
validation: (
|
|
12887
|
-
const
|
|
12888
|
-
return
|
|
12889
|
-
|
|
12890
|
-
}),
|
|
12887
|
+
validation: (Q) => ae?.validate(Q, { abortEarly: !1 }).then(() => ({})).catch((N) => {
|
|
12888
|
+
const ee = {};
|
|
12889
|
+
return N.inner.forEach((ye) => {
|
|
12890
|
+
ee[ye.path] = ye.message;
|
|
12891
|
+
}), ee;
|
|
12891
12892
|
}),
|
|
12892
12893
|
validateOnInitialRender: !0,
|
|
12893
|
-
onSubmit: (
|
|
12894
|
-
H(
|
|
12894
|
+
onSubmit: (Q, N) => {
|
|
12895
|
+
H(Q).then(() => l()).finally(() => N.setSubmitting(!1));
|
|
12895
12896
|
}
|
|
12896
|
-
}), { values:
|
|
12897
|
-
if (
|
|
12898
|
-
Z(
|
|
12899
|
-
}, [
|
|
12897
|
+
}), { values: O, isSubmitting: re, setFieldValue: ie, handleSubmit: q } = K;
|
|
12898
|
+
if (G(() => {
|
|
12899
|
+
Z(O, E) || k(O);
|
|
12900
|
+
}, [O]), !b)
|
|
12900
12901
|
return /* @__PURE__ */ n(
|
|
12901
12902
|
Se,
|
|
12902
12903
|
{
|
|
@@ -12904,11 +12905,11 @@ function sd({
|
|
|
12904
12905
|
}
|
|
12905
12906
|
);
|
|
12906
12907
|
if (!B)
|
|
12907
|
-
return /* @__PURE__ */ n(
|
|
12908
|
+
return /* @__PURE__ */ n(Y, {});
|
|
12908
12909
|
const pe = re, oe = {
|
|
12909
12910
|
collection: B,
|
|
12910
12911
|
entityId: y,
|
|
12911
|
-
values:
|
|
12912
|
+
values: O,
|
|
12912
12913
|
path: o,
|
|
12913
12914
|
setFieldValue: ie,
|
|
12914
12915
|
save: H
|
|
@@ -12924,14 +12925,14 @@ function sd({
|
|
|
12924
12925
|
partOfBlock: !1,
|
|
12925
12926
|
autoFocus: c
|
|
12926
12927
|
} : void 0;
|
|
12927
|
-
let te = /* @__PURE__ */ n(
|
|
12928
|
+
let te = /* @__PURE__ */ n(Y, { children: /* @__PURE__ */ n(
|
|
12928
12929
|
"div",
|
|
12929
12930
|
{
|
|
12930
12931
|
className: "w-[560px] max-w-full max-h-[85vh]",
|
|
12931
12932
|
children: /* @__PURE__ */ w(
|
|
12932
12933
|
"form",
|
|
12933
12934
|
{
|
|
12934
|
-
onSubmit:
|
|
12935
|
+
onSubmit: q,
|
|
12935
12936
|
noValidate: !0,
|
|
12936
12937
|
children: [
|
|
12937
12938
|
/* @__PURE__ */ n(
|
|
@@ -12966,9 +12967,9 @@ function sd({
|
|
|
12966
12967
|
`popup_form_${e}_${y}_${i}`
|
|
12967
12968
|
) });
|
|
12968
12969
|
const ne = m.plugins;
|
|
12969
|
-
ne && ne.forEach((
|
|
12970
|
-
|
|
12971
|
-
|
|
12970
|
+
ne && ne.forEach((Q) => {
|
|
12971
|
+
Q.form?.provider && (te = /* @__PURE__ */ n(
|
|
12972
|
+
Q.form.provider.Component,
|
|
12972
12973
|
{
|
|
12973
12974
|
status: "existing",
|
|
12974
12975
|
path: o,
|
|
@@ -12977,12 +12978,12 @@ function sd({
|
|
|
12977
12978
|
context: p,
|
|
12978
12979
|
currentEntityId: y,
|
|
12979
12980
|
formContext: oe,
|
|
12980
|
-
...
|
|
12981
|
+
...Q.form.provider.props,
|
|
12981
12982
|
children: te
|
|
12982
12983
|
}
|
|
12983
12984
|
));
|
|
12984
12985
|
});
|
|
12985
|
-
const
|
|
12986
|
+
const V = /* @__PURE__ */ w(
|
|
12986
12987
|
"div",
|
|
12987
12988
|
{
|
|
12988
12989
|
className: `text-gray-900 dark:text-white overflow-auto rounded rounded-md bg-white dark:bg-gray-950 ${c ? "" : "hidden"} cursor-grab max-w-[100vw]`,
|
|
@@ -12991,7 +12992,7 @@ function sd({
|
|
|
12991
12992
|
f && /* @__PURE__ */ n(L, { color: "error", children: f.message })
|
|
12992
12993
|
]
|
|
12993
12994
|
}
|
|
12994
|
-
),
|
|
12995
|
+
), M = /* @__PURE__ */ w(
|
|
12995
12996
|
"div",
|
|
12996
12997
|
{
|
|
12997
12998
|
style: {
|
|
@@ -13006,7 +13007,7 @@ function sd({
|
|
|
13006
13007
|
{
|
|
13007
13008
|
className: "overflow-hidden",
|
|
13008
13009
|
children: [
|
|
13009
|
-
|
|
13010
|
+
V,
|
|
13010
13011
|
/* @__PURE__ */ n(
|
|
13011
13012
|
"div",
|
|
13012
13013
|
{
|
|
@@ -13019,8 +13020,8 @@ function sd({
|
|
|
13019
13020
|
ce,
|
|
13020
13021
|
{
|
|
13021
13022
|
size: "small",
|
|
13022
|
-
onClick: (
|
|
13023
|
-
|
|
13023
|
+
onClick: (Q) => {
|
|
13024
|
+
Q.stopPropagation(), l();
|
|
13024
13025
|
},
|
|
13025
13026
|
children: /* @__PURE__ */ n(
|
|
13026
13027
|
Qt,
|
|
@@ -13045,7 +13046,7 @@ function sd({
|
|
|
13045
13046
|
{
|
|
13046
13047
|
asChild: !0,
|
|
13047
13048
|
container: u,
|
|
13048
|
-
children: /* @__PURE__ */ n(pn, { value: K, children:
|
|
13049
|
+
children: /* @__PURE__ */ n(pn, { value: K, children: M })
|
|
13049
13050
|
}
|
|
13050
13051
|
);
|
|
13051
13052
|
}
|
|
@@ -13107,7 +13108,7 @@ function cd({
|
|
|
13107
13108
|
];
|
|
13108
13109
|
return d && d.forEach((m, f) => {
|
|
13109
13110
|
m.collectionView?.CollectionActionsStart && p.push(...zt(m.collectionView?.CollectionActionsStart).map((g, h) => /* @__PURE__ */ n(ue, { children: /* @__PURE__ */ n(g, { ...u, ...m.collectionView?.collectionActionsStartProps }) }, `plugin_actions_${f}_${h}`)));
|
|
13110
|
-
}), /* @__PURE__ */ n(
|
|
13111
|
+
}), /* @__PURE__ */ n(Y, { children: p });
|
|
13111
13112
|
}
|
|
13112
13113
|
const dd = "collectionGroupParent", jo = I.memo(
|
|
13113
13114
|
function({
|
|
@@ -13121,7 +13122,7 @@ const dd = "collectionGroupParent", jo = I.memo(
|
|
|
13121
13122
|
const W = p?.getCollectionConfig(s);
|
|
13122
13123
|
return W ? $e(o, W) : o;
|
|
13123
13124
|
}, [o, s, p?.getCollectionConfig]), A = I.useRef(h);
|
|
13124
|
-
|
|
13125
|
+
G(() => {
|
|
13125
13126
|
A.current = h;
|
|
13126
13127
|
}, [h]);
|
|
13127
13128
|
const y = Tt(h, u, s, null), [b, v] = F(void 0), [E, k] = I.useState(void 0), [B, _] = I.useState(0), [C, S] = F(0), D = x(() => {
|
|
@@ -13129,25 +13130,25 @@ const dd = "collectionGroupParent", jo = I.memo(
|
|
|
13129
13130
|
setTimeout(() => {
|
|
13130
13131
|
W === b && v(void 0);
|
|
13131
13132
|
}, 2400);
|
|
13132
|
-
}, [b]),
|
|
13133
|
+
}, [b]), P = x((W) => {
|
|
13133
13134
|
const fe = A.current;
|
|
13134
13135
|
return Wn(fe, u, s, W ?? null) ? fe.inlineEditing === void 0 || fe.inlineEditing : !1;
|
|
13135
|
-
}, [u, s]), R = h.selectionEnabled === void 0 || h.selectionEnabled,
|
|
13136
|
-
selectedEntities:
|
|
13136
|
+
}, [u, s]), R = h.selectionEnabled === void 0 || h.selectionEnabled, j = !P(), [ae, J] = F(!1), H = Ro(), K = h.selectionController ?? H, {
|
|
13137
|
+
selectedEntities: O,
|
|
13137
13138
|
isEntitySelected: re,
|
|
13138
13139
|
setSelectedEntities: ie
|
|
13139
13140
|
} = K;
|
|
13140
|
-
|
|
13141
|
+
G(() => {
|
|
13141
13142
|
k(void 0);
|
|
13142
|
-
}, [
|
|
13143
|
-
const
|
|
13143
|
+
}, [O]);
|
|
13144
|
+
const q = Qo({
|
|
13144
13145
|
fullPath: s,
|
|
13145
13146
|
collection: A.current,
|
|
13146
13147
|
entitiesDisplayedFirst: [],
|
|
13147
13148
|
lastDeleteTimestamp: B
|
|
13148
|
-
}), pe = I.useRef(Math.random().toString(36)), oe =
|
|
13149
|
-
|
|
13150
|
-
}, [
|
|
13149
|
+
}), pe = I.useRef(Math.random().toString(36)), oe = q.popupCell, le = x(() => {
|
|
13150
|
+
q.setPopupCell?.(void 0);
|
|
13151
|
+
}, [q.setPopupCell]), z = x((W) => {
|
|
13151
13152
|
console.log("Entity clicked", W);
|
|
13152
13153
|
const fe = A.current;
|
|
13153
13154
|
return v(W), m.onAnalyticsEvent?.("edit_entity_clicked", {
|
|
@@ -13173,24 +13174,24 @@ const dd = "collectionGroupParent", jo = I.memo(
|
|
|
13173
13174
|
}, [s, d]), ne = () => {
|
|
13174
13175
|
m.onAnalyticsEvent?.("multiple_delete_dialog_open", {
|
|
13175
13176
|
path: s
|
|
13176
|
-
}), k(
|
|
13177
|
-
},
|
|
13177
|
+
}), k(O);
|
|
13178
|
+
}, V = (W, fe) => {
|
|
13178
13179
|
m.onAnalyticsEvent?.("single_entity_deleted", {
|
|
13179
13180
|
path: s
|
|
13180
13181
|
}), ie((we) => we.filter((Ae) => Ae.id !== fe.id)), _(Date.now());
|
|
13181
|
-
},
|
|
13182
|
+
}, M = (W, fe) => {
|
|
13182
13183
|
m.onAnalyticsEvent?.("multiple_entities_deleted", {
|
|
13183
13184
|
path: s
|
|
13184
13185
|
}), ie([]), k(void 0), _(Date.now());
|
|
13185
13186
|
};
|
|
13186
|
-
let
|
|
13187
|
-
f?.plugins && (
|
|
13188
|
-
const
|
|
13187
|
+
let Q;
|
|
13188
|
+
f?.plugins && (Q = f.plugins.find((W) => W.collectionView?.AddColumnComponent)?.collectionView?.AddColumnComponent);
|
|
13189
|
+
const N = x((W, fe) => {
|
|
13189
13190
|
if (p) {
|
|
13190
13191
|
const we = p.getCollectionConfig(W), Ae = $e(we, fe);
|
|
13191
13192
|
p.onCollectionModified(W, Ae);
|
|
13192
13193
|
}
|
|
13193
|
-
}, [p]),
|
|
13194
|
+
}, [p]), ee = x(({
|
|
13194
13195
|
width: W,
|
|
13195
13196
|
key: fe
|
|
13196
13197
|
}) => {
|
|
@@ -13198,10 +13199,10 @@ const dd = "collectionGroupParent", jo = I.memo(
|
|
|
13198
13199
|
if (!ht(we.properties, fe))
|
|
13199
13200
|
return;
|
|
13200
13201
|
const Ae = Yo(fe, W);
|
|
13201
|
-
|
|
13202
|
-
}, [
|
|
13203
|
-
p &&
|
|
13204
|
-
}, [
|
|
13202
|
+
N(s, Ae);
|
|
13203
|
+
}, [N, s]), ye = x((W) => {
|
|
13204
|
+
p && N(s, { defaultSize: W });
|
|
13205
|
+
}, [N, s, p]), T = Tt(h, u, s, null), $ = x(
|
|
13205
13206
|
({
|
|
13206
13207
|
name: W,
|
|
13207
13208
|
value: fe,
|
|
@@ -13287,7 +13288,7 @@ const dd = "collectionGroupParent", jo = I.memo(
|
|
|
13287
13288
|
dependencies: [],
|
|
13288
13289
|
Builder: ({ entity: we }) => {
|
|
13289
13290
|
const Ae = l.getParentReferencesFromPath(we.path);
|
|
13290
|
-
return /* @__PURE__ */ n(
|
|
13291
|
+
return /* @__PURE__ */ n(Y, { children: Ae.map((Ce) => /* @__PURE__ */ n(
|
|
13291
13292
|
He,
|
|
13292
13293
|
{
|
|
13293
13294
|
reference: Ce,
|
|
@@ -13310,10 +13311,10 @@ const dd = "collectionGroupParent", jo = I.memo(
|
|
|
13310
13311
|
}) => {
|
|
13311
13312
|
const we = W ? yi(h, u, s, W) : !0, Ae = [ed];
|
|
13312
13313
|
return T && Ae.push(Vo), we && Ae.push(Go), fe && Ae.push(...fe), Ae;
|
|
13313
|
-
},
|
|
13314
|
+
}, vr = () => {
|
|
13314
13315
|
const W = $t({}), fe = W.filter((Ce) => Ce.collapsed !== !1), Ae = W.filter((Ce) => Ce.collapsed === !1).length * (Xe ? 40 : 30);
|
|
13315
13316
|
return (Xe ? 80 + Ae : 70 + Ae) + (fe.length > 0 ? Xe ? 40 : 30 : 0);
|
|
13316
|
-
},
|
|
13317
|
+
}, _r = ({
|
|
13317
13318
|
entity: W,
|
|
13318
13319
|
size: fe,
|
|
13319
13320
|
width: we,
|
|
@@ -13342,7 +13343,7 @@ const dd = "collectionGroupParent", jo = I.memo(
|
|
|
13342
13343
|
selectionController: K
|
|
13343
13344
|
}
|
|
13344
13345
|
);
|
|
13345
|
-
},
|
|
13346
|
+
}, kr = /* @__PURE__ */ n(
|
|
13346
13347
|
oi,
|
|
13347
13348
|
{
|
|
13348
13349
|
open: ae,
|
|
@@ -13365,8 +13366,8 @@ const dd = "collectionGroupParent", jo = I.memo(
|
|
|
13365
13366
|
{
|
|
13366
13367
|
fullPath: s,
|
|
13367
13368
|
collection: h,
|
|
13368
|
-
filter:
|
|
13369
|
-
sortBy:
|
|
13369
|
+
filter: q.filterValues,
|
|
13370
|
+
sortBy: q.sortBy,
|
|
13370
13371
|
onCountChange: S
|
|
13371
13372
|
}
|
|
13372
13373
|
)
|
|
@@ -13379,7 +13380,7 @@ const dd = "collectionGroupParent", jo = I.memo(
|
|
|
13379
13380
|
onHover: we
|
|
13380
13381
|
}) => {
|
|
13381
13382
|
const Ae = A.current;
|
|
13382
|
-
return f.plugins ? /* @__PURE__ */ n(
|
|
13383
|
+
return f.plugins ? /* @__PURE__ */ n(Y, { children: f.plugins.filter((Ce) => Ce.collectionView?.HeaderAction).map((Ce, Nt) => {
|
|
13383
13384
|
const Ft = Ce.collectionView.HeaderAction;
|
|
13384
13385
|
return /* @__PURE__ */ n(
|
|
13385
13386
|
Ft,
|
|
@@ -13394,9 +13395,9 @@ const dd = "collectionGroupParent", jo = I.memo(
|
|
|
13394
13395
|
`plugin_header_action_${Nt}`
|
|
13395
13396
|
);
|
|
13396
13397
|
}) }) : null;
|
|
13397
|
-
}, [f.plugins, s, r]), Ne =
|
|
13398
|
-
return typeof
|
|
13399
|
-
|
|
13398
|
+
}, [f.plugins, s, r]), Ne = Q ? function() {
|
|
13399
|
+
return typeof Q == "function" ? /* @__PURE__ */ n(
|
|
13400
|
+
Q,
|
|
13400
13401
|
{
|
|
13401
13402
|
fullPath: s,
|
|
13402
13403
|
parentCollectionIds: r ?? [],
|
|
@@ -13423,15 +13424,15 @@ const dd = "collectionGroupParent", jo = I.memo(
|
|
|
13423
13424
|
Po,
|
|
13424
13425
|
{
|
|
13425
13426
|
additionalFields: ot,
|
|
13426
|
-
tableController:
|
|
13427
|
+
tableController: q,
|
|
13427
13428
|
displayedColumnIds: Ue,
|
|
13428
13429
|
onSizeChanged: ye,
|
|
13429
13430
|
onEntityClick: z,
|
|
13430
|
-
onColumnResize:
|
|
13431
|
+
onColumnResize: ee,
|
|
13431
13432
|
onValueChange: be,
|
|
13432
|
-
tableRowActionsBuilder:
|
|
13433
|
-
uniqueFieldValidator:
|
|
13434
|
-
title:
|
|
13433
|
+
tableRowActionsBuilder: _r,
|
|
13434
|
+
uniqueFieldValidator: $,
|
|
13435
|
+
title: kr,
|
|
13435
13436
|
selectionController: K,
|
|
13436
13437
|
highlightedEntities: b ? [b] : [],
|
|
13437
13438
|
defaultSize: h.defaultSize,
|
|
@@ -13445,7 +13446,7 @@ const dd = "collectionGroupParent", jo = I.memo(
|
|
|
13445
13446
|
{
|
|
13446
13447
|
parentCollectionIds: r ?? [],
|
|
13447
13448
|
collection: h,
|
|
13448
|
-
tableController:
|
|
13449
|
+
tableController: q,
|
|
13449
13450
|
path: s,
|
|
13450
13451
|
relativePath: h.path,
|
|
13451
13452
|
selectionController: K,
|
|
@@ -13457,7 +13458,7 @@ const dd = "collectionGroupParent", jo = I.memo(
|
|
|
13457
13458
|
{
|
|
13458
13459
|
parentCollectionIds: r ?? [],
|
|
13459
13460
|
collection: h,
|
|
13460
|
-
tableController:
|
|
13461
|
+
tableController: q,
|
|
13461
13462
|
onMultipleDeleteClick: ne,
|
|
13462
13463
|
onNewClick: te,
|
|
13463
13464
|
path: s,
|
|
@@ -13467,7 +13468,7 @@ const dd = "collectionGroupParent", jo = I.memo(
|
|
|
13467
13468
|
collectionEntitiesCount: C
|
|
13468
13469
|
}
|
|
13469
13470
|
),
|
|
13470
|
-
emptyComponent: y &&
|
|
13471
|
+
emptyComponent: y && q.filterValues === void 0 && q.sortBy === void 0 ? /* @__PURE__ */ w("div", { className: "flex flex-col items-center justify-center", children: [
|
|
13471
13472
|
/* @__PURE__ */ n(L, { variant: "subtitle2", children: "So empty..." }),
|
|
13472
13473
|
/* @__PURE__ */ w(
|
|
13473
13474
|
ge,
|
|
@@ -13483,11 +13484,11 @@ const dd = "collectionGroupParent", jo = I.memo(
|
|
|
13483
13484
|
}
|
|
13484
13485
|
)
|
|
13485
13486
|
] }) : /* @__PURE__ */ n(L, { variant: "label", children: "No results with the applied filter/sort" }),
|
|
13486
|
-
hoverRow:
|
|
13487
|
-
inlineEditing:
|
|
13487
|
+
hoverRow: j,
|
|
13488
|
+
inlineEditing: P(),
|
|
13488
13489
|
AdditionalHeaderWidget: U,
|
|
13489
13490
|
AddColumnComponent: Ne,
|
|
13490
|
-
getIdColumnWidth:
|
|
13491
|
+
getIdColumnWidth: vr,
|
|
13491
13492
|
additionalIDHeaderWidget: /* @__PURE__ */ n(
|
|
13492
13493
|
md,
|
|
13493
13494
|
{
|
|
@@ -13508,7 +13509,7 @@ const dd = "collectionGroupParent", jo = I.memo(
|
|
|
13508
13509
|
collection: h,
|
|
13509
13510
|
entity: oe?.entity,
|
|
13510
13511
|
tableKey: pe.current,
|
|
13511
|
-
customFieldValidator:
|
|
13512
|
+
customFieldValidator: $,
|
|
13512
13513
|
path: xe,
|
|
13513
13514
|
onCellValueChange: be,
|
|
13514
13515
|
container: g.current
|
|
@@ -13523,8 +13524,8 @@ const dd = "collectionGroupParent", jo = I.memo(
|
|
|
13523
13524
|
collection: h,
|
|
13524
13525
|
callbacks: h.callbacks,
|
|
13525
13526
|
open: !!E,
|
|
13526
|
-
onEntityDelete:
|
|
13527
|
-
onMultipleEntitiesDelete:
|
|
13527
|
+
onEntityDelete: V,
|
|
13528
|
+
onMultipleEntitiesDelete: M,
|
|
13528
13529
|
onClose: () => k(void 0)
|
|
13529
13530
|
}
|
|
13530
13531
|
)
|
|
@@ -13542,7 +13543,7 @@ function ud({
|
|
|
13542
13543
|
onCountChange: a
|
|
13543
13544
|
}) {
|
|
13544
13545
|
const o = Ze(t), s = _e(), [c, l] = F(void 0), [d, u] = F(void 0), p = i ? i[0] : void 0, m = i ? i[1] : void 0, f = he(() => s.resolveAliasesFrom(e), [e, s.resolveAliasesFrom]);
|
|
13545
|
-
return
|
|
13546
|
+
return G(() => {
|
|
13546
13547
|
o.countEntities && o.countEntities({
|
|
13547
13548
|
path: f,
|
|
13548
13549
|
collection: t,
|
|
@@ -13550,7 +13551,7 @@ function ud({
|
|
|
13550
13551
|
orderBy: p,
|
|
13551
13552
|
order: m
|
|
13552
13553
|
}).then(l).catch(u);
|
|
13553
|
-
}, [e, o.countEntities, f, t, r, p, m]),
|
|
13554
|
+
}, [e, o.countEntities, f, t, r, p, m]), G(() => {
|
|
13554
13555
|
a && a(c ?? 0);
|
|
13555
13556
|
}, [a, c]), d ? null : /* @__PURE__ */ n(
|
|
13556
13557
|
L,
|
|
@@ -13653,7 +13654,7 @@ function pd() {
|
|
|
13653
13654
|
ge,
|
|
13654
13655
|
{
|
|
13655
13656
|
variant: "text",
|
|
13656
|
-
component:
|
|
13657
|
+
component: pr,
|
|
13657
13658
|
to: "/",
|
|
13658
13659
|
children: "Back to home"
|
|
13659
13660
|
}
|
|
@@ -13902,7 +13903,7 @@ const hd = function({
|
|
|
13902
13903
|
children: /* @__PURE__ */ w("div", { className: "flex flex-row gap-2 px-4 h-full items-center", children: [
|
|
13903
13904
|
i,
|
|
13904
13905
|
u && /* @__PURE__ */ n("div", { className: "mr-8 hidden lg:block", children: /* @__PURE__ */ n(
|
|
13905
|
-
|
|
13906
|
+
pr,
|
|
13906
13907
|
{
|
|
13907
13908
|
className: "visited:text-inherit visited:dark:text-inherit",
|
|
13908
13909
|
to: u?.basePath ?? "/",
|
|
@@ -13944,7 +13945,7 @@ const hd = function({
|
|
|
13944
13945
|
}
|
|
13945
13946
|
);
|
|
13946
13947
|
}, gd = (e) => e && Array.isArray(e) && e.length > 0 ? e.map((t, r) => t ? {
|
|
13947
|
-
[Mn(t) + r]:
|
|
13948
|
+
[Mn(t) + r]: rr()
|
|
13948
13949
|
} : {}).reduce((t, r) => ({ ...t, ...r }), {}) : {};
|
|
13949
13950
|
function qo({
|
|
13950
13951
|
droppableId: e,
|
|
@@ -13961,14 +13962,14 @@ function qo({
|
|
|
13961
13962
|
const u = r && Array.isArray(r) && r.length > 0, p = se(gd(r)), [m, f] = F(
|
|
13962
13963
|
u ? Object.values(p.current) : []
|
|
13963
13964
|
);
|
|
13964
|
-
|
|
13965
|
+
G(() => {
|
|
13965
13966
|
if (u && r && r.length !== m.length) {
|
|
13966
13967
|
const b = r.map((v, E) => {
|
|
13967
13968
|
const k = Mn(v) + E;
|
|
13968
13969
|
if (k in p.current)
|
|
13969
13970
|
return p.current[k];
|
|
13970
13971
|
{
|
|
13971
|
-
const B =
|
|
13972
|
+
const B = rr();
|
|
13972
13973
|
return p.current[k] = B, B;
|
|
13973
13974
|
}
|
|
13974
13975
|
});
|
|
@@ -13978,13 +13979,13 @@ function qo({
|
|
|
13978
13979
|
const g = (b) => {
|
|
13979
13980
|
if (b.preventDefault(), i)
|
|
13980
13981
|
return;
|
|
13981
|
-
const v =
|
|
13982
|
+
const v = rr(), E = [...m, v];
|
|
13982
13983
|
s && s(v), f(E), d([...r ?? [], l]);
|
|
13983
13984
|
}, h = (b) => {
|
|
13984
13985
|
const v = [...m];
|
|
13985
13986
|
v.splice(b, 1), f(v), d(r.filter((E, k) => k !== b));
|
|
13986
13987
|
}, A = (b) => {
|
|
13987
|
-
const v =
|
|
13988
|
+
const v = rr(), E = r[b], k = [
|
|
13988
13989
|
...m.splice(0, b + 1),
|
|
13989
13990
|
v,
|
|
13990
13991
|
...m.splice(b + 1, m.length - b - 1)
|
|
@@ -14178,7 +14179,7 @@ function bd(e, t, r) {
|
|
|
14178
14179
|
const i = Array.from(e), [a] = i.splice(t, 1);
|
|
14179
14180
|
return i.splice(r, 0, a), i;
|
|
14180
14181
|
}
|
|
14181
|
-
function
|
|
14182
|
+
function rr() {
|
|
14182
14183
|
return Math.floor(Math.random() * Math.floor(Number.MAX_SAFE_INTEGER));
|
|
14183
14184
|
}
|
|
14184
14185
|
function Lu({
|
|
@@ -14291,7 +14292,7 @@ function $u({
|
|
|
14291
14292
|
);
|
|
14292
14293
|
return I.useEffect(() => (s(a), () => {
|
|
14293
14294
|
s.clear();
|
|
14294
|
-
}), [a, s]), /* @__PURE__ */ w(
|
|
14295
|
+
}), [a, s]), /* @__PURE__ */ w(Y, { children: [
|
|
14295
14296
|
/* @__PURE__ */ n(
|
|
14296
14297
|
ni,
|
|
14297
14298
|
{
|
|
@@ -14320,7 +14321,7 @@ function Wu({
|
|
|
14320
14321
|
return t ? /* @__PURE__ */ n(L, { variant: "caption", color: e ? "error" : "secondary", className: "ml-3.5 mt-0.5", children: t }) : null;
|
|
14321
14322
|
}
|
|
14322
14323
|
function Lt(e) {
|
|
14323
|
-
const t = _e(), r =
|
|
14324
|
+
const t = _e(), r = br(), i = x(() => {
|
|
14324
14325
|
if (e.path) {
|
|
14325
14326
|
let o = e.collection;
|
|
14326
14327
|
if (o || (o = t.getCollection(e.path)), !o)
|
|
@@ -14352,7 +14353,7 @@ function Lt(e) {
|
|
|
14352
14353
|
const wd = `data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAAASAAAAEgARslrPgAAB9pJREFUWMONl12obVUVx39jzLk+9j7nHq9y1QT1qpcbSIaXQFGs24PQl3HroSQyqHwJFJF6qaceCsqQoJdELHoIC6EeJCSKsi/TFLGozGsKXksljRLxnrP3WmvOOUYPa+19zsmPWpux5pxrzTX///Exx5hb+B/X1y+/nuIlVKF5m0v1YbQ55tIcKTQXFerNQkumOZ1oTiXCqUH8saR+74L8ZIWWux7+7JuuL2/04s5jJyhWQlXV71KtbhCtr1WtD6s0KlrjNBRaEi3JGzpv6bymQ0sn9mwv9otB7Ls7kn9Xo+U7D9z8/xG4+bz3cs35SjE/HEK8NWr8RBOrs+tQUUlEtAYaijRkbxmY0fuMzucsfcbSWnZQtiWxJL3Uid09iH0jIM8/1f+d3/zuS29M4PvHrmG+cZA8dMdjiLfNYrx6owrMVKlVUQkgkeI1iYbBJ3A2WPpKNtnx+UQisy29L0gPDGKfrwkPn2bJPfd/Zo0ZVp0fvOOdnLGxheX+A/Mq3nGwqS8/q645o4psxkgbhFqdSgqVJKIkghgqjuDoWh+dlm1AI0gUC3o4C9d04idbmZ06euQDPPHMj3YJ3HnkrZx98Fys2PFZ1dxxsJkdPbOecaBqmcWGqBVBIkEiKkoQJ5IJJBTbY8aRgBMwjxgVJoJJwDScnYUrOy2PBamfv/CS4zz9zE+IAIfPuQQzPzyrmq9u1e3RM+qWeaipNCCiE4DjbjgF94xZQj2htpjeK84ImqlIUpO9JllgEKgJDFpfOoh8paN8chbOeQ4g/OTq97PdLXSz3fjiVjO7/sx6g804ow41QWuCrjQPBB3bkZQgAkpBJOMojmIEjIgRKV6RpaYIZHGKQlK5OIv0L8bul8eOfsxjDJGD8613z6rmhq1qxkY1o9YKFUFEEED2xqoE1MNoWgPBwQZMl2SrSbQM9NQyUMlA5S3Rlcqd6E50RdRvPMvn9yE8qP9+9WWtQvXxzdic8xrwPaJrUYJGoq4sVBM1Ukuiln4UBipJVJrGoHUhrARB0XMQ/cizbSd61uaZlzUhXjuvWmqt9oOyAmUPEabnkSDV2j0Rp2YgksZdQpoCtRBwAiN4cKYdw4m3pNnbY9Tw4SZUh9tQEda+ld1WpmThgoivU8fYDbgEggRcleiZ6BOoFNRXLQQX1Eelggsgh8GPx6DhWB2iRgkj2OTuVX8dBzJtMx93BAKK4hIwUUSEID4BGspecWTfDwSCw+UxqByJoqPf9+xmYWQg7H3u+5Poyk3o5BZDxRBxxH29fdkF3YcBXKHgF+m+hLxn4OvbnnbPzMkjsm/+f5cXec2ye6ZfpO6+OX7pE8TqPj1zcN/7Zu8CDm44Bu6skrKjuOs0FlxWCJNMYxMOqLlR3DAvsAKaZo6t7+u7r6nhjN/5RKIQKESKhykhjeIINgJi+0m4Fiuns2WKZQybtJ2AfAWzGu/ayt0wz5gXimeKQyKSPI4kiCMhDxSgyLiOiY9kxnW2NVs+1ZeBbAmzhLmtgd0d8z1k1mIUTxQbKD5gnkmuDN6QvCF5TaIie0UmkIU1id3WcfwZHUo61eWB3gayDdOiZR+JXUuMWmcbyGWcny2RzOi8obeWwRsGrxm8JlGPBHCyOJmpJkwkHHs09pnfL1L60KLqtBKZtprhU+lVmSq9+xRsBfOMW6L4QLFM7zWdz+l8Ru8tA+10YKlJIiSxkcC6dQqlmJc/xaHIvTuZT7UpHalFUHEqL6iGsfKtM8FEzMdy7J4oXui9mk5CczpGErtEKgacQUZJE3gSwzw/i+dfx2G7e6IcOPALCXIkakGkYx4iwceyq+uENPp+RSI7DN7Q+5ylb7JgJLH0+XRGbOlRerWJwNgmnOwJ83Tvq/7KX2KZb1nJfnfp5YRoda7hFC/MQyGI7Mteow2E4pHkDT2zyfS758HV4bSjolOjF2PYS4KBbN2L5vmHZ7DpsWQnDsvfLj1+Lwufy9LSO2y5M1Mnik8OEJxAoSJRk7xhoKX3+URiztI3WPgGS2/p1OnE6CcSvRQGH+htQfH07dPSP7Lp9ajcNy+9DnG/oMT67qqZHz/QtGxVyjworQqVCIjiPiaaTD1ttZZ+fTIeCXQ+Y6HCQm0tO5LYpmfHlyy9/1nCPi3ICw/99JbxUHrdvxr6Q4depdhTfeGapVeH+imKxwhv6ZnR+5zeN0aNGU2+ZIPON0cX0LBQYSnGQgsLSSzoWdiCHVvQ2fLP2fMtwf2vDz50K6TpVPxj/sn7Ni5iu9l6Tof+yd78yoWFQ0uvWYvVLK1h6e34B8RnY9DZnIW3LAijxpLYkZ6Fd+z4km3bYcd2WNry8ezppsZ5ZMd2+MfTv3xtjbr9/PfwyoFDzPvtq7I2t+Vq/m6pt4hxThVaojao1CANRkORmkwkiTCI00thKYWOzJJR+6V1JE8/z2JfqGgfW9jLPPLg7a9Xe8frHs7j5MVXESxfmLS5KYXmxhQ3z/a4icQNRFtEGlwjJkoRIamTmIKNTE+it57kw0sF+1ah3CkSXkiPf42Htl+3WL/2+vIFJ6ishJ3QXD1o9dEhVCcGbS7ModUcakwrigaKChkoYmQK2XMp5L8V/F7DfuDePYrEcv8f7npdnDcksEvkg9RewquhuayTcHzQeCyJXpFVD2fRzSxCFtkuwqks8mjB/ujYr9y6k0gs9528503X/w/F3eUgyIBI4wAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMS0wNS0xMFQxOToyODozMyswMDowMEzeSx4AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjEtMDUtMTBUMTk6Mjg6MzMrMDA6MDA9g/OiAAAARnRFWHRzb2Z0d2FyZQBJbWFnZU1hZ2ljayA2LjcuOC05IDIwMTQtMDUtMTIgUTE2IGh0dHA6Ly93d3cuaW1hZ2VtYWdpY2sub3Jn3IbtAAAAABh0RVh0VGh1bWI6OkRvY3VtZW50OjpQYWdlcwAxp/+7LwAAABh0RVh0VGh1bWI6OkltYWdlOjpoZWlnaHQAMTkyDwByhQAAABd0RVh0VGh1bWI6OkltYWdlOjpXaWR0aAAxOTLTrCEIAAAAGXRFWHRUaHVtYjo6TWltZXR5cGUAaW1hZ2UvcG5nP7JWTgAAABd0RVh0VGh1bWI6Ok1UaW1lADE2MjA2NzQ5MTMk8oswAAAAD3RFWHRUaHVtYjo6U2l6ZQAwQkKUoj7sAAAAVnRFWHRUaHVtYjo6VVJJAGZpbGU6Ly8vbW50bG9nL2Zhdmljb25zLzIwMjEtMDUtMTAvOGIxNDNhYjgwODhkMjBlZThkYmUzOTFhN2NkNmQ3NmQuaWNvLnBuZ9msgG0AAAAASUVORK5CYII=
|
|
14353
14354
|
`;
|
|
14354
14355
|
function Ju(e, t) {
|
|
14355
|
-
|
|
14356
|
+
G(() => {
|
|
14356
14357
|
if (document) {
|
|
14357
14358
|
document.title = `${e} - FireCMS`;
|
|
14358
14359
|
let r = document.querySelector("link[rel~='icon']");
|
|
@@ -14402,52 +14403,52 @@ function Hu(e) {
|
|
|
14402
14403
|
userConfigPersistence: d,
|
|
14403
14404
|
dataSourceDelegate: u,
|
|
14404
14405
|
injectCollections: p
|
|
14405
|
-
} = e, m = se(), f = se(), g = se(), [h, A] = F(!1), [y, b] = F(void 0), [v, E] = F(!0), [k, B] = F(void 0), _ = ke(t), C = ke(r), S = _ ? `/${_}` : "/", D = _ ? `/${_}/${C}` : `/${C}`,
|
|
14406
|
+
} = e, m = se(), f = se(), g = se(), [h, A] = F(!1), [y, b] = F(void 0), [v, E] = F(!0), [k, B] = F(void 0), _ = ke(t), C = ke(r), S = _ ? `/${_}` : "/", D = _ ? `/${_}/${C}` : `/${C}`, P = x(
|
|
14406
14407
|
(z) => _ ? `/${_}/${Wt(z)}` : `/${Wt(z)}`,
|
|
14407
14408
|
[_]
|
|
14408
14409
|
), R = x(
|
|
14409
14410
|
(z) => `${ke(r)}/${Wt(z)}`,
|
|
14410
14411
|
[r]
|
|
14411
|
-
),
|
|
14412
|
-
let
|
|
14413
|
-
...(z ?? []).map((
|
|
14414
|
-
url: R(
|
|
14412
|
+
), j = x((z, te, ne, V) => {
|
|
14413
|
+
let M = [
|
|
14414
|
+
...(z ?? []).map((N) => N.hideFromNavigation ? void 0 : {
|
|
14415
|
+
url: R(N.id ?? N.path),
|
|
14415
14416
|
type: "collection",
|
|
14416
|
-
name:
|
|
14417
|
-
path:
|
|
14418
|
-
collection:
|
|
14419
|
-
description:
|
|
14420
|
-
group: dn(
|
|
14417
|
+
name: N.name.trim(),
|
|
14418
|
+
path: N.id ?? N.path,
|
|
14419
|
+
collection: N,
|
|
14420
|
+
description: N.description?.trim(),
|
|
14421
|
+
group: dn(N)
|
|
14421
14422
|
}).filter(Boolean),
|
|
14422
|
-
...(te ?? []).map((
|
|
14423
|
-
url:
|
|
14424
|
-
name:
|
|
14423
|
+
...(te ?? []).map((N) => N.hideFromNavigation ? void 0 : {
|
|
14424
|
+
url: P(Array.isArray(N.path) ? N.path[0] : N.path),
|
|
14425
|
+
name: N.name.trim(),
|
|
14425
14426
|
type: "view",
|
|
14426
|
-
path:
|
|
14427
|
-
view:
|
|
14428
|
-
description:
|
|
14429
|
-
group: dn(
|
|
14427
|
+
path: N.path,
|
|
14428
|
+
view: N,
|
|
14429
|
+
description: N.description?.trim(),
|
|
14430
|
+
group: dn(N)
|
|
14430
14431
|
}).filter(Boolean),
|
|
14431
|
-
...(ne ?? []).map((
|
|
14432
|
-
url:
|
|
14433
|
-
name:
|
|
14432
|
+
...(ne ?? []).map((N) => N.hideFromNavigation ? void 0 : {
|
|
14433
|
+
url: P(Array.isArray(N.path) ? N.path[0] : N.path),
|
|
14434
|
+
name: N.name.trim(),
|
|
14434
14435
|
type: "admin",
|
|
14435
|
-
path:
|
|
14436
|
-
view:
|
|
14437
|
-
description:
|
|
14436
|
+
path: N.path,
|
|
14437
|
+
view: N,
|
|
14438
|
+
description: N.description?.trim(),
|
|
14438
14439
|
group: "Admin"
|
|
14439
14440
|
}).filter(Boolean)
|
|
14440
14441
|
];
|
|
14441
|
-
|
|
14442
|
-
const ye =
|
|
14442
|
+
M = M.sort((N, ee) => N.group !== "Views" && N.group !== "Admin" && (ee.group === "Views" || ee.group === "Admin") ? -1 : ee.group !== "Views" && ee.group !== "Admin" && (N.group === "Views" || N.group === "Admin") || N.group === "Admin" && ee.group !== "Admin" ? 1 : N.group !== "Admin" && ee.group === "Admin" || N.group === "Views" && ee.group !== "Views" ? -1 : N.group !== "Views" && ee.group === "Views" ? 1 : 0), V && (M = M.sort((N, ee) => {
|
|
14443
|
+
const ye = V.indexOf(N.path), T = V.indexOf(ee.path);
|
|
14443
14444
|
return ye === -1 && T === -1 ? 0 : ye === -1 ? 1 : T === -1 ? -1 : ye - T;
|
|
14444
14445
|
}));
|
|
14445
|
-
const
|
|
14446
|
+
const Q = Object.values(M).map((N) => N.group).filter(Boolean).filter((N, ee, ye) => ye.indexOf(N) === ee);
|
|
14446
14447
|
return {
|
|
14447
|
-
navigationEntries:
|
|
14448
|
-
groups:
|
|
14448
|
+
navigationEntries: M,
|
|
14449
|
+
groups: Q
|
|
14449
14450
|
};
|
|
14450
|
-
}, [
|
|
14451
|
+
}, [P, R]), ae = x(async () => {
|
|
14451
14452
|
if (!i.initialLoading) {
|
|
14452
14453
|
console.debug("Refreshing navigation");
|
|
14453
14454
|
try {
|
|
@@ -14458,10 +14459,10 @@ function Hu(e) {
|
|
|
14458
14459
|
cn(c, i, u)
|
|
14459
14460
|
]
|
|
14460
14461
|
);
|
|
14461
|
-
let
|
|
14462
|
-
$o(m.current ?? [], z) || (m.current = z,
|
|
14463
|
-
const
|
|
14464
|
-
|
|
14462
|
+
let V = !1;
|
|
14463
|
+
$o(m.current ?? [], z) || (m.current = z, V = !0), Z(f.current, te) || (f.current = te, V = !0), Z(g.current, ne) || (g.current = ne, V = !0);
|
|
14464
|
+
const M = j(z, te, ne, l);
|
|
14465
|
+
V && !Z(y, M) && b(M);
|
|
14465
14466
|
} catch (z) {
|
|
14466
14467
|
console.error(z), B(z);
|
|
14467
14468
|
}
|
|
@@ -14474,54 +14475,54 @@ function Hu(e) {
|
|
|
14474
14475
|
i.initialLoading,
|
|
14475
14476
|
s,
|
|
14476
14477
|
c,
|
|
14477
|
-
|
|
14478
|
+
j,
|
|
14478
14479
|
p
|
|
14479
14480
|
]);
|
|
14480
|
-
|
|
14481
|
+
G(() => {
|
|
14481
14482
|
ae();
|
|
14482
14483
|
}, [ae]);
|
|
14483
14484
|
const J = x((z, te, ne = !1) => {
|
|
14484
|
-
const
|
|
14485
|
-
if (!
|
|
14485
|
+
const V = m.current;
|
|
14486
|
+
if (!V)
|
|
14486
14487
|
return;
|
|
14487
|
-
const
|
|
14488
|
-
let
|
|
14489
|
-
if (
|
|
14490
|
-
const ye =
|
|
14491
|
-
|
|
14492
|
-
|
|
14493
|
-
subcollections:
|
|
14494
|
-
callbacks:
|
|
14495
|
-
permissions:
|
|
14488
|
+
const M = mi(ke(z), V), Q = ne ? d?.getCollectionConfig(z) : void 0, N = M ? $e(M, Q) : void 0;
|
|
14489
|
+
let ee = N;
|
|
14490
|
+
if (N) {
|
|
14491
|
+
const ye = N.subcollections, T = N.callbacks, $ = N.permissions;
|
|
14492
|
+
ee = {
|
|
14493
|
+
...ee,
|
|
14494
|
+
subcollections: ee?.subcollections ?? ye,
|
|
14495
|
+
callbacks: ee?.callbacks ?? T,
|
|
14496
|
+
permissions: ee?.permissions ?? $
|
|
14496
14497
|
};
|
|
14497
14498
|
}
|
|
14498
|
-
if (
|
|
14499
|
-
return { ...
|
|
14499
|
+
if (ee)
|
|
14500
|
+
return { ...N, ...ee };
|
|
14500
14501
|
}, [d]), H = x((z) => {
|
|
14501
14502
|
const te = m.current;
|
|
14502
14503
|
if (te === void 0)
|
|
14503
14504
|
throw Error("getCollectionFromPaths: Collections have not been initialised yet");
|
|
14504
14505
|
let ne = [...te ?? []];
|
|
14505
|
-
for (let
|
|
14506
|
-
const
|
|
14507
|
-
if (!
|
|
14506
|
+
for (let V = 0; V < z.length; V++) {
|
|
14507
|
+
const M = z[V], Q = ne.find((N) => N.id === M || N.path === M);
|
|
14508
|
+
if (!Q)
|
|
14508
14509
|
return;
|
|
14509
|
-
if (ne =
|
|
14510
|
-
return
|
|
14510
|
+
if (ne = Q.subcollections, V === z.length - 1)
|
|
14511
|
+
return Q;
|
|
14511
14512
|
}
|
|
14512
14513
|
}, []), K = x((z) => {
|
|
14513
14514
|
const te = m.current;
|
|
14514
14515
|
if (te === void 0)
|
|
14515
14516
|
throw Error("getCollectionFromIds: Collections have not been initialised yet");
|
|
14516
14517
|
let ne = [...te ?? []];
|
|
14517
|
-
for (let
|
|
14518
|
-
const
|
|
14519
|
-
if (!
|
|
14518
|
+
for (let V = 0; V < z.length; V++) {
|
|
14519
|
+
const M = z[V], Q = ne.find((N) => N.id === M);
|
|
14520
|
+
if (!Q)
|
|
14520
14521
|
return;
|
|
14521
|
-
if (ne =
|
|
14522
|
-
return
|
|
14522
|
+
if (ne = Q.subcollections, V === z.length - 1)
|
|
14523
|
+
return Q;
|
|
14523
14524
|
}
|
|
14524
|
-
}, []),
|
|
14525
|
+
}, []), O = x(
|
|
14525
14526
|
(z) => ke(z + "/").startsWith(ke(D) + "/"),
|
|
14526
14527
|
[D]
|
|
14527
14528
|
), re = x((z) => {
|
|
@@ -14533,7 +14534,7 @@ function Hu(e) {
|
|
|
14533
14534
|
path: z
|
|
14534
14535
|
}) => `s/edit/${Wt(z)}`,
|
|
14535
14536
|
[]
|
|
14536
|
-
),
|
|
14537
|
+
), q = x((z) => {
|
|
14537
14538
|
const te = m.current ?? [];
|
|
14538
14539
|
return Tn(z, te);
|
|
14539
14540
|
}, []), pe = x((z) => {
|
|
@@ -14543,22 +14544,22 @@ function Hu(e) {
|
|
|
14543
14544
|
collections: te
|
|
14544
14545
|
});
|
|
14545
14546
|
}, []), oe = x((z) => {
|
|
14546
|
-
const ne = z.split("/").filter((
|
|
14547
|
+
const ne = z.split("/").filter((M, Q) => Q % 2 === 0);
|
|
14547
14548
|
ne.pop();
|
|
14548
|
-
const
|
|
14549
|
-
for (let
|
|
14550
|
-
|
|
14551
|
-
return
|
|
14549
|
+
const V = [];
|
|
14550
|
+
for (let M = 1; M <= ne.length; M++)
|
|
14551
|
+
V.push(ne.slice(0, M));
|
|
14552
|
+
return V.map((M) => H(M)?.id).filter(Boolean);
|
|
14552
14553
|
}, [pe]), le = x((z) => {
|
|
14553
14554
|
let ne = m.current;
|
|
14554
|
-
const
|
|
14555
|
-
for (let
|
|
14556
|
-
const
|
|
14557
|
-
if (!
|
|
14558
|
-
throw Error(`Collection with id ${
|
|
14559
|
-
|
|
14555
|
+
const V = [];
|
|
14556
|
+
for (let M = 0; M < z.length; M++) {
|
|
14557
|
+
const Q = z[M], N = ne.find((ee) => ee.id === Q);
|
|
14558
|
+
if (!N)
|
|
14559
|
+
throw Error(`Collection with id ${Q} not found`);
|
|
14560
|
+
V.push(N.path), ne = N.subcollections;
|
|
14560
14561
|
}
|
|
14561
|
-
return
|
|
14562
|
+
return V;
|
|
14562
14563
|
}, [K]);
|
|
14563
14564
|
return {
|
|
14564
14565
|
collections: m.current,
|
|
@@ -14573,12 +14574,12 @@ function Hu(e) {
|
|
|
14573
14574
|
getCollection: J,
|
|
14574
14575
|
getCollectionFromPaths: H,
|
|
14575
14576
|
getCollectionFromIds: K,
|
|
14576
|
-
isUrlCollectionPath:
|
|
14577
|
+
isUrlCollectionPath: O,
|
|
14577
14578
|
urlPathToDataPath: re,
|
|
14578
14579
|
buildUrlCollectionPath: R,
|
|
14579
14580
|
buildUrlEditCollectionPath: ie,
|
|
14580
|
-
buildCMSUrlPath:
|
|
14581
|
-
resolveAliasesFrom:
|
|
14581
|
+
buildCMSUrlPath: P,
|
|
14582
|
+
resolveAliasesFrom: q,
|
|
14582
14583
|
topLevelNavigation: y,
|
|
14583
14584
|
refreshNavigation: ae,
|
|
14584
14585
|
getParentReferencesFromPath: pe,
|
|
@@ -14593,7 +14594,7 @@ function Wt(e) {
|
|
|
14593
14594
|
return encodeURIComponent(ke(e)).replaceAll("%2F", "/").replaceAll("%23", "#");
|
|
14594
14595
|
}
|
|
14595
14596
|
function Lo(e, t) {
|
|
14596
|
-
return e.filter((r) => r.permissions ?
|
|
14597
|
+
return e.filter((r) => r.permissions ? Ar(r, t, r.path, null)?.read !== !1 : !0).map((r) => r.subcollections ? {
|
|
14597
14598
|
...r,
|
|
14598
14599
|
subcollections: Lo(r.subcollections, t)
|
|
14599
14600
|
} : r);
|
|
@@ -14604,7 +14605,7 @@ async function kd(e, t, r, i, a) {
|
|
|
14604
14605
|
user: r.user,
|
|
14605
14606
|
authController: r,
|
|
14606
14607
|
dataSource: i
|
|
14607
|
-
}) : Array.isArray(e) && (o = e), o =
|
|
14608
|
+
}) : Array.isArray(e) && (o = e), a && (o = a(o ?? [])), o = fs(o, t), o = Lo(o, r), o;
|
|
14608
14609
|
}
|
|
14609
14610
|
async function cn(e, t, r) {
|
|
14610
14611
|
let i = [];
|
|
@@ -14647,7 +14648,7 @@ function Xu() {
|
|
|
14647
14648
|
const A = e.current, y = A[h], b = $e(y ?? t(f), g);
|
|
14648
14649
|
e.current = $e(A, b);
|
|
14649
14650
|
}, [t]), [a, o] = F([]), [s, c] = F([]), [l, d] = F([]);
|
|
14650
|
-
|
|
14651
|
+
G(() => {
|
|
14651
14652
|
o(localStorage.getItem("recently_visited_paths") ? JSON.parse(localStorage.getItem("recently_visited_paths")) : []), c(localStorage.getItem("favourite_paths") ? JSON.parse(localStorage.getItem("favourite_paths")) : []), d(localStorage.getItem("collapsed_groups") ? JSON.parse(localStorage.getItem("collapsed_groups")) : []);
|
|
14652
14653
|
}, []);
|
|
14653
14654
|
const u = x((f) => {
|
|
@@ -14670,7 +14671,7 @@ function Xu() {
|
|
|
14670
14671
|
}
|
|
14671
14672
|
function Ku() {
|
|
14672
14673
|
const e = x(() => typeof window > "u" ? !1 : window.matchMedia("(prefers-color-scheme: dark)").matches, []), r = (localStorage.getItem("prefers-dark-mode") != null ? localStorage.getItem("prefers-dark-mode") === "true" : null) ?? e, [i, a] = F(r ? "dark" : "light");
|
|
14673
|
-
|
|
14674
|
+
G(() => {
|
|
14674
14675
|
a(r ? "dark" : "light"), c(r ? "dark" : "light");
|
|
14675
14676
|
}, [r]);
|
|
14676
14677
|
const o = x(() => {
|
|
@@ -14699,7 +14700,7 @@ function em({
|
|
|
14699
14700
|
dataSourceDelegate: s
|
|
14700
14701
|
}) {
|
|
14701
14702
|
const c = !!r, [l, d] = F(c), [u, p] = F(!1), [m, f] = F(!c || !!t.loginSkipped), g = m && (!c || !!t.user || !!t.loginSkipped) && !u;
|
|
14702
|
-
|
|
14703
|
+
G(() => {
|
|
14703
14704
|
t.loginSkipped && f(!0);
|
|
14704
14705
|
}, [t.loginSkipped]);
|
|
14705
14706
|
const h = se(), A = x(async () => {
|
|
@@ -14733,7 +14734,7 @@ function em({
|
|
|
14733
14734
|
d(!1);
|
|
14734
14735
|
!t.initialLoading && !y && f(!0);
|
|
14735
14736
|
}, [e, t, r, i, a, s, o]);
|
|
14736
|
-
return
|
|
14737
|
+
return G(() => {
|
|
14737
14738
|
A();
|
|
14738
14739
|
}, [A]), {
|
|
14739
14740
|
canAccessMainView: g,
|
|
@@ -14758,7 +14759,7 @@ function Ed({
|
|
|
14758
14759
|
a.customId && a.formAutoSave && console.warn(`The collection ${a.path} has customId and formAutoSave enabled. This is not supported and formAutoSave will be ignored`);
|
|
14759
14760
|
const [u, p] = F(!1), [m, f] = F(void 0);
|
|
14760
14761
|
bi(m, () => {
|
|
14761
|
-
m &&
|
|
14762
|
+
m && N({
|
|
14762
14763
|
entityId: oe?.id,
|
|
14763
14764
|
collection: a,
|
|
14764
14765
|
path: e,
|
|
@@ -14766,15 +14767,15 @@ function Ed({
|
|
|
14766
14767
|
closeAfterSave: !1
|
|
14767
14768
|
});
|
|
14768
14769
|
}, !1, 2e3);
|
|
14769
|
-
const g = Ze(a), h = Bi(), A = mt(), y = pt(), b = me(), v = Be(), E = ut(), [k, B] = F(void 0), [_, C] = F(i ? "copy" : t ? "existing" : "new"), S = se(void 0), D = S.current,
|
|
14770
|
+
const g = Ze(a), h = Bi(), A = mt(), y = pt(), b = me(), v = Be(), E = ut(), [k, B] = F(void 0), [_, C] = F(i ? "copy" : t ? "existing" : "new"), S = se(void 0), D = S.current, P = (a.subcollections ?? []).filter((U) => !U.hideFromNavigation), R = P?.length ?? 0, j = a.entityViews, ae = j?.length ?? 0, J = a.formAutoSave && !a.customId, H = ae > 0 || R > 0, K = r ?? Un(
|
|
14770
14771
|
a ? a.defaultSelectedView : void 0,
|
|
14771
14772
|
{
|
|
14772
14773
|
status: _,
|
|
14773
14774
|
entityId: t
|
|
14774
14775
|
}
|
|
14775
|
-
),
|
|
14776
|
+
), O = se(K ?? Jt), re = O.current === Jt, {
|
|
14776
14777
|
entity: ie,
|
|
14777
|
-
dataLoading:
|
|
14778
|
+
dataLoading: q,
|
|
14778
14779
|
// eslint-disable-next-line no-unused-vars
|
|
14779
14780
|
dataLoadingError: pe
|
|
14780
14781
|
} = lo({
|
|
@@ -14783,9 +14784,9 @@ function Ed({
|
|
|
14783
14784
|
collection: a,
|
|
14784
14785
|
useCache: !1
|
|
14785
14786
|
}), [oe, le] = F(ie), [z, te] = F(void 0);
|
|
14786
|
-
|
|
14787
|
+
G(() => {
|
|
14787
14788
|
ie && le(ie);
|
|
14788
|
-
}, [ie]),
|
|
14789
|
+
}, [ie]), G(() => {
|
|
14789
14790
|
if (_ === "new")
|
|
14790
14791
|
te(!1);
|
|
14791
14792
|
else {
|
|
@@ -14798,28 +14799,28 @@ function Ed({
|
|
|
14798
14799
|
type: "error",
|
|
14799
14800
|
message: "Error before saving: " + U?.message
|
|
14800
14801
|
}), console.error(U);
|
|
14801
|
-
}, [y]),
|
|
14802
|
+
}, [y]), V = x((U) => {
|
|
14802
14803
|
p(!1), y.open({
|
|
14803
14804
|
type: "error",
|
|
14804
14805
|
message: "Error after saving (entity is saved): " + U?.message
|
|
14805
14806
|
}), console.error(U);
|
|
14806
|
-
}, [y]),
|
|
14807
|
+
}, [y]), M = (U, Ne) => {
|
|
14807
14808
|
p(!1), J || y.open({
|
|
14808
14809
|
type: "success",
|
|
14809
14810
|
message: `${a.singularName ?? a.name}: Saved correctly`
|
|
14810
14811
|
}), le(U), C("existing"), s(!1), l && l({ entity: U }), Ne ? (h.setBlocked(!1), h.close(!0), d?.()) : _ !== "existing" && A.replace({
|
|
14811
14812
|
path: e,
|
|
14812
14813
|
entityId: U.id,
|
|
14813
|
-
selectedSubPath:
|
|
14814
|
+
selectedSubPath: O.current,
|
|
14814
14815
|
updateUrl: !0,
|
|
14815
14816
|
collection: a
|
|
14816
14817
|
});
|
|
14817
|
-
},
|
|
14818
|
+
}, Q = x((U) => {
|
|
14818
14819
|
p(!1), y.open({
|
|
14819
14820
|
type: "error",
|
|
14820
14821
|
message: "Error saving: " + U?.message
|
|
14821
14822
|
}), console.error("Error saving entity", e, t), console.error(U);
|
|
14822
|
-
}, [t, e, y]),
|
|
14823
|
+
}, [t, e, y]), N = ({
|
|
14823
14824
|
values: U,
|
|
14824
14825
|
previousValues: Ne,
|
|
14825
14826
|
closeAfterSave: Fe,
|
|
@@ -14836,12 +14837,12 @@ function Ed({
|
|
|
14836
14837
|
status: _,
|
|
14837
14838
|
dataSource: g,
|
|
14838
14839
|
context: v,
|
|
14839
|
-
onSaveSuccess: (W) =>
|
|
14840
|
-
onSaveFailure:
|
|
14840
|
+
onSaveSuccess: (W) => M(W, Fe),
|
|
14841
|
+
onSaveFailure: Q,
|
|
14841
14842
|
onPreSaveHookError: ne,
|
|
14842
|
-
onSaveSuccessHookError:
|
|
14843
|
+
onSaveSuccessHookError: V
|
|
14843
14844
|
}).then();
|
|
14844
|
-
},
|
|
14845
|
+
}, ee = async ({
|
|
14845
14846
|
collection: U,
|
|
14846
14847
|
path: Ne,
|
|
14847
14848
|
entityId: Fe,
|
|
@@ -14850,7 +14851,7 @@ function Ed({
|
|
|
14850
14851
|
closeAfterSave: It,
|
|
14851
14852
|
autoSave: W
|
|
14852
14853
|
}) => {
|
|
14853
|
-
_ && (W ? f(Ke) :
|
|
14854
|
+
_ && (W ? f(Ke) : N({
|
|
14854
14855
|
collection: U,
|
|
14855
14856
|
path: Ne,
|
|
14856
14857
|
entityId: Fe,
|
|
@@ -14858,9 +14859,9 @@ function Ed({
|
|
|
14858
14859
|
previousValues: St,
|
|
14859
14860
|
closeAfterSave: It
|
|
14860
14861
|
}));
|
|
14861
|
-
}, ye =
|
|
14862
|
+
}, ye = j ? j.map((U) => Yn(U, b.entityViews)).filter(Boolean) : [], T = j && ye.map(
|
|
14862
14863
|
(U, Ne) => {
|
|
14863
|
-
if (!U ||
|
|
14864
|
+
if (!U || O.current !== U.key)
|
|
14864
14865
|
return null;
|
|
14865
14866
|
const Fe = U.Builder;
|
|
14866
14867
|
return Fe ? /* @__PURE__ */ n(
|
|
@@ -14884,17 +14885,17 @@ function Ed({
|
|
|
14884
14885
|
`custom_view_${U.key}`
|
|
14885
14886
|
) : (console.error("customView.Builder is not defined"), null);
|
|
14886
14887
|
}
|
|
14887
|
-
).filter(Boolean),
|
|
14888
|
+
).filter(Boolean), $ = q && !oe || (!oe || z === void 0) && (_ === "existing" || _ === "copy"), be = $ || u, xe = P && P.map(
|
|
14888
14889
|
(U, Ne) => {
|
|
14889
14890
|
const Fe = U.id ?? U.path, Ke = oe ? `${e}/${oe?.id}/${ke(Fe)}` : void 0;
|
|
14890
|
-
return
|
|
14891
|
+
return O.current !== Fe ? null : /* @__PURE__ */ w(
|
|
14891
14892
|
"div",
|
|
14892
14893
|
{
|
|
14893
14894
|
className: "relative flex-grow h-full overflow-auto w-full",
|
|
14894
14895
|
role: "tabpanel",
|
|
14895
14896
|
children: [
|
|
14896
14897
|
be && /* @__PURE__ */ n($r, {}),
|
|
14897
|
-
|
|
14898
|
+
!$ && (oe && Ke ? /* @__PURE__ */ n(
|
|
14898
14899
|
jo,
|
|
14899
14900
|
{
|
|
14900
14901
|
fullPath: Ke,
|
|
@@ -14917,7 +14918,7 @@ function Ed({
|
|
|
14917
14918
|
).filter(Boolean), de = x(() => {
|
|
14918
14919
|
s(!1);
|
|
14919
14920
|
}, []), qe = (U) => {
|
|
14920
|
-
|
|
14921
|
+
O.current = U, A.replace({
|
|
14921
14922
|
path: e,
|
|
14922
14923
|
entityId: t,
|
|
14923
14924
|
selectedSubPath: U === Jt ? void 0 : U,
|
|
@@ -14947,7 +14948,7 @@ function Ed({
|
|
|
14947
14948
|
status: _,
|
|
14948
14949
|
path: e,
|
|
14949
14950
|
collection: a,
|
|
14950
|
-
onEntitySaveRequested:
|
|
14951
|
+
onEntitySaveRequested: ee,
|
|
14951
14952
|
onDiscard: de,
|
|
14952
14953
|
onValuesChanged: Ue,
|
|
14953
14954
|
onModified: Xe,
|
|
@@ -14978,7 +14979,7 @@ function Ed({
|
|
|
14978
14979
|
));
|
|
14979
14980
|
}), /* @__PURE__ */ n(ue, { children: Ne });
|
|
14980
14981
|
}
|
|
14981
|
-
const
|
|
14982
|
+
const vr = z === void 0 ? /* @__PURE__ */ n(Y, {}) : z ? /* @__PURE__ */ w(Y, { children: [
|
|
14982
14983
|
/* @__PURE__ */ n(
|
|
14983
14984
|
L,
|
|
14984
14985
|
{
|
|
@@ -14996,9 +14997,9 @@ function Ed({
|
|
|
14996
14997
|
collection: a
|
|
14997
14998
|
}
|
|
14998
14999
|
)
|
|
14999
|
-
] }) : $t(),
|
|
15000
|
+
] }) : $t(), _r = P && P.map(
|
|
15000
15001
|
(U) => /* @__PURE__ */ n(
|
|
15001
|
-
|
|
15002
|
+
Er,
|
|
15002
15003
|
{
|
|
15003
15004
|
className: "text-sm min-w-[140px]",
|
|
15004
15005
|
value: U.id,
|
|
@@ -15006,9 +15007,9 @@ function Ed({
|
|
|
15006
15007
|
},
|
|
15007
15008
|
`entity_detail_collection_tab_${U.name}`
|
|
15008
15009
|
)
|
|
15009
|
-
),
|
|
15010
|
+
), kr = ye.map(
|
|
15010
15011
|
(U) => /* @__PURE__ */ n(
|
|
15011
|
-
|
|
15012
|
+
Er,
|
|
15012
15013
|
{
|
|
15013
15014
|
className: "text-sm min-w-[140px]",
|
|
15014
15015
|
value: U.key,
|
|
@@ -15021,7 +15022,7 @@ function Ed({
|
|
|
15021
15022
|
"div",
|
|
15022
15023
|
{
|
|
15023
15024
|
className: "flex flex-col h-full w-full transition-width duration-250 ease-in-out",
|
|
15024
|
-
children: /* @__PURE__ */ w(
|
|
15025
|
+
children: /* @__PURE__ */ w(Y, { children: [
|
|
15025
15026
|
/* @__PURE__ */ w(
|
|
15026
15027
|
"div",
|
|
15027
15028
|
{
|
|
@@ -15042,7 +15043,7 @@ function Ed({
|
|
|
15042
15043
|
}
|
|
15043
15044
|
),
|
|
15044
15045
|
/* @__PURE__ */ n("div", { className: "flex-grow" }),
|
|
15045
|
-
|
|
15046
|
+
$ && /* @__PURE__ */ n(
|
|
15046
15047
|
"div",
|
|
15047
15048
|
{
|
|
15048
15049
|
className: "self-center",
|
|
@@ -15052,14 +15053,14 @@ function Ed({
|
|
|
15052
15053
|
/* @__PURE__ */ w(
|
|
15053
15054
|
Qa,
|
|
15054
15055
|
{
|
|
15055
|
-
value:
|
|
15056
|
+
value: O.current,
|
|
15056
15057
|
onValueChange: (U) => {
|
|
15057
15058
|
qe(U);
|
|
15058
15059
|
},
|
|
15059
15060
|
className: "pl-4 pr-4 pt-0",
|
|
15060
15061
|
children: [
|
|
15061
15062
|
/* @__PURE__ */ n(
|
|
15062
|
-
|
|
15063
|
+
Er,
|
|
15063
15064
|
{
|
|
15064
15065
|
disabled: !H,
|
|
15065
15066
|
value: Jt,
|
|
@@ -15067,8 +15068,8 @@ function Ed({
|
|
|
15067
15068
|
children: a.singularName ?? a.name
|
|
15068
15069
|
}
|
|
15069
15070
|
),
|
|
15070
|
-
|
|
15071
|
-
|
|
15071
|
+
kr,
|
|
15072
|
+
_r
|
|
15072
15073
|
]
|
|
15073
15074
|
}
|
|
15074
15075
|
)
|
|
@@ -15094,7 +15095,7 @@ function Ed({
|
|
|
15094
15095
|
hidden: !re,
|
|
15095
15096
|
id: `form_${e}`,
|
|
15096
15097
|
className: " w-full",
|
|
15097
|
-
children:
|
|
15098
|
+
children: $ ? /* @__PURE__ */ n($r, {}) : vr
|
|
15098
15099
|
}
|
|
15099
15100
|
),
|
|
15100
15101
|
T,
|
|
@@ -15181,8 +15182,8 @@ const Wo = I.createContext({
|
|
|
15181
15182
|
}
|
|
15182
15183
|
}), Bi = () => Ge(Wo);
|
|
15183
15184
|
function tm() {
|
|
15184
|
-
const t =
|
|
15185
|
-
return r.push(void 0), /* @__PURE__ */ n(
|
|
15185
|
+
const t = br().sidePanels, r = [...t];
|
|
15186
|
+
return r.push(void 0), /* @__PURE__ */ n(Y, { children: r.map((i, a) => /* @__PURE__ */ n(
|
|
15186
15187
|
Sd,
|
|
15187
15188
|
{
|
|
15188
15189
|
panel: i,
|
|
@@ -15195,7 +15196,7 @@ function Sd({
|
|
|
15195
15196
|
offsetPosition: e,
|
|
15196
15197
|
panel: t
|
|
15197
15198
|
}) {
|
|
15198
|
-
const [r, i] = F(!1), [a, o] = F(!1), [s, c] = F(), l = I.useRef(t?.width), d = l.current, u =
|
|
15199
|
+
const [r, i] = F(!1), [a, o] = F(!1), [s, c] = F(), l = I.useRef(t?.width), d = l.current, u = br(), {
|
|
15199
15200
|
navigationWasBlocked: p,
|
|
15200
15201
|
handleOk: m,
|
|
15201
15202
|
handleCancel: f
|
|
@@ -15203,7 +15204,7 @@ function Sd({
|
|
|
15203
15204
|
a && !r,
|
|
15204
15205
|
() => o(!1)
|
|
15205
15206
|
);
|
|
15206
|
-
|
|
15207
|
+
G(() => {
|
|
15207
15208
|
t && (l.current = t.width);
|
|
15208
15209
|
}, [t]);
|
|
15209
15210
|
const g = () => {
|
|
@@ -15272,7 +15273,7 @@ function Id(e) {
|
|
|
15272
15273
|
throw console.error("ERROR: No collection found in path `", e.path, "`. Entity id: ", e.entityId), Error("ERROR: No collection found in path `" + e.path + "`. Make sure you have defined a collection for this path in the root navigation.");
|
|
15273
15274
|
return l;
|
|
15274
15275
|
}, [a, e]);
|
|
15275
|
-
|
|
15276
|
+
G(() => {
|
|
15276
15277
|
function l(d) {
|
|
15277
15278
|
t && s && (d.preventDefault(), d.returnValue = `You have unsaved changes in this ${s.name}. Are you sure you want to leave this page?`);
|
|
15278
15279
|
}
|
|
@@ -15281,13 +15282,13 @@ function Id(e) {
|
|
|
15281
15282
|
};
|
|
15282
15283
|
}, [t, s]);
|
|
15283
15284
|
const c = x((l) => {
|
|
15284
|
-
r(l), i(l ? /* @__PURE__ */ w(
|
|
15285
|
+
r(l), i(l ? /* @__PURE__ */ w(Y, { children: [
|
|
15285
15286
|
" You have unsaved changes in this ",
|
|
15286
15287
|
/* @__PURE__ */ n("b", { children: s?.singularName ?? s?.name }),
|
|
15287
15288
|
"."
|
|
15288
15289
|
] }) : void 0);
|
|
15289
15290
|
}, [s?.name, r, i]);
|
|
15290
|
-
return !e || !s ? /* @__PURE__ */ n("div", { className: "w-full" }) : /* @__PURE__ */ n(
|
|
15291
|
+
return !e || !s ? /* @__PURE__ */ n("div", { className: "w-full" }) : /* @__PURE__ */ n(Y, { children: /* @__PURE__ */ n(ue, { children: /* @__PURE__ */ n(
|
|
15291
15292
|
Ed,
|
|
15292
15293
|
{
|
|
15293
15294
|
...e,
|
|
@@ -15306,8 +15307,8 @@ function Nd(e, t) {
|
|
|
15306
15307
|
return r ? i ?? Yi : `calc(${Qs} + ${i ?? Yi})`;
|
|
15307
15308
|
}
|
|
15308
15309
|
const Fd = (e, t) => {
|
|
15309
|
-
const r =
|
|
15310
|
-
|
|
15310
|
+
const r = fr(), i = se(!1), a = !We();
|
|
15311
|
+
G(() => {
|
|
15311
15312
|
if (!e.loading && !i.current) {
|
|
15312
15313
|
if (console.debug("Initialising side entity controller"), e.isUrlCollectionPath(r.pathname)) {
|
|
15313
15314
|
const l = r.hash === `#${Jo}`, d = e.urlPathToDataPath(r.pathname), u = Pd(d, e.collections ?? [], l);
|
|
@@ -15397,10 +15398,10 @@ const Ht = (e, t, r, i) => {
|
|
|
15397
15398
|
};
|
|
15398
15399
|
};
|
|
15399
15400
|
function Qd() {
|
|
15400
|
-
const e =
|
|
15401
|
+
const e = fr(), t = Yt(), [r, i] = F([]), a = se(r), o = se({}), s = se(0), c = (p) => {
|
|
15401
15402
|
a.current = p, i(p);
|
|
15402
15403
|
};
|
|
15403
|
-
|
|
15404
|
+
G(() => {
|
|
15404
15405
|
const f = (e.state?.panels ?? []).map((g) => o.current[g]).filter((g) => !!g);
|
|
15405
15406
|
Z(a.current.map((g) => g.key), f.map((g) => g.key)) || c(f);
|
|
15406
15407
|
}, [e]);
|
|
@@ -15706,7 +15707,7 @@ async function Td(e, t) {
|
|
|
15706
15707
|
}
|
|
15707
15708
|
function Od(e, t) {
|
|
15708
15709
|
const [r, i] = F(null), a = se(null), o = t?.map((s) => s.key);
|
|
15709
|
-
return
|
|
15710
|
+
return G(() => {
|
|
15710
15711
|
e.user && e.user.uid !== a.current && !e.initialLoading && (Td(e, o).then(i), a.current = e.user.uid);
|
|
15711
15712
|
}, [e, o]), r;
|
|
15712
15713
|
}
|
|
@@ -15743,19 +15744,19 @@ function rm(e) {
|
|
|
15743
15744
|
}, B = he(() => ({
|
|
15744
15745
|
onAnalyticsEvent: p
|
|
15745
15746
|
}), []), _ = Od(c, u);
|
|
15746
|
-
return h.navigationLoadingError ? /* @__PURE__ */ n(
|
|
15747
|
+
return h.navigationLoadingError ? /* @__PURE__ */ n(Xt, { maxWidth: "md", children: /* @__PURE__ */ n(
|
|
15747
15748
|
Se,
|
|
15748
15749
|
{
|
|
15749
15750
|
title: "Error loading navigation",
|
|
15750
15751
|
error: h.navigationLoadingError
|
|
15751
15752
|
}
|
|
15752
|
-
) }) : c.authError ? /* @__PURE__ */ n(
|
|
15753
|
+
) }) : c.authError ? /* @__PURE__ */ n(Xt, { maxWidth: "md", children: /* @__PURE__ */ n(
|
|
15753
15754
|
Se,
|
|
15754
15755
|
{
|
|
15755
15756
|
title: "Error loading auth",
|
|
15756
15757
|
error: c.authError
|
|
15757
15758
|
}
|
|
15758
|
-
) }) : _?.blocked ? /* @__PURE__ */ w(
|
|
15759
|
+
) }) : _?.blocked ? /* @__PURE__ */ w(Xt, { maxWidth: "md", fullScreen: !0, children: [
|
|
15759
15760
|
/* @__PURE__ */ n(L, { variant: "h4", children: "Access blocked" }),
|
|
15760
15761
|
/* @__PURE__ */ w(L, { children: [
|
|
15761
15762
|
"This app has been blocked. Please reach out at ",
|
|
@@ -15841,7 +15842,7 @@ function Md({
|
|
|
15841
15842
|
children: a
|
|
15842
15843
|
}
|
|
15843
15844
|
));
|
|
15844
|
-
}), /* @__PURE__ */ n(
|
|
15845
|
+
}), /* @__PURE__ */ n(Y, { children: a });
|
|
15845
15846
|
}
|
|
15846
15847
|
function zd({
|
|
15847
15848
|
hovered: e,
|
|
@@ -15872,7 +15873,7 @@ function zd({
|
|
|
15872
15873
|
const y = A.type === "collection" ? "drawer_navigate_to_collection" : A.type === "view" ? "drawer_navigate_to_view" : "unmapped_event";
|
|
15873
15874
|
i.onAnalyticsEvent?.(y, { url: A.url }), s || r();
|
|
15874
15875
|
};
|
|
15875
|
-
return /* @__PURE__ */ w(
|
|
15876
|
+
return /* @__PURE__ */ w(Y, { children: [
|
|
15876
15877
|
/* @__PURE__ */ n("div", { className: "flex-grow overflow-scroll no-scrollbar", children: f.map((A) => /* @__PURE__ */ w(
|
|
15877
15878
|
I.Fragment,
|
|
15878
15879
|
{
|
|
@@ -16132,7 +16133,7 @@ function Yd(e) {
|
|
|
16132
16133
|
sideOffset: 20,
|
|
16133
16134
|
side: "right",
|
|
16134
16135
|
children: /* @__PURE__ */ n(
|
|
16135
|
-
|
|
16136
|
+
pr,
|
|
16136
16137
|
{
|
|
16137
16138
|
to: t.basePath,
|
|
16138
16139
|
children: e.logo ? /* @__PURE__ */ n(
|
|
@@ -16186,7 +16187,7 @@ function Yd(e) {
|
|
|
16186
16187
|
)
|
|
16187
16188
|
]
|
|
16188
16189
|
}
|
|
16189
|
-
) : e.displayed ? /* @__PURE__ */ w(
|
|
16190
|
+
) : e.displayed ? /* @__PURE__ */ w(Y, { children: [
|
|
16190
16191
|
/* @__PURE__ */ n(
|
|
16191
16192
|
ce,
|
|
16192
16193
|
{
|
|
@@ -16489,7 +16490,7 @@ function Ud(e) {
|
|
|
16489
16490
|
}
|
|
16490
16491
|
return Ci[t];
|
|
16491
16492
|
}
|
|
16492
|
-
function
|
|
16493
|
+
function wr(e, t) {
|
|
16493
16494
|
const r = Ho(e), i = Si(e);
|
|
16494
16495
|
if (!i) {
|
|
16495
16496
|
console.error("No field id found for property", e);
|
|
@@ -16526,9 +16527,9 @@ const nm = I.memo(
|
|
|
16526
16527
|
HomePage: t = yc,
|
|
16527
16528
|
customRoutes: r
|
|
16528
16529
|
}) {
|
|
16529
|
-
const i =
|
|
16530
|
+
const i = fr(), a = _e();
|
|
16530
16531
|
if (!a)
|
|
16531
|
-
return /* @__PURE__ */ n(
|
|
16532
|
+
return /* @__PURE__ */ n(Y, {});
|
|
16532
16533
|
const o = i.state, s = o && o.base_location ? o.base_location : i, c = [];
|
|
16533
16534
|
a.views && a.views.forEach((m) => {
|
|
16534
16535
|
Array.isArray(m.path) ? c.push(...m.path.map((f) => Zt(f, m))) : c.push(Zt(m.path, m));
|
|
@@ -16539,7 +16540,7 @@ const nm = I.memo(
|
|
|
16539
16540
|
(m) => {
|
|
16540
16541
|
const f = a.buildUrlCollectionPath(m.id ?? m.path);
|
|
16541
16542
|
return /* @__PURE__ */ n(
|
|
16542
|
-
|
|
16543
|
+
Kt,
|
|
16543
16544
|
{
|
|
16544
16545
|
path: f + "/*",
|
|
16545
16546
|
element: /* @__PURE__ */ n(ue, { children: /* @__PURE__ */ n(
|
|
@@ -16562,14 +16563,14 @@ const nm = I.memo(
|
|
|
16562
16563
|
d,
|
|
16563
16564
|
c,
|
|
16564
16565
|
/* @__PURE__ */ n(
|
|
16565
|
-
|
|
16566
|
+
Kt,
|
|
16566
16567
|
{
|
|
16567
16568
|
path: "/",
|
|
16568
16569
|
element: /* @__PURE__ */ n(t, {})
|
|
16569
16570
|
}
|
|
16570
16571
|
),
|
|
16571
16572
|
/* @__PURE__ */ n(
|
|
16572
|
-
|
|
16573
|
+
Kt,
|
|
16573
16574
|
{
|
|
16574
16575
|
path: "*",
|
|
16575
16576
|
element: /* @__PURE__ */ n(pd, {})
|
|
@@ -16579,7 +16580,7 @@ const nm = I.memo(
|
|
|
16579
16580
|
] });
|
|
16580
16581
|
}
|
|
16581
16582
|
), Zt = (e, t) => /* @__PURE__ */ n(
|
|
16582
|
-
|
|
16583
|
+
Kt,
|
|
16583
16584
|
{
|
|
16584
16585
|
path: e,
|
|
16585
16586
|
element: t.view
|
|
@@ -16672,7 +16673,7 @@ export {
|
|
|
16672
16673
|
go as StringPropertyPreview,
|
|
16673
16674
|
Qc as SwitchFieldBinding,
|
|
16674
16675
|
Pt as TextFieldBinding,
|
|
16675
|
-
|
|
16676
|
+
lr as UrlComponentPreview,
|
|
16676
16677
|
Kl as VirtualTable,
|
|
16677
16678
|
du as addInitialSlash,
|
|
16678
16679
|
fs as applyPermissionsFunctionIfEmpty,
|
|
@@ -16707,11 +16708,11 @@ export {
|
|
|
16707
16708
|
Eu as getDefaultPropertiesOrder,
|
|
16708
16709
|
hi as getDefaultValueFor,
|
|
16709
16710
|
zn as getDefaultValueForDataType,
|
|
16710
|
-
|
|
16711
|
+
ar as getDefaultValuesFor,
|
|
16711
16712
|
Bs as getEntityImagePreviewPropertyKey,
|
|
16712
16713
|
Es as getEntityPreviewKeys,
|
|
16713
16714
|
Hn as getEntityTitlePropertyKey,
|
|
16714
|
-
|
|
16715
|
+
wr as getFieldConfig,
|
|
16715
16716
|
Ho as getFieldId,
|
|
16716
16717
|
Mn as getHashValue,
|
|
16717
16718
|
xs as getIcon,
|
|
@@ -16722,7 +16723,7 @@ export {
|
|
|
16722
16723
|
uu as getLastSegment,
|
|
16723
16724
|
_s as getPropertiesWithPropertiesOrder,
|
|
16724
16725
|
ht as getPropertyInPath,
|
|
16725
|
-
|
|
16726
|
+
rr as getRandomId,
|
|
16726
16727
|
nt as getReferenceFrom,
|
|
16727
16728
|
$n as getResolvedPropertyInPath,
|
|
16728
16729
|
Zu as getSidePanelKey,
|
|
@@ -16733,7 +16734,7 @@ export {
|
|
|
16733
16734
|
qd as isDefaultFieldConfigId,
|
|
16734
16735
|
zi as isEmptyObject,
|
|
16735
16736
|
fu as isEnumValueDisabled,
|
|
16736
|
-
|
|
16737
|
+
hr as isHidden,
|
|
16737
16738
|
Cr as isObject,
|
|
16738
16739
|
Qe as isPropertyBuilder,
|
|
16739
16740
|
qt as isReadOnly,
|
|
@@ -16768,7 +16769,7 @@ export {
|
|
|
16768
16769
|
Yn as resolveEntityView,
|
|
16769
16770
|
hu as resolveEnumValues,
|
|
16770
16771
|
Os as resolveNavigationFrom,
|
|
16771
|
-
|
|
16772
|
+
Ar as resolvePermissions,
|
|
16772
16773
|
Gn as resolveProperties,
|
|
16773
16774
|
ze as resolveProperty,
|
|
16774
16775
|
jn as resolvePropertyEnum,
|
|
@@ -16809,7 +16810,7 @@ export {
|
|
|
16809
16810
|
zu as useResolvedNavigationFrom,
|
|
16810
16811
|
Ro as useSelectionController,
|
|
16811
16812
|
Bi as useSideDialogContext,
|
|
16812
|
-
|
|
16813
|
+
br as useSideDialogsController,
|
|
16813
16814
|
mt as useSideEntityController,
|
|
16814
16815
|
pt as useSnackbarController,
|
|
16815
16816
|
Ut as useStorageSource,
|