@m4l/components 9.3.28 → 9.3.30-JA.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/components/Color/Color.js +32 -131
- package/components/Color/Color.styles.js +6 -124
- package/components/Color/slots/ColorEnum.d.ts +1 -3
- package/components/Color/slots/ColorEnum.js +1 -3
- package/components/Color/slots/ColorSlots.d.ts +3 -18
- package/components/Color/slots/ColorSlots.js +6 -19
- package/components/Color/types.d.ts +6 -7
- package/components/DataGrid/DataGrid.js +1 -1
- package/components/DataGrid/formatters/ColumnColorFormatter/formatter.d.ts +6 -0
- package/components/DataGrid/formatters/ColumnColorFormatter/formatter.js +19 -0
- package/components/DataGrid/formatters/ColumnColorFormatter/index.d.ts +3 -0
- package/components/DataGrid/formatters/ColumnColorFormatter/index.js +1 -0
- package/components/DataGrid/formatters/ColumnColorFormatter/types.d.ts +12 -0
- package/components/DataGrid/formatters/ColumnColorFormatter/types.js +1 -0
- package/components/DataGrid/formatters/ColumnColorFormatter/useColumnColor.d.ts +14 -0
- package/components/DataGrid/formatters/ColumnColorFormatter/useColumnColor.js +22 -0
- package/components/DataGrid/formatters/index.d.ts +1 -0
- package/components/DataGrid/tests/helpers/generators.d.ts +26 -0
- package/components/DataGrid/tests/helpers/types.d.ts +2 -0
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/DynamicFilterBase.js +1 -1
- package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/helpers.d.ts +3 -2
- package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/helpers.js +3 -2
- package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/helpers.d.ts +3 -2
- package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/helpers.js +3 -2
- package/components/DynamicFilter/subcomponents/FieldTypes/FieldTypeInterface.d.ts +3 -4
- package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/helpers.d.ts +3 -2
- package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/helpers.js +3 -2
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectAsyncFilter/helpers.d.ts +3 -2
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectAsyncFilter/helpers.js +3 -2
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/helpers.d.ts +3 -2
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/helpers.js +3 -2
- package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/helpers.d.ts +3 -2
- package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/helpers.js +3 -2
- package/components/DynamicFilter/subcomponents/PopoverFilter/PopoverFilter.js +1 -1
- package/components/DynamicFilter/subcomponents/PopoverFilter/usePopoverFilter.d.ts +1 -7
- package/components/DynamicSort/subcomponents/AppliedSorts/AppliedSorts.js +1 -1
- package/components/DynamicSort/subcomponents/DynamicSortBase/DynamicSortBase.js +1 -1
- package/components/DynamicSort/subcomponents/FieldTypes/FieldTypeInterface.d.ts +2 -3
- package/components/DynamicSort/subcomponents/FieldTypes/StringSort/helpers.d.ts +3 -2
- package/components/DynamicSort/subcomponents/FieldTypes/StringSort/helpers.js +3 -2
- package/components/DynamicSort/subcomponents/PopoverSort/PopoverSort.js +1 -1
- package/components/DynamicSort/subcomponents/PopoverSort/usePopoverSort.d.ts +1 -7
- package/components/Icon/Icon.js +1 -1
- package/components/Image/Image.js +1 -1
- package/components/Image/subcomponents/IntersectComponent/index.js +1 -1
- package/components/ImageText/ImageText.js +1 -1
- package/components/LanguagePopover/LanguagePopover.js +1 -1
- package/components/LinearProgressIndeterminate/LinearProgressIndeterminate.js +1 -1
- package/components/LoadingError/LoadingError.js +1 -1
- package/components/NumberInput/NumberInput.js +1 -1
- package/components/ObjectLogs/subcomponents/ObjectLogsByM4L/ObjectLogsByM4L.js +1 -1
- package/components/ObjectLogs/subcomponents/ObjectLogsByOthers/ObjectLogsByOthers.js +1 -1
- package/components/PDFViewer/PDFViewer.js +1 -1
- package/components/PrintingSystem/PrintingSystem.js +1 -1
- package/components/PropertyValue/PropertyValue.js +1 -1
- package/components/ToastContainer/ToastContainer.js +1 -1
- package/components/WindowBase/WindowBase.js +1 -1
- package/components/WindowConfirm/WindowConfirm.js +1 -1
- package/components/areas/components/AreasAdmin/AreasAdmin.js +1 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.js +4 -3
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.js +4 -3
- package/components/areas/components/AreasViewer/AreasViewer.js +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.js +1 -1
- package/components/areas/contexts/AreasContext/store.js +2 -2
- package/components/commercial/TopBar/TopBar.js +1 -1
- package/components/commercial/TopBar/component/ConteinItem/index.js +1 -1
- package/components/commercial/TopBar/component/ConteinItem/subcomponets/NavItem/index.js +1 -1
- package/components/extended/React-Spinners/PropagateLoaderSpinner/PropagateLoaderSpinner.js +1 -1
- package/components/extended/React-resizable-panels/SplitLayout.js +1 -1
- package/components/formatters/BooleanFormatter/BooleanFormatter.js +1 -1
- package/components/formatters/ColorFormatter/ColorFormatter.d.ts +18 -0
- package/components/formatters/ColorFormatter/ColorFormatter.js +35 -0
- package/components/formatters/ColorFormatter/ColorFormatter.styles.d.ts +2 -0
- package/components/formatters/ColorFormatter/ColorFormatter.styles.js +15 -0
- package/components/formatters/ColorFormatter/constants.d.ts +1 -0
- package/components/formatters/ColorFormatter/constants.js +4 -0
- package/components/formatters/ColorFormatter/index.d.ts +3 -0
- package/components/formatters/ColorFormatter/index.js +1 -0
- package/components/formatters/ColorFormatter/slots/ColorFormatterEnum.d.ts +3 -0
- package/components/formatters/ColorFormatter/slots/ColorFormatterEnum.js +7 -0
- package/components/formatters/ColorFormatter/slots/ColorFormatterSlots.d.ts +4 -0
- package/components/formatters/ColorFormatter/slots/ColorFormatterSlots.js +11 -0
- package/components/formatters/ColorFormatter/types.d.ts +24 -0
- package/components/formatters/ColorFormatter/types.js +1 -0
- package/components/formatters/ConcatenatedFormatter/ConcatenatedFormatter.js +1 -1
- package/components/formatters/DateFormatter/DateFormatter.js +1 -1
- package/components/formatters/DistanceToNowFormatter/DistanceToNowFormatter.js +1 -1
- package/components/formatters/PeriodFormatter/PeriodFormatter.js +1 -1
- package/components/formatters/PointsFormatter/PointsFormatter.js +1 -1
- package/components/formatters/PriceFormatter/PriceFormatter.js +1 -1
- package/components/formatters/UncertaintyFormatter/UncertaintyFormatter.js +1 -1
- package/components/formatters/index.d.ts +1 -0
- package/components/hook-form/RHFColorPicker/RFHColorPicker.js +28 -36
- package/components/hook-form/RHFColorPicker/RHFColorPicker.styles.js +156 -0
- package/components/hook-form/RHFColorPicker/hooks/useColorPicker/index.d.ts +2 -0
- package/components/hook-form/RHFColorPicker/hooks/useColorPicker/types.d.ts +9 -0
- package/components/hook-form/RHFColorPicker/hooks/useColorPicker/useColorPicker.d.ts +41 -0
- package/components/hook-form/RHFColorPicker/hooks/useColorPicker/useColorPicker.js +50 -0
- package/components/hook-form/RHFColorPicker/slots/RHFColorPickerEnum.d.ts +4 -1
- package/components/hook-form/RHFColorPicker/slots/RHFColorPickerEnum.js +3 -0
- package/components/hook-form/RHFColorPicker/slots/RHFColorPickerSlots.d.ts +21 -0
- package/components/hook-form/RHFColorPicker/slots/RHFColorPickerSlots.js +19 -1
- package/components/hook-form/RHFColorPicker/slots/index.js +1 -0
- package/components/hook-form/RHFColorPicker/subcomponents/ColorPickerField/ColorPickerField.d.ts +33 -0
- package/components/hook-form/RHFColorPicker/subcomponents/ColorPickerField/ColorPickerField.js +147 -0
- package/components/hook-form/RHFColorPicker/subcomponents/ColorPickerField/index.d.ts +2 -0
- package/components/hook-form/RHFColorPicker/subcomponents/ColorPickerField/index.js +1 -0
- package/components/hook-form/RHFColorPicker/subcomponents/ColorPickerField/types.d.ts +20 -0
- package/components/hook-form/RHFColorPicker/subcomponents/ColorPickerField/types.js +1 -0
- package/components/hook-form/RHFDateTime/RHFDateTime.js +1 -1
- package/components/hook-form/RHFNumberInput/RHFNumberInput.js +1 -1
- package/components/hook-form/RHFPeriod/RHFPeriod.js +1 -1
- package/components/hook-form/RHFSelect/RHFSelect.js +1 -1
- package/components/hook-form/RHFTextField/RHFTextField.js +1 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/UploadImage.js +1 -1
- package/components/hook-form/RHFUpload/RHFUploadSingleFile/RHFUploadSingleFile.js +1 -1
- package/components/hook-form/RHFormProvider/RHFormProvider.d.ts +31 -0
- package/components/hook-form/RHFormProvider/RHFormProvider.js +93 -0
- package/components/hook-form/RHFormProvider/index.d.ts +4 -0
- package/components/hook-form/RHFormProvider/index.js +1 -0
- package/components/hook-form/RHFormProvider/schema.d.ts +17 -0
- package/components/hook-form/RHFormProvider/schema.js +29 -0
- package/components/hook-form/RHFormProvider/types.d.ts +129 -0
- package/components/hook-form/RHFormProvider/types.js +8 -0
- package/components/hook-form/index.d.ts +1 -0
- package/components/mui_extended/Accordion/Accordion.js +1 -1
- package/components/mui_extended/Avatar/Avatar.js +1 -1
- package/components/mui_extended/Avatar/subcomponents/SkeletonAvatar/index.js +1 -1
- package/components/mui_extended/Badge/Badge.js +1 -1
- package/components/mui_extended/CircularProgress/CircularProgress.js +1 -1
- package/components/mui_extended/DateTimePicker/DateTimePicker.js +1 -1
- package/components/mui_extended/Dialog/Dialog.js +1 -1
- package/components/mui_extended/ImageButton/ImageButton.js +1 -1
- package/components/mui_extended/MenuDivider/MenuDivider.js +1 -1
- package/components/mui_extended/NavLink/NavLink.js +1 -1
- package/components/mui_extended/Popover/Popover.js +1 -1
- package/components/mui_extended/Select/Select.js +1 -1
- package/components/mui_extended/Stack/Stack.js +1 -1
- package/components/mui_extended/TextField/TextField.js +1 -1
- package/components/mui_extended/ToggleButton/ToggleButton.js +1 -1
- package/components/mui_extended/ToggleIconButton/ToggleIconButton.js +1 -1
- package/components/mui_extended/Typography/Typography.js +1 -1
- package/components/popups/components/PopupsViewer/subcomponents/Popup/Popup.js +1 -1
- package/contexts/index.d.ts +3 -3
- package/helpers/getStepsAndValidationSchema/getStepsAndValidationSchema.d.ts +3 -3
- package/helpers/getStepsAndValidationSchema/getStepsAndValidationSchema.js +3 -3
- package/helpers/getStepsAndValidationSchema/types.d.ts +5 -4
- package/hooks/index.d.ts +1 -0
- package/hooks/useDynamicFilterAndSort/useDynamicFilterAndSort.js +1 -1
- package/hooks/useFormAddEdit/index.d.ts +1 -1
- package/hooks/useWatchTyped/index.d.ts +1 -0
- package/hooks/useWatchTyped/index.js +1 -0
- package/hooks/useWatchTyped/types.d.ts +11 -0
- package/hooks/useWatchTyped/useTypedWatch.d.ts +9 -0
- package/hooks/useWatchTyped/useTypedWatch.js +30 -0
- package/index.js +94 -77
- package/package.json +2 -2
- package/test/getNameDataTestId.js +2 -2
- package/components/hook-form/RHFormContext/index.d.ts +0 -120
- package/components/hook-form/RHFormContext/index.js +0 -91
- package/components/hook-form/RHFormContext/types.d.ts +0 -83
- package/hooks/useFormReadyForUpdate/types.d.ts +0 -8
- /package/components/hook-form/{RHFormContext → RHFormProvider}/classes/constants.d.ts +0 -0
- /package/components/hook-form/{RHFormContext → RHFormProvider}/classes/constants.js +0 -0
- /package/components/hook-form/{RHFormContext → RHFormProvider}/classes/index.d.ts +0 -0
- /package/components/hook-form/{RHFormContext → RHFormProvider}/classes/index.js +0 -0
- /package/components/hook-form/{RHFormContext → RHFormProvider}/classes/types.d.ts +0 -0
- /package/components/hook-form/{RHFormContext → RHFormProvider}/dictionary.d.ts +0 -0
- /package/components/hook-form/{RHFormContext → RHFormProvider}/dictionary.js +0 -0
- /package/components/hook-form/{RHFormContext → RHFormProvider}/styles.d.ts +0 -0
- /package/components/hook-form/{RHFormContext → RHFormProvider}/styles.js +0 -0
- /package/components/hook-form/{RHFormContext → RHFormProvider}/subcomponents/FormActions/index.d.ts +0 -0
- /package/components/hook-form/{RHFormContext → RHFormProvider}/subcomponents/FormActions/skeleton.d.ts +0 -0
- /package/components/hook-form/{RHFormContext → RHFormProvider}/subcomponents/FormActions/styles.d.ts +0 -0
- /package/components/hook-form/{RHFormContext → RHFormProvider}/subcomponents/FormActions/types.d.ts +0 -0
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { GetLabelType } from '@m4l/core';
|
|
2
2
|
import { Formatters } from '@m4l/graphics';
|
|
3
3
|
import { DataTypeFilerLabels, FilterField, FilterFieldApplied, FilterValue, FormFilterValueBoolean, InitialFilterApplied } from '../../../types';
|
|
4
|
-
import { IFieldType
|
|
4
|
+
import { IFieldType } from '../FieldTypeInterface';
|
|
5
5
|
import { BooleanFilter } from './index';
|
|
6
|
+
import { ValidationSchema } from '../../../../hook-form/RHFormProvider';
|
|
6
7
|
/**
|
|
7
8
|
* BooleanFilterHelpers es una clase que implementa la interfaz IFieldType
|
|
8
9
|
* para manejar filtros booleanos en un componente de filtro dinámico.
|
|
@@ -28,7 +29,7 @@ export declare class BooleanFilterHelpers implements IFieldType<FormFilterValueB
|
|
|
28
29
|
/**
|
|
29
30
|
* getschema devuelve un esquema de validación para el filtro booleano.
|
|
30
31
|
*/
|
|
31
|
-
getSchema(getLabel: GetLabelType):
|
|
32
|
+
getSchema(getLabel: GetLabelType): ValidationSchema<FormFilterValueBoolean>;
|
|
32
33
|
/**
|
|
33
34
|
* verifyFilter verifica si el filtro es válido.
|
|
34
35
|
*/
|
|
@@ -2,6 +2,7 @@ import * as Yup from "yup";
|
|
|
2
2
|
import { B as BOOLEAN_OPERATORS } from "../../../constants.js";
|
|
3
3
|
import { B as BooleanFilter } from "./index.js";
|
|
4
4
|
import { D as DYNAMIC_FILTER_DICTIONARY_ID, a as DICCTIONARY } from "../../../dictionary.js";
|
|
5
|
+
import { c as createValidationSchema, a as createValidationFullObject, b as createValidationPartialObject } from "../../../../hook-form/RHFormProvider/schema.js";
|
|
5
6
|
class BooleanFilterHelpers {
|
|
6
7
|
getComponent() {
|
|
7
8
|
return BooleanFilter;
|
|
@@ -79,10 +80,10 @@ class BooleanFilterHelpers {
|
|
|
79
80
|
* getschema devuelve un esquema de validación para el filtro booleano.
|
|
80
81
|
*/
|
|
81
82
|
getSchema(getLabel) {
|
|
82
|
-
return
|
|
83
|
+
return createValidationSchema(createValidationFullObject(createValidationPartialObject({
|
|
83
84
|
formValueOperator: Yup.object().nullable().required(getLabel(DICCTIONARY.error_operator_required)),
|
|
84
85
|
formValueOperand1: Yup.object().nullable().required(getLabel(DICCTIONARY.error_operand_required))
|
|
85
|
-
});
|
|
86
|
+
})));
|
|
86
87
|
}
|
|
87
88
|
/**
|
|
88
89
|
* verifyFilter verifica si el filtro es válido.
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { GetLabelType } from '@m4l/core';
|
|
2
2
|
import { Formatters } from '@m4l/graphics';
|
|
3
3
|
import { DataTypeFilerLabels, FilterField, FilterFieldApplied, FilterValue, FormFilterValueDateTime, InitialFilterApplied } from '../../../types';
|
|
4
|
-
import { IFieldType
|
|
4
|
+
import { IFieldType } from '../FieldTypeInterface';
|
|
5
5
|
import { DateTimeFilter } from './index';
|
|
6
|
+
import { ValidationSchema } from '../../../../hook-form/RHFormProvider';
|
|
6
7
|
/**
|
|
7
8
|
* DateTimeFilterHelpers es una clase que implementa la interfaz IFieldType
|
|
8
9
|
*/
|
|
@@ -27,7 +28,7 @@ export declare class DateTimeFilterHelpers implements IFieldType<FormFilterValue
|
|
|
27
28
|
/**
|
|
28
29
|
* getschema devuelve el esquema de validación de Yup para un filtro de fecha y hora.
|
|
29
30
|
*/
|
|
30
|
-
getSchema(getLabel: GetLabelType):
|
|
31
|
+
getSchema(getLabel: GetLabelType): ValidationSchema<FormFilterValueDateTime>;
|
|
31
32
|
/**
|
|
32
33
|
* verifyFilter verifica si un filtro de fecha y hora es válido.
|
|
33
34
|
*/
|
|
@@ -4,6 +4,7 @@ import { D as DYNAMIC_FILTER_DICTIONARY_ID, a as DICCTIONARY } from "../../../di
|
|
|
4
4
|
import { D as DateTimeFilter } from "./index.js";
|
|
5
5
|
import { startOfDay, endOfDay } from "date-fns";
|
|
6
6
|
import { i as isValidDate } from "../../../../../utils/isValidDate.js";
|
|
7
|
+
import { c as createValidationSchema, a as createValidationFullObject, b as createValidationPartialObject } from "../../../../hook-form/RHFormProvider/schema.js";
|
|
7
8
|
class DateTimeFilterHelpers {
|
|
8
9
|
getComponent() {
|
|
9
10
|
return DateTimeFilter;
|
|
@@ -109,7 +110,7 @@ class DateTimeFilterHelpers {
|
|
|
109
110
|
* getschema devuelve el esquema de validación de Yup para un filtro de fecha y hora.
|
|
110
111
|
*/
|
|
111
112
|
getSchema(getLabel) {
|
|
112
|
-
return
|
|
113
|
+
return createValidationSchema(createValidationFullObject(createValidationPartialObject({
|
|
113
114
|
formValueOperator: Yup.object().nullable().required(getLabel(DICCTIONARY.error_operator_required)),
|
|
114
115
|
formValueOperand1: Yup.date().required(getLabel(DICCTIONARY.error_invalid_date)).typeError(getLabel(DICCTIONARY.error_invalid_date)),
|
|
115
116
|
formValueOperand2: Yup.mixed().when(["formValueOperator.id"], {
|
|
@@ -119,7 +120,7 @@ class DateTimeFilterHelpers {
|
|
|
119
120
|
getLabel(DICCTIONARY.error_invalid_date)
|
|
120
121
|
)
|
|
121
122
|
})
|
|
122
|
-
});
|
|
123
|
+
})));
|
|
123
124
|
}
|
|
124
125
|
/**
|
|
125
126
|
* verifyFilter verifica si un filtro de fecha y hora es válido.
|
|
@@ -2,18 +2,17 @@ import { GetLabelType } from '@m4l/core';
|
|
|
2
2
|
import { Formatters } from '@m4l/graphics';
|
|
3
3
|
import { FC } from 'react';
|
|
4
4
|
import { DataTypeFilerLabels, FilterField, FilterFieldApplied, FilterValue, InitialFilterApplied } from '../../types';
|
|
5
|
-
import
|
|
6
|
-
export type YupSchema = Yup.SchemaOf<any>;
|
|
5
|
+
import { RHFormValues, ValidationSchema } from '../../../hook-form/RHFormProvider/types';
|
|
7
6
|
/**
|
|
8
7
|
* Interface para crear los helpers de cada tipo de campo
|
|
9
8
|
*/
|
|
10
|
-
export interface IFieldType<T> {
|
|
9
|
+
export interface IFieldType<T extends RHFormValues> {
|
|
11
10
|
getComponent(): FC<{
|
|
12
11
|
[key: string]: any;
|
|
13
12
|
}>;
|
|
14
13
|
getDefaultFilter(field: FilterField, fixed: boolean): FilterFieldApplied;
|
|
15
14
|
getLabels(filter: FilterFieldApplied, getLabel: GetLabelType, formatters: Formatters, field: FilterField): DataTypeFilerLabels;
|
|
16
|
-
getSchema(getLabel: GetLabelType):
|
|
15
|
+
getSchema(getLabel: GetLabelType): ValidationSchema<T>;
|
|
17
16
|
getFormValue(field: FilterField, getLabel: GetLabelType, filterValue?: FilterValue): T;
|
|
18
17
|
getFilterFromFormValue(formFilterValue: T): FilterValue;
|
|
19
18
|
verifyFilter(filter: InitialFilterApplied, field?: FilterField): boolean;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { GetLabelType } from '@m4l/core';
|
|
2
2
|
import { Formatters } from '@m4l/graphics';
|
|
3
3
|
import { DataTypeFilerLabels, FilterField, FilterFieldApplied, FilterValue, FormFilterValueNumber, InitialFilterApplied } from '../../../types';
|
|
4
|
-
import { IFieldType
|
|
4
|
+
import { IFieldType } from '../FieldTypeInterface';
|
|
5
5
|
import { NumberFilter } from './index';
|
|
6
|
+
import { ValidationSchema } from '../../../../hook-form/RHFormProvider/types';
|
|
6
7
|
/**
|
|
7
8
|
* NumberFilterHelpers es una clase que implementa la interfaz IFieldType
|
|
8
9
|
*/
|
|
@@ -27,7 +28,7 @@ export declare class NumberFilterHelpers implements IFieldType<FormFilterValueNu
|
|
|
27
28
|
/**
|
|
28
29
|
* getSchema devuelve el esquema de validación para el filtro.
|
|
29
30
|
*/
|
|
30
|
-
getSchema(getLabel: GetLabelType):
|
|
31
|
+
getSchema(getLabel: GetLabelType): ValidationSchema<FormFilterValueNumber>;
|
|
31
32
|
/**
|
|
32
33
|
* verifyFilter verifica si el filtro es válido.
|
|
33
34
|
*/
|
|
@@ -2,6 +2,7 @@ import * as Yup from "yup";
|
|
|
2
2
|
import { N as NUMBER_OPERATORS } from "../../../constants.js";
|
|
3
3
|
import { N as NumberFilter } from "./index.js";
|
|
4
4
|
import { D as DYNAMIC_FILTER_DICTIONARY_ID, a as DICCTIONARY } from "../../../dictionary.js";
|
|
5
|
+
import { c as createValidationSchema, a as createValidationFullObject, b as createValidationPartialObject } from "../../../../hook-form/RHFormProvider/schema.js";
|
|
5
6
|
class NumberFilterHelpers {
|
|
6
7
|
getComponent() {
|
|
7
8
|
return NumberFilter;
|
|
@@ -93,7 +94,7 @@ class NumberFilterHelpers {
|
|
|
93
94
|
* getSchema devuelve el esquema de validación para el filtro.
|
|
94
95
|
*/
|
|
95
96
|
getSchema(getLabel) {
|
|
96
|
-
return
|
|
97
|
+
return createValidationSchema(createValidationFullObject(createValidationPartialObject({
|
|
97
98
|
formValueOperator: Yup.object().nullable().required(getLabel(DICCTIONARY.error_operator_required)),
|
|
98
99
|
formValueOperand1: Yup.number().typeError(
|
|
99
100
|
getLabel(DICCTIONARY.error_operand_mustbe_number)
|
|
@@ -105,7 +106,7 @@ class NumberFilterHelpers {
|
|
|
105
106
|
getLabel(DICCTIONARY.error_less_than_start)
|
|
106
107
|
)
|
|
107
108
|
})
|
|
108
|
-
});
|
|
109
|
+
})));
|
|
109
110
|
}
|
|
110
111
|
/**
|
|
111
112
|
* verifyFilter verifica si el filtro es válido.
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { GetLabelType } from '@m4l/core';
|
|
2
2
|
import { Formatters } from '@m4l/graphics';
|
|
3
3
|
import { DataTypeFilerLabels, FilterField, FilterFieldApplied, FilterValue, FilterValueSelectAsync, FormFilterValueSelectAsync, OperandSelectAsync, InitialFilterApplied } from '../../../types';
|
|
4
|
-
import { IFieldType
|
|
4
|
+
import { IFieldType } from '../FieldTypeInterface';
|
|
5
5
|
import { SelectAsyncFilter } from './index';
|
|
6
|
+
import { ValidationSchema } from '../../../../hook-form/RHFormProvider/types';
|
|
6
7
|
/**
|
|
7
8
|
* Filtra los valores de operandArray para que solo tengan valores validos
|
|
8
9
|
* @param operandsArray valores del OperandsArray
|
|
@@ -34,7 +35,7 @@ export declare class SelectAsyncFilterHelpers implements IFieldType<FormFilterVa
|
|
|
34
35
|
/**
|
|
35
36
|
* getschema devuelve el esquema de validación de Yup para el filtro.
|
|
36
37
|
*/
|
|
37
|
-
getSchema(getLabel: GetLabelType):
|
|
38
|
+
getSchema(getLabel: GetLabelType): ValidationSchema<FormFilterValueSelectAsync>;
|
|
38
39
|
/**
|
|
39
40
|
* verifyFilter verifica si el filtro es válido.
|
|
40
41
|
*/
|
|
@@ -2,6 +2,7 @@ import * as Yup from "yup";
|
|
|
2
2
|
import { S as SELECT_ASYNC_OPERATORS_MULTIPLE, c as SELECT_ASYNC_OPERATORS_SINGLE } from "../../../constants.js";
|
|
3
3
|
import { S as SelectAsyncFilter } from "./index.js";
|
|
4
4
|
import { D as DYNAMIC_FILTER_DICTIONARY_ID, a as DICCTIONARY } from "../../../dictionary.js";
|
|
5
|
+
import { c as createValidationSchema, a as createValidationFullObject, b as createValidationPartialObject } from "../../../../hook-form/RHFormProvider/schema.js";
|
|
5
6
|
function filterValidOperandsArraySelectAsync(operandsArray, field) {
|
|
6
7
|
const operandsArrayFormatted = Array.isArray(operandsArray) ? operandsArray : [operandsArray];
|
|
7
8
|
const getOptionId = field?.selectAsyncOptions?.getOptionId;
|
|
@@ -147,7 +148,7 @@ class SelectAsyncFilterHelpers {
|
|
|
147
148
|
* getschema devuelve el esquema de validación de Yup para el filtro.
|
|
148
149
|
*/
|
|
149
150
|
getSchema(getLabel) {
|
|
150
|
-
return
|
|
151
|
+
return createValidationSchema(createValidationFullObject(createValidationPartialObject({
|
|
151
152
|
formValueOperator: Yup.object().nullable().required(getLabel(DICCTIONARY.error_operator_required)),
|
|
152
153
|
formValueOperandsArray: Yup.mixed().when(["multiple"], {
|
|
153
154
|
is: true,
|
|
@@ -157,7 +158,7 @@ class SelectAsyncFilterHelpers {
|
|
|
157
158
|
is: false,
|
|
158
159
|
then: Yup.object().nullable().required(getLabel(DICCTIONARY.error_operand_required))
|
|
159
160
|
})
|
|
160
|
-
});
|
|
161
|
+
})));
|
|
161
162
|
}
|
|
162
163
|
/**
|
|
163
164
|
* verifyFilter verifica si el filtro es válido.
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { GetLabelType } from '@m4l/core';
|
|
2
2
|
import { Formatters } from '@m4l/graphics';
|
|
3
3
|
import { DataTypeFilerLabels, FilterField, FilterFieldApplied, FilterValue, FilterValueSelect, FormFilterValueSelect, OperandSelect, InitialFilterApplied } from '../../../types';
|
|
4
|
-
import { IFieldType
|
|
4
|
+
import { IFieldType } from '../FieldTypeInterface';
|
|
5
5
|
import { SelectFilter } from './index';
|
|
6
|
+
import { ValidationSchema } from '../../../../hook-form/RHFormProvider';
|
|
6
7
|
/**
|
|
7
8
|
* Filtra los valores de operandArray para que solo tengan valores validos
|
|
8
9
|
* @param operandsArray valores del OperandsArray
|
|
@@ -35,7 +36,7 @@ export declare class SelectFilterHelpers implements IFieldType<FormFilterValueSe
|
|
|
35
36
|
/**
|
|
36
37
|
* getSchema devuelve el esquema de validación de Yup para un filtro de selección.
|
|
37
38
|
*/
|
|
38
|
-
getSchema(getLabel: GetLabelType):
|
|
39
|
+
getSchema(getLabel: GetLabelType): ValidationSchema<FormFilterValueSelect>;
|
|
39
40
|
/**
|
|
40
41
|
* TODO: Documentar
|
|
41
42
|
*/
|
|
@@ -2,6 +2,7 @@ import * as Yup from "yup";
|
|
|
2
2
|
import { d as SELECT_OPERATORS_MULTIPLE, e as SELECT_OPERATORS_SINGLE } from "../../../constants.js";
|
|
3
3
|
import { S as SelectFilter } from "./index.js";
|
|
4
4
|
import { D as DYNAMIC_FILTER_DICTIONARY_ID, a as DICCTIONARY } from "../../../dictionary.js";
|
|
5
|
+
import { c as createValidationSchema, a as createValidationFullObject, b as createValidationPartialObject } from "../../../../hook-form/RHFormProvider/schema.js";
|
|
5
6
|
function filterValidOperandsArraySelect(operandsArray, _field) {
|
|
6
7
|
const operandsArrayFormatted = Array.isArray(operandsArray) ? operandsArray : [operandsArray];
|
|
7
8
|
return operandsArrayFormatted?.filter((operand) => {
|
|
@@ -145,7 +146,7 @@ class SelectFilterHelpers {
|
|
|
145
146
|
* getSchema devuelve el esquema de validación de Yup para un filtro de selección.
|
|
146
147
|
*/
|
|
147
148
|
getSchema(getLabel) {
|
|
148
|
-
return
|
|
149
|
+
return createValidationSchema(createValidationFullObject(createValidationPartialObject({
|
|
149
150
|
formValueOperator: Yup.object().nullable().required(getLabel(DICCTIONARY.error_operator_required)),
|
|
150
151
|
formValueOperandsArray: Yup.mixed().when(["multiple"], {
|
|
151
152
|
is: true,
|
|
@@ -161,7 +162,7 @@ class SelectFilterHelpers {
|
|
|
161
162
|
}
|
|
162
163
|
).required(getLabel(DICCTIONARY.error_operand_required))
|
|
163
164
|
})
|
|
164
|
-
});
|
|
165
|
+
})));
|
|
165
166
|
}
|
|
166
167
|
/**
|
|
167
168
|
* TODO: Documentar
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { GetLabelType } from '@m4l/core';
|
|
2
2
|
import { Formatters } from '@m4l/graphics';
|
|
3
3
|
import { DataTypeFilerLabels, FilterField, FilterFieldApplied, FilterValue, FormFilterValueString, InitialFilterApplied } from '../../../types';
|
|
4
|
-
import { IFieldType
|
|
4
|
+
import { IFieldType } from '../FieldTypeInterface';
|
|
5
5
|
import { StringFilter } from './index';
|
|
6
|
+
import { ValidationSchema } from '../../../../hook-form/RHFormProvider/types';
|
|
6
7
|
/**
|
|
7
8
|
* StringFilterHelpers es una clase que implementa la interfaz IFieldType
|
|
8
9
|
*/
|
|
@@ -27,7 +28,7 @@ export declare class StringFilterHelpers implements IFieldType<FormFilterValueSt
|
|
|
27
28
|
/**
|
|
28
29
|
* getSchema devuelve el esquema de validación para el filtro de cadena.
|
|
29
30
|
*/
|
|
30
|
-
getSchema(getLabel: GetLabelType):
|
|
31
|
+
getSchema(getLabel: GetLabelType): ValidationSchema<FormFilterValueString>;
|
|
31
32
|
/**
|
|
32
33
|
* getFilterValue devuelve el valor del filtro.
|
|
33
34
|
*/
|
|
@@ -2,6 +2,7 @@ import * as Yup from "yup";
|
|
|
2
2
|
import { f as STRING_OPERATORS } from "../../../constants.js";
|
|
3
3
|
import { D as DYNAMIC_FILTER_DICTIONARY_ID, a as DICCTIONARY } from "../../../dictionary.js";
|
|
4
4
|
import { S as StringFilter } from "./index.js";
|
|
5
|
+
import { c as createValidationSchema, a as createValidationFullObject, b as createValidationPartialObject } from "../../../../hook-form/RHFormProvider/schema.js";
|
|
5
6
|
class StringFilterHelpers {
|
|
6
7
|
getComponent() {
|
|
7
8
|
return StringFilter;
|
|
@@ -74,12 +75,12 @@ class StringFilterHelpers {
|
|
|
74
75
|
* getSchema devuelve el esquema de validación para el filtro de cadena.
|
|
75
76
|
*/
|
|
76
77
|
getSchema(getLabel) {
|
|
77
|
-
return
|
|
78
|
+
return createValidationSchema(createValidationFullObject(createValidationPartialObject({
|
|
78
79
|
formValueOperator: Yup.object().nullable().required(getLabel(DICCTIONARY.error_operator_required)),
|
|
79
80
|
formValueOperand1: Yup.string().required(
|
|
80
81
|
getLabel(DICCTIONARY.error_operand_required)
|
|
81
82
|
)
|
|
82
|
-
});
|
|
83
|
+
})));
|
|
83
84
|
}
|
|
84
85
|
/**
|
|
85
86
|
* getFilterValue devuelve el valor del filtro.
|
|
@@ -2,7 +2,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { D as DataTypeComponent } from "../FieldTypes/DataTypeComponent.js";
|
|
3
3
|
import { u as usePopoverFilter } from "./usePopoverFilter.js";
|
|
4
4
|
import { P as PopoverStyled, h as PopoverContainerFieldsStyled, i as PopoverHeaderActionsStyled } from "../../slots/dynamicFilterSlots.js";
|
|
5
|
-
import { R as RHFormProvider } from "../../../hook-form/
|
|
5
|
+
import { R as RHFormProvider } from "../../../hook-form/RHFormProvider/RHFormProvider.js";
|
|
6
6
|
import { W as WindowBase } from "../../../WindowBase/WindowBase.js";
|
|
7
7
|
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/ActionCancel.js";
|
|
8
8
|
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/ActionIntro.js";
|
|
@@ -16,13 +16,7 @@ declare function usePopoverFilter(): {
|
|
|
16
16
|
onClose: () => void;
|
|
17
17
|
filterFormValue: FormFilterValue;
|
|
18
18
|
formFilter: FormFilterFieldApplied;
|
|
19
|
-
popupValidationSchema: import('
|
|
20
|
-
[x: string]: import('yup').ObjectSchema</*elided*/ any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape</*elided*/ any>, import('yup/lib/object').AssertsShape</*elided*/ any>> | import('yup').BaseSchema<any, import('yup/lib/object').AnyObject, any> | import('yup').ArraySchema<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown> | import('yup/lib/Lazy').default<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown>, import('yup/lib/object').AnyObject>, import('yup/lib/types').AnyObject, unknown[] | undefined, unknown[] | undefined> | import('yup/lib/Lazy').default<import('yup').ObjectSchema</*elided*/ any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape</*elided*/ any>, import('yup/lib/object').AssertsShape</*elided*/ any>>, any>;
|
|
21
|
-
}, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape<{
|
|
22
|
-
[x: string]: import('yup').ObjectSchema</*elided*/ any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape</*elided*/ any>, import('yup/lib/object').AssertsShape</*elided*/ any>> | import('yup').BaseSchema<any, import('yup/lib/object').AnyObject, any> | import('yup').ArraySchema<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown> | import('yup/lib/Lazy').default<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown>, import('yup/lib/object').AnyObject>, import('yup/lib/types').AnyObject, unknown[] | undefined, unknown[] | undefined> | import('yup/lib/Lazy').default<import('yup').ObjectSchema</*elided*/ any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape</*elided*/ any>, import('yup/lib/object').AssertsShape</*elided*/ any>>, any>;
|
|
23
|
-
}>, import('yup/lib/object').AssertsShape<{
|
|
24
|
-
[x: string]: import('yup').ObjectSchema</*elided*/ any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape</*elided*/ any>, import('yup/lib/object').AssertsShape</*elided*/ any>> | import('yup').BaseSchema<any, import('yup/lib/object').AnyObject, any> | import('yup').ArraySchema<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown> | import('yup/lib/Lazy').default<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown>, import('yup/lib/object').AnyObject>, import('yup/lib/types').AnyObject, unknown[] | undefined, unknown[] | undefined> | import('yup/lib/Lazy').default<import('yup').ObjectSchema</*elided*/ any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape</*elided*/ any>, import('yup/lib/object').AssertsShape</*elided*/ any>>, any>;
|
|
25
|
-
}>> | undefined;
|
|
19
|
+
popupValidationSchema: import('../../..').ValidationSchema<import('../../types').FormFilterValueBoolean> | undefined;
|
|
26
20
|
statusLoad: "initial" | "reload_values_provider" | "ready";
|
|
27
21
|
};
|
|
28
22
|
export default usePopoverFilter;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { a as getPropDataTestId } from "../../../../test/getNameDataTestId.js";
|
|
3
3
|
import { D as DYNAMIC_SORT_KEY_COMPONENT } from "../../constants.js";
|
|
4
4
|
import { D as DynamicSortSlots } from "../../slots/SlotsEnum.js";
|
|
5
5
|
import { u as useDynamicSortBase } from "../DynamicSortBase/useDynamicSortBase.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { a as getPropDataTestId } from "../../../../test/getNameDataTestId.js";
|
|
3
3
|
import { a as getComponentSlotRoot } from "../../../../utils/getComponentSlotRoot.js";
|
|
4
4
|
import { D as DYNAMIC_SORT_KEY_COMPONENT } from "../../constants.js";
|
|
5
5
|
import { u as useDynamicSortBase } from "./useDynamicSortBase.js";
|
|
@@ -2,8 +2,7 @@ import { GetLabelType } from '@m4l/core';
|
|
|
2
2
|
import { Formatters } from '@m4l/graphics';
|
|
3
3
|
import { FC } from 'react';
|
|
4
4
|
import { DataTypeFilerLabels, FormSortValueBase, InitialSortApplied, SortField, SortFieldApplied, SortValue } from '../../types';
|
|
5
|
-
import
|
|
6
|
-
export type YupSchema = Yup.SchemaOf<any>;
|
|
5
|
+
import { ValidationSchema } from '../../../hook-form/RHFormProvider/types';
|
|
7
6
|
/**
|
|
8
7
|
* Interface para crear los helpers de cada tipo de campo
|
|
9
8
|
*/
|
|
@@ -13,7 +12,7 @@ export interface IFieldType {
|
|
|
13
12
|
}>;
|
|
14
13
|
getDefaultSort(field: SortField, fixed: boolean): SortFieldApplied;
|
|
15
14
|
getLabels(Sort: SortFieldApplied, getLabel: GetLabelType, formatters: Formatters, field: SortField): DataTypeFilerLabels;
|
|
16
|
-
getSchema(getLabel: GetLabelType):
|
|
15
|
+
getSchema(getLabel: GetLabelType): ValidationSchema<FormSortValueBase>;
|
|
17
16
|
getFormValue(field: SortField, getLabel: GetLabelType, sortValue?: SortValue): FormSortValueBase;
|
|
18
17
|
getSortFromFormValue(formSortValue: FormSortValueBase): SortValue;
|
|
19
18
|
verifySort(Sort: InitialSortApplied, field?: SortField): boolean;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { GetLabelType } from '@m4l/core';
|
|
2
2
|
import { Formatters } from '@m4l/graphics';
|
|
3
3
|
import { DataTypeFilerLabels, FormSortValueBase, InitialSortApplied, SortField, SortFieldApplied, SortValue } from '../../../types';
|
|
4
|
-
import { IFieldType
|
|
4
|
+
import { IFieldType } from '../FieldTypeInterface';
|
|
5
5
|
import { StringSort } from './index';
|
|
6
|
+
import { ValidationSchema } from '../../../../hook-form/RHFormProvider/types';
|
|
6
7
|
/**
|
|
7
8
|
* Clase que implementa los métodos necesarios para el tipo de campo string
|
|
8
9
|
*/
|
|
@@ -27,7 +28,7 @@ export declare class SortHelpers implements IFieldType {
|
|
|
27
28
|
/**
|
|
28
29
|
* getSchema obtiene el esquema de un campo de tipo string
|
|
29
30
|
*/
|
|
30
|
-
getSchema(getLabel: GetLabelType):
|
|
31
|
+
getSchema(getLabel: GetLabelType): ValidationSchema<FormSortValueBase>;
|
|
31
32
|
/**
|
|
32
33
|
* verifySort verifica si un campo de tipo string es válido
|
|
33
34
|
*/
|
|
@@ -2,6 +2,7 @@ import * as Yup from "yup";
|
|
|
2
2
|
import { O as OPERATORS } from "../../../constants.js";
|
|
3
3
|
import { g as getDynamicSortDictionary } from "../../../dictionary.js";
|
|
4
4
|
import { S as StringSort } from "./index.js";
|
|
5
|
+
import { c as createValidationSchema, a as createValidationFullObject, b as createValidationPartialObject } from "../../../../hook-form/RHFormProvider/schema.js";
|
|
5
6
|
class SortHelpers {
|
|
6
7
|
getComponent() {
|
|
7
8
|
return StringSort;
|
|
@@ -59,9 +60,9 @@ class SortHelpers {
|
|
|
59
60
|
* getSchema obtiene el esquema de un campo de tipo string
|
|
60
61
|
*/
|
|
61
62
|
getSchema(getLabel) {
|
|
62
|
-
return
|
|
63
|
+
return createValidationSchema(createValidationFullObject(createValidationPartialObject({
|
|
63
64
|
formValueOperator: Yup.string().required(getLabel(`dynamic_Sort.error_operator_required`))
|
|
64
|
-
});
|
|
65
|
+
})));
|
|
65
66
|
}
|
|
66
67
|
/**
|
|
67
68
|
* verifySort verifica si un campo de tipo string es válido
|
|
@@ -3,7 +3,7 @@ import { u as useDynamicSortBase } from "../DynamicSortBase/useDynamicSortBase.j
|
|
|
3
3
|
import { D as DataTypeComponent } from "../FieldTypes/DataTypeComponent.js";
|
|
4
4
|
import { u as usePopoverSort } from "./usePopoverSort.js";
|
|
5
5
|
import { e as PopoverStyled, f as PopoverContainerFieldsStyled, g as PopoverHeaderActionsStyled } from "../../slots/DynamicSortSlots.js";
|
|
6
|
-
import { R as RHFormProvider } from "../../../hook-form/
|
|
6
|
+
import { R as RHFormProvider } from "../../../hook-form/RHFormProvider/RHFormProvider.js";
|
|
7
7
|
import { W as WindowBase } from "../../../WindowBase/WindowBase.js";
|
|
8
8
|
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/ActionCancel.js";
|
|
9
9
|
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/ActionIntro.js";
|
|
@@ -16,13 +16,7 @@ declare function usePopoverSort(): {
|
|
|
16
16
|
onClose: () => void;
|
|
17
17
|
sortFormValue: import('../../types').FormSortValueBase;
|
|
18
18
|
formSort: FormSortFieldApplied;
|
|
19
|
-
popupValidationSchema: import('
|
|
20
|
-
[x: string]: import('yup').ObjectSchema</*elided*/ any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape</*elided*/ any>, import('yup/lib/object').AssertsShape</*elided*/ any>> | import('yup').BaseSchema<any, import('yup/lib/object').AnyObject, any> | import('yup').ArraySchema<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown> | import('yup/lib/Lazy').default<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown>, import('yup/lib/object').AnyObject>, import('yup/lib/types').AnyObject, unknown[] | undefined, unknown[] | undefined> | import('yup/lib/Lazy').default<import('yup').ObjectSchema</*elided*/ any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape</*elided*/ any>, import('yup/lib/object').AssertsShape</*elided*/ any>>, any>;
|
|
21
|
-
}, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape<{
|
|
22
|
-
[x: string]: import('yup').ObjectSchema</*elided*/ any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape</*elided*/ any>, import('yup/lib/object').AssertsShape</*elided*/ any>> | import('yup').BaseSchema<any, import('yup/lib/object').AnyObject, any> | import('yup').ArraySchema<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown> | import('yup/lib/Lazy').default<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown>, import('yup/lib/object').AnyObject>, import('yup/lib/types').AnyObject, unknown[] | undefined, unknown[] | undefined> | import('yup/lib/Lazy').default<import('yup').ObjectSchema</*elided*/ any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape</*elided*/ any>, import('yup/lib/object').AssertsShape</*elided*/ any>>, any>;
|
|
23
|
-
}>, import('yup/lib/object').AssertsShape<{
|
|
24
|
-
[x: string]: import('yup').ObjectSchema</*elided*/ any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape</*elided*/ any>, import('yup/lib/object').AssertsShape</*elided*/ any>> | import('yup').BaseSchema<any, import('yup/lib/object').AnyObject, any> | import('yup').ArraySchema<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown> | import('yup/lib/Lazy').default<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown>, import('yup/lib/object').AnyObject>, import('yup/lib/types').AnyObject, unknown[] | undefined, unknown[] | undefined> | import('yup/lib/Lazy').default<import('yup').ObjectSchema</*elided*/ any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape</*elided*/ any>, import('yup/lib/object').AssertsShape</*elided*/ any>>, any>;
|
|
25
|
-
}>> | undefined;
|
|
19
|
+
popupValidationSchema: import('../../..').ValidationSchema<import('../../types').FormSortValueBase> | undefined;
|
|
26
20
|
statusLoad: "initial" | "reload_values_provider" | "ready";
|
|
27
21
|
};
|
|
28
22
|
export default usePopoverSort;
|
package/components/Icon/Icon.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useModuleSkeleton } from "@m4l/core";
|
|
3
3
|
import clsx from "clsx";
|
|
4
|
-
import {
|
|
4
|
+
import { a as getPropDataTestId } from "../../test/getNameDataTestId.js";
|
|
5
5
|
import { I as ICON_PREFIX, a as ICON_KEY_COMPONENT } from "./constants.js";
|
|
6
6
|
import { g as getComponentClasses, a as getComponentSlotRoot } from "../../utils/getComponentSlotRoot.js";
|
|
7
7
|
import { u as useComponentSize } from "../../hooks/useComponentSize/useComponentSize.js";
|
|
@@ -4,7 +4,7 @@ import { useModuleSkeleton } from "@m4l/core";
|
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { L as LazyLoadComponent } from "./subcomponents/LazyLoadComponent/index.js";
|
|
6
6
|
import { D as DivContainerSkeletonStyled, I as ImgSkeleton, a as ImgStyled } from "./slots/ImageSlots.js";
|
|
7
|
-
import {
|
|
7
|
+
import { a as getPropDataTestId } from "../../test/getNameDataTestId.js";
|
|
8
8
|
import { s as svgDataUriSkeleton, I as IMAGE_CLASSES, a as IMAGE_KEY_COMPONENT } from "./constant.js";
|
|
9
9
|
import { I as ImageSlots } from "./slots/ImageEnum.js";
|
|
10
10
|
function Image(props) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useState, useRef, useImperativeHandle, useEffect } from "react";
|
|
3
3
|
import { b as IntersectComponentStyled } from "../../slots/ImageSlots.js";
|
|
4
|
-
import {
|
|
4
|
+
import { a as getPropDataTestId } from "../../../../test/getNameDataTestId.js";
|
|
5
5
|
import { a as IMAGE_KEY_COMPONENT } from "../../constant.js";
|
|
6
6
|
import { I as ImageSlots } from "../../slots/ImageEnum.js";
|
|
7
7
|
const checkIntersections = (entries) => {
|
|
@@ -4,7 +4,7 @@ import { I as ImageTextContainerRoot, a as ImageContainerStyled, b as ImgStyled,
|
|
|
4
4
|
import { I as IMG_ALT, a as IMAGE_TEXT_CLASSES, b as IMAGE_TEXT_KEY_COMPONENT } from "./constants.js";
|
|
5
5
|
import { clsx } from "clsx";
|
|
6
6
|
import { useRef } from "react";
|
|
7
|
-
import {
|
|
7
|
+
import { a as getPropDataTestId } from "../../test/getNameDataTestId.js";
|
|
8
8
|
import { u as useIsVisible } from "../../hooks/useIsVisible/useIsVisible.js";
|
|
9
9
|
import { u as useComponentSize } from "../../hooks/useComponentSize/useComponentSize.js";
|
|
10
10
|
const ImageText = (props) => {
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState, useEffect } from "react";
|
|
3
3
|
import { useFirstRender, useLocales } from "@m4l/graphics";
|
|
4
4
|
import { useEnvironment, useNetwork } from "@m4l/core";
|
|
5
|
-
import {
|
|
5
|
+
import { a as getPropDataTestId } from "../../test/getNameDataTestId.js";
|
|
6
6
|
import { a as getComponentSlotRoot } from "../../utils/getComponentSlotRoot.js";
|
|
7
7
|
import { I as Image } from "../Image/Image.js";
|
|
8
8
|
import { L as LanguagePopoverRootStyled, P as PaperStyled } from "./slots/LanguagePopoverSlots.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { a as getPropDataTestId } from "../../test/getNameDataTestId.js";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { a as getComponentSlotRoot } from "../../utils/getComponentSlotRoot.js";
|
|
5
5
|
import { L as LINEAR_PROGRESS_INDETERMINATE_KEY_COMPONENT } from "./constants.js";
|
|
@@ -2,7 +2,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
3
3
|
import { L as LoadingErrorRootStyled, a as LoadingErrorStyled, b as LinearProgressIndeterminateStyled, c as LoadingErrorContainerStyled, d as LoadingErrorContentStyled, e as LoadingErrorImageStyled, f as LoadingErrorTextContainerStyled, g as LoadingErrorTitleDescriptionStyled, h as LoadingErrorDividerStyled, i as LoadingErrorButtonContainerStyled, j as LoadingErrorRecommendationTextStyled } from "./slots/LoadingErrorSlots.js";
|
|
4
4
|
import { a as getComponentSlotRoot } from "../../utils/getComponentSlotRoot.js";
|
|
5
|
-
import {
|
|
5
|
+
import { a as getPropDataTestId } from "../../test/getNameDataTestId.js";
|
|
6
6
|
import { L as LOADING_ERROR_KEY_COMPONENT } from "./constants.js";
|
|
7
7
|
import clsx from "clsx";
|
|
8
8
|
import { d as dictionary } from "./dictionary.js";
|
|
@@ -3,7 +3,7 @@ import clsx from "clsx";
|
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
4
|
import { useEnvironment, useModuleSkeleton } from "@m4l/core";
|
|
5
5
|
import { g as getComponentClasses } from "../../utils/getComponentSlotRoot.js";
|
|
6
|
-
import {
|
|
6
|
+
import { a as getPropDataTestId } from "../../test/getNameDataTestId.js";
|
|
7
7
|
import { u as useNumberInput } from "./hooks/useNumberInput/useNumberInput.js";
|
|
8
8
|
import { S as SkeletonStyled, R as RootStyled, I as InputStyled, C as ContainButtonsAdornmentStyled, a as ContainerButtonsStyled, b as IncrementButtonStyled, D as DecrementButtonStyled } from "./slots/NumberInputSlots.js";
|
|
9
9
|
import { N as NUMBER_INPUT_KEY_COMPONENT } from "./constants.js";
|
|
@@ -6,7 +6,7 @@ import { C as ContainerWrapperStyled, G as GridWrapperStyled } from "../../slots
|
|
|
6
6
|
import { usePaginate } from "@m4l/graphics";
|
|
7
7
|
import { u as useObjectLogsColumns } from "../../hooks/useObjectLogsColumns.js";
|
|
8
8
|
import { a as OBJECT_LOGS_M4L_END_POINT, O as OBJECT_LOGS_KEY_COMPONENT } from "../../constants.js";
|
|
9
|
-
import {
|
|
9
|
+
import { a as getPropDataTestId } from "../../../../test/getNameDataTestId.js";
|
|
10
10
|
import { u as useFilterAndSort } from "../../hooks/useFilterAndSort.js";
|
|
11
11
|
import { O as ObjectLogsSlots } from "../../slots/ObjectLogsEnum.js";
|
|
12
12
|
function ObjectLogsByM4L(props) {
|
|
@@ -6,7 +6,7 @@ import { C as ContainerWrapperStyled, G as GridWrapperStyled } from "../../slots
|
|
|
6
6
|
import { useRows } from "@m4l/graphics";
|
|
7
7
|
import { u as useObjectLogsColumns } from "../../hooks/useObjectLogsColumns.js";
|
|
8
8
|
import { b as OBJECT_LOGS_OTHERS_END_POINT, O as OBJECT_LOGS_KEY_COMPONENT } from "../../constants.js";
|
|
9
|
-
import {
|
|
9
|
+
import { a as getPropDataTestId } from "../../../../test/getNameDataTestId.js";
|
|
10
10
|
import { u as useFilterAndSort } from "../../hooks/useFilterAndSort.js";
|
|
11
11
|
import { O as ObjectLogsSlots } from "../../slots/ObjectLogsEnum.js";
|
|
12
12
|
function ObjectLogsByOthers(props) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { a as getComponentSlotRoot } from "../../utils/getComponentSlotRoot.js";
|
|
3
|
-
import {
|
|
3
|
+
import { a as getPropDataTestId } from "../../test/getNameDataTestId.js";
|
|
4
4
|
import { P as PDFViewerRootStyled, a as PreviewPDFStyled } from "./slots/PDFViewerSlots.js";
|
|
5
5
|
import { P as PDFViewerSlots } from "./slots/PDFViewerEnum.js";
|
|
6
6
|
import { P as PDF_VIEWER_KEY_COMPONENT } from "./constants.js";
|
|
@@ -7,7 +7,7 @@ import { P as PrintingSystemRootStyled } from "./slots/PrintingSystemSlots.js";
|
|
|
7
7
|
import { a as getComponentSlotRoot } from "../../utils/getComponentSlotRoot.js";
|
|
8
8
|
import { P as PRINTING_SYSTEM_KEY_COMPONENT } from "./constants.js";
|
|
9
9
|
import { P as PrintingSystemSlots } from "./slots/PrintingSystemEnum.js";
|
|
10
|
-
import {
|
|
10
|
+
import { a as getPropDataTestId } from "../../test/getNameDataTestId.js";
|
|
11
11
|
import clsx from "clsx";
|
|
12
12
|
const PrintingSystem = forwardRef((props, ref) => {
|
|
13
13
|
const { templateData: nodeRoot, sourceData, size = "medium", variant = "body", className, dataTestId } = props;
|
|
@@ -3,7 +3,7 @@ import React, { useId } from "react";
|
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.js";
|
|
5
5
|
import { T as TEST_PROPS_DATA, C as COMPONENT_PREFIX, P as PROPERTY_VALUE_KEY_COMPONENT } from "./constants.js";
|
|
6
|
-
import {
|
|
6
|
+
import { g as getNameDataTestId, a as getPropDataTestId } from "../../test/getNameDataTestId.js";
|
|
7
7
|
import { P as PropertyValueRootStyled, N as NameStyled, V as ValueStyled } from "./slots/PropertyValueSlots.js";
|
|
8
8
|
import { a as getComponentSlotRoot } from "../../utils/getComponentSlotRoot.js";
|
|
9
9
|
import { u as useComponentSize } from "../../hooks/useComponentSize/useComponentSize.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { ToastContainer as ToastContainer$1 } from "react-toastify";
|
|
3
3
|
import { D as DEFAULT_CLOSE_TIME, T as TOAST_KEY_COMPONENT } from "./constants.js";
|
|
4
|
-
import {
|
|
4
|
+
import { a as getPropDataTestId } from "../../test/getNameDataTestId.js";
|
|
5
5
|
import { ModuleSkeletonProvider } from "@m4l/core";
|
|
6
6
|
import { R as RootStyled } from "./slots/toastContainerSlots.js";
|
|
7
7
|
import { T as ToastContainerSlots } from "./slots/ToastContainerEnum.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { u as useComponentSize } from "../../hooks/useComponentSize/useComponentSize.js";
|
|
3
3
|
import { A as AppearanceComponentProvider } from "../../contexts/AppearanceComponentContext/AppearanceComponentContext.js";
|
|
4
|
-
import {
|
|
4
|
+
import { a as getPropDataTestId } from "../../test/getNameDataTestId.js";
|
|
5
5
|
import { W as WINDOW_BASE_KEY_COMPONENT } from "./constants.js";
|
|
6
6
|
import { a as getComponentSlotRoot } from "../../utils/getComponentSlotRoot.js";
|
|
7
7
|
import clsx from "clsx";
|
|
@@ -2,7 +2,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { u as useModal } from "../../hooks/useModal/index.js";
|
|
3
3
|
import { useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
4
4
|
import { A as AppearanceComponentProvider } from "../../contexts/AppearanceComponentContext/AppearanceComponentContext.js";
|
|
5
|
-
import {
|
|
5
|
+
import { a as getPropDataTestId } from "../../test/getNameDataTestId.js";
|
|
6
6
|
import { W as WINDOW_CONFIRM_KEY_COMPONENT } from "./constants.js";
|
|
7
7
|
import { a as getComponentSlotRoot } from "../../utils/getComponentSlotRoot.js";
|
|
8
8
|
import clsx from "clsx";
|