@webiny/app-scheduler 0.0.0-unstable.7be00a75a9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Domain/Models/SchedulerItem/SchedulerItem.d.ts +13 -0
- package/Domain/Models/SchedulerItem/SchedulerItem.js +18 -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 +1 -0
- package/Domain/Models/index.d.ts +1 -0
- package/Domain/Models/index.js +1 -0
- package/Domain/Repositories/SchedulerItems/ISchedulerItemsRepository.d.ts +14 -0
- package/Domain/Repositories/SchedulerItems/ISchedulerItemsRepository.js +0 -0
- package/Domain/Repositories/SchedulerItems/SchedulerItemsRepository.d.ts +36 -0
- package/Domain/Repositories/SchedulerItems/SchedulerItemsRepository.js +119 -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 +18 -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 +39 -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 +3 -0
- package/Domain/Repositories/Search/ISearchRepository.d.ts +4 -0
- package/Domain/Repositories/Search/ISearchRepository.js +0 -0
- package/Domain/Repositories/Search/SearchRepository.d.ts +7 -0
- package/Domain/Repositories/Search/SearchRepository.js +16 -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 +18 -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 +2 -0
- package/Domain/Repositories/SelectedItems/ISelectedItemsRepository.d.ts +8 -0
- package/Domain/Repositories/SelectedItems/ISelectedItemsRepository.js +0 -0
- package/Domain/Repositories/SelectedItems/SelectedItemsRepository.d.ts +12 -0
- package/Domain/Repositories/SelectedItems/SelectedItemsRepository.js +28 -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 +18 -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 +2 -0
- package/Domain/Repositories/Sorting/SortingRepositoryWithDefaults.d.ts +8 -0
- package/Domain/Repositories/Sorting/SortingRepositoryWithDefaults.js +21 -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 +1 -0
- package/Domain/Repositories/index.d.ts +4 -0
- package/Domain/Repositories/index.js +4 -0
- package/Domain/index.d.ts +2 -0
- package/Domain/index.js +2 -0
- package/Gateways/SchedulerCancelGraphQLGateway.d.ts +7 -0
- package/Gateways/SchedulerCancelGraphQLGateway.js +42 -0
- package/Gateways/SchedulerCancelGraphQLGateway.js.map +1 -0
- package/Gateways/SchedulerGetGraphQLGateway.d.ts +21 -0
- package/Gateways/SchedulerGetGraphQLGateway.js +68 -0
- package/Gateways/SchedulerGetGraphQLGateway.js.map +1 -0
- package/Gateways/SchedulerListGraphQLGateway.d.ts +7 -0
- package/Gateways/SchedulerListGraphQLGateway.js +86 -0
- package/Gateways/SchedulerListGraphQLGateway.js.map +1 -0
- package/Gateways/SchedulerPublishGraphQLGateway.d.ts +7 -0
- package/Gateways/SchedulerPublishGraphQLGateway.js +59 -0
- package/Gateways/SchedulerPublishGraphQLGateway.js.map +1 -0
- package/Gateways/SchedulerUnpublishGraphQLGateway.d.ts +23 -0
- package/Gateways/SchedulerUnpublishGraphQLGateway.js +63 -0
- package/Gateways/SchedulerUnpublishGraphQLGateway.js.map +1 -0
- package/Gateways/abstractions/CancelScheduledActionGateway.d.ts +7 -0
- package/Gateways/abstractions/CancelScheduledActionGateway.js +0 -0
- package/Gateways/abstractions/GetScheduledActionGateway.d.ts +9 -0
- package/Gateways/abstractions/GetScheduledActionGateway.js +0 -0
- package/Gateways/abstractions/ListScheduledActionsGateway.d.ts +27 -0
- package/Gateways/abstractions/ListScheduledActionsGateway.js +0 -0
- package/Gateways/abstractions/SchedulePublishActionGateway.d.ts +12 -0
- package/Gateways/abstractions/SchedulePublishActionGateway.js +0 -0
- package/Gateways/abstractions/ScheduleUnpublishActionGateway.d.ts +12 -0
- package/Gateways/abstractions/ScheduleUnpublishActionGateway.js +0 -0
- package/Gateways/graphql/fields.d.ts +1 -0
- package/Gateways/graphql/fields.js +17 -0
- package/Gateways/graphql/fields.js.map +1 -0
- package/Gateways/index.d.ts +5 -0
- package/Gateways/index.js +0 -0
- package/Gateways/schema/schedulerEntry.d.ts +16 -0
- package/Gateways/schema/schedulerEntry.js +19 -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 +78 -0
- package/Presentation/Scheduler/Scheduler.js.map +1 -0
- package/Presentation/Scheduler/SchedulerControllers.d.ts +30 -0
- package/Presentation/Scheduler/SchedulerControllers.js +54 -0
- package/Presentation/Scheduler/SchedulerControllers.js.map +1 -0
- package/Presentation/Scheduler/SchedulerPresenter.d.ts +32 -0
- package/Presentation/Scheduler/SchedulerPresenter.js +45 -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 +12 -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 +0 -0
- package/Presentation/Scheduler/controllers/CancelItem/index.d.ts +2 -0
- package/Presentation/Scheduler/controllers/CancelItem/index.js +1 -0
- package/Presentation/Scheduler/controllers/GetItem/GetItemController.d.ts +8 -0
- package/Presentation/Scheduler/controllers/GetItem/GetItemController.js +12 -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 +0 -0
- package/Presentation/Scheduler/controllers/GetItem/index.d.ts +2 -0
- package/Presentation/Scheduler/controllers/GetItem/index.js +1 -0
- package/Presentation/Scheduler/controllers/ListItems/IListItemsController.d.ts +4 -0
- package/Presentation/Scheduler/controllers/ListItems/IListItemsController.js +0 -0
- package/Presentation/Scheduler/controllers/ListItems/ListItemsController.d.ts +8 -0
- package/Presentation/Scheduler/controllers/ListItems/ListItemsController.js +12 -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 +1 -0
- package/Presentation/Scheduler/controllers/ListMoreItems/IListMoreItemsController.d.ts +3 -0
- package/Presentation/Scheduler/controllers/ListMoreItems/IListMoreItemsController.js +0 -0
- package/Presentation/Scheduler/controllers/ListMoreItems/ListMoreItemsController.d.ts +7 -0
- package/Presentation/Scheduler/controllers/ListMoreItems/ListMoreItemsController.js +12 -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 +1 -0
- package/Presentation/Scheduler/controllers/PublishItem/IPublishItemController.d.ts +3 -0
- package/Presentation/Scheduler/controllers/PublishItem/IPublishItemController.js +0 -0
- package/Presentation/Scheduler/controllers/PublishItem/PublishItemController.d.ts +7 -0
- package/Presentation/Scheduler/controllers/PublishItem/PublishItemController.js +12 -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 +1 -0
- package/Presentation/Scheduler/controllers/SearchItems/ISearchItemsController.d.ts +3 -0
- package/Presentation/Scheduler/controllers/SearchItems/ISearchItemsController.js +0 -0
- package/Presentation/Scheduler/controllers/SearchItems/SearchItemsController.d.ts +8 -0
- package/Presentation/Scheduler/controllers/SearchItems/SearchItemsController.js +15 -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 +1 -0
- package/Presentation/Scheduler/controllers/SelectAllItems/ISelectAllItemsController.d.ts +3 -0
- package/Presentation/Scheduler/controllers/SelectAllItems/ISelectAllItemsController.js +0 -0
- package/Presentation/Scheduler/controllers/SelectAllItems/SelectAllItemsController.d.ts +7 -0
- package/Presentation/Scheduler/controllers/SelectAllItems/SelectAllItemsController.js +12 -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 +1 -0
- package/Presentation/Scheduler/controllers/SelectItems/ISelectItemsController.d.ts +4 -0
- package/Presentation/Scheduler/controllers/SelectItems/ISelectItemsController.js +0 -0
- package/Presentation/Scheduler/controllers/SelectItems/SelectItemsController.d.ts +8 -0
- package/Presentation/Scheduler/controllers/SelectItems/SelectItemsController.js +14 -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 +1 -0
- package/Presentation/Scheduler/controllers/SortItems/ISortItemsController.d.ts +4 -0
- package/Presentation/Scheduler/controllers/SortItems/ISortItemsController.js +0 -0
- package/Presentation/Scheduler/controllers/SortItems/SortItemsController.d.ts +9 -0
- package/Presentation/Scheduler/controllers/SortItems/SortItemsController.js +18 -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 +1 -0
- package/Presentation/Scheduler/controllers/UnpublishItem/IUnpublishItemController.d.ts +3 -0
- package/Presentation/Scheduler/controllers/UnpublishItem/IUnpublishItemController.js +0 -0
- package/Presentation/Scheduler/controllers/UnpublishItem/UnpublishItemController.d.ts +7 -0
- package/Presentation/Scheduler/controllers/UnpublishItem/UnpublishItemController.js +12 -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 +1 -0
- package/Presentation/Scheduler/controllers/UnselectAllItems/IUnselectAllItemsController.d.ts +3 -0
- package/Presentation/Scheduler/controllers/UnselectAllItems/IUnselectAllItemsController.js +0 -0
- package/Presentation/Scheduler/controllers/UnselectAllItems/UnselectAllItemsController.d.ts +7 -0
- package/Presentation/Scheduler/controllers/UnselectAllItems/UnselectAllItemsController.js +12 -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 +1 -0
- package/Presentation/Scheduler/controllers/index.d.ts +11 -0
- package/Presentation/Scheduler/controllers/index.js +11 -0
- package/Presentation/Scheduler/index.d.ts +1 -0
- package/Presentation/Scheduler/index.js +1 -0
- package/Presentation/SchedulerConfigs/SchedulerConfigs.d.ts +2 -0
- package/Presentation/SchedulerConfigs/SchedulerConfigs.js +52 -0
- package/Presentation/SchedulerConfigs/SchedulerConfigs.js.map +1 -0
- package/Presentation/SchedulerConfigs/index.d.ts +1 -0
- package/Presentation/SchedulerConfigs/index.js +1 -0
- package/Presentation/SchedulerRenderer/SchedulerRenderer.d.ts +6 -0
- package/Presentation/SchedulerRenderer/SchedulerRenderer.js +16 -0
- package/Presentation/SchedulerRenderer/SchedulerRenderer.js.map +1 -0
- package/Presentation/SchedulerRenderer/index.d.ts +1 -0
- package/Presentation/SchedulerRenderer/index.js +1 -0
- package/Presentation/abstractions/ISchedulerControllers.d.ts +14 -0
- package/Presentation/abstractions/ISchedulerControllers.js +0 -0
- package/Presentation/abstractions/ISchedulerPresenter.d.ts +20 -0
- package/Presentation/abstractions/ISchedulerPresenter.js +0 -0
- package/Presentation/abstractions/index.d.ts +2 -0
- package/Presentation/abstractions/index.js +0 -0
- package/Presentation/components/Actions/CancelItem/CancelItem.d.ts +2 -0
- package/Presentation/components/Actions/CancelItem/CancelItem.js +19 -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 +1 -0
- package/Presentation/components/Actions/index.d.ts +1 -0
- package/Presentation/components/Actions/index.js +1 -0
- package/Presentation/components/BottomInfoBar/BottomInfoBar.d.ts +2 -0
- package/Presentation/components/BottomInfoBar/BottomInfoBar.js +19 -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 +43 -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 +9 -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 +12 -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 +1 -0
- package/Presentation/components/Cells/CellActions/CellActions.d.ts +2 -0
- package/Presentation/components/Cells/CellActions/CellActions.js +18 -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 +1 -0
- package/Presentation/components/Cells/CellRevision/CellRevision.d.ts +2 -0
- package/Presentation/components/Cells/CellRevision/CellRevision.js +15 -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 +18 -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 +1 -0
- package/Presentation/components/Cells/CellScheduledBy/CellScheduledBy.d.ts +2 -0
- package/Presentation/components/Cells/CellScheduledBy/CellScheduledBy.js +10 -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 +1 -0
- package/Presentation/components/Cells/CellScheduledOn/CellScheduledOn.d.ts +24 -0
- package/Presentation/components/Cells/CellScheduledOn/CellScheduledOn.js +17 -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 +1 -0
- package/Presentation/components/Cells/CellTitle/CellTitle.d.ts +2 -0
- package/Presentation/components/Cells/CellTitle/CellTitle.js +14 -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 +18 -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 +1 -0
- package/Presentation/components/Cells/CellType/CellActionType.d.ts +2 -0
- package/Presentation/components/Cells/CellType/CellActionType.js +15 -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 +18 -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 +1 -0
- package/Presentation/components/Cells/index.d.ts +6 -0
- package/Presentation/components/Cells/index.js +6 -0
- package/Presentation/components/Empty/Empty.d.ts +2 -0
- package/Presentation/components/Empty/Empty.js +21 -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 +16 -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 +1 -0
- package/Presentation/components/ScheduleDialog/IScheduleDialogPresenter.d.ts +26 -0
- package/Presentation/components/ScheduleDialog/IScheduleDialogPresenter.js +0 -0
- package/Presentation/components/ScheduleDialog/ScheduleDialogPresenter.d.ts +22 -0
- package/Presentation/components/ScheduleDialog/ScheduleDialogPresenter.js +86 -0
- package/Presentation/components/ScheduleDialog/ScheduleDialogPresenter.js.map +1 -0
- package/Presentation/components/ScheduleDialog/index.d.ts +1 -0
- package/Presentation/components/ScheduleDialog/index.js +1 -0
- package/Presentation/components/ScheduleDialog/types.d.ts +15 -0
- package/Presentation/components/ScheduleDialog/types.js +0 -0
- package/Presentation/components/ScheduleDialog/useScheduleDialog.d.ts +41 -0
- package/Presentation/components/ScheduleDialog/useScheduleDialog.js +192 -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 +30 -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 +1 -0
- package/Presentation/components/SearchInput/SearchInput.d.ts +2 -0
- package/Presentation/components/SearchInput/SearchInput.js +30 -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 +1 -0
- package/Presentation/components/Table/Table.d.ts +2 -0
- package/Presentation/components/Table/Table.js +29 -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 +1 -0
- package/Presentation/components/Title/Title.d.ts +5 -0
- package/Presentation/components/Title/Title.js +10 -0
- package/Presentation/components/Title/Title.js.map +1 -0
- package/Presentation/components/Title/Title.styled.d.ts +3 -0
- package/Presentation/components/Title/Title.styled.js +13 -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 +1 -0
- package/Presentation/configs/index.d.ts +1 -0
- package/Presentation/configs/index.js +1 -0
- package/Presentation/configs/list/Browser/EntryAction.d.ts +7 -0
- package/Presentation/configs/list/Browser/EntryAction.js +13 -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 +11 -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 +7 -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 +9 -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 +9 -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 +30 -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 +1 -0
- package/Presentation/hooks/index.d.ts +3 -0
- package/Presentation/hooks/index.js +3 -0
- package/Presentation/hooks/useCancelSchedulerItem.d.ts +8 -0
- package/Presentation/hooks/useCancelSchedulerItem.js +27 -0
- package/Presentation/hooks/useCancelSchedulerItem.js.map +1 -0
- package/Presentation/hooks/useScheduler.d.ts +28 -0
- package/Presentation/hooks/useScheduler.js +68 -0
- package/Presentation/hooks/useScheduler.js.map +1 -0
- package/Presentation/hooks/useSchedulerItem.d.ts +11 -0
- package/Presentation/hooks/useSchedulerItem.js +7 -0
- package/Presentation/hooks/useSchedulerItem.js.map +1 -0
- package/Presentation/index.d.ts +25 -0
- package/Presentation/index.js +49 -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 +13 -0
- package/UseCases/CancelItem/CancelItemUseCase.js.map +1 -0
- package/UseCases/CancelItem/ICancelItemUseCase.d.ts +3 -0
- package/UseCases/CancelItem/ICancelItemUseCase.js +0 -0
- package/UseCases/CancelItem/index.d.ts +2 -0
- package/UseCases/CancelItem/index.js +1 -0
- package/UseCases/GetItem/GetItemUseCase.d.ts +8 -0
- package/UseCases/GetItem/GetItemUseCase.js +13 -0
- package/UseCases/GetItem/GetItemUseCase.js.map +1 -0
- package/UseCases/GetItem/IGetItemUseCase.d.ts +4 -0
- package/UseCases/GetItem/IGetItemUseCase.js +0 -0
- package/UseCases/GetItem/index.d.ts +2 -0
- package/UseCases/GetItem/index.js +1 -0
- package/UseCases/GetScheduledItem/GetScheduledItemUseCase.d.ts +7 -0
- package/UseCases/GetScheduledItem/GetScheduledItemUseCase.js +14 -0
- package/UseCases/GetScheduledItem/GetScheduledItemUseCase.js.map +1 -0
- package/UseCases/GetScheduledItem/IGetScheduledItemUseCase.d.ts +4 -0
- package/UseCases/GetScheduledItem/IGetScheduledItemUseCase.js +0 -0
- package/UseCases/GetScheduledItem/index.d.ts +2 -0
- package/UseCases/GetScheduledItem/index.js +1 -0
- package/UseCases/ListItems/IListItemsUseCase.d.ts +4 -0
- package/UseCases/ListItems/IListItemsUseCase.js +0 -0
- package/UseCases/ListItems/ListItemsUseCase.d.ts +8 -0
- package/UseCases/ListItems/ListItemsUseCase.js +13 -0
- package/UseCases/ListItems/ListItemsUseCase.js.map +1 -0
- package/UseCases/ListItems/ListItemsUseCaseWithSearch.d.ts +9 -0
- package/UseCases/ListItems/ListItemsUseCaseWithSearch.js +23 -0
- package/UseCases/ListItems/ListItemsUseCaseWithSearch.js.map +1 -0
- package/UseCases/ListItems/ListItemsUseCaseWithSorting.d.ts +9 -0
- package/UseCases/ListItems/ListItemsUseCaseWithSorting.js +21 -0
- package/UseCases/ListItems/ListItemsUseCaseWithSorting.js.map +1 -0
- package/UseCases/ListItems/index.d.ts +4 -0
- package/UseCases/ListItems/index.js +3 -0
- package/UseCases/ListMoreItems/IListMoreItemsUseCase.d.ts +3 -0
- package/UseCases/ListMoreItems/IListMoreItemsUseCase.js +0 -0
- package/UseCases/ListMoreItems/ListMoreItemsUseCase.d.ts +7 -0
- package/UseCases/ListMoreItems/ListMoreItemsUseCase.js +13 -0
- package/UseCases/ListMoreItems/ListMoreItemsUseCase.js.map +1 -0
- package/UseCases/ListMoreItems/index.d.ts +2 -0
- package/UseCases/ListMoreItems/index.js +1 -0
- package/UseCases/PublishItem/IPublishItemUseCase.d.ts +3 -0
- package/UseCases/PublishItem/IPublishItemUseCase.js +0 -0
- package/UseCases/PublishItem/PublishItemUseCase.d.ts +7 -0
- package/UseCases/PublishItem/PublishItemUseCase.js +13 -0
- package/UseCases/PublishItem/PublishItemUseCase.js.map +1 -0
- package/UseCases/PublishItem/index.d.ts +2 -0
- package/UseCases/PublishItem/index.js +1 -0
- package/UseCases/SearchItems/ISearchItemsUseCase.d.ts +3 -0
- package/UseCases/SearchItems/ISearchItemsUseCase.js +0 -0
- package/UseCases/SearchItems/SearchItemsUseCase.d.ts +7 -0
- package/UseCases/SearchItems/SearchItemsUseCase.js +13 -0
- package/UseCases/SearchItems/SearchItemsUseCase.js.map +1 -0
- package/UseCases/SearchItems/index.d.ts +2 -0
- package/UseCases/SearchItems/index.js +1 -0
- package/UseCases/SelectAllItems/ISelectAllItemsUseCase.d.ts +3 -0
- package/UseCases/SelectAllItems/ISelectAllItemsUseCase.js +0 -0
- package/UseCases/SelectAllItems/SelectAllItemsUseCase.d.ts +7 -0
- package/UseCases/SelectAllItems/SelectAllItemsUseCase.js +13 -0
- package/UseCases/SelectAllItems/SelectAllItemsUseCase.js.map +1 -0
- package/UseCases/SelectAllItems/index.d.ts +2 -0
- package/UseCases/SelectAllItems/index.js +1 -0
- package/UseCases/SelectItems/ISelectItemsUseCase.d.ts +4 -0
- package/UseCases/SelectItems/ISelectItemsUseCase.js +0 -0
- package/UseCases/SelectItems/SelectItemsUseCase.d.ts +7 -0
- package/UseCases/SelectItems/SelectItemsUseCase.js +13 -0
- package/UseCases/SelectItems/SelectItemsUseCase.js.map +1 -0
- package/UseCases/SelectItems/index.d.ts +2 -0
- package/UseCases/SelectItems/index.js +1 -0
- package/UseCases/SortItems/ISortItemsUseCase.d.ts +4 -0
- package/UseCases/SortItems/ISortItemsUseCase.js +0 -0
- package/UseCases/SortItems/SortItemsUseCase.d.ts +7 -0
- package/UseCases/SortItems/SortItemsUseCase.js +13 -0
- package/UseCases/SortItems/SortItemsUseCase.js.map +1 -0
- package/UseCases/SortItems/index.d.ts +2 -0
- package/UseCases/SortItems/index.js +1 -0
- package/UseCases/UnSelectAllItems/IUnselectAllItemsUseCase.d.ts +3 -0
- package/UseCases/UnSelectAllItems/IUnselectAllItemsUseCase.js +0 -0
- package/UseCases/UnSelectAllItems/UnselectAllItemsUseCase.d.ts +7 -0
- package/UseCases/UnSelectAllItems/UnselectAllItemsUseCase.js +13 -0
- package/UseCases/UnSelectAllItems/UnselectAllItemsUseCase.js.map +1 -0
- package/UseCases/UnSelectAllItems/index.d.ts +2 -0
- package/UseCases/UnSelectAllItems/index.js +1 -0
- package/UseCases/UnpublishItem/IUnpublishItemUseCase.d.ts +3 -0
- package/UseCases/UnpublishItem/IUnpublishItemUseCase.js +0 -0
- package/UseCases/UnpublishItem/UnpublishItemUseCase.d.ts +7 -0
- package/UseCases/UnpublishItem/UnpublishItemUseCase.js +13 -0
- package/UseCases/UnpublishItem/UnpublishItemUseCase.js.map +1 -0
- package/UseCases/UnpublishItem/index.d.ts +2 -0
- package/UseCases/UnpublishItem/index.js +1 -0
- package/UseCases/index.d.ts +11 -0
- package/UseCases/index.js +11 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/package.json +57 -0
- package/types.d.ts +37 -0
- package/types.js +16 -0
- package/types.js.map +1 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import react from "react";
|
|
2
|
+
import { Loader } from "@webiny/admin-ui";
|
|
3
|
+
import { CircularProgressHolder, StatusWrapper, UploadingLabel } from "./BottomInfoBar.styled.js";
|
|
4
|
+
const ListStatus = ({ loading })=>{
|
|
5
|
+
if (!loading) return null;
|
|
6
|
+
return /*#__PURE__*/ react.createElement(StatusWrapper, null, /*#__PURE__*/ react.createElement(UploadingLabel, null, "Loading more items..."), /*#__PURE__*/ react.createElement(CircularProgressHolder, null, /*#__PURE__*/ react.createElement(Loader, {
|
|
7
|
+
size: "xs"
|
|
8
|
+
})));
|
|
9
|
+
};
|
|
10
|
+
export { ListStatus };
|
|
11
|
+
|
|
12
|
+
//# sourceMappingURL=ListStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Presentation/components/BottomInfoBar/ListStatus.js","sources":["../../../../src/Presentation/components/BottomInfoBar/ListStatus.tsx"],"sourcesContent":["import React from \"react\";\nimport { Loader } from \"@webiny/admin-ui\";\nimport { CircularProgressHolder, StatusWrapper, UploadingLabel } from \"./BottomInfoBar.styled.js\";\n\nexport interface ListStatusProps {\n loading: boolean;\n}\n\nexport const ListStatus = ({ loading }: ListStatusProps) => {\n if (!loading) {\n return null;\n }\n\n return (\n <StatusWrapper>\n <UploadingLabel>{\"Loading more items...\"}</UploadingLabel>\n <CircularProgressHolder>\n <Loader size={\"xs\"} />\n </CircularProgressHolder>\n </StatusWrapper>\n );\n};\n"],"names":["ListStatus","loading","StatusWrapper","UploadingLabel","CircularProgressHolder","Loader"],"mappings":";;;AAQO,MAAMA,aAAa,CAAC,EAAEC,OAAO,EAAmB;IACnD,IAAI,CAACA,SACD,OAAO;IAGX,OAAO,WAAP,GACI,oBAACC,eAAaA,MAAAA,WAAAA,GACV,oBAACC,gBAAcA,MAAE,wCACjB,oBAACC,wBAAsBA,MAAAA,WAAAA,GACnB,oBAACC,QAAMA;QAAC,MAAM;;AAI9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./BottomInfoBar.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./BottomInfoBar.js";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import react from "react";
|
|
2
|
+
import { OptionsMenu } from "@webiny/app-admin";
|
|
3
|
+
import { SchedulerListConfig, useSchedulerListConfig } from "../../../configs/index.js";
|
|
4
|
+
import { SchedulerItemProvider } from "../../../hooks/index.js";
|
|
5
|
+
const CellActions = ()=>{
|
|
6
|
+
const { useTableRow } = SchedulerListConfig.Browser.Table.Column;
|
|
7
|
+
const { row } = useTableRow();
|
|
8
|
+
const { browser } = useSchedulerListConfig();
|
|
9
|
+
return /*#__PURE__*/ react.createElement(SchedulerItemProvider, {
|
|
10
|
+
item: row.data
|
|
11
|
+
}, /*#__PURE__*/ react.createElement(OptionsMenu, {
|
|
12
|
+
actions: browser.entryActions,
|
|
13
|
+
"data-testid": "table.row.scheduler.entry.menu-action"
|
|
14
|
+
}));
|
|
15
|
+
};
|
|
16
|
+
export { CellActions };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=CellActions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Presentation/components/Cells/CellActions/CellActions.js","sources":["../../../../../src/Presentation/components/Cells/CellActions/CellActions.tsx"],"sourcesContent":["import React from \"react\";\nimport { OptionsMenu } from \"@webiny/app-admin\";\nimport { SchedulerListConfig, useSchedulerListConfig } from \"~/Presentation/configs/index.js\";\nimport { SchedulerItemProvider } from \"~/Presentation/hooks/index.js\";\n\nexport const CellActions = () => {\n const { useTableRow } = SchedulerListConfig.Browser.Table.Column;\n const { row } = useTableRow();\n const { browser } = useSchedulerListConfig();\n\n return (\n <SchedulerItemProvider item={row.data}>\n <OptionsMenu\n actions={browser.entryActions}\n data-testid={\"table.row.scheduler.entry.menu-action\"}\n />\n </SchedulerItemProvider>\n );\n};\n"],"names":["CellActions","useTableRow","SchedulerListConfig","row","browser","useSchedulerListConfig","SchedulerItemProvider","OptionsMenu"],"mappings":";;;;AAKO,MAAMA,cAAc;IACvB,MAAM,EAAEC,WAAW,EAAE,GAAGC,oBAAoB,OAAO,CAAC,KAAK,CAAC,MAAM;IAChE,MAAM,EAAEC,GAAG,EAAE,GAAGF;IAChB,MAAM,EAAEG,OAAO,EAAE,GAAGC;IAEpB,OAAO,WAAP,GACI,oBAACC,uBAAqBA;QAAC,MAAMH,IAAI,IAAI;qBACjC,oBAACI,aAAWA;QACR,SAASH,QAAQ,YAAY;QAC7B,eAAa;;AAI7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CellActions.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CellActions.js";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import react from "react";
|
|
2
|
+
import { RowText, RowTitle } from "./CellRevision.styled.js";
|
|
3
|
+
import { SchedulerListConfig } from "../../../configs/index.js";
|
|
4
|
+
import { parseIdentifier } from "@webiny/utils/parseIdentifier.js";
|
|
5
|
+
const CellRevision = ()=>{
|
|
6
|
+
const { useTableRow } = SchedulerListConfig.Browser.Table.Column;
|
|
7
|
+
const { row } = useTableRow();
|
|
8
|
+
const { version } = parseIdentifier(row.data.targetId);
|
|
9
|
+
return /*#__PURE__*/ react.createElement(RowTitle, null, /*#__PURE__*/ react.createElement(RowText, {
|
|
10
|
+
size: "sm"
|
|
11
|
+
}, version));
|
|
12
|
+
};
|
|
13
|
+
export { CellRevision };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=CellRevision.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Presentation/components/Cells/CellRevision/CellRevision.js","sources":["../../../../../src/Presentation/components/Cells/CellRevision/CellRevision.tsx"],"sourcesContent":["import React from \"react\";\nimport { RowText, RowTitle } from \"./CellRevision.styled.js\";\nimport { SchedulerListConfig } from \"~/Presentation/configs/index.js\";\nimport { parseIdentifier } from \"@webiny/utils/parseIdentifier.js\";\n\nexport const CellRevision = () => {\n const { useTableRow } = SchedulerListConfig.Browser.Table.Column;\n const { row } = useTableRow();\n\n const { version } = parseIdentifier(row.data.targetId);\n return (\n <RowTitle>\n <RowText size={\"sm\"}>{version}</RowText>\n </RowTitle>\n );\n};\n"],"names":["CellRevision","useTableRow","SchedulerListConfig","row","version","parseIdentifier","RowTitle","RowText"],"mappings":";;;;AAKO,MAAMA,eAAe;IACxB,MAAM,EAAEC,WAAW,EAAE,GAAGC,oBAAoB,OAAO,CAAC,KAAK,CAAC,MAAM;IAChE,MAAM,EAAEC,GAAG,EAAE,GAAGF;IAEhB,MAAM,EAAEG,OAAO,EAAE,GAAGC,gBAAgBF,IAAI,IAAI,CAAC,QAAQ;IACrD,OAAO,WAAP,GACI,oBAACG,UAAQA,MAAAA,WAAAA,GACL,oBAACC,SAAOA;QAAC,MAAM;OAAOH;AAGlC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const RowTitle: import("@emotion/styled").StyledComponent<{
|
|
2
|
+
theme?: import("@emotion/react").Theme;
|
|
3
|
+
as?: React.ElementType;
|
|
4
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
5
|
+
export declare const RowIcon: import("@emotion/styled").StyledComponent<{
|
|
6
|
+
theme?: import("@emotion/react").Theme;
|
|
7
|
+
as?: React.ElementType;
|
|
8
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
9
|
+
export declare const RowText: import("@emotion/styled").StyledComponent<import("@webiny/admin-ui").TextProps & {
|
|
10
|
+
theme?: import("@emotion/react").Theme;
|
|
11
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import styled from "@emotion/styled";
|
|
2
|
+
import { Text } from "@webiny/admin-ui";
|
|
3
|
+
const RowTitle = styled("div")`
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
`;
|
|
7
|
+
const RowIcon = styled("div")`
|
|
8
|
+
margin-right: 8px;
|
|
9
|
+
height: 24px;
|
|
10
|
+
`;
|
|
11
|
+
const RowText = styled(Text)`
|
|
12
|
+
white-space: nowrap;
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
text-overflow: ellipsis;
|
|
15
|
+
`;
|
|
16
|
+
export { RowIcon, RowText, RowTitle };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=CellRevision.styled.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Presentation/components/Cells/CellRevision/CellRevision.styled.js","sources":["../../../../../src/Presentation/components/Cells/CellRevision/CellRevision.styled.tsx"],"sourcesContent":["import styled from \"@emotion/styled\";\nimport { Text } from \"@webiny/admin-ui\";\n\nexport const RowTitle = styled(\"div\")`\n display: flex;\n align-items: center;\n`;\n\nexport const RowIcon = styled(\"div\")`\n margin-right: 8px;\n height: 24px;\n`;\n\nexport const RowText = styled(Text)`\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n`;\n"],"names":["RowTitle","styled","RowIcon","RowText","Text"],"mappings":";;AAGO,MAAMA,WAAWC,OAAO,MAAM,CAAC;;;AAGtC,CAAC;AAEM,MAAMC,UAAUD,OAAO,MAAM,CAAC;;;AAGrC,CAAC;AAEM,MAAME,UAAUF,OAAOG,KAAK,CAAC;;;;AAIpC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CellRevision.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CellRevision.js";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import react from "react";
|
|
2
|
+
import { SchedulerListConfig } from "../../../configs/index.js";
|
|
3
|
+
const CellScheduledBy = ()=>{
|
|
4
|
+
const { useTableRow } = SchedulerListConfig.Browser.Table.Column;
|
|
5
|
+
const { row } = useTableRow();
|
|
6
|
+
return /*#__PURE__*/ react.createElement(react.Fragment, null, row.data.scheduledBy?.displayName || "unknown");
|
|
7
|
+
};
|
|
8
|
+
export { CellScheduledBy };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=CellScheduledBy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Presentation/components/Cells/CellScheduledBy/CellScheduledBy.js","sources":["../../../../../src/Presentation/components/Cells/CellScheduledBy/CellScheduledBy.tsx"],"sourcesContent":["import React from \"react\";\nimport { SchedulerListConfig } from \"~/Presentation/configs/index.js\";\n\nexport const CellScheduledBy = () => {\n const { useTableRow } = SchedulerListConfig.Browser.Table.Column;\n const { row } = useTableRow();\n\n return <>{row.data.scheduledBy?.displayName || \"unknown\"}</>;\n};\n"],"names":["CellScheduledBy","useTableRow","SchedulerListConfig","row"],"mappings":";;AAGO,MAAMA,kBAAkB;IAC3B,MAAM,EAAEC,WAAW,EAAE,GAAGC,oBAAoB,OAAO,CAAC,KAAK,CAAC,MAAM;IAChE,MAAM,EAAEC,GAAG,EAAE,GAAGF;IAEhB,OAAO,WAAP,GAAO,0CAAGE,IAAI,IAAI,CAAC,WAAW,EAAE,eAAe;AACnD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CellScheduledBy.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CellScheduledBy.js";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface ICellScheduledOnLabelProps {
|
|
3
|
+
dateTime: Date | undefined;
|
|
4
|
+
}
|
|
5
|
+
export declare const CellScheduledOnLabel: (({ dateTime }: ICellScheduledOnLabelProps) => React.JSX.Element) & {
|
|
6
|
+
original: ({ dateTime }: ICellScheduledOnLabelProps) => React.JSX.Element;
|
|
7
|
+
originalName: string;
|
|
8
|
+
displayName: string;
|
|
9
|
+
} & {
|
|
10
|
+
original: (({ dateTime }: ICellScheduledOnLabelProps) => React.JSX.Element) & {
|
|
11
|
+
original: ({ dateTime }: ICellScheduledOnLabelProps) => React.JSX.Element;
|
|
12
|
+
originalName: string;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
originalName: string;
|
|
16
|
+
displayName: string;
|
|
17
|
+
} & {
|
|
18
|
+
createDecorator: (decorator: import("@webiny/react-composition").ComponentDecorator<(({ dateTime }: ICellScheduledOnLabelProps) => React.JSX.Element) & {
|
|
19
|
+
original: ({ dateTime }: ICellScheduledOnLabelProps) => React.JSX.Element;
|
|
20
|
+
originalName: string;
|
|
21
|
+
displayName: string;
|
|
22
|
+
}>) => (props: unknown) => React.JSX.Element;
|
|
23
|
+
};
|
|
24
|
+
export declare const CellScheduledOn: () => React.JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import react from "react";
|
|
2
|
+
import { SchedulerListConfig } from "../../../configs/index.js";
|
|
3
|
+
import { makeDecoratable } from "@webiny/react-composition";
|
|
4
|
+
const CellScheduledOnLabel = makeDecoratable("Scheduler.CellScheduledOnLabel", ({ dateTime })=>{
|
|
5
|
+
if (!dateTime) return /*#__PURE__*/ react.createElement(react.Fragment, null, "Missing publish or unpublish date.");
|
|
6
|
+
return /*#__PURE__*/ react.createElement(react.Fragment, null, dateTime.toLocaleString());
|
|
7
|
+
});
|
|
8
|
+
const CellScheduledOn = ()=>{
|
|
9
|
+
const { useTableRow } = SchedulerListConfig.Browser.Table.Column;
|
|
10
|
+
const { row } = useTableRow();
|
|
11
|
+
return /*#__PURE__*/ react.createElement(CellScheduledOnLabel, {
|
|
12
|
+
dateTime: row.data.publishOn || row.data.unpublishOn
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
export { CellScheduledOn, CellScheduledOnLabel };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=CellScheduledOn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Presentation/components/Cells/CellScheduledOn/CellScheduledOn.js","sources":["../../../../../src/Presentation/components/Cells/CellScheduledOn/CellScheduledOn.tsx"],"sourcesContent":["import React from \"react\";\nimport { SchedulerListConfig } from \"~/Presentation/configs/index.js\";\nimport { makeDecoratable } from \"@webiny/react-composition\";\n\nexport interface ICellScheduledOnLabelProps {\n dateTime: Date | undefined;\n}\n\nexport const CellScheduledOnLabel = makeDecoratable(\n \"Scheduler.CellScheduledOnLabel\",\n ({ dateTime }: ICellScheduledOnLabelProps) => {\n if (!dateTime) {\n return <>Missing publish or unpublish date.</>;\n }\n\n return <>{dateTime.toLocaleString()}</>;\n }\n);\n\nexport const CellScheduledOn = () => {\n const { useTableRow } = SchedulerListConfig.Browser.Table.Column;\n const { row } = useTableRow();\n\n return <CellScheduledOnLabel dateTime={row.data.publishOn || row.data.unpublishOn} />;\n};\n"],"names":["CellScheduledOnLabel","makeDecoratable","dateTime","CellScheduledOn","useTableRow","SchedulerListConfig","row"],"mappings":";;;AAQO,MAAMA,uBAAuBC,gBAChC,kCACA,CAAC,EAAEC,QAAQ,EAA8B;IACrC,IAAI,CAACA,UACD,OAAO,WAAP,GAAO,0CAAE;IAGb,OAAO,WAAP,GAAO,0CAAGA,SAAS,cAAc;AACrC;AAGG,MAAMC,kBAAkB;IAC3B,MAAM,EAAEC,WAAW,EAAE,GAAGC,oBAAoB,OAAO,CAAC,KAAK,CAAC,MAAM;IAChE,MAAM,EAAEC,GAAG,EAAE,GAAGF;IAEhB,OAAO,WAAP,GAAO,oBAACJ,sBAAoBA;QAAC,UAAUM,IAAI,IAAI,CAAC,SAAS,IAAIA,IAAI,IAAI,CAAC,WAAW;;AACrF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CellScheduledOn.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CellScheduledOn.js";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import react from "react";
|
|
2
|
+
import { ReactComponent } from "@material-design-icons/svg/outlined/description.svg";
|
|
3
|
+
import { RowIcon, RowText, RowTitle } from "./CellTitle.styled.js";
|
|
4
|
+
import { SchedulerListConfig } from "../../../configs/index.js";
|
|
5
|
+
const CellTitle = ()=>{
|
|
6
|
+
const { useTableRow } = SchedulerListConfig.Browser.Table.Column;
|
|
7
|
+
const { row } = useTableRow();
|
|
8
|
+
return /*#__PURE__*/ react.createElement(RowTitle, null, /*#__PURE__*/ react.createElement(RowIcon, null, /*#__PURE__*/ react.createElement(ReactComponent, null)), /*#__PURE__*/ react.createElement(RowText, {
|
|
9
|
+
size: "sm"
|
|
10
|
+
}, row.data.title));
|
|
11
|
+
};
|
|
12
|
+
export { CellTitle };
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=CellTitle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Presentation/components/Cells/CellTitle/CellTitle.js","sources":["../../../../../src/Presentation/components/Cells/CellTitle/CellTitle.tsx"],"sourcesContent":["import React from \"react\";\nimport { ReactComponent as File } from \"@material-design-icons/svg/outlined/description.svg\";\nimport { RowIcon, RowText, RowTitle } from \"./CellTitle.styled.js\";\nimport { SchedulerListConfig } from \"~/Presentation/configs/index.js\";\n\nexport const CellTitle = () => {\n const { useTableRow } = SchedulerListConfig.Browser.Table.Column;\n const { row } = useTableRow();\n\n return (\n <RowTitle>\n <RowIcon>\n <File />\n </RowIcon>\n <RowText size={\"sm\"}>{row.data.title}</RowText>\n </RowTitle>\n );\n};\n"],"names":["CellTitle","useTableRow","SchedulerListConfig","row","RowTitle","RowIcon","File","RowText"],"mappings":";;;;AAKO,MAAMA,YAAY;IACrB,MAAM,EAAEC,WAAW,EAAE,GAAGC,oBAAoB,OAAO,CAAC,KAAK,CAAC,MAAM;IAChE,MAAM,EAAEC,GAAG,EAAE,GAAGF;IAEhB,OAAO,WAAP,GACI,oBAACG,UAAQA,MAAAA,WAAAA,GACL,oBAACC,SAAOA,MAAAA,WAAAA,GACJ,oBAACC,gBAAIA,QAAAA,WAAAA,GAET,oBAACC,SAAOA;QAAC,MAAM;OAAOJ,IAAI,IAAI,CAAC,KAAK;AAGhD"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const RowTitle: import("@emotion/styled").StyledComponent<{
|
|
2
|
+
theme?: import("@emotion/react").Theme;
|
|
3
|
+
as?: React.ElementType;
|
|
4
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
5
|
+
export declare const RowIcon: import("@emotion/styled").StyledComponent<{
|
|
6
|
+
theme?: import("@emotion/react").Theme;
|
|
7
|
+
as?: React.ElementType;
|
|
8
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
9
|
+
export declare const RowText: import("@emotion/styled").StyledComponent<import("@webiny/admin-ui").TextProps & {
|
|
10
|
+
theme?: import("@emotion/react").Theme;
|
|
11
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import styled from "@emotion/styled";
|
|
2
|
+
import { Text } from "@webiny/admin-ui";
|
|
3
|
+
const RowTitle = styled("div")`
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
`;
|
|
7
|
+
const RowIcon = styled("div")`
|
|
8
|
+
margin-right: 8px;
|
|
9
|
+
height: 24px;
|
|
10
|
+
`;
|
|
11
|
+
const RowText = styled(Text)`
|
|
12
|
+
white-space: nowrap;
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
text-overflow: ellipsis;
|
|
15
|
+
`;
|
|
16
|
+
export { RowIcon, RowText, RowTitle };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=CellTitle.styled.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Presentation/components/Cells/CellTitle/CellTitle.styled.js","sources":["../../../../../src/Presentation/components/Cells/CellTitle/CellTitle.styled.tsx"],"sourcesContent":["import styled from \"@emotion/styled\";\nimport { Text } from \"@webiny/admin-ui\";\n\nexport const RowTitle = styled(\"div\")`\n display: flex;\n align-items: center;\n`;\n\nexport const RowIcon = styled(\"div\")`\n margin-right: 8px;\n height: 24px;\n`;\n\nexport const RowText = styled(Text)`\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n`;\n"],"names":["RowTitle","styled","RowIcon","RowText","Text"],"mappings":";;AAGO,MAAMA,WAAWC,OAAO,MAAM,CAAC;;;AAGtC,CAAC;AAEM,MAAMC,UAAUD,OAAO,MAAM,CAAC;;;AAGrC,CAAC;AAEM,MAAME,UAAUF,OAAOG,KAAK,CAAC;;;;AAIpC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CellTitle.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CellTitle.js";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import react from "react";
|
|
2
|
+
import { ReactComponent } from "@webiny/icons/publish.svg";
|
|
3
|
+
import { ReactComponent as unpublished_svg_ReactComponent } from "@webiny/icons/unpublished.svg";
|
|
4
|
+
import { RowIcon, RowText, RowType } from "./CellActionType.styled.js";
|
|
5
|
+
import { SchedulerListConfig } from "../../../configs/index.js";
|
|
6
|
+
const CellActionType = ()=>{
|
|
7
|
+
const { useTableRow } = SchedulerListConfig.Browser.Table.Column;
|
|
8
|
+
const { row } = useTableRow();
|
|
9
|
+
return /*#__PURE__*/ react.createElement(RowType, null, /*#__PURE__*/ react.createElement(RowIcon, null, "publish" === row.data.actionType ? /*#__PURE__*/ react.createElement(ReactComponent, null) : /*#__PURE__*/ react.createElement(unpublished_svg_ReactComponent, null)), /*#__PURE__*/ react.createElement(RowText, {
|
|
10
|
+
size: "sm"
|
|
11
|
+
}, row.data.actionType));
|
|
12
|
+
};
|
|
13
|
+
export { CellActionType };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=CellActionType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Presentation/components/Cells/CellType/CellActionType.js","sources":["../../../../../src/Presentation/components/Cells/CellType/CellActionType.tsx"],"sourcesContent":["import React from \"react\";\nimport { ReactComponent as Publish } from \"@webiny/icons/publish.svg\";\nimport { ReactComponent as Unpublish } from \"@webiny/icons/unpublished.svg\";\nimport { RowIcon, RowText, RowType } from \"./CellActionType.styled.js\";\nimport { SchedulerListConfig } from \"~/Presentation/configs/index.js\";\n\nexport const CellActionType = () => {\n const { useTableRow } = SchedulerListConfig.Browser.Table.Column;\n const { row } = useTableRow();\n\n return (\n <RowType>\n <RowIcon>{row.data.actionType === \"publish\" ? <Publish /> : <Unpublish />}</RowIcon>\n <RowText size={\"sm\"}>{row.data.actionType}</RowText>\n </RowType>\n );\n};\n"],"names":["CellActionType","useTableRow","SchedulerListConfig","row","RowType","RowIcon","Publish","Unpublish","RowText"],"mappings":";;;;;AAMO,MAAMA,iBAAiB;IAC1B,MAAM,EAAEC,WAAW,EAAE,GAAGC,oBAAoB,OAAO,CAAC,KAAK,CAAC,MAAM;IAChE,MAAM,EAAEC,GAAG,EAAE,GAAGF;IAEhB,OAAO,WAAP,GACI,oBAACG,SAAOA,MAAAA,WAAAA,GACJ,oBAACC,SAAOA,MAAEF,AAAwB,cAAxBA,IAAI,IAAI,CAAC,UAAU,GAAiB,WAAZ,GAAY,oBAACG,gBAAOA,QAAAA,WAAAA,GAAM,oBAACC,gCAASA,QAAAA,WAAAA,GACtE,oBAACC,SAAOA;QAAC,MAAM;OAAOL,IAAI,IAAI,CAAC,UAAU;AAGrD"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const RowType: import("@emotion/styled").StyledComponent<{
|
|
2
|
+
theme?: import("@emotion/react").Theme;
|
|
3
|
+
as?: React.ElementType;
|
|
4
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
5
|
+
export declare const RowIcon: import("@emotion/styled").StyledComponent<{
|
|
6
|
+
theme?: import("@emotion/react").Theme;
|
|
7
|
+
as?: React.ElementType;
|
|
8
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
9
|
+
export declare const RowText: import("@emotion/styled").StyledComponent<import("@webiny/admin-ui").TextProps & {
|
|
10
|
+
theme?: import("@emotion/react").Theme;
|
|
11
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import styled from "@emotion/styled";
|
|
2
|
+
import { Text } from "@webiny/admin-ui";
|
|
3
|
+
const RowType = styled("div")`
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
`;
|
|
7
|
+
const RowIcon = styled("div")`
|
|
8
|
+
margin-right: 8px;
|
|
9
|
+
height: 24px;
|
|
10
|
+
`;
|
|
11
|
+
const RowText = styled(Text)`
|
|
12
|
+
white-space: nowrap;
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
text-overflow: ellipsis;
|
|
15
|
+
`;
|
|
16
|
+
export { RowIcon, RowText, RowType };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=CellActionType.styled.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Presentation/components/Cells/CellType/CellActionType.styled.js","sources":["../../../../../src/Presentation/components/Cells/CellType/CellActionType.styled.tsx"],"sourcesContent":["import styled from \"@emotion/styled\";\nimport { Text } from \"@webiny/admin-ui\";\n\nexport const RowType = styled(\"div\")`\n display: flex;\n align-items: center;\n`;\n\nexport const RowIcon = styled(\"div\")`\n margin-right: 8px;\n height: 24px;\n`;\n\nexport const RowText = styled(Text)`\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n`;\n"],"names":["RowType","styled","RowIcon","RowText","Text"],"mappings":";;AAGO,MAAMA,UAAUC,OAAO,MAAM,CAAC;;;AAGrC,CAAC;AAEM,MAAMC,UAAUD,OAAO,MAAM,CAAC;;;AAGrC,CAAC;AAEM,MAAME,UAAUF,OAAOG,KAAK,CAAC;;;;AAIpC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CellActionType.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CellActionType.js";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import react from "react";
|
|
2
|
+
import { ReactComponent } from "@material-design-icons/svg/outlined/search.svg";
|
|
3
|
+
import { ReactComponent as view_list_svg_ReactComponent } from "@material-design-icons/svg/outlined/view_list.svg";
|
|
4
|
+
import { EmptyView } from "@webiny/app-admin";
|
|
5
|
+
import { EmptyOuter, EmptyWrapper } from "./Empty.styled.js";
|
|
6
|
+
import { useScheduler } from "../../hooks/index.js";
|
|
7
|
+
const Empty = ()=>{
|
|
8
|
+
const { vm } = useScheduler();
|
|
9
|
+
return /*#__PURE__*/ react.createElement(EmptyWrapper, null, /*#__PURE__*/ react.createElement(EmptyOuter, null, vm.isSearchView ? /*#__PURE__*/ react.createElement(EmptyView, {
|
|
10
|
+
icon: /*#__PURE__*/ react.createElement(ReactComponent, null),
|
|
11
|
+
title: "No items found.",
|
|
12
|
+
action: null
|
|
13
|
+
}) : /*#__PURE__*/ react.createElement(EmptyView, {
|
|
14
|
+
icon: /*#__PURE__*/ react.createElement(view_list_svg_ReactComponent, null),
|
|
15
|
+
title: "No scheduled items.",
|
|
16
|
+
action: null
|
|
17
|
+
})));
|
|
18
|
+
};
|
|
19
|
+
export { Empty };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=Empty.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Presentation/components/Empty/Empty.js","sources":["../../../../src/Presentation/components/Empty/Empty.tsx"],"sourcesContent":["import React from \"react\";\nimport { ReactComponent as SearchIcon } from \"@material-design-icons/svg/outlined/search.svg\";\nimport { ReactComponent as ListIcon } from \"@material-design-icons/svg/outlined/view_list.svg\";\nimport { EmptyView } from \"@webiny/app-admin\";\nimport { EmptyOuter, EmptyWrapper } from \"./Empty.styled.js\";\nimport { useScheduler } from \"~/Presentation/hooks/index.js\";\n\nexport const Empty = () => {\n const { vm } = useScheduler();\n\n return (\n <EmptyWrapper>\n <EmptyOuter>\n {vm.isSearchView ? (\n <EmptyView icon={<SearchIcon />} title={\"No items found.\"} action={null} />\n ) : (\n <EmptyView icon={<ListIcon />} title={`No scheduled items.`} action={null} />\n )}\n </EmptyOuter>\n </EmptyWrapper>\n );\n};\n"],"names":["Empty","vm","useScheduler","EmptyWrapper","EmptyOuter","EmptyView","SearchIcon","ListIcon"],"mappings":";;;;;;AAOO,MAAMA,QAAQ;IACjB,MAAM,EAAEC,EAAE,EAAE,GAAGC;IAEf,OAAO,WAAP,GACI,oBAACC,cAAYA,MAAAA,WAAAA,GACT,oBAACC,YAAUA,MACNH,GAAG,YAAY,GAAG,WAAH,GACZ,oBAACI,WAASA;QAAC,oBAAM,oBAACC,gBAAUA;QAAK,OAAO;QAAmB,QAAQ;uBAEnE,oBAACD,WAASA;QAAC,oBAAM,oBAACE,8BAAQA;QAAK,OAAO;QAAuB,QAAQ;;AAKzF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const EmptyWrapper: import("@emotion/styled").StyledComponent<{
|
|
2
|
+
theme?: import("@emotion/react").Theme;
|
|
3
|
+
as?: React.ElementType;
|
|
4
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
5
|
+
export declare const EmptyOuter: import("@emotion/styled").StyledComponent<{
|
|
6
|
+
theme?: import("@emotion/react").Theme;
|
|
7
|
+
as?: React.ElementType;
|
|
8
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import styled from "@emotion/styled";
|
|
2
|
+
const EmptyWrapper = styled("div")`
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: calc(100% - 95px);
|
|
5
|
+
display: flex;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
align-items: center;
|
|
8
|
+
`;
|
|
9
|
+
const EmptyOuter = styled("div")`
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
align-items: center;
|
|
13
|
+
`;
|
|
14
|
+
export { EmptyOuter, EmptyWrapper };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=Empty.styled.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Presentation/components/Empty/Empty.styled.js","sources":["../../../../src/Presentation/components/Empty/Empty.styled.tsx"],"sourcesContent":["import styled from \"@emotion/styled\";\n\nexport const EmptyWrapper = styled(\"div\")`\n width: 100%;\n height: calc(100% - 95px);\n display: flex;\n justify-content: center;\n align-items: center;\n`;\n\nexport const EmptyOuter = styled(\"div\")`\n display: flex;\n flex-direction: column;\n align-items: center;\n`;\n"],"names":["EmptyWrapper","styled","EmptyOuter"],"mappings":";AAEO,MAAMA,eAAeC,OAAO,MAAM,CAAC;;;;;;AAM1C,CAAC;AAEM,MAAMC,aAAaD,OAAO,MAAM,CAAC;;;;AAIxC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Empty.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Empty.js";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { ScheduleActionType, SchedulerEntry } from "../../../types.js";
|
|
2
|
+
export interface IScheduleDialogPresenterViewModel {
|
|
3
|
+
loading: boolean;
|
|
4
|
+
entry: SchedulerEntry | null;
|
|
5
|
+
}
|
|
6
|
+
export interface IScheduleDialogPresenterLoadParams {
|
|
7
|
+
namespace: string;
|
|
8
|
+
id: string;
|
|
9
|
+
}
|
|
10
|
+
export interface IScheduleDialogPresenterScheduleParams {
|
|
11
|
+
targetId: string;
|
|
12
|
+
namespace: string;
|
|
13
|
+
scheduleOn: Date;
|
|
14
|
+
actionType: ScheduleActionType;
|
|
15
|
+
}
|
|
16
|
+
export interface IScheduleDialogPresenterCancelParams {
|
|
17
|
+
id: string;
|
|
18
|
+
namespace: string;
|
|
19
|
+
}
|
|
20
|
+
export interface IScheduleDialogPresenter {
|
|
21
|
+
get vm(): IScheduleDialogPresenterViewModel;
|
|
22
|
+
load(params: IScheduleDialogPresenterLoadParams): Promise<void>;
|
|
23
|
+
schedule(params: IScheduleDialogPresenterScheduleParams): Promise<void>;
|
|
24
|
+
cancel(params: IScheduleDialogPresenterCancelParams): Promise<void>;
|
|
25
|
+
reset(): void;
|
|
26
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ICancelScheduledActionGateway, IGetScheduledActionGateway, ISchedulePublishActionGateway, IScheduleUnpublishActionGateway } from "../../../Gateways/index.js";
|
|
2
|
+
import type { IScheduleDialogPresenter, IScheduleDialogPresenterCancelParams, IScheduleDialogPresenterLoadParams, IScheduleDialogPresenterScheduleParams, IScheduleDialogPresenterViewModel } from "./IScheduleDialogPresenter.js";
|
|
3
|
+
export interface IScheduleDialogPresenterParams {
|
|
4
|
+
getGateway: IGetScheduledActionGateway;
|
|
5
|
+
cancelGateway: ICancelScheduledActionGateway;
|
|
6
|
+
publishGateway: ISchedulePublishActionGateway;
|
|
7
|
+
unpublishGateway: IScheduleUnpublishActionGateway;
|
|
8
|
+
}
|
|
9
|
+
export declare class ScheduleDialogPresenter implements IScheduleDialogPresenter {
|
|
10
|
+
private loading;
|
|
11
|
+
private entry;
|
|
12
|
+
private readonly getGateway;
|
|
13
|
+
private readonly cancelGateway;
|
|
14
|
+
private readonly publishGateway;
|
|
15
|
+
private readonly unpublishGateway;
|
|
16
|
+
constructor(params: IScheduleDialogPresenterParams);
|
|
17
|
+
get vm(): IScheduleDialogPresenterViewModel;
|
|
18
|
+
load(params: IScheduleDialogPresenterLoadParams): Promise<void>;
|
|
19
|
+
schedule(params: IScheduleDialogPresenterScheduleParams): Promise<void>;
|
|
20
|
+
cancel(params: IScheduleDialogPresenterCancelParams): Promise<void>;
|
|
21
|
+
reset(): void;
|
|
22
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { makeAutoObservable, runInAction } from "mobx";
|
|
2
|
+
import { ScheduleActionType } from "../../../types.js";
|
|
3
|
+
class ScheduleDialogPresenter {
|
|
4
|
+
constructor(params){
|
|
5
|
+
this.loading = false;
|
|
6
|
+
this.entry = null;
|
|
7
|
+
this.getGateway = params.getGateway;
|
|
8
|
+
this.cancelGateway = params.cancelGateway;
|
|
9
|
+
this.publishGateway = params.publishGateway;
|
|
10
|
+
this.unpublishGateway = params.unpublishGateway;
|
|
11
|
+
makeAutoObservable(this);
|
|
12
|
+
}
|
|
13
|
+
get vm() {
|
|
14
|
+
return {
|
|
15
|
+
loading: this.loading,
|
|
16
|
+
entry: this.entry
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
async load(params) {
|
|
20
|
+
this.loading = true;
|
|
21
|
+
try {
|
|
22
|
+
const entry = await this.getGateway.execute(params);
|
|
23
|
+
runInAction(()=>{
|
|
24
|
+
this.entry = entry;
|
|
25
|
+
this.loading = false;
|
|
26
|
+
});
|
|
27
|
+
} catch {
|
|
28
|
+
runInAction(()=>{
|
|
29
|
+
this.loading = false;
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
async schedule(params) {
|
|
34
|
+
const { targetId, namespace, scheduleOn, actionType } = params;
|
|
35
|
+
this.loading = true;
|
|
36
|
+
try {
|
|
37
|
+
switch(actionType){
|
|
38
|
+
case ScheduleActionType.publish:
|
|
39
|
+
await this.publishGateway.execute({
|
|
40
|
+
namespace,
|
|
41
|
+
targetId,
|
|
42
|
+
scheduleOn
|
|
43
|
+
});
|
|
44
|
+
break;
|
|
45
|
+
case ScheduleActionType.unpublish:
|
|
46
|
+
await this.unpublishGateway.execute({
|
|
47
|
+
namespace,
|
|
48
|
+
targetId,
|
|
49
|
+
scheduleOn
|
|
50
|
+
});
|
|
51
|
+
break;
|
|
52
|
+
default:
|
|
53
|
+
throw new Error(`Unsupported action type "${actionType}".`);
|
|
54
|
+
}
|
|
55
|
+
runInAction(()=>{
|
|
56
|
+
this.entry = null;
|
|
57
|
+
this.loading = false;
|
|
58
|
+
});
|
|
59
|
+
} catch {
|
|
60
|
+
runInAction(()=>{
|
|
61
|
+
this.loading = false;
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
async cancel(params) {
|
|
66
|
+
this.loading = true;
|
|
67
|
+
try {
|
|
68
|
+
await this.cancelGateway.execute(params);
|
|
69
|
+
runInAction(()=>{
|
|
70
|
+
this.entry = null;
|
|
71
|
+
this.loading = false;
|
|
72
|
+
});
|
|
73
|
+
} catch {
|
|
74
|
+
runInAction(()=>{
|
|
75
|
+
this.loading = false;
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
reset() {
|
|
80
|
+
this.entry = null;
|
|
81
|
+
this.loading = false;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
export { ScheduleDialogPresenter };
|
|
85
|
+
|
|
86
|
+
//# sourceMappingURL=ScheduleDialogPresenter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Presentation/components/ScheduleDialog/ScheduleDialogPresenter.js","sources":["../../../../src/Presentation/components/ScheduleDialog/ScheduleDialogPresenter.ts"],"sourcesContent":["import { makeAutoObservable, runInAction } from \"mobx\";\nimport { ScheduleActionType } from \"~/types.js\";\nimport type { SchedulerEntry } from \"~/types.js\";\nimport type {\n ICancelScheduledActionGateway,\n IGetScheduledActionGateway,\n ISchedulePublishActionGateway,\n IScheduleUnpublishActionGateway\n} from \"~/Gateways/index.js\";\nimport type {\n IScheduleDialogPresenter,\n IScheduleDialogPresenterCancelParams,\n IScheduleDialogPresenterLoadParams,\n IScheduleDialogPresenterScheduleParams,\n IScheduleDialogPresenterViewModel\n} from \"./IScheduleDialogPresenter.js\";\n\nexport interface IScheduleDialogPresenterParams {\n getGateway: IGetScheduledActionGateway;\n cancelGateway: ICancelScheduledActionGateway;\n publishGateway: ISchedulePublishActionGateway;\n unpublishGateway: IScheduleUnpublishActionGateway;\n}\n\nexport class ScheduleDialogPresenter implements IScheduleDialogPresenter {\n private loading = false;\n private entry: SchedulerEntry | null = null;\n\n private readonly getGateway: IGetScheduledActionGateway;\n private readonly cancelGateway: ICancelScheduledActionGateway;\n private readonly publishGateway: ISchedulePublishActionGateway;\n private readonly unpublishGateway: IScheduleUnpublishActionGateway;\n\n public constructor(params: IScheduleDialogPresenterParams) {\n this.getGateway = params.getGateway;\n this.cancelGateway = params.cancelGateway;\n this.publishGateway = params.publishGateway;\n this.unpublishGateway = params.unpublishGateway;\n makeAutoObservable(this);\n }\n\n public get vm(): IScheduleDialogPresenterViewModel {\n return {\n loading: this.loading,\n entry: this.entry\n };\n }\n\n public async load(params: IScheduleDialogPresenterLoadParams): Promise<void> {\n this.loading = true;\n\n try {\n const entry = await this.getGateway.execute(params);\n runInAction(() => {\n this.entry = entry;\n this.loading = false;\n });\n } catch {\n runInAction(() => {\n this.loading = false;\n });\n }\n }\n\n public async schedule(params: IScheduleDialogPresenterScheduleParams): Promise<void> {\n const { targetId, namespace, scheduleOn, actionType } = params;\n this.loading = true;\n\n try {\n switch (actionType) {\n case ScheduleActionType.publish:\n await this.publishGateway.execute({ namespace, targetId, scheduleOn });\n break;\n case ScheduleActionType.unpublish:\n await this.unpublishGateway.execute({ namespace, targetId, scheduleOn });\n break;\n default:\n throw new Error(`Unsupported action type \"${actionType}\".`);\n }\n runInAction(() => {\n this.entry = null;\n this.loading = false;\n });\n } catch {\n runInAction(() => {\n this.loading = false;\n });\n }\n }\n\n public async cancel(params: IScheduleDialogPresenterCancelParams): Promise<void> {\n this.loading = true;\n\n try {\n await this.cancelGateway.execute(params);\n runInAction(() => {\n this.entry = null;\n this.loading = false;\n });\n } catch {\n runInAction(() => {\n this.loading = false;\n });\n }\n }\n\n public reset(): void {\n this.entry = null;\n this.loading = false;\n }\n}\n"],"names":["ScheduleDialogPresenter","params","makeAutoObservable","entry","runInAction","targetId","namespace","scheduleOn","actionType","ScheduleActionType","Error"],"mappings":";;AAwBO,MAAMA;IAST,YAAmBC,MAAsC,CAAE;aARnD,OAAO,GAAG;aACV,KAAK,GAA0B;QAQnC,IAAI,CAAC,UAAU,GAAGA,OAAO,UAAU;QACnC,IAAI,CAAC,aAAa,GAAGA,OAAO,aAAa;QACzC,IAAI,CAAC,cAAc,GAAGA,OAAO,cAAc;QAC3C,IAAI,CAAC,gBAAgB,GAAGA,OAAO,gBAAgB;QAC/CC,mBAAmB,IAAI;IAC3B;IAEA,IAAW,KAAwC;QAC/C,OAAO;YACH,SAAS,IAAI,CAAC,OAAO;YACrB,OAAO,IAAI,CAAC,KAAK;QACrB;IACJ;IAEA,MAAa,KAAKD,MAA0C,EAAiB;QACzE,IAAI,CAAC,OAAO,GAAG;QAEf,IAAI;YACA,MAAME,QAAQ,MAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAACF;YAC5CG,YAAY;gBACR,IAAI,CAAC,KAAK,GAAGD;gBACb,IAAI,CAAC,OAAO,GAAG;YACnB;QACJ,EAAE,OAAM;YACJC,YAAY;gBACR,IAAI,CAAC,OAAO,GAAG;YACnB;QACJ;IACJ;IAEA,MAAa,SAASH,MAA8C,EAAiB;QACjF,MAAM,EAAEI,QAAQ,EAAEC,SAAS,EAAEC,UAAU,EAAEC,UAAU,EAAE,GAAGP;QACxD,IAAI,CAAC,OAAO,GAAG;QAEf,IAAI;YACA,OAAQO;gBACJ,KAAKC,mBAAmB,OAAO;oBAC3B,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC;wBAAEH;wBAAWD;wBAAUE;oBAAW;oBACpE;gBACJ,KAAKE,mBAAmB,SAAS;oBAC7B,MAAM,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC;wBAAEH;wBAAWD;wBAAUE;oBAAW;oBACtE;gBACJ;oBACI,MAAM,IAAIG,MAAM,CAAC,yBAAyB,EAAEF,WAAW,EAAE,CAAC;YAClE;YACAJ,YAAY;gBACR,IAAI,CAAC,KAAK,GAAG;gBACb,IAAI,CAAC,OAAO,GAAG;YACnB;QACJ,EAAE,OAAM;YACJA,YAAY;gBACR,IAAI,CAAC,OAAO,GAAG;YACnB;QACJ;IACJ;IAEA,MAAa,OAAOH,MAA4C,EAAiB;QAC7E,IAAI,CAAC,OAAO,GAAG;QAEf,IAAI;YACA,MAAM,IAAI,CAAC,aAAa,CAAC,OAAO,CAACA;YACjCG,YAAY;gBACR,IAAI,CAAC,KAAK,GAAG;gBACb,IAAI,CAAC,OAAO,GAAG;YACnB;QACJ,EAAE,OAAM;YACJA,YAAY;gBACR,IAAI,CAAC,OAAO,GAAG;YACnB;QACJ;IACJ;IAEO,QAAc;QACjB,IAAI,CAAC,KAAK,GAAG;QACb,IAAI,CAAC,OAAO,GAAG;IACnB;AACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./useScheduleDialog.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./useScheduleDialog.js";
|