@m4l/components 1.1.1 → 2.0.0

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 (159) hide show
  1. package/@types/export.d.ts +0 -5
  2. package/@types/types.d.ts +9 -0
  3. package/components/AccountPopover/{index.dde11a5c.js → index.493dbab5.js} +3 -3
  4. package/components/AppBar/{index.19b11c19.js → index.4b2c02da.js} +4 -4
  5. package/components/BaseModule/{index.4b725d16.js → index.dba0d174.js} +1 -1
  6. package/components/CommonActions/components/ActionCancel/{index.c3cddacf.js → index.ce196f96.js} +2 -2
  7. package/components/CommonActions/components/ActionFormCancel/{index.3ec840af.js → index.d63f6a23.js} +4 -4
  8. package/components/CommonActions/components/ActionFormIntro/{index.3187e7a7.js → index.0daa98b8.js} +2 -2
  9. package/components/CommonActions/components/ActionIntro/{index.db2b2999.js → index.1c40d33b.js} +2 -2
  10. package/components/CommonActions/components/Actions/{index.84b8fd47.js → index.434f4824.js} +1 -1
  11. package/components/DataGrid/formatters/ColumnBooleanFormatter/{index.ea1b882e.js → index.0a3660c0.js} +1 -1
  12. package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/{index.cff633f6.js → index.4b1df4ab.js} +1 -1
  13. package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/{index.d2e656a0.js → index.37f4f359.js} +1 -1
  14. package/components/DataGrid/formatters/{index.4b65c281.js → index.91129d5e.js} +2 -2
  15. package/components/DataGrid/{index.9aa088f6.js → index.d538cef8.js} +4 -4
  16. package/components/DataGrid/subcomponents/Actions/{index.9416e750.js → index.8d2e96e7.js} +11 -11
  17. package/components/DragResizeWindow/classes/types.d.ts +1 -0
  18. package/components/DragResizeWindow/helpers/index.d.ts +3 -0
  19. package/components/DragResizeWindow/{index.8f5a2e3e.js → index.17e7059d.js} +50 -37
  20. package/components/DragResizeWindow/types.d.ts +7 -0
  21. package/components/DynamicFilter/{dictionary.e9ad0f7c.js → dictionary.f471309f.js} +2 -2
  22. package/components/DynamicFilter/{index.e737845f.js → index.a7e772f7.js} +4 -4
  23. package/components/DynamicFilter/slots/{dynamicFilterSlots.c6d731f1.js → dynamicFilterSlots.1e2dc145.js} +5 -5
  24. package/components/DynamicFilter/store/{index.7a5e5f6a.js → index.3733c18e.js} +1 -1
  25. package/components/DynamicFilter/subcomponents/AppliedFilterChip/{index.f714d323.js → index.5b952ba7.js} +3 -3
  26. package/components/DynamicFilter/subcomponents/AppliedFilters/{index.c4131ff0.js → index.e38ed08e.js} +4 -4
  27. package/components/DynamicFilter/subcomponents/DynamicFilterBase/{index.9be8d255.js → index.bbc1b1c0.js} +6 -6
  28. package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/{index.5caf5b34.js → index.b0a2c96e.js} +4 -2
  29. package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/{index.f5262ca2.js → index.2036b257.js} +4 -3
  30. package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/{index.f48b4af1.js → index.d7559fb2.js} +4 -3
  31. package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/{index.86de8517.js → index.d628de04.js} +5 -4
  32. package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/{index.1ba1cc22.js → index.804bb474.js} +4 -3
  33. package/components/DynamicFilter/subcomponents/FieldTypes/{index.8d2e925e.js → index.de33ba0a.js} +5 -5
  34. package/components/DynamicFilter/subcomponents/FilterActions/{index.066a32f4.js → index.c8c90968.js} +3 -3
  35. package/components/DynamicFilter/subcomponents/InputFilter/{index.f3f01ebc.js → index.1b95c167.js} +4 -4
  36. package/components/DynamicFilter/subcomponents/PopoverFilter/{index.7805f621.js → index.fd8a2421.js} +6 -6
  37. package/components/DynamicFilter/subcomponents/PopoverMenuFields/{index.d5efe247.js → index.9f07285e.js} +2 -2
  38. package/components/DynamicFilter/types.d.ts +1 -1
  39. package/components/FieldLabel/{index.a6235bcc.js → index.44f3e099.js} +3 -3
  40. package/components/GridLayout/{index.14b734d6.js → index.a9f419d8.js} +2 -2
  41. package/components/GridLayout/subcomponents/Griditem/{index.5c8546c8.js → index.c9f8165b.js} +1 -1
  42. package/components/GridLayout/subcomponents/Responsive/{index.6646c077.js → index.ad80dae3.js} +1 -1
  43. package/components/GridLayout/subcomponents/SizeProvider/{index.1108dd01.js → index.6ebe8790.js} +1 -1
  44. package/components/HelperText/{index.b1961313.js → index.e9eddfe4.js} +2 -2
  45. package/components/Icon/{index.e06c693f.js → index.2b591dd6.js} +3 -3
  46. package/components/Image/{index.8a3d05d3.js → index.fb9e71ba.js} +2 -2
  47. package/components/LanguagePopover/{index.25266514.js → index.f495b317.js} +4 -4
  48. package/components/LinearProgressIndeterminate/{index.80f8b74d.js → index.8a0b3615.js} +1 -1
  49. package/components/LoadingError/{index.81979bb3.js → index.2675dde0.js} +5 -5
  50. package/components/MFIsolationApp/{index.3125cd12.js → index.359ce9ec.js} +2 -2
  51. package/components/MFLoader/{index.952a3fee.js → index.49a6bd2c.js} +2 -2
  52. package/components/ModalDialog/{index.0dba90d3.js → index.3571068b.js} +3 -3
  53. package/components/NavLink/{index.0c844a30.js → index.82f5f2f4.js} +2 -2
  54. package/components/NoItemSelected/{index.dd2cee48.js → index.437fb106.js} +1 -1
  55. package/components/ObjectLogs/{index.f98e884b.js → index.5d260f34.js} +9 -9
  56. package/components/PDFViewer/{index.1b7068e5.js → index.9f1d12c4.js} +2 -2
  57. package/components/Page/{index.fa45b3d5.js → index.4e1e1b9b.js} +1 -1
  58. package/components/PaperForm/{index.f1467e34.js → index.d6293e64.js} +2 -2
  59. package/components/Period/{index.732248a8.js → index.f0095a0a.js} +4 -4
  60. package/components/PrintingSystem/{index.7aed44a2.js → index.88fbf9ec.js} +13 -13
  61. package/components/PrintingSystem/subcomponents/BodyNode/{index.3e82f72e.js → index.79cb87c7.js} +1 -1
  62. package/components/PrintingSystem/subcomponents/ChartNode/{index.8d4e4894.js → index.a5d910d6.js} +1 -1
  63. package/components/PrintingSystem/subcomponents/DividerNode/{index.f9343c1f.js → index.350c25de.js} +1 -1
  64. package/components/PrintingSystem/subcomponents/FooterNode/{index.1cdf54cf.js → index.8c2f7536.js} +1 -1
  65. package/components/PrintingSystem/subcomponents/GridNode/{index.32a2e08a.js → index.b02b56db.js} +1 -1
  66. package/components/PrintingSystem/subcomponents/HeaderNode/{index.715f4e49.js → index.462d6322.js} +1 -1
  67. package/components/PrintingSystem/subcomponents/PaperNode/{index.92df744d.js → index.a5e25147.js} +1 -1
  68. package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.4316a07a.js → index.430bd242.js} +1 -1
  69. package/components/PrintingSystem/subcomponents/SectionNode/{index.21b9d770.js → index.d76d27d3.js} +1 -1
  70. package/components/PrintingSystem/subcomponents/TextBoxNode/{index.03e73c9d.js → index.2dcd8991.js} +1 -1
  71. package/components/PropertyValue/{index.f85c4118.js → index.5d847b88.js} +3 -3
  72. package/components/Resizeable/{index.305dae8c.js → index.f22bccb6.js} +1 -1
  73. package/components/ScrollBar/{index.9c677335.js → index.3f1ca3da.js} +1 -1
  74. package/components/SideBar/{index.d33d87f4.js → index.f15b9904.js} +5 -5
  75. package/components/SplitLayout/{index.a5414b61.js → index.4b247e0c.js} +1 -1
  76. package/components/ToastContainer/{index.ce752150.js → index.dec47e74.js} +2 -2
  77. package/components/animate/LoadingScreen/{index.881ca784.js → index.db36f970.js} +1 -1
  78. package/components/animate/{index.d6f073fe.js → index.14aa2d3c.js} +1 -1
  79. package/components/areas/components/AreasAdmin/{index.80da2678.js → index.55c40f0c.js} +14 -14
  80. package/components/areas/components/AreasViewer/{index.7836a623.js → index.8a568629.js} +13 -13
  81. package/components/areas/contexts/AreasContext/{index.c4e41ac3.js → index.c677ccfa.js} +4 -4
  82. package/components/areas/hooks/useAreas/{index.cf3f35fa.js → index.2d10f64c.js} +1 -1
  83. package/components/commercial/AppBarCommercial/{index.00571293.js → index.85de55bb.js} +1 -1
  84. package/components/commercial/SectionCommercial/{index.c3f56cb3.js → index.47c0cb0c.js} +1 -1
  85. package/components/commercial/TopBar/{index.56ade547.js → index.ec7a6cc6.js} +5 -5
  86. package/components/commercial/{index.788464b6.js → index.90e72726.js} +3 -3
  87. package/components/formatters/BooleanFormatter/{index.6f664715.js → index.5243a181.js} +2 -2
  88. package/components/formatters/{index.d1846e98.js → index.1b738709.js} +2 -2
  89. package/components/hook-form/HelperError/{index.a0faefe4.js → index.c6f8f840.js} +1 -1
  90. package/components/hook-form/RHFAutocomplete/RHFAutocomplete.d.ts +1 -1
  91. package/components/hook-form/RHFAutocomplete/classes/index.d.ts +1 -2
  92. package/components/hook-form/RHFAutocomplete/classes/types.d.ts +0 -1
  93. package/components/hook-form/RHFAutocomplete/{index.dab5e2d6.js → index.c8bcfed8.js} +302 -70
  94. package/components/hook-form/RHFAutocomplete/subcomponents/ComponentTypeImage/index.d.ts +2 -0
  95. package/components/hook-form/RHFAutocomplete/subcomponents/ComponentTypeText/index.d.ts +2 -0
  96. package/components/hook-form/RHFAutocomplete/subcomponents/RenderOption/index.d.ts +1 -1
  97. package/components/hook-form/RHFAutocomplete/subcomponents/Skeleton/types.d.ts +1 -1
  98. package/components/hook-form/RHFAutocomplete/types.d.ts +17 -9
  99. package/components/hook-form/RHFAutocompleteAsync/{index.a61e7dda.js → index.2b2ff592.js} +102 -5
  100. package/components/hook-form/RHFAutocompleteAsync/subcomponents/ComponentTypeImage/index.d.ts +3 -0
  101. package/components/hook-form/RHFAutocompleteAsync/subcomponents/ComponentTypeText/index.d.ts +2 -0
  102. package/components/hook-form/RHFAutocompleteAsync/types.d.ts +6 -3
  103. package/components/hook-form/RHFCheckbox/{index.71751a9d.js → index.06c0b776.js} +3 -3
  104. package/components/hook-form/RHFColorPicker/{index.3a8f36b1.js → index.f606dce6.js} +6 -6
  105. package/components/hook-form/RHFDateTime/{index.2f4ce21c.js → index.fb4867fa.js} +4 -4
  106. package/components/hook-form/RHFPeriod/{index.acf46fb2.js → index.75e07583.js} +4 -4
  107. package/components/hook-form/RHFRadioGroup/RHFRadioGroup.d.ts +1 -1
  108. package/components/hook-form/RHFRadioGroup/formatters/OptionIconLabelFormatter/index.d.ts +2 -0
  109. package/components/hook-form/RHFRadioGroup/index.a0a28a48.js +52 -0
  110. package/components/hook-form/RHFRadioGroup/types.d.ts +10 -4
  111. package/components/hook-form/RHFTextField/{index.06342648.js → index.257c6486.js} +4 -4
  112. package/components/hook-form/RHFUpload/{index.ef58c607.js → index.a6954d0d.js} +5 -5
  113. package/components/maps/components/GpsTools/{index.3cc627c5.js → index.30fe41d1.js} +28 -25
  114. package/components/maps/components/Map/external/Control/index.d.ts +1 -1
  115. package/components/maps/components/Map/{index.c50fc538.js → index.14f082d4.js} +30 -26
  116. package/components/modal/{WindowBase.af49e2e8.js → WindowBase.0dc3b3ea.js} +3 -3
  117. package/components/modal/{WindowConfirm.141e19a9.js → WindowConfirm.b8a431dd.js} +6 -6
  118. package/components/mui_extended/Accordion/{index.e76a8701.js → index.bb0cd2ab.js} +4 -4
  119. package/components/mui_extended/Avatar/{index.fc674f4b.js → index.bcf4d669.js} +1 -1
  120. package/components/mui_extended/Badge/{index.615959af.js → index.89ca5b23.js} +1 -1
  121. package/components/mui_extended/Button/{index.a391ee9f.js → index.24b9496b.js} +3 -3
  122. package/components/mui_extended/{CheckBox.ae30825c.js → CheckBox.4d930bed.js} +2 -2
  123. package/components/mui_extended/IconButton/{index.97e91dae.js → index.f5dcf537.js} +2 -2
  124. package/components/mui_extended/MenuActions/{index.1092605e.js → index.540d82fd.js} +5 -5
  125. package/components/mui_extended/Pager/classes/index.d.ts +1 -1
  126. package/components/mui_extended/Pager/{index.4d510ef5.js → index.f3a6c94b.js} +4 -4
  127. package/components/mui_extended/Popover/{index.82970357.js → index.6d8fe229.js} +1 -1
  128. package/components/mui_extended/Stack/{index.e64a379b.js → index.9d6ed8c2.js} +1 -1
  129. package/components/mui_extended/Tab/{index.f31eb904.js → index.0941bb3a.js} +1 -1
  130. package/components/mui_extended/ToggleButton/{index.4afacb33.js → index.d45c7a60.js} +1 -1
  131. package/components/mui_extended/ToggleIconButton/{index.621ff8bc.js → index.c51670d1.js} +1 -1
  132. package/components/mui_extended/Typography/{index.8a0f958b.js → index.dbc44e77.js} +1 -1
  133. package/components/popups/PopupsProvider/{index.6591c56e.js → index.776c62e7.js} +8 -34
  134. package/components/popups/PopupsViewer/constants.29247547.js +4 -0
  135. package/components/popups/PopupsViewer/icons.066abd43.js +7 -0
  136. package/components/popups/PopupsViewer/{index.caf23a5d.js → index.6a175b73.js} +43 -78
  137. package/components/popups/PopupsViewer/slots/index.154e4e5f.js +14 -0
  138. package/components/popups/PopupsViewer/slots/popupsViewerSlots.be9219c7.js +39 -0
  139. package/components/popups/components/PopupsProvider/contexts/PopupsContext/store.d.ts +1 -1
  140. package/components/popups/components/PopupsProvider/contexts/PopupsContext/types.d.ts +27 -47
  141. package/components/popups/components/PopupsViewer/PopupsViewer.d.ts +1 -2
  142. package/components/popups/components/PopupsViewer/constants.d.ts +1 -1
  143. package/components/popups/components/PopupsViewer/slots/popupsViewerSlots.d.ts +25 -0
  144. package/components/popups/components/PopupsViewer/slots/slots.d.ts +10 -0
  145. package/components/popups/components/PopupsViewer/types.d.ts +17 -3
  146. package/contexts/ModalContext/{index.8281527d.js → index.26017754.js} +1 -1
  147. package/contexts/RHFormContext/{index.939811b3.js → index.54d30cb2.js} +1 -1
  148. package/hooks/useFormAddEdit/{index.dfb5570d.js → index.bd4ae2a5.js} +2 -2
  149. package/hooks/useModal/{index.538e8219.js → index.d3c18b29.js} +1 -1
  150. package/hooks/useTab/{index.bc8d38fc.js → index.da9b5a24.js} +1 -1
  151. package/index.js +123 -119
  152. package/package.json +1 -1
  153. package/styles/PopupViewer.styles.d.ts +2 -0
  154. package/styles/{index.7868464e.js → index.d972f170.js} +101 -11
  155. package/components/hook-form/RHFRadioGroup/index.11c0add8.js +0 -35
  156. package/components/popups/components/PopupsProvider/contexts/PopupsContext/helper.d.ts +0 -7
  157. package/components/popups/components/PopupsViewer/classes/index.d.ts +0 -17
  158. package/components/popups/components/PopupsViewer/classes/types.d.ts +0 -15
  159. package/components/popups/components/PopupsViewer/styled.d.ts +0 -2
