@applica-software-guru/react-admin 1.5.267 → 1.5.268
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/components/Layout/Layout.d.ts +2 -0
- package/dist/components/Layout/Layout.d.ts.map +1 -1
- package/dist/i18n/createI18nProvider.d.ts +11 -1
- package/dist/i18n/createI18nProvider.d.ts.map +1 -1
- package/dist/react-admin.cjs.js +1 -1
- package/dist/react-admin.cjs.js.gz +0 -0
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +8 -8
- package/dist/react-admin.es.js.gz +0 -0
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +1 -1
- package/dist/react-admin.umd.js.gz +0 -0
- package/dist/react-admin.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Layout/Layout.tsx +3 -2
- package/src/i18n/createI18nProvider.tsx +15 -4
- package/src/playground/App.jsx +3 -3
package/dist/react-admin.es.js
CHANGED
|
@@ -28409,7 +28409,7 @@ function IO({ source: e = "paper" }) {
|
|
|
28409
28409
|
}, [t, n, e]), null;
|
|
28410
28410
|
}
|
|
28411
28411
|
const _ie = tre(function(t) {
|
|
28412
|
-
const { name: n, version: r, enableThemeToggler: o } = t, { isLoading:
|
|
28412
|
+
const { name: n, version: r, enableThemeToggler: o, enableNotification: a } = t, { isLoading: s, navigation: c, breadcrumbs: u } = Aee();
|
|
28413
28413
|
return /* @__PURE__ */ Q(Die, { children: [
|
|
28414
28414
|
/* @__PURE__ */ Q(hie, { children: [
|
|
28415
28415
|
/* @__PURE__ */ m(Eie, {}),
|
|
@@ -28417,18 +28417,18 @@ const _ie = tre(function(t) {
|
|
|
28417
28417
|
o ? /* @__PURE__ */ m(kie, {}) : null,
|
|
28418
28418
|
/* @__PURE__ */ m(IO, {}),
|
|
28419
28419
|
/* @__PURE__ */ m(DE, {}),
|
|
28420
|
-
/* @__PURE__ */ m(yie, {}),
|
|
28420
|
+
a ? /* @__PURE__ */ m(yie, {}) : null,
|
|
28421
28421
|
/* @__PURE__ */ m(Sie, { children: /* @__PURE__ */ m(Aie, {}) })
|
|
28422
28422
|
] }),
|
|
28423
28423
|
/* @__PURE__ */ m(Tie, { children: /* @__PURE__ */ m(Rie, {}) }),
|
|
28424
28424
|
/* @__PURE__ */ Q(rre, { error: t.error, children: [
|
|
28425
|
-
!
|
|
28425
|
+
!s && /* @__PURE__ */ m(
|
|
28426
28426
|
$$,
|
|
28427
28427
|
{
|
|
28428
28428
|
titleBottom: !0,
|
|
28429
28429
|
mode: "breadcrumbs",
|
|
28430
|
-
navigation:
|
|
28431
|
-
breadcrumbs:
|
|
28430
|
+
navigation: c,
|
|
28431
|
+
breadcrumbs: u,
|
|
28432
28432
|
card: !1,
|
|
28433
28433
|
divider: !1,
|
|
28434
28434
|
icon: !0,
|
|
@@ -33061,12 +33061,12 @@ function Gse(e) {
|
|
|
33061
33061
|
});
|
|
33062
33062
|
}
|
|
33063
33063
|
function Ace(e) {
|
|
33064
|
-
const { defaultLocale: t,
|
|
33064
|
+
const { defaultLocale: t, path: n } = e, r = [{ locale: t, name: t }], o = new Headers({ Accept: "application/json", "Content-Type": "application/json" });
|
|
33065
33065
|
function a() {
|
|
33066
|
-
return fetch(`${n}/
|
|
33066
|
+
return fetch(`${n}/languages.json`, { headers: o, method: "get" }).then((c) => c.json()).catch(() => Promise.resolve(r));
|
|
33067
33067
|
}
|
|
33068
33068
|
function s() {
|
|
33069
|
-
return fetch(`${n}/
|
|
33069
|
+
return fetch(`${n}/messages.json`, { headers: o, method: "get" }).then((c) => c.json()).then((c) => c.reduce(
|
|
33070
33070
|
(u, d) => ({
|
|
33071
33071
|
...u,
|
|
33072
33072
|
[d.lang]: {
|
|
Binary file
|