component-shared 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (283) hide show
  1. package/Components/Charts/AreaChart.d.ts +19 -0
  2. package/Components/Charts/AreaChart.js +59 -0
  3. package/Components/Charts/AreaChart.js.map +1 -0
  4. package/Components/Charts/BarChart.d.ts +20 -0
  5. package/Components/Charts/BarChart.js +81 -0
  6. package/Components/Charts/BarChart.js.map +1 -0
  7. package/Components/Charts/DoughnutChart.d.ts +12 -0
  8. package/Components/Charts/DoughnutChart.js +81 -0
  9. package/Components/Charts/DoughnutChart.js.map +1 -0
  10. package/Components/Charts/HorizontalBarChart.d.ts +38 -0
  11. package/Components/Charts/HorizontalBarChart.js +83 -0
  12. package/Components/Charts/HorizontalBarChart.js.map +1 -0
  13. package/Components/Charts/LineChart.d.ts +21 -0
  14. package/Components/Charts/LineChart.js +133 -0
  15. package/Components/Charts/LineChart.js.map +1 -0
  16. package/Components/Charts/PieChart.d.ts +20 -0
  17. package/Components/Charts/PieChart.js +123 -0
  18. package/Components/Charts/PieChart.js.map +1 -0
  19. package/Components/Charts/index.d.ts +5 -0
  20. package/Components/Charts/index.js +6 -0
  21. package/Components/Charts/index.js.map +1 -0
  22. package/Components/Charts/type.d.ts +6 -0
  23. package/Components/Charts/type.js +2 -0
  24. package/Components/Charts/type.js.map +1 -0
  25. package/Components/CopyToClipboard/index.d.ts +23 -0
  26. package/Components/CopyToClipboard/index.js +54 -0
  27. package/Components/CopyToClipboard/index.js.map +1 -0
  28. package/Components/CopyToClipboard/indexv2.d.ts +30 -0
  29. package/Components/CopyToClipboard/indexv2.js +63 -0
  30. package/Components/CopyToClipboard/indexv2.js.map +1 -0
  31. package/Components/DropZone/components/DropzoneArea.d.ts +31 -0
  32. package/Components/DropZone/components/DropzoneArea.js +221 -0
  33. package/Components/DropZone/components/DropzoneArea.js.map +1 -0
  34. package/Components/DropZone/components/DropzoneAreaBase.d.ts +4 -0
  35. package/Components/DropZone/components/DropzoneAreaBase.js +555 -0
  36. package/Components/DropZone/components/DropzoneAreaBase.js.map +1 -0
  37. package/Components/DropZone/components/DropzoneDialog.d.ts +33 -0
  38. package/Components/DropZone/components/DropzoneDialog.js +222 -0
  39. package/Components/DropZone/components/DropzoneDialog.js.map +1 -0
  40. package/Components/DropZone/components/DropzoneDialogBase.d.ts +27 -0
  41. package/Components/DropZone/components/DropzoneDialogBase.js +152 -0
  42. package/Components/DropZone/components/DropzoneDialogBase.js.map +1 -0
  43. package/Components/DropZone/components/PreviewList.d.ts +3 -0
  44. package/Components/DropZone/components/PreviewList.js +132 -0
  45. package/Components/DropZone/components/PreviewList.js.map +1 -0
  46. package/Components/DropZone/components/SnackbarContentWrapper.d.ts +3 -0
  47. package/Components/DropZone/components/SnackbarContentWrapper.js +94 -0
  48. package/Components/DropZone/components/SnackbarContentWrapper.js.map +1 -0
  49. package/Components/DropZone/helpers.d.ts +5 -0
  50. package/Components/DropZone/helpers.js +64 -0
  51. package/Components/DropZone/helpers.js.map +1 -0
  52. package/Components/DropZone/index.d.ts +120 -0
  53. package/Components/EditAvatar/index.d.ts +26 -0
  54. package/Components/EditAvatar/index.js +137 -0
  55. package/Components/EditAvatar/index.js.map +1 -0
  56. package/Components/FlexInfiniteScroll/index.d.ts +26 -0
  57. package/Components/FlexInfiniteScroll/index.js +82 -0
  58. package/Components/FlexInfiniteScroll/index.js.map +1 -0
  59. package/Components/Helper/LazySpinner.d.ts +5 -0
  60. package/Components/Helper/LazySpinner.js +33 -0
  61. package/Components/Helper/LazySpinner.js.map +1 -0
  62. package/Components/Helper/RoleKey.d.ts +9 -0
  63. package/Components/Helper/RoleKey.js +15 -0
  64. package/Components/Helper/RoleKey.js.map +1 -0
  65. package/Components/Helper/index.d.ts +41 -0
  66. package/Components/Helper/index.js +247 -0
  67. package/Components/Helper/index.js.map +1 -0
  68. package/Components/HocLazyView/index.d.ts +51 -0
  69. package/Components/HocLazyView/index.js +123 -0
  70. package/Components/HocLazyView/index.js.map +1 -0
  71. package/Components/HtmlTooltip/index.d.ts +3 -0
  72. package/Components/HtmlTooltip/index.js +28 -0
  73. package/Components/HtmlTooltip/index.js.map +1 -0
  74. package/Components/Icons/index.d.ts +6 -0
  75. package/Components/Icons/index.js +52 -0
  76. package/Components/Icons/index.js.map +1 -0
  77. package/Components/LazySpinner.css +6 -0
  78. package/Components/MapLayout/index.d.ts +33 -0
  79. package/Components/MapLayout/index.js +80 -0
  80. package/Components/MapLayout/index.js.map +1 -0
  81. package/Components/MessageBox/index.d.ts +28 -0
  82. package/Components/MessageBox/index.js +93 -0
  83. package/Components/MessageBox/index.js.map +1 -0
  84. package/Components/Models/index.d.ts +641 -0
  85. package/Components/Models/index.js +87 -0
  86. package/Components/Models/index.js.map +1 -0
  87. package/Components/Redux/core/CRUDSlice.d.ts +20 -0
  88. package/Components/Redux/core/CRUDSlice.js +62 -0
  89. package/Components/Redux/core/CRUDSlice.js.map +1 -0
  90. package/Components/Redux/core/type.d.ts +11 -0
  91. package/Components/Redux/core/type.js +9 -0
  92. package/Components/Redux/core/type.js.map +1 -0
  93. package/Components/SkeletonLazyView/index.d.ts +9 -0
  94. package/Components/SkeletonLazyView/index.js +38 -0
  95. package/Components/SkeletonLazyView/index.js.map +1 -0
  96. package/Components/SkeletonService/index.d.ts +15 -0
  97. package/Components/SkeletonService/index.js +57 -0
  98. package/Components/SkeletonService/index.js.map +1 -0
  99. package/Components/SubComponent/index.d.ts +151 -0
  100. package/Components/SubComponent/index.js +883 -0
  101. package/Components/SubComponent/index.js.map +1 -0
  102. package/Components/SubComponent/v2/index.d.ts +20 -0
  103. package/Components/SubComponent/v2/index.js +58 -0
  104. package/Components/SubComponent/v2/index.js.map +1 -0
  105. package/Components/SubUserInputModels/ContactInfoForm/index.d.ts +11 -0
  106. package/Components/SubUserInputModels/ContactInfoForm/index.js +130 -0
  107. package/Components/SubUserInputModels/ContactInfoForm/index.js.map +1 -0
  108. package/Components/SubUserInputModels/index.d.ts +59 -0
  109. package/Components/SubUserInputModels/index.js +928 -0
  110. package/Components/SubUserInputModels/index.js.map +1 -0
  111. package/Components/SwitchComponent/index.d.ts +21 -0
  112. package/Components/SwitchComponent/index.js +71 -0
  113. package/Components/SwitchComponent/index.js.map +1 -0
  114. package/Components/TemplateModal/index.d.ts +29 -0
  115. package/Components/TemplateModal/index.js +94 -0
  116. package/Components/TemplateModal/index.js.map +1 -0
  117. package/Components/TemplateTable/FormTest/index.d.ts +4 -0
  118. package/Components/TemplateTable/FormTest/index.js +22 -0
  119. package/Components/TemplateTable/FormTest/index.js.map +1 -0
  120. package/Components/TemplateTable/InputFormBase/index.d.ts +23 -0
  121. package/Components/TemplateTable/InputFormBase/index.js +111 -0
  122. package/Components/TemplateTable/InputFormBase/index.js.map +1 -0
  123. package/Components/TemplateTable/InputFormModal/index.d.ts +22 -0
  124. package/Components/TemplateTable/InputFormModal/index.js +103 -0
  125. package/Components/TemplateTable/InputFormModal/index.js.map +1 -0
  126. package/Components/TemplateTable/ItemRowMenu/index.d.ts +13 -0
  127. package/Components/TemplateTable/ItemRowMenu/index.js +49 -0
  128. package/Components/TemplateTable/ItemRowMenu/index.js.map +1 -0
  129. package/Components/TemplateTable/PanelAction/index.d.ts +11 -0
  130. package/Components/TemplateTable/PanelAction/index.js +51 -0
  131. package/Components/TemplateTable/PanelAction/index.js.map +1 -0
  132. package/Components/TemplateTable/TableContext/index.d.ts +1 -0
  133. package/Components/TemplateTable/TableContext/index.js +2 -0
  134. package/Components/TemplateTable/TableContext/index.js.map +1 -0
  135. package/Components/TemplateTable/helper.d.ts +3 -0
  136. package/Components/TemplateTable/helper.js +20 -0
  137. package/Components/TemplateTable/helper.js.map +1 -0
  138. package/Components/TemplateTable/index.d.ts +49 -0
  139. package/Components/TemplateTable/index.js +208 -0
  140. package/Components/TemplateTable/index.js.map +1 -0
  141. package/Components/UploadLayout/ProgressItem.d.ts +27 -0
  142. package/Components/UploadLayout/ProgressItem.js +210 -0
  143. package/Components/UploadLayout/ProgressItem.js.map +1 -0
  144. package/Components/UploadLayout/UploadArea.d.ts +9 -0
  145. package/Components/UploadLayout/UploadArea.js +58 -0
  146. package/Components/UploadLayout/UploadArea.js.map +1 -0
  147. package/Components/UploadLayout/UploadMonitor.d.ts +42 -0
  148. package/Components/UploadLayout/UploadMonitor.js +259 -0
  149. package/Components/UploadLayout/UploadMonitor.js.map +1 -0
  150. package/Components/UploadLayout/UploadPannel.d.ts +4 -0
  151. package/Components/UploadLayout/UploadPannel.js +20 -0
  152. package/Components/UploadLayout/UploadPannel.js.map +1 -0
  153. package/Components/UploadLayout/UploadStatus.d.ts +21 -0
  154. package/Components/UploadLayout/UploadStatus.js +184 -0
  155. package/Components/UploadLayout/UploadStatus.js.map +1 -0
  156. package/Components/UploadLayout/index.d.ts +69 -0
  157. package/Components/UploadLayout/index.js +265 -0
  158. package/Components/UploadLayout/index.js.map +1 -0
  159. package/Components/UploadLayout/types.d.ts +10 -0
  160. package/Components/UploadLayout/types.js +2 -0
  161. package/Components/UploadLayout/types.js.map +1 -0
  162. package/Components/Views/Billing/BillingForm/index.d.ts +16 -0
  163. package/Components/Views/Billing/BillingForm/index.js +49 -0
  164. package/Components/Views/Billing/BillingForm/index.js.map +1 -0
  165. package/Components/Views/Billing/ItemBillingRowMenu/index.d.ts +23 -0
  166. package/Components/Views/Billing/ItemBillingRowMenu/index.js +153 -0
  167. package/Components/Views/Billing/ItemBillingRowMenu/index.js.map +1 -0
  168. package/Components/Views/Billing/MenuMore/index.d.ts +6 -0
  169. package/Components/Views/Billing/MenuMore/index.js +89 -0
  170. package/Components/Views/Billing/MenuMore/index.js.map +1 -0
  171. package/Components/Views/Billing/SubBillingFormComponent/index.d.ts +14 -0
  172. package/Components/Views/Billing/SubBillingFormComponent/index.js +306 -0
  173. package/Components/Views/Billing/SubBillingFormComponent/index.js.map +1 -0
  174. package/Components/Views/BillingDetail/BillingDetailForm/index.d.ts +16 -0
  175. package/Components/Views/BillingDetail/BillingDetailForm/index.js +49 -0
  176. package/Components/Views/BillingDetail/BillingDetailForm/index.js.map +1 -0
  177. package/Components/Views/BillingDetail/SubComponent/index.d.ts +10 -0
  178. package/Components/Views/BillingDetail/SubComponent/index.js +152 -0
  179. package/Components/Views/BillingDetail/SubComponent/index.js.map +1 -0
  180. package/Components/Views/DashBoard/Common/index.d.ts +18 -0
  181. package/Components/Views/DashBoard/Common/index.js +55 -0
  182. package/Components/Views/DashBoard/Common/index.js.map +1 -0
  183. package/Components/Views/DashBoard/DeliveryInfo/index.d.ts +17 -0
  184. package/Components/Views/DashBoard/DeliveryInfo/index.js +92 -0
  185. package/Components/Views/DashBoard/DeliveryInfo/index.js.map +1 -0
  186. package/Components/Views/DashBoard/OverViewInfo/index.d.ts +29 -0
  187. package/Components/Views/DashBoard/OverViewInfo/index.js +237 -0
  188. package/Components/Views/DashBoard/OverViewInfo/index.js.map +1 -0
  189. package/Components/Views/DashBoard/PanelIntro/index.d.ts +4 -0
  190. package/Components/Views/DashBoard/PanelIntro/index.js +76 -0
  191. package/Components/Views/DashBoard/PanelIntro/index.js.map +1 -0
  192. package/Components/Views/DashBoard/SummaryPanel/index.d.ts +20 -0
  193. package/Components/Views/DashBoard/SummaryPanel/index.js +229 -0
  194. package/Components/Views/DashBoard/SummaryPanel/index.js.map +1 -0
  195. package/Components/Views/DashBoard/TopChannel/index.d.ts +13 -0
  196. package/Components/Views/DashBoard/TopChannel/index.js +89 -0
  197. package/Components/Views/DashBoard/TopChannel/index.js.map +1 -0
  198. package/Components/Views/DashBoard/TopViewTable/index.d.ts +12 -0
  199. package/Components/Views/DashBoard/TopViewTable/index.js +79 -0
  200. package/Components/Views/DashBoard/TopViewTable/index.js.map +1 -0
  201. package/Components/Views/DashBoard/type.d.ts +9 -0
  202. package/Components/Views/DashBoard/type.js +2 -0
  203. package/Components/Views/DashBoard/type.js.map +1 -0
  204. package/Components/Views/Helper/index.d.ts +2 -0
  205. package/Components/Views/Helper/index.js +10 -0
  206. package/Components/Views/Helper/index.js.map +1 -0
  207. package/Components/YoutubeImage/index.d.ts +45 -0
  208. package/Components/YoutubeImage/index.js +52 -0
  209. package/Components/YoutubeImage/index.js.map +1 -0
  210. package/Components/excel-icon-disabled.svg +16 -0
  211. package/Components/excel-icon.svg +9 -0
  212. package/Components/index.css +0 -0
  213. package/Components/index.d.ts +120 -0
  214. package/ComponentsV2/GlobalModal/index.d.ts +37 -0
  215. package/ComponentsV2/GlobalModal/index.js +100 -0
  216. package/ComponentsV2/GlobalModal/index.js.map +1 -0
  217. package/ComponentsV2/HeightEqualWidth/index.d.ts +8 -0
  218. package/ComponentsV2/HeightEqualWidth/index.js +41 -0
  219. package/ComponentsV2/HeightEqualWidth/index.js.map +1 -0
  220. package/ComponentsV2/LazyView/index.d.ts +6 -0
  221. package/ComponentsV2/LazyView/index.js +30 -0
  222. package/ComponentsV2/LazyView/index.js.map +1 -0
  223. package/ComponentsV2/LoadingAnimation/LoadingSquare.d.ts +3 -0
  224. package/ComponentsV2/LoadingAnimation/LoadingSquare.js +203 -0
  225. package/ComponentsV2/LoadingAnimation/LoadingSquare.js.map +1 -0
  226. package/ComponentsV2/LoadingAnimation/index.d.ts +9 -0
  227. package/ComponentsV2/LoadingAnimation/index.js +25 -0
  228. package/ComponentsV2/LoadingAnimation/index.js.map +1 -0
  229. package/ComponentsV2/TableTemplate/CRUDPannel.d.ts +22 -0
  230. package/ComponentsV2/TableTemplate/CRUDPannel.js +199 -0
  231. package/ComponentsV2/TableTemplate/CRUDPannel.js.map +1 -0
  232. package/ComponentsV2/TableTemplate/CreateTableTemplate.d.ts +60 -0
  233. package/ComponentsV2/TableTemplate/CreateTableTemplate.js +330 -0
  234. package/ComponentsV2/TableTemplate/CreateTableTemplate.js.map +1 -0
  235. package/ComponentsV2/TableTemplate/CustomGridFilterPanel.d.ts +6 -0
  236. package/ComponentsV2/TableTemplate/CustomGridFilterPanel.js +71 -0
  237. package/ComponentsV2/TableTemplate/CustomGridFilterPanel.js.map +1 -0
  238. package/ComponentsV2/TableTemplate/CustomerGridToolbar.d.ts +2 -0
  239. package/ComponentsV2/TableTemplate/CustomerGridToolbar.js +45 -0
  240. package/ComponentsV2/TableTemplate/CustomerGridToolbar.js.map +1 -0
  241. package/ComponentsV2/TableTemplate/ItemRowMenu/index.d.ts +14 -0
  242. package/ComponentsV2/TableTemplate/ItemRowMenu/index.js +49 -0
  243. package/ComponentsV2/TableTemplate/ItemRowMenu/index.js.map +1 -0
  244. package/ComponentsV2/TableTemplate/MapOperators.d.ts +5 -0
  245. package/ComponentsV2/TableTemplate/MapOperators.js +49 -0
  246. package/ComponentsV2/TableTemplate/MapOperators.js.map +1 -0
  247. package/ComponentsV2/TableTemplate/NoRowsOverlay.d.ts +5 -0
  248. package/ComponentsV2/TableTemplate/NoRowsOverlay.js +39 -0
  249. package/ComponentsV2/TableTemplate/NoRowsOverlay.js.map +1 -0
  250. package/ComponentsV2/TableTemplate/TableConverter.d.ts +33 -0
  251. package/ComponentsV2/TableTemplate/TableConverter.js +112 -0
  252. package/ComponentsV2/TableTemplate/TableConverter.js.map +1 -0
  253. package/ComponentsV2/TableTemplate/TableFormatter.d.ts +10 -0
  254. package/ComponentsV2/TableTemplate/TableFormatter.js +122 -0
  255. package/ComponentsV2/TableTemplate/TableFormatter.js.map +1 -0
  256. package/ComponentsV2/TableTemplate/TableTemplateContext.d.ts +16 -0
  257. package/ComponentsV2/TableTemplate/TableTemplateContext.js +6 -0
  258. package/ComponentsV2/TableTemplate/TableTemplateContext.js.map +1 -0
  259. package/ComponentsV2/TableTemplate/index.d.ts +14 -0
  260. package/ComponentsV2/TableTemplate/index.js +9 -0
  261. package/ComponentsV2/TableTemplate/index.js.map +1 -0
  262. package/ComponentsV2/TableTemplate/type.d.ts +59 -0
  263. package/ComponentsV2/TableTemplate/type.js +14 -0
  264. package/ComponentsV2/TableTemplate/type.js.map +1 -0
  265. package/ComponentsV2/index.css +4 -0
  266. package/ComponentsV2/index.d.ts +4 -0
  267. package/ComponentsV2/index.js +6 -0
  268. package/ComponentsV2/index.js.map +1 -0
  269. package/Services/Getway/RequestHelper.d.ts +2 -0
  270. package/Services/Getway/RequestHelper.js +51 -0
  271. package/Services/Getway/RequestHelper.js.map +1 -0
  272. package/Services/Getway/index.d.ts +3 -0
  273. package/Services/Getway/index.js +14 -0
  274. package/Services/Getway/index.js.map +1 -0
  275. package/Services/ServiceBase.d.ts +32 -0
  276. package/Services/ServiceBase.js +523 -0
  277. package/Services/ServiceBase.js.map +1 -0
  278. package/_virtual/_rollupPluginBabelHelpers.js +393 -0
  279. package/_virtual/_rollupPluginBabelHelpers.js.map +1 -0
  280. package/index.css +2 -0
  281. package/index.css.map +1 -0
  282. package/package.json +118 -0
  283. package/types/clipboard-copy.d.ts +6 -0
@@ -0,0 +1,52 @@
1
+ import { objectSpread2 as _objectSpread2 } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
+ import { jsx, jsxs } from 'react/jsx-runtime';
3
+ import { SvgIcon } from '@mui/material';
4
+
5
+ function ContractIcon(props) {
6
+ return jsx(SvgIcon, _objectSpread2(_objectSpread2({
7
+ color: "info"
8
+ }, props), {}, {
9
+ viewBox: "0 0 24 24",
10
+ children: jsx("path", {
11
+ d: "M19.7 12.9L14 18.6H11.7V16.3L17.4 10.6L19.7 12.9M23.1 12.1C23.1 12.4 22.8 12.7 22.5 13L20 15.5L19.1 14.6L21.7 12L21.1 11.4L20.4 12.1L18.1 9.8L20.3 7.7C20.5 7.5 20.9 7.5 21.2 7.7L22.6 9.1C22.8 9.3 22.8 9.7 22.6 10C22.4 10.2 22.2 10.4 22.2 10.6C22.2 10.8 22.4 11 22.6 11.2C22.9 11.5 23.2 11.8 23.1 12.1M3 20V4H10V9H15V10.5L17 8.5V8L11 2H3C1.9 2 1 2.9 1 4V20C1 21.1 1.9 22 3 22H15C16.1 22 17 21.1 17 20H3M11 17.1C10.8 17.1 10.6 17.2 10.5 17.2L10 15H8.5L6.4 16.7L7 14H5.5L4.5 19H6L8.9 16.4L9.5 18.7H10.5L11 18.6V17.1Z"
12
+ })
13
+ }));
14
+ }
15
+ function EditFileIcon(props) {
16
+ return jsx(SvgIcon, _objectSpread2(_objectSpread2({}, props), {}, {
17
+ viewBox: "0 0 24 24",
18
+ children: jsx("path", {
19
+ d: "M10 20H6V4H13V9H18V12.1L20 10.1V8L14 2H6C4.9 2 4 2.9 4 4V20C4 21.1 4.9 22 6 22H10V20M20.2 13C20.3 13 20.5 13.1 20.6 13.2L21.9 14.5C22.1 14.7 22.1 15.1 21.9 15.3L20.9 16.3L18.8 14.2L19.8 13.2C19.9 13.1 20 13 20.2 13M20.2 16.9L14.1 23H12V20.9L18.1 14.8L20.2 16.9Z"
20
+ })
21
+ }));
22
+ }
23
+ function FolderMusicUploadIcon(props) {
24
+ return jsxs(SvgIcon, _objectSpread2(_objectSpread2({}, props), {}, {
25
+ width: "49",
26
+ height: "29",
27
+ viewBox: "0 0 49 29",
28
+ children: [jsx("path", {
29
+ d: "M49 6V10.5H40.75V18.165C37.99 18.795 35.89 21.135 35.56 24H22C20.35 24 19 22.665 19 21V3C19 1.335 20.335 0 22 0H31L34 3H46C47.65 3 49 4.335 49 6ZM43.75 13.5V21.315C43.285 21.105 42.79 21 42.25 21C40.18 21 38.5 22.68 38.5 24.75C38.5 26.82 40.18 28.5 42.25 28.5C44.32 28.5 46 26.82 46 24.75V16.5H49V13.5H43.75Z",
30
+ fill: "#1976D2"
31
+ }), jsx("path", {
32
+ d: "M0 4C0 1.79086 1.79086 0 4 0H29V24H4C1.79086 24 0 22.2091 0 20V4Z",
33
+ fill: "#1976D2"
34
+ }), jsx("path", {
35
+ d: "M13.5 18C12.2564 18 11.1955 17.5748 10.3173 16.7244C9.43909 15.8685 9 14.8258 9 13.5962C9 12.54 9.31909 11.5975 9.95727 10.7688C10.6009 9.94 11.4409 9.41187 12.4773 9.18437C12.8209 7.93854 13.5027 6.93104 14.5227 6.16187C15.5482 5.38729 16.7073 5 18 5C19.5982 5 20.9509 5.5525 22.0582 6.6575C23.1709 7.75708 23.7273 9.10042 23.7273 10.6875C24.6709 10.7958 25.4509 11.2021 26.0673 11.9062C26.6891 12.5996 27 13.4121 27 14.3438C27 15.3621 26.6427 16.226 25.9282 16.9356C25.2136 17.6452 24.3436 18 23.3182 18H18.8182C18.3709 18 17.9864 17.8402 17.6645 17.5206C17.3427 17.2065 17.1818 16.8246 17.1818 16.375V12.1906L15.8727 13.45L14.7273 12.3125L18 9.0625L21.2727 12.3125L20.1273 13.45L18.8182 12.1906V16.375H23.3182C23.8909 16.375 24.3736 16.1773 24.7664 15.7819C25.1645 15.3919 25.3636 14.9125 25.3636 14.3438C25.3636 13.775 25.1645 13.2956 24.7664 12.9056C24.3736 12.5102 23.8909 12.3125 23.3182 12.3125H22.0909V10.6875C22.0909 9.56625 21.6927 8.6075 20.8964 7.81125C20.1 7.02042 19.1345 6.625 18 6.625C16.8709 6.625 15.9055 7.02042 15.1036 7.81125C14.3073 8.6075 13.9091 9.56625 13.9091 10.6875H13.5C12.7091 10.6875 12.0355 10.9665 11.4791 11.5244C10.9173 12.0769 10.6364 12.7458 10.6364 13.5312C10.6364 14.3167 10.9173 14.9938 11.4791 15.5625C12.0355 16.1042 12.7091 16.375 13.5 16.375H15.5455V18",
36
+ fill: "white"
37
+ })]
38
+ }));
39
+ }
40
+ function RouteNoteIcon(props) {
41
+ return jsxs(SvgIcon, _objectSpread2(_objectSpread2({}, props), {}, {
42
+ viewBox: "0 0 60 60",
43
+ children: [jsx("path", {
44
+ d: "M36.114.664C34.724.362 33.336.242 31.886 0h-3.744c-1.57.242-3.14.423-4.71.725C11.716 3.26 2.234 13.285.422 25.06.243 26.087.122 27.113 0 28.14v3.744c.242 1.51.423 3.019.725 4.468C3.32 48.43 12.984 57.548 25.183 59.601c14.675 2.415 28.987-6.34 33.396-20.471C63.954 22.1 53.567 4.348 36.114.664zm-6.1 55.434c-14.433 0-26.089-11.654-26.089-26.086 0-14.432 11.716-26.147 26.15-26.087 14.373 0 26.028 11.715 26.028 26.087 0 14.371-11.655 26.086-26.089 26.086z"
45
+ }), jsx("path", {
46
+ d: "M37.34 41.587c-2.673.363-6.237-2.118-7.306-5.022.179-.06.357-.121.476-.182 5.7-2.238 8.967-8.047 7.898-14.097C37.339 16.296 32.232 12 26.174 12H14v4.114h.89c3.861 0 7.721-.06 11.522 0 4.395.06 7.898 3.63 8.077 8.047.178 4.417-3.03 8.229-7.424 8.713-.594.06-1.188.06-1.722.121-.356 1.755.356 4.72 1.722 6.837 2.376 3.812 5.82 5.748 10.333 6.05V48c2.554-1.452 5.048-2.783 7.602-4.235-2.613-1.452-5.048-2.844-7.66-4.236v2.058z"
47
+ })]
48
+ }));
49
+ }
50
+
51
+ export { ContractIcon, EditFileIcon, FolderMusicUploadIcon, RouteNoteIcon };
52
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/Components/Icons/index.tsx"],"sourcesContent":["import { Box, SvgIcon, SvgIconProps, SxProps, Theme } from '@mui/material'\r\nimport React, { FC } from 'react'\r\n\r\nexport function ContractIcon(props: SvgIconProps) {\r\n return (\r\n <SvgIcon color=\"info\" {...props} viewBox=\"0 0 24 24\">\r\n {/* tslint:disable-next-line: max-line-length */}\r\n <path d=\"M19.7 12.9L14 18.6H11.7V16.3L17.4 10.6L19.7 12.9M23.1 12.1C23.1 12.4 22.8 12.7 22.5 13L20 15.5L19.1 14.6L21.7 12L21.1 11.4L20.4 12.1L18.1 9.8L20.3 7.7C20.5 7.5 20.9 7.5 21.2 7.7L22.6 9.1C22.8 9.3 22.8 9.7 22.6 10C22.4 10.2 22.2 10.4 22.2 10.6C22.2 10.8 22.4 11 22.6 11.2C22.9 11.5 23.2 11.8 23.1 12.1M3 20V4H10V9H15V10.5L17 8.5V8L11 2H3C1.9 2 1 2.9 1 4V20C1 21.1 1.9 22 3 22H15C16.1 22 17 21.1 17 20H3M11 17.1C10.8 17.1 10.6 17.2 10.5 17.2L10 15H8.5L6.4 16.7L7 14H5.5L4.5 19H6L8.9 16.4L9.5 18.7H10.5L11 18.6V17.1Z\" />\r\n </SvgIcon>\r\n )\r\n}\r\n\r\nexport function EditFileIcon(props: SvgIconProps) {\r\n return (\r\n <SvgIcon {...props} viewBox=\"0 0 24 24\">\r\n {/* tslint:disable-next-line: max-line-length */}\r\n <path d=\"M10 20H6V4H13V9H18V12.1L20 10.1V8L14 2H6C4.9 2 4 2.9 4 4V20C4 21.1 4.9 22 6 22H10V20M20.2 13C20.3 13 20.5 13.1 20.6 13.2L21.9 14.5C22.1 14.7 22.1 15.1 21.9 15.3L20.9 16.3L18.8 14.2L19.8 13.2C19.9 13.1 20 13 20.2 13M20.2 16.9L14.1 23H12V20.9L18.1 14.8L20.2 16.9Z\" />\r\n </SvgIcon>\r\n )\r\n}\r\n\r\nexport function FolderMusicUploadIcon(props: SvgIconProps) {\r\n return (\r\n <SvgIcon {...props} width=\"49\" height=\"29\" viewBox=\"0 0 49 29\">\r\n {/* tslint:disable-next-line: max-line-length */}\r\n <path\r\n d=\"M49 6V10.5H40.75V18.165C37.99 18.795 35.89 21.135 35.56 24H22C20.35 24 19 22.665 19 21V3C19 1.335 20.335 0 22 0H31L34 3H46C47.65 3 49 4.335 49 6ZM43.75 13.5V21.315C43.285 21.105 42.79 21 42.25 21C40.18 21 38.5 22.68 38.5 24.75C38.5 26.82 40.18 28.5 42.25 28.5C44.32 28.5 46 26.82 46 24.75V16.5H49V13.5H43.75Z\"\r\n fill=\"#1976D2\"\r\n />\r\n <path d=\"M0 4C0 1.79086 1.79086 0 4 0H29V24H4C1.79086 24 0 22.2091 0 20V4Z\" fill=\"#1976D2\" />\r\n <path\r\n d=\"M13.5 18C12.2564 18 11.1955 17.5748 10.3173 16.7244C9.43909 15.8685 9 14.8258 9 13.5962C9 12.54 9.31909 11.5975 9.95727 10.7688C10.6009 9.94 11.4409 9.41187 12.4773 9.18437C12.8209 7.93854 13.5027 6.93104 14.5227 6.16187C15.5482 5.38729 16.7073 5 18 5C19.5982 5 20.9509 5.5525 22.0582 6.6575C23.1709 7.75708 23.7273 9.10042 23.7273 10.6875C24.6709 10.7958 25.4509 11.2021 26.0673 11.9062C26.6891 12.5996 27 13.4121 27 14.3438C27 15.3621 26.6427 16.226 25.9282 16.9356C25.2136 17.6452 24.3436 18 23.3182 18H18.8182C18.3709 18 17.9864 17.8402 17.6645 17.5206C17.3427 17.2065 17.1818 16.8246 17.1818 16.375V12.1906L15.8727 13.45L14.7273 12.3125L18 9.0625L21.2727 12.3125L20.1273 13.45L18.8182 12.1906V16.375H23.3182C23.8909 16.375 24.3736 16.1773 24.7664 15.7819C25.1645 15.3919 25.3636 14.9125 25.3636 14.3438C25.3636 13.775 25.1645 13.2956 24.7664 12.9056C24.3736 12.5102 23.8909 12.3125 23.3182 12.3125H22.0909V10.6875C22.0909 9.56625 21.6927 8.6075 20.8964 7.81125C20.1 7.02042 19.1345 6.625 18 6.625C16.8709 6.625 15.9055 7.02042 15.1036 7.81125C14.3073 8.6075 13.9091 9.56625 13.9091 10.6875H13.5C12.7091 10.6875 12.0355 10.9665 11.4791 11.5244C10.9173 12.0769 10.6364 12.7458 10.6364 13.5312C10.6364 14.3167 10.9173 14.9938 11.4791 15.5625C12.0355 16.1042 12.7091 16.375 13.5 16.375H15.5455V18\"\r\n fill=\"white\"\r\n />\r\n </SvgIcon>\r\n )\r\n}\r\n\r\nexport function RouteNoteIcon(props: SvgIconProps) {\r\n return (\r\n <SvgIcon {...props} viewBox=\"0 0 60 60\">\r\n {/* tslint:disable-next-line: max-line-length */}\r\n <path d=\"M36.114.664C34.724.362 33.336.242 31.886 0h-3.744c-1.57.242-3.14.423-4.71.725C11.716 3.26 2.234 13.285.422 25.06.243 26.087.122 27.113 0 28.14v3.744c.242 1.51.423 3.019.725 4.468C3.32 48.43 12.984 57.548 25.183 59.601c14.675 2.415 28.987-6.34 33.396-20.471C63.954 22.1 53.567 4.348 36.114.664zm-6.1 55.434c-14.433 0-26.089-11.654-26.089-26.086 0-14.432 11.716-26.147 26.15-26.087 14.373 0 26.028 11.715 26.028 26.087 0 14.371-11.655 26.086-26.089 26.086z\" />\r\n <path d=\"M37.34 41.587c-2.673.363-6.237-2.118-7.306-5.022.179-.06.357-.121.476-.182 5.7-2.238 8.967-8.047 7.898-14.097C37.339 16.296 32.232 12 26.174 12H14v4.114h.89c3.861 0 7.721-.06 11.522 0 4.395.06 7.898 3.63 8.077 8.047.178 4.417-3.03 8.229-7.424 8.713-.594.06-1.188.06-1.722.121-.356 1.755.356 4.72 1.722 6.837 2.376 3.812 5.82 5.748 10.333 6.05V48c2.554-1.452 5.048-2.783 7.602-4.235-2.613-1.452-5.048-2.844-7.66-4.236v2.058z\" />\r\n </SvgIcon>\r\n )\r\n}\r\n"],"names":["ContractIcon","props","_jsx","SvgIcon","_objectSpread","color","viewBox","d","EditFileIcon","children","FolderMusicUploadIcon","_jsxs","width","height","fill","RouteNoteIcon"],"mappings":";;;;AAGM,SAAUA,YAAYA,CAACC,KAAmB,EAAA;AAC9C,EAAA,OACEC,IAACC,OAAO,EAAAC,cAAA,CAAAA,cAAA,CAAA;AAACC,IAAAA,KAAK,EAAC;AAAM,GAAA,EAAKJ,KAAK,CAAA,EAAA,EAAA,EAAA;AAAEK,IAAAA,OAAO,EAAC,WAAW;cAElDJ,GAAM,CAAA,MAAA,EAAA;AAAAK,MAAAA,CAAC,EAAC;KAAmgB;AAAG,GAAA,CACtgB,CAAA;AAEd;AAEM,SAAUC,YAAYA,CAACP,KAAmB,EAAA;EAC9C,OACEC,GAAC,CAAAC,OAAO,EAAAC,cAAA,CAAAA,cAAA,KAAKH,KAAK,CAAA,EAAA,EAAA,EAAA;AAAEK,IAAAA,OAAO,EAAC,WAAW;AAAAG,IAAAA,QAAA,EAErCP;AAAMK,MAAAA,CAAC,EAAC;KAA0Q;AAAA,GAAA,CAAA,CAC1Q;AAEd;AAEM,SAAUG,qBAAqBA,CAACT,KAAmB,EAAA;EACvD,OACEU,KAACR,OAAO,EAAAC,cAAA,CAAAA,cAAA,KAAKH,KAAK,CAAA,EAAA,EAAA,EAAA;AAAEW,IAAAA,KAAK,EAAC,IAAI;AAACC,IAAAA,MAAM,EAAC,IAAI;AAACP,IAAAA,OAAO,EAAC,WAAW;eAE5DJ,GACE,CAAA,MAAA,EAAA;AAAAK,MAAAA,CAAC,EAAC,sTAAsT;AACxTO,MAAAA,IAAI,EAAC;AAAS,KAAA,CACd,EACFZ,GAAM,CAAA,MAAA,EAAA;AAAAK,MAAAA,CAAC,EAAC,mEAAmE;AAACO,MAAAA,IAAI,EAAC;AAAS,KAAA,CAAG,EAC7FZ,GACE,CAAA,MAAA,EAAA;AAAAK,MAAAA,CAAC,EAAC,mxCAAmxC;AACrxCO,MAAAA,IAAI,EAAC;AAAO,KAAA,CACZ;AACM,GAAA,CAAA,CAAA;AAEd;AAEM,SAAUC,aAAaA,CAACd,KAAmB,EAAA;EAC/C,OACEU,KAACR,OAAO,EAAAC,cAAA,CAAAA,cAAA,KAAKH,KAAK,CAAA,EAAA,EAAA,EAAA;AAAEK,IAAAA,OAAO,EAAC,WAAW;AAErCG,IAAAA,QAAA,EAAA,CAAAP,GAAA,CAAA,MAAA,EAAA;AAAMK,MAAAA,CAAC,EAAC;AAA2c,KAAA,CAAA,EACndL,GAAM,CAAA,MAAA,EAAA;AAAAK,MAAAA,CAAC,EAAC;AAAya,KAAA,CAAG;AAC5a,GAAA,CAAA,CAAA;AAEd;;;;"}
@@ -0,0 +1,6 @@
1
+ .container-spinner {
2
+ flex: 1;
3
+ display: flex;
4
+ justify-content: center;
5
+ align-items: center;
6
+ }
@@ -0,0 +1,33 @@
1
+ import { SxProps, Theme } from '@mui/material';
2
+ import React, { Component } from 'react';
3
+ import './index.css';
4
+ interface MapLayoutProps {
5
+ sx?: SxProps<Theme>;
6
+ }
7
+ interface ILayoutBase {
8
+ width: number;
9
+ height: number;
10
+ }
11
+ interface ILayout extends ILayoutBase {
12
+ widthScroll: number;
13
+ heightScroll: number;
14
+ }
15
+ interface IMapLayoutContext {
16
+ layout: ILayout;
17
+ window: ILayoutBase;
18
+ }
19
+ interface MapLayoutState {
20
+ layout: ILayout;
21
+ window: ILayoutBase;
22
+ }
23
+ export declare const MapLayoutContext: React.Context<IMapLayoutContext>;
24
+ declare class MapLayout extends Component<MapLayoutProps, MapLayoutState> {
25
+ constructor(props: MapLayoutProps);
26
+ mapState: () => void;
27
+ componentDidMount(): void;
28
+ componentWillUnmount(): void;
29
+ getConfig: () => IMapLayoutContext;
30
+ refContainer: HTMLDivElement | null;
31
+ render(): JSX.Element;
32
+ }
33
+ export default MapLayout;
@@ -0,0 +1,80 @@
1
+ import { inherits as _inherits, createClass as _createClass, classCallCheck as _classCallCheck, callSuper as _callSuper, defineProperty as _defineProperty } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
+ import { jsx } from 'react/jsx-runtime';
3
+ import { Box } from '@mui/material';
4
+ import React__default, { Component } from 'react';
5
+
6
+ var MapLayoutContext = /*#__PURE__*/React__default.createContext({});
7
+ var MapLayout = /*#__PURE__*/function (_Component) {
8
+ function MapLayout(props) {
9
+ var _this;
10
+ _classCallCheck(this, MapLayout);
11
+ _this = _callSuper(this, MapLayout, [props]);
12
+ _defineProperty(_this, "mapState", function () {
13
+ var _this$refContainer$cl, _this$refContainer, _this$refContainer$cl2, _this$refContainer2, _this$refContainer$sc, _this$refContainer3, _this$refContainer$sc2, _this$refContainer4;
14
+ _this.setState({
15
+ layout: {
16
+ height: (_this$refContainer$cl = (_this$refContainer = _this.refContainer) === null || _this$refContainer === void 0 ? void 0 : _this$refContainer.clientHeight) !== null && _this$refContainer$cl !== void 0 ? _this$refContainer$cl : 0,
17
+ width: (_this$refContainer$cl2 = (_this$refContainer2 = _this.refContainer) === null || _this$refContainer2 === void 0 ? void 0 : _this$refContainer2.clientWidth) !== null && _this$refContainer$cl2 !== void 0 ? _this$refContainer$cl2 : 0,
18
+ heightScroll: (_this$refContainer$sc = (_this$refContainer3 = _this.refContainer) === null || _this$refContainer3 === void 0 ? void 0 : _this$refContainer3.scrollHeight) !== null && _this$refContainer$sc !== void 0 ? _this$refContainer$sc : 0,
19
+ widthScroll: (_this$refContainer$sc2 = (_this$refContainer4 = _this.refContainer) === null || _this$refContainer4 === void 0 ? void 0 : _this$refContainer4.scrollWidth) !== null && _this$refContainer$sc2 !== void 0 ? _this$refContainer$sc2 : 0
20
+ },
21
+ window: {
22
+ height: window.innerHeight,
23
+ width: window.innerWidth
24
+ }
25
+ });
26
+ });
27
+ _defineProperty(_this, "getConfig", function () {
28
+ return {
29
+ layout: _this.state.layout,
30
+ window: _this.state.window
31
+ };
32
+ });
33
+ _defineProperty(_this, "refContainer", null);
34
+ _this.state = {
35
+ layout: {
36
+ height: 0,
37
+ width: 0,
38
+ heightScroll: 0,
39
+ widthScroll: 0
40
+ },
41
+ window: {
42
+ height: window.innerHeight,
43
+ width: window.innerWidth
44
+ }
45
+ };
46
+ return _this;
47
+ }
48
+ _inherits(MapLayout, _Component);
49
+ return _createClass(MapLayout, [{
50
+ key: "componentDidMount",
51
+ value: function componentDidMount() {
52
+ this.mapState();
53
+ window.addEventListener("resize", this.mapState);
54
+ }
55
+ }, {
56
+ key: "componentWillUnmount",
57
+ value: function componentWillUnmount() {
58
+ window.removeEventListener("resize", this.mapState);
59
+ }
60
+ }, {
61
+ key: "render",
62
+ value: function render() {
63
+ var _this2 = this;
64
+ return jsx(Box, {
65
+ component: "div",
66
+ ref: function ref(_ref) {
67
+ return _this2.refContainer = _ref;
68
+ },
69
+ sx: this.props.sx,
70
+ children: jsx(MapLayoutContext.Provider, {
71
+ value: this.getConfig(),
72
+ children: this.props.children
73
+ })
74
+ });
75
+ }
76
+ }]);
77
+ }(Component);
78
+
79
+ export { MapLayoutContext, MapLayout as default };
80
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/Components/MapLayout/index.tsx"],"sourcesContent":["import { Box, SxProps, Theme } from '@mui/material'\r\nimport React, { Component, ComponentType } from 'react'\r\nimport './index.css'\r\ninterface MapLayoutProps {\r\n sx?: SxProps<Theme>\r\n}\r\ninterface ILayoutBase {\r\n width: number\r\n height: number\r\n}\r\ninterface ILayout extends ILayoutBase {\r\n widthScroll: number\r\n heightScroll: number\r\n}\r\n\r\ninterface IMapLayoutContext {\r\n layout: ILayout\r\n window: ILayoutBase\r\n}\r\n\r\ninterface MapLayoutState {\r\n layout: ILayout\r\n window: ILayoutBase\r\n}\r\nexport const MapLayoutContext = React.createContext<IMapLayoutContext>({} as any);\r\nclass MapLayout extends Component<MapLayoutProps, MapLayoutState> {\r\n constructor(props: MapLayoutProps) {\r\n super(props)\r\n this.state = {\r\n layout: {\r\n height: 0,\r\n width: 0,\r\n heightScroll: 0,\r\n widthScroll: 0\r\n },\r\n window: {\r\n height: window.innerHeight,\r\n width: window.innerWidth,\r\n }\r\n }\r\n }\r\n mapState = () => {\r\n this.setState({\r\n layout: {\r\n height: this.refContainer?.clientHeight ?? 0,\r\n width: this.refContainer?.clientWidth ?? 0,\r\n heightScroll: this.refContainer?.scrollHeight ?? 0,\r\n widthScroll: this.refContainer?.scrollWidth ?? 0\r\n },\r\n window: {\r\n height: window.innerHeight,\r\n width: window.innerWidth\r\n }\r\n })\r\n }\r\n componentDidMount() {\r\n this.mapState()\r\n window.addEventListener(\"resize\", this.mapState)\r\n }\r\n componentWillUnmount() {\r\n window.removeEventListener(\"resize\", this.mapState)\r\n }\r\n getConfig = (): IMapLayoutContext => {\r\n return {\r\n layout: this.state.layout,\r\n window: this.state.window\r\n }\r\n }\r\n refContainer: HTMLDivElement | null = null\r\n render() {\r\n return (\r\n <Box component={\"div\"} ref={ref => this.refContainer = ref as any} sx={this.props.sx}>\r\n <MapLayoutContext.Provider value={this.getConfig()}>\r\n {this.props.children}\r\n </MapLayoutContext.Provider>\r\n </Box>\r\n )\r\n }\r\n}\r\nexport default MapLayout"],"names":["MapLayoutContext","React","createContext","MapLayout","_Component","props","_this","_classCallCheck","_callSuper","_defineProperty","_this$refContainer$cl","_this$refContainer","_this$refContainer$cl2","_this$refContainer2","_this$refContainer$sc","_this$refContainer3","_this$refContainer$sc2","_this$refContainer4","setState","layout","height","refContainer","clientHeight","width","clientWidth","heightScroll","scrollHeight","widthScroll","scrollWidth","window","innerHeight","innerWidth","state","_inherits","_createClass","key","value","componentDidMount","mapState","addEventListener","componentWillUnmount","removeEventListener","render","_this2","_jsx","Box","component","ref","sx","Provider","getConfig","children","Component"],"mappings":"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"}
@@ -0,0 +1,28 @@
1
+ import React, { Component } from 'react';
2
+ interface MessageBoxProps {
3
+ }
4
+ export interface IOptionDefault {
5
+ Title: string;
6
+ Content: JSX.Element | string;
7
+ data: any;
8
+ onSubmit?: (data: any) => void;
9
+ Footer?: JSX.Element;
10
+ }
11
+ type IContent = () => JSX.Element;
12
+ type IOption = IOptionDefault | IContent;
13
+ interface MessageBoxState {
14
+ option?: IOption;
15
+ }
16
+ export interface IMessageBoxContext {
17
+ Close: () => void;
18
+ open: (option: IOption) => void;
19
+ }
20
+ export declare const MessageBoxContext: React.Context<IMessageBoxContext>;
21
+ export default class MessageBox extends Component<MessageBoxProps, MessageBoxState> implements IMessageBoxContext {
22
+ constructor(props: MessageBoxProps);
23
+ Close: () => void;
24
+ open: (option: IOption) => void;
25
+ renderContent: () => JSX.Element | undefined;
26
+ render(): JSX.Element;
27
+ }
28
+ export {};
@@ -0,0 +1,93 @@
1
+ import { inherits as _inherits, createClass as _createClass, classCallCheck as _classCallCheck, callSuper as _callSuper, defineProperty as _defineProperty, typeof as _typeof, objectSpread2 as _objectSpread2 } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
+ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
3
+ import React__default, { Component } from 'react';
4
+ import Button from '@mui/material/Button';
5
+ import Dialog from '@mui/material/Dialog';
6
+ import DialogActions from '@mui/material/DialogActions';
7
+ import DialogContent from '@mui/material/DialogContent';
8
+ import DialogTitle from '@mui/material/DialogTitle';
9
+ import Slide from '@mui/material/Slide';
10
+
11
+ var Transition = /*#__PURE__*/React__default.forwardRef(function Transition(props, ref) {
12
+ return jsx(Slide, _objectSpread2({
13
+ direction: "up",
14
+ ref: ref
15
+ }, props));
16
+ });
17
+ var MessageBoxContext = /*#__PURE__*/React__default.createContext({
18
+ Close: function Close() {},
19
+ open: function open() {}
20
+ });
21
+ var MessageBox = /*#__PURE__*/function (_Component) {
22
+ function MessageBox(props) {
23
+ var _this;
24
+ _classCallCheck(this, MessageBox);
25
+ _this = _callSuper(this, MessageBox, [props]);
26
+ _defineProperty(_this, "Close", function () {
27
+ _this.setState({
28
+ option: undefined
29
+ });
30
+ });
31
+ _defineProperty(_this, "open", function (option) {
32
+ _this.setState({
33
+ option: option
34
+ });
35
+ });
36
+ _defineProperty(_this, "renderContent", function () {
37
+ var option = _this.state.option;
38
+ if (typeof option === 'function') {
39
+ return option();
40
+ } else if (_typeof(option) === 'object') {
41
+ return jsxs(Fragment, {
42
+ children: [jsx(DialogTitle, {
43
+ children: option.Title
44
+ }), jsx(DialogContent, {
45
+ sx: {
46
+ padding: "0 24px"
47
+ },
48
+ children: option.Content
49
+ }), jsx(DialogActions, {
50
+ children: option.Footer ? option.Footer : jsxs(Fragment, {
51
+ children: [jsx(Button, {
52
+ onClick: function onClick() {
53
+ _this.Close();
54
+ option.onSubmit && option.onSubmit(option.data);
55
+ },
56
+ children: "Yes"
57
+ }), jsx(Button, {
58
+ color: 'inherit',
59
+ onClick: _this.Close,
60
+ children: "No"
61
+ })]
62
+ })
63
+ })]
64
+ });
65
+ }
66
+ });
67
+ _this.state = {};
68
+ return _this;
69
+ }
70
+ _inherits(MessageBox, _Component);
71
+ return _createClass(MessageBox, [{
72
+ key: "render",
73
+ value: function render() {
74
+ return jsxs(MessageBoxContext.Provider, {
75
+ value: this,
76
+ children: [this.props.children, jsx(Dialog, {
77
+ open: !!this.state.option,
78
+ TransitionComponent: Transition,
79
+ keepMounted: true,
80
+ onClose: this.Close,
81
+ "aria-describedby": "alert-dialog-global",
82
+ sx: {
83
+ zIndex: 5000
84
+ },
85
+ children: this.renderContent()
86
+ })]
87
+ });
88
+ }
89
+ }]);
90
+ }(Component);
91
+
92
+ export { MessageBoxContext, MessageBox as default };
93
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/Components/MessageBox/index.tsx"],"sourcesContent":["import { Box } from '@mui/material'\r\nimport React, { Component } from 'react'\r\nimport Button from '@mui/material/Button';\r\nimport Dialog from '@mui/material/Dialog';\r\nimport DialogActions from '@mui/material/DialogActions';\r\nimport DialogContent from '@mui/material/DialogContent';\r\nimport DialogContentText from '@mui/material/DialogContentText';\r\nimport DialogTitle from '@mui/material/DialogTitle';\r\nimport Slide from '@mui/material/Slide';\r\nimport { TransitionProps } from '@mui/material/transitions';\r\n\r\nconst Transition = React.forwardRef(function Transition(\r\n props: TransitionProps & {\r\n children: React.ReactElement<any, any>;\r\n },\r\n ref: React.Ref<unknown>,\r\n) {\r\n return <Slide direction=\"up\" ref={ref} {...props} />;\r\n});\r\ninterface MessageBoxProps {\r\n\r\n}\r\nexport interface IOptionDefault {\r\n Title: string,\r\n Content: JSX.Element | string,\r\n data: any,\r\n onSubmit?: (data: any) => void\r\n Footer?: JSX.Element\r\n}\r\ntype IContent = () => JSX.Element\r\n\r\ntype IOption = IOptionDefault | IContent\r\ninterface MessageBoxState {\r\n option?: IOption\r\n}\r\nexport interface IMessageBoxContext {\r\n Close: () => void,\r\n open: (option: IOption) => void\r\n}\r\nexport const MessageBoxContext = React.createContext<IMessageBoxContext>({\r\n Close: () => { },\r\n open: () => { }\r\n});\r\n\r\nexport default class MessageBox extends Component<MessageBoxProps, MessageBoxState> implements IMessageBoxContext {\r\n constructor(props: MessageBoxProps) {\r\n super(props)\r\n this.state = {}\r\n }\r\n Close = () => {\r\n this.setState({ option: undefined })\r\n }\r\n open = (option: IOption) => {\r\n this.setState({ option })\r\n }\r\n renderContent = () => {\r\n const { option } = this.state\r\n if (typeof option === 'function') {\r\n return option()\r\n } else if (typeof option === 'object') {\r\n return <>\r\n <DialogTitle>{option.Title}</DialogTitle>\r\n <DialogContent sx={{ padding: \"0 24px\" }}>\r\n {option.Content}\r\n </DialogContent>\r\n <DialogActions>\r\n {option.Footer ? option.Footer : <>\r\n <Button onClick={() => {\r\n this.Close();\r\n option.onSubmit && option.onSubmit(option.data);\r\n }}>Yes</Button>\r\n <Button color='inherit' onClick={this.Close}>No</Button>\r\n </>\r\n }\r\n </DialogActions>\r\n </>\r\n }\r\n }\r\n render() {\r\n return (\r\n <MessageBoxContext.Provider value={this}>\r\n {this.props.children}\r\n <Dialog\r\n open={!!this.state.option}\r\n TransitionComponent={Transition}\r\n keepMounted\r\n onClose={this.Close}\r\n aria-describedby=\"alert-dialog-global\"\r\n sx={{ zIndex: 5000 }}\r\n >\r\n {this.renderContent()}\r\n </Dialog>\r\n </MessageBoxContext.Provider>\r\n\r\n )\r\n }\r\n}\r\n"],"names":["Transition","React","forwardRef","props","ref","_jsx","Slide","_objectSpread","direction","MessageBoxContext","createContext","Close","open","MessageBox","_Component","_this","_classCallCheck","_callSuper","_defineProperty","setState","option","undefined","state","_typeof","_jsxs","_Fragment","children","DialogTitle","Title","DialogContent","sx","padding","Content","DialogActions","Footer","Button","onClick","onSubmit","data","color","_inherits","_createClass","key","value","render","Provider","Dialog","TransitionComponent","keepMounted","onClose","zIndex","renderContent","Component"],"mappings":"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"}