@m4l/components 0.1.96 → 0.1.98
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 +16 -4
- package/{commonjs.565e6834.js → commonjs.333e55c7.js} +5 -0
- package/components/AccountPopover/{index.191d34e0.js → index.252cc907.js} +2 -4
- package/components/AccountPopover/index.d.ts +1 -0
- package/components/AppBar/AppBar.d.ts +24 -0
- package/components/AppBar/classes/index.d.ts +2 -0
- package/components/AppBar/classes/types.d.ts +2 -0
- package/components/AppBar/{index.b55a41f1.js → index.f1a995c7.js} +26 -5
- package/components/AppBar/types.d.ts +14 -0
- package/components/CommonActions/components/ActionCancel/{index.c67788d8.js → index.918fe98b.js} +1 -1
- package/components/CommonActions/components/ActionFormCancel/{index.093c1311.js → index.8b12f4b2.js} +4 -13
- package/components/CommonActions/components/ActionFormIntro/{index.d7989234.js → index.c2e8b360.js} +1 -1
- package/components/CommonActions/components/ActionIntro/{index.984a6a98.js → index.ee716861.js} +1 -1
- package/components/DataGrid/formatters/columnPointsFormatter/{index.5e645334.js → index.a19b7b90.js} +1 -1
- package/components/DataGrid/{index.21de89b0.js → index.f0b0a02a.js} +6 -7
- package/components/DataGrid/subcomponents/Actions/{index.1d470ca9.js → index.b9ec13b6.js} +8 -8
- package/components/DataGrid/types.d.ts +3 -0
- package/components/DraggableWindow/{index.06bf649f.js → index.f9f067bd.js} +1 -1
- package/components/DynamicFilter/classes/index.d.ts +1 -1
- package/components/DynamicFilter/classes/types.d.ts +1 -0
- package/components/DynamicFilter/{index.2c779d01.js → index.82706b14.js} +14 -10
- package/components/GridLayout/{index.ed6dedb0.js → index.e8c04242.js} +2 -2
- package/components/GridLayout/subcomponents/Griditem/{index.22a009a1.js → index.4d38f12e.js} +3 -3
- package/components/GridLayout/subcomponents/Responsive/{index.54d49969.js → index.e25df1dc.js} +1 -1
- package/components/Icon/index.4e424a81.js +248 -0
- package/components/Icon/types.d.ts +1 -0
- package/components/Image/{index.488e0da6.js → index.8b134b95.js} +44 -2
- package/components/Image/types.d.ts +2 -2
- package/components/LanguagePopover/{index.c3e5f643.js → index.c5eb0191.js} +2 -2
- package/components/LoadingError/{index.f0b3beb0.js → index.536db030.js} +2 -2
- package/components/MFLoader/{index.511dfd02.js → index.3ba9d320.js} +1 -1
- package/components/ModalDialog/{index.8948a3eb.js → index.89e26413.js} +3 -3
- package/components/NoItemSelected/{index.25271572.js → index.216d87c8.js} +1 -1
- package/components/ObjectLogs/{index.8dad4c0d.js → index.b0e5cdd9.js} +6 -6
- package/components/PDFViewer/PDFViewer.d.ts +3 -0
- package/components/PDFViewer/classes/constants.d.ts +1 -0
- package/components/PDFViewer/classes/index.d.ts +7 -0
- package/components/PDFViewer/classes/types.d.ts +7 -0
- package/components/PDFViewer/index.a1b199d5.js +63 -0
- package/components/PDFViewer/index.d.ts +1 -0
- package/components/PDFViewer/types.d.ts +3 -0
- package/components/Page/{index.d9eca5f7.js → index.c100afa4.js} +1 -1
- package/components/PaperForm/{index.c0d81f4a.js → index.b7918854.js} +1 -1
- package/components/Period/{index.117531d9.js → index.5f3af84b.js} +1 -1
- package/components/PrintingSystem/{index.3d308b6a.js → index.2147b2c3.js} +13 -12
- package/components/PrintingSystem/subcomponents/BodyNode/{index.e659b2bd.js → index.7bed0f05.js} +1 -1
- package/components/PrintingSystem/subcomponents/ChartNode/{index.978f2ac6.js → index.c552eb03.js} +1 -1
- package/components/PrintingSystem/subcomponents/DividerNode/{index.2560238c.js → index.007d01ab.js} +1 -1
- package/components/PrintingSystem/subcomponents/FooterNode/{index.3823efb6.js → index.72ef9241.js} +1 -1
- package/components/PrintingSystem/subcomponents/GridNode/{index.a138032a.js → index.2fac7376.js} +1 -1
- package/components/PrintingSystem/subcomponents/HeaderNode/{index.7f836dc8.js → index.01ae9ede.js} +1 -1
- package/components/PrintingSystem/subcomponents/PaperNode/{index.f93990b9.js → index.cfd86519.js} +1 -1
- package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.bd1a15b2.js → index.c4fa3813.js} +1 -1
- package/components/PrintingSystem/subcomponents/QRImageNode/index.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/QRImageNode/types.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/SectionNode/{index.2504139a.js → index.13e656ad.js} +1 -1
- package/components/PrintingSystem/subcomponents/TextBoxNode/{index.0a5c2f69.js → index.0c3db261.js} +1 -1
- package/components/PrintingSystem/types.d.ts +10 -1
- package/components/PropertyValue/classes/index.d.ts +1 -1
- package/components/PropertyValue/classes/types.d.ts +4 -1
- package/components/PropertyValue/index.68df9d83.js +206 -0
- package/components/PropertyValue/types.d.ts +5 -7
- package/components/Resizeable/{index.840f7167.js → index.6478d7d8.js} +1 -1
- package/components/SideBar/classes/index.d.ts +1 -1
- package/components/SideBar/{index.01219373.js → index.ed0211ba.js} +10 -10
- package/components/SideBar/types.d.ts +3 -3
- package/components/SplitLayout/{index.9ef430f6.js → index.30fd5861.js} +1 -1
- package/components/ToastContainer/ToastContainer.d.ts +3 -0
- package/components/ToastContainer/classes/constants.d.ts +1 -0
- package/components/ToastContainer/classes/index.d.ts +8 -0
- package/components/ToastContainer/classes/types.d.ts +9 -0
- package/components/ToastContainer/index.2141b7ab.js +87 -0
- package/components/ToastContainer/index.d.ts +2 -0
- package/components/ToastContainer/subcomponents/ToastMessage/index.d.ts +3 -0
- package/components/ToastContainer/subcomponents/ToastMessage/types.d.ts +5 -0
- package/components/ToastContainer/types.d.ts +4 -0
- package/components/areas/components/AreasAdmin/{index.93b51dc1.js → index.b34c5738.js} +9 -9
- package/components/areas/components/AreasViewer/{index.288ca252.js → index.465bc2e6.js} +13 -13
- package/components/areas/contexts/AreasContext/{index.0e1ecf07.js → index.1d57a068.js} +4 -4
- package/components/areas/hooks/useAreas/{index.6905c4b2.js → index.38fd0c5b.js} +1 -1
- package/components/formatters/BooleanFormatter/{index.d9d8740a.js → index.35005602.js} +2 -2
- package/components/formatters/PointsFormatter/{index.80a4e414.js → index.5c94c5e8.js} +2 -2
- package/components/formatters/PointsFormatter/index.d.ts +1 -1
- package/components/formatters/{index.7c63a4a0.js → index.e8bd78a5.js} +1 -1
- package/components/hook-form/RHFAutocomplete/classes/types.d.ts +2 -0
- package/components/hook-form/RHFAutocomplete/{index.5a3c565f.js → index.b01b97e3.js} +26 -35
- package/components/hook-form/RHFAutocomplete/subcomponents/RenderOption/index.d.ts +1 -1
- package/components/hook-form/RHFAutocomplete/subcomponents/Skeleton/types.d.ts +1 -2
- package/components/hook-form/RHFAutocomplete/types.d.ts +8 -3
- package/components/hook-form/RHFAutocompleteAsync/{index.fa72c407.js → index.8241ce18.js} +1 -1
- package/components/hook-form/RHFColorPicker/classes/constants.d.ts +1 -0
- package/components/hook-form/RHFColorPicker/classes/index.d.ts +11 -0
- package/components/hook-form/RHFColorPicker/classes/types.d.ts +11 -0
- package/components/hook-form/RHFColorPicker/index.d.ts +9 -0
- package/components/hook-form/RHFColorPicker/subcomponents/Skeleton/indext.d.ts +2 -0
- package/components/hook-form/RHFColorPicker/types.d.ts +8 -0
- package/components/hook-form/RHFDateTime/{index.a3af80f5.js → index.e8ea2555.js} +1 -1
- package/components/hook-form/RHFDateTime/types.d.ts +0 -1
- package/components/hook-form/RHFPeriod/{index.c7abf157.js → index.584f515c.js} +1 -1
- package/components/hook-form/RHFTextField/{index.e18d3338.js → index.87c99323.js} +1 -1
- package/components/hook-form/RHFUpload/{index.215802bf.js → index.f2983d70.js} +4 -4
- package/components/hook-form/index.d.ts +1 -0
- package/components/index.d.ts +2 -0
- package/components/modal/{WindowBase.2dbdb419.js → WindowBase.b1f12376.js} +3 -3
- package/components/modal/{WindowConfirm.50339f4d.js → WindowConfirm.481ef7a0.js} +5 -5
- package/components/mui_extended/Accordion/{index.e82c4e9d.js → index.7a77f5b4.js} +3 -3
- package/components/mui_extended/Button/classes/types.d.ts +2 -0
- package/components/mui_extended/Button/{index.98f6513b.js → index.158a9a65.js} +3 -3
- package/components/mui_extended/IconButton/{index.331e3b53.js → index.3c568901.js} +1 -1
- package/components/mui_extended/LoadingButton/classes/constants.d.ts +1 -1
- package/components/mui_extended/MenuActions/{index.ad3f1fd3.js → index.4817512a.js} +2 -2
- package/components/mui_extended/Pager/{index.94bf4bab.js → index.ba2163c2.js} +1 -1
- package/components/mui_extended/Tab/{index.a3b6234b.js → index.d8cf48a2.js} +1 -1
- package/contexts/ModalContext/{index.6352bd4f.js → index.b39d303d.js} +1 -1
- package/hooks/useFormAddEdit/{index.6f0613b4.js → index.6929cc88.js} +2 -2
- package/hooks/useModal/{index.54dc459a.js → index.abdc0962.js} +1 -1
- package/index.js +106 -89
- package/node_modules.a40403af.js +6921 -0
- package/package.json +6 -3
- package/{react-draggable.b86ca282.js → react-draggable.ee21cb7e.js} +3 -3
- package/{react-json-view.57125fcf.js → react-json-view.5636414a.js} +1 -1
- package/{react-resizable.60704e26.js → react-resizable.ee028152.js} +4 -4
- package/{react-splitter-layout.8b1655c8.js → react-splitter-layout.c5d98bf7.js} +3 -3
- package/vendor.dfd22660.js +250 -0
- package/components/Icon/index.b73eb296.js +0 -147
- package/components/PropertyValue/index.c6b9cb7d.js +0 -220
- package/components/PropertyValue/skeleton.d.ts +0 -3
- package/vendor.7eac5d69.js +0 -104
package/@types/export.d.ts
CHANGED
|
@@ -83,7 +83,7 @@ declare module '@mui/material/styles' {
|
|
|
83
83
|
M4LErrorLabel: HelperTextProps;
|
|
84
84
|
M4LTypography: TypographyProps;
|
|
85
85
|
M4LButton: ExtendButtonProps;
|
|
86
|
-
|
|
86
|
+
M4LLoadingButton: MuiLabLoadingButtonProps;
|
|
87
87
|
M4LNavLink: NavLinkProps;
|
|
88
88
|
M4LSideBar: SideBarProps;
|
|
89
89
|
M4LAppBar: AppBarProps;
|
|
@@ -118,7 +118,7 @@ declare module '@mui/material/styles' {
|
|
|
118
118
|
// M4LErrorLabel: ErrorLabelClassesKey;
|
|
119
119
|
// M4LTypography: TypographyClassesKey;
|
|
120
120
|
// M4LButton: ButtonBaseClassKey;
|
|
121
|
-
//
|
|
121
|
+
// M4LLoadingButton: LoadingbuttonClassesKey;
|
|
122
122
|
// M4LNavLink: ButtonBaseClassKey;
|
|
123
123
|
// M4LSideBar: SideBarClassesKey;
|
|
124
124
|
// M4LAppBar: AppBarClassesKey;
|
|
@@ -221,6 +221,12 @@ declare module '@mui/material/styles' {
|
|
|
221
221
|
M4LRHFCheckbox?: {
|
|
222
222
|
styleOverrides?: ComponentsOverrides<Theme>['M4LRHFCheckbox'];
|
|
223
223
|
};
|
|
224
|
+
M4LRHFColorPicker?: {
|
|
225
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LRHFColorPicker'];
|
|
226
|
+
};
|
|
227
|
+
M4LRHFColorPickerPopoverRoot?: {
|
|
228
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LRHFColorPickerPopoverRoot'];
|
|
229
|
+
};
|
|
224
230
|
M4LCheckBox?: {
|
|
225
231
|
styleOverrides?: ComponentsOverrides<Theme>['M4LCheckBox'];
|
|
226
232
|
};
|
|
@@ -242,8 +248,8 @@ declare module '@mui/material/styles' {
|
|
|
242
248
|
M4LButton?: {
|
|
243
249
|
styleOverrides?: ComponentsOverrides<Theme>['M4LButton'];
|
|
244
250
|
};
|
|
245
|
-
|
|
246
|
-
styleOverrides?: ComponentsOverrides<Theme>['
|
|
251
|
+
M4LLoadingButton?: {
|
|
252
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LLoadingButton'];
|
|
247
253
|
};
|
|
248
254
|
M4LNavLink?: {
|
|
249
255
|
styleOverrides?: ComponentsOverrides<Theme>['M4LNavLink'];
|
|
@@ -372,6 +378,12 @@ declare module '@mui/material/styles' {
|
|
|
372
378
|
M4LMFLoader?: {
|
|
373
379
|
styleOverrides?: ComponentsOverrides<Theme>['M4LMFLoader'];
|
|
374
380
|
};
|
|
381
|
+
M4LToastContainer?: {
|
|
382
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LToastContainer'];
|
|
383
|
+
};
|
|
384
|
+
M4LPDFViewer?: {
|
|
385
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LPDFViewer'];
|
|
386
|
+
};
|
|
375
387
|
|
|
376
388
|
}
|
|
377
389
|
}
|
|
@@ -2,6 +2,11 @@ import "react";
|
|
|
2
2
|
import "prop-types";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
import "clsx";
|
|
5
|
+
import "lodash/isString";
|
|
6
|
+
import "lodash/forOwn";
|
|
7
|
+
import "lodash/isPlainObject";
|
|
8
|
+
import "lodash/map";
|
|
9
|
+
import "lodash/cloneDeep";
|
|
5
10
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
6
11
|
function getDefaultExportFromCjs(x) {
|
|
7
12
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
@@ -7,7 +7,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
7
7
|
import { A as Avatar } from "../mui_extended/Avatar/index.75e6ed57.js";
|
|
8
8
|
import { C as CircularProgress } from "../mui_extended/CircularProgress/index.ad569afd.js";
|
|
9
9
|
import { P as Popover } from "../mui_extended/Popover/index.b3eca6b1.js";
|
|
10
|
-
import { I as Icon } from "../Icon/index.
|
|
10
|
+
import { I as Icon } from "../Icon/index.4e424a81.js";
|
|
11
11
|
import clsx from "clsx";
|
|
12
12
|
const componentName = "M4LAccountPopover";
|
|
13
13
|
generateUtilityClasses(componentName, [
|
|
@@ -57,9 +57,7 @@ const useAccountPopoverUtilityClasses = () => {
|
|
|
57
57
|
...composedClasses
|
|
58
58
|
};
|
|
59
59
|
};
|
|
60
|
-
const AcountPopOverRoot = styled("div")(({
|
|
61
|
-
theme
|
|
62
|
-
}) => ({
|
|
60
|
+
const AcountPopOverRoot = styled("div")(({ theme }) => ({
|
|
63
61
|
...theme.components?.M4LAccountPopover?.styleOverrides
|
|
64
62
|
}));
|
|
65
63
|
function MyAvatar(props) {
|
|
@@ -1,3 +1,27 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { AppBarProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Componente de la interfaz de usuario que se encuentra en la parte superior de una aplicación móvil o de escritorio. Por lo general, contiene elementos de navegación, como botones para ir hacia atrás o hacia adelante, un botón de menú para acceder a opciones adicionales y un campo de búsqueda. También puede mostrar información relevante, como el título de la página actual o el nombre del usuario conectado.
|
|
5
|
+
*
|
|
6
|
+
* @param {AppBarProps} props - Propiedades del componente.
|
|
7
|
+
* @returns {JSX.Element} Elemento que se retorna.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
*
|
|
11
|
+
* // Ejemplo de uso:
|
|
12
|
+
*
|
|
13
|
+
* <AppBar onToggleVisible={onToggleVisible}>
|
|
14
|
+
<AreasAdmin />
|
|
15
|
+
<div style={{display: 'flex', gap: '10px', alignItems: 'center'}}>
|
|
16
|
+
<LanguagePopover />
|
|
17
|
+
<AccountPopover
|
|
18
|
+
itemHandleClick={itemHandleClick}
|
|
19
|
+
handleLogOut={handleLogOut}
|
|
20
|
+
version={APP_VERSION}
|
|
21
|
+
userData={user}
|
|
22
|
+
settingsHandleOpen={handleOpen}
|
|
23
|
+
/>
|
|
24
|
+
</div>
|
|
25
|
+
</AppBar>
|
|
26
|
+
*/
|
|
3
27
|
export declare const AppBar: (props: AppBarProps) => import("react").JSX.Element;
|
|
@@ -4,6 +4,8 @@ export interface AppBarClassesType {
|
|
|
4
4
|
containerChilds: string;
|
|
5
5
|
containerIconMenuToggle: string;
|
|
6
6
|
iconMenuToggle: string;
|
|
7
|
+
containerLogo: string;
|
|
8
|
+
containerImageTypography: string;
|
|
7
9
|
}
|
|
8
10
|
export declare type AppBarClassesKey = keyof AppBarClassesType;
|
|
9
11
|
export declare type Classes = ReturnType<typeof useAppBarUtilityClasses>;
|
|
@@ -5,7 +5,9 @@ import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
|
5
5
|
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
6
6
|
import { unstable_composeClasses } from "@mui/base";
|
|
7
7
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
8
|
-
import { I as
|
|
8
|
+
import { I as Image } from "../Image/index.8b134b95.js";
|
|
9
|
+
import { T as Typography } from "../mui_extended/Typography/index.379dd374.js";
|
|
10
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.3c568901.js";
|
|
9
11
|
const AppBarRoot = styled("header")(({
|
|
10
12
|
theme
|
|
11
13
|
}) => ({
|
|
@@ -20,7 +22,9 @@ generateUtilityClasses(componentName, [
|
|
|
20
22
|
"root",
|
|
21
23
|
"containerChilds",
|
|
22
24
|
"containerIconMenuToggle",
|
|
23
|
-
"iconMenuToggle"
|
|
25
|
+
"iconMenuToggle",
|
|
26
|
+
"containerLogo",
|
|
27
|
+
"containerImageTypography"
|
|
24
28
|
]);
|
|
25
29
|
function getAppBarClassesUtilityClass(slot) {
|
|
26
30
|
return generateUtilityClass(componentName, slot);
|
|
@@ -30,7 +34,9 @@ const useAppBarUtilityClasses = () => {
|
|
|
30
34
|
root: ["root"],
|
|
31
35
|
containerChilds: ["containerChilds"],
|
|
32
36
|
containerIconMenuToggle: ["containerIconMenuToggle"],
|
|
33
|
-
iconMenuToggle: ["iconMenuToggle"]
|
|
37
|
+
iconMenuToggle: ["iconMenuToggle"],
|
|
38
|
+
containerLogo: ["containerLogo"],
|
|
39
|
+
containerImageTypography: ["containerImageTypography"]
|
|
34
40
|
};
|
|
35
41
|
const composedClasses = unstable_composeClasses(slots, getAppBarClassesUtilityClass, {});
|
|
36
42
|
return {
|
|
@@ -40,7 +46,9 @@ const useAppBarUtilityClasses = () => {
|
|
|
40
46
|
const AppBar = (props) => {
|
|
41
47
|
const {
|
|
42
48
|
onToggleVisible,
|
|
43
|
-
children
|
|
49
|
+
children,
|
|
50
|
+
companyLogo,
|
|
51
|
+
companyName
|
|
44
52
|
} = props;
|
|
45
53
|
const isDesktop = useResponsiveDesktop();
|
|
46
54
|
const {
|
|
@@ -56,7 +64,20 @@ const AppBar = (props) => {
|
|
|
56
64
|
...process.env.NODE_ENV !== "production" ? {
|
|
57
65
|
[TEST_PROP_ID]: getNameDataTestId("root")
|
|
58
66
|
} : {},
|
|
59
|
-
children: [
|
|
67
|
+
children: [companyLogo && isDesktop ? /* @__PURE__ */ jsx("div", {
|
|
68
|
+
className: classes.containerLogo,
|
|
69
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
70
|
+
className: classes.containerImageTypography,
|
|
71
|
+
children: [/* @__PURE__ */ jsx(Image, {
|
|
72
|
+
src: companyLogo,
|
|
73
|
+
alt: "logo"
|
|
74
|
+
}, "Logo"), /* @__PURE__ */ jsx(Typography, {
|
|
75
|
+
variant: "bodyDens",
|
|
76
|
+
skeletonWidth: "100px",
|
|
77
|
+
children: companyName
|
|
78
|
+
})]
|
|
79
|
+
})
|
|
80
|
+
}) : null, !isDesktop ? /* @__PURE__ */ jsx("div", {
|
|
60
81
|
className: classes.containerIconMenuToggle,
|
|
61
82
|
...process.env.NODE_ENV !== "production" ? {
|
|
62
83
|
[TEST_PROP_ID]: getNameDataTestId("containerIconMenuToggle")
|
|
@@ -5,6 +5,20 @@ export declare type RootStyleProps = {
|
|
|
5
5
|
isSideBarVisible: boolean;
|
|
6
6
|
};
|
|
7
7
|
export interface AppBarProps {
|
|
8
|
+
/**
|
|
9
|
+
* Función que activa la visualización del menú de la aplicación en la vista móvil.
|
|
10
|
+
*/
|
|
8
11
|
onToggleVisible: VoidFunction;
|
|
12
|
+
/**
|
|
13
|
+
* Puede ser cualquier cosa, desde un solo elemento hasta un array de elementos. Los elementos secundarios pueden ser componentes de React, elementos HTML, o incluso otros tipos de datos, como cadenas o números.
|
|
14
|
+
*/
|
|
9
15
|
children: ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* companyLogo: Enlace de acceso para el recurso gráfico de logo.
|
|
18
|
+
*/
|
|
19
|
+
companyLogo?: string;
|
|
20
|
+
/**
|
|
21
|
+
* companyName: Nombre de la compañía
|
|
22
|
+
*/
|
|
23
|
+
companyName?: string;
|
|
10
24
|
}
|
package/components/CommonActions/components/ActionCancel/{index.c67788d8.js → index.918fe98b.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useModuleDictionary } from "@m4l/core";
|
|
2
|
-
import { B as Button } from "../../../mui_extended/Button/index.
|
|
2
|
+
import { B as Button } from "../../../mui_extended/Button/index.158a9a65.js";
|
|
3
3
|
import { u as useCommonActionsUtilityClasses } from "../Actions/index.2f6286eb.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
const ActionCancel = (props) => {
|
package/components/CommonActions/components/ActionFormCancel/{index.093c1311.js → index.8b12f4b2.js}
RENAMED
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import { useFormContext, useFormState } from "react-hook-form";
|
|
2
|
-
import { useModuleDictionary
|
|
3
|
-
import {
|
|
4
|
-
import { B as Button } from "../../../mui_extended/Button/index.98f6513b.js";
|
|
2
|
+
import { useModuleDictionary } from "@m4l/core";
|
|
3
|
+
import { B as Button } from "../../../mui_extended/Button/index.158a9a65.js";
|
|
5
4
|
import { useCallback, useEffect } from "react";
|
|
6
|
-
import { u as useModal } from "../../../../hooks/useModal/index.
|
|
5
|
+
import { u as useModal } from "../../../../hooks/useModal/index.abdc0962.js";
|
|
7
6
|
import { u as useCommonActionsUtilityClasses } from "../Actions/index.2f6286eb.js";
|
|
8
7
|
import { jsx } from "react/jsx-runtime";
|
|
9
8
|
import { u as useWindowToolsMF } from "../../../areas/hooks/useWindowToolsMF/index.b7afaf88.js";
|
|
10
|
-
import { W as WindowConfirm } from "../../../modal/WindowConfirm.
|
|
9
|
+
import { W as WindowConfirm } from "../../../modal/WindowConfirm.481ef7a0.js";
|
|
11
10
|
function ActionFormCancel() {
|
|
12
11
|
const {
|
|
13
12
|
getLabel
|
|
14
13
|
} = useModuleDictionary();
|
|
15
|
-
const isSkeleton = useModuleSkeleton();
|
|
16
14
|
const {
|
|
17
15
|
openModal
|
|
18
16
|
} = useModal();
|
|
@@ -50,13 +48,6 @@ function ActionFormCancel() {
|
|
|
50
48
|
setQueryClose(onClickCancel);
|
|
51
49
|
}, [onClickCancel]);
|
|
52
50
|
const classes = useCommonActionsUtilityClasses();
|
|
53
|
-
if (isSkeleton) {
|
|
54
|
-
return /* @__PURE__ */ jsx(Skeleton, {
|
|
55
|
-
variant: "text",
|
|
56
|
-
width: 57,
|
|
57
|
-
height: 30
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
51
|
return /* @__PURE__ */ jsx(Button, {
|
|
61
52
|
variant: "outlined",
|
|
62
53
|
color: "inherit",
|
package/components/CommonActions/components/ActionFormIntro/{index.d7989234.js → index.c2e8b360.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useFormContext, useFormState } from "react-hook-form";
|
|
2
2
|
import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
3
3
|
import { Skeleton } from "@mui/material";
|
|
4
|
-
import { L as LoadingButton } from "../../../mui_extended/Button/index.
|
|
4
|
+
import { L as LoadingButton } from "../../../mui_extended/Button/index.158a9a65.js";
|
|
5
5
|
import { u as useCommonActionsUtilityClasses } from "../Actions/index.2f6286eb.js";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
function ActionFormIntro(props) {
|
package/components/CommonActions/components/ActionIntro/{index.984a6a98.js → index.ee716861.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useModuleDictionary } from "@m4l/core";
|
|
2
|
-
import { B as Button } from "../../../mui_extended/Button/index.
|
|
2
|
+
import { B as Button } from "../../../mui_extended/Button/index.158a9a65.js";
|
|
3
3
|
import { T as TEST_PROP_ID } from "../../../../test/constants_no_mock.86c553a9.js";
|
|
4
4
|
import { u as useCommonActionsUtilityClasses } from "../Actions/index.2f6286eb.js";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
package/components/DataGrid/formatters/columnPointsFormatter/{index.5e645334.js → index.a19b7b90.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PointsFormatter } from "../../../formatters/PointsFormatter/index.
|
|
1
|
+
import { P as PointsFormatter } from "../../../formatters/PointsFormatter/index.5c94c5e8.js";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
function columnPointsFormatter(props) {
|
|
4
4
|
return (obProps) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as getModalDialogComponentsDictionary } from "../ModalDialog/index.
|
|
2
|
-
import { g as getPagerComponentsDictionary } from "../mui_extended/Pager/index.
|
|
1
|
+
import { g as getModalDialogComponentsDictionary } from "../ModalDialog/index.89e26413.js";
|
|
2
|
+
import { g as getPagerComponentsDictionary } from "../mui_extended/Pager/index.ba2163c2.js";
|
|
3
3
|
import { styled } from "@mui/material/styles";
|
|
4
4
|
import { forwardRef, createContext, useState, useMemo, useEffect, useCallback, useContext, useRef, useLayoutEffect } from "react";
|
|
5
5
|
import { S as SELECT_COLUMN_KEY, u as useRowSelection, a as SelectCellFormatter, H as HeaderRenderer, D as DataGrid$1 } from "../../react-data-grid.d46d625e.js";
|
|
@@ -8,13 +8,13 @@ import { HTML5Backend } from "react-dnd-html5-backend";
|
|
|
8
8
|
import { SvgIcon, Checkbox, InputBase, Skeleton, generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { voidFunction, useModuleDictionary, useModuleSkeleton, getPropertyByString } from "@m4l/core";
|
|
11
|
-
import { A as ActionsColumn, a as Actions } from "./subcomponents/Actions/index.
|
|
11
|
+
import { A as ActionsColumn, a as Actions } from "./subcomponents/Actions/index.b9ec13b6.js";
|
|
12
12
|
import { unstable_composeClasses } from "@mui/base";
|
|
13
13
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
14
|
-
import { g as getNameDataTestId } from "../../vendor.
|
|
15
|
-
import { B as BooleanFormatter } from "../formatters/BooleanFormatter/index.
|
|
14
|
+
import { g as getNameDataTestId } from "../../vendor.dfd22660.js";
|
|
15
|
+
import { B as BooleanFormatter } from "../formatters/BooleanFormatter/index.35005602.js";
|
|
16
16
|
import { D as DateFormatter } from "../formatters/DateFormatter/index.578a9f53.js";
|
|
17
|
-
import { C as ConcatenatedFormatter } from "../formatters/index.
|
|
17
|
+
import { C as ConcatenatedFormatter } from "../formatters/index.e8bd78a5.js";
|
|
18
18
|
const DataGridRoot = styled("div")(({
|
|
19
19
|
theme
|
|
20
20
|
}) => ({
|
|
@@ -904,7 +904,6 @@ function DataGrid(props) {
|
|
|
904
904
|
onCheckedRowsChange,
|
|
905
905
|
dataTestId = ""
|
|
906
906
|
} = props;
|
|
907
|
-
console.log("test columns", columns);
|
|
908
907
|
const ownerState = {
|
|
909
908
|
actionsProps,
|
|
910
909
|
withActions
|
|
@@ -1,18 +1,18 @@
|
|
|
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.4817512a.js";
|
|
2
|
+
import { u as useDataGrid, a as useFilters, d as dataGridClasses, D as DataGridRoot, b as dictionary } from "../../index.f0b0a02a.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.ba2163c2.js";
|
|
6
|
+
import { I as IconButton } from "../../../mui_extended/IconButton/index.3c568901.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.abdc0962.js";
|
|
12
|
+
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.918fe98b.js";
|
|
13
|
+
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.ee716861.js";
|
|
14
14
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
15
|
-
import { W as WindowBase } from "../../../modal/WindowBase.
|
|
15
|
+
import { W as WindowBase } from "../../../modal/WindowBase.b1f12376.js";
|
|
16
16
|
import { A as Actions$1 } from "../../../CommonActions/components/Actions/index.2f6286eb.js";
|
|
17
17
|
const ACTIONS_COLUMN_KEY = "actions-row";
|
|
18
18
|
function ActionsFormatter(props) {
|
|
@@ -41,6 +41,9 @@ export declare const initialPagerState: PagerState;
|
|
|
41
41
|
export declare type RowHeightVariants = 'standard' | 'compact' | 'confortable';
|
|
42
42
|
export declare type RowHeights = number | number[];
|
|
43
43
|
export interface GridProps<TRow, TSummaryRow> {
|
|
44
|
+
/**
|
|
45
|
+
* Define el tipo de dato que puede tener un identificador key en el grid.
|
|
46
|
+
*/
|
|
44
47
|
id: RowKey;
|
|
45
48
|
withActions?: boolean;
|
|
46
49
|
columns: readonly Column<TRow, TSummaryRow>[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DynamicFilterClasses } from './types';
|
|
2
2
|
import { OwnerState } from '../contexts/DynamicFilterContext/store';
|
|
3
3
|
export declare const dynamicFilterClasses: DynamicFilterClasses;
|
|
4
|
-
export declare const useUtilityClasses: (ownerState: OwnerState) => Record<"root" | "containerFistRow" | "filterButton" | "containerInputFilter" | "wrapperApplyedFilters" | "containerApplyedFilters" | "containerClearFilter" | "applyedFilter" | "clearFiltersButton" | "popoverMenuFields" | "popoverMenuFieldsPaper" | "popoverMenuFieldsItem" | "classesFilterButton" | "popoverFilter" | "popoverFilterPaper" | "popoverFilterHeader" | "popoverHeaderTitle" | "containerBooleanFilter" | "containerDateTimeFilter" | "containerNumberFilter" | "containerStringFilter" | "classespopoverLabelMemuItem" | "popoverContainerFields", string>;
|
|
4
|
+
export declare const useUtilityClasses: (ownerState: OwnerState) => Record<"root" | "containerFistRow" | "filterButton" | "containerInputFilter" | "wrapperApplyedFilters" | "containerApplyedFilters" | "containerClearFilter" | "applyedFilter" | "clearFiltersButton" | "popoverMenuFields" | "popoverMenuFieldsPaper" | "popoverMenuFieldsItem" | "classesFilterButton" | "popoverFilter" | "popoverFilterPaper" | "popoverFilterHeader" | "popoverHeaderTitle" | "containerBooleanFilter" | "containerDateTimeFilter" | "containerNumberFilter" | "containerStringFilter" | "classespopoverLabelMemuItem" | "popoverContainerFields" | "inputFilter", string>;
|
|
5
5
|
export declare type Classes = ReturnType<typeof useUtilityClasses>;
|
|
@@ -8,25 +8,25 @@ import { devtools } from "zustand/middleware";
|
|
|
8
8
|
import { immer } from "zustand/middleware/immer";
|
|
9
9
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
10
10
|
import { g as getCommonActionsDictionary, A as Actions } from "../CommonActions/components/Actions/index.2f6286eb.js";
|
|
11
|
-
import { g as getRHFAutocompleteComponentsDictionary, R as RHFAutocomplete } from "../hook-form/RHFAutocomplete/index.
|
|
12
|
-
import { g as getNameDataTestId } from "../../vendor.
|
|
11
|
+
import { g as getRHFAutocompleteComponentsDictionary, R as RHFAutocomplete } from "../hook-form/RHFAutocomplete/index.b01b97e3.js";
|
|
12
|
+
import { g as getNameDataTestId } from "../../vendor.dfd22660.js";
|
|
13
13
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
14
14
|
import { useFormContext, useWatch } from "react-hook-form";
|
|
15
15
|
import { shallow } from "zustand/shallow";
|
|
16
|
-
import { R as RHFDateTime } from "../hook-form/RHFDateTime/index.
|
|
17
|
-
import { R as RHFTextField } from "../hook-form/RHFTextField/index.
|
|
16
|
+
import { R as RHFDateTime } from "../hook-form/RHFDateTime/index.e8ea2555.js";
|
|
17
|
+
import { R as RHFTextField } from "../hook-form/RHFTextField/index.87c99323.js";
|
|
18
18
|
import * as Yup from "yup";
|
|
19
19
|
import { useResponsiveDesktop, useFirstRender, useFormatter } from "@m4l/graphics";
|
|
20
20
|
import { styled, useTheme } from "@mui/material/styles";
|
|
21
21
|
import { S as ScrollBar } from "../ScrollBar/index.65bb2930.js";
|
|
22
22
|
import clsx from "clsx";
|
|
23
|
-
import { I as IconButton } from "../mui_extended/IconButton/index.
|
|
24
|
-
import { L as LabelMemuItem } from "../mui_extended/MenuActions/index.
|
|
23
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.3c568901.js";
|
|
24
|
+
import { L as LabelMemuItem } from "../mui_extended/MenuActions/index.4817512a.js";
|
|
25
25
|
import { P as Popover } from "../mui_extended/Popover/index.b3eca6b1.js";
|
|
26
|
-
import { I as Icon } from "../Icon/index.
|
|
26
|
+
import { I as Icon } from "../Icon/index.4e424a81.js";
|
|
27
27
|
import { R as RHFormProvider } from "../../contexts/RHFormContext/index.1755b324.js";
|
|
28
|
-
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.
|
|
29
|
-
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.
|
|
28
|
+
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.918fe98b.js";
|
|
29
|
+
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.ee716861.js";
|
|
30
30
|
import { T as Typography } from "../mui_extended/Typography/index.379dd374.js";
|
|
31
31
|
const COMPONENT_PREFIX = "M4LDynamicFilter";
|
|
32
32
|
const COMPONENT_CLASS_NAME = "M4LDynamicFilter";
|
|
@@ -79,6 +79,7 @@ const dynamicFilterClasses = generateUtilityClasses(COMPONENT_CLASS_NAME, [
|
|
|
79
79
|
"classespopoverLabelMemuItem",
|
|
80
80
|
"popoverContainerFields",
|
|
81
81
|
"classesFilterButton",
|
|
82
|
+
"inputFilter",
|
|
82
83
|
"isSkeleton",
|
|
83
84
|
"isMobile",
|
|
84
85
|
"inEdition",
|
|
@@ -111,7 +112,8 @@ const useUtilityClasses = (ownerState) => {
|
|
|
111
112
|
containerBooleanFilter: ["containerBooleanFilter"],
|
|
112
113
|
containerDateTimeFilter: ["containerDateTimeFilter"],
|
|
113
114
|
containerNumberFilter: ["containerNumberFilter"],
|
|
114
|
-
containerStringFilter: ["containerStringFilter"]
|
|
115
|
+
containerStringFilter: ["containerStringFilter"],
|
|
116
|
+
inputFilter: ["inputFilter"]
|
|
115
117
|
};
|
|
116
118
|
return unstable_composeClasses(slots, getComponentUtilityClass(COMPONENT_CLASS_NAME), {});
|
|
117
119
|
};
|
|
@@ -1461,6 +1463,7 @@ function InputFilter() {
|
|
|
1461
1463
|
const availableFields = useDynamicFilter((state) => state.availableFields, shallow);
|
|
1462
1464
|
const dataTestId = useDynamicFilter((state) => state.dataTestId, shallow);
|
|
1463
1465
|
const classesContainerInputFilter = useDynamicFilter((state) => state.classes.containerInputFilter, shallow);
|
|
1466
|
+
const classesInputFilter = useDynamicFilter((state) => state.classes.inputFilter, shallow);
|
|
1464
1467
|
const isSkeleton = useDynamicFilter((state) => state.ownerState.isSkeleton, shallow);
|
|
1465
1468
|
const {
|
|
1466
1469
|
showPopoverFilterForAdd,
|
|
@@ -1571,6 +1574,7 @@ function InputFilter() {
|
|
|
1571
1574
|
value: inputData,
|
|
1572
1575
|
placeholder: getLabel(getDynamicFilterDictionary(DICCTIONARY.input_placeholder)),
|
|
1573
1576
|
onFocus: onFocusInputFilter,
|
|
1577
|
+
className: classesInputFilter,
|
|
1574
1578
|
onChange: onChangeInputFilter,
|
|
1575
1579
|
onKeyDown: handleKeyDown
|
|
1576
1580
|
})]
|
|
@@ -1,8 +1,8 @@
|
|
|
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.4d38f12e.js";
|
|
4
4
|
import { styled, alpha } from "@mui/material/styles";
|
|
5
|
-
import { r as react_resizable_css } from "../../react-resizable.
|
|
5
|
+
import { r as react_resizable_css } from "../../react-resizable.ee028152.js";
|
|
6
6
|
import { generateUtilityClasses } from "@mui/material";
|
|
7
7
|
import "@mui/base";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
package/components/GridLayout/subcomponents/Griditem/{index.22a009a1.js → index.4d38f12e.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default, { useRef, useEffect, useState, useCallback, useMemo } from "react";
|
|
2
|
-
import { D as DraggableCore_1 } from "../../../../react-draggable.
|
|
3
|
-
import { R as Resizable } from "../../../../react-resizable.
|
|
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.
|
|
2
|
+
import { D as DraggableCore_1 } from "../../../../react-draggable.ee21cb7e.js";
|
|
3
|
+
import { R as Resizable } from "../../../../react-resizable.ee028152.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.e8c04242.js";
|
|
5
5
|
import clsx from "clsx";
|
|
6
6
|
import { deepEqual } from "fast-equals";
|
|
7
7
|
import { jsx, Fragment } from "react/jsx-runtime";
|
package/components/GridLayout/subcomponents/Responsive/{index.54d49969.js → index.e25df1dc.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as cloneLayoutItem, t as cloneLayout, u as compact, v as correctBounds, w as isEqualLayout, o as DEFAULT_COLAPSED_HEIGHT, x as DEFAULT_RESPONSIVE_BREAKPOINTS, m as DEFAULT_CONTAINER_PADDING, l as DEFAULT_MARGIN, y as DEFAULT_RESPONSIVE_COLS, i as DEFAULT_ROW_HEIGHT, z as noop, A as isEqualLayouts, G as GridLayout } from "../../index.
|
|
1
|
+
import { r as cloneLayoutItem, t as cloneLayout, u as compact, v as correctBounds, w as isEqualLayout, o as DEFAULT_COLAPSED_HEIGHT, x as DEFAULT_RESPONSIVE_BREAKPOINTS, m as DEFAULT_CONTAINER_PADDING, l as DEFAULT_MARGIN, y as DEFAULT_RESPONSIVE_COLS, i as DEFAULT_ROW_HEIGHT, z as noop, A as isEqualLayouts, G as GridLayout } from "../../index.e8c04242.js";
|
|
2
2
|
import { useState, useRef, useEffect, useCallback } from "react";
|
|
3
3
|
import { useFirstRender } from "@m4l/graphics";
|
|
4
4
|
import { deepEqual } from "fast-equals";
|