@m4l/components 0.1.80 → 0.1.81
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 +4 -2
- package/components/AccountPopover/{index.00d1d15f.js → index.fea740a5.js} +2 -2
- package/components/AppBar/{index.c85b100d.js → index.6bdee075.js} +2 -2
- package/components/CommonActions/components/ActionCancel/{index.1051a117.js → index.6928b5ae.js} +1 -1
- package/components/CommonActions/components/ActionFormCancel/{index.a0d727b2.js → index.28d32483.js} +9 -9
- package/components/CommonActions/components/ActionFormIntro/{index.a20dc88d.js → index.f044e93c.js} +1 -1
- package/components/CommonActions/components/ActionIntro/{index.bfe3256c.js → index.8b1b3afc.js} +1 -1
- package/components/CommonActions/components/Actions/{index.19d67bc6.js → index.265d99c8.js} +7 -7
- package/components/DataGrid/{index.2f175eba.js → index.820e0043.js} +18 -676
- package/components/DataGrid/subcomponents/Actions/index.43325b59.js +618 -0
- package/components/DataGrid/subcomponents/editors/TextEditor/index.91380a55.js +64 -0
- package/components/DynamicFilter/{index.c1f9d560.js → index.2b80238b.js} +20 -20
- package/components/GridLayout/GridLayout.d.ts +1 -0
- package/components/GridLayout/classes/index.d.ts +4 -0
- package/components/GridLayout/classes/types.d.ts +17 -0
- package/components/GridLayout/constants.d.ts +26 -0
- package/components/GridLayout/{index.a792aacb.js → index.76bccc4f.js} +322 -575
- package/components/GridLayout/index.d.ts +4 -3
- package/components/GridLayout/subcomponents/Griditem/index.01fc14c3.js +370 -0
- package/components/GridLayout/subcomponents/Griditem/index.d.ts +9 -0
- package/components/GridLayout/subcomponents/Griditem/types.d.ts +103 -0
- package/components/GridLayout/subcomponents/Responsive/helper.d.ts +10 -0
- package/components/GridLayout/subcomponents/Responsive/index.d.ts +15 -2
- package/components/GridLayout/{Responsive/index.1671380a.js → subcomponents/Responsive/index.e589d8bf.js} +95 -139
- package/components/GridLayout/subcomponents/Responsive/responsiveUtils.d.ts +3 -6
- package/components/GridLayout/subcomponents/Responsive/types.d.ts +114 -33
- package/components/GridLayout/{WidthProvider/index.9a26dfe4.js → subcomponents/WidthProvider/index.50dafd87.js} +5 -5
- package/components/GridLayout/subcomponents/WidthProvider/index.d.ts +4 -5
- package/components/GridLayout/types.d.ts +83 -18
- package/components/GridLayout/utils.d.ts +15 -12
- package/components/HelperText/{index.6ef76993.js → index.2c408d8a.js} +2 -2
- package/components/LanguagePopover/{index.1564bd08.js → index.4596bf54.js} +2 -2
- package/components/ModalDialog/{index.fbc4cd71.js → index.62ffad3a.js} +3 -3
- package/components/NavLink/{index.6c9c2588.js → index.68392bd4.js} +2 -2
- package/components/ObjectLogs/{index.eab1c15f.js → index.665e043d.js} +11 -11
- package/components/Period/{index.26071a16.js → index.7d44c0e5.js} +8 -8
- package/components/PropertyValue/{index.18d3c0fd.js → index.a66988e1.js} +1 -1
- package/components/areas/components/AreasAdmin/{index.7a0dabbe.js → index.5562f65f.js} +19 -19
- package/components/areas/components/AreasViewer/{index.fd49f06c.js → index.1004b7a0.js} +31 -143
- package/components/areas/components/{index.7756928a.js → index.a441c8b1.js} +5 -5
- package/components/areas/contexts/AreasContext/helper.d.ts +2 -2
- package/components/areas/contexts/AreasContext/{index.0a08a08b.js → index.4bf1eabe.js} +12 -6
- package/components/areas/contexts/AreasContext/types.d.ts +4 -4
- package/components/areas/contexts/{index.b303b664.js → index.2938bc5a.js} +1 -1
- package/components/areas/hooks/useAreas/{index.c6eb2569.js → index.c77a2416.js} +1 -1
- package/components/areas/{index.6e67d89a.js → index.09851bae.js} +5 -5
- package/components/hook-form/RHFAutocomplete/{index.d1bbb015.js → index.9a9d7c73.js} +3 -3
- package/components/hook-form/RHFAutocompleteAsync/{index.f9a9ef48.js → index.172df421.js} +1 -1
- package/components/hook-form/RHFCheckbox/{index.7b4a21d7.js → index.47f0157b.js} +3 -3
- package/components/hook-form/RHFDateTime/{index.46cf616e.js → index.f46e987f.js} +3 -3
- package/components/hook-form/RHFPeriod/{index.ce513149.js → index.2e07ba7b.js} +2 -2
- package/components/hook-form/RHFTextField/{index.f7ee202c.js → index.253620eb.js} +1 -1
- package/components/hook-form/RHFUpload/{index.1befd5bb.js → index.9f00121f.js} +3 -3
- package/components/modal/{WindowBase.7e19843e.js → WindowBase.37b59511.js} +4 -4
- package/components/modal/{WindowConfirm.12a9608a.js → WindowConfirm.1a8c8c21.js} +10 -10
- package/components/modal/{index.b0a7236c.js → index.c8e23b8d.js} +7 -7
- package/components/mui_extended/Accordion/{index.a6447bf8.js → index.fa658639.js} +1 -1
- package/components/mui_extended/Tab/{index.c39a6681.js → index.f94d233e.js} +1 -1
- package/components/mui_extended/{index.d78bde19.js → index.07fcc38f.js} +2 -2
- package/contexts/ModalContext/{index.89805978.js → index.66e060a3.js} +1 -1
- package/hooks/useModal/{index.e1c5c31e.js → index.61968b84.js} +1 -1
- package/index.js +61 -58
- package/package.json +1 -2
- package/{vendor.f57d47a7.js → vendor.fefd45a3.js} +39 -36
- package/components/GridLayout/subcomponents/GridItem/index.d.ts +0 -26
- package/components/GridLayout/subcomponents/GridItem/types.d.ts +0 -78
|
@@ -13,10 +13,10 @@ import { a as AREAS_VIEWER_CLASS_NAME } from "../../constants.66529246.js";
|
|
|
13
13
|
import { shallow } from "zustand/shallow";
|
|
14
14
|
import React__default, { useMemo, useState, useCallback, useEffect } from "react";
|
|
15
15
|
import clsx from "clsx";
|
|
16
|
-
import { u as useAreasStore } from "../../hooks/useAreas/index.
|
|
16
|
+
import { u as useAreasStore } from "../../hooks/useAreas/index.c77a2416.js";
|
|
17
17
|
import { useModuleDictionary, useEnvironment, useModuleSkeleton, useNetwork, useHostTools, axiosOperation } from "@m4l/core";
|
|
18
18
|
import { I as IconButton } from "../../../mui_extended/IconButton/index.12f1a3c3.js";
|
|
19
|
-
import "../../../mui_extended/Accordion/index.
|
|
19
|
+
import "../../../mui_extended/Accordion/index.fa658639.js";
|
|
20
20
|
import { I as Icon } from "../../../Icon/index.9fcd1476.js";
|
|
21
21
|
import { T as Typography } from "../../../mui_extended/Typography/index.443590d6.js";
|
|
22
22
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
@@ -32,7 +32,7 @@ import "@mui/lab";
|
|
|
32
32
|
import { M as MenuActions, a as MemonizedMenuActions } from "../../../mui_extended/MenuActions/index.43a2e1ae.js";
|
|
33
33
|
import "../../../mui_extended/Popover/index.9f35d0eb.js";
|
|
34
34
|
import "../../../mui_extended/Pager/index.82e89328.js";
|
|
35
|
-
import "../../../mui_extended/Tab/index.
|
|
35
|
+
import "../../../mui_extended/Tab/index.f94d233e.js";
|
|
36
36
|
import "../../../mui_extended/Tooltip/index.5a795dcd.js";
|
|
37
37
|
import { I as ICONS } from "../../icons.8266ccc8.js";
|
|
38
38
|
import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary.afb7e3d9.js";
|
|
@@ -41,55 +41,58 @@ import debounce from "lodash/debounce";
|
|
|
41
41
|
import { L as LinearProgress } from "../../../mui_extended/LinearProgress/index.c92b9ba9.js";
|
|
42
42
|
import { W as WindowToolsMFProvider } from "../../contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
43
43
|
import { D as DynamicMFParmsProvider } from "../../contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
44
|
-
import "../../../../contexts/ModalContext/index.
|
|
44
|
+
import "../../../../contexts/ModalContext/index.66e060a3.js";
|
|
45
45
|
import "../../../../contexts/RHFormContext/index.fe175bab.js";
|
|
46
|
-
import "../../../GridLayout/index.
|
|
47
|
-
import
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
46
|
+
import "../../../GridLayout/subcomponents/Griditem/index.01fc14c3.js";
|
|
47
|
+
import "../../../GridLayout/index.76bccc4f.js";
|
|
48
|
+
import { R as Responsive } from "../../../GridLayout/subcomponents/Responsive/index.e589d8bf.js";
|
|
49
|
+
import { W as WidthProvider } from "../../../GridLayout/subcomponents/WidthProvider/index.50dafd87.js";
|
|
50
|
+
import { R as ROW_HEIGTH_GRIDLAYOUT, M as MARGIN_GRIDLAYOUT, P as PADDING_GRIDLAYOUT } from "../../contexts/AreasContext/index.4bf1eabe.js";
|
|
50
51
|
import "../../../animate/index.1f8eadd4.js";
|
|
51
52
|
import "framer-motion";
|
|
52
53
|
import "../../../animate/LoadingScreen/index.1d0c4307.js";
|
|
53
54
|
import "../../../animate/PropagateLoader/index.7fab43c8.js";
|
|
54
|
-
import "../AreasAdmin/index.
|
|
55
|
+
import "../AreasAdmin/index.5562f65f.js";
|
|
55
56
|
import "../../../ScrollBar/index.bbe48f4d.js";
|
|
56
57
|
import "zustand";
|
|
57
58
|
import "react-hook-form";
|
|
58
|
-
import "../../../hook-form/RHFAutocomplete/index.
|
|
59
|
-
import "../../../HelperText/index.
|
|
60
|
-
import "../../../hook-form/RHFAutocompleteAsync/index.
|
|
61
|
-
import "../../../hook-form/RHFCheckbox/index.
|
|
59
|
+
import "../../../hook-form/RHFAutocomplete/index.9a9d7c73.js";
|
|
60
|
+
import "../../../HelperText/index.2c408d8a.js";
|
|
61
|
+
import "../../../hook-form/RHFAutocompleteAsync/index.172df421.js";
|
|
62
|
+
import "../../../hook-form/RHFCheckbox/index.47f0157b.js";
|
|
62
63
|
import "@mui/x-date-pickers";
|
|
63
|
-
import "../../../hook-form/RHFDateTime/index.
|
|
64
|
-
import "../../../hook-form/RHFTextField/index.
|
|
65
|
-
import "../../../hook-form/RHFPeriod/index.
|
|
66
|
-
import "../../../Period/index.
|
|
67
|
-
import "../../../CommonActions/components/Actions/index.
|
|
64
|
+
import "../../../hook-form/RHFDateTime/index.f46e987f.js";
|
|
65
|
+
import "../../../hook-form/RHFTextField/index.253620eb.js";
|
|
66
|
+
import "../../../hook-form/RHFPeriod/index.2e07ba7b.js";
|
|
67
|
+
import "../../../Period/index.7d44c0e5.js";
|
|
68
|
+
import "../../../CommonActions/components/Actions/index.265d99c8.js";
|
|
68
69
|
import { c as cjs } from "../../../../react-draggable.7abb5d0a.js";
|
|
69
70
|
import { R as ResizeableWindow } from "../../../Resizeable/index.9a9c79a4.js";
|
|
70
|
-
import "../../../modal/index.
|
|
71
|
+
import "../../../modal/index.c8e23b8d.js";
|
|
71
72
|
import "lodash/isString";
|
|
72
73
|
import "react-dropzone";
|
|
73
|
-
import "../../../hook-form/RHFUpload/index.
|
|
74
|
-
import "../../../DataGrid/index.
|
|
74
|
+
import "../../../hook-form/RHFUpload/index.9f00121f.js";
|
|
75
|
+
import "../../../DataGrid/index.820e0043.js";
|
|
75
76
|
import "react-dnd";
|
|
76
77
|
import "react-dnd-html5-backend";
|
|
77
|
-
import "../../../
|
|
78
|
+
import "../../../DataGrid/subcomponents/Actions/index.43325b59.js";
|
|
79
|
+
import "../../../DataGrid/subcomponents/editors/TextEditor/index.91380a55.js";
|
|
80
|
+
import "../../../DynamicFilter/index.2b80238b.js";
|
|
78
81
|
import "yup";
|
|
79
82
|
import "lodash";
|
|
80
|
-
import "../../../LanguagePopover/index.
|
|
81
|
-
import "../../../NavLink/index.
|
|
83
|
+
import "../../../LanguagePopover/index.4596bf54.js";
|
|
84
|
+
import "../../../NavLink/index.68392bd4.js";
|
|
82
85
|
import "../../../NoItemSelected/index.23dfc897.js";
|
|
83
|
-
import "../../../ObjectLogs/index.
|
|
86
|
+
import "../../../ObjectLogs/index.665e043d.js";
|
|
84
87
|
import "../../../../react-json-view.57125fcf.js";
|
|
85
88
|
import "../../../PaperForm/index.ba38a0bd.js";
|
|
86
89
|
import "../../../Page/index.4237c241.js";
|
|
87
|
-
import "../../../PropertyValue/index.
|
|
90
|
+
import "../../../PropertyValue/index.a66988e1.js";
|
|
88
91
|
import "../../../SplitLayout/index.9ef430f6.js";
|
|
89
92
|
import "../../../../react-splitter-layout.8b1655c8.js";
|
|
90
93
|
import "../../../SideBar/index.2f497e6c.js";
|
|
91
|
-
import "../../../AppBar/index.
|
|
92
|
-
import "../../../AccountPopover/index.
|
|
94
|
+
import "../../../AppBar/index.6bdee075.js";
|
|
95
|
+
import "../../../AccountPopover/index.fea740a5.js";
|
|
93
96
|
const areasViewerClasses = generateUtilityClasses(AREAS_VIEWER_CLASS_NAME, [
|
|
94
97
|
"root",
|
|
95
98
|
"areaRoot",
|
|
@@ -297,121 +300,6 @@ const AreasViewerRoot = styled("div")`
|
|
|
297
300
|
padding: 16px;
|
|
298
301
|
}
|
|
299
302
|
|
|
300
|
-
.react-grid-layout {
|
|
301
|
-
position: relative;
|
|
302
|
-
transition: height 200ms ease;
|
|
303
|
-
}
|
|
304
|
-
.react-grid-item {
|
|
305
|
-
transition: all 200ms ease;
|
|
306
|
-
transition-property: left, top;
|
|
307
|
-
}
|
|
308
|
-
.react-grid-item img {
|
|
309
|
-
pointer-events: none;
|
|
310
|
-
user-select: none;
|
|
311
|
-
}
|
|
312
|
-
.react-grid-item.cssTransforms {
|
|
313
|
-
transition-property: transform;
|
|
314
|
-
}
|
|
315
|
-
.react-grid-item.resizing {
|
|
316
|
-
z-index: 1;
|
|
317
|
-
will-change: width, height;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
.react-grid-item.react-draggable-dragging {
|
|
321
|
-
transition: none;
|
|
322
|
-
z-index: 3;
|
|
323
|
-
will-change: transform;
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
.react-grid-item.dropping {
|
|
327
|
-
visibility: hidden;
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
.react-grid-item.react-grid-placeholder {
|
|
331
|
-
background: ${(props) => props.theme.palette.state.focus};
|
|
332
|
-
opacity: 0.2;
|
|
333
|
-
transition-duration: 100ms;
|
|
334
|
-
z-index: 2;
|
|
335
|
-
-webkit-user-select: none;
|
|
336
|
-
-moz-user-select: none;
|
|
337
|
-
-ms-user-select: none;
|
|
338
|
-
-o-user-select: none;
|
|
339
|
-
user-select: none;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
.react-grid-item > .react-resizable-handle {
|
|
343
|
-
position: absolute;
|
|
344
|
-
width: 20px;
|
|
345
|
-
height: 20px;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
.react-grid-item > .react-resizable-handle::after {
|
|
349
|
-
content: '';
|
|
350
|
-
position: absolute;
|
|
351
|
-
right: 3px;
|
|
352
|
-
bottom: 3px;
|
|
353
|
-
width: 5px;
|
|
354
|
-
height: 5px;
|
|
355
|
-
border-right: 2px solid rgba(0, 0, 0, 0.4);
|
|
356
|
-
border-bottom: 2px solid rgba(0, 0, 0, 0.4);
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
.react-resizable-hide > .react-resizable-handle {
|
|
360
|
-
display: none;
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
.react-grid-item > .react-resizable-handle.react-resizable-handle-sw {
|
|
364
|
-
bottom: 0;
|
|
365
|
-
left: 0;
|
|
366
|
-
cursor: sw-resize;
|
|
367
|
-
transform: rotate(90deg);
|
|
368
|
-
}
|
|
369
|
-
.react-grid-item > .react-resizable-handle.react-resizable-handle-se {
|
|
370
|
-
bottom: 0;
|
|
371
|
-
right: 0;
|
|
372
|
-
cursor: se-resize;
|
|
373
|
-
}
|
|
374
|
-
.react-grid-item > .react-resizable-handle.react-resizable-handle-nw {
|
|
375
|
-
top: 0;
|
|
376
|
-
left: 0;
|
|
377
|
-
cursor: nw-resize;
|
|
378
|
-
transform: rotate(180deg);
|
|
379
|
-
}
|
|
380
|
-
.react-grid-item > .react-resizable-handle.react-resizable-handle-ne {
|
|
381
|
-
top: 0;
|
|
382
|
-
right: 0;
|
|
383
|
-
cursor: ne-resize;
|
|
384
|
-
transform: rotate(270deg);
|
|
385
|
-
}
|
|
386
|
-
.react-grid-item > .react-resizable-handle.react-resizable-handle-w,
|
|
387
|
-
.react-grid-item > .react-resizable-handle.react-resizable-handle-e {
|
|
388
|
-
top: 50%;
|
|
389
|
-
margin-top: -10px;
|
|
390
|
-
cursor: ew-resize;
|
|
391
|
-
}
|
|
392
|
-
.react-grid-item > .react-resizable-handle.react-resizable-handle-w {
|
|
393
|
-
left: 0;
|
|
394
|
-
transform: rotate(135deg);
|
|
395
|
-
}
|
|
396
|
-
.react-grid-item > .react-resizable-handle.react-resizable-handle-e {
|
|
397
|
-
right: 0;
|
|
398
|
-
transform: rotate(315deg);
|
|
399
|
-
}
|
|
400
|
-
.react-grid-item > .react-resizable-handle.react-resizable-handle-n,
|
|
401
|
-
.react-grid-item > .react-resizable-handle.react-resizable-handle-s {
|
|
402
|
-
left: 50%;
|
|
403
|
-
margin-left: -10px;
|
|
404
|
-
cursor: ns-resize;
|
|
405
|
-
}
|
|
406
|
-
.react-grid-item > .react-resizable-handle.react-resizable-handle-n {
|
|
407
|
-
top: 0;
|
|
408
|
-
transform: rotate(225deg);
|
|
409
|
-
}
|
|
410
|
-
.react-grid-item > .react-resizable-handle.react-resizable-handle-s {
|
|
411
|
-
bottom: 0;
|
|
412
|
-
transform: rotate(45deg);
|
|
413
|
-
}
|
|
414
|
-
|
|
415
303
|
${react_resizable_css}
|
|
416
304
|
|
|
417
305
|
${(props) => props.theme.components?.M4LAreasViewer?.styleOverrides}
|
|
@@ -7,11 +7,11 @@ import "react/jsx-runtime";
|
|
|
7
7
|
import "../../mui_extended/IconButton/index.12f1a3c3.js";
|
|
8
8
|
import "@m4l/graphics";
|
|
9
9
|
import "zustand";
|
|
10
|
-
import "../contexts/AreasContext/index.
|
|
11
|
-
import "./AreasAdmin/index.
|
|
10
|
+
import "../contexts/AreasContext/index.4bf1eabe.js";
|
|
11
|
+
import "./AreasAdmin/index.5562f65f.js";
|
|
12
12
|
import "zustand/shallow";
|
|
13
13
|
import "../../ScrollBar/index.bbe48f4d.js";
|
|
14
|
-
import "../../mui_extended/Accordion/index.
|
|
14
|
+
import "../../mui_extended/Accordion/index.fa658639.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";
|
|
@@ -24,7 +24,7 @@ import "@mui/lab";
|
|
|
24
24
|
import "../../mui_extended/MenuActions/index.43a2e1ae.js";
|
|
25
25
|
import "../../mui_extended/Popover/index.9f35d0eb.js";
|
|
26
26
|
import "../../mui_extended/Pager/index.82e89328.js";
|
|
27
|
-
import "../../mui_extended/Tab/index.
|
|
27
|
+
import "../../mui_extended/Tab/index.f94d233e.js";
|
|
28
28
|
import "../../mui_extended/Tooltip/index.5a795dcd.js";
|
|
29
|
-
import "./AreasViewer/index.
|
|
29
|
+
import "./AreasViewer/index.1004b7a0.js";
|
|
30
30
|
import "../../LinearProgressIndeterminate/index.60dabc06.js";
|
|
@@ -3,7 +3,7 @@ import type { Area, AreasStateWithActions } from './types';
|
|
|
3
3
|
import type { WindowState, WindowStateProps } from '../../types';
|
|
4
4
|
export declare const ROW_HEIGTH_GRIDLAYOUT = 20;
|
|
5
5
|
export declare const PADDING_GRIDLAYOUT = 3;
|
|
6
|
-
export declare const MARGIN_GRIDLAYOUT =
|
|
6
|
+
export declare const MARGIN_GRIDLAYOUT = 3;
|
|
7
7
|
export declare const DEBOUCED_SAVE_TIME = 500;
|
|
8
8
|
export declare const THROTTLE_RESIZE_TIME = 300;
|
|
9
9
|
export declare const COOKIE_BREAKPOINT_LAYOUTS = "layoutPros";
|
|
@@ -22,7 +22,7 @@ export declare const NORMALIZED_COLS: {
|
|
|
22
22
|
xs: number;
|
|
23
23
|
xxs: number;
|
|
24
24
|
};
|
|
25
|
-
import { Layouts } from '../../../GridLayout/
|
|
25
|
+
import { Layouts } from '../../../GridLayout/types';
|
|
26
26
|
export declare const DEFAULT_WINDOW: Pick<WindowState, 'status' | 'moduleActions' | 'cookies' | 'loading' | 'toasties' | 'toastyCount' | 'hashToasties'>;
|
|
27
27
|
export declare const DEFAULT_AREA: Omit<Area, 'id' | 'name' | 'loadWindows' | 'viewMode'>;
|
|
28
28
|
/**
|
|
@@ -5,18 +5,19 @@ import { useResponsiveDesktop, useFirstRender } from "@m4l/graphics";
|
|
|
5
5
|
import { useHostTools, useModuleDictionary, useNetwork, useModuleSkeleton, EmitEvents } from "@m4l/core";
|
|
6
6
|
import { devtools } from "zustand/middleware";
|
|
7
7
|
import { immer } from "zustand/middleware/immer";
|
|
8
|
-
import { u as useAreasViewerUtilityClasses } from "../../components/AreasViewer/index.
|
|
9
|
-
import { u as useAreasAdminUtilityClasses } from "../../components/AreasAdmin/index.
|
|
8
|
+
import { u as useAreasViewerUtilityClasses } from "../../components/AreasViewer/index.1004b7a0.js";
|
|
9
|
+
import { u as useAreasAdminUtilityClasses } from "../../components/AreasAdmin/index.5562f65f.js";
|
|
10
10
|
import { c as createDynamicMFStore } from "../DynamicMFParmsContext/index.1607c78e.js";
|
|
11
11
|
import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary.afb7e3d9.js";
|
|
12
12
|
import "clsx";
|
|
13
|
-
import "../../../GridLayout/index.
|
|
14
|
-
import {
|
|
13
|
+
import "../../../GridLayout/subcomponents/Griditem/index.01fc14c3.js";
|
|
14
|
+
import { z as isEqualLayouts } from "../../../GridLayout/index.76bccc4f.js";
|
|
15
15
|
import { jsx } from "react/jsx-runtime";
|
|
16
|
+
import { a as addLayoutItemToBreakPointIfNoExists, b as addLayoutItemToBreakPoints, c as cloneLayouts } from "../../../GridLayout/subcomponents/Responsive/index.e589d8bf.js";
|
|
16
17
|
import { debounce, cloneDeep } from "lodash";
|
|
17
18
|
const ROW_HEIGTH_GRIDLAYOUT = 20;
|
|
18
19
|
const PADDING_GRIDLAYOUT = 3;
|
|
19
|
-
const MARGIN_GRIDLAYOUT =
|
|
20
|
+
const MARGIN_GRIDLAYOUT = 3;
|
|
20
21
|
const DEBOUCED_SAVE_TIME = 500;
|
|
21
22
|
const COOKIE_BREAKPOINT_LAYOUTS = "layoutPros";
|
|
22
23
|
const COOKIE_WINDOWS = "windows";
|
|
@@ -629,7 +630,7 @@ const createAreasStore = (initProps) => {
|
|
|
629
630
|
onBreakpointsLayoutsChange: (areaId, _currentLayout, newAllLayouts) => {
|
|
630
631
|
if (!isEqualLayouts(get().hashAreas[areaId].layouts, newAllLayouts)) {
|
|
631
632
|
set((state) => {
|
|
632
|
-
state.hashAreas[areaId].layouts =
|
|
633
|
+
state.hashAreas[areaId].layouts = cloneLayouts(newAllLayouts);
|
|
633
634
|
});
|
|
634
635
|
if (!get().hashAreas[areaId].maximizedId) {
|
|
635
636
|
get().areaActions.bouncedSaveBreakpointsLayouts(areaId);
|
|
@@ -637,6 +638,11 @@ const createAreasStore = (initProps) => {
|
|
|
637
638
|
}
|
|
638
639
|
},
|
|
639
640
|
onContainerChange: (areaId, e) => {
|
|
641
|
+
console.log(
|
|
642
|
+
`onContainerChange [${e.containerWidth}, ${e.containerHeight}] Store`,
|
|
643
|
+
areaId,
|
|
644
|
+
e.breakpoint
|
|
645
|
+
);
|
|
640
646
|
set((state) => {
|
|
641
647
|
state.hashAreas[areaId].containerHeight = e.containerHeight;
|
|
642
648
|
state.hashAreas[areaId].currentBreakpoint = e.breakpoint;
|
|
@@ -5,8 +5,8 @@ import { ViwerClasses } from '../../components/AreasViewer/classes';
|
|
|
5
5
|
import { AdminClasses } from '../../components/AreasAdmin/classes';
|
|
6
6
|
import { DebouncedFunc } from 'lodash';
|
|
7
7
|
import { LayoutItem } from '../../../GridLayout';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { ContainerChangeEvent } from '../../../GridLayout/subcomponents/Responsive/types';
|
|
9
|
+
import { Layout, Breakpoint, Layouts } from '../../../GridLayout/types';
|
|
10
10
|
export declare type WinLayoutItem = LayoutItem & {
|
|
11
11
|
winType: WinType;
|
|
12
12
|
};
|
|
@@ -29,7 +29,7 @@ export interface Area {
|
|
|
29
29
|
*/
|
|
30
30
|
containerHeight?: number;
|
|
31
31
|
currentBreakpoint?: Breakpoint;
|
|
32
|
-
layouts:
|
|
32
|
+
layouts: Layouts;
|
|
33
33
|
maximizedId?: string | undefined;
|
|
34
34
|
/** Son los ids de las ventanas, iterar con keys, destruye los componentes en un map */
|
|
35
35
|
layoutItemsIds: string[];
|
|
@@ -172,7 +172,7 @@ export interface AreasStateWithActions extends AreasState {
|
|
|
172
172
|
selectLayout: (areaId: string, layoutId: string) => void;
|
|
173
173
|
addLayout: (areaId: string, windowId: string, newWindow: NewLayoutMagnetizableProps | NewLayoutMoveableProps) => void;
|
|
174
174
|
saveLayouts: (areaId: string) => void;
|
|
175
|
-
onBreakpointsLayoutsChange: (areaId: string, currentLayout:
|
|
175
|
+
onBreakpointsLayoutsChange: (areaId: string, currentLayout: Layout, newAllLayouts: Layouts) => void;
|
|
176
176
|
onContainerChange: (areaId: string, e: ContainerChangeEvent) => void;
|
|
177
177
|
bouncedSaveBreakpointsLayouts: DebouncedFunc<(areaId: string) => void>;
|
|
178
178
|
colapseLayoutItem: (areaId: string, layoutId: string) => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import "./AreasContext/index.
|
|
1
|
+
import "./AreasContext/index.4bf1eabe.js";
|
|
2
2
|
import "./WindowToolsMFContext/index.8f3e2a04.js";
|
|
@@ -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.
|
|
3
|
+
import { A as AreasContext } from "../../contexts/AreasContext/index.4bf1eabe.js";
|
|
4
4
|
function useAreasStore(selector, equalityFn) {
|
|
5
5
|
const context = useContext(AreasContext);
|
|
6
6
|
if (!context)
|
|
@@ -7,11 +7,11 @@ import "react/jsx-runtime";
|
|
|
7
7
|
import "../mui_extended/IconButton/index.12f1a3c3.js";
|
|
8
8
|
import "@m4l/graphics";
|
|
9
9
|
import "zustand";
|
|
10
|
-
import "./contexts/AreasContext/index.
|
|
11
|
-
import "./components/AreasAdmin/index.
|
|
10
|
+
import "./contexts/AreasContext/index.4bf1eabe.js";
|
|
11
|
+
import "./components/AreasAdmin/index.5562f65f.js";
|
|
12
12
|
import "zustand/shallow";
|
|
13
13
|
import "../ScrollBar/index.bbe48f4d.js";
|
|
14
|
-
import "../mui_extended/Accordion/index.
|
|
14
|
+
import "../mui_extended/Accordion/index.fa658639.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";
|
|
@@ -24,9 +24,9 @@ import "@mui/lab";
|
|
|
24
24
|
import "../mui_extended/MenuActions/index.43a2e1ae.js";
|
|
25
25
|
import "../mui_extended/Popover/index.9f35d0eb.js";
|
|
26
26
|
import "../mui_extended/Pager/index.82e89328.js";
|
|
27
|
-
import "../mui_extended/Tab/index.
|
|
27
|
+
import "../mui_extended/Tab/index.f94d233e.js";
|
|
28
28
|
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
29
|
-
import "./components/AreasViewer/index.
|
|
29
|
+
import "./components/AreasViewer/index.1004b7a0.js";
|
|
30
30
|
import "../LinearProgressIndeterminate/index.60dabc06.js";
|
|
31
31
|
import "./contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
32
32
|
import "./contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
@@ -6,14 +6,14 @@ import { useMemo, useRef, 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.
|
|
9
|
+
import { H as HelperText } from "../../HelperText/index.2c408d8a.js";
|
|
10
10
|
import { I as IconButton } from "../../mui_extended/IconButton/index.12f1a3c3.js";
|
|
11
11
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
12
12
|
import { styled } from "@mui/material/styles";
|
|
13
13
|
import "clsx";
|
|
14
14
|
import { unstable_composeClasses } from "@mui/base";
|
|
15
15
|
import "../../Icon/index.9fcd1476.js";
|
|
16
|
-
import "../../mui_extended/Accordion/index.
|
|
16
|
+
import "../../mui_extended/Accordion/index.fa658639.js";
|
|
17
17
|
import "../../mui_extended/Avatar/index.75e6ed57.js";
|
|
18
18
|
import "react-router-dom";
|
|
19
19
|
import "@mui/material/Button";
|
|
@@ -24,7 +24,7 @@ import "@mui/lab";
|
|
|
24
24
|
import "../../mui_extended/MenuActions/index.43a2e1ae.js";
|
|
25
25
|
import "../../mui_extended/Popover/index.9f35d0eb.js";
|
|
26
26
|
import "../../mui_extended/Pager/index.82e89328.js";
|
|
27
|
-
import "../../mui_extended/Tab/index.
|
|
27
|
+
import "../../mui_extended/Tab/index.f94d233e.js";
|
|
28
28
|
import "../../mui_extended/Tooltip/index.5a795dcd.js";
|
|
29
29
|
const AutocompleteRoot = styled("div")(({
|
|
30
30
|
theme
|
|
@@ -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.
|
|
8
|
+
import { R as RHFAutocomplete, g as getRHFAutocompleteComponentsDictionary } from "../RHFAutocomplete/index.9a9d7c73.js";
|
|
9
9
|
import { jsx } from "react/jsx-runtime";
|
|
10
10
|
styled("div")(() => ({
|
|
11
11
|
display: "flex",
|
|
@@ -2,7 +2,7 @@ import { useFormContext, Controller } from "react-hook-form";
|
|
|
2
2
|
import { styled } from "@mui/material/styles";
|
|
3
3
|
import { Skeleton, generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
4
4
|
import { unstable_composeClasses } from "@mui/base";
|
|
5
|
-
import { H as HelperText } from "../../HelperText/index.
|
|
5
|
+
import { H as HelperText } from "../../HelperText/index.2c408d8a.js";
|
|
6
6
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
7
7
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
8
8
|
import "react";
|
|
@@ -11,7 +11,7 @@ import "../../Icon/index.9fcd1476.js";
|
|
|
11
11
|
import "clsx";
|
|
12
12
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
13
13
|
import "../../mui_extended/IconButton/index.12f1a3c3.js";
|
|
14
|
-
import "../../mui_extended/Accordion/index.
|
|
14
|
+
import "../../mui_extended/Accordion/index.fa658639.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";
|
|
@@ -24,7 +24,7 @@ import "@mui/lab";
|
|
|
24
24
|
import "../../mui_extended/MenuActions/index.43a2e1ae.js";
|
|
25
25
|
import "../../mui_extended/Popover/index.9f35d0eb.js";
|
|
26
26
|
import "../../mui_extended/Pager/index.82e89328.js";
|
|
27
|
-
import "../../mui_extended/Tab/index.
|
|
27
|
+
import "../../mui_extended/Tab/index.f94d233e.js";
|
|
28
28
|
import "../../mui_extended/Tooltip/index.5a795dcd.js";
|
|
29
29
|
const RHFCheckboxRoot = styled("div")(({
|
|
30
30
|
theme
|
|
@@ -9,7 +9,7 @@ import clsx from "clsx";
|
|
|
9
9
|
import "../../Icon/index.9fcd1476.js";
|
|
10
10
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
11
11
|
import "../../mui_extended/IconButton/index.12f1a3c3.js";
|
|
12
|
-
import "../../mui_extended/Accordion/index.
|
|
12
|
+
import "../../mui_extended/Accordion/index.fa658639.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";
|
|
@@ -22,9 +22,9 @@ import "@mui/lab";
|
|
|
22
22
|
import "../../mui_extended/MenuActions/index.43a2e1ae.js";
|
|
23
23
|
import "../../mui_extended/Popover/index.9f35d0eb.js";
|
|
24
24
|
import "../../mui_extended/Pager/index.82e89328.js";
|
|
25
|
-
import "../../mui_extended/Tab/index.
|
|
25
|
+
import "../../mui_extended/Tab/index.f94d233e.js";
|
|
26
26
|
import "../../mui_extended/Tooltip/index.5a795dcd.js";
|
|
27
|
-
import { H as HelperText } from "../../HelperText/index.
|
|
27
|
+
import { H as HelperText } from "../../HelperText/index.2c408d8a.js";
|
|
28
28
|
import { styled } from "@mui/material/styles";
|
|
29
29
|
import { unstable_composeClasses } from "@mui/base";
|
|
30
30
|
const SKTRHFWrapperTextField = styled("div")(({
|
|
@@ -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.
|
|
4
|
-
import { P as Period } from "../../Period/index.
|
|
3
|
+
import { H as HelperText } from "../../HelperText/index.2c408d8a.js";
|
|
4
|
+
import { P as Period } from "../../Period/index.7d44c0e5.js";
|
|
5
5
|
import { unstable_composeClasses } from "@mui/base";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
const RHFPeriodRoot = styled("div")(({
|
|
@@ -12,7 +12,7 @@ import { styled as styled$1 } from "@mui/material/styles";
|
|
|
12
12
|
import { unstable_composeClasses } from "@mui/base";
|
|
13
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.
|
|
15
|
+
import { H as HelperText } from "../../HelperText/index.2c408d8a.js";
|
|
16
16
|
const SkeletonTextFieldRoot = styled("div")(() => ({
|
|
17
17
|
display: "flex",
|
|
18
18
|
flexDirection: "column",
|
|
@@ -9,7 +9,7 @@ import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
|
9
9
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
10
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.
|
|
12
|
+
import { H as HelperText } from "../../HelperText/index.2c408d8a.js";
|
|
13
13
|
import "clsx";
|
|
14
14
|
import { styled } from "@mui/material/styles";
|
|
15
15
|
import { unstable_composeClasses } from "@mui/base";
|
|
@@ -17,7 +17,7 @@ import "@mui/material/Button";
|
|
|
17
17
|
import "../../Icon/index.9fcd1476.js";
|
|
18
18
|
import "../../mui_extended/IconButton/index.12f1a3c3.js";
|
|
19
19
|
import "@m4l/graphics";
|
|
20
|
-
import "../../mui_extended/Accordion/index.
|
|
20
|
+
import "../../mui_extended/Accordion/index.fa658639.js";
|
|
21
21
|
import "../../mui_extended/Avatar/index.75e6ed57.js";
|
|
22
22
|
import "react-router-dom";
|
|
23
23
|
import "../../mui_extended/CheckBox.5f6c78b0.js";
|
|
@@ -26,7 +26,7 @@ import "@mui/lab";
|
|
|
26
26
|
import "../../mui_extended/MenuActions/index.43a2e1ae.js";
|
|
27
27
|
import "../../mui_extended/Popover/index.9f35d0eb.js";
|
|
28
28
|
import "../../mui_extended/Pager/index.82e89328.js";
|
|
29
|
-
import "../../mui_extended/Tab/index.
|
|
29
|
+
import "../../mui_extended/Tab/index.f94d233e.js";
|
|
30
30
|
import "../../mui_extended/Tooltip/index.5a795dcd.js";
|
|
31
31
|
const UploadImageRoot = styled("div")(({
|
|
32
32
|
theme
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { useEnvironment } from "@m4l/core";
|
|
2
2
|
import "react";
|
|
3
|
-
import { u as useModal } from "../../hooks/useModal/index.
|
|
4
|
-
import { m as modalUtilityClasses } from "./index.
|
|
3
|
+
import { u as useModal } from "../../hooks/useModal/index.61968b84.js";
|
|
4
|
+
import { m as modalUtilityClasses } from "./index.c8e23b8d.js";
|
|
5
5
|
import { I as Icon } from "../Icon/index.9fcd1476.js";
|
|
6
6
|
import "@mui/material";
|
|
7
7
|
import { I as IconButton } from "../mui_extended/IconButton/index.12f1a3c3.js";
|
|
8
|
-
import "../mui_extended/Accordion/index.
|
|
8
|
+
import "../mui_extended/Accordion/index.fa658639.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";
|
|
@@ -21,7 +21,7 @@ import "@mui/lab";
|
|
|
21
21
|
import "../mui_extended/MenuActions/index.43a2e1ae.js";
|
|
22
22
|
import "../mui_extended/Popover/index.9f35d0eb.js";
|
|
23
23
|
import "../mui_extended/Pager/index.82e89328.js";
|
|
24
|
-
import "../mui_extended/Tab/index.
|
|
24
|
+
import "../mui_extended/Tab/index.f94d233e.js";
|
|
25
25
|
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
26
26
|
const Header = (props) => {
|
|
27
27
|
const {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
2
2
|
import "react";
|
|
3
|
-
import { u as useModal } from "../../hooks/useModal/index.
|
|
4
|
-
import { A as Actions } from "../CommonActions/components/Actions/index.
|
|
5
|
-
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.
|
|
6
|
-
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.
|
|
3
|
+
import { u as useModal } from "../../hooks/useModal/index.61968b84.js";
|
|
4
|
+
import { A as Actions } from "../CommonActions/components/Actions/index.265d99c8.js";
|
|
5
|
+
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.6928b5ae.js";
|
|
6
|
+
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.8b1b3afc.js";
|
|
7
7
|
import "react-hook-form";
|
|
8
8
|
import { Typography } from "@mui/material";
|
|
9
9
|
import "@mui/material/Button";
|
|
@@ -14,10 +14,10 @@ import "../../react-draggable.7abb5d0a.js";
|
|
|
14
14
|
import "../Resizeable/index.9a9c79a4.js";
|
|
15
15
|
import "@m4l/graphics";
|
|
16
16
|
import "../Icon/index.9fcd1476.js";
|
|
17
|
-
import { m as modalUtilityClasses } from "./index.
|
|
17
|
+
import { m as modalUtilityClasses } from "./index.c8e23b8d.js";
|
|
18
18
|
import { I as Image } from "../Image/index.c18ebf5a.js";
|
|
19
19
|
import "../mui_extended/IconButton/index.12f1a3c3.js";
|
|
20
|
-
import "../mui_extended/Accordion/index.
|
|
20
|
+
import "../mui_extended/Accordion/index.fa658639.js";
|
|
21
21
|
import "../mui_extended/Typography/index.443590d6.js";
|
|
22
22
|
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
23
23
|
import "react-router-dom";
|
|
@@ -27,14 +27,14 @@ import "@mui/lab";
|
|
|
27
27
|
import "../mui_extended/MenuActions/index.43a2e1ae.js";
|
|
28
28
|
import "../mui_extended/Popover/index.9f35d0eb.js";
|
|
29
29
|
import "../mui_extended/Pager/index.82e89328.js";
|
|
30
|
-
import "../mui_extended/Tab/index.
|
|
30
|
+
import "../mui_extended/Tab/index.f94d233e.js";
|
|
31
31
|
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
32
32
|
import "zustand";
|
|
33
|
-
import "../areas/contexts/AreasContext/index.
|
|
34
|
-
import "../areas/components/AreasAdmin/index.
|
|
33
|
+
import "../areas/contexts/AreasContext/index.4bf1eabe.js";
|
|
34
|
+
import "../areas/components/AreasAdmin/index.5562f65f.js";
|
|
35
35
|
import "zustand/shallow";
|
|
36
36
|
import "../ScrollBar/index.bbe48f4d.js";
|
|
37
|
-
import "../areas/components/AreasViewer/index.
|
|
37
|
+
import "../areas/components/AreasViewer/index.1004b7a0.js";
|
|
38
38
|
import "../LinearProgressIndeterminate/index.60dabc06.js";
|
|
39
39
|
import "../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
40
40
|
import "../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|