@m4l/components 0.2.36 → 1.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 (201) hide show
  1. package/components/AccountPopover/{index.a9dc9f92.js → index.efc74d5c.js} +3 -5
  2. package/components/AppBar/{index.7dee7427.js → index.fc126a22.js} +6 -5
  3. package/components/AppBar/styles.d.ts +1 -1
  4. package/components/CommonActions/components/Actions/styles.d.ts +1 -1
  5. package/components/DataGrid/styles.d.ts +1 -1
  6. package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/subcomponents/ColumnsConfig/styles.d.ts +7 -7
  7. package/components/DragResizeWindow/{index.a9f25040.js → index.46b380e1.js} +3 -6
  8. package/components/DynamicFilter/dynamicFilterSlots.d.ts +76 -101
  9. package/components/DynamicFilter/{index.48d809e2.js → index.d9168c12.js} +22 -96
  10. package/components/FieldLabel/{index.2622ee40.js → index.f9cdcc27.js} +4 -4
  11. package/components/GridLayout/{index.b9c47a4c.js → index.bb3b7769.js} +23 -46
  12. package/components/GridLayout/subcomponents/Griditem/{index.69bc14e5.js → index.bb23f651.js} +4 -3
  13. package/components/GridLayout/subcomponents/Responsive/{index.094c1d09.js → index.b8a2a121.js} +2 -1
  14. package/components/GridLayout/subcomponents/SizeProvider/{index.e1d2df80.js → index.094bc6b5.js} +1 -1
  15. package/components/{commercial/index.b90488db.js → HamburgerMenu/index.5997af31.js} +4 -6
  16. package/components/HelperText/{index.81c5d349.js → index.be949cdf.js} +3 -2
  17. package/components/HelperText/styles.d.ts +1 -1
  18. package/components/Icon/index.d5fed418.js +420 -0
  19. package/components/Icon/styles.d.ts +2 -2
  20. package/components/{hook-form/RHFUpload/index.c5e5c61c.js → Image/index.36a3d440.js} +233 -32
  21. package/components/Image/styles.d.ts +1 -1
  22. package/components/LanguagePopover/{index.72f316fc.js → index.e6fa2336.js} +5 -8
  23. package/components/LanguagePopover/styles.d.ts +5 -5
  24. package/components/LinearProgressIndeterminate/{index.2ecd571e.js → index.de9d447c.js} +2 -4
  25. package/components/Loadable/{index.97fe63f9.js → index.e83cdb4e.js} +1 -1
  26. package/components/LoadingError/{index.7aaba1cf.js → index.9f00c83c.js} +8 -12
  27. package/components/LoadingError/styles.d.ts +1 -1
  28. package/components/MFLoader/{index.40c419c0.js → index.402c1acc.js} +4 -8
  29. package/components/ModalDialog/{index.42349189.js → index.ea9189c3.js} +5 -14
  30. package/components/NavLink/{index.9e847eb5.js → index.4e548cee.js} +4 -4
  31. package/components/NavLink/styles.d.ts +1 -1
  32. package/components/NoItemSelected/{index.5a8160fd.js → index.418c8316.js} +6 -15
  33. package/components/NoItemSelected/styles.d.ts +4 -4
  34. package/components/ObjectLogs/{index.6955149e.js → index.bfa7dad3.js} +10 -27
  35. package/components/ObjectLogs/styles.d.ts +3 -3
  36. package/components/PDFViewer/{index.47bb0928.js → index.bb2eca5a.js} +2 -2
  37. package/components/{mui_extended/Pager/index.1ba2d52b.js → Page/index.fdf04592.js} +134 -26
  38. package/components/PaperForm/{index.9f6fd02d.js → index.8121e3da.js} +8 -7
  39. package/components/PaperForm/styles.d.ts +6 -6
  40. package/components/Period/{index.c6d1a95a.js → index.5233694b.js} +157 -22
  41. package/components/Period/styles.d.ts +5 -5
  42. package/components/PrintingSystem/{index.f51a00f8.js → index.fb176a93.js} +14 -14
  43. package/components/PrintingSystem/subcomponents/BodyNode/{index.6792c353.js → index.c1d61038.js} +1 -1
  44. package/components/PrintingSystem/subcomponents/ChartNode/{index.eec6b4cd.js → index.18bd9bad.js} +1 -1
  45. package/components/PrintingSystem/subcomponents/DividerNode/{index.e58467c9.js → index.67d9f1b4.js} +1 -1
  46. package/components/PrintingSystem/subcomponents/FooterNode/{index.920b75c9.js → index.eaee152a.js} +1 -1
  47. package/components/PrintingSystem/subcomponents/GridNode/{index.6c1ad53c.js → index.f5f63a2a.js} +1 -1
  48. package/components/PrintingSystem/subcomponents/HeaderNode/{index.e8b151ad.js → index.7de4e411.js} +1 -1
  49. package/components/PrintingSystem/subcomponents/PaperNode/{index.bf199422.js → index.f9ccf22b.js} +1 -1
  50. package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.44d436b9.js → index.f2f2e903.js} +1 -1
  51. package/components/PrintingSystem/subcomponents/SectionNode/{index.879cf13d.js → index.540a4b19.js} +1 -1
  52. package/components/PrintingSystem/subcomponents/TextBoxNode/{index.eb6af0ca.js → index.41e7fcb0.js} +1 -1
  53. package/components/PropertyValue/{index.5e59580c.js → index.9572c347.js} +4 -7
  54. package/components/Resizeable/{index.5e8e48b1.js → index.1f0c1359.js} +7 -7
  55. package/components/ResizeableWindow/styles.d.ts +1 -1
  56. package/components/ScrollBar/{index.4b965665.js → index.adf0eade.js} +2 -4
  57. package/components/SideBar/classes/index.d.ts +1 -1
  58. package/components/SideBar/{index.5d1f4a23.js → index.629ba840.js} +24 -26
  59. package/components/SideBar/styles.d.ts +2 -2
  60. package/components/SideBar/subcomponents/ContentGroups/styles.d.ts +3 -3
  61. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/styles.d.ts +1 -1
  62. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/subcomponents/NavItemSubContent/styles.d.ts +2 -18
  63. package/components/SplitLayout/{index.15756f0f.js → index.74091a81.js} +1 -3
  64. package/components/ToastContainer/{index.dbd78941.js → index.f9b507b9.js} +3 -3
  65. package/components/animate/LoadingScreen/{index.1a83615a.js → index.779690a7.js} +3 -5
  66. package/components/animate/PropagateLoader/{index.76d7ea70.js → index.a9da8d00.js} +3 -2
  67. package/components/animate/PropagateLoader/syles.d.ts +1 -1
  68. package/components/animate/{index.87296638.js → index.b8497385.js} +3 -2
  69. package/components/areas/components/AreasAdmin/subcomponents/AreaChip/styles.d.ts +3 -3
  70. package/components/areas/constants.5387d83e.js +412 -0
  71. package/components/areas/contexts/AreasContext/{index.19c7b906.js → index.bb316000.js} +5 -6
  72. package/components/areas/contexts/DynamicMFParmsContext/{index.3d9ad0ad.js → index.37d1d444.js} +2 -2
  73. package/components/areas/contexts/WindowToolsMFContext/{index.992ae7a3.js → index.69d95c15.js} +2 -2
  74. package/components/areas/dictionary.7e74022a.js +286 -0
  75. package/components/areas/hooks/useAreas/{index.cedd30ee.js → index.e24bd74d.js} +1 -1
  76. package/components/areas/hooks/useDynamicMFParameters/{index.9e09e1e3.js → index.03ce6078.js} +1 -1
  77. package/components/areas/hooks/useWindowToolsMF/{index.2fbae9dc.js → index.09801b66.js} +1 -1
  78. package/components/areas/icons.504ec098.js +83 -0
  79. package/components/commercial/HamburgerMenu/styles.d.ts +1 -1
  80. package/components/commercial/SectionCommercial/styles.d.ts +4 -9
  81. package/components/hook-form/RHFAutocomplete/classes/index.d.ts +1 -1
  82. package/components/hook-form/RHFAutocomplete/styles.d.ts +1 -1
  83. package/components/hook-form/RHFAutocomplete/subcomponents/RenderOption/styles.d.ts +1 -1
  84. package/components/hook-form/RHFAutocompleteAsync/styles.d.ts +4 -4
  85. package/components/hook-form/RHFCheckbox/styles.d.ts +2 -10
  86. package/components/hook-form/RHFPeriod/styles.d.ts +1 -1
  87. package/components/hook-form/RHFTextField/styles.d.ts +2 -2
  88. package/components/hook-form/RHFTextField/subcomponents/Skeleton/styles.d.ts +2 -2
  89. package/components/hook-form/RHFTextFieldPassword/styles.d.ts +1 -1
  90. package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/styles.d.ts +1 -1
  91. package/components/maps/components/GpsTools/{index.4ea69dd1.js → index.75880ce0.js} +14 -136
  92. package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/styles.d.ts +4 -9
  93. package/components/maps/{components/Map/index.62b7d09b.js → index.8ec46ce4.js} +19 -194
  94. package/components/modal/{WindowBase.2414cd02.js → WindowBase.a3ac7adc.js} +3 -4
  95. package/components/modal/{WindowConfirm.48140481.js → WindowConfirm.e35da619.js} +6 -10
  96. package/components/modal/{index.81eb6def.js → index.a0e30c8b.js} +1 -5
  97. package/components/mui_extended/Accordion/styles.d.ts +3 -3
  98. package/components/mui_extended/Badge/styles.d.ts +1 -1
  99. package/components/mui_extended/Button/styles.d.ts +2 -10
  100. package/components/mui_extended/IconButton/styles.d.ts +1 -1
  101. package/components/mui_extended/ImageButton/styles.d.ts +1 -1
  102. package/components/mui_extended/MenuActions/styles.d.ts +2 -27
  103. package/components/mui_extended/Pager/styles.d.ts +1 -1
  104. package/components/mui_extended/Stack/styles.d.ts +2 -9
  105. package/components/mui_extended/Tab/styles.d.ts +2 -2
  106. package/components/mui_extended/Tabs/styles.d.ts +3 -58
  107. package/components/mui_extended/Typography/styles.d.ts +1 -1
  108. package/components/popups/PopupsProvider/{index.8fb6232a.js → index.18669fb4.js} +1 -1
  109. package/components/popups/PopupsViewer/{index.813854e4.js → index.ba354267.js} +5 -10
  110. package/contexts/ModalContext/{index.45c275cd.js → index.cf02e6bd.js} +1 -1
  111. package/contexts/RHFormContext/{index.bf3a2812.js → index.dc955a09.js} +2 -6
  112. package/hooks/useFormAddEdit/{index.9b27ca02.js → index.f156a2cd.js} +4 -8
  113. package/hooks/useModal/index.ef54bcf2.js +66 -0
  114. package/hooks/useTab/{index.f7973779.js → index.bce8b99e.js} +1 -1
  115. package/index.d.ts +0 -1
  116. package/index.js +276 -360
  117. package/package.json +3 -2
  118. package/{react-draggable.79b4c69a.js → react-draggable.5331add7.js} +1 -1
  119. package/{react-resizable.af1f31c1.js → react-resizable.37bfb965.js} +3 -5
  120. package/test/{getNameDataTestId.0faeade8.js → getNameDataTestId.aee44365.js} +2 -2
  121. package/test/index.6d4b98b9.js +4 -0
  122. package/utils/{index.0718eeac.js → index.9ee4c99a.js} +113 -3
  123. package/vendor.a1ce6777.js +6352 -0
  124. package/assets/Logo/index.109a182d.js +0 -38
  125. package/assets/Logo.d.ts +0 -6
  126. package/components/CommonActions/components/ActionCancel/index.46f636e9.js +0 -12
  127. package/components/CommonActions/components/ActionFormCancel/index.2b0bd50d.js +0 -56
  128. package/components/CommonActions/components/ActionFormIntro/index.4f212c39.js +0 -33
  129. package/components/CommonActions/components/ActionIntro/index.7406bd47.js +0 -25
  130. package/components/CommonActions/components/Actions/index.273645af.js +0 -70
  131. package/components/DataGrid/constants.e334cd50.js +0 -10
  132. package/components/DataGrid/formatters/ColumnBooleanFormatter/index.cee6b676.js +0 -26
  133. package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/index.708f3fb5.js +0 -22
  134. package/components/DataGrid/formatters/ColumnDateFormatter/index.e00d0cf2.js +0 -19
  135. package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/index.c064bb07.js +0 -23
  136. package/components/DataGrid/formatters/ColumnNestedValueFormatter/index.880e743b.js +0 -14
  137. package/components/DataGrid/formatters/ColumnPointsFormatter/index.226cc583.js +0 -10
  138. package/components/DataGrid/formatters/ColumnPriceFormatter/index.bf9d9e60.js +0 -10
  139. package/components/DataGrid/formatters/ColumnSetCheckFormatter/index.4045b2f2.js +0 -36
  140. package/components/DataGrid/formatters/ColumnUncertaintyFormatter/index.a87302d1.js +0 -10
  141. package/components/DataGrid/formatters/index.2c2f0ae4.js +0 -1
  142. package/components/DataGrid/index.304437ee.js +0 -917
  143. package/components/DataGrid/subcomponents/Actions/index.f14590d2.js +0 -595
  144. package/components/DataGrid/subcomponents/editors/TextEditor/index.3f0d9e28.js +0 -76
  145. package/components/Icon/index.ee7b85c9.js +0 -192
  146. package/components/Image/index.8cc036b1.js +0 -168
  147. package/components/Page/index.c1d4a319.js +0 -114
  148. package/components/animate/variants/index.7a912140.js +0 -1
  149. package/components/areas/components/AreasAdmin/index.f239c717.js +0 -733
  150. package/components/areas/components/AreasViewer/index.61e0538b.js +0 -1071
  151. package/components/areas/components/index.558684b3.js +0 -1
  152. package/components/areas/constants.66529246.js +0 -6
  153. package/components/areas/contexts/index.24025b97.js +0 -1
  154. package/components/areas/dictionary.08cfc4c9.js +0 -36
  155. package/components/areas/hooks/index.d9dc1e21.js +0 -1
  156. package/components/areas/icons.8266ccc8.js +0 -26
  157. package/components/areas/index.4cc6a221.js +0 -22
  158. package/components/commercial/AppBarCommercial/index.9f654f8e.js +0 -28
  159. package/components/commercial/SectionCommercial/index.3df4685b.js +0 -57
  160. package/components/commercial/TopBar/index.7aeb6ec0.js +0 -234
  161. package/components/formatters/BooleanFormatter/index.0c2d8e35.js +0 -44
  162. package/components/formatters/DateFormatter/index.2ef6f261.js +0 -43
  163. package/components/formatters/PointsFormatter/index.d8a4ee54.js +0 -25
  164. package/components/formatters/PriceFormatter/index.97f75b4b.js +0 -35
  165. package/components/formatters/UncertaintyFormatter/index.c3ffdebc.js +0 -29
  166. package/components/formatters/index.b816c6b6.js +0 -117
  167. package/components/hook-form/HelperError/index.c8b046b7.js +0 -19
  168. package/components/hook-form/RHFAutocomplete/index.ea2ac2b1.js +0 -408
  169. package/components/hook-form/RHFAutocompleteAsync/index.98dcf0de.js +0 -158
  170. package/components/hook-form/RHFCheckbox/index.c32278fa.js +0 -142
  171. package/components/hook-form/RHFColorPicker/index.8c939bfd.js +0 -191
  172. package/components/hook-form/RHFDateTime/index.ac27deab.js +0 -190
  173. package/components/hook-form/RHFMultiCheckbox/index.437e6ba3.js +0 -34
  174. package/components/hook-form/RHFPeriod/index.70cfc422.js +0 -104
  175. package/components/hook-form/RHFRadioGroup/index.11c0add8.js +0 -35
  176. package/components/hook-form/RHFSelect/index.c6c60ecc.js +0 -29
  177. package/components/hook-form/RHFTextField/index.fa97889a.js +0 -325
  178. package/components/maps/index.13bb982c.js +0 -7
  179. package/components/mui_extended/Accordion/index.d08a0361.js +0 -142
  180. package/components/mui_extended/Avatar/index.fb9ad158.js +0 -63
  181. package/components/mui_extended/Badge/index.2a3aef2c.js +0 -30
  182. package/components/mui_extended/BoxIcon/index.d61e7ac5.js +0 -22
  183. package/components/mui_extended/Breadcrumbs/index.4a44883c.js +0 -87
  184. package/components/mui_extended/Button/index.5395d101.js +0 -213
  185. package/components/mui_extended/CheckBox.256169f0.js +0 -76
  186. package/components/mui_extended/CircularProgress/index.967e70b7.js +0 -8
  187. package/components/mui_extended/IconButton/index.b0ee4965.js +0 -119
  188. package/components/mui_extended/LinearProgress/index.4092bb69.js +0 -9
  189. package/components/mui_extended/LinkWithRoute/index.288c51f3.js +0 -15
  190. package/components/mui_extended/MenuActions/index.d92ed0d6.js +0 -175
  191. package/components/mui_extended/Popover/index.4e7340b4.js +0 -142
  192. package/components/mui_extended/Stack/index.fe363ca5.js +0 -31
  193. package/components/mui_extended/Tab/index.c5ad86e2.js +0 -134
  194. package/components/mui_extended/ToggleButton/index.7fbc8614.js +0 -18
  195. package/components/mui_extended/ToggleIconButton/index.0cd347b4.js +0 -24
  196. package/components/mui_extended/Tooltip/index.49bb5ee1.js +0 -40
  197. package/components/mui_extended/Typography/index.a1e774a2.js +0 -54
  198. package/components/mui_extended/index.b606cd9d.js +0 -1
  199. package/hooks/useModal/index.30674bb7.js +0 -11
  200. package/style.css +0 -65
  201. package/test/constants_no_mock.86c553a9.js +0 -4
