@m4l/components 0.1.28 → 0.1.30

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 (37) hide show
  1. package/components/CommonActions/components/ActionCancel/{index.e498eeb2.js → index.a57fcfae.js} +1 -1
  2. package/components/CommonActions/components/ActionFormCancel/{index.4ff0ad73.js → index.b8215cd2.js} +2 -2
  3. package/components/CommonActions/components/ActionIntro/{index.60ef7bd7.js → index.591a8195.js} +1 -1
  4. package/components/CommonActions/components/Actions/{index.0645e30f.js → index.2ce05d29.js} +7 -7
  5. package/components/DataGrid/{index.76d8fd25.js → index.07162c02.js} +3 -3
  6. package/components/DynamicFilter/components/PopupEditFilter/styles.d.ts +1 -0
  7. package/components/DynamicFilter/components/fieldstypes/DateTimeFilter/index.d.ts +2 -2
  8. package/components/DynamicFilter/components/fieldstypes/factory.d.ts +2 -2
  9. package/components/DynamicFilter/{index.342ba5fe.js → index.31876c9f.js} +67 -62
  10. package/components/ModalDialog/{index.9ea10764.js → index.3e5675c4.js} +5 -3
  11. package/components/ObjectLogs/{index.f941fb79.js → index.35dbf836.js} +19 -8
  12. package/components/Period/{index.2941fbda.js → index.111600f2.js} +2 -2
  13. package/components/animate/IconButtonAnimate/index.d.ts +1 -1
  14. package/components/formatters/BooleanFormatter/{index.8da35c9c.js → index.ae70b54f.js} +1 -0
  15. package/components/formatters/DateFormatter/{index.1b9baacc.js → index.ed73f8ae.js} +9 -11
  16. package/components/formatters/{index.689a8086.js → index.9bd10770.js} +1 -0
  17. package/components/hook-form/RHFAutocomplete/{index.59a68f9f.js → index.de93fe01.js} +89 -34
  18. package/components/hook-form/RHFAutocomplete/styles.d.ts +0 -2
  19. package/components/hook-form/RHFAutocomplete/subcomponents/Skeleton/index.d.ts +3 -0
  20. package/components/hook-form/RHFAutocomplete/subcomponents/Skeleton/styles.d.ts +3 -0
  21. package/components/hook-form/RHFAutocomplete/subcomponents/Skeleton/types.d.ts +4 -0
  22. package/components/hook-form/RHFAutocompleteAsync/{index.c3083062.js → index.ca696cce.js} +1 -1
  23. package/components/hook-form/RHFDateTime/{index.9231a7c7.js → index.e70d2de3.js} +36 -23
  24. package/components/hook-form/RHFDateTime/types.d.ts +1 -0
  25. package/components/hook-form/RHFPeriod/{index.64a228d5.js → index.fa8426ac.js} +1 -1
  26. package/components/hook-form/RHFTextField/index.d.ts +1 -1
  27. package/components/mui_extended/Avatar/index.d.ts +1 -1
  28. package/components/mui_extended/Button/{index.53b56958.js → index.1d13f53b.js} +1 -1
  29. package/components/mui_extended/MenuActions/styles.d.ts +2 -2
  30. package/components/mui_extended/Pager/{index.c0865b70.js → index.72b43352.js} +1 -1
  31. package/components/mui_extended/Popover/{index.705275a4.js → index.028756ac.js} +3 -3
  32. package/contexts/ModalContext/{index.b92fa565.js → index.cc3690d3.js} +7 -12
  33. package/contexts/ModalContext/types.d.ts +1 -2
  34. package/contexts/RHFormContext/{index.b142190a.js → index.f8c00745.js} +1 -0
  35. package/hooks/useModal/{index.5fee01a3.js → index.78ee58f3.js} +1 -1
  36. package/index.js +23 -23
  37. package/package.json +1 -1
@@ -1,31 +1,10 @@
1
1
  import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
2
2
  import { useFormContext, Controller } from "react-hook-form";
3
- import { Skeleton, Autocomplete, TextField, CircularProgress } from "@mui/material";
3
+ import { styled as styled$1, Skeleton, Autocomplete, TextField, CircularProgress } from "@mui/material";
4
4
  import { styled } from "@mui/material/styles";
5
5
  import { I as Image } from "../../Image/index.93d5f37f.js";
6
6
  import { useMemo, useState, useEffect } from "react";
