@m4l/components 0.1.82 → 0.1.84

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 (89) hide show
  1. package/components/AccountPopover/classes/index.d.ts +4 -0
  2. package/components/AccountPopover/classes/types.d.ts +4 -0
  3. package/components/AccountPopover/dictionary.d.ts +1 -0
  4. package/components/AccountPopover/{index.0ba26726.js → index.bbeb9142.js} +73 -27
  5. package/components/AccountPopover/index.d.ts +1 -0
  6. package/components/AccountPopover/types.d.ts +2 -0
  7. package/components/AppBar/dictionary.d.ts +1 -0
  8. package/components/AppBar/{index.fadcefc6.js → index.43f8b54f.js} +17 -10
  9. package/components/AppBar/index.d.ts +1 -0
  10. package/components/CommonActions/components/ActionCancel/{index.6cf96d04.js → index.29517521.js} +1 -1
  11. package/components/CommonActions/components/ActionFormCancel/{index.a0335cbf.js → index.89f1ac8e.js} +14 -14
  12. package/components/CommonActions/components/ActionFormIntro/{index.273b1b9f.js → index.bbc35e74.js} +1 -1
  13. package/components/CommonActions/components/ActionIntro/{index.856df8ef.js → index.a9420126.js} +1 -1
  14. package/components/CommonActions/components/Actions/{index.5abb6ac4.js → index.e70e8779.js} +12 -12
  15. package/components/DataGrid/{index.03ad08af.js → index.1d0a3dec.js} +13 -12
  16. package/components/DataGrid/subcomponents/Actions/{index.db54ec98.js → index.a8fc9f6a.js} +44 -29
  17. package/components/DynamicFilter/{index.9b72180b.js → index.912679cc.js} +25 -25
  18. package/components/GridLayout/constants.d.ts +2 -2
  19. package/components/GridLayout/{index.76bccc4f.js → index.c55f16eb.js} +22 -18
  20. package/components/GridLayout/index.d.ts +1 -1
  21. package/components/GridLayout/subcomponents/Griditem/{index.01fc14c3.js → index.6c68811f.js} +1 -6
  22. package/components/GridLayout/subcomponents/Responsive/{index.e589d8bf.js → index.a6e33b8d.js} +1 -2
  23. package/components/GridLayout/subcomponents/Responsive/responsiveUtils.d.ts +1 -1
  24. package/components/GridLayout/subcomponents/{WidthProvider/index.50dafd87.js → SizeProvider/index.bfa05dfa.js} +5 -8
  25. package/components/GridLayout/subcomponents/{WidthProvider → SizeProvider}/index.d.ts +1 -1
  26. package/components/GridLayout/types.d.ts +9 -12
  27. package/components/GridLayout/utils.d.ts +1 -2
  28. package/components/HelperText/{index.6c3adb40.js → index.a47ff233.js} +7 -7
  29. package/components/Icon/{index.2414ff25.js → index.d1402200.js} +1 -1
  30. package/components/LanguagePopover/{index.66e11634.js → index.807f5272.js} +7 -7
  31. package/components/ModalDialog/{index.4dc1c8ed.js → index.42e804cf.js} +4 -6
  32. package/components/NavLink/{index.5859e048.js → index.ff5a939c.js} +7 -7
  33. package/components/ObjectLogs/{index.51de2deb.js → index.dc02715d.js} +16 -16
  34. package/components/PaperForm/{index.f931dc02.js → index.249c2404.js} +1 -1
  35. package/components/Period/{index.4fd9df2a.js → index.e129cdec.js} +13 -13
  36. package/components/PropertyValue/{index.1b09f426.js → index.93e40532.js} +1 -1
  37. package/components/SideBar/classes/index.d.ts +0 -1
  38. package/components/SideBar/classes/types.d.ts +0 -1
  39. package/components/SideBar/{index.72564ef2.js → index.327679a6.js} +22 -27
  40. package/components/areas/components/AreasAdmin/classes/types.d.ts +1 -0
  41. package/components/areas/components/AreasAdmin/index.8ab71eb9.js +718 -0
  42. package/components/areas/components/AreasAdmin/index.d.ts +2 -2
  43. package/components/areas/components/AreasAdmin/subcomponents/AreaChip/subcomponents/ChipActionsMobile/types.d.ts +2 -1
  44. package/components/areas/components/AreasAdmin/subcomponents/AreaChip/types.d.ts +2 -0
  45. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.d.ts +6 -0
  46. package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
  47. package/components/areas/components/AreasViewer/classes/types.d.ts +1 -0
  48. package/components/areas/components/AreasViewer/{index.51a52736.js → index.933e506b.js} +122 -46
  49. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/index.d.ts +2 -2
  50. package/components/areas/components/{index.f496660b.js → index.9e48d8ff.js} +10 -10
  51. package/components/areas/contexts/AreasContext/helper.d.ts +7 -0
  52. package/components/areas/contexts/AreasContext/{index.9820bc7f.js → index.230d1584.js} +17 -7
  53. package/components/areas/contexts/AreasContext/types.d.ts +8 -0
  54. package/components/areas/contexts/{index.361acb6f.js → index.f494e241.js} +1 -1
  55. package/components/areas/hooks/useAreas/{index.b403f383.js → index.b8449343.js} +1 -1
  56. package/components/areas/index.32db4fa7.js +53 -0
  57. package/components/areas/utils/useOnClickOutside/index.d.ts +4 -0
  58. package/components/formatters/BooleanFormatter/{index.32de0803.js → index.b2f02bc4.js} +1 -1
  59. package/components/formatters/{index.d16d2331.js → index.f9ad88b4.js} +2 -2
  60. package/components/hook-form/RHFAutocomplete/{index.6edb51b1.js → index.d5afb409.js} +9 -8
  61. package/components/hook-form/RHFAutocompleteAsync/{index.c2ca5c66.js → index.a4f00088.js} +1 -1
  62. package/components/hook-form/RHFCheckbox/{index.c6c3933b.js → index.9bf6edb0.js} +8 -8
  63. package/components/hook-form/RHFDateTime/{index.3add0fa4.js → index.a2c1ed2c.js} +8 -8
  64. package/components/hook-form/RHFPeriod/{index.72edef4d.js → index.b5204ce2.js} +2 -2
  65. package/components/hook-form/RHFTextField/{index.20daa95e.js → index.5a0fa776.js} +3 -3
  66. package/components/hook-form/RHFUpload/{index.cc5adc15.js → index.b36539d6.js} +8 -8
  67. package/components/modal/{WindowBase.4016485b.js → WindowBase.37158e8d.js} +15 -11
  68. package/components/modal/{WindowConfirm.f148e495.js → WindowConfirm.a68aa0f1.js} +15 -15
  69. package/components/modal/{index.e9fece72.js → index.6f281ef8.js} +12 -12
  70. package/components/mui_extended/Accordion/{index.42cef1c7.js → index.46771196.js} +3 -3
  71. package/components/mui_extended/CheckBox/CheckBox.d.ts +1 -1
  72. package/components/mui_extended/{CheckBox.5f6c78b0.js → CheckBox.38abccd8.js} +5 -3
  73. package/components/mui_extended/IconButton/{index.a318316e.js → index.62aea582.js} +2 -12
  74. package/components/mui_extended/MenuActions/{index.f6bfdd40.js → index.2493b1b1.js} +21 -6
  75. package/components/mui_extended/MenuActions/types.d.ts +2 -0
  76. package/components/mui_extended/Pager/{index.da26e9d4.js → index.a7f87c96.js} +84 -82
  77. package/components/mui_extended/Pager/subcomponents/CustomTablePagination/index.d.ts +5 -0
  78. package/components/mui_extended/Pager/subcomponents/CustomTablePagination/types.d.ts +1 -4
  79. package/components/mui_extended/Tab/{index.0d5f96e6.js → index.756fe693.js} +1 -1
  80. package/components/mui_extended/{index.f6a356b9.js → index.ba27649e.js} +7 -7
  81. package/contexts/ModalContext/{index.efc1135a.js → index.51da83de.js} +1 -1
  82. package/hooks/useModal/{index.9b0cc3fe.js → index.7611bf21.js} +1 -1
  83. package/index.js +74 -70
  84. package/package.json +1 -1
  85. package/{vendor.88ed58a5.js → vendor.1af105d6.js} +47 -47
  86. package/components/areas/components/AreasAdmin/index.f011d49d.js +0 -487
  87. package/components/areas/index.eacab372.js +0 -32
  88. /package/components/areas/components/{AreasAdmin/subcomponents/AreaChipMobile → AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header}/subcomponents/PanelWindowPopUp/index.d.ts +0 -0
  89. /package/components/areas/components/{AreasAdmin/subcomponents/AreaChipMobile → AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header}/subcomponents/PanelWindowPopUp/types.d.ts +0 -0
@@ -1,47 +1,47 @@
1
- import { M as MenuActions } from "../../../mui_extended/MenuActions/index.f6bfdd40.js";
2
- import { u as useDataGrid, a as useFilters, d as dataGridClasses, b as dictionary } from "../../index.03ad08af.js";
1
+ import { M as MenuActions } from "../../../mui_extended/MenuActions/index.2493b1b1.js";
2
+ import { u as useDataGrid, a as useFilters, d as dataGridClasses, D as DataGridRoot, b as dictionary } from "../../index.1d0a3dec.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.da26e9d4.js";
6
- import { I as IconButton } from "../../../mui_extended/IconButton/index.a318316e.js";
5
+ import { P as Pager } from "../../../mui_extended/Pager/index.a7f87c96.js";
6
+ import { I as IconButton } from "../../../mui_extended/IconButton/index.62aea582.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.9b0cc3fe.js";
12
- import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.6cf96d04.js";
13
- import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.856df8ef.js";
11
+ import { u as useModal } from "../../../../hooks/useModal/index.7611bf21.js";
12
+ import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.29517521.js";
13
+ import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.a9420126.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.2414ff25.js";
17
+ import "../../../Icon/index.d1402200.js";
18
18
  import "clsx";
19
- import "../../../modal/index.e9fece72.js";
20
- import { A as Actions$1 } from "../../../CommonActions/components/Actions/index.5abb6ac4.js";
19
+ import "../../../modal/index.6f281ef8.js";
20
+ import { A as Actions$1 } from "../../../CommonActions/components/Actions/index.e70e8779.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.9820bc7f.js";
26
- import "../../../areas/components/AreasAdmin/index.f011d49d.js";
25
+ import "../../../areas/contexts/AreasContext/index.230d1584.js";
26
+ import "../../../areas/components/AreasAdmin/index.8ab71eb9.js";
27
27
  import "zustand/shallow";
28
28
  import "../../../ScrollBar/index.d4410cb5.js";
29
- import "../../../mui_extended/Accordion/index.42cef1c7.js";
29
+ import "../../../mui_extended/Accordion/index.46771196.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.5f6c78b0.js";
33
+ import "../../../mui_extended/CheckBox.38abccd8.js";
34
34
  import "../../../mui_extended/Badge/index.cad260fe.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/Tab/index.0d5f96e6.js";
38
+ import "../../../mui_extended/Tab/index.756fe693.js";
39
39
  import "../../../mui_extended/Tooltip/index.5a795dcd.js";
40
- import "../../../areas/components/AreasViewer/index.51a52736.js";
40
+ import "../../../areas/components/AreasViewer/index.933e506b.js";
41
41
  import "../../../LinearProgressIndeterminate/index.60dabc06.js";
42
42
  import "../../../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
43
43
  import "../../../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
44
- import { W as WindowBase } from "../../../modal/WindowBase.4016485b.js";
44
+ import { W as WindowBase } from "../../../modal/WindowBase.37158e8d.js";
45
45
  const ACTIONS_COLUMN_KEY = "actions-row";
46
46
  function ActionsFormatter(props) {
47
47
  const {
@@ -376,41 +376,42 @@ const ColumnsConfig = forwardRef((props, ref) => {
376
376
  }), /* @__PURE__ */ jsxs(ColumnActions, {
377
377
  className: classes.columnsConfigActions,
378
378
  children: [/* @__PURE__ */ jsx(IconButton, {
379
- dictionaryTooltipId: "data_grid.settings_move_first",
379
+ tooltip: getLabel("data_grid.settings_move_first"),
380
380
  onClick: handleMoveFirst,
381
381
  "aria-label": "move first place",
382
382
  disabled: rowSelectedIndex < 1,
383
383
  src: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/move_first_place.svg`
384
384
  }), /* @__PURE__ */ jsx(IconButton, {
385
+ tooltip: getLabel("data_grid.settings_move_up"),
385
386
  dictionaryTooltipId: "data_grid.settings_move_up",
386
387
  onClick: () => handleMoveUpDownd(-1),
387
388
  "aria-label": "move up place",
388
389
  disabled: rowSelectedIndex < 1,
389
390
  src: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/move_up_place.svg`
390
391
  }), /* @__PURE__ */ jsx(IconButton, {
391
- dictionaryTooltipId: "data_grid.settings_move_last",
392
+ tooltip: getLabel("data_grid.settings_move_last"),
392
393
  onClick: handleMoveLast,
393
394
  "aria-label": "move last place",
394
395
  disabled: !!(rowSelectedIndex === rows.length - 1 || rowSelectedIndex === -1),
395
396
  src: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/move_last_place.svg`
396
397
  }), /* @__PURE__ */ jsx(IconButton, {
397
- dictionaryTooltipId: "data_grid.settings_move_down",
398
+ tooltip: getLabel("data_grid.settings_move_down"),
398
399
  onClick: () => handleMoveUpDownd(1),
399
400
  "aria-label": "move down place",
400
401
  disabled: !!(rowSelectedIndex === rows.length - 1 || rowSelectedIndex === -1),
401
402
  src: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/move_down_place.svg`
402
403
  }), /* @__PURE__ */ jsx(IconButton, {
403
- dictionaryTooltipId: "data_grid.settings_visible_all",
404
+ tooltip: getLabel("data_grid.settings_visible_all"),
404
405
  onClick: checkAll,
405
406
  "aria-label": "check visible all",
406
407
  src: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/check_all.svg`
407
408
  }), /* @__PURE__ */ jsx(IconButton, {
408
- dictionaryTooltipId: "data_grid.settings_no_visible_all",
409
+ tooltip: getLabel("data_grid.settings_no_visible_all"),
409
410
  onClick: unCheckAll,
410
411
  "aria-label": "un check all",
411
412
  src: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/uncheck_all.svg`
412
413
  }), /* @__PURE__ */ jsx(IconButton, {
413
- dictionaryTooltipId: "data_grid.settings_restore",
414
+ tooltip: getLabel("data_grid.settings_restore"),
414
415
  onClick: restoreAll,
415
416
  "aria-label": "Restore columns",
416
417
  src: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/restore_columns.svg`
@@ -435,6 +436,7 @@ function Settings() {
435
436
  host_static_assets,
436
437
  environment_assets
437
438
  } = useEnvironment();
439
+ const isDesktop = useResponsiveDesktop();
438
440
  const {
439
441
  classes
440
442
  } = useDataGrid();
@@ -451,14 +453,27 @@ function Settings() {
451
453
  openModal({
452
454
  initialWidth: 500,
453
455
  initialHeigth: 680,
456
+ fullScreen: !isDesktop ? true : false,
454
457
  window: /* @__PURE__ */ jsxs(WindowBase, {
455
458
  title: getLabel("data_grid.settings_title"),
456
- children: [/* @__PURE__ */ jsx(ColumnsConfig, {
457
- ref,
458
- columnsConfig,
459
- onChangeColumnsConfig,
460
- onCloseSettings,
461
- classes
459
+ children: [/* @__PURE__ */ jsx(DataGridRoot, {
460
+ className: classes.root,
461
+ children: /* @__PURE__ */ jsx("div", {
462
+ className: classes.tableContaniner,
463
+ style: {
464
+ inset: "0"
465
+ },
466
+ children: /* @__PURE__ */ jsx("div", {
467
+ className: classes.wrapperDataGridCss,
468
+ children: /* @__PURE__ */ jsx(ColumnsConfig, {
469
+ ref,
470
+ columnsConfig,
471
+ onChangeColumnsConfig,
472
+ onCloseSettings,
473
+ classes
474
+ })
475
+ })
476
+ })
462
477
  }), /* @__PURE__ */ jsxs(Actions$1, {
463
478
  children: [/* @__PURE__ */ jsx(ActionCancel, {
464
479
  onClick: closeModal
@@ -4,41 +4,41 @@ import { useContext, useMemo, useEffect, createContext, useRef, createElement, u
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.a318316e.js";
7
+ import { I as IconButton } from "../mui_extended/IconButton/index.62aea582.js";
8
8
  import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
9
- import { g as getNameDataTestId } from "../../vendor.88ed58a5.js";
9
+ import { g as getNameDataTestId } from "../../vendor.1af105d6.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.f6bfdd40.js";
12
+ import { L as LabelMemuItem } from "../mui_extended/MenuActions/index.2493b1b1.js";
13
13
  import { P as Popover } from "../mui_extended/Popover/index.9f35d0eb.js";
14
- import { I as Icon } from "../Icon/index.2414ff25.js";
14
+ import { I as Icon } from "../Icon/index.d1402200.js";
15
15
  import { styled, useTheme } from "@mui/material/styles";
16
16
  import { R as RHFormProvider } from "../../contexts/RHFormContext/index.b9266262.js";
17
- import { g as getCommonActionsDictionary, A as Actions } from "../CommonActions/components/Actions/index.5abb6ac4.js";
18
- import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.6cf96d04.js";
19
- import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.856df8ef.js";
17
+ import { g as getCommonActionsDictionary, A as Actions } from "../CommonActions/components/Actions/index.e70e8779.js";
18
+ import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.29517521.js";
19
+ import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.a9420126.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.efc1135a.js";
23
+ import "../../contexts/ModalContext/index.51da83de.js";
24
24
  import "../../react-draggable.7abb5d0a.js";
25
25
  import "../Resizeable/index.9a9c79a4.js";
26
- import "../modal/index.e9fece72.js";
26
+ import "../modal/index.6f281ef8.js";
27
27
  import "../Image/index.c18ebf5a.js";
28
- import "../mui_extended/Accordion/index.42cef1c7.js";
28
+ import "../mui_extended/Accordion/index.46771196.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.5f6c78b0.js";
32
+ import "../mui_extended/CheckBox.38abccd8.js";
33
33
  import "../mui_extended/Badge/index.cad260fe.js";
34
34
  import "@mui/lab";
35
- import "../mui_extended/Pager/index.da26e9d4.js";
36
- import "../mui_extended/Tab/index.0d5f96e6.js";
35
+ import "../mui_extended/Pager/index.a7f87c96.js";
36
+ import "../mui_extended/Tab/index.756fe693.js";
37
37
  import "../mui_extended/Tooltip/index.5a795dcd.js";
38
38
  import { useStore, createStore } from "zustand";
39
- import "../areas/contexts/AreasContext/index.9820bc7f.js";
40
- import "../areas/components/AreasAdmin/index.f011d49d.js";
41
- import "../areas/components/AreasViewer/index.51a52736.js";
39
+ import "../areas/contexts/AreasContext/index.230d1584.js";
40
+ import "../areas/components/AreasAdmin/index.8ab71eb9.js";
41
+ import "../areas/components/AreasViewer/index.933e506b.js";
42
42
  import "../LinearProgressIndeterminate/index.60dabc06.js";
43
43
  import "../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
44
44
  import "../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
@@ -46,19 +46,19 @@ import { unstable_composeClasses } from "@mui/base";
46
46
  import { g as getComponentUtilityClass, i as isValidDate } from "../../utils/index.c43a95f4.js";
47
47
  import { devtools } from "zustand/middleware";
48
48
  import { immer } from "zustand/middleware/immer";
49
- import { R as RHFAutocomplete } from "../hook-form/RHFAutocomplete/index.6edb51b1.js";
49
+ import { R as RHFAutocomplete } from "../hook-form/RHFAutocomplete/index.d5afb409.js";
50
50
  import "lodash/debounce";
51
- import "../hook-form/RHFAutocompleteAsync/index.c2ca5c66.js";
52
- import "../hook-form/RHFCheckbox/index.c6c3933b.js";
53
- import "../HelperText/index.6c3adb40.js";
51
+ import "../hook-form/RHFAutocompleteAsync/index.a4f00088.js";
52
+ import "../hook-form/RHFCheckbox/index.9bf6edb0.js";
53
+ import "../HelperText/index.a47ff233.js";
54
54
  import "@mui/x-date-pickers";
55
- import { R as RHFDateTime } from "../hook-form/RHFDateTime/index.3add0fa4.js";
56
- import { R as RHFTextField } from "../hook-form/RHFTextField/index.20daa95e.js";
57
- import "../hook-form/RHFPeriod/index.72edef4d.js";
58
- import "../Period/index.4fd9df2a.js";
55
+ import { R as RHFDateTime } from "../hook-form/RHFDateTime/index.a2c1ed2c.js";
56
+ import { R as RHFTextField } from "../hook-form/RHFTextField/index.5a0fa776.js";
57
+ import "../hook-form/RHFPeriod/index.b5204ce2.js";
58
+ import "../Period/index.e129cdec.js";
59
59
  import "lodash/isString";
60
60
  import "react-dropzone";
61
- import "../hook-form/RHFUpload/index.cc5adc15.js";
61
+ import "../hook-form/RHFUpload/index.b36539d6.js";
62
62
  import * as Yup from "yup";
63
63
  const COMPONENT_PREFIX = "M4LDynamicFilter";
64
64
  const COMPONENT_CLASS_NAME = "M4LDynamicFilter";
@@ -2,7 +2,7 @@ import { Margin } from './types';
2
2
  export declare const COMPONENT_TEST_ID = "M4LGridLayout";
3
3
  export declare const COMPONENT_CLASS_NAME = "M4LGridLayout";
4
4
  export declare const DEFAULT_COLS = 12;
5
- export declare const DEFAULT_ROW_HEIGHT = 150;
5
+ export declare const DEFAULT_ROW_HEIGHT = 20;
6
6
  export declare const DEFAULT_CONTAINER_WIDTH = 1280;
7
7
  export declare const DEFAULT_CONTAINER_HEIGHT = 480;
8
8
  export declare const DEFAULT_RESPONSIVE_COLS: {
@@ -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 THROTTLE_RESIZE_TIME = 200;
26
+ export declare const THROTTLE_RESIZE_TIMEOUT = 200;
@@ -1,8 +1,8 @@
1
1
  import { useState, useRef, useEffect, useCallback } from "react";
2
2
  import clsx from "clsx";
3
- import { M as MemonizedGridItem } from "./subcomponents/Griditem/index.01fc14c3.js";
3
+ import { M as MemonizedGridItem } from "./subcomponents/Griditem/index.6c68811f.js";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
- import { styled } from "@mui/material/styles";
5
+ import { styled, alpha } from "@mui/material/styles";
6
6
  import { r as react_resizable_css } from "../../react-resizable.ba08699a.js";
7
7
  import { generateUtilityClasses } from "@mui/material";
8
8
  import "@mui/base";
@@ -10,7 +10,7 @@ import "@m4l/graphics";
10
10
  import "lodash";
11
11
  const COMPONENT_CLASS_NAME = "M4LGridLayout";
12
12
  const DEFAULT_COLS = 12;
13
- const DEFAULT_ROW_HEIGHT = 150;
13
+ const DEFAULT_ROW_HEIGHT = 20;
14
14
  const DEFAULT_CONTAINER_WIDTH = 1280;
15
15
  const DEFAULT_CONTAINER_HEIGHT = 480;
16
16
  const DEFAULT_RESPONSIVE_COLS = { lg: 12, md: 10, sm: 6, xs: 4, xxs: 1 };
@@ -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 THROTTLE_RESIZE_TIME = 200;
22
+ const THROTTLE_RESIZE_TIMEOUT = 200;
23
23
  const noop = () => {
24
24
  };
25
25
  function bottom(layout, colapsedHeight, rowHeight) {
@@ -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;
@@ -567,11 +564,21 @@ const GridLayoutRoot = styled("div")`
567
564
 
568
565
  .${gridLayoutClasses.gridItemRoot} > .react-resizable-handle {
569
566
  position: absolute;
570
- width: 20px;
571
- height: 20px;
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;
@@ -672,7 +679,7 @@ function GridLayout(props) {
672
679
  isResizable = true,
673
680
  allowOverlap = false,
674
681
  useCSSTransforms = true,
675
- compactType = null,
682
+ compactType = "vertical",
676
683
  preventCollision = false,
677
684
  resizeHandles = ["se"],
678
685
  resizeHandle,
@@ -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
  }
@@ -962,7 +967,6 @@ function GridLayout(props) {
962
967
  node
963
968
  }) => {
964
969
  if (!refState.current.activeDrag) {
965
- console.log("GridLayout localOnResizeStop sin cambio");
966
970
  return;
967
971
  }
968
972
  const {
@@ -986,13 +990,12 @@ function GridLayout(props) {
986
990
  onResizeStop(layout2, oldResizeItem, l, void 0, e, node);
987
991
  }
988
992
  }, []);
989
- const onClickSetOnTopFreeMove = useCallback((i, source) => {
993
+ const onClickSetOnTopFreeMove = useCallback((i, _source) => {
990
994
  const {
991
995
  layout: layout2
992
996
  } = refState.current;
993
997
  const index = refState.current.zIndexes.indexOf(i);
994
998
  const l = getLayoutItem(layout2, i);
995
- console.log("onClickSetOnTopFreeMove", index, refState.current.zIndexes.length, source);
996
999
  if (l && l?.freeMove) {
997
1000
  if (index !== refState.current.zIndexes.length - 1 || index === -1) {
998
1001
  const newIndexes = [...refState.current.zIndexes];
@@ -1125,9 +1128,10 @@ function GridLayout(props) {
1125
1128
  }
1126
1129
  export {
1127
1130
  noop as A,
1131
+ COMPONENT_CLASS_NAME as C,
1128
1132
  DEFAULT_COLS as D,
1129
1133
  GridLayout as G,
1130
- THROTTLE_RESIZE_TIME as T,
1134
+ THROTTLE_RESIZE_TIMEOUT as T,
1131
1135
  calcGridItemWHPx as a,
1132
1136
  calcGridColWidth as b,
1133
1137
  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 { WidthProvider } from './subcomponents/WidthProvider';
7
+ export { SizeProvider } from './subcomponents/SizeProvider';
@@ -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.76bccc4f.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.c55f16eb.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 {
@@ -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.76bccc4f.js";
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.c55f16eb.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)) {
@@ -25,7 +25,7 @@ export declare function getColsFromBreakpoint(breakpoint: Breakpoint, cols: Brea
25
25
  * @param {String} breakpoint New breakpoint.
26
26
  * @param {String} breakpoint Last breakpoint (for fallback).
27
27
  * @param {Number} cols Column count at new breakpoint.
28
- * @param {Boolean} verticalCompact Whether or not to compact the layout
28
+ * @param {CompactType} compactType
29
29
  * vertically.
30
30
  * @return {Array} New layout.
31
31
  */
@@ -2,10 +2,9 @@ import { useRef, useState, useMemo, useCallback, useEffect } from "react";
2
2
  import clsx from "clsx";
3
3
  import { throttle } from "lodash";
4
4
  import { useResizeObserver } from "@m4l/graphics";
5
- import { j as DEFAULT_CONTAINER_WIDTH, k as DEFAULT_CONTAINER_HEIGHT, T as THROTTLE_RESIZE_TIME } from "../../index.76bccc4f.js";
5
+ import { j as DEFAULT_CONTAINER_WIDTH, k as DEFAULT_CONTAINER_HEIGHT, T as THROTTLE_RESIZE_TIMEOUT, C as COMPONENT_CLASS_NAME } from "../../index.c55f16eb.js";
6
6
  import { jsx } from "react/jsx-runtime";
7
- const layoutClassName = "M4LGridLayout";
8
- function WidthProvider(ComposedComponent) {
7
+ function SizeProvider(ComposedComponent) {
9
8
  return (props) => {
10
9
  const {
11
10
  measureBeforeMount = true,
@@ -27,7 +26,7 @@ function WidthProvider(ComposedComponent) {
27
26
  }));
28
27
  }
29
28
  }, []);
30
- const throttleResize = throttle(onWindowResizeMemo, THROTTLE_RESIZE_TIME, {
29
+ const throttleResize = throttle(onWindowResizeMemo, THROTTLE_RESIZE_TIMEOUT, {
31
30
  leading: false,
32
31
  trailing: true
33
32
  });
@@ -42,12 +41,10 @@ function WidthProvider(ComposedComponent) {
42
41
  }));
43
42
  refMounted.current = true;
44
43
  onWindowResizeMemo();
45
- return () => {
46
- };
47
44
  }, []);
48
45
  if (measureBeforeMount && !currentState.mounted) {
49
46
  return /* @__PURE__ */ jsx("div", {
50
- className: clsx(props.className, layoutClassName),
47
+ className: clsx(props.className, COMPONENT_CLASS_NAME),
51
48
  style: props.style,
52
49
  ref: elementRef
53
50
  });
@@ -61,5 +58,5 @@ function WidthProvider(ComposedComponent) {
61
58
  };
62
59
  }
63
60
  export {
64
- WidthProvider as W
61
+ SizeProvider as S
65
62
  };
@@ -11,5 +11,5 @@ export interface ComponentResponsiveReactGridLayoutProps extends Omit<Responsive
11
11
  measureBeforeMount?: boolean;
12
12
  }
13
13
  declare type MinimalParameters = Pick<CoreProps, 'containerWidth' | 'containerHeight' | 'innerRef' | 'style' | 'className'>;
14
- export declare function WidthProvider<T extends MinimalParameters>(ComposedComponent: FunctionComponent<T>): (props: Omit<T, 'containerWidth' | 'containerHeight' | 'innerRef'> & HOCProps) => import("react").JSX.Element;
14
+ export declare function SizeProvider<T extends MinimalParameters>(ComposedComponent: FunctionComponent<T>): (props: Omit<T, 'containerWidth' | 'containerHeight' | 'innerRef'> & HOCProps) => import("react").JSX.Element;
15
15
  export {};
@@ -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;
@@ -226,6 +226,12 @@ export interface CoreProps {
226
226
  * Valor por defecto: false
227
227
  */
228
228
  autoSize?: boolean | undefined;
229
+ /**
230
+ * A CSS selector for tags that will act as the draggable handle.
231
+ * For example: `draggableHandle: '.MyDragHandleClassName'`
232
+ * If you forget the leading . it will not work.
233
+ */
234
+ draggableHandle?: string | undefined;
229
235
  /**
230
236
  * A CSS selector for tags that will not be draggable.
231
237
  * For example: `draggableCancel: '.MyNonDraggableAreaClassName'`
@@ -234,15 +240,10 @@ export interface CoreProps {
234
240
  * Valor por defecto:
235
241
  */
236
242
  draggableCancel?: string | undefined;
237
- /**
238
- * A CSS selector for tags that will act as the draggable handle.
239
- * For example: `draggableHandle: '.MyDragHandleClassName'`
240
- * If you forget the leading . it will not work.
241
- */
242
- draggableHandle?: string | undefined;
243
243
  /**
244
244
  * Compaction type.
245
245
  * Valor por defecto: 'vertical'
246
+ * TODO: Incluir compactación amabas
246
247
  */
247
248
  compactType?: CompactType;
248
249
  /**
@@ -264,10 +265,6 @@ export interface CoreProps {
264
265
  w: number;
265
266
  h: number;
266
267
  } | undefined;
267
- /**
268
- * If true, the layout will compact vertically.
269
- */
270
- verticalCompact?: boolean | undefined;
271
268
  /**
272
269
  * Default Infinity, but you can specify a max here if you like.
273
270
  * Note that this isn't fully fleshed out and won't error if you specify a layout that
@@ -337,7 +334,7 @@ export interface CoreProps {
337
334
  /**
338
335
  * Defines custom component for resize handle
339
336
  */
340
- resizeHandle?: React.ReactNode | ((resizeHandle: ResizeHandle) => React.ReactNode);
337
+ resizeHandle?: React.ReactNode;
341
338
  /**
342
339
  * Calls when drag starts.
343
340
  */
@@ -27,8 +27,7 @@ export declare function compactItem(compareWith: Layout, l: LayoutItem, compactT
27
27
  * Does not modify layout items (clones). Creates a new layout array.
28
28
  *
29
29
  * @param {Array} layout Layout.
30
- * @param {Boolean} verticalCompact Whether or not to compact the layout
31
- * vertically.
30
+ * @param {CompactType} compactType
32
31
  * @param {Boolean} allowOverlap When `true`, allows overlapping grid items.
33
32
  * @return {Array} Compacted Layout.
34
33
  */
@@ -1,25 +1,25 @@
1
1
  import { styled, generateUtilityClasses, generateUtilityClass } from "@mui/material";
2
2
  import "react";
3
3
  import "@m4l/core";
4
- import "../Icon/index.2414ff25.js";
4
+ import "../Icon/index.d1402200.js";
5
5
  import "clsx";
6
6
  import { jsx } from "react/jsx-runtime";
7
- import "../mui_extended/IconButton/index.a318316e.js";
7
+ import "../mui_extended/IconButton/index.62aea582.js";
8
8
  import "@m4l/graphics";
9
- import "../mui_extended/Accordion/index.42cef1c7.js";
9
+ import "../mui_extended/Accordion/index.46771196.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.5f6c78b0.js";
15
+ import "../mui_extended/CheckBox.38abccd8.js";
16
16
  import "../mui_extended/Badge/index.cad260fe.js";
17
17
  import "../Image/index.c18ebf5a.js";
18
18
  import "@mui/lab";
19
- import "../mui_extended/MenuActions/index.f6bfdd40.js";
19
+ import "../mui_extended/MenuActions/index.2493b1b1.js";
20
20
  import "../mui_extended/Popover/index.9f35d0eb.js";
21
- import "../mui_extended/Pager/index.da26e9d4.js";
22
- import "../mui_extended/Tab/index.0d5f96e6.js";
21
+ import "../mui_extended/Pager/index.a7f87c96.js";
22
+ import "../mui_extended/Tab/index.756fe693.js";
23
23
  import "../mui_extended/Tooltip/index.5a795dcd.js";
24
24
  import { unstable_composeClasses } from "@mui/base";
25
25
  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.72564ef2.js";
6
+ import { u as useSideBar, g as getNameDataTestId$1 } from "../SideBar/index.327679a6.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")(({