@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.
Files changed (82) hide show
  1. package/@types/export.d.ts +6 -0
  2. package/components/AccountPopover/AccountPopover.d.ts +21 -0
  3. package/components/AccountPopover/classes/types.d.ts +1 -1
  4. package/components/AccountPopover/{index.fea740a5.js → index.0ba26726.js} +68 -72
  5. package/components/AccountPopover/subcomponents/MyAvatar/index.d.ts +2 -2
  6. package/components/AccountPopover/subcomponents/MyAvatar/types.d.ts +7 -0
  7. package/components/AccountPopover/subcomponents/PopOver/index.d.ts +6 -0
  8. package/components/AccountPopover/subcomponents/PopOver/types.d.ts +5 -4
  9. package/components/AccountPopover/types.d.ts +3 -4
  10. package/components/AppBar/{index.6bdee075.js → index.fadcefc6.js} +7 -7
  11. package/components/CommonActions/components/ActionCancel/{index.6928b5ae.js → index.6cf96d04.js} +2 -2
  12. package/components/CommonActions/components/ActionFormCancel/{index.28d32483.js → index.a0335cbf.js} +15 -15
  13. package/components/CommonActions/components/ActionFormIntro/{index.f044e93c.js → index.273b1b9f.js} +2 -2
  14. package/components/CommonActions/components/ActionIntro/{index.8b1b3afc.js → index.856df8ef.js} +2 -2
  15. package/components/CommonActions/components/Actions/{index.265d99c8.js → index.5abb6ac4.js} +13 -13
  16. package/components/DataGrid/classes/index.d.ts +1 -0
  17. package/components/DataGrid/classes/types.d.ts +1 -0
  18. package/components/DataGrid/constants.d.ts +1 -0
  19. package/components/DataGrid/{index.820e0043.js → index.03ad08af.js} +14 -9
  20. package/components/DataGrid/subcomponents/Actions/{index.43325b59.js → index.db54ec98.js} +23 -20
  21. package/components/DynamicFilter/constants.d.ts +1 -1
  22. package/components/DynamicFilter/{index.2b80238b.js → index.9b72180b.js} +28 -28
  23. package/components/HelperText/{index.2c408d8a.js → index.6c3adb40.js} +7 -7
  24. package/components/Icon/{index.9fcd1476.js → index.2414ff25.js} +1 -1
  25. package/components/LanguagePopover/{index.4596bf54.js → index.66e11634.js} +7 -7
  26. package/components/ModalDialog/{index.62ffad3a.js → index.4dc1c8ed.js} +4 -4
  27. package/components/NavLink/{index.68392bd4.js → index.5859e048.js} +7 -7
  28. package/components/ObjectLogs/{index.665e043d.js → index.51de2deb.js} +17 -17
  29. package/components/PaperForm/{index.ba38a0bd.js → index.f931dc02.js} +1 -1
  30. package/components/Period/{index.7d44c0e5.js → index.4fd9df2a.js} +14 -14
  31. package/components/PropertyValue/{index.a66988e1.js → index.1b09f426.js} +1 -1
  32. package/components/ScrollBar/{index.bbe48f4d.js → index.d4410cb5.js} +5 -0
  33. package/components/SideBar/{index.2f497e6c.js → index.72564ef2.js} +11 -6
  34. package/components/animate/AnimatedScroll/animatedScroll.d.ts +3 -0
  35. package/components/animate/AnimatedScroll/index.d.ts +1 -0
  36. package/components/animate/AnimatedScroll/types.d.ts +5 -0
  37. package/components/animate/index.4e9774a6.js +150 -0
  38. package/components/animate/index.d.ts +1 -0
  39. package/components/areas/components/AreasAdmin/{index.5562f65f.js → index.f011d49d.js} +60 -49
  40. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/PanelWindowPopUp/index.d.ts +1 -1
  41. package/components/areas/components/AreasViewer/{index.1004b7a0.js → index.51a52736.js} +36 -36
  42. package/components/areas/components/{index.a441c8b1.js → index.f496660b.js} +11 -11
  43. package/components/areas/contexts/AreasContext/{index.4bf1eabe.js → index.9820bc7f.js} +2 -2
  44. package/components/areas/contexts/{index.2938bc5a.js → index.361acb6f.js} +1 -1
  45. package/components/areas/hooks/useAreas/{index.c77a2416.js → index.b403f383.js} +1 -1
  46. package/components/areas/{index.09851bae.js → index.eacab372.js} +11 -11
  47. package/components/formatters/BooleanFormatter/{index.e8de8e4c.js → index.32de0803.js} +1 -1
  48. package/components/formatters/{index.67aeb049.js → index.d16d2331.js} +2 -2
  49. package/components/hook-form/RHFAutocomplete/{index.9a9d7c73.js → index.6edb51b1.js} +8 -8
  50. package/components/hook-form/RHFAutocompleteAsync/{index.172df421.js → index.c2ca5c66.js} +1 -1
  51. package/components/hook-form/RHFCheckbox/{index.47f0157b.js → index.c6c3933b.js} +8 -8
  52. package/components/hook-form/RHFDateTime/{index.f46e987f.js → index.3add0fa4.js} +8 -8
  53. package/components/hook-form/RHFPeriod/{index.2e07ba7b.js → index.72edef4d.js} +2 -2
  54. package/components/hook-form/RHFTextField/{index.253620eb.js → index.20daa95e.js} +3 -3
  55. package/components/hook-form/RHFUpload/{index.9f00121f.js → index.cc5adc15.js} +8 -8
  56. package/components/modal/{WindowBase.37b59511.js → WindowBase.4016485b.js} +9 -9
  57. package/components/modal/{WindowConfirm.1a8c8c21.js → WindowConfirm.f148e495.js} +16 -16
  58. package/components/modal/{index.c8e23b8d.js → index.e9fece72.js} +13 -13
  59. package/components/mui_extended/Accordion/{index.fa658639.js → index.42cef1c7.js} +3 -3
  60. package/components/mui_extended/Avatar/types.d.ts +3 -1
  61. package/components/mui_extended/Button/classes/types.d.ts +3 -0
  62. package/components/mui_extended/Button/{index.4288f9fc.js → index.40af964e.js} +8 -3
  63. package/components/mui_extended/Button/types.d.ts +2 -1
  64. package/components/mui_extended/IconButton/{index.12f1a3c3.js → index.a318316e.js} +1 -1
  65. package/components/mui_extended/MenuActions/{index.43a2e1ae.js → index.f6bfdd40.js} +2 -2
  66. package/components/mui_extended/Pager/classes/index.d.ts +12 -0
  67. package/components/mui_extended/Pager/classes/types.d.ts +12 -4
  68. package/components/mui_extended/Pager/{index.82e89328.js → index.da26e9d4.js} +114 -62
  69. package/components/mui_extended/Pager/subcomponents/CustomTablePagination/index.d.ts +3 -0
  70. package/components/mui_extended/Pager/subcomponents/CustomTablePagination/types.d.ts +12 -0
  71. package/components/mui_extended/Pager/{components → subcomponents}/PagerActions/types.d.ts +2 -0
  72. package/components/mui_extended/Tab/{index.f94d233e.js → index.0d5f96e6.js} +1 -1
  73. package/components/mui_extended/{index.07fcc38f.js → index.f6a356b9.js} +7 -7
  74. package/contexts/ModalContext/{index.66e060a3.js → index.efc1135a.js} +1 -1
  75. package/contexts/RHFormContext/{index.fe175bab.js → index.b9266262.js} +1 -1
  76. package/hooks/useModal/{index.61968b84.js → index.9b0cc3fe.js} +1 -1
  77. package/index.js +67 -66
  78. package/package.json +1 -1
  79. package/{vendor.fefd45a3.js → vendor.88ed58a5.js} +46 -46
  80. package/components/AccountPopover/subcomponents/MyAvatar/createAvatar.d.ts +0 -4
  81. package/components/animate/index.1f8eadd4.js +0 -66
  82. /package/components/mui_extended/Pager/{components → subcomponents}/PagerActions/index.d.ts +0 -0
@@ -1,10 +1,11 @@
1
1
  import { useMemo } from "react";
2
- import { generateUtilityClasses, generateUtilityClass, TablePagination, Skeleton } from "@mui/material";
3
2
  import { styled } from "@mui/material/styles";
4
- import { I as IconButton } from "../IconButton/index.12f1a3c3.js";
3
+ import { I as IconButton } from "../IconButton/index.a318316e.js";
5
4
  import { useEnvironment } from "@m4l/core";
6
- import { jsxs, jsx } from "react/jsx-runtime";
5
+ import { jsxs, jsx, Fragment } from "react/jsx-runtime";
6
+ import { generateUtilityClasses, generateUtilityClass, useTheme, Select, InputBase, MenuItem } from "@mui/material";
7
7
  import { unstable_composeClasses } from "@mui/base";
8
+ import { T as Typography } from "../Typography/index.443590d6.js";
8
9
  const WrapperPagerActions = styled("div")(({ theme }) => ({
9
10
  width: "100%",
10
11
  justifyContent: "center",
@@ -21,7 +22,8 @@ function PagerActions(props) {
21
22
  count,
22
23
  page,
23
24
  rowsPerPage,
24
- onPageChange
25
+ onPageChange,
26
+ classes
25
27
  } = props;
26
28
  const {
27
29
  host_static_assets,
@@ -40,31 +42,35 @@ function PagerActions(props) {
40
42
  onPageChange(event, Math.max(0, Math.ceil(count / rowsPerPage) - 1));
41
43
  };
42
44
  return /* @__PURE__ */ jsxs(WrapperPagerActions, {
43
- id: "WrapperPagerActions",
45
+ className: classes.pagerActions,
44
46
  children: [/* @__PURE__ */ jsx(IconButton, {
45
47
  id: "test_bruce",
46
48
  dictionaryTooltipId: "pager.first",
47
49
  onClick: handleFirstPageButtonClick,
48
50
  disabled: page === 0,
49
51
  "aria-label": "first page",
52
+ className: classes.actionIconFirstPage,
50
53
  src: `${host_static_assets}/${environment_assets}/frontend/components/pager/assets/icons/first.svg`
51
54
  }), /* @__PURE__ */ jsx(IconButton, {
52
55
  dictionaryTooltipId: "pager.previous",
53
56
  onClick: handleBackButtonClick,
54
57
  disabled: page === 0,
55
58
  "aria-label": "first page",
59
+ className: classes.actionIconPrevious,
56
60
  src: `${host_static_assets}/${environment_assets}/frontend/components/pager/assets/icons/previous.svg`
57
61
  }), /* @__PURE__ */ jsx(IconButton, {
58
62
  dictionaryTooltipId: "pager.next",
59
63
  onClick: handleNextButtonClick,
60
64
  disabled: page >= Math.ceil(count / rowsPerPage) - 1,
61
65
  "aria-label": "next page",
66
+ className: classes.actionIconNextPage,
62
67
  src: `${host_static_assets}/${environment_assets}/frontend/components/pager/assets/icons/next.svg`
63
68
  }), /* @__PURE__ */ jsx(IconButton, {
64
69
  dictionaryTooltipId: "pager.last",
65
70
  onClick: handleLastPageButtonClick,
66
71
  disabled: page >= Math.ceil(count / rowsPerPage) - 1,
67
72
  "aria-label": "last page",
73
+ className: classes.actionIconLastPage,
68
74
  src: `${host_static_assets}/${environment_assets}/frontend/components/pager/assets/icons/last.svg`
69
75
  })]
70
76
  });
@@ -105,10 +111,22 @@ styled("div")(({ theme }) => ({
105
111
  const componentName = "M4LPager";
106
112
  generateUtilityClasses(componentName, [
107
113
  "root",
114
+ "labelRowsPerPageContainer",
115
+ "labelRowsPager",
116
+ "select",
117
+ "selectMenuItem",
118
+ "selectMenuPopover",
119
+ "labelDisplayRows",
120
+ "pagerActions",
121
+ "customTablePaginationRoot",
108
122
  "skeletonRoot",
109
123
  "skeletonRowsPerPage",
110
124
  "skeletonButtonContainer",
111
- "skeletonIconButton"
125
+ "skeletonIconButton",
126
+ "actionIconFirstPage",
127
+ "actionIconPrevious",
128
+ "actionIconNextPage",
129
+ "actionIconLastPage"
112
130
  ]);
113
131
  function getPagerUtilityClass(slot) {
114
132
  return generateUtilityClass(componentName, slot);
@@ -116,16 +134,101 @@ function getPagerUtilityClass(slot) {
116
134
  const pagerUtilityClasses = () => {
117
135
  const slots = {
118
136
  root: ["root"],
137
+ labelRowsPerPageContainer: ["labelRowsPerPageContainer"],
138
+ labelRowsPager: ["labelRowsBager"],
139
+ select: ["select"],
140
+ selectMenuPopover: ["selectMenuPopover"],
141
+ selectMenuItem: ["selectMenuItem"],
142
+ labelDisplayRows: ["labelDisplayRows"],
143
+ pagerActions: ["pagerActions"],
144
+ customTablePaginationRoot: ["customTablePaginationRoot"],
119
145
  skeletonRoot: ["skeletonRoot"],
120
146
  skeletonRowsPerPage: ["skeletonRowsPerPage"],
121
147
  skeletonButtonContainer: ["skeletonButtonContainer"],
122
- skeletonIconButton: ["skeletonIconButton"]
148
+ skeletonIconButton: ["skeletonIconButton"],
149
+ actionIconFirstPage: ["actionIconFirstPage"],
150
+ actionIconPrevious: ["actionIconPrevious"],
151
+ actionIconNextPage: ["actionIconNextPage"],
152
+ actionIconLastPage: ["actionIconLastPage"]
123
153
  };
124
154
  const composedClasses = unstable_composeClasses(slots, getPagerUtilityClass, {});
125
155
  return {
126
156
  ...composedClasses
127
157
  };
128
158
  };
159
+ const CustomTablePagination = (props) => {
160
+ const {
161
+ count,
162
+ page,
163
+ rowsPerPage,
164
+ rowsPerPageOptions = [10, 25, 50, 100],
165
+ labelRowsPerPage,
166
+ classes,
167
+ onRowsPerPageChange,
168
+ onPageChange,
169
+ SelectProps,
170
+ labelDisplayedRows = defaultLabelDisplayedRows,
171
+ ActionsComponent
172
+ } = props;
173
+ const theme = useTheme();
174
+ function defaultLabelDisplayedRows({
175
+ from,
176
+ to,
177
+ count: count2
178
+ }) {
179
+ return `${from}\u2013${to} of ${count2 !== -1 ? count2 : `more than ${to}`}`;
180
+ }
181
+ const getLabelDisplayedRowsTo = () => {
182
+ if (count === -1) {
183
+ return (page + 1) * rowsPerPage;
184
+ }
185
+ return rowsPerPage === -1 ? count : Math.min(count, (page + 1) * rowsPerPage);
186
+ };
187
+ return /* @__PURE__ */ jsxs(Fragment, {
188
+ children: [rowsPerPageOptions?.length > 1 ? /* @__PURE__ */ jsxs("div", {
189
+ className: classes.labelRowsPerPageContainer,
190
+ children: [/* @__PURE__ */ jsx(Typography, {
191
+ variant: "body",
192
+ children: labelRowsPerPage
193
+ }), /* @__PURE__ */ jsx(Select, {
194
+ variant: "standard",
195
+ ...!SelectProps?.variant && {
196
+ input: /* @__PURE__ */ jsx(InputBase, {})
197
+ },
198
+ value: rowsPerPage,
199
+ onChange: onRowsPerPageChange,
200
+ className: classes.select,
201
+ MenuProps: {
202
+ className: classes.selectMenuPopover,
203
+ sx: {
204
+ ...theme.components?.M4LPagerMenuPopover?.styleOverrides
205
+ }
206
+ },
207
+ ...SelectProps,
208
+ children: rowsPerPageOptions.map((item, idx) => /* @__PURE__ */ jsx(MenuItem, {
209
+ className: classes.selectMenuItem,
210
+ value: item,
211
+ children: item
212
+ }, `${classes.selectMenuItem}-${idx}`))
213
+ })]
214
+ }) : null, /* @__PURE__ */ jsx(Typography, {
215
+ variant: "body",
216
+ className: classes.labelDisplayRows,
217
+ children: labelDisplayedRows({
218
+ from: count === 0 ? 0 : page * rowsPerPage + 1,
219
+ to: getLabelDisplayedRowsTo(),
220
+ count: count === -1 ? -1 : count,
221
+ page
222
+ })
223
+ }), /* @__PURE__ */ jsx(ActionsComponent, {
224
+ count,
225
+ page,
226
+ rowsPerPage,
227
+ onPageChange: () => onPageChange,
228
+ classes
229
+ })]
230
+ });
231
+ };
129
232
  function Pager(props) {
130
233
  const {
131
234
  totalRecords,
@@ -136,7 +239,6 @@ function Pager(props) {
136
239
  onRowsPerPageChange,
137
240
  labelRows = "Rows per page",
138
241
  labelOf = "Of",
139
- isSkeleton = "false",
140
242
  isDesktop
141
243
  } = props;
142
244
  const currentPage = useMemo(() => {
@@ -145,7 +247,7 @@ function Pager(props) {
145
247
  }
146
248
  return page;
147
249
  }, [page, rowsPerPage, totalRecords]);
148
- const handleChangeRowsPerPage = (event) => {
250
+ const handleChangeRowsPerPage = (event, _child) => {
149
251
  onRowsPerPageChange(parseInt(event.target.value, 10));
150
252
  onPageChange(0);
151
253
  };
@@ -155,12 +257,12 @@ function Pager(props) {
155
257
  const classes = pagerUtilityClasses();
156
258
  return /* @__PURE__ */ jsx(PagerRoot, {
157
259
  className: classes.root,
158
- children: !isSkeleton ? /* @__PURE__ */ jsx(TablePagination, {
159
- id: "TablePagination",
260
+ children: /* @__PURE__ */ jsx(CustomTablePagination, {
160
261
  rowsPerPageOptions,
161
- component: "div",
162
262
  count: totalRecords,
163
263
  rowsPerPage,
264
+ classes,
265
+ labelRowsPerPage: labelRows,
164
266
  page: currentPage,
165
267
  onPageChange: handleChangePage,
166
268
  onRowsPerPageChange: handleChangeRowsPerPage,
@@ -169,57 +271,7 @@ function Pager(props) {
169
271
  to,
170
272
  count
171
273
  }) => `${from}-${to} ${labelOf} ${count}` : () => ``,
172
- labelRowsPerPage: isDesktop ? labelRows : "",
173
274
  ActionsComponent: PagerActions
174
- }) : /* @__PURE__ */ jsxs("div", {
175
- className: classes.skeletonRoot,
176
- children: [/* @__PURE__ */ jsxs("div", {
177
- className: classes.skeletonRowsPerPage,
178
- children: [/* @__PURE__ */ jsx(Skeleton, {
179
- variant: "text",
180
- width: "40px",
181
- height: "16px"
182
- }), /* @__PURE__ */ jsx(Skeleton, {
183
- variant: "text",
184
- width: "20px",
185
- height: "16px"
186
- })]
187
- }), /* @__PURE__ */ jsx(Skeleton, {
188
- variant: "text",
189
- width: "50px",
190
- height: "16px"
191
- }), /* @__PURE__ */ jsxs("div", {
192
- className: classes.skeletonButtonContainer,
193
- children: [/* @__PURE__ */ jsx("div", {
194
- className: classes.skeletonIconButton,
195
- children: /* @__PURE__ */ jsx(Skeleton, {
196
- variant: "circular",
197
- width: 20,
198
- height: 20
199
- })
200
- }), /* @__PURE__ */ jsx("div", {
201
- className: classes.skeletonIconButton,
202
- children: /* @__PURE__ */ jsx(Skeleton, {
203
- variant: "circular",
204
- width: 20,
205
- height: 20
206
- })
207
- }), /* @__PURE__ */ jsx("div", {
208
- className: classes.skeletonIconButton,
209
- children: /* @__PURE__ */ jsx(Skeleton, {
210
- variant: "circular",
211
- width: 20,
212
- height: 20
213
- })
214
- }), /* @__PURE__ */ jsx("div", {
215
- className: classes.skeletonIconButton,
216
- children: /* @__PURE__ */ jsx(Skeleton, {
217
- variant: "circular",
218
- width: 20,
219
- height: 20
220
- })
221
- })]
222
- })]
223
275
  })
224
276
  });
225
277
  }
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { CustomTablePaginationProps } from './types';
3
+ export declare const CustomTablePagination: (props: CustomTablePaginationProps) => import("react").JSX.Element;
@@ -0,0 +1,12 @@
1
+ import { SelectChangeEvent, TablePaginationProps } from "@mui/material";
2
+ import { Classes } from "../../classes/types";
3
+ import { PagerActionsProps } from "../PagerActions/types";
4
+ import { ReactNode } from "react";
5
+ export declare type CustomTablePaginationProps = {
6
+ rowsPerPageOptions: number[];
7
+ onPageChange: (_event: unknown, newPage: number) => void;
8
+ labelRowsPerPage: string;
9
+ classes: Classes;
10
+ onRowsPerPageChange: (event: SelectChangeEvent<unknown>, child: ReactNode) => void;
11
+ ActionsComponent: React.ElementType<PagerActionsProps>;
12
+ } & Omit<TablePaginationProps, 'onPageChange' | 'onRowsPerPageChange' | 'classes' | 'ActionsComponent'>;
@@ -1,7 +1,9 @@
1
1
  /// <reference types="react" />
2
+ import { Classes } from "../../classes/types";
2
3
  export interface PagerActionsProps {
3
4
  count: number;
4
5
  page: number;
5
6
  rowsPerPage: number;
6
7
  onPageChange: (event: React.MouseEvent<HTMLButtonElement>, newPage: number) => void;
8
+ classes: Classes;
7
9
  }
@@ -4,7 +4,7 @@ import { styled } from "@mui/material/styles";
4
4
  import { unstable_composeClasses } from "@mui/base";
5
5
  import clsx from "clsx";
6
6
  import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
7
- import { g as getNameDataTestId } from "../../../vendor.fefd45a3.js";
7
+ import { g as getNameDataTestId } from "../../../vendor.88ed58a5.js";
8
8
  import { jsx } from "react/jsx-runtime";
9
9
  const TabRoot = styled("div")(({
10
10
  theme
@@ -1,23 +1,23 @@
1
1
  import "@mui/material";
2
2
  import "react";
3
3
  import "@m4l/core";
4
- import "../Icon/index.9fcd1476.js";
4
+ import "../Icon/index.2414ff25.js";
5
5
  import "clsx";
6
6
  import "react/jsx-runtime";
7
- import "./IconButton/index.12f1a3c3.js";
7
+ import "./IconButton/index.a318316e.js";
8
8
  import "@m4l/graphics";
9
- import "./Accordion/index.fa658639.js";
9
+ import "./Accordion/index.42cef1c7.js";
10
10
  import "./Typography/index.443590d6.js";
11
11
  import "./Avatar/index.75e6ed57.js";
12
12
  import "react-router-dom";
13
13
  import "@mui/material/Button";
14
- import "./Button/index.4288f9fc.js";
14
+ import "./Button/index.40af964e.js";
15
15
  import "./CheckBox.5f6c78b0.js";
16
16
  import "./Badge/index.cad260fe.js";
17
17
  import "../Image/index.c18ebf5a.js";
18
18
  import "@mui/lab";
19
- import "./MenuActions/index.43a2e1ae.js";
19
+ import "./MenuActions/index.f6bfdd40.js";
20
20
  import "./Popover/index.9f35d0eb.js";
21
- import "./Pager/index.82e89328.js";
22
- import "./Tab/index.f94d233e.js";
21
+ import "./Pager/index.da26e9d4.js";
22
+ import "./Tab/index.0d5f96e6.js";
23
23
  import "./Tooltip/index.5a795dcd.js";
@@ -1,5 +1,5 @@
1
1
  import { createContext, useState } from "react";
2
- import { M as ModalDialog } from "../../components/ModalDialog/index.62ffad3a.js";
2
+ import { M as ModalDialog } from "../../components/ModalDialog/index.4dc1c8ed.js";
3
3
  import { jsxs, jsx } from "react/jsx-runtime";
4
4
  const ModalContext = createContext(null);
5
5
  function ModalProvider({
@@ -2,7 +2,7 @@ import { useEffect } from "react";
2
2
  import { useForm, FormProvider } from "react-hook-form";
3
3
  import { yupResolver } from "@hookform/resolvers/yup";
4
4
  import { styled } from "@mui/material/styles";
5
- import { S as ScrollBar } from "../../components/ScrollBar/index.bbe48f4d.js";
5
+ import { S as ScrollBar } from "../../components/ScrollBar/index.d4410cb5.js";
6
6
  import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
7
7
  import { unstable_composeClasses } from "@mui/base";
8
8
  import { jsx } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
1
  import { useContext } from "react";
2
- import { M as ModalContext } from "../../contexts/ModalContext/index.66e060a3.js";
2
+ import { M as ModalContext } from "../../contexts/ModalContext/index.efc1135a.js";
3
3
  function useModal() {
4
4
  const context = useContext(ModalContext);
5
5
  if (!context)
package/index.js CHANGED
@@ -2,104 +2,105 @@ import { v } from "./components/animate/variants/fade.b561c0fc.js";
2
2
  import { v as v2 } from "./components/animate/variants/bounce.784aaaaa.js";
3
3
  import { v as v3 } from "./components/animate/variants/container.11f82b76.js";
4
4
  import { v as v4, a, b } from "./components/animate/variants/transition.bd46b9ce.js";
5
- import { I } from "./components/animate/index.1f8eadd4.js";
5
+ import { A, I } from "./components/animate/index.4e9774a6.js";
6
6
  import { M } from "./components/animate/MotionContainer/index.8d9f9d80.js";
7
7
  import { M as M2 } from "./components/animate/MotionLazyContainer/index.572dd012.js";
8
8
  import { L } from "./components/animate/LoadingScreen/index.1d0c4307.js";
9
9
  import { P } from "./components/animate/PropagateLoader/index.7fab43c8.js";
10
- import { A } from "./components/areas/components/AreasAdmin/index.5562f65f.js";
11
- import { A as A2 } from "./components/areas/components/AreasViewer/index.1004b7a0.js";
12
- import { A as A3, a as a2 } from "./components/areas/contexts/AreasContext/index.4bf1eabe.js";
10
+ import { A as A2 } from "./components/areas/components/AreasAdmin/index.f011d49d.js";
11
+ import { A as A3 } from "./components/areas/components/AreasViewer/index.51a52736.js";
12
+ import { A as A4, a as a2 } from "./components/areas/contexts/AreasContext/index.9820bc7f.js";
13
13
  import { a as a3, W } from "./components/areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
14
14
  import { u } from "./components/areas/hooks/useDynamicMFParameters/index.e52c5392.js";
15
15
  import { u as u2 } from "./components/areas/hooks/useWindowToolsMF/index.b7afaf88.js";
16
- import { A as A4, D, L as L2, a as a4, g } from "./components/areas/dictionary.afb7e3d9.js";
17
- import { R, g as g2 } from "./components/hook-form/RHFAutocomplete/index.9a9d7c73.js";
18
- import { R as R2, g as g3 } from "./components/hook-form/RHFAutocompleteAsync/index.172df421.js";
19
- import { R as R3 } from "./components/hook-form/RHFCheckbox/index.47f0157b.js";
20
- import { R as R4 } from "./components/hook-form/RHFDateTime/index.f46e987f.js";
16
+ import { A as A5, D, L as L2, a as a4, g } from "./components/areas/dictionary.afb7e3d9.js";
17
+ import { R, g as g2 } from "./components/hook-form/RHFAutocomplete/index.6edb51b1.js";
18
+ import { R as R2, g as g3 } from "./components/hook-form/RHFAutocompleteAsync/index.c2ca5c66.js";
19
+ import { R as R3 } from "./components/hook-form/RHFCheckbox/index.c6c3933b.js";
20
+ import { R as R4 } from "./components/hook-form/RHFDateTime/index.3add0fa4.js";
21
21
  import { R as R5 } from "./components/hook-form/RHFMultiCheckbox/index.2680b3b6.js";
22
22
  import { R as R6 } from "./components/hook-form/RHFSelect/index.b6ca8bb2.js";
23
- import { b as b2, c, a as a5, R as R7, d } from "./components/hook-form/RHFTextField/index.253620eb.js";
23
+ import { b as b2, c, a as a5, R as R7, d } from "./components/hook-form/RHFTextField/index.20daa95e.js";
24
24
  import { R as R8 } from "./components/hook-form/RHFRadioGroup/index.b3335e13.js";
25
- import { R as R9 } from "./components/hook-form/RHFPeriod/index.2e07ba7b.js";
26
- import { P as P2, g as g4 } from "./components/Period/index.7d44c0e5.js";
27
- import { R as R10 } from "./components/hook-form/RHFUpload/index.9f00121f.js";
28
- import { A as A5 } from "./components/mui_extended/Accordion/index.fa658639.js";
29
- import { A as A6 } from "./components/mui_extended/Avatar/index.75e6ed57.js";
25
+ import { R as R9 } from "./components/hook-form/RHFPeriod/index.72edef4d.js";
26
+ import { P as P2, g as g4 } from "./components/Period/index.4fd9df2a.js";
27
+ import { R as R10 } from "./components/hook-form/RHFUpload/index.cc5adc15.js";
28
+ import { A as A6 } from "./components/mui_extended/Accordion/index.42cef1c7.js";
29
+ import { A as A7 } from "./components/mui_extended/Avatar/index.75e6ed57.js";
30
30
  import { B } from "./components/mui_extended/BoxIcon/index.e638ecc8.js";
31
31
  import { B as B2 } from "./components/mui_extended/Breadcrumbs/index.5e37d903.js";
32
- import { B as B3, I as I2, L as L3 } from "./components/mui_extended/Button/index.4288f9fc.js";
32
+ import { B as B3, I as I2, L as L3 } from "./components/mui_extended/Button/index.40af964e.js";
33
33
  import { C } from "./components/mui_extended/CheckBox.5f6c78b0.js";
34
34
  import { C as C2 } from "./components/mui_extended/CircularProgress/index.ad569afd.js";
35
35
  import { B as B4 } from "./components/mui_extended/Badge/index.cad260fe.js";
36
- import { I as I3 } from "./components/mui_extended/IconButton/index.12f1a3c3.js";
36
+ import { I as I3 } from "./components/mui_extended/IconButton/index.a318316e.js";
37
37
  import { L as L4 } from "./components/mui_extended/LinearProgress/index.c92b9ba9.js";
38
38
  import { L as L5 } from "./components/mui_extended/LinkWithRoute/index.16436ab8.js";
39
- import { M as M3 } from "./components/mui_extended/MenuActions/index.43a2e1ae.js";
39
+ import { M as M3 } from "./components/mui_extended/MenuActions/index.f6bfdd40.js";
40
40
  import { P as P3 } from "./components/mui_extended/Popover/index.9f35d0eb.js";
41
- import { P as P4, g as g5 } from "./components/mui_extended/Pager/index.82e89328.js";
42
- import { T } from "./components/mui_extended/Tab/index.f94d233e.js";
41
+ import { P as P4, g as g5 } from "./components/mui_extended/Pager/index.da26e9d4.js";
42
+ import { T } from "./components/mui_extended/Tab/index.0d5f96e6.js";
43
43
  import { T as T2 } from "./components/mui_extended/Tooltip/index.5a795dcd.js";
44
44
  import { T as T3 } from "./components/mui_extended/Typography/index.443590d6.js";
45
- import { B as B5 } from "./components/formatters/BooleanFormatter/index.e8de8e4c.js";
45
+ import { B as B5 } from "./components/formatters/BooleanFormatter/index.32de0803.js";
46
46
  import { D as D2, g as g6 } from "./components/formatters/DateFormatter/index.578a9f53.js";
47
47
  import { U, g as g7 } from "./components/formatters/UncertaintyFormatter/index.08e1b79f.js";
48
48
  import { P as P5, g as g8 } from "./components/formatters/PointsFormatter/index.80a4e414.js";
49
- import { C as C3, F, P as P6, g as g9, a as a6, b as b3 } from "./components/formatters/index.67aeb049.js";
49
+ import { C as C3, F, P as P6, g as g9, a as a6, b as b3 } from "./components/formatters/index.d16d2331.js";
50
50
  import { P as P7, g as g10 } from "./components/formatters/PriceFormatter/index.83cbe7be.js";
51
- import { D as D3, e, h, f, c as c2, g as g11 } from "./components/DataGrid/index.820e0043.js";
51
+ import { D as D3, e, h, f, c as c2, g as g11 } from "./components/DataGrid/index.03ad08af.js";
52
52
  import { c as c3 } from "./components/DataGrid/formatters/columnUncertaintyFormatter/index.cae2057a.js";
53
53
  import { c as c4 } from "./components/DataGrid/formatters/columnPointsFormatter/index.5e645334.js";
54
54
  import { c as c5 } from "./components/DataGrid/formatters/columnNestedValueFormatter/index.f68ef4e1.js";
55
55
  import { c as c6 } from "./components/DataGrid/formatters/columnPriceFormatter/index.e612fda3.js";
56
56
  import { N, T as T4 } from "./components/DataGrid/subcomponents/editors/TextEditor/index.91380a55.js";
57
- import { D as D4, g as g12 } from "./components/DynamicFilter/index.2b80238b.js";
58
- import { H, e as e2 } from "./components/HelperText/index.2c408d8a.js";
59
- import { A as A7, d as d2, g as g13 } from "./components/CommonActions/components/Actions/index.265d99c8.js";
60
- import { A as A8 } from "./components/CommonActions/components/ActionCancel/index.6928b5ae.js";
61
- import { A as A9 } from "./components/CommonActions/components/ActionIntro/index.8b1b3afc.js";
62
- import { A as A10 } from "./components/CommonActions/components/ActionFormCancel/index.28d32483.js";
63
- import { A as A11 } from "./components/CommonActions/components/ActionFormIntro/index.f044e93c.js";
57
+ import { D as D4, g as g12 } from "./components/DynamicFilter/index.9b72180b.js";
58
+ import { H, e as e2 } from "./components/HelperText/index.6c3adb40.js";
59
+ import { A as A8, d as d2, g as g13 } from "./components/CommonActions/components/Actions/index.5abb6ac4.js";
60
+ import { A as A9 } from "./components/CommonActions/components/ActionCancel/index.6cf96d04.js";
61
+ import { A as A10 } from "./components/CommonActions/components/ActionIntro/index.856df8ef.js";
62
+ import { A as A11 } from "./components/CommonActions/components/ActionFormCancel/index.a0335cbf.js";
63
+ import { A as A12 } from "./components/CommonActions/components/ActionFormIntro/index.273b1b9f.js";
64
64
  import { D as D5 } from "./components/DraggableWindow/index.c702d3f2.js";
65
65
  import { G, w, z } from "./components/GridLayout/index.76bccc4f.js";
66
66
  import { R as R11, a as a7, b as b4, c as c7 } from "./components/GridLayout/subcomponents/Responsive/index.e589d8bf.js";
67
67
  import { W as W2 } from "./components/GridLayout/subcomponents/WidthProvider/index.50dafd87.js";
68
- import { I as I4 } from "./components/Icon/index.9fcd1476.js";
69
- import { L as L6 } from "./components/LanguagePopover/index.4596bf54.js";
68
+ import { I as I4 } from "./components/Icon/index.2414ff25.js";
69
+ import { L as L6 } from "./components/LanguagePopover/index.66e11634.js";
70
70
  import { L as L7 } from "./components/LinearProgressIndeterminate/index.60dabc06.js";
71
71
  import { I as I5 } from "./components/Image/index.c18ebf5a.js";
72
72
  import { L as L8 } from "./components/Loadable/index.e994fc3e.js";
73
- import { M as M4, d as d3, g as g14 } from "./components/ModalDialog/index.62ffad3a.js";
74
- import { W as W3 } from "./components/modal/WindowConfirm.1a8c8c21.js";
75
- import { W as W4 } from "./components/modal/WindowBase.37b59511.js";
76
- import { N as N2 } from "./components/NavLink/index.68392bd4.js";
73
+ import { M as M4, d as d3, g as g14 } from "./components/ModalDialog/index.4dc1c8ed.js";
74
+ import { W as W3 } from "./components/modal/WindowConfirm.f148e495.js";
75
+ import { W as W4 } from "./components/modal/WindowBase.4016485b.js";
76
+ import { N as N2 } from "./components/NavLink/index.5859e048.js";
77
77
  import { N as N3, d as d4, g as g15 } from "./components/NoItemSelected/index.23dfc897.js";
78
- import { O, d as d5, g as g16 } from "./components/ObjectLogs/index.665e043d.js";
79
- import { P as P8 } from "./components/PaperForm/index.ba38a0bd.js";
78
+ import { O, d as d5, g as g16 } from "./components/ObjectLogs/index.51de2deb.js";
79
+ import { P as P8 } from "./components/PaperForm/index.f931dc02.js";
80
80
  import { H as H2 } from "./components/Page/index.4237c241.js";
81
- import { P as P9 } from "./components/PropertyValue/index.a66988e1.js";
81
+ import { P as P9 } from "./components/PropertyValue/index.1b09f426.js";
82
82
  import { R as R12 } from "./components/Resizeable/index.9a9c79a4.js";
83
- import { S } from "./components/ScrollBar/index.bbe48f4d.js";
83
+ import { S } from "./components/ScrollBar/index.d4410cb5.js";
84
84
  import { S as S2 } from "./components/ScrollToTop/index.e06f98f6.js";
85
85
  import { S as S3 } from "./components/SplitLayout/index.9ef430f6.js";
86
- import { S as S4 } from "./components/SideBar/index.2f497e6c.js";
87
- import { A as A12 } from "./components/AppBar/index.6bdee075.js";
88
- import { A as A13 } from "./components/AccountPopover/index.fea740a5.js";
86
+ import { S as S4 } from "./components/SideBar/index.72564ef2.js";
87
+ import { A as A13 } from "./components/AppBar/index.fadcefc6.js";
88
+ import { A as A14 } from "./components/AccountPopover/index.0ba26726.js";
89
89
  import { a as a8, D as D6, M as M5 } from "./components/areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
90
- import { M as M6, a as a9 } from "./contexts/ModalContext/index.66e060a3.js";
91
- import { R as R13 } from "./contexts/RHFormContext/index.fe175bab.js";
90
+ import { M as M6, a as a9 } from "./contexts/ModalContext/index.efc1135a.js";
91
+ import { R as R13 } from "./contexts/RHFormContext/index.b9266262.js";
92
92
  import { u as u3 } from "./hooks/useFormAddEdit/index.15de3ba8.js";
93
- import { u as u4 } from "./hooks/useModal/index.61968b84.js";
93
+ import { u as u4 } from "./hooks/useModal/index.9b0cc3fe.js";
94
94
  import { L as L9 } from "./assets/Logo/index.228dcb5a.js";
95
- import "framer-motion";
96
95
  import "react";
97
- import "@mui/material";
98
96
  import "react/jsx-runtime";
97
+ import "framer-motion";
98
+ import "@mui/material";
99
99
  import "@mui/material/styles";
100
100
  import "react-router-dom";
101
+ import "simplebar-react";
101
102
  import "./react-spinners.342a6578.js";
102
- import "./components/areas/hooks/useAreas/index.c77a2416.js";
103
+ import "./components/areas/hooks/useAreas/index.b403f383.js";
103
104
  import "zustand";
104
105
  import "@m4l/core";
105
106
  import "yup";
@@ -117,7 +118,7 @@ import "@mui/x-date-pickers";
117
118
  import "./react-draggable.7abb5d0a.js";
118
119
  import "prop-types";
119
120
  import "react-dom";
120
- import "./components/modal/index.c8e23b8d.js";
121
+ import "./components/modal/index.e9fece72.js";
121
122
  import "zustand/shallow";
122
123
  import "lodash/isString";
123
124
  import "react-dropzone";
@@ -126,7 +127,7 @@ import "./components/GridLayout/subcomponents/Griditem/index.01fc14c3.js";
126
127
  import "./node_modules.d73a220d.js";
127
128
  import "react-dnd";
128
129
  import "react-dnd-html5-backend";
129
- import "./components/DataGrid/subcomponents/Actions/index.43325b59.js";
130
+ import "./components/DataGrid/subcomponents/Actions/index.db54ec98.js";
130
131
  import "./react-data-grid.d46d625e.js";
131
132
  import "lodash";
132
133
  import "./react-json-view.57125fcf.js";
@@ -135,27 +136,27 @@ import "./react-splitter-layout.8b1655c8.js";
135
136
  import "zustand/middleware";
136
137
  import "zustand/middleware/immer";
137
138
  import "./test/constants_no_mock.86c553a9.js";
138
- import "./vendor.fefd45a3.js";
139
+ import "./vendor.88ed58a5.js";
139
140
  import "./components/WrapperComponent/index.5e872594.js";
140
141
  import "react-helmet-async";
141
- import "simplebar-react";
142
142
  import "simplebar/dist/simplebar.min.css?used";
143
143
  import "@hookform/resolvers/yup";
144
144
  export {
145
- A4 as AREAS_DICTIONARY_ID,
146
- A5 as Accordion,
147
- A13 as AccountPopover,
148
- A8 as ActionCancel,
149
- A10 as ActionFormCancel,
150
- A11 as ActionFormIntro,
151
- A9 as ActionIntro,
152
- A7 as Actions,
153
- A12 as AppBar,
154
- A as AreasAdmin,
155
- A3 as AreasContext,
145
+ A5 as AREAS_DICTIONARY_ID,
146
+ A6 as Accordion,
147
+ A14 as AccountPopover,
148
+ A9 as ActionCancel,
149
+ A11 as ActionFormCancel,
150
+ A12 as ActionFormIntro,
151
+ A10 as ActionIntro,
152
+ A8 as Actions,
153
+ A as AnimatedScroll,
154
+ A13 as AppBar,
155
+ A2 as AreasAdmin,
156
+ A4 as AreasContext,
156
157
  a2 as AreasProvider,
157
- A2 as AreasViewer,
158
- A6 as Avatar,
158
+ A3 as AreasViewer,
159
+ A7 as Avatar,
159
160
  B4 as Badge,
160
161
  B5 as BooleanFormatter,
161
162
  B as BoxIcon,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/components",
3
- "version": "0.1.81",
3
+ "version": "0.1.82",
4
4
  "license": "UNLICENSED",
5
5
  "dependencies": {
6
6
  "@emotion/react": "^11.9.0",