7
7
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
8
- const SKTRHFAutocompleteWrapper = styled("div")(() => ({
9
- display: "flex",
10
- width: "100%",
11
- flexDirection: "column"
12
- }));
13
- const SKTInputText = styled("div")(({
14
- theme
15
- }) => ({
16
- width: "100%",
17
- display: "grid",
18
- gridTemplateColumns: "1fr auto",
19
- gridGap: theme.spacing(2),
20
- alignItems: "center",
21
- height: `${theme.spacing(4.5)}`,
22
- border: `1px solid ${theme.palette.divider}`,
23
- borderRadius: `${theme.spacing(1)}`,
24
- padding: `0 ${theme.spacing(2)}`,
25
- [theme.breakpoints.down("md")]: {
26
- width: "100%"
27
- }
28
- }));
29
8
  const WrapperAutocomplete = styled("div")(({
30
9
  theme
31
10
  }) => ({
@@ -57,6 +36,83 @@ function withRenderOption(getUrlImage, imageWidth, imageHeight) {
57
36
  });
58
37
  };
59
38
  }
39
+ const WrapperSkeletonRHFAutocomplete = styled$1("div")(({
40
+ theme
41
+ }) => ({
42
+ width: "100%",
43
+ display: "flex",
44
+ justifyContent: "space-between",
45
+ alignItems: "center",
46
+ height: `${theme.spacing(4.5)}`,
47
+ border: `1px solid ${theme.palette.divider}`,
48
+ borderRadius: `${theme.spacing(1)}`,
49
+ padding: `0 ${theme.spacing(2)}`,
50
+ overflow: "hidden",
51
+ [theme.breakpoints.down("md")]: {
52
+ width: "100%"
53
+ }
54
+ }));
55
+ const SkeletonContainerText = styled$1("div")(({
56
+ theme
57
+ }) => ({
58
+ width: "100%",
59
+ height: "auto",
60
+ overflow: "hidden",
61
+ margin: theme.spacing(1.5)
62
+ }));
63
+ const SkeletonRHFAutocomplete = (props) => {
64
+ const {
65
+ withImage,
66
+ skeletonWidth,
67
+ skeletonHeight,
68
+ imageWidth,
69
+ imageHeight
70
+ } = props;
71
+ if (withImage) {
72
+ return /* @__PURE__ */ jsxs(WrapperSkeletonRHFAutocomplete, {
73
+ children: [/* @__PURE__ */ jsx(Skeleton, {
74
+ variant: "circular",
75
+ width: imageWidth,
76
+ height: imageHeight,
77
+ sx: {
78
+ minWidth: imageWidth
79
+ }
80
+ }), /* @__PURE__ */ jsx(SkeletonContainerText, {
81
+ children: /* @__PURE__ */ jsx(Skeleton, {
82
+ variant: "text",
83
+ width: skeletonWidth,
84
+ height: skeletonHeight
85
+ })
86
+ }), /* @__PURE__ */ jsx(Skeleton, {
87
+ variant: "circular",
88
+ width: 16,
89
+ height: 16,
90
+ sx: {
91
+ minWidth: "16px"
92
+ }
93
+ })]
94
+ });
95
+ }
96
+ return /* @__PURE__ */ jsxs(WrapperSkeletonRHFAutocomplete, {
97
+ children: [/* @__PURE__ */ jsx(SkeletonContainerText, {
98
+ sx: {
99
+ marginLeft: "0px"
100
+ },
101
+ children: /* @__PURE__ */ jsx(Skeleton, {
102
+ variant: "text",
103
+ width: skeletonWidth,
104
+ height: skeletonHeight
105
+ })
106
+ }), /* @__PURE__ */ jsx(Skeleton, {
107
+ variant: "circular",
108
+ width: 16,
109
+ height: 16,
110
+ sx: {
111
+ minWidth: "16px"
112
+ }
113
+ })]
114
+ });
115
+ };
60
116
  function RHFAutocomplete(props) {
61
117
  const {
62
118
  name,
@@ -114,18 +170,12 @@ function RHFAutocomplete(props) {
114
170
  return isOptionEqualToValue(option, value);
115
171
  };
116
172
  if (isSkeleton) {
117
- return /* @__PURE__ */ jsx(SKTRHFAutocompleteWrapper, {
118
- children: /* @__PURE__ */ jsxs(SKTInputText, {
119
- children: [/* @__PURE__ */ jsx(Skeleton, {
120
- variant: "text",
121
- width: skeletonWidth,
122
- height: skeletonHeight
123
- }, "sk1"), /* @__PURE__ */ jsx(Skeleton, {
124
- variant: "circular",
125
- width: 16,
126
- height: 16
127
- }, "sk2")]
128
- })
173
+ return /* @__PURE__ */ jsx(SkeletonRHFAutocomplete, {
174
+ withImage,
175
+ skeletonWidth,
176
+ skeletonHeight,
177
+ imageWidth,
178
+ imageHeight
129
179
  });
130
180
  }
131
181
  return /* @__PURE__ */ jsx(Controller, {
@@ -149,9 +199,14 @@ function RHFAutocomplete(props) {
149
199
  onChangeFilterParmsLocal(getOptionLabelLocal(value), "reset");
150
200
  }
151
201
  }, [value]);
202
+ const checkKeyDown = (e) => {
203
+ if (e.code === "Enter")
204
+ e.preventDefault();
205
+ };
152
206
  return /* @__PURE__ */ jsx(WrapperAutocomplete, {
153
207
  className: "m4l_rhf_autocomplete",
154
208
  children: /* @__PURE__ */ jsx(Autocomplete, {
209
+ onKeyDown: checkKeyDown,
155
210
  autoComplete: true,
156
211
  autoSelect: false,
157
212
  options,
@@ -1,4 +1,2 @@
1
1
  /// <reference types="react" />
2
- export declare const SKTRHFAutocompleteWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
3
- export declare const SKTInputText: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
4
2
  export declare const WrapperAutocomplete: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { SkeletonRHFAutocompleteProps } from './types';
3
+ export declare const SkeletonRHFAutocomplete: (props: SkeletonRHFAutocompleteProps) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export declare const WrapperSkeletonRHFAutocomplete: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
3
+ export declare const SkeletonContainerText: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,4 @@
1
+ import { RHFAutocompleteProps } from '../../types';
2
+ export interface SkeletonRHFAutocompleteProps extends Pick<RHFAutocompleteProps<any>, 'skeletonWidth' | 'skeletonHeight' | 'imageWidth' | 'imageHeight'> {
3
+ withImage: boolean;
4
+ }
@@ -1,7 +1,7 @@
1
1
  import { useState, useCallback, useEffect } from "react";
2
2
  import { useNetwork, getPropertyByString } from "@m4l/core";
3
3
  import debounce from "lodash/debounce";
4
- import { R as RHFAutocomplete, g as getRHFAutocompleteComponentsDictionary } from "../RHFAutocomplete/index.59a68f9f.js";
4
+ import { R as RHFAutocomplete, g as getRHFAutocompleteComponentsDictionary } from "../RHFAutocomplete/index.de93fe01.js";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
  function RHFAutocompleteAsync(props) {
7
7
  const {
@@ -1,9 +1,10 @@
1
1
  import { useFormContext, Controller } from "react-hook-form";
2
2
  import { Skeleton, TextField } from "@mui/material";
3
3
  import { DateTimePicker } from "@mui/x-date-pickers";
4
- import { useModuleSkeleton, useEnvironment } from "@m4l/core";
4
+ import { useModuleSkeleton } from "@m4l/core";
5
5
  import { styled } from "@mui/material/styles";
6
6
  import { jsxs, jsx } from "react/jsx-runtime";
7
+ import { useFormatter } from "@m4l/graphics";
7
8
  const SKTRHFWrapperTextField = styled("div")(({
8
9
  theme
9
10
  }) => ({
@@ -38,18 +39,19 @@ function RHFDateTime(props) {
38
39
  name,
39
40
  autoComplete = "off",
40
41
  skeletonWidth = "50%",
41
- skeletonHeight = 14
42
+ skeletonHeight = 14,
43
+ withMask = true
42
44
  } = props;
43
45
  const isSkeleton = useModuleSkeleton();
44
46
  const {
45
47
  control
46
48
  } = useFormContext();
47
49
  const {
48
- dfnsFormat: {
49
- datetime_format,
50
- datetime_mask
50
+ dateFormatter: {
51
+ datetimeFormat,
52
+ datetimeMask
51
53
  }
52
- } = useEnvironment();
54
+ } = useFormatter();
53
55
  if (isSkeleton) {
54
56
  return /* @__PURE__ */ jsx(SkeletonRHFDateTime, {
55
57
  skeletonWidth,
@@ -60,31 +62,42 @@ function RHFDateTime(props) {
60
62
  name,
61
63
  control,
62
64
  render: ({
63
- field,
65
+ field: {
66
+ value,
67
+ onChange
68
+ },
64
69
  fieldState: {
65
70
  error
66
71
  }
67
72
  }) => {
73
+ console.log("RHFDateTime", value, datetimeFormat, datetimeMask);
68
74
  return /* @__PURE__ */ jsx(DateTimePicker, {
69
75
  ampm: false,
70
- inputFormat: datetime_format,
71
- mask: datetime_mask,
76
+ ...(() => {
77
+ return withMask ? {
78
+ inputFormat: datetimeFormat,
79
+ mask: datetimeMask
80
+ } : {};
81
+ })(),
72
82
  label: "",
73
- value: field.value,
74
- onChange: (value) => {
75
- if (!isNaN(value)) {
76
- field.onChange(value);
77
- } else {
78
- field.onChange(void 0);
79
- }
83
+ value,
84
+ onChange: (newValue) => {
85
+ onChange(newValue);
80
86
  },
81
- renderInput: (params) => /* @__PURE__ */ jsx(TextField, {
82
- autoComplete,
83
- fullWidth: true,
84
- error: !!error,
85
- helperText: error?.message,
86
- ...params
87
- })
87
+ renderInput: (params) => {
88
+ const checkKeyDown = (e) => {
89
+ if (e.code === "Enter")
90
+ e.preventDefault();
91
+ };
92
+ return /* @__PURE__ */ jsx(TextField, {
93
+ ...params,
94
+ autoComplete,
95
+ fullWidth: true,
96
+ error: !!error,
97
+ helperText: error?.message,
98
+ onKeyDown: checkKeyDown
99
+ });
100
+ }
88
101
  });
89
102
  }
90
103
  });
@@ -2,4 +2,5 @@ export interface RHFDateTimeProps {
2
2
  skeletonWidth?: string | number;
3
3
  skeletonHeight?: string | number;
4
4
  name: string;
5
+ withMask?: boolean;
5
6
  }
@@ -1,7 +1,7 @@
1
1
  import { styled } from "@mui/material";
2
2
  import { useFormContext, Controller } from "react-hook-form";
3
3
  import { E as ErrorLabel } from "../../ErrorLabel/index.c8615f16.js";
4
- import { P as Period } from "../../Period/index.2941fbda.js";
4
+ import { P as Period } from "../../Period/index.111600f2.js";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  const Wrapper = styled("div")(({
7
7
  theme
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { RHFTextFieldProps } from './types';
3
- export declare const RHFTextField: import("react").ForwardRefExoticComponent<(Pick<RHFTextFieldProps & import("@mui/material").StandardTextFieldProps, "value" | "error" | "select" | "dir" | "label" | "slot" | "style" | "title" | "onChange" | "disabled" | "children" | "aria-label" | "aria-labelledby" | "tabIndex" | "key" | "rows" | "onFocus" | "className" | "onMouseEnter" | "id" | "aria-rowindex" | "onScroll" | "onCopy" | "onPaste" | "aria-describedby" | "onResize" | "type" | "hidden" | "name" | "placeholder" | "maxRows" | "minRows" | "aria-hidden" | "onDragStart" | "onDrag" | "onMouseDown" | "onMouseUp" | "onTouchStart" | "onTouchEnd" | "classes" | "color" | "margin" | "translate" | "sx" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "nonce" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "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-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" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoComplete" | "autoFocus" | "required" | "size" | "focused" | "variant" | "inputProps" | "inputRef" | "fullWidth" | "hiddenLabel" | "InputProps" | "FormHelperTextProps" | "helperText" | "InputLabelProps" | "multiline" | "SelectProps" | "skeletonVariant" | "skeletonWidth" | "skeletonHeight"> | Pick<RHFTextFieldProps & import("@mui/material").FilledTextFieldProps, "value" | "error" | "select" | "dir" | "label" | "slot" | "style" | "title" | "onChange" | "disabled" | "children" | "aria-label" | "aria-labelledby" | "tabIndex" | "key" | "rows" | "onFocus" | "className" | "onMouseEnter" | "id" | "aria-rowindex" | "onScroll" | "onCopy" | "onPaste" | "aria-describedby" | "onResize" | "type" | "hidden" | "name" | "placeholder" | "maxRows" | "minRows" | "aria-hidden" | "onDragStart" | "onDrag" | "onMouseDown" | "onMouseUp" | "onTouchStart" | "onTouchEnd" | "classes" | "color" | "margin" | "translate" | "sx" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "nonce" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "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-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" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoComplete" | "autoFocus" | "required" | "size" | "focused" | "variant" | "inputProps" | "inputRef" | "fullWidth" | "hiddenLabel" | "InputProps" | "FormHelperTextProps" | "helperText" | "InputLabelProps" | "multiline" | "SelectProps" | "skeletonVariant" | "skeletonWidth" | "skeletonHeight"> | Pick<RHFTextFieldProps & import("@mui/material").OutlinedTextFieldProps, "value" | "error" | "select" | "dir" | "label" | "slot" | "style" | "title" | "onChange" | "disabled" | "children" | "aria-label" | "aria-labelledby" | "tabIndex" | "key" | "rows" | "onFocus" | "className" | "onMouseEnter" | "id" | "aria-rowindex" | "onScroll" | "onCopy" | "onPaste" | "aria-describedby" | "onResize" | "type" | "hidden" | "name" | "placeholder" | "maxRows" | "minRows" | "aria-hidden" | "onDragStart" | "onDrag" | "onMouseDown" | "onMouseUp" | "onTouchStart" | "onTouchEnd" | "classes" | "color" | "margin" | "translate" | "sx" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "nonce" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "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-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" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoComplete" | "autoFocus" | "required" | "size" | "focused" | "variant" | "inputProps" | "inputRef" | "fullWidth" | "hiddenLabel" | "InputProps" | "FormHelperTextProps" | "helperText" | "InputLabelProps" | "multiline" | "SelectProps" | "skeletonVariant" | "skeletonWidth" | "skeletonHeight">) & import("react").RefAttributes<HTMLInputElement>>;
3
+ export declare const RHFTextField: import("react").ForwardRefExoticComponent<(Omit<RHFTextFieldProps & import("@mui/material").StandardTextFieldProps, "ref"> | Omit<RHFTextFieldProps & import("@mui/material").FilledTextFieldProps, "ref"> | Omit<RHFTextFieldProps & import("@mui/material").OutlinedTextFieldProps, "ref">) & import("react").RefAttributes<HTMLInputElement>>;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { AvatarProps } from './types';
3
- export declare const Avatar: import("react").ForwardRefExoticComponent<Pick<AvatarProps, "dir" | "slot" | "style" | "title" | "onChange" | "children" | "aria-label" | "aria-labelledby" | "tabIndex" | "key" | "onFocus" | "className" | "onMouseEnter" | "id" | "aria-rowindex" | "onScroll" | "onCopy" | "onPaste" | "aria-describedby" | "onResize" | "hidden" | "src" | "placeholder" | "aria-hidden" | "onDragStart" | "onDrag" | "onMouseDown" | "onMouseUp" | "onTouchStart" | "onTouchEnd" | "classes" | "color" | "translate" | "sx" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "nonce" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "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-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" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "alt" | "sizes" | "srcSet" | "variant" | "imgProps"> & import("react").RefAttributes<HTMLDivElement>>;
3
+ export declare const Avatar: import("react").ForwardRefExoticComponent<Omit<AvatarProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
4
4
  export default Avatar;
@@ -5,7 +5,7 @@ import { jsx } from "react/jsx-runtime";
5
5
  import { LoadingButton as LoadingButton$1 } from "@mui/lab";
6
6
  import { I as IconButton } from "../IconButton/index.a321e5cb.js";
7
7
  import { styled as styled$1, alpha } from "@mui/material/styles";
8
- import { u as useBase } from "../../DynamicFilter/index.342ba5fe.js";
8
+ import { u as useBase } from "../../DynamicFilter/index.31876c9f.js";
9
9
  import { useMemo } from "react";
10
10
  import { I as Image } from "../../Image/index.93d5f37f.js";
11
11
  const Button = (props) => {
@@ -6,7 +6,7 @@ export declare const WrapperMenuActions: import("@emotion/styled").StyledCompone
6
6
  disabled?: boolean | undefined;
7
7
  disableFocusRipple?: boolean | undefined;
8
8
  edge?: false | "end" | "start" | undefined;
9
- size?: "small" | "medium" | "large" | undefined;
9
+ size?: "small" | "large" | "medium" | undefined;
10
10
  sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
11
11
  } & Omit<{
12
12
  action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
@@ -24,7 +24,7 @@ export declare const WrapperMenuActions: import("@emotion/styled").StyledCompone
24
24
  tabIndex?: number | undefined;
25
25
  TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
26
26
  touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
27
- }, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>> & {
27
+ }, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
28
28
  ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
29
29
  }, "disabled" | "children" | "tabIndex" | "action" | keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "sx" | "size" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
30
30
  export declare const LabelMemuItem: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,6 +1,6 @@
1
1
  import { useMemo } from "react";
2
2
  import { Skeleton, TablePagination } from "@mui/material";
3
- import { P as PagerActions } from "../../CommonActions/components/Actions/index.0645e30f.js";
3
+ import { P as PagerActions } from "../../CommonActions/components/Actions/index.2ce05d29.js";
4
4
  import { styled } from "@mui/material/styles";
5
5
  import { jsxs, jsx } from "react/jsx-runtime";
6
6
  styled("div")(() => ({
@@ -12,9 +12,9 @@ import "react-router-dom";
12
12
  import "@mui/material/Button";
13
13
  import { C as CircularProgress } from "../CircularProgress/index.ad569afd.js";
14
14
  import "@mui/lab";
15
- import { I as ImageButton } from "../Button/index.53b56958.js";
16
- import "../../CommonActions/components/Actions/index.0645e30f.js";
17
- import "../Pager/index.c0865b70.js";
15
+ import { I as ImageButton } from "../Button/index.1d13f53b.js";
16
+ import "../../CommonActions/components/Actions/index.2ce05d29.js";
17
+ import "../Pager/index.72b43352.js";
18
18
  import "../Tab/index.e0653a0a.js";
19
19
  const ArrowStyle = styled("span")(({
20
20
  arrowType,
@@ -4,9 +4,9 @@ import { Typography } from "@mui/material";
4
4
  import { styled } from "@mui/material/styles";
5
5
  import { B as BoxIcon } from "../../components/mui_extended/BoxIcon/index.e638ecc8.js";
6
6
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
7
- import { M as ModalDialog } from "../../components/ModalDialog/index.9ea10764.js";
8
- import { A as ActionIntro } from "../../components/CommonActions/components/ActionIntro/index.60ef7bd7.js";
9
- import { A as ActionCancel } from "../../components/CommonActions/components/ActionCancel/index.e498eeb2.js";
7
+ import { M as ModalDialog } from "../../components/ModalDialog/index.3e5675c4.js";
8
+ import { A as ActionIntro } from "../../components/CommonActions/components/ActionIntro/index.591a8195.js";
9
+ import { A as ActionCancel } from "../../components/CommonActions/components/ActionCancel/index.a57fcfae.js";
10
10
  import { b as getVariantColor } from "../../utils/index.214d9542.js";
11
11
  const WrapperContentConfirm = styled("div")(() => ({
12
12
  display: "flex",
@@ -86,10 +86,11 @@ function ModalProvider({
86
86
  title: "",
87
87
  iconComponent: void 0,
88
88
  contentComponent: void 0,
89
- variant: void 0
89
+ variant: void 0,
90
+ fullScreen: false
90
91
  });
91
- const [hasChanges, setHasChanges] = useState(false);
92
92
  const openModal = (modalOpenProps) => {
93
+ console.log("modal props", modalOpenProps);
93
94
  setModalOptions({
94
95
  open: true,
95
96
  ...modalOpenProps
@@ -130,19 +131,13 @@ function ModalProvider({
130
131
  ...last,
131
132
  open: false
132
133
  }));
133
- setHasChanges(false);
134
- };
135
- const setChanges = () => {
136
- setHasChanges(true);
137
134
  };
138
135
  return /* @__PURE__ */ jsxs(ModalContext.Provider, {
139
136
  value: {
140
137
  ...modalOptions,
141
138
  openModal,
142
139
  openModalConfirm,
143
- closeModal,
144
- hasChanges,
145
- setChanges
140
+ closeModal
146
141
  },
147
142
  children: [children, /* @__PURE__ */ jsx(ModalDialog, {})]
148
143
  });
@@ -16,6 +16,7 @@ export interface ModalOpenOptions {
16
16
  withClose?: boolean;
17
17
  variant?: VariantColor;
18
18
  onQueryClose?: () => void;
19
+ fullScreen?: boolean;
19
20
  title: string;
20
21
  iconComponent?: ReactNode;
21
22
  contentComponent?: ((props?: any) => JSX.Element) | ReactNode;
@@ -37,6 +38,4 @@ export interface ModalContextProps extends ModalState {
37
38
  openModal: (modalProps: ModalOpenOptions) => void;
38
39
  openModalConfirm: (modalOpenProps: OpenModalConfirmProps) => void;
39
40
  closeModal: () => void;
40
- setChanges?: () => void;
41
- hasChanges: boolean;
42
41
  }
@@ -52,6 +52,7 @@ function RHFormProvider(props) {
52
52
  return /* @__PURE__ */ jsx(FormProvider, {
53
53
  ...methods,
54
54
  children: /* @__PURE__ */ jsx(WrapperFormProvider, {
55
+ className: "m4l_FormProvider",
55
56
  id: "formProvider",
56
57
  onSubmit: methods.handleSubmit(onSubmit),
57
58
  children
@@ -1,5 +1,5 @@
1
1
  import { useContext } from "react";
2
- import { M as ModalContext } from "../../contexts/ModalContext/index.b92fa565.js";
2
+ import { M as ModalContext } from "../../contexts/ModalContext/index.cc3690d3.js";
3
3
  function useModal() {
4
4
  const context = useContext(ModalContext);
5
5
  if (!context)
package/index.js CHANGED
@@ -7,46 +7,46 @@ import "react-router-dom";
7
7
  import { L } from "./components/animate/LoadingScreen/index.1d0c4307.js";
8
8
  import "@m4l/core";
9
9
  import "react-hook-form";
10
- import { R, g } from "./components/hook-form/RHFAutocomplete/index.59a68f9f.js";
10
+ import { R, g } from "./components/hook-form/RHFAutocomplete/index.de93fe01.js";
11
11
  import "react";
12
12
  import { I as I2 } from "./components/Image/index.93d5f37f.js";
13
13
  import "lodash/debounce";
14
14
  import { R as R2 } from "./components/hook-form/RHFCheckbox/index.6dcec9e2.js";
15
15
  import "@mui/x-date-pickers";
16
- import { R as R3 } from "./components/hook-form/RHFDateTime/index.9231a7c7.js";
16
+ import { R as R3 } from "./components/hook-form/RHFDateTime/index.e70d2de3.js";
17
+ import "@m4l/graphics";
17
18
  import { R as R4, a as a2 } from "./components/hook-form/RHFTextField/index.f9aaaa90.js";
18
19
  import { I as I3 } from "./components/Icon/index.619c31c4.js";
19
- import { R as R5 } from "./components/hook-form/RHFPeriod/index.64a228d5.js";
20
+ import { R as R5 } from "./components/hook-form/RHFPeriod/index.fa8426ac.js";
20
21
  import { E } from "./components/ErrorLabel/index.c8615f16.js";
21
- import { P, g as g2 } from "./components/Period/index.2941fbda.js";
22
- import { b, M, d, g as g3 } from "./components/CommonActions/components/Actions/index.0645e30f.js";
22
+ import { P, g as g2 } from "./components/Period/index.111600f2.js";
23
+ import { b, M, d, g as g3 } from "./components/CommonActions/components/Actions/index.2ce05d29.js";
23
24
  import "@mui/material/Button";
24
- import { M as M2, a as a3 } from "./contexts/ModalContext/index.b92fa565.js";
25
+ import { M as M2, a as a3 } from "./contexts/ModalContext/index.cc3690d3.js";
25
26
  import "@mui/lab";
26
27
  import "lodash/isString";
27
28
  import "react-dropzone";
28
29
  import { R as R6 } from "./components/hook-form/RHFUpload/index.d5cc7c13.js";
29
30
  import { A } from "./components/mui_extended/Accordion/index.a02ac6ae.js";
30
31
  import { A as A2 } from "./components/mui_extended/Avatar/index.fe06afd7.js";
31
- import { B, L as L2 } from "./components/mui_extended/Button/index.53b56958.js";
32
- import { L as L3, P as P2 } from "./components/mui_extended/Popover/index.705275a4.js";
33
- import { P as P3, g as g4 } from "./components/mui_extended/Pager/index.c0865b70.js";
32
+ import { B, L as L2 } from "./components/mui_extended/Button/index.1d13f53b.js";
33
+ import { L as L3, P as P2 } from "./components/mui_extended/Popover/index.028756ac.js";
34
+ import { P as P3, g as g4 } from "./components/mui_extended/Pager/index.72b43352.js";
34
35
  import { T } from "./components/mui_extended/Tab/index.e0653a0a.js";
35
- import { D, N, T as T2, g as g5 } from "./components/DataGrid/index.76d8fd25.js";
36
+ import { D, N, T as T2, g as g5 } from "./components/DataGrid/index.07162c02.js";
36
37
  import "react-dnd";
37
38
  import "react-dnd-html5-backend";
38
- import "@m4l/graphics";
39
39
  import { S } from "./components/ScrollBar/index.39eeb2de.js";
40
- import { D as D2, d as d2, g as g6 } from "./components/DynamicFilter/index.342ba5fe.js";
40
+ import { D as D2, d as d2, g as g6 } from "./components/DynamicFilter/index.31876c9f.js";
41
41
  import "simplebar/dist/simplebar.min.css";
42
42
  import "@hookform/resolvers/yup";
43
- import { R as R7 } from "./contexts/RHFormContext/index.b142190a.js";
43
+ import { R as R7 } from "./contexts/RHFormContext/index.f8c00745.js";
44
44
  import "yup";
45
45
  import "./react-draggable.20e95c61.js";
46
- import { M as M3, d as d3, g as g7 } from "./components/ModalDialog/index.9ea10764.js";
46
+ import { M as M3, d as d3, g as g7 } from "./components/ModalDialog/index.3e5675c4.js";
47
47
  import { R as R8 } from "./components/Resizeable/index.45995d2b.js";
48
48
  import { N as N2, d as d4, g as g8 } from "./components/NoItemSelected/index.46d2f632.js";
49
- import { O, d as d5, g as g9 } from "./components/ObjectLogs/index.f941fb79.js";
49
+ import { O, d as d5, g as g9 } from "./components/ObjectLogs/index.35dbf836.js";
50
50
  import "./react-json-view.f56a7f8e.js";
51
51
  import { P as P4 } from "./components/PaperForm/index.ec9cb8c9.js";
52
52
  import { H } from "./components/Page/index.4237c241.js";
@@ -59,7 +59,7 @@ import { v as v3 } from "./components/animate/variants/container.11f82b76.js";
59
59
  import { v as v4, a as a4, b as b2 } from "./components/animate/variants/transition.bd46b9ce.js";
60
60
  import { M as M4 } from "./components/animate/MotionContainer/index.8d9f9d80.js";
61
61
  import { M as M5 } from "./components/animate/MotionLazyContainer/index.572dd012.js";
62
- import { R as R9, g as g10 } from "./components/hook-form/RHFAutocompleteAsync/index.c3083062.js";
62
+ import { R as R9, g as g10 } from "./components/hook-form/RHFAutocompleteAsync/index.ca696cce.js";
63
63
  import { R as R10 } from "./components/hook-form/RHFMultiCheckbox/index.2680b3b6.js";
64
64
  import { R as R11 } from "./components/hook-form/RHFSelect/index.b6ca8bb2.js";
65
65
  import { R as R12 } from "./components/hook-form/RHFRadioGroup/index.b3335e13.js";
@@ -68,17 +68,17 @@ import { B as B3 } from "./components/mui_extended/Breadcrumbs/index.5e37d903.js
68
68
  import { C } from "./components/mui_extended/CircularProgress/index.ad569afd.js";
69
69
  import { L as L4 } from "./components/mui_extended/LinkWithRoute/index.16436ab8.js";
70
70
  import { T as T3 } from "./components/mui_extended/Typography/index.e5494696.js";
71
- import { B as B4, c } from "./components/formatters/BooleanFormatter/index.8da35c9c.js";
72
- import { D as D3, c as c2 } from "./components/formatters/DateFormatter/index.1b9baacc.js";
73
- import { P as P6, a as a5, U, e, b as b3, c as c3, d as d6, g as g11 } from "./components/formatters/index.689a8086.js";
74
- import { A as A3 } from "./components/CommonActions/components/ActionCancel/index.e498eeb2.js";
75
- import { A as A4 } from "./components/CommonActions/components/ActionIntro/index.60ef7bd7.js";
76
- import { A as A5 } from "./components/CommonActions/components/ActionFormCancel/index.4ff0ad73.js";
71
+ import { B as B4, c } from "./components/formatters/BooleanFormatter/index.ae70b54f.js";
72
+ import { D as D3, c as c2 } from "./components/formatters/DateFormatter/index.ed73f8ae.js";
73
+ import { P as P6, a as a5, U, e, b as b3, c as c3, d as d6, g as g11 } from "./components/formatters/index.9bd10770.js";
74
+ import { A as A3 } from "./components/CommonActions/components/ActionCancel/index.a57fcfae.js";
75
+ import { A as A4 } from "./components/CommonActions/components/ActionIntro/index.591a8195.js";
76
+ import { A as A5 } from "./components/CommonActions/components/ActionFormCancel/index.b8215cd2.js";
77
77
  import { A as A6 } from "./components/CommonActions/components/ActionFormIntro/index.ca4d2674.js";
78
78
  import { L as L5 } from "./components/Loadable/index.f5518558.js";
79
79
  import { S as S3 } from "./components/ScrollToTop/index.e06f98f6.js";
80
80
  import { u } from "./hooks/useFormAddEdit/index.d4845f1a.js";
81
- import { u as u2 } from "./hooks/useModal/index.5fee01a3.js";
81
+ import { u as u2 } from "./hooks/useModal/index.78ee58f3.js";
82
82
  import { L as L6 } from "./assets/Logo/index.228dcb5a.js";
83
83
  import "./utils/index.214d9542.js";
84
84
  import "./react-data-grid.d46d625e.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/components",
3
- "version": "0.1.28",
3
+ "version": "0.1.30",
4
4
  "license": "UNLICENSED",
5
5
  "dependencies": {
6
6
  "@hookform/resolvers": "^2.9.10",