@m4l/components 9.2.65 → 9.3.0-B23072025beta.2

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.
Files changed (83) hide show
  1. package/components/DataGrid/Datagrid.styles.js +112 -9
  2. package/components/DataGrid/formatters/ColumnBooleanFormatter/formatter.d.ts +2 -1
  3. package/components/DataGrid/formatters/ColumnBooleanFormatter/formatter.js +2 -3
  4. package/components/DataGrid/formatters/ColumnBooleanFormatter/useColumnBoolean.d.ts +1 -1
  5. package/components/DataGrid/formatters/ColumnChipStatusFormatter/formatter.d.ts +2 -1
  6. package/components/DataGrid/formatters/ColumnChipStatusFormatter/formatter.js +5 -4
  7. package/components/DataGrid/formatters/ColumnChipStatusFormatter/useColumnChipStatus.d.ts +1 -1
  8. package/components/DataGrid/formatters/ColumnConcatenatedValuesFormatter/formatter.d.ts +2 -1
  9. package/components/DataGrid/formatters/ColumnConcatenatedValuesFormatter/formatter.js +11 -4
  10. package/components/DataGrid/formatters/ColumnConcatenatedValuesFormatter/useColumnConcatenatedValues.d.ts +1 -1
  11. package/components/DataGrid/formatters/ColumnDateFormatter/formatter.d.ts +2 -1
  12. package/components/DataGrid/formatters/ColumnDateFormatter/formatter.js +13 -4
  13. package/components/DataGrid/formatters/ColumnDateFormatter/useColumnDate.d.ts +1 -1
  14. package/components/DataGrid/formatters/ColumnIconFormatter/formatter.d.ts +2 -1
  15. package/components/DataGrid/formatters/ColumnIconFormatter/formatter.js +2 -2
  16. package/components/DataGrid/formatters/ColumnIconFormatter/useColumnIcon.d.ts +1 -1
  17. package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/types.d.ts +2 -2
  18. package/components/DataGrid/formatters/ColumnNestedValueFormatter/formatter.d.ts +2 -1
  19. package/components/DataGrid/formatters/ColumnNestedValueFormatter/formatter.js +4 -3
  20. package/components/DataGrid/formatters/ColumnNestedValueFormatter/useColumnNestedValue.d.ts +1 -1
  21. package/components/DataGrid/formatters/ColumnPointsFormatter/formatter.d.ts +2 -1
  22. package/components/DataGrid/formatters/ColumnPointsFormatter/formatter.js +13 -5
  23. package/components/DataGrid/formatters/ColumnPointsFormatter/useColumnPoints.d.ts +1 -1
  24. package/components/DataGrid/formatters/ColumnPriceFormatter/formatter.d.ts +2 -1
  25. package/components/DataGrid/formatters/ColumnPriceFormatter/formatter.js +11 -4
  26. package/components/DataGrid/formatters/ColumnPriceFormatter/useColumnPrice.d.ts +1 -1
  27. package/components/DataGrid/formatters/ColumnSetCheckFormatter/formatter.d.ts +2 -2
  28. package/components/DataGrid/formatters/ColumnSetCheckFormatter/formatter.js +1 -1
  29. package/components/DataGrid/formatters/ColumnSetCheckFormatter/useColumnSetCheck.d.ts +1 -1
  30. package/components/DataGrid/formatters/ColumnUncertaintyFormatter/formatter.d.ts +2 -1
  31. package/components/DataGrid/formatters/ColumnUncertaintyFormatter/formatter.js +15 -6
  32. package/components/DataGrid/formatters/ColumnUncertaintyFormatter/useColumnUncertainty.d.ts +1 -1
  33. package/components/DataGrid/index.d.ts +1 -1
  34. package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Settings/subcomponents/ColumnsConfig/index.js +4 -5
  35. package/components/DataGrid/subcomponents/Table/hooks/getDragHeaderRenderer.d.ts +2 -2
  36. package/components/DataGrid/subcomponents/Table/hooks/useHeaderMenuActions.d.ts +2 -2
  37. package/components/DataGrid/subcomponents/Table/hooks/useHeaderMenuActions.js +15 -6
  38. package/components/DataGrid/subcomponents/Table/hooks/useSortColumnsRows.js +13 -7
  39. package/components/DataGrid/subcomponents/Table/index.d.ts +3 -1
  40. package/components/DataGrid/subcomponents/Table/index.js +38 -9
  41. package/components/DataGrid/subcomponents/Table/subcomponents/ActionsColumn.js +1 -1
  42. package/components/DataGrid/subcomponents/Table/subcomponents/CheckboxFormatter.d.ts +2 -2
  43. package/components/DataGrid/subcomponents/Table/subcomponents/DraggableHeaderRenderer.d.ts +2 -2
  44. package/components/DataGrid/subcomponents/Table/subcomponents/DraggableHeaderRenderer.js +10 -8
  45. package/components/DataGrid/subcomponents/Table/subcomponents/HeaderRenderClick/HeaderRenderClick.js +1 -1
  46. package/components/DataGrid/subcomponents/Table/subcomponents/SelectColumn.js +7 -7
  47. package/components/DataGrid/subcomponents/editors/TextEditor/index.d.ts +15 -5
  48. package/components/DataGrid/types.d.ts +9 -4
  49. package/components/NumberInput/NumberInput.styles.js +1 -0
  50. package/components/NumberInput/hooks/useNumberInput/useNumberInput.js +0 -2
  51. package/components/PaperForm/PaperForm.js +1 -2
  52. package/components/PaperForm/components/Header.js +1 -10
  53. package/components/PaperForm/styles.js +1 -4
  54. package/components/PropertyValue/PropertyValue.js +1 -1
  55. package/components/ToastContainer/ToastContainer.js +0 -1
  56. package/components/ToastContainer/ToastContainer.styles.js +126 -122
  57. package/components/ToastContainer/constants.d.ts +670 -0
  58. package/components/ToastContainer/constants.js +672 -1
  59. package/components/areas/contexts/AreasContext/store.js +2 -2
  60. package/components/formatters/BooleanFormatter/BooleanFormatter.styles.js +1 -1
  61. package/components/hook-form/RHFAutocompleteAsync/reducer/RHFAutocompleteReducer.js +0 -5
  62. package/components/hook-form/RHFColorPicker/RHFColorPicker.styles.js +2 -1
  63. package/components/hook-form/RHFDateTime/RHFDateTime.styles.js +2 -1
  64. package/components/hook-form/RHFNumberInput/RHFNumberInput.styles.js +2 -1
  65. package/components/hook-form/RHFPeriod/RHFPeriod.styles.js +2 -5
  66. package/components/hook-form/RHFPeriod/slots/RHFPeriodEnum.d.ts +1 -1
  67. package/components/hook-form/RHFPeriod/slots/RHFPeriodEnum.js +1 -1
  68. package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.d.ts +1 -1
  69. package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.js +6 -6
  70. package/components/hook-form/RHFPeriod/subcomponents/Period/Period.js +13 -11
  71. package/components/hook-form/RHFPeriod/subcomponents/Period/types.d.ts +2 -2
  72. package/components/hook-form/RHFSelect/RHFSelect.styles.js +2 -1
  73. package/components/mui_extended/Button/ButtonStyles.js +1 -0
  74. package/components/mui_extended/MenuItem/MenuItem.js +2 -1
  75. package/components/mui_extended/MenuItem/MenuItem.styles.js +2 -1
  76. package/components/mui_extended/MenuItem/types.d.ts +4 -0
  77. package/index.js +8 -8
  78. package/package.json +2 -2
  79. package/storybook/components/DataGrid/DataGrid.stories.d.ts +4 -0
  80. package/storybook/components/DataGrid/helpers/types.d.ts +3 -2
  81. package/storybook/components/paperForm/PaperForm.stories.d.ts +4 -0
  82. package/components/hook-form/RHFDateTime/styles.d.ts +0 -1
  83. package/helpers/getFieldValueWithRow.js +0 -10
