@m4l/components 0.2.15 → 0.2.16

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 (133) hide show
  1. package/@types/export.d.ts +16 -4
  2. package/{commonjs.565e6834.js → commonjs.333e55c7.js} +5 -0
  3. package/components/AccountPopover/{index.da84c424.js → index.34362031.js} +2 -4
  4. package/components/AccountPopover/index.d.ts +1 -0
  5. package/components/AppBar/AppBar.d.ts +24 -0
  6. package/components/AppBar/classes/index.d.ts +2 -0
  7. package/components/AppBar/classes/types.d.ts +2 -0
  8. package/components/AppBar/{index.46f2db0a.js → index.c64b66ee.js} +26 -5
  9. package/components/AppBar/types.d.ts +14 -0
  10. package/components/CommonActions/components/ActionCancel/{index.06365996.js → index.106c5327.js} +1 -1
  11. package/components/CommonActions/components/ActionFormCancel/{index.2c1fff45.js → index.6d00f737.js} +4 -13
  12. package/components/CommonActions/components/ActionFormIntro/{index.885f49af.js → index.9ee7df17.js} +1 -1
  13. package/components/CommonActions/components/ActionIntro/{index.b97cfeec.js → index.bd2a14b2.js} +1 -1
  14. package/components/DataGrid/formatters/columnPointsFormatter/{index.5e645334.js → index.a19b7b90.js} +1 -1
  15. package/components/DataGrid/{index.e127cac8.js → index.e5b552a2.js} +7 -7
  16. package/components/DataGrid/subcomponents/Actions/{index.5947f820.js → index.2f58e034.js} +8 -8
  17. package/components/DragResizeWindow/{index.67aa1e22.js → index.b5206081.js} +4 -4
  18. package/components/DynamicFilter/classes/index.d.ts +1 -1
  19. package/components/DynamicFilter/classes/types.d.ts +1 -0
  20. package/components/DynamicFilter/{index.068ca09c.js → index.73258cb8.js} +14 -10
  21. package/components/GridLayout/{index.367e44f9.js → index.4d26c328.js} +2 -2
  22. package/components/GridLayout/subcomponents/Griditem/{index.b3c79b77.js → index.25e9f332.js} +3 -3
  23. package/components/GridLayout/subcomponents/Responsive/{index.4234d9f3.js → index.3839890b.js} +1 -1
  24. package/components/GridLayout/subcomponents/SizeProvider/{index.0676f896.js → index.a751962f.js} +1 -1
  25. package/components/Icon/index.282c5b58.js +248 -0
  26. package/components/Icon/types.d.ts +1 -0
  27. package/components/Image/{index.d5fed0ab.js → index.8915f577.js} +46 -4
  28. package/components/Image/types.d.ts +2 -2
  29. package/components/LanguagePopover/{index.02987c68.js → index.5e1d85a9.js} +2 -2
  30. package/components/LoadingError/{index.991393ca.js → index.d95e6efb.js} +2 -2
  31. package/components/MFLoader/{index.b928e361.js → index.cc563716.js} +1 -1
  32. package/components/ModalDialog/{index.a30831c9.js → index.690c82a4.js} +3 -3
  33. package/components/NoItemSelected/{index.1ddc6a38.js → index.5246b204.js} +1 -1
  34. package/components/ObjectLogs/{index.546bf5bf.js → index.f2b5f7d9.js} +7 -7
  35. package/components/PDFViewer/PDFViewer.d.ts +2 -0
  36. package/components/PDFViewer/classes/constants.d.ts +1 -0
  37. package/components/PDFViewer/classes/index.d.ts +7 -0
  38. package/components/PDFViewer/classes/types.d.ts +7 -0
  39. package/components/PDFViewer/index.51e4f1b2.js +63 -0
  40. package/components/PDFViewer/index.d.ts +1 -0
  41. package/components/PDFViewer/types.d.ts +3 -0
  42. package/components/Page/{index.c3767243.js → index.f4aedd2d.js} +1 -1
  43. package/components/PaperForm/{index.27dafbcc.js → index.30f68f0f.js} +1 -1
  44. package/components/Period/{index.288a0ec2.js → index.8e118051.js} +1 -1
  45. package/components/PopupsProvider/{index.ae1bd010.js → index.c9400f03.js} +1 -1
  46. package/components/PrintingSystem/{index.b69edc07.js → index.9dc25af9.js} +14 -42
  47. package/components/PrintingSystem/subcomponents/BodyNode/{index.81da2c9c.js → index.6c1cf8f5.js} +1 -1
  48. package/components/PrintingSystem/subcomponents/ChartNode/{index.1863bcf1.js → index.fdb01c74.js} +4 -4
  49. package/components/PrintingSystem/subcomponents/DividerNode/{index.0e6e76ad.js → index.46c5eb9e.js} +1 -1
  50. package/components/PrintingSystem/subcomponents/FooterNode/{index.5af68fd5.js → index.18aa1ddd.js} +1 -1
  51. package/components/PrintingSystem/subcomponents/GridNode/{index.07d4f9a4.js → index.f4b4ffca.js} +4 -4
  52. package/components/PrintingSystem/subcomponents/HeaderNode/{index.dbf08ab4.js → index.9afcd686.js} +1 -1
  53. package/components/PrintingSystem/subcomponents/PaperNode/{index.d81d2f30.js → index.a3967d23.js} +4 -4
  54. package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.4c20215d.js → index.e1c05641.js} +1 -1
  55. package/components/PrintingSystem/subcomponents/QRImageNode/index.d.ts +2 -0
  56. package/components/PrintingSystem/subcomponents/QRImageNode/types.d.ts +3 -0
  57. package/components/PrintingSystem/subcomponents/SectionNode/{index.72cb64b8.js → index.c5588090.js} +1 -1
  58. package/components/PrintingSystem/subcomponents/TextBoxNode/{index.41c261f4.js → index.7792384b.js} +3 -3
  59. package/components/PrintingSystem/types.d.ts +10 -1
  60. package/components/PropertyValue/classes/index.d.ts +1 -1
  61. package/components/PropertyValue/classes/types.d.ts +4 -1
  62. package/components/PropertyValue/index.d61c943c.js +206 -0
  63. package/components/PropertyValue/types.d.ts +5 -7
  64. package/components/Resizeable/{index.e4f47710.js → index.18c86aff.js} +1 -1
  65. package/components/ScrollBar/{index.65bb2930.js → index.010f1b9d.js} +5 -1
  66. package/components/SideBar/classes/index.d.ts +1 -1
  67. package/components/SideBar/{index.e4d2ee53.js → index.f5aecd41.js} +11 -11
  68. package/components/SideBar/types.d.ts +3 -3
  69. package/components/SplitLayout/{index.9ef430f6.js → index.30fd5861.js} +1 -1
  70. package/components/ToastContainer/ToastContainer.d.ts +2 -0
  71. package/components/ToastContainer/classes/constants.d.ts +1 -0
  72. package/components/ToastContainer/classes/index.d.ts +8 -0
  73. package/components/ToastContainer/classes/types.d.ts +9 -0
  74. package/components/ToastContainer/index.83304f62.js +87 -0
  75. package/components/ToastContainer/index.d.ts +2 -0
  76. package/components/ToastContainer/subcomponents/ToastMessage/index.d.ts +2 -0
  77. package/components/ToastContainer/subcomponents/ToastMessage/types.d.ts +5 -0
  78. package/components/ToastContainer/types.d.ts +4 -0
  79. package/components/areas/components/AreasAdmin/{index.8426755c.js → index.c55d5c24.js} +10 -10
  80. package/components/areas/components/AreasViewer/{index.6b310068.js → index.2bec316e.js} +12 -12
  81. package/components/areas/contexts/AreasContext/{index.1e3974e1.js → index.827ee1e5.js} +4 -4
  82. package/components/areas/hooks/useAreas/{index.21fa4ab1.js → index.71bc8f19.js} +1 -1
  83. package/components/formatters/BooleanFormatter/{index.fcc47dfd.js → index.b21353a5.js} +2 -2
  84. package/components/formatters/PointsFormatter/{index.80a4e414.js → index.5c94c5e8.js} +2 -2
  85. package/components/formatters/PointsFormatter/index.d.ts +1 -1
  86. package/components/formatters/{index.7d5cbac9.js → index.7b216229.js} +1 -1
  87. package/components/hook-form/RHFAutocomplete/classes/types.d.ts +2 -0
  88. package/components/hook-form/RHFAutocomplete/{index.ea720b8f.js → index.210ee73f.js} +26 -35
  89. package/components/hook-form/RHFAutocomplete/subcomponents/RenderOption/index.d.ts +1 -1
  90. package/components/hook-form/RHFAutocomplete/subcomponents/Skeleton/types.d.ts +1 -2
  91. package/components/hook-form/RHFAutocomplete/types.d.ts +8 -3
  92. package/components/hook-form/RHFAutocompleteAsync/{index.1609eaf0.js → index.e5935f63.js} +1 -1
  93. package/components/hook-form/RHFColorPicker/classes/constants.d.ts +1 -0
  94. package/components/hook-form/RHFColorPicker/classes/index.d.ts +11 -0
  95. package/components/hook-form/RHFColorPicker/classes/types.d.ts +11 -0
  96. package/components/hook-form/RHFColorPicker/index.bcc1eced.js +150 -0
  97. package/components/hook-form/RHFColorPicker/index.d.ts +6 -0
  98. package/components/hook-form/RHFColorPicker/subcomponents/Skeleton/indext.d.ts +1 -0
  99. package/components/hook-form/RHFColorPicker/types.d.ts +5 -0
  100. package/components/hook-form/RHFDateTime/{index.8bd9e41e.js → index.fa80a8cb.js} +1 -1
  101. package/components/hook-form/RHFDateTime/types.d.ts +0 -1
  102. package/components/hook-form/RHFPeriod/{index.89bebd60.js → index.d320e56f.js} +1 -1
  103. package/components/hook-form/RHFTextField/{index.2c8d4613.js → index.ab689d7d.js} +1 -1
  104. package/components/hook-form/RHFUpload/{index.55e495bb.js → index.e251c9b6.js} +4 -4
  105. package/components/index.d.ts +2 -0
  106. package/components/maps/components/GpsTools/{index.1b6d82bc.js → index.03998a42.js} +14 -14
  107. package/components/maps/components/Map/{index.f38df83e.js → index.b79ceae4.js} +3 -3
  108. package/components/modal/{WindowBase.a4534b0b.js → WindowBase.779aa7a5.js} +3 -3
  109. package/components/modal/{WindowConfirm.7a79bfa5.js → WindowConfirm.ec73ba4f.js} +5 -5
  110. package/components/mui_extended/Accordion/{index.f1289de0.js → index.e15e10d9.js} +2 -2
  111. package/components/mui_extended/Button/classes/types.d.ts +2 -0
  112. package/components/mui_extended/Button/{index.007f5a6e.js → index.5c68764a.js} +3 -3
  113. package/components/mui_extended/IconButton/{index.b705c196.js → index.a719445f.js} +1 -1
  114. package/components/mui_extended/LoadingButton/classes/constants.d.ts +1 -1
  115. package/components/mui_extended/MenuActions/{index.aa43c4f2.js → index.62359120.js} +2 -2
  116. package/components/mui_extended/Pager/{index.9928807e.js → index.fa5f5ded.js} +1 -1
  117. package/components/mui_extended/ToggleButton/{index.b053aa70.js → index.5aa6ea58.js} +1 -1
  118. package/components/mui_extended/ToggleIconButton/{index.80d38bf4.js → index.47ddefd4.js} +1 -1
  119. package/contexts/ModalContext/{index.054af5d8.js → index.6085b148.js} +1 -1
  120. package/hooks/useFormAddEdit/{index.b4348b6a.js → index.59821a33.js} +2 -2
  121. package/hooks/useModal/{index.acc61361.js → index.1c88654a.js} +1 -1
  122. package/index.js +95 -80
  123. package/node_modules.bb836860.js +6921 -0
  124. package/package.json +5 -1
  125. package/{react-draggable.2bc0e647.js → react-draggable.312ab17d.js} +3 -3
  126. package/{react-json-view.57125fcf.js → react-json-view.5636414a.js} +1 -1
  127. package/{react-resizable.53094455.js → react-resizable.f2c58a4c.js} +4 -4
  128. package/{react-splitter-layout.8b1655c8.js → react-splitter-layout.c5d98bf7.js} +3 -3
  129. package/components/Icon/index.aa9949f0.js +0 -147
  130. package/components/PrintingSystem/utils/getEvalValue/index.d.ts +0 -1
  131. package/components/PropertyValue/index.92ccdf7a.js +0 -220
  132. package/components/PropertyValue/skeleton.d.ts +0 -2
  133. package/components/hook-form/RHFColorPicker/index.259b6f38.js +0 -61
