sass-references/angular-material/material/table/module.ts

66 lines
1.2 KiB
TypeScript
Raw Permalink Normal View History

2024-12-06 10:42:08 +08:00
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {NgModule} from '@angular/core';
import {MatCommonModule} from '@angular/material/core';
import {MatRecycleRows, MatTable} from './table';
import {CdkTableModule} from '@angular/cdk/table';
import {
MatCell,
MatCellDef,
MatColumnDef,
MatFooterCell,
MatFooterCellDef,
MatHeaderCell,
MatHeaderCellDef,
} from './cell';
import {
MatFooterRow,
MatFooterRowDef,
MatHeaderRow,
MatHeaderRowDef,
MatRow,
MatRowDef,
MatNoDataRow,
} from './row';
import {MatTextColumn} from './text-column';
const EXPORTED_DECLARATIONS = [
// Table
MatTable,
MatRecycleRows,
// Template defs
MatHeaderCellDef,
MatHeaderRowDef,
MatColumnDef,
MatCellDef,
MatRowDef,
MatFooterCellDef,
MatFooterRowDef,
// Cell directives
MatHeaderCell,
MatCell,
MatFooterCell,
// Row directives
MatHeaderRow,
MatRow,
MatFooterRow,
MatNoDataRow,
MatTextColumn,
];
@NgModule({
imports: [MatCommonModule, CdkTableModule, ...EXPORTED_DECLARATIONS],
exports: [MatCommonModule, EXPORTED_DECLARATIONS],
})
export class MatTableModule {}