@m4l/components 0.1.80 → 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 +9 -1
- package/components/AccountPopover/AccountPopover.d.ts +21 -0
- package/components/AccountPopover/classes/types.d.ts +1 -1
- package/components/AccountPopover/{index.00d1d15f.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.c85b100d.js → index.fadcefc6.js} +7 -7
- package/components/CommonActions/components/ActionCancel/{index.1051a117.js → index.6cf96d04.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.a0d727b2.js → index.a0335cbf.js} +15 -15
- package/components/CommonActions/components/ActionFormIntro/{index.a20dc88d.js → index.273b1b9f.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.bfe3256c.js → index.856df8ef.js} +2 -2
- package/components/CommonActions/components/Actions/{index.19d67bc6.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.2f175eba.js → index.03ad08af.js} +28 -681
- package/components/DataGrid/subcomponents/Actions/index.db54ec98.js +621 -0
- package/components/DataGrid/subcomponents/editors/TextEditor/index.91380a55.js +64 -0
- package/components/DynamicFilter/constants.d.ts +1 -1
- package/components/DynamicFilter/{index.c1f9d560.js → index.9b72180b.js} +28 -28
- package/components/GridLayout/GridLayout.d.ts +1 -0
- package/components/GridLayout/classes/index.d.ts +4 -0
- package/components/GridLayout/classes/types.d.ts +17 -0
- package/components/GridLayout/constants.d.ts +26 -0
- package/components/GridLayout/{index.a792aacb.js → index.76bccc4f.js} +322 -575
- package/components/GridLayout/index.d.ts +4 -3
- package/components/GridLayout/subcomponents/Griditem/index.01fc14c3.js +370 -0
- package/components/GridLayout/subcomponents/Griditem/index.d.ts +9 -0
- package/components/GridLayout/subcomponents/Griditem/types.d.ts +103 -0
- package/components/GridLayout/subcomponents/Responsive/helper.d.ts +10 -0
- package/components/GridLayout/subcomponents/Responsive/index.d.ts +15 -2
- package/components/GridLayout/{Responsive/index.1671380a.js → subcomponents/Responsive/index.e589d8bf.js} +95 -139
- package/components/GridLayout/subcomponents/Responsive/responsiveUtils.d.ts +3 -6
- package/components/GridLayout/subcomponents/Responsive/types.d.ts +114 -33
- package/components/GridLayout/{WidthProvider/index.9a26dfe4.js → subcomponents/WidthProvider/index.50dafd87.js} +5 -5
- package/components/GridLayout/subcomponents/WidthProvider/index.d.ts +4 -5
- package/components/GridLayout/types.d.ts +83 -18
- package/components/GridLayout/utils.d.ts +15 -12
- package/components/HelperText/{index.6ef76993.js → index.6c3adb40.js} +7 -7
- package/components/Icon/{index.9fcd1476.js → index.2414ff25.js} +1 -1
- package/components/LanguagePopover/{index.1564bd08.js → index.66e11634.js} +7 -7
- package/components/ModalDialog/{index.fbc4cd71.js → index.4dc1c8ed.js} +4 -4
- package/components/NavLink/{index.6c9c2588.js → index.5859e048.js} +7 -7
- package/components/ObjectLogs/{index.eab1c15f.js → index.51de2deb.js} +17 -17
- package/components/PaperForm/{index.ba38a0bd.js → index.f931dc02.js} +1 -1
- package/components/Period/{index.26071a16.js → index.4fd9df2a.js} +14 -14
- package/components/PropertyValue/{index.18d3c0fd.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.7a0dabbe.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.fd49f06c.js → index.51a52736.js} +41 -153
- package/components/areas/components/{index.7756928a.js → index.f496660b.js} +11 -11
- package/components/areas/contexts/AreasContext/helper.d.ts +2 -2
- package/components/areas/contexts/AreasContext/{index.0a08a08b.js → index.9820bc7f.js} +12 -6
- package/components/areas/contexts/AreasContext/types.d.ts +4 -4
- package/components/areas/contexts/{index.b303b664.js → index.361acb6f.js} +1 -1
- package/components/areas/hooks/useAreas/{index.c6eb2569.js → index.b403f383.js} +1 -1
- package/components/areas/{index.6e67d89a.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.d1bbb015.js → index.6edb51b1.js} +8 -8
- package/components/hook-form/RHFAutocompleteAsync/{index.f9a9ef48.js → index.c2ca5c66.js} +1 -1
- package/components/hook-form/RHFCheckbox/{index.7b4a21d7.js → index.c6c3933b.js} +8 -8
- package/components/hook-form/RHFDateTime/{index.46cf616e.js → index.3add0fa4.js} +8 -8
- package/components/hook-form/RHFPeriod/{index.ce513149.js → index.72edef4d.js} +2 -2
- package/components/hook-form/RHFTextField/{index.f7ee202c.js → index.20daa95e.js} +3 -3
- package/components/hook-form/RHFUpload/{index.1befd5bb.js → index.cc5adc15.js} +8 -8
- package/components/modal/{WindowBase.7e19843e.js → WindowBase.4016485b.js} +9 -9
- package/components/modal/{WindowConfirm.12a9608a.js → WindowConfirm.f148e495.js} +16 -16
- package/components/modal/{index.b0a7236c.js → index.e9fece72.js} +13 -13
- package/components/mui_extended/Accordion/{index.a6447bf8.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.c39a6681.js → index.0d5f96e6.js} +1 -1
- package/components/mui_extended/{index.d78bde19.js → index.f6a356b9.js} +7 -7
- package/contexts/ModalContext/{index.89805978.js → index.efc1135a.js} +1 -1
- package/contexts/RHFormContext/{index.fe175bab.js → index.b9266262.js} +1 -1
- package/hooks/useModal/{index.e1c5c31e.js → index.9b0cc3fe.js} +1 -1
- package/index.js +92 -88
- package/package.json +1 -2
- package/{vendor.f57d47a7.js → vendor.88ed58a5.js} +51 -48
- package/components/AccountPopover/subcomponents/MyAvatar/createAvatar.d.ts +0 -4
- package/components/GridLayout/subcomponents/GridItem/index.d.ts +0 -26
- package/components/GridLayout/subcomponents/GridItem/types.d.ts +0 -78
- 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
|
@@ -56,7 +56,6 @@ import { BadgeProps } from '../components/mui_extended/Badge';
|
|
|
56
56
|
import { BadgeClassesKey } from '../components/DataGrid/classes/types';
|
|
57
57
|
import { CheckboxClassesKey } from '../components/mui_extended/CheckBox/classes/types';
|
|
58
58
|
|
|
59
|
-
|
|
60
59
|
export {};
|
|
61
60
|
|
|
62
61
|
declare module '@mui/material/styles' {
|
|
@@ -145,6 +144,7 @@ declare module '@mui/material/styles' {
|
|
|
145
144
|
M4LPaperForm: PaperFormClassesKey;
|
|
146
145
|
M4LTooltip: TooltipClassesKey;
|
|
147
146
|
M4LPager: PagerClassesKey;
|
|
147
|
+
M4LPagerMenuPopover: PagerClassesKey,
|
|
148
148
|
|
|
149
149
|
}
|
|
150
150
|
|
|
@@ -374,6 +374,14 @@ declare module '@mui/material/styles' {
|
|
|
374
374
|
styleOverrides?: ComponentsOverrides<Theme>['M4LPager'];
|
|
375
375
|
defaultProps?: ComponentsProps['M4LPager'];
|
|
376
376
|
};
|
|
377
|
+
M4LPagerMenuPopover?: {
|
|
378
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LPagerMenuPopover'];
|
|
379
|
+
defaultProps?: ComponentsProps['M4LPagerMenuPopover'];
|
|
380
|
+
};
|
|
377
381
|
|
|
382
|
+
M4LGridLayout?: {
|
|
383
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LGridLayout'];
|
|
384
|
+
defaultProps?: ComponentsProps['M4LGridLayout'];
|
|
385
|
+
};
|
|
378
386
|
}
|
|
379
387
|
}
|
|
@@ -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.1051a117.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.a0d727b2.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.a20dc88d.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.bfe3256c.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";
|