@webiny/app-scheduler 0.0.0-unstable.7be00a75a9

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 (429) hide show
  1. package/Domain/Models/SchedulerItem/SchedulerItem.d.ts +13 -0
  2. package/Domain/Models/SchedulerItem/SchedulerItem.js +18 -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 +1 -0
  6. package/Domain/Models/index.d.ts +1 -0
  7. package/Domain/Models/index.js +1 -0
  8. package/Domain/Repositories/SchedulerItems/ISchedulerItemsRepository.d.ts +14 -0
  9. package/Domain/Repositories/SchedulerItems/ISchedulerItemsRepository.js +0 -0
  10. package/Domain/Repositories/SchedulerItems/SchedulerItemsRepository.d.ts +36 -0
  11. package/Domain/Repositories/SchedulerItems/SchedulerItemsRepository.js +119 -0
  12. package/Domain/Repositories/SchedulerItems/SchedulerItemsRepository.js.map +1 -0
  13. package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryFactory.d.ts +19 -0
  14. package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryFactory.js +18 -0
  15. package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryFactory.js.map +1 -0
  16. package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryWithLoading.d.ts +17 -0
  17. package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryWithLoading.js +39 -0
  18. package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryWithLoading.js.map +1 -0
  19. package/Domain/Repositories/SchedulerItems/index.d.ts +4 -0
  20. package/Domain/Repositories/SchedulerItems/index.js +3 -0
  21. package/Domain/Repositories/Search/ISearchRepository.d.ts +4 -0
  22. package/Domain/Repositories/Search/ISearchRepository.js +0 -0
  23. package/Domain/Repositories/Search/SearchRepository.d.ts +7 -0
  24. package/Domain/Repositories/Search/SearchRepository.js +16 -0
  25. package/Domain/Repositories/Search/SearchRepository.js.map +1 -0
  26. package/Domain/Repositories/Search/SearchRepositoryFactory.d.ts +7 -0
  27. package/Domain/Repositories/Search/SearchRepositoryFactory.js +18 -0
  28. package/Domain/Repositories/Search/SearchRepositoryFactory.js.map +1 -0
  29. package/Domain/Repositories/Search/index.d.ts +3 -0
  30. package/Domain/Repositories/Search/index.js +2 -0
  31. package/Domain/Repositories/SelectedItems/ISelectedItemsRepository.d.ts +8 -0
  32. package/Domain/Repositories/SelectedItems/ISelectedItemsRepository.js +0 -0
  33. package/Domain/Repositories/SelectedItems/SelectedItemsRepository.d.ts +12 -0
  34. package/Domain/Repositories/SelectedItems/SelectedItemsRepository.js +28 -0
  35. package/Domain/Repositories/SelectedItems/SelectedItemsRepository.js.map +1 -0
  36. package/Domain/Repositories/SelectedItems/SelectedItemsRepositoryFactory.d.ts +7 -0
  37. package/Domain/Repositories/SelectedItems/SelectedItemsRepositoryFactory.js +18 -0
  38. package/Domain/Repositories/SelectedItems/SelectedItemsRepositoryFactory.js.map +1 -0
  39. package/Domain/Repositories/SelectedItems/index.d.ts +3 -0
  40. package/Domain/Repositories/SelectedItems/index.js +2 -0
  41. package/Domain/Repositories/Sorting/SortingRepositoryWithDefaults.d.ts +8 -0
  42. package/Domain/Repositories/Sorting/SortingRepositoryWithDefaults.js +21 -0
  43. package/Domain/Repositories/Sorting/SortingRepositoryWithDefaults.js.map +1 -0
  44. package/Domain/Repositories/Sorting/index.d.ts +1 -0
  45. package/Domain/Repositories/Sorting/index.js +1 -0
  46. package/Domain/Repositories/index.d.ts +4 -0
  47. package/Domain/Repositories/index.js +4 -0
  48. package/Domain/index.d.ts +2 -0
  49. package/Domain/index.js +2 -0
  50. package/Gateways/SchedulerCancelGraphQLGateway.d.ts +7 -0
  51. package/Gateways/SchedulerCancelGraphQLGateway.js +42 -0
  52. package/Gateways/SchedulerCancelGraphQLGateway.js.map +1 -0
  53. package/Gateways/SchedulerGetGraphQLGateway.d.ts +21 -0
  54. package/Gateways/SchedulerGetGraphQLGateway.js +68 -0
  55. package/Gateways/SchedulerGetGraphQLGateway.js.map +1 -0
  56. package/Gateways/SchedulerListGraphQLGateway.d.ts +7 -0
  57. package/Gateways/SchedulerListGraphQLGateway.js +86 -0
  58. package/Gateways/SchedulerListGraphQLGateway.js.map +1 -0
  59. package/Gateways/SchedulerPublishGraphQLGateway.d.ts +7 -0
  60. package/Gateways/SchedulerPublishGraphQLGateway.js +59 -0
  61. package/Gateways/SchedulerPublishGraphQLGateway.js.map +1 -0
  62. package/Gateways/SchedulerUnpublishGraphQLGateway.d.ts +23 -0
  63. package/Gateways/SchedulerUnpublishGraphQLGateway.js +63 -0
  64. package/Gateways/SchedulerUnpublishGraphQLGateway.js.map +1 -0
  65. package/Gateways/abstractions/CancelScheduledActionGateway.d.ts +7 -0
  66. package/Gateways/abstractions/CancelScheduledActionGateway.js +0 -0
  67. package/Gateways/abstractions/GetScheduledActionGateway.d.ts +9 -0
  68. package/Gateways/abstractions/GetScheduledActionGateway.js +0 -0
  69. package/Gateways/abstractions/ListScheduledActionsGateway.d.ts +27 -0
  70. package/Gateways/abstractions/ListScheduledActionsGateway.js +0 -0
  71. package/Gateways/abstractions/SchedulePublishActionGateway.d.ts +12 -0
  72. package/Gateways/abstractions/SchedulePublishActionGateway.js +0 -0
  73. package/Gateways/abstractions/ScheduleUnpublishActionGateway.d.ts +12 -0
  74. package/Gateways/abstractions/ScheduleUnpublishActionGateway.js +0 -0
  75. package/Gateways/graphql/fields.d.ts +1 -0
  76. package/Gateways/graphql/fields.js +17 -0
  77. package/Gateways/graphql/fields.js.map +1 -0
  78. package/Gateways/index.d.ts +5 -0
  79. package/Gateways/index.js +0 -0
  80. package/Gateways/schema/schedulerEntry.d.ts +16 -0
  81. package/Gateways/schema/schedulerEntry.js +19 -0
  82. package/Gateways/schema/schedulerEntry.js.map +1 -0
  83. package/LICENSE +21 -0
  84. package/Presentation/Scheduler/Scheduler.d.ts +17 -0
  85. package/Presentation/Scheduler/Scheduler.js +78 -0
  86. package/Presentation/Scheduler/Scheduler.js.map +1 -0
  87. package/Presentation/Scheduler/SchedulerControllers.d.ts +30 -0
  88. package/Presentation/Scheduler/SchedulerControllers.js +54 -0
  89. package/Presentation/Scheduler/SchedulerControllers.js.map +1 -0
  90. package/Presentation/Scheduler/SchedulerPresenter.d.ts +32 -0
  91. package/Presentation/Scheduler/SchedulerPresenter.js +45 -0
  92. package/Presentation/Scheduler/SchedulerPresenter.js.map +1 -0
  93. package/Presentation/Scheduler/controllers/CancelItem/CancelItemController.d.ts +7 -0
  94. package/Presentation/Scheduler/controllers/CancelItem/CancelItemController.js +12 -0
  95. package/Presentation/Scheduler/controllers/CancelItem/CancelItemController.js.map +1 -0
  96. package/Presentation/Scheduler/controllers/CancelItem/ICancelItemController.d.ts +3 -0
  97. package/Presentation/Scheduler/controllers/CancelItem/ICancelItemController.js +0 -0
  98. package/Presentation/Scheduler/controllers/CancelItem/index.d.ts +2 -0
  99. package/Presentation/Scheduler/controllers/CancelItem/index.js +1 -0
  100. package/Presentation/Scheduler/controllers/GetItem/GetItemController.d.ts +8 -0
  101. package/Presentation/Scheduler/controllers/GetItem/GetItemController.js +12 -0
  102. package/Presentation/Scheduler/controllers/GetItem/GetItemController.js.map +1 -0
  103. package/Presentation/Scheduler/controllers/GetItem/IGetItemController.d.ts +4 -0
  104. package/Presentation/Scheduler/controllers/GetItem/IGetItemController.js +0 -0
  105. package/Presentation/Scheduler/controllers/GetItem/index.d.ts +2 -0
  106. package/Presentation/Scheduler/controllers/GetItem/index.js +1 -0
  107. package/Presentation/Scheduler/controllers/ListItems/IListItemsController.d.ts +4 -0
  108. package/Presentation/Scheduler/controllers/ListItems/IListItemsController.js +0 -0
  109. package/Presentation/Scheduler/controllers/ListItems/ListItemsController.d.ts +8 -0
  110. package/Presentation/Scheduler/controllers/ListItems/ListItemsController.js +12 -0
  111. package/Presentation/Scheduler/controllers/ListItems/ListItemsController.js.map +1 -0
  112. package/Presentation/Scheduler/controllers/ListItems/index.d.ts +2 -0
  113. package/Presentation/Scheduler/controllers/ListItems/index.js +1 -0
  114. package/Presentation/Scheduler/controllers/ListMoreItems/IListMoreItemsController.d.ts +3 -0
  115. package/Presentation/Scheduler/controllers/ListMoreItems/IListMoreItemsController.js +0 -0
  116. package/Presentation/Scheduler/controllers/ListMoreItems/ListMoreItemsController.d.ts +7 -0
  117. package/Presentation/Scheduler/controllers/ListMoreItems/ListMoreItemsController.js +12 -0
  118. package/Presentation/Scheduler/controllers/ListMoreItems/ListMoreItemsController.js.map +1 -0
  119. package/Presentation/Scheduler/controllers/ListMoreItems/index.d.ts +2 -0
  120. package/Presentation/Scheduler/controllers/ListMoreItems/index.js +1 -0
  121. package/Presentation/Scheduler/controllers/PublishItem/IPublishItemController.d.ts +3 -0
  122. package/Presentation/Scheduler/controllers/PublishItem/IPublishItemController.js +0 -0
  123. package/Presentation/Scheduler/controllers/PublishItem/PublishItemController.d.ts +7 -0
  124. package/Presentation/Scheduler/controllers/PublishItem/PublishItemController.js +12 -0
  125. package/Presentation/Scheduler/controllers/PublishItem/PublishItemController.js.map +1 -0
  126. package/Presentation/Scheduler/controllers/PublishItem/index.d.ts +2 -0
  127. package/Presentation/Scheduler/controllers/PublishItem/index.js +1 -0
  128. package/Presentation/Scheduler/controllers/SearchItems/ISearchItemsController.d.ts +3 -0
  129. package/Presentation/Scheduler/controllers/SearchItems/ISearchItemsController.js +0 -0
  130. package/Presentation/Scheduler/controllers/SearchItems/SearchItemsController.d.ts +8 -0
  131. package/Presentation/Scheduler/controllers/SearchItems/SearchItemsController.js +15 -0
  132. package/Presentation/Scheduler/controllers/SearchItems/SearchItemsController.js.map +1 -0
  133. package/Presentation/Scheduler/controllers/SearchItems/index.d.ts +2 -0
  134. package/Presentation/Scheduler/controllers/SearchItems/index.js +1 -0
  135. package/Presentation/Scheduler/controllers/SelectAllItems/ISelectAllItemsController.d.ts +3 -0
  136. package/Presentation/Scheduler/controllers/SelectAllItems/ISelectAllItemsController.js +0 -0
  137. package/Presentation/Scheduler/controllers/SelectAllItems/SelectAllItemsController.d.ts +7 -0
  138. package/Presentation/Scheduler/controllers/SelectAllItems/SelectAllItemsController.js +12 -0
  139. package/Presentation/Scheduler/controllers/SelectAllItems/SelectAllItemsController.js.map +1 -0
  140. package/Presentation/Scheduler/controllers/SelectAllItems/index.d.ts +2 -0
  141. package/Presentation/Scheduler/controllers/SelectAllItems/index.js +1 -0
  142. package/Presentation/Scheduler/controllers/SelectItems/ISelectItemsController.d.ts +4 -0
  143. package/Presentation/Scheduler/controllers/SelectItems/ISelectItemsController.js +0 -0
  144. package/Presentation/Scheduler/controllers/SelectItems/SelectItemsController.d.ts +8 -0
  145. package/Presentation/Scheduler/controllers/SelectItems/SelectItemsController.js +14 -0
  146. package/Presentation/Scheduler/controllers/SelectItems/SelectItemsController.js.map +1 -0
  147. package/Presentation/Scheduler/controllers/SelectItems/index.d.ts +2 -0
  148. package/Presentation/Scheduler/controllers/SelectItems/index.js +1 -0
  149. package/Presentation/Scheduler/controllers/SortItems/ISortItemsController.d.ts +4 -0
  150. package/Presentation/Scheduler/controllers/SortItems/ISortItemsController.js +0 -0
  151. package/Presentation/Scheduler/controllers/SortItems/SortItemsController.d.ts +9 -0
  152. package/Presentation/Scheduler/controllers/SortItems/SortItemsController.js +18 -0
  153. package/Presentation/Scheduler/controllers/SortItems/SortItemsController.js.map +1 -0
  154. package/Presentation/Scheduler/controllers/SortItems/index.d.ts +2 -0
  155. package/Presentation/Scheduler/controllers/SortItems/index.js +1 -0
  156. package/Presentation/Scheduler/controllers/UnpublishItem/IUnpublishItemController.d.ts +3 -0
  157. package/Presentation/Scheduler/controllers/UnpublishItem/IUnpublishItemController.js +0 -0
  158. package/Presentation/Scheduler/controllers/UnpublishItem/UnpublishItemController.d.ts +7 -0
  159. package/Presentation/Scheduler/controllers/UnpublishItem/UnpublishItemController.js +12 -0
  160. package/Presentation/Scheduler/controllers/UnpublishItem/UnpublishItemController.js.map +1 -0
  161. package/Presentation/Scheduler/controllers/UnpublishItem/index.d.ts +2 -0
  162. package/Presentation/Scheduler/controllers/UnpublishItem/index.js +1 -0
  163. package/Presentation/Scheduler/controllers/UnselectAllItems/IUnselectAllItemsController.d.ts +3 -0
  164. package/Presentation/Scheduler/controllers/UnselectAllItems/IUnselectAllItemsController.js +0 -0
  165. package/Presentation/Scheduler/controllers/UnselectAllItems/UnselectAllItemsController.d.ts +7 -0
  166. package/Presentation/Scheduler/controllers/UnselectAllItems/UnselectAllItemsController.js +12 -0
  167. package/Presentation/Scheduler/controllers/UnselectAllItems/UnselectAllItemsController.js.map +1 -0
  168. package/Presentation/Scheduler/controllers/UnselectAllItems/index.d.ts +2 -0
  169. package/Presentation/Scheduler/controllers/UnselectAllItems/index.js +1 -0
  170. package/Presentation/Scheduler/controllers/index.d.ts +11 -0
  171. package/Presentation/Scheduler/controllers/index.js +11 -0
  172. package/Presentation/Scheduler/index.d.ts +1 -0
  173. package/Presentation/Scheduler/index.js +1 -0
  174. package/Presentation/SchedulerConfigs/SchedulerConfigs.d.ts +2 -0
  175. package/Presentation/SchedulerConfigs/SchedulerConfigs.js +52 -0
  176. package/Presentation/SchedulerConfigs/SchedulerConfigs.js.map +1 -0
  177. package/Presentation/SchedulerConfigs/index.d.ts +1 -0
  178. package/Presentation/SchedulerConfigs/index.js +1 -0
  179. package/Presentation/SchedulerRenderer/SchedulerRenderer.d.ts +6 -0
  180. package/Presentation/SchedulerRenderer/SchedulerRenderer.js +16 -0
  181. package/Presentation/SchedulerRenderer/SchedulerRenderer.js.map +1 -0
  182. package/Presentation/SchedulerRenderer/index.d.ts +1 -0
  183. package/Presentation/SchedulerRenderer/index.js +1 -0
  184. package/Presentation/abstractions/ISchedulerControllers.d.ts +14 -0
  185. package/Presentation/abstractions/ISchedulerControllers.js +0 -0
  186. package/Presentation/abstractions/ISchedulerPresenter.d.ts +20 -0
  187. package/Presentation/abstractions/ISchedulerPresenter.js +0 -0
  188. package/Presentation/abstractions/index.d.ts +2 -0
  189. package/Presentation/abstractions/index.js +0 -0
  190. package/Presentation/components/Actions/CancelItem/CancelItem.d.ts +2 -0
  191. package/Presentation/components/Actions/CancelItem/CancelItem.js +19 -0
  192. package/Presentation/components/Actions/CancelItem/CancelItem.js.map +1 -0
  193. package/Presentation/components/Actions/CancelItem/index.d.ts +1 -0
  194. package/Presentation/components/Actions/CancelItem/index.js +1 -0
  195. package/Presentation/components/Actions/index.d.ts +1 -0
  196. package/Presentation/components/Actions/index.js +1 -0
  197. package/Presentation/components/BottomInfoBar/BottomInfoBar.d.ts +2 -0
  198. package/Presentation/components/BottomInfoBar/BottomInfoBar.js +19 -0
  199. package/Presentation/components/BottomInfoBar/BottomInfoBar.js.map +1 -0
  200. package/Presentation/components/BottomInfoBar/BottomInfoBar.styled.d.ts +20 -0
  201. package/Presentation/components/BottomInfoBar/BottomInfoBar.styled.js +43 -0
  202. package/Presentation/components/BottomInfoBar/BottomInfoBar.styled.js.map +1 -0
  203. package/Presentation/components/BottomInfoBar/ListMeta.d.ts +7 -0
  204. package/Presentation/components/BottomInfoBar/ListMeta.js +9 -0
  205. package/Presentation/components/BottomInfoBar/ListMeta.js.map +1 -0
  206. package/Presentation/components/BottomInfoBar/ListStatus.d.ts +5 -0
  207. package/Presentation/components/BottomInfoBar/ListStatus.js +12 -0
  208. package/Presentation/components/BottomInfoBar/ListStatus.js.map +1 -0
  209. package/Presentation/components/BottomInfoBar/index.d.ts +1 -0
  210. package/Presentation/components/BottomInfoBar/index.js +1 -0
  211. package/Presentation/components/Cells/CellActions/CellActions.d.ts +2 -0
  212. package/Presentation/components/Cells/CellActions/CellActions.js +18 -0
  213. package/Presentation/components/Cells/CellActions/CellActions.js.map +1 -0
  214. package/Presentation/components/Cells/CellActions/index.d.ts +1 -0
  215. package/Presentation/components/Cells/CellActions/index.js +1 -0
  216. package/Presentation/components/Cells/CellRevision/CellRevision.d.ts +2 -0
  217. package/Presentation/components/Cells/CellRevision/CellRevision.js +15 -0
  218. package/Presentation/components/Cells/CellRevision/CellRevision.js.map +1 -0
  219. package/Presentation/components/Cells/CellRevision/CellRevision.styled.d.ts +11 -0
  220. package/Presentation/components/Cells/CellRevision/CellRevision.styled.js +18 -0
  221. package/Presentation/components/Cells/CellRevision/CellRevision.styled.js.map +1 -0
  222. package/Presentation/components/Cells/CellRevision/index.d.ts +1 -0
  223. package/Presentation/components/Cells/CellRevision/index.js +1 -0
  224. package/Presentation/components/Cells/CellScheduledBy/CellScheduledBy.d.ts +2 -0
  225. package/Presentation/components/Cells/CellScheduledBy/CellScheduledBy.js +10 -0
  226. package/Presentation/components/Cells/CellScheduledBy/CellScheduledBy.js.map +1 -0
  227. package/Presentation/components/Cells/CellScheduledBy/index.d.ts +1 -0
  228. package/Presentation/components/Cells/CellScheduledBy/index.js +1 -0
  229. package/Presentation/components/Cells/CellScheduledOn/CellScheduledOn.d.ts +24 -0
  230. package/Presentation/components/Cells/CellScheduledOn/CellScheduledOn.js +17 -0
  231. package/Presentation/components/Cells/CellScheduledOn/CellScheduledOn.js.map +1 -0
  232. package/Presentation/components/Cells/CellScheduledOn/index.d.ts +1 -0
  233. package/Presentation/components/Cells/CellScheduledOn/index.js +1 -0
  234. package/Presentation/components/Cells/CellTitle/CellTitle.d.ts +2 -0
  235. package/Presentation/components/Cells/CellTitle/CellTitle.js +14 -0
  236. package/Presentation/components/Cells/CellTitle/CellTitle.js.map +1 -0
  237. package/Presentation/components/Cells/CellTitle/CellTitle.styled.d.ts +11 -0
  238. package/Presentation/components/Cells/CellTitle/CellTitle.styled.js +18 -0
  239. package/Presentation/components/Cells/CellTitle/CellTitle.styled.js.map +1 -0
  240. package/Presentation/components/Cells/CellTitle/index.d.ts +1 -0
  241. package/Presentation/components/Cells/CellTitle/index.js +1 -0
  242. package/Presentation/components/Cells/CellType/CellActionType.d.ts +2 -0
  243. package/Presentation/components/Cells/CellType/CellActionType.js +15 -0
  244. package/Presentation/components/Cells/CellType/CellActionType.js.map +1 -0
  245. package/Presentation/components/Cells/CellType/CellActionType.styled.d.ts +11 -0
  246. package/Presentation/components/Cells/CellType/CellActionType.styled.js +18 -0
  247. package/Presentation/components/Cells/CellType/CellActionType.styled.js.map +1 -0
  248. package/Presentation/components/Cells/CellType/index.d.ts +1 -0
  249. package/Presentation/components/Cells/CellType/index.js +1 -0
  250. package/Presentation/components/Cells/index.d.ts +6 -0
  251. package/Presentation/components/Cells/index.js +6 -0
  252. package/Presentation/components/Empty/Empty.d.ts +2 -0
  253. package/Presentation/components/Empty/Empty.js +21 -0
  254. package/Presentation/components/Empty/Empty.js.map +1 -0
  255. package/Presentation/components/Empty/Empty.styled.d.ts +8 -0
  256. package/Presentation/components/Empty/Empty.styled.js +16 -0
  257. package/Presentation/components/Empty/Empty.styled.js.map +1 -0
  258. package/Presentation/components/Empty/index.d.ts +1 -0
  259. package/Presentation/components/Empty/index.js +1 -0
  260. package/Presentation/components/ScheduleDialog/IScheduleDialogPresenter.d.ts +26 -0
  261. package/Presentation/components/ScheduleDialog/IScheduleDialogPresenter.js +0 -0
  262. package/Presentation/components/ScheduleDialog/ScheduleDialogPresenter.d.ts +22 -0
  263. package/Presentation/components/ScheduleDialog/ScheduleDialogPresenter.js +86 -0
  264. package/Presentation/components/ScheduleDialog/ScheduleDialogPresenter.js.map +1 -0
  265. package/Presentation/components/ScheduleDialog/index.d.ts +1 -0
  266. package/Presentation/components/ScheduleDialog/index.js +1 -0
  267. package/Presentation/components/ScheduleDialog/types.d.ts +15 -0
  268. package/Presentation/components/ScheduleDialog/types.js +0 -0
  269. package/Presentation/components/ScheduleDialog/useScheduleDialog.d.ts +41 -0
  270. package/Presentation/components/ScheduleDialog/useScheduleDialog.js +192 -0
  271. package/Presentation/components/ScheduleDialog/useScheduleDialog.js.map +1 -0
  272. package/Presentation/components/SchedulerOverlay/SchedulerOverlay.d.ts +7 -0
  273. package/Presentation/components/SchedulerOverlay/SchedulerOverlay.js +30 -0
  274. package/Presentation/components/SchedulerOverlay/SchedulerOverlay.js.map +1 -0
  275. package/Presentation/components/SchedulerOverlay/index.d.ts +1 -0
  276. package/Presentation/components/SchedulerOverlay/index.js +1 -0
  277. package/Presentation/components/SearchInput/SearchInput.d.ts +2 -0
  278. package/Presentation/components/SearchInput/SearchInput.js +30 -0
  279. package/Presentation/components/SearchInput/SearchInput.js.map +1 -0
  280. package/Presentation/components/SearchInput/index.d.ts +1 -0
  281. package/Presentation/components/SearchInput/index.js +1 -0
  282. package/Presentation/components/Table/Table.d.ts +2 -0
  283. package/Presentation/components/Table/Table.js +29 -0
  284. package/Presentation/components/Table/Table.js.map +1 -0
  285. package/Presentation/components/Table/index.d.ts +1 -0
  286. package/Presentation/components/Table/index.js +1 -0
  287. package/Presentation/components/Title/Title.d.ts +5 -0
  288. package/Presentation/components/Title/Title.js +10 -0
  289. package/Presentation/components/Title/Title.js.map +1 -0
  290. package/Presentation/components/Title/Title.styled.d.ts +3 -0
  291. package/Presentation/components/Title/Title.styled.js +13 -0
  292. package/Presentation/components/Title/Title.styled.js.map +1 -0
  293. package/Presentation/components/Title/index.d.ts +1 -0
  294. package/Presentation/components/Title/index.js +1 -0
  295. package/Presentation/configs/index.d.ts +1 -0
  296. package/Presentation/configs/index.js +1 -0
  297. package/Presentation/configs/list/Browser/EntryAction.d.ts +7 -0
  298. package/Presentation/configs/list/Browser/EntryAction.js +13 -0
  299. package/Presentation/configs/list/Browser/EntryAction.js.map +1 -0
  300. package/Presentation/configs/list/Browser/Table/Column.d.ts +14 -0
  301. package/Presentation/configs/list/Browser/Table/Column.js +11 -0
  302. package/Presentation/configs/list/Browser/Table/Column.js.map +1 -0
  303. package/Presentation/configs/list/Browser/Table/Sorting.d.ts +5 -0
  304. package/Presentation/configs/list/Browser/Table/Sorting.js +7 -0
  305. package/Presentation/configs/list/Browser/Table/Sorting.js.map +1 -0
  306. package/Presentation/configs/list/Browser/Table/index.d.ts +18 -0
  307. package/Presentation/configs/list/Browser/Table/index.js +9 -0
  308. package/Presentation/configs/list/Browser/Table/index.js.map +1 -0
  309. package/Presentation/configs/list/Browser/index.d.ts +23 -0
  310. package/Presentation/configs/list/Browser/index.js +9 -0
  311. package/Presentation/configs/list/Browser/index.js.map +1 -0
  312. package/Presentation/configs/list/SchedulerListConfig.d.ts +33 -0
  313. package/Presentation/configs/list/SchedulerListConfig.js +30 -0
  314. package/Presentation/configs/list/SchedulerListConfig.js.map +1 -0
  315. package/Presentation/configs/list/index.d.ts +1 -0
  316. package/Presentation/configs/list/index.js +1 -0
  317. package/Presentation/hooks/index.d.ts +3 -0
  318. package/Presentation/hooks/index.js +3 -0
  319. package/Presentation/hooks/useCancelSchedulerItem.d.ts +8 -0
  320. package/Presentation/hooks/useCancelSchedulerItem.js +27 -0
  321. package/Presentation/hooks/useCancelSchedulerItem.js.map +1 -0
  322. package/Presentation/hooks/useScheduler.d.ts +28 -0
  323. package/Presentation/hooks/useScheduler.js +68 -0
  324. package/Presentation/hooks/useScheduler.js.map +1 -0
  325. package/Presentation/hooks/useSchedulerItem.d.ts +11 -0
  326. package/Presentation/hooks/useSchedulerItem.js +7 -0
  327. package/Presentation/hooks/useSchedulerItem.js.map +1 -0
  328. package/Presentation/index.d.ts +25 -0
  329. package/Presentation/index.js +49 -0
  330. package/Presentation/index.js.map +1 -0
  331. package/README.md +11 -0
  332. package/UseCases/CancelItem/CancelItemUseCase.d.ts +7 -0
  333. package/UseCases/CancelItem/CancelItemUseCase.js +13 -0
  334. package/UseCases/CancelItem/CancelItemUseCase.js.map +1 -0
  335. package/UseCases/CancelItem/ICancelItemUseCase.d.ts +3 -0
  336. package/UseCases/CancelItem/ICancelItemUseCase.js +0 -0
  337. package/UseCases/CancelItem/index.d.ts +2 -0
  338. package/UseCases/CancelItem/index.js +1 -0
  339. package/UseCases/GetItem/GetItemUseCase.d.ts +8 -0
  340. package/UseCases/GetItem/GetItemUseCase.js +13 -0
  341. package/UseCases/GetItem/GetItemUseCase.js.map +1 -0
  342. package/UseCases/GetItem/IGetItemUseCase.d.ts +4 -0
  343. package/UseCases/GetItem/IGetItemUseCase.js +0 -0
  344. package/UseCases/GetItem/index.d.ts +2 -0
  345. package/UseCases/GetItem/index.js +1 -0
  346. package/UseCases/GetScheduledItem/GetScheduledItemUseCase.d.ts +7 -0
  347. package/UseCases/GetScheduledItem/GetScheduledItemUseCase.js +14 -0
  348. package/UseCases/GetScheduledItem/GetScheduledItemUseCase.js.map +1 -0
  349. package/UseCases/GetScheduledItem/IGetScheduledItemUseCase.d.ts +4 -0
  350. package/UseCases/GetScheduledItem/IGetScheduledItemUseCase.js +0 -0
  351. package/UseCases/GetScheduledItem/index.d.ts +2 -0
  352. package/UseCases/GetScheduledItem/index.js +1 -0
  353. package/UseCases/ListItems/IListItemsUseCase.d.ts +4 -0
  354. package/UseCases/ListItems/IListItemsUseCase.js +0 -0
  355. package/UseCases/ListItems/ListItemsUseCase.d.ts +8 -0
  356. package/UseCases/ListItems/ListItemsUseCase.js +13 -0
  357. package/UseCases/ListItems/ListItemsUseCase.js.map +1 -0
  358. package/UseCases/ListItems/ListItemsUseCaseWithSearch.d.ts +9 -0
  359. package/UseCases/ListItems/ListItemsUseCaseWithSearch.js +23 -0
  360. package/UseCases/ListItems/ListItemsUseCaseWithSearch.js.map +1 -0
  361. package/UseCases/ListItems/ListItemsUseCaseWithSorting.d.ts +9 -0
  362. package/UseCases/ListItems/ListItemsUseCaseWithSorting.js +21 -0
  363. package/UseCases/ListItems/ListItemsUseCaseWithSorting.js.map +1 -0
  364. package/UseCases/ListItems/index.d.ts +4 -0
  365. package/UseCases/ListItems/index.js +3 -0
  366. package/UseCases/ListMoreItems/IListMoreItemsUseCase.d.ts +3 -0
  367. package/UseCases/ListMoreItems/IListMoreItemsUseCase.js +0 -0
  368. package/UseCases/ListMoreItems/ListMoreItemsUseCase.d.ts +7 -0
  369. package/UseCases/ListMoreItems/ListMoreItemsUseCase.js +13 -0
  370. package/UseCases/ListMoreItems/ListMoreItemsUseCase.js.map +1 -0
  371. package/UseCases/ListMoreItems/index.d.ts +2 -0
  372. package/UseCases/ListMoreItems/index.js +1 -0
  373. package/UseCases/PublishItem/IPublishItemUseCase.d.ts +3 -0
  374. package/UseCases/PublishItem/IPublishItemUseCase.js +0 -0
  375. package/UseCases/PublishItem/PublishItemUseCase.d.ts +7 -0
  376. package/UseCases/PublishItem/PublishItemUseCase.js +13 -0
  377. package/UseCases/PublishItem/PublishItemUseCase.js.map +1 -0
  378. package/UseCases/PublishItem/index.d.ts +2 -0
  379. package/UseCases/PublishItem/index.js +1 -0
  380. package/UseCases/SearchItems/ISearchItemsUseCase.d.ts +3 -0
  381. package/UseCases/SearchItems/ISearchItemsUseCase.js +0 -0
  382. package/UseCases/SearchItems/SearchItemsUseCase.d.ts +7 -0
  383. package/UseCases/SearchItems/SearchItemsUseCase.js +13 -0
  384. package/UseCases/SearchItems/SearchItemsUseCase.js.map +1 -0
  385. package/UseCases/SearchItems/index.d.ts +2 -0
  386. package/UseCases/SearchItems/index.js +1 -0
  387. package/UseCases/SelectAllItems/ISelectAllItemsUseCase.d.ts +3 -0
  388. package/UseCases/SelectAllItems/ISelectAllItemsUseCase.js +0 -0
  389. package/UseCases/SelectAllItems/SelectAllItemsUseCase.d.ts +7 -0
  390. package/UseCases/SelectAllItems/SelectAllItemsUseCase.js +13 -0
  391. package/UseCases/SelectAllItems/SelectAllItemsUseCase.js.map +1 -0
  392. package/UseCases/SelectAllItems/index.d.ts +2 -0
  393. package/UseCases/SelectAllItems/index.js +1 -0
  394. package/UseCases/SelectItems/ISelectItemsUseCase.d.ts +4 -0
  395. package/UseCases/SelectItems/ISelectItemsUseCase.js +0 -0
  396. package/UseCases/SelectItems/SelectItemsUseCase.d.ts +7 -0
  397. package/UseCases/SelectItems/SelectItemsUseCase.js +13 -0
  398. package/UseCases/SelectItems/SelectItemsUseCase.js.map +1 -0
  399. package/UseCases/SelectItems/index.d.ts +2 -0
  400. package/UseCases/SelectItems/index.js +1 -0
  401. package/UseCases/SortItems/ISortItemsUseCase.d.ts +4 -0
  402. package/UseCases/SortItems/ISortItemsUseCase.js +0 -0
  403. package/UseCases/SortItems/SortItemsUseCase.d.ts +7 -0
  404. package/UseCases/SortItems/SortItemsUseCase.js +13 -0
  405. package/UseCases/SortItems/SortItemsUseCase.js.map +1 -0
  406. package/UseCases/SortItems/index.d.ts +2 -0
  407. package/UseCases/SortItems/index.js +1 -0
  408. package/UseCases/UnSelectAllItems/IUnselectAllItemsUseCase.d.ts +3 -0
  409. package/UseCases/UnSelectAllItems/IUnselectAllItemsUseCase.js +0 -0
  410. package/UseCases/UnSelectAllItems/UnselectAllItemsUseCase.d.ts +7 -0
  411. package/UseCases/UnSelectAllItems/UnselectAllItemsUseCase.js +13 -0
  412. package/UseCases/UnSelectAllItems/UnselectAllItemsUseCase.js.map +1 -0
  413. package/UseCases/UnSelectAllItems/index.d.ts +2 -0
  414. package/UseCases/UnSelectAllItems/index.js +1 -0
  415. package/UseCases/UnpublishItem/IUnpublishItemUseCase.d.ts +3 -0
  416. package/UseCases/UnpublishItem/IUnpublishItemUseCase.js +0 -0
  417. package/UseCases/UnpublishItem/UnpublishItemUseCase.d.ts +7 -0
  418. package/UseCases/UnpublishItem/UnpublishItemUseCase.js +13 -0
  419. package/UseCases/UnpublishItem/UnpublishItemUseCase.js.map +1 -0
  420. package/UseCases/UnpublishItem/index.d.ts +2 -0
  421. package/UseCases/UnpublishItem/index.js +1 -0
  422. package/UseCases/index.d.ts +11 -0
  423. package/UseCases/index.js +11 -0
  424. package/index.d.ts +1 -0
  425. package/index.js +1 -0
  426. package/package.json +57 -0
  427. package/types.d.ts +37 -0
  428. package/types.js +16 -0
  429. package/types.js.map +1 -0
