@m4l/components 0.1.81 → 0.1.82
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 +6 -0
- package/components/AccountPopover/AccountPopover.d.ts +21 -0
- package/components/AccountPopover/classes/types.d.ts +1 -1
- package/components/AccountPopover/{index.fea740a5.js → index.0ba26726.js} +68 -72
- package/components/AccountPopover/subcomponents/MyAvatar/index.d.ts +2 -2
- package/components/AccountPopover/subcomponents/MyAvatar/types.d.ts +7 -0
- package/components/AccountPopover/subcomponents/PopOver/index.d.ts +6 -0
- package/components/AccountPopover/subcomponents/PopOver/types.d.ts +5 -4
- package/components/AccountPopover/types.d.ts +3 -4
- package/components/AppBar/{index.6bdee075.js → index.fadcefc6.js} +7 -7
- package/components/CommonActions/components/ActionCancel/{index.6928b5ae.js → index.6cf96d04.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.28d32483.js → index.a0335cbf.js} +15 -15
- package/components/CommonActions/components/ActionFormIntro/{index.f044e93c.js → index.273b1b9f.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.8b1b3afc.js → index.856df8ef.js} +2 -2
- package/components/CommonActions/components/Actions/{index.265d99c8.js → index.5abb6ac4.js} +13 -13
- package/components/DataGrid/classes/index.d.ts +1 -0
- package/components/DataGrid/classes/types.d.ts +1 -0
- package/components/DataGrid/constants.d.ts +1 -0
- package/components/DataGrid/{index.820e0043.js → index.03ad08af.js} +14 -9
- package/components/DataGrid/subcomponents/Actions/{index.43325b59.js → index.db54ec98.js} +23 -20
- package/components/DynamicFilter/constants.d.ts +1 -1
- package/components/DynamicFilter/{index.2b80238b.js → index.9b72180b.js} +28 -28
- package/components/HelperText/{index.2c408d8a.js → index.6c3adb40.js} +7 -7
- package/components/Icon/{index.9fcd1476.js → index.2414ff25.js} +1 -1
- package/components/LanguagePopover/{index.4596bf54.js → index.66e11634.js} +7 -7
- package/components/ModalDialog/{index.62ffad3a.js → index.4dc1c8ed.js} +4 -4
- package/components/NavLink/{index.68392bd4.js → index.5859e048.js} +7 -7
- package/components/ObjectLogs/{index.665e043d.js → index.51de2deb.js} +17 -17
- package/components/PaperForm/{index.ba38a0bd.js → index.f931dc02.js} +1 -1
- package/components/Period/{index.7d44c0e5.js → index.4fd9df2a.js} +14 -14
- package/components/PropertyValue/{index.a66988e1.js → index.1b09f426.js} +1 -1
- package/components/ScrollBar/{index.bbe48f4d.js → index.d4410cb5.js} +5 -0
- package/components/SideBar/{index.2f497e6c.js → index.72564ef2.js} +11 -6
- package/components/animate/AnimatedScroll/animatedScroll.d.ts +3 -0
- package/components/animate/AnimatedScroll/index.d.ts +1 -0
- package/components/animate/AnimatedScroll/types.d.ts +5 -0
- package/components/animate/index.4e9774a6.js +150 -0
- package/components/animate/index.d.ts +1 -0
- package/components/areas/components/AreasAdmin/{index.5562f65f.js → index.f011d49d.js} +60 -49
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/PanelWindowPopUp/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/{index.1004b7a0.js → index.51a52736.js} +36 -36
- package/components/areas/components/{index.a441c8b1.js → index.f496660b.js} +11 -11
- package/components/areas/contexts/AreasContext/{index.4bf1eabe.js → index.9820bc7f.js} +2 -2
- package/components/areas/contexts/{index.2938bc5a.js → index.361acb6f.js} +1 -1
- package/components/areas/hooks/useAreas/{index.c77a2416.js → index.b403f383.js} +1 -1
- package/components/areas/{index.09851bae.js → index.eacab372.js} +11 -11
- package/components/formatters/BooleanFormatter/{index.e8de8e4c.js → index.32de0803.js} +1 -1
- package/components/formatters/{index.67aeb049.js → index.d16d2331.js} +2 -2
- package/components/hook-form/RHFAutocomplete/{index.9a9d7c73.js → index.6edb51b1.js} +8 -8
- package/components/hook-form/RHFAutocompleteAsync/{index.172df421.js → index.c2ca5c66.js} +1 -1
- package/components/hook-form/RHFCheckbox/{index.47f0157b.js → index.c6c3933b.js} +8 -8
- package/components/hook-form/RHFDateTime/{index.f46e987f.js → index.3add0fa4.js} +8 -8
- package/components/hook-form/RHFPeriod/{index.2e07ba7b.js → index.72edef4d.js} +2 -2
- package/components/hook-form/RHFTextField/{index.253620eb.js → index.20daa95e.js} +3 -3
- package/components/hook-form/RHFUpload/{index.9f00121f.js → index.cc5adc15.js} +8 -8
- package/components/modal/{WindowBase.37b59511.js → WindowBase.4016485b.js} +9 -9
- package/components/modal/{WindowConfirm.1a8c8c21.js → WindowConfirm.f148e495.js} +16 -16
- package/components/modal/{index.c8e23b8d.js → index.e9fece72.js} +13 -13
- package/components/mui_extended/Accordion/{index.fa658639.js → index.42cef1c7.js} +3 -3
- package/components/mui_extended/Avatar/types.d.ts +3 -1
- package/components/mui_extended/Button/classes/types.d.ts +3 -0
- package/components/mui_extended/Button/{index.4288f9fc.js → index.40af964e.js} +8 -3
- package/components/mui_extended/Button/types.d.ts +2 -1
- package/components/mui_extended/IconButton/{index.12f1a3c3.js → index.a318316e.js} +1 -1
- package/components/mui_extended/MenuActions/{index.43a2e1ae.js → index.f6bfdd40.js} +2 -2
- package/components/mui_extended/Pager/classes/index.d.ts +12 -0
- package/components/mui_extended/Pager/classes/types.d.ts +12 -4
- package/components/mui_extended/Pager/{index.82e89328.js → index.da26e9d4.js} +114 -62
- package/components/mui_extended/Pager/subcomponents/CustomTablePagination/index.d.ts +3 -0
- package/components/mui_extended/Pager/subcomponents/CustomTablePagination/types.d.ts +12 -0
- package/components/mui_extended/Pager/{components → subcomponents}/PagerActions/types.d.ts +2 -0
- package/components/mui_extended/Tab/{index.f94d233e.js → index.0d5f96e6.js} +1 -1
- package/components/mui_extended/{index.07fcc38f.js → index.f6a356b9.js} +7 -7
- package/contexts/ModalContext/{index.66e060a3.js → index.efc1135a.js} +1 -1
- package/contexts/RHFormContext/{index.fe175bab.js → index.b9266262.js} +1 -1
- package/hooks/useModal/{index.61968b84.js → index.9b0cc3fe.js} +1 -1
- package/index.js +67 -66
- package/package.json +1 -1
- package/{vendor.fefd45a3.js → vendor.88ed58a5.js} +46 -46
- package/components/AccountPopover/subcomponents/MyAvatar/createAvatar.d.ts +0 -4
- package/components/animate/index.1f8eadd4.js +0 -66
- /package/components/mui_extended/Pager/{components → subcomponents}/PagerActions/index.d.ts +0 -0
package/@types/export.d.ts
CHANGED
|
@@ -144,6 +144,8 @@ declare module '@mui/material/styles' {
|
|
|
144
144
|
M4LPaperForm: PaperFormClassesKey;
|
|
145
145
|
M4LTooltip: TooltipClassesKey;
|
|
146
146
|
M4LPager: PagerClassesKey;
|
|
147
|
+
M4LPagerMenuPopover: PagerClassesKey,
|
|
148
|
+
|
|
147
149
|
}
|
|
148
150
|
|
|
149
151
|
interface Components {
|
|
@@ -372,6 +374,10 @@ declare module '@mui/material/styles' {
|
|
|
372
374
|
styleOverrides?: ComponentsOverrides<Theme>['M4LPager'];
|
|
373
375
|
defaultProps?: ComponentsProps['M4LPager'];
|
|
374
376
|
};
|
|
377
|
+
M4LPagerMenuPopover?: {
|
|
378
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LPagerMenuPopover'];
|
|
379
|
+
defaultProps?: ComponentsProps['M4LPagerMenuPopover'];
|
|
380
|
+
};
|
|
375
381
|
|
|
376
382
|
M4LGridLayout?: {
|
|
377
383
|
styleOverrides?: ComponentsOverrides<Theme>['M4LGridLayout'];
|
|
@@ -1,3 +1,24 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { AccountPopoverProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Componente que muestra el avatar del usuario y un menú desplegable.
|
|
5
|
+
*
|
|
6
|
+
* @param {AccountPopoverProps} props - Propiedades del componente.
|
|
7
|
+
* @param {Function} props.handleClick - Manejador para hacer clic en el componente.
|
|
8
|
+
* @param {string} props.version - Versión de la aplicación.
|
|
9
|
+
* @param {Function} props.handleLogOut - Manejador para cerrar la sesión del usuario.
|
|
10
|
+
* @param {UserMenuData} props.userData - Datos del usuario.
|
|
11
|
+
* @param {string} props.className - Clases CSS adicionales para el componente.
|
|
12
|
+
* @returns {JSX.Element} Elemento JSX que representa el componente.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* // Ejemplo de uso:
|
|
16
|
+
* <AccountPopover
|
|
17
|
+
* handleClick={handleClick}
|
|
18
|
+
* version="1.0"
|
|
19
|
+
* handleLogOut={handleLogOut}
|
|
20
|
+
* userData={userData}
|
|
21
|
+
* className="mi-clase-css"
|
|
22
|
+
* />
|
|
23
|
+
*/
|
|
3
24
|
export declare const AccountPopover: (props: AccountPopoverProps) => import("react").JSX.Element;
|
|
@@ -15,4 +15,4 @@ export interface AccountPopoverClassesType {
|
|
|
15
15
|
menuItem: string;
|
|
16
16
|
}
|
|
17
17
|
export declare type AccountPopoverClassesKey = keyof AccountPopoverClassesType;
|
|
18
|
-
export declare type
|
|
18
|
+
export declare type AccountPopoverClasses = ReturnType<typeof useAccountPopoverUtilityClasses>;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { useModuleDictionary, useNetwork } from "@m4l/core";
|
|
1
|
+
import { useEnvironment, useModuleDictionary, useNetwork } from "@m4l/core";
|
|
2
2
|
import { useState, useEffect } from "react";
|
|
3
3
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
4
|
-
import { generateUtilityClasses, generateUtilityClass, styled, useTheme } from "@mui/material";
|
|
5
|
-
import "../Icon/index.
|
|
6
|
-
import "clsx";
|
|
4
|
+
import { generateUtilityClasses, generateUtilityClass, styled, useTheme, ButtonBase } from "@mui/material";
|
|
5
|
+
import "../Icon/index.2414ff25.js";
|
|
6
|
+
import clsx from "clsx";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
import "../mui_extended/IconButton/index.
|
|
8
|
+
import "../mui_extended/IconButton/index.a318316e.js";
|
|
9
9
|
import "@m4l/graphics";
|
|
10
|
-
import "../mui_extended/Accordion/index.
|
|
10
|
+
import "../mui_extended/Accordion/index.42cef1c7.js";
|
|
11
11
|
import "../mui_extended/Typography/index.443590d6.js";
|
|
12
12
|
import { A as Avatar } from "../mui_extended/Avatar/index.75e6ed57.js";
|
|
13
13
|
import "react-router-dom";
|
|
14
14
|
import "@mui/material/Button";
|
|
15
|
-
import "../mui_extended/Button/index.
|
|
15
|
+
import "../mui_extended/Button/index.40af964e.js";
|
|
16
16
|
import "../mui_extended/CheckBox.5f6c78b0.js";
|
|
17
17
|
import { C as CircularProgress } from "../mui_extended/CircularProgress/index.ad569afd.js";
|
|
18
18
|
import "../mui_extended/Badge/index.cad260fe.js";
|
|
19
19
|
import "../Image/index.c18ebf5a.js";
|
|
20
20
|
import "@mui/lab";
|
|
21
|
-
import "../mui_extended/MenuActions/index.
|
|
21
|
+
import "../mui_extended/MenuActions/index.f6bfdd40.js";
|
|
22
22
|
import { P as Popover } from "../mui_extended/Popover/index.9f35d0eb.js";
|
|
23
|
-
import "../mui_extended/Pager/index.
|
|
24
|
-
import "../mui_extended/Tab/index.
|
|
23
|
+
import "../mui_extended/Pager/index.da26e9d4.js";
|
|
24
|
+
import "../mui_extended/Tab/index.0d5f96e6.js";
|
|
25
25
|
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
26
26
|
import { unstable_composeClasses } from "@mui/base";
|
|
27
27
|
const componentName = "M4LAccountPopover";
|
|
@@ -69,46 +69,32 @@ const AcountPopOverRoot = styled("div")(({
|
|
|
69
69
|
}) => ({
|
|
70
70
|
...theme.components?.M4LAccountPopover?.styleOverrides
|
|
71
71
|
}));
|
|
72
|
-
|
|
73
|
-
const
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
return
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
function MyAvatar({
|
|
100
|
-
...other
|
|
101
|
-
}) {
|
|
102
|
-
return /* @__PURE__ */ jsx(
|
|
103
|
-
Avatar,
|
|
104
|
-
{
|
|
105
|
-
src: "",
|
|
106
|
-
alt: "full_name",
|
|
107
|
-
color: "default",
|
|
108
|
-
...other,
|
|
109
|
-
children: createAvatar("").name
|
|
110
|
-
}
|
|
111
|
-
);
|
|
72
|
+
function MyAvatar(props) {
|
|
73
|
+
const {
|
|
74
|
+
avatarUrl,
|
|
75
|
+
firstName,
|
|
76
|
+
lastName,
|
|
77
|
+
...other
|
|
78
|
+
} = props;
|
|
79
|
+
const {
|
|
80
|
+
host_static_assets,
|
|
81
|
+
environment_assets
|
|
82
|
+
} = useEnvironment();
|
|
83
|
+
function stringAvatar(name) {
|
|
84
|
+
return {
|
|
85
|
+
children: `${name.split(" ")[0][0]}${name.split(" ")[1][0]}`
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
return /* @__PURE__ */ jsx(Avatar, {
|
|
89
|
+
alt: "full_name",
|
|
90
|
+
color: "default",
|
|
91
|
+
...avatarUrl ? {
|
|
92
|
+
src: `${host_static_assets}/${environment_assets}/frontend/domain/${avatarUrl}`
|
|
93
|
+
} : {
|
|
94
|
+
...stringAvatar(`${lastName} ${lastName}`)
|
|
95
|
+
},
|
|
96
|
+
...other
|
|
97
|
+
});
|
|
112
98
|
}
|
|
113
99
|
const MenuPopOver = (props) => {
|
|
114
100
|
const {
|
|
@@ -119,6 +105,13 @@ const MenuPopOver = (props) => {
|
|
|
119
105
|
classes,
|
|
120
106
|
userData
|
|
121
107
|
} = props;
|
|
108
|
+
const {
|
|
109
|
+
avatar_url,
|
|
110
|
+
first_name,
|
|
111
|
+
last_name,
|
|
112
|
+
email
|
|
113
|
+
} = userData || {};
|
|
114
|
+
console.log("sidebar MenuPopOver");
|
|
122
115
|
const {
|
|
123
116
|
getLabel
|
|
124
117
|
} = useModuleDictionary();
|
|
@@ -140,14 +133,18 @@ const MenuPopOver = (props) => {
|
|
|
140
133
|
...process.env.NODE_ENV !== "production" ? {
|
|
141
134
|
[TEST_PROP_ID]: getAccountPopoverClassesUtilityClass("containerAvatarPopover")
|
|
142
135
|
} : {},
|
|
143
|
-
children: [/* @__PURE__ */ jsx(
|
|
144
|
-
|
|
145
|
-
|
|
136
|
+
children: [/* @__PURE__ */ jsx(ButtonBase, {
|
|
137
|
+
children: /* @__PURE__ */ jsx(MyAvatar, {
|
|
138
|
+
className: classes.myAvatar,
|
|
139
|
+
avatarUrl: avatar_url,
|
|
140
|
+
firstName: first_name || "",
|
|
141
|
+
lastName: last_name || "",
|
|
142
|
+
onClick: handleOpen
|
|
143
|
+
})
|
|
146
144
|
}), /* @__PURE__ */ jsxs(Popover, {
|
|
147
145
|
open: Boolean(open2),
|
|
148
146
|
anchorEl: open2,
|
|
149
147
|
onClose: handleClose,
|
|
150
|
-
onBlur: handleClose,
|
|
151
148
|
className: classes.popover,
|
|
152
149
|
arrowType: "no-arrow",
|
|
153
150
|
anchorOrigin: {
|
|
@@ -172,10 +169,10 @@ const MenuPopOver = (props) => {
|
|
|
172
169
|
} : {},
|
|
173
170
|
children: [/* @__PURE__ */ jsx("span", {
|
|
174
171
|
className: classes.labelUserName,
|
|
175
|
-
children: `${
|
|
172
|
+
children: `${first_name} ${last_name}`
|
|
176
173
|
}), /* @__PURE__ */ jsx("span", {
|
|
177
174
|
className: classes.labelUserEmail,
|
|
178
|
-
children:
|
|
175
|
+
children: email
|
|
179
176
|
})]
|
|
180
177
|
}), /* @__PURE__ */ jsx("div", {
|
|
181
178
|
className: classes.containerAppVersion,
|
|
@@ -225,7 +222,8 @@ const AccountPopover = (props) => {
|
|
|
225
222
|
handleClick,
|
|
226
223
|
version,
|
|
227
224
|
handleLogOut,
|
|
228
|
-
userData
|
|
225
|
+
userData,
|
|
226
|
+
className
|
|
229
227
|
} = props;
|
|
230
228
|
const [asyncState, setAsyncState] = useState("unLoad");
|
|
231
229
|
const [menuData, setMenuData] = useState([]);
|
|
@@ -255,21 +253,19 @@ const AccountPopover = (props) => {
|
|
|
255
253
|
mounted = false;
|
|
256
254
|
};
|
|
257
255
|
}, [open]);
|
|
258
|
-
const
|
|
259
|
-
return /* @__PURE__ */ jsx(
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
userData
|
|
272
|
-
})
|
|
256
|
+
const accountPopoverClasses = useAccountPopoverUtilityClasses();
|
|
257
|
+
return /* @__PURE__ */ jsx(AcountPopOverRoot, {
|
|
258
|
+
className: clsx(accountPopoverClasses.root, className),
|
|
259
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
260
|
+
[TEST_PROP_ID]: getAccountPopoverClassesUtilityClass("root")
|
|
261
|
+
} : {},
|
|
262
|
+
children: /* @__PURE__ */ jsx(MenuPopOver, {
|
|
263
|
+
data: menuData,
|
|
264
|
+
handleClick,
|
|
265
|
+
version,
|
|
266
|
+
handleLogOut,
|
|
267
|
+
classes: accountPopoverClasses,
|
|
268
|
+
userData
|
|
273
269
|
})
|
|
274
270
|
});
|
|
275
271
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
export default function MyAvatar(
|
|
2
|
+
import { MyAvatarProps } from './types';
|
|
3
|
+
export default function MyAvatar(props: MyAvatarProps): import("react").JSX.Element;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { PopOverProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* MenuPopOver: Es el subcomponente de AccountPopover encargado de crear el menú popover y su contenido.
|
|
5
|
+
* @param props
|
|
6
|
+
* @type {PopOverProps}
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
3
9
|
export declare const MenuPopOver: (props: PopOverProps) => import("react").JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { AccountPopoverProps, UserMenuData } from "../../types";
|
|
3
|
-
export interface PopOverProps extends AccountPopoverProps {
|
|
1
|
+
import { AccountPopoverClasses } from "../../classes/types";
|
|
2
|
+
import { AccountPopoverProps, User, UserMenuData } from "../../types";
|
|
3
|
+
export interface PopOverProps extends Omit<AccountPopoverProps, 'userData'> {
|
|
4
4
|
data: Array<UserMenuData> | [];
|
|
5
|
-
classes:
|
|
5
|
+
classes: AccountPopoverClasses;
|
|
6
|
+
userData: User | null | undefined;
|
|
6
7
|
}
|
|
@@ -22,7 +22,7 @@ export interface userData {
|
|
|
22
22
|
entry_application_id: number;
|
|
23
23
|
avatar_url: string;
|
|
24
24
|
}
|
|
25
|
-
interface User {
|
|
25
|
+
export interface User {
|
|
26
26
|
email: string;
|
|
27
27
|
id: number;
|
|
28
28
|
first_name: string;
|
|
@@ -31,11 +31,10 @@ interface User {
|
|
|
31
31
|
domain_country: DomainCountry;
|
|
32
32
|
avatar_url?: Maybe<string>;
|
|
33
33
|
}
|
|
34
|
-
declare type AuthUser = Maybe<User>;
|
|
35
34
|
export interface AccountPopoverProps {
|
|
36
35
|
handleClick: (item: UserMenuData) => void;
|
|
37
36
|
handleLogOut: VoidFunction;
|
|
38
37
|
version: string;
|
|
39
|
-
userData:
|
|
38
|
+
userData: User | null | undefined;
|
|
39
|
+
className?: string;
|
|
40
40
|
}
|
|
41
|
-
export {};
|
|
@@ -2,9 +2,9 @@ import { useResponsiveDesktop } from "@m4l/graphics";
|
|
|
2
2
|
import { useEnvironment } from "@m4l/core";
|
|
3
3
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
4
4
|
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
5
|
-
import { I as IconButton } from "../mui_extended/IconButton/index.
|
|
6
|
-
import "../mui_extended/Accordion/index.
|
|
7
|
-
import "../Icon/index.
|
|
5
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.a318316e.js";
|
|
6
|
+
import "../mui_extended/Accordion/index.42cef1c7.js";
|
|
7
|
+
import "../Icon/index.2414ff25.js";
|
|
8
8
|
import "react";
|
|
9
9
|
import "clsx";
|
|
10
10
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
@@ -12,15 +12,15 @@ import "../mui_extended/Typography/index.443590d6.js";
|
|
|
12
12
|
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
13
13
|
import "react-router-dom";
|
|
14
14
|
import "@mui/material/Button";
|
|
15
|
-
import "../mui_extended/Button/index.
|
|
15
|
+
import "../mui_extended/Button/index.40af964e.js";
|
|
16
16
|
import "../mui_extended/CheckBox.5f6c78b0.js";
|
|
17
17
|
import "../mui_extended/Badge/index.cad260fe.js";
|
|
18
18
|
import "../Image/index.c18ebf5a.js";
|
|
19
19
|
import "@mui/lab";
|
|
20
|
-
import "../mui_extended/MenuActions/index.
|
|
20
|
+
import "../mui_extended/MenuActions/index.f6bfdd40.js";
|
|
21
21
|
import "../mui_extended/Popover/index.9f35d0eb.js";
|
|
22
|
-
import "../mui_extended/Pager/index.
|
|
23
|
-
import "../mui_extended/Tab/index.
|
|
22
|
+
import "../mui_extended/Pager/index.da26e9d4.js";
|
|
23
|
+
import "../mui_extended/Tab/index.0d5f96e6.js";
|
|
24
24
|
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
25
25
|
import { styled } from "@mui/material/styles";
|
|
26
26
|
import { unstable_composeClasses } from "@mui/base";
|
package/components/CommonActions/components/ActionCancel/{index.6928b5ae.js → index.6cf96d04.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useModuleDictionary } from "@m4l/core";
|
|
2
|
-
import { B as Button } from "../../../mui_extended/Button/index.
|
|
3
|
-
import { u as useCommonActionsUtilityClasses } from "../Actions/index.
|
|
2
|
+
import { B as Button } from "../../../mui_extended/Button/index.40af964e.js";
|
|
3
|
+
import { u as useCommonActionsUtilityClasses } from "../Actions/index.5abb6ac4.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
const ActionCancel = (props) => {
|
|
6
6
|
const {
|
package/components/CommonActions/components/ActionFormCancel/{index.28d32483.js → index.a0335cbf.js}
RENAMED
|
@@ -1,19 +1,19 @@
|
|
|
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 { B as Button } from "../../../mui_extended/Button/index.
|
|
4
|
+
import { B as Button } from "../../../mui_extended/Button/index.40af964e.js";
|
|
5
5
|
import { useCallback, useEffect } from "react";
|
|
6
|
-
import { u as useModal } from "../../../../hooks/useModal/index.
|
|
6
|
+
import { u as useModal } from "../../../../hooks/useModal/index.9b0cc3fe.js";
|
|
7
7
|
import "../../../../react-draggable.7abb5d0a.js";
|
|
8
8
|
import "../../../Resizeable/index.9a9c79a4.js";
|
|
9
9
|
import { jsx } from "react/jsx-runtime";
|
|
10
10
|
import "@m4l/graphics";
|
|
11
|
-
import "../../../Icon/index.
|
|
11
|
+
import "../../../Icon/index.2414ff25.js";
|
|
12
12
|
import "clsx";
|
|
13
|
-
import "../../../modal/index.
|
|
14
|
-
import { W as WindowConfirm } from "../../../modal/WindowConfirm.
|
|
15
|
-
import "../../../mui_extended/IconButton/index.
|
|
16
|
-
import "../../../mui_extended/Accordion/index.
|
|
13
|
+
import "../../../modal/index.e9fece72.js";
|
|
14
|
+
import { W as WindowConfirm } from "../../../modal/WindowConfirm.f148e495.js";
|
|
15
|
+
import "../../../mui_extended/IconButton/index.a318316e.js";
|
|
16
|
+
import "../../../mui_extended/Accordion/index.42cef1c7.js";
|
|
17
17
|
import "../../../mui_extended/Typography/index.443590d6.js";
|
|
18
18
|
import "../../../mui_extended/Avatar/index.75e6ed57.js";
|
|
19
19
|
import "react-router-dom";
|
|
@@ -21,22 +21,22 @@ import "../../../mui_extended/CheckBox.5f6c78b0.js";
|
|
|
21
21
|
import "../../../mui_extended/Badge/index.cad260fe.js";
|
|
22
22
|
import "../../../Image/index.c18ebf5a.js";
|
|
23
23
|
import "@mui/lab";
|
|
24
|
-
import "../../../mui_extended/MenuActions/index.
|
|
24
|
+
import "../../../mui_extended/MenuActions/index.f6bfdd40.js";
|
|
25
25
|
import "../../../mui_extended/Popover/index.9f35d0eb.js";
|
|
26
|
-
import "../../../mui_extended/Pager/index.
|
|
27
|
-
import "../../../mui_extended/Tab/index.
|
|
26
|
+
import "../../../mui_extended/Pager/index.da26e9d4.js";
|
|
27
|
+
import "../../../mui_extended/Tab/index.0d5f96e6.js";
|
|
28
28
|
import "../../../mui_extended/Tooltip/index.5a795dcd.js";
|
|
29
29
|
import "zustand";
|
|
30
|
-
import "../../../areas/contexts/AreasContext/index.
|
|
31
|
-
import "../../../areas/components/AreasAdmin/index.
|
|
30
|
+
import "../../../areas/contexts/AreasContext/index.9820bc7f.js";
|
|
31
|
+
import "../../../areas/components/AreasAdmin/index.f011d49d.js";
|
|
32
32
|
import "zustand/shallow";
|
|
33
|
-
import "../../../ScrollBar/index.
|
|
34
|
-
import "../../../areas/components/AreasViewer/index.
|
|
33
|
+
import "../../../ScrollBar/index.d4410cb5.js";
|
|
34
|
+
import "../../../areas/components/AreasViewer/index.51a52736.js";
|
|
35
35
|
import "../../../LinearProgressIndeterminate/index.60dabc06.js";
|
|
36
36
|
import "../../../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
37
37
|
import "../../../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
38
38
|
import { u as useWindowToolsMF } from "../../../areas/hooks/useWindowToolsMF/index.b7afaf88.js";
|
|
39
|
-
import { u as useCommonActionsUtilityClasses } from "../Actions/index.
|
|
39
|
+
import { u as useCommonActionsUtilityClasses } from "../Actions/index.5abb6ac4.js";
|
|
40
40
|
function ActionFormCancel() {
|
|
41
41
|
const {
|
|
42
42
|
getLabel
|
package/components/CommonActions/components/ActionFormIntro/{index.f044e93c.js → index.273b1b9f.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
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.
|
|
5
|
-
import { u as useCommonActionsUtilityClasses } from "../Actions/index.
|
|
4
|
+
import { L as LoadingButton } from "../../../mui_extended/Button/index.40af964e.js";
|
|
5
|
+
import { u as useCommonActionsUtilityClasses } from "../Actions/index.5abb6ac4.js";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
function ActionFormIntro(props) {
|
|
8
8
|
const {
|
package/components/CommonActions/components/ActionIntro/{index.8b1b3afc.js → index.856df8ef.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
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.40af964e.js";
|
|
3
3
|
import { T as TEST_PROP_ID } from "../../../../test/constants_no_mock.86c553a9.js";
|
|
4
|
-
import { u as useCommonActionsUtilityClasses } from "../Actions/index.
|
|
4
|
+
import { u as useCommonActionsUtilityClasses } from "../Actions/index.5abb6ac4.js";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
const ACTIONINTRO_TEST_ID = "m4lactions";
|
|
7
7
|
const ActionIntro = (props) => {
|
|
@@ -6,36 +6,36 @@ import { g as getComponentUtilityClass } from "../../../../utils/index.c43a95f4.
|
|
|
6
6
|
import { styled } from "@mui/material/styles";
|
|
7
7
|
import "@m4l/core";
|
|
8
8
|
import "@mui/material/Button";
|
|
9
|
-
import "../../../mui_extended/Button/index.
|
|
9
|
+
import "../../../mui_extended/Button/index.40af964e.js";
|
|
10
10
|
import "clsx";
|
|
11
11
|
import "react-hook-form";
|
|
12
12
|
import "react";
|
|
13
|
-
import "../../../../contexts/ModalContext/index.
|
|
13
|
+
import "../../../../contexts/ModalContext/index.efc1135a.js";
|
|
14
14
|
import "../../../../react-draggable.7abb5d0a.js";
|
|
15
15
|
import "../../../Resizeable/index.9a9c79a4.js";
|
|
16
16
|
import "@m4l/graphics";
|
|
17
|
-
import "../../../Icon/index.
|
|
18
|
-
import "../../../modal/index.
|
|
17
|
+
import "../../../Icon/index.2414ff25.js";
|
|
18
|
+
import "../../../modal/index.e9fece72.js";
|
|
19
19
|
import "@mui/lab";
|
|
20
20
|
import "../../../mui_extended/Typography/index.443590d6.js";
|
|
21
21
|
import "../../../Image/index.c18ebf5a.js";
|
|
22
|
-
import "../../../mui_extended/IconButton/index.
|
|
23
|
-
import "../../../mui_extended/Accordion/index.
|
|
22
|
+
import "../../../mui_extended/IconButton/index.a318316e.js";
|
|
23
|
+
import "../../../mui_extended/Accordion/index.42cef1c7.js";
|
|
24
24
|
import "../../../mui_extended/Avatar/index.75e6ed57.js";
|
|
25
25
|
import "react-router-dom";
|
|
26
26
|
import "../../../mui_extended/CheckBox.5f6c78b0.js";
|
|
27
27
|
import "../../../mui_extended/Badge/index.cad260fe.js";
|
|
28
|
-
import "../../../mui_extended/MenuActions/index.
|
|
28
|
+
import "../../../mui_extended/MenuActions/index.f6bfdd40.js";
|
|
29
29
|
import "../../../mui_extended/Popover/index.9f35d0eb.js";
|
|
30
|
-
import "../../../mui_extended/Pager/index.
|
|
31
|
-
import "../../../mui_extended/Tab/index.
|
|
30
|
+
import "../../../mui_extended/Pager/index.da26e9d4.js";
|
|
31
|
+
import "../../../mui_extended/Tab/index.0d5f96e6.js";
|
|
32
32
|
import "../../../mui_extended/Tooltip/index.5a795dcd.js";
|
|
33
33
|
import "zustand";
|
|
34
|
-
import "../../../areas/contexts/AreasContext/index.
|
|
35
|
-
import "../../../areas/components/AreasAdmin/index.
|
|
34
|
+
import "../../../areas/contexts/AreasContext/index.9820bc7f.js";
|
|
35
|
+
import "../../../areas/components/AreasAdmin/index.f011d49d.js";
|
|
36
36
|
import "zustand/shallow";
|
|
37
|
-
import "../../../ScrollBar/index.
|
|
38
|
-
import "../../../areas/components/AreasViewer/index.
|
|
37
|
+
import "../../../ScrollBar/index.d4410cb5.js";
|
|
38
|
+
import "../../../areas/components/AreasViewer/index.51a52736.js";
|
|
39
39
|
import "../../../LinearProgressIndeterminate/index.60dabc06.js";
|
|
40
40
|
import "../../../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
41
41
|
import "../../../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DATAGRID_PREFIX_NAME = "M4LDataGrid";
|
|
@@ -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.4dc1c8ed.js";
|
|
2
|
+
import { g as getPagerComponentsDictionary } from "../mui_extended/Pager/index.da26e9d4.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,14 +8,16 @@ 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.db54ec98.js";
|
|
12
12
|
import { unstable_composeClasses } from "@mui/base";
|
|
13
|
-
import {
|
|
13
|
+
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
14
|
+
import { g as getNameDataTestId } from "../../vendor.88ed58a5.js";
|
|
15
|
+
import { B as BooleanFormatter } from "../formatters/BooleanFormatter/index.32de0803.js";
|
|
14
16
|
import "@m4l/graphics";
|
|
15
|
-
import "../Icon/index.
|
|
17
|
+
import "../Icon/index.2414ff25.js";
|
|
16
18
|
import "clsx";
|
|
17
19
|
import { D as DateFormatter } from "../formatters/DateFormatter/index.578a9f53.js";
|
|
18
|
-
import { C as ConcatenatedFormatter } from "../formatters/index.
|
|
20
|
+
import { C as ConcatenatedFormatter } from "../formatters/index.d16d2331.js";
|
|
19
21
|
const DataGridRoot = styled("div")(({
|
|
20
22
|
theme
|
|
21
23
|
}) => ({
|
|
@@ -828,6 +830,7 @@ const dataGridClasses = generateUtilityClasses(componentName, [
|
|
|
828
830
|
"formatterColumn",
|
|
829
831
|
"skeletonFormatter",
|
|
830
832
|
"actionsFormatter",
|
|
833
|
+
"actionsConfigContainer",
|
|
831
834
|
"withActions"
|
|
832
835
|
]);
|
|
833
836
|
function getDataGridUtilityClass(slot) {
|
|
@@ -855,7 +858,8 @@ const dataGridUtilityClasses = (ownerState) => {
|
|
|
855
858
|
columnsConfigActions: ["columnsConfigActions"],
|
|
856
859
|
formatterColumn: ["formatterColumn"],
|
|
857
860
|
skeletonFormatter: ["skeletonFormatter"],
|
|
858
|
-
actionsFormatter: ["actionsFormatter"]
|
|
861
|
+
actionsFormatter: ["actionsFormatter"],
|
|
862
|
+
actionsConfigContainer: ["actionsConfigContainer"]
|
|
859
863
|
};
|
|
860
864
|
const composedClasses = unstable_composeClasses(slots, getDataGridUtilityClass, {});
|
|
861
865
|
return {
|
|
@@ -873,6 +877,7 @@ const dictionary = {
|
|
|
873
877
|
const DATAGRID_TEST_ID = "m4ldatagrid";
|
|
874
878
|
const PREFIX_TEST_ATTRIBUTE = "data-testid";
|
|
875
879
|
const TEST_PROP_COLUMNS = `${PREFIX_TEST_ATTRIBUTE}-${DATAGRID_TEST_ID}-columns`;
|
|
880
|
+
const DATAGRID_PREFIX_NAME = "M4LDataGrid";
|
|
876
881
|
function DataGrid(props) {
|
|
877
882
|
const {
|
|
878
883
|
id,
|
|
@@ -890,7 +895,7 @@ function DataGrid(props) {
|
|
|
890
895
|
initialRowHeightVariant,
|
|
891
896
|
checkedRows,
|
|
892
897
|
onCheckedRowsChange,
|
|
893
|
-
dataTestId
|
|
898
|
+
dataTestId = ""
|
|
894
899
|
} = props;
|
|
895
900
|
const ownerState = {
|
|
896
901
|
actionsProps,
|
|
@@ -902,7 +907,7 @@ function DataGrid(props) {
|
|
|
902
907
|
className: classes.root,
|
|
903
908
|
...process.env.NODE_ENV !== "production" ? {
|
|
904
909
|
[TEST_PROP_COLUMNS]: JSON.stringify(columns),
|
|
905
|
-
[
|
|
910
|
+
[TEST_PROP_ID]: getNameDataTestId(DATAGRID_PREFIX_NAME, "root", dataTestId)
|
|
906
911
|
} : {},
|
|
907
912
|
children: /* @__PURE__ */ jsx(DataGridProvider, {
|
|
908
913
|
id: props.id,
|