@webiny/app-scheduler 0.0.0-unstable.c27f4d8a31
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.
- package/Domain/Models/SchedulerItem/SchedulerItem.d.ts +13 -0
- package/Domain/Models/SchedulerItem/SchedulerItem.js +17 -0
- package/Domain/Models/SchedulerItem/SchedulerItem.js.map +1 -0
- package/Domain/Models/SchedulerItem/index.d.ts +1 -0
- package/Domain/Models/SchedulerItem/index.js +3 -0
- package/Domain/Models/SchedulerItem/index.js.map +1 -0
- package/Domain/Models/index.d.ts +1 -0
- package/Domain/Models/index.js +3 -0
- package/Domain/Models/index.js.map +1 -0
- package/Domain/Repositories/SchedulerItems/ISchedulerItemsRepository.d.ts +14 -0
- package/Domain/Repositories/SchedulerItems/ISchedulerItemsRepository.js +3 -0
- package/Domain/Repositories/SchedulerItems/ISchedulerItemsRepository.js.map +1 -0
- package/Domain/Repositories/SchedulerItems/SchedulerItemsRepository.d.ts +36 -0
- package/Domain/Repositories/SchedulerItems/SchedulerItemsRepository.js +128 -0
- package/Domain/Repositories/SchedulerItems/SchedulerItemsRepository.js.map +1 -0
- package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryFactory.d.ts +19 -0
- package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryFactory.js +17 -0
- package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryFactory.js.map +1 -0
- package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryWithLoading.d.ts +17 -0
- package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryWithLoading.js +38 -0
- package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryWithLoading.js.map +1 -0
- package/Domain/Repositories/SchedulerItems/index.d.ts +4 -0
- package/Domain/Repositories/SchedulerItems/index.js +5 -0
- package/Domain/Repositories/SchedulerItems/index.js.map +1 -0
- package/Domain/Repositories/Search/ISearchRepository.d.ts +4 -0
- package/Domain/Repositories/Search/ISearchRepository.js +3 -0
- package/Domain/Repositories/Search/ISearchRepository.js.map +1 -0
- package/Domain/Repositories/Search/SearchRepository.d.ts +7 -0
- package/Domain/Repositories/Search/SearchRepository.js +15 -0
- package/Domain/Repositories/Search/SearchRepository.js.map +1 -0
- package/Domain/Repositories/Search/SearchRepositoryFactory.d.ts +7 -0
- package/Domain/Repositories/Search/SearchRepositoryFactory.js +17 -0
- package/Domain/Repositories/Search/SearchRepositoryFactory.js.map +1 -0
- package/Domain/Repositories/Search/index.d.ts +3 -0
- package/Domain/Repositories/Search/index.js +4 -0
- package/Domain/Repositories/Search/index.js.map +1 -0
- package/Domain/Repositories/SelectedItems/ISelectedItemsRepository.d.ts +8 -0
- package/Domain/Repositories/SelectedItems/ISelectedItemsRepository.js +3 -0
- package/Domain/Repositories/SelectedItems/ISelectedItemsRepository.js.map +1 -0
- package/Domain/Repositories/SelectedItems/SelectedItemsRepository.d.ts +12 -0
- package/Domain/Repositories/SelectedItems/SelectedItemsRepository.js +27 -0
- package/Domain/Repositories/SelectedItems/SelectedItemsRepository.js.map +1 -0
- package/Domain/Repositories/SelectedItems/SelectedItemsRepositoryFactory.d.ts +7 -0
- package/Domain/Repositories/SelectedItems/SelectedItemsRepositoryFactory.js +17 -0
- package/Domain/Repositories/SelectedItems/SelectedItemsRepositoryFactory.js.map +1 -0
- package/Domain/Repositories/SelectedItems/index.d.ts +3 -0
- package/Domain/Repositories/SelectedItems/index.js +4 -0
- package/Domain/Repositories/SelectedItems/index.js.map +1 -0
- package/Domain/Repositories/Sorting/SortingRepositoryWithDefaults.d.ts +8 -0
- package/Domain/Repositories/Sorting/SortingRepositoryWithDefaults.js +22 -0
- package/Domain/Repositories/Sorting/SortingRepositoryWithDefaults.js.map +1 -0
- package/Domain/Repositories/Sorting/index.d.ts +1 -0
- package/Domain/Repositories/Sorting/index.js +3 -0
- package/Domain/Repositories/Sorting/index.js.map +1 -0
- package/Domain/Repositories/index.d.ts +4 -0
- package/Domain/Repositories/index.js +6 -0
- package/Domain/Repositories/index.js.map +1 -0
- package/Domain/index.d.ts +2 -0
- package/Domain/index.js +4 -0
- package/Domain/index.js.map +1 -0
- package/Gateways/SchedulerCancelGraphQLGateway.d.ts +7 -0
- package/Gateways/SchedulerCancelGraphQLGateway.js +48 -0
- package/Gateways/SchedulerCancelGraphQLGateway.js.map +1 -0
- package/Gateways/SchedulerGetGraphQLGateway.d.ts +21 -0
- package/Gateways/SchedulerGetGraphQLGateway.js +72 -0
- package/Gateways/SchedulerGetGraphQLGateway.js.map +1 -0
- package/Gateways/SchedulerListGraphQLGateway.d.ts +7 -0
- package/Gateways/SchedulerListGraphQLGateway.js +92 -0
- package/Gateways/SchedulerListGraphQLGateway.js.map +1 -0
- package/Gateways/SchedulerPublishGraphQLGateway.d.ts +7 -0
- package/Gateways/SchedulerPublishGraphQLGateway.js +67 -0
- package/Gateways/SchedulerPublishGraphQLGateway.js.map +1 -0
- package/Gateways/SchedulerUnpublishGraphQLGateway.d.ts +23 -0
- package/Gateways/SchedulerUnpublishGraphQLGateway.js +69 -0
- package/Gateways/SchedulerUnpublishGraphQLGateway.js.map +1 -0
- package/Gateways/abstractions/CancelScheduledActionGateway.d.ts +7 -0
- package/Gateways/abstractions/CancelScheduledActionGateway.js +3 -0
- package/Gateways/abstractions/CancelScheduledActionGateway.js.map +1 -0
- package/Gateways/abstractions/GetScheduledActionGateway.d.ts +9 -0
- package/Gateways/abstractions/GetScheduledActionGateway.js +3 -0
- package/Gateways/abstractions/GetScheduledActionGateway.js.map +1 -0
- package/Gateways/abstractions/ListScheduledActionsGateway.d.ts +27 -0
- package/Gateways/abstractions/ListScheduledActionsGateway.js +3 -0
- package/Gateways/abstractions/ListScheduledActionsGateway.js.map +1 -0
- package/Gateways/abstractions/SchedulePublishActionGateway.d.ts +12 -0
- package/Gateways/abstractions/SchedulePublishActionGateway.js +3 -0
- package/Gateways/abstractions/SchedulePublishActionGateway.js.map +1 -0
- package/Gateways/abstractions/ScheduleUnpublishActionGateway.d.ts +12 -0
- package/Gateways/abstractions/ScheduleUnpublishActionGateway.js +3 -0
- package/Gateways/abstractions/ScheduleUnpublishActionGateway.js.map +1 -0
- package/Gateways/graphql/fields.d.ts +1 -0
- package/Gateways/graphql/fields.js +18 -0
- package/Gateways/graphql/fields.js.map +1 -0
- package/Gateways/index.d.ts +5 -0
- package/Gateways/index.js +3 -0
- package/Gateways/index.js.map +1 -0
- package/Gateways/schema/schedulerEntry.d.ts +16 -0
- package/Gateways/schema/schedulerEntry.js +22 -0
- package/Gateways/schema/schedulerEntry.js.map +1 -0
- package/LICENSE +21 -0
- package/Presentation/Scheduler/Scheduler.d.ts +17 -0
- package/Presentation/Scheduler/Scheduler.js +67 -0
- package/Presentation/Scheduler/Scheduler.js.map +1 -0
- package/Presentation/Scheduler/SchedulerControllers.d.ts +30 -0
- package/Presentation/Scheduler/SchedulerControllers.js +72 -0
- package/Presentation/Scheduler/SchedulerControllers.js.map +1 -0
- package/Presentation/Scheduler/SchedulerPresenter.d.ts +32 -0
- package/Presentation/Scheduler/SchedulerPresenter.js +44 -0
- package/Presentation/Scheduler/SchedulerPresenter.js.map +1 -0
- package/Presentation/Scheduler/controllers/CancelItem/CancelItemController.d.ts +7 -0
- package/Presentation/Scheduler/controllers/CancelItem/CancelItemController.js +11 -0
- package/Presentation/Scheduler/controllers/CancelItem/CancelItemController.js.map +1 -0
- package/Presentation/Scheduler/controllers/CancelItem/ICancelItemController.d.ts +3 -0
- package/Presentation/Scheduler/controllers/CancelItem/ICancelItemController.js +3 -0
- package/Presentation/Scheduler/controllers/CancelItem/ICancelItemController.js.map +1 -0
- package/Presentation/Scheduler/controllers/CancelItem/index.d.ts +2 -0
- package/Presentation/Scheduler/controllers/CancelItem/index.js +3 -0
- package/Presentation/Scheduler/controllers/CancelItem/index.js.map +1 -0
- package/Presentation/Scheduler/controllers/GetItem/GetItemController.d.ts +8 -0
- package/Presentation/Scheduler/controllers/GetItem/GetItemController.js +11 -0
- package/Presentation/Scheduler/controllers/GetItem/GetItemController.js.map +1 -0
- package/Presentation/Scheduler/controllers/GetItem/IGetItemController.d.ts +4 -0
- package/Presentation/Scheduler/controllers/GetItem/IGetItemController.js +3 -0
- package/Presentation/Scheduler/controllers/GetItem/IGetItemController.js.map +1 -0
- package/Presentation/Scheduler/controllers/GetItem/index.d.ts +2 -0
- package/Presentation/Scheduler/controllers/GetItem/index.js +3 -0
- package/Presentation/Scheduler/controllers/GetItem/index.js.map +1 -0
- package/Presentation/Scheduler/controllers/ListItems/IListItemsController.d.ts +4 -0
- package/Presentation/Scheduler/controllers/ListItems/IListItemsController.js +3 -0
- package/Presentation/Scheduler/controllers/ListItems/IListItemsController.js.map +1 -0
- package/Presentation/Scheduler/controllers/ListItems/ListItemsController.d.ts +8 -0
- package/Presentation/Scheduler/controllers/ListItems/ListItemsController.js +11 -0
- package/Presentation/Scheduler/controllers/ListItems/ListItemsController.js.map +1 -0
- package/Presentation/Scheduler/controllers/ListItems/index.d.ts +2 -0
- package/Presentation/Scheduler/controllers/ListItems/index.js +3 -0
- package/Presentation/Scheduler/controllers/ListItems/index.js.map +1 -0
- package/Presentation/Scheduler/controllers/ListMoreItems/IListMoreItemsController.d.ts +3 -0
- package/Presentation/Scheduler/controllers/ListMoreItems/IListMoreItemsController.js +3 -0
- package/Presentation/Scheduler/controllers/ListMoreItems/IListMoreItemsController.js.map +1 -0
- package/Presentation/Scheduler/controllers/ListMoreItems/ListMoreItemsController.d.ts +7 -0
- package/Presentation/Scheduler/controllers/ListMoreItems/ListMoreItemsController.js +11 -0
- package/Presentation/Scheduler/controllers/ListMoreItems/ListMoreItemsController.js.map +1 -0
- package/Presentation/Scheduler/controllers/ListMoreItems/index.d.ts +2 -0
- package/Presentation/Scheduler/controllers/ListMoreItems/index.js +3 -0
- package/Presentation/Scheduler/controllers/ListMoreItems/index.js.map +1 -0
- package/Presentation/Scheduler/controllers/PublishItem/IPublishItemController.d.ts +3 -0
- package/Presentation/Scheduler/controllers/PublishItem/IPublishItemController.js +3 -0
- package/Presentation/Scheduler/controllers/PublishItem/IPublishItemController.js.map +1 -0
- package/Presentation/Scheduler/controllers/PublishItem/PublishItemController.d.ts +7 -0
- package/Presentation/Scheduler/controllers/PublishItem/PublishItemController.js +11 -0
- package/Presentation/Scheduler/controllers/PublishItem/PublishItemController.js.map +1 -0
- package/Presentation/Scheduler/controllers/PublishItem/index.d.ts +2 -0
- package/Presentation/Scheduler/controllers/PublishItem/index.js +3 -0
- package/Presentation/Scheduler/controllers/PublishItem/index.js.map +1 -0
- package/Presentation/Scheduler/controllers/SearchItems/ISearchItemsController.d.ts +3 -0
- package/Presentation/Scheduler/controllers/SearchItems/ISearchItemsController.js +3 -0
- package/Presentation/Scheduler/controllers/SearchItems/ISearchItemsController.js.map +1 -0
- package/Presentation/Scheduler/controllers/SearchItems/SearchItemsController.d.ts +8 -0
- package/Presentation/Scheduler/controllers/SearchItems/SearchItemsController.js +14 -0
- package/Presentation/Scheduler/controllers/SearchItems/SearchItemsController.js.map +1 -0
- package/Presentation/Scheduler/controllers/SearchItems/index.d.ts +2 -0
- package/Presentation/Scheduler/controllers/SearchItems/index.js +3 -0
- package/Presentation/Scheduler/controllers/SearchItems/index.js.map +1 -0
- package/Presentation/Scheduler/controllers/SelectAllItems/ISelectAllItemsController.d.ts +3 -0
- package/Presentation/Scheduler/controllers/SelectAllItems/ISelectAllItemsController.js +3 -0
- package/Presentation/Scheduler/controllers/SelectAllItems/ISelectAllItemsController.js.map +1 -0
- package/Presentation/Scheduler/controllers/SelectAllItems/SelectAllItemsController.d.ts +7 -0
- package/Presentation/Scheduler/controllers/SelectAllItems/SelectAllItemsController.js +11 -0
- package/Presentation/Scheduler/controllers/SelectAllItems/SelectAllItemsController.js.map +1 -0
- package/Presentation/Scheduler/controllers/SelectAllItems/index.d.ts +2 -0
- package/Presentation/Scheduler/controllers/SelectAllItems/index.js +3 -0
- package/Presentation/Scheduler/controllers/SelectAllItems/index.js.map +1 -0
- package/Presentation/Scheduler/controllers/SelectItems/ISelectItemsController.d.ts +4 -0
- package/Presentation/Scheduler/controllers/SelectItems/ISelectItemsController.js +3 -0
- package/Presentation/Scheduler/controllers/SelectItems/ISelectItemsController.js.map +1 -0
- package/Presentation/Scheduler/controllers/SelectItems/SelectItemsController.d.ts +8 -0
- package/Presentation/Scheduler/controllers/SelectItems/SelectItemsController.js +13 -0
- package/Presentation/Scheduler/controllers/SelectItems/SelectItemsController.js.map +1 -0
- package/Presentation/Scheduler/controllers/SelectItems/index.d.ts +2 -0
- package/Presentation/Scheduler/controllers/SelectItems/index.js +3 -0
- package/Presentation/Scheduler/controllers/SelectItems/index.js.map +1 -0
- package/Presentation/Scheduler/controllers/SortItems/ISortItemsController.d.ts +4 -0
- package/Presentation/Scheduler/controllers/SortItems/ISortItemsController.js +3 -0
- package/Presentation/Scheduler/controllers/SortItems/ISortItemsController.js.map +1 -0
- package/Presentation/Scheduler/controllers/SortItems/SortItemsController.d.ts +9 -0
- package/Presentation/Scheduler/controllers/SortItems/SortItemsController.js +19 -0
- package/Presentation/Scheduler/controllers/SortItems/SortItemsController.js.map +1 -0
- package/Presentation/Scheduler/controllers/SortItems/index.d.ts +2 -0
- package/Presentation/Scheduler/controllers/SortItems/index.js +3 -0
- package/Presentation/Scheduler/controllers/SortItems/index.js.map +1 -0
- package/Presentation/Scheduler/controllers/UnpublishItem/IUnpublishItemController.d.ts +3 -0
- package/Presentation/Scheduler/controllers/UnpublishItem/IUnpublishItemController.js +3 -0
- package/Presentation/Scheduler/controllers/UnpublishItem/IUnpublishItemController.js.map +1 -0
- package/Presentation/Scheduler/controllers/UnpublishItem/UnpublishItemController.d.ts +7 -0
- package/Presentation/Scheduler/controllers/UnpublishItem/UnpublishItemController.js +11 -0
- package/Presentation/Scheduler/controllers/UnpublishItem/UnpublishItemController.js.map +1 -0
- package/Presentation/Scheduler/controllers/UnpublishItem/index.d.ts +2 -0
- package/Presentation/Scheduler/controllers/UnpublishItem/index.js +3 -0
- package/Presentation/Scheduler/controllers/UnpublishItem/index.js.map +1 -0
- package/Presentation/Scheduler/controllers/UnselectAllItems/IUnselectAllItemsController.d.ts +3 -0
- package/Presentation/Scheduler/controllers/UnselectAllItems/IUnselectAllItemsController.js +3 -0
- package/Presentation/Scheduler/controllers/UnselectAllItems/IUnselectAllItemsController.js.map +1 -0
- package/Presentation/Scheduler/controllers/UnselectAllItems/UnselectAllItemsController.d.ts +7 -0
- package/Presentation/Scheduler/controllers/UnselectAllItems/UnselectAllItemsController.js +11 -0
- package/Presentation/Scheduler/controllers/UnselectAllItems/UnselectAllItemsController.js.map +1 -0
- package/Presentation/Scheduler/controllers/UnselectAllItems/index.d.ts +2 -0
- package/Presentation/Scheduler/controllers/UnselectAllItems/index.js +3 -0
- package/Presentation/Scheduler/controllers/UnselectAllItems/index.js.map +1 -0
- package/Presentation/Scheduler/controllers/index.d.ts +11 -0
- package/Presentation/Scheduler/controllers/index.js +13 -0
- package/Presentation/Scheduler/controllers/index.js.map +1 -0
- package/Presentation/Scheduler/index.d.ts +1 -0
- package/Presentation/Scheduler/index.js +3 -0
- package/Presentation/Scheduler/index.js.map +1 -0
- package/Presentation/SchedulerConfigs/SchedulerConfigs.d.ts +2 -0
- package/Presentation/SchedulerConfigs/SchedulerConfigs.js +55 -0
- package/Presentation/SchedulerConfigs/SchedulerConfigs.js.map +1 -0
- package/Presentation/SchedulerConfigs/index.d.ts +1 -0
- package/Presentation/SchedulerConfigs/index.js +3 -0
- package/Presentation/SchedulerConfigs/index.js.map +1 -0
- package/Presentation/SchedulerRenderer/SchedulerRenderer.d.ts +6 -0
- package/Presentation/SchedulerRenderer/SchedulerRenderer.js +21 -0
- package/Presentation/SchedulerRenderer/SchedulerRenderer.js.map +1 -0
- package/Presentation/SchedulerRenderer/index.d.ts +1 -0
- package/Presentation/SchedulerRenderer/index.js +3 -0
- package/Presentation/SchedulerRenderer/index.js.map +1 -0
- package/Presentation/abstractions/ISchedulerControllers.d.ts +14 -0
- package/Presentation/abstractions/ISchedulerControllers.js +3 -0
- package/Presentation/abstractions/ISchedulerControllers.js.map +1 -0
- package/Presentation/abstractions/ISchedulerPresenter.d.ts +20 -0
- package/Presentation/abstractions/ISchedulerPresenter.js +3 -0
- package/Presentation/abstractions/ISchedulerPresenter.js.map +1 -0
- package/Presentation/abstractions/index.d.ts +2 -0
- package/Presentation/abstractions/index.js +3 -0
- package/Presentation/abstractions/index.js.map +1 -0
- package/Presentation/components/Actions/CancelItem/CancelItem.d.ts +2 -0
- package/Presentation/components/Actions/CancelItem/CancelItem.js +24 -0
- package/Presentation/components/Actions/CancelItem/CancelItem.js.map +1 -0
- package/Presentation/components/Actions/CancelItem/index.d.ts +1 -0
- package/Presentation/components/Actions/CancelItem/index.js +3 -0
- package/Presentation/components/Actions/CancelItem/index.js.map +1 -0
- package/Presentation/components/Actions/index.d.ts +1 -0
- package/Presentation/components/Actions/index.js +3 -0
- package/Presentation/components/Actions/index.js.map +1 -0
- package/Presentation/components/BottomInfoBar/BottomInfoBar.d.ts +2 -0
- package/Presentation/components/BottomInfoBar/BottomInfoBar.js +20 -0
- package/Presentation/components/BottomInfoBar/BottomInfoBar.js.map +1 -0
- package/Presentation/components/BottomInfoBar/BottomInfoBar.styled.d.ts +20 -0
- package/Presentation/components/BottomInfoBar/BottomInfoBar.styled.js +69 -0
- package/Presentation/components/BottomInfoBar/BottomInfoBar.styled.js.map +1 -0
- package/Presentation/components/BottomInfoBar/ListMeta.d.ts +7 -0
- package/Presentation/components/BottomInfoBar/ListMeta.js +12 -0
- package/Presentation/components/BottomInfoBar/ListMeta.js.map +1 -0
- package/Presentation/components/BottomInfoBar/ListStatus.d.ts +5 -0
- package/Presentation/components/BottomInfoBar/ListStatus.js +16 -0
- package/Presentation/components/BottomInfoBar/ListStatus.js.map +1 -0
- package/Presentation/components/BottomInfoBar/index.d.ts +1 -0
- package/Presentation/components/BottomInfoBar/index.js +3 -0
- package/Presentation/components/BottomInfoBar/index.js.map +1 -0
- package/Presentation/components/Cells/CellActions/CellActions.d.ts +2 -0
- package/Presentation/components/Cells/CellActions/CellActions.js +23 -0
- package/Presentation/components/Cells/CellActions/CellActions.js.map +1 -0
- package/Presentation/components/Cells/CellActions/index.d.ts +1 -0
- package/Presentation/components/Cells/CellActions/index.js +3 -0
- package/Presentation/components/Cells/CellActions/index.js.map +1 -0
- package/Presentation/components/Cells/CellRevision/CellRevision.d.ts +2 -0
- package/Presentation/components/Cells/CellRevision/CellRevision.js +20 -0
- package/Presentation/components/Cells/CellRevision/CellRevision.js.map +1 -0
- package/Presentation/components/Cells/CellRevision/CellRevision.styled.d.ts +11 -0
- package/Presentation/components/Cells/CellRevision/CellRevision.styled.js +44 -0
- package/Presentation/components/Cells/CellRevision/CellRevision.styled.js.map +1 -0
- package/Presentation/components/Cells/CellRevision/index.d.ts +1 -0
- package/Presentation/components/Cells/CellRevision/index.js +3 -0
- package/Presentation/components/Cells/CellRevision/index.js.map +1 -0
- package/Presentation/components/Cells/CellScheduledBy/CellScheduledBy.d.ts +2 -0
- package/Presentation/components/Cells/CellScheduledBy/CellScheduledBy.js +13 -0
- package/Presentation/components/Cells/CellScheduledBy/CellScheduledBy.js.map +1 -0
- package/Presentation/components/Cells/CellScheduledBy/index.d.ts +1 -0
- package/Presentation/components/Cells/CellScheduledBy/index.js +3 -0
- package/Presentation/components/Cells/CellScheduledBy/index.js.map +1 -0
- package/Presentation/components/Cells/CellScheduledOn/CellScheduledOn.d.ts +24 -0
- package/Presentation/components/Cells/CellScheduledOn/CellScheduledOn.js +24 -0
- package/Presentation/components/Cells/CellScheduledOn/CellScheduledOn.js.map +1 -0
- package/Presentation/components/Cells/CellScheduledOn/index.d.ts +1 -0
- package/Presentation/components/Cells/CellScheduledOn/index.js +3 -0
- package/Presentation/components/Cells/CellScheduledOn/index.js.map +1 -0
- package/Presentation/components/Cells/CellTitle/CellTitle.d.ts +2 -0
- package/Presentation/components/Cells/CellTitle/CellTitle.js +17 -0
- package/Presentation/components/Cells/CellTitle/CellTitle.js.map +1 -0
- package/Presentation/components/Cells/CellTitle/CellTitle.styled.d.ts +11 -0
- package/Presentation/components/Cells/CellTitle/CellTitle.styled.js +44 -0
- package/Presentation/components/Cells/CellTitle/CellTitle.styled.js.map +1 -0
- package/Presentation/components/Cells/CellTitle/index.d.ts +1 -0
- package/Presentation/components/Cells/CellTitle/index.js +3 -0
- package/Presentation/components/Cells/CellTitle/index.js.map +1 -0
- package/Presentation/components/Cells/CellType/CellActionType.d.ts +2 -0
- package/Presentation/components/Cells/CellType/CellActionType.js +18 -0
- package/Presentation/components/Cells/CellType/CellActionType.js.map +1 -0
- package/Presentation/components/Cells/CellType/CellActionType.styled.d.ts +11 -0
- package/Presentation/components/Cells/CellType/CellActionType.styled.js +44 -0
- package/Presentation/components/Cells/CellType/CellActionType.styled.js.map +1 -0
- package/Presentation/components/Cells/CellType/index.d.ts +1 -0
- package/Presentation/components/Cells/CellType/index.js +3 -0
- package/Presentation/components/Cells/CellType/index.js.map +1 -0
- package/Presentation/components/Cells/index.d.ts +6 -0
- package/Presentation/components/Cells/index.js +8 -0
- package/Presentation/components/Cells/index.js.map +1 -0
- package/Presentation/components/Empty/Empty.d.ts +2 -0
- package/Presentation/components/Empty/Empty.js +22 -0
- package/Presentation/components/Empty/Empty.js.map +1 -0
- package/Presentation/components/Empty/Empty.styled.d.ts +8 -0
- package/Presentation/components/Empty/Empty.styled.js +30 -0
- package/Presentation/components/Empty/Empty.styled.js.map +1 -0
- package/Presentation/components/Empty/index.d.ts +1 -0
- package/Presentation/components/Empty/index.js +3 -0
- package/Presentation/components/Empty/index.js.map +1 -0
- package/Presentation/components/ScheduleDialog/ScheduleDialogAction.d.ts +15 -0
- package/Presentation/components/ScheduleDialog/ScheduleDialogAction.js +51 -0
- package/Presentation/components/ScheduleDialog/ScheduleDialogAction.js.map +1 -0
- package/Presentation/components/ScheduleDialog/index.d.ts +2 -0
- package/Presentation/components/ScheduleDialog/index.js +4 -0
- package/Presentation/components/ScheduleDialog/index.js.map +1 -0
- package/Presentation/components/ScheduleDialog/types.d.ts +15 -0
- package/Presentation/components/ScheduleDialog/types.js +3 -0
- package/Presentation/components/ScheduleDialog/types.js.map +1 -0
- package/Presentation/components/ScheduleDialog/useGetScheduledAction.d.ts +7 -0
- package/Presentation/components/ScheduleDialog/useGetScheduledAction.js +31 -0
- package/Presentation/components/ScheduleDialog/useGetScheduledAction.js.map +1 -0
- package/Presentation/components/ScheduleDialog/useScheduleDialog.d.ts +42 -0
- package/Presentation/components/ScheduleDialog/useScheduleDialog.js +221 -0
- package/Presentation/components/ScheduleDialog/useScheduleDialog.js.map +1 -0
- package/Presentation/components/SchedulerOverlay/SchedulerOverlay.d.ts +7 -0
- package/Presentation/components/SchedulerOverlay/SchedulerOverlay.js +36 -0
- package/Presentation/components/SchedulerOverlay/SchedulerOverlay.js.map +1 -0
- package/Presentation/components/SchedulerOverlay/index.d.ts +1 -0
- package/Presentation/components/SchedulerOverlay/index.js +3 -0
- package/Presentation/components/SchedulerOverlay/index.js.map +1 -0
- package/Presentation/components/SearchInput/SearchInput.d.ts +2 -0
- package/Presentation/components/SearchInput/SearchInput.js +37 -0
- package/Presentation/components/SearchInput/SearchInput.js.map +1 -0
- package/Presentation/components/SearchInput/index.d.ts +1 -0
- package/Presentation/components/SearchInput/index.js +3 -0
- package/Presentation/components/SearchInput/index.js.map +1 -0
- package/Presentation/components/Table/Table.d.ts +2 -0
- package/Presentation/components/Table/Table.js +34 -0
- package/Presentation/components/Table/Table.js.map +1 -0
- package/Presentation/components/Table/index.d.ts +1 -0
- package/Presentation/components/Table/index.js +3 -0
- package/Presentation/components/Table/index.js.map +1 -0
- package/Presentation/components/Title/Title.d.ts +5 -0
- package/Presentation/components/Title/Title.js +15 -0
- package/Presentation/components/Title/Title.js.map +1 -0
- package/Presentation/components/Title/Title.styled.d.ts +4 -0
- package/Presentation/components/Title/Title.styled.js +18 -0
- package/Presentation/components/Title/Title.styled.js.map +1 -0
- package/Presentation/components/Title/index.d.ts +1 -0
- package/Presentation/components/Title/index.js +3 -0
- package/Presentation/components/Title/index.js.map +1 -0
- package/Presentation/configs/index.d.ts +1 -0
- package/Presentation/configs/index.js +3 -0
- package/Presentation/configs/index.js.map +1 -0
- package/Presentation/configs/list/Browser/EntryAction.d.ts +7 -0
- package/Presentation/configs/list/Browser/EntryAction.js +16 -0
- package/Presentation/configs/list/Browser/EntryAction.js.map +1 -0
- package/Presentation/configs/list/Browser/Table/Column.d.ts +14 -0
- package/Presentation/configs/list/Browser/Table/Column.js +14 -0
- package/Presentation/configs/list/Browser/Table/Column.js.map +1 -0
- package/Presentation/configs/list/Browser/Table/Sorting.d.ts +5 -0
- package/Presentation/configs/list/Browser/Table/Sorting.js +10 -0
- package/Presentation/configs/list/Browser/Table/Sorting.js.map +1 -0
- package/Presentation/configs/list/Browser/Table/index.d.ts +18 -0
- package/Presentation/configs/list/Browser/Table/index.js +8 -0
- package/Presentation/configs/list/Browser/Table/index.js.map +1 -0
- package/Presentation/configs/list/Browser/index.d.ts +23 -0
- package/Presentation/configs/list/Browser/index.js +8 -0
- package/Presentation/configs/list/Browser/index.js.map +1 -0
- package/Presentation/configs/list/SchedulerListConfig.d.ts +33 -0
- package/Presentation/configs/list/SchedulerListConfig.js +31 -0
- package/Presentation/configs/list/SchedulerListConfig.js.map +1 -0
- package/Presentation/configs/list/index.d.ts +1 -0
- package/Presentation/configs/list/index.js +3 -0
- package/Presentation/configs/list/index.js.map +1 -0
- package/Presentation/hooks/index.d.ts +3 -0
- package/Presentation/hooks/index.js +5 -0
- package/Presentation/hooks/index.js.map +1 -0
- package/Presentation/hooks/useCancelSchedulerItem.d.ts +8 -0
- package/Presentation/hooks/useCancelSchedulerItem.js +32 -0
- package/Presentation/hooks/useCancelSchedulerItem.js.map +1 -0
- package/Presentation/hooks/useScheduler.d.ts +28 -0
- package/Presentation/hooks/useScheduler.js +52 -0
- package/Presentation/hooks/useScheduler.js.map +1 -0
- package/Presentation/hooks/useSchedulerItem.d.ts +11 -0
- package/Presentation/hooks/useSchedulerItem.js +9 -0
- package/Presentation/hooks/useSchedulerItem.js.map +1 -0
- package/Presentation/index.d.ts +25 -0
- package/Presentation/index.js +56 -0
- package/Presentation/index.js.map +1 -0
- package/README.md +11 -0
- package/UseCases/CancelItem/CancelItemUseCase.d.ts +7 -0
- package/UseCases/CancelItem/CancelItemUseCase.js +12 -0
- package/UseCases/CancelItem/CancelItemUseCase.js.map +1 -0
- package/UseCases/CancelItem/ICancelItemUseCase.d.ts +3 -0
- package/UseCases/CancelItem/ICancelItemUseCase.js +3 -0
- package/UseCases/CancelItem/ICancelItemUseCase.js.map +1 -0
- package/UseCases/CancelItem/index.d.ts +2 -0
- package/UseCases/CancelItem/index.js +3 -0
- package/UseCases/CancelItem/index.js.map +1 -0
- package/UseCases/GetItem/GetItemUseCase.d.ts +8 -0
- package/UseCases/GetItem/GetItemUseCase.js +12 -0
- package/UseCases/GetItem/GetItemUseCase.js.map +1 -0
- package/UseCases/GetItem/IGetItemUseCase.d.ts +4 -0
- package/UseCases/GetItem/IGetItemUseCase.js +3 -0
- package/UseCases/GetItem/IGetItemUseCase.js.map +1 -0
- package/UseCases/GetItem/index.d.ts +2 -0
- package/UseCases/GetItem/index.js +3 -0
- package/UseCases/GetItem/index.js.map +1 -0
- package/UseCases/GetScheduledItem/GetScheduledItemUseCase.d.ts +7 -0
- package/UseCases/GetScheduledItem/GetScheduledItemUseCase.js +13 -0
- package/UseCases/GetScheduledItem/GetScheduledItemUseCase.js.map +1 -0
- package/UseCases/GetScheduledItem/IGetScheduledItemUseCase.d.ts +4 -0
- package/UseCases/GetScheduledItem/IGetScheduledItemUseCase.js +3 -0
- package/UseCases/GetScheduledItem/IGetScheduledItemUseCase.js.map +1 -0
- package/UseCases/GetScheduledItem/index.d.ts +2 -0
- package/UseCases/GetScheduledItem/index.js +3 -0
- package/UseCases/GetScheduledItem/index.js.map +1 -0
- package/UseCases/ListItems/IListItemsUseCase.d.ts +4 -0
- package/UseCases/ListItems/IListItemsUseCase.js +3 -0
- package/UseCases/ListItems/IListItemsUseCase.js.map +1 -0
- package/UseCases/ListItems/ListItemsUseCase.d.ts +8 -0
- package/UseCases/ListItems/ListItemsUseCase.js +12 -0
- package/UseCases/ListItems/ListItemsUseCase.js.map +1 -0
- package/UseCases/ListItems/ListItemsUseCaseWithSearch.d.ts +9 -0
- package/UseCases/ListItems/ListItemsUseCaseWithSearch.js +22 -0
- package/UseCases/ListItems/ListItemsUseCaseWithSearch.js.map +1 -0
- package/UseCases/ListItems/ListItemsUseCaseWithSorting.d.ts +9 -0
- package/UseCases/ListItems/ListItemsUseCaseWithSorting.js +22 -0
- package/UseCases/ListItems/ListItemsUseCaseWithSorting.js.map +1 -0
- package/UseCases/ListItems/index.d.ts +4 -0
- package/UseCases/ListItems/index.js +5 -0
- package/UseCases/ListItems/index.js.map +1 -0
- package/UseCases/ListMoreItems/IListMoreItemsUseCase.d.ts +3 -0
- package/UseCases/ListMoreItems/IListMoreItemsUseCase.js +3 -0
- package/UseCases/ListMoreItems/IListMoreItemsUseCase.js.map +1 -0
- package/UseCases/ListMoreItems/ListMoreItemsUseCase.d.ts +7 -0
- package/UseCases/ListMoreItems/ListMoreItemsUseCase.js +12 -0
- package/UseCases/ListMoreItems/ListMoreItemsUseCase.js.map +1 -0
- package/UseCases/ListMoreItems/index.d.ts +2 -0
- package/UseCases/ListMoreItems/index.js +3 -0
- package/UseCases/ListMoreItems/index.js.map +1 -0
- package/UseCases/PublishItem/IPublishItemUseCase.d.ts +3 -0
- package/UseCases/PublishItem/IPublishItemUseCase.js +3 -0
- package/UseCases/PublishItem/IPublishItemUseCase.js.map +1 -0
- package/UseCases/PublishItem/PublishItemUseCase.d.ts +7 -0
- package/UseCases/PublishItem/PublishItemUseCase.js +12 -0
- package/UseCases/PublishItem/PublishItemUseCase.js.map +1 -0
- package/UseCases/PublishItem/index.d.ts +2 -0
- package/UseCases/PublishItem/index.js +3 -0
- package/UseCases/PublishItem/index.js.map +1 -0
- package/UseCases/SearchItems/ISearchItemsUseCase.d.ts +3 -0
- package/UseCases/SearchItems/ISearchItemsUseCase.js +3 -0
- package/UseCases/SearchItems/ISearchItemsUseCase.js.map +1 -0
- package/UseCases/SearchItems/SearchItemsUseCase.d.ts +7 -0
- package/UseCases/SearchItems/SearchItemsUseCase.js +12 -0
- package/UseCases/SearchItems/SearchItemsUseCase.js.map +1 -0
- package/UseCases/SearchItems/index.d.ts +2 -0
- package/UseCases/SearchItems/index.js +3 -0
- package/UseCases/SearchItems/index.js.map +1 -0
- package/UseCases/SelectAllItems/ISelectAllItemsUseCase.d.ts +3 -0
- package/UseCases/SelectAllItems/ISelectAllItemsUseCase.js +3 -0
- package/UseCases/SelectAllItems/ISelectAllItemsUseCase.js.map +1 -0
- package/UseCases/SelectAllItems/SelectAllItemsUseCase.d.ts +7 -0
- package/UseCases/SelectAllItems/SelectAllItemsUseCase.js +12 -0
- package/UseCases/SelectAllItems/SelectAllItemsUseCase.js.map +1 -0
- package/UseCases/SelectAllItems/index.d.ts +2 -0
- package/UseCases/SelectAllItems/index.js +3 -0
- package/UseCases/SelectAllItems/index.js.map +1 -0
- package/UseCases/SelectItems/ISelectItemsUseCase.d.ts +4 -0
- package/UseCases/SelectItems/ISelectItemsUseCase.js +3 -0
- package/UseCases/SelectItems/ISelectItemsUseCase.js.map +1 -0
- package/UseCases/SelectItems/SelectItemsUseCase.d.ts +7 -0
- package/UseCases/SelectItems/SelectItemsUseCase.js +12 -0
- package/UseCases/SelectItems/SelectItemsUseCase.js.map +1 -0
- package/UseCases/SelectItems/index.d.ts +2 -0
- package/UseCases/SelectItems/index.js +3 -0
- package/UseCases/SelectItems/index.js.map +1 -0
- package/UseCases/SortItems/ISortItemsUseCase.d.ts +4 -0
- package/UseCases/SortItems/ISortItemsUseCase.js +3 -0
- package/UseCases/SortItems/ISortItemsUseCase.js.map +1 -0
- package/UseCases/SortItems/SortItemsUseCase.d.ts +7 -0
- package/UseCases/SortItems/SortItemsUseCase.js +12 -0
- package/UseCases/SortItems/SortItemsUseCase.js.map +1 -0
- package/UseCases/SortItems/index.d.ts +2 -0
- package/UseCases/SortItems/index.js +3 -0
- package/UseCases/SortItems/index.js.map +1 -0
- package/UseCases/UnSelectAllItems/IUnselectAllItemsUseCase.d.ts +3 -0
- package/UseCases/UnSelectAllItems/IUnselectAllItemsUseCase.js +3 -0
- package/UseCases/UnSelectAllItems/IUnselectAllItemsUseCase.js.map +1 -0
- package/UseCases/UnSelectAllItems/UnselectAllItemsUseCase.d.ts +7 -0
- package/UseCases/UnSelectAllItems/UnselectAllItemsUseCase.js +12 -0
- package/UseCases/UnSelectAllItems/UnselectAllItemsUseCase.js.map +1 -0
- package/UseCases/UnSelectAllItems/index.d.ts +2 -0
- package/UseCases/UnSelectAllItems/index.js +3 -0
- package/UseCases/UnSelectAllItems/index.js.map +1 -0
- package/UseCases/UnpublishItem/IUnpublishItemUseCase.d.ts +3 -0
- package/UseCases/UnpublishItem/IUnpublishItemUseCase.js +3 -0
- package/UseCases/UnpublishItem/IUnpublishItemUseCase.js.map +1 -0
- package/UseCases/UnpublishItem/UnpublishItemUseCase.d.ts +7 -0
- package/UseCases/UnpublishItem/UnpublishItemUseCase.js +12 -0
- package/UseCases/UnpublishItem/UnpublishItemUseCase.js.map +1 -0
- package/UseCases/UnpublishItem/index.d.ts +2 -0
- package/UseCases/UnpublishItem/index.js +3 -0
- package/UseCases/UnpublishItem/index.js.map +1 -0
- package/UseCases/index.d.ts +11 -0
- package/UseCases/index.js +13 -0
- package/UseCases/index.js.map +1 -0
- package/index.d.ts +1 -0
- package/index.js +3 -0
- package/index.js.map +1 -0
- package/package.json +55 -0
- package/types.d.ts +37 -0
- package/types.js +15 -0
- package/types.js.map +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["index.tsx"],"sourcesContent":["export * from \"./Title.js\";\n"],"mappings":"AAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./list/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./list/index.js\";\n"],"mappings":"AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AcoConfig, type RecordActionConfig } from "@webiny/app-aco";
|
|
3
|
+
export type { RecordActionConfig as EntryActionConfig };
|
|
4
|
+
type EntryActionProps = React.ComponentProps<typeof AcoConfig.Record.Action>;
|
|
5
|
+
export declare const EntryAction: ((props: EntryActionProps) => React.JSX.Element) & {
|
|
6
|
+
OptionsMenuItem: (props: import("@webiny/app-admin/components").OptionsMenuItemProps) => React.JSX.Element;
|
|
7
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CompositionScope } from "@webiny/react-composition";
|
|
3
|
+
import { AcoConfig } from "@webiny/app-aco";
|
|
4
|
+
const {
|
|
5
|
+
Record
|
|
6
|
+
} = AcoConfig;
|
|
7
|
+
const BaseEntryAction = props => {
|
|
8
|
+
return /*#__PURE__*/React.createElement(CompositionScope, {
|
|
9
|
+
name: "scheduler"
|
|
10
|
+
}, /*#__PURE__*/React.createElement(Record.Action, props));
|
|
11
|
+
};
|
|
12
|
+
export const EntryAction = Object.assign(BaseEntryAction, {
|
|
13
|
+
OptionsMenuItem: Record.Action.OptionsMenuItem
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=EntryAction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","CompositionScope","AcoConfig","Record","BaseEntryAction","props","createElement","name","Action","EntryAction","Object","assign","OptionsMenuItem"],"sources":["EntryAction.tsx"],"sourcesContent":["import React from \"react\";\nimport { CompositionScope } from \"@webiny/react-composition\";\nimport { AcoConfig, type RecordActionConfig } from \"@webiny/app-aco\";\n\nconst { Record } = AcoConfig;\n\nexport type { RecordActionConfig as EntryActionConfig };\n\ntype EntryActionProps = React.ComponentProps<typeof AcoConfig.Record.Action>;\n\nconst BaseEntryAction = (props: EntryActionProps) => {\n return (\n <CompositionScope name={\"scheduler\"}>\n <Record.Action {...props} />\n </CompositionScope>\n );\n};\n\nexport const EntryAction = Object.assign(BaseEntryAction, {\n OptionsMenuItem: Record.Action.OptionsMenuItem\n});\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,gBAAgB,QAAQ,2BAA2B;AAC5D,SAASC,SAAS,QAAiC,iBAAiB;AAEpE,MAAM;EAAEC;AAAO,CAAC,GAAGD,SAAS;AAM5B,MAAME,eAAe,GAAIC,KAAuB,IAAK;EACjD,oBACIL,KAAA,CAAAM,aAAA,CAACL,gBAAgB;IAACM,IAAI,EAAE;EAAY,gBAChCP,KAAA,CAAAM,aAAA,CAACH,MAAM,CAACK,MAAM,EAAKH,KAAQ,CACb,CAAC;AAE3B,CAAC;AAED,OAAO,MAAMI,WAAW,GAAGC,MAAM,CAACC,MAAM,CAACP,eAAe,EAAE;EACtDQ,eAAe,EAAET,MAAM,CAACK,MAAM,CAACI;AACnC,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AcoConfig, type TableColumnConfig as ColumnConfig } from "@webiny/app-aco";
|
|
3
|
+
import type { SchedulerEntryTableRow } from "../../../../../types.js";
|
|
4
|
+
export type { ColumnConfig };
|
|
5
|
+
type ColumnProps = React.ComponentProps<typeof AcoConfig.Table.Column>;
|
|
6
|
+
export declare const Column: ((props: ColumnProps) => React.JSX.Element) & {
|
|
7
|
+
useTableRow: {
|
|
8
|
+
(): import("@webiny/app-aco").TableRowContextData<SchedulerEntryTableRow>;
|
|
9
|
+
<TUserRow>(): import("@webiny/app-aco").TableRowContextData<SchedulerEntryTableRow & {
|
|
10
|
+
data: TUserRow;
|
|
11
|
+
}>;
|
|
12
|
+
};
|
|
13
|
+
isFolderRow: (row: import("@webiny/app-aco").TableRow) => row is import("@webiny/app-aco").FolderTableRow;
|
|
14
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AcoConfig } from "@webiny/app-aco";
|
|
3
|
+
const {
|
|
4
|
+
Table
|
|
5
|
+
} = AcoConfig;
|
|
6
|
+
const BaseColumn = props => {
|
|
7
|
+
return /*#__PURE__*/React.createElement(Table.Column, props);
|
|
8
|
+
};
|
|
9
|
+
export const Column = Object.assign(BaseColumn, {
|
|
10
|
+
useTableRow: Table.Column.createUseTableRow(),
|
|
11
|
+
isFolderRow: Table.Column.isFolderRow
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=Column.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","AcoConfig","Table","BaseColumn","props","createElement","Column","Object","assign","useTableRow","createUseTableRow","isFolderRow"],"sources":["Column.tsx"],"sourcesContent":["import React from \"react\";\nimport { AcoConfig, type TableColumnConfig as ColumnConfig } from \"@webiny/app-aco\";\nimport type { SchedulerEntryTableRow } from \"~/types.js\";\n\nconst { Table } = AcoConfig;\n\nexport type { ColumnConfig };\n\ntype ColumnProps = React.ComponentProps<typeof AcoConfig.Table.Column>;\n\nconst BaseColumn = (props: ColumnProps) => {\n return <Table.Column {...props} />;\n};\n\nexport const Column = Object.assign(BaseColumn, {\n useTableRow: Table.Column.createUseTableRow<SchedulerEntryTableRow>(),\n isFolderRow: Table.Column.isFolderRow\n});\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,SAAS,QAAgD,iBAAiB;AAGnF,MAAM;EAAEC;AAAM,CAAC,GAAGD,SAAS;AAM3B,MAAME,UAAU,GAAIC,KAAkB,IAAK;EACvC,oBAAOJ,KAAA,CAAAK,aAAA,CAACH,KAAK,CAACI,MAAM,EAAKF,KAAQ,CAAC;AACtC,CAAC;AAED,OAAO,MAAME,MAAM,GAAGC,MAAM,CAACC,MAAM,CAACL,UAAU,EAAE;EAC5CM,WAAW,EAAEP,KAAK,CAACI,MAAM,CAACI,iBAAiB,CAAyB,CAAC;EACrEC,WAAW,EAAET,KAAK,CAACI,MAAM,CAACK;AAC9B,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AcoConfig, type TableSortingConfig as SortingConfig } from "@webiny/app-aco";
|
|
3
|
+
export type { SortingConfig };
|
|
4
|
+
type SortingProps = React.ComponentProps<typeof AcoConfig.Table.Sorting>;
|
|
5
|
+
export declare const Sorting: (props: SortingProps) => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","AcoConfig","Table","Sorting","props","createElement"],"sources":["Sorting.tsx"],"sourcesContent":["import React from \"react\";\nimport { AcoConfig, type TableSortingConfig as SortingConfig } from \"@webiny/app-aco\";\n\nconst { Table } = AcoConfig;\n\nexport type { SortingConfig };\n\ntype SortingProps = React.ComponentProps<typeof AcoConfig.Table.Sorting>;\n\nexport const Sorting = (props: SortingProps) => {\n return <Table.Sorting {...props} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,SAAS,QAAkD,iBAAiB;AAErF,MAAM;EAAEC;AAAM,CAAC,GAAGD,SAAS;AAM3B,OAAO,MAAME,OAAO,GAAIC,KAAmB,IAAK;EAC5C,oBAAOJ,KAAA,CAAAK,aAAA,CAACH,KAAK,CAACC,OAAO,EAAKC,KAAQ,CAAC;AACvC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ColumnConfig } from "./Column.js";
|
|
2
|
+
import type { SortingConfig } from "./Sorting.js";
|
|
3
|
+
export interface TableConfig {
|
|
4
|
+
columns: ColumnConfig[];
|
|
5
|
+
sorting: SortingConfig[];
|
|
6
|
+
}
|
|
7
|
+
export declare const Table: {
|
|
8
|
+
Column: ((props: import("@webiny/app-aco/config/table/Column.js").ColumnProps) => import("react").JSX.Element) & {
|
|
9
|
+
useTableRow: {
|
|
10
|
+
(): import("@webiny/app-aco/index.js").TableRowContextData<import("../../../../../types.js").SchedulerEntryTableRow>;
|
|
11
|
+
<TUserRow>(): import("@webiny/app-aco/index.js").TableRowContextData<import("../../../../../types.js").SchedulerEntryTableRow & {
|
|
12
|
+
data: TUserRow;
|
|
13
|
+
}>;
|
|
14
|
+
};
|
|
15
|
+
isFolderRow: (row: import("@webiny/app-aco/table.types.js").TableRow) => row is import("@webiny/app-aco/table.types.js").FolderTableRow;
|
|
16
|
+
};
|
|
17
|
+
Sorting: (props: import("@webiny/app-aco/config/table/Sorting.js").SortingProps) => import("react").JSX.Element;
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Column","Sorting","Table"],"sources":["index.ts"],"sourcesContent":["import type { ColumnConfig } from \"./Column.js\";\nimport { Column } from \"./Column.js\";\nimport type { SortingConfig } from \"./Sorting.js\";\nimport { Sorting } from \"./Sorting.js\";\n\nexport interface TableConfig {\n columns: ColumnConfig[];\n sorting: SortingConfig[];\n}\n\nexport const Table = {\n Column,\n Sorting\n};\n"],"mappings":"AACA,SAASA,MAAM;AAEf,SAASC,OAAO;AAOhB,OAAO,MAAMC,KAAK,GAAG;EACjBF,MAAM;EACNC;AACJ,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { EntryActionConfig } from "./EntryAction.js";
|
|
2
|
+
import type { TableConfig } from "./Table/index.js";
|
|
3
|
+
export interface BrowserConfig {
|
|
4
|
+
entryActions: EntryActionConfig[];
|
|
5
|
+
table: TableConfig;
|
|
6
|
+
}
|
|
7
|
+
export declare const Browser: {
|
|
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;
|
|
10
|
+
};
|
|
11
|
+
Table: {
|
|
12
|
+
Column: ((props: import("@webiny/app-aco/config/table/Column.js").ColumnProps) => import("react").JSX.Element) & {
|
|
13
|
+
useTableRow: {
|
|
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 & {
|
|
16
|
+
data: TUserRow;
|
|
17
|
+
}>;
|
|
18
|
+
};
|
|
19
|
+
isFolderRow: (row: import("@webiny/app-aco/table.types.js").TableRow) => row is import("@webiny/app-aco/table.types.js").FolderTableRow;
|
|
20
|
+
};
|
|
21
|
+
Sorting: (props: import("@webiny/app-aco/config/table/Sorting.js").SortingProps) => import("react").JSX.Element;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
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":[]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare const SchedulerListConfig: {
|
|
3
|
+
({ children }: {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}): React.JSX.Element;
|
|
6
|
+
displayName: string;
|
|
7
|
+
} & {
|
|
8
|
+
Browser: {
|
|
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
|
+
};
|
|
12
|
+
Table: {
|
|
13
|
+
Column: ((props: import("@webiny/app-aco/config/table/Column.js").ColumnProps) => React.JSX.Element) & {
|
|
14
|
+
useTableRow: {
|
|
15
|
+
(): import("@webiny/app-aco").TableRowContextData<import("../../../types.js").SchedulerEntryTableRow>;
|
|
16
|
+
<TUserRow>(): import("@webiny/app-aco").TableRowContextData<import("../../../types.js").SchedulerEntryTableRow & {
|
|
17
|
+
data: TUserRow;
|
|
18
|
+
}>;
|
|
19
|
+
};
|
|
20
|
+
isFolderRow: (row: import("@webiny/app-aco").TableRow) => row is import("@webiny/app-aco").FolderTableRow;
|
|
21
|
+
};
|
|
22
|
+
Sorting: (props: import("@webiny/app-aco/config/table/Sorting.js").SortingProps) => React.JSX.Element;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export declare const SchedulerListWithConfig: ({ onProperties, children }: import("@webiny/react-properties").WithConfigProps) => React.JSX.Element;
|
|
27
|
+
export declare function useSchedulerListConfig(): {
|
|
28
|
+
browser: {
|
|
29
|
+
table: import("@webiny/app-aco/config/table/index.js").TableConfig;
|
|
30
|
+
entryActions: import("@webiny/app-aco").RecordActionConfig[];
|
|
31
|
+
bulkActions: never[];
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React, { useMemo } from "react";
|
|
2
|
+
import { createConfigurableComponent } from "@webiny/react-properties";
|
|
3
|
+
import { Browser } from "./Browser/index.js";
|
|
4
|
+
import { CompositionScope } from "@webiny/react-composition";
|
|
5
|
+
import { useAcoConfig } from "@webiny/app-aco";
|
|
6
|
+
const base = createConfigurableComponent("SchedulerListConfig");
|
|
7
|
+
const ScopedSchedulerListConfig = ({
|
|
8
|
+
children
|
|
9
|
+
}) => {
|
|
10
|
+
return /*#__PURE__*/React.createElement(CompositionScope, {
|
|
11
|
+
name: "scheduler"
|
|
12
|
+
}, /*#__PURE__*/React.createElement(base.Config, null, children));
|
|
13
|
+
};
|
|
14
|
+
ScopedSchedulerListConfig.displayName = "SchedulerListConfig";
|
|
15
|
+
export const SchedulerListConfig = Object.assign(ScopedSchedulerListConfig, {
|
|
16
|
+
Browser
|
|
17
|
+
});
|
|
18
|
+
export const SchedulerListWithConfig = base.WithConfig;
|
|
19
|
+
export function useSchedulerListConfig() {
|
|
20
|
+
const config = base.useConfig();
|
|
21
|
+
const acoConfig = useAcoConfig(config);
|
|
22
|
+
return useMemo(() => ({
|
|
23
|
+
browser: {
|
|
24
|
+
table: acoConfig.table,
|
|
25
|
+
entryActions: acoConfig.record.actions,
|
|
26
|
+
bulkActions: []
|
|
27
|
+
}
|
|
28
|
+
}), [config]);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=SchedulerListConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./SchedulerListConfig.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./SchedulerListConfig.js\";\n"],"mappings":"AAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./useScheduler.js\";\nexport * from \"./useSchedulerItem.js\";\nexport * from \"./useCancelSchedulerItem.js\";\n"],"mappings":"AAAA;AACA;AACA","ignoreList":[]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { SchedulerEntry } from "../../types.js";
|
|
2
|
+
interface UseCancelScheduleItemParams {
|
|
3
|
+
item: Pick<SchedulerEntry, "id" | "title" | "actionType">;
|
|
4
|
+
}
|
|
5
|
+
export declare const useCancelSchedulerItem: ({ item }: UseCancelScheduleItemParams) => {
|
|
6
|
+
openDialogCancelSchedulerItem: () => void;
|
|
7
|
+
};
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React, { useCallback } from "react";
|
|
2
|
+
import { useConfirmationDialog, useSnackbar } from "@webiny/app-admin";
|
|
3
|
+
import { useScheduler } from "./useScheduler.js";
|
|
4
|
+
export const useCancelSchedulerItem = ({
|
|
5
|
+
item
|
|
6
|
+
}) => {
|
|
7
|
+
const {
|
|
8
|
+
cancelItem
|
|
9
|
+
} = useScheduler();
|
|
10
|
+
const {
|
|
11
|
+
showSnackbar
|
|
12
|
+
} = useSnackbar();
|
|
13
|
+
const {
|
|
14
|
+
showConfirmation
|
|
15
|
+
} = useConfirmationDialog({
|
|
16
|
+
title: "Cancel scheduled action?",
|
|
17
|
+
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), "?")
|
|
18
|
+
});
|
|
19
|
+
const openDialogCancelSchedulerItem = useCallback(() => showConfirmation(async () => {
|
|
20
|
+
try {
|
|
21
|
+
await cancelItem(item.id);
|
|
22
|
+
showSnackbar(`Action on item "${item.title}" was canceled successfully!`);
|
|
23
|
+
} catch (ex) {
|
|
24
|
+
showSnackbar(ex.message || `Error while canceling action for "${item.title}".`);
|
|
25
|
+
}
|
|
26
|
+
}), [item]);
|
|
27
|
+
return {
|
|
28
|
+
openDialogCancelSchedulerItem
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=useCancelSchedulerItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useCallback","useConfirmationDialog","useSnackbar","useScheduler","useCancelSchedulerItem","item","cancelItem","showSnackbar","showConfirmation","title","message","createElement","actionType","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\" | \"actionType\">;\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>\n {item.actionType}\n </strong> for <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,iBACrCN,IAAI,CAACO,UACF,CAAC,SAAK,eAAAb,KAAA,CAAAY,aAAA,iBAASN,IAAI,CAACI,KAAc,CAAC,KAC5C;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":[]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { ISchedulerControllers, ISchedulerPresenter } from "../../Presentation/abstractions/index.js";
|
|
2
|
+
import type { SchedulerEntry } from "../../types.js";
|
|
3
|
+
export interface SchedulerContext {
|
|
4
|
+
namespace: string;
|
|
5
|
+
controllers: ISchedulerControllers;
|
|
6
|
+
presenter: ISchedulerPresenter;
|
|
7
|
+
}
|
|
8
|
+
export declare const useScheduler: () => {
|
|
9
|
+
namespace: string;
|
|
10
|
+
vm: import("~/Presentation/abstractions/index.js").SchedulerPresenterViewModel;
|
|
11
|
+
cancelItem: (id: string) => Promise<void>;
|
|
12
|
+
publishItem: (id: string, scheduleOn: Date) => Promise<void>;
|
|
13
|
+
unpublishItem: (id: string, scheduleOn: Date) => Promise<void>;
|
|
14
|
+
getItem: (id: string) => Promise<void>;
|
|
15
|
+
listItems: () => Promise<void>;
|
|
16
|
+
listMoreItems: () => Promise<void>;
|
|
17
|
+
selectItems: (items: SchedulerEntry[]) => Promise<void>;
|
|
18
|
+
selectAllItems: () => Promise<void>;
|
|
19
|
+
unselectAllItems: () => Promise<void>;
|
|
20
|
+
sortItems: import("@webiny/admin-ui/DataTable").OnDataTableSortingChange;
|
|
21
|
+
searchItems: (value: string) => Promise<void>;
|
|
22
|
+
};
|
|
23
|
+
export declare const SchedulerProvider: {
|
|
24
|
+
({ children, ...props }: SchedulerContext & {
|
|
25
|
+
children: React.ReactNode;
|
|
26
|
+
}): React.JSX.Element;
|
|
27
|
+
displayName: string;
|
|
28
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
2
|
+
import { autorun } from "mobx";
|
|
3
|
+
import { createGenericContext } from "@webiny/app-admin";
|
|
4
|
+
const {
|
|
5
|
+
Provider,
|
|
6
|
+
useHook
|
|
7
|
+
} = createGenericContext("SchedulerContext");
|
|
8
|
+
export const useScheduler = () => {
|
|
9
|
+
const context = useHook();
|
|
10
|
+
const [vm, setVm] = useState(context.presenter.vm);
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
return autorun(() => {
|
|
13
|
+
const newState = context.presenter.vm;
|
|
14
|
+
setVm(newState);
|
|
15
|
+
});
|
|
16
|
+
}, [context.presenter]);
|
|
17
|
+
const cancelItem = useCallback(id => context.controllers.scheduleCancelItem.execute(id), [context.controllers.scheduleCancelItem]);
|
|
18
|
+
const publishItem = useCallback((id, scheduleOn) => context.controllers.schedulePublishItem.execute(id, scheduleOn), [context.controllers.schedulePublishItem]);
|
|
19
|
+
const unpublishItem = useCallback((id, scheduleOn) => context.controllers.scheduleUnpublishItem.execute(id, scheduleOn), [context.controllers.scheduleUnpublishItem]);
|
|
20
|
+
const listItems = useCallback(() => context.controllers.listItems.execute(), [context.controllers.listItems]);
|
|
21
|
+
const getItem = useCallback(id => {
|
|
22
|
+
return context.controllers.getItem.execute({
|
|
23
|
+
id
|
|
24
|
+
});
|
|
25
|
+
}, [context.controllers.getItem]);
|
|
26
|
+
const listMoreItems = useCallback(() => context.controllers.listMoreItems.execute(), [context.controllers.listMoreItems]);
|
|
27
|
+
const selectItems = useCallback(items => context.controllers.selectItems.execute(items), [context.controllers.selectItems]);
|
|
28
|
+
const selectAllItems = useCallback(() => context.controllers.selectAllItems.execute(), [context.controllers.selectAllItems]);
|
|
29
|
+
const unselectAllItems = useCallback(() => context.controllers.unselectAllItems.execute(), [context.controllers.unselectAllItems]);
|
|
30
|
+
const sortItems = useMemo(() => context.controllers.sortItems.execute, [context.controllers.sortItems]);
|
|
31
|
+
const searchItems = useCallback(value => {
|
|
32
|
+
return context.controllers.searchItems.execute(value);
|
|
33
|
+
}, [context.controllers.searchItems]);
|
|
34
|
+
return {
|
|
35
|
+
namespace: context.namespace,
|
|
36
|
+
vm,
|
|
37
|
+
cancelItem,
|
|
38
|
+
publishItem,
|
|
39
|
+
unpublishItem,
|
|
40
|
+
getItem,
|
|
41
|
+
listItems,
|
|
42
|
+
listMoreItems,
|
|
43
|
+
selectItems,
|
|
44
|
+
selectAllItems,
|
|
45
|
+
unselectAllItems,
|
|
46
|
+
sortItems,
|
|
47
|
+
searchItems
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
export const SchedulerProvider = Provider;
|
|
51
|
+
|
|
52
|
+
//# sourceMappingURL=useScheduler.js.map
|
|
@@ -0,0 +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","namespace","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 namespace: string;\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 namespace: context.namespace,\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;AAaxD,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;IACHE,SAAS,EAAEzB,OAAO,CAACyB,SAAS;IAC5BxB,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,MAAMG,iBAAiB,GAAG7B,QAAQ","ignoreList":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { SchedulerEntry } from "../../types.js";
|
|
2
|
+
export interface SchedulerItemContext {
|
|
3
|
+
item: SchedulerEntry;
|
|
4
|
+
}
|
|
5
|
+
export declare const useSchedulerItem: () => SchedulerItemContext;
|
|
6
|
+
export declare const SchedulerItemProvider: {
|
|
7
|
+
({ children, ...props }: SchedulerItemContext & {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}): React.JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { createGenericContext } from "@webiny/app-admin";
|
|
2
|
+
const {
|
|
3
|
+
Provider,
|
|
4
|
+
useHook
|
|
5
|
+
} = createGenericContext("SchedulerItemContext");
|
|
6
|
+
export const useSchedulerItem = useHook;
|
|
7
|
+
export const SchedulerItemProvider = Provider;
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=useSchedulerItem.js.map
|
|
@@ -0,0 +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.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":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type ApolloClient from "apollo-client";
|
|
3
|
+
export * from "./components/ScheduleDialog/index.js";
|
|
4
|
+
export * from "../Presentation/SchedulerConfigs/index.js";
|
|
5
|
+
/**
|
|
6
|
+
* Decoratable Cells.
|
|
7
|
+
*/
|
|
8
|
+
export * from "./components/Cells/CellScheduledOn/index.js";
|
|
9
|
+
export interface SchedulerRenderPropParams {
|
|
10
|
+
showScheduler: () => void;
|
|
11
|
+
}
|
|
12
|
+
interface SchedulerRenderProps {
|
|
13
|
+
(params: SchedulerRenderPropParams): React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export interface SchedulerProps {
|
|
16
|
+
namespace: string;
|
|
17
|
+
render: SchedulerRenderProps;
|
|
18
|
+
client: ApolloClient<object>;
|
|
19
|
+
onClose?: () => void;
|
|
20
|
+
show?: boolean;
|
|
21
|
+
title?: string;
|
|
22
|
+
canPublish: boolean;
|
|
23
|
+
canUnpublish: boolean;
|
|
24
|
+
}
|
|
25
|
+
export declare const Scheduler: ({ render, client, show: initialShow, ...rest }: SchedulerProps) => React.JSX.Element;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import React, { useCallback, useMemo, useState } from "react";
|
|
2
|
+
import { SchedulerRenderer } from "./SchedulerRenderer/index.js";
|
|
3
|
+
import { CompositionScope } from "@webiny/react-composition";
|
|
4
|
+
import { SchedulerListWithConfig } from "./configs/index.js";
|
|
5
|
+
import { SchedulerGetGraphQLGateway } from "../Gateways/SchedulerGetGraphQLGateway.js";
|
|
6
|
+
import { SchedulerListGraphQLGateway } from "../Gateways/SchedulerListGraphQLGateway.js";
|
|
7
|
+
import { SchedulerCancelGraphQLGateway } from "../Gateways/SchedulerCancelGraphQLGateway.js";
|
|
8
|
+
import { SchedulerPublishGraphQLGateway } from "../Gateways/SchedulerPublishGraphQLGateway.js";
|
|
9
|
+
import { SchedulerUnpublishGraphQLGateway } from "../Gateways/SchedulerUnpublishGraphQLGateway.js";
|
|
10
|
+
export * from "./components/ScheduleDialog/index.js";
|
|
11
|
+
export * from "./SchedulerConfigs/index.js";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Decoratable Cells.
|
|
15
|
+
*/
|
|
16
|
+
export * from "./components/Cells/CellScheduledOn/index.js";
|
|
17
|
+
export const Scheduler = ({
|
|
18
|
+
render,
|
|
19
|
+
client,
|
|
20
|
+
show: initialShow,
|
|
21
|
+
...rest
|
|
22
|
+
}) => {
|
|
23
|
+
const [show, setShow] = useState(initialShow ?? false);
|
|
24
|
+
const showScheduler = useCallback(() => {
|
|
25
|
+
setShow(true);
|
|
26
|
+
}, []);
|
|
27
|
+
const onClose = useCallback(() => {
|
|
28
|
+
if (typeof rest.onClose === "function") {
|
|
29
|
+
rest.onClose();
|
|
30
|
+
}
|
|
31
|
+
setShow(false);
|
|
32
|
+
}, [rest.onClose]);
|
|
33
|
+
const gateways = useMemo(() => {
|
|
34
|
+
return {
|
|
35
|
+
getGateway: new SchedulerGetGraphQLGateway(client),
|
|
36
|
+
listGateway: new SchedulerListGraphQLGateway(client),
|
|
37
|
+
cancelGateway: new SchedulerCancelGraphQLGateway(client),
|
|
38
|
+
publishGateway: new SchedulerPublishGraphQLGateway(client),
|
|
39
|
+
unpublishGateway: new SchedulerUnpublishGraphQLGateway(client)
|
|
40
|
+
};
|
|
41
|
+
}, [client]);
|
|
42
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, show ? /*#__PURE__*/React.createElement(CompositionScope, {
|
|
43
|
+
name: "scheduler"
|
|
44
|
+
}, /*#__PURE__*/React.createElement(SchedulerListWithConfig, null, /*#__PURE__*/React.createElement(SchedulerRenderer, Object.assign({}, rest, {
|
|
45
|
+
cancelGateway: gateways.cancelGateway,
|
|
46
|
+
publishGateway: gateways.publishGateway,
|
|
47
|
+
unpublishGateway: gateways.unpublishGateway,
|
|
48
|
+
listGateway: gateways.listGateway,
|
|
49
|
+
getGateway: gateways.getGateway,
|
|
50
|
+
onClose: onClose
|
|
51
|
+
})))) : null, render ? render({
|
|
52
|
+
showScheduler
|
|
53
|
+
}) : null);
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useCallback","useMemo","useState","SchedulerRenderer","CompositionScope","SchedulerListWithConfig","SchedulerGetGraphQLGateway","SchedulerListGraphQLGateway","SchedulerCancelGraphQLGateway","SchedulerPublishGraphQLGateway","SchedulerUnpublishGraphQLGateway","Scheduler","render","client","show","initialShow","rest","setShow","showScheduler","onClose","gateways","getGateway","listGateway","cancelGateway","publishGateway","unpublishGateway","createElement","Fragment","name","Object","assign"],"sources":["index.tsx"],"sourcesContent":["import React, { useCallback, useMemo, 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 ApolloClient from \"apollo-client\";\nimport { SchedulerGetGraphQLGateway } from \"~/Gateways/SchedulerGetGraphQLGateway.js\";\nimport { SchedulerListGraphQLGateway } from \"~/Gateways/SchedulerListGraphQLGateway.js\";\nimport { SchedulerCancelGraphQLGateway } from \"~/Gateways/SchedulerCancelGraphQLGateway.js\";\nimport { SchedulerPublishGraphQLGateway } from \"~/Gateways/SchedulerPublishGraphQLGateway.js\";\nimport { SchedulerUnpublishGraphQLGateway } from \"~/Gateways/SchedulerUnpublishGraphQLGateway.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 namespace: string;\n render: SchedulerRenderProps;\n client: ApolloClient<object>;\n onClose?: () => void;\n show?: boolean;\n title?: string;\n canPublish: boolean;\n canUnpublish: boolean;\n}\n\nexport const Scheduler = ({ render, client, show: initialShow, ...rest }: SchedulerProps) => {\n const [show, setShow] = useState(initialShow ?? 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 const gateways = useMemo(() => {\n return {\n getGateway: new SchedulerGetGraphQLGateway(client),\n listGateway: new SchedulerListGraphQLGateway(client),\n cancelGateway: new SchedulerCancelGraphQLGateway(client),\n publishGateway: new SchedulerPublishGraphQLGateway(client),\n unpublishGateway: new SchedulerUnpublishGraphQLGateway(client)\n };\n }, [client]);\n\n return (\n <>\n {show ? (\n <CompositionScope name={\"scheduler\"}>\n <SchedulerListWithConfig>\n <SchedulerRenderer\n {...rest}\n cancelGateway={gateways.cancelGateway}\n publishGateway={gateways.publishGateway}\n unpublishGateway={gateways.unpublishGateway}\n listGateway={gateways.listGateway}\n getGateway={gateways.getGateway}\n onClose={onClose}\n />\n </SchedulerListWithConfig>\n </CompositionScope>\n ) : null}\n {render ? render({ showScheduler }) : null}\n </>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AAC7D,SAASC,iBAAiB;AAC1B,SAASC,gBAAgB,QAAQ,2BAA2B;AAC5D,SAASC,uBAAuB;AAEhC,SAASC,0BAA0B;AACnC,SAASC,2BAA2B;AACpC,SAASC,6BAA6B;AACtC,SAASC,8BAA8B;AACvC,SAASC,gCAAgC;AAEzC;AACA;;AAEA;AACA;AACA;AACA;AAqBA,OAAO,MAAMC,SAAS,GAAGA,CAAC;EAAEC,MAAM;EAAEC,MAAM;EAAEC,IAAI,EAAEC,WAAW;EAAE,GAAGC;AAAqB,CAAC,KAAK;EACzF,MAAM,CAACF,IAAI,EAAEG,OAAO,CAAC,GAAGf,QAAQ,CAACa,WAAW,IAAI,KAAK,CAAC;EAEtD,MAAMG,aAAa,GAAGlB,WAAW,CAAC,MAAM;IACpCiB,OAAO,CAAC,IAAI,CAAC;EACjB,CAAC,EAAE,EAAE,CAAC;EAEN,MAAME,OAAO,GAAGnB,WAAW,CAAC,MAAM;IAC9B,IAAI,OAAOgB,IAAI,CAACG,OAAO,KAAK,UAAU,EAAE;MACpCH,IAAI,CAACG,OAAO,CAAC,CAAC;IAClB;IAEAF,OAAO,CAAC,KAAK,CAAC;EAClB,CAAC,EAAE,CAACD,IAAI,CAACG,OAAO,CAAC,CAAC;EAElB,MAAMC,QAAQ,GAAGnB,OAAO,CAAC,MAAM;IAC3B,OAAO;MACHoB,UAAU,EAAE,IAAIf,0BAA0B,CAACO,MAAM,CAAC;MAClDS,WAAW,EAAE,IAAIf,2BAA2B,CAACM,MAAM,CAAC;MACpDU,aAAa,EAAE,IAAIf,6BAA6B,CAACK,MAAM,CAAC;MACxDW,cAAc,EAAE,IAAIf,8BAA8B,CAACI,MAAM,CAAC;MAC1DY,gBAAgB,EAAE,IAAIf,gCAAgC,CAACG,MAAM;IACjE,CAAC;EACL,CAAC,EAAE,CAACA,MAAM,CAAC,CAAC;EAEZ,oBACId,KAAA,CAAA2B,aAAA,CAAA3B,KAAA,CAAA4B,QAAA,QACKb,IAAI,gBACDf,KAAA,CAAA2B,aAAA,CAACtB,gBAAgB;IAACwB,IAAI,EAAE;EAAY,gBAChC7B,KAAA,CAAA2B,aAAA,CAACrB,uBAAuB,qBACpBN,KAAA,CAAA2B,aAAA,CAACvB,iBAAiB,EAAA0B,MAAA,CAAAC,MAAA,KACVd,IAAI;IACRO,aAAa,EAAEH,QAAQ,CAACG,aAAc;IACtCC,cAAc,EAAEJ,QAAQ,CAACI,cAAe;IACxCC,gBAAgB,EAAEL,QAAQ,CAACK,gBAAiB;IAC5CH,WAAW,EAAEF,QAAQ,CAACE,WAAY;IAClCD,UAAU,EAAED,QAAQ,CAACC,UAAW;IAChCF,OAAO,EAAEA;EAAQ,EACpB,CACoB,CACX,CAAC,GACnB,IAAI,EACPP,MAAM,GAAGA,MAAM,CAAC;IAAEM;EAAc,CAAC,CAAC,GAAG,IACxC,CAAC;AAEX,CAAC","ignoreList":[]}
|
package/README.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# @webiny/app-scheduler
|
|
2
|
+
|
|
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.
|
|
6
|
+
|
|
7
|
+
📘 **Documentation:** [https://www.webiny.com/docs](https://www.webiny.com/docs)
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
_This README file is automatically generated during the publish process._
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ISchedulerItemsRepository } from "../../Domain/Repositories/index.js";
|
|
2
|
+
import type { ICancelItemUseCase } from "./ICancelItemUseCase.js";
|
|
3
|
+
export declare class ScheduleCancelItemUseCase implements ICancelItemUseCase {
|
|
4
|
+
private repository;
|
|
5
|
+
constructor(repository: ISchedulerItemsRepository);
|
|
6
|
+
execute(id: string): Promise<void>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { makeAutoObservable } from "mobx";
|
|
2
|
+
export class ScheduleCancelItemUseCase {
|
|
3
|
+
constructor(repository) {
|
|
4
|
+
this.repository = repository;
|
|
5
|
+
makeAutoObservable(this);
|
|
6
|
+
}
|
|
7
|
+
async execute(id) {
|
|
8
|
+
await this.repository.scheduleCancelItem(id);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
//# sourceMappingURL=CancelItemUseCase.js.map
|
|
@@ -0,0 +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/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":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["ICancelItemUseCase.ts"],"sourcesContent":["export interface ICancelItemUseCase {\n execute: (id: string) => Promise<void>;\n}\n"],"mappings":"","ignoreList":[]}
|