@m4l/components 3.1.7 → 3.1.9
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/export.d.ts +0 -3
- package/@types/types.d.ts +29 -11
- package/components/DynamicSort/constants.d.ts +12 -0
- package/components/DynamicSort/slots/DynamicSortSlots.d.ts +84 -0
- package/components/DynamicSort/slots/SlotsEnum.d.ts +30 -0
- package/components/DynamicSort/slots/index.d.ts +2 -0
- package/components/DynamicSort/types.d.ts +183 -0
- package/components/FieldLabel/types.d.ts +1 -0
- package/components/ObjectLogs/types.d.ts +1 -1
- package/components/areas/contexts/AreasContext/helper.d.ts +3 -0
- package/components/hook-form/RHFTextField/constant.d.ts +1 -0
- package/components/hook-form/RHFTextField/index.d.ts +0 -1
- package/components/hook-form/RHFTextField/slots/RHFTextFieldEnum.d.ts +7 -0
- package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +18 -0
- package/components/hook-form/RHFTextField/slots/index.d.ts +2 -0
- package/components/hook-form/RHFTextField/subcomponents/Skeleton/types.d.ts +3 -4
- package/components/hook-form/RHFTextField/types.d.ts +11 -3
- package/helpers/cookies/cookies.d.ts +4 -0
- package/helpers/cookies/index.d.ts +1 -0
- package/helpers/cookies/types.d.ts +42 -0
- package/index.js +180 -340
- package/node_modules-CQtkw0uG.js +7350 -0
- package/package.json +1 -1
- package/styles/DynamicSort.styles.d.ts +2 -0
- package/styles/MenuActions.styles.d.ts +1 -1
- package/styles/RHFTextField.styles.d.ts +2 -0
- package/utils/index.d.ts +1 -1
- package/vendor-BDLrgGjq.js +24692 -0
- package/components/AccountPopover/index-Dm2-k-Mv.js +0 -334
- package/components/AppBar/index-i0rhG3J1.js +0 -93
- package/components/BaseModule/index-CiNNlxzS.js +0 -30
- package/components/CommonActions/components/ActionCancel/index-CIdpDXkr.js +0 -12
- package/components/CommonActions/components/ActionFormCancel/index-CpyASN3q.js +0 -56
- package/components/CommonActions/components/ActionFormIntro/index-7KKtcUra.js +0 -33
- package/components/CommonActions/components/ActionIntro/index-CqqDZZcG.js +0 -25
- package/components/CommonActions/components/Actions/index-CuG1pnXW.js +0 -70
- package/components/DataGrid/constants-8L7QgBKi.js +0 -10
- package/components/DataGrid/formatters/ColumnBooleanFormatter/index-CveSCbq_.js +0 -26
- package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/index-CHqvieM2.js +0 -22
- package/components/DataGrid/formatters/ColumnDateFormatter/index-CKg8CJ6A.js +0 -19
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/index-DE6bwaKP.js +0 -23
- package/components/DataGrid/formatters/ColumnNestedValueFormatter/index-BslXGK-A.js +0 -14
- package/components/DataGrid/formatters/ColumnPointsFormatter/index-BXGW2CsK.js +0 -10
- package/components/DataGrid/formatters/ColumnPriceFormatter/index-O11tBykn.js +0 -10
- package/components/DataGrid/formatters/ColumnSetCheckFormatter/index-BaCawLr1.js +0 -36
- package/components/DataGrid/formatters/ColumnUncertaintyFormatter/index-Cq7a-jnE.js +0 -10
- package/components/DataGrid/formatters/index-CrZXPa0e.js +0 -13
- package/components/DataGrid/index-BZ-lbmuU.js +0 -908
- package/components/DataGrid/subcomponents/Actions/index-CHvPZ4Ru.js +0 -549
- package/components/DataGrid/subcomponents/editors/TextEditor/index-BIFm8akr.js +0 -80
- package/components/DragResizeWindow/index-D2jLYExo.js +0 -505
- package/components/DynamicFilter/constants-ByqmFATV.js +0 -31
- package/components/DynamicFilter/dictionary-PrbXU3VZ.js +0 -51
- package/components/DynamicFilter/index-DZiJc9h7.js +0 -116
- package/components/DynamicFilter/slots/SlotsEnum-cawFeNzx.js +0 -34
- package/components/DynamicFilter/slots/dynamicFilterSlots-DHxelhXP.js +0 -151
- package/components/DynamicFilter/slots/index-l0sNRNKZ.js +0 -1
- package/components/DynamicFilter/store/index-BT-eWVnJ.js +0 -254
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/index-B32bAzi-.js +0 -60
- package/components/DynamicFilter/subcomponents/AppliedFilters/index-Bha19drV.js +0 -26
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/index-BmvzoHit.js +0 -40
- package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/index-BcO3SlP5.js +0 -129
- package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/index-BCJhpNS8.js +0 -171
- package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/index-DCNhz68u.js +0 -153
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/index-BdypjM1Y.js +0 -146
- package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/index-D-NFIVnK.js +0 -114
- package/components/DynamicFilter/subcomponents/FieldTypes/index-BwQHJqk9.js +0 -38
- package/components/DynamicFilter/subcomponents/FilterActions/index-B9UWmk07.js +0 -88
- package/components/DynamicFilter/subcomponents/InputFilter/index-CfGb1TfV.js +0 -188
- package/components/DynamicFilter/subcomponents/PopoverFilter/index-DkfRGrlO.js +0 -158
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/index-DSegwAm2.js +0 -63
- package/components/FieldLabel/index-CI57EizR.js +0 -54
- package/components/GridLayout/index-C4HyxNYX.js +0 -1044
- package/components/GridLayout/subcomponents/Griditem/index-C7jT4s8t.js +0 -395
- package/components/GridLayout/subcomponents/Responsive/index-BKcU2OnF.js +0 -348
- package/components/GridLayout/subcomponents/SizeProvider/index-1aJ-e_54.js +0 -71
- package/components/HelperText/index-Crn_XIPF.js +0 -50
- package/components/Icon/index-C89MAkeH.js +0 -176
- package/components/Image/index-COp8vP0X.js +0 -175
- package/components/LanguagePopover/index-BA2Igs9L.js +0 -179
- package/components/LinearProgressIndeterminate/index-BwI756Mb.js +0 -55
- package/components/Loadable/index-BMbi9ISF.js +0 -9
- package/components/LoadingError/index-Cf0oGUrL.js +0 -89
- package/components/MFIsolationApp/index-V4R55hNU.js +0 -169
- package/components/MFLoader/index-BI8vQZSH.js +0 -299
- package/components/ModalDialog/index-CEVQBQ7W.js +0 -77
- package/components/NavLink/index-D1S_vtFO.js +0 -55
- package/components/NoItemSelected/index-B9oM26AX.js +0 -54
- package/components/ObjectLogs/index-CiXOJpS4.js +0 -233
- package/components/PDFViewer/index-GVN2rfd6.js +0 -51
- package/components/Page/index-DZMkYmr4.js +0 -117
- package/components/PaperForm/index-DwgAfjci.js +0 -59
- package/components/Period/index-2pJG3VmY.js +0 -238
- package/components/PrintingSystem/index-B2qcnfw0.js +0 -187
- package/components/PrintingSystem/subcomponents/BodyNode/index-Cv2aoy8S.js +0 -49
- package/components/PrintingSystem/subcomponents/ChartNode/index-BmJm8v_C.js +0 -105
- package/components/PrintingSystem/subcomponents/DividerNode/index-MpFhE-H0.js +0 -20
- package/components/PrintingSystem/subcomponents/FooterNode/index-ZEcWdMSM.js +0 -49
- package/components/PrintingSystem/subcomponents/GridNode/index-SsKax2xu.js +0 -74
- package/components/PrintingSystem/subcomponents/HeaderNode/index-Cs8TOOBL.js +0 -49
- package/components/PrintingSystem/subcomponents/PaperNode/index-DBb25Ecg.js +0 -30
- package/components/PrintingSystem/subcomponents/PropertyValueNode/index-CTVn7J9Q.js +0 -47
- package/components/PrintingSystem/subcomponents/SectionNode/index-iYPM3EaS.js +0 -49
- package/components/PrintingSystem/subcomponents/TextBoxNode/index-DGjXCFKJ.js +0 -24
- package/components/PropertyValue/index-Bh-Jnrte.js +0 -264
- package/components/Resizeable/index-DdP1xfE9.js +0 -20
- package/components/ScrollBar/index-f2URPPE2.js +0 -35
- package/components/ScrollToTop/index-TxORk5dB.js +0 -12
- package/components/SideBar/index-PUBBe0yH.js +0 -758
- package/components/SplitLayout/index-Bu1hcO6G.js +0 -89
- package/components/ToastContainer/index-DK1d8NNd.js +0 -191
- package/components/WrapperComponent/index-BHV-CsDU.js +0 -14
- package/components/animate/LoadingScreen/index-CkVLOrMz.js +0 -70
- package/components/animate/MotionContainer/index-eartnWyO.js +0 -34
- package/components/animate/MotionLazyContainer/index-Be8osTiG.js +0 -9
- package/components/animate/PropagateLoader/index-Bkq8V2SN.js +0 -23
- package/components/animate/features-BbnE33u3.js +0 -5
- package/components/animate/index-BsWiJfzp.js +0 -89
- package/components/animate/variants/bounce-DanQqHAX.js +0 -101
- package/components/animate/variants/container-Dmpr6tg5.js +0 -22
- package/components/animate/variants/fade-CAOJNn06.js +0 -65
- package/components/animate/variants/index-l0sNRNKZ.js +0 -1
- package/components/animate/variants/transition-B9W5SWTa.js +0 -20
- package/components/areas/components/AreasAdmin/index-OxQU3P8Y.js +0 -699
- package/components/areas/components/AreasViewer/index-DQ0aPioP.js +0 -805
- package/components/areas/components/index-l0sNRNKZ.js +0 -1
- package/components/areas/constants-rqODZNZe.js +0 -6
- package/components/areas/contexts/AreasContext/index-BqRlA7JA.js +0 -1110
- package/components/areas/contexts/DynamicMFParmsContext/index-22c6E7vK.js +0 -36
- package/components/areas/contexts/WindowToolsMFContext/index-DkE30fhm.js +0 -12
- package/components/areas/contexts/index-l0sNRNKZ.js +0 -1
- package/components/areas/dictionary-YUsP9beq.js +0 -36
- package/components/areas/hooks/index-l0sNRNKZ.js +0 -1
- package/components/areas/hooks/useAreas/index-BSbwbJLS.js +0 -11
- package/components/areas/hooks/useDynamicMFParameters/index-DhbcZPs9.js +0 -12
- package/components/areas/hooks/useSetWindowsTitle/useSetWindowsTitle-BzPD-miW.js +0 -31
- package/components/areas/hooks/useWindowToolsMF/index-BECQfhbC.js +0 -10
- package/components/areas/icons-CwFr-alN.js +0 -24
- package/components/areas/index-B_Odny9h.js +0 -22
- package/components/commercial/AppBarCommercial/index-CHq3P3GY.js +0 -28
- package/components/commercial/SectionCommercial/index-BeABGtdr.js +0 -56
- package/components/commercial/TopBar/index-F1repmti.js +0 -232
- package/components/commercial/index-CxDzs6Ax.js +0 -81
- package/components/formatters/BooleanFormatter/index-DktIidqW.js +0 -44
- package/components/formatters/DateFormatter/index-CGcRZ8BA.js +0 -43
- package/components/formatters/PointsFormatter/index-C7sR8iqk.js +0 -25
- package/components/formatters/PriceFormatter/index-CsvRawmc.js +0 -35
- package/components/formatters/UncertaintyFormatter/index-B9ESVEVp.js +0 -29
- package/components/formatters/index-pnJhDYKe.js +0 -109
- package/components/hook-form/HelperError/index-BVnmUazV.js +0 -19
- package/components/hook-form/RHFAutocomplete/index-BtPL16HR.js +0 -657
- package/components/hook-form/RHFAutocompleteAsync/index-BfzjLHG8.js +0 -226
- package/components/hook-form/RHFCheckbox/index-Vyttu8Vx.js +0 -132
- package/components/hook-form/RHFColorPicker/index-Cxxb5Wa_.js +0 -191
- package/components/hook-form/RHFDateTime/index-CW1Slb-f.js +0 -190
- package/components/hook-form/RHFMultiCheckbox/index-BARudV1A.js +0 -34
- package/components/hook-form/RHFPeriod/index-r-HeIOoZ.js +0 -98
- package/components/hook-form/RHFRadioGroup/index-CTD-0zKo.js +0 -52
- package/components/hook-form/RHFSelect/index-LdwRuFz-.js +0 -29
- package/components/hook-form/RHFTextField/classes/constants.d.ts +0 -1
- package/components/hook-form/RHFTextField/classes/index.d.ts +0 -8
- package/components/hook-form/RHFTextField/classes/types.d.ts +0 -17
- package/components/hook-form/RHFTextField/index-B6ufruSB.js +0 -337
- package/components/hook-form/RHFTextField/styles.d.ts +0 -3
- package/components/hook-form/RHFTextField/subcomponents/Skeleton/styles.d.ts +0 -3
- package/components/hook-form/RHFTextField/tests/constants.d.ts +0 -3
- package/components/hook-form/RHFTextField/tests/utils.d.ts +0 -2
- package/components/hook-form/RHFUpload/index-CDPbm8NR.js +0 -253
- package/components/maps/components/GpsTools/index-5MXlhIEt.js +0 -1948
- package/components/maps/components/Map/index-2Lx5ARXa.js +0 -2546
- package/components/maps/index-Ci-7-FHg.js +0 -7
- package/components/modal/WindowBase-Gd27v5FU.js +0 -44
- package/components/modal/WindowConfirm-u6vAMFo7.js +0 -73
- package/components/modal/index-CydPIpKZ.js +0 -65
- package/components/mui_extended/Accordion/index-DMLYJL7o.js +0 -124
- package/components/mui_extended/Avatar/index-ClBa-6eF.js +0 -64
- package/components/mui_extended/Badge/index-zI-F_Qkq.js +0 -29
- package/components/mui_extended/BoxIcon/index-BUTJ2tKw.js +0 -22
- package/components/mui_extended/Breadcrumbs/index-DTS7rOZH.js +0 -86
- package/components/mui_extended/Button/index-CGfZbaea.js +0 -222
- package/components/mui_extended/CheckBox-BXUrbonB.js +0 -76
- package/components/mui_extended/CircularProgress/index-Bnnti_G6.js +0 -8
- package/components/mui_extended/IconButton/classes/constants-ChY2jKkp.js +0 -4
- package/components/mui_extended/IconButton/classes/index-BxjJGAqZ.js +0 -45
- package/components/mui_extended/IconButton/index-CusYFjie.js +0 -97
- package/components/mui_extended/IconButton/styledIconButton-fAsbGoFS.js +0 -7
- package/components/mui_extended/LinearProgress/index-CGgW8jq2.js +0 -9
- package/components/mui_extended/LinkWithRoute/index-BC2miUjR.js +0 -15
- package/components/mui_extended/MenuActions/MenuActions-C6CjSU6C.js +0 -149
- package/components/mui_extended/MenuActions/constants-BwsU9chA.js +0 -10
- package/components/mui_extended/MenuActions/dictionary-Dj_07puT.js +0 -11
- package/components/mui_extended/MenuActions/slots/MenuActionsEnum-Bu-L6eWU.js +0 -13
- package/components/mui_extended/MenuActions/slots/MenuActionsSlots-D65KZAKF.js +0 -46
- package/components/mui_extended/Pager/index-DCbxiTZA.js +0 -257
- package/components/mui_extended/Popover/index-DfrJAQkV.js +0 -153
- package/components/mui_extended/Stack/index-DzEeCYfp.js +0 -31
- package/components/mui_extended/Tab/index-Bu3dPidV.js +0 -129
- package/components/mui_extended/ToggleButton/index-C9cBkT1V.js +0 -18
- package/components/mui_extended/ToggleIconButton/index--0b3Td6C.js +0 -26
- package/components/mui_extended/Tooltip/index-B8QUytCK.js +0 -42
- package/components/mui_extended/Typography/index-Cf_4Zw8f.js +0 -54
- package/components/mui_extended/index-l0sNRNKZ.js +0 -1
- package/components/popups/PopupsProvider/index-DhSxmtfJ.js +0 -172
- package/components/popups/PopupsViewer/constants-DuyD7aCn.js +0 -4
- package/components/popups/PopupsViewer/icons-BUujqqbu.js +0 -7
- package/components/popups/PopupsViewer/index-BecevSns.js +0 -172
- package/components/popups/PopupsViewer/slots/index-B98CiRLa.js +0 -14
- package/components/popups/PopupsViewer/slots/popupsViewerSlots-BXH77nCF.js +0 -46
- package/components/popups/index-l0sNRNKZ.js +0 -1
- package/contexts/ModalContext/index-CPfNnfTL.js +0 -39
- package/contexts/RHFormContext/index-D_nK759o.js +0 -78
- package/hocs/withToggle/index-C1_DMZD3.js +0 -14
- package/hooks/useFormAddEdit/index-D9oSjUn1.js +0 -90
- package/hooks/useFormReadyForUpdate/index-B3HygFCM.js +0 -20
- package/hooks/useModal/index-BJSQOX3U.js +0 -10
- package/hooks/useSizeContainer/index-D4hDjM1P.js +0 -37
- package/hooks/useStateRef/index-C3P6ZK3m.js +0 -15
- package/hooks/useTab/index-B_GEQFOP.js +0 -12
- package/react-data-grid-BfYuZ6AK.js +0 -2606
- package/react-draggable-DsCPdgQP.js +0 -811
- package/react-json-view-bhqIAaNg.js +0 -2576
- package/react-resizable-eBbFl2dX.js +0 -618
- package/react-spinners-TpKN9lZg.js +0 -123
- package/react-splitter-layout-C-JTsNGs.js +0 -158
- package/styles/DynamicFilter-CJFsIegc.js +0 -319
- package/styles/MenuActions-lTi-ynPM.js +0 -42
- package/styles/index-DKj6m8SL.js +0 -1691
- package/test/constants_no_mock-CF-669v-.js +0 -4
- package/test/getNameDataTestId-BaBTWhBr.js +0 -10
- package/utils/index-DiMrtgIu.js +0 -502
- /package/components/GridLayout/subcomponents/{Griditem → GridItem}/index.d.ts +0 -0
- /package/components/GridLayout/subcomponents/{Griditem → GridItem}/types.d.ts +0 -0
package/@types/export.d.ts
CHANGED
|
@@ -14,9 +14,6 @@ declare module '@mui/material/styles' {
|
|
|
14
14
|
M4LDragResizeWindow?: {
|
|
15
15
|
styleOverrides?: ComponentsOverrides<Theme>['M4LDragResizeWindow'];
|
|
16
16
|
};
|
|
17
|
-
M4LRHFTextField?: {
|
|
18
|
-
styleOverrides?: ComponentsOverrides<Theme>['M4LRHFTextField'];
|
|
19
|
-
};
|
|
20
17
|
M4LRHFTextFieldPassword?: {
|
|
21
18
|
styleOverrides?: ComponentsOverrides<Theme>['M4LRHFTextFieldPassword'];
|
|
22
19
|
};
|
package/@types/types.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { ComponentsOverrides, ComponentsVariants, Theme as MuiTheme } from '@mui/material/styles';
|
|
2
|
-
|
|
2
|
+
import {
|
|
3
|
+
RHFTextFieldSlotsType,
|
|
4
|
+
RHFTextFieldOwnerState,
|
|
5
|
+
} from '../components/hook-form/RHFTextField/types';
|
|
3
6
|
import { DynamicFilterSlotsType, DynamicFilterOwnerState } from '../components/DynamicFilter/types';
|
|
7
|
+
import { DynamicSortSlotsType, DynamicSortOwnerState } from '../components/DynamicSort/types';
|
|
4
8
|
import {
|
|
5
9
|
MenuActionsOwnerState,
|
|
6
10
|
MenuActionsSlotsType,
|
|
@@ -25,6 +29,8 @@ declare module '@mui/material/styles' {
|
|
|
25
29
|
// Define the slots in the theme
|
|
26
30
|
interface ComponentNameToClassKey {
|
|
27
31
|
M4LDynamicFilter: DynamicFilterSlotsType;
|
|
32
|
+
RHFTextField: RHFTextFieldSlotsType;
|
|
33
|
+
M4LDynamicSort: DynamicSortSlotsType;
|
|
28
34
|
M4LMenuActions: MenuActionsSlotsType;
|
|
29
35
|
M4LRHFInputNumberSpinner: RHFInputNumberSpinnerSlotsType;
|
|
30
36
|
M4LPopupsViewer: PopupViewerSlotsType;
|
|
@@ -34,6 +40,8 @@ declare module '@mui/material/styles' {
|
|
|
34
40
|
interface ComponentsPropsList {
|
|
35
41
|
// Extend ComponentsProps or ComponentsOwnerState(this extend ComponentProps)
|
|
36
42
|
M4LDynamicFilter: Partial<DynamicFilterOwnerState>;
|
|
43
|
+
RHFTextField: Partial<RHFTextFieldOwnerState>;
|
|
44
|
+
M4LDynamicSort: Partial<DynamicSortOwnerState>;
|
|
37
45
|
M4LMenuActions: Partial<MenuActionsOwnerState>;
|
|
38
46
|
M4LRHFInputNumberSpinner: Partial<RHFInputNumberSpinnerOwnerState>;
|
|
39
47
|
M4LPopupsViewer: Partial<PopupsViewerOwnerState>;
|
|
@@ -46,6 +54,16 @@ declare module '@mui/material/styles' {
|
|
|
46
54
|
styleOverrides?: ComponentsOverrides<Theme>['M4LDynamicFilter'];
|
|
47
55
|
variants?: ComponentsVariants['M4LDynamicFilter'];
|
|
48
56
|
};
|
|
57
|
+
RHFTextField?: {
|
|
58
|
+
defaultProps?: ComponentsPropsList['RHFTextField'];
|
|
59
|
+
styleOverrides?: ComponentsOverrides<Theme>['RHFTextField'];
|
|
60
|
+
variants?: ComponentsVariants['RHFTextField'];
|
|
61
|
+
};
|
|
62
|
+
M4LDynamicSort?: {
|
|
63
|
+
defaultProps?: ComponentsPropsList['M4LDynamicSort'];
|
|
64
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LDynamicSort'];
|
|
65
|
+
variants?: ComponentsVariants['M4LDynamicSort'];
|
|
66
|
+
};
|
|
49
67
|
M4LMenuActions?: {
|
|
50
68
|
defaultProps?: ComponentsPropsList['M4LMenuActions'];
|
|
51
69
|
styleOverrides?: ComponentsOverrides<Theme>['M4LMenuActions'];
|
|
@@ -55,16 +73,16 @@ declare module '@mui/material/styles' {
|
|
|
55
73
|
defaultProps?: ComponentsPropsList['M4LRHFInputNumberSpinner'];
|
|
56
74
|
styleOverrides?: ComponentsOverrides<Theme>['M4LRHFInputNumberSpinner'];
|
|
57
75
|
variants?: ComponentsVariants['M4LRHFInputNumberSpinner'];
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
76
|
+
};
|
|
77
|
+
M4LPopupsViewer?: {
|
|
78
|
+
defaultProps?: ComponentsPropsList['M4LPopupsViewer'];
|
|
79
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LPopupsViewer'];
|
|
80
|
+
variants?: ComponentsVariants['M4LPopupsViewer'];
|
|
81
|
+
};
|
|
82
|
+
M4LToastContainer?: {
|
|
83
|
+
defaultProps?: ComponentsPropsList['M4LToastContainer'];
|
|
84
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LToastContainer'];
|
|
85
|
+
variants?: ComponentsVariants['M4LToastContainer'];
|
|
68
86
|
};
|
|
69
87
|
}
|
|
70
88
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Operator, StringOperator } from './types';
|
|
2
|
+
export declare const DYNAMIC_SORT_KEY_COMPONENT = "M4LDynamicSort";
|
|
3
|
+
export declare const ASSETS_URL = "frontend/components/Dynamic_sort/assets/icons";
|
|
4
|
+
export declare const ASSETS: {
|
|
5
|
+
readonly refresh: "restart.svg";
|
|
6
|
+
readonly sort: "sort.svg";
|
|
7
|
+
readonly close: "close.svg";
|
|
8
|
+
readonly list_bulleted: "list_bulleted.svg";
|
|
9
|
+
readonly clean: "clean.svg";
|
|
10
|
+
};
|
|
11
|
+
export declare const SORT_OPERATORS: Array<StringOperator>;
|
|
12
|
+
export declare const OPERATORS: Array<Operator>;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const RootStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown> & {
|
|
3
|
+
ownerState: Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown>;
|
|
4
|
+
}, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement>>, {}>;
|
|
5
|
+
export declare const InnerContainerStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown> & {
|
|
6
|
+
ownerState: Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown>;
|
|
7
|
+
}, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement>>, {}>;
|
|
8
|
+
export declare const InputSortStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown> & {
|
|
9
|
+
ownerState: Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown>;
|
|
10
|
+
}, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement>>, {}>;
|
|
11
|
+
export declare const InputSortInputStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown> & {
|
|
12
|
+
ownerState: Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown>;
|
|
13
|
+
}, Pick<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, keyof import("react").ClassAttributes<HTMLInputElement> | keyof import("react").InputHTMLAttributes<HTMLInputElement>>, {}>;
|
|
14
|
+
export declare const InputSortIconStyled: import("@emotion/styled").StyledComponent<Pick<import("../../Icon").IconProps, keyof import("../../Icon").IconProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown> & {
|
|
15
|
+
ownerState: Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown>;
|
|
16
|
+
}, {}, {}>;
|
|
17
|
+
export declare const AppliedSortsStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown> & {
|
|
18
|
+
ownerState: Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown>;
|
|
19
|
+
}, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement>>, {}>;
|
|
20
|
+
export declare const AppliedSortInnerContainerStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown> & {
|
|
21
|
+
ownerState: Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown>;
|
|
22
|
+
}, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement>>, {}>;
|
|
23
|
+
export declare const AppliedSortChipStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown> & {
|
|
24
|
+
ownerState: Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown>;
|
|
25
|
+
}, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement>>, {}>;
|
|
26
|
+
export declare const AppliedSortChipIconStyled: import("@emotion/styled").StyledComponent<Pick<import("../../mui_extended/IconButton/types").IconButtonProps, keyof import("../../mui_extended/IconButton/types").IconButtonProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown> & {
|
|
27
|
+
ownerState: Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown>;
|
|
28
|
+
}, {}, {}>;
|
|
29
|
+
export declare const AppliedSortChipInfoStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown> & {
|
|
30
|
+
ownerState: Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown>;
|
|
31
|
+
}, Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, keyof import("react").ClassAttributes<HTMLButtonElement> | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>>, {}>;
|
|
32
|
+
export declare const AppliedSortChipInfoFieldNameStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown> & {
|
|
33
|
+
ownerState: Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown>;
|
|
34
|
+
}, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, keyof import("react").ClassAttributes<HTMLSpanElement> | keyof import("react").HTMLAttributes<HTMLSpanElement>>, {}>;
|
|
35
|
+
export declare const AppliedSortChipInfoOperatorStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown> & {
|
|
36
|
+
ownerState: Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown>;
|
|
37
|
+
}, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, keyof import("react").ClassAttributes<HTMLSpanElement> | keyof import("react").HTMLAttributes<HTMLSpanElement>>, {}>;
|
|
38
|
+
export declare const AppliedSortChipRemoveButtonStyled: import("@emotion/styled").StyledComponent<Pick<import("../../mui_extended/IconButton/types").IconButtonProps, keyof import("../../mui_extended/IconButton/types").IconButtonProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown> & {
|
|
39
|
+
ownerState: Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown>;
|
|
40
|
+
}, {}, {}>;
|
|
41
|
+
export declare const ActionsStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown> & {
|
|
42
|
+
ownerState: Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown>;
|
|
43
|
+
}, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement>>, {}>;
|
|
44
|
+
export declare const ActionsSkeletonButtonStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown> & {
|
|
45
|
+
ownerState: Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown>;
|
|
46
|
+
}, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement>>, {}>;
|
|
47
|
+
export declare const ActionsClearButtonStyled: import("@emotion/styled").StyledComponent<Pick<import("../../mui_extended/IconButton/types").IconButtonProps, keyof import("../../mui_extended/IconButton/types").IconButtonProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown> & {
|
|
48
|
+
ownerState: Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown>;
|
|
49
|
+
}, {}, {}>;
|
|
50
|
+
export declare const ActionsSubmitButtonStyled: import("@emotion/styled").StyledComponent<Pick<import("../../mui_extended/IconButton/types").IconButtonProps, keyof import("../../mui_extended/IconButton/types").IconButtonProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown> & {
|
|
51
|
+
ownerState: Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown>;
|
|
52
|
+
}, {}, {}>;
|
|
53
|
+
export declare const PopoverMenuStyled: import("@emotion/styled").StyledComponent<Pick<import("../../mui_extended/Popover/types").PopoverProps, keyof import("../../mui_extended/Popover/types").PopoverProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown> & {
|
|
54
|
+
ownerState: Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown>;
|
|
55
|
+
}, {}, {}>;
|
|
56
|
+
export declare const PopoverMenuItemStyled: import("@emotion/styled").StyledComponent<Pick<import("@mui/material").MenuItemOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
|
|
57
|
+
ref?: ((instance: HTMLLIElement | null) => void) | import("react").RefObject<HTMLLIElement> | null | undefined;
|
|
58
|
+
}, "style" | "disabled" | "children" | "tabIndex" | "className" | "action" | "divider" | "dense" | "sx" | "classes" | "autoFocus" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "selected" | "disableGutters">, "value" | "dir" | "slot" | "style" | "title" | "onChange" | "disabled" | "ref" | "children" | "aria-label" | "aria-labelledby" | "tabIndex" | "key" | "onFocus" | "className" | "onMouseEnter" | "id" | "aria-rowindex" | "onScroll" | "onCopy" | "onPaste" | "aria-describedby" | "onResize" | "color" | "hidden" | "action" | "aria-hidden" | "onDragStart" | "onDrag" | "onMouseDown" | "onMouseUp" | "onTouchStart" | "onTouchEnd" | "content" | "translate" | "divider" | "dense" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "nonce" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "selected" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown> & {
|
|
59
|
+
ownerState: Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown>;
|
|
60
|
+
}, {}, {}>;
|
|
61
|
+
export declare const PopoverMenuItemIconStyled: import("@emotion/styled").StyledComponent<Pick<import("../../Icon").IconProps, keyof import("../../Icon").IconProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown> & {
|
|
62
|
+
ownerState: Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown>;
|
|
63
|
+
}, {}, {}>;
|
|
64
|
+
export declare const PopoverMenuItemLabelStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown> & {
|
|
65
|
+
ownerState: Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown>;
|
|
66
|
+
}, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement>>, {}>;
|
|
67
|
+
export declare const PopoverStyled: import("@emotion/styled").StyledComponent<Pick<import("../../mui_extended/Popover/types").PopoverProps, keyof import("../../mui_extended/Popover/types").PopoverProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown> & {
|
|
68
|
+
ownerState: Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown>;
|
|
69
|
+
}, {}, {}>;
|
|
70
|
+
export declare const PopoverContainerFieldsStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown> & {
|
|
71
|
+
ownerState: Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown>;
|
|
72
|
+
}, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement>>, {}>;
|
|
73
|
+
export declare const PopoverHeaderStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown> & {
|
|
74
|
+
ownerState: Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown>;
|
|
75
|
+
}, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement>>, {}>;
|
|
76
|
+
export declare const PopoverHeaderIconStyled: import("@emotion/styled").StyledComponent<Pick<import("../../Icon").IconProps, keyof import("../../Icon").IconProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown> & {
|
|
77
|
+
ownerState: Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown>;
|
|
78
|
+
}, {}, {}>;
|
|
79
|
+
export declare const PopoverHeaderTitleStyled: import("@emotion/styled").StyledComponent<Pick<import("../../mui_extended/Typography/types").TypographyProps, keyof import("../../mui_extended/Typography/types").TypographyProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown> & {
|
|
80
|
+
ownerState: Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown>;
|
|
81
|
+
}, {}, {}>;
|
|
82
|
+
export declare const PopoverHeaderActionsStyled: import("@emotion/styled").StyledComponent<Pick<import("../../CommonActions/components/Actions/types").CommonActionsProps & import("react").RefAttributes<any>, keyof import("react").RefAttributes<any> | keyof import("../../CommonActions/components/Actions/types").CommonActionsProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown> & {
|
|
83
|
+
ownerState: Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown>;
|
|
84
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare enum DynamicSortSlots {
|
|
2
|
+
root = "root",
|
|
3
|
+
innerContainer = "innerContainer",
|
|
4
|
+
inputSort = "inputSort",
|
|
5
|
+
inputSortInput = "inputSortInput",
|
|
6
|
+
inputSortIcon = "inputSortIcon",
|
|
7
|
+
appliedSorts = "appliedSorts",
|
|
8
|
+
appliedSortInnerContainer = "appliedSortInnerContainer",
|
|
9
|
+
appliedSortChip = "appliedSortChip",
|
|
10
|
+
appliedSortChipIcon = "appliedSortChipIcon",
|
|
11
|
+
appliedSortChipInfo = "appliedSortChipInfo",
|
|
12
|
+
appliedSortChipInfoFieldName = "appliedSortChipInfoFieldName",
|
|
13
|
+
appliedSortChipInfoOperator = "appliedSortChipInfoOperator",
|
|
14
|
+
appliedSortChipInfoOperands = "appliedSortChipInfoOperands",
|
|
15
|
+
appliedSortChipRemoveButton = "appliedSortChipRemoveButton",
|
|
16
|
+
actions = "actions",
|
|
17
|
+
actionsSkeletonButton = "actionsSkeletonButton",
|
|
18
|
+
actionsClearButton = "actionsClearButton",
|
|
19
|
+
actionsSubmitButton = "actionsSubmitButton",
|
|
20
|
+
popoverMenu = "popoverMenu",
|
|
21
|
+
popoverMenuItem = "popoverMenuItem",
|
|
22
|
+
popoverMenuItemIcon = "popoverMenuItemIcon",
|
|
23
|
+
popoverMenuItemLabel = "popoverMenuItemLabel",
|
|
24
|
+
popoverSort = "popoverSort",
|
|
25
|
+
popoverSortContainerFields = "popoverSortContainerFields",
|
|
26
|
+
popoverSortHeader = "popoverSortHeader",
|
|
27
|
+
popoverSortHeaderIcon = "popoverSortHeaderIcon",
|
|
28
|
+
popoverSortHeaderTitle = "popoverSortHeaderTitle",
|
|
29
|
+
popoverSortActions = "popoverSortActions"
|
|
30
|
+
}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { Theme } from '@mui/material/styles';
|
|
2
|
+
import { OverridesStyleRules } from '@mui/material/styles/overrides';
|
|
3
|
+
import { Maybe } from '@m4l/core';
|
|
4
|
+
import { DYNAMIC_SORT_KEY_COMPONENT } from './constants';
|
|
5
|
+
import { DynamicSortSlots } from './slots';
|
|
6
|
+
export declare type FieldType = 'string';
|
|
7
|
+
export declare type OperandType = string;
|
|
8
|
+
export declare type OperandInitialSortType = string;
|
|
9
|
+
export declare type Operator = 'asc' | 'desc';
|
|
10
|
+
export declare type StringOperator = 'asc' | 'desc';
|
|
11
|
+
export declare type FieldPresence = 'initialized' | 'fixed' | 'optional';
|
|
12
|
+
export declare type FieldTypeOperator<T extends FieldType> = T extends 'string' ? StringOperator : T;
|
|
13
|
+
export interface FieldBase<T extends FieldType = FieldType> {
|
|
14
|
+
name: string;
|
|
15
|
+
type: T;
|
|
16
|
+
multiple?: boolean;
|
|
17
|
+
presence?: FieldPresence;
|
|
18
|
+
urlIcon: string;
|
|
19
|
+
defaultOperator?: Maybe<FieldTypeOperator<T>>;
|
|
20
|
+
}
|
|
21
|
+
export interface FieldDictionaryId<T extends FieldType = FieldType> extends FieldBase<T> {
|
|
22
|
+
dictionaryId: string;
|
|
23
|
+
label?: undefined;
|
|
24
|
+
}
|
|
25
|
+
export interface FieldLabel<T extends FieldType = FieldType> extends FieldBase<T> {
|
|
26
|
+
label: string;
|
|
27
|
+
dictionaryId?: undefined;
|
|
28
|
+
}
|
|
29
|
+
export declare type Field<T extends FieldType = FieldType> = FieldDictionaryId<T> | FieldLabel<T>;
|
|
30
|
+
export interface BaseApplySort<T extends FieldType = FieldType> {
|
|
31
|
+
id: number;
|
|
32
|
+
field: Field<T>;
|
|
33
|
+
isSet: boolean;
|
|
34
|
+
fixed: boolean;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Base para el tipado de overloading de los valores de un sort
|
|
38
|
+
*/
|
|
39
|
+
export interface SortValueBase {
|
|
40
|
+
fieldType: FieldType;
|
|
41
|
+
operator: Operator;
|
|
42
|
+
}
|
|
43
|
+
export interface SortValueOperator extends SortValueBase {
|
|
44
|
+
fieldType: 'string';
|
|
45
|
+
operator: Operator;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Valor de un filtro sobrecargado para cada tipo de dato
|
|
49
|
+
*
|
|
50
|
+
* @type
|
|
51
|
+
*/
|
|
52
|
+
export declare type SortValue = SortValueOperator;
|
|
53
|
+
/**
|
|
54
|
+
* Estado del Filtro + Valor valor del filtro.
|
|
55
|
+
*
|
|
56
|
+
* @type
|
|
57
|
+
*/
|
|
58
|
+
export declare type SortFieldApplied<T extends FieldType = FieldType> = BaseApplySort<T> & SortValue;
|
|
59
|
+
/**
|
|
60
|
+
* @interface RawSortFieldApply Formato para enviar los sorts a las APIs.
|
|
61
|
+
*/
|
|
62
|
+
export interface RawSortFieldApply {
|
|
63
|
+
f: string;
|
|
64
|
+
o: Operator;
|
|
65
|
+
}
|
|
66
|
+
export declare type SortToEditApply = SortFieldApplied;
|
|
67
|
+
export interface DataTypeFilerLabels {
|
|
68
|
+
labelField: string;
|
|
69
|
+
labelOperator: string;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Tipado de los sorts a inicializar el componente DynamicSort
|
|
73
|
+
*
|
|
74
|
+
* @interface
|
|
75
|
+
*/
|
|
76
|
+
export declare type InitialSortApplied = {
|
|
77
|
+
name: string;
|
|
78
|
+
operator: Operator;
|
|
79
|
+
};
|
|
80
|
+
export declare type FormOperator<T extends Operator = Operator> = {
|
|
81
|
+
operator: T;
|
|
82
|
+
name: string;
|
|
83
|
+
};
|
|
84
|
+
export declare type FormOperandString = {
|
|
85
|
+
operator: string;
|
|
86
|
+
name: string;
|
|
87
|
+
};
|
|
88
|
+
export declare type FormOperand = FormOperandString;
|
|
89
|
+
/**
|
|
90
|
+
* Base para el tipado de overloading de los valor de un filtro
|
|
91
|
+
*
|
|
92
|
+
* @interface
|
|
93
|
+
*/
|
|
94
|
+
export interface FormSortValueBase {
|
|
95
|
+
fieldType: FieldType;
|
|
96
|
+
formValueOperator: FormOperator;
|
|
97
|
+
}
|
|
98
|
+
export interface FormSortValueString extends FormSortValueBase {
|
|
99
|
+
fieldType: 'string';
|
|
100
|
+
formValueOperator: FormOperator<StringOperator>;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Valor de un filtro sobrecargado para cada tipo de dato
|
|
104
|
+
*
|
|
105
|
+
* @type
|
|
106
|
+
*/
|
|
107
|
+
export declare type FormSortValue = FormSortValueString;
|
|
108
|
+
/**
|
|
109
|
+
* Estado del Filtro + Valor valor del filtro.
|
|
110
|
+
*
|
|
111
|
+
* @type
|
|
112
|
+
*/
|
|
113
|
+
export declare type FormSortFieldApplied<T extends FieldType = FieldType> = BaseApplySort<T> & FormSortValue;
|
|
114
|
+
/**
|
|
115
|
+
* Tipado del handler cuando se ejecuta el filtro
|
|
116
|
+
*
|
|
117
|
+
* @interface OnChangeSorts
|
|
118
|
+
*/
|
|
119
|
+
export declare type OnChangeSorts = (
|
|
120
|
+
/**
|
|
121
|
+
* "Sorts" Vector de sorts aplicados, los cuales pueden servir como entrada del campo "i"nitialappliedSorts" en un refresh,
|
|
122
|
+
*/
|
|
123
|
+
Sorts: Array<InitialSortApplied>,
|
|
124
|
+
/**
|
|
125
|
+
* "rawSorts" Vector de sorts aplicados, en el formato que puede ser llevado a un endpoint.
|
|
126
|
+
* ver: https://www.notion.so/made4labs/Filtrado-de-listas-55afdd8ac92e483abd34e5365b74ee29
|
|
127
|
+
*/
|
|
128
|
+
rawSorts: Array<RawSortFieldApply>) => void;
|
|
129
|
+
/**
|
|
130
|
+
* Propiedades que recibe el componente DynamicSort
|
|
131
|
+
*
|
|
132
|
+
* @interface DynamicSortProps
|
|
133
|
+
*/
|
|
134
|
+
export interface DynamicSortProps {
|
|
135
|
+
/**
|
|
136
|
+
* Define si el filtro se ejecuta automáticamente cuando se agrega o se modifica un filtro.
|
|
137
|
+
* @default true
|
|
138
|
+
*/
|
|
139
|
+
automatic?: boolean;
|
|
140
|
+
/** Array con la configuración de cada campo por el que se podrá filtrar. */
|
|
141
|
+
fields: Array<Field>;
|
|
142
|
+
/** Array con la configuración de cada campo por el que se podrá hacer Sort.*/
|
|
143
|
+
initialAppliedSorts?: Array<InitialSortApplied>;
|
|
144
|
+
/** Handler que se dispara cuando el filtro cambia en automatico, o cuando es manual y se presion el boton de filtrar */
|
|
145
|
+
onChangeSorts?: OnChangeSorts;
|
|
146
|
+
/** Key único para necesario para las pruebas del componente. */
|
|
147
|
+
dataTestId?: string;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Interface que define la variables que se van a usar en clases del componente
|
|
151
|
+
*
|
|
152
|
+
* @interface
|
|
153
|
+
*/
|
|
154
|
+
export interface OwnerState {
|
|
155
|
+
/**
|
|
156
|
+
* "isSkeleton" indica si el componente está estado skeleton.
|
|
157
|
+
*/
|
|
158
|
+
isSkeleton: boolean;
|
|
159
|
+
/**
|
|
160
|
+
* "inEdition" se establece cuando se está en edición.
|
|
161
|
+
*/
|
|
162
|
+
inEdition: boolean;
|
|
163
|
+
/**
|
|
164
|
+
* "isDirty" cuando el componente tiene sorts por aplicar
|
|
165
|
+
*/
|
|
166
|
+
isDirty: boolean;
|
|
167
|
+
/**
|
|
168
|
+
* "isValid" cuando el comnponente está en un estado invalido
|
|
169
|
+
*/
|
|
170
|
+
isValid: boolean;
|
|
171
|
+
/**
|
|
172
|
+
* "isMobile" cuando el navegador está en modo celular
|
|
173
|
+
*/
|
|
174
|
+
isMobile: boolean;
|
|
175
|
+
/**
|
|
176
|
+
* "isEmpty" Define si existen sorts aplicados
|
|
177
|
+
*/
|
|
178
|
+
isEmpty: boolean;
|
|
179
|
+
}
|
|
180
|
+
export interface DynamicSortOwnerState extends DynamicSortProps, OwnerState {
|
|
181
|
+
}
|
|
182
|
+
export declare type DynamicSortSlotsType = keyof typeof DynamicSortSlots;
|
|
183
|
+
export declare type DynamicSortStyles = Partial<OverridesStyleRules<DynamicSortSlotsType, typeof DYNAMIC_SORT_KEY_COMPONENT, Theme> | undefined> | undefined;
|
|
@@ -5,6 +5,8 @@ export declare const PADDING_GRIDLAYOUT = 11;
|
|
|
5
5
|
export declare const MARGIN_GRIDLAYOUT = 11;
|
|
6
6
|
export declare const DEBOUCED_SAVE_TIME = 500;
|
|
7
7
|
export declare const THROTTLE_RESIZE_TIME = 300;
|
|
8
|
+
export declare const COOKIE_AREAS_ADMIN_CONTAINER_ID = "areas";
|
|
9
|
+
export declare const COOKIE_AREAS_ADMIN_ID = "admin";
|
|
8
10
|
export declare const COOKIE_BREAKPOINT_LAYOUTS = "layoutPros";
|
|
9
11
|
export declare const COOKIE_WINDOWS = "windows";
|
|
10
12
|
export declare const BREAKPOINT_SIZES: {
|
|
@@ -68,3 +70,4 @@ export declare function getDataFromResponse(data: any, state: WritableDraft<Area
|
|
|
68
70
|
newHashLayoutItems: string[];
|
|
69
71
|
};
|
|
70
72
|
export declare function getCookiesContainer(data: any, containerId: string): Record<string, any>;
|
|
73
|
+
export declare function getSelectedAreaIdFromCookies(cookiesResponse: any): string | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RHF_TEXT_FIELD_KEY_COMPONENT = "RHFTextField";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const RHFTextFieldRootStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & Partial<import("..").RHFTextFieldProps> & Record<string, unknown> & {
|
|
3
|
+
ownerState: Partial<import("..").RHFTextFieldProps> & Record<string, unknown>;
|
|
4
|
+
}, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement>>, {}>;
|
|
5
|
+
export declare const FieldLabelStyled: import("@emotion/styled").StyledComponent<Pick<import("../../../FieldLabel/types").FieldLabelProps, keyof import("../../../FieldLabel/types").FieldLabelProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & Partial<import("..").RHFTextFieldProps> & Record<string, unknown> & {
|
|
6
|
+
ownerState: Partial<import("..").RHFTextFieldProps> & Record<string, unknown>;
|
|
7
|
+
}, {}, {}>;
|
|
8
|
+
export declare const TextFieldStyled: import("@emotion/styled").StyledComponent<Pick<{
|
|
9
|
+
variant?: import("@mui/material").TextFieldVariants | undefined;
|
|
10
|
+
} & Omit<import("@mui/material").FilledTextFieldProps | import("@mui/material").OutlinedTextFieldProps | import("@mui/material").StandardTextFieldProps, "variant">, "value" | "error" | "select" | "dir" | "label" | "slot" | "style" | "title" | "onChange" | "disabled" | "ref" | "children" | "aria-label" | "aria-labelledby" | "tabIndex" | "key" | "rows" | "onFocus" | "className" | "onMouseEnter" | "id" | "aria-rowindex" | "onScroll" | "onCopy" | "onPaste" | "aria-describedby" | "onResize" | "color" | "hidden" | "size" | "margin" | "type" | "name" | "placeholder" | "maxRows" | "minRows" | "aria-hidden" | "onDragStart" | "onDrag" | "onMouseDown" | "onMouseUp" | "onTouchStart" | "onTouchEnd" | "content" | "translate" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "nonce" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "component" | "variant" | "inputProps" | "fullWidth" | "focused" | "hiddenLabel" | "required" | "InputProps" | "autoComplete" | "FormHelperTextProps" | "helperText" | "InputLabelProps" | "inputRef" | "multiline" | "SelectProps"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & Partial<import("..").RHFTextFieldProps> & Record<string, unknown> & {
|
|
11
|
+
ownerState: Partial<import("..").RHFTextFieldProps> & Record<string, unknown>;
|
|
12
|
+
}, {}, {}>;
|
|
13
|
+
export declare const SkeletonTextFieldRootStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & Partial<import("..").RHFTextFieldProps> & Record<string, unknown> & {
|
|
14
|
+
ownerState: Partial<import("..").RHFTextFieldProps> & Record<string, unknown>;
|
|
15
|
+
}, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement>>, {}>;
|
|
16
|
+
export declare const WrapperSkeletonRHFTextFieldStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & Partial<import("..").RHFTextFieldProps> & Record<string, unknown> & {
|
|
17
|
+
ownerState: Partial<import("..").RHFTextFieldProps> & Record<string, unknown>;
|
|
18
|
+
}, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement>>, {}>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RHFTextFieldOwnerState, RHFTextFieldProps } from '../../types';
|
|
2
2
|
export interface SkeletonTextFieldProps extends Pick<RHFTextFieldProps, 'skeletonWidth' | 'skeletonHeight'> {
|
|
3
|
-
ownerState: RHFTextFieldState;
|
|
4
|
-
classes: any;
|
|
5
3
|
hasLabel?: string;
|
|
4
|
+
variant?: RHFTextFieldOwnerState['type'];
|
|
5
|
+
ownerState?: RHFTextFieldOwnerState;
|
|
6
6
|
}
|
|
7
|
-
export declare type WrapperSkeletonRHFTextField = RHFTextFieldState;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
import { Theme } from '@mui/material/styles';
|
|
2
|
+
import { OverridesStyleRules } from '@mui/material/styles/overrides';
|
|
1
3
|
import { TextFieldProps } from '@mui/material';
|
|
2
4
|
import { ReactElement } from 'react';
|
|
3
5
|
import { FieldLabelProps } from '../../FieldLabel/types';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
+
import { RHFTextFieldSlots } from './slots';
|
|
7
|
+
import { RHF_TEXT_FIELD_KEY_COMPONENT } from './constant';
|
|
8
|
+
export declare type RHFTextFieldVariants = 'info' | 'success' | 'warning' | null;
|
|
9
|
+
export interface RHFTextFieldProps extends Omit<TextFieldProps, 'size' | 'inputProps' | 'variant' | 'label' | 'theme'>, Omit<FieldLabelProps, 'label'> {
|
|
6
10
|
skeletonWidth?: string | number;
|
|
7
11
|
skeletonHeight?: string | number;
|
|
8
12
|
name: string;
|
|
@@ -11,10 +15,14 @@ export interface RHFTextFieldProps extends Omit<TextFieldProps, 'size' | 'inputP
|
|
|
11
15
|
endIcon?: ReactElement;
|
|
12
16
|
variant?: RHFTextFieldVariants;
|
|
13
17
|
label?: string;
|
|
18
|
+
isInteger?: boolean;
|
|
14
19
|
}
|
|
15
20
|
export interface RHFTextFieldState extends Pick<RHFTextFieldProps, 'size' | 'disabled'> {
|
|
16
21
|
type: 'password' | 'text';
|
|
17
22
|
isFocus: boolean;
|
|
18
23
|
isTabSelected: boolean;
|
|
19
|
-
variant: RHFTextFieldVariants | 'error' | null;
|
|
24
|
+
variant: RHFTextFieldVariants | 'warning' | 'error' | null;
|
|
20
25
|
}
|
|
26
|
+
export declare type RHFTextFieldOwnerState = RHFTextFieldProps;
|
|
27
|
+
export declare type RHFTextFieldSlotsType = keyof typeof RHFTextFieldSlots;
|
|
28
|
+
export declare type RHFTextFieldStyles = Partial<OverridesStyleRules<RHFTextFieldSlotsType, typeof RHF_TEXT_FIELD_KEY_COMPONENT, Theme> | undefined> | undefined;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CookiesDeleteProps, CookiesGetProps, CookiesPutProps } from './types';
|
|
2
|
+
export declare function getCookie({ networkOperation, params, withToast, }: CookiesGetProps): Promise<any>;
|
|
3
|
+
export declare function setCookie({ networkOperation, endPoint, value, withToast, }: CookiesPutProps): Promise<any>;
|
|
4
|
+
export declare function deleteCookie({ networkOperation, data, withToast, }: CookiesDeleteProps): Promise<any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './cookies';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { NetworkProps } from '@m4l/core';
|
|
2
|
+
/**
|
|
3
|
+
* Type que se usa para definir los filtros del api de cookies
|
|
4
|
+
*/
|
|
5
|
+
declare type CookieField = {
|
|
6
|
+
/**
|
|
7
|
+
* n define el nombre del campo, para las cookies se usa 'container_id' | 'id' que se envian en el endPoint al guardar una cookie
|
|
8
|
+
* Ejemplo del endPoint `cookies/container_id/id` con valores sería `cookies/123/456`
|
|
9
|
+
* En el ejemplo container_id = 123 y id = 456
|
|
10
|
+
*/
|
|
11
|
+
n: 'container_id' | 'id';
|
|
12
|
+
/**
|
|
13
|
+
* Operato define cómo se filtra el valor de la cookie
|
|
14
|
+
* e = equal, c = contains, ne = not equals, nc = not contains
|
|
15
|
+
*/
|
|
16
|
+
o: 'e' | 'c' | 'ne' | 'nc';
|
|
17
|
+
/**
|
|
18
|
+
* o1 define el valor por el que se desea filtrar
|
|
19
|
+
*/
|
|
20
|
+
o1: string | number;
|
|
21
|
+
};
|
|
22
|
+
export declare type CookieParams = {
|
|
23
|
+
f: CookieField[];
|
|
24
|
+
};
|
|
25
|
+
interface CookieFunctionBase {
|
|
26
|
+
networkOperation: (props: NetworkProps) => Promise<any>;
|
|
27
|
+
withToast?: {
|
|
28
|
+
success?: boolean;
|
|
29
|
+
error?: boolean;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export interface CookiesGetProps extends CookieFunctionBase {
|
|
33
|
+
params?: CookieParams;
|
|
34
|
+
}
|
|
35
|
+
export interface CookiesPutProps extends CookieFunctionBase {
|
|
36
|
+
endPoint: string;
|
|
37
|
+
value: Record<string, any> | Array<any>;
|
|
38
|
+
}
|
|
39
|
+
export interface CookiesDeleteProps extends CookieFunctionBase {
|
|
40
|
+
data?: CookieParams;
|
|
41
|
+
}
|
|
42
|
+
export {};
|