@webiny/app-trash-bin 0.0.0-unstable.06b2ede40f
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.d.ts +4 -0
- package/Domain/Models/TrashBinItem/ITrashBinItemMapper.js +3 -0
- package/Domain/Models/TrashBinItem/ITrashBinItemMapper.js.map +1 -0
- package/Domain/Models/TrashBinItem/TrashBinItem.d.ts +22 -0
- package/Domain/Models/TrashBinItem/TrashBinItem.js +15 -0
- package/Domain/Models/TrashBinItem/TrashBinItem.js.map +1 -0
- package/Domain/Models/TrashBinItem/index.d.ts +2 -0
- package/Domain/Models/TrashBinItem/index.js +4 -0
- package/Domain/Models/TrashBinItem/index.js.map +1 -0
- package/Domain/Models/index.d.ts +1 -0
- package/Domain/Models/index.js +3 -0
- package/Domain/Models/index.js.map +1 -0
- package/Domain/Repositories/Search/ISearchRepository.d.ts +4 -0
- package/Domain/Repositories/Search/ISearchRepository.js +3 -0
- package/Domain/Repositories/Search/ISearchRepository.js.map +1 -0
- package/Domain/Repositories/Search/SearchRepository.d.ts +7 -0
- package/Domain/Repositories/Search/SearchRepository.js +15 -0
- package/Domain/Repositories/Search/SearchRepository.js.map +1 -0
- package/Domain/Repositories/Search/SearchRepositoryFactory.d.ts +7 -0
- package/Domain/Repositories/Search/SearchRepositoryFactory.js +17 -0
- package/Domain/Repositories/Search/SearchRepositoryFactory.js.map +1 -0
- package/Domain/Repositories/Search/index.d.ts +3 -0
- package/Domain/Repositories/Search/index.js +5 -0
- package/Domain/Repositories/Search/index.js.map +1 -0
- package/Domain/Repositories/SelectedItems/ISelectedItemsRepository.d.ts +8 -0
- package/Domain/Repositories/SelectedItems/ISelectedItemsRepository.js +3 -0
- package/Domain/Repositories/SelectedItems/ISelectedItemsRepository.js.map +1 -0
- package/Domain/Repositories/SelectedItems/SelectedItemsRepository.d.ts +12 -0
- package/Domain/Repositories/SelectedItems/SelectedItemsRepository.js +27 -0
- package/Domain/Repositories/SelectedItems/SelectedItemsRepository.js.map +1 -0
- package/Domain/Repositories/SelectedItems/SelectedItemsRepositoryFactory.d.ts +7 -0
- package/Domain/Repositories/SelectedItems/SelectedItemsRepositoryFactory.js +17 -0
- package/Domain/Repositories/SelectedItems/SelectedItemsRepositoryFactory.js.map +1 -0
- package/Domain/Repositories/SelectedItems/index.d.ts +3 -0
- package/Domain/Repositories/SelectedItems/index.js +5 -0
- package/Domain/Repositories/SelectedItems/index.js.map +1 -0
- package/Domain/Repositories/Sorting/SortingRepositoryWithDefaults.d.ts +8 -0
- package/Domain/Repositories/Sorting/SortingRepositoryWithDefaults.js +22 -0
- package/Domain/Repositories/Sorting/SortingRepositoryWithDefaults.js.map +1 -0
- package/Domain/Repositories/Sorting/index.d.ts +1 -0
- package/Domain/Repositories/Sorting/index.js +3 -0
- package/Domain/Repositories/Sorting/index.js.map +1 -0
- package/Domain/Repositories/TrashBinItems/ITrashBinItemsRepository.d.ts +14 -0
- package/Domain/Repositories/TrashBinItems/ITrashBinItemsRepository.js +3 -0
- package/Domain/Repositories/TrashBinItems/ITrashBinItemsRepository.js.map +1 -0
- package/Domain/Repositories/TrashBinItems/TrashBinItemMapper.d.ts +15 -0
- package/Domain/Repositories/TrashBinItems/TrashBinItemMapper.js +18 -0
- package/Domain/Repositories/TrashBinItems/TrashBinItemMapper.js.map +1 -0
- package/Domain/Repositories/TrashBinItems/TrashBinItemsRepository.d.ts +28 -0
- package/Domain/Repositories/TrashBinItems/TrashBinItemsRepository.js +102 -0
- package/Domain/Repositories/TrashBinItems/TrashBinItemsRepository.js.map +1 -0
- package/Domain/Repositories/TrashBinItems/TrashBinItemsRepositoryFactory.d.ts +10 -0
- package/Domain/Repositories/TrashBinItems/TrashBinItemsRepositoryFactory.js +17 -0
- package/Domain/Repositories/TrashBinItems/TrashBinItemsRepositoryFactory.js.map +1 -0
- package/Domain/Repositories/TrashBinItems/TrashBinItemsRepositoryWithLoading.d.ts +17 -0
- package/Domain/Repositories/TrashBinItems/TrashBinItemsRepositoryWithLoading.js +38 -0
- package/Domain/Repositories/TrashBinItems/TrashBinItemsRepositoryWithLoading.js.map +1 -0
- package/Domain/Repositories/TrashBinItems/index.d.ts +5 -0
- package/Domain/Repositories/TrashBinItems/index.js +7 -0
- package/Domain/Repositories/TrashBinItems/index.js.map +1 -0
- package/Domain/Repositories/index.d.ts +5 -0
- package/Domain/Repositories/index.js +7 -0
- package/Domain/Repositories/index.js.map +1 -0
- package/Domain/index.d.ts +2 -0
- package/Domain/index.js +4 -0
- package/Domain/index.js.map +1 -0
- package/Gateways/TrashBinBulkActions/ITrashBinBulkActionsGateway.d.ts +4 -0
- package/Gateways/TrashBinBulkActions/ITrashBinBulkActionsGateway.js +3 -0
- package/Gateways/TrashBinBulkActions/ITrashBinBulkActionsGateway.js.map +1 -0
- package/Gateways/TrashBinBulkActions/index.d.ts +1 -0
- package/Gateways/TrashBinBulkActions/index.js +3 -0
- package/Gateways/TrashBinBulkActions/index.js.map +1 -0
- package/Gateways/TrashBinDeleteItem/ITrashBinDeleteItemGateway.d.ts +3 -0
- package/Gateways/TrashBinDeleteItem/ITrashBinDeleteItemGateway.js +3 -0
- package/Gateways/TrashBinDeleteItem/ITrashBinDeleteItemGateway.js.map +1 -0
- package/Gateways/TrashBinDeleteItem/index.d.ts +1 -0
- package/Gateways/TrashBinDeleteItem/index.js +3 -0
- package/Gateways/TrashBinDeleteItem/index.js.map +1 -0
- package/Gateways/TrashBinListItems/ITrashBinListGateway.d.ts +4 -0
- package/Gateways/TrashBinListItems/ITrashBinListGateway.js +3 -0
- package/Gateways/TrashBinListItems/ITrashBinListGateway.js.map +1 -0
- package/Gateways/TrashBinListItems/index.d.ts +1 -0
- package/Gateways/TrashBinListItems/index.js +3 -0
- package/Gateways/TrashBinListItems/index.js.map +1 -0
- package/Gateways/TrashBinRestoreItem/ITrashBinRestoreItemGateway.d.ts +3 -0
- package/Gateways/TrashBinRestoreItem/ITrashBinRestoreItemGateway.js +3 -0
- package/Gateways/TrashBinRestoreItem/ITrashBinRestoreItemGateway.js.map +1 -0
- package/Gateways/TrashBinRestoreItem/index.d.ts +1 -0
- package/Gateways/TrashBinRestoreItem/index.js +3 -0
- package/Gateways/TrashBinRestoreItem/index.js.map +1 -0
- package/Gateways/index.d.ts +4 -0
- package/Gateways/index.js +6 -0
- package/Gateways/index.js.map +1 -0
- package/LICENSE +21 -0
- package/Presentation/TrashBin/TrashBin.d.ts +22 -0
- package/Presentation/TrashBin/TrashBin.js +49 -0
- package/Presentation/TrashBin/TrashBin.js.map +1 -0
- package/Presentation/TrashBin/TrashBin.test.d.ts +1 -0
- package/Presentation/TrashBin/TrashBin.test.js +822 -0
- package/Presentation/TrashBin/TrashBin.test.js.map +1 -0
- package/Presentation/TrashBin/TrashBinControllers.d.ts +26 -0
- package/Presentation/TrashBin/TrashBinControllers.js +80 -0
- package/Presentation/TrashBin/TrashBinControllers.js.map +1 -0
- package/Presentation/TrashBin/TrashBinPresenter.d.ts +33 -0
- package/Presentation/TrashBin/TrashBinPresenter.js +61 -0
- package/Presentation/TrashBin/TrashBinPresenter.js.map +1 -0
- package/Presentation/TrashBin/controllers/BulkAction/BulkActionsController.d.ts +9 -0
- package/Presentation/TrashBin/controllers/BulkAction/BulkActionsController.js +12 -0
- package/Presentation/TrashBin/controllers/BulkAction/BulkActionsController.js.map +1 -0
- package/Presentation/TrashBin/controllers/BulkAction/IBulkActionsController.d.ts +4 -0
- package/Presentation/TrashBin/controllers/BulkAction/IBulkActionsController.js +3 -0
- package/Presentation/TrashBin/controllers/BulkAction/IBulkActionsController.js.map +1 -0
- package/Presentation/TrashBin/controllers/BulkAction/index.d.ts +2 -0
- package/Presentation/TrashBin/controllers/BulkAction/index.js +4 -0
- package/Presentation/TrashBin/controllers/BulkAction/index.js.map +1 -0
- package/Presentation/TrashBin/controllers/DeleteItem/DeleteItemController.d.ts +7 -0
- package/Presentation/TrashBin/controllers/DeleteItem/DeleteItemController.js +11 -0
- package/Presentation/TrashBin/controllers/DeleteItem/DeleteItemController.js.map +1 -0
- package/Presentation/TrashBin/controllers/DeleteItem/IDeleteItemController.d.ts +3 -0
- package/Presentation/TrashBin/controllers/DeleteItem/IDeleteItemController.js +3 -0
- package/Presentation/TrashBin/controllers/DeleteItem/IDeleteItemController.js.map +1 -0
- package/Presentation/TrashBin/controllers/DeleteItem/index.d.ts +2 -0
- package/Presentation/TrashBin/controllers/DeleteItem/index.js +4 -0
- package/Presentation/TrashBin/controllers/DeleteItem/index.js.map +1 -0
- package/Presentation/TrashBin/controllers/GetRestoredItemById/GetRestoredItemByIdController.d.ts +19 -0
- package/Presentation/TrashBin/controllers/GetRestoredItemById/GetRestoredItemByIdController.js +14 -0
- package/Presentation/TrashBin/controllers/GetRestoredItemById/GetRestoredItemByIdController.js.map +1 -0
- package/Presentation/TrashBin/controllers/GetRestoredItemById/IGetRestoredItemByIdController.d.ts +4 -0
- package/Presentation/TrashBin/controllers/GetRestoredItemById/IGetRestoredItemByIdController.js +3 -0
- package/Presentation/TrashBin/controllers/GetRestoredItemById/IGetRestoredItemByIdController.js.map +1 -0
- package/Presentation/TrashBin/controllers/GetRestoredItemById/index.d.ts +2 -0
- package/Presentation/TrashBin/controllers/GetRestoredItemById/index.js +4 -0
- package/Presentation/TrashBin/controllers/GetRestoredItemById/index.js.map +1 -0
- package/Presentation/TrashBin/controllers/ListItems/IListItemsController.d.ts +3 -0
- package/Presentation/TrashBin/controllers/ListItems/IListItemsController.js +3 -0
- package/Presentation/TrashBin/controllers/ListItems/IListItemsController.js.map +1 -0
- package/Presentation/TrashBin/controllers/ListItems/ListItemsController.d.ts +7 -0
- package/Presentation/TrashBin/controllers/ListItems/ListItemsController.js +11 -0
- package/Presentation/TrashBin/controllers/ListItems/ListItemsController.js.map +1 -0
- package/Presentation/TrashBin/controllers/ListItems/index.d.ts +2 -0
- package/Presentation/TrashBin/controllers/ListItems/index.js +4 -0
- package/Presentation/TrashBin/controllers/ListItems/index.js.map +1 -0
- package/Presentation/TrashBin/controllers/ListMoreItems/IListMoreItemsController.d.ts +3 -0
- package/Presentation/TrashBin/controllers/ListMoreItems/IListMoreItemsController.js +3 -0
- package/Presentation/TrashBin/controllers/ListMoreItems/IListMoreItemsController.js.map +1 -0
- package/Presentation/TrashBin/controllers/ListMoreItems/ListMoreItemsController.d.ts +7 -0
- package/Presentation/TrashBin/controllers/ListMoreItems/ListMoreItemsController.js +11 -0
- package/Presentation/TrashBin/controllers/ListMoreItems/ListMoreItemsController.js.map +1 -0
- package/Presentation/TrashBin/controllers/ListMoreItems/index.d.ts +2 -0
- package/Presentation/TrashBin/controllers/ListMoreItems/index.js +4 -0
- package/Presentation/TrashBin/controllers/ListMoreItems/index.js.map +1 -0
- package/Presentation/TrashBin/controllers/RestoreItem/IRestoreItemController.d.ts +3 -0
- package/Presentation/TrashBin/controllers/RestoreItem/IRestoreItemController.js +3 -0
- package/Presentation/TrashBin/controllers/RestoreItem/IRestoreItemController.js.map +1 -0
- package/Presentation/TrashBin/controllers/RestoreItem/RestoreItemController.d.ts +7 -0
- package/Presentation/TrashBin/controllers/RestoreItem/RestoreItemController.js +11 -0
- package/Presentation/TrashBin/controllers/RestoreItem/RestoreItemController.js.map +1 -0
- package/Presentation/TrashBin/controllers/RestoreItem/index.d.ts +2 -0
- package/Presentation/TrashBin/controllers/RestoreItem/index.js +4 -0
- package/Presentation/TrashBin/controllers/RestoreItem/index.js.map +1 -0
- package/Presentation/TrashBin/controllers/SearchItems/ISearchItemsController.d.ts +3 -0
- package/Presentation/TrashBin/controllers/SearchItems/ISearchItemsController.js +3 -0
- package/Presentation/TrashBin/controllers/SearchItems/ISearchItemsController.js.map +1 -0
- package/Presentation/TrashBin/controllers/SearchItems/SearchItemsController.d.ts +8 -0
- package/Presentation/TrashBin/controllers/SearchItems/SearchItemsController.js +14 -0
- package/Presentation/TrashBin/controllers/SearchItems/SearchItemsController.js.map +1 -0
- package/Presentation/TrashBin/controllers/SearchItems/index.d.ts +2 -0
- package/Presentation/TrashBin/controllers/SearchItems/index.js +4 -0
- package/Presentation/TrashBin/controllers/SearchItems/index.js.map +1 -0
- package/Presentation/TrashBin/controllers/SelectAllItems/ISelectAllItemsController.d.ts +3 -0
- package/Presentation/TrashBin/controllers/SelectAllItems/ISelectAllItemsController.js +3 -0
- package/Presentation/TrashBin/controllers/SelectAllItems/ISelectAllItemsController.js.map +1 -0
- package/Presentation/TrashBin/controllers/SelectAllItems/SelectAllItemsController.d.ts +7 -0
- package/Presentation/TrashBin/controllers/SelectAllItems/SelectAllItemsController.js +11 -0
- package/Presentation/TrashBin/controllers/SelectAllItems/SelectAllItemsController.js.map +1 -0
- package/Presentation/TrashBin/controllers/SelectAllItems/index.d.ts +2 -0
- package/Presentation/TrashBin/controllers/SelectAllItems/index.js +4 -0
- package/Presentation/TrashBin/controllers/SelectAllItems/index.js.map +1 -0
- package/Presentation/TrashBin/controllers/SelectItems/ISelectItemsController.d.ts +4 -0
- package/Presentation/TrashBin/controllers/SelectItems/ISelectItemsController.js +3 -0
- package/Presentation/TrashBin/controllers/SelectItems/ISelectItemsController.js.map +1 -0
- package/Presentation/TrashBin/controllers/SelectItems/SelectItemsController.d.ts +8 -0
- package/Presentation/TrashBin/controllers/SelectItems/SelectItemsController.js +13 -0
- package/Presentation/TrashBin/controllers/SelectItems/SelectItemsController.js.map +1 -0
- package/Presentation/TrashBin/controllers/SelectItems/index.d.ts +2 -0
- package/Presentation/TrashBin/controllers/SelectItems/index.js +4 -0
- package/Presentation/TrashBin/controllers/SelectItems/index.js.map +1 -0
- package/Presentation/TrashBin/controllers/SortItems/ISortItemsController.d.ts +4 -0
- package/Presentation/TrashBin/controllers/SortItems/ISortItemsController.js +3 -0
- package/Presentation/TrashBin/controllers/SortItems/ISortItemsController.js.map +1 -0
- package/Presentation/TrashBin/controllers/SortItems/SortItemsController.d.ts +9 -0
- package/Presentation/TrashBin/controllers/SortItems/SortItemsController.js +19 -0
- package/Presentation/TrashBin/controllers/SortItems/SortItemsController.js.map +1 -0
- package/Presentation/TrashBin/controllers/SortItems/index.d.ts +2 -0
- package/Presentation/TrashBin/controllers/SortItems/index.js +4 -0
- package/Presentation/TrashBin/controllers/SortItems/index.js.map +1 -0
- package/Presentation/TrashBin/controllers/UnselectAllItems/IUnselectAllItemsController.d.ts +3 -0
- package/Presentation/TrashBin/controllers/UnselectAllItems/IUnselectAllItemsController.js +3 -0
- package/Presentation/TrashBin/controllers/UnselectAllItems/IUnselectAllItemsController.js.map +1 -0
- package/Presentation/TrashBin/controllers/UnselectAllItems/UnselectAllItemsController.d.ts +7 -0
- package/Presentation/TrashBin/controllers/UnselectAllItems/UnselectAllItemsController.js +11 -0
- package/Presentation/TrashBin/controllers/UnselectAllItems/UnselectAllItemsController.js.map +1 -0
- package/Presentation/TrashBin/controllers/UnselectAllItems/index.d.ts +2 -0
- package/Presentation/TrashBin/controllers/UnselectAllItems/index.js +4 -0
- package/Presentation/TrashBin/controllers/UnselectAllItems/index.js.map +1 -0
- package/Presentation/TrashBin/controllers/index.d.ts +11 -0
- package/Presentation/TrashBin/controllers/index.js +13 -0
- package/Presentation/TrashBin/controllers/index.js.map +1 -0
- package/Presentation/TrashBin/index.d.ts +1 -0
- package/Presentation/TrashBin/index.js +3 -0
- package/Presentation/TrashBin/index.js.map +1 -0
- package/Presentation/TrashBinConfigs/TrashBinConfigs.d.ts +2 -0
- package/Presentation/TrashBinConfigs/TrashBinConfigs.js +57 -0
- package/Presentation/TrashBinConfigs/TrashBinConfigs.js.map +1 -0
- package/Presentation/TrashBinConfigs/index.d.ts +1 -0
- package/Presentation/TrashBinConfigs/index.js +3 -0
- package/Presentation/TrashBinConfigs/index.js.map +1 -0
- package/Presentation/TrashBinRenderer/TrashBinRenderer.d.ts +9 -0
- package/Presentation/TrashBinRenderer/TrashBinRenderer.js +21 -0
- package/Presentation/TrashBinRenderer/TrashBinRenderer.js.map +1 -0
- package/Presentation/TrashBinRenderer/index.d.ts +1 -0
- package/Presentation/TrashBinRenderer/index.js +3 -0
- package/Presentation/TrashBinRenderer/index.js.map +1 -0
- package/Presentation/abstractions/ITrashBinControllers.d.ts +15 -0
- package/Presentation/abstractions/ITrashBinControllers.js +3 -0
- package/Presentation/abstractions/ITrashBinControllers.js.map +1 -0
- package/Presentation/abstractions/ITrashBinPresenter.d.ts +22 -0
- package/Presentation/abstractions/ITrashBinPresenter.js +3 -0
- package/Presentation/abstractions/ITrashBinPresenter.js.map +1 -0
- package/Presentation/abstractions/index.d.ts +2 -0
- package/Presentation/abstractions/index.js +4 -0
- package/Presentation/abstractions/index.js.map +1 -0
- package/Presentation/components/Actions/DeleteItem/DeleteItem.d.ts +2 -0
- package/Presentation/components/Actions/DeleteItem/DeleteItem.js +25 -0
- package/Presentation/components/Actions/DeleteItem/DeleteItem.js.map +1 -0
- package/Presentation/components/Actions/DeleteItem/index.d.ts +1 -0
- package/Presentation/components/Actions/DeleteItem/index.js +3 -0
- package/Presentation/components/Actions/DeleteItem/index.js.map +1 -0
- package/Presentation/components/Actions/RestoreItem/RestoreItem.d.ts +2 -0
- package/Presentation/components/Actions/RestoreItem/RestoreItem.js +24 -0
- package/Presentation/components/Actions/RestoreItem/RestoreItem.js.map +1 -0
- package/Presentation/components/Actions/RestoreItem/index.d.ts +1 -0
- package/Presentation/components/Actions/RestoreItem/index.js +3 -0
- package/Presentation/components/Actions/RestoreItem/index.js.map +1 -0
- package/Presentation/components/Actions/index.d.ts +2 -0
- package/Presentation/components/Actions/index.js +4 -0
- package/Presentation/components/Actions/index.js.map +1 -0
- package/Presentation/components/BottomInfoBar/BottomInfoBar.d.ts +2 -0
- package/Presentation/components/BottomInfoBar/BottomInfoBar.js +24 -0
- package/Presentation/components/BottomInfoBar/BottomInfoBar.js.map +1 -0
- package/Presentation/components/BottomInfoBar/ListMeta.d.ts +7 -0
- package/Presentation/components/BottomInfoBar/ListMeta.js +17 -0
- package/Presentation/components/BottomInfoBar/ListMeta.js.map +1 -0
- package/Presentation/components/BottomInfoBar/ListStatus.d.ts +5 -0
- package/Presentation/components/BottomInfoBar/ListStatus.js +20 -0
- package/Presentation/components/BottomInfoBar/ListStatus.js.map +1 -0
- package/Presentation/components/BottomInfoBar/index.d.ts +1 -0
- package/Presentation/components/BottomInfoBar/index.js +3 -0
- package/Presentation/components/BottomInfoBar/index.js.map +1 -0
- package/Presentation/components/BulkActions/BulkActions/BulkActions.d.ts +3 -0
- package/Presentation/components/BulkActions/BulkActions/BulkActions.js +63 -0
- package/Presentation/components/BulkActions/BulkActions/BulkActions.js.map +1 -0
- package/Presentation/components/BulkActions/BulkActions/index.d.ts +1 -0
- package/Presentation/components/BulkActions/BulkActions/index.js +3 -0
- package/Presentation/components/BulkActions/BulkActions/index.js.map +1 -0
- package/Presentation/components/BulkActions/DeleteItems/DeleteItems.d.ts +4 -0
- package/Presentation/components/BulkActions/DeleteItems/DeleteItems.js +83 -0
- package/Presentation/components/BulkActions/DeleteItems/DeleteItems.js.map +1 -0
- package/Presentation/components/BulkActions/DeleteItems/index.d.ts +1 -0
- package/Presentation/components/BulkActions/DeleteItems/index.js +3 -0
- package/Presentation/components/BulkActions/DeleteItems/index.js.map +1 -0
- package/Presentation/components/BulkActions/RestoreItems/RestoreItems.d.ts +4 -0
- package/Presentation/components/BulkActions/RestoreItems/RestoreItems.js +94 -0
- package/Presentation/components/BulkActions/RestoreItems/RestoreItems.js.map +1 -0
- package/Presentation/components/BulkActions/RestoreItems/RestoreItemsReportMessage.d.ts +5 -0
- package/Presentation/components/BulkActions/RestoreItems/RestoreItemsReportMessage.js +13 -0
- package/Presentation/components/BulkActions/RestoreItems/RestoreItemsReportMessage.js.map +1 -0
- package/Presentation/components/BulkActions/RestoreItems/index.d.ts +1 -0
- package/Presentation/components/BulkActions/RestoreItems/index.js +3 -0
- package/Presentation/components/BulkActions/RestoreItems/index.js.map +1 -0
- package/Presentation/components/BulkActions/index.d.ts +3 -0
- package/Presentation/components/BulkActions/index.js +5 -0
- package/Presentation/components/BulkActions/index.js.map +1 -0
- package/Presentation/components/Cells/CellActions/CellActions.d.ts +2 -0
- package/Presentation/components/Cells/CellActions/CellActions.js +24 -0
- package/Presentation/components/Cells/CellActions/CellActions.js.map +1 -0
- package/Presentation/components/Cells/CellActions/index.d.ts +1 -0
- package/Presentation/components/Cells/CellActions/index.js +3 -0
- package/Presentation/components/Cells/CellActions/index.js.map +1 -0
- package/Presentation/components/Cells/CellCreatedBy/CellCreatedBy.d.ts +2 -0
- package/Presentation/components/Cells/CellCreatedBy/CellCreatedBy.js +13 -0
- package/Presentation/components/Cells/CellCreatedBy/CellCreatedBy.js.map +1 -0
- package/Presentation/components/Cells/CellCreatedBy/index.d.ts +1 -0
- package/Presentation/components/Cells/CellCreatedBy/index.js +3 -0
- package/Presentation/components/Cells/CellCreatedBy/index.js.map +1 -0
- package/Presentation/components/Cells/CellDeletedBy/CellDeletedBy.d.ts +2 -0
- package/Presentation/components/Cells/CellDeletedBy/CellDeletedBy.js +13 -0
- package/Presentation/components/Cells/CellDeletedBy/CellDeletedBy.js.map +1 -0
- package/Presentation/components/Cells/CellDeletedBy/index.d.ts +1 -0
- package/Presentation/components/Cells/CellDeletedBy/index.js +3 -0
- package/Presentation/components/Cells/CellDeletedBy/index.js.map +1 -0
- package/Presentation/components/Cells/CellDeletedOn/CellDeletedOn.d.ts +2 -0
- package/Presentation/components/Cells/CellDeletedOn/CellDeletedOn.js +16 -0
- package/Presentation/components/Cells/CellDeletedOn/CellDeletedOn.js.map +1 -0
- package/Presentation/components/Cells/CellDeletedOn/index.d.ts +1 -0
- package/Presentation/components/Cells/CellDeletedOn/index.js +3 -0
- package/Presentation/components/Cells/CellDeletedOn/index.js.map +1 -0
- package/Presentation/components/Cells/CellTitle/CellTitle.d.ts +2 -0
- package/Presentation/components/Cells/CellTitle/CellTitle.js +24 -0
- package/Presentation/components/Cells/CellTitle/CellTitle.js.map +1 -0
- package/Presentation/components/Cells/CellTitle/index.d.ts +1 -0
- package/Presentation/components/Cells/CellTitle/index.js +3 -0
- package/Presentation/components/Cells/CellTitle/index.js.map +1 -0
- package/Presentation/components/Cells/index.d.ts +5 -0
- package/Presentation/components/Cells/index.js +7 -0
- package/Presentation/components/Cells/index.js.map +1 -0
- package/Presentation/components/Empty/Empty.d.ts +2 -0
- package/Presentation/components/Empty/Empty.js +25 -0
- package/Presentation/components/Empty/Empty.js.map +1 -0
- package/Presentation/components/Empty/index.d.ts +1 -0
- package/Presentation/components/Empty/index.js +3 -0
- package/Presentation/components/Empty/index.js.map +1 -0
- package/Presentation/components/SearchInput/SearchInput.d.ts +2 -0
- package/Presentation/components/SearchInput/SearchInput.js +37 -0
- package/Presentation/components/SearchInput/SearchInput.js.map +1 -0
- package/Presentation/components/SearchInput/index.d.ts +1 -0
- package/Presentation/components/SearchInput/index.js +3 -0
- package/Presentation/components/SearchInput/index.js.map +1 -0
- package/Presentation/components/Table/Table.d.ts +2 -0
- package/Presentation/components/Table/Table.js +29 -0
- package/Presentation/components/Table/Table.js.map +1 -0
- package/Presentation/components/Table/index.d.ts +1 -0
- package/Presentation/components/Table/index.js +3 -0
- package/Presentation/components/Table/index.js.map +1 -0
- package/Presentation/components/Title/Title.d.ts +5 -0
- package/Presentation/components/Title/Title.js +14 -0
- package/Presentation/components/Title/Title.js.map +1 -0
- package/Presentation/components/Title/index.d.ts +1 -0
- package/Presentation/components/Title/index.js +3 -0
- package/Presentation/components/Title/index.js.map +1 -0
- package/Presentation/components/TrashBinOverlay/TrashBinOverlay.d.ts +7 -0
- package/Presentation/components/TrashBinOverlay/TrashBinOverlay.js +37 -0
- package/Presentation/components/TrashBinOverlay/TrashBinOverlay.js.map +1 -0
- package/Presentation/components/TrashBinOverlay/index.d.ts +1 -0
- package/Presentation/components/TrashBinOverlay/index.js +3 -0
- package/Presentation/components/TrashBinOverlay/index.js.map +1 -0
- package/Presentation/configs/index.d.ts +1 -0
- package/Presentation/configs/index.js +3 -0
- package/Presentation/configs/index.js.map +1 -0
- package/Presentation/configs/list/Browser/BulkAction.d.ts +29 -0
- package/Presentation/configs/list/Browser/BulkAction.js +73 -0
- package/Presentation/configs/list/Browser/BulkAction.js.map +1 -0
- package/Presentation/configs/list/Browser/EntryAction.d.ts +7 -0
- package/Presentation/configs/list/Browser/EntryAction.js +16 -0
- package/Presentation/configs/list/Browser/EntryAction.js.map +1 -0
- package/Presentation/configs/list/Browser/Table/Column.d.ts +14 -0
- package/Presentation/configs/list/Browser/Table/Column.js +14 -0
- package/Presentation/configs/list/Browser/Table/Column.js.map +1 -0
- package/Presentation/configs/list/Browser/Table/Sorting.d.ts +5 -0
- package/Presentation/configs/list/Browser/Table/Sorting.js +10 -0
- package/Presentation/configs/list/Browser/Table/Sorting.js.map +1 -0
- package/Presentation/configs/list/Browser/Table/index.d.ts +19 -0
- package/Presentation/configs/list/Browser/Table/index.js +8 -0
- package/Presentation/configs/list/Browser/Table/index.js.map +1 -0
- package/Presentation/configs/list/Browser/index.d.ts +39 -0
- package/Presentation/configs/list/Browser/index.js +10 -0
- package/Presentation/configs/list/Browser/index.js.map +1 -0
- package/Presentation/configs/list/TrashBinListConfig.d.ts +46 -0
- package/Presentation/configs/list/TrashBinListConfig.js +29 -0
- package/Presentation/configs/list/TrashBinListConfig.js.map +1 -0
- package/Presentation/configs/list/index.d.ts +1 -0
- package/Presentation/configs/list/index.js +3 -0
- package/Presentation/configs/list/index.js.map +1 -0
- package/Presentation/hooks/index.d.ts +4 -0
- package/Presentation/hooks/index.js +6 -0
- package/Presentation/hooks/index.js.map +1 -0
- package/Presentation/hooks/useDeleteTrashBinItem.d.ts +8 -0
- package/Presentation/hooks/useDeleteTrashBinItem.js +32 -0
- package/Presentation/hooks/useDeleteTrashBinItem.js.map +1 -0
- package/Presentation/hooks/useRestoreTrashBinItem.d.ts +8 -0
- package/Presentation/hooks/useRestoreTrashBinItem.js +41 -0
- package/Presentation/hooks/useRestoreTrashBinItem.js.map +1 -0
- package/Presentation/hooks/useTrashBin.d.ts +31 -0
- package/Presentation/hooks/useTrashBin.js +49 -0
- package/Presentation/hooks/useTrashBin.js.map +1 -0
- package/Presentation/hooks/useTrashBinItem.d.ts +12 -0
- package/Presentation/hooks/useTrashBinItem.js +9 -0
- package/Presentation/hooks/useTrashBinItem.js.map +1 -0
- package/Presentation/index.d.ts +26 -0
- package/Presentation/index.js +51 -0
- package/Presentation/index.js.map +1 -0
- package/README.md +17 -0
- package/UseCases/BulkAction/BulkActionUseCase.d.ts +8 -0
- package/UseCases/BulkAction/BulkActionUseCase.js +12 -0
- package/UseCases/BulkAction/BulkActionUseCase.js.map +1 -0
- package/UseCases/BulkAction/IBulkActionUseCase.d.ts +4 -0
- package/UseCases/BulkAction/IBulkActionUseCase.js +3 -0
- package/UseCases/BulkAction/IBulkActionUseCase.js.map +1 -0
- package/UseCases/BulkAction/index.d.ts +2 -0
- package/UseCases/BulkAction/index.js +4 -0
- package/UseCases/BulkAction/index.js.map +1 -0
- package/UseCases/DeleteItem/DeleteItemUseCase.d.ts +7 -0
- package/UseCases/DeleteItem/DeleteItemUseCase.js +12 -0
- package/UseCases/DeleteItem/DeleteItemUseCase.js.map +1 -0
- package/UseCases/DeleteItem/IDeleteItemUseCase.d.ts +3 -0
- package/UseCases/DeleteItem/IDeleteItemUseCase.js +3 -0
- package/UseCases/DeleteItem/IDeleteItemUseCase.js.map +1 -0
- package/UseCases/DeleteItem/index.d.ts +2 -0
- package/UseCases/DeleteItem/index.js +4 -0
- package/UseCases/DeleteItem/index.js.map +1 -0
- package/UseCases/GetRestoredItem/GetRestoredItemUseCase.d.ts +7 -0
- package/UseCases/GetRestoredItem/GetRestoredItemUseCase.js +13 -0
- package/UseCases/GetRestoredItem/GetRestoredItemUseCase.js.map +1 -0
- package/UseCases/GetRestoredItem/IGetRestoredItemUseCase.d.ts +4 -0
- package/UseCases/GetRestoredItem/IGetRestoredItemUseCase.js +3 -0
- package/UseCases/GetRestoredItem/IGetRestoredItemUseCase.js.map +1 -0
- package/UseCases/GetRestoredItem/index.d.ts +2 -0
- package/UseCases/GetRestoredItem/index.js +4 -0
- package/UseCases/GetRestoredItem/index.js.map +1 -0
- package/UseCases/ListItems/IListItemsUseCase.d.ts +4 -0
- package/UseCases/ListItems/IListItemsUseCase.js +3 -0
- package/UseCases/ListItems/IListItemsUseCase.js.map +1 -0
- package/UseCases/ListItems/ListItemsUseCase.d.ts +8 -0
- package/UseCases/ListItems/ListItemsUseCase.js +14 -0
- package/UseCases/ListItems/ListItemsUseCase.js.map +1 -0
- package/UseCases/ListItems/ListItemsUseCaseWithSearch.d.ts +9 -0
- package/UseCases/ListItems/ListItemsUseCaseWithSearch.js +17 -0
- package/UseCases/ListItems/ListItemsUseCaseWithSearch.js.map +1 -0
- package/UseCases/ListItems/ListItemsUseCaseWithSorting.d.ts +9 -0
- package/UseCases/ListItems/ListItemsUseCaseWithSorting.js +18 -0
- package/UseCases/ListItems/ListItemsUseCaseWithSorting.js.map +1 -0
- package/UseCases/ListItems/index.d.ts +4 -0
- package/UseCases/ListItems/index.js +6 -0
- package/UseCases/ListItems/index.js.map +1 -0
- package/UseCases/ListMoreItems/IListMoreItemsUseCase.d.ts +3 -0
- package/UseCases/ListMoreItems/IListMoreItemsUseCase.js +3 -0
- package/UseCases/ListMoreItems/IListMoreItemsUseCase.js.map +1 -0
- package/UseCases/ListMoreItems/ListMoreItemsUseCase.d.ts +7 -0
- package/UseCases/ListMoreItems/ListMoreItemsUseCase.js +12 -0
- package/UseCases/ListMoreItems/ListMoreItemsUseCase.js.map +1 -0
- package/UseCases/ListMoreItems/index.d.ts +2 -0
- package/UseCases/ListMoreItems/index.js +4 -0
- package/UseCases/ListMoreItems/index.js.map +1 -0
- package/UseCases/RestoreItem/IRestoreItemUseCase.d.ts +3 -0
- package/UseCases/RestoreItem/IRestoreItemUseCase.js +3 -0
- package/UseCases/RestoreItem/IRestoreItemUseCase.js.map +1 -0
- package/UseCases/RestoreItem/RestoreItemUseCase.d.ts +7 -0
- package/UseCases/RestoreItem/RestoreItemUseCase.js +12 -0
- package/UseCases/RestoreItem/RestoreItemUseCase.js.map +1 -0
- package/UseCases/RestoreItem/index.d.ts +2 -0
- package/UseCases/RestoreItem/index.js +4 -0
- package/UseCases/RestoreItem/index.js.map +1 -0
- package/UseCases/SearchItems/ISearchItemsUseCase.d.ts +3 -0
- package/UseCases/SearchItems/ISearchItemsUseCase.js +3 -0
- package/UseCases/SearchItems/ISearchItemsUseCase.js.map +1 -0
- package/UseCases/SearchItems/SearchItemsUseCase.d.ts +7 -0
- package/UseCases/SearchItems/SearchItemsUseCase.js +12 -0
- package/UseCases/SearchItems/SearchItemsUseCase.js.map +1 -0
- package/UseCases/SearchItems/index.d.ts +2 -0
- package/UseCases/SearchItems/index.js +4 -0
- package/UseCases/SearchItems/index.js.map +1 -0
- package/UseCases/SelectAllItems/ISelectAllItemsUseCase.d.ts +3 -0
- package/UseCases/SelectAllItems/ISelectAllItemsUseCase.js +3 -0
- package/UseCases/SelectAllItems/ISelectAllItemsUseCase.js.map +1 -0
- package/UseCases/SelectAllItems/SelectAllItemsUseCase.d.ts +7 -0
- package/UseCases/SelectAllItems/SelectAllItemsUseCase.js +12 -0
- package/UseCases/SelectAllItems/SelectAllItemsUseCase.js.map +1 -0
- package/UseCases/SelectAllItems/index.d.ts +2 -0
- package/UseCases/SelectAllItems/index.js +4 -0
- package/UseCases/SelectAllItems/index.js.map +1 -0
- package/UseCases/SelectItems/ISelectItemsUseCase.d.ts +4 -0
- package/UseCases/SelectItems/ISelectItemsUseCase.js +3 -0
- package/UseCases/SelectItems/ISelectItemsUseCase.js.map +1 -0
- package/UseCases/SelectItems/SelectItemsUseCase.d.ts +7 -0
- package/UseCases/SelectItems/SelectItemsUseCase.js +12 -0
- package/UseCases/SelectItems/SelectItemsUseCase.js.map +1 -0
- package/UseCases/SelectItems/index.d.ts +2 -0
- package/UseCases/SelectItems/index.js +4 -0
- package/UseCases/SelectItems/index.js.map +1 -0
- package/UseCases/SortItems/ISortItemsUseCase.d.ts +4 -0
- package/UseCases/SortItems/ISortItemsUseCase.js +3 -0
- package/UseCases/SortItems/ISortItemsUseCase.js.map +1 -0
- package/UseCases/SortItems/SortItemsUseCase.d.ts +7 -0
- package/UseCases/SortItems/SortItemsUseCase.js +12 -0
- package/UseCases/SortItems/SortItemsUseCase.js.map +1 -0
- package/UseCases/SortItems/index.d.ts +2 -0
- package/UseCases/SortItems/index.js +4 -0
- package/UseCases/SortItems/index.js.map +1 -0
- package/UseCases/UnSelectAllItems/IUnselectAllItemsUseCase.d.ts +3 -0
- package/UseCases/UnSelectAllItems/IUnselectAllItemsUseCase.js +3 -0
- package/UseCases/UnSelectAllItems/IUnselectAllItemsUseCase.js.map +1 -0
- package/UseCases/UnSelectAllItems/UnselectAllItemsUseCase.d.ts +7 -0
- package/UseCases/UnSelectAllItems/UnselectAllItemsUseCase.js +12 -0
- package/UseCases/UnSelectAllItems/UnselectAllItemsUseCase.js.map +1 -0
- package/UseCases/UnSelectAllItems/index.d.ts +2 -0
- package/UseCases/UnSelectAllItems/index.js +4 -0
- package/UseCases/UnSelectAllItems/index.js.map +1 -0
- package/UseCases/index.d.ts +11 -0
- package/UseCases/index.js +13 -0
- package/UseCases/index.js.map +1 -0
- package/index.d.ts +3 -0
- package/index.js +5 -0
- package/index.js.map +1 -0
- package/package.json +46 -0
- package/types.d.ts +43 -0
- package/types.js +9 -0
- package/types.js.map +1 -0
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
}) => {
|
|
20
|
+
if (scrollFrame.top > 0.8) {
|
|
21
|
+
await listMoreItems();
|
|
22
|
+
}
|
|
23
|
+
}, 200);
|
|
24
|
+
return /*#__PURE__*/React.createElement(OverlayLayout, {
|
|
25
|
+
onExited: props.onExited,
|
|
26
|
+
barLeft: /*#__PURE__*/React.createElement(Title, {
|
|
27
|
+
title: props.title
|
|
28
|
+
}),
|
|
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));
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=TrashBinOverlay.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./TrashBinOverlay";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./TrashBinOverlay\";\n"],"mappings":"AAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./list";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./list\";\n"],"mappings":"AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { CallbackParams } from "@webiny/app-admin";
|
|
3
|
+
import type { TrashBinItemDTO } from "../../../../Domain";
|
|
4
|
+
import type { TrashBinBulkActionsParams } from "../../../../types";
|
|
5
|
+
export interface BulkActionConfig {
|
|
6
|
+
name: string;
|
|
7
|
+
element: React.ReactElement;
|
|
8
|
+
}
|
|
9
|
+
export interface BulkActionProps {
|
|
10
|
+
name: string;
|
|
11
|
+
remove?: boolean;
|
|
12
|
+
before?: string;
|
|
13
|
+
after?: string;
|
|
14
|
+
element?: React.ReactElement;
|
|
15
|
+
}
|
|
16
|
+
export declare const BaseBulkAction: ({ name, after, before, remove, element }: BulkActionProps) => React.JSX.Element;
|
|
17
|
+
export declare const BulkAction: (({ name, after, before, remove, element }: BulkActionProps) => React.JSX.Element) & {
|
|
18
|
+
useButtons: () => import("@webiny/app-admin/components/Buttons/useButtons").ButtonsProviderContext;
|
|
19
|
+
useWorker: () => {
|
|
20
|
+
items: TrashBinItemDTO[];
|
|
21
|
+
process: (callback: (items: TrashBinItemDTO[]) => void) => void;
|
|
22
|
+
processInSeries: (callback: ({ item, allItems, report }: CallbackParams<TrashBinItemDTO>) => Promise<void>, chunkSize?: number) => Promise<void>;
|
|
23
|
+
processInBulk: (callback: (params: TrashBinBulkActionsParams) => Promise<void>, data?: Record<string, any>) => Promise<void>;
|
|
24
|
+
resetItems: () => void;
|
|
25
|
+
results: import("@webiny/app-admin").Result[];
|
|
26
|
+
isSelectedAll: boolean;
|
|
27
|
+
};
|
|
28
|
+
useDialog: () => import("@webiny/app-admin").UseDialogWithReportResponse;
|
|
29
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
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, {
|
|
16
|
+
id: "browser",
|
|
17
|
+
name: "browser"
|
|
18
|
+
}, /*#__PURE__*/React.createElement(Property, {
|
|
19
|
+
id: getId(name),
|
|
20
|
+
name: "bulkActions",
|
|
21
|
+
remove: remove,
|
|
22
|
+
array: true,
|
|
23
|
+
before: placeBefore,
|
|
24
|
+
after: placeAfter
|
|
25
|
+
}, /*#__PURE__*/React.createElement(Property, {
|
|
26
|
+
id: getId(name, "name"),
|
|
27
|
+
name: "name",
|
|
28
|
+
value: name
|
|
29
|
+
}), element ? /*#__PURE__*/React.createElement(Property, {
|
|
30
|
+
id: getId(name, "element"),
|
|
31
|
+
name: "element",
|
|
32
|
+
value: element
|
|
33
|
+
}) : null));
|
|
34
|
+
};
|
|
35
|
+
const useWorker = () => {
|
|
36
|
+
const {
|
|
37
|
+
vm,
|
|
38
|
+
selectItems
|
|
39
|
+
} = useTrashBin();
|
|
40
|
+
const {
|
|
41
|
+
current: worker
|
|
42
|
+
} = useRef(new Worker());
|
|
43
|
+
useEffect(() => {
|
|
44
|
+
worker.items = vm.selectedItems.map(item => item.data);
|
|
45
|
+
}, [vm.selectedItems.length]);
|
|
46
|
+
|
|
47
|
+
// Reset selected items in both repository and Worker
|
|
48
|
+
const resetItems = useCallback(() => {
|
|
49
|
+
worker.items = [];
|
|
50
|
+
selectItems([]);
|
|
51
|
+
}, []);
|
|
52
|
+
return {
|
|
53
|
+
items: vm.selectedItems,
|
|
54
|
+
process: callback => worker.process(callback),
|
|
55
|
+
processInSeries: async (callback, chunkSize) => worker.processInSeries(callback, chunkSize),
|
|
56
|
+
processInBulk: async (callback, data) => {
|
|
57
|
+
await callback({
|
|
58
|
+
search: vm.searchQuery,
|
|
59
|
+
data
|
|
60
|
+
});
|
|
61
|
+
},
|
|
62
|
+
resetItems: resetItems,
|
|
63
|
+
results: worker.results,
|
|
64
|
+
isSelectedAll: vm.isSelectedAll
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
export const BulkAction = Object.assign(BaseBulkAction, {
|
|
68
|
+
useButtons,
|
|
69
|
+
useWorker,
|
|
70
|
+
useDialog: useDialogWithReport
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
//# sourceMappingURL=BulkAction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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","map","item","data","length","resetItems","process","callback","processInSeries","chunkSize","processInBulk","search","searchQuery","results","isSelectedAll","BulkAction","Object","assign","useDialog"],"sources":["BulkAction.tsx"],"sourcesContent":["import React, { useCallback, useEffect, useRef } from \"react\";\nimport type { CallbackParams } from \"@webiny/app-admin\";\nimport { useButtons, useDialogWithReport, Worker } from \"@webiny/app-admin\";\nimport { Property, useIdGenerator } from \"@webiny/react-properties\";\nimport { useTrashBin } from \"~/Presentation/hooks\";\nimport type { TrashBinItemDTO } from \"~/Domain\";\nimport type { 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.map(item => item.data);\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;AAE7D,SAASC,UAAU,EAAEC,mBAAmB,EAAEC,MAAM,QAAQ,mBAAmB;AAC3E,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,CAACC,GAAG,CAACC,IAAI,IAAIA,IAAI,CAACC,IAAI,CAAC;EAC1D,CAAC,EAAE,CAACR,EAAE,CAACK,aAAa,CAACI,MAAM,CAAC,CAAC;;EAE7B;EACA,MAAMC,UAAU,GAAGlC,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;IACvBM,OAAO,EAAGC,QAA4C,IAAKT,MAAM,CAACQ,OAAO,CAACC,QAAQ,CAAC;IACnFC,eAAe,EAAE,MAAAA,CACbD,QAIoD,EACpDE,SAAkB,KACjBX,MAAM,CAACU,eAAe,CAACD,QAAQ,EAAEE,SAAS,CAAC;IAChDC,aAAa,EAAE,MAAAA,CACXH,QAA8D,EAC9DJ,IAA0B,KACzB;MACD,MAAMI,QAAQ,CAAC;QAAEI,MAAM,EAAEhB,EAAE,CAACiB,WAAW;QAAET;MAAK,CAAC,CAAC;IACpD,CAAC;IACDE,UAAU,EAAEA,UAAU;IACtBQ,OAAO,EAAEf,MAAM,CAACe,OAAO;IACvBC,aAAa,EAAEnB,EAAE,CAACmB;EACtB,CAAC;AACL,CAAC;AAED,OAAO,MAAMC,UAAU,GAAGC,MAAM,CAACC,MAAM,CAACrC,cAAc,EAAE;EACpDN,UAAU;EACVoB,SAAS;EACTwB,SAAS,EAAE3C;AACf,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AcoConfig, type RecordActionConfig } from "@webiny/app-aco";
|
|
3
|
+
export type { RecordActionConfig as EntryActionConfig };
|
|
4
|
+
type EntryActionProps = React.ComponentProps<typeof AcoConfig.Record.Action>;
|
|
5
|
+
export declare const EntryAction: ((props: EntryActionProps) => React.JSX.Element) & {
|
|
6
|
+
OptionsMenuItem: (props: import("@webiny/app-admin").OptionsMenuItemProps) => React.JSX.Element;
|
|
7
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CompositionScope } from "@webiny/react-composition";
|
|
3
|
+
import { AcoConfig } from "@webiny/app-aco";
|
|
4
|
+
const {
|
|
5
|
+
Record
|
|
6
|
+
} = AcoConfig;
|
|
7
|
+
const BaseEntryAction = props => {
|
|
8
|
+
return /*#__PURE__*/React.createElement(CompositionScope, {
|
|
9
|
+
name: "trash"
|
|
10
|
+
}, /*#__PURE__*/React.createElement(AcoConfig, null, /*#__PURE__*/React.createElement(Record.Action, props)));
|
|
11
|
+
};
|
|
12
|
+
export const EntryAction = Object.assign(BaseEntryAction, {
|
|
13
|
+
OptionsMenuItem: Record.Action.OptionsMenuItem
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=EntryAction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","CompositionScope","AcoConfig","Record","BaseEntryAction","props","createElement","name","Action","EntryAction","Object","assign","OptionsMenuItem"],"sources":["EntryAction.tsx"],"sourcesContent":["import React from \"react\";\nimport { CompositionScope } from \"@webiny/react-composition\";\nimport { AcoConfig, type RecordActionConfig } from \"@webiny/app-aco\";\n\nconst { Record } = AcoConfig;\n\nexport type { RecordActionConfig as EntryActionConfig };\n\ntype EntryActionProps = React.ComponentProps<typeof AcoConfig.Record.Action>;\n\nconst BaseEntryAction = (props: EntryActionProps) => {\n return (\n <CompositionScope name={\"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,QAAiC,iBAAiB;AAEpE,MAAM;EAAEC;AAAO,CAAC,GAAGD,SAAS;AAM5B,MAAME,eAAe,GAAIC,KAAuB,IAAK;EACjD,oBACIL,KAAA,CAAAM,aAAA,CAACL,gBAAgB;IAACM,IAAI,EAAE;EAAQ,gBAC5BP,KAAA,CAAAM,aAAA,CAACJ,SAAS,qBACNF,KAAA,CAAAM,aAAA,CAACH,MAAM,CAACK,MAAM,EAAKH,KAAQ,CACpB,CACG,CAAC;AAE3B,CAAC;AAED,OAAO,MAAMI,WAAW,GAAGC,MAAM,CAACC,MAAM,CAACP,eAAe,EAAE;EACtDQ,eAAe,EAAET,MAAM,CAACK,MAAM,CAACI;AACnC,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AcoConfig, type TableColumnConfig as ColumnConfig } from "@webiny/app-aco";
|
|
3
|
+
import type { TrashBinTableRow } from "../../../../../Domain";
|
|
4
|
+
export type { ColumnConfig };
|
|
5
|
+
type ColumnProps = React.ComponentProps<typeof AcoConfig.Table.Column>;
|
|
6
|
+
export declare const Column: ((props: ColumnProps) => React.JSX.Element) & {
|
|
7
|
+
useTableRow: {
|
|
8
|
+
(): import("@webiny/app-aco").TableRowContextData<TrashBinTableRow>;
|
|
9
|
+
<TUserRow>(): import("@webiny/app-aco").TableRowContextData<TrashBinTableRow & {
|
|
10
|
+
data: TUserRow;
|
|
11
|
+
}>;
|
|
12
|
+
};
|
|
13
|
+
isFolderRow: (row: import("@webiny/app-aco").TableRow<unknown>) => row is import("@webiny/app-aco").FolderTableRow;
|
|
14
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AcoConfig } from "@webiny/app-aco";
|
|
3
|
+
const {
|
|
4
|
+
Table
|
|
5
|
+
} = AcoConfig;
|
|
6
|
+
const BaseColumn = props => {
|
|
7
|
+
return /*#__PURE__*/React.createElement(AcoConfig, null, /*#__PURE__*/React.createElement(Table.Column, props));
|
|
8
|
+
};
|
|
9
|
+
export const Column = Object.assign(BaseColumn, {
|
|
10
|
+
useTableRow: Table.Column.createUseTableRow(),
|
|
11
|
+
isFolderRow: Table.Column.isFolderRow
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=Column.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","AcoConfig","Table","BaseColumn","props","createElement","Column","Object","assign","useTableRow","createUseTableRow","isFolderRow"],"sources":["Column.tsx"],"sourcesContent":["import React from \"react\";\nimport { AcoConfig, type TableColumnConfig as ColumnConfig } from \"@webiny/app-aco\";\nimport type { TrashBinTableRow } from \"~/Domain\";\n\nconst { Table } = AcoConfig;\n\nexport type { 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<TrashBinTableRow>(),\n isFolderRow: Table.Column.isFolderRow\n});\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,SAAS,QAAgD,iBAAiB;AAGnF,MAAM;EAAEC;AAAM,CAAC,GAAGD,SAAS;AAM3B,MAAME,UAAU,GAAIC,KAAkB,IAAK;EACvC,oBACIJ,KAAA,CAAAK,aAAA,CAACJ,SAAS,qBACND,KAAA,CAAAK,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,CAAmB,CAAC;EAC/DC,WAAW,EAAET,KAAK,CAACI,MAAM,CAACK;AAC9B,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AcoConfig, type TableSortingConfig as SortingConfig } from "@webiny/app-aco";
|
|
3
|
+
export type { SortingConfig };
|
|
4
|
+
type SortingProps = React.ComponentProps<typeof AcoConfig.Table.Sorting>;
|
|
5
|
+
export declare const Sorting: (props: SortingProps) => React.JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AcoConfig } from "@webiny/app-aco";
|
|
3
|
+
const {
|
|
4
|
+
Table
|
|
5
|
+
} = AcoConfig;
|
|
6
|
+
export const Sorting = props => {
|
|
7
|
+
return /*#__PURE__*/React.createElement(AcoConfig, null, /*#__PURE__*/React.createElement(Table.Sorting, props));
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=Sorting.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","AcoConfig","Table","Sorting","props","createElement"],"sources":["Sorting.tsx"],"sourcesContent":["import React from \"react\";\nimport { AcoConfig, type TableSortingConfig as SortingConfig } from \"@webiny/app-aco\";\n\nconst { Table } = AcoConfig;\n\nexport type { SortingConfig };\n\ntype SortingProps = React.ComponentProps<typeof AcoConfig.Table.Sorting>;\n\nexport const Sorting = (props: SortingProps) => {\n return (\n <AcoConfig>\n <Table.Sorting {...props} />\n </AcoConfig>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,SAAS,QAAkD,iBAAiB;AAErF,MAAM;EAAEC;AAAM,CAAC,GAAGD,SAAS;AAM3B,OAAO,MAAME,OAAO,GAAIC,KAAmB,IAAK;EAC5C,oBACIJ,KAAA,CAAAK,aAAA,CAACJ,SAAS,qBACND,KAAA,CAAAK,aAAA,CAACH,KAAK,CAACC,OAAO,EAAKC,KAAQ,CACpB,CAAC;AAEpB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { ColumnConfig } from "./Column";
|
|
3
|
+
import type { SortingConfig } from "./Sorting";
|
|
4
|
+
export interface TableConfig {
|
|
5
|
+
columns: ColumnConfig[];
|
|
6
|
+
sorting: SortingConfig[];
|
|
7
|
+
}
|
|
8
|
+
export declare const Table: {
|
|
9
|
+
Column: ((props: import("@webiny/app-aco/config/table/Column").ColumnProps) => import("react").JSX.Element) & {
|
|
10
|
+
useTableRow: {
|
|
11
|
+
(): import("@webiny/app-aco").TableRowContextData<import("../../../../..").TrashBinTableRow>;
|
|
12
|
+
<TUserRow>(): import("@webiny/app-aco").TableRowContextData<import("../../../../..").TrashBinTableRow & {
|
|
13
|
+
data: TUserRow;
|
|
14
|
+
}>;
|
|
15
|
+
};
|
|
16
|
+
isFolderRow: (row: import("@webiny/app-aco").TableRow<unknown>) => row is import("@webiny/app-aco").FolderTableRow;
|
|
17
|
+
};
|
|
18
|
+
Sorting: (props: import("@webiny/app-aco/config/table/Sorting").SortingProps) => import("react").JSX.Element;
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Column","Sorting","Table"],"sources":["index.ts"],"sourcesContent":["import type { ColumnConfig } from \"./Column\";\nimport { Column } from \"./Column\";\nimport type { SortingConfig } from \"./Sorting\";\nimport { Sorting } from \"./Sorting\";\n\nexport interface TableConfig {\n columns: ColumnConfig[];\n sorting: SortingConfig[];\n}\n\nexport const Table = {\n Column,\n Sorting\n};\n"],"mappings":"AACA,SAASA,MAAM;AAEf,SAASC,OAAO;AAOhB,OAAO,MAAMC,KAAK,GAAG;EACjBF,MAAM;EACNC;AACJ,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { BulkActionConfig } from "./BulkAction";
|
|
3
|
+
import type { EntryActionConfig } from "./EntryAction";
|
|
4
|
+
import type { TableConfig } from "./Table";
|
|
5
|
+
export interface BrowserConfig {
|
|
6
|
+
bulkActions: BulkActionConfig[];
|
|
7
|
+
entryActions: EntryActionConfig[];
|
|
8
|
+
table: TableConfig;
|
|
9
|
+
}
|
|
10
|
+
export declare const Browser: {
|
|
11
|
+
BulkAction: (({ name, after, before, remove, element }: import("./BulkAction").BulkActionProps) => import("react").JSX.Element) & {
|
|
12
|
+
useButtons: () => import("@webiny/app-admin/components/Buttons/useButtons").ButtonsProviderContext;
|
|
13
|
+
useWorker: () => {
|
|
14
|
+
items: import("../../../..").TrashBinItemDTO[];
|
|
15
|
+
process: (callback: (items: import("../../../..").TrashBinItemDTO[]) => void) => void;
|
|
16
|
+
processInSeries: (callback: ({ item, allItems, report }: import("@webiny/app-admin").CallbackParams<import("../../../..").TrashBinItemDTO>) => Promise<void>, chunkSize?: number | undefined) => Promise<void>;
|
|
17
|
+
processInBulk: (callback: (params: import("../../../../types").TrashBinBulkActionsParams) => Promise<void>, data?: Record<string, any> | undefined) => Promise<void>;
|
|
18
|
+
resetItems: () => void;
|
|
19
|
+
results: import("@webiny/app-admin").Result[];
|
|
20
|
+
isSelectedAll: boolean;
|
|
21
|
+
};
|
|
22
|
+
useDialog: () => import("@webiny/app-admin").UseDialogWithReportResponse;
|
|
23
|
+
};
|
|
24
|
+
EntryAction: ((props: import("@webiny/app-aco/config/record/Action").ActionProps) => import("react").JSX.Element) & {
|
|
25
|
+
OptionsMenuItem: (props: import("@webiny/app-admin").OptionsMenuItemProps) => import("react").JSX.Element;
|
|
26
|
+
};
|
|
27
|
+
Table: {
|
|
28
|
+
Column: ((props: import("@webiny/app-aco/config/table/Column").ColumnProps) => import("react").JSX.Element) & {
|
|
29
|
+
useTableRow: {
|
|
30
|
+
(): import("@webiny/app-aco").TableRowContextData<import("../../../..").TrashBinTableRow>;
|
|
31
|
+
<TUserRow>(): import("@webiny/app-aco").TableRowContextData<import("../../../..").TrashBinTableRow & {
|
|
32
|
+
data: TUserRow;
|
|
33
|
+
}>;
|
|
34
|
+
};
|
|
35
|
+
isFolderRow: (row: import("@webiny/app-aco").TableRow<unknown>) => row is import("@webiny/app-aco").FolderTableRow;
|
|
36
|
+
};
|
|
37
|
+
Sorting: (props: import("@webiny/app-aco/config/table/Sorting").SortingProps) => import("react").JSX.Element;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["BulkAction","EntryAction","Table","Browser"],"sources":["index.ts"],"sourcesContent":["import type { BulkActionConfig } from \"./BulkAction\";\nimport { BulkAction } from \"./BulkAction\";\nimport type { EntryActionConfig } from \"./EntryAction\";\nimport { EntryAction } from \"./EntryAction\";\nimport type { TableConfig } from \"./Table\";\nimport { Table } 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":"AACA,SAASA,UAAU;AAEnB,SAASC,WAAW;AAEpB,SAASC,KAAK;AAQd,OAAO,MAAMC,OAAO,GAAG;EACnBH,UAAU;EACVC,WAAW;EACXC;AACJ,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare const TrashBinListConfig: {
|
|
3
|
+
({ children }: {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}): React.JSX.Element;
|
|
6
|
+
displayName: string;
|
|
7
|
+
} & {
|
|
8
|
+
Browser: {
|
|
9
|
+
BulkAction: (({ name, after, before, remove, element }: import("./Browser/BulkAction").BulkActionProps) => React.JSX.Element) & {
|
|
10
|
+
useButtons: () => import("@webiny/app-admin/components/Buttons/useButtons").ButtonsProviderContext;
|
|
11
|
+
useWorker: () => {
|
|
12
|
+
items: import("../../..").TrashBinItemDTO[];
|
|
13
|
+
process: (callback: (items: import("../../..").TrashBinItemDTO[]) => void) => void;
|
|
14
|
+
processInSeries: (callback: ({ item, allItems, report }: import("@webiny/app-admin").CallbackParams<import("../../..").TrashBinItemDTO>) => Promise<void>, chunkSize?: number | undefined) => Promise<void>;
|
|
15
|
+
processInBulk: (callback: (params: import("../../../types").TrashBinBulkActionsParams) => Promise<void>, data?: Record<string, any> | undefined) => Promise<void>;
|
|
16
|
+
resetItems: () => void;
|
|
17
|
+
results: import("@webiny/app-admin").Result[];
|
|
18
|
+
isSelectedAll: boolean;
|
|
19
|
+
};
|
|
20
|
+
useDialog: () => import("@webiny/app-admin").UseDialogWithReportResponse;
|
|
21
|
+
};
|
|
22
|
+
EntryAction: ((props: import("@webiny/app-aco/config/record/Action").ActionProps) => React.JSX.Element) & {
|
|
23
|
+
OptionsMenuItem: (props: import("@webiny/app-admin").OptionsMenuItemProps) => React.JSX.Element;
|
|
24
|
+
};
|
|
25
|
+
Table: {
|
|
26
|
+
Column: ((props: import("@webiny/app-aco/config/table/Column").ColumnProps) => React.JSX.Element) & {
|
|
27
|
+
useTableRow: {
|
|
28
|
+
(): import("@webiny/app-aco").TableRowContextData<import("../../..").TrashBinTableRow>;
|
|
29
|
+
<TUserRow>(): import("@webiny/app-aco").TableRowContextData<import("../../..").TrashBinTableRow & {
|
|
30
|
+
data: TUserRow;
|
|
31
|
+
}>;
|
|
32
|
+
};
|
|
33
|
+
isFolderRow: (row: import("@webiny/app-aco").TableRow<unknown>) => row is import("@webiny/app-aco").FolderTableRow;
|
|
34
|
+
};
|
|
35
|
+
Sorting: (props: import("@webiny/app-aco/config/table/Sorting").SortingProps) => React.JSX.Element;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export declare const TrashBinListWithConfig: ({ onProperties, children }: import("@webiny/react-properties").WithConfigProps) => React.JSX.Element;
|
|
40
|
+
export declare function useTrashBinListConfig(): {
|
|
41
|
+
browser: {
|
|
42
|
+
bulkActions: import("./Browser/BulkAction").BulkActionConfig[];
|
|
43
|
+
entryActions: import("@webiny/app-aco").RecordActionConfig[];
|
|
44
|
+
table: import("./Browser/Table").TableConfig;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React, { useMemo } from "react";
|
|
2
|
+
import { createConfigurableComponent } from "@webiny/react-properties";
|
|
3
|
+
import { Browser } from "./Browser";
|
|
4
|
+
import { CompositionScope } from "@webiny/react-composition";
|
|
5
|
+
const base = createConfigurableComponent("TrashBinListConfig");
|
|
6
|
+
const ScopedTrashBinListConfig = ({
|
|
7
|
+
children
|
|
8
|
+
}) => {
|
|
9
|
+
return /*#__PURE__*/React.createElement(CompositionScope, {
|
|
10
|
+
name: "trash"
|
|
11
|
+
}, /*#__PURE__*/React.createElement(base.Config, null, children));
|
|
12
|
+
};
|
|
13
|
+
ScopedTrashBinListConfig.displayName = "TrashBinListConfig";
|
|
14
|
+
export const TrashBinListConfig = Object.assign(ScopedTrashBinListConfig, {
|
|
15
|
+
Browser
|
|
16
|
+
});
|
|
17
|
+
export const TrashBinListWithConfig = base.WithConfig;
|
|
18
|
+
export function useTrashBinListConfig() {
|
|
19
|
+
const config = base.useConfig();
|
|
20
|
+
const browser = config.browser || {};
|
|
21
|
+
return useMemo(() => ({
|
|
22
|
+
browser: {
|
|
23
|
+
...browser,
|
|
24
|
+
bulkActions: [...(browser.bulkActions || [])]
|
|
25
|
+
}
|
|
26
|
+
}), [config]);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=TrashBinListConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useMemo","createConfigurableComponent","Browser","CompositionScope","base","ScopedTrashBinListConfig","children","createElement","name","Config","displayName","TrashBinListConfig","Object","assign","TrashBinListWithConfig","WithConfig","useTrashBinListConfig","config","useConfig","browser","bulkActions"],"sources":["TrashBinListConfig.tsx"],"sourcesContent":["import React, { useMemo } from \"react\";\nimport { createConfigurableComponent } from \"@webiny/react-properties\";\nimport type { BrowserConfig } from \"./Browser\";\nimport { Browser } from \"./Browser\";\nimport { CompositionScope } from \"@webiny/react-composition\";\n\nconst base = createConfigurableComponent<TrashBinListConfig>(\"TrashBinListConfig\");\n\nconst ScopedTrashBinListConfig = ({ children }: { children: React.ReactNode }) => {\n return (\n <CompositionScope name={\"trash\"}>\n <base.Config>{children}</base.Config>\n </CompositionScope>\n );\n};\n\nScopedTrashBinListConfig.displayName = \"TrashBinListConfig\";\n\nexport const TrashBinListConfig = Object.assign(ScopedTrashBinListConfig, { Browser });\nexport const TrashBinListWithConfig = base.WithConfig;\n\ninterface TrashBinListConfig {\n browser: BrowserConfig;\n}\n\nexport function useTrashBinListConfig() {\n const config = base.useConfig();\n\n const browser = config.browser || {};\n\n return useMemo(\n () => ({\n browser: {\n ...browser,\n bulkActions: [...(browser.bulkActions || [])]\n }\n }),\n [config]\n );\n}\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AACtC,SAASC,2BAA2B,QAAQ,0BAA0B;AAEtE,SAASC,OAAO;AAChB,SAASC,gBAAgB,QAAQ,2BAA2B;AAE5D,MAAMC,IAAI,GAAGH,2BAA2B,CAAqB,oBAAoB,CAAC;AAElF,MAAMI,wBAAwB,GAAGA,CAAC;EAAEC;AAAwC,CAAC,KAAK;EAC9E,oBACIP,KAAA,CAAAQ,aAAA,CAACJ,gBAAgB;IAACK,IAAI,EAAE;EAAQ,gBAC5BT,KAAA,CAAAQ,aAAA,CAACH,IAAI,CAACK,MAAM,QAAEH,QAAsB,CACtB,CAAC;AAE3B,CAAC;AAEDD,wBAAwB,CAACK,WAAW,GAAG,oBAAoB;AAE3D,OAAO,MAAMC,kBAAkB,GAAGC,MAAM,CAACC,MAAM,CAACR,wBAAwB,EAAE;EAAEH;AAAQ,CAAC,CAAC;AACtF,OAAO,MAAMY,sBAAsB,GAAGV,IAAI,CAACW,UAAU;AAMrD,OAAO,SAASC,qBAAqBA,CAAA,EAAG;EACpC,MAAMC,MAAM,GAAGb,IAAI,CAACc,SAAS,CAAC,CAAC;EAE/B,MAAMC,OAAO,GAAGF,MAAM,CAACE,OAAO,IAAI,CAAC,CAAC;EAEpC,OAAOnB,OAAO,CACV,OAAO;IACHmB,OAAO,EAAE;MACL,GAAGA,OAAO;MACVC,WAAW,EAAE,CAAC,IAAID,OAAO,CAACC,WAAW,IAAI,EAAE,CAAC;IAChD;EACJ,CAAC,CAAC,EACF,CAACH,MAAM,CACX,CAAC;AACL","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./TrashBinListConfig";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./TrashBinListConfig\";\n"],"mappings":"AAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./useTrashBin\";\nexport * from \"./useTrashBinItem\";\nexport * from \"./useDeleteTrashBinItem\";\nexport * from \"./useRestoreTrashBinItem\";\n"],"mappings":"AAAA;AACA;AACA;AACA","ignoreList":[]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React, { useCallback } from "react";
|
|
2
|
+
import { useConfirmationDialog, useSnackbar } from "@webiny/app-admin";
|
|
3
|
+
import { useTrashBin } from "./useTrashBin";
|
|
4
|
+
export const useDeleteTrashBinItem = ({
|
|
5
|
+
item
|
|
6
|
+
}) => {
|
|
7
|
+
const {
|
|
8
|
+
deleteItem
|
|
9
|
+
} = useTrashBin();
|
|
10
|
+
const {
|
|
11
|
+
showSnackbar
|
|
12
|
+
} = useSnackbar();
|
|
13
|
+
const {
|
|
14
|
+
showConfirmation
|
|
15
|
+
} = useConfirmationDialog({
|
|
16
|
+
title: "Delete item",
|
|
17
|
+
message: /*#__PURE__*/React.createElement("p", null, "You are about to delete this item and all of its revisions!", /*#__PURE__*/React.createElement("br", null), "Are you sure you want to permanently delete ", /*#__PURE__*/React.createElement("strong", null, item.title), "?")
|
|
18
|
+
});
|
|
19
|
+
const openDialogDeleteItem = useCallback(() => showConfirmation(async () => {
|
|
20
|
+
try {
|
|
21
|
+
await deleteItem(item.id);
|
|
22
|
+
showSnackbar(`${item.title} was deleted successfully!`);
|
|
23
|
+
} catch (ex) {
|
|
24
|
+
showSnackbar(ex.message || `Error while deleting ${item.title}`);
|
|
25
|
+
}
|
|
26
|
+
}), [item]);
|
|
27
|
+
return {
|
|
28
|
+
openDialogDeleteItem
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=useDeleteTrashBinItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useCallback","useConfirmationDialog","useSnackbar","useTrashBin","useDeleteTrashBinItem","item","deleteItem","showSnackbar","showConfirmation","title","message","createElement","openDialogDeleteItem","id","ex"],"sources":["useDeleteTrashBinItem.tsx"],"sourcesContent":["import React, { useCallback } from \"react\";\nimport { useConfirmationDialog, useSnackbar } from \"@webiny/app-admin\";\nimport type { TrashBinItemDTO } from \"~/Domain\";\nimport { useTrashBin } from \"./useTrashBin\";\n\ninterface UseDeleteItemParams {\n item: TrashBinItemDTO;\n}\n\nexport const useDeleteTrashBinItem = ({ item }: UseDeleteItemParams) => {\n const { deleteItem } = useTrashBin();\n const { showSnackbar } = useSnackbar();\n\n const { showConfirmation } = useConfirmationDialog({\n title: \"Delete item\",\n message: (\n <p>\n You are about to delete this item and all of its revisions!\n <br />\n Are you sure you want to permanently delete <strong>{item.title}</strong>?\n </p>\n )\n });\n\n const openDialogDeleteItem = useCallback(\n () =>\n showConfirmation(async () => {\n try {\n await deleteItem(item.id);\n showSnackbar(`${item.title} was deleted successfully!`);\n } catch (ex) {\n showSnackbar(ex.message || `Error while deleting ${item.title}`);\n }\n }),\n [item]\n );\n\n return { openDialogDeleteItem };\n};\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,WAAW,QAAQ,OAAO;AAC1C,SAASC,qBAAqB,EAAEC,WAAW,QAAQ,mBAAmB;AAEtE,SAASC,WAAW;AAMpB,OAAO,MAAMC,qBAAqB,GAAGA,CAAC;EAAEC;AAA0B,CAAC,KAAK;EACpE,MAAM;IAAEC;EAAW,CAAC,GAAGH,WAAW,CAAC,CAAC;EACpC,MAAM;IAAEI;EAAa,CAAC,GAAGL,WAAW,CAAC,CAAC;EAEtC,MAAM;IAAEM;EAAiB,CAAC,GAAGP,qBAAqB,CAAC;IAC/CQ,KAAK,EAAE,aAAa;IACpBC,OAAO,eACHX,KAAA,CAAAY,aAAA,YAAG,6DAEC,eAAAZ,KAAA,CAAAY,aAAA,WAAK,CAAC,gDACsC,eAAAZ,KAAA,CAAAY,aAAA,iBAASN,IAAI,CAACI,KAAc,CAAC,KAC1E;EAEX,CAAC,CAAC;EAEF,MAAMG,oBAAoB,GAAGZ,WAAW,CACpC,MACIQ,gBAAgB,CAAC,YAAY;IACzB,IAAI;MACA,MAAMF,UAAU,CAACD,IAAI,CAACQ,EAAE,CAAC;MACzBN,YAAY,CAAC,GAAGF,IAAI,CAACI,KAAK,4BAA4B,CAAC;IAC3D,CAAC,CAAC,OAAOK,EAAE,EAAE;MACTP,YAAY,CAACO,EAAE,CAACJ,OAAO,IAAI,wBAAwBL,IAAI,CAACI,KAAK,EAAE,CAAC;IACpE;EACJ,CAAC,CAAC,EACN,CAACJ,IAAI,CACT,CAAC;EAED,OAAO;IAAEO;EAAqB,CAAC;AACnC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React, { useCallback } from "react";
|
|
2
|
+
import { useConfirmationDialog, useSnackbar } from "@webiny/app-admin";
|
|
3
|
+
import { useTrashBin } from "./useTrashBin";
|
|
4
|
+
import { SnackbarAction } from "@webiny/ui/Snackbar";
|
|
5
|
+
export const useRestoreTrashBinItem = ({
|
|
6
|
+
item
|
|
7
|
+
}) => {
|
|
8
|
+
const {
|
|
9
|
+
restoreItem,
|
|
10
|
+
onItemAfterRestore,
|
|
11
|
+
getRestoredItemById
|
|
12
|
+
} = useTrashBin();
|
|
13
|
+
const {
|
|
14
|
+
showSnackbar
|
|
15
|
+
} = useSnackbar();
|
|
16
|
+
const {
|
|
17
|
+
showConfirmation
|
|
18
|
+
} = useConfirmationDialog({
|
|
19
|
+
title: "Restore item",
|
|
20
|
+
message: /*#__PURE__*/React.createElement("p", null, "You are about to restore ", /*#__PURE__*/React.createElement("strong", null, item.title), ".", /*#__PURE__*/React.createElement("br", null), "Are you sure you want to continue?")
|
|
21
|
+
});
|
|
22
|
+
const openDialogRestoreItem = useCallback(() => showConfirmation(async () => {
|
|
23
|
+
try {
|
|
24
|
+
await restoreItem(item.id);
|
|
25
|
+
const restoredItem = await getRestoredItemById(item.id);
|
|
26
|
+
showSnackbar(`${item.title} was restored successfully!`, {
|
|
27
|
+
action: restoredItem && /*#__PURE__*/React.createElement(SnackbarAction, {
|
|
28
|
+
label: "Show location",
|
|
29
|
+
onClick: () => onItemAfterRestore(restoredItem)
|
|
30
|
+
})
|
|
31
|
+
});
|
|
32
|
+
} catch (ex) {
|
|
33
|
+
showSnackbar(ex.message || `Error while restoring ${item.title}`);
|
|
34
|
+
}
|
|
35
|
+
}), [item]);
|
|
36
|
+
return {
|
|
37
|
+
openDialogRestoreItem
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
//# sourceMappingURL=useRestoreTrashBinItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useCallback","useConfirmationDialog","useSnackbar","useTrashBin","SnackbarAction","useRestoreTrashBinItem","item","restoreItem","onItemAfterRestore","getRestoredItemById","showSnackbar","showConfirmation","title","message","createElement","openDialogRestoreItem","id","restoredItem","action","label","onClick","ex"],"sources":["useRestoreTrashBinItem.tsx"],"sourcesContent":["import React, { useCallback } from \"react\";\nimport { useConfirmationDialog, useSnackbar } from \"@webiny/app-admin\";\nimport { useTrashBin } from \"./useTrashBin\";\nimport { SnackbarAction } from \"@webiny/ui/Snackbar\";\nimport type { TrashBinItemDTO } from \"~/Domain\";\n\ninterface UseRestoreItemParams {\n item: TrashBinItemDTO;\n}\n\nexport const useRestoreTrashBinItem = ({ item }: UseRestoreItemParams) => {\n const { restoreItem, onItemAfterRestore, getRestoredItemById } = useTrashBin();\n const { showSnackbar } = useSnackbar();\n\n const { showConfirmation } = useConfirmationDialog({\n title: \"Restore item\",\n message: (\n <p>\n You are about to restore <strong>{item.title}</strong>.\n <br />\n Are you sure you want to continue?\n </p>\n )\n });\n\n const openDialogRestoreItem = useCallback(\n () =>\n showConfirmation(async () => {\n try {\n await restoreItem(item.id);\n const restoredItem = await getRestoredItemById(item.id);\n\n showSnackbar(`${item.title} was restored successfully!`, {\n action: restoredItem && (\n <SnackbarAction\n label=\"Show location\"\n onClick={() => onItemAfterRestore(restoredItem)}\n />\n )\n });\n } catch (ex) {\n showSnackbar(ex.message || `Error while restoring ${item.title}`);\n }\n }),\n [item]\n );\n\n return { openDialogRestoreItem };\n};\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,WAAW,QAAQ,OAAO;AAC1C,SAASC,qBAAqB,EAAEC,WAAW,QAAQ,mBAAmB;AACtE,SAASC,WAAW;AACpB,SAASC,cAAc,QAAQ,qBAAqB;AAOpD,OAAO,MAAMC,sBAAsB,GAAGA,CAAC;EAAEC;AAA2B,CAAC,KAAK;EACtE,MAAM;IAAEC,WAAW;IAAEC,kBAAkB;IAAEC;EAAoB,CAAC,GAAGN,WAAW,CAAC,CAAC;EAC9E,MAAM;IAAEO;EAAa,CAAC,GAAGR,WAAW,CAAC,CAAC;EAEtC,MAAM;IAAES;EAAiB,CAAC,GAAGV,qBAAqB,CAAC;IAC/CW,KAAK,EAAE,cAAc;IACrBC,OAAO,eACHd,KAAA,CAAAe,aAAA,YAAG,2BAC0B,eAAAf,KAAA,CAAAe,aAAA,iBAASR,IAAI,CAACM,KAAc,CAAC,KACtD,eAAAb,KAAA,CAAAe,aAAA,WAAK,CAAC,sCAEP;EAEX,CAAC,CAAC;EAEF,MAAMC,qBAAqB,GAAGf,WAAW,CACrC,MACIW,gBAAgB,CAAC,YAAY;IACzB,IAAI;MACA,MAAMJ,WAAW,CAACD,IAAI,CAACU,EAAE,CAAC;MAC1B,MAAMC,YAAY,GAAG,MAAMR,mBAAmB,CAACH,IAAI,CAACU,EAAE,CAAC;MAEvDN,YAAY,CAAC,GAAGJ,IAAI,CAACM,KAAK,6BAA6B,EAAE;QACrDM,MAAM,EAAED,YAAY,iBAChBlB,KAAA,CAAAe,aAAA,CAACV,cAAc;UACXe,KAAK,EAAC,eAAe;UACrBC,OAAO,EAAEA,CAAA,KAAMZ,kBAAkB,CAACS,YAAY;QAAE,CACnD;MAET,CAAC,CAAC;IACN,CAAC,CAAC,OAAOI,EAAE,EAAE;MACTX,YAAY,CAACW,EAAE,CAACR,OAAO,IAAI,yBAAyBP,IAAI,CAACM,KAAK,EAAE,CAAC;IACrE;EACJ,CAAC,CAAC,EACN,CAACN,IAAI,CACT,CAAC;EAED,OAAO;IAAES;EAAsB,CAAC;AACpC,CAAC","ignoreList":[]}
|