@m4l/components 3.1.7 → 3.1.8

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/index.js +183 -340
  2. package/node_modules-CQtkw0uG.js +7350 -0
  3. package/package.json +1 -1
  4. package/vendor-AfIOyqRr.js +24636 -0
  5. package/components/AccountPopover/index-Dm2-k-Mv.js +0 -334
  6. package/components/AppBar/index-i0rhG3J1.js +0 -93
  7. package/components/BaseModule/index-CiNNlxzS.js +0 -30
  8. package/components/CommonActions/components/ActionCancel/index-CIdpDXkr.js +0 -12
  9. package/components/CommonActions/components/ActionFormCancel/index-CpyASN3q.js +0 -56
  10. package/components/CommonActions/components/ActionFormIntro/index-7KKtcUra.js +0 -33
  11. package/components/CommonActions/components/ActionIntro/index-CqqDZZcG.js +0 -25
  12. package/components/CommonActions/components/Actions/index-CuG1pnXW.js +0 -70
  13. package/components/DataGrid/constants-8L7QgBKi.js +0 -10
  14. package/components/DataGrid/formatters/ColumnBooleanFormatter/index-CveSCbq_.js +0 -26
  15. package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/index-CHqvieM2.js +0 -22
  16. package/components/DataGrid/formatters/ColumnDateFormatter/index-CKg8CJ6A.js +0 -19
  17. package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/index-DE6bwaKP.js +0 -23
  18. package/components/DataGrid/formatters/ColumnNestedValueFormatter/index-BslXGK-A.js +0 -14
  19. package/components/DataGrid/formatters/ColumnPointsFormatter/index-BXGW2CsK.js +0 -10
  20. package/components/DataGrid/formatters/ColumnPriceFormatter/index-O11tBykn.js +0 -10
  21. package/components/DataGrid/formatters/ColumnSetCheckFormatter/index-BaCawLr1.js +0 -36
  22. package/components/DataGrid/formatters/ColumnUncertaintyFormatter/index-Cq7a-jnE.js +0 -10
  23. package/components/DataGrid/formatters/index-CrZXPa0e.js +0 -13
  24. package/components/DataGrid/index-BZ-lbmuU.js +0 -908
  25. package/components/DataGrid/subcomponents/Actions/index-CHvPZ4Ru.js +0 -549
  26. package/components/DataGrid/subcomponents/editors/TextEditor/index-BIFm8akr.js +0 -80
  27. package/components/DragResizeWindow/index-D2jLYExo.js +0 -505
  28. package/components/DynamicFilter/constants-ByqmFATV.js +0 -31
  29. package/components/DynamicFilter/dictionary-PrbXU3VZ.js +0 -51
  30. package/components/DynamicFilter/index-DZiJc9h7.js +0 -116
  31. package/components/DynamicFilter/slots/SlotsEnum-cawFeNzx.js +0 -34
  32. package/components/DynamicFilter/slots/dynamicFilterSlots-DHxelhXP.js +0 -151
  33. package/components/DynamicFilter/slots/index-l0sNRNKZ.js +0 -1
  34. package/components/DynamicFilter/store/index-BT-eWVnJ.js +0 -254
  35. package/components/DynamicFilter/subcomponents/AppliedFilterChip/index-B32bAzi-.js +0 -60
  36. package/components/DynamicFilter/subcomponents/AppliedFilters/index-Bha19drV.js +0 -26
  37. package/components/DynamicFilter/subcomponents/DynamicFilterBase/index-BmvzoHit.js +0 -40
  38. package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/index-BcO3SlP5.js +0 -129
  39. package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/index-BCJhpNS8.js +0 -171
  40. package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/index-DCNhz68u.js +0 -153
  41. package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/index-BdypjM1Y.js +0 -146
  42. package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/index-D-NFIVnK.js +0 -114
  43. package/components/DynamicFilter/subcomponents/FieldTypes/index-BwQHJqk9.js +0 -38
  44. package/components/DynamicFilter/subcomponents/FilterActions/index-B9UWmk07.js +0 -88
  45. package/components/DynamicFilter/subcomponents/InputFilter/index-CfGb1TfV.js +0 -188
  46. package/components/DynamicFilter/subcomponents/PopoverFilter/index-DkfRGrlO.js +0 -158
  47. package/components/DynamicFilter/subcomponents/PopoverMenuFields/index-DSegwAm2.js +0 -63
  48. package/components/FieldLabel/index-CI57EizR.js +0 -54
  49. package/components/GridLayout/index-C4HyxNYX.js +0 -1044
  50. package/components/GridLayout/subcomponents/Griditem/index-C7jT4s8t.js +0 -395
  51. package/components/GridLayout/subcomponents/Responsive/index-BKcU2OnF.js +0 -348
  52. package/components/GridLayout/subcomponents/SizeProvider/index-1aJ-e_54.js +0 -71
  53. package/components/HelperText/index-Crn_XIPF.js +0 -50
  54. package/components/Icon/index-C89MAkeH.js +0 -176
  55. package/components/Image/index-COp8vP0X.js +0 -175
  56. package/components/LanguagePopover/index-BA2Igs9L.js +0 -179
  57. package/components/LinearProgressIndeterminate/index-BwI756Mb.js +0 -55
  58. package/components/Loadable/index-BMbi9ISF.js +0 -9
  59. package/components/LoadingError/index-Cf0oGUrL.js +0 -89
  60. package/components/MFIsolationApp/index-V4R55hNU.js +0 -169
  61. package/components/MFLoader/index-BI8vQZSH.js +0 -299
  62. package/components/ModalDialog/index-CEVQBQ7W.js +0 -77
  63. package/components/NavLink/index-D1S_vtFO.js +0 -55
  64. package/components/NoItemSelected/index-B9oM26AX.js +0 -54
  65. package/components/ObjectLogs/index-CiXOJpS4.js +0 -233
  66. package/components/PDFViewer/index-GVN2rfd6.js +0 -51
  67. package/components/Page/index-DZMkYmr4.js +0 -117
  68. package/components/PaperForm/index-DwgAfjci.js +0 -59
  69. package/components/Period/index-2pJG3VmY.js +0 -238
  70. package/components/PrintingSystem/index-B2qcnfw0.js +0 -187
  71. package/components/PrintingSystem/subcomponents/BodyNode/index-Cv2aoy8S.js +0 -49
  72. package/components/PrintingSystem/subcomponents/ChartNode/index-BmJm8v_C.js +0 -105
  73. package/components/PrintingSystem/subcomponents/DividerNode/index-MpFhE-H0.js +0 -20
  74. package/components/PrintingSystem/subcomponents/FooterNode/index-ZEcWdMSM.js +0 -49
  75. package/components/PrintingSystem/subcomponents/GridNode/index-SsKax2xu.js +0 -74
  76. package/components/PrintingSystem/subcomponents/HeaderNode/index-Cs8TOOBL.js +0 -49
  77. package/components/PrintingSystem/subcomponents/PaperNode/index-DBb25Ecg.js +0 -30
  78. package/components/PrintingSystem/subcomponents/PropertyValueNode/index-CTVn7J9Q.js +0 -47
  79. package/components/PrintingSystem/subcomponents/SectionNode/index-iYPM3EaS.js +0 -49
  80. package/components/PrintingSystem/subcomponents/TextBoxNode/index-DGjXCFKJ.js +0 -24
  81. package/components/PropertyValue/index-Bh-Jnrte.js +0 -264
  82. package/components/Resizeable/index-DdP1xfE9.js +0 -20
  83. package/components/ScrollBar/index-f2URPPE2.js +0 -35
  84. package/components/ScrollToTop/index-TxORk5dB.js +0 -12
  85. package/components/SideBar/index-PUBBe0yH.js +0 -758
  86. package/components/SplitLayout/index-Bu1hcO6G.js +0 -89
  87. package/components/ToastContainer/index-DK1d8NNd.js +0 -191
  88. package/components/WrapperComponent/index-BHV-CsDU.js +0 -14
  89. package/components/animate/LoadingScreen/index-CkVLOrMz.js +0 -70
  90. package/components/animate/MotionContainer/index-eartnWyO.js +0 -34
  91. package/components/animate/MotionLazyContainer/index-Be8osTiG.js +0 -9
  92. package/components/animate/PropagateLoader/index-Bkq8V2SN.js +0 -23
  93. package/components/animate/features-BbnE33u3.js +0 -5
  94. package/components/animate/index-BsWiJfzp.js +0 -89
  95. package/components/animate/variants/bounce-DanQqHAX.js +0 -101
  96. package/components/animate/variants/container-Dmpr6tg5.js +0 -22
  97. package/components/animate/variants/fade-CAOJNn06.js +0 -65
  98. package/components/animate/variants/index-l0sNRNKZ.js +0 -1
  99. package/components/animate/variants/transition-B9W5SWTa.js +0 -20
  100. package/components/areas/components/AreasAdmin/index-OxQU3P8Y.js +0 -699
  101. package/components/areas/components/AreasViewer/index-DQ0aPioP.js +0 -805
  102. package/components/areas/components/index-l0sNRNKZ.js +0 -1
  103. package/components/areas/constants-rqODZNZe.js +0 -6
  104. package/components/areas/contexts/AreasContext/index-BqRlA7JA.js +0 -1110
  105. package/components/areas/contexts/DynamicMFParmsContext/index-22c6E7vK.js +0 -36
  106. package/components/areas/contexts/WindowToolsMFContext/index-DkE30fhm.js +0 -12
  107. package/components/areas/contexts/index-l0sNRNKZ.js +0 -1
  108. package/components/areas/dictionary-YUsP9beq.js +0 -36
  109. package/components/areas/hooks/index-l0sNRNKZ.js +0 -1
  110. package/components/areas/hooks/useAreas/index-BSbwbJLS.js +0 -11
  111. package/components/areas/hooks/useDynamicMFParameters/index-DhbcZPs9.js +0 -12
  112. package/components/areas/hooks/useSetWindowsTitle/useSetWindowsTitle-BzPD-miW.js +0 -31
  113. package/components/areas/hooks/useWindowToolsMF/index-BECQfhbC.js +0 -10
  114. package/components/areas/icons-CwFr-alN.js +0 -24
  115. package/components/areas/index-B_Odny9h.js +0 -22
  116. package/components/commercial/AppBarCommercial/index-CHq3P3GY.js +0 -28
  117. package/components/commercial/SectionCommercial/index-BeABGtdr.js +0 -56
  118. package/components/commercial/TopBar/index-F1repmti.js +0 -232
  119. package/components/commercial/index-CxDzs6Ax.js +0 -81
  120. package/components/formatters/BooleanFormatter/index-DktIidqW.js +0 -44
  121. package/components/formatters/DateFormatter/index-CGcRZ8BA.js +0 -43
  122. package/components/formatters/PointsFormatter/index-C7sR8iqk.js +0 -25
  123. package/components/formatters/PriceFormatter/index-CsvRawmc.js +0 -35
  124. package/components/formatters/UncertaintyFormatter/index-B9ESVEVp.js +0 -29
  125. package/components/formatters/index-pnJhDYKe.js +0 -109
  126. package/components/hook-form/HelperError/index-BVnmUazV.js +0 -19
  127. package/components/hook-form/RHFAutocomplete/index-BtPL16HR.js +0 -657
  128. package/components/hook-form/RHFAutocompleteAsync/index-BfzjLHG8.js +0 -226
  129. package/components/hook-form/RHFCheckbox/index-Vyttu8Vx.js +0 -132
  130. package/components/hook-form/RHFColorPicker/index-Cxxb5Wa_.js +0 -191
  131. package/components/hook-form/RHFDateTime/index-CW1Slb-f.js +0 -190
  132. package/components/hook-form/RHFMultiCheckbox/index-BARudV1A.js +0 -34
  133. package/components/hook-form/RHFPeriod/index-r-HeIOoZ.js +0 -98
  134. package/components/hook-form/RHFRadioGroup/index-CTD-0zKo.js +0 -52
  135. package/components/hook-form/RHFSelect/index-LdwRuFz-.js +0 -29
  136. package/components/hook-form/RHFTextField/index-B6ufruSB.js +0 -337
  137. package/components/hook-form/RHFUpload/index-CDPbm8NR.js +0 -253
  138. package/components/maps/components/GpsTools/index-5MXlhIEt.js +0 -1948
  139. package/components/maps/components/Map/index-2Lx5ARXa.js +0 -2546
  140. package/components/maps/index-Ci-7-FHg.js +0 -7
  141. package/components/modal/WindowBase-Gd27v5FU.js +0 -44
  142. package/components/modal/WindowConfirm-u6vAMFo7.js +0 -73
  143. package/components/modal/index-CydPIpKZ.js +0 -65
  144. package/components/mui_extended/Accordion/index-DMLYJL7o.js +0 -124
  145. package/components/mui_extended/Avatar/index-ClBa-6eF.js +0 -64
  146. package/components/mui_extended/Badge/index-zI-F_Qkq.js +0 -29
  147. package/components/mui_extended/BoxIcon/index-BUTJ2tKw.js +0 -22
  148. package/components/mui_extended/Breadcrumbs/index-DTS7rOZH.js +0 -86
  149. package/components/mui_extended/Button/index-CGfZbaea.js +0 -222
  150. package/components/mui_extended/CheckBox-BXUrbonB.js +0 -76
  151. package/components/mui_extended/CircularProgress/index-Bnnti_G6.js +0 -8
  152. package/components/mui_extended/IconButton/classes/constants-ChY2jKkp.js +0 -4
  153. package/components/mui_extended/IconButton/classes/index-BxjJGAqZ.js +0 -45
  154. package/components/mui_extended/IconButton/index-CusYFjie.js +0 -97
  155. package/components/mui_extended/IconButton/styledIconButton-fAsbGoFS.js +0 -7
  156. package/components/mui_extended/LinearProgress/index-CGgW8jq2.js +0 -9
  157. package/components/mui_extended/LinkWithRoute/index-BC2miUjR.js +0 -15
  158. package/components/mui_extended/MenuActions/MenuActions-C6CjSU6C.js +0 -149
  159. package/components/mui_extended/MenuActions/constants-BwsU9chA.js +0 -10
  160. package/components/mui_extended/MenuActions/dictionary-Dj_07puT.js +0 -11
  161. package/components/mui_extended/MenuActions/slots/MenuActionsEnum-Bu-L6eWU.js +0 -13
  162. package/components/mui_extended/MenuActions/slots/MenuActionsSlots-D65KZAKF.js +0 -46
  163. package/components/mui_extended/Pager/index-DCbxiTZA.js +0 -257
  164. package/components/mui_extended/Popover/index-DfrJAQkV.js +0 -153
  165. package/components/mui_extended/Stack/index-DzEeCYfp.js +0 -31
  166. package/components/mui_extended/Tab/index-Bu3dPidV.js +0 -129
  167. package/components/mui_extended/ToggleButton/index-C9cBkT1V.js +0 -18
  168. package/components/mui_extended/ToggleIconButton/index--0b3Td6C.js +0 -26
  169. package/components/mui_extended/Tooltip/index-B8QUytCK.js +0 -42
  170. package/components/mui_extended/Typography/index-Cf_4Zw8f.js +0 -54
  171. package/components/mui_extended/index-l0sNRNKZ.js +0 -1
  172. package/components/popups/PopupsProvider/index-DhSxmtfJ.js +0 -172
  173. package/components/popups/PopupsViewer/constants-DuyD7aCn.js +0 -4
  174. package/components/popups/PopupsViewer/icons-BUujqqbu.js +0 -7
  175. package/components/popups/PopupsViewer/index-BecevSns.js +0 -172
  176. package/components/popups/PopupsViewer/slots/index-B98CiRLa.js +0 -14
  177. package/components/popups/PopupsViewer/slots/popupsViewerSlots-BXH77nCF.js +0 -46
  178. package/components/popups/index-l0sNRNKZ.js +0 -1
  179. package/contexts/ModalContext/index-CPfNnfTL.js +0 -39
  180. package/contexts/RHFormContext/index-D_nK759o.js +0 -78
  181. package/hocs/withToggle/index-C1_DMZD3.js +0 -14
  182. package/hooks/useFormAddEdit/index-D9oSjUn1.js +0 -90
  183. package/hooks/useFormReadyForUpdate/index-B3HygFCM.js +0 -20
  184. package/hooks/useModal/index-BJSQOX3U.js +0 -10
  185. package/hooks/useSizeContainer/index-D4hDjM1P.js +0 -37
  186. package/hooks/useStateRef/index-C3P6ZK3m.js +0 -15
  187. package/hooks/useTab/index-B_GEQFOP.js +0 -12
  188. package/react-data-grid-BfYuZ6AK.js +0 -2606
  189. package/react-draggable-DsCPdgQP.js +0 -811
  190. package/react-json-view-bhqIAaNg.js +0 -2576
  191. package/react-resizable-eBbFl2dX.js +0 -618
  192. package/react-spinners-TpKN9lZg.js +0 -123
  193. package/react-splitter-layout-C-JTsNGs.js +0 -158
  194. package/styles/DynamicFilter-CJFsIegc.js +0 -319
  195. package/styles/MenuActions-lTi-ynPM.js +0 -42
  196. package/styles/index-DKj6m8SL.js +0 -1691
  197. package/test/constants_no_mock-CF-669v-.js +0 -4
  198. package/test/getNameDataTestId-BaBTWhBr.js +0 -10
  199. package/utils/index-DiMrtgIu.js +0 -502
  200. /package/components/GridLayout/subcomponents/{Griditem → GridItem}/index.d.ts +0 -0
  201. /package/components/GridLayout/subcomponents/{Griditem → GridItem}/types.d.ts +0 -0
