Ignore:
Timestamp:
10/16/21 18:10:51 (3 years ago)
Author:
Ema <ema_spirova@…>
Branches:
master
Children:
eed0bf8
Parents:
6a3a178
Message:

adding new components

Location:
trip-planner-front/node_modules/@angular/material/esm2015/sort
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trip-planner-front/node_modules/@angular/material/esm2015/sort/sort-header-intl.js

    r6a3a178 rfa375fe  
    1212 * To modify the labels and text displayed, create a new instance of MatSortHeaderIntl and
    1313 * include it in a custom provider.
    14  * @deprecated No longer being used. To be removed.
    15  * @breaking-change 13.0.0
    1614 */
    1715export class MatSortHeaderIntl {
     
    3937    useFactory: MAT_SORT_HEADER_INTL_PROVIDER_FACTORY
    4038};
    41 //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29ydC1oZWFkZXItaW50bC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9tYXRlcmlhbC9zb3J0L3NvcnQtaGVhZGVyLWludGwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBRUgsT0FBTyxFQUFDLFVBQVUsRUFBRSxRQUFRLEVBQUUsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQzdELE9BQU8sRUFBQyxPQUFPLEVBQUMsTUFBTSxNQUFNLENBQUM7O0FBRTdCOzs7OztHQUtHO0FBRUgsTUFBTSxPQUFPLGlCQUFpQjtJQUQ5QjtRQUVFOzs7V0FHRztRQUNNLFlBQU8sR0FBa0IsSUFBSSxPQUFPLEVBQVEsQ0FBQztLQUN2RDs7OztZQVBBLFVBQVUsU0FBQyxFQUFDLFVBQVUsRUFBRSxNQUFNLEVBQUM7O0FBU2hDLG9CQUFvQjtBQUNwQixNQUFNLFVBQVUscUNBQXFDLENBQUMsVUFBNkI7SUFDakYsT0FBTyxVQUFVLElBQUksSUFBSSxpQkFBaUIsRUFBRSx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cblxuLyoqIEBkb2NzLXByaXZhdGUgKi9cbmV4cG9ydCBjb25zdCBNQVRfU09SVF9IRUFERVJfSU5UTF9QUk9WSURFUiA9IHtcbiAgLy8gSWYgdGhlcmUgaXMgYWxyZWFkeSBhbiBNYXRTb3J0SGVhZGVySW50bCBhdmFpbGFibGUsIHVzZSB0aGF0LiBPdGhlcndpc2UsIHByb3ZpZGUgYSBuZXcgb25lLlxuICBwcm92aWRlOiBNYXRTb3J0SGVhZGVySW50bCxcbiAgZGVwczogW1tuZXcgT3B0aW9uYWwoKSwgbmV3IFNraXBTZWxmKCksIE1hdFNvcnRIZWFkZXJJbnRsXV0sXG4gIHVzZUZhY3Rvcnk6IE1BVF9TT1JUX0hFQURFUl9JTlRMX1BST1ZJREVSX0ZBQ1RPUllcbn07XG5cbiJdfQ==
  • trip-planner-front/node_modules/@angular/material/esm2015/sort/sort-header.js

    r6a3a178 rfa375fe  
    66 * found in the LICENSE file at https://angular.io/license
    77 */
     8import { AriaDescriber, FocusMonitor } from '@angular/cdk/a11y';
    89import { coerceBooleanProperty } from '@angular/cdk/coercion';
    9 import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, Optional, ViewEncapsulation, Inject, ElementRef, } from '@angular/core';
     10import { ENTER, SPACE } from '@angular/cdk/keycodes';
     11import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, Inject, Input, Optional, ViewEncapsulation, } from '@angular/core';
    1012import { mixinDisabled } from '@angular/material/core';
    11 import { FocusMonitor } from '@angular/cdk/a11y';
    12 import { ENTER, SPACE } from '@angular/cdk/keycodes';
    1313import { merge } from 'rxjs';
    1414import { MatSort } from './sort';
     
    3838    // `MatSort` is not optionally injected, but just asserted manually w/ better error.
    3939    // tslint:disable-next-line: lightweight-tokens
    40     _sort, _columnDef, _focusMonitor, _elementRef) {
     40    _sort, _columnDef, _focusMonitor, _elementRef,
     41    /** @breaking-change 14.0.0 _ariaDescriber will be required. */
     42    _ariaDescriber) {
    4143        // Note that we use a string token for the `_columnDef`, because the value is provided both by
    4244        // `material/table` and `cdk/table` and we can't have the CDK depending on Material,
     
    5052        this._focusMonitor = _focusMonitor;
    5153        this._elementRef = _elementRef;
     54        this._ariaDescriber = _ariaDescriber;
    5255        /**
    5356         * Flag set to true when the indicator should be displayed while the sort is not active. Used to
     
    6972        /** Sets the position of the arrow that displays when sorted. */
    7073        this.arrowPosition = 'after';
     74        // Default the action description to "Sort" because it's better than nothing.
     75        // Without a description, the button's label comes from the sort header text content,
     76        // which doesn't give any indication that it performs a sorting operation.
     77        this._sortActionDescription = 'Sort';
    7178        if (!_sort && (typeof ngDevMode === 'undefined' || ngDevMode)) {
    7279            throw getSortHeaderNotContainedWithinSortError();
    7380        }
    7481        this._handleStateChanges();
     82    }
     83    /**
     84     * Description applied to MatSortHeader's button element with aria-describedby. This text should
     85     * describe the action that will occur when the user clicks the sort header.
     86     */
     87    get sortActionDescription() {
     88        return this._sortActionDescription;
     89    }
     90    set sortActionDescription(value) {
     91        this._updateSortActionDescription(value);
    7592    }
    7693    /** Overrides the disable clear value of the containing MatSort for this MatSortable. */
     
    85102        this._setAnimationTransitionState({ toState: this._isSorted() ? 'active' : this._arrowDirection });
    86103        this._sort.register(this);
     104        this._sortButton = this._elementRef.nativeElement.querySelector('[role="button"]');
     105        this._updateSortActionDescription(this._sortActionDescription);
    87106    }
    88107    ngAfterViewInit() {
     
    201220    _renderArrow() {
    202221        return !this._isDisabled() || this._isSorted();
     222    }
     223    _updateSortActionDescription(newDescription) {
     224        // We use AriaDescriber for the sort button instead of setting an `aria-label` because some
     225        // screen readers (notably VoiceOver) will read both the column header *and* the button's label
     226        // for every *cell* in the table, creating a lot of unnecessary noise.
     227        var _a, _b;
     228        // If _sortButton is undefined, the component hasn't been initialized yet so there's
     229        // nothing to update in the DOM.
     230        if (this._sortButton) {
     231            // removeDescription will no-op if there is no existing message.
     232            // TODO(jelbourn): remove optional chaining when AriaDescriber is required.
     233            (_a = this._ariaDescriber) === null || _a === void 0 ? void 0 : _a.removeDescription(this._sortButton, this._sortActionDescription);
     234            (_b = this._ariaDescriber) === null || _b === void 0 ? void 0 : _b.describe(this._sortButton, newDescription);
     235        }
     236        this._sortActionDescription = newDescription;
    203237    }
    204238    /** Handles changes in the sorting state. */
     
    258292    { type: undefined, decorators: [{ type: Inject, args: ['MAT_SORT_HEADER_COLUMN_DEF',] }, { type: Optional }] },
    259293    { type: FocusMonitor },
    260     { type: ElementRef }
     294    { type: ElementRef },
     295    { type: AriaDescriber, decorators: [{ type: Inject, args: [AriaDescriber,] }, { type: Optional }] }
    261296];
    262297MatSortHeader.propDecorators = {
     
    264299    arrowPosition: [{ type: Input }],
    265300    start: [{ type: Input }],
     301    sortActionDescription: [{ type: Input }],
    266302    disableClear: [{ type: Input }]
    267303};
    268 //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29ydC1oZWFkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbWF0ZXJpYWwvc29ydC9zb3J0LWhlYWRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFFSCxPQUFPLEVBQWUscUJBQXFCLEVBQUMsTUFBTSx1QkFBdUIsQ0FBQztBQUMxRSxPQUFPLEVBQ0wsdUJBQXVCLEVBQ3ZCLGlCQUFpQixFQUNqQixTQUFTLEVBQ1QsS0FBSyxFQUdMLFFBQVEsRUFDUixpQkFBaUIsRUFDakIsTUFBTSxFQUNOLFVBQVUsR0FFWCxNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQWEsYUFBYSxFQUFDLE1BQU0sd0JBQXdCLENBQUM7QUFDakUsT0FBTyxFQUFDLFlBQVksRUFBQyxNQUFNLG1CQUFtQixDQUFDO0FBQy9DLE9BQU8sRUFBQyxLQUFLLEVBQUUsS0FBSyxFQUFDLE1BQU0sdUJBQXVCLENBQUM7QUF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uICAgICAgICBpZiAoIXRoaXMuX2lzU29ydGVkKCkgJiYgdGhpcy5fdmlld1N0YXRlICYmIHRoaXMuX3ZpZXdTdGF0ZS50b1N0YXRlID09PSAnYWN0aXZlJykge1xuICAgICAgICAgIHRoaXMuX2Rpc2FibGVWaWV3U3RhdGVBbmltYXRpb24gPSBmYWxzZTtcbiAgICAgICAgICB0aGlzLl9zZXRBbmltYXRpb25UcmFuc2l0aW9uU3RhdGUoe2Zyb21TdGF0ZTogJ2FjdGl2ZScsIHRvU3RhdGU6IHRoaXMuX2Fycm93RGlyZWN0aW9ufSk7XG4gICAgICAgIH1cblxuICAgICAgICB0aGlzLl9jaGFuZ2VEZXRlY3RvclJlZi5tYXJrRm9yQ2hlY2soKTtcbiAgICAgIH0pO1xuICB9XG5cbiAgc3RhdGljIG5nQWNjZXB0SW5wdXRUeXBlX2Rpc2FibGVDbGVhcjogQm9vbGVhbklucHV0O1xuICBzdGF0aWMgbmdBY2NlcHRJbnB1dFR5cGVfZGlzYWJsZWQ6IEJvb2xlYW5JbnB1dDtcbn1cbiJdfQ==
Note: See TracChangeset for help on using the changeset viewer.