@webiny/app-scheduler 6.4.11 → 6.6.0-alpha.1

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 (538) hide show
  1. package/{Gateways/schema → domain}/schedulerEntry.d.ts +1 -1
  2. package/{Gateways/schema → domain}/schedulerEntry.js +1 -1
  3. package/domain/schedulerEntry.js.map +1 -0
  4. package/features/cancelScheduledAction/CancelScheduledActionGateway.d.ts +11 -0
  5. package/features/cancelScheduledAction/CancelScheduledActionGateway.js +41 -0
  6. package/features/cancelScheduledAction/CancelScheduledActionGateway.js.map +1 -0
  7. package/features/cancelScheduledAction/abstractions.d.ts +11 -0
  8. package/features/cancelScheduledAction/abstractions.js +5 -0
  9. package/features/cancelScheduledAction/abstractions.js.map +1 -0
  10. package/features/cancelScheduledAction/feature.d.ts +1 -0
  11. package/features/cancelScheduledAction/feature.js +11 -0
  12. package/features/cancelScheduledAction/feature.js.map +1 -0
  13. package/features/feature.d.ts +1 -0
  14. package/features/feature.js +19 -0
  15. package/features/feature.js.map +1 -0
  16. package/features/getScheduledAction/GetScheduledActionGateway.d.ts +11 -0
  17. package/features/getScheduledAction/GetScheduledActionGateway.js +57 -0
  18. package/features/getScheduledAction/GetScheduledActionGateway.js.map +1 -0
  19. package/{Gateways/abstractions/GetScheduledActionGateway.d.ts → features/getScheduledAction/abstractions.d.ts} +4 -0
  20. package/features/getScheduledAction/abstractions.js +5 -0
  21. package/features/getScheduledAction/abstractions.js.map +1 -0
  22. package/features/getScheduledAction/feature.d.ts +1 -0
  23. package/features/getScheduledAction/feature.js +11 -0
  24. package/features/getScheduledAction/feature.js.map +1 -0
  25. package/features/graphqlFields.d.ts +2 -0
  26. package/features/graphqlFields.js +23 -0
  27. package/features/graphqlFields.js.map +1 -0
  28. package/features/listScheduledActions/ListScheduledActionsGateway.d.ts +11 -0
  29. package/features/listScheduledActions/ListScheduledActionsGateway.js +84 -0
  30. package/features/listScheduledActions/ListScheduledActionsGateway.js.map +1 -0
  31. package/{Gateways/abstractions/ListScheduledActionsGateway.d.ts → features/listScheduledActions/abstractions.d.ts} +5 -2
  32. package/features/listScheduledActions/abstractions.js +5 -0
  33. package/features/listScheduledActions/abstractions.js.map +1 -0
  34. package/features/listScheduledActions/feature.d.ts +1 -0
  35. package/features/listScheduledActions/feature.js +11 -0
  36. package/features/listScheduledActions/feature.js.map +1 -0
  37. package/features/schedulePublishAction/SchedulePublishActionGateway.d.ts +11 -0
  38. package/features/schedulePublishAction/SchedulePublishActionGateway.js +67 -0
  39. package/features/schedulePublishAction/SchedulePublishActionGateway.js.map +1 -0
  40. package/{Gateways/abstractions/SchedulePublishActionGateway.d.ts → features/schedulePublishAction/abstractions.d.ts} +4 -0
  41. package/features/schedulePublishAction/abstractions.js +5 -0
  42. package/features/schedulePublishAction/abstractions.js.map +1 -0
  43. package/features/schedulePublishAction/feature.d.ts +1 -0
  44. package/features/schedulePublishAction/feature.js +11 -0
  45. package/features/schedulePublishAction/feature.js.map +1 -0
  46. package/features/scheduleUnpublishAction/ScheduleUnpublishActionGateway.d.ts +11 -0
  47. package/features/scheduleUnpublishAction/ScheduleUnpublishActionGateway.js +71 -0
  48. package/features/scheduleUnpublishAction/ScheduleUnpublishActionGateway.js.map +1 -0
  49. package/{Gateways/abstractions/ScheduleUnpublishActionGateway.d.ts → features/scheduleUnpublishAction/abstractions.d.ts} +4 -0
  50. package/features/scheduleUnpublishAction/abstractions.js +5 -0
  51. package/features/scheduleUnpublishAction/abstractions.js.map +1 -0
  52. package/features/scheduleUnpublishAction/feature.d.ts +1 -0
  53. package/features/scheduleUnpublishAction/feature.js +11 -0
  54. package/features/scheduleUnpublishAction/feature.js.map +1 -0
  55. package/index.d.ts +9 -1
  56. package/index.js +17 -1
  57. package/index.js.map +1 -0
  58. package/package.json +17 -18
  59. package/{Presentation → presentation}/SchedulerConfigs/SchedulerConfigs.js.map +1 -1
  60. package/{Presentation → presentation}/components/Actions/CancelItem/CancelItem.js +2 -3
  61. package/presentation/components/Actions/CancelItem/CancelItem.js.map +1 -0
  62. package/{Presentation → presentation}/components/BottomInfoBar/BottomInfoBar.styled.js.map +1 -1
  63. package/{Presentation → presentation}/components/BottomInfoBar/ListMeta.js.map +1 -1
  64. package/{Presentation → presentation}/components/BottomInfoBar/ListStatus.js.map +1 -1
  65. package/{Presentation → presentation}/components/Cells/CellActions/CellActions.js.map +1 -1
  66. package/{Presentation → presentation}/components/Cells/CellRevision/CellRevision.js.map +1 -1
  67. package/{Presentation → presentation}/components/Cells/CellRevision/CellRevision.styled.js.map +1 -1
  68. package/{Presentation → presentation}/components/Cells/CellScheduledBy/CellScheduledBy.js.map +1 -1
  69. package/{Presentation → presentation}/components/Cells/CellScheduledOn/CellScheduledOn.js +3 -1
  70. package/presentation/components/Cells/CellScheduledOn/CellScheduledOn.js.map +1 -0
  71. package/{Presentation → presentation}/components/Cells/CellTitle/CellTitle.js.map +1 -1
  72. package/{Presentation → presentation}/components/Cells/CellTitle/CellTitle.styled.js.map +1 -1
  73. package/{Presentation → presentation}/components/Cells/CellType/CellActionType.js.map +1 -1
  74. package/{Presentation → presentation}/components/Cells/CellType/CellActionType.styled.js.map +1 -1
  75. package/{Presentation → presentation}/components/Empty/Empty.styled.js.map +1 -1
  76. package/{Presentation → presentation}/components/Title/Title.js.map +1 -1
  77. package/{Presentation → presentation}/components/Title/Title.styled.js.map +1 -1
  78. package/{Presentation → presentation}/configs/list/Browser/EntryAction.d.ts +2 -1
  79. package/{Presentation → presentation}/configs/list/Browser/EntryAction.js.map +1 -1
  80. package/{Presentation → presentation}/configs/list/Browser/Table/Column.d.ts +4 -3
  81. package/{Presentation → presentation}/configs/list/Browser/Table/Column.js.map +1 -1
  82. package/{Presentation → presentation}/configs/list/Browser/Table/Sorting.js.map +1 -1
  83. package/presentation/configs/list/Browser/Table/index.d.ts +19 -0
  84. package/{Presentation → presentation}/configs/list/Browser/Table/index.js.map +1 -1
  85. package/presentation/configs/list/Browser/index.d.ts +23 -0
  86. package/{Presentation → presentation}/configs/list/Browser/index.js.map +1 -1
  87. package/{Presentation → presentation}/configs/list/SchedulerListConfig.d.ts +8 -6
  88. package/{Presentation → presentation}/configs/list/SchedulerListConfig.js.map +1 -1
  89. package/{Presentation → presentation}/hooks/index.d.ts +0 -1
  90. package/{Presentation → presentation}/hooks/index.js +0 -1
  91. package/{Presentation → presentation}/hooks/useCancelSchedulerItem.js +12 -7
  92. package/presentation/hooks/useCancelSchedulerItem.js.map +1 -0
  93. package/{Presentation → presentation}/hooks/useSchedulerItem.js.map +1 -1
  94. package/presentation/scheduleDialog/ScheduleDialogPresenter.d.ts +26 -0
  95. package/{Presentation/components/ScheduleDialog → presentation/scheduleDialog}/ScheduleDialogPresenter.js +38 -9
  96. package/presentation/scheduleDialog/ScheduleDialogPresenter.js.map +1 -0
  97. package/{Presentation/components/ScheduleDialog/IScheduleDialogPresenter.d.ts → presentation/scheduleDialog/abstractions.d.ts} +10 -1
  98. package/presentation/scheduleDialog/abstractions.js +5 -0
  99. package/presentation/scheduleDialog/abstractions.js.map +1 -0
  100. package/presentation/scheduleDialog/components/CancelButtonComponent.d.ts +10 -0
  101. package/presentation/scheduleDialog/components/CancelButtonComponent.js +20 -0
  102. package/presentation/scheduleDialog/components/CancelButtonComponent.js.map +1 -0
  103. package/presentation/scheduleDialog/components/FormComponent.d.ts +9 -0
  104. package/presentation/scheduleDialog/components/FormComponent.js +32 -0
  105. package/presentation/scheduleDialog/components/FormComponent.js.map +1 -0
  106. package/presentation/scheduleDialog/components/ReschedulingAlert.d.ts +7 -0
  107. package/presentation/scheduleDialog/components/ReschedulingAlert.js +14 -0
  108. package/presentation/scheduleDialog/components/ReschedulingAlert.js.map +1 -0
  109. package/{Presentation/components/ScheduleDialog/useScheduleDialog.d.ts → presentation/scheduleDialog/components/SchedulerDialogFormComponentDateTimeInput.d.ts} +1 -18
  110. package/presentation/scheduleDialog/components/SchedulerDialogFormComponentDateTimeInput.js +15 -0
  111. package/presentation/scheduleDialog/components/SchedulerDialogFormComponentDateTimeInput.js.map +1 -0
  112. package/presentation/scheduleDialog/createMinDateValidator.d.ts +7 -0
  113. package/presentation/scheduleDialog/createMinDateValidator.js +14 -0
  114. package/presentation/scheduleDialog/createMinDateValidator.js.map +1 -0
  115. package/presentation/scheduleDialog/feature.d.ts +3 -0
  116. package/presentation/scheduleDialog/feature.js +17 -0
  117. package/presentation/scheduleDialog/feature.js.map +1 -0
  118. package/presentation/scheduleDialog/useScheduleDialog.d.ts +20 -0
  119. package/presentation/scheduleDialog/useScheduleDialog.js +128 -0
  120. package/presentation/scheduleDialog/useScheduleDialog.js.map +1 -0
  121. package/{Presentation/index.d.ts → presentation/schedulerList/Scheduler.d.ts} +2 -9
  122. package/presentation/schedulerList/Scheduler.js +28 -0
  123. package/presentation/schedulerList/Scheduler.js.map +1 -0
  124. package/presentation/schedulerList/SchedulerListDataSource.d.ts +15 -0
  125. package/presentation/schedulerList/SchedulerListDataSource.js +41 -0
  126. package/presentation/schedulerList/SchedulerListDataSource.js.map +1 -0
  127. package/presentation/schedulerList/SchedulerListPresenter.d.ts +21 -0
  128. package/presentation/schedulerList/SchedulerListPresenter.js +47 -0
  129. package/presentation/schedulerList/SchedulerListPresenter.js.map +1 -0
  130. package/presentation/schedulerList/abstractions.d.ts +13 -0
  131. package/presentation/schedulerList/abstractions.js +5 -0
  132. package/presentation/schedulerList/abstractions.js.map +1 -0
  133. package/presentation/schedulerList/components/BottomInfoBar.d.ts +9 -0
  134. package/presentation/schedulerList/components/BottomInfoBar.js +18 -0
  135. package/presentation/schedulerList/components/BottomInfoBar.js.map +1 -0
  136. package/presentation/schedulerList/components/Empty.d.ts +9 -0
  137. package/{Presentation/components/Empty → presentation/schedulerList/components}/Empty.js +6 -6
  138. package/presentation/schedulerList/components/Empty.js.map +1 -0
  139. package/presentation/schedulerList/components/SchedulerListView.d.ts +8 -0
  140. package/presentation/schedulerList/components/SchedulerListView.js +40 -0
  141. package/presentation/schedulerList/components/SchedulerListView.js.map +1 -0
  142. package/presentation/schedulerList/components/SchedulerOverlay.d.ts +11 -0
  143. package/presentation/schedulerList/components/SchedulerOverlay.js +38 -0
  144. package/presentation/schedulerList/components/SchedulerOverlay.js.map +1 -0
  145. package/presentation/schedulerList/components/SchedulerTable.d.ts +9 -0
  146. package/presentation/schedulerList/components/SchedulerTable.js +48 -0
  147. package/presentation/schedulerList/components/SchedulerTable.js.map +1 -0
  148. package/presentation/schedulerList/components/SearchInput.d.ts +9 -0
  149. package/{Presentation/components/SearchInput → presentation/schedulerList/components}/SearchInput.js +8 -8
  150. package/presentation/schedulerList/components/SearchInput.js.map +1 -0
  151. package/presentation/schedulerList/feature.d.ts +3 -0
  152. package/presentation/schedulerList/feature.js +17 -0
  153. package/presentation/schedulerList/feature.js.map +1 -0
  154. package/presentation/schedulerList/useSchedulerListPresenter.d.ts +1 -0
  155. package/presentation/schedulerList/useSchedulerListPresenter.js +6 -0
  156. package/presentation/schedulerList/useSchedulerListPresenter.js.map +1 -0
  157. package/types.d.ts +0 -7
  158. package/types.js +1 -9
  159. package/types.js.map +1 -1
  160. package/Domain/Models/SchedulerItem/SchedulerItem.d.ts +0 -13
  161. package/Domain/Models/SchedulerItem/SchedulerItem.js +0 -18
  162. package/Domain/Models/SchedulerItem/SchedulerItem.js.map +0 -1
  163. package/Domain/Models/SchedulerItem/index.d.ts +0 -1
  164. package/Domain/Models/SchedulerItem/index.js +0 -1
  165. package/Domain/Models/index.d.ts +0 -1
  166. package/Domain/Models/index.js +0 -1
  167. package/Domain/Repositories/SchedulerItems/ISchedulerItemsRepository.d.ts +0 -14
  168. package/Domain/Repositories/SchedulerItems/ISchedulerItemsRepository.js +0 -0
  169. package/Domain/Repositories/SchedulerItems/SchedulerItemsRepository.d.ts +0 -36
  170. package/Domain/Repositories/SchedulerItems/SchedulerItemsRepository.js +0 -119
  171. package/Domain/Repositories/SchedulerItems/SchedulerItemsRepository.js.map +0 -1
  172. package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryFactory.d.ts +0 -19
  173. package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryFactory.js +0 -18
  174. package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryFactory.js.map +0 -1
  175. package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryWithLoading.d.ts +0 -17
  176. package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryWithLoading.js +0 -39
  177. package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryWithLoading.js.map +0 -1
  178. package/Domain/Repositories/SchedulerItems/index.d.ts +0 -4
  179. package/Domain/Repositories/SchedulerItems/index.js +0 -3
  180. package/Domain/Repositories/Search/ISearchRepository.d.ts +0 -4
  181. package/Domain/Repositories/Search/ISearchRepository.js +0 -0
  182. package/Domain/Repositories/Search/SearchRepository.d.ts +0 -7
  183. package/Domain/Repositories/Search/SearchRepository.js +0 -16
  184. package/Domain/Repositories/Search/SearchRepository.js.map +0 -1
  185. package/Domain/Repositories/Search/SearchRepositoryFactory.d.ts +0 -7
  186. package/Domain/Repositories/Search/SearchRepositoryFactory.js +0 -18
  187. package/Domain/Repositories/Search/SearchRepositoryFactory.js.map +0 -1
  188. package/Domain/Repositories/Search/index.d.ts +0 -3
  189. package/Domain/Repositories/Search/index.js +0 -2
  190. package/Domain/Repositories/SelectedItems/ISelectedItemsRepository.d.ts +0 -8
  191. package/Domain/Repositories/SelectedItems/ISelectedItemsRepository.js +0 -0
  192. package/Domain/Repositories/SelectedItems/SelectedItemsRepository.d.ts +0 -12
  193. package/Domain/Repositories/SelectedItems/SelectedItemsRepository.js +0 -28
  194. package/Domain/Repositories/SelectedItems/SelectedItemsRepository.js.map +0 -1
  195. package/Domain/Repositories/SelectedItems/SelectedItemsRepositoryFactory.d.ts +0 -7
  196. package/Domain/Repositories/SelectedItems/SelectedItemsRepositoryFactory.js +0 -18
  197. package/Domain/Repositories/SelectedItems/SelectedItemsRepositoryFactory.js.map +0 -1
  198. package/Domain/Repositories/SelectedItems/index.d.ts +0 -3
  199. package/Domain/Repositories/SelectedItems/index.js +0 -2
  200. package/Domain/Repositories/Sorting/SortingRepositoryWithDefaults.d.ts +0 -8
  201. package/Domain/Repositories/Sorting/SortingRepositoryWithDefaults.js +0 -21
  202. package/Domain/Repositories/Sorting/SortingRepositoryWithDefaults.js.map +0 -1
  203. package/Domain/Repositories/Sorting/index.d.ts +0 -1
  204. package/Domain/Repositories/Sorting/index.js +0 -1
  205. package/Domain/Repositories/index.d.ts +0 -4
  206. package/Domain/Repositories/index.js +0 -4
  207. package/Domain/index.d.ts +0 -2
  208. package/Domain/index.js +0 -2
  209. package/Gateways/SchedulerCancelGraphQLGateway.d.ts +0 -7
  210. package/Gateways/SchedulerCancelGraphQLGateway.js +0 -42
  211. package/Gateways/SchedulerCancelGraphQLGateway.js.map +0 -1
  212. package/Gateways/SchedulerGetGraphQLGateway.d.ts +0 -21
  213. package/Gateways/SchedulerGetGraphQLGateway.js +0 -68
  214. package/Gateways/SchedulerGetGraphQLGateway.js.map +0 -1
  215. package/Gateways/SchedulerListGraphQLGateway.d.ts +0 -7
  216. package/Gateways/SchedulerListGraphQLGateway.js +0 -86
  217. package/Gateways/SchedulerListGraphQLGateway.js.map +0 -1
  218. package/Gateways/SchedulerPublishGraphQLGateway.d.ts +0 -7
  219. package/Gateways/SchedulerPublishGraphQLGateway.js +0 -59
  220. package/Gateways/SchedulerPublishGraphQLGateway.js.map +0 -1
  221. package/Gateways/SchedulerUnpublishGraphQLGateway.d.ts +0 -23
  222. package/Gateways/SchedulerUnpublishGraphQLGateway.js +0 -63
  223. package/Gateways/SchedulerUnpublishGraphQLGateway.js.map +0 -1
  224. package/Gateways/abstractions/CancelScheduledActionGateway.d.ts +0 -7
  225. package/Gateways/abstractions/CancelScheduledActionGateway.js +0 -0
  226. package/Gateways/abstractions/GetScheduledActionGateway.js +0 -0
  227. package/Gateways/abstractions/ListScheduledActionsGateway.js +0 -0
  228. package/Gateways/abstractions/SchedulePublishActionGateway.js +0 -0
  229. package/Gateways/abstractions/ScheduleUnpublishActionGateway.js +0 -0
  230. package/Gateways/graphql/fields.d.ts +0 -1
  231. package/Gateways/graphql/fields.js +0 -17
  232. package/Gateways/graphql/fields.js.map +0 -1
  233. package/Gateways/index.d.ts +0 -5
  234. package/Gateways/index.js +0 -0
  235. package/Gateways/schema/schedulerEntry.js.map +0 -1
  236. package/Presentation/Scheduler/Scheduler.d.ts +0 -17
  237. package/Presentation/Scheduler/Scheduler.js +0 -78
  238. package/Presentation/Scheduler/Scheduler.js.map +0 -1
  239. package/Presentation/Scheduler/SchedulerControllers.d.ts +0 -30
  240. package/Presentation/Scheduler/SchedulerControllers.js +0 -54
  241. package/Presentation/Scheduler/SchedulerControllers.js.map +0 -1
  242. package/Presentation/Scheduler/SchedulerPresenter.d.ts +0 -32
  243. package/Presentation/Scheduler/SchedulerPresenter.js +0 -45
  244. package/Presentation/Scheduler/SchedulerPresenter.js.map +0 -1
  245. package/Presentation/Scheduler/controllers/CancelItem/CancelItemController.d.ts +0 -7
  246. package/Presentation/Scheduler/controllers/CancelItem/CancelItemController.js +0 -12
  247. package/Presentation/Scheduler/controllers/CancelItem/CancelItemController.js.map +0 -1
  248. package/Presentation/Scheduler/controllers/CancelItem/ICancelItemController.d.ts +0 -3
  249. package/Presentation/Scheduler/controllers/CancelItem/ICancelItemController.js +0 -0
  250. package/Presentation/Scheduler/controllers/CancelItem/index.d.ts +0 -2
  251. package/Presentation/Scheduler/controllers/CancelItem/index.js +0 -1
  252. package/Presentation/Scheduler/controllers/GetItem/GetItemController.d.ts +0 -8
  253. package/Presentation/Scheduler/controllers/GetItem/GetItemController.js +0 -12
  254. package/Presentation/Scheduler/controllers/GetItem/GetItemController.js.map +0 -1
  255. package/Presentation/Scheduler/controllers/GetItem/IGetItemController.d.ts +0 -4
  256. package/Presentation/Scheduler/controllers/GetItem/IGetItemController.js +0 -0
  257. package/Presentation/Scheduler/controllers/GetItem/index.d.ts +0 -2
  258. package/Presentation/Scheduler/controllers/GetItem/index.js +0 -1
  259. package/Presentation/Scheduler/controllers/ListItems/IListItemsController.d.ts +0 -4
  260. package/Presentation/Scheduler/controllers/ListItems/IListItemsController.js +0 -0
  261. package/Presentation/Scheduler/controllers/ListItems/ListItemsController.d.ts +0 -8
  262. package/Presentation/Scheduler/controllers/ListItems/ListItemsController.js +0 -12
  263. package/Presentation/Scheduler/controllers/ListItems/ListItemsController.js.map +0 -1
  264. package/Presentation/Scheduler/controllers/ListItems/index.d.ts +0 -2
  265. package/Presentation/Scheduler/controllers/ListItems/index.js +0 -1
  266. package/Presentation/Scheduler/controllers/ListMoreItems/IListMoreItemsController.d.ts +0 -3
  267. package/Presentation/Scheduler/controllers/ListMoreItems/IListMoreItemsController.js +0 -0
  268. package/Presentation/Scheduler/controllers/ListMoreItems/ListMoreItemsController.d.ts +0 -7
  269. package/Presentation/Scheduler/controllers/ListMoreItems/ListMoreItemsController.js +0 -12
  270. package/Presentation/Scheduler/controllers/ListMoreItems/ListMoreItemsController.js.map +0 -1
  271. package/Presentation/Scheduler/controllers/ListMoreItems/index.d.ts +0 -2
  272. package/Presentation/Scheduler/controllers/ListMoreItems/index.js +0 -1
  273. package/Presentation/Scheduler/controllers/PublishItem/IPublishItemController.d.ts +0 -3
  274. package/Presentation/Scheduler/controllers/PublishItem/IPublishItemController.js +0 -0
  275. package/Presentation/Scheduler/controllers/PublishItem/PublishItemController.d.ts +0 -7
  276. package/Presentation/Scheduler/controllers/PublishItem/PublishItemController.js +0 -12
  277. package/Presentation/Scheduler/controllers/PublishItem/PublishItemController.js.map +0 -1
  278. package/Presentation/Scheduler/controllers/PublishItem/index.d.ts +0 -2
  279. package/Presentation/Scheduler/controllers/PublishItem/index.js +0 -1
  280. package/Presentation/Scheduler/controllers/SearchItems/ISearchItemsController.d.ts +0 -3
  281. package/Presentation/Scheduler/controllers/SearchItems/ISearchItemsController.js +0 -0
  282. package/Presentation/Scheduler/controllers/SearchItems/SearchItemsController.d.ts +0 -8
  283. package/Presentation/Scheduler/controllers/SearchItems/SearchItemsController.js +0 -15
  284. package/Presentation/Scheduler/controllers/SearchItems/SearchItemsController.js.map +0 -1
  285. package/Presentation/Scheduler/controllers/SearchItems/index.d.ts +0 -2
  286. package/Presentation/Scheduler/controllers/SearchItems/index.js +0 -1
  287. package/Presentation/Scheduler/controllers/SelectAllItems/ISelectAllItemsController.d.ts +0 -3
  288. package/Presentation/Scheduler/controllers/SelectAllItems/ISelectAllItemsController.js +0 -0
  289. package/Presentation/Scheduler/controllers/SelectAllItems/SelectAllItemsController.d.ts +0 -7
  290. package/Presentation/Scheduler/controllers/SelectAllItems/SelectAllItemsController.js +0 -12
  291. package/Presentation/Scheduler/controllers/SelectAllItems/SelectAllItemsController.js.map +0 -1
  292. package/Presentation/Scheduler/controllers/SelectAllItems/index.d.ts +0 -2
  293. package/Presentation/Scheduler/controllers/SelectAllItems/index.js +0 -1
  294. package/Presentation/Scheduler/controllers/SelectItems/ISelectItemsController.d.ts +0 -4
  295. package/Presentation/Scheduler/controllers/SelectItems/ISelectItemsController.js +0 -0
  296. package/Presentation/Scheduler/controllers/SelectItems/SelectItemsController.d.ts +0 -8
  297. package/Presentation/Scheduler/controllers/SelectItems/SelectItemsController.js +0 -14
  298. package/Presentation/Scheduler/controllers/SelectItems/SelectItemsController.js.map +0 -1
  299. package/Presentation/Scheduler/controllers/SelectItems/index.d.ts +0 -2
  300. package/Presentation/Scheduler/controllers/SelectItems/index.js +0 -1
  301. package/Presentation/Scheduler/controllers/SortItems/ISortItemsController.d.ts +0 -4
  302. package/Presentation/Scheduler/controllers/SortItems/ISortItemsController.js +0 -0
  303. package/Presentation/Scheduler/controllers/SortItems/SortItemsController.d.ts +0 -9
  304. package/Presentation/Scheduler/controllers/SortItems/SortItemsController.js +0 -18
  305. package/Presentation/Scheduler/controllers/SortItems/SortItemsController.js.map +0 -1
  306. package/Presentation/Scheduler/controllers/SortItems/index.d.ts +0 -2
  307. package/Presentation/Scheduler/controllers/SortItems/index.js +0 -1
  308. package/Presentation/Scheduler/controllers/UnpublishItem/IUnpublishItemController.d.ts +0 -3
  309. package/Presentation/Scheduler/controllers/UnpublishItem/IUnpublishItemController.js +0 -0
  310. package/Presentation/Scheduler/controllers/UnpublishItem/UnpublishItemController.d.ts +0 -7
  311. package/Presentation/Scheduler/controllers/UnpublishItem/UnpublishItemController.js +0 -12
  312. package/Presentation/Scheduler/controllers/UnpublishItem/UnpublishItemController.js.map +0 -1
  313. package/Presentation/Scheduler/controllers/UnpublishItem/index.d.ts +0 -2
  314. package/Presentation/Scheduler/controllers/UnpublishItem/index.js +0 -1
  315. package/Presentation/Scheduler/controllers/UnselectAllItems/IUnselectAllItemsController.d.ts +0 -3
  316. package/Presentation/Scheduler/controllers/UnselectAllItems/IUnselectAllItemsController.js +0 -0
  317. package/Presentation/Scheduler/controllers/UnselectAllItems/UnselectAllItemsController.d.ts +0 -7
  318. package/Presentation/Scheduler/controllers/UnselectAllItems/UnselectAllItemsController.js +0 -12
  319. package/Presentation/Scheduler/controllers/UnselectAllItems/UnselectAllItemsController.js.map +0 -1
  320. package/Presentation/Scheduler/controllers/UnselectAllItems/index.d.ts +0 -2
  321. package/Presentation/Scheduler/controllers/UnselectAllItems/index.js +0 -1
  322. package/Presentation/Scheduler/controllers/index.d.ts +0 -11
  323. package/Presentation/Scheduler/controllers/index.js +0 -11
  324. package/Presentation/Scheduler/index.d.ts +0 -1
  325. package/Presentation/Scheduler/index.js +0 -1
  326. package/Presentation/SchedulerRenderer/SchedulerRenderer.d.ts +0 -6
  327. package/Presentation/SchedulerRenderer/SchedulerRenderer.js +0 -16
  328. package/Presentation/SchedulerRenderer/SchedulerRenderer.js.map +0 -1
  329. package/Presentation/SchedulerRenderer/index.d.ts +0 -1
  330. package/Presentation/SchedulerRenderer/index.js +0 -1
  331. package/Presentation/abstractions/ISchedulerControllers.d.ts +0 -14
  332. package/Presentation/abstractions/ISchedulerControllers.js +0 -0
  333. package/Presentation/abstractions/ISchedulerPresenter.d.ts +0 -20
  334. package/Presentation/abstractions/ISchedulerPresenter.js +0 -0
  335. package/Presentation/abstractions/index.d.ts +0 -2
  336. package/Presentation/abstractions/index.js +0 -0
  337. package/Presentation/components/Actions/CancelItem/CancelItem.js.map +0 -1
  338. package/Presentation/components/BottomInfoBar/BottomInfoBar.d.ts +0 -2
  339. package/Presentation/components/BottomInfoBar/BottomInfoBar.js +0 -19
  340. package/Presentation/components/BottomInfoBar/BottomInfoBar.js.map +0 -1
  341. package/Presentation/components/BottomInfoBar/index.d.ts +0 -1
  342. package/Presentation/components/BottomInfoBar/index.js +0 -1
  343. package/Presentation/components/Cells/CellScheduledOn/CellScheduledOn.js.map +0 -1
  344. package/Presentation/components/Empty/Empty.d.ts +0 -2
  345. package/Presentation/components/Empty/Empty.js.map +0 -1
  346. package/Presentation/components/Empty/index.d.ts +0 -1
  347. package/Presentation/components/Empty/index.js +0 -1
  348. package/Presentation/components/ScheduleDialog/IScheduleDialogPresenter.js +0 -0
  349. package/Presentation/components/ScheduleDialog/ScheduleDialogPresenter.d.ts +0 -22
  350. package/Presentation/components/ScheduleDialog/ScheduleDialogPresenter.js.map +0 -1
  351. package/Presentation/components/ScheduleDialog/index.d.ts +0 -1
  352. package/Presentation/components/ScheduleDialog/index.js +0 -1
  353. package/Presentation/components/ScheduleDialog/types.d.ts +0 -15
  354. package/Presentation/components/ScheduleDialog/types.js +0 -0
  355. package/Presentation/components/ScheduleDialog/useScheduleDialog.js +0 -192
  356. package/Presentation/components/ScheduleDialog/useScheduleDialog.js.map +0 -1
  357. package/Presentation/components/SchedulerOverlay/SchedulerOverlay.d.ts +0 -7
  358. package/Presentation/components/SchedulerOverlay/SchedulerOverlay.js +0 -30
  359. package/Presentation/components/SchedulerOverlay/SchedulerOverlay.js.map +0 -1
  360. package/Presentation/components/SchedulerOverlay/index.d.ts +0 -1
  361. package/Presentation/components/SchedulerOverlay/index.js +0 -1
  362. package/Presentation/components/SearchInput/SearchInput.d.ts +0 -2
  363. package/Presentation/components/SearchInput/SearchInput.js.map +0 -1
  364. package/Presentation/components/SearchInput/index.d.ts +0 -1
  365. package/Presentation/components/SearchInput/index.js +0 -1
  366. package/Presentation/components/Table/Table.d.ts +0 -2
  367. package/Presentation/components/Table/Table.js +0 -29
  368. package/Presentation/components/Table/Table.js.map +0 -1
  369. package/Presentation/components/Table/index.d.ts +0 -1
  370. package/Presentation/components/Table/index.js +0 -1
  371. package/Presentation/configs/list/Browser/Table/index.d.ts +0 -18
  372. package/Presentation/configs/list/Browser/index.d.ts +0 -23
  373. package/Presentation/hooks/useCancelSchedulerItem.js.map +0 -1
  374. package/Presentation/hooks/useScheduler.d.ts +0 -28
  375. package/Presentation/hooks/useScheduler.js +0 -68
  376. package/Presentation/hooks/useScheduler.js.map +0 -1
  377. package/Presentation/index.js +0 -49
  378. package/Presentation/index.js.map +0 -1
  379. package/UseCases/CancelItem/CancelItemUseCase.d.ts +0 -7
  380. package/UseCases/CancelItem/CancelItemUseCase.js +0 -13
  381. package/UseCases/CancelItem/CancelItemUseCase.js.map +0 -1
  382. package/UseCases/CancelItem/ICancelItemUseCase.d.ts +0 -3
  383. package/UseCases/CancelItem/ICancelItemUseCase.js +0 -0
  384. package/UseCases/CancelItem/index.d.ts +0 -2
  385. package/UseCases/CancelItem/index.js +0 -1
  386. package/UseCases/GetItem/GetItemUseCase.d.ts +0 -8
  387. package/UseCases/GetItem/GetItemUseCase.js +0 -13
  388. package/UseCases/GetItem/GetItemUseCase.js.map +0 -1
  389. package/UseCases/GetItem/IGetItemUseCase.d.ts +0 -4
  390. package/UseCases/GetItem/IGetItemUseCase.js +0 -0
  391. package/UseCases/GetItem/index.d.ts +0 -2
  392. package/UseCases/GetItem/index.js +0 -1
  393. package/UseCases/GetScheduledItem/GetScheduledItemUseCase.d.ts +0 -7
  394. package/UseCases/GetScheduledItem/GetScheduledItemUseCase.js +0 -14
  395. package/UseCases/GetScheduledItem/GetScheduledItemUseCase.js.map +0 -1
  396. package/UseCases/GetScheduledItem/IGetScheduledItemUseCase.d.ts +0 -4
  397. package/UseCases/GetScheduledItem/IGetScheduledItemUseCase.js +0 -0
  398. package/UseCases/GetScheduledItem/index.d.ts +0 -2
  399. package/UseCases/GetScheduledItem/index.js +0 -1
  400. package/UseCases/ListItems/IListItemsUseCase.d.ts +0 -4
  401. package/UseCases/ListItems/IListItemsUseCase.js +0 -0
  402. package/UseCases/ListItems/ListItemsUseCase.d.ts +0 -8
  403. package/UseCases/ListItems/ListItemsUseCase.js +0 -13
  404. package/UseCases/ListItems/ListItemsUseCase.js.map +0 -1
  405. package/UseCases/ListItems/ListItemsUseCaseWithSearch.d.ts +0 -9
  406. package/UseCases/ListItems/ListItemsUseCaseWithSearch.js +0 -23
  407. package/UseCases/ListItems/ListItemsUseCaseWithSearch.js.map +0 -1
  408. package/UseCases/ListItems/ListItemsUseCaseWithSorting.d.ts +0 -9
  409. package/UseCases/ListItems/ListItemsUseCaseWithSorting.js +0 -21
  410. package/UseCases/ListItems/ListItemsUseCaseWithSorting.js.map +0 -1
  411. package/UseCases/ListItems/index.d.ts +0 -4
  412. package/UseCases/ListItems/index.js +0 -3
  413. package/UseCases/ListMoreItems/IListMoreItemsUseCase.d.ts +0 -3
  414. package/UseCases/ListMoreItems/IListMoreItemsUseCase.js +0 -0
  415. package/UseCases/ListMoreItems/ListMoreItemsUseCase.d.ts +0 -7
  416. package/UseCases/ListMoreItems/ListMoreItemsUseCase.js +0 -13
  417. package/UseCases/ListMoreItems/ListMoreItemsUseCase.js.map +0 -1
  418. package/UseCases/ListMoreItems/index.d.ts +0 -2
  419. package/UseCases/ListMoreItems/index.js +0 -1
  420. package/UseCases/PublishItem/IPublishItemUseCase.d.ts +0 -3
  421. package/UseCases/PublishItem/IPublishItemUseCase.js +0 -0
  422. package/UseCases/PublishItem/PublishItemUseCase.d.ts +0 -7
  423. package/UseCases/PublishItem/PublishItemUseCase.js +0 -13
  424. package/UseCases/PublishItem/PublishItemUseCase.js.map +0 -1
  425. package/UseCases/PublishItem/index.d.ts +0 -2
  426. package/UseCases/PublishItem/index.js +0 -1
  427. package/UseCases/SearchItems/ISearchItemsUseCase.d.ts +0 -3
  428. package/UseCases/SearchItems/ISearchItemsUseCase.js +0 -0
  429. package/UseCases/SearchItems/SearchItemsUseCase.d.ts +0 -7
  430. package/UseCases/SearchItems/SearchItemsUseCase.js +0 -13
  431. package/UseCases/SearchItems/SearchItemsUseCase.js.map +0 -1
  432. package/UseCases/SearchItems/index.d.ts +0 -2
  433. package/UseCases/SearchItems/index.js +0 -1
  434. package/UseCases/SelectAllItems/ISelectAllItemsUseCase.d.ts +0 -3
  435. package/UseCases/SelectAllItems/ISelectAllItemsUseCase.js +0 -0
  436. package/UseCases/SelectAllItems/SelectAllItemsUseCase.d.ts +0 -7
  437. package/UseCases/SelectAllItems/SelectAllItemsUseCase.js +0 -13
  438. package/UseCases/SelectAllItems/SelectAllItemsUseCase.js.map +0 -1
  439. package/UseCases/SelectAllItems/index.d.ts +0 -2
  440. package/UseCases/SelectAllItems/index.js +0 -1
  441. package/UseCases/SelectItems/ISelectItemsUseCase.d.ts +0 -4
  442. package/UseCases/SelectItems/ISelectItemsUseCase.js +0 -0
  443. package/UseCases/SelectItems/SelectItemsUseCase.d.ts +0 -7
  444. package/UseCases/SelectItems/SelectItemsUseCase.js +0 -13
  445. package/UseCases/SelectItems/SelectItemsUseCase.js.map +0 -1
  446. package/UseCases/SelectItems/index.d.ts +0 -2
  447. package/UseCases/SelectItems/index.js +0 -1
  448. package/UseCases/SortItems/ISortItemsUseCase.d.ts +0 -4
  449. package/UseCases/SortItems/ISortItemsUseCase.js +0 -0
  450. package/UseCases/SortItems/SortItemsUseCase.d.ts +0 -7
  451. package/UseCases/SortItems/SortItemsUseCase.js +0 -13
  452. package/UseCases/SortItems/SortItemsUseCase.js.map +0 -1
  453. package/UseCases/SortItems/index.d.ts +0 -2
  454. package/UseCases/SortItems/index.js +0 -1
  455. package/UseCases/UnSelectAllItems/IUnselectAllItemsUseCase.d.ts +0 -3
  456. package/UseCases/UnSelectAllItems/IUnselectAllItemsUseCase.js +0 -0
  457. package/UseCases/UnSelectAllItems/UnselectAllItemsUseCase.d.ts +0 -7
  458. package/UseCases/UnSelectAllItems/UnselectAllItemsUseCase.js +0 -13
  459. package/UseCases/UnSelectAllItems/UnselectAllItemsUseCase.js.map +0 -1
  460. package/UseCases/UnSelectAllItems/index.d.ts +0 -2
  461. package/UseCases/UnSelectAllItems/index.js +0 -1
  462. package/UseCases/UnpublishItem/IUnpublishItemUseCase.d.ts +0 -3
  463. package/UseCases/UnpublishItem/IUnpublishItemUseCase.js +0 -0
  464. package/UseCases/UnpublishItem/UnpublishItemUseCase.d.ts +0 -7
  465. package/UseCases/UnpublishItem/UnpublishItemUseCase.js +0 -13
  466. package/UseCases/UnpublishItem/UnpublishItemUseCase.js.map +0 -1
  467. package/UseCases/UnpublishItem/index.d.ts +0 -2
  468. package/UseCases/UnpublishItem/index.js +0 -1
  469. package/UseCases/index.d.ts +0 -11
  470. package/UseCases/index.js +0 -11
  471. /package/{Presentation → presentation}/SchedulerConfigs/SchedulerConfigs.d.ts +0 -0
  472. /package/{Presentation → presentation}/SchedulerConfigs/SchedulerConfigs.js +0 -0
  473. /package/{Presentation → presentation}/SchedulerConfigs/index.d.ts +0 -0
  474. /package/{Presentation → presentation}/SchedulerConfigs/index.js +0 -0
  475. /package/{Presentation → presentation}/components/Actions/CancelItem/CancelItem.d.ts +0 -0
  476. /package/{Presentation → presentation}/components/Actions/CancelItem/index.d.ts +0 -0
  477. /package/{Presentation → presentation}/components/Actions/CancelItem/index.js +0 -0
  478. /package/{Presentation → presentation}/components/Actions/index.d.ts +0 -0
  479. /package/{Presentation → presentation}/components/Actions/index.js +0 -0
  480. /package/{Presentation → presentation}/components/BottomInfoBar/BottomInfoBar.styled.d.ts +0 -0
  481. /package/{Presentation → presentation}/components/BottomInfoBar/BottomInfoBar.styled.js +0 -0
  482. /package/{Presentation → presentation}/components/BottomInfoBar/ListMeta.d.ts +0 -0
  483. /package/{Presentation → presentation}/components/BottomInfoBar/ListMeta.js +0 -0
  484. /package/{Presentation → presentation}/components/BottomInfoBar/ListStatus.d.ts +0 -0
  485. /package/{Presentation → presentation}/components/BottomInfoBar/ListStatus.js +0 -0
  486. /package/{Presentation → presentation}/components/Cells/CellActions/CellActions.d.ts +0 -0
  487. /package/{Presentation → presentation}/components/Cells/CellActions/CellActions.js +0 -0
  488. /package/{Presentation → presentation}/components/Cells/CellActions/index.d.ts +0 -0
  489. /package/{Presentation → presentation}/components/Cells/CellActions/index.js +0 -0
  490. /package/{Presentation → presentation}/components/Cells/CellRevision/CellRevision.d.ts +0 -0
  491. /package/{Presentation → presentation}/components/Cells/CellRevision/CellRevision.js +0 -0
  492. /package/{Presentation → presentation}/components/Cells/CellRevision/CellRevision.styled.d.ts +0 -0
  493. /package/{Presentation → presentation}/components/Cells/CellRevision/CellRevision.styled.js +0 -0
  494. /package/{Presentation → presentation}/components/Cells/CellRevision/index.d.ts +0 -0
  495. /package/{Presentation → presentation}/components/Cells/CellRevision/index.js +0 -0
  496. /package/{Presentation → presentation}/components/Cells/CellScheduledBy/CellScheduledBy.d.ts +0 -0
  497. /package/{Presentation → presentation}/components/Cells/CellScheduledBy/CellScheduledBy.js +0 -0
  498. /package/{Presentation → presentation}/components/Cells/CellScheduledBy/index.d.ts +0 -0
  499. /package/{Presentation → presentation}/components/Cells/CellScheduledBy/index.js +0 -0
  500. /package/{Presentation → presentation}/components/Cells/CellScheduledOn/CellScheduledOn.d.ts +0 -0
  501. /package/{Presentation → presentation}/components/Cells/CellScheduledOn/index.d.ts +0 -0
  502. /package/{Presentation → presentation}/components/Cells/CellScheduledOn/index.js +0 -0
  503. /package/{Presentation → presentation}/components/Cells/CellTitle/CellTitle.d.ts +0 -0
  504. /package/{Presentation → presentation}/components/Cells/CellTitle/CellTitle.js +0 -0
  505. /package/{Presentation → presentation}/components/Cells/CellTitle/CellTitle.styled.d.ts +0 -0
  506. /package/{Presentation → presentation}/components/Cells/CellTitle/CellTitle.styled.js +0 -0
  507. /package/{Presentation → presentation}/components/Cells/CellTitle/index.d.ts +0 -0
  508. /package/{Presentation → presentation}/components/Cells/CellTitle/index.js +0 -0
  509. /package/{Presentation → presentation}/components/Cells/CellType/CellActionType.d.ts +0 -0
  510. /package/{Presentation → presentation}/components/Cells/CellType/CellActionType.js +0 -0
  511. /package/{Presentation → presentation}/components/Cells/CellType/CellActionType.styled.d.ts +0 -0
  512. /package/{Presentation → presentation}/components/Cells/CellType/CellActionType.styled.js +0 -0
  513. /package/{Presentation → presentation}/components/Cells/CellType/index.d.ts +0 -0
  514. /package/{Presentation → presentation}/components/Cells/CellType/index.js +0 -0
  515. /package/{Presentation → presentation}/components/Cells/index.d.ts +0 -0
  516. /package/{Presentation → presentation}/components/Cells/index.js +0 -0
  517. /package/{Presentation → presentation}/components/Empty/Empty.styled.d.ts +0 -0
  518. /package/{Presentation → presentation}/components/Empty/Empty.styled.js +0 -0
  519. /package/{Presentation → presentation}/components/Title/Title.d.ts +0 -0
  520. /package/{Presentation → presentation}/components/Title/Title.js +0 -0
  521. /package/{Presentation → presentation}/components/Title/Title.styled.d.ts +0 -0
  522. /package/{Presentation → presentation}/components/Title/Title.styled.js +0 -0
  523. /package/{Presentation → presentation}/components/Title/index.d.ts +0 -0
  524. /package/{Presentation → presentation}/components/Title/index.js +0 -0
  525. /package/{Presentation → presentation}/configs/index.d.ts +0 -0
  526. /package/{Presentation → presentation}/configs/index.js +0 -0
  527. /package/{Presentation → presentation}/configs/list/Browser/EntryAction.js +0 -0
  528. /package/{Presentation → presentation}/configs/list/Browser/Table/Column.js +0 -0
  529. /package/{Presentation → presentation}/configs/list/Browser/Table/Sorting.d.ts +0 -0
  530. /package/{Presentation → presentation}/configs/list/Browser/Table/Sorting.js +0 -0
  531. /package/{Presentation → presentation}/configs/list/Browser/Table/index.js +0 -0
  532. /package/{Presentation → presentation}/configs/list/Browser/index.js +0 -0
  533. /package/{Presentation → presentation}/configs/list/SchedulerListConfig.js +0 -0
  534. /package/{Presentation → presentation}/configs/list/index.d.ts +0 -0
  535. /package/{Presentation → presentation}/configs/list/index.js +0 -0
  536. /package/{Presentation → presentation}/hooks/useCancelSchedulerItem.d.ts +0 -0
  537. /package/{Presentation → presentation}/hooks/useSchedulerItem.d.ts +0 -0
  538. /package/{Presentation → presentation}/hooks/useSchedulerItem.js +0 -0
