@m4l/components 9.3.19-BE101025-beta.2 → 9.3.19-BE241025-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 (210) hide show
  1. package/@types/types.d.ts +1 -1
  2. package/components/AccountPopover/AccountPopover.js +12 -13
  3. package/components/AccountPopover/subcomponents/MenuPopover/MenuPopover.d.ts +1 -1
  4. package/components/AccountPopover/subcomponents/MenuPopover/MenuPopover.js +7 -4
  5. package/components/AccountPopover/subcomponents/MenuPopover/types.d.ts +1 -1
  6. package/components/Chip/Chip.js +9 -7
  7. package/components/Chip/ChipStyles.js +4 -31
  8. package/components/Chip/helpers.d.ts +10 -0
  9. package/components/Chip/helpers.js +34 -0
  10. package/components/Chip/types.d.ts +6 -0
  11. package/components/DataGrid/DataGrid.js +9 -4
  12. package/components/DataGrid/Datagrid.styles.js +270 -0
  13. package/components/DataGrid/constants.js +2 -2
  14. package/components/DataGrid/contexts/DataGridContext/index.js +322 -112
  15. package/components/DataGrid/contexts/DataGridContext/types.d.ts +63 -4
  16. package/components/DataGrid/dictionary.d.ts +5 -0
  17. package/components/DataGrid/dictionary.js +6 -1
  18. package/components/DataGrid/formatters/ColumnSetCheckFormatter/formatter.js +2 -2
  19. package/components/DataGrid/hooks/useModalCardDetail.d.ts +6 -0
  20. package/components/DataGrid/hooks/useModalCardDetail.js +74 -0
  21. package/components/DataGrid/hooks/useProcessedColumns.d.ts +50 -0
  22. package/components/DataGrid/hooks/useProcessedColumns.js +44 -0
  23. package/components/DataGrid/icons.d.ts +7 -0
  24. package/components/DataGrid/icons.js +5 -1
  25. package/components/DataGrid/index.d.ts +1 -1
  26. package/components/DataGrid/slots/DataGridEnum.d.ts +22 -1
  27. package/components/DataGrid/slots/DataGridEnum.js +21 -0
  28. package/components/DataGrid/slots/DataGridSlot.d.ts +24 -0
  29. package/components/DataGrid/slots/DataGridSlot.js +123 -21
  30. package/components/DataGrid/subcomponents/Cards/hooks/useCardContent.d.ts +9 -0
  31. package/components/DataGrid/subcomponents/Cards/hooks/useCardContent.js +91 -0
  32. package/components/DataGrid/subcomponents/Cards/index.d.ts +5 -0
  33. package/components/DataGrid/subcomponents/Cards/index.js +40 -0
  34. package/components/DataGrid/subcomponents/Cards/subcomponents/CardDetails/index.d.ts +8 -0
  35. package/components/DataGrid/subcomponents/Cards/subcomponents/CardDetails/index.js +79 -0
  36. package/components/DataGrid/subcomponents/Cards/subcomponents/CardHeader/index.d.ts +7 -0
  37. package/components/DataGrid/subcomponents/Cards/subcomponents/CardHeader/index.js +98 -0
  38. package/components/DataGrid/subcomponents/Cards/subcomponents/CardRow/index.d.ts +6 -0
  39. package/components/DataGrid/subcomponents/Cards/subcomponents/CardRow/index.js +71 -0
  40. package/components/DataGrid/subcomponents/Cards/subcomponents/IntersectCard/index.d.ts +20 -0
  41. package/components/DataGrid/subcomponents/Cards/subcomponents/IntersectCard/index.js +46 -0
  42. package/components/DataGrid/subcomponents/Cards/subcomponents/LazyLoadCard/index.d.ts +17 -0
  43. package/components/DataGrid/subcomponents/Cards/subcomponents/LazyLoadCard/index.js +34 -0
  44. package/components/DataGrid/subcomponents/Cards/types.d.ts +118 -0
  45. package/components/DataGrid/subcomponents/CheckboxCellAdapter/index.d.ts +7 -0
  46. package/components/DataGrid/subcomponents/CheckboxCellAdapter/index.js +43 -0
  47. package/components/DataGrid/subcomponents/CheckboxCellAdapter/types.d.ts +7 -0
  48. package/components/DataGrid/subcomponents/ControlNavigate/ControlNavigate.js +1 -1
  49. package/components/DataGrid/subcomponents/HeaderActions/index.js +5 -3
  50. package/components/DataGrid/subcomponents/HeaderActions/subcomponents/RowsCount/index.js +1 -1
  51. package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Settings/index.js +11 -2
  52. package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Settings/subcomponents/ColumnsConfig/index.js +1 -1
  53. package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Settings/subcomponents/ColumnsConfigCards/index.d.ts +2 -0
  54. package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Settings/subcomponents/ColumnsConfigCards/index.js +304 -0
  55. package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Settings/subcomponents/ColumnsConfigCards/types.d.ts +31 -0
  56. package/components/DataGrid/subcomponents/HeaderActions/subcomponents/ViewMode/index.d.ts +4 -0
  57. package/components/DataGrid/subcomponents/HeaderActions/subcomponents/ViewMode/index.js +125 -0
  58. package/components/DataGrid/subcomponents/HeaderActions/subcomponents/hooks/useModalSettings/index.js +3 -3
  59. package/components/DataGrid/subcomponents/HeaderActions/subcomponents/hooks/useModalSettingsCards/index.d.ts +7 -0
  60. package/components/DataGrid/subcomponents/HeaderActions/subcomponents/hooks/useModalSettingsCards/index.js +74 -0
  61. package/components/DataGrid/subcomponents/HeaderActions/subcomponents/hooks/useModalSettingsCards/types.d.ts +4 -0
  62. package/components/DataGrid/subcomponents/RenderContent/index.d.ts +5 -0
  63. package/components/DataGrid/subcomponents/RenderContent/index.js +11 -0
  64. package/components/DataGrid/subcomponents/Table/hooks/useHeaderMenuActions.js +2 -2
  65. package/components/DataGrid/subcomponents/Table/hooks/useSortColumnsRows.js +1 -1
  66. package/components/DataGrid/subcomponents/Table/index.js +1 -1
  67. package/components/DataGrid/subcomponents/Table/subcomponents/ActionsColumn.js +1 -1
  68. package/components/DataGrid/subcomponents/Table/subcomponents/DraggableHeaderRenderer.js +1 -1
  69. package/components/DataGrid/subcomponents/Table/subcomponents/HeaderRenderClick/HeaderRenderClick.js +1 -1
  70. package/components/DataGrid/subcomponents/editors/TextEditor/index.js +1 -1
  71. package/components/DataGrid/tests/components/CardDetails.test.d.ts +1 -0
  72. package/components/DataGrid/tests/components/CardHeader.test.d.ts +1 -0
  73. package/components/DataGrid/tests/components/CardRow.test.d.ts +1 -0
  74. package/components/DataGrid/tests/components/Cards.test.d.ts +1 -0
  75. package/components/DataGrid/tests/components/CheckboxCellAdapter.test.d.ts +1 -0
  76. package/components/DataGrid/tests/components/ColumnsConfigCards.test.d.ts +1 -0
  77. package/components/DataGrid/tests/components/IntersectCard.test.d.ts +1 -0
  78. package/components/DataGrid/tests/components/ViewMode.test.d.ts +1 -0
  79. package/components/DataGrid/tests/helpers/types.d.ts +1 -0
  80. package/components/DataGrid/tests/helpers/useCardsViewConfig.d.ts +24 -0
  81. package/components/DataGrid/tests/helpers/useCustomCardExample.d.ts +7 -0
  82. package/components/DataGrid/tests/hooks/useCardContent.test.d.ts +1 -0
  83. package/components/DataGrid/tests/hooks/useModalDetail.test.d.ts +1 -0
  84. package/components/DataGrid/tests/hooks/useModalSettingsCards.test.d.ts +1 -0
  85. package/components/DataGrid/tests/hooks/useProcessedColumns.test.d.ts +1 -0
  86. package/components/DataGrid/types.d.ts +87 -5
  87. package/components/DragResizeWindowRND/DragResizeWindowRND.js +14 -10
  88. package/components/DragResizeWindowRND/helpers/expandingParentContainer.d.ts +1 -1
  89. package/components/DragResizeWindowRND/helpers/expandingParentContainer.js +24 -19
  90. package/components/DragResizeWindowRND/helpers/getInitialSize.d.ts +3 -3
  91. package/components/DragResizeWindowRND/helpers/getInitialSize.js +18 -15
  92. package/components/DragResizeWindowRND/helpers/shrinkingParentContainer.d.ts +1 -1
  93. package/components/DragResizeWindowRND/helpers/shrinkingParentContainer.js +17 -9
  94. package/components/DragResizeWindowRND/hooks/useRNDDimensionEffects.js +4 -1
  95. package/components/DragResizeWindowRND/index.d.ts +1 -0
  96. package/components/DragResizeWindowRND/types.d.ts +12 -2
  97. package/components/DynamicFilter/DynamicFilter.js +2 -1
  98. package/components/DynamicFilter/helpers/formatToInitialFilters.js +3 -3
  99. package/components/DynamicFilter/helpers/frontEndHelpers.d.ts +2 -2
  100. package/components/DynamicFilter/helpers/frontEndHelpers.js +31 -9
  101. package/components/DynamicFilter/subcomponents/DynamicFilterBase/DynamicFilterBase.d.ts +2 -1
  102. package/components/DynamicFilter/subcomponents/DynamicFilterBase/DynamicFilterBase.js +4 -2
  103. package/components/DynamicFilter/subcomponents/DynamicFilterBase/types.d.ts +3 -0
  104. package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/helpers.js +11 -3
  105. package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/helpers.js +16 -4
  106. package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/helpers.js +11 -8
  107. package/components/DynamicFilter/subcomponents/FieldTypes/SelectAsyncFilter/helpers.js +21 -8
  108. package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/helpers.js +18 -8
  109. package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/helpers.js +5 -3
  110. package/components/DynamicFilter/subcomponents/PopoverFilter/PopoverFilter.js +1 -1
  111. package/components/DynamicFilter/types.d.ts +4 -0
  112. package/components/DynamicSort/DynamicSort.js +2 -1
  113. package/components/DynamicSort/subcomponents/DynamicSortBase/DynamicSortBase.d.ts +2 -1
  114. package/components/DynamicSort/subcomponents/DynamicSortBase/DynamicSortBase.js +4 -2
  115. package/components/DynamicSort/subcomponents/DynamicSortBase/types.d.ts +3 -0
  116. package/components/DynamicSort/subcomponents/PopoverSort/PopoverSort.js +1 -1
  117. package/components/DynamicSort/types.d.ts +4 -0
  118. package/components/EditLabel/hooks/useEditLabel.d.ts +1 -0
  119. package/components/GridLayout/subcomponents/GridItem/index.js +2 -2
  120. package/components/Image/Image.js +4 -1
  121. package/components/LanguagePopover/LanguagePopover.js +2 -0
  122. package/components/MFIsolationApp/MFIsolationApp.js +1 -4
  123. package/components/MFIsolationApp/subcomponents/AppBarSettings/AppBarSettings.js +1 -1
  124. package/components/MFIsolationAppStorybook/MFIsolationAppStorybook.js +4 -20
  125. package/components/MFIsolationAppStorybook/types.d.ts +0 -4
  126. package/components/MFLoader/MFLoader.js +8 -3
  127. package/components/MFLoader/styles.js +1 -1
  128. package/components/MFLoader/types.d.ts +10 -0
  129. package/components/MenuActions/MenuActions.js +105 -55
  130. package/components/ObjectLogs/hooks/useDetailFormatter.js +1 -1
  131. package/components/WindowBase/WindowBase.js +3 -3
  132. package/components/WindowBase/WindowBase.styles.js +36 -31
  133. package/components/WindowBase/constants.d.ts +1 -1
  134. package/components/WindowBase/constants.js +2 -2
  135. package/components/WindowBase/index.d.ts +1 -0
  136. package/components/WindowBase/subcomponents/Component/index.js +2 -2
  137. package/components/WindowBase/subcomponents/Component/types.d.ts +2 -0
  138. package/components/WindowBase/subcomponents/Header/HeaderWindowBase.js +7 -7
  139. package/components/WindowBase/subcomponents/Header/types.d.ts +1 -1
  140. package/components/WindowBase/subcomponents/MicroFrontend/types.d.ts +4 -0
  141. package/components/WindowBase/types.d.ts +3 -3
  142. package/components/WindowConfirm/WindowConfirm.js +1 -1
  143. package/components/areas/components/AreasViewer/AreasViewer.styles.js +1 -1
  144. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.js +6 -2
  145. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useWindow.d.ts +1 -0
  146. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useWindow.js +21 -3
  147. package/components/areas/index.d.ts +1 -1
  148. package/components/areas/types.d.ts +1 -1
  149. package/components/formatters/DistanceToNowFormatter/DistanceToNowFormatter.js +3 -34
  150. package/components/formatters/DistanceToNowFormatter/dictionary.d.ts +8 -0
  151. package/components/formatters/DistanceToNowFormatter/hooks/useDistanceToNowFormatter.d.ts +13 -0
  152. package/components/formatters/DistanceToNowFormatter/hooks/useDistanceToNowFormatter.js +65 -0
  153. package/components/formatters/DistanceToNowFormatter/index.d.ts +1 -0
  154. package/components/formatters/DistanceToNowFormatter/types.d.ts +4 -1
  155. package/components/hook-form/RHFAutocomplete/RHFAutocomplete.d.ts +1 -1
  156. package/components/hook-form/RHFAutocomplete/RHFAutocomplete.js +8 -4
  157. package/components/hook-form/RHFAutocomplete/constants.d.ts +1 -0
  158. package/components/hook-form/RHFAutocomplete/constants.js +5 -1
  159. package/components/hook-form/RHFAutocomplete/types.d.ts +2 -2
  160. package/components/hook-form/RHFAutocompleteAsync/RHFAutocompleteAsync.js +6 -4
  161. package/components/hook-form/RHFAutocompleteAsync/slots/RHFAutocompleteSlotsAsync.d.ts +1 -1
  162. package/components/hook-form/RHFAutocompleteAsync/types.d.ts +4 -0
  163. package/components/mui_extended/Autocomplete/Autocomplete.d.ts +4 -8
  164. package/components/mui_extended/Autocomplete/Autocomplete.js +11 -11
  165. package/components/mui_extended/Autocomplete/Autocomplete.styles.js +7 -3
  166. package/components/mui_extended/Autocomplete/RenderAdornment/RenderAdornment.d.ts +6 -0
  167. package/components/mui_extended/Autocomplete/RenderAdornment/RenderAdornment.js +45 -0
  168. package/components/mui_extended/Autocomplete/hooks/useEndAdornments.js +2 -1
  169. package/components/mui_extended/Autocomplete/hooks/useStartAdornments.d.ts +4 -12
  170. package/components/mui_extended/Autocomplete/hooks/useStartAdornments.js +72 -23
  171. package/components/mui_extended/Autocomplete/hooks/useValuesAndHandlers.d.ts +0 -2
  172. package/components/mui_extended/Autocomplete/hooks/useValuesAndHandlers.js +0 -13
  173. package/components/mui_extended/Autocomplete/renderOptions/index.d.ts +4 -17
  174. package/components/mui_extended/Autocomplete/renderOptions/index.js +42 -5
  175. package/components/mui_extended/Autocomplete/renderOptions/types.d.ts +7 -0
  176. package/components/mui_extended/Autocomplete/types.d.ts +10 -3
  177. package/components/mui_extended/Button/ButtonStyles.js +15 -5
  178. package/components/mui_extended/ToggleIconButton/ToggleIconButton.js +6 -2
  179. package/components/mui_extended/ToggleIconButton/ToggleIconButton.styles.js +9 -0
  180. package/components/mui_extended/ToggleIconButton/types.d.ts +1 -0
  181. package/components/mui_extended/index.d.ts +1 -1
  182. package/components/popups/components/PopupsProvider/hooks/usePopups.d.ts +2 -2
  183. package/components/popups/components/PopupsProvider/hooks/usePopups.js +0 -1
  184. package/components/popups/components/PopupsViewer/PopupsViewer.js +4 -3
  185. package/components/popups/components/PopupsViewer/subcomponents/Popup/Popup.js +5 -2
  186. package/components/popups/components/PopupsViewer/subcomponents/Popup/types.d.ts +5 -0
  187. package/components/popups/components/PopupsViewer/types.d.ts +3 -0
  188. package/contexts/AppearanceComponentContext/AppearanceComponentContext.js +4 -1
  189. package/hooks/index.d.ts +1 -0
  190. package/hooks/useDataGridPersistence/helpers.d.ts +2 -2
  191. package/hooks/useDataGridPersistence/useDataGridPersistence.d.ts +2 -2
  192. package/hooks/useDataGridPersistence/useDataGridPersistence.js +5 -0
  193. package/hooks/useSizeContainer/index.d.ts +2 -1
  194. package/hooks/useSizeContainer/index.js +22 -13
  195. package/hooks/useSizeContainer/types.d.ts +6 -0
  196. package/hooks/useStateRef/index.d.ts +1 -1
  197. package/hooks/useStateRef/index.js +6 -6
  198. package/index.js +53 -46
  199. package/package.json +3 -4
  200. package/utils/deepShallow.d.ts +17 -0
  201. package/utils/deepShallow.js +76 -0
  202. package/utils/formatDistanceToNow/formatDistanteToNow.d.ts +2 -2
  203. package/utils/formatDistanceToNow/formatDistanteToNow.js +18 -2
  204. package/utils/formatDistanceToNow/types.d.ts +13 -0
  205. package/utils/index.d.ts +1 -0
  206. package/components/MFIsolationAppStorybook/icons.js +0 -6
  207. package/components/MFIsolationAppStorybook/subcomponents/AppBarSettings/AppBarSettings.d.ts +0 -4
  208. package/components/MFIsolationAppStorybook/subcomponents/AppBarSettings/AppBarSettings.js +0 -21
  209. package/components/MFIsolationAppStorybook/subcomponents/AppBarSettings/index.d.ts +0 -1
  210. package/components/MFIsolationAppStorybook/subcomponents/AppBarSettings/index.js +0 -1
