@webiny/app-trash-bin 5.43.2-beta.0 → 6.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Domain/Models/TrashBinItem/ITrashBinItemMapper.js +1 -5
- package/Domain/Models/TrashBinItem/TrashBinItem.js +6 -19
- package/Domain/Models/TrashBinItem/TrashBinItem.js.map +1 -1
- package/Domain/Models/TrashBinItem/index.js +2 -27
- package/Domain/Models/TrashBinItem/index.js.map +1 -1
- package/Domain/Models/index.js +1 -16
- package/Domain/Models/index.js.map +1 -1
- package/Domain/Repositories/Search/ISearchRepository.js +1 -5
- package/Domain/Repositories/Search/SearchRepository.js +12 -28
- package/Domain/Repositories/Search/SearchRepository.js.map +1 -1
- package/Domain/Repositories/Search/SearchRepositoryFactory.js +14 -32
- package/Domain/Repositories/Search/SearchRepositoryFactory.js.map +1 -1
- package/Domain/Repositories/Search/index.js +3 -38
- package/Domain/Repositories/Search/index.js.map +1 -1
- package/Domain/Repositories/SelectedItems/ISelectedItemsRepository.js +1 -5
- package/Domain/Repositories/SelectedItems/SelectedItemsRepository.js +24 -46
- package/Domain/Repositories/SelectedItems/SelectedItemsRepository.js.map +1 -1
- package/Domain/Repositories/SelectedItems/SelectedItemsRepositoryFactory.js +14 -32
- package/Domain/Repositories/SelectedItems/SelectedItemsRepositoryFactory.js.map +1 -1
- package/Domain/Repositories/SelectedItems/index.js +3 -38
- package/Domain/Repositories/SelectedItems/index.js.map +1 -1
- package/Domain/Repositories/Sorting/SortingRepositoryWithDefaults.d.ts +1 -1
- package/Domain/Repositories/Sorting/SortingRepositoryWithDefaults.js +16 -32
- package/Domain/Repositories/Sorting/SortingRepositoryWithDefaults.js.map +1 -1
- package/Domain/Repositories/Sorting/index.js +1 -16
- package/Domain/Repositories/Sorting/index.js.map +1 -1
- package/Domain/Repositories/TrashBinItems/ITrashBinItemsRepository.js +1 -5
- package/Domain/Repositories/TrashBinItems/TrashBinItemMapper.js +16 -31
- package/Domain/Repositories/TrashBinItems/TrashBinItemMapper.js.map +1 -1
- package/Domain/Repositories/TrashBinItems/TrashBinItemsRepository.js +87 -130
- package/Domain/Repositories/TrashBinItems/TrashBinItemsRepository.js.map +1 -1
- package/Domain/Repositories/TrashBinItems/TrashBinItemsRepositoryFactory.js +14 -32
- package/Domain/Repositories/TrashBinItems/TrashBinItemsRepositoryFactory.js.map +1 -1
- package/Domain/Repositories/TrashBinItems/TrashBinItemsRepositoryWithLoading.js +33 -62
- package/Domain/Repositories/TrashBinItems/TrashBinItemsRepositoryWithLoading.js.map +1 -1
- package/Domain/Repositories/TrashBinItems/index.js +5 -60
- package/Domain/Repositories/TrashBinItems/index.js.map +1 -1
- package/Domain/Repositories/index.js +5 -49
- package/Domain/Repositories/index.js.map +1 -1
- package/Domain/index.js +2 -27
- package/Domain/index.js.map +1 -1
- package/Gateways/TrashBinBulkActions/ITrashBinBulkActionsGateway.js +1 -5
- package/Gateways/TrashBinBulkActions/index.js +1 -16
- package/Gateways/TrashBinBulkActions/index.js.map +1 -1
- package/Gateways/TrashBinDeleteItem/ITrashBinDeleteItemGateway.js +1 -5
- package/Gateways/TrashBinDeleteItem/index.js +1 -16
- package/Gateways/TrashBinDeleteItem/index.js.map +1 -1
- package/Gateways/TrashBinListItems/ITrashBinListGateway.js +1 -5
- package/Gateways/TrashBinListItems/index.js +1 -16
- package/Gateways/TrashBinListItems/index.js.map +1 -1
- package/Gateways/TrashBinRestoreItem/ITrashBinRestoreItemGateway.js +1 -5
- package/Gateways/TrashBinRestoreItem/index.js +1 -16
- package/Gateways/TrashBinRestoreItem/index.js.map +1 -1
- package/Gateways/index.js +4 -49
- package/Gateways/index.js.map +1 -1
- package/Presentation/TrashBin/TrashBin.js +30 -37
- package/Presentation/TrashBin/TrashBin.js.map +1 -1
- package/Presentation/TrashBin/TrashBin.test.js +186 -175
- package/Presentation/TrashBin/TrashBin.test.js.map +1 -1
- package/Presentation/TrashBin/TrashBinControllers.js +60 -94
- package/Presentation/TrashBin/TrashBinControllers.js.map +1 -1
- package/Presentation/TrashBin/TrashBinPresenter.js +49 -77
- package/Presentation/TrashBin/TrashBinPresenter.js.map +1 -1
- package/Presentation/TrashBin/controllers/BulkAction/BulkActionsController.js +7 -20
- package/Presentation/TrashBin/controllers/BulkAction/BulkActionsController.js.map +1 -1
- package/Presentation/TrashBin/controllers/BulkAction/IBulkActionsController.js +1 -5
- package/Presentation/TrashBin/controllers/BulkAction/index.js +2 -27
- package/Presentation/TrashBin/controllers/BulkAction/index.js.map +1 -1
- package/Presentation/TrashBin/controllers/DeleteItem/DeleteItemController.js +7 -20
- package/Presentation/TrashBin/controllers/DeleteItem/DeleteItemController.js.map +1 -1
- package/Presentation/TrashBin/controllers/DeleteItem/IDeleteItemController.js +1 -5
- package/Presentation/TrashBin/controllers/DeleteItem/index.js +2 -27
- package/Presentation/TrashBin/controllers/DeleteItem/index.js.map +1 -1
- package/Presentation/TrashBin/controllers/GetRestoredItemById/GetRestoredItemByIdController.js +10 -23
- package/Presentation/TrashBin/controllers/GetRestoredItemById/GetRestoredItemByIdController.js.map +1 -1
- package/Presentation/TrashBin/controllers/GetRestoredItemById/IGetRestoredItemByIdController.js +1 -5
- package/Presentation/TrashBin/controllers/GetRestoredItemById/index.js +2 -27
- package/Presentation/TrashBin/controllers/GetRestoredItemById/index.js.map +1 -1
- package/Presentation/TrashBin/controllers/ListItems/IListItemsController.js +1 -5
- package/Presentation/TrashBin/controllers/ListItems/ListItemsController.js +7 -20
- package/Presentation/TrashBin/controllers/ListItems/ListItemsController.js.map +1 -1
- package/Presentation/TrashBin/controllers/ListItems/index.js +2 -27
- package/Presentation/TrashBin/controllers/ListItems/index.js.map +1 -1
- package/Presentation/TrashBin/controllers/ListMoreItems/IListMoreItemsController.js +1 -5
- package/Presentation/TrashBin/controllers/ListMoreItems/ListMoreItemsController.js +7 -20
- package/Presentation/TrashBin/controllers/ListMoreItems/ListMoreItemsController.js.map +1 -1
- package/Presentation/TrashBin/controllers/ListMoreItems/index.js +2 -27
- package/Presentation/TrashBin/controllers/ListMoreItems/index.js.map +1 -1
- package/Presentation/TrashBin/controllers/RestoreItem/IRestoreItemController.js +1 -5
- package/Presentation/TrashBin/controllers/RestoreItem/RestoreItemController.js +7 -20
- package/Presentation/TrashBin/controllers/RestoreItem/RestoreItemController.js.map +1 -1
- package/Presentation/TrashBin/controllers/RestoreItem/index.js +2 -27
- package/Presentation/TrashBin/controllers/RestoreItem/index.js.map +1 -1
- package/Presentation/TrashBin/controllers/SearchItems/ISearchItemsController.js +1 -5
- package/Presentation/TrashBin/controllers/SearchItems/SearchItemsController.js +9 -22
- package/Presentation/TrashBin/controllers/SearchItems/SearchItemsController.js.map +1 -1
- package/Presentation/TrashBin/controllers/SearchItems/index.js +2 -27
- package/Presentation/TrashBin/controllers/SearchItems/index.js.map +1 -1
- package/Presentation/TrashBin/controllers/SelectAllItems/ISelectAllItemsController.js +1 -5
- package/Presentation/TrashBin/controllers/SelectAllItems/SelectAllItemsController.js +7 -20
- package/Presentation/TrashBin/controllers/SelectAllItems/SelectAllItemsController.js.map +1 -1
- package/Presentation/TrashBin/controllers/SelectAllItems/index.js +2 -27
- package/Presentation/TrashBin/controllers/SelectAllItems/index.js.map +1 -1
- package/Presentation/TrashBin/controllers/SelectItems/ISelectItemsController.js +1 -5
- package/Presentation/TrashBin/controllers/SelectItems/SelectItemsController.js +9 -24
- package/Presentation/TrashBin/controllers/SelectItems/SelectItemsController.js.map +1 -1
- package/Presentation/TrashBin/controllers/SelectItems/index.js +2 -27
- package/Presentation/TrashBin/controllers/SelectItems/index.js.map +1 -1
- package/Presentation/TrashBin/controllers/SortItems/ISortItemsController.js +1 -5
- package/Presentation/TrashBin/controllers/SortItems/SortItemsController.js +13 -25
- package/Presentation/TrashBin/controllers/SortItems/SortItemsController.js.map +1 -1
- package/Presentation/TrashBin/controllers/SortItems/index.js +2 -27
- package/Presentation/TrashBin/controllers/SortItems/index.js.map +1 -1
- package/Presentation/TrashBin/controllers/UnselectAllItems/IUnselectAllItemsController.js +1 -5
- package/Presentation/TrashBin/controllers/UnselectAllItems/UnselectAllItemsController.js +7 -20
- package/Presentation/TrashBin/controllers/UnselectAllItems/UnselectAllItemsController.js.map +1 -1
- package/Presentation/TrashBin/controllers/UnselectAllItems/index.js +2 -27
- package/Presentation/TrashBin/controllers/UnselectAllItems/index.js.map +1 -1
- package/Presentation/TrashBin/controllers/index.js +11 -126
- package/Presentation/TrashBin/controllers/index.js.map +1 -1
- package/Presentation/TrashBin/index.js +1 -16
- package/Presentation/TrashBin/index.js.map +1 -1
- package/Presentation/TrashBinConfigs/TrashBinConfigs.js +31 -36
- package/Presentation/TrashBinConfigs/TrashBinConfigs.js.map +1 -1
- package/Presentation/TrashBinConfigs/index.js +1 -16
- package/Presentation/TrashBinConfigs/index.js.map +1 -1
- package/Presentation/TrashBinRenderer/TrashBinRenderer.js +13 -23
- package/Presentation/TrashBinRenderer/TrashBinRenderer.js.map +1 -1
- package/Presentation/TrashBinRenderer/index.js +1 -16
- package/Presentation/TrashBinRenderer/index.js.map +1 -1
- package/Presentation/abstractions/ITrashBinControllers.js +1 -5
- package/Presentation/abstractions/ITrashBinPresenter.js +1 -5
- package/Presentation/abstractions/index.js +2 -27
- package/Presentation/abstractions/index.js.map +1 -1
- package/Presentation/components/Actions/DeleteItem/DeleteItem.js +20 -22
- package/Presentation/components/Actions/DeleteItem/DeleteItem.js.map +1 -1
- package/Presentation/components/Actions/DeleteItem/index.js +1 -16
- package/Presentation/components/Actions/DeleteItem/index.js.map +1 -1
- package/Presentation/components/Actions/RestoreItem/RestoreItem.js +18 -21
- package/Presentation/components/Actions/RestoreItem/RestoreItem.js.map +1 -1
- package/Presentation/components/Actions/RestoreItem/index.js +1 -16
- package/Presentation/components/Actions/RestoreItem/index.js.map +1 -1
- package/Presentation/components/Actions/index.js +2 -27
- package/Presentation/components/Actions/index.js.map +1 -1
- package/Presentation/components/BottomInfoBar/BottomInfoBar.js +18 -20
- package/Presentation/components/BottomInfoBar/BottomInfoBar.js.map +1 -1
- package/Presentation/components/BottomInfoBar/ListMeta.js +10 -13
- package/Presentation/components/BottomInfoBar/ListMeta.js.map +1 -1
- package/Presentation/components/BottomInfoBar/ListStatus.js +14 -16
- package/Presentation/components/BottomInfoBar/ListStatus.js.map +1 -1
- package/Presentation/components/BottomInfoBar/index.js +1 -16
- package/Presentation/components/BottomInfoBar/index.js.map +1 -1
- package/Presentation/components/BulkActions/BulkActions/BulkActions.js +49 -35
- package/Presentation/components/BulkActions/BulkActions/BulkActions.js.map +1 -1
- package/Presentation/components/BulkActions/BulkActions/index.js +1 -16
- package/Presentation/components/BulkActions/BulkActions/index.js.map +1 -1
- package/Presentation/components/BulkActions/DeleteItems/DeleteItems.js +75 -74
- package/Presentation/components/BulkActions/DeleteItems/DeleteItems.js.map +1 -1
- package/Presentation/components/BulkActions/DeleteItems/index.js +1 -16
- package/Presentation/components/BulkActions/DeleteItems/index.js.map +1 -1
- package/Presentation/components/BulkActions/RestoreItems/RestoreItems.js +83 -84
- package/Presentation/components/BulkActions/RestoreItems/RestoreItems.js.map +1 -1
- package/Presentation/components/BulkActions/RestoreItems/RestoreItemsReportMessage.js +9 -14
- package/Presentation/components/BulkActions/RestoreItems/RestoreItemsReportMessage.js.map +1 -1
- package/Presentation/components/BulkActions/RestoreItems/index.js +1 -16
- package/Presentation/components/BulkActions/RestoreItems/index.js.map +1 -1
- package/Presentation/components/BulkActions/index.js +3 -38
- package/Presentation/components/BulkActions/index.js.map +1 -1
- package/Presentation/components/Cells/CellActions/CellActions.js +17 -20
- package/Presentation/components/Cells/CellActions/CellActions.js.map +1 -1
- package/Presentation/components/Cells/CellActions/index.js +1 -16
- package/Presentation/components/Cells/CellActions/index.js.map +1 -1
- package/Presentation/components/Cells/CellCreatedBy/CellCreatedBy.js +10 -14
- package/Presentation/components/Cells/CellCreatedBy/CellCreatedBy.js.map +1 -1
- package/Presentation/components/Cells/CellCreatedBy/index.js +1 -16
- package/Presentation/components/Cells/CellCreatedBy/index.js.map +1 -1
- package/Presentation/components/Cells/CellDeletedBy/CellDeletedBy.js +10 -14
- package/Presentation/components/Cells/CellDeletedBy/CellDeletedBy.js.map +1 -1
- package/Presentation/components/Cells/CellDeletedBy/index.js +1 -16
- package/Presentation/components/Cells/CellDeletedBy/index.js.map +1 -1
- package/Presentation/components/Cells/CellDeletedOn/CellDeletedOn.js +11 -15
- package/Presentation/components/Cells/CellDeletedOn/CellDeletedOn.js.map +1 -1
- package/Presentation/components/Cells/CellDeletedOn/index.js +1 -16
- package/Presentation/components/Cells/CellDeletedOn/index.js.map +1 -1
- package/Presentation/components/Cells/CellTitle/CellTitle.js +20 -17
- package/Presentation/components/Cells/CellTitle/CellTitle.js.map +1 -1
- package/Presentation/components/Cells/CellTitle/index.js +1 -16
- package/Presentation/components/Cells/CellTitle/index.js.map +1 -1
- package/Presentation/components/Cells/index.js +5 -60
- package/Presentation/components/Cells/index.js.map +1 -1
- package/Presentation/components/Empty/Empty.js +18 -21
- package/Presentation/components/Empty/Empty.js.map +1 -1
- package/Presentation/components/Empty/index.js +1 -16
- package/Presentation/components/Empty/index.js.map +1 -1
- package/Presentation/components/SearchInput/SearchInput.js +27 -32
- package/Presentation/components/SearchInput/SearchInput.js.map +1 -1
- package/Presentation/components/SearchInput/index.js +1 -16
- package/Presentation/components/SearchInput/index.js.map +1 -1
- package/Presentation/components/Table/Table.js +14 -24
- package/Presentation/components/Table/Table.js.map +1 -1
- package/Presentation/components/Table/index.js +1 -16
- package/Presentation/components/Table/index.js.map +1 -1
- package/Presentation/components/Title/Title.js +11 -18
- package/Presentation/components/Title/Title.js.map +1 -1
- package/Presentation/components/Title/index.js +1 -16
- package/Presentation/components/Title/index.js.map +1 -1
- package/Presentation/components/TrashBinOverlay/TrashBinOverlay.js +27 -35
- package/Presentation/components/TrashBinOverlay/TrashBinOverlay.js.map +1 -1
- package/Presentation/components/TrashBinOverlay/index.js +1 -16
- package/Presentation/components/TrashBinOverlay/index.js.map +1 -1
- package/Presentation/configs/index.js +1 -16
- package/Presentation/configs/index.js.map +1 -1
- package/Presentation/configs/list/Browser/BulkAction.js +36 -47
- package/Presentation/configs/list/Browser/BulkAction.js.map +1 -1
- package/Presentation/configs/list/Browser/EntryAction.js +11 -21
- package/Presentation/configs/list/Browser/EntryAction.js.map +1 -1
- package/Presentation/configs/list/Browser/Table/Column.d.ts +1 -1
- package/Presentation/configs/list/Browser/Table/Column.js +9 -19
- package/Presentation/configs/list/Browser/Table/Column.js.map +1 -1
- package/Presentation/configs/list/Browser/Table/Sorting.js +8 -18
- package/Presentation/configs/list/Browser/Table/Sorting.js.map +1 -1
- package/Presentation/configs/list/Browser/Table/index.d.ts +1 -1
- package/Presentation/configs/list/Browser/Table/index.js +5 -11
- package/Presentation/configs/list/Browser/Table/index.js.map +1 -1
- package/Presentation/configs/list/Browser/index.d.ts +1 -1
- package/Presentation/configs/list/Browser/index.js +7 -13
- package/Presentation/configs/list/Browser/index.js.map +1 -1
- package/Presentation/configs/list/TrashBinListConfig.d.ts +1 -1
- package/Presentation/configs/list/TrashBinListConfig.js +22 -33
- package/Presentation/configs/list/TrashBinListConfig.js.map +1 -1
- package/Presentation/configs/list/index.js +1 -16
- package/Presentation/configs/list/index.js.map +1 -1
- package/Presentation/hooks/index.js +4 -49
- package/Presentation/hooks/index.js.map +1 -1
- package/Presentation/hooks/useDeleteTrashBinItem.js +27 -32
- package/Presentation/hooks/useDeleteTrashBinItem.js.map +1 -1
- package/Presentation/hooks/useRestoreTrashBinItem.js +36 -43
- package/Presentation/hooks/useRestoreTrashBinItem.js.map +1 -1
- package/Presentation/hooks/useTrashBin.d.ts +1 -1
- package/Presentation/hooks/useTrashBin.js +41 -77
- package/Presentation/hooks/useTrashBin.js.map +1 -1
- package/Presentation/hooks/useTrashBinItem.js +7 -12
- package/Presentation/hooks/useTrashBinItem.js.map +1 -1
- package/Presentation/index.js +21 -48
- package/Presentation/index.js.map +1 -1
- package/UseCases/BulkAction/BulkActionUseCase.js +8 -21
- package/UseCases/BulkAction/BulkActionUseCase.js.map +1 -1
- package/UseCases/BulkAction/IBulkActionUseCase.js +1 -5
- package/UseCases/BulkAction/index.js +2 -27
- package/UseCases/BulkAction/index.js.map +1 -1
- package/UseCases/DeleteItem/DeleteItemUseCase.js +8 -21
- package/UseCases/DeleteItem/DeleteItemUseCase.js.map +1 -1
- package/UseCases/DeleteItem/IDeleteItemUseCase.js +1 -5
- package/UseCases/DeleteItem/index.js +2 -27
- package/UseCases/DeleteItem/index.js.map +1 -1
- package/UseCases/GetRestoredItem/GetRestoredItemUseCase.js +9 -24
- package/UseCases/GetRestoredItem/GetRestoredItemUseCase.js.map +1 -1
- package/UseCases/GetRestoredItem/IGetRestoredItemUseCase.js +1 -5
- package/UseCases/GetRestoredItem/index.js +2 -27
- package/UseCases/GetRestoredItem/index.js.map +1 -1
- package/UseCases/ListItems/IListItemsUseCase.js +1 -5
- package/UseCases/ListItems/ListItemsUseCase.js +10 -22
- package/UseCases/ListItems/ListItemsUseCase.js.map +1 -1
- package/UseCases/ListItems/ListItemsUseCaseWithSearch.js +12 -25
- package/UseCases/ListItems/ListItemsUseCaseWithSearch.js.map +1 -1
- package/UseCases/ListItems/ListItemsUseCaseWithSorting.js +13 -28
- package/UseCases/ListItems/ListItemsUseCaseWithSorting.js.map +1 -1
- package/UseCases/ListItems/index.js +4 -49
- package/UseCases/ListItems/index.js.map +1 -1
- package/UseCases/ListMoreItems/IListMoreItemsUseCase.js +1 -5
- package/UseCases/ListMoreItems/ListMoreItemsUseCase.js +8 -21
- package/UseCases/ListMoreItems/ListMoreItemsUseCase.js.map +1 -1
- package/UseCases/ListMoreItems/index.js +2 -27
- package/UseCases/ListMoreItems/index.js.map +1 -1
- package/UseCases/RestoreItem/IRestoreItemUseCase.js +1 -5
- package/UseCases/RestoreItem/RestoreItemUseCase.js +8 -21
- package/UseCases/RestoreItem/RestoreItemUseCase.js.map +1 -1
- package/UseCases/RestoreItem/index.js +2 -27
- package/UseCases/RestoreItem/index.js.map +1 -1
- package/UseCases/SearchItems/ISearchItemsUseCase.js +1 -5
- package/UseCases/SearchItems/SearchItemsUseCase.js +8 -21
- package/UseCases/SearchItems/SearchItemsUseCase.js.map +1 -1
- package/UseCases/SearchItems/index.js +2 -27
- package/UseCases/SearchItems/index.js.map +1 -1
- package/UseCases/SelectAllItems/ISelectAllItemsUseCase.js +1 -5
- package/UseCases/SelectAllItems/SelectAllItemsUseCase.js +8 -21
- package/UseCases/SelectAllItems/SelectAllItemsUseCase.js.map +1 -1
- package/UseCases/SelectAllItems/index.js +2 -27
- package/UseCases/SelectAllItems/index.js.map +1 -1
- package/UseCases/SelectItems/ISelectItemsUseCase.js +1 -5
- package/UseCases/SelectItems/SelectItemsUseCase.js +8 -21
- package/UseCases/SelectItems/SelectItemsUseCase.js.map +1 -1
- package/UseCases/SelectItems/index.js +2 -27
- package/UseCases/SelectItems/index.js.map +1 -1
- package/UseCases/SortItems/ISortItemsUseCase.js +1 -5
- package/UseCases/SortItems/SortItemsUseCase.js +8 -21
- package/UseCases/SortItems/SortItemsUseCase.js.map +1 -1
- package/UseCases/SortItems/index.js +2 -27
- package/UseCases/SortItems/index.js.map +1 -1
- package/UseCases/UnSelectAllItems/IUnselectAllItemsUseCase.js +1 -5
- package/UseCases/UnSelectAllItems/UnselectAllItemsUseCase.js +8 -21
- package/UseCases/UnSelectAllItems/UnselectAllItemsUseCase.js.map +1 -1
- package/UseCases/UnSelectAllItems/index.js +2 -27
- package/UseCases/UnSelectAllItems/index.js.map +1 -1
- package/UseCases/index.js +11 -126
- package/UseCases/index.js.map +1 -1
- package/index.js +3 -38
- package/index.js.map +1 -1
- package/package.json +11 -11
- package/types.js +1 -7
- package/types.js.map +1 -1
- package/Presentation/components/BottomInfoBar/BottomInfoBar.styled.d.ts +0 -21
- package/Presentation/components/BottomInfoBar/BottomInfoBar.styled.js +0 -81
- package/Presentation/components/BottomInfoBar/BottomInfoBar.styled.js.map +0 -1
- package/Presentation/components/BulkActions/BulkActions/BulkActions.styled.d.ts +0 -13
- package/Presentation/components/BulkActions/BulkActions/BulkActions.styled.js +0 -46
- package/Presentation/components/BulkActions/BulkActions/BulkActions.styled.js.map +0 -1
- package/Presentation/components/BulkActions/RestoreItems/RestoredItems.styled.d.ts +0 -5
- package/Presentation/components/BulkActions/RestoreItems/RestoredItems.styled.js +0 -25
- package/Presentation/components/BulkActions/RestoreItems/RestoredItems.styled.js.map +0 -1
- package/Presentation/components/Cells/CellTitle/CellTitle.styled.d.ts +0 -12
- package/Presentation/components/Cells/CellTitle/CellTitle.styled.js +0 -54
- package/Presentation/components/Cells/CellTitle/CellTitle.styled.js.map +0 -1
- package/Presentation/components/Empty/Empty.styled.d.ts +0 -9
- package/Presentation/components/Empty/Empty.styled.js +0 -39
- package/Presentation/components/Empty/Empty.styled.js.map +0 -1
- package/Presentation/components/SearchInput/SearchInput.styled.d.ts +0 -11
- package/Presentation/components/SearchInput/SearchInput.styled.js +0 -55
- package/Presentation/components/SearchInput/SearchInput.styled.js.map +0 -1
- package/Presentation/components/SelectAll/Messages.d.ts +0 -7
- package/Presentation/components/SelectAll/Messages.js +0 -29
- package/Presentation/components/SelectAll/Messages.js.map +0 -1
- package/Presentation/components/SelectAll/SelectAll.d.ts +0 -3
- package/Presentation/components/SelectAll/SelectAll.js +0 -35
- package/Presentation/components/SelectAll/SelectAll.js.map +0 -1
- package/Presentation/components/SelectAll/SelectAll.styled.d.ts +0 -12
- package/Presentation/components/SelectAll/SelectAll.styled.js +0 -54
- package/Presentation/components/SelectAll/SelectAll.styled.js.map +0 -1
- package/Presentation/components/SelectAll/index.d.ts +0 -1
- package/Presentation/components/SelectAll/index.js +0 -18
- package/Presentation/components/SelectAll/index.js.map +0 -1
- package/Presentation/components/Title/Title.styled.d.ts +0 -4
- package/Presentation/components/Title/Title.styled.js +0 -26
- package/Presentation/components/Title/Title.styled.js.map +0 -1
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var _Title = require("./Title");
|
|
7
|
-
Object.keys(_Title).forEach(function (key) {
|
|
8
|
-
if (key === "default" || key === "__esModule") return;
|
|
9
|
-
if (key in exports && exports[key] === _Title[key]) return;
|
|
10
|
-
Object.defineProperty(exports, key, {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function get() {
|
|
13
|
-
return _Title[key];
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
});
|
|
1
|
+
export * from "./Title";
|
|
17
2
|
|
|
18
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[
|
|
1
|
+
{"version":3,"names":[],"sources":["index.tsx"],"sourcesContent":["export * from \"./Title\";\n"],"mappings":"AAAA","ignoreList":[]}
|
|
@@ -1,45 +1,37 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
var TrashBinOverlay = exports.TrashBinOverlay = function TrashBinOverlay(props) {
|
|
21
|
-
var _useTrashBin = (0, _hooks.useTrashBin)(),
|
|
22
|
-
listMoreItems = _useTrashBin.listMoreItems,
|
|
23
|
-
vm = _useTrashBin.vm;
|
|
24
|
-
var onTableScroll = (0, _debounce.default)(async function (_ref) {
|
|
25
|
-
var scrollFrame = _ref.scrollFrame;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import debounce from "lodash/debounce";
|
|
3
|
+
import { OverlayLayout } from "@webiny/app-admin";
|
|
4
|
+
import { Scrollbar } from "@webiny/admin-ui";
|
|
5
|
+
import { Title } from "../Title";
|
|
6
|
+
import { SearchInput } from "../SearchInput";
|
|
7
|
+
import { BulkActions } from "../BulkActions";
|
|
8
|
+
import { Empty } from "../Empty";
|
|
9
|
+
import { Table } from "../Table";
|
|
10
|
+
import { BottomInfoBar } from "../BottomInfoBar";
|
|
11
|
+
import { useTrashBin } from "../../hooks";
|
|
12
|
+
export const TrashBinOverlay = props => {
|
|
13
|
+
const {
|
|
14
|
+
listMoreItems,
|
|
15
|
+
vm
|
|
16
|
+
} = useTrashBin();
|
|
17
|
+
const onTableScroll = debounce(async ({
|
|
18
|
+
scrollFrame
|
|
19
|
+
}) => {
|
|
26
20
|
if (scrollFrame.top > 0.8) {
|
|
27
21
|
await listMoreItems();
|
|
28
22
|
}
|
|
29
23
|
}, 200);
|
|
30
|
-
return /*#__PURE__*/
|
|
24
|
+
return /*#__PURE__*/React.createElement(OverlayLayout, {
|
|
31
25
|
onExited: props.onExited,
|
|
32
|
-
barLeft: /*#__PURE__*/
|
|
26
|
+
barLeft: /*#__PURE__*/React.createElement(Title, {
|
|
33
27
|
title: props.title
|
|
34
28
|
}),
|
|
35
|
-
barMiddle: /*#__PURE__*/
|
|
36
|
-
}, /*#__PURE__*/
|
|
37
|
-
onScrollFrame:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
}, vm.isEmptyView ? /*#__PURE__*/_react.default.createElement(_Empty.Empty, null) : /*#__PURE__*/_react.default.createElement(_Table.Table, null)), /*#__PURE__*/_react.default.createElement(_BottomInfoBar.BottomInfoBar, null));
|
|
29
|
+
barMiddle: /*#__PURE__*/React.createElement(SearchInput, null)
|
|
30
|
+
}, /*#__PURE__*/React.createElement(BulkActions, null), /*#__PURE__*/React.createElement(Scrollbar, {
|
|
31
|
+
onScrollFrame: scrollFrame => onTableScroll({
|
|
32
|
+
scrollFrame
|
|
33
|
+
})
|
|
34
|
+
}, vm.isEmptyView ? /*#__PURE__*/React.createElement(Empty, null) : /*#__PURE__*/React.createElement(Table, null)), /*#__PURE__*/React.createElement(BottomInfoBar, null));
|
|
43
35
|
};
|
|
44
36
|
|
|
45
37
|
//# sourceMappingURL=TrashBinOverlay.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["React","debounce","OverlayLayout","Scrollbar","Title","SearchInput","BulkActions","Empty","Table","BottomInfoBar","useTrashBin","TrashBinOverlay","props","listMoreItems","vm","onTableScroll","scrollFrame","top","createElement","onExited","barLeft","title","barMiddle","onScrollFrame","isEmptyView"],"sources":["TrashBinOverlay.tsx"],"sourcesContent":["import React from \"react\";\nimport debounce from \"lodash/debounce\";\nimport { OverlayLayout } from \"@webiny/app-admin\";\nimport { Scrollbar } from \"@webiny/admin-ui\";\nimport { Title } from \"~/Presentation/components/Title\";\nimport { SearchInput } from \"~/Presentation/components/SearchInput\";\nimport { BulkActions } from \"~/Presentation/components/BulkActions\";\nimport { Empty } from \"~/Presentation/components/Empty\";\nimport { Table } from \"~/Presentation/components/Table\";\nimport { BottomInfoBar } from \"~/Presentation/components/BottomInfoBar\";\nimport { useTrashBin } from \"~/Presentation/hooks\";\n\ninterface TrashBinOverlayProps {\n title: string;\n onExited: () => void;\n}\n\nexport const TrashBinOverlay = (props: TrashBinOverlayProps) => {\n const { listMoreItems, vm } = useTrashBin();\n\n const onTableScroll = debounce(async ({ scrollFrame }) => {\n if (scrollFrame.top > 0.8) {\n await listMoreItems();\n }\n }, 200);\n\n return (\n <OverlayLayout\n onExited={props.onExited}\n barLeft={<Title title={props.title} />}\n barMiddle={<SearchInput />}\n >\n <BulkActions />\n <Scrollbar onScrollFrame={scrollFrame => onTableScroll({ scrollFrame })}>\n {vm.isEmptyView ? <Empty /> : <Table />}\n </Scrollbar>\n <BottomInfoBar />\n </OverlayLayout>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,iBAAiB;AACtC,SAASC,aAAa,QAAQ,mBAAmB;AACjD,SAASC,SAAS,QAAQ,kBAAkB;AAC5C,SAASC,KAAK;AACd,SAASC,WAAW;AACpB,SAASC,WAAW;AACpB,SAASC,KAAK;AACd,SAASC,KAAK;AACd,SAASC,aAAa;AACtB,SAASC,WAAW;AAOpB,OAAO,MAAMC,eAAe,GAAIC,KAA2B,IAAK;EAC5D,MAAM;IAAEC,aAAa;IAAEC;EAAG,CAAC,GAAGJ,WAAW,CAAC,CAAC;EAE3C,MAAMK,aAAa,GAAGd,QAAQ,CAAC,OAAO;IAAEe;EAAY,CAAC,KAAK;IACtD,IAAIA,WAAW,CAACC,GAAG,GAAG,GAAG,EAAE;MACvB,MAAMJ,aAAa,CAAC,CAAC;IACzB;EACJ,CAAC,EAAE,GAAG,CAAC;EAEP,oBACIb,KAAA,CAAAkB,aAAA,CAAChB,aAAa;IACViB,QAAQ,EAAEP,KAAK,CAACO,QAAS;IACzBC,OAAO,eAAEpB,KAAA,CAAAkB,aAAA,CAACd,KAAK;MAACiB,KAAK,EAAET,KAAK,CAACS;IAAM,CAAE,CAAE;IACvCC,SAAS,eAAEtB,KAAA,CAAAkB,aAAA,CAACb,WAAW,MAAE;EAAE,gBAE3BL,KAAA,CAAAkB,aAAA,CAACZ,WAAW,MAAE,CAAC,eACfN,KAAA,CAAAkB,aAAA,CAACf,SAAS;IAACoB,aAAa,EAAEP,WAAW,IAAID,aAAa,CAAC;MAAEC;IAAY,CAAC;EAAE,GACnEF,EAAE,CAACU,WAAW,gBAAGxB,KAAA,CAAAkB,aAAA,CAACX,KAAK,MAAE,CAAC,gBAAGP,KAAA,CAAAkB,aAAA,CAACV,KAAK,MAAE,CAC/B,CAAC,eACZR,KAAA,CAAAkB,aAAA,CAACT,aAAa,MAAE,CACL,CAAC;AAExB,CAAC","ignoreList":[]}
|
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var _TrashBinOverlay = require("./TrashBinOverlay");
|
|
7
|
-
Object.keys(_TrashBinOverlay).forEach(function (key) {
|
|
8
|
-
if (key === "default" || key === "__esModule") return;
|
|
9
|
-
if (key in exports && exports[key] === _TrashBinOverlay[key]) return;
|
|
10
|
-
Object.defineProperty(exports, key, {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function get() {
|
|
13
|
-
return _TrashBinOverlay[key];
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
});
|
|
1
|
+
export * from "./TrashBinOverlay";
|
|
17
2
|
|
|
18
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./TrashBinOverlay\";\n"],"mappings":"AAAA","ignoreList":[]}
|
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var _list = require("./list");
|
|
7
|
-
Object.keys(_list).forEach(function (key) {
|
|
8
|
-
if (key === "default" || key === "__esModule") return;
|
|
9
|
-
if (key in exports && exports[key] === _list[key]) return;
|
|
10
|
-
Object.defineProperty(exports, key, {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function get() {
|
|
13
|
-
return _list[key];
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
});
|
|
1
|
+
export * from "./list";
|
|
17
2
|
|
|
18
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./list\";\n"],"mappings":"AAAA","ignoreList":[]}
|
|
@@ -1,73 +1,62 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
_ref$before = _ref.before,
|
|
17
|
-
before = _ref$before === void 0 ? undefined : _ref$before,
|
|
18
|
-
_ref$remove = _ref.remove,
|
|
19
|
-
remove = _ref$remove === void 0 ? false : _ref$remove,
|
|
20
|
-
element = _ref.element;
|
|
21
|
-
var getId = (0, _reactProperties.useIdGenerator)("bulkAction");
|
|
22
|
-
var placeAfter = after !== undefined ? getId(after) : undefined;
|
|
23
|
-
var placeBefore = before !== undefined ? getId(before) : undefined;
|
|
24
|
-
return /*#__PURE__*/_react.default.createElement(_reactProperties.Property, {
|
|
1
|
+
import React, { useCallback, useEffect, useRef } from "react";
|
|
2
|
+
import { useButtons, useDialogWithReport, Worker } from "@webiny/app-admin";
|
|
3
|
+
import { Property, useIdGenerator } from "@webiny/react-properties";
|
|
4
|
+
import { useTrashBin } from "../../../hooks";
|
|
5
|
+
export const BaseBulkAction = ({
|
|
6
|
+
name,
|
|
7
|
+
after = undefined,
|
|
8
|
+
before = undefined,
|
|
9
|
+
remove = false,
|
|
10
|
+
element
|
|
11
|
+
}) => {
|
|
12
|
+
const getId = useIdGenerator("bulkAction");
|
|
13
|
+
const placeAfter = after !== undefined ? getId(after) : undefined;
|
|
14
|
+
const placeBefore = before !== undefined ? getId(before) : undefined;
|
|
15
|
+
return /*#__PURE__*/React.createElement(Property, {
|
|
25
16
|
id: "browser",
|
|
26
17
|
name: "browser"
|
|
27
|
-
}, /*#__PURE__*/
|
|
18
|
+
}, /*#__PURE__*/React.createElement(Property, {
|
|
28
19
|
id: getId(name),
|
|
29
20
|
name: "bulkActions",
|
|
30
21
|
remove: remove,
|
|
31
22
|
array: true,
|
|
32
23
|
before: placeBefore,
|
|
33
24
|
after: placeAfter
|
|
34
|
-
}, /*#__PURE__*/
|
|
25
|
+
}, /*#__PURE__*/React.createElement(Property, {
|
|
35
26
|
id: getId(name, "name"),
|
|
36
27
|
name: "name",
|
|
37
28
|
value: name
|
|
38
|
-
}), element ? /*#__PURE__*/
|
|
29
|
+
}), element ? /*#__PURE__*/React.createElement(Property, {
|
|
39
30
|
id: getId(name, "element"),
|
|
40
31
|
name: "element",
|
|
41
32
|
value: element
|
|
42
33
|
}) : null));
|
|
43
34
|
};
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
vm
|
|
47
|
-
selectItems
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
35
|
+
const useWorker = () => {
|
|
36
|
+
const {
|
|
37
|
+
vm,
|
|
38
|
+
selectItems
|
|
39
|
+
} = useTrashBin();
|
|
40
|
+
const {
|
|
41
|
+
current: worker
|
|
42
|
+
} = useRef(new Worker());
|
|
43
|
+
useEffect(() => {
|
|
51
44
|
worker.items = vm.selectedItems;
|
|
52
45
|
}, [vm.selectedItems.length]);
|
|
53
46
|
|
|
54
47
|
// Reset selected items in both repository and Worker
|
|
55
|
-
|
|
48
|
+
const resetItems = useCallback(() => {
|
|
56
49
|
worker.items = [];
|
|
57
50
|
selectItems([]);
|
|
58
51
|
}, []);
|
|
59
52
|
return {
|
|
60
53
|
items: vm.selectedItems,
|
|
61
|
-
process:
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
processInSeries: async function processInSeries(callback, chunkSize) {
|
|
65
|
-
return worker.processInSeries(callback, chunkSize);
|
|
66
|
-
},
|
|
67
|
-
processInBulk: async function processInBulk(callback, data) {
|
|
54
|
+
process: callback => worker.process(callback),
|
|
55
|
+
processInSeries: async (callback, chunkSize) => worker.processInSeries(callback, chunkSize),
|
|
56
|
+
processInBulk: async (callback, data) => {
|
|
68
57
|
await callback({
|
|
69
58
|
search: vm.searchQuery,
|
|
70
|
-
data
|
|
59
|
+
data
|
|
71
60
|
});
|
|
72
61
|
},
|
|
73
62
|
resetItems: resetItems,
|
|
@@ -75,10 +64,10 @@ var useWorker = function useWorker() {
|
|
|
75
64
|
isSelectedAll: vm.isSelectedAll
|
|
76
65
|
};
|
|
77
66
|
};
|
|
78
|
-
|
|
79
|
-
useButtons
|
|
80
|
-
useWorker
|
|
81
|
-
useDialog:
|
|
67
|
+
export const BulkAction = Object.assign(BaseBulkAction, {
|
|
68
|
+
useButtons,
|
|
69
|
+
useWorker,
|
|
70
|
+
useDialog: useDialogWithReport
|
|
82
71
|
});
|
|
83
72
|
|
|
84
73
|
//# sourceMappingURL=BulkAction.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["React","useCallback","useEffect","useRef","useButtons","useDialogWithReport","Worker","Property","useIdGenerator","useTrashBin","BaseBulkAction","name","after","undefined","before","remove","element","getId","placeAfter","placeBefore","createElement","id","array","value","useWorker","vm","selectItems","current","worker","items","selectedItems","length","resetItems","process","callback","processInSeries","chunkSize","processInBulk","data","search","searchQuery","results","isSelectedAll","BulkAction","Object","assign","useDialog"],"sources":["BulkAction.tsx"],"sourcesContent":["import React, { useCallback, useEffect, useRef } from \"react\";\nimport { CallbackParams, useButtons, useDialogWithReport, Worker } from \"@webiny/app-admin\";\nimport { Property, useIdGenerator } from \"@webiny/react-properties\";\nimport { useTrashBin } from \"~/Presentation/hooks\";\nimport { TrashBinItemDTO } from \"~/Domain\";\nimport { TrashBinBulkActionsParams } from \"~/types\";\n\nexport interface BulkActionConfig {\n name: string;\n element: React.ReactElement;\n}\n\nexport interface BulkActionProps {\n name: string;\n remove?: boolean;\n before?: string;\n after?: string;\n element?: React.ReactElement;\n}\n\nexport const BaseBulkAction = ({\n name,\n after = undefined,\n before = undefined,\n remove = false,\n element\n}: BulkActionProps) => {\n const getId = useIdGenerator(\"bulkAction\");\n\n const placeAfter = after !== undefined ? getId(after) : undefined;\n const placeBefore = before !== undefined ? getId(before) : undefined;\n\n return (\n <Property id=\"browser\" name={\"browser\"}>\n <Property\n id={getId(name)}\n name={\"bulkActions\"}\n remove={remove}\n array={true}\n before={placeBefore}\n after={placeAfter}\n >\n <Property id={getId(name, \"name\")} name={\"name\"} value={name} />\n {element ? (\n <Property id={getId(name, \"element\")} name={\"element\"} value={element} />\n ) : null}\n </Property>\n </Property>\n );\n};\n\nconst useWorker = () => {\n const { vm, selectItems } = useTrashBin();\n const { current: worker } = useRef(new Worker<TrashBinItemDTO>());\n\n useEffect(() => {\n worker.items = vm.selectedItems;\n }, [vm.selectedItems.length]);\n\n // Reset selected items in both repository and Worker\n const resetItems = useCallback(() => {\n worker.items = [];\n selectItems([]);\n }, []);\n\n return {\n items: vm.selectedItems,\n process: (callback: (items: TrashBinItemDTO[]) => void) => worker.process(callback),\n processInSeries: async (\n callback: ({\n item,\n allItems,\n report\n }: CallbackParams<TrashBinItemDTO>) => Promise<void>,\n chunkSize?: number\n ) => worker.processInSeries(callback, chunkSize),\n processInBulk: async (\n callback: (params: TrashBinBulkActionsParams) => Promise<void>,\n data?: Record<string, any>\n ) => {\n await callback({ search: vm.searchQuery, data });\n },\n resetItems: resetItems,\n results: worker.results,\n isSelectedAll: vm.isSelectedAll\n };\n};\n\nexport const BulkAction = Object.assign(BaseBulkAction, {\n useButtons,\n useWorker,\n useDialog: useDialogWithReport\n});\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,SAAS,EAAEC,MAAM,QAAQ,OAAO;AAC7D,SAAyBC,UAAU,EAAEC,mBAAmB,EAAEC,MAAM,QAAQ,mBAAmB;AAC3F,SAASC,QAAQ,EAAEC,cAAc,QAAQ,0BAA0B;AACnE,SAASC,WAAW;AAiBpB,OAAO,MAAMC,cAAc,GAAGA,CAAC;EAC3BC,IAAI;EACJC,KAAK,GAAGC,SAAS;EACjBC,MAAM,GAAGD,SAAS;EAClBE,MAAM,GAAG,KAAK;EACdC;AACa,CAAC,KAAK;EACnB,MAAMC,KAAK,GAAGT,cAAc,CAAC,YAAY,CAAC;EAE1C,MAAMU,UAAU,GAAGN,KAAK,KAAKC,SAAS,GAAGI,KAAK,CAACL,KAAK,CAAC,GAAGC,SAAS;EACjE,MAAMM,WAAW,GAAGL,MAAM,KAAKD,SAAS,GAAGI,KAAK,CAACH,MAAM,CAAC,GAAGD,SAAS;EAEpE,oBACIb,KAAA,CAAAoB,aAAA,CAACb,QAAQ;IAACc,EAAE,EAAC,SAAS;IAACV,IAAI,EAAE;EAAU,gBACnCX,KAAA,CAAAoB,aAAA,CAACb,QAAQ;IACLc,EAAE,EAAEJ,KAAK,CAACN,IAAI,CAAE;IAChBA,IAAI,EAAE,aAAc;IACpBI,MAAM,EAAEA,MAAO;IACfO,KAAK,EAAE,IAAK;IACZR,MAAM,EAAEK,WAAY;IACpBP,KAAK,EAAEM;EAAW,gBAElBlB,KAAA,CAAAoB,aAAA,CAACb,QAAQ;IAACc,EAAE,EAAEJ,KAAK,CAACN,IAAI,EAAE,MAAM,CAAE;IAACA,IAAI,EAAE,MAAO;IAACY,KAAK,EAAEZ;EAAK,CAAE,CAAC,EAC/DK,OAAO,gBACJhB,KAAA,CAAAoB,aAAA,CAACb,QAAQ;IAACc,EAAE,EAAEJ,KAAK,CAACN,IAAI,EAAE,SAAS,CAAE;IAACA,IAAI,EAAE,SAAU;IAACY,KAAK,EAAEP;EAAQ,CAAE,CAAC,GACzE,IACE,CACJ,CAAC;AAEnB,CAAC;AAED,MAAMQ,SAAS,GAAGA,CAAA,KAAM;EACpB,MAAM;IAAEC,EAAE;IAAEC;EAAY,CAAC,GAAGjB,WAAW,CAAC,CAAC;EACzC,MAAM;IAAEkB,OAAO,EAAEC;EAAO,CAAC,GAAGzB,MAAM,CAAC,IAAIG,MAAM,CAAkB,CAAC,CAAC;EAEjEJ,SAAS,CAAC,MAAM;IACZ0B,MAAM,CAACC,KAAK,GAAGJ,EAAE,CAACK,aAAa;EACnC,CAAC,EAAE,CAACL,EAAE,CAACK,aAAa,CAACC,MAAM,CAAC,CAAC;;EAE7B;EACA,MAAMC,UAAU,GAAG/B,WAAW,CAAC,MAAM;IACjC2B,MAAM,CAACC,KAAK,GAAG,EAAE;IACjBH,WAAW,CAAC,EAAE,CAAC;EACnB,CAAC,EAAE,EAAE,CAAC;EAEN,OAAO;IACHG,KAAK,EAAEJ,EAAE,CAACK,aAAa;IACvBG,OAAO,EAAGC,QAA4C,IAAKN,MAAM,CAACK,OAAO,CAACC,QAAQ,CAAC;IACnFC,eAAe,EAAE,MAAAA,CACbD,QAIoD,EACpDE,SAAkB,KACjBR,MAAM,CAACO,eAAe,CAACD,QAAQ,EAAEE,SAAS,CAAC;IAChDC,aAAa,EAAE,MAAAA,CACXH,QAA8D,EAC9DI,IAA0B,KACzB;MACD,MAAMJ,QAAQ,CAAC;QAAEK,MAAM,EAAEd,EAAE,CAACe,WAAW;QAAEF;MAAK,CAAC,CAAC;IACpD,CAAC;IACDN,UAAU,EAAEA,UAAU;IACtBS,OAAO,EAAEb,MAAM,CAACa,OAAO;IACvBC,aAAa,EAAEjB,EAAE,CAACiB;EACtB,CAAC;AACL,CAAC;AAED,OAAO,MAAMC,UAAU,GAAGC,MAAM,CAACC,MAAM,CAACnC,cAAc,EAAE;EACpDN,UAAU;EACVoB,SAAS;EACTsB,SAAS,EAAEzC;AACf,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,26 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
get: function get() {
|
|
11
|
-
return _appAco.RecordActionConfig;
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
var _react = _interopRequireDefault(require("react"));
|
|
15
|
-
var _reactComposition = require("@webiny/react-composition");
|
|
16
|
-
var _appAco = require("@webiny/app-aco");
|
|
17
|
-
var Record = _appAco.AcoConfig.Record;
|
|
18
|
-
var BaseEntryAction = function BaseEntryAction(props) {
|
|
19
|
-
return /*#__PURE__*/_react.default.createElement(_reactComposition.CompositionScope, {
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CompositionScope } from "@webiny/react-composition";
|
|
3
|
+
import { AcoConfig, RecordActionConfig } from "@webiny/app-aco";
|
|
4
|
+
const {
|
|
5
|
+
Record
|
|
6
|
+
} = AcoConfig;
|
|
7
|
+
export { RecordActionConfig as EntryActionConfig };
|
|
8
|
+
const BaseEntryAction = props => {
|
|
9
|
+
return /*#__PURE__*/React.createElement(CompositionScope, {
|
|
20
10
|
name: "trash"
|
|
21
|
-
}, /*#__PURE__*/
|
|
11
|
+
}, /*#__PURE__*/React.createElement(AcoConfig, null, /*#__PURE__*/React.createElement(Record.Action, props)));
|
|
22
12
|
};
|
|
23
|
-
|
|
13
|
+
export const EntryAction = Object.assign(BaseEntryAction, {
|
|
24
14
|
OptionsMenuItem: Record.Action.OptionsMenuItem
|
|
25
15
|
});
|
|
26
16
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["React","CompositionScope","AcoConfig","RecordActionConfig","Record","EntryActionConfig","BaseEntryAction","props","createElement","name","Action","EntryAction","Object","assign","OptionsMenuItem"],"sources":["EntryAction.tsx"],"sourcesContent":["import React from \"react\";\nimport { CompositionScope } from \"@webiny/react-composition\";\nimport { AcoConfig, RecordActionConfig } from \"@webiny/app-aco\";\n\nconst { Record } = AcoConfig;\n\nexport { RecordActionConfig as EntryActionConfig };\n\ntype EntryActionProps = React.ComponentProps<typeof AcoConfig.Record.Action>;\n\nconst BaseEntryAction = (props: EntryActionProps) => {\n return (\n <CompositionScope name={\"trash\"}>\n <AcoConfig>\n <Record.Action {...props} />\n </AcoConfig>\n </CompositionScope>\n );\n};\n\nexport const EntryAction = Object.assign(BaseEntryAction, {\n OptionsMenuItem: Record.Action.OptionsMenuItem\n});\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,gBAAgB,QAAQ,2BAA2B;AAC5D,SAASC,SAAS,EAAEC,kBAAkB,QAAQ,iBAAiB;AAE/D,MAAM;EAAEC;AAAO,CAAC,GAAGF,SAAS;AAE5B,SAASC,kBAAkB,IAAIE,iBAAiB;AAIhD,MAAMC,eAAe,GAAIC,KAAuB,IAAK;EACjD,oBACIP,KAAA,CAAAQ,aAAA,CAACP,gBAAgB;IAACQ,IAAI,EAAE;EAAQ,gBAC5BT,KAAA,CAAAQ,aAAA,CAACN,SAAS,qBACNF,KAAA,CAAAQ,aAAA,CAACJ,MAAM,CAACM,MAAM,EAAKH,KAAQ,CACpB,CACG,CAAC;AAE3B,CAAC;AAED,OAAO,MAAMI,WAAW,GAAGC,MAAM,CAACC,MAAM,CAACP,eAAe,EAAE;EACtDQ,eAAe,EAAEV,MAAM,CAACM,MAAM,CAACI;AACnC,CAAC,CAAC","ignoreList":[]}
|
|
@@ -4,6 +4,6 @@ import { TrashBinItemDTO } from "../../../../../Domain";
|
|
|
4
4
|
export { ColumnConfig };
|
|
5
5
|
type ColumnProps = React.ComponentProps<typeof AcoConfig.Table.Column>;
|
|
6
6
|
export declare const Column: ((props: ColumnProps) => React.JSX.Element) & {
|
|
7
|
-
useTableRow: <TUserRow = Record<string, any>>() => import("@webiny/app-aco").TableRowContextData<TrashBinItemDTO & import("@webiny/ui/DataTable").
|
|
7
|
+
useTableRow: <TUserRow = Record<string, any>>() => import("@webiny/app-aco").TableRowContextData<TrashBinItemDTO & import("@webiny/admin-ui/DataTable/DataTable").DataTableDefaultData & TUserRow>;
|
|
8
8
|
isFolderRow: (row: import("@webiny/app-aco/table.types").BaseTableItem) => row is import("@webiny/app-aco/table.types").FolderTableItem;
|
|
9
9
|
};
|
|
@@ -1,23 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function get() {
|
|
11
|
-
return _appAco.TableColumnConfig;
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
var _react = _interopRequireDefault(require("react"));
|
|
15
|
-
var _appAco = require("@webiny/app-aco");
|
|
16
|
-
var Table = _appAco.AcoConfig.Table;
|
|
17
|
-
var BaseColumn = function BaseColumn(props) {
|
|
18
|
-
return /*#__PURE__*/_react.default.createElement(_appAco.AcoConfig, null, /*#__PURE__*/_react.default.createElement(Table.Column, props));
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AcoConfig, TableColumnConfig as ColumnConfig } from "@webiny/app-aco";
|
|
3
|
+
const {
|
|
4
|
+
Table
|
|
5
|
+
} = AcoConfig;
|
|
6
|
+
export { ColumnConfig };
|
|
7
|
+
const BaseColumn = props => {
|
|
8
|
+
return /*#__PURE__*/React.createElement(AcoConfig, null, /*#__PURE__*/React.createElement(Table.Column, props));
|
|
19
9
|
};
|
|
20
|
-
|
|
10
|
+
export const Column = Object.assign(BaseColumn, {
|
|
21
11
|
useTableRow: Table.Column.createUseTableRow(),
|
|
22
12
|
isFolderRow: Table.Column.isFolderRow
|
|
23
13
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["React","AcoConfig","TableColumnConfig","ColumnConfig","Table","BaseColumn","props","createElement","Column","Object","assign","useTableRow","createUseTableRow","isFolderRow"],"sources":["Column.tsx"],"sourcesContent":["import React from \"react\";\nimport { AcoConfig, TableColumnConfig as ColumnConfig } from \"@webiny/app-aco\";\nimport { TrashBinItemDTO } from \"~/Domain\";\n\nconst { Table } = AcoConfig;\n\nexport { ColumnConfig };\n\ntype ColumnProps = React.ComponentProps<typeof AcoConfig.Table.Column>;\n\nconst BaseColumn = (props: ColumnProps) => {\n return (\n <AcoConfig>\n <Table.Column {...props} />\n </AcoConfig>\n );\n};\n\nexport const Column = Object.assign(BaseColumn, {\n useTableRow: Table.Column.createUseTableRow<TrashBinItemDTO>(),\n isFolderRow: Table.Column.isFolderRow\n});\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,SAAS,EAAEC,iBAAiB,IAAIC,YAAY,QAAQ,iBAAiB;AAG9E,MAAM;EAAEC;AAAM,CAAC,GAAGH,SAAS;AAE3B,SAASE,YAAY;AAIrB,MAAME,UAAU,GAAIC,KAAkB,IAAK;EACvC,oBACIN,KAAA,CAAAO,aAAA,CAACN,SAAS,qBACND,KAAA,CAAAO,aAAA,CAACH,KAAK,CAACI,MAAM,EAAKF,KAAQ,CACnB,CAAC;AAEpB,CAAC;AAED,OAAO,MAAME,MAAM,GAAGC,MAAM,CAACC,MAAM,CAACL,UAAU,EAAE;EAC5CM,WAAW,EAAEP,KAAK,CAACI,MAAM,CAACI,iBAAiB,CAAkB,CAAC;EAC9DC,WAAW,EAAET,KAAK,CAACI,MAAM,CAACK;AAC9B,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,21 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function get() {
|
|
11
|
-
return _appAco.TableSortingConfig;
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
var _react = _interopRequireDefault(require("react"));
|
|
15
|
-
var _appAco = require("@webiny/app-aco");
|
|
16
|
-
var Table = _appAco.AcoConfig.Table;
|
|
17
|
-
var Sorting = exports.Sorting = function Sorting(props) {
|
|
18
|
-
return /*#__PURE__*/_react.default.createElement(_appAco.AcoConfig, null, /*#__PURE__*/_react.default.createElement(Table.Sorting, props));
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AcoConfig, TableSortingConfig as SortingConfig } from "@webiny/app-aco";
|
|
3
|
+
const {
|
|
4
|
+
Table
|
|
5
|
+
} = AcoConfig;
|
|
6
|
+
export { SortingConfig };
|
|
7
|
+
export const Sorting = props => {
|
|
8
|
+
return /*#__PURE__*/React.createElement(AcoConfig, null, /*#__PURE__*/React.createElement(Table.Sorting, props));
|
|
19
9
|
};
|
|
20
10
|
|
|
21
11
|
//# sourceMappingURL=Sorting.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["React","AcoConfig","TableSortingConfig","SortingConfig","Table","Sorting","props","createElement"],"sources":["Sorting.tsx"],"sourcesContent":["import React from \"react\";\nimport { AcoConfig, TableSortingConfig as SortingConfig } from \"@webiny/app-aco\";\n\nconst { Table } = AcoConfig;\n\nexport { SortingConfig };\n\ntype SortingProps = React.ComponentProps<typeof AcoConfig.Table.Sorting>;\n\nexport const Sorting = (props: SortingProps) => {\n return (\n <AcoConfig>\n <Table.Sorting {...props} />\n </AcoConfig>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,SAAS,EAAEC,kBAAkB,IAAIC,aAAa,QAAQ,iBAAiB;AAEhF,MAAM;EAAEC;AAAM,CAAC,GAAGH,SAAS;AAE3B,SAASE,aAAa;AAItB,OAAO,MAAME,OAAO,GAAIC,KAAmB,IAAK;EAC5C,oBACIN,KAAA,CAAAO,aAAA,CAACN,SAAS,qBACND,KAAA,CAAAO,aAAA,CAACH,KAAK,CAACC,OAAO,EAAKC,KAAQ,CACpB,CAAC;AAEpB,CAAC","ignoreList":[]}
|
|
@@ -7,7 +7,7 @@ export interface TableConfig {
|
|
|
7
7
|
}
|
|
8
8
|
export declare const Table: {
|
|
9
9
|
Column: ((props: import("@webiny/app-aco/config/table/Column").ColumnProps) => import("react").JSX.Element) & {
|
|
10
|
-
useTableRow: <TUserRow = Record<string, any>>() => import("@webiny/app-aco").TableRowContextData<import("../../../../..").TrashBinItemDTO & import("@webiny/ui/DataTable").
|
|
10
|
+
useTableRow: <TUserRow = Record<string, any>>() => import("@webiny/app-aco").TableRowContextData<import("../../../../..").TrashBinItemDTO & import("@webiny/admin-ui/DataTable/DataTable").DataTableDefaultData & TUserRow>;
|
|
11
11
|
isFolderRow: (row: import("@webiny/app-aco/table.types").BaseTableItem) => row is import("@webiny/app-aco/table.types").FolderTableItem;
|
|
12
12
|
};
|
|
13
13
|
Sorting: (props: import("@webiny/app-aco/config/table/Sorting").SortingProps) => import("react").JSX.Element;
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
exports.Table = void 0;
|
|
7
|
-
var _Column = require("./Column");
|
|
8
|
-
var _Sorting = require("./Sorting");
|
|
9
|
-
var Table = exports.Table = {
|
|
10
|
-
Column: _Column.Column,
|
|
11
|
-
Sorting: _Sorting.Sorting
|
|
1
|
+
import { Column } from "./Column";
|
|
2
|
+
import { Sorting } from "./Sorting";
|
|
3
|
+
export const Table = {
|
|
4
|
+
Column,
|
|
5
|
+
Sorting
|
|
12
6
|
};
|
|
13
7
|
|
|
14
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["Column","Sorting","Table"],"sources":["index.ts"],"sourcesContent":["import { Column, ColumnConfig } from \"./Column\";\nimport { Sorting, SortingConfig } from \"./Sorting\";\n\nexport interface TableConfig {\n columns: ColumnConfig[];\n sorting: SortingConfig[];\n}\n\nexport const Table = {\n Column,\n Sorting\n};\n"],"mappings":"AAAA,SAASA,MAAM;AACf,SAASC,OAAO;AAOhB,OAAO,MAAMC,KAAK,GAAG;EACjBF,MAAM;EACNC;AACJ,CAAC","ignoreList":[]}
|
|
@@ -26,7 +26,7 @@ export declare const Browser: {
|
|
|
26
26
|
};
|
|
27
27
|
Table: {
|
|
28
28
|
Column: ((props: import("@webiny/app-aco/config/table/Column").ColumnProps) => import("react").JSX.Element) & {
|
|
29
|
-
useTableRow: <TUserRow = Record<string, any>>() => import("@webiny/app-aco").TableRowContextData<import("../../../..").TrashBinItemDTO & import("@webiny/ui/DataTable").
|
|
29
|
+
useTableRow: <TUserRow = Record<string, any>>() => import("@webiny/app-aco").TableRowContextData<import("../../../..").TrashBinItemDTO & import("@webiny/admin-ui/DataTable/DataTable").DataTableDefaultData & TUserRow>;
|
|
30
30
|
isFolderRow: (row: import("@webiny/app-aco/table.types").BaseTableItem) => row is import("@webiny/app-aco/table.types").FolderTableItem;
|
|
31
31
|
};
|
|
32
32
|
Sorting: (props: import("@webiny/app-aco/config/table/Sorting").SortingProps) => import("react").JSX.Element;
|
|
@@ -1,16 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var _EntryAction = require("./EntryAction");
|
|
9
|
-
var _Table = require("./Table");
|
|
10
|
-
var Browser = exports.Browser = {
|
|
11
|
-
BulkAction: _BulkAction.BulkAction,
|
|
12
|
-
EntryAction: _EntryAction.EntryAction,
|
|
13
|
-
Table: _Table.Table
|
|
1
|
+
import { BulkAction } from "./BulkAction";
|
|
2
|
+
import { EntryAction } from "./EntryAction";
|
|
3
|
+
import { Table } from "./Table";
|
|
4
|
+
export const Browser = {
|
|
5
|
+
BulkAction,
|
|
6
|
+
EntryAction,
|
|
7
|
+
Table
|
|
14
8
|
};
|
|
15
9
|
|
|
16
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["BulkAction","EntryAction","Table","Browser"],"sources":["index.ts"],"sourcesContent":["import { BulkAction, BulkActionConfig } from \"./BulkAction\";\nimport { EntryAction, EntryActionConfig } from \"./EntryAction\";\nimport { Table, TableConfig } from \"./Table\";\n\nexport interface BrowserConfig {\n bulkActions: BulkActionConfig[];\n entryActions: EntryActionConfig[];\n table: TableConfig;\n}\n\nexport const Browser = {\n BulkAction,\n EntryAction,\n Table\n};\n"],"mappings":"AAAA,SAASA,UAAU;AACnB,SAASC,WAAW;AACpB,SAASC,KAAK;AAQd,OAAO,MAAMC,OAAO,GAAG;EACnBH,UAAU;EACVC,WAAW;EACXC;AACJ,CAAC","ignoreList":[]}
|
|
@@ -24,7 +24,7 @@ export declare const TrashBinListConfig: {
|
|
|
24
24
|
};
|
|
25
25
|
Table: {
|
|
26
26
|
Column: ((props: import("@webiny/app-aco/config/table/Column").ColumnProps) => React.JSX.Element) & {
|
|
27
|
-
useTableRow: <TUserRow = Record<string, any>>() => import("@webiny/app-aco").TableRowContextData<import("../../..").TrashBinItemDTO & import("@webiny/ui/DataTable").
|
|
27
|
+
useTableRow: <TUserRow = Record<string, any>>() => import("@webiny/app-aco").TableRowContextData<import("../../..").TrashBinItemDTO & import("@webiny/admin-ui/DataTable/DataTable").DataTableDefaultData & TUserRow>;
|
|
28
28
|
isFolderRow: (row: import("@webiny/app-aco/table.types").BaseTableItem) => row is import("@webiny/app-aco/table.types").FolderTableItem;
|
|
29
29
|
};
|
|
30
30
|
Sorting: (props: import("@webiny/app-aco/config/table/Sorting").SortingProps) => React.JSX.Element;
|