@m4l/layouts 9.3.21 → 9.3.22-beta.1

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 (294) hide show
  1. package/@types/index.d.ts +1 -0
  2. package/@types/index.d.ts.map +1 -0
  3. package/components/DynamicTabs/DynamicTabs.d.ts +2 -1
  4. package/components/DynamicTabs/DynamicTabs.d.ts.map +1 -0
  5. package/components/DynamicTabs/DynamicTabs.js +22 -22
  6. package/components/DynamicTabs/index.d.ts +1 -0
  7. package/components/DynamicTabs/index.d.ts.map +1 -0
  8. package/components/DynamicTabs/types.d.ts +1 -0
  9. package/components/DynamicTabs/types.d.ts.map +1 -0
  10. package/components/DynamicTabs/useDynamicTabs.d.ts +1 -0
  11. package/components/DynamicTabs/useDynamicTabs.d.ts.map +1 -0
  12. package/components/DynamicTabs/useDynamicTabs.js +12 -18
  13. package/components/MFHostApp/MFHostApp.d.ts +2 -1
  14. package/components/MFHostApp/MFHostApp.d.ts.map +1 -0
  15. package/components/MFHostApp/MFHostApp.js +46 -45
  16. package/components/MFHostApp/constants.d.ts +1 -0
  17. package/components/MFHostApp/constants.d.ts.map +1 -0
  18. package/components/MFHostApp/index.d.ts +1 -0
  19. package/components/MFHostApp/index.d.ts.map +1 -0
  20. package/components/MFHostApp/slots/slots.d.ts +2 -1
  21. package/components/MFHostApp/slots/slots.d.ts.map +1 -0
  22. package/components/MFHostApp/slots/styled.d.ts +1 -0
  23. package/components/MFHostApp/slots/styled.d.ts.map +1 -0
  24. package/components/MFHostApp/styles.d.ts +1 -0
  25. package/components/MFHostApp/styles.d.ts.map +1 -0
  26. package/components/MFHostApp/types.d.ts +1 -0
  27. package/components/MFHostApp/types.d.ts.map +1 -0
  28. package/components/MFNoAuthApp/index.d.ts +2 -1
  29. package/components/MFNoAuthApp/index.d.ts.map +1 -0
  30. package/components/MFNoAuthApp/index.js +26 -26
  31. package/components/MFNoAuthApp/types.d.ts +1 -0
  32. package/components/MFNoAuthApp/types.d.ts.map +1 -0
  33. package/components/ModuleDetailTabs/ModuleDetailTabs.d.ts +2 -1
  34. package/components/ModuleDetailTabs/ModuleDetailTabs.d.ts.map +1 -0
  35. package/components/ModuleDetailTabs/ModuleDetailTabs.js +30 -36
  36. package/components/ModuleDetailTabs/index.d.ts +1 -0
  37. package/components/ModuleDetailTabs/index.d.ts.map +1 -0
  38. package/components/ModuleDetailTabs/types.d.ts +1 -0
  39. package/components/ModuleDetailTabs/types.d.ts.map +1 -0
  40. package/components/ModuleDetailTabs/useModuleDatailTabs.d.ts +21 -6
  41. package/components/ModuleDetailTabs/useModuleDatailTabs.d.ts.map +1 -0
  42. package/components/ModuleDetailTabs/useModuleDatailTabs.js +61 -102
  43. package/components/index.d.ts +1 -0
  44. package/components/index.d.ts.map +1 -0
  45. package/constants.d.ts +1 -0
  46. package/constants.d.ts.map +1 -0
  47. package/constants.js +2 -2
  48. package/hooks/index.d.ts +1 -0
  49. package/hooks/index.d.ts.map +1 -0
  50. package/hooks/useDynamicAccordions/helpers/normalizeDynamicAccordions/normalizeDynamicAccordions.d.ts +1 -0
  51. package/hooks/useDynamicAccordions/helpers/normalizeDynamicAccordions/normalizeDynamicAccordions.d.ts.map +1 -0
  52. package/hooks/useDynamicAccordions/helpers/normalizeDynamicAccordions/normalizeDynamicAccordions.js +7 -15
  53. package/hooks/useDynamicAccordions/helpers/normalizeDynamicAccordions/types.d.ts +1 -0
  54. package/hooks/useDynamicAccordions/helpers/normalizeDynamicAccordions/types.d.ts.map +1 -0
  55. package/hooks/useDynamicAccordions/index.d.ts +1 -0
  56. package/hooks/useDynamicAccordions/index.d.ts.map +1 -0
  57. package/hooks/useDynamicAccordions/types.d.ts +7 -6
  58. package/hooks/useDynamicAccordions/types.d.ts.map +1 -0
  59. package/hooks/useDynamicAccordions/useBaseAccordions.d.ts +2 -1
  60. package/hooks/useDynamicAccordions/useBaseAccordions.d.ts.map +1 -0
  61. package/hooks/useDynamicAccordions/useBaseAccordions.js +59 -68
  62. package/hooks/useDynamicAccordions/useDynamicAccordions.d.ts +2 -1
  63. package/hooks/useDynamicAccordions/useDynamicAccordions.d.ts.map +1 -0
  64. package/hooks/useDynamicAccordions/useDynamicAccordions.js +13 -15
  65. package/hooks/useDynamicPaperForm/index.d.ts +1 -0
  66. package/hooks/useDynamicPaperForm/index.d.ts.map +1 -0
  67. package/hooks/useDynamicPaperForm/types.d.ts +1 -0
  68. package/hooks/useDynamicPaperForm/types.d.ts.map +1 -0
  69. package/hooks/useDynamicPaperForm/useDynamicPaperForm.d.ts +2 -1
  70. package/hooks/useDynamicPaperForm/useDynamicPaperForm.d.ts.map +1 -0
  71. package/hooks/useDynamicPaperForm/useDynamicPaperForm.js +42 -48
  72. package/hooks/useFormAddEdit/dictionary.d.ts +1 -0
  73. package/hooks/useFormAddEdit/dictionary.d.ts.map +1 -0
  74. package/hooks/useFormAddEdit/index.d.ts +1 -0
  75. package/hooks/useFormAddEdit/index.d.ts.map +1 -0
  76. package/hooks/useFormAddEdit/types.d.ts +1 -0
  77. package/hooks/useFormAddEdit/types.d.ts.map +1 -0
  78. package/hooks/useFormAddEdit/useFormAddEdit.d.ts +1 -0
  79. package/hooks/useFormAddEdit/useFormAddEdit.d.ts.map +1 -0
  80. package/hooks/useFormAddEdit/useFormAddEdit.js +36 -62
  81. package/hooks/useMasterDetail/index.d.ts +1 -0
  82. package/hooks/useMasterDetail/index.d.ts.map +1 -0
  83. package/hooks/useMasterDetail/index.js +4 -4
  84. package/hooks/useModule/index.d.ts +1 -0
  85. package/hooks/useModule/index.d.ts.map +1 -0
  86. package/hooks/useModule/index.js +8 -8
  87. package/hooks/useNetworkActionConfirm/index.d.ts +1 -0
  88. package/hooks/useNetworkActionConfirm/index.d.ts.map +1 -0
  89. package/hooks/useNetworkActionConfirm/types.d.ts +1 -0
  90. package/hooks/useNetworkActionConfirm/types.d.ts.map +1 -0
  91. package/hooks/useNetworkActionConfirm/useNetworkActionConfirm.d.ts +1 -0
  92. package/hooks/useNetworkActionConfirm/useNetworkActionConfirm.d.ts.map +1 -0
  93. package/hooks/useNetworkActionConfirm/useNetworkActionConfirm.js +34 -44
  94. package/hooks/useRefreshData/dictionary.d.ts +1 -0
  95. package/hooks/useRefreshData/dictionary.d.ts.map +1 -0
  96. package/hooks/useRefreshData/dictionary.js +2 -2
  97. package/hooks/useRefreshData/index.d.ts +1 -0
  98. package/hooks/useRefreshData/index.d.ts.map +1 -0
  99. package/hooks/useRefreshData/types.d.ts +1 -0
  100. package/hooks/useRefreshData/types.d.ts.map +1 -0
  101. package/hooks/useRefreshData/useRefreshData.d.ts +1 -0
  102. package/hooks/useRefreshData/useRefreshData.d.ts.map +1 -0
  103. package/hooks/useRefreshData/useRefreshData.js +22 -43
  104. package/hooks/useUpdateWindowTitleAndEditionInfoMF/index.d.ts +1 -0
  105. package/hooks/useUpdateWindowTitleAndEditionInfoMF/index.d.ts.map +1 -0
  106. package/hooks/useUpdateWindowTitleAndEditionInfoMF/types.d.ts +1 -0
  107. package/hooks/useUpdateWindowTitleAndEditionInfoMF/types.d.ts.map +1 -0
  108. package/hooks/useUpdateWindowTitleAndEditionInfoMF/useUpdateWindowTitleAndEditionInfoMF.d.ts +1 -0
  109. package/hooks/useUpdateWindowTitleAndEditionInfoMF/useUpdateWindowTitleAndEditionInfoMF.d.ts.map +1 -0
  110. package/hooks/useUpdateWindowTitleAndEditionInfoMF/useUpdateWindowTitleAndEditionInfoMF.js +9 -20
  111. package/index.d.ts +1 -0
  112. package/index.d.ts.map +1 -0
  113. package/index.js +40 -40
  114. package/layouts/MasterDetailLayout/MasterDetailLayout.d.ts +2 -1
  115. package/layouts/MasterDetailLayout/MasterDetailLayout.d.ts.map +1 -0
  116. package/layouts/MasterDetailLayout/MasterDetailLayout.js +83 -101
  117. package/layouts/MasterDetailLayout/components/ButtonDetail/index.d.ts +2 -1
  118. package/layouts/MasterDetailLayout/components/ButtonDetail/index.d.ts.map +1 -0
  119. package/layouts/MasterDetailLayout/constants.d.ts +1 -0
  120. package/layouts/MasterDetailLayout/constants.d.ts.map +1 -0
  121. package/layouts/MasterDetailLayout/constants.js +3 -4
  122. package/layouts/MasterDetailLayout/contexts/MasterDetailContext/index.d.ts +2 -1
  123. package/layouts/MasterDetailLayout/contexts/MasterDetailContext/index.d.ts.map +1 -0
  124. package/layouts/MasterDetailLayout/contexts/MasterDetailContext/index.js +28 -33
  125. package/layouts/MasterDetailLayout/contexts/MasterDetailContext/store.d.ts +2 -1
  126. package/layouts/MasterDetailLayout/contexts/MasterDetailContext/store.d.ts.map +1 -0
  127. package/layouts/MasterDetailLayout/contexts/MasterDetailContext/store.js +23 -28
  128. package/layouts/MasterDetailLayout/contexts/MasterDetailContext/types.d.ts +1 -0
  129. package/layouts/MasterDetailLayout/contexts/MasterDetailContext/types.d.ts.map +1 -0
  130. package/layouts/MasterDetailLayout/dicctionary.d.ts +1 -0
  131. package/layouts/MasterDetailLayout/dicctionary.d.ts.map +1 -0
  132. package/layouts/MasterDetailLayout/dicctionary.js +8 -8
  133. package/layouts/MasterDetailLayout/helpers/getTotalModuleActions.d.ts +1 -0
  134. package/layouts/MasterDetailLayout/helpers/getTotalModuleActions.d.ts.map +1 -0
  135. package/layouts/MasterDetailLayout/helpers/getTotalModuleActions.js +7 -8
  136. package/layouts/MasterDetailLayout/icons.d.ts +1 -0
  137. package/layouts/MasterDetailLayout/icons.d.ts.map +1 -0
  138. package/layouts/MasterDetailLayout/icons.js +2 -2
  139. package/layouts/MasterDetailLayout/index.d.ts +1 -0
  140. package/layouts/MasterDetailLayout/index.d.ts.map +1 -0
  141. package/layouts/MasterDetailLayout/slots/MasterDetailLayoutEnum.d.ts +1 -0
  142. package/layouts/MasterDetailLayout/slots/MasterDetailLayoutEnum.d.ts.map +1 -0
  143. package/layouts/MasterDetailLayout/slots/MasterDetailLayoutEnum.js +2 -5
  144. package/layouts/MasterDetailLayout/slots/MasterDetailLayoutSlot.d.ts +1 -0
  145. package/layouts/MasterDetailLayout/slots/MasterDetailLayoutSlot.d.ts.map +1 -0
  146. package/layouts/MasterDetailLayout/slots/MasterDetailLayoutSlot.js +9 -9
  147. package/layouts/MasterDetailLayout/styles.d.ts +1 -0
  148. package/layouts/MasterDetailLayout/styles.d.ts.map +1 -0
  149. package/layouts/MasterDetailLayout/styles.js +13 -13
  150. package/layouts/MasterDetailLayout/types.d.ts +1 -0
  151. package/layouts/MasterDetailLayout/types.d.ts.map +1 -0
  152. package/layouts/ModuleLayout/ModuleLayout.d.ts +1 -0
  153. package/layouts/ModuleLayout/ModuleLayout.d.ts.map +1 -0
  154. package/layouts/ModuleLayout/ModuleLayout.js +27 -32
  155. package/layouts/ModuleLayout/constants.d.ts +1 -0
  156. package/layouts/ModuleLayout/constants.d.ts.map +1 -0
  157. package/layouts/ModuleLayout/constants.js +3 -4
  158. package/layouts/ModuleLayout/contexts/ModuleContext/index.d.ts +2 -1
  159. package/layouts/ModuleLayout/contexts/ModuleContext/index.d.ts.map +1 -0
  160. package/layouts/ModuleLayout/contexts/ModuleContext/index.js +24 -32
  161. package/layouts/ModuleLayout/contexts/ModuleContext/store.d.ts +2 -1
  162. package/layouts/ModuleLayout/contexts/ModuleContext/store.d.ts.map +1 -0
  163. package/layouts/ModuleLayout/contexts/ModuleContext/store.js +30 -38
  164. package/layouts/ModuleLayout/contexts/ModuleContext/types.d.ts +1 -0
  165. package/layouts/ModuleLayout/contexts/ModuleContext/types.d.ts.map +1 -0
  166. package/layouts/ModuleLayout/dicctionary.d.ts +1 -0
  167. package/layouts/ModuleLayout/dicctionary.d.ts.map +1 -0
  168. package/layouts/ModuleLayout/dicctionary.js +4 -4
  169. package/layouts/ModuleLayout/index.d.ts +1 -0
  170. package/layouts/ModuleLayout/index.d.ts.map +1 -0
  171. package/layouts/ModuleLayout/slots/ModuleLayoutEnum.d.ts +1 -0
  172. package/layouts/ModuleLayout/slots/ModuleLayoutEnum.d.ts.map +1 -0
  173. package/layouts/ModuleLayout/slots/ModuleLayoutEnum.js +2 -5
  174. package/layouts/ModuleLayout/slots/ModuleLayoutSlots.d.ts +2 -1
  175. package/layouts/ModuleLayout/slots/ModuleLayoutSlots.d.ts.map +1 -0
  176. package/layouts/ModuleLayout/slots/ModuleLayoutSlots.js +9 -9
  177. package/layouts/ModuleLayout/styles.d.ts +1 -0
  178. package/layouts/ModuleLayout/styles.d.ts.map +1 -0
  179. package/layouts/ModuleLayout/styles.js +2 -2
  180. package/layouts/ModuleLayout/subcomponents/BaseModuleLayout/index.d.ts +1 -0
  181. package/layouts/ModuleLayout/subcomponents/BaseModuleLayout/index.d.ts.map +1 -0
  182. package/layouts/ModuleLayout/subcomponents/BaseModuleLayout/index.js +14 -16
  183. package/layouts/ModuleLayout/subcomponents/BaseModuleLayout/types.d.ts +1 -0
  184. package/layouts/ModuleLayout/subcomponents/BaseModuleLayout/types.d.ts.map +1 -0
  185. package/layouts/ModuleLayout/types.d.ts +1 -0
  186. package/layouts/ModuleLayout/types.d.ts.map +1 -0
  187. package/layouts/NoAuthModuleLayout/constants.d.ts +1 -0
  188. package/layouts/NoAuthModuleLayout/constants.d.ts.map +1 -0
  189. package/layouts/NoAuthModuleLayout/constants.js +10 -14
  190. package/layouts/NoAuthModuleLayout/dicctionary.d.ts +1 -0
  191. package/layouts/NoAuthModuleLayout/dicctionary.d.ts.map +1 -0
  192. package/layouts/NoAuthModuleLayout/dicctionary.js +4 -4
  193. package/layouts/NoAuthModuleLayout/index.d.ts +2 -1
  194. package/layouts/NoAuthModuleLayout/index.d.ts.map +1 -0
  195. package/layouts/NoAuthModuleLayout/index.js +39 -48
  196. package/layouts/NoAuthModuleLayout/slots/NoAuthModuleLayoutEnum.d.ts +1 -0
  197. package/layouts/NoAuthModuleLayout/slots/NoAuthModuleLayoutEnum.d.ts.map +1 -0
  198. package/layouts/NoAuthModuleLayout/slots/NoAuthModuleLayoutEnum.js +2 -14
  199. package/layouts/NoAuthModuleLayout/slots/NoAuthModuleLayoutSlots.d.ts +11 -10
  200. package/layouts/NoAuthModuleLayout/slots/NoAuthModuleLayoutSlots.d.ts.map +1 -0
  201. package/layouts/NoAuthModuleLayout/slots/NoAuthModuleLayoutSlots.js +47 -54
  202. package/layouts/NoAuthModuleLayout/styles.d.ts +1 -0
  203. package/layouts/NoAuthModuleLayout/styles.d.ts.map +1 -0
  204. package/layouts/NoAuthModuleLayout/styles.js +27 -27
  205. package/layouts/NoAuthModuleLayout/subcomponents/BaseNoAuthModuleLayout/index.d.ts +2 -1
  206. package/layouts/NoAuthModuleLayout/subcomponents/BaseNoAuthModuleLayout/index.d.ts.map +1 -0
  207. package/layouts/NoAuthModuleLayout/subcomponents/BaseNoAuthModuleLayout/index.js +9 -11
  208. package/layouts/NoAuthModuleLayout/subcomponents/BaseNoAuthModuleLayout/subcomponents/BaseContent/index.d.ts +2 -1
  209. package/layouts/NoAuthModuleLayout/subcomponents/BaseNoAuthModuleLayout/subcomponents/BaseContent/index.d.ts.map +1 -0
  210. package/layouts/NoAuthModuleLayout/subcomponents/BaseNoAuthModuleLayout/subcomponents/BaseContent/index.js +36 -43
  211. package/layouts/NoAuthModuleLayout/subcomponents/BaseNoAuthModuleLayout/subcomponents/BaseContent/types.d.ts +1 -0
  212. package/layouts/NoAuthModuleLayout/subcomponents/BaseNoAuthModuleLayout/subcomponents/BaseContent/types.d.ts.map +1 -0
  213. package/layouts/NoAuthModuleLayout/types.d.ts +1 -0
  214. package/layouts/NoAuthModuleLayout/types.d.ts.map +1 -0
  215. package/layouts/index.d.ts +1 -0
  216. package/layouts/index.d.ts.map +1 -0
  217. package/package.json +28 -44
  218. package/test/HostThemeProviderMock.d.ts +2 -1
  219. package/test/HostThemeProviderMock.d.ts.map +1 -0
  220. package/test/TestAppWrapper.d.ts +1 -0
  221. package/test/TestAppWrapper.d.ts.map +1 -0
  222. package/test/TestFormAutoValidation.d.ts +2 -1
  223. package/test/TestFormAutoValidation.d.ts.map +1 -0
  224. package/test/constants.d.ts +1 -0
  225. package/test/constants.d.ts.map +1 -0
  226. package/test/constants_no_mock.d.ts +1 -0
  227. package/test/constants_no_mock.d.ts.map +1 -0
  228. package/test/getNameDataTestId.d.ts +3 -2
  229. package/test/getNameDataTestId.d.ts.map +1 -0
  230. package/test/index.d.ts +1 -0
  231. package/test/index.d.ts.map +1 -0
  232. package/test/mocks.d.ts +13 -11
  233. package/test/mocks.d.ts.map +1 -0
  234. package/test/setup.d.ts +1 -0
  235. package/test/setup.d.ts.map +1 -0
  236. package/test/types.d.ts +1 -0
  237. package/test/types.d.ts.map +1 -0
  238. package/test/utils.d.ts +2 -2
  239. package/test/utils.d.ts.map +1 -0
  240. package/utils/createAppMF.d.ts +1 -0
  241. package/utils/createAppMF.d.ts.map +1 -0
  242. package/utils/createAppMF.js +39 -50
  243. package/utils/index.d.ts +1 -0
  244. package/utils/index.d.ts.map +1 -0
  245. package/.storybook/constants.d.ts +0 -21
  246. package/.storybook/decorators/WithContexts/WithContexts.d.ts +0 -5
  247. package/.storybook/decorators/WithContexts/constants.d.ts +0 -10
  248. package/.storybook/decorators/WithContexts/index.d.ts +0 -1
  249. package/.storybook/decorators/WithContexts/styles.d.ts +0 -1
  250. package/.storybook/decorators/WithContexts/subcomponents/AppWithTheme.d.ts +0 -6
  251. package/.storybook/decorators/WithContexts/types.d.ts +0 -7
  252. package/.storybook/decorators/index.d.ts +0 -1
  253. package/.storybook/main.d.ts +0 -3
  254. package/.storybook/storybook.vite.d.ts +0 -2
  255. package/.storybook/utils/getGlobalsFromSearchParams.d.ts +0 -7
  256. package/.storybook/utils/getStylesColorsByMode.d.ts +0 -832
  257. package/@types/types.d.ts +0 -23
  258. package/components/DynamicTabs/index.js +0 -1
  259. package/components/MFHostApp/index.js +0 -1
  260. package/components/ModuleDetailTabs/ModuleDetailTabs.test.d.ts +0 -1
  261. package/components/ModuleDetailTabs/index.js +0 -1
  262. package/components/ModuleDetailTabs/useModuleDatailTabs.test.d.ts +0 -1
  263. package/components/index.js +0 -1
  264. package/hooks/index.js +0 -1
  265. package/hooks/useDynamicAccordions/helpers/normalizeDynamicAccordions/normalizeDynamicAccordions.test.d.ts +0 -1
  266. package/hooks/useDynamicAccordions/index.js +0 -1
  267. package/hooks/useDynamicPaperForm/index.js +0 -1
  268. package/hooks/useFormAddEdit/index.js +0 -1
  269. package/hooks/useFormAddEdit/useFormAddEdit.test.d.ts +0 -1
  270. package/hooks/useNetworkActionConfirm/index.js +0 -1
  271. package/hooks/useRefreshData/index.js +0 -1
  272. package/hooks/useRefreshData/useRefreshData.test.d.ts +0 -1
  273. package/hooks/useUpdateWindowTitleAndEditionInfoMF/index.js +0 -1
  274. package/layouts/MasterDetailLayout/index.js +0 -1
  275. package/layouts/MasterDetailLayout/tests/MasterDetailLayout.test.d.ts +0 -1
  276. package/layouts/ModuleLayout/index.js +0 -1
  277. package/layouts/NoAuthModuleLayout/tests/NoAuthModuleLayout.test.d.ts +0 -1
  278. package/layouts/index.js +0 -1
  279. package/storybook/hooks/useBaseAccordions/moks/mokData.d.ts +0 -22
  280. package/storybook/hooks/useBaseAccordions/subcomponents/RenderUseBaseAccordions.d.ts +0 -13
  281. package/storybook/hooks/useBaseAccordions/useBaseAccordions.stories.d.ts +0 -21
  282. package/storybook/layouts/MasterDetailLayout/MasterDetailLayout.stories.d.ts +0 -7
  283. package/storybook/layouts/MasterDetailLayout/moks/mokData.d.ts +0 -7
  284. package/storybook/layouts/MasterDetailLayout/subcomponents/RenderMasterDetailLayout.d.ts +0 -10
  285. package/storybook/layouts/ModuleDetailTabs/ModuleDetailTabs.stories.d.ts +0 -41
  286. package/storybook/layouts/ModuleLayout/ModuleLayout.stories.d.ts +0 -6
  287. package/storybook/layouts/ModuleLayout/moks/mokData.d.ts +0 -14
  288. package/storybook/layouts/ModuleLayout/subcomponents/ClientsHeaderActions.d.ts +0 -4
  289. package/storybook/layouts/ModuleLayout/subcomponents/RenderModuleLayout.d.ts +0 -6
  290. package/storybook/layouts/ModuleLayout/subcomponents/UsersHeaderActions.d.ts +0 -4
  291. package/storybook/layouts/ModuleLayout/subcomponents/WithExtendedContainer.d.ts +0 -5
  292. package/storybook/layouts/NoAuthModuleLayout/NoAuthModuleLayout.stories.d.ts +0 -9
  293. package/utils/index.js +0 -1
  294. package/vite-env.d.ts +0 -22