@@ -5,7 +5,7 @@ import { createBrowserHistory } from "history";
5
5
  import EventEmitter from "eventemitter3";
6
6
  import NProgress from "nprogress";
7
7
  import { DeviceTypeProvider, ThemeSettingsProvider, LocalesProvider } from "@m4l/graphics";
8
- import { EnvironmentProvider, HostToolsProvider, NetworkProvider } from "@m4l/core";
8
+ import { EnvironmentProvider, HostToolsProvider, NetworkProvider, axiosOperation } from "@m4l/core";
9
9
  import { A as AppearanceComponentProvider } from "../../contexts/AppearanceComponentContext/AppearanceComponentContext.js";
10
10
  import enLocale from "date-fns/locale/en-US";
11
11
  import { c as createToaster } from "../ToastContainer/helpers/toaster.js";
@@ -13,10 +13,7 @@ import { M as MFAuthAppStorybook } from "./subcomponents/MFAuthAppStorybook/MFAu
13
13
  import { B as BaseModule } from "../BaseModule/BaseModule.js";
14
14
  import { S as SettingsLayout } from "../SettingsLayout/SettingsLayout.js";
15
15
  import { T as ToastContainer } from "../ToastContainer/ToastContainer.js";
16
- import { A as AppBarSettings } from "./subcomponents/AppBarSettings/AppBarSettings.js";
17
16
  import { P as PopupsProvider } from "../popups/components/PopupsProvider/contexts/PopupsContext/PopupsContext.js";
