@webiny/app-scheduler 6.3.0 → 6.4.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Domain/Models/SchedulerItem/SchedulerItem.js +15 -14
- package/Domain/Models/SchedulerItem/SchedulerItem.js.map +1 -1
- package/Domain/Models/SchedulerItem/index.js +0 -2
- package/Domain/Models/index.js +0 -2
- package/Domain/Repositories/SchedulerItems/ISchedulerItemsRepository.js +0 -3
- package/Domain/Repositories/SchedulerItems/SchedulerItemsRepository.js +107 -116
- package/Domain/Repositories/SchedulerItems/SchedulerItemsRepository.js.map +1 -1
- package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryFactory.js +13 -12
- package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryFactory.js.map +1 -1
- package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryWithLoading.js +34 -33
- package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryWithLoading.js.map +1 -1
- package/Domain/Repositories/SchedulerItems/index.js +0 -2
- package/Domain/Repositories/Search/ISearchRepository.js +0 -3
- package/Domain/Repositories/Search/SearchRepository.js +12 -11
- package/Domain/Repositories/Search/SearchRepository.js.map +1 -1
- package/Domain/Repositories/Search/SearchRepositoryFactory.js +13 -12
- package/Domain/Repositories/Search/SearchRepositoryFactory.js.map +1 -1
- package/Domain/Repositories/Search/index.js +0 -2
- package/Domain/Repositories/SelectedItems/ISelectedItemsRepository.js +0 -3
- package/Domain/Repositories/SelectedItems/SelectedItemsRepository.js +24 -23
- package/Domain/Repositories/SelectedItems/SelectedItemsRepository.js.map +1 -1
- package/Domain/Repositories/SelectedItems/SelectedItemsRepositoryFactory.js +13 -12
- package/Domain/Repositories/SelectedItems/SelectedItemsRepositoryFactory.js.map +1 -1
- package/Domain/Repositories/SelectedItems/index.js +0 -2
- package/Domain/Repositories/Sorting/SortingRepositoryWithDefaults.js +16 -17
- package/Domain/Repositories/Sorting/SortingRepositoryWithDefaults.js.map +1 -1
- package/Domain/Repositories/Sorting/index.js +0 -2
- package/Domain/Repositories/index.js +0 -2
- package/Domain/index.js +0 -2
- package/Gateways/SchedulerCancelGraphQLGateway.js +23 -29
- package/Gateways/SchedulerCancelGraphQLGateway.js.map +1 -1
- package/Gateways/SchedulerGetGraphQLGateway.js +41 -45
- package/Gateways/SchedulerGetGraphQLGateway.js.map +1 -1
- package/Gateways/SchedulerListGraphQLGateway.js +42 -48
- package/Gateways/SchedulerListGraphQLGateway.js.map +1 -1
- package/Gateways/SchedulerPublishGraphQLGateway.js +31 -39
- package/Gateways/SchedulerPublishGraphQLGateway.js.map +1 -1
- package/Gateways/SchedulerUnpublishGraphQLGateway.js +35 -41
- package/Gateways/SchedulerUnpublishGraphQLGateway.js.map +1 -1
- package/Gateways/abstractions/CancelScheduledActionGateway.js +0 -3
- package/Gateways/abstractions/GetScheduledActionGateway.js +0 -3
- package/Gateways/abstractions/ListScheduledActionsGateway.js +0 -3
- package/Gateways/abstractions/SchedulePublishActionGateway.js +0 -3
- package/Gateways/abstractions/ScheduleUnpublishActionGateway.js +0 -3
- package/Gateways/graphql/fields.js +2 -3
- package/Gateways/graphql/fields.js.map +1 -1
- package/Gateways/index.js +0 -3
- package/Gateways/schema/schedulerEntry.js +13 -16
- package/Gateways/schema/schedulerEntry.js.map +1 -1
- package/Presentation/Scheduler/Scheduler.js +69 -58
- package/Presentation/Scheduler/Scheduler.js.map +1 -1
- package/Presentation/Scheduler/SchedulerControllers.js +49 -67
- package/Presentation/Scheduler/SchedulerControllers.js.map +1 -1
- package/Presentation/Scheduler/SchedulerPresenter.js +39 -38
- package/Presentation/Scheduler/SchedulerPresenter.js.map +1 -1
- package/Presentation/Scheduler/controllers/CancelItem/CancelItemController.js +9 -8
- package/Presentation/Scheduler/controllers/CancelItem/CancelItemController.js.map +1 -1
- package/Presentation/Scheduler/controllers/CancelItem/ICancelItemController.js +0 -3
- package/Presentation/Scheduler/controllers/CancelItem/index.js +0 -2
- package/Presentation/Scheduler/controllers/GetItem/GetItemController.js +9 -8
- package/Presentation/Scheduler/controllers/GetItem/GetItemController.js.map +1 -1
- package/Presentation/Scheduler/controllers/GetItem/IGetItemController.js +0 -3
- package/Presentation/Scheduler/controllers/GetItem/index.js +0 -2
- package/Presentation/Scheduler/controllers/ListItems/IListItemsController.js +0 -3
- package/Presentation/Scheduler/controllers/ListItems/ListItemsController.js +9 -8
- package/Presentation/Scheduler/controllers/ListItems/ListItemsController.js.map +1 -1
- package/Presentation/Scheduler/controllers/ListItems/index.js +0 -2
- package/Presentation/Scheduler/controllers/ListMoreItems/IListMoreItemsController.js +0 -3
- package/Presentation/Scheduler/controllers/ListMoreItems/ListMoreItemsController.js +9 -8
- package/Presentation/Scheduler/controllers/ListMoreItems/ListMoreItemsController.js.map +1 -1
- package/Presentation/Scheduler/controllers/ListMoreItems/index.js +0 -2
- package/Presentation/Scheduler/controllers/PublishItem/IPublishItemController.js +0 -3
- package/Presentation/Scheduler/controllers/PublishItem/PublishItemController.js +9 -8
- package/Presentation/Scheduler/controllers/PublishItem/PublishItemController.js.map +1 -1
- package/Presentation/Scheduler/controllers/PublishItem/index.js +0 -2
- package/Presentation/Scheduler/controllers/SearchItems/ISearchItemsController.js +0 -3
- package/Presentation/Scheduler/controllers/SearchItems/SearchItemsController.js +12 -11
- package/Presentation/Scheduler/controllers/SearchItems/SearchItemsController.js.map +1 -1
- package/Presentation/Scheduler/controllers/SearchItems/index.js +0 -2
- package/Presentation/Scheduler/controllers/SelectAllItems/ISelectAllItemsController.js +0 -3
- package/Presentation/Scheduler/controllers/SelectAllItems/SelectAllItemsController.js +9 -8
- package/Presentation/Scheduler/controllers/SelectAllItems/SelectAllItemsController.js.map +1 -1
- package/Presentation/Scheduler/controllers/SelectAllItems/index.js +0 -2
- package/Presentation/Scheduler/controllers/SelectItems/ISelectItemsController.js +0 -3
- package/Presentation/Scheduler/controllers/SelectItems/SelectItemsController.js +10 -9
- package/Presentation/Scheduler/controllers/SelectItems/SelectItemsController.js.map +1 -1
- package/Presentation/Scheduler/controllers/SelectItems/index.js +0 -2
- package/Presentation/Scheduler/controllers/SortItems/ISortItemsController.d.ts +2 -2
- package/Presentation/Scheduler/controllers/SortItems/ISortItemsController.js +0 -3
- package/Presentation/Scheduler/controllers/SortItems/SortItemsController.d.ts +2 -2
- package/Presentation/Scheduler/controllers/SortItems/SortItemsController.js +13 -14
- package/Presentation/Scheduler/controllers/SortItems/SortItemsController.js.map +1 -1
- package/Presentation/Scheduler/controllers/SortItems/index.js +0 -2
- package/Presentation/Scheduler/controllers/UnpublishItem/IUnpublishItemController.js +0 -3
- package/Presentation/Scheduler/controllers/UnpublishItem/UnpublishItemController.js +9 -8
- package/Presentation/Scheduler/controllers/UnpublishItem/UnpublishItemController.js.map +1 -1
- package/Presentation/Scheduler/controllers/UnpublishItem/index.js +0 -2
- package/Presentation/Scheduler/controllers/UnselectAllItems/IUnselectAllItemsController.js +0 -3
- package/Presentation/Scheduler/controllers/UnselectAllItems/UnselectAllItemsController.js +9 -8
- package/Presentation/Scheduler/controllers/UnselectAllItems/UnselectAllItemsController.js.map +1 -1
- package/Presentation/Scheduler/controllers/UnselectAllItems/index.js +0 -2
- package/Presentation/Scheduler/controllers/index.js +0 -2
- package/Presentation/Scheduler/index.js +0 -2
- package/Presentation/SchedulerConfigs/SchedulerConfigs.js +48 -51
- package/Presentation/SchedulerConfigs/SchedulerConfigs.js.map +1 -1
- package/Presentation/SchedulerConfigs/index.js +0 -2
- package/Presentation/SchedulerRenderer/SchedulerRenderer.js +10 -15
- package/Presentation/SchedulerRenderer/SchedulerRenderer.js.map +1 -1
- package/Presentation/SchedulerRenderer/index.js +0 -2
- package/Presentation/abstractions/ISchedulerControllers.js +0 -3
- package/Presentation/abstractions/ISchedulerPresenter.js +0 -3
- package/Presentation/abstractions/index.js +0 -3
- package/Presentation/components/Actions/CancelItem/CancelItem.js +14 -19
- package/Presentation/components/Actions/CancelItem/CancelItem.js.map +1 -1
- package/Presentation/components/Actions/CancelItem/index.js +0 -2
- package/Presentation/components/Actions/index.js +0 -2
- package/Presentation/components/BottomInfoBar/BottomInfoBar.js +11 -12
- package/Presentation/components/BottomInfoBar/BottomInfoBar.js.map +1 -1
- package/Presentation/components/BottomInfoBar/BottomInfoBar.styled.js +41 -67
- package/Presentation/components/BottomInfoBar/BottomInfoBar.styled.js.map +1 -1
- package/Presentation/components/BottomInfoBar/ListMeta.js +6 -9
- package/Presentation/components/BottomInfoBar/ListMeta.js.map +1 -1
- package/Presentation/components/BottomInfoBar/ListStatus.js +8 -12
- package/Presentation/components/BottomInfoBar/ListStatus.js.map +1 -1
- package/Presentation/components/BottomInfoBar/index.js +0 -2
- package/Presentation/components/Cells/CellActions/CellActions.js +12 -17
- package/Presentation/components/Cells/CellActions/CellActions.js.map +1 -1
- package/Presentation/components/Cells/CellActions/index.js +0 -2
- package/Presentation/components/Cells/CellRevision/CellRevision.js +9 -14
- package/Presentation/components/Cells/CellRevision/CellRevision.js.map +1 -1
- package/Presentation/components/Cells/CellRevision/CellRevision.styled.d.ts +1 -1
- package/Presentation/components/Cells/CellRevision/CellRevision.styled.js +16 -42
- package/Presentation/components/Cells/CellRevision/CellRevision.styled.js.map +1 -1
- package/Presentation/components/Cells/CellRevision/index.js +0 -2
- package/Presentation/components/Cells/CellScheduledBy/CellScheduledBy.js +6 -9
- package/Presentation/components/Cells/CellScheduledBy/CellScheduledBy.js.map +1 -1
- package/Presentation/components/Cells/CellScheduledBy/index.js +0 -2
- package/Presentation/components/Cells/CellScheduledOn/CellScheduledOn.js +11 -18
- package/Presentation/components/Cells/CellScheduledOn/CellScheduledOn.js.map +1 -1
- package/Presentation/components/Cells/CellScheduledOn/index.js +0 -2
- package/Presentation/components/Cells/CellTitle/CellTitle.js +9 -12
- package/Presentation/components/Cells/CellTitle/CellTitle.js.map +1 -1
- package/Presentation/components/Cells/CellTitle/CellTitle.styled.d.ts +1 -1
- package/Presentation/components/Cells/CellTitle/CellTitle.styled.js +16 -42
- package/Presentation/components/Cells/CellTitle/CellTitle.styled.js.map +1 -1
- package/Presentation/components/Cells/CellTitle/index.js +0 -2
- package/Presentation/components/Cells/CellType/CellActionType.js +10 -13
- package/Presentation/components/Cells/CellType/CellActionType.js.map +1 -1
- package/Presentation/components/Cells/CellType/CellActionType.styled.d.ts +1 -1
- package/Presentation/components/Cells/CellType/CellActionType.styled.js +16 -42
- package/Presentation/components/Cells/CellType/CellActionType.styled.js.map +1 -1
- package/Presentation/components/Cells/CellType/index.js +0 -2
- package/Presentation/components/Cells/index.js +0 -2
- package/Presentation/components/Empty/Empty.js +15 -16
- package/Presentation/components/Empty/Empty.js.map +1 -1
- package/Presentation/components/Empty/Empty.styled.js +14 -28
- package/Presentation/components/Empty/Empty.styled.js.map +1 -1
- package/Presentation/components/Empty/index.js +0 -2
- package/Presentation/components/ScheduleDialog/IScheduleDialogPresenter.js +0 -3
- package/Presentation/components/ScheduleDialog/ScheduleDialogPresenter.js +75 -79
- package/Presentation/components/ScheduleDialog/ScheduleDialogPresenter.js.map +1 -1
- package/Presentation/components/ScheduleDialog/index.js +0 -2
- package/Presentation/components/ScheduleDialog/types.js +0 -3
- package/Presentation/components/ScheduleDialog/useScheduleDialog.js +165 -207
- package/Presentation/components/ScheduleDialog/useScheduleDialog.js.map +1 -1
- package/Presentation/components/SchedulerOverlay/SchedulerOverlay.js +19 -25
- package/Presentation/components/SchedulerOverlay/SchedulerOverlay.js.map +1 -1
- package/Presentation/components/SchedulerOverlay/index.js +0 -2
- package/Presentation/components/SearchInput/SearchInput.js +25 -32
- package/Presentation/components/SearchInput/SearchInput.js.map +1 -1
- package/Presentation/components/SearchInput/index.js +0 -2
- package/Presentation/components/Table/Table.js +23 -28
- package/Presentation/components/Table/Table.js.map +1 -1
- package/Presentation/components/Table/index.js +0 -2
- package/Presentation/components/Title/Title.js +7 -12
- package/Presentation/components/Title/Title.js.map +1 -1
- package/Presentation/components/Title/Title.styled.d.ts +1 -2
- package/Presentation/components/Title/Title.styled.js +11 -16
- package/Presentation/components/Title/Title.styled.js.map +1 -1
- package/Presentation/components/Title/index.js +0 -2
- package/Presentation/configs/index.js +0 -2
- package/Presentation/configs/list/Browser/EntryAction.js +8 -11
- package/Presentation/configs/list/Browser/EntryAction.js.map +1 -1
- package/Presentation/configs/list/Browser/Table/Column.js +7 -10
- package/Presentation/configs/list/Browser/Table/Column.js.map +1 -1
- package/Presentation/configs/list/Browser/Table/Sorting.js +4 -7
- package/Presentation/configs/list/Browser/Table/Sorting.js.map +1 -1
- package/Presentation/configs/list/Browser/Table/index.js +4 -3
- package/Presentation/configs/list/Browser/Table/index.js.map +1 -1
- package/Presentation/configs/list/Browser/index.js +4 -3
- package/Presentation/configs/list/Browser/index.js.map +1 -1
- package/Presentation/configs/list/SchedulerListConfig.js +20 -21
- package/Presentation/configs/list/SchedulerListConfig.js.map +1 -1
- package/Presentation/configs/list/index.js +0 -2
- package/Presentation/hooks/index.js +0 -2
- package/Presentation/hooks/useCancelSchedulerItem.js +22 -27
- package/Presentation/hooks/useCancelSchedulerItem.js.map +1 -1
- package/Presentation/hooks/useScheduler.js +62 -46
- package/Presentation/hooks/useScheduler.js.map +1 -1
- package/Presentation/hooks/useSchedulerItem.js +4 -6
- package/Presentation/hooks/useSchedulerItem.js.map +1 -1
- package/Presentation/index.js +35 -42
- package/Presentation/index.js.map +1 -1
- package/UseCases/CancelItem/CancelItemUseCase.js +9 -8
- package/UseCases/CancelItem/CancelItemUseCase.js.map +1 -1
- package/UseCases/CancelItem/ICancelItemUseCase.js +0 -3
- package/UseCases/CancelItem/index.js +0 -2
- package/UseCases/GetItem/GetItemUseCase.js +9 -8
- package/UseCases/GetItem/GetItemUseCase.js.map +1 -1
- package/UseCases/GetItem/IGetItemUseCase.js +0 -3
- package/UseCases/GetItem/index.js +0 -2
- package/UseCases/GetScheduledItem/GetScheduledItemUseCase.js +10 -9
- package/UseCases/GetScheduledItem/GetScheduledItemUseCase.js.map +1 -1
- package/UseCases/GetScheduledItem/IGetScheduledItemUseCase.js +0 -3
- package/UseCases/GetScheduledItem/index.js +0 -2
- package/UseCases/ListItems/IListItemsUseCase.js +0 -3
- package/UseCases/ListItems/ListItemsUseCase.js +9 -8
- package/UseCases/ListItems/ListItemsUseCase.js.map +1 -1
- package/UseCases/ListItems/ListItemsUseCaseWithSearch.js +19 -18
- package/UseCases/ListItems/ListItemsUseCaseWithSearch.js.map +1 -1
- package/UseCases/ListItems/ListItemsUseCaseWithSorting.js +16 -17
- package/UseCases/ListItems/ListItemsUseCaseWithSorting.js.map +1 -1
- package/UseCases/ListItems/index.js +0 -2
- package/UseCases/ListMoreItems/IListMoreItemsUseCase.js +0 -3
- package/UseCases/ListMoreItems/ListMoreItemsUseCase.js +9 -8
- package/UseCases/ListMoreItems/ListMoreItemsUseCase.js.map +1 -1
- package/UseCases/ListMoreItems/index.js +0 -2
- package/UseCases/PublishItem/IPublishItemUseCase.js +0 -3
- package/UseCases/PublishItem/PublishItemUseCase.js +9 -8
- package/UseCases/PublishItem/PublishItemUseCase.js.map +1 -1
- package/UseCases/PublishItem/index.js +0 -2
- package/UseCases/SearchItems/ISearchItemsUseCase.js +0 -3
- package/UseCases/SearchItems/SearchItemsUseCase.js +9 -8
- package/UseCases/SearchItems/SearchItemsUseCase.js.map +1 -1
- package/UseCases/SearchItems/index.js +0 -2
- package/UseCases/SelectAllItems/ISelectAllItemsUseCase.js +0 -3
- package/UseCases/SelectAllItems/SelectAllItemsUseCase.js +9 -8
- package/UseCases/SelectAllItems/SelectAllItemsUseCase.js.map +1 -1
- package/UseCases/SelectAllItems/index.js +0 -2
- package/UseCases/SelectItems/ISelectItemsUseCase.js +0 -3
- package/UseCases/SelectItems/SelectItemsUseCase.js +9 -8
- package/UseCases/SelectItems/SelectItemsUseCase.js.map +1 -1
- package/UseCases/SelectItems/index.js +0 -2
- package/UseCases/SortItems/ISortItemsUseCase.js +0 -3
- package/UseCases/SortItems/SortItemsUseCase.js +9 -8
- package/UseCases/SortItems/SortItemsUseCase.js.map +1 -1
- package/UseCases/SortItems/index.js +0 -2
- package/UseCases/UnSelectAllItems/IUnselectAllItemsUseCase.js +0 -3
- package/UseCases/UnSelectAllItems/UnselectAllItemsUseCase.js +9 -8
- package/UseCases/UnSelectAllItems/UnselectAllItemsUseCase.js.map +1 -1
- package/UseCases/UnSelectAllItems/index.js +0 -2
- package/UseCases/UnpublishItem/IUnpublishItemUseCase.js +0 -3
- package/UseCases/UnpublishItem/UnpublishItemUseCase.js +9 -8
- package/UseCases/UnpublishItem/UnpublishItemUseCase.js.map +1 -1
- package/UseCases/UnpublishItem/index.js +0 -2
- package/UseCases/index.js +0 -2
- package/index.js +1 -3
- package/package.json +16 -18
- package/types.js +12 -11
- package/types.js.map +1 -1
- package/Domain/Models/SchedulerItem/index.js.map +0 -1
- package/Domain/Models/index.js.map +0 -1
- package/Domain/Repositories/SchedulerItems/ISchedulerItemsRepository.js.map +0 -1
- package/Domain/Repositories/SchedulerItems/index.js.map +0 -1
- package/Domain/Repositories/Search/ISearchRepository.js.map +0 -1
- package/Domain/Repositories/Search/index.js.map +0 -1
- package/Domain/Repositories/SelectedItems/ISelectedItemsRepository.js.map +0 -1
- package/Domain/Repositories/SelectedItems/index.js.map +0 -1
- package/Domain/Repositories/Sorting/index.js.map +0 -1
- package/Domain/Repositories/index.js.map +0 -1
- package/Domain/index.js.map +0 -1
- package/Gateways/abstractions/CancelScheduledActionGateway.js.map +0 -1
- package/Gateways/abstractions/GetScheduledActionGateway.js.map +0 -1
- package/Gateways/abstractions/ListScheduledActionsGateway.js.map +0 -1
- package/Gateways/abstractions/SchedulePublishActionGateway.js.map +0 -1
- package/Gateways/abstractions/ScheduleUnpublishActionGateway.js.map +0 -1
- package/Gateways/index.js.map +0 -1
- package/Presentation/Scheduler/controllers/CancelItem/ICancelItemController.js.map +0 -1
- package/Presentation/Scheduler/controllers/CancelItem/index.js.map +0 -1
- package/Presentation/Scheduler/controllers/GetItem/IGetItemController.js.map +0 -1
- package/Presentation/Scheduler/controllers/GetItem/index.js.map +0 -1
- package/Presentation/Scheduler/controllers/ListItems/IListItemsController.js.map +0 -1
- package/Presentation/Scheduler/controllers/ListItems/index.js.map +0 -1
- package/Presentation/Scheduler/controllers/ListMoreItems/IListMoreItemsController.js.map +0 -1
- package/Presentation/Scheduler/controllers/ListMoreItems/index.js.map +0 -1
- package/Presentation/Scheduler/controllers/PublishItem/IPublishItemController.js.map +0 -1
- package/Presentation/Scheduler/controllers/PublishItem/index.js.map +0 -1
- package/Presentation/Scheduler/controllers/SearchItems/ISearchItemsController.js.map +0 -1
- package/Presentation/Scheduler/controllers/SearchItems/index.js.map +0 -1
- package/Presentation/Scheduler/controllers/SelectAllItems/ISelectAllItemsController.js.map +0 -1
- package/Presentation/Scheduler/controllers/SelectAllItems/index.js.map +0 -1
- package/Presentation/Scheduler/controllers/SelectItems/ISelectItemsController.js.map +0 -1
- package/Presentation/Scheduler/controllers/SelectItems/index.js.map +0 -1
- package/Presentation/Scheduler/controllers/SortItems/ISortItemsController.js.map +0 -1
- package/Presentation/Scheduler/controllers/SortItems/index.js.map +0 -1
- package/Presentation/Scheduler/controllers/UnpublishItem/IUnpublishItemController.js.map +0 -1
- package/Presentation/Scheduler/controllers/UnpublishItem/index.js.map +0 -1
- package/Presentation/Scheduler/controllers/UnselectAllItems/IUnselectAllItemsController.js.map +0 -1
- package/Presentation/Scheduler/controllers/UnselectAllItems/index.js.map +0 -1
- package/Presentation/Scheduler/controllers/index.js.map +0 -1
- package/Presentation/Scheduler/index.js.map +0 -1
- package/Presentation/SchedulerConfigs/index.js.map +0 -1
- package/Presentation/SchedulerRenderer/index.js.map +0 -1
- package/Presentation/abstractions/ISchedulerControllers.js.map +0 -1
- package/Presentation/abstractions/ISchedulerPresenter.js.map +0 -1
- package/Presentation/abstractions/index.js.map +0 -1
- package/Presentation/components/Actions/CancelItem/index.js.map +0 -1
- package/Presentation/components/Actions/index.js.map +0 -1
- package/Presentation/components/BottomInfoBar/index.js.map +0 -1
- package/Presentation/components/Cells/CellActions/index.js.map +0 -1
- package/Presentation/components/Cells/CellRevision/index.js.map +0 -1
- package/Presentation/components/Cells/CellScheduledBy/index.js.map +0 -1
- package/Presentation/components/Cells/CellScheduledOn/index.js.map +0 -1
- package/Presentation/components/Cells/CellTitle/index.js.map +0 -1
- package/Presentation/components/Cells/CellType/index.js.map +0 -1
- package/Presentation/components/Cells/index.js.map +0 -1
- package/Presentation/components/Empty/index.js.map +0 -1
- package/Presentation/components/ScheduleDialog/IScheduleDialogPresenter.js.map +0 -1
- package/Presentation/components/ScheduleDialog/index.js.map +0 -1
- package/Presentation/components/ScheduleDialog/types.js.map +0 -1
- package/Presentation/components/SchedulerOverlay/index.js.map +0 -1
- package/Presentation/components/SearchInput/index.js.map +0 -1
- package/Presentation/components/Table/index.js.map +0 -1
- package/Presentation/components/Title/index.js.map +0 -1
- package/Presentation/configs/index.js.map +0 -1
- package/Presentation/configs/list/index.js.map +0 -1
- package/Presentation/hooks/index.js.map +0 -1
- package/UseCases/CancelItem/ICancelItemUseCase.js.map +0 -1
- package/UseCases/CancelItem/index.js.map +0 -1
- package/UseCases/GetItem/IGetItemUseCase.js.map +0 -1
- package/UseCases/GetItem/index.js.map +0 -1
- package/UseCases/GetScheduledItem/IGetScheduledItemUseCase.js.map +0 -1
- package/UseCases/GetScheduledItem/index.js.map +0 -1
- package/UseCases/ListItems/IListItemsUseCase.js.map +0 -1
- package/UseCases/ListItems/index.js.map +0 -1
- package/UseCases/ListMoreItems/IListMoreItemsUseCase.js.map +0 -1
- package/UseCases/ListMoreItems/index.js.map +0 -1
- package/UseCases/PublishItem/IPublishItemUseCase.js.map +0 -1
- package/UseCases/PublishItem/index.js.map +0 -1
- package/UseCases/SearchItems/ISearchItemsUseCase.js.map +0 -1
- package/UseCases/SearchItems/index.js.map +0 -1
- package/UseCases/SelectAllItems/ISelectAllItemsUseCase.js.map +0 -1
- package/UseCases/SelectAllItems/index.js.map +0 -1
- package/UseCases/SelectItems/ISelectItemsUseCase.js.map +0 -1
- package/UseCases/SelectItems/index.js.map +0 -1
- package/UseCases/SortItems/ISortItemsUseCase.js.map +0 -1
- package/UseCases/SortItems/index.js.map +0 -1
- package/UseCases/UnSelectAllItems/IUnselectAllItemsUseCase.js.map +0 -1
- package/UseCases/UnSelectAllItems/index.js.map +0 -1
- package/UseCases/UnpublishItem/IUnpublishItemUseCase.js.map +0 -1
- package/UseCases/UnpublishItem/index.js.map +0 -1
- package/UseCases/index.js.map +0 -1
- package/index.js.map +0 -1
|
@@ -1,44 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
export const RowIcon = /*#__PURE__*/_styled("div", process.env.NODE_ENV === "production" ? {
|
|
18
|
-
target: "e16g9ulc1"
|
|
19
|
-
} : {
|
|
20
|
-
target: "e16g9ulc1",
|
|
21
|
-
label: "RowIcon"
|
|
22
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
23
|
-
name: "1hpq26k",
|
|
24
|
-
styles: "margin-right:8px;height:24px"
|
|
25
|
-
} : {
|
|
26
|
-
name: "1hpq26k",
|
|
27
|
-
styles: "margin-right:8px;height:24px/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkNlbGxUaXRsZS5zdHlsZWQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVFvQyIsImZpbGUiOiJDZWxsVGl0bGUuc3R5bGVkLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSBcIkBlbW90aW9uL3N0eWxlZFwiO1xuaW1wb3J0IHsgVHlwb2dyYXBoeSB9IGZyb20gXCJAd2ViaW55L3VpL1R5cG9ncmFwaHkvaW5kZXguanNcIjtcblxuZXhwb3J0IGNvbnN0IFJvd1RpdGxlID0gc3R5bGVkKFwiZGl2XCIpYFxuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbmA7XG5cbmV4cG9ydCBjb25zdCBSb3dJY29uID0gc3R5bGVkKFwiZGl2XCIpYFxuICAgIG1hcmdpbi1yaWdodDogOHB4O1xuICAgIGhlaWdodDogMjRweDtcbmA7XG5cbmV4cG9ydCBjb25zdCBSb3dUZXh0ID0gc3R5bGVkKFR5cG9ncmFwaHkpYFxuICAgIHdoaXRlLXNwYWNlOiBub3dyYXA7XG4gICAgb3ZlcmZsb3c6IGhpZGRlbjtcbiAgICB0ZXh0LW92ZXJmbG93OiBlbGxpcHNpcztcbmA7XG4iXX0= */",
|
|
28
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
29
|
-
});
|
|
30
|
-
export const RowText = /*#__PURE__*/_styled(Typography, process.env.NODE_ENV === "production" ? {
|
|
31
|
-
target: "e16g9ulc0"
|
|
32
|
-
} : {
|
|
33
|
-
target: "e16g9ulc0",
|
|
34
|
-
label: "RowText"
|
|
35
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
36
|
-
name: "l8l8b8",
|
|
37
|
-
styles: "white-space:nowrap;overflow:hidden;text-overflow:ellipsis"
|
|
38
|
-
} : {
|
|
39
|
-
name: "l8l8b8",
|
|
40
|
-
styles: "white-space:nowrap;overflow:hidden;text-overflow:ellipsis/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkNlbGxUaXRsZS5zdHlsZWQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWF5QyIsImZpbGUiOiJDZWxsVGl0bGUuc3R5bGVkLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSBcIkBlbW90aW9uL3N0eWxlZFwiO1xuaW1wb3J0IHsgVHlwb2dyYXBoeSB9IGZyb20gXCJAd2ViaW55L3VpL1R5cG9ncmFwaHkvaW5kZXguanNcIjtcblxuZXhwb3J0IGNvbnN0IFJvd1RpdGxlID0gc3R5bGVkKFwiZGl2XCIpYFxuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbmA7XG5cbmV4cG9ydCBjb25zdCBSb3dJY29uID0gc3R5bGVkKFwiZGl2XCIpYFxuICAgIG1hcmdpbi1yaWdodDogOHB4O1xuICAgIGhlaWdodDogMjRweDtcbmA7XG5cbmV4cG9ydCBjb25zdCBSb3dUZXh0ID0gc3R5bGVkKFR5cG9ncmFwaHkpYFxuICAgIHdoaXRlLXNwYWNlOiBub3dyYXA7XG4gICAgb3ZlcmZsb3c6IGhpZGRlbjtcbiAgICB0ZXh0LW92ZXJmbG93OiBlbGxpcHNpcztcbmA7XG4iXX0= */",
|
|
41
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
42
|
-
});
|
|
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 };
|
|
43
17
|
|
|
44
18
|
//# sourceMappingURL=CellTitle.styled.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
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"}
|
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ReactComponent
|
|
3
|
-
import { ReactComponent as
|
|
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
4
|
import { RowIcon, RowText, RowType } from "./CellActionType.styled.js";
|
|
5
5
|
import { SchedulerListConfig } from "../../../configs/index.js";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
useTableRow
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
row
|
|
12
|
-
} = useTableRow();
|
|
13
|
-
return /*#__PURE__*/React.createElement(RowType, null, /*#__PURE__*/React.createElement(RowIcon, null, row.data.actionType === "publish" ? /*#__PURE__*/React.createElement(Publish, null) : /*#__PURE__*/React.createElement(Unpublish, null)), /*#__PURE__*/React.createElement(RowText, {
|
|
14
|
-
use: "subtitle2"
|
|
15
|
-
}, row.data.actionType));
|
|
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));
|
|
16
12
|
};
|
|
13
|
+
export { CellActionType };
|
|
17
14
|
|
|
18
15
|
//# sourceMappingURL=CellActionType.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
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"}
|
|
@@ -6,6 +6,6 @@ export declare const RowIcon: import("@emotion/styled").StyledComponent<{
|
|
|
6
6
|
theme?: import("@emotion/react").Theme;
|
|
7
7
|
as?: React.ElementType;
|
|
8
8
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
9
|
-
export declare const RowText: import("@emotion/styled").StyledComponent<import("@webiny/ui
|
|
9
|
+
export declare const RowText: import("@emotion/styled").StyledComponent<import("@webiny/admin-ui").TextProps & {
|
|
10
10
|
theme?: import("@emotion/react").Theme;
|
|
11
11
|
}, {}, {}>;
|
|
@@ -1,44 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
export const RowIcon = /*#__PURE__*/_styled("div", process.env.NODE_ENV === "production" ? {
|
|
18
|
-
target: "e1fmcif11"
|
|
19
|
-
} : {
|
|
20
|
-
target: "e1fmcif11",
|
|
21
|
-
label: "RowIcon"
|
|
22
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
23
|
-
name: "1hpq26k",
|
|
24
|
-
styles: "margin-right:8px;height:24px"
|
|
25
|
-
} : {
|
|
26
|
-
name: "1hpq26k",
|
|
27
|
-
styles: "margin-right:8px;height:24px/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkNlbGxBY3Rpb25UeXBlLnN0eWxlZC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBUW9DIiwiZmlsZSI6IkNlbGxBY3Rpb25UeXBlLnN0eWxlZC50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gXCJAZW1vdGlvbi9zdHlsZWRcIjtcbmltcG9ydCB7IFR5cG9ncmFwaHkgfSBmcm9tIFwiQHdlYmlueS91aS9UeXBvZ3JhcGh5L2luZGV4LmpzXCI7XG5cbmV4cG9ydCBjb25zdCBSb3dUeXBlID0gc3R5bGVkKFwiZGl2XCIpYFxuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbmA7XG5cbmV4cG9ydCBjb25zdCBSb3dJY29uID0gc3R5bGVkKFwiZGl2XCIpYFxuICAgIG1hcmdpbi1yaWdodDogOHB4O1xuICAgIGhlaWdodDogMjRweDtcbmA7XG5cbmV4cG9ydCBjb25zdCBSb3dUZXh0ID0gc3R5bGVkKFR5cG9ncmFwaHkpYFxuICAgIHdoaXRlLXNwYWNlOiBub3dyYXA7XG4gICAgb3ZlcmZsb3c6IGhpZGRlbjtcbiAgICB0ZXh0LW92ZXJmbG93OiBlbGxpcHNpcztcbmA7XG4iXX0= */",
|
|
28
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
29
|
-
});
|
|
30
|
-
export const RowText = /*#__PURE__*/_styled(Typography, process.env.NODE_ENV === "production" ? {
|
|
31
|
-
target: "e1fmcif10"
|
|
32
|
-
} : {
|
|
33
|
-
target: "e1fmcif10",
|
|
34
|
-
label: "RowText"
|
|
35
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
36
|
-
name: "l8l8b8",
|
|
37
|
-
styles: "white-space:nowrap;overflow:hidden;text-overflow:ellipsis"
|
|
38
|
-
} : {
|
|
39
|
-
name: "l8l8b8",
|
|
40
|
-
styles: "white-space:nowrap;overflow:hidden;text-overflow:ellipsis/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkNlbGxBY3Rpb25UeXBlLnN0eWxlZC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBYXlDIiwiZmlsZSI6IkNlbGxBY3Rpb25UeXBlLnN0eWxlZC50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gXCJAZW1vdGlvbi9zdHlsZWRcIjtcbmltcG9ydCB7IFR5cG9ncmFwaHkgfSBmcm9tIFwiQHdlYmlueS91aS9UeXBvZ3JhcGh5L2luZGV4LmpzXCI7XG5cbmV4cG9ydCBjb25zdCBSb3dUeXBlID0gc3R5bGVkKFwiZGl2XCIpYFxuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbmA7XG5cbmV4cG9ydCBjb25zdCBSb3dJY29uID0gc3R5bGVkKFwiZGl2XCIpYFxuICAgIG1hcmdpbi1yaWdodDogOHB4O1xuICAgIGhlaWdodDogMjRweDtcbmA7XG5cbmV4cG9ydCBjb25zdCBSb3dUZXh0ID0gc3R5bGVkKFR5cG9ncmFwaHkpYFxuICAgIHdoaXRlLXNwYWNlOiBub3dyYXA7XG4gICAgb3ZlcmZsb3c6IGhpZGRlbjtcbiAgICB0ZXh0LW92ZXJmbG93OiBlbGxpcHNpcztcbmA7XG4iXX0= */",
|
|
41
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
42
|
-
});
|
|
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 };
|
|
43
17
|
|
|
44
18
|
//# sourceMappingURL=CellActionType.styled.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
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"}
|
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ReactComponent
|
|
3
|
-
import { ReactComponent as
|
|
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
4
|
import { EmptyView } from "@webiny/app-admin";
|
|
5
5
|
import { EmptyOuter, EmptyWrapper } from "./Empty.styled.js";
|
|
6
6
|
import { useScheduler } from "../../hooks/index.js";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
vm
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
action: null
|
|
19
|
-
})));
|
|
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
|
+
})));
|
|
20
18
|
};
|
|
19
|
+
export { Empty };
|
|
21
20
|
|
|
22
21
|
//# sourceMappingURL=Empty.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
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"}
|
|
@@ -1,30 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
});
|
|
16
|
-
export const EmptyOuter = /*#__PURE__*/_styled("div", process.env.NODE_ENV === "production" ? {
|
|
17
|
-
target: "e1hifec40"
|
|
18
|
-
} : {
|
|
19
|
-
target: "e1hifec40",
|
|
20
|
-
label: "EmptyOuter"
|
|
21
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
22
|
-
name: "zigog8",
|
|
23
|
-
styles: "display:flex;flex-direction:column;align-items:center"
|
|
24
|
-
} : {
|
|
25
|
-
name: "zigog8",
|
|
26
|
-
styles: "display:flex;flex-direction:column;align-items:center/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkVtcHR5LnN0eWxlZC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBVXVDIiwiZmlsZSI6IkVtcHR5LnN0eWxlZC50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gXCJAZW1vdGlvbi9zdHlsZWRcIjtcblxuZXhwb3J0IGNvbnN0IEVtcHR5V3JhcHBlciA9IHN0eWxlZChcImRpdlwiKWBcbiAgICB3aWR0aDogMTAwJTtcbiAgICBoZWlnaHQ6IGNhbGMoMTAwJSAtIDk1cHgpO1xuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbmA7XG5cbmV4cG9ydCBjb25zdCBFbXB0eU91dGVyID0gc3R5bGVkKFwiZGl2XCIpYFxuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbiAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuYDtcbiJdfQ== */",
|
|
27
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
28
|
-
});
|
|
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 };
|
|
29
15
|
|
|
30
16
|
//# sourceMappingURL=Empty.styled.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
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"}
|
|
@@ -1,90 +1,86 @@
|
|
|
1
1
|
import { makeAutoObservable, runInAction } from "mobx";
|
|
2
2
|
import { ScheduleActionType } from "../../../types.js";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
entry = null;
|
|
6
|
-
constructor(params) {
|
|
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;
|
|
3
|
+
class ScheduleDialogPresenter {
|
|
4
|
+
constructor(params){
|
|
25
5
|
this.loading = false;
|
|
26
|
-
});
|
|
27
|
-
} catch {
|
|
28
|
-
runInAction(() => {
|
|
29
|
-
this.loading = false;
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
async schedule(params) {
|
|
34
|
-
const {
|
|
35
|
-
targetId,
|
|
36
|
-
namespace,
|
|
37
|
-
scheduleOn,
|
|
38
|
-
actionType
|
|
39
|
-
} = params;
|
|
40
|
-
this.loading = true;
|
|
41
|
-
try {
|
|
42
|
-
switch (actionType) {
|
|
43
|
-
case ScheduleActionType.publish:
|
|
44
|
-
await this.publishGateway.execute({
|
|
45
|
-
namespace,
|
|
46
|
-
targetId,
|
|
47
|
-
scheduleOn
|
|
48
|
-
});
|
|
49
|
-
break;
|
|
50
|
-
case ScheduleActionType.unpublish:
|
|
51
|
-
await this.unpublishGateway.execute({
|
|
52
|
-
namespace,
|
|
53
|
-
targetId,
|
|
54
|
-
scheduleOn
|
|
55
|
-
});
|
|
56
|
-
break;
|
|
57
|
-
default:
|
|
58
|
-
throw new Error(`Unsupported action type "${actionType}".`);
|
|
59
|
-
}
|
|
60
|
-
runInAction(() => {
|
|
61
6
|
this.entry = null;
|
|
62
|
-
this.
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
this
|
|
67
|
-
|
|
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
|
+
};
|
|
68
18
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
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() {
|
|
75
80
|
this.entry = null;
|
|
76
81
|
this.loading = false;
|
|
77
|
-
});
|
|
78
|
-
} catch {
|
|
79
|
-
runInAction(() => {
|
|
80
|
-
this.loading = false;
|
|
81
|
-
});
|
|
82
82
|
}
|
|
83
|
-
}
|
|
84
|
-
reset() {
|
|
85
|
-
this.entry = null;
|
|
86
|
-
this.loading = false;
|
|
87
|
-
}
|
|
88
83
|
}
|
|
84
|
+
export { ScheduleDialogPresenter };
|
|
89
85
|
|
|
90
86
|
//# sourceMappingURL=ScheduleDialogPresenter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
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"}
|