@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,89 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import { a0 as SplitLayoutRoot, a1 as SplitMaster, a2 as SplitDetail } from "../../styles/index-CqpubQQr.js";
3
- import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
4
- import { unstable_composeClasses } from "@mui/base";
5
- import clsx from "clsx";
6
- import { T as TEST_PROP_ID } from "../../test/constants_no_mock-CF-669v-.js";
7
- import { S as SplitterLayout } from "../../react-splitter-layout-C-JTsNGs.js";
8
- const componentName = "M4LSplitLayout";
9
- generateUtilityClasses(componentName, [
10
- /* elements */
11
- "root",
12
- "firstPart",
13
- "secondPart",
14
- /* states or variants of elements */
15
- "stateVertical",
16
- "stateHorizontal"
17
- ]);
18
- function getSplitLayoutUtilityClass(slot) {
19
- return generateUtilityClass(componentName, slot);
20
- }
21
- const useSplitLayoutUtilityClasses = (ownerState) => {
22
- const slots = {
23
- root: [
24
- "root",
25
- ownerState.splitPosition === "vertical" && "stateVertical",
26
- ownerState.splitPosition === "horizontal" && "stateHorizontal"
27
- ],
28
- firstPart: ["firstPart"],
29
- secondPart: ["secondPart"]
30
- };
31
- const composedClasses = unstable_composeClasses(slots, getSplitLayoutUtilityClass, {});
32
- return {
33
- ...composedClasses
34
- };
35
- };
36
- const SPLITLAYOUT_PREFIX = "M4LSplitLayout";
37
- const getNameSplitLayoutDataTestId = (KEY) => {
38
- return `${SPLITLAYOUT_PREFIX}-${KEY}`;
39
- };
40
- function SplitLayout(props) {
41
- const {
42
- splitPosition,
43
- firstPart,
44
- secondPart,
45
- secondParrtInitialSize = 50,
46
- percentage = true,
47
- className
48
- } = props;
49
- const ownerState = {
50
- splitPosition
51
- };
52
- const classes = useSplitLayoutUtilityClasses(ownerState);
53
- return /* @__PURE__ */ jsx(
54
- SplitLayoutRoot,
55
- {
56
- className: clsx(classes.root, className),
57
- ...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameSplitLayoutDataTestId("root") } : {},
58
- children: SplitterLayout ? /* @__PURE__ */ jsxs(
59
- SplitterLayout,
60
- {
61
- vertical: splitPosition === "vertical",
62
- percentage,
63
- secondaryInitialSize: secondParrtInitialSize,
64
- children: [
65
- /* @__PURE__ */ jsx(
66
- SplitMaster,
67
- {
68
- className: classes.firstPart,
69
- ...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameSplitLayoutDataTestId("firstPart") } : {},
70
- children: typeof firstPart === "function" ? firstPart() : firstPart
71
- }
72
- ),
73
- splitPosition !== "none" && /* @__PURE__ */ jsx(
74
- SplitDetail,
75
- {
76
- className: classes.secondPart,
77
- ...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameSplitLayoutDataTestId("secondPart") } : {},
78
- children: typeof secondPart === "function" ? secondPart() : secondPart
79
- }
80
- )
81
- ]
82
- }
83
- ) : null
84
- }
85
- );
86
- }
87
- export {
88
- SplitLayout as S
89
- };
@@ -1,191 +0,0 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- import { ToastContainer as ToastContainer$1, toast } from "react-toastify";
3
- import { a as getPropDataTestId } from "../../test/getNameDataTestId-BaBTWhBr.js";
4
- import "react-toastify/dist/ReactToastify.min.css";
5
- import { useState } from "react";
6
- import { useEnvironment } from "@m4l/core";
7
- import { styled } from "@mui/material/styles";
8
- import { a3 as toastStyles } from "../../styles/index-CqpubQQr.js";
9
- import { I as Icon } from "../Icon/index-BJF_0F6d.js";
10
- var ToastContainerSlots = /* @__PURE__ */ ((ToastContainerSlots2) => {
11
- ToastContainerSlots2["root"] = "root";
12
- ToastContainerSlots2["messageRoot"] = "messageRoot";
13
- ToastContainerSlots2["messageHeader"] = "messageHeader";
14
- ToastContainerSlots2["messageIconRoot"] = "messageIconRoot";
15
- ToastContainerSlots2["messageIcon"] = "messageIcon";
16
- ToastContainerSlots2["messageTitle"] = "messageTitle";
17
- ToastContainerSlots2["messageDescription"] = "messageDescription";
18
- ToastContainerSlots2["messageCloseButton"] = "messageCloseButton";
19
- ToastContainerSlots2["messageCloseButtonIcon"] = "messageCloseButtonIcon";
20
- ToastContainerSlots2["messagePinButton"] = "messagePinButton";
21
- ToastContainerSlots2["messagePinButtonIcon"] = "messagePinButtonIcon";
22
- return ToastContainerSlots2;
23
- })(ToastContainerSlots || {});
24
- const TOAST_KEY_COMPONENT = "M4LToastContainer";
25
- const DEFAULT_CLOSE_TIME = 3e4;
26
- const ICONS_PATH = "frontend/components/toast/assets/icons";
27
- const RootStyled = styled("div", {
28
- name: TOAST_KEY_COMPONENT,
29
- slot: ToastContainerSlots.root
30
- })(toastStyles?.root);
31
- const MessageRootStyled = styled("div", {
32
- name: TOAST_KEY_COMPONENT,
33
- slot: ToastContainerSlots.messageRoot
34
- })(toastStyles?.messageRoot);
35
- const MessageHeaderStyled = styled("div", {
36
- name: TOAST_KEY_COMPONENT,
37
- slot: ToastContainerSlots.messageHeader
38
- })(toastStyles?.messageHeader);
39
- const MessageIconRootStyled = styled("div", {
40
- name: TOAST_KEY_COMPONENT,
41
- slot: ToastContainerSlots.messageIconRoot
42
- })(toastStyles?.messageIconRoot);
43
- const MessageIconStyled = styled(Icon, {
44
- name: TOAST_KEY_COMPONENT,
45
- slot: ToastContainerSlots.messageIcon
46
- })(toastStyles?.messageIcon);
47
- const MessageTitleStyled = styled("strong", {
48
- name: TOAST_KEY_COMPONENT,
49
- slot: ToastContainerSlots.messageTitle
50
- })(toastStyles?.messageTitle);
51
- const MessageDescriptionStyled = styled("p", {
52
- name: TOAST_KEY_COMPONENT,
53
- slot: ToastContainerSlots.messageDescription
54
- })(toastStyles?.messageDescription);
55
- const MessageCloseButtonStyled = styled("button", {
56
- name: TOAST_KEY_COMPONENT,
57
- slot: ToastContainerSlots.messageCloseButton
58
- })(toastStyles?.messageCloseButton);
59
- const MessageCloseButtonIconStyled = styled(Icon, {
60
- name: TOAST_KEY_COMPONENT,
61
- slot: ToastContainerSlots.messageCloseButtonIcon
62
- })(toastStyles?.messageCloseButtonIcon);
63
- const MessagePinButtonStyled = styled("button", {
64
- name: TOAST_KEY_COMPONENT,
65
- slot: ToastContainerSlots.messagePinButton
66
- })(toastStyles?.messagePinButton);
67
- const MessagePinButtonIconStyled = styled(Icon, {
68
- name: TOAST_KEY_COMPONENT,
69
- slot: ToastContainerSlots.messagePinButtonIcon
70
- })(toastStyles?.messagePinButtonIcon);
71
- const ToastContainer = (props) => {
72
- const { children, fixed = true, dataTestId, ...restProps } = props;
73
- const ownerState = { fixed };
74
- return /* @__PURE__ */ jsxs(
75
- RootStyled,
76
- {
77
- ownerState,
78
- ...getPropDataTestId(dataTestId, ToastContainerSlots.root),
79
- children: [
80
- /* @__PURE__ */ jsx(
81
- ToastContainer$1,
82
- {
83
- stacked: true,
84
- icon: false,
85
- closeButton: false,
86
- autoClose: DEFAULT_CLOSE_TIME,
87
- theme: "light",
88
- ...restProps
89
- }
90
- ),
91
- children
92
- ]
93
- }
94
- );
95
- };
96
- const ICONS = {
97
- SUCCESS: "success.svg",
98
- INFO: "info.svg",
99
- WARNING: "warning.svg",
100
- ERROR: "error.svg",
101
- DEFAULT: "info.svg",
102
- CLOSE: "close.svg",
103
- PIN: "pin.svg"
104
- };
105
- const iconTypes = {
106
- default: ICONS.DEFAULT,
107
- info: ICONS.INFO,
108
- success: ICONS.SUCCESS,
109
- warning: ICONS.WARNING,
110
- error: ICONS.ERROR
111
- };
112
- const ToastMessage = (props) => {
113
- const [isPinned, setIsPinned] = useState(false);
114
- const { type, title, description, closeToast, toastId, containerId } = props;
115
- const ownerState = { type };
116
- const { host_static_assets, environment_assets } = useEnvironment();
117
- const iconToShow = iconTypes?.[type || "default"] || iconTypes.default;
118
- const iconTypePath = `${host_static_assets}/${environment_assets}/${ICONS_PATH}/${iconToShow}`;
119
- const iconClosePath = `${host_static_assets}/${environment_assets}/${ICONS_PATH}/${ICONS.CLOSE}`;
120
- const iconPinPath = `${host_static_assets}/${environment_assets}/${ICONS_PATH}/${ICONS.PIN}`;
121
- function pinToast() {
122
- if (toastId) {
123
- toast.update(toastId, { containerId, autoClose: false, closeOnClick: false });
124
- setIsPinned(true);
125
- }
126
- }
127
- return /* @__PURE__ */ jsxs(MessageRootStyled, { ownerState, children: [
128
- /* @__PURE__ */ jsxs(MessageHeaderStyled, { ownerState, children: [
129
- /* @__PURE__ */ jsx(MessageIconRootStyled, { ownerState, children: /* @__PURE__ */ jsx(MessageIconStyled, { src: iconTypePath, ownerState }) }),
130
- /* @__PURE__ */ jsx(MessageTitleStyled, { ownerState, children: title }),
131
- !isPinned && /* @__PURE__ */ jsx(
132
- MessagePinButtonStyled,
133
- {
134
- onClick: pinToast,
135
- ownerState,
136
- "aria-describedby": `${TOAST_KEY_COMPONENT}-pin`,
137
- children: /* @__PURE__ */ jsx(MessagePinButtonIconStyled, { src: iconPinPath, size: "small", ownerState })
138
- }
139
- ),
140
- /* @__PURE__ */ jsx(
141
- MessageCloseButtonStyled,
142
- {
143
- onClick: closeToast,
144
- ownerState,
145
- "aria-describedby": `${TOAST_KEY_COMPONENT}-close`,
146
- children: /* @__PURE__ */ jsx(MessageCloseButtonIconStyled, { src: iconClosePath, size: "small", ownerState })
147
- }
148
- )
149
- ] }),
150
- description && /* @__PURE__ */ jsx(MessageDescriptionStyled, { ownerState, children: description })
151
- ] });
152
- };
153
- function optionsToProps(toastProps, containerId) {
154
- return {
155
- containerId,
156
- type: toastProps?.type,
157
- toastId: toastProps?.toastId,
158
- autoClose: toastProps?.autoClose
159
- };
160
- }
161
- function triggerToast({ props, toastOptions, containerId, type = "default" }) {
162
- const currentContainerId = containerId || toastOptions?.containerId;
163
- const allProps = { ...props, ...optionsToProps(toastOptions, currentContainerId) };
164
- const toastFn = type === "default" || type === void 0 ? toast : toast[type];
165
- const id = toastFn(/* @__PURE__ */ jsx(ToastMessage, { ...allProps }), {
166
- ...toastOptions,
167
- containerId: currentContainerId
168
- });
169
- if (!toastOptions?.toastId) {
170
- toast.update(id, {
171
- containerId: currentContainerId,
172
- render: /* @__PURE__ */ jsx(ToastMessage, { ...allProps, toastId: id })
173
- });
174
- }
175
- return toastOptions?.toastId || id;
176
- }
177
- function createToaster(containerId) {
178
- const toaster = (props, toastOptions = {}) => {
179
- return triggerToast({ props, toastOptions, containerId });
180
- };
181
- toaster.success = (props, toastOptions = {}) => triggerToast({ props, toastOptions, type: "success", containerId });
182
- toaster.info = (props, toastOptions = {}) => triggerToast({ props, toastOptions, type: "info", containerId });
183
- toaster.warning = (props, toastOptions = {}) => triggerToast({ props, toastOptions, type: "warning", containerId });
184
- toaster.error = (props, toastOptions = {}) => triggerToast({ props, toastOptions, type: "error", containerId });
185
- return toaster;
186
- }
187
- export {
188
- ToastContainer as T,
189
- ToastMessage as a,
190
- createToaster as c
191
- };
@@ -1,14 +0,0 @@
1
- import { jsx, Fragment, jsxs } from "react/jsx-runtime";
2
- function WrapperComponent(props) {
3
- const { children, type = "fragment" } = props;
4
- if (type === "fragment") {
5
- return /* @__PURE__ */ jsx(Fragment, { children });
6
- }
7
- return /* @__PURE__ */ jsxs(Fragment, { children: [
8
- " ",
9
- children
10
- ] });
11
- }
12
- export {
13
- WrapperComponent as W
14
- };
@@ -1,70 +0,0 @@
1
- import { jsx, Fragment, jsxs } from "react/jsx-runtime";
2
- import { m } from "framer-motion";
3
- import { alpha } from "@mui/material/styles";
4
- import { Box } from "@mui/material";
5
- import { a4 as RootStyle } from "../../../styles/index-CqpubQQr.js";
6
- function LoadingScreen(props) {
7
- const { isDashboard, variant = "fullpage", ...other } = props;
8
- return /* @__PURE__ */ jsx(Fragment, { children: !isDashboard && /* @__PURE__ */ jsxs(RootStyle, { variant, ...other, children: [
9
- /* @__PURE__ */ jsx(
10
- m.div,
11
- {
12
- initial: { rotateY: 0 },
13
- animate: { rotateY: 360 },
14
- transition: {
15
- duration: 2,
16
- ease: "easeInOut",
17
- repeatDelay: 1,
18
- repeat: Infinity
19
- }
20
- }
21
- ),
22
- /* @__PURE__ */ jsx(
23
- Box,
24
- {
25
- component: m.div,
26
- animate: {
27
- scale: [1.2, 1, 1, 1.2, 1.2],
28
- rotate: [270, 0, 0, 270, 270],
29
- opacity: [0.25, 1, 1, 1, 0.25],
30
- borderRadius: ["25%", "25%", "50%", "50%", "25%"]
31
- },
32
- transition: { ease: "linear", duration: 3.2, repeat: Infinity },
33
- sx: {
34
- width: 50,
35
- height: 50,
36
- borderRadius: "25%",
37
- position: "absolute",
38
- border: (theme) => `solid 3px ${alpha(theme.palette.primary.dark, 0.24)}`
39
- }
40
- }
41
- ),
42
- /* @__PURE__ */ jsx(
43
- Box,
44
- {
45
- component: m.div,
46
- animate: {
47
- scale: [1, 1.2, 1.2, 1, 1],
48
- rotate: [0, 270, 270, 0, 0],
49
- opacity: [1, 0.25, 0.25, 0.25, 1],
50
- borderRadius: ["25%", "25%", "50%", "50%", "25%"]
51
- },
52
- transition: {
53
- ease: "linear",
54
- duration: 3.2,
55
- repeat: Infinity
56
- },
57
- sx: {
58
- width: 60,
59
- height: 60,
60
- borderRadius: "25%",
61
- position: "absolute",
62
- border: (theme) => `solid 8px ${alpha(theme.colorSchemes.finalTheme.palette.primary.dark, 0.24)}`
63
- }
64
- }
65
- )
66
- ] }) });
67
- }
68
- export {
69
- LoadingScreen as L
70
- };
@@ -1,34 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { m } from "framer-motion";
3
- import { Box } from "@mui/material";
4
- import { v as varContainer } from "../variants/container-Dmpr6tg5.js";
5
- function MotionContainer({ animate, action = false, children, ...other }) {
6
- if (action) {
7
- return /* @__PURE__ */ jsx(
8
- Box,
9
- {
10
- component: m.div,
11
- initial: false,
12
- animate: animate ? "animate" : "exit",
13
- variants: varContainer(),
14
- ...other,
15
- children
16
- }
17
- );
18
- }
19
- return /* @__PURE__ */ jsx(
20
- Box,
21
- {
22
- component: m.div,
23
- initial: "initial",
24
- animate: "animate",
25
- exit: "exit",
26
- variants: varContainer(),
27
- ...other,
28
- children
29
- }
30
- );
31
- }
32
- export {
33
- MotionContainer as M
34
- };
@@ -1,9 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { LazyMotion } from "framer-motion";
3
- const loadFeatures = () => import("../features-BbnE33u3.js").then((res) => res.default);
4
- function MotionLazyContainer({ children }) {
5
- return /* @__PURE__ */ jsx(LazyMotion, { strict: true, features: loadFeatures, children });
6
- }
7
- export {
8
- MotionLazyContainer as M
9
- };
@@ -1,23 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { useTheme } from "@mui/material";
3
- import { styled } from "@mui/material/styles";
4
- import { P as PropagateLoader$1 } from "../../../react-spinners-TpKN9lZg.js";
5
- const WrapperPropageteLoader = styled("div")(({ theme }) => ({
6
- right: 0,
7
- bottom: 0,
8
- zIndex: 99999,
9
- width: "100%",
10
- height: "100%",
11
- position: "fixed",
12
- display: "flex",
13
- alignItems: "center",
14
- justifyContent: "center",
15
- background: theme.vars.palette.background.default
16
- }));
17
- const PropagateLoader = () => {
18
- const { palette } = useTheme();
19
- return /* @__PURE__ */ jsx(WrapperPropageteLoader, { children: /* @__PURE__ */ jsx(PropagateLoader$1, { color: palette.primary.main }) });
20
- };
21
- export {
22
- PropagateLoader as P
23
- };
@@ -1,5 +0,0 @@
1
- import { domMax } from "framer-motion";
2
- import { domMax as domMax2 } from "framer-motion";
3
- export {
4
- domMax2 as default
5
- };
@@ -1,89 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { m } from "framer-motion";
3
- import { forwardRef, useRef } from "react";
4
- import { IconButton, Box } from "@mui/material";
5
- import { a5 as AnimatedScrollRoot } from "../../styles/index-CqpubQQr.js";
6
- const varSmall = {
7
- hover: { scale: 1.1 },
8
- tap: { scale: 0.95 }
9
- };
10
- const varMedium = {
11
- hover: { scale: 1.09 },
12
- tap: { scale: 0.97 }
13
- };
14
- const varLarge = {
15
- hover: { scale: 1.08 },
16
- tap: { scale: 0.99 }
17
- };
18
- function AnimateWrap({ size, children }) {
19
- const isSmall = size === "small";
20
- const isLarge = size === "large";
21
- return /* @__PURE__ */ jsx(
22
- Box,
23
- {
24
- component: m.div,
25
- whileTap: "tap",
26
- whileHover: "hover",
27
- variants: isSmall && varSmall || isLarge && varLarge || varMedium,
28
- sx: {
29
- display: "inline-flex"
30
- },
31
- children
32
- }
33
- );
34
- }
35
- const IconButtonAnimate = forwardRef(
36
- ({ children, size = "medium", ...other }, ref) => /* @__PURE__ */ jsx(AnimateWrap, { size, children: /* @__PURE__ */ jsx(IconButton, { size, ref, ...other, children }) })
37
- );
38
- IconButtonAnimate.displayName = "IconButtonAnimate";
39
- const AnimatedScroll = (props) => {
40
- const { children } = props;
41
- const containerRef = useRef(null);
42
- const scrollSpeed = 0.1;
43
- let animationId;
44
- const handleMouseEnter = () => {
45
- if (containerRef.current) {
46
- let scrollStep = function(timestamp) {
47
- if (!startTime) {
48
- startTime = timestamp;
49
- }
50
- currentTime = timestamp - startTime;
51
- const scrollAmount = startScrollLeft + distance * (currentTime / duration);
52
- container.scrollLeft = scrollAmount;
53
- if (currentTime < duration) {
54
- animationId = requestAnimationFrame(scrollStep);
55
- }
56
- };
57
- const container = containerRef.current;
58
- const startScrollLeft = container.scrollLeft;
59
- const endScrollLeft = container.scrollWidth;
60
- const distance = endScrollLeft - startScrollLeft;
61
- const duration = distance / scrollSpeed;
62
- let startTime;
63
- let currentTime;
64
- animationId = requestAnimationFrame(scrollStep);
65
- }
66
- };
67
- const handleMouseLeave = () => {
68
- if (animationId !== void 0) {
69
- cancelAnimationFrame(animationId);
70
- }
71
- if (containerRef.current) {
72
- containerRef.current.scrollLeft = 0;
73
- }
74
- };
75
- return /* @__PURE__ */ jsx(
76
- AnimatedScrollRoot,
77
- {
78
- className: "animated-scroll-container",
79
- ref: containerRef,
80
- onMouseEnter: handleMouseEnter,
81
- onMouseLeave: handleMouseLeave,
82
- children
83
- }
84
- );
85
- };
86
- export {
87
- AnimatedScroll as A,
88
- IconButtonAnimate as I
89
- };
@@ -1,101 +0,0 @@
1
- import { v as varTranEnter, a as varTranExit } from "./transition-B9W5SWTa.js";
2
- const varBounce = (props) => {
3
- const durationIn = props?.durationIn;
4
- const durationOut = props?.durationOut;
5
- const easeIn = props?.easeIn;
6
- const easeOut = props?.easeOut;
7
- return {
8
- // IN
9
- in: {
10
- initial: {},
11
- animate: {
12
- scale: [0.3, 1.1, 0.9, 1.03, 0.97, 1],
13
- opacity: [0, 1, 1, 1, 1, 1],
14
- transition: varTranEnter({ durationIn, easeIn })
15
- },
16
- exit: {
17
- scale: [0.9, 1.1, 0.3],
18
- opacity: [1, 1, 0]
19
- }
20
- },
21
- inUp: {
22
- initial: {},
23
- animate: {
24
- y: [720, -24, 12, -4, 0],
25
- scaleY: [4, 0.9, 0.95, 0.985, 1],
26
- opacity: [0, 1, 1, 1, 1],
27
- transition: { ...varTranEnter({ durationIn, easeIn }) }
28
- },
29
- exit: {
30
- y: [12, -24, 720],
31
- scaleY: [0.985, 0.9, 3],
32
- opacity: [1, 1, 0],
33
- transition: varTranExit({ durationOut, easeOut })
34
- }
35
- },
36
- inDown: {
37
- initial: {},
38
- animate: {
39
- y: [-720, 24, -12, 4, 0],
40
- scaleY: [4, 0.9, 0.95, 0.985, 1],
41
- opacity: [0, 1, 1, 1, 1],
42
- transition: varTranEnter({ durationIn, easeIn })
43
- },
44
- exit: {
45
- y: [-12, 24, -720],
46
- scaleY: [0.985, 0.9, 3],
47
- opacity: [1, 1, 0],
48
- transition: varTranExit({ durationOut, easeOut })
49
- }
50
- },
51
- inLeft: {
52
- initial: {},
53
- animate: {
54
- x: [-720, 24, -12, 4, 0],
55
- scaleX: [3, 1, 0.98, 0.995, 1],
56
- opacity: [0, 1, 1, 1, 1],
57
- transition: varTranEnter({ durationIn, easeIn })
58
- },
59
- exit: {
60
- x: [0, 24, -720],
61
- scaleX: [1, 0.9, 2],
62
- opacity: [1, 1, 0],
63
- transition: varTranExit({ durationOut, easeOut })
64
- }
65
- },
66
- inRight: {
67
- initial: {},
68
- animate: {
69
- x: [720, -24, 12, -4, 0],
70
- scaleX: [3, 1, 0.98, 0.995, 1],
71
- opacity: [0, 1, 1, 1, 1],
72
- transition: varTranEnter({ durationIn, easeIn })
73
- },
74
- exit: {
75
- x: [0, -24, 720],
76
- scaleX: [1, 0.9, 2],
77
- opacity: [1, 1, 0],
78
- transition: varTranExit({ durationOut, easeOut })
79
- }
80
- },
81
- // OUT
82
- out: {
83
- animate: { scale: [0.9, 1.1, 0.3], opacity: [1, 1, 0] }
84
- },
85
- outUp: {
86
- animate: { y: [-12, 24, -720], scaleY: [0.985, 0.9, 3], opacity: [1, 1, 0] }
87
- },
88
- outDown: {
89
- animate: { y: [12, -24, 720], scaleY: [0.985, 0.9, 3], opacity: [1, 1, 0] }
90
- },
91
- outLeft: {
92
- animate: { x: [0, 24, -720], scaleX: [1, 0.9, 2], opacity: [1, 1, 0] }
93
- },
94
- outRight: {
95
- animate: { x: [0, -24, 720], scaleX: [1, 0.9, 2], opacity: [1, 1, 0] }
96
- }
97
- };
98
- };
99
- export {
100
- varBounce as v
101
- };
@@ -1,22 +0,0 @@
1
- const varContainer = (props) => {
2
- const staggerIn = props?.staggerIn || 0.05;
3
- const delayIn = props?.staggerIn || 0.05;
4
- const staggerOut = props?.staggerIn || 0.05;
5
- return {
6
- animate: {
7
- transition: {
8
- staggerChildren: staggerIn,
9
- delayChildren: delayIn
10
- }
11
- },
12
- exit: {
13
- transition: {
14
- staggerChildren: staggerOut,
15
- staggerDirection: -1
16
- }
17
- }
18
- };
19
- };
20
- export {
21
- varContainer as v
22
- };