@m4l/components 3.1.6 → 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 (203) hide show
  1. package/components/mui_extended/IconButton/index.d.ts +1 -1
  2. package/components/mui_extended/MenuActions/slots/MenuActionsSlots.d.ts +2 -4
  3. package/index.js +183 -339
  4. package/node_modules-CQtkw0uG.js +7350 -0
  5. package/package.json +1 -1
  6. package/vendor-AfIOyqRr.js +24636 -0
  7. package/components/AccountPopover/index-BdnzI23R.js +0 -334
  8. package/components/AppBar/index-Dvrx1jsr.js +0 -93
  9. package/components/BaseModule/index-BQ2UIUCy.js +0 -30
  10. package/components/CommonActions/components/ActionCancel/index-DSVEMl41.js +0 -12
  11. package/components/CommonActions/components/ActionFormCancel/index-DMsGH0wx.js +0 -56
  12. package/components/CommonActions/components/ActionFormIntro/index-C8zb7R3W.js +0 -33
  13. package/components/CommonActions/components/ActionIntro/index-BNIG3KAH.js +0 -25
  14. package/components/CommonActions/components/Actions/index-90JsZTzb.js +0 -70
  15. package/components/DataGrid/constants-8L7QgBKi.js +0 -10
  16. package/components/DataGrid/formatters/ColumnBooleanFormatter/index-ZsSxUL_T.js +0 -26
  17. package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/index-D-gZpvcm.js +0 -22
  18. package/components/DataGrid/formatters/ColumnDateFormatter/index-CKg8CJ6A.js +0 -19
  19. package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/index-kZGiDU5k.js +0 -23
  20. package/components/DataGrid/formatters/ColumnNestedValueFormatter/index-BslXGK-A.js +0 -14
  21. package/components/DataGrid/formatters/ColumnPointsFormatter/index-BXGW2CsK.js +0 -10
  22. package/components/DataGrid/formatters/ColumnPriceFormatter/index-O11tBykn.js +0 -10
  23. package/components/DataGrid/formatters/ColumnSetCheckFormatter/index-BaCawLr1.js +0 -36
  24. package/components/DataGrid/formatters/ColumnUncertaintyFormatter/index-Cq7a-jnE.js +0 -10
  25. package/components/DataGrid/formatters/index-iKq2iRoa.js +0 -13
  26. package/components/DataGrid/index-DGHnRo8z.js +0 -908
  27. package/components/DataGrid/subcomponents/Actions/index-BhBvobKS.js +0 -549
  28. package/components/DataGrid/subcomponents/editors/TextEditor/index-BIFm8akr.js +0 -80
  29. package/components/DragResizeWindow/index-D2jLYExo.js +0 -505
  30. package/components/DynamicFilter/constants-ByqmFATV.js +0 -31
  31. package/components/DynamicFilter/dictionary-D9Z9YGDb.js +0 -51
  32. package/components/DynamicFilter/index-CRmtRWlr.js +0 -116
  33. package/components/DynamicFilter/slots/SlotsEnum-cawFeNzx.js +0 -34
  34. package/components/DynamicFilter/slots/dynamicFilterSlots-CQiB8TmY.js +0 -151
  35. package/components/DynamicFilter/slots/index-l0sNRNKZ.js +0 -1
  36. package/components/DynamicFilter/store/index-DoIifWTk.js +0 -254
  37. package/components/DynamicFilter/subcomponents/AppliedFilterChip/index-DQESCg04.js +0 -60
  38. package/components/DynamicFilter/subcomponents/AppliedFilters/index-CGmflaoY.js +0 -26
  39. package/components/DynamicFilter/subcomponents/DynamicFilterBase/index-BfH6YHNi.js +0 -40
  40. package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/index-Dv3KjuYK.js +0 -129
  41. package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/index-BnhNICK4.js +0 -171
  42. package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/index-CNN6DeHY.js +0 -153
  43. package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/index-C2dNPFtM.js +0 -146
  44. package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/index-B03ahaU6.js +0 -114
  45. package/components/DynamicFilter/subcomponents/FieldTypes/index-EF7A6WnZ.js +0 -38
  46. package/components/DynamicFilter/subcomponents/FilterActions/index-CQtA2ELu.js +0 -88
  47. package/components/DynamicFilter/subcomponents/InputFilter/index-EXbXDSZA.js +0 -188
  48. package/components/DynamicFilter/subcomponents/PopoverFilter/index-BX8YCh9v.js +0 -158
  49. package/components/DynamicFilter/subcomponents/PopoverMenuFields/index-DvAYf5-a.js +0 -63
  50. package/components/FieldLabel/index-C8od8D0w.js +0 -54
  51. package/components/GridLayout/index-EPw3AYiQ.js +0 -1044
  52. package/components/GridLayout/subcomponents/Griditem/index-B8Q7iMhr.js +0 -395
  53. package/components/GridLayout/subcomponents/Responsive/index-D6BbBdVx.js +0 -348
  54. package/components/GridLayout/subcomponents/SizeProvider/index-OhbtnEN4.js +0 -71
  55. package/components/HelperText/index-sLK3dYG0.js +0 -50
  56. package/components/Icon/index-BJF_0F6d.js +0 -176
  57. package/components/Image/index-BxphCFC7.js +0 -175
  58. package/components/LanguagePopover/index-CkKie1Ph.js +0 -179
  59. package/components/LinearProgressIndeterminate/index-CTvXOPRx.js +0 -55
  60. package/components/Loadable/index-BMbi9ISF.js +0 -9
  61. package/components/LoadingError/index-BaaPhmyF.js +0 -89
  62. package/components/MFIsolationApp/index-BfHLGDcN.js +0 -169
  63. package/components/MFLoader/index-B8FmSpE7.js +0 -299
  64. package/components/ModalDialog/index-WSVr5sZr.js +0 -77
  65. package/components/NavLink/index-CKgi5l5M.js +0 -55
  66. package/components/NoItemSelected/index-BKsZKc_f.js +0 -54
  67. package/components/ObjectLogs/index-BJkjYQaa.js +0 -233
  68. package/components/PDFViewer/index-Cnbioqzo.js +0 -51
  69. package/components/Page/index-DSSwuNSp.js +0 -117
  70. package/components/PaperForm/index-C1OKDnuY.js +0 -59
  71. package/components/Period/index-DYE7Bj45.js +0 -238
  72. package/components/PrintingSystem/index-BkfHXcTV.js +0 -187
  73. package/components/PrintingSystem/subcomponents/BodyNode/index-Btg2zXVQ.js +0 -49
  74. package/components/PrintingSystem/subcomponents/ChartNode/index-GLjhqKd2.js +0 -105
  75. package/components/PrintingSystem/subcomponents/DividerNode/index-D9T1MWQd.js +0 -20
  76. package/components/PrintingSystem/subcomponents/FooterNode/index-C3LET1ZY.js +0 -49
  77. package/components/PrintingSystem/subcomponents/GridNode/index-BPz7lGvC.js +0 -74
  78. package/components/PrintingSystem/subcomponents/HeaderNode/index-DY4Yci1r.js +0 -49
  79. package/components/PrintingSystem/subcomponents/PaperNode/index-BYoGJll5.js +0 -30
  80. package/components/PrintingSystem/subcomponents/PropertyValueNode/index-vFZ5Skyl.js +0 -47
  81. package/components/PrintingSystem/subcomponents/SectionNode/index-BNqGWpcj.js +0 -49
  82. package/components/PrintingSystem/subcomponents/TextBoxNode/index-wgdfWbfF.js +0 -24
  83. package/components/PropertyValue/index-dwO3Qo0Y.js +0 -264
  84. package/components/Resizeable/index-CHseEYjL.js +0 -20
  85. package/components/ScrollBar/index-BYMy_qJE.js +0 -35
  86. package/components/ScrollToTop/index-TxORk5dB.js +0 -12
  87. package/components/SideBar/index-DqKD_S9_.js +0 -758
  88. package/components/SplitLayout/index-D4lxi0ig.js +0 -89
  89. package/components/ToastContainer/index-jnQcIcV1.js +0 -191
  90. package/components/WrapperComponent/index-BHV-CsDU.js +0 -14
  91. package/components/animate/LoadingScreen/index-CTGGa4Yt.js +0 -70
  92. package/components/animate/MotionContainer/index-eartnWyO.js +0 -34
  93. package/components/animate/MotionLazyContainer/index-Be8osTiG.js +0 -9
  94. package/components/animate/PropagateLoader/index-Bkq8V2SN.js +0 -23
  95. package/components/animate/features-BbnE33u3.js +0 -5
  96. package/components/animate/index-9dC9NmWv.js +0 -89
  97. package/components/animate/variants/bounce-DanQqHAX.js +0 -101
  98. package/components/animate/variants/container-Dmpr6tg5.js +0 -22
  99. package/components/animate/variants/fade-CAOJNn06.js +0 -65
  100. package/components/animate/variants/index-l0sNRNKZ.js +0 -1
  101. package/components/animate/variants/transition-B9W5SWTa.js +0 -20
  102. package/components/areas/components/AreasAdmin/index-BU9AX60_.js +0 -699
  103. package/components/areas/components/AreasViewer/index-CPlZxIzK.js +0 -805
  104. package/components/areas/components/index-l0sNRNKZ.js +0 -1
  105. package/components/areas/constants-rqODZNZe.js +0 -6
  106. package/components/areas/contexts/AreasContext/index-DGguLxcX.js +0 -1110
  107. package/components/areas/contexts/DynamicMFParmsContext/index-22c6E7vK.js +0 -36
  108. package/components/areas/contexts/WindowToolsMFContext/index-DkE30fhm.js +0 -12
  109. package/components/areas/contexts/index-l0sNRNKZ.js +0 -1
  110. package/components/areas/dictionary-YUsP9beq.js +0 -36
  111. package/components/areas/hooks/index-l0sNRNKZ.js +0 -1
  112. package/components/areas/hooks/useAreas/index-DBXtbtIu.js +0 -11
  113. package/components/areas/hooks/useDynamicMFParameters/index-DhbcZPs9.js +0 -12
  114. package/components/areas/hooks/useSetWindowsTitle/useSetWindowsTitle-BzPD-miW.js +0 -31
  115. package/components/areas/hooks/useWindowToolsMF/index-BECQfhbC.js +0 -10
  116. package/components/areas/icons-CwFr-alN.js +0 -24
  117. package/components/areas/index-B_Odny9h.js +0 -22
  118. package/components/commercial/AppBarCommercial/index-faX1fxjn.js +0 -28
  119. package/components/commercial/SectionCommercial/index-Dspd2Hd7.js +0 -56
  120. package/components/commercial/TopBar/index-zACdM_C0.js +0 -232
  121. package/components/commercial/index-9P0yOdH4.js +0 -81
  122. package/components/formatters/BooleanFormatter/index-PoFZ3r_m.js +0 -44
  123. package/components/formatters/DateFormatter/index-CGcRZ8BA.js +0 -43
  124. package/components/formatters/PointsFormatter/index-C7sR8iqk.js +0 -25
  125. package/components/formatters/PriceFormatter/index-CsvRawmc.js +0 -35
  126. package/components/formatters/UncertaintyFormatter/index-B9ESVEVp.js +0 -29
  127. package/components/formatters/index-CEJ6VCMb.js +0 -109
  128. package/components/hook-form/HelperError/index-DRvAkpwm.js +0 -19
  129. package/components/hook-form/RHFAutocomplete/index-DS57m8AX.js +0 -657
  130. package/components/hook-form/RHFAutocompleteAsync/index-Bu6NYmG_.js +0 -226
  131. package/components/hook-form/RHFCheckbox/index-BsB42rRc.js +0 -132
  132. package/components/hook-form/RHFColorPicker/index-Dox0FPrV.js +0 -191
  133. package/components/hook-form/RHFDateTime/index-ef19Az1N.js +0 -190
  134. package/components/hook-form/RHFMultiCheckbox/index-BARudV1A.js +0 -34
  135. package/components/hook-form/RHFPeriod/index-DyRLTD0w.js +0 -98
  136. package/components/hook-form/RHFRadioGroup/index-pgTLVF9t.js +0 -52
  137. package/components/hook-form/RHFSelect/index-LdwRuFz-.js +0 -29
  138. package/components/hook-form/RHFTextField/index-BgsElxUF.js +0 -337
  139. package/components/hook-form/RHFUpload/index-B6m3ypzh.js +0 -253
  140. package/components/maps/components/GpsTools/index-CeLi75XZ.js +0 -1948
  141. package/components/maps/components/Map/index-D4B8Lfgv.js +0 -2545
  142. package/components/maps/index-Ci-7-FHg.js +0 -7
  143. package/components/modal/WindowBase-CkftshqR.js +0 -44
  144. package/components/modal/WindowConfirm-C5YnzF-B.js +0 -73
  145. package/components/modal/index-CydPIpKZ.js +0 -65
  146. package/components/mui_extended/Accordion/index-jF2uxSmi.js +0 -124
  147. package/components/mui_extended/Avatar/index-CHmsrmfc.js +0 -64
  148. package/components/mui_extended/Badge/index-B_BGIjkQ.js +0 -29
  149. package/components/mui_extended/BoxIcon/index-BUTJ2tKw.js +0 -22
  150. package/components/mui_extended/Breadcrumbs/index-DTS7rOZH.js +0 -86
  151. package/components/mui_extended/Button/index-CgvCim_g.js +0 -222
  152. package/components/mui_extended/CheckBox-H73kpinr.js +0 -76
  153. package/components/mui_extended/CircularProgress/index-Bnnti_G6.js +0 -8
  154. package/components/mui_extended/IconButton/classes/constants-ChY2jKkp.js +0 -4
  155. package/components/mui_extended/IconButton/classes/index-BxjJGAqZ.js +0 -45
  156. package/components/mui_extended/IconButton/index-B8lOMybH.js +0 -117
  157. package/components/mui_extended/IconButton/styledIconButton-fAsbGoFS.js +0 -7
  158. package/components/mui_extended/IconButton/types-l0sNRNKZ.js +0 -1
  159. package/components/mui_extended/LinearProgress/index-CGgW8jq2.js +0 -9
  160. package/components/mui_extended/LinkWithRoute/index-BC2miUjR.js +0 -15
  161. package/components/mui_extended/MenuActions/MenuActions-DA_aS7o5.js +0 -149
  162. package/components/mui_extended/MenuActions/constants-BwsU9chA.js +0 -10
  163. package/components/mui_extended/MenuActions/dictionary-Dj_07puT.js +0 -11
  164. package/components/mui_extended/MenuActions/slots/MenuActionsEnum-Bu-L6eWU.js +0 -13
  165. package/components/mui_extended/MenuActions/slots/MenuActionsSlots-BVp0M8fu.js +0 -47
  166. package/components/mui_extended/Pager/index-Dtk4aUiU.js +0 -257
  167. package/components/mui_extended/Popover/index-Dl1PwIS2.js +0 -153
  168. package/components/mui_extended/Stack/index-CRzpVi2a.js +0 -31
  169. package/components/mui_extended/Tab/index-DmrsMLOq.js +0 -129
  170. package/components/mui_extended/ToggleButton/index-CAnHC1N-.js +0 -18
  171. package/components/mui_extended/Tooltip/index-B8QUytCK.js +0 -42
  172. package/components/mui_extended/Typography/index-DXq1fG8k.js +0 -54
  173. package/components/mui_extended/index-l0sNRNKZ.js +0 -1
  174. package/components/popups/PopupsProvider/index-DhSxmtfJ.js +0 -172
  175. package/components/popups/PopupsViewer/constants-DuyD7aCn.js +0 -4
  176. package/components/popups/PopupsViewer/icons-BUujqqbu.js +0 -7
  177. package/components/popups/PopupsViewer/index-CMI1SK_O.js +0 -172
  178. package/components/popups/PopupsViewer/slots/index-B98CiRLa.js +0 -14
  179. package/components/popups/PopupsViewer/slots/popupsViewerSlots-DOkmuvnx.js +0 -46
  180. package/components/popups/index-l0sNRNKZ.js +0 -1
  181. package/contexts/ModalContext/index-Bp_s1qUm.js +0 -39
  182. package/contexts/RHFormContext/index-BQ0XWrpK.js +0 -78
  183. package/hocs/withToggle/index-C1_DMZD3.js +0 -14
  184. package/hooks/useFormAddEdit/index-dLVQB7hC.js +0 -90
  185. package/hooks/useFormReadyForUpdate/index-B3HygFCM.js +0 -20
  186. package/hooks/useModal/index-69rbrQ0v.js +0 -10
  187. package/hooks/useSizeContainer/index-D4hDjM1P.js +0 -37
  188. package/hooks/useStateRef/index-C3P6ZK3m.js +0 -15
  189. package/hooks/useTab/index-DYRxOmMI.js +0 -12
  190. package/react-data-grid-BfYuZ6AK.js +0 -2606
  191. package/react-draggable-DsCPdgQP.js +0 -811
  192. package/react-json-view-bhqIAaNg.js +0 -2576
  193. package/react-resizable-eBbFl2dX.js +0 -618
  194. package/react-spinners-TpKN9lZg.js +0 -123
  195. package/react-splitter-layout-C-JTsNGs.js +0 -158
  196. package/styles/DynamicFilter-CJFsIegc.js +0 -319
  197. package/styles/MenuActions-lTi-ynPM.js +0 -42
  198. package/styles/index-CqpubQQr.js +0 -1691
  199. package/test/constants_no_mock-CF-669v-.js +0 -4
  200. package/test/getNameDataTestId-BaBTWhBr.js +0 -10
  201. package/utils/index-DiMrtgIu.js +0 -502
  202. /package/components/GridLayout/subcomponents/{Griditem → GridItem}/index.d.ts +0 -0
  203. /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-BkfHXcTV.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-BkfHXcTV.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-BkfHXcTV.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-BkfHXcTV.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-BkfHXcTV.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-BkfHXcTV.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-CqpubQQr.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-C8od8D0w.js";
11
- import { I as Icon } from "../Icon/index-BJF_0F6d.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-CqpubQQr.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-CqpubQQr.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
- };