@@ -3,4 +3,5 @@
3
3
  */
4
4
  export declare const BaseNoAuthModuleLayout: (props: {
5
5
  children: React.ReactNode;
6
- }) => import("react/jsx-runtime").JSX.Element;
6
+ }) => import("@emotion/react/jsx-runtime").JSX.Element;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/layouts/src/layouts/NoAuthModuleLayout/subcomponents/BaseNoAuthModuleLayout/index.tsx"],"names":[],"mappings":"AAKA;;GAEG;AACH,eAAO,MAAM,sBAAsB,GAAI,OAAO;IAC5C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,qDAWA,CAAC"}
@@ -1,14 +1,12 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { HelmetPage } from "@m4l/components";
3
- import { useModuleDictionary, useBase } from "@m4l/core";
4
- import { B as BaseContent } from "./subcomponents/BaseContent/index.js";
5
- import { c as BaseNoAuthModuleLayoutRootStyled } from "../../slots/NoAuthModuleLayoutSlots.js";
6
- const BaseNoAuthModuleLayout = (props) => {
7
- const { children } = props;
8
- const { getModuleLabel } = useModuleDictionary();
9
- const { subtitle, bannerUrl } = useBase();
10
- return /* @__PURE__ */ jsx(HelmetPage, { title: getModuleLabel(), subtitle, children: /* @__PURE__ */ jsx(BaseNoAuthModuleLayoutRootStyled, { id: "modulerootnouth", "data-testid": "modulerootnouth", children: /* @__PURE__ */ jsx(BaseContent, { children, bannerUrl }) }) });
1
+ import { jsx as o } from "@emotion/react/jsx-runtime";
2
+ import { HelmetPage as n } from "@m4l/components";
3
+ import { useModuleDictionary as i, useBase as d } from "@m4l/core";
4
+ import { BaseContent as m } from "./subcomponents/BaseContent/index.js";
5
+ import { BaseNoAuthModuleLayoutRootStyled as s } from "../../slots/NoAuthModuleLayoutSlots.js";
6
+ const y = (t) => {
7
+ const { children: e } = t, { getModuleLabel: r } = i(), { subtitle: u, bannerUrl: l } = d();
8
+ return /* @__PURE__ */ o(n, { title: r(), subtitle: u, children: /* @__PURE__ */ o(s, { id: "modulerootnouth", "data-testid": "modulerootnouth", children: /* @__PURE__ */ o(m, { children: e, bannerUrl: l }) }) });
11
9
  };
12
10
  export {
13
- BaseNoAuthModuleLayout as B
11
+ y as BaseNoAuthModuleLayout
14
12
  };
@@ -2,4 +2,5 @@ import { BaseContentProps } from './types';
2
2
  /**
3
3
  * Componente que contiene el contenido de la vista de escritorio
4
4
  */
5
- export declare const BaseContent: (props: BaseContentProps) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const BaseContent: (props: BaseContentProps) => import("@emotion/react/jsx-runtime").JSX.Element;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/layouts/src/layouts/NoAuthModuleLayout/subcomponents/BaseNoAuthModuleLayout/subcomponents/BaseContent/index.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAG3C;;GAEG;AACH,eAAO,MAAM,WAAW,GAAI,OAAO,gBAAgB,qDAkElD,CAAC"}
@@ -1,69 +1,62 @@
1
- import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
- import { useComponentSize, LanguagePopover, IconButton, Image, Typography, Stack } from "@m4l/components";
3
- import { D as DesktopBannerStyled, W as WrapperFormContentStyled, H as HeaderContainerStyled, B as ButtonHomeNavigationStyled, C as ContainerLanguageAndSettingsStyled, a as ContainerCompanyLogoStyled, F as FormContentStyled, b as ContainerModuleNameStyled } from "../../../../slots/NoAuthModuleLayoutSlots.js";
4
- import { useLocation, useNavigate } from "react-router-dom";
5
- import { useEnvironment, useBase, useModuleDictionary } from "@m4l/core";
6
- import { a as NO_AUTH_MODULE_LAYOUT_CLASSES, b as NOT_AUTH_MODULE_LAYOUT_ICONS, D as DICTIONARY_KEYS } from "../../../../constants.js";
7
- const BaseContent = (props) => {
8
- const { children, bannerUrl } = props;
9
- const { host_static_assets, environment_assets } = useEnvironment();
10
- const { currentSize } = useComponentSize();
11
- const location = useLocation();
12
- const { handleSetting, companyLogoNormalUrl, footerComponent, homePath } = useBase();
13
- const navigate = useNavigate();
14
- const ownerState = {
15
- size: currentSize
16
- };
17
- const { getLabel } = useModuleDictionary();
18
- return /* @__PURE__ */ jsxs(Fragment, { children: [
19
- /* @__PURE__ */ jsx(DesktopBannerStyled, { enableIntersectionObserver: false, src: bannerUrl, className: NO_AUTH_MODULE_LAYOUT_CLASSES.desktopBanner }),
20
- /* @__PURE__ */ jsxs(WrapperFormContentStyled, { children: [
21
- /* @__PURE__ */ jsxs(HeaderContainerStyled, { children: [
22
- location.pathname !== homePath && /* @__PURE__ */ jsx(
23
- ButtonHomeNavigationStyled,
1
+ import { jsxs as t, Fragment as C, jsx as e } from "@emotion/react/jsx-runtime";
2
+ import { useComponentSize as v, LanguagePopover as y, IconButton as L, Image as f, Typography as s, Stack as N } from "@m4l/components";
3
+ import { DesktopBannerStyled as O, WrapperFormContentStyled as U, HeaderContainerStyled as b, ButtonHomeNavigationStyled as k, ContainerLanguageAndSettingsStyled as A, ContainerCompanyLogoStyled as I, FormContentStyled as T, ContainerModuleNameStyled as B } from "../../../../slots/NoAuthModuleLayoutSlots.js";
4
+ import { useLocation as $, useNavigate as x } from "react-router-dom";
5
+ import { useEnvironment as D, useBase as E, useModuleDictionary as H } from "@m4l/core";
6
+ import { NO_AUTH_MODULE_LAYOUT_CLASSES as M, NOT_AUTH_MODULE_LAYOUT_ICONS as l, DICTIONARY_KEYS as Y } from "../../../../constants.js";
7
+ const K = (c) => {
8
+ const { children: m, bannerUrl: d } = c, { host_static_assets: o, environment_assets: r } = D(), { currentSize: h } = v(), p = $(), { handleSetting: u, companyLogoNormalUrl: S, footerComponent: a, homePath: i } = E(), g = x(), _ = {
9
+ size: h
10
+ }, { getLabel: n } = H();
11
+ return /* @__PURE__ */ t(C, { children: [
12
+ /* @__PURE__ */ e(O, { enableIntersectionObserver: !1, src: d, className: M.desktopBanner }),
13
+ /* @__PURE__ */ t(U, { children: [
14
+ /* @__PURE__ */ t(b, { children: [
15
+ p.pathname !== i && /* @__PURE__ */ e(
16
+ k,
24
17
  {
25
18
  variant: "text",
26
- ownerState: { ownerState },
27
- label: getLabel(DICTIONARY_KEYS.label_home_navigation),
28
- startIcon: `${host_static_assets}/${environment_assets}/${NOT_AUTH_MODULE_LAYOUT_ICONS.home}`,
19
+ ownerState: { ownerState: _ },
20
+ label: n(Y.label_home_navigation),
21
+ startIcon: `${o}/${r}/${l.home}`,
29
22
  onClick: () => {
30
- navigate(homePath || "/");
23
+ g(i || "/");
31
24
  }
32
25
  }
33
26
  ),
34
- /* @__PURE__ */ jsxs(ContainerLanguageAndSettingsStyled, { children: [
35
- /* @__PURE__ */ jsx(LanguagePopover, {}),
36
- /* @__PURE__ */ jsx(
37
- IconButton,
27
+ /* @__PURE__ */ t(A, { children: [
28
+ /* @__PURE__ */ e(y, {}),
29
+ /* @__PURE__ */ e(
30
+ L,
38
31
  {
39
- icon: `${host_static_assets}/${environment_assets}/${NOT_AUTH_MODULE_LAYOUT_ICONS.themeSettings}`,
32
+ icon: `${o}/${r}/${l.themeSettings}`,
40
33
  variant: "text",
41
34
  onClick: () => {
42
- handleSetting?.();
35
+ u?.();
43
36
  }
44
37
  }
45
38
  )
46
39
  ] })
47
40
  ] }),
48
- /* @__PURE__ */ jsx(ContainerCompanyLogoStyled, { children: /* @__PURE__ */ jsx(Image, { src: companyLogoNormalUrl }) }),
49
- /* @__PURE__ */ jsxs(FormContentStyled, { children: [
50
- /* @__PURE__ */ jsxs(ContainerModuleNameStyled, { children: [
51
- /* @__PURE__ */ jsx(Typography, { variant: "h5", skeletonWidth: "20%", children: getLabel("module_name") }),
52
- /* @__PURE__ */ jsx(
53
- Typography,
41
+ /* @__PURE__ */ e(I, { children: /* @__PURE__ */ e(f, { src: S }) }),
42
+ /* @__PURE__ */ t(T, { children: [
43
+ /* @__PURE__ */ t(B, { children: [
44
+ /* @__PURE__ */ e(s, { variant: "h5", skeletonWidth: "20%", children: n("module_name") }),
45
+ /* @__PURE__ */ e(
46
+ s,
54
47
  {
55
48
  variant: "subtitle",
56
49
  skeletonWidth: "40%",
57
- children: getLabel("module_description")
50
+ children: n("module_description")
58
51
  }
59
52
  )
60
53
  ] }),
61
- /* @__PURE__ */ jsx(Stack, { direction: "column", height: "auto", style: { overflow: "auto", position: "relative" }, children })
54
+ /* @__PURE__ */ e(N, { direction: "column", height: "auto", style: { overflow: "auto", position: "relative" }, children: m })
62
55
  ] }),
63
- footerComponent && footerComponent
56
+ a && a
64
57
  ] })
65
58
  ] });
66
59
  };
67
60
  export {
68
- BaseContent as B
61
+ K as BaseContent
69
62
  };
@@ -3,3 +3,4 @@ export interface BaseContentProps {
3
3
  children: React.ReactNode;
4
4
  bannerUrl: NoAuthBaseBaseProps['bannerUrl'];
5
5
  }
6
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/layouts/src/layouts/NoAuthModuleLayout/subcomponents/BaseNoAuthModuleLayout/subcomponents/BaseContent/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,EAAE,mBAAmB,CAAC,WAAW,CAAC,CAAC;CAC7C"}
@@ -85,3 +85,4 @@ export type NoAuthModuleLayoutSlotsType = keyof typeof NoAuthModuleLayoutSlots;
85
85
  * Estilos aplicables al `NoAuthModuleLayout`
86
86
  */
87
87
  export type NoAuthModuleLayoutStyles = M4LOverridesStyleRules<NoAuthModuleLayoutSlotsType, typeof NOT_AUTH_MODULE_LAYOUT_KEY, Theme>;
88
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/layouts/src/layouts/NoAuthModuleLayout/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,MAAM,WAAW,cAAc;IAC3B,QAAQ,EAAE,OAAO,CAAC;CACrB;AACD,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC;AAC3D,MAAM,CAAC,OAAO,WAAW,mBAAmB;IAC1C;;OAEG;IACD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAE3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,eAAe,CAAC,EAAE,YAAY,CAAC;IAC/B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,uBAAwB,SAAQ,mBAAmB;IACxE;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;CACvB;AACD,MAAM,WAAW,uBAAwB,SAAQ,uBAAuB;IACtE;;OAEG;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,oBAAoB,EAAE,MAAM,EAAE,CAAC;IAC/B;;OAEG;IACH,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB;;OAEG;IACH,cAAc,EAAE,OAAO,GAAG,IAAI,GAAG,IAAI,CAAC;IACtC;;OAEG;IACH,eAAe,CAAC,EAAE,YAAY,CAAC;CAElC;AAED,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC;CAC1C;AACD;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,MAAM,OAAO,uBAAuB,CAAA;AAC9E;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,sBAAsB,CAAC,2BAA2B,EAAE,OAAO,0BAA0B,EAAE,KAAK,CAAC,CAAC"}
@@ -2,3 +2,4 @@ export * from './ModuleLayout';
2
2
  export * from './MasterDetailLayout';
3
3
  export { NoAuthModuleLayout } from './NoAuthModuleLayout';
4
4
  export * from './NoAuthModuleLayout/dicctionary';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/layouts/src/layouts/index.ts"],"names":[],"mappings":"AAGA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,cAAc,kCAAkC,CAAC"}
package/package.json CHANGED
@@ -1,54 +1,38 @@
1
1
  {
2
2
  "name": "@m4l/layouts",
3
- "version": "9.3.21",
4
- "license": "UNLICENSED",
5
- "author": "M4L Team",
6
- "lint-staged": {
7
- "*.{js,ts,tsx}": "eslint --fix --max-warnings 0"
8
- },
9
- "peerDependencies": {
10
- "@m4l/components": "^9.0.0",
11
- "@m4l/core": "^2.0.0",
12
- "@m4l/graphics": "^7.0.0",
13
- "@m4l/styles": "^7.0.0"
14
- },
15
- "resolutions": {
16
- "glob": "^10.4.5",
17
- "react": "18.3.1",
18
- "@types/react": "18.3.23",
19
- "@types/react-dom": "18.3.7",
20
- "react-dom": "18.3.1",
21
- "@vitejs/plugin-react": "^4.0.0",
22
- "storybook": "^8.3.4"
23
- },
24
- "overrides": {
25
- "glob": "^10.4.5",
26
- "eslint": "9.28.0",
27
- "react": "18.3.1",
28
- "@types/react": "18.3.23",
29
- "@types/react-dom": "18.3.7",
30
- "react-dom": "18.3.1"
3
+ "version": "9.3.22-beta.1",
4
+ "publishConfig": {
5
+ "access": "public"
31
6
  },
7
+ "type": "module",
8
+ "main": "./index.js",
9
+ "module": "./index.js",
10
+ "types": "./index.d.ts",
32
11
  "files": [
12
+ "index.js",
13
+ "index.d.ts",
33
14
  "*"
34
15
  ],
35
- "source": "./index.js",
36
- "main": "./dist/index.js",
37
- "module": "./index.js",
38
- "type": "module",
39
- "types": "./index.d.ts",
40
- "sideEffects": false,
41
- "publishConfig": {
42
- "access": "public"
43
- },
44
- "engines": {
45
- "node": ">=12.0.0"
46
- },
47
- "packageManager": "yarn@4.5.0",
48
- "private": false,
49
16
  "exports": {
17
+ "./package.json": "./package.json",
50
18
  ".": {
51
- "import": "./index.js"
19
+ "types": "./index.d.ts",
20
+ "import": "./index.js",
21
+ "default": "./index.js"
52
22
  }
23
+ },
24
+ "peerDependencies": {
25
+ "@emotion/react": "11.14.0",
26
+ "@emotion/styled": "11.14.1",
27
+ "react": "^19.0.0",
28
+ "react-dom": "^19.0.0"
29
+ },
30
+ "dependencies": {
31
+ "@emotion/react": "11.14.0",
32
+ "react-router-dom": "6.29.0",
33
+ "react": "^19.0.0",
34
+ "react-dom": "^19.0.0",
35
+ "zustand": "4.3.6",
36
+ "@mui/material": "5.16.7"
53
37
  }
54
- }
38
+ }
@@ -6,5 +6,6 @@ interface HostThemeProviderMockProps {
6
6
  /**
7
7
  * TODO: Documentar
8
8
  */
9
- declare const HostThemeProviderMock: (props: HostThemeProviderMockProps) => import("react/jsx-runtime").JSX.Element;
9
+ declare const HostThemeProviderMock: (props: HostThemeProviderMockProps) => import("@emotion/react/jsx-runtime").JSX.Element;
10
10
  export default HostThemeProviderMock;
11
+ //# sourceMappingURL=HostThemeProviderMock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HostThemeProviderMock.d.ts","sourceRoot":"","sources":["../../../../../packages/layouts/src/test/HostThemeProviderMock.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAUvC,UAAU,0BAA0B;IAClC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AACD;;GAEG;AACH,QAAA,MAAM,qBAAqB,GAAI,OAAO,0BAA0B,qDAoC/D,CAAC;AACF,eAAe,qBAAqB,CAAC"}
@@ -27,3 +27,4 @@ interface TestAppWrapperProps {
27
27
  */
28
28
  export declare const TestAppWrapper: FC<TestAppWrapperProps>;
29
29
  export default TestAppWrapper;
30
+ //# sourceMappingURL=TestAppWrapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TestAppWrapper.d.ts","sourceRoot":"","sources":["../../../../../packages/layouts/src/test/TestAppWrapper.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,EAAE,UAAU,EAAsB,MAAM,eAAe,CAAC;AAK/D,UAAU,mBAAmB;IAC3B,gBAAgB,CAAC,EAAC,UAAU,CAAC;IAC7B,QAAQ,EAAE,SAAS,CAAC;CACrB;AACD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAYlD,CAAC;AACF,eAAe,cAAc,CAAC"}
@@ -1,4 +1,5 @@
1
1
  /**
2
2
  * Envoltorio para el estado de error
3
3
  */
4
- export declare const TestFormAutoValidation: () => import("react/jsx-runtime").JSX.Element;
4
+ export declare const TestFormAutoValidation: () => import("@emotion/react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=TestFormAutoValidation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TestFormAutoValidation.d.ts","sourceRoot":"","sources":["../../../../../packages/layouts/src/test/TestFormAutoValidation.tsx"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,sBAAsB,wDAgBlC,CAAC"}
@@ -65,3 +65,4 @@ export declare const environmentDataForTesting: {
65
65
  export declare const baseDataForTesting: BaseDataForTesting;
66
66
  export declare const mock_toaster: Toaster;
67
67
  export declare const hostToolsDataForTesting: HostToolsType;
68
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../packages/layouts/src/test/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAQxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAC7C,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAC5C,eAAO,MAAM,oBAAoB,0BAA0B,CAAC;AAC5D,eAAO,MAAM,wBAAwB;;;;;;;;CAGpC,CAAC;AACF,eAAO,MAAM,yBAAyB,UAAY,CAAC;AACnD,eAAO,MAAM,2BAA2B;;;;CAA4B,CAAC;AACrE,eAAO,MAAM,oBAAoB;;;;;;CAMhC,CAAC;AACF,eAAO,MAAM,4BAA4B;;;;;;CAMxC,CAAC;AACF,eAAO,MAAM,4BAA4B;;;;;;CAMxC,CAAC;AACF,eAAO,MAAM,8BAA8B;;;;;CAE1C,CAAC;AACF,eAAO,MAAM,sBAAsB;;;;CAIlC,CAAC;AACF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;CAYrC,CAAC;AACF,eAAO,MAAM,kBAAkB,EAAE,kBAGhC,CAAC;AACF,eAAO,MAAM,YAAY,EAAE,OAAiB,CAAC;AAK7C,eAAO,MAAM,uBAAuB,EAAE,aAQrC,CAAC"}
@@ -1 +1,2 @@
1
1
  export declare const TEST_PROP_ID = "data-testid";
2
+ //# sourceMappingURL=constants_no_mock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants_no_mock.d.ts","sourceRoot":"","sources":["../../../../../packages/layouts/src/test/constants_no_mock.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,YAAY,gBAAgB,CAAC"}
@@ -9,7 +9,8 @@ export declare const getNameDataTestId: (componentName: string, slotKey: string,
9
9
  * @param slotKey
10
10
  */
11
11
  export declare function getPropDataTestId(componentName: string, slotKey: string, instaceId?: string): {
12
- "data-testid": string;
12
+ 'data-testid': string;
13
13
  } | {
14
- "data-testid"?: undefined;
14
+ 'data-testid'?: undefined;
15
15
  };
16
+ //# sourceMappingURL=getNameDataTestId.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getNameDataTestId.d.ts","sourceRoot":"","sources":["../../../../../packages/layouts/src/test/getNameDataTestId.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAC5B,eAAe,MAAM,EACrB,SAAS,MAAM,EACf,YAAY,MAAM,WAMnB,CAAC;AACF;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAG,SAAS,CAAC,EAAE,MAAM;;;;EAO5F"}
package/test/index.d.ts CHANGED
@@ -2,3 +2,4 @@ export * from './constants';
2
2
  export * from './types';
3
3
  export * from './utils';
4
4
  export * from './mocks';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/layouts/src/test/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
package/test/mocks.d.ts CHANGED
@@ -1,15 +1,16 @@
1
+ import { Mock } from 'vitest';
1
2
  import { Formatters } from '@m4l/graphics';
2
3
  import * as core from '@m4l/core';
3
4
  import * as graphics from '@m4l/graphics';
4
- export declare const mock_addFlag: import('vitest').Mock<(...args: any[]) => any>;
5
- export declare const mock_networkOperation: import('vitest').Mock<(...args: any[]) => any>;
6
- export declare const mock_useFormatter: import('vitest').Mock<(...args: any[]) => any>;
7
- export declare const mock_events_add_listener: import('vitest').Mock<(...args: any[]) => any>;
8
- export declare const mock_events_remove_listener: import('vitest').Mock<(...args: any[]) => any>;
9
- export declare const mock_events_emit: import('vitest').Mock<(...args: any[]) => any>;
10
- export declare const mock_startProgress: import('vitest').Mock<(...args: any[]) => any>;
11
- export declare const mock_stopProgress: import('vitest').Mock<(...args: any[]) => any>;
12
- export declare const mock_useModuleDictionary: import('vitest').Mock<(...args: any[]) => any>;
5
+ export declare const mock_addFlag: Mock;
6
+ export declare const mock_networkOperation: Mock;
7
+ export declare const mock_useFormatter: Mock;
8
+ export declare const mock_events_add_listener: Mock;
9
+ export declare const mock_events_remove_listener: Mock;
10
+ export declare const mock_events_emit: Mock;
11
+ export declare const mock_startProgress: Mock;
12
+ export declare const mock_stopProgress: Mock;
13
+ export declare const mock_useModuleDictionary: Mock;
13
14
  export declare const mock_useEnvironment: {
14
15
  host_static_assets: string;
15
16
  environment_assets: string;
@@ -17,10 +18,11 @@ export declare const mock_useEnvironment: {
17
18
  };
18
19
  export declare const formatterValues: Formatters;
19
20
  export declare const mockedGraphics: {
20
- useFormatter: import('vitest').MockInstance<() => import('@m4l/graphics').Formatters>;
21
+ useFormatter: Mock<() => import('@m4l/graphics').Formatters>;
21
22
  };
22
23
  export declare function restoreGraphicsMocked(): void;
23
24
  export declare const coreImplementation: typeof core;
24
25
  export declare const graphicsImplementation: {
25
- useFormatter: import('vitest').MockInstance<() => import('@m4l/graphics').Formatters>;
26
+ useFormatter: Mock<() => import('@m4l/graphics').Formatters>;
26
27
  };
28
+ //# sourceMappingURL=mocks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mocks.d.ts","sourceRoot":"","sources":["../../../../../packages/layouts/src/test/mocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAM,MAAM,QAAQ,CAAC;AAClC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAE1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,eAAO,MAAM,YAAY,EAAC,IAAc,CAAC;AACzC,eAAO,MAAM,qBAAqB,EAAC,IAAc,CAAC;AAClD,eAAO,MAAM,iBAAiB,EAAC,IAAc,CAAC;AAC9C,eAAO,MAAM,wBAAwB,EAAC,IAAc,CAAC;AACrD,eAAO,MAAM,2BAA2B,EAAC,IAAc,CAAC;AACxD,eAAO,MAAM,gBAAgB,EAAC,IAAc,CAAC;AAC7C,eAAO,MAAM,kBAAkB,EAAC,IAAc,CAAC;AAC/C,eAAO,MAAM,iBAAiB,EAAC,IAAc,CAAC;AAC9C,eAAO,MAAM,wBAAwB,EAAC,IAAc,CAAC;AACrD,eAAO,MAAM,mBAAmB;;;;CAI/B,CAAC;AACF,eAAO,MAAM,eAAe,EAAE,UAY7B,CAAC;AAGF,eAAO,MAAM,cAAc;;CAE1B,CAAC;AACF,wBAAgB,qBAAqB,SAEpC;AACD,eAAO,MAAM,kBAAkB,aAAO,CAAC;AACvC,eAAO,MAAM,sBAAsB;;CAAiB,CAAC"}
package/test/setup.d.ts CHANGED
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=setup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../../../../packages/layouts/src/test/setup.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC"}
package/test/types.d.ts CHANGED
@@ -2,3 +2,4 @@ export interface BaseDataForTesting {
2
2
  a: string;
3
3
  b: number;
4
4
  }
5
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../packages/layouts/src/test/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX"}
package/test/utils.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import { act, cleanup, fireEvent, RenderResult, screen, waitFor, within } from '@testing-library/react';
2
- import { renderHook } from '@testing-library/react-hooks';
1
+ import { act, cleanup, fireEvent, RenderResult, screen, waitFor, within, renderHook } from '@testing-library/react';
3
2
  import { default as userEvent, UserEvent } from '@testing-library/user-event';
4
3
  import { ReactElement } from 'react';
5
4
  import { describe, expect } from 'vitest';
@@ -27,3 +26,4 @@ declare const renderMaterialUI: (ui: ReactElement, options?: {}) => RenderResult
27
26
  user: UserEvent;
28
27
  };
29
28
  export { act, cleanup, describe, expect, fireEvent, customRender as render, renderHook, renderMaterialUI, screen, userEvent, waitFor, within, };
29
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../packages/layouts/src/test/utils.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,SAAS,EAAU,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAiC,MAAM,wBAAwB,CAAC;AAE3J,OAAO,SAAS,EAAE,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAa,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAWrD;;GAEG;AACH,QAAA,MAAM,YAAY,GAAI,IAAI,YAAY,EAAE,YAAY,KAAG,YAAY,GAAG;IAAE,IAAI,EAAE,UAAU,CAAC,OAAO,SAAS,CAAC,KAAK,CAAC,CAAA;CAU/G,CAAC;AACF;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,gBAAgB,GACpB,IAAI,YAAY,EAChB,YAAY,KACX,YAAY,GAAG;IAAE,IAAI,EAAE,SAAS,CAAA;CASlC,CAAC;AACF,OAAO,EACL,GAAG,EAAE,OAAO,EAAE,QAAQ,EACtB,MAAM,EAAE,SAAS,EAAE,YAAY,IAAI,MAAM,EACzC,UAAU,EAAE,gBAAgB,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,GACjE,CAAC"}
@@ -14,3 +14,4 @@ export type CreateAppMFProps = {
14
14
  * Create a new app for a microfrontend
15
15
  */
16
16
  export declare function createAppMF(props: CreateAppMFProps): void;
17
+ //# sourceMappingURL=createAppMF.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createAppMF.d.ts","sourceRoot":"","sources":["../../../../../packages/layouts/src/utils/createAppMF.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkB,UAAU,EAAiB,MAAM,iBAAiB,CAAC;AAW5E,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,CAAC,KAAK,EAAE;QAAE,UAAU,CAAC,EAAE,UAAU,CAAA;KAAE,KAAK,GAAG,CAAC,OAAO,CAAC;IACzD,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,oBAAoB,EAAE,MAAM,EAAE,CAAC;IAC/B,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB,CAAC;AACF;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,QA+ElD"}
@@ -1,59 +1,48 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { M as MFHostApp } from "../components/MFHostApp/MFHostApp.js";
3
- import { createRoot } from "react-dom/client";
4
- function createAppMF(props) {
1
+ import { jsx as p } from "@emotion/react/jsx-runtime";
2
+ import { MFHostApp as y } from "../components/MFHostApp/MFHostApp.js";
3
+ import { createRoot as F } from "react-dom/client";
4
+ function x(d) {
5
5
  const {
6
- prefixMF,
7
- moduleId,
8
- App,
9
- privileges,
10
- appVersion,
11
- componentsDictionary,
12
- skeletonFlags
13
- } = props;
14
- window[`render_${prefixMF}_${moduleId}`] = (containerId, environment, hostTools, currentLocale, hostTheme, axiosOperation, formatters, dynamicMFStore, windowTools, options) => {
15
- const container = document.getElementById(containerId);
16
- if (container) {
17
- const root = createRoot(container);
18
- window[`__root_${prefixMF}_${containerId}`] = root;
19
- root.render(
20
- /* @__PURE__ */ jsx(
21
- MFHostApp,
6
+ prefixMF: e,
7
+ moduleId: n,
8
+ App: i,
9
+ privileges: s,
10
+ appVersion: m,
11
+ componentsDictionary: $,
12
+ skeletonFlags: l
13
+ } = d;
14
+ window[`render_${e}_${n}`] = (o, u, w, c, g, f, E, v, M, r) => {
15
+ const t = document.getElementById(o);
16
+ if (t) {
17
+ const _ = F(t);
18
+ window[`__root_${e}_${o}`] = _, _.render(
19
+ /* @__PURE__ */ p(
20
+ y,
22
21
  {
23
- environment,
24
- hostTools,
25
- axiosOperation,
26
- currentLocale,
27
- hostTheme,
28
- formatters,
29
- dynamicMFStore,
30
- moduleId,
31
- privileges,
32
- skeletonFlags,
33
- componentsDictionary,
34
- windowTools,
35
- loggedUser: options.loggedUser,
36
- children: /* @__PURE__ */ jsx(App, { emergeType: options.emergeType })
22
+ environment: u,
23
+ hostTools: w,
24
+ axiosOperation: f,
25
+ currentLocale: c,
26
+ hostTheme: g,
27
+ formatters: E,
28
+ dynamicMFStore: v,
29
+ moduleId: n,
30
+ privileges: s,
31
+ skeletonFlags: l,
32
+ componentsDictionary: $,
33
+ windowTools: M,
34
+ loggedUser: r.loggedUser,
35
+ children: /* @__PURE__ */ p(i, { emergeType: r.emergeType })
37
36
  }
38
37
  )
39
38
  );
40
39
  }
41
- };
42
- window[`unmount_${prefixMF}_${moduleId}`] = (containerId) => {
43
- if (window[`__root_${prefixMF}_${containerId}`]) {
44
- window[`__root_${prefixMF}_${containerId}`].unmount();
45
- if (process.env.NODE_ENV === "development") {
46
- console.debug(`unmount_${prefixMF}_${moduleId}`, containerId);
47
- }
48
- delete window[`__root_${prefixMF}_${containerId}`];
49
- }
50
- };
51
- if (process.env.NODE_ENV === "development") {
52
- console.debug(
53
- `******* Module ESM: ${prefixMF}_${moduleId} - Version ${appVersion} loaded ******* `
54
- );
55
- }
40
+ }, window[`unmount_${e}_${n}`] = (o) => {
41
+ window[`__root_${e}_${o}`] && (window[`__root_${e}_${o}`].unmount(), process.env.NODE_ENV === "development" && console.debug(`unmount_${e}_${n}`, o), delete window[`__root_${e}_${o}`]);
42
+ }, process.env.NODE_ENV === "development" && console.debug(
43
+ `******* Module ESM: ${e}_${n} - Version ${m} loaded ******* `
44
+ );
56
45
  }
57
46
  export {
58
- createAppMF as c
47
+ x as createAppMF
59
48
  };
package/utils/index.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from './createAppMF';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/layouts/src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
@@ -1,21 +0,0 @@
1
- import { ThemeUserColor } from '@m4l/styles';
2
- export declare const MODES: {
3
- light: string;
4
- dark: string;
5
- };
6
- export declare const MODES_BACKGROUNDS: Record<keyof Omit<typeof MODES, 'both'>, string>;
7
- export declare const MODES_ITEMS: {
8
- value: string;
9
- title: string;
10
- }[];
11
- export declare const DEVICE_TYPES: {
12
- automatic: string;
13
- mobile: string;
14
- desktop: string;
15
- };
16
- export declare const DEVICE_TYPES_ITEMS: {
17
- value: string;
18
- title: string;
19
- }[];
20
- export declare const COLORS_THEME: Record<ThemeUserColor, ThemeUserColor>;
21
- export declare const COLORS_THEME_ITEMS: Record<string, string>[];
@@ -1,5 +0,0 @@
1
- import { StoryContext, StoryFn } from '@storybook/react';
2
- /**
3
- * Decorator that adds the context of the theme to the story.
4
- */
5
- export declare const WithContexts: (Story: StoryFn, storyContext: StoryContext) => import("react/jsx-runtime").JSX.Element;
@@ -1,10 +0,0 @@
1
- export declare const USER: string;
2
- export declare const PWD: string;
3
- export declare const DATABASE = "";
4
- export declare const ENVIRONMENT_ASSETS: string;
5
- export declare const HOST_API_LOCAL: string;
6
- export declare const HOST_API_REMOTE: string;
7
- export declare const HOST_STATIC_ASSETS: string;
8
- export declare const DOMAIN_TOKEN: string;
9
- export declare const STORYBOOK_MODULE_ID: string;
10
- export declare const STORYBOOK_ISOLATION_MODULE_ID: string;
@@ -1 +0,0 @@
1
- export * from './WithContexts';
@@ -1 +0,0 @@
1
- export declare const RootStyle: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,6 +0,0 @@
1
- import { AppThemeProps } from '../types';
2
- /**
3
- * AppWithTheme es un componente que se encarga de proveer el contexto de tema a la aplicación.
4
- *
5
- */
6
- export declare const AppWithTheme: ({ themeMode, themeColor, children }: AppThemeProps) => import("react/jsx-runtime").JSX.Element;