@@ -1,14 +1,14 @@
1
1
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
2
  import { useMemo } from "react";
3
- import { aG as PagerRoot } from "../../../styles/index.7868464e.js";
3
+ import { aG as PagerRoot } from "../../../styles/index.d972f170.js";
4
4
  import { generateUtilityClasses, generateUtilityClass, useTheme, Select, InputBase, MenuItem } from "@mui/material";
5
5
  import { unstable_composeClasses } from "@mui/base";
6
- import { I as IconButton } from "../IconButton/index.97e91dae.js";
6
+ import { I as IconButton } from "../IconButton/index.f5dcf537.js";
7
7
  import { useEnvironment } from "@m4l/core";
8
8
  import { useResponsiveContainerStore } from "@m4l/graphics";
9
9
  import { shallow } from "zustand/shallow";
10
- import { T as Typography } from "../Typography/index.8a0f958b.js";
11
- import { I as Icon } from "../../Icon/index.e06c693f.js";
10
+ import { T as Typography } from "../Typography/index.dbc44e77.js";
11
+ import { I as Icon } from "../../Icon/index.2b591dd6.js";
12
12
  const componentName = "M4LPager";
13
13
  generateUtilityClasses(componentName, [
14
14
  "root",
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { aH as PopoverRoot } from "../../../styles/index.7868464e.js";
2
+ import { aH as PopoverRoot } from "../../../styles/index.d972f170.js";
3
3
  import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
4
4
  import { unstable_composeClasses } from "@mui/base";
5
5
  import { styled } from "@mui/material/styles";
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
3
3
  import { unstable_composeClasses } from "@mui/base";
4
- import { aI as MUISTack } from "../../../styles/index.7868464e.js";
4
+ import { aI as MUISTack } from "../../../styles/index.d972f170.js";
5
5
  import clsx from "clsx";
6
6
  const componentName = "M4LStack";
7
7
  generateUtilityClasses(componentName, [
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
2
2
  import clsx from "clsx";
3
3
  import { generateUtilityClasses, generateUtilityClass, Tab as Tab$1, Skeleton } from "@mui/material";
4
4
  import { unstable_composeClasses } from "@mui/base";
5
- import { aJ as MUITabs, aK as TabContentRoot, aL as TabRoot, aM as SKTTabWrapper } from "../../../styles/index.7868464e.js";
5
+ import { aJ as MUITabs, aK as TabContentRoot, aL as TabRoot, aM as SKTTabWrapper } from "../../../styles/index.d972f170.js";
6
6
  import { useModuleSkeleton } from "@m4l/core";
7
7
  import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
8
8
  import { g as getNameDataTestId } from "../../../test/getNameDataTestId.0faeade8.js";
@@ -1,6 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import clsx from "clsx";
3
- import { B as Button, b as buttonClasses } from "../Button/index.a391ee9f.js";
3
+ import { B as Button, b as buttonClasses } from "../Button/index.24b9496b.js";
4
4
  import { w as withToggle } from "../../../hocs/withToggle/index.548aeace.js";
5
5
  const ToggleAbleButton = ({ onToggle, isToggled, ...props }) => {
6
6
  return /* @__PURE__ */ jsx(
@@ -1,6 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import clsx from "clsx";
3
- import { I as IconButton, i as iconButtonClasses } from "../IconButton/index.97e91dae.js";
3
+ import { I as IconButton, i as iconButtonClasses } from "../IconButton/index.f5dcf537.js";
4
4
  import { w as withToggle } from "../../../hocs/withToggle/index.548aeace.js";
5
5
  const ToggleAbleIconButton = ({
6
6
  onToggle,
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { useModuleSkeleton } from "@m4l/core";
3
3
  import { Skeleton, generateUtilityClasses, generateUtilityClass, Typography as Typography$1 } from "@mui/material";
4
- import { aN as WarpperTypography } from "../../../styles/index.7868464e.js";
4
+ import { aN as WarpperTypography } from "../../../styles/index.d972f170.js";
5
5
  import { unstable_composeClasses } from "@mui/base";
6
6
  import clsx from "clsx";
7
7
  import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
@@ -2,21 +2,17 @@ import React__default, { createContext, useRef, useEffect, useContext } from "re
2
2
  import { createStore, useStore } from "zustand";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  import { shallow } from "zustand/shallow";
5
- import { useResponsiveDesktop, useFirstRender } from "@m4l/graphics";
6
- import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
5
+ import { useFirstRender } from "@m4l/graphics";
6
+ import { useModuleDictionary } from "@m4l/core";
7
7
  import { devtools } from "zustand/middleware";
8
8
  import { immer } from "zustand/middleware/immer";
9
- import { p as popupsUtilityClasses } from "../PopupsViewer/index.caf23a5d.js";
10
9
  import { cloneDeep } from "lodash";
11
- const updateOwnerStateClasses = (state) => {
12
- state.classes = popupsUtilityClasses(state.ownerState);
13
- };
14
10
  const createPopupsStore = (initProps) => {
15
11
  const startProps = {
16
- classes: popupsUtilityClasses(initProps.ownerState),
17
12
  currentZindex: initProps.baseZindex,
18
13
  popupsIds: [],
19
14
  hashPopups: {},
15
+ getContainer: () => initProps.containerElement,
20
16
  ...initProps
21
17
  };
22
18
  return createStore(
@@ -32,11 +28,6 @@ const createPopupsStore = (initProps) => {
32
28
  }
33
29
  });
34
30
  },
35
- setState: (status) => {
36
- set((state) => {
37
- state.ownerState.status = status;
38
- });
39
- },
40
31
  addPopup: (popupProps, options) => {
41
32
  if (get().hashPopups[popupProps.popupId]) {
42
33
  throw new Error(`Poupup with id ${popupProps.popupId} already exists`);
@@ -130,40 +121,29 @@ const createPopupsStore = (initProps) => {
130
121
  set((state) => {
131
122
  state.getLabel = newHandler;
132
123
  });
133
- },
134
- setExternalState: (newExternalState) => {
135
- set((state) => {
136
- state.ownerState = { ...state.ownerState, ...newExternalState };
137
- updateOwnerStateClasses(state);
138
- });
139
124
  }
140
125
  }
141
126
  })),
142
- { name: `Popups store` }
127
+ { name: `Popups store: ${initProps.storeId}` }
143
128
  )
144
129
  );
145
130
  };
146
131
  const PopupsContext = createContext(null);
147
132
  function PopupsProvider(props) {
148
- const { children, initialPopups, baseZindex = 0 } = props;
133
+ const { children, initialPopups, baseZindex = 0, storeId, containerElement } = props;
149
134
  const { getLabel } = useModuleDictionary();
150
- const isDesktop = useResponsiveDesktop();
151
- const isSkeleton = useModuleSkeleton();
152
135
  const isFirstRender = useFirstRender([getLabel]);
153
136
  const popupsStoreRef = useRef();
154
137
  if (!popupsStoreRef.current) {
155
138
  popupsStoreRef.current = createPopupsStore({
156
139
  getLabel,
157
140
  baseZindex,
158
- ownerState: {
159
- status: "init",
160
- isMobile: !isDesktop,
161
- isSkeleton
162
- }
141
+ storeId,
142
+ containerElement
163
143
  });
164
144
  popupsStoreRef.current?.getState().popupsActions.init(initialPopups || []);
165
145
  }
166
- const { setHandlerGetLabel, setExternalState } = useStore(
146
+ const { setHandlerGetLabel } = useStore(
167
147
  popupsStoreRef.current,
168
148
  (state) => state.popupsActions,
169
149
  shallow
@@ -173,12 +153,6 @@ function PopupsProvider(props) {
173
153
  setHandlerGetLabel(getLabel);
174
154
  }
175
155
  }, [getLabel]);
176
- useEffect(() => {
177
- if (isFirstRender) {
178
- return;
179
- }
180
- setExternalState({ isMobile: !isDesktop, isSkeleton });
181
- }, [isDesktop, isSkeleton]);
182
156
  return /* @__PURE__ */ jsx(PopupsContext.Provider, { value: popupsStoreRef.current, children: /* @__PURE__ */ jsx(React__default.Fragment, { children }) });
183
157
  }
184
158
  function usePopupsStore(selector, equalityFn) {
@@ -0,0 +1,4 @@
1
+ const POPUPS_VIEWER_KEY_COMPONENT = "M4LPopupsViewer";
2
+ export {
3
+ POPUPS_VIEWER_KEY_COMPONENT as P
4
+ };
@@ -0,0 +1,7 @@
1
+ const POPUPS_ICONS = {
2
+ CLOSE: "close.svg",
3
+ EDITION_INFO: "edition_info.svg"
4
+ };
5
+ export {
6
+ POPUPS_ICONS as P
7
+ };
@@ -2,59 +2,28 @@ import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { TransitionGroup, CSSTransition } from "react-transition-group";
3
3
  import { shallow } from "zustand/shallow";
4
4
  import { forwardRef } from "react";
5
- import clsx from "clsx";
6
5
  import { useEnvironment } from "@m4l/core";
7
- import { u as usePopupsStore } from "../PopupsProvider/index.6591c56e.js";
8
- import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
9
- import { unstable_composeClasses } from "@mui/base";
10
- import { d as draggableWindowClasses, D as DragResizeWindow } from "../../DragResizeWindow/index.8f5a2e3e.js";
11
- import { I as Icon } from "../../Icon/index.e06c693f.js";
12
- import { I as IconButton } from "../../mui_extended/IconButton/index.97e91dae.js";
6
+ import { u as usePopupsStore } from "../PopupsProvider/index.776c62e7.js";
7
+ import { P as POPUPS_ICONS } from "./icons.066abd43.js";
8
+ import { P as PopupHeaderContainerStyled, a as PopupHeaderTitleStyled, b as PopupHeaderSubTitleStyled, c as PopupContentEditionInfoStyled, d as PopupDragWindowRootStyled, e as PopupContentRootStyled, f as PopupContentWrapperStyled, R as RootStyled } from "./slots/popupsViewerSlots.be9219c7.js";
9
+ import { d as draggableWindowClasses } from "../../DragResizeWindow/index.17e7059d.js";
10
+ import { I as Icon } from "../../Icon/index.2b591dd6.js";
11
+ import { I as IconButton } from "../../mui_extended/IconButton/index.f5dcf537.js";
13
12
  import { u as useSizeContainer } from "../../../hooks/useSizeContainer/index.3c48670c.js";
14
- import { styled } from "@mui/material/styles";
15
- const COMPONENT_CLASS_NAME = "M4LPopupsViewer";
16
- const popupsClasses = generateUtilityClasses(COMPONENT_CLASS_NAME, [
17
- "containerRoot",
18
- "popupRoot",
19
- "popupHeaderContainer",
20
- "popupHeaderTitle",
21
- "popupHeaderSubTitle",
22
- "popupContentRoot",
23
- "popupContentEditionInfo",
24
- "popupContentWrapper",
25
- "popupHidden",
26
- "popupWithSubTitle"
27
- ]);
28
- function getPopupsUtilityClass(slot) {
29
- return generateUtilityClass(COMPONENT_CLASS_NAME, slot);
30
- }
31
- const popupsUtilityClasses = (_ownerState) => {
32
- const slots = {
33
- containerRoot: ["containerRoot"],
34
- popupsContainer: ["popupsContainer"],
35
- popupRoot: ["popupRoot"],
36
- popupHeaderContainer: ["popupHeaderContainer"],
37
- popupHeaderTitle: ["popupHeaderTitle"],
38
- popupHeaderSubTitle: ["popupHeaderSubTitle"],
39
- popupContentRoot: ["popupContentRoot"],
40
- popupContentEditionInfo: ["popupContentEditionInfo"],
41
- popupContentWrapper: ["popupContentWrapper"],
42
- popupHidden: ["popupHidden"],
43
- popupWithSubTitle: ["popupWithSubTitle"]
44
- };
45
- const composedClasses = unstable_composeClasses(slots, getPopupsUtilityClass, {});
46
- return {
47
- ...composedClasses
48
- };
49
- };
50
- const POPUPS_ICONS = {
51
- CLOSE: "close.svg",
52
- EDITION_INFO: "edition_info.svg"
53
- };
54
13
  const Header = (props) => {
55
14
  const { popupId } = props;
56
15
  const { host_static_assets, environment_assets } = useEnvironment();
57
16
  const popup = usePopupsStore((state) => state.hashPopups[popupId], shallow);
17
+ const {
18
+ status,
19
+ subTitle,
20
+ zIndex
21
+ } = popup || {};
22
+ const ownerState = {
23
+ status,
24
+ subTitle,
25
+ zIndex
26
+ };
58
27
  const { closePopup } = usePopupsStore((state) => state.popupsActions, shallow);
59
28
  const { iconUrl } = popup || {};
60
29
  const onClose = () => {
@@ -64,22 +33,14 @@ const Header = (props) => {
64
33
  return null;
65
34
  }
66
35
  return /* @__PURE__ */ jsxs(
67
- "div",
36
+ PopupHeaderContainerStyled,
68
37
  {
69
- className: clsx(popupsClasses.popupHeaderContainer, draggableWindowClasses.draggableHandle),
38
+ ownerState,
39
+ className: draggableWindowClasses.draggableHandle,
70
40
  children: [
71
41
  /* @__PURE__ */ jsx(Icon, { src: iconUrl, size: "small" }),
72
- /* @__PURE__ */ jsx(
73
- "span",
74
- {
75
- className: clsx(
76
- popupsClasses.popupHeaderTitle,
77
- popup.subTitle ? popupsClasses.popupWithSubTitle : null
78
- ),
79
- children: popup.title
80
- }
81
- ),
82
- popup.subTitle && /* @__PURE__ */ jsx("span", { className: popupsClasses.popupHeaderSubTitle, children: popup.subTitle }),
42
+ /* @__PURE__ */ jsx(PopupHeaderTitleStyled, { ownerState: { ...popup }, children: popup.title }),
43
+ popup.subTitle && /* @__PURE__ */ jsx(PopupHeaderSubTitleStyled, { ownerState, children: popup.subTitle }),
83
44
  /* @__PURE__ */ jsx(
84
45
  IconButton,
85
46
  {
@@ -96,7 +57,7 @@ const Header = (props) => {
96
57
  const EditionInfo = (props) => {
97
58
  const { editionInfo } = props;
98
59
  const { host_static_assets, environment_assets } = useEnvironment();
99
- return /* @__PURE__ */ jsxs("div", { className: popupsClasses.popupContentEditionInfo, children: [
60
+ return /* @__PURE__ */ jsxs(PopupContentEditionInfoStyled, { ownerState: { editionInfo }, children: [
100
61
  /* @__PURE__ */ jsx(
101
62
  Icon,
102
63
  {
@@ -112,6 +73,10 @@ const Popup = forwardRef((props, ref) => {
112
73
  const popup = usePopupsStore((state) => state.hashPopups[popupId], shallow);
113
74
  const { setPopupOnTop } = usePopupsStore((state) => state.popupsActions, shallow);
114
75
  const {
76
+ status,
77
+ subTitle,
78
+ editionInfo,
79
+ zIndex,
115
80
  draggable = true,
116
81
  resizable = true,
117
82
  defaultPosition,
@@ -119,6 +84,12 @@ const Popup = forwardRef((props, ref) => {
119
84
  onMouseDown,
120
85
  ...others
121
86
  } = popup || {};
87
+ const ownerState = {
88
+ status,
89
+ subTitle,
90
+ editionInfo,
91
+ zIndex
92
+ };
122
93
  const onMouseDownLocal = (e) => {
123
94
  setPopupOnTop(popupId);
124
95
  if (onMouseDown) {
@@ -129,13 +100,11 @@ const Popup = forwardRef((props, ref) => {
129
100
  return null;
130
101
  }
131
102
  return /* @__PURE__ */ jsxs(
132
- DragResizeWindow,
103
+ PopupDragWindowRootStyled,
133
104
  {
105
+ ownerState,
134
106
  ref,
135
- className: clsx(
136
- popupsClasses.popupRoot,
137
- popup.status === "hidden" && popupsClasses.popupHidden
138
- ),
107
+ hidden: popup.status === "hidden",
139
108
  onMouseDown: onMouseDownLocal,
140
109
  containerElement,
141
110
  containerSize,
@@ -147,30 +116,27 @@ const Popup = forwardRef((props, ref) => {
147
116
  ...others,
148
117
  children: [
149
118
  /* @__PURE__ */ jsx(Header, { popupId: popup.popupId }),
150
- /* @__PURE__ */ jsxs("div", { className: popupsClasses.popupContentRoot, children: [
119
+ /* @__PURE__ */ jsxs(PopupContentRootStyled, { ownerState, children: [
151
120
  popup.editionInfo && /* @__PURE__ */ jsx(EditionInfo, { editionInfo: popup.editionInfo }),
152
- /* @__PURE__ */ jsx("div", { className: popupsClasses.popupContentWrapper, children: popup.functionComponent && popup.functionComponent({ ...popup.componentProps }) })
121
+ /* @__PURE__ */ jsx(PopupContentWrapperStyled, { ownerState, children: popup.functionComponent && popup.functionComponent({ ...popup.componentProps }) })
153
122
  ] })
154
123
  ]
155
124
  }
156
125
  );
157
126
  });
158
- const PopupsViewerRoot = styled("div")`
159
- ${(props) => props.theme.components?.M4LPopupsViewer?.styleOverrides}
160
- `;
161
- const PopupsViewer = (props) => {
162
- const { containerElement } = props;
127
+ const PopupsViewer = () => {
163
128
  const popupsIds = usePopupsStore(
164
129
  (state) => state.popupsIds.filter((pId) => state.hashPopups[pId].status !== "closing"),
165
130
  shallow
166
131
  );
132
+ const baseZindex = usePopupsStore((state) => state.baseZindex, shallow);
133
+ const containerElement = usePopupsStore((state) => state.getContainer, shallow)();
167
134
  const { removePopup } = usePopupsStore((state) => state.popupsActions, shallow);
168
135
  const containerSize = useSizeContainer(containerElement);
169
- if (!containerElement) {
136
+ if (!containerElement || !containerSize) {
170
137
  return null;
171
138
  }
172
- return /* @__PURE__ */ jsx(PopupsViewerRoot, { className: popupsClasses.containerRoot, children: /* @__PURE__ */ jsx(TransitionGroup, { children: popupsIds.map((id) => {
173
- console.log(`${new Date().toLocaleString()}: Render`);
139
+ return /* @__PURE__ */ jsx(RootStyled, { ownerState: { baseZindex }, children: /* @__PURE__ */ jsx(TransitionGroup, { children: popupsIds.map((id) => {
174
140
  return /* @__PURE__ */ jsx(
175
141
  CSSTransition,
176
142
  {
@@ -199,6 +165,5 @@ const PopupsViewer = (props) => {
199
165
  }) }) });
200
166
  };
201
167
  export {
202
- PopupsViewer as P,
203
- popupsUtilityClasses as p
168
+ PopupsViewer as P
204
169
  };
@@ -0,0 +1,14 @@
1
+ var PopupViewerSlots = /* @__PURE__ */ ((PopupViewerSlots2) => {
2
+ PopupViewerSlots2["root"] = "root";
3
+ PopupViewerSlots2["popupDragWindowRoot"] = "popupRoot";
4
+ PopupViewerSlots2["pDWHeaderContainer"] = "pDWHeaderContainer";
5
+ PopupViewerSlots2["pDWHeaderTitle"] = "pDWHeaderTitle";
6
+ PopupViewerSlots2["pDWHeaderSubTitle"] = "pDWHeaderSubTitle";
7
+ PopupViewerSlots2["pDWContentRoot"] = "pDWContentRoot";
8
+ PopupViewerSlots2["pDWContentEditionInfo"] = "pDWContentEditionInfo";
9
+ PopupViewerSlots2["pDWContentWrapper"] = "pDWContentWrapper";
10
+ return PopupViewerSlots2;
11
+ })(PopupViewerSlots || {});
12
+ export {
13
+ PopupViewerSlots as P
14
+ };
@@ -0,0 +1,39 @@
1
+ import { styled } from "@mui/material/styles";
2
+ import { P as POPUPS_VIEWER_KEY_COMPONENT } from "../constants.29247547.js";
3
+ import { aO as popupsViewerStyles } from "../../../../styles/index.d972f170.js";
4
+ import { P as PopupViewerSlots } from "./index.154e4e5f.js";
5
+ import { D as DragResizeWindow } from "../../../DragResizeWindow/index.17e7059d.js";
6
+ const RootStyled = styled("div", { name: POPUPS_VIEWER_KEY_COMPONENT, slot: PopupViewerSlots.root })(
7
+ popupsViewerStyles?.root
8
+ );
9
+ const PopupDragWindowRootStyled = styled(DragResizeWindow, { name: POPUPS_VIEWER_KEY_COMPONENT, slot: PopupViewerSlots.root })(
10
+ popupsViewerStyles?.popupDragWindowRoot
11
+ );
12
+ const PopupContentEditionInfoStyled = styled("div", { name: POPUPS_VIEWER_KEY_COMPONENT, slot: PopupViewerSlots.root })(
13
+ popupsViewerStyles?.pDWContentEditionInfo
14
+ );
15
+ const PopupHeaderContainerStyled = styled("div", { name: POPUPS_VIEWER_KEY_COMPONENT, slot: PopupViewerSlots.root })(
16
+ popupsViewerStyles?.pDWHeaderContainer
17
+ );
18
+ const PopupHeaderTitleStyled = styled("span", { name: POPUPS_VIEWER_KEY_COMPONENT, slot: PopupViewerSlots.root })(
19
+ popupsViewerStyles?.pDWHeaderTitle
20
+ );
21
+ const PopupHeaderSubTitleStyled = styled("span", { name: POPUPS_VIEWER_KEY_COMPONENT, slot: PopupViewerSlots.root })(
22
+ popupsViewerStyles?.pDWHeaderSubTitle
23
+ );
24
+ const PopupContentRootStyled = styled("div", { name: POPUPS_VIEWER_KEY_COMPONENT, slot: PopupViewerSlots.root })(
25
+ popupsViewerStyles?.pDWContentRoot
26
+ );
27
+ const PopupContentWrapperStyled = styled("div", { name: POPUPS_VIEWER_KEY_COMPONENT, slot: PopupViewerSlots.root })(
28
+ popupsViewerStyles?.pDWContentWrapper
29
+ );
30
+ export {
31
+ PopupHeaderContainerStyled as P,
32
+ RootStyled as R,
33
+ PopupHeaderTitleStyled as a,
34
+ PopupHeaderSubTitleStyled as b,
35
+ PopupContentEditionInfoStyled as c,
36
+ PopupDragWindowRootStyled as d,
37
+ PopupContentRootStyled as e,
38
+ PopupContentWrapperStyled as f
39
+ };
@@ -13,4 +13,4 @@ export declare const createPopupsStore: (initProps: InitialPopupsStoreProps) =>
13
13
  type: unknown;
14
14
  } | undefined): void;
15
15
  };
16
- export declare type PopupsStore = ReturnType<typeof createPopupsStore>;
16
+ export declare type PopupsStoreWithActionsType = ReturnType<typeof createPopupsStore>;
@@ -1,9 +1,7 @@
1
1
  import { GetLabelType } from '@m4l/core';
2
2
  import { ReactNode } from 'react';
3
- import { PopupsClasses } from '../../../PopupsViewer/classes/types';
4
3
  import { DraggableWindowProps } from '../../../../../DragResizeWindow/types';
5
- import { PositionXY } from '../../../../../../utils/types';
6
- export declare type PopupStatus = 'init' | 'closing' | 'hidden';
4
+ import { PopupStatus } from '../../../PopupsViewer/types';
7
5
  export interface PopupStoreProps extends Pick<DraggableWindowProps, 'bounds' | 'defaultPosition'> {
8
6
  /**
9
7
  * "popupId" Indetificador del popupId
@@ -38,9 +36,9 @@ export interface PopupStoreProps extends Pick<DraggableWindowProps, 'bounds' | '
38
36
  */
39
37
  resizable?: boolean;
40
38
  /**
41
- * maxSizeByPadding Tamaño maximo del popup en terminos de padding con respecto al conenedor padre
39
+ * "zIndex" Zindex del popup, tener en cuenta que se usa el baseZindex como offset para el zIndex
42
40
  */
43
- maxSizeByPadding?: PositionXY;
41
+ zIndex: number;
44
42
  /**
45
43
  * "componentProps" Propiedades que se le pasan al componente que se va a mostrar en el popup.
46
44
  */
@@ -55,39 +53,16 @@ export interface PopupStoreProps extends Pick<DraggableWindowProps, 'bounds' | '
55
53
  * "onMouseDown" Evento nativo del Draggable, para tomar acciones externamente
56
54
  */
57
55
  onMouseDown?: (e: MouseEvent) => void;
58
- /**
59
- * "zIndex" Zindex del popup
60
- */
61
- zIndex: number;
62
56
  }
63
- export declare type PopupsClassStatus = 'init' | 'ready';
64
- export declare type OwnerState = {
65
- status: PopupsClassStatus;
66
- /**
67
- * "isMobile" cuando el navegador está en modo celular
68
- */
69
- isMobile: boolean;
70
- /**
71
- * "isSkeleton" indica si el componente está en skeleton.
72
- */
73
- isSkeleton: boolean;
74
- };
75
- /**
76
- * @type
77
- * @name ExternalOwnerState
78
- * @description Estados que se actulizan por fuera del store, a través de hooks
79
- */
80
- export declare type ExternalOwnerState = Pick<OwnerState, 'isMobile' | 'isSkeleton'>;
81
57
  /**
82
58
  * @interface
83
- * @description Interface que define el estado del componente (variables y funciones )
59
+ * @description Interface que define el store del componente (variables y funciones )
84
60
  */
85
- export interface PopupsState {
86
- ownerState: OwnerState;
61
+ export interface PopupsStore {
87
62
  /**
88
- * "classes" enfocado al funcionamiento de las clases a nivel de map
63
+ * @description Id del store, para identificarlo en las herramientas de redux.
89
64
  */
90
- classes: PopupsClasses;
65
+ storeId?: string;
91
66
  /**
92
67
  * "poupsIds" Poups para saber en que orden se muestran
93
68
  */
@@ -109,6 +84,10 @@ export interface PopupsState {
109
84
  * "getLabel" funcion que usará para traducir las etiquetas de diccionario
110
85
  */
111
86
  getLabel: GetLabelType;
87
+ /**
88
+ * "getLabel" funcion que usará para traducir las etiquetas de diccionario
89
+ */
90
+ getContainer: () => HTMLElement;
112
91
  }
113
92
  export declare type OpenPopupOptions = {
114
93
  /**
@@ -116,16 +95,12 @@ export declare type OpenPopupOptions = {
116
95
  */
117
96
  closeOthers: boolean;
118
97
  };
119
- export interface PopupsStateWithActions extends PopupsState {
98
+ export interface PopupsStateWithActions extends PopupsStore {
120
99
  popupsActions: {
121
100
  /**
122
101
  * @description
123
102
  */
124
103
  init(layersStore: PopupStoreProps[]): void;
125
- /**
126
- * @description Cambia el estado del popus
127
- */
128
- setState: (state: PopupsClassStatus) => void;
129
104
  /**
130
105
  * @description Agrega una un poupup nuevo al hash de popups y al array de ids,
131
106
  */
@@ -161,18 +136,23 @@ export interface PopupsStateWithActions extends PopupsState {
161
136
  * @returns void
162
137
  */
163
138
  setHandlerGetLabel: (newHandler: GetLabelType) => void;
164
- /**
165
- * @description Modifica los estados que se actualizan externamente al Store
166
- * @param newIsMobile
167
- * @returns
168
- */
169
- setExternalState: (newExternalState: ExternalOwnerState) => void;
170
139
  };
171
140
  }
172
- export declare type DefaultPopupsStoreProps = PopupsState;
173
- export declare type InitialPopupsStoreProps = Pick<PopupsState, 'getLabel' | 'ownerState' | 'baseZindex'> & Partial<DefaultPopupsStoreProps>;
174
- export interface PopupsProviderProps {
175
- baseZindex?: number;
141
+ export declare type DefaultPopupsStoreProps = PopupsStore;
142
+ export declare type InitialPopupsStoreProps = Pick<PopupsStore, 'getLabel' | 'baseZindex'> & Partial<DefaultPopupsStoreProps> & {
143
+ containerElement: HTMLElement;
144
+ };
145
+ export interface PopupsProviderProps extends Pick<PopupsStore, 'baseZindex' | 'storeId'> {
146
+ /**
147
+ * Contenedor donde los popups serán renderizados
148
+ */
149
+ containerElement: HTMLElement;
150
+ /**
151
+ * @description Poopus abiertos desde el principio, puede servir para abrir los poupus previamente cargados en las cookies
152
+ */
176
153
  initialPopups?: PopupStoreProps[];
154
+ /**
155
+ * @description children
156
+ */
177
157
  children: ReactNode;
178
158
  }
@@ -1,8 +1,7 @@
1
- import type { PopupContainerProps } from './types';
2
1
  /**
3
2
  * @description Visor de poups, cuyo funcionamineto depende del proveedor de popups. PoupsProvider.
4
3
  * Utiliza la librería de tranciones para animar la apertura y cierre de los popups.
5
4
  * @param props
6
5
  * @returns
7
6
  */
8
- export declare const PopupsViewer: (props: PopupContainerProps) => import("react/jsx-runtime").JSX.Element | null;
7
+ export declare const PopupsViewer: () => import("react/jsx-runtime").JSX.Element | null;
@@ -1,5 +1,5 @@
1
1
  export declare const COMPONENT_TEST_ID = "M4LPopupsViewer";
2
- export declare const COMPONENT_CLASS_NAME = "M4LPopupsViewer";
2
+ export declare const POPUPS_VIEWER_KEY_COMPONENT = "M4LPopupsViewer";
3
3
  export declare const EARTH_RADIO = 6378137;
4
4
  export declare const DN = 500;
5
5
  export declare const DE = 500;
@@ -0,0 +1,25 @@
1
+ /// <reference types="react" />
2
+ export declare const RootStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & Partial<import("../types").PopupsViewerOwnerState> & Record<string, unknown> & {
3
+ ownerState: Partial<import("../types").PopupsViewerOwnerState> & Record<string, unknown>;
4
+ }, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement>>, {}>;
5
+ export declare const PopupDragWindowRootStyled: import("@emotion/styled").StyledComponent<Pick<import("../../../../DragResizeWindow/types").DraggableWindowProps & import("react").RefAttributes<HTMLDivElement>, keyof import("../../../../DragResizeWindow/types").DraggableWindowProps | keyof import("react").RefAttributes<HTMLDivElement>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & Partial<import("../types").PopupsViewerOwnerState> & Record<string, unknown> & {
6
+ ownerState: Partial<import("../types").PopupsViewerOwnerState> & Record<string, unknown>;
7
+ }, {}, {}>;
8
+ export declare const PopupContentEditionInfoStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & Partial<import("../types").PopupsViewerOwnerState> & Record<string, unknown> & {
9
+ ownerState: Partial<import("../types").PopupsViewerOwnerState> & Record<string, unknown>;
10
+ }, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement>>, {}>;
11
+ export declare const PopupHeaderContainerStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & Partial<import("../types").PopupsViewerOwnerState> & Record<string, unknown> & {
12
+ ownerState: Partial<import("../types").PopupsViewerOwnerState> & Record<string, unknown>;
13
+ }, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement>>, {}>;
14
+ export declare const PopupHeaderTitleStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & Partial<import("../types").PopupsViewerOwnerState> & Record<string, unknown> & {
15
+ ownerState: Partial<import("../types").PopupsViewerOwnerState> & Record<string, unknown>;
16
+ }, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, keyof import("react").ClassAttributes<HTMLSpanElement> | keyof import("react").HTMLAttributes<HTMLSpanElement>>, {}>;
17
+ export declare const PopupHeaderSubTitleStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & Partial<import("../types").PopupsViewerOwnerState> & Record<string, unknown> & {
18
+ ownerState: Partial<import("../types").PopupsViewerOwnerState> & Record<string, unknown>;
19
+ }, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, keyof import("react").ClassAttributes<HTMLSpanElement> | keyof import("react").HTMLAttributes<HTMLSpanElement>>, {}>;
20
+ export declare const PopupContentRootStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & Partial<import("../types").PopupsViewerOwnerState> & Record<string, unknown> & {
21
+ ownerState: Partial<import("../types").PopupsViewerOwnerState> & Record<string, unknown>;
22
+ }, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement>>, {}>;
23
+ export declare const PopupContentWrapperStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & Partial<import("../types").PopupsViewerOwnerState> & Record<string, unknown> & {
24
+ ownerState: Partial<import("../types").PopupsViewerOwnerState> & Record<string, unknown>;
25
+ }, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement>>, {}>;
@@ -0,0 +1,10 @@
1
+ export declare enum PopupViewerSlots {
2
+ root = "root",
3
+ popupDragWindowRoot = "popupRoot",
4
+ pDWHeaderContainer = "pDWHeaderContainer",
5
+ pDWHeaderTitle = "pDWHeaderTitle",
6
+ pDWHeaderSubTitle = "pDWHeaderSubTitle",
7
+ pDWContentRoot = "pDWContentRoot",
8
+ pDWContentEditionInfo = "pDWContentEditionInfo",
9
+ pDWContentWrapper = "pDWContentWrapper"
10
+ }