@@ -1,25 +1,26 @@
1
1
  import React from "react";
2
- export declare const SchedulerListConfig: {
2
+ declare const ScopedSchedulerListConfig: {
3
3
  ({ children }: {
4
4
  children: React.ReactNode;
5
5
  }): React.JSX.Element;
6
6
  displayName: string;
7
- } & {
7
+ };
8
+ export declare const SchedulerListConfig: typeof ScopedSchedulerListConfig & {
8
9
  Browser: {
9
10
  EntryAction: ((props: import("@webiny/app-aco/config/record/Action.js").ActionProps) => React.JSX.Element) & {
10
11
  OptionsMenuItem: (props: import("@webiny/app-admin/index.js").OptionsMenuItemProps) => React.JSX.Element;
11
12
  };
12
13
  Table: {
13
- Column: ((props: import("@webiny/app-aco/config/table/Column.js").ColumnProps) => React.JSX.Element) & {
14
+ Column: ((props: import("@webiny/app-admin/config/table/Column.js").ColumnProps) => React.JSX.Element) & {
14
15
  useTableRow: {
15
- (): import("@webiny/app-aco").TableRowContextData<import("../../../types.js").SchedulerEntryTableRow>;
16
- <TUserRow>(): import("@webiny/app-aco").TableRowContextData<import("../../../types.js").SchedulerEntryTableRow & {
16
+ (): import("@webiny/app-admin/index.js").TableRowContextData<import("../../../types.js").SchedulerEntryTableRow>;
17
+ <TUserRow>(): import("@webiny/app-admin/index.js").TableRowContextData<import("../../../types.js").SchedulerEntryTableRow & {
17
18
  data: TUserRow;
18
19
  }>;
19
20
  };
20
21
  isFolderRow: (row: import("@webiny/app-aco").TableRow) => row is import("@webiny/app-aco").FolderTableRow;
21
22
  };
22
- Sorting: (props: import("@webiny/app-aco/config/table/Sorting.js").SortingProps) => React.JSX.Element;
23
+ Sorting: typeof import("./Browser/Table/Sorting.js").Sorting;
23
24
  };
24
25
  };
25
26
  };
@@ -31,3 +32,4 @@ export declare function useSchedulerListConfig(): {
31
32
  bulkActions: never[];
32
33
  };
33
34
  };
35
+ export {};
@@ -1 +1 @@
1
- {"version":3,"file":"Presentation/configs/list/SchedulerListConfig.js","sources":["../../../../src/Presentation/configs/list/SchedulerListConfig.tsx"],"sourcesContent":["import React, { useMemo } from \"react\";\nimport { createConfigurableComponent } from \"@webiny/react-properties\";\nimport type { BrowserConfig } from \"./Browser/index.js\";\nimport { Browser } from \"./Browser/index.js\";\nimport { CompositionScope } from \"@webiny/react-composition\";\nimport { useAcoConfig } from \"@webiny/app-aco\";\n\nconst base = createConfigurableComponent<SchedulerListConfig>(\"SchedulerListConfig\");\n\nconst ScopedSchedulerListConfig = ({ children }: { children: React.ReactNode }) => {\n return (\n <CompositionScope name={\"scheduler\"}>\n <base.Config>{children}</base.Config>\n </CompositionScope>\n );\n};\n\nScopedSchedulerListConfig.displayName = \"SchedulerListConfig\";\n\nexport const SchedulerListConfig = Object.assign(ScopedSchedulerListConfig, { Browser });\nexport const SchedulerListWithConfig = base.WithConfig;\n\ninterface SchedulerListConfig {\n browser: BrowserConfig;\n}\n\nexport function useSchedulerListConfig() {\n const config = base.useConfig();\n const acoConfig = useAcoConfig(config);\n\n return useMemo(\n () => ({\n browser: {\n table: acoConfig.table,\n entryActions: acoConfig.record.actions,\n bulkActions: []\n }\n }),\n [config]\n );\n}\n"],"names":["base","createConfigurableComponent","ScopedSchedulerListConfig","children","CompositionScope","SchedulerListConfig","Object","Browser","SchedulerListWithConfig","useSchedulerListConfig","config","acoConfig","useAcoConfig","useMemo"],"mappings":";;;;;AAOA,MAAMA,OAAOC,4BAAiD;AAE9D,MAAMC,4BAA4B,CAAC,EAAEC,QAAQ,EAAiC,GACnE,WAAP,GACI,oBAACC,kBAAgBA;QAAC,MAAM;qBACpB,oBAACJ,KAAK,MAAM,QAAEG;AAK1BD,0BAA0B,WAAW,GAAG;AAEjC,MAAMG,sBAAsBC,OAAO,MAAM,CAACJ,2BAA2B;IAAEK,SAAOA;AAAC;AAC/E,MAAMC,0BAA0BR,KAAK,UAAU;AAM/C,SAASS;IACZ,MAAMC,SAASV,KAAK,SAAS;IAC7B,MAAMW,YAAYC,aAAaF;IAE/B,OAAOG,QACH,IAAO;YACH,SAAS;gBACL,OAAOF,UAAU,KAAK;gBACtB,cAAcA,UAAU,MAAM,CAAC,OAAO;gBACtC,aAAa,EAAE;YACnB;QACJ,IACA;QAACD;KAAO;AAEhB"}
1
+ {"version":3,"file":"presentation/configs/list/SchedulerListConfig.js","sources":["../../../../src/presentation/configs/list/SchedulerListConfig.tsx"],"sourcesContent":["import React, { useMemo } from \"react\";\nimport { createConfigurableComponent } from \"@webiny/react-properties\";\nimport type { BrowserConfig } from \"./Browser/index.js\";\nimport { Browser } from \"./Browser/index.js\";\nimport { CompositionScope } from \"@webiny/react-composition\";\nimport { useAcoConfig } from \"@webiny/app-aco\";\n\nconst base = createConfigurableComponent<SchedulerListConfig>(\"SchedulerListConfig\");\n\nconst ScopedSchedulerListConfig = ({ children }: { children: React.ReactNode }) => {\n return (\n <CompositionScope name={\"scheduler\"}>\n <base.Config>{children}</base.Config>\n </CompositionScope>\n );\n};\n\nScopedSchedulerListConfig.displayName = \"SchedulerListConfig\";\n\nexport const SchedulerListConfig = Object.assign(ScopedSchedulerListConfig, { Browser });\nexport const SchedulerListWithConfig = base.WithConfig;\n\ninterface SchedulerListConfig {\n browser: BrowserConfig;\n}\n\nexport function useSchedulerListConfig() {\n const config = base.useConfig();\n const acoConfig = useAcoConfig(config);\n\n return useMemo(\n () => ({\n browser: {\n table: acoConfig.table,\n entryActions: acoConfig.record.actions,\n bulkActions: []\n }\n }),\n [config]\n );\n}\n"],"names":["base","createConfigurableComponent","ScopedSchedulerListConfig","children","CompositionScope","SchedulerListConfig","Object","Browser","SchedulerListWithConfig","useSchedulerListConfig","config","acoConfig","useAcoConfig","useMemo"],"mappings":";;;;;AAOA,MAAMA,OAAOC,4BAAiD;AAE9D,MAAMC,4BAA4B,CAAC,EAAEC,QAAQ,EAAiC,GACnE,WAAP,GACI,oBAACC,kBAAgBA;QAAC,MAAM;qBACpB,oBAACJ,KAAK,MAAM,QAAEG;AAK1BD,0BAA0B,WAAW,GAAG;AAEjC,MAAMG,sBAAsBC,OAAO,MAAM,CAACJ,2BAA2B;IAAEK,SAAOA;AAAC;AAC/E,MAAMC,0BAA0BR,KAAK,UAAU;AAM/C,SAASS;IACZ,MAAMC,SAASV,KAAK,SAAS;IAC7B,MAAMW,YAAYC,aAAaF;IAE/B,OAAOG,QACH,IAAO;YACH,SAAS;gBACL,OAAOF,UAAU,KAAK;gBACtB,cAAcA,UAAU,MAAM,CAAC,OAAO;gBACtC,aAAa,EAAE;YACnB;QACJ,IACA;QAACD;KAAO;AAEhB"}
@@ -1,3 +1,2 @@
1
- export * from "./useScheduler.js";
2
1
  export * from "./useSchedulerItem.js";
3
2
  export * from "./useCancelSchedulerItem.js";
@@ -1,3 +1,2 @@
1
- export * from "./useScheduler.js";
2
1
  export * from "./useSchedulerItem.js";
3
2
  export * from "./useCancelSchedulerItem.js";
@@ -1,19 +1,24 @@
1
1
  import react, { useCallback } from "react";
2
- import { useConfirmationDialog, useSnackbar } from "@webiny/app-admin";
3
- import { useScheduler } from "./useScheduler.js";
2
+ import { useConfirmationDialog } from "@webiny/app-admin";
3
+ import { useSchedulerListPresenter } from "../schedulerList/useSchedulerListPresenter.js";
4
+ import { useToast } from "@webiny/admin-ui";
4
5
  const useCancelSchedulerItem = ({ item })=>{
5
- const { cancelItem } = useScheduler();
6
- const { showSnackbar } = useSnackbar();
6
+ const presenter = useSchedulerListPresenter();
7
+ const toast = useToast();
7
8
  const { showConfirmation } = useConfirmationDialog({
8
9
  title: "Cancel scheduled action?",
9
10
  message: /*#__PURE__*/ react.createElement("p", null, "You are about to cancel scheduled action for this item!", /*#__PURE__*/ react.createElement("br", null), "Are you sure you want to cancel scheduled ", /*#__PURE__*/ react.createElement("strong", null, item.actionType), " for", " ", /*#__PURE__*/ react.createElement("strong", null, item.title), "?")
10
11
  });
11
12
  const openDialogCancelSchedulerItem = useCallback(()=>showConfirmation(async ()=>{
12
13
  try {
13
- await cancelItem(item.id);
14
- showSnackbar(`Action on item "${item.title}" was canceled successfully!`);
14
+ await presenter.cancelItem(item.id);
15
+ toast.showSuccessToast({
16
+ title: `Action on item "${item.title}" was canceled successfully!`
17
+ });
15
18
  } catch (ex) {
16
- showSnackbar(ex.message || `Error while canceling action for "${item.title}".`);
19
+ toast.showWarningToast({
20
+ title: ex.message || `Error while canceling action for "${item.title}".`
21
+ });
17
22
  }
18
23
  }), [
19
24
  item
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presentation/hooks/useCancelSchedulerItem.js","sources":["../../../src/presentation/hooks/useCancelSchedulerItem.tsx"],"sourcesContent":["import React, { useCallback } from \"react\";\nimport { useConfirmationDialog } from \"@webiny/app-admin\";\nimport type { SchedulerEntry } from \"~/types.js\";\nimport { useSchedulerListPresenter } from \"~/presentation/schedulerList/useSchedulerListPresenter.js\";\nimport { useToast } from \"@webiny/admin-ui\";\n\ninterface UseCancelScheduleItemParams {\n item: Pick<SchedulerEntry, \"id\" | \"title\" | \"actionType\">;\n}\n\nexport const useCancelSchedulerItem = ({ item }: UseCancelScheduleItemParams) => {\n const presenter = useSchedulerListPresenter();\n const toast = useToast();\n\n const { showConfirmation } = useConfirmationDialog({\n title: \"Cancel scheduled action?\",\n message: (\n <p>\n You are about to cancel scheduled action for this item!\n <br />\n Are you sure you want to cancel scheduled <strong>\n {item.actionType}\n </strong> for{\" \"}\n <strong>{item.title}</strong>?\n </p>\n )\n });\n\n const openDialogCancelSchedulerItem = useCallback(\n () =>\n showConfirmation(async () => {\n try {\n await presenter.cancelItem(item.id);\n toast.showSuccessToast({\n title: `Action on item \"${item.title}\" was canceled successfully!`\n });\n } catch (ex) {\n toast.showWarningToast({\n title: ex.message || `Error while canceling action for \"${item.title}\".`\n });\n }\n }),\n [item]\n );\n\n return { openDialogCancelSchedulerItem };\n};\n"],"names":["useCancelSchedulerItem","item","presenter","useSchedulerListPresenter","toast","useToast","showConfirmation","useConfirmationDialog","openDialogCancelSchedulerItem","useCallback","ex"],"mappings":";;;;AAUO,MAAMA,yBAAyB,CAAC,EAAEC,IAAI,EAA+B;IACxE,MAAMC,YAAYC;IAClB,MAAMC,QAAQC;IAEd,MAAM,EAAEC,gBAAgB,EAAE,GAAGC,sBAAsB;QAC/C,OAAO;QACP,SAAS,WAAT,GACI,oBAAC,WAAE,yEAEC,oBAAC,aAAK,4DACoC,oBAAC,gBACtCN,KAAK,UAAU,GACX,QAAK,mBACd,oBAAC,gBAAQA,KAAK,KAAK,GAAU;IAGzC;IAEA,MAAMO,gCAAgCC,YAClC,IACIH,iBAAiB;YACb,IAAI;gBACA,MAAMJ,UAAU,UAAU,CAACD,KAAK,EAAE;gBAClCG,MAAM,gBAAgB,CAAC;oBACnB,OAAO,CAAC,gBAAgB,EAAEH,KAAK,KAAK,CAAC,4BAA4B,CAAC;gBACtE;YACJ,EAAE,OAAOS,IAAI;gBACTN,MAAM,gBAAgB,CAAC;oBACnB,OAAOM,GAAG,OAAO,IAAI,CAAC,kCAAkC,EAAET,KAAK,KAAK,CAAC,EAAE,CAAC;gBAC5E;YACJ;QACJ,IACJ;QAACA;KAAK;IAGV,OAAO;QAAEO;IAA8B;AAC3C"}
@@ -1 +1 @@
1
- {"version":3,"file":"Presentation/hooks/useSchedulerItem.js","sources":["../../../src/Presentation/hooks/useSchedulerItem.tsx"],"sourcesContent":["import { createGenericContext } from \"@webiny/app-admin\";\nimport type { SchedulerEntry } from \"~/types.js\";\n\nexport interface SchedulerItemContext {\n item: SchedulerEntry;\n}\n\nconst { Provider, useHook } = createGenericContext<SchedulerItemContext>(\"SchedulerItemContext\");\n\nexport const useSchedulerItem = useHook;\nexport const SchedulerItemProvider = Provider;\n"],"names":["Provider","useHook","createGenericContext","useSchedulerItem","SchedulerItemProvider"],"mappings":";AAOA,MAAM,EAAEA,UAAAA,QAAQ,EAAEC,SAAAA,OAAO,EAAE,GAAGC,qBAA2C;AAElE,MAAMC,mBAAmBF;AACzB,MAAMG,wBAAwBJ"}
1
+ {"version":3,"file":"presentation/hooks/useSchedulerItem.js","sources":["../../../src/presentation/hooks/useSchedulerItem.tsx"],"sourcesContent":["import { createGenericContext } from \"@webiny/app-admin\";\nimport type { SchedulerEntry } from \"~/types.js\";\n\nexport interface SchedulerItemContext {\n item: SchedulerEntry;\n}\n\nconst { Provider, useHook } = createGenericContext<SchedulerItemContext>(\"SchedulerItemContext\");\n\nexport const useSchedulerItem = useHook;\nexport const SchedulerItemProvider = Provider;\n"],"names":["Provider","useHook","createGenericContext","useSchedulerItem","SchedulerItemProvider"],"mappings":";AAOA,MAAM,EAAEA,UAAAA,QAAQ,EAAEC,SAAAA,OAAO,EAAE,GAAGC,qBAA2C;AAElE,MAAMC,mBAAmBF;AACzB,MAAMG,wBAAwBJ"}
@@ -0,0 +1,26 @@
1
+ import { GetScheduledActionGateway } from "../../features/getScheduledAction/abstractions.js";
2
+ import { CancelScheduledActionGateway } from "../../features/cancelScheduledAction/abstractions.js";
3
+ import { SchedulePublishActionGateway } from "../../features/schedulePublishAction/abstractions.js";
4
+ import { ScheduleUnpublishActionGateway } from "../../features/scheduleUnpublishAction/abstractions.js";
5
+ import { DateFormatter } from "@webiny/app-admin";
6
+ import { type IScheduleDialogPresenter, type IScheduleDialogPresenterViewModel, type IScheduleDialogPresenterLoadParams, type IScheduleDialogPresenterScheduleParams, type IScheduleDialogPresenterCancelParams } from "./abstractions.js";
7
+ declare class ScheduleDialogPresenterImpl implements IScheduleDialogPresenter {
8
+ private readonly getGateway;
9
+ private readonly cancelGateway;
10
+ private readonly publishGateway;
11
+ private readonly unpublishGateway;
12
+ private readonly dateFormatter;
13
+ private loading;
14
+ private entry;
15
+ constructor(getGateway: GetScheduledActionGateway.Interface, cancelGateway: CancelScheduledActionGateway.Interface, publishGateway: SchedulePublishActionGateway.Interface, unpublishGateway: ScheduleUnpublishActionGateway.Interface, dateFormatter: DateFormatter.Interface);
16
+ get vm(): IScheduleDialogPresenterViewModel;
17
+ private getRescheduling;
18
+ load(params: IScheduleDialogPresenterLoadParams): Promise<void>;
19
+ schedule(params: IScheduleDialogPresenterScheduleParams): Promise<void>;
20
+ cancel(params: IScheduleDialogPresenterCancelParams): Promise<void>;
21
+ reset(): void;
22
+ }
23
+ export declare const ScheduleDialogPresenter: typeof ScheduleDialogPresenterImpl & {
24
+ __abstraction: import("@webiny/di").Abstraction<IScheduleDialogPresenter>;
25
+ };
26
+ export {};
@@ -1,19 +1,38 @@
1
1
  import { makeAutoObservable, runInAction } from "mobx";
2
- import { ScheduleActionType } from "../../../types.js";
3
- class ScheduleDialogPresenter {
4
- constructor(params){
2
+ import { GetScheduledActionGateway } from "../../features/getScheduledAction/abstractions.js";
3
+ import { CancelScheduledActionGateway } from "../../features/cancelScheduledAction/abstractions.js";
4
+ import { SchedulePublishActionGateway } from "../../features/schedulePublishAction/abstractions.js";
5
+ import { ScheduleUnpublishActionGateway } from "../../features/scheduleUnpublishAction/abstractions.js";
6
+ import { ScheduleActionType } from "../../types.js";
7
+ import { DateFormatter } from "@webiny/app-admin";
8
+ import { ScheduleDialogPresenter } from "./abstractions.js";
9
+ class ScheduleDialogPresenterImpl {
10
+ constructor(getGateway, cancelGateway, publishGateway, unpublishGateway, dateFormatter){
11
+ this.getGateway = getGateway;
12
+ this.cancelGateway = cancelGateway;
13
+ this.publishGateway = publishGateway;
14
+ this.unpublishGateway = unpublishGateway;
15
+ this.dateFormatter = dateFormatter;
5
16
  this.loading = false;
6
17
  this.entry = null;
7
- this.getGateway = params.getGateway;
8
- this.cancelGateway = params.cancelGateway;
9
- this.publishGateway = params.publishGateway;
10
- this.unpublishGateway = params.unpublishGateway;
11
18
  makeAutoObservable(this);
12
19
  }
13
20
  get vm() {
14
21
  return {
15
22
  loading: this.loading,
16
- entry: this.entry
23
+ entry: this.entry,
24
+ rescheduling: this.getRescheduling()
25
+ };
26
+ }
27
+ getRescheduling() {
28
+ const entry = this.entry;
29
+ if (!entry) return null;
30
+ const scheduleOn = entry.publishOn || entry.unpublishOn;
31
+ if (!scheduleOn) return null;
32
+ const actionName = entry.actionType === ScheduleActionType.publish ? "publish" : "unpublish";
33
+ return {
34
+ actionName,
35
+ scheduleOn: this.dateFormatter.format(scheduleOn)
17
36
  };
18
37
  }
19
38
  async load(params) {
@@ -81,6 +100,16 @@ class ScheduleDialogPresenter {
81
100
  this.loading = false;
82
101
  }
83
102
  }
84
- export { ScheduleDialogPresenter };
103
+ const ScheduleDialogPresenter_ScheduleDialogPresenter = ScheduleDialogPresenter.createImplementation({
104
+ implementation: ScheduleDialogPresenterImpl,
105
+ dependencies: [
106
+ GetScheduledActionGateway,
107
+ CancelScheduledActionGateway,
108
+ SchedulePublishActionGateway,
109
+ ScheduleUnpublishActionGateway,
110
+ DateFormatter
111
+ ]
112
+ });
113
+ export { ScheduleDialogPresenter_ScheduleDialogPresenter as ScheduleDialogPresenter };
85
114
 
86
115
  //# sourceMappingURL=ScheduleDialogPresenter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presentation/scheduleDialog/ScheduleDialogPresenter.js","sources":["../../../src/presentation/scheduleDialog/ScheduleDialogPresenter.ts"],"sourcesContent":["import { makeAutoObservable, runInAction } from \"mobx\";\nimport { GetScheduledActionGateway } from \"~/features/getScheduledAction/abstractions.js\";\nimport { CancelScheduledActionGateway } from \"~/features/cancelScheduledAction/abstractions.js\";\nimport { SchedulePublishActionGateway } from \"~/features/schedulePublishAction/abstractions.js\";\nimport { ScheduleUnpublishActionGateway } from \"~/features/scheduleUnpublishAction/abstractions.js\";\nimport { ScheduleActionType } from \"~/types.js\";\nimport type { SchedulerEntry } from \"~/types.js\";\nimport { DateFormatter } from \"@webiny/app-admin\";\nimport {\n ScheduleDialogPresenter as Abstraction,\n type IScheduleDialogPresenter,\n type IScheduleDialogPresenterViewModel,\n type IScheduleDialogRescheduling,\n type IScheduleDialogPresenterLoadParams,\n type IScheduleDialogPresenterScheduleParams,\n type IScheduleDialogPresenterCancelParams\n} from \"./abstractions.js\";\n\nclass ScheduleDialogPresenterImpl implements IScheduleDialogPresenter {\n private loading = false;\n private entry: SchedulerEntry | null = null;\n\n constructor(\n private readonly getGateway: GetScheduledActionGateway.Interface,\n private readonly cancelGateway: CancelScheduledActionGateway.Interface,\n private readonly publishGateway: SchedulePublishActionGateway.Interface,\n private readonly unpublishGateway: ScheduleUnpublishActionGateway.Interface,\n private readonly dateFormatter: DateFormatter.Interface\n ) {\n makeAutoObservable(this);\n }\n\n get vm(): IScheduleDialogPresenterViewModel {\n return {\n loading: this.loading,\n entry: this.entry,\n rescheduling: this.getRescheduling()\n };\n }\n\n private getRescheduling(): IScheduleDialogRescheduling | null {\n const entry = this.entry;\n if (!entry) {\n return null;\n }\n const scheduleOn = entry.publishOn || entry.unpublishOn;\n if (!scheduleOn) {\n return null;\n }\n const actionName =\n entry.actionType === ScheduleActionType.publish ? \"publish\" : \"unpublish\";\n return { actionName, scheduleOn: this.dateFormatter.format(scheduleOn) };\n }\n\n 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 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 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 reset(): void {\n this.entry = null;\n this.loading = false;\n }\n}\n\nexport const ScheduleDialogPresenter = Abstraction.createImplementation({\n implementation: ScheduleDialogPresenterImpl,\n dependencies: [\n GetScheduledActionGateway,\n CancelScheduledActionGateway,\n SchedulePublishActionGateway,\n ScheduleUnpublishActionGateway,\n DateFormatter\n ]\n});\n"],"names":["ScheduleDialogPresenterImpl","getGateway","cancelGateway","publishGateway","unpublishGateway","dateFormatter","makeAutoObservable","entry","scheduleOn","actionName","ScheduleActionType","params","runInAction","targetId","namespace","actionType","Error","ScheduleDialogPresenter","Abstraction","GetScheduledActionGateway","CancelScheduledActionGateway","SchedulePublishActionGateway","ScheduleUnpublishActionGateway","DateFormatter"],"mappings":";;;;;;;;AAkBA,MAAMA;IAIF,YACqBC,UAA+C,EAC/CC,aAAqD,EACrDC,cAAsD,EACtDC,gBAA0D,EAC1DC,aAAsC,CACzD;aALmBJ,UAAU,GAAVA;aACAC,aAAa,GAAbA;aACAC,cAAc,GAAdA;aACAC,gBAAgB,GAAhBA;aACAC,aAAa,GAAbA;aARb,OAAO,GAAG;aACV,KAAK,GAA0B;QASnCC,mBAAmB,IAAI;IAC3B;IAEA,IAAI,KAAwC;QACxC,OAAO;YACH,SAAS,IAAI,CAAC,OAAO;YACrB,OAAO,IAAI,CAAC,KAAK;YACjB,cAAc,IAAI,CAAC,eAAe;QACtC;IACJ;IAEQ,kBAAsD;QAC1D,MAAMC,QAAQ,IAAI,CAAC,KAAK;QACxB,IAAI,CAACA,OACD,OAAO;QAEX,MAAMC,aAAaD,MAAM,SAAS,IAAIA,MAAM,WAAW;QACvD,IAAI,CAACC,YACD,OAAO;QAEX,MAAMC,aACFF,MAAM,UAAU,KAAKG,mBAAmB,OAAO,GAAG,YAAY;QAClE,OAAO;YAAED;YAAY,YAAY,IAAI,CAAC,aAAa,CAAC,MAAM,CAACD;QAAY;IAC3E;IAEA,MAAM,KAAKG,MAA0C,EAAiB;QAClE,IAAI,CAAC,OAAO,GAAG;QAEf,IAAI;YACA,MAAMJ,QAAQ,MAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAACI;YAC5CC,YAAY;gBACR,IAAI,CAAC,KAAK,GAAGL;gBACb,IAAI,CAAC,OAAO,GAAG;YACnB;QACJ,EAAE,OAAM;YACJK,YAAY;gBACR,IAAI,CAAC,OAAO,GAAG;YACnB;QACJ;IACJ;IAEA,MAAM,SAASD,MAA8C,EAAiB;QAC1E,MAAM,EAAEE,QAAQ,EAAEC,SAAS,EAAEN,UAAU,EAAEO,UAAU,EAAE,GAAGJ;QACxD,IAAI,CAAC,OAAO,GAAG;QAEf,IAAI;YACA,OAAQI;gBACJ,KAAKL,mBAAmB,OAAO;oBAC3B,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC;wBAAEI;wBAAWD;wBAAUL;oBAAW;oBACpE;gBACJ,KAAKE,mBAAmB,SAAS;oBAC7B,MAAM,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC;wBAAEI;wBAAWD;wBAAUL;oBAAW;oBACtE;gBACJ;oBACI,MAAM,IAAIQ,MAAM,CAAC,yBAAyB,EAAED,WAAW,EAAE,CAAC;YAClE;YACAH,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,MAAM,OAAOD,MAA4C,EAAiB;QACtE,IAAI,CAAC,OAAO,GAAG;QAEf,IAAI;YACA,MAAM,IAAI,CAAC,aAAa,CAAC,OAAO,CAACA;YACjCC,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,QAAc;QACV,IAAI,CAAC,KAAK,GAAG;QACb,IAAI,CAAC,OAAO,GAAG;IACnB;AACJ;AAEO,MAAMK,kDAA0BC,wBAAAA,oBAAgC,CAAC;IACpE,gBAAgBlB;IAChB,cAAc;QACVmB;QACAC;QACAC;QACAC;QACAC;KACH;AACL"}
@@ -1,7 +1,12 @@
1
- import type { ScheduleActionType, SchedulerEntry } from "../../../types.js";
1
+ import type { ScheduleActionType, SchedulerEntry } from "../../types.js";
2
+ export interface IScheduleDialogRescheduling {
3
+ actionName: string;
4
+ scheduleOn: string;
5
+ }
2
6
  export interface IScheduleDialogPresenterViewModel {
3
7
  loading: boolean;
4
8
  entry: SchedulerEntry | null;
9
+ rescheduling: IScheduleDialogRescheduling | null;
5
10
  }
6
11
  export interface IScheduleDialogPresenterLoadParams {
7
12
  namespace: string;
@@ -24,3 +29,7 @@ export interface IScheduleDialogPresenter {
24
29
  cancel(params: IScheduleDialogPresenterCancelParams): Promise<void>;
25
30
  reset(): void;
26
31
  }
32
+ export declare const ScheduleDialogPresenter: import("@webiny/di").Abstraction<IScheduleDialogPresenter>;
33
+ export declare namespace ScheduleDialogPresenter {
34
+ type Interface = IScheduleDialogPresenter;
35
+ }
@@ -0,0 +1,5 @@
1
+ import { createAbstraction } from "@webiny/feature/admin";
2
+ const ScheduleDialogPresenter = createAbstraction("Scheduler/ScheduleDialogPresenter");
3
+ export { ScheduleDialogPresenter };
4
+
5
+ //# sourceMappingURL=abstractions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presentation/scheduleDialog/abstractions.js","sources":["../../../src/presentation/scheduleDialog/abstractions.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/admin\";\nimport type { ScheduleActionType, SchedulerEntry } from \"~/types.js\";\n\nexport interface IScheduleDialogRescheduling {\n actionName: string;\n scheduleOn: string;\n}\n\nexport interface IScheduleDialogPresenterViewModel {\n loading: boolean;\n entry: SchedulerEntry | null;\n rescheduling: IScheduleDialogRescheduling | null;\n}\n\nexport interface IScheduleDialogPresenterLoadParams {\n namespace: string;\n id: string;\n}\n\nexport interface IScheduleDialogPresenterScheduleParams {\n targetId: string;\n namespace: string;\n scheduleOn: Date;\n actionType: ScheduleActionType;\n}\n\nexport interface IScheduleDialogPresenterCancelParams {\n id: string;\n namespace: string;\n}\n\nexport interface IScheduleDialogPresenter {\n get vm(): IScheduleDialogPresenterViewModel;\n load(params: IScheduleDialogPresenterLoadParams): Promise<void>;\n schedule(params: IScheduleDialogPresenterScheduleParams): Promise<void>;\n cancel(params: IScheduleDialogPresenterCancelParams): Promise<void>;\n reset(): void;\n}\n\nexport const ScheduleDialogPresenter = createAbstraction<IScheduleDialogPresenter>(\n \"Scheduler/ScheduleDialogPresenter\"\n);\n\nexport namespace ScheduleDialogPresenter {\n export type Interface = IScheduleDialogPresenter;\n}\n"],"names":["ScheduleDialogPresenter","createAbstraction"],"mappings":";AAuCO,MAAMA,0BAA0BC,kBACnC"}
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import type { IScheduleDialogPresenter } from "../abstractions.js";
3
+ interface ICancelButtonComponentProps {
4
+ presenter: IScheduleDialogPresenter;
5
+ onCancel: () => Promise<void>;
6
+ }
7
+ export declare const CancelButtonComponent: (({ presenter, onCancel }: ICancelButtonComponentProps) => React.JSX.Element | null) & React.NamedExoticComponent<ICancelButtonComponentProps> & {
8
+ readonly type: ({ presenter, onCancel }: ICancelButtonComponentProps) => React.JSX.Element | null;
9
+ };
10
+ export {};
@@ -0,0 +1,20 @@
1
+ import react from "react";
2
+ import { observer } from "mobx-react-lite";
3
+ import { Button } from "@webiny/admin-ui";
4
+ import { ReactComponent } from "@webiny/icons/delete.svg";
5
+ const CancelButtonComponent = observer(({ presenter, onCancel })=>{
6
+ const { entry } = presenter.vm;
7
+ const scheduleOn = entry?.publishOn || entry?.unpublishOn;
8
+ if (!scheduleOn) return null;
9
+ return /*#__PURE__*/ react.createElement(Button, {
10
+ variant: "ghost",
11
+ onClick: onCancel,
12
+ text: "Cancel Schedule",
13
+ size: "md",
14
+ icon: /*#__PURE__*/ react.createElement(ReactComponent, null),
15
+ iconPosition: "start"
16
+ });
17
+ });
18
+ export { CancelButtonComponent };
19
+
20
+ //# sourceMappingURL=CancelButtonComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presentation/scheduleDialog/components/CancelButtonComponent.js","sources":["../../../../src/presentation/scheduleDialog/components/CancelButtonComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { observer } from \"mobx-react-lite\";\nimport { Button } from \"@webiny/admin-ui\";\nimport { ReactComponent as DeleteIcon } from \"@webiny/icons/delete.svg\";\nimport type { IScheduleDialogPresenter } from \"../abstractions.js\";\n\ninterface ICancelButtonComponentProps {\n presenter: IScheduleDialogPresenter;\n onCancel: () => Promise<void>;\n}\n\nexport const CancelButtonComponent = observer(\n ({ presenter, onCancel }: ICancelButtonComponentProps) => {\n const { entry } = presenter.vm;\n const scheduleOn = entry?.publishOn || entry?.unpublishOn;\n\n if (!scheduleOn) {\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);\n"],"names":["CancelButtonComponent","observer","presenter","onCancel","entry","scheduleOn","Button","DeleteIcon"],"mappings":";;;;AAWO,MAAMA,wBAAwBC,SACjC,CAAC,EAAEC,SAAS,EAAEC,QAAQ,EAA+B;IACjD,MAAM,EAAEC,KAAK,EAAE,GAAGF,UAAU,EAAE;IAC9B,MAAMG,aAAaD,OAAO,aAAaA,OAAO;IAE9C,IAAI,CAACC,YACD,OAAO;IAEX,OAAO,WAAP,GACI,oBAACC,QAAMA;QACH,SAAQ;QACR,SAASH;QACT,MAAM;QACN,MAAK;QACL,oBAAM,oBAACI,gBAAUA;QACjB,cAAa;;AAGzB"}
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import type { IScheduleDialogPresenter } from "../abstractions.js";
3
+ interface FormComponentProps {
4
+ presenter: IScheduleDialogPresenter;
5
+ }
6
+ export declare const FormComponent: (({ presenter }: FormComponentProps) => React.JSX.Element) & React.NamedExoticComponent<FormComponentProps> & {
7
+ readonly type: ({ presenter }: FormComponentProps) => React.JSX.Element;
8
+ };
9
+ export {};
@@ -0,0 +1,32 @@
1
+ import react, { useMemo } from "react";
2
+ import { observer } from "mobx-react-lite";
3
+ import { Grid } from "@webiny/admin-ui";
4
+ import { Bind } from "@webiny/form";
5
+ import { validation } from "@webiny/validation";
6
+ import { createMinDateValidator } from "../createMinDateValidator.js";
7
+ import { useDateFormatter } from "@webiny/app-admin";
8
+ import { ReschedulingAlert } from "./ReschedulingAlert.js";
9
+ import { SchedulerDialogFormComponentDateTimeInput } from "./SchedulerDialogFormComponentDateTimeInput.js";
10
+ const FormComponent = observer(({ presenter })=>{
11
+ const { rescheduling } = presenter.vm;
12
+ const dateFormatter = useDateFormatter();
13
+ const minDateValidator = useMemo(()=>createMinDateValidator(dateFormatter), [
14
+ dateFormatter
15
+ ]);
16
+ return /*#__PURE__*/ react.createElement(react.Fragment, null, /*#__PURE__*/ react.createElement(ReschedulingAlert, {
17
+ rescheduling: rescheduling
18
+ }), /*#__PURE__*/ react.createElement(Grid, null, /*#__PURE__*/ react.createElement(Grid.Column, {
19
+ span: 12
20
+ }, /*#__PURE__*/ react.createElement(Bind, {
21
+ name: "scheduleOn",
22
+ validators: [
23
+ validation.create("required"),
24
+ minDateValidator
25
+ ]
26
+ }, (bind)=>/*#__PURE__*/ react.createElement(SchedulerDialogFormComponentDateTimeInput, {
27
+ bind: bind
28
+ })))));
29
+ });
30
+ export { FormComponent };
31
+
32
+ //# sourceMappingURL=FormComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presentation/scheduleDialog/components/FormComponent.js","sources":["../../../../src/presentation/scheduleDialog/components/FormComponent.tsx"],"sourcesContent":["import React, { useMemo } from \"react\";\nimport { observer } from \"mobx-react-lite\";\nimport { Grid } from \"@webiny/admin-ui\";\nimport { Bind } from \"@webiny/form\";\nimport { validation } from \"@webiny/validation\";\nimport type { IScheduleDialogPresenter } from \"../abstractions.js\";\nimport { createMinDateValidator } from \"../createMinDateValidator.js\";\nimport { useDateFormatter } from \"@webiny/app-admin\";\nimport { ReschedulingAlert } from \"./ReschedulingAlert.js\";\nimport { SchedulerDialogFormComponentDateTimeInput } from \"./SchedulerDialogFormComponentDateTimeInput.js\";\n\ninterface FormComponentProps {\n presenter: IScheduleDialogPresenter;\n}\n\nexport const FormComponent = observer(({ presenter }: FormComponentProps) => {\n const { rescheduling } = presenter.vm;\n const dateFormatter = useDateFormatter();\n const minDateValidator = useMemo(() => createMinDateValidator(dateFormatter), [dateFormatter]);\n\n return (\n <>\n <ReschedulingAlert rescheduling={rescheduling} />\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"],"names":["FormComponent","observer","presenter","rescheduling","dateFormatter","useDateFormatter","minDateValidator","useMemo","createMinDateValidator","ReschedulingAlert","Grid","Bind","validation","bind","SchedulerDialogFormComponentDateTimeInput"],"mappings":";;;;;;;;;AAeO,MAAMA,gBAAgBC,SAAS,CAAC,EAAEC,SAAS,EAAsB;IACpE,MAAM,EAAEC,YAAY,EAAE,GAAGD,UAAU,EAAE;IACrC,MAAME,gBAAgBC;IACtB,MAAMC,mBAAmBC,QAAQ,IAAMC,uBAAuBJ,gBAAgB;QAACA;KAAc;IAE7F,OAAO,WAAP,GACI,wDACI,oBAACK,mBAAiBA;QAAC,cAAcN;sBACjC,oBAACO,MAAIA,MAAAA,WAAAA,GACD,oBAACA,KAAK,MAAM;QAAC,MAAM;qBACf,oBAACC,MAAIA;QACD,MAAM;QACN,YAAY;YAACC,WAAW,MAAM,CAAC;YAAaN;SAAiB;OAE5DO,CAAAA,OACU,WAAP,GAAO,oBAACC,2CAAyCA;YAAC,MAAMD;;AAOpF"}
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import type { IScheduleDialogRescheduling } from "../abstractions.js";
3
+ interface IReschedulingAlertProps {
4
+ rescheduling: IScheduleDialogRescheduling | null;
5
+ }
6
+ export declare const ReschedulingAlert: ({ rescheduling }: IReschedulingAlertProps) => React.JSX.Element | null;
7
+ export {};
@@ -0,0 +1,14 @@
1
+ import react from "react";
2
+ import { Alert } from "@webiny/admin-ui";
3
+ import { ReactComponent } from "@webiny/icons/access_time.svg";
4
+ const ReschedulingAlert = ({ rescheduling })=>{
5
+ if (!rescheduling) return null;
6
+ return /*#__PURE__*/ react.createElement(Alert, {
7
+ type: "warning",
8
+ variant: "subtle",
9
+ icon: /*#__PURE__*/ react.createElement(ReactComponent, null)
10
+ }, /*#__PURE__*/ react.createElement(react.Fragment, null, "A ", rescheduling.actionName, " is already scheduled at", /*#__PURE__*/ react.createElement("br", null), /*#__PURE__*/ react.createElement("strong", null, rescheduling.scheduleOn), "."));
11
+ };
12
+ export { ReschedulingAlert };
13
+
14
+ //# sourceMappingURL=ReschedulingAlert.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presentation/scheduleDialog/components/ReschedulingAlert.js","sources":["../../../../src/presentation/scheduleDialog/components/ReschedulingAlert.tsx"],"sourcesContent":["import React from \"react\";\nimport { Alert } from \"@webiny/admin-ui\";\nimport { ReactComponent as ScheduledIcon } from \"@webiny/icons/access_time.svg\";\nimport type { IScheduleDialogRescheduling } from \"../abstractions.js\";\n\ninterface IReschedulingAlertProps {\n rescheduling: IScheduleDialogRescheduling | null;\n}\n\nexport const ReschedulingAlert = ({ rescheduling }: IReschedulingAlertProps) => {\n if (!rescheduling) {\n return null;\n }\n return (\n <Alert type={\"warning\"} variant={\"subtle\"} icon={<ScheduledIcon />}>\n <>\n A {rescheduling.actionName} is already scheduled at\n <br />\n <strong>{rescheduling.scheduleOn}</strong>.\n </>\n </Alert>\n );\n};\n"],"names":["ReschedulingAlert","rescheduling","Alert","ScheduledIcon"],"mappings":";;;AASO,MAAMA,oBAAoB,CAAC,EAAEC,YAAY,EAA2B;IACvE,IAAI,CAACA,cACD,OAAO;IAEX,OAAO,WAAP,GACI,oBAACC,OAAKA;QAAC,MAAM;QAAW,SAAS;QAAU,oBAAM,oBAACC,gBAAaA;qBAC3D,0CAAE,MACKF,aAAa,UAAU,EAAC,0CAC3B,oBAAC,2BACD,oBAAC,gBAAQA,aAAa,UAAU,GAAU;AAI1D"}
@@ -1,15 +1,5 @@
1
1
  import React from "react";
2
- import { type BindComponentRenderProp } from "@webiny/form";
3
- import ApolloClient from "apollo-client/ApolloClient.js";
4
- export type ShowDialogParamsEntryStatus = "published" | "unpublished" | "draft" | string;
5
- export interface IShowDialogParamsEntry {
6
- id: string;
7
- status: ShowDialogParamsEntryStatus;
8
- title: string;
9
- }
10
- interface UseShowScheduleDialogResponse {
11
- showDialog: () => void;
12
- }
2
+ import type { BindComponentRenderProp } from "@webiny/form";
13
3
  export interface ISchedulerDialogFormComponentDateTimeInputProps {
14
4
  bind: BindComponentRenderProp<Date>;
15
5
  }
@@ -32,10 +22,3 @@ export declare const SchedulerDialogFormComponentDateTimeInput: ((props: ISchedu
32
22
  displayName: string;
33
23
  }>) => (props: unknown) => React.JSX.Element;
34
24
  };
35
- export interface IUseScheduleDialogProps {
36
- client: ApolloClient<object>;
37
- namespace: string;
38
- target: IShowDialogParamsEntry;
39
- }
40
- export declare const useScheduleDialog: (props: IUseScheduleDialogProps) => UseShowScheduleDialogResponse;
41
- export {};
@@ -0,0 +1,15 @@
1
+ import react from "react";
2
+ import { DatePicker } from "@webiny/admin-ui";
3
+ import { makeDecoratable } from "@webiny/react-composition";
4
+ const SchedulerDialogFormComponentDateTimeInput = makeDecoratable("SchedulerDialogFormComponentDateTimeInput", (props)=>{
5
+ const { bind } = props;
6
+ return /*#__PURE__*/ react.createElement(DatePicker, {
7
+ ...bind,
8
+ type: "dateTimeLocal",
9
+ label: "Schedule On",
10
+ size: "lg"
11
+ });
12
+ });
13
+ export { SchedulerDialogFormComponentDateTimeInput };
14
+
15
+ //# sourceMappingURL=SchedulerDialogFormComponentDateTimeInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presentation/scheduleDialog/components/SchedulerDialogFormComponentDateTimeInput.js","sources":["../../../../src/presentation/scheduleDialog/components/SchedulerDialogFormComponentDateTimeInput.tsx"],"sourcesContent":["import React from \"react\";\nimport { DatePicker } from \"@webiny/admin-ui\";\nimport { makeDecoratable } from \"@webiny/react-composition\";\nimport type { BindComponentRenderProp } from \"@webiny/form\";\n\nexport interface ISchedulerDialogFormComponentDateTimeInputProps {\n bind: BindComponentRenderProp<Date>;\n}\n\nexport const SchedulerDialogFormComponentDateTimeInput = makeDecoratable(\n \"SchedulerDialogFormComponentDateTimeInput\",\n (props: ISchedulerDialogFormComponentDateTimeInputProps) => {\n const { bind } = props;\n\n return <DatePicker {...bind} type={\"dateTimeLocal\"} label={\"Schedule On\"} size={\"lg\"} />;\n }\n);\n"],"names":["SchedulerDialogFormComponentDateTimeInput","makeDecoratable","props","bind","DatePicker"],"mappings":";;;AASO,MAAMA,4CAA4CC,gBACrD,6CACA,CAACC;IACG,MAAM,EAAEC,IAAI,EAAE,GAAGD;IAEjB,OAAO,WAAP,GAAO,oBAACE,YAAUA;QAAE,GAAGD,IAAI;QAAE,MAAM;QAAiB,OAAO;QAAe,MAAM;;AACpF"}
@@ -0,0 +1,7 @@
1
+ import type { Validator } from "@webiny/validation/types.js";
2
+ import type { DateFormatter } from "@webiny/app-admin";
3
+ /**
4
+ * Builds a validator that requires the scheduled date to be at least 2 minutes in the future. The
5
+ * formatter is injected so the error message's date matches the format used everywhere else.
6
+ */
7
+ export declare const createMinDateValidator: (dateFormatter: DateFormatter.Interface) => Validator;
@@ -0,0 +1,14 @@
1
+ import validationError from "@webiny/validation/validationError.js";
2
+ const createMinDateValidator = (dateFormatter)=>{
3
+ const minDateValidator = (input)=>{
4
+ const value = new Date(input);
5
+ const minDate = new Date(new Date().getTime() + 120000);
6
+ if (minDate < value) return;
7
+ throw new validationError(`The date must be at least 2 minutes in the future. Current minimum date is ${dateFormatter.format(minDate)}.`);
8
+ };
9
+ minDateValidator.validatorName = "minDateValidator";
10
+ return minDateValidator;
11
+ };
12
+ export { createMinDateValidator };
13
+
14
+ //# sourceMappingURL=createMinDateValidator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presentation/scheduleDialog/createMinDateValidator.js","sources":["../../../src/presentation/scheduleDialog/createMinDateValidator.ts"],"sourcesContent":["import type { Validator } from \"@webiny/validation/types.js\";\nimport ValidationError from \"@webiny/validation/validationError.js\";\nimport type { DateFormatter } from \"@webiny/app-admin\";\n\n/**\n * Builds a validator that requires the scheduled date to be at least 2 minutes in the future. The\n * formatter is injected so the error message's date matches the format used everywhere else.\n */\nexport const createMinDateValidator = (dateFormatter: DateFormatter.Interface): Validator => {\n const 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 ${dateFormatter.format(\n minDate\n )}.`\n );\n };\n\n minDateValidator.validatorName = \"minDateValidator\";\n\n return minDateValidator;\n};\n"],"names":["createMinDateValidator","dateFormatter","minDateValidator","input","value","Date","minDate","ValidationError"],"mappings":";AAQO,MAAMA,yBAAyB,CAACC;IACnC,MAAMC,mBAA8B,CAACC;QACjC,MAAMC,QAAQ,IAAIC,KAAKF;QACvB,MAAMG,UAAU,IAAID,KAAK,IAAIA,OAAO,OAAO,KAAK;QAChD,IAAIC,UAAUF,OACV;QAEJ,MAAM,IAAIG,gBACN,CAAC,2EAA2E,EAAEN,cAAc,MAAM,CAC9FK,SACF,CAAC,CAAC;IAEZ;IAEAJ,iBAAiB,aAAa,GAAG;IAEjC,OAAOA;AACX"}
@@ -0,0 +1,3 @@
1
+ export declare const ScheduleDialogPresenterFeature: import("@webiny/feature/admin").FeatureDefinition<{
2
+ presenter: import("./abstractions.js").IScheduleDialogPresenter;
3
+ }, []>;
@@ -0,0 +1,17 @@
1
+ import { createFeature } from "@webiny/feature/admin";
2
+ import { ScheduleDialogPresenter } from "./abstractions.js";
3
+ import { ScheduleDialogPresenter as external_ScheduleDialogPresenter_js_ScheduleDialogPresenter } from "./ScheduleDialogPresenter.js";
4
+ const ScheduleDialogPresenterFeature = createFeature({
5
+ name: "Scheduler/ScheduleDialogPresenter",
6
+ register (container) {
7
+ container.register(external_ScheduleDialogPresenter_js_ScheduleDialogPresenter);
8
+ },
9
+ resolve (container) {
10
+ return {
11
+ presenter: container.resolve(ScheduleDialogPresenter)
12
+ };
13
+ }
14
+ });
15
+ export { ScheduleDialogPresenterFeature };
16
+
17
+ //# sourceMappingURL=feature.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presentation/scheduleDialog/feature.js","sources":["../../../src/presentation/scheduleDialog/feature.ts"],"sourcesContent":["import { createFeature } from \"@webiny/feature/admin\";\nimport { ScheduleDialogPresenter as PresenterAbstraction } from \"./abstractions.js\";\nimport { ScheduleDialogPresenter } from \"./ScheduleDialogPresenter.js\";\n\nexport const ScheduleDialogPresenterFeature = createFeature({\n name: \"Scheduler/ScheduleDialogPresenter\",\n register(container) {\n container.register(ScheduleDialogPresenter);\n },\n resolve(container) {\n return { presenter: container.resolve(PresenterAbstraction) };\n }\n});\n"],"names":["ScheduleDialogPresenterFeature","createFeature","container","ScheduleDialogPresenter","PresenterAbstraction"],"mappings":";;;AAIO,MAAMA,iCAAiCC,cAAc;IACxD,MAAM;IACN,UAASC,SAAS;QACdA,UAAU,QAAQ,CAACC;IACvB;IACA,SAAQD,SAAS;QACb,OAAO;YAAE,WAAWA,UAAU,OAAO,CAACE;QAAsB;IAChE;AACJ"}
@@ -0,0 +1,20 @@
1
+ export type ShowDialogParamsEntryStatus = "published" | "unpublished" | "draft" | string;
2
+ export interface IShowDialogParamsEntry {
3
+ id: string;
4
+ status: ShowDialogParamsEntryStatus;
5
+ title: string;
6
+ }
7
+ interface UseShowScheduleDialogResponse {
8
+ showDialog: () => void;
9
+ }
10
+ export interface IUseScheduleDialogProps {
11
+ namespace: string;
12
+ target: IShowDialogParamsEntry;
13
+ /**
14
+ * Called after a scheduled action is successfully created/updated or cancelled. Use it to
15
+ * refresh anything that displays the scheduled state (e.g. list cells, form banners).
16
+ */
17
+ onCompleted?: () => void;
18
+ }
19
+ export declare const useScheduleDialog: (props: IUseScheduleDialogProps) => UseShowScheduleDialogResponse;
20
+ export {};