@webiny/app-scheduler 6.4.11 → 6.6.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{Gateways/schema → domain}/schedulerEntry.d.ts +1 -1
- package/{Gateways/schema → domain}/schedulerEntry.js +1 -1
- package/domain/schedulerEntry.js.map +1 -0
- package/features/cancelScheduledAction/CancelScheduledActionGateway.d.ts +11 -0
- package/features/cancelScheduledAction/CancelScheduledActionGateway.js +41 -0
- package/features/cancelScheduledAction/CancelScheduledActionGateway.js.map +1 -0
- package/features/cancelScheduledAction/abstractions.d.ts +11 -0
- package/features/cancelScheduledAction/abstractions.js +5 -0
- package/features/cancelScheduledAction/abstractions.js.map +1 -0
- package/features/cancelScheduledAction/feature.d.ts +1 -0
- package/features/cancelScheduledAction/feature.js +11 -0
- package/features/cancelScheduledAction/feature.js.map +1 -0
- package/features/feature.d.ts +1 -0
- package/features/feature.js +19 -0
- package/features/feature.js.map +1 -0
- package/features/getScheduledAction/GetScheduledActionGateway.d.ts +11 -0
- package/features/getScheduledAction/GetScheduledActionGateway.js +57 -0
- package/features/getScheduledAction/GetScheduledActionGateway.js.map +1 -0
- package/{Gateways/abstractions/GetScheduledActionGateway.d.ts → features/getScheduledAction/abstractions.d.ts} +4 -0
- package/features/getScheduledAction/abstractions.js +5 -0
- package/features/getScheduledAction/abstractions.js.map +1 -0
- package/features/getScheduledAction/feature.d.ts +1 -0
- package/features/getScheduledAction/feature.js +11 -0
- package/features/getScheduledAction/feature.js.map +1 -0
- package/features/graphqlFields.d.ts +2 -0
- package/features/graphqlFields.js +23 -0
- package/features/graphqlFields.js.map +1 -0
- package/features/listScheduledActions/ListScheduledActionsGateway.d.ts +11 -0
- package/features/listScheduledActions/ListScheduledActionsGateway.js +84 -0
- package/features/listScheduledActions/ListScheduledActionsGateway.js.map +1 -0
- package/{Gateways/abstractions/ListScheduledActionsGateway.d.ts → features/listScheduledActions/abstractions.d.ts} +5 -2
- package/features/listScheduledActions/abstractions.js +5 -0
- package/features/listScheduledActions/abstractions.js.map +1 -0
- package/features/listScheduledActions/feature.d.ts +1 -0
- package/features/listScheduledActions/feature.js +11 -0
- package/features/listScheduledActions/feature.js.map +1 -0
- package/features/schedulePublishAction/SchedulePublishActionGateway.d.ts +11 -0
- package/features/schedulePublishAction/SchedulePublishActionGateway.js +67 -0
- package/features/schedulePublishAction/SchedulePublishActionGateway.js.map +1 -0
- package/{Gateways/abstractions/SchedulePublishActionGateway.d.ts → features/schedulePublishAction/abstractions.d.ts} +4 -0
- package/features/schedulePublishAction/abstractions.js +5 -0
- package/features/schedulePublishAction/abstractions.js.map +1 -0
- package/features/schedulePublishAction/feature.d.ts +1 -0
- package/features/schedulePublishAction/feature.js +11 -0
- package/features/schedulePublishAction/feature.js.map +1 -0
- package/features/scheduleUnpublishAction/ScheduleUnpublishActionGateway.d.ts +11 -0
- package/features/scheduleUnpublishAction/ScheduleUnpublishActionGateway.js +71 -0
- package/features/scheduleUnpublishAction/ScheduleUnpublishActionGateway.js.map +1 -0
- package/{Gateways/abstractions/ScheduleUnpublishActionGateway.d.ts → features/scheduleUnpublishAction/abstractions.d.ts} +4 -0
- package/features/scheduleUnpublishAction/abstractions.js +5 -0
- package/features/scheduleUnpublishAction/abstractions.js.map +1 -0
- package/features/scheduleUnpublishAction/feature.d.ts +1 -0
- package/features/scheduleUnpublishAction/feature.js +11 -0
- package/features/scheduleUnpublishAction/feature.js.map +1 -0
- package/index.d.ts +9 -1
- package/index.js +17 -1
- package/index.js.map +1 -0
- package/package.json +17 -18
- package/{Presentation → presentation}/SchedulerConfigs/SchedulerConfigs.js.map +1 -1
- package/{Presentation → presentation}/components/Actions/CancelItem/CancelItem.js +2 -3
- package/presentation/components/Actions/CancelItem/CancelItem.js.map +1 -0
- package/{Presentation → presentation}/components/BottomInfoBar/BottomInfoBar.styled.js.map +1 -1
- package/{Presentation → presentation}/components/BottomInfoBar/ListMeta.js.map +1 -1
- package/{Presentation → presentation}/components/BottomInfoBar/ListStatus.js.map +1 -1
- package/{Presentation → presentation}/components/Cells/CellActions/CellActions.js.map +1 -1
- package/{Presentation → presentation}/components/Cells/CellRevision/CellRevision.js.map +1 -1
- package/{Presentation → presentation}/components/Cells/CellRevision/CellRevision.styled.js.map +1 -1
- package/{Presentation → presentation}/components/Cells/CellScheduledBy/CellScheduledBy.js.map +1 -1
- package/{Presentation → presentation}/components/Cells/CellScheduledOn/CellScheduledOn.js +3 -1
- package/presentation/components/Cells/CellScheduledOn/CellScheduledOn.js.map +1 -0
- package/{Presentation → presentation}/components/Cells/CellTitle/CellTitle.js.map +1 -1
- package/{Presentation → presentation}/components/Cells/CellTitle/CellTitle.styled.js.map +1 -1
- package/{Presentation → presentation}/components/Cells/CellType/CellActionType.js.map +1 -1
- package/{Presentation → presentation}/components/Cells/CellType/CellActionType.styled.js.map +1 -1
- package/{Presentation → presentation}/components/Empty/Empty.styled.js.map +1 -1
- package/{Presentation → presentation}/components/Title/Title.js.map +1 -1
- package/{Presentation → presentation}/components/Title/Title.styled.js.map +1 -1
- package/{Presentation → presentation}/configs/list/Browser/EntryAction.d.ts +2 -1
- package/{Presentation → presentation}/configs/list/Browser/EntryAction.js.map +1 -1
- package/{Presentation → presentation}/configs/list/Browser/Table/Column.d.ts +4 -3
- package/{Presentation → presentation}/configs/list/Browser/Table/Column.js.map +1 -1
- package/{Presentation → presentation}/configs/list/Browser/Table/Sorting.js.map +1 -1
- package/presentation/configs/list/Browser/Table/index.d.ts +19 -0
- package/{Presentation → presentation}/configs/list/Browser/Table/index.js.map +1 -1
- package/presentation/configs/list/Browser/index.d.ts +23 -0
- package/{Presentation → presentation}/configs/list/Browser/index.js.map +1 -1
- package/{Presentation → presentation}/configs/list/SchedulerListConfig.d.ts +8 -6
- package/{Presentation → presentation}/configs/list/SchedulerListConfig.js.map +1 -1
- package/{Presentation → presentation}/hooks/index.d.ts +0 -1
- package/{Presentation → presentation}/hooks/index.js +0 -1
- package/{Presentation → presentation}/hooks/useCancelSchedulerItem.js +12 -7
- package/presentation/hooks/useCancelSchedulerItem.js.map +1 -0
- package/{Presentation → presentation}/hooks/useSchedulerItem.js.map +1 -1
- package/presentation/scheduleDialog/ScheduleDialogPresenter.d.ts +26 -0
- package/{Presentation/components/ScheduleDialog → presentation/scheduleDialog}/ScheduleDialogPresenter.js +38 -9
- package/presentation/scheduleDialog/ScheduleDialogPresenter.js.map +1 -0
- package/{Presentation/components/ScheduleDialog/IScheduleDialogPresenter.d.ts → presentation/scheduleDialog/abstractions.d.ts} +10 -1
- package/presentation/scheduleDialog/abstractions.js +5 -0
- package/presentation/scheduleDialog/abstractions.js.map +1 -0
- package/presentation/scheduleDialog/components/CancelButtonComponent.d.ts +10 -0
- package/presentation/scheduleDialog/components/CancelButtonComponent.js +20 -0
- package/presentation/scheduleDialog/components/CancelButtonComponent.js.map +1 -0
- package/presentation/scheduleDialog/components/FormComponent.d.ts +9 -0
- package/presentation/scheduleDialog/components/FormComponent.js +32 -0
- package/presentation/scheduleDialog/components/FormComponent.js.map +1 -0
- package/presentation/scheduleDialog/components/ReschedulingAlert.d.ts +7 -0
- package/presentation/scheduleDialog/components/ReschedulingAlert.js +14 -0
- package/presentation/scheduleDialog/components/ReschedulingAlert.js.map +1 -0
- package/{Presentation/components/ScheduleDialog/useScheduleDialog.d.ts → presentation/scheduleDialog/components/SchedulerDialogFormComponentDateTimeInput.d.ts} +1 -18
- package/presentation/scheduleDialog/components/SchedulerDialogFormComponentDateTimeInput.js +15 -0
- package/presentation/scheduleDialog/components/SchedulerDialogFormComponentDateTimeInput.js.map +1 -0
- package/presentation/scheduleDialog/createMinDateValidator.d.ts +7 -0
- package/presentation/scheduleDialog/createMinDateValidator.js +14 -0
- package/presentation/scheduleDialog/createMinDateValidator.js.map +1 -0
- package/presentation/scheduleDialog/feature.d.ts +3 -0
- package/presentation/scheduleDialog/feature.js +17 -0
- package/presentation/scheduleDialog/feature.js.map +1 -0
- package/presentation/scheduleDialog/useScheduleDialog.d.ts +20 -0
- package/presentation/scheduleDialog/useScheduleDialog.js +128 -0
- package/presentation/scheduleDialog/useScheduleDialog.js.map +1 -0
- package/{Presentation/index.d.ts → presentation/schedulerList/Scheduler.d.ts} +2 -9
- package/presentation/schedulerList/Scheduler.js +28 -0
- package/presentation/schedulerList/Scheduler.js.map +1 -0
- package/presentation/schedulerList/SchedulerListDataSource.d.ts +15 -0
- package/presentation/schedulerList/SchedulerListDataSource.js +41 -0
- package/presentation/schedulerList/SchedulerListDataSource.js.map +1 -0
- package/presentation/schedulerList/SchedulerListPresenter.d.ts +21 -0
- package/presentation/schedulerList/SchedulerListPresenter.js +47 -0
- package/presentation/schedulerList/SchedulerListPresenter.js.map +1 -0
- package/presentation/schedulerList/abstractions.d.ts +13 -0
- package/presentation/schedulerList/abstractions.js +5 -0
- package/presentation/schedulerList/abstractions.js.map +1 -0
- package/presentation/schedulerList/components/BottomInfoBar.d.ts +9 -0
- package/presentation/schedulerList/components/BottomInfoBar.js +18 -0
- package/presentation/schedulerList/components/BottomInfoBar.js.map +1 -0
- package/presentation/schedulerList/components/Empty.d.ts +9 -0
- package/{Presentation/components/Empty → presentation/schedulerList/components}/Empty.js +6 -6
- package/presentation/schedulerList/components/Empty.js.map +1 -0
- package/presentation/schedulerList/components/SchedulerListView.d.ts +8 -0
- package/presentation/schedulerList/components/SchedulerListView.js +40 -0
- package/presentation/schedulerList/components/SchedulerListView.js.map +1 -0
- package/presentation/schedulerList/components/SchedulerOverlay.d.ts +11 -0
- package/presentation/schedulerList/components/SchedulerOverlay.js +38 -0
- package/presentation/schedulerList/components/SchedulerOverlay.js.map +1 -0
- package/presentation/schedulerList/components/SchedulerTable.d.ts +9 -0
- package/presentation/schedulerList/components/SchedulerTable.js +48 -0
- package/presentation/schedulerList/components/SchedulerTable.js.map +1 -0
- package/presentation/schedulerList/components/SearchInput.d.ts +9 -0
- package/{Presentation/components/SearchInput → presentation/schedulerList/components}/SearchInput.js +8 -8
- package/presentation/schedulerList/components/SearchInput.js.map +1 -0
- package/presentation/schedulerList/feature.d.ts +3 -0
- package/presentation/schedulerList/feature.js +17 -0
- package/presentation/schedulerList/feature.js.map +1 -0
- package/presentation/schedulerList/useSchedulerListPresenter.d.ts +1 -0
- package/presentation/schedulerList/useSchedulerListPresenter.js +6 -0
- package/presentation/schedulerList/useSchedulerListPresenter.js.map +1 -0
- package/types.d.ts +0 -7
- package/types.js +1 -9
- package/types.js.map +1 -1
- package/Domain/Models/SchedulerItem/SchedulerItem.d.ts +0 -13
- package/Domain/Models/SchedulerItem/SchedulerItem.js +0 -18
- package/Domain/Models/SchedulerItem/SchedulerItem.js.map +0 -1
- package/Domain/Models/SchedulerItem/index.d.ts +0 -1
- package/Domain/Models/SchedulerItem/index.js +0 -1
- package/Domain/Models/index.d.ts +0 -1
- package/Domain/Models/index.js +0 -1
- package/Domain/Repositories/SchedulerItems/ISchedulerItemsRepository.d.ts +0 -14
- package/Domain/Repositories/SchedulerItems/ISchedulerItemsRepository.js +0 -0
- package/Domain/Repositories/SchedulerItems/SchedulerItemsRepository.d.ts +0 -36
- package/Domain/Repositories/SchedulerItems/SchedulerItemsRepository.js +0 -119
- package/Domain/Repositories/SchedulerItems/SchedulerItemsRepository.js.map +0 -1
- package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryFactory.d.ts +0 -19
- package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryFactory.js +0 -18
- package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryFactory.js.map +0 -1
- package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryWithLoading.d.ts +0 -17
- package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryWithLoading.js +0 -39
- package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryWithLoading.js.map +0 -1
- package/Domain/Repositories/SchedulerItems/index.d.ts +0 -4
- package/Domain/Repositories/SchedulerItems/index.js +0 -3
- package/Domain/Repositories/Search/ISearchRepository.d.ts +0 -4
- package/Domain/Repositories/Search/ISearchRepository.js +0 -0
- package/Domain/Repositories/Search/SearchRepository.d.ts +0 -7
- package/Domain/Repositories/Search/SearchRepository.js +0 -16
- package/Domain/Repositories/Search/SearchRepository.js.map +0 -1
- package/Domain/Repositories/Search/SearchRepositoryFactory.d.ts +0 -7
- package/Domain/Repositories/Search/SearchRepositoryFactory.js +0 -18
- package/Domain/Repositories/Search/SearchRepositoryFactory.js.map +0 -1
- package/Domain/Repositories/Search/index.d.ts +0 -3
- package/Domain/Repositories/Search/index.js +0 -2
- package/Domain/Repositories/SelectedItems/ISelectedItemsRepository.d.ts +0 -8
- package/Domain/Repositories/SelectedItems/ISelectedItemsRepository.js +0 -0
- package/Domain/Repositories/SelectedItems/SelectedItemsRepository.d.ts +0 -12
- package/Domain/Repositories/SelectedItems/SelectedItemsRepository.js +0 -28
- package/Domain/Repositories/SelectedItems/SelectedItemsRepository.js.map +0 -1
- package/Domain/Repositories/SelectedItems/SelectedItemsRepositoryFactory.d.ts +0 -7
- package/Domain/Repositories/SelectedItems/SelectedItemsRepositoryFactory.js +0 -18
- package/Domain/Repositories/SelectedItems/SelectedItemsRepositoryFactory.js.map +0 -1
- package/Domain/Repositories/SelectedItems/index.d.ts +0 -3
- package/Domain/Repositories/SelectedItems/index.js +0 -2
- package/Domain/Repositories/Sorting/SortingRepositoryWithDefaults.d.ts +0 -8
- package/Domain/Repositories/Sorting/SortingRepositoryWithDefaults.js +0 -21
- package/Domain/Repositories/Sorting/SortingRepositoryWithDefaults.js.map +0 -1
- package/Domain/Repositories/Sorting/index.d.ts +0 -1
- package/Domain/Repositories/Sorting/index.js +0 -1
- package/Domain/Repositories/index.d.ts +0 -4
- package/Domain/Repositories/index.js +0 -4
- package/Domain/index.d.ts +0 -2
- package/Domain/index.js +0 -2
- package/Gateways/SchedulerCancelGraphQLGateway.d.ts +0 -7
- package/Gateways/SchedulerCancelGraphQLGateway.js +0 -42
- package/Gateways/SchedulerCancelGraphQLGateway.js.map +0 -1
- package/Gateways/SchedulerGetGraphQLGateway.d.ts +0 -21
- package/Gateways/SchedulerGetGraphQLGateway.js +0 -68
- package/Gateways/SchedulerGetGraphQLGateway.js.map +0 -1
- package/Gateways/SchedulerListGraphQLGateway.d.ts +0 -7
- package/Gateways/SchedulerListGraphQLGateway.js +0 -86
- package/Gateways/SchedulerListGraphQLGateway.js.map +0 -1
- package/Gateways/SchedulerPublishGraphQLGateway.d.ts +0 -7
- package/Gateways/SchedulerPublishGraphQLGateway.js +0 -59
- package/Gateways/SchedulerPublishGraphQLGateway.js.map +0 -1
- package/Gateways/SchedulerUnpublishGraphQLGateway.d.ts +0 -23
- package/Gateways/SchedulerUnpublishGraphQLGateway.js +0 -63
- package/Gateways/SchedulerUnpublishGraphQLGateway.js.map +0 -1
- package/Gateways/abstractions/CancelScheduledActionGateway.d.ts +0 -7
- package/Gateways/abstractions/CancelScheduledActionGateway.js +0 -0
- package/Gateways/abstractions/GetScheduledActionGateway.js +0 -0
- package/Gateways/abstractions/ListScheduledActionsGateway.js +0 -0
- package/Gateways/abstractions/SchedulePublishActionGateway.js +0 -0
- package/Gateways/abstractions/ScheduleUnpublishActionGateway.js +0 -0
- package/Gateways/graphql/fields.d.ts +0 -1
- package/Gateways/graphql/fields.js +0 -17
- package/Gateways/graphql/fields.js.map +0 -1
- package/Gateways/index.d.ts +0 -5
- package/Gateways/index.js +0 -0
- package/Gateways/schema/schedulerEntry.js.map +0 -1
- package/Presentation/Scheduler/Scheduler.d.ts +0 -17
- package/Presentation/Scheduler/Scheduler.js +0 -78
- package/Presentation/Scheduler/Scheduler.js.map +0 -1
- package/Presentation/Scheduler/SchedulerControllers.d.ts +0 -30
- package/Presentation/Scheduler/SchedulerControllers.js +0 -54
- package/Presentation/Scheduler/SchedulerControllers.js.map +0 -1
- package/Presentation/Scheduler/SchedulerPresenter.d.ts +0 -32
- package/Presentation/Scheduler/SchedulerPresenter.js +0 -45
- package/Presentation/Scheduler/SchedulerPresenter.js.map +0 -1
- package/Presentation/Scheduler/controllers/CancelItem/CancelItemController.d.ts +0 -7
- package/Presentation/Scheduler/controllers/CancelItem/CancelItemController.js +0 -12
- package/Presentation/Scheduler/controllers/CancelItem/CancelItemController.js.map +0 -1
- package/Presentation/Scheduler/controllers/CancelItem/ICancelItemController.d.ts +0 -3
- package/Presentation/Scheduler/controllers/CancelItem/ICancelItemController.js +0 -0
- package/Presentation/Scheduler/controllers/CancelItem/index.d.ts +0 -2
- package/Presentation/Scheduler/controllers/CancelItem/index.js +0 -1
- package/Presentation/Scheduler/controllers/GetItem/GetItemController.d.ts +0 -8
- package/Presentation/Scheduler/controllers/GetItem/GetItemController.js +0 -12
- package/Presentation/Scheduler/controllers/GetItem/GetItemController.js.map +0 -1
- package/Presentation/Scheduler/controllers/GetItem/IGetItemController.d.ts +0 -4
- package/Presentation/Scheduler/controllers/GetItem/IGetItemController.js +0 -0
- package/Presentation/Scheduler/controllers/GetItem/index.d.ts +0 -2
- package/Presentation/Scheduler/controllers/GetItem/index.js +0 -1
- package/Presentation/Scheduler/controllers/ListItems/IListItemsController.d.ts +0 -4
- package/Presentation/Scheduler/controllers/ListItems/IListItemsController.js +0 -0
- package/Presentation/Scheduler/controllers/ListItems/ListItemsController.d.ts +0 -8
- package/Presentation/Scheduler/controllers/ListItems/ListItemsController.js +0 -12
- package/Presentation/Scheduler/controllers/ListItems/ListItemsController.js.map +0 -1
- package/Presentation/Scheduler/controllers/ListItems/index.d.ts +0 -2
- package/Presentation/Scheduler/controllers/ListItems/index.js +0 -1
- package/Presentation/Scheduler/controllers/ListMoreItems/IListMoreItemsController.d.ts +0 -3
- package/Presentation/Scheduler/controllers/ListMoreItems/IListMoreItemsController.js +0 -0
- package/Presentation/Scheduler/controllers/ListMoreItems/ListMoreItemsController.d.ts +0 -7
- package/Presentation/Scheduler/controllers/ListMoreItems/ListMoreItemsController.js +0 -12
- package/Presentation/Scheduler/controllers/ListMoreItems/ListMoreItemsController.js.map +0 -1
- package/Presentation/Scheduler/controllers/ListMoreItems/index.d.ts +0 -2
- package/Presentation/Scheduler/controllers/ListMoreItems/index.js +0 -1
- package/Presentation/Scheduler/controllers/PublishItem/IPublishItemController.d.ts +0 -3
- package/Presentation/Scheduler/controllers/PublishItem/IPublishItemController.js +0 -0
- package/Presentation/Scheduler/controllers/PublishItem/PublishItemController.d.ts +0 -7
- package/Presentation/Scheduler/controllers/PublishItem/PublishItemController.js +0 -12
- package/Presentation/Scheduler/controllers/PublishItem/PublishItemController.js.map +0 -1
- package/Presentation/Scheduler/controllers/PublishItem/index.d.ts +0 -2
- package/Presentation/Scheduler/controllers/PublishItem/index.js +0 -1
- package/Presentation/Scheduler/controllers/SearchItems/ISearchItemsController.d.ts +0 -3
- package/Presentation/Scheduler/controllers/SearchItems/ISearchItemsController.js +0 -0
- package/Presentation/Scheduler/controllers/SearchItems/SearchItemsController.d.ts +0 -8
- package/Presentation/Scheduler/controllers/SearchItems/SearchItemsController.js +0 -15
- package/Presentation/Scheduler/controllers/SearchItems/SearchItemsController.js.map +0 -1
- package/Presentation/Scheduler/controllers/SearchItems/index.d.ts +0 -2
- package/Presentation/Scheduler/controllers/SearchItems/index.js +0 -1
- package/Presentation/Scheduler/controllers/SelectAllItems/ISelectAllItemsController.d.ts +0 -3
- package/Presentation/Scheduler/controllers/SelectAllItems/ISelectAllItemsController.js +0 -0
- package/Presentation/Scheduler/controllers/SelectAllItems/SelectAllItemsController.d.ts +0 -7
- package/Presentation/Scheduler/controllers/SelectAllItems/SelectAllItemsController.js +0 -12
- package/Presentation/Scheduler/controllers/SelectAllItems/SelectAllItemsController.js.map +0 -1
- package/Presentation/Scheduler/controllers/SelectAllItems/index.d.ts +0 -2
- package/Presentation/Scheduler/controllers/SelectAllItems/index.js +0 -1
- package/Presentation/Scheduler/controllers/SelectItems/ISelectItemsController.d.ts +0 -4
- package/Presentation/Scheduler/controllers/SelectItems/ISelectItemsController.js +0 -0
- package/Presentation/Scheduler/controllers/SelectItems/SelectItemsController.d.ts +0 -8
- package/Presentation/Scheduler/controllers/SelectItems/SelectItemsController.js +0 -14
- package/Presentation/Scheduler/controllers/SelectItems/SelectItemsController.js.map +0 -1
- package/Presentation/Scheduler/controllers/SelectItems/index.d.ts +0 -2
- package/Presentation/Scheduler/controllers/SelectItems/index.js +0 -1
- package/Presentation/Scheduler/controllers/SortItems/ISortItemsController.d.ts +0 -4
- package/Presentation/Scheduler/controllers/SortItems/ISortItemsController.js +0 -0
- package/Presentation/Scheduler/controllers/SortItems/SortItemsController.d.ts +0 -9
- package/Presentation/Scheduler/controllers/SortItems/SortItemsController.js +0 -18
- package/Presentation/Scheduler/controllers/SortItems/SortItemsController.js.map +0 -1
- package/Presentation/Scheduler/controllers/SortItems/index.d.ts +0 -2
- package/Presentation/Scheduler/controllers/SortItems/index.js +0 -1
- package/Presentation/Scheduler/controllers/UnpublishItem/IUnpublishItemController.d.ts +0 -3
- package/Presentation/Scheduler/controllers/UnpublishItem/IUnpublishItemController.js +0 -0
- package/Presentation/Scheduler/controllers/UnpublishItem/UnpublishItemController.d.ts +0 -7
- package/Presentation/Scheduler/controllers/UnpublishItem/UnpublishItemController.js +0 -12
- package/Presentation/Scheduler/controllers/UnpublishItem/UnpublishItemController.js.map +0 -1
- package/Presentation/Scheduler/controllers/UnpublishItem/index.d.ts +0 -2
- package/Presentation/Scheduler/controllers/UnpublishItem/index.js +0 -1
- package/Presentation/Scheduler/controllers/UnselectAllItems/IUnselectAllItemsController.d.ts +0 -3
- package/Presentation/Scheduler/controllers/UnselectAllItems/IUnselectAllItemsController.js +0 -0
- package/Presentation/Scheduler/controllers/UnselectAllItems/UnselectAllItemsController.d.ts +0 -7
- package/Presentation/Scheduler/controllers/UnselectAllItems/UnselectAllItemsController.js +0 -12
- package/Presentation/Scheduler/controllers/UnselectAllItems/UnselectAllItemsController.js.map +0 -1
- package/Presentation/Scheduler/controllers/UnselectAllItems/index.d.ts +0 -2
- package/Presentation/Scheduler/controllers/UnselectAllItems/index.js +0 -1
- package/Presentation/Scheduler/controllers/index.d.ts +0 -11
- package/Presentation/Scheduler/controllers/index.js +0 -11
- package/Presentation/Scheduler/index.d.ts +0 -1
- package/Presentation/Scheduler/index.js +0 -1
- package/Presentation/SchedulerRenderer/SchedulerRenderer.d.ts +0 -6
- package/Presentation/SchedulerRenderer/SchedulerRenderer.js +0 -16
- package/Presentation/SchedulerRenderer/SchedulerRenderer.js.map +0 -1
- package/Presentation/SchedulerRenderer/index.d.ts +0 -1
- package/Presentation/SchedulerRenderer/index.js +0 -1
- package/Presentation/abstractions/ISchedulerControllers.d.ts +0 -14
- package/Presentation/abstractions/ISchedulerControllers.js +0 -0
- package/Presentation/abstractions/ISchedulerPresenter.d.ts +0 -20
- package/Presentation/abstractions/ISchedulerPresenter.js +0 -0
- package/Presentation/abstractions/index.d.ts +0 -2
- package/Presentation/abstractions/index.js +0 -0
- package/Presentation/components/Actions/CancelItem/CancelItem.js.map +0 -1
- package/Presentation/components/BottomInfoBar/BottomInfoBar.d.ts +0 -2
- package/Presentation/components/BottomInfoBar/BottomInfoBar.js +0 -19
- package/Presentation/components/BottomInfoBar/BottomInfoBar.js.map +0 -1
- package/Presentation/components/BottomInfoBar/index.d.ts +0 -1
- package/Presentation/components/BottomInfoBar/index.js +0 -1
- package/Presentation/components/Cells/CellScheduledOn/CellScheduledOn.js.map +0 -1
- package/Presentation/components/Empty/Empty.d.ts +0 -2
- package/Presentation/components/Empty/Empty.js.map +0 -1
- package/Presentation/components/Empty/index.d.ts +0 -1
- package/Presentation/components/Empty/index.js +0 -1
- package/Presentation/components/ScheduleDialog/IScheduleDialogPresenter.js +0 -0
- package/Presentation/components/ScheduleDialog/ScheduleDialogPresenter.d.ts +0 -22
- package/Presentation/components/ScheduleDialog/ScheduleDialogPresenter.js.map +0 -1
- package/Presentation/components/ScheduleDialog/index.d.ts +0 -1
- package/Presentation/components/ScheduleDialog/index.js +0 -1
- package/Presentation/components/ScheduleDialog/types.d.ts +0 -15
- package/Presentation/components/ScheduleDialog/types.js +0 -0
- package/Presentation/components/ScheduleDialog/useScheduleDialog.js +0 -192
- package/Presentation/components/ScheduleDialog/useScheduleDialog.js.map +0 -1
- package/Presentation/components/SchedulerOverlay/SchedulerOverlay.d.ts +0 -7
- package/Presentation/components/SchedulerOverlay/SchedulerOverlay.js +0 -30
- package/Presentation/components/SchedulerOverlay/SchedulerOverlay.js.map +0 -1
- package/Presentation/components/SchedulerOverlay/index.d.ts +0 -1
- package/Presentation/components/SchedulerOverlay/index.js +0 -1
- package/Presentation/components/SearchInput/SearchInput.d.ts +0 -2
- package/Presentation/components/SearchInput/SearchInput.js.map +0 -1
- package/Presentation/components/SearchInput/index.d.ts +0 -1
- package/Presentation/components/SearchInput/index.js +0 -1
- package/Presentation/components/Table/Table.d.ts +0 -2
- package/Presentation/components/Table/Table.js +0 -29
- package/Presentation/components/Table/Table.js.map +0 -1
- package/Presentation/components/Table/index.d.ts +0 -1
- package/Presentation/components/Table/index.js +0 -1
- package/Presentation/configs/list/Browser/Table/index.d.ts +0 -18
- package/Presentation/configs/list/Browser/index.d.ts +0 -23
- package/Presentation/hooks/useCancelSchedulerItem.js.map +0 -1
- package/Presentation/hooks/useScheduler.d.ts +0 -28
- package/Presentation/hooks/useScheduler.js +0 -68
- package/Presentation/hooks/useScheduler.js.map +0 -1
- package/Presentation/index.js +0 -49
- package/Presentation/index.js.map +0 -1
- package/UseCases/CancelItem/CancelItemUseCase.d.ts +0 -7
- package/UseCases/CancelItem/CancelItemUseCase.js +0 -13
- package/UseCases/CancelItem/CancelItemUseCase.js.map +0 -1
- package/UseCases/CancelItem/ICancelItemUseCase.d.ts +0 -3
- package/UseCases/CancelItem/ICancelItemUseCase.js +0 -0
- package/UseCases/CancelItem/index.d.ts +0 -2
- package/UseCases/CancelItem/index.js +0 -1
- package/UseCases/GetItem/GetItemUseCase.d.ts +0 -8
- package/UseCases/GetItem/GetItemUseCase.js +0 -13
- package/UseCases/GetItem/GetItemUseCase.js.map +0 -1
- package/UseCases/GetItem/IGetItemUseCase.d.ts +0 -4
- package/UseCases/GetItem/IGetItemUseCase.js +0 -0
- package/UseCases/GetItem/index.d.ts +0 -2
- package/UseCases/GetItem/index.js +0 -1
- package/UseCases/GetScheduledItem/GetScheduledItemUseCase.d.ts +0 -7
- package/UseCases/GetScheduledItem/GetScheduledItemUseCase.js +0 -14
- package/UseCases/GetScheduledItem/GetScheduledItemUseCase.js.map +0 -1
- package/UseCases/GetScheduledItem/IGetScheduledItemUseCase.d.ts +0 -4
- package/UseCases/GetScheduledItem/IGetScheduledItemUseCase.js +0 -0
- package/UseCases/GetScheduledItem/index.d.ts +0 -2
- package/UseCases/GetScheduledItem/index.js +0 -1
- package/UseCases/ListItems/IListItemsUseCase.d.ts +0 -4
- package/UseCases/ListItems/IListItemsUseCase.js +0 -0
- package/UseCases/ListItems/ListItemsUseCase.d.ts +0 -8
- package/UseCases/ListItems/ListItemsUseCase.js +0 -13
- package/UseCases/ListItems/ListItemsUseCase.js.map +0 -1
- package/UseCases/ListItems/ListItemsUseCaseWithSearch.d.ts +0 -9
- package/UseCases/ListItems/ListItemsUseCaseWithSearch.js +0 -23
- package/UseCases/ListItems/ListItemsUseCaseWithSearch.js.map +0 -1
- package/UseCases/ListItems/ListItemsUseCaseWithSorting.d.ts +0 -9
- package/UseCases/ListItems/ListItemsUseCaseWithSorting.js +0 -21
- package/UseCases/ListItems/ListItemsUseCaseWithSorting.js.map +0 -1
- package/UseCases/ListItems/index.d.ts +0 -4
- package/UseCases/ListItems/index.js +0 -3
- package/UseCases/ListMoreItems/IListMoreItemsUseCase.d.ts +0 -3
- package/UseCases/ListMoreItems/IListMoreItemsUseCase.js +0 -0
- package/UseCases/ListMoreItems/ListMoreItemsUseCase.d.ts +0 -7
- package/UseCases/ListMoreItems/ListMoreItemsUseCase.js +0 -13
- package/UseCases/ListMoreItems/ListMoreItemsUseCase.js.map +0 -1
- package/UseCases/ListMoreItems/index.d.ts +0 -2
- package/UseCases/ListMoreItems/index.js +0 -1
- package/UseCases/PublishItem/IPublishItemUseCase.d.ts +0 -3
- package/UseCases/PublishItem/IPublishItemUseCase.js +0 -0
- package/UseCases/PublishItem/PublishItemUseCase.d.ts +0 -7
- package/UseCases/PublishItem/PublishItemUseCase.js +0 -13
- package/UseCases/PublishItem/PublishItemUseCase.js.map +0 -1
- package/UseCases/PublishItem/index.d.ts +0 -2
- package/UseCases/PublishItem/index.js +0 -1
- package/UseCases/SearchItems/ISearchItemsUseCase.d.ts +0 -3
- package/UseCases/SearchItems/ISearchItemsUseCase.js +0 -0
- package/UseCases/SearchItems/SearchItemsUseCase.d.ts +0 -7
- package/UseCases/SearchItems/SearchItemsUseCase.js +0 -13
- package/UseCases/SearchItems/SearchItemsUseCase.js.map +0 -1
- package/UseCases/SearchItems/index.d.ts +0 -2
- package/UseCases/SearchItems/index.js +0 -1
- package/UseCases/SelectAllItems/ISelectAllItemsUseCase.d.ts +0 -3
- package/UseCases/SelectAllItems/ISelectAllItemsUseCase.js +0 -0
- package/UseCases/SelectAllItems/SelectAllItemsUseCase.d.ts +0 -7
- package/UseCases/SelectAllItems/SelectAllItemsUseCase.js +0 -13
- package/UseCases/SelectAllItems/SelectAllItemsUseCase.js.map +0 -1
- package/UseCases/SelectAllItems/index.d.ts +0 -2
- package/UseCases/SelectAllItems/index.js +0 -1
- package/UseCases/SelectItems/ISelectItemsUseCase.d.ts +0 -4
- package/UseCases/SelectItems/ISelectItemsUseCase.js +0 -0
- package/UseCases/SelectItems/SelectItemsUseCase.d.ts +0 -7
- package/UseCases/SelectItems/SelectItemsUseCase.js +0 -13
- package/UseCases/SelectItems/SelectItemsUseCase.js.map +0 -1
- package/UseCases/SelectItems/index.d.ts +0 -2
- package/UseCases/SelectItems/index.js +0 -1
- package/UseCases/SortItems/ISortItemsUseCase.d.ts +0 -4
- package/UseCases/SortItems/ISortItemsUseCase.js +0 -0
- package/UseCases/SortItems/SortItemsUseCase.d.ts +0 -7
- package/UseCases/SortItems/SortItemsUseCase.js +0 -13
- package/UseCases/SortItems/SortItemsUseCase.js.map +0 -1
- package/UseCases/SortItems/index.d.ts +0 -2
- package/UseCases/SortItems/index.js +0 -1
- package/UseCases/UnSelectAllItems/IUnselectAllItemsUseCase.d.ts +0 -3
- package/UseCases/UnSelectAllItems/IUnselectAllItemsUseCase.js +0 -0
- package/UseCases/UnSelectAllItems/UnselectAllItemsUseCase.d.ts +0 -7
- package/UseCases/UnSelectAllItems/UnselectAllItemsUseCase.js +0 -13
- package/UseCases/UnSelectAllItems/UnselectAllItemsUseCase.js.map +0 -1
- package/UseCases/UnSelectAllItems/index.d.ts +0 -2
- package/UseCases/UnSelectAllItems/index.js +0 -1
- package/UseCases/UnpublishItem/IUnpublishItemUseCase.d.ts +0 -3
- package/UseCases/UnpublishItem/IUnpublishItemUseCase.js +0 -0
- package/UseCases/UnpublishItem/UnpublishItemUseCase.d.ts +0 -7
- package/UseCases/UnpublishItem/UnpublishItemUseCase.js +0 -13
- package/UseCases/UnpublishItem/UnpublishItemUseCase.js.map +0 -1
- package/UseCases/UnpublishItem/index.d.ts +0 -2
- package/UseCases/UnpublishItem/index.js +0 -1
- package/UseCases/index.d.ts +0 -11
- package/UseCases/index.js +0 -11
- /package/{Presentation → presentation}/SchedulerConfigs/SchedulerConfigs.d.ts +0 -0
- /package/{Presentation → presentation}/SchedulerConfigs/SchedulerConfigs.js +0 -0
- /package/{Presentation → presentation}/SchedulerConfigs/index.d.ts +0 -0
- /package/{Presentation → presentation}/SchedulerConfigs/index.js +0 -0
- /package/{Presentation → presentation}/components/Actions/CancelItem/CancelItem.d.ts +0 -0
- /package/{Presentation → presentation}/components/Actions/CancelItem/index.d.ts +0 -0
- /package/{Presentation → presentation}/components/Actions/CancelItem/index.js +0 -0
- /package/{Presentation → presentation}/components/Actions/index.d.ts +0 -0
- /package/{Presentation → presentation}/components/Actions/index.js +0 -0
- /package/{Presentation → presentation}/components/BottomInfoBar/BottomInfoBar.styled.d.ts +0 -0
- /package/{Presentation → presentation}/components/BottomInfoBar/BottomInfoBar.styled.js +0 -0
- /package/{Presentation → presentation}/components/BottomInfoBar/ListMeta.d.ts +0 -0
- /package/{Presentation → presentation}/components/BottomInfoBar/ListMeta.js +0 -0
- /package/{Presentation → presentation}/components/BottomInfoBar/ListStatus.d.ts +0 -0
- /package/{Presentation → presentation}/components/BottomInfoBar/ListStatus.js +0 -0
- /package/{Presentation → presentation}/components/Cells/CellActions/CellActions.d.ts +0 -0
- /package/{Presentation → presentation}/components/Cells/CellActions/CellActions.js +0 -0
- /package/{Presentation → presentation}/components/Cells/CellActions/index.d.ts +0 -0
- /package/{Presentation → presentation}/components/Cells/CellActions/index.js +0 -0
- /package/{Presentation → presentation}/components/Cells/CellRevision/CellRevision.d.ts +0 -0
- /package/{Presentation → presentation}/components/Cells/CellRevision/CellRevision.js +0 -0
- /package/{Presentation → presentation}/components/Cells/CellRevision/CellRevision.styled.d.ts +0 -0
- /package/{Presentation → presentation}/components/Cells/CellRevision/CellRevision.styled.js +0 -0
- /package/{Presentation → presentation}/components/Cells/CellRevision/index.d.ts +0 -0
- /package/{Presentation → presentation}/components/Cells/CellRevision/index.js +0 -0
- /package/{Presentation → presentation}/components/Cells/CellScheduledBy/CellScheduledBy.d.ts +0 -0
- /package/{Presentation → presentation}/components/Cells/CellScheduledBy/CellScheduledBy.js +0 -0
- /package/{Presentation → presentation}/components/Cells/CellScheduledBy/index.d.ts +0 -0
- /package/{Presentation → presentation}/components/Cells/CellScheduledBy/index.js +0 -0
- /package/{Presentation → presentation}/components/Cells/CellScheduledOn/CellScheduledOn.d.ts +0 -0
- /package/{Presentation → presentation}/components/Cells/CellScheduledOn/index.d.ts +0 -0
- /package/{Presentation → presentation}/components/Cells/CellScheduledOn/index.js +0 -0
- /package/{Presentation → presentation}/components/Cells/CellTitle/CellTitle.d.ts +0 -0
- /package/{Presentation → presentation}/components/Cells/CellTitle/CellTitle.js +0 -0
- /package/{Presentation → presentation}/components/Cells/CellTitle/CellTitle.styled.d.ts +0 -0
- /package/{Presentation → presentation}/components/Cells/CellTitle/CellTitle.styled.js +0 -0
- /package/{Presentation → presentation}/components/Cells/CellTitle/index.d.ts +0 -0
- /package/{Presentation → presentation}/components/Cells/CellTitle/index.js +0 -0
- /package/{Presentation → presentation}/components/Cells/CellType/CellActionType.d.ts +0 -0
- /package/{Presentation → presentation}/components/Cells/CellType/CellActionType.js +0 -0
- /package/{Presentation → presentation}/components/Cells/CellType/CellActionType.styled.d.ts +0 -0
- /package/{Presentation → presentation}/components/Cells/CellType/CellActionType.styled.js +0 -0
- /package/{Presentation → presentation}/components/Cells/CellType/index.d.ts +0 -0
- /package/{Presentation → presentation}/components/Cells/CellType/index.js +0 -0
- /package/{Presentation → presentation}/components/Cells/index.d.ts +0 -0
- /package/{Presentation → presentation}/components/Cells/index.js +0 -0
- /package/{Presentation → presentation}/components/Empty/Empty.styled.d.ts +0 -0
- /package/{Presentation → presentation}/components/Empty/Empty.styled.js +0 -0
- /package/{Presentation → presentation}/components/Title/Title.d.ts +0 -0
- /package/{Presentation → presentation}/components/Title/Title.js +0 -0
- /package/{Presentation → presentation}/components/Title/Title.styled.d.ts +0 -0
- /package/{Presentation → presentation}/components/Title/Title.styled.js +0 -0
- /package/{Presentation → presentation}/components/Title/index.d.ts +0 -0
- /package/{Presentation → presentation}/components/Title/index.js +0 -0
- /package/{Presentation → presentation}/configs/index.d.ts +0 -0
- /package/{Presentation → presentation}/configs/index.js +0 -0
- /package/{Presentation → presentation}/configs/list/Browser/EntryAction.js +0 -0
- /package/{Presentation → presentation}/configs/list/Browser/Table/Column.js +0 -0
- /package/{Presentation → presentation}/configs/list/Browser/Table/Sorting.d.ts +0 -0
- /package/{Presentation → presentation}/configs/list/Browser/Table/Sorting.js +0 -0
- /package/{Presentation → presentation}/configs/list/Browser/Table/index.js +0 -0
- /package/{Presentation → presentation}/configs/list/Browser/index.js +0 -0
- /package/{Presentation → presentation}/configs/list/SchedulerListConfig.js +0 -0
- /package/{Presentation → presentation}/configs/list/index.d.ts +0 -0
- /package/{Presentation → presentation}/configs/list/index.js +0 -0
- /package/{Presentation → presentation}/hooks/useCancelSchedulerItem.d.ts +0 -0
- /package/{Presentation → presentation}/hooks/useSchedulerItem.d.ts +0 -0
- /package/{Presentation → presentation}/hooks/useSchedulerItem.js +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { MainGraphQLClient } from "@webiny/app/features/mainGraphQLClient/abstractions.js";
|
|
2
|
+
import { ScheduleUnpublishActionGateway as GatewayAbstraction, type IScheduleUnpublishActionGatewayExecuteParams, type IScheduleUnpublishActionGatewayExecuteResponse } from "./abstractions.js";
|
|
3
|
+
declare class ScheduleUnpublishActionGatewayImpl implements GatewayAbstraction.Interface {
|
|
4
|
+
private client;
|
|
5
|
+
constructor(client: MainGraphQLClient.Interface);
|
|
6
|
+
execute(params: IScheduleUnpublishActionGatewayExecuteParams): Promise<IScheduleUnpublishActionGatewayExecuteResponse>;
|
|
7
|
+
}
|
|
8
|
+
export declare const ScheduleUnpublishActionGateway: typeof ScheduleUnpublishActionGatewayImpl & {
|
|
9
|
+
__abstraction: import("@webiny/di").Abstraction<import("./abstractions.js").IScheduleUnpublishActionGateway>;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { MainGraphQLClient } from "@webiny/app/features/mainGraphQLClient/abstractions.js";
|
|
2
|
+
import zod from "zod";
|
|
3
|
+
import { createZodError } from "@webiny/utils/createZodError.js";
|
|
4
|
+
import { schedulerEntrySchema } from "../../domain/schedulerEntry.js";
|
|
5
|
+
import { ERROR_FIELDS, SCHEDULER_ENTRY_FIELDS } from "../graphqlFields.js";
|
|
6
|
+
import { ScheduleUnpublishActionGateway } from "./abstractions.js";
|
|
7
|
+
import { ScheduleActionType } from "../../types.js";
|
|
8
|
+
const SCHEDULE_UNPUBLISH_ACTION_MUTATION = `
|
|
9
|
+
mutation ScheduleUnpublishAction(
|
|
10
|
+
$namespace: String!
|
|
11
|
+
$targetId: ID!
|
|
12
|
+
$scheduleFor: DateTime
|
|
13
|
+
$actionType: ScheduleRecordType!
|
|
14
|
+
) {
|
|
15
|
+
scheduler {
|
|
16
|
+
scheduleAction(
|
|
17
|
+
namespace: $namespace
|
|
18
|
+
targetId: $targetId
|
|
19
|
+
scheduleFor: $scheduleFor
|
|
20
|
+
actionType: $actionType
|
|
21
|
+
) {
|
|
22
|
+
data {
|
|
23
|
+
${SCHEDULER_ENTRY_FIELDS}
|
|
24
|
+
}
|
|
25
|
+
error {
|
|
26
|
+
${ERROR_FIELDS}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
`;
|
|
32
|
+
const schema = zod.object({
|
|
33
|
+
data: schedulerEntrySchema
|
|
34
|
+
});
|
|
35
|
+
class ScheduleUnpublishActionGatewayImpl {
|
|
36
|
+
constructor(client){
|
|
37
|
+
this.client = client;
|
|
38
|
+
}
|
|
39
|
+
async execute(params) {
|
|
40
|
+
const response = await this.client.execute({
|
|
41
|
+
query: SCHEDULE_UNPUBLISH_ACTION_MUTATION,
|
|
42
|
+
variables: {
|
|
43
|
+
namespace: params.namespace,
|
|
44
|
+
targetId: params.targetId,
|
|
45
|
+
scheduleFor: params.scheduleOn,
|
|
46
|
+
actionType: ScheduleActionType.unpublish
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
const result = response?.scheduler?.scheduleAction;
|
|
50
|
+
if (!result) throw new Error("Network error while creating a schedule.");
|
|
51
|
+
if (!result.data) throw new Error(result.error?.message || "Could execute schedule unpublish action.");
|
|
52
|
+
const validated = await schema.safeParseAsync(result);
|
|
53
|
+
if (!validated.success) {
|
|
54
|
+
const err = createZodError(validated.error);
|
|
55
|
+
console.error(err);
|
|
56
|
+
throw err;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
item: validated.data.data
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
const ScheduleUnpublishActionGateway_ScheduleUnpublishActionGateway = ScheduleUnpublishActionGateway.createImplementation({
|
|
64
|
+
implementation: ScheduleUnpublishActionGatewayImpl,
|
|
65
|
+
dependencies: [
|
|
66
|
+
MainGraphQLClient
|
|
67
|
+
]
|
|
68
|
+
});
|
|
69
|
+
export { ScheduleUnpublishActionGateway_ScheduleUnpublishActionGateway as ScheduleUnpublishActionGateway };
|
|
70
|
+
|
|
71
|
+
//# sourceMappingURL=ScheduleUnpublishActionGateway.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"features/scheduleUnpublishAction/ScheduleUnpublishActionGateway.js","sources":["../../../src/features/scheduleUnpublishAction/ScheduleUnpublishActionGateway.ts"],"sourcesContent":["import { MainGraphQLClient } from \"@webiny/app/features/mainGraphQLClient/abstractions.js\";\nimport zod from \"zod\";\nimport { createZodError } from \"@webiny/utils/createZodError.js\";\nimport { schedulerEntrySchema } from \"~/domain/schedulerEntry.js\";\nimport { SCHEDULER_ENTRY_FIELDS, ERROR_FIELDS } from \"~/features/graphqlFields.js\";\nimport {\n ScheduleUnpublishActionGateway as GatewayAbstraction,\n type IScheduleUnpublishActionGatewayExecuteParams,\n type IScheduleUnpublishActionGatewayExecuteResponse\n} from \"./abstractions.js\";\nimport { type SchedulerEntry, type SchedulerErrorResponse, ScheduleActionType } from \"~/types.js\";\n\nconst SCHEDULE_UNPUBLISH_ACTION_MUTATION = /* GraphQL */ `\n mutation ScheduleUnpublishAction(\n $namespace: String!\n $targetId: ID!\n $scheduleFor: DateTime\n $actionType: ScheduleRecordType!\n ) {\n scheduler {\n scheduleAction(\n namespace: $namespace\n targetId: $targetId\n scheduleFor: $scheduleFor\n actionType: $actionType\n ) {\n data {\n ${SCHEDULER_ENTRY_FIELDS}\n }\n error {\n ${ERROR_FIELDS}\n }\n }\n }\n }\n`;\n\ninterface ScheduleUnpublishActionResponse {\n scheduler: {\n scheduleAction: {\n data: SchedulerEntry | null;\n error: SchedulerErrorResponse | null;\n };\n };\n}\n\nconst schema = zod.object({\n data: schedulerEntrySchema\n});\n\nclass ScheduleUnpublishActionGatewayImpl implements GatewayAbstraction.Interface {\n constructor(private client: MainGraphQLClient.Interface) {}\n\n async execute(\n params: IScheduleUnpublishActionGatewayExecuteParams\n ): Promise<IScheduleUnpublishActionGatewayExecuteResponse> {\n const response = await this.client.execute<ScheduleUnpublishActionResponse>({\n query: SCHEDULE_UNPUBLISH_ACTION_MUTATION,\n variables: {\n namespace: params.namespace,\n targetId: params.targetId,\n scheduleFor: params.scheduleOn,\n actionType: ScheduleActionType.unpublish\n }\n });\n\n const result = response?.scheduler?.scheduleAction;\n if (!result) {\n throw new Error(\"Network error while creating a schedule.\");\n }\n\n if (!result.data) {\n throw new Error(result.error?.message || \"Could execute schedule unpublish action.\");\n }\n\n const validated = await schema.safeParseAsync(result);\n if (!validated.success) {\n const err = createZodError(validated.error);\n console.error(err);\n throw err;\n }\n\n return {\n item: validated.data.data\n };\n }\n}\n\nexport const ScheduleUnpublishActionGateway = GatewayAbstraction.createImplementation({\n implementation: ScheduleUnpublishActionGatewayImpl,\n dependencies: [MainGraphQLClient]\n});\n"],"names":["SCHEDULE_UNPUBLISH_ACTION_MUTATION","SCHEDULER_ENTRY_FIELDS","ERROR_FIELDS","schema","zod","schedulerEntrySchema","ScheduleUnpublishActionGatewayImpl","client","params","response","ScheduleActionType","result","Error","validated","err","createZodError","console","ScheduleUnpublishActionGateway","GatewayAbstraction","MainGraphQLClient"],"mappings":";;;;;;;AAYA,MAAMA,qCAAmD,CAAC;;;;;;;;;;;;;;;oBAetC,EAAEC,uBAAuB;;;oBAGzB,EAAEC,aAAa;;;;;AAKnC,CAAC;AAWD,MAAMC,SAASC,IAAI,MAAM,CAAC;IACtB,MAAMC;AACV;AAEA,MAAMC;IACF,YAAoBC,MAAmC,CAAE;aAArCA,MAAM,GAANA;IAAsC;IAE1D,MAAM,QACFC,MAAoD,EACG;QACvD,MAAMC,WAAW,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAkC;YACxE,OAAOT;YACP,WAAW;gBACP,WAAWQ,OAAO,SAAS;gBAC3B,UAAUA,OAAO,QAAQ;gBACzB,aAAaA,OAAO,UAAU;gBAC9B,YAAYE,mBAAmB,SAAS;YAC5C;QACJ;QAEA,MAAMC,SAASF,UAAU,WAAW;QACpC,IAAI,CAACE,QACD,MAAM,IAAIC,MAAM;QAGpB,IAAI,CAACD,OAAO,IAAI,EACZ,MAAM,IAAIC,MAAMD,OAAO,KAAK,EAAE,WAAW;QAG7C,MAAME,YAAY,MAAMV,OAAO,cAAc,CAACQ;QAC9C,IAAI,CAACE,UAAU,OAAO,EAAE;YACpB,MAAMC,MAAMC,eAAeF,UAAU,KAAK;YAC1CG,QAAQ,KAAK,CAACF;YACd,MAAMA;QACV;QAEA,OAAO;YACH,MAAMD,UAAU,IAAI,CAAC,IAAI;QAC7B;IACJ;AACJ;AAEO,MAAMI,gEAAiCC,+BAAAA,oBAAuC,CAAC;IAClF,gBAAgBZ;IAChB,cAAc;QAACa;KAAkB;AACrC"}
|
|
@@ -10,3 +10,7 @@ export interface IScheduleUnpublishActionGatewayExecuteResponse {
|
|
|
10
10
|
export interface IScheduleUnpublishActionGateway {
|
|
11
11
|
execute(params: IScheduleUnpublishActionGatewayExecuteParams): Promise<IScheduleUnpublishActionGatewayExecuteResponse>;
|
|
12
12
|
}
|
|
13
|
+
export declare const ScheduleUnpublishActionGateway: import("@webiny/di").Abstraction<IScheduleUnpublishActionGateway>;
|
|
14
|
+
export declare namespace ScheduleUnpublishActionGateway {
|
|
15
|
+
type Interface = IScheduleUnpublishActionGateway;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"features/scheduleUnpublishAction/abstractions.js","sources":["../../../src/features/scheduleUnpublishAction/abstractions.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/admin\";\nimport type { SchedulerEntry } from \"~/types.js\";\n\nexport interface IScheduleUnpublishActionGatewayExecuteParams {\n namespace: string;\n targetId: string;\n scheduleOn: Date;\n}\n\nexport interface IScheduleUnpublishActionGatewayExecuteResponse {\n item: SchedulerEntry;\n}\n\nexport interface IScheduleUnpublishActionGateway {\n execute(\n params: IScheduleUnpublishActionGatewayExecuteParams\n ): Promise<IScheduleUnpublishActionGatewayExecuteResponse>;\n}\n\nexport const ScheduleUnpublishActionGateway = createAbstraction<IScheduleUnpublishActionGateway>(\n \"Scheduler/ScheduleUnpublishActionGateway\"\n);\n\nexport namespace ScheduleUnpublishActionGateway {\n export type Interface = IScheduleUnpublishActionGateway;\n}\n"],"names":["ScheduleUnpublishActionGateway","createAbstraction"],"mappings":";AAmBO,MAAMA,iCAAiCC,kBAC1C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ScheduleUnpublishActionFeature: import("@webiny/feature/admin").FeatureDefinition<any, []>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createFeature } from "@webiny/feature/admin";
|
|
2
|
+
import { ScheduleUnpublishActionGateway } from "./ScheduleUnpublishActionGateway.js";
|
|
3
|
+
const ScheduleUnpublishActionFeature = createFeature({
|
|
4
|
+
name: "Scheduler/ScheduleUnpublishAction",
|
|
5
|
+
register (container) {
|
|
6
|
+
container.register(ScheduleUnpublishActionGateway).inSingletonScope();
|
|
7
|
+
}
|
|
8
|
+
});
|
|
9
|
+
export { ScheduleUnpublishActionFeature };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=feature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"features/scheduleUnpublishAction/feature.js","sources":["../../../src/features/scheduleUnpublishAction/feature.ts"],"sourcesContent":["import { createFeature } from \"@webiny/feature/admin\";\nimport { ScheduleUnpublishActionGateway } from \"./ScheduleUnpublishActionGateway.js\";\n\nexport const ScheduleUnpublishActionFeature = createFeature({\n name: \"Scheduler/ScheduleUnpublishAction\",\n register(container) {\n container.register(ScheduleUnpublishActionGateway).inSingletonScope();\n }\n});\n"],"names":["ScheduleUnpublishActionFeature","createFeature","container","ScheduleUnpublishActionGateway"],"mappings":";;AAGO,MAAMA,iCAAiCC,cAAc;IACxD,MAAM;IACN,UAASC,SAAS;QACdA,UAAU,QAAQ,CAACC,gCAAgC,gBAAgB;IACvE;AACJ"}
|
package/index.d.ts
CHANGED
|
@@ -1 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare const SchedulerModule: () => React.JSX.Element;
|
|
3
|
+
export { useScheduleDialog } from "./presentation/scheduleDialog/useScheduleDialog.js";
|
|
4
|
+
export type { IUseScheduleDialogProps } from "./presentation/scheduleDialog/useScheduleDialog.js";
|
|
5
|
+
export { Scheduler } from "./presentation/schedulerList/Scheduler.js";
|
|
6
|
+
export type { SchedulerProps } from "./presentation/schedulerList/Scheduler.js";
|
|
7
|
+
export { SchedulerConfigs } from "./presentation/SchedulerConfigs/SchedulerConfigs.js";
|
|
8
|
+
export { SchedulerDialogFormComponentDateTimeInput } from "./presentation/scheduleDialog/components/SchedulerDialogFormComponentDateTimeInput.js";
|
|
9
|
+
export { CellScheduledOn } from "./presentation/components/Cells/CellScheduledOn/index.js";
|
package/index.js
CHANGED
|
@@ -1 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
import react from "react";
|
|
2
|
+
import { RegisterFeature } from "@webiny/app-admin";
|
|
3
|
+
import { SchedulerFeature } from "./features/feature.js";
|
|
4
|
+
import { ScheduleDialogPresenterFeature } from "./presentation/scheduleDialog/feature.js";
|
|
5
|
+
import { SchedulerConfigs } from "./presentation/SchedulerConfigs/SchedulerConfigs.js";
|
|
6
|
+
const SchedulerModule = ()=>/*#__PURE__*/ react.createElement(react.Fragment, null, /*#__PURE__*/ react.createElement(RegisterFeature, {
|
|
7
|
+
feature: SchedulerFeature
|
|
8
|
+
}), /*#__PURE__*/ react.createElement(RegisterFeature, {
|
|
9
|
+
feature: ScheduleDialogPresenterFeature
|
|
10
|
+
}), /*#__PURE__*/ react.createElement(SchedulerConfigs, null));
|
|
11
|
+
export { useScheduleDialog } from "./presentation/scheduleDialog/useScheduleDialog.js";
|
|
12
|
+
export { Scheduler } from "./presentation/schedulerList/Scheduler.js";
|
|
13
|
+
export { SchedulerDialogFormComponentDateTimeInput } from "./presentation/scheduleDialog/components/SchedulerDialogFormComponentDateTimeInput.js";
|
|
14
|
+
export { CellScheduledOn } from "./presentation/components/Cells/CellScheduledOn/index.js";
|
|
15
|
+
export { SchedulerConfigs, SchedulerModule };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
package/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/index.tsx"],"sourcesContent":["import React from \"react\";\nimport { RegisterFeature } from \"@webiny/app-admin\";\nimport { SchedulerFeature } from \"./features/feature.js\";\nimport { ScheduleDialogPresenterFeature } from \"./presentation/scheduleDialog/feature.js\";\nimport { SchedulerConfigs } from \"./presentation/SchedulerConfigs/SchedulerConfigs.js\";\n\nexport const SchedulerModule = () => {\n return (\n <>\n <RegisterFeature feature={SchedulerFeature} />\n <RegisterFeature feature={ScheduleDialogPresenterFeature} />\n <SchedulerConfigs />\n </>\n );\n};\n\nexport { useScheduleDialog } from \"./presentation/scheduleDialog/useScheduleDialog.js\";\nexport type { IUseScheduleDialogProps } from \"./presentation/scheduleDialog/useScheduleDialog.js\";\nexport { Scheduler } from \"./presentation/schedulerList/Scheduler.js\";\nexport type { SchedulerProps } from \"./presentation/schedulerList/Scheduler.js\";\nexport { SchedulerConfigs } from \"./presentation/SchedulerConfigs/SchedulerConfigs.js\";\nexport { SchedulerDialogFormComponentDateTimeInput } from \"./presentation/scheduleDialog/components/SchedulerDialogFormComponentDateTimeInput.js\";\nexport { CellScheduledOn } from \"./presentation/components/Cells/CellScheduledOn/index.js\";\n"],"names":["SchedulerModule","RegisterFeature","SchedulerFeature","ScheduleDialogPresenterFeature","SchedulerConfigs"],"mappings":";;;;;AAMO,MAAMA,kBAAkB,IACpB,WAAP,GACI,wDACI,oBAACC,iBAAeA;QAAC,SAASC;sBAC1B,oBAACD,iBAAeA;QAAC,SAASE;sBAC1B,oBAACC,kBAAgBA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/app-scheduler",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.6.0-alpha.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./index.js",
|
|
@@ -16,31 +16,30 @@
|
|
|
16
16
|
"@emotion/react": "11.14.0",
|
|
17
17
|
"@emotion/styled": "11.14.1",
|
|
18
18
|
"@material-design-icons/svg": "0.14.15",
|
|
19
|
-
"@webiny/admin-ui": "6.
|
|
20
|
-
"@webiny/app
|
|
21
|
-
"@webiny/app-
|
|
22
|
-
"@webiny/app-
|
|
23
|
-
"@webiny/app-
|
|
24
|
-
"@webiny/
|
|
25
|
-
"@webiny/
|
|
26
|
-
"@webiny/
|
|
27
|
-
"@webiny/react-
|
|
28
|
-
"@webiny/
|
|
29
|
-
"@webiny/
|
|
30
|
-
"
|
|
31
|
-
"graphql-tag": "2.12.7",
|
|
19
|
+
"@webiny/admin-ui": "6.6.0-alpha.1",
|
|
20
|
+
"@webiny/app": "6.6.0-alpha.1",
|
|
21
|
+
"@webiny/app-aco": "6.6.0-alpha.1",
|
|
22
|
+
"@webiny/app-admin": "6.6.0-alpha.1",
|
|
23
|
+
"@webiny/app-headless-cms-common": "6.6.0-alpha.1",
|
|
24
|
+
"@webiny/feature": "6.6.0-alpha.1",
|
|
25
|
+
"@webiny/form": "6.6.0-alpha.1",
|
|
26
|
+
"@webiny/icons": "6.6.0-alpha.1",
|
|
27
|
+
"@webiny/react-composition": "6.6.0-alpha.1",
|
|
28
|
+
"@webiny/react-properties": "6.6.0-alpha.1",
|
|
29
|
+
"@webiny/utils": "6.6.0-alpha.1",
|
|
30
|
+
"@webiny/validation": "6.6.0-alpha.1",
|
|
32
31
|
"lodash": "4.18.1",
|
|
33
|
-
"mobx": "
|
|
34
|
-
"mobx-react-lite": "
|
|
32
|
+
"mobx": "7.0.3",
|
|
33
|
+
"mobx-react-lite": "5.0.3",
|
|
35
34
|
"react": "18.3.1",
|
|
36
35
|
"react-dom": "18.3.1",
|
|
37
36
|
"zod": "4.4.3"
|
|
38
37
|
},
|
|
39
38
|
"devDependencies": {
|
|
40
39
|
"@types/react": "18.3.31",
|
|
41
|
-
"@webiny/build-tools": "6.
|
|
40
|
+
"@webiny/build-tools": "6.6.0-alpha.1",
|
|
42
41
|
"rimraf": "6.1.3",
|
|
43
|
-
"typescript": "
|
|
42
|
+
"typescript": "7.0.2"
|
|
44
43
|
},
|
|
45
44
|
"publishConfig": {
|
|
46
45
|
"access": "public"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"presentation/SchedulerConfigs/SchedulerConfigs.js","sources":["../../../src/presentation/SchedulerConfigs/SchedulerConfigs.tsx"],"sourcesContent":["import React from \"react\";\nimport { SchedulerListConfig } from \"~/presentation/configs/index.js\";\nimport {\n CellActions,\n CellScheduledBy,\n CellScheduledOn,\n CellTitle,\n CellActionType,\n CellRevision\n} from \"~/presentation/components/Cells/index.js\";\nimport { CancelItemAction } from \"~/presentation/components/Actions/index.js\";\n\nconst { Browser } = SchedulerListConfig;\n\nexport const SchedulerConfigs = () => {\n return (\n <>\n <SchedulerListConfig>\n <Browser.Table.Column\n name={\"title\"}\n header={\"Title\"}\n cell={<CellTitle />}\n sortable={true}\n hideable={false}\n size={200}\n />\n <Browser.Table.Column\n name={\"revision\"}\n header={\"Revision\"}\n cell={<CellRevision />}\n hideable={false}\n />\n <Browser.Table.Column\n name={\"scheduledBy\"}\n header={\"Author\"}\n cell={<CellScheduledBy />}\n hideable={false}\n />\n <Browser.Table.Column\n name={\"actionType\"}\n header={\"Action Type\"}\n cell={<CellActionType />}\n hideable={false}\n />\n <Browser.Table.Column\n name={\"scheduledFor\"}\n header={\"Action Time\"}\n cell={<CellScheduledOn />}\n sortable={true}\n hideable={false}\n />\n <Browser.Table.Column\n name={\"actions\"}\n header={\" \"}\n cell={<CellActions />}\n size={80}\n className={\"rmwc-data-table__cell--align-end\"}\n hideable={false}\n resizable={false}\n />\n <Browser.Table.Sorting\n name={\"scheduledFor\"}\n field={\"scheduledFor\"}\n order={\"desc\"}\n />\n <Browser.EntryAction name={\"cancel\"} element={<CancelItemAction />} />\n </SchedulerListConfig>\n </>\n );\n};\n"],"names":["Browser","SchedulerListConfig","SchedulerConfigs","CellTitle","CellRevision","CellScheduledBy","CellActionType","CellScheduledOn","CellActions","CancelItemAction"],"mappings":";;;;AAYA,MAAM,EAAEA,SAAAA,OAAO,EAAE,GAAGC;AAEb,MAAMC,mBAAmB,IACrB,WAAP,GACI,wDACI,oBAACD,qBAAmBA,MAAAA,WAAAA,GAChB,oBAACD,QAAQ,KAAK,CAAC,MAAM;QACjB,MAAM;QACN,QAAQ;QACR,oBAAM,oBAACG,WAASA;QAChB,UAAU;QACV,UAAU;QACV,MAAM;sBAEV,oBAACH,QAAQ,KAAK,CAAC,MAAM;QACjB,MAAM;QACN,QAAQ;QACR,oBAAM,oBAACI,cAAYA;QACnB,UAAU;sBAEd,oBAACJ,QAAQ,KAAK,CAAC,MAAM;QACjB,MAAM;QACN,QAAQ;QACR,oBAAM,oBAACK,iBAAeA;QACtB,UAAU;sBAEd,oBAACL,QAAQ,KAAK,CAAC,MAAM;QACjB,MAAM;QACN,QAAQ;QACR,oBAAM,oBAACM,gBAAcA;QACrB,UAAU;sBAEd,oBAACN,QAAQ,KAAK,CAAC,MAAM;QACjB,MAAM;QACN,QAAQ;QACR,oBAAM,oBAACO,iBAAeA;QACtB,UAAU;QACV,UAAU;sBAEd,oBAACP,QAAQ,KAAK,CAAC,MAAM;QACjB,MAAM;QACN,QAAQ;QACR,oBAAM,oBAACQ,aAAWA;QAClB,MAAM;QACN,WAAW;QACX,UAAU;QACV,WAAW;sBAEf,oBAACR,QAAQ,KAAK,CAAC,OAAO;QAClB,MAAM;QACN,OAAO;QACP,OAAO;sBAEX,oBAACA,QAAQ,WAAW;QAAC,MAAM;QAAU,uBAAS,oBAACS,kBAAgBA"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import react from "react";
|
|
2
|
-
import { ReactComponent } from "@
|
|
2
|
+
import { ReactComponent } from "@webiny/icons/delete.svg";
|
|
3
|
+
import { OptionsMenuItem } from "@webiny/app-admin/exports/admin/ui.js";
|
|
3
4
|
import { useCancelSchedulerItem, useSchedulerItem } from "../../../hooks/index.js";
|
|
4
|
-
import { SchedulerListConfig } from "../../../configs/index.js";
|
|
5
5
|
const CancelItemAction = ()=>{
|
|
6
6
|
const { item } = useSchedulerItem();
|
|
7
7
|
const { openDialogCancelSchedulerItem } = useCancelSchedulerItem({
|
|
8
8
|
item
|
|
9
9
|
});
|
|
10
|
-
const { OptionsMenuItem } = SchedulerListConfig.Browser.EntryAction;
|
|
11
10
|
return /*#__PURE__*/ react.createElement(OptionsMenuItem, {
|
|
12
11
|
icon: /*#__PURE__*/ react.createElement(ReactComponent, null),
|
|
13
12
|
label: "Cancel",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/components/Actions/CancelItem/CancelItem.js","sources":["../../../../../src/presentation/components/Actions/CancelItem/CancelItem.tsx"],"sourcesContent":["import React from \"react\";\nimport { ReactComponent as Cancel } from \"@webiny/icons/delete.svg\";\nimport { OptionsMenuItem } from \"@webiny/app-admin/exports/admin/ui.js\";\nimport { useCancelSchedulerItem, useSchedulerItem } from \"~/presentation/hooks/index.js\";\n\nexport const CancelItemAction = () => {\n const { item } = useSchedulerItem();\n const { openDialogCancelSchedulerItem } = useCancelSchedulerItem({ item });\n\n return (\n <OptionsMenuItem\n icon={<Cancel />}\n label={\"Cancel\"}\n onAction={openDialogCancelSchedulerItem}\n />\n );\n};\n"],"names":["CancelItemAction","item","useSchedulerItem","openDialogCancelSchedulerItem","useCancelSchedulerItem","OptionsMenuItem","Cancel"],"mappings":";;;;AAKO,MAAMA,mBAAmB;IAC5B,MAAM,EAAEC,IAAI,EAAE,GAAGC;IACjB,MAAM,EAAEC,6BAA6B,EAAE,GAAGC,uBAAuB;QAAEH;IAAK;IAExE,OAAO,WAAP,GACI,oBAACI,iBAAeA;QACZ,oBAAM,oBAACC,gBAAMA;QACb,OAAO;QACP,UAAUH;;AAGtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"presentation/components/BottomInfoBar/BottomInfoBar.styled.js","sources":["../../../../src/presentation/components/BottomInfoBar/BottomInfoBar.styled.tsx"],"sourcesContent":["import styled from \"@emotion/styled\";\n\nexport const BottomInfoBarWrapper = styled(\"div\")`\n font-size: 0.8rem;\n position: sticky;\n bottom: 0;\n height: 30px;\n color: var(--mdc-theme-text-secondary-on-background);\n border-top: 1px solid var(--mdc-theme-on-background);\n background: var(--mdc-theme-surface);\n width: 100%;\n transform: translateZ(0);\n overflow: hidden;\n display: flex;\n align-items: center;\n z-index: 1;\n`;\n\nexport const BottomInfoBarInner = styled(\"div\")`\n padding: 0 10px;\n width: 100%;\n`;\n\nexport const StatusWrapper = styled(\"div\")`\n color: var(--mdc-theme-primary);\n position: absolute;\n right: 0;\n bottom: 10px;\n margin-right: 10px;\n display: flex;\n align-items: center;\n > div {\n display: inline-block;\n }\n`;\n\nexport const CircularProgressHolder = styled(\"div\")`\n position: relative;\n height: 12px;\n width: 12px;\n`;\n\nexport const UploadingLabel = styled(\"div\")`\n margin-right: 5px;\n`;\n"],"names":["BottomInfoBarWrapper","styled","BottomInfoBarInner","StatusWrapper","CircularProgressHolder","UploadingLabel"],"mappings":";AAEO,MAAMA,uBAAuBC,OAAO,MAAM,CAAC;;;;;;;;;;;;;;AAclD,CAAC;AAEM,MAAMC,qBAAqBD,OAAO,MAAM,CAAC;;;AAGhD,CAAC;AAEM,MAAME,gBAAgBF,OAAO,MAAM,CAAC;;;;;;;;;;;AAW3C,CAAC;AAEM,MAAMG,yBAAyBH,OAAO,MAAM,CAAC;;;;AAIpD,CAAC;AAEM,MAAMI,iBAAiBJ,OAAO,MAAM,CAAC;;AAE5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"presentation/components/BottomInfoBar/ListMeta.js","sources":["../../../../src/presentation/components/BottomInfoBar/ListMeta.tsx"],"sourcesContent":["import React, { useCallback } from \"react\";\n\nexport interface ListMetaProps {\n loading: boolean;\n currentCount: number;\n totalCount: number;\n}\n\nexport const ListMeta = (props: ListMetaProps) => {\n const getLabel = useCallback((count = 0): string => {\n return `${count} ${count === 1 ? \"item\" : \"items\"}`;\n }, []);\n\n if (props.loading) {\n return null;\n }\n\n return <span>{`Showing ${props.currentCount} out of ${getLabel(props.totalCount)}.`}</span>;\n};\n"],"names":["ListMeta","props","getLabel","useCallback","count"],"mappings":";AAQO,MAAMA,WAAW,CAACC;IACrB,MAAMC,WAAWC,YAAY,CAACC,QAAQ,CAAC,GAC5B,GAAGA,MAAM,CAAC,EAAEA,AAAU,MAAVA,QAAc,SAAS,SAAS,EACpD,EAAE;IAEL,IAAIH,MAAM,OAAO,EACb,OAAO;IAGX,OAAO,WAAP,GAAO,oBAAC,cAAM,CAAC,QAAQ,EAAEA,MAAM,YAAY,CAAC,QAAQ,EAAEC,SAASD,MAAM,UAAU,EAAE,CAAC,CAAC;AACvF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
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"}
|
package/{Presentation → presentation}/components/Cells/CellRevision/CellRevision.styled.js.map
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
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"}
|
package/{Presentation → presentation}/components/Cells/CellScheduledBy/CellScheduledBy.js.map
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
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"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import react from "react";
|
|
2
2
|
import { SchedulerListConfig } from "../../../configs/index.js";
|
|
3
3
|
import { makeDecoratable } from "@webiny/react-composition";
|
|
4
|
+
import { useDateFormatter } from "@webiny/app-admin";
|
|
4
5
|
const CellScheduledOnLabel = makeDecoratable("Scheduler.CellScheduledOnLabel", ({ dateTime })=>{
|
|
6
|
+
const dateFormatter = useDateFormatter();
|
|
5
7
|
if (!dateTime) return /*#__PURE__*/ react.createElement(react.Fragment, null, "Missing publish or unpublish date.");
|
|
6
|
-
return /*#__PURE__*/ react.createElement(react.Fragment, null,
|
|
8
|
+
return /*#__PURE__*/ react.createElement(react.Fragment, null, dateFormatter.format(dateTime));
|
|
7
9
|
});
|
|
8
10
|
const CellScheduledOn = ()=>{
|
|
9
11
|
const { useTableRow } = SchedulerListConfig.Browser.Table.Column;
|
|
@@ -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\";\nimport { useDateFormatter } from \"@webiny/app-admin\";\n\nexport interface ICellScheduledOnLabelProps {\n dateTime: Date | undefined;\n}\n\nexport const CellScheduledOnLabel = makeDecoratable(\n \"Scheduler.CellScheduledOnLabel\",\n ({ dateTime }: ICellScheduledOnLabelProps) => {\n const dateFormatter = useDateFormatter();\n if (!dateTime) {\n return <>Missing publish or unpublish date.</>;\n }\n\n return <>{dateFormatter.format(dateTime)}</>;\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","dateFormatter","useDateFormatter","CellScheduledOn","useTableRow","SchedulerListConfig","row"],"mappings":";;;;AASO,MAAMA,uBAAuBC,gBAChC,kCACA,CAAC,EAAEC,QAAQ,EAA8B;IACrC,MAAMC,gBAAgBC;IACtB,IAAI,CAACF,UACD,OAAO,WAAP,GAAO,0CAAE;IAGb,OAAO,WAAP,GAAO,0CAAGC,cAAc,MAAM,CAACD;AACnC;AAGG,MAAMG,kBAAkB;IAC3B,MAAM,EAAEC,WAAW,EAAE,GAAGC,oBAAoB,OAAO,CAAC,KAAK,CAAC,MAAM;IAChE,MAAM,EAAEC,GAAG,EAAE,GAAGF;IAEhB,OAAO,WAAP,GAAO,oBAACN,sBAAoBA;QAAC,UAAUQ,IAAI,IAAI,CAAC,SAAS,IAAIA,IAAI,IAAI,CAAC,WAAW;;AACrF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
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"}
|
package/{Presentation → presentation}/components/Cells/CellType/CellActionType.styled.js.map
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"presentation/components/Title/Title.js","sources":["../../../../src/presentation/components/Title/Title.tsx"],"sourcesContent":["import React from \"react\";\nimport { Skeleton } from \"@webiny/admin-ui\";\nimport { Name } from \"./Title.styled.js\";\n\nexport interface TitleProps {\n title?: string;\n}\n\nexport const Title = ({ title }: TitleProps) => {\n return (\n <Name level={6} as={\"h1\"}>\n {title || <Skeleton />}\n </Name>\n );\n};\n"],"names":["Title","title","Name","Skeleton"],"mappings":";;;AAQO,MAAMA,QAAQ,CAAC,EAAEC,KAAK,EAAc,GAChC,WAAP,GACI,oBAACC,MAAIA;QAAC,OAAO;QAAG,IAAI;OACfD,SAAS,WAATA,GAAS,oBAACE,UAAQA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"presentation/components/Title/Title.styled.js","sources":["../../../../src/presentation/components/Title/Title.styled.tsx"],"sourcesContent":["import styled from \"@emotion/styled\";\nimport { Heading } from \"@webiny/admin-ui\";\n\nexport const Name = styled(Heading)`\n color: var(--mdc-theme-text-primary-on-background);\n padding-left: 8px;\n line-height: 48px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n`;\n"],"names":["Name","styled","Heading"],"mappings":";;AAGO,MAAMA,OAAOC,OAAOC,QAAQ,CAAC;;;;;;;AAOpC,CAAC"}
|
|
@@ -2,6 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { AcoConfig, type RecordActionConfig } from "@webiny/app-aco";
|
|
3
3
|
export type { RecordActionConfig as EntryActionConfig };
|
|
4
4
|
type EntryActionProps = React.ComponentProps<typeof AcoConfig.Record.Action>;
|
|
5
|
-
|
|
5
|
+
declare const BaseEntryAction: (props: EntryActionProps) => React.JSX.Element;
|
|
6
|
+
export declare const EntryAction: typeof BaseEntryAction & {
|
|
6
7
|
OptionsMenuItem: (props: import("@webiny/app-admin/components").OptionsMenuItemProps) => React.JSX.Element;
|
|
7
8
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"presentation/configs/list/Browser/EntryAction.js","sources":["../../../../../src/presentation/configs/list/Browser/EntryAction.tsx"],"sourcesContent":["import React from \"react\";\nimport { CompositionScope } from \"@webiny/react-composition\";\nimport { AcoConfig, type RecordActionConfig } from \"@webiny/app-aco\";\n\nconst { Record } = AcoConfig;\n\nexport type { RecordActionConfig as EntryActionConfig };\n\ntype EntryActionProps = React.ComponentProps<typeof AcoConfig.Record.Action>;\n\nconst BaseEntryAction = (props: EntryActionProps) => {\n return (\n <CompositionScope name={\"scheduler\"}>\n <Record.Action {...props} />\n </CompositionScope>\n );\n};\n\nexport const EntryAction = Object.assign(BaseEntryAction, {\n OptionsMenuItem: Record.Action.OptionsMenuItem\n});\n"],"names":["Record","AcoConfig","BaseEntryAction","props","CompositionScope","EntryAction","Object"],"mappings":";;;AAIA,MAAM,EAAEA,QAAAA,MAAM,EAAE,GAAGC;AAMnB,MAAMC,kBAAkB,CAACC,QACd,WAAP,GACI,oBAACC,kBAAgBA;QAAC,MAAM;qBACpB,oBAACJ,OAAO,MAAM,EAAKG;AAKxB,MAAME,cAAcC,OAAO,MAAM,CAACJ,iBAAiB;IACtD,iBAAiBF,OAAO,MAAM,CAAC,eAAe;AAClD"}
|
|
@@ -3,10 +3,11 @@ import { AcoConfig, type TableColumnConfig as ColumnConfig } from "@webiny/app-a
|
|
|
3
3
|
import type { SchedulerEntryTableRow } from "../../../../../types.js";
|
|
4
4
|
export type { ColumnConfig };
|
|
5
5
|
type ColumnProps = React.ComponentProps<typeof AcoConfig.Table.Column>;
|
|
6
|
-
|
|
6
|
+
declare const BaseColumn: (props: ColumnProps) => React.JSX.Element;
|
|
7
|
+
export declare const Column: typeof BaseColumn & {
|
|
7
8
|
useTableRow: {
|
|
8
|
-
(): import("@webiny/app-
|
|
9
|
-
<TUserRow>(): import("@webiny/app-
|
|
9
|
+
(): import("@webiny/app-admin/components").TableRowContextData<SchedulerEntryTableRow>;
|
|
10
|
+
<TUserRow>(): import("@webiny/app-admin/components").TableRowContextData<SchedulerEntryTableRow & {
|
|
10
11
|
data: TUserRow;
|
|
11
12
|
}>;
|
|
12
13
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"presentation/configs/list/Browser/Table/Column.js","sources":["../../../../../../src/presentation/configs/list/Browser/Table/Column.tsx"],"sourcesContent":["import React from \"react\";\nimport { AcoConfig, type TableColumnConfig as ColumnConfig } from \"@webiny/app-aco\";\nimport type { SchedulerEntryTableRow } from \"~/types.js\";\n\nconst { Table } = AcoConfig;\n\nexport type { ColumnConfig };\n\ntype ColumnProps = React.ComponentProps<typeof AcoConfig.Table.Column>;\n\nconst BaseColumn = (props: ColumnProps) => {\n return <Table.Column {...props} />;\n};\n\nexport const Column = Object.assign(BaseColumn, {\n useTableRow: Table.Column.createUseTableRow<SchedulerEntryTableRow>(),\n isFolderRow: Table.Column.isFolderRow\n});\n"],"names":["Table","AcoConfig","BaseColumn","props","Column","Object"],"mappings":";;AAIA,MAAM,EAAEA,OAAAA,KAAK,EAAE,GAAGC;AAMlB,MAAMC,aAAa,CAACC,QACT,WAAP,GAAO,oBAACH,MAAM,MAAM,EAAKG;AAGtB,MAAMC,SAASC,OAAO,MAAM,CAACH,YAAY;IAC5C,aAAaF,MAAM,MAAM,CAAC,iBAAiB;IAC3C,aAAaA,MAAM,MAAM,CAAC,WAAW;AACzC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"presentation/configs/list/Browser/Table/Sorting.js","sources":["../../../../../../src/presentation/configs/list/Browser/Table/Sorting.tsx"],"sourcesContent":["import React from \"react\";\nimport { AcoConfig, type TableSortingConfig as SortingConfig } from \"@webiny/app-aco\";\n\nconst { Table } = AcoConfig;\n\nexport type { SortingConfig };\n\ntype SortingProps = React.ComponentProps<typeof AcoConfig.Table.Sorting>;\n\nexport const Sorting = (props: SortingProps) => {\n return <Table.Sorting {...props} />;\n};\n"],"names":["Table","AcoConfig","Sorting","props"],"mappings":";;AAGA,MAAM,EAAEA,OAAAA,KAAK,EAAE,GAAGC;AAMX,MAAMC,UAAU,CAACC,QACb,WAAP,GAAO,oBAACH,MAAM,OAAO,EAAKG"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ColumnConfig } from "./Column.js";
|
|
2
|
+
import type { SortingConfig } from "./Sorting.js";
|
|
3
|
+
import { Sorting } from "./Sorting.js";
|
|
4
|
+
export interface TableConfig {
|
|
5
|
+
columns: ColumnConfig[];
|
|
6
|
+
sorting: SortingConfig[];
|
|
7
|
+
}
|
|
8
|
+
export declare const Table: {
|
|
9
|
+
Column: ((props: import("@webiny/app-admin/config/table/Column.js").ColumnProps) => import("react").JSX.Element) & {
|
|
10
|
+
useTableRow: {
|
|
11
|
+
(): import("@webiny/app-admin/index.js").TableRowContextData<import("../../../../../types.js").SchedulerEntryTableRow>;
|
|
12
|
+
<TUserRow>(): import("@webiny/app-admin/index.js").TableRowContextData<import("../../../../../types.js").SchedulerEntryTableRow & {
|
|
13
|
+
data: TUserRow;
|
|
14
|
+
}>;
|
|
15
|
+
};
|
|
16
|
+
isFolderRow: (row: import("@webiny/app-admin/index.js").TableRow) => row is import("@webiny/app-aco/table.types.js").FolderTableRow;
|
|
17
|
+
};
|
|
18
|
+
Sorting: typeof Sorting;
|
|
19
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"presentation/configs/list/Browser/Table/index.js","sources":["../../../../../../src/presentation/configs/list/Browser/Table/index.ts"],"sourcesContent":["import type { ColumnConfig } from \"./Column.js\";\nimport { Column } from \"./Column.js\";\nimport type { SortingConfig } from \"./Sorting.js\";\nimport { Sorting } from \"./Sorting.js\";\n\nexport interface TableConfig {\n columns: ColumnConfig[];\n sorting: SortingConfig[];\n}\n\nexport const Table = {\n Column,\n Sorting\n};\n"],"names":["Table","Column","Sorting"],"mappings":";;AAUO,MAAMA,QAAQ;IACjBC,QAAMA;IACNC,SAAOA;AACX"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { EntryActionConfig } from "./EntryAction.js";
|
|
2
|
+
import type { TableConfig } from "./Table/index.js";
|
|
3
|
+
export interface BrowserConfig {
|
|
4
|
+
entryActions: EntryActionConfig[];
|
|
5
|
+
table: TableConfig;
|
|
6
|
+
}
|
|
7
|
+
export declare const Browser: {
|
|
8
|
+
EntryAction: ((props: import("@webiny/app-aco/config/record/Action.js").ActionProps) => import("react").JSX.Element) & {
|
|
9
|
+
OptionsMenuItem: (props: import("@webiny/app-admin/index.js").OptionsMenuItemProps) => React.JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
Table: {
|
|
12
|
+
Column: ((props: import("@webiny/app-admin/config/table/Column.js").ColumnProps) => import("react").JSX.Element) & {
|
|
13
|
+
useTableRow: {
|
|
14
|
+
(): import("@webiny/app-admin/index.js").TableRowContextData<import("../../../../types.js").SchedulerEntryTableRow>;
|
|
15
|
+
<TUserRow>(): import("@webiny/app-admin/index.js").TableRowContextData<import("../../../../types.js").SchedulerEntryTableRow & {
|
|
16
|
+
data: TUserRow;
|
|
17
|
+
}>;
|
|
18
|
+
};
|
|
19
|
+
isFolderRow: (row: import("@webiny/app-admin/index.js").TableRow) => row is import("@webiny/app-aco/table.types.js").FolderTableRow;
|
|
20
|
+
};
|
|
21
|
+
Sorting: typeof import("./Table/Sorting.js").Sorting;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"presentation/configs/list/Browser/index.js","sources":["../../../../../src/presentation/configs/list/Browser/index.ts"],"sourcesContent":["import type { EntryActionConfig } from \"./EntryAction.js\";\nimport { EntryAction } from \"./EntryAction.js\";\nimport type { TableConfig } from \"./Table/index.js\";\nimport { Table } from \"./Table/index.js\";\n\nexport interface BrowserConfig {\n entryActions: EntryActionConfig[];\n table: TableConfig;\n}\n\nexport const Browser = {\n EntryAction,\n Table\n};\n"],"names":["Browser","EntryAction","Table"],"mappings":";;AAUO,MAAMA,UAAU;IACnBC,aAAWA;IACXC,OAAKA;AACT"}
|