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,33 @@
1
+ export default DropzoneDialog;
2
+ /**
3
+ * This component provides an uncontrolled version of the DropzoneDialogBase component.
4
+ *
5
+ * It supports all the Props and Methods from `DropzoneDialogBase` but keeps the files state internally.
6
+ *
7
+ * **Note** The `onSave` handler also returns `File[]` with all the accepted files.
8
+ */
9
+ declare class DropzoneDialog extends React.PureComponent<any, any, any> {
10
+ constructor(props: any);
11
+ constructor(props: any, context: any);
12
+ state: {
13
+ fileObjects: never[];
14
+ };
15
+ componentDidMount(): void;
16
+ componentWillUnmount(): void;
17
+ notifyFileChange: () => void;
18
+ loadInitialFiles: () => Promise<void>;
19
+ addFiles: (newFileObjects: any) => Promise<void>;
20
+ deleteFile: (removedFileObj: any, removedFileObjIdx: any) => void;
21
+ handleClose: (evt: any) => void;
22
+ handleSave: (evt: any) => void;
23
+ render(): JSX.Element;
24
+ }
25
+ declare namespace DropzoneDialog {
26
+ namespace defaultProps {
27
+ const clearOnUnmount: boolean;
28
+ const filesLimit: number;
29
+ const initialFiles: never[];
30
+ }
31
+ const propTypes: any;
32
+ }
33
+ import * as React from "react";
@@ -0,0 +1,222 @@
1
+ import { objectSpread2 as _objectSpread2, inherits as _inherits, createClass as _createClass, classCallCheck as _classCallCheck, callSuper as _callSuper, defineProperty as _defineProperty, asyncToGenerator as _asyncToGenerator, regenerator as _regenerator } from '../../../_virtual/_rollupPluginBabelHelpers.js';
2
+ import PropTypes from 'prop-types';
3
+ import * as React from 'react';
4
+ import { readFile, createFileFromUrl } from '../helpers.js';
5
+ import DropzoneDialogBase from './DropzoneDialogBase.js';
6
+ import { jsx } from 'react/jsx-runtime';
7
+
8
+ var DropzoneDialog = /*#__PURE__*/function (_React$PureComponent) {
9
+ function DropzoneDialog() {
10
+ var _this;
11
+ _classCallCheck(this, DropzoneDialog);
12
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
13
+ args[_key] = arguments[_key];
14
+ }
15
+ _this = _callSuper(this, DropzoneDialog, [].concat(args));
16
+ _defineProperty(_this, "state", {
17
+ fileObjects: []
18
+ });
19
+ _defineProperty(_this, "notifyFileChange", function () {
20
+ var onChange = _this.props.onChange;
21
+ var fileObjects = _this.state.fileObjects;
22
+ if (onChange) {
23
+ onChange(fileObjects.map(function (fileObject) {
24
+ return fileObject.file;
25
+ }));
26
+ }
27
+ });
28
+ _defineProperty(_this, "loadInitialFiles", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
29
+ var initialFiles, fileObjs, _t;
30
+ return _regenerator().w(function (_context2) {
31
+ while (1) switch (_context2.n) {
32
+ case 0:
33
+ initialFiles = _this.props.initialFiles;
34
+ _context2.p = 1;
35
+ _context2.n = 2;
36
+ return Promise.all(initialFiles.map(/*#__PURE__*/function () {
37
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(initialFile) {
38
+ var file, data;
39
+ return _regenerator().w(function (_context) {
40
+ while (1) switch (_context.n) {
41
+ case 0:
42
+ if (!(typeof initialFile === "string")) {
43
+ _context.n = 2;
44
+ break;
45
+ }
46
+ _context.n = 1;
47
+ return createFileFromUrl(initialFile);
48
+ case 1:
49
+ file = _context.v;
50
+ _context.n = 3;
51
+ break;
52
+ case 2:
53
+ file = initialFile;
54
+ case 3:
55
+ _context.n = 4;
56
+ return readFile(file);
57
+ case 4:
58
+ data = _context.v;
59
+ return _context.a(2, {
60
+ file: file,
61
+ data: data
62
+ });
63
+ }
64
+ }, _callee);
65
+ }));
66
+ return function (_x) {
67
+ return _ref2.apply(this, arguments);
68
+ };
69
+ }()));
70
+ case 2:
71
+ fileObjs = _context2.v;
72
+ _this.setState(function (state) {
73
+ return {
74
+ fileObjects: [].concat(state.fileObjects, fileObjs)
75
+ };
76
+ }, _this.notifyFileChange);
77
+ _context2.n = 4;
78
+ break;
79
+ case 3:
80
+ _context2.p = 3;
81
+ _t = _context2.v;
82
+ console.log(_t);
83
+ case 4:
84
+ return _context2.a(2);
85
+ }
86
+ }, _callee2, null, [[1, 3]]);
87
+ })));
88
+ _defineProperty(_this, "addFiles", /*#__PURE__*/function () {
89
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(newFileObjects) {
90
+ var filesLimit;
91
+ return _regenerator().w(function (_context3) {
92
+ while (1) switch (_context3.n) {
93
+ case 0:
94
+ filesLimit = _this.props.filesLimit; // Update component state
95
+ _this.setState(function (state) {
96
+ // Handle a single file
97
+ if (filesLimit <= 1) {
98
+ return {
99
+ fileObjects: [].concat(newFileObjects[0])
100
+ };
101
+ }
102
+
103
+ // Handle multiple files
104
+ return {
105
+ fileObjects: [].concat(state.fileObjects, newFileObjects)
106
+ };
107
+ }, _this.notifyFileChange);
108
+ case 1:
109
+ return _context3.a(2);
110
+ }
111
+ }, _callee3);
112
+ }));
113
+ return function (_x2) {
114
+ return _ref3.apply(this, arguments);
115
+ };
116
+ }());
117
+ _defineProperty(_this, "deleteFile", function (removedFileObj, removedFileObjIdx) {
118
+ global.event.stopPropagation();
119
+ var onDelete = _this.props.onDelete;
120
+ var fileObjects = _this.state.fileObjects;
121
+
122
+ // Calculate remaining fileObjects array
123
+ var remainingFileObjs = fileObjects.filter(function (fileObject, i) {
124
+ return i !== removedFileObjIdx;
125
+ });
126
+
127
+ // Notify removed file
128
+ if (onDelete) {
129
+ onDelete(removedFileObj.file);
130
+ }
131
+
132
+ // Update local state
133
+ _this.setState({
134
+ fileObjects: remainingFileObjs
135
+ }, _this.notifyFileChange);
136
+ });
137
+ _defineProperty(_this, "handleClose", function (evt) {
138
+ var _this$props = _this.props,
139
+ clearOnUnmount = _this$props.clearOnUnmount,
140
+ onClose = _this$props.onClose;
141
+ if (onClose) {
142
+ onClose(evt);
143
+ }
144
+ if (clearOnUnmount) {
145
+ _this.setState({
146
+ fileObjects: []
147
+ }, _this.notifyFileChange);
148
+ }
149
+ });
150
+ _defineProperty(_this, "handleSave", function (evt) {
151
+ var _this$props2 = _this.props,
152
+ clearOnUnmount = _this$props2.clearOnUnmount,
153
+ onSave = _this$props2.onSave;
154
+ var fileObjects = _this.state.fileObjects;
155
+ if (onSave) {
156
+ onSave(fileObjects.map(function (fileObject) {
157
+ return fileObject.file;
158
+ }), evt);
159
+ }
160
+ if (clearOnUnmount) {
161
+ _this.setState({
162
+ fileObjects: []
163
+ }, _this.notifyFileChange);
164
+ }
165
+ });
166
+ return _this;
167
+ }
168
+ _inherits(DropzoneDialog, _React$PureComponent);
169
+ return _createClass(DropzoneDialog, [{
170
+ key: "componentDidMount",
171
+ value: function componentDidMount() {
172
+ this.loadInitialFiles();
173
+ }
174
+ }, {
175
+ key: "componentWillUnmount",
176
+ value: function componentWillUnmount() {
177
+ var clearOnUnmount = this.props.clearOnUnmount;
178
+ if (clearOnUnmount) {
179
+ this.setState({
180
+ fileObjects: []
181
+ }, this.notifyFileChange);
182
+ }
183
+ }
184
+ }, {
185
+ key: "render",
186
+ value: function render() {
187
+ var fileObjects = this.state.fileObjects;
188
+ return /*#__PURE__*/jsx(DropzoneDialogBase, _objectSpread2(_objectSpread2({}, this.props), {}, {
189
+ fileObjects: fileObjects,
190
+ onAdd: this.addFiles,
191
+ onDelete: this.deleteFile,
192
+ onClose: this.handleClose,
193
+ onSave: this.handleSave
194
+ }));
195
+ }
196
+ }]);
197
+ }(React.PureComponent);
198
+ DropzoneDialog.defaultProps = {
199
+ clearOnUnmount: true,
200
+ filesLimit: 3,
201
+ initialFiles: []
202
+ };
203
+ DropzoneDialog.propTypes = _objectSpread2(_objectSpread2({}, DropzoneDialogBase.propTypes), {}, {
204
+ /** Clear uploaded files when component is unmounted. */
205
+ clearOnUnmount: PropTypes.bool,
206
+ /** Maximum number of files that can be loaded into the dropzone. */
207
+ filesLimit: PropTypes.number,
208
+ /** List containing File objects or URL strings.<br/>
209
+ * **Note:** Please take care of CORS.
210
+ */
211
+ initialFiles: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.any])),
212
+ /**
213
+ * Fired when the user clicks the Submit button.
214
+ *
215
+ * @param {File[]} files All the files currently inside the Dropzone.
216
+ * @param {SyntheticEvent} event The react `SyntheticEvent`.
217
+ */
218
+ onSave: PropTypes.func
219
+ });
220
+
221
+ export { DropzoneDialog as default };
222
+ //# sourceMappingURL=DropzoneDialog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DropzoneDialog.js","sources":["../../../../src/Components/DropZone/components/DropzoneDialog.jsx"],"sourcesContent":["import PropTypes from \"prop-types\";\r\nimport * as React from \"react\";\r\n\r\nimport { createFileFromUrl, readFile } from \"../helpers\";\r\n\r\nimport DropzoneDialogBase from \"./DropzoneDialogBase\";\r\n\r\n/**\r\n * This component provides an uncontrolled version of the DropzoneDialogBase component.\r\n *\r\n * It supports all the Props and Methods from `DropzoneDialogBase` but keeps the files state internally.\r\n *\r\n * **Note** The `onSave` handler also returns `File[]` with all the accepted files.\r\n */\r\nclass DropzoneDialog extends React.PureComponent {\r\n state = {\r\n fileObjects: [],\r\n };\r\n\r\n componentDidMount() {\r\n this.loadInitialFiles();\r\n }\r\n\r\n componentWillUnmount() {\r\n const { clearOnUnmount } = this.props;\r\n\r\n if (clearOnUnmount) {\r\n this.setState(\r\n {\r\n fileObjects: [],\r\n },\r\n this.notifyFileChange\r\n );\r\n }\r\n }\r\n\r\n notifyFileChange = () => {\r\n const { onChange } = this.props;\r\n const { fileObjects } = this.state;\r\n\r\n if (onChange) {\r\n onChange(fileObjects.map((fileObject) => fileObject.file));\r\n }\r\n };\r\n\r\n loadInitialFiles = async () => {\r\n const { initialFiles } = this.props;\r\n try {\r\n const fileObjs = await Promise.all(\r\n initialFiles.map(async (initialFile) => {\r\n let file;\r\n if (typeof initialFile === \"string\") {\r\n file = await createFileFromUrl(initialFile);\r\n } else {\r\n file = initialFile;\r\n }\r\n const data = await readFile(file);\r\n\r\n return {\r\n file,\r\n data,\r\n };\r\n })\r\n );\r\n\r\n this.setState(\r\n (state) => ({\r\n fileObjects: [].concat(state.fileObjects, fileObjs),\r\n }),\r\n this.notifyFileChange\r\n );\r\n } catch (err) {\r\n console.log(err);\r\n }\r\n };\r\n\r\n addFiles = async (newFileObjects) => {\r\n const { filesLimit } = this.props;\r\n // Update component state\r\n this.setState((state) => {\r\n // Handle a single file\r\n if (filesLimit <= 1) {\r\n return {\r\n fileObjects: [].concat(newFileObjects[0]),\r\n };\r\n }\r\n\r\n // Handle multiple files\r\n return {\r\n fileObjects: [].concat(state.fileObjects, newFileObjects),\r\n };\r\n }, this.notifyFileChange);\r\n };\r\n\r\n deleteFile = (removedFileObj, removedFileObjIdx) => {\r\n global.event.stopPropagation();\r\n\r\n const { onDelete } = this.props;\r\n const { fileObjects } = this.state;\r\n\r\n // Calculate remaining fileObjects array\r\n const remainingFileObjs = fileObjects.filter((fileObject, i) => {\r\n return i !== removedFileObjIdx;\r\n });\r\n\r\n // Notify removed file\r\n if (onDelete) {\r\n onDelete(removedFileObj.file);\r\n }\r\n\r\n // Update local state\r\n this.setState(\r\n {\r\n fileObjects: remainingFileObjs,\r\n },\r\n this.notifyFileChange\r\n );\r\n };\r\n\r\n handleClose = (evt) => {\r\n const { clearOnUnmount, onClose } = this.props;\r\n\r\n if (onClose) {\r\n onClose(evt);\r\n }\r\n\r\n if (clearOnUnmount) {\r\n this.setState(\r\n {\r\n fileObjects: [],\r\n },\r\n this.notifyFileChange\r\n );\r\n }\r\n };\r\n\r\n handleSave = (evt) => {\r\n const { clearOnUnmount, onSave } = this.props;\r\n const { fileObjects } = this.state;\r\n\r\n if (onSave) {\r\n onSave(\r\n fileObjects.map((fileObject) => fileObject.file),\r\n evt\r\n );\r\n }\r\n\r\n if (clearOnUnmount) {\r\n this.setState(\r\n {\r\n fileObjects: [],\r\n },\r\n this.notifyFileChange\r\n );\r\n }\r\n };\r\n\r\n render() {\r\n const { fileObjects } = this.state;\r\n\r\n return (\r\n <DropzoneDialogBase\r\n {...this.props}\r\n fileObjects={fileObjects}\r\n onAdd={this.addFiles}\r\n onDelete={this.deleteFile}\r\n onClose={this.handleClose}\r\n onSave={this.handleSave}\r\n />\r\n );\r\n }\r\n}\r\n\r\nDropzoneDialog.defaultProps = {\r\n clearOnUnmount: true,\r\n filesLimit: 3,\r\n initialFiles: [],\r\n};\r\n\r\nDropzoneDialog.propTypes = {\r\n ...DropzoneDialogBase.propTypes,\r\n /** Clear uploaded files when component is unmounted. */\r\n clearOnUnmount: PropTypes.bool,\r\n /** Maximum number of files that can be loaded into the dropzone. */\r\n filesLimit: PropTypes.number,\r\n /** List containing File objects or URL strings.<br/>\r\n * **Note:** Please take care of CORS.\r\n */\r\n initialFiles: PropTypes.arrayOf(\r\n PropTypes.oneOfType([PropTypes.string, PropTypes.any])\r\n ),\r\n /**\r\n * Fired when the user clicks the Submit button.\r\n *\r\n * @param {File[]} files All the files currently inside the Dropzone.\r\n * @param {SyntheticEvent} event The react `SyntheticEvent`.\r\n */\r\n onSave: PropTypes.func,\r\n};\r\n\r\nexport default DropzoneDialog;\r\n"],"names":["DropzoneDialog","_React$PureComponent","_this","_classCallCheck","_len","arguments","length","args","Array","_key","_callSuper","concat","_defineProperty","fileObjects","onChange","props","state","map","fileObject","file","_asyncToGenerator","_regenerator","m","_callee2","initialFiles","fileObjs","_t","w","_context2","n","p","Promise","all","_ref2","_callee","initialFile","data","_context","createFileFromUrl","v","readFile","a","_x","apply","setState","notifyFileChange","console","log","_ref3","_callee3","newFileObjects","filesLimit","_context3","_x2","removedFileObj","removedFileObjIdx","global","event","stopPropagation","onDelete","remainingFileObjs","filter","i","evt","_this$props","clearOnUnmount","onClose","_this$props2","onSave","_inherits","_createClass","key","value","componentDidMount","loadInitialFiles","componentWillUnmount","render","_jsx","DropzoneDialogBase","_objectSpread","onAdd","addFiles","deleteFile","handleClose","handleSave","React","PureComponent","defaultProps","propTypes","PropTypes","bool","number","arrayOf","oneOfType","string","any","func"],"mappings":";;;;;;;AAcMA,IAAAA,cAAc,0BAAAC,oBAAA,EAAA;AAAA,EAAA,SAAAD,cAAA,GAAA;AAAA,IAAA,IAAAE,KAAA;AAAAC,IAAAA,eAAA,OAAAH,cAAA,CAAA;AAAA,IAAA,KAAA,IAAAI,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAC,IAAA,GAAAC,IAAAA,KAAA,CAAAJ,IAAA,GAAAK,IAAA,GAAA,CAAA,EAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA,EAAA,EAAA;AAAAF,MAAAA,IAAA,CAAAE,IAAA,CAAAJ,GAAAA,SAAA,CAAAI,IAAA,CAAA;AAAA;AAAAP,IAAAA,KAAA,GAAAQ,UAAA,CAAA,IAAA,EAAAV,cAAA,EAAAW,EAAAA,CAAAA,MAAA,CAAAJ,IAAA,CAAA,CAAA;IAAAK,eAAA,CAAAV,KAAA,EACV,OAAA,EAAA;AACNW,MAAAA,WAAW,EAAE;KACd,CAAA;IAAAD,eAAA,CAAAV,KAAA,EAAA,kBAAA,EAmBkB,YAAM;AACvB,MAAA,IAAQY,QAAQ,GAAKZ,KAAA,CAAKa,KAAK,CAAvBD,QAAQ;AAChB,MAAA,IAAQD,WAAW,GAAKX,KAAA,CAAKc,KAAK,CAA1BH,WAAW;AAEnB,MAAA,IAAIC,QAAQ,EAAE;AACZA,QAAAA,QAAQ,CAACD,WAAW,CAACI,GAAG,CAAC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AAE,IAAI,CAACuB,UAAW;QAC1BhB,OAAO,EAAE,IAAI,CAACiB,WAAY;QAC1Bf,MAAM,EAAE,IAAI,CAACgB;AAAW,OAAA,CACzB,CAAC;AAEN;AAAC,GAAA,CAAA,CAAA;AAAA,CA5J0BC,CAAAA,KAAK,CAACC,aAAa;AA+JhDtF,cAAc,CAACuF,YAAY,GAAG;AAC5BtB,EAAAA,cAAc,EAAE,IAAI;AACpBd,EAAAA,UAAU,EAAE,CAAC;AACb3B,EAAAA,YAAY,EAAE;AAChB,CAAC;AAEDxB,cAAc,CAACwF,SAAS,GAAAT,cAAA,CAAAA,cAAA,CAAA,EAAA,EACnBD,kBAAkB,CAACU,SAAS,CAAA,EAAA,EAAA,EAAA;AAC/B;EACAvB,cAAc,EAAEwB,SAAS,CAACC,IAAI;AAC9B;EACAvC,UAAU,EAAEsC,SAAS,CAACE,MAAM;AAC5B;AACF;AACA;AACEnE,EAAAA,YAAY,EAAEiE,SAAS,CAACG,OAAO,CAC7BH,SAAS,CAACI,SAAS,CAAC,CAACJ,SAAS,CAACK,MAAM,EAAEL,SAAS,CAACM,GAAG,CAAC,CACvD,CAAC;AACD;AACF;AACA;AACA;AACA;AACA;EACE3B,MAAM,EAAEqB,SAAS,CAACO;AAAI,CACvB,CAAA;;;;"}
@@ -0,0 +1,27 @@
1
+ export default DropzoneDialogBase;
2
+ /**
3
+ * This component provides the DropzoneArea inside of a Material-UI Dialog.
4
+ *
5
+ * It supports all the Props and Methods from `DropzoneAreaBase`.
6
+ */
7
+ declare class DropzoneDialogBase extends React.PureComponent<any, any, any> {
8
+ constructor(props: any);
9
+ constructor(props: any, context: any);
10
+ render(): JSX.Element;
11
+ }
12
+ declare namespace DropzoneDialogBase {
13
+ namespace defaultProps {
14
+ const open: boolean;
15
+ const dialogTitle: string;
16
+ const dialogProps: {};
17
+ const fullWidth: boolean;
18
+ const maxWidth: string;
19
+ const cancelButtonText: string;
20
+ const submitButtonText: string;
21
+ const showPreviews: boolean;
22
+ const showPreviewsInDropzone: boolean;
23
+ const showFileNamesInPreview: boolean;
24
+ }
25
+ const propTypes: any;
26
+ }
27
+ import * as React from "react";
@@ -0,0 +1,152 @@
1
+ import { objectSpread2 as _objectSpread2, inherits as _inherits, createClass as _createClass, slicedToArray as _slicedToArray, classCallCheck as _classCallCheck, callSuper as _callSuper, objectWithoutProperties as _objectWithoutProperties } from '../../../_virtual/_rollupPluginBabelHelpers.js';
2
+ import Button from '@mui/material/Button';
3
+ import Dialog from '@mui/material/Dialog';
4
+ import DialogActions from '@mui/material/DialogActions';
5
+ import DialogContent from '@mui/material/DialogContent';
6
+ import DialogTitle from '@mui/material/DialogTitle';
7
+ import PropTypes from 'prop-types';
8
+ import * as React from 'react';
9
+ import DropzoneAreaBase from './DropzoneAreaBase.js';
10
+ import { jsxs, jsx } from 'react/jsx-runtime';
11
+
12
+ var _excluded = ["cancelButtonText", "dialogProps", "dialogTitle", "fullWidth", "maxWidth", "onClose", "onSave", "open", "submitButtonText"];
13
+ function splitDropzoneDialogProps(allProps) {
14
+ var cancelButtonText = allProps.cancelButtonText,
15
+ dialogProps = allProps.dialogProps,
16
+ dialogTitle = allProps.dialogTitle,
17
+ fullWidth = allProps.fullWidth,
18
+ maxWidth = allProps.maxWidth,
19
+ onClose = allProps.onClose,
20
+ onSave = allProps.onSave,
21
+ open = allProps.open,
22
+ submitButtonText = allProps.submitButtonText,
23
+ dropzoneAreaProps = _objectWithoutProperties(allProps, _excluded);
24
+ return [{
25
+ cancelButtonText: cancelButtonText,
26
+ dialogProps: dialogProps,
27
+ dialogTitle: dialogTitle,
28
+ fullWidth: fullWidth,
29
+ maxWidth: maxWidth,
30
+ onClose: onClose,
31
+ onSave: onSave,
32
+ open: open,
33
+ submitButtonText: submitButtonText
34
+ }, dropzoneAreaProps];
35
+ }
36
+
37
+ /**
38
+ * This component provides the DropzoneArea inside of a Material-UI Dialog.
39
+ *
40
+ * It supports all the Props and Methods from `DropzoneAreaBase`.
41
+ */
42
+ var DropzoneDialogBase = /*#__PURE__*/function (_React$PureComponent) {
43
+ function DropzoneDialogBase() {
44
+ _classCallCheck(this, DropzoneDialogBase);
45
+ return _callSuper(this, DropzoneDialogBase, arguments);
46
+ }
47
+ _inherits(DropzoneDialogBase, _React$PureComponent);
48
+ return _createClass(DropzoneDialogBase, [{
49
+ key: "render",
50
+ value: function render() {
51
+ var _splitDropzoneDialogP = splitDropzoneDialogProps(this.props),
52
+ _splitDropzoneDialogP2 = _slicedToArray(_splitDropzoneDialogP, 2),
53
+ dropzoneDialogProps = _splitDropzoneDialogP2[0],
54
+ dropzoneAreaProps = _splitDropzoneDialogP2[1];
55
+ var cancelButtonText = dropzoneDialogProps.cancelButtonText,
56
+ dialogProps = dropzoneDialogProps.dialogProps,
57
+ dialogTitle = dropzoneDialogProps.dialogTitle,
58
+ fullWidth = dropzoneDialogProps.fullWidth,
59
+ maxWidth = dropzoneDialogProps.maxWidth,
60
+ onClose = dropzoneDialogProps.onClose,
61
+ onSave = dropzoneDialogProps.onSave,
62
+ open = dropzoneDialogProps.open,
63
+ submitButtonText = dropzoneDialogProps.submitButtonText;
64
+
65
+ // Submit button state
66
+ var submitDisabled = dropzoneAreaProps.fileObjects.length === 0;
67
+ return /*#__PURE__*/jsxs(Dialog, _objectSpread2(_objectSpread2({}, dialogProps), {}, {
68
+ fullWidth: fullWidth,
69
+ maxWidth: maxWidth,
70
+ onClose: onClose,
71
+ open: open,
72
+ children: [/*#__PURE__*/jsx(DialogTitle, {
73
+ children: dialogTitle
74
+ }), /*#__PURE__*/jsx(DialogContent, {
75
+ children: /*#__PURE__*/jsx(DropzoneAreaBase, _objectSpread2({}, dropzoneAreaProps))
76
+ }), /*#__PURE__*/jsxs(DialogActions, {
77
+ children: [/*#__PURE__*/jsx(Button, {
78
+ color: "primary",
79
+ onClick: onClose,
80
+ children: cancelButtonText
81
+ }), /*#__PURE__*/jsx(Button, {
82
+ color: "primary",
83
+ disabled: submitDisabled,
84
+ onClick: onSave,
85
+ children: submitButtonText
86
+ })]
87
+ })]
88
+ }));
89
+ }
90
+ }]);
91
+ }(React.PureComponent);
92
+ DropzoneDialogBase.defaultProps = {
93
+ open: false,
94
+ dialogTitle: "Upload file",
95
+ dialogProps: {},
96
+ fullWidth: true,
97
+ maxWidth: "sm",
98
+ cancelButtonText: "Cancel",
99
+ submitButtonText: "Submit",
100
+ showPreviews: true,
101
+ showPreviewsInDropzone: false,
102
+ showFileNamesInPreview: true
103
+ };
104
+ DropzoneDialogBase.propTypes = _objectSpread2(_objectSpread2({}, DropzoneAreaBase.propTypes), {}, {
105
+ /** Sets whether the dialog is open or closed. */
106
+ open: PropTypes.bool,
107
+ /** The Dialog title. */
108
+ dialogTitle: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
109
+ /**
110
+ * Props to pass to the Material-UI Dialog components.
111
+ * @see See [Material-UI Dialog](https://material-ui.com/api/dialog/#props) for available values.
112
+ */
113
+ dialogProps: PropTypes.object,
114
+ /**
115
+ * If `true`, the dialog stretches to `maxWidth`.<br/>
116
+ * Notice that the dialog width grow is limited by the default margin.
117
+ */
118
+ fullWidth: PropTypes.bool,
119
+ /**
120
+ * Determine the max-width of the dialog. The dialog width grows with the size of the screen.<br/>
121
+ * Set to `false` to disable `maxWidth`.
122
+ */
123
+ maxWidth: PropTypes.string,
124
+ /** Cancel button text in dialog. */
125
+ cancelButtonText: PropTypes.string,
126
+ /** Submit button text in dialog. */
127
+ submitButtonText: PropTypes.string,
128
+ /**
129
+ * Fired when the modal is closed.
130
+ *
131
+ * @param {SyntheticEvent} event The react `SyntheticEvent`
132
+ */
133
+ onClose: PropTypes.func,
134
+ /**
135
+ * Fired when the user clicks the Submit button.
136
+ *
137
+ * @param {SyntheticEvent} event The react `SyntheticEvent`
138
+ */
139
+ onSave: PropTypes.func,
140
+ /**
141
+ * Shows previews **BELOW** the dropzone.<br/>
142
+ * **Note:** By default previews show up under in the Dialog and inside in the standalone.
143
+ */
144
+ showPreviews: PropTypes.bool,
145
+ /** Shows preview **INSIDE** the dropzone area. */
146
+ showPreviewsInDropzone: PropTypes.bool,
147
+ /** Shows file name under the image. */
148
+ showFileNamesInPreview: PropTypes.bool
149
+ });
150
+
151
+ export { DropzoneDialogBase as default };
152
+ //# sourceMappingURL=DropzoneDialogBase.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DropzoneDialogBase.js","sources":["../../../../src/Components/DropZone/components/DropzoneDialogBase.jsx"],"sourcesContent":["import 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 DialogTitle from \"@mui/material/DialogTitle\";\r\nimport PropTypes from \"prop-types\";\r\nimport * as React from \"react\";\r\n\r\nimport DropzoneAreaBase from \"./DropzoneAreaBase\";\r\n\r\n// Split props related to DropzoneDialog from DropzoneArea ones\r\nfunction splitDropzoneDialogProps(allProps) {\r\n const {\r\n cancelButtonText,\r\n dialogProps,\r\n dialogTitle,\r\n fullWidth,\r\n maxWidth,\r\n onClose,\r\n onSave,\r\n open,\r\n submitButtonText,\r\n ...dropzoneAreaProps\r\n } = allProps;\r\n\r\n return [\r\n {\r\n cancelButtonText,\r\n dialogProps,\r\n dialogTitle,\r\n fullWidth,\r\n maxWidth,\r\n onClose,\r\n onSave,\r\n open,\r\n submitButtonText,\r\n },\r\n dropzoneAreaProps,\r\n ];\r\n}\r\n\r\n/**\r\n * This component provides the DropzoneArea inside of a Material-UI Dialog.\r\n *\r\n * It supports all the Props and Methods from `DropzoneAreaBase`.\r\n */\r\nclass DropzoneDialogBase extends React.PureComponent {\r\n render() {\r\n const [dropzoneDialogProps, dropzoneAreaProps] = splitDropzoneDialogProps(\r\n this.props\r\n );\r\n const {\r\n cancelButtonText,\r\n dialogProps,\r\n dialogTitle,\r\n fullWidth,\r\n maxWidth,\r\n onClose,\r\n onSave,\r\n open,\r\n submitButtonText,\r\n } = dropzoneDialogProps;\r\n\r\n // Submit button state\r\n const submitDisabled = dropzoneAreaProps.fileObjects.length === 0;\r\n\r\n return (\r\n <Dialog\r\n {...dialogProps}\r\n fullWidth={fullWidth}\r\n maxWidth={maxWidth}\r\n onClose={onClose}\r\n open={open}\r\n >\r\n <DialogTitle>{dialogTitle}</DialogTitle>\r\n\r\n <DialogContent>\r\n <DropzoneAreaBase {...dropzoneAreaProps} />\r\n </DialogContent>\r\n\r\n <DialogActions>\r\n <Button color=\"primary\" onClick={onClose}>\r\n {cancelButtonText}\r\n </Button>\r\n\r\n <Button color=\"primary\" disabled={submitDisabled} onClick={onSave}>\r\n {submitButtonText}\r\n </Button>\r\n </DialogActions>\r\n </Dialog>\r\n );\r\n }\r\n}\r\n\r\nDropzoneDialogBase.defaultProps = {\r\n open: false,\r\n dialogTitle: \"Upload file\",\r\n dialogProps: {},\r\n fullWidth: true,\r\n maxWidth: \"sm\",\r\n cancelButtonText: \"Cancel\",\r\n submitButtonText: \"Submit\",\r\n showPreviews: true,\r\n showPreviewsInDropzone: false,\r\n showFileNamesInPreview: true,\r\n};\r\n\r\nDropzoneDialogBase.propTypes = {\r\n ...DropzoneAreaBase.propTypes,\r\n /** Sets whether the dialog is open or closed. */\r\n open: PropTypes.bool,\r\n /** The Dialog title. */\r\n dialogTitle: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),\r\n /**\r\n * Props to pass to the Material-UI Dialog components.\r\n * @see See [Material-UI Dialog](https://material-ui.com/api/dialog/#props) for available values.\r\n */\r\n dialogProps: PropTypes.object,\r\n /**\r\n * If `true`, the dialog stretches to `maxWidth`.<br/>\r\n * Notice that the dialog width grow is limited by the default margin.\r\n */\r\n fullWidth: PropTypes.bool,\r\n /**\r\n * Determine the max-width of the dialog. The dialog width grows with the size of the screen.<br/>\r\n * Set to `false` to disable `maxWidth`.\r\n */\r\n maxWidth: PropTypes.string,\r\n /** Cancel button text in dialog. */\r\n cancelButtonText: PropTypes.string,\r\n /** Submit button text in dialog. */\r\n submitButtonText: PropTypes.string,\r\n /**\r\n * Fired when the modal is closed.\r\n *\r\n * @param {SyntheticEvent} event The react `SyntheticEvent`\r\n */\r\n onClose: PropTypes.func,\r\n /**\r\n * Fired when the user clicks the Submit button.\r\n *\r\n * @param {SyntheticEvent} event The react `SyntheticEvent`\r\n */\r\n onSave: PropTypes.func,\r\n /**\r\n * Shows previews **BELOW** the dropzone.<br/>\r\n * **Note:** By default previews show up under in the Dialog and inside in the standalone.\r\n */\r\n showPreviews: PropTypes.bool,\r\n /** Shows preview **INSIDE** the dropzone area. */\r\n showPreviewsInDropzone: PropTypes.bool,\r\n /** Shows file name under the image. */\r\n showFileNamesInPreview: PropTypes.bool,\r\n};\r\n\r\nexport default DropzoneDialogBase;\r\n"],"names":["splitDropzoneDialogProps","allProps","cancelButtonText","dialogProps","dialogTitle","fullWidth","maxWidth","onClose","onSave","open","submitButtonText","dropzoneAreaProps","_objectWithoutProperties","_excluded","DropzoneDialogBase","_React$PureComponent","_classCallCheck","_callSuper","arguments","_inherits","_createClass","key","value","render","_splitDropzoneDialogP","props","_splitDropzoneDialogP2","_slicedToArray","dropzoneDialogProps","submitDisabled","fileObjects","length","_jsxs","Dialog","_objectSpread","children","_jsx","DialogTitle","DialogContent","DropzoneAreaBase","DialogActions","Button","color","onClick","disabled","React","PureComponent","defaultProps","showPreviews","showPreviewsInDropzone","showFileNamesInPreview","propTypes","PropTypes","bool","oneOfType","string","element","object","func"],"mappings":";;;;;;;;;;;;AAWA,SAASA,wBAAwBA,CAACC,QAAQ,EAAE;AAC1C,EAAA,IACEC,gBAAgB,GAUdD,QAAQ,CAVVC,gBAAgB;IAChBC,WAAW,GASTF,QAAQ,CATVE,WAAW;IACXC,WAAW,GAQTH,QAAQ,CARVG,WAAW;IACXC,SAAS,GAOPJ,QAAQ,CAPVI,SAAS;IACTC,QAAQ,GAMNL,QAAQ,CANVK,QAAQ;IACRC,OAAO,GAKLN,QAAQ,CALVM,OAAO;IACPC,MAAM,GAIJP,QAAQ,CAJVO,MAAM;IACNC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AY,EAAEI,SAAS,CAACC,IAAI;AAC5B;EACAJ,sBAAsB,EAAEG,SAAS,CAACC,IAAI;AACtC;EACAH,sBAAsB,EAAEE,SAAS,CAACC;AAAI,CACvC,CAAA;;;;"}
@@ -0,0 +1,3 @@
1
+ declare const _default: React.JSXElementConstructor<any>;
2
+ export default _default;
3
+ import * as React from "react";
@@ -0,0 +1,132 @@
1
+ import { objectSpread2 as _objectSpread2 } from '../../../_virtual/_rollupPluginBabelHelpers.js';
2
+ import Chip from '@mui/material/Chip';
3
+ import Fab from '@mui/material/Fab';
4
+ import Grid from '@mui/material/Grid';
5
+ import Typography from '@mui/material/Typography';
6
+ import { withStyles } from '@mui/styles';
7
+ import DeleteIcon from '@mui/icons-material/Delete';
8
+ import clsx from 'clsx';
9
+ import { createElement } from 'react';
10
+ import PropTypes from 'prop-types';
11
+ import { defaultTheme } from '../helpers.js';
12
+ import { jsx } from 'react/jsx-runtime';
13
+
14
+ var styles = function styles(_ref) {
15
+ var palette = _ref.palette,
16
+ shape = _ref.shape,
17
+ spacing = _ref.spacing;
18
+ return {
19
+ root: {},
20
+ imageContainer: {
21
+ position: 'relative',
22
+ zIndex: 10,
23
+ textAlign: 'center',
24
+ '&:hover $image': {
25
+ opacity: 0.3
26
+ },
27
+ '&:hover $removeButton': {
28
+ opacity: 1
29
+ }
30
+ },
31
+ image: {
32
+ height: 100,
33
+ width: 'initial',
34
+ maxWidth: '100%',
35
+ color: palette.text.primary,
36
+ transition: 'all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms',
37
+ boxSizing: 'border-box',
38
+ boxShadow: 'rgba(0, 0, 0, 0.12) 0 1px 6px, rgba(0, 0, 0, 0.12) 0 1px 4px',
39
+ borderRadius: shape.borderRadius,
40
+ zIndex: 5,
41
+ opacity: 1
42
+ },
43
+ removeButton: {
44
+ transition: '.5s ease',
45
+ position: 'absolute',
46
+ opacity: 0,
47
+ top: spacing(-1),
48
+ right: spacing(-1),
49
+ width: 40,
50
+ height: 40,
51
+ '&:focus': {
52
+ opacity: 1
53
+ }
54
+ }
55
+ };
56
+ };
57
+ function PreviewList(_ref2) {
58
+ var fileObjects = _ref2.fileObjects,
59
+ handleRemove = _ref2.handleRemove,
60
+ showFileNames = _ref2.showFileNames,
61
+ useChipsForPreview = _ref2.useChipsForPreview,
62
+ previewChipProps = _ref2.previewChipProps,
63
+ previewGridClasses = _ref2.previewGridClasses,
64
+ previewGridProps = _ref2.previewGridProps,
65
+ classes = _ref2.classes,
66
+ getPreviewIcon = _ref2.getPreviewIcon;
67
+ if (useChipsForPreview) {
68
+ return /*#__PURE__*/jsx(Grid, _objectSpread2(_objectSpread2({
69
+ spacing: 1,
70
+ direction: "row"
71
+ }, previewGridProps.container), {}, {
72
+ container: true,
73
+ className: clsx(classes.root, previewGridClasses.container),
74
+ children: fileObjects.map(function (fileObject, i) {
75
+ var _fileObject$file$name, _fileObject$file;
76
+ return /*#__PURE__*/createElement(Grid, _objectSpread2(_objectSpread2({}, previewGridProps.item), {}, {
77
+ item: true,
78
+ key: "".concat((_fileObject$file$name = (_fileObject$file = fileObject.file) === null || _fileObject$file === void 0 ? void 0 : _fileObject$file.name) !== null && _fileObject$file$name !== void 0 ? _fileObject$file$name : 'file', "-").concat(i),
79
+ className: classes.imageContainer
80
+ }), /*#__PURE__*/jsx(Chip, _objectSpread2(_objectSpread2({
81
+ variant: "outlined"
82
+ }, previewChipProps), {}, {
83
+ label: fileObject.file.name,
84
+ onDelete: handleRemove(i)
85
+ })));
86
+ })
87
+ }));
88
+ }
89
+ return /*#__PURE__*/jsx(Grid, _objectSpread2(_objectSpread2({
90
+ spacing: 8
91
+ }, previewGridProps.container), {}, {
92
+ container: true,
93
+ className: clsx(classes.root, previewGridClasses.container),
94
+ children: fileObjects.map(function (fileObject, i) {
95
+ var _fileObject$file$name2, _fileObject$file2;
96
+ return /*#__PURE__*/createElement(Grid, _objectSpread2(_objectSpread2({
97
+ xs: 4
98
+ }, previewGridProps.item), {}, {
99
+ item: true,
100
+ key: "".concat((_fileObject$file$name2 = (_fileObject$file2 = fileObject.file) === null || _fileObject$file2 === void 0 ? void 0 : _fileObject$file2.name) !== null && _fileObject$file$name2 !== void 0 ? _fileObject$file$name2 : 'file', "-").concat(i),
101
+ className: clsx(classes.imageContainer, previewGridClasses.item)
102
+ }), getPreviewIcon(fileObject, classes), showFileNames && /*#__PURE__*/jsx(Typography, {
103
+ variant: "body1",
104
+ component: "p",
105
+ children: fileObject.file.name
106
+ }), /*#__PURE__*/jsx(Fab, {
107
+ onClick: handleRemove(i),
108
+ "aria-label": "Delete",
109
+ className: classes.removeButton,
110
+ children: /*#__PURE__*/jsx(DeleteIcon, {})
111
+ }));
112
+ })
113
+ }));
114
+ }
115
+ PreviewList.propTypes = {
116
+ classes: PropTypes.object.isRequired,
117
+ fileObjects: PropTypes.arrayOf(PropTypes.object).isRequired,
118
+ getPreviewIcon: PropTypes.func.isRequired,
119
+ handleRemove: PropTypes.func.isRequired,
120
+ previewChipProps: PropTypes.object,
121
+ previewGridClasses: PropTypes.object,
122
+ previewGridProps: PropTypes.object,
123
+ showFileNames: PropTypes.bool,
124
+ useChipsForPreview: PropTypes.bool
125
+ };
126
+ var PreviewList$1 = withStyles(styles, {
127
+ name: 'MuiDropzonePreviewList',
128
+ defaultTheme: defaultTheme
129
+ })(PreviewList);
130
+
131
+ export { PreviewList$1 as default };
132
+ //# sourceMappingURL=PreviewList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PreviewList.js","sources":["../../../../src/Components/DropZone/components/PreviewList.jsx"],"sourcesContent":["import Chip from '@mui/material/Chip';\r\nimport Fab from '@mui/material/Fab';\r\nimport Grid from '@mui/material/Grid';\r\nimport Typography from '@mui/material/Typography';\r\nimport {withStyles} from '@mui/styles';\r\nimport DeleteIcon from '@mui/icons-material/Delete';\r\nimport clsx from 'clsx';\r\nimport * as React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { defaultTheme } from '../helpers';\r\n\r\nconst styles = ({palette, shape, spacing}) => ({\r\n root: {},\r\n imageContainer: {\r\n position: 'relative',\r\n zIndex: 10,\r\n textAlign: 'center',\r\n '&:hover $image': {\r\n opacity: 0.3,\r\n },\r\n '&:hover $removeButton': {\r\n opacity: 1,\r\n },\r\n },\r\n image: {\r\n height: 100,\r\n width: 'initial',\r\n maxWidth: '100%',\r\n color: palette.text.primary,\r\n transition: 'all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms',\r\n boxSizing: 'border-box',\r\n boxShadow: 'rgba(0, 0, 0, 0.12) 0 1px 6px, rgba(0, 0, 0, 0.12) 0 1px 4px',\r\n borderRadius: shape.borderRadius,\r\n zIndex: 5,\r\n opacity: 1,\r\n },\r\n removeButton: {\r\n transition: '.5s ease',\r\n position: 'absolute',\r\n opacity: 0,\r\n top: spacing(-1),\r\n right: spacing(-1),\r\n width: 40,\r\n height: 40,\r\n '&:focus': {\r\n opacity: 1,\r\n },\r\n },\r\n});\r\n\r\nfunction PreviewList({\r\n fileObjects,\r\n handleRemove,\r\n showFileNames,\r\n useChipsForPreview,\r\n previewChipProps,\r\n previewGridClasses,\r\n previewGridProps,\r\n classes,\r\n getPreviewIcon,\r\n}) {\r\n if (useChipsForPreview) {\r\n return (\r\n <Grid\r\n spacing={1}\r\n direction=\"row\"\r\n {...previewGridProps.container}\r\n container={true}\r\n className={clsx(classes.root, previewGridClasses.container)}\r\n >\r\n {fileObjects.map((fileObject, i) => {\r\n return (\r\n <Grid\r\n {...previewGridProps.item}\r\n item={true}\r\n key={`${fileObject.file?.name ?? 'file'}-${i}`}\r\n className={classes.imageContainer}\r\n >\r\n <Chip\r\n variant=\"outlined\"\r\n {...previewChipProps}\r\n label={fileObject.file.name}\r\n onDelete={handleRemove(i)}\r\n />\r\n </Grid>\r\n );\r\n })}\r\n </Grid>\r\n );\r\n }\r\n\r\n return (\r\n <Grid\r\n spacing={8}\r\n {...previewGridProps.container}\r\n container={true}\r\n className={clsx(classes.root, previewGridClasses.container)}\r\n >\r\n {fileObjects.map((fileObject, i) => {\r\n return (\r\n <Grid\r\n xs={4}\r\n {...previewGridProps.item}\r\n item={true}\r\n key={`${fileObject.file?.name ?? 'file'}-${i}`}\r\n className={clsx(classes.imageContainer, previewGridClasses.item)}\r\n >\r\n {getPreviewIcon(fileObject, classes)}\r\n\r\n {showFileNames && (\r\n <Typography variant=\"body1\" component=\"p\">\r\n {fileObject.file.name}\r\n </Typography>\r\n )}\r\n\r\n <Fab\r\n onClick={handleRemove(i)}\r\n aria-label=\"Delete\"\r\n className={classes.removeButton}\r\n >\r\n <DeleteIcon />\r\n </Fab>\r\n </Grid>\r\n );\r\n })}\r\n </Grid>\r\n );\r\n}\r\n\r\nPreviewList.propTypes = {\r\n classes: PropTypes.object.isRequired,\r\n fileObjects: PropTypes.arrayOf(PropTypes.object).isRequired,\r\n getPreviewIcon: PropTypes.func.isRequired,\r\n handleRemove: PropTypes.func.isRequired,\r\n previewChipProps: PropTypes.object,\r\n previewGridClasses: PropTypes.object,\r\n previewGridProps: PropTypes.object,\r\n showFileNames: PropTypes.bool,\r\n useChipsForPreview: PropTypes.bool,\r\n};\r\n\r\nexport default withStyles(styles, {name: 'MuiDropzonePreviewList',defaultTheme})(PreviewList);\r\n"],"names":["styles","_ref","palette","shape","spacing","root","imageContainer","position","zIndex","textAlign","opacity","image","height","width","maxWidth","color","text","primary","transition","boxSizing","boxShadow","borderRadius","removeButton","top","right","PreviewList","_ref2","fileObjects","handleRemove","showFileNames","useChipsForPreview","previewChipProps","previewGridClasses","previewGridProps","classes","getPreviewIcon","_jsx","Grid","_objectSpread","direction","container","className","clsx","children","map","fileObject","i","_fileObject$file$name","_fileObject$file","_createElement","item","key","concat","file","name","Chip","variant","label","onDelete","_fileObject$file$name2","_fileObject$file2","xs","Typography","component","Fab","onClick","DeleteIcon","propTypes","PropTypes","object","isRequired","arrayOf","func","bool","withStyles","defaultTheme"],"mappings":";;;;;;;;;;;;;AAWA,IAAMA,MAAM,GAAG,SAATA,MAAMA,CAAAC,IAAA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AAM,EAAE;AAACsD,EAAAA,IAAI,EAAE,wBAAwB;AAACqB,EAAAA,YAAY,EAAZA;AAAY,CAAC,CAAC,CAAClD,WAAW,CAAC;;;;"}
@@ -0,0 +1,3 @@
1
+ declare const _default: React.JSXElementConstructor<Omit<React.RefAttributes<any>, "classes"> & import("@mui/styles").StyledComponentProps<"icon" | "message" | "successAlert" | "errorAlert" | "infoAlert" | "warningAlert" | "closeButton"> & object>;
2
+ export default _default;
3
+ import * as React from "react";