@webiny/app-scheduler 0.0.0-unstable.81ae05e56b

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 (522) hide show
  1. package/Domain/Models/SchedulerItem/SchedulerItem.d.ts +13 -0
  2. package/Domain/Models/SchedulerItem/SchedulerItem.js +17 -0
  3. package/Domain/Models/SchedulerItem/SchedulerItem.js.map +1 -0
  4. package/Domain/Models/SchedulerItem/index.d.ts +1 -0
  5. package/Domain/Models/SchedulerItem/index.js +3 -0
  6. package/Domain/Models/SchedulerItem/index.js.map +1 -0
  7. package/Domain/Models/index.d.ts +1 -0
  8. package/Domain/Models/index.js +3 -0
  9. package/Domain/Models/index.js.map +1 -0
  10. package/Domain/Repositories/SchedulerItems/ISchedulerItemsRepository.d.ts +14 -0
  11. package/Domain/Repositories/SchedulerItems/ISchedulerItemsRepository.js +3 -0
  12. package/Domain/Repositories/SchedulerItems/ISchedulerItemsRepository.js.map +1 -0
  13. package/Domain/Repositories/SchedulerItems/SchedulerItemsRepository.d.ts +36 -0
  14. package/Domain/Repositories/SchedulerItems/SchedulerItemsRepository.js +128 -0
  15. package/Domain/Repositories/SchedulerItems/SchedulerItemsRepository.js.map +1 -0
  16. package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryFactory.d.ts +19 -0
  17. package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryFactory.js +17 -0
  18. package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryFactory.js.map +1 -0
  19. package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryWithLoading.d.ts +17 -0
  20. package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryWithLoading.js +38 -0
  21. package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryWithLoading.js.map +1 -0
  22. package/Domain/Repositories/SchedulerItems/index.d.ts +4 -0
  23. package/Domain/Repositories/SchedulerItems/index.js +5 -0
  24. package/Domain/Repositories/SchedulerItems/index.js.map +1 -0
  25. package/Domain/Repositories/Search/ISearchRepository.d.ts +4 -0
  26. package/Domain/Repositories/Search/ISearchRepository.js +3 -0
  27. package/Domain/Repositories/Search/ISearchRepository.js.map +1 -0
  28. package/Domain/Repositories/Search/SearchRepository.d.ts +7 -0
  29. package/Domain/Repositories/Search/SearchRepository.js +15 -0
  30. package/Domain/Repositories/Search/SearchRepository.js.map +1 -0
  31. package/Domain/Repositories/Search/SearchRepositoryFactory.d.ts +7 -0
  32. package/Domain/Repositories/Search/SearchRepositoryFactory.js +17 -0
  33. package/Domain/Repositories/Search/SearchRepositoryFactory.js.map +1 -0
  34. package/Domain/Repositories/Search/index.d.ts +3 -0
  35. package/Domain/Repositories/Search/index.js +4 -0
  36. package/Domain/Repositories/Search/index.js.map +1 -0
  37. package/Domain/Repositories/SelectedItems/ISelectedItemsRepository.d.ts +8 -0
  38. package/Domain/Repositories/SelectedItems/ISelectedItemsRepository.js +3 -0
  39. package/Domain/Repositories/SelectedItems/ISelectedItemsRepository.js.map +1 -0
  40. package/Domain/Repositories/SelectedItems/SelectedItemsRepository.d.ts +12 -0
  41. package/Domain/Repositories/SelectedItems/SelectedItemsRepository.js +27 -0
  42. package/Domain/Repositories/SelectedItems/SelectedItemsRepository.js.map +1 -0
  43. package/Domain/Repositories/SelectedItems/SelectedItemsRepositoryFactory.d.ts +7 -0
  44. package/Domain/Repositories/SelectedItems/SelectedItemsRepositoryFactory.js +17 -0
  45. package/Domain/Repositories/SelectedItems/SelectedItemsRepositoryFactory.js.map +1 -0
  46. package/Domain/Repositories/SelectedItems/index.d.ts +3 -0
  47. package/Domain/Repositories/SelectedItems/index.js +4 -0
  48. package/Domain/Repositories/SelectedItems/index.js.map +1 -0
  49. package/Domain/Repositories/Sorting/SortingRepositoryWithDefaults.d.ts +8 -0
  50. package/Domain/Repositories/Sorting/SortingRepositoryWithDefaults.js +22 -0
  51. package/Domain/Repositories/Sorting/SortingRepositoryWithDefaults.js.map +1 -0
  52. package/Domain/Repositories/Sorting/index.d.ts +1 -0
  53. package/Domain/Repositories/Sorting/index.js +3 -0
  54. package/Domain/Repositories/Sorting/index.js.map +1 -0
  55. package/Domain/Repositories/index.d.ts +4 -0
  56. package/Domain/Repositories/index.js +6 -0
  57. package/Domain/Repositories/index.js.map +1 -0
  58. package/Domain/index.d.ts +2 -0
  59. package/Domain/index.js +4 -0
  60. package/Domain/index.js.map +1 -0
  61. package/Gateways/SchedulerCancelGraphQLGateway.d.ts +7 -0
  62. package/Gateways/SchedulerCancelGraphQLGateway.js +48 -0
  63. package/Gateways/SchedulerCancelGraphQLGateway.js.map +1 -0
  64. package/Gateways/SchedulerGetGraphQLGateway.d.ts +21 -0
  65. package/Gateways/SchedulerGetGraphQLGateway.js +72 -0
  66. package/Gateways/SchedulerGetGraphQLGateway.js.map +1 -0
  67. package/Gateways/SchedulerListGraphQLGateway.d.ts +7 -0
  68. package/Gateways/SchedulerListGraphQLGateway.js +92 -0
  69. package/Gateways/SchedulerListGraphQLGateway.js.map +1 -0
  70. package/Gateways/SchedulerPublishGraphQLGateway.d.ts +7 -0
  71. package/Gateways/SchedulerPublishGraphQLGateway.js +67 -0
  72. package/Gateways/SchedulerPublishGraphQLGateway.js.map +1 -0
  73. package/Gateways/SchedulerUnpublishGraphQLGateway.d.ts +23 -0
  74. package/Gateways/SchedulerUnpublishGraphQLGateway.js +69 -0
  75. package/Gateways/SchedulerUnpublishGraphQLGateway.js.map +1 -0
  76. package/Gateways/abstractions/CancelScheduledActionGateway.d.ts +7 -0
  77. package/Gateways/abstractions/CancelScheduledActionGateway.js +3 -0
  78. package/Gateways/abstractions/CancelScheduledActionGateway.js.map +1 -0
  79. package/Gateways/abstractions/GetScheduledActionGateway.d.ts +9 -0
  80. package/Gateways/abstractions/GetScheduledActionGateway.js +3 -0
  81. package/Gateways/abstractions/GetScheduledActionGateway.js.map +1 -0
  82. package/Gateways/abstractions/ListScheduledActionsGateway.d.ts +27 -0
  83. package/Gateways/abstractions/ListScheduledActionsGateway.js +3 -0
  84. package/Gateways/abstractions/ListScheduledActionsGateway.js.map +1 -0
  85. package/Gateways/abstractions/SchedulePublishActionGateway.d.ts +12 -0
  86. package/Gateways/abstractions/SchedulePublishActionGateway.js +3 -0
  87. package/Gateways/abstractions/SchedulePublishActionGateway.js.map +1 -0
  88. package/Gateways/abstractions/ScheduleUnpublishActionGateway.d.ts +12 -0
  89. package/Gateways/abstractions/ScheduleUnpublishActionGateway.js +3 -0
  90. package/Gateways/abstractions/ScheduleUnpublishActionGateway.js.map +1 -0
  91. package/Gateways/graphql/fields.d.ts +1 -0
  92. package/Gateways/graphql/fields.js +18 -0
  93. package/Gateways/graphql/fields.js.map +1 -0
  94. package/Gateways/index.d.ts +5 -0
  95. package/Gateways/index.js +3 -0
  96. package/Gateways/index.js.map +1 -0
  97. package/Gateways/schema/schedulerEntry.d.ts +16 -0
  98. package/Gateways/schema/schedulerEntry.js +22 -0
  99. package/Gateways/schema/schedulerEntry.js.map +1 -0
  100. package/LICENSE +21 -0
  101. package/Presentation/Scheduler/Scheduler.d.ts +17 -0
  102. package/Presentation/Scheduler/Scheduler.js +67 -0
  103. package/Presentation/Scheduler/Scheduler.js.map +1 -0
  104. package/Presentation/Scheduler/SchedulerControllers.d.ts +30 -0
  105. package/Presentation/Scheduler/SchedulerControllers.js +72 -0
  106. package/Presentation/Scheduler/SchedulerControllers.js.map +1 -0
  107. package/Presentation/Scheduler/SchedulerPresenter.d.ts +32 -0
  108. package/Presentation/Scheduler/SchedulerPresenter.js +44 -0
  109. package/Presentation/Scheduler/SchedulerPresenter.js.map +1 -0
  110. package/Presentation/Scheduler/controllers/CancelItem/CancelItemController.d.ts +7 -0
  111. package/Presentation/Scheduler/controllers/CancelItem/CancelItemController.js +11 -0
  112. package/Presentation/Scheduler/controllers/CancelItem/CancelItemController.js.map +1 -0
  113. package/Presentation/Scheduler/controllers/CancelItem/ICancelItemController.d.ts +3 -0
  114. package/Presentation/Scheduler/controllers/CancelItem/ICancelItemController.js +3 -0
  115. package/Presentation/Scheduler/controllers/CancelItem/ICancelItemController.js.map +1 -0
  116. package/Presentation/Scheduler/controllers/CancelItem/index.d.ts +2 -0
  117. package/Presentation/Scheduler/controllers/CancelItem/index.js +3 -0
  118. package/Presentation/Scheduler/controllers/CancelItem/index.js.map +1 -0
  119. package/Presentation/Scheduler/controllers/GetItem/GetItemController.d.ts +8 -0
  120. package/Presentation/Scheduler/controllers/GetItem/GetItemController.js +11 -0
  121. package/Presentation/Scheduler/controllers/GetItem/GetItemController.js.map +1 -0
  122. package/Presentation/Scheduler/controllers/GetItem/IGetItemController.d.ts +4 -0
  123. package/Presentation/Scheduler/controllers/GetItem/IGetItemController.js +3 -0
  124. package/Presentation/Scheduler/controllers/GetItem/IGetItemController.js.map +1 -0
  125. package/Presentation/Scheduler/controllers/GetItem/index.d.ts +2 -0
  126. package/Presentation/Scheduler/controllers/GetItem/index.js +3 -0
  127. package/Presentation/Scheduler/controllers/GetItem/index.js.map +1 -0
  128. package/Presentation/Scheduler/controllers/ListItems/IListItemsController.d.ts +4 -0
  129. package/Presentation/Scheduler/controllers/ListItems/IListItemsController.js +3 -0
  130. package/Presentation/Scheduler/controllers/ListItems/IListItemsController.js.map +1 -0
  131. package/Presentation/Scheduler/controllers/ListItems/ListItemsController.d.ts +8 -0
  132. package/Presentation/Scheduler/controllers/ListItems/ListItemsController.js +11 -0
  133. package/Presentation/Scheduler/controllers/ListItems/ListItemsController.js.map +1 -0
  134. package/Presentation/Scheduler/controllers/ListItems/index.d.ts +2 -0
  135. package/Presentation/Scheduler/controllers/ListItems/index.js +3 -0
  136. package/Presentation/Scheduler/controllers/ListItems/index.js.map +1 -0
  137. package/Presentation/Scheduler/controllers/ListMoreItems/IListMoreItemsController.d.ts +3 -0
  138. package/Presentation/Scheduler/controllers/ListMoreItems/IListMoreItemsController.js +3 -0
  139. package/Presentation/Scheduler/controllers/ListMoreItems/IListMoreItemsController.js.map +1 -0
  140. package/Presentation/Scheduler/controllers/ListMoreItems/ListMoreItemsController.d.ts +7 -0
  141. package/Presentation/Scheduler/controllers/ListMoreItems/ListMoreItemsController.js +11 -0
  142. package/Presentation/Scheduler/controllers/ListMoreItems/ListMoreItemsController.js.map +1 -0
  143. package/Presentation/Scheduler/controllers/ListMoreItems/index.d.ts +2 -0
  144. package/Presentation/Scheduler/controllers/ListMoreItems/index.js +3 -0
  145. package/Presentation/Scheduler/controllers/ListMoreItems/index.js.map +1 -0
  146. package/Presentation/Scheduler/controllers/PublishItem/IPublishItemController.d.ts +3 -0
  147. package/Presentation/Scheduler/controllers/PublishItem/IPublishItemController.js +3 -0
  148. package/Presentation/Scheduler/controllers/PublishItem/IPublishItemController.js.map +1 -0
  149. package/Presentation/Scheduler/controllers/PublishItem/PublishItemController.d.ts +7 -0
  150. package/Presentation/Scheduler/controllers/PublishItem/PublishItemController.js +11 -0
  151. package/Presentation/Scheduler/controllers/PublishItem/PublishItemController.js.map +1 -0
  152. package/Presentation/Scheduler/controllers/PublishItem/index.d.ts +2 -0
  153. package/Presentation/Scheduler/controllers/PublishItem/index.js +3 -0
  154. package/Presentation/Scheduler/controllers/PublishItem/index.js.map +1 -0
  155. package/Presentation/Scheduler/controllers/SearchItems/ISearchItemsController.d.ts +3 -0
  156. package/Presentation/Scheduler/controllers/SearchItems/ISearchItemsController.js +3 -0
  157. package/Presentation/Scheduler/controllers/SearchItems/ISearchItemsController.js.map +1 -0
  158. package/Presentation/Scheduler/controllers/SearchItems/SearchItemsController.d.ts +8 -0
  159. package/Presentation/Scheduler/controllers/SearchItems/SearchItemsController.js +14 -0
  160. package/Presentation/Scheduler/controllers/SearchItems/SearchItemsController.js.map +1 -0
  161. package/Presentation/Scheduler/controllers/SearchItems/index.d.ts +2 -0
  162. package/Presentation/Scheduler/controllers/SearchItems/index.js +3 -0
  163. package/Presentation/Scheduler/controllers/SearchItems/index.js.map +1 -0
  164. package/Presentation/Scheduler/controllers/SelectAllItems/ISelectAllItemsController.d.ts +3 -0
  165. package/Presentation/Scheduler/controllers/SelectAllItems/ISelectAllItemsController.js +3 -0
  166. package/Presentation/Scheduler/controllers/SelectAllItems/ISelectAllItemsController.js.map +1 -0
  167. package/Presentation/Scheduler/controllers/SelectAllItems/SelectAllItemsController.d.ts +7 -0
  168. package/Presentation/Scheduler/controllers/SelectAllItems/SelectAllItemsController.js +11 -0
  169. package/Presentation/Scheduler/controllers/SelectAllItems/SelectAllItemsController.js.map +1 -0
  170. package/Presentation/Scheduler/controllers/SelectAllItems/index.d.ts +2 -0
  171. package/Presentation/Scheduler/controllers/SelectAllItems/index.js +3 -0
  172. package/Presentation/Scheduler/controllers/SelectAllItems/index.js.map +1 -0
  173. package/Presentation/Scheduler/controllers/SelectItems/ISelectItemsController.d.ts +4 -0
  174. package/Presentation/Scheduler/controllers/SelectItems/ISelectItemsController.js +3 -0
  175. package/Presentation/Scheduler/controllers/SelectItems/ISelectItemsController.js.map +1 -0
  176. package/Presentation/Scheduler/controllers/SelectItems/SelectItemsController.d.ts +8 -0
  177. package/Presentation/Scheduler/controllers/SelectItems/SelectItemsController.js +13 -0
  178. package/Presentation/Scheduler/controllers/SelectItems/SelectItemsController.js.map +1 -0
  179. package/Presentation/Scheduler/controllers/SelectItems/index.d.ts +2 -0
  180. package/Presentation/Scheduler/controllers/SelectItems/index.js +3 -0
  181. package/Presentation/Scheduler/controllers/SelectItems/index.js.map +1 -0
  182. package/Presentation/Scheduler/controllers/SortItems/ISortItemsController.d.ts +4 -0
  183. package/Presentation/Scheduler/controllers/SortItems/ISortItemsController.js +3 -0
  184. package/Presentation/Scheduler/controllers/SortItems/ISortItemsController.js.map +1 -0
  185. package/Presentation/Scheduler/controllers/SortItems/SortItemsController.d.ts +9 -0
  186. package/Presentation/Scheduler/controllers/SortItems/SortItemsController.js +19 -0
  187. package/Presentation/Scheduler/controllers/SortItems/SortItemsController.js.map +1 -0
  188. package/Presentation/Scheduler/controllers/SortItems/index.d.ts +2 -0
  189. package/Presentation/Scheduler/controllers/SortItems/index.js +3 -0
  190. package/Presentation/Scheduler/controllers/SortItems/index.js.map +1 -0
  191. package/Presentation/Scheduler/controllers/UnpublishItem/IUnpublishItemController.d.ts +3 -0
  192. package/Presentation/Scheduler/controllers/UnpublishItem/IUnpublishItemController.js +3 -0
  193. package/Presentation/Scheduler/controllers/UnpublishItem/IUnpublishItemController.js.map +1 -0
  194. package/Presentation/Scheduler/controllers/UnpublishItem/UnpublishItemController.d.ts +7 -0
  195. package/Presentation/Scheduler/controllers/UnpublishItem/UnpublishItemController.js +11 -0
  196. package/Presentation/Scheduler/controllers/UnpublishItem/UnpublishItemController.js.map +1 -0
  197. package/Presentation/Scheduler/controllers/UnpublishItem/index.d.ts +2 -0
  198. package/Presentation/Scheduler/controllers/UnpublishItem/index.js +3 -0
  199. package/Presentation/Scheduler/controllers/UnpublishItem/index.js.map +1 -0
  200. package/Presentation/Scheduler/controllers/UnselectAllItems/IUnselectAllItemsController.d.ts +3 -0
  201. package/Presentation/Scheduler/controllers/UnselectAllItems/IUnselectAllItemsController.js +3 -0
  202. package/Presentation/Scheduler/controllers/UnselectAllItems/IUnselectAllItemsController.js.map +1 -0
  203. package/Presentation/Scheduler/controllers/UnselectAllItems/UnselectAllItemsController.d.ts +7 -0
  204. package/Presentation/Scheduler/controllers/UnselectAllItems/UnselectAllItemsController.js +11 -0
  205. package/Presentation/Scheduler/controllers/UnselectAllItems/UnselectAllItemsController.js.map +1 -0
  206. package/Presentation/Scheduler/controllers/UnselectAllItems/index.d.ts +2 -0
  207. package/Presentation/Scheduler/controllers/UnselectAllItems/index.js +3 -0
  208. package/Presentation/Scheduler/controllers/UnselectAllItems/index.js.map +1 -0
  209. package/Presentation/Scheduler/controllers/index.d.ts +11 -0
  210. package/Presentation/Scheduler/controllers/index.js +13 -0
  211. package/Presentation/Scheduler/controllers/index.js.map +1 -0
  212. package/Presentation/Scheduler/index.d.ts +1 -0
  213. package/Presentation/Scheduler/index.js +3 -0
  214. package/Presentation/Scheduler/index.js.map +1 -0
  215. package/Presentation/SchedulerConfigs/SchedulerConfigs.d.ts +2 -0
  216. package/Presentation/SchedulerConfigs/SchedulerConfigs.js +55 -0
  217. package/Presentation/SchedulerConfigs/SchedulerConfigs.js.map +1 -0
  218. package/Presentation/SchedulerConfigs/index.d.ts +1 -0
  219. package/Presentation/SchedulerConfigs/index.js +3 -0
  220. package/Presentation/SchedulerConfigs/index.js.map +1 -0
  221. package/Presentation/SchedulerRenderer/SchedulerRenderer.d.ts +6 -0
  222. package/Presentation/SchedulerRenderer/SchedulerRenderer.js +21 -0
  223. package/Presentation/SchedulerRenderer/SchedulerRenderer.js.map +1 -0
  224. package/Presentation/SchedulerRenderer/index.d.ts +1 -0
  225. package/Presentation/SchedulerRenderer/index.js +3 -0
  226. package/Presentation/SchedulerRenderer/index.js.map +1 -0
  227. package/Presentation/abstractions/ISchedulerControllers.d.ts +14 -0
  228. package/Presentation/abstractions/ISchedulerControllers.js +3 -0
  229. package/Presentation/abstractions/ISchedulerControllers.js.map +1 -0
  230. package/Presentation/abstractions/ISchedulerPresenter.d.ts +20 -0
  231. package/Presentation/abstractions/ISchedulerPresenter.js +3 -0
  232. package/Presentation/abstractions/ISchedulerPresenter.js.map +1 -0
  233. package/Presentation/abstractions/index.d.ts +2 -0
  234. package/Presentation/abstractions/index.js +3 -0
  235. package/Presentation/abstractions/index.js.map +1 -0
  236. package/Presentation/components/Actions/CancelItem/CancelItem.d.ts +2 -0
  237. package/Presentation/components/Actions/CancelItem/CancelItem.js +24 -0
  238. package/Presentation/components/Actions/CancelItem/CancelItem.js.map +1 -0
  239. package/Presentation/components/Actions/CancelItem/index.d.ts +1 -0
  240. package/Presentation/components/Actions/CancelItem/index.js +3 -0
  241. package/Presentation/components/Actions/CancelItem/index.js.map +1 -0
  242. package/Presentation/components/Actions/index.d.ts +1 -0
  243. package/Presentation/components/Actions/index.js +3 -0
  244. package/Presentation/components/Actions/index.js.map +1 -0
  245. package/Presentation/components/BottomInfoBar/BottomInfoBar.d.ts +2 -0
  246. package/Presentation/components/BottomInfoBar/BottomInfoBar.js +20 -0
  247. package/Presentation/components/BottomInfoBar/BottomInfoBar.js.map +1 -0
  248. package/Presentation/components/BottomInfoBar/BottomInfoBar.styled.d.ts +20 -0
  249. package/Presentation/components/BottomInfoBar/BottomInfoBar.styled.js +69 -0
  250. package/Presentation/components/BottomInfoBar/BottomInfoBar.styled.js.map +1 -0
  251. package/Presentation/components/BottomInfoBar/ListMeta.d.ts +7 -0
  252. package/Presentation/components/BottomInfoBar/ListMeta.js +12 -0
  253. package/Presentation/components/BottomInfoBar/ListMeta.js.map +1 -0
  254. package/Presentation/components/BottomInfoBar/ListStatus.d.ts +5 -0
  255. package/Presentation/components/BottomInfoBar/ListStatus.js +16 -0
  256. package/Presentation/components/BottomInfoBar/ListStatus.js.map +1 -0
  257. package/Presentation/components/BottomInfoBar/index.d.ts +1 -0
  258. package/Presentation/components/BottomInfoBar/index.js +3 -0
  259. package/Presentation/components/BottomInfoBar/index.js.map +1 -0
  260. package/Presentation/components/Cells/CellActions/CellActions.d.ts +2 -0
  261. package/Presentation/components/Cells/CellActions/CellActions.js +23 -0
  262. package/Presentation/components/Cells/CellActions/CellActions.js.map +1 -0
  263. package/Presentation/components/Cells/CellActions/index.d.ts +1 -0
  264. package/Presentation/components/Cells/CellActions/index.js +3 -0
  265. package/Presentation/components/Cells/CellActions/index.js.map +1 -0
  266. package/Presentation/components/Cells/CellRevision/CellRevision.d.ts +2 -0
  267. package/Presentation/components/Cells/CellRevision/CellRevision.js +20 -0
  268. package/Presentation/components/Cells/CellRevision/CellRevision.js.map +1 -0
  269. package/Presentation/components/Cells/CellRevision/CellRevision.styled.d.ts +11 -0
  270. package/Presentation/components/Cells/CellRevision/CellRevision.styled.js +44 -0
  271. package/Presentation/components/Cells/CellRevision/CellRevision.styled.js.map +1 -0
  272. package/Presentation/components/Cells/CellRevision/index.d.ts +1 -0
  273. package/Presentation/components/Cells/CellRevision/index.js +3 -0
  274. package/Presentation/components/Cells/CellRevision/index.js.map +1 -0
  275. package/Presentation/components/Cells/CellScheduledBy/CellScheduledBy.d.ts +2 -0
  276. package/Presentation/components/Cells/CellScheduledBy/CellScheduledBy.js +13 -0
  277. package/Presentation/components/Cells/CellScheduledBy/CellScheduledBy.js.map +1 -0
  278. package/Presentation/components/Cells/CellScheduledBy/index.d.ts +1 -0
  279. package/Presentation/components/Cells/CellScheduledBy/index.js +3 -0
  280. package/Presentation/components/Cells/CellScheduledBy/index.js.map +1 -0
  281. package/Presentation/components/Cells/CellScheduledOn/CellScheduledOn.d.ts +24 -0
  282. package/Presentation/components/Cells/CellScheduledOn/CellScheduledOn.js +24 -0
  283. package/Presentation/components/Cells/CellScheduledOn/CellScheduledOn.js.map +1 -0
  284. package/Presentation/components/Cells/CellScheduledOn/index.d.ts +1 -0
  285. package/Presentation/components/Cells/CellScheduledOn/index.js +3 -0
  286. package/Presentation/components/Cells/CellScheduledOn/index.js.map +1 -0
  287. package/Presentation/components/Cells/CellTitle/CellTitle.d.ts +2 -0
  288. package/Presentation/components/Cells/CellTitle/CellTitle.js +17 -0
  289. package/Presentation/components/Cells/CellTitle/CellTitle.js.map +1 -0
  290. package/Presentation/components/Cells/CellTitle/CellTitle.styled.d.ts +11 -0
  291. package/Presentation/components/Cells/CellTitle/CellTitle.styled.js +44 -0
  292. package/Presentation/components/Cells/CellTitle/CellTitle.styled.js.map +1 -0
  293. package/Presentation/components/Cells/CellTitle/index.d.ts +1 -0
  294. package/Presentation/components/Cells/CellTitle/index.js +3 -0
  295. package/Presentation/components/Cells/CellTitle/index.js.map +1 -0
  296. package/Presentation/components/Cells/CellType/CellActionType.d.ts +2 -0
  297. package/Presentation/components/Cells/CellType/CellActionType.js +18 -0
  298. package/Presentation/components/Cells/CellType/CellActionType.js.map +1 -0
  299. package/Presentation/components/Cells/CellType/CellActionType.styled.d.ts +11 -0
  300. package/Presentation/components/Cells/CellType/CellActionType.styled.js +44 -0
  301. package/Presentation/components/Cells/CellType/CellActionType.styled.js.map +1 -0
  302. package/Presentation/components/Cells/CellType/index.d.ts +1 -0
  303. package/Presentation/components/Cells/CellType/index.js +3 -0
  304. package/Presentation/components/Cells/CellType/index.js.map +1 -0
  305. package/Presentation/components/Cells/index.d.ts +6 -0
  306. package/Presentation/components/Cells/index.js +8 -0
  307. package/Presentation/components/Cells/index.js.map +1 -0
  308. package/Presentation/components/Empty/Empty.d.ts +2 -0
  309. package/Presentation/components/Empty/Empty.js +22 -0
  310. package/Presentation/components/Empty/Empty.js.map +1 -0
  311. package/Presentation/components/Empty/Empty.styled.d.ts +8 -0
  312. package/Presentation/components/Empty/Empty.styled.js +30 -0
  313. package/Presentation/components/Empty/Empty.styled.js.map +1 -0
  314. package/Presentation/components/Empty/index.d.ts +1 -0
  315. package/Presentation/components/Empty/index.js +3 -0
  316. package/Presentation/components/Empty/index.js.map +1 -0
  317. package/Presentation/components/ScheduleDialog/ScheduleDialogAction.d.ts +15 -0
  318. package/Presentation/components/ScheduleDialog/ScheduleDialogAction.js +51 -0
  319. package/Presentation/components/ScheduleDialog/ScheduleDialogAction.js.map +1 -0
  320. package/Presentation/components/ScheduleDialog/index.d.ts +2 -0
  321. package/Presentation/components/ScheduleDialog/index.js +4 -0
  322. package/Presentation/components/ScheduleDialog/index.js.map +1 -0
  323. package/Presentation/components/ScheduleDialog/types.d.ts +15 -0
  324. package/Presentation/components/ScheduleDialog/types.js +3 -0
  325. package/Presentation/components/ScheduleDialog/types.js.map +1 -0
  326. package/Presentation/components/ScheduleDialog/useGetScheduledAction.d.ts +7 -0
  327. package/Presentation/components/ScheduleDialog/useGetScheduledAction.js +31 -0
  328. package/Presentation/components/ScheduleDialog/useGetScheduledAction.js.map +1 -0
  329. package/Presentation/components/ScheduleDialog/useScheduleDialog.d.ts +42 -0
  330. package/Presentation/components/ScheduleDialog/useScheduleDialog.js +239 -0
  331. package/Presentation/components/ScheduleDialog/useScheduleDialog.js.map +1 -0
  332. package/Presentation/components/SchedulerOverlay/SchedulerOverlay.d.ts +7 -0
  333. package/Presentation/components/SchedulerOverlay/SchedulerOverlay.js +36 -0
  334. package/Presentation/components/SchedulerOverlay/SchedulerOverlay.js.map +1 -0
  335. package/Presentation/components/SchedulerOverlay/index.d.ts +1 -0
  336. package/Presentation/components/SchedulerOverlay/index.js +3 -0
  337. package/Presentation/components/SchedulerOverlay/index.js.map +1 -0
  338. package/Presentation/components/SearchInput/SearchInput.d.ts +2 -0
  339. package/Presentation/components/SearchInput/SearchInput.js +37 -0
  340. package/Presentation/components/SearchInput/SearchInput.js.map +1 -0
  341. package/Presentation/components/SearchInput/index.d.ts +1 -0
  342. package/Presentation/components/SearchInput/index.js +3 -0
  343. package/Presentation/components/SearchInput/index.js.map +1 -0
  344. package/Presentation/components/Table/Table.d.ts +2 -0
  345. package/Presentation/components/Table/Table.js +34 -0
  346. package/Presentation/components/Table/Table.js.map +1 -0
  347. package/Presentation/components/Table/index.d.ts +1 -0
  348. package/Presentation/components/Table/index.js +3 -0
  349. package/Presentation/components/Table/index.js.map +1 -0
  350. package/Presentation/components/Title/Title.d.ts +5 -0
  351. package/Presentation/components/Title/Title.js +15 -0
  352. package/Presentation/components/Title/Title.js.map +1 -0
  353. package/Presentation/components/Title/Title.styled.d.ts +4 -0
  354. package/Presentation/components/Title/Title.styled.js +18 -0
  355. package/Presentation/components/Title/Title.styled.js.map +1 -0
  356. package/Presentation/components/Title/index.d.ts +1 -0
  357. package/Presentation/components/Title/index.js +3 -0
  358. package/Presentation/components/Title/index.js.map +1 -0
  359. package/Presentation/configs/index.d.ts +1 -0
  360. package/Presentation/configs/index.js +3 -0
  361. package/Presentation/configs/index.js.map +1 -0
  362. package/Presentation/configs/list/Browser/EntryAction.d.ts +7 -0
  363. package/Presentation/configs/list/Browser/EntryAction.js +16 -0
  364. package/Presentation/configs/list/Browser/EntryAction.js.map +1 -0
  365. package/Presentation/configs/list/Browser/Table/Column.d.ts +14 -0
  366. package/Presentation/configs/list/Browser/Table/Column.js +14 -0
  367. package/Presentation/configs/list/Browser/Table/Column.js.map +1 -0
  368. package/Presentation/configs/list/Browser/Table/Sorting.d.ts +5 -0
  369. package/Presentation/configs/list/Browser/Table/Sorting.js +10 -0
  370. package/Presentation/configs/list/Browser/Table/Sorting.js.map +1 -0
  371. package/Presentation/configs/list/Browser/Table/index.d.ts +18 -0
  372. package/Presentation/configs/list/Browser/Table/index.js +8 -0
  373. package/Presentation/configs/list/Browser/Table/index.js.map +1 -0
  374. package/Presentation/configs/list/Browser/index.d.ts +23 -0
  375. package/Presentation/configs/list/Browser/index.js +8 -0
  376. package/Presentation/configs/list/Browser/index.js.map +1 -0
  377. package/Presentation/configs/list/SchedulerListConfig.d.ts +33 -0
  378. package/Presentation/configs/list/SchedulerListConfig.js +31 -0
  379. package/Presentation/configs/list/SchedulerListConfig.js.map +1 -0
  380. package/Presentation/configs/list/index.d.ts +1 -0
  381. package/Presentation/configs/list/index.js +3 -0
  382. package/Presentation/configs/list/index.js.map +1 -0
  383. package/Presentation/hooks/index.d.ts +3 -0
  384. package/Presentation/hooks/index.js +5 -0
  385. package/Presentation/hooks/index.js.map +1 -0
  386. package/Presentation/hooks/useCancelSchedulerItem.d.ts +8 -0
  387. package/Presentation/hooks/useCancelSchedulerItem.js +32 -0
  388. package/Presentation/hooks/useCancelSchedulerItem.js.map +1 -0
  389. package/Presentation/hooks/useScheduler.d.ts +28 -0
  390. package/Presentation/hooks/useScheduler.js +52 -0
  391. package/Presentation/hooks/useScheduler.js.map +1 -0
  392. package/Presentation/hooks/useSchedulerItem.d.ts +11 -0
  393. package/Presentation/hooks/useSchedulerItem.js +9 -0
  394. package/Presentation/hooks/useSchedulerItem.js.map +1 -0
  395. package/Presentation/index.d.ts +25 -0
  396. package/Presentation/index.js +56 -0
  397. package/Presentation/index.js.map +1 -0
  398. package/README.md +11 -0
  399. package/UseCases/CancelItem/CancelItemUseCase.d.ts +7 -0
  400. package/UseCases/CancelItem/CancelItemUseCase.js +12 -0
  401. package/UseCases/CancelItem/CancelItemUseCase.js.map +1 -0
  402. package/UseCases/CancelItem/ICancelItemUseCase.d.ts +3 -0
  403. package/UseCases/CancelItem/ICancelItemUseCase.js +3 -0
  404. package/UseCases/CancelItem/ICancelItemUseCase.js.map +1 -0
  405. package/UseCases/CancelItem/index.d.ts +2 -0
  406. package/UseCases/CancelItem/index.js +3 -0
  407. package/UseCases/CancelItem/index.js.map +1 -0
  408. package/UseCases/GetItem/GetItemUseCase.d.ts +8 -0
  409. package/UseCases/GetItem/GetItemUseCase.js +12 -0
  410. package/UseCases/GetItem/GetItemUseCase.js.map +1 -0
  411. package/UseCases/GetItem/IGetItemUseCase.d.ts +4 -0
  412. package/UseCases/GetItem/IGetItemUseCase.js +3 -0
  413. package/UseCases/GetItem/IGetItemUseCase.js.map +1 -0
  414. package/UseCases/GetItem/index.d.ts +2 -0
  415. package/UseCases/GetItem/index.js +3 -0
  416. package/UseCases/GetItem/index.js.map +1 -0
  417. package/UseCases/GetScheduledItem/GetScheduledItemUseCase.d.ts +7 -0
  418. package/UseCases/GetScheduledItem/GetScheduledItemUseCase.js +13 -0
  419. package/UseCases/GetScheduledItem/GetScheduledItemUseCase.js.map +1 -0
  420. package/UseCases/GetScheduledItem/IGetScheduledItemUseCase.d.ts +4 -0
  421. package/UseCases/GetScheduledItem/IGetScheduledItemUseCase.js +3 -0
  422. package/UseCases/GetScheduledItem/IGetScheduledItemUseCase.js.map +1 -0
  423. package/UseCases/GetScheduledItem/index.d.ts +2 -0
  424. package/UseCases/GetScheduledItem/index.js +3 -0
  425. package/UseCases/GetScheduledItem/index.js.map +1 -0
  426. package/UseCases/ListItems/IListItemsUseCase.d.ts +4 -0
  427. package/UseCases/ListItems/IListItemsUseCase.js +3 -0
  428. package/UseCases/ListItems/IListItemsUseCase.js.map +1 -0
  429. package/UseCases/ListItems/ListItemsUseCase.d.ts +8 -0
  430. package/UseCases/ListItems/ListItemsUseCase.js +12 -0
  431. package/UseCases/ListItems/ListItemsUseCase.js.map +1 -0
  432. package/UseCases/ListItems/ListItemsUseCaseWithSearch.d.ts +9 -0
  433. package/UseCases/ListItems/ListItemsUseCaseWithSearch.js +22 -0
  434. package/UseCases/ListItems/ListItemsUseCaseWithSearch.js.map +1 -0
  435. package/UseCases/ListItems/ListItemsUseCaseWithSorting.d.ts +9 -0
  436. package/UseCases/ListItems/ListItemsUseCaseWithSorting.js +22 -0
  437. package/UseCases/ListItems/ListItemsUseCaseWithSorting.js.map +1 -0
  438. package/UseCases/ListItems/index.d.ts +4 -0
  439. package/UseCases/ListItems/index.js +5 -0
  440. package/UseCases/ListItems/index.js.map +1 -0
  441. package/UseCases/ListMoreItems/IListMoreItemsUseCase.d.ts +3 -0
  442. package/UseCases/ListMoreItems/IListMoreItemsUseCase.js +3 -0
  443. package/UseCases/ListMoreItems/IListMoreItemsUseCase.js.map +1 -0
  444. package/UseCases/ListMoreItems/ListMoreItemsUseCase.d.ts +7 -0
  445. package/UseCases/ListMoreItems/ListMoreItemsUseCase.js +12 -0
  446. package/UseCases/ListMoreItems/ListMoreItemsUseCase.js.map +1 -0
  447. package/UseCases/ListMoreItems/index.d.ts +2 -0
  448. package/UseCases/ListMoreItems/index.js +3 -0
  449. package/UseCases/ListMoreItems/index.js.map +1 -0
  450. package/UseCases/PublishItem/IPublishItemUseCase.d.ts +3 -0
  451. package/UseCases/PublishItem/IPublishItemUseCase.js +3 -0
  452. package/UseCases/PublishItem/IPublishItemUseCase.js.map +1 -0
  453. package/UseCases/PublishItem/PublishItemUseCase.d.ts +7 -0
  454. package/UseCases/PublishItem/PublishItemUseCase.js +12 -0
  455. package/UseCases/PublishItem/PublishItemUseCase.js.map +1 -0
  456. package/UseCases/PublishItem/index.d.ts +2 -0
  457. package/UseCases/PublishItem/index.js +3 -0
  458. package/UseCases/PublishItem/index.js.map +1 -0
  459. package/UseCases/SearchItems/ISearchItemsUseCase.d.ts +3 -0
  460. package/UseCases/SearchItems/ISearchItemsUseCase.js +3 -0
  461. package/UseCases/SearchItems/ISearchItemsUseCase.js.map +1 -0
  462. package/UseCases/SearchItems/SearchItemsUseCase.d.ts +7 -0
  463. package/UseCases/SearchItems/SearchItemsUseCase.js +12 -0
  464. package/UseCases/SearchItems/SearchItemsUseCase.js.map +1 -0
  465. package/UseCases/SearchItems/index.d.ts +2 -0
  466. package/UseCases/SearchItems/index.js +3 -0
  467. package/UseCases/SearchItems/index.js.map +1 -0
  468. package/UseCases/SelectAllItems/ISelectAllItemsUseCase.d.ts +3 -0
  469. package/UseCases/SelectAllItems/ISelectAllItemsUseCase.js +3 -0
  470. package/UseCases/SelectAllItems/ISelectAllItemsUseCase.js.map +1 -0
  471. package/UseCases/SelectAllItems/SelectAllItemsUseCase.d.ts +7 -0
  472. package/UseCases/SelectAllItems/SelectAllItemsUseCase.js +12 -0
  473. package/UseCases/SelectAllItems/SelectAllItemsUseCase.js.map +1 -0
  474. package/UseCases/SelectAllItems/index.d.ts +2 -0
  475. package/UseCases/SelectAllItems/index.js +3 -0
  476. package/UseCases/SelectAllItems/index.js.map +1 -0
  477. package/UseCases/SelectItems/ISelectItemsUseCase.d.ts +4 -0
  478. package/UseCases/SelectItems/ISelectItemsUseCase.js +3 -0
  479. package/UseCases/SelectItems/ISelectItemsUseCase.js.map +1 -0
  480. package/UseCases/SelectItems/SelectItemsUseCase.d.ts +7 -0
  481. package/UseCases/SelectItems/SelectItemsUseCase.js +12 -0
  482. package/UseCases/SelectItems/SelectItemsUseCase.js.map +1 -0
  483. package/UseCases/SelectItems/index.d.ts +2 -0
  484. package/UseCases/SelectItems/index.js +3 -0
  485. package/UseCases/SelectItems/index.js.map +1 -0
  486. package/UseCases/SortItems/ISortItemsUseCase.d.ts +4 -0
  487. package/UseCases/SortItems/ISortItemsUseCase.js +3 -0
  488. package/UseCases/SortItems/ISortItemsUseCase.js.map +1 -0
  489. package/UseCases/SortItems/SortItemsUseCase.d.ts +7 -0
  490. package/UseCases/SortItems/SortItemsUseCase.js +12 -0
  491. package/UseCases/SortItems/SortItemsUseCase.js.map +1 -0
  492. package/UseCases/SortItems/index.d.ts +2 -0
  493. package/UseCases/SortItems/index.js +3 -0
  494. package/UseCases/SortItems/index.js.map +1 -0
  495. package/UseCases/UnSelectAllItems/IUnselectAllItemsUseCase.d.ts +3 -0
  496. package/UseCases/UnSelectAllItems/IUnselectAllItemsUseCase.js +3 -0
  497. package/UseCases/UnSelectAllItems/IUnselectAllItemsUseCase.js.map +1 -0
  498. package/UseCases/UnSelectAllItems/UnselectAllItemsUseCase.d.ts +7 -0
  499. package/UseCases/UnSelectAllItems/UnselectAllItemsUseCase.js +12 -0
  500. package/UseCases/UnSelectAllItems/UnselectAllItemsUseCase.js.map +1 -0
  501. package/UseCases/UnSelectAllItems/index.d.ts +2 -0
  502. package/UseCases/UnSelectAllItems/index.js +3 -0
  503. package/UseCases/UnSelectAllItems/index.js.map +1 -0
  504. package/UseCases/UnpublishItem/IUnpublishItemUseCase.d.ts +3 -0
  505. package/UseCases/UnpublishItem/IUnpublishItemUseCase.js +3 -0
  506. package/UseCases/UnpublishItem/IUnpublishItemUseCase.js.map +1 -0
  507. package/UseCases/UnpublishItem/UnpublishItemUseCase.d.ts +7 -0
  508. package/UseCases/UnpublishItem/UnpublishItemUseCase.js +12 -0
  509. package/UseCases/UnpublishItem/UnpublishItemUseCase.js.map +1 -0
  510. package/UseCases/UnpublishItem/index.d.ts +2 -0
  511. package/UseCases/UnpublishItem/index.js +3 -0
  512. package/UseCases/UnpublishItem/index.js.map +1 -0
  513. package/UseCases/index.d.ts +11 -0
  514. package/UseCases/index.js +13 -0
  515. package/UseCases/index.js.map +1 -0
  516. package/index.d.ts +1 -0
  517. package/index.js +3 -0
  518. package/index.js.map +1 -0
  519. package/package.json +55 -0
  520. package/types.d.ts +37 -0
  521. package/types.js +15 -0
  522. package/types.js.map +1 -0