@@ -0,0 +1,12 @@
1
+ import react from "react";
2
+ import { Loader } from "@webiny/admin-ui";
3
+ import { CircularProgressHolder, StatusWrapper, UploadingLabel } from "./BottomInfoBar.styled.js";
4
+ const ListStatus = ({ loading })=>{
5
+ if (!loading) return null;
6
+ return /*#__PURE__*/ react.createElement(StatusWrapper, null, /*#__PURE__*/ react.createElement(UploadingLabel, null, "Loading more items..."), /*#__PURE__*/ react.createElement(CircularProgressHolder, null, /*#__PURE__*/ react.createElement(Loader, {
7
+ size: "xs"
8
+ })));
9
+ };
10
+ export { ListStatus };
11
+
12
+ //# sourceMappingURL=ListStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Presentation/components/BottomInfoBar/ListStatus.js","sources":["../../../../src/Presentation/components/BottomInfoBar/ListStatus.tsx"],"sourcesContent":["import React from \"react\";\nimport { Loader } from \"@webiny/admin-ui\";\nimport { CircularProgressHolder, StatusWrapper, UploadingLabel } from \"./BottomInfoBar.styled.js\";\n\nexport interface ListStatusProps {\n loading: boolean;\n}\n\nexport const ListStatus = ({ loading }: ListStatusProps) => {\n if (!loading) {\n return null;\n }\n\n return (\n <StatusWrapper>\n <UploadingLabel>{\"Loading more items...\"}</UploadingLabel>\n <CircularProgressHolder>\n <Loader size={\"xs\"} />\n </CircularProgressHolder>\n </StatusWrapper>\n );\n};\n"],"names":["ListStatus","loading","StatusWrapper","UploadingLabel","CircularProgressHolder","Loader"],"mappings":";;;AAQO,MAAMA,aAAa,CAAC,EAAEC,OAAO,EAAmB;IACnD,IAAI,CAACA,SACD,OAAO;IAGX,OAAO,WAAP,GACI,oBAACC,eAAaA,MAAAA,WAAAA,GACV,oBAACC,gBAAcA,MAAE,wCACjB,oBAACC,wBAAsBA,MAAAA,WAAAA,GACnB,oBAACC,QAAMA;QAAC,MAAM;;AAI9B"}
@@ -0,0 +1 @@
1
+ export * from "./BottomInfoBar.js";
@@ -0,0 +1 @@
1
+ export * from "./BottomInfoBar.js";
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const CellActions: () => React.JSX.Element;
@@ -0,0 +1,18 @@
1
+ import react from "react";
2
+ import { OptionsMenu } from "@webiny/app-admin";
3
+ import { SchedulerListConfig, useSchedulerListConfig } from "../../../configs/index.js";
4
+ import { SchedulerItemProvider } from "../../../hooks/index.js";
5
+ const CellActions = ()=>{
6
+ const { useTableRow } = SchedulerListConfig.Browser.Table.Column;
7
+ const { row } = useTableRow();
8
+ const { browser } = useSchedulerListConfig();
9
+ return /*#__PURE__*/ react.createElement(SchedulerItemProvider, {
10
+ item: row.data
11
+ }, /*#__PURE__*/ react.createElement(OptionsMenu, {
12
+ actions: browser.entryActions,
13
+ "data-testid": "table.row.scheduler.entry.menu-action"
14
+ }));
15
+ };
16
+ export { CellActions };
17
+
18
+ //# sourceMappingURL=CellActions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Presentation/components/Cells/CellActions/CellActions.js","sources":["../../../../../src/Presentation/components/Cells/CellActions/CellActions.tsx"],"sourcesContent":["import React from \"react\";\nimport { OptionsMenu } from \"@webiny/app-admin\";\nimport { SchedulerListConfig, useSchedulerListConfig } from \"~/Presentation/configs/index.js\";\nimport { SchedulerItemProvider } from \"~/Presentation/hooks/index.js\";\n\nexport const CellActions = () => {\n const { useTableRow } = SchedulerListConfig.Browser.Table.Column;\n const { row } = useTableRow();\n const { browser } = useSchedulerListConfig();\n\n return (\n <SchedulerItemProvider item={row.data}>\n <OptionsMenu\n actions={browser.entryActions}\n data-testid={\"table.row.scheduler.entry.menu-action\"}\n />\n </SchedulerItemProvider>\n );\n};\n"],"names":["CellActions","useTableRow","SchedulerListConfig","row","browser","useSchedulerListConfig","SchedulerItemProvider","OptionsMenu"],"mappings":";;;;AAKO,MAAMA,cAAc;IACvB,MAAM,EAAEC,WAAW,EAAE,GAAGC,oBAAoB,OAAO,CAAC,KAAK,CAAC,MAAM;IAChE,MAAM,EAAEC,GAAG,EAAE,GAAGF;IAChB,MAAM,EAAEG,OAAO,EAAE,GAAGC;IAEpB,OAAO,WAAP,GACI,oBAACC,uBAAqBA;QAAC,MAAMH,IAAI,IAAI;qBACjC,oBAACI,aAAWA;QACR,SAASH,QAAQ,YAAY;QAC7B,eAAa;;AAI7B"}
@@ -0,0 +1 @@
1
+ export * from "./CellActions.js";
@@ -0,0 +1 @@
1
+ export * from "./CellActions.js";
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const CellRevision: () => React.JSX.Element;
@@ -0,0 +1,15 @@
1
+ import react from "react";
2
+ import { RowText, RowTitle } from "./CellRevision.styled.js";
3
+ import { SchedulerListConfig } from "../../../configs/index.js";
4
+ import { parseIdentifier } from "@webiny/utils/parseIdentifier.js";
5
+ const CellRevision = ()=>{
6
+ const { useTableRow } = SchedulerListConfig.Browser.Table.Column;
7
+ const { row } = useTableRow();
8
+ const { version } = parseIdentifier(row.data.targetId);
9
+ return /*#__PURE__*/ react.createElement(RowTitle, null, /*#__PURE__*/ react.createElement(RowText, {
10
+ size: "sm"
11
+ }, version));
12
+ };
13
+ export { CellRevision };
14
+
15
+ //# sourceMappingURL=CellRevision.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Presentation/components/Cells/CellRevision/CellRevision.js","sources":["../../../../../src/Presentation/components/Cells/CellRevision/CellRevision.tsx"],"sourcesContent":["import React from \"react\";\nimport { RowText, RowTitle } from \"./CellRevision.styled.js\";\nimport { SchedulerListConfig } from \"~/Presentation/configs/index.js\";\nimport { parseIdentifier } from \"@webiny/utils/parseIdentifier.js\";\n\nexport const CellRevision = () => {\n const { useTableRow } = SchedulerListConfig.Browser.Table.Column;\n const { row } = useTableRow();\n\n const { version } = parseIdentifier(row.data.targetId);\n return (\n <RowTitle>\n <RowText size={\"sm\"}>{version}</RowText>\n </RowTitle>\n );\n};\n"],"names":["CellRevision","useTableRow","SchedulerListConfig","row","version","parseIdentifier","RowTitle","RowText"],"mappings":";;;;AAKO,MAAMA,eAAe;IACxB,MAAM,EAAEC,WAAW,EAAE,GAAGC,oBAAoB,OAAO,CAAC,KAAK,CAAC,MAAM;IAChE,MAAM,EAAEC,GAAG,EAAE,GAAGF;IAEhB,MAAM,EAAEG,OAAO,EAAE,GAAGC,gBAAgBF,IAAI,IAAI,CAAC,QAAQ;IACrD,OAAO,WAAP,GACI,oBAACG,UAAQA,MAAAA,WAAAA,GACL,oBAACC,SAAOA;QAAC,MAAM;OAAOH;AAGlC"}
@@ -0,0 +1,11 @@
1
+ export declare const RowTitle: import("@emotion/styled").StyledComponent<{
2
+ theme?: import("@emotion/react").Theme;
3
+ as?: React.ElementType;
4
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
5
+ export declare const RowIcon: import("@emotion/styled").StyledComponent<{
6
+ theme?: import("@emotion/react").Theme;
7
+ as?: React.ElementType;
8
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
9
+ export declare const RowText: import("@emotion/styled").StyledComponent<import("@webiny/admin-ui").TextProps & {
10
+ theme?: import("@emotion/react").Theme;
11
+ }, {}, {}>;
@@ -0,0 +1,18 @@
1
+ import styled from "@emotion/styled";
2
+ import { Text } from "@webiny/admin-ui";
3
+ const RowTitle = styled("div")`
4
+ display: flex;
5
+ align-items: center;
6
+ `;
7
+ const RowIcon = styled("div")`
8
+ margin-right: 8px;
9
+ height: 24px;
10
+ `;
11
+ const RowText = styled(Text)`
12
+ white-space: nowrap;
13
+ overflow: hidden;
14
+ text-overflow: ellipsis;
15
+ `;
16
+ export { RowIcon, RowText, RowTitle };
17
+
18
+ //# sourceMappingURL=CellRevision.styled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Presentation/components/Cells/CellRevision/CellRevision.styled.js","sources":["../../../../../src/Presentation/components/Cells/CellRevision/CellRevision.styled.tsx"],"sourcesContent":["import styled from \"@emotion/styled\";\nimport { Text } from \"@webiny/admin-ui\";\n\nexport const RowTitle = styled(\"div\")`\n display: flex;\n align-items: center;\n`;\n\nexport const RowIcon = styled(\"div\")`\n margin-right: 8px;\n height: 24px;\n`;\n\nexport const RowText = styled(Text)`\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n`;\n"],"names":["RowTitle","styled","RowIcon","RowText","Text"],"mappings":";;AAGO,MAAMA,WAAWC,OAAO,MAAM,CAAC;;;AAGtC,CAAC;AAEM,MAAMC,UAAUD,OAAO,MAAM,CAAC;;;AAGrC,CAAC;AAEM,MAAME,UAAUF,OAAOG,KAAK,CAAC;;;;AAIpC,CAAC"}
@@ -0,0 +1 @@
1
+ export * from "./CellRevision.js";
@@ -0,0 +1 @@
1
+ export * from "./CellRevision.js";
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const CellScheduledBy: () => React.JSX.Element;
@@ -0,0 +1,10 @@
1
+ import react from "react";
2
+ import { SchedulerListConfig } from "../../../configs/index.js";
3
+ const CellScheduledBy = ()=>{
4
+ const { useTableRow } = SchedulerListConfig.Browser.Table.Column;
5
+ const { row } = useTableRow();
6
+ return /*#__PURE__*/ react.createElement(react.Fragment, null, row.data.scheduledBy?.displayName || "unknown");
7
+ };
8
+ export { CellScheduledBy };
9
+
10
+ //# sourceMappingURL=CellScheduledBy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Presentation/components/Cells/CellScheduledBy/CellScheduledBy.js","sources":["../../../../../src/Presentation/components/Cells/CellScheduledBy/CellScheduledBy.tsx"],"sourcesContent":["import React from \"react\";\nimport { SchedulerListConfig } from \"~/Presentation/configs/index.js\";\n\nexport const CellScheduledBy = () => {\n const { useTableRow } = SchedulerListConfig.Browser.Table.Column;\n const { row } = useTableRow();\n\n return <>{row.data.scheduledBy?.displayName || \"unknown\"}</>;\n};\n"],"names":["CellScheduledBy","useTableRow","SchedulerListConfig","row"],"mappings":";;AAGO,MAAMA,kBAAkB;IAC3B,MAAM,EAAEC,WAAW,EAAE,GAAGC,oBAAoB,OAAO,CAAC,KAAK,CAAC,MAAM;IAChE,MAAM,EAAEC,GAAG,EAAE,GAAGF;IAEhB,OAAO,WAAP,GAAO,0CAAGE,IAAI,IAAI,CAAC,WAAW,EAAE,eAAe;AACnD"}
@@ -0,0 +1 @@
1
+ export * from "./CellScheduledBy.js";
@@ -0,0 +1 @@
1
+ export * from "./CellScheduledBy.js";
@@ -0,0 +1,24 @@
1
+ import React from "react";
2
+ export interface ICellScheduledOnLabelProps {
3
+ dateTime: Date | undefined;
4
+ }
5
+ export declare const CellScheduledOnLabel: (({ dateTime }: ICellScheduledOnLabelProps) => React.JSX.Element) & {
6
+ original: ({ dateTime }: ICellScheduledOnLabelProps) => React.JSX.Element;
7
+ originalName: string;
8
+ displayName: string;
9
+ } & {
10
+ original: (({ dateTime }: ICellScheduledOnLabelProps) => React.JSX.Element) & {
11
+ original: ({ dateTime }: ICellScheduledOnLabelProps) => React.JSX.Element;
12
+ originalName: string;
13
+ displayName: string;
14
+ };
15
+ originalName: string;
16
+ displayName: string;
17
+ } & {
18
+ createDecorator: (decorator: import("@webiny/react-composition").ComponentDecorator<(({ dateTime }: ICellScheduledOnLabelProps) => React.JSX.Element) & {
19
+ original: ({ dateTime }: ICellScheduledOnLabelProps) => React.JSX.Element;
20
+ originalName: string;
21
+ displayName: string;
22
+ }>) => (props: unknown) => React.JSX.Element;
23
+ };
24
+ export declare const CellScheduledOn: () => React.JSX.Element;
@@ -0,0 +1,17 @@
1
+ import react from "react";
2
+ import { SchedulerListConfig } from "../../../configs/index.js";
3
+ import { makeDecoratable } from "@webiny/react-composition";
4
+ const CellScheduledOnLabel = makeDecoratable("Scheduler.CellScheduledOnLabel", ({ dateTime })=>{
5
+ if (!dateTime) return /*#__PURE__*/ react.createElement(react.Fragment, null, "Missing publish or unpublish date.");
6
+ return /*#__PURE__*/ react.createElement(react.Fragment, null, dateTime.toLocaleString());
7
+ });
8
+ const CellScheduledOn = ()=>{
9
+ const { useTableRow } = SchedulerListConfig.Browser.Table.Column;
10
+ const { row } = useTableRow();
11
+ return /*#__PURE__*/ react.createElement(CellScheduledOnLabel, {
12
+ dateTime: row.data.publishOn || row.data.unpublishOn
13
+ });
14
+ };
15
+ export { CellScheduledOn, CellScheduledOnLabel };
16
+
17
+ //# sourceMappingURL=CellScheduledOn.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Presentation/components/Cells/CellScheduledOn/CellScheduledOn.js","sources":["../../../../../src/Presentation/components/Cells/CellScheduledOn/CellScheduledOn.tsx"],"sourcesContent":["import React from \"react\";\nimport { SchedulerListConfig } from \"~/Presentation/configs/index.js\";\nimport { makeDecoratable } from \"@webiny/react-composition\";\n\nexport interface ICellScheduledOnLabelProps {\n dateTime: Date | undefined;\n}\n\nexport const CellScheduledOnLabel = makeDecoratable(\n \"Scheduler.CellScheduledOnLabel\",\n ({ dateTime }: ICellScheduledOnLabelProps) => {\n if (!dateTime) {\n return <>Missing publish or unpublish date.</>;\n }\n\n return <>{dateTime.toLocaleString()}</>;\n }\n);\n\nexport const CellScheduledOn = () => {\n const { useTableRow } = SchedulerListConfig.Browser.Table.Column;\n const { row } = useTableRow();\n\n return <CellScheduledOnLabel dateTime={row.data.publishOn || row.data.unpublishOn} />;\n};\n"],"names":["CellScheduledOnLabel","makeDecoratable","dateTime","CellScheduledOn","useTableRow","SchedulerListConfig","row"],"mappings":";;;AAQO,MAAMA,uBAAuBC,gBAChC,kCACA,CAAC,EAAEC,QAAQ,EAA8B;IACrC,IAAI,CAACA,UACD,OAAO,WAAP,GAAO,0CAAE;IAGb,OAAO,WAAP,GAAO,0CAAGA,SAAS,cAAc;AACrC;AAGG,MAAMC,kBAAkB;IAC3B,MAAM,EAAEC,WAAW,EAAE,GAAGC,oBAAoB,OAAO,CAAC,KAAK,CAAC,MAAM;IAChE,MAAM,EAAEC,GAAG,EAAE,GAAGF;IAEhB,OAAO,WAAP,GAAO,oBAACJ,sBAAoBA;QAAC,UAAUM,IAAI,IAAI,CAAC,SAAS,IAAIA,IAAI,IAAI,CAAC,WAAW;;AACrF"}
@@ -0,0 +1 @@
1
+ export * from "./CellScheduledOn.js";
@@ -0,0 +1 @@
1
+ export * from "./CellScheduledOn.js";
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const CellTitle: () => React.JSX.Element;
@@ -0,0 +1,14 @@
1
+ import react from "react";
2
+ import { ReactComponent } from "@material-design-icons/svg/outlined/description.svg";
3
+ import { RowIcon, RowText, RowTitle } from "./CellTitle.styled.js";
4
+ import { SchedulerListConfig } from "../../../configs/index.js";
5
+ const CellTitle = ()=>{
6
+ const { useTableRow } = SchedulerListConfig.Browser.Table.Column;
7
+ const { row } = useTableRow();
8
+ return /*#__PURE__*/ react.createElement(RowTitle, null, /*#__PURE__*/ react.createElement(RowIcon, null, /*#__PURE__*/ react.createElement(ReactComponent, null)), /*#__PURE__*/ react.createElement(RowText, {
9
+ size: "sm"
10
+ }, row.data.title));
11
+ };
12
+ export { CellTitle };
13
+
14
+ //# sourceMappingURL=CellTitle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Presentation/components/Cells/CellTitle/CellTitle.js","sources":["../../../../../src/Presentation/components/Cells/CellTitle/CellTitle.tsx"],"sourcesContent":["import React from \"react\";\nimport { ReactComponent as File } from \"@material-design-icons/svg/outlined/description.svg\";\nimport { RowIcon, RowText, RowTitle } from \"./CellTitle.styled.js\";\nimport { SchedulerListConfig } from \"~/Presentation/configs/index.js\";\n\nexport const CellTitle = () => {\n const { useTableRow } = SchedulerListConfig.Browser.Table.Column;\n const { row } = useTableRow();\n\n return (\n <RowTitle>\n <RowIcon>\n <File />\n </RowIcon>\n <RowText size={\"sm\"}>{row.data.title}</RowText>\n </RowTitle>\n );\n};\n"],"names":["CellTitle","useTableRow","SchedulerListConfig","row","RowTitle","RowIcon","File","RowText"],"mappings":";;;;AAKO,MAAMA,YAAY;IACrB,MAAM,EAAEC,WAAW,EAAE,GAAGC,oBAAoB,OAAO,CAAC,KAAK,CAAC,MAAM;IAChE,MAAM,EAAEC,GAAG,EAAE,GAAGF;IAEhB,OAAO,WAAP,GACI,oBAACG,UAAQA,MAAAA,WAAAA,GACL,oBAACC,SAAOA,MAAAA,WAAAA,GACJ,oBAACC,gBAAIA,QAAAA,WAAAA,GAET,oBAACC,SAAOA;QAAC,MAAM;OAAOJ,IAAI,IAAI,CAAC,KAAK;AAGhD"}
@@ -0,0 +1,11 @@
1
+ export declare const RowTitle: import("@emotion/styled").StyledComponent<{
2
+ theme?: import("@emotion/react").Theme;
3
+ as?: React.ElementType;
4
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
5
+ export declare const RowIcon: import("@emotion/styled").StyledComponent<{
6
+ theme?: import("@emotion/react").Theme;
7
+ as?: React.ElementType;
8
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
9
+ export declare const RowText: import("@emotion/styled").StyledComponent<import("@webiny/admin-ui").TextProps & {
10
+ theme?: import("@emotion/react").Theme;
11
+ }, {}, {}>;
@@ -0,0 +1,18 @@
1
+ import styled from "@emotion/styled";
2
+ import { Text } from "@webiny/admin-ui";
3
+ const RowTitle = styled("div")`
4
+ display: flex;
5
+ align-items: center;
6
+ `;
7
+ const RowIcon = styled("div")`
8
+ margin-right: 8px;
9
+ height: 24px;
10
+ `;
11
+ const RowText = styled(Text)`
12
+ white-space: nowrap;
13
+ overflow: hidden;
14
+ text-overflow: ellipsis;
15
+ `;
16
+ export { RowIcon, RowText, RowTitle };
17
+
18
+ //# sourceMappingURL=CellTitle.styled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Presentation/components/Cells/CellTitle/CellTitle.styled.js","sources":["../../../../../src/Presentation/components/Cells/CellTitle/CellTitle.styled.tsx"],"sourcesContent":["import styled from \"@emotion/styled\";\nimport { Text } from \"@webiny/admin-ui\";\n\nexport const RowTitle = styled(\"div\")`\n display: flex;\n align-items: center;\n`;\n\nexport const RowIcon = styled(\"div\")`\n margin-right: 8px;\n height: 24px;\n`;\n\nexport const RowText = styled(Text)`\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n`;\n"],"names":["RowTitle","styled","RowIcon","RowText","Text"],"mappings":";;AAGO,MAAMA,WAAWC,OAAO,MAAM,CAAC;;;AAGtC,CAAC;AAEM,MAAMC,UAAUD,OAAO,MAAM,CAAC;;;AAGrC,CAAC;AAEM,MAAME,UAAUF,OAAOG,KAAK,CAAC;;;;AAIpC,CAAC"}
@@ -0,0 +1 @@
1
+ export * from "./CellTitle.js";
@@ -0,0 +1 @@
1
+ export * from "./CellTitle.js";
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const CellActionType: () => React.JSX.Element;
@@ -0,0 +1,15 @@
1
+ import react from "react";
2
+ import { ReactComponent } from "@webiny/icons/publish.svg";
3
+ import { ReactComponent as unpublished_svg_ReactComponent } from "@webiny/icons/unpublished.svg";
4
+ import { RowIcon, RowText, RowType } from "./CellActionType.styled.js";
5
+ import { SchedulerListConfig } from "../../../configs/index.js";
6
+ const CellActionType = ()=>{
7
+ const { useTableRow } = SchedulerListConfig.Browser.Table.Column;
8
+ const { row } = useTableRow();
9
+ return /*#__PURE__*/ react.createElement(RowType, null, /*#__PURE__*/ react.createElement(RowIcon, null, "publish" === row.data.actionType ? /*#__PURE__*/ react.createElement(ReactComponent, null) : /*#__PURE__*/ react.createElement(unpublished_svg_ReactComponent, null)), /*#__PURE__*/ react.createElement(RowText, {
10
+ size: "sm"
11
+ }, row.data.actionType));
12
+ };
13
+ export { CellActionType };
14
+
15
+ //# sourceMappingURL=CellActionType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Presentation/components/Cells/CellType/CellActionType.js","sources":["../../../../../src/Presentation/components/Cells/CellType/CellActionType.tsx"],"sourcesContent":["import React from \"react\";\nimport { ReactComponent as Publish } from \"@webiny/icons/publish.svg\";\nimport { ReactComponent as Unpublish } from \"@webiny/icons/unpublished.svg\";\nimport { RowIcon, RowText, RowType } from \"./CellActionType.styled.js\";\nimport { SchedulerListConfig } from \"~/Presentation/configs/index.js\";\n\nexport const CellActionType = () => {\n const { useTableRow } = SchedulerListConfig.Browser.Table.Column;\n const { row } = useTableRow();\n\n return (\n <RowType>\n <RowIcon>{row.data.actionType === \"publish\" ? <Publish /> : <Unpublish />}</RowIcon>\n <RowText size={\"sm\"}>{row.data.actionType}</RowText>\n </RowType>\n );\n};\n"],"names":["CellActionType","useTableRow","SchedulerListConfig","row","RowType","RowIcon","Publish","Unpublish","RowText"],"mappings":";;;;;AAMO,MAAMA,iBAAiB;IAC1B,MAAM,EAAEC,WAAW,EAAE,GAAGC,oBAAoB,OAAO,CAAC,KAAK,CAAC,MAAM;IAChE,MAAM,EAAEC,GAAG,EAAE,GAAGF;IAEhB,OAAO,WAAP,GACI,oBAACG,SAAOA,MAAAA,WAAAA,GACJ,oBAACC,SAAOA,MAAEF,AAAwB,cAAxBA,IAAI,IAAI,CAAC,UAAU,GAAiB,WAAZ,GAAY,oBAACG,gBAAOA,QAAAA,WAAAA,GAAM,oBAACC,gCAASA,QAAAA,WAAAA,GACtE,oBAACC,SAAOA;QAAC,MAAM;OAAOL,IAAI,IAAI,CAAC,UAAU;AAGrD"}
@@ -0,0 +1,11 @@
1
+ export declare const RowType: import("@emotion/styled").StyledComponent<{
2
+ theme?: import("@emotion/react").Theme;
3
+ as?: React.ElementType;
4
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
5
+ export declare const RowIcon: import("@emotion/styled").StyledComponent<{
6
+ theme?: import("@emotion/react").Theme;
7
+ as?: React.ElementType;
8
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
9
+ export declare const RowText: import("@emotion/styled").StyledComponent<import("@webiny/admin-ui").TextProps & {
10
+ theme?: import("@emotion/react").Theme;
11
+ }, {}, {}>;
@@ -0,0 +1,18 @@
1
+ import styled from "@emotion/styled";
2
+ import { Text } from "@webiny/admin-ui";
3
+ const RowType = styled("div")`
4
+ display: flex;
5
+ align-items: center;
6
+ `;
7
+ const RowIcon = styled("div")`
8
+ margin-right: 8px;
9
+ height: 24px;
10
+ `;
11
+ const RowText = styled(Text)`
12
+ white-space: nowrap;
13
+ overflow: hidden;
14
+ text-overflow: ellipsis;
15
+ `;
16
+ export { RowIcon, RowText, RowType };
17
+
18
+ //# sourceMappingURL=CellActionType.styled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Presentation/components/Cells/CellType/CellActionType.styled.js","sources":["../../../../../src/Presentation/components/Cells/CellType/CellActionType.styled.tsx"],"sourcesContent":["import styled from \"@emotion/styled\";\nimport { Text } from \"@webiny/admin-ui\";\n\nexport const RowType = styled(\"div\")`\n display: flex;\n align-items: center;\n`;\n\nexport const RowIcon = styled(\"div\")`\n margin-right: 8px;\n height: 24px;\n`;\n\nexport const RowText = styled(Text)`\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n`;\n"],"names":["RowType","styled","RowIcon","RowText","Text"],"mappings":";;AAGO,MAAMA,UAAUC,OAAO,MAAM,CAAC;;;AAGrC,CAAC;AAEM,MAAMC,UAAUD,OAAO,MAAM,CAAC;;;AAGrC,CAAC;AAEM,MAAME,UAAUF,OAAOG,KAAK,CAAC;;;;AAIpC,CAAC"}
@@ -0,0 +1 @@
1
+ export * from "./CellActionType.js";
@@ -0,0 +1 @@
1
+ export * from "./CellActionType.js";
@@ -0,0 +1,6 @@
1
+ export * from "./CellActions/index.js";
2
+ export * from "./CellScheduledBy/index.js";
3
+ export * from "./CellScheduledOn/index.js";
4
+ export * from "./CellType/index.js";
5
+ export * from "./CellTitle/index.js";
6
+ export * from "./CellRevision/index.js";
@@ -0,0 +1,6 @@
1
+ export * from "./CellActions/index.js";
2
+ export * from "./CellScheduledBy/index.js";
3
+ export * from "./CellScheduledOn/index.js";
4
+ export * from "./CellType/index.js";
5
+ export * from "./CellTitle/index.js";
6
+ export * from "./CellRevision/index.js";
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const Empty: () => React.JSX.Element;
@@ -0,0 +1,21 @@
1
+ import react from "react";
2
+ import { ReactComponent } from "@material-design-icons/svg/outlined/search.svg";
3
+ import { ReactComponent as view_list_svg_ReactComponent } from "@material-design-icons/svg/outlined/view_list.svg";
4
+ import { EmptyView } from "@webiny/app-admin";
5
+ import { EmptyOuter, EmptyWrapper } from "./Empty.styled.js";
6
+ import { useScheduler } from "../../hooks/index.js";
7
+ const Empty = ()=>{
8
+ const { vm } = useScheduler();
9
+ return /*#__PURE__*/ react.createElement(EmptyWrapper, null, /*#__PURE__*/ react.createElement(EmptyOuter, null, vm.isSearchView ? /*#__PURE__*/ react.createElement(EmptyView, {
10
+ icon: /*#__PURE__*/ react.createElement(ReactComponent, null),
11
+ title: "No items found.",
12
+ action: null
13
+ }) : /*#__PURE__*/ react.createElement(EmptyView, {
14
+ icon: /*#__PURE__*/ react.createElement(view_list_svg_ReactComponent, null),
15
+ title: "No scheduled items.",
16
+ action: null
17
+ })));
18
+ };
19
+ export { Empty };
20
+
21
+ //# sourceMappingURL=Empty.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Presentation/components/Empty/Empty.js","sources":["../../../../src/Presentation/components/Empty/Empty.tsx"],"sourcesContent":["import React from \"react\";\nimport { ReactComponent as SearchIcon } from \"@material-design-icons/svg/outlined/search.svg\";\nimport { ReactComponent as ListIcon } from \"@material-design-icons/svg/outlined/view_list.svg\";\nimport { EmptyView } from \"@webiny/app-admin\";\nimport { EmptyOuter, EmptyWrapper } from \"./Empty.styled.js\";\nimport { useScheduler } from \"~/Presentation/hooks/index.js\";\n\nexport const Empty = () => {\n const { vm } = useScheduler();\n\n return (\n <EmptyWrapper>\n <EmptyOuter>\n {vm.isSearchView ? (\n <EmptyView icon={<SearchIcon />} title={\"No items found.\"} action={null} />\n ) : (\n <EmptyView icon={<ListIcon />} title={`No scheduled items.`} action={null} />\n )}\n </EmptyOuter>\n </EmptyWrapper>\n );\n};\n"],"names":["Empty","vm","useScheduler","EmptyWrapper","EmptyOuter","EmptyView","SearchIcon","ListIcon"],"mappings":";;;;;;AAOO,MAAMA,QAAQ;IACjB,MAAM,EAAEC,EAAE,EAAE,GAAGC;IAEf,OAAO,WAAP,GACI,oBAACC,cAAYA,MAAAA,WAAAA,GACT,oBAACC,YAAUA,MACNH,GAAG,YAAY,GAAG,WAAH,GACZ,oBAACI,WAASA;QAAC,oBAAM,oBAACC,gBAAUA;QAAK,OAAO;QAAmB,QAAQ;uBAEnE,oBAACD,WAASA;QAAC,oBAAM,oBAACE,8BAAQA;QAAK,OAAO;QAAuB,QAAQ;;AAKzF"}
@@ -0,0 +1,8 @@
1
+ export declare const EmptyWrapper: import("@emotion/styled").StyledComponent<{
2
+ theme?: import("@emotion/react").Theme;
3
+ as?: React.ElementType;
4
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
5
+ export declare const EmptyOuter: import("@emotion/styled").StyledComponent<{
6
+ theme?: import("@emotion/react").Theme;
7
+ as?: React.ElementType;
8
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,16 @@
1
+ import styled from "@emotion/styled";
2
+ const EmptyWrapper = styled("div")`
3
+ width: 100%;
4
+ height: calc(100% - 95px);
5
+ display: flex;
6
+ justify-content: center;
7
+ align-items: center;
8
+ `;
9
+ const EmptyOuter = styled("div")`
10
+ display: flex;
11
+ flex-direction: column;
12
+ align-items: center;
13
+ `;
14
+ export { EmptyOuter, EmptyWrapper };
15
+
16
+ //# sourceMappingURL=Empty.styled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Presentation/components/Empty/Empty.styled.js","sources":["../../../../src/Presentation/components/Empty/Empty.styled.tsx"],"sourcesContent":["import styled from \"@emotion/styled\";\n\nexport const EmptyWrapper = styled(\"div\")`\n width: 100%;\n height: calc(100% - 95px);\n display: flex;\n justify-content: center;\n align-items: center;\n`;\n\nexport const EmptyOuter = styled(\"div\")`\n display: flex;\n flex-direction: column;\n align-items: center;\n`;\n"],"names":["EmptyWrapper","styled","EmptyOuter"],"mappings":";AAEO,MAAMA,eAAeC,OAAO,MAAM,CAAC;;;;;;AAM1C,CAAC;AAEM,MAAMC,aAAaD,OAAO,MAAM,CAAC;;;;AAIxC,CAAC"}
@@ -0,0 +1 @@
1
+ export * from "./Empty.js";
@@ -0,0 +1 @@
1
+ export * from "./Empty.js";
@@ -0,0 +1,26 @@
1
+ import type { ScheduleActionType, SchedulerEntry } from "../../../types.js";
2
+ export interface IScheduleDialogPresenterViewModel {
3
+ loading: boolean;
4
+ entry: SchedulerEntry | null;
5
+ }
6
+ export interface IScheduleDialogPresenterLoadParams {
7
+ namespace: string;
8
+ id: string;
9
+ }
10
+ export interface IScheduleDialogPresenterScheduleParams {
11
+ targetId: string;
12
+ namespace: string;
13
+ scheduleOn: Date;
14
+ actionType: ScheduleActionType;
15
+ }
16
+ export interface IScheduleDialogPresenterCancelParams {
17
+ id: string;
18
+ namespace: string;
19
+ }
20
+ export interface IScheduleDialogPresenter {
21
+ get vm(): IScheduleDialogPresenterViewModel;
22
+ load(params: IScheduleDialogPresenterLoadParams): Promise<void>;
23
+ schedule(params: IScheduleDialogPresenterScheduleParams): Promise<void>;
24
+ cancel(params: IScheduleDialogPresenterCancelParams): Promise<void>;
25
+ reset(): void;
26
+ }
@@ -0,0 +1,22 @@
1
+ import type { ICancelScheduledActionGateway, IGetScheduledActionGateway, ISchedulePublishActionGateway, IScheduleUnpublishActionGateway } from "../../../Gateways/index.js";
2
+ import type { IScheduleDialogPresenter, IScheduleDialogPresenterCancelParams, IScheduleDialogPresenterLoadParams, IScheduleDialogPresenterScheduleParams, IScheduleDialogPresenterViewModel } from "./IScheduleDialogPresenter.js";
3
+ export interface IScheduleDialogPresenterParams {
4
+ getGateway: IGetScheduledActionGateway;
5
+ cancelGateway: ICancelScheduledActionGateway;
6
+ publishGateway: ISchedulePublishActionGateway;
7
+ unpublishGateway: IScheduleUnpublishActionGateway;
8
+ }
9
+ export declare class ScheduleDialogPresenter implements IScheduleDialogPresenter {
10
+ private loading;
11
+ private entry;
12
+ private readonly getGateway;
13
+ private readonly cancelGateway;
14
+ private readonly publishGateway;
15
+ private readonly unpublishGateway;
16
+ constructor(params: IScheduleDialogPresenterParams);
17
+ get vm(): IScheduleDialogPresenterViewModel;
18
+ load(params: IScheduleDialogPresenterLoadParams): Promise<void>;
19
+ schedule(params: IScheduleDialogPresenterScheduleParams): Promise<void>;
20
+ cancel(params: IScheduleDialogPresenterCancelParams): Promise<void>;
21
+ reset(): void;
22
+ }
@@ -0,0 +1,86 @@
1
+ import { makeAutoObservable, runInAction } from "mobx";
2
+ import { ScheduleActionType } from "../../../types.js";
3
+ class ScheduleDialogPresenter {
4
+ constructor(params){
5
+ this.loading = false;
6
+ this.entry = null;
7
+ this.getGateway = params.getGateway;
8
+ this.cancelGateway = params.cancelGateway;
9
+ this.publishGateway = params.publishGateway;
10
+ this.unpublishGateway = params.unpublishGateway;
11
+ makeAutoObservable(this);
12
+ }
13
+ get vm() {
14
+ return {
15
+ loading: this.loading,
16
+ entry: this.entry
17
+ };
18
+ }
19
+ async load(params) {
20
+ this.loading = true;
21
+ try {
22
+ const entry = await this.getGateway.execute(params);
23
+ runInAction(()=>{
24
+ this.entry = entry;
25
+ this.loading = false;
26
+ });
27
+ } catch {
28
+ runInAction(()=>{
29
+ this.loading = false;
30
+ });
31
+ }
32
+ }
33
+ async schedule(params) {
34
+ const { targetId, namespace, scheduleOn, actionType } = params;
35
+ this.loading = true;
36
+ try {
37
+ switch(actionType){
38
+ case ScheduleActionType.publish:
39
+ await this.publishGateway.execute({
40
+ namespace,
41
+ targetId,
42
+ scheduleOn
43
+ });
44
+ break;
45
+ case ScheduleActionType.unpublish:
46
+ await this.unpublishGateway.execute({
47
+ namespace,
48
+ targetId,
49
+ scheduleOn
50
+ });
51
+ break;
52
+ default:
53
+ throw new Error(`Unsupported action type "${actionType}".`);
54
+ }
55
+ runInAction(()=>{
56
+ this.entry = null;
57
+ this.loading = false;
58
+ });
59
+ } catch {
60
+ runInAction(()=>{
61
+ this.loading = false;
62
+ });
63
+ }
64
+ }
65
+ async cancel(params) {
66
+ this.loading = true;
67
+ try {
68
+ await this.cancelGateway.execute(params);
69
+ runInAction(()=>{
70
+ this.entry = null;
71
+ this.loading = false;
72
+ });
73
+ } catch {
74
+ runInAction(()=>{
75
+ this.loading = false;
76
+ });
77
+ }
78
+ }
79
+ reset() {
80
+ this.entry = null;
81
+ this.loading = false;
82
+ }
83
+ }
84
+ export { ScheduleDialogPresenter };
85
+
86
+ //# sourceMappingURL=ScheduleDialogPresenter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Presentation/components/ScheduleDialog/ScheduleDialogPresenter.js","sources":["../../../../src/Presentation/components/ScheduleDialog/ScheduleDialogPresenter.ts"],"sourcesContent":["import { makeAutoObservable, runInAction } from \"mobx\";\nimport { ScheduleActionType } from \"~/types.js\";\nimport type { SchedulerEntry } from \"~/types.js\";\nimport type {\n ICancelScheduledActionGateway,\n IGetScheduledActionGateway,\n ISchedulePublishActionGateway,\n IScheduleUnpublishActionGateway\n} from \"~/Gateways/index.js\";\nimport type {\n IScheduleDialogPresenter,\n IScheduleDialogPresenterCancelParams,\n IScheduleDialogPresenterLoadParams,\n IScheduleDialogPresenterScheduleParams,\n IScheduleDialogPresenterViewModel\n} from \"./IScheduleDialogPresenter.js\";\n\nexport interface IScheduleDialogPresenterParams {\n getGateway: IGetScheduledActionGateway;\n cancelGateway: ICancelScheduledActionGateway;\n publishGateway: ISchedulePublishActionGateway;\n unpublishGateway: IScheduleUnpublishActionGateway;\n}\n\nexport class ScheduleDialogPresenter implements IScheduleDialogPresenter {\n private loading = false;\n private entry: SchedulerEntry | null = null;\n\n private readonly getGateway: IGetScheduledActionGateway;\n private readonly cancelGateway: ICancelScheduledActionGateway;\n private readonly publishGateway: ISchedulePublishActionGateway;\n private readonly unpublishGateway: IScheduleUnpublishActionGateway;\n\n public constructor(params: IScheduleDialogPresenterParams) {\n this.getGateway = params.getGateway;\n this.cancelGateway = params.cancelGateway;\n this.publishGateway = params.publishGateway;\n this.unpublishGateway = params.unpublishGateway;\n makeAutoObservable(this);\n }\n\n public get vm(): IScheduleDialogPresenterViewModel {\n return {\n loading: this.loading,\n entry: this.entry\n };\n }\n\n public async load(params: IScheduleDialogPresenterLoadParams): Promise<void> {\n this.loading = true;\n\n try {\n const entry = await this.getGateway.execute(params);\n runInAction(() => {\n this.entry = entry;\n this.loading = false;\n });\n } catch {\n runInAction(() => {\n this.loading = false;\n });\n }\n }\n\n public async schedule(params: IScheduleDialogPresenterScheduleParams): Promise<void> {\n const { targetId, namespace, scheduleOn, actionType } = params;\n this.loading = true;\n\n try {\n switch (actionType) {\n case ScheduleActionType.publish:\n await this.publishGateway.execute({ namespace, targetId, scheduleOn });\n break;\n case ScheduleActionType.unpublish:\n await this.unpublishGateway.execute({ namespace, targetId, scheduleOn });\n break;\n default:\n throw new Error(`Unsupported action type \"${actionType}\".`);\n }\n runInAction(() => {\n this.entry = null;\n this.loading = false;\n });\n } catch {\n runInAction(() => {\n this.loading = false;\n });\n }\n }\n\n public async cancel(params: IScheduleDialogPresenterCancelParams): Promise<void> {\n this.loading = true;\n\n try {\n await this.cancelGateway.execute(params);\n runInAction(() => {\n this.entry = null;\n this.loading = false;\n });\n } catch {\n runInAction(() => {\n this.loading = false;\n });\n }\n }\n\n public reset(): void {\n this.entry = null;\n this.loading = false;\n }\n}\n"],"names":["ScheduleDialogPresenter","params","makeAutoObservable","entry","runInAction","targetId","namespace","scheduleOn","actionType","ScheduleActionType","Error"],"mappings":";;AAwBO,MAAMA;IAST,YAAmBC,MAAsC,CAAE;aARnD,OAAO,GAAG;aACV,KAAK,GAA0B;QAQnC,IAAI,CAAC,UAAU,GAAGA,OAAO,UAAU;QACnC,IAAI,CAAC,aAAa,GAAGA,OAAO,aAAa;QACzC,IAAI,CAAC,cAAc,GAAGA,OAAO,cAAc;QAC3C,IAAI,CAAC,gBAAgB,GAAGA,OAAO,gBAAgB;QAC/CC,mBAAmB,IAAI;IAC3B;IAEA,IAAW,KAAwC;QAC/C,OAAO;YACH,SAAS,IAAI,CAAC,OAAO;YACrB,OAAO,IAAI,CAAC,KAAK;QACrB;IACJ;IAEA,MAAa,KAAKD,MAA0C,EAAiB;QACzE,IAAI,CAAC,OAAO,GAAG;QAEf,IAAI;YACA,MAAME,QAAQ,MAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAACF;YAC5CG,YAAY;gBACR,IAAI,CAAC,KAAK,GAAGD;gBACb,IAAI,CAAC,OAAO,GAAG;YACnB;QACJ,EAAE,OAAM;YACJC,YAAY;gBACR,IAAI,CAAC,OAAO,GAAG;YACnB;QACJ;IACJ;IAEA,MAAa,SAASH,MAA8C,EAAiB;QACjF,MAAM,EAAEI,QAAQ,EAAEC,SAAS,EAAEC,UAAU,EAAEC,UAAU,EAAE,GAAGP;QACxD,IAAI,CAAC,OAAO,GAAG;QAEf,IAAI;YACA,OAAQO;gBACJ,KAAKC,mBAAmB,OAAO;oBAC3B,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC;wBAAEH;wBAAWD;wBAAUE;oBAAW;oBACpE;gBACJ,KAAKE,mBAAmB,SAAS;oBAC7B,MAAM,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC;wBAAEH;wBAAWD;wBAAUE;oBAAW;oBACtE;gBACJ;oBACI,MAAM,IAAIG,MAAM,CAAC,yBAAyB,EAAEF,WAAW,EAAE,CAAC;YAClE;YACAJ,YAAY;gBACR,IAAI,CAAC,KAAK,GAAG;gBACb,IAAI,CAAC,OAAO,GAAG;YACnB;QACJ,EAAE,OAAM;YACJA,YAAY;gBACR,IAAI,CAAC,OAAO,GAAG;YACnB;QACJ;IACJ;IAEA,MAAa,OAAOH,MAA4C,EAAiB;QAC7E,IAAI,CAAC,OAAO,GAAG;QAEf,IAAI;YACA,MAAM,IAAI,CAAC,aAAa,CAAC,OAAO,CAACA;YACjCG,YAAY;gBACR,IAAI,CAAC,KAAK,GAAG;gBACb,IAAI,CAAC,OAAO,GAAG;YACnB;QACJ,EAAE,OAAM;YACJA,YAAY;gBACR,IAAI,CAAC,OAAO,GAAG;YACnB;QACJ;IACJ;IAEO,QAAc;QACjB,IAAI,CAAC,KAAK,GAAG;QACb,IAAI,CAAC,OAAO,GAAG;IACnB;AACJ"}
@@ -0,0 +1 @@
1
+ export * from "./useScheduleDialog.js";
@@ -0,0 +1 @@
1
+ export * from "./useScheduleDialog.js";