Skip to content

Commit

Permalink
fix(ngrid): allow runnig in ViewEngine mode (fixes #84) (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
shlomiassaf authored Mar 15, 2020
1 parent 66f896b commit fad8409
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ import { MatExcelStyleHeaderMenu } from './header-context/styles/excel-style-hea
],
exports: [
PblNgridMatHeaderContextMenuPlugin,
]
],
entryComponents: [
// TODO: remove when ViewEngine is no longer supported by angular (V11 ???)
MatHeaderContextMenuTrigger,
MatExcelStyleHeaderMenu,
],
})
export class PblNgridContextMenuModule {
constructor(@Optional() @SkipSelf() parentModule: PblNgridContextMenuModule,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import { PblPaginatorComponent } from './table-paginator.component';
imports: [ CommonModule, MatPaginatorModule, MatSelectModule, MatTooltipModule, MatButtonModule, PblNgridModule ],
declarations: [ PblPaginatorComponent ],
exports: [ PblPaginatorComponent ],
// TODO: remove when ViewEngine is no longer supported by angular (V11 ???)
entryComponents: [ PblPaginatorComponent, MatPaginator ]
})
export class PblNgridPaginatorModule {
constructor(cf: ComponentFactoryResolver, injector: Injector) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@ import { PblNgridCheckboxComponent } from './table-checkbox.component';
imports: [ CommonModule, MatCheckboxModule, PblNgridModule ],
declarations: [ PblNgridMatCheckboxSelectionDirective, PblNgridCheckboxComponent ],
exports: [ PblNgridMatCheckboxSelectionDirective, PblNgridCheckboxComponent ],
// TODO: remove when ViewEngine is no longer supported by angular (V11 ???)
entryComponents: [ PblNgridCheckboxComponent ]
})
export class PblNgridCheckboxModule { }
2 changes: 2 additions & 0 deletions libs/ngrid-material/sort/src/lib/mat-sort.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import { MatSortExtension } from './mat-sort-component-extension';
imports: [ CommonModule, MatButtonModule, MatSortModule, PblNgridModule ],
declarations: [ PblNgridMatSortDirective ],
exports: [ PblNgridMatSortDirective, MatSortModule ],
// TODO: remove when ViewEngine is no longer supported by angular (V11 ???)
entryComponents: [ MatSortHeader ],
})
export class PblNgridMatSortModule {
constructor(private registry: PblNgridRegistryService, cfr: ComponentFactoryResolver) {
Expand Down
2 changes: 2 additions & 0 deletions libs/ngrid/detail-row/src/lib/table-detail-row.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,7 @@ const DETAIL_ROW = [
imports: [ CommonModule, CdkTableModule, PblNgridModule, PblNgridTargetEventsModule ],
declarations: [ DETAIL_ROW, PblNgridDefaultDetailRowParentComponent ],
exports: [ DETAIL_ROW ],
// TODO: remove when ViewEngine is no longer supported by angular (V11 ???)
entryComponents: [ PblNgridDetailRowComponent, PblNgridDefaultDetailRowParentComponent ],
})
export class PblNgridDetailRowModule { }
2 changes: 2 additions & 0 deletions libs/ngrid/drag/src/lib/table-drag.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ import { DragPluginDefaultTemplatesComponent } from './default-settings.componen
PblNgridAggregationContainerDirective,
PblNgridDragResizeComponent, PblNgridCellResizerRefDirective,
],
// TODO: remove when ViewEngine is no longer supported by angular (V11 ???)
entryComponents: [ DragPluginDefaultTemplatesComponent ]
})
export class PblNgridDragModule {

Expand Down

0 comments on commit fad8409

Please sign in to comment.