@m4l/components 0.1.90 → 0.1.93

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 (174) hide show
  1. package/@types/export.d.ts +12 -15
  2. package/components/AccountPopover/AccountPopover.d.ts +2 -1
  3. package/components/AccountPopover/{index.724828f0.js → index.2ef0bf6d.js} +20 -31
  4. package/components/AccountPopover/index.d.ts +0 -1
  5. package/components/AccountPopover/subcomponents/PopOver/types.d.ts +4 -3
  6. package/components/AccountPopover/types.d.ts +50 -26
  7. package/components/AppBar/{index.0328abec.js → index.16fe42a1.js} +3 -22
  8. package/components/CommonActions/components/ActionCancel/{index.441118b5.js → index.c3e23ad4.js} +2 -2
  9. package/components/CommonActions/components/ActionFormCancel/{index.435fcb53.js → index.6da52418.js} +4 -34
  10. package/components/CommonActions/components/ActionFormIntro/{index.edb131c4.js → index.c3af6d1d.js} +2 -2
  11. package/components/CommonActions/components/ActionIntro/{index.24367ed3.js → index.49631fcb.js} +2 -2
  12. package/components/CommonActions/components/Actions/{index.8dcaba29.js → index.ccf731c1.js} +2 -38
  13. package/components/DataGrid/classes/index.d.ts +1 -0
  14. package/components/DataGrid/classes/types.d.ts +1 -0
  15. package/components/DataGrid/formatters/columnConcatenatedValueFormatter/index.d.ts +2 -2
  16. package/components/DataGrid/{index.c296f69c.js → index.abedf2c0.js} +44 -14
  17. package/components/DataGrid/subcomponents/Actions/{index.fadd92f2.js → index.c8408b73.js} +9 -38
  18. package/components/DraggableWindow/{index.c702d3f2.js → index.8f423ed7.js} +1 -1
  19. package/components/DynamicFilter/{index.6a22346e.js → index.cb1402aa.js} +23 -56
  20. package/components/DynamicFilter/index.d.ts +1 -1
  21. package/components/GridLayout/classes/index.d.ts +1 -1
  22. package/components/GridLayout/{index.8ae34c50.js → index.1421f0d4.js} +21 -18
  23. package/components/GridLayout/subcomponents/Griditem/{index.c7a33781.js → index.b2342897.js} +5 -4
  24. package/components/GridLayout/subcomponents/Responsive/helper.d.ts +1 -0
  25. package/components/GridLayout/subcomponents/Responsive/{index.96cdb1b4.js → index.f459804c.js} +33 -12
  26. package/components/GridLayout/subcomponents/Responsive/responsiveUtils.d.ts +2 -2
  27. package/components/GridLayout/subcomponents/Responsive/types.d.ts +22 -1
  28. package/components/GridLayout/types.d.ts +11 -0
  29. package/components/HelperText/{index.31f2a824.js → index.7d2afdb3.js} +2 -23
  30. package/components/Icon/{index.a70c4729.js → index.3211023d.js} +8 -6
  31. package/components/Image/{index.c18ebf5a.js → index.611cd930.js} +43 -14
  32. package/components/LanguagePopover/{index.c9876e63.js → index.b6dc03d0.js} +4 -20
  33. package/components/LinearProgressIndeterminate/{index.60dabc06.js → index.c46da124.js} +1 -1
  34. package/components/LoadingError/LoadingError.d.ts +3 -0
  35. package/components/LoadingError/classes/constants.d.ts +1 -0
  36. package/components/LoadingError/classes/index.d.ts +14 -0
  37. package/components/LoadingError/classes/types.d.ts +14 -0
  38. package/components/LoadingError/dictionary.d.ts +1 -0
  39. package/components/LoadingError/index.96bdc803.js +106 -0
  40. package/components/LoadingError/index.d.ts +2 -0
  41. package/components/LoadingError/types.d.ts +10 -0
  42. package/components/MFLoader/classes/constants.d.ts +1 -0
  43. package/components/MFLoader/classes/index.d.ts +7 -0
  44. package/components/MFLoader/classes/types.d.ts +7 -0
  45. package/components/MFLoader/dictionary.d.ts +1 -0
  46. package/components/MFLoader/index.caee87dd.js +296 -0
  47. package/components/MFLoader/index.d.ts +2 -0
  48. package/components/MFLoader/types.d.ts +7 -0
  49. package/components/ModalDialog/{index.7d0d3ea1.js → index.ec55087e.js} +5 -5
  50. package/components/NavLink/{index.4f927064.js → index.b75c91e1.js} +2 -22
  51. package/components/NoItemSelected/{index.1eaf72d8.js → index.3e29c208.js} +1 -1
  52. package/components/ObjectLogs/{index.87438c47.js → index.38fd657f.js} +12 -38
  53. package/components/Page/index.c4642a29.js +127 -0
  54. package/components/PaperForm/{index.e02c772c.js → index.cce9ed39.js} +1 -1
  55. package/components/Period/{index.d1182d4a.js → index.c35c6a6c.js} +5 -37
  56. package/components/PrintingSystem/PrintingSystem.d.ts +3 -0
  57. package/components/PrintingSystem/classes/constants.d.ts +1 -0
  58. package/components/PrintingSystem/classes/index.d.ts +32 -0
  59. package/components/PrintingSystem/classes/types.d.ts +33 -0
  60. package/components/PrintingSystem/index.d.ts +2 -0
  61. package/components/PrintingSystem/index.e18a2fa8.js +634 -0
  62. package/components/PrintingSystem/subcomponents/BodyNode/index.d.ts +3 -0
  63. package/components/PrintingSystem/subcomponents/BodyNode/types.d.ts +5 -0
  64. package/components/PrintingSystem/subcomponents/ChartNode/index.d.ts +3 -0
  65. package/components/PrintingSystem/subcomponents/ChartNode/types.d.ts +3 -0
  66. package/components/PrintingSystem/subcomponents/DividerNode/index.d.ts +3 -0
  67. package/components/PrintingSystem/subcomponents/DividerNode/types.d.ts +3 -0
  68. package/components/PrintingSystem/subcomponents/FooterNode/index.d.ts +3 -0
  69. package/components/PrintingSystem/subcomponents/FooterNode/types.d.ts +5 -0
  70. package/components/PrintingSystem/subcomponents/GridNode/index.d.ts +3 -0
  71. package/components/PrintingSystem/subcomponents/GridNode/types.d.ts +5 -0
  72. package/components/PrintingSystem/subcomponents/HeaderNode/index.d.ts +3 -0
  73. package/components/PrintingSystem/subcomponents/HeaderNode/types.d.ts +5 -0
  74. package/components/PrintingSystem/subcomponents/ImageNode/index.d.ts +3 -0
  75. package/components/PrintingSystem/subcomponents/ImageNode/types.d.ts +3 -0
  76. package/components/PrintingSystem/subcomponents/PageNode/index.d.ts +3 -0
  77. package/components/PrintingSystem/subcomponents/PageNode/types.d.ts +5 -0
  78. package/components/PrintingSystem/subcomponents/Pager/index.d.ts +3 -0
  79. package/components/PrintingSystem/subcomponents/Pager/types.d.ts +5 -0
  80. package/components/PrintingSystem/subcomponents/PaperNode/index.d.ts +3 -0
  81. package/components/PrintingSystem/subcomponents/PaperNode/types.d.ts +5 -0
  82. package/components/PrintingSystem/subcomponents/PropertyValueNode/index.d.ts +3 -0
  83. package/components/PrintingSystem/subcomponents/PropertyValueNode/types.d.ts +5 -0
  84. package/components/PrintingSystem/subcomponents/SectionNode/index.d.ts +3 -0
  85. package/components/PrintingSystem/subcomponents/SectionNode/types.d.ts +5 -0
  86. package/components/PrintingSystem/subcomponents/TextBoxNode/index.d.ts +3 -0
  87. package/components/PrintingSystem/subcomponents/TextBoxNode/types.d.ts +3 -0
  88. package/components/PrintingSystem/types.d.ts +214 -0
  89. package/components/PrintingSystem/utils/FactoryRender/index.d.ts +3 -0
  90. package/components/PrintingSystem/utils/FactoryRender/types.d.ts +4 -0
  91. package/components/PrintingSystem/utils/PageRender/index.d.ts +3 -0
  92. package/components/PrintingSystem/utils/PageRender/types.d.ts +13 -0
  93. package/components/PrintingSystem/utils/getEvalValue/index.d.ts +1 -0
  94. package/components/PrintingSystem/utils/getSize/index.d.ts +1 -0
  95. package/components/PropertyValue/classes/index.d.ts +3 -2
  96. package/components/PropertyValue/classes/types.d.ts +2 -0
  97. package/components/PropertyValue/{index.3ee94e0f.js → index.3ee95452.js} +25 -9
  98. package/components/PropertyValue/types.d.ts +4 -0
  99. package/components/Resizeable/{index.676c96fe.js → index.8c53c1fa.js} +1 -1
  100. package/components/SideBar/{index.2dfc5445.js → index.5fd648d2.js} +44 -39
  101. package/components/animate/{index.4e9774a6.js → index.5d4575bc.js} +2 -6
  102. package/components/areas/components/AreasAdmin/{index.98a54515.js → index.ddb384a1.js} +29 -62
  103. package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
  104. package/components/areas/components/AreasViewer/classes/types.d.ts +2 -8
  105. package/components/areas/components/AreasViewer/{index.ee7170bc.js → index.625bf23b.js} +70 -438
  106. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/index.d.ts +2 -2
  107. package/components/areas/components/index.558684b3.js +1 -0
  108. package/components/areas/components/index.d.ts +0 -1
  109. package/components/areas/contexts/AreasContext/helper.d.ts +14 -1
  110. package/components/areas/contexts/AreasContext/{index.1950eef9.js → index.646f3c8f.js} +16 -12
  111. package/components/areas/contexts/index.24025b97.js +1 -0
  112. package/components/areas/contexts/index.d.ts +1 -0
  113. package/components/areas/hooks/index.d9dc1e21.js +1 -0
  114. package/components/areas/hooks/useAreas/{index.ce75bfb5.js → index.ee66240b.js} +1 -1
  115. package/components/areas/index.4cc6a221.js +22 -0
  116. package/components/areas/index.d.ts +1 -1
  117. package/components/formatters/BooleanFormatter/{index.a013b080.js → index.3c2df7a8.js} +10 -4
  118. package/components/formatters/FormatterRoot/index.d.ts +3 -0
  119. package/components/formatters/FormatterRoot/types.d.ts +4 -0
  120. package/components/formatters/classes/index.d.ts +4 -0
  121. package/components/formatters/classes/types.d.ts +6 -0
  122. package/components/formatters/constants.d.ts +1 -0
  123. package/components/formatters/{index.576922c9.js → index.dc77adb7.js} +25 -8
  124. package/components/hook-form/RHFAutocomplete/{index.8e4ff8d7.js → index.52387f0f.js} +7 -22
  125. package/components/hook-form/RHFAutocompleteAsync/{index.78f8e4c4.js → index.638bd2ae.js} +3 -2
  126. package/components/hook-form/RHFCheckbox/{index.bdad2059.js → index.a38715e3.js} +2 -22
  127. package/components/hook-form/RHFDateTime/{index.73f8a11e.js → index.66e334b0.js} +23 -23
  128. package/components/hook-form/RHFPeriod/{index.71df31df.js → index.23099265.js} +2 -2
  129. package/components/hook-form/RHFTextField/{index.6d21060a.js → index.25b3627e.js} +6 -8
  130. package/components/hook-form/RHFUpload/{index.f04d24ee.js → index.65588e08.js} +5 -22
  131. package/components/index.d.ts +3 -0
  132. package/components/modal/{WindowBase.b9dd76a4.js → WindowBase.161ec78a.js} +5 -37
  133. package/components/modal/{WindowConfirm.d407f47a.js → WindowConfirm.7eed7c35.js} +8 -40
  134. package/components/modal/{index.764e2723.js → index.61389369.js} +0 -37
  135. package/components/mui_extended/Accordion/{index.a706b12f.js → index.92aae1a4.js} +4 -4
  136. package/components/mui_extended/Button/{index.f79eb74e.js → index.94fec33c.js} +3 -3
  137. package/components/mui_extended/{CheckBox.38abccd8.js → CheckBox.e662d20c.js} +1 -1
  138. package/components/mui_extended/IconButton/{index.76624519.js → index.53cd6388.js} +2 -2
  139. package/components/mui_extended/MenuActions/{index.570fbae0.js → index.dd9f65a2.js} +5 -19
  140. package/components/mui_extended/Pager/{index.ac2a21f0.js → index.de0bd62c.js} +2 -2
  141. package/components/mui_extended/Tab/{index.d0302c81.js → index.1fcabba2.js} +2 -2
  142. package/components/mui_extended/index.b606cd9d.js +1 -0
  143. package/contexts/ModalContext/{index.41fbf6bc.js → index.436c2938.js} +1 -1
  144. package/contexts/RHFormContext/classes/index.d.ts +1 -1
  145. package/hooks/useFormAddEdit/{index.0c6b6b68.js → index.3584a29f.js} +2 -26
  146. package/hooks/useModal/{index.71987a49.js → index.05d1821e.js} +1 -1
  147. package/index.js +199 -190
  148. package/node_modules.b55d04d9.js +15267 -0
  149. package/package.json +5 -1
  150. package/react-data-grid.d46d625e.js +2 -2
  151. package/react-draggable.e4725f3a.js +630 -0
  152. package/{react-resizable.ba08699a.js → react-resizable.c07d63fb.js} +2 -2
  153. package/utils/{index.c43a95f4.js → index.6469f148.js} +75 -107
  154. package/vendor.71883626.js +104 -0
  155. package/components/Page/index.4237c241.js +0 -27
  156. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/types.d.ts +0 -8
  157. package/components/areas/components/AreasViewer/subcomponents/AreasLoadingError/index.d.ts +0 -3
  158. package/components/areas/components/AreasViewer/subcomponents/AreasLoadingError/types.d.ts +0 -5
  159. package/components/areas/components/index.431c5397.js +0 -31
  160. package/components/areas/contexts/index.b846bbcb.js +0 -2
  161. package/components/areas/hooks/index.0184c6f7.js +0 -4
  162. package/components/areas/index.5abba006.js +0 -54
  163. package/components/mui_extended/index.a8d347a9.js +0 -24
  164. package/node_modules.d73a220d.js +0 -363
  165. package/react-draggable.7abb5d0a.js +0 -962
  166. package/vendor.4dedf99e.js +0 -128
  167. package/components/{areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/index.d.ts → MFLoader/MFLoader.d.ts} +0 -0
  168. package/components/{areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader → MFLoader}/helper.d.ts +0 -0
  169. package/components/{areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader → MFLoader}/subcomponents/ProggessLoadingMF/index.d.ts +0 -0
  170. package/components/{areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader → MFLoader}/subcomponents/ProggessLoadingMF/types.d.ts +0 -0
  171. package/components/mui_extended/Badge/{index.b09524fe.js → index.09f5aee5.js} +1 -1
  172. package/components/mui_extended/Popover/{index.9f35d0eb.js → index.b3eca6b1.js} +2 -2
  173. package/components/mui_extended/Tooltip/{index.5a795dcd.js → index.24a2bc3f.js} +1 -1
  174. package/components/mui_extended/Typography/{index.443590d6.js → index.379dd374.js} +1 -1
