source: trip-planner-front/node_modules/@angular/material/esm2015/table/row.js@ 59329aa

Last change on this file since 59329aa was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 13.0 KB
Line 
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8import { CDK_ROW_TEMPLATE, CdkFooterRow, CdkFooterRowDef, CdkHeaderRow, CdkHeaderRowDef, CdkRow, CdkRowDef, CdkNoDataRow } from '@angular/cdk/table';
9import { ChangeDetectionStrategy, Component, Directive, ViewEncapsulation } from '@angular/core';
10/**
11 * Header row definition for the mat-table.
12 * Captures the header row's template and other header properties such as the columns to display.
13 */
14export class MatHeaderRowDef extends CdkHeaderRowDef {
15}
16MatHeaderRowDef.decorators = [
17 { type: Directive, args: [{
18 selector: '[matHeaderRowDef]',
19 providers: [{ provide: CdkHeaderRowDef, useExisting: MatHeaderRowDef }],
20 inputs: ['columns: matHeaderRowDef', 'sticky: matHeaderRowDefSticky'],
21 },] }
22];
23/**
24 * Footer row definition for the mat-table.
25 * Captures the footer row's template and other footer properties such as the columns to display.
26 */
27export class MatFooterRowDef extends CdkFooterRowDef {
28}
29MatFooterRowDef.decorators = [
30 { type: Directive, args: [{
31 selector: '[matFooterRowDef]',
32 providers: [{ provide: CdkFooterRowDef, useExisting: MatFooterRowDef }],
33 inputs: ['columns: matFooterRowDef', 'sticky: matFooterRowDefSticky'],
34 },] }
35];
36/**
37 * Data row definition for the mat-table.
38 * Captures the data row's template and other properties such as the columns to display and
39 * a when predicate that describes when this row should be used.
40 */
41export class MatRowDef extends CdkRowDef {
42}
43MatRowDef.decorators = [
44 { type: Directive, args: [{
45 selector: '[matRowDef]',
46 providers: [{ provide: CdkRowDef, useExisting: MatRowDef }],
47 inputs: ['columns: matRowDefColumns', 'when: matRowDefWhen'],
48 },] }
49];
50/** Header template container that contains the cell outlet. Adds the right class and role. */
51export class MatHeaderRow extends CdkHeaderRow {
52}
53MatHeaderRow.decorators = [
54 { type: Component, args: [{
55 selector: 'mat-header-row, tr[mat-header-row]',
56 template: CDK_ROW_TEMPLATE,
57 host: {
58 'class': 'mat-header-row',
59 'role': 'row',
60 },
61 // See note on CdkTable for explanation on why this uses the default change detection strategy.
62 // tslint:disable-next-line:validate-decorators
63 changeDetection: ChangeDetectionStrategy.Default,
64 encapsulation: ViewEncapsulation.None,
65 exportAs: 'matHeaderRow',
66 providers: [{ provide: CdkHeaderRow, useExisting: MatHeaderRow }]
67 },] }
68];
69/** Footer template container that contains the cell outlet. Adds the right class and role. */
70export class MatFooterRow extends CdkFooterRow {
71}
72MatFooterRow.decorators = [
73 { type: Component, args: [{
74 selector: 'mat-footer-row, tr[mat-footer-row]',
75 template: CDK_ROW_TEMPLATE,
76 host: {
77 'class': 'mat-footer-row',
78 'role': 'row',
79 },
80 // See note on CdkTable for explanation on why this uses the default change detection strategy.
81 // tslint:disable-next-line:validate-decorators
82 changeDetection: ChangeDetectionStrategy.Default,
83 encapsulation: ViewEncapsulation.None,
84 exportAs: 'matFooterRow',
85 providers: [{ provide: CdkFooterRow, useExisting: MatFooterRow }]
86 },] }
87];
88/** Data row template container that contains the cell outlet. Adds the right class and role. */
89export class MatRow extends CdkRow {
90}
91MatRow.decorators = [
92 { type: Component, args: [{
93 selector: 'mat-row, tr[mat-row]',
94 template: CDK_ROW_TEMPLATE,
95 host: {
96 'class': 'mat-row',
97 'role': 'row',
98 },
99 // See note on CdkTable for explanation on why this uses the default change detection strategy.
100 // tslint:disable-next-line:validate-decorators
101 changeDetection: ChangeDetectionStrategy.Default,
102 encapsulation: ViewEncapsulation.None,
103 exportAs: 'matRow',
104 providers: [{ provide: CdkRow, useExisting: MatRow }]
105 },] }
106];
107/** Row that can be used to display a message when no data is shown in the table. */
108export class MatNoDataRow extends CdkNoDataRow {
109}
110MatNoDataRow.decorators = [
111 { type: Directive, args: [{
112 selector: 'ng-template[matNoDataRow]',
113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