@applica-software-guru/react-admin 1.3.161 → 1.3.163
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-inputs/ArrayInput.d.ts.map +1 -1
- package/dist/components/ra-inputs/LabeledArrayInput.d.ts +2 -1
- package/dist/components/ra-inputs/LabeledArrayInput.d.ts.map +1 -1
- package/dist/components/ra-inputs/LabeledInput.d.ts.map +1 -1
- package/dist/react-admin.cjs.js +1 -1
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +26 -11
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +1 -1
- package/dist/react-admin.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ra-forms/TableForm/TableFormIterator.tsx +1 -1
- package/src/components/ra-inputs/ArrayInput.tsx +8 -1
- package/src/components/ra-inputs/LabeledArrayInput.tsx +5 -1
- package/src/components/ra-inputs/LabeledInput.tsx +1 -0
package/dist/react-admin.es.js
CHANGED
|
@@ -16641,9 +16641,10 @@ const Xp = ({
|
|
|
16641
16641
|
sx: o,
|
|
16642
16642
|
addLabel: a,
|
|
16643
16643
|
divider: l,
|
|
16644
|
-
|
|
16644
|
+
fullWidth: u,
|
|
16645
|
+
...A
|
|
16645
16646
|
}) => {
|
|
16646
|
-
const
|
|
16647
|
+
const g = Uf(), { getCurrentDialog: f } = Na(), { source: C, resource: h, isRequired: m } = A, { getFieldState: I, formState: B } = iv(), { error: v } = I(C, B), P = f();
|
|
16647
16648
|
return /* @__PURE__ */ $(
|
|
16648
16649
|
Dt,
|
|
16649
16650
|
{
|
|
@@ -16653,30 +16654,32 @@ const Xp = ({
|
|
|
16653
16654
|
// @see: https://github.com/marmelab/react-admin/blob/master/packages/ra-ui-materialui/src/input/SelectArrayInput.tsx#L340
|
|
16654
16655
|
// the 'invalid' prop is not used inside the react-admin component. This is necessary if we want to support
|
|
16655
16656
|
// remove error message colorization when the field is in error state.
|
|
16656
|
-
color:
|
|
16657
|
+
color: v ? g.palette.error.main : g.palette.text.secondary,
|
|
16657
16658
|
"& span": {
|
|
16658
16659
|
display: "none"
|
|
16659
16660
|
}
|
|
16660
16661
|
},
|
|
16662
|
+
width: u ? "100%" : "auto",
|
|
16661
16663
|
...o
|
|
16662
16664
|
},
|
|
16663
16665
|
children: [
|
|
16664
16666
|
n === "label" && e !== !1 && a !== !1 && /* @__PURE__ */ p(
|
|
16665
16667
|
Wf,
|
|
16666
16668
|
{
|
|
16667
|
-
error: !!
|
|
16669
|
+
error: !!v,
|
|
16668
16670
|
sx: {
|
|
16669
|
-
borderBottom: l ? `1px solid ${
|
|
16671
|
+
borderBottom: l ? `1px solid ${g.palette.divider}` : "none",
|
|
16670
16672
|
pb: l ? 1 : 0,
|
|
16671
|
-
mt: l ? 1 : 0
|
|
16673
|
+
mt: l ? 1 : 0,
|
|
16674
|
+
pt: 1
|
|
16672
16675
|
},
|
|
16673
|
-
children: /* @__PURE__ */ p(xf, { label: e, source:
|
|
16676
|
+
children: /* @__PURE__ */ p(xf, { label: e, source: C, resource: P || h, isRequired: m })
|
|
16674
16677
|
}
|
|
16675
16678
|
),
|
|
16676
16679
|
Le.isValidElement(t) ? Le.cloneElement(t, {
|
|
16677
16680
|
// @ts-ignore
|
|
16678
16681
|
...t.props,
|
|
16679
|
-
...
|
|
16682
|
+
...A,
|
|
16680
16683
|
label: n === "legend" ? e : !1
|
|
16681
16684
|
}) : t,
|
|
16682
16685
|
n === "label" && r && /* @__PURE__ */ p(
|
|
@@ -16687,7 +16690,7 @@ const Xp = ({
|
|
|
16687
16690
|
pb: 2,
|
|
16688
16691
|
marginTop: "0 !important"
|
|
16689
16692
|
},
|
|
16690
|
-
error: !!
|
|
16693
|
+
error: !!v,
|
|
16691
16694
|
children: r
|
|
16692
16695
|
}
|
|
16693
16696
|
)
|
|
@@ -16728,7 +16731,18 @@ const g7 = le(MO, {
|
|
|
16728
16731
|
width: "100%"
|
|
16729
16732
|
}
|
|
16730
16733
|
}
|
|
16731
|
-
})), N$ = ({ label: e, addLabel: t, source: n, helperText: r, divider: o = !0, ...a }) => /* @__PURE__ */ p(
|
|
16734
|
+
})), N$ = ({ label: e, addLabel: t, source: n, helperText: r, divider: o = !0, ...a }) => /* @__PURE__ */ p(
|
|
16735
|
+
Xp,
|
|
16736
|
+
{
|
|
16737
|
+
label: e,
|
|
16738
|
+
addLabel: t,
|
|
16739
|
+
source: n,
|
|
16740
|
+
helperText: r,
|
|
16741
|
+
divider: o,
|
|
16742
|
+
fullWidth: a == null ? void 0 : a.fullWidth,
|
|
16743
|
+
children: /* @__PURE__ */ p(g7, { source: n, label: !1, ...a })
|
|
16744
|
+
}
|
|
16745
|
+
), Fb = ({ canEdit: e, canDelete: t, canClone: n }) => !e && !t && !n ? null : /* @__PURE__ */ $(La, { children: [
|
|
16732
16746
|
e && /* @__PURE__ */ p(DO, {}),
|
|
16733
16747
|
t && /* @__PURE__ */ p(Qf, {}),
|
|
16734
16748
|
n && /* @__PURE__ */ p(kO, {})
|
|
@@ -17170,6 +17184,7 @@ const ft = ({ label: e, children: t, display: n, helperText: r, sx: o, addLabel:
|
|
|
17170
17184
|
sx: {
|
|
17171
17185
|
// @ts-ignore
|
|
17172
17186
|
borderBottom: l ? `1px solid ${A.palette.divider}` : "none",
|
|
17187
|
+
pt: 0.5,
|
|
17173
17188
|
pb: l ? 1 : 0,
|
|
17174
17189
|
mt: l ? 1 : 0
|
|
17175
17190
|
},
|
|
@@ -18885,7 +18900,7 @@ const RW = /* @__PURE__ */ Uo(SW), UQ = (e) => {
|
|
|
18885
18900
|
) : null;
|
|
18886
18901
|
}, GQ = (e) => {
|
|
18887
18902
|
const { label: t, disableAdd: n, onClick: r } = e, o = kt(), a = o.palette.mode === "dark" ? o.palette.grey.A400 : o.palette.grey.A800, l = o.palette.mode === "light" ? "#000000" : "#FFFFFF";
|
|
18888
|
-
return /* @__PURE__ */ $(Dt, { justifyContent: "space-between", alignItems: "center", flexDirection: "row", children: [
|
|
18903
|
+
return /* @__PURE__ */ $(Dt, { justifyContent: "space-between", alignItems: "center", flexDirection: "row", sx: { mt: 0.5 }, children: [
|
|
18889
18904
|
t !== !1 && /* @__PURE__ */ p(me, { children: t }),
|
|
18890
18905
|
!n && (O.isValidElement(e == null ? void 0 : e.addButton) ? O.cloneElement(e == null ? void 0 : e.addButton, {
|
|
18891
18906
|
onClick: r
|