@@ -1,74 +0,0 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- import { useBase, getPropertyByString, evaluateWithContext } from "@m4l/core";
3
- import { c as classes, g as getSize } from "../../index-B2qcnfw0.js";
4
- import clsx from "clsx";
5
- const GridNode = (props) => {
6
- const { style = {}, className = "", rows, columns } = props;
7
- const regexPattern = /\$\{([^{}]+)\}/g;
8
- const rowMaybeString = typeof rows === "string" && regexPattern.exec(rows) || "";
9
- const dataColumns = Array.isArray(columns) && columns.length > 0 ? columns : [];
10
- const {
11
- unitSize,
12
- sourceData
13
- /* templateData */
14
- } = useBase();
15
- const result = getPropertyByString(sourceData, typeof rows === "string" ? rowMaybeString[1] : "");
16
- const rowEval = Array.isArray(result) ? result : typeof result === "object" ? [{ ...result }] : [];
17
- const rowsFormated = typeof rows === "string" ? rowEval : rows;
18
- if (dataColumns.length > 0) {
19
- return /* @__PURE__ */ jsxs(
20
- "table",
21
- {
22
- className: clsx(classes.gridNodeRoot, className),
23
- style: {
24
- ...style
25
- },
26
- children: [
27
- /* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsx("tr", { className: classes.gridNodeTr, children: columns.map((column) => {
28
- return /* @__PURE__ */ jsx(
29
- "th",
30
- {
31
- className: classes.gridNodeTh,
32
- style: {
33
- minWidth: column.width ? getSize(column.width, unitSize) : "auto",
34
- maxWidth: column.width ? getSize(column.width, unitSize) : "auto",
35
- justifyContent: column.alignX ? column.alignX : "center"
36
- },
37
- children: evaluateWithContext(sourceData, column.title)
38
- },
39
- `th-${Math.random().toString(36).substring(7)}`
40
- );
41
- }) }, `tr-${Math.random().toString(36).substring(7)}`) }),
42
- /* @__PURE__ */ jsx("tbody", { children: rowsFormated.map((row) => {
43
- return /* @__PURE__ */ jsx(
44
- "tr",
45
- {
46
- className: classes.gridNodeTr,
47
- children: columns.map((cell, id) => {
48
- const isNested = cell.nestedValue ? true : false;
49
- return /* @__PURE__ */ jsx(
50
- "td",
51
- {
52
- className: classes.gridNodeTd,
53
- style: {
54
- minWidth: getSize(dataColumns[id].width || "auto", unitSize),
55
- justifyContent: cell.alignX ? cell.alignX : "center"
56
- },
57
- children: isNested ? evaluateWithContext({ row }, dataColumns[id].nestedValue || "") : row[dataColumns[id].key]
58
- },
59
- `td-${Math.random().toString(36).substring(7)}`
60
- );
61
- })
62
- },
63
- `tr-${Math.random().toString(36).substring(7)}`
64
- );
65
- }) })
66
- ]
67
- }
68
- );
69
- }
70
- return null;
71
- };
72
- export {
73
- GridNode as G
74
- };
@@ -1,49 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { useBase } from "@m4l/core";
3
- import { c as classes, g as getSize } from "../../index-B2qcnfw0.js";
4
- import clsx from "clsx";
5
- const HeaderNode = (props) => {
6
- const {
7
- children,
8
- className,
9
- direction = "row",
10
- gap = "unset",
11
- style,
12
- width = "auto",
13
- height = "auto",
14
- paddingTop = "unset",
15
- paddingRight = "unset",
16
- paddingBottom = "unset",
17
- paddingLeft = "unset",
18
- alignX = "unset",
19
- alignY = "unset",
20
- grow = false
21
- } = props;
22
- const { unitSize } = useBase();
23
- return /* @__PURE__ */ jsx(
24
- "div",
25
- {
26
- className: clsx(classes.headerNodeRoot, className),
27
- style: {
28
- flexDirection: direction,
29
- gap: getSize(gap, unitSize),
30
- width: getSize(width, unitSize),
31
- height: getSize(height, unitSize),
32
- minWidth: getSize(width, unitSize),
33
- minHeight: getSize(height, unitSize),
34
- paddingTop: getSize(paddingTop, unitSize),
35
- paddingRight: getSize(paddingRight, unitSize),
36
- paddingBottom: getSize(paddingBottom, unitSize),
37
- paddingLeft: getSize(paddingLeft, unitSize),
38
- justifyContent: direction === "row" ? alignX : alignY,
39
- alignItems: direction === "row" ? alignY : alignX,
40
- flex: grow ? 1 : "unset",
41
- ...style
42
- },
43
- children
44
- }
45
- );
46
- };
47
- export {
48
- HeaderNode as H
49
- };
@@ -1,30 +0,0 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- import { useBase, evaluateWithContext } from "@m4l/core";
3
- import { c as classes } from "../../index-B2qcnfw0.js";
4
- import clsx from "clsx";
5
- const PaperNode = (props) => {
6
- const { children, style = {}, className = "", title, titleSecondary } = props;
7
- const { mainColor } = useBase();
8
- const { sourceData } = useBase();
9
- const titleFormated = evaluateWithContext(sourceData, title);
10
- const titleSecondaryFormated = evaluateWithContext(sourceData, titleSecondary || "");
11
- return /* @__PURE__ */ jsxs(
12
- "div",
13
- {
14
- className: clsx(classes.paperNodeRoot, className),
15
- style: {
16
- ...style
17
- },
18
- children: [
19
- /* @__PURE__ */ jsxs("div", { className: classes.paperNodeContainerTitles, children: [
20
- /* @__PURE__ */ jsx("div", { className: classes.paperNodeTitle, children: titleFormated }),
21
- titleSecondary ? /* @__PURE__ */ jsx("div", { className: classes.paperNodeTitleSecondary, style: { color: mainColor }, children: titleSecondaryFormated }) : null
22
- ] }),
23
- /* @__PURE__ */ jsx("div", { className: classes.paperNodeContent, children })
24
- ]
25
- }
26
- );
27
- };
28
- export {
29
- PaperNode as P
30
- };
@@ -1,47 +0,0 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- import { useBase, evaluateWithContext } from "@m4l/core";
3
- import { c as classes, g as getSize } from "../../index-B2qcnfw0.js";
4
- import clsx from "clsx";
5
- const PropertyValueNode = (props) => {
6
- const {
7
- style = {},
8
- className = "",
9
- property,
10
- children,
11
- direction,
12
- propertyWidth = "auto"
13
- } = props;
14
- const { unitSize, mainColor, sourceData } = useBase();
15
- const propertyFormated = evaluateWithContext(sourceData, property);
16
- return /* @__PURE__ */ jsxs(
17
- "div",
18
- {
19
- className: clsx(
20
- classes.propertyValueNodeRoot,
21
- direction === "column" ? classes.propertyValueNodeHorizontal : classes.propertyValueNodeVertical,
22
- className
23
- ),
24
- style: {
25
- ...style
26
- },
27
- children: [
28
- /* @__PURE__ */ jsx(
29
- "div",
30
- {
31
- className: classes.propertyValueNodeTitle,
32
- style: {
33
- width: getSize(propertyWidth, unitSize),
34
- minWidth: getSize(propertyWidth, unitSize),
35
- borderColor: mainColor
36
- },
37
- children: propertyFormated
38
- }
39
- ),
40
- /* @__PURE__ */ jsx("div", { className: classes.propertyValueNodeContent, children })
41
- ]
42
- }
43
- );
44
- };
45
- export {
46
- PropertyValueNode as P
47
- };
@@ -1,49 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { useBase } from "@m4l/core";
3
- import { c as classes, g as getSize } from "../../index-B2qcnfw0.js";
4
- import clsx from "clsx";
5
- const SectionNode = (props) => {
6
- const {
7
- children,
8
- className,
9
- direction = "row",
10
- gap = "unset",
11
- style,
12
- width = "auto",
13
- height = "auto",
14
- paddingTop = "unset",
15
- paddingRight = "unset",
16
- paddingBottom = "unset",
17
- paddingLeft = "unset",
18
- alignX = "unset",
19
- alignY = "unset",
20
- grow = false
21
- } = props;
22
- const { unitSize } = useBase();
23
- return /* @__PURE__ */ jsx(
24
- "div",
25
- {
26
- className: clsx(classes.sectionNodeRoot, className),
27
- style: {
28
- flexDirection: direction,
29
- gap: getSize(gap, unitSize),
30
- width: getSize(width, unitSize),
31
- height: getSize(height, unitSize),
32
- minWidth: getSize(width, unitSize),
33
- minHeight: getSize(height, unitSize),
34
- paddingTop: getSize(paddingTop, unitSize),
35
- paddingRight: getSize(paddingRight, unitSize),
36
- paddingBottom: getSize(paddingBottom, unitSize),
37
- paddingLeft: getSize(paddingLeft, unitSize),
38
- justifyContent: direction === "row" ? alignX : alignY,
39
- alignItems: direction === "row" ? alignY : alignX,
40
- flex: grow ? 1 : "unset",
41
- ...style
42
- },
43
- children
44
- }
45
- );
46
- };
47
- export {
48
- SectionNode as S
49
- };
@@ -1,24 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { useBase, evaluateWithContext } from "@m4l/core";
3
- import { c as classes } from "../../index-B2qcnfw0.js";
4
- import clsx from "clsx";
5
- const TextBoxNode = (props) => {
6
- const { variant = "body", style, className, textAlign = "start", children } = props;
7
- const { sourceData } = useBase();
8
- const textFormated = evaluateWithContext(sourceData, children[1]);
9
- return /* @__PURE__ */ jsx(
10
- "span",
11
- {
12
- className: clsx(
13
- classes.textBoxNodeRoot,
14
- className,
15
- `${classes.textBoxNodeVariant}-${variant}`
16
- ),
17
- style: { textAlign, ...style },
18
- children: textFormated
19
- }
20
- );
21
- };
22
- export {
23
- TextBoxNode as T
24
- };
@@ -1,264 +0,0 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- import { E as PropertyValueRoot } from "../../styles/index-DKj6m8SL.js";
3
- import { useResponsiveDesktop } from "@m4l/graphics";
4
- import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
5
- import { unstable_composeClasses } from "@mui/base";
6
- import clsx from "clsx";
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 { useState } from "react";
10
- import { F as FieldLabel } from "../FieldLabel/index-CI57EizR.js";
11
- import { I as Icon } from "../Icon/index-C89MAkeH.js";
12
- const componentName = "M4LPropertyValue";
13
- generateUtilityClasses(
14
- componentName,
15
- [
16
- /* elements */
17
- "root",
18
- "property",
19
- "iconProperty",
20
- "value",
21
- /* states or variants of elements */
22
- "isDisabled",
23
- "isFocus",
24
- "variantIsForm",
25
- "isTabSelected",
26
- "isMobile"
27
- ]
28
- );
29
- function getPropertyValueUtilityClass(slot) {
30
- return generateUtilityClass(componentName, slot);
31
- }
32
- const propertyValueUtilityClasses = (ownerState) => {
33
- const slots = {
34
- root: [
35
- "root",
36
- ownerState.disabled && "isDisabled",
37
- ownerState.isFocus && "isFocus",
38
- ownerState.isForm && "variantIsForm",
39
- ownerState.isTabSelected && "isTabSelected",
40
- ownerState.isMobile && "isMobile"
41
- ],
42
- property: ["property"],
43
- iconProperty: ["iconProperty"],
44
- value: ["value"]
45
- };
46
- const composedClasses = unstable_composeClasses(slots, getPropertyValueUtilityClass, {});
47
- return {
48
- ...composedClasses
49
- };
50
- };
51
- const COMPONENT_PREFIX = "m4l-property-value";
52
- const TEST_PROPS_DATA = `${COMPONENT_PREFIX}-data`;
53
- function PropertyValue(props) {
54
- const {
55
- property,
56
- iconProperty,
57
- value,
58
- propertyWidth = 200,
59
- valueHeight = "auto",
60
- valueWidth = "100",
61
- valueWidthMobile,
62
- isForm,
63
- className,
64
- dataTestId = "",
65
- disabled = false,
66
- mandatory,
67
- mandatoryMessage,
68
- helperMessage
69
- } = props;
70
- const isDesktop = useResponsiveDesktop();
71
- const [isFocus, setIsFocus] = useState(false);
72
- const [isTabSelected, setIsTabSelected] = useState(false);
73
- const getValueW = () => {
74
- if (valueWidthMobile && !isDesktop) {
75
- return valueWidthMobile;
76
- }
77
- if (valueWidth === 75 && isDesktop) {
78
- return 75;
79
- } else if (valueWidth === 75 && !isDesktop) {
80
- return 100;
81
- }
82
- if (valueWidth === 50 && isDesktop) {
83
- return 50;
84
- } else if (valueWidth === 50 && !isDesktop) {
85
- return 100;
86
- }
87
- if (valueWidth === 25 && isDesktop || valueWidth === 12.5 && isDesktop) {
88
- return valueWidth;
89
- }
90
- if (valueWidth === 25 && !isDesktop) {
91
- return 50;
92
- }
93
- if (valueWidth === 12.5 && !isDesktop) {
94
- return 25;
95
- }
96
- return 100;
97
- };
98
- const handlerFocus = () => {
99
- setIsFocus(true);
100
- };
101
- const handlerKeyUp = (event) => {
102
- if (event.key === "Tab") {
103
- setIsTabSelected(true);
104
- }
105
- };
106
- const handlerOnBlur = () => {
107
- setIsFocus(false);
108
- setIsTabSelected(false);
109
- };
110
- const ownerState = {
111
- disabled: isForm && disabled ? disabled : false,
112
- isFocus: !disabled && isForm ? isFocus : false,
113
- isTabSelected: !disabled && isForm ? isTabSelected : false,
114
- isForm: isForm ? true : false,
115
- isMobile: !isDesktop
116
- };
117
- const classes = propertyValueUtilityClasses(ownerState);
118
- if (!isForm) {
119
- return /* @__PURE__ */ jsxs(
120
- PropertyValueRoot,
121
- {
122
- className: clsx(classes.root, className),
123
- style: {
124
- gridTemplateColumns: propertyWidth ? `${propertyWidth}px 1fr` : "150px 1fr"
125
- },
126
- ...process.env.NODE_ENV !== "production" ? {
127
- [TEST_PROPS_DATA]: JSON.stringify([
128
- { property: property ? true : false, value: value ? true : false }
129
- ]),
130
- [TEST_PROP_ID]: getNameDataTestId(
131
- COMPONENT_PREFIX,
132
- "root",
133
- dataTestId
134
- )
135
- } : {},
136
- children: [
137
- /* @__PURE__ */ jsxs(
138
- "div",
139
- {
140
- className: classes.property,
141
- style: {
142
- width: propertyWidth && isDesktop ? propertyWidth : "150px",
143
- minWidth: propertyWidth && isDesktop ? propertyWidth : "150px"
144
- },
145
- ...process.env.NODE_ENV !== "production" ? {
146
- [TEST_PROP_ID]: getNameDataTestId(
147
- COMPONENT_PREFIX,
148
- "property",
149
- dataTestId
150
- )
151
- } : {},
152
- children: [
153
- iconProperty ? /* @__PURE__ */ jsx(Icon, { src: iconProperty, className: classes.iconProperty }) : null,
154
- /* @__PURE__ */ jsx(
155
- FieldLabel,
156
- {
157
- label: property,
158
- mandatory,
159
- mandatoryMessage,
160
- helperMessage
161
- }
162
- )
163
- ]
164
- }
165
- ),
166
- /* @__PURE__ */ jsx(
167
- "div",
168
- {
169
- className: classes.value,
170
- style: {
171
- width: `${getValueW()}%`,
172
- maxWidth: `${getValueW()}%`,
173
- height: valueHeight
174
- },
175
- ...process.env.NODE_ENV !== "production" ? {
176
- [TEST_PROP_ID]: getNameDataTestId(
177
- COMPONENT_PREFIX,
178
- "value",
179
- dataTestId
180
- )
181
- } : {},
182
- children: value
183
- }
184
- )
185
- ]
186
- }
187
- );
188
- }
189
- return /* @__PURE__ */ jsxs(
190
- PropertyValueRoot,
191
- {
192
- className: clsx(classes.root, className),
193
- style: { gridTemplateColumns: propertyWidth ? `${propertyWidth}px 1fr` : "150px 1fr" },
194
- role: "button",
195
- tabIndex: 0,
196
- onClick: handlerFocus,
197
- onBlur: handlerOnBlur,
198
- onKeyUp: handlerKeyUp,
199
- ...process.env.NODE_ENV !== "production" ? {
200
- [TEST_PROPS_DATA]: JSON.stringify([
201
- { property: property ? true : false, value: value ? true : false }
202
- ]),
203
- [TEST_PROP_ID]: getNameDataTestId(
204
- COMPONENT_PREFIX,
205
- "root",
206
- dataTestId
207
- )
208
- } : {},
209
- children: [
210
- /* @__PURE__ */ jsxs(
211
- "div",
212
- {
213
- className: clsx(classes.root, className),
214
- style: { width: propertyWidth ? `${propertyWidth}px 1fr` : "150px 1fr" },
215
- ...process.env.NODE_ENV !== "production" ? {
216
- [TEST_PROPS_DATA]: JSON.stringify([
217
- { property: property ? true : false, value: value ? true : false }
218
- ]),
219
- [TEST_PROP_ID]: getNameDataTestId(
220
- COMPONENT_PREFIX,
221
- "root",
222
- dataTestId
223
- )
224
- } : {},
225
- children: [
226
- iconProperty ? /* @__PURE__ */ jsx(Icon, { src: iconProperty, className: classes.iconProperty }) : null,
227
- /* @__PURE__ */ jsx(
228
- FieldLabel,
229
- {
230
- label: property,
231
- mandatory,
232
- mandatoryMessage,
233
- helperMessage
234
- }
235
- )
236
- ]
237
- }
238
- ),
239
- /* @__PURE__ */ jsx(
240
- "div",
241
- {
242
- className: classes.value,
243
- style: {
244
- width: `${getValueW()}%`,
245
- maxWidth: `${getValueW()}%`,
246
- height: valueHeight
247
- },
248
- ...process.env.NODE_ENV !== "production" ? {
249
- [TEST_PROP_ID]: getNameDataTestId(
250
- COMPONENT_PREFIX,
251
- "value",
252
- dataTestId
253
- )
254
- } : {},
255
- children: value
256
- }
257
- )
258
- ]
259
- }
260
- );
261
- }
262
- export {
263
- PropertyValue as P
264
- };
@@ -1,20 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { J as WrapperResizeable } from "../../styles/index-DKj6m8SL.js";
3
- function ResizeableWindow(props) {
4
- const { children, width = 600, height = 400, maxHeigth, onResize, maxWidth, ...other } = props;
5
- return /* @__PURE__ */ jsx(
6
- WrapperResizeable,
7
- {
8
- width,
9
- height,
10
- onResize,
11
- maxConstraints: maxHeigth && maxWidth ? [maxWidth, maxHeigth] : void 0,
12
- resizeHandles: ["se", "nw"],
13
- ...other,
14
- children
15
- }
16
- );
17
- }
18
- export {
19
- ResizeableWindow as R
20
- };
@@ -1,35 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { generateUtilityClasses, generateUtilityClass, Box } from "@mui/material";
3
- import { R as RootStyle, K as SimpleBarStyle } from "../../styles/index-DKj6m8SL.js";
4
- import { unstable_composeClasses } from "@mui/base";
5
- const componentName = "M4LScrollBar";
6
- generateUtilityClasses(componentName, [
7
- /* elements */
8
- "root"
9
- /* states or variants of elements */
10
- ]);
11
- function getScrollBarUtilityClass(slot) {
12
- return generateUtilityClass(componentName, slot);
13
- }
14
- const useScrollBarUtilityClasses = () => {
15
- const slots = {
16
- root: ["root"]
17
- };
18
- const composedClasses = unstable_composeClasses(slots, getScrollBarUtilityClass, {});
19
- return {
20
- ...composedClasses
21
- };
22
- };
23
- function ScrollBar(props) {
24
- const { children } = props;
25
- const userAgent = typeof navigator === "undefined" ? "SSR" : navigator.userAgent;
26
- const isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(userAgent);
27
- if (isMobile) {
28
- return /* @__PURE__ */ jsx(Box, { sx: { overflowX: "auto", width: "100%" }, children });
29
- }
30
- const classes = useScrollBarUtilityClasses();
31
- return /* @__PURE__ */ jsx(RootStyle, { id: "RootStyle", className: classes.root, children: /* @__PURE__ */ jsx(SimpleBarStyle, { autoHide: false, children }) });
32
- }
33
- export {
34
- ScrollBar as S
35
- };
@@ -1,12 +0,0 @@
1
- import { useEffect } from "react";
2
- import { useLocation } from "react-router-dom";
3
- function ScrollToTop() {
4
- const { pathname } = useLocation();
5
- useEffect(() => {
6
- window.scrollTo(0, 0);
7
- }, [pathname]);
8
- return null;
9
- }
10
- export {
11
- ScrollToTop as S
12
- };