@@ -1,23 +1,11 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useState, useRef, useEffect, useCallback } from "react";
3
3
  import clsx from "clsx";
4
- import { M as MemonizedGridItem } from "./subcomponents/Griditem/index.69bc14e5.js";
4
+ import { f as DEFAULT_ROW_HEIGHT, g as COMPONENT_CLASS_NAME, h as DEFAULT_COLS, i as DEFAULT_CONTAINER_PADDING, j as DEFAULT_MARGIN, k as DEFAULT_COLAPSED_HEIGHT, l as DEFAULT_CONTAINER_WIDTH, m as DEFAULT_CONTAINER_HEIGHT, n as DEFAULT_TRANSFORM_SCALE } from "../areas/constants.5387d83e.js";
5
+ import { M as MemonizedGridItem } from "./subcomponents/Griditem/index.bb23f651.js";
5
6
  import { styled, alpha } from "@mui/material/styles";
6
- import { r as react_resizable_css } from "../../react-resizable.af1f31c1.js";
7
7
  import { generateUtilityClasses } from "@mui/material";
8
8
  import "@mui/base";
9
- const COMPONENT_CLASS_NAME = "M4LGridLayout";
10
- const DEFAULT_COLS = 12;
11
- const DEFAULT_ROW_HEIGHT = 20;
12
- const DEFAULT_CONTAINER_WIDTH = 1280;
13
- const DEFAULT_CONTAINER_HEIGHT = 480;
14
- const DEFAULT_RESPONSIVE_COLS = { lg: 12, md: 10, sm: 6, xs: 4, xxs: 1 };
15
- const DEFAULT_RESPONSIVE_BREAKPOINTS = { lg: 1200, md: 996, sm: 768, xs: 480, xxs: 0 };
16
- const DEFAULT_CONTAINER_PADDING = [10, 10];
17
- const DEFAULT_MARGIN = [10, 10];
18
- const DEFAULT_TRANSFORM_SCALE = 1;
19
- const DEFAULT_COLAPSED_HEIGHT = 35;
20
- const THROTTLE_RESIZE_TIMEOUT = 200;
21
9
  const noop = () => {
22
10
  };
