@m4l/components 9.3.13 → 9.3.15-BE100925-beta.1
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/@types/types.d.ts +207 -61
- package/components/MenuActions/MenuActions.js +3 -2
- package/components/MenuActions/MenuActions.styles.js +1 -1
- package/components/MenuActions/constants.d.ts +1 -0
- package/components/MenuActions/constants.js +12 -1
- package/components/MenuActions/slots/MenuActionsSlots.js +1 -1
- package/components/Stepper/Stepper.d.ts +8 -0
- package/components/Stepper/Stepper.js +70 -0
- package/components/Stepper/Stepper.styles.d.ts +2 -0
- package/components/Stepper/Stepper.styles.js +298 -0
- package/components/Stepper/constants.d.ts +2 -0
- package/components/Stepper/constants.js +6 -0
- package/components/Stepper/dictionary.d.ts +8 -0
- package/components/Stepper/dictionary.js +14 -0
- package/components/Stepper/helpers/evaluateVisibilityStepCondition/index.d.ts +9 -0
- package/components/Stepper/helpers/evaluateVisibilityStepCondition/index.js +17 -0
- package/components/Stepper/helpers/findNextVisibleValidStep/index.d.ts +10 -0
- package/components/Stepper/helpers/findNextVisibleValidStep/index.js +13 -0
- package/components/Stepper/helpers/findPrevVisibleValidStep/index.d.ts +10 -0
- package/components/Stepper/helpers/findPrevVisibleValidStep/index.js +13 -0
- package/components/Stepper/helpers/index.d.ts +4 -0
- package/components/Stepper/helpers/index.js +1 -0
- package/components/Stepper/helpers/isLastVisibleValidStep/index.d.ts +10 -0
- package/components/Stepper/helpers/isLastVisibleValidStep/index.js +16 -0
- package/components/Stepper/hooks/useIsLastVisibleValidStep/index.d.ts +6 -0
- package/components/Stepper/hooks/useIsLastVisibleValidStep/index.js +25 -0
- package/components/Stepper/hooks/useStepper/index.d.ts +5 -0
- package/components/Stepper/hooks/useStepper/index.js +14 -0
- package/components/Stepper/hooks/useStepperActions/index.d.ts +8 -0
- package/components/Stepper/hooks/useStepperActions/index.js +76 -0
- package/components/Stepper/icons.d.ts +9 -0
- package/components/Stepper/icons.js +12 -0
- package/components/Stepper/index.d.ts +14 -0
- package/components/Stepper/index.js +1 -0
- package/components/Stepper/slots/StepperEnum.d.ts +28 -0
- package/components/Stepper/slots/StepperEnum.js +38 -0
- package/components/Stepper/slots/StepperSlot.d.ts +63 -0
- package/components/Stepper/slots/StepperSlot.js +107 -0
- package/components/Stepper/store/StepperContext/index.d.ts +17 -0
- package/components/Stepper/store/StepperContext/index.js +91 -0
- package/components/Stepper/store/StepperStore/index.d.ts +16 -0
- package/components/Stepper/store/StepperStore/index.js +133 -0
- package/components/Stepper/store/types.d.ts +63 -0
- package/components/Stepper/subcomponents/ContentArea/index.d.ts +6 -0
- package/components/Stepper/subcomponents/ContentArea/index.js +24 -0
- package/components/Stepper/subcomponents/ContentArea/subcomponents/WrapperIcon/index.d.ts +4 -0
- package/components/Stepper/subcomponents/ContentArea/subcomponents/WrapperIcon/index.js +26 -0
- package/components/Stepper/subcomponents/ContentArea/subcomponents/WrapperTitle/index.d.ts +4 -0
- package/components/Stepper/subcomponents/ContentArea/subcomponents/WrapperTitle/index.js +23 -0
- package/components/Stepper/subcomponents/StepArea/index.d.ts +6 -0
- package/components/Stepper/subcomponents/StepArea/index.js +149 -0
- package/components/Stepper/subcomponents/StepArea/subcomponents/Inidicator/index.d.ts +5 -0
- package/components/Stepper/subcomponents/StepArea/subcomponents/Inidicator/index.js +82 -0
- package/components/Stepper/subcomponents/StepperButtons/StepperCancelButton/index.d.ts +4 -0
- package/components/Stepper/subcomponents/StepperButtons/StepperCancelButton/index.js +25 -0
- package/components/Stepper/subcomponents/StepperButtons/StepperNextButton/index.d.ts +4 -0
- package/components/Stepper/subcomponents/StepperButtons/StepperNextButton/index.js +42 -0
- package/components/Stepper/subcomponents/StepperButtons/StepperPrevButton/index.d.ts +4 -0
- package/components/Stepper/subcomponents/StepperButtons/StepperPrevButton/index.js +49 -0
- package/components/Stepper/subcomponents/StepperButtons/StepperSubmitButton/index.d.ts +4 -0
- package/components/Stepper/subcomponents/StepperButtons/StepperSubmitButton/index.js +20 -0
- package/components/Stepper/subcomponents/StepperButtons/index.d.ts +4 -0
- package/components/Stepper/subcomponents/StepperButtons/index.js +1 -0
- package/components/Stepper/subcomponents/StepperContent/index.d.ts +7 -0
- package/components/Stepper/subcomponents/StepperContent/index.js +23 -0
- package/components/Stepper/subcomponents/StepperContent/subcomponents/Step/index.d.ts +6 -0
- package/components/Stepper/subcomponents/StepperContent/subcomponents/Step/index.js +41 -0
- package/components/Stepper/subcomponents/StepperFooter/index.d.ts +6 -0
- package/components/Stepper/subcomponents/StepperFooter/index.js +48 -0
- package/components/Stepper/subcomponents/StepperFooter/subcomponents/StepperFooterLeftActions/index.d.ts +6 -0
- package/components/Stepper/subcomponents/StepperFooter/subcomponents/StepperFooterLeftActions/index.js +9 -0
- package/components/Stepper/subcomponents/StepperFooter/subcomponents/StepperFooterRightActions/index.d.ts +6 -0
- package/components/Stepper/subcomponents/StepperFooter/subcomponents/StepperFooterRightActions/index.js +33 -0
- package/components/Stepper/types.d.ts +165 -0
- package/components/WindowBase/WindowBase.styles.js +1 -1
- package/components/hook-form/RHFAutocomplete/RHFAutocomplete.js +3 -35
- package/components/hook-form/RHFAutocomplete/types.d.ts +1 -6
- package/components/hook-form/RHFormContext/index.d.ts +1 -1
- package/components/hook-form/RHFormContext/index.js +5 -4
- package/components/hook-form/RHFormContext/types.d.ts +3 -1
- package/components/index.d.ts +1 -0
- package/components/mui_extended/Autocomplete/types.d.ts +45 -2
- package/components/mui_extended/Badge/Badge.styles.js +4 -2
- package/components/mui_extended/IconButton/IconButton.js +12 -2
- package/components/mui_extended/IconButton/IconButton.styles.js +7 -7
- package/components/mui_extended/IconButton/constants.js +8 -1
- package/helpers/getStepsAndValidationSchema/getStepsAndValidationSchema.d.ts +11 -0
- package/helpers/getStepsAndValidationSchema/getStepsAndValidationSchema.js +44 -0
- package/helpers/getStepsAndValidationSchema/index.d.ts +2 -0
- package/helpers/getStepsAndValidationSchema/index.js +1 -0
- package/helpers/getStepsAndValidationSchema/types.d.ts +21 -0
- package/helpers/getStepsAndValidationSchema/types.js +1 -0
- package/helpers/index.d.ts +1 -0
- package/helpers/index.js +1 -0
- package/index.d.ts +1 -0
- package/index.js +80 -52
- package/package.json +1 -1
package/@types/types.d.ts
CHANGED
|
@@ -47,11 +47,23 @@ import type {
|
|
|
47
47
|
IconButtonOwnerState,
|
|
48
48
|
IconButtonSlotsType,
|
|
49
49
|
} from '../components/mui_extended/IconButton/types';
|
|
50
|
-
import type {
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
import type {
|
|
51
|
+
BadgeSlotsType,
|
|
52
|
+
BadgeOwnerState,
|
|
53
|
+
} from '../components/mui_extended/Badge/types';
|
|
54
|
+
import {
|
|
55
|
+
SkeletonOwnerState,
|
|
56
|
+
SkeletonSlotsType,
|
|
57
|
+
} from '../components/mui_extended/Skeleton/types';
|
|
58
|
+
import {
|
|
59
|
+
TypographyOwnerState,
|
|
60
|
+
TypographySlotsType,
|
|
61
|
+
} from '../components/mui_extended/Typography/types';
|
|
53
62
|
import { ColorOwnerState, ColorSlotsType } from '../components/Color/types';
|
|
54
|
-
import {
|
|
63
|
+
import {
|
|
64
|
+
RHFColorPickerOwnerState,
|
|
65
|
+
RHFColorPickerSlotsType,
|
|
66
|
+
} from '../components/hook-form/RHFColorPicker/types';
|
|
55
67
|
import type {
|
|
56
68
|
MenuItemSlotsType,
|
|
57
69
|
MenuItemOwnerState,
|
|
@@ -88,10 +100,7 @@ import {
|
|
|
88
100
|
AutocompleteOwnerState,
|
|
89
101
|
AutocompleteSlotsType,
|
|
90
102
|
} from '../components/mui_extended/Autocomplete/types';
|
|
91
|
-
import {
|
|
92
|
-
ChipOwnerState,
|
|
93
|
-
ChipSlotsType,
|
|
94
|
-
} from '../components/Chip/types';
|
|
103
|
+
import { ChipOwnerState, ChipSlotsType } from '../components/Chip/types';
|
|
95
104
|
import {
|
|
96
105
|
CircularProgressOwnerState,
|
|
97
106
|
CircularProgressSlotsType,
|
|
@@ -102,57 +111,187 @@ import {
|
|
|
102
111
|
PaperFormOwnerState,
|
|
103
112
|
} from '../components/PaperForm/types';
|
|
104
113
|
import { WindowBaseOwnerState, WindowBaseType } from '../components/WindowBase';
|
|
105
|
-
import {
|
|
114
|
+
import {
|
|
115
|
+
OwnerStateWindowConfirm,
|
|
116
|
+
WindowConfirmType,
|
|
117
|
+
} from '../components/WindowConfirm';
|
|
106
118
|
import { AppBarSlotsType, AppBarOwnerState } from '../components/AppBar/types';
|
|
107
|
-
import {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
import {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
import {
|
|
120
|
-
import {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
import {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
import {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
import {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
import {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
import {
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
119
|
+
import {
|
|
120
|
+
DialogOwnerState,
|
|
121
|
+
DialogType,
|
|
122
|
+
} from '../components/mui_extended/Dialog/types';
|
|
123
|
+
import {
|
|
124
|
+
LoadingButtonOwnerState,
|
|
125
|
+
LoadingButtonSlotsType,
|
|
126
|
+
} from '../components/mui_extended/LoadingButton/types';
|
|
127
|
+
import {
|
|
128
|
+
AccordionOwnerState,
|
|
129
|
+
AccordionSlotsType,
|
|
130
|
+
} from '../components/mui_extended/Accordion/types';
|
|
131
|
+
import { ImageOwnerState, ImageSlotsType } from '../components/Image/types';
|
|
132
|
+
import {
|
|
133
|
+
PopperOwnerState,
|
|
134
|
+
PopperSlotsType,
|
|
135
|
+
} from '../components/mui_extended/Popper/types';
|
|
136
|
+
import {
|
|
137
|
+
AvatarOwnerState,
|
|
138
|
+
AvatarSlotsType,
|
|
139
|
+
} from '../components/mui_extended/Avatar/types';
|
|
140
|
+
import {
|
|
141
|
+
ToggleButtonOwnerState,
|
|
142
|
+
ToggleButtonSlotsType,
|
|
143
|
+
} from '../components/mui_extended/ToggleButton/types';
|
|
144
|
+
import {
|
|
145
|
+
BooleanFormatterOwnerState,
|
|
146
|
+
PresentationType,
|
|
147
|
+
} from '../components/formatters/BooleanFormatter/types';
|
|
148
|
+
import {
|
|
149
|
+
ToggleIconButtonOwnerState,
|
|
150
|
+
ToggleIconButtonSlotsType,
|
|
151
|
+
} from '../components/mui_extended/ToggleIconButton/types';
|
|
152
|
+
import {
|
|
153
|
+
TabsSlotsType,
|
|
154
|
+
TabsOwnerState,
|
|
155
|
+
} from '../components/mui_extended/Tabs/types';
|
|
156
|
+
import {
|
|
157
|
+
PopoverOwnerState,
|
|
158
|
+
PopoverSlotsType,
|
|
159
|
+
} from '../components/mui_extended/Popover/types';
|
|
160
|
+
import {
|
|
161
|
+
NumberInputOwnerState,
|
|
162
|
+
NumberInputSlotsType,
|
|
163
|
+
} from '../components/NumberInput/types';
|
|
164
|
+
import {
|
|
165
|
+
AccountPopoverOwnerState,
|
|
166
|
+
AccountPopoverSlotsType,
|
|
167
|
+
} from '../components/AccountPopover/types';
|
|
168
|
+
import {
|
|
169
|
+
PropertyVaLueOwnerState,
|
|
170
|
+
PropertyValueSlotsType,
|
|
171
|
+
} from '../components/PropertyValue/types';
|
|
172
|
+
import {
|
|
173
|
+
RHFTextFieldPasswordOwnerState,
|
|
174
|
+
RHFTextFieldPasswordType,
|
|
175
|
+
} from '../components/hook-form/RHFTextFieldPassword/types';
|
|
176
|
+
import {
|
|
177
|
+
RHFAutocompleteOwnerState,
|
|
178
|
+
RHFAutocompleteSlotsType,
|
|
179
|
+
} from '../components/hook-form/RHFAutocomplete/types';
|
|
180
|
+
import {
|
|
181
|
+
PropagateLoaderSpinnerOwnerState,
|
|
182
|
+
PropagateLoaderSpinnerType,
|
|
183
|
+
} from '../components/extended/React-Spinners/PropagateLoaderSpinner/types';
|
|
184
|
+
import {
|
|
185
|
+
LinearProgressIndeterminateOwnerState,
|
|
186
|
+
LinearProgressIndeterminateType,
|
|
187
|
+
} from '../components/LinearProgressIndeterminate/types';
|
|
188
|
+
import {
|
|
189
|
+
MenuDividerOwnerState,
|
|
190
|
+
MenuDividerSlotsType,
|
|
191
|
+
} from '../components/mui_extended/MenuDivider/types';
|
|
192
|
+
import {
|
|
193
|
+
NavLinkOwnerState,
|
|
194
|
+
NavLinkSlotsType,
|
|
195
|
+
} from '../components/mui_extended/NavLink/types';
|
|
196
|
+
import {
|
|
197
|
+
RHFSelectSlotsType,
|
|
198
|
+
RHFSelectOwnerState,
|
|
199
|
+
} from '../components/hook-form/RHFSelect/types';
|
|
200
|
+
import {
|
|
201
|
+
StackOwnerState,
|
|
202
|
+
StackSlotsType,
|
|
203
|
+
} from '../components/mui_extended/Stack/types';
|
|
204
|
+
import {
|
|
205
|
+
RHFCheckBoxOwnerState,
|
|
206
|
+
RHFCheckBoxSlotsType,
|
|
207
|
+
} from '../components/hook-form/RHFCheckbox/types';
|
|
208
|
+
import {
|
|
209
|
+
ActionFormCancelOwnerState,
|
|
210
|
+
ActionFormCancelSlotsType,
|
|
211
|
+
} from '../components/CommonActions/components/ActionFormCancel/types';
|
|
212
|
+
import {
|
|
213
|
+
AreasAdminOwnerState,
|
|
214
|
+
AreasAdminType,
|
|
215
|
+
} from '../components/areas/components/AreasAdmin/types';
|
|
216
|
+
import {
|
|
217
|
+
DateTimePickerOwnerState,
|
|
218
|
+
DateTimePickerSlotsType,
|
|
219
|
+
} from '../components/mui_extended/DateTimePicker/types';
|
|
220
|
+
import {
|
|
221
|
+
DividerOwnerState,
|
|
222
|
+
DividerSlotsType,
|
|
223
|
+
} from '../components/mui_extended/Divider/types';
|
|
224
|
+
import {
|
|
225
|
+
NoItemSelectedOwnerState,
|
|
226
|
+
NoItemSelectedSlotsType,
|
|
227
|
+
} from '../components/NoItemSelected/types';
|
|
228
|
+
import {
|
|
229
|
+
ActionFormIntroOwnerState,
|
|
230
|
+
ActionFormIntroSlotsType,
|
|
231
|
+
} from '../components/CommonActions/components/ActionFormIntro/types';
|
|
232
|
+
import {
|
|
233
|
+
AreasViewerOwnerState,
|
|
234
|
+
AreasViewerType,
|
|
235
|
+
} from '../components/areas/components/AreasViewer/types';
|
|
236
|
+
import {
|
|
237
|
+
TimePickerOwnerState,
|
|
238
|
+
TimePickerSlotsType,
|
|
239
|
+
} from '../components/mui_extended/TimePicker/types';
|
|
240
|
+
import {
|
|
241
|
+
DataGridOwnerState,
|
|
242
|
+
DataGridSlotsType,
|
|
243
|
+
} from '../components/DataGrid/types';
|
|
244
|
+
import {
|
|
245
|
+
DynamicFilterAndSortOwnerState,
|
|
246
|
+
DynamicFilterAndSortSlotsType,
|
|
247
|
+
} from '../hooks/useDynamicFilterAndSort/types';
|
|
248
|
+
import {
|
|
249
|
+
RHFUploadSingleFileOwnerState,
|
|
250
|
+
RHFUploadSingleFileSlotsType,
|
|
251
|
+
} from '../components/hook-form/RHFUpload/RHFUploadSingleFile/types';
|
|
144
252
|
import { ChipStatusFormatterSlotsType } from '../components/formatters/ChipStatusFormatter/types';
|
|
145
|
-
import {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
253
|
+
import {
|
|
254
|
+
RHFUploadImageOwnerState,
|
|
255
|
+
RHFUploadImageSlotsType,
|
|
256
|
+
} from '../components/hook-form/RHFUpload/RHFUploadImage/types';
|
|
257
|
+
import {
|
|
258
|
+
PrintingSystemOwnerState,
|
|
259
|
+
PrintingSystemSlotsType,
|
|
260
|
+
} from '../components/PrintingSystem/types';
|
|
261
|
+
import {
|
|
262
|
+
SettingsLayoutOwnerState,
|
|
263
|
+
SettingsLayoutSlotsType,
|
|
264
|
+
} from '../components/SettingsLayout/types';
|
|
265
|
+
import {
|
|
266
|
+
ScrollBarOwnerState,
|
|
267
|
+
ScrollBarSlotsType,
|
|
268
|
+
} from '../components/ScrollBar/types';
|
|
149
269
|
import { SplitLayoutOwnerState } from '../components/extended/React-resizable-panels/types';
|
|
150
|
-
import {
|
|
151
|
-
|
|
270
|
+
import {
|
|
271
|
+
ObjectLogsOwnerState,
|
|
272
|
+
ObjectLogsSlotsType,
|
|
273
|
+
} from '../components/ObjectLogs/types';
|
|
274
|
+
import {
|
|
275
|
+
LanguagePopoverOwnerState,
|
|
276
|
+
LanguagePopoverSlotsType,
|
|
277
|
+
} from '../components/LanguagePopover/types';
|
|
152
278
|
import { CardOwnerState, CardSlotsType } from '../components/Card/types';
|
|
153
|
-
import {
|
|
154
|
-
|
|
155
|
-
|
|
279
|
+
import {
|
|
280
|
+
ContainerFlowOwnerState,
|
|
281
|
+
ContainerFlowSlotsType,
|
|
282
|
+
} from '../components/ContainerFlow/types';
|
|
283
|
+
import {
|
|
284
|
+
StepperOwnerState,
|
|
285
|
+
StepperSlotsType,
|
|
286
|
+
} from '../components/Stepper/types';
|
|
287
|
+
import {
|
|
288
|
+
NoItemPrivilegesOwnerState,
|
|
289
|
+
NoItemPrivilegesSlotsType,
|
|
290
|
+
} from '../components/NoItemPrivileges/types';
|
|
291
|
+
import {
|
|
292
|
+
ImageTextOwnerState,
|
|
293
|
+
ImageTextSlotsType,
|
|
294
|
+
} from '../components/ImageText/types';
|
|
156
295
|
import { FormContainerOwnerState, FormContainerSlotsType } from '../components/FormContainer/types';
|
|
157
296
|
|
|
158
297
|
declare module '@mui/material/styles' {
|
|
@@ -223,7 +362,7 @@ declare module '@mui/material/styles' {
|
|
|
223
362
|
M4LNoItemSelected: NoItemSelectedSlotsType;
|
|
224
363
|
M4LActionFormIntro: ActionFormIntroSlotsType;
|
|
225
364
|
M4LAreasViewer: AreasViewerType;
|
|
226
|
-
M4LTimePicker: TimePickerSlotsType
|
|
365
|
+
M4LTimePicker: TimePickerSlotsType;
|
|
227
366
|
M4LDataGrid: DataGridSlotsType;
|
|
228
367
|
M4LDynamicFilterAndSort: DynamicFilterAndSortSlotsType;
|
|
229
368
|
M4LRHFUploadSingleFile: RHFUploadSingleFileSlotsType;
|
|
@@ -239,6 +378,7 @@ declare module '@mui/material/styles' {
|
|
|
239
378
|
M4LContainerFlow: ContainerFlowSlotsType;
|
|
240
379
|
M4LNoItemPrivileges: NoItemPrivilegesSlotsType;
|
|
241
380
|
M4LSettingsLayoutBase: SettingsLayoutSlotsType;
|
|
381
|
+
M4LStepper: StepperSlotsType;
|
|
242
382
|
M4LImageText: ImageTextSlotsType;
|
|
243
383
|
M4LFormContainer: FormContainerSlotsType;
|
|
244
384
|
}
|
|
@@ -301,7 +441,7 @@ declare module '@mui/material/styles' {
|
|
|
301
441
|
M4LMenuDivider: Partial<MenuDividerOwnerState>;
|
|
302
442
|
M4LNavLink: Partial<NavLinkOwnerState>;
|
|
303
443
|
M4LRHFSelect: Partial<RHFSelectOwnerState>;
|
|
304
|
-
M4LActionFormCancel
|
|
444
|
+
M4LActionFormCancel: Partial<ActionFormCancelOwnerState>;
|
|
305
445
|
M4LAreasAdmin: Partial<AreasAdminOwnerState>;
|
|
306
446
|
M4LStack: Partial<StackOwnerState>;
|
|
307
447
|
M4LDateTimePicker: Partial<DateTimePickerOwnerState>;
|
|
@@ -325,6 +465,7 @@ declare module '@mui/material/styles' {
|
|
|
325
465
|
M4LContainerFlow: Partial<ContainerFlowOwnerState>;
|
|
326
466
|
M4LNoItemPrivileges: Partial<NoItemPrivilegesOwnerState>;
|
|
327
467
|
M4LSettingsLayoutBase: Partial<SettingsLayoutOwnerState>;
|
|
468
|
+
M4LStepper: Partial<StepperOwnerState>;
|
|
328
469
|
M4LImageText: Partial<ImageTextOwnerState>;
|
|
329
470
|
M4LFormContainer: Partial<FormContainerOwnerState>;
|
|
330
471
|
}
|
|
@@ -613,7 +754,7 @@ declare module '@mui/material/styles' {
|
|
|
613
754
|
defaultProps?: ComponentsPropsList['M4LActionFormCancel'];
|
|
614
755
|
styleOverrides?: ComponentsOverrides<Theme>['M4LActionFormCancel'];
|
|
615
756
|
variants?: ComponentsVariants['M4LActionFormCancel'];
|
|
616
|
-
}
|
|
757
|
+
};
|
|
617
758
|
M4LNavLink?: {
|
|
618
759
|
defaultProps?: ComponentsPropsList['M4LNavLink'];
|
|
619
760
|
styleOverrides?: ComponentsOverrides<Theme>['M4LNavLink'];
|
|
@@ -643,7 +784,7 @@ declare module '@mui/material/styles' {
|
|
|
643
784
|
defaultProps?: ComponentsPropsList['M4LNoItemSelected'];
|
|
644
785
|
styleOverrides?: ComponentsOverrides<Theme>['M4LNoItemSelected'];
|
|
645
786
|
variants?: ComponentsVariants['M4LNoItemSelected'];
|
|
646
|
-
}
|
|
787
|
+
};
|
|
647
788
|
M4LActionFormIntro?: {
|
|
648
789
|
defaultProps?: ComponentsPropsList['M4LActionFormIntro '];
|
|
649
790
|
styleOverrides?: ComponentsOverrides<Theme>['M4LActionFormIntro '];
|
|
@@ -683,7 +824,7 @@ declare module '@mui/material/styles' {
|
|
|
683
824
|
defaultProps?: ComponentsPropsList['M4LRHFUploadSingleFile'];
|
|
684
825
|
styleOverrides?: ComponentsOverrides<Theme>['M4LRHFUploadSingleFile'];
|
|
685
826
|
variants?: ComponentsVariants['M4LRHFUploadSingleFile'];
|
|
686
|
-
}
|
|
827
|
+
};
|
|
687
828
|
M4LChipStatusFormatter?: {
|
|
688
829
|
defaultProps?: ComponentsPropsList['M4LChipStatusFormatter'];
|
|
689
830
|
styleOverrides?: ComponentsOverrides<Theme>['M4LChipStatusFormatter'];
|
|
@@ -744,6 +885,11 @@ declare module '@mui/material/styles' {
|
|
|
744
885
|
styleOverrides?: ComponentsOverrides<Theme>['M4LSettingsLayoutBase'];
|
|
745
886
|
variants?: ComponentsVariants['M4LSettingsLayoutBase'];
|
|
746
887
|
};
|
|
888
|
+
M4LStepper?: {
|
|
889
|
+
defaultProps?: ComponentsPropsList['M4LStepper'];
|
|
890
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LStepper'];
|
|
891
|
+
variants?: ComponentsVariants['M4LStepper'];
|
|
892
|
+
};
|
|
747
893
|
M4LImageText?: {
|
|
748
894
|
defaultProps?: ComponentsPropsList['M4LImageText'];
|
|
749
895
|
styleOverrides?: ComponentsOverrides<Theme>['M4LImageText'];
|
|
@@ -755,4 +901,4 @@ declare module '@mui/material/styles' {
|
|
|
755
901
|
variants?: ComponentsVariants['M4LFormContainer'];
|
|
756
902
|
};
|
|
757
903
|
}
|
|
758
|
-
}
|
|
904
|
+
}
|
|
@@ -4,9 +4,10 @@ import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
|
4
4
|
import { u as useComponentSize } from "../../hooks/useComponentSize/useComponentSize.js";
|
|
5
5
|
import { P as Popover } from "../mui_extended/Popover/Popover.js";
|
|
6
6
|
import { M as MenuItem } from "../mui_extended/MenuItem/MenuItem.js";
|
|
7
|
-
import { I as ICON_PATH, a as ICONS, M as MENU_ACTIONS_ } from "./constants.js";
|
|
7
|
+
import { I as ICON_PATH, a as ICONS, M as MENU_ACTIONS_, b as MENU_ACTIONS_CLASSES } from "./constants.js";
|
|
8
8
|
import { a as getMenuActionsDictionary, D as DICTIONARY } from "./dictionary.js";
|
|
9
9
|
import { M as MenuDivider } from "../mui_extended/MenuDivider/MenuDivider.js";
|
|
10
|
+
import clsx from "clsx";
|
|
10
11
|
import { M as MenuListStyled, a as MenuLoaderStyled, R as RootStyled, I as IconButtonStyled, H as HeaderMenuActionsStyled, F as FooterMenuActionsStyled } from "./slots/MenuActionsSlots.js";
|
|
11
12
|
import { C as CircularProgress } from "../mui_extended/CircularProgress/CircularProgress.js";
|
|
12
13
|
function MenuActions(props) {
|
|
@@ -128,7 +129,7 @@ function MenuActions(props) {
|
|
|
128
129
|
endListElement && endListElement
|
|
129
130
|
] });
|
|
130
131
|
}, [menuActions, header, size, footer, endListElement, objItem, getLabel, actionKey, handleClick]);
|
|
131
|
-
return /* @__PURE__ */ jsxs(RootStyled, { className, ownerState: { ownerState }, children: [
|
|
132
|
+
return /* @__PURE__ */ jsxs(RootStyled, { className: clsx(className, MENU_ACTIONS_CLASSES.root, ownerState.selected && MENU_ACTIONS_CLASSES.selected), ownerState: { ownerState }, children: [
|
|
132
133
|
/* @__PURE__ */ jsx(
|
|
133
134
|
IconButtonStyled,
|
|
134
135
|
{
|
|
@@ -38,7 +38,7 @@ const menuActionsStyles = {
|
|
|
38
38
|
"& active": {
|
|
39
39
|
backgroundColor: theme.vars.palette[ownerState?.paletteColor ?? "default"].selectedOpacity
|
|
40
40
|
},
|
|
41
|
-
|
|
41
|
+
"& .M4LIcon-icon": {
|
|
42
42
|
backgroundColor: ownerState?.selected ? theme.vars.palette[ownerState?.paletteColor ?? "default"].selected : void 0
|
|
43
43
|
}
|
|
44
44
|
}),
|
|
@@ -20,3 +20,4 @@ export declare const MENU_ACTIONS_EMPTY = "menu_action_empty";
|
|
|
20
20
|
* Prefijo de la clave que se utiliza cuando un ítem del menú está cargando en React.
|
|
21
21
|
*/
|
|
22
22
|
export declare const MENU_ACTIONS_ = "menu_action_";
|
|
23
|
+
export declare const MENU_ACTIONS_CLASSES: Record<string, string>;
|
|
@@ -1,12 +1,23 @@
|
|
|
1
|
+
import { g as getComponentClasses } from "../../utils/getComponentSlotRoot.js";
|
|
2
|
+
import { M as MenuActionsSlots } from "./slots/MenuActionsEnum.js";
|
|
1
3
|
const ICON_PATH = "frontend/components/menu_actions/assets/icons";
|
|
2
4
|
const ICONS = {
|
|
3
5
|
MENU: "menu.svg"
|
|
4
6
|
};
|
|
5
7
|
const MENU_ACTIONS_KEY_COMPONENT = "M4LMenuActions";
|
|
6
8
|
const MENU_ACTIONS_ = "menu_action_";
|
|
9
|
+
const MenuActionsComplementaryClasses = {
|
|
10
|
+
selected: "selected"
|
|
11
|
+
};
|
|
12
|
+
const MENU_ACTIONS_COMBINATE_CLASSES = {
|
|
13
|
+
...MenuActionsSlots,
|
|
14
|
+
...MenuActionsComplementaryClasses
|
|
15
|
+
};
|
|
16
|
+
const MENU_ACTIONS_CLASSES = getComponentClasses(MENU_ACTIONS_KEY_COMPONENT, MENU_ACTIONS_COMBINATE_CLASSES);
|
|
7
17
|
export {
|
|
8
18
|
ICON_PATH as I,
|
|
9
19
|
MENU_ACTIONS_ as M,
|
|
10
20
|
ICONS as a,
|
|
11
|
-
|
|
21
|
+
MENU_ACTIONS_CLASSES as b,
|
|
22
|
+
MENU_ACTIONS_KEY_COMPONENT as c
|
|
12
23
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MenuList } from "@mui/material";
|
|
2
2
|
import { styled } from "@mui/material/styles";
|
|
3
|
-
import {
|
|
3
|
+
import { c as MENU_ACTIONS_KEY_COMPONENT } from "../constants.js";
|
|
4
4
|
import { m as menuActionsStyles } from "../MenuActions.styles.js";
|
|
5
5
|
import { M as MenuActionsSlots } from "./MenuActionsEnum.js";
|
|
6
6
|
import { I as IconButton } from "../../mui_extended/IconButton/IconButton.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { StepperProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* El Stepper es un componente que permite navegar a través de una serie de pasos (steps) de manera secuencial.
|
|
4
|
+
*
|
|
5
|
+
* ### Dependecias:
|
|
6
|
+
*- **`useFlagsPresent:`** Hook que permite verificar si una lista de flags se encuentran presentes.
|
|
7
|
+
*/
|
|
8
|
+
export declare function Stepper(props: StepperProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo, Children, isValidElement } from "react";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import { useFlagsPresent, CommonFlags } from "@m4l/core";
|
|
5
|
+
import { S as StepperRootStyled, C as ContentSectionStyled } from "./slots/StepperSlot.js";
|
|
6
|
+
import { a as getComponentSlotRoot } from "../../utils/getComponentSlotRoot.js";
|
|
7
|
+
import { S as STEPPER_PREFIX_NAME } from "./constants.js";
|
|
8
|
+
import { S as StepArea } from "./subcomponents/StepArea/index.js";
|
|
9
|
+
import { C as ContentArea } from "./subcomponents/ContentArea/index.js";
|
|
10
|
+
import { S as StepperProvider } from "./store/StepperContext/index.js";
|
|
11
|
+
import { S as StepperFooter } from "./subcomponents/StepperFooter/index.js";
|
|
12
|
+
import { S as StepperContent } from "./subcomponents/StepperContent/index.js";
|
|
13
|
+
import { u as useComponentSize } from "../../hooks/useComponentSize/useComponentSize.js";
|
|
14
|
+
function Stepper(props) {
|
|
15
|
+
const { orientation, size, children, className } = props;
|
|
16
|
+
const { currentSize } = useComponentSize(size);
|
|
17
|
+
const ownerState = {
|
|
18
|
+
size: currentSize,
|
|
19
|
+
orientation
|
|
20
|
+
};
|
|
21
|
+
const classRoot = getComponentSlotRoot(STEPPER_PREFIX_NAME);
|
|
22
|
+
const { stepperFooter, stepperContent } = useMemo(() => {
|
|
23
|
+
let footer = null;
|
|
24
|
+
let content = null;
|
|
25
|
+
let footerCount = 0;
|
|
26
|
+
let contentCount = 0;
|
|
27
|
+
if (children) {
|
|
28
|
+
Children.forEach(children, (child) => {
|
|
29
|
+
if (isValidElement(child)) {
|
|
30
|
+
if (child.type === StepperFooter) {
|
|
31
|
+
footerCount++;
|
|
32
|
+
if (footerCount > 1) {
|
|
33
|
+
throw new Error(
|
|
34
|
+
"Stepper: Solo se permite un componente StepperFooter. Se encontraron múltiples StepperFooter."
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
footer = child;
|
|
38
|
+
} else if (child.type === StepperContent) {
|
|
39
|
+
contentCount++;
|
|
40
|
+
if (contentCount > 1) {
|
|
41
|
+
throw new Error(
|
|
42
|
+
"Stepper: Solo se permite un componente StepperContent. Se encontraron múltiples StepperContent."
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
content = child;
|
|
46
|
+
} else {
|
|
47
|
+
throw new Error(
|
|
48
|
+
"Stepper: Solo se permiten componentes StepperContent y StepperFooter como hijos."
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
return { stepperFooter: footer, stepperContent: content };
|
|
55
|
+
}, [children]);
|
|
56
|
+
const hasPresentFlags = useFlagsPresent([CommonFlags.FLAG_DICTIONARY_LOADED]);
|
|
57
|
+
if (!hasPresentFlags) {
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
return /* @__PURE__ */ jsx(StepperProvider, { ...props, children: /* @__PURE__ */ jsxs(StepperRootStyled, { className: clsx(classRoot, className), children: [
|
|
61
|
+
/* @__PURE__ */ jsxs(ContentSectionStyled, { ownerState, children: [
|
|
62
|
+
/* @__PURE__ */ jsx(StepArea, {}),
|
|
63
|
+
/* @__PURE__ */ jsx(ContentArea, { children: stepperContent })
|
|
64
|
+
] }),
|
|
65
|
+
stepperFooter
|
|
66
|
+
] }) });
|
|
67
|
+
}
|
|
68
|
+
export {
|
|
69
|
+
Stepper as S
|
|
70
|
+
};
|