@webiny/app-headless-cms-scheduler 6.0.0-alpha.4 → 6.0.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (338) hide show
  1. package/Domain/Models/SchedulerItem/SchedulerItem.d.ts +2 -2
  2. package/Domain/Models/SchedulerItem/SchedulerItem.js.map +1 -1
  3. package/Domain/Models/SchedulerItem/index.d.ts +1 -1
  4. package/Domain/Models/SchedulerItem/index.js +1 -1
  5. package/Domain/Models/SchedulerItem/index.js.map +1 -1
  6. package/Domain/Models/index.d.ts +1 -1
  7. package/Domain/Models/index.js +1 -1
  8. package/Domain/Models/index.js.map +1 -1
  9. package/Domain/Repositories/SchedulerItems/ISchedulerItemsRepository.d.ts +1 -1
  10. package/Domain/Repositories/SchedulerItems/ISchedulerItemsRepository.js.map +1 -1
  11. package/Domain/Repositories/SchedulerItems/SchedulerItemsRepository.d.ts +4 -4
  12. package/Domain/Repositories/SchedulerItems/SchedulerItemsRepository.js +1 -1
  13. package/Domain/Repositories/SchedulerItems/SchedulerItemsRepository.js.map +1 -1
  14. package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryFactory.d.ts +3 -3
  15. package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryFactory.js +1 -1
  16. package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryFactory.js.map +1 -1
  17. package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryWithLoading.d.ts +2 -2
  18. package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryWithLoading.js +1 -1
  19. package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryWithLoading.js.map +1 -1
  20. package/Domain/Repositories/SchedulerItems/index.d.ts +4 -4
  21. package/Domain/Repositories/SchedulerItems/index.js +3 -4
  22. package/Domain/Repositories/SchedulerItems/index.js.map +1 -1
  23. package/Domain/Repositories/Search/SearchRepository.d.ts +1 -1
  24. package/Domain/Repositories/Search/SearchRepository.js.map +1 -1
  25. package/Domain/Repositories/Search/SearchRepositoryFactory.d.ts +1 -1
  26. package/Domain/Repositories/Search/SearchRepositoryFactory.js +1 -1
  27. package/Domain/Repositories/Search/SearchRepositoryFactory.js.map +1 -1
  28. package/Domain/Repositories/Search/index.d.ts +3 -3
  29. package/Domain/Repositories/Search/index.js +2 -3
  30. package/Domain/Repositories/Search/index.js.map +1 -1
  31. package/Domain/Repositories/SelectedItems/ISelectedItemsRepository.d.ts +1 -1
  32. package/Domain/Repositories/SelectedItems/ISelectedItemsRepository.js.map +1 -1
  33. package/Domain/Repositories/SelectedItems/SelectedItemsRepository.d.ts +2 -2
  34. package/Domain/Repositories/SelectedItems/SelectedItemsRepository.js.map +1 -1
  35. package/Domain/Repositories/SelectedItems/SelectedItemsRepositoryFactory.d.ts +1 -1
  36. package/Domain/Repositories/SelectedItems/SelectedItemsRepositoryFactory.js +1 -1
  37. package/Domain/Repositories/SelectedItems/SelectedItemsRepositoryFactory.js.map +1 -1
  38. package/Domain/Repositories/SelectedItems/index.d.ts +3 -3
  39. package/Domain/Repositories/SelectedItems/index.js +2 -3
  40. package/Domain/Repositories/SelectedItems/index.js.map +1 -1
  41. package/Domain/Repositories/Sorting/index.d.ts +1 -1
  42. package/Domain/Repositories/Sorting/index.js +1 -1
  43. package/Domain/Repositories/Sorting/index.js.map +1 -1
  44. package/Domain/Repositories/index.d.ts +4 -4
  45. package/Domain/Repositories/index.js +4 -4
  46. package/Domain/Repositories/index.js.map +1 -1
  47. package/Domain/index.d.ts +2 -2
  48. package/Domain/index.js +2 -2
  49. package/Domain/index.js.map +1 -1
  50. package/Gateways/SchedulerListGateway.d.ts +4 -5
  51. package/Gateways/SchedulerListGateway.js.map +1 -1
  52. package/Gateways/index.d.ts +5 -5
  53. package/Gateways/index.js +1 -5
  54. package/Gateways/index.js.map +1 -1
  55. package/Presentation/Scheduler/Scheduler.d.ts +1 -1
  56. package/Presentation/Scheduler/Scheduler.js +5 -5
  57. package/Presentation/Scheduler/Scheduler.js.map +1 -1
  58. package/Presentation/Scheduler/SchedulerControllers.d.ts +2 -2
  59. package/Presentation/Scheduler/SchedulerControllers.js +2 -2
  60. package/Presentation/Scheduler/SchedulerControllers.js.map +1 -1
  61. package/Presentation/Scheduler/SchedulerPresenter.d.ts +1 -1
  62. package/Presentation/Scheduler/SchedulerPresenter.js +1 -1
  63. package/Presentation/Scheduler/SchedulerPresenter.js.map +1 -1
  64. package/Presentation/Scheduler/controllers/CancelItem/CancelItemController.d.ts +2 -2
  65. package/Presentation/Scheduler/controllers/CancelItem/CancelItemController.js.map +1 -1
  66. package/Presentation/Scheduler/controllers/CancelItem/index.d.ts +1 -1
  67. package/Presentation/Scheduler/controllers/CancelItem/index.js +0 -1
  68. package/Presentation/Scheduler/controllers/CancelItem/index.js.map +1 -1
  69. package/Presentation/Scheduler/controllers/GetItem/GetItemController.d.ts +2 -2
  70. package/Presentation/Scheduler/controllers/GetItem/GetItemController.js.map +1 -1
  71. package/Presentation/Scheduler/controllers/GetItem/index.d.ts +2 -2
  72. package/Presentation/Scheduler/controllers/GetItem/index.js +1 -2
  73. package/Presentation/Scheduler/controllers/GetItem/index.js.map +1 -1
  74. package/Presentation/Scheduler/controllers/ListItems/ListItemsController.d.ts +2 -2
  75. package/Presentation/Scheduler/controllers/ListItems/ListItemsController.js.map +1 -1
  76. package/Presentation/Scheduler/controllers/ListItems/index.d.ts +2 -2
  77. package/Presentation/Scheduler/controllers/ListItems/index.js +1 -2
  78. package/Presentation/Scheduler/controllers/ListItems/index.js.map +1 -1
  79. package/Presentation/Scheduler/controllers/ListMoreItems/ListMoreItemsController.d.ts +2 -2
  80. package/Presentation/Scheduler/controllers/ListMoreItems/ListMoreItemsController.js.map +1 -1
  81. package/Presentation/Scheduler/controllers/ListMoreItems/index.d.ts +2 -2
  82. package/Presentation/Scheduler/controllers/ListMoreItems/index.js +1 -2
  83. package/Presentation/Scheduler/controllers/ListMoreItems/index.js.map +1 -1
  84. package/Presentation/Scheduler/controllers/PublishItem/PublishItemController.d.ts +2 -2
  85. package/Presentation/Scheduler/controllers/PublishItem/PublishItemController.js.map +1 -1
  86. package/Presentation/Scheduler/controllers/PublishItem/index.d.ts +1 -1
  87. package/Presentation/Scheduler/controllers/PublishItem/index.js +0 -1
  88. package/Presentation/Scheduler/controllers/PublishItem/index.js.map +1 -1
  89. package/Presentation/Scheduler/controllers/SearchItems/SearchItemsController.d.ts +2 -2
  90. package/Presentation/Scheduler/controllers/SearchItems/SearchItemsController.js.map +1 -1
  91. package/Presentation/Scheduler/controllers/SearchItems/index.d.ts +2 -2
  92. package/Presentation/Scheduler/controllers/SearchItems/index.js +1 -2
  93. package/Presentation/Scheduler/controllers/SearchItems/index.js.map +1 -1
  94. package/Presentation/Scheduler/controllers/SelectAllItems/SelectAllItemsController.d.ts +2 -2
  95. package/Presentation/Scheduler/controllers/SelectAllItems/SelectAllItemsController.js.map +1 -1
  96. package/Presentation/Scheduler/controllers/SelectAllItems/index.d.ts +2 -2
  97. package/Presentation/Scheduler/controllers/SelectAllItems/index.js +1 -2
  98. package/Presentation/Scheduler/controllers/SelectAllItems/index.js.map +1 -1
  99. package/Presentation/Scheduler/controllers/SelectItems/SelectItemsController.d.ts +2 -2
  100. package/Presentation/Scheduler/controllers/SelectItems/SelectItemsController.js +1 -1
  101. package/Presentation/Scheduler/controllers/SelectItems/SelectItemsController.js.map +1 -1
  102. package/Presentation/Scheduler/controllers/SelectItems/index.d.ts +2 -2
  103. package/Presentation/Scheduler/controllers/SelectItems/index.js +1 -2
  104. package/Presentation/Scheduler/controllers/SelectItems/index.js.map +1 -1
  105. package/Presentation/Scheduler/controllers/SortItems/ISortItemsController.d.ts +1 -1
  106. package/Presentation/Scheduler/controllers/SortItems/ISortItemsController.js.map +1 -1
  107. package/Presentation/Scheduler/controllers/SortItems/SortItemsController.d.ts +3 -3
  108. package/Presentation/Scheduler/controllers/SortItems/SortItemsController.js.map +1 -1
  109. package/Presentation/Scheduler/controllers/SortItems/index.d.ts +2 -2
  110. package/Presentation/Scheduler/controllers/SortItems/index.js +1 -2
  111. package/Presentation/Scheduler/controllers/SortItems/index.js.map +1 -1
  112. package/Presentation/Scheduler/controllers/UnpublishItem/UnpublishItemController.d.ts +2 -2
  113. package/Presentation/Scheduler/controllers/UnpublishItem/UnpublishItemController.js.map +1 -1
  114. package/Presentation/Scheduler/controllers/UnpublishItem/index.d.ts +1 -1
  115. package/Presentation/Scheduler/controllers/UnpublishItem/index.js +0 -1
  116. package/Presentation/Scheduler/controllers/UnpublishItem/index.js.map +1 -1
  117. package/Presentation/Scheduler/controllers/UnselectAllItems/UnselectAllItemsController.d.ts +2 -2
  118. package/Presentation/Scheduler/controllers/UnselectAllItems/UnselectAllItemsController.js.map +1 -1
  119. package/Presentation/Scheduler/controllers/UnselectAllItems/index.d.ts +2 -2
  120. package/Presentation/Scheduler/controllers/UnselectAllItems/index.js +1 -2
  121. package/Presentation/Scheduler/controllers/UnselectAllItems/index.js.map +1 -1
  122. package/Presentation/Scheduler/controllers/index.d.ts +11 -11
  123. package/Presentation/Scheduler/controllers/index.js +11 -11
  124. package/Presentation/Scheduler/controllers/index.js.map +1 -1
  125. package/Presentation/SchedulerConfigs/SchedulerConfigs.js +7 -7
  126. package/Presentation/SchedulerConfigs/SchedulerConfigs.js.map +1 -1
  127. package/Presentation/SchedulerConfigs/index.d.ts +1 -1
  128. package/Presentation/SchedulerConfigs/index.js +1 -1
  129. package/Presentation/SchedulerConfigs/index.js.map +1 -1
  130. package/Presentation/SchedulerRenderer/SchedulerRenderer.d.ts +1 -1
  131. package/Presentation/SchedulerRenderer/SchedulerRenderer.js +6 -6
  132. package/Presentation/SchedulerRenderer/SchedulerRenderer.js.map +1 -1
  133. package/Presentation/SchedulerRenderer/index.d.ts +1 -1
  134. package/Presentation/SchedulerRenderer/index.js +1 -1
  135. package/Presentation/SchedulerRenderer/index.js.map +1 -1
  136. package/Presentation/abstractions/ISchedulerControllers.d.ts +1 -1
  137. package/Presentation/abstractions/ISchedulerControllers.js.map +1 -1
  138. package/Presentation/abstractions/ISchedulerPresenter.d.ts +1 -1
  139. package/Presentation/abstractions/ISchedulerPresenter.js.map +1 -1
  140. package/Presentation/abstractions/index.d.ts +2 -2
  141. package/Presentation/abstractions/index.js +1 -2
  142. package/Presentation/abstractions/index.js.map +1 -1
  143. package/Presentation/components/Actions/CancelItem/CancelItem.js +2 -2
  144. package/Presentation/components/Actions/CancelItem/CancelItem.js.map +1 -1
  145. package/Presentation/components/Actions/CancelItem/index.d.ts +1 -1
  146. package/Presentation/components/Actions/CancelItem/index.js +1 -1
  147. package/Presentation/components/Actions/CancelItem/index.js.map +1 -1
  148. package/Presentation/components/Actions/index.d.ts +1 -1
  149. package/Presentation/components/Actions/index.js +1 -1
  150. package/Presentation/components/Actions/index.js.map +1 -1
  151. package/Presentation/components/BottomInfoBar/BottomInfoBar.js +5 -5
  152. package/Presentation/components/BottomInfoBar/BottomInfoBar.js.map +1 -1
  153. package/Presentation/components/BottomInfoBar/BottomInfoBar.styled.d.ts +10 -11
  154. package/Presentation/components/BottomInfoBar/BottomInfoBar.styled.js +5 -10
  155. package/Presentation/components/BottomInfoBar/BottomInfoBar.styled.js.map +1 -1
  156. package/Presentation/components/BottomInfoBar/ListStatus.js +2 -2
  157. package/Presentation/components/BottomInfoBar/ListStatus.js.map +1 -1
  158. package/Presentation/components/BottomInfoBar/index.d.ts +1 -1
  159. package/Presentation/components/BottomInfoBar/index.js +1 -1
  160. package/Presentation/components/BottomInfoBar/index.js.map +1 -1
  161. package/Presentation/components/Cells/CellActions/CellActions.js +5 -6
  162. package/Presentation/components/Cells/CellActions/CellActions.js.map +1 -1
  163. package/Presentation/components/Cells/CellActions/index.d.ts +1 -1
  164. package/Presentation/components/Cells/CellActions/index.js +1 -1
  165. package/Presentation/components/Cells/CellActions/index.js.map +1 -1
  166. package/Presentation/components/Cells/CellRevision/CellRevision.js +3 -3
  167. package/Presentation/components/Cells/CellRevision/CellRevision.js.map +1 -1
  168. package/Presentation/components/Cells/CellRevision/CellRevision.styled.d.ts +5 -6
  169. package/Presentation/components/Cells/CellRevision/CellRevision.styled.js +4 -7
  170. package/Presentation/components/Cells/CellRevision/CellRevision.styled.js.map +1 -1
  171. package/Presentation/components/Cells/CellScheduledBy/CellScheduledBy.js +1 -1
  172. package/Presentation/components/Cells/CellScheduledBy/CellScheduledBy.js.map +1 -1
  173. package/Presentation/components/Cells/CellScheduledBy/index.d.ts +1 -1
  174. package/Presentation/components/Cells/CellScheduledBy/index.js +1 -1
  175. package/Presentation/components/Cells/CellScheduledBy/index.js.map +1 -1
  176. package/Presentation/components/Cells/CellScheduledOn/CellScheduledOn.d.ts +22 -0
  177. package/Presentation/components/Cells/CellScheduledOn/CellScheduledOn.js +12 -8
  178. package/Presentation/components/Cells/CellScheduledOn/CellScheduledOn.js.map +1 -1
  179. package/Presentation/components/Cells/CellTitle/CellTitle.js +2 -2
  180. package/Presentation/components/Cells/CellTitle/CellTitle.js.map +1 -1
  181. package/Presentation/components/Cells/CellTitle/CellTitle.styled.d.ts +5 -6
  182. package/Presentation/components/Cells/CellTitle/CellTitle.styled.js +4 -7
  183. package/Presentation/components/Cells/CellTitle/CellTitle.styled.js.map +1 -1
  184. package/Presentation/components/Cells/CellTitle/index.d.ts +1 -1
  185. package/Presentation/components/Cells/CellTitle/index.js +1 -1
  186. package/Presentation/components/Cells/CellTitle/index.js.map +1 -1
  187. package/Presentation/components/Cells/CellType/CellType.js +5 -4
  188. package/Presentation/components/Cells/CellType/CellType.js.map +1 -1
  189. package/Presentation/components/Cells/CellType/CellType.styled.d.ts +5 -6
  190. package/Presentation/components/Cells/CellType/CellType.styled.js +4 -7
  191. package/Presentation/components/Cells/CellType/CellType.styled.js.map +1 -1
  192. package/Presentation/components/Cells/index.d.ts +6 -6
  193. package/Presentation/components/Cells/index.js +6 -6
  194. package/Presentation/components/Cells/index.js.map +1 -1
  195. package/Presentation/components/Empty/Empty.js +3 -3
  196. package/Presentation/components/Empty/Empty.js.map +1 -1
  197. package/Presentation/components/Empty/Empty.styled.d.ts +4 -5
  198. package/Presentation/components/Empty/Empty.styled.js +2 -4
  199. package/Presentation/components/Empty/Empty.styled.js.map +1 -1
  200. package/Presentation/components/Empty/index.d.ts +1 -1
  201. package/Presentation/components/Empty/index.js +1 -1
  202. package/Presentation/components/Empty/index.js.map +1 -1
  203. package/Presentation/components/ScheduleDialog/types.d.ts +1 -1
  204. package/Presentation/components/ScheduleDialog/types.js.map +1 -1
  205. package/Presentation/components/ScheduleDialog/useScheduleDialog.d.ts +27 -3
  206. package/Presentation/components/ScheduleDialog/useScheduleDialog.js +38 -19
  207. package/Presentation/components/ScheduleDialog/useScheduleDialog.js.map +1 -1
  208. package/Presentation/components/SchedulerOverlay/SchedulerOverlay.js +8 -8
  209. package/Presentation/components/SchedulerOverlay/SchedulerOverlay.js.map +1 -1
  210. package/Presentation/components/SearchInput/SearchInput.js +1 -1
  211. package/Presentation/components/SearchInput/SearchInput.js.map +1 -1
  212. package/Presentation/components/SearchInput/index.d.ts +1 -1
  213. package/Presentation/components/SearchInput/index.js +1 -1
  214. package/Presentation/components/SearchInput/index.js.map +1 -1
  215. package/Presentation/components/Table/Table.js +8 -3
  216. package/Presentation/components/Table/Table.js.map +1 -1
  217. package/Presentation/components/Table/index.d.ts +1 -1
  218. package/Presentation/components/Table/index.js +1 -1
  219. package/Presentation/components/Table/index.js.map +1 -1
  220. package/Presentation/components/Title/Title.js +2 -2
  221. package/Presentation/components/Title/Title.js.map +1 -1
  222. package/Presentation/components/Title/Title.styled.d.ts +2 -2
  223. package/Presentation/components/Title/Title.styled.js +2 -3
  224. package/Presentation/components/Title/Title.styled.js.map +1 -1
  225. package/Presentation/components/Title/index.d.ts +1 -1
  226. package/Presentation/components/Title/index.js +1 -1
  227. package/Presentation/components/Title/index.js.map +1 -1
  228. package/Presentation/configs/index.d.ts +1 -1
  229. package/Presentation/configs/index.js +1 -1
  230. package/Presentation/configs/index.js.map +1 -1
  231. package/Presentation/configs/list/Browser/EntryAction.d.ts +1 -1
  232. package/Presentation/configs/list/Browser/EntryAction.js +1 -1
  233. package/Presentation/configs/list/Browser/EntryAction.js.map +1 -1
  234. package/Presentation/configs/list/Browser/Table/Column.d.ts +2 -2
  235. package/Presentation/configs/list/Browser/Table/Column.js +1 -1
  236. package/Presentation/configs/list/Browser/Table/Column.js.map +1 -1
  237. package/Presentation/configs/list/Browser/Table/Sorting.js +1 -1
  238. package/Presentation/configs/list/Browser/Table/Sorting.js.map +1 -1
  239. package/Presentation/configs/list/Browser/Table/index.d.ts +7 -8
  240. package/Presentation/configs/list/Browser/Table/index.js +2 -2
  241. package/Presentation/configs/list/Browser/Table/index.js.map +1 -1
  242. package/Presentation/configs/list/Browser/index.d.ts +9 -10
  243. package/Presentation/configs/list/Browser/index.js +2 -2
  244. package/Presentation/configs/list/Browser/index.js.map +1 -1
  245. package/Presentation/configs/list/SchedulerListConfig.d.ts +9 -9
  246. package/Presentation/configs/list/SchedulerListConfig.js +5 -3
  247. package/Presentation/configs/list/SchedulerListConfig.js.map +1 -1
  248. package/Presentation/configs/list/index.d.ts +1 -1
  249. package/Presentation/configs/list/index.js +1 -1
  250. package/Presentation/configs/list/index.js.map +1 -1
  251. package/Presentation/hooks/useCancelSchedulerItem.d.ts +1 -1
  252. package/Presentation/hooks/useCancelSchedulerItem.js +1 -1
  253. package/Presentation/hooks/useCancelSchedulerItem.js.map +1 -1
  254. package/Presentation/hooks/useScheduler.d.ts +6 -7
  255. package/Presentation/hooks/useScheduler.js.map +1 -1
  256. package/Presentation/hooks/useSchedulerItem.d.ts +3 -4
  257. package/Presentation/hooks/useSchedulerItem.js.map +1 -1
  258. package/Presentation/index.d.ts +5 -1
  259. package/Presentation/index.js +9 -5
  260. package/Presentation/index.js.map +1 -1
  261. package/README.md +6 -17
  262. package/UseCases/CancelItem/CancelItemUseCase.d.ts +2 -2
  263. package/UseCases/CancelItem/CancelItemUseCase.js.map +1 -1
  264. package/UseCases/CancelItem/index.d.ts +1 -1
  265. package/UseCases/CancelItem/index.js +0 -1
  266. package/UseCases/CancelItem/index.js.map +1 -1
  267. package/UseCases/GetItem/GetItemUseCase.d.ts +2 -2
  268. package/UseCases/GetItem/GetItemUseCase.js.map +1 -1
  269. package/UseCases/GetItem/index.d.ts +2 -2
  270. package/UseCases/GetItem/index.js +1 -2
  271. package/UseCases/GetItem/index.js.map +1 -1
  272. package/UseCases/GetScheduledItem/GetScheduledItemUseCase.d.ts +2 -2
  273. package/UseCases/GetScheduledItem/GetScheduledItemUseCase.js.map +1 -1
  274. package/UseCases/GetScheduledItem/IGetScheduledItemUseCase.d.ts +1 -1
  275. package/UseCases/GetScheduledItem/IGetScheduledItemUseCase.js.map +1 -1
  276. package/UseCases/GetScheduledItem/index.d.ts +1 -1
  277. package/UseCases/GetScheduledItem/index.js +0 -1
  278. package/UseCases/GetScheduledItem/index.js.map +1 -1
  279. package/UseCases/ListItems/ListItemsUseCase.d.ts +2 -2
  280. package/UseCases/ListItems/ListItemsUseCase.js.map +1 -1
  281. package/UseCases/ListItems/ListItemsUseCaseWithSearch.d.ts +2 -2
  282. package/UseCases/ListItems/ListItemsUseCaseWithSearch.js.map +1 -1
  283. package/UseCases/ListItems/ListItemsUseCaseWithSorting.d.ts +1 -1
  284. package/UseCases/ListItems/ListItemsUseCaseWithSorting.js.map +1 -1
  285. package/UseCases/ListItems/index.d.ts +2 -2
  286. package/UseCases/ListItems/index.js +1 -2
  287. package/UseCases/ListItems/index.js.map +1 -1
  288. package/UseCases/ListMoreItems/ListMoreItemsUseCase.d.ts +2 -2
  289. package/UseCases/ListMoreItems/ListMoreItemsUseCase.js.map +1 -1
  290. package/UseCases/ListMoreItems/index.d.ts +2 -2
  291. package/UseCases/ListMoreItems/index.js +1 -2
  292. package/UseCases/ListMoreItems/index.js.map +1 -1
  293. package/UseCases/PublishItem/PublishItemUseCase.d.ts +2 -2
  294. package/UseCases/PublishItem/PublishItemUseCase.js.map +1 -1
  295. package/UseCases/PublishItem/index.d.ts +1 -1
  296. package/UseCases/PublishItem/index.js +0 -1
  297. package/UseCases/PublishItem/index.js.map +1 -1
  298. package/UseCases/SearchItems/SearchItemsUseCase.d.ts +2 -2
  299. package/UseCases/SearchItems/SearchItemsUseCase.js.map +1 -1
  300. package/UseCases/SearchItems/index.d.ts +2 -2
  301. package/UseCases/SearchItems/index.js +1 -2
  302. package/UseCases/SearchItems/index.js.map +1 -1
  303. package/UseCases/SelectAllItems/SelectAllItemsUseCase.d.ts +2 -2
  304. package/UseCases/SelectAllItems/SelectAllItemsUseCase.js.map +1 -1
  305. package/UseCases/SelectAllItems/index.d.ts +2 -2
  306. package/UseCases/SelectAllItems/index.js +1 -2
  307. package/UseCases/SelectAllItems/index.js.map +1 -1
  308. package/UseCases/SelectItems/ISelectItemsUseCase.d.ts +1 -1
  309. package/UseCases/SelectItems/ISelectItemsUseCase.js.map +1 -1
  310. package/UseCases/SelectItems/SelectItemsUseCase.d.ts +2 -2
  311. package/UseCases/SelectItems/SelectItemsUseCase.js.map +1 -1
  312. package/UseCases/SelectItems/index.d.ts +2 -2
  313. package/UseCases/SelectItems/index.js +1 -2
  314. package/UseCases/SelectItems/index.js.map +1 -1
  315. package/UseCases/SortItems/SortItemsUseCase.d.ts +1 -1
  316. package/UseCases/SortItems/SortItemsUseCase.js.map +1 -1
  317. package/UseCases/SortItems/index.d.ts +2 -2
  318. package/UseCases/SortItems/index.js +1 -2
  319. package/UseCases/SortItems/index.js.map +1 -1
  320. package/UseCases/UnSelectAllItems/UnselectAllItemsUseCase.d.ts +2 -2
  321. package/UseCases/UnSelectAllItems/UnselectAllItemsUseCase.js.map +1 -1
  322. package/UseCases/UnSelectAllItems/index.d.ts +2 -2
  323. package/UseCases/UnSelectAllItems/index.js +1 -2
  324. package/UseCases/UnSelectAllItems/index.js.map +1 -1
  325. package/UseCases/UnpublishItem/UnpublishItemUseCase.d.ts +2 -2
  326. package/UseCases/UnpublishItem/UnpublishItemUseCase.js.map +1 -1
  327. package/UseCases/UnpublishItem/index.d.ts +1 -1
  328. package/UseCases/UnpublishItem/index.js +0 -1
  329. package/UseCases/UnpublishItem/index.js.map +1 -1
  330. package/UseCases/index.d.ts +11 -11
  331. package/UseCases/index.js +11 -11
  332. package/UseCases/index.js.map +1 -1
  333. package/index.d.ts +1 -1
  334. package/index.js +0 -1
  335. package/index.js.map +1 -1
  336. package/package.json +21 -24
  337. package/types.d.ts +1 -1
  338. package/types.js.map +1 -1
@@ -1,24 +1,23 @@
1
- /// <reference types="react" />
2
- import type { EntryActionConfig } from "./EntryAction";
3
- import type { TableConfig } from "./Table";
1
+ import type { EntryActionConfig } from "./EntryAction.js";
2
+ import type { TableConfig } from "./Table/index.js";
4
3
  export interface BrowserConfig {
5
4
  entryActions: EntryActionConfig[];
6
5
  table: TableConfig;
7
6
  }
8
7
  export declare const Browser: {
9
- EntryAction: ((props: import("@webiny/app-aco/config/record/Action").ActionProps) => import("react").JSX.Element) & {
10
- OptionsMenuItem: (props: import("@webiny/app-admin").OptionsMenuItemProps) => import("react").JSX.Element;
8
+ EntryAction: ((props: import("@webiny/app-aco/config/record/Action.js").ActionProps) => import("react").JSX.Element) & {
9
+ OptionsMenuItem: (props: import("@webiny/app-admin/index.js").OptionsMenuItemProps) => React.JSX.Element;
11
10
  };
12
11
  Table: {
13
- Column: ((props: import("@webiny/app-aco/config/table/Column").ColumnProps) => import("react").JSX.Element) & {
12
+ Column: ((props: import("@webiny/app-aco/config/table/Column.js").ColumnProps) => import("react").JSX.Element) & {
14
13
  useTableRow: {
15
- (): import("@webiny/app-aco").TableRowContextData<import("../../../../types").SchedulerEntryTableRow>;
16
- <TUserRow>(): import("@webiny/app-aco").TableRowContextData<import("../../../../types").SchedulerEntryTableRow & {
14
+ (): import("@webiny/app-aco/index.js").TableRowContextData<import("../../../../types.js").SchedulerEntryTableRow>;
15
+ <TUserRow>(): import("@webiny/app-aco/index.js").TableRowContextData<import("../../../../types.js").SchedulerEntryTableRow & {
17
16
  data: TUserRow;
18
17
  }>;
19
18
  };
20
- isFolderRow: (row: import("@webiny/app-aco").TableRow<unknown>) => row is import("@webiny/app-aco").FolderTableRow;
19
+ isFolderRow: (row: import("@webiny/app-aco/table.types.js").TableRow) => row is import("@webiny/app-aco/table.types.js").FolderTableRow;
21
20
  };
22
- Sorting: (props: import("@webiny/app-aco/config/table/Sorting").SortingProps) => import("react").JSX.Element;
21
+ Sorting: (props: import("@webiny/app-aco/config/table/Sorting.js").SortingProps) => import("react").JSX.Element;
23
22
  };
24
23
  };
@@ -1,5 +1,5 @@
1
- import { EntryAction } from "./EntryAction";
2
- import { Table } from "./Table";
1
+ import { EntryAction } from "./EntryAction.js";
2
+ import { Table } from "./Table/index.js";
3
3
  export const Browser = {
4
4
  EntryAction,
5
5
  Table
@@ -1 +1 @@
1
- {"version":3,"names":["EntryAction","Table","Browser"],"sources":["index.ts"],"sourcesContent":["import type { EntryActionConfig } from \"./EntryAction\";\nimport { EntryAction } from \"./EntryAction\";\nimport type { TableConfig } from \"./Table\";\nimport { Table } from \"./Table\";\n\nexport interface BrowserConfig {\n entryActions: EntryActionConfig[];\n table: TableConfig;\n}\n\nexport const Browser = {\n EntryAction,\n Table\n};\n"],"mappings":"AACA,SAASA,WAAW;AAEpB,SAASC,KAAK;AAOd,OAAO,MAAMC,OAAO,GAAG;EACnBF,WAAW;EACXC;AACJ,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["EntryAction","Table","Browser"],"sources":["index.ts"],"sourcesContent":["import type { EntryActionConfig } from \"./EntryAction.js\";\nimport { EntryAction } from \"./EntryAction.js\";\nimport type { TableConfig } from \"./Table/index.js\";\nimport { Table } from \"./Table/index.js\";\n\nexport interface BrowserConfig {\n entryActions: EntryActionConfig[];\n table: TableConfig;\n}\n\nexport const Browser = {\n EntryAction,\n Table\n};\n"],"mappings":"AACA,SAASA,WAAW;AAEpB,SAASC,KAAK;AAOd,OAAO,MAAMC,OAAO,GAAG;EACnBF,WAAW;EACXC;AACJ,CAAC","ignoreList":[]}
@@ -6,28 +6,28 @@ export declare const SchedulerListConfig: {
6
6
  displayName: string;
7
7
  } & {
8
8
  Browser: {
9
- EntryAction: ((props: import("@webiny/app-aco/config/record/Action").ActionProps) => React.JSX.Element) & {
10
- OptionsMenuItem: (props: import("@webiny/app-admin").OptionsMenuItemProps) => React.JSX.Element;
9
+ EntryAction: ((props: import("@webiny/app-aco/config/record/Action.js").ActionProps) => React.JSX.Element) & {
10
+ OptionsMenuItem: (props: import("@webiny/app-admin/index.js").OptionsMenuItemProps) => React.JSX.Element;
11
11
  };
12
12
  Table: {
13
- Column: ((props: import("@webiny/app-aco/config/table/Column").ColumnProps) => React.JSX.Element) & {
13
+ Column: ((props: import("@webiny/app-aco/config/table/Column.js").ColumnProps) => React.JSX.Element) & {
14
14
  useTableRow: {
15
- (): import("@webiny/app-aco").TableRowContextData<import("../../../types").SchedulerEntryTableRow>;
16
- <TUserRow>(): import("@webiny/app-aco").TableRowContextData<import("../../../types").SchedulerEntryTableRow & {
15
+ (): import("@webiny/app-aco").TableRowContextData<import("../../../types.js").SchedulerEntryTableRow>;
16
+ <TUserRow>(): import("@webiny/app-aco").TableRowContextData<import("../../../types.js").SchedulerEntryTableRow & {
17
17
  data: TUserRow;
18
18
  }>;
19
19
  };
20
- isFolderRow: (row: import("@webiny/app-aco").TableRow<unknown>) => row is import("@webiny/app-aco").FolderTableRow;
20
+ isFolderRow: (row: import("@webiny/app-aco").TableRow) => row is import("@webiny/app-aco").FolderTableRow;
21
21
  };
22
- Sorting: (props: import("@webiny/app-aco/config/table/Sorting").SortingProps) => React.JSX.Element;
22
+ Sorting: (props: import("@webiny/app-aco/config/table/Sorting.js").SortingProps) => React.JSX.Element;
23
23
  };
24
24
  };
25
25
  };
26
26
  export declare const SchedulerListWithConfig: ({ onProperties, children }: import("@webiny/react-properties").WithConfigProps) => React.JSX.Element;
27
27
  export declare function useSchedulerListConfig(): {
28
28
  browser: {
29
- bulkActions: never[];
29
+ table: import("@webiny/app-aco/config/table/index.js").TableConfig;
30
30
  entryActions: import("@webiny/app-aco").RecordActionConfig[];
31
- table: import("./Browser/Table").TableConfig;
31
+ bulkActions: never[];
32
32
  };
33
33
  };
@@ -1,7 +1,8 @@
1
1
  import React, { useMemo } from "react";
2
2
  import { createConfigurableComponent } from "@webiny/react-properties";
3
- import { Browser } from "./Browser";
3
+ import { Browser } from "./Browser/index.js";
4
4
  import { CompositionScope } from "@webiny/react-composition";
5
+ import { useAcoConfig } from "@webiny/app-aco";
5
6
  const base = createConfigurableComponent("SchedulerListConfig");
6
7
  const ScopedSchedulerListConfig = ({
7
8
  children
@@ -17,10 +18,11 @@ export const SchedulerListConfig = Object.assign(ScopedSchedulerListConfig, {
17
18
  export const SchedulerListWithConfig = base.WithConfig;
18
19
  export function useSchedulerListConfig() {
19
20
  const config = base.useConfig();
20
- const browser = config.browser || {};
21
+ const acoConfig = useAcoConfig(config);
21
22
  return useMemo(() => ({
22
23
  browser: {
23
- ...browser,
24
+ table: acoConfig.table,
25
+ entryActions: acoConfig.record.actions,
24
26
  bulkActions: []
25
27
  }
26
28
  }), [config]);
@@ -1 +1 @@
1
- {"version":3,"names":["React","useMemo","createConfigurableComponent","Browser","CompositionScope","base","ScopedSchedulerListConfig","children","createElement","name","Config","displayName","SchedulerListConfig","Object","assign","SchedulerListWithConfig","WithConfig","useSchedulerListConfig","config","useConfig","browser","bulkActions"],"sources":["SchedulerListConfig.tsx"],"sourcesContent":["import React, { useMemo } from \"react\";\nimport { createConfigurableComponent } from \"@webiny/react-properties\";\nimport type { BrowserConfig } from \"./Browser\";\nimport { Browser } from \"./Browser\";\nimport { CompositionScope } from \"@webiny/react-composition\";\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\n const browser = config.browser || {};\n\n return useMemo(\n () => ({\n browser: {\n ...browser,\n bulkActions: []\n }\n }),\n [config]\n );\n}\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AACtC,SAASC,2BAA2B,QAAQ,0BAA0B;AAEtE,SAASC,OAAO;AAChB,SAASC,gBAAgB,QAAQ,2BAA2B;AAE5D,MAAMC,IAAI,GAAGH,2BAA2B,CAAsB,qBAAqB,CAAC;AAEpF,MAAMI,yBAAyB,GAAGA,CAAC;EAAEC;AAAwC,CAAC,KAAK;EAC/E,oBACIP,KAAA,CAAAQ,aAAA,CAACJ,gBAAgB;IAACK,IAAI,EAAE;EAAY,gBAChCT,KAAA,CAAAQ,aAAA,CAACH,IAAI,CAACK,MAAM,QAAEH,QAAsB,CACtB,CAAC;AAE3B,CAAC;AAEDD,yBAAyB,CAACK,WAAW,GAAG,qBAAqB;AAE7D,OAAO,MAAMC,mBAAmB,GAAGC,MAAM,CAACC,MAAM,CAACR,yBAAyB,EAAE;EAAEH;AAAQ,CAAC,CAAC;AACxF,OAAO,MAAMY,uBAAuB,GAAGV,IAAI,CAACW,UAAU;AAMtD,OAAO,SAASC,sBAAsBA,CAAA,EAAG;EACrC,MAAMC,MAAM,GAAGb,IAAI,CAACc,SAAS,CAAC,CAAC;EAE/B,MAAMC,OAAO,GAAGF,MAAM,CAACE,OAAO,IAAI,CAAC,CAAC;EAEpC,OAAOnB,OAAO,CACV,OAAO;IACHmB,OAAO,EAAE;MACL,GAAGA,OAAO;MACVC,WAAW,EAAE;IACjB;EACJ,CAAC,CAAC,EACF,CAACH,MAAM,CACX,CAAC;AACL","ignoreList":[]}
1
+ {"version":3,"names":["React","useMemo","createConfigurableComponent","Browser","CompositionScope","useAcoConfig","base","ScopedSchedulerListConfig","children","createElement","name","Config","displayName","SchedulerListConfig","Object","assign","SchedulerListWithConfig","WithConfig","useSchedulerListConfig","config","useConfig","acoConfig","browser","table","entryActions","record","actions","bulkActions"],"sources":["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"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AACtC,SAASC,2BAA2B,QAAQ,0BAA0B;AAEtE,SAASC,OAAO;AAChB,SAASC,gBAAgB,QAAQ,2BAA2B;AAC5D,SAASC,YAAY,QAAQ,iBAAiB;AAE9C,MAAMC,IAAI,GAAGJ,2BAA2B,CAAsB,qBAAqB,CAAC;AAEpF,MAAMK,yBAAyB,GAAGA,CAAC;EAAEC;AAAwC,CAAC,KAAK;EAC/E,oBACIR,KAAA,CAAAS,aAAA,CAACL,gBAAgB;IAACM,IAAI,EAAE;EAAY,gBAChCV,KAAA,CAAAS,aAAA,CAACH,IAAI,CAACK,MAAM,QAAEH,QAAsB,CACtB,CAAC;AAE3B,CAAC;AAEDD,yBAAyB,CAACK,WAAW,GAAG,qBAAqB;AAE7D,OAAO,MAAMC,mBAAmB,GAAGC,MAAM,CAACC,MAAM,CAACR,yBAAyB,EAAE;EAAEJ;AAAQ,CAAC,CAAC;AACxF,OAAO,MAAMa,uBAAuB,GAAGV,IAAI,CAACW,UAAU;AAMtD,OAAO,SAASC,sBAAsBA,CAAA,EAAG;EACrC,MAAMC,MAAM,GAAGb,IAAI,CAACc,SAAS,CAAC,CAAC;EAC/B,MAAMC,SAAS,GAAGhB,YAAY,CAACc,MAAM,CAAC;EAEtC,OAAOlB,OAAO,CACV,OAAO;IACHqB,OAAO,EAAE;MACLC,KAAK,EAAEF,SAAS,CAACE,KAAK;MACtBC,YAAY,EAAEH,SAAS,CAACI,MAAM,CAACC,OAAO;MACtCC,WAAW,EAAE;IACjB;EACJ,CAAC,CAAC,EACF,CAACR,MAAM,CACX,CAAC;AACL","ignoreList":[]}
@@ -1 +1 @@
1
- export * from "./SchedulerListConfig";
1
+ export * from "./SchedulerListConfig.js";
@@ -1,3 +1,3 @@
1
- export * from "./SchedulerListConfig";
1
+ export * from "./SchedulerListConfig.js";
2
2
 
3
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./SchedulerListConfig\";\n"],"mappings":"AAAA","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./SchedulerListConfig.js\";\n"],"mappings":"AAAA","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import type { SchedulerEntry } from "../../types";
1
+ import type { SchedulerEntry } from "../../types.js";
2
2
  interface UseCancelScheduleItemParams {
3
3
  item: Pick<SchedulerEntry, "id" | "title" | "type">;
4
4
  }
@@ -1,6 +1,6 @@
1
1
  import React, { useCallback } from "react";
2
2
  import { useConfirmationDialog, useSnackbar } from "@webiny/app-admin";
3
- import { useScheduler } from "./useScheduler";
3
+ import { useScheduler } from "./useScheduler.js";
4
4
  export const useCancelSchedulerItem = ({
5
5
  item
6
6
  }) => {
@@ -1 +1 @@
1
- {"version":3,"names":["React","useCallback","useConfirmationDialog","useSnackbar","useScheduler","useCancelSchedulerItem","item","cancelItem","showSnackbar","showConfirmation","title","message","createElement","type","openDialogCancelSchedulerItem","id","ex"],"sources":["useCancelSchedulerItem.tsx"],"sourcesContent":["import React, { useCallback } from \"react\";\nimport { useConfirmationDialog, useSnackbar } from \"@webiny/app-admin\";\nimport { useScheduler } from \"./useScheduler\";\nimport type { SchedulerEntry } from \"~/types\";\n\ninterface UseCancelScheduleItemParams {\n item: Pick<SchedulerEntry, \"id\" | \"title\" | \"type\">;\n}\n\nexport const useCancelSchedulerItem = ({ item }: UseCancelScheduleItemParams) => {\n const { cancelItem } = useScheduler();\n const { showSnackbar } = useSnackbar();\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>{item.type}</strong> for{\" \"}\n <strong>{item.title}</strong>?\n </p>\n )\n });\n\n const openDialogCancelSchedulerItem = useCallback(\n () =>\n showConfirmation(async () => {\n try {\n await cancelItem(item.id);\n showSnackbar(`Action on item \"${item.title}\" was canceled successfully!`);\n } catch (ex) {\n showSnackbar(ex.message || `Error while canceling action for \"${item.title}\".`);\n }\n }),\n [item]\n );\n\n return { openDialogCancelSchedulerItem };\n};\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,WAAW,QAAQ,OAAO;AAC1C,SAASC,qBAAqB,EAAEC,WAAW,QAAQ,mBAAmB;AACtE,SAASC,YAAY;AAOrB,OAAO,MAAMC,sBAAsB,GAAGA,CAAC;EAAEC;AAAkC,CAAC,KAAK;EAC7E,MAAM;IAAEC;EAAW,CAAC,GAAGH,YAAY,CAAC,CAAC;EACrC,MAAM;IAAEI;EAAa,CAAC,GAAGL,WAAW,CAAC,CAAC;EAEtC,MAAM;IAAEM;EAAiB,CAAC,GAAGP,qBAAqB,CAAC;IAC/CQ,KAAK,EAAE,0BAA0B;IACjCC,OAAO,eACHX,KAAA,CAAAY,aAAA,YAAG,yDAEC,eAAAZ,KAAA,CAAAY,aAAA,WAAK,CAAC,8CACoC,eAAAZ,KAAA,CAAAY,aAAA,iBAASN,IAAI,CAACO,IAAa,CAAC,QAAI,EAAC,GAAG,eAC9Eb,KAAA,CAAAY,aAAA,iBAASN,IAAI,CAACI,KAAc,CAAC,KAC9B;EAEX,CAAC,CAAC;EAEF,MAAMI,6BAA6B,GAAGb,WAAW,CAC7C,MACIQ,gBAAgB,CAAC,YAAY;IACzB,IAAI;MACA,MAAMF,UAAU,CAACD,IAAI,CAACS,EAAE,CAAC;MACzBP,YAAY,CAAC,mBAAmBF,IAAI,CAACI,KAAK,8BAA8B,CAAC;IAC7E,CAAC,CAAC,OAAOM,EAAE,EAAE;MACTR,YAAY,CAACQ,EAAE,CAACL,OAAO,IAAI,qCAAqCL,IAAI,CAACI,KAAK,IAAI,CAAC;IACnF;EACJ,CAAC,CAAC,EACN,CAACJ,IAAI,CACT,CAAC;EAED,OAAO;IAAEQ;EAA8B,CAAC;AAC5C,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","useCallback","useConfirmationDialog","useSnackbar","useScheduler","useCancelSchedulerItem","item","cancelItem","showSnackbar","showConfirmation","title","message","createElement","type","openDialogCancelSchedulerItem","id","ex"],"sources":["useCancelSchedulerItem.tsx"],"sourcesContent":["import React, { useCallback } from \"react\";\nimport { useConfirmationDialog, useSnackbar } from \"@webiny/app-admin\";\nimport { useScheduler } from \"./useScheduler.js\";\nimport type { SchedulerEntry } from \"~/types.js\";\n\ninterface UseCancelScheduleItemParams {\n item: Pick<SchedulerEntry, \"id\" | \"title\" | \"type\">;\n}\n\nexport const useCancelSchedulerItem = ({ item }: UseCancelScheduleItemParams) => {\n const { cancelItem } = useScheduler();\n const { showSnackbar } = useSnackbar();\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>{item.type}</strong> for{\" \"}\n <strong>{item.title}</strong>?\n </p>\n )\n });\n\n const openDialogCancelSchedulerItem = useCallback(\n () =>\n showConfirmation(async () => {\n try {\n await cancelItem(item.id);\n showSnackbar(`Action on item \"${item.title}\" was canceled successfully!`);\n } catch (ex) {\n showSnackbar(ex.message || `Error while canceling action for \"${item.title}\".`);\n }\n }),\n [item]\n );\n\n return { openDialogCancelSchedulerItem };\n};\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,WAAW,QAAQ,OAAO;AAC1C,SAASC,qBAAqB,EAAEC,WAAW,QAAQ,mBAAmB;AACtE,SAASC,YAAY;AAOrB,OAAO,MAAMC,sBAAsB,GAAGA,CAAC;EAAEC;AAAkC,CAAC,KAAK;EAC7E,MAAM;IAAEC;EAAW,CAAC,GAAGH,YAAY,CAAC,CAAC;EACrC,MAAM;IAAEI;EAAa,CAAC,GAAGL,WAAW,CAAC,CAAC;EAEtC,MAAM;IAAEM;EAAiB,CAAC,GAAGP,qBAAqB,CAAC;IAC/CQ,KAAK,EAAE,0BAA0B;IACjCC,OAAO,eACHX,KAAA,CAAAY,aAAA,YAAG,yDAEC,eAAAZ,KAAA,CAAAY,aAAA,WAAK,CAAC,8CACoC,eAAAZ,KAAA,CAAAY,aAAA,iBAASN,IAAI,CAACO,IAAa,CAAC,QAAI,EAAC,GAAG,eAC9Eb,KAAA,CAAAY,aAAA,iBAASN,IAAI,CAACI,KAAc,CAAC,KAC9B;EAEX,CAAC,CAAC;EAEF,MAAMI,6BAA6B,GAAGb,WAAW,CAC7C,MACIQ,gBAAgB,CAAC,YAAY;IACzB,IAAI;MACA,MAAMF,UAAU,CAACD,IAAI,CAACS,EAAE,CAAC;MACzBP,YAAY,CAAC,mBAAmBF,IAAI,CAACI,KAAK,8BAA8B,CAAC;IAC7E,CAAC,CAAC,OAAOM,EAAE,EAAE;MACTR,YAAY,CAACQ,EAAE,CAACL,OAAO,IAAI,qCAAqCL,IAAI,CAACI,KAAK,IAAI,CAAC;IACnF;EACJ,CAAC,CAAC,EACN,CAACJ,IAAI,CACT,CAAC;EAED,OAAO;IAAEQ;EAA8B,CAAC;AAC5C,CAAC","ignoreList":[]}
@@ -1,12 +1,11 @@
1
- /// <reference types="react" />
2
- import type { ISchedulerControllers, ISchedulerPresenter } from "../abstractions";
3
- import type { SchedulerEntry } from "../../types";
1
+ import type { ISchedulerControllers, ISchedulerPresenter } from "../../Presentation/abstractions/index.js";
2
+ import type { SchedulerEntry } from "../../types.js";
4
3
  export interface SchedulerContext {
5
4
  controllers: ISchedulerControllers;
6
5
  presenter: ISchedulerPresenter;
7
6
  }
8
7
  export declare const useScheduler: () => {
9
- vm: import("../abstractions").SchedulerPresenterViewModel;
8
+ vm: import("~/Presentation/abstractions/index.js").SchedulerPresenterViewModel;
10
9
  cancelItem: (id: string) => Promise<void>;
11
10
  publishItem: (id: string, scheduleOn: Date) => Promise<void>;
12
11
  unpublishItem: (id: string, scheduleOn: Date) => Promise<void>;
@@ -16,12 +15,12 @@ export declare const useScheduler: () => {
16
15
  selectItems: (items: SchedulerEntry[]) => Promise<void>;
17
16
  selectAllItems: () => Promise<void>;
18
17
  unselectAllItems: () => Promise<void>;
19
- sortItems: import("@webiny/admin-ui/DataTable/DataTable").OnDataTableSortingChange;
18
+ sortItems: import("@webiny/admin-ui/DataTable").OnDataTableSortingChange;
20
19
  searchItems: (value: string) => Promise<void>;
21
20
  };
22
21
  export declare const SchedulerProvider: {
23
22
  ({ children, ...props }: SchedulerContext & {
24
- children: import("react").ReactNode;
25
- }): import("react").JSX.Element;
23
+ children: React.ReactNode;
24
+ }): React.JSX.Element;
26
25
  displayName: string;
27
26
  };
@@ -1 +1 @@
1
- {"version":3,"names":["useCallback","useEffect","useMemo","useState","autorun","createGenericContext","Provider","useHook","useScheduler","context","vm","setVm","presenter","newState","cancelItem","id","controllers","scheduleCancelItem","execute","publishItem","scheduleOn","schedulePublishItem","unpublishItem","scheduleUnpublishItem","listItems","getItem","listMoreItems","selectItems","items","selectAllItems","unselectAllItems","sortItems","searchItems","value","SchedulerProvider"],"sources":["useScheduler.tsx"],"sourcesContent":["import { useCallback, useEffect, useMemo, useState } from \"react\";\nimport { autorun } from \"mobx\";\nimport { createGenericContext } from \"@webiny/app-admin\";\nimport type { ISchedulerControllers, ISchedulerPresenter } from \"~/Presentation/abstractions\";\nimport type { SchedulerEntry } from \"~/types\";\n\nexport interface SchedulerContext {\n controllers: ISchedulerControllers;\n presenter: ISchedulerPresenter;\n}\n\nconst { Provider, useHook } = createGenericContext<SchedulerContext>(\"SchedulerContext\");\n\nexport const useScheduler = () => {\n const context = useHook();\n const [vm, setVm] = useState(context.presenter.vm);\n\n useEffect(() => {\n return autorun(() => {\n const newState = context.presenter.vm;\n setVm(newState);\n });\n }, [context.presenter]);\n\n const cancelItem = useCallback(\n (id: string) => context.controllers.scheduleCancelItem.execute(id),\n [context.controllers.scheduleCancelItem]\n );\n\n const publishItem = useCallback(\n (id: string, scheduleOn: Date) =>\n context.controllers.schedulePublishItem.execute(id, scheduleOn),\n [context.controllers.schedulePublishItem]\n );\n\n const unpublishItem = useCallback(\n (id: string, scheduleOn: Date) =>\n context.controllers.scheduleUnpublishItem.execute(id, scheduleOn),\n [context.controllers.scheduleUnpublishItem]\n );\n\n const listItems = useCallback(\n () => context.controllers.listItems.execute(),\n [context.controllers.listItems]\n );\n const getItem = useCallback(\n (id: string) => {\n return context.controllers.getItem.execute({\n id\n });\n },\n [context.controllers.getItem]\n );\n\n const listMoreItems = useCallback(\n () => context.controllers.listMoreItems.execute(),\n [context.controllers.listMoreItems]\n );\n\n const selectItems = useCallback(\n (items: SchedulerEntry[]) => context.controllers.selectItems.execute(items),\n [context.controllers.selectItems]\n );\n\n const selectAllItems = useCallback(\n () => context.controllers.selectAllItems.execute(),\n [context.controllers.selectAllItems]\n );\n\n const unselectAllItems = useCallback(\n () => context.controllers.unselectAllItems.execute(),\n [context.controllers.unselectAllItems]\n );\n\n const sortItems = useMemo(\n () => context.controllers.sortItems.execute,\n [context.controllers.sortItems]\n );\n\n const searchItems = useCallback(\n (value: string) => {\n return context.controllers.searchItems.execute(value);\n },\n [context.controllers.searchItems]\n );\n\n return {\n vm,\n cancelItem,\n publishItem,\n unpublishItem,\n getItem,\n listItems,\n listMoreItems,\n selectItems,\n selectAllItems,\n unselectAllItems,\n sortItems,\n searchItems\n };\n};\n\nexport const SchedulerProvider = Provider;\n"],"mappings":"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","ignoreList":[]}
1
+ {"version":3,"names":["useCallback","useEffect","useMemo","useState","autorun","createGenericContext","Provider","useHook","useScheduler","context","vm","setVm","presenter","newState","cancelItem","id","controllers","scheduleCancelItem","execute","publishItem","scheduleOn","schedulePublishItem","unpublishItem","scheduleUnpublishItem","listItems","getItem","listMoreItems","selectItems","items","selectAllItems","unselectAllItems","sortItems","searchItems","value","SchedulerProvider"],"sources":["useScheduler.tsx"],"sourcesContent":["import { useCallback, useEffect, useMemo, useState } from \"react\";\nimport { autorun } from \"mobx\";\nimport { createGenericContext } from \"@webiny/app-admin\";\nimport type {\n ISchedulerControllers,\n ISchedulerPresenter\n} from \"~/Presentation/abstractions/index.js\";\nimport type { SchedulerEntry } from \"~/types.js\";\n\nexport interface SchedulerContext {\n controllers: ISchedulerControllers;\n presenter: ISchedulerPresenter;\n}\n\nconst { Provider, useHook } = createGenericContext<SchedulerContext>(\"SchedulerContext\");\n\nexport const useScheduler = () => {\n const context = useHook();\n const [vm, setVm] = useState(context.presenter.vm);\n\n useEffect(() => {\n return autorun(() => {\n const newState = context.presenter.vm;\n setVm(newState);\n });\n }, [context.presenter]);\n\n const cancelItem = useCallback(\n (id: string) => context.controllers.scheduleCancelItem.execute(id),\n [context.controllers.scheduleCancelItem]\n );\n\n const publishItem = useCallback(\n (id: string, scheduleOn: Date) =>\n context.controllers.schedulePublishItem.execute(id, scheduleOn),\n [context.controllers.schedulePublishItem]\n );\n\n const unpublishItem = useCallback(\n (id: string, scheduleOn: Date) =>\n context.controllers.scheduleUnpublishItem.execute(id, scheduleOn),\n [context.controllers.scheduleUnpublishItem]\n );\n\n const listItems = useCallback(\n () => context.controllers.listItems.execute(),\n [context.controllers.listItems]\n );\n const getItem = useCallback(\n (id: string) => {\n return context.controllers.getItem.execute({\n id\n });\n },\n [context.controllers.getItem]\n );\n\n const listMoreItems = useCallback(\n () => context.controllers.listMoreItems.execute(),\n [context.controllers.listMoreItems]\n );\n\n const selectItems = useCallback(\n (items: SchedulerEntry[]) => context.controllers.selectItems.execute(items),\n [context.controllers.selectItems]\n );\n\n const selectAllItems = useCallback(\n () => context.controllers.selectAllItems.execute(),\n [context.controllers.selectAllItems]\n );\n\n const unselectAllItems = useCallback(\n () => context.controllers.unselectAllItems.execute(),\n [context.controllers.unselectAllItems]\n );\n\n const sortItems = useMemo(\n () => context.controllers.sortItems.execute,\n [context.controllers.sortItems]\n );\n\n const searchItems = useCallback(\n (value: string) => {\n return context.controllers.searchItems.execute(value);\n },\n [context.controllers.searchItems]\n );\n\n return {\n vm,\n cancelItem,\n publishItem,\n unpublishItem,\n getItem,\n listItems,\n listMoreItems,\n selectItems,\n selectAllItems,\n unselectAllItems,\n sortItems,\n searchItems\n };\n};\n\nexport const SchedulerProvider = Provider;\n"],"mappings":"AAAA,SAASA,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AACjE,SAASC,OAAO,QAAQ,MAAM;AAC9B,SAASC,oBAAoB,QAAQ,mBAAmB;AAYxD,MAAM;EAAEC,QAAQ;EAAEC;AAAQ,CAAC,GAAGF,oBAAoB,CAAmB,kBAAkB,CAAC;AAExF,OAAO,MAAMG,YAAY,GAAGA,CAAA,KAAM;EAC9B,MAAMC,OAAO,GAAGF,OAAO,CAAC,CAAC;EACzB,MAAM,CAACG,EAAE,EAAEC,KAAK,CAAC,GAAGR,QAAQ,CAACM,OAAO,CAACG,SAAS,CAACF,EAAE,CAAC;EAElDT,SAAS,CAAC,MAAM;IACZ,OAAOG,OAAO,CAAC,MAAM;MACjB,MAAMS,QAAQ,GAAGJ,OAAO,CAACG,SAAS,CAACF,EAAE;MACrCC,KAAK,CAACE,QAAQ,CAAC;IACnB,CAAC,CAAC;EACN,CAAC,EAAE,CAACJ,OAAO,CAACG,SAAS,CAAC,CAAC;EAEvB,MAAME,UAAU,GAAGd,WAAW,CACzBe,EAAU,IAAKN,OAAO,CAACO,WAAW,CAACC,kBAAkB,CAACC,OAAO,CAACH,EAAE,CAAC,EAClE,CAACN,OAAO,CAACO,WAAW,CAACC,kBAAkB,CAC3C,CAAC;EAED,MAAME,WAAW,GAAGnB,WAAW,CAC3B,CAACe,EAAU,EAAEK,UAAgB,KACzBX,OAAO,CAACO,WAAW,CAACK,mBAAmB,CAACH,OAAO,CAACH,EAAE,EAAEK,UAAU,CAAC,EACnE,CAACX,OAAO,CAACO,WAAW,CAACK,mBAAmB,CAC5C,CAAC;EAED,MAAMC,aAAa,GAAGtB,WAAW,CAC7B,CAACe,EAAU,EAAEK,UAAgB,KACzBX,OAAO,CAACO,WAAW,CAACO,qBAAqB,CAACL,OAAO,CAACH,EAAE,EAAEK,UAAU,CAAC,EACrE,CAACX,OAAO,CAACO,WAAW,CAACO,qBAAqB,CAC9C,CAAC;EAED,MAAMC,SAAS,GAAGxB,WAAW,CACzB,MAAMS,OAAO,CAACO,WAAW,CAACQ,SAAS,CAACN,OAAO,CAAC,CAAC,EAC7C,CAACT,OAAO,CAACO,WAAW,CAACQ,SAAS,CAClC,CAAC;EACD,MAAMC,OAAO,GAAGzB,WAAW,CACtBe,EAAU,IAAK;IACZ,OAAON,OAAO,CAACO,WAAW,CAACS,OAAO,CAACP,OAAO,CAAC;MACvCH;IACJ,CAAC,CAAC;EACN,CAAC,EACD,CAACN,OAAO,CAACO,WAAW,CAACS,OAAO,CAChC,CAAC;EAED,MAAMC,aAAa,GAAG1B,WAAW,CAC7B,MAAMS,OAAO,CAACO,WAAW,CAACU,aAAa,CAACR,OAAO,CAAC,CAAC,EACjD,CAACT,OAAO,CAACO,WAAW,CAACU,aAAa,CACtC,CAAC;EAED,MAAMC,WAAW,GAAG3B,WAAW,CAC1B4B,KAAuB,IAAKnB,OAAO,CAACO,WAAW,CAACW,WAAW,CAACT,OAAO,CAACU,KAAK,CAAC,EAC3E,CAACnB,OAAO,CAACO,WAAW,CAACW,WAAW,CACpC,CAAC;EAED,MAAME,cAAc,GAAG7B,WAAW,CAC9B,MAAMS,OAAO,CAACO,WAAW,CAACa,cAAc,CAACX,OAAO,CAAC,CAAC,EAClD,CAACT,OAAO,CAACO,WAAW,CAACa,cAAc,CACvC,CAAC;EAED,MAAMC,gBAAgB,GAAG9B,WAAW,CAChC,MAAMS,OAAO,CAACO,WAAW,CAACc,gBAAgB,CAACZ,OAAO,CAAC,CAAC,EACpD,CAACT,OAAO,CAACO,WAAW,CAACc,gBAAgB,CACzC,CAAC;EAED,MAAMC,SAAS,GAAG7B,OAAO,CACrB,MAAMO,OAAO,CAACO,WAAW,CAACe,SAAS,CAACb,OAAO,EAC3C,CAACT,OAAO,CAACO,WAAW,CAACe,SAAS,CAClC,CAAC;EAED,MAAMC,WAAW,GAAGhC,WAAW,CAC1BiC,KAAa,IAAK;IACf,OAAOxB,OAAO,CAACO,WAAW,CAACgB,WAAW,CAACd,OAAO,CAACe,KAAK,CAAC;EACzD,CAAC,EACD,CAACxB,OAAO,CAACO,WAAW,CAACgB,WAAW,CACpC,CAAC;EAED,OAAO;IACHtB,EAAE;IACFI,UAAU;IACVK,WAAW;IACXG,aAAa;IACbG,OAAO;IACPD,SAAS;IACTE,aAAa;IACbC,WAAW;IACXE,cAAc;IACdC,gBAAgB;IAChBC,SAAS;IACTC;EACJ,CAAC;AACL,CAAC;AAED,OAAO,MAAME,iBAAiB,GAAG5B,QAAQ","ignoreList":[]}
@@ -1,12 +1,11 @@
1
- /// <reference types="react" />
2
- import type { SchedulerEntry } from "../../types";
1
+ import type { SchedulerEntry } from "../../types.js";
3
2
  export interface SchedulerItemContext {
4
3
  item: SchedulerEntry;
5
4
  }
6
5
  export declare const useSchedulerItem: () => SchedulerItemContext;
7
6
  export declare const SchedulerItemProvider: {
8
7
  ({ children, ...props }: SchedulerItemContext & {
9
- children: import("react").ReactNode;
10
- }): import("react").JSX.Element;
8
+ children: React.ReactNode;
9
+ }): React.JSX.Element;
11
10
  displayName: string;
12
11
  };
@@ -1 +1 @@
1
- {"version":3,"names":["createGenericContext","Provider","useHook","useSchedulerItem","SchedulerItemProvider"],"sources":["useSchedulerItem.tsx"],"sourcesContent":["import { createGenericContext } from \"@webiny/app-admin\";\nimport type { SchedulerEntry } from \"~/types\";\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"],"mappings":"AAAA,SAASA,oBAAoB,QAAQ,mBAAmB;AAOxD,MAAM;EAAEC,QAAQ;EAAEC;AAAQ,CAAC,GAAGF,oBAAoB,CAAuB,sBAAsB,CAAC;AAEhG,OAAO,MAAMG,gBAAgB,GAAGD,OAAO;AACvC,OAAO,MAAME,qBAAqB,GAAGH,QAAQ","ignoreList":[]}
1
+ {"version":3,"names":["createGenericContext","Provider","useHook","useSchedulerItem","SchedulerItemProvider"],"sources":["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"],"mappings":"AAAA,SAASA,oBAAoB,QAAQ,mBAAmB;AAOxD,MAAM;EAAEC,QAAQ;EAAEC;AAAQ,CAAC,GAAGF,oBAAoB,CAAuB,sBAAsB,CAAC;AAEhG,OAAO,MAAMG,gBAAgB,GAAGD,OAAO;AACvC,OAAO,MAAME,qBAAqB,GAAGH,QAAQ","ignoreList":[]}
@@ -2,7 +2,11 @@ import React from "react";
2
2
  import type { ISchedulerCancelGateway, ISchedulerGetGateway, ISchedulerListGateway, ISchedulerPublishGateway, ISchedulerUnpublishGateway } from "../Gateways/index.js";
3
3
  import type { CmsModel } from "@webiny/app-headless-cms-common/types/index.js";
4
4
  export * from "./components/ScheduleDialog/index.js";
5
- export * from "./SchedulerConfigs/index.js";
5
+ export * from "../Presentation/SchedulerConfigs/index.js";
6
+ /**
7
+ * Decoratable Cells.
8
+ */
9
+ export * from "./components/Cells/CellScheduledOn/index.js";
6
10
  export interface SchedulerRenderPropParams {
7
11
  showScheduler: () => void;
8
12
  }
@@ -1,10 +1,14 @@
1
1
  import React, { useCallback, useState } from "react";
2
- import { AcoWithConfig } from "@webiny/app-aco";
3
- import { SchedulerRenderer } from "./SchedulerRenderer";
2
+ import { SchedulerRenderer } from "./SchedulerRenderer/index.js";
4
3
  import { CompositionScope } from "@webiny/react-composition";
5
- import { SchedulerListWithConfig } from "./configs";
4
+ import { SchedulerListWithConfig } from "./configs/index.js";
6
5
  export * from "./components/ScheduleDialog/index.js";
7
6
  export * from "./SchedulerConfigs/index.js";
7
+
8
+ /**
9
+ * Decoratable Cells.
10
+ */
11
+ export * from "./components/Cells/CellScheduledOn/index.js";
8
12
  export const Scheduler = ({
9
13
  render,
10
14
  ...rest
@@ -21,9 +25,9 @@ export const Scheduler = ({
21
25
  }, [rest.onClose]);
22
26
  return /*#__PURE__*/React.createElement(React.Fragment, null, show && /*#__PURE__*/React.createElement(CompositionScope, {
23
27
  name: "scheduler"
24
- }, /*#__PURE__*/React.createElement(AcoWithConfig, null, /*#__PURE__*/React.createElement(SchedulerListWithConfig, null, /*#__PURE__*/React.createElement(SchedulerRenderer, Object.assign({}, rest, {
28
+ }, /*#__PURE__*/React.createElement(SchedulerListWithConfig, null, /*#__PURE__*/React.createElement(SchedulerRenderer, Object.assign({}, rest, {
25
29
  onClose: onClose
26
- }))))), render ? render({
30
+ })))), render ? render({
27
31
  showScheduler
28
32
  }) : null);
29
33
  };
@@ -1 +1 @@
1
- {"version":3,"names":["React","useCallback","useState","AcoWithConfig","SchedulerRenderer","CompositionScope","SchedulerListWithConfig","Scheduler","render","rest","show","setShow","showScheduler","onClose","createElement","Fragment","name","Object","assign"],"sources":["index.tsx"],"sourcesContent":["import React, { useCallback, useState } from \"react\";\nimport { AcoWithConfig } from \"@webiny/app-aco\";\nimport { SchedulerRenderer } from \"~/Presentation/SchedulerRenderer\";\nimport { CompositionScope } from \"@webiny/react-composition\";\nimport { SchedulerListWithConfig } from \"~/Presentation/configs\";\nimport type {\n ISchedulerCancelGateway,\n ISchedulerGetGateway,\n ISchedulerListGateway,\n ISchedulerPublishGateway,\n ISchedulerUnpublishGateway\n} from \"~/Gateways/index.js\";\nimport type { CmsModel } from \"@webiny/app-headless-cms-common/types/index.js\";\n\nexport * from \"./components/ScheduleDialog/index.js\";\nexport * from \"~/Presentation/SchedulerConfigs/index.js\";\n\nexport interface SchedulerRenderPropParams {\n showScheduler: () => void;\n}\n\ninterface SchedulerRenderProps {\n (params: SchedulerRenderPropParams): React.ReactNode;\n}\n\nexport interface SchedulerProps {\n model: Pick<CmsModel, \"modelId\">;\n render: SchedulerRenderProps;\n getGateway: ISchedulerGetGateway;\n listGateway: ISchedulerListGateway;\n cancelGateway: ISchedulerCancelGateway;\n publishGateway: ISchedulerPublishGateway;\n unpublishGateway: ISchedulerUnpublishGateway;\n onClose?: () => void;\n show?: boolean;\n title?: string;\n}\n\nexport const Scheduler = ({ render, ...rest }: SchedulerProps) => {\n const [show, setShow] = useState(rest.show ?? false);\n\n const showScheduler = useCallback(() => {\n setShow(true);\n }, []);\n\n const onClose = useCallback(() => {\n if (typeof rest.onClose === \"function\") {\n rest.onClose();\n }\n\n setShow(false);\n }, [rest.onClose]);\n\n return (\n <>\n {show && (\n <CompositionScope name={\"scheduler\"}>\n <AcoWithConfig>\n <SchedulerListWithConfig>\n <SchedulerRenderer {...rest} onClose={onClose} />\n </SchedulerListWithConfig>\n </AcoWithConfig>\n </CompositionScope>\n )}\n {render ? render({ showScheduler }) : null}\n </>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,QAAQ,QAAQ,OAAO;AACpD,SAASC,aAAa,QAAQ,iBAAiB;AAC/C,SAASC,iBAAiB;AAC1B,SAASC,gBAAgB,QAAQ,2BAA2B;AAC5D,SAASC,uBAAuB;AAUhC;AACA;AAuBA,OAAO,MAAMC,SAAS,GAAGA,CAAC;EAAEC,MAAM;EAAE,GAAGC;AAAqB,CAAC,KAAK;EAC9D,MAAM,CAACC,IAAI,EAAEC,OAAO,CAAC,GAAGT,QAAQ,CAACO,IAAI,CAACC,IAAI,IAAI,KAAK,CAAC;EAEpD,MAAME,aAAa,GAAGX,WAAW,CAAC,MAAM;IACpCU,OAAO,CAAC,IAAI,CAAC;EACjB,CAAC,EAAE,EAAE,CAAC;EAEN,MAAME,OAAO,GAAGZ,WAAW,CAAC,MAAM;IAC9B,IAAI,OAAOQ,IAAI,CAACI,OAAO,KAAK,UAAU,EAAE;MACpCJ,IAAI,CAACI,OAAO,CAAC,CAAC;IAClB;IAEAF,OAAO,CAAC,KAAK,CAAC;EAClB,CAAC,EAAE,CAACF,IAAI,CAACI,OAAO,CAAC,CAAC;EAElB,oBACIb,KAAA,CAAAc,aAAA,CAAAd,KAAA,CAAAe,QAAA,QACKL,IAAI,iBACDV,KAAA,CAAAc,aAAA,CAACT,gBAAgB;IAACW,IAAI,EAAE;EAAY,gBAChChB,KAAA,CAAAc,aAAA,CAACX,aAAa,qBACVH,KAAA,CAAAc,aAAA,CAACR,uBAAuB,qBACpBN,KAAA,CAAAc,aAAA,CAACV,iBAAiB,EAAAa,MAAA,CAAAC,MAAA,KAAKT,IAAI;IAAEI,OAAO,EAAEA;EAAQ,EAAE,CAC3B,CACd,CACD,CACrB,EACAL,MAAM,GAAGA,MAAM,CAAC;IAAEI;EAAc,CAAC,CAAC,GAAG,IACxC,CAAC;AAEX,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","useCallback","useState","SchedulerRenderer","CompositionScope","SchedulerListWithConfig","Scheduler","render","rest","show","setShow","showScheduler","onClose","createElement","Fragment","name","Object","assign"],"sources":["index.tsx"],"sourcesContent":["import React, { useCallback, useState } from \"react\";\nimport { SchedulerRenderer } from \"~/Presentation/SchedulerRenderer/index.js\";\nimport { CompositionScope } from \"@webiny/react-composition\";\nimport { SchedulerListWithConfig } from \"~/Presentation/configs/index.js\";\nimport type {\n ISchedulerCancelGateway,\n ISchedulerGetGateway,\n ISchedulerListGateway,\n ISchedulerPublishGateway,\n ISchedulerUnpublishGateway\n} from \"~/Gateways/index.js\";\nimport type { CmsModel } from \"@webiny/app-headless-cms-common/types/index.js\";\n\nexport * from \"./components/ScheduleDialog/index.js\";\nexport * from \"~/Presentation/SchedulerConfigs/index.js\";\n\n/**\n * Decoratable Cells.\n */\nexport * from \"./components/Cells/CellScheduledOn/index.js\";\n\nexport interface SchedulerRenderPropParams {\n showScheduler: () => void;\n}\n\ninterface SchedulerRenderProps {\n (params: SchedulerRenderPropParams): React.ReactNode;\n}\n\nexport interface SchedulerProps {\n model: Pick<CmsModel, \"modelId\">;\n render: SchedulerRenderProps;\n getGateway: ISchedulerGetGateway;\n listGateway: ISchedulerListGateway;\n cancelGateway: ISchedulerCancelGateway;\n publishGateway: ISchedulerPublishGateway;\n unpublishGateway: ISchedulerUnpublishGateway;\n onClose?: () => void;\n show?: boolean;\n title?: string;\n}\n\nexport const Scheduler = ({ render, ...rest }: SchedulerProps) => {\n const [show, setShow] = useState(rest.show ?? false);\n\n const showScheduler = useCallback(() => {\n setShow(true);\n }, []);\n\n const onClose = useCallback(() => {\n if (typeof rest.onClose === \"function\") {\n rest.onClose();\n }\n\n setShow(false);\n }, [rest.onClose]);\n\n return (\n <>\n {show && (\n <CompositionScope name={\"scheduler\"}>\n <SchedulerListWithConfig>\n <SchedulerRenderer {...rest} onClose={onClose} />\n </SchedulerListWithConfig>\n </CompositionScope>\n )}\n {render ? render({ showScheduler }) : null}\n </>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,QAAQ,QAAQ,OAAO;AACpD,SAASC,iBAAiB;AAC1B,SAASC,gBAAgB,QAAQ,2BAA2B;AAC5D,SAASC,uBAAuB;AAUhC;AACA;;AAEA;AACA;AACA;AACA;AAuBA,OAAO,MAAMC,SAAS,GAAGA,CAAC;EAAEC,MAAM;EAAE,GAAGC;AAAqB,CAAC,KAAK;EAC9D,MAAM,CAACC,IAAI,EAAEC,OAAO,CAAC,GAAGR,QAAQ,CAACM,IAAI,CAACC,IAAI,IAAI,KAAK,CAAC;EAEpD,MAAME,aAAa,GAAGV,WAAW,CAAC,MAAM;IACpCS,OAAO,CAAC,IAAI,CAAC;EACjB,CAAC,EAAE,EAAE,CAAC;EAEN,MAAME,OAAO,GAAGX,WAAW,CAAC,MAAM;IAC9B,IAAI,OAAOO,IAAI,CAACI,OAAO,KAAK,UAAU,EAAE;MACpCJ,IAAI,CAACI,OAAO,CAAC,CAAC;IAClB;IAEAF,OAAO,CAAC,KAAK,CAAC;EAClB,CAAC,EAAE,CAACF,IAAI,CAACI,OAAO,CAAC,CAAC;EAElB,oBACIZ,KAAA,CAAAa,aAAA,CAAAb,KAAA,CAAAc,QAAA,QACKL,IAAI,iBACDT,KAAA,CAAAa,aAAA,CAACT,gBAAgB;IAACW,IAAI,EAAE;EAAY,gBAChCf,KAAA,CAAAa,aAAA,CAACR,uBAAuB,qBACpBL,KAAA,CAAAa,aAAA,CAACV,iBAAiB,EAAAa,MAAA,CAAAC,MAAA,KAAKT,IAAI;IAAEI,OAAO,EAAEA;EAAQ,EAAE,CAC3B,CACX,CACrB,EACAL,MAAM,GAAGA,MAAM,CAAC;IAAEI;EAAc,CAAC,CAAC,GAAG,IACxC,CAAC;AAEX,CAAC","ignoreList":[]}
package/README.md CHANGED
@@ -1,22 +1,11 @@
1
1
  # @webiny/app-headless-cms-scheduler
2
2
 
3
- [![](https://img.shields.io/npm/dw/@webiny/app-headless-cms-scheduler.svg)](https://www.npmjs.com/package/@webiny/app-headless-cms-scheduler)
4
- [![](https://img.shields.io/npm/v/@webiny/app-headless-cms-scheduler.svg)](https://www.npmjs.com/package/@webiny/app-headless-cms-scheduler)
5
- [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
6
- [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
3
+ > [!NOTE]
4
+ > This package is part of the [Webiny](https://www.webiny.com) monorepo.
5
+ > It’s **included in every Webiny project by default** and is not meant to be used as a standalone package.
7
6
 
8
- An app for changing the mailer settings.
7
+ 📘 **Documentation:** [https://www.webiny.com/docs](https://www.webiny.com/docs)
9
8
 
10
- Use together with [@webiny/api-mailer](../api-mailer) package.
9
+ ---
11
10
 
12
- ## Install
13
-
14
- ```
15
- npm install --save @webiny/app-headless-cms-scheduler
16
- ```
17
-
18
- Or if you prefer yarn:
19
-
20
- ```
21
- yarn add @webiny/app-headless-cms-scheduler
22
- ```
11
+ _This README file is automatically generated during the publish process._
@@ -1,5 +1,5 @@
1
- import type { ISchedulerItemsRepository } from "../../Domain/Repositories";
2
- import type { ICancelItemUseCase } from "./ICancelItemUseCase";
1
+ import type { ISchedulerItemsRepository } from "../../Domain/Repositories/index.js";
2
+ import type { ICancelItemUseCase } from "./ICancelItemUseCase.js";
3
3
  export declare class ScheduleCancelItemUseCase implements ICancelItemUseCase {
4
4
  private repository;
5
5
  constructor(repository: ISchedulerItemsRepository);
@@ -1 +1 @@
1
- {"version":3,"names":["makeAutoObservable","ScheduleCancelItemUseCase","constructor","repository","execute","id","scheduleCancelItem"],"sources":["CancelItemUseCase.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport type { ISchedulerItemsRepository } from \"~/Domain/Repositories\";\nimport type { ICancelItemUseCase } from \"./ICancelItemUseCase\";\n\nexport class ScheduleCancelItemUseCase implements ICancelItemUseCase {\n private repository: ISchedulerItemsRepository;\n\n constructor(repository: ISchedulerItemsRepository) {\n this.repository = repository;\n makeAutoObservable(this);\n }\n\n async execute(id: string) {\n await this.repository.scheduleCancelItem(id);\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,MAAM;AAIzC,OAAO,MAAMC,yBAAyB,CAA+B;EAGjEC,WAAWA,CAACC,UAAqC,EAAE;IAC/C,IAAI,CAACA,UAAU,GAAGA,UAAU;IAC5BH,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEA,MAAMI,OAAOA,CAACC,EAAU,EAAE;IACtB,MAAM,IAAI,CAACF,UAAU,CAACG,kBAAkB,CAACD,EAAE,CAAC;EAChD;AACJ","ignoreList":[]}
1
+ {"version":3,"names":["makeAutoObservable","ScheduleCancelItemUseCase","constructor","repository","execute","id","scheduleCancelItem"],"sources":["CancelItemUseCase.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport type { ISchedulerItemsRepository } from \"~/Domain/Repositories/index.js\";\nimport type { ICancelItemUseCase } from \"./ICancelItemUseCase.js\";\n\nexport class ScheduleCancelItemUseCase implements ICancelItemUseCase {\n private repository: ISchedulerItemsRepository;\n\n constructor(repository: ISchedulerItemsRepository) {\n this.repository = repository;\n makeAutoObservable(this);\n }\n\n async execute(id: string) {\n await this.repository.scheduleCancelItem(id);\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,MAAM;AAIzC,OAAO,MAAMC,yBAAyB,CAA+B;EAGjEC,WAAWA,CAACC,UAAqC,EAAE;IAC/C,IAAI,CAACA,UAAU,GAAGA,UAAU;IAC5BH,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEA,MAAMI,OAAOA,CAACC,EAAU,EAAE;IACtB,MAAM,IAAI,CAACF,UAAU,CAACG,kBAAkB,CAACD,EAAE,CAAC;EAChD;AACJ","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- export * from "./ICancelItemUseCase.js";
1
+ export type * from "./ICancelItemUseCase.js";
2
2
  export * from "./CancelItemUseCase.js";
@@ -1,4 +1,3 @@
1
- export * from "./ICancelItemUseCase.js";
2
1
  export * from "./CancelItemUseCase.js";
3
2
 
4
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./ICancelItemUseCase.js\";\nexport * from \"./CancelItemUseCase.js\";\n"],"mappings":"AAAA;AACA","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export type * from \"./ICancelItemUseCase.js\";\nexport * from \"./CancelItemUseCase.js\";\n"],"mappings":"AACA","ignoreList":[]}
@@ -1,5 +1,5 @@
1
- import type { ISchedulerItemsRepository } from "../../Domain";
2
- import type { IGetItemUseCase } from "./IGetItemUseCase";
1
+ import type { ISchedulerItemsRepository } from "../../Domain/index.js";
2
+ import type { IGetItemUseCase } from "./IGetItemUseCase.js";
3
3
  import type { ISchedulerGetExecuteParams } from "../../Gateways/index.js";
4
4
  export declare class GetItemUseCase implements IGetItemUseCase {
5
5
  private itemsRepository;
@@ -1 +1 @@
1
- {"version":3,"names":["makeAutoObservable","GetItemUseCase","constructor","itemsRepository","execute","params","getItem"],"sources":["GetItemUseCase.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport type { ISchedulerItemsRepository } from \"~/Domain\";\nimport type { IGetItemUseCase } from \"./IGetItemUseCase\";\nimport type { ISchedulerGetExecuteParams } from \"~/Gateways/index.js\";\n\nexport class GetItemUseCase implements IGetItemUseCase {\n private itemsRepository: ISchedulerItemsRepository;\n constructor(itemsRepository: ISchedulerItemsRepository) {\n this.itemsRepository = itemsRepository;\n makeAutoObservable(this);\n }\n\n async execute(params: Omit<ISchedulerGetExecuteParams, \"modelId\">) {\n return await this.itemsRepository.getItem(params);\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,MAAM;AAKzC,OAAO,MAAMC,cAAc,CAA4B;EAEnDC,WAAWA,CAACC,eAA0C,EAAE;IACpD,IAAI,CAACA,eAAe,GAAGA,eAAe;IACtCH,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEA,MAAMI,OAAOA,CAACC,MAAmD,EAAE;IAC/D,OAAO,MAAM,IAAI,CAACF,eAAe,CAACG,OAAO,CAACD,MAAM,CAAC;EACrD;AACJ","ignoreList":[]}
1
+ {"version":3,"names":["makeAutoObservable","GetItemUseCase","constructor","itemsRepository","execute","params","getItem"],"sources":["GetItemUseCase.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport type { ISchedulerItemsRepository } from \"~/Domain/index.js\";\nimport type { IGetItemUseCase } from \"./IGetItemUseCase.js\";\nimport type { ISchedulerGetExecuteParams } from \"~/Gateways/index.js\";\n\nexport class GetItemUseCase implements IGetItemUseCase {\n private itemsRepository: ISchedulerItemsRepository;\n constructor(itemsRepository: ISchedulerItemsRepository) {\n this.itemsRepository = itemsRepository;\n makeAutoObservable(this);\n }\n\n async execute(params: Omit<ISchedulerGetExecuteParams, \"modelId\">) {\n return await this.itemsRepository.getItem(params);\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,MAAM;AAKzC,OAAO,MAAMC,cAAc,CAA4B;EAEnDC,WAAWA,CAACC,eAA0C,EAAE;IACpD,IAAI,CAACA,eAAe,GAAGA,eAAe;IACtCH,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEA,MAAMI,OAAOA,CAACC,MAAmD,EAAE;IAC/D,OAAO,MAAM,IAAI,CAACF,eAAe,CAACG,OAAO,CAACD,MAAM,CAAC;EACrD;AACJ","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- export * from "./IGetItemUseCase";
2
- export * from "./GetItemUseCase";
1
+ export type * from "./IGetItemUseCase.js";
2
+ export * from "./GetItemUseCase.js";
@@ -1,4 +1,3 @@
1
- export * from "./IGetItemUseCase";
2
- export * from "./GetItemUseCase";
1
+ export * from "./GetItemUseCase.js";
3
2
 
4
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./IGetItemUseCase\";\nexport * from \"./GetItemUseCase\";\n"],"mappings":"AAAA;AACA","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export type * from \"./IGetItemUseCase.js\";\nexport * from \"./GetItemUseCase.js\";\n"],"mappings":"AACA","ignoreList":[]}
@@ -1,7 +1,7 @@
1
- import type { ISchedulerItemsRepository } from "../../Domain";
1
+ import type { ISchedulerItemsRepository } from "../../Domain/index.js";
2
2
  import type { IGetScheduledItemUseCase } from "./IGetScheduledItemUseCase.js";
3
3
  export declare class GetScheduledItemUseCase implements IGetScheduledItemUseCase {
4
4
  private repository;
5
5
  constructor(repository: ISchedulerItemsRepository);
6
- execute(id: string): Promise<import("../../Domain").SchedulerItem | undefined>;
6
+ execute(id: string): Promise<import("~/Domain/index.js").SchedulerItem | undefined>;
7
7
  }
@@ -1 +1 @@
1
- {"version":3,"names":["makeAutoObservable","GetScheduledItemUseCase","constructor","repository","execute","id","items","getItems","find","item"],"sources":["GetScheduledItemUseCase.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport type { ISchedulerItemsRepository } from \"~/Domain\";\nimport type { IGetScheduledItemUseCase } from \"./IGetScheduledItemUseCase.js\";\n\nexport class GetScheduledItemUseCase implements IGetScheduledItemUseCase {\n private repository: ISchedulerItemsRepository;\n\n constructor(repository: ISchedulerItemsRepository) {\n this.repository = repository;\n makeAutoObservable(this);\n }\n\n async execute(id: string) {\n const items = this.repository.getItems();\n return items.find(item => item.id === id);\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,MAAM;AAIzC,OAAO,MAAMC,uBAAuB,CAAqC;EAGrEC,WAAWA,CAACC,UAAqC,EAAE;IAC/C,IAAI,CAACA,UAAU,GAAGA,UAAU;IAC5BH,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEA,MAAMI,OAAOA,CAACC,EAAU,EAAE;IACtB,MAAMC,KAAK,GAAG,IAAI,CAACH,UAAU,CAACI,QAAQ,CAAC,CAAC;IACxC,OAAOD,KAAK,CAACE,IAAI,CAACC,IAAI,IAAIA,IAAI,CAACJ,EAAE,KAAKA,EAAE,CAAC;EAC7C;AACJ","ignoreList":[]}
1
+ {"version":3,"names":["makeAutoObservable","GetScheduledItemUseCase","constructor","repository","execute","id","items","getItems","find","item"],"sources":["GetScheduledItemUseCase.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport type { ISchedulerItemsRepository } from \"~/Domain/index.js\";\nimport type { IGetScheduledItemUseCase } from \"./IGetScheduledItemUseCase.js\";\n\nexport class GetScheduledItemUseCase implements IGetScheduledItemUseCase {\n private repository: ISchedulerItemsRepository;\n\n constructor(repository: ISchedulerItemsRepository) {\n this.repository = repository;\n makeAutoObservable(this);\n }\n\n async execute(id: string) {\n const items = this.repository.getItems();\n return items.find(item => item.id === id);\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,MAAM;AAIzC,OAAO,MAAMC,uBAAuB,CAAqC;EAGrEC,WAAWA,CAACC,UAAqC,EAAE;IAC/C,IAAI,CAACA,UAAU,GAAGA,UAAU;IAC5BH,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEA,MAAMI,OAAOA,CAACC,EAAU,EAAE;IACtB,MAAMC,KAAK,GAAG,IAAI,CAACH,UAAU,CAACI,QAAQ,CAAC,CAAC;IACxC,OAAOD,KAAK,CAACE,IAAI,CAACC,IAAI,IAAIA,IAAI,CAACJ,EAAE,KAAKA,EAAE,CAAC;EAC7C;AACJ","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import type { SchedulerItem } from "../../Domain";
1
+ import type { SchedulerItem } from "../../Domain/index.js";
2
2
  export interface IGetScheduledItemUseCase {
3
3
  execute: (id: string) => Promise<SchedulerItem | undefined>;
4
4
  }
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["IGetScheduledItemUseCase.ts"],"sourcesContent":["import type { SchedulerItem } from \"~/Domain\";\n\nexport interface IGetScheduledItemUseCase {\n execute: (id: string) => Promise<SchedulerItem | undefined>;\n}\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["IGetScheduledItemUseCase.ts"],"sourcesContent":["import type { SchedulerItem } from \"~/Domain/index.js\";\n\nexport interface IGetScheduledItemUseCase {\n execute: (id: string) => Promise<SchedulerItem | undefined>;\n}\n"],"mappings":"","ignoreList":[]}
@@ -1,2 +1,2 @@
1
1
  export * from "./GetScheduledItemUseCase.js";
2
- export * from "./IGetScheduledItemUseCase.js";
2
+ export type * from "./IGetScheduledItemUseCase.js";
@@ -1,4 +1,3 @@
1
1
  export * from "./GetScheduledItemUseCase.js";
2
- export * from "./IGetScheduledItemUseCase.js";
3
2
 
4
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./GetScheduledItemUseCase.js\";\nexport * from \"./IGetScheduledItemUseCase.js\";\n"],"mappings":"AAAA;AACA","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./GetScheduledItemUseCase.js\";\nexport type * from \"./IGetScheduledItemUseCase.js\";\n"],"mappings":"AAAA","ignoreList":[]}
@@ -1,5 +1,5 @@
1
- import type { ISchedulerItemsRepository } from "../../Domain";
2
- import type { IListItemsUseCase } from "./IListItemsUseCase";
1
+ import type { ISchedulerItemsRepository } from "../../Domain/index.js";
2
+ import type { IListItemsUseCase } from "./IListItemsUseCase.js";
3
3
  import type { ISchedulerListExecuteParams } from "../../Gateways/index.js";
4
4
  export declare class ListItemsUseCase implements IListItemsUseCase {
5
5
  private itemsRepository;
@@ -1 +1 @@
1
- {"version":3,"names":["makeAutoObservable","ListItemsUseCase","constructor","itemsRepository","execute","params","listItems"],"sources":["ListItemsUseCase.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport type { ISchedulerItemsRepository } from \"~/Domain\";\nimport type { IListItemsUseCase } from \"./IListItemsUseCase\";\nimport type { ISchedulerListExecuteParams } from \"~/Gateways/index.js\";\n\nexport class ListItemsUseCase implements IListItemsUseCase {\n private itemsRepository: ISchedulerItemsRepository;\n constructor(itemsRepository: ISchedulerItemsRepository) {\n this.itemsRepository = itemsRepository;\n makeAutoObservable(this);\n }\n\n async execute(params?: Omit<ISchedulerListExecuteParams, \"modelId\">) {\n await this.itemsRepository.listItems(params || {});\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,MAAM;AAKzC,OAAO,MAAMC,gBAAgB,CAA8B;EAEvDC,WAAWA,CAACC,eAA0C,EAAE;IACpD,IAAI,CAACA,eAAe,GAAGA,eAAe;IACtCH,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEA,MAAMI,OAAOA,CAACC,MAAqD,EAAE;IACjE,MAAM,IAAI,CAACF,eAAe,CAACG,SAAS,CAACD,MAAM,IAAI,CAAC,CAAC,CAAC;EACtD;AACJ","ignoreList":[]}
1
+ {"version":3,"names":["makeAutoObservable","ListItemsUseCase","constructor","itemsRepository","execute","params","listItems"],"sources":["ListItemsUseCase.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport type { ISchedulerItemsRepository } from \"~/Domain/index.js\";\nimport type { IListItemsUseCase } from \"./IListItemsUseCase.js\";\nimport type { ISchedulerListExecuteParams } from \"~/Gateways/index.js\";\n\nexport class ListItemsUseCase implements IListItemsUseCase {\n private itemsRepository: ISchedulerItemsRepository;\n constructor(itemsRepository: ISchedulerItemsRepository) {\n this.itemsRepository = itemsRepository;\n makeAutoObservable(this);\n }\n\n async execute(params?: Omit<ISchedulerListExecuteParams, \"modelId\">) {\n await this.itemsRepository.listItems(params || {});\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,MAAM;AAKzC,OAAO,MAAMC,gBAAgB,CAA8B;EAEvDC,WAAWA,CAACC,eAA0C,EAAE;IACpD,IAAI,CAACA,eAAe,GAAGA,eAAe;IACtCH,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEA,MAAMI,OAAOA,CAACC,MAAqD,EAAE;IACjE,MAAM,IAAI,CAACF,eAAe,CAACG,SAAS,CAACD,MAAM,IAAI,CAAC,CAAC,CAAC;EACtD;AACJ","ignoreList":[]}
@@ -1,5 +1,5 @@
1
- import type { ISearchRepository } from "../../Domain";
2
- import type { IListItemsUseCase } from "./IListItemsUseCase";
1
+ import type { ISearchRepository } from "../../Domain/index.js";
2
+ import type { IListItemsUseCase } from "./IListItemsUseCase.js";
3
3
  import type { ISchedulerListExecuteParams } from "../../Gateways/index.js";
4
4
  export declare class ListItemsUseCaseWithSearch implements IListItemsUseCase {
5
5
  private searchRepository;
@@ -1 +1 @@
1
- {"version":3,"names":["makeAutoObservable","ListItemsUseCaseWithSearch","constructor","searchRepository","useCase","execute","params","search","get","where","title_contains","length","undefined"],"sources":["ListItemsUseCaseWithSearch.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport type { ISearchRepository } from \"~/Domain\";\nimport type { IListItemsUseCase } from \"./IListItemsUseCase\";\nimport type { ISchedulerListExecuteParams } from \"~/Gateways/index.js\";\n\nexport class ListItemsUseCaseWithSearch implements IListItemsUseCase {\n private searchRepository: ISearchRepository;\n private useCase: IListItemsUseCase;\n\n constructor(searchRepository: ISearchRepository, useCase: IListItemsUseCase) {\n this.searchRepository = searchRepository;\n this.useCase = useCase;\n makeAutoObservable(this);\n }\n\n async execute(params?: Omit<ISchedulerListExecuteParams, \"modelId\">) {\n const search = this.searchRepository.get();\n await this.useCase.execute({\n ...params,\n where: {\n ...params?.where,\n title_contains: search.length > 0 ? search : undefined\n }\n });\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,MAAM;AAKzC,OAAO,MAAMC,0BAA0B,CAA8B;EAIjEC,WAAWA,CAACC,gBAAmC,EAAEC,OAA0B,EAAE;IACzE,IAAI,CAACD,gBAAgB,GAAGA,gBAAgB;IACxC,IAAI,CAACC,OAAO,GAAGA,OAAO;IACtBJ,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEA,MAAMK,OAAOA,CAACC,MAAqD,EAAE;IACjE,MAAMC,MAAM,GAAG,IAAI,CAACJ,gBAAgB,CAACK,GAAG,CAAC,CAAC;IAC1C,MAAM,IAAI,CAACJ,OAAO,CAACC,OAAO,CAAC;MACvB,GAAGC,MAAM;MACTG,KAAK,EAAE;QACH,GAAGH,MAAM,EAAEG,KAAK;QAChBC,cAAc,EAAEH,MAAM,CAACI,MAAM,GAAG,CAAC,GAAGJ,MAAM,GAAGK;MACjD;IACJ,CAAC,CAAC;EACN;AACJ","ignoreList":[]}
1
+ {"version":3,"names":["makeAutoObservable","ListItemsUseCaseWithSearch","constructor","searchRepository","useCase","execute","params","search","get","where","title_contains","length","undefined"],"sources":["ListItemsUseCaseWithSearch.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport type { ISearchRepository } from \"~/Domain/index.js\";\nimport type { IListItemsUseCase } from \"./IListItemsUseCase.js\";\nimport type { ISchedulerListExecuteParams } from \"~/Gateways/index.js\";\n\nexport class ListItemsUseCaseWithSearch implements IListItemsUseCase {\n private searchRepository: ISearchRepository;\n private useCase: IListItemsUseCase;\n\n constructor(searchRepository: ISearchRepository, useCase: IListItemsUseCase) {\n this.searchRepository = searchRepository;\n this.useCase = useCase;\n makeAutoObservable(this);\n }\n\n async execute(params?: Omit<ISchedulerListExecuteParams, \"modelId\">) {\n const search = this.searchRepository.get();\n await this.useCase.execute({\n ...params,\n where: {\n ...params?.where,\n title_contains: search.length > 0 ? search : undefined\n }\n });\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,MAAM;AAKzC,OAAO,MAAMC,0BAA0B,CAA8B;EAIjEC,WAAWA,CAACC,gBAAmC,EAAEC,OAA0B,EAAE;IACzE,IAAI,CAACD,gBAAgB,GAAGA,gBAAgB;IACxC,IAAI,CAACC,OAAO,GAAGA,OAAO;IACtBJ,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEA,MAAMK,OAAOA,CAACC,MAAqD,EAAE;IACjE,MAAMC,MAAM,GAAG,IAAI,CAACJ,gBAAgB,CAACK,GAAG,CAAC,CAAC;IAC1C,MAAM,IAAI,CAACJ,OAAO,CAACC,OAAO,CAAC;MACvB,GAAGC,MAAM;MACTG,KAAK,EAAE;QACH,GAAGH,MAAM,EAAEG,KAAK;QAChBC,cAAc,EAAEH,MAAM,CAACI,MAAM,GAAG,CAAC,GAAGJ,MAAM,GAAGK;MACjD;IACJ,CAAC,CAAC;EACN;AACJ","ignoreList":[]}
@@ -1,5 +1,5 @@
1
1
  import type { ISortingRepository } from "@webiny/app-utils";
2
- import type { IListItemsUseCase } from "./IListItemsUseCase";
2
+ import type { IListItemsUseCase } from "./IListItemsUseCase.js";
3
3
  import type { ISchedulerListExecuteParams } from "../../Gateways/index.js";
4
4
  export declare class ListItemsUseCaseWithSorting implements IListItemsUseCase {
5
5
  private sortingRepository;
@@ -1 +1 @@
1
- {"version":3,"names":["makeAutoObservable","SortingMapper","ListItemsUseCaseWithSorting","constructor","sortingRepository","useCase","execute","params","sort","get","map","fromDTOtoDb"],"sources":["ListItemsUseCaseWithSorting.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport type { ISortingRepository } from \"@webiny/app-utils\";\nimport { SortingMapper } from \"@webiny/app-utils\";\nimport type { IListItemsUseCase } from \"./IListItemsUseCase\";\nimport type {\n ISchedulerListExecuteParams,\n ISchedulerListExecuteParamsSort\n} from \"~/Gateways/index.js\";\n\nexport class ListItemsUseCaseWithSorting implements IListItemsUseCase {\n private sortingRepository: ISortingRepository;\n private useCase: IListItemsUseCase;\n\n constructor(sortingRepository: ISortingRepository, useCase: IListItemsUseCase) {\n this.sortingRepository = sortingRepository;\n this.useCase = useCase;\n makeAutoObservable(this);\n }\n\n async execute(params?: Omit<ISchedulerListExecuteParams, \"modelId\">) {\n const sort = this.sortingRepository.get().map(sort => SortingMapper.fromDTOtoDb(sort));\n await this.useCase.execute({\n ...params,\n sort: sort as ISchedulerListExecuteParamsSort[]\n });\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,MAAM;AAEzC,SAASC,aAAa,QAAQ,mBAAmB;AAOjD,OAAO,MAAMC,2BAA2B,CAA8B;EAIlEC,WAAWA,CAACC,iBAAqC,EAAEC,OAA0B,EAAE;IAC3E,IAAI,CAACD,iBAAiB,GAAGA,iBAAiB;IAC1C,IAAI,CAACC,OAAO,GAAGA,OAAO;IACtBL,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEA,MAAMM,OAAOA,CAACC,MAAqD,EAAE;IACjE,MAAMC,IAAI,GAAG,IAAI,CAACJ,iBAAiB,CAACK,GAAG,CAAC,CAAC,CAACC,GAAG,CAACF,IAAI,IAAIP,aAAa,CAACU,WAAW,CAACH,IAAI,CAAC,CAAC;IACtF,MAAM,IAAI,CAACH,OAAO,CAACC,OAAO,CAAC;MACvB,GAAGC,MAAM;MACTC,IAAI,EAAEA;IACV,CAAC,CAAC;EACN;AACJ","ignoreList":[]}
1
+ {"version":3,"names":["makeAutoObservable","SortingMapper","ListItemsUseCaseWithSorting","constructor","sortingRepository","useCase","execute","params","sort","get","map","fromDTOtoDb"],"sources":["ListItemsUseCaseWithSorting.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport type { ISortingRepository } from \"@webiny/app-utils\";\nimport { SortingMapper } from \"@webiny/app-utils\";\nimport type { IListItemsUseCase } from \"./IListItemsUseCase.js\";\nimport type {\n ISchedulerListExecuteParams,\n ISchedulerListExecuteParamsSort\n} from \"~/Gateways/index.js\";\n\nexport class ListItemsUseCaseWithSorting implements IListItemsUseCase {\n private sortingRepository: ISortingRepository;\n private useCase: IListItemsUseCase;\n\n constructor(sortingRepository: ISortingRepository, useCase: IListItemsUseCase) {\n this.sortingRepository = sortingRepository;\n this.useCase = useCase;\n makeAutoObservable(this);\n }\n\n async execute(params?: Omit<ISchedulerListExecuteParams, \"modelId\">) {\n const sort = this.sortingRepository.get().map(sort => SortingMapper.fromDTOtoDb(sort));\n await this.useCase.execute({\n ...params,\n sort: sort as ISchedulerListExecuteParamsSort[]\n });\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,MAAM;AAEzC,SAASC,aAAa,QAAQ,mBAAmB;AAOjD,OAAO,MAAMC,2BAA2B,CAA8B;EAIlEC,WAAWA,CAACC,iBAAqC,EAAEC,OAA0B,EAAE;IAC3E,IAAI,CAACD,iBAAiB,GAAGA,iBAAiB;IAC1C,IAAI,CAACC,OAAO,GAAGA,OAAO;IACtBL,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEA,MAAMM,OAAOA,CAACC,MAAqD,EAAE;IACjE,MAAMC,IAAI,GAAG,IAAI,CAACJ,iBAAiB,CAACK,GAAG,CAAC,CAAC,CAACC,GAAG,CAACF,IAAI,IAAIP,aAAa,CAACU,WAAW,CAACH,IAAI,CAAC,CAAC;IACtF,MAAM,IAAI,CAACH,OAAO,CAACC,OAAO,CAAC;MACvB,GAAGC,MAAM;MACTC,IAAI,EAAEA;IACV,CAAC,CAAC;EACN;AACJ","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- export * from "./IListItemsUseCase";
2
- export * from "./ListItemsUseCase";
1
+ export type * from "./IListItemsUseCase.js";
2
+ export * from "./ListItemsUseCase.js";
3
3
  export * from "./ListItemsUseCaseWithSearch.js";
4
4
  export * from "./ListItemsUseCaseWithSorting.js";
@@ -1,5 +1,4 @@
1
- export * from "./IListItemsUseCase";
2
- export * from "./ListItemsUseCase";
1
+ export * from "./ListItemsUseCase.js";
3
2
  export * from "./ListItemsUseCaseWithSearch.js";
4
3
  export * from "./ListItemsUseCaseWithSorting.js";
5
4
 
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./IListItemsUseCase\";\nexport * from \"./ListItemsUseCase\";\nexport * from \"./ListItemsUseCaseWithSearch.js\";\nexport * from \"./ListItemsUseCaseWithSorting.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export type * from \"./IListItemsUseCase.js\";\nexport * from \"./ListItemsUseCase.js\";\nexport * from \"./ListItemsUseCaseWithSearch.js\";\nexport * from \"./ListItemsUseCaseWithSorting.js\";\n"],"mappings":"AACA;AACA;AACA","ignoreList":[]}
@@ -1,5 +1,5 @@
1
- import type { ISchedulerItemsRepository } from "../../Domain/Repositories";
2
- import type { IListMoreItemsUseCase } from "./IListMoreItemsUseCase";
1
+ import type { ISchedulerItemsRepository } from "../../Domain/Repositories/index.js";
2
+ import type { IListMoreItemsUseCase } from "./IListMoreItemsUseCase.js";
3
3
  export declare class ListMoreItemsUseCase implements IListMoreItemsUseCase {
4
4
  private itemsRepository;
5
5
  constructor(itemsRepository: ISchedulerItemsRepository);