@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.
- package/bitbucket-pipelines.yml +1 -1
- package/dist/components/Layout/MenuProvider.d.ts.map +1 -1
- package/dist/components/ra-buttons/CreateInDialogButton.d.ts.map +1 -1
- package/dist/components/ra-forms/LongForm/Tab.d.ts.map +1 -1
- package/dist/react-admin.cjs.js +2 -2
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +7 -6
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +2 -2
- package/dist/react-admin.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Layout/MenuProvider.tsx +4 -2
- package/src/components/ra-buttons/CreateInDialogButton.tsx +4 -3
- package/src/components/ra-forms/LongForm/Tab.tsx +1 -0
package/dist/react-admin.es.js
CHANGED
|
@@ -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,
|
|
28743
|
-
(
|
|
28744
|
-
var
|
|
28745
|
-
|
|
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, { ...
|
|
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(
|