@@ -0,0 +1,150 @@
1
+ import { useState } from "react";
2
+ import { useFormContext, Controller } from "react-hook-form";
3
+ import { useModuleSkeleton, useEnvironment, useModuleDictionary } from "@m4l/core";
4
+ import { S as SketchPicker } from "../../../node_modules.bb836860.js";
5
+ import "lodash-es/debounce";
6
+ import "lodash-es/each";
7
+ import { jsx, jsxs } from "react/jsx-runtime";
8
+ import { H as HelperText } from "../../HelperText/index.7d2afdb3.js";
9
+ import { generateUtilityClasses, generateUtilityClass, styled, Skeleton as Skeleton$1 } from "@mui/material";
10
+ import { unstable_composeClasses } from "@mui/base";
11
+ import { useTheme } from "@mui/material/styles";
12
+ import { P as Popover } from "../../mui_extended/Popover/index.b3eca6b1.js";
13
+ import { I as Icon } from "../../Icon/index.282c5b58.js";
14
+ import { B as Button } from "../../mui_extended/Button/index.5c68764a.js";
15
+ const componentName = "M4LRHFColorPicker";
16
+ const colorPickerClasses = generateUtilityClasses(componentName, [
17
+ "root",
18
+ "popoverRoot",
19
+ "containerFieldColor",
20
+ "fieldColor",
21
+ "containerPicker",
22
+ "skeleton"
23
+ ]);
24
+ function getRHFColorPickerUtilityClass(slot) {
25
+ return generateUtilityClass(componentName, slot);
26
+ }
27
+ const useUtilityClasses = () => {
28
+ const slots = {
29
+ root: ["root"],
30
+ popoverRoot: ["popoverRoot"],
31
+ containerFieldColor: ["containerFieldColor"],
32
+ fieldColor: ["boxColor"],
33
+ containerPicker: ["containerPicker"],
34
+ skeleton: ["skeleton"]
35
+ };
36
+ const composedClasses = unstable_composeClasses(slots, getRHFColorPickerUtilityClass, {});
37
+ return {
38
+ ...composedClasses
39
+ };
40
+ };
41
+ const RHFColorPickerRoot = styled("div")(({ theme }) => ({
42
+ ...theme.components?.M4LRHFColorPicker?.styleOverrides
43
+ }));
44
+ const Skeleton = () => {
45
+ return /* @__PURE__ */ jsx(Skeleton$1, {
46
+ className: colorPickerClasses.skeleton,
47
+ variant: "rectangular",
48
+ width: 20,
49
+ height: 20
50
+ });
51
+ };
52
+ const RHFColorPicker = (props) => {
53
+ const {
54
+ name
55
+ } = props;
56
+ const {
57
+ control,
58
+ setValue,
59
+ getValues
60
+ } = useFormContext();
61
+ const isSkeleton = useModuleSkeleton();
62
+ const {
63
+ host_static_assets,
64
+ environment_assets
65
+ } = useEnvironment();
66
+ const theme = useTheme();
67
+ const currentColor = getValues(name);
68
+ const [tempColor, setTempColor] = useState(() => currentColor || "#ffffff");
69
+ const [anchorEl, setAnchorEl] = useState(null);
70
+ const {
71
+ getLabel
72
+ } = useModuleDictionary();
73
+ const handleColorChange = (color) => {
74
+ setTempColor(color.hex);
75
+ };
76
+ const handleApprove = () => {
77
+ setAnchorEl(null);
78
+ if (tempColor !== currentColor) {
79
+ setValue(name, tempColor);
80
+ }
81
+ };
82
+ const classes = useUtilityClasses();
83
+ if (isSkeleton) {
84
+ return /* @__PURE__ */ jsx(Skeleton, {});
85
+ }
86
+ return /* @__PURE__ */ jsx(Controller, {
87
+ name,
88
+ control,
89
+ defaultValue: "",
90
+ render: ({
91
+ field,
92
+ fieldState: {
93
+ error
94
+ }
95
+ }) => /* @__PURE__ */ jsxs(RHFColorPickerRoot, {
96
+ className: classes.root,
97
+ children: [/* @__PURE__ */ jsxs("div", {
98
+ className: classes.containerFieldColor,
99
+ onClick: (event) => setAnchorEl(event.currentTarget),
100
+ children: [/* @__PURE__ */ jsx("div", {
101
+ className: classes.fieldColor,
102
+ style: {
103
+ backgroundColor: field.value,
104
+ width: "20px",
105
+ height: "20px",
106
+ cursor: "pointer"
107
+ }
108
+ }), /* @__PURE__ */ jsx(Icon, {
109
+ src: `${host_static_assets}/${environment_assets}/frontend/components/rhfcolorpicker/assets/icons/chevron_right.svg`
110
+ })]
111
+ }), error?.message && /* @__PURE__ */ jsx(HelperText, {
112
+ variant: "error",
113
+ message: error?.message + ""
114
+ }), /* @__PURE__ */ jsx(Popover, {
115
+ open: Boolean(anchorEl),
116
+ arrowType: "top-center",
117
+ className: classes.popoverRoot,
118
+ anchorEl,
119
+ onClose: () => setAnchorEl(null),
120
+ anchorOrigin: {
121
+ vertical: "bottom",
122
+ horizontal: "center"
123
+ },
124
+ transformOrigin: {
125
+ vertical: "top",
126
+ horizontal: "center"
127
+ },
128
+ sx: {
129
+ mt: "12px",
130
+ ...theme.components?.M4LRHFColorPickerPopoverRoot?.styleOverrides
131
+ },
132
+ children: /* @__PURE__ */ jsxs("div", {
133
+ className: classes.containerPicker,
134
+ children: [/* @__PURE__ */ jsx(SketchPicker, {
135
+ color: tempColor,
136
+ onChange: handleColorChange,
137
+ disableAlpha: true
138
+ }), /* @__PURE__ */ jsx(Button, {
139
+ variant: "contained",
140
+ onClick: handleApprove,
141
+ children: getLabel("rhfcolorpicker.accept")
142
+ })]
143
+ })
144
+ })]
145
+ })
146
+ });
147
+ };
148
+ export {
149
+ RHFColorPicker as R
150
+ };
@@ -1,2 +1,8 @@
1
1
  import { RHFColorPickerProps } from './types';