@@ -0,0 +1,15 @@
1
+ import type { ScheduleActionType } from "../../../types.js";
2
+ export interface IScheduleDialogScheduledActionExecuteParams {
3
+ targetId: string;
4
+ namespace: string;
5
+ scheduleOn: Date;
6
+ actionType: ScheduleActionType;
7
+ }
8
+ export interface IScheduleDialogCancelActionExecuteParams {
9
+ id: string;
10
+ namespace: string;
11
+ }
12
+ export interface IScheduleDialogAction {
13
+ schedule(params: IScheduleDialogScheduledActionExecuteParams): Promise<void>;
14
+ cancel(params: IScheduleDialogCancelActionExecuteParams): Promise<void>;
15
+ }
@@ -0,0 +1,3 @@
1
+ export {};
2
+
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import type { ScheduleActionType } from \"~/types.js\";\n\nexport interface IScheduleDialogScheduledActionExecuteParams {\n targetId: string;\n namespace: string;\n scheduleOn: Date;\n actionType: ScheduleActionType;\n}\n\nexport interface IScheduleDialogCancelActionExecuteParams {\n id: string;\n namespace: string;\n}\n\nexport interface IScheduleDialogAction {\n schedule(params: IScheduleDialogScheduledActionExecuteParams): Promise<void>;\n cancel(params: IScheduleDialogCancelActionExecuteParams): Promise<void>;\n}\n"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ import type { IGetScheduledActionGateway, IGetScheduledActionGatewayResponse } from "../../../Gateways/index.js";
2
+ export interface IGetScheduledActionParams {
3
+ namespace: string;
4
+ id: string;
5
+ gateway: IGetScheduledActionGateway;
6
+ }
7
+ export declare const useGetScheduledAction: (params: IGetScheduledActionParams) => IGetScheduledActionGatewayResponse | null;
@@ -0,0 +1,31 @@
1
+ import { useEffect, useState } from "react";
2
+ import { useSnackbar } from "@webiny/app-admin";
3
+ export const useGetScheduledAction = params => {
4
+ const {
5
+ gateway,
6
+ namespace,
7
+ id
8
+ } = params;
9
+ const {
10
+ showSnackbar
11
+ } = useSnackbar();
12
+ const [response, setResponse] = useState(null);
13
+ useEffect(() => {
14
+ const fetchData = async () => {
15
+ try {
16
+ const data = await gateway.execute({
17
+ namespace,
18
+ id
19
+ });
20
+ setResponse(data);
21
+ } catch (err) {
22
+ console.error(err);
23
+ showSnackbar(err.message);
24
+ }
25
+ };
26
+ fetchData();
27
+ }, []);
28
+ return response;
29
+ };
30
+
31
+ //# sourceMappingURL=useGetScheduledAction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["useEffect","useState","useSnackbar","useGetScheduledAction","params","gateway","namespace","id","showSnackbar","response","setResponse","fetchData","data","execute","err","console","error","message"],"sources":["useGetScheduledAction.ts"],"sourcesContent":["import type {\n IGetScheduledActionGateway,\n IGetScheduledActionGatewayResponse\n} from \"~/Gateways/index.js\";\nimport { useEffect, useState } from \"react\";\nimport { useSnackbar } from \"@webiny/app-admin\";\n\nexport interface IGetScheduledActionParams {\n namespace: string;\n id: string;\n gateway: IGetScheduledActionGateway;\n}\n\nexport const useGetScheduledAction = (\n params: IGetScheduledActionParams\n): IGetScheduledActionGatewayResponse | null => {\n const { gateway, namespace, id } = params;\n\n const { showSnackbar } = useSnackbar();\n\n const [response, setResponse] = useState<IGetScheduledActionGatewayResponse | null>(null);\n\n useEffect(() => {\n const fetchData = async () => {\n try {\n const data = await gateway.execute({\n namespace,\n id\n });\n setResponse(data);\n } catch (err) {\n console.error(err);\n showSnackbar(err.message);\n }\n };\n fetchData();\n }, []);\n\n return response;\n};\n"],"mappings":"AAIA,SAASA,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAC3C,SAASC,WAAW,QAAQ,mBAAmB;AAQ/C,OAAO,MAAMC,qBAAqB,GAC9BC,MAAiC,IACW;EAC5C,MAAM;IAAEC,OAAO;IAAEC,SAAS;IAAEC;EAAG,CAAC,GAAGH,MAAM;EAEzC,MAAM;IAAEI;EAAa,CAAC,GAAGN,WAAW,CAAC,CAAC;EAEtC,MAAM,CAACO,QAAQ,EAAEC,WAAW,CAAC,GAAGT,QAAQ,CAA4C,IAAI,CAAC;EAEzFD,SAAS,CAAC,MAAM;IACZ,MAAMW,SAAS,GAAG,MAAAA,CAAA,KAAY;MAC1B,IAAI;QACA,MAAMC,IAAI,GAAG,MAAMP,OAAO,CAACQ,OAAO,CAAC;UAC/BP,SAAS;UACTC;QACJ,CAAC,CAAC;QACFG,WAAW,CAACE,IAAI,CAAC;MACrB,CAAC,CAAC,OAAOE,GAAG,EAAE;QACVC,OAAO,CAACC,KAAK,CAACF,GAAG,CAAC;QAClBN,YAAY,CAACM,GAAG,CAACG,OAAO,CAAC;MAC7B;IACJ,CAAC;IACDN,SAAS,CAAC,CAAC;EACf,CAAC,EAAE,EAAE,CAAC;EAEN,OAAOF,QAAQ;AACnB,CAAC","ignoreList":[]}
@@ -0,0 +1,42 @@
1
+ import React from "react";
2
+ import { type BindComponentRenderProp } from "@webiny/form";
3
+ import type { CmsContentEntryStatusType } from "@webiny/app-headless-cms-common/types/index.js";
4
+ import ApolloClient from "apollo-client/ApolloClient.js";
5
+ export type ShowDialogParamsEntryStatus = CmsContentEntryStatusType;
6
+ export interface IShowDialogParamsEntry {
7
+ id: string;
8
+ status: ShowDialogParamsEntryStatus;
9
+ title: string;
10
+ }
11
+ interface UseShowScheduleDialogResponse {
12
+ showDialog: () => void;
13
+ }
14
+ export interface ISchedulerDialogFormComponentDateTimeInputProps {
15
+ bind: BindComponentRenderProp<Date>;
16
+ }
17
+ export declare const SchedulerDialogFormComponentDateTimeInput: ((props: ISchedulerDialogFormComponentDateTimeInputProps) => React.JSX.Element) & {
18
+ original: (props: ISchedulerDialogFormComponentDateTimeInputProps) => React.JSX.Element;
19
+ originalName: string;
20
+ displayName: string;
21
+ } & {
22
+ original: ((props: ISchedulerDialogFormComponentDateTimeInputProps) => React.JSX.Element) & {
23
+ original: (props: ISchedulerDialogFormComponentDateTimeInputProps) => React.JSX.Element;
24
+ originalName: string;
25
+ displayName: string;
26
+ };
27
+ originalName: string;
28
+ displayName: string;
29
+ } & {
30
+ createDecorator: (decorator: import("@webiny/app-admin").ComponentDecorator<((props: ISchedulerDialogFormComponentDateTimeInputProps) => React.JSX.Element) & {
31
+ original: (props: ISchedulerDialogFormComponentDateTimeInputProps) => React.JSX.Element;
32
+ originalName: string;
33
+ displayName: string;
34
+ }>) => (props: unknown) => React.JSX.Element;
35
+ };
36
+ export interface IUseScheduleDialogProps {
37
+ client: ApolloClient<object>;
38
+ namespace: string;
39
+ target: IShowDialogParamsEntry;
40
+ }
41
+ export declare const useScheduleDialog: (props: IUseScheduleDialogProps) => UseShowScheduleDialogResponse;
42
+ export {};
@@ -0,0 +1,239 @@
1
+ import React, { useCallback, useMemo, useRef } from "react";
2
+ import { Alert, Button, Grid, Input } from "@webiny/admin-ui";
3
+ import { ReactComponent as DeleteIcon } from "@webiny/icons/delete.svg";
4
+ import { useDialogs, useSnackbar } from "@webiny/app-admin";
5
+ import { Bind } from "@webiny/form";
6
+ import { validation } from "@webiny/validation";
7
+ import { ScheduleActionType } from "../../../types.js";
8
+ import ValidationError from "@webiny/validation/validationError.js";
9
+ import { makeDecoratable } from "@webiny/react-composition";
10
+ import { ScheduleDialogAction } from "../../index.js";
11
+ import { SchedulerCancelGraphQLGateway } from "../../../Gateways/SchedulerCancelGraphQLGateway.js";
12
+ import { SchedulerPublishGraphQLGateway } from "../../../Gateways/SchedulerPublishGraphQLGateway.js";
13
+ import { SchedulerUnpublishGraphQLGateway } from "../../../Gateways/SchedulerUnpublishGraphQLGateway.js";
14
+ import { useGetScheduledAction } from "./useGetScheduledAction.js";
15
+ import { SchedulerGetGraphQLGateway } from "../../../Gateways/SchedulerGetGraphQLGateway.js";
16
+ const dateToLocaleStringFormatter = new Intl.DateTimeFormat(undefined, {
17
+ year: "numeric",
18
+ month: "2-digit",
19
+ day: "2-digit",
20
+ hour: "2-digit",
21
+ minute: "2-digit",
22
+ second: undefined,
23
+ hour12: false
24
+ });
25
+ const ReschedulingAlert = ({
26
+ scheduleOn,
27
+ actionType
28
+ }) => {
29
+ if (!scheduleOn || !actionType) {
30
+ return null;
31
+ }
32
+ const actionName = actionType === ScheduleActionType.publish ? "publish" : "unpublish";
33
+ return /*#__PURE__*/React.createElement(Alert, {
34
+ type: "danger"
35
+ }, /*#__PURE__*/React.createElement(React.Fragment, null, "A ", actionName, " is already scheduled at", /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("strong", null, dateToLocaleStringFormatter.format(scheduleOn)), "."));
36
+ };
37
+ /**
38
+ * DO NOT use a library for this!
39
+ */
40
+ const padLeft = num => {
41
+ return String(num).padStart(2, "0");
42
+ };
43
+ const formatDateForDateTimeLocal = date => {
44
+ if (!date) {
45
+ return undefined;
46
+ } else if (typeof date === "string") {
47
+ date = new Date(date);
48
+ }
49
+ const year = date.getFullYear();
50
+ const month = padLeft(date.getMonth() + 1);
51
+ const day = padLeft(date.getDate());
52
+ const hours = padLeft(date.getHours());
53
+ const minutes = padLeft(date.getMinutes());
54
+ return `${year}-${month}-${day}T${hours}:${minutes}`;
55
+ };
56
+ const minDateValidator = input => {
57
+ const value = new Date(input);
58
+ const minDate = new Date(new Date().getTime() + 120 * 1000);
59
+ if (minDate < value) {
60
+ return;
61
+ }
62
+ throw new ValidationError(`The date must be at least 2 minutes in the future. Current minimum date is ${dateToLocaleStringFormatter.format(minDate)}.`);
63
+ };
64
+ minDateValidator.validatorName = "minDateValidator";
65
+ const CancelButtonComponent = ({
66
+ enabled,
67
+ onCancel
68
+ }) => {
69
+ if (!enabled) {
70
+ return null;
71
+ }
72
+ return /*#__PURE__*/React.createElement(Button, {
73
+ variant: "ghost",
74
+ onClick: onCancel,
75
+ text: "Cancel Schedule",
76
+ size: "md",
77
+ icon: /*#__PURE__*/React.createElement(DeleteIcon, null),
78
+ iconPosition: "start"
79
+ });
80
+ };
81
+ export const SchedulerDialogFormComponentDateTimeInput = makeDecoratable("SchedulerDialogFormComponentDateTimeInput", props => {
82
+ const {
83
+ bind
84
+ } = props;
85
+ return /*#__PURE__*/React.createElement(Input, Object.assign({}, bind, {
86
+ value: formatDateForDateTimeLocal(bind.value),
87
+ title: "Schedule On",
88
+ label: "Schedule On",
89
+ size: "lg",
90
+ type: "datetime-local",
91
+ required: true,
92
+ autoFocus: true
93
+ }));
94
+ });
95
+ const FormComponent = ({
96
+ scheduleOn,
97
+ actionType
98
+ }) => {
99
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ReschedulingAlert, {
100
+ actionType: actionType,
101
+ scheduleOn: scheduleOn
102
+ }), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Grid.Column, {
103
+ span: 12
104
+ }, /*#__PURE__*/React.createElement(Bind, {
105
+ name: "scheduleOn",
106
+ validators: [validation.create("required"), minDateValidator]
107
+ }, bind => {
108
+ return /*#__PURE__*/React.createElement(SchedulerDialogFormComponentDateTimeInput, {
109
+ bind: bind
110
+ });
111
+ }))));
112
+ };
113
+ export const useScheduleDialog = props => {
114
+ const {
115
+ client,
116
+ target,
117
+ namespace
118
+ } = props;
119
+ const dialog = useDialogs();
120
+ const {
121
+ showSnackbar
122
+ } = useSnackbar();
123
+ const action = useMemo(() => {
124
+ const cancelGateway = new SchedulerCancelGraphQLGateway(client);
125
+ const publishGateway = new SchedulerPublishGraphQLGateway(client);
126
+ const unpublishGateway = new SchedulerUnpublishGraphQLGateway(client);
127
+ return new ScheduleDialogAction({
128
+ cancelGateway,
129
+ publishGateway,
130
+ unpublishGateway
131
+ });
132
+ }, [client]);
133
+ const getGateway = useMemo(() => {
134
+ return new SchedulerGetGraphQLGateway(client);
135
+ }, [client]);
136
+ const schedulerEntry = useGetScheduledAction({
137
+ gateway: getGateway,
138
+ namespace,
139
+ id: target.id
140
+ });
141
+ const dialogClose = useRef(() => {
142
+ return;
143
+ });
144
+ const onAccept = useCallback(async params => {
145
+ const {
146
+ scheduleOn,
147
+ actionType
148
+ } = params;
149
+ try {
150
+ await action.schedule({
151
+ targetId: target.id,
152
+ namespace,
153
+ scheduleOn,
154
+ actionType
155
+ });
156
+ showSnackbar(`Scheduled ${actionType} action for "${target.title}"!`);
157
+ } catch (error) {
158
+ showSnackbar(error.message);
159
+ console.error(error);
160
+ }
161
+ }, []);
162
+ const onCancel = useCallback(async () => {
163
+ if (!schedulerEntry) {
164
+ showSnackbar(`No scheduled action found for "${target.title}"!`);
165
+ if (dialogClose.current) {
166
+ dialogClose.current();
167
+ dialogClose.current = null;
168
+ }
169
+ return;
170
+ }
171
+ try {
172
+ await action.cancel({
173
+ id: schedulerEntry.id,
174
+ namespace: schedulerEntry.namespace
175
+ });
176
+ showSnackbar(`Canceled scheduled ${schedulerEntry.actionType} on "${schedulerEntry.title}"!`);
177
+ } catch (error) {
178
+ showSnackbar(error.message);
179
+ }
180
+ if (!dialogClose.current) {
181
+ return;
182
+ }
183
+ dialogClose.current();
184
+ dialogClose.current = null;
185
+ }, [schedulerEntry?.id]);
186
+ const showDialog = () => {
187
+ const isPublished = target.status === "published";
188
+ const scheduleOn = schedulerEntry?.publishOn || schedulerEntry?.unpublishOn;
189
+ dialogClose.current = dialog.showDialog({
190
+ title: `Schedule "${target.title}"`,
191
+ content: /*#__PURE__*/React.createElement(FormComponent, {
192
+ actionType: schedulerEntry?.actionType,
193
+ scheduleOn: scheduleOn
194
+ }),
195
+ formData: {
196
+ scheduleOn
197
+ },
198
+ acceptLabel: isPublished ? "Schedule Unpublish" : "Schedule Publish",
199
+ cancelLabel: "Discard",
200
+ loadingLabel: "Scheduling...",
201
+ info: /*#__PURE__*/React.createElement(CancelButtonComponent, {
202
+ enabled: !!scheduleOn,
203
+ onCancel: onCancel
204
+ }),
205
+ onAccept: data => {
206
+ if (!data.scheduleOn) {
207
+ showSnackbar(`Missing "Schedule On" date!`);
208
+ return;
209
+ }
210
+ /**
211
+ * We need to convert scheduleOn from local string to the ISO String (UTC) format.
212
+ * This is important because the date will be stored in the database in UTC format.
213
+ *
214
+ * We display the date (in the UI) in users timezone time.
215
+ */
216
+ let scheduleOn;
217
+ try {
218
+ scheduleOn = new Date(data.scheduleOn);
219
+ } catch (ex) {
220
+ showSnackbar(`Invalid "Schedule On" date!`, {
221
+ value: data.scheduleOn
222
+ });
223
+ console.error(ex);
224
+ return;
225
+ }
226
+ const actionType = isPublished ? ScheduleActionType.unpublish : ScheduleActionType.publish;
227
+ return onAccept({
228
+ scheduleOn,
229
+ actionType
230
+ });
231
+ }
232
+ });
233
+ };
234
+ return {
235
+ showDialog
236
+ };
237
+ };
238
+
239
+ //# sourceMappingURL=useScheduleDialog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useCallback","useMemo","useRef","Alert","Button","Grid","Input","ReactComponent","DeleteIcon","useDialogs","useSnackbar","Bind","validation","ScheduleActionType","ValidationError","makeDecoratable","ScheduleDialogAction","SchedulerCancelGraphQLGateway","SchedulerPublishGraphQLGateway","SchedulerUnpublishGraphQLGateway","useGetScheduledAction","SchedulerGetGraphQLGateway","dateToLocaleStringFormatter","Intl","DateTimeFormat","undefined","year","month","day","hour","minute","second","hour12","ReschedulingAlert","scheduleOn","actionType","actionName","publish","createElement","type","Fragment","format","padLeft","num","String","padStart","formatDateForDateTimeLocal","date","Date","getFullYear","getMonth","getDate","hours","getHours","minutes","getMinutes","minDateValidator","input","value","minDate","getTime","validatorName","CancelButtonComponent","enabled","onCancel","variant","onClick","text","size","icon","iconPosition","SchedulerDialogFormComponentDateTimeInput","props","bind","Object","assign","title","label","required","autoFocus","FormComponent","Column","span","name","validators","create","useScheduleDialog","client","target","namespace","dialog","showSnackbar","action","cancelGateway","publishGateway","unpublishGateway","getGateway","schedulerEntry","gateway","id","dialogClose","onAccept","params","schedule","targetId","error","message","console","current","cancel","showDialog","isPublished","status","publishOn","unpublishOn","content","formData","acceptLabel","cancelLabel","loadingLabel","info","data","ex","unpublish"],"sources":["useScheduleDialog.tsx"],"sourcesContent":["import React, { useCallback, useMemo, useRef } from \"react\";\nimport { Alert, Button, Grid, Input } from \"@webiny/admin-ui\";\nimport { ReactComponent as DeleteIcon } from \"@webiny/icons/delete.svg\";\nimport { useDialogs, useSnackbar } from \"@webiny/app-admin\";\nimport { Bind, type BindComponentRenderProp } from \"@webiny/form\";\nimport { validation } from \"@webiny/validation\";\nimport { ScheduleActionType } from \"~/types.js\";\nimport type { CmsContentEntryStatusType } from \"@webiny/app-headless-cms-common/types/index.js\";\nimport type { Validator } from \"@webiny/validation/types.js\";\nimport ValidationError from \"@webiny/validation/validationError.js\";\nimport { makeDecoratable } from \"@webiny/react-composition\";\nimport ApolloClient from \"apollo-client/ApolloClient.js\";\nimport { ScheduleDialogAction } from \"~/Presentation/index.js\";\nimport { SchedulerCancelGraphQLGateway } from \"~/Gateways/SchedulerCancelGraphQLGateway.js\";\nimport { SchedulerPublishGraphQLGateway } from \"~/Gateways/SchedulerPublishGraphQLGateway.js\";\nimport { SchedulerUnpublishGraphQLGateway } from \"~/Gateways/SchedulerUnpublishGraphQLGateway.js\";\nimport { useGetScheduledAction } from \"~/Presentation/components/ScheduleDialog/useGetScheduledAction.js\";\nimport { SchedulerGetGraphQLGateway } from \"~/Gateways/SchedulerGetGraphQLGateway.js\";\n\nexport type ShowDialogParamsEntryStatus = CmsContentEntryStatusType;\n\nexport interface IShowDialogParamsEntry {\n id: string;\n status: ShowDialogParamsEntryStatus;\n title: string;\n}\n\ninterface UseShowScheduleDialogResponse {\n showDialog: () => void;\n}\n\ninterface FormComponentProps {\n scheduleOn: Date | undefined;\n actionType: ScheduleActionType | undefined;\n}\n\nconst dateToLocaleStringFormatter = new Intl.DateTimeFormat(undefined, {\n year: \"numeric\",\n month: \"2-digit\",\n day: \"2-digit\",\n hour: \"2-digit\",\n minute: \"2-digit\",\n second: undefined,\n hour12: false\n});\n\ninterface IReschedulingAlertProps {\n scheduleOn: Date | undefined;\n actionType: ScheduleActionType | undefined;\n}\n\nconst ReschedulingAlert = ({ scheduleOn, actionType }: IReschedulingAlertProps) => {\n if (!scheduleOn || !actionType) {\n return null;\n }\n const actionName = actionType === ScheduleActionType.publish ? \"publish\" : \"unpublish\";\n return (\n <Alert type={\"danger\"}>\n <>\n A {actionName} is already scheduled at\n <br />\n <strong>{dateToLocaleStringFormatter.format(scheduleOn)}</strong>.\n </>\n </Alert>\n );\n};\n/**\n * DO NOT use a library for this!\n */\nconst padLeft = (num: number) => {\n return String(num).padStart(2, \"0\");\n};\n\nconst formatDateForDateTimeLocal = (date?: Date | string): string | undefined => {\n if (!date) {\n return undefined;\n } else if (typeof date === \"string\") {\n date = new Date(date);\n }\n\n const year = date.getFullYear();\n const month = padLeft(date.getMonth() + 1);\n const day = padLeft(date.getDate());\n const hours = padLeft(date.getHours());\n const minutes = padLeft(date.getMinutes());\n\n return `${year}-${month}-${day}T${hours}:${minutes}`;\n};\n\nconst minDateValidator: Validator = (input: string) => {\n const value = new Date(input);\n const minDate = new Date(new Date().getTime() + 120 * 1000);\n if (minDate < value) {\n return;\n }\n throw new ValidationError(\n `The date must be at least 2 minutes in the future. Current minimum date is ${dateToLocaleStringFormatter.format(\n minDate\n )}.`\n );\n};\n\nminDateValidator.validatorName = \"minDateValidator\";\n\nexport interface ISchedulerDialogFormComponentDateTimeInputProps {\n bind: BindComponentRenderProp<Date>;\n}\n\ninterface ICancelButtonComponentProps {\n enabled: boolean;\n onCancel: OnCancelCallable;\n}\nconst CancelButtonComponent = ({ enabled, onCancel }: ICancelButtonComponentProps) => {\n if (!enabled) {\n return null;\n }\n return (\n <Button\n variant=\"ghost\"\n onClick={onCancel}\n text={\"Cancel Schedule\"}\n size=\"md\"\n icon={<DeleteIcon />}\n iconPosition=\"start\"\n />\n );\n};\n\nexport const SchedulerDialogFormComponentDateTimeInput = makeDecoratable(\n \"SchedulerDialogFormComponentDateTimeInput\",\n (props: ISchedulerDialogFormComponentDateTimeInputProps) => {\n const { bind } = props;\n\n return (\n <Input\n {...bind}\n value={formatDateForDateTimeLocal(bind.value)}\n title={\"Schedule On\"}\n label={\"Schedule On\"}\n size={\"lg\"}\n type={\"datetime-local\"}\n required\n autoFocus\n />\n );\n }\n);\n\nconst FormComponent = ({ scheduleOn, actionType }: FormComponentProps) => {\n return (\n <>\n {<ReschedulingAlert actionType={actionType} scheduleOn={scheduleOn} />}\n <Grid>\n <Grid.Column span={12}>\n <Bind\n name={\"scheduleOn\"}\n validators={[validation.create(\"required\"), minDateValidator]}\n >\n {bind => {\n return <SchedulerDialogFormComponentDateTimeInput bind={bind} />;\n }}\n </Bind>\n </Grid.Column>\n </Grid>\n </>\n );\n};\n\ninterface ScheduleFormData {\n scheduleOn?: string;\n}\n\ninterface IOnAcceptParams {\n scheduleOn: Date;\n actionType: ScheduleActionType;\n}\n\ninterface OnCancelCallable {\n (): Promise<void>;\n}\n\nexport interface IUseScheduleDialogProps {\n client: ApolloClient<object>;\n namespace: string;\n target: IShowDialogParamsEntry;\n}\n\nexport const useScheduleDialog = (\n props: IUseScheduleDialogProps\n): UseShowScheduleDialogResponse => {\n const { client, target, namespace } = props;\n const dialog = useDialogs();\n const { showSnackbar } = useSnackbar();\n\n const action = useMemo(() => {\n const cancelGateway = new SchedulerCancelGraphQLGateway(client);\n const publishGateway = new SchedulerPublishGraphQLGateway(client);\n const unpublishGateway = new SchedulerUnpublishGraphQLGateway(client);\n\n return new ScheduleDialogAction({\n cancelGateway,\n publishGateway,\n unpublishGateway\n });\n }, [client]);\n\n const getGateway = useMemo(() => {\n return new SchedulerGetGraphQLGateway(client);\n }, [client]);\n\n const schedulerEntry = useGetScheduledAction({\n gateway: getGateway,\n namespace,\n id: target.id\n });\n\n const dialogClose = useRef<null | (() => void)>(() => {\n return;\n });\n\n const onAccept = useCallback(async (params: IOnAcceptParams) => {\n const { scheduleOn, actionType } = params;\n\n try {\n await action.schedule({\n targetId: target.id,\n namespace,\n scheduleOn,\n actionType\n });\n showSnackbar(`Scheduled ${actionType} action for \"${target.title}\"!`);\n } catch (error) {\n showSnackbar(error.message);\n console.error(error);\n }\n }, []);\n\n const onCancel = useCallback(async () => {\n if (!schedulerEntry) {\n showSnackbar(`No scheduled action found for \"${target.title}\"!`);\n if (dialogClose.current) {\n dialogClose.current();\n dialogClose.current = null;\n }\n return;\n }\n try {\n await action.cancel({\n id: schedulerEntry.id,\n namespace: schedulerEntry.namespace\n });\n showSnackbar(\n `Canceled scheduled ${schedulerEntry.actionType} on \"${schedulerEntry.title}\"!`\n );\n } catch (error) {\n showSnackbar(error.message);\n }\n if (!dialogClose.current) {\n return;\n }\n dialogClose.current();\n dialogClose.current = null;\n }, [schedulerEntry?.id]);\n\n const showDialog = () => {\n const isPublished = target.status === \"published\";\n const scheduleOn = schedulerEntry?.publishOn || schedulerEntry?.unpublishOn;\n\n dialogClose.current = dialog.showDialog({\n title: `Schedule \"${target.title}\"`,\n content: (\n <FormComponent actionType={schedulerEntry?.actionType} scheduleOn={scheduleOn} />\n ),\n formData: {\n scheduleOn\n },\n acceptLabel: isPublished ? \"Schedule Unpublish\" : \"Schedule Publish\",\n cancelLabel: \"Discard\",\n loadingLabel: \"Scheduling...\",\n info: <CancelButtonComponent enabled={!!scheduleOn} onCancel={onCancel} />,\n onAccept: (data: Partial<ScheduleFormData>) => {\n if (!data.scheduleOn) {\n showSnackbar(`Missing \"Schedule On\" date!`);\n return;\n }\n /**\n * We need to convert scheduleOn from local string to the ISO String (UTC) format.\n * This is important because the date will be stored in the database in UTC format.\n *\n * We display the date (in the UI) in users timezone time.\n */\n let scheduleOn: Date;\n try {\n scheduleOn = new Date(data.scheduleOn);\n } catch (ex) {\n showSnackbar(`Invalid \"Schedule On\" date!`, {\n value: data.scheduleOn\n });\n console.error(ex);\n return;\n }\n\n const actionType = isPublished\n ? ScheduleActionType.unpublish\n : ScheduleActionType.publish;\n\n return onAccept({\n scheduleOn,\n actionType\n });\n }\n });\n };\n\n return {\n showDialog\n };\n};\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,OAAO,EAAEC,MAAM,QAAQ,OAAO;AAC3D,SAASC,KAAK,EAAEC,MAAM,EAAEC,IAAI,EAAEC,KAAK,QAAQ,kBAAkB;AAC7D,SAASC,cAAc,IAAIC,UAAU,QAAQ,0BAA0B;AACvE,SAASC,UAAU,EAAEC,WAAW,QAAQ,mBAAmB;AAC3D,SAASC,IAAI,QAAsC,cAAc;AACjE,SAASC,UAAU,QAAQ,oBAAoB;AAC/C,SAASC,kBAAkB;AAG3B,OAAOC,eAAe,MAAM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React from "react";
2
+ interface SchedulerOverlayProps {
3
+ title: string;
4
+ onExited: () => void;
5
+ }
6
+ export declare const SchedulerOverlay: (props: SchedulerOverlayProps) => React.JSX.Element;
7
+ export {};
@@ -0,0 +1,36 @@
1
+ import React from "react";
2
+ import debounce from "lodash/debounce.js";
3
+ import { OverlayLayout } from "@webiny/app-admin";
4
+ import { Scrollbar } from "@webiny/ui/Scrollbar/index.js";
5
+ import { Title } from "../Title/index.js";
6
+ import { SearchInput } from "../SearchInput/index.js";
7
+ import { Empty } from "../Empty/index.js";
8
+ import { Table } from "../Table/index.js";
9
+ import { BottomInfoBar } from "../BottomInfoBar/index.js";
10
+ import { useScheduler } from "../../hooks/index.js";
11
+ export const SchedulerOverlay = props => {
12
+ const {
13
+ listMoreItems,
14
+ vm
15
+ } = useScheduler();
16
+ const onTableScroll = debounce(async ({
17
+ scrollFrame
18
+ }) => {
19
+ if (scrollFrame.top > 0.8) {
20
+ await listMoreItems();
21
+ }
22
+ }, 200);
23
+ return /*#__PURE__*/React.createElement(OverlayLayout, {
24
+ onExited: props.onExited,
25
+ barLeft: /*#__PURE__*/React.createElement(Title, {
26
+ title: props.title
27
+ }),
28
+ barMiddle: /*#__PURE__*/React.createElement(SearchInput, null)
29
+ }, /*#__PURE__*/React.createElement(Scrollbar, {
30
+ onScrollFrame: scrollFrame => onTableScroll({
31
+ scrollFrame
32
+ })
33
+ }, vm.isEmptyView ? /*#__PURE__*/React.createElement(Empty, null) : /*#__PURE__*/React.createElement(Table, null)), /*#__PURE__*/React.createElement(BottomInfoBar, null));
34
+ };
35
+
36
+ //# sourceMappingURL=SchedulerOverlay.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","debounce","OverlayLayout","Scrollbar","Title","SearchInput","Empty","Table","BottomInfoBar","useScheduler","SchedulerOverlay","props","listMoreItems","vm","onTableScroll","scrollFrame","top","createElement","onExited","barLeft","title","barMiddle","onScrollFrame","isEmptyView"],"sources":["SchedulerOverlay.tsx"],"sourcesContent":["import React from \"react\";\nimport debounce from \"lodash/debounce.js\";\nimport { OverlayLayout } from \"@webiny/app-admin\";\nimport { Scrollbar } from \"@webiny/ui/Scrollbar/index.js\";\nimport { Title } from \"~/Presentation/components/Title/index.js\";\nimport { SearchInput } from \"~/Presentation/components/SearchInput/index.js\";\nimport { Empty } from \"~/Presentation/components/Empty/index.js\";\nimport { Table } from \"~/Presentation/components/Table/index.js\";\nimport { BottomInfoBar } from \"~/Presentation/components/BottomInfoBar/index.js\";\nimport { useScheduler } from \"~/Presentation/hooks/index.js\";\n\ninterface SchedulerOverlayProps {\n title: string;\n onExited: () => void;\n}\n\nexport const SchedulerOverlay = (props: SchedulerOverlayProps) => {\n const { listMoreItems, vm } = useScheduler();\n\n const onTableScroll = debounce(async ({ scrollFrame }) => {\n if (scrollFrame.top > 0.8) {\n await listMoreItems();\n }\n }, 200);\n\n return (\n <OverlayLayout\n onExited={props.onExited}\n barLeft={<Title title={props.title} />}\n barMiddle={<SearchInput />}\n >\n <Scrollbar onScrollFrame={scrollFrame => onTableScroll({ scrollFrame })}>\n {vm.isEmptyView ? <Empty /> : <Table />}\n </Scrollbar>\n <BottomInfoBar />\n </OverlayLayout>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,oBAAoB;AACzC,SAASC,aAAa,QAAQ,mBAAmB;AACjD,SAASC,SAAS,QAAQ,+BAA+B;AACzD,SAASC,KAAK;AACd,SAASC,WAAW;AACpB,SAASC,KAAK;AACd,SAASC,KAAK;AACd,SAASC,aAAa;AACtB,SAASC,YAAY;AAOrB,OAAO,MAAMC,gBAAgB,GAAIC,KAA4B,IAAK;EAC9D,MAAM;IAAEC,aAAa;IAAEC;EAAG,CAAC,GAAGJ,YAAY,CAAC,CAAC;EAE5C,MAAMK,aAAa,GAAGb,QAAQ,CAAC,OAAO;IAAEc;EAAY,CAAC,KAAK;IACtD,IAAIA,WAAW,CAACC,GAAG,GAAG,GAAG,EAAE;MACvB,MAAMJ,aAAa,CAAC,CAAC;IACzB;EACJ,CAAC,EAAE,GAAG,CAAC;EAEP,oBACIZ,KAAA,CAAAiB,aAAA,CAACf,aAAa;IACVgB,QAAQ,EAAEP,KAAK,CAACO,QAAS;IACzBC,OAAO,eAAEnB,KAAA,CAAAiB,aAAA,CAACb,KAAK;MAACgB,KAAK,EAAET,KAAK,CAACS;IAAM,CAAE,CAAE;IACvCC,SAAS,eAAErB,KAAA,CAAAiB,aAAA,CAACZ,WAAW,MAAE;EAAE,gBAE3BL,KAAA,CAAAiB,aAAA,CAACd,SAAS;IAACmB,aAAa,EAAEP,WAAW,IAAID,aAAa,CAAC;MAAEC;IAAY,CAAC;EAAE,GACnEF,EAAE,CAACU,WAAW,gBAAGvB,KAAA,CAAAiB,aAAA,CAACX,KAAK,MAAE,CAAC,gBAAGN,KAAA,CAAAiB,aAAA,CAACV,KAAK,MAAE,CAC/B,CAAC,eACZP,KAAA,CAAAiB,aAAA,CAACT,aAAa,MAAE,CACL,CAAC;AAExB,CAAC","ignoreList":[]}
@@ -0,0 +1 @@
1
+ export * from "./SchedulerOverlay.js";
@@ -0,0 +1,3 @@
1
+ export * from "./SchedulerOverlay.js";
2
+
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./SchedulerOverlay.js\";\n"],"mappings":"AAAA","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const SearchInput: () => React.JSX.Element;
@@ -0,0 +1,37 @@
1
+ import React from "react";
2
+ import { ReactComponent as SearchIcon } from "@webiny/icons/search.svg";
3
+ import { DelayedOnChange, Icon, Input } from "@webiny/admin-ui";
4
+ import { useScheduler } from "../../hooks/index.js";
5
+ export const SearchInput = () => {
6
+ const {
7
+ vm,
8
+ searchItems
9
+ } = useScheduler();
10
+ return /*#__PURE__*/React.createElement(DelayedOnChange, {
11
+ value: vm.searchQuery,
12
+ onChange: value => {
13
+ if (value === vm.searchQuery) {
14
+ return;
15
+ }
16
+ searchItems(value);
17
+ }
18
+ }, ({
19
+ value,
20
+ onChange
21
+ }) => /*#__PURE__*/React.createElement(Input, {
22
+ id: "scheduler__search-input",
23
+ value: value,
24
+ onChange: e => onChange(e.target.value),
25
+ forwardEventOnChange: true,
26
+ placeholder: vm.searchLabel,
27
+ "data-testid": "scheduler.search-input",
28
+ startIcon: /*#__PURE__*/React.createElement(Icon, {
29
+ icon: /*#__PURE__*/React.createElement(SearchIcon, null),
30
+ label: "Search"
31
+ }),
32
+ size: "md",
33
+ variant: "ghost"
34
+ }));
35
+ };
36
+
37
+ //# sourceMappingURL=SearchInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","ReactComponent","SearchIcon","DelayedOnChange","Icon","Input","useScheduler","SearchInput","vm","searchItems","createElement","value","searchQuery","onChange","id","e","target","forwardEventOnChange","placeholder","searchLabel","startIcon","icon","label","size","variant"],"sources":["SearchInput.tsx"],"sourcesContent":["import React from \"react\";\nimport { ReactComponent as SearchIcon } from \"@webiny/icons/search.svg\";\nimport { DelayedOnChange, Icon, Input } from \"@webiny/admin-ui\";\nimport { useScheduler } from \"~/Presentation/hooks/index.js\";\n\nexport const SearchInput = () => {\n const { vm, searchItems } = useScheduler();\n\n return (\n <DelayedOnChange\n value={vm.searchQuery}\n onChange={value => {\n if (value === vm.searchQuery) {\n return;\n }\n searchItems(value);\n }}\n >\n {({ value, onChange }) => (\n <Input\n id={\"scheduler__search-input\"}\n value={value}\n onChange={e => onChange(e.target.value)}\n forwardEventOnChange={true}\n placeholder={vm.searchLabel}\n data-testid={\"scheduler.search-input\"}\n startIcon={<Icon icon={<SearchIcon />} label=\"Search\" />}\n size={\"md\"}\n variant={\"ghost\"}\n />\n )}\n </DelayedOnChange>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,cAAc,IAAIC,UAAU,QAAQ,0BAA0B;AACvE,SAASC,eAAe,EAAEC,IAAI,EAAEC,KAAK,QAAQ,kBAAkB;AAC/D,SAASC,YAAY;AAErB,OAAO,MAAMC,WAAW,GAAGA,CAAA,KAAM;EAC7B,MAAM;IAAEC,EAAE;IAAEC;EAAY,CAAC,GAAGH,YAAY,CAAC,CAAC;EAE1C,oBACIN,KAAA,CAAAU,aAAA,CAACP,eAAe;IACZQ,KAAK,EAAEH,EAAE,CAACI,WAAY;IACtBC,QAAQ,EAAEF,KAAK,IAAI;MACf,IAAIA,KAAK,KAAKH,EAAE,CAACI,WAAW,EAAE;QAC1B;MACJ;MACAH,WAAW,CAACE,KAAK,CAAC;IACtB;EAAE,GAED,CAAC;IAAEA,KAAK;IAAEE;EAAS,CAAC,kBACjBb,KAAA,CAAAU,aAAA,CAACL,KAAK;IACFS,EAAE,EAAE,yBAA0B;IAC9BH,KAAK,EAAEA,KAAM;IACbE,QAAQ,EAAEE,CAAC,IAAIF,QAAQ,CAACE,CAAC,CAACC,MAAM,CAACL,KAAK,CAAE;IACxCM,oBAAoB,EAAE,IAAK;IAC3BC,WAAW,EAAEV,EAAE,CAACW,WAAY;IAC5B,eAAa,wBAAyB;IACtCC,SAAS,eAAEpB,KAAA,CAAAU,aAAA,CAACN,IAAI;MAACiB,IAAI,eAAErB,KAAA,CAAAU,aAAA,CAACR,UAAU,MAAE,CAAE;MAACoB,KAAK,EAAC;IAAQ,CAAE,CAAE;IACzDC,IAAI,EAAE,IAAK;IACXC,OAAO,EAAE;EAAQ,CACpB,CAEQ,CAAC;AAE1B,CAAC","ignoreList":[]}
@@ -0,0 +1 @@
1
+ export * from "./SearchInput.js";
@@ -0,0 +1,3 @@
1
+ export * from "./SearchInput.js";
2
+
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./SearchInput.js\";\n"],"mappings":"AAAA","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const Table: () => React.JSX.Element;
@@ -0,0 +1,34 @@
1
+ import React, { useMemo } from "react";
2
+ import { createRecordsData, Table as AcoTable } from "@webiny/app-aco";
3
+ import { useScheduler } from "../../hooks/index.js";
4
+ import { LoadingActions } from "../../../types.js";
5
+ import { useSchedulerListConfig } from "../../configs/index.js";
6
+ export const Table = () => {
7
+ const {
8
+ vm,
9
+ selectItems,
10
+ sortItems
11
+ } = useScheduler();
12
+ const {
13
+ browser
14
+ } = useSchedulerListConfig();
15
+ const data = useMemo(() => {
16
+ return createRecordsData(vm.items);
17
+ }, [vm.items]);
18
+ const selected = useMemo(() => {
19
+ return createRecordsData(vm.selectedItems);
20
+ }, [vm.selectedItems]);
21
+ return /*#__PURE__*/React.createElement(AcoTable, {
22
+ columns: browser.table.columns,
23
+ data: data,
24
+ loading: vm.loading[LoadingActions.list],
25
+ onSelectRow: entries => selectItems(entries.map(entry => entry.data)),
26
+ sorting: vm.sorting,
27
+ onSortingChange: sort => sortItems(sort),
28
+ selected: selected,
29
+ nameColumnId: vm.nameColumnId,
30
+ namespace: "scheduler/list"
31
+ });
32
+ };
33
+
34
+ //# sourceMappingURL=Table.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useMemo","createRecordsData","Table","AcoTable","useScheduler","LoadingActions","useSchedulerListConfig","vm","selectItems","sortItems","browser","data","items","selected","selectedItems","createElement","columns","table","loading","list","onSelectRow","entries","map","entry","sorting","onSortingChange","sort","nameColumnId","namespace"],"sources":["Table.tsx"],"sourcesContent":["import React, { useMemo } from \"react\";\nimport { createRecordsData, Table as AcoTable } from \"@webiny/app-aco\";\nimport { useScheduler } from \"~/Presentation/hooks/index.js\";\nimport { LoadingActions, type SchedulerEntryTableRow } from \"~/types.js\";\nimport { useSchedulerListConfig } from \"~/Presentation/configs/index.js\";\n\nexport const Table = () => {\n const { vm, selectItems, sortItems } = useScheduler();\n const { browser } = useSchedulerListConfig();\n\n const data = useMemo<SchedulerEntryTableRow[]>(() => {\n return createRecordsData(vm.items);\n }, [vm.items]);\n\n const selected = useMemo<SchedulerEntryTableRow[]>(() => {\n return createRecordsData(vm.selectedItems);\n }, [vm.selectedItems]);\n\n return (\n <AcoTable<SchedulerEntryTableRow>\n columns={browser.table.columns}\n data={data}\n loading={vm.loading[LoadingActions.list]}\n onSelectRow={entries => selectItems(entries.map(entry => entry.data))}\n sorting={vm.sorting}\n onSortingChange={sort => sortItems(sort)}\n selected={selected}\n nameColumnId={vm.nameColumnId}\n namespace={\"scheduler/list\"}\n />\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AACtC,SAASC,iBAAiB,EAAEC,KAAK,IAAIC,QAAQ,QAAQ,iBAAiB;AACtE,SAASC,YAAY;AACrB,SAASC,cAAc;AACvB,SAASC,sBAAsB;AAE/B,OAAO,MAAMJ,KAAK,GAAGA,CAAA,KAAM;EACvB,MAAM;IAAEK,EAAE;IAAEC,WAAW;IAAEC;EAAU,CAAC,GAAGL,YAAY,CAAC,CAAC;EACrD,MAAM;IAAEM;EAAQ,CAAC,GAAGJ,sBAAsB,CAAC,CAAC;EAE5C,MAAMK,IAAI,GAAGX,OAAO,CAA2B,MAAM;IACjD,OAAOC,iBAAiB,CAACM,EAAE,CAACK,KAAK,CAAC;EACtC,CAAC,EAAE,CAACL,EAAE,CAACK,KAAK,CAAC,CAAC;EAEd,MAAMC,QAAQ,GAAGb,OAAO,CAA2B,MAAM;IACrD,OAAOC,iBAAiB,CAACM,EAAE,CAACO,aAAa,CAAC;EAC9C,CAAC,EAAE,CAACP,EAAE,CAACO,aAAa,CAAC,CAAC;EAEtB,oBACIf,KAAA,CAAAgB,aAAA,CAACZ,QAAQ;IACLa,OAAO,EAAEN,OAAO,CAACO,KAAK,CAACD,OAAQ;IAC/BL,IAAI,EAAEA,IAAK;IACXO,OAAO,EAAEX,EAAE,CAACW,OAAO,CAACb,cAAc,CAACc,IAAI,CAAE;IACzCC,WAAW,EAAEC,OAAO,IAAIb,WAAW,CAACa,OAAO,CAACC,GAAG,CAACC,KAAK,IAAIA,KAAK,CAACZ,IAAI,CAAC,CAAE;IACtEa,OAAO,EAAEjB,EAAE,CAACiB,OAAQ;IACpBC,eAAe,EAAEC,IAAI,IAAIjB,SAAS,CAACiB,IAAI,CAAE;IACzCb,QAAQ,EAAEA,QAAS;IACnBc,YAAY,EAAEpB,EAAE,CAACoB,YAAa;IAC9BC,SAAS,EAAE;EAAiB,CAC/B,CAAC;AAEV,CAAC","ignoreList":[]}
@@ -0,0 +1 @@
1
+ export * from "./Table.js";
@@ -0,0 +1,3 @@
1
+ export * from "./Table.js";
2
+
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Table.js\";\n"],"mappings":"AAAA","ignoreList":[]}
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ export interface TitleProps {
3
+ title?: string;
4
+ }
5
+ export declare const Title: ({ title }: TitleProps) => React.JSX.Element;
@@ -0,0 +1,15 @@
1
+ import React from "react";
2
+ import { Skeleton } from "@webiny/ui/Skeleton/index.js";
3
+ import { Name } from "./Title.styled.js";
4
+ export const Title = ({
5
+ title
6
+ }) => {
7
+ return /*#__PURE__*/React.createElement(Name, {
8
+ use: "headline6",
9
+ tag: "h1"
10
+ }, title || /*#__PURE__*/React.createElement(Skeleton, {
11
+ theme: "dark"
12
+ }));
13
+ };
14
+
15
+ //# sourceMappingURL=Title.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","Skeleton","Name","Title","title","createElement","use","tag","theme"],"sources":["Title.tsx"],"sourcesContent":["import React from \"react\";\nimport { Skeleton } from \"@webiny/ui/Skeleton/index.js\";\nimport { Name } from \"./Title.styled.js\";\n\nexport interface TitleProps {\n title?: string;\n}\n\nexport const Title = ({ title }: TitleProps) => {\n return (\n <Name use={\"headline6\"} tag={\"h1\"}>\n {title || <Skeleton theme={\"dark\"} />}\n </Name>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,QAAQ,8BAA8B;AACvD,SAASC,IAAI;AAMb,OAAO,MAAMC,KAAK,GAAGA,CAAC;EAAEC;AAAkB,CAAC,KAAK;EAC5C,oBACIJ,KAAA,CAAAK,aAAA,CAACH,IAAI;IAACI,GAAG,EAAE,WAAY;IAACC,GAAG,EAAE;EAAK,GAC7BH,KAAK,iBAAIJ,KAAA,CAAAK,aAAA,CAACJ,QAAQ;IAACO,KAAK,EAAE;EAAO,CAAE,CAClC,CAAC;AAEf,CAAC","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ import type { TypographyProps } from "@webiny/ui/Typography/index.js";
2
+ export declare const Name: import("@emotion/styled").StyledComponent<TypographyProps & {
3
+ theme?: import("@emotion/react").Theme;
4
+ }, {}, {}>;