@firecms/core 3.0.0-canary.70 → 3.0.0-canary.71

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
@@ -1,6 +1,6 @@
1
1
  import { jsx as n, jsxs as v, Fragment as M } from "react/jsx-runtime";
2
2
  import * as kt from "react";
3
- import S, { useRef as le, useEffect as O, useContext as $e, useCallback as x, useMemo as he, useState as P, createElement as xa, createRef as Ea, createContext as Ca, forwardRef as Ba, useLayoutEffect as Kr, useDeferredValue as Sa } from "react";
3
+ import S, { useRef as ce, useEffect as O, useContext as $e, useCallback as x, useMemo as he, useState as P, createElement as xa, createRef as Ea, createContext as Ca, forwardRef as Ba, useLayoutEffect as Kr, useDeferredValue as Sa } from "react";
4
4
  import { SnackbarProvider as Ia, useSnackbar as Na } from "notistack";
5
5
  import Ji from "object-hash";
6
6
  import { useCreateFormex as Sn, Formex as In, setIn as ei, Field as Nn, getIn as jt, useFormex as pi } from "@firecms/formex";
@@ -2776,7 +2776,7 @@ function ho(e, t, r = "", i = 0, a = 10) {
2776
2776
  }) : e !== t && console.log("Changed props:", r));
2777
2777
  }
2778
2778
  function pm(e, t = 3) {
2779
- const r = le(e);
2779
+ const r = ce(e);
2780
2780
  O(() => {
2781
2781
  console.log("Changed props:"), ho(e, r.current, "", 0, t), r.current = e;
2782
2782
  });
@@ -2810,7 +2810,7 @@ const go = S.createContext({}), tt = (e) => {
2810
2810
  close: i
2811
2811
  }), [r, i]);