18
- import { A as AreasProvider } from "../areas/contexts/AreasContext/index.js";
19
- import { S as Stack } from "../mui_extended/Stack/Stack.js";
20
17
  const LOCALE_HOST_EN = {
21
18
  lang: "en",
22
19
  script: void 0,
@@ -43,13 +40,11 @@ function MFIsolationAppStorybook(props) {
43
40
  moduleNameField,
44
41
  privileges,
45
42
  componentsDictionary,
46
- onLoad,
47
43
  // observedDivRef,
48
44
  moduleDictionaryLoaded,
49
45
  forcedDeviceType,
50
46
  areasStoreId,
51
- areasStoreDevtoolsEnabled,
52
- appBarSettings = false
47
+ areasStoreDevtoolsEnabled
53
48
  } = props;
54
49
  const eventEmitter = useMemo(() => new EventEmitter(), []);
55
50
  const events_add_listener = useCallback(
@@ -113,14 +108,7 @@ function MFIsolationAppStorybook(props) {
113
108
  // eslint-disable-next-line react-hooks/exhaustive-deps
114
109
  []
115
110
  );
116
- const mockNetworkOperation = useCallback(async (_networkProps) => {
117
- return Promise.resolve({
118
- data: [],
119
- status: 200,
120
- statusText: "OK"
121
- });
122
- }, []);
123
- return /* @__PURE__ */ jsx(EnvironmentProvider, { ...environment, children: /* @__PURE__ */ jsx(HostToolsProvider, { ...hostTools, children: /* @__PURE__ */ jsx(NetworkProvider, { axiosOperation: mockNetworkOperation, children: /* @__PURE__ */ jsx(unstable_HistoryRouter, { history, children: /* @__PURE__ */ jsx(DeviceTypeProvider, { forcedDeviceType, children: /* @__PURE__ */ jsx(MFAuthAppStorybook, { children: /* @__PURE__ */ jsx(ThemeSettingsProvider, { children: /* @__PURE__ */ jsx(LocalesProvider, { isMicroFrontEnd: true, localeHost: LOCALE_HOST_EN, children: /* @__PURE__ */ jsx(
111
+ return /* @__PURE__ */ jsx(EnvironmentProvider, { ...environment, children: /* @__PURE__ */ jsx(HostToolsProvider, { ...hostTools, children: /* @__PURE__ */ jsx(NetworkProvider, { axiosOperation, children: /* @__PURE__ */ jsx(unstable_HistoryRouter, { history, children: /* @__PURE__ */ jsx(DeviceTypeProvider, { forcedDeviceType, children: /* @__PURE__ */ jsx(MFAuthAppStorybook, { children: /* @__PURE__ */ jsx(ThemeSettingsProvider, { children: /* @__PURE__ */ jsx(LocalesProvider, { isMicroFrontEnd: true, localeHost: LOCALE_HOST_EN, children: /* @__PURE__ */ jsx(
124
112
  BaseModule,
125
113
  {
126
114
  moduleId,
@@ -132,17 +120,13 @@ function MFIsolationAppStorybook(props) {
132
120
  children: /* @__PURE__ */ jsxs(AppearanceComponentProvider, { children: [
133
121
  /* @__PURE__ */ jsx(SettingsLayout, {}),
134
122
  /* @__PURE__ */ jsx(ToastContainer, { containerId: toastContainerId }),
135
- " ",
136
123
  /* @__PURE__ */ jsx(
137
124
  PopupsProvider,
138
125
  {
139
126
  baseZindex: 1e3,
140
127
  storeId: areasStoreId,
141
128
  storeDevtoolsEnabled: areasStoreDevtoolsEnabled,
142
- children: /* @__PURE__ */ jsx(AreasProvider, { loadAreasFromNetwork: false, loadCookiesFromNetwork: false, onLoad, children: /* @__PURE__ */ jsxs(Stack, { width: "100%", height: "100%", flexDirection: "column", overflow: "hidden", position: "relative", children: [
143
- appBarSettings && /* @__PURE__ */ jsx(AppBarSettings, {}),
144
- /* @__PURE__ */ jsx(Stack, { width: "100%", flexGrow: 1, flexDirection: "column", overflow: "hidden", position: "relative", children })
145
- ] }) })
129
+ children
146
130
  }
147
131
  )
148
132
  ] })
@@ -8,10 +8,6 @@ export type MFIsolationAppStorybookProps = BaseModuleProps & {
8
8
  host_api_remote: string;
9
9
  host_static_assets: string;
10
10
  environment_assets: string;
11
- onLoad: () => void;
12
- activeAreasNetwork?: boolean;
13
- activeCookiesFromNetwork?: boolean;
14
- appBarSettings?: boolean;
15
11
  /**
16
12
  * Diccionario de componentes, se puede proporcionar ya el diccionario cargado, para evitar que se llame al endpoint nuevamente.
17
13
  */
@@ -30,7 +30,7 @@ function getDivScritId(prefix, moduleId) {
30
30
  };
31
31
  }
32
32
  function MFLoader(props) {
33
- const { prefix, moduleId, cache = true, debugPort, dynamicMFStore, windowTools } = props;
33
+ const { prefix, moduleId, cache = true, debugPort, dynamicMFStore, windowTools, emergeType, loggedUser } = props;
34
34
  const { hostThemeOptions, fnComponentsOverrides } = useHostTheme();
35
35
  const { networkOperation } = useNetwork();
36
36
  const environment = useEnvironment();
@@ -64,6 +64,10 @@ function MFLoader(props) {
64
64
  }
65
65
  const renderMicroFrontend = useCallback(
66
66
  (newDScript) => {
67
+ const options = {
68
+ loggedUser,
69
+ emergeType
70
+ };
67
71
  try {
68
72
  window[`render_${prefix}_${newDScript.moduleId}`](
69
73
  newDScript.divContainerId,
@@ -74,13 +78,14 @@ function MFLoader(props) {
74
78
  axiosOperation,
75
79
  formatter,
76
80
  dynamicMFStore,
77
- windowTools
81
+ windowTools,
82
+ options
78
83
  );
79
84
  } catch (_e) {
80
85
  }
81
86
  },
82
87
  // eslint-disable-next-line react-hooks/exhaustive-deps
83
- [hostThemeOptions, currentLocale, formatter]
88
+ [hostThemeOptions, currentLocale, formatter, loggedUser]
84
89
  );
85
90
  const debouncedSetDivScript = useCallback(
86
91
  debounce(
@@ -2,10 +2,10 @@ import { styled } from "@mui/material";
2
2
  const MFLoaderRoot = styled("div")(() => ({
3
3
  width: "100%",
4
4
  height: "100%",
5
+ position: "relative",
5
6
  display: "flex",
6
7
  flexDirection: "column",
7
8
  alignItems: "center",
8
- overflow: "auto",
9
9
  "& .M4LMFLoader-containerLinearProgress": {
10
10
  width: "100%",
11
11
  height: "100%",
@@ -1,5 +1,7 @@
1
1
  import { DynamicMFStore } from '../WindowBase/contexts/DynamicMFParmsContext/store';
2
2
  import { WindowToolsMF } from '../WindowBase/contexts';
3
+ import { EmergeType } from '../areas/types';
4
+ import { AuthUserType } from '@m4l/core';
3
5
  /**
4
6
  * Propiedades base de un microfrontend.
5
7
  */
@@ -33,4 +35,12 @@ export interface MFLoaderProps extends MFBaseProps {
33
35
  * Herramientas de ventana para el microfrontend.
34
36
  */
35
37
  windowTools: WindowToolsMF;
38
+ /**
39
+ * Tipo de lanzamiento de la ventana, popup, layout, modal
40
+ */
41
+ emergeType?: EmergeType;
42
+ /**
43
+ * loggedUser: usuario logueado, para los microfrontends que necesitan el usuario logueado
44
+ */
45
+ loggedUser?: AuthUserType;
36
46
  }
@@ -34,6 +34,7 @@ function MenuActions(props) {
34
34
  className,
35
35
  onOpen,
36
36
  slots = {},
37
+ variant = "text",
37
38
  ...other
38
39
  } = props;
39
40
  const { currentSize } = useComponentSize(size);
@@ -41,11 +42,14 @@ function MenuActions(props) {
41
42
  const { getLabel } = useModuleDictionary();
42
43
  const [anchorEl, setAnchorEl] = useState(null);
43
44
  const open = Boolean(externalOpen ?? anchorEl);
44
- const ownerState = useMemo(() => ({
45
- iconSize: currentSize,
46
- selected: open,
47
- paletteColor: color
48
- }), [currentSize, open, color]);
45
+ const ownerState = useMemo(
46
+ () => ({
47
+ iconSize: currentSize,
48
+ selected: open,
49
+ paletteColor: color
50
+ }),
51
+ [currentSize, open, color]
52
+ );
49
53
  useEffect(() => {
50
54
  if (onOpen) {
51
55
  onOpen(open);
@@ -60,21 +64,27 @@ function MenuActions(props) {
60
64
  const finalIcon = useMemo(() => {
61
65
  return icon || urlIcon || `${host_static_assets}/${environment_assets}/${ICON_PATH}/${ICONS.MENU}`;
62
66
  }, [urlIcon, icon, host_static_assets, environment_assets]);
63
- const handleClick = useCallback((e, menuAction) => {
64
- e.stopPropagation();
65
- setAnchorEl(null);
66
- if (onOpen) {
67
- onOpen(false);
68
- }
69
- menuAction.onClick && menuAction.onClick(e);
70
- }, [onOpen]);
71
- const handleButtonClick = useCallback((e) => {
72
- e.stopPropagation();
73
- setAnchorEl(e.currentTarget);
74
- if (onOpen) {
75
- onOpen(true);
76
- }
77
- }, [onOpen]);
67
+ const handleClick = useCallback(
68
+ (e, menuAction) => {
69
+ e.stopPropagation();
70
+ setAnchorEl(null);
71
+ if (onOpen) {
72
+ onOpen(false);
73
+ }
74
+ menuAction.onClick && menuAction.onClick(e);
75
+ },
76
+ [onOpen]
77
+ );
78
+ const handleButtonClick = useCallback(
79
+ (e) => {
80
+ e.stopPropagation();
81
+ setAnchorEl(e.currentTarget);
82
+ if (onOpen) {
83
+ onOpen(true);
84
+ }
85
+ },
86
+ [onOpen]
87
+ );
78
88
  const renderMenuContent = useCallback(() => {
79
89
  let processedActions = [];
80
90
  let finalActions = [];
@@ -89,7 +99,16 @@ function MenuActions(props) {
89
99
  finalActions = processedActions;
90
100
  }
91
101
  if (finalActions.length === 0) {
92
- return /* @__PURE__ */ jsx(MenuItem, { disabled: true, role: "menu-no-actions", label: getLabel(getMenuActionsDictionary(DICTIONARY.no_actions_label)) });
102
+ return /* @__PURE__ */ jsx(
103
+ MenuItem,
104
+ {
105
+ disabled: true,
106
+ role: "menu-no-actions",
107
+ label: getLabel(
108
+ getMenuActionsDictionary(DICTIONARY.no_actions_label)
109
+ )
110
+ }
111
+ );
93
112
  }
94
113
  const RenderHeader = () => {
95
114
  return /* @__PURE__ */ jsx(HeaderMenuActionsStyled, { children: header });
@@ -104,7 +123,14 @@ function MenuActions(props) {
104
123
  const key = actionKey ?? index;
105
124
  switch (menuAction.type ?? "menuItem") {
106
125
  case "divider":
107
- return /* @__PURE__ */ jsx(MenuDivider, { variant: "solid", size }, `divider-${key}`);
126
+ return /* @__PURE__ */ jsx(
127
+ MenuDivider,
128
+ {
129
+ variant: "solid",
130
+ size
131
+ },
132
+ `divider-${key}`
133
+ );
108
134
  case "loader":
109
135
  return /* @__PURE__ */ jsx(MenuLoaderStyled, { size, children: /* @__PURE__ */ jsx(CircularProgress, { size }) }, `loader-${key}`);
110
136
  case "customNode":
@@ -115,7 +141,9 @@ function MenuActions(props) {
115
141
  {
116
142
  size,
117
143
  ...menuAction,
118
- label: menuAction.label ?? getLabel(getMenuActionsDictionary(DICTIONARY.no_actions_label)),
144
+ label: menuAction.label ?? getLabel(
145
+ getMenuActionsDictionary(DICTIONARY.no_actions_label)
146
+ ),
119
147
  onClick: menuAction.onClick ? (e) => handleClick(e, menuAction) : void 0
120
148
  },
121
149
  `${MENU_ACTIONS_}${menuAction.label ?? key}`
@@ -128,38 +156,60 @@ function MenuActions(props) {
128
156
  footer && /* @__PURE__ */ jsx(RenderFooter, {}),
129
157
  endListElement && endListElement
130
158
  ] });
131
- }, [menuActions, header, size, footer, endListElement, objItem, getLabel, actionKey, handleClick]);
132
- return /* @__PURE__ */ jsxs(RootStyled, { className: clsx(className, MENU_ACTIONS_CLASSES.root, ownerState.selected && MENU_ACTIONS_CLASSES.selected), ownerState: { ownerState }, children: [
133
- /* @__PURE__ */ jsx(
134
- IconButtonStyled,
135
- {
136
- ownerState: { ...ownerState },
137
- tooltip: toolTip,
138
- size,
139
- icon: finalIcon,
140
- onClick: handleButtonClick,
141
- className: iconButtonClassName,
142
- selected: open,
143
- disabled,
144
- badgeProps: { badgeContent },
145
- "aria-label": "menu-actions"
146
- }
147
- ),
148
- open && /* @__PURE__ */ jsx(
149
- Popover,
150
- {
151
- id: "Popover",
152
- open,
153
- anchorEl,
154
- onClose: handleOpenClose,
155
- arrowType,
156
- ...other,
157
- slots: { ...slots },
158
- slotProps: { paper: { ...paperProps } },
159
- children: renderMenuContent()
160
- }
161
- )
162
- ] });
159
+ }, [
160
+ menuActions,
161
+ header,
162
+ size,
163
+ footer,
164
+ endListElement,
165
+ objItem,
166
+ getLabel,
167
+ actionKey,
168
+ handleClick
169
+ ]);
170
+ return /* @__PURE__ */ jsxs(
171
+ RootStyled,
172
+ {
173
+ className: clsx(
174
+ className,
175
+ MENU_ACTIONS_CLASSES.root,
176
+ ownerState.selected && MENU_ACTIONS_CLASSES.selected
177
+ ),
178
+ ownerState: { ownerState },
179
+ children: [
180
+ /* @__PURE__ */ jsx(
181
+ IconButtonStyled,
182
+ {
183
+ ownerState: { ...ownerState },
184
+ tooltip: toolTip,
185
+ size,
186
+ icon: finalIcon,
187
+ onClick: handleButtonClick,
188
+ className: iconButtonClassName,
189
+ selected: open,
190
+ disabled,
191
+ badgeProps: { badgeContent },
192
+ "aria-label": other?.["aria-label"] ?? "menu-actions",
193
+ variant
194
+ }
195
+ ),
196
+ open && /* @__PURE__ */ jsx(
197
+ Popover,
198
+ {
199
+ id: "Popover",
200
+ open,
201
+ anchorEl,
202
+ onClose: handleOpenClose,
203
+ arrowType,
204
+ ...other,
205
+ slots: { ...slots },
206
+ slotProps: { paper: { ...paperProps } },
207
+ children: renderMenuContent()
208
+ }
209
+ )
210
+ ]
211
+ }
212
+ );
163
213
  }
164
214
  const MemonizedMenuActions = React.memo(MenuActions);
165
215
  export {
@@ -33,7 +33,7 @@ const useDetailFormatter = (type) => {
33
33
  title: getLabel(`${DICTIONARY.LABEL_LOG_DETAIL}`),
34
34
  onClose: closeModal,
35
35
  variant: "outlined",
36
- type: "modal",
36
+ emergeType: "modal",
37
37
  children: /* @__PURE__ */ jsx(StackStyled, { direction: "column", flexGrow: 1, children: /* @__PURE__ */ jsx(DetailDialogComponent, { logId, type }) })
38
38
  }
39
39
  ),
@@ -25,7 +25,7 @@ const WindowBase = (props) => {
25
25
  windowId,
26
26
  onMouseDown,
27
27
  editionInfo,
28
- type = "layout",
28
+ emergeType = "layout",
29
29
  collapsed,
30
30
  draggable = true,
31
31
  ...other
@@ -36,7 +36,7 @@ const WindowBase = (props) => {
36
36
  selected,
37
37
  variant: computedVariant,
38
38
  size: currentSize,
39
- type,
39
+ emergeType,
40
40
  maximized,
41
41
  collapsed,
42
42
  draggable
@@ -61,7 +61,7 @@ const WindowBase = (props) => {
61
61
  maximized,
62
62
  collapsed,
63
63
  onClose,
64
- type,
64
+ emergeType,
65
65
  draggable,
66
66
  ...other
67
67
  }
@@ -16,7 +16,7 @@ const windowBaseStyles = {
16
16
  overflow: "hidden",
17
17
  ...ownerState?.variant === "outlined" && {
18
18
  ...ownerState?.selected ? {
19
- ...ownerState?.type === "layout" ? {
19
+ ...ownerState?.emergeType === "layout" ? {
20
20
  background: `linear-gradient(to bottom,
21
21
  ${theme.vars.palette.primary.opacityGradient1},
22
22
  ${theme.vars.palette.primary.opacityGradient2})`,
@@ -31,26 +31,26 @@ const windowBaseStyles = {
31
31
  boxShadow: `inset 0px 0px 0 1px ${theme.vars.palette?.border.main}`
32
32
  }
33
33
  } : {
34
- boxShadow: ownerState?.type === "layout" ? `inset 0px 0px 0 1px ${theme.vars.palette?.border.secondary}` : "unset"
34
+ boxShadow: ownerState?.emergeType === "layout" ? `inset 0px 0px 0 1px ${theme.vars.palette?.border.secondary}` : "unset"
35
35
  }
36
36
  },
37
- ...ownerState?.type === "popup" && {
37
+ ...ownerState?.emergeType === "popup" && {
38
38
  "&&&": {
39
39
  boxShadow: theme.vars.customShadows.z1,
40
40
  border: `1px solid ${theme.vars.palette?.border.secondary}`,
41
- borderRadius: theme.vars.size.borderRadius.r1,
41
+ borderRadius: theme.vars.size.borderRadius.r3,
42
42
  ...ownerState?.selected && {
43
43
  boxShadow: theme.vars.customShadows.z4,
44
- border: `1px solid ${theme.vars.palette?.border.main}`
44
+ border: `1px solid ${theme.vars.palette?.primary.activeOpacity}`
45
45
  }
46
46
  }
47
47
  },
48
- ...ownerState?.type === "layout" && {
48
+ ...ownerState?.emergeType === "layout" && {
49
49
  ...ownerState?.selected && !ownerState?.maximized ? {
50
50
  boxShadow: theme.vars.customShadows.primary
51
51
  } : {}
52
52
  },
53
- ...ownerState?.type === "modal" && {
53
+ ...ownerState?.emergeType === "modal" && {
54
54
  boxShadow: `${theme.vars.customShadows.z3}!important`
55
55
  }
56
56
  }
@@ -59,8 +59,8 @@ const windowBaseStyles = {
59
59
  /**
60
60
  * Styles for the content of the window base component.
61
61
  */
62
- contentWindowBase: ({ theme, ownerState }) => ({
63
- padding: ownerState?.type === "layout" ? theme.vars.size.baseSpacings.sp5 : theme.vars.size.baseSpacings.sp4,
62
+ contentWindowBase: ({ ownerState, theme }) => ({
63
+ padding: ownerState?.emergeType === "layout" ? theme.vars.size.baseSpacings.sp5 : theme.vars.size.baseSpacings.sp4,
64
64
  overflow: "auto",
65
65
  width: "100%",
66
66
  height: "100%",
@@ -69,6 +69,17 @@ const windowBaseStyles = {
69
69
  display: "none"
70
70
  }
71
71
  }),
72
+ /**
73
+ * Window component content Styles by emergeType
74
+ */
75
+ windowContainerComponent: () => ({
76
+ //Mover el estilado para adentro
77
+ position: "relative",
78
+ display: "flex",
79
+ width: "100%",
80
+ height: "100%",
81
+ overflow: "visible"
82
+ }),
72
83
  /**
73
84
  * Styles for the header of the window base component.
74
85
  */
@@ -76,14 +87,19 @@ const windowBaseStyles = {
76
87
  return {
77
88
  width: "100%",
78
89
  display: "flex",
79
- padding: ownerState?.type === "popup" || ownerState?.type === "modal" ? theme.vars.size.baseSpacings["sp0-5"] : theme.vars.size.baseSpacings.sp1,
90
+ padding: theme.vars.size.baseSpacings.sp1,
91
+ borderBottom: "1px solid #ffffff00",
92
+ ...(ownerState?.emergeType === "popup" || ownerState?.emergeType === "modal") && {
93
+ padding: `${theme.vars.size.baseSpacings["sp2-5"]} ${theme.vars.size.baseSpacings.sp2} 0 ${theme.vars.size.baseSpacings.sp2}`,
94
+ borderBottom: `unset`
95
+ },
80
96
  alignItems: "center",
81
97
  justifyContent: "space-between",
82
98
  flexShrink: 0,
83
99
  alignSelf: "stretch",
84
100
  cursor: ownerState?.draggable ? "all-scroll" : "default",
85
101
  position: "relative",
86
- ...ownerState?.type === "layout" || ownerState?.type === "modal" ? getSizeStyles(
102
+ ...ownerState?.emergeType === "layout" || ownerState?.emergeType === "modal" ? getSizeStyles(
87
103
  theme,
88
104
  ownerState?.size,
89
105
  "container",
@@ -101,8 +117,7 @@ const windowBaseStyles = {
101
117
  })
102
118
  )
103
119
  },
104
- borderBottom: "1px solid #ffffff00",
105
- ...ownerState?.selected && ownerState?.type === "layout" && ownerState?.variant === "outlined" && !ownerState?.maximized ? {
120
+ ...ownerState?.selected && ownerState?.emergeType === "layout" && ownerState?.variant === "outlined" && !ownerState?.maximized ? {
106
121
  background: `linear-gradient(to right, ${theme.vars.palette.primary.opacity}, #ffffff00);`,
107
122
  "&::before": {
108
123
  content: '""',
@@ -114,8 +129,7 @@ const windowBaseStyles = {
114
129
  background: `linear-gradient(to left, ${theme.vars.palette.primary.opacityGradient2}, #ffffff00);`
115
130
  }
116
131
  } : {
117
- background: "transparent",
118
- borderBottom: `1px solid ${theme.vars.palette.border.disabled}`
132
+ background: "transparent"
119
133
  }
120
134
  };
121
135
  },
@@ -138,7 +152,7 @@ const windowBaseStyles = {
138
152
  */
139
153
  headerTitleWindowBase: ({ theme, ownerState }) => ({
140
154
  minWidth: "30px",
141
- ...ownerState?.selected && ownerState?.type !== "modal" ? {
155
+ ...ownerState?.selected && ownerState?.emergeType !== "modal" ? {
142
156
  color: `${theme.vars.palette["primary"].semanticText} !important`
143
157
  } : {
144
158
  color: `${theme.vars.palette.text.secondary} !important`
@@ -180,7 +194,7 @@ const windowBaseStyles = {
180
194
  headerSubTitleWindowBase: ({ theme, ownerState }) => ({
181
195
  width: "auto !important",
182
196
  height: "auto !important",
183
- ...ownerState?.selected && ownerState?.type !== "modal" ? {
197
+ ...ownerState?.selected && ownerState?.emergeType !== "modal" ? {
184
198
  color: `${theme.vars.palette["primary"].semanticText} !important`
185
199
  } : {
186
200
  color: `${theme.vars.palette.text.secondary} !important`
@@ -196,7 +210,7 @@ const windowBaseStyles = {
196
210
  */
197
211
  headerIconWindowBase: ({ theme, ownerState }) => ({
198
212
  "& .M4LIcon-icon": {
199
- ...ownerState?.selected && ownerState?.type !== "modal" ? {
213
+ ...ownerState?.selected && ownerState?.emergeType !== "modal" ? {
200
214
  backgroundColor: `${theme.vars.palette["primary"].semanticText} !important`
201
215
  } : {
202
216
  backgroundColor: `${theme.vars.palette.text.secondary} !important`
@@ -228,7 +242,7 @@ const windowBaseStyles = {
228
242
  ),
229
243
  marginLeft: theme.vars.size.baseSpacings.sp1,
230
244
  marginRight: theme.vars.size.baseSpacings.sp1,
231
- marginBottom: ownerState?.type === "layout" ? "auto" : "unset"
245
+ marginBottom: ownerState?.emergeType === "layout" ? "auto" : "unset"
232
246
  },
233
247
  '& .window-actions[class*="M4LIconButton-styledMUIIconButton"]': {
234
248
  ...getSizeStyles(
@@ -242,7 +256,7 @@ const windowBaseStyles = {
242
256
  ),
243
257
  marginLeft: theme.vars.size.baseSpacings.sp1,
244
258
  marginRight: theme.vars.size.baseSpacings.sp1,
245
- marginBottom: ownerState?.type === "layout" ? "auto!important" : "unset!important",
259
+ marginBottom: ownerState?.emergeType === "layout" ? "auto!important" : "unset!important",
246
260
  "&.collapse-toggle": {
247
261
  ...ownerState?.maximized && {
248
262
  display: "none"
@@ -304,7 +318,7 @@ const windowBaseStyles = {
304
318
  */
305
319
  pointIcon: ({ theme, ownerState }) => ({
306
320
  "& .M4LIcon-icon": {
307
- ...ownerState?.selected && ownerState?.type !== "modal" && ownerState?.variant === "outlined" ? {
321
+ ...ownerState?.selected && ownerState?.emergeType !== "modal" && ownerState?.variant === "outlined" ? {
308
322
  backgroundColor: `${theme.vars.palette["primary"].semanticText} !important`
309
323
  } : {
310
324
  backgroundColor: `${theme.vars.palette.text.secondary} !important`
@@ -320,7 +334,7 @@ const windowBaseStyles = {
320
334
  * Styles for the menu actions of the window base component.
321
335
  */
322
336
  menuActionsWindowBase: ({ theme, ownerState }) => ({
323
- ...ownerState?.type === "layout" ? {
337
+ ...ownerState?.emergeType === "layout" ? {
324
338
  ...getSizeStyles(
325
339
  theme,
326
340
  ownerState?.size,
@@ -363,15 +377,6 @@ const windowBaseStyles = {
363
377
  maxWidth: "100%"
364
378
  }
365
379
  }),
366
- /**
367
- * Window component content Styles
368
- */
369
- windowContainerComponent: () => ({
370
- display: "flex",
371
- width: "100%",
372
- height: "100%",
373
- overflow: "auto"
374
- }),
375
380
  /**
376
381
  * Styles for the toast container of the window base component.
377
382
  */
@@ -1,2 +1,2 @@
1
1
  export declare const WINDOW_BASE_KEY_COMPONENT = "M4LWindowBase";
2
- export declare const WINDOW_BASE_CLASSES: Record<"wrapperWindowBase" | "contentWindowBase" | "headerContentWindowBase" | "headerTitleWindowBase" | "headerSubTitleWindowBase" | "pointIcon" | "containerTitleSubtitle" | "headerIconWindowBase" | "menuActionsWindowBase" | "iconsWrapperWindowBase" | "headerWindowComponent" | "linearProgressIndeterminate" | "contentEditionInfo" | "windowContainerComponent" | "toastContainer" | "containerLeftActions", string>;
2
+ export declare const windowBaseClasses: Record<"wrapperWindowBase" | "contentWindowBase" | "headerContentWindowBase" | "headerTitleWindowBase" | "headerSubTitleWindowBase" | "pointIcon" | "containerTitleSubtitle" | "headerIconWindowBase" | "menuActionsWindowBase" | "iconsWrapperWindowBase" | "headerWindowComponent" | "linearProgressIndeterminate" | "contentEditionInfo" | "windowContainerComponent" | "toastContainer" | "containerLeftActions", string>;
@@ -1,8 +1,8 @@
1
1
  import { g as getComponentClasses } from "../../utils/getComponentSlotRoot.js";
2
2
  import { W as WindowBaseSlots } from "./slots/WindowBaseEnum.js";
3
3
  const WINDOW_BASE_KEY_COMPONENT = "M4LWindowBase";
4
- const WINDOW_BASE_CLASSES = getComponentClasses(WINDOW_BASE_KEY_COMPONENT, WindowBaseSlots);
4
+ const windowBaseClasses = getComponentClasses(WINDOW_BASE_KEY_COMPONENT, WindowBaseSlots);
5
5
  export {
6
6
  WINDOW_BASE_KEY_COMPONENT as W,
7
- WINDOW_BASE_CLASSES as a
7
+ windowBaseClasses as w
8
8
  };
@@ -5,3 +5,4 @@ export * from './contexts/WindowToolsMFContext';
5
5
  export * from './contexts/DynamicMFParmsContext';
6
6
  export type { WindowToolsMFContextProps } from './contexts/WindowToolsMFContext/types';
7
7
  export type { ModuleAction, GroupActionMenuItem, ModuleActionGroup } from './types';
8
+ export type { JSX_REACT_NODE } from './types';
@@ -4,8 +4,8 @@ import { a as WindowContainerComponentStyled } from "../../slots/WindowBaseSlots
4
4
  import { a as WindowToolsMFProvider } from "../../contexts/WindowToolsMFContext/WindowToolsMFContext.js";
5
5
  import { a as DynamicMFParmsProvider } from "../../contexts/DynamicMFParmsContext/DynamicMFParmsContext.js";
6
6
  const WindowBaseComponent = (props) => {
7
- const { component, dynamicMFStore, windowTools, componentProps } = props;
8
- return /* @__PURE__ */ jsx(WindowToolsMFProvider, { ...windowTools, children: /* @__PURE__ */ jsx(DynamicMFParmsProvider, { store: dynamicMFStore, children: /* @__PURE__ */ jsx(WindowContainerComponentStyled, { ownerState: {}, children: typeof component === "function" ? component(componentProps) : component }) }) });
7
+ const { component, dynamicMFStore, windowTools, componentProps, emergeType } = props;
8
+ return /* @__PURE__ */ jsx(WindowToolsMFProvider, { ...windowTools, children: /* @__PURE__ */ jsx(DynamicMFParmsProvider, { store: dynamicMFStore, children: /* @__PURE__ */ jsx(WindowContainerComponentStyled, { ownerState: { emergeType }, children: typeof component === "function" ? component(componentProps) : component }) }) });
9
9
  };
10
10
  React.memo(WindowBaseComponent);
11
11
  export {
@@ -1,7 +1,9 @@
1
1
  import { WindowToolsMF } from '../../contexts';
2
2
  import { DynamicMFStore } from '../../contexts/DynamicMFParmsContext/store';
3
3
  import { JSX_REACT_NODE } from '../../../WindowBase/types';
4
+ import { EmergeType } from '../../../areas/types';
4
5
  export interface ComponentProps {
6
+ emergeType: EmergeType;
5
7
  windowTools: WindowToolsMF;
6
8
  dynamicMFStore: DynamicMFStore;
7
9
  component: JSX_REACT_NODE;