ish-ui 1.0.2 → 1.0.4

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 (411) hide show
  1. package/dist/actions/FieldProcessing.d.ts +10 -0
  2. package/{src/actions/FieldProcessing.ts → dist/actions/FieldProcessing.js} +8 -11
  3. package/dist/actions/FieldProcessing.js.map +1 -0
  4. package/dist/actions/index.d.ts +1 -0
  5. package/dist/actions/index.js +9 -0
  6. package/dist/actions/index.js.map +1 -0
  7. package/dist/appBar/AppBarHelpMenu.d.ts +3 -0
  8. package/dist/appBar/AppBarHelpMenu.js +78 -0
  9. package/dist/appBar/AppBarHelpMenu.js.map +1 -0
  10. package/dist/appBar/index.d.ts +1 -0
  11. package/dist/appBar/index.js +9 -0
  12. package/dist/appBar/index.js.map +1 -0
  13. package/dist/buttons/AddButton.d.ts +14 -0
  14. package/dist/buttons/AddButton.js +10 -0
  15. package/dist/buttons/AddButton.js.map +1 -0
  16. package/dist/buttons/TimetableButton.d.ts +3 -0
  17. package/dist/buttons/TimetableButton.js +13 -0
  18. package/dist/buttons/TimetableButton.js.map +1 -0
  19. package/dist/buttons/index.d.ts +2 -0
  20. package/dist/buttons/index.js +10 -0
  21. package/dist/buttons/index.js.map +1 -0
  22. package/dist/colorPicker/ColorPicker.d.ts +11 -0
  23. package/dist/colorPicker/ColorPicker.js +133 -0
  24. package/dist/colorPicker/ColorPicker.js.map +1 -0
  25. package/dist/colorPicker/index.d.ts +1 -0
  26. package/{src/buttons/index.ts → dist/colorPicker/index.js} +2 -3
  27. package/dist/colorPicker/index.js.map +1 -0
  28. package/dist/dialog/BrowserWarning.d.ts +3 -0
  29. package/dist/dialog/BrowserWarning.js +17 -0
  30. package/dist/dialog/BrowserWarning.js.map +1 -0
  31. package/dist/dialog/confirm/ConfirmBase.d.ts +7 -0
  32. package/dist/dialog/confirm/ConfirmBase.js +30 -0
  33. package/dist/dialog/confirm/ConfirmBase.js.map +1 -0
  34. package/dist/dialog/index.d.ts +3 -0
  35. package/{src/dialog/index.ts → dist/dialog/index.js} +2 -2
  36. package/dist/dialog/index.js.map +1 -0
  37. package/dist/dialog/message/Message.d.ts +3 -0
  38. package/dist/dialog/message/Message.js +92 -0
  39. package/dist/dialog/message/Message.js.map +1 -0
  40. package/dist/documents/DocumentIconsChooser.d.ts +3 -0
  41. package/dist/documents/DocumentIconsChooser.js +52 -0
  42. package/dist/documents/DocumentIconsChooser.js.map +1 -0
  43. package/dist/documents/index.d.ts +2 -0
  44. package/{src/documents/index.ts → dist/documents/index.js} +1 -1
  45. package/dist/documents/index.js.map +1 -0
  46. package/dist/documents/utils/index.d.ts +7 -0
  47. package/dist/documents/utils/index.js +62 -0
  48. package/dist/documents/utils/index.js.map +1 -0
  49. package/dist/dynamicSizeList/DynamicSizeList.d.ts +21 -0
  50. package/dist/dynamicSizeList/DynamicSizeList.js +170 -0
  51. package/dist/dynamicSizeList/DynamicSizeList.js.map +1 -0
  52. package/dist/dynamicSizeList/index.d.ts +1 -0
  53. package/{src/dynamicSizeList/index.ts → dist/dynamicSizeList/index.js} +1 -1
  54. package/dist/dynamicSizeList/index.js.map +1 -0
  55. package/dist/fieldMessage/ErrorMessage.d.ts +8 -0
  56. package/{src/fieldMessage/ErrorMessage.tsx → dist/fieldMessage/ErrorMessage.js} +4 -17
  57. package/dist/fieldMessage/ErrorMessage.js.map +1 -0
  58. package/dist/fieldMessage/WarningMessage.d.ts +8 -0
  59. package/{src/fieldMessage/WarningMessage.tsx → dist/fieldMessage/WarningMessage.js} +4 -17
  60. package/dist/fieldMessage/WarningMessage.js.map +1 -0
  61. package/dist/fieldMessage/index.d.ts +3 -0
  62. package/{src/fieldMessage/index.ts → dist/fieldMessage/index.js} +1 -1
  63. package/dist/fieldMessage/index.js.map +1 -0
  64. package/dist/fieldMessage/styles.d.ts +3 -0
  65. package/dist/fieldMessage/styles.js +19 -0
  66. package/dist/fieldMessage/styles.js.map +1 -0
  67. package/dist/fileUploader/FileUploaderDialog.d.ts +15 -0
  68. package/dist/fileUploader/FileUploaderDialog.js +100 -0
  69. package/dist/fileUploader/FileUploaderDialog.js.map +1 -0
  70. package/dist/fileUploader/index.d.ts +1 -0
  71. package/dist/fileUploader/index.js +9 -0
  72. package/dist/fileUploader/index.js.map +1 -0
  73. package/dist/formFields/CheckboxField.d.ts +7 -0
  74. package/dist/formFields/CheckboxField.js +68 -0
  75. package/dist/formFields/CheckboxField.js.map +1 -0
  76. package/dist/formFields/CodeEditorField.d.ts +6 -0
  77. package/dist/formFields/CodeEditorField.js +70 -0
  78. package/dist/formFields/CodeEditorField.js.map +1 -0
  79. package/dist/formFields/ColoredCheckBox.d.ts +3 -0
  80. package/dist/formFields/ColoredCheckBox.js +42 -0
  81. package/dist/formFields/ColoredCheckBox.js.map +1 -0
  82. package/dist/formFields/DateTimeField.d.ts +2 -0
  83. package/dist/formFields/DateTimeField.js +28 -0
  84. package/dist/formFields/DateTimeField.js.map +1 -0
  85. package/dist/formFields/EditInPlaceDateTimeField.d.ts +10 -0
  86. package/dist/formFields/EditInPlaceDateTimeField.js +189 -0
  87. package/dist/formFields/EditInPlaceDateTimeField.js.map +1 -0
  88. package/dist/formFields/EditInPlaceDurationField.d.ts +4 -0
  89. package/dist/formFields/EditInPlaceDurationField.js +64 -0
  90. package/dist/formFields/EditInPlaceDurationField.js.map +1 -0
  91. package/dist/formFields/EditInPlaceField.d.ts +10 -0
  92. package/dist/formFields/EditInPlaceField.js +59 -0
  93. package/dist/formFields/EditInPlaceField.js.map +1 -0
  94. package/dist/formFields/EditInPlaceFieldBase.d.ts +28 -0
  95. package/dist/formFields/EditInPlaceFieldBase.js +124 -0
  96. package/dist/formFields/EditInPlaceFieldBase.js.map +1 -0
  97. package/dist/formFields/EditInPlaceFileField.d.ts +7 -0
  98. package/dist/formFields/EditInPlaceFileField.js +61 -0
  99. package/dist/formFields/EditInPlaceFileField.js.map +1 -0
  100. package/dist/formFields/EditInPlaceMoneyField.d.ts +9 -0
  101. package/dist/formFields/EditInPlaceMoneyField.js +38 -0
  102. package/dist/formFields/EditInPlaceMoneyField.js.map +1 -0
  103. package/dist/formFields/EditInPlacePhoneField.d.ts +4 -0
  104. package/dist/formFields/EditInPlacePhoneField.js +70 -0
  105. package/dist/formFields/EditInPlacePhoneField.js.map +1 -0
  106. package/dist/formFields/EditInPlaceSearchSelect.d.ts +4 -0
  107. package/dist/formFields/EditInPlaceSearchSelect.js +322 -0
  108. package/dist/formFields/EditInPlaceSearchSelect.js.map +1 -0
  109. package/dist/formFields/FieldAdornments.d.ts +13 -0
  110. package/dist/formFields/FieldAdornments.js +28 -0
  111. package/dist/formFields/FieldAdornments.js.map +1 -0
  112. package/dist/formFields/FilePreview.d.ts +17 -0
  113. package/dist/formFields/FilePreview.js +78 -0
  114. package/dist/formFields/FilePreview.js.map +1 -0
  115. package/dist/formFields/FormRadioButtons.d.ts +3 -0
  116. package/dist/formFields/FormRadioButtons.js +28 -0
  117. package/dist/formFields/FormRadioButtons.js.map +1 -0
  118. package/dist/formFields/SelectCustomComponents.d.ts +5 -0
  119. package/dist/formFields/SelectCustomComponents.js +183 -0
  120. package/dist/formFields/SelectCustomComponents.js.map +1 -0
  121. package/dist/formFields/Switch.d.ts +7 -0
  122. package/dist/formFields/Switch.js +117 -0
  123. package/dist/formFields/Switch.js.map +1 -0
  124. package/dist/formFields/TextField.d.ts +6 -0
  125. package/dist/formFields/TextField.js +43 -0
  126. package/dist/formFields/TextField.js.map +1 -0
  127. package/dist/formFields/UneditableBase.d.ts +17 -0
  128. package/dist/formFields/UneditableBase.js +49 -0
  129. package/dist/formFields/UneditableBase.js.map +1 -0
  130. package/dist/formFields/index.d.ts +19 -0
  131. package/{src/formFields/index.ts → dist/formFields/index.js} +2 -2
  132. package/dist/formFields/index.js.map +1 -0
  133. package/dist/index.d.ts +18 -0
  134. package/{src/index.ts → dist/index.js} +2 -2
  135. package/dist/index.js.map +1 -0
  136. package/dist/layout/InfoPill.d.ts +7 -0
  137. package/{src/layout/InfoPill.tsx → dist/layout/InfoPill.js} +15 -24
  138. package/dist/layout/InfoPill.js.map +1 -0
  139. package/dist/layout/index.d.ts +2 -0
  140. package/{src/layout/index.ts → dist/layout/index.js} +2 -2
  141. package/dist/layout/index.js.map +1 -0
  142. package/dist/layout/resizable/ResizableWrapper.d.ts +14 -0
  143. package/dist/layout/resizable/ResizableWrapper.js +43 -0
  144. package/dist/layout/resizable/ResizableWrapper.js.map +1 -0
  145. package/dist/markdownEditor/HtmlEditor.d.ts +15 -0
  146. package/dist/markdownEditor/HtmlEditor.js +19 -0
  147. package/dist/markdownEditor/HtmlEditor.js.map +1 -0
  148. package/dist/markdownEditor/WysiwygEditor.d.ts +8 -0
  149. package/dist/markdownEditor/WysiwygEditor.js +101 -0
  150. package/dist/markdownEditor/WysiwygEditor.js.map +1 -0
  151. package/dist/markdownEditor/index.d.ts +4 -0
  152. package/{src/markdownEditor/index.ts → dist/markdownEditor/index.js} +2 -2
  153. package/dist/markdownEditor/index.js.map +1 -0
  154. package/dist/markdownEditor/style.d.ts +1 -0
  155. package/dist/markdownEditor/style.js +186 -0
  156. package/dist/markdownEditor/style.js.map +1 -0
  157. package/dist/markdownEditor/utils/index.d.ts +9 -0
  158. package/dist/markdownEditor/utils/index.js +39 -0
  159. package/dist/markdownEditor/utils/index.js.map +1 -0
  160. package/dist/model/AppBar.d.ts +11 -0
  161. package/{src/actions/index.ts → dist/model/AppBar.js} +2 -3
  162. package/dist/model/AppBar.js.map +1 -0
  163. package/dist/model/CommomObjects.d.ts +5 -0
  164. package/dist/model/CommomObjects.js +2 -0
  165. package/dist/model/CommomObjects.js.map +1 -0
  166. package/{src/model/CommonFunctions.ts → dist/model/CommonFunctions.d.ts} +0 -12
  167. package/dist/model/CommonFunctions.js +6 -0
  168. package/dist/model/CommonFunctions.js.map +1 -0
  169. package/dist/model/Confirm.d.ts +16 -0
  170. package/dist/model/Confirm.js +9 -0
  171. package/dist/model/Confirm.js.map +1 -0
  172. package/dist/model/Fields.d.ts +251 -0
  173. package/{src/appBar/index.ts → dist/model/Fields.js} +2 -2
  174. package/dist/model/Fields.js.map +1 -0
  175. package/dist/model/NestedEntity.d.ts +9 -0
  176. package/dist/model/NestedEntity.js +6 -0
  177. package/dist/model/NestedEntity.js.map +1 -0
  178. package/dist/model/Theme.d.ts +34 -0
  179. package/dist/model/Theme.js +19 -0
  180. package/dist/model/Theme.js.map +1 -0
  181. package/dist/model/index.d.ts +7 -0
  182. package/{src/model/index.ts → dist/model/index.js} +1 -2
  183. package/dist/model/index.js.map +1 -0
  184. package/dist/styles/GlobalStylesProvider.d.ts +3 -0
  185. package/dist/styles/GlobalStylesProvider.js +418 -0
  186. package/dist/styles/GlobalStylesProvider.js.map +1 -0
  187. package/dist/styles/StylesProviderCustom.d.ts +3 -0
  188. package/dist/styles/StylesProviderCustom.js +7 -0
  189. package/dist/styles/StylesProviderCustom.js.map +1 -0
  190. package/dist/styles/animateStyles.d.ts +3 -0
  191. package/dist/styles/animateStyles.js +34 -0
  192. package/dist/styles/animateStyles.js.map +1 -0
  193. package/dist/styles/bootstrap.d.ts +491 -0
  194. package/dist/styles/bootstrap.js +497 -0
  195. package/dist/styles/bootstrap.js.map +1 -0
  196. package/dist/styles/hooks.d.ts +6 -0
  197. package/dist/styles/hooks.js +39 -0
  198. package/dist/styles/hooks.js.map +1 -0
  199. package/dist/styles/index.d.ts +9 -0
  200. package/{src/styles/index.ts → dist/styles/index.js} +1 -2
  201. package/dist/styles/index.js.map +1 -0
  202. package/dist/styles/makeStyles.d.ts +3 -0
  203. package/dist/styles/makeStyles.js +10 -0
  204. package/dist/styles/makeStyles.js.map +1 -0
  205. package/dist/styles/mixins/common.d.ts +8 -0
  206. package/dist/styles/mixins/common.js +33 -0
  207. package/dist/styles/mixins/common.js.map +1 -0
  208. package/dist/styles/mixins/keyframes.d.ts +3 -0
  209. package/{src/styles/mixins/keyframes.ts → dist/styles/mixins/keyframes.js} +3 -9
  210. package/dist/styles/mixins/keyframes.js.map +1 -0
  211. package/dist/styles/mixins/prefixer.d.ts +1 -0
  212. package/dist/styles/mixins/prefixer.js +24 -0
  213. package/dist/styles/mixins/prefixer.js.map +1 -0
  214. package/dist/tagsInput/AddTagMenu.d.ts +11 -0
  215. package/dist/tagsInput/AddTagMenu.js +37 -0
  216. package/dist/tagsInput/AddTagMenu.js.map +1 -0
  217. package/dist/tagsInput/AddTagMenuItem.d.ts +10 -0
  218. package/dist/tagsInput/AddTagMenuItem.js +27 -0
  219. package/dist/tagsInput/AddTagMenuItem.js.map +1 -0
  220. package/dist/tagsInput/TagInputList.d.ts +2 -0
  221. package/dist/tagsInput/TagInputList.js +279 -0
  222. package/dist/tagsInput/TagInputList.js.map +1 -0
  223. package/{src/tagsInput/index.ts → dist/tagsInput/index.d.ts} +1 -2
  224. package/dist/tagsInput/index.js +4 -0
  225. package/dist/tagsInput/index.js.map +1 -0
  226. package/dist/themes/appTheme.d.ts +4 -0
  227. package/dist/themes/appTheme.js +323 -0
  228. package/dist/themes/appTheme.js.map +1 -0
  229. package/dist/themes/index.d.ts +2 -0
  230. package/{src/themes/index.ts → dist/themes/index.js} +2 -2
  231. package/dist/themes/index.js.map +1 -0
  232. package/dist/themes/ishTheme.d.ts +8 -0
  233. package/dist/themes/ishTheme.js +352 -0
  234. package/dist/themes/ishTheme.js.map +1 -0
  235. package/dist/timetable/datePeriodFilter/DayPeriodIcons.d.ts +8 -0
  236. package/dist/timetable/datePeriodFilter/DayPeriodIcons.js +28 -0
  237. package/dist/timetable/datePeriodFilter/DayPeriodIcons.js.map +1 -0
  238. package/dist/timetable/datePeriodFilter/index.d.ts +1 -0
  239. package/dist/timetable/datePeriodFilter/index.js +9 -0
  240. package/dist/timetable/datePeriodFilter/index.js.map +1 -0
  241. package/dist/timetable/index.d.ts +2 -0
  242. package/{src/timetable/index.ts → dist/timetable/index.js} +2 -3
  243. package/dist/timetable/index.js.map +1 -0
  244. package/dist/timetable/miniCalendar/CalendarDay.d.ts +15 -0
  245. package/dist/timetable/miniCalendar/CalendarDay.js +65 -0
  246. package/dist/timetable/miniCalendar/CalendarDay.js.map +1 -0
  247. package/dist/timetable/miniCalendar/CalendarHeader.d.ts +10 -0
  248. package/dist/timetable/miniCalendar/CalendarHeader.js +23 -0
  249. package/dist/timetable/miniCalendar/CalendarHeader.js.map +1 -0
  250. package/dist/timetable/miniCalendar/CalendarWeekPanel.d.ts +8 -0
  251. package/dist/timetable/miniCalendar/CalendarWeekPanel.js +19 -0
  252. package/dist/timetable/miniCalendar/CalendarWeekPanel.js.map +1 -0
  253. package/dist/timetable/miniCalendar/WeekDay.d.ts +10 -0
  254. package/dist/timetable/miniCalendar/WeekDay.js +26 -0
  255. package/dist/timetable/miniCalendar/WeekDay.js.map +1 -0
  256. package/dist/timetable/miniCalendar/index.d.ts +4 -0
  257. package/{src/timetable/miniCalendar/index.ts → dist/timetable/miniCalendar/index.js} +2 -3
  258. package/dist/timetable/miniCalendar/index.js.map +1 -0
  259. package/dist/utils/DOM/Links.d.ts +1 -0
  260. package/{src/utils/DOM/Links.ts → dist/utils/DOM/Links.js} +5 -9
  261. package/dist/utils/DOM/Links.js.map +1 -0
  262. package/dist/utils/DOM/getCaretCoordinates.d.ts +6 -0
  263. package/dist/utils/DOM/getCaretCoordinates.js +110 -0
  264. package/dist/utils/DOM/getCaretCoordinates.js.map +1 -0
  265. package/dist/utils/DOM/getOS.d.ts +2 -0
  266. package/dist/utils/DOM/getOS.js +33 -0
  267. package/dist/utils/DOM/getOS.js.map +1 -0
  268. package/dist/utils/DOM/index.d.ts +5 -0
  269. package/dist/utils/DOM/index.js +33 -0
  270. package/dist/utils/DOM/index.js.map +1 -0
  271. package/dist/utils/dates/datesNormalizing.d.ts +1 -0
  272. package/{src/utils/dates/datesNormalizing.ts → dist/utils/dates/datesNormalizing.js} +1 -1
  273. package/dist/utils/dates/datesNormalizing.js.map +1 -0
  274. package/dist/utils/dates/format.d.ts +24 -0
  275. package/{src/utils/dates/format.ts → dist/utils/dates/format.js} +1 -24
  276. package/dist/utils/dates/format.js.map +1 -0
  277. package/dist/utils/dates/formatRelative.d.ts +1 -0
  278. package/dist/utils/dates/formatRelative.js +15 -0
  279. package/dist/utils/dates/formatRelative.js.map +1 -0
  280. package/dist/utils/dates/formatString.d.ts +2 -0
  281. package/dist/utils/dates/formatString.js +196 -0
  282. package/dist/utils/dates/formatString.js.map +1 -0
  283. package/dist/utils/dates/formatTimezone.d.ts +2 -0
  284. package/dist/utils/dates/formatTimezone.js +36 -0
  285. package/dist/utils/dates/formatTimezone.js.map +1 -0
  286. package/dist/utils/dates/index.d.ts +6 -0
  287. package/{src/utils/dates/index.ts → dist/utils/dates/index.js} +1 -2
  288. package/dist/utils/dates/index.js.map +1 -0
  289. package/dist/utils/dates/timetable.d.ts +5 -0
  290. package/dist/utils/dates/timetable.js +39 -0
  291. package/dist/utils/dates/timetable.js.map +1 -0
  292. package/dist/utils/events/index.d.ts +2 -0
  293. package/{src/utils/events/index.ts → dist/utils/events/index.js} +1 -2
  294. package/dist/utils/events/index.js.map +1 -0
  295. package/dist/utils/fields/index.d.ts +1 -0
  296. package/{src/utils/fields/index.ts → dist/utils/fields/index.js} +13 -15
  297. package/dist/utils/fields/index.js.map +1 -0
  298. package/dist/utils/formatting/PhoneMasks.d.ts +304 -0
  299. package/dist/utils/formatting/PhoneMasks.js +319 -0
  300. package/dist/utils/formatting/PhoneMasks.js.map +1 -0
  301. package/dist/utils/formatting/index.d.ts +2 -0
  302. package/dist/utils/formatting/index.js +11 -0
  303. package/dist/utils/formatting/index.js.map +1 -0
  304. package/dist/utils/hooks/index.d.ts +1 -0
  305. package/{src/utils/hooks/index.ts → dist/utils/hooks/index.js} +8 -11
  306. package/dist/utils/hooks/index.js.map +1 -0
  307. package/dist/utils/index.d.ts +7 -0
  308. package/{src/utils/index.ts → dist/utils/index.js} +1 -1
  309. package/dist/utils/index.js.map +1 -0
  310. package/dist/utils/numbers/decimalCalculation.d.ts +4 -0
  311. package/dist/utils/numbers/decimalCalculation.js +22 -0
  312. package/dist/utils/numbers/decimalCalculation.js.map +1 -0
  313. package/dist/utils/numbers/index.d.ts +2 -0
  314. package/{src/utils/numbers/index.ts → dist/utils/numbers/index.js} +2 -3
  315. package/dist/utils/numbers/index.js.map +1 -0
  316. package/dist/utils/numbers/numbersNormalizing.d.ts +10 -0
  317. package/dist/utils/numbers/numbersNormalizing.js +45 -0
  318. package/dist/utils/numbers/numbersNormalizing.js.map +1 -0
  319. package/dist/utils/stubs/index.d.ts +3 -0
  320. package/{src/utils/stubs/index.tsx → dist/utils/stubs/index.js} +2 -3
  321. package/dist/utils/stubs/index.js.map +1 -0
  322. package/dist/utils/tags/index.d.ts +3 -0
  323. package/dist/utils/tags/index.js +43 -0
  324. package/dist/utils/tags/index.js.map +1 -0
  325. package/{src/colorPicker/index.ts → index.ts} +2 -1
  326. package/package.json +1 -1
  327. package/.eslintrc.json +0 -39
  328. package/.gitattributes +0 -3
  329. package/.github/workflows/release-package.yml +0 -33
  330. package/.prettierrc +0 -5
  331. package/src/appBar/AppBarHelpMenu.tsx +0 -139
  332. package/src/buttons/AddButton.tsx +0 -30
  333. package/src/buttons/TimetableButton.tsx +0 -19
  334. package/src/colorPicker/ColorPicker.tsx +0 -223
  335. package/src/dialog/BrowserWarning.tsx +0 -24
  336. package/src/dialog/confirm/ConfirmBase.tsx +0 -59
  337. package/src/dialog/message/Message.tsx +0 -140
  338. package/src/documents/DocumentIconsChooser.tsx +0 -69
  339. package/src/documents/utils/index.tsx +0 -71
  340. package/src/dynamicSizeList/DynamicSizeList.tsx +0 -208
  341. package/src/fieldMessage/styles.ts +0 -21
  342. package/src/fileUploader/FileUploaderDialog.tsx +0 -158
  343. package/src/fileUploader/index.ts +0 -9
  344. package/src/formFields/CheckboxField.tsx +0 -90
  345. package/src/formFields/CodeEditorField.tsx +0 -103
  346. package/src/formFields/ColoredCheckBox.tsx +0 -74
  347. package/src/formFields/DateTimeField.tsx +0 -61
  348. package/src/formFields/EditInPlaceDateTimeField.tsx +0 -285
  349. package/src/formFields/EditInPlaceDurationField.tsx +0 -79
  350. package/src/formFields/EditInPlaceField.tsx +0 -131
  351. package/src/formFields/EditInPlaceFieldBase.tsx +0 -241
  352. package/src/formFields/EditInPlaceFileField.tsx +0 -67
  353. package/src/formFields/EditInPlaceMoneyField.tsx +0 -64
  354. package/src/formFields/EditInPlacePhoneField.tsx +0 -97
  355. package/src/formFields/EditInPlaceSearchSelect.tsx +0 -562
  356. package/src/formFields/FieldAdornments.tsx +0 -70
  357. package/src/formFields/FilePreview.tsx +0 -149
  358. package/src/formFields/FormRadioButtons.tsx +0 -62
  359. package/src/formFields/SelectCustomComponents.tsx +0 -228
  360. package/src/formFields/Switch.tsx +0 -146
  361. package/src/formFields/TextField.tsx +0 -60
  362. package/src/formFields/UneditableBase.tsx +0 -101
  363. package/src/layout/resizable/ResizableWrapper.tsx +0 -87
  364. package/src/markdownEditor/HtmlEditor.tsx +0 -44
  365. package/src/markdownEditor/WysiwygEditor.tsx +0 -137
  366. package/src/markdownEditor/style.ts +0 -188
  367. package/src/markdownEditor/utils/index.ts +0 -48
  368. package/src/model/AppBar.ts +0 -20
  369. package/src/model/CommomObjects.ts +0 -8
  370. package/src/model/Confirm.ts +0 -27
  371. package/src/model/Fields.ts +0 -254
  372. package/src/model/NestedEntity.ts +0 -14
  373. package/src/model/Theme.ts +0 -42
  374. package/src/styles/GlobalStylesProvider.tsx +0 -520
  375. package/src/styles/StylesProviderCustom.tsx +0 -8
  376. package/src/styles/animateStyles.ts +0 -94
  377. package/src/styles/bootstrap.ts +0 -503
  378. package/src/styles/hooks.ts +0 -44
  379. package/src/styles/makeStyles.ts +0 -21
  380. package/src/styles/mixins/common.ts +0 -40
  381. package/src/styles/mixins/prefixer.ts +0 -21
  382. package/src/tagsInput/AddTagMenu.tsx +0 -74
  383. package/src/tagsInput/AddTagMenuItem.tsx +0 -50
  384. package/src/tagsInput/TagInputList.tsx +0 -428
  385. package/src/themes/appTheme.ts +0 -324
  386. package/src/themes/ishTheme.ts +0 -401
  387. package/src/timetable/datePeriodFilter/DayPeriodIcons.tsx +0 -95
  388. package/src/timetable/datePeriodFilter/index.ts +0 -10
  389. package/src/timetable/miniCalendar/CalendarDay.tsx +0 -109
  390. package/src/timetable/miniCalendar/CalendarHeader.tsx +0 -37
  391. package/src/timetable/miniCalendar/CalendarWeekPanel.tsx +0 -35
  392. package/src/timetable/miniCalendar/WeekDay.tsx +0 -49
  393. package/src/utils/DOM/getCaretCoordinates.ts +0 -122
  394. package/src/utils/DOM/getOS.ts +0 -32
  395. package/src/utils/DOM/index.ts +0 -34
  396. package/src/utils/dates/formatRelative.ts +0 -22
  397. package/src/utils/dates/formatString.ts +0 -233
  398. package/src/utils/dates/formatTimezone.ts +0 -37
  399. package/src/utils/dates/timetable.ts +0 -46
  400. package/src/utils/formatting/PhoneMasks.ts +0 -320
  401. package/src/utils/formatting/index.tsx +0 -20
  402. package/src/utils/numbers/decimalCalculation.ts +0 -26
  403. package/src/utils/numbers/numbersNormalizing.ts +0 -52
  404. package/src/utils/tags/index.ts +0 -53
  405. package/tools/webpack/webpack.aliases.js +0 -13
  406. package/tools/webpack/webpack.config.dev.js +0 -29
  407. package/tools/webpack/webpack.config.prod.js +0 -36
  408. package/tools/webpack/webpack.helpers.js +0 -26
  409. package/tools/webpack/webpack.plugins.js +0 -15
  410. package/tools/webpack/webpack.rules.js +0 -51
  411. package/tsconfig.json +0 -24
