@applica-software-guru/react-admin 1.0.60 → 1.0.61
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/ApplicaAdmin.d.ts +28 -12
- package/dist/ApplicaAdmin.d.ts.map +1 -1
- package/dist/components/Layout/Header/HeaderContent/index.d.ts +3 -3
- package/dist/components/Layout/Header/index.d.ts +3 -3
- package/dist/components/Layout/index.d.ts +3 -3
- package/dist/components/ra-pages/LoginPage.d.ts +5 -5
- package/dist/components/ra-pages/LoginPage.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 +30 -24
- 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/ApplicaAdmin.tsx +43 -22
- package/src/components/Layout/Header/HeaderContent/index.jsx +3 -3
- package/src/components/Layout/Header/index.jsx +3 -3
- package/src/components/Layout/index.jsx +3 -3
- package/src/components/ra-pages/LoginPage.tsx +8 -8
- package/src/playground/App.jsx +3 -0
package/dist/react-admin.es.js
CHANGED
|
@@ -20385,14 +20385,14 @@ Rc.defaultProps = {
|
|
|
20385
20385
|
Rc.propTypes = {
|
|
20386
20386
|
resource: c.string.isRequired
|
|
20387
20387
|
};
|
|
20388
|
-
const uv = ({ logoMain: e, logoIcon: t, notification: n,
|
|
20388
|
+
const uv = ({ logoMain: e, logoIcon: t, notification: n, enableNotification: r }) => {
|
|
20389
20389
|
const i = Sn((d) => d.breakpoints.down("md")), { isHorizontalLayout: s, menuOrientation: l } = en(), { drawerOpen: A } = dr();
|
|
20390
20390
|
return /* @__PURE__ */ ne(Pn, { children: [
|
|
20391
20391
|
(!A || !i) && s(l) && /* @__PURE__ */ E(Hg, { open: !0, logoMain: e, logoIcon: t }),
|
|
20392
20392
|
/* @__PURE__ */ E(Me, { sx: { flexGrow: 1 } }),
|
|
20393
20393
|
i && /* @__PURE__ */ E(Me, { sx: { width: "100%", ml: 1 } }),
|
|
20394
20394
|
/* @__PURE__ */ E(IP, {}),
|
|
20395
|
-
|
|
20395
|
+
r && /* @__PURE__ */ E(Rc, { resource: n }),
|
|
20396
20396
|
!i && /* @__PURE__ */ E(cv, {}),
|
|
20397
20397
|
i && /* @__PURE__ */ E(CN, {})
|
|
20398
20398
|
] });
|
|
@@ -20401,11 +20401,11 @@ uv.propTypes = {
|
|
|
20401
20401
|
logoMain: c.node,
|
|
20402
20402
|
logoIcon: c.node,
|
|
20403
20403
|
notification: c.string,
|
|
20404
|
-
|
|
20404
|
+
enableNotification: c.bool
|
|
20405
20405
|
};
|
|
20406
|
-
const dv = ({ open: e, logoMain: t, logoIcon: n, handleDrawerToggle: r, notification: i,
|
|
20406
|
+
const dv = ({ open: e, logoMain: t, logoIcon: n, handleDrawerToggle: r, notification: i, enableNotification: s }) => {
|
|
20407
20407
|
const l = At(), A = Sn(l.breakpoints.down("lg")), { menuOrientation: d, isHorizontalLayout: g } = en(), f = g(d) && !A, C = Je(
|
|
20408
|
-
() => /* @__PURE__ */ E(uv, { logoMain: t, logoIcon: n, notification: i,
|
|
20408
|
+
() => /* @__PURE__ */ E(uv, { logoMain: t, logoIcon: n, notification: i, enableNotification: s }),
|
|
20409
20409
|
[t, n, i]
|
|
20410
20410
|
), h = l.palette.mode === "dark" ? "grey.200" : "grey.300", m = l.palette.mode === "dark" ? "background.default" : "grey.100", I = /* @__PURE__ */ ne(Yd, { children: [
|
|
20411
20411
|
f ? null : /* @__PURE__ */ E(
|
|
@@ -20443,7 +20443,7 @@ dv.propTypes = {
|
|
|
20443
20443
|
logoMain: c.node,
|
|
20444
20444
|
logoIcon: c.node,
|
|
20445
20445
|
notification: c.string,
|
|
20446
|
-
|
|
20446
|
+
enableNotification: c.bool
|
|
20447
20447
|
};
|
|
20448
20448
|
function BN({ children: e, window: t }) {
|
|
20449
20449
|
const n = At(), r = XP({
|
|
@@ -20474,7 +20474,7 @@ const QN = () => {
|
|
|
20474
20474
|
children: /* @__PURE__ */ E(t0, { maxWidth: t ? "xl" : !1, children: /* @__PURE__ */ E(Me, { sx: { display: "flex", alignItems: "center" }, children: /* @__PURE__ */ E(kB, {}) }) })
|
|
20475
20475
|
}
|
|
20476
20476
|
) });
|
|
20477
|
-
}, gv = ({ children: e, name: t, version: n, logoMain: r, logoIcon: i, notification: s,
|
|
20477
|
+
}, gv = ({ children: e, name: t, version: n, logoMain: r, logoIcon: i, notification: s, enableNotification: l }) => {
|
|
20478
20478
|
const A = At(), { openDrawer: d } = dr(), { isLoading: g, navigation: f, breadcrumbs: C } = $O(), h = Sn(A.breakpoints.down("xl")), m = Sn(A.breakpoints.down("lg")), { container: I, miniDrawer: B, menuOrientation: v, isHorizontalLayout: T } = en(), { drawerOpen: R } = dr(), w = T(v) && !m, [x, P] = st(!B || R), L = () => {
|
|
20479
20479
|
P(!x), d(!x);
|
|
20480
20480
|
};
|
|
@@ -20491,7 +20491,7 @@ const QN = () => {
|
|
|
20491
20491
|
logoMain: r,
|
|
20492
20492
|
logoIcon: i,
|
|
20493
20493
|
notification: s,
|
|
20494
|
-
|
|
20494
|
+
enableNotification: l
|
|
20495
20495
|
}
|
|
20496
20496
|
),
|
|
20497
20497
|
w ? /* @__PURE__ */ E(QN, {}) : /* @__PURE__ */ E(av, { open: x, handleDrawerToggle: L, logoMain: r, logoIcon: i }),
|
|
@@ -20539,7 +20539,7 @@ gv.propTypes = {
|
|
|
20539
20539
|
logoMain: c.node,
|
|
20540
20540
|
logoIcon: c.node,
|
|
20541
20541
|
notification: c.string,
|
|
20542
|
-
|
|
20542
|
+
enableNotification: c.bool
|
|
20543
20543
|
};
|
|
20544
20544
|
function vN(e) {
|
|
20545
20545
|
return wt("MuiLinearProgress", e);
|
|
@@ -24672,7 +24672,7 @@ jc.propTypes = {
|
|
|
24672
24672
|
name: c.string,
|
|
24673
24673
|
background: c.oneOfType([c.node, c.func, c.object])
|
|
24674
24674
|
};
|
|
24675
|
-
const hf = ({ version: e, name: t,
|
|
24675
|
+
const hf = ({ version: e, name: t, enablePasswordRecover: n, enableRegistration: r, redirectTo: i, background: s }) => {
|
|
24676
24676
|
const [l, A] = VS(!1), d = HS(), g = so(), f = $d(), C = zS(), h = i0();
|
|
24677
24677
|
St(() => {
|
|
24678
24678
|
C({}, !1).then(() => {
|
|
@@ -24735,13 +24735,13 @@ const hf = ({ version: e, name: t, enablePasswordForgot: n, enableRegister: r, r
|
|
|
24735
24735
|
hf.propTypes = {
|
|
24736
24736
|
version: c.string.isRequired,
|
|
24737
24737
|
name: c.string.isRequired,
|
|
24738
|
-
|
|
24738
|
+
enablePasswordRecover: c.bool,
|
|
24739
24739
|
enableRegister: c.bool,
|
|
24740
24740
|
background: c.element
|
|
24741
24741
|
};
|
|
24742
24742
|
hf.defaultProps = {
|
|
24743
|
-
|
|
24744
|
-
enableRegister: !
|
|
24743
|
+
enablePasswordRecover: !1,
|
|
24744
|
+
enableRegister: !1,
|
|
24745
24745
|
background: /* @__PURE__ */ E(yy, {})
|
|
24746
24746
|
};
|
|
24747
24747
|
const jW = ({ name: e, version: t, background: n }) => {
|
|
@@ -28011,9 +28011,9 @@ const dY = ({ apiUrl: e, endpoint: t = "/languages/load", mapper: n = ({ data: r
|
|
|
28011
28011
|
dataProvider: f,
|
|
28012
28012
|
authProvider: C,
|
|
28013
28013
|
notification: h,
|
|
28014
|
-
|
|
28015
|
-
|
|
28016
|
-
|
|
28014
|
+
enableNotification: m,
|
|
28015
|
+
enableRegistration: I,
|
|
28016
|
+
enablePasswordRecover: B,
|
|
28017
28017
|
...v
|
|
28018
28018
|
}) => {
|
|
28019
28019
|
const T = dY({
|
|
@@ -28046,7 +28046,13 @@ const dY = ({ apiUrl: e, endpoint: t = "/languages/load", mapper: n = ({ data: r
|
|
|
28046
28046
|
});
|
|
28047
28047
|
}
|
|
28048
28048
|
});
|
|
28049
|
-
const R = Je(() => ve.isValidElement(l) ? ve.cloneElement(l, {
|
|
28049
|
+
const R = Je(() => ve.isValidElement(l) ? ve.cloneElement(l, {
|
|
28050
|
+
// @ts-ignore
|
|
28051
|
+
name: d,
|
|
28052
|
+
version: g,
|
|
28053
|
+
enableRegistration: I,
|
|
28054
|
+
enablePasswordRecover: B
|
|
28055
|
+
}) : l, [l, d, g, I, B]), w = Je(
|
|
28050
28056
|
() => (P) => /* @__PURE__ */ E(
|
|
28051
28057
|
gv,
|
|
28052
28058
|
{
|
|
@@ -28056,7 +28062,7 @@ const dY = ({ apiUrl: e, endpoint: t = "/languages/load", mapper: n = ({ data: r
|
|
|
28056
28062
|
logoMain: d ? /* @__PURE__ */ E(Ug, { title: d }) : i,
|
|
28057
28063
|
logoIcon: d ? /* @__PURE__ */ E(hv, { title: d }) : s,
|
|
28058
28064
|
notification: h,
|
|
28059
|
-
|
|
28065
|
+
enableNotification: m
|
|
28060
28066
|
}
|
|
28061
28067
|
),
|
|
28062
28068
|
[i, s, d, g, h, m]
|
|
@@ -28090,9 +28096,9 @@ My.defaultProps = {
|
|
|
28090
28096
|
development: !1,
|
|
28091
28097
|
version: "0.0.0",
|
|
28092
28098
|
notification: "entities/notification",
|
|
28093
|
-
|
|
28094
|
-
|
|
28095
|
-
|
|
28099
|
+
enableNotification: !1,
|
|
28100
|
+
enableRegistration: !1,
|
|
28101
|
+
enableForgotPassword: !1,
|
|
28096
28102
|
loginPage: /* @__PURE__ */ E(hf, { version: "0.0.0", name: "Applica", redirectTo: "/" })
|
|
28097
28103
|
};
|
|
28098
28104
|
My.propTypes = {
|
|
@@ -28109,9 +28115,9 @@ My.propTypes = {
|
|
|
28109
28115
|
authProvider: c.oneOfType([c.func, c.object]),
|
|
28110
28116
|
dataProvider: c.oneOfType([c.func, c.object]),
|
|
28111
28117
|
notification: c.string,
|
|
28112
|
-
|
|
28113
|
-
|
|
28114
|
-
|
|
28118
|
+
enableNotification: c.bool,
|
|
28119
|
+
enableRegistration: c.bool,
|
|
28120
|
+
enableForgotPassword: c.bool
|
|
28115
28121
|
};
|
|
28116
28122
|
export {
|
|
28117
28123
|
Jv as ActionsField,
|