@m4l/components 0.1.83 → 0.1.85
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 +25 -4
- package/components/AccountPopover/classes/index.d.ts +4 -0
- package/components/AccountPopover/classes/types.d.ts +4 -0
- package/components/AccountPopover/dictionary.d.ts +1 -0
- package/components/AccountPopover/{index.2677fe77.js → index.35c29a55.js} +86 -36
- package/components/AccountPopover/index.d.ts +1 -0
- package/components/AccountPopover/types.d.ts +2 -0
- package/components/AppBar/dictionary.d.ts +1 -0
- package/components/AppBar/{index.ad2a6f0e.js → index.291da9fd.js} +19 -11
- package/components/AppBar/index.d.ts +1 -0
- package/components/CommonActions/components/ActionCancel/{index.b2fc495d.js → index.67b91376.js} +1 -1
- package/components/CommonActions/components/ActionFormCancel/{index.60d8963e.js → index.d4503410.js} +17 -16
- package/components/CommonActions/components/ActionFormIntro/{index.fde4ea51.js → index.01ed67de.js} +1 -1
- package/components/CommonActions/components/ActionIntro/{index.724d8e17.js → index.53e7fe2b.js} +1 -1
- package/components/CommonActions/components/Actions/{index.23a2d6ae.js → index.c91c27f9.js} +15 -14
- package/components/DataGrid/{index.d5d0d62f.js → index.37e14e83.js} +14 -12
- package/components/DataGrid/subcomponents/Actions/{index.201394f5.js → index.155c63af.js} +47 -31
- package/components/DynamicFilter/{index.7d134537.js → index.a8c2609c.js} +29 -28
- package/components/GridLayout/constants.d.ts +1 -1
- package/components/GridLayout/{index.70085b00.js → index.2383aaf9.js} +86 -23
- package/components/GridLayout/index.d.ts +1 -1
- package/components/GridLayout/subcomponents/Griditem/{index.c09681ff.js → index.58168132.js} +1 -6
- package/components/GridLayout/subcomponents/Responsive/{index.eb04fd5e.js → index.a6642437.js} +1 -2
- package/components/GridLayout/types.d.ts +2 -2
- package/components/HelperText/{index.28e9105d.js → index.8b5911d1.js} +9 -8
- package/components/Icon/{index.2414ff25.js → index.c3a579e7.js} +1 -1
- package/components/LanguagePopover/{index.065e0296.js → index.7681b08e.js} +9 -8
- package/components/ModalDialog/{index.fb148f76.js → index.b85ee3cb.js} +4 -6
- package/components/NavLink/{index.2ef07c44.js → index.bb879650.js} +9 -8
- package/components/NoItemSelected/classes/constants.d.ts +1 -0
- package/components/NoItemSelected/classes/index.d.ts +6 -0
- package/components/NoItemSelected/classes/types.d.ts +6 -0
- package/components/NoItemSelected/{index.23dfc897.js → index.a2807715.js} +46 -31
- package/components/NoItemSelected/index.d.ts +2 -1
- package/components/NoItemSelected/types.d.ts +4 -0
- package/components/ObjectLogs/{index.5d74dfe0.js → index.2ed38a84.js} +22 -19
- package/components/PaperForm/{index.f931dc02.js → index.989377a5.js} +1 -1
- package/components/Period/{index.0e6512b2.js → index.061c9b2f.js} +16 -15
- package/components/PropertyValue/{index.a67c9916.js → index.ac46f441.js} +1 -1
- package/components/ScrollBar/{index.d4410cb5.js → index.1247c1c5.js} +38 -9
- package/components/SideBar/classes/index.d.ts +0 -1
- package/components/SideBar/classes/types.d.ts +0 -1
- package/components/SideBar/{index.72564ef2.js → index.e0587639.js} +131 -75
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/type.d.ts +5 -0
- package/components/areas/components/AreasAdmin/classes/index.d.ts +1 -1
- package/components/areas/components/AreasAdmin/classes/types.d.ts +3 -0
- package/components/areas/components/AreasAdmin/index.d.ts +2 -2
- package/components/areas/components/AreasAdmin/index.f505897a.js +767 -0
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/subcomponents/ChipActionsMobile/types.d.ts +2 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/types.d.ts +2 -0
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.d.ts +6 -0
- package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/classes/types.d.ts +1 -0
- package/components/areas/components/AreasViewer/{index.9ed7dfd7.js → index.cacec884.js} +77 -52
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/index.d.ts +2 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/subcomponents/ResizeHandle/index.d.ts +4 -0
- package/components/areas/components/index.6d5dfeec.js +31 -0
- package/components/areas/contexts/AreasContext/helper.d.ts +10 -3
- package/components/areas/contexts/AreasContext/{index.36fe6953.js → index.6f56b1da.js} +103 -80
- package/components/areas/contexts/AreasContext/types.d.ts +28 -8
- package/components/areas/contexts/{index.68c53fc9.js → index.999e8b1e.js} +1 -1
- package/components/areas/hooks/useAreas/{index.a4c03e23.js → index.4baec91c.js} +1 -1
- package/components/areas/index.3088f99e.js +54 -0
- package/components/areas/utils/useOnClickOutside/index.d.ts +4 -0
- package/components/formatters/BooleanFormatter/{index.32de0803.js → index.e7f0b76a.js} +1 -1
- package/components/formatters/{index.d16d2331.js → index.d911949d.js} +2 -2
- package/components/hook-form/RHFAutocomplete/{index.42df8eb4.js → index.aca6984f.js} +11 -9
- package/components/hook-form/RHFAutocompleteAsync/{index.0441524c.js → index.8511bcf8.js} +1 -1
- package/components/hook-form/RHFCheckbox/{index.c66147f7.js → index.0f45e6b0.js} +10 -9
- package/components/hook-form/RHFDateTime/{index.4698ca29.js → index.07412ef0.js} +10 -9
- package/components/hook-form/RHFPeriod/{index.f653934b.js → index.15b8f11e.js} +2 -2
- package/components/hook-form/RHFTextField/{index.1fa07688.js → index.94c8c59b.js} +3 -3
- package/components/hook-form/RHFUpload/{index.93c2dcb5.js → index.7ef1e124.js} +10 -9
- package/components/modal/{WindowBase.92ce9b8f.js → WindowBase.d485315d.js} +17 -12
- package/components/modal/{WindowConfirm.4c3d2cd7.js → WindowConfirm.3d9cd6e1.js} +18 -17
- package/components/modal/{index.1bd35bd5.js → index.c7e4beba.js} +15 -14
- package/components/mui_extended/Accordion/{index.5111314b.js → index.854f4c90.js} +3 -3
- package/components/mui_extended/Badge/classes/constants.d.ts +1 -1
- package/components/mui_extended/Badge/{index.cad260fe.js → index.8c2b8b66.js} +1 -1
- package/components/mui_extended/CheckBox/CheckBox.d.ts +1 -1
- package/components/mui_extended/{CheckBox.5f6c78b0.js → CheckBox.38abccd8.js} +5 -3
- package/components/mui_extended/IconButton/{index.a318316e.js → index.be111a34.js} +2 -12
- package/components/mui_extended/MenuActions/{index.f6bfdd40.js → index.b16e84c1.js} +26 -8
- package/components/mui_extended/MenuActions/types.d.ts +3 -0
- package/components/mui_extended/Pager/{index.da26e9d4.js → index.5b77fa4c.js} +84 -82
- package/components/mui_extended/Pager/subcomponents/CustomTablePagination/index.d.ts +5 -0
- package/components/mui_extended/Pager/subcomponents/CustomTablePagination/types.d.ts +1 -4
- package/components/mui_extended/Stack/Stack.d.ts +3 -0
- package/components/mui_extended/Stack/classes/constants.d.ts +1 -0
- package/components/mui_extended/Stack/classes/index.d.ts +6 -0
- package/components/mui_extended/Stack/classes/types.d.ts +6 -0
- package/components/mui_extended/Stack/index.0e53197c.js +39 -0
- package/components/mui_extended/Stack/index.d.ts +2 -0
- package/components/mui_extended/Stack/types.d.ts +2 -0
- package/components/mui_extended/Tab/{index.0989d15d.js → index.c1dc7bbf.js} +42 -9
- package/components/mui_extended/Tabs/Tabs.d.ts +3 -0
- package/components/mui_extended/Tabs/classes/constants.d.ts +1 -0
- package/components/mui_extended/Tabs/classes/index.d.ts +6 -0
- package/components/mui_extended/Tabs/classes/types.d.ts +6 -0
- package/components/mui_extended/Tabs/index.d.ts +1 -0
- package/components/mui_extended/index.d.ts +2 -0
- package/components/mui_extended/{index.813723c5.js → index.d1ee9a6a.js} +9 -8
- package/contexts/ModalContext/{index.577bf36b.js → index.1ea79d7e.js} +1 -1
- package/contexts/RHFormContext/{index.b9266262.js → index.e019f87d.js} +1 -1
- package/hooks/useModal/{index.7a07c208.js → index.c906706c.js} +1 -1
- package/index.js +81 -75
- package/package.json +1 -1
- package/{vendor.5365cc7e.js → vendor.f27b86c9.js} +51 -51
- package/components/GridLayout/subcomponents/SizeProvider/index.9c5e80b2.js +0 -65
- package/components/areas/components/AreasAdmin/index.7bfec13f.js +0 -487
- package/components/areas/components/index.654b08aa.js +0 -30
- package/components/areas/index.ec4f088c.js +0 -32
- /package/components/GridLayout/subcomponents/{SizeProvider → WidthProvider}/index.d.ts +0 -0
- /package/components/areas/components/AreasAdmin/subcomponents/{AreaChipMobile/subcomponents/PanelWindowPopUp → PanelWindowPopUp}/index.d.ts +0 -0
- /package/components/areas/components/AreasAdmin/subcomponents/{AreaChipMobile/subcomponents/PanelWindowPopUp → PanelWindowPopUp}/types.d.ts +0 -0
|
@@ -1,47 +1,48 @@
|
|
|
1
|
-
import { M as MenuActions } from "../../../mui_extended/MenuActions/index.
|
|
2
|
-
import { u as useDataGrid, a as useFilters, d as dataGridClasses, b as dictionary } from "../../index.
|
|
1
|
+
import { M as MenuActions } from "../../../mui_extended/MenuActions/index.b16e84c1.js";
|
|
2
|
+
import { u as useDataGrid, a as useFilters, d as dataGridClasses, D as DataGridRoot, b as dictionary } from "../../index.37e14e83.js";
|
|
3
3
|
import { useTheme, Checkbox, Skeleton } from "@mui/material";
|
|
4
4
|
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
5
|
-
import { P as Pager } from "../../../mui_extended/Pager/index.
|
|
6
|
-
import { I as IconButton } from "../../../mui_extended/IconButton/index.
|
|
5
|
+
import { P as Pager } from "../../../mui_extended/Pager/index.5b77fa4c.js";
|
|
6
|
+
import { I as IconButton } from "../../../mui_extended/IconButton/index.be111a34.js";
|
|
7
7
|
import { useEnvironment, useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
8
8
|
import { forwardRef, useRef, useState, useImperativeHandle, useMemo, useEffect, useCallback } from "react";
|
|
9
9
|
import { D as DataGrid$1 } from "../../../../react-data-grid.d46d625e.js";
|
|
10
10
|
import { styled } from "@mui/material/styles";
|
|
11
|
-
import { u as useModal } from "../../../../hooks/useModal/index.
|
|
12
|
-
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.
|
|
13
|
-
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.
|
|
11
|
+
import { u as useModal } from "../../../../hooks/useModal/index.c906706c.js";
|
|
12
|
+
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.67b91376.js";
|
|
13
|
+
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.53e7fe2b.js";
|
|
14
14
|
import "../../../../react-draggable.7abb5d0a.js";
|
|
15
15
|
import "../../../Resizeable/index.9a9c79a4.js";
|
|
16
16
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
17
|
-
import "../../../Icon/index.
|
|
17
|
+
import "../../../Icon/index.c3a579e7.js";
|
|
18
18
|
import "clsx";
|
|
19
|
-
import "../../../modal/index.
|
|
20
|
-
import { A as Actions$1 } from "../../../CommonActions/components/Actions/index.
|
|
19
|
+
import "../../../modal/index.c7e4beba.js";
|
|
20
|
+
import { A as Actions$1 } from "../../../CommonActions/components/Actions/index.c91c27f9.js";
|
|
21
21
|
import "react-hook-form";
|
|
22
22
|
import "@mui/material/Button";
|
|
23
23
|
import "../../../mui_extended/Button/index.40af964e.js";
|
|
24
24
|
import "zustand";
|
|
25
|
-
import "../../../areas/contexts/AreasContext/index.
|
|
26
|
-
import "../../../areas/components/AreasAdmin/index.
|
|
25
|
+
import "../../../areas/contexts/AreasContext/index.6f56b1da.js";
|
|
26
|
+
import "../../../areas/components/AreasAdmin/index.f505897a.js";
|
|
27
27
|
import "zustand/shallow";
|
|
28
|
-
import "../../../ScrollBar/index.
|
|
29
|
-
import "../../../mui_extended/Accordion/index.
|
|
28
|
+
import "../../../ScrollBar/index.1247c1c5.js";
|
|
29
|
+
import "../../../mui_extended/Accordion/index.854f4c90.js";
|
|
30
30
|
import "../../../mui_extended/Typography/index.443590d6.js";
|
|
31
31
|
import "../../../mui_extended/Avatar/index.75e6ed57.js";
|
|
32
32
|
import "react-router-dom";
|
|
33
|
-
import "../../../mui_extended/CheckBox.
|
|
34
|
-
import "../../../mui_extended/Badge/index.
|
|
33
|
+
import "../../../mui_extended/CheckBox.38abccd8.js";
|
|
34
|
+
import "../../../mui_extended/Badge/index.8c2b8b66.js";
|
|
35
35
|
import "../../../Image/index.c18ebf5a.js";
|
|
36
36
|
import "@mui/lab";
|
|
37
37
|
import "../../../mui_extended/Popover/index.9f35d0eb.js";
|
|
38
|
-
import "../../../mui_extended/
|
|
38
|
+
import "../../../mui_extended/Stack/index.0e53197c.js";
|
|
39
|
+
import "../../../mui_extended/Tab/index.c1dc7bbf.js";
|
|
39
40
|
import "../../../mui_extended/Tooltip/index.5a795dcd.js";
|
|
40
|
-
import "../../../areas/components/AreasViewer/index.
|
|
41
|
+
import "../../../areas/components/AreasViewer/index.cacec884.js";
|
|
41
42
|
import "../../../LinearProgressIndeterminate/index.60dabc06.js";
|
|
42
43
|
import "../../../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
43
44
|
import "../../../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
44
|
-
import { W as WindowBase } from "../../../modal/WindowBase.
|
|
45
|
+
import { W as WindowBase } from "../../../modal/WindowBase.d485315d.js";
|
|
45
46
|
const ACTIONS_COLUMN_KEY = "actions-row";
|
|
46
47
|
function ActionsFormatter(props) {
|
|
47
48
|
const {
|
|
@@ -376,41 +377,42 @@ const ColumnsConfig = forwardRef((props, ref) => {
|
|
|
376
377
|
}), /* @__PURE__ */ jsxs(ColumnActions, {
|
|
377
378
|
className: classes.columnsConfigActions,
|
|
378
379
|
children: [/* @__PURE__ */ jsx(IconButton, {
|
|
379
|
-
|
|
380
|
+
tooltip: getLabel("data_grid.settings_move_first"),
|
|
380
381
|
onClick: handleMoveFirst,
|
|
381
382
|
"aria-label": "move first place",
|
|
382
383
|
disabled: rowSelectedIndex < 1,
|
|
383
384
|
src: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/move_first_place.svg`
|
|
384
385
|
}), /* @__PURE__ */ jsx(IconButton, {
|
|
386
|
+
tooltip: getLabel("data_grid.settings_move_up"),
|
|
385
387
|
dictionaryTooltipId: "data_grid.settings_move_up",
|
|
386
388
|
onClick: () => handleMoveUpDownd(-1),
|
|
387
389
|
"aria-label": "move up place",
|
|
388
390
|
disabled: rowSelectedIndex < 1,
|
|
389
391
|
src: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/move_up_place.svg`
|
|
390
392
|
}), /* @__PURE__ */ jsx(IconButton, {
|
|
391
|
-
|
|
393
|
+
tooltip: getLabel("data_grid.settings_move_last"),
|
|
392
394
|
onClick: handleMoveLast,
|
|
393
395
|
"aria-label": "move last place",
|
|
394
396
|
disabled: !!(rowSelectedIndex === rows.length - 1 || rowSelectedIndex === -1),
|
|
395
397
|
src: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/move_last_place.svg`
|
|
396
398
|
}), /* @__PURE__ */ jsx(IconButton, {
|
|
397
|
-
|
|
399
|
+
tooltip: getLabel("data_grid.settings_move_down"),
|
|
398
400
|
onClick: () => handleMoveUpDownd(1),
|
|
399
401
|
"aria-label": "move down place",
|
|
400
402
|
disabled: !!(rowSelectedIndex === rows.length - 1 || rowSelectedIndex === -1),
|
|
401
403
|
src: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/move_down_place.svg`
|
|
402
404
|
}), /* @__PURE__ */ jsx(IconButton, {
|
|
403
|
-
|
|
405
|
+
tooltip: getLabel("data_grid.settings_visible_all"),
|
|
404
406
|
onClick: checkAll,
|
|
405
407
|
"aria-label": "check visible all",
|
|
406
408
|
src: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/check_all.svg`
|
|
407
409
|
}), /* @__PURE__ */ jsx(IconButton, {
|
|
408
|
-
|
|
410
|
+
tooltip: getLabel("data_grid.settings_no_visible_all"),
|
|
409
411
|
onClick: unCheckAll,
|
|
410
412
|
"aria-label": "un check all",
|
|
411
413
|
src: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/uncheck_all.svg`
|
|
412
414
|
}), /* @__PURE__ */ jsx(IconButton, {
|
|
413
|
-
|
|
415
|
+
tooltip: getLabel("data_grid.settings_restore"),
|
|
414
416
|
onClick: restoreAll,
|
|
415
417
|
"aria-label": "Restore columns",
|
|
416
418
|
src: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/restore_columns.svg`
|
|
@@ -435,6 +437,7 @@ function Settings() {
|
|
|
435
437
|
host_static_assets,
|
|
436
438
|
environment_assets
|
|
437
439
|
} = useEnvironment();
|
|
440
|
+
const isDesktop = useResponsiveDesktop();
|
|
438
441
|
const {
|
|
439
442
|
classes
|
|
440
443
|
} = useDataGrid();
|
|
@@ -451,14 +454,27 @@ function Settings() {
|
|
|
451
454
|
openModal({
|
|
452
455
|
initialWidth: 500,
|
|
453
456
|
initialHeigth: 680,
|
|
457
|
+
fullScreen: !isDesktop ? true : false,
|
|
454
458
|
window: /* @__PURE__ */ jsxs(WindowBase, {
|
|
455
459
|
title: getLabel("data_grid.settings_title"),
|
|
456
|
-
children: [/* @__PURE__ */ jsx(
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
460
|
+
children: [/* @__PURE__ */ jsx(DataGridRoot, {
|
|
461
|
+
className: classes.root,
|
|
462
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
463
|
+
className: classes.tableContaniner,
|
|
464
|
+
style: {
|
|
465
|
+
inset: "0"
|
|
466
|
+
},
|
|
467
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
468
|
+
className: classes.wrapperDataGridCss,
|
|
469
|
+
children: /* @__PURE__ */ jsx(ColumnsConfig, {
|
|
470
|
+
ref,
|
|
471
|
+
columnsConfig,
|
|
472
|
+
onChangeColumnsConfig,
|
|
473
|
+
onCloseSettings,
|
|
474
|
+
classes
|
|
475
|
+
})
|
|
476
|
+
})
|
|
477
|
+
})
|
|
462
478
|
}), /* @__PURE__ */ jsxs(Actions$1, {
|
|
463
479
|
children: [/* @__PURE__ */ jsx(ActionCancel, {
|
|
464
480
|
onClick: closeModal
|
|
@@ -1,44 +1,45 @@
|
|
|
1
1
|
import { shallow } from "zustand/shallow";
|
|
2
|
-
import { S as ScrollBar } from "../ScrollBar/index.
|
|
2
|
+
import { S as ScrollBar } from "../ScrollBar/index.1247c1c5.js";
|
|
3
3
|
import { useContext, useMemo, useEffect, createContext, useRef, createElement, useState, useCallback } from "react";
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { useModuleDictionary, useEnvironment, useModuleSkeleton, useFlagsPresent, CommonFlags } from "@m4l/core";
|
|
6
6
|
import { useResponsiveDesktop, useFirstRender, useFormatter } from "@m4l/graphics";
|
|
7
|
-
import { I as IconButton } from "../mui_extended/IconButton/index.
|
|
7
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.be111a34.js";
|
|
8
8
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
9
|
-
import { g as getNameDataTestId } from "../../vendor.
|
|
9
|
+
import { g as getNameDataTestId } from "../../vendor.f27b86c9.js";
|
|
10
10
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
11
11
|
import { generateUtilityClasses, alpha, styled as styled$1, Skeleton, MenuItem } from "@mui/material";
|
|
12
|
-
import { L as LabelMemuItem } from "../mui_extended/MenuActions/index.
|
|
12
|
+
import { L as LabelMemuItem } from "../mui_extended/MenuActions/index.b16e84c1.js";
|
|
13
13
|
import { P as Popover } from "../mui_extended/Popover/index.9f35d0eb.js";
|
|
14
|
-
import { I as Icon } from "../Icon/index.
|
|
14
|
+
import { I as Icon } from "../Icon/index.c3a579e7.js";
|
|
15
15
|
import { styled, useTheme } from "@mui/material/styles";
|
|
16
|
-
import { R as RHFormProvider } from "../../contexts/RHFormContext/index.
|
|
17
|
-
import { g as getCommonActionsDictionary, A as Actions } from "../CommonActions/components/Actions/index.
|
|
18
|
-
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.
|
|
19
|
-
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.
|
|
16
|
+
import { R as RHFormProvider } from "../../contexts/RHFormContext/index.e019f87d.js";
|
|
17
|
+
import { g as getCommonActionsDictionary, A as Actions } from "../CommonActions/components/Actions/index.c91c27f9.js";
|
|
18
|
+
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.67b91376.js";
|
|
19
|
+
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.53e7fe2b.js";
|
|
20
20
|
import { useFormContext, useWatch } from "react-hook-form";
|
|
21
21
|
import "@mui/material/Button";
|
|
22
22
|
import "../mui_extended/Button/index.40af964e.js";
|
|
23
|
-
import "../../contexts/ModalContext/index.
|
|
23
|
+
import "../../contexts/ModalContext/index.1ea79d7e.js";
|
|
24
24
|
import "../../react-draggable.7abb5d0a.js";
|
|
25
25
|
import "../Resizeable/index.9a9c79a4.js";
|
|
26
|
-
import "../modal/index.
|
|
26
|
+
import "../modal/index.c7e4beba.js";
|
|
27
27
|
import "../Image/index.c18ebf5a.js";
|
|
28
|
-
import "../mui_extended/Accordion/index.
|
|
28
|
+
import "../mui_extended/Accordion/index.854f4c90.js";
|
|
29
29
|
import { T as Typography } from "../mui_extended/Typography/index.443590d6.js";
|
|
30
30
|
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
31
31
|
import "react-router-dom";
|
|
32
|
-
import "../mui_extended/CheckBox.
|
|
33
|
-
import "../mui_extended/Badge/index.
|
|
32
|
+
import "../mui_extended/CheckBox.38abccd8.js";
|
|
33
|
+
import "../mui_extended/Badge/index.8c2b8b66.js";
|
|
34
34
|
import "@mui/lab";
|
|
35
|
-
import "../mui_extended/
|
|
36
|
-
import "../mui_extended/Tab/index.
|
|
35
|
+
import "../mui_extended/Stack/index.0e53197c.js";
|
|
36
|
+
import "../mui_extended/Tab/index.c1dc7bbf.js";
|
|
37
|
+
import "../mui_extended/Pager/index.5b77fa4c.js";
|
|
37
38
|
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
38
39
|
import { useStore, createStore } from "zustand";
|
|
39
|
-
import "../areas/contexts/AreasContext/index.
|
|
40
|
-
import "../areas/components/AreasAdmin/index.
|
|
41
|
-
import "../areas/components/AreasViewer/index.
|
|
40
|
+
import "../areas/contexts/AreasContext/index.6f56b1da.js";
|
|
41
|
+
import "../areas/components/AreasAdmin/index.f505897a.js";
|
|
42
|
+
import "../areas/components/AreasViewer/index.cacec884.js";
|
|
42
43
|
import "../LinearProgressIndeterminate/index.60dabc06.js";
|
|
43
44
|
import "../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
44
45
|
import "../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
@@ -46,19 +47,19 @@ import { unstable_composeClasses } from "@mui/base";
|
|
|
46
47
|
import { g as getComponentUtilityClass, i as isValidDate } from "../../utils/index.c43a95f4.js";
|
|
47
48
|
import { devtools } from "zustand/middleware";
|
|
48
49
|
import { immer } from "zustand/middleware/immer";
|
|
49
|
-
import { R as RHFAutocomplete } from "../hook-form/RHFAutocomplete/index.
|
|
50
|
+
import { R as RHFAutocomplete } from "../hook-form/RHFAutocomplete/index.aca6984f.js";
|
|
50
51
|
import "lodash/debounce";
|
|
51
|
-
import "../hook-form/RHFAutocompleteAsync/index.
|
|
52
|
-
import "../hook-form/RHFCheckbox/index.
|
|
53
|
-
import "../HelperText/index.
|
|
52
|
+
import "../hook-form/RHFAutocompleteAsync/index.8511bcf8.js";
|
|
53
|
+
import "../hook-form/RHFCheckbox/index.0f45e6b0.js";
|
|
54
|
+
import "../HelperText/index.8b5911d1.js";
|
|
54
55
|
import "@mui/x-date-pickers";
|
|
55
|
-
import { R as RHFDateTime } from "../hook-form/RHFDateTime/index.
|
|
56
|
-
import { R as RHFTextField } from "../hook-form/RHFTextField/index.
|
|
57
|
-
import "../hook-form/RHFPeriod/index.
|
|
58
|
-
import "../Period/index.
|
|
56
|
+
import { R as RHFDateTime } from "../hook-form/RHFDateTime/index.07412ef0.js";
|
|
57
|
+
import { R as RHFTextField } from "../hook-form/RHFTextField/index.94c8c59b.js";
|
|
58
|
+
import "../hook-form/RHFPeriod/index.15b8f11e.js";
|
|
59
|
+
import "../Period/index.061c9b2f.js";
|
|
59
60
|
import "lodash/isString";
|
|
60
61
|
import "react-dropzone";
|
|
61
|
-
import "../hook-form/RHFUpload/index.
|
|
62
|
+
import "../hook-form/RHFUpload/index.7ef1e124.js";
|
|
62
63
|
import * as Yup from "yup";
|
|
63
64
|
const COMPONENT_PREFIX = "M4LDynamicFilter";
|
|
64
65
|
const COMPONENT_CLASS_NAME = "M4LDynamicFilter";
|
|
@@ -23,4 +23,4 @@ export declare const DEFAULT_CONTAINER_PADDING: Margin;
|
|
|
23
23
|
export declare const DEFAULT_MARGIN: Margin;
|
|
24
24
|
export declare const DEFAULT_TRANSFORM_SCALE = 1;
|
|
25
25
|
export declare const DEFAULT_COLAPSED_HEIGHT = 35;
|
|
26
|
-
export declare const
|
|
26
|
+
export declare const THROTTLE_RESIZE_TIMEOUT = 200;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { useState, useRef, useEffect, useCallback } from "react";
|
|
1
|
+
import { useState, useRef, useEffect, useCallback, useMemo } from "react";
|
|
2
2
|
import clsx from "clsx";
|
|
3
|
-
import { M as MemonizedGridItem } from "./subcomponents/Griditem/index.
|
|
3
|
+
import { M as MemonizedGridItem } from "./subcomponents/Griditem/index.58168132.js";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
import {
|
|
5
|
+
import { throttle } from "lodash";
|
|
6
|
+
import { useResizeObserver } from "@m4l/graphics";
|
|
7
|
+
import { styled, alpha } from "@mui/material/styles";
|
|
6
8
|
import { r as react_resizable_css } from "../../react-resizable.ba08699a.js";
|
|
7
9
|
import { generateUtilityClasses } from "@mui/material";
|
|
8
10
|
import "@mui/base";
|
|
9
|
-
import "@m4l/graphics";
|
|
10
|
-
import "lodash";
|
|
11
11
|
const COMPONENT_CLASS_NAME = "M4LGridLayout";
|
|
12
12
|
const DEFAULT_COLS = 12;
|
|
13
13
|
const DEFAULT_ROW_HEIGHT = 20;
|
|
@@ -19,7 +19,7 @@ const DEFAULT_CONTAINER_PADDING = [10, 10];
|
|
|
19
19
|
const DEFAULT_MARGIN = [10, 10];
|
|
20
20
|
const DEFAULT_TRANSFORM_SCALE = 1;
|
|
21
21
|
const DEFAULT_COLAPSED_HEIGHT = 35;
|
|
22
|
-
const
|
|
22
|
+
const THROTTLE_RESIZE_TIMEOUT = 200;
|
|
23
23
|
const noop = () => {
|
|
24
24
|
};
|
|
25
25
|
function bottom(layout, colapsedHeight, rowHeight) {
|
|
@@ -453,8 +453,8 @@ function calcGridItemPosition(positionParams, x, y, w, h, maximize, state) {
|
|
|
453
453
|
out.height = Math.round(state.resizing.height);
|
|
454
454
|
} else {
|
|
455
455
|
if (maximize === "maximize_me") {
|
|
456
|
-
out.width = positionParams.containerWidth - 2 * containerPadding[0] -
|
|
457
|
-
out.height = positionParams.containerHeight - 2 * containerPadding[1] -
|
|
456
|
+
out.width = positionParams.containerWidth - 2 * containerPadding[0] - 0;
|
|
457
|
+
out.height = positionParams.containerHeight - 2 * containerPadding[1] - 0;
|
|
458
458
|
} else {
|
|
459
459
|
out.width = calcGridItemWHPx(w, colWidth, containerMargin[0]);
|
|
460
460
|
out.height = calcGridItemWHPx(h, rowHeight, containerMargin[1]);
|
|
@@ -512,12 +512,9 @@ const gridLayoutClasses = generateUtilityClasses(COMPONENT_CLASS_NAME, [
|
|
|
512
512
|
"static"
|
|
513
513
|
]);
|
|
514
514
|
const GridLayoutRoot = styled("div")`
|
|
515
|
-
/* height: 100%; */
|
|
516
515
|
overflow: auto;
|
|
517
|
-
/* flex-grow: 1; */
|
|
518
516
|
position: relative;
|
|
519
517
|
transition: height 200ms ease;
|
|
520
|
-
/* border: 1px dashed gray; //TODO:Para borrar */
|
|
521
518
|
|
|
522
519
|
.${gridLayoutClasses.gridItemRoot} {
|
|
523
520
|
transition: all 200ms ease;
|
|
@@ -554,8 +551,8 @@ const GridLayoutRoot = styled("div")`
|
|
|
554
551
|
}
|
|
555
552
|
|
|
556
553
|
.${gridLayoutClasses.gridItemRoot}.${gridLayoutClasses.gridItemPlaceholder} {
|
|
557
|
-
background:
|
|
558
|
-
opacity: 0.
|
|
554
|
+
background: ${(props) => props.theme.palette.state.toneOp};
|
|
555
|
+
opacity: 0.5;
|
|
559
556
|
transition-duration: 100ms;
|
|
560
557
|
z-index: 3000;
|
|
561
558
|
-webkit-user-select: none;
|
|
@@ -567,11 +564,21 @@ const GridLayoutRoot = styled("div")`
|
|
|
567
564
|
|
|
568
565
|
.${gridLayoutClasses.gridItemRoot} > .react-resizable-handle {
|
|
569
566
|
position: absolute;
|
|
570
|
-
width:
|
|
571
|
-
height:
|
|
567
|
+
width: 10px;
|
|
568
|
+
height: 10px;
|
|
569
|
+
padding: 12px;
|
|
570
|
+
background-image: unset;
|
|
571
|
+
|
|
572
|
+
& .M4LIcon-icon {
|
|
573
|
+
width: 10px;
|
|
574
|
+
height: 10px;
|
|
575
|
+
min-width: 10px;
|
|
576
|
+
min-height: 10px;
|
|
577
|
+
background-color: ${(props) => alpha(props.theme.palette.text.primary, 0.3)};
|
|
578
|
+
}
|
|
572
579
|
}
|
|
573
580
|
|
|
574
|
-
.${gridLayoutClasses.gridItemRoot} > .react-resizable-handle::after {
|
|
581
|
+
/* .${gridLayoutClasses.gridItemRoot} > .react-resizable-handle::after {
|
|
575
582
|
content: '';
|
|
576
583
|
position: absolute;
|
|
577
584
|
right: 3px;
|
|
@@ -580,7 +587,7 @@ const GridLayoutRoot = styled("div")`
|
|
|
580
587
|
height: 5px;
|
|
581
588
|
border-right: 2px solid rgba(0, 0, 0, 0.4);
|
|
582
589
|
border-bottom: 2px solid rgba(0, 0, 0, 0.4);
|
|
583
|
-
}
|
|
590
|
+
} */
|
|
584
591
|
|
|
585
592
|
.react-resizable-hide > .react-resizable-handle {
|
|
586
593
|
display: none;
|
|
@@ -819,7 +826,6 @@ function GridLayout(props) {
|
|
|
819
826
|
node
|
|
820
827
|
}) => {
|
|
821
828
|
if (!refState.current.activeDrag) {
|
|
822
|
-
console.log("GridLayout localOnDragStop sin movimiento");
|
|
823
829
|
return;
|
|
824
830
|
}
|
|
825
831
|
const {
|
|
@@ -852,7 +858,6 @@ function GridLayout(props) {
|
|
|
852
858
|
oldLayout: void 0,
|
|
853
859
|
activeDrag: void 0
|
|
854
860
|
};
|
|
855
|
-
console.log("localOnDragStop", finalLayout);
|
|
856
861
|
if (e.type !== "touchmove") {
|
|
857
862
|
e.preventDefault();
|
|
858
863
|
}
|
|
@@ -956,13 +961,17 @@ function GridLayout(props) {
|
|
|
956
961
|
onResize(newLayout, oldResizeItem, li, newPlaceholder, e, node);
|
|
957
962
|
} catch (error) {
|
|
958
963
|
}
|
|
964
|
+
console.log("GridLayout onresize");
|
|
965
|
+
if (e.type !== "touchmove") {
|
|
966
|
+
e.preventDefault();
|
|
967
|
+
}
|
|
968
|
+
e.stopPropagation();
|
|
959
969
|
}, []);
|
|
960
970
|
const localOnResizeStop = useCallback((i, _w, _h, {
|
|
961
971
|
e,
|
|
962
972
|
node
|
|
963
973
|
}) => {
|
|
964
974
|
if (!refState.current.activeDrag) {
|
|
965
|
-
console.log("GridLayout localOnResizeStop sin cambio");
|
|
966
975
|
return;
|
|
967
976
|
}
|
|
968
977
|
const {
|
|
@@ -986,13 +995,12 @@ function GridLayout(props) {
|
|
|
986
995
|
onResizeStop(layout2, oldResizeItem, l, void 0, e, node);
|
|
987
996
|
}
|
|
988
997
|
}, []);
|
|
989
|
-
const onClickSetOnTopFreeMove = useCallback((i,
|
|
998
|
+
const onClickSetOnTopFreeMove = useCallback((i, _source) => {
|
|
990
999
|
const {
|
|
991
1000
|
layout: layout2
|
|
992
1001
|
} = refState.current;
|
|
993
1002
|
const index = refState.current.zIndexes.indexOf(i);
|
|
994
1003
|
const l = getLayoutItem(layout2, i);
|
|
995
|
-
console.log("onClickSetOnTopFreeMove", index, refState.current.zIndexes.length, source);
|
|
996
1004
|
if (l && l?.freeMove) {
|
|
997
1005
|
if (index !== refState.current.zIndexes.length - 1 || index === -1) {
|
|
998
1006
|
const newIndexes = [...refState.current.zIndexes];
|
|
@@ -1123,11 +1131,66 @@ function GridLayout(props) {
|
|
|
1123
1131
|
children: [finalLayoutRender.map((li) => processGridItem(li, !!currentState.mounted)), placeholder()]
|
|
1124
1132
|
});
|
|
1125
1133
|
}
|
|
1134
|
+
function SizeProvider(ComposedComponent) {
|
|
1135
|
+
return (props) => {
|
|
1136
|
+
const {
|
|
1137
|
+
measureBeforeMount = true,
|
|
1138
|
+
...rest
|
|
1139
|
+
} = props;
|
|
1140
|
+
const refMounted = useRef(false);
|
|
1141
|
+
const [currentState, setCurrentState] = useState({
|
|
1142
|
+
mounted: false,
|
|
1143
|
+
width: DEFAULT_CONTAINER_WIDTH,
|
|
1144
|
+
height: DEFAULT_CONTAINER_HEIGHT
|
|
1145
|
+
});
|
|
1146
|
+
const onWindowResizeMemo = useMemo(() => () => {
|
|
1147
|
+
const node = elementRef.current;
|
|
1148
|
+
console.log(`oooo`);
|
|
1149
|
+
if (node instanceof HTMLElement && node.clientWidth) {
|
|
1150
|
+
console.log(`onWindowResizeMemo w: ${node.offsetWidth} y:${node.offsetHeight}`);
|
|
1151
|
+
setCurrentState((prev) => ({
|
|
1152
|
+
...prev,
|
|
1153
|
+
width: node.clientWidth,
|
|
1154
|
+
height: node.offsetHeight
|
|
1155
|
+
}));
|
|
1156
|
+
}
|
|
1157
|
+
}, []);
|
|
1158
|
+
const throttleResize = throttle(onWindowResizeMemo, THROTTLE_RESIZE_TIMEOUT, {
|
|
1159
|
+
leading: false,
|
|
1160
|
+
trailing: true
|
|
1161
|
+
});
|
|
1162
|
+
const onResize = useCallback((_target) => {
|
|
1163
|
+
throttleResize();
|
|
1164
|
+
}, []);
|
|
1165
|
+
const elementRef = useResizeObserver(onResize);
|
|
1166
|
+
useEffect(() => {
|
|
1167
|
+
setCurrentState((prev) => ({
|
|
1168
|
+
...prev,
|
|
1169
|
+
mounted: true
|
|
1170
|
+
}));
|
|
1171
|
+
refMounted.current = true;
|
|
1172
|
+
onWindowResizeMemo();
|
|
1173
|
+
}, []);
|
|
1174
|
+
if (measureBeforeMount && !currentState.mounted) {
|
|
1175
|
+
return /* @__PURE__ */ jsx("div", {
|
|
1176
|
+
className: clsx(props.className, COMPONENT_CLASS_NAME),
|
|
1177
|
+
style: props.style,
|
|
1178
|
+
ref: elementRef
|
|
1179
|
+
});
|
|
1180
|
+
}
|
|
1181
|
+
return /* @__PURE__ */ jsx(ComposedComponent, {
|
|
1182
|
+
innerRef: elementRef,
|
|
1183
|
+
containerWidth: currentState.width,
|
|
1184
|
+
containerHeight: currentState.height,
|
|
1185
|
+
...rest
|
|
1186
|
+
});
|
|
1187
|
+
};
|
|
1188
|
+
}
|
|
1126
1189
|
export {
|
|
1127
1190
|
noop as A,
|
|
1128
1191
|
DEFAULT_COLS as D,
|
|
1129
1192
|
GridLayout as G,
|
|
1130
|
-
|
|
1193
|
+
SizeProvider as S,
|
|
1131
1194
|
calcGridItemWHPx as a,
|
|
1132
1195
|
calcGridColWidth as b,
|
|
1133
1196
|
calcXY as c,
|
|
@@ -4,4 +4,4 @@ export { addLayoutItemToBreakPoints, addLayoutItemToBreakPointIfNoExists, cloneL
|
|
|
4
4
|
export { isEqualLayouts, isEqualLayout } from './utils';
|
|
5
5
|
export type { GridLayoutProps, LayoutItemRenderProps, Layout, LayoutItem, BaseLayoutItem, Layouts, } from './types';
|
|
6
6
|
export type { ContainerChangeEvent } from './subcomponents/Responsive/types';
|
|
7
|
-
export { SizeProvider } from './subcomponents/
|
|
7
|
+
export { SizeProvider } from './subcomponents/WidthProvider';
|
package/components/GridLayout/subcomponents/Griditem/{index.c09681ff.js → index.58168132.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default, { useRef, useEffect, useState, useCallback, useMemo } from "react";
|
|
2
2
|
import { D as DraggableCore_1 } from "../../../../react-draggable.7abb5d0a.js";
|
|
3
3
|
import { R as Resizable } from "../../../../react-resizable.ba08699a.js";
|
|
4
|
-
import { g as getH, c as calcXY, a as calcGridItemWHPx, b as calcGridColWidth, d as calcWH, e as clamp, f as calcGridItemPosition, h as gridLayoutClasses, D as DEFAULT_COLS, i as DEFAULT_ROW_HEIGHT, j as DEFAULT_CONTAINER_WIDTH, k as DEFAULT_CONTAINER_HEIGHT, l as DEFAULT_MARGIN, m as DEFAULT_CONTAINER_PADDING, n as DEFAULT_TRANSFORM_SCALE, o as DEFAULT_COLAPSED_HEIGHT, p as perc, s as setTransform, q as setTopLeft } from "../../index.
|
|
4
|
+
import { g as getH, c as calcXY, a as calcGridItemWHPx, b as calcGridColWidth, d as calcWH, e as clamp, f as calcGridItemPosition, h as gridLayoutClasses, D as DEFAULT_COLS, i as DEFAULT_ROW_HEIGHT, j as DEFAULT_CONTAINER_WIDTH, k as DEFAULT_CONTAINER_HEIGHT, l as DEFAULT_MARGIN, m as DEFAULT_CONTAINER_PADDING, n as DEFAULT_TRANSFORM_SCALE, o as DEFAULT_COLAPSED_HEIGHT, p as perc, s as setTransform, q as setTopLeft } from "../../index.2383aaf9.js";
|
|
5
5
|
import clsx from "clsx";
|
|
6
6
|
import { d as deepEqual } from "../../../../node_modules.d73a220d.js";
|
|
7
7
|
import { jsx, Fragment } from "react/jsx-runtime";
|
|
@@ -140,7 +140,6 @@ function GridItem(props) {
|
|
|
140
140
|
const pTop = parentRect.top / transformScale;
|
|
141
141
|
newPosition.left = cLeft - pLeft + offsetParent.scrollLeft;
|
|
142
142
|
newPosition.top = cTop - pTop + offsetParent.scrollTop;
|
|
143
|
-
console.log(`gridItemOnDragStart cleft:${cLeft},pleft:${pLeft}, offsetParent.scrollTop:${offsetParent.scrollTop} `, newPosition);
|
|
144
143
|
refState.current.dragging = newPosition;
|
|
145
144
|
setCurrentState((prev) => ({
|
|
146
145
|
...prev,
|
|
@@ -164,7 +163,6 @@ function GridItem(props) {
|
|
|
164
163
|
if (!onDrag)
|
|
165
164
|
return;
|
|
166
165
|
if (!refState.current.dragging) {
|
|
167
|
-
console.warn("gridItemOnDrag onDrag called before onDragStart");
|
|
168
166
|
return;
|
|
169
167
|
}
|
|
170
168
|
let top = refState.current.dragging.top + deltaY;
|
|
@@ -207,7 +205,6 @@ function GridItem(props) {
|
|
|
207
205
|
if (!onDragStop)
|
|
208
206
|
return;
|
|
209
207
|
if (!refState.current.dragging) {
|
|
210
|
-
console.warn("onDragEnd called before onDragStart");
|
|
211
208
|
return;
|
|
212
209
|
}
|
|
213
210
|
const {
|
|
@@ -239,11 +236,9 @@ function GridItem(props) {
|
|
|
239
236
|
}, handlerName) => {
|
|
240
237
|
const handler = props[handlerName];
|
|
241
238
|
if (!handler) {
|
|
242
|
-
console.warn("onResizeHandler invalid");
|
|
243
239
|
return;
|
|
244
240
|
}
|
|
245
241
|
if (refProps.current.colapsed) {
|
|
246
|
-
console.warn("onResizeHandler colapsed invalid");
|
|
247
242
|
return;
|
|
248
243
|
}
|
|
249
244
|
let {
|
package/components/GridLayout/subcomponents/Responsive/{index.eb04fd5e.js → index.a6642437.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as cloneLayoutItem, t as cloneLayout, u as compact, v as correctBounds, w as isEqualLayout, x as DEFAULT_RESPONSIVE_BREAKPOINTS, m as DEFAULT_CONTAINER_PADDING, l as DEFAULT_MARGIN, y as DEFAULT_RESPONSIVE_COLS, o as DEFAULT_COLAPSED_HEIGHT, i as DEFAULT_ROW_HEIGHT, z as isEqualLayouts, G as GridLayout, A as noop } from "../../index.
|
|
1
|
+
import { r as cloneLayoutItem, t as cloneLayout, u as compact, v as correctBounds, w as isEqualLayout, x as DEFAULT_RESPONSIVE_BREAKPOINTS, m as DEFAULT_CONTAINER_PADDING, l as DEFAULT_MARGIN, y as DEFAULT_RESPONSIVE_COLS, o as DEFAULT_COLAPSED_HEIGHT, i as DEFAULT_ROW_HEIGHT, z as isEqualLayouts, G as GridLayout, A as noop } from "../../index.2383aaf9.js";
|
|
2
2
|
import { useState, useRef, useEffect, useCallback } from "react";
|
|
3
3
|
import { useFirstRender } from "@m4l/graphics";
|
|
4
4
|
import { d as deepEqual } from "../../../../node_modules.d73a220d.js";
|
|
@@ -248,7 +248,6 @@ function Responsive(props) {
|
|
|
248
248
|
let newContainerMargin = currentState.contaierMargin;
|
|
249
249
|
let newContainerPadding = currentState.contaierPadding;
|
|
250
250
|
if (newBreakpoint !== lastBreakpoint || newCols !== lastBreakpointCols || !deepEqual(cols, refState.current.cols) || !deepEqual(breakpoints, refState.current.breakpoints) || !isEqualLayouts(layouts, refState.current.layouts)) {
|
|
251
|
-
console.debug("useEffect responsive con cambio de algo", newBreakpoint, lastBreakpoint);
|
|
252
251
|
newContainerMargin = getIndentationValue(containerMargin, newBreakpoint);
|
|
253
252
|
newContainerPadding = getIndentationValue(containerPadding, newBreakpoint);
|
|
254
253
|
if (!(lastBreakpoint in newLayouts)) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SyntheticEvent } from 'react';
|
|
1
|
+
import React, { SyntheticEvent } from 'react';
|
|
2
2
|
import { DraggableEvent } from 'react-draggable';
|
|
3
3
|
export declare type Position = {
|
|
4
4
|
left: number;
|
|
@@ -334,7 +334,7 @@ export interface CoreProps {
|
|
|
334
334
|
/**
|
|
335
335
|
* Defines custom component for resize handle
|
|
336
336
|
*/
|
|
337
|
-
resizeHandle?: React.ReactNode
|
|
337
|
+
resizeHandle?: React.ReactNode;
|
|
338
338
|
/**
|
|
339
339
|
* Calls when drag starts.
|
|
340
340
|
*/
|
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import { styled, generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
2
2
|
import "react";
|
|
3
3
|
import "@m4l/core";
|
|
4
|
-
import "../Icon/index.
|
|
4
|
+
import "../Icon/index.c3a579e7.js";
|
|
5
5
|
import "clsx";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
import "../mui_extended/IconButton/index.
|
|
7
|
+
import "../mui_extended/IconButton/index.be111a34.js";
|
|
8
8
|
import "@m4l/graphics";
|
|
9
|
-
import "../mui_extended/Accordion/index.
|
|
9
|
+
import "../mui_extended/Accordion/index.854f4c90.js";
|
|
10
10
|
import { T as Typography } from "../mui_extended/Typography/index.443590d6.js";
|
|
11
11
|
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
12
12
|
import "react-router-dom";
|
|
13
13
|
import "@mui/material/Button";
|
|
14
14
|
import "../mui_extended/Button/index.40af964e.js";
|
|
15
|
-
import "../mui_extended/CheckBox.
|
|
16
|
-
import "../mui_extended/Badge/index.
|
|
15
|
+
import "../mui_extended/CheckBox.38abccd8.js";
|
|
16
|
+
import "../mui_extended/Badge/index.8c2b8b66.js";
|
|
17
17
|
import "../Image/index.c18ebf5a.js";
|
|
18
18
|
import "@mui/lab";
|
|
19
|
-
import "../mui_extended/MenuActions/index.
|
|
19
|
+
import "../mui_extended/MenuActions/index.b16e84c1.js";
|
|
20
20
|
import "../mui_extended/Popover/index.9f35d0eb.js";
|
|
21
|
-
import "../mui_extended/
|
|
22
|
-
import "../mui_extended/Tab/index.
|
|
21
|
+
import "../mui_extended/Stack/index.0e53197c.js";
|
|
22
|
+
import "../mui_extended/Tab/index.c1dc7bbf.js";
|
|
23
|
+
import "../mui_extended/Pager/index.5b77fa4c.js";
|
|
23
24
|
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
24
25
|
import { unstable_composeClasses } from "@mui/base";
|
|
25
26
|
const HelperTextRoot = styled("div")(({
|
|
@@ -3,7 +3,7 @@ import { styled, generateUtilityClasses, generateUtilityClass, Skeleton } from "
|
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { useEnvironment } from "@m4l/core";
|
|
6
|
-
import { u as useSideBar, g as getNameDataTestId$1 } from "../SideBar/index.
|
|
6
|
+
import { u as useSideBar, g as getNameDataTestId$1 } from "../SideBar/index.e0587639.js";
|
|
7
7
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
8
8
|
import { unstable_composeClasses } from "@mui/base";
|
|
9
9
|
const IconRoot = styled("div")(({
|
|
@@ -3,25 +3,26 @@ import { styled, generateUtilityClasses, generateUtilityClass, Stack, MenuItem }
|
|
|
3
3
|
import { I as Image } from "../Image/index.c18ebf5a.js";
|
|
4
4
|
import { useLocales } from "@m4l/graphics";
|
|
5
5
|
import { useEnvironment, useNetwork } from "@m4l/core";
|
|
6
|
-
import "../Icon/index.
|
|
6
|
+
import "../Icon/index.c3a579e7.js";
|
|
7
7
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
8
8
|
import "clsx";
|
|
9
9
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
10
|
-
import "../mui_extended/IconButton/index.
|
|
11
|
-
import "../mui_extended/Accordion/index.
|
|
10
|
+
import "../mui_extended/IconButton/index.be111a34.js";
|
|
11
|
+
import "../mui_extended/Accordion/index.854f4c90.js";
|
|
12
12
|
import "../mui_extended/Typography/index.443590d6.js";
|
|
13
13
|
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
14
14
|
import "react-router-dom";
|
|
15
15
|
import "@mui/material/Button";
|
|
16
16
|
import { I as ImageButton } from "../mui_extended/Button/index.40af964e.js";
|
|
17
|
-
import "../mui_extended/CheckBox.
|
|
17
|
+
import "../mui_extended/CheckBox.38abccd8.js";
|
|
18
18
|
import { C as CircularProgress } from "../mui_extended/CircularProgress/index.ad569afd.js";
|
|
19
|
-
import "../mui_extended/Badge/index.
|
|
19
|
+
import "../mui_extended/Badge/index.8c2b8b66.js";
|
|
20
20
|
import "@mui/lab";
|
|
21
|
-
import "../mui_extended/MenuActions/index.
|
|
21
|
+
import "../mui_extended/MenuActions/index.b16e84c1.js";
|
|
22
22
|
import { P as Popover } from "../mui_extended/Popover/index.9f35d0eb.js";
|
|
23
|
-
import "../mui_extended/
|
|
24
|
-
import "../mui_extended/Tab/index.
|
|
23
|
+
import "../mui_extended/Stack/index.0e53197c.js";
|
|
24
|
+
import "../mui_extended/Tab/index.c1dc7bbf.js";
|
|
25
|
+
import "../mui_extended/Pager/index.5b77fa4c.js";
|
|
25
26
|
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
26
27
|
import { unstable_composeClasses } from "@mui/base";
|
|
27
28
|
const LanguagePopoverRoot = styled("div")(({
|