UNPKG

ng2-stable-nxtc

Version:

Angular Smart Table neXtCode Version

66 lines 3 kB
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; import { Component, Input, Output, EventEmitter } from '@angular/core'; import { Grid } from '../../../lib/grid'; import { DataSource } from '../../../lib/data-source/data-source'; let TheadFitlersRowComponent = class TheadFitlersRowComponent { constructor() { this.create = new EventEmitter(); this.filter = new EventEmitter(); } ngOnChanges() { this.isMultiSelectVisible = this.grid.isMultiSelectVisible(); this.showActionColumnLeft = this.grid.showActionColumn('left'); this.showActionColumnRight = this.grid.showActionColumn('right'); this.filterInputClass = this.grid.getSetting('filter.inputClass'); } }; __decorate([ Input(), __metadata("design:type", Grid) ], TheadFitlersRowComponent.prototype, "grid", void 0); __decorate([ Input(), __metadata("design:type", DataSource) ], TheadFitlersRowComponent.prototype, "source", void 0); __decorate([ Output(), __metadata("design:type", Object) ], TheadFitlersRowComponent.prototype, "create", void 0); __decorate([ Output(), __metadata("design:type", Object) ], TheadFitlersRowComponent.prototype, "filter", void 0); TheadFitlersRowComponent = __decorate([ Component({ selector: '[ng2-st-thead-filters-row]', template: ` <th *ngIf="isMultiSelectVisible"></th> <th ng2-st-add-button *ngIf="showActionColumnLeft" [grid]="grid" (create)="create.emit($event)"> </th> <th *ngFor="let column of grid.getColumns()" class="ng2-smart-th {{ column.id }}"> <ng2-smart-table-filter [source]="source" [column]="column" [inputClass]="filterInputClass" (filter)="filter.emit($event)"> </ng2-smart-table-filter> </th> <th ng2-st-add-button *ngIf="showActionColumnRight" [grid]="grid" [source]="source" (create)="create.emit($event)"> </th> `, }) ], TheadFitlersRowComponent); export { TheadFitlersRowComponent }; //# sourceMappingURL=thead-filters-row.component.js.map