@m4l/components 0.1.76 → 0.1.77

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 (112) hide show
  1. package/@types/export.d.ts +19 -0
  2. package/components/AccountPopover/{index.47cf6c43.js → index.3a79c395.js} +7 -6
  3. package/components/AppBar/{index.f04f5e45.js → index.71b38ee9.js} +7 -6
  4. package/components/CommonActions/components/ActionCancel/{index.453c2d24.js → index.b748a38e.js} +2 -2
  5. package/components/CommonActions/components/ActionFormCancel/{index.c2a2fd55.js → index.27ad09e1.js} +18 -18
  6. package/components/CommonActions/components/ActionFormIntro/{index.25d33912.js → index.2556f054.js} +2 -2
  7. package/components/CommonActions/components/ActionIntro/{index.c653a266.js → index.a7d92e66.js} +2 -2
  8. package/components/CommonActions/components/Actions/{index.e376a68e.js → index.3eba9d91.js} +16 -17
  9. package/components/DataGrid/{index.ffaf000e.js → index.545b492f.js} +42 -30
  10. package/components/DataGrid/types.d.ts +5 -1
  11. package/components/DraggableWindow/{index.b08af1dc.js → index.c702d3f2.js} +1 -1
  12. package/components/DynamicFilter/{index.d7c03a61.js → index.d7be0f37.js} +40 -33
  13. package/components/DynamicFilter/subcomponents/InnerForHooks/index.d.ts +2 -1
  14. package/components/DynamicFilter/subcomponents/InnerForHooks/types.d.ts +2 -0
  15. package/components/DynamicFilter/tests/contants.d.ts +1 -1
  16. package/components/DynamicFilter/types.d.ts +4 -0
  17. package/components/GridLayout/GridLayout.d.ts +6 -0
  18. package/components/GridLayout/Responsive/index.a12a8cec.js +335 -0
  19. package/components/GridLayout/WidthProvider/index.8ff65909.js +67 -0
  20. package/components/GridLayout/calculateUtils.d.ts +42 -0
  21. package/components/GridLayout/index.4ba3767a.js +1400 -0
  22. package/components/GridLayout/index.d.ts +6 -0
  23. package/components/GridLayout/subcomponents/GridItem/index.d.ts +25 -0
  24. package/components/GridLayout/subcomponents/GridItem/types.d.ts +76 -0
  25. package/components/GridLayout/subcomponents/Responsive/index.d.ts +3 -0
  26. package/components/GridLayout/subcomponents/Responsive/responsiveUtils.d.ts +61 -0
  27. package/components/GridLayout/subcomponents/Responsive/types.d.ts +71 -0
  28. package/components/GridLayout/subcomponents/WidthProvider/index.d.ts +16 -0
  29. package/components/GridLayout/types.d.ts +355 -0
  30. package/components/GridLayout/utils.d.ts +123 -0
  31. package/components/HelperText/{index.9864f773.js → index.ef31df1f.js} +7 -6
  32. package/components/Icon/{index.9dae8337.js → index.ecb63e65.js} +1 -1
  33. package/components/LanguagePopover/{index.938c6675.js → index.0023d069.js} +7 -6
  34. package/components/LinearProgressIndeterminate/{index.d34d398f.js → index.60dabc06.js} +1 -1
  35. package/components/ModalDialog/{index.d9c5d400.js → index.d880e685.js} +8 -56
  36. package/components/NavLink/{index.21c8fd90.js → index.cd92eceb.js} +7 -6
  37. package/components/ObjectLogs/{index.a2709fc2.js → index.f174c542.js} +19 -19
  38. package/components/PaperForm/{index.5e1bc99f.js → index.1bd86ee5.js} +1 -1
  39. package/components/Period/{index.526791a3.js → index.711db043.js} +21 -22
  40. package/components/Resizeable/{index.f6e48e56.js → index.9a9c79a4.js} +1 -1
  41. package/components/SideBar/{index.9e1a5b96.js → index.c5ce0bad.js} +5 -5
  42. package/components/areas/components/AreasAdmin/classes/index.d.ts +1 -1
  43. package/components/areas/components/AreasAdmin/classes/types.d.ts +2 -0
  44. package/components/areas/components/AreasAdmin/{index.946eebb9.js → index.cc4cbf56.js} +120 -46
  45. package/components/areas/components/AreasAdmin/subcomponents/AreaChip/types.d.ts +0 -1
  46. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/PanelWindowPopUp/index.d.ts +3 -0
  47. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/PanelWindowPopUp/types.d.ts +3 -0
  48. package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
  49. package/components/areas/components/AreasViewer/classes/types.d.ts +2 -0
  50. package/components/areas/components/AreasViewer/{index.bf4191ea.js → index.9c2aaaeb.js} +258 -259
  51. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/{GridLayout → AreaGridLayout}/index.d.ts +1 -1
  52. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/index.d.ts +2 -2
  53. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/index.d.ts +1 -7
  54. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/WindowPopUpsList/index.d.ts +3 -0
  55. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/WindowPopUpsList/types.d.ts +2 -0
  56. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/types.d.ts +6 -0
  57. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/types.d.ts +1 -1
  58. package/components/areas/components/{index.2bb534cb.js → index.0f7ac464.js} +11 -10
  59. package/components/areas/contexts/AreasContext/helper.d.ts +6 -16
  60. package/components/areas/contexts/AreasContext/{index.f0397b7c.js → index.c8147e8e.js} +244 -339
  61. package/components/areas/contexts/AreasContext/types.d.ts +23 -20
  62. package/components/areas/contexts/{index.1809650a.js → index.02336412.js} +1 -1
  63. package/components/areas/{dictionary.3fabae50.js → dictionary.afb7e3d9.js} +5 -2
  64. package/components/areas/dictionary.d.ts +4 -1
  65. package/components/areas/hooks/useAreas/{index.40917e99.js → index.3406a6cb.js} +1 -1
  66. package/components/areas/{icons.19cde4b4.js → icons.8266ccc8.js} +5 -1
  67. package/components/areas/icons.d.ts +4 -0
  68. package/components/areas/{index.9bd48013.js → index.6f2e5dab.js} +11 -10
  69. package/components/areas/types.d.ts +30 -22
  70. package/components/formatters/BooleanFormatter/{index.431dc923.js → index.5268b024.js} +1 -1
  71. package/components/formatters/{index.e1af75e6.js → index.137169d8.js} +2 -2
  72. package/components/hook-form/RHFAutocomplete/{index.a063dc44.js → index.ac2b1fae.js} +8 -7
  73. package/components/hook-form/RHFAutocompleteAsync/{index.ddfd9cc9.js → index.8b4ccc8d.js} +1 -1
  74. package/components/hook-form/RHFCheckbox/{index.7e7f220b.js → index.acef119c.js} +1 -1
  75. package/components/hook-form/RHFDateTime/{index.d330709b.js → index.5b080342.js} +9 -8
  76. package/components/hook-form/RHFPeriod/{index.e2b1293b.js → index.5304e3bd.js} +2 -2
  77. package/components/hook-form/RHFTextField/{index.e5336d09.js → index.e751dca7.js} +5 -5
  78. package/components/hook-form/RHFUpload/{index.17e7f9eb.js → index.25db0511.js} +8 -7
  79. package/components/index.d.ts +1 -0
  80. package/components/modal/{WindowBase.7acb9f1d.js → WindowBase.850ea31a.js} +9 -8
  81. package/components/modal/{WindowConfirm.9b829837.js → WindowConfirm.cb37bc58.js} +18 -18
  82. package/components/modal/classes/index.d.ts +1 -0
  83. package/components/modal/classes/types.d.ts +1 -0
  84. package/components/modal/{index.1b25b61d.js → index.a0978193.js} +18 -16
  85. package/components/mui_extended/Accordion/{index.3faafd8b.js → index.12b1339a.js} +2 -2
  86. package/components/mui_extended/Badge/Badge.d.ts +3 -0
  87. package/components/mui_extended/Badge/classes/constants.d.ts +1 -0
  88. package/components/mui_extended/Badge/classes/index.d.ts +6 -0
  89. package/components/mui_extended/Badge/classes/types.d.ts +6 -0
  90. package/components/mui_extended/Badge/index.8c2b8b66.js +36 -0
  91. package/components/mui_extended/Badge/index.d.ts +2 -0
  92. package/components/mui_extended/Badge/tests/constants.d.ts +1 -0
  93. package/components/mui_extended/Badge/tests/utils.d.ts +2 -0
  94. package/components/mui_extended/Badge/types.d.ts +4 -0
  95. package/components/mui_extended/Button/{index.fdb5dcbd.js → index.4288f9fc.js} +8 -3
  96. package/components/mui_extended/IconButton/{index.1a9d4fa5.js → index.fc5b7c2d.js} +1 -1
  97. package/components/mui_extended/MenuActions/{index.ba1da3b3.js → index.f5b1c022.js} +28 -9
  98. package/components/mui_extended/MenuActions/types.d.ts +8 -0
  99. package/components/mui_extended/Pager/{index.67bda2c5.js → index.435af0df.js} +1 -1
  100. package/components/mui_extended/{index.73e536de.js → index.83979b6a.js} +7 -6
  101. package/components/mui_extended/index.d.ts +1 -0
  102. package/contexts/ModalContext/{index.699f95fa.js → index.dee85a61.js} +1 -1
  103. package/hooks/useModal/{index.7b7d26ba.js → index.de522a10.js} +1 -1
  104. package/index.js +94 -83
  105. package/node_modules.d73a220d.js +363 -0
  106. package/package.json +4 -3
  107. package/{react-draggable.6d7949a3.js → react-draggable.7abb5d0a.js} +3 -2
  108. package/{react-resizable.b6f8e04a.js → react-resizable.ba08699a.js} +13 -12
  109. package/utils/{index.008b4c2a.js → index.c43a95f4.js} +0 -15
  110. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/WindowPopUp/index.d.ts +0 -4
  111. package/components/modal/ModalDialog/types.d.ts +0 -7
  112. /package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/{GridLayout → AreaGridLayout}/types.d.ts +0 -0
@@ -1,11 +1,13 @@
1
1
  import { GetLabelType, NetworkProps } from '@m4l/core';
2
2
  import { ReactNode } from 'react';
3
- import { CookieType, HashWindowsByLayouts, HashWindowsByModals, HashWindowsByPopups, ModalStateProps, AreaWindowAction, NewLayoutProps, NewModalProps, NewPopUpProps, NewWindowProps, ToastyOptions, WinType, WindowStateProps } from '../../types';
3
+ import { CookieType, HashWindowsByModals, ModalStateProps, AreaWindowAction, NewModalProps, NewLayoutMoveableProps, NewWindowProps, ToastyOptions, WinType, WindowStateProps, NewLayoutMagnetizableProps } from '../../types';
4
4
  import { ViwerClasses } from '../../components/AreasViewer/classes';
5
5
  import { AdminClasses } from '../../components/AreasAdmin/classes';
6
- import { Layout, Layouts } from 'react-grid-layout';
7
6
  import { DebouncedFunc } from 'lodash';
8
- export declare type WinLayout = Layout & {
7
+ import { LayoutItem } from '../../../GridLayout';
8
+ import { Breakpoint, ContainerChangeEvent, LayoutsNotReadonly } from '../../../GridLayout/subcomponents/Responsive/types';
9
+ import { LayoutNotReadOnly } from '../../../GridLayout/types';
10
+ export declare type WinLayoutItem = LayoutItem & {
9
11
  winType: WinType;
10
12
  };
11
13
  export declare type Breakpoints = {
@@ -22,18 +24,20 @@ export interface Area {
22
24
  status: AreaStatus;
23
25
  zPopUpIndex: number;
24
26
  loadWindows: boolean;
25
- breakPointsLayouts: Layouts;
26
- beforeMaximizebreakpointsLayouts: Layouts;
27
- windowsLayouts: Layout[];
28
- windowsPopUps: string[];
29
- hashWindowsPopups: HashWindowsByPopups;
30
- hashWindowsLayouts: HashWindowsByLayouts;
27
+ /**
28
+ * "containerHeight" Altura del contendor de area, se deja en cada área porque solo llegan en eventos de resize cuando está diferente a display "none"
29
+ */
30
+ containerHeight?: number;
31
+ currentBreakpoint?: Breakpoint;
32
+ layouts: LayoutsNotReadonly;
33
+ colapsedItems: Record<string, boolean>;
34
+ maximizedId?: string | undefined;
35
+ /** Son los ids de las ventanas, iterar con keys, destruye los componentes en un map */
36
+ hashLayoutItems: string[];
31
37
  currentLayoutId: string;
32
38
  currentPopUpId: string;
33
39
  breakpoints: Breakpoints;
34
40
  cols: Cols;
35
- viewMode: ViewAreaMode;
36
- singleId?: string;
37
41
  }
38
42
  /**
39
43
  * @description estado de carga de las areaS de trabajo.
@@ -101,7 +105,7 @@ export interface AreasState {
101
105
  /**
102
106
  * "areas" Areas de trabajo
103
107
  */
104
- areas: Area[];
108
+ areas: string[];
105
109
  /**
106
110
  * "hashAreas" Areas de trabajo
107
111
  */
@@ -165,17 +169,16 @@ export interface AreasStateWithActions extends AreasState {
165
169
  addWindow: (newWindow: NewWindowProps) => void;
166
170
  closeWindowModal: (removeModalId: string) => void;
167
171
  addWindowModal: (areaId: string, windowId: string, newWindowModalProps: NewModalProps) => void;
168
- closeWindowPopUp: (areaId: string, removePopUpId: string) => void;
169
- selectWindowPopUp: (areaId: string, popUpId: string) => void;
170
- addWindowPopUp: (areaId: string, windowId: string, newWindowPopupProps: NewPopUpProps) => void;
171
- closeWindowLayout: (areaId: string, removeLayoutId: string) => void;
172
- selectWindowLayout: (areaId: string, layoutId: string) => void;
173
- addWindowLayout: (areaId: string, windowId: string, newWindow: NewLayoutProps) => void;
172
+ closeLayout: (areaId: string, removePopUpId: string) => void;
173
+ selectLayout: (areaId: string, layoutId: string) => void;
174
+ addLayout: (areaId: string, windowId: string, newWindow: NewLayoutMagnetizableProps | NewLayoutMoveableProps) => void;
174
175
  saveLayouts: (areaId: string) => void;
175
- onBreakpointsLayoutsChange: (areaId: string, currentLayouts: Layout[], newAllLayouts: Layouts) => void;
176
+ onBreakpointsLayoutsChange: (areaId: string, currentLayout: LayoutNotReadOnly, newAllLayouts: LayoutsNotReadonly) => void;
177
+ onContainerChange: (areaId: string, e: ContainerChangeEvent) => void;
176
178
  bouncedSaveBreakpointsLayouts: DebouncedFunc<(areaId: string) => void>;
179
+ colapseLayoutItem: (areaId: string, layoutId: string) => void;
180
+ unColapseLayoutItem: (areaId: string, layoutId: string) => void;
177
181
  maximizeLayout: (areaId: string, layoutId?: string) => void;
178
- resizeMaximixedLayout: (areaId: string) => void;
179
182
  normalizeLayouts: (areaId: string) => void;
180
183
  loadWindowsFromApi: (areaId: string) => void;
181
184
  };
@@ -1,2 +1,2 @@
1
- import "./AreasContext/index.f0397b7c.js";
1
+ import "./AreasContext/index.c8147e8e.js";
2
2
  import "./WindowToolsMFContext/index.8f3e2a04.js";
@@ -6,14 +6,17 @@ const LABEL_FILTER_BUTTON = "filter_tooltip";
6
6
  const DICCTIONARY = {
7
7
  label_new_area: "label_new_area",
8
8
  label_persist_module_cookies: "label_persist_module_cookies",
9
- label_reset_module_cookies: "label_reset_module_cookies",
10
9
  validation_edit_area: "validation_edit_area",
11
10
  label_edit_area: "label_edit_area",
12
11
  label_delete_area: "label_delete_area",
12
+ label_window_colapse: "label_window_colapse",
13
+ label_window_un_colapse: "label_window_un_colapse",
13
14
  area_error_title: "area_error_title",
14
15
  area_error_description: "area_error_description",
15
16
  area_error_recommendation: "area_error_recommendation",
16
- area_error_intro: "area_error_intro"
17
+ area_error_intro: "area_error_intro",
18
+ area_add_new: "area_add_new",
19
+ label_reset_module_cookies: "label_reset_module_cookies"
17
20
  };
18
21
  const getAreasDictionary = (key) => {
19
22
  return `${AREAS_DICTIONARY_ID}.${key}`;
@@ -4,14 +4,17 @@ export declare const LABEL_FILTER_BUTTON = "filter_tooltip";
4
4
  export declare const DICCTIONARY: {
5
5
  readonly label_new_area: "label_new_area";
6
6
  readonly label_persist_module_cookies: "label_persist_module_cookies";
7
- readonly label_reset_module_cookies: "label_reset_module_cookies";
8
7
  readonly validation_edit_area: "validation_edit_area";
9
8
  readonly label_edit_area: "label_edit_area";
10
9
  readonly label_delete_area: "label_delete_area";
10
+ readonly label_window_colapse: "label_window_colapse";
11
+ readonly label_window_un_colapse: "label_window_un_colapse";
11
12
  readonly area_error_title: "area_error_title";
12
13
  readonly area_error_description: "area_error_description";
13
14
  readonly area_error_recommendation: "area_error_recommendation";
14
15
  readonly area_error_intro: "area_error_intro";
16
+ readonly area_add_new: "area_add_new";
17
+ readonly label_reset_module_cookies: "label_reset_module_cookies";
15
18
  };
16
19
  export declare type TypeDictionary = typeof DICCTIONARY;
17
20
  export declare const getAreasDictionary: (key: keyof TypeDictionary) => string;
@@ -1,6 +1,6 @@
1
1
  import { useContext } from "react";
2
2
  import { useStore } from "zustand";
3
- import { A as AreasContext } from "../../contexts/AreasContext/index.f0397b7c.js";
3
+ import { A as AreasContext } from "../../contexts/AreasContext/index.c8147e8e.js";
4
4
  function useAreasStore(selector, equalityFn) {
5
5
  const context = useContext(AreasContext);
6
6
  if (!context)
@@ -2,6 +2,8 @@ const ICONS = {
2
2
  CLOSE: "close.svg",
3
3
  MAXIMIZE: "maximize.svg",
4
4
  NORMALIZE: "normalize.svg",
5
+ COLAPSE: "colapse.svg",
6
+ UNCOLPASE: "uncolapse.svg",
5
7
  RESET_COOKIES: "reset_cookies.svg",
6
8
  SAVE_COOKIES: "save_cookies.svg",
7
9
  DELETE_AREA: "delete_area.svg",
@@ -15,7 +17,9 @@ const ICONS = {
15
17
  SHOW_OPTIONS: "showMoreVertical.svg",
16
18
  CHEVRON_DOWN: "chevronDown.svg",
17
19
  TOASTY_CLOSE: "close.svg",
18
- TOASTY_PIN: "pin.svg"
20
+ TOASTY_PIN: "pin.svg",
21
+ MODULE: "module.svg",
22
+ POPUP: "popup.svg"
19
23
  };
20
24
  export {
21
25
  ICONS as I
@@ -2,6 +2,8 @@ export declare const ICONS: {
2
2
  CLOSE: string;
3
3
  MAXIMIZE: string;
4
4
  NORMALIZE: string;
5
+ COLAPSE: string;
6
+ UNCOLPASE: string;
5
7
  RESET_COOKIES: string;
6
8
  SAVE_COOKIES: string;
7
9
  DELETE_AREA: string;
@@ -16,4 +18,6 @@ export declare const ICONS: {
16
18
  CHEVRON_DOWN: string;
17
19
  TOASTY_CLOSE: string;
18
20
  TOASTY_PIN: string;
21
+ MODULE: string;
22
+ POPUP: string;
19
23
  };
@@ -1,30 +1,31 @@
1
1
  import "react";
2
2
  import "@m4l/core";
3
3
  import "@mui/material";
4
- import "../Icon/index.9dae8337.js";
4
+ import "../Icon/index.ecb63e65.js";
5
5
  import "clsx";
6
6
  import "react/jsx-runtime";
7
- import "../mui_extended/IconButton/index.1a9d4fa5.js";
7
+ import "../mui_extended/IconButton/index.fc5b7c2d.js";
8
8
  import "@m4l/graphics";
9
9
  import "zustand";
10
- import "./contexts/AreasContext/index.f0397b7c.js";
11
- import "./components/AreasAdmin/index.946eebb9.js";
10
+ import "./contexts/AreasContext/index.c8147e8e.js";
11
+ import "./components/AreasAdmin/index.cc4cbf56.js";
12
12
  import "zustand/shallow";
13
13
  import "../ScrollBar/index.bbe48f4d.js";
14
- import "../mui_extended/Accordion/index.3faafd8b.js";
14
+ import "../mui_extended/Accordion/index.12b1339a.js";
15
15
  import "../mui_extended/Typography/index.443590d6.js";
16
16
  import "../mui_extended/Avatar/index.75e6ed57.js";
17
17
  import "react-router-dom";
18
18
  import "@mui/material/Button";
19
- import "../mui_extended/Button/index.fdb5dcbd.js";
19
+ import "../mui_extended/Button/index.4288f9fc.js";
20
+ import "../mui_extended/Badge/index.8c2b8b66.js";
20
21
  import "../Image/index.c18ebf5a.js";
21
22
  import "@mui/lab";
22
23
  import "../mui_extended/Popover/index.9f35d0eb.js";
23
- import "../mui_extended/MenuActions/index.ba1da3b3.js";
24
- import "../mui_extended/Pager/index.67bda2c5.js";
24
+ import "../mui_extended/MenuActions/index.f5b1c022.js";
25
+ import "../mui_extended/Pager/index.435af0df.js";
25
26
  import "../mui_extended/Tab/index.9e2f6e34.js";
26
27
  import "../mui_extended/Tooltip/index.5a795dcd.js";
27
- import "./components/AreasViewer/index.bf4191ea.js";
28
- import "../LinearProgressIndeterminate/index.d34d398f.js";
28
+ import "./components/AreasViewer/index.9c2aaaeb.js";
29
+ import "../LinearProgressIndeterminate/index.60dabc06.js";
29
30
  import "./contexts/WindowToolsMFContext/index.8f3e2a04.js";
30
31
  import "./contexts/DynamicMFParmsContext/index.1607c78e.js";
@@ -1,8 +1,8 @@
1
1
  import { ReactNode } from 'react';
2
2
  import type { DynamicMFParameters } from './contexts/DynamicMFParmsContext/types';
3
- import type { Layout } from 'react-grid-layout';
4
3
  import type { DynamicMFStore } from './contexts/DynamicMFParmsContext/store';
5
4
  import type { MenuAction } from '../mui_extended';
5
+ import { LayoutItem } from '../GridLayout';
6
6
  export declare type WindowActionType = 'main' | 'allways' | 'normal';
7
7
  export interface AreaWindowAction extends MenuAction {
8
8
  visibility: WindowActionType;
@@ -40,8 +40,14 @@ export interface ToastyOptions extends Pick<Toasty, 'message' | 'type' | 'replac
40
40
  timeoutMs?: number;
41
41
  }
42
42
  export declare type WindowState = {
43
+ /**
44
+ * status Indica el proceso de cargado de la ventana
45
+ */
43
46
  status: WindowStatus;
44
47
  dynamicMFStore: DynamicMFStore;
48
+ /**
49
+ * loading indica si la barra de progress aparece o no
50
+ */
45
51
  loading: boolean;
46
52
  version?: string;
47
53
  moduleActions: AreaWindowAction[];
@@ -49,6 +55,7 @@ export declare type WindowState = {
49
55
  toasties: Toasty[];
50
56
  hashToasties: Record<number, Toasty>;
51
57
  toastyCount: number;
58
+ colapsed?: boolean;
52
59
  };
53
60
  export declare type WindowOptions = {
54
61
  allowPersistCookies: boolean;
@@ -66,51 +73,52 @@ export interface WindowBaseProps {
66
73
  onClose?: (windowId: string) => void;
67
74
  devCookies?: Cookies;
68
75
  windowOptions?: WindowOptions;
76
+ parentLayoutId?: string;
77
+ replaceMeId?: string;
69
78
  }
70
- export interface LayoutBaseProps extends WindowBaseProps {
79
+ export interface LayoutMagnetizableBaseProps extends WindowBaseProps {
71
80
  emergeType: 'layout';
72
- layoutProps: Omit<Layout, 'i'>;
81
+ layoutProps: Omit<LayoutItem, 'i'>;
73
82
  }
74
- export interface LayoutMFProps extends LayoutBaseProps {
83
+ export interface LayoutMagnetizableMFProps extends LayoutMagnetizableBaseProps {
75
84
  winType: 'microfrontend';
76
85
  mfProps: MFBaseProps;
77
86
  }
78
- export interface LayoutComponentProps extends LayoutBaseProps {
87
+ export interface LayoutMagnetizableComponentProps extends LayoutMagnetizableBaseProps {
79
88
  winType: 'component';
80
89
  component: JSX_REACT_NODE;
81
90
  }
82
- export declare type LayoutProps = LayoutMFProps | LayoutComponentProps;
83
- export declare type LayoutStateProps = LayoutProps & WindowState;
84
- export declare type NewLayoutProps = Omit<LayoutMFProps, 'windowId' | 'onClose' | 'areaId'> | Omit<LayoutComponentProps, 'windowId' | 'onClose' | 'areaId'>;
85
- export interface HashWindowsByLayouts {
86
- [P: string]: LayoutStateProps;
87
- }
91
+ export declare type LayoutMagentizableProps = LayoutMagnetizableMFProps | LayoutMagnetizableComponentProps;
92
+ export declare type LayoutMagnetizableStateProps = LayoutMagentizableProps & WindowState;
93
+ export declare type NewLayoutMagnetizableProps = Omit<LayoutMagnetizableMFProps, 'windowId' | 'onClose' | 'areaId'> | Omit<LayoutMagnetizableComponentProps, 'windowId' | 'onClose' | 'areaId'>;
88
94
  export declare type Position = {
89
95
  x: number;
90
96
  y: number;
91
97
  width: number;
92
98
  height: number;
93
99
  };
94
- export interface PopUpBaseProps extends WindowBaseProps {
100
+ export interface LayoutMoveableBaseProps extends WindowBaseProps {
95
101
  emergeType: 'popup';
96
- zIndex?: number;
97
- windowProps: Pick<DOMRect, 'x' | 'y' | 'width' | 'height'>;
102
+ layoutProps: Omit<LayoutItem, 'i'>;
98
103
  parentLayoutId: string;
99
104
  replaceMeId?: string;
100
105
  }
101
- export interface PopUpMFProps extends PopUpBaseProps {
106
+ export interface LayoutMoveableMFProps extends LayoutMoveableBaseProps {
102
107
  winType: 'microfrontend';
103
108
  mfProps: MFBaseProps;
104
109
  }
105
- export interface PopUpComponentProps extends PopUpBaseProps {
110
+ export interface LayoutMoveableComponentProps extends LayoutMoveableBaseProps {
106
111
  winType: 'component';
107
112
  component: JSX_REACT_NODE;
108
113
  }
109
- export declare type PopUpProps = PopUpMFProps | PopUpComponentProps;
110
- export declare type PopUpStateProps = PopUpProps & WindowState;
111
- export declare type NewPopUpProps = Omit<PopUpMFProps, 'windowId' | 'onClose' | 'areaId'> | Omit<PopUpComponentProps, 'windowId' | 'onClose' | 'areaId'>;
114
+ export declare type LayoutMoveableProps = LayoutMoveableMFProps | LayoutMoveableComponentProps;
115
+ export declare type LayoutMoveableStateProps = LayoutMoveableProps & WindowState;
116
+ export declare type NewLayoutMoveableProps = Omit<LayoutMoveableMFProps, 'windowId' | 'onClose' | 'areaId'> | Omit<LayoutMoveableComponentProps, 'windowId' | 'onClose' | 'areaId'>;
112
117
  export interface HashWindowsByPopups {
113
- [P: string]: PopUpStateProps;
118
+ [P: string]: LayoutMoveableStateProps;
119
+ }
120
+ export interface HashWindowsByLayouts {
121
+ [P: string]: LayoutMagnetizableStateProps | LayoutMoveableStateProps;
114
122
  }
115
123
  export interface ModalBaseProps extends WindowBaseProps {
116
124
  emergeType: 'modal';
@@ -131,9 +139,9 @@ export declare type NewModalProps = Omit<ModalMFProps, 'windowId' | 'onClose' |
131
139
  export interface HashWindowsByModals {
132
140
  [P: string]: ModalStateProps;
133
141
  }
134
- export declare type WindowStateProps = (LayoutMFProps & WindowState) | (LayoutComponentProps & WindowState) | (PopUpMFProps & WindowState) | (PopUpComponentProps & WindowState) | (ModalMFProps & WindowState) | (ModalComponentProps & WindowState);
142
+ export declare type WindowStateProps = (LayoutMagnetizableMFProps & WindowState) | (LayoutMagnetizableComponentProps & WindowState) | (LayoutMoveableMFProps & WindowState) | (LayoutMoveableComponentProps & WindowState) | (ModalMFProps & WindowState) | (ModalComponentProps & WindowState);
135
143
  export interface HashWindows {
136
144
  [P: string]: WindowStateProps;
137
145
  }
138
- export declare type NewWindowProps = NewLayoutProps | NewPopUpProps | NewModalProps;
146
+ export declare type NewWindowProps = NewLayoutMagnetizableProps | NewLayoutMoveableProps | NewModalProps;
139
147
  export declare type AddWindow = (newWindow: NewWindowProps) => string;
@@ -1,6 +1,6 @@
1
1
  import { useMemo } from "react";
2
2
  import { useModuleDictionary, useEnvironment } from "@m4l/core";
3
- import { I as Icon } from "../../Icon/index.9dae8337.js";
3
+ import { I as Icon } from "../../Icon/index.ecb63e65.js";
4
4
  import { W as WrapperComponent } from "../../WrapperComponent/index.5e872594.js";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
  const BOOLEAN_FORMATTER_DICTIONARY_KEY = `boolean_formatter`;
@@ -2,11 +2,11 @@ import { W as WrapperComponent } from "../WrapperComponent/index.5e872594.js";
2
2
  import { jsx } from "react/jsx-runtime";
3
3
  import { useModuleDictionary } from "@m4l/core";
4
4
  import "react";
5
- import "../Icon/index.9dae8337.js";
5
+ import "../Icon/index.ecb63e65.js";
6
6
  import "@mui/material";
7
7
  import "clsx";
8
8
  import "@m4l/graphics";
9
- import { a as BOOLEAN_FORMATTER_DICTIONARY_KEY, b as BOOLEAN_FORMATTER_DICTIONARY_LABELS } from "./BooleanFormatter/index.431dc923.js";
9
+ import { a as BOOLEAN_FORMATTER_DICTIONARY_KEY, b as BOOLEAN_FORMATTER_DICTIONARY_LABELS } from "./BooleanFormatter/index.5268b024.js";
10
10
  function getFormatConcatenated(values, separator) {
11
11
  const returnSymbol = "";
12
12
  if (values === null)
@@ -6,22 +6,23 @@ import { useMemo, useState, useEffect } from "react";
6
6
  import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
7
7
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
8
8
  import { T as Typography } from "../../mui_extended/Typography/index.443590d6.js";
9
- import { H as HelperText } from "../../HelperText/index.9864f773.js";
9
+ import { H as HelperText } from "../../HelperText/index.ef31df1f.js";
10
10
  import { styled } from "@mui/material/styles";
11
11
  import "clsx";
12
12
  import { unstable_composeClasses } from "@mui/base";
13
- import "../../Icon/index.9dae8337.js";
14
- import "../../mui_extended/IconButton/index.1a9d4fa5.js";
13
+ import "../../Icon/index.ecb63e65.js";
14
+ import "../../mui_extended/IconButton/index.fc5b7c2d.js";
15
15
  import "@m4l/graphics";
16
- import "../../mui_extended/Accordion/index.3faafd8b.js";
16
+ import "../../mui_extended/Accordion/index.12b1339a.js";
17
17
  import "../../mui_extended/Avatar/index.75e6ed57.js";
18
18
  import "react-router-dom";
19
19
  import "@mui/material/Button";
20
- import "../../mui_extended/Button/index.fdb5dcbd.js";
20
+ import "../../mui_extended/Button/index.4288f9fc.js";
21
+ import "../../mui_extended/Badge/index.8c2b8b66.js";
21
22
  import "@mui/lab";
22
23
  import "../../mui_extended/Popover/index.9f35d0eb.js";
23
- import "../../mui_extended/MenuActions/index.ba1da3b3.js";
24
- import "../../mui_extended/Pager/index.67bda2c5.js";
24
+ import "../../mui_extended/MenuActions/index.f5b1c022.js";
25
+ import "../../mui_extended/Pager/index.435af0df.js";
25
26
  import "../../mui_extended/Tab/index.9e2f6e34.js";
26
27
  import "../../mui_extended/Tooltip/index.5a795dcd.js";
27
28
  const AutocompleteRoot = styled("div")(({
@@ -5,7 +5,7 @@ import { styled } from "@mui/material/styles";
5
5
  import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
6
6
  import { unstable_composeClasses } from "@mui/base";
7
7
  import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
8
- import { R as RHFAutocomplete, g as getRHFAutocompleteComponentsDictionary } from "../RHFAutocomplete/index.a063dc44.js";
8
+ import { R as RHFAutocomplete, g as getRHFAutocompleteComponentsDictionary } from "../RHFAutocomplete/index.ac2b1fae.js";
9
9
  import { jsx } from "react/jsx-runtime";
10
10
  styled("div")(() => ({
11
11
  display: "flex",
@@ -5,7 +5,7 @@ import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
5
5
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
6
6
  import { styled as styled$1 } from "@mui/material/styles";
7
7
  import { unstable_composeClasses } from "@mui/base";
8
- import { H as HelperText } from "../../HelperText/index.9864f773.js";
8
+ import { H as HelperText } from "../../HelperText/index.ef31df1f.js";
9
9
  import { T as Typography } from "../../mui_extended/Typography/index.443590d6.js";
10
10
  const WrapperSkeletonCheckBox = styled("div")(() => ({
11
11
  display: "flex",
@@ -6,23 +6,24 @@ import { jsxs, jsx, Fragment } from "react/jsx-runtime";
6
6
  import { useFormatter } from "@m4l/graphics";
7
7
  import { useState, useEffect } from "react";
8
8
  import clsx from "clsx";
9
- import "../../Icon/index.9dae8337.js";
9
+ import "../../Icon/index.ecb63e65.js";
10
10
  import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
11
- import "../../mui_extended/IconButton/index.1a9d4fa5.js";
12
- import "../../mui_extended/Accordion/index.3faafd8b.js";
11
+ import "../../mui_extended/IconButton/index.fc5b7c2d.js";
12
+ import "../../mui_extended/Accordion/index.12b1339a.js";
13
13
  import { T as Typography } from "../../mui_extended/Typography/index.443590d6.js";
14
14
  import "../../mui_extended/Avatar/index.75e6ed57.js";
15
15
  import "react-router-dom";
16
16
  import "@mui/material/Button";
17
- import "../../mui_extended/Button/index.fdb5dcbd.js";
17
+ import "../../mui_extended/Button/index.4288f9fc.js";
18
+ import "../../mui_extended/Badge/index.8c2b8b66.js";
18
19
  import "../../Image/index.c18ebf5a.js";
19
20
  import "@mui/lab";
20
21
  import "../../mui_extended/Popover/index.9f35d0eb.js";
21
- import "../../mui_extended/MenuActions/index.ba1da3b3.js";
22
- import "../../mui_extended/Pager/index.67bda2c5.js";
22
+ import "../../mui_extended/MenuActions/index.f5b1c022.js";
23
+ import "../../mui_extended/Pager/index.435af0df.js";
23
24
  import "../../mui_extended/Tab/index.9e2f6e34.js";
24
25
  import "../../mui_extended/Tooltip/index.5a795dcd.js";
25
- import { H as HelperText } from "../../HelperText/index.9864f773.js";
26
+ import { H as HelperText } from "../../HelperText/index.ef31df1f.js";
26
27
  import { styled } from "@mui/material/styles";
27
28
  import { unstable_composeClasses } from "@mui/base";
28
29
  const SKTRHFWrapperTextField = styled("div")(({
@@ -161,7 +162,7 @@ function RHFDateTime(props) {
161
162
  children: label
162
163
  }), /* @__PURE__ */ jsx(DateTimePicker, {
163
164
  inputRef: ref,
164
- ampm: false,
165
+ ampm: true,
165
166
  value,
166
167
  onChange: (newValue) => {
167
168
  onChange(newValue);
@@ -1,7 +1,7 @@
1
1
  import { styled, generateUtilityClasses, generateUtilityClass } from "@mui/material";
2
2
  import { useFormContext, Controller } from "react-hook-form";
3
- import { H as HelperText } from "../../HelperText/index.9864f773.js";
4
- import { P as Period } from "../../Period/index.526791a3.js";
3
+ import { H as HelperText } from "../../HelperText/index.ef31df1f.js";
4
+ import { P as Period } from "../../Period/index.711db043.js";
5
5
  import { unstable_composeClasses } from "@mui/base";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
7
  const RHFPeriodRoot = styled("div")(({
@@ -1,18 +1,18 @@
1
1
  import { useModuleSkeleton, useEnvironment } from "@m4l/core";
2
2
  import { styled, Skeleton, generateUtilityClasses, TextField, InputAdornment, generateUtilityClass } from "@mui/material";
3
3
  import { forwardRef, useState, useEffect } from "react";
4
- import { I as IconButton } from "../../mui_extended/IconButton/index.1a9d4fa5.js";
4
+ import { I as IconButton } from "../../mui_extended/IconButton/index.fc5b7c2d.js";
5
5
  import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
6
6
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
7
- import "../../Icon/index.9dae8337.js";
7
+ import "../../Icon/index.ecb63e65.js";
8
8
  import "clsx";
9
9
  import "@m4l/graphics";
10
10
  import { useFormContext, Controller } from "react-hook-form";
11
11
  import { styled as styled$1 } from "@mui/material/styles";
12
12
  import { unstable_composeClasses } from "@mui/base";
13
- import { g as getComponentUtilityClass } from "../../../utils/index.008b4c2a.js";
13
+ import { g as getComponentUtilityClass } from "../../../utils/index.c43a95f4.js";
14
14
  import { T as Typography } from "../../mui_extended/Typography/index.443590d6.js";
15
- import { H as HelperText } from "../../HelperText/index.9864f773.js";
15
+ import { H as HelperText } from "../../HelperText/index.ef31df1f.js";
16
16
  const SkeletonTextFieldRoot = styled("div")(() => ({
17
17
  display: "flex",
18
18
  flexDirection: "column",
@@ -226,7 +226,7 @@ const RHFTextField = forwardRef((props, ref) => {
226
226
  onChange: onInternalChange,
227
227
  onFocus: handleFocus,
228
228
  onBlur: handleBlur,
229
- value: type === "number" ? value || "0" : value || "",
229
+ value: type === "number" ? isNaN(value) ? 0 : value : value,
230
230
  name,
231
231
  inputProps: {
232
232
  ...process.env.NODE_ENV !== "production" ? {
@@ -7,23 +7,24 @@ import { useEnvironment, useModuleDictionary, useModuleSkeleton } from "@m4l/cor
7
7
  import { Skeleton, generateUtilityClasses, generateUtilityClass, styled as styled$1 } from "@mui/material";
8
8
  import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
9
9
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
10
- import { B as Button } from "../../mui_extended/Button/index.fdb5dcbd.js";
10
+ import { B as Button } from "../../mui_extended/Button/index.4288f9fc.js";
11
11
  import { T as Typography } from "../../mui_extended/Typography/index.443590d6.js";
12
- import { H as HelperText } from "../../HelperText/index.9864f773.js";
12
+ import { H as HelperText } from "../../HelperText/index.ef31df1f.js";
13
13
  import "clsx";
14
14
  import { styled } from "@mui/material/styles";
15
15
  import { unstable_composeClasses } from "@mui/base";
16
16
  import "@mui/material/Button";
17
- import "../../Icon/index.9dae8337.js";
18
- import "../../mui_extended/IconButton/index.1a9d4fa5.js";
17
+ import "../../Icon/index.ecb63e65.js";
18
+ import "../../mui_extended/IconButton/index.fc5b7c2d.js";
19
19
  import "@m4l/graphics";
20
- import "../../mui_extended/Accordion/index.3faafd8b.js";
20
+ import "../../mui_extended/Accordion/index.12b1339a.js";
21
21
  import "../../mui_extended/Avatar/index.75e6ed57.js";
22
22
  import "react-router-dom";
23
+ import "../../mui_extended/Badge/index.8c2b8b66.js";
23
24
  import "@mui/lab";
24
25
  import "../../mui_extended/Popover/index.9f35d0eb.js";
25
- import "../../mui_extended/MenuActions/index.ba1da3b3.js";
26
- import "../../mui_extended/Pager/index.67bda2c5.js";
26
+ import "../../mui_extended/MenuActions/index.f5b1c022.js";
27
+ import "../../mui_extended/Pager/index.435af0df.js";
27
28
  import "../../mui_extended/Tab/index.9e2f6e34.js";
28
29
  import "../../mui_extended/Tooltip/index.5a795dcd.js";
29
30
  const UploadImageRoot = styled("div")(({
@@ -17,6 +17,7 @@ export * from './HelperText';
17
17
  export * from './CommonActions/';
18
18
  export * from './CommonActions/dictionary';
19
19
  export * from './DraggableWindow';
20
+ export * from './GridLayout';
20
21
  export * from './Icon';
21
22
  export * from './LanguagePopover';
22
23
  export * from './LinearProgressIndeterminate';
@@ -1,23 +1,24 @@
1
1
  import { useEnvironment } from "@m4l/core";
2
2
  import "react";
3
- import { u as useModal } from "../../hooks/useModal/index.7b7d26ba.js";
4
- import { m as modalUtilityClasses } from "./index.1b25b61d.js";
5
- import { I as Icon } from "../Icon/index.9dae8337.js";
3
+ import { u as useModal } from "../../hooks/useModal/index.de522a10.js";
4
+ import { m as modalUtilityClasses } from "./index.a0978193.js";
5
+ import { I as Icon } from "../Icon/index.ecb63e65.js";
6
6
  import "@mui/material";
7
- import { I as IconButton } from "../mui_extended/IconButton/index.1a9d4fa5.js";
8
- import "../mui_extended/Accordion/index.3faafd8b.js";
7
+ import { I as IconButton } from "../mui_extended/IconButton/index.fc5b7c2d.js";
8
+ import "../mui_extended/Accordion/index.12b1339a.js";
9
9
  import "../mui_extended/Typography/index.443590d6.js";
10
10
  import { jsxs, jsx } from "react/jsx-runtime";
11
11
  import clsx from "clsx";
12
12
  import "../mui_extended/Avatar/index.75e6ed57.js";
13
13
  import "react-router-dom";
14
14
  import "@mui/material/Button";
15
- import "../mui_extended/Button/index.fdb5dcbd.js";
15
+ import "../mui_extended/Button/index.4288f9fc.js";
16
+ import "../mui_extended/Badge/index.8c2b8b66.js";
16
17
  import "../Image/index.c18ebf5a.js";
17
18
  import "@mui/lab";
18
19
  import "../mui_extended/Popover/index.9f35d0eb.js";
19
- import "../mui_extended/MenuActions/index.ba1da3b3.js";
20
- import "../mui_extended/Pager/index.67bda2c5.js";
20
+ import "../mui_extended/MenuActions/index.f5b1c022.js";
21
+ import "../mui_extended/Pager/index.435af0df.js";
21
22
  import "../mui_extended/Tab/index.9e2f6e34.js";
22
23
  import "../mui_extended/Tooltip/index.5a795dcd.js";
23
24
  const Header = (props) => {