@applica-software-guru/react-admin 1.0.76 → 1.0.78
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/@extended/Breadcrumbs.d.ts.map +1 -1
- package/dist/components/ra-inputs/LabeledInput.d.ts +39 -31
- package/dist/components/ra-inputs/LabeledInput.d.ts.map +1 -1
- package/dist/components/ra-lists/List.d.ts.map +1 -1
- package/dist/react-admin.cjs.js +5 -5
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +51 -32
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +40 -40
- package/dist/react-admin.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/@extended/Breadcrumbs.jsx +4 -2
- package/src/components/ra-inputs/{LabeledInput.jsx → LabeledInput.tsx} +25 -2
- package/src/components/ra-lists/List.tsx +37 -22
package/dist/react-admin.es.js
CHANGED
|
@@ -1316,7 +1316,7 @@ function Ue(e, t) {
|
|
|
1316
1316
|
return n;
|
|
1317
1317
|
}
|
|
1318
1318
|
/**
|
|
1319
|
-
* @mui/styled-engine v5.14.
|
|
1319
|
+
* @mui/styled-engine v5.14.13
|
|
1320
1320
|
*
|
|
1321
1321
|
* @license MIT
|
|
1322
1322
|
* This source code is licensed under the MIT license found in the
|
|
@@ -1460,7 +1460,7 @@ function pc(e, t, n = !0) {
|
|
|
1460
1460
|
}
|
|
1461
1461
|
function Dl(e, t, n, r = n) {
|
|
1462
1462
|
let i;
|
|
1463
|
-
return typeof e == "function" ? i = e(n) : Array.isArray(e) ? i = e[n] || r : i = pc(e, n) || r, t && (i = t(i, r, e)), i;
|
|
1463
|
+
return typeof e == "function" ? i = e(n) : Array.isArray(e) ? i = e[n] || r : i = pc(e, n) || r, typeof i == "object" && process.env.NODE_ENV !== "production" && console.warn(`MUI: The value found in theme for prop: "${n}" is an [Object] instead of string or number. Check if you forgot to add the correct dotted notation, eg, "background.paper" instead of "background".`), t && (i = t(i, r, e)), i;
|
|
1464
1464
|
}
|
|
1465
1465
|
function At(e) {
|
|
1466
1466
|
const {
|
|
@@ -8467,7 +8467,7 @@ process.env.NODE_ENV !== "production" && (pg.propTypes = {
|
|
|
8467
8467
|
/**
|
|
8468
8468
|
* The color of the component.
|
|
8469
8469
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
8470
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
8470
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
8471
8471
|
* You can use the `htmlColor` prop to apply a color attribute to the SVG element.
|
|
8472
8472
|
* @default 'inherit'
|
|
8473
8473
|
*/
|
|
@@ -9966,11 +9966,13 @@ const Eu = EI, UM = ({ id: e, title: t, icon: n, url: r, last: i }) => /* @__PUR
|
|
|
9966
9966
|
to: r,
|
|
9967
9967
|
variant: i ? "subtitle1" : "h6",
|
|
9968
9968
|
sx: {
|
|
9969
|
-
textDecoration: "none"
|
|
9969
|
+
textDecoration: "none",
|
|
9970
|
+
display: "inline-flex",
|
|
9971
|
+
alignItems: "center"
|
|
9970
9972
|
},
|
|
9971
9973
|
color: "textSecondary",
|
|
9972
9974
|
children: [
|
|
9973
|
-
n && /* @__PURE__ */ C(n || Ku, { style: { marginRight: 8 } }),
|
|
9975
|
+
n && /* @__PURE__ */ C(n || Ku, { style: { marginRight: 8, fontSize: "0.875rem" } }),
|
|
9974
9976
|
t
|
|
9975
9977
|
]
|
|
9976
9978
|
},
|
|
@@ -10701,7 +10703,7 @@ process.env.NODE_ENV !== "production" && (bI.propTypes = {
|
|
|
10701
10703
|
/**
|
|
10702
10704
|
* The color of the component.
|
|
10703
10705
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
10704
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
10706
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
10705
10707
|
* @default 'primary'
|
|
10706
10708
|
*/
|
|
10707
10709
|
color: c.oneOfType([c.oneOf(["inherit", "primary", "secondary", "error", "info", "success", "warning"]), c.string]),
|
|
@@ -12619,7 +12621,7 @@ process.env.NODE_ENV !== "production" && (GI.propTypes = {
|
|
|
12619
12621
|
/**
|
|
12620
12622
|
* The color of the component.
|
|
12621
12623
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
12622
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
12624
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
12623
12625
|
* @default 'primary'
|
|
12624
12626
|
*/
|
|
12625
12627
|
color: c.oneOfType([c.oneOf(["inherit", "primary", "secondary", "success", "error", "info", "warning"]), c.string]),
|
|
@@ -13029,7 +13031,7 @@ process.env.NODE_ENV !== "production" && (XI.propTypes = {
|
|
|
13029
13031
|
/**
|
|
13030
13032
|
* The color of the component.
|
|
13031
13033
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
13032
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
13034
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
13033
13035
|
* @default 'default'
|
|
13034
13036
|
*/
|
|
13035
13037
|
color: c.oneOfType([c.oneOf(["inherit", "default", "primary", "secondary", "error", "info", "success", "warning"]), c.string]),
|
|
@@ -13752,7 +13754,7 @@ process.env.NODE_ENV !== "production" && (uB.propTypes = {
|
|
|
13752
13754
|
/**
|
|
13753
13755
|
* The color of the component.
|
|
13754
13756
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
13755
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
13757
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
13756
13758
|
* @default 'primary'
|
|
13757
13759
|
*/
|
|
13758
13760
|
color: c.oneOfType([c.oneOf(["default", "inherit", "primary", "secondary", "transparent"]), c.string]),
|
|
@@ -14811,10 +14813,13 @@ const dt = ({ label: e, children: t, display: n, helperText: r, sx: i, addLabel:
|
|
|
14811
14813
|
{
|
|
14812
14814
|
spacing: 1,
|
|
14813
14815
|
sx: {
|
|
14816
|
+
// @ts-ignore
|
|
14817
|
+
width: A != null && A.fullWidth ? "100%" : "auto",
|
|
14814
14818
|
"& .MuiFormHelperText-root": {
|
|
14815
14819
|
// @see: https://github.com/marmelab/react-admin/blob/master/packages/ra-ui-materialui/src/input/SelectArrayInput.tsx#L340
|
|
14816
14820
|
// the 'invalid' prop is not used inside the react-admin component. This is necessary if we want to support
|
|
14817
14821
|
// remove error message colorization when the field is in error state.
|
|
14822
|
+
/** @ts-ignore */
|
|
14818
14823
|
color: m ? d.palette.error.main : d.palette.text.secondary,
|
|
14819
14824
|
"& span": {
|
|
14820
14825
|
display: "none"
|
|
@@ -14828,6 +14833,7 @@ const dt = ({ label: e, children: t, display: n, helperText: r, sx: i, addLabel:
|
|
|
14828
14833
|
{
|
|
14829
14834
|
error: m === !0,
|
|
14830
14835
|
sx: {
|
|
14836
|
+
// @ts-ignore
|
|
14831
14837
|
borderBottom: l ? `1px solid ${d.palette.divider}` : "none",
|
|
14832
14838
|
pb: l ? 1 : 0,
|
|
14833
14839
|
mt: l ? 1 : 0
|
|
@@ -14836,6 +14842,7 @@ const dt = ({ label: e, children: t, display: n, helperText: r, sx: i, addLabel:
|
|
|
14836
14842
|
}
|
|
14837
14843
|
),
|
|
14838
14844
|
be.isValidElement(t) ? be.cloneElement(t, {
|
|
14845
|
+
// @ts-ignore
|
|
14839
14846
|
...t.props,
|
|
14840
14847
|
...A,
|
|
14841
14848
|
label: n === "legend" ? e : !1
|
|
@@ -24267,7 +24274,7 @@ process.env.NODE_ENV !== "production" && (My.propTypes = {
|
|
|
24267
24274
|
/**
|
|
24268
24275
|
* The color of the component.
|
|
24269
24276
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
24270
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
24277
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
24271
24278
|
* @default 'primary'
|
|
24272
24279
|
*/
|
|
24273
24280
|
color: c.oneOfType([c.oneOf(["inherit", "primary", "secondary"]), c.string]),
|
|
@@ -24670,35 +24677,47 @@ const bU = _i(o0, {
|
|
|
24670
24677
|
},
|
|
24671
24678
|
"& .MuiButton-root": {
|
|
24672
24679
|
margin: e.spacing(2)
|
|
24673
|
-
}
|
|
24674
|
-
|
|
24675
|
-
|
|
24680
|
+
}
|
|
24681
|
+
},
|
|
24682
|
+
"& .RaList-actions": {
|
|
24683
|
+
padding: e.spacing(2),
|
|
24684
|
+
paddingTop: 0,
|
|
24685
|
+
"& .RaFilterForm-filterFormInput": {
|
|
24686
|
+
"& .ra-input": {
|
|
24687
|
+
alignSelf: "center"
|
|
24688
|
+
},
|
|
24689
|
+
[e.breakpoints.down("sm")]: {
|
|
24690
|
+
// Quando lo schermo è piccolo, il filtro viene visualizzato in una colonna.
|
|
24691
|
+
// Diamo un margine maggiore in basso per evitare che siano troppo vicini.
|
|
24692
|
+
marginTop: e.spacing(1),
|
|
24693
|
+
marginBottom: e.spacing(1)
|
|
24694
|
+
}
|
|
24676
24695
|
},
|
|
24677
24696
|
"& .RaFilterFormInput-hideButton": {
|
|
24678
24697
|
marginTop: e.spacing(1),
|
|
24679
24698
|
marginBottom: e.spacing(0.5),
|
|
24680
24699
|
marginRight: e.spacing(1)
|
|
24700
|
+
},
|
|
24701
|
+
"& > .MuiToolbar-root": {
|
|
24702
|
+
flex: "unset",
|
|
24703
|
+
padding: 0
|
|
24681
24704
|
}
|
|
24682
|
-
}
|
|
24683
|
-
},
|
|
24684
|
-
"& .RaList-actions": {
|
|
24685
|
-
padding: e.spacing(2),
|
|
24686
|
-
paddingTop: 0
|
|
24687
|
-
},
|
|
24688
|
-
"& .RaList-content": {
|
|
24689
|
-
// Resolve an issue related to the visualization of the bulk actions toolbar.
|
|
24690
|
-
// Padding and margin create a non empty space that allows the toolbar to be displayed when
|
|
24691
|
-
// the selection is empty.
|
|
24692
|
-
"& .RaBulkActionsToolbar-collapsed": {
|
|
24693
|
-
height: 0,
|
|
24694
|
-
paddingTop: 0,
|
|
24695
|
-
paddingBottom: 0
|
|
24696
24705
|
},
|
|
24697
|
-
|
|
24698
|
-
|
|
24699
|
-
|
|
24700
|
-
|
|
24701
|
-
|
|
24706
|
+
"& .RaList-content": {
|
|
24707
|
+
// Resolve an issue related to the visualization of the bulk actions toolbar.
|
|
24708
|
+
// Padding and margin create a non empty space that allows the toolbar to be displayed when
|
|
24709
|
+
// the selection is empty.
|
|
24710
|
+
"& .RaBulkActionsToolbar-collapsed": {
|
|
24711
|
+
height: 0,
|
|
24712
|
+
paddingTop: 0,
|
|
24713
|
+
paddingBottom: 0
|
|
24714
|
+
},
|
|
24715
|
+
// Resolve a defect related to the usage of AntDesin icons with Mantis and React-Admin.
|
|
24716
|
+
// These two lines are not needed if you are not using AntDesign icons.
|
|
24717
|
+
"& .icon span": {
|
|
24718
|
+
top: -1,
|
|
24719
|
+
left: -1
|
|
24720
|
+
}
|
|
24702
24721
|
}
|
|
24703
24722
|
},
|
|
24704
24723
|
"& .RaEmpty-toolbar": {
|