@@ -59,8 +59,8 @@ import { StackClassesKey } from '../components/mui_extended/Stack/classes/types'
59
59
  import { TabsClassesKey } from '../components/mui_extended/Tabs/classes/types';
60
60
  import { NoItemSelectedClassesKey } from '../components/NoItemSelected/classes/types';
61
61
  import { ScrollBarClassesKey } from '../components/ScrollBar/classes/types';
62
- import { ToolkitPageClassesKey } from '../components/PringtToolkit/subcomponents/Page/classes/types';
63
- import { ToolkitSectionClassesKey } from '../components/PringtToolkit/subcomponents/Section/classes/types';
62
+ import { ToolkitPageClassesKey } from '../components/PrintingSystem/subcomponents/PageNode/classes/types';
63
+ import { ToolkitSectionClassesKey } from '../components/PrintingSystem/subcomponents/SectionNode/classes/types';
64
64
 
65
65
  declare module '@mui/material/styles' {
66
66
  /* ----------------------------- Augmentation overrides theme ----------------------------- */
@@ -360,21 +360,18 @@ declare module '@mui/material/styles' {
360
360
  M4LMenuActions?: {
361
361
  styleOverrides?: ComponentsOverrides<Theme>['M4LMenuActions'];
362
362
  };
363
-
364
- /* PrintgToolkit */
365
-
366
- /* M4LToolkitPage?: {
367
- styleOverrides?: ComponentsOverrides<Theme>['M4LToolkitPage'];
363
+ M4LPrintingSystem?: {
364
+ styleOverrides?: ComponentsOverrides<Theme>['M4LPrintingSystem'];
368
365
  };
369
-
370
- M4LToolkitSection?: {
371
- styleOverrides?: ComponentsOverrides<Theme>['M4LToolkitSection'];
366
+ M4LFormatter?: {
367
+ styleOverrides?: ComponentsOverrides<Theme>['M4LFormatter'];
368
+ };
369
+ M4LoadingError?: {
370
+ styleOverrides?: ComponentsOverrides<Theme>['M4LoadingError'];
371
+ };
372
+ M4LMFLoader?: {
373
+ styleOverrides?: ComponentsOverrides<Theme>['M4LMFLoader'];
372
374
  };
373
-
374
- M4LToolkitDivider?: {
375
- styleOverrides?: ComponentsOverrides<Theme>['M4LToolkitDivider'];
376
- }; */
377
-
378
375
 
379
376
  }
380
377
  }
