@applica-software-guru/react-admin 1.5.330 → 1.5.332
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/ra-lists/List.d.ts.map +1 -1
- package/dist/i18n/createI18nProvider.d.ts +2 -1
- package/dist/i18n/createI18nProvider.d.ts.map +1 -1
- package/dist/i18n/en.json +8 -0
- package/{public/i18n/messages.json → dist/i18n/it.json} +446 -446
- package/dist/i18n/it.json.gz +0 -0
- 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 +18 -12
- 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/public/i18n/en.json +8 -0
- package/{dist/i18n/messages.json → public/i18n/it.json} +446 -446
- package/src/components/ra-lists/List.tsx +3 -1
- package/src/i18n/createI18nProvider.tsx +24 -19
- package/src/playground/App.jsx +12 -1
- package/dist/i18n/languages.json +0 -1
- package/dist/i18n/messages.json.gz +0 -0
- package/public/i18n/languages.json +0 -1
package/dist/react-admin.es.js
CHANGED
|
@@ -36278,7 +36278,8 @@ const Rde = {}, kde = Fc(Pde, { slot: "root" })(({ theme: e }) => ({
|
|
|
36278
36278
|
}
|
|
36279
36279
|
}));
|
|
36280
36280
|
function ige(e) {
|
|
36281
|
-
|
|
36281
|
+
const t = { ...e, pagination: e.pagination ?? /* @__PURE__ */ v(uI, {}) };
|
|
36282
|
+
return /* @__PURE__ */ v(kde, { ...t });
|
|
36282
36283
|
}
|
|
36283
36284
|
function Mde() {
|
|
36284
36285
|
const e = S3(), t = Pf(), n = So(), r = E3(n), { selectedIds: o, data: i } = Pm(), s = vn(), l = o.map((h) => i.find((p) => p.id === h)), [u, { isLoading: d }] = I3(
|
|
@@ -41321,12 +41322,9 @@ function Vpe(e) {
|
|
|
41321
41322
|
});
|
|
41322
41323
|
}
|
|
41323
41324
|
function yge(e) {
|
|
41324
|
-
const {
|
|
41325
|
-
function i() {
|
|
41326
|
-
return fetch(`${
|
|
41327
|
-
}
|
|
41328
|
-
function s() {
|
|
41329
|
-
return fetch(`${n}/messages.json`, { headers: o, method: "get" }).then((l) => l.json()).then((l) => l.reduce(
|
|
41325
|
+
const { locales: t, defaultLocale: n, path: r } = e, o = new Headers({ Accept: "application/json", "Content-Type": "application/json" });
|
|
41326
|
+
function i(s) {
|
|
41327
|
+
return fetch(`${r}/${s.locale}.json`, { headers: o, method: "get" }).then((l) => l.json()).then((l) => l.reduce(
|
|
41330
41328
|
(u, d) => ({
|
|
41331
41329
|
...u,
|
|
41332
41330
|
[d.lang]: {
|
|
@@ -41337,12 +41335,20 @@ function yge(e) {
|
|
|
41337
41335
|
{}
|
|
41338
41336
|
));
|
|
41339
41337
|
}
|
|
41340
|
-
return Promise.all(
|
|
41341
|
-
|
|
41342
|
-
|
|
41343
|
-
|
|
41338
|
+
return Promise.all(t.map(i)).then(
|
|
41339
|
+
(s) => re.reduce(
|
|
41340
|
+
s,
|
|
41341
|
+
(l, u) => ({
|
|
41342
|
+
...l,
|
|
41343
|
+
...u
|
|
41344
|
+
}),
|
|
41345
|
+
{}
|
|
41346
|
+
)
|
|
41347
|
+
).then((s) => {
|
|
41348
|
+
function l(u) {
|
|
41349
|
+
return re.get(s, u, {});
|
|
41344
41350
|
}
|
|
41345
|
-
return P3(
|
|
41351
|
+
return P3(l, n, t, {
|
|
41346
41352
|
allowMissing: !0
|
|
41347
41353
|
});
|
|
41348
41354
|
});
|
|
Binary file
|