@nebular/theme
Version:
@nebular/theme
82 lines • 3.78 kB
JavaScript
import { Attribute, ChangeDetectorRef, ElementRef, Inject, IterableDiffers, NgModule, Component, Optional, } from '@angular/core';
import { _COALESCED_STYLE_SCHEDULER, _CoalescedStyleScheduler, CdkTable, CdkTableModule, } from '@angular/cdk/table';
import { _DisposeViewRepeaterStrategy, _VIEW_REPEATER_STRATEGY } from '@angular/cdk/collections';
import { NbBidiModule } from '../bidi/bidi.module';
import { NbDirectionality } from '../bidi/bidi-service';
import { NbPlatform } from '../platform/platform-service';
import { NB_DOCUMENT } from '../../../theme.options';
import { NbCellDefDirective, NbCellDirective, NbColumnDefDirective, NbFooterCellDefDirective, NbFooterCellDirective, NbHeaderCellDefDirective, NbHeaderCellDirective, } from './cell';
import { NbCellOutletDirective, NbDataRowOutletDirective, NbFooterRowOutletDirective, NbHeaderRowOutletDirective, NbFooterRowComponent, NbFooterRowDefDirective, NbHeaderRowComponent, NbHeaderRowDefDirective, NbRowComponent, NbRowDefDirective, NbNoDataRowOutletDirective, } from './row';
export const NB_TABLE_TEMPLATE = `
<ng-container nbHeaderRowOutlet></ng-container>
<ng-container nbRowOutlet></ng-container>
<ng-container nbNoDataRowOutlet></ng-container>
<ng-container nbFooterRowOutlet></ng-container>
`;
export const NB_VIEW_REPEATER_STRATEGY = _VIEW_REPEATER_STRATEGY;
export const NB_COALESCED_STYLE_SCHEDULER = _COALESCED_STYLE_SCHEDULER;
export const NB_TABLE_PROVIDERS = [
{ provide: NB_VIEW_REPEATER_STRATEGY, useClass: _DisposeViewRepeaterStrategy },
{ provide: NB_COALESCED_STYLE_SCHEDULER, useClass: _CoalescedStyleScheduler },
];
// tslint:disable-next-line:component-class-suffix
export class NbTable extends CdkTable {
constructor(differs, changeDetectorRef, elementRef, role, dir, document, platform, _viewRepeater, _coalescedStyleScheduler) {
super(differs, changeDetectorRef, elementRef, role, dir, document, platform, _viewRepeater, _coalescedStyleScheduler);
this._viewRepeater = _viewRepeater;
this._coalescedStyleScheduler = _coalescedStyleScheduler;
}
}
NbTable.decorators = [
{ type: Component, args: [{
selector: 'nb-table-not-implemented',
template: ``,
providers: NB_TABLE_PROVIDERS
},] }
];
NbTable.ctorParameters = () => [
{ type: IterableDiffers },
{ type: ChangeDetectorRef },
{ type: ElementRef },
{ type: String, decorators: [{ type: Attribute, args: ['role',] }] },
{ type: NbDirectionality },
{ type: undefined, decorators: [{ type: Inject, args: [NB_DOCUMENT,] }] },
{ type: NbPlatform },
{ type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [_VIEW_REPEATER_STRATEGY,] }] },
{ type: _CoalescedStyleScheduler, decorators: [{ type: Optional }, { type: Inject, args: [_COALESCED_STYLE_SCHEDULER,] }] }
];
const COMPONENTS = [
NbTable,
// Template defs
NbHeaderCellDefDirective,
NbHeaderRowDefDirective,
NbColumnDefDirective,
NbCellDefDirective,
NbRowDefDirective,
NbFooterCellDefDirective,
NbFooterRowDefDirective,
// Outlets
NbDataRowOutletDirective,
NbHeaderRowOutletDirective,
NbFooterRowOutletDirective,
NbNoDataRowOutletDirective,
NbCellOutletDirective,
// Cell directives
NbHeaderCellDirective,
NbCellDirective,
NbFooterCellDirective,
// Row directives
NbHeaderRowComponent,
NbRowComponent,
NbFooterRowComponent,
];
export class NbTableModule extends CdkTableModule {
}
NbTableModule.decorators = [
{ type: NgModule, args: [{
imports: [NbBidiModule],
declarations: [...COMPONENTS],
exports: [...COMPONENTS],
},] }
];
//# sourceMappingURL=table.module.js.map