@m4l/components 0.1.30 → 0.1.32
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/components/CommonActions/components/ActionCancel/{index.a57fcfae.js → index.641ea102.js} +1 -1
- package/components/CommonActions/components/ActionFormCancel/{index.b8215cd2.js → index.3b9e5121.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.591a8195.js → index.d53e0d31.js} +1 -1
- package/components/CommonActions/components/Actions/{index.2ce05d29.js → index.545d7067.js} +24 -26
- package/components/DataGrid/contexts/DataGridContext/index.d.ts +5 -0
- package/components/DataGrid/contexts/{BaseContext → DataGridContext}/types.d.ts +4 -16
- package/components/DataGrid/contexts/FilterContext/types.d.ts +8 -4
- package/components/DataGrid/hooks/useDataGrid.d.ts +3 -0
- package/components/DataGrid/{index.07162c02.js → index.b6a45f67.js} +335 -311
- package/components/DataGrid/{components → subcomponents}/Actions/index.d.ts +0 -0
- package/components/DataGrid/{components → subcomponents}/Actions/styles.d.ts +0 -0
- package/components/DataGrid/{components/Actions/components → subcomponents/Actions/subcomponents}/Density/index.d.ts +0 -0
- package/components/DataGrid/{components/Actions/components → subcomponents/Actions/subcomponents}/Density/styles.d.ts +0 -0
- package/components/DataGrid/{components/Actions/components → subcomponents/Actions/subcomponents}/Filter/index.d.ts +0 -0
- package/components/DataGrid/{components/Actions/components → subcomponents/Actions/subcomponents}/Filter/styles.d.ts +0 -0
- package/components/DataGrid/{components/Actions/components → subcomponents/Actions/subcomponents}/RowsCount/index.d.ts +0 -0
- package/components/DataGrid/{components/Actions/components → subcomponents/Actions/subcomponents}/RowsCount/styles.d.ts +0 -0
- package/components/DataGrid/{components/Actions/components → subcomponents/Actions/subcomponents}/Settings/index.d.ts +0 -0
- package/components/DataGrid/{components/Actions/components → subcomponents/Actions/subcomponents}/Settings/styles.d.ts +0 -0
- package/components/DataGrid/{components/Actions/components/Settings → subcomponents/Actions/subcomponents/Settings/subcomponents}/ColumnsConfig/index.d.ts +0 -0
- package/components/DataGrid/{components/Actions/components/Settings → subcomponents/Actions/subcomponents/Settings/subcomponents}/ColumnsConfig/styles.d.ts +0 -0
- package/components/DataGrid/{components/Actions/components/Settings/ColumnsConfig/components → subcomponents/Actions/subcomponents/Settings/subcomponents/ColumnsConfig/subcomponents}/FormatterColumn/index.d.ts +0 -0
- package/components/DataGrid/{components/Actions/components/Settings → subcomponents/Actions/subcomponents/Settings/subcomponents}/ColumnsConfig/types.d.ts +1 -1
- package/components/DataGrid/{components/Actions/components → subcomponents/Actions/subcomponents}/Settings/types.d.ts +0 -0
- package/components/DataGrid/{components → subcomponents}/Actions/types.d.ts +1 -1
- package/components/DataGrid/{components → subcomponents}/Table/hooks/getDragHeaderRenderer.d.ts +0 -0
- package/components/DataGrid/{components → subcomponents}/Table/hooks/useFocusRef.d.ts +0 -0
- package/components/DataGrid/{components → subcomponents}/Table/hooks/useSortColumnsRows.d.ts +1 -1
- package/components/DataGrid/{components → subcomponents}/Table/index.d.ts +0 -0
- package/components/DataGrid/{components → subcomponents}/Table/styles.d.ts +0 -0
- package/components/DataGrid/{components/Table/components → subcomponents/Table/subcomponents}/ActionsColumn.d.ts +0 -0
- package/components/DataGrid/{components/Table/components → subcomponents/Table/subcomponents}/CheckboxFormatter.d.ts +0 -0
- package/components/DataGrid/{components/Table/components → subcomponents/Table/subcomponents}/CustomIcons.d.ts +0 -0
- package/components/DataGrid/{components/Table/components → subcomponents/Table/subcomponents}/DraggableHeaderRenderer.d.ts +0 -0
- package/components/DataGrid/{components/Table/components → subcomponents/Table/subcomponents}/SelectColumn.d.ts +0 -0
- package/components/DataGrid/{components/Table/components → subcomponents/Table/subcomponents}/SkeletonFormatter/index.d.ts +0 -0
- package/components/DataGrid/{components/Table/components → subcomponents/Table/subcomponents}/SkeletonFormatter/styles.d.ts +0 -0
- package/components/DataGrid/{components → subcomponents}/editors/TextEditor/index.d.ts +0 -0
- package/components/DataGrid/types.d.ts +6 -4
- package/components/DataGrid/utils/getDataGridRowsFromSet.d.ts +1 -0
- package/components/DynamicFilter/{index.31876c9f.js → index.b3b19031.js} +13 -14
- package/components/Icon/{index.619c31c4.js → index.619fa9ad.js} +1 -1
- package/components/Loadable/{index.f5518558.js → index.55b8adb7.js} +2 -3
- package/components/ModalDialog/{index.3e5675c4.js → index.81b8e093.js} +6 -6
- package/components/ObjectLogs/{index.35dbf836.js → index.af1c3382.js} +6 -7
- package/components/PaperForm/{index.ec9cb8c9.js → index.9582ff5e.js} +1 -1
- package/components/Period/{index.111600f2.js → index.9ce96aed.js} +3 -3
- package/components/Resizeable/{index.45995d2b.js → index.d27b0310.js} +1 -1
- package/components/SplitLayout/{index.4032673d.js → index.5a8355d8.js} +1 -1
- package/components/animate/LoadingScreen/index.d.ts +2 -2
- package/components/animate/LoadingScreen/types.d.ts +2 -2
- package/components/animate/PropagateLoader/index.d.ts +2 -0
- package/components/animate/PropagateLoader/index.d5c18992.js +94 -0
- package/components/animate/PropagateLoader/syles.d.ts +2 -0
- package/components/animate/index.d.ts +1 -0
- package/components/formatters/BooleanFormatter/{index.ae70b54f.js → index.81f4ea70.js} +21 -18
- package/components/formatters/DateFormatter/{index.ed73f8ae.js → index.8494575f.js} +4 -4
- package/components/formatters/PointsFormatter/index.d.ts +1 -0
- package/components/formatters/PointsFormatter/types.d.ts +3 -2
- package/components/formatters/UncertaintyFormatter/index.d.ts +1 -0
- package/components/formatters/UncertaintyFormatter/types.d.ts +4 -3
- package/components/formatters/{index.9bd10770.js → index.a0309e3a.js} +52 -55
- package/components/formatters/index.d.ts +2 -2
- package/components/hook-form/RHFDateTime/{index.e70d2de3.js → index.7f1cbd85.js} +0 -1
- package/components/hook-form/RHFPeriod/{index.fa8426ac.js → index.116158c4.js} +1 -1
- package/components/hook-form/RHFTextField/{index.f9aaaa90.js → index.3cb4b35f.js} +1 -1
- package/components/index.d.ts +2 -1
- package/components/mui_extended/Accordion/{index.a02ac6ae.js → index.86b97783.js} +2 -2
- package/components/mui_extended/Button/{index.1d13f53b.js → index.bd85b59c.js} +2 -2
- package/components/mui_extended/IconButton/{index.a321e5cb.js → index.25ff14bd.js} +1 -1
- package/components/mui_extended/LinearProgress/index.c92b9ba9.js +13 -0
- package/components/mui_extended/LinearProgress/index.d.ts +3 -0
- package/components/mui_extended/MenuActions/styles.d.ts +1 -1
- package/components/mui_extended/Pager/{index.72b43352.js → index.a98c43cc.js} +1 -1
- package/components/mui_extended/Popover/{index.028756ac.js → index.f38042fc.js} +5 -8
- package/components/mui_extended/index.d.ts +1 -0
- package/contexts/ModalContext/{index.cc3690d3.js → index.9a44cced.js} +4 -5
- package/contexts/RHFormContext/{index.f8c00745.js → index.d88e6e27.js} +0 -1
- package/hooks/useModal/{index.78ee58f3.js → index.2a92d33a.js} +1 -1
- package/index.js +60 -52
- package/node_modules.51fc30d1.js +63 -0
- package/package.json +2 -1
- package/react-data-grid.d46d625e.js +1 -1
- package/{react-draggable.20e95c61.js → react-draggable.a09b624f.js} +4 -4
- package/{react-json-view.f56a7f8e.js → react-json-view.57125fcf.js} +2 -2
- package/{react-resizable.5277deaf.js → react-resizable.be53ee35.js} +5 -5
- package/{react-splitter-layout.7810ac1b.js → react-splitter-layout.8b1655c8.js} +2 -2
- package/utils/{index.214d9542.js → index.f3bfdc22.js} +2 -2
- package/components/DataGrid/contexts/BaseContext/index.d.ts +0 -5
- package/components/DataGrid/hooks/useBase.d.ts +0 -1
|
@@ -1,56 +1,65 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { jsx
|
|
1
|
+
import React__default from "react";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { getPropertyByString } from "@m4l/core";
|
|
4
|
-
import "../Icon/index.
|
|
4
|
+
import "../Icon/index.619fa9ad.js";
|
|
5
5
|
import "@mui/material/styles";
|
|
6
6
|
import "@m4l/graphics";
|
|
7
|
-
function
|
|
8
|
-
const {
|
|
9
|
-
value,
|
|
10
|
-
unit,
|
|
11
|
-
symbol,
|
|
12
|
-
Component = React.Fragment
|
|
13
|
-
} = props;
|
|
14
|
-
if (value === void 0 || value === null || !Array.isArray(value)) {
|
|
15
|
-
return /* @__PURE__ */ jsx(Fragment, {
|
|
16
|
-
children: ""
|
|
17
|
-
});
|
|
18
|
-
}
|
|
7
|
+
function getUncertaintyFormat(obProps, fieldValue, fieldSymbol, fieldUnit) {
|
|
19
8
|
let result = "";
|
|
20
|
-
|
|
9
|
+
const ranges = getPropertyByString(obProps, fieldValue);
|
|
10
|
+
const symbol = getPropertyByString(obProps, fieldSymbol) || "";
|
|
11
|
+
const unit = getPropertyByString(obProps, fieldUnit) || "";
|
|
12
|
+
if (ranges === void 0 || ranges === null || !Array.isArray(ranges)) {
|
|
13
|
+
return "[]";
|
|
14
|
+
}
|
|
15
|
+
ranges.map((obj, idx) => {
|
|
21
16
|
const cmc_min_closed = obj.cmc_min_closed != true ? "<" : "\u2264";
|
|
22
17
|
const cmc_max_closed = obj.cmc_max_closed != true ? "<" : "\u2264";
|
|
23
18
|
result = result.concat(`${idx > 0 ? " " : ""}`, obj.cmc_min !== obj.cmc_max ? `[${obj.cmc_min}${unit} ${cmc_min_closed} ${symbol} ${cmc_max_closed} ${obj.cmc_max}${unit} \xB1 ${obj.cmc_uncertainty}]` : `[${obj.cmc_min}${unit} \xB1 ${obj.cmc_uncertainty}]`);
|
|
24
19
|
});
|
|
25
|
-
return
|
|
26
|
-
children: result
|
|
27
|
-
});
|
|
20
|
+
return result;
|
|
28
21
|
}
|
|
29
|
-
function
|
|
22
|
+
function UncertaintyFormatter(props) {
|
|
30
23
|
const {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
24
|
+
obProps,
|
|
25
|
+
fieldValue,
|
|
26
|
+
fieldSymbol,
|
|
27
|
+
fieldUnit,
|
|
28
|
+
Component = React__default.Fragment
|
|
34
29
|
} = props;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
30
|
+
return /* @__PURE__ */ jsx(Component, {
|
|
31
|
+
children: getUncertaintyFormat(obProps, fieldValue, fieldSymbol, fieldUnit)
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function getFormatPoints(obProps, fieldValue, fieldUnit) {
|
|
40
35
|
let result = "";
|
|
41
|
-
|
|
36
|
+
const points = getPropertyByString(obProps, fieldValue);
|
|
37
|
+
const unit = getPropertyByString(obProps, fieldUnit) || "";
|
|
38
|
+
if (points === void 0 || points === null || !Array.isArray(points)) {
|
|
39
|
+
return "[]";
|
|
40
|
+
}
|
|
41
|
+
points.map((point) => {
|
|
42
42
|
if (point) {
|
|
43
43
|
result = result.concat(`[${point}${unit}]`);
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
|
+
return result;
|
|
47
|
+
}
|
|
48
|
+
function PointsFormatter(props) {
|
|
49
|
+
const {
|
|
50
|
+
obProps,
|
|
51
|
+
fieldValue,
|
|
52
|
+
fieldUnit,
|
|
53
|
+
Component = React__default.Fragment
|
|
54
|
+
} = props;
|
|
46
55
|
return /* @__PURE__ */ jsx(Component, {
|
|
47
|
-
children:
|
|
56
|
+
children: getFormatPoints(obProps, fieldValue, fieldUnit)
|
|
48
57
|
});
|
|
49
58
|
}
|
|
50
59
|
function PriceFormatter(props) {
|
|
51
60
|
const {
|
|
52
61
|
value,
|
|
53
|
-
Component =
|
|
62
|
+
Component = React__default.Fragment
|
|
54
63
|
} = props;
|
|
55
64
|
return /* @__PURE__ */ jsx(Component, {
|
|
56
65
|
children: `${value}$Cop`
|
|
@@ -68,39 +77,25 @@ const defaultFormattersDictionary = {
|
|
|
68
77
|
}
|
|
69
78
|
};
|
|
70
79
|
function columnUncertaintyFormatter(props) {
|
|
71
|
-
const {
|
|
72
|
-
fieldUnit,
|
|
73
|
-
fieldValue,
|
|
74
|
-
fieldSymbol,
|
|
75
|
-
Component
|
|
76
|
-
} = props;
|
|
77
80
|
return (obProps) => {
|
|
78
81
|
return /* @__PURE__ */ jsx(UncertaintyFormatter, {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
unit: getPropertyByString(obProps, fieldUnit),
|
|
82
|
-
symbol: getPropertyByString(obProps, fieldSymbol)
|
|
82
|
+
obProps,
|
|
83
|
+
...props
|
|
83
84
|
});
|
|
84
85
|
};
|
|
85
86
|
}
|
|
86
87
|
function columnPointsFormatter(props) {
|
|
87
|
-
const {
|
|
88
|
-
fieldUnit,
|
|
89
|
-
fieldValue,
|
|
90
|
-
Component
|
|
91
|
-
} = props;
|
|
92
88
|
return (obProps) => {
|
|
93
89
|
return /* @__PURE__ */ jsx(PointsFormatter, {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
unit: getPropertyByString(obProps, fieldUnit)
|
|
90
|
+
obProps,
|
|
91
|
+
...props
|
|
97
92
|
});
|
|
98
93
|
};
|
|
99
94
|
}
|
|
100
95
|
function columnNestedValueFormatter(props) {
|
|
101
96
|
const {
|
|
102
97
|
fieldValue,
|
|
103
|
-
Component =
|
|
98
|
+
Component = React__default.Fragment
|
|
104
99
|
} = props;
|
|
105
100
|
return (obProps) => {
|
|
106
101
|
return /* @__PURE__ */ jsx(Component, {
|
|
@@ -111,10 +106,12 @@ function columnNestedValueFormatter(props) {
|
|
|
111
106
|
export {
|
|
112
107
|
PointsFormatter as P,
|
|
113
108
|
UncertaintyFormatter as U,
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
109
|
+
getFormatPoints as a,
|
|
110
|
+
PriceFormatter as b,
|
|
111
|
+
getFormattersComponentsDictionary as c,
|
|
117
112
|
defaultFormattersDictionary as d,
|
|
118
|
-
|
|
119
|
-
|
|
113
|
+
columnUncertaintyFormatter as e,
|
|
114
|
+
columnPointsFormatter as f,
|
|
115
|
+
getUncertaintyFormat as g,
|
|
116
|
+
columnNestedValueFormatter as h
|
|
120
117
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { BooleanFormatter } from './BooleanFormatter';
|
|
2
2
|
export { DateFormatter } from './DateFormatter';
|
|
3
|
-
export { UncertaintyFormatter } from './UncertaintyFormatter';
|
|
4
|
-
export { PointsFormatter } from './PointsFormatter';
|
|
3
|
+
export { UncertaintyFormatter, getUncertaintyFormat } from './UncertaintyFormatter';
|
|
4
|
+
export { PointsFormatter, getFormatPoints } from './PointsFormatter';
|
|
5
5
|
export { PriceFormatter } from './PriceFormatter';
|
|
6
6
|
export type { UncertaintyRange } from './UncertaintyFormatter/types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { styled } from "@mui/material";
|
|
2
2
|
import { useFormContext, Controller } from "react-hook-form";
|
|
3
3
|
import { E as ErrorLabel } from "../../ErrorLabel/index.c8615f16.js";
|
|
4
|
-
import { P as Period } from "../../Period/index.
|
|
4
|
+
import { P as Period } from "../../Period/index.9ce96aed.js";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
const Wrapper = styled("div")(({
|
|
7
7
|
theme
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useModuleSkeleton, useEnvironment } from "@m4l/core";
|
|
2
2
|
import { styled, Skeleton, TextField, InputAdornment } from "@mui/material";
|
|
3
3
|
import { forwardRef, useState } from "react";
|
|
4
|
-
import { I as IconButton } from "../../mui_extended/IconButton/index.
|
|
4
|
+
import { I as IconButton } from "../../mui_extended/IconButton/index.25ff14bd.js";
|
|
5
5
|
import { useFormContext, Controller } from "react-hook-form";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
const WrapperSkeletonRHFTextField = styled("div")(({
|
package/components/index.d.ts
CHANGED
|
@@ -9,7 +9,8 @@ export * from '../components/DataGrid/formatters';
|
|
|
9
9
|
export type { Column, EditorProps, FormatterProps } from 'react-data-grid';
|
|
10
10
|
export type { RowKey } from '../components/DataGrid/types';
|
|
11
11
|
export { getDataGridComponentsDictionary as getGridComponentsDictionary } from '../components/DataGrid/dictionary';
|
|
12
|
-
export { TextEditor, NumberEditor } from '../components/DataGrid/
|
|
12
|
+
export { TextEditor, NumberEditor } from '../components/DataGrid/subcomponents/editors/TextEditor';
|
|
13
|
+
export { getDataGridRowsFromSet } from './DataGrid/utils/getDataGridRowsFromSet';
|
|
13
14
|
export * from '../components/DynamicFilter';
|
|
14
15
|
export * from '../components/DynamicFilter/dictionary';
|
|
15
16
|
export * from '../components/ErrorLabel';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Skeleton, Accordion as Accordion$1, AccordionSummary, AccordionDetails } from "@mui/material";
|
|
2
|
-
import { I as IconButton } from "../IconButton/index.
|
|
2
|
+
import { I as IconButton } from "../IconButton/index.25ff14bd.js";
|
|
3
3
|
import { useEnvironment, useModuleSkeleton } from "@m4l/core";
|
|
4
|
-
import { I as Icon } from "../../Icon/index.
|
|
4
|
+
import { I as Icon } from "../../Icon/index.619fa9ad.js";
|
|
5
5
|
import { styled } from "@mui/material/styles";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
styled("div")(({
|
|
@@ -3,9 +3,9 @@ import { Skeleton, styled, IconButton as IconButton$1, Tooltip } from "@mui/mate
|
|
|
3
3
|
import MuiButton from "@mui/material/Button";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { LoadingButton as LoadingButton$1 } from "@mui/lab";
|
|
6
|
-
import { I as IconButton } from "../IconButton/index.
|
|
6
|
+
import { I as IconButton } from "../IconButton/index.25ff14bd.js";
|
|
7
7
|
import { styled as styled$1, alpha } from "@mui/material/styles";
|
|
8
|
-
import { u as useBase } from "../../DynamicFilter/index.
|
|
8
|
+
import { u as useBase } from "../../DynamicFilter/index.b3b19031.js";
|
|
9
9
|
import { useMemo } from "react";
|
|
10
10
|
import { I as Image } from "../../Image/index.93d5f37f.js";
|
|
11
11
|
const Button = (props) => {
|
|
@@ -3,7 +3,7 @@ import { forwardRef, useMemo } from "react";
|
|
|
3
3
|
import { IconButton as IconButton$1, Box, Skeleton, Tooltip } from "@mui/material";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
6
|
-
import { I as Icon } from "../../Icon/index.
|
|
6
|
+
import { I as Icon } from "../../Icon/index.619fa9ad.js";
|
|
7
7
|
const varSmall = {
|
|
8
8
|
hover: {
|
|
9
9
|
scale: 1.1
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LinearProgress as LinearProgress$1 } from "@mui/material";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
const LinearProgress = (props) => {
|
|
4
|
+
const {
|
|
5
|
+
...other
|
|
6
|
+
} = props;
|
|
7
|
+
return /* @__PURE__ */ jsx(LinearProgress$1, {
|
|
8
|
+
...other
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
LinearProgress as L
|
|
13
|
+
};
|
|
@@ -26,5 +26,5 @@ export declare const WrapperMenuActions: import("@emotion/styled").StyledCompone
|
|
|
26
26
|
touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
|
|
27
27
|
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
28
28
|
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
29
|
-
}, "disabled" | "children" | "tabIndex" | "action" | keyof import("@mui/material/OverridableComponent").CommonProps | "
|
|
29
|
+
}, "disabled" | "children" | "tabIndex" | "color" | "size" | "action" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
30
30
|
export declare const LabelMemuItem: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMemo } from "react";
|
|
2
2
|
import { Skeleton, TablePagination } from "@mui/material";
|
|
3
|
-
import { P as PagerActions } from "../../CommonActions/components/Actions/index.
|
|
3
|
+
import { P as PagerActions } from "../../CommonActions/components/Actions/index.545d7067.js";
|
|
4
4
|
import { styled } from "@mui/material/styles";
|
|
5
5
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
6
6
|
styled("div")(() => ({
|
|
@@ -3,18 +3,18 @@ import { Popover as Popover$1, styled as styled$1, Stack, MenuItem } from "@mui/
|
|
|
3
3
|
import { I as Image } from "../../Image/index.93d5f37f.js";
|
|
4
4
|
import { useLocales } from "@m4l/graphics";
|
|
5
5
|
import { useEnvironment, useNetwork } from "@m4l/core";
|
|
6
|
-
import "../../Icon/index.
|
|
6
|
+
import "../../Icon/index.619fa9ad.js";
|
|
7
7
|
import { styled } from "@mui/material/styles";
|
|
8
8
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
9
|
-
import "../Accordion/index.
|
|
9
|
+
import "../Accordion/index.86b97783.js";
|
|
10
10
|
import "../Avatar/index.fe06afd7.js";
|
|
11
11
|
import "react-router-dom";
|
|
12
12
|
import "@mui/material/Button";
|
|
13
13
|
import { C as CircularProgress } from "../CircularProgress/index.ad569afd.js";
|
|
14
14
|
import "@mui/lab";
|
|
15
|
-
import { I as ImageButton } from "../Button/index.
|
|
16
|
-
import "../../CommonActions/components/Actions/index.
|
|
17
|
-
import "../Pager/index.
|
|
15
|
+
import { I as ImageButton } from "../Button/index.bd85b59c.js";
|
|
16
|
+
import "../../CommonActions/components/Actions/index.545d7067.js";
|
|
17
|
+
import "../Pager/index.a98c43cc.js";
|
|
18
18
|
import "../Tab/index.e0653a0a.js";
|
|
19
19
|
const ArrowStyle = styled("span")(({
|
|
20
20
|
arrowType,
|
|
@@ -177,7 +177,6 @@ function LanguagePopover() {
|
|
|
177
177
|
const [loading, setLoading] = useState(false);
|
|
178
178
|
const [allLocales, setAllLocales] = useState([]);
|
|
179
179
|
const handleOpen = (event) => {
|
|
180
|
-
console.log("handleOpen", allLocales, loading);
|
|
181
180
|
setOpen(event.currentTarget);
|
|
182
181
|
};
|
|
183
182
|
const handleClose = () => {
|
|
@@ -196,7 +195,6 @@ function LanguagePopover() {
|
|
|
196
195
|
domain_token
|
|
197
196
|
}
|
|
198
197
|
}).then((response) => {
|
|
199
|
-
console.log("Response", response.data);
|
|
200
198
|
if (mounted) {
|
|
201
199
|
setAllLocales(response.data);
|
|
202
200
|
}
|
|
@@ -207,7 +205,6 @@ function LanguagePopover() {
|
|
|
207
205
|
mounted = false;
|
|
208
206
|
};
|
|
209
207
|
}, [open]);
|
|
210
|
-
console.log("Render lang", allLocales, loading);
|
|
211
208
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
212
209
|
children: [/* @__PURE__ */ jsx(ImageButton, {
|
|
213
210
|
className: "m4l_language_popover",
|
|
@@ -7,6 +7,7 @@ export type { TLink } from './Breadcrumbs/types';
|
|
|
7
7
|
export { Button } from './Button';
|
|
8
8
|
export { CircularProgress } from './CircularProgress';
|
|
9
9
|
export { IconButton } from './IconButton';
|
|
10
|
+
export { LinearProgress } from './LinearProgress';
|
|
10
11
|
export { LinkWithRoute } from './LinkWithRoute';
|
|
11
12
|
export { LoadingButton } from './LoadingButton';
|
|
12
13
|
export { MenuActions } from './MenuActions';
|
|
@@ -4,10 +4,10 @@ import { Typography } from "@mui/material";
|
|
|
4
4
|
import { styled } from "@mui/material/styles";
|
|
5
5
|
import { B as BoxIcon } from "../../components/mui_extended/BoxIcon/index.e638ecc8.js";
|
|
6
6
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
7
|
-
import { M as ModalDialog } from "../../components/ModalDialog/index.
|
|
8
|
-
import { A as ActionIntro } from "../../components/CommonActions/components/ActionIntro/index.
|
|
9
|
-
import { A as ActionCancel } from "../../components/CommonActions/components/ActionCancel/index.
|
|
10
|
-
import { b as getVariantColor } from "../../utils/index.
|
|
7
|
+
import { M as ModalDialog } from "../../components/ModalDialog/index.81b8e093.js";
|
|
8
|
+
import { A as ActionIntro } from "../../components/CommonActions/components/ActionIntro/index.d53e0d31.js";
|
|
9
|
+
import { A as ActionCancel } from "../../components/CommonActions/components/ActionCancel/index.641ea102.js";
|
|
10
|
+
import { b as getVariantColor } from "../../utils/index.f3bfdc22.js";
|
|
11
11
|
const WrapperContentConfirm = styled("div")(() => ({
|
|
12
12
|
display: "flex",
|
|
13
13
|
flexDirection: "column",
|
|
@@ -90,7 +90,6 @@ function ModalProvider({
|
|
|
90
90
|
fullScreen: false
|
|
91
91
|
});
|
|
92
92
|
const openModal = (modalOpenProps) => {
|
|
93
|
-
console.log("modal props", modalOpenProps);
|
|
94
93
|
setModalOptions({
|
|
95
94
|
open: true,
|
|
96
95
|
...modalOpenProps
|
|
@@ -41,7 +41,6 @@ function RHFormProvider(props) {
|
|
|
41
41
|
}, [methods, statusLoad, values]);
|
|
42
42
|
useEffect(() => {
|
|
43
43
|
if (statusLoad === "ready") {
|
|
44
|
-
console.log("useEffect FormProvider Ready", statusLoad);
|
|
45
44
|
methods.setValue("statusLoad", "ready", {
|
|
46
45
|
shouldValidate: false,
|
|
47
46
|
shouldDirty: false,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
|
-
import { M as ModalContext } from "../../contexts/ModalContext/index.
|
|
2
|
+
import { M as ModalContext } from "../../contexts/ModalContext/index.9a44cced.js";
|
|
3
3
|
function useModal() {
|
|
4
4
|
const context = useContext(ModalContext);
|
|
5
5
|
if (!context)
|
package/index.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { I, a } from "./components/mui_extended/IconButton/index.
|
|
1
|
+
import { I, a } from "./components/mui_extended/IconButton/index.25ff14bd.js";
|
|
2
2
|
import "framer-motion";
|
|
3
3
|
import "@mui/material";
|
|
4
4
|
import "react/jsx-runtime";
|
|
5
5
|
import "@mui/material/styles";
|
|
6
6
|
import "react-router-dom";
|
|
7
7
|
import { L } from "./components/animate/LoadingScreen/index.1d0c4307.js";
|
|
8
|
+
import { P } from "./components/animate/PropagateLoader/index.d5c18992.js";
|
|
8
9
|
import "@m4l/core";
|
|
9
10
|
import "react-hook-form";
|
|
10
11
|
import { R, g } from "./components/hook-form/RHFAutocomplete/index.de93fe01.js";
|
|
@@ -13,50 +14,50 @@ import { I as I2 } from "./components/Image/index.93d5f37f.js";
|
|
|
13
14
|
import "lodash/debounce";
|
|
14
15
|
import { R as R2 } from "./components/hook-form/RHFCheckbox/index.6dcec9e2.js";
|
|
15
16
|
import "@mui/x-date-pickers";
|
|
16
|
-
import { R as R3 } from "./components/hook-form/RHFDateTime/index.
|
|
17
|
+
import { R as R3 } from "./components/hook-form/RHFDateTime/index.7f1cbd85.js";
|
|
17
18
|
import "@m4l/graphics";
|
|
18
|
-
import { R as R4, a as a2 } from "./components/hook-form/RHFTextField/index.
|
|
19
|
-
import { I as I3 } from "./components/Icon/index.
|
|
20
|
-
import { R as R5 } from "./components/hook-form/RHFPeriod/index.
|
|
19
|
+
import { R as R4, a as a2 } from "./components/hook-form/RHFTextField/index.3cb4b35f.js";
|
|
20
|
+
import { I as I3 } from "./components/Icon/index.619fa9ad.js";
|
|
21
|
+
import { R as R5 } from "./components/hook-form/RHFPeriod/index.116158c4.js";
|
|
21
22
|
import { E } from "./components/ErrorLabel/index.c8615f16.js";
|
|
22
|
-
import { P, g as g2 } from "./components/Period/index.
|
|
23
|
-
import { b, M, d, g as g3 } from "./components/CommonActions/components/Actions/index.
|
|
23
|
+
import { P as P2, g as g2 } from "./components/Period/index.9ce96aed.js";
|
|
24
|
+
import { b, M, d, g as g3 } from "./components/CommonActions/components/Actions/index.545d7067.js";
|
|
24
25
|
import "@mui/material/Button";
|
|
25
|
-
import { M as M2, a as a3 } from "./contexts/ModalContext/index.
|
|
26
|
+
import { M as M2, a as a3 } from "./contexts/ModalContext/index.9a44cced.js";
|
|
26
27
|
import "@mui/lab";
|
|
27
28
|
import "lodash/isString";
|
|
28
29
|
import "react-dropzone";
|
|
29
30
|
import { R as R6 } from "./components/hook-form/RHFUpload/index.d5cc7c13.js";
|
|
30
|
-
import { A } from "./components/mui_extended/Accordion/index.
|
|
31
|
+
import { A } from "./components/mui_extended/Accordion/index.86b97783.js";
|
|
31
32
|
import { A as A2 } from "./components/mui_extended/Avatar/index.fe06afd7.js";
|
|
32
|
-
import { B, L as L2 } from "./components/mui_extended/Button/index.
|
|
33
|
-
import { L as L3, P as
|
|
34
|
-
import { P as
|
|
33
|
+
import { B, L as L2 } from "./components/mui_extended/Button/index.bd85b59c.js";
|
|
34
|
+
import { L as L3, P as P3 } from "./components/mui_extended/Popover/index.f38042fc.js";
|
|
35
|
+
import { P as P4, g as g4 } from "./components/mui_extended/Pager/index.a98c43cc.js";
|
|
35
36
|
import { T } from "./components/mui_extended/Tab/index.e0653a0a.js";
|
|
36
|
-
import { D, N, T as T2, g as g5 } from "./components/DataGrid/index.
|
|
37
|
+
import { D, N, T as T2, b as b2, g as g5 } from "./components/DataGrid/index.b6a45f67.js";
|
|
37
38
|
import "react-dnd";
|
|
38
39
|
import "react-dnd-html5-backend";
|
|
39
40
|
import { S } from "./components/ScrollBar/index.39eeb2de.js";
|
|
40
|
-
import { D as D2, d as d2, g as g6 } from "./components/DynamicFilter/index.
|
|
41
|
+
import { D as D2, d as d2, g as g6 } from "./components/DynamicFilter/index.b3b19031.js";
|
|
41
42
|
import "simplebar/dist/simplebar.min.css";
|
|
42
43
|
import "@hookform/resolvers/yup";
|
|
43
|
-
import { R as R7 } from "./contexts/RHFormContext/index.
|
|
44
|
+
import { R as R7 } from "./contexts/RHFormContext/index.d88e6e27.js";
|
|
44
45
|
import "yup";
|
|
45
|
-
import "./react-draggable.
|
|
46
|
-
import { M as M3, d as d3, g as g7 } from "./components/ModalDialog/index.
|
|
47
|
-
import { R as R8 } from "./components/Resizeable/index.
|
|
46
|
+
import "./react-draggable.a09b624f.js";
|
|
47
|
+
import { M as M3, d as d3, g as g7 } from "./components/ModalDialog/index.81b8e093.js";
|
|
48
|
+
import { R as R8 } from "./components/Resizeable/index.d27b0310.js";
|
|
48
49
|
import { N as N2, d as d4, g as g8 } from "./components/NoItemSelected/index.46d2f632.js";
|
|
49
|
-
import { O, d as d5, g as g9 } from "./components/ObjectLogs/index.
|
|
50
|
-
import "./react-json-view.
|
|
51
|
-
import { P as
|
|
50
|
+
import { O, d as d5, g as g9 } from "./components/ObjectLogs/index.af1c3382.js";
|
|
51
|
+
import "./react-json-view.57125fcf.js";
|
|
52
|
+
import { P as P5 } from "./components/PaperForm/index.9582ff5e.js";
|
|
52
53
|
import { H } from "./components/Page/index.4237c241.js";
|
|
53
|
-
import { P as
|
|
54
|
-
import "./react-splitter-layout.
|
|
55
|
-
import { S as S2 } from "./components/SplitLayout/index.
|
|
54
|
+
import { P as P6 } from "./components/PropertyValue/index.dfcfe1ba.js";
|
|
55
|
+
import "./react-splitter-layout.8b1655c8.js";
|
|
56
|
+
import { S as S2 } from "./components/SplitLayout/index.5a8355d8.js";
|
|
56
57
|
import { v } from "./components/animate/variants/fade.b561c0fc.js";
|
|
57
58
|
import { v as v2 } from "./components/animate/variants/bounce.784aaaaa.js";
|
|
58
59
|
import { v as v3 } from "./components/animate/variants/container.11f82b76.js";
|
|
59
|
-
import { v as v4, a as a4, b as
|
|
60
|
+
import { v as v4, a as a4, b as b3 } from "./components/animate/variants/transition.bd46b9ce.js";
|
|
60
61
|
import { M as M4 } from "./components/animate/MotionContainer/index.8d9f9d80.js";
|
|
61
62
|
import { M as M5 } from "./components/animate/MotionLazyContainer/index.572dd012.js";
|
|
62
63
|
import { R as R9, g as g10 } from "./components/hook-form/RHFAutocompleteAsync/index.ca696cce.js";
|
|
@@ -66,27 +67,29 @@ import { R as R12 } from "./components/hook-form/RHFRadioGroup/index.b3335e13.js
|
|
|
66
67
|
import { B as B2 } from "./components/mui_extended/BoxIcon/index.e638ecc8.js";
|
|
67
68
|
import { B as B3 } from "./components/mui_extended/Breadcrumbs/index.5e37d903.js";
|
|
68
69
|
import { C } from "./components/mui_extended/CircularProgress/index.ad569afd.js";
|
|
69
|
-
import { L as L4 } from "./components/mui_extended/
|
|
70
|
+
import { L as L4 } from "./components/mui_extended/LinearProgress/index.c92b9ba9.js";
|
|
71
|
+
import { L as L5 } from "./components/mui_extended/LinkWithRoute/index.16436ab8.js";
|
|
70
72
|
import { T as T3 } from "./components/mui_extended/Typography/index.e5494696.js";
|
|
71
|
-
import { B as B4, c } from "./components/formatters/BooleanFormatter/index.
|
|
72
|
-
import { D as D3, c as c2 } from "./components/formatters/DateFormatter/index.
|
|
73
|
-
import { P as
|
|
74
|
-
import { A as A3 } from "./components/CommonActions/components/ActionCancel/index.
|
|
75
|
-
import { A as A4 } from "./components/CommonActions/components/ActionIntro/index.
|
|
76
|
-
import { A as A5 } from "./components/CommonActions/components/ActionFormCancel/index.
|
|
73
|
+
import { B as B4, c } from "./components/formatters/BooleanFormatter/index.81f4ea70.js";
|
|
74
|
+
import { D as D3, c as c2 } from "./components/formatters/DateFormatter/index.8494575f.js";
|
|
75
|
+
import { P as P7, b as b4, U, h, f, e, d as d6, a as a5, c as c3, g as g11 } from "./components/formatters/index.a0309e3a.js";
|
|
76
|
+
import { A as A3 } from "./components/CommonActions/components/ActionCancel/index.641ea102.js";
|
|
77
|
+
import { A as A4 } from "./components/CommonActions/components/ActionIntro/index.d53e0d31.js";
|
|
78
|
+
import { A as A5 } from "./components/CommonActions/components/ActionFormCancel/index.3b9e5121.js";
|
|
77
79
|
import { A as A6 } from "./components/CommonActions/components/ActionFormIntro/index.ca4d2674.js";
|
|
78
|
-
import { L as
|
|
80
|
+
import { L as L6 } from "./components/Loadable/index.55b8adb7.js";
|
|
79
81
|
import { S as S3 } from "./components/ScrollToTop/index.e06f98f6.js";
|
|
80
82
|
import { u } from "./hooks/useFormAddEdit/index.d4845f1a.js";
|
|
81
|
-
import { u as u2 } from "./hooks/useModal/index.
|
|
82
|
-
import { L as
|
|
83
|
-
import "./
|
|
83
|
+
import { u as u2 } from "./hooks/useModal/index.2a92d33a.js";
|
|
84
|
+
import { L as L7 } from "./assets/Logo/index.228dcb5a.js";
|
|
85
|
+
import "./node_modules.51fc30d1.js";
|
|
86
|
+
import "./utils/index.f3bfdc22.js";
|
|
84
87
|
import "./react-data-grid.d46d625e.js";
|
|
85
88
|
import "clsx";
|
|
86
89
|
import "simplebar-react";
|
|
87
90
|
import "prop-types";
|
|
88
91
|
import "react-dom";
|
|
89
|
-
import "./react-resizable.
|
|
92
|
+
import "./react-resizable.be53ee35.js";
|
|
90
93
|
import "./commonjs.565e6834.js";
|
|
91
94
|
import "react-helmet-async";
|
|
92
95
|
export {
|
|
@@ -112,11 +115,12 @@ export {
|
|
|
112
115
|
a as IconButtonAnimate,
|
|
113
116
|
I2 as Image,
|
|
114
117
|
L3 as LanguagePopover,
|
|
115
|
-
L4 as
|
|
116
|
-
L5 as
|
|
118
|
+
L4 as LinearProgress,
|
|
119
|
+
L5 as LinkWithRoute,
|
|
120
|
+
L6 as Loadable,
|
|
117
121
|
L2 as LoadingButton,
|
|
118
122
|
L as LoadingScreen,
|
|
119
|
-
|
|
123
|
+
L7 as Logo,
|
|
120
124
|
M as MenuActions,
|
|
121
125
|
M2 as ModalContext,
|
|
122
126
|
M3 as ModalDialog,
|
|
@@ -126,13 +130,14 @@ export {
|
|
|
126
130
|
N2 as NoItemSelected,
|
|
127
131
|
N as NumberEditor,
|
|
128
132
|
O as ObjectLogs,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
133
|
+
P4 as Pager,
|
|
134
|
+
P5 as PaperForm,
|
|
135
|
+
P2 as Period,
|
|
136
|
+
P7 as PointsFormatter,
|
|
137
|
+
P3 as Popover,
|
|
138
|
+
b4 as PriceFormatter,
|
|
139
|
+
P as PropagateLoader,
|
|
140
|
+
P6 as PropertyValue,
|
|
136
141
|
R as RHFAutocomplete,
|
|
137
142
|
R9 as RHFAutocompleteAsync,
|
|
138
143
|
R2 as RHFCheckbox,
|
|
@@ -155,9 +160,9 @@ export {
|
|
|
155
160
|
U as UncertaintyFormatter,
|
|
156
161
|
c as columnBooleanFormatter,
|
|
157
162
|
c2 as columnDateFormatter,
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
163
|
+
h as columnNestedValueFormatter,
|
|
164
|
+
f as columnPointsFormatter,
|
|
165
|
+
e as columnUncertaintyFormatter,
|
|
161
166
|
d as defaultCommonActionsDictionary,
|
|
162
167
|
d2 as defaultDynamicFilterDictionary,
|
|
163
168
|
d6 as defaultFormattersDictionary,
|
|
@@ -165,8 +170,10 @@ export {
|
|
|
165
170
|
d4 as defaultNoItemSelectedDictionary,
|
|
166
171
|
d5 as defaultObjectLogDictionary,
|
|
167
172
|
g3 as getCommonActionsDictionary,
|
|
173
|
+
b2 as getDataGridRowsFromSet,
|
|
168
174
|
g6 as getDynamicFilterComponentsDictionary,
|
|
169
|
-
|
|
175
|
+
a5 as getFormatPoints,
|
|
176
|
+
c3 as getFormattersComponentsDictionary,
|
|
170
177
|
g5 as getGridComponentsDictionary,
|
|
171
178
|
g7 as getModalDialogComponentsDictionary,
|
|
172
179
|
g8 as getNoItemSelectedComponentsDictionary,
|
|
@@ -175,6 +182,7 @@ export {
|
|
|
175
182
|
g2 as getPeriodComponetsDictionary,
|
|
176
183
|
g10 as getRHFAutocompleteAsyncComponentsDictionary,
|
|
177
184
|
g as getRHFAutocompleteComponentsDictionary,
|
|
185
|
+
g11 as getUncertaintyFormat,
|
|
178
186
|
u as useFormAddEdit,
|
|
179
187
|
u2 as useModal,
|
|
180
188
|
v2 as varBounce,
|
|
@@ -182,5 +190,5 @@ export {
|
|
|
182
190
|
v as varFade,
|
|
183
191
|
v4 as varTranEnter,
|
|
184
192
|
a4 as varTranExit,
|
|
185
|
-
|
|
193
|
+
b3 as varTranHover
|
|
186
194
|
};
|