http://git-wip-us.apache.org/repos/asf/nifi-fds/blob/90759b86/node_modules/@angular/cdk/esm5/stepper.es5.js.map ---------------------------------------------------------------------- diff --git a/node_modules/@angular/cdk/esm5/stepper.es5.js.map b/node_modules/@angular/cdk/esm5/stepper.es5.js.map new file mode 100644 index 0000000..a8a3d5a --- /dev/null +++ b/node_modules/@angular/cdk/esm5/stepper.es5.js.map @@ -0,0 +1 @@ +{"version":3,"file":"stepper.es5.js","sources":["../../packages/cdk/esm5/stepper/step-label.js","../../packages/cdk/esm5/stepper/stepper.js","../../packages/cdk/esm5/stepper/stepper-button.js","../../packages/cdk/esm5/stepper/stepper-module.js","../../packages/cdk/esm5/stepper/index.js"],"sourcesContent":["/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport { Directive, TemplateRef } from '@angular/core';\nvar CdkStepLabel = (function () {\n /**\n * @param {?} template\n */\n function CdkStepLabel(template) {\n this.template = template;\n }\n CdkStepLabel.decorators = [\n { type: Directive, args: [{\n selector: '[cdkStepLabel]',\n },] },\n ];\n /**\n * @nocollapse\n */\n CdkStepLabel.ctorParameters = function () { return [\n { typ e: TemplateRef, },\n ]; };\n return CdkStepLabel;\n}());\nexport { CdkStepLabel };\nfunction CdkStepLabel_tsickle_Closure_declarations() {\n /** @type {?} */\n CdkStepLabel.decorators;\n /**\n * @nocollapse\n * @type {?}\n */\n CdkStepLabel.ctorParameters;\n /** @type {?} */\n CdkStepLabel.prototype.template;\n}\n//# sourceMappingURL=step-label.js.map","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport { ContentChildren, EventEmitter, Input, Output, Directive, Component, ContentChild, ViewChild, TemplateRef, ViewEncapsulation, Optional, Inject, forwardRef, ChangeDetectionStrategy, ChangeDetectorRef, } from '@angular/core';\nimport { LEFT_ARROW, RIGHT_ARROW, ENTER, SPACE } from '@angular/cdk/keycodes';\nimport { CdkStepLabel } from './step-label';\nimport { coerceBooleanProperty } fro m '@angular/cdk/coercion';\nimport { Directionality } from '@angular/cdk/bidi';\n/**\n * Used to generate unique ID for each stepper component.\n */\nvar nextId = 0;\n/**\n * Change event emitted on selection changes.\n */\nvar StepperSelectionEvent = (function () {\n function StepperSelectionEvent() {\n }\n return StepperSelectionEvent;\n}());\nexport { StepperSelectionEvent };\nfunction StepperSelectionEvent_tsickle_Closure_declarations() {\n /**\n * Index of the step now selected.\n * @type {?}\n */\n StepperSelectionEvent.prototype.selectedIndex;\n /**\n * Index of the step previously selected.\n * @type {?}\n */\n StepperSelectionEvent.prototype.previouslySelectedIndex;\n /**\n * The step instance now selected.\n * @type {?}\n */\n StepperSelectionEvent.prototype.selectedStep;\n /**\n * The step instance previously selected.\n * @type {?}\n */\n StepperSelectionEvent.prototype.previouslySelectedSte p;\n}\nvar CdkStep = (function () {\n /**\n * @param {?} _stepper\n */\n function CdkStep(_stepper) {\n this._stepper = _stepper;\n /**\n * Whether user has seen the expanded step content or not.\n */\n this.interacted = false;\n this._editable = true;\n this._optional = false;\n this._customCompleted = null;\n }\n Object.defineProperty(CdkStep.prototype, \"editable\", {\n /**\n * @return {?}\n */\n get: function () { return this._editable; },\n /**\n * @param {?} value\n * @return {?}\n */\n set: function (value) {\n this._editable = coerceBooleanProperty(value);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(CdkStep.prototype, \"optional\", {\n /**\n * Whether the completion of step is optional or not.\n * @return {?}\n */\n get: func tion () { return this._optional; },\n /**\n * @param {?} value\n * @return {?}\n */\n set: function (value) {\n this._optional = coerceBooleanProperty(value);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(CdkStep.prototype, \"completed\", {\n /**\n * Return whether step is completed or not.\n * @return {?}\n */\n get: function () {\n return this._customCompleted == null ? this._defaultCompleted : this._customCompleted;\n },\n /**\n * @param {?} value\n * @return {?}\n */\n set: function (value) {\n this._customCompleted = coerceBooleanProperty(value);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(CdkStep.prototype, \"_defaultCompleted\", {\n /**\n * @return {?}\n */\n get: function () {\n return this.stepControl ? this.stepControl.valid && this.interacted : this.interacted;\n },\n enumerable: true,\n configurable: true\n });\n /**\n * Selects this step component.\n * @return {?}\n */\n CdkStep.prototype.select = function () {\n this._stepper.selected = this;\n };\n /**\n * @return {?}\n */\n CdkStep.prototype.ngOnChanges = function () {\n // Since basically all inputs of the MdStep get proxied through the view down to the\n // underlying MdStepHeader, we have to make sure that change detection runs correctly.\n this._stepper._stateChanged();\n };\n CdkStep.decorators = [\n { type: Component, args: [{selector: 'cdk-step',\n exportAs: 'cdkStep',\n template: \"<ng-template><ng-content></ng-content></ng-template>\",\n encapsulation: ViewEncapsulation.None,\n preserveWhitespaces: false,\n changeDetection: ChangeDetectionStrategy.OnPush,\n },] },\n ];\n /**\n * @nocollapse\n */\n CdkStep.ctorParameters = function () { return [\n { type: CdkStepper, decorators: [{ type: Inject, args: [forwardRef(function () { return CdkStepper; }),] },] },\n ]; };\n CdkStep.propDecorators = {\n 'stepLabel': [{ type: ContentChild, args: [CdkStepLabel,] },],\n 'content': [{ type: ViewChild, args: [TemplateRef,] },],\n 'stepControl': [{ type: Input },],\n 'label': [{ type: Input },],\n 'editable': [{ type: Input },],\n 'optional': [{ type: Input },],\n 'completed': [{ type: Input },],\n };\n return CdkStep;\n}());\nexport { CdkStep };\nfunction CdkStep_tsickle_Closure_declarations() {\n /** @type {?} */\n CdkStep.decorators;\n /**\n * @nocollapse\n * @type {?}\n */\n CdkStep.ctorParameters;\n /** @type {?} */\n CdkStep.propDecorators;\n /* *\n * Template for step label if it exists.\n * @type {?}\n */\n CdkStep.prototype.stepLabel;\n /**\n * Template for step content.\n * @type {?}\n */\n CdkStep.prototype.content;\n /**\n * The top level abstract control of the step.\n * @type {?}\n */\n CdkStep.prototype.stepControl;\n /**\n * Whether user has seen the expanded step content or not.\n * @type {?}\n */\n CdkStep.prototype.interacted;\n /**\n * Label of the step.\n * @type {?}\n */\n CdkStep.prototype.label;\n /** @type {?} */\n CdkStep.prototype._editable;\n /** @type {?} */\n CdkStep.prototype._optional;\n /** @type {?} */\n CdkStep.prototype._customCompleted;\n /** @type {?} */\n CdkStep.prototype._stepper;\n}\nvar CdkStepper = (function () {\n /**\n * @param {?} _dir\n * @param {?} _changeDetectorRef\n */\n function CdkStepper(_dir, _changeDetectorRef) {\n this._dir = _dir;\n this._changeDetectorRef = _changeDetectorRef;\n this._linear = false;\n this._selectedIndex = 0;\n /**\n * Event emitted when the selected step has changed.\n */\n this.selectionChange = new EventEmitter();\n /**\n * The index of the step that the focus can be set.\n */\n this._focusIndex = 0;\n this._groupId = nextId++;\n }\n Object.defineProperty(CdkStepper.prototype, \"linear\", {\n /**\n * Whether the validity of previous steps should be checked or not.\n * @return {?}\n */\n get: function () { return this._linear; },\n /**\n * @param {?} value\n * @return {?}\n */\n set: function (value) { this._linear = coerceBooleanProperty(value); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(CdkStepper.prototype, \"selectedIndex\", {\n /**\n * The index of the select ed step.\n * @return {?}\n */\n get: function () { return this._selectedIndex; },\n /**\n * @param {?} index\n * @return {?}\n */\n set: function (index) {\n if (this._anyControlsInvalid(index)\n || index < this._selectedIndex && !this._steps.toArray()[index].editable) {\n // remove focus from clicked step header if the step is not able to be selected\n this._stepHeader.toArray()[index].nativeElement.blur();\n }\n else if (this._selectedIndex != index) {\n this._emitStepperSelectionEvent(index);\n this._focusIndex = this._selectedIndex;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(CdkStepper.prototype, \"selected\", {\n /**\n * The step that is selected.\n * @return {?}\n */\n get: function () { return this. _steps.toArray()[this.selectedIndex]; },\n /**\n * @param {?} step\n * @return {?}\n */\n set: function (step) {\n this.selectedIndex = this._steps.toArray().indexOf(step);\n },\n enumerable: true,\n configurable: true\n });\n /**\n * Selects and focuses the next step in list.\n * @return {?}\n */\n CdkStepper.prototype.next = function () {\n this.selectedIndex = Math.min(this._selectedIndex + 1, this._steps.length - 1);\n };\n /**\n * Selects and focuses the previous step in list.\n * @return {?}\n */\n CdkStepper.prototype.previous = function () {\n this.selectedIndex = Math.max(this._selectedIndex - 1, 0);\n };\n /**\n * Returns a unique id for each step label element.\n * @param {?} i\n * @return {?}\n */\n CdkStepper.prototype._getStepLabelId = function (i) {\n return \"mat-step-label-\" + this._groupId + \"-\" + i;\n } ;\n /**\n * Returns unique id for each step content element.\n * @param {?} i\n * @return {?}\n */\n CdkStepper.prototype._getStepContentId = function (i) {\n return \"mat-step-content-\" + this._groupId + \"-\" + i;\n };\n /**\n * Marks the component to be change detected.\n * @return {?}\n */\n CdkStepper.prototype._stateChanged = function () {\n this._changeDetectorRef.markForCheck();\n };\n /**\n * Returns position state of the step with the given index.\n * @param {?} index\n * @return {?}\n */\n CdkStepper.prototype._getAnimationDirection = function (index) {\n var /** @type {?} */ position = index - this._selectedIndex;\n if (position < 0) {\n return this._layoutDirection() === 'rtl' ? 'next' : 'previous';\n }\n else if (position > 0) {\n return this._layoutDirection() === 'rtl' ? 'previous' : 'next';\n }\n return 'current';\n }; \n /**\n * Returns the type of icon to be displayed.\n * @param {?} index\n * @return {?}\n */\n CdkStepper.prototype._getIndicatorType = function (index) {\n var /** @type {?} */ step = this._steps.toArray()[index];\n if (!step.completed || this._selectedIndex == index) {\n return 'number';\n }\n else {\n return step.editable ? 'edit' : 'done';\n }\n };\n /**\n * @param {?} newIndex\n * @return {?}\n */\n CdkStepper.prototype._emitStepperSelectionEvent = function (newIndex) {\n var /** @type {?} */ stepsArray = this._steps.toArray();\n this.selectionChange.emit({\n selectedIndex: newIndex,\n previouslySelectedIndex: this._selectedIndex,\n selectedStep: stepsArray[newIndex],\n previouslySelectedStep: stepsArray[this._selectedIndex],\n });\n this._selectedIndex = newIndex;\n this._stateChanged();\n };\n /**\n * @param {?} event\n * @return {?}\n */\n CdkStepper.prototype._onKeydown = function (event) {\n switch (event.keyCode) {\n case RIGHT_ARROW:\n if (this._layoutDirection() === 'rtl') {\n this._focusPreviousStep();\n }\n else {\n this._focusNextStep();\n }\n break;\n case LEFT_ARROW:\n if (this._layoutDirection() === 'rtl') {\n this._focusNextStep();\n }\n else {\n this._focusPreviousStep();\n }\n break;\n case SPACE:\n case ENTER:\n this.selectedIndex = this._focusIndex;\n break;\n default:\n // Return to avoid calling preventDefault on keys that are not explicitly handled.\n return;\n }\n event.preventDe fault();\n };\n /**\n * @return {?}\n */\n CdkStepper.prototype._focusNextStep = function () {\n this._focusStep((this._focusIndex + 1) % this._steps.length);\n };\n /**\n * @return {?}\n */\n CdkStepper.prototype._focusPreviousStep = function () {\n this._focusStep((this._focusIndex + this._steps.length - 1) % this._steps.length);\n };\n /**\n * @param {?} index\n * @return {?}\n */\n CdkStepper.prototype._focusStep = function (index) {\n this._focusIndex = index;\n this._stepHeader.toArray()[this._focusIndex].nativeElement.focus();\n };\n /**\n * @param {?} index\n * @return {?}\n */\n CdkStepper.prototype._anyControlsInvalid = function (index) {\n this._steps.toArray()[this._selectedIndex].interacted = true;\n if (this._linear && index >= 0) {\n return this._steps.toArray().slice(0, index).some(function (step) { return step.stepControl.invalid; });\n }\n return false;\n };\n /**\n * @return {?}\n */\n CdkStepper.prototype._layoutDirection = function () {\n return this._dir && this._dir.value === 'rtl' ? 'rtl' : 'ltr';\n };\n CdkStepper.decorators = [\n { type: Directive, args: [{\n selector: '[cdkStepper]',\n exportAs: 'cdkStepper',\n },] },\n ];\n /**\n * @nocollapse\n */\n CdkStepper.ctorParameters = function () { return [\n { type: Directionality, decorators: [{ type: Optional },] },\n { type: ChangeDetectorRef, },\n ]; };\n CdkStepper.propDecorators = {\n '_steps': [{ type: ContentChildren, args: [CdkStep,] },],\n 'linear': [{ type: Input },],\n 'selectedIndex': [{ type: Input },],\n 'selected': [{ type: Input },],\n 'selectionChange': [{ type: Output },],\n };\n return CdkStepper;\n}());\nexport { CdkStepper };\nfunction CdkStepper_tsickle_Closure _declarations() {\n /** @type {?} */\n CdkStepper.decorators;\n /**\n * @nocollapse\n * @type {?}\n */\n CdkStepper.ctorParameters;\n /** @type {?} */\n CdkStepper.propDecorators;\n /**\n * The list of step components that the stepper is holding.\n * @type {?}\n */\n CdkStepper.prototype._steps;\n /**\n * The list of step headers of the steps in the stepper.\n * @type {?}\n */\n CdkStepper.prototype._stepHeader;\n /** @type {?} */\n CdkStepper.prototype._linear;\n /** @type {?} */\n CdkStepper.prototype._selectedIndex;\n /**\n * Event emitted when the selected step has changed.\n * @type {?}\n */\n CdkStepper.prototype.selectionChange;\n /**\n * The index of the step that the focus can be set.\n * @type {?}\n */\n CdkStepper.prototype._focusIndex;\n /**\n * Used to track unique ID for each stepper component.\n * @type {?}\n */\n CdkStepper.prototype._gr oupId;\n /** @type {?} */\n CdkStepper.prototype._dir;\n /** @type {?} */\n CdkStepper.prototype._changeDetectorRef;\n}\n//# sourceMappingURL=stepper.js.map","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport { Directive } from '@angular/core';\nimport { CdkStepper } from './stepper';\n/**\n * Button that moves to the next step in a stepper workflow.\n */\nvar CdkStepperNext = (function () {\n /**\n * @param {?} _stepper\n */\n function CdkStepperNext(_stepper) {\n this._stepper = _stepper;\n }\n CdkStepperNext.decorators = [\n { type: Directive, args: [{\n selector: 'button[cdkStepperNext]',\n host: { '(click)': '_stepper.next()' }\n },] },\n ];\n /**\n * @nocollapse\n */\n CdkStepperNext.ctorParameters = function () { return [\n { type: CdkStepper, },\n ]; };\n return CdkStepperNext;\n}());\nexport { CdkStepperNext };\nfunction CdkStepperNext_tsickle_Closure_declarations() {\n /** @type {?} */\n CdkStepperNext.decorators;\n /**\n * @nocollapse\n * @type {?}\n */\n CdkStepperNext.ctorParameters;\n /** @type {?} */\n CdkStepperNext.prototype._stepper;\n}\n/**\n * Button that moves to the previous step in a stepper workflow.\n */\nvar CdkStepperPrevious = (function () {\n /**\n * @param {?} _stepper\n */\n function CdkStepperPrevious(_stepper) {\n this._stepper = _stepper;\n }\n CdkStepperPrevious.decorators = [\n { type: Directive, args: [{\n selector: 'button[cdkStepperPrevious]',\n host: { '(click)': '_stepper.previous()' }\n },] },\n ];\n /**\n * @nocollapse\n */\n CdkStepperPrevious.ctorParameters = function () { return [\n { t ype: CdkStepper, },\n ]; };\n return CdkStepperPrevious;\n}());\nexport { CdkStepperPrevious };\nfunction CdkStepperPrevious_tsickle_Closure_declarations() {\n /** @type {?} */\n CdkStepperPrevious.decorators;\n /**\n * @nocollapse\n * @type {?}\n */\n CdkStepperPrevious.ctorParameters;\n /** @type {?} */\n CdkStepperPrevious.prototype._stepper;\n}\n//# sourceMappingURL=stepper-button.js.map","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport { NgModule } from '@angular/core';\nimport { CdkStepper, CdkStep } from './stepper';\nimport { CommonModule } from '@angular/common';\nimport { CdkStepLabel } from './step-label';\nimport { CdkStepperNext, CdkStepperPrevious } from './stepper-button';\nimport { BidiModule } from '@angular/cdk/bidi';\nvar CdkStepperModule = (function () {\n fu nction CdkStepperModule() {\n }\n CdkStepperModule.decorators = [\n { type: NgModule, args: [{\n imports: [BidiModule, CommonModule],\n exports: [CdkStep, CdkStepper, CdkStepLabel, CdkStepperNext, CdkStepperPrevious],\n declarations: [CdkStep, CdkStepper, CdkStepLabel, CdkStepperNext, CdkStepperPrevious]\n },] },\n ];\n /**\n * @nocollapse\n */\n CdkStepperModule.ctorParameters = function () { return []; };\n return CdkStepperModule;\n}());\nexport { CdkStepperModule };\nfunction CdkStepperModule_tsickle_Closure_declarations() {\n /** @type {?} */\n CdkStepperModule.decorators;\n /**\n * @nocollapse\n * @type {?}\n */\n CdkStepperModule.ctorParameters;\n}\n//# sourceMappingURL=stepper-module.js.map","/**\n * Generated bundle index. Do not edit.\n */\nexport { StepperSelectionEvent, CdkStep, CdkStepper, CdkStepLabel, CdkStepperNext, CdkStepperPrevious, CdkS tepperModule } from './public-api';\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;;;;;;;;;;;AAQA,IAAI,YAAY,IAAI,YAAY;;;;IAI5B,SAAS,YAAY,CAAC,QAAQ,EAAE;QAC5B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;KAC5B;IACD,YAAY,CAAC,UAAU,GAAG;QACtB,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;oBACd,QAAQ,EAAE,gBAAgB;iBAC7B,EAAE,EAAE;KAChB,CAAC;;;;IAIF,YAAY,CAAC,cAAc,GAAG,YAAY,EAAE,OAAO;QAC/C,EAAE,IAAI,EAAE,WAAW,GAAG;KACzB,CAAC,EAAE,CAAC;IACL,OAAO,YAAY,CAAC;CACvB,EAAE,CAAC,CAAC,AACL,AACA,AAUC,AACD;;AC5BA;;;AAGA,IAAI,MAAM,GAAG,CAAC,CAAC;;;;AAIf,IAAI,qBAAqB,IAAI,YAAY;IACrC,SAAS,qBAAqB,GAAG;KAChC;IACD,OAAO,qBAAqB,CAAC;CAChC,EAAE,CAAC,CAAC;AACL,AACA,AAsBA,IAAI,OAAO,IAAI,YAAY;;;;IAIvB,SAAS,OAAO,CAAC,QAAQ,EAAE;QACvB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;;;;QAIzB,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QACxB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QACvB,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;KAChC;IACD,MAAM,CAAC,cAAc,CAAC,OAAO,CAAC,SAAS,EAAE,UAAU,EAAE;;;;QAIjD,GAAG,EAAE,YAAY,EAAE,OAAO,IAAI,CAAC,SAAS,CAA C,EAAE;;;;;QA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S,EAAE,IAAI,EAAE,CAAC;oBACd,QAAQ,EAAE,4BAA4B;oBACtC,IAAI,EAAE,EAAE,SAAS,EAAE,qBAAqB,EAAE;iBAC7C,EAAE,EAAE;KAChB,CAAC;;;;IAIF,kBAAkB,CAAC,cAAc,GAAG,YAAY,EAAE,OAAO;QACrD,EAAE,IAAI,EAAE,UAAU,GAAG;KACxB,CAAC,EAAE,CAAC;IACL,OAAO,kBAAkB,CAAC;CAC7B,EAAE,CAAC,CAAC,AACL,AACA,AAUC,AACD;;ACpEA,IAAI,gBAAgB,IAAI,YAAY;IAChC,SAAS,gBAAgB,GAAG;KAC3B;IACD,gBAAgB,CAAC,UAAU,GAAG;QAC1B,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;oBACb,OAAO,EAAE,CAAC,UAAU,EAAE,YAAY,CAAC;oBACnC,OAAO,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,cAAc,EAAE,kBAAkB,CAAC;oBAChF,YAAY,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,cAAc,EAAE,kBAAkB,CAAC;iBACxF,EAAE,EAAE;KAChB,CAAC;;;;IAIF,gBAAgB,CAAC,cAAc,GA AG,YAAY,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;IAC7D,OAAO,gBAAgB,CAAC;CAC3B,EAAE,CAAC,CAAC,AACL,AACA,AAQC,AACD;;ACvCA;;GAEG,AACH,AAA8I,AAC9I;;"} \ No newline at end of file
http://git-wip-us.apache.org/repos/asf/nifi-fds/blob/90759b86/node_modules/@angular/cdk/esm5/table.es5.js ---------------------------------------------------------------------- diff --git a/node_modules/@angular/cdk/esm5/table.es5.js b/node_modules/@angular/cdk/esm5/table.es5.js new file mode 100644 index 0000000..2c78e22 --- /dev/null +++ b/node_modules/@angular/cdk/esm5/table.es5.js @@ -0,0 +1,819 @@ +/** + * @license + * Copyright Google Inc. 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.io/license + */ +import { Attribute, ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, ContentChildren, Directive, ElementRef, Input, IterableDiffers, NgModule, Renderer2, TemplateRef, ViewChild, ViewContainerRef, ViewEncapsulation, isDevMode } from '@angular/core'; +import { __extends } from 'tslib'; +import * as tslib_1 from 'tslib'; +import { takeUntil } from 'rxjs/operator/takeUntil'; +import { BehaviorSubject } from 'rxjs/BehaviorSubject'; +import { Subject } from 'rxjs/Subject'; +import { CommonModule } from '@angular/common'; +import { DataSource } from '@angular/cdk/collections'; + +/** + * The row template that can be used by the mat-table. Should not be used outside of the + * material library. + */ +var CDK_ROW_TEMPLATE = "<ng-container cdkCellOutlet></ng-container>"; +/** + * Base class for the CdkHeaderRowDef and CdkRowDef that handles checking their columns inputs + * for changes and notifying the table. + * @abstract + */ +var BaseRowDef = (function () { + /** + * @param {?} template + * @param {?} _differs + */ + function BaseRowDef(template, _differs) { + this.template = template; + this._differs = _differs; + } + /** + * @param {?} changes + * @return {?} + */ + BaseRowDef.prototype.ngOnChanges = function (changes) { + // Create a new columns differ if one does not yet exist. Initialize it based on initial value + // of the columns property or an empty array if none is provided. + var /** @type {?} */ columns = changes['columns'].currentValue || []; + if (!this._columnsDiffer) { + this._columnsDiffer = this._differs.find(columns).create(); + this._columnsDiffer.diff(columns); + } + }; + /** + * Returns the difference between the current columns and the columns from the last diff, or null + * if there is no difference. + * @return {?} + */ + BaseRowDef.prototype.getColumnsDiff = function () { + return this._columnsDiffer.diff(this.columns); + }; + return BaseRowDef; +}()); +/** + * Header row definition for the CDK table. + * Captures the header row's template and other header properties such as the columns to display. + */ +var CdkHeaderRowDef = (function (_super) { + __extends(CdkHeaderRowDef, _super); + /** + * @param {?} template + * @param {?} _differs + */ + function CdkHeaderRowDef(template, _differs) { + return _super.call(this, template, _differs) || this; + } + CdkHeaderRowDef.decorators = [ + { type: Directive, args: [{ + selector: '[cdkHeaderRowDef]', + inputs: ['columns: cdkHeaderRowDef'], + },] }, + ]; + /** + * @nocollapse + */ + CdkHeaderRowDef.ctorParameters = function () { return [ + { type: TemplateRef, }, + { type: IterableDiffers, }, + ]; }; + return CdkHeaderRowDef; +}(BaseRowDef)); +/** + * Data row definition for the CDK table. + * Captures the header row's template and other row properties such as the columns to display and + * a when predicate that describes when this row should be used. + */ +var CdkRowDef = (function (_super) { + __extends(CdkRowDef, _super); + /** + * @param {?} template + * @param {?} _differs + */ + function CdkRowDef(template, _differs) { + return _super.call(this, template, _differs) || this; + } + CdkRowDef.decorators = [ + { type: Directive, args: [{ + selector: '[cdkRowDef]', + inputs: ['columns: cdkRowDefColumns', 'when: cdkRowDefWhen'], + },] }, + ]; + /** + * @nocollapse + */ + CdkRowDef.ctorParameters = function () { return [ + { type: TemplateRef, }, + { type: IterableDiffers, }, + ]; }; + return CdkRowDef; +}(BaseRowDef)); +/** + * Outlet for rendering cells inside of a row or header row. + * \@docs-private + */ +var CdkCellOutlet = (function () { + /** + * @param {?} _viewContainer + */ + function CdkCellOutlet(_viewContainer) { + this._viewContainer = _viewContainer; + CdkCellOutlet.mostRecentCellOutlet = this; + } + CdkCellOutlet.decorators = [ + { type: Directive, args: [{ selector: '[cdkCellOutlet]' },] }, + ]; + /** + * @nocollapse + */ + CdkCellOutlet.ctorParameters = function () { return [ + { type: ViewContainerRef, }, + ]; }; + return CdkCellOutlet; +}()); +/** + * Header template container that contains the cell outlet. Adds the right class and role. + */ +var CdkHeaderRow = (function () { + function CdkHeaderRow() { + } + CdkHeaderRow.decorators = [ + { type: Component, args: [{selector: 'cdk-header-row', + template: CDK_ROW_TEMPLATE, + host: { + 'class': 'cdk-header-row', + 'role': 'row', + }, + changeDetection: ChangeDetectionStrategy.OnPush, + encapsulation: ViewEncapsulation.None, + preserveWhitespaces: false, + },] }, + ]; + /** + * @nocollapse + */ + CdkHeaderRow.ctorParameters = function () { return []; }; + return CdkHeaderRow; +}()); +/** + * Data row template container that contains the cell outlet. Adds the right class and role. + */ +var CdkRow = (function () { + function CdkRow() { + } + CdkRow.decorators = [ + { type: Component, args: [{selector: 'cdk-row', + template: CDK_ROW_TEMPLATE, + host: { + 'class': 'cdk-row', + 'role': 'row', + }, + changeDetection: ChangeDetectionStrategy.OnPush, + encapsulation: ViewEncapsulation.None, + preserveWhitespaces: false, + },] }, + ]; + /** + * @nocollapse + */ + CdkRow.ctorParameters = function () { return []; }; + return CdkRow; +}()); + +/** + * Cell definition for a CDK table. + * Captures the template of a column's data row cell as well as cell-specific properties. + */ +var CdkCellDef = (function () { + /** + * @param {?} template + */ + function CdkCellDef(template) { + this.template = template; + } + CdkCellDef.decorators = [ + { type: Directive, args: [{ selector: '[cdkCellDef]' },] }, + ]; + /** + * @nocollapse + */ + CdkCellDef.ctorParameters = function () { return [ + { type: TemplateRef, }, + ]; }; + return CdkCellDef; +}()); +/** + * Header cell definition for a CDK table. + * Captures the template of a column's header cell and as well as cell-specific properties. + */ +var CdkHeaderCellDef = (function () { + /** + * @param {?} template + */ + function CdkHeaderCellDef(template) { + this.template = template; + } + CdkHeaderCellDef.decorators = [ + { type: Directive, args: [{ selector: '[cdkHeaderCellDef]' },] }, + ]; + /** + * @nocollapse + */ + CdkHeaderCellDef.ctorParameters = function () { return [ + { type: TemplateRef, }, + ]; }; + return CdkHeaderCellDef; +}()); +/** + * Column definition for the CDK table. + * Defines a set of cells available for a table column. + */ +var CdkColumnDef = (function () { + function CdkColumnDef() { + } + Object.defineProperty(CdkColumnDef.prototype, "name", { + /** + * Unique name for this column. + * @return {?} + */ + get: function () { return this._name; }, + /** + * @param {?} name + * @return {?} + */ + set: function (name) { + this._name = name; + this.cssClassFriendlyName = name.replace(/[^a-z0-9_-]/ig, '-'); + }, + enumerable: true, + configurable: true + }); + CdkColumnDef.decorators = [ + { type: Directive, args: [{ selector: '[cdkColumnDef]' },] }, + ]; + /** + * @nocollapse + */ + CdkColumnDef.ctorParameters = function () { return []; }; + CdkColumnDef.propDecorators = { + 'name': [{ type: Input, args: ['cdkColumnDef',] },], + 'cell': [{ type: ContentChild, args: [CdkCellDef,] },], + 'headerCell': [{ type: ContentChild, args: [CdkHeaderCellDef,] },], + }; + return CdkColumnDef; +}()); +/** + * Header cell template container that adds the right classes and role. + */ +var CdkHeaderCell = (function () { + /** + * @param {?} columnDef + * @param {?} elementRef + * @param {?} renderer + */ + function CdkHeaderCell(columnDef, elementRef, renderer) { + renderer.addClass(elementRef.nativeElement, "cdk-column-" + columnDef.cssClassFriendlyName); + } + CdkHeaderCell.decorators = [ + { type: Directive, args: [{ + selector: 'cdk-header-cell', + host: { + 'class': 'cdk-header-cell', + 'role': 'columnheader', + }, + },] }, + ]; + /** + * @nocollapse + */ + CdkHeaderCell.ctorParameters = function () { return [ + { type: CdkColumnDef, }, + { type: ElementRef, }, + { type: Renderer2, }, + ]; }; + return CdkHeaderCell; +}()); +/** + * Cell template container that adds the right classes and role. + */ +var CdkCell = (function () { + /** + * @param {?} columnDef + * @param {?} elementRef + * @param {?} renderer + */ + function CdkCell(columnDef, elementRef, renderer) { + renderer.addClass(elementRef.nativeElement, "cdk-column-" + columnDef.cssClassFriendlyName); + } + CdkCell.decorators = [ + { type: Directive, args: [{ + selector: 'cdk-cell', + host: { + 'class': 'cdk-cell', + 'role': 'gridcell', + }, + },] }, + ]; + /** + * @nocollapse + */ + CdkCell.ctorParameters = function () { return [ + { type: CdkColumnDef, }, + { type: ElementRef, }, + { type: Renderer2, }, + ]; }; + return CdkCell; +}()); + +/** + * Returns an error to be thrown when attempting to find an unexisting column. + * \@docs-private + * @param {?} id Id whose lookup failed. + * @return {?} + */ +function getTableUnknownColumnError(id) { + return Error("cdk-table: Could not find column with id \"" + id + "\"."); +} +/** + * Returns an error to be thrown when two column definitions have the same name. + * \@docs-private + * @param {?} name + * @return {?} + */ +function getTableDuplicateColumnNameError(name) { + return Error("cdk-table: Duplicate column definition name provided: \"" + name + "\"."); +} +/** + * Returns an error to be thrown when there are multiple rows that are missing a when function. + * \@docs-private + * @return {?} + */ +function getTableMultipleDefaultRowDefsError() { + return Error("cdk-table: There can only be one default row without a when predicate function."); +} +/** + * Returns an error to be thrown when there are no matching row defs for a particular set of data. + * \@docs-private + * @return {?} + */ +function getTableMissingMatchingRowDefError() { + return Error("cdk-table: Could not find a matching row definition for the provided row data."); +} + +/** + * Provides a handle for the table to grab the view container's ng-container to insert data rows. + * \@docs-private + */ +var RowPlaceholder = (function () { + /** + * @param {?} viewContainer + */ + function RowPlaceholder(viewContainer) { + this.viewContainer = viewContainer; + } + RowPlaceholder.decorators = [ + { type: Directive, args: [{ selector: '[rowPlaceholder]' },] }, + ]; + /** + * @nocollapse + */ + RowPlaceholder.ctorParameters = function () { return [ + { type: ViewContainerRef, }, + ]; }; + return RowPlaceholder; +}()); +/** + * Provides a handle for the table to grab the view container's ng-container to insert the header. + * \@docs-private + */ +var HeaderRowPlaceholder = (function () { + /** + * @param {?} viewContainer + */ + function HeaderRowPlaceholder(viewContainer) { + this.viewContainer = viewContainer; + } + HeaderRowPlaceholder.decorators = [ + { type: Directive, args: [{ selector: '[headerRowPlaceholder]' },] }, + ]; + /** + * @nocollapse + */ + HeaderRowPlaceholder.ctorParameters = function () { return [ + { type: ViewContainerRef, }, + ]; }; + return HeaderRowPlaceholder; +}()); +/** + * The table template that can be used by the mat-table. Should not be used outside of the + * material library. + */ +var CDK_TABLE_TEMPLATE = "\n <ng-container headerRowPlaceholder></ng-container>\n <ng-container rowPlaceholder></ng-container>"; +/** + * A data table that connects with a data source to retrieve data of type `T` and renders + * a header row and data rows. Updates the rows when new data is provided by the data source. + */ +var CdkTable = (function () { + /** + * @param {?} _differs + * @param {?} _changeDetectorRef + * @param {?} elementRef + * @param {?} renderer + * @param {?} role + */ + function CdkTable(_differs, _changeDetectorRef, elementRef, renderer, role) { + this._differs = _differs; + this._changeDetectorRef = _changeDetectorRef; + /** + * Subject that emits when the component has been destroyed. + */ + this._onDestroy = new Subject(); + /** + * Latest data provided by the data source through the connect interface. + */ + this._data = []; + /** + * Map of all the user's defined columns (header and data cell template) identified by name. + */ + this._columnDefsByName = new Map(); + /** + * Stream containing the latest information on what rows are being displayed on screen. + * Can be used by the data source to as a heuristic of what data should be provided. + */ + this.viewChange = new BehaviorSubject({ start: 0, end: Number.MAX_VALUE }); + if (!role) { + renderer.setAttribute(elementRef.nativeElement, 'role', 'grid'); + } + } + Object.defineProperty(CdkTable.prototype, "trackBy", { + /** + * @return {?} + */ + get: function () { return this._trackByFn; }, + /** + * Tracking function that will be used to check the differences in data changes. Used similarly + * to `ngFor` `trackBy` function. Optimize row operations by identifying a row based on its data + * relative to the function to know if a row should be added/removed/moved. + * Accepts a function that takes two parameters, `index` and `item`. + * @param {?} fn + * @return {?} + */ + set: function (fn) { + if (isDevMode() && + fn != null && typeof fn !== 'function' && (console) && (console.warn)) { + console.warn("trackBy must be a function, but received " + JSON.stringify(fn) + "."); + } + this._trackByFn = fn; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(CdkTable.prototype, "dataSource", { + /** + * Provides a stream containing the latest data array to render. Influenced by the table's + * stream of view window (what rows are currently on screen). + * @return {?} + */ + get: function () { return this._dataSource; }, + /** + * @param {?} dataSource + * @return {?} + */ + set: function (dataSource) { + if (this._dataSource !== dataSource) { + this._switchDataSource(dataSource); + } + }, + enumerable: true, + configurable: true + }); + /** + * @return {?} + */ + CdkTable.prototype.ngOnInit = function () { + // TODO(andrewseguin): Setup a listener for scrolling, emit the calculated view to viewChange + this._dataDiffer = this._differs.find([]).create(this._trackByFn); + }; + /** + * @return {?} + */ + CdkTable.prototype.ngAfterContentInit = function () { + var _this = this; + this._cacheColumnDefsByName(); + this._columnDefs.changes.subscribe(function () { return _this._cacheColumnDefsByName(); }); + this._renderHeaderRow(); + }; + /** + * @return {?} + */ + CdkTable.prototype.ngAfterContentChecked = function () { + this._renderUpdatedColumns(); + var /** @type {?} */ defaultRowDefs = this._rowDefs.filter(function (def) { return !def.when; }); + if (defaultRowDefs.length > 1) { + throw getTableMultipleDefaultRowDefsError(); + } + this._defaultRowDef = defaultRowDefs[0]; + if (this.dataSource && !this._renderChangeSubscription) { + this._observeRenderChanges(); + } + }; + /** + * @return {?} + */ + CdkTable.prototype.ngOnDestroy = function () { + this._rowPlaceholder.viewContainer.clear(); + this._headerRowPlaceholder.viewContainer.clear(); + this._onDestroy.next(); + this._onDestroy.complete(); + if (this.dataSource) { + this.dataSource.disconnect(this); + } + }; + /** + * Update the map containing the content's column definitions. + * @return {?} + */ + CdkTable.prototype._cacheColumnDefsByName = function () { + var _this = this; + this._columnDefsByName.clear(); + this._columnDefs.forEach(function (columnDef) { + if (_this._columnDefsByName.has(columnDef.name)) { + throw getTableDuplicateColumnNameError(columnDef.name); + } + _this._columnDefsByName.set(columnDef.name, columnDef); + }); + }; + /** + * Check if the header or rows have changed what columns they want to display. If there is a diff, + * then re-render that section. + * @return {?} + */ + CdkTable.prototype._renderUpdatedColumns = function () { + var _this = this; + // Re-render the rows when the row definition columns change. + this._rowDefs.forEach(function (def) { + if (!!def.getColumnsDiff()) { + // Reset the data to an empty array so that renderRowChanges will re-render all new rows. + _this._dataDiffer.diff([]); + _this._rowPlaceholder.viewContainer.clear(); + _this._renderRowChanges(); + } + }); + // Re-render the header row if there is a difference in its columns. + if (this._headerDef.getColumnsDiff()) { + this._headerRowPlaceholder.viewContainer.clear(); + this._renderHeaderRow(); + } + }; + /** + * Switch to the provided data source by resetting the data and unsubscribing from the current + * render change subscription if one exists. If the data source is null, interpret this by + * clearing the row placeholder. Otherwise start listening for new data. + * @param {?} dataSource + * @return {?} + */ + CdkTable.prototype._switchDataSource = function (dataSource) { + this._data = []; + if (this.dataSource) { + this.dataSource.disconnect(this); + } + // Stop listening for data from the previous data source. + if (this._renderChangeSubscription) { + this._renderChangeSubscription.unsubscribe(); + this._renderChangeSubscription = null; + } + // Remove the table's rows if there is now no data source + if (!dataSource) { + this._rowPlaceholder.viewContainer.clear(); + } + this._dataSource = dataSource; + }; + /** + * Set up a subscription for the data provided by the data source. + * @return {?} + */ + CdkTable.prototype._observeRenderChanges = function () { + var _this = this; + this._renderChangeSubscription = takeUntil.call(this.dataSource.connect(this), this._onDestroy) + .subscribe(function (data) { + _this._data = data; + _this._renderRowChanges(); + }); + }; + /** + * Create the embedded view for the header template and place it in the header row view container. + * @return {?} + */ + CdkTable.prototype._renderHeaderRow = function () { + var /** @type {?} */ cells = this._getHeaderCellTemplatesForRow(this._headerDef); + if (!cells.length) { + return; + } + // TODO(andrewseguin): add some code to enforce that exactly + // one CdkCellOutlet was instantiated as a result + // of `createEmbeddedView`. + this._headerRowPlaceholder.viewContainer + .createEmbeddedView(this._headerDef.template, { cells: cells }); + cells.forEach(function (cell) { + CdkCellOutlet.mostRecentCellOutlet._viewContainer.createEmbeddedView(cell.template, {}); + }); + this._changeDetectorRef.markForCheck(); + }; + /** + * Check for changes made in the data and render each change (row added/removed/moved). + * @return {?} + */ + CdkTable.prototype._renderRowChanges = function () { + var _this = this; + var /** @type {?} */ changes = this._dataDiffer.diff(this._data); + if (!changes) { + return; + } + var /** @type {?} */ viewContainer = this._rowPlaceholder.viewContainer; + changes.forEachOperation(function (item, adjustedPreviousIndex, currentIndex) { + if (item.previousIndex == null) { + _this._insertRow(_this._data[currentIndex], currentIndex); + } + else if (currentIndex == null) { + viewContainer.remove(adjustedPreviousIndex); + } + else { + var /** @type {?} */ view = viewContainer.get(adjustedPreviousIndex); + viewContainer.move(/** @type {?} */ ((view)), currentIndex); + } + }); + this._updateRowContext(); + }; + /** + * Finds the matching row definition that should be used for this row data. If there is only + * one row definition, it is returned. Otherwise, find the row definition that has a when + * predicate that returns true with the data. If none return true, return the default row + * definition. + * @param {?} data + * @param {?} i + * @return {?} + */ + CdkTable.prototype._getRowDef = function (data, i) { + if (this._rowDefs.length == 1) { + return this._rowDefs.first; + } + var /** @type {?} */ rowDef = this._rowDefs.find(function (def) { return def.when && def.when(data, i); }) || this._defaultRowDef; + if (!rowDef) { + throw getTableMissingMatchingRowDefError(); + } + return rowDef; + }; + /** + * Create the embedded view for the data row template and place it in the correct index location + * within the data row view container. + * @param {?} rowData + * @param {?} index + * @return {?} + */ + CdkTable.prototype._insertRow = function (rowData, index) { + var /** @type {?} */ row = this._getRowDef(rowData, index); + // Row context that will be provided to both the created embedded row view and its cells. + var /** @type {?} */ context = { $implicit: rowData }; + // TODO(andrewseguin): add some code to enforce that exactly one + // CdkCellOutlet was instantiated as a result of `createEmbeddedView`. + this._rowPlaceholder.viewContainer.createEmbeddedView(row.template, context, index); + // Insert empty cells if there is no data to improve rendering time. + var /** @type {?} */ cells = rowData ? this._getCellTemplatesForRow(row) : []; + cells.forEach(function (cell) { + CdkCellOutlet.mostRecentCellOutlet._viewContainer.createEmbeddedView(cell.template, context); + }); + this._changeDetectorRef.markForCheck(); + }; + /** + * Updates the context for each row to reflect any data changes that may have caused + * rows to be added, removed, or moved. The view container contains the same context + * that was provided to each of its cells. + * @return {?} + */ + CdkTable.prototype._updateRowContext = function () { + var /** @type {?} */ viewContainer = this._rowPlaceholder.viewContainer; + for (var /** @type {?} */ index = 0, /** @type {?} */ count = viewContainer.length; index < count; index++) { + var /** @type {?} */ viewRef = (viewContainer.get(index)); + viewRef.context.index = index; + viewRef.context.count = count; + viewRef.context.first = index === 0; + viewRef.context.last = index === count - 1; + viewRef.context.even = index % 2 === 0; + viewRef.context.odd = !viewRef.context.even; + } + }; + /** + * Returns the cell template definitions to insert into the header + * as defined by its list of columns to display. + * @param {?} headerDef + * @return {?} + */ + CdkTable.prototype._getHeaderCellTemplatesForRow = function (headerDef) { + var _this = this; + if (!headerDef.columns) { + return []; + } + return headerDef.columns.map(function (columnId) { + var /** @type {?} */ column = _this._columnDefsByName.get(columnId); + if (!column) { + throw getTableUnknownColumnError(columnId); + } + return column.headerCell; + }); + }; + /** + * Returns the cell template definitions to insert in the provided row + * as defined by its list of columns to display. + * @param {?} rowDef + * @return {?} + */ + CdkTable.prototype._getCellTemplatesForRow = function (rowDef) { + var _this = this; + if (!rowDef.columns) { + return []; + } + return rowDef.columns.map(function (columnId) { + var /** @type {?} */ column = _this._columnDefsByName.get(columnId); + if (!column) { + throw getTableUnknownColumnError(columnId); + } + return column.cell; + }); + }; + CdkTable.decorators = [ + { type: Component, args: [{selector: 'cdk-table', + exportAs: 'cdkTable', + template: CDK_TABLE_TEMPLATE, + host: { + 'class': 'cdk-table', + }, + encapsulation: ViewEncapsulation.None, + preserveWhitespaces: false, + changeDetection: ChangeDetectionStrategy.OnPush, + },] }, + ]; + /** + * @nocollapse + */ + CdkTable.ctorParameters = function () { return [ + { type: IterableDiffers, }, + { type: ChangeDetectorRef, }, + { type: ElementRef, }, + { type: Renderer2, }, + { type: undefined, decorators: [{ type: Attribute, args: ['role',] },] }, + ]; }; + CdkTable.propDecorators = { + 'trackBy': [{ type: Input },], + 'dataSource': [{ type: Input },], + '_rowPlaceholder': [{ type: ViewChild, args: [RowPlaceholder,] },], + '_headerRowPlaceholder': [{ type: ViewChild, args: [HeaderRowPlaceholder,] },], + '_columnDefs': [{ type: ContentChildren, args: [CdkColumnDef,] },], + '_headerDef': [{ type: ContentChild, args: [CdkHeaderRowDef,] },], + '_rowDefs': [{ type: ContentChildren, args: [CdkRowDef,] },], + }; + return CdkTable; +}()); + +var EXPORTED_DECLARATIONS = [ + CdkTable, + CdkRowDef, + CdkCellDef, + CdkCellOutlet, + CdkHeaderCellDef, + CdkColumnDef, + CdkCell, + CdkRow, + CdkHeaderCell, + CdkHeaderRow, + CdkHeaderRowDef, + RowPlaceholder, + HeaderRowPlaceholder, +]; +var CdkTableModule = (function () { + function CdkTableModule() { + } + CdkTableModule.decorators = [ + { type: NgModule, args: [{ + imports: [CommonModule], + exports: [EXPORTED_DECLARATIONS], + declarations: [EXPORTED_DECLARATIONS] + },] }, + ]; + /** + * @nocollapse + */ + CdkTableModule.ctorParameters = function () { return []; }; + return CdkTableModule; +}()); + +/** + * Generated bundle index. Do not edit. + */ + +export { DataSource, RowPlaceholder, HeaderRowPlaceholder, CDK_TABLE_TEMPLATE, CdkTable, CdkCellDef, CdkHeaderCellDef, CdkColumnDef, CdkHeaderCell, CdkCell, CDK_ROW_TEMPLATE, BaseRowDef, CdkHeaderRowDef, CdkRowDef, CdkCellOutlet, CdkHeaderRow, CdkRow, CdkTableModule }; +//# sourceMappingURL=table.es5.js.map