@m4l/components 0.1.87 → 0.1.89
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 +84 -112
- package/components/AccountPopover/{index.0bee6fca.js → index.bb2c369d.js} +7 -7
- package/components/AppBar/{index.8e3e0148.js → index.58233583.js} +7 -7
- package/components/CommonActions/components/ActionCancel/{index.e66f9b5f.js → index.ffc5618a.js} +1 -1
- package/components/CommonActions/components/ActionFormCancel/{index.51311bde.js → index.baa35ca3.js} +15 -15
- package/components/CommonActions/components/ActionFormIntro/{index.2ecd7ba1.js → index.906d46a0.js} +1 -1
- package/components/CommonActions/components/ActionIntro/{index.33892c01.js → index.81d2648b.js} +1 -1
- package/components/CommonActions/components/Actions/{index.018d4c62.js → index.366cb775.js} +13 -13
- package/components/DataGrid/formatters/columnNestedValueFormatter/{index.f68ef4e1.js → index.b63f7246.js} +3 -1
- package/components/DataGrid/{index.c348b106.js → index.8c887df9.js} +7 -7
- package/components/DataGrid/subcomponents/Actions/{index.080e8c7d.js → index.895fc73f.js} +25 -23
- package/components/DynamicFilter/dictionary.d.ts +6 -2
- package/components/DynamicFilter/{index.20ee6e21.js → index.d2e7bdcc.js} +56 -53
- package/components/GridLayout/{index.2383aaf9.js → index.8ae34c50.js} +25 -16
- package/components/GridLayout/subcomponents/Griditem/{index.58168132.js → index.c7a33781.js} +1 -1
- package/components/GridLayout/subcomponents/Responsive/{index.a6642437.js → index.96cdb1b4.js} +1 -2
- package/components/HelperText/{index.d00b45e5.js → index.69791151.js} +7 -7
- package/components/Icon/{index.435df215.js → index.a70c4729.js} +1 -1
- package/components/LanguagePopover/{index.3f25054a.js → index.349d359c.js} +7 -7
- package/components/ModalDialog/{index.df9b1e97.js → index.302a87c9.js} +5 -15
- package/components/NavLink/{index.cc66f31f.js → index.8fe407ef.js} +7 -7
- package/components/NoItemSelected/{index.a2807715.js → index.1eaf72d8.js} +7 -8
- package/components/ObjectLogs/{index.ca98686d.js → index.98d3400e.js} +17 -17
- package/components/PaperForm/{index.ad703ab6.js → index.e02c772c.js} +3 -14
- package/components/Period/{index.83b88249.js → index.972dbe64.js} +14 -14
- package/components/PropertyValue/{index.45b365c3.js → index.d3d71d50.js} +5 -4
- package/components/Resizeable/{index.9a9c79a4.js → index.676c96fe.js} +33 -12
- package/components/SideBar/{index.387a2fa1.js → index.2dfc5445.js} +2 -2
- package/components/areas/components/AreasAdmin/classes/index.d.ts +1 -1
- package/components/areas/components/AreasAdmin/classes/types.d.ts +1 -0
- package/components/areas/components/AreasAdmin/{index.f0fd024a.js → index.cb3d7bd6.js} +44 -40
- package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/{index.6c28b2c0.js → index.1eef603d.js} +68 -77
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/helper.d.ts +2 -0
- package/components/areas/components/{index.d920205b.js → index.44ec162f.js} +10 -10
- package/components/areas/contexts/AreasContext/{index.060aa7b0.js → index.7a2d5394.js} +9 -15
- package/components/areas/contexts/{index.1485986f.js → index.7bae4208.js} +1 -1
- package/components/areas/{dictionary.afb7e3d9.js → dictionary.08cfc4c9.js} +7 -1
- package/components/areas/dictionary.d.ts +6 -0
- package/components/areas/hooks/useAreas/{index.e4e54402.js → index.1f112e0b.js} +1 -1
- package/components/areas/{index.e9f2274c.js → index.aaaa1f62.js} +10 -10
- package/components/formatters/BooleanFormatter/{index.14cfcbc7.js → index.a013b080.js} +1 -1
- package/components/formatters/{index.b574dda9.js → index.576922c9.js} +2 -2
- package/components/hook-form/RHFAutocomplete/{index.f4eb65ce.js → index.5c23bd25.js} +8 -9
- package/components/hook-form/RHFAutocompleteAsync/{index.8ecce8fd.js → index.85b11f3a.js} +1 -1
- package/components/hook-form/RHFCheckbox/{index.45b6ee0b.js → index.a136882e.js} +9 -8
- package/components/hook-form/RHFDateTime/{index.802fb228.js → index.1ca795b0.js} +8 -10
- package/components/hook-form/RHFPeriod/{index.6395b24a.js → index.90777c53.js} +2 -2
- package/components/hook-form/RHFTextField/{index.75129118.js → index.ccea64e7.js} +3 -3
- package/components/hook-form/RHFUpload/{index.fead1c63.js → index.85e59119.js} +8 -8
- package/components/modal/{WindowBase.f568bcac.js → WindowBase.39a70f35.js} +21 -17
- package/components/modal/{WindowConfirm.3c4da58c.js → WindowConfirm.f53c02f6.js} +29 -19
- package/components/modal/classes/index.d.ts +2 -0
- package/components/modal/classes/types.d.ts +2 -0
- package/components/modal/dictionary.d.ts +1 -0
- package/components/modal/index.d.ts +1 -0
- package/components/modal/{index.8d846036.js → index.dbdb6ac0.js} +24 -16
- package/components/mui_extended/Accordion/{index.1d182a0e.js → index.0e0090ca.js} +3 -3
- package/components/mui_extended/Badge/{index.8c2b8b66.js → index.b09524fe.js} +1 -1
- package/components/mui_extended/Badge/types.d.ts +1 -1
- package/components/mui_extended/IconButton/{index.d88a3f2e.js → index.76624519.js} +2 -2
- package/components/mui_extended/MenuActions/classes/constants.d.ts +1 -0
- package/components/mui_extended/MenuActions/classes/index.d.ts +7 -0
- package/components/mui_extended/MenuActions/classes/types.d.ts +7 -0
- package/components/mui_extended/MenuActions/{index.c53370f6.js → index.4c2e48d4.js} +42 -11
- package/components/mui_extended/MenuActions/types.d.ts +2 -0
- package/components/mui_extended/Pager/{index.d6c87c44.js → index.ac2a21f0.js} +1 -1
- package/components/mui_extended/Tab/{index.8592b93c.js → index.3db2e0c7.js} +37 -5
- package/components/mui_extended/TabContent/TabContent.d.ts +3 -0
- package/components/mui_extended/TabContent/classes/constants.d.ts +1 -0
- package/components/mui_extended/TabContent/classes/index.d.ts +6 -0
- package/components/mui_extended/TabContent/classes/types.d.ts +6 -0
- package/components/mui_extended/TabContent/index.d.ts +2 -0
- package/components/mui_extended/TabContent/types.d.ts +6 -0
- package/components/mui_extended/{index.5ffe6d2b.js → index.9e8aeca8.js} +7 -7
- package/components/mui_extended/index.d.ts +1 -0
- package/contexts/ModalContext/{index.9fb8e0a2.js → index.1fc9f5d9.js} +3 -1
- package/contexts/RHFormContext/{index.ea2758ed.js → index.1755b324.js} +4 -7
- package/hooks/useFormAddEdit/{index.3f77d470.js → index.4906dbb4.js} +15 -14
- package/hooks/useModal/{index.caaeaddd.js → index.6457198c.js} +1 -1
- package/index.js +65 -63
- package/package.json +1 -1
- package/{vendor.15beabcd.js → vendor.92191f81.js} +53 -53
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { M as MenuActions } from "../../../mui_extended/MenuActions/index.
|
|
2
|
-
import { u as useDataGrid, a as useFilters, d as dataGridClasses, D as DataGridRoot, b as dictionary } from "../../index.
|
|
1
|
+
import { M as MenuActions } from "../../../mui_extended/MenuActions/index.4c2e48d4.js";
|
|
2
|
+
import { u as useDataGrid, a as useFilters, d as dataGridClasses, D as DataGridRoot, b as dictionary } from "../../index.8c887df9.js";
|
|
3
3
|
import { useTheme, Checkbox, Skeleton } from "@mui/material";
|
|
4
4
|
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
5
|
-
import { P as Pager } from "../../../mui_extended/Pager/index.
|
|
6
|
-
import { I as IconButton } from "../../../mui_extended/IconButton/index.
|
|
5
|
+
import { P as Pager } from "../../../mui_extended/Pager/index.ac2a21f0.js";
|
|
6
|
+
import { I as IconButton } from "../../../mui_extended/IconButton/index.76624519.js";
|
|
7
7
|
import { useEnvironment, useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
8
8
|
import { forwardRef, useRef, useState, useImperativeHandle, useMemo, useEffect, useCallback } from "react";
|
|
9
9
|
import { D as DataGrid$1 } from "../../../../react-data-grid.d46d625e.js";
|
|
10
10
|
import { styled } from "@mui/material/styles";
|
|
11
|
-
import { u as useModal } from "../../../../hooks/useModal/index.
|
|
12
|
-
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.
|
|
13
|
-
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.
|
|
11
|
+
import { u as useModal } from "../../../../hooks/useModal/index.6457198c.js";
|
|
12
|
+
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.ffc5618a.js";
|
|
13
|
+
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.81d2648b.js";
|
|
14
14
|
import "../../../../react-draggable.7abb5d0a.js";
|
|
15
|
-
import "../../../Resizeable/index.
|
|
15
|
+
import "../../../Resizeable/index.676c96fe.js";
|
|
16
16
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
17
|
-
import "../../../
|
|
18
|
-
import "
|
|
19
|
-
import "../../../modal/index.8d846036.js";
|
|
20
|
-
import { A as Actions$1 } from "../../../CommonActions/components/Actions/index.018d4c62.js";
|
|
17
|
+
import "../../../modal/index.dbdb6ac0.js";
|
|
18
|
+
import { A as Actions$1 } from "../../../CommonActions/components/Actions/index.366cb775.js";
|
|
21
19
|
import "react-hook-form";
|
|
22
20
|
import "@mui/material/Button";
|
|
23
21
|
import "../../../mui_extended/Button/index.f79eb74e.js";
|
|
22
|
+
import "clsx";
|
|
24
23
|
import "zustand";
|
|
25
|
-
import "../../../areas/contexts/AreasContext/index.
|
|
26
|
-
import "../../../areas/components/AreasAdmin/index.
|
|
24
|
+
import "../../../areas/contexts/AreasContext/index.7a2d5394.js";
|
|
25
|
+
import "../../../areas/components/AreasAdmin/index.cb3d7bd6.js";
|
|
27
26
|
import "zustand/shallow";
|
|
28
27
|
import "../../../ScrollBar/index.65bb2930.js";
|
|
29
|
-
import "../../../mui_extended/Accordion/index.
|
|
28
|
+
import "../../../mui_extended/Accordion/index.0e0090ca.js";
|
|
29
|
+
import "../../../Icon/index.a70c4729.js";
|
|
30
30
|
import "../../../mui_extended/Typography/index.443590d6.js";
|
|
31
31
|
import "../../../mui_extended/Avatar/index.75e6ed57.js";
|
|
32
32
|
import "react-router-dom";
|
|
33
33
|
import "../../../mui_extended/CheckBox.38abccd8.js";
|
|
34
|
-
import "../../../mui_extended/Badge/index.
|
|
34
|
+
import "../../../mui_extended/Badge/index.b09524fe.js";
|
|
35
35
|
import "../../../Image/index.c18ebf5a.js";
|
|
36
36
|
import "@mui/lab";
|
|
37
37
|
import "../../../mui_extended/Popover/index.9f35d0eb.js";
|
|
38
38
|
import "../../../mui_extended/Stack/index.0e53197c.js";
|
|
39
|
-
import "../../../mui_extended/Tab/index.
|
|
39
|
+
import "../../../mui_extended/Tab/index.3db2e0c7.js";
|
|
40
40
|
import "../../../mui_extended/Tooltip/index.5a795dcd.js";
|
|
41
|
-
import "../../../areas/components/AreasViewer/index.
|
|
41
|
+
import "../../../areas/components/AreasViewer/index.1eef603d.js";
|
|
42
42
|
import "../../../LinearProgressIndeterminate/index.60dabc06.js";
|
|
43
43
|
import "../../../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
44
44
|
import "../../../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
45
|
-
import { W as WindowBase } from "../../../modal/WindowBase.
|
|
45
|
+
import { W as WindowBase } from "../../../modal/WindowBase.39a70f35.js";
|
|
46
46
|
const ACTIONS_COLUMN_KEY = "actions-row";
|
|
47
47
|
function ActionsFormatter(props) {
|
|
48
48
|
const {
|
|
@@ -121,9 +121,9 @@ styled("div")(({ theme }) => ({
|
|
|
121
121
|
fontSize: theme.typography.h4.fontSize
|
|
122
122
|
}));
|
|
123
123
|
const DivSelColumns = styled("div")(({ theme }) => ({
|
|
124
|
-
...theme.typography.
|
|
124
|
+
...theme.typography.bodyDens,
|
|
125
125
|
color: theme.palette.text.primary,
|
|
126
|
-
padding:
|
|
126
|
+
padding: `16px 8px`
|
|
127
127
|
}));
|
|
128
128
|
const WrapperDataGrid = styled("div")(() => ({
|
|
129
129
|
position: "relative",
|
|
@@ -136,8 +136,9 @@ styled("div")(() => ({
|
|
|
136
136
|
display: "flex",
|
|
137
137
|
flexDirection: "row"
|
|
138
138
|
}));
|
|
139
|
-
const ColumnActions = styled("div")((
|
|
140
|
-
paddingTop:
|
|
139
|
+
const ColumnActions = styled("div")(() => ({
|
|
140
|
+
paddingTop: "16px",
|
|
141
|
+
paddingBottom: "8px",
|
|
141
142
|
display: "flex",
|
|
142
143
|
flexDirection: "row"
|
|
143
144
|
}));
|
|
@@ -458,6 +459,7 @@ function Settings() {
|
|
|
458
459
|
fullScreen: !isDesktop ? true : false,
|
|
459
460
|
window: /* @__PURE__ */ jsxs(WindowBase, {
|
|
460
461
|
title: getLabel("data_grid.settings_title"),
|
|
462
|
+
urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/configuration.svg`,
|
|
461
463
|
children: [/* @__PURE__ */ jsx(DataGridRoot, {
|
|
462
464
|
className: classes.root,
|
|
463
465
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -3,8 +3,8 @@ export declare function getDynamicFilterComponentsDictionary(): string[];
|
|
|
3
3
|
export declare const LABEL_FILTER_BUTTON = "filter_tooltip";
|
|
4
4
|
export declare const DICCTIONARY: {
|
|
5
5
|
readonly input_placeholder: "input_placeholder";
|
|
6
|
-
readonly operand_true: "
|
|
7
|
-
readonly operand_false: "
|
|
6
|
+
readonly operand_true: "operand_true";
|
|
7
|
+
readonly operand_false: "operand_false";
|
|
8
8
|
readonly filter_tooltip_refresh: "filter_tooltip_refresh";
|
|
9
9
|
readonly filter_tooltip_dirty: "filter_tooltip_dirty";
|
|
10
10
|
readonly filter_tooltip_invalid: "filter_tooltip_invalid";
|
|
@@ -27,6 +27,10 @@ export declare const DICCTIONARY: {
|
|
|
27
27
|
readonly label_operand2_number: "label_operand2_number";
|
|
28
28
|
readonly label_operator_string: "label_operator_string";
|
|
29
29
|
readonly label_operand1_string: "label_operand1_string";
|
|
30
|
+
readonly operator_required: "operator_required";
|
|
31
|
+
readonly error_invalid_date: "error_invalid_date";
|
|
32
|
+
readonly error_less_than_start: "error_less_than_start";
|
|
33
|
+
readonly error_operand_required: "error_operand_required";
|
|
30
34
|
};
|
|
31
35
|
export declare type TypeDictionary = typeof DICCTIONARY;
|
|
32
36
|
export declare const getDynamicFilterDictionary: (key: keyof TypeDictionary) => string;
|
|
@@ -4,42 +4,42 @@ import { useContext, useMemo, useEffect, createContext, useRef, createElement, u
|
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { useModuleDictionary, useEnvironment, useModuleSkeleton, useFlagsPresent, CommonFlags } from "@m4l/core";
|
|
6
6
|
import { useResponsiveDesktop, useFirstRender, useFormatter } from "@m4l/graphics";
|
|
7
|
-
import { I as IconButton } from "../mui_extended/IconButton/index.
|
|
7
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.76624519.js";
|
|
8
8
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
9
|
-
import { g as getNameDataTestId } from "../../vendor.
|
|
9
|
+
import { g as getNameDataTestId } from "../../vendor.92191f81.js";
|
|
10
10
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
11
11
|
import { generateUtilityClasses, alpha, styled as styled$1, Skeleton, MenuItem } from "@mui/material";
|
|
12
|
-
import { L as LabelMemuItem } from "../mui_extended/MenuActions/index.
|
|
12
|
+
import { L as LabelMemuItem } from "../mui_extended/MenuActions/index.4c2e48d4.js";
|
|
13
13
|
import { P as Popover } from "../mui_extended/Popover/index.9f35d0eb.js";
|
|
14
|
-
import { I as Icon } from "../Icon/index.
|
|
14
|
+
import { I as Icon } from "../Icon/index.a70c4729.js";
|
|
15
15
|
import { styled, useTheme } from "@mui/material/styles";
|
|
16
|
-
import { R as RHFormProvider } from "../../contexts/RHFormContext/index.
|
|
17
|
-
import { g as getCommonActionsDictionary, A as Actions } from "../CommonActions/components/Actions/index.
|
|
18
|
-
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.
|
|
19
|
-
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.
|
|
16
|
+
import { R as RHFormProvider } from "../../contexts/RHFormContext/index.1755b324.js";
|
|
17
|
+
import { g as getCommonActionsDictionary, A as Actions } from "../CommonActions/components/Actions/index.366cb775.js";
|
|
18
|
+
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.ffc5618a.js";
|
|
19
|
+
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.81d2648b.js";
|
|
20
20
|
import { useFormContext, useWatch } from "react-hook-form";
|
|
21
21
|
import "@mui/material/Button";
|
|
22
22
|
import "../mui_extended/Button/index.f79eb74e.js";
|
|
23
|
-
import "../../contexts/ModalContext/index.
|
|
23
|
+
import "../../contexts/ModalContext/index.1fc9f5d9.js";
|
|
24
24
|
import "../../react-draggable.7abb5d0a.js";
|
|
25
|
-
import "../Resizeable/index.
|
|
26
|
-
import "../modal/index.
|
|
25
|
+
import "../Resizeable/index.676c96fe.js";
|
|
26
|
+
import "../modal/index.dbdb6ac0.js";
|
|
27
27
|
import "../Image/index.c18ebf5a.js";
|
|
28
|
-
import "../mui_extended/Accordion/index.
|
|
28
|
+
import "../mui_extended/Accordion/index.0e0090ca.js";
|
|
29
29
|
import { T as Typography } from "../mui_extended/Typography/index.443590d6.js";
|
|
30
30
|
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
31
31
|
import "react-router-dom";
|
|
32
32
|
import "../mui_extended/CheckBox.38abccd8.js";
|
|
33
|
-
import "../mui_extended/Badge/index.
|
|
33
|
+
import "../mui_extended/Badge/index.b09524fe.js";
|
|
34
34
|
import "@mui/lab";
|
|
35
35
|
import "../mui_extended/Stack/index.0e53197c.js";
|
|
36
|
-
import "../mui_extended/Tab/index.
|
|
37
|
-
import "../mui_extended/Pager/index.
|
|
36
|
+
import "../mui_extended/Tab/index.3db2e0c7.js";
|
|
37
|
+
import "../mui_extended/Pager/index.ac2a21f0.js";
|
|
38
38
|
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
39
39
|
import { useStore, createStore } from "zustand";
|
|
40
|
-
import "../areas/contexts/AreasContext/index.
|
|
41
|
-
import "../areas/components/AreasAdmin/index.
|
|
42
|
-
import "../areas/components/AreasViewer/index.
|
|
40
|
+
import "../areas/contexts/AreasContext/index.7a2d5394.js";
|
|
41
|
+
import "../areas/components/AreasAdmin/index.cb3d7bd6.js";
|
|
42
|
+
import "../areas/components/AreasViewer/index.1eef603d.js";
|
|
43
43
|
import "../LinearProgressIndeterminate/index.60dabc06.js";
|
|
44
44
|
import "../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
45
45
|
import "../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
@@ -47,19 +47,19 @@ import { unstable_composeClasses } from "@mui/base";
|
|
|
47
47
|
import { g as getComponentUtilityClass, i as isValidDate } from "../../utils/index.c43a95f4.js";
|
|
48
48
|
import { devtools } from "zustand/middleware";
|
|
49
49
|
import { immer } from "zustand/middleware/immer";
|
|
50
|
-
import { R as RHFAutocomplete } from "../hook-form/RHFAutocomplete/index.
|
|
50
|
+
import { g as getRHFAutocompleteComponentsDictionary, R as RHFAutocomplete } from "../hook-form/RHFAutocomplete/index.5c23bd25.js";
|
|
51
51
|
import "lodash/debounce";
|
|
52
|
-
import "../hook-form/RHFAutocompleteAsync/index.
|
|
53
|
-
import "../hook-form/RHFCheckbox/index.
|
|
54
|
-
import "../HelperText/index.
|
|
52
|
+
import "../hook-form/RHFAutocompleteAsync/index.85b11f3a.js";
|
|
53
|
+
import "../hook-form/RHFCheckbox/index.a136882e.js";
|
|
54
|
+
import "../HelperText/index.69791151.js";
|
|
55
55
|
import "@mui/x-date-pickers";
|
|
56
|
-
import { R as RHFDateTime } from "../hook-form/RHFDateTime/index.
|
|
57
|
-
import { R as RHFTextField } from "../hook-form/RHFTextField/index.
|
|
58
|
-
import "../hook-form/RHFPeriod/index.
|
|
59
|
-
import "../Period/index.
|
|
56
|
+
import { R as RHFDateTime } from "../hook-form/RHFDateTime/index.1ca795b0.js";
|
|
57
|
+
import { R as RHFTextField } from "../hook-form/RHFTextField/index.ccea64e7.js";
|
|
58
|
+
import "../hook-form/RHFPeriod/index.90777c53.js";
|
|
59
|
+
import "../Period/index.972dbe64.js";
|
|
60
60
|
import "lodash/isString";
|
|
61
61
|
import "react-dropzone";
|
|
62
|
-
import "../hook-form/RHFUpload/index.
|
|
62
|
+
import "../hook-form/RHFUpload/index.85e59119.js";
|
|
63
63
|
import * as Yup from "yup";
|
|
64
64
|
const COMPONENT_PREFIX = "M4LDynamicFilter";
|
|
65
65
|
const COMPONENT_CLASS_NAME = "M4LDynamicFilter";
|
|
@@ -156,12 +156,12 @@ function useDynamicFilter(selector, equalityFn) {
|
|
|
156
156
|
}
|
|
157
157
|
const DYNAMICFILTER_DICTIONARY_ID = "dynamic_filter";
|
|
158
158
|
function getDynamicFilterComponentsDictionary() {
|
|
159
|
-
return [DYNAMICFILTER_DICTIONARY_ID].concat(getCommonActionsDictionary());
|
|
159
|
+
return [DYNAMICFILTER_DICTIONARY_ID].concat(getCommonActionsDictionary().concat(getRHFAutocompleteComponentsDictionary()));
|
|
160
160
|
}
|
|
161
161
|
const DICCTIONARY = {
|
|
162
162
|
input_placeholder: "input_placeholder",
|
|
163
|
-
operand_true: "
|
|
164
|
-
operand_false: "
|
|
163
|
+
operand_true: "operand_true",
|
|
164
|
+
operand_false: "operand_false",
|
|
165
165
|
filter_tooltip_refresh: "filter_tooltip_refresh",
|
|
166
166
|
filter_tooltip_dirty: "filter_tooltip_dirty",
|
|
167
167
|
filter_tooltip_invalid: "filter_tooltip_invalid",
|
|
@@ -183,7 +183,11 @@ const DICCTIONARY = {
|
|
|
183
183
|
label_operand1_number: "label_operand1_number",
|
|
184
184
|
label_operand2_number: "label_operand2_number",
|
|
185
185
|
label_operator_string: "label_operator_string",
|
|
186
|
-
label_operand1_string: "label_operand1_string"
|
|
186
|
+
label_operand1_string: "label_operand1_string",
|
|
187
|
+
operator_required: "operator_required",
|
|
188
|
+
error_invalid_date: "error_invalid_date",
|
|
189
|
+
error_less_than_start: "error_less_than_start",
|
|
190
|
+
error_operand_required: "error_operand_required"
|
|
187
191
|
};
|
|
188
192
|
const getDynamicFilterDictionary = (key) => {
|
|
189
193
|
return `${DYNAMICFILTER_DICTIONARY_ID}.${key}`;
|
|
@@ -200,10 +204,10 @@ function BooleanFilter() {
|
|
|
200
204
|
})), [getLabel]);
|
|
201
205
|
const optionsYesNo = useMemo(() => [{
|
|
202
206
|
value: true,
|
|
203
|
-
label: getLabel(getDynamicFilterDictionary(
|
|
207
|
+
label: getLabel(getDynamicFilterDictionary(DICCTIONARY.operand_true))
|
|
204
208
|
}, {
|
|
205
209
|
value: false,
|
|
206
|
-
label: getLabel(getDynamicFilterDictionary(
|
|
210
|
+
label: getLabel(getDynamicFilterDictionary(DICCTIONARY.operand_false))
|
|
207
211
|
}], [getLabel]);
|
|
208
212
|
return /* @__PURE__ */ jsxs("div", {
|
|
209
213
|
...process.env.NODE_ENV !== "production" ? {
|
|
@@ -216,14 +220,14 @@ function BooleanFilter() {
|
|
|
216
220
|
options: operators,
|
|
217
221
|
getOptionLabel: (option) => option.label,
|
|
218
222
|
isOptionEqualToValue: (option, value) => option.id === value.id,
|
|
219
|
-
label: getLabel(getDynamicFilterDictionary(
|
|
223
|
+
label: getLabel(getDynamicFilterDictionary(DICCTIONARY.label_boolean_operator))
|
|
220
224
|
}), /* @__PURE__ */ jsx(RHFAutocomplete, {
|
|
221
225
|
name: "formValueOperand1",
|
|
222
226
|
autoComplete: "off",
|
|
223
227
|
options: optionsYesNo,
|
|
224
228
|
getOptionLabel: (option) => option.label,
|
|
225
229
|
isOptionEqualToValue: (option, value) => option.value === value.value,
|
|
226
|
-
label: getLabel(getDynamicFilterDictionary(
|
|
230
|
+
label: getLabel(getDynamicFilterDictionary(DICCTIONARY.label_boolean_operand1))
|
|
227
231
|
})]
|
|
228
232
|
});
|
|
229
233
|
}
|
|
@@ -251,13 +255,13 @@ function DateTimeFilter() {
|
|
|
251
255
|
options: operators,
|
|
252
256
|
getOptionLabel: (option) => option.label,
|
|
253
257
|
isOptionEqualToValue: (option, value) => option.id === value.id,
|
|
254
|
-
label: getLabel(getDynamicFilterDictionary(
|
|
258
|
+
label: getLabel(getDynamicFilterDictionary(DICCTIONARY.label_operator_date_time))
|
|
255
259
|
}), /* @__PURE__ */ jsx(RHFDateTime, {
|
|
256
260
|
name: "formValueOperand1",
|
|
257
|
-
label: getLabel(getDynamicFilterDictionary(
|
|
261
|
+
label: getLabel(getDynamicFilterDictionary(DICCTIONARY.label_operand1_date_time))
|
|
258
262
|
}), operator && operator.id === "b" && /* @__PURE__ */ jsx(RHFDateTime, {
|
|
259
263
|
name: "formValueOperand2",
|
|
260
|
-
label: getLabel(getDynamicFilterDictionary(
|
|
264
|
+
label: getLabel(getDynamicFilterDictionary(DICCTIONARY.label_operand2_date_time))
|
|
261
265
|
})]
|
|
262
266
|
});
|
|
263
267
|
}
|
|
@@ -285,15 +289,15 @@ function NumberFilter() {
|
|
|
285
289
|
options: operators,
|
|
286
290
|
getOptionLabel: (option) => option.label,
|
|
287
291
|
isOptionEqualToValue: (option, value) => option.id === value.id,
|
|
288
|
-
label: getLabel(getDynamicFilterDictionary(
|
|
292
|
+
label: getLabel(getDynamicFilterDictionary(DICCTIONARY.label_operator_number))
|
|
289
293
|
}), /* @__PURE__ */ jsx(RHFTextField, {
|
|
290
294
|
name: "formValueOperand1",
|
|
291
295
|
type: "number",
|
|
292
|
-
label: getLabel(getDynamicFilterDictionary(
|
|
296
|
+
label: getLabel(getDynamicFilterDictionary(DICCTIONARY.label_operand1_number))
|
|
293
297
|
}), operator && operator.id === "b" && /* @__PURE__ */ jsx(RHFTextField, {
|
|
294
298
|
name: "formValueOperand2",
|
|
295
299
|
type: "number",
|
|
296
|
-
label: getLabel(getDynamicFilterDictionary(
|
|
300
|
+
label: getLabel(getDynamicFilterDictionary(DICCTIONARY.label_operand2_number))
|
|
297
301
|
})]
|
|
298
302
|
});
|
|
299
303
|
}
|
|
@@ -314,10 +318,10 @@ function StringFilter() {
|
|
|
314
318
|
options: operators,
|
|
315
319
|
getOptionLabel: (option) => option.label,
|
|
316
320
|
isOptionEqualToValue: (option, value) => option.id === value.id,
|
|
317
|
-
label: getLabel(getDynamicFilterDictionary(
|
|
321
|
+
label: getLabel(getDynamicFilterDictionary(DICCTIONARY.label_operator_string))
|
|
318
322
|
}), /* @__PURE__ */ jsx(RHFTextField, {
|
|
319
323
|
name: "formValueOperand1",
|
|
320
|
-
label: getLabel(getDynamicFilterDictionary(
|
|
324
|
+
label: getLabel(getDynamicFilterDictionary(DICCTIONARY.label_operand1_string))
|
|
321
325
|
})]
|
|
322
326
|
});
|
|
323
327
|
}
|
|
@@ -347,8 +351,8 @@ const getBooleanLabels = (filter, getLabel) => {
|
|
|
347
351
|
return ret;
|
|
348
352
|
};
|
|
349
353
|
const getBooleanSchema = (getLabel) => Yup.object({
|
|
350
|
-
formValueOperator: Yup.object().nullable().required(getLabel(`error_operator_required`)),
|
|
351
|
-
formValueOperand1: Yup.object().nullable().required(getLabel(`error_operand_required`))
|
|
354
|
+
formValueOperator: Yup.object().nullable().required(getLabel(`dynamic_filter.error_operator_required`)),
|
|
355
|
+
formValueOperand1: Yup.object().nullable().required(getLabel(`dynamic_filter.error_operand_required`))
|
|
352
356
|
});
|
|
353
357
|
const getBooleanFormValue = (field, getLabel, filterValueBoolean) => {
|
|
354
358
|
const filterValue = filterValueBoolean ? filterValueBoolean : void 0;
|
|
@@ -401,8 +405,8 @@ const getStringLabels = (filter, getLabel) => {
|
|
|
401
405
|
};
|
|
402
406
|
};
|
|
403
407
|
const getStringSchema = (getLabel) => Yup.object({
|
|
404
|
-
formValueOperator: Yup.object().nullable().required(getLabel(
|
|
405
|
-
formValueOperand1: Yup.string().required(getLabel(
|
|
408
|
+
formValueOperator: Yup.object().nullable().required(getLabel(getDynamicFilterDictionary(DICCTIONARY.operator_required))),
|
|
409
|
+
formValueOperand1: Yup.string().required(getLabel(getDynamicFilterDictionary(DICCTIONARY.error_operand_required)))
|
|
406
410
|
});
|
|
407
411
|
const getStringFormValue = (field, getLabel, filterValue) => {
|
|
408
412
|
const filterValueString = filterValue;
|
|
@@ -466,13 +470,13 @@ const getDateLabels = (filter, getLabel, formatters) => {
|
|
|
466
470
|
};
|
|
467
471
|
};
|
|
468
472
|
const getDateTimeSchema = (getLabel) => Yup.object({
|
|
469
|
-
formValueOperator: Yup.object().nullable().required(getLabel(
|
|
470
|
-
formValueOperand1: Yup.date().required(getLabel(
|
|
473
|
+
formValueOperator: Yup.object().nullable().required(getLabel(getDynamicFilterDictionary(DICCTIONARY.operator_required))),
|
|
474
|
+
formValueOperand1: Yup.date().required(getLabel(getDynamicFilterDictionary(DICCTIONARY.error_invalid_date))).typeError(getLabel(getDynamicFilterDictionary(DICCTIONARY.error_invalid_date))),
|
|
471
475
|
formValueOperand2: Yup.mixed().when(["formValueOperator.id"], {
|
|
472
476
|
is: "b",
|
|
473
|
-
then: Yup.date().typeError(getLabel(
|
|
477
|
+
then: Yup.date().typeError(getLabel(getDynamicFilterDictionary(DICCTIONARY.error_invalid_date))).min(
|
|
474
478
|
Yup.ref("formValueOperand1"),
|
|
475
|
-
getLabel(
|
|
479
|
+
getLabel(getDynamicFilterDictionary(DICCTIONARY.error_invalid_date))
|
|
476
480
|
)
|
|
477
481
|
})
|
|
478
482
|
});
|
|
@@ -1411,7 +1415,6 @@ function FilterButton() {
|
|
|
1411
1415
|
dictionaryTooltipId: getDynamicFilterDictionary(isValid ? isDirty ? DICCTIONARY.filter_tooltip_dirty : DICCTIONARY.filter_tooltip_refresh : DICCTIONARY.filter_tooltip_invalid),
|
|
1412
1416
|
onClick: fireOnChangeFilters,
|
|
1413
1417
|
"aria-label": "settings",
|
|
1414
|
-
variant: "primary",
|
|
1415
1418
|
src: `${host_static_assets}/${environment_assets}/${ASSETS_URL}/${automatic ? ASSETS.refresh : ASSETS.search}`
|
|
1416
1419
|
});
|
|
1417
1420
|
}
|
|
@@ -1599,7 +1602,7 @@ function InputFilter() {
|
|
|
1599
1602
|
}), /* @__PURE__ */ jsx("input", {
|
|
1600
1603
|
type: "text",
|
|
1601
1604
|
value: inputData,
|
|
1602
|
-
placeholder: getLabel(getDynamicFilterDictionary(
|
|
1605
|
+
placeholder: getLabel(getDynamicFilterDictionary(DICCTIONARY.input_placeholder)),
|
|
1603
1606
|
onFocus: onFocusInputFilter,
|
|
1604
1607
|
onChange: onChangeInputFilter,
|
|
1605
1608
|
onKeyDown: handleKeyDown
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState, useRef, useEffect, useCallback, useMemo } from "react";
|
|
2
2
|
import clsx from "clsx";
|
|
3
|
-
import { M as MemonizedGridItem } from "./subcomponents/Griditem/index.
|
|
3
|
+
import { M as MemonizedGridItem } from "./subcomponents/Griditem/index.c7a33781.js";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { throttle } from "lodash";
|
|
6
6
|
import { useResizeObserver } from "@m4l/graphics";
|
|
@@ -564,11 +564,10 @@ const GridLayoutRoot = styled("div")`
|
|
|
564
564
|
|
|
565
565
|
.${gridLayoutClasses.gridItemRoot} > .react-resizable-handle {
|
|
566
566
|
position: absolute;
|
|
567
|
-
width:
|
|
568
|
-
height:
|
|
569
|
-
padding: 12px;
|
|
567
|
+
width: 7px;
|
|
568
|
+
height: 7px;
|
|
570
569
|
background-image: unset;
|
|
571
|
-
|
|
570
|
+
|
|
572
571
|
& .M4LIcon-icon {
|
|
573
572
|
width: 10px;
|
|
574
573
|
height: 10px;
|
|
@@ -591,30 +590,43 @@ const GridLayoutRoot = styled("div")`
|
|
|
591
590
|
|
|
592
591
|
.react-resizable-hide > .react-resizable-handle {
|
|
593
592
|
display: none;
|
|
593
|
+
border-color: ${(props) => `2px solid ${props.theme.palette.text.disabled}`};
|
|
594
594
|
}
|
|
595
595
|
|
|
596
596
|
.${gridLayoutClasses.gridItemRoot} > .react-resizable-handle.react-resizable-handle-sw {
|
|
597
|
-
bottom:
|
|
598
|
-
left:
|
|
597
|
+
bottom: 3px;
|
|
598
|
+
left: 3px;
|
|
599
599
|
cursor: sw-resize;
|
|
600
600
|
transform: rotate(90deg);
|
|
601
|
+
border-right: ${(props) => `2px solid ${props.theme.palette.text.disabled}`};
|
|
602
|
+
border-bottom: ${(props) => `2px solid ${props.theme.palette.text.disabled}`};
|
|
603
|
+
border-bottom-right-radius: 15%;
|
|
601
604
|
}
|
|
602
605
|
.${gridLayoutClasses.gridItemRoot} > .react-resizable-handle.react-resizable-handle-se {
|
|
603
|
-
bottom:
|
|
604
|
-
right:
|
|
606
|
+
bottom: 3px;
|
|
607
|
+
right: 3px;
|
|
605
608
|
cursor: se-resize;
|
|
609
|
+
border-right: ${(props) => `2px solid ${props.theme.palette.text.disabled}`};
|
|
610
|
+
border-bottom: ${(props) => `2px solid ${props.theme.palette.text.disabled}`};
|
|
611
|
+
border-bottom-right-radius: 15%;
|
|
606
612
|
}
|
|
607
613
|
.${gridLayoutClasses.gridItemRoot} > .react-resizable-handle.react-resizable-handle-nw {
|
|
608
|
-
top:
|
|
609
|
-
left:
|
|
614
|
+
top: 3px;
|
|
615
|
+
left: 3px;
|
|
610
616
|
cursor: nw-resize;
|
|
611
617
|
transform: rotate(180deg);
|
|
618
|
+
border-right: ${(props) => `2px solid ${props.theme.palette.text.disabled}`};
|
|
619
|
+
border-bottom: ${(props) => `2px solid ${props.theme.palette.text.disabled}`};
|
|
620
|
+
border-bottom-right-radius: 15%;
|
|
612
621
|
}
|
|
613
622
|
.${gridLayoutClasses.gridItemRoot} > .react-resizable-handle.react-resizable-handle-ne {
|
|
614
|
-
top:
|
|
615
|
-
right:
|
|
623
|
+
top: 3px;
|
|
624
|
+
right: 3px;
|
|
616
625
|
cursor: ne-resize;
|
|
617
626
|
transform: rotate(270deg);
|
|
627
|
+
border-right: ${(props) => `2px solid ${props.theme.palette.text.disabled}`};
|
|
628
|
+
border-bottom: ${(props) => `2px solid ${props.theme.palette.text.disabled}`};
|
|
629
|
+
border-bottom-right-radius: 15%;
|
|
618
630
|
}
|
|
619
631
|
.${gridLayoutClasses.gridItemRoot} > .react-resizable-handle.react-resizable-handle-w,
|
|
620
632
|
.${gridLayoutClasses.gridItemRoot} > .react-resizable-handle.react-resizable-handle-e {
|
|
@@ -714,7 +726,6 @@ function GridLayout(props) {
|
|
|
714
726
|
}, []);
|
|
715
727
|
useEffect(() => {
|
|
716
728
|
if (nrOnlayoutChanges > 0) {
|
|
717
|
-
console.log("nrOnlayoutChanges fired", nrOnlayoutChanges, finalLayoutRender, refState.current.layout);
|
|
718
729
|
onLayoutChange(refState.current.layout);
|
|
719
730
|
}
|
|
720
731
|
}, [nrOnlayoutChanges]);
|
|
@@ -1145,9 +1156,7 @@ function SizeProvider(ComposedComponent) {
|
|
|
1145
1156
|
});
|
|
1146
1157
|
const onWindowResizeMemo = useMemo(() => () => {
|
|
1147
1158
|
const node = elementRef.current;
|
|
1148
|
-
console.log(`oooo`);
|
|
1149
1159
|
if (node instanceof HTMLElement && node.clientWidth) {
|
|
1150
|
-
console.log(`onWindowResizeMemo w: ${node.offsetWidth} y:${node.offsetHeight}`);
|
|
1151
1160
|
setCurrentState((prev) => ({
|
|
1152
1161
|
...prev,
|
|
1153
1162
|
width: node.clientWidth,
|
package/components/GridLayout/subcomponents/Griditem/{index.58168132.js → index.c7a33781.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default, { useRef, useEffect, useState, useCallback, useMemo } from "react";
|
|
2
2
|
import { D as DraggableCore_1 } from "../../../../react-draggable.7abb5d0a.js";
|
|
3
3
|
import { R as Resizable } from "../../../../react-resizable.ba08699a.js";
|
|
4
|
-
import { g as getH, c as calcXY, a as calcGridItemWHPx, b as calcGridColWidth, d as calcWH, e as clamp, f as calcGridItemPosition, h as gridLayoutClasses, D as DEFAULT_COLS, i as DEFAULT_ROW_HEIGHT, j as DEFAULT_CONTAINER_WIDTH, k as DEFAULT_CONTAINER_HEIGHT, l as DEFAULT_MARGIN, m as DEFAULT_CONTAINER_PADDING, n as DEFAULT_TRANSFORM_SCALE, o as DEFAULT_COLAPSED_HEIGHT, p as perc, s as setTransform, q as setTopLeft } from "../../index.
|
|
4
|
+
import { g as getH, c as calcXY, a as calcGridItemWHPx, b as calcGridColWidth, d as calcWH, e as clamp, f as calcGridItemPosition, h as gridLayoutClasses, D as DEFAULT_COLS, i as DEFAULT_ROW_HEIGHT, j as DEFAULT_CONTAINER_WIDTH, k as DEFAULT_CONTAINER_HEIGHT, l as DEFAULT_MARGIN, m as DEFAULT_CONTAINER_PADDING, n as DEFAULT_TRANSFORM_SCALE, o as DEFAULT_COLAPSED_HEIGHT, p as perc, s as setTransform, q as setTopLeft } from "../../index.8ae34c50.js";
|
|
5
5
|
import clsx from "clsx";
|
|
6
6
|
import { d as deepEqual } from "../../../../node_modules.d73a220d.js";
|
|
7
7
|
import { jsx, Fragment } from "react/jsx-runtime";
|
package/components/GridLayout/subcomponents/Responsive/{index.a6642437.js → index.96cdb1b4.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as cloneLayoutItem, t as cloneLayout, u as compact, v as correctBounds, w as isEqualLayout, x as DEFAULT_RESPONSIVE_BREAKPOINTS, m as DEFAULT_CONTAINER_PADDING, l as DEFAULT_MARGIN, y as DEFAULT_RESPONSIVE_COLS, o as DEFAULT_COLAPSED_HEIGHT, i as DEFAULT_ROW_HEIGHT, z as isEqualLayouts, G as GridLayout, A as noop } from "../../index.
|
|
1
|
+
import { r as cloneLayoutItem, t as cloneLayout, u as compact, v as correctBounds, w as isEqualLayout, x as DEFAULT_RESPONSIVE_BREAKPOINTS, m as DEFAULT_CONTAINER_PADDING, l as DEFAULT_MARGIN, y as DEFAULT_RESPONSIVE_COLS, o as DEFAULT_COLAPSED_HEIGHT, i as DEFAULT_ROW_HEIGHT, z as isEqualLayouts, G as GridLayout, A as noop } from "../../index.8ae34c50.js";
|
|
2
2
|
import { useState, useRef, useEffect, useCallback } from "react";
|
|
3
3
|
import { useFirstRender } from "@m4l/graphics";
|
|
4
4
|
import { d as deepEqual } from "../../../../node_modules.d73a220d.js";
|
|
@@ -228,7 +228,6 @@ function Responsive(props) {
|
|
|
228
228
|
cols: currentState.cols
|
|
229
229
|
});
|
|
230
230
|
if (currentState.fireOnLoadLayoutChange) {
|
|
231
|
-
console.warn("layout inicial incompatible, se notifica al host del componente");
|
|
232
231
|
onLayoutChange(currentState.breakpointLayout, {
|
|
233
232
|
...layouts,
|
|
234
233
|
[currentState.breakpoint]: currentState.breakpointLayout
|
|
@@ -1,26 +1,26 @@
|
|
|
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.a70c4729.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.76624519.js";
|
|
8
8
|
import "@m4l/graphics";
|
|
9
|
-
import "../mui_extended/Accordion/index.
|
|
9
|
+
import "../mui_extended/Accordion/index.0e0090ca.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
14
|
import "../mui_extended/Button/index.f79eb74e.js";
|
|
15
15
|
import "../mui_extended/CheckBox.38abccd8.js";
|
|
16
|
-
import "../mui_extended/Badge/index.
|
|
16
|
+
import "../mui_extended/Badge/index.b09524fe.js";
|
|
17
17
|
import "../Image/index.c18ebf5a.js";
|
|
18
18
|
import "@mui/lab";
|
|
19
|
-
import "../mui_extended/MenuActions/index.
|
|
19
|
+
import "../mui_extended/MenuActions/index.4c2e48d4.js";
|
|
20
20
|
import "../mui_extended/Popover/index.9f35d0eb.js";
|
|
21
21
|
import "../mui_extended/Stack/index.0e53197c.js";
|
|
22
|
-
import "../mui_extended/Tab/index.
|
|
23
|
-
import "../mui_extended/Pager/index.
|
|
22
|
+
import "../mui_extended/Tab/index.3db2e0c7.js";
|
|
23
|
+
import "../mui_extended/Pager/index.ac2a21f0.js";
|
|
24
24
|
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
25
25
|
import { unstable_composeClasses } from "@mui/base";
|
|
26
26
|
const HelperTextRoot = styled("div")(({
|
|
@@ -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.2dfc5445.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,12 +3,12 @@ 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.a70c4729.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.76624519.js";
|
|
11
|
+
import "../mui_extended/Accordion/index.0e0090ca.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";
|
|
@@ -16,13 +16,13 @@ import "@mui/material/Button";
|
|
|
16
16
|
import { I as ImageButton } from "../mui_extended/Button/index.f79eb74e.js";
|
|
17
17
|
import "../mui_extended/CheckBox.38abccd8.js";
|
|
18
18
|
import { C as CircularProgress } from "../mui_extended/CircularProgress/index.ad569afd.js";
|
|
19
|
-
import "../mui_extended/Badge/index.
|
|
19
|
+
import "../mui_extended/Badge/index.b09524fe.js";
|
|
20
20
|
import "@mui/lab";
|
|
21
|
-
import "../mui_extended/MenuActions/index.
|
|
21
|
+
import "../mui_extended/MenuActions/index.4c2e48d4.js";
|
|
22
22
|
import { P as Popover } from "../mui_extended/Popover/index.9f35d0eb.js";
|
|
23
23
|
import "../mui_extended/Stack/index.0e53197c.js";
|
|
24
|
-
import "../mui_extended/Tab/index.
|
|
25
|
-
import "../mui_extended/Pager/index.
|
|
24
|
+
import "../mui_extended/Tab/index.3db2e0c7.js";
|
|
25
|
+
import "../mui_extended/Pager/index.ac2a21f0.js";
|
|
26
26
|
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
27
27
|
import { unstable_composeClasses } from "@mui/base";
|
|
28
28
|
const LanguagePopoverRoot = styled("div")(({
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { useTheme, Dialog, Paper } from "@mui/material";
|
|
2
2
|
import { c as cjs } from "../../react-draggable.7abb5d0a.js";
|
|
3
|
-
import { u as useModal } from "../../hooks/useModal/index.
|
|
4
|
-
import { R as ResizeableWindow } from "../Resizeable/index.
|
|
3
|
+
import { u as useModal } from "../../hooks/useModal/index.6457198c.js";
|
|
4
|
+
import { R as ResizeableWindow } from "../Resizeable/index.676c96fe.js";
|
|
5
5
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
6
|
-
import {
|
|
7
|
-
import { useEnvironment } from "@m4l/core";
|
|
8
|
-
import { I as ICONS } from "../areas/icons.8266ccc8.js";
|
|
9
|
-
import { m as modalUtilityClasses } from "../modal/index.8d846036.js";
|
|
6
|
+
import { m as modalUtilityClasses } from "../modal/index.dbdb6ac0.js";
|
|
10
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
-
import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.
|
|
8
|
+
import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.366cb775.js";
|
|
12
9
|
const DragabblePaperComponent = (props) => {
|
|
13
10
|
return /* @__PURE__ */ jsx(cjs.exports, {
|
|
14
11
|
handle: ".m4l_draggable_handle",
|
|
@@ -44,10 +41,6 @@ const ModalDialog = () => {
|
|
|
44
41
|
variant
|
|
45
42
|
} = useModal();
|
|
46
43
|
const isDesktop = useResponsiveDesktop();
|
|
47
|
-
const {
|
|
48
|
-
host_static_assets,
|
|
49
|
-
environment_assets
|
|
50
|
-
} = useEnvironment();
|
|
51
44
|
const theme = useTheme();
|
|
52
45
|
const classes = modalUtilityClasses({
|
|
53
46
|
variant
|
|
@@ -74,10 +67,7 @@ const ModalDialog = () => {
|
|
|
74
67
|
maxHeigth,
|
|
75
68
|
handle: (resizeHandle, ref) => /* @__PURE__ */ jsx("div", {
|
|
76
69
|
ref,
|
|
77
|
-
|
|
78
|
-
src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.RESIZE}`,
|
|
79
|
-
className: `custom-handle custom-handle-${resizeHandle}`
|
|
80
|
-
})
|
|
70
|
+
className: `custom-handle custom-handle-${resizeHandle}`
|
|
81
71
|
}, resizeHandle),
|
|
82
72
|
children: contentComnponent
|
|
83
73
|
}), !isDesktop && contentComnponent]
|