@applica-software-guru/react-admin 1.5.244 → 1.5.247

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.
@@ -21195,7 +21195,7 @@ function Cte() {
21195
21195
  var p;
21196
21196
  const a = o.split("/").filter((C) => C), s = _.cloneDeep(n);
21197
21197
  let c = o, u = r(s, o);
21198
- if (u || (u = r(s, a[a.length - 1]), c = u ? u.id : c), !u)
21198
+ if ((!u || u.type === "collapse" || u.type === "group") && (u = r(s, a[a.length - 1]), c = u ? u.id : c), !u || u.type === "collapse" || u.type === "group")
21199
21199
  for (let C = a.length; C >= 0; C--) {
21200
21200
  const E = a.slice(0, C).join("/");
21201
21201
  if (u = r(s, E), u) {
@@ -21203,6 +21203,7 @@ function Cte() {
21203
21203
  break;
21204
21204
  }
21205
21205
  }
21206
+ console.log("menuItem:", u);
21206
21207
  const A = (p = u == null ? void 0 : u.url) == null ? void 0 : p.split("/"), f = (A == null ? void 0 : A.length) || 0;
21207
21208
  if (a.length >= f) {
21208
21209
  const C = a[a.length - 1];
@@ -28739,14 +28740,14 @@ function Xae(e, t) {
28739
28740
  return e && e.data ? { ...e, data: vm(e.data, t), total: e.total + 1 } : e;
28740
28741
  }
28741
28742
  function Zae(e) {
28742
- const { disableFloatingButton: t, startIcon: n = /* @__PURE__ */ h(Gy, {}), ...r } = e, o = ye(
28743
- (a) => {
28744
- var s;
28745
- a.preventDefault(), a.stopPropagation(), (s = e == null ? void 0 : e.onClick) == null || s.call(e);
28743
+ const { disableFloatingButton: t, label: n = "ra.action.create", startIcon: r = /* @__PURE__ */ h(Gy, {}), ...o } = e, a = ye(
28744
+ (s) => {
28745
+ var c;
28746
+ s.preventDefault(), s.stopPropagation(), (c = e == null ? void 0 : e.onClick) == null || c.call(e);
28746
28747
  },
28747
28748
  [e]
28748
28749
  );
28749
- return t ? /* @__PURE__ */ h(Im, { ...r, onClick: o, children: n }) : /* @__PURE__ */ h(UZ, { ...e, onClick: o, children: n });
28750
+ return t ? /* @__PURE__ */ h(Im, { ...o, onClick: a, label: n, children: r }) : /* @__PURE__ */ h(UZ, { ...e, onClick: a, label: n, children: r });
28750
28751
  }
28751
28752
  function _ae(e) {
28752
28753
  const { onSubmit: t, closeDialog: n } = e, { handleSubmit: r } = Jl(), o = vt(), a = ye(