{"version":3,"file":"sort.es5.js","sources":["../../packages/material/esm5/sort/sort-errors.js","../../packages/material/esm5/sort/sort.js","../../packages/material/esm5/sort/sort-header-intl.js","../../packages/material/esm5/sort/sort-header.js","../../packages/material/esm5/sort/sort-module.js","../../packages/material/esm5/sort/index.js"],"sourcesContent":["/**\n * \\@docs-private\n * @param {?} id\n * @return {?}\n */\nexport function getSortDuplicateSortableIdError(id) {\n return Error(\"Cannot have two MatSortables with the same id (\" + id + \").\");\n}\n/**\n * \\@docs-private\n * @return {?}\n */\nexport function getSortHeaderNotContainedWithinSortError() {\n return Error(\"MatSortHeader must be placed within a parent element with the MatSort directive.\");\n}\n/**\n * \\@docs-private\n * @return {?}\n */\nexport function getSortHeaderMissingIdError() {\n return Error(\"MatSortHeader must be provided with a unique id.\");\n}\n/**\n * \\@docs-private\n * @param {?} direction\n * @return {?}\n */\nexport function getSortInvalidDirectionError(direction) {\n return Error(direction + \" is not a valid sort direction ('asc' or 'desc').\");\n}\n//# sourceMappingURL=sort-errors.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, EventEmitter, Input, isDevMode, Output } from '@angular/core';\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { getSortInvalidDirectionError, getSortDuplicateSortableIdError, getSortHeaderMissingIdError } from './sort-errors';\n/**\n * Container for MatSortables to manage the sort state and provide default sort parameters.\n */\nvar MatSort = (function () {\n function MatSort() {\n /**\n * Collection of all registered sortables that this directive manages.\n */\n this.sortables = new Map();\n /**\n * The direction to set when an MatSortable is initially sorted.\n * May be overriden by the MatSortable's sort start.\n */\n this.start = 'asc';\n this._direction = '';\n /**\n * Event emitted when the user changes either the active sort or sort direction.\n */\n this.sortChange = new EventEmitter();\n }\n Object.defineProperty(MatSort.prototype, \"direction\", {\n /**\n * @return {?}\n */\n get: function () { return this._direction; },\n /**\n * The sort direction of the currently active MatSortable.\n * @param {?} direction\n * @return {?}\n */\n set: function (direction) {\n if (isDevMode() && direction && direction !== 'asc' && direction !== 'desc') {\n throw getSortInvalidDirectionError(direction);\n }\n this._direction = direction;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatSort.prototype, \"disableClear\", {\n /**\n * Whether to disable the user from clearing the sort by finishing the sort direction cycle.\n * May be overriden by the MatSortable's disable clear input.\n * @return {?}\n */\n get: function () { return this._disableClear; },\n /**\n * @param {?} v\n * @return {?}\n */\n set: function (v) { this._disableClear = coerceBooleanProperty(v); },\n enumerable: true,\n configurable: true\n });\n /**\n * Register function to be used by the contained MatSortables. Adds the MatSortable to the\n * collection of MatSortables.\n * @param {?} sortable\n * @return {?}\n */\n MatSort.prototype.register = function (sortable) {\n if (!sortable.id) {\n throw getSortHeaderMissingIdError();\n }\n if (this.sortables.has(sortable.id)) {\n throw getSortDuplicateSortableIdError(sortable.id);\n }\n this.sortables.set(sortable.id, sortable);\n };\n /**\n * Unregister function to be used by the contained MatSortables. Removes the MatSortable from the\n * collection of contained MatSortables.\n * @param {?} sortable\n * @return {?}\n */\n MatSort.prototype.deregister = function (sortable) {\n this.sortables.delete(sortable.id);\n };\n /**\n * Sets the active sort id and determines the new sort direction.\n * @param {?} sortable\n * @return {?}\n */\n MatSort.prototype.sort = function (sortable) {\n if (this.active != sortable.id) {\n this.active = sortable.id;\n this.direction = sortable.start ? sortable.start : this.start;\n }\n else {\n this.direction = this.getNextSortDirection(sortable);\n }\n this.sortChange.next({ active: this.active, direction: this.direction });\n };\n /**\n * Returns the next sort direction of the active sortable, checking for potential overrides.\n * @param {?} sortable\n * @return {?}\n */\n MatSort.prototype.getNextSortDirection = function (sortable) {\n if (!sortable) {\n return '';\n }\n // Get the sort direction cycle with the potential sortable overrides.\n var /** @type {?} */ disableClear = sortable.disableClear != null ? sortable.disableClear : this.disableClear;\n var /** @type {?} */ sortDirectionCycle = getSortDirectionCycle(sortable.start || this.start, disableClear);\n // Get and return the next direction in the cycle\n var /** @type {?} */ nextDirectionIndex = sortDirectionCycle.indexOf(this.direction) + 1;\n if (nextDirectionIndex >= sortDirectionCycle.length) {\n nextDirectionIndex = 0;\n }\n return sortDirectionCycle[nextDirectionIndex];\n };\n MatSort.decorators = [\n { type: Directive, args: [{\n selector: '[matSort]',\n },] },\n ];\n /**\n * @nocollapse\n */\n MatSort.ctorParameters = function () { return []; };\n MatSort.propDecorators = {\n 'active': [{ type: Input, args: ['matSortActive',] },],\n 'start': [{ type: Input, args: ['matSortStart',] },],\n 'direction': [{ type: Input, args: ['matSortDirection',] },],\n 'disableClear': [{ type: Input, args: ['matSortDisableClear',] },],\n 'sortChange': [{ type: Output, args: ['matSortChange',] },],\n };\n return MatSort;\n}());\nexport { MatSort };\nfunction MatSort_tsickle_Closure_declarations() {\n /** @type {?} */\n MatSort.decorators;\n /**\n * @nocollapse\n * @type {?}\n */\n MatSort.ctorParameters;\n /** @type {?} */\n MatSort.propDecorators;\n /**\n * Collection of all registered sortables that this directive manages.\n * @type {?}\n */\n MatSort.prototype.sortables;\n /**\n * The id of the most recently sorted MatSortable.\n * @type {?}\n */\n MatSort.prototype.active;\n /**\n * The direction to set when an MatSortable is initially sorted.\n * May be overriden by the MatSortable's sort start.\n * @type {?}\n */\n MatSort.prototype.start;\n /** @type {?} */\n MatSort.prototype._direction;\n /** @type {?} */\n MatSort.prototype._disableClear;\n /**\n * Event emitted when the user changes either the active sort or sort direction.\n * @type {?}\n */\n MatSort.prototype.sortChange;\n}\n/**\n * Returns the sort direction cycle to use given the provided parameters of order and clear.\n * @param {?} start\n * @param {?} disableClear\n * @return {?}\n */\nfunction getSortDirectionCycle(start, disableClear) {\n var /** @type {?} */ sortOrder = ['asc', 'desc'];\n if (start == 'desc') {\n sortOrder.reverse();\n }\n if (!disableClear) {\n sortOrder.push('');\n }\n return sortOrder;\n}\n//# sourceMappingURL=sort.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 { Injectable } from '@angular/core';\nimport { Subject } from 'rxjs/Subject';\n/**\n * To modify the labels and text displayed, create a new instance of MatSortHeaderIntl and\n * include it in a custom provider.\n */\nvar MatSortHeaderIntl = (function () {\n function MatSortHeaderIntl() {\n /**\n * Stream that emits whenever the labels here are changed. Use this to notify\n * components if the labels have changed after initialization.\n */\n this.changes = new Subject();\n /**\n * ARIA label for the sorting button.\n */\n this.sortButtonLabel = function (id) {\n return \"Change sorting for \" + id;\n };\n /**\n * A label to describe the current sort (visible only to screenreaders).\n */\n this.sortDescriptionLabel = function (id, direction) {\n return \"Sorted by \" + id + \" \" + (direction == 'asc' ? 'ascending' : 'descending');\n };\n }\n MatSortHeaderIntl.decorators = [\n { type: Injectable },\n ];\n /**\n * @nocollapse\n */\n MatSortHeaderIntl.ctorParameters = function () { return []; };\n return MatSortHeaderIntl;\n}());\nexport { MatSortHeaderIntl };\nfunction MatSortHeaderIntl_tsickle_Closure_declarations() {\n /** @type {?} */\n MatSortHeaderIntl.decorators;\n /**\n * @nocollapse\n * @type {?}\n */\n MatSortHeaderIntl.ctorParameters;\n /**\n * Stream that emits whenever the labels here are changed. Use this to notify\n * components if the labels have changed after initialization.\n * @type {?}\n */\n MatSortHeaderIntl.prototype.changes;\n /**\n * ARIA label for the sorting button.\n * @type {?}\n */\n MatSortHeaderIntl.prototype.sortButtonLabel;\n /**\n * A label to describe the current sort (visible only to screenreaders).\n * @type {?}\n */\n MatSortHeaderIntl.prototype.sortDescriptionLabel;\n}\n//# sourceMappingURL=sort-header-intl.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 { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, Optional, ViewEncapsulation } from '@angular/core';\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { trigger, state, style, animate, transition, keyframes, } from '@angular/animations';\nimport { CdkColumnDef } from '@angular/cdk/table';\nimport { merge } from 'rxjs/observable/merge';\nimport { MatSort } from './sort';\nimport { MatSortHeaderIntl } from './sort-header-intl';\nimport { getSortHeaderNotContainedWithinSortError } from './sort-errors';\nimport { AnimationCurves, AnimationDurations } from '@angular/material/core';\nvar /** @type {?} */ SORT_ANIMATION_TRANSITION = AnimationDurations.ENTERING + ' ' + AnimationCurves.STANDARD_CURVE;\n/**\n * Applies sorting behavior (click to change sort) and styles to an element, including an\n * arrow to display the current sort direction.\n *\n * Must be provided with an id and contained within a parent MatSort directive.\n *\n * If used on header cells in a CdkTable, it will automatically default its id from its containing\n * column definition.\n */\nvar MatSortHeader = (function () {\n /**\n * @param {?} _intl\n * @param {?} changeDetectorRef\n * @param {?} _sort\n * @param {?} _cdkColumnDef\n */\n function MatSortHeader(_intl, changeDetectorRef, _sort, _cdkColumnDef) {\n this._intl = _intl;\n this._sort = _sort;\n this._cdkColumnDef = _cdkColumnDef;\n /**\n * Sets the position of the arrow that displays when sorted.\n */\n this.arrowPosition = 'after';\n if (!_sort) {\n throw getSortHeaderNotContainedWithinSortError();\n }\n this._rerenderSubscription = merge(_sort.sortChange, _intl.changes).subscribe(function () {\n changeDetectorRef.markForCheck();\n });\n }\n Object.defineProperty(MatSortHeader.prototype, \"disableClear\", {\n /**\n * Overrides the disable clear value of the containing MatSort for this MatSortable.\n * @return {?}\n */\n get: function () { return this._disableClear; },\n /**\n * @param {?} v\n * @return {?}\n */\n set: function (v) { this._disableClear = coerceBooleanProperty(v); },\n enumerable: true,\n configurable: true\n });\n /**\n * @return {?}\n */\n MatSortHeader.prototype.ngOnInit = function () {\n if (!this.id && this._cdkColumnDef) {\n this.id = this._cdkColumnDef.name;\n }\n this._sort.register(this);\n };\n /**\n * @return {?}\n */\n MatSortHeader.prototype.ngOnDestroy = function () {\n this._sort.deregister(this);\n this._rerenderSubscription.unsubscribe();\n };\n /**\n * Whether this MatSortHeader is currently sorted in either ascending or descending order.\n * @return {?}\n */\n MatSortHeader.prototype._isSorted = function () {\n return this._sort.active == this.id &&\n (this._sort.direction === 'asc' || this._sort.direction === 'desc');\n };\n MatSortHeader.decorators = [\n { type: Component, args: [{selector: '[mat-sort-header]',\n template: \"
{{_intl.sortDescriptionLabel(id, _sort.direction)}}\",\n styles: [\".mat-sort-header-container{display:flex;cursor:pointer}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-button{border:none;background:0 0;display:flex;align-items:center;padding:0;cursor:pointer;outline:0;font:inherit;color:currentColor}.mat-sort-header-arrow{height:12px;width:12px;margin:0 0 0 6px;position:relative;display:flex}.mat-sort-header-position-before .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0;transition:225ms cubic-bezier(.4,0,.2,1)}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;transition:225ms cubic-bezier(.4,0,.2,1);position:absolute;top:0}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\"],\n host: {\n '(click)': '_sort.sort(this)',\n '[class.mat-sort-header-sorted]': '_isSorted()',\n },\n encapsulation: ViewEncapsulation.None,\n preserveWhitespaces: false,\n changeDetection: ChangeDetectionStrategy.OnPush,\n animations: [\n trigger('indicator', [\n state('asc', style({ transform: 'translateY(0px)' })),\n // 10px is the height of the sort indicator, minus the width of the pointers\n state('desc', style({ transform: 'translateY(10px)' })),\n transition('asc <=> desc', animate(SORT_ANIMATION_TRANSITION))\n ]),\n trigger('leftPointer', [\n state('asc', style({ transform: 'rotate(-45deg)' })),\n state('desc', style({ transform: 'rotate(45deg)' })),\n transition('asc <=> desc', animate(SORT_ANIMATION_TRANSITION))\n ]),\n trigger('rightPointer', [\n state('asc', style({ transform: 'rotate(45deg)' })),\n state('desc', style({ transform: 'rotate(-45deg)' })),\n transition('asc <=> desc', animate(SORT_ANIMATION_TRANSITION))\n ]),\n trigger('indicatorToggle', [\n transition('void => asc', animate(SORT_ANIMATION_TRANSITION, keyframes([\n style({ transform: 'translateY(25%)', opacity: 0 }),\n style({ transform: 'none', opacity: 1 })\n ]))),\n transition('asc => void', animate(SORT_ANIMATION_TRANSITION, keyframes([\n style({ transform: 'none', opacity: 1 }),\n style({ transform: 'translateY(-25%)', opacity: 0 })\n ]))),\n transition('void => desc', animate(SORT_ANIMATION_TRANSITION, keyframes([\n style({ transform: 'translateY(-25%)', opacity: 0 }),\n style({ transform: 'none', opacity: 1 })\n ]))),\n transition('desc => void', animate(SORT_ANIMATION_TRANSITION, keyframes([\n style({ transform: 'none', opacity: 1 }),\n style({ transform: 'translateY(25%)', opacity: 0 })\n ]))),\n ])\n ]\n },] },\n ];\n /**\n * @nocollapse\n */\n MatSortHeader.ctorParameters = function () { return [\n { type: MatSortHeaderIntl, },\n { type: ChangeDetectorRef, },\n { type: MatSort, decorators: [{ type: Optional },] },\n { type: CdkColumnDef, decorators: [{ type: Optional },] },\n ]; };\n MatSortHeader.propDecorators = {\n 'id': [{ type: Input, args: ['mat-sort-header',] },],\n 'arrowPosition': [{ type: Input },],\n 'start': [{ type: Input, args: ['start',] },],\n 'disableClear': [{ type: Input },],\n };\n return MatSortHeader;\n}());\nexport { MatSortHeader };\nfunction MatSortHeader_tsickle_Closure_declarations() {\n /** @type {?} */\n MatSortHeader.decorators;\n /**\n * @nocollapse\n * @type {?}\n */\n MatSortHeader.ctorParameters;\n /** @type {?} */\n MatSortHeader.propDecorators;\n /** @type {?} */\n MatSortHeader.prototype._rerenderSubscription;\n /**\n * ID of this sort header. If used within the context of a CdkColumnDef, this will default to\n * the column's name.\n * @type {?}\n */\n MatSortHeader.prototype.id;\n /**\n * Sets the position of the arrow that displays when sorted.\n * @type {?}\n */\n MatSortHeader.prototype.arrowPosition;\n /**\n * Overrides the sort start value of the containing MatSort for this MatSortable.\n * @type {?}\n */\n MatSortHeader.prototype.start;\n /** @type {?} */\n MatSortHeader.prototype._disableClear;\n /** @type {?} */\n MatSortHeader.prototype._intl;\n /** @type {?} */\n MatSortHeader.prototype._sort;\n /** @type {?} */\n MatSortHeader.prototype._cdkColumnDef;\n}\n//# sourceMappingURL=sort-header.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 { MatSortHeader } from './sort-header';\nimport { MatSort } from './sort';\nimport { MatSortHeaderIntl } from './sort-header-intl';\nimport { CommonModule } from '@angular/common';\nvar MatSortModule = (function () {\n function MatSortModule() {\n }\n MatSortModule.decorators = [\n { type: NgModule, args: [{\n imports: [CommonModule],\n exports: [MatSort, MatSortHeader],\n declarations: [MatSort, MatSortHeader],\n providers: [MatSortHeaderIntl]\n },] },\n ];\n /**\n * @nocollapse\n */\n MatSortModule.ctorParameters = function () { return []; };\n return MatSortModule;\n}());\nexport { MatSortModule };\nfunction MatSortModule_tsickle_Closure_declarations() {\n /** @type {?} */\n MatSortModule.decorators;\n /**\n * @nocollapse\n * @type {?}\n */\n MatSortModule.ctorParameters;\n}\n//# sourceMappingURL=sort-module.js.map","/**\n * Generated bundle index. Do not edit.\n */\nexport { MatSortModule, MatSortHeader, MatSortHeaderIntl, MatSort } from './public-api';\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;AAKA,AAAO,SAAS,+BAA+B,CAAC,EAAE,EAAE;IAChD,OAAO,KAAK,CAAC,iDAAiD,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC;CAC/E;;;;;AAKD,AAAO,SAAS,wCAAwC,GAAG;IACvD,OAAO,KAAK,CAAC,kFAAkF,CAAC,CAAC;CACpG;;;;;AAKD,AAAO,SAAS,2BAA2B,GAAG;IAC1C,OAA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