@m4l/components 9.3.13 → 9.3.14
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/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/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/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
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { ReactElement, ReactNode } from 'react';
|
|
2
|
+
import { Theme } from '@mui/material/styles';
|
|
3
|
+
import { Sizes } from '@m4l/styles';
|
|
4
|
+
import { ContentAreaSlots, ContentSlots, StepperFooterSlots, StepperSlots } from './slots/StepperEnum';
|
|
5
|
+
import { STEPPER_PREFIX_NAME } from './constants';
|
|
6
|
+
import { M4LOverridesStyleRules } from '../../@types/augmentations';
|
|
7
|
+
import { Step as StepComponent } from './subcomponents/StepperContent/subcomponents/Step';
|
|
8
|
+
export type Orientation = 'horizontal' | 'vertical';
|
|
9
|
+
export type IndicatorType = 'number' | 'dot';
|
|
10
|
+
export type FormData = Record<string, string | number | boolean | null | undefined>;
|
|
11
|
+
export type VisibilityData = Record<string, string | number | boolean | null | undefined>;
|
|
12
|
+
export type Step = {
|
|
13
|
+
/**
|
|
14
|
+
* Clave única que identifica el step.
|
|
15
|
+
*/
|
|
16
|
+
key: string;
|
|
17
|
+
/**
|
|
18
|
+
* Título del step.
|
|
19
|
+
*/
|
|
20
|
+
title: string;
|
|
21
|
+
/**
|
|
22
|
+
* Descripción del step.
|
|
23
|
+
*/
|
|
24
|
+
description?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Icono del step.
|
|
27
|
+
*/
|
|
28
|
+
icon?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Array con los campos que se deben validar en el step.
|
|
31
|
+
*/
|
|
32
|
+
validationFields?: string[];
|
|
33
|
+
/**
|
|
34
|
+
* Función que determina si el step se debe mostrar.
|
|
35
|
+
* @param formData - Datos del formulario.
|
|
36
|
+
* @param visibilityData - Datos adicionales para evaluar visibilidad (ej: objectId).
|
|
37
|
+
* @returns true si el step se debe mostrar, false en caso contrario.
|
|
38
|
+
* Si no se proporciona, el step siempre se muestra.
|
|
39
|
+
*/
|
|
40
|
+
visibilityCondition?: (formData?: FormData, visibilityData?: VisibilityData) => boolean;
|
|
41
|
+
};
|
|
42
|
+
export interface StepperProps {
|
|
43
|
+
/**
|
|
44
|
+
* Children opcional para inyectar componentes adicionales
|
|
45
|
+
*/
|
|
46
|
+
children?: React.ReactNode;
|
|
47
|
+
/**
|
|
48
|
+
* "storeId" identificador del store
|
|
49
|
+
*/
|
|
50
|
+
storeId?: string;
|
|
51
|
+
/**
|
|
52
|
+
* "storeDevtoolsEnabled" determina si se debe usar devtools para el store
|
|
53
|
+
*/
|
|
54
|
+
storeDevtoolsEnabled?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* "visibleTitle": Propiedad que ejecuta condición para visualizar los titulos en el SteppArea
|
|
57
|
+
*/
|
|
58
|
+
visibleTitle?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Array con la configuración de cada step.
|
|
61
|
+
*/
|
|
62
|
+
steps: Step[];
|
|
63
|
+
/**
|
|
64
|
+
* Datos adicionales para evaluar visibilityCondition de los steps.
|
|
65
|
+
* Por ejemplo, objectId para determinar si mostrar steps después del submit inicial.
|
|
66
|
+
*/
|
|
67
|
+
visibilityData?: VisibilityData;
|
|
68
|
+
/**
|
|
69
|
+
* Indica que tipo de indicador se usará en el Stepper.
|
|
70
|
+
* Puede ser 'number' para números o 'dot' para puntos.
|
|
71
|
+
*/
|
|
72
|
+
indicatorType?: IndicatorType;
|
|
73
|
+
/**
|
|
74
|
+
* "orientation" define la orientación del Stepper.
|
|
75
|
+
*/
|
|
76
|
+
orientation?: Orientation;
|
|
77
|
+
/**
|
|
78
|
+
* Tamaño del componente, puede ser uno de los valores definidos en 'small' , 'medium'
|
|
79
|
+
*/
|
|
80
|
+
size?: Extract<Sizes, 'small' | 'medium'>;
|
|
81
|
+
/**
|
|
82
|
+
* Clase personalizada para el Stepper.
|
|
83
|
+
*/
|
|
84
|
+
className?: string;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Props del StepperContent
|
|
88
|
+
*/
|
|
89
|
+
export interface StepperContentProps {
|
|
90
|
+
/**
|
|
91
|
+
* Array de componentes Step
|
|
92
|
+
*/
|
|
93
|
+
children: ReactElement<typeof StepComponent>[];
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Props del Step
|
|
97
|
+
*/
|
|
98
|
+
export interface StepProps {
|
|
99
|
+
/**
|
|
100
|
+
* Clave única del step que determina cuándo se renderiza
|
|
101
|
+
*/
|
|
102
|
+
stepKey: string;
|
|
103
|
+
/**
|
|
104
|
+
* Contenido del step
|
|
105
|
+
*/
|
|
106
|
+
children: ReactNode;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Props del ContentArea
|
|
110
|
+
*/
|
|
111
|
+
export interface ContentAreaProps {
|
|
112
|
+
children: ReactNode;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Props del Indicator
|
|
116
|
+
*/
|
|
117
|
+
export interface IndicatorProps {
|
|
118
|
+
/**
|
|
119
|
+
* El número del paso actual.
|
|
120
|
+
*/
|
|
121
|
+
step: number;
|
|
122
|
+
/**
|
|
123
|
+
* Indica si el paso es el actual.
|
|
124
|
+
*/
|
|
125
|
+
currentStep: number;
|
|
126
|
+
/**
|
|
127
|
+
* El número total de pasos.
|
|
128
|
+
*/
|
|
129
|
+
totalSteps: number;
|
|
130
|
+
/**
|
|
131
|
+
* El índice original del paso en el array completo de pasos.
|
|
132
|
+
* Se usa para buscar el estado de validación en stepValidationStatus.
|
|
133
|
+
*/
|
|
134
|
+
originalStepIndex: number;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Props del StepperFooter
|
|
138
|
+
*/
|
|
139
|
+
export interface StepperFooterProps {
|
|
140
|
+
children?: ReactNode;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Props del StepperFooterLeftActions
|
|
144
|
+
*/
|
|
145
|
+
export interface StepperFooterLeftActionsProps {
|
|
146
|
+
children?: ReactNode;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Props del StepperFooterRightActions
|
|
150
|
+
*/
|
|
151
|
+
export interface StepperFooterRightActionsProps {
|
|
152
|
+
children?: ReactNode;
|
|
153
|
+
}
|
|
154
|
+
export interface StepperOwnerState extends Pick<StepperProps, 'visibleTitle'>, Record<string, unknown> {
|
|
155
|
+
step?: number;
|
|
156
|
+
currentStep?: number;
|
|
157
|
+
totalSteps?: number;
|
|
158
|
+
orientation?: Orientation;
|
|
159
|
+
indicatorType?: IndicatorType;
|
|
160
|
+
size?: Extract<Sizes, 'small' | 'medium'>;
|
|
161
|
+
stepValidationStatus?: Record<number, boolean>;
|
|
162
|
+
isStepVisible?: boolean;
|
|
163
|
+
}
|
|
164
|
+
export type StepperSlotsType = StepperSlots | ContentSlots | ContentAreaSlots | StepperFooterSlots;
|
|
165
|
+
export type StepperStyles = M4LOverridesStyleRules<StepperSlotsType, typeof STEPPER_PREFIX_NAME, Theme>;
|
|
@@ -3,7 +3,7 @@ import { CustomFormArguments, FormProviderCustomProps, FormProviderProps } from
|
|
|
3
3
|
/**
|
|
4
4
|
* TODO: Documentar
|
|
5
5
|
*/
|
|
6
|
-
export declare function useCustomForm({ validationSchema, values, statusLoad }: CustomFormArguments): import('react-hook-form').UseFormReturn<FieldValues, any, FieldValues>;
|
|
6
|
+
export declare function useCustomForm({ validationSchema, values, statusLoad, mode }: CustomFormArguments): import('react-hook-form').UseFormReturn<FieldValues, any, FieldValues>;
|
|
7
7
|
/**
|
|
8
8
|
* TODO: Documentar
|
|
9
9
|
*/
|
|
@@ -6,10 +6,11 @@ import { yupResolver } from "@hookform/resolvers/yup";
|
|
|
6
6
|
import { F as FormProviderRoot } from "./styles.js";
|
|
7
7
|
import { R as RHFormProviderUtilityClasses } from "./classes/index.js";
|
|
8
8
|
const classes = RHFormProviderUtilityClasses();
|
|
9
|
-
function useCustomForm({ validationSchema, values, statusLoad }) {
|
|
9
|
+
function useCustomForm({ validationSchema, values, statusLoad, mode }) {
|
|
10
10
|
const formMethods = useForm({
|
|
11
11
|
resolver: yupResolver(validationSchema),
|
|
12
|
-
defaultValues: values
|
|
12
|
+
defaultValues: values,
|
|
13
|
+
...mode && { mode }
|
|
13
14
|
});
|
|
14
15
|
useEffect(() => {
|
|
15
16
|
if (statusLoad === "reload_values_provider") {
|
|
@@ -41,8 +42,8 @@ function FormProviderCustom(props) {
|
|
|
41
42
|
return /* @__PURE__ */ jsx(FormProvider, { ...props, children: /* @__PURE__ */ jsx(FormProviderRoot, { className: clsx(classes.root, className), onSubmit: handleSubmit(onSubmit), children }) });
|
|
42
43
|
}
|
|
43
44
|
function RHFormProvider(props) {
|
|
44
|
-
const { children, onSubmit, values, validationSchema, statusLoad = "ready", className } = props;
|
|
45
|
-
const formMethods = useCustomForm({ validationSchema, statusLoad, values });
|
|
45
|
+
const { children, onSubmit, values, validationSchema, statusLoad = "ready", className, mode } = props;
|
|
46
|
+
const formMethods = useCustomForm({ validationSchema, statusLoad, values, mode });
|
|
46
47
|
return /* @__PURE__ */ jsx(
|
|
47
48
|
FormProviderCustom,
|
|
48
49
|
{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { FieldValues, FormProviderProps as RHFormProviderProps } from 'react-hook-form';
|
|
2
|
+
import { FieldValues, FormProviderProps as RHFormProviderProps, Mode } from 'react-hook-form';
|
|
3
3
|
export type FormStatusLoad = 'initial' | 'new' | 'edit' | 'reload_values_provider' | 'ready' | 'error';
|
|
4
4
|
export type FormInitialValues = FieldValues;
|
|
5
5
|
export interface FormProviderProps {
|
|
@@ -9,10 +9,12 @@ export interface FormProviderProps {
|
|
|
9
9
|
validationSchema: any;
|
|
10
10
|
statusLoad?: FormStatusLoad;
|
|
11
11
|
className?: string;
|
|
12
|
+
mode?: Mode;
|
|
12
13
|
}
|
|
13
14
|
export type FormProviderCustomProps = RHFormProviderProps & FormProviderProps;
|
|
14
15
|
export interface CustomFormArguments {
|
|
15
16
|
values: FormInitialValues;
|
|
16
17
|
validationSchema: any;
|
|
17
18
|
statusLoad?: FormStatusLoad;
|
|
19
|
+
mode?: Mode;
|
|
18
20
|
}
|
package/components/index.d.ts
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Step } from '../../components/Stepper/types';
|
|
2
|
+
import { GetStepsAndValidationSchemaProps } from './types';
|
|
3
|
+
import * as Yup from 'yup';
|
|
4
|
+
/**
|
|
5
|
+
* Hook personalizado que recibe un array de steps con validaciones y regresa todo listo para el Stepper
|
|
6
|
+
* Una sola configuración genera: validationSchema + steps + validationFields automáticamente
|
|
7
|
+
*/
|
|
8
|
+
export declare function getStepsAndValidationSchema({ steps, visibilityData, }: GetStepsAndValidationSchemaProps): {
|
|
9
|
+
validationSchema: Yup.ObjectSchema<import('yup/lib/object').Assign<import('yup/lib/object').ObjectShape, Record<string, any>>, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape<import('yup/lib/object').Assign<import('yup/lib/object').ObjectShape, Record<string, any>>>, import('yup/lib/object').AssertsShape<import('yup/lib/object').Assign<import('yup/lib/object').ObjectShape, Record<string, any>>>>;
|
|
10
|
+
steps: Step[];
|
|
11
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as Yup from "yup";
|
|
2
|
+
import { e as evaluateVisibilityStepCondition } from "../../components/Stepper/helpers/evaluateVisibilityStepCondition/index.js";
|
|
3
|
+
function getStepsAndValidationSchema({
|
|
4
|
+
steps,
|
|
5
|
+
visibilityData
|
|
6
|
+
}) {
|
|
7
|
+
const validationSchema = (() => {
|
|
8
|
+
const combinedValidations = {};
|
|
9
|
+
const visibleSteps = steps.filter((step) => {
|
|
10
|
+
if (!step.visibilityCondition) {
|
|
11
|
+
return true;
|
|
12
|
+
}
|
|
13
|
+
return evaluateVisibilityStepCondition(step, void 0, visibilityData);
|
|
14
|
+
});
|
|
15
|
+
visibleSteps.forEach((step) => {
|
|
16
|
+
if (step.validationFunction) {
|
|
17
|
+
const validationResult = step.validationFunction();
|
|
18
|
+
Object.assign(combinedValidations, validationResult);
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
return Yup.object().shape(combinedValidations);
|
|
22
|
+
})();
|
|
23
|
+
const processedSteps = steps.map((step) => {
|
|
24
|
+
let validationFields = [];
|
|
25
|
+
if (step.validationFunction) {
|
|
26
|
+
const validationResult = step.validationFunction();
|
|
27
|
+
validationFields = Object.keys(validationResult);
|
|
28
|
+
}
|
|
29
|
+
const processedStep = {
|
|
30
|
+
...step,
|
|
31
|
+
// Incluir todas las propiedades del step original
|
|
32
|
+
validationFields
|
|
33
|
+
// Agregar validationFields calculados
|
|
34
|
+
};
|
|
35
|
+
return processedStep;
|
|
36
|
+
});
|
|
37
|
+
return {
|
|
38
|
+
validationSchema,
|
|
39
|
+
steps: processedSteps
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export {
|
|
43
|
+
getStepsAndValidationSchema as g
|
|
44
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Step } from '../../components/Stepper/types';
|
|
2
|
+
/**
|
|
3
|
+
* Configuración completa de un step con validaciones incluidas
|
|
4
|
+
*/
|
|
5
|
+
export interface StepWithValidation extends Omit<Step, 'validationFields'> {
|
|
6
|
+
/**
|
|
7
|
+
* Función de validación que retorna un objeto con esquemas Yup
|
|
8
|
+
* Ejemplo: ContactDataValidation
|
|
9
|
+
*/
|
|
10
|
+
validationFunction?: () => Record<string, any>;
|
|
11
|
+
}
|
|
12
|
+
export interface GetStepsAndValidationSchemaProps {
|
|
13
|
+
/**
|
|
14
|
+
* Array de steps con sus validaciones incluidas
|
|
15
|
+
*/
|
|
16
|
+
steps: StepWithValidation[];
|
|
17
|
+
/**
|
|
18
|
+
* Datos adicionales para visibilityCondition (ej: objectId)
|
|
19
|
+
*/
|
|
20
|
+
visibilityData?: any;
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './getStepsAndValidationSchema';
|
package/helpers/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -194,38 +194,52 @@ import { a as a14, g as g28 } from "./components/ModalDialog/dictionary.js";
|
|
|
194
194
|
import { M as M8 } from "./components/ModalDialog/ModalDialog.js";
|
|
195
195
|
import { S as S10 } from "./components/SettingsLayout/SettingsLayout.js";
|
|
196
196
|
import { P as P13 } from "./components/Pager/Pager.js";
|
|
197
|
-
import {
|
|
198
|
-
import {
|
|
199
|
-
import {
|
|
197
|
+
import { u as u16 } from "./components/Stepper/hooks/useStepper/index.js";
|
|
198
|
+
import { S as S11 } from "./components/Stepper/Stepper.js";
|
|
199
|
+
import { S as S12 } from "./components/Stepper/subcomponents/StepperContent/index.js";
|
|
200
|
+
import { S as S13 } from "./components/Stepper/subcomponents/StepperContent/subcomponents/Step/index.js";
|
|
201
|
+
import { S as S14 } from "./components/Stepper/subcomponents/StepperFooter/index.js";
|
|
202
|
+
import { S as S15 } from "./components/Stepper/subcomponents/StepperFooter/subcomponents/StepperFooterLeftActions/index.js";
|
|
203
|
+
import { S as S16 } from "./components/Stepper/subcomponents/StepperFooter/subcomponents/StepperFooterRightActions/index.js";
|
|
204
|
+
import { S as S17 } from "./components/Stepper/subcomponents/StepperButtons/StepperNextButton/index.js";
|
|
205
|
+
import { S as S18 } from "./components/Stepper/subcomponents/StepperButtons/StepperPrevButton/index.js";
|
|
206
|
+
import { S as S19 } from "./components/Stepper/subcomponents/StepperButtons/StepperCancelButton/index.js";
|
|
207
|
+
import { S as S20 } from "./components/Stepper/subcomponents/StepperButtons/StepperSubmitButton/index.js";
|
|
208
|
+
import { e as e3 } from "./components/Stepper/helpers/evaluateVisibilityStepCondition/index.js";
|
|
209
|
+
import { g as g29 } from "./components/Stepper/dictionary.js";
|
|
210
|
+
import { F as F3, R as R23, u as u17 } from "./components/hook-form/RHFormContext/index.js";
|
|
211
|
+
import { g as g30 } from "./components/hook-form/RHFormContext/dictionary.js";
|
|
212
|
+
import { u as u18 } from "./contexts/AppearanceComponentContext/useAppearanceComponentStore.js";
|
|
200
213
|
import { A as A16 } from "./contexts/AppearanceComponentContext/AppearanceComponentContext.js";
|
|
201
214
|
import { a as a15, M as M9 } from "./contexts/ModalContext/index.js";
|
|
202
|
-
import { u as
|
|
203
|
-
import { u as
|
|
204
|
-
import { u as
|
|
205
|
-
import { g as
|
|
206
|
-
import { u as
|
|
207
|
-
import { u as
|
|
208
|
-
import { u as
|
|
209
|
-
import { u as
|
|
210
|
-
import { u as
|
|
211
|
-
import { S as
|
|
212
|
-
import { u as
|
|
213
|
-
import { u as
|
|
214
|
-
import { u as
|
|
215
|
-
import { u as
|
|
216
|
-
import { u as
|
|
215
|
+
import { u as u19 } from "./hooks/useFormAddEdit/index.js";
|
|
216
|
+
import { u as u20 } from "./hooks/useModal/index.js";
|
|
217
|
+
import { u as u21 } from "./hooks/useTab/index.js";
|
|
218
|
+
import { g as g31 } from "./hooks/useFormAddEdit/dictionary.js";
|
|
219
|
+
import { u as u22 } from "./hooks/useFormFocus/index.js";
|
|
220
|
+
import { u as u23 } from "./hooks/useInterval/index.js";
|
|
221
|
+
import { u as u24 } from "./hooks/useComponentSize/useComponentSize.js";
|
|
222
|
+
import { u as u25 } from "./hooks/useFormReadyForUpdate/index.js";
|
|
223
|
+
import { u as u26 } from "./hooks/useStateRef/index.js";
|
|
224
|
+
import { S as S21 } from "./hooks/useSvgColor/constants.js";
|
|
225
|
+
import { u as u27 } from "./hooks/useSvgColor/useSvgColor.js";
|
|
226
|
+
import { u as u28 } from "./hooks/useDynamicFilterAndSort/useDynamicFilterAndSort.js";
|
|
227
|
+
import { u as u29 } from "./hooks/useDataGridPersistence/useDataGridPersistence.js";
|
|
228
|
+
import { u as u30 } from "./hooks/usePopoverContainer/usePopoverContainer.js";
|
|
229
|
+
import { u as u31 } from "./hooks/useIsVisible/useIsVisible.js";
|
|
217
230
|
import { c as c4 } from "./utils/capitalizeFirstLetter.js";
|
|
218
231
|
import { i as i2 } from "./utils/isValidDate.js";
|
|
219
|
-
import { g as
|
|
220
|
-
import { g as
|
|
221
|
-
import { g as
|
|
222
|
-
import { g as
|
|
223
|
-
import { a as a16, g as
|
|
232
|
+
import { g as g32 } from "./utils/getComponentUtilityClass.js";
|
|
233
|
+
import { g as g33 } from "./utils/getPaletteColor.js";
|
|
234
|
+
import { g as g34 } from "./utils/getTypographyStyles.js";
|
|
235
|
+
import { g as g35 } from "./utils/getIconColor.js";
|
|
236
|
+
import { a as a16, g as g36 } from "./utils/getSizeStyles/getSizeStyles.js";
|
|
224
237
|
import { O as O2 } from "./utils/ObjectQueue.js";
|
|
225
|
-
import { g as
|
|
238
|
+
import { g as g37, a as a17 } from "./utils/getComponentSlotRoot.js";
|
|
226
239
|
import { f } from "./utils/formatDistanceToNow/formatDistanteToNow.js";
|
|
227
|
-
import { g as
|
|
228
|
-
import { g as
|
|
240
|
+
import { g as g38 } from "./utils/getValidDate.js";
|
|
241
|
+
import { g as g39 } from "./utils/getNullGuard.js";
|
|
242
|
+
import { g as g40 } from "./helpers/getStepsAndValidationSchema/getStepsAndValidationSchema.js";
|
|
229
243
|
export {
|
|
230
244
|
A7 as AREAS_DICCTIONARY,
|
|
231
245
|
a3 as AREAS_DICTIONARY_ID,
|
|
@@ -360,7 +374,7 @@ export {
|
|
|
360
374
|
R as Resizable,
|
|
361
375
|
R2 as ResizableBox,
|
|
362
376
|
R4 as Responsive,
|
|
363
|
-
|
|
377
|
+
S21 as SKELETON_SVG_ICON,
|
|
364
378
|
S8 as ScrollBar,
|
|
365
379
|
S as SectionCommercial,
|
|
366
380
|
S4 as Select,
|
|
@@ -371,6 +385,16 @@ export {
|
|
|
371
385
|
S2 as SortCompareValues,
|
|
372
386
|
S3 as SplitLayout,
|
|
373
387
|
S6 as Stack,
|
|
388
|
+
S13 as Step,
|
|
389
|
+
S11 as Stepper,
|
|
390
|
+
S19 as StepperCancelButton,
|
|
391
|
+
S12 as StepperContent,
|
|
392
|
+
S14 as StepperFooter,
|
|
393
|
+
S15 as StepperFooterLeftActions,
|
|
394
|
+
S16 as StepperFooterRightActions,
|
|
395
|
+
S17 as StepperNextButton,
|
|
396
|
+
S18 as StepperPrevButton,
|
|
397
|
+
S20 as StepperSubmitButton,
|
|
374
398
|
T10 as TOGGLE_BUTTON_KEY_COMPONENT,
|
|
375
399
|
a8 as TOGGLE_ICON_BUTTON_CLASS_NAME_SPECIFY,
|
|
376
400
|
T14 as TOGGLE_ICON_BUTTON_KEY_COMPONENT,
|
|
@@ -406,29 +430,30 @@ export {
|
|
|
406
430
|
c as createToaster,
|
|
407
431
|
d as defaultCommonActionsDictionary,
|
|
408
432
|
d2 as dragResizeWindowRNDClasses,
|
|
433
|
+
e3 as evaluateVisibilityStepCondition,
|
|
409
434
|
f as formatDistanceToNow,
|
|
410
435
|
g as getAccountPopoverDictionary,
|
|
411
436
|
g2 as getAppBarDictionary,
|
|
412
437
|
b2 as getAreasComponentsDictionary,
|
|
413
438
|
g3 as getAreasDictionary,
|
|
414
439
|
g4 as getCommonActionsDictionary,
|
|
415
|
-
|
|
440
|
+
g37 as getComponentClasses,
|
|
416
441
|
a17 as getComponentSlotRoot,
|
|
417
|
-
|
|
442
|
+
g32 as getComponentUtilityClass,
|
|
418
443
|
g5 as getDataGridComponentsDictionary,
|
|
419
444
|
g6 as getDataGridRowsFromSet,
|
|
420
445
|
g17 as getDistanceToNowFormatterComponentsDictionary,
|
|
421
446
|
g7 as getDynamicFilterComponentsDictionary,
|
|
422
447
|
a6 as getDynamicSortComponentsDictionary,
|
|
423
448
|
a5 as getFilterGroupFieldsByName,
|
|
424
|
-
|
|
449
|
+
g30 as getFormComponentsDictionary,
|
|
425
450
|
g15 as getFormatConcatenated,
|
|
426
451
|
g12 as getFormatDate,
|
|
427
452
|
g14 as getFormatPoints,
|
|
428
453
|
g16 as getFormatPrice,
|
|
429
454
|
g18 as getFormattersComponentsDictionary,
|
|
430
455
|
a16 as getHeightSizeStyles,
|
|
431
|
-
|
|
456
|
+
g35 as getIconColor,
|
|
432
457
|
g8 as getIsIfInDynamicFilter,
|
|
433
458
|
g22 as getLoadingErrorComponentsDictionary,
|
|
434
459
|
g24 as getMFLoaderComponentsDictionary,
|
|
@@ -437,27 +462,29 @@ export {
|
|
|
437
462
|
g28 as getModalDictionary,
|
|
438
463
|
g26 as getNoItemPrivilegesComponentsDictionary,
|
|
439
464
|
g25 as getNoItemSelectedComponentsDictionary,
|
|
440
|
-
|
|
465
|
+
g39 as getNullGuard,
|
|
441
466
|
g27 as getObjectLogsComponentsDictionary,
|
|
442
467
|
g11 as getPagerComponentsDictionary,
|
|
443
|
-
|
|
468
|
+
g33 as getPaletteColor,
|
|
444
469
|
g21 as getPeriodComponetsDictionary,
|
|
445
470
|
g20 as getRHFAutocompleteAsyncComponentsDictionary,
|
|
446
471
|
g19 as getRHFAutocompleteComponentsDictionary,
|
|
447
472
|
g9 as getRawFiltersForNetwork,
|
|
448
473
|
g10 as getRawSortsForNetwork,
|
|
449
|
-
|
|
450
|
-
|
|
474
|
+
g36 as getSizeStyles,
|
|
475
|
+
g29 as getStepperComponentsDictionary,
|
|
476
|
+
g40 as getStepsAndValidationSchema,
|
|
477
|
+
g34 as getTypographyStyles,
|
|
451
478
|
g13 as getUncertaintyFormat,
|
|
452
|
-
|
|
453
|
-
|
|
479
|
+
g38 as getValidDate,
|
|
480
|
+
g31 as getformAddEditDictionary,
|
|
454
481
|
i as isEqualLayout,
|
|
455
482
|
k as isEqualLayouts,
|
|
456
483
|
i2 as isValidDate,
|
|
457
484
|
r as rhfPeriodStyles,
|
|
458
485
|
t as toggleButtonStyles,
|
|
459
486
|
t2 as toggleIconButtonStyles,
|
|
460
|
-
|
|
487
|
+
u18 as useAppearanceComponentStore,
|
|
461
488
|
u as useAreasStore,
|
|
462
489
|
u2 as useColumnBoolean,
|
|
463
490
|
u11 as useColumnChipStatus,
|
|
@@ -469,24 +496,25 @@ export {
|
|
|
469
496
|
u8 as useColumnPrice,
|
|
470
497
|
u9 as useColumnSetCheck,
|
|
471
498
|
u10 as useColumnUncertanity,
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
499
|
+
u24 as useComponentSize,
|
|
500
|
+
u17 as useCustomForm,
|
|
501
|
+
u29 as useDataGridPersistence,
|
|
502
|
+
u28 as useDynamicFilterAndSort,
|
|
476
503
|
u15 as useDynamicMFParameters,
|
|
477
504
|
a11 as useDynamicMFParametersStore,
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
505
|
+
u19 as useFormAddEdit,
|
|
506
|
+
u22 as useFormFocus,
|
|
507
|
+
u25 as useFormReadyForUpdate,
|
|
481
508
|
u12 as useFormatPeriod,
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
509
|
+
u23 as useInterval,
|
|
510
|
+
u31 as useIsVisible,
|
|
511
|
+
u20 as useModal,
|
|
512
|
+
u30 as usePopoverContainer,
|
|
486
513
|
u13 as usePopupsStore,
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
514
|
+
u26 as useStateRef,
|
|
515
|
+
u16 as useStepper,
|
|
516
|
+
u27 as useSvgColor,
|
|
517
|
+
u21 as useTab,
|
|
490
518
|
u14 as useWindowToolsMF,
|
|
491
519
|
v2 as varBounce,
|
|
492
520
|
v3 as varContainer,
|