2812
2812
  }, vo = S.createContext(void 0), Pt = () => $e(vo), ko = S.createContext({}), il = ({ children: e }) => {
2813
- const [t, r] = P([]), i = le(t), a = (l) => {
2813
+ const [t, r] = P([]), i = ce(t), a = (l) => {
2814
2814
  i.current = l, r(l);
2815
2815
  }, o = x(() => {
2816
2816
  if (t.length === 0)
@@ -3156,7 +3156,7 @@ function hm({
3156
3156
  }, [e, t]), t.navigation ? { data: r, dataLoading: a, dataLoadingError: s } : { dataLoading: !0 };
3157
3157
  }
3158
3158
  const sl = () => $e(Xn), ll = (e) => {
3159
- const { onSuccess: t, onError: r, disableClipboardAPI: i = !1, copiedDuration: a } = e || {}, o = le(null), [s, l] = P(!1), [c, d] = P("");
3159
+ const { onSuccess: t, onError: r, disableClipboardAPI: i = !1, copiedDuration: a } = e || {}, o = ce(null), [s, l] = P(!1), [c, d] = P("");
3160
3160
  O(() => {
3161
3161
  a && setTimeout(() => l(!1), a);
3162
3162
  }, [s]);
@@ -3304,7 +3304,7 @@ function Am(e) {
3304
3304
  userConfigPersistence: d,
3305
3305
  dataSourceDelegate: u,
3306
3306
  injectCollections: f
3307
- } = e, m = le(), p = le(), h = le(), [A, g] = P(!1), [y, w] = P(void 0), [b, _] = P(!0), [k, E] = P(void 0), C = Ee(t), B = Ee(r), Q = C ? `/${C}` : "/", D = C ? `/${C}/${B}` : `/${B}`, F = x(
3307
+ } = e, m = ce(), p = ce(), h = ce(), [A, g] = P(!1), [y, w] = P(void 0), [b, _] = P(!0), [k, E] = P(void 0), C = Ee(t), B = Ee(r), Q = C ? `/${C}` : "/", D = C ? `/${C}/${B}` : `/${B}`, F = x(
3308
3308
  (T) => C ? `/${C}/${nr(T)}` : `/${nr(T)}`,
3309
3309
  [C]
3310
3310
  ), z = x(
@@ -3537,7 +3537,7 @@ function hl(e, t) {
3537
3537
  return No(r ?? [], a ?? []) ? J(i, o) : !1;
3538
3538
  }
3539
3539
  function ym() {
3540
- const e = le({}), t = x((p) => {
3540
+ const e = ce({}), t = x((p) => {
3541
3541
  const h = localStorage.getItem(p);
3542
3542
  return h ? JSON.parse(h) : {};
3543
3543
  }, []), r = x((p) => {
@@ -3602,7 +3602,7 @@ function vm({
3602
3602
  O(() => {
3603
3603
  t.loginSkipped && f(!0);
3604
3604
  }, [t.loginSkipped]);
3605
- const p = le(), h = x(async () => {
3605
+ const p = ce(), h = x(async () => {
3606
3606
  if (e || t.initialLoading)
3607
3607
  return;
3608
3608
  if (!t.user && !t.loginSkipped) {
@@ -5102,7 +5102,7 @@ function Yl(e) {
5102
5102
  multiline: a,
5103
5103
  updateValue: o,
5104
5104
  focused: s
5105
- } = e, l = le(i), [c, d] = P(i), u = le(!1);
5105
+ } = e, l = ce(i), [c, d] = P(i), u = ce(!1);
5106
5106
  O(() => {
5107
5107
  l.current !== i && i !== c && d(i), l.current = i;
5108
5108
  }, [i]);
@@ -5256,7 +5256,7 @@ function Ll(e) {
5256
5256
  value: r,
5257
5257
  updateValue: i,
5258
5258
  focused: a
5259
- } = e, o = r && typeof r == "number" ? r.toString() : "", [s, l] = P(o), c = le(r);
5259
+ } = e, o = r && typeof r == "number" ? r.toString() : "", [s, l] = P(o), c = ce(r);
5260
5260
  O(() => {
5261
5261
  c.current !== r && String(r) !== s && l(r ? r.toString() : null), c.current = r;
5262
5262
  }, [r]);
@@ -5596,12 +5596,12 @@ function Vo({
5596
5596
  ] });
5597
5597
  }
5598
5598
  function Go({ showError: e, disabled: t, showExpandIcon: r, selected: i, openPopup: a, children: o }) {
5599
- const s = le(null), l = x(() => {
5599
+ const s = ce(null), l = x(() => {
5600
5600
  if (a) {
5601
5601
  const d = s && s?.current?.getBoundingClientRect();
5602
5602
  a(d);
5603
5603
  }
5604
- }, []), c = le();
5604
+ }, []), c = ce();
5605
5605
  return O(() => {
5606
5606
  c.current && i && c.current.focus({ preventScroll: !0 });
5607
5607
  }, [i]), /* @__PURE__ */ n(M, { children: (e || !t && r) && /* @__PURE__ */ v("div", { ref: s, className: "absolute top-0.5 right-0.5 flex items-center", children: [
@@ -6273,7 +6273,7 @@ const pc = ({
6273
6273
  hideOverflow: A = !0,
6274
6274
  showExpandIcon: g = !0
6275
6275
  }) {
6276
- const [y, w] = $n(), b = le(null), _ = he(() => Nr(i), [i]), [k, E] = P(!1), [C, B] = P(l), Q = !o && !!c;
6276
+ const [y, w] = $n(), b = ce(null), _ = he(() => Nr(i), [i]), [k, E] = P(!1), [C, B] = P(l), Q = !o && !!c;
6277
6277
  O(() => {
6278
6278
  l && B(!0);
6279
6279
  const Ae = setTimeout(() => {
@@ -6381,7 +6381,7 @@ function qe({
6381
6381
  value: t,
6382
6382
  setValue: r
6383
6383
  }) {
6384
- const i = le(null);
6384
+ const i = ce(null);
6385
6385
  O(() => {
6386
6386
  typeof e.disabled == "object" && !!e.disabled.clearOnDisabled ? t != null && (i.current = t, r(null)) : i.current && (r(i.current), i.current = null);
6387
6387
  }, [e]);
@@ -6410,7 +6410,7 @@ const gc = S.memo(
6410
6410
  selectedCell: A,
6411
6411
  select: g,
6412
6412
  setPopupCell: y
6413
- } = fc(), w = A?.propertyKey === t && A?.entity.path === d.path && A?.entity.id === d.id, [b, _] = P(i), k = le(i), [E, C] = P(), [B, Q] = P(), [D, F] = P(!1), z = x(() => {
6413
+ } = fc(), w = A?.propertyKey === t && A?.entity.path === d.path && A?.entity.id === d.id, [b, _] = P(i), k = ce(i), [E, C] = P(), [B, Q] = P(), [D, F] = P(!1), z = x(() => {
6414
6414
  F(!0), setTimeout(() => {
6415
6415
  F(!1);
6416
6416
  }, 100);
@@ -7424,7 +7424,7 @@ const Bc = Ba(({
7424
7424
  endAdornment: E,
7425
7425
  AddColumnComponent: C
7426
7426
  }) {
7427
- const B = f ? f[0] : void 0, Q = f ? f[1] : void 0, [D, F] = P(o), z = le(null), $ = le(0);
7427
+ const B = f ? f[0] : void 0, Q = f ? f[1] : void 0, [D, F] = P(o), z = ce(null), $ = ce(0);
7428
7428
  O(() => {
7429
7429
  F(o);
7430
7430
  }, [o]);
@@ -7432,7 +7432,7 @@ const Bc = Ba(({
7432
7432
  F(D.map((G) => G.key === j.column.key ? j.column : G));
7433
7433
  }, [D]), q = x((j) => {
7434
7434
  F(D.map((G) => G.key === j.column.key ? j.column : G)), l && l(j);
7435
- }, [D, l]), V = le();
7435
+ }, [D, l]), V = ce();
7436
7436
  O(() => {
7437
7437
  V.current = c;
7438
7438
  }, [c]);
@@ -7998,7 +7998,7 @@ const Rc = S.memo(
7998
7998
  endAdornment: $,
7999
7999
  AddColumnComponent: oe
8000
8000
  }) {
8001
- const Y = le(null), [X, q] = S.useState(void 0), V = () => {
8001
+ const Y = ce(null), [X, q] = S.useState(void 0), V = () => {
8002
8002
  !k || d || u || w !== void 0 && b?.(w + _);
8003
8003
  }, ae = x(() => {
8004
8004
  b?.(_);
@@ -8183,7 +8183,7 @@ const Wo = function({
8183
8183
  textSearchLoading: q,
8184
8184
  enablePopupIcon: V
8185
8185
  }) {
8186
- const ae = le(null), te = Ze(), Ae = (f?.selectedEntities?.length > 0 ? f?.selectedEntities : m)?.filter(Boolean), ue = Re(), [se, ee] = S.useState(k ?? "m"), T = Ae?.map((ie) => ie.id), ne = x((ie) => {
8186
+ const ae = ce(null), te = Ze(), Ae = (f?.selectedEntities?.length > 0 ? f?.selectedEntities : m)?.filter(Boolean), ue = Re(), [se, ee] = S.useState(k ?? "m"), T = Ae?.map((ie) => ie.id), ne = x((ie) => {
8187
8187
  A && A(ie), ee(ie);
8188
8188
  }, []), K = x((ie) => C.setSearchString?.(ie), []), H = he(() => b ? b.map((ie) => ({ [ie.key]: ie })).reduce((ie, xe) => ({ ...ie, ...xe }), {}) : {}, [b]), j = c, G = ({
8189
8189
  column: ie,
@@ -9524,7 +9524,7 @@ function Xc() {
9524
9524
  }, []), e;
9525
9525
  }
9526
9526
  const Kc = ({ onResize: e }) => {
9527
- const t = le(0), r = le(null), i = le(e);
9527
+ const t = ce(0), r = ce(null), i = ce(e);
9528
9528
  i.current = e;
9529
9529
  const a = x((s) => {
9530
9530
  t.current && cancelAnimationFrame(t.current), t.current = requestAnimationFrame(() => {
@@ -9898,8 +9898,8 @@ const nd = "collectionGroupParent", ta = S.memo(
9898
9898
  W === b && _(void 0);
9899
9899
  }, 2400);
9900
9900
  }, [b]), z = x((W) => {
9901
- const ce = y.current;
9902
- return mo(ce, f, l, W ?? null) ? ce.inlineEditing === void 0 || ce.inlineEditing : !1;
9901
+ const le = y.current;
9902
+ return mo(le, f, l, W ?? null) ? le.inlineEditing === void 0 || le.inlineEditing : !1;
9903
9903
  }, [f, l]), $ = g.selectionEnabled === void 0 || g.selectionEnabled, oe = !z(), [Y, X] = P(!1), q = Ho(), V = g.selectionController ?? q, {
9904
9904
  selectedEntities: ae,
9905
9905
  isEntitySelected: te,
@@ -9916,14 +9916,14 @@ const nd = "collectionGroupParent", ta = S.memo(
9916
9916
  ue.setPopupCell?.(void 0);
9917
9917
  }, [ue.setPopupCell]), ne = x((W) => {
9918
9918
  console.log("Entity clicked", W);
9919
- const ce = y.current;
9919
+ const le = y.current;
9920
9920
  return _(W), p.onAnalyticsEvent?.("edit_entity_clicked", {
9921
9921
  path: W.path,
9922
9922
  entityId: W.id
9923
9923
  }), u.open({
9924
9924
  entityId: W.id,
9925
9925
  path: W.path,
9926
- collection: ce,
9926
+ collection: le,
9927
9927
  updateUrl: !0,
9928
9928
  onClose: F
9929
9929
  });
@@ -9941,49 +9941,49 @@ const nd = "collectionGroupParent", ta = S.memo(
9941
9941
  p.onAnalyticsEvent?.("multiple_delete_dialog_open", {
9942
9942
  path: l
9943
9943
  }), E(ae);
9944
- }, j = (W, ce) => {
9944
+ }, j = (W, le) => {
9945
9945
  p.onAnalyticsEvent?.("single_entity_deleted", {
9946
9946
  path: l
9947
- }), Ae((be) => be.filter((ye) => ye.id !== ce.id)), B(Date.now());
9948
- }, G = (W, ce) => {
9947
+ }), Ae((be) => be.filter((ye) => ye.id !== le.id)), B(Date.now());
9948
+ }, G = (W, le) => {
9949
9949
  p.onAnalyticsEvent?.("multiple_entities_deleted", {
9950
9950
  path: l
9951
9951
  }), Ae([]), E(void 0), B(Date.now());
9952
9952
  };
9953
9953
  let I;
9954
9954
  h?.plugins && (I = h.plugins.find((W) => W.collectionView?.AddColumnComponent)?.collectionView?.AddColumnComponent);
9955
- const R = x((W, ce) => {
9955
+ const R = x((W, le) => {
9956
9956
  if (m) {
9957
- const be = m.getCollectionConfig(W), ye = He(be, ce);
9957
+ const be = m.getCollectionConfig(W), ye = He(be, le);
9958
9958
  m.onCollectionModified(W, ye);
9959
9959
  }
9960
9960
  }, [m]), me = x(({
9961
9961
  width: W,
9962
- key: ce
9962
+ key: le
9963
9963
  }) => {
9964
9964
  const be = y.current;
9965
- if (!wt(be.properties, ce))
9965
+ if (!wt(be.properties, le))
9966
9966
  return;
9967
- const ye = ra(ce, W);
9967
+ const ye = ra(le, W);
9968
9968
  R(l, ye);
9969
9969
  }, [R, l]), Ie = x((W) => {
9970
9970
  m && R(l, { defaultSize: W });
9971
9971
  }, [R, l, m]), Xe = $t(g, f, l, null), ie = x(
9972
9972
  ({
9973
9973
  name: W,
9974
- value: ce,
9974
+ value: le,
9975
9975
  property: be,
9976
9976
  entityId: ye
9977
- }) => c.checkUniqueField(l, W, ce, ye),
9977
+ }) => c.checkUniqueField(l, W, le, ye),
9978
9978
  [l]
9979
9979
  ), xe = ({
9980
9980
  value: W,
9981
- propertyKey: ce,
9981
+ propertyKey: le,
9982
9982
  onValueUpdated: be,
9983
9983
  setError: ye,
9984
9984
  data: we
9985
9985
  }) => {
9986
- const Je = ei({ ...we.values }, ce, W), st = {
9986
+ const Je = ei({ ...we.values }, le, W), st = {
9987
9987
  path: l,
9988
9988
  entityId: we.id,
9989
9989
  values: Je,
@@ -10009,18 +10009,18 @@ const nd = "collectionGroupParent", ta = S.memo(
10009
10009
  fields: h.propertyConfigs
10010
10010
  }), [g, l]), Ce = x(({
10011
10011
  propertyKey: W,
10012
- entity: ce
10012
+ entity: le
10013
10013
  }) => {
10014
10014
  let be = wt(g.properties, W);
10015
10015
  return be || (be = wt(Te.properties, W)), Ye({
10016
10016
  propertyKey: W,
10017
10017
  propertyOrBuilder: be,
10018
- path: l,
10019
- values: ce.values,
10020
- entityId: ce.id,
10018
+ path: le.path,
10019
+ values: le.values,
10020
+ entityId: le.id,
10021
10021
  fields: h.propertyConfigs
10022
10022
  });
10023
- }, [g.properties, h.propertyConfigs, l, Te.properties]), We = Uo(Te, !0), Ke = he(() => {
10023
+ }, [g.properties, h.propertyConfigs, Te.properties]), We = Uo(Te, !0), Ke = he(() => {
10024
10024
  const W = g.subcollections?.map((be) => ({
10025
10025
  key: Di(be),
10026
10026
  name: be.name,
@@ -10044,7 +10044,7 @@ const nd = "collectionGroupParent", ta = S.memo(
10044
10044
  children: be.name
10045
10045
  }
10046
10046
  )
10047
- })) ?? [], ce = g.collectionGroup ? [{
10047
+ })) ?? [], le = g.collectionGroup ? [{
10048
10048
  key: nd,
10049
10049
  name: "Parent entities",
10050
10050
  width: 260,
@@ -10064,22 +10064,22 @@ const nd = "collectionGroupParent", ta = S.memo(
10064
10064
  return [
10065
10065
  ...g.additionalFields ?? [],
10066
10066
  ...W,
10067
- ...ce
10067
+ ...le
10068
10068
  ];
10069
10069
  }, [g, l, u]), rt = x(() => {
10070
10070
  B(Date.now());
10071
10071
  }, []), re = Ze(), Be = ({
10072
10072
  entity: W,
10073
- customEntityActions: ce
10073
+ customEntityActions: le
10074
10074
  }) => {
10075
10075
  const be = W ? Fi(g, f, l, W) : !0, ye = [Vc];
10076
- return Xe && ye.push(Ko), be && ye.push(ea), ce && ye.push(...ce), ye;
10076
+ return Xe && ye.push(Ko), be && ye.push(ea), le && ye.push(...le), ye;
10077
10077
  }, ir = () => {
10078
- const W = Be({}), ce = W.filter((we) => we.collapsed !== !1), ye = W.filter((we) => we.collapsed === !1).length * (re ? 40 : 30);
10079
- return (re ? 80 + ye : 70 + ye) + (ce.length > 0 ? re ? 40 : 30 : 0);
10078
+ const W = Be({}), le = W.filter((we) => we.collapsed !== !1), ye = W.filter((we) => we.collapsed === !1).length * (re ? 40 : 30);
10079
+ return (re ? 80 + ye : 70 + ye) + (le.length > 0 ? re ? 40 : 30 : 0);
10080
10080
  }, Rt = ({
10081
10081
  entity: W,
10082
- size: ce,
10082
+ size: le,
10083
10083
  width: be,
10084
10084
  frozen: ye
10085
10085
  }) => {
@@ -10095,7 +10095,7 @@ const nd = "collectionGroupParent", ta = S.memo(
10095
10095
  frozen: ye,
10096
10096
  isSelected: we,
10097
10097
  selectionEnabled: $,
10098
- size: ce,
10098
+ size: le,
10099
10099
  highlightEntity: _,
10100
10100
  unhighlightEntity: F,
10101
10101
  collection: g,
@@ -10139,7 +10139,7 @@ const nd = "collectionGroupParent", ta = S.memo(
10139
10139
  }
10140
10140
  ), Tt = x(({
10141
10141
  property: W,
10142
- propertyKey: ce,
10142
+ propertyKey: le,
10143
10143
  onHover: be
10144
10144
  }) => {
10145
10145
  const ye = y.current;
@@ -10149,7 +10149,7 @@ const nd = "collectionGroupParent", ta = S.memo(
10149
10149
  st,
10150
10150
  {
10151
10151
  onHover: be,
10152
- propertyKey: ce,
10152
+ propertyKey: le,
10153
10153
  property: W,
10154
10154
  fullPath: l,
10155
10155
  collection: ye,
@@ -10748,7 +10748,7 @@ function oa({
10748
10748
  newDefaultEntry: c,
10749
10749
  onValueChange: d
10750
10750
  }) {
10751
- const u = r && Array.isArray(r) && r.length > 0, f = le(cd(r)), [m, p] = P(
10751
+ const u = r && Array.isArray(r) && r.length > 0, f = ce(cd(r)), [m, p] = P(
10752
10752
  u ? Object.values(f.current) : []
10753
10753
  );
10754
10754
  O(() => {
@@ -12356,7 +12356,7 @@ function Sd({
12356
12356
  Component: a,
12357
12357
  plugins: o
12358
12358
  }) {
12359
- return le((() => {
12359
+ return ce((() => {
12360
12360
  let l = null;
12361
12361
  return o && o.forEach((c) => {
12362
12362
  const d = la(i);
@@ -13279,7 +13279,7 @@ function Od({
13279
13279
  includeDescription: u,
13280
13280
  context: f
13281
13281
  }) {
13282
- const [m, p] = S.useState(t), h = le(t);
13282
+ const [m, p] = S.useState(t), h = ce(t);
13283
13283
  rs("MarkdownFieldBinding", Md);
13284
13284
  const A = Sa({
13285
13285
  internalValue: m,
@@ -14778,7 +14778,7 @@ function Jd({
14778
14778
  closeAfterSave: !1
14779
14779
  });
14780
14780
  }, !1, 2e3);
14781
- const A = a, g = Nt(), y = tt(a), w = Yi(), b = Ft(), _ = gt(), k = fe(), E = Re(), C = le(!1), B = Qt(), Q = he(() => Le({
14781
+ const A = a, g = Nt(), y = tt(a), w = Yi(), b = Ft(), _ = gt(), k = fe(), E = Re(), C = ce(!1), B = Qt(), Q = he(() => Le({
14782
14782
  collection: A,
14783
14783
  path: e,
14784
14784
  values: d?.values,
@@ -14789,7 +14789,7 @@ function Jd({
14789
14789
  status: F,
14790
14790
  entityId: Y
14791
14791
  }
14792
- ), ee = le(se ?? Gt), T = le(Hd(Q, F, d)), ne = ee.current === Gt, K = (a.subcollections ?? []).filter((N) => !N.hideFromNavigation), H = K?.length ?? 0, j = a.entityViews, G = j?.length ?? 0, I = a.formAutoSave && !a.customId, R = G > 0 || H > 0, [me, Ie] = P(d), [Xe, ie] = P(void 0);
14792
+ ), ee = ce(se ?? Gt), T = ce(Hd(Q, F, d)), ne = ee.current === Gt, K = (a.subcollections ?? []).filter((N) => !N.hideFromNavigation), H = K?.length ?? 0, j = a.entityViews, G = j?.length ?? 0, I = a.formAutoSave && !a.customId, R = G > 0 || H > 0, [me, Ie] = P(d), [Xe, ie] = P(void 0);
14793
14793
  O(() => {
14794
14794
  d && Ie(d);
14795
14795
  }, [d]), O(() => {
@@ -14905,7 +14905,7 @@ function Jd({
14905
14905
  values: re.values,
14906
14906
  previousValues: re.initialValues,
14907
14907
  fields: k.propertyConfigs
14908
- }), ir = le(d?.values), Rt = (N) => (ir.current = N, Ke({
14908
+ }), ir = ce(d?.values), Rt = (N) => (ir.current = N, Ke({
14909
14909
  collection: Be,
14910
14910
  path: e,
14911
14911
  entityId: Y,
@@ -14985,7 +14985,7 @@ function Jd({
14985
14985
  `subcol_${ve}`
14986
14986
  );
14987
14987
  }
14988
- ).filter(Boolean), ce = x(() => {
14988
+ ).filter(Boolean), le = x(() => {
14989
14989
  s(!1);
14990
14990
  }, []), be = (N) => {
14991
14991
  ee.current = N, b.replace({
@@ -15244,7 +15244,7 @@ function Jd({
15244
15244
  status: F,
15245
15245
  path: e,
15246
15246
  collection: a,
15247
- onDiscard: ce,
15247
+ onDiscard: le,
15248
15248
  entity: me,
15249
15249
  context: E,
15250
15250
  formContext: at,
@@ -15309,8 +15309,7 @@ function Jd({
15309
15309
  de,
15310
15310
  {
15311
15311
  onClick: () => (c?.(), w.close(!1)),
15312
- size: "large",
15313
- children: /* @__PURE__ */ n(jn, {})
15312
+ children: /* @__PURE__ */ n(jn, { size: "small" })
15314
15313
  }
15315
15314
  )
15316
15315
  }
@@ -15353,7 +15352,7 @@ function Jd({
15353
15352
  "form",
15354
15353
  {
15355
15354
  onSubmit: re.handleSubmit,
15356
- onReset: () => (re.resetForm(), ce && ce()),
15355
+ onReset: () => (re.resetForm(), le && le()),
15357
15356
  noValidate: !0,
15358
15357
  className: "flex-grow h-full flex overflow-auto flex-col w-full",
15359
15358
  children: [
@@ -15619,7 +15618,7 @@ function mr(e, t = 0) {
15619
15618
  return e.dataType === "array" && e.oneOf ? t + 3 : e.dataType === "array" && e.of ? Array.isArray(e.of) ? Math.max(...e.of.map((r) => mr(r, t + 1))) : mr(e.of, t + 1) : t + 1;
15620
15619
  }
15621
15620
  const nu = (e, t) => {
15622
- const r = Cr(), i = le(!1), a = !Ze();
15621
+ const r = Cr(), i = ce(!1), a = !Ze();
15623
15622
  O(() => {
15624
15623
  if (!e.loading && !i.current) {
15625
15624
  if (console.debug("Initialising side entity controller"), e.isUrlCollectionPath(r.pathname)) {
@@ -15711,7 +15710,7 @@ const or = (e, t, r, i) => {
15711
15710
  };
15712
15711
  };
15713
15712
  function au() {
15714
- const e = Cr(), t = Kt(), [r, i] = P([]), a = le(r), o = le({}), s = le(0), l = (f) => {
15713
+ const e = Cr(), t = Kt(), [r, i] = P([]), a = ce(r), o = ce({}), s = ce(0), l = (f) => {
15715
15714
  a.current = f, i(f);
15716
15715
  };
15717
15716
  O(() => {
@@ -16013,7 +16012,7 @@ async function cu(e, t) {
16013
16012
  ).then(async (i) => i.json());
16014
16013
  }
16015
16014
  function du(e, t) {
16016
- const [r, i] = P(null), a = le(null), o = t?.map((s) => s.key);
16015
+ const [r, i] = P(null), a = ce(null), o = t?.map((s) => s.key);
16017
16016
  return O(() => {
16018
16017
  e.user && e.user.uid !== a.current && !e.initialLoading && (cu(e, o).then(i), a.current = e.user.uid);
16019
16018
  }, [e, o]), r;