2
+ /**
3
+ * Componente RHFColorPicker para seleccionar colores con React Hook Form.
4
+ * @component
5
+ * @param {RHFColorPickerProps} props - Propiedades del componente.
6
+ * @returns {JSX.Element} - Elemento JSX que representa el componente.
7
+ */
2
8
  export declare const RHFColorPicker: (props: RHFColorPickerProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const Skeleton: () => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,8 @@
1
1
  export interface RHFColorPickerProps {
2
+ /**
3
+ * Identificador del campo dentro del formulario de react hook form
4
+ */
2
5
  name: string;
3
6
  }
7
+ export interface OwnerState {
8
+ }
@@ -11,7 +11,7 @@ import clsx from "clsx";
11
11
  import { H as HelperText } from "../../HelperText/index.7d2afdb3.js";
12
12
  import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
13
13
  import { T as Typography } from "../../mui_extended/Typography/index.379dd374.js";
14
- import { I as Icon } from "../../Icon/index.aa9949f0.js";
14
+ import { I as Icon } from "../../Icon/index.282c5b58.js";
15
15
  const SKTRHFWrapperTextField = styled("div")(({
16
16
  theme
17
17
  }) => ({
@@ -2,7 +2,6 @@ export interface RHFDateTimeProps {
2
2
  skeletonWidth?: string | number;
3
3
  skeletonHeight?: string | number;
4
4
  name: string;
5
- withMask?: boolean;
6
5
  variant?: RHFDateTimeVariants;
7
6
  size?: SizeType;
8
7
  disabled?: boolean;
@@ -3,7 +3,7 @@ import { useFormContext, Controller } from "react-hook-form";
3
3
  import { H as HelperText } from "../../HelperText/index.7d2afdb3.js";
4
4
  import { unstable_composeClasses } from "@mui/base";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
- import { P as Period } from "../../Period/index.288a0ec2.js";
6
+ import { P as Period } from "../../Period/index.8e118051.js";
7
7
  const RHFPeriodRoot = styled("div")(({
8
8
  theme
9
9
  }) => ({
@@ -1,7 +1,7 @@
1
1
  import { useModuleSkeleton, useEnvironment } from "@m4l/core";
2
2
  import { styled, Skeleton, generateUtilityClasses, TextField, InputAdornment, generateUtilityClass } from "@mui/material";
3
3
  import { forwardRef, useState, useEffect } from "react";
4
- import { I as IconButton } from "../../mui_extended/IconButton/index.b705c196.js";
4
+ import { I as IconButton } from "../../mui_extended/IconButton/index.a719445f.js";
5
5
  import { useFormContext, Controller } from "react-hook-form";
6
6
  import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
7
7
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
@@ -1,8 +1,8 @@
1
1
  import { useCallback } from "react";
2
2
  import { useFormContext, Controller } from "react-hook-form";
3
- import isString from "lodash/isString";
3
+ import require$$0 from "lodash/isString";
4
4
  import { useDropzone } from "react-dropzone";
5
- import { I as Image } from "../../Image/index.d5fed0ab.js";
5
+ import { I as Image } from "../../Image/index.8915f577.js";
6
6
  import { useEnvironment, useModuleDictionary, useModuleSkeleton } from "@m4l/core";
7
7
  import { styled } from "@mui/material/styles";
8
8
  import { Skeleton, generateUtilityClasses, generateUtilityClass, styled as styled$1 } from "@mui/material";
@@ -10,7 +10,7 @@ import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
10
10
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
11
11
  import { unstable_composeClasses } from "@mui/base";
12
12
  import { T as Typography } from "../../mui_extended/Typography/index.379dd374.js";
13
- import { B as Button } from "../../mui_extended/Button/index.007f5a6e.js";
13
+ import { B as Button } from "../../mui_extended/Button/index.5c68764a.js";
14
14
  import { H as HelperText } from "../../HelperText/index.7d2afdb3.js";
15
15
  const UploadImageRoot = styled("div")(({
16
16
  theme
@@ -140,7 +140,7 @@ function UploadImage({
140
140
  } : {},
141
141
  children: /* @__PURE__ */ jsx(Image, {
142
142
  alt: "bgImageUploadImage",
143
- src: isString(file) ? file : file.preview || "",
143
+ src: require$$0(file) ? file : file.preview || "",
144
144
  ratio: "1:1"
145
145
  })
146
146
  }), /* @__PURE__ */ jsx("div", {
@@ -34,6 +34,7 @@ export * from './NoItemSelected/dictionary';
34
34
  export * from './ObjectLogs';
35
35
  export * from './ObjectLogs/dictionary';
36
36
  export * from './PaperForm/PaperForm';
37
+ export * from './PDFViewer';
37
38
  export * from './Period';
38
39
  export * from './HelmetPage';
39
40
  export * from './PropertyValue/PropertyValue';
@@ -41,6 +42,7 @@ export * from './ResizeableWindow';
41
42
  export * from './ScrollBar';
42
43
  export { ScrollToTop } from './ScrollToTop';
43
44
  export * from './SplitLayout/SplitLayout';
45
+ export * from './ToastContainer';
44
46
  export * from './SideBar';
45
47
  export * from './AppBar';
46
48
  export * from './AccountPopover';
@@ -7,35 +7,35 @@ import { devtools } from "zustand/middleware";
7
7
  import { immer } from "zustand/middleware/immer";
8
8
  import { enableMapSet } from "immer";
9
9
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
10
- import { D as DICCTIONARY, u as useMapStore, m as mapClasses, a as MAP_ZINDEX_DEFAULT, C as CommonFeatureRender, M as MAP_ZINDEX_OVER_MAP, b as useDisableZoomEvents } from "../Map/index.f38df83e.js";
11
- import { D as DynamicFilter } from "../../../DynamicFilter/index.068ca09c.js";
12
- import { e as ColumnSetCheckFormatter, f as columnDateFormatter, c as DataGrid } from "../../../DataGrid/index.e127cac8.js";
13
- import { u as useModal } from "../../../../hooks/useModal/index.acc61361.js";
14
- import { W as WindowConfirm } from "../../../modal/WindowConfirm.7a79bfa5.js";
10
+ import { D as DICCTIONARY, u as useMapStore, m as mapClasses, a as MAP_ZINDEX_DEFAULT, C as CommonFeatureRender, M as MAP_ZINDEX_OVER_MAP, b as useDisableZoomEvents } from "../Map/index.b79ceae4.js";
11
+ import { D as DynamicFilter } from "../../../DynamicFilter/index.73258cb8.js";
12
+ import { e as ColumnSetCheckFormatter, f as columnDateFormatter, c as DataGrid } from "../../../DataGrid/index.e5b552a2.js";
13
+ import { u as useModal } from "../../../../hooks/useModal/index.1c88654a.js";
14
+ import { W as WindowConfirm } from "../../../modal/WindowConfirm.ec73ba4f.js";
15
15
  import { generateUtilityClasses } from "@mui/material";
16
16
  import "@mui/base";
17
17
  import { S as Stack } from "../../../mui_extended/Stack/index.0e53197c.js";
18
- import { B as Button } from "../../../mui_extended/Button/index.007f5a6e.js";
18
+ import { B as Button } from "../../../mui_extended/Button/index.5c68764a.js";
19
19
  import { useFormContext, useWatch } from "react-hook-form";
20
20
  import { H as HelperError } from "../../../hook-form/HelperError/index.66bbcac3.js";
21
21
  import { A as Actions } from "../../../CommonActions/components/Actions/index.8368ac0f.js";
22
- import { A as ActionFormIntro } from "../../../CommonActions/components/ActionFormIntro/index.885f49af.js";
22
+ import { A as ActionFormIntro } from "../../../CommonActions/components/ActionFormIntro/index.9ee7df17.js";
23
23
  import { useMap } from "react-leaflet";
24
24
  import { u as useFormReadyForUpdate } from "../../../../hooks/useFormReadyForUpdate/index.f60f500e.js";
25
25
  import * as L from "leaflet";
26
26
  import { u as useTab } from "../../../../hooks/useTab/index.500c048b.js";
27
- import { P as PaperForm } from "../../../PaperForm/index.27dafbcc.js";
28
- import { R as RHFAutocomplete } from "../../../hook-form/RHFAutocomplete/index.ea720b8f.js";
29
- import { R as RHFTextField } from "../../../hook-form/RHFTextField/index.2c8d4613.js";
30
- import { P as PropertyValue } from "../../../PropertyValue/index.92ccdf7a.js";
31
- import { R as RHFColorPicker } from "../../../hook-form/RHFColorPicker/index.259b6f38.js";
27
+ import { P as PaperForm } from "../../../PaperForm/index.30f68f0f.js";
28
+ import { R as RHFAutocomplete } from "../../../hook-form/RHFAutocomplete/index.210ee73f.js";
29
+ import { R as RHFTextField } from "../../../hook-form/RHFTextField/index.ab689d7d.js";
30
+ import { P as PropertyValue } from "../../../PropertyValue/index.d61c943c.js";
31
+ import { R as RHFColorPicker } from "../../../hook-form/RHFColorPicker/index.bcc1eced.js";
32
32
  import clsx from "clsx";
33
33
  import { T as Tabs, a as Tab, b as TabContent, c as TabProvider } from "../../../mui_extended/Tab/index.cefe27e7.js";
34
34
  import { T as Tooltip } from "../../../mui_extended/Tooltip/index.24a2bc3f.js";
35
35
  import * as Yup from "yup";
36
- import { u as useFormAddEdit } from "../../../../hooks/useFormAddEdit/index.b4348b6a.js";
36
+ import { u as useFormAddEdit } from "../../../../hooks/useFormAddEdit/index.59821a33.js";
37
37
  import { R as RHFormProvider } from "../../../../contexts/RHFormContext/index.7769076a.js";
38
- import { R as RHFAutocompleteAsync } from "../../../hook-form/RHFAutocompleteAsync/index.1609eaf0.js";
38
+ import { R as RHFAutocompleteAsync } from "../../../hook-form/RHFAutocompleteAsync/index.e5935f63.js";
39
39
  import "@geoman-io/leaflet-geoman-free/dist/leaflet-geoman.css";
40
40
  import "@geoman-io/leaflet-geoman-free";
41
41
  import { styled } from "@mui/material/styles";
@@ -9,10 +9,10 @@ import "leaflet.markercluster";
9
9
  import { jsx, Fragment, jsxs } from "react/jsx-runtime";
10
10
  import { cloneDeep, throttle } from "lodash";
11
11
  import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
12
- import { e as ColumnSetCheckFormatter, c as DataGrid } from "../../../DataGrid/index.e127cac8.js";
12
+ import { e as ColumnSetCheckFormatter, c as DataGrid } from "../../../DataGrid/index.e5b552a2.js";
13
13
  import { u as useStateRef } from "../../../../hooks/useStateRef/index.538edb89.js";
14
- import { u as usePopupsStore, P as PopupsProvider } from "../../../PopupsProvider/index.ae1bd010.js";
15
- import { T as ToggleButton } from "../../../mui_extended/ToggleButton/index.b053aa70.js";
14
+ import { u as usePopupsStore, P as PopupsProvider } from "../../../PopupsProvider/index.c9400f03.js";
15
+ import { T as ToggleButton } from "../../../mui_extended/ToggleButton/index.5aa6ea58.js";
16
16
  import { createStore, useStore } from "zustand";
17
17
  import { useResponsiveDesktop, useFirstRender } from "@m4l/graphics";
18
18
  import { devtools } from "zustand/middleware";
@@ -2,9 +2,9 @@ import { m as modalUtilityClasses } from "./index.61389369.js";
2
2
  import { useEnvironment } from "@m4l/core";
3
3
  import clsx from "clsx";
4
4
  import { jsxs, jsx } from "react/jsx-runtime";
5
- import { I as IconButton } from "../mui_extended/IconButton/index.b705c196.js";
6
- import { I as Icon } from "../Icon/index.aa9949f0.js";
7
- import { u as useModal } from "../../hooks/useModal/index.acc61361.js";
5
+ import { I as IconButton } from "../mui_extended/IconButton/index.a719445f.js";
6
+ import { I as Icon } from "../Icon/index.282c5b58.js";
7
+ import { u as useModal } from "../../hooks/useModal/index.1c88654a.js";
8
8
  const Header = (props) => {
9
9
  const {
10
10
  title,
@@ -1,13 +1,13 @@
1
1
  import { A as Actions } from "../CommonActions/components/Actions/index.8368ac0f.js";
2
2
  import { Typography } from "@mui/material";
3
3
  import { useModuleDictionary, useEnvironment } from "@m4l/core";
4
- import { u as useModal } from "../../hooks/useModal/index.acc61361.js";
4
+ import { u as useModal } from "../../hooks/useModal/index.1c88654a.js";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
- import { I as Image } from "../Image/index.d5fed0ab.js";
6
+ import { I as Image } from "../Image/index.8915f577.js";
7
7
  import { m as modalUtilityClasses } from "./index.61389369.js";
8
- import { W as WindowBase } from "./WindowBase.a4534b0b.js";
9
- import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.06365996.js";
10
- import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.b97cfeec.js";
8
+ import { W as WindowBase } from "./WindowBase.779aa7a5.js";
9
+ import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.106c5327.js";
10
+ import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.bd2a14b2.js";
11
11
  const dictionary = {
12
12
  MESSAGE: "common_actions.confirm_quit_msg"
13
13
  };
@@ -1,12 +1,12 @@
1
1
  import { generateUtilityClasses, generateUtilityClass, styled, Accordion as Accordion$1, AccordionSummary, AccordionDetails } from "@mui/material";
2
- import { I as IconButton } from "../IconButton/index.b705c196.js";
2
+ import { I as IconButton } from "../IconButton/index.a719445f.js";
3
3
  import { useEnvironment } from "@m4l/core";
4
4
  import { unstable_composeClasses } from "@mui/base";
5
5
  import clsx from "clsx";
6
6
  import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
7
7
  import { g as getNameDataTestId } from "../../../test/getNameDataTestId.14875ec7.js";
8
8
  import { jsx, jsxs } from "react/jsx-runtime";
9
- import { I as Icon } from "../../Icon/index.aa9949f0.js";
9
+ import { I as Icon } from "../../Icon/index.282c5b58.js";
10
10
  import { T as Typography } from "../Typography/index.379dd374.js";
11
11
  const componentName = "M4LAccordion";
12
12
  generateUtilityClasses(componentName, [
@@ -1,3 +1,4 @@
1
+ import { useUtilityClasses } from ".";
1
2
  export interface ButtonClassesType {
2
3
  root: string;
3
4
  skeleton: string;
@@ -15,3 +16,4 @@ export interface ButtonClassesType {
15
16
  toggleNotPressed: string;
16
17
  }
17
18
  export declare type ButtonClassesKey = keyof ButtonClassesType;
19
+ export declare type Classes = ReturnType<typeof useUtilityClasses>;
@@ -5,7 +5,7 @@ import { unstable_composeClasses } from "@mui/base";
5
5
  import clsx from "clsx";
6
6
  import { jsx } from "react/jsx-runtime";
7
7
  import { useMemo } from "react";
8
- import { I as Image } from "../../Image/index.d5fed0ab.js";
8
+ import { I as Image } from "../../Image/index.8915f577.js";
9
9
  import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
10
10
  import { LoadingButton as LoadingButton$1 } from "@mui/lab";
11
11
  import { T as Typography } from "../Typography/index.379dd374.js";
@@ -146,7 +146,7 @@ function ImageButton({
146
146
  }) : imageButton
147
147
  });
148
148
  }
149
- const componentName = "M4LoadingButton";
149
+ const componentName = "M4LLoadingButton";
150
150
  generateUtilityClasses(componentName, [
151
151
  "root",
152
152
  "skeleton",
@@ -171,7 +171,7 @@ const useUtilityClasses = (onwerState) => {
171
171
  };
172
172
  };
173
173
  const LoadingButtonRoot = styled("div")(({ theme }) => ({
174
- ...theme.components?.M4LoadingButton?.styleOverrides
174
+ ...theme.components?.M4LLoadingButton?.styleOverrides
175
175
  }));
176
176
  const LOADINGBUTTON_PREFIX = "M4LoadingButton";
177
177
  const getNameDataTestId = (KEY) => {
@@ -1,7 +1,7 @@
1
1
  import { useMemo, useState } from "react";
2
2
  import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
3
3
  import { Skeleton, styled, generateUtilityClasses, generateUtilityClass, Tooltip, IconButton as IconButton$1 } from "@mui/material";
4
- import { I as Icon } from "../../Icon/index.aa9949f0.js";
4
+ import { I as Icon } from "../../Icon/index.282c5b58.js";
5
5
  import { jsx, Fragment } from "react/jsx-runtime";
6
6
  import { unstable_composeClasses } from "@mui/base";
7
7
  import clsx from "clsx";
@@ -1 +1 @@
1
- export declare const componentName = "M4LoadingButton";
1
+ export declare const componentName = "M4LLoadingButton";
@@ -3,12 +3,12 @@ import { useEnvironment, useModuleDictionary } from "@m4l/core";
3
3
  import { IconButton, generateUtilityClasses, generateUtilityClass, useTheme, MenuItem } from "@mui/material";
4
4
  import { P as Popover } from "../Popover/index.b3eca6b1.js";
5
5
  import { styled } from "@mui/material/styles";
6
- import { I as Icon } from "../../Icon/index.aa9949f0.js";
6
+ import { I as Icon } from "../../Icon/index.282c5b58.js";
7
7
  import clsx from "clsx";
8
8
  import { unstable_composeClasses } from "@mui/base";
9
9
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
10
10
  import { B as Badge } from "../Badge/index.09f5aee5.js";
11
- import { I as IconButton$1 } from "../IconButton/index.b705c196.js";
11
+ import { I as IconButton$1 } from "../IconButton/index.a719445f.js";
12
12
  styled(IconButton)(() => ({}));
13
13
  const LabelMemuItem = styled("div")(({
14
14
  theme
@@ -2,7 +2,7 @@ import { useMemo } from "react";
2
2
  import { styled } from "@mui/material/styles";
3
3
  import { generateUtilityClasses, generateUtilityClass, useTheme, Select, InputBase, MenuItem } from "@mui/material";
4
4
  import { unstable_composeClasses } from "@mui/base";
5
- import { I as IconButton } from "../IconButton/index.b705c196.js";
5
+ import { I as IconButton } from "../IconButton/index.a719445f.js";
6
6
  import { useEnvironment } from "@m4l/core";
7
7
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
8
8
  import { useResponsiveDesktop } from "@m4l/graphics";
@@ -1,5 +1,5 @@
1
1
  import clsx from "clsx";
2
- import { B as Button, b as buttonClasses } from "../Button/index.007f5a6e.js";
2
+ import { B as Button, b as buttonClasses } from "../Button/index.5c68764a.js";
3
3
  import { w as withToggle } from "../../../hocs/withToggle/index.e44eb0da.js";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  const ToggleAbleButton = ({
@@ -1,5 +1,5 @@
1
1
  import clsx from "clsx";
2
- import { I as IconButton, i as iconButtonClasses } from "../IconButton/index.b705c196.js";
2
+ import { I as IconButton, i as iconButtonClasses } from "../IconButton/index.a719445f.js";
3
3
  import { w as withToggle } from "../../../hocs/withToggle/index.e44eb0da.js";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  const ToggleAbleIconButton = ({
@@ -1,5 +1,5 @@
1
1
  import { createContext, useState } from "react";
2
- import { M as ModalDialog } from "../../components/ModalDialog/index.a30831c9.js";
2
+ import { M as ModalDialog } from "../../components/ModalDialog/index.690c82a4.js";
3
3
  import { jsxs, jsx } from "react/jsx-runtime";
4
4
  const ModalContext = createContext(null);
5
5
  function ModalProvider({
@@ -1,8 +1,8 @@
1
1
  import { useNetwork, useFlags, useModuleDictionary } from "@m4l/core";
2
2
  import { useState, useEffect } from "react";
3
- import { u as useModal } from "../useModal/index.acc61361.js";
3
+ import { u as useModal } from "../useModal/index.1c88654a.js";
4
4
  import { jsx } from "react/jsx-runtime";
5
- import { W as WindowConfirm } from "../../components/modal/WindowConfirm.7a79bfa5.js";
5
+ import { W as WindowConfirm } from "../../components/modal/WindowConfirm.ec73ba4f.js";
6
6
  function useFormAddEdit(props) {
7
7
  const {
8
8
  initialValues,
@@ -1,5 +1,5 @@
1
1
  import { useContext } from "react";
2
- import { M as ModalContext } from "../../contexts/ModalContext/index.054af5d8.js";
2
+ import { M as ModalContext } from "../../contexts/ModalContext/index.6085b148.js";
3
3
  function useModal() {
4
4
  const context = useContext(ModalContext);
5
5
  if (!context)