@m4l/components 0.2.25 → 0.2.26
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 +3 -0
- package/components/AccountPopover/{index.505e278a.js → index.e31fc908.js} +2 -2
- package/components/AppBar/{index.7106417d.js → index.4945897e.js} +3 -4
- package/components/CommonActions/components/ActionCancel/{index.de862adf.js → index.33a748be.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.3fd5c858.js → index.9a965204.js} +4 -4
- package/components/CommonActions/components/ActionFormIntro/{index.07394f62.js → index.7add0125.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.79fc2386.js → index.ac7cd0ee.js} +2 -2
- package/components/CommonActions/components/Actions/{index.2f6286eb.js → index.389f9b28.js} +1 -2
- package/components/DataGrid/formatters/ColumnBooleanFormatter/{index.36270dd1.js → index.f731d23f.js} +1 -1
- package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/{index.8b008692.js → index.ad82747c.js} +1 -1
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/{index.cb308086.js → index.64854fdd.js} +1 -1
- package/components/DataGrid/formatters/ColumnPointsFormatter/{index.f3d6036f.js → index.4335c26b.js} +1 -1
- package/components/DataGrid/{index.b1eafce1.js → index.1c695ed3.js} +4 -5
- package/components/DataGrid/subcomponents/Actions/{index.9af87fa1.js → index.4a402633.js} +11 -12
- package/components/DataGrid/subcomponents/editors/TextEditor/{index.91380a55.js → index.eac1749c.js} +12 -1
- package/components/DragResizeWindow/{index.051c743d.js → index.f84451f8.js} +2 -3
- package/components/DynamicFilter/{index.b93e5649.js → index.22ba3195.js} +16 -16
- package/components/FieldLabel/FieldLabel.d.ts +2 -0
- package/components/FieldLabel/classes/constants.d.ts +1 -0
- package/components/FieldLabel/classes/index.d.ts +10 -0
- package/components/FieldLabel/classes/types.d.ts +11 -0
- package/components/FieldLabel/index.1da2a28d.js +82 -0
- package/components/FieldLabel/index.d.ts +1 -0
- package/components/FieldLabel/types.d.ts +8 -0
- package/components/HamburgerMenu/{index.25029e23.js → index.1663edef.js} +2 -2
- package/components/Icon/{index.b920baf8.js → index.8c744412.js} +1 -1
- package/components/Image/{index.d034ca68.js → index.39b3b9d9.js} +3 -4
- package/components/LanguagePopover/{index.e54c5cc7.js → index.80896e49.js} +3 -3
- package/components/LoadingError/{index.123e16f8.js → index.9c64680a.js} +2 -2
- package/components/MFLoader/{index.52096ea5.js → index.7cd7c372.js} +1 -1
- package/components/ModalDialog/{index.2e931b5f.js → index.ce0f4d16.js} +3 -3
- package/components/NoItemSelected/{index.1024b856.js → index.ffba558b.js} +2 -3
- package/components/ObjectLogs/{index.d10f4a2f.js → index.dd6a5009.js} +7 -8
- package/components/PDFViewer/{index.98852f91.js → index.093ddd35.js} +1 -1
- package/components/Page/{index.def863f2.js → index.1b20a73e.js} +1 -1
- package/components/PaperForm/{index.8a617a66.js → index.42e78a24.js} +2 -3
- package/components/Period/classes/index.d.ts +3 -1
- package/components/Period/classes/types.d.ts +6 -1
- package/components/Period/{index.d80dff10.js → index.6e8d92dc.js} +76 -61
- package/components/Period/subcomponents/SkeletonPeriod/index.d.ts +2 -0
- package/components/Period/subcomponents/SkeletonPeriod/types.d.ts +4 -0
- package/components/Period/types.d.ts +4 -1
- package/components/PrintingSystem/{index.2e17cae5.js → index.c2d21657.js} +14 -14
- package/components/PrintingSystem/subcomponents/BodyNode/{index.c5ffe20a.js → index.c7b59f3f.js} +1 -1
- package/components/PrintingSystem/subcomponents/ChartNode/{index.020c037c.js → index.263f02f0.js} +1 -1
- package/components/PrintingSystem/subcomponents/DividerNode/{index.78b023bb.js → index.f00c44f3.js} +1 -1
- package/components/PrintingSystem/subcomponents/FooterNode/{index.b29fc1e9.js → index.fb323704.js} +1 -1
- package/components/PrintingSystem/subcomponents/GridNode/{index.11626284.js → index.1ed935be.js} +1 -1
- package/components/PrintingSystem/subcomponents/HeaderNode/{index.ef44c8ab.js → index.5173c74a.js} +1 -1
- package/components/PrintingSystem/subcomponents/PaperNode/{index.d72d224b.js → index.fad64696.js} +1 -1
- package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.8e53440c.js → index.3a3e5fd0.js} +1 -1
- package/components/PrintingSystem/subcomponents/SectionNode/{index.0b66458e.js → index.2890fc12.js} +1 -1
- package/components/PrintingSystem/subcomponents/TextBoxNode/{index.b4c72fef.js → index.148708e6.js} +1 -1
- package/components/PropertyValue/{index.3b6670d4.js → index.4ea5af0f.js} +2 -3
- package/components/Resizeable/{index.0eb66c37.js → index.8db8f77d.js} +1 -1
- package/components/ScrollBar/{index.010f1b9d.js → index.7dfc2f29.js} +4 -3
- package/components/ScrollBar/index.d.ts +2 -2
- package/components/SideBar/classes/index.d.ts +7 -2
- package/components/SideBar/classes/types.d.ts +6 -1
- package/components/SideBar/constants.d.ts +2 -0
- package/components/SideBar/context/sideBarContext/types.d.ts +3 -1
- package/components/SideBar/{index.cdb70977.js → index.141dac10.js} +251 -410
- package/components/SideBar/subcomponents/ContentDesktop/subcomponents/CollapseButton/index.d.ts +1 -1
- package/components/SideBar/subcomponents/ContentDesktop/subcomponents/ContentComponent/index.d.ts +1 -0
- package/components/SideBar/subcomponents/ContentGroups/index.d.ts +1 -1
- package/components/SideBar/types.d.ts +1 -4
- package/components/SplitLayout/{index.30fd5861.js → index.3856385c.js} +1 -2
- package/components/ToastContainer/{index.97fdba82.js → index.98c4873e.js} +2 -2
- package/components/areas/components/AreasAdmin/{index.e4f0ccc1.js → index.debe3e3d.js} +13 -14
- package/components/areas/components/AreasViewer/{index.f87c63ca.js → index.82a22acb.js} +9 -10
- package/components/areas/contexts/AreasContext/{index.3e3d8c62.js → index.0dc69929.js} +2 -2
- package/components/areas/hooks/useAreas/{index.b18fe111.js → index.ca15a4b6.js} +1 -1
- package/components/commercial/TopBar/{index.8e2163f7.js → index.32a332c4.js} +5 -18
- package/components/formatters/BooleanFormatter/{index.b3052107.js → index.0703a256.js} +2 -2
- package/components/formatters/PointsFormatter/{index.5c94c5e8.js → index.8a4fa393.js} +4 -4
- package/components/formatters/{index.95cc337e.js → index.94be7098.js} +1 -1
- package/components/hook-form/RHFAutocomplete/{index.cf399b24.js → index.993794f8.js} +22 -11
- package/components/hook-form/RHFAutocomplete/types.d.ts +5 -6
- package/components/hook-form/RHFAutocompleteAsync/{index.b2b75475.js → index.924c6473.js} +2 -3
- package/components/hook-form/RHFCheckbox/{index.a38715e3.js → index.f1fd5789.js} +18 -8
- package/components/hook-form/RHFCheckbox/types.d.ts +2 -1
- package/components/hook-form/RHFColorPicker/RFHColorPicker.d.ts +8 -0
- package/components/hook-form/RHFColorPicker/classes/index.d.ts +2 -1
- package/components/hook-form/RHFColorPicker/classes/types.d.ts +2 -0
- package/components/hook-form/RHFColorPicker/dictionary.d.ts +1 -0
- package/components/hook-form/RHFColorPicker/index.60b50052.js +188 -0
- package/components/hook-form/RHFColorPicker/index.d.ts +2 -8
- package/components/hook-form/RHFColorPicker/subcomponents/Skeleton/indext.d.ts +2 -1
- package/components/hook-form/RHFColorPicker/subcomponents/Skeleton/types.d.ts +3 -0
- package/components/hook-form/RHFColorPicker/types.d.ts +11 -2
- package/components/hook-form/RHFDateTime/classes/types.d.ts +2 -0
- package/components/hook-form/RHFDateTime/{index.5a673a96.js → index.2396ea4a.js} +35 -37
- package/components/hook-form/RHFDateTime/subcomponents/Skeleton/types.d.ts +3 -2
- package/components/hook-form/RHFDateTime/types.d.ts +2 -1
- package/components/hook-form/RHFPeriod/{index.4205c8ab.js → index.011965ef.js} +18 -4
- package/components/hook-form/RHFPeriod/types.d.ts +3 -1
- package/components/hook-form/RHFTextField/{index.fbb29ee1.js → index.fb0d1cac.js} +21 -12
- package/components/hook-form/RHFTextField/types.d.ts +2 -2
- package/components/hook-form/RHFTextFieldPassword/types.d.ts +0 -1
- package/components/hook-form/RHFUpload/{index.05d7e2a7.js → index.e5f734b8.js} +4 -5
- package/components/hook-form/index.d.ts +1 -1
- package/components/index.d.ts +1 -0
- package/components/modal/{WindowBase.998b8a38.js → WindowBase.dd1d2d7b.js} +3 -3
- package/components/modal/{WindowConfirm.55ac3c8f.js → WindowConfirm.4501497a.js} +6 -6
- package/components/mui_extended/Accordion/{index.fb4eb664.js → index.4393eca9.js} +2 -2
- package/components/mui_extended/Button/{index.e520bd15.js → index.93389adb.js} +1 -1
- package/components/mui_extended/CheckBox/types.d.ts +2 -1
- package/components/mui_extended/{CheckBox.e662d20c.js → CheckBox.840a443f.js} +21 -23
- package/components/mui_extended/IconButton/{index.9ea23f87.js → index.383f5496.js} +1 -1
- package/components/mui_extended/MenuActions/{index.fa7c26a5.js → index.e6e3aac8.js} +4 -5
- package/components/mui_extended/Pager/{index.0c703574.js → index.5791276c.js} +2 -3
- package/components/mui_extended/Popover/{index.b3eca6b1.js → index.d85de73b.js} +1 -2
- package/components/mui_extended/Tab/{index.409b9c74.js → index.2068925d.js} +2 -3
- package/components/mui_extended/ToggleButton/{index.bcaea74b.js → index.4ac1f974.js} +1 -1
- package/components/mui_extended/ToggleIconButton/{index.131772d7.js → index.8ca0114f.js} +1 -1
- package/contexts/ModalContext/{index.978a412d.js → index.dde4e35a.js} +1 -1
- package/contexts/RHFormContext/{index.7769076a.js → index.7b2a8723.js} +1 -2
- package/hooks/useFormAddEdit/{index.4caddd24.js → index.7fdad61d.js} +2 -2
- package/hooks/useModal/{index.786a4439.js → index.2f1d6a07.js} +1 -1
- package/hooks/useTab/{index.eee18a49.js → index.c0564138.js} +1 -1
- package/index.js +118 -115
- package/{node_modules.71622512.js → node_modules.585eab0e.js} +1 -1
- package/package.json +1 -1
- package/{vendor.a735310a.js → vendor.173d0b89.js} +68 -67
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/Skeleton/index.d.ts +0 -1
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/Skeleton/types.d.ts +0 -3
- package/components/SideBar/subcomponents/ContentGroups/type.d.ts +0 -7
- package/components/hook-form/RHFColorPicker/index.48a1ee1b.js +0 -153
- package/components/mui_extended/Popover/index.d.ts +0 -2
|
@@ -4,7 +4,9 @@ export declare const periodClasses: PeriodClassesType;
|
|
|
4
4
|
export declare function getPeriodUtilityClass(slot: string): string;
|
|
5
5
|
export declare const periodUtilityClasses: (ownerState: OwnerState) => {
|
|
6
6
|
root: string;
|
|
7
|
-
gap: string;
|
|
8
7
|
containerDateLabel: string;
|
|
9
8
|
containerDateValue: string;
|
|
9
|
+
skeleton: string;
|
|
10
|
+
skeletonFieldPrimary: string;
|
|
11
|
+
skeletonFieldSecondary: string;
|
|
10
12
|
};
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import { periodUtilityClasses } from ".";
|
|
2
2
|
export interface PeriodClassesType {
|
|
3
3
|
root: string;
|
|
4
|
-
gap: string;
|
|
5
4
|
containerDateLabel: string;
|
|
6
5
|
containerDateValue: string;
|
|
6
|
+
skeleton: string;
|
|
7
|
+
skeletonFieldPrimary: string;
|
|
8
|
+
skeletonFieldSecondary: string;
|
|
7
9
|
stateError: string;
|
|
8
10
|
stateReadOnly: string;
|
|
9
11
|
variantMonoperiod: string;
|
|
10
12
|
variantMultiperiod: string;
|
|
13
|
+
sizeSmall: string;
|
|
14
|
+
sizeMedium: string;
|
|
15
|
+
isFocus: string;
|
|
11
16
|
}
|
|
12
17
|
export declare type PeriodClassesKey = keyof PeriodClassesType;
|
|
13
18
|
export declare type Classes = ReturnType<typeof periodUtilityClasses>;
|
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import { useModuleDictionary, useModuleSkeleton, useEnvironment } from "@m4l/core";
|
|
2
|
-
import { styled, generateUtilityClasses, generateUtilityClass, Autocomplete, TextField
|
|
3
|
-
import { useMemo } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.2f6286eb.js";
|
|
2
|
+
import { styled, generateUtilityClasses, generateUtilityClass, Skeleton, Autocomplete, TextField } from "@mui/material";
|
|
3
|
+
import { useState, useMemo } from "react";
|
|
4
|
+
import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.389f9b28.js";
|
|
6
5
|
import { unstable_composeClasses } from "@mui/base";
|
|
7
6
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
8
|
-
import {
|
|
7
|
+
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
8
|
+
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
9
9
|
import { T as Typography } from "../mui_extended/Typography/index.379dd374.js";
|
|
10
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.383f5496.js";
|
|
10
11
|
const ContainerPeriod = styled("div")(({
|
|
11
12
|
theme
|
|
12
13
|
}) => ({
|
|
13
14
|
...theme.components?.M4LPeriod?.styleOverrides
|
|
14
15
|
}));
|
|
15
|
-
|
|
16
|
+
styled("div")(({
|
|
16
17
|
theme
|
|
17
18
|
}) => ({
|
|
18
19
|
width: "1px",
|
|
19
20
|
height: "20px",
|
|
20
21
|
backgroundColor: theme.palette.divider
|
|
21
22
|
}));
|
|
22
|
-
|
|
23
|
+
styled("div", {
|
|
23
24
|
shouldForwardProp: (props) => props !== "readOnly"
|
|
24
25
|
})(({
|
|
25
26
|
theme,
|
|
@@ -66,9 +67,9 @@ var ETimePeriods = /* @__PURE__ */ ((ETimePeriods2) => {
|
|
|
66
67
|
return ETimePeriods2;
|
|
67
68
|
})(ETimePeriods || {});
|
|
68
69
|
const dictionary = {
|
|
69
|
-
LABEL_YEARS: "
|
|
70
|
-
LABEL_MONTHS: "
|
|
71
|
-
LABEL_DAYS: "
|
|
70
|
+
LABEL_YEARS: "period.label_years",
|
|
71
|
+
LABEL_MONTHS: "period.label_months",
|
|
72
|
+
LABEL_DAYS: "period.label_days"
|
|
72
73
|
};
|
|
73
74
|
function getPeriodComponetsDictionary() {
|
|
74
75
|
return ["period"].concat(getCommonActionsDictionary());
|
|
@@ -76,23 +77,31 @@ function getPeriodComponetsDictionary() {
|
|
|
76
77
|
const componentName = "M4LPeriod";
|
|
77
78
|
generateUtilityClasses(componentName, [
|
|
78
79
|
"root",
|
|
79
|
-
"gap",
|
|
80
80
|
"containerDateLabel",
|
|
81
81
|
"containerDateValue",
|
|
82
|
+
"skeleton",
|
|
83
|
+
"skeletonFieldPrimary",
|
|
84
|
+
"skeletonFieldSecondary",
|
|
85
|
+
"skeletonFieldSecondary",
|
|
82
86
|
"stateError",
|
|
83
87
|
"stateReadOnly",
|
|
84
88
|
"variantMonoperiod",
|
|
85
|
-
"variantMultiperiod"
|
|
89
|
+
"variantMultiperiod",
|
|
90
|
+
"sizeSmall",
|
|
91
|
+
"sizeMedium",
|
|
92
|
+
"isFocus"
|
|
86
93
|
]);
|
|
87
94
|
function getPeriodUtilityClass(slot) {
|
|
88
95
|
return generateUtilityClass(componentName, slot);
|
|
89
96
|
}
|
|
90
97
|
const periodUtilityClasses = (ownerState) => {
|
|
91
98
|
const slots = {
|
|
92
|
-
root: ["root", ownerState.state === "error" && "stateError", ownerState.state === "success" && "stateSuccess", ownerState.state === "warning" && "stateWarning", ownerState.state === "info" && "stateInfo", ownerState.readOnly && "stateReadOnly", ownerState.variant === "monoperiod" ? "variantMonoperiod" : null, ownerState.variant === "multiperiod" ? "variantMultiperiod" : null],
|
|
93
|
-
gap: ["gap"],
|
|
99
|
+
root: ["root", ownerState.size === "small" && "sizeSmall", ownerState.size === "medium" && "sizeMedium", ownerState.state === "error" && "stateError", ownerState.state === "success" && "stateSuccess", ownerState.state === "warning" && "stateWarning", ownerState.state === "info" && "stateInfo", ownerState.readOnly && "stateReadOnly", ownerState.variant === "monoperiod" ? "variantMonoperiod" : null, ownerState.variant === "multiperiod" ? "variantMultiperiod" : null, ownerState.focus && "isFocus"],
|
|
94
100
|
containerDateLabel: ["containerDateLabel"],
|
|
95
|
-
containerDateValue: ["containerDateValue"]
|
|
101
|
+
containerDateValue: ["containerDateValue"],
|
|
102
|
+
skeleton: ["skeleton"],
|
|
103
|
+
skeletonFieldPrimary: ["skeletonFieldPrimary"],
|
|
104
|
+
skeletonFieldSecondary: ["skeletonFieldSecondary"]
|
|
96
105
|
};
|
|
97
106
|
const composedClasses = unstable_composeClasses(slots, getPeriodUtilityClass, {});
|
|
98
107
|
return {
|
|
@@ -103,6 +112,27 @@ const PERIOD_PREFIX = "M4LPeriod";
|
|
|
103
112
|
const getNamePeriodDataTestId = (KEY) => {
|
|
104
113
|
return `${PERIOD_PREFIX}-${KEY}`;
|
|
105
114
|
};
|
|
115
|
+
const SkeletonPeriod = (props) => {
|
|
116
|
+
const {
|
|
117
|
+
classes
|
|
118
|
+
} = props;
|
|
119
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
120
|
+
className: classes.skeleton,
|
|
121
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
122
|
+
className: classes.skeletonFieldPrimary,
|
|
123
|
+
children: /* @__PURE__ */ jsx(Skeleton, {
|
|
124
|
+
variant: "text",
|
|
125
|
+
width: "50%"
|
|
126
|
+
})
|
|
127
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
128
|
+
className: classes.skeletonFieldSecondary,
|
|
129
|
+
children: /* @__PURE__ */ jsx(Skeleton, {
|
|
130
|
+
variant: "text",
|
|
131
|
+
width: "50%"
|
|
132
|
+
})
|
|
133
|
+
})]
|
|
134
|
+
});
|
|
135
|
+
};
|
|
106
136
|
const getSelPeriodTime = (period) => {
|
|
107
137
|
if (!period)
|
|
108
138
|
return ETimePeriods.YEARS;
|
|
@@ -135,16 +165,29 @@ const Period = (props) => {
|
|
|
135
165
|
onChange,
|
|
136
166
|
state,
|
|
137
167
|
readOnly = false,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
variant = "monoperiod"
|
|
168
|
+
variant = "monoperiod",
|
|
169
|
+
size = "small"
|
|
141
170
|
} = props;
|
|
142
171
|
const {
|
|
143
172
|
getLabel
|
|
144
173
|
} = useModuleDictionary();
|
|
174
|
+
const [open, setOpen] = useState(false);
|
|
175
|
+
const [isFocus, setIsFocus] = useState(false);
|
|
145
176
|
const isSkeleton = useModuleSkeleton();
|
|
146
177
|
const selPeriodTime = getSelPeriodTime(value);
|
|
147
178
|
const singleValue = getSingleValue(value);
|
|
179
|
+
const isDesktop = useResponsiveDesktop();
|
|
180
|
+
const {
|
|
181
|
+
host_static_assets,
|
|
182
|
+
environment_assets
|
|
183
|
+
} = useEnvironment();
|
|
184
|
+
const iconDown = `${host_static_assets}/${environment_assets}/frontend/components/RHFAutocompletarAsync/assets/icons/chevronDown.svg`;
|
|
185
|
+
const handleFocus = () => {
|
|
186
|
+
setIsFocus(true);
|
|
187
|
+
};
|
|
188
|
+
const handleBlur = () => {
|
|
189
|
+
setIsFocus(false);
|
|
190
|
+
};
|
|
148
191
|
const onTotalChange = (newPeriodTime, newValue) => {
|
|
149
192
|
const newPeriod = {
|
|
150
193
|
selPeriodTime: newPeriodTime,
|
|
@@ -168,10 +211,6 @@ const Period = (props) => {
|
|
|
168
211
|
onTotalChange(newPeriodTime.id, singleValue);
|
|
169
212
|
}
|
|
170
213
|
};
|
|
171
|
-
const {
|
|
172
|
-
host_static_assets,
|
|
173
|
-
environment_assets
|
|
174
|
-
} = useEnvironment();
|
|
175
214
|
const options = useMemo(() => [{
|
|
176
215
|
id: 0,
|
|
177
216
|
label: getLabel(dictionary.LABEL_YEARS)
|
|
@@ -185,11 +224,15 @@ const Period = (props) => {
|
|
|
185
224
|
const ownerState = {
|
|
186
225
|
readOnly,
|
|
187
226
|
state,
|
|
188
|
-
variant
|
|
227
|
+
variant,
|
|
228
|
+
size: isDesktop ? size : "medium",
|
|
229
|
+
focus: isFocus
|
|
189
230
|
};
|
|
190
231
|
const classes = periodUtilityClasses(ownerState);
|
|
191
232
|
return /* @__PURE__ */ jsx(ContainerPeriod, {
|
|
192
233
|
className: classes.root,
|
|
234
|
+
onFocus: handleFocus,
|
|
235
|
+
onBlur: handleBlur,
|
|
193
236
|
...process.env.NODE_ENV !== "production" ? {
|
|
194
237
|
[TEST_PROP_ID]: getNamePeriodDataTestId("root")
|
|
195
238
|
} : {},
|
|
@@ -202,11 +245,6 @@ const Period = (props) => {
|
|
|
202
245
|
skeletonWidth: "50%",
|
|
203
246
|
children: value.selPeriodTime === 0 ? getLabel(dictionary.LABEL_YEARS) : value.selPeriodTime === 1 ? getLabel(dictionary.LABEL_MONTHS) : value.selPeriodTime === 2 ? getLabel(dictionary.LABEL_DAYS) : null
|
|
204
247
|
})
|
|
205
|
-
}), /* @__PURE__ */ jsx(Gap, {
|
|
206
|
-
className: classes.gap,
|
|
207
|
-
...process.env.NODE_ENV !== "production" ? {
|
|
208
|
-
[TEST_PROP_ID]: getNamePeriodDataTestId("gap")
|
|
209
|
-
} : {}
|
|
210
248
|
}), /* @__PURE__ */ jsx("div", {
|
|
211
249
|
className: classes.containerDateValue,
|
|
212
250
|
children: /* @__PURE__ */ jsx(Typography, {
|
|
@@ -214,14 +252,15 @@ const Period = (props) => {
|
|
|
214
252
|
skeletonWidth: "80%",
|
|
215
253
|
children: value.singleValue
|
|
216
254
|
})
|
|
217
|
-
}), /* @__PURE__ */ jsx(Icon, {
|
|
218
|
-
src: `${host_static_assets}/${environment_assets}/frontend/components/period/assets/icons/clock.svg`
|
|
219
255
|
})]
|
|
220
256
|
}) : /* @__PURE__ */ jsxs(Fragment, {
|
|
221
257
|
children: [/* @__PURE__ */ jsx(Autocomplete, {
|
|
222
258
|
options,
|
|
223
259
|
value: options[selPeriodTime],
|
|
224
260
|
disableClearable: true,
|
|
261
|
+
open,
|
|
262
|
+
onOpen: () => setOpen(true),
|
|
263
|
+
onClose: () => setOpen(false),
|
|
225
264
|
onChange: (_event, autcValue) => {
|
|
226
265
|
onChangeTime(autcValue);
|
|
227
266
|
},
|
|
@@ -235,16 +274,15 @@ const Period = (props) => {
|
|
|
235
274
|
},
|
|
236
275
|
InputProps: {
|
|
237
276
|
disableUnderline: true,
|
|
238
|
-
...params.InputProps
|
|
277
|
+
...params.InputProps,
|
|
278
|
+
endAdornment: /* @__PURE__ */ jsx(IconButton, {
|
|
279
|
+
src: iconDown,
|
|
280
|
+
onClick: () => setOpen((open2) => !open2)
|
|
281
|
+
})
|
|
239
282
|
},
|
|
240
283
|
autoComplete: "off"
|
|
241
284
|
}, `tx_async_${params.id}`);
|
|
242
285
|
}
|
|
243
|
-
}), /* @__PURE__ */ jsx(Gap, {
|
|
244
|
-
className: classes.gap,
|
|
245
|
-
...process.env.NODE_ENV !== "production" ? {
|
|
246
|
-
[TEST_PROP_ID]: getNamePeriodDataTestId("gap")
|
|
247
|
-
} : {}
|
|
248
286
|
}), /* @__PURE__ */ jsx(TextField, {
|
|
249
287
|
type: "number",
|
|
250
288
|
variant: "standard",
|
|
@@ -255,33 +293,10 @@ const Period = (props) => {
|
|
|
255
293
|
onChange: (e) => {
|
|
256
294
|
onTotalChange(selPeriodTime, e.target.value === "" ? "" : parseInt(e.target.value));
|
|
257
295
|
}
|
|
258
|
-
}), /* @__PURE__ */ jsx(Icon, {
|
|
259
|
-
src: `${host_static_assets}/${environment_assets}/frontend/components/period/assets/icons/clock.svg`
|
|
260
296
|
})]
|
|
261
297
|
})
|
|
262
|
-
}) : /* @__PURE__ */
|
|
263
|
-
|
|
264
|
-
children: [/* @__PURE__ */ jsx(Skeleton, {
|
|
265
|
-
variant: "text",
|
|
266
|
-
width: "50%",
|
|
267
|
-
height: skeletonHeight
|
|
268
|
-
}), /* @__PURE__ */ jsx(Gap, {
|
|
269
|
-
className: classes.gap,
|
|
270
|
-
...process.env.NODE_ENV !== "production" ? {
|
|
271
|
-
[TEST_PROP_ID]: getNamePeriodDataTestId("gap")
|
|
272
|
-
} : {}
|
|
273
|
-
}), /* @__PURE__ */ jsx(Skeleton, {
|
|
274
|
-
variant: "text",
|
|
275
|
-
width: skeletonWidth,
|
|
276
|
-
height: skeletonHeight
|
|
277
|
-
}), /* @__PURE__ */ jsx(Skeleton, {
|
|
278
|
-
variant: "circular",
|
|
279
|
-
width: 20,
|
|
280
|
-
sx: {
|
|
281
|
-
minWidth: "20px",
|
|
282
|
-
minHeight: "20px"
|
|
283
|
-
}
|
|
284
|
-
})]
|
|
298
|
+
}) : /* @__PURE__ */ jsx(SkeletonPeriod, {
|
|
299
|
+
classes
|
|
285
300
|
})
|
|
286
301
|
});
|
|
287
302
|
};
|
|
@@ -25,8 +25,11 @@ export interface PeriodProps {
|
|
|
25
25
|
variant?: PeriodVariant;
|
|
26
26
|
skeletonWidth?: string | number;
|
|
27
27
|
skeletonHeight?: string | number;
|
|
28
|
+
size?: 'small' | 'medium';
|
|
28
29
|
}
|
|
29
30
|
export interface WrapperProps {
|
|
30
31
|
error: boolean;
|
|
31
32
|
}
|
|
32
|
-
export
|
|
33
|
+
export interface OwnerState extends Pick<PeriodProps, 'state' | 'readOnly' | 'variant' | 'size'> {
|
|
34
|
+
focus: boolean;
|
|
35
|
+
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { generateUtilityClasses } from "@mui/material";
|
|
1
|
+
import { generateUtilityClasses, styled } from "@mui/material";
|
|
2
2
|
import { unstable_composeClasses } from "@mui/base";
|
|
3
3
|
import { g as getComponentUtilityClass } from "../../utils/index.de903261.js";
|
|
4
|
-
import { styled, useTheme } from "@mui/material/styles";
|
|
5
4
|
import clsx from "clsx";
|
|
6
|
-
import { D as DividerNode } from "./subcomponents/DividerNode/index.
|
|
7
|
-
import { S as SectionNode } from "./subcomponents/SectionNode/index.
|
|
8
|
-
import { T as TextBoxNode } from "./subcomponents/TextBoxNode/index.
|
|
9
|
-
import { H as HeaderNode } from "./subcomponents/HeaderNode/index.
|
|
10
|
-
import { a as ImageNode, Q as QRImageNode } from "../Image/index.
|
|
11
|
-
import { B as BodyNode } from "./subcomponents/BodyNode/index.
|
|
12
|
-
import { F as FooterNode } from "./subcomponents/FooterNode/index.
|
|
13
|
-
import { P as PaperNode } from "./subcomponents/PaperNode/index.
|
|
14
|
-
import { P as PropertyValueNode } from "./subcomponents/PropertyValueNode/index.
|
|
15
|
-
import { G as GridNode } from "./subcomponents/GridNode/index.
|
|
16
|
-
import { C as ChartNode } from "./subcomponents/ChartNode/index.
|
|
17
|
-
import { P as PagerNode, a as PageRender } from "../Page/index.
|
|
5
|
+
import { D as DividerNode } from "./subcomponents/DividerNode/index.f00c44f3.js";
|
|
6
|
+
import { S as SectionNode } from "./subcomponents/SectionNode/index.2890fc12.js";
|
|
7
|
+
import { T as TextBoxNode } from "./subcomponents/TextBoxNode/index.148708e6.js";
|
|
8
|
+
import { H as HeaderNode } from "./subcomponents/HeaderNode/index.5173c74a.js";
|
|
9
|
+
import { a as ImageNode, Q as QRImageNode } from "../Image/index.39b3b9d9.js";
|
|
10
|
+
import { B as BodyNode } from "./subcomponents/BodyNode/index.c7b59f3f.js";
|
|
11
|
+
import { F as FooterNode } from "./subcomponents/FooterNode/index.fb323704.js";
|
|
12
|
+
import { P as PaperNode } from "./subcomponents/PaperNode/index.fad64696.js";
|
|
13
|
+
import { P as PropertyValueNode } from "./subcomponents/PropertyValueNode/index.3a3e5fd0.js";
|
|
14
|
+
import { G as GridNode } from "./subcomponents/GridNode/index.1ed935be.js";
|
|
15
|
+
import { C as ChartNode } from "./subcomponents/ChartNode/index.263f02f0.js";
|
|
16
|
+
import { P as PagerNode, a as PageRender } from "../Page/index.1b20a73e.js";
|
|
18
17
|
import { useBase, evaluateWithContext } from "@m4l/core";
|
|
19
18
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
20
19
|
import { forwardRef, useRef, useImperativeHandle } from "react";
|
|
20
|
+
import { useTheme } from "@mui/material/styles";
|
|
21
21
|
const componentName = "M4LPrintingSystem";
|
|
22
22
|
const classes = generateUtilityClasses(componentName, [
|
|
23
23
|
"root",
|
package/components/PrintingSystem/subcomponents/BodyNode/{index.c5ffe20a.js → index.c7b59f3f.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useBase } from "@m4l/core";
|
|
2
|
-
import { c as classes, g as getSize } from "../../index.
|
|
2
|
+
import { c as classes, g as getSize } from "../../index.c2d21657.js";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
const BodyNode = (props) => {
|
package/components/PrintingSystem/subcomponents/FooterNode/{index.b29fc1e9.js → index.fb323704.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useBase } from "@m4l/core";
|
|
2
|
-
import { c as classes, g as getSize } from "../../index.
|
|
2
|
+
import { c as classes, g as getSize } from "../../index.c2d21657.js";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
const FooterNode = (props) => {
|
package/components/PrintingSystem/subcomponents/GridNode/{index.11626284.js → index.1ed935be.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useBase, getPropertyByString, evaluateWithContext } from "@m4l/core";
|
|
2
|
-
import { c as classes, g as getSize } from "../../index.
|
|
2
|
+
import { c as classes, g as getSize } from "../../index.c2d21657.js";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
5
5
|
const GridNode = (props) => {
|
package/components/PrintingSystem/subcomponents/HeaderNode/{index.ef44c8ab.js → index.5173c74a.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useBase } from "@m4l/core";
|
|
2
|
-
import { c as classes, g as getSize } from "../../index.
|
|
2
|
+
import { c as classes, g as getSize } from "../../index.c2d21657.js";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
const HeaderNode = (props) => {
|
package/components/PrintingSystem/subcomponents/PaperNode/{index.d72d224b.js → index.fad64696.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useBase, evaluateWithContext } from "@m4l/core";
|
|
2
|
-
import { c as classes } from "../../index.
|
|
2
|
+
import { c as classes } from "../../index.c2d21657.js";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
5
5
|
const PaperNode = (props) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useBase, evaluateWithContext } from "@m4l/core";
|
|
2
|
-
import { c as classes, g as getSize } from "../../index.
|
|
2
|
+
import { c as classes, g as getSize } from "../../index.c2d21657.js";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
5
5
|
const PropertyValueNode = (props) => {
|
package/components/PrintingSystem/subcomponents/SectionNode/{index.0b66458e.js → index.2890fc12.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useBase } from "@m4l/core";
|
|
2
|
-
import { c as classes, g as getSize } from "../../index.
|
|
2
|
+
import { c as classes, g as getSize } from "../../index.c2d21657.js";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
const SectionNode = (props) => {
|
package/components/PrintingSystem/subcomponents/TextBoxNode/{index.b4c72fef.js → index.148708e6.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useBase, evaluateWithContext } from "@m4l/core";
|
|
2
|
-
import { c as classes } from "../../index.
|
|
2
|
+
import { c as classes } from "../../index.c2d21657.js";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
const TextBoxNode = (props) => {
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { styled } from "@mui/material
|
|
1
|
+
import { styled, generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
2
2
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
3
|
-
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
4
3
|
import { unstable_composeClasses } from "@mui/base";
|
|
5
4
|
import clsx from "clsx";
|
|
6
5
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
7
6
|
import { g as getNameDataTestId } from "../../test/getNameDataTestId.14875ec7.js";
|
|
8
7
|
import { useState } from "react";
|
|
9
8
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
10
|
-
import { I as Icon } from "../Icon/index.
|
|
9
|
+
import { I as Icon } from "../Icon/index.8c744412.js";
|
|
11
10
|
import { T as Typography } from "../mui_extended/Typography/index.379dd374.js";
|
|
12
11
|
const PropertyValueRoot = styled("div")(({
|
|
13
12
|
theme
|
|
@@ -96,9 +96,10 @@ const useScrollBarUtilityClasses = () => {
|
|
|
96
96
|
...composedClasses
|
|
97
97
|
};
|
|
98
98
|
};
|
|
99
|
-
function ScrollBar({
|
|
100
|
-
|
|
101
|
-
|
|
99
|
+
function ScrollBar(props) {
|
|
100
|
+
const {
|
|
101
|
+
children
|
|
102
|
+
} = props;
|
|
102
103
|
const userAgent = typeof navigator === "undefined" ? "SSR" : navigator.userAgent;
|
|
103
104
|
const isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(userAgent);
|
|
104
105
|
if (isMobile) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
interface
|
|
2
|
+
interface ScrollBarProps {
|
|
3
3
|
children?: ReactElement;
|
|
4
4
|
}
|
|
5
|
-
export declare function ScrollBar(
|
|
5
|
+
export declare function ScrollBar(props: ScrollBarProps): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export default ScrollBar;
|
|
@@ -2,14 +2,17 @@ import { SideBarClassesType } from './types';
|
|
|
2
2
|
import { SideBarState } from '../types';
|
|
3
3
|
export declare const SideBarClasses: SideBarClassesType;
|
|
4
4
|
export declare const getSideBarClassesByState: (ownerState: SideBarState) => {
|
|
5
|
+
footer: string;
|
|
5
6
|
root: string;
|
|
6
7
|
drawer: string;
|
|
7
8
|
popover: string;
|
|
8
9
|
containerLogo: string;
|
|
10
|
+
skeleton: string;
|
|
9
11
|
containerSideBarLogo: string;
|
|
10
12
|
contentDesktop: string;
|
|
11
13
|
contentMobile: string;
|
|
12
14
|
collapseButton: string;
|
|
15
|
+
collapseButtonSecondary: string;
|
|
13
16
|
contentGroups: string;
|
|
14
17
|
wrapperGroup: string;
|
|
15
18
|
wrapperGroupTitle: string;
|
|
@@ -20,19 +23,21 @@ export declare const getSideBarClassesByState: (ownerState: SideBarState) => {
|
|
|
20
23
|
arrowIconRoot: string;
|
|
21
24
|
navListSubItemRoot: string;
|
|
22
25
|
navSubItemContentRoot: string;
|
|
23
|
-
skeleton: string;
|
|
24
26
|
subItemActive: string;
|
|
25
27
|
lineLeft: string;
|
|
26
28
|
wrapperSideBar: string;
|
|
29
|
+
areaExpandMenu: string;
|
|
27
30
|
itemMainActive: string;
|
|
28
31
|
navItemMainTriangleTop: string;
|
|
29
32
|
navItemMainTriangleBottom: string;
|
|
30
33
|
navItemRootContentIconTypo: string;
|
|
31
34
|
navSubItemContentBullet: string;
|
|
32
35
|
containerLogoButtonLogo: string;
|
|
33
|
-
containerLogoButtonIcon: string;
|
|
34
36
|
collapseButtontriangleTop: string;
|
|
35
37
|
collapseButtontriangleBottom: string;
|
|
36
38
|
subItemCollapseActive: string;
|
|
39
|
+
containerContentGroupsFooter: string;
|
|
37
40
|
contentGroupsLine: string;
|
|
41
|
+
overlapping: string;
|
|
42
|
+
wrapperLogoFooter: string;
|
|
38
43
|
};
|
|
@@ -2,7 +2,9 @@ export interface SideBarClassesType {
|
|
|
2
2
|
root: string;
|
|
3
3
|
contentDesktop: string;
|
|
4
4
|
contentMobile: string;
|
|
5
|
+
footer: string;
|
|
5
6
|
collapseButton: string;
|
|
7
|
+
collapseButtonSecondary: string;
|
|
6
8
|
containerSideBarLogo: string;
|
|
7
9
|
containerLogo: string;
|
|
8
10
|
contentGroups: string;
|
|
@@ -18,19 +20,22 @@ export interface SideBarClassesType {
|
|
|
18
20
|
skeleton: string;
|
|
19
21
|
lineLeft: string;
|
|
20
22
|
wrapperSideBar: string;
|
|
23
|
+
areaExpandMenu: string;
|
|
21
24
|
navItemRootContentIconTypo: string;
|
|
22
25
|
navSubItemContentBullet: string;
|
|
23
26
|
containerLogoButtonLogo: string;
|
|
24
|
-
containerLogoButtonIcon: string;
|
|
25
27
|
subItemCollapseActive: string;
|
|
28
|
+
containerContentGroupsFooter: string;
|
|
26
29
|
contentGroupsLine: string;
|
|
27
30
|
drawer: string;
|
|
28
31
|
popover: string;
|
|
32
|
+
wrapperLogoFooter: string;
|
|
29
33
|
collapsed: string;
|
|
30
34
|
visible: string;
|
|
31
35
|
subItemActive: string;
|
|
32
36
|
itemMainActive: string;
|
|
33
37
|
variantDefault: string;
|
|
34
38
|
variantComercial: string;
|
|
39
|
+
overlapping: string;
|
|
35
40
|
}
|
|
36
41
|
export declare type SideBarClassesKey = keyof SideBarClassesType;
|
|
@@ -9,13 +9,15 @@ export interface SideBarProviderValue extends SideBarProps {
|
|
|
9
9
|
* Las clases asociadas al proveedor del contexto Sidebar.
|
|
10
10
|
*/
|
|
11
11
|
classes: Classes;
|
|
12
|
+
onToggleOverlay: (value: boolean) => void;
|
|
13
|
+
overlay: boolean;
|
|
12
14
|
}
|
|
13
15
|
/**
|
|
14
16
|
* Propiedades para el proveedor del contexto Sidebar.
|
|
15
17
|
*/
|
|
16
18
|
export interface SideBarProviderProps {
|
|
17
19
|
/** value contendrá el valor que se proporcionará en el contexto*/
|
|
18
|
-
value: SideBarProviderValue
|
|
20
|
+
value: Omit<SideBarProviderValue, 'onToggleOverlay' | 'overlay'>;
|
|
19
21
|
/** children contendrá los elementos secundarios que estarán dentro del ámbito del proveedor del contexto.*/
|
|
20
22
|
children: ReactNode;
|
|
21
23
|
}
|