@@ -1,132 +1,136 @@
1
+ import { a as TOAST_NATIVE_STYLES } from "./constants.js";
1
2
  const toastStyles = {
2
3
  /** Root del componente ToastContainer */
3
4
  root: ({ theme, ownerState }) => ({
4
- "--toastify-color-light": theme.vars.palette.background.default,
5
- "--toastify-color-dark": theme.vars.palette.background.default,
6
- "--toastify-color-info": theme.vars.palette.info.enabled,
7
- "--toastify-color-success": theme.vars.palette.success.enabled,
8
- "--toastify-color-warning": theme.vars.palette.warning.enabled,
9
- "--toastify-color-error": theme.vars.palette.error.enabled,
10
- "--toastify-color-transparent": "rgba(255, 255, 255, 0.7)",
11
- "--toastify-icon-color-info": "var(--toastify-color-info)",
12
- "--toastify-icon-color-success": "var(--toastify-color-success)",
13
- "--toastify-icon-color-warning": "var(--toastify-color-warning)",
14
- "--toastify-icon-color-error": "var(--toastify-color-error)",
15
- "--toastify-toast-width": "320px",
16
- "--toastify-toast-background": "#fff",
17
- "--toastify-toast-min-height": "64px",
18
- "--toastify-toast-max-height": "800px",
19
- "--toastify-font-family": "sans-serif",
20
- "--toastify-z-index": "9999",
21
- "--toastify-text-color-light": "#757575",
22
- "--toastify-text-color-dark": "#fff",
23
- //Used only for colored theme
24
- "--toastify-text-color-info": "#fff",
25
- "--toastify-text-color-success": "#fff",
26
- "--toastify-text-color-warning": "#fff",
27
- "--toastify-text-color-error": "#fff",
28
- "--toastify-spinner-color": "#616161",
29
- "--toastify-spinner-color-empty-area": "#e0e0e0",
30
- // Used when no type is provided
31
- // toast("**hello**")
32
- // '--toastify-color-progress-light': 'var(--toastify-color-info)',
33
- // // Used when no type is provided
34
- // '--toastify-color-progress-dark': 'var(--toastify-color-info)',
35
- // '--toastify-color-progress-info': 'var(--toastify-color-info)',
36
- // '--toastify-color-progress-success': 'var(--toastify-color-success)',
37
- // '--toastify-color-progress-warning': 'var(--toastify-color-warning)',
38
- // '--toastify-color-progress-error': 'var(--toastify-color-error)',
39
- "--toastify-toast-bd-radius": "8px",
40
- // used to control the opacity of the progress trail
41
- "--toastify-color-progress-bgo": ".2",
42
- ...ownerState?.fixed === false ? {
43
- top: 0,
44
- position: "absolute",
45
- zIndex: theme.vars.zIndex.snackbar,
46
- "@supports (position: sticky)": {
47
- position: "sticky"
48
- }
49
- } : {},
50
- "& .Toastify": {
51
- margin: 0,
52
- padding: 0,
53
- height: 0
54
- },
55
- "& .Toastify__toast-container": {
56
- display: "flex",
57
- flexDirection: "column",
58
- gap: "16px",
5
+ ...TOAST_NATIVE_STYLES,
6
+ "&&&": {
7
+ "--toastify-color-light": theme.vars.palette.background.default,
8
+ "--toastify-color-dark": theme.vars.palette.background.default,
9
+ "--toastify-color-info": theme.vars.palette.info.enabled,
10
+ "--toastify-color-success": theme.vars.palette.success.enabled,
11
+ "--toastify-color-warning": theme.vars.palette.warning.enabled,
12
+ "--toastify-color-error": theme.vars.palette.error.enabled,
13
+ "--toastify-color-transparent": "rgba(255, 255, 255, 0.7)",
14
+ "--toastify-icon-color-info": "var(--toastify-color-info)",
15
+ "--toastify-icon-color-success": "var(--toastify-color-success)",
16
+ "--toastify-icon-color-warning": "var(--toastify-color-warning)",
17
+ "--toastify-icon-color-error": "var(--toastify-color-error)",
18
+ "--toastify-toast-width": "320px",
19
+ "--toastify-toast-background": "#fff",
20
+ "--toastify-toast-min-height": "64px",
21
+ "--toastify-toast-max-height": "800px",
22
+ "--toastify-font-family": "sans-serif",
23
+ "--toastify-z-index": "9999",
24
+ "--toastify-text-color-light": "#757575",
25
+ "--toastify-text-color-dark": "#fff",
26
+ //Used only for colored theme
27
+ "--toastify-text-color-info": "#fff",
28
+ "--toastify-text-color-success": "#fff",
29
+ "--toastify-text-color-warning": "#fff",
30
+ "--toastify-text-color-error": "#fff",
31
+ "--toastify-spinner-color": "#616161",
32
+ "--toastify-spinner-color-empty-area": "#e0e0e0",
33
+ // Used when no type is provided
34
+ // toast("**hello**")
35
+ // '--toastify-color-progress-light': 'var(--toastify-color-info)',
36
+ // // Used when no type is provided
37
+ // '--toastify-color-progress-dark': 'var(--toastify-color-info)',
38
+ // '--toastify-color-progress-info': 'var(--toastify-color-info)',
39
+ // '--toastify-color-progress-success': 'var(--toastify-color-success)',
40
+ // '--toastify-color-progress-warning': 'var(--toastify-color-warning)',
41
+ // '--toastify-color-progress-error': 'var(--toastify-color-error)',
42
+ "--toastify-toast-bd-radius": "8px",
43
+ // used to control the opacity of the progress trail
44
+ "--toastify-color-progress-bgo": ".2",
59
45
  ...ownerState?.fixed === false ? {
60
- top: "20px",
61
- position: "absolute"
46
+ top: 0,
47
+ position: "absolute",
48
+ zIndex: theme.vars.zIndex.snackbar,
49
+ "@supports (position: sticky)": {
50
+ position: "sticky"
51
+ }
62
52
  } : {},
63
- [theme.breakpoints.down(480)]: {
64
- width: "100%",
65
- minWidth: "100%",
66
- padding: "0"
67
- }
68
- },
69
- /** Used to define the position of the ToastContainer */
70
- // '.Toastify__toast-container--top-left': {},
71
- // '.Toastify__toast-container--top-center': {},
72
- // '.Toastify__toast-container--top-right': {},
73
- // '.Toastify__toast-container--bottom-left': {},
74
- // '.Toastify__toast-container--bottom-center': {},
75
- // '.Toastify__toast-container--bottom-right': {},
76
- "& .Toastify__toast--stacked[data-collapsed=true]:not(:last-child) > *": {
77
- opacity: 0.2
78
- },
79
- /** Classes for the displayed toast */
80
- "& .Toastify__toast": {
81
- minHeight: "min-content",
82
- margin: "0",
83
- padding: "0",
84
- backgroundColor: theme.vars.palette.background.default,
85
- boxShadow: theme.customShadows?.z4,
86
- borderRadius: "4px",
87
- border: `1px solid ${theme.vars.palette.border.default}`,
88
- [theme.breakpoints.down(480)]: {
89
- margin: "1%",
90
- width: "98% !important"
53
+ "& .Toastify": {
54
+ margin: 0,
55
+ padding: 0,
56
+ height: 0
57
+ },
58
+ "& .Toastify__toast-container": {
59
+ display: "flex",
60
+ flexDirection: "column",
61
+ gap: "16px",
62
+ ...ownerState?.fixed === false ? {
63
+ top: "20px",
64
+ position: "absolute"
65
+ } : {},
66
+ [theme.breakpoints.down(480)]: {
67
+ width: "100%",
68
+ minWidth: "100%",
69
+ padding: "0"
70
+ }
71
+ },
72
+ /** Used to define the position of the ToastContainer */
73
+ // '.Toastify__toast-container--top-left': {},
74
+ // '.Toastify__toast-container--top-center': {},
75
+ // '.Toastify__toast-container--top-right': {},
76
+ // '.Toastify__toast-container--bottom-left': {},
77
+ // '.Toastify__toast-container--bottom-center': {},
78
+ // '.Toastify__toast-container--bottom-right': {},
79
+ "& .Toastify__toast--stacked[data-collapsed=true]:not(:last-child) > *": {
80
+ opacity: 0.2
81
+ },
82
+ /** Classes for the displayed toast */
83
+ "& .Toastify__toast": {
84
+ minHeight: "min-content",
85
+ margin: "0",
86
+ padding: "0",
87
+ backgroundColor: theme.vars.palette.background.default,
88
+ boxShadow: theme.customShadows?.z4,
89
+ borderRadius: "4px",
90
+ border: `1px solid ${theme.vars.palette.border.default}`,
91
+ [theme.breakpoints.down(480)]: {
92
+ margin: "1%",
93
+ width: "98% !important"
94
+ }
95
+ },
96
+ ".Toastify__toast--rtl": {},
97
+ "& .Toastify__toast-body": {
98
+ margin: "0px",
99
+ padding: "0px"
100
+ },
101
+ /** Used to position the icon */
102
+ // '& .Toastify__toast-icon': {},
103
+ /** handle the notification color and the text color based on the theme */
104
+ // '& .Toastify__toast-theme--dark': {},
105
+ // '& .Toastify__toast-theme--light': {},
106
+ // '& .Toastify__toast-theme--colored.Toastify__toast--default': {},
107
+ // '& .Toastify__toast-theme--colored.Toastify__toast--info': {},
108
+ // '& .Toastify__toast-theme--colored.Toastify__toast--success': {},
109
+ // '& .Toastify__toast-theme--colored.Toastify__toast--warning': {},
110
+ // '& .Toastify__toast-theme--colored.Toastify__toast--error': {},
111
+ "& .Toastify__progress-bar--wrp": {
112
+ position: "absolute",
113
+ top: 0,
114
+ height: "2px",
115
+ borderTopLeftRadius: "2px",
116
+ borderTopRightRadius: "2px",
117
+ borderBottomLeftRadius: "0",
118
+ borderBottomRightRadius: "0",
119
+ overflow: "hidden"
120
+ },
121
+ "& .Toastify__progress-bar": {
122
+ borderTopLeftRadius: "2px",
123
+ borderBottomLeftRadius: "0",
124
+ borderBottomRightRadius: "0"
91
125
  }
92
- },
93
- ".Toastify__toast--rtl": {},
94
- "& .Toastify__toast-body": {
95
- margin: "0px",
96
- padding: "0px"
97
- },
98
- /** Used to position the icon */
99
- // '& .Toastify__toast-icon': {},
100
- /** handle the notification color and the text color based on the theme */
101
- // '& .Toastify__toast-theme--dark': {},
102
- // '& .Toastify__toast-theme--light': {},
103
- // '& .Toastify__toast-theme--colored.Toastify__toast--default': {},
104
- // '& .Toastify__toast-theme--colored.Toastify__toast--info': {},
105
- // '& .Toastify__toast-theme--colored.Toastify__toast--success': {},
106
- // '& .Toastify__toast-theme--colored.Toastify__toast--warning': {},
107
- // '& .Toastify__toast-theme--colored.Toastify__toast--error': {},
108
- "& .Toastify__progress-bar--wrp": {
109
- position: "absolute",
110
- top: 0,
111
- height: "2px",
112
- borderTopLeftRadius: "2px",
113
- borderTopRightRadius: "2px",
114
- borderBottomLeftRadius: "0",
115
- borderBottomRightRadius: "0",
116
- overflow: "hidden"
117
- },
118
- "& .Toastify__progress-bar": {
119
- borderTopLeftRadius: "2px",
120
- borderBottomLeftRadius: "0",
121
- borderBottomRightRadius: "0"
126
+ // '& .Toastify__progress-bar--rtl': {},
127
+ // '& .Toastify__progress-bar-theme--light': {},
128
+ // '& .Toastify__progress-bar-theme--dark': {},
129
+ // '& .Toastify__progress-bar--info': {},
130
+ // '& .Toastify__progress-bar--success': {},
131
+ // '& .Toastify__progress-bar--warning': {},
132
+ // '& .Toastify__progress-bar--error': {},
122
133
  }
123
- // '& .Toastify__progress-bar--rtl': {},
124
- // '& .Toastify__progress-bar-theme--light': {},
125
- // '& .Toastify__progress-bar-theme--dark': {},
126
- // '& .Toastify__progress-bar--info': {},
127
- // '& .Toastify__progress-bar--success': {},
128
- // '& .Toastify__progress-bar--warning': {},
129
- // '& .Toastify__progress-bar--error': {},
130
134
  }),
131
135
  /** 📦 Contenedor Principal del Toast 📦 */
132
136
  messageRoot: ({ theme }) => ({