@applica-software-guru/react-admin 1.3.161 → 1.3.162
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/react-admin.cjs.js +1 -1
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +22 -9
- 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-inputs/ArrayInput.tsx +8 -1
- package/src/components/ra-inputs/LabeledArrayInput.tsx +3 -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,31 @@ 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
16673
|
mt: l ? 1 : 0
|
|
16672
16674
|
},
|
|
16673
|
-
children: /* @__PURE__ */ p(xf, { label: e, source:
|
|
16675
|
+
children: /* @__PURE__ */ p(xf, { label: e, source: C, resource: P || h, isRequired: m })
|
|
16674
16676
|
}
|
|
16675
16677
|
),
|
|
16676
16678
|
Le.isValidElement(t) ? Le.cloneElement(t, {
|
|
16677
16679
|
// @ts-ignore
|
|
16678
16680
|
...t.props,
|
|
16679
|
-
...
|
|
16681
|
+
...A,
|
|
16680
16682
|
label: n === "legend" ? e : !1
|
|
16681
16683
|
}) : t,
|
|
16682
16684
|
n === "label" && r && /* @__PURE__ */ p(
|
|
@@ -16687,7 +16689,7 @@ const Xp = ({
|
|
|
16687
16689
|
pb: 2,
|
|
16688
16690
|
marginTop: "0 !important"
|
|
16689
16691
|
},
|
|
16690
|
-
error: !!
|
|
16692
|
+
error: !!v,
|
|
16691
16693
|
children: r
|
|
16692
16694
|
}
|
|
16693
16695
|
)
|
|
@@ -16728,7 +16730,18 @@ const g7 = le(MO, {
|
|
|
16728
16730
|
width: "100%"
|
|
16729
16731
|
}
|
|
16730
16732
|
}
|
|
16731
|
-
})), N$ = ({ label: e, addLabel: t, source: n, helperText: r, divider: o = !0, ...a }) => /* @__PURE__ */ p(
|
|
16733
|
+
})), N$ = ({ label: e, addLabel: t, source: n, helperText: r, divider: o = !0, ...a }) => /* @__PURE__ */ p(
|
|
16734
|
+
Xp,
|
|
16735
|
+
{
|
|
16736
|
+
label: e,
|
|
16737
|
+
addLabel: t,
|
|
16738
|
+
source: n,
|
|
16739
|
+
helperText: r,
|
|
16740
|
+
divider: o,
|
|
16741
|
+
fullWidth: a == null ? void 0 : a.fullWidth,
|
|
16742
|
+
children: /* @__PURE__ */ p(g7, { source: n, label: !1, ...a })
|
|
16743
|
+
}
|
|
16744
|
+
), Fb = ({ canEdit: e, canDelete: t, canClone: n }) => !e && !t && !n ? null : /* @__PURE__ */ $(La, { children: [
|
|
16732
16745
|
e && /* @__PURE__ */ p(DO, {}),
|
|
16733
16746
|
t && /* @__PURE__ */ p(Qf, {}),
|
|
16734
16747
|
n && /* @__PURE__ */ p(kO, {})
|