@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.
- package/@types/export.d.ts +19 -0
- package/components/AccountPopover/{index.47cf6c43.js → index.3a79c395.js} +7 -6
- package/components/AppBar/{index.f04f5e45.js → index.71b38ee9.js} +7 -6
- package/components/CommonActions/components/ActionCancel/{index.453c2d24.js → index.b748a38e.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.c2a2fd55.js → index.27ad09e1.js} +18 -18
- package/components/CommonActions/components/ActionFormIntro/{index.25d33912.js → index.2556f054.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.c653a266.js → index.a7d92e66.js} +2 -2
- package/components/CommonActions/components/Actions/{index.e376a68e.js → index.3eba9d91.js} +16 -17
- package/components/DataGrid/{index.ffaf000e.js → index.545b492f.js} +42 -30
- package/components/DataGrid/types.d.ts +5 -1
- package/components/DraggableWindow/{index.b08af1dc.js → index.c702d3f2.js} +1 -1
- package/components/DynamicFilter/{index.d7c03a61.js → index.d7be0f37.js} +40 -33
- package/components/DynamicFilter/subcomponents/InnerForHooks/index.d.ts +2 -1
- package/components/DynamicFilter/subcomponents/InnerForHooks/types.d.ts +2 -0
- package/components/DynamicFilter/tests/contants.d.ts +1 -1
- package/components/DynamicFilter/types.d.ts +4 -0
- package/components/GridLayout/GridLayout.d.ts +6 -0
- package/components/GridLayout/Responsive/index.a12a8cec.js +335 -0
- package/components/GridLayout/WidthProvider/index.8ff65909.js +67 -0
- package/components/GridLayout/calculateUtils.d.ts +42 -0
- package/components/GridLayout/index.4ba3767a.js +1400 -0
- package/components/GridLayout/index.d.ts +6 -0
- package/components/GridLayout/subcomponents/GridItem/index.d.ts +25 -0
- package/components/GridLayout/subcomponents/GridItem/types.d.ts +76 -0
- package/components/GridLayout/subcomponents/Responsive/index.d.ts +3 -0
- package/components/GridLayout/subcomponents/Responsive/responsiveUtils.d.ts +61 -0
- package/components/GridLayout/subcomponents/Responsive/types.d.ts +71 -0
- package/components/GridLayout/subcomponents/WidthProvider/index.d.ts +16 -0
- package/components/GridLayout/types.d.ts +355 -0
- package/components/GridLayout/utils.d.ts +123 -0
- package/components/HelperText/{index.9864f773.js → index.ef31df1f.js} +7 -6
- package/components/Icon/{index.9dae8337.js → index.ecb63e65.js} +1 -1
- package/components/LanguagePopover/{index.938c6675.js → index.0023d069.js} +7 -6
- package/components/LinearProgressIndeterminate/{index.d34d398f.js → index.60dabc06.js} +1 -1
- package/components/ModalDialog/{index.d9c5d400.js → index.d880e685.js} +8 -56
- package/components/NavLink/{index.21c8fd90.js → index.cd92eceb.js} +7 -6
- package/components/ObjectLogs/{index.a2709fc2.js → index.f174c542.js} +19 -19
- package/components/PaperForm/{index.5e1bc99f.js → index.1bd86ee5.js} +1 -1
- package/components/Period/{index.526791a3.js → index.711db043.js} +21 -22
- package/components/Resizeable/{index.f6e48e56.js → index.9a9c79a4.js} +1 -1
- package/components/SideBar/{index.9e1a5b96.js → index.c5ce0bad.js} +5 -5
- package/components/areas/components/AreasAdmin/classes/index.d.ts +1 -1
- package/components/areas/components/AreasAdmin/classes/types.d.ts +2 -0
- package/components/areas/components/AreasAdmin/{index.946eebb9.js → index.cc4cbf56.js} +120 -46
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/types.d.ts +0 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/PanelWindowPopUp/index.d.ts +3 -0
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/PanelWindowPopUp/types.d.ts +3 -0
- package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/classes/types.d.ts +2 -0
- package/components/areas/components/AreasViewer/{index.bf4191ea.js → index.9c2aaaeb.js} +258 -259
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/{GridLayout → AreaGridLayout}/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/index.d.ts +2 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/index.d.ts +1 -7
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/WindowPopUpsList/index.d.ts +3 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/WindowPopUpsList/types.d.ts +2 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/types.d.ts +6 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/types.d.ts +1 -1
- package/components/areas/components/{index.2bb534cb.js → index.0f7ac464.js} +11 -10
- package/components/areas/contexts/AreasContext/helper.d.ts +6 -16
- package/components/areas/contexts/AreasContext/{index.f0397b7c.js → index.c8147e8e.js} +244 -339
- package/components/areas/contexts/AreasContext/types.d.ts +23 -20
- package/components/areas/contexts/{index.1809650a.js → index.02336412.js} +1 -1
- package/components/areas/{dictionary.3fabae50.js → dictionary.afb7e3d9.js} +5 -2
- package/components/areas/dictionary.d.ts +4 -1
- package/components/areas/hooks/useAreas/{index.40917e99.js → index.3406a6cb.js} +1 -1
- package/components/areas/{icons.19cde4b4.js → icons.8266ccc8.js} +5 -1
- package/components/areas/icons.d.ts +4 -0
- package/components/areas/{index.9bd48013.js → index.6f2e5dab.js} +11 -10
- package/components/areas/types.d.ts +30 -22
- package/components/formatters/BooleanFormatter/{index.431dc923.js → index.5268b024.js} +1 -1
- package/components/formatters/{index.e1af75e6.js → index.137169d8.js} +2 -2
- package/components/hook-form/RHFAutocomplete/{index.a063dc44.js → index.ac2b1fae.js} +8 -7
- package/components/hook-form/RHFAutocompleteAsync/{index.ddfd9cc9.js → index.8b4ccc8d.js} +1 -1
- package/components/hook-form/RHFCheckbox/{index.7e7f220b.js → index.acef119c.js} +1 -1
- package/components/hook-form/RHFDateTime/{index.d330709b.js → index.5b080342.js} +9 -8
- package/components/hook-form/RHFPeriod/{index.e2b1293b.js → index.5304e3bd.js} +2 -2
- package/components/hook-form/RHFTextField/{index.e5336d09.js → index.e751dca7.js} +5 -5
- package/components/hook-form/RHFUpload/{index.17e7f9eb.js → index.25db0511.js} +8 -7
- package/components/index.d.ts +1 -0
- package/components/modal/{WindowBase.7acb9f1d.js → WindowBase.850ea31a.js} +9 -8
- package/components/modal/{WindowConfirm.9b829837.js → WindowConfirm.cb37bc58.js} +18 -18
- package/components/modal/classes/index.d.ts +1 -0
- package/components/modal/classes/types.d.ts +1 -0
- package/components/modal/{index.1b25b61d.js → index.a0978193.js} +18 -16
- package/components/mui_extended/Accordion/{index.3faafd8b.js → index.12b1339a.js} +2 -2
- package/components/mui_extended/Badge/Badge.d.ts +3 -0
- package/components/mui_extended/Badge/classes/constants.d.ts +1 -0
- package/components/mui_extended/Badge/classes/index.d.ts +6 -0
- package/components/mui_extended/Badge/classes/types.d.ts +6 -0
- package/components/mui_extended/Badge/index.8c2b8b66.js +36 -0
- package/components/mui_extended/Badge/index.d.ts +2 -0
- package/components/mui_extended/Badge/tests/constants.d.ts +1 -0
- package/components/mui_extended/Badge/tests/utils.d.ts +2 -0
- package/components/mui_extended/Badge/types.d.ts +4 -0
- package/components/mui_extended/Button/{index.fdb5dcbd.js → index.4288f9fc.js} +8 -3
- package/components/mui_extended/IconButton/{index.1a9d4fa5.js → index.fc5b7c2d.js} +1 -1
- package/components/mui_extended/MenuActions/{index.ba1da3b3.js → index.f5b1c022.js} +28 -9
- package/components/mui_extended/MenuActions/types.d.ts +8 -0
- package/components/mui_extended/Pager/{index.67bda2c5.js → index.435af0df.js} +1 -1
- package/components/mui_extended/{index.73e536de.js → index.83979b6a.js} +7 -6
- package/components/mui_extended/index.d.ts +1 -0
- package/contexts/ModalContext/{index.699f95fa.js → index.dee85a61.js} +1 -1
- package/hooks/useModal/{index.7b7d26ba.js → index.de522a10.js} +1 -1
- package/index.js +94 -83
- package/node_modules.d73a220d.js +363 -0
- package/package.json +4 -3
- package/{react-draggable.6d7949a3.js → react-draggable.7abb5d0a.js} +3 -2
- package/{react-resizable.b6f8e04a.js → react-resizable.ba08699a.js} +13 -12
- package/utils/{index.008b4c2a.js → index.c43a95f4.js} +0 -15
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/WindowPopUp/index.d.ts +0 -4
- package/components/modal/ModalDialog/types.d.ts +0 -7
- /package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/{GridLayout → AreaGridLayout}/types.d.ts +0 -0
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { CompactType, Layout, LayoutItem, Position } from './types';
|
|
2
|
+
export declare const noop: () => void;
|
|
3
|
+
/**
|
|
4
|
+
* Return the bottom coordinate of the layout.
|
|
5
|
+
*
|
|
6
|
+
* @param {Array} layout Layout array.
|
|
7
|
+
* @return {Number} Bottom coordinate.
|
|
8
|
+
*/
|
|
9
|
+
export declare function bottom(layout: Layout, colapsedHeight: number): number;
|
|
10
|
+
export declare function cloneLayoutItem(layoutItem: LayoutItem, layoutItemReplaceProps?: Partial<Exclude<LayoutItem, 'i'>>): LayoutItem;
|
|
11
|
+
export declare function cloneLayout(layout: Layout, layoutItemReplaceProps?: Partial<Exclude<LayoutItem, 'i'>>): Layout;
|
|
12
|
+
/**
|
|
13
|
+
* Given two layoutitems, check if they collide.
|
|
14
|
+
*/
|
|
15
|
+
export declare function collides(l1: LayoutItem, l2: LayoutItem, colapsedHeight: number): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Compact an item in the layout.
|
|
18
|
+
*
|
|
19
|
+
* Modifies item.
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
export declare function compactItem(compareWith: Layout, l: LayoutItem, compactType: CompactType, cols: number, fullLayout: Layout, colapsedHeight: number, allowOverlap?: boolean): LayoutItem;
|
|
23
|
+
/**
|
|
24
|
+
* Given a layout, compact it. This involves going down each y coordinate and removing gaps
|
|
25
|
+
* between items.
|
|
26
|
+
*
|
|
27
|
+
* Does not modify layout items (clones). Creates a new layout array.
|
|
28
|
+
*
|
|
29
|
+
* @param {Array} layout Layout.
|
|
30
|
+
* @param {Boolean} verticalCompact Whether or not to compact the layout
|
|
31
|
+
* vertically.
|
|
32
|
+
* @param {Boolean} allowOverlap When `true`, allows overlapping grid items.
|
|
33
|
+
* @return {Array} Compacted Layout.
|
|
34
|
+
*/
|
|
35
|
+
export declare function compact(layout: Layout, compactType: CompactType, cols: number, colapsedHeight: number, allowOverlap?: boolean): Layout;
|
|
36
|
+
/**
|
|
37
|
+
* Get a layout item by ID. Used so we can override later on if necessary.
|
|
38
|
+
*
|
|
39
|
+
* @param {Array} layout Layout array.
|
|
40
|
+
* @param {String} id ID
|
|
41
|
+
* @return {LayoutItem} Item at ID.
|
|
42
|
+
*/
|
|
43
|
+
export declare function getLayoutItem(layout: Layout, id: string): LayoutItem | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* Get all static elements.
|
|
46
|
+
* @param {Array} layout Array of layout objects.
|
|
47
|
+
* @return {Array} Array of static layout items..
|
|
48
|
+
*/
|
|
49
|
+
export declare function getStatics(layout: Layout): Array<LayoutItem>;
|
|
50
|
+
export declare function fastPositionEqual(a: Position, b: Position): boolean;
|
|
51
|
+
export declare function getAllCollisions(layout: Layout, layoutItem: LayoutItem, colapsedHeight: number): Array<LayoutItem>;
|
|
52
|
+
/**
|
|
53
|
+
* Returns the first item this layout collides with.
|
|
54
|
+
* It doesn't appear to matter which order we approach this from, although
|
|
55
|
+
* perhaps that is the wrong thing to do.
|
|
56
|
+
*
|
|
57
|
+
* @param {Object} layoutItem Layout item.
|
|
58
|
+
* @return {Object|undefined} A colliding layout item, or undefined.
|
|
59
|
+
*/
|
|
60
|
+
export declare function getFirstCollision(layout: Layout, layoutItem: LayoutItem, colapsedHeight: number): LayoutItem | undefined;
|
|
61
|
+
export declare function modifyLayout(layout: Layout, layoutItem: LayoutItem): Layout;
|
|
62
|
+
/**
|
|
63
|
+
* This is where the magic needs to happen - given a collision, move an element away from the collision.
|
|
64
|
+
* We attempt to move it up if there's room, otherwise it goes below.
|
|
65
|
+
*
|
|
66
|
+
* @param {Array} layout Full layout to modify.
|
|
67
|
+
* @param {LayoutItem} collidesWith Layout item we're colliding with.
|
|
68
|
+
* @param {LayoutItem} itemToMove Layout item we're moving.
|
|
69
|
+
*/
|
|
70
|
+
export declare function moveElementAwayFromCollision(layout: Layout, collidesWith: LayoutItem, itemToMove: LayoutItem, isUserAction: boolean, compactType: CompactType, cols: number, colapsedHeight: number): Layout;
|
|
71
|
+
/**
|
|
72
|
+
* Move an element. Responsible for doing cascading movements of other elements.
|
|
73
|
+
*
|
|
74
|
+
* Modifies layout items.
|
|
75
|
+
*
|
|
76
|
+
* @param {Array} layout Full layout to modify.
|
|
77
|
+
* @param {LayoutItem} l element to move.
|
|
78
|
+
* @param {Number} [x] X position in grid units.
|
|
79
|
+
* @param {Number} [y] Y position in grid units.
|
|
80
|
+
*/
|
|
81
|
+
export declare function moveElement(layout: Layout, l: LayoutItem, x: number | undefined, y: number | undefined, isUserAction: boolean, preventCollision: boolean, compactType: CompactType, cols: number, colapsedHeight: number, allowOverlap: boolean): Layout;
|
|
82
|
+
/**
|
|
83
|
+
* Helper to convert a number to a percentage string.
|
|
84
|
+
*
|
|
85
|
+
* @param {Number} num Any number
|
|
86
|
+
* @return {String} That number as a percentage.
|
|
87
|
+
*/
|
|
88
|
+
export declare function perc(num: number): string;
|
|
89
|
+
export declare function setTransform({ top, left, width, height }: Position): Record<string, any>;
|
|
90
|
+
export declare function setTopLeft({ top, left, width, height }: Position): Record<string, any>;
|
|
91
|
+
/**
|
|
92
|
+
* Sort layout items by row ascending and column ascending.
|
|
93
|
+
*
|
|
94
|
+
* Does not modify Layout.
|
|
95
|
+
*/
|
|
96
|
+
export declare function sortLayoutItemsByRowCol(layout: Layout): Layout;
|
|
97
|
+
/**
|
|
98
|
+
* Sort layout items by column ascending then row ascending.
|
|
99
|
+
*
|
|
100
|
+
* Does not modify Layout.
|
|
101
|
+
*/
|
|
102
|
+
export declare function sortLayoutItemsByColRow(layout: Layout): Layout;
|
|
103
|
+
/**
|
|
104
|
+
* Get layout items sorted from top left to right and down.
|
|
105
|
+
*
|
|
106
|
+
* @return {Array} Array of layout objects.
|
|
107
|
+
* @return {Array} Layout, sorted static items first.
|
|
108
|
+
*/
|
|
109
|
+
export declare function sortLayoutItems(layout: Layout, compactType: CompactType): Layout;
|
|
110
|
+
export declare function withLayoutItem(layout: Layout, itemKey: string, cb: (l: LayoutItem) => LayoutItem): [Layout, LayoutItem | undefined];
|
|
111
|
+
/**
|
|
112
|
+
* Given a layout, make sure all elements fit within its bounds.
|
|
113
|
+
*
|
|
114
|
+
* Modifies layout items.
|
|
115
|
+
*
|
|
116
|
+
* @param {Array} layout Layout array.
|
|
117
|
+
* @param {Number} bounds Number of columns.
|
|
118
|
+
*/
|
|
119
|
+
export declare function correctBounds(layout: Layout, bounds: {
|
|
120
|
+
cols: number;
|
|
121
|
+
}, colapsedHeight: number): Layout;
|
|
122
|
+
export declare function getH(h: number, colapsedHeight: number, colapsed?: boolean): number;
|
|
123
|
+
export declare function getLayoutItemH(layoutItem: LayoutItem, colapsedHeight: number): number;
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import { styled, generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
2
2
|
import "react";
|
|
3
3
|
import "@m4l/core";
|
|
4
|
-
import "../Icon/index.
|
|
4
|
+
import "../Icon/index.ecb63e65.js";
|
|
5
5
|
import "clsx";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
import "../mui_extended/IconButton/index.
|
|
7
|
+
import "../mui_extended/IconButton/index.fc5b7c2d.js";
|
|
8
8
|
import "@m4l/graphics";
|
|
9
|
-
import "../mui_extended/Accordion/index.
|
|
9
|
+
import "../mui_extended/Accordion/index.12b1339a.js";
|
|
10
10
|
import { T as Typography } from "../mui_extended/Typography/index.443590d6.js";
|
|
11
11
|
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
12
12
|
import "react-router-dom";
|
|
13
13
|
import "@mui/material/Button";
|
|
14
|
-
import "../mui_extended/Button/index.
|
|
14
|
+
import "../mui_extended/Button/index.4288f9fc.js";
|
|
15
|
+
import "../mui_extended/Badge/index.8c2b8b66.js";
|
|
15
16
|
import "../Image/index.c18ebf5a.js";
|
|
16
17
|
import "@mui/lab";
|
|
17
18
|
import "../mui_extended/Popover/index.9f35d0eb.js";
|
|
18
|
-
import "../mui_extended/MenuActions/index.
|
|
19
|
-
import "../mui_extended/Pager/index.
|
|
19
|
+
import "../mui_extended/MenuActions/index.f5b1c022.js";
|
|
20
|
+
import "../mui_extended/Pager/index.435af0df.js";
|
|
20
21
|
import "../mui_extended/Tab/index.9e2f6e34.js";
|
|
21
22
|
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
22
23
|
import { unstable_composeClasses } from "@mui/base";
|
|
@@ -3,7 +3,7 @@ import { styled, generateUtilityClasses, generateUtilityClass, Skeleton } from "
|
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { useEnvironment } from "@m4l/core";
|
|
6
|
-
import { u as useSideBar, g as getNameDataTestId$1 } from "../SideBar/index.
|
|
6
|
+
import { u as useSideBar, g as getNameDataTestId$1 } from "../SideBar/index.c5ce0bad.js";
|
|
7
7
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
8
8
|
import { unstable_composeClasses } from "@mui/base";
|
|
9
9
|
const IconRoot = styled("div")(({
|
|
@@ -3,22 +3,23 @@ import { styled, generateUtilityClasses, generateUtilityClass, Stack, MenuItem }
|
|
|
3
3
|
import { I as Image } from "../Image/index.c18ebf5a.js";
|
|
4
4
|
import { useLocales } from "@m4l/graphics";
|
|
5
5
|
import { useEnvironment, useNetwork } from "@m4l/core";
|
|
6
|
-
import "../Icon/index.
|
|
6
|
+
import "../Icon/index.ecb63e65.js";
|
|
7
7
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
8
8
|
import "clsx";
|
|
9
9
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
10
|
-
import "../mui_extended/IconButton/index.
|
|
11
|
-
import "../mui_extended/Accordion/index.
|
|
10
|
+
import "../mui_extended/IconButton/index.fc5b7c2d.js";
|
|
11
|
+
import "../mui_extended/Accordion/index.12b1339a.js";
|
|
12
12
|
import "../mui_extended/Typography/index.443590d6.js";
|
|
13
13
|
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
14
14
|
import "react-router-dom";
|
|
15
15
|
import "@mui/material/Button";
|
|
16
|
-
import { I as ImageButton } from "../mui_extended/Button/index.
|
|
16
|
+
import { I as ImageButton } from "../mui_extended/Button/index.4288f9fc.js";
|
|
17
17
|
import { C as CircularProgress } from "../mui_extended/CircularProgress/index.ad569afd.js";
|
|
18
|
+
import "../mui_extended/Badge/index.8c2b8b66.js";
|
|
18
19
|
import "@mui/lab";
|
|
19
20
|
import { P as Popover } from "../mui_extended/Popover/index.9f35d0eb.js";
|
|
20
|
-
import "../mui_extended/MenuActions/index.
|
|
21
|
-
import "../mui_extended/Pager/index.
|
|
21
|
+
import "../mui_extended/MenuActions/index.f5b1c022.js";
|
|
22
|
+
import "../mui_extended/Pager/index.435af0df.js";
|
|
22
23
|
import "../mui_extended/Tab/index.9e2f6e34.js";
|
|
23
24
|
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
24
25
|
import { unstable_composeClasses } from "@mui/base";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import clsx from "clsx";
|
|
2
2
|
import { generateUtilityClasses, styled } from "@mui/material";
|
|
3
3
|
import { unstable_composeClasses } from "@mui/base";
|
|
4
|
-
import { g as getComponentUtilityClass } from "../../utils/index.
|
|
4
|
+
import { g as getComponentUtilityClass } from "../../utils/index.c43a95f4.js";
|
|
5
5
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
const LINEAR_PROGRESS_INDETERMINATE_CLASS_NAME = "M4LinearProgressIndeterminate";
|
|
@@ -1,62 +1,14 @@
|
|
|
1
1
|
import { useTheme, Dialog, Paper } from "@mui/material";
|
|
2
|
-
import { c as cjs } from "../../react-draggable.
|
|
3
|
-
import { u as useModal } from "../../hooks/useModal/index.
|
|
4
|
-
import {
|
|
5
|
-
import { a as getThemeVariantColor } from "../../utils/index.008b4c2a.js";
|
|
6
|
-
import { R as ResizeableWindow } from "../Resizeable/index.f6e48e56.js";
|
|
2
|
+
import { c as cjs } from "../../react-draggable.7abb5d0a.js";
|
|
3
|
+
import { u as useModal } from "../../hooks/useModal/index.de522a10.js";
|
|
4
|
+
import { R as ResizeableWindow } from "../Resizeable/index.9a9c79a4.js";
|
|
7
5
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
8
|
-
import { I as Icon } from "../Icon/index.
|
|
6
|
+
import { I as Icon } from "../Icon/index.ecb63e65.js";
|
|
9
7
|
import { useEnvironment } from "@m4l/core";
|
|
10
|
-
import { I as ICONS } from "../areas/icons.
|
|
11
|
-
import { m as modalUtilityClasses } from "../modal/index.
|
|
8
|
+
import { I as ICONS } from "../areas/icons.8266ccc8.js";
|
|
9
|
+
import { m as modalUtilityClasses } from "../modal/index.a0978193.js";
|
|
12
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
-
import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.
|
|
14
|
-
const Container = styled("div")(({ theme }) => ({
|
|
15
|
-
display: "flex",
|
|
16
|
-
flexDirection: "column",
|
|
17
|
-
height: "100%",
|
|
18
|
-
overflow: "hidden",
|
|
19
|
-
padding: theme.spacing(3)
|
|
20
|
-
}));
|
|
21
|
-
styled("div")(({ theme }) => ({
|
|
22
|
-
display: "flex",
|
|
23
|
-
alignItems: "center",
|
|
24
|
-
justifyContent: "space-between",
|
|
25
|
-
minHeight: theme.spacing(5),
|
|
26
|
-
borderBottom: `1px solid ${theme.palette.divider}`,
|
|
27
|
-
overflow: "hidden"
|
|
28
|
-
}));
|
|
29
|
-
styled("div")(({ theme }) => ({
|
|
30
|
-
display: "flex",
|
|
31
|
-
flexDirection: "row",
|
|
32
|
-
flexGrow: 1,
|
|
33
|
-
alignItems: "center",
|
|
34
|
-
cursor: "move",
|
|
35
|
-
...theme.typography.subtitle1,
|
|
36
|
-
color: theme.palette.text.primary
|
|
37
|
-
}));
|
|
38
|
-
styled("div")(({ theme, variant }) => ({
|
|
39
|
-
display: "flex",
|
|
40
|
-
alignItems: "center",
|
|
41
|
-
justifyContent: "center",
|
|
42
|
-
marginRight: theme.spacing(1.5),
|
|
43
|
-
"& > span": {
|
|
44
|
-
background: getThemeVariantColor(theme, variant)
|
|
45
|
-
}
|
|
46
|
-
}));
|
|
47
|
-
styled("div")(() => ({
|
|
48
|
-
flexGrow: 1,
|
|
49
|
-
position: "relative",
|
|
50
|
-
overflow: "auto"
|
|
51
|
-
}));
|
|
52
|
-
styled("div")(({ theme, variant }) => ({
|
|
53
|
-
...theme.typography.subtitle1,
|
|
54
|
-
color: getThemeVariantColor(theme, variant),
|
|
55
|
-
width: "100%",
|
|
56
|
-
whiteSpace: "nowrap",
|
|
57
|
-
textOverflow: "ellipsis",
|
|
58
|
-
overflow: "hidden"
|
|
59
|
-
}));
|
|
11
|
+
import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.3eba9d91.js";
|
|
60
12
|
const DragabblePaperComponent = (props) => {
|
|
61
13
|
return /* @__PURE__ */ jsx(cjs.exports, {
|
|
62
14
|
handle: ".m4l_draggable_handle",
|
|
@@ -100,7 +52,7 @@ const ModalDialog = () => {
|
|
|
100
52
|
const classes = modalUtilityClasses({
|
|
101
53
|
variant
|
|
102
54
|
});
|
|
103
|
-
const contentComnponent = /* @__PURE__ */ jsx(
|
|
55
|
+
const contentComnponent = /* @__PURE__ */ jsx("div", {
|
|
104
56
|
className: classes.containerWindow,
|
|
105
57
|
children: typeof window === "function" ? window() : window
|
|
106
58
|
});
|
|
@@ -2,22 +2,23 @@ import { NavLink as NavLink$1 } from "react-router-dom";
|
|
|
2
2
|
import { generateUtilityClasses, generateUtilityClass, styled } from "@mui/material";
|
|
3
3
|
import "react";
|
|
4
4
|
import "@m4l/core";
|
|
5
|
-
import "../Icon/index.
|
|
5
|
+
import "../Icon/index.ecb63e65.js";
|
|
6
6
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
7
7
|
import "clsx";
|
|
8
8
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
9
|
-
import "../mui_extended/IconButton/index.
|
|
9
|
+
import "../mui_extended/IconButton/index.fc5b7c2d.js";
|
|
10
10
|
import "@m4l/graphics";
|
|
11
|
-
import "../mui_extended/Accordion/index.
|
|
11
|
+
import "../mui_extended/Accordion/index.12b1339a.js";
|
|
12
12
|
import { T as Typography } from "../mui_extended/Typography/index.443590d6.js";
|
|
13
13
|
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
14
14
|
import "@mui/material/Button";
|
|
15
|
-
import "../mui_extended/Button/index.
|
|
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.
|
|
20
|
-
import "../mui_extended/Pager/index.
|
|
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
|
import { unstable_composeClasses } from "@mui/base";
|
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
import { useState, useEffect, useCallback, useMemo } from "react";
|
|
2
2
|
import { useNetwork, useModuleDictionary, useEnvironment, usePaginate } from "@m4l/core";
|
|
3
3
|
import { styled } from "@mui/material/styles";
|
|
4
|
-
import { D as DataGrid, g as getDataGridComponentsDictionary } from "../DataGrid/index.
|
|
4
|
+
import { D as DataGrid, g as getDataGridComponentsDictionary } from "../DataGrid/index.545b492f.js";
|
|
5
5
|
import { D as DateFormatter } from "../formatters/DateFormatter/index.578a9f53.js";
|
|
6
6
|
import { Tooltip, IconButton } from "@mui/material";
|
|
7
7
|
import { useHostTheme, useResponsiveDesktop } from "@m4l/graphics";
|
|
8
8
|
import { R as ReactJson } from "../../react-json-view.57125fcf.js";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
-
import { u as useModal } from "../../hooks/useModal/index.
|
|
11
|
-
import { I as Icon } from "../Icon/index.
|
|
12
|
-
import "../../react-draggable.
|
|
13
|
-
import "../
|
|
14
|
-
import "../
|
|
15
|
-
import "../
|
|
16
|
-
import "../CommonActions/components/Actions/index.e376a68e.js";
|
|
10
|
+
import { u as useModal } from "../../hooks/useModal/index.de522a10.js";
|
|
11
|
+
import { I as Icon } from "../Icon/index.ecb63e65.js";
|
|
12
|
+
import "../../react-draggable.7abb5d0a.js";
|
|
13
|
+
import "../Resizeable/index.9a9c79a4.js";
|
|
14
|
+
import "../modal/index.a0978193.js";
|
|
15
|
+
import "../CommonActions/components/Actions/index.3eba9d91.js";
|
|
17
16
|
import "@mui/material/Button";
|
|
18
|
-
import "../mui_extended/Button/index.
|
|
17
|
+
import "../mui_extended/Button/index.4288f9fc.js";
|
|
19
18
|
import "clsx";
|
|
20
19
|
import "react-hook-form";
|
|
21
|
-
import "../mui_extended/IconButton/index.
|
|
20
|
+
import "../mui_extended/IconButton/index.fc5b7c2d.js";
|
|
22
21
|
import "zustand";
|
|
23
|
-
import "../areas/contexts/AreasContext/index.
|
|
24
|
-
import "../areas/components/AreasAdmin/index.
|
|
22
|
+
import "../areas/contexts/AreasContext/index.c8147e8e.js";
|
|
23
|
+
import "../areas/components/AreasAdmin/index.cc4cbf56.js";
|
|
25
24
|
import "zustand/shallow";
|
|
26
25
|
import "../ScrollBar/index.bbe48f4d.js";
|
|
27
|
-
import "../mui_extended/Accordion/index.
|
|
26
|
+
import "../mui_extended/Accordion/index.12b1339a.js";
|
|
28
27
|
import "../mui_extended/Typography/index.443590d6.js";
|
|
29
28
|
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
30
29
|
import "react-router-dom";
|
|
30
|
+
import "../mui_extended/Badge/index.8c2b8b66.js";
|
|
31
31
|
import "../Image/index.c18ebf5a.js";
|
|
32
32
|
import "@mui/lab";
|
|
33
33
|
import "../mui_extended/Popover/index.9f35d0eb.js";
|
|
34
|
-
import "../mui_extended/MenuActions/index.
|
|
35
|
-
import "../mui_extended/Pager/index.
|
|
34
|
+
import "../mui_extended/MenuActions/index.f5b1c022.js";
|
|
35
|
+
import "../mui_extended/Pager/index.435af0df.js";
|
|
36
36
|
import "../mui_extended/Tab/index.9e2f6e34.js";
|
|
37
37
|
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
38
|
-
import "../areas/components/AreasViewer/index.
|
|
39
|
-
import "../LinearProgressIndeterminate/index.
|
|
38
|
+
import "../areas/components/AreasViewer/index.9c2aaaeb.js";
|
|
39
|
+
import "../LinearProgressIndeterminate/index.60dabc06.js";
|
|
40
40
|
import "../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
41
41
|
import "../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
42
|
-
import { W as WindowBase } from "../modal/WindowBase.
|
|
43
|
-
import { D as DynamicFilter, g as getDynamicFilterComponentsDictionary } from "../DynamicFilter/index.
|
|
42
|
+
import { W as WindowBase } from "../modal/WindowBase.850ea31a.js";
|
|
43
|
+
import { D as DynamicFilter, g as getDynamicFilterComponentsDictionary } from "../DynamicFilter/index.d7be0f37.js";
|
|
44
44
|
const Container$1 = styled("div")(() => ({
|
|
45
45
|
height: "100%",
|
|
46
46
|
width: "100%",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { styled } from "@mui/material/styles";
|
|
2
2
|
import { useModuleSkeleton } from "@m4l/core";
|
|
3
3
|
import { Skeleton, generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
4
|
-
import { I as Icon } from "../Icon/index.
|
|
4
|
+
import { I as Icon } from "../Icon/index.ecb63e65.js";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { unstable_composeClasses } from "@mui/base";
|
|
7
7
|
const PaperFormRoot = styled("div")(({
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import { useModuleDictionary, useModuleSkeleton, useEnvironment } from "@m4l/core";
|
|
2
2
|
import { styled, generateUtilityClasses, generateUtilityClass, Autocomplete, TextField, Skeleton } from "@mui/material";
|
|
3
3
|
import { useMemo } from "react";
|
|
4
|
-
import { I as Icon } from "../Icon/index.
|
|
5
|
-
import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.
|
|
4
|
+
import { I as Icon } from "../Icon/index.ecb63e65.js";
|
|
5
|
+
import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.3eba9d91.js";
|
|
6
6
|
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import "@mui/material/Button";
|
|
8
|
-
import "../mui_extended/Button/index.
|
|
8
|
+
import "../mui_extended/Button/index.4288f9fc.js";
|
|
9
9
|
import "clsx";
|
|
10
10
|
import "react-hook-form";
|
|
11
|
-
import "../../contexts/ModalContext/index.
|
|
12
|
-
import "../../react-draggable.
|
|
13
|
-
import "../
|
|
14
|
-
import "../Resizeable/index.f6e48e56.js";
|
|
11
|
+
import "../../contexts/ModalContext/index.dee85a61.js";
|
|
12
|
+
import "../../react-draggable.7abb5d0a.js";
|
|
13
|
+
import "../Resizeable/index.9a9c79a4.js";
|
|
15
14
|
import "@m4l/graphics";
|
|
16
|
-
import "../modal/index.
|
|
15
|
+
import "../modal/index.a0978193.js";
|
|
17
16
|
import "../Image/index.c18ebf5a.js";
|
|
18
|
-
import "../mui_extended/IconButton/index.
|
|
19
|
-
import "../mui_extended/Accordion/index.
|
|
17
|
+
import "../mui_extended/IconButton/index.fc5b7c2d.js";
|
|
18
|
+
import "../mui_extended/Accordion/index.12b1339a.js";
|
|
20
19
|
import { T as Typography } from "../mui_extended/Typography/index.443590d6.js";
|
|
21
20
|
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
22
21
|
import "react-router-dom";
|
|
22
|
+
import "../mui_extended/Badge/index.8c2b8b66.js";
|
|
23
23
|
import "@mui/lab";
|
|
24
24
|
import "../mui_extended/Popover/index.9f35d0eb.js";
|
|
25
|
-
import "../mui_extended/MenuActions/index.
|
|
26
|
-
import "../mui_extended/Pager/index.
|
|
25
|
+
import "../mui_extended/MenuActions/index.f5b1c022.js";
|
|
26
|
+
import "../mui_extended/Pager/index.435af0df.js";
|
|
27
27
|
import "../mui_extended/Tab/index.9e2f6e34.js";
|
|
28
28
|
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
29
29
|
import "zustand";
|
|
30
|
-
import "../areas/contexts/AreasContext/index.
|
|
31
|
-
import "../areas/components/AreasAdmin/index.
|
|
30
|
+
import "../areas/contexts/AreasContext/index.c8147e8e.js";
|
|
31
|
+
import "../areas/components/AreasAdmin/index.cc4cbf56.js";
|
|
32
32
|
import "zustand/shallow";
|
|
33
33
|
import "../ScrollBar/index.bbe48f4d.js";
|
|
34
|
-
import "../areas/components/AreasViewer/index.
|
|
35
|
-
import "../LinearProgressIndeterminate/index.
|
|
34
|
+
import "../areas/components/AreasViewer/index.9c2aaaeb.js";
|
|
35
|
+
import "../LinearProgressIndeterminate/index.60dabc06.js";
|
|
36
36
|
import "../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
37
37
|
import "../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
38
38
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
@@ -95,14 +95,13 @@ var ETimePeriods = /* @__PURE__ */ ((ETimePeriods2) => {
|
|
|
95
95
|
ETimePeriods2[ETimePeriods2["DAYS"] = 2] = "DAYS";
|
|
96
96
|
return ETimePeriods2;
|
|
97
97
|
})(ETimePeriods || {});
|
|
98
|
-
const PERIOD_FORMATTER_DICTIONARY_KEY = `period_formatter`;
|
|
99
98
|
const dictionary = {
|
|
100
|
-
LABEL_YEARS:
|
|
101
|
-
LABEL_MONTHS:
|
|
102
|
-
LABEL_DAYS:
|
|
99
|
+
LABEL_YEARS: "period.label_years",
|
|
100
|
+
LABEL_MONTHS: "period.label_months",
|
|
101
|
+
LABEL_DAYS: "period.label_days"
|
|
103
102
|
};
|
|
104
103
|
function getPeriodComponetsDictionary() {
|
|
105
|
-
return ["
|
|
104
|
+
return ["period"].concat(getCommonActionsDictionary());
|
|
106
105
|
}
|
|
107
106
|
const componentName = "M4LPeriod";
|
|
108
107
|
generateUtilityClasses(componentName, [
|
|
@@ -231,7 +230,7 @@ const Period = (props) => {
|
|
|
231
230
|
children: /* @__PURE__ */ jsx(Typography, {
|
|
232
231
|
variant: "body",
|
|
233
232
|
skeletonWidth: "50%",
|
|
234
|
-
children: value.selPeriodTime
|
|
233
|
+
children: value.selPeriodTime === 0 ? getLabel(dictionary.LABEL_YEARS) : value.selPeriodTime === 1 ? getLabel(dictionary.LABEL_MONTHS) : value.selPeriodTime === 2 ? getLabel(dictionary.LABEL_DAYS) : null
|
|
235
234
|
})
|
|
236
235
|
}), /* @__PURE__ */ jsx(Gap, {
|
|
237
236
|
className: classes.gap,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { styled } from "@mui/material/styles";
|
|
2
|
-
import {
|
|
2
|
+
import { a as ResizableBox } from "../../react-resizable.ba08699a.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
const WrapperResizeable = styled(ResizableBox)(({
|
|
5
5
|
theme
|
|
@@ -3,17 +3,17 @@ import { useEnvironment } from "@m4l/core";
|
|
|
3
3
|
import { createContext, useContext, useState } from "react";
|
|
4
4
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
5
5
|
import { I as Image } from "../Image/index.c18ebf5a.js";
|
|
6
|
-
import { I as IconButton } from "../mui_extended/IconButton/index.
|
|
6
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.fc5b7c2d.js";
|
|
7
7
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
8
8
|
import { styled as styled$1, generateUtilityClasses, ListItemText, ListItemButton, Collapse, useTheme, Skeleton, Drawer as Drawer$1 } from "@mui/material";
|
|
9
|
-
import { I as Icon, A as ArrowIcon } from "../Icon/index.
|
|
9
|
+
import { I as Icon, A as ArrowIcon } from "../Icon/index.ecb63e65.js";
|
|
10
10
|
import { T as Typography } from "../mui_extended/Typography/index.443590d6.js";
|
|
11
11
|
import clsx from "clsx";
|
|
12
12
|
import { P as Popover } from "../mui_extended/Popover/index.9f35d0eb.js";
|
|
13
13
|
import { S as ScrollBar } from "../ScrollBar/index.bbe48f4d.js";
|
|
14
14
|
import { styled, alpha } from "@mui/material/styles";
|
|
15
15
|
import { unstable_composeClasses } from "@mui/base";
|
|
16
|
-
import { g as getComponentUtilityClass } from "../../utils/index.
|
|
16
|
+
import { g as getComponentUtilityClass } from "../../utils/index.c43a95f4.js";
|
|
17
17
|
const SideBarRoot = styled("div")(({
|
|
18
18
|
theme
|
|
19
19
|
}) => ({
|
|
@@ -850,8 +850,8 @@ const ContentDesktop = () => {
|
|
|
850
850
|
[TEST_PROP_ID]: getNameDataTestId("containerLogo")
|
|
851
851
|
} : {},
|
|
852
852
|
children: [/* @__PURE__ */ jsx(Image, {
|
|
853
|
-
width: "
|
|
854
|
-
height: "
|
|
853
|
+
width: "60px",
|
|
854
|
+
height: "60px",
|
|
855
855
|
src: companyLogoSmallUrl,
|
|
856
856
|
alt: "logo"
|
|
857
857
|
}, "Logo"), /* @__PURE__ */ jsx(Typography, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AreasAdmninClasses } from './types';
|
|
2
2
|
import { OwnerState } from '../../../contexts/AreasContext/types';
|
|
3
3
|
export declare const areasAdminClasses: AreasAdmninClasses;
|
|
4
|
-
export declare const useAreasAdminUtilityClasses: (ownerState: OwnerState) => Record<"root" | "areaChipRoot" | "areaIconLayer" | "areaContainerChips" | "areaEditPopover" | "areaChipMobileRoot" | "areaChipMobileIconContainer" | "areaChipTitle" | "areaContainerChipEditButton" | "areaChipDeleteButton" | "areaChipEditButton" | "areasAddButton", string>;
|
|
4
|
+
export declare const useAreasAdminUtilityClasses: (ownerState: OwnerState) => Record<"root" | "areaChipRoot" | "areaIconLayer" | "areaContainerChips" | "areaEditPopover" | "areaChipMobileRoot" | "areaChipMobileIconContainer" | "areaChipTitle" | "areaContainerChipEditButton" | "areaChipDeleteButton" | "areaChipEditButton" | "areasAddButton" | "areasPopoverMobileOptions" | "areasPopoverListWindows", string>;
|
|
5
5
|
export declare type AdminClasses = ReturnType<typeof useAreasAdminUtilityClasses>;
|
|
@@ -11,6 +11,8 @@ export interface AreasAdmninClasses {
|
|
|
11
11
|
areaChipDeleteButton: string;
|
|
12
12
|
areaChipEditButton: string;
|
|
13
13
|
areasAddButton: string;
|
|
14
|
+
areasPopoverMobileOptions: string;
|
|
15
|
+
areasPopoverListWindows: string;
|
|
14
16
|
selected: string;
|
|
15
17
|
isMobile: string;
|
|
16
18
|
disabled: string;
|