@m4l/components 3.1.7 → 3.1.9

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 (232) hide show
  1. package/@types/export.d.ts +0 -3
  2. package/@types/types.d.ts +29 -11
  3. package/components/DynamicSort/constants.d.ts +12 -0
  4. package/components/DynamicSort/slots/DynamicSortSlots.d.ts +84 -0
  5. package/components/DynamicSort/slots/SlotsEnum.d.ts +30 -0
  6. package/components/DynamicSort/slots/index.d.ts +2 -0
  7. package/components/DynamicSort/types.d.ts +183 -0
  8. package/components/FieldLabel/types.d.ts +1 -0
  9. package/components/ObjectLogs/types.d.ts +1 -1
  10. package/components/areas/contexts/AreasContext/helper.d.ts +3 -0
  11. package/components/hook-form/RHFTextField/constant.d.ts +1 -0
  12. package/components/hook-form/RHFTextField/index.d.ts +0 -1
  13. package/components/hook-form/RHFTextField/slots/RHFTextFieldEnum.d.ts +7 -0
  14. package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +18 -0
  15. package/components/hook-form/RHFTextField/slots/index.d.ts +2 -0
  16. package/components/hook-form/RHFTextField/subcomponents/Skeleton/types.d.ts +3 -4
  17. package/components/hook-form/RHFTextField/types.d.ts +11 -3
  18. package/helpers/cookies/cookies.d.ts +4 -0
  19. package/helpers/cookies/index.d.ts +1 -0
  20. package/helpers/cookies/types.d.ts +42 -0
  21. package/index.js +180 -340
  22. package/node_modules-CQtkw0uG.js +7350 -0
  23. package/package.json +1 -1
  24. package/styles/DynamicSort.styles.d.ts +2 -0
  25. package/styles/MenuActions.styles.d.ts +1 -1
  26. package/styles/RHFTextField.styles.d.ts +2 -0
  27. package/utils/index.d.ts +1 -1
  28. package/vendor-BDLrgGjq.js +24692 -0
  29. package/components/AccountPopover/index-Dm2-k-Mv.js +0 -334
  30. package/components/AppBar/index-i0rhG3J1.js +0 -93
  31. package/components/BaseModule/index-CiNNlxzS.js +0 -30
  32. package/components/CommonActions/components/ActionCancel/index-CIdpDXkr.js +0 -12
  33. package/components/CommonActions/components/ActionFormCancel/index-CpyASN3q.js +0 -56
  34. package/components/CommonActions/components/ActionFormIntro/index-7KKtcUra.js +0 -33
  35. package/components/CommonActions/components/ActionIntro/index-CqqDZZcG.js +0 -25
  36. package/components/CommonActions/components/Actions/index-CuG1pnXW.js +0 -70
  37. package/components/DataGrid/constants-8L7QgBKi.js +0 -10
  38. package/components/DataGrid/formatters/ColumnBooleanFormatter/index-CveSCbq_.js +0 -26
  39. package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/index-CHqvieM2.js +0 -22
  40. package/components/DataGrid/formatters/ColumnDateFormatter/index-CKg8CJ6A.js +0 -19
  41. package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/index-DE6bwaKP.js +0 -23
  42. package/components/DataGrid/formatters/ColumnNestedValueFormatter/index-BslXGK-A.js +0 -14
  43. package/components/DataGrid/formatters/ColumnPointsFormatter/index-BXGW2CsK.js +0 -10
  44. package/components/DataGrid/formatters/ColumnPriceFormatter/index-O11tBykn.js +0 -10
  45. package/components/DataGrid/formatters/ColumnSetCheckFormatter/index-BaCawLr1.js +0 -36
  46. package/components/DataGrid/formatters/ColumnUncertaintyFormatter/index-Cq7a-jnE.js +0 -10
  47. package/components/DataGrid/formatters/index-CrZXPa0e.js +0 -13
  48. package/components/DataGrid/index-BZ-lbmuU.js +0 -908
  49. package/components/DataGrid/subcomponents/Actions/index-CHvPZ4Ru.js +0 -549
  50. package/components/DataGrid/subcomponents/editors/TextEditor/index-BIFm8akr.js +0 -80
  51. package/components/DragResizeWindow/index-D2jLYExo.js +0 -505
  52. package/components/DynamicFilter/constants-ByqmFATV.js +0 -31
  53. package/components/DynamicFilter/dictionary-PrbXU3VZ.js +0 -51
  54. package/components/DynamicFilter/index-DZiJc9h7.js +0 -116
  55. package/components/DynamicFilter/slots/SlotsEnum-cawFeNzx.js +0 -34
  56. package/components/DynamicFilter/slots/dynamicFilterSlots-DHxelhXP.js +0 -151
  57. package/components/DynamicFilter/slots/index-l0sNRNKZ.js +0 -1
  58. package/components/DynamicFilter/store/index-BT-eWVnJ.js +0 -254
  59. package/components/DynamicFilter/subcomponents/AppliedFilterChip/index-B32bAzi-.js +0 -60
  60. package/components/DynamicFilter/subcomponents/AppliedFilters/index-Bha19drV.js +0 -26
  61. package/components/DynamicFilter/subcomponents/DynamicFilterBase/index-BmvzoHit.js +0 -40
  62. package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/index-BcO3SlP5.js +0 -129
  63. package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/index-BCJhpNS8.js +0 -171
  64. package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/index-DCNhz68u.js +0 -153
  65. package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/index-BdypjM1Y.js +0 -146
  66. package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/index-D-NFIVnK.js +0 -114
  67. package/components/DynamicFilter/subcomponents/FieldTypes/index-BwQHJqk9.js +0 -38
  68. package/components/DynamicFilter/subcomponents/FilterActions/index-B9UWmk07.js +0 -88
  69. package/components/DynamicFilter/subcomponents/InputFilter/index-CfGb1TfV.js +0 -188
  70. package/components/DynamicFilter/subcomponents/PopoverFilter/index-DkfRGrlO.js +0 -158
  71. package/components/DynamicFilter/subcomponents/PopoverMenuFields/index-DSegwAm2.js +0 -63
  72. package/components/FieldLabel/index-CI57EizR.js +0 -54
  73. package/components/GridLayout/index-C4HyxNYX.js +0 -1044
  74. package/components/GridLayout/subcomponents/Griditem/index-C7jT4s8t.js +0 -395
  75. package/components/GridLayout/subcomponents/Responsive/index-BKcU2OnF.js +0 -348
  76. package/components/GridLayout/subcomponents/SizeProvider/index-1aJ-e_54.js +0 -71
  77. package/components/HelperText/index-Crn_XIPF.js +0 -50
  78. package/components/Icon/index-C89MAkeH.js +0 -176
  79. package/components/Image/index-COp8vP0X.js +0 -175
  80. package/components/LanguagePopover/index-BA2Igs9L.js +0 -179
  81. package/components/LinearProgressIndeterminate/index-BwI756Mb.js +0 -55
  82. package/components/Loadable/index-BMbi9ISF.js +0 -9
  83. package/components/LoadingError/index-Cf0oGUrL.js +0 -89
  84. package/components/MFIsolationApp/index-V4R55hNU.js +0 -169
  85. package/components/MFLoader/index-BI8vQZSH.js +0 -299
  86. package/components/ModalDialog/index-CEVQBQ7W.js +0 -77
  87. package/components/NavLink/index-D1S_vtFO.js +0 -55
  88. package/components/NoItemSelected/index-B9oM26AX.js +0 -54
  89. package/components/ObjectLogs/index-CiXOJpS4.js +0 -233
  90. package/components/PDFViewer/index-GVN2rfd6.js +0 -51
  91. package/components/Page/index-DZMkYmr4.js +0 -117
  92. package/components/PaperForm/index-DwgAfjci.js +0 -59
  93. package/components/Period/index-2pJG3VmY.js +0 -238
  94. package/components/PrintingSystem/index-B2qcnfw0.js +0 -187
  95. package/components/PrintingSystem/subcomponents/BodyNode/index-Cv2aoy8S.js +0 -49
  96. package/components/PrintingSystem/subcomponents/ChartNode/index-BmJm8v_C.js +0 -105
  97. package/components/PrintingSystem/subcomponents/DividerNode/index-MpFhE-H0.js +0 -20
  98. package/components/PrintingSystem/subcomponents/FooterNode/index-ZEcWdMSM.js +0 -49
  99. package/components/PrintingSystem/subcomponents/GridNode/index-SsKax2xu.js +0 -74
  100. package/components/PrintingSystem/subcomponents/HeaderNode/index-Cs8TOOBL.js +0 -49
  101. package/components/PrintingSystem/subcomponents/PaperNode/index-DBb25Ecg.js +0 -30
  102. package/components/PrintingSystem/subcomponents/PropertyValueNode/index-CTVn7J9Q.js +0 -47
  103. package/components/PrintingSystem/subcomponents/SectionNode/index-iYPM3EaS.js +0 -49
  104. package/components/PrintingSystem/subcomponents/TextBoxNode/index-DGjXCFKJ.js +0 -24
  105. package/components/PropertyValue/index-Bh-Jnrte.js +0 -264
  106. package/components/Resizeable/index-DdP1xfE9.js +0 -20
  107. package/components/ScrollBar/index-f2URPPE2.js +0 -35
  108. package/components/ScrollToTop/index-TxORk5dB.js +0 -12
  109. package/components/SideBar/index-PUBBe0yH.js +0 -758
  110. package/components/SplitLayout/index-Bu1hcO6G.js +0 -89
  111. package/components/ToastContainer/index-DK1d8NNd.js +0 -191
  112. package/components/WrapperComponent/index-BHV-CsDU.js +0 -14
  113. package/components/animate/LoadingScreen/index-CkVLOrMz.js +0 -70
  114. package/components/animate/MotionContainer/index-eartnWyO.js +0 -34
  115. package/components/animate/MotionLazyContainer/index-Be8osTiG.js +0 -9
  116. package/components/animate/PropagateLoader/index-Bkq8V2SN.js +0 -23
  117. package/components/animate/features-BbnE33u3.js +0 -5
  118. package/components/animate/index-BsWiJfzp.js +0 -89
  119. package/components/animate/variants/bounce-DanQqHAX.js +0 -101
  120. package/components/animate/variants/container-Dmpr6tg5.js +0 -22
  121. package/components/animate/variants/fade-CAOJNn06.js +0 -65
  122. package/components/animate/variants/index-l0sNRNKZ.js +0 -1
  123. package/components/animate/variants/transition-B9W5SWTa.js +0 -20
  124. package/components/areas/components/AreasAdmin/index-OxQU3P8Y.js +0 -699
  125. package/components/areas/components/AreasViewer/index-DQ0aPioP.js +0 -805
  126. package/components/areas/components/index-l0sNRNKZ.js +0 -1
  127. package/components/areas/constants-rqODZNZe.js +0 -6
  128. package/components/areas/contexts/AreasContext/index-BqRlA7JA.js +0 -1110
  129. package/components/areas/contexts/DynamicMFParmsContext/index-22c6E7vK.js +0 -36
  130. package/components/areas/contexts/WindowToolsMFContext/index-DkE30fhm.js +0 -12
  131. package/components/areas/contexts/index-l0sNRNKZ.js +0 -1
  132. package/components/areas/dictionary-YUsP9beq.js +0 -36
  133. package/components/areas/hooks/index-l0sNRNKZ.js +0 -1
  134. package/components/areas/hooks/useAreas/index-BSbwbJLS.js +0 -11
  135. package/components/areas/hooks/useDynamicMFParameters/index-DhbcZPs9.js +0 -12
  136. package/components/areas/hooks/useSetWindowsTitle/useSetWindowsTitle-BzPD-miW.js +0 -31
  137. package/components/areas/hooks/useWindowToolsMF/index-BECQfhbC.js +0 -10
  138. package/components/areas/icons-CwFr-alN.js +0 -24
  139. package/components/areas/index-B_Odny9h.js +0 -22
  140. package/components/commercial/AppBarCommercial/index-CHq3P3GY.js +0 -28
  141. package/components/commercial/SectionCommercial/index-BeABGtdr.js +0 -56
  142. package/components/commercial/TopBar/index-F1repmti.js +0 -232
  143. package/components/commercial/index-CxDzs6Ax.js +0 -81
  144. package/components/formatters/BooleanFormatter/index-DktIidqW.js +0 -44
  145. package/components/formatters/DateFormatter/index-CGcRZ8BA.js +0 -43
  146. package/components/formatters/PointsFormatter/index-C7sR8iqk.js +0 -25
  147. package/components/formatters/PriceFormatter/index-CsvRawmc.js +0 -35
  148. package/components/formatters/UncertaintyFormatter/index-B9ESVEVp.js +0 -29
  149. package/components/formatters/index-pnJhDYKe.js +0 -109
  150. package/components/hook-form/HelperError/index-BVnmUazV.js +0 -19
  151. package/components/hook-form/RHFAutocomplete/index-BtPL16HR.js +0 -657
  152. package/components/hook-form/RHFAutocompleteAsync/index-BfzjLHG8.js +0 -226
  153. package/components/hook-form/RHFCheckbox/index-Vyttu8Vx.js +0 -132
  154. package/components/hook-form/RHFColorPicker/index-Cxxb5Wa_.js +0 -191
  155. package/components/hook-form/RHFDateTime/index-CW1Slb-f.js +0 -190
  156. package/components/hook-form/RHFMultiCheckbox/index-BARudV1A.js +0 -34
  157. package/components/hook-form/RHFPeriod/index-r-HeIOoZ.js +0 -98
  158. package/components/hook-form/RHFRadioGroup/index-CTD-0zKo.js +0 -52
  159. package/components/hook-form/RHFSelect/index-LdwRuFz-.js +0 -29
  160. package/components/hook-form/RHFTextField/classes/constants.d.ts +0 -1
  161. package/components/hook-form/RHFTextField/classes/index.d.ts +0 -8
  162. package/components/hook-form/RHFTextField/classes/types.d.ts +0 -17
  163. package/components/hook-form/RHFTextField/index-B6ufruSB.js +0 -337
  164. package/components/hook-form/RHFTextField/styles.d.ts +0 -3
  165. package/components/hook-form/RHFTextField/subcomponents/Skeleton/styles.d.ts +0 -3
  166. package/components/hook-form/RHFTextField/tests/constants.d.ts +0 -3
  167. package/components/hook-form/RHFTextField/tests/utils.d.ts +0 -2
  168. package/components/hook-form/RHFUpload/index-CDPbm8NR.js +0 -253
  169. package/components/maps/components/GpsTools/index-5MXlhIEt.js +0 -1948
  170. package/components/maps/components/Map/index-2Lx5ARXa.js +0 -2546
  171. package/components/maps/index-Ci-7-FHg.js +0 -7
  172. package/components/modal/WindowBase-Gd27v5FU.js +0 -44
  173. package/components/modal/WindowConfirm-u6vAMFo7.js +0 -73
  174. package/components/modal/index-CydPIpKZ.js +0 -65
  175. package/components/mui_extended/Accordion/index-DMLYJL7o.js +0 -124
  176. package/components/mui_extended/Avatar/index-ClBa-6eF.js +0 -64
  177. package/components/mui_extended/Badge/index-zI-F_Qkq.js +0 -29
  178. package/components/mui_extended/BoxIcon/index-BUTJ2tKw.js +0 -22
  179. package/components/mui_extended/Breadcrumbs/index-DTS7rOZH.js +0 -86
  180. package/components/mui_extended/Button/index-CGfZbaea.js +0 -222
  181. package/components/mui_extended/CheckBox-BXUrbonB.js +0 -76
  182. package/components/mui_extended/CircularProgress/index-Bnnti_G6.js +0 -8
  183. package/components/mui_extended/IconButton/classes/constants-ChY2jKkp.js +0 -4
  184. package/components/mui_extended/IconButton/classes/index-BxjJGAqZ.js +0 -45
  185. package/components/mui_extended/IconButton/index-CusYFjie.js +0 -97
  186. package/components/mui_extended/IconButton/styledIconButton-fAsbGoFS.js +0 -7
  187. package/components/mui_extended/LinearProgress/index-CGgW8jq2.js +0 -9
  188. package/components/mui_extended/LinkWithRoute/index-BC2miUjR.js +0 -15
  189. package/components/mui_extended/MenuActions/MenuActions-C6CjSU6C.js +0 -149
  190. package/components/mui_extended/MenuActions/constants-BwsU9chA.js +0 -10
  191. package/components/mui_extended/MenuActions/dictionary-Dj_07puT.js +0 -11
  192. package/components/mui_extended/MenuActions/slots/MenuActionsEnum-Bu-L6eWU.js +0 -13
  193. package/components/mui_extended/MenuActions/slots/MenuActionsSlots-D65KZAKF.js +0 -46
  194. package/components/mui_extended/Pager/index-DCbxiTZA.js +0 -257
  195. package/components/mui_extended/Popover/index-DfrJAQkV.js +0 -153
  196. package/components/mui_extended/Stack/index-DzEeCYfp.js +0 -31
  197. package/components/mui_extended/Tab/index-Bu3dPidV.js +0 -129
  198. package/components/mui_extended/ToggleButton/index-C9cBkT1V.js +0 -18
  199. package/components/mui_extended/ToggleIconButton/index--0b3Td6C.js +0 -26
  200. package/components/mui_extended/Tooltip/index-B8QUytCK.js +0 -42
  201. package/components/mui_extended/Typography/index-Cf_4Zw8f.js +0 -54
  202. package/components/mui_extended/index-l0sNRNKZ.js +0 -1
  203. package/components/popups/PopupsProvider/index-DhSxmtfJ.js +0 -172
  204. package/components/popups/PopupsViewer/constants-DuyD7aCn.js +0 -4
  205. package/components/popups/PopupsViewer/icons-BUujqqbu.js +0 -7
  206. package/components/popups/PopupsViewer/index-BecevSns.js +0 -172
  207. package/components/popups/PopupsViewer/slots/index-B98CiRLa.js +0 -14
  208. package/components/popups/PopupsViewer/slots/popupsViewerSlots-BXH77nCF.js +0 -46
  209. package/components/popups/index-l0sNRNKZ.js +0 -1
  210. package/contexts/ModalContext/index-CPfNnfTL.js +0 -39
  211. package/contexts/RHFormContext/index-D_nK759o.js +0 -78
  212. package/hocs/withToggle/index-C1_DMZD3.js +0 -14
  213. package/hooks/useFormAddEdit/index-D9oSjUn1.js +0 -90
  214. package/hooks/useFormReadyForUpdate/index-B3HygFCM.js +0 -20
  215. package/hooks/useModal/index-BJSQOX3U.js +0 -10
  216. package/hooks/useSizeContainer/index-D4hDjM1P.js +0 -37
  217. package/hooks/useStateRef/index-C3P6ZK3m.js +0 -15
  218. package/hooks/useTab/index-B_GEQFOP.js +0 -12
  219. package/react-data-grid-BfYuZ6AK.js +0 -2606
  220. package/react-draggable-DsCPdgQP.js +0 -811
  221. package/react-json-view-bhqIAaNg.js +0 -2576
  222. package/react-resizable-eBbFl2dX.js +0 -618
  223. package/react-spinners-TpKN9lZg.js +0 -123
  224. package/react-splitter-layout-C-JTsNGs.js +0 -158
  225. package/styles/DynamicFilter-CJFsIegc.js +0 -319
  226. package/styles/MenuActions-lTi-ynPM.js +0 -42
  227. package/styles/index-DKj6m8SL.js +0 -1691
  228. package/test/constants_no_mock-CF-669v-.js +0 -4
  229. package/test/getNameDataTestId-BaBTWhBr.js +0 -10
  230. package/utils/index-DiMrtgIu.js +0 -502
  231. /package/components/GridLayout/subcomponents/{Griditem → GridItem}/index.d.ts +0 -0
  232. /package/components/GridLayout/subcomponents/{Griditem → GridItem}/types.d.ts +0 -0