23
11
  function bottom(layout, colapsedHeight, rowHeight) {
@@ -502,6 +490,7 @@ const gridLayoutClasses = generateUtilityClasses(COMPONENT_CLASS_NAME, [
502
490
  "dragging",
503
491
  "static"
504
492
  ]);
493
+ const react_resizable_css = {};
505
494
  const GridLayoutRoot = styled("div")`
506
495
  overflow: auto;
507
496
  position: relative;
@@ -543,7 +532,7 @@ const GridLayoutRoot = styled("div")`
543
532
  }
544
533
 
545
534
  .${gridLayoutClasses.gridItemRoot}.${gridLayoutClasses.gridItemPlaceholder} {
546
- background: ${(props) => props.theme.palette.state.toneOp};
535
+ background: ${(props) => props.theme.vars.palette.state?.toneOp};
547
536
  opacity: 0.5;
548
537
  transition-duration: 100ms;
549
538
  z-index: 3000;
@@ -565,7 +554,7 @@ const GridLayoutRoot = styled("div")`
565
554
  height: 10px;
566
555
  min-width: 10px;
567
556
  min-height: 10px;
568
- background-color: ${(props) => alpha(props.theme.palette.text.primary, 0.3)};
557
+ background-color: ${(props) => alpha(props.theme.colorSchemes.finalTheme.palette.text.primary, 0.3)};
569
558
  }
570
559
  }
571
560
 
@@ -582,7 +571,7 @@ const GridLayoutRoot = styled("div")`
582
571
 
583
572
  .react-resizable-hide > .react-resizable-handle {
584
573
  display: none;
585
- border-color: ${(props) => `2px solid ${props.theme.palette.text.disabled}`};
574
+ border-color: ${(props) => `2px solid ${props.theme.vars.palette.text.disabled}`};
586
575
  }
587
576
 
588
577
  .${gridLayoutClasses.gridItemRoot} > .react-resizable-handle.react-resizable-handle-sw {
@@ -590,16 +579,16 @@ const GridLayoutRoot = styled("div")`
590
579
  left: 3px;
591
580
  cursor: sw-resize;
592
581
  transform: rotate(90deg);
593
- border-right: ${(props) => `2px solid ${props.theme.palette.text.disabled}`};
594
- border-bottom: ${(props) => `2px solid ${props.theme.palette.text.disabled}`};
582
+ border-right: ${(props) => `2px solid ${props.theme.vars.palette.text.disabled}`};
583
+ border-bottom: ${(props) => `2px solid ${props.theme.vars.palette.text.disabled}`};
595
584
  border-bottom-right-radius: 15%;
596
585
  }
597
586
  .${gridLayoutClasses.gridItemRoot} > .react-resizable-handle.react-resizable-handle-se {
598
587
  bottom: 3px;
599
588
  right: 3px;
600
589
  cursor: se-resize;
601
- border-right: ${(props) => `2px solid ${props.theme.palette.text.disabled}`};
602
- border-bottom: ${(props) => `2px solid ${props.theme.palette.text.disabled}`};
590
+ border-right: ${(props) => `2px solid ${props.theme.vars.palette.text.disabled}`};
591
+ border-bottom: ${(props) => `2px solid ${props.theme.vars.palette.text.disabled}`};
603
592
  border-bottom-right-radius: 15%;
604
593
  }
605
594
  .${gridLayoutClasses.gridItemRoot} > .react-resizable-handle.react-resizable-handle-nw {
@@ -607,8 +596,8 @@ const GridLayoutRoot = styled("div")`
607
596
  left: 3px;
608
597
  cursor: nw-resize;
609
598
  transform: rotate(180deg);
610
- border-right: ${(props) => `2px solid ${props.theme.palette.text.disabled}`};
611
- border-bottom: ${(props) => `2px solid ${props.theme.palette.text.disabled}`};
599
+ border-right: ${(props) => `2px solid ${props.theme.vars.palette.text.disabled}`};
600
+ border-bottom: ${(props) => `2px solid ${props.theme.vars.palette.text.disabled}`};
612
601
  border-bottom-right-radius: 15%;
613
602
  }
614
603
  .${gridLayoutClasses.gridItemRoot} > .react-resizable-handle.react-resizable-handle-ne {
@@ -616,8 +605,8 @@ const GridLayoutRoot = styled("div")`
616
605
  right: 3px;
617
606
  cursor: ne-resize;
618
607
  transform: rotate(270deg);
619
- border-right: ${(props) => `2px solid ${props.theme.palette.text.disabled}`};
620
- border-bottom: ${(props) => `2px solid ${props.theme.palette.text.disabled}`};
608
+ border-right: ${(props) => `2px solid ${props.theme.vars.palette.text.disabled}`};
609
+ border-bottom: ${(props) => `2px solid ${props.theme.vars.palette.text.disabled}`};
621
610
  border-bottom-right-radius: 15%;
622
611
  }
623
612
  .${gridLayoutClasses.gridItemRoot} > .react-resizable-handle.react-resizable-handle-w,
@@ -1189,11 +1178,7 @@ function GridLayout(props) {
1189
1178
  );
1190
1179
  }
1191
1180
  export {
1192
- isEqualLayouts as A,
1193
- COMPONENT_CLASS_NAME as C,
1194
- DEFAULT_COLS as D,
1195
1181
  GridLayout as G,
1196
- THROTTLE_RESIZE_TIMEOUT as T,
1197
1182
  calcGridItemWHPx as a,
1198
1183
  calcGridColWidth as b,
1199
1184
  calcXY as c,
@@ -1202,22 +1187,14 @@ export {
1202
1187
  calcGridItemPosition as f,
1203
1188
  getH as g,
1204
1189
  gridLayoutClasses as h,
1205
- DEFAULT_ROW_HEIGHT as i,
1206
- DEFAULT_CONTAINER_WIDTH as j,
1207
- DEFAULT_CONTAINER_HEIGHT as k,
1208
- DEFAULT_MARGIN as l,
1209
- DEFAULT_CONTAINER_PADDING as m,
1210
- DEFAULT_TRANSFORM_SCALE as n,
1211
- DEFAULT_COLAPSED_HEIGHT as o,
1190
+ setTopLeft as i,
1191
+ cloneLayoutItem as j,
1192
+ cloneLayout as k,
1193
+ compact as l,
1194
+ correctBounds as m,
1195
+ isEqualLayout as n,
1196
+ noop as o,
1212
1197
  perc as p,
1213
- setTopLeft as q,
1214
- cloneLayoutItem as r,
1215
- setTransform as s,
1216
- cloneLayout as t,
1217
- compact as u,
1218
- correctBounds as v,
1219
- isEqualLayout as w,
1220
- DEFAULT_RESPONSIVE_BREAKPOINTS as x,
1221
- DEFAULT_RESPONSIVE_COLS as y,
1222
- noop as z
1198
+ isEqualLayouts as q,
1199
+ setTransform as s
1223
1200
  };
@@ -1,10 +1,11 @@
1
1
  import { jsx, Fragment } from "react/jsx-runtime";
2
2
  import React__default, { useRef, useEffect, useState, useCallback, useMemo } from "react";
3
- import { D as DraggableCore_1 } from "../../../../react-draggable.79b4c69a.js";
4
- import { R as Resizable } from "../../../../react-resizable.af1f31c1.js";
5
- 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.b9c47a4c.js";
3
+ import { D as DraggableCore_1 } from "../../../../react-draggable.5331add7.js";
4
+ import { R as Resizable } from "../../../../react-resizable.37bfb965.js";
5
+ 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, p as perc, s as setTransform, i as setTopLeft } from "../../index.bb3b7769.js";
6
6
  import clsx from "clsx";
7
7
  import { deepEqual } from "fast-equals";
8
+ import { h as DEFAULT_COLS, f as DEFAULT_ROW_HEIGHT, l as DEFAULT_CONTAINER_WIDTH, m as DEFAULT_CONTAINER_HEIGHT, j as DEFAULT_MARGIN, i as DEFAULT_CONTAINER_PADDING, n as DEFAULT_TRANSFORM_SCALE, k as DEFAULT_COLAPSED_HEIGHT } from "../../../areas/constants.5387d83e.js";
8
9
  function GridItem(props) {
9
10
  const {
10
11
  layoutItemRender: ComponentItemRender,
@@ -1,7 +1,8 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { r as cloneLayoutItem, t as cloneLayout, u as compact, v as correctBounds, w as isEqualLayout, o as DEFAULT_COLAPSED_HEIGHT, x as DEFAULT_RESPONSIVE_BREAKPOINTS, m as DEFAULT_CONTAINER_PADDING, l as DEFAULT_MARGIN, y as DEFAULT_RESPONSIVE_COLS, i as DEFAULT_ROW_HEIGHT, z as noop, A as isEqualLayouts, G as GridLayout } from "../../index.b9c47a4c.js";
2
+ import { j as cloneLayoutItem, k as cloneLayout, l as compact, m as correctBounds, n as isEqualLayout, o as noop, q as isEqualLayouts, G as GridLayout } from "../../index.bb3b7769.js";
3
3
  import { useState, useRef, useEffect, useCallback } from "react";
4
4
  import { useFirstRender } from "@m4l/graphics";
5
+ import { k as DEFAULT_COLAPSED_HEIGHT, o as DEFAULT_RESPONSIVE_BREAKPOINTS, i as DEFAULT_CONTAINER_PADDING, j as DEFAULT_MARGIN, p as DEFAULT_RESPONSIVE_COLS, f as DEFAULT_ROW_HEIGHT } from "../../../areas/constants.5387d83e.js";
5
6
  import { deepEqual } from "fast-equals";
6
7
  function getBreakpointFromWidth(breakpoints, width) {
7
8
  const sorted = sortBreakpoints(breakpoints);
@@ -3,7 +3,7 @@ import { useRef, useState, useMemo, useCallback, useEffect } from "react";
3
3
  import clsx from "clsx";
4
4
  import { throttle } from "lodash";
5
5
  import { useResizeObserver } from "@m4l/graphics";
6
- import { j as DEFAULT_CONTAINER_WIDTH, k as DEFAULT_CONTAINER_HEIGHT, T as THROTTLE_RESIZE_TIMEOUT, C as COMPONENT_CLASS_NAME } from "../../index.b9c47a4c.js";
6
+ import { l as DEFAULT_CONTAINER_WIDTH, m as DEFAULT_CONTAINER_HEIGHT, q as THROTTLE_RESIZE_TIMEOUT, g as COMPONENT_CLASS_NAME } from "../../../areas/constants.5387d83e.js";
7
7
  function withSizeProvider(ComposedComponent) {
8
8
  return (props) => {
9
9
  const { measureBeforeMount = true, ...rest } = props;
@@ -1,16 +1,15 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useState } from "react";
3
- import { styled } from "@mui/material/";
3
+ import { styled } from "@mui/material/styles";
4
4
  import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
5
5
  import { unstable_composeClasses } from "@mui/base";
6
- import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
6
+ import { r as componentName, H as HAMBURGER_MENU_PREFIX, T as TEST_PROP_ID } from "../areas/constants.5387d83e.js";
7
7
  import { useEnvironment } from "@m4l/core";
8
- import { S as SideBar } from "../SideBar/index.5d1f4a23.js";
9
- import { I as IconButton } from "../mui_extended/IconButton/index.b0ee4965.js";
8
+ import { S as SideBar } from "../SideBar/index.629ba840.js";
9
+ import { a as IconButton } from "../Icon/index.d5fed418.js";
10
10
  const HamburgerMenuRoot = styled("header")(({ theme }) => ({
11
11
  ...theme.components?.M4LHamburgerMenuCommercial?.styleOverrides
12
12
  }));
13
- const componentName = "M4LHamburgerMenuCommercial";
14
13
  generateUtilityClasses(componentName, ["root", "ImageLogo"]);
15
14
  function getHamburgerMenuComercialClassesUtilityClass(slot) {
16
15
  return generateUtilityClass(componentName, slot);
@@ -25,7 +24,6 @@ const useHamburgerMenuComercialUtilityClasses = () => {
25
24
  ...composedClasses
26
25
  };
27
26
  };
28
- const HAMBURGER_MENU_PREFIX = "M4LHamburgerMenu";
29
27
  const getNameDataTestId = (KEY) => {
30
28
  return `${HAMBURGER_MENU_PREFIX}-${KEY}`;
31
29
  };
@@ -1,7 +1,8 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { styled, generateUtilityClasses, generateUtilityClass } from "@mui/material";
2
+ import { styled } from "@mui/material/styles";
3
+ import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
3
4
  import { unstable_composeClasses } from "@mui/base";
4
- import { T as Typography } from "../mui_extended/Typography/index.a1e774a2.js";
5
+ import { T as Typography } from "../../vendor.a1ce6777.js";
5
6
  const HelperTextRoot = styled("div")(({ theme }) => ({
6
7
  ...theme.components?.M4LErrorLabel?.styleOverrides
7
8
  }));
@@ -1,2 +1,2 @@
1
1
  /// <reference types="react" />
2
- export declare const HelperTextRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
2
+ export declare const HelperTextRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,420 @@
1
+ import { jsx, Fragment } from "react/jsx-runtime";
2
+ import { generateUtilityClasses, generateUtilityClass, Skeleton, Tooltip, IconButton as IconButton$1, Box, styled as styled$1, SvgIcon } from "@mui/material";
3
+ import clsx from "clsx";
4
+ import { unstable_composeClasses } from "@mui/base";
5
+ import { s as componentName, I as ICON_PREFIX, T as TEST_PROP_ID, t as componentName$1, L as LABEL_BK_COLOR_DEFAULT, u as LABEL_COLOR_DEFAULT } from "../areas/constants.5387d83e.js";
6
+ import { w as withToggle } from "../../hocs/withToggle/index.548aeace.js";
7
+ import { useMemo, useState } from "react";
8
+ import { useModuleDictionary, useModuleSkeleton, useEnvironment } from "@m4l/core";
9
+ import { styled } from "@mui/material/styles";
10
+ import { useResponsiveDesktop } from "@m4l/graphics";
11
+ import { Marker } from "react-leaflet";
12
+ import L__default from "leaflet";
13
+ import { m as mapClasses } from "../maps/index.8ec46ce4.js";
14
+ import { u as useSideBar, g as getNameDataTestId$1 } from "../SideBar/index.629ba840.js";
15
+ const IconRoot = styled("div")(({ theme }) => ({
16
+ ...theme.components?.M4LIcon?.styleOverrides
17
+ }));
18
+ const DivIcon = styled("div", {
19
+ shouldForwardProp: (props) => props !== "src" && props !== "rotationAngle"
20
+ })(({ src, rotationAngle }) => ({
21
+ maskPosition: "center",
22
+ maskRepeat: "no-repeat",
23
+ maskSize: "cover",
24
+ WebkitMaskRepeat: "no-repeat",
25
+ mask: `url(${src})`,
26
+ WebkitMask: `url(${src})`,
27
+ WebkitMaskSize: "cover",
28
+ ...rotationAngle && {
29
+ transform: `rotate(${rotationAngle}deg)`
30
+ }
31
+ }));
32
+ generateUtilityClasses(componentName, [
33
+ "root",
34
+ "icon",
35
+ "variantSkeleton",
36
+ "sizeExtraSmall",
37
+ "sizeSmall",
38
+ "sizeMedium",
39
+ "sizeLarge",
40
+ "sizeExtraLarge",
41
+ "rotationAngle"
42
+ ]);
43
+ function getIconClassesUtilityClass(slot) {
44
+ return generateUtilityClass(componentName, slot);
45
+ }
46
+ const useUtilityClasses$1 = (ownerState) => {
47
+ const slots = {
48
+ root: ["root"],
49
+ icon: [
50
+ "icon",
51
+ ownerState.size === "extraSmall" && "sizeExtraSmall",
52
+ ownerState.size === "small" && "sizeSmall",
53
+ ownerState.size === "medium" && "sizeMedium",
54
+ ownerState.size === "large" && "sizeLarge",
55
+ ownerState.size === "extraLarge" && "sizeExtraLarge",
56
+ ownerState.rotationAngle ? "rotationAngle" : ""
57
+ ],
58
+ variantSkeleton: [
59
+ "variantSkeleton",
60
+ ownerState.size === "extraSmall" && "sizeExtraSmall",
61
+ ownerState.size === "small" && "sizeSmall",
62
+ ownerState.size === "medium" && "sizeMedium",
63
+ ownerState.size === "large" && "sizeLarge",
64
+ ownerState.size === "extraLarge" && "sizeExtraLarge"
65
+ ]
66
+ };
67
+ const composedClasses = unstable_composeClasses(slots, getIconClassesUtilityClass, {});
68
+ return {
69
+ ...composedClasses
70
+ };
71
+ };
72
+ const getNameDataTestId = (KEY) => {
73
+ return `${ICON_PREFIX}-${KEY}`;
74
+ };
75
+ function Icon(props) {
76
+ const { src, size = "small", rotationAngle, className } = props;
77
+ const isDesktop = useResponsiveDesktop();
78
+ const ownerState = {
79
+ size: isDesktop ? size : "medium",
80
+ rotationAngle
81
+ };
82
+ const classes = useUtilityClasses$1(ownerState);
83
+ return /* @__PURE__ */ jsx(
84
+ IconRoot,
85
+ {
86
+ className: clsx(classes.root, className),
87
+ ...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId("root") } : {},
88
+ children: /* @__PURE__ */ jsx(
89
+ DivIcon,
90
+ {
91
+ className: classes.icon,
92
+ src,
93
+ rotationAngle,
94
+ ...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId("icon") } : {}
95
+ }
96
+ )
97
+ }
98
+ );
99
+ }
100
+ const SkeletonIconButton = (props) => {
101
+ const { classes } = props;
102
+ return /* @__PURE__ */ jsx(
103
+ Skeleton,
104
+ {
105
+ variant: "rectangular",
106
+ className: classes.skeleton,
107
+ "data-testid": "SkeletonIconButton"
108
+ }
109
+ );
110
+ };
111
+ const IconButtonRoot = styled("div")(({ theme }) => ({
112
+ ...theme.components?.M4LIconButton?.styleOverrides
113
+ }));
114
+ const iconButtonClasses = generateUtilityClasses(componentName$1, [
115
+ "root",
116
+ "skeleton",
117
+ "sizemSall",
118
+ "sizeMedium",
119
+ "variantPrimary",
120
+ "variantSecondary",
121
+ "variantLine",
122
+ "isFocus",
123
+ "isDisabled",
124
+ "togglePressed",
125
+ "toggleNotPressed"
126
+ ]);
127
+ function getIconButtonUtilityClass(slot) {
128
+ return generateUtilityClass(componentName$1, slot);
129
+ }
130
+ const useUtilityClasses = (ownerState) => {
131
+ const slots = {
132
+ root: [
133
+ "root",
134
+ ownerState.size === "small" && "sizeSmall",
135
+ ownerState.size === "medium" && "sizeMedium",
136
+ ownerState.variant === "primary" && ownerState.isSkeleton !== true && "variantPrimary",
137
+ ownerState.variant === "secondary" && ownerState.isSkeleton !== true && "variantSecondary",
138
+ ownerState.variant === "line" && ownerState.isSkeleton !== true && "variantLine",
139
+ ownerState.isFocus && !ownerState.isDisabled && "isFocus",
140
+ ownerState.isDisabled && "isDisabled"
141
+ ],
142
+ skeleton: ["skeleton"]
143
+ };
144
+ const composedClasses = unstable_composeClasses(slots, getIconButtonUtilityClass, {});
145
+ return {
146
+ ...composedClasses
147
+ };
148
+ };
149
+ const IconButton = (props) => {
150
+ const {
151
+ src,
152
+ tooltip,
153
+ size = "small",
154
+ dictionaryTooltipId,
155
+ rotationAngle,
156
+ variant = "line",
157
+ disabled,
158
+ className,
159
+ onClick,
160
+ ...other
161
+ } = props;
162
+ const { getLabel } = useModuleDictionary();
163
+ const isDesktop = useResponsiveDesktop();
164
+ const isSkeleton = useModuleSkeleton();
165
+ const finalTooltip = useMemo(() => {
166
+ if (disabled) {
167
+ return void 0;
168
+ }
169
+ if (tooltip && tooltip !== "") {
170
+ return tooltip;
171
+ }
172
+ if (dictionaryTooltipId && getLabel) {
173
+ return getLabel(dictionaryTooltipId);
174
+ }
175
+ return void 0;
176
+ }, [tooltip, dictionaryTooltipId, getLabel, disabled]);
177
+ const [isfocus] = useState(false);
178
+ const ownerState = {
179
+ variant,
180
+ size: isDesktop ? size : "medium",
181
+ isSkeleton,
182
+ isFocus: disabled ? false : isfocus,
183
+ isDisabled: disabled
184
+ };
185
+ const classes = useUtilityClasses(ownerState);
186
+ return /* @__PURE__ */ jsx(IconButtonRoot, { className: clsx(classes.root, className), "data-testid": "IconButtonRoot", children: !isSkeleton ? /* @__PURE__ */ jsx(Fragment, { children: finalTooltip ? /* @__PURE__ */ jsx(Tooltip, { title: finalTooltip || "", children: /* @__PURE__ */ jsx(
187
+ IconButton$1,
188
+ {
189
+ ...other,
190
+ onClick,
191
+ disableRipple: true,
192
+ disabled,
193
+ children: /* @__PURE__ */ jsx(Icon, { src, size })
194
+ }
195
+ ) }) : /* @__PURE__ */ jsx(
196
+ IconButton$1,
197
+ {
198
+ ...other,
199
+ onClick,
200
+ disableRipple: true,
201
+ disabled,
202
+ children: /* @__PURE__ */ jsx(Icon, { src, size: isDesktop ? size : "medium", rotationAngle })
203
+ }
204
+ ) }) : /* @__PURE__ */ jsx(SkeletonIconButton, { classes }) });
205
+ };
206
+ function BoxIcon({ src, sx }) {
207
+ return /* @__PURE__ */ jsx(
208
+ Box,
209
+ {
210
+ component: "span",
211
+ sx: {
212
+ width: 20,
213
+ height: 20,
214
+ display: "inline-block",
215
+ bgcolor: "currentColor",
216
+ mask: `url(${src}) no-repeat center / contain`,
217
+ WebkitMask: `url(${src}) no-repeat center / contain`,
218
+ ...sx
219
+ }
220
+ }
221
+ );
222
+ }
223
+ const ArrowStyle = styled$1("span")(({ arrowType, theme }) => {
224
+ const SIZE = 12;
225
+ const POSITION = -(SIZE / 2);
226
+ const borderStyle = `solid 1px ${theme.vars.palette.state.borderDens}`;
227
+ const topStyle = {
228
+ borderRadius: "0 0 3px 0",
229
+ top: POSITION,
230
+ borderBottom: borderStyle,
231
+ borderRight: borderStyle
232
+ };
233
+ const bottomStyle = {
234
+ borderRadius: "3px 0 0 0",
235
+ bottom: POSITION,
236
+ borderTop: borderStyle,
237
+ borderLeft: borderStyle
238
+ };
239
+ const leftStyle = {
240
+ borderRadius: "0 3px 0 0",
241
+ left: POSITION,
242
+ borderTop: borderStyle,
243
+ borderRight: borderStyle
244
+ };
245
+ const rightStyle = {
246
+ borderRadius: "0 0 0 3px",
247
+ right: POSITION,
248
+ borderBottom: borderStyle,
249
+ borderLeft: borderStyle
250
+ };
251
+ return {
252
+ display: "none",
253
+ [theme.breakpoints.up("sm")]: {
254
+ width: SIZE,
255
+ height: SIZE,
256
+ content: "''",
257
+ position: "absolute",
258
+ display: "block",
259
+ transform: "rotate(-135deg)",
260
+ background: theme.vars.palette.background.default
261
+ },
262
+ ...arrowType === "top-left" && { ...topStyle, left: 20 },
263
+ ...arrowType === "top-center" && { ...topStyle, left: 0, right: 0, margin: "auto" },
264
+ ...arrowType === "top-right" && { ...topStyle, right: 20 },
265
+ ...arrowType === "bottom-left" && { ...bottomStyle, left: 20 },
266
+ ...arrowType === "bottom-center" && { ...bottomStyle, left: 0, right: 0, margin: "auto" },
267
+ ...arrowType === "bottom-right" && { ...bottomStyle, right: 20 },
268
+ ...arrowType === "left-top" && { ...leftStyle, top: 20 },
269
+ ...arrowType === "left-center" && { ...leftStyle, top: 0, bottom: 0, margin: "auto" },
270
+ ...arrowType === "left-bottom" && { ...leftStyle, bottom: 20 },
271
+ ...arrowType === "right-top" && { ...rightStyle, top: 20 },
272
+ ...arrowType === "right-center" && { ...rightStyle, top: 0, bottom: 0, margin: "auto" },
273
+ ...arrowType === "right-bottom" && { ...rightStyle, bottom: 20 }
274
+ };
275
+ });
276
+ const ToggleAbleIconButton = ({
277
+ onToggle,
278
+ isToggled,
279
+ ...props
280
+ }) => {
281
+ return /* @__PURE__ */ jsx(
282
+ IconButton,
283
+ {
284
+ onClick: onToggle,
285
+ ...props,
286
+ className: clsx(
287
+ onToggle ? iconButtonClasses.togglePressed : iconButtonClasses.toggleNotPressed
288
+ )
289
+ }
290
+ );
291
+ };
292
+ const ToggleIconButton = withToggle(ToggleAbleIconButton);
293
+ function CheckboxIcon(props) {
294
+ return /* @__PURE__ */ jsx(SvgIcon, { ...props, children: /* @__PURE__ */ jsx("path", { d: "M17 3a4 4 0 014 4v10a4 4 0 01-4 4H7a4 4 0 01-4-4V7a4 4 0 014-4h10zm0 2H7a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2z" }) });
295
+ }
296
+ function CheckboxCheckedIcon(props) {
297
+ return /* @__PURE__ */ jsx(SvgIcon, { ...props, children: /* @__PURE__ */ jsx("path", { d: "M17 3a4 4 0 014 4v10a4 4 0 01-4 4H7a4 4 0 01-4-4V7a4 4 0 014-4h10zm-1.372 4.972a1.006 1.006 0 00-.928.388l-3.78 5-1.63-2.08a1.001 1.001 0 00-1.58 1.23l2.44 3.11a1 1 0 001.58-.01l4.57-6v-.03a1.006 1.006 0 00-.672-1.608z" }) });
298
+ }
299
+ function CheckboxIndeterminateIcon(props) {
300
+ return /* @__PURE__ */ jsx(SvgIcon, { ...props, children: /* @__PURE__ */ jsx("path", { d: "M17 3a4 4 0 014 4v10a4 4 0 01-4 4H7a4 4 0 01-4-4V7a4 4 0 014-4h10zm-1.75 8h-6.5a.75.75 0 00-.75.75v.5c0 .414.336.75.75.75h6.5a.75.75 0 00.75-.75v-.5a.75.75 0 00-.75-.75z" }) });
301
+ }
302
+ const FeatureDivIconLabel = (props) => {
303
+ const {
304
+ label,
305
+ iconSrc,
306
+ iconScale: scale = 1,
307
+ iconRotate,
308
+ labelBkColor: bkColor = LABEL_BK_COLOR_DEFAULT,
309
+ labelColor: color = LABEL_COLOR_DEFAULT,
310
+ iconWidth = 24,
311
+ iconHeight = 24,
312
+ offsetLeftTop = [24, 0]
313
+ } = props;
314
+ let html = label ? `<div class="${mapClasses.featureLabel}"
315
+ style="background-color:${bkColor}; color:${color};left:${offsetLeftTop[0]}px;top:${offsetLeftTop[1]}px;">${label}</div>` : "";
316
+ if (iconSrc) {
317
+ html = `<div class="${mapClasses.markerLayerIcon}" style="transform: rotate(${iconRotate}deg) scale(${scale}); transform-origin: center center;">
318
+ <img src=${iconSrc}></img>
319
+ </div>` + html;
320
+ }
321
+ return L__default.divIcon({
322
+ className: clsx(mapClasses.markerLayerRoot, ""),
323
+ iconSize: [iconWidth, iconHeight],
324
+ html
325
+ });
326
+ };
327
+ const MarkerIconLabel = (props) => {
328
+ const {
329
+ position,
330
+ draggable = true,
331
+ iconSrc,
332
+ iconRotate,
333
+ iconScale: scale,
334
+ className,
335
+ label,
336
+ markerColor,
337
+ labelBkColor: bkColor,
338
+ labelColor: color,
339
+ iconWidth,
340
+ iconHeight,
341
+ offsetLeftTop,
342
+ ...properties
343
+ } = props;
344
+ const makerIcon = FeatureDivIconLabel({
345
+ iconSrc,
346
+ iconRotate,
347
+ iconScale: scale,
348
+ label,
349
+ iconWidth,
350
+ iconHeight,
351
+ labelBkColor: bkColor,
352
+ labelColor: color,
353
+ offsetLeftTop
354
+ });
355
+ return /* @__PURE__ */ jsx(
356
+ Marker,
357
+ {
358
+ position,
359
+ draggable,
360
+ riseOnHover: true,
361
+ icon: makerIcon,
362
+ ...properties
363
+ },
364
+ Math.random()
365
+ );
366
+ };
367
+ const ArrowIconRoot$1 = styled$1("div")(() => ({
368
+ display: "flex",
369
+ alignSelf: "center",
370
+ lineHeight: 0
371
+ }));
372
+ function ArrowIcon$1(props) {
373
+ const { openState } = props;
374
+ const { host_static_assets, environment_assets } = useEnvironment();
375
+ const { classes } = useSideBar();
376
+ return /* @__PURE__ */ jsx(
377
+ ArrowIconRoot$1,
378
+ {
379
+ className: classes.arrowIconRoot,
380
+ ...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$1("arrowIconRoot") } : {},
381
+ children: /* @__PURE__ */ jsx(
382
+ Icon,
383
+ {
384
+ src: `${host_static_assets}/${environment_assets}/frontend/components/sidebar/assets/icons/ChevronRight.svg`,
385
+ rotationAngle: openState ? 90 : 0
386
+ }
387
+ )
388
+ }
389
+ );
390
+ }
391
+ const ArrowIconRoot = styled$1("div")(() => ({
392
+ display: "flex",
393
+ alignSelf: "center",
394
+ lineHeight: 0
395
+ }));
396
+ function ArrowIcon(props) {
397
+ const { openState } = props;
398
+ const { host_static_assets, environment_assets } = useEnvironment();
399
+ return /* @__PURE__ */ jsx(ArrowIconRoot, { className: "", children: /* @__PURE__ */ jsx(
400
+ Icon,
401
+ {
402
+ src: `${host_static_assets}/${environment_assets}/frontend/components/sidebar/assets/icons/ChevronRight.svg`,
403
+ rotationAngle: openState ? 270 : 90,
404
+ size: "medium"
405
+ }
406
+ ) });
407
+ }
408
+ export {
409
+ ArrowIcon$1 as A,
410
+ BoxIcon as B,
411
+ CheckboxIcon as C,
412
+ Icon as I,
413
+ MarkerIconLabel as M,
414
+ ToggleIconButton as T,
415
+ IconButton as a,
416
+ ArrowStyle as b,
417
+ CheckboxCheckedIcon as c,
418
+ CheckboxIndeterminateIcon as d,
419
+ ArrowIcon as e
420
+ };
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { DivIconProps } from './types';
3
- export declare const IconRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
4
- export declare const DivIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & DivIconProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
3
+ export declare const IconRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
4
+ export declare const DivIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & DivIconProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;