@firecms/core 3.0.0-alpha.19 → 3.0.0-alpha.20
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
CHANGED
|
@@ -14947,7 +14947,7 @@ function Gl({
|
|
|
14947
14947
|
status: e,
|
|
14948
14948
|
entity: i
|
|
14949
14949
|
}), new Error("Form has not been initialised with the correct parameters");
|
|
14950
|
-
}, [e, h, i]), [w, x] = S.useState(b), [B, P] = S.useState(!1), [F, N] = S.useState(), C = se(i?.values ?? k), R = C.current, [D, J] = T(R),
|
|
14950
|
+
}, [e, h, i]), [w, x] = S.useState(b), [B, P] = S.useState(!1), [F, N] = S.useState(), C = se(i?.values ?? k), R = C.current, [D, J] = T(R), U = (V) => {
|
|
14951
14951
|
J(V), s && s(V), A && V && !_e(V, R) && H(V);
|
|
14952
14952
|
};
|
|
14953
14953
|
Q(() => {
|
|
@@ -15122,7 +15122,7 @@ function Gl({
|
|
|
15122
15122
|
...V,
|
|
15123
15123
|
initialValues: R,
|
|
15124
15124
|
onModified: l,
|
|
15125
|
-
onValuesChanged:
|
|
15125
|
+
onValuesChanged: U,
|
|
15126
15126
|
underlyingChanges: L,
|
|
15127
15127
|
entity: i,
|
|
15128
15128
|
resolvedCollection: G,
|
|
@@ -16373,12 +16373,12 @@ const Fi = me.forwardRef(function(o, r) {
|
|
|
16373
16373
|
const D = _?.current ?? g.current, J = g.current;
|
|
16374
16374
|
D.style.width = R.width, J.value = N.value || o.placeholder || "x", J.value.slice(-1) === `
|
|
16375
16375
|
` && (J.value += " ");
|
|
16376
|
-
const
|
|
16376
|
+
const U = R.boxSizing, G = it(R.paddingBottom) + it(R.paddingTop), ae = it(R.borderBottomWidth) + it(R.borderTopWidth), L = D.scrollHeight;
|
|
16377
16377
|
J.value = "x";
|
|
16378
16378
|
const H = D.scrollHeight;
|
|
16379
16379
|
let ee = L;
|
|
16380
16380
|
s && (ee = Math.max(Number(s) * H, ee)), l && (ee = Math.min(Number(l) * H, ee)), ee = Math.max(ee, H);
|
|
16381
|
-
const z = ee + (
|
|
16381
|
+
const z = ee + (U === "border-box" ? G + ae : 0), W = Math.abs(ee - L) <= 1;
|
|
16382
16382
|
return {
|
|
16383
16383
|
outerHeightStyle: z,
|
|
16384
16384
|
overflow: W
|
|
@@ -16888,7 +16888,7 @@ function ps({
|
|
|
16888
16888
|
});
|
|
16889
16889
|
}
|
|
16890
16890
|
}
|
|
16891
|
-
), { ...D } = P(), J = d ? "Drag 'n' drop some files here, or click here to edit" : "Drag 'n' drop a file here, or click here edit",
|
|
16891
|
+
), { ...D } = P(), J = d ? "Drag 'n' drop some files here, or click here to edit" : "Drag 'n' drop a file here, or click here edit", U = d ? e.of : e, G = ie(() => Sn(v), [v]), ae = !A && s;
|
|
16892
16892
|
return /* @__PURE__ */ I(
|
|
16893
16893
|
"div",
|
|
16894
16894
|
{
|
|
@@ -16911,7 +16911,7 @@ function ps({
|
|
|
16911
16911
|
return L.storagePathOrDownloadUrl ? ee = /* @__PURE__ */ n(
|
|
16912
16912
|
_s,
|
|
16913
16913
|
{
|
|
16914
|
-
property:
|
|
16914
|
+
property: U,
|
|
16915
16915
|
value: L.storagePathOrDownloadUrl,
|
|
16916
16916
|
entity: a,
|
|
16917
16917
|
size: v
|
|
@@ -17192,7 +17192,7 @@ const ys = ({
|
|
|
17192
17192
|
return;
|
|
17193
17193
|
const z = v && v?.current?.getBoundingClientRect();
|
|
17194
17194
|
a ? f(void 0) : !c && z && f(z);
|
|
17195
|
-
}, [v, f, c, a]),
|
|
17195
|
+
}, [v, f, c, a]), U = K((z) => {
|
|
17196
17196
|
J(), z.stopPropagation();
|
|
17197
17197
|
}, [J]);
|
|
17198
17198
|
Q(() => {
|
|
@@ -17225,7 +17225,7 @@ const ys = ({
|
|
|
17225
17225
|
textAlign: d
|
|
17226
17226
|
},
|
|
17227
17227
|
tabIndex: c || a ? void 0 : 0,
|
|
17228
|
-
onFocus:
|
|
17228
|
+
onFocus: U,
|
|
17229
17229
|
onMouseEnter: H,
|
|
17230
17230
|
onMouseMove: H,
|
|
17231
17231
|
onMouseLeave: ee,
|
|
@@ -17290,7 +17290,7 @@ const gs = S.memo(
|
|
|
17290
17290
|
F(!0), setTimeout(() => {
|
|
17291
17291
|
F(!1);
|
|
17292
17292
|
}, 100);
|
|
17293
|
-
}, []), C = !!c.Field, R = !!c.Preview, D = Zn(c), J = typeof c.disabled == "object" ? c.disabled.disabledMessage : void 0,
|
|
17293
|
+
}, []), C = !!c.Field, R = !!c.Preview, D = Zn(c), J = typeof c.disabled == "object" ? c.disabled.disabledMessage : void 0, U = m || A || !!c.disabled, G = ie(() => qn({
|
|
17294
17294
|
property: c,
|
|
17295
17295
|
entityId: d.id,
|
|
17296
17296
|
customFieldValidator: r,
|
|
@@ -17349,7 +17349,7 @@ const gs = S.memo(
|
|
|
17349
17349
|
} : void 0);
|
|
17350
17350
|
};
|
|
17351
17351
|
let z, W = !1, V = !1, ne = !0, oe = !1, j = !1, le = !0;
|
|
17352
|
-
const X = !
|
|
17352
|
+
const X = !U && x;
|
|
17353
17353
|
if (m || D)
|
|
17354
17354
|
return /* @__PURE__ */ n(
|
|
17355
17355
|
eo,
|
|
@@ -17383,7 +17383,7 @@ const gs = S.memo(
|
|
|
17383
17383
|
As,
|
|
17384
17384
|
{
|
|
17385
17385
|
error: x,
|
|
17386
|
-
disabled:
|
|
17386
|
+
disabled: U,
|
|
17387
17387
|
focused: b,
|
|
17388
17388
|
selected: b,
|
|
17389
17389
|
openPopup: g ? ee : void 0,
|
|
@@ -17403,7 +17403,7 @@ const gs = S.memo(
|
|
|
17403
17403
|
{
|
|
17404
17404
|
name: o,
|
|
17405
17405
|
multiple: !1,
|
|
17406
|
-
disabled:
|
|
17406
|
+
disabled: U,
|
|
17407
17407
|
focused: b,
|
|
17408
17408
|
valueType: "number",
|
|
17409
17409
|
small: ln(p) !== "medium",
|
|
@@ -17418,7 +17418,7 @@ const gs = S.memo(
|
|
|
17418
17418
|
align: a,
|
|
17419
17419
|
error: x,
|
|
17420
17420
|
focused: b,
|
|
17421
|
-
disabled:
|
|
17421
|
+
disabled: U,
|
|
17422
17422
|
value: v,
|
|
17423
17423
|
updateValue: L
|
|
17424
17424
|
}
|
|
@@ -17432,7 +17432,7 @@ const gs = S.memo(
|
|
|
17432
17432
|
name: o,
|
|
17433
17433
|
multiple: !1,
|
|
17434
17434
|
focused: b,
|
|
17435
|
-
disabled:
|
|
17435
|
+
disabled: U,
|
|
17436
17436
|
valueType: "string",
|
|
17437
17437
|
small: ln(p) !== "medium",
|
|
17438
17438
|
enumValues: te.enumValues,
|
|
@@ -17447,7 +17447,7 @@ const gs = S.memo(
|
|
|
17447
17447
|
cs,
|
|
17448
17448
|
{
|
|
17449
17449
|
error: x,
|
|
17450
|
-
disabled:
|
|
17450
|
+
disabled: U,
|
|
17451
17451
|
multiline: Ie,
|
|
17452
17452
|
focused: b,
|
|
17453
17453
|
value: v,
|
|
@@ -17460,7 +17460,7 @@ const gs = S.memo(
|
|
|
17460
17460
|
ls,
|
|
17461
17461
|
{
|
|
17462
17462
|
error: x,
|
|
17463
|
-
disabled:
|
|
17463
|
+
disabled: U,
|
|
17464
17464
|
focused: b,
|
|
17465
17465
|
internalValue: v,
|
|
17466
17466
|
updateValue: L
|
|
@@ -17472,7 +17472,7 @@ const gs = S.memo(
|
|
|
17472
17472
|
{
|
|
17473
17473
|
name: o,
|
|
17474
17474
|
error: x,
|
|
17475
|
-
disabled:
|
|
17475
|
+
disabled: U,
|
|
17476
17476
|
mode: c.mode,
|
|
17477
17477
|
focused: b,
|
|
17478
17478
|
internalValue: v,
|
|
@@ -17486,7 +17486,7 @@ const gs = S.memo(
|
|
|
17486
17486
|
name: o,
|
|
17487
17487
|
internalValue: v,
|
|
17488
17488
|
updateValue: L,
|
|
17489
|
-
disabled:
|
|
17489
|
+
disabled: U,
|
|
17490
17490
|
size: p,
|
|
17491
17491
|
path: c.path,
|
|
17492
17492
|
multiselect: !1,
|
|
@@ -17504,7 +17504,7 @@ const gs = S.memo(
|
|
|
17504
17504
|
{
|
|
17505
17505
|
name: o,
|
|
17506
17506
|
multiple: !0,
|
|
17507
|
-
disabled:
|
|
17507
|
+
disabled: U,
|
|
17508
17508
|
focused: b,
|
|
17509
17509
|
small: ln(p) !== "medium",
|
|
17510
17510
|
valueType: te.of.dataType,
|
|
@@ -17517,7 +17517,7 @@ const gs = S.memo(
|
|
|
17517
17517
|
nr,
|
|
17518
17518
|
{
|
|
17519
17519
|
name: o,
|
|
17520
|
-
disabled:
|
|
17520
|
+
disabled: U,
|
|
17521
17521
|
internalValue: v,
|
|
17522
17522
|
updateValue: L,
|
|
17523
17523
|
size: p,
|
|
@@ -17530,7 +17530,7 @@ const gs = S.memo(
|
|
|
17530
17530
|
)), W = !1));
|
|
17531
17531
|
}
|
|
17532
17532
|
}
|
|
17533
|
-
return z || (W = !1, V = b && !z && !
|
|
17533
|
+
return z || (W = !1, V = b && !z && !U && !D, z = /* @__PURE__ */ n(
|
|
17534
17534
|
Fe,
|
|
17535
17535
|
{
|
|
17536
17536
|
width: l,
|
|
@@ -17548,7 +17548,7 @@ const gs = S.memo(
|
|
|
17548
17548
|
width: l,
|
|
17549
17549
|
onSelect: H,
|
|
17550
17550
|
selected: b,
|
|
17551
|
-
disabled:
|
|
17551
|
+
disabled: U || D,
|
|
17552
17552
|
disabledTooltip: J ?? "Disabled",
|
|
17553
17553
|
removePadding: oe,
|
|
17554
17554
|
fullHeight: j,
|
|
@@ -17563,10 +17563,10 @@ const gs = S.memo(
|
|
|
17563
17563
|
Ni,
|
|
17564
17564
|
{
|
|
17565
17565
|
showError: X,
|
|
17566
|
-
disabled:
|
|
17566
|
+
disabled: U,
|
|
17567
17567
|
showExpandIcon: V,
|
|
17568
17568
|
selected: b,
|
|
17569
|
-
openPopup:
|
|
17569
|
+
openPopup: U ? void 0 : ee
|
|
17570
17570
|
}
|
|
17571
17571
|
),
|
|
17572
17572
|
children: z
|
|
@@ -18120,7 +18120,7 @@ const Bs = oc(({
|
|
|
18120
18120
|
}, [a]);
|
|
18121
18121
|
const [R, D] = io(), J = K((X) => {
|
|
18122
18122
|
F(P.map(($) => $.key === X.column.key ? X.column : $));
|
|
18123
|
-
}, [P]),
|
|
18123
|
+
}, [P]), U = K((X) => {
|
|
18124
18124
|
F(P.map(($) => $.key === X.column.key ? X.column : $)), s && s(X);
|
|
18125
18125
|
}, [P, s]), G = se();
|
|
18126
18126
|
Q(() => {
|
|
@@ -18181,7 +18181,7 @@ const Bs = oc(({
|
|
|
18181
18181
|
onRowClick: l,
|
|
18182
18182
|
customView: le,
|
|
18183
18183
|
onColumnResize: J,
|
|
18184
|
-
onColumnResizeEnd:
|
|
18184
|
+
onColumnResizeEnd: U,
|
|
18185
18185
|
filter: G.current,
|
|
18186
18186
|
onColumnSort: L,
|
|
18187
18187
|
onFilterUpdate: V,
|
|
@@ -18503,11 +18503,11 @@ function Ns({
|
|
|
18503
18503
|
const [A, _] = o || [u[0], void 0], [f, p] = T(A), [y, h] = T(_), g = y ? Array.isArray(y) ? y.map((C) => C instanceof Xe ? C.id : null).filter(Boolean) : [y.id] : [];
|
|
18504
18504
|
function b(C, R) {
|
|
18505
18505
|
const D = zt.includes(f), J = zt.includes(C);
|
|
18506
|
-
let
|
|
18507
|
-
D !== J && (
|
|
18508
|
-
const G =
|
|
18506
|
+
let U = R;
|
|
18507
|
+
D !== J && (U = J ? U instanceof Xe ? [U] : [] : void 0), p(C), h(U);
|
|
18508
|
+
const G = U !== null && Array.isArray(U) ? U.length > 0 : U !== void 0;
|
|
18509
18509
|
r(
|
|
18510
|
-
C && G ? [C,
|
|
18510
|
+
C && G ? [C, U] : void 0
|
|
18511
18511
|
);
|
|
18512
18512
|
}
|
|
18513
18513
|
const v = be(), k = ie(() => c ? v.getCollection(c) : void 0, [c]), w = (C) => {
|
|
@@ -19846,7 +19846,7 @@ const Ws = {}, Qi = S.createContext(Ws), Ys = () => Le(Qi), Oi = S.memo(
|
|
|
19846
19846
|
setSortBy: R,
|
|
19847
19847
|
searchString: D,
|
|
19848
19848
|
setSearchString: J,
|
|
19849
|
-
clearFilter:
|
|
19849
|
+
clearFilter: U,
|
|
19850
19850
|
itemCount: G,
|
|
19851
19851
|
setItemCount: ae,
|
|
19852
19852
|
pageSize: L = 50,
|
|
@@ -19880,7 +19880,7 @@ const Ws = {}, Qi = S.createContext(Ws), Ys = () => Le(Qi), Oi = S.memo(
|
|
|
19880
19880
|
Ve(q);
|
|
19881
19881
|
}, []), On = K(() => {
|
|
19882
19882
|
Ve(void 0);
|
|
19883
|
-
}, []),
|
|
19883
|
+
}, []), Y = l, ye = K(({
|
|
19884
19884
|
column: q,
|
|
19885
19885
|
columnIndex: pe,
|
|
19886
19886
|
rowData: Ce,
|
|
@@ -19897,7 +19897,7 @@ const Ws = {}, Qi = S.createContext(Ws), Ys = () => Le(Qi), Oi = S.memo(
|
|
|
19897
19897
|
propertyKey: Je,
|
|
19898
19898
|
property: xn,
|
|
19899
19899
|
value: ge?.values ? pn(ge.values, Je) : void 0,
|
|
19900
|
-
customFieldValidator:
|
|
19900
|
+
customFieldValidator: Y,
|
|
19901
19901
|
columnIndex: pe,
|
|
19902
19902
|
width: q.width,
|
|
19903
19903
|
height: Fn($),
|
|
@@ -19907,7 +19907,7 @@ const Ws = {}, Qi = S.createContext(Ws), Ys = () => Le(Qi), Oi = S.memo(
|
|
|
19907
19907
|
},
|
|
19908
19908
|
`property_table_cell_${ge.id}_${Je}`
|
|
19909
19909
|
) : sn() }) : null;
|
|
19910
|
-
}, [
|
|
19910
|
+
}, [Y, h, $, xe]), de = K(({
|
|
19911
19911
|
column: q,
|
|
19912
19912
|
rowData: pe,
|
|
19913
19913
|
width: Ce
|
|
@@ -20025,7 +20025,7 @@ const Ws = {}, Qi = S.createContext(Ws), Ys = () => Le(Qi), Oi = S.memo(
|
|
|
20025
20025
|
forceFilter: j,
|
|
20026
20026
|
filterIsSet: rn,
|
|
20027
20027
|
onTextSearch: p ? vn : void 0,
|
|
20028
|
-
clearFilter:
|
|
20028
|
+
clearFilter: U,
|
|
20029
20029
|
size: $,
|
|
20030
20030
|
onSizeChanged: fn,
|
|
20031
20031
|
title: c,
|
|
@@ -20193,7 +20193,7 @@ function zi({
|
|
|
20193
20193
|
data: R,
|
|
20194
20194
|
dataLoading: D,
|
|
20195
20195
|
noMoreToLoad: J,
|
|
20196
|
-
dataLoadingError:
|
|
20196
|
+
dataLoadingError: U
|
|
20197
20197
|
} = Aa({
|
|
20198
20198
|
path: e,
|
|
20199
20199
|
collection: o,
|
|
@@ -20214,7 +20214,7 @@ function zi({
|
|
|
20214
20214
|
}),
|
|
20215
20215
|
dataLoading: D,
|
|
20216
20216
|
noMoreToLoad: J,
|
|
20217
|
-
dataLoadingError:
|
|
20217
|
+
dataLoadingError: U,
|
|
20218
20218
|
filterValues: x,
|
|
20219
20219
|
setFilterValues: C,
|
|
20220
20220
|
sortBy: P,
|
|
@@ -20776,7 +20776,7 @@ function iu({
|
|
|
20776
20776
|
i && x.properties[i] ? { [i]: x.properties[i] } : {},
|
|
20777
20777
|
r
|
|
20778
20778
|
);
|
|
20779
|
-
}, [x, g, i, r]),
|
|
20779
|
+
}, [x, g, i, r]), U = K(() => D(y), [y, D]), G = async (H) => (p(null), c && b && d && i ? d({
|
|
20780
20780
|
value: H[i],
|
|
20781
20781
|
propertyKey: i,
|
|
20782
20782
|
entity: b,
|
|
@@ -20912,7 +20912,7 @@ function iu({
|
|
|
20912
20912
|
className: `inline-block fixed z-20 shadow-outline rounded-md bg-white dark:bg-gray-950 ${s ? "visible" : "invisible"} cursor-grab overflow-visible`,
|
|
20913
20913
|
ref: P,
|
|
20914
20914
|
children: [
|
|
20915
|
-
/* @__PURE__ */ n(ou, { onResize:
|
|
20915
|
+
/* @__PURE__ */ n(ou, { onResize: U }),
|
|
20916
20916
|
/* @__PURE__ */ I(
|
|
20917
20917
|
"div",
|
|
20918
20918
|
{
|
|
@@ -20970,16 +20970,16 @@ const cu = "collectionGroupParent", Gi = S.memo(
|
|
|
20970
20970
|
...a
|
|
20971
20971
|
}) {
|
|
20972
20972
|
const l = Ye(), s = be(), u = Xn(), d = Pn(), m = Dn(), A = ce(), _ = S.useRef(null), f = ie(() => {
|
|
20973
|
-
const
|
|
20974
|
-
return
|
|
20973
|
+
const Y = m?.getCollectionConfig(o);
|
|
20974
|
+
return Y ? en(a, Y) : a;
|
|
20975
20975
|
}, [a, o, m?.getCollectionConfig]), [p, y] = T(void 0), [h, g] = S.useState(void 0), [b, v] = S.useState(0), [k, w] = T(0), x = K(() => {
|
|
20976
|
-
const
|
|
20976
|
+
const Y = p;
|
|
20977
20977
|
setTimeout(() => {
|
|
20978
|
-
|
|
20978
|
+
Y === p && y(void 0);
|
|
20979
20979
|
}, 2400);
|
|
20980
|
-
}, [p]), B = K((
|
|
20980
|
+
}, [p]), B = K((Y) => bi(f, d, Ze(o), Y ?? null) ? f.inlineEditing === void 0 || f.inlineEditing : !1, [f, d, o]), P = f.selectionEnabled === void 0 || f.selectionEnabled, F = !B(), [N, C] = T(!1), R = Wi(), D = f.selectionController ?? R, {
|
|
20981
20981
|
selectedEntities: J,
|
|
20982
|
-
toggleEntitySelection:
|
|
20982
|
+
toggleEntitySelection: U,
|
|
20983
20983
|
isEntitySelected: G,
|
|
20984
20984
|
setSelectedEntities: ae
|
|
20985
20985
|
} = D;
|
|
@@ -20993,12 +20993,12 @@ const cu = "collectionGroupParent", Gi = S.memo(
|
|
|
20993
20993
|
lastDeleteTimestamp: b
|
|
20994
20994
|
}), H = S.useRef(Math.random().toString(36)), ee = L.popupCell, z = K(() => {
|
|
20995
20995
|
L.setPopupCell?.(void 0);
|
|
20996
|
-
}, [L.setPopupCell]), W = K((
|
|
20997
|
-
path:
|
|
20998
|
-
entityId:
|
|
20996
|
+
}, [L.setPopupCell]), W = K((Y) => (y(Y), A.onAnalyticsEvent?.("edit_entity_clicked", {
|
|
20997
|
+
path: Y.path,
|
|
20998
|
+
entityId: Y.id
|
|
20999
20999
|
}), u.open({
|
|
21000
|
-
entityId:
|
|
21001
|
-
path:
|
|
21000
|
+
entityId: Y.id,
|
|
21001
|
+
path: Y.path,
|
|
21002
21002
|
collection: f,
|
|
21003
21003
|
updateUrl: !0,
|
|
21004
21004
|
onClose: x
|
|
@@ -21011,47 +21011,47 @@ const cu = "collectionGroupParent", Gi = S.memo(
|
|
|
21011
21011
|
updateUrl: !0,
|
|
21012
21012
|
onClose: x
|
|
21013
21013
|
});
|
|
21014
|
-
}, [o, f, u]), ne = K((
|
|
21014
|
+
}, [o, f, u]), ne = K((Y) => {
|
|
21015
21015
|
A.onAnalyticsEvent?.("single_delete_dialog_open", {
|
|
21016
21016
|
path: o
|
|
21017
|
-
}), g(
|
|
21017
|
+
}), g(Y);
|
|
21018
21018
|
}, [A, o]), oe = K(() => {
|
|
21019
21019
|
A.onAnalyticsEvent?.("multiple_delete_dialog_open", {
|
|
21020
21020
|
path: o
|
|
21021
21021
|
}), g(J);
|
|
21022
|
-
}, [A, o, J]), j = K((
|
|
21022
|
+
}, [A, o, J]), j = K((Y, ye) => {
|
|
21023
21023
|
A.onAnalyticsEvent?.("single_entity_deleted", {
|
|
21024
21024
|
path: o
|
|
21025
21025
|
}), ae((de) => de.filter((M) => M.id !== ye.id)), v(Date.now());
|
|
21026
|
-
}, [A, o, ae]), le = K((
|
|
21026
|
+
}, [A, o, ae]), le = K((Y, ye) => {
|
|
21027
21027
|
A.onAnalyticsEvent?.("multiple_entities_deleted", {
|
|
21028
21028
|
path: o
|
|
21029
21029
|
}), ae([]), g(void 0), v(Date.now());
|
|
21030
|
-
}, [ae]), X = K((
|
|
21030
|
+
}, [ae]), X = K((Y, ye) => {
|
|
21031
21031
|
if (m) {
|
|
21032
|
-
const de = m.getCollectionConfig(
|
|
21033
|
-
m.onCollectionModified(
|
|
21032
|
+
const de = m.getCollectionConfig(Y), M = en(de, ye);
|
|
21033
|
+
m.onCollectionModified(Y, M);
|
|
21034
21034
|
}
|
|
21035
21035
|
}, [m]), $ = K(({
|
|
21036
|
-
width:
|
|
21036
|
+
width: Y,
|
|
21037
21037
|
key: ye
|
|
21038
21038
|
}) => {
|
|
21039
21039
|
if (!Cn(f.properties, ye))
|
|
21040
21040
|
return;
|
|
21041
|
-
const de = Yi(ye,
|
|
21041
|
+
const de = Yi(ye, Y);
|
|
21042
21042
|
X(o, de);
|
|
21043
|
-
}, [f, X, o]), te = K((
|
|
21044
|
-
m && X(o, { defaultSize:
|
|
21043
|
+
}, [f, X, o]), te = K((Y) => {
|
|
21044
|
+
m && X(o, { defaultSize: Y });
|
|
21045
21045
|
}, [X, o, m]), Ie = bo(f, d, Ze(o), null), Ve = K(
|
|
21046
21046
|
({
|
|
21047
|
-
name:
|
|
21047
|
+
name: Y,
|
|
21048
21048
|
value: ye,
|
|
21049
21049
|
property: de,
|
|
21050
21050
|
entityId: M
|
|
21051
|
-
}) => l.checkUniqueField(o,
|
|
21051
|
+
}) => l.checkUniqueField(o, Y, ye, de, M),
|
|
21052
21052
|
[o]
|
|
21053
21053
|
), xe = ({
|
|
21054
|
-
fullPath:
|
|
21054
|
+
fullPath: Y,
|
|
21055
21055
|
context: ye,
|
|
21056
21056
|
value: de,
|
|
21057
21057
|
propertyKey: M,
|
|
@@ -21060,7 +21060,7 @@ const cu = "collectionGroupParent", Gi = S.memo(
|
|
|
21060
21060
|
entity: Te
|
|
21061
21061
|
}) => {
|
|
21062
21062
|
const mn = cc({ ...Te.values }, M, de), q = {
|
|
21063
|
-
path:
|
|
21063
|
+
path: Y,
|
|
21064
21064
|
entityId: Te.id,
|
|
21065
21065
|
values: mn,
|
|
21066
21066
|
previousValues: Te.values,
|
|
@@ -21081,10 +21081,10 @@ const cu = "collectionGroupParent", Gi = S.memo(
|
|
|
21081
21081
|
collection: f,
|
|
21082
21082
|
path: o,
|
|
21083
21083
|
fields: A.fields
|
|
21084
|
-
}), [f, o]), wn = K(({ propertyKey:
|
|
21085
|
-
let M = Cn(f.properties,
|
|
21086
|
-
return M || (M = Cn(cn.properties,
|
|
21087
|
-
propertyKey:
|
|
21084
|
+
}), [f, o]), wn = K(({ propertyKey: Y, propertyValue: ye, entity: de }) => {
|
|
21085
|
+
let M = Cn(f.properties, Y);
|
|
21086
|
+
return M || (M = Cn(cn.properties, Y)), Me({
|
|
21087
|
+
propertyKey: Y,
|
|
21088
21088
|
propertyOrBuilder: M,
|
|
21089
21089
|
path: o,
|
|
21090
21090
|
propertyValue: ye,
|
|
@@ -21092,31 +21092,31 @@ const cu = "collectionGroupParent", Gi = S.memo(
|
|
|
21092
21092
|
entityId: de.id,
|
|
21093
21093
|
fields: A.fields
|
|
21094
21094
|
});
|
|
21095
|
-
}, [f.properties, A.fields, o, cn.properties]), Qn = Ti(cn, !0), fn = K((
|
|
21096
|
-
y(
|
|
21097
|
-
path:
|
|
21098
|
-
entityId:
|
|
21095
|
+
}, [f.properties, A.fields, o, cn.properties]), Qn = Ti(cn, !0), fn = K((Y) => {
|
|
21096
|
+
y(Y), A.onAnalyticsEvent?.("copy_entity_click", {
|
|
21097
|
+
path: Y.path,
|
|
21098
|
+
entityId: Y.id
|
|
21099
21099
|
}), u.open({
|
|
21100
|
-
entityId:
|
|
21101
|
-
path:
|
|
21100
|
+
entityId: Y.id,
|
|
21101
|
+
path: Y.path,
|
|
21102
21102
|
copy: !0,
|
|
21103
21103
|
collection: f,
|
|
21104
21104
|
updateUrl: !0,
|
|
21105
21105
|
onClose: x
|
|
21106
21106
|
});
|
|
21107
|
-
}, [u, f, o, x]), vn = K((
|
|
21108
|
-
y(
|
|
21109
|
-
path:
|
|
21110
|
-
entityId:
|
|
21107
|
+
}, [u, f, o, x]), vn = K((Y) => {
|
|
21108
|
+
y(Y), A.onAnalyticsEvent?.("entity_click", {
|
|
21109
|
+
path: Y.path,
|
|
21110
|
+
entityId: Y.id
|
|
21111
21111
|
}), u.open({
|
|
21112
|
-
entityId:
|
|
21113
|
-
path:
|
|
21112
|
+
entityId: Y.id,
|
|
21113
|
+
path: Y.path,
|
|
21114
21114
|
collection: f,
|
|
21115
21115
|
updateUrl: !0,
|
|
21116
21116
|
onClose: x
|
|
21117
21117
|
});
|
|
21118
21118
|
}, [u, f, o, x]), an = ie(() => {
|
|
21119
|
-
const
|
|
21119
|
+
const Y = f.subcollections?.map((de) => ({
|
|
21120
21120
|
id: vo(de),
|
|
21121
21121
|
name: de.name,
|
|
21122
21122
|
width: 200,
|
|
@@ -21158,33 +21158,33 @@ const cu = "collectionGroupParent", Gi = S.memo(
|
|
|
21158
21158
|
}] : [];
|
|
21159
21159
|
return [
|
|
21160
21160
|
...f.additionalFields ?? [],
|
|
21161
|
-
...
|
|
21161
|
+
...Y,
|
|
21162
21162
|
...ye
|
|
21163
21163
|
];
|
|
21164
21164
|
}, [f, o]), kn = K(({
|
|
21165
|
-
entity:
|
|
21165
|
+
entity: Y,
|
|
21166
21166
|
size: ye,
|
|
21167
21167
|
width: de,
|
|
21168
21168
|
frozen: M
|
|
21169
21169
|
}) => {
|
|
21170
|
-
const fe = G(
|
|
21170
|
+
const fe = G(Y), we = Ii(f, d, Ze(o), Y);
|
|
21171
21171
|
return /* @__PURE__ */ n(
|
|
21172
21172
|
ko,
|
|
21173
21173
|
{
|
|
21174
|
-
entity:
|
|
21174
|
+
entity: Y,
|
|
21175
21175
|
width: de,
|
|
21176
21176
|
frozen: M,
|
|
21177
21177
|
isSelected: fe,
|
|
21178
21178
|
selectionEnabled: P,
|
|
21179
21179
|
size: ye,
|
|
21180
|
-
toggleEntitySelection:
|
|
21180
|
+
toggleEntitySelection: U,
|
|
21181
21181
|
onEditClicked: vn,
|
|
21182
21182
|
onCopyClicked: Ie ? fn : void 0,
|
|
21183
21183
|
onDeleteClicked: we ? ne : void 0,
|
|
21184
21184
|
hideId: f?.hideIdFromCollection
|
|
21185
21185
|
}
|
|
21186
21186
|
);
|
|
21187
|
-
}, [G, f, d, o, P,
|
|
21187
|
+
}, [G, f, d, o, P, U, vn, Ie, fn]), On = /* @__PURE__ */ n(
|
|
21188
21188
|
Pi,
|
|
21189
21189
|
{
|
|
21190
21190
|
open: N,
|
|
@@ -21196,8 +21196,8 @@ const cu = "collectionGroupParent", Gi = S.memo(
|
|
|
21196
21196
|
{
|
|
21197
21197
|
variant: "subtitle1",
|
|
21198
21198
|
className: `leading-none truncate max-w-[160px] lg:max-w-[240px] ${f.description ? "cursor-pointer" : "cursor-auto"}`,
|
|
21199
|
-
onClick: f.description ? (
|
|
21200
|
-
C(!0),
|
|
21199
|
+
onClick: f.description ? (Y) => {
|
|
21200
|
+
C(!0), Y.stopPropagation();
|
|
21201
21201
|
} : void 0,
|
|
21202
21202
|
children: `${f.name}`
|
|
21203
21203
|
}
|
|
@@ -21366,7 +21366,7 @@ function lu({
|
|
|
21366
21366
|
}))
|
|
21367
21367
|
).then((D) => {
|
|
21368
21368
|
if (!C) {
|
|
21369
|
-
const J = D.filter((
|
|
21369
|
+
const J = D.filter((U) => U !== void 0);
|
|
21370
21370
|
g.setSelectedEntities(J), h(J);
|
|
21371
21371
|
}
|
|
21372
21372
|
}) : (g.setSelectedEntities([]), h([])), () => {
|
|
@@ -21419,7 +21419,7 @@ function lu({
|
|
|
21419
21419
|
width: D,
|
|
21420
21420
|
frozen: J
|
|
21421
21421
|
}) => {
|
|
21422
|
-
const
|
|
21422
|
+
const U = g.selectedEntities, G = U && U.map((ae) => ae.id).indexOf(C.id) > -1;
|
|
21423
21423
|
return /* @__PURE__ */ n(
|
|
21424
21424
|
ko,
|
|
21425
21425
|
{
|
|
@@ -22628,13 +22628,13 @@ function ku({
|
|
|
22628
22628
|
closeAfterSave: !1
|
|
22629
22629
|
});
|
|
22630
22630
|
}, !1, 2e3);
|
|
22631
|
-
const f = Ye(), p = xo(), y = Xn(), h = gn(), g = ce(), b = Pn(), [v, k] = T(void 0), [w, x] = T(i ? "copy" : o ? "existing" : "new"), B = se(void 0), P = B.current, F = (c.subcollections ?? []).filter((M) => !M.hideFromNavigation), N = F?.length ?? 0, C = c.entityViews, R = C?.length ?? 0, D = c.formAutoSave && !c.customId, J = R > 0 || N > 0,
|
|
22631
|
+
const f = Ye(), p = xo(), y = Xn(), h = gn(), g = ce(), b = Pn(), [v, k] = T(void 0), [w, x] = T(i ? "copy" : o ? "existing" : "new"), B = se(void 0), P = B.current, F = (c.subcollections ?? []).filter((M) => !M.hideFromNavigation), N = F?.length ?? 0, C = c.entityViews, R = C?.length ?? 0, D = c.formAutoSave && !c.customId, J = R > 0 || N > 0, U = r ?? yi(
|
|
22632
22632
|
c ? c.defaultSelectedView : void 0,
|
|
22633
22633
|
{
|
|
22634
22634
|
status: w,
|
|
22635
22635
|
entityId: o
|
|
22636
22636
|
}
|
|
22637
|
-
), G = se(
|
|
22637
|
+
), G = se(U ?? ct), ae = G.current === ct, {
|
|
22638
22638
|
entity: L,
|
|
22639
22639
|
dataLoading: H,
|
|
22640
22640
|
// eslint-disable-next-line no-unused-vars
|
|
@@ -22840,7 +22840,7 @@ function ku({
|
|
|
22840
22840
|
));
|
|
22841
22841
|
}), /* @__PURE__ */ n(Ae, { children: fe });
|
|
22842
22842
|
}
|
|
22843
|
-
const
|
|
22843
|
+
const Y = V === void 0 ? /* @__PURE__ */ n(O, {}) : V ? /* @__PURE__ */ I(O, { children: [
|
|
22844
22844
|
/* @__PURE__ */ n(
|
|
22845
22845
|
Z,
|
|
22846
22846
|
{
|
|
@@ -22956,7 +22956,7 @@ function ku({
|
|
|
22956
22956
|
hidden: !ae,
|
|
22957
22957
|
id: `form_${e}`,
|
|
22958
22958
|
className: " w-full",
|
|
22959
|
-
children: xe ? /* @__PURE__ */ n(It, {}) :
|
|
22959
|
+
children: xe ? /* @__PURE__ */ n(It, {}) : Y
|
|
22960
22960
|
}
|
|
22961
22961
|
),
|
|
22962
22962
|
Ve,
|
|
@@ -23211,7 +23211,7 @@ function Eu({
|
|
|
23211
23211
|
if (V = j.subcollections, ne === W.length - 1)
|
|
23212
23212
|
return j;
|
|
23213
23213
|
}
|
|
23214
|
-
}, [d]),
|
|
23214
|
+
}, [d]), U = K(
|
|
23215
23215
|
(W) => Ke(W + "/").startsWith(Ke(P) + "/"),
|
|
23216
23216
|
[P]
|
|
23217
23217
|
), G = K((W) => {
|
|
@@ -23242,7 +23242,7 @@ function Eu({
|
|
|
23242
23242
|
initialised: f,
|
|
23243
23243
|
getCollection: D,
|
|
23244
23244
|
getCollectionFromPaths: J,
|
|
23245
|
-
isUrlCollectionPath:
|
|
23245
|
+
isUrlCollectionPath: U,
|
|
23246
23246
|
urlPathToDataPath: G,
|
|
23247
23247
|
buildUrlCollectionPath: N,
|
|
23248
23248
|
buildUrlEditCollectionPath: ae,
|
|
@@ -23252,7 +23252,7 @@ function Eu({
|
|
|
23252
23252
|
baseLocation: ee,
|
|
23253
23253
|
refreshNavigation: R,
|
|
23254
23254
|
getParentReferencesFromPath: z
|
|
23255
|
-
}), [o, ee, e, F, N, ae, d, z, D, J, B, f,
|
|
23255
|
+
}), [o, ee, e, F, N, ae, d, z, D, J, B, f, U, g, v, R, L, y, G, A]);
|
|
23256
23256
|
}
|
|
23257
23257
|
function at(e) {
|
|
23258
23258
|
return encodeURIComponent(Ke(e)).replaceAll("%2F", "/").replaceAll("%23", "#");
|