@@ -1,46 +0,0 @@
1
- import { styled } from "@mui/material/styles";
2
- import { MenuItem } from "@mui/material";
3
- import { M as MENU_ACTIONS_KEY_COMPONENT } from "../constants-BwsU9chA.js";
4
- import { m as menuActionsStyles } from "../../../../styles/MenuActions-lTi-ynPM.js";
5
- import { M as MenuActionsSlots } from "./MenuActionsEnum-Bu-L6eWU.js";
6
- import { P as Popover } from "../../Popover/index-DfrJAQkV.js";
7
- import { B as Badge } from "../../Badge/index-zI-F_Qkq.js";
8
- import { I as IconButton } from "../../IconButton/index-CusYFjie.js";
9
- import { I as Icon } from "../../../Icon/index-C89MAkeH.js";
10
- const RootStyled = styled(Popover, {
11
- name: MENU_ACTIONS_KEY_COMPONENT,
12
- slot: MenuActionsSlots.root
13
- })(menuActionsStyles?.root || {});
14
- const BadgeStyled = styled(Badge, {
15
- name: MENU_ACTIONS_KEY_COMPONENT,
16
- slot: MenuActionsSlots.badge
17
- })(menuActionsStyles?.badge || {});
18
- const IconButtonStyled = styled(IconButton, {
19
- name: MENU_ACTIONS_KEY_COMPONENT,
20
- slot: MenuActionsSlots.iconButton
21
- })(menuActionsStyles?.iconButton || {});
22
- const MenuItemStyled = styled(MenuItem, {
23
- name: MENU_ACTIONS_KEY_COMPONENT,
24
- slot: MenuActionsSlots.menuItem
25
- })(menuActionsStyles?.menuItem || {});
26
- const LabelMenuItemStyled = styled("div", {
27
- name: MENU_ACTIONS_KEY_COMPONENT,
28
- slot: MenuActionsSlots.menuItemLabel
29
- })(menuActionsStyles?.menuItemLabel || {});
30
- const IconButtonUrlStyled = styled(Icon, {
31
- name: MENU_ACTIONS_KEY_COMPONENT,
32
- slot: MenuActionsSlots.menuItemIcon
33
- })(menuActionsStyles?.menuItemIcon || {});
34
- const LabelEmptyStyled = styled("div", {
35
- name: MENU_ACTIONS_KEY_COMPONENT,
36
- slot: MenuActionsSlots.labelEmpty
37
- })(menuActionsStyles?.labelEmpty || {});
38
- export {
39
- BadgeStyled as B,
40
- IconButtonUrlStyled as I,
41
- LabelMenuItemStyled as L,
42
- MenuItemStyled as M,
43
- RootStyled as R,
44
- LabelEmptyStyled as a,
45
- IconButtonStyled as b
46
- };
@@ -1,257 +0,0 @@
1
- import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
- import { useMemo } from "react";
3
- import { aE as PagerRoot } from "../../../styles/index-DKj6m8SL.js";
4
- import { generateUtilityClasses, generateUtilityClass, useTheme, Select, InputBase, MenuItem } from "@mui/material";
5
- import { unstable_composeClasses } from "@mui/base";
6
- import { I as IconButton } from "../IconButton/index-CusYFjie.js";
7
- import { useEnvironment } from "@m4l/core";
8
- import { useResponsiveContainerStore } from "@m4l/graphics";
9
- import { shallow } from "zustand/shallow";
10
- import { T as Typography } from "../Typography/index-Cf_4Zw8f.js";
11
- import { I as Icon } from "../../Icon/index-C89MAkeH.js";
12
- const componentName = "M4LPager";
13
- generateUtilityClasses(componentName, [
14
- /* elements */
15
- "root",
16
- "labelRowsPerPageContainer",
17
- "labelRowsPager",
18
- "select",
19
- "selectMenuItem",
20
- "selectMenuPopover",
21
- "labelDisplayRows",
22
- "pagerActions",
23
- "customTablePaginationRoot",
24
- "skeletonRoot",
25
- "skeletonRowsPerPage",
26
- "skeletonButtonContainer",
27
- "skeletonIconButton",
28
- "actionIconFirstPage",
29
- "actionIconPrevious",
30
- "actionIconNextPage",
31
- "actionIconLastPage"
32
- /* states or variants of elements */
33
- ]);
34
- function getPagerUtilityClass(slot) {
35
- return generateUtilityClass(componentName, slot);
36
- }
37
- const pagerUtilityClasses = () => {
38
- const slots = {
39
- root: ["root"],
40
- labelRowsPerPageContainer: ["labelRowsPerPageContainer"],
41
- labelRowsPager: ["labelRowsBager"],
42
- select: ["select"],
43
- selectMenuPopover: ["selectMenuPopover"],
44
- selectMenuItem: ["selectMenuItem"],
45
- labelDisplayRows: ["labelDisplayRows"],
46
- pagerActions: ["pagerActions"],
47
- customTablePaginationRoot: ["customTablePaginationRoot"],
48
- skeletonRoot: ["skeletonRoot"],
49
- skeletonRowsPerPage: ["skeletonRowsPerPage"],
50
- skeletonButtonContainer: ["skeletonButtonContainer"],
51
- skeletonIconButton: ["skeletonIconButton"],
52
- actionIconFirstPage: ["actionIconFirstPage"],
53
- actionIconPrevious: ["actionIconPrevious"],
54
- actionIconNextPage: ["actionIconNextPage"],
55
- actionIconLastPage: ["actionIconLastPage"]
56
- };
57
- const composedClasses = unstable_composeClasses(slots, getPagerUtilityClass, {});
58
- return {
59
- ...composedClasses
60
- };
61
- };
62
- function PagerActions(props) {
63
- const { count, page, rowsPerPage, onPageChange, classes } = props;
64
- const { host_static_assets, environment_assets } = useEnvironment();
65
- const handleFirstPageButtonClick = (event) => {
66
- onPageChange(event, 0);
67
- };
68
- const handleBackButtonClick = (event) => {
69
- onPageChange(event, page - 1);
70
- };
71
- const handleNextButtonClick = (event) => {
72
- onPageChange(event, page + 1);
73
- };
74
- const handleLastPageButtonClick = (event) => {
75
- onPageChange(event, Math.max(0, Math.ceil(count / rowsPerPage) - 1));
76
- };
77
- return /* @__PURE__ */ jsxs("div", { className: classes.pagerActions, children: [
78
- /* @__PURE__ */ jsx(
79
- IconButton,
80
- {
81
- dictionaryTooltipId: "pager.first",
82
- onClick: handleFirstPageButtonClick,
83
- disabled: page === 0,
84
- "aria-label": "first page",
85
- className: classes.actionIconFirstPage,
86
- src: `${host_static_assets}/${environment_assets}/frontend/components/pager/assets/icons/first.svg`
87
- }
88
- ),
89
- /* @__PURE__ */ jsx(
90
- IconButton,
91
- {
92
- dictionaryTooltipId: "pager.previous",
93
- onClick: handleBackButtonClick,
94
- disabled: page === 0,
95
- "aria-label": "first page",
96
- className: classes.actionIconPrevious,
97
- src: `${host_static_assets}/${environment_assets}/frontend/components/pager/assets/icons/previous.svg`
98
- }
99
- ),
100
- /* @__PURE__ */ jsx(
101
- IconButton,
102
- {
103
- dictionaryTooltipId: "pager.next",
104
- onClick: handleNextButtonClick,
105
- disabled: page >= Math.ceil(count / rowsPerPage) - 1,
106
- "aria-label": "next page",
107
- className: classes.actionIconNextPage,
108
- src: `${host_static_assets}/${environment_assets}/frontend/components/pager/assets/icons/next.svg`
109
- }
110
- ),
111
- /* @__PURE__ */ jsx(
112
- IconButton,
113
- {
114
- dictionaryTooltipId: "pager.last",
115
- onClick: handleLastPageButtonClick,
116
- disabled: page >= Math.ceil(count / rowsPerPage) - 1,
117
- "aria-label": "last page",
118
- className: classes.actionIconLastPage,
119
- src: `${host_static_assets}/${environment_assets}/frontend/components/pager/assets/icons/last.svg`
120
- }
121
- )
122
- ] });
123
- }
124
- const CustomTablePagination = (props) => {
125
- const {
126
- count,
127
- page,
128
- rowsPerPage,
129
- rowsPerPageOptions = [10, 25, 50, 100],
130
- labelRowsPerPage,
131
- classes,
132
- onRowsPerPageChange,
133
- onPageChange,
134
- SelectProps,
135
- labelDisplayedRows = defaultLabelDisplayedRows
136
- } = props;
137
- const { host_static_assets, environment_assets } = useEnvironment();
138
- const isUpSm = useResponsiveContainerStore((state) => state.isUpSm, shallow);
139
- const theme = useTheme();
140
- function defaultLabelDisplayedRows({
141
- from,
142
- to,
143
- // eslint-disable-next-line @typescript-eslint/no-shadow
144
- count: count2
145
- }) {
146
- return `${from}–${to} of ${count2 !== -1 ? count2 : `more than ${to}`}`;
147
- }
148
- const getLabelDisplayedRowsTo = () => {
149
- if (count === -1) {
150
- return (page + 1) * rowsPerPage;
151
- }
152
- return rowsPerPage === -1 ? count : Math.min(count, (page + 1) * rowsPerPage);
153
- };
154
- const CustomIconComponent = (props2) => /* @__PURE__ */ jsx(
155
- Icon,
156
- {
157
- src: `${host_static_assets}/${environment_assets}/frontend/components/pager/assets/icons/chevronDown.svg`,
158
- ...props2
159
- }
160
- );
161
- return /* @__PURE__ */ jsxs(Fragment, { children: [
162
- rowsPerPageOptions?.length > 1 ? /* @__PURE__ */ jsxs("div", { className: classes.labelRowsPerPageContainer, children: [
163
- isUpSm ? /* @__PURE__ */ jsx(Typography, { variant: "body", children: labelRowsPerPage }) : null,
164
- /* @__PURE__ */ jsx(
165
- Select,
166
- {
167
- variant: "standard",
168
- ...!SelectProps?.variant && { input: /* @__PURE__ */ jsx(InputBase, {}) },
169
- value: rowsPerPage,
170
- onChange: (e) => {
171
- onRowsPerPageChange(e);
172
- },
173
- className: classes.select,
174
- MenuProps: {
175
- className: classes.selectMenuPopover,
176
- sx: { ...theme.components?.M4LPagerMenuPopover?.styleOverrides }
177
- },
178
- IconComponent: CustomIconComponent,
179
- ...SelectProps,
180
- children: rowsPerPageOptions.map((item, idx) => /* @__PURE__ */ jsx(
181
- MenuItem,
182
- {
183
- className: classes.selectMenuItem,
184
- value: item,
185
- children: item
186
- },
187
- `${classes.selectMenuItem}-${idx}`
188
- ))
189
- }
190
- )
191
- ] }) : null,
192
- /* @__PURE__ */ jsx(Typography, { variant: "body", className: classes.labelDisplayRows, children: labelDisplayedRows({
193
- from: count === 0 ? 0 : page * rowsPerPage + 1,
194
- to: getLabelDisplayedRowsTo(),
195
- count: count === -1 ? -1 : count,
196
- page
197
- }) }),
198
- /* @__PURE__ */ jsx(
199
- PagerActions,
200
- {
201
- count,
202
- page,
203
- rowsPerPage,
204
- onPageChange,
205
- classes
206
- }
207
- )
208
- ] });
209
- };
210
- function Pager(props) {
211
- const {
212
- totalRecords,
213
- rowsPerPageOptions = [5, 10, 2],
214
- rowsPerPage = 25,
215
- page,
216
- onPageChange,
217
- onRowsPerPageChange,
218
- labelRows = "Rows per page",
219
- labelOf = "Of",
220
- isXs
221
- } = props;
222
- const currentPage = useMemo(() => {
223
- if (rowsPerPage * page > totalRecords) {
224
- return Math.floor(totalRecords / rowsPerPage);
225
- }
226
- return page;
227
- }, [page, rowsPerPage, totalRecords]);
228
- const handleChangeRowsPerPage = (event) => {
229
- onRowsPerPageChange(parseInt(event.target.value, 10));
230
- onPageChange(0);
231
- };
232
- const handleChangePage = (_event, newPage) => {
233
- onPageChange(newPage);
234
- };
235
- const classes = pagerUtilityClasses();
236
- return /* @__PURE__ */ jsx(PagerRoot, { className: classes.root, children: /* @__PURE__ */ jsx(
237
- CustomTablePagination,
238
- {
239
- rowsPerPageOptions,
240
- count: totalRecords,
241
- rowsPerPage,
242
- classes,
243
- labelRowsPerPage: labelRows,
244
- page: currentPage,
245
- onPageChange: handleChangePage,
246
- onRowsPerPageChange: handleChangeRowsPerPage,
247
- labelDisplayedRows: !isXs ? ({ from, to, count }) => `${from}-${to} ${labelOf} ${count}` : () => ``
248
- }
249
- ) });
250
- }
251
- function getPagerComponentsDictionary() {
252
- return ["pager"];
253
- }
254
- export {
255
- Pager as P,
256
- getPagerComponentsDictionary as g
257
- };
@@ -1,153 +0,0 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- import { aF as PopoverRoot } from "../../../styles/index-DKj6m8SL.js";
3
- import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
4
- import { unstable_composeClasses } from "@mui/base";
5
- import { styled } from "@mui/material/styles";
6
- import clsx from "clsx";
7
- generateUtilityClasses("M4LPopover", [
8
- /* elements */
9
- "root",
10
- "arrowStyle",
11
- /* states or variants of elements */
12
- "noArrow",
13
- "topLeft",
14
- "topCenter",
15
- "topRight",
16
- "bottomLeft",
17
- "bottomCenter",
18
- "bottomRight",
19
- "leftTop",
20
- "leftCenter",
21
- "leftBottom",
22
- "rightTop",
23
- "rightCenter",
24
- "rightBottom"
25
- ]);
26
- function getPopoverClassesUtilityClass(slot) {
27
- return generateUtilityClass("M4LPopover", slot);
28
- }
29
- const useUtilityClasses = (ownerState) => {
30
- const slots = {
31
- root: ["root"],
32
- arrowStyle: [
33
- "arrowStyle",
34
- ownerState.arrowType === "top-left" && "topLeft",
35
- ownerState.arrowType === "top-center" && "topCenter",
36
- ownerState.arrowType === "top-right" && "topRight",
37
- ownerState.arrowType === "bottom-left" && "bottomLeft",
38
- ownerState.arrowType === "bottom-center" && "bottomCenter",
39
- ownerState.arrowType === "bottom-right" && "bottomRight",
40
- ownerState.arrowType === "left-top" && "leftTop",
41
- ownerState.arrowType === "left-center" && "leftCenter",
42
- ownerState.arrowType === "left-bottom" && "leftBottom",
43
- ownerState.arrowType === "right-top" && "rightTop",
44
- ownerState.arrowType === "right-center" && "rightCenter",
45
- ownerState.arrowType === "right-bottom" && "rightBottom"
46
- ]
47
- };
48
- const composedClasses = unstable_composeClasses(slots, getPopoverClassesUtilityClass, {});
49
- return {
50
- ...composedClasses
51
- };
52
- };
53
- const ArrowStyle = styled("span")(({ arrowType, theme }) => {
54
- const SIZE = 12;
55
- const POSITION = -(SIZE / 2);
56
- const borderStyle = `solid 1px ${theme.vars.palette.state.borderDens}`;
57
- const topStyle = {
58
- borderRadius: "0 0 3px 0",
59
- top: POSITION,
60
- borderBottom: borderStyle,
61
- borderRight: borderStyle
62
- };
63
- const bottomStyle = {
64
- borderRadius: "3px 0 0 0",
65
- bottom: POSITION,
66
- borderTop: borderStyle,
67
- borderLeft: borderStyle
68
- };
69
- const leftStyle = {
70
- borderRadius: "0 3px 0 0",
71
- left: POSITION,
72
- borderTop: borderStyle,
73
- borderRight: borderStyle
74
- };
75
- const rightStyle = {
76
- borderRadius: "0 0 0 3px",
77
- right: POSITION,
78
- borderBottom: borderStyle,
79
- borderLeft: borderStyle
80
- };
81
- return {
82
- display: "none",
83
- [theme.breakpoints.up("sm")]: {
84
- width: SIZE,
85
- height: SIZE,
86
- content: "''",
87
- position: "absolute",
88
- display: "block",
89
- transform: "rotate(-135deg)",
90
- background: theme.vars.palette.background.default
91
- },
92
- // Top
93
- ...arrowType === "top-left" && { ...topStyle, left: 20 },
94
- ...arrowType === "top-center" && { ...topStyle, left: 0, right: 0, margin: "auto" },
95
- ...arrowType === "top-right" && { ...topStyle, right: 20 },
96
- // Bottom
97
- ...arrowType === "bottom-left" && { ...bottomStyle, left: 20 },
98
- ...arrowType === "bottom-center" && { ...bottomStyle, left: 0, right: 0, margin: "auto" },
99
- ...arrowType === "bottom-right" && { ...bottomStyle, right: 20 },
100
- // Left
101
- ...arrowType === "left-top" && { ...leftStyle, top: 20 },
102
- ...arrowType === "left-center" && { ...leftStyle, top: 0, bottom: 0, margin: "auto" },
103
- ...arrowType === "left-bottom" && { ...leftStyle, bottom: 20 },
104
- // Right
105
- ...arrowType === "right-top" && { ...rightStyle, top: 20 },
106
- ...arrowType === "right-center" && { ...rightStyle, top: 0, bottom: 0, margin: "auto" },
107
- ...arrowType === "right-bottom" && { ...rightStyle, bottom: 20 }
108
- };
109
- });
110
- const Popover = (props) => {
111
- const { children, arrowType = "top-right", className, ...other } = props;
112
- const ownerState = {
113
- arrowType
114
- };
115
- const classes = useUtilityClasses(ownerState);
116
- return (
117
- /* PopoverRoot: Contenedor principal del componente, es usado para aplicar los estilos css de los
118
- overrides que provienen del objeto del tema. Se usa para garantizar de que estos estilos no se
119
- propaguen a otros componentes de la plataforna web. */
120
- /* @__PURE__ */ jsxs(
121
- PopoverRoot,
122
- {
123
- className: clsx(classes.root, className),
124
- "data-testid": "PopoverRoot",
125
- anchorOrigin: { vertical: "bottom", horizontal: "right" },
126
- transformOrigin: { vertical: "top", horizontal: "right" },
127
- transitionDuration: 0,
128
- PaperProps: {
129
- sx: {
130
- p: 1,
131
- overflow: "inherit"
132
- }
133
- },
134
- ...other,
135
- children: [
136
- arrowType !== "no-arrow" && /* ArrowStyle: Subcomponente que posiciona una flecha de dialogo en el área del Popover. */
137
- /* @__PURE__ */ jsx(
138
- ArrowStyle,
139
- {
140
- className: classes.arrowStyle,
141
- "data-testid": "ArrowStyle",
142
- arrowType
143
- }
144
- ),
145
- children
146
- ]
147
- }
148
- )
149
- );
150
- };
151
- export {
152
- Popover as P
153
- };
@@ -1,31 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
3
- import { unstable_composeClasses } from "@mui/base";
4
- import { aG as MUISTack } from "../../../styles/index-DKj6m8SL.js";
5
- import clsx from "clsx";
6
- const componentName = "M4LStack";
7
- generateUtilityClasses(componentName, [
8
- /* elements */
9
- "root"
10
- /* states or variants of elements */
11
- ]);
12
- function getStackUtilityClass(slot) {
13
- return generateUtilityClass(componentName, slot);
14
- }
15
- const useStackUtilityClasses = () => {
16
- const slots = {
17
- root: ["root"]
18
- };
19
- const composedClasses = unstable_composeClasses(slots, getStackUtilityClass, {});
20
- return {
21
- ...composedClasses
22
- };
23
- };
24
- const classes = useStackUtilityClasses();
25
- const Stack = (props) => {
26
- const { children, className, ...others } = props;
27
- return /* @__PURE__ */ jsx(MUISTack, { ...others, className: clsx(classes.root, className), children });
28
- };
29
- export {
30
- Stack as S
31
- };
@@ -1,129 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import clsx from "clsx";
3
- import { generateUtilityClasses, generateUtilityClass, Tab as Tab$1, Skeleton } from "@mui/material";
4
- import { unstable_composeClasses } from "@mui/base";
5
- import { aH as MUITabs, aI as TabContentRoot, aJ as TabRoot, aK as SKTTabWrapper } from "../../../styles/index-DKj6m8SL.js";
6
- import { useModuleSkeleton } from "@m4l/core";
7
- import { T as TEST_PROP_ID } from "../../../test/constants_no_mock-CF-669v-.js";
8
- import { g as getNameDataTestId } from "../../../test/getNameDataTestId-BaBTWhBr.js";
9
- import { createContext, useState } from "react";
10
- const componentName$2 = "M4LTabs";
11
- generateUtilityClasses(componentName$2, [
12
- /* elements */
13
- "root"
14
- /* states or variants of elements */
15
- ]);
16
- function getTabsUtilityClass(slot) {
17
- return generateUtilityClass(componentName$2, slot);
18
- }
19
- const useTabsUtilityClasses = () => {
20
- const slots = {
21
- root: ["root"]
22
- };
23
- const composedClasses = unstable_composeClasses(slots, getTabsUtilityClass, {});
24
- return {
25
- ...composedClasses
26
- };
27
- };
28
- const Tabs = (props) => {
29
- const { children, className, ...others } = props;
30
- const classes = useTabsUtilityClasses();
31
- return /* @__PURE__ */ jsx(MUITabs, { className: clsx(classes.root, className), ...others, children });
32
- };
33
- const componentName$1 = "M4LTabContent";
34
- generateUtilityClasses(componentName$1, [
35
- /* elements */
36
- "root"
37
- /* states or variants of elements */
38
- ]);
39
- function getTabContentUtilityClass(slot) {
40
- return generateUtilityClass(componentName$1, slot);
41
- }
42
- const useTabContentUtilityClasses = () => {
43
- const slots = {
44
- root: ["root"]
45
- };
46
- const composedClasses = unstable_composeClasses(slots, getTabContentUtilityClass, {});
47
- return {
48
- ...composedClasses
49
- };
50
- };
51
- const TabContent = (props) => {
52
- const { children, className, ...others } = props;
53
- const classes = useTabContentUtilityClasses();
54
- return /* @__PURE__ */ jsx(TabContentRoot, { className: clsx(classes.root, className), ...others, children });
55
- };
56
- const componentName = "M4LTab";
57
- generateUtilityClasses(componentName, [
58
- /* elements */
59
- "root",
60
- "skeleton"
61
- /* states or variants of elements */
62
- ]);
63
- function getTabUtilityClass(slot) {
64
- return generateUtilityClass(componentName, slot);
65
- }
66
- const tabUtilityClasses = () => {
67
- const slots = {
68
- root: ["root"],
69
- skeleton: ["skeleton"]
70
- };
71
- const composedClasses = unstable_composeClasses(slots, getTabUtilityClass, {});
72
- return {
73
- ...composedClasses
74
- };
75
- };
76
- const COMPONENT_PREFIX = "m4l-tab";
77
- function Tab(props) {
78
- const { SKTWidth, SKTHeight, className, dataTestId = "", ...other } = props;
79
- const isSkeleton = useModuleSkeleton();
80
- const classes = tabUtilityClasses();
81
- return /* @__PURE__ */ jsx(
82
- TabRoot,
83
- {
84
- className: clsx(classes.root, className),
85
- ...process.env.NODE_ENV !== "production" ? {
86
- [TEST_PROP_ID]: getNameDataTestId(COMPONENT_PREFIX, "root", dataTestId)
87
- } : {},
88
- children: !isSkeleton ? /* @__PURE__ */ jsx(Tab$1, { ...other }) : /* @__PURE__ */ jsx(
89
- SKTTabWrapper,
90
- {
91
- className: classes.skeleton,
92
- ...process.env.NODE_ENV !== "production" ? {
93
- [TEST_PROP_ID]: getNameDataTestId(
94
- COMPONENT_PREFIX,
95
- "skeleton",
96
- dataTestId
97
- )
98
- } : {},
99
- children: /* @__PURE__ */ jsx(Skeleton, { variant: "text", width: SKTWidth, height: SKTHeight })
100
- }
101
- )
102
- }
103
- );
104
- }
105
- const TabContext = createContext(null);
106
- function TabProvider(props) {
107
- const { children, initialValue } = props;
108
- const [currentTab, setCurrentTab] = useState(initialValue);
109
- const handleChange = (_event, newTab) => {
110
- setCurrentTab(newTab);
111
- };
112
- return /* @__PURE__ */ jsx(
113
- TabContext.Provider,
114
- {
115
- value: {
116
- currentTab: currentTab.toString(),
117
- handleChange
118
- },
119
- children
120
- }
121
- );
122
- }
123
- export {
124
- Tabs as T,
125
- Tab as a,
126
- TabContent as b,
127
- TabProvider as c,
128
- TabContext as d
129
- };
@@ -1,18 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import clsx from "clsx";
3
- import { B as Button, b as buttonClasses } from "../Button/index-CGfZbaea.js";
4
- import { w as withToggle } from "../../../hocs/withToggle/index-C1_DMZD3.js";
5
- const ToggleAbleButton = ({ onToggle, isToggled, ...props }) => {
6
- return /* @__PURE__ */ jsx(
7
- Button,
8
- {
9
- onClick: onToggle,
10
- ...props,
11
- className: clsx(isToggled ? buttonClasses.togglePressed : buttonClasses.toggleNotPressed)
12
- }
13
- );
14
- };
15
- const ToggleButton = withToggle(ToggleAbleButton);
16
- export {
17
- ToggleButton as T
18
- };
@@ -1,26 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import clsx from "clsx";
3
- import { i as iconButtonClasses } from "../IconButton/classes/index-BxjJGAqZ.js";
4
- import { w as withToggle } from "../../../hocs/withToggle/index-C1_DMZD3.js";
5
- import { I as IconButton } from "../IconButton/index-CusYFjie.js";
6
- const ToggleAbleIconButton = ({
7
- onToggle,
8
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
9
- isToggled,
10
- ...props
11
- }) => {
12
- return /* @__PURE__ */ jsx(
13
- IconButton,
14
- {
15
- onClick: onToggle,
16
- ...props,
17
- className: clsx(
18
- onToggle ? iconButtonClasses.togglePressed : iconButtonClasses.toggleNotPressed
19
- )
20
- }
21
- );
22
- };
23
- const ToggleIconButton = withToggle(ToggleAbleIconButton);
24
- export {
25
- ToggleIconButton as T
26
- };