@webiny/app-trash-bin 5.43.3 → 6.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Domain/Models/TrashBinItem/ITrashBinItemMapper.d.ts +1 -1
- package/Domain/Models/TrashBinItem/ITrashBinItemMapper.js +1 -5
- package/Domain/Models/TrashBinItem/ITrashBinItemMapper.js.map +1 -1
- package/Domain/Models/TrashBinItem/TrashBinItem.d.ts +3 -1
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- package/Domain/Repositories/SelectedItems/ISelectedItemsRepository.js +1 -5
- package/Domain/Repositories/SelectedItems/ISelectedItemsRepository.js.map +1 -1
- package/Domain/Repositories/SelectedItems/SelectedItemsRepository.d.ts +2 -2
- 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 +2 -2
- 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.d.ts +3 -3
- package/Domain/Repositories/TrashBinItems/ITrashBinItemsRepository.js +1 -5
- package/Domain/Repositories/TrashBinItems/ITrashBinItemsRepository.js.map +1 -1
- package/Domain/Repositories/TrashBinItems/TrashBinItemMapper.d.ts +1 -2
- package/Domain/Repositories/TrashBinItems/TrashBinItemMapper.js +15 -31
- package/Domain/Repositories/TrashBinItems/TrashBinItemMapper.js.map +1 -1
- package/Domain/Repositories/TrashBinItems/TrashBinItemsRepository.d.ts +7 -5
- package/Domain/Repositories/TrashBinItems/TrashBinItemsRepository.js +87 -130
- package/Domain/Repositories/TrashBinItems/TrashBinItemsRepository.js.map +1 -1
- package/Domain/Repositories/TrashBinItems/TrashBinItemsRepositoryFactory.d.ts +3 -3
- package/Domain/Repositories/TrashBinItems/TrashBinItemsRepositoryFactory.js +14 -32
- package/Domain/Repositories/TrashBinItems/TrashBinItemsRepositoryFactory.js.map +1 -1
- package/Domain/Repositories/TrashBinItems/TrashBinItemsRepositoryWithLoading.d.ts +3 -3
- 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.d.ts +1 -1
- package/Gateways/TrashBinBulkActions/ITrashBinBulkActionsGateway.js +1 -5
- package/Gateways/TrashBinBulkActions/ITrashBinBulkActionsGateway.js.map +1 -1
- 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.d.ts +1 -1
- package/Gateways/TrashBinListItems/ITrashBinListGateway.js +1 -5
- package/Gateways/TrashBinListItems/ITrashBinListGateway.js.map +1 -1
- 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.d.ts +3 -3
- 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.d.ts +2 -2
- package/Presentation/TrashBin/TrashBinControllers.js +60 -94
- package/Presentation/TrashBin/TrashBinControllers.js.map +1 -1
- package/Presentation/TrashBin/TrashBinPresenter.d.ts +3 -3
- package/Presentation/TrashBin/TrashBinPresenter.js +51 -77
- package/Presentation/TrashBin/TrashBinPresenter.js.map +1 -1
- package/Presentation/TrashBin/controllers/BulkAction/BulkActionsController.d.ts +3 -3
- 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.d.ts +1 -1
- package/Presentation/TrashBin/controllers/BulkAction/IBulkActionsController.js +1 -5
- package/Presentation/TrashBin/controllers/BulkAction/IBulkActionsController.js.map +1 -1
- 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.d.ts +2 -2
- 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.d.ts +2 -3
- 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.d.ts +1 -1
- package/Presentation/TrashBin/controllers/GetRestoredItemById/IGetRestoredItemByIdController.js +1 -5
- package/Presentation/TrashBin/controllers/GetRestoredItemById/IGetRestoredItemByIdController.js.map +1 -1
- 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.d.ts +2 -2
- 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.d.ts +2 -2
- 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.d.ts +2 -2
- 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.d.ts +2 -2
- 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.d.ts +2 -2
- 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.d.ts +1 -1
- package/Presentation/TrashBin/controllers/SelectItems/ISelectItemsController.js +1 -5
- package/Presentation/TrashBin/controllers/SelectItems/ISelectItemsController.js.map +1 -1
- package/Presentation/TrashBin/controllers/SelectItems/SelectItemsController.d.ts +3 -3
- 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.d.ts +1 -1
- package/Presentation/TrashBin/controllers/SortItems/ISortItemsController.js +1 -5
- package/Presentation/TrashBin/controllers/SortItems/ISortItemsController.js.map +1 -1
- package/Presentation/TrashBin/controllers/SortItems/SortItemsController.d.ts +3 -3
- 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.d.ts +2 -2
- 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.d.ts +2 -2
- 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.d.ts +1 -1
- package/Presentation/abstractions/ITrashBinControllers.js +1 -5
- package/Presentation/abstractions/ITrashBinControllers.js.map +1 -1
- package/Presentation/abstractions/ITrashBinPresenter.d.ts +3 -3
- package/Presentation/abstractions/ITrashBinPresenter.js +1 -5
- package/Presentation/abstractions/ITrashBinPresenter.js.map +1 -1
- 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 +18 -21
- 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 -17
- 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 -17
- 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 +12 -19
- 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 +21 -18
- 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 +22 -26
- 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.d.ts +3 -3
- package/Presentation/configs/list/Browser/BulkAction.js +37 -48
- package/Presentation/configs/list/Browser/BulkAction.js.map +1 -1
- package/Presentation/configs/list/Browser/EntryAction.d.ts +2 -2
- package/Presentation/configs/list/Browser/EntryAction.js +10 -21
- package/Presentation/configs/list/Browser/EntryAction.js.map +1 -1
- package/Presentation/configs/list/Browser/Table/Column.d.ts +10 -5
- package/Presentation/configs/list/Browser/Table/Column.js +8 -19
- package/Presentation/configs/list/Browser/Table/Column.js.map +1 -1
- package/Presentation/configs/list/Browser/Table/Sorting.d.ts +2 -2
- package/Presentation/configs/list/Browser/Table/Sorting.js +7 -18
- package/Presentation/configs/list/Browser/Table/Sorting.js.map +1 -1
- package/Presentation/configs/list/Browser/Table/index.d.ts +9 -4
- 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 +10 -5
- 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 +7 -2
- 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.d.ts +1 -1
- package/Presentation/hooks/useDeleteTrashBinItem.js +27 -32
- package/Presentation/hooks/useDeleteTrashBinItem.js.map +1 -1
- package/Presentation/hooks/useRestoreTrashBinItem.d.ts +1 -1
- package/Presentation/hooks/useRestoreTrashBinItem.js +36 -43
- package/Presentation/hooks/useRestoreTrashBinItem.js.map +1 -1
- package/Presentation/hooks/useTrashBin.d.ts +5 -5
- package/Presentation/hooks/useTrashBin.js +41 -77
- package/Presentation/hooks/useTrashBin.js.map +1 -1
- package/Presentation/hooks/useTrashBinItem.d.ts +1 -1
- package/Presentation/hooks/useTrashBinItem.js +7 -12
- package/Presentation/hooks/useTrashBinItem.js.map +1 -1
- package/Presentation/index.d.ts +2 -2
- package/Presentation/index.js +21 -48
- package/Presentation/index.js.map +1 -1
- package/UseCases/BulkAction/BulkActionUseCase.d.ts +3 -3
- package/UseCases/BulkAction/BulkActionUseCase.js +8 -21
- package/UseCases/BulkAction/BulkActionUseCase.js.map +1 -1
- package/UseCases/BulkAction/IBulkActionUseCase.d.ts +1 -1
- package/UseCases/BulkAction/IBulkActionUseCase.js +1 -5
- package/UseCases/BulkAction/IBulkActionUseCase.js.map +1 -1
- package/UseCases/BulkAction/index.js +2 -27
- package/UseCases/BulkAction/index.js.map +1 -1
- package/UseCases/DeleteItem/DeleteItemUseCase.d.ts +2 -2
- 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.d.ts +2 -2
- package/UseCases/GetRestoredItem/GetRestoredItemUseCase.js +9 -24
- package/UseCases/GetRestoredItem/GetRestoredItemUseCase.js.map +1 -1
- package/UseCases/GetRestoredItem/IGetRestoredItemUseCase.d.ts +1 -1
- package/UseCases/GetRestoredItem/IGetRestoredItemUseCase.js +1 -5
- package/UseCases/GetRestoredItem/IGetRestoredItemUseCase.js.map +1 -1
- package/UseCases/GetRestoredItem/index.js +2 -27
- package/UseCases/GetRestoredItem/index.js.map +1 -1
- package/UseCases/ListItems/IListItemsUseCase.d.ts +1 -1
- package/UseCases/ListItems/IListItemsUseCase.js +1 -5
- package/UseCases/ListItems/IListItemsUseCase.js.map +1 -1
- package/UseCases/ListItems/ListItemsUseCase.d.ts +3 -3
- package/UseCases/ListItems/ListItemsUseCase.js +10 -22
- package/UseCases/ListItems/ListItemsUseCase.js.map +1 -1
- package/UseCases/ListItems/ListItemsUseCaseWithSearch.d.ts +3 -3
- package/UseCases/ListItems/ListItemsUseCaseWithSearch.js +12 -25
- package/UseCases/ListItems/ListItemsUseCaseWithSearch.js.map +1 -1
- package/UseCases/ListItems/ListItemsUseCaseWithSorting.d.ts +3 -3
- 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.d.ts +2 -2
- 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.d.ts +2 -2
- 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.d.ts +2 -2
- 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.d.ts +2 -2
- 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.d.ts +1 -1
- package/UseCases/SelectItems/ISelectItemsUseCase.js +1 -5
- package/UseCases/SelectItems/ISelectItemsUseCase.js.map +1 -1
- package/UseCases/SelectItems/SelectItemsUseCase.d.ts +2 -2
- 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.d.ts +1 -1
- package/UseCases/SortItems/ISortItemsUseCase.js +1 -5
- package/UseCases/SortItems/ISortItemsUseCase.js.map +1 -1
- package/UseCases/SortItems/SortItemsUseCase.d.ts +2 -2
- 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.d.ts +2 -2
- 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,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { CallbackParams } from "@webiny/app-admin";
|
|
3
|
-
import { TrashBinItemDTO } from "../../../../Domain";
|
|
4
|
-
import { TrashBinBulkActionsParams } from "../../../../types";
|
|
2
|
+
import type { CallbackParams } from "@webiny/app-admin";
|
|
3
|
+
import type { TrashBinItemDTO } from "../../../../Domain";
|
|
4
|
+
import type { TrashBinBulkActionsParams } from "../../../../types";
|
|
5
5
|
export interface BulkActionConfig {
|
|
6
6
|
name: string;
|
|
7
7
|
element: React.ReactElement;
|
|
@@ -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
|
-
|
|
51
|
-
|
|
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);
|
|
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","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":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { AcoConfig, RecordActionConfig } from "@webiny/app-aco";
|
|
3
|
-
export { RecordActionConfig as EntryActionConfig };
|
|
2
|
+
import { AcoConfig, type RecordActionConfig } from "@webiny/app-aco";
|
|
3
|
+
export type { RecordActionConfig as EntryActionConfig };
|
|
4
4
|
type EntryActionProps = React.ComponentProps<typeof AcoConfig.Record.Action>;
|
|
5
5
|
export declare const EntryAction: ((props: EntryActionProps) => React.JSX.Element) & {
|
|
6
6
|
OptionsMenuItem: (props: import("@webiny/app-admin").OptionsMenuItemProps) => React.JSX.Element;
|
|
@@ -1,26 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
enumerable: true,
|
|
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 } from "@webiny/app-aco";
|
|
4
|
+
const {
|
|
5
|
+
Record
|
|
6
|
+
} = AcoConfig;
|
|
7
|
+
const BaseEntryAction = props => {
|
|
8
|
+
return /*#__PURE__*/React.createElement(CompositionScope, {
|
|
20
9
|
name: "trash"
|
|
21
|
-
}, /*#__PURE__*/
|
|
10
|
+
}, /*#__PURE__*/React.createElement(AcoConfig, null, /*#__PURE__*/React.createElement(Record.Action, props)));
|
|
22
11
|
};
|
|
23
|
-
|
|
12
|
+
export const EntryAction = Object.assign(BaseEntryAction, {
|
|
24
13
|
OptionsMenuItem: Record.Action.OptionsMenuItem
|
|
25
14
|
});
|
|
26
15
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
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":[]}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { AcoConfig, TableColumnConfig as ColumnConfig } from "@webiny/app-aco";
|
|
3
|
-
import {
|
|
4
|
-
export { ColumnConfig };
|
|
2
|
+
import { AcoConfig, type TableColumnConfig as ColumnConfig } from "@webiny/app-aco";
|
|
3
|
+
import type { TrashBinTableRow } from "../../../../../Domain";
|
|
4
|
+
export type { ColumnConfig };
|
|
5
5
|
type ColumnProps = React.ComponentProps<typeof AcoConfig.Table.Column>;
|
|
6
6
|
export declare const Column: ((props: ColumnProps) => React.JSX.Element) & {
|
|
7
|
-
useTableRow:
|
|
8
|
-
|
|
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;
|
|
9
14
|
};
|
|
@@ -1,23 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "ColumnConfig", {
|
|
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 } 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));
|
|
19
8
|
};
|
|
20
|
-
|
|
9
|
+
export const Column = Object.assign(BaseColumn, {
|
|
21
10
|
useTableRow: Table.Column.createUseTableRow(),
|
|
22
11
|
isFolderRow: Table.Column.isFolderRow
|
|
23
12
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
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":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { AcoConfig, TableSortingConfig as SortingConfig } from "@webiny/app-aco";
|
|
3
|
-
export { SortingConfig };
|
|
2
|
+
import { AcoConfig, type TableSortingConfig as SortingConfig } from "@webiny/app-aco";
|
|
3
|
+
export type { SortingConfig };
|
|
4
4
|
type SortingProps = React.ComponentProps<typeof AcoConfig.Table.Sorting>;
|
|
5
5
|
export declare const Sorting: (props: SortingProps) => React.JSX.Element;
|
|
@@ -1,21 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "SortingConfig", {
|
|
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 } 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));
|
|
19
8
|
};
|
|
20
9
|
|
|
21
10
|
//# sourceMappingURL=Sorting.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
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":[]}
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ColumnConfig } from "./Column";
|
|
3
|
-
import { SortingConfig } from "./Sorting";
|
|
2
|
+
import type { ColumnConfig } from "./Column";
|
|
3
|
+
import type { SortingConfig } from "./Sorting";
|
|
4
4
|
export interface TableConfig {
|
|
5
5
|
columns: ColumnConfig[];
|
|
6
6
|
sorting: SortingConfig[];
|
|
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:
|
|
11
|
-
|
|
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;
|
|
12
17
|
};
|
|
13
18
|
Sorting: (props: import("@webiny/app-aco/config/table/Sorting").SortingProps) => import("react").JSX.Element;
|
|
14
19
|
};
|
|
@@ -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 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":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BulkActionConfig } from "./BulkAction";
|
|
3
|
-
import { EntryActionConfig } from "./EntryAction";
|
|
4
|
-
import { TableConfig } from "./Table";
|
|
2
|
+
import type { BulkActionConfig } from "./BulkAction";
|
|
3
|
+
import type { EntryActionConfig } from "./EntryAction";
|
|
4
|
+
import type { TableConfig } from "./Table";
|
|
5
5
|
export interface BrowserConfig {
|
|
6
6
|
bulkActions: BulkActionConfig[];
|
|
7
7
|
entryActions: EntryActionConfig[];
|
|
@@ -26,8 +26,13 @@ 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:
|
|
30
|
-
|
|
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;
|
|
31
36
|
};
|
|
32
37
|
Sorting: (props: import("@webiny/app-aco/config/table/Sorting").SortingProps) => import("react").JSX.Element;
|
|
33
38
|
};
|
|
@@ -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 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":[]}
|
|
@@ -24,8 +24,13 @@ 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:
|
|
28
|
-
|
|
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;
|
|
29
34
|
};
|
|
30
35
|
Sorting: (props: import("@webiny/app-aco/config/table/Sorting").SortingProps) => React.JSX.Element;
|
|
31
36
|
};
|
|
@@ -1,40 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
11
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
12
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
13
|
-
var _reactProperties = require("@webiny/react-properties");
|
|
14
|
-
var _Browser = require("./Browser");
|
|
15
|
-
var _reactComposition = require("@webiny/react-composition");
|
|
16
|
-
var base = (0, _reactProperties.createConfigurableComponent)("TrashBinListConfig");
|
|
17
|
-
var ScopedTrashBinListConfig = function ScopedTrashBinListConfig(_ref) {
|
|
18
|
-
var children = _ref.children;
|
|
19
|
-
return /*#__PURE__*/_react.default.createElement(_reactComposition.CompositionScope, {
|
|
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, {
|
|
20
10
|
name: "trash"
|
|
21
|
-
}, /*#__PURE__*/
|
|
11
|
+
}, /*#__PURE__*/React.createElement(base.Config, null, children));
|
|
22
12
|
};
|
|
23
13
|
ScopedTrashBinListConfig.displayName = "TrashBinListConfig";
|
|
24
|
-
|
|
25
|
-
Browser
|
|
14
|
+
export const TrashBinListConfig = Object.assign(ScopedTrashBinListConfig, {
|
|
15
|
+
Browser
|
|
26
16
|
});
|
|
27
|
-
|
|
28
|
-
function useTrashBinListConfig() {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
return
|
|
32
|
-
|
|
33
|
-
browser
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}, [config]);
|
|
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]);
|
|
38
27
|
}
|
|
39
28
|
|
|
40
29
|
//# sourceMappingURL=TrashBinListConfig.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
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":[]}
|
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var _TrashBinListConfig = require("./TrashBinListConfig");
|
|
7
|
-
Object.keys(_TrashBinListConfig).forEach(function (key) {
|
|
8
|
-
if (key === "default" || key === "__esModule") return;
|
|
9
|
-
if (key in exports && exports[key] === _TrashBinListConfig[key]) return;
|
|
10
|
-
Object.defineProperty(exports, key, {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function get() {
|
|
13
|
-
return _TrashBinListConfig[key];
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
});
|
|
1
|
+
export * from "./TrashBinListConfig";
|
|
17
2
|
|
|
18
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./TrashBinListConfig\";\n"],"mappings":"AAAA","ignoreList":[]}
|