@applica-software-guru/react-admin 1.4.217 → 1.4.218
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/AuthWrapper.d.ts +4 -4
- package/dist/components/AuthWrapper.d.ts.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/react-admin.cjs.js +25 -25
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +81 -78
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +25 -25
- package/dist/react-admin.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/AuthWrapper.tsx +2 -2
- package/src/components/index.jsx +1 -0
package/dist/react-admin.es.js
CHANGED
|
@@ -29374,6 +29374,72 @@ const Nie = se("div")({
|
|
|
29374
29374
|
j2.propTypes = {
|
|
29375
29375
|
title: g.string.isRequired
|
|
29376
29376
|
};
|
|
29377
|
+
const V2 = ({ children: e, ...t }) => {
|
|
29378
|
+
const n = Dt();
|
|
29379
|
+
return /* @__PURE__ */ C(
|
|
29380
|
+
Hr,
|
|
29381
|
+
{
|
|
29382
|
+
sx: {
|
|
29383
|
+
maxWidth: { xs: 400, lg: 475 },
|
|
29384
|
+
margin: { xs: 2.5, md: 3 },
|
|
29385
|
+
"& > *": {
|
|
29386
|
+
flexGrow: 1,
|
|
29387
|
+
flexBasis: "50%"
|
|
29388
|
+
}
|
|
29389
|
+
},
|
|
29390
|
+
content: !1,
|
|
29391
|
+
...t,
|
|
29392
|
+
border: !1,
|
|
29393
|
+
boxShadow: !0,
|
|
29394
|
+
shadow: n.customShadows.z1,
|
|
29395
|
+
children: /* @__PURE__ */ C(Le, { sx: { p: { xs: 2, sm: 3, md: 4, xl: 5 } }, children: e })
|
|
29396
|
+
}
|
|
29397
|
+
);
|
|
29398
|
+
};
|
|
29399
|
+
V2.propTypes = {
|
|
29400
|
+
children: g.node
|
|
29401
|
+
};
|
|
29402
|
+
function uc({ version: e, name: t, copy: n, children: r, logo: o, background: a = sh }) {
|
|
29403
|
+
return /* @__PURE__ */ $(Le, { sx: { minHeight: "100vh" }, children: [
|
|
29404
|
+
Fe.isValidElement(a) ? a : Fe.createElement(a),
|
|
29405
|
+
/* @__PURE__ */ $(
|
|
29406
|
+
xe,
|
|
29407
|
+
{
|
|
29408
|
+
container: !0,
|
|
29409
|
+
direction: "column",
|
|
29410
|
+
justifyContent: "flex-end",
|
|
29411
|
+
sx: {
|
|
29412
|
+
minHeight: "100vh"
|
|
29413
|
+
},
|
|
29414
|
+
children: [
|
|
29415
|
+
/* @__PURE__ */ C(xe, { item: !0, xs: 12, sx: { ml: 3 }, children: o || /* @__PURE__ */ C(L2, { title: t }) }),
|
|
29416
|
+
/* @__PURE__ */ $(xe, { item: !0, xs: 12, children: [
|
|
29417
|
+
/* @__PURE__ */ C(
|
|
29418
|
+
xe,
|
|
29419
|
+
{
|
|
29420
|
+
item: !0,
|
|
29421
|
+
xs: 12,
|
|
29422
|
+
container: !0,
|
|
29423
|
+
justifyContent: "center",
|
|
29424
|
+
alignItems: "center",
|
|
29425
|
+
sx: { minHeight: { xs: "calc(100vh - 210px)", sm: "calc(100vh - 134px)", md: "calc(100vh - 112px)" } },
|
|
29426
|
+
children: /* @__PURE__ */ C(xe, { item: !0, children: /* @__PURE__ */ C(V2, { children: r }) })
|
|
29427
|
+
}
|
|
29428
|
+
),
|
|
29429
|
+
/* @__PURE__ */ C(xe, { item: !0, sx: { pb: 1 }, children: /* @__PURE__ */ C(Sx, { name: t, copy: n, version: e }) })
|
|
29430
|
+
] })
|
|
29431
|
+
]
|
|
29432
|
+
}
|
|
29433
|
+
)
|
|
29434
|
+
] });
|
|
29435
|
+
}
|
|
29436
|
+
uc.propTypes = {
|
|
29437
|
+
children: g.node,
|
|
29438
|
+
version: g.string,
|
|
29439
|
+
name: g.string,
|
|
29440
|
+
copy: g.string,
|
|
29441
|
+
background: g.oneOfType([g.node, g.func, g.object])
|
|
29442
|
+
};
|
|
29377
29443
|
var MA = /* @__PURE__ */ ((e) => (e.NONE = "none", e.BROWSER = "browser", e.USER = "user", e))(MA || {});
|
|
29378
29444
|
const Ane = Po().required(), dne = Po().oneOf(Object.values(MA));
|
|
29379
29445
|
function fne(e) {
|
|
@@ -29473,7 +29539,7 @@ function Cne(e, t) {
|
|
|
29473
29539
|
return n;
|
|
29474
29540
|
}
|
|
29475
29541
|
}
|
|
29476
|
-
const
|
|
29542
|
+
const z2 = Cn(void 0);
|
|
29477
29543
|
function jie(e) {
|
|
29478
29544
|
const { mode: t, topic: n = "default" } = e, { onboardingRequired: r, acknowledgeOnboarding: o } = hne(t, n), [a, s] = eh(Cne, { show: r, tips: [], currentStep: 0, onComplete: () => {
|
|
29479
29545
|
} }), c = Xe(() => ({ state: a, dispatch: s }), [a, s]);
|
|
@@ -29486,10 +29552,10 @@ function jie(e) {
|
|
|
29486
29552
|
});
|
|
29487
29553
|
}
|
|
29488
29554
|
s({ type: "SET_ON_COMPLETE", payload: u });
|
|
29489
|
-
}, [o, s]), /* @__PURE__ */ C(
|
|
29555
|
+
}, [o, s]), /* @__PURE__ */ C(z2.Provider, { value: c, children: e.children });
|
|
29490
29556
|
}
|
|
29491
|
-
function
|
|
29492
|
-
const e = Rt(
|
|
29557
|
+
function H2() {
|
|
29558
|
+
const e = Rt(z2);
|
|
29493
29559
|
if (e === void 0)
|
|
29494
29560
|
throw new Error(
|
|
29495
29561
|
"[Onboarding] useOnboardingContext: context undefined. Please provide a valid OnboardingContext using OnboardingProvider"
|
|
@@ -29497,14 +29563,14 @@ function z2() {
|
|
|
29497
29563
|
return e;
|
|
29498
29564
|
}
|
|
29499
29565
|
function mne() {
|
|
29500
|
-
return
|
|
29566
|
+
return H2().state;
|
|
29501
29567
|
}
|
|
29502
|
-
function
|
|
29503
|
-
return
|
|
29568
|
+
function W2() {
|
|
29569
|
+
return H2().dispatch;
|
|
29504
29570
|
}
|
|
29505
29571
|
function Ene(e) {
|
|
29506
29572
|
Mh({ id: Po().required(), step: Uy().required() }).validateSync(e);
|
|
29507
|
-
const { id: t, step: n, completeOnboarding: r } = e, { show: o, tips: a, currentStep: s } = mne(), c = _.find(a, { id: t }), { dismissed: u } = c ?? {}, A =
|
|
29573
|
+
const { id: t, step: n, completeOnboarding: r } = e, { show: o, tips: a, currentStep: s } = mne(), c = _.find(a, { id: t }), { dismissed: u } = c ?? {}, A = W2(), f = Pe(() => {
|
|
29508
29574
|
A({
|
|
29509
29575
|
type: yl.DISMISS_TIP,
|
|
29510
29576
|
payload: t
|
|
@@ -29527,7 +29593,7 @@ function Ene(e) {
|
|
|
29527
29593
|
};
|
|
29528
29594
|
}
|
|
29529
29595
|
function Vie() {
|
|
29530
|
-
const e =
|
|
29596
|
+
const e = W2();
|
|
29531
29597
|
return Pe(() => {
|
|
29532
29598
|
e({ type: yl.RESTART });
|
|
29533
29599
|
}, [e]);
|
|
@@ -29915,9 +29981,9 @@ function Yie(e) {
|
|
|
29915
29981
|
}
|
|
29916
29982
|
) });
|
|
29917
29983
|
}
|
|
29918
|
-
const
|
|
29919
|
-
|
|
29920
|
-
const Pne = ({ children: e, value: t }) => /* @__PURE__ */ C(
|
|
29984
|
+
const U2 = Cn({});
|
|
29985
|
+
U2.displayName = "DatagridContext";
|
|
29986
|
+
const Pne = ({ children: e, value: t }) => /* @__PURE__ */ C(U2.Provider, { value: t, children: e }), QB = /* @__PURE__ */ C(rM, {}), Y2 = k.forwardRef((e, t) => {
|
|
29921
29987
|
const {
|
|
29922
29988
|
optimized: n = !1,
|
|
29923
29989
|
body: r = n ? ZD : _D,
|
|
@@ -30018,8 +30084,8 @@ const Pne = ({ children: e, value: t }) => /* @__PURE__ */ C(W2.Provider, { valu
|
|
|
30018
30084
|
"fieldState",
|
|
30019
30085
|
"formState"
|
|
30020
30086
|
], Rne = (e) => Object.keys(Ab(e)).filter((t) => !One.includes(t)).reduce((t, n) => ({ ...t, [n]: e[n] }), {});
|
|
30021
|
-
|
|
30022
|
-
const Dne = /* @__PURE__ */ C(nM, {}), Mne = se(
|
|
30087
|
+
Y2.displayName = "Datagrid";
|
|
30088
|
+
const Dne = /* @__PURE__ */ C(nM, {}), Mne = se(Y2, { slot: "root" })(({ theme: e }) => ({
|
|
30023
30089
|
"& .RaBulkActionsToolbar-toolbar": {
|
|
30024
30090
|
height: 48
|
|
30025
30091
|
},
|
|
@@ -30450,70 +30516,6 @@ function Zie({
|
|
|
30450
30516
|
}
|
|
30451
30517
|
);
|
|
30452
30518
|
}
|
|
30453
|
-
const Y2 = ({ children: e, ...t }) => {
|
|
30454
|
-
const n = Dt();
|
|
30455
|
-
return /* @__PURE__ */ C(
|
|
30456
|
-
Hr,
|
|
30457
|
-
{
|
|
30458
|
-
sx: {
|
|
30459
|
-
maxWidth: { xs: 400, lg: 475 },
|
|
30460
|
-
margin: { xs: 2.5, md: 3 },
|
|
30461
|
-
"& > *": {
|
|
30462
|
-
flexGrow: 1,
|
|
30463
|
-
flexBasis: "50%"
|
|
30464
|
-
}
|
|
30465
|
-
},
|
|
30466
|
-
content: !1,
|
|
30467
|
-
...t,
|
|
30468
|
-
border: !1,
|
|
30469
|
-
boxShadow: !0,
|
|
30470
|
-
shadow: n.customShadows.z1,
|
|
30471
|
-
children: /* @__PURE__ */ C(Le, { sx: { p: { xs: 2, sm: 3, md: 4, xl: 5 } }, children: e })
|
|
30472
|
-
}
|
|
30473
|
-
);
|
|
30474
|
-
};
|
|
30475
|
-
Y2.propTypes = {
|
|
30476
|
-
children: g.node
|
|
30477
|
-
};
|
|
30478
|
-
const uc = ({ version: e, name: t, copy: n, children: r, logo: o, background: a = sh }) => /* @__PURE__ */ $(Le, { sx: { minHeight: "100vh" }, children: [
|
|
30479
|
-
Fe.isValidElement(a) ? a : Fe.createElement(a),
|
|
30480
|
-
/* @__PURE__ */ $(
|
|
30481
|
-
xe,
|
|
30482
|
-
{
|
|
30483
|
-
container: !0,
|
|
30484
|
-
direction: "column",
|
|
30485
|
-
justifyContent: "flex-end",
|
|
30486
|
-
sx: {
|
|
30487
|
-
minHeight: "100vh"
|
|
30488
|
-
},
|
|
30489
|
-
children: [
|
|
30490
|
-
/* @__PURE__ */ C(xe, { item: !0, xs: 12, sx: { ml: 3 }, children: o || /* @__PURE__ */ C(L2, { title: t }) }),
|
|
30491
|
-
/* @__PURE__ */ $(xe, { item: !0, xs: 12, children: [
|
|
30492
|
-
/* @__PURE__ */ C(
|
|
30493
|
-
xe,
|
|
30494
|
-
{
|
|
30495
|
-
item: !0,
|
|
30496
|
-
xs: 12,
|
|
30497
|
-
container: !0,
|
|
30498
|
-
justifyContent: "center",
|
|
30499
|
-
alignItems: "center",
|
|
30500
|
-
sx: { minHeight: { xs: "calc(100vh - 210px)", sm: "calc(100vh - 134px)", md: "calc(100vh - 112px)" } },
|
|
30501
|
-
children: /* @__PURE__ */ C(xe, { item: !0, children: /* @__PURE__ */ C(Y2, { children: r }) })
|
|
30502
|
-
}
|
|
30503
|
-
),
|
|
30504
|
-
/* @__PURE__ */ C(xe, { item: !0, sx: { pb: 1 }, children: /* @__PURE__ */ C(Sx, { name: t, copy: n, version: e }) })
|
|
30505
|
-
] })
|
|
30506
|
-
]
|
|
30507
|
-
}
|
|
30508
|
-
)
|
|
30509
|
-
] });
|
|
30510
|
-
uc.propTypes = {
|
|
30511
|
-
children: g.node,
|
|
30512
|
-
version: g.string,
|
|
30513
|
-
name: g.string,
|
|
30514
|
-
copy: g.string,
|
|
30515
|
-
background: g.oneOfType([g.node, g.func, g.object])
|
|
30516
|
-
};
|
|
30517
30519
|
const Jne = ({ name: e, copy: t, logo: n, version: r, background: o }) => {
|
|
30518
30520
|
const a = Zt(), s = oa(), c = ia(), u = th(), { token: A } = JM();
|
|
30519
30521
|
return Oe(() => {
|
|
@@ -34028,6 +34030,7 @@ export {
|
|
|
34028
34030
|
$H as AttachmentField,
|
|
34029
34031
|
cie as AttachmentInput,
|
|
34030
34032
|
sh as AuthBackground,
|
|
34033
|
+
uc as AuthWrapper,
|
|
34031
34034
|
uie as AutocompleteArrayInput,
|
|
34032
34035
|
Aie as AutocompleteInput,
|
|
34033
34036
|
EA as Avatar,
|