@@ -7,12 +7,13 @@ import { AccountPopoverProps } from './types';
7
7
  * @param {Function} props.handleClick - Manejador para hacer clic en el componente.
8
8
  * @param {string} props.version - Versión de la aplicación.
9
9
  * @param {Function} props.handleLogOut - Manejador para cerrar la sesión del usuario.
10
- * @param {UserMenuData} props.userData - Datos del usuario.
10
+ * @param {RightMenuData} props.userData - Datos del usuario.
11
11
  * @param {string} props.className - Clases CSS adicionales para el componente.
12
12
  * @returns {JSX.Element} Elemento JSX que representa el componente.
13
13
  *
14
14
  * @example
15
15
  * // Ejemplo de uso:
16
+ *
16
17
  * <AccountPopover
17
18
  * handleClick={handleClick}
18
19
  * version="1.0"
@@ -1,30 +1,14 @@
1
1
  import { useEnvironment, useModuleDictionary, useNetwork } from "@m4l/core";
2
2
  import { useState, useEffect } from "react";
3
- import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
4
3
  import { generateUtilityClasses, generateUtilityClass, styled, useTheme, ButtonBase } from "@mui/material";
5
- import { I as Icon } from "../Icon/index.a70c4729.js";
4
+ import { unstable_composeClasses } from "@mui/base";
5
+ import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
- import "../mui_extended/IconButton/index.76624519.js";
8
- import clsx from "clsx";
9
- import "@m4l/graphics";
10
- import "../mui_extended/Accordion/index.a706b12f.js";
11
- import "../mui_extended/Typography/index.443590d6.js";
12
7
  import { A as Avatar } from "../mui_extended/Avatar/index.75e6ed57.js";
13
- import "react-router-dom";
14
- import "@mui/material/Button";
15
- import "../mui_extended/Button/index.f79eb74e.js";
16
- import "../mui_extended/CheckBox.38abccd8.js";
17
8
  import { C as CircularProgress } from "../mui_extended/CircularProgress/index.ad569afd.js";
18
- import "../mui_extended/Badge/index.b09524fe.js";
19
- import "../Image/index.c18ebf5a.js";
20
- import "@mui/lab";
21
- import "../mui_extended/MenuActions/index.570fbae0.js";
22
- import { P as Popover } from "../mui_extended/Popover/index.9f35d0eb.js";
23
- import "../mui_extended/Stack/index.0e53197c.js";
24
- import "../mui_extended/Tab/index.d0302c81.js";
25
- import "../mui_extended/Pager/index.ac2a21f0.js";
26
- import "../mui_extended/Tooltip/index.5a795dcd.js";
27
- import { unstable_composeClasses } from "@mui/base";
9
+ import { P as Popover } from "../mui_extended/Popover/index.b3eca6b1.js";
10
+ import { I as Icon } from "../Icon/index.3211023d.js";
11
+ import clsx from "clsx";
28
12
  const componentName = "M4LAccountPopover";
29
13
  generateUtilityClasses(componentName, [
30
14
  "root",
@@ -103,17 +87,19 @@ function MyAvatar(props) {
103
87
  const MenuPopOver = (props) => {
104
88
  const {
105
89
  data,
106
- handleClick: onClick,
90
+ itemHandleClick,
107
91
  version,
108
92
  handleLogOut,
109
93
  classes,
110
94
  userData,
111
- settingHandleOpen
95
+ settingsHandleOpen: settingHandleOpen,
96
+ asyncState
112
97
  } = props;
113
98
  const {
114
99
  host_static_assets,
115
100
  environment_assets
116
101
  } = useEnvironment();
102
+ console.log("MenuPopOver", data);
117
103
  const {
118
104
  avatar_url,
119
105
  first_name,
@@ -126,7 +112,7 @@ const MenuPopOver = (props) => {
126
112
  const [open2, setOpen] = useState(null);
127
113
  const theme = useTheme();
128
114
  const handleClick = (item) => {
129
- onClick(item);
115
+ itemHandleClick(item);
130
116
  handleClose();
131
117
  };
132
118
  const handleClose = () => {
@@ -135,6 +121,8 @@ const MenuPopOver = (props) => {
135
121
  const handleOpen = (event) => {
136
122
  setOpen(event.currentTarget);
137
123
  };
124
+ const dataIsArray = Array.isArray(data) && data.length > 0;
125
+ console.log("dataIsArray", dataIsArray);
138
126
  return /* @__PURE__ */ jsxs("div", {
139
127
  role: "presentation",
140
128
  className: classes.containerAvatarPopover,
@@ -220,7 +208,7 @@ const MenuPopOver = (props) => {
220
208
  className: classes.menuItem,
221
209
  children: getLabel("account_popover.label_settings")
222
210
  })]
223
- }), data ? data.length !== 0 && data.map((option) => /* @__PURE__ */ jsx("div", {
211
+ }), asyncState === "loaded" ? data.map((option) => /* @__PURE__ */ jsx("div", {
224
212
  role: "presentation",
225
213
  onClick: () => handleClick(option),
226
214
  className: classes.menuItem,
@@ -256,13 +244,12 @@ const MenuPopOver = (props) => {
256
244
  };
257
245
  const AccountPopover = (props) => {
258
246
  const {
259
- handleClick,
247
+ itemHandleClick,
260
248
  version,
261
249
  handleLogOut,
262
250
  userData,
263
251
  className,
264
- settingOpen,
265
- settingHandleOpen
252
+ settingsHandleOpen: settingHandleOpen
266
253
  } = props;
267
254
  const [asyncState, setAsyncState] = useState("unLoad");
268
255
  const [menuData, setMenuData] = useState([]);
@@ -286,6 +273,7 @@ const AccountPopover = (props) => {
286
273
  }
287
274
  }).catch((_error) => {
288
275
  console.error("AccountData network request error - get menus", _error);
276
+ setMenuData([]);
289
277
  });
290
278
  }
291
279
  return function cleanUp() {
@@ -293,6 +281,7 @@ const AccountPopover = (props) => {
293
281
  };
294
282
  }, [open]);
295
283
  const accountPopoverClasses = useAccountPopoverUtilityClasses();
284
+ console.log("user data", userData);
296
285
  return /* @__PURE__ */ jsx(AcountPopOverRoot, {
297
286
  className: clsx(accountPopoverClasses.root, className),
298
287
  ...process.env.NODE_ENV !== "production" ? {
@@ -300,13 +289,13 @@ const AccountPopover = (props) => {
300
289
  } : {},
301
290
  children: /* @__PURE__ */ jsx(MenuPopOver, {
302
291
  data: menuData,
303
- handleClick,
292
+ asyncState,
293
+ itemHandleClick,
304
294
  version,
305
295
  handleLogOut,
306
296
  classes: accountPopoverClasses,
307
297
  userData,
308
- settingOpen,
309
- settingHandleOpen
298
+ settingsHandleOpen: settingHandleOpen
310
299
  })
311
300
  });
312
301
  };
@@ -1,3 +1,2 @@
1
1
  export { AccountPopover } from './AccountPopover';
2
- export type { UserMenuData } from './types';
3
2
  export { getAccountPopoverDictionary } from './dictionary';
@@ -1,7 +1,8 @@
1
1
  import { AccountPopoverClasses } from "../../classes/types";
2
- import { AccountPopoverProps, User, UserMenuData } from "../../types";
2
+ import { AccountPopoverProps, AsyncTypes, RightMenuData, UserAuth } from "../../types";
3
3
  export interface PopOverProps extends Omit<AccountPopoverProps, 'userData'> {
4
- data: Array<UserMenuData> | [];
4
+ data: Array<RightMenuData> | [];
5
5
  classes: AccountPopoverClasses;
6
- userData: User | null | undefined;
6
+ userData: UserAuth | null | undefined;
7
+ asyncState: AsyncTypes;
7
8
  }
@@ -1,42 +1,66 @@
1
- import { Maybe } from "@m4l/core";
2
- import { DomainCountry } from "@m4l/core";
3
- export declare type asyncTypes = 'unLoad' | 'loading' | 'loaded';
4
- export interface UserMenuData {
1
+ import type { DomainCountry, Maybe } from "@m4l/core";
2
+ export interface RightMenuData {
3
+ /** Esta propiedad hace referencia al título del módulo.
4
+ * Tiene utilidades como:
5
+ * - Definir el nombre en el encabezado del modulo cuando se agrega en la interfaz de la aplicación web.
6
+ * ...
7
+ * */
5
8
  title: string;
6
- children?: Array<UserMenuData>;
9
+ /** Esta propiedad define el identificador para el tipo de módulo.
10
+ * Tiene utiidades como:
11
+ * - Define a la aplicación web cual de todos los módulos disponibles debe agregar en la interfaz de la aplicación web.
12
+ * - Permite almacenar información del usuario basado en la interacción del módulo tomando en cuenta el identificador.
13
+ * ...
14
+ */
7
15
  module_id?: string;
16
+ /**
17
+ * Esta propiedad define la ubicación del icono representativo del módulo.
18
+ * Tiene utiidades como:
19
+ * - Mostrar el icono representativo en el encabezado del módulo.
20
+ * ...
21
+ */
8
22
  icon_url?: string;
9
23
  debug_port?: number;
10
24
  }
25
+ /** Lista posibles valores usados para definr el estado actual en la solicitud de red para el endpoint GET Menus param 1 */
26
+ export declare type AsyncTypes = 'unLoad' | 'loading' | 'loaded';
27
+ /** Colección de datos que representa el valor del menú de administrativo propio del usuario.
28
+ * Para obtener el detalle de la información del tipo de dato RightMenuData, se debe validar en la documentación de la librería @m4l/core.
29
+ */
11
30
  export interface MenuDataProvider {
12
- value: UserMenuData;
31
+ value: RightMenuData;
13
32
  }
14
- export interface userData {
15
- id: number;
16
- email: string;
17
- first_name: string;
18
- last_name: string;
19
- account_id: number;
20
- domain_country: DomainCountry;
21
- user_type_id: number;
22
- entry_application_id: number;
23
- avatar_url: string;
33
+ /** Objeto de propiedades que puede recibir el componente AccountPopover. */
34
+ export interface AccountPopoverProps {
35
+ /** Procedimiento definido desde la instancia, va a ser activado por alguno de elementos del listado dinámico por medio del evento click. */
36
+ itemHandleClick: (item: RightMenuData) => void;
37
+ /** Procedimiento encargado finalizar la sesión del cliente autenticado. */
38
+ handleLogOut: VoidFunction;
39
+ /** Dato que representa la versión actual de la aplicación web. */
40
+ version: string;
41
+ /** Es una colección de datos relacionados al cliente autenticado, puede contener datos como: nombre, apellido, módulos activos entre otros. */
42
+ userData: UserAuth | null | undefined;
43
+ /** Es un texto que permite cambiar los estilos gráficos del componente. */
44
+ className?: string;
45
+ /** Procedimiento definido desde la instancia, el cual tiene como propósito permitir visualizar el configurador de apariencia en la aplicación web. */
46
+ settingsHandleOpen: () => void;
24
47
  }
25
- export interface User {
48
+ /** Colección de valores propios del usuario autenticado en la aplicación web.
49
+ * Consulta la información en detalle del endpoint en:
50
+ * @see {@link https://www.notion.so/made4labs/Validate-auth-a78c52d74dde49f3ac2be57f7e2639c2}
51
+ */
52
+ export interface UserAuth {
53
+ /** Correo electrónico del usuario autenticado. */
26
54
  email: string;
55
+ /** Identificador único del usuario autenticado. */
27
56
  id: number;
57
+ /** Nombre del usuario autenticado. */
28
58
  first_name: string;
59
+ /** Apellido del usuairo autenticado. */
29
60
  last_name: string;
30
61
  account_id: number;
62
+ /** Es una coleccion de datos determinada por el país del usuario autenticado. Esto permite datos como divisas y simbolos de puntuación numéricos. */
31
63
  domain_country: DomainCountry;
64
+ /** Es un texto que representa la ubicación de la imagen representativa para el usuario autenticado. */
32
65
  avatar_url?: Maybe<string>;
33
66
  }
34
- export interface AccountPopoverProps {
35
- handleClick: (item: UserMenuData) => void;
36
- handleLogOut: VoidFunction;
37
- version: string;
38
- userData: User | null | undefined;
39
- className?: string;
40
- settingOpen?: boolean;
41
- settingHandleOpen: () => void;
42
- }
@@ -1,30 +1,11 @@
1
+ import { styled } from "@mui/material/styles";
1
2
  import { useResponsiveDesktop } from "@m4l/graphics";
2
3
  import { useEnvironment, useModuleDictionary } from "@m4l/core";
3
4
  import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
4
5
  import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
5
- import { I as IconButton } from "../mui_extended/IconButton/index.76624519.js";
6
- import "../mui_extended/Accordion/index.a706b12f.js";
7
- import "../Icon/index.a70c4729.js";
8
- import "react";
9
- import "clsx";
10
- import { jsxs, jsx } from "react/jsx-runtime";
11
- import "../mui_extended/Typography/index.443590d6.js";
12
- import "../mui_extended/Avatar/index.75e6ed57.js";
13
- import "react-router-dom";
14
- import "@mui/material/Button";
15
- import "../mui_extended/Button/index.f79eb74e.js";
16
- import "../mui_extended/CheckBox.38abccd8.js";
17
- import "../mui_extended/Badge/index.b09524fe.js";
18
- import "../Image/index.c18ebf5a.js";
19
- import "@mui/lab";
20
- import "../mui_extended/MenuActions/index.570fbae0.js";
21
- import "../mui_extended/Popover/index.9f35d0eb.js";
22
- import "../mui_extended/Stack/index.0e53197c.js";
23
- import "../mui_extended/Tab/index.d0302c81.js";
24
- import "../mui_extended/Pager/index.ac2a21f0.js";
25
- import "../mui_extended/Tooltip/index.5a795dcd.js";
26
- import { styled } from "@mui/material/styles";
27
6
  import { unstable_composeClasses } from "@mui/base";
7
+ import { jsxs, jsx } from "react/jsx-runtime";
8
+ import { I as IconButton } from "../mui_extended/IconButton/index.53cd6388.js";
28
9
  const AppBarRoot = styled("header")(({
29
10
  theme
30
11
  }) => ({
@@ -1,6 +1,6 @@
1
1
  import { useModuleDictionary } from "@m4l/core";
2
- import { B as Button } from "../../../mui_extended/Button/index.f79eb74e.js";
3
- import { u as useCommonActionsUtilityClasses } from "../Actions/index.8dcaba29.js";
2
+ import { B as Button } from "../../../mui_extended/Button/index.94fec33c.js";
3
+ import { u as useCommonActionsUtilityClasses } from "../Actions/index.ccf731c1.js";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  const ActionCancel = (props) => {
6
6
  const {
@@ -1,43 +1,13 @@
1
1
  import { useFormContext, useFormState } from "react-hook-form";
2
2
  import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
3
3
  import { Skeleton } from "@mui/material";
4
- import { B as Button } from "../../../mui_extended/Button/index.f79eb74e.js";
4
+ import { B as Button } from "../../../mui_extended/Button/index.94fec33c.js";
5
5
  import { useCallback, useEffect } from "react";
6
- import { u as useModal } from "../../../../hooks/useModal/index.71987a49.js";
7
- import "../../../../react-draggable.7abb5d0a.js";
8
- import "../../../Resizeable/index.676c96fe.js";
6
+ import { u as useModal } from "../../../../hooks/useModal/index.05d1821e.js";
7
+ import { u as useCommonActionsUtilityClasses } from "../Actions/index.ccf731c1.js";
9
8
  import { jsx } from "react/jsx-runtime";
10
- import "@m4l/graphics";
11
- import "../../../modal/index.764e2723.js";
12
- import { W as WindowConfirm } from "../../../modal/WindowConfirm.d407f47a.js";
13
- import "../../../Icon/index.a70c4729.js";
14
- import "clsx";
15
- import "../../../mui_extended/IconButton/index.76624519.js";
16
- import "../../../mui_extended/Accordion/index.a706b12f.js";
17
- import "../../../mui_extended/Typography/index.443590d6.js";
18
- import "../../../mui_extended/Avatar/index.75e6ed57.js";
19
- import "react-router-dom";
20
- import "../../../mui_extended/CheckBox.38abccd8.js";
21
- import "../../../mui_extended/Badge/index.b09524fe.js";
22
- import "../../../Image/index.c18ebf5a.js";
23
- import "@mui/lab";
24
- import "../../../mui_extended/MenuActions/index.570fbae0.js";
25
- import "../../../mui_extended/Popover/index.9f35d0eb.js";
26
- import "../../../mui_extended/Stack/index.0e53197c.js";
27
- import "../../../mui_extended/Tab/index.d0302c81.js";
28
- import "../../../mui_extended/Pager/index.ac2a21f0.js";
29
- import "../../../mui_extended/Tooltip/index.5a795dcd.js";
30
- import "zustand";
31
- import "../../../areas/contexts/AreasContext/index.1950eef9.js";
32
- import "../../../areas/components/AreasAdmin/index.98a54515.js";
33
- import "zustand/shallow";
34
- import "../../../ScrollBar/index.65bb2930.js";
35
- import "../../../areas/components/AreasViewer/index.ee7170bc.js";
36
- import "../../../LinearProgressIndeterminate/index.60dabc06.js";
37
- import "../../../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
38
- import "../../../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
39
9
  import { u as useWindowToolsMF } from "../../../areas/hooks/useWindowToolsMF/index.b7afaf88.js";
40
- import { u as useCommonActionsUtilityClasses } from "../Actions/index.8dcaba29.js";
10
+ import { W as WindowConfirm } from "../../../modal/WindowConfirm.7eed7c35.js";
41
11
  function ActionFormCancel() {
42
12
  const {
43
13
  getLabel
@@ -1,8 +1,8 @@
1
1
  import { useFormContext, useFormState } from "react-hook-form";
2
2
  import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
3
3
  import { Skeleton } from "@mui/material";
4
- import { L as LoadingButton } from "../../../mui_extended/Button/index.f79eb74e.js";
5
- import { u as useCommonActionsUtilityClasses } from "../Actions/index.8dcaba29.js";
4
+ import { L as LoadingButton } from "../../../mui_extended/Button/index.94fec33c.js";
5
+ import { u as useCommonActionsUtilityClasses } from "../Actions/index.ccf731c1.js";
6
6
  import { jsx } from "react/jsx-runtime";
7
7
  function ActionFormIntro(props) {
8
8
  const {
@@ -1,7 +1,7 @@
1
1
  import { useModuleDictionary } from "@m4l/core";
2
- import { B as Button } from "../../../mui_extended/Button/index.f79eb74e.js";
2
+ import { B as Button } from "../../../mui_extended/Button/index.94fec33c.js";
3
3
  import { T as TEST_PROP_ID } from "../../../../test/constants_no_mock.86c553a9.js";
4
- import { u as useCommonActionsUtilityClasses } from "../Actions/index.8dcaba29.js";
4
+ import { u as useCommonActionsUtilityClasses } from "../Actions/index.ccf731c1.js";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
  const ACTIONINTRO_TEST_ID = "m4lactions";
7
7
  const ActionIntro = (props) => {
@@ -1,45 +1,9 @@
1
1
  import { T as TEST_PROP_ID } from "../../../../test/constants_no_mock.86c553a9.js";
2
- import { jsx } from "react/jsx-runtime";
3
2
  import { generateUtilityClasses } from "@mui/material";
4
3
  import { unstable_composeClasses } from "@mui/base";
5
- import { g as getComponentUtilityClass } from "../../../../utils/index.c43a95f4.js";
4
+ import { g as getComponentUtilityClass } from "../../../../utils/index.6469f148.js";
6
5
  import { styled } from "@mui/material/styles";
7
- import "@m4l/core";
8
- import "@mui/material/Button";
9
- import "../../../mui_extended/Button/index.f79eb74e.js";
10
- import "clsx";
11
- import "react-hook-form";
12
- import "react";
13
- import "../../../../contexts/ModalContext/index.41fbf6bc.js";
14
- import "../../../../react-draggable.7abb5d0a.js";
15
- import "../../../Resizeable/index.676c96fe.js";
16
- import "@m4l/graphics";
17
- import "../../../modal/index.764e2723.js";
18
- import "@mui/lab";
19
- import "../../../mui_extended/Typography/index.443590d6.js";
20
- import "../../../Image/index.c18ebf5a.js";
21
- import "../../../Icon/index.a70c4729.js";
22
- import "../../../mui_extended/IconButton/index.76624519.js";
23
- import "../../../mui_extended/Accordion/index.a706b12f.js";
24
- import "../../../mui_extended/Avatar/index.75e6ed57.js";
25
- import "react-router-dom";
26
- import "../../../mui_extended/CheckBox.38abccd8.js";
27
- import "../../../mui_extended/Badge/index.b09524fe.js";
28
- import "../../../mui_extended/MenuActions/index.570fbae0.js";
29
- import "../../../mui_extended/Popover/index.9f35d0eb.js";
30
- import "../../../mui_extended/Stack/index.0e53197c.js";
31
- import "../../../mui_extended/Tab/index.d0302c81.js";
32
- import "../../../mui_extended/Pager/index.ac2a21f0.js";
33
- import "../../../mui_extended/Tooltip/index.5a795dcd.js";
34
- import "zustand";
35
- import "../../../areas/contexts/AreasContext/index.1950eef9.js";
36
- import "../../../areas/components/AreasAdmin/index.98a54515.js";
37
- import "zustand/shallow";
38
- import "../../../ScrollBar/index.65bb2930.js";
39
- import "../../../areas/components/AreasViewer/index.ee7170bc.js";
40
- import "../../../LinearProgressIndeterminate/index.60dabc06.js";
41
- import "../../../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
42
- import "../../../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
6
+ import { jsx } from "react/jsx-runtime";
43
7
  const componentName = "M4LCommonActions";
44
8
  generateUtilityClasses(componentName, [
45
9
  "root",
@@ -24,5 +24,6 @@ export declare const dataGridUtilityClasses: (ownerState: OwnerState) => {
24
24
  skeletonFormatter: string;
25
25
  actionsFormatter: string;
26
26
  actionsConfigContainer: string;
27
+ booleanFormatter: string;
27
28
  actionSettings: string;
28
29
  };
@@ -22,6 +22,7 @@ export interface DataGridClassesType {
22
22
  skeletonFormatter: string;
23
23
  actionsFormatter: string;
24
24
  actionsConfigContainer: string;
25
+ booleanFormatter: string;
25
26
  withActions: string;
26
27
  }
27
28
  export declare type BadgeClassesKey = keyof DataGridClassesType;
@@ -1,8 +1,8 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { ColumnConcatenatedValuesFormatterProps } from './types';
3
3
  /**
4
4
  * Función especial para el DataGrid que concatena un array de strings
5
5
  * @param props
6
6
  * @returns
7
7
  */
8
- export declare function columnConcatenatedValuesFormatter(props: ColumnConcatenatedValuesFormatterProps): (obProps: any) => React.JSX.Element;
8
+ export declare function columnConcatenatedValuesFormatter(props: ColumnConcatenatedValuesFormatterProps): (obProps: any) => import("react").JSX.Element;
@@ -1,5 +1,5 @@
1
- import { g as getModalDialogComponentsDictionary } from "../ModalDialog/index.7d0d3ea1.js";
2
- import { g as getPagerComponentsDictionary } from "../mui_extended/Pager/index.ac2a21f0.js";
1
+ import { g as getModalDialogComponentsDictionary } from "../ModalDialog/index.ec55087e.js";
2
+ import { g as getPagerComponentsDictionary } from "../mui_extended/Pager/index.de0bd62c.js";
3
3
  import { styled } from "@mui/material/styles";
4
4
  import { forwardRef, createContext, useState, useMemo, useEffect, useCallback, useContext, useRef, useLayoutEffect } from "react";
5
5
  import { S as SELECT_COLUMN_KEY, u as useRowSelection, a as SelectCellFormatter, H as HeaderRenderer, D as DataGrid$1 } from "../../react-data-grid.d46d625e.js";
@@ -8,16 +8,13 @@ import { HTML5Backend } from "react-dnd-html5-backend";
8
8
  import { SvgIcon, Checkbox, InputBase, Skeleton, generateUtilityClasses, generateUtilityClass } from "@mui/material";
9
9
  import { jsx, jsxs } from "react/jsx-runtime";
10
10
  import { voidFunction, useModuleDictionary, useModuleSkeleton, getPropertyByString } from "@m4l/core";
11
- import { A as ActionsColumn, a as Actions } from "./subcomponents/Actions/index.fadd92f2.js";
11
+ import { A as ActionsColumn, a as Actions } from "./subcomponents/Actions/index.c8408b73.js";
12
12
  import { unstable_composeClasses } from "@mui/base";
13
13
  import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
14
- import { g as getNameDataTestId } from "../../vendor.4dedf99e.js";
15
- import { B as BooleanFormatter } from "../formatters/BooleanFormatter/index.a013b080.js";
16
- import "@m4l/graphics";
17
- import "../Icon/index.a70c4729.js";
18
- import "clsx";
14
+ import { g as getNameDataTestId } from "../../vendor.71883626.js";
15
+ import { B as BooleanFormatter } from "../formatters/BooleanFormatter/index.3c2df7a8.js";
19
16
  import { D as DateFormatter } from "../formatters/DateFormatter/index.578a9f53.js";
20
- import { C as ConcatenatedFormatter } from "../formatters/index.576922c9.js";
17
+ import { C as ConcatenatedFormatter } from "../formatters/index.dc77adb7.js";
21
18
  const DataGridRoot = styled("div")(({
22
19
  theme
23
20
  }) => ({
@@ -682,11 +679,18 @@ const useSortColumnsRows = (sourceColumns, sourceRows) => {
682
679
  const columnKey = entry[0];
683
680
  const columnFilter = entry[1];
684
681
  let valCell;
682
+ const valueMaybeString = getPropertyByString(r, columnKey);
683
+ let fixedValue;
684
+ if (typeof valueMaybeString === "string") {
685
+ fixedValue = valueMaybeString;
686
+ } else {
687
+ fixedValue = "";
688
+ }
685
689
  try {
686
690
  if (columnFilter.customFilter) {
687
691
  valReturn = valReturn && columnFilter.customFilter(r, columnFilter.value);
688
692
  } else {
689
- valCell = getPropertyByString(r, columnKey) || "";
693
+ valCell = fixedValue;
690
694
  valReturn = valReturn && valCell.includes(columnFilter.value);
691
695
  }
692
696
  } catch (error) {
@@ -832,6 +836,7 @@ const dataGridClasses = generateUtilityClasses(componentName, [
832
836
  "skeletonFormatter",
833
837
  "actionsFormatter",
834
838
  "actionsConfigContainer",
839
+ "booleanFormatter",
835
840
  "withActions"
836
841
  ]);
837
842
  function getDataGridUtilityClass(slot) {
@@ -860,7 +865,8 @@ const dataGridUtilityClasses = (ownerState) => {
860
865
  formatterColumn: ["formatterColumn"],
861
866
  skeletonFormatter: ["skeletonFormatter"],
862
867
  actionsFormatter: ["actionsFormatter"],
863
- actionsConfigContainer: ["actionsConfigContainer"]
868
+ actionsConfigContainer: ["actionsConfigContainer"],
869
+ booleanFormatter: ["booleanFormatter"]
864
870
  };
865
871
  const composedClasses = unstable_composeClasses(slots, getDataGridUtilityClass, {});
866
872
  return {
@@ -898,6 +904,7 @@ function DataGrid(props) {
898
904
  onCheckedRowsChange,
899
905
  dataTestId = ""
900
906
  } = props;
907
+ console.log("test columns", columns);
901
908
  const ownerState = {
902
909
  actionsProps,
903
910
  withActions
@@ -948,9 +955,16 @@ function columnBooleanFormatter(props) {
948
955
  Component
949
956
  } = props;
950
957
  return (obProps) => {
958
+ const valueMaybeString = getPropertyByString(obProps, fieldValue);
959
+ let fixedValue;
960
+ if (typeof valueMaybeString === "boolean") {
961
+ fixedValue = valueMaybeString;
962
+ } else {
963
+ fixedValue = void 0;
964
+ }
951
965
  return /* @__PURE__ */ jsx(BooleanFormatter, {
952
966
  presentationType,
953
- value: getPropertyByString(obProps, fieldValue),
967
+ value: fixedValue,
954
968
  Component
955
969
  });
956
970
  };
@@ -962,9 +976,16 @@ function columnDateFormatter(props) {
962
976
  Component
963
977
  } = props;
964
978
  return (obProps) => {
979
+ const valueMaybeDateStringNumber = getPropertyByString(obProps, fieldValue);
980
+ let fixedValue;
981
+ if (typeof valueMaybeDateStringNumber === "string" || typeof valueMaybeDateStringNumber === "number" || valueMaybeDateStringNumber instanceof Date) {
982
+ fixedValue = valueMaybeDateStringNumber;
983
+ } else {
984
+ fixedValue = "";
985
+ }
965
986
  return /* @__PURE__ */ jsx(DateFormatter, {
966
987
  presentationType,
967
- value: getPropertyByString(obProps, fieldValue),
988
+ value: fixedValue,
968
989
  Component
969
990
  });
970
991
  };
@@ -976,7 +997,16 @@ function columnConcatenatedValuesFormatter(props) {
976
997
  Component
977
998
  } = props;
978
999
  return (obProps) => {
979
- const values = fieldValue.map((element) => getPropertyByString(obProps, element));
1000
+ const values = fieldValue.map((element) => {
1001
+ const valueMaybeString = getPropertyByString(obProps, element);
1002
+ let fixedValue;
1003
+ if (typeof valueMaybeString === "string" || typeof valueMaybeString === "number") {
1004
+ fixedValue = valueMaybeString;
1005
+ } else {
1006
+ fixedValue = "";
1007
+ }
1008
+ return fixedValue;
1009
+ });
980
1010
  return /* @__PURE__ */ jsx(ConcatenatedFormatter, {
981
1011
  values,
982
1012
  separator: fieldSeparator,