@m4l/components 0.1.69 → 0.1.70
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.
- package/@types/export.d.ts +7 -1
- package/components/CommonActions/components/ActionCancel/{index.e83053da.js → index.9d521b2a.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.ca378b0a.js → index.4756457f.js} +25 -13
- package/components/CommonActions/components/ActionFormIntro/{index.fa2107df.js → index.40321b1b.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.b8d5c8ee.js → index.1ba5b02b.js} +3 -3
- package/components/CommonActions/components/Actions/{index.1b2a0921.js → index.154d7cb6.js} +23 -13
- package/components/DataGrid/{index.75ea6038.js → index.2f4a0e64.js} +21 -19
- package/components/DynamicFilter/{index.aaeea668.js → index.789ab474.js} +36 -40
- package/components/HelperText/{index.742d547d.js → index.a69e9509.js} +8 -8
- package/components/Icon/{index.952f0635.js → index.caaed284.js} +2 -2
- package/components/Image/{index.f30f79f0.js → index.82a6cd46.js} +1 -1
- package/components/LanguagePopover/{index.526e544e.js → index.5af28b9e.js} +9 -9
- package/components/ModalDialog/{index.4d663d0a.js → index.cdfd1ae8.js} +5 -5
- package/components/NavLink/{index.92008184.js → index.251fcf0d.js} +9 -9
- package/components/NoItemSelected/{index.6f2952ab.js → index.3b9d16e3.js} +1 -1
- package/components/ObjectLogs/{index.d1eee18b.js → index.57ea68b3.js} +17 -15
- package/components/PaperForm/{index.e9db704b.js → index.d2d492ea.js} +1 -1
- package/components/Period/{index.3ff6f53b.js → index.fbf074d3.js} +24 -14
- package/components/Resizeable/{index.ff97422e.js → index.aafda79e.js} +1 -1
- package/components/SideBar/{index.365f64f0.js → index.3bc6a634.js} +10 -24
- package/components/areas/components/AreasAdmin/classes/types.d.ts +1 -0
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/types.d.ts +1 -0
- package/components/areas/components/AreasViewer/classes/types.d.ts +1 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/index.d.ts +2 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/GridLayout/index.d.ts +2 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/GridLayout/types.d.ts +3 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/InnerForHooks/index.d.ts +2 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/InnerForHooks/types.d.ts +3 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/PanelWindows/index.d.ts +2 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/PanelWindows/types.d.ts +3 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/styles.d.ts +2 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Component/index.d.ts +4 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Component/types.d.ts +9 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/helper.d.ts +3 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/index.d.ts +9 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/MainActions/index.d.ts +6 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/index.d.ts +4 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/{InnerForHooks/subcomponents/MicroFrontend → MicroFrontend}/subcomponents/MFLoader/index.d.ts +2 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/types.d.ts +8 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/types.d.ts +8 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/types.d.ts +2 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/types.d.ts +4 -0
- package/components/areas/components/{index.ffb147c7.js → index.359c2b18.js} +443 -1069
- package/components/areas/components/index.d.ts +1 -1
- package/components/areas/contexts/AreasContext/helper.d.ts +59 -0
- package/components/areas/contexts/AreasContext/index.de8b4e78.js +1015 -0
- package/components/areas/contexts/AreasContext/store.d.ts +1 -2
- package/components/areas/contexts/AreasContext/types.d.ts +86 -13
- package/components/areas/contexts/DynamicMFParmsContext/index.1607c78e.js +42 -0
- package/components/areas/contexts/DynamicMFParmsContext/index.d.ts +8 -0
- package/components/areas/{components/AreasViewer/subcomponents/Area/subcomponents/Window/contexts → contexts}/DynamicMFParmsContext/store.d.ts +3 -9
- package/components/areas/contexts/WindowToolsMFContext/index.8f3e2a04.js +20 -0
- package/components/areas/{components/AreasViewer/subcomponents/Area/subcomponents/Window/contexts → contexts}/WindowToolsMFContext/types.d.ts +3 -2
- package/components/areas/contexts/index.771827bb.js +2 -0
- package/components/areas/contexts/index.d.ts +4 -4
- package/components/areas/dictionary.d.ts +1 -0
- package/components/areas/hooks/index.ae8d8631.js +13 -0
- package/components/areas/hooks/useArea/index.2adbe001.js +12 -0
- package/components/areas/hooks/useDynamicMFParameters/index.d.ts +3 -9
- package/components/areas/hooks/useDynamicMFParameters/{index.7ce7176f.js → index.e52c5392.js} +1 -1
- package/components/areas/hooks/useWindowToolsMF/index.d.ts +1 -1
- package/components/areas/icons.d.ts +3 -0
- package/components/areas/{index.20cbd7b7.js → index.8a58bcbf.js} +14 -8
- package/components/areas/types.d.ts +32 -23
- package/components/formatters/BooleanFormatter/{index.d5e21bdd.js → index.7eb0498c.js} +1 -1
- package/components/formatters/{index.650243bb.js → index.f6b9ed01.js} +2 -2
- package/components/hook-form/RHFAutocomplete/{index.21377a2c.js → index.09c400c3.js} +10 -10
- package/components/hook-form/RHFAutocompleteAsync/{index.8c7e0842.js → index.e8acff04.js} +2 -2
- package/components/hook-form/RHFCheckbox/{index.83902d07.js → index.70310f35.js} +3 -3
- package/components/hook-form/RHFDateTime/{index.166250d8.js → index.7b815072.js} +9 -9
- package/components/hook-form/RHFPeriod/{index.61baf76f.js → index.3c7d393c.js} +2 -2
- package/components/hook-form/RHFTextField/{index.55687a39.js → index.d4c39859.js} +6 -7
- package/components/hook-form/RHFUpload/{index.eb4d0dac.js → index.31044674.js} +1 -1
- package/components/modal/WindowBase/subcomponents/Header/types.d.ts +1 -1
- package/components/modal/WindowBase/types.d.ts +1 -0
- package/components/modal/{WindowBase.7ce0b21e.js → WindowBase.6a40a945.js} +28 -21
- package/components/modal/{WindowConfirm.7ae1326f.js → WindowConfirm.e21763cb.js} +17 -15
- package/components/modal/index.438777d9.js +34 -0
- package/components/mui_extended/Accordion/{index.51feece8.js → index.437bb3f8.js} +2 -2
- package/components/mui_extended/Button/{index.b34c8b68.js → index.f8ce9ccd.js} +3 -3
- package/components/mui_extended/IconButton/{index.917f0d3c.js → index.57824447.js} +1 -3
- package/components/mui_extended/MenuActions/{index.651dec44.js → index.37043326.js} +2 -2
- package/components/mui_extended/Pager/{index.e0663072.js → index.eeed3bd5.js} +1 -1
- package/components/mui_extended/Typography/{index.79e2b06f.js → index.b3c6e71c.js} +1 -1
- package/components/mui_extended/index.dacbb059.js +19 -0
- package/contexts/ModalContext/{index.76d5ccee.js → index.8e3cd7a8.js} +1 -1
- package/contexts/index.d.ts +1 -1
- package/hooks/useModal/{index.043e419b.js → index.d590f506.js} +1 -1
- package/index.js +96 -94
- package/package.json +3 -4
- package/{react-draggable.de1aac90.js → react-draggable.0d64c8b1.js} +1 -1
- package/{react-resizable.e0470767.js → react-resizable.8307e056.js} +2 -2
- package/utils/{index.b5c62ef0.js → index.a2312a73.js} +1 -1
- package/{vendor.6a33c6d2.js → vendor.8edaef93.js} +47 -45
- package/components/areas/components/AreasViewer/subcomponents/Area/contexts/AreaContext/helper.d.ts +0 -39
- package/components/areas/components/AreasViewer/subcomponents/Area/contexts/AreaContext/index.d.ts +0 -20
- package/components/areas/components/AreasViewer/subcomponents/Area/contexts/AreaContext/store.d.ts +0 -11
- package/components/areas/components/AreasViewer/subcomponents/Area/contexts/AreaContext/types.d.ts +0 -82
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/contexts/DynamicMFParmsContext/index.d.ts +0 -14
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/contexts/WindowContext/helper.d.ts +0 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/contexts/WindowContext/index.d.ts +0 -13
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/contexts/WindowContext/store.d.ts +0 -36
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/contexts/WindowContext/types.d.ts +0 -5
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/InnerForHooks/index.d.ts +0 -4
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/InnerForHooks/subcomponents/Component/index.d.ts +0 -8
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/InnerForHooks/subcomponents/Header/helper.d.ts +0 -3
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/InnerForHooks/subcomponents/Header/index.d.ts +0 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/InnerForHooks/subcomponents/Header/subcomponents/MainActions/index.d.ts +0 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/InnerForHooks/subcomponents/MicroFrontend/index.d.ts +0 -4
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/InnerForHooks/subcomponents/MicroFrontend/types.d.ts +0 -8
- package/components/areas/contexts/AreasContext/index.7c12b512.js +0 -230
- package/components/areas/contexts/index.1a823ffb.js +0 -2
- package/components/areas/hooks/index.d09ea7de.js +0 -26
- package/components/areas/hooks/useArea/index.3a0d4b8c.js +0 -34
- package/components/areas/hooks/useArea/index.d.ts +0 -11
- package/components/areas/hooks/useWindow/index.d.ts +0 -11
- package/components/modal/index.d6dcd1b1.js +0 -24
- package/components/mui_extended/index.8b30e8c8.js +0 -19
- /package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/{InnerForHooks/subcomponents/Header → Header}/skeleton.d.ts +0 -0
- /package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/{InnerForHooks/subcomponents/Header → Header}/styles.d.ts +0 -0
- /package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/{InnerForHooks/subcomponents/MicroFrontend → MicroFrontend}/subcomponents/MFLoader/subcomponents/LoadingMF/index.d.ts +0 -0
- /package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/{InnerForHooks/subcomponents/MicroFrontend → MicroFrontend}/subcomponents/MFLoader/subcomponents/LoadingMF/styles.d.ts +0 -0
- /package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/{InnerForHooks/subcomponents/MicroFrontend → MicroFrontend}/subcomponents/MFLoader/subcomponents/LoadingMF/subcomponents/NotFound/index.d.ts +0 -0
- /package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/{InnerForHooks/subcomponents/MicroFrontend → MicroFrontend}/subcomponents/MFLoader/subcomponents/LoadingMF/subcomponents/NotFound/styles.d.ts +0 -0
- /package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/{InnerForHooks/subcomponents/MicroFrontend → MicroFrontend}/subcomponents/MFLoader/subcomponents/LoadingMF/subcomponents/NotFound/types.d.ts +0 -0
- /package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/{InnerForHooks/subcomponents/MicroFrontend → MicroFrontend}/subcomponents/MFLoader/subcomponents/LoadingMF/types.d.ts +0 -0
- /package/components/areas/{components/AreasViewer/subcomponents/Area/subcomponents/Window/contexts → contexts}/DynamicMFParmsContext/types.d.ts +0 -0
- /package/components/areas/{components/AreasViewer/subcomponents/Area/subcomponents/Window/contexts → contexts}/WindowToolsMFContext/index.d.ts +0 -0
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { WritableDraft } from 'immer/dist/internal';
|
|
2
1
|
import type { AreasStateWithActions, InitialAreasStoreProps } from './types';
|
|
3
2
|
/**
|
|
4
3
|
* @description Crea el Store, por defecto inicia en estado 'init'
|
|
@@ -10,7 +9,7 @@ export declare const createAreasStore: (initProps: InitialAreasStoreProps) => Om
|
|
|
10
9
|
type: unknown;
|
|
11
10
|
}>(partial: AreasStateWithActions | Partial<AreasStateWithActions> | ((state: AreasStateWithActions) => AreasStateWithActions | Partial<AreasStateWithActions>), replace?: boolean | undefined, action?: A | undefined): void;
|
|
12
11
|
}, "setState"> & {
|
|
13
|
-
setState(nextStateOrUpdater: AreasStateWithActions | Partial<AreasStateWithActions> | ((state: WritableDraft<AreasStateWithActions>) => void), shouldReplace?: boolean | undefined, action?: string | {
|
|
12
|
+
setState(nextStateOrUpdater: AreasStateWithActions | Partial<AreasStateWithActions> | ((state: import("immer/dist/internal").WritableDraft<AreasStateWithActions>) => void), shouldReplace?: boolean | undefined, action?: string | {
|
|
14
13
|
type: unknown;
|
|
15
14
|
} | undefined): void;
|
|
16
15
|
};
|
|
@@ -1,9 +1,41 @@
|
|
|
1
1
|
import { GetLabelType, NetworkProps } from '@m4l/core';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import { AreaType } from '../../types';
|
|
3
|
+
import { CookieType, HashWindowsByLayouts, HashWindowsByModals, HashWindowsByPopups, ModalStateProps, NewLayoutProps, NewModalProps, NewPopUpProps, NewWindowProps, WinType, WindowStateProps } from '../../types';
|
|
5
4
|
import { ViwerClasses } from '../../components/AreasViewer/classes';
|
|
6
5
|
import { AdminClasses } from '../../components/AreasAdmin/classes';
|
|
6
|
+
import { Layout, Layouts } from 'react-grid-layout';
|
|
7
|
+
import { ModuleAction } from '../..';
|
|
8
|
+
import { DebouncedFunc } from 'lodash';
|
|
9
|
+
export declare type WinLayout = Layout & {
|
|
10
|
+
winType: WinType;
|
|
11
|
+
};
|
|
12
|
+
export declare type Breakpoints = {
|
|
13
|
+
[P: string]: number;
|
|
14
|
+
};
|
|
15
|
+
export declare type Cols = {
|
|
16
|
+
[P: string]: number;
|
|
17
|
+
};
|
|
18
|
+
export declare type ViewAreaMode = 'multiple' | 'single';
|
|
19
|
+
export declare type AreaStatus = 'init' | 'loading' | 'load' | 'loaded' | 'error';
|
|
20
|
+
export interface Area {
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
status: AreaStatus;
|
|
24
|
+
zPopUpIndex: number;
|
|
25
|
+
loadWindows: boolean;
|
|
26
|
+
breakPointsLayouts: Layouts;
|
|
27
|
+
beforeMaximizebreakpointsLayouts: Layouts;
|
|
28
|
+
windowsLayouts: Layout[];
|
|
29
|
+
windowsPopUps: string[];
|
|
30
|
+
hashWindowsPopups: HashWindowsByPopups;
|
|
31
|
+
hashWindowsLayouts: HashWindowsByLayouts;
|
|
32
|
+
currentLayoutId: string;
|
|
33
|
+
currentPopUpId: string;
|
|
34
|
+
breakpoints: Breakpoints;
|
|
35
|
+
cols: Cols;
|
|
36
|
+
viewMode: ViewAreaMode;
|
|
37
|
+
singleId?: string;
|
|
38
|
+
}
|
|
7
39
|
/**
|
|
8
40
|
* @description estado de carga de las areaS de trabajo.
|
|
9
41
|
*/
|
|
@@ -42,9 +74,13 @@ export interface AreasState {
|
|
|
42
74
|
*/
|
|
43
75
|
loadCookiesFromNetwork: boolean;
|
|
44
76
|
/**
|
|
45
|
-
* "
|
|
77
|
+
* "currentAreaId" Area de trabajo seleccionada
|
|
46
78
|
*/
|
|
47
|
-
|
|
79
|
+
currentAreaId: string;
|
|
80
|
+
/**
|
|
81
|
+
* "currentModuleId" Módulo seleccionado
|
|
82
|
+
*/
|
|
83
|
+
currentModuleId: string;
|
|
48
84
|
/**
|
|
49
85
|
* "ownerState" enfocado al funcionamiento de las clases
|
|
50
86
|
*/
|
|
@@ -57,10 +93,24 @@ export interface AreasState {
|
|
|
57
93
|
* "adminClasses" enfocado al funcionamiento de las clases a nivel de Admin
|
|
58
94
|
*/
|
|
59
95
|
adminClasses: AdminClasses;
|
|
96
|
+
/**
|
|
97
|
+
* "windowsModals" id de ventans modales abiertas
|
|
98
|
+
*/
|
|
99
|
+
windowsModals: string[];
|
|
100
|
+
hashWindowsModals: HashWindowsByModals;
|
|
101
|
+
windowModal?: ModalStateProps;
|
|
60
102
|
/**
|
|
61
103
|
* "areas" Areas de trabajo
|
|
62
104
|
*/
|
|
63
|
-
areas:
|
|
105
|
+
areas: Area[];
|
|
106
|
+
/**
|
|
107
|
+
* "hashAreas" Areas de trabajo
|
|
108
|
+
*/
|
|
109
|
+
hashAreas: Record<string, Area>;
|
|
110
|
+
/**
|
|
111
|
+
* "hashWindows" Todas las ventanas de todas las áreas cagadas
|
|
112
|
+
*/
|
|
113
|
+
hashWindows: Record<string, WindowStateProps>;
|
|
64
114
|
/**
|
|
65
115
|
* "networkOperation" funcion que usará el Store para enviar las peticiones de red
|
|
66
116
|
*/
|
|
@@ -71,7 +121,7 @@ export interface AreasState {
|
|
|
71
121
|
getLabel: GetLabelType;
|
|
72
122
|
}
|
|
73
123
|
export interface AreasStateWithActions extends AreasState {
|
|
74
|
-
|
|
124
|
+
areasActions: {
|
|
75
125
|
/**
|
|
76
126
|
* @description inicializa el componente, si la función onLoad está seteada, se invoca
|
|
77
127
|
*/
|
|
@@ -93,8 +143,6 @@ export interface AreasStateWithActions extends AreasState {
|
|
|
93
143
|
* @returns void
|
|
94
144
|
*/
|
|
95
145
|
deleteArea: (areaId: string) => void;
|
|
96
|
-
};
|
|
97
|
-
internalActions: {
|
|
98
146
|
/**
|
|
99
147
|
* @description Actualiza la variable de estado "getLabel"
|
|
100
148
|
* @param newHandler handle o función que va a traducir las etiquetas, esto es necesario debido que getLabel de useModuleDictionary
|
|
@@ -102,11 +150,6 @@ export interface AreasStateWithActions extends AreasState {
|
|
|
102
150
|
* @returns void
|
|
103
151
|
*/
|
|
104
152
|
setHandlerGetLabel: (newHandler: GetLabelType) => void;
|
|
105
|
-
/**
|
|
106
|
-
* @description conecta el store de una Area con el Store de AreaS, para poder lanzar ventanas.
|
|
107
|
-
* @returns void
|
|
108
|
-
*/
|
|
109
|
-
setAreaLink: (areaId: string, store: AreaStore) => void;
|
|
110
153
|
/**
|
|
111
154
|
* @description Modifica los estados que se actualizan externamente al Store
|
|
112
155
|
* @param newIsMobile
|
|
@@ -114,6 +157,35 @@ export interface AreasStateWithActions extends AreasState {
|
|
|
114
157
|
*/
|
|
115
158
|
setExternalState: (newExternalState: ExternalOwnerState) => void;
|
|
116
159
|
};
|
|
160
|
+
areaActions: {
|
|
161
|
+
addWindow: (newWindow: NewWindowProps) => void;
|
|
162
|
+
closeWindowModal: (removeModalId: string) => void;
|
|
163
|
+
addWindowModal: (areaId: string, windowId: string, newWindowModalProps: NewModalProps) => void;
|
|
164
|
+
closeWindowPopUp: (areaId: string, removePopUpId: string) => void;
|
|
165
|
+
selectWindowPopUp: (areaId: string, popUpId: string) => void;
|
|
166
|
+
addWindowPopUp: (areaId: string, windowId: string, newWindowPopupProps: NewPopUpProps) => void;
|
|
167
|
+
closeWindowLayout: (areaId: string, removeLayoutId: string) => void;
|
|
168
|
+
selectWindowLayout: (areaId: string, layoutId: string) => void;
|
|
169
|
+
addWindowLayout: (areaId: string, windowId: string, newWindow: NewLayoutProps) => void;
|
|
170
|
+
saveLayouts: (areaId: string) => void;
|
|
171
|
+
onBreakpointsLayoutsChange: (areaId: string, currentLayouts: Layout[], newAllLayouts: Layouts) => void;
|
|
172
|
+
bouncedSaveBreakpointsLayouts: DebouncedFunc<(areaId: string) => void>;
|
|
173
|
+
maximizeLayout: (areaId: string, layoutId?: string) => void;
|
|
174
|
+
resizeMaximixedLayout: (areaId: string) => void;
|
|
175
|
+
normalizeLayouts: (areaId: string) => void;
|
|
176
|
+
loadWindowsFromApi: (areaId: string) => void;
|
|
177
|
+
};
|
|
178
|
+
windowActions: {
|
|
179
|
+
setActions: (windowId: string, newActions: ModuleAction[], version?: string) => void;
|
|
180
|
+
getCookie: (windowId: string, id: string) => Record<string, any> | undefined;
|
|
181
|
+
getCookies: (windowId: string, type: CookieType) => Record<string, any>;
|
|
182
|
+
setCookie: (windowId: string, id: string, type: CookieType, cookie: Record<string, any>) => void;
|
|
183
|
+
close: (windowId: string) => void;
|
|
184
|
+
setLoading: (windowId: string, isLoading: boolean) => void;
|
|
185
|
+
loadCookiesFromApi: (windowId: string) => void;
|
|
186
|
+
saveModuleCookies: (windowId: string) => void;
|
|
187
|
+
resetModuleCookies: (windowId: string) => void;
|
|
188
|
+
};
|
|
117
189
|
}
|
|
118
190
|
export declare type DefaultAreasStoreProps = Omit<AreasState, 'currentArea'>;
|
|
119
191
|
export declare type InitialAreasStoreProps = Pick<AreasState, 'networkOperation' | 'loadAreasFromNetwork' | 'loadCookiesFromNetwork' | 'getLabel' | 'ownerState'> & Partial<DefaultAreasStoreProps>;
|
|
@@ -121,5 +193,6 @@ export interface AreasProviderProps {
|
|
|
121
193
|
children: ReactNode;
|
|
122
194
|
loadAreasFromNetwork: boolean;
|
|
123
195
|
loadCookiesFromNetwork: boolean;
|
|
196
|
+
onSelectLayout?: (moduleId: string) => void;
|
|
124
197
|
onLoad?: () => void;
|
|
125
198
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { createStore } from "zustand";
|
|
2
|
+
import { immer } from "zustand/middleware/immer";
|
|
3
|
+
import React__default, { createContext } from "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
const createDynamicMFStore = (initProps) => {
|
|
6
|
+
const startProps = {
|
|
7
|
+
...initProps
|
|
8
|
+
};
|
|
9
|
+
return createStore(
|
|
10
|
+
immer((set, _get) => ({
|
|
11
|
+
...startProps,
|
|
12
|
+
actions: {
|
|
13
|
+
changeData: (newDynamicMFState) => {
|
|
14
|
+
set((state) => {
|
|
15
|
+
state.dynamicMFParameters = {
|
|
16
|
+
...state.dynamicMFParameters,
|
|
17
|
+
...newDynamicMFState
|
|
18
|
+
};
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}))
|
|
23
|
+
);
|
|
24
|
+
};
|
|
25
|
+
const DynamicMFParmsContext = createContext(null);
|
|
26
|
+
function DynamicMFParmsProvider(props) {
|
|
27
|
+
const {
|
|
28
|
+
children,
|
|
29
|
+
store
|
|
30
|
+
} = props;
|
|
31
|
+
return /* @__PURE__ */ jsx(DynamicMFParmsContext.Provider, {
|
|
32
|
+
value: store,
|
|
33
|
+
children
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
const MemonizedDynamicMFParmsProvider = React__default.memo(DynamicMFParmsProvider);
|
|
37
|
+
export {
|
|
38
|
+
DynamicMFParmsProvider as D,
|
|
39
|
+
MemonizedDynamicMFParmsProvider as M,
|
|
40
|
+
DynamicMFParmsContext as a,
|
|
41
|
+
createDynamicMFStore as c
|
|
42
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DynamicMFParmsProviderProps } from './types';
|
|
3
|
+
declare const DynamicMFParmsContext: React.Context<(Omit<import("zustand").StoreApi<import("./store").DynamicMFStateWithActions>, "setState"> & {
|
|
4
|
+
setState(nextStateOrUpdater: import("./store").DynamicMFStateWithActions | Partial<import("./store").DynamicMFStateWithActions> | ((state: import("immer/dist/internal").WritableDraft<import("./store").DynamicMFStateWithActions>) => void), shouldReplace?: boolean | undefined): void;
|
|
5
|
+
}) | null>;
|
|
6
|
+
declare function DynamicMFParmsProvider(props: DynamicMFParmsProviderProps): React.JSX.Element;
|
|
7
|
+
declare const MemonizedDynamicMFParmsProvider: React.MemoExoticComponent<typeof DynamicMFParmsProvider>;
|
|
8
|
+
export { DynamicMFParmsProvider, DynamicMFParmsContext, MemonizedDynamicMFParmsProvider };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DynamicMFParameters } from '
|
|
1
|
+
import { DynamicMFParameters } from '..';
|
|
2
2
|
export interface DynamicMFState {
|
|
3
3
|
dynamicMFParameters: DynamicMFParameters;
|
|
4
4
|
windowId: string;
|
|
@@ -8,13 +8,7 @@ export interface DynamicMFStateWithActions extends DynamicMFState {
|
|
|
8
8
|
changeData: (newDynamicMFState: DynamicMFParameters) => void;
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
|
-
export declare const createDynamicMFStore: (initProps: DynamicMFState) => Omit<
|
|
12
|
-
setState<
|
|
13
|
-
type: unknown;
|
|
14
|
-
}>(partial: DynamicMFStateWithActions | Partial<DynamicMFStateWithActions> | ((state: DynamicMFStateWithActions) => DynamicMFStateWithActions | Partial<DynamicMFStateWithActions>), replace?: boolean | undefined, action?: A | undefined): void;
|
|
15
|
-
}, "setState"> & {
|
|
16
|
-
setState(nextStateOrUpdater: DynamicMFStateWithActions | Partial<DynamicMFStateWithActions> | ((state: import("immer/dist/internal").WritableDraft<DynamicMFStateWithActions>) => void), shouldReplace?: boolean | undefined, action?: string | {
|
|
17
|
-
type: unknown;
|
|
18
|
-
} | undefined): void;
|
|
11
|
+
export declare const createDynamicMFStore: (initProps: DynamicMFState) => Omit<import("zustand").StoreApi<DynamicMFStateWithActions>, "setState"> & {
|
|
12
|
+
setState(nextStateOrUpdater: DynamicMFStateWithActions | Partial<DynamicMFStateWithActions> | ((state: import("immer/dist/internal").WritableDraft<DynamicMFStateWithActions>) => void), shouldReplace?: boolean | undefined): void;
|
|
19
13
|
};
|
|
20
14
|
export declare type DynamicMFStore = ReturnType<typeof createDynamicMFStore>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React__default, { createContext } from "react";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
const WindowToolsMFContext = createContext(null);
|
|
4
|
+
function WindowToolsMFProvider(props) {
|
|
5
|
+
const {
|
|
6
|
+
children,
|
|
7
|
+
...other
|
|
8
|
+
} = props;
|
|
9
|
+
return /* @__PURE__ */ jsx(WindowToolsMFContext.Provider, {
|
|
10
|
+
value: {
|
|
11
|
+
...other
|
|
12
|
+
},
|
|
13
|
+
children
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
React__default.memo(WindowToolsMFProvider);
|
|
17
|
+
export {
|
|
18
|
+
WindowToolsMFProvider as W,
|
|
19
|
+
WindowToolsMFContext as a
|
|
20
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { CookieType } from '../../types';
|
|
3
|
+
import { MenuAction } from '../../../mui_extended';
|
|
4
4
|
export declare type WindowActionType = 'main' | 'allways' | 'normal';
|
|
5
5
|
export interface ModuleAction extends MenuAction {
|
|
6
6
|
visibility: WindowActionType;
|
|
@@ -14,6 +14,7 @@ export interface WindowToolsMF {
|
|
|
14
14
|
getCookies: (type: CookieType) => Record<string, any>;
|
|
15
15
|
setActions: (newActions: ModuleAction[], version?: string) => void;
|
|
16
16
|
setCookie: (id: string, type: CookieType, cookie: Record<string, any>) => void;
|
|
17
|
+
setLoading: (isLoading: boolean) => void;
|
|
17
18
|
close: () => void;
|
|
18
19
|
}
|
|
19
20
|
export interface WindowToolsMFProviderProps extends WindowToolsMF {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './AreasContext';
|
|
2
|
-
export type { DynamicMFParameters } from '
|
|
3
|
-
export type { DynamicMFStore } from '
|
|
4
|
-
export { WindowToolsMFProvider, WindowToolsMFContext } from '
|
|
5
|
-
export type { WindowToolsMF, ModuleAction } from '
|
|
2
|
+
export type { DynamicMFParameters } from './DynamicMFParmsContext/types';
|
|
3
|
+
export type { DynamicMFStore } from './DynamicMFParmsContext/store';
|
|
4
|
+
export { WindowToolsMFProvider, WindowToolsMFContext } from './WindowToolsMFContext';
|
|
5
|
+
export type { WindowToolsMF, ModuleAction } from './WindowToolsMFContext/types';
|
|
@@ -4,6 +4,7 @@ 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";
|
|
7
8
|
};
|
|
8
9
|
export declare type TypeDictionary = typeof DICCTIONARY;
|
|
9
10
|
export declare const getAreasDictionary: (key: keyof TypeDictionary) => string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { useContext } from "react";
|
|
2
|
+
import { a as WindowToolsMFContext } from "../contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
3
|
+
import "zustand";
|
|
4
|
+
import "../contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
5
|
+
const useWindowToolsMF = () => {
|
|
6
|
+
const context = useContext(WindowToolsMFContext);
|
|
7
|
+
if (!context)
|
|
8
|
+
throw new Error("useWindowToolsMF context must be use inside WindowToolsMFContext");
|
|
9
|
+
return context;
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
useWindowToolsMF as u
|
|
13
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { useContext } from "react";
|
|
2
|
+
import { useStore } from "zustand";
|
|
3
|
+
import { A as AreasContext } from "../../contexts/AreasContext/index.de8b4e78.js";
|
|
4
|
+
function useAreasStore(selector, equalityFn) {
|
|
5
|
+
const context = useContext(AreasContext);
|
|
6
|
+
if (!context)
|
|
7
|
+
throw new Error("useAreasStore context must be use inside AreasContext");
|
|
8
|
+
return useStore(context, selector, equalityFn);
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
useAreasStore as u
|
|
12
|
+
};
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
import { DynamicMFState } from '../../
|
|
2
|
-
export declare const useDynamicMFParameters: () => Omit<
|
|
3
|
-
setState<
|
|
4
|
-
type: unknown;
|
|
5
|
-
}>(partial: import("../../components/AreasViewer/subcomponents/Area/subcomponents/Window/contexts/DynamicMFParmsContext/store").DynamicMFStateWithActions | Partial<import("../../components/AreasViewer/subcomponents/Area/subcomponents/Window/contexts/DynamicMFParmsContext/store").DynamicMFStateWithActions> | ((state: import("../../components/AreasViewer/subcomponents/Area/subcomponents/Window/contexts/DynamicMFParmsContext/store").DynamicMFStateWithActions) => import("../../components/AreasViewer/subcomponents/Area/subcomponents/Window/contexts/DynamicMFParmsContext/store").DynamicMFStateWithActions | Partial<import("../../components/AreasViewer/subcomponents/Area/subcomponents/Window/contexts/DynamicMFParmsContext/store").DynamicMFStateWithActions>), replace?: boolean | undefined, action?: A | undefined): void;
|
|
6
|
-
}, "setState"> & {
|
|
7
|
-
setState(nextStateOrUpdater: import("../../components/AreasViewer/subcomponents/Area/subcomponents/Window/contexts/DynamicMFParmsContext/store").DynamicMFStateWithActions | Partial<import("../../components/AreasViewer/subcomponents/Area/subcomponents/Window/contexts/DynamicMFParmsContext/store").DynamicMFStateWithActions> | ((state: import("immer/dist/internal").WritableDraft<import("../../components/AreasViewer/subcomponents/Area/subcomponents/Window/contexts/DynamicMFParmsContext/store").DynamicMFStateWithActions>) => void), shouldReplace?: boolean | undefined, action?: string | {
|
|
8
|
-
type: unknown;
|
|
9
|
-
} | undefined): void;
|
|
1
|
+
import { DynamicMFState } from '../../contexts/DynamicMFParmsContext/store';
|
|
2
|
+
export declare const useDynamicMFParameters: () => Omit<import("zustand").StoreApi<import("../../contexts/DynamicMFParmsContext/store").DynamicMFStateWithActions>, "setState"> & {
|
|
3
|
+
setState(nextStateOrUpdater: import("../../contexts/DynamicMFParmsContext/store").DynamicMFStateWithActions | Partial<import("../../contexts/DynamicMFParmsContext/store").DynamicMFStateWithActions> | ((state: import("immer/dist/internal").WritableDraft<import("../../contexts/DynamicMFParmsContext/store").DynamicMFStateWithActions>) => void), shouldReplace?: boolean | undefined): void;
|
|
10
4
|
};
|
|
11
5
|
export declare function useDynamicMFParametersStore<T>(selector: (state: DynamicMFState) => T, equalityFn?: (left: T, right: T) => boolean): T;
|
package/components/areas/hooks/useDynamicMFParameters/{index.7ce7176f.js → index.e52c5392.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
2
|
import { useStore } from "zustand";
|
|
3
|
-
import {
|
|
3
|
+
import { a as DynamicMFParmsContext } from "../../contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
4
4
|
function useDynamicMFParametersStore(selector, equalityFn) {
|
|
5
5
|
const store = useContext(DynamicMFParmsContext);
|
|
6
6
|
if (!store)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useWindowToolsMF: () => import("../../
|
|
1
|
+
export declare const useWindowToolsMF: () => import("../../contexts/WindowToolsMFContext/types").WindowToolsMFContextProps;
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import "react";
|
|
2
2
|
import "@m4l/core";
|
|
3
3
|
import "@mui/material";
|
|
4
|
-
import "../Icon/index.
|
|
4
|
+
import "../Icon/index.caaed284.js";
|
|
5
5
|
import "react/jsx-runtime";
|
|
6
|
-
import "../mui_extended/IconButton/index.
|
|
6
|
+
import "../mui_extended/IconButton/index.57824447.js";
|
|
7
7
|
import "clsx";
|
|
8
8
|
import "zustand";
|
|
9
|
-
import "./contexts/AreasContext/index.
|
|
10
|
-
import "./components/index.
|
|
9
|
+
import "./contexts/AreasContext/index.de8b4e78.js";
|
|
10
|
+
import "./components/index.359c2b18.js";
|
|
11
11
|
import "zustand/shallow";
|
|
12
|
+
import "./contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
13
|
+
import "./contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
14
|
+
const AREAS_VIEWER_CLASS_NAME = "M4LAreasViewer";
|
|
15
|
+
const AREAS_ADMIN_CLASS_NAME = "M4LAreasAdmin";
|
|
12
16
|
const AREAS_DICTIONARY_ID = "areas";
|
|
13
17
|
function getAreasComponentsDictionary() {
|
|
14
18
|
return [AREAS_DICTIONARY_ID];
|
|
@@ -16,21 +20,23 @@ function getAreasComponentsDictionary() {
|
|
|
16
20
|
const LABEL_FILTER_BUTTON = "filter_tooltip";
|
|
17
21
|
const DICCTIONARY = {
|
|
18
22
|
label_new_area: "label_new_area",
|
|
19
|
-
label_persist_module_cookies: "label_persist_module_cookies"
|
|
23
|
+
label_persist_module_cookies: "label_persist_module_cookies",
|
|
24
|
+
label_reset_module_cookies: "label_reset_module_cookies"
|
|
20
25
|
};
|
|
21
26
|
const getAreasDictionary = (key) => {
|
|
22
27
|
return `${AREAS_DICTIONARY_ID}.${key}`;
|
|
23
28
|
};
|
|
24
|
-
const AREAS_VIEWER_CLASS_NAME = "M4LAreasViewer";
|
|
25
|
-
const AREAS_ADMIN_CLASS_NAME = "M4LAreasAdmin";
|
|
26
29
|
const ICONS = {
|
|
27
30
|
CLOSE: "close.svg",
|
|
28
31
|
MAXIMIZE: "maximize.svg",
|
|
29
32
|
NORMALIZE: "normalize.svg",
|
|
33
|
+
RESET_COOKIES: "reset_cookies.svg",
|
|
34
|
+
SAVE_COOKIES: "save_cookies.svg",
|
|
30
35
|
DELETE_AREA: "delete_area.svg",
|
|
31
36
|
ADD_AREA: "add_area.svg",
|
|
32
37
|
LAYERS: "layers.svg",
|
|
33
|
-
EDIT_AREA: "edit_area.svg"
|
|
38
|
+
EDIT_AREA: "edit_area.svg",
|
|
39
|
+
VERSION: "version.svg"
|
|
34
40
|
};
|
|
35
41
|
export {
|
|
36
42
|
AREAS_VIEWER_CLASS_NAME as A,
|
|
@@ -1,30 +1,41 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { DynamicMFParameters } from './
|
|
2
|
+
import { DynamicMFParameters } from './contexts/DynamicMFParmsContext/types';
|
|
3
3
|
import type { Layout } from 'react-grid-layout';
|
|
4
|
-
import {
|
|
5
|
-
import { AreaStore } from './components/AreasViewer/subcomponents/Area/contexts/AreaContext/store';
|
|
4
|
+
import { DynamicMFStore, ModuleAction } from './contexts';
|
|
6
5
|
export declare type WinType = 'microfrontend' | 'component';
|
|
7
6
|
export declare type EmergeType = 'layout' | 'popup' | 'modal';
|
|
7
|
+
export declare type OpenType = 'normal' | 'maximized';
|
|
8
8
|
export interface MFBaseProps {
|
|
9
9
|
debug_port: number;
|
|
10
10
|
cache?: boolean;
|
|
11
11
|
prefix: string;
|
|
12
12
|
}
|
|
13
|
-
export declare type JSX_REACT_NODE = ((props?:
|
|
13
|
+
export declare type JSX_REACT_NODE = ((props?: any) => JSX.Element) | ReactNode;
|
|
14
14
|
export declare type CookieType = 'window' | 'module';
|
|
15
15
|
export declare type Cookies = {
|
|
16
16
|
moduleCookies: Record<string, any>;
|
|
17
17
|
windowCookies: Record<string, any>;
|
|
18
18
|
};
|
|
19
|
+
export declare type WindowStatus = 'init' | 'loading' | 'loaded' | 'error';
|
|
20
|
+
export declare type WindowState = {
|
|
21
|
+
status: WindowStatus;
|
|
22
|
+
dynamicMFStore: DynamicMFStore;
|
|
23
|
+
loading: boolean;
|
|
24
|
+
version?: string;
|
|
25
|
+
moduleActions: ModuleAction[];
|
|
26
|
+
cookies: Cookies;
|
|
27
|
+
};
|
|
19
28
|
export interface WindowBaseProps {
|
|
20
29
|
winType: WinType;
|
|
21
30
|
emergeType: EmergeType;
|
|
31
|
+
openType?: OpenType;
|
|
32
|
+
areaId: string;
|
|
22
33
|
moduleId: string;
|
|
23
34
|
windowId: string;
|
|
24
35
|
dynamicParams: DynamicMFParameters;
|
|
25
36
|
url_icon: string;
|
|
26
37
|
title: string;
|
|
27
|
-
onClose?: (
|
|
38
|
+
onClose?: (windowId: string) => void;
|
|
28
39
|
devCookies?: Cookies;
|
|
29
40
|
}
|
|
30
41
|
export interface LayoutBaseProps extends WindowBaseProps {
|
|
@@ -40,9 +51,10 @@ export interface LayoutComponentProps extends LayoutBaseProps {
|
|
|
40
51
|
component: JSX_REACT_NODE;
|
|
41
52
|
}
|
|
42
53
|
export declare type LayoutProps = LayoutMFProps | LayoutComponentProps;
|
|
43
|
-
export declare type
|
|
54
|
+
export declare type LayoutStateProps = LayoutProps & WindowState;
|
|
55
|
+
export declare type NewLayoutProps = Omit<LayoutMFProps, 'windowId' | 'onClose' | 'areaId'> | Omit<LayoutComponentProps, 'windowId' | 'onClose' | 'areaId'>;
|
|
44
56
|
export interface HashWindowsByLayouts {
|
|
45
|
-
[P: string]:
|
|
57
|
+
[P: string]: LayoutStateProps;
|
|
46
58
|
}
|
|
47
59
|
export declare type Position = {
|
|
48
60
|
x: number;
|
|
@@ -66,15 +78,15 @@ export interface PopUpComponentProps extends PopUpBaseProps {
|
|
|
66
78
|
component: JSX_REACT_NODE;
|
|
67
79
|
}
|
|
68
80
|
export declare type PopUpProps = PopUpMFProps | PopUpComponentProps;
|
|
69
|
-
export declare type
|
|
81
|
+
export declare type PopUpStateProps = PopUpProps & WindowState;
|
|
82
|
+
export declare type NewPopUpProps = Omit<PopUpMFProps, 'windowId' | 'onClose' | 'areaId'> | Omit<PopUpComponentProps, 'windowId' | 'onClose' | 'areaId'>;
|
|
70
83
|
export interface HashWindowsByPopups {
|
|
71
|
-
[P: string]:
|
|
84
|
+
[P: string]: PopUpStateProps;
|
|
72
85
|
}
|
|
73
86
|
export interface ModalBaseProps extends WindowBaseProps {
|
|
74
87
|
emergeType: 'modal';
|
|
75
88
|
zIndex?: number;
|
|
76
|
-
|
|
77
|
-
height?: number;
|
|
89
|
+
windowProps?: Pick<DOMRect, 'width' | 'height'>;
|
|
78
90
|
}
|
|
79
91
|
export interface ModalMFProps extends ModalBaseProps {
|
|
80
92
|
winType: 'microfrontend';
|
|
@@ -85,17 +97,14 @@ export interface ModalComponentProps extends ModalBaseProps {
|
|
|
85
97
|
component: ReactNode;
|
|
86
98
|
}
|
|
87
99
|
export declare type ModalProps = ModalMFProps | ModalComponentProps;
|
|
88
|
-
export declare type
|
|
89
|
-
export declare type
|
|
90
|
-
export
|
|
91
|
-
|
|
92
|
-
export interface AreaType {
|
|
93
|
-
id: string;
|
|
94
|
-
name: string;
|
|
95
|
-
loadWindows?: boolean;
|
|
96
|
-
store?: AreaStore;
|
|
97
|
-
linked?: boolean;
|
|
100
|
+
export declare type ModalStateProps = ModalProps & WindowState;
|
|
101
|
+
export declare type NewModalProps = Omit<ModalMFProps, 'windowId' | 'onClose' | 'areaId'> | Omit<ModalComponentProps, 'windowId' | 'onClose' | 'areaId'>;
|
|
102
|
+
export interface HashWindowsByModals {
|
|
103
|
+
[P: string]: ModalStateProps;
|
|
98
104
|
}
|
|
99
|
-
export
|
|
100
|
-
|
|
105
|
+
export declare type WindowStateProps = (LayoutMFProps & WindowState) | (LayoutComponentProps & WindowState) | (PopUpMFProps & WindowState) | (PopUpComponentProps & WindowState) | (ModalMFProps & WindowState) | (ModalComponentProps & WindowState);
|
|
106
|
+
export interface HashWindows {
|
|
107
|
+
[P: string]: WindowStateProps;
|
|
101
108
|
}
|
|
109
|
+
export declare type NewWindowProps = NewLayoutProps | NewPopUpProps | NewModalProps;
|
|
110
|
+
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.
|
|
3
|
+
import { I as Icon } from "../../Icon/index.caaed284.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,10 +2,10 @@ 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.
|
|
5
|
+
import "../Icon/index.caaed284.js";
|
|
6
6
|
import "@mui/material";
|
|
7
7
|
import "@m4l/graphics";
|
|
8
|
-
import { a as BOOLEAN_FORMATTER_DICTIONARY_KEY, b as BOOLEAN_FORMATTER_DICTIONARY_LABELS } from "./BooleanFormatter/index.
|
|
8
|
+
import { a as BOOLEAN_FORMATTER_DICTIONARY_KEY, b as BOOLEAN_FORMATTER_DICTIONARY_LABELS } from "./BooleanFormatter/index.7eb0498c.js";
|
|
9
9
|
function getFormatConcatenated(values, separator) {
|
|
10
10
|
const returnSymbol = "";
|
|
11
11
|
if (values === null)
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
2
2
|
import { useFormContext, Controller } from "react-hook-form";
|
|
3
3
|
import { styled as styled$1, Skeleton, generateUtilityClasses, generateUtilityClass, Autocomplete, Popper, TextField, CircularProgress } from "@mui/material";
|
|
4
|
-
import { I as Image } from "../../Image/index.
|
|
4
|
+
import { I as Image } from "../../Image/index.82a6cd46.js";
|
|
5
5
|
import { useMemo, useState, useEffect } from "react";
|
|
6
|
-
import { T as TEST_PROP_ID } from "../../../vendor.
|
|
6
|
+
import { T as TEST_PROP_ID } from "../../../vendor.8edaef93.js";
|
|
7
7
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
8
|
-
import { T as Typography } from "../../mui_extended/Typography/index.
|
|
9
|
-
import { H as HelperText } from "../../HelperText/index.
|
|
8
|
+
import { T as Typography } from "../../mui_extended/Typography/index.b3c6e71c.js";
|
|
9
|
+
import { H as HelperText } from "../../HelperText/index.a69e9509.js";
|
|
10
10
|
import { styled } from "@mui/material/styles";
|
|
11
11
|
import { unstable_composeClasses } from "@mui/base";
|
|
12
12
|
import "clsx";
|
|
13
|
-
import "../../Icon/index.
|
|
14
|
-
import "../../mui_extended/IconButton/index.
|
|
15
|
-
import "../../mui_extended/Accordion/index.
|
|
13
|
+
import "../../Icon/index.caaed284.js";
|
|
14
|
+
import "../../mui_extended/IconButton/index.57824447.js";
|
|
15
|
+
import "../../mui_extended/Accordion/index.437bb3f8.js";
|
|
16
16
|
import "../../mui_extended/Avatar/index.fe06afd7.js";
|
|
17
17
|
import "react-router-dom";
|
|
18
18
|
import "@mui/material/Button";
|
|
19
|
-
import "../../mui_extended/Button/index.
|
|
19
|
+
import "../../mui_extended/Button/index.f8ce9ccd.js";
|
|
20
20
|
import "@mui/lab";
|
|
21
21
|
import "../../mui_extended/Popover/index.226f247e.js";
|
|
22
|
-
import "../../mui_extended/MenuActions/index.
|
|
23
|
-
import "../../mui_extended/Pager/index.
|
|
22
|
+
import "../../mui_extended/MenuActions/index.37043326.js";
|
|
23
|
+
import "../../mui_extended/Pager/index.eeed3bd5.js";
|
|
24
24
|
import "../../mui_extended/Tab/index.e0653a0a.js";
|
|
25
25
|
const AutocompleteRoot = styled("div")(({
|
|
26
26
|
theme
|
|
@@ -4,8 +4,8 @@ import debounce from "lodash/debounce";
|
|
|
4
4
|
import { styled } from "@mui/material/styles";
|
|
5
5
|
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
6
6
|
import { unstable_composeClasses } from "@mui/base";
|
|
7
|
-
import { T as TEST_PROP_ID } from "../../../vendor.
|
|
8
|
-
import { R as RHFAutocomplete, g as getRHFAutocompleteComponentsDictionary } from "../RHFAutocomplete/index.
|
|
7
|
+
import { T as TEST_PROP_ID } from "../../../vendor.8edaef93.js";
|
|
8
|
+
import { R as RHFAutocomplete, g as getRHFAutocompleteComponentsDictionary } from "../RHFAutocomplete/index.09c400c3.js";
|
|
9
9
|
import { jsx } from "react/jsx-runtime";
|
|
10
10
|
styled("div")(() => ({
|
|
11
11
|
display: "flex",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { useFormContext, Controller } from "react-hook-form";
|
|
2
2
|
import { styled, Skeleton, generateUtilityClasses, generateUtilityClass, Checkbox } from "@mui/material";
|
|
3
3
|
import { useModuleSkeleton } from "@m4l/core";
|
|
4
|
-
import { T as TEST_PROP_ID } from "../../../vendor.
|
|
4
|
+
import { T as TEST_PROP_ID } from "../../../vendor.8edaef93.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.
|
|
9
|
-
import { T as Typography } from "../../mui_extended/Typography/index.
|
|
8
|
+
import { H as HelperText } from "../../HelperText/index.a69e9509.js";
|
|
9
|
+
import { T as Typography } from "../../mui_extended/Typography/index.b3c6e71c.js";
|
|
10
10
|
const WrapperSkeletonCheckBox = styled("div")(() => ({
|
|
11
11
|
display: "flex",
|
|
12
12
|
justifyContent: "center",
|