@@ -1,140 +0,0 @@
1
- /*
2
- * Copyright ish group pty ltd. All rights reserved. https://www.ish.com.au
3
- * No copying or use of this code is allowed without permission in writing from ish.
4
- */
5
-
6
- import React from 'react';
7
- import clsx from 'clsx';
8
- import { withStyles } from '@mui/styles';
9
- import Snackbar from '@mui/material/Snackbar';
10
- import IconButton from '@mui/material/IconButton';
11
- import Alert from '@mui/material/Alert';
12
- import CloseIcon from '@mui/icons-material/Close';
13
- import { AnyArgFunction } from '@src/model';
14
-
15
- const styles = theme => ({
16
- close: {
17
- color: theme.palette.primary.contrastText,
18
- width: theme.spacing(4),
19
- height: theme.spacing(4),
20
- padding: theme.spacing(0.5)
21
- },
22
- success: {
23
- maxWidth: 'unset'
24
- },
25
- autoWidth: {
26
- [theme.breakpoints.down('md')]: {
27
- flexGrow: 'unset',
28
- borderRadius: `${theme.shape.borderRadius}px`
29
- }
30
- },
31
- autoWidthRoot: {
32
- [theme.breakpoints.down('md')]: {
33
- left: '24px',
34
- right: 'auto',
35
- bottom: '24px'
36
- }
37
- },
38
- fullScreenMessage: {
39
- maxHeight: 'calc(100vh - 90px)',
40
- overflow: 'auto',
41
- marginRight: theme.spacing(-2),
42
- paddingRight: theme.spacing(2)
43
- }
44
- });
45
-
46
- interface Props {
47
- opened: boolean;
48
- text: string;
49
- clearMessage: AnyArgFunction;
50
- isSuccess?: boolean;
51
- persist?: boolean;
52
- classes?: any;
53
- }
54
-
55
- class Message extends React.Component<Props, any> {
56
- constructor(props) {
57
- super(props);
58
-
59
- this.state = {
60
- success: props.isSuccess,
61
- text: props.text,
62
- persist: props.persist
63
- };
64
- }
65
-
66
- componentDidUpdate(prevProps) {
67
- if (this.props.opened !== prevProps.opened) {
68
- this.setState({
69
- success: this.props.opened ? this.props.isSuccess : this.state.success,
70
- text: this.props.opened ? this.props.text : this.state.text,
71
- persist: this.props.opened ? this.props.persist : this.state.persist
72
- });
73
- }
74
- }
75
-
76
- handleClose = () => {
77
- if (!this.state.persist) {
78
- this.props.clearMessage();
79
- }
80
- };
81
-
82
- render() {
83
- const { classes, opened, clearMessage } = this.props;
84
-
85
- const { success, text, persist } = this.state;
86
-
87
- return (
88
-
89
- <Snackbar
90
- open={opened}
91
- anchorOrigin={{
92
- vertical: 'bottom',
93
- horizontal: 'left'
94
- }}
95
- classes={{
96
- root: classes.autoWidthRoot
97
- }}
98
- ContentProps={{
99
- classes: {
100
- root: clsx(classes.autoWidth, {
101
- [classes.success]: success
102
- }),
103
- message: persist ? classes.fullScreenMessage : undefined
104
- }
105
- }}
106
- ClickAwayListenerProps={{
107
- onClickAway: this.handleClose
108
- }}
109
- autoHideDuration={persist ? null : 6000}
110
- onClose={this.handleClose}
111
- disableWindowBlurListener={persist}
112
- >
113
- <Alert
114
- variant="filled"
115
- severity={success ? 'success' : 'error'}
116
- classes={{
117
- message: 'text-pre-wrap',
118
- standardError: 'errorBackgroundColor',
119
- standardSuccess: 'successBackgroundColor'
120
- }}
121
- action={(
122
- <IconButton
123
- key="close"
124
- aria-label="Close"
125
- color="inherit"
126
- className={classes.close}
127
- onClick={clearMessage}
128
- >
129
- <CloseIcon />
130
- </IconButton>
131
- )}
132
- >
133
- {text}
134
- </Alert>
135
- </Snackbar>
136
- );
137
- }
138
- }
139
-
140
- export default withStyles(styles as any)(Message);
@@ -1,69 +0,0 @@
1
- /*
2
- * Copyright ish group pty ltd 2023.
3
- *
4
- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License version 3 as published by the Free Software Foundation.
5
- *
6
- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
7
- */
8
-
9
- import * as React from 'react';
10
- import createStyles from '@mui/styles/createStyles';
11
- import withStyles from '@mui/styles/withStyles';
12
- import clsx from 'clsx';
13
- import { FileTypeIcon } from './utils';
14
-
15
- const styles = theme =>
16
- createStyles({
17
- preview: {
18
- backgroundSize: 'cover',
19
- width: '36px',
20
- height: '48px',
21
- borderRadius: '4px',
22
- marginRight: '16px',
23
- color: 'rgba(0,0,0,.2)',
24
- transition: 'color 200ms ease-in-out',
25
- backgroundPosition: 'center'
26
- },
27
- previewNormal: {
28
- width: '60px',
29
- height: 'calc(100% - 16px)'
30
- },
31
- previewHoverIcon: {
32
- '&:hover': {
33
- color: theme.palette.primary.main
34
- }
35
- },
36
- previewHoverImage: {
37
- '&:hover': {
38
- boxShadow: `0 0 1px 1px ${theme.palette.primary.main}`
39
- }
40
- }
41
- });
42
-
43
- const DocumentIconsChooser = props => {
44
- const {
45
- type, thumbnail, classes, hovered = true, isHeader
46
- } = props;
47
-
48
- return thumbnail ? (
49
- <div
50
- style={{
51
- backgroundImage: `url(data:image;base64,${thumbnail})`
52
- }}
53
- className={clsx(classes.preview, {
54
- [classes.previewHoverImage]: hovered,
55
- [classes.previewNormal]: isHeader
56
- })}
57
- />
58
- ) : (
59
- <div
60
- className={clsx(classes.preview, {
61
- [classes.previewHoverIcon]: hovered
62
- })}
63
- >
64
- <FileTypeIcon mimeType={type} />
65
- </div>
66
- );
67
- };
68
-
69
- export default withStyles(styles)(DocumentIconsChooser);
@@ -1,71 +0,0 @@
1
- /*
2
- * Copyright ish group pty ltd 2022.
3
- *
4
- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License version 3 as published by the Free Software Foundation.
5
- *
6
- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
7
- */
8
-
9
- import React from 'react';
10
- import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
11
-
12
- export const formatDocumentSize = (size: number): string => {
13
- if (size < Math.pow(1024, 2)) {
14
- return `${Math.round(size / 1024)} kb`;
15
- }
16
- if (size < Math.pow(1024, 3)) {
17
- return `${Math.round(size / 1024 / 1024)} Mb`;
18
- }
19
- if (size < Math.pow(1024, 4)) {
20
- return `${Math.round(size / 1024 / 1024 / 1024)} Gb`;
21
- }
22
-
23
- return size.toString();
24
- };
25
-
26
- export const getDocumentContent = (file: File): Promise<string> => {
27
- const reader = new FileReader();
28
-
29
- return new Promise(resolve => {
30
- reader.onload = () => resolve(reader.result);
31
- reader.readAsDataURL(file);
32
- }).then((result: any) => result.replace(`data:${file.type};base64,`, ''));
33
-
34
- };
35
-
36
- export const getDocumentThumbnail = (file: File): Promise<string> => {
37
- if (file.type.match(/image/)) {
38
- return getDocumentContent(file);
39
- }
40
-
41
- return new Promise(resolve => resolve(''));
42
- };
43
-
44
- const getIcon = type => {
45
- switch (type) {
46
- case 'image/tiff':
47
- case 'image/bmp':
48
- case 'image/png':
49
- case 'image/gif':
50
- case 'image/jpeg':
51
- return 'file-image';
52
- case 'application/pdf':
53
- return 'file-pdf';
54
- case 'application/msword':
55
- return 'file-word';
56
- case 'application/vnd.ms-excel':
57
- return 'file-excel';
58
- case 'application/vnd.ms-powerpoint':
59
- return 'file-powerpoint';
60
- case 'application/zip':
61
- return 'file-archive';
62
- case 'application/x-gzip':
63
- return 'file-archive';
64
- case 'application/txt':
65
- return 'file-alt';
66
- default:
67
- return 'file';
68
- }
69
- };
70
-
71
- export const FileTypeIcon = ({ mimeType }) => <FontAwesomeIcon icon={getIcon(mimeType)} fixedWidth className="w-100 h-100" />;
@@ -1,208 +0,0 @@
1
- /*
2
- * Copyright ish group pty ltd 2022.
3
- *
4
- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License version 3 as published by the Free Software Foundation.
5
- *
6
- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
7
- */
8
-
9
- // Temporary implementation
10
- // TODO: Remove component when native DynamicSizeList will be included in react-window v.2
11
- import React from 'react';
12
- import { VariableSizeList } from 'react-window';
13
-
14
- interface Props {
15
- height: number;
16
- itemCount: number;
17
- width: number;
18
- estimatedItemSize: number;
19
- children: any;
20
- listRef?: any;
21
- }
22
-
23
- class ItemMeasurer extends React.Component<any, any> {
24
- _node = null;
25
-
26
- _resizeObserver = null;
27
-
28
- componentDidMount() {
29
- this._measureItem();
30
-
31
- // @ts-ignore
32
- if (typeof window.ResizeObserver !== 'undefined') {
33
- // @ts-ignore
34
- this._resizeObserver = new window.ResizeObserver(this._onResize);
35
-
36
- if (this._node !== null) {
37
- this._resizeObserver.observe(this._node);
38
- }
39
- } else {
40
- //
41
- }
42
- }
43
-
44
- componentWillUnmount() {
45
- if (this._resizeObserver !== null) {
46
- this._resizeObserver.disconnect();
47
- this._resizeObserver = null;
48
- }
49
- }
50
-
51
- render() {
52
- return React.cloneElement(this.props.item, {
53
- ref: this._refSetter
54
- });
55
- }
56
-
57
- _measureItem = () => {
58
- const { handleNewMeasurements, index } = this.props;
59
-
60
- const node = this._node;
61
-
62
- if (node) {
63
- const { height, width } = node.getBoundingClientRect();
64
- const isVisible = height > 0 || width > 0;
65
-
66
- if (isVisible) {
67
- const newSize = Math.ceil(height);
68
-
69
- handleNewMeasurements(index, newSize);
70
- }
71
- }
72
- };
73
-
74
- _refSetter = ref => {
75
- if (this._resizeObserver !== null && this._node !== null) {
76
- this._resizeObserver.unobserve(this._node);
77
- }
78
-
79
- if (ref) {
80
- this._node = ref;
81
- } else {
82
- this._node = null;
83
- }
84
-
85
- if (this._resizeObserver !== null && this._node !== null) {
86
- this._resizeObserver.observe(this._node);
87
- }
88
- };
89
-
90
- _onResize = entries => {
91
- const _this = this;
92
- window.requestAnimationFrame(() => {
93
- if (!Array.isArray(entries) || !entries.length) {
94
- return;
95
- }
96
- _this._measureItem();
97
- });
98
- };
99
- }
100
-
101
- class DynamicSizeList extends React.Component<Props> {
102
- listRef = React.createRef<any>();
103
-
104
- rowSizes = [];
105
-
106
- componentDidMount() {
107
- const ref = this.listRef.current;
108
- if (ref) {
109
- ref.resetAfterIndex(0, true);
110
- }
111
- }
112
-
113
- attachRefs = node => {
114
- const { listRef } = this.props;
115
-
116
- if (node) {
117
- if (!this.listRef.current) {
118
- // @ts-ignore
119
- this.listRef.current = node;
120
- }
121
-
122
- if (typeof listRef === 'function') {
123
- listRef(node);
124
- }
125
-
126
- if (typeof listRef === 'object') {
127
- listRef.current = node;
128
- }
129
- }
130
- };
131
-
132
- render() {
133
- const { children,
134
- ...rest } = this.props;
135
-
136
- return (
137
- <VariableSizeList
138
- {...rest}
139
- ref={this.attachRefs}
140
- itemSize={this.getItemSize}
141
- >
142
- {this.renderItem}
143
- </VariableSizeList>
144
- );
145
- }
146
-
147
- scrollToItem(index, align) {
148
- const ref = this.listRef.current;
149
-
150
- if (ref) {
151
- ref.scrollToItem(index, align);
152
- //
153
- window.requestAnimationFrame(() => {
154
- ref.scrollToItem(index, align);
155
- });
156
- }
157
- }
158
-
159
- renderItem = props => {
160
- // clear height
161
- if (props.style.height !== undefined) {
162
- props.style.height = undefined;
163
- }
164
-
165
- return React.createElement<any>(ItemMeasurer, {
166
- index: props.index,
167
- // @ts-ignore
168
- item: React.createElement(this.props.children, props),
169
- handleNewMeasurements: this.handleNewMeasurements
170
- });
171
- };
172
-
173
- handleNewMeasurements = (index, newSize) => {
174
- const itemSizeDelta = newSize - this.getItemSize(index);
175
-
176
- if (itemSizeDelta !== 0) {
177
- this.rowSizes[index] = newSize;
178
-
179
- const ref = this.listRef.current;
180
-
181
- if (ref) {
182
- const { isScrolling, scrollDirection } = ref.state;
183
-
184
- if (isScrolling && scrollDirection === 'backward') {
185
- ref._outerRef.scrollBy({
186
- top: itemSizeDelta,
187
- left: 0,
188
- behavior: 'auto'
189
- });
190
- }
191
- ref.resetAfterIndex(index, true);
192
- }
193
- }
194
- };
195
-
196
- getItemSize = index => {
197
- // https://react-window.now.sh/#/api/VariableSizeList
198
- const defaultEstimatedItemSize = 50;
199
-
200
- return (
201
- this.rowSizes[index]
202
- || this.props.estimatedItemSize
203
- || defaultEstimatedItemSize
204
- );
205
- };
206
- }
207
-
208
- export default DynamicSizeList;
@@ -1,21 +0,0 @@
1
- /*
2
- * Copyright ish group pty ltd. All rights reserved. https://www.ish.com.au
3
- * No copying or use of this code is allowed without permission in writing from ish.
4
- */
5
-
6
- import { createStyles } from '@mui/styles';
7
- import { AppTheme } from '@src/model';
8
-
9
- export default (theme: AppTheme) => createStyles({
10
- root: {
11
- marginTop: `-${theme.spacing(1)}`,
12
- // @ts-ignore
13
- paddingBottom: `${theme.spacing(2) - 3}`,
14
- },
15
- icon: {
16
- fontSize: theme.spacing(2),
17
- display: 'inline-block',
18
- verticalAlign: 'middle',
19
- marginRight: theme.spacing(0.5),
20
- }
21
- });
@@ -1,158 +0,0 @@
1
- /*
2
- * Copyright ish group pty ltd 2023.
3
- *
4
- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License version 3 as published by the Free Software Foundation.
5
- *
6
- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
7
- */
8
-
9
- import React from 'react';
10
- import clsx from 'clsx';
11
- import { useDropzone } from 'react-dropzone';
12
- import { createStyles, withStyles } from '@mui/styles';
13
- import { darken } from '@mui/material/styles';
14
- import Typography from '@mui/material/Typography';
15
- import Dialog from '@mui/material/Dialog';
16
- import IconButton from '@mui/material/IconButton';
17
- import CloseIcon from '@mui/icons-material/Close';
18
- import Button from '@mui/material/Button';
19
- import { AppTheme } from '@src/model';
20
-
21
- const styles = createStyles((theme: AppTheme) => ({
22
- fileContainer: {
23
- border: `2px dotted ${theme.palette.primary.main}`,
24
- borderRadius: 6,
25
- transition: theme.transitions.create('background-color', {
26
- duration: theme.transitions.duration.shorter,
27
- easing: theme.transitions.easing.easeInOut
28
- })
29
- },
30
- dragActive: {
31
- backgroundColor: darken(theme.palette.background.default, 0.03),
32
- boxShadow: theme.shadows[2]
33
- },
34
- fullScreenFileDropContainer: {
35
- zIndex: 1300,
36
- left: 0,
37
- top: 0,
38
- position: 'fixed'
39
- },
40
- boxDropContainer: {
41
- zIndex: 1400
42
- },
43
- dialogCloseButton: {
44
- right: theme.spacing(1),
45
- top: theme.spacing(1),
46
- color: theme.palette.grey[100]
47
- }
48
- }));
49
-
50
- interface Props {
51
- fileRef?: any;
52
- classes?: any;
53
- opened?: boolean;
54
- backdropEnabled?: boolean;
55
- dialog?: boolean;
56
- onChange?: (acceptedfiles: any[], fileRejections: any[]) => void;
57
- disabled?: boolean;
58
- accept?: string | string[];
59
- onClose?: () => void;
60
- isBackdropDragging?: boolean;
61
- }
62
-
63
- const FileUploaderDialog: React.FC<Props> = (props => {
64
- const {
65
- fileRef, accept, disabled, classes, dialog, onChange, onClose, opened, backdropEnabled, isBackdropDragging
66
- } = props;
67
-
68
- const onFileDrop = (acceptedfiles, fileRejections) => {
69
- if (onChange) onChange(acceptedfiles, fileRejections);
70
- };
71
-
72
- const { getRootProps, getInputProps, isDragActive } = useDropzone({
73
- onDrop: onFileDrop,
74
- multiple: false,
75
- disabled,
76
- accept
77
- } as any);
78
-
79
- const acceptText = () => {
80
- const text = [];
81
- if (Array.isArray(accept)) {
82
- accept.forEach(type => {
83
- const typePart = type.split('/');
84
- if (typePart.length > 1) text.push(`*.${typePart[1]}`);
85
- });
86
- } else {
87
- const typePart = accept.split('/');
88
- if (typePart.length > 1) text.push(`*.${typePart[1]}`);
89
- }
90
- return text.join(', ');
91
- };
92
- const backdropUploaderContent = (
93
- <div {...getRootProps()} className={clsx('w-100 h-100', classes.fullScreenFileDropContainer)}>
94
- <div className="h-100 outline-none overflow-hidden cursor-pointer">
95
- <div className="h-100 p-1">
96
- <input {...getInputProps()} />
97
- </div>
98
- </div>
99
- </div>
100
- );
101
-
102
- const uploadContent = (
103
- <div {...getRootProps()} className={clsx('w-100 overflow-y-auto relative', classes.boxDropContainer, { 'zIndex2': isBackdropDragging })}>
104
- <div className="h-100 outline-none overflow-hidden cursor-pointer">
105
- <div className="h-100 p-1">
106
- <input {...getInputProps()} />
107
- <div
108
- className={clsx('w-100 h-100 flex-column align-items-center justify-content-center text-center p-2 pb-3',
109
- classes.fileContainer,
110
- { [classes.dragActive]: isDragActive })}
111
- >
112
- <Typography variant="subtitle1" gutterBottom className="mb-0">Drop files here</Typography>
113
- <Typography variant="caption" className="mb-1">or</Typography>
114
- <Button
115
- variant="contained"
116
- size="small"
117
- color="primary"
118
- className="mb-1 fontWeight-normal"
119
- >
120
- Browse
121
- </Button>
122
- {accept && (
123
- <Typography variant="caption" color="error">
124
- Please upload only:
125
- {' '}
126
- {acceptText()}
127
- </Typography>
128
- )}
129
- </div>
130
- </div>
131
- </div>
132
- </div>
133
- );
134
-
135
- return dialog ? (
136
- <Dialog
137
- ref={fileRef}
138
- open={opened}
139
- disableEscapeKeyDown
140
- onClose={onClose}
141
- classes={{
142
- paper: 'w-100'
143
- }}
144
- >
145
- <div>
146
- {onClose && (
147
- <IconButton className={clsx('fixed zIndex1401 p-1', classes.dialogCloseButton)} onClick={onClose}>
148
- <CloseIcon fontSize="small" />
149
- </IconButton>
150
- )}
151
- {uploadContent}
152
- {isBackdropDragging && backdropEnabled && backdropUploaderContent}
153
- </div>
154
- </Dialog>
155
- ) : backdropEnabled ? backdropUploaderContent : uploadContent;
156
- });
157
-
158
- export default withStyles(styles)(FileUploaderDialog);
@@ -1,9 +0,0 @@
1
- /*
2
- * Copyright ish group pty ltd 2023.
3
- *
4
- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License version 3 as published by the Free Software Foundation.
5
- *
6
- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
7
- */
8
-
9
- export * from './FileUploaderDialog';