@m4l/components 3.1.8 → 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.
Files changed (34) hide show
  1. package/@types/export.d.ts +0 -3
  2. package/@types/types.d.ts +29 -11
  3. package/components/DynamicSort/constants.d.ts +12 -0
  4. package/components/DynamicSort/slots/DynamicSortSlots.d.ts +84 -0
  5. package/components/DynamicSort/slots/SlotsEnum.d.ts +30 -0
  6. package/components/DynamicSort/slots/index.d.ts +2 -0
  7. package/components/DynamicSort/types.d.ts +183 -0
  8. package/components/FieldLabel/types.d.ts +1 -0
  9. package/components/ObjectLogs/types.d.ts +1 -1
  10. package/components/areas/contexts/AreasContext/helper.d.ts +3 -0
  11. package/components/hook-form/RHFTextField/constant.d.ts +1 -0
  12. package/components/hook-form/RHFTextField/index.d.ts +0 -1
  13. package/components/hook-form/RHFTextField/slots/RHFTextFieldEnum.d.ts +7 -0
  14. package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +18 -0
  15. package/components/hook-form/RHFTextField/slots/index.d.ts +2 -0
  16. package/components/hook-form/RHFTextField/subcomponents/Skeleton/types.d.ts +3 -4
  17. package/components/hook-form/RHFTextField/types.d.ts +11 -3
  18. package/helpers/cookies/cookies.d.ts +4 -0
  19. package/helpers/cookies/index.d.ts +1 -0
  20. package/helpers/cookies/types.d.ts +42 -0
  21. package/index.js +145 -148
  22. package/package.json +1 -1
  23. package/styles/DynamicSort.styles.d.ts +2 -0
  24. package/styles/MenuActions.styles.d.ts +1 -1
  25. package/styles/RHFTextField.styles.d.ts +2 -0
  26. package/utils/index.d.ts +1 -1
  27. package/{vendor-AfIOyqRr.js → vendor-BDLrgGjq.js} +575 -519
  28. package/components/hook-form/RHFTextField/classes/constants.d.ts +0 -1
  29. package/components/hook-form/RHFTextField/classes/index.d.ts +0 -8
  30. package/components/hook-form/RHFTextField/classes/types.d.ts +0 -17
  31. package/components/hook-form/RHFTextField/styles.d.ts +0 -3
  32. package/components/hook-form/RHFTextField/subcomponents/Skeleton/styles.d.ts +0 -3
  33. package/components/hook-form/RHFTextField/tests/constants.d.ts +0 -3
  34. package/components/hook-form/RHFTextField/tests/utils.d.ts +0 -2
@@ -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
- M4LPopupsViewer?: {
59
- defaultProps?: ComponentsPropsList['M4LPopupsViewer'];
60
- styleOverrides?: ComponentsOverrides<Theme>['M4LPopupsViewer'];
61
- variants?: ComponentsVariants['M4LPopupsViewer'];
62
- };
63
- M4LToastContainer?: {
64
- defaultProps?: ComponentsPropsList['M4LToastContainer'];
65
- styleOverrides?: ComponentsOverrides<Theme>['M4LToastContainer'];
66
- variants?: ComponentsVariants['M4LToastContainer'];
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,2 @@
1
+ export * from './DynamicSortSlots';
2
+ export { DynamicSortSlots } from './SlotsEnum';
@@ -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,4 +5,5 @@ export interface FieldLabelProps {
5
5
  mandatoryMessage?: string;
6
6
  className?: string;
7
7
  htmlFor?: string;
8
+ id?: string;
8
9
  }
@@ -9,7 +9,7 @@ export interface RowLog {
9
9
  ip: string;
10
10
  }
11
11
  export interface LogsProps {
12
- resource_id: number;
12
+ resource_id: number | string;
13
13
  object_id: Maybe<number>;
14
14
  dataTestId?: string;
15
15
  }
@@ -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";
@@ -1,3 +1,2 @@
1
1
  export * from './RHFTextField';
2
2
  export * from './types';
3
- export * from './tests/constants';
@@ -0,0 +1,7 @@
1
+ export declare enum RHFTextFieldSlots {
2
+ root = "root",
3
+ fieldLabel = "fieldLabel",
4
+ textField = "textField",
5
+ skeletonTextFieldRoot = "skeletonTextFieldRoot",
6
+ wrapperSkeletonRHFTextField = "wrapperSkeletonRHFTextField"
7
+ }
@@ -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>>, {}>;
@@ -0,0 +1,2 @@
1
+ export { RHFTextFieldSlots } from './RHFTextFieldEnum';
2
+ export * from './RHFTextFieldSlots';
@@ -1,7 +1,6 @@
1
- import { RHFTextFieldProps, RHFTextFieldState } from '../../types';
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
- export declare type RHFTextFieldVariants = 'info' | 'success' | 'warning';
5
- export interface RHFTextFieldProps extends Omit<TextFieldProps, 'size' | 'inputProps' | 'variant' | 'label'>, Omit<FieldLabelProps, 'label'> {
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 {};