@m4l/components 0.2.26 → 0.2.28

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 (117) hide show
  1. package/components/AccountPopover/{index.e31fc908.js → index.7b7f3962.js} +1 -1
  2. package/components/AppBar/{index.4945897e.js → index.cb2f1763.js} +2 -2
  3. package/components/CommonActions/components/ActionCancel/{index.33a748be.js → index.e03455db.js} +2 -2
  4. package/components/CommonActions/components/ActionFormCancel/{index.9a965204.js → index.9120552e.js} +4 -4
  5. package/components/CommonActions/components/ActionFormIntro/{index.7add0125.js → index.48e7d28a.js} +2 -2
  6. package/components/CommonActions/components/ActionIntro/{index.ac7cd0ee.js → index.5ba2ef5f.js} +2 -2
  7. package/components/DataGrid/formatters/ColumnBooleanFormatter/{index.f731d23f.js → index.ce8c7b9c.js} +1 -1
  8. package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/{index.ad82747c.js → index.3a1ae54f.js} +1 -1
  9. package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/{index.64854fdd.js → index.de32e830.js} +1 -1
  10. package/components/DataGrid/{index.1c695ed3.js → index.690184a8.js} +3 -3
  11. package/components/DataGrid/subcomponents/Actions/{index.4a402633.js → index.339ccf42.js} +10 -10
  12. package/components/DragResizeWindow/{index.f84451f8.js → index.be2fc1e0.js} +1 -1
  13. package/components/DynamicFilter/{index.22ba3195.js → index.ad2460cf.js} +12 -10
  14. package/components/FieldLabel/{index.1da2a28d.js → index.61d55577.js} +1 -1
  15. package/components/GridLayout/subcomponents/Responsive/{index.0fd1b7f8.js → index.d2ec9ddb.js} +1 -0
  16. package/components/HamburgerMenu/{index.1663edef.js → index.9f99b7c1.js} +2 -2
  17. package/components/Icon/{index.8c744412.js → index.1976cb37.js} +8 -48
  18. package/components/Icon/types.d.ts +0 -5
  19. package/components/Image/classes/index.d.ts +7 -0
  20. package/components/Image/{utils/classes → classes}/types.d.ts +0 -5
  21. package/components/Image/index.fd6f2c5f.js +203 -0
  22. package/components/Image/tests/utils.d.ts +1 -1
  23. package/components/Image/types.d.ts +3 -43
  24. package/components/LanguagePopover/{index.80896e49.js → index.f90fd1dc.js} +2 -3
  25. package/components/LoadingError/{index.9c64680a.js → index.2aa5daba.js} +2 -2
  26. package/components/MFLoader/{index.7cd7c372.js → index.1e56a845.js} +1 -1
  27. package/components/ModalDialog/{index.ce0f4d16.js → index.86de725b.js} +2 -2
  28. package/components/NoItemSelected/{index.ffba558b.js → index.16ff4e09.js} +1 -1
  29. package/components/ObjectLogs/{index.dd6a5009.js → index.d200ba38.js} +5 -5
  30. package/components/PDFViewer/{index.093ddd35.js → index.3bffbae3.js} +1 -1
  31. package/components/Page/{index.1b20a73e.js → index.026d463c.js} +1 -1
  32. package/components/PaperForm/{index.42e78a24.js → index.fe630839.js} +1 -1
  33. package/components/Period/{index.6e8d92dc.js → index.b6fa6ce6.js} +2 -2
  34. package/components/PrintingSystem/{index.c2d21657.js → index.02517f9c.js} +12 -12
  35. package/components/PrintingSystem/subcomponents/BodyNode/{index.c7b59f3f.js → index.0abc77a8.js} +1 -1
  36. package/components/PrintingSystem/subcomponents/ChartNode/{index.263f02f0.js → index.293e44cd.js} +1 -1
  37. package/components/PrintingSystem/subcomponents/DividerNode/{index.f00c44f3.js → index.3a2363d4.js} +1 -1
  38. package/components/PrintingSystem/subcomponents/FooterNode/{index.fb323704.js → index.fc1466e0.js} +1 -1
  39. package/components/PrintingSystem/subcomponents/GridNode/{index.1ed935be.js → index.ca2cc635.js} +1 -1
  40. package/components/PrintingSystem/subcomponents/HeaderNode/{index.5173c74a.js → index.5ae4e58e.js} +1 -1
  41. package/components/PrintingSystem/subcomponents/PaperNode/{index.fad64696.js → index.251d9664.js} +1 -1
  42. package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.3a3e5fd0.js → index.45054100.js} +1 -1
  43. package/components/PrintingSystem/subcomponents/SectionNode/{index.2890fc12.js → index.cfd21ea3.js} +1 -1
  44. package/components/PrintingSystem/subcomponents/TextBoxNode/{index.148708e6.js → index.0f22f144.js} +1 -1
  45. package/components/PropertyValue/{index.4ea5af0f.js → index.041a0585.js} +1 -1
  46. package/components/SideBar/classes/index.d.ts +1 -0
  47. package/components/SideBar/classes/types.d.ts +1 -0
  48. package/components/SideBar/{index.141dac10.js → index.3ea827ea.js} +13 -29
  49. package/components/SideBar/subcomponents/ContentGroups/index.d.ts +1 -1
  50. package/components/ToastContainer/{index.98c4873e.js → index.ee15bfce.js} +2 -2
  51. package/components/areas/components/AreasAdmin/{index.debe3e3d.js → index.01ea7058.js} +13 -13
  52. package/components/areas/components/AreasViewer/{index.82a22acb.js → index.71038f0e.js} +75 -189
  53. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/WindowHeaderSkeleton/index.d.ts +2 -0
  54. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/WindowHeaderSkeleton/types.d.ts +3 -0
  55. package/components/areas/contexts/AreasContext/helper.d.ts +2 -2
  56. package/components/areas/contexts/AreasContext/{index.0dc69929.js → index.cc89c1a7.js} +5 -5
  57. package/components/areas/hooks/useAreas/{index.ca15a4b6.js → index.32c7a909.js} +1 -1
  58. package/components/commercial/TopBar/{index.32a332c4.js → index.6493e8ab.js} +3 -3
  59. package/components/formatters/BooleanFormatter/{index.0703a256.js → index.477c6419.js} +2 -2
  60. package/components/formatters/{index.94be7098.js → index.ac0a547b.js} +1 -1
  61. package/components/hook-form/RHFAutocomplete/classes/types.d.ts +1 -0
  62. package/components/hook-form/RHFAutocomplete/{index.993794f8.js → index.24e4387c.js} +22 -15
  63. package/components/hook-form/RHFAutocomplete/types.d.ts +2 -1
  64. package/components/hook-form/RHFAutocompleteAsync/{index.924c6473.js → index.0cc78417.js} +1 -1
  65. package/components/hook-form/RHFCheckbox/classes/types.d.ts +2 -0
  66. package/components/hook-form/RHFCheckbox/{index.f1fd5789.js → index.22648b5a.js} +20 -3
  67. package/components/hook-form/RHFCheckbox/types.d.ts +2 -0
  68. package/components/hook-form/RHFColorPicker/classes/types.d.ts +2 -0
  69. package/components/hook-form/RHFColorPicker/{index.60b50052.js → index.d02de5ee.js} +24 -6
  70. package/components/hook-form/RHFColorPicker/types.d.ts +2 -0
  71. package/components/hook-form/RHFDateTime/classes/types.d.ts +1 -0
  72. package/components/hook-form/RHFDateTime/{index.2396ea4a.js → index.f02f1122.js} +19 -12
  73. package/components/hook-form/RHFDateTime/types.d.ts +2 -1
  74. package/components/hook-form/RHFPeriod/classes/index.d.ts +2 -1
  75. package/components/hook-form/RHFPeriod/classes/types.d.ts +2 -0
  76. package/components/hook-form/RHFPeriod/index.5ca467ac.js +112 -0
  77. package/components/hook-form/RHFPeriod/types.d.ts +4 -0
  78. package/components/hook-form/RHFTextField/classes/types.d.ts +1 -0
  79. package/components/hook-form/RHFTextField/{index.fb0d1cac.js → index.81c4b52b.js} +21 -15
  80. package/components/hook-form/RHFTextField/types.d.ts +2 -1
  81. package/components/hook-form/RHFUpload/{index.e5f734b8.js → index.f6c5027f.js} +2 -2
  82. package/components/modal/{WindowBase.dd1d2d7b.js → WindowBase.f38260ec.js} +3 -3
  83. package/components/modal/{WindowConfirm.4501497a.js → WindowConfirm.67ee36e9.js} +6 -6
  84. package/components/mui_extended/Accordion/{index.4393eca9.js → index.a55875a5.js} +2 -2
  85. package/components/mui_extended/Button/{index.93389adb.js → index.c6befaeb.js} +3 -7
  86. package/components/mui_extended/{CheckBox.840a443f.js → CheckBox.d676424c.js} +1 -1
  87. package/components/mui_extended/IconButton/classes/types.d.ts +0 -1
  88. package/components/mui_extended/IconButton/{index.383f5496.js → index.63a9d74c.js} +2 -5
  89. package/components/mui_extended/IconButton/types.d.ts +1 -1
  90. package/components/mui_extended/ImageButton/ImageButton.d.ts +1 -1
  91. package/components/mui_extended/MenuActions/{index.e6e3aac8.js → index.bca14ad9.js} +2 -2
  92. package/components/mui_extended/Pager/{index.5791276c.js → index.a024f67b.js} +1 -1
  93. package/components/mui_extended/ToggleButton/{index.4ac1f974.js → index.3f8bcf51.js} +1 -1
  94. package/components/mui_extended/ToggleIconButton/{index.8ca0114f.js → index.04375093.js} +1 -1
  95. package/contexts/ModalContext/{index.dde4e35a.js → index.e748f329.js} +1 -1
  96. package/hooks/index.d.ts +1 -0
  97. package/hooks/useFormAddEdit/{index.7fdad61d.js → index.649004a5.js} +2 -2
  98. package/hooks/useFormFocus/index.d.ts +7 -0
  99. package/hooks/useFormFocus/types.d.ts +8 -0
  100. package/hooks/useModal/{index.2f1d6a07.js → index.66a0c82e.js} +1 -1
  101. package/index.js +78 -77
  102. package/{node_modules.585eab0e.js → node_modules.4d80a09c.js} +1 -1
  103. package/package.json +1 -1
  104. package/{vendor.173d0b89.js → vendor.aa97e825.js} +79 -60
  105. package/components/Image/index.39b3b9d9.js +0 -387
  106. package/components/Image/subcomponents/BasicIntersectComponent/index.d.ts +0 -3
  107. package/components/Image/subcomponents/LazyLoadComponent/index.d.ts +0 -7
  108. package/components/Image/subcomponents/Skeleton/index.d.ts +0 -2
  109. package/components/Image/subcomponents/Skeleton/types.d.ts +0 -6
  110. package/components/Image/utils/classes/index.d.ts +0 -12
  111. package/components/Image/utils/isIntersectionObserverAvailable.d.ts +0 -1
  112. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/skeleton.d.ts +0 -1
  113. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/WindowPopUpsList/index.d.ts +0 -2
  114. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/WindowPopUpsList/types.d.ts +0 -2
  115. package/components/hook-form/RHFPeriod/index.011965ef.js +0 -90
  116. package/components/CommonActions/components/Actions/{index.389f9b28.js → index.16946bfd.js} +11 -11
  117. /package/components/Image/{utils/classes → classes}/constant.d.ts +0 -0
@@ -7,7 +7,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
7
7
  import { A as Avatar } from "../mui_extended/Avatar/index.75e6ed57.js";
8
8
  import { C as CircularProgress } from "../mui_extended/CircularProgress/index.ad569afd.js";
9
9
  import { P as Popover } from "../mui_extended/Popover/index.d85de73b.js";
10
- import { I as Icon } from "../Icon/index.8c744412.js";
10
+ import { I as Icon } from "../Icon/index.1976cb37.js";
11
11
  import clsx from "clsx";
12
12
  const componentName = "M4LAccountPopover";
13
13
  generateUtilityClasses(componentName, [
@@ -4,9 +4,9 @@ import { useEnvironment, useModuleDictionary } from "@m4l/core";
4
4
  import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
5
5
  import { unstable_composeClasses } from "@mui/base";
6
6
  import { jsxs, jsx } from "react/jsx-runtime";
7
- import { I as Image } from "../Image/index.39b3b9d9.js";
7
+ import { I as Image } from "../Image/index.fd6f2c5f.js";
8
8
  import { T as Typography } from "../mui_extended/Typography/index.379dd374.js";
9
- import { I as IconButton } from "../mui_extended/IconButton/index.383f5496.js";
9
+ import { I as IconButton } from "../mui_extended/IconButton/index.63a9d74c.js";
10
10
  const AppBarRoot = styled("header")(({
11
11
  theme
12
12
  }) => ({
@@ -1,6 +1,6 @@
1
1
  import { useModuleDictionary } from "@m4l/core";
2
- import { B as Button } from "../../../mui_extended/Button/index.93389adb.js";
3
- import { u as useCommonActionsUtilityClasses } from "../Actions/index.389f9b28.js";
2
+ import { B as Button } from "../../../mui_extended/Button/index.c6befaeb.js";
3
+ import { u as useCommonActionsUtilityClasses } from "../Actions/index.16946bfd.js";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  const ActionCancel = (props) => {
6
6
  const {
@@ -1,12 +1,12 @@
1
1
  import { useFormContext, useFormState } from "react-hook-form";
2
2
  import { useModuleDictionary } from "@m4l/core";
3
- import { B as Button } from "../../../mui_extended/Button/index.93389adb.js";
3
+ import { B as Button } from "../../../mui_extended/Button/index.c6befaeb.js";
4
4
  import { useCallback, useEffect } from "react";
5
- import { u as useModal } from "../../../../hooks/useModal/index.2f1d6a07.js";
6
- import { u as useCommonActionsUtilityClasses } from "../Actions/index.389f9b28.js";
5
+ import { u as useModal } from "../../../../hooks/useModal/index.66a0c82e.js";
6
+ import { u as useCommonActionsUtilityClasses } from "../Actions/index.16946bfd.js";
7
7
  import { jsx } from "react/jsx-runtime";
8
8
  import { u as useWindowToolsMF } from "../../../areas/hooks/useWindowToolsMF/index.b7afaf88.js";
9
- import { W as WindowConfirm } from "../../../modal/WindowConfirm.4501497a.js";
9
+ import { W as WindowConfirm } from "../../../modal/WindowConfirm.67ee36e9.js";
10
10
  function ActionFormCancel() {
11
11
  const {
12
12
  getLabel
@@ -1,8 +1,8 @@
1
1
  import { useFormContext, useFormState } from "react-hook-form";
2
2
  import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
3
3
  import { Skeleton } from "@mui/material";
4
- import { L as LoadingButton } from "../../../mui_extended/Button/index.93389adb.js";
5
- import { u as useCommonActionsUtilityClasses } from "../Actions/index.389f9b28.js";
4
+ import { L as LoadingButton } from "../../../mui_extended/Button/index.c6befaeb.js";
5
+ import { u as useCommonActionsUtilityClasses } from "../Actions/index.16946bfd.js";
6
6
  import { jsx } from "react/jsx-runtime";
7
7
  function ActionFormIntro(props) {
8
8
  const {
@@ -1,7 +1,7 @@
1
1
  import { useModuleDictionary } from "@m4l/core";
2
- import { B as Button } from "../../../mui_extended/Button/index.93389adb.js";
2
+ import { B as Button } from "../../../mui_extended/Button/index.c6befaeb.js";
3
3
  import { T as TEST_PROP_ID } from "../../../../test/constants_no_mock.86c553a9.js";
4
- import { u as useCommonActionsUtilityClasses } from "../Actions/index.389f9b28.js";
4
+ import { u as useCommonActionsUtilityClasses } from "../Actions/index.16946bfd.js";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
  const ACTIONINTRO_TEST_ID = "m4lactions";
7
7
  const ActionIntro = (props) => {
@@ -1,6 +1,6 @@
1
1
  import { getPropertyByString } from "@m4l/core";
2
2
  import { jsx } from "react/jsx-runtime";
3
- import { B as BooleanFormatter } from "../../../formatters/BooleanFormatter/index.0703a256.js";
3
+ import { B as BooleanFormatter } from "../../../formatters/BooleanFormatter/index.477c6419.js";
4
4
  function ColumnBooleanFormatter(props) {
5
5
  const {
6
6
  fieldValue,
@@ -1,6 +1,6 @@
1
1
  import { getPropertyByString } from "@m4l/core";
2
2
  import { jsx } from "react/jsx-runtime";
3
- import { C as ConcatenatedFormatter } from "../../../formatters/index.94be7098.js";
3
+ import { C as ConcatenatedFormatter } from "../../../formatters/index.ac0a547b.js";
4
4
  function ColumnConcatenatedValueFormatter(props) {
5
5
  const {
6
6
  fieldValue,
@@ -1,5 +1,5 @@
1
1
  import { Checkbox } from "@mui/material";
2
- import { d as dataGridClasses } from "../../index.1c695ed3.js";
2
+ import { d as dataGridClasses } from "../../index.690184a8.js";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  function ColumnInteractiveCheckFormatter(props) {
5
5
  const {
@@ -1,5 +1,5 @@
1
- import { g as getModalDialogComponentsDictionary } from "../ModalDialog/index.ce0f4d16.js";
2
- import { g as getPagerComponentsDictionary } from "../mui_extended/Pager/index.5791276c.js";
1
+ import { g as getModalDialogComponentsDictionary } from "../ModalDialog/index.86de725b.js";
2
+ import { g as getPagerComponentsDictionary } from "../mui_extended/Pager/index.a024f67b.js";
3
3
  import { styled, SvgIcon, Checkbox, InputBase, Skeleton, generateUtilityClasses, generateUtilityClass } from "@mui/material";
4
4
  import { forwardRef, createContext, useState, useMemo, useEffect, useCallback, useContext, useRef, useLayoutEffect } from "react";
5
5
  import { u as useRowSelection, S as SelectCellFormatter, H as HeaderRenderer, D as DataGrid$1 } from "../../react-data-grid.c5377916.js";
@@ -8,7 +8,7 @@ import { HTML5Backend } from "react-dnd-html5-backend";
8
8
  import { jsx, jsxs } from "react/jsx-runtime";
9
9
  import { D as DATAGRID_SELECT_COLUMN_KEY, c as componentName, a as DATAGRID_PREFIX_NAME } from "./constants.e334cd50.js";
10
10
  import { voidFunction, useModuleDictionary, useModuleSkeleton, getPropertyByString } from "@m4l/core";
11
- import { A as ActionsColumn, a as Actions } from "./subcomponents/Actions/index.4a402633.js";
11
+ import { A as ActionsColumn, a as Actions } from "./subcomponents/Actions/index.339ccf42.js";
12
12
  import { unstable_composeClasses } from "@mui/base";
13
13
  import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
14
14
  import { g as getNameDataTestId } from "../../test/getNameDataTestId.14875ec7.js";
@@ -1,20 +1,20 @@
1
- import { M as MenuActions } from "../../../mui_extended/MenuActions/index.e6e3aac8.js";
2
- import { u as useDataGrid, a as useFilters, D as DataGridRoot, b as dictionary } from "../../index.1c695ed3.js";
1
+ import { M as MenuActions } from "../../../mui_extended/MenuActions/index.bca14ad9.js";
2
+ import { u as useDataGrid, a as useFilters, D as DataGridRoot, b as dictionary } from "../../index.690184a8.js";
3
3
  import { useTheme, styled, Skeleton } from "@mui/material";
4
4
  import { b as DATAGRID_ACTIONS_COLUMN_KEY } from "../../constants.e334cd50.js";
5
5
  import { jsx, Fragment, jsxs } from "react/jsx-runtime";
6
- import { P as Pager } from "../../../mui_extended/Pager/index.5791276c.js";
7
- import { I as IconButton } from "../../../mui_extended/IconButton/index.383f5496.js";
6
+ import { P as Pager } from "../../../mui_extended/Pager/index.a024f67b.js";
7
+ import { I as IconButton } from "../../../mui_extended/IconButton/index.63a9d74c.js";
8
8
  import { useEnvironment, useModuleDictionary, useModuleSkeleton } from "@m4l/core";
9
9
  import { forwardRef, useRef, useState, useImperativeHandle, useMemo, useEffect, useCallback } from "react";
10
10
  import { D as DataGrid$1 } from "../../../../react-data-grid.c5377916.js";
11
- import { C as ColumnInteractiveCheckFormatter } from "../../formatters/ColumnInteractiveCheckFormatter/index.64854fdd.js";
12
- import { u as useModal } from "../../../../hooks/useModal/index.2f1d6a07.js";
13
- import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.33a748be.js";
14
- import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.ac7cd0ee.js";
11
+ import { C as ColumnInteractiveCheckFormatter } from "../../formatters/ColumnInteractiveCheckFormatter/index.de32e830.js";
12
+ import { u as useModal } from "../../../../hooks/useModal/index.66a0c82e.js";
13
+ import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.e03455db.js";
14
+ import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.5ba2ef5f.js";
15
15
  import { useResponsiveDesktop } from "@m4l/graphics";
16
- import { W as WindowBase } from "../../../modal/WindowBase.dd1d2d7b.js";
17
- import { A as Actions$1 } from "../../../CommonActions/components/Actions/index.389f9b28.js";
16
+ import { W as WindowBase } from "../../../modal/WindowBase.f38260ec.js";
17
+ import { A as Actions$1 } from "../../../CommonActions/components/Actions/index.16946bfd.js";
18
18
  function ActionsFormatter(props) {
19
19
  const {
20
20
  rowActionsGetter,
@@ -2,7 +2,7 @@ import React__default, { useState, useRef, useCallback, useEffect, useMemo } fro
2
2
  import { D as DraggableCore_1 } from "../../react-draggable.ee21cb7e.js";
3
3
  import clsx from "clsx";
4
4
  import { styled, generateUtilityClasses } from "@mui/material";
5
- import { M as MAP_ZINDEX_OVER_MAP } from "../../vendor.173d0b89.js";
5
+ import { M as MAP_ZINDEX_OVER_MAP } from "../../vendor.aa97e825.js";
6
6
  import "@mui/base";
7
7
  import { M as MAP_ZINDEX_OVER_MAP$1 } from "../PopupsProvider/index.3d5ad0ee.js";
8
8
  import { R as Resizable } from "../../react-resizable.ee028152.js";
@@ -7,26 +7,26 @@ import { g as getComponentUtilityClass, i as isValidDate } from "../../utils/ind
7
7
  import { devtools } from "zustand/middleware";
8
8
  import { immer } from "zustand/middleware/immer";
9
9
  import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
10
- import { g as getCommonActionsDictionary, A as Actions } from "../CommonActions/components/Actions/index.389f9b28.js";
11
- import { g as getRHFAutocompleteComponentsDictionary, R as RHFAutocomplete } from "../hook-form/RHFAutocomplete/index.993794f8.js";
10
+ import { g as getCommonActionsDictionary, A as Actions } from "../CommonActions/components/Actions/index.16946bfd.js";
11
+ import { g as getRHFAutocompleteComponentsDictionary, R as RHFAutocomplete } from "../hook-form/RHFAutocomplete/index.24e4387c.js";
12
12
  import { g as getNameDataTestId } from "../../test/getNameDataTestId.14875ec7.js";
13
13
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
14
14
  import { useFormContext, useWatch } from "react-hook-form";
15
15
  import { shallow } from "zustand/shallow";
16
- import { R as RHFDateTime } from "../hook-form/RHFDateTime/index.2396ea4a.js";
17
- import { R as RHFTextField } from "../hook-form/RHFTextField/index.fb0d1cac.js";
16
+ import { R as RHFDateTime } from "../hook-form/RHFDateTime/index.f02f1122.js";
17
+ import { R as RHFTextField } from "../hook-form/RHFTextField/index.81c4b52b.js";
18
18
  import * as Yup from "yup";
19
19
  import { useResponsiveDesktop, useFirstRender, useFormatter } from "@m4l/graphics";
20
20
  import { S as ScrollBar } from "../ScrollBar/index.7dfc2f29.js";
21
21
  import clsx from "clsx";
22
- import { I as IconButton } from "../mui_extended/IconButton/index.383f5496.js";
23
- import { L as LabelMemuItem } from "../mui_extended/MenuActions/index.e6e3aac8.js";
22
+ import { I as IconButton } from "../mui_extended/IconButton/index.63a9d74c.js";
23
+ import { L as LabelMemuItem } from "../mui_extended/MenuActions/index.bca14ad9.js";
24
24
  import { P as Popover } from "../mui_extended/Popover/index.d85de73b.js";
25
- import { I as Icon } from "../Icon/index.8c744412.js";
25
+ import { I as Icon } from "../Icon/index.1976cb37.js";
26
26
  import { useTheme } from "@mui/material/styles";
27
27
  import { R as RHFormProvider } from "../../contexts/RHFormContext/index.7b2a8723.js";
28
- import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.33a748be.js";
29
- import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.ac7cd0ee.js";
28
+ import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.e03455db.js";
29
+ import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.5ba2ef5f.js";
30
30
  import { T as Typography } from "../mui_extended/Typography/index.379dd374.js";
31
31
  const COMPONENT_PREFIX = "M4LDynamicFilter";
32
32
  const COMPONENT_CLASS_NAME = "M4LDynamicFilter";
@@ -1313,6 +1313,7 @@ const ClearFiltersButton = () => {
1313
1313
  } = useEnvironment();
1314
1314
  const {
1315
1315
  clearFilters,
1316
+ fireOnChangeFilters,
1316
1317
  hidePopoverFilter: hidePopupEdit
1317
1318
  } = useDynamicFilter((state) => state.actions);
1318
1319
  const applyedFilters = useDynamicFilter((state) => state.applyedFilters, shallow);
@@ -1331,6 +1332,7 @@ const ClearFiltersButton = () => {
1331
1332
  const onClickClearFilters = () => {
1332
1333
  hidePopupEdit(false);
1333
1334
  clearFilters();
1335
+ fireOnChangeFilters();
1334
1336
  };
1335
1337
  if (applyedFilters.findIndex((f) => f.fixed == false) > -1) {
1336
1338
  return /* @__PURE__ */ jsx(IconButton, {
@@ -1590,7 +1592,7 @@ function InputFilter() {
1590
1592
  }), /* @__PURE__ */ jsx(Skeleton, {
1591
1593
  variant: "text",
1592
1594
  width: "100%",
1593
- height: 24
1595
+ height: "16px"
1594
1596
  })]
1595
1597
  }), /* @__PURE__ */ jsx(PopoverMenuFields, {
1596
1598
  selectFieldIndex,
@@ -5,7 +5,7 @@ import { g as getComponentUtilityClass } from "../../utils/index.de903261.js";
5
5
  import clsx from "clsx";
6
6
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
7
7
  import { T as Typography } from "../mui_extended/Typography/index.379dd374.js";
8
- import { I as Icon } from "../Icon/index.8c744412.js";
8
+ import { I as Icon } from "../Icon/index.1976cb37.js";
9
9
  const FieldLabelRoot = styled("label")(({ theme }) => ({
10
10
  ...theme.components?.M4LFieldLabel?.styleOverrides
11
11
  }));
@@ -169,6 +169,7 @@ function generateInitialState(props) {
169
169
  initialColapsedHeight,
170
170
  initialrowHeight
171
171
  );
172
+ console.log("initialLayout", initialLayout);
172
173
  if (defaultLayouts[newBreakpoint]) {
173
174
  if (isEqualLayout(defaultLayouts[newBreakpoint], initialLayout)) {
174
175
  fireOnLoadLayoutChange = false;
@@ -5,8 +5,8 @@ import { unstable_composeClasses } from "@mui/base";
5
5
  import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
6
6
  import { useEnvironment } from "@m4l/core";
7
7
  import { jsxs, jsx } from "react/jsx-runtime";
8
- import { S as SideBar } from "../SideBar/index.141dac10.js";
9
- import { I as IconButton } from "../mui_extended/IconButton/index.383f5496.js";
8
+ import { S as SideBar } from "../SideBar/index.3ea827ea.js";
9
+ import { I as IconButton } from "../mui_extended/IconButton/index.63a9d74c.js";
10
10
  const HamburgerMenuRoot = styled("header")(({
11
11
  theme
12
12
  }) => ({
@@ -1,7 +1,7 @@
1
- import React__default, { useState, useEffect } from "react";
1
+ import React__default from "react";
2
2
  import { useEnvironment } from "@m4l/core";
3
- import { styled, generateUtilityClasses, generateUtilityClass, Skeleton } from "@mui/material";
4
- import { u as useSideBar, g as getNameDataTestId$1 } from "../SideBar/index.141dac10.js";
3
+ import { styled, generateUtilityClasses, generateUtilityClass } from "@mui/material";
4
+ import { u as useSideBar, g as getNameDataTestId$1 } from "../SideBar/index.3ea827ea.js";
5
5
  import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
6
6
  import { jsx } from "react/jsx-runtime";
7
7
  import { unstable_composeClasses } from "@mui/base";
@@ -22,8 +22,8 @@ const DivIcon = styled("div", {
22
22
  maskRepeat: "no-repeat",
23
23
  maskSize: "cover",
24
24
  WebkitMaskRepeat: "no-repeat",
25
- mask: `url('data:image/svg+xml;base64,${src}')`,
26
- WebkitMask: `url('data:image/svg+xml;base64,${src}')`,
25
+ mask: `url(${src})`,
26
+ WebkitMask: `url(${src})`,
27
27
  WebkitMaskSize: "cover",
28
28
  ...rotationAngle && {
29
29
  transform: `rotate(${rotationAngle}deg)`
@@ -64,66 +64,26 @@ function Icon(props) {
64
64
  src,
65
65
  size = "small",
66
66
  rotationAngle,
67
- testingProps,
68
- className,
69
- memorizeResource = true
67
+ className
70
68
  } = props;
71
- const [resource, setResource] = useState(testingProps?.resource || void 0);
72
69
  const isDesktop = useResponsiveDesktop();
73
- if (memorizeResource) {
74
- useEffect(() => {
75
- let mounted = true;
76
- (async function networkOperation() {
77
- await fetch(src).then((response) => {
78
- return response.text() || "";
79
- }).then((xml) => {
80
- xml = xml.match(
81
- /(<svg\b[^>]*\s*(viewBox="(\b[^"]*)").*?>([\s\S]*?)<\/svg>|<svg>([\s\S]*?)<\/svg>)/g
82
- )?.toString() || "";
83
- if (mounted) {
84
- setResource(window.btoa(xml));
85
- }
86
- }).catch((_err) => {
87
- });
88
- })();
89
- return function clenUp() {
90
- mounted = false;
91
- };
92
- }, [src]);
93
- }
94
70
  const ownerState = {
95
71
  size: isDesktop ? size : "medium",
96
72
  rotationAngle
97
73
  };
98
74
  const classes = useUtilityClasses(ownerState);
99
- if (!memorizeResource) {
100
- return /* @__PURE__ */ jsx(IconRoot, {
101
- className: clsx(classes.root, className),
102
- children: /* @__PURE__ */ jsx("img", {
103
- src,
104
- alt: src,
105
- className: ""
106
- })
107
- });
108
- }
109
75
  return /* @__PURE__ */ jsx(IconRoot, {
110
76
  className: clsx(classes.root, className),
111
77
  ...process.env.NODE_ENV !== "production" ? {
112
78
  [TEST_PROP_ID]: getNameDataTestId("root")
113
79
  } : {},
114
- children: resource ? /* @__PURE__ */ jsx(DivIcon, {
80
+ children: /* @__PURE__ */ jsx(DivIcon, {
115
81
  className: classes.icon,
116
- src: resource,
82
+ src,
117
83
  rotationAngle,
118
84
  ...process.env.NODE_ENV !== "production" ? {
119
85
  [TEST_PROP_ID]: getNameDataTestId("icon")
120
86
  } : {}
121
- }) : /* @__PURE__ */ jsx(Skeleton, {
122
- variant: "rectangular",
123
- className: classes.variantSkeleton,
124
- ...process.env.NODE_ENV !== "production" ? {
125
- [TEST_PROP_ID]: getNameDataTestId("variantSkeleton")
126
- } : {}
127
87
  })
128
88
  });
129
89
  }
@@ -1,14 +1,9 @@
1
1
  export declare type SizeIcon = 'small' | 'extraSmall' | 'medium' | 'large' | 'extraLarge';
2
- export interface TestingProps {
3
- resource: any;
4
- }
5
2
  export interface IconProps {
6
3
  src: string;
7
4
  size?: SizeIcon;
8
5
  rotationAngle?: number;
9
- testingProps?: TestingProps;
10
6
  className?: string;
11
- memorizeResource?: boolean;
12
7
  }
13
8
  export declare type DivIconProps = Pick<IconProps, 'src' | 'rotationAngle'>;
14
9
  export declare type WrapperPlaceHolderProps = {
@@ -0,0 +1,7 @@
1
+ import { ImageClassesType } from './types';
2
+ export declare const imageClasses: ImageClassesType;
3
+ export declare function getImagenClassesUtilityClass(slot: string): string;
4
+ export declare const useUtilityClasses: () => {
5
+ img: string;
6
+ root: string;
7
+ };
@@ -1,10 +1,5 @@
1
1
  export interface ImageClassesType {
2
2
  root: string;
3
- lazyLoad: string;
4
3
  img: string;
5
- span: string;
6
- skeletonImage: string;
7
- skeletonCircle: string;
8
- loaded: string;
9
4
  }
10
5
  export declare type ImageClassesKey = keyof ImageClassesType;
@@ -0,0 +1,203 @@
1
+ import { styled, generateUtilityClasses, generateUtilityClass } from "@mui/material";
2
+ import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
3
+ import clsx from "clsx";
4
+ import { unstable_composeClasses } from "@mui/base";
5
+ import { jsx } from "react/jsx-runtime";
6
+ import { useBase, useEnvironment, evaluateWithContext } from "@m4l/core";
7
+ import { c as classes, g as getSize } from "../PrintingSystem/index.02517f9c.js";
8
+ import { Q as QRCode } from "../../node_modules.4d80a09c.js";
9
+ const ImageRoot = styled("div")(({
10
+ theme
11
+ }) => ({
12
+ ...theme.components?.M4LImage?.styleOverrides
13
+ }));
14
+ const ratioOptions = {
15
+ "1.168:1": {
16
+ width: 1.168,
17
+ height: 1
18
+ },
19
+ "16:9": {
20
+ width: 16,
21
+ height: 9
22
+ },
23
+ "1:1": {
24
+ width: 1,
25
+ height: 1
26
+ },
27
+ "1:1.168": {
28
+ width: 1,
29
+ height: 1.168
30
+ },
31
+ "2:1": {
32
+ width: 2,
33
+ height: 1
34
+ },
35
+ "2:3": {
36
+ width: 2,
37
+ height: 3
38
+ },
39
+ "3:1": {
40
+ width: 3,
41
+ height: 1
42
+ },
43
+ "3:2": {
44
+ width: 3,
45
+ height: 2
46
+ },
47
+ "3:4": {
48
+ width: 3,
49
+ height: 4
50
+ },
51
+ "4:3": {
52
+ width: 4,
53
+ height: 3
54
+ },
55
+ "5:2": {
56
+ width: 5,
57
+ height: 2
58
+ }
59
+ };
60
+ const getRatioValues = (ratio) => {
61
+ const numType = ratioOptions[ratio];
62
+ const numRef = numType.width / numType.height;
63
+ if (numRef >= 1) {
64
+ return {
65
+ width: "100%",
66
+ height: `${Math.trunc(numRef * 100)}%`
67
+ };
68
+ } else {
69
+ return {
70
+ width: `${Math.trunc(numRef * 100)}%`,
71
+ height: "100%"
72
+ };
73
+ }
74
+ };
75
+ const IMAGE_PREFIX = "Image";
76
+ const getNameDataTestId = (KEY) => {
77
+ return `${IMAGE_PREFIX}-${KEY}`;
78
+ };
79
+ const componentName = "M4LImage";
80
+ generateUtilityClasses(componentName, [
81
+ "root",
82
+ "img"
83
+ ]);
84
+ function getImagenClassesUtilityClass(slot) {
85
+ return generateUtilityClass(componentName, slot);
86
+ }
87
+ const useUtilityClasses = () => {
88
+ const slots = {
89
+ root: ["root"],
90
+ img: ["img"]
91
+ };
92
+ const composedClasses = unstable_composeClasses(slots, getImagenClassesUtilityClass, {});
93
+ return {
94
+ ...composedClasses
95
+ };
96
+ };
97
+ function Image(props) {
98
+ const {
99
+ src,
100
+ alt,
101
+ width,
102
+ height,
103
+ ratio = "1:1",
104
+ className
105
+ } = props;
106
+ const ratioImage = getRatioValues(ratio);
107
+ const classes2 = useUtilityClasses();
108
+ return /* @__PURE__ */ jsx(ImageRoot, {
109
+ className: clsx(classes2.root, className),
110
+ ...process.env.NODE_ENV !== "production" ? {
111
+ [TEST_PROP_ID]: getNameDataTestId("root")
112
+ } : {},
113
+ style: width && height ? {
114
+ minWidth: width,
115
+ minHeight: height,
116
+ width,
117
+ height
118
+ } : {
119
+ width: "100%",
120
+ height: "100%"
121
+ },
122
+ children: /* @__PURE__ */ jsx("img", {
123
+ alt,
124
+ src,
125
+ className: classes2.img,
126
+ width: !width ? "100%" : ratioImage.width,
127
+ height: !height ? "100%" : ratioImage.height,
128
+ ...process.env.NODE_ENV !== "production" ? {
129
+ [TEST_PROP_ID]: getNameDataTestId("img")
130
+ } : {}
131
+ })
132
+ });
133
+ }
134
+ const ImageNode = (props) => {
135
+ const {
136
+ className,
137
+ style,
138
+ src,
139
+ width = "100%",
140
+ height = "100%"
141
+ } = props;
142
+ const {
143
+ unitSize,
144
+ sourceData
145
+ } = useBase();
146
+ const {
147
+ host_static_assets,
148
+ environment_assets
149
+ } = useEnvironment();
150
+ const resourceImg = evaluateWithContext(sourceData, src);
151
+ return /* @__PURE__ */ jsx("img", {
152
+ src: `${host_static_assets}/${environment_assets}/${resourceImg}`,
153
+ className: clsx(classes.imageNodeRoot, className),
154
+ style: {
155
+ width: getSize(width, unitSize),
156
+ height: getSize(height, unitSize),
157
+ ...style
158
+ }
159
+ });
160
+ };
161
+ const convertToPx = (size, magnitud) => {
162
+ if (isNaN(size)) {
163
+ return 0;
164
+ }
165
+ if (magnitud === "px") {
166
+ return size;
167
+ }
168
+ switch (magnitud) {
169
+ case "cm":
170
+ return size * 37.8;
171
+ case "mm":
172
+ return size * 3.78;
173
+ case "in":
174
+ return size * 96;
175
+ case "pt":
176
+ return size * 1.33;
177
+ case "pc":
178
+ return size * 16;
179
+ default:
180
+ return 100;
181
+ }
182
+ };
183
+ const QRImageNode = (props) => {
184
+ const {
185
+ url,
186
+ size = 8,
187
+ color
188
+ } = props;
189
+ const {
190
+ unitSize
191
+ } = useBase();
192
+ return /* @__PURE__ */ jsx(QRCode, {
193
+ value: url,
194
+ size: convertToPx(size, unitSize),
195
+ fgColor: color,
196
+ renderAs: "canvas"
197
+ });
198
+ };
199
+ export {
200
+ Image as I,
201
+ QRImageNode as Q,
202
+ ImageNode as a
203
+ };
@@ -1,2 +1,2 @@
1
- import { ImageClassesKey } from "../utils/classes/types";
1
+ import { ImageClassesKey } from "../classes/types";
2
2
  export declare const getNameDataTestId: (KEY: ImageClassesKey) => string;
@@ -1,54 +1,14 @@
1
- import { ReactNode } from 'react';
2
- export declare type Effect = 'blur' | 'black-and-white' | 'opacity';
3
- export declare type ScrollPosition = {
4
- x: number;
5
- y: number;
6
- };
7
- export declare type IntersectComponentRef = HTMLSpanElement & {
8
- setIsVisible?: (visible: boolean) => void;
9
- };
10
- export interface TestingProps {
11
- statusLoad?: any;
12
- isVisible?: boolean;
13
- }
14
- export interface BaseImageProps {
15
- width?: string | number;
16
- height?: string | number;
17
- }
18
- export interface IntersectComponentProps extends BaseImageProps {
19
- setIsVisible: (visible: boolean) => void;
20
- threshold: number;
21
- useIntersectionObserver: boolean;
22
- scrollPosition?: ScrollPosition;
23
- }
24
- export interface IntersectComponentScrollProps extends IntersectComponentProps {
25
- delayMethod?: 'debounce' | 'throttle';
26
- delayTime?: number;
27
- }
28
- export interface LazyLoadComponentProps extends Pick<ImageProps, 'testingProps'>, Omit<IntersectComponentProps, 'setIsVisible'> {
29
- children: ReactNode;
30
- }
31
- export declare type SkeletonVariant = 'image' | 'circle';
32
1
  export declare type RatioOptions = '1.168:1' | '16:9' | '1:1' | '1:1.168' | '2:1' | '2:3' | '3:1' | '3:2' | '3:4' | '4:3' | '5:2';
33
2
  export interface ratioValues {
34
3
  width: number;
35
4
  height: number;
36
5
  }
37
- export interface ImageProps extends Omit<IntersectComponentProps, 'setIsVisible' | 'threshold' | 'useIntersectionObserver'> {
6
+ export interface ImageProps {
38
7
  src: string;
39
8
  alt?: string;
40
- threshold?: number;
41
- useIntersectionObserver?: boolean;
42
- skeletonVariant?: SkeletonVariant;
43
- testingProps?: TestingProps;
44
9
  ratio?: RatioOptions;
45
10
  className?: string;
46
- }
47
- export declare type StatusLoad = 'initial' | 'loaded' | 'removed';
48
- export interface OwnerState {
49
- isImageLoaded: boolean;
50
- }
51
- export interface BaseProviderIamgeType {
52
- classes: any;
11
+ width?: number | string;
12
+ height?: number | string;
53
13
  }
54
14
  export declare const ratioOptions: Record<RatioOptions, ratioValues>;