Skip to content

Commit

Permalink
feat(admin-ui): Export all catalog components (#1248)
Browse files Browse the repository at this point in the history
Fixes #1245
  • Loading branch information
Spielboerg authored Nov 30, 2021
1 parent 57be4c5 commit e5feac4
Showing 1 changed file with 29 additions and 27 deletions.
56 changes: 29 additions & 27 deletions packages/admin-ui/src/lib/catalog/src/catalog.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,34 +28,36 @@ import { ProductVariantsTableComponent } from './components/product-variants-tab
import { UpdateProductOptionDialogComponent } from './components/update-product-option-dialog/update-product-option-dialog.component';
import { VariantPriceDetailComponent } from './components/variant-price-detail/variant-price-detail.component';

const CATALOG_COMPONENTS = [
ProductListComponent,
ProductDetailComponent,
FacetListComponent,
FacetDetailComponent,
GenerateProductVariantsComponent,
ProductVariantsListComponent,
ApplyFacetDialogComponent,
AssetListComponent,
ProductAssetsComponent,
VariantPriceDetailComponent,
CollectionListComponent,
CollectionDetailComponent,
CollectionTreeComponent,
CollectionTreeNodeComponent,
CollectionContentsComponent,
ProductVariantsTableComponent,
ProductSearchInputComponent,
OptionValueInputComponent,
UpdateProductOptionDialogComponent,
ProductVariantsEditorComponent,
AssignProductsToChannelDialogComponent,
AssetDetailComponent,
ConfirmVariantDeletionDialogComponent,
ProductOptionsEditorComponent,
];

@NgModule({
imports: [SharedModule, RouterModule.forChild(catalogRoutes)],
exports: [],
declarations: [
ProductListComponent,
ProductDetailComponent,
FacetListComponent,
FacetDetailComponent,
GenerateProductVariantsComponent,
ProductVariantsListComponent,
ApplyFacetDialogComponent,
AssetListComponent,
ProductAssetsComponent,
VariantPriceDetailComponent,
CollectionListComponent,
CollectionDetailComponent,
CollectionTreeComponent,
CollectionTreeNodeComponent,
CollectionContentsComponent,
ProductVariantsTableComponent,
ProductSearchInputComponent,
OptionValueInputComponent,
UpdateProductOptionDialogComponent,
ProductVariantsEditorComponent,
AssignProductsToChannelDialogComponent,
AssetDetailComponent,
ConfirmVariantDeletionDialogComponent,
ProductOptionsEditorComponent,
],
exports: [...CATALOG_COMPONENTS],
declarations: [...CATALOG_COMPONENTS],
})
export class CatalogModule {}

0 comments on commit e5feac4

Please sign in to comment.