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 | */
|
---|
8 | import { ChangeDetectionStrategy, Component, Directive, IterableDiffers, TemplateRef, ViewContainerRef, ViewEncapsulation, Inject, Optional } from '@angular/core';
|
---|
9 | import { mixinHasStickyInput } from './can-stick';
|
---|
10 | import { CDK_TABLE } from './tokens';
|
---|
11 | /**
|
---|
12 | * The row template that can be used by the mat-table. Should not be used outside of the
|
---|
13 | * material library.
|
---|
14 | */
|
---|
15 | export const CDK_ROW_TEMPLATE = `<ng-container cdkCellOutlet></ng-container>`;
|
---|
16 | /**
|
---|
17 | * Base class for the CdkHeaderRowDef and CdkRowDef that handles checking their columns inputs
|
---|
18 | * for changes and notifying the table.
|
---|
19 | */
|
---|
20 | export class BaseRowDef {
|
---|
21 | constructor(
|
---|
22 | /** @docs-private */ template, _differs) {
|
---|
23 | this.template = template;
|
---|
24 | this._differs = _differs;
|
---|
25 | }
|
---|
26 | ngOnChanges(changes) {
|
---|
27 | // Create a new columns differ if one does not yet exist. Initialize it based on initial value
|
---|
28 | // of the columns property or an empty array if none is provided.
|
---|
29 | if (!this._columnsDiffer) {
|
---|
30 | const columns = (changes['columns'] && changes['columns'].currentValue) || [];
|
---|
31 | this._columnsDiffer = this._differs.find(columns).create();
|
---|
32 | this._columnsDiffer.diff(columns);
|
---|
33 | }
|
---|
34 | }
|
---|
35 | /**
|
---|
36 | * Returns the difference between the current columns and the columns from the last diff, or null
|
---|
37 | * if there is no difference.
|
---|
38 | */
|
---|
39 | getColumnsDiff() {
|
---|
40 | return this._columnsDiffer.diff(this.columns);
|
---|
41 | }
|
---|
42 | /** Gets this row def's relevant cell template from the provided column def. */
|
---|
43 | extractCellTemplate(column) {
|
---|
44 | if (this instanceof CdkHeaderRowDef) {
|
---|
45 | return column.headerCell.template;
|
---|
46 | }
|
---|
47 | if (this instanceof CdkFooterRowDef) {
|
---|
48 | return column.footerCell.template;
|
---|
49 | }
|
---|
50 | else {
|
---|
51 | return column.cell.template;
|
---|
52 | }
|
---|
53 | }
|
---|
54 | }
|
---|
55 | BaseRowDef.decorators = [
|
---|
56 | { type: Directive }
|
---|
57 | ];
|
---|
58 | BaseRowDef.ctorParameters = () => [
|
---|
59 | { type: TemplateRef },
|
---|
60 | { type: IterableDiffers }
|
---|
61 | ];
|
---|
62 | // Boilerplate for applying mixins to CdkHeaderRowDef.
|
---|
63 | /** @docs-private */
|
---|
64 | class CdkHeaderRowDefBase extends BaseRowDef {
|
---|
65 | }
|
---|
66 | const _CdkHeaderRowDefBase = mixinHasStickyInput(CdkHeaderRowDefBase);
|
---|
67 | /**
|
---|
68 | * Header row definition for the CDK table.
|
---|
69 | * Captures the header row's template and other header properties such as the columns to display.
|
---|
70 | */
|
---|
71 | export class CdkHeaderRowDef extends _CdkHeaderRowDefBase {
|
---|
72 | constructor(template, _differs, _table) {
|
---|
73 | super(template, _differs);
|
---|
74 | this._table = _table;
|
---|
75 | }
|
---|
76 | // Prerender fails to recognize that ngOnChanges in a part of this class through inheritance.
|
---|
77 | // Explicitly define it so that the method is called as part of the Angular lifecycle.
|
---|
78 | ngOnChanges(changes) {
|
---|
79 | super.ngOnChanges(changes);
|
---|
80 | }
|
---|
81 | }
|
---|
82 | CdkHeaderRowDef.decorators = [
|
---|
83 | { type: Directive, args: [{
|
---|
84 | selector: '[cdkHeaderRowDef]',
|
---|
85 | inputs: ['columns: cdkHeaderRowDef', 'sticky: cdkHeaderRowDefSticky'],
|
---|
86 | },] }
|
---|
87 | ];
|
---|
88 | CdkHeaderRowDef.ctorParameters = () => [
|
---|
89 | { type: TemplateRef },
|
---|
90 | { type: IterableDiffers },
|
---|
91 | { type: undefined, decorators: [{ type: Inject, args: [CDK_TABLE,] }, { type: Optional }] }
|
---|
92 | ];
|
---|
93 | // Boilerplate for applying mixins to CdkFooterRowDef.
|
---|
94 | /** @docs-private */
|
---|
95 | class CdkFooterRowDefBase extends BaseRowDef {
|
---|
96 | }
|
---|
97 | const _CdkFooterRowDefBase = mixinHasStickyInput(CdkFooterRowDefBase);
|
---|
98 | /**
|
---|
99 | * Footer row definition for the CDK table.
|
---|
100 | * Captures the footer row's template and other footer properties such as the columns to display.
|
---|
101 | */
|
---|
102 | export class CdkFooterRowDef extends _CdkFooterRowDefBase {
|
---|
103 | constructor(template, _differs, _table) {
|
---|
104 | super(template, _differs);
|
---|
105 | this._table = _table;
|
---|
106 | }
|
---|
107 | // Prerender fails to recognize that ngOnChanges in a part of this class through inheritance.
|
---|
108 | // Explicitly define it so that the method is called as part of the Angular lifecycle.
|
---|
109 | ngOnChanges(changes) {
|
---|
110 | super.ngOnChanges(changes);
|
---|
111 | }
|
---|
112 | }
|
---|
113 | CdkFooterRowDef.decorators = [
|
---|
114 | { type: Directive, args: [{
|
---|
115 | selector: '[cdkFooterRowDef]',
|
---|
116 | inputs: ['columns: cdkFooterRowDef', 'sticky: cdkFooterRowDefSticky'],
|
---|
117 | },] }
|
---|
118 | ];
|
---|
119 | CdkFooterRowDef.ctorParameters = () => [
|
---|
120 | { type: TemplateRef },
|
---|
121 | { type: IterableDiffers },
|
---|
122 | { type: undefined, decorators: [{ type: Inject, args: [CDK_TABLE,] }, { type: Optional }] }
|
---|
123 | ];
|
---|
124 | /**
|
---|
125 | * Data row definition for the CDK table.
|
---|
126 | * Captures the header row's template and other row properties such as the columns to display and
|
---|
127 | * a when predicate that describes when this row should be used.
|
---|
128 | */
|
---|
129 | export class CdkRowDef extends BaseRowDef {
|
---|
130 | // TODO(andrewseguin): Add an input for providing a switch function to determine
|
---|
131 | // if this template should be used.
|
---|
132 | constructor(template, _differs, _table) {
|
---|
133 | super(template, _differs);
|
---|
134 | this._table = _table;
|
---|
135 | }
|
---|
136 | }
|
---|
137 | CdkRowDef.decorators = [
|
---|
138 | { type: Directive, args: [{
|
---|
139 | selector: '[cdkRowDef]',
|
---|
140 | inputs: ['columns: cdkRowDefColumns', 'when: cdkRowDefWhen'],
|
---|
141 | },] }
|
---|
142 | ];
|
---|
143 | CdkRowDef.ctorParameters = () => [
|
---|
144 | { type: TemplateRef },
|
---|
145 | { type: IterableDiffers },
|
---|
146 | { type: undefined, decorators: [{ type: Inject, args: [CDK_TABLE,] }, { type: Optional }] }
|
---|
147 | ];
|
---|
148 | /**
|
---|
149 | * Outlet for rendering cells inside of a row or header row.
|
---|
150 | * @docs-private
|
---|
151 | */
|
---|
152 | export class CdkCellOutlet {
|
---|
153 | constructor(_viewContainer) {
|
---|
154 | this._viewContainer = _viewContainer;
|
---|
155 | CdkCellOutlet.mostRecentCellOutlet = this;
|
---|
156 | }
|
---|
157 | ngOnDestroy() {
|
---|
158 | // If this was the last outlet being rendered in the view, remove the reference
|
---|
159 | // from the static property after it has been destroyed to avoid leaking memory.
|
---|
160 | if (CdkCellOutlet.mostRecentCellOutlet === this) {
|
---|
161 | CdkCellOutlet.mostRecentCellOutlet = null;
|
---|
162 | }
|
---|
163 | }
|
---|
164 | }
|
---|
165 | /**
|
---|
166 | * Static property containing the latest constructed instance of this class.
|
---|
167 | * Used by the CDK table when each CdkHeaderRow and CdkRow component is created using
|
---|
168 | * createEmbeddedView. After one of these components are created, this property will provide
|
---|
169 | * a handle to provide that component's cells and context. After init, the CdkCellOutlet will
|
---|
170 | * construct the cells with the provided context.
|
---|
171 | */
|
---|
172 | CdkCellOutlet.mostRecentCellOutlet = null;
|
---|
173 | CdkCellOutlet.decorators = [
|
---|
174 | { type: Directive, args: [{ selector: '[cdkCellOutlet]' },] }
|
---|
175 | ];
|
---|
176 | CdkCellOutlet.ctorParameters = () => [
|
---|
177 | { type: ViewContainerRef }
|
---|
178 | ];
|
---|
179 | /** Header template container that contains the cell outlet. Adds the right class and role. */
|
---|
180 | export class CdkHeaderRow {
|
---|
181 | }
|
---|
182 | CdkHeaderRow.decorators = [
|
---|
183 | { type: Component, args: [{
|
---|
184 | selector: 'cdk-header-row, tr[cdk-header-row]',
|
---|
185 | template: CDK_ROW_TEMPLATE,
|
---|
186 | host: {
|
---|
187 | 'class': 'cdk-header-row',
|
---|
188 | 'role': 'row',
|
---|
189 | },
|
---|
190 | // See note on CdkTable for explanation on why this uses the default change detection strategy.
|
---|
191 | // tslint:disable-next-line:validate-decorators
|
---|
192 | changeDetection: ChangeDetectionStrategy.Default,
|
---|
193 | encapsulation: ViewEncapsulation.None
|
---|
194 | },] }
|
---|
195 | ];
|
---|
196 | /** Footer template container that contains the cell outlet. Adds the right class and role. */
|
---|
197 | export class CdkFooterRow {
|
---|
198 | }
|
---|
199 | CdkFooterRow.decorators = [
|
---|
200 | { type: Component, args: [{
|
---|
201 | selector: 'cdk-footer-row, tr[cdk-footer-row]',
|
---|
202 | template: CDK_ROW_TEMPLATE,
|
---|
203 | host: {
|
---|
204 | 'class': 'cdk-footer-row',
|
---|
205 | 'role': 'row',
|
---|
206 | },
|
---|
207 | // See note on CdkTable for explanation on why this uses the default change detection strategy.
|
---|
208 | // tslint:disable-next-line:validate-decorators
|
---|
209 | changeDetection: ChangeDetectionStrategy.Default,
|
---|
210 | encapsulation: ViewEncapsulation.None
|
---|
211 | },] }
|
---|
212 | ];
|
---|
213 | /** Data row template container that contains the cell outlet. Adds the right class and role. */
|
---|
214 | export class CdkRow {
|
---|
215 | }
|
---|
216 | CdkRow.decorators = [
|
---|
217 | { type: Component, args: [{
|
---|
218 | selector: 'cdk-row, tr[cdk-row]',
|
---|
219 | template: CDK_ROW_TEMPLATE,
|
---|
220 | host: {
|
---|
221 | 'class': 'cdk-row',
|
---|
222 | 'role': 'row',
|
---|
223 | },
|
---|
224 | // See note on CdkTable for explanation on why this uses the default change detection strategy.
|
---|
225 | // tslint:disable-next-line:validate-decorators
|
---|
226 | changeDetection: ChangeDetectionStrategy.Default,
|
---|
227 | encapsulation: ViewEncapsulation.None
|
---|
228 | },] }
|
---|
229 | ];
|
---|
230 | /** Row that can be used to display a message when no data is shown in the table. */
|
---|
231 | export class CdkNoDataRow {
|
---|
232 | constructor(templateRef) {
|
---|
233 | this.templateRef = templateRef;
|
---|
234 | }
|
---|
235 | }
|
---|
236 | CdkNoDataRow.decorators = [
|
---|
237 | { type: Directive, args: [{
|
---|
238 | selector: 'ng-template[cdkNoDataRow]'
|
---|
239 | },] }
|
---|
240 | ];
|
---|
241 | CdkNoDataRow.ctorParameters = () => [
|
---|
242 | { type: TemplateRef }
|
---|
243 | ];
|
---|
244 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm93LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2Nkay90YWJsZS9yb3cudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBR0gsT0FBTyxFQUNMLHVCQUF1QixFQUN2QixTQUFTLEVBQ1QsU0FBUyxFQUdULGVBQWUsRUFJZixXQUFXLEVBQ1gsZ0JBQWdCLEVBQ2hCLGlCQUFpQixFQUNqQixNQUFNLEVBQ04sUUFBUSxFQUNULE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBeUIsbUJBQW1CLEVBQUMsTUFBTSxhQUFhLENBQUM7QUFFeEUsT0FBTyxFQUFDLFNBQVMsRUFBQyxNQUFNLFVBQVUsQ0FBQztBQUVuQzs7O0dBR0c7QUFDSCxNQUFNLENBQUMsTUFBTSxnQkFBZ0IsR0FBRyw2Q0FBNkMsQ0FBQztBQUU5RTs7O0dBR0c7QUFFSCxNQUFNLE9BQWdCLFVBQVU7SUFPOUI7SUFDSSxvQkFBb0IsQ0FBUSxRQUEwQixFQUFZLFFBQXlCO1FBQS9ELGFBQVEsR0FBUixRQUFRLENBQWtCO1FBQVksYUFBUSxHQUFSLFFBQVEsQ0FBaUI7SUFDL0YsQ0FBQztJQUVELFdBQVcsQ0FBQyxPQUFzQjtRQUNoQyw4RkFBOEY7UUFDOUYs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