- Timestamp:
- 10/16/21 18:10:51 (3 years ago)
- Branches:
- master
- Children:
- eed0bf8
- Parents:
- 6a3a178
- Location:
- trip-planner-front/node_modules/@angular/material/esm2015
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner-front/node_modules/@angular/material/esm2015/badge/badge.js
r6a3a178 rfa375fe 16 16 const _MatBadgeBase = mixinDisabled(class { 17 17 }); 18 const BADGE_CONTENT_CLASS = 'mat-badge-content';19 18 /** Directive to display a text badge. */ 20 19 export class MatBadge extends _MatBadgeBase { … … 26 25 this._renderer = _renderer; 27 26 this._animationMode = _animationMode; 27 /** Whether the badge has any content. */ 28 this._hasContent = false; 28 29 this._color = 'primary'; 29 30 this._overlap = true; … … 37 38 /** Unique id for the badge */ 38 39 this._id = nextId++; 39 /** Whether the OnInit lifecycle hook has run yet */40 this._isInitialized = false;41 40 if (typeof ngDevMode === 'undefined' || ngDevMode) { 42 41 const nativeElement = _elementRef.nativeElement; … … 57 56 this._overlap = coerceBooleanProperty(val); 58 57 } 59 /** The content for the badge */60 get content() {61 return this._content;62 }63 set content(newContent) {64 this._updateRenderedContent(newContent);65 }66 58 /** Message used to describe the decorated element via aria-describedby */ 67 59 get description() { return this._description; } 68 60 set description(newDescription) { 69 this._updateHostAriaDescription(newDescription); 61 if (newDescription !== this._description) { 62 const badgeElement = this._badgeElement; 63 this._updateHostAriaDescription(newDescription, this._description); 64 this._description = newDescription; 65 if (badgeElement) { 66 newDescription ? badgeElement.setAttribute('aria-label', newDescription) : 67 badgeElement.removeAttribute('aria-label'); 68 } 69 } 70 70 } 71 71 /** Whether the badge is hidden. */ … … 82 82 return this.position.indexOf('before') === -1; 83 83 } 84 ngOnChanges(changes) { 85 const contentChange = changes['content']; 86 if (contentChange) { 87 const value = contentChange.currentValue; 88 this._hasContent = value != null && `${value}`.trim().length > 0; 89 this._updateTextContent(); 90 } 91 } 92 ngOnDestroy() { 93 const badgeElement = this._badgeElement; 94 if (badgeElement) { 95 if (this.description) { 96 this._ariaDescriber.removeDescription(badgeElement, this.description); 97 } 98 // When creating a badge through the Renderer, Angular will keep it in an index. 99 // We have to destroy it ourselves, otherwise it'll be retained in memory. 100 if (this._renderer.destroyNode) { 101 this._renderer.destroyNode(badgeElement); 102 } 103 } 104 } 84 105 /** 85 * Gets the element into which the badge's content is being rendered. Undefined if the element86 * hasn't been created (e.g. if the badge doesn't have content).106 * Gets the element into which the badge's content is being rendered. 107 * Undefined if the element hasn't been created (e.g. if the badge doesn't have content). 87 108 */ 88 109 getBadgeElement() { 89 110 return this._badgeElement; 90 111 } 91 ngOnInit() { 92 // We may have server-side rendered badge that we need to clear. 93 // We need to do this in ngOnInit because the full content of the component 94 // on which the badge is attached won't necessarily be in the DOM until this point. 95 this._clearExistingBadges(); 96 if (this.content && !this._badgeElement) { 112 /** Injects a span element into the DOM with the content. */ 113 _updateTextContent() { 114 if (!this._badgeElement) { 97 115 this._badgeElement = this._createBadgeElement(); 98 this._updateRenderedContent(this.content); 99 } 100 this._isInitialized = true; 101 } 102 ngOnDestroy() { 103 // ViewEngine only: when creating a badge through the Renderer, Angular remembers its index. 104 // We have to destroy it ourselves, otherwise it'll be retained in memory. 105 if (this._renderer.destroyNode) { 106 this._renderer.destroyNode(this._badgeElement); 107 } 108 this._ariaDescriber.removeDescription(this._elementRef.nativeElement, this.description); 116 } 117 else { 118 this._badgeElement.textContent = this._stringifyContent(); 119 } 120 return this._badgeElement; 109 121 } 110 122 /** Creates the badge element */ … … 112 124 const badgeElement = this._renderer.createElement('span'); 113 125 const activeClass = 'mat-badge-active'; 126 const contentClass = 'mat-badge-content'; 127 // Clear any existing badges which may have persisted from a server-side render. 128 this._clearExistingBadges(contentClass); 114 129 badgeElement.setAttribute('id', `mat-badge-content-${this._id}`); 115 // The badge is aria-hidden because we don't want it to appear in the page's navigation 116 // flow. Instead, we use the badge to describe the decorated element with aria-describedby. 117 badgeElement.setAttribute('aria-hidden', 'true'); 118 badgeElement.classList.add(BADGE_CONTENT_CLASS); 130 badgeElement.classList.add(contentClass); 131 badgeElement.textContent = this._stringifyContent(); 119 132 if (this._animationMode === 'NoopAnimations') { 120 133 badgeElement.classList.add('_mat-animation-noopable'); 134 } 135 if (this.description) { 136 badgeElement.setAttribute('aria-label', this.description); 121 137 } 122 138 this._elementRef.nativeElement.appendChild(badgeElement); … … 134 150 return badgeElement; 135 151 } 136 /** Update the text content of the badge element in the DOM, creating the element if necessary. */ 137 _updateRenderedContent(newContent) { 138 const newContentNormalized = `${newContent !== null && newContent !== void 0 ? newContent : ''}`.trim(); 139 // Don't create the badge element if the directive isn't initialized because we want to 140 // append the badge element to the *end* of the host element's content for backwards 141 // compatibility. 142 if (this._isInitialized && newContentNormalized && !this._badgeElement) { 143 this._badgeElement = this._createBadgeElement(); 144 } 145 if (this._badgeElement) { 146 this._badgeElement.textContent = newContentNormalized; 147 } 148 this._content = newContentNormalized; 149 } 150 /** Updates the host element's aria description via AriaDescriber. */ 151 _updateHostAriaDescription(newDescription) { 152 this._ariaDescriber.removeDescription(this._elementRef.nativeElement, this.description); 152 /** Sets the aria-label property on the element */ 153 _updateHostAriaDescription(newDescription, oldDescription) { 154 // ensure content available before setting label 155 const content = this._updateTextContent(); 156 if (oldDescription) { 157 this._ariaDescriber.removeDescription(content, oldDescription); 158 } 153 159 if (newDescription) { 154 this._ariaDescriber.describe(this._elementRef.nativeElement, newDescription); 155 } 156 this._description = newDescription; 160 this._ariaDescriber.describe(content, newDescription); 161 } 157 162 } 158 163 /** Adds css theme class given the color to the component host */ 159 164 _setColor(colorPalette) { 160 const classList = this._elementRef.nativeElement.classList; 161 classList.remove(`mat-badge-${this._color}`); 162 if (colorPalette) { 163 classList.add(`mat-badge-${colorPalette}`); 165 if (colorPalette !== this._color) { 166 const classList = this._elementRef.nativeElement.classList; 167 if (this._color) { 168 classList.remove(`mat-badge-${this._color}`); 169 } 170 if (colorPalette) { 171 classList.add(`mat-badge-${colorPalette}`); 172 } 164 173 } 165 174 } 166 175 /** Clears any existing badges that might be left over from server-side rendering. */ 167 _clearExistingBadges() { 168 // Only check direct children of this host element in order to avoid deleting 169 // any badges that might exist in descendant elements. 170 const badges = this._elementRef.nativeElement.querySelectorAll(`:scope > .${BADGE_CONTENT_CLASS}`); 171 for (const badgeElement of Array.from(badges)) { 172 if (badgeElement !== this._badgeElement) { 173 badgeElement.remove(); 174 } 175 } 176 _clearExistingBadges(cssClass) { 177 const element = this._elementRef.nativeElement; 178 let childCount = element.children.length; 179 // Use a reverse while, because we'll be removing elements from the list as we're iterating. 180 while (childCount--) { 181 const currentChild = element.children[childCount]; 182 if (currentChild.classList.contains(cssClass)) { 183 element.removeChild(currentChild); 184 } 185 } 186 } 187 /** Gets the string representation of the badge content. */ 188 _stringifyContent() { 189 // Convert null and undefined to an empty string which is consistent 190 // with how Angular handles them in inside template interpolations. 191 const content = this.content; 192 return content == null ? '' : `${content}`; 176 193 } 177 194 } … … 190 207 '[class.mat-badge-medium]': 'size === "medium"', 191 208 '[class.mat-badge-large]': 'size === "large"', 192 '[class.mat-badge-hidden]': 'hidden || ! content',209 '[class.mat-badge-hidden]': 'hidden || !_hasContent', 193 210 '[class.mat-badge-disabled]': 'disabled', 194 211 }, … … 211 228 hidden: [{ type: Input, args: ['matBadgeHidden',] }] 212 229 }; 213 //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFkZ2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbWF0ZXJpYWwvYmFkZ2UvYmFkZ2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBRUgsT0FBTyxFQUFDLGFBQWEsRUFBQyxNQUFNLG1CQUFtQixDQUFDO0FBQ2hELE9BQU8sRUFBZSxxQkFBcUIsRUFBQyxNQUFNLHVCQUF1QixDQUFDO0FBQzFFLE9BQU8sRUFDTCxTQUFTLEVBQ1QsVUFBVSxF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mVzZW50YXRpb24gb2YgdGhlIGJhZGdlIGNvbnRlbnQuICovXG4gIHByaXZhdGUgX3N0cmluZ2lmeUNvbnRlbnQoKTogc3RyaW5nIHtcbiAgICAvLyBDb252ZXJ0IG51bGwgYW5kIHVuZGVmaW5lZCB0byBhbiBlbXB0eSBzdHJpbmcgd2hpY2ggaXMgY29uc2lzdGVudFxuICAgIC8vIHdpdGggaG93IEFuZ3VsYXIgaGFuZGxlcyB0aGVtIGluIGluc2lkZSB0ZW1wbGF0ZSBpbnRlcnBvbGF0aW9ucy5cbiAgICBjb25zdCBjb250ZW50ID0gdGhpcy5jb250ZW50O1xuICAgIHJldHVybiBjb250ZW50ID09IG51bGwgPyAnJyA6IGAke2NvbnRlbnR9YDtcbiAgfVxuXG4gIHN0YXRpYyBuZ0FjY2VwdElucHV0VHlwZV9kaXNhYmxlZDogQm9vbGVhbklucHV0O1xuICBzdGF0aWMgbmdBY2NlcHRJbnB1dFR5cGVfaGlkZGVuOiBCb29sZWFuSW5wdXQ7XG4gIHN0YXRpYyBuZ0FjY2VwdElucHV0VHlwZV9vdmVybGFwOiBCb29sZWFuSW5wdXQ7XG59XG4iXX0= -
trip-planner-front/node_modules/@angular/material/esm2015/core/common-behaviors/common-module.js
r6a3a178 rfa375fe 16 16 // Can be removed once the Material primary entry-point no longer 17 17 // re-exports all secondary entry-points 18 const VERSION = new Version('12.2. 9');18 const VERSION = new Version('12.2.10'); 19 19 /** @docs-private */ 20 20 export function MATERIAL_SANITY_CHECKS_FACTORY() { -
trip-planner-front/node_modules/@angular/material/esm2015/core/version.js
r6a3a178 rfa375fe 8 8 import { Version } from '@angular/core'; 9 9 /** Current version of Angular Material. */ 10 export const VERSION = new Version('12.2. 9');10 export const VERSION = new Version('12.2.10'); 11 11 //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9tYXRlcmlhbC9jb3JlL3ZlcnNpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBRUgsT0FBTyxFQUFDLE9BQU8sRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUV0QywyQ0FBMkM7QUFDM0MsTUFBTSxDQUFDLE1BQU0sT0FBTyxHQUFHLElBQUksT0FBTyxDQUFDLG1CQUFtQixDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBsaWNlbnNlXG4gKiBDb3B5cmlnaHQgR29vZ2xlIExMQyBBbGwgUmlnaHRzIFJlc2VydmVkLlxuICpcbiAqIFVzZSBvZiB0aGlzIHNvdXJjZSBjb2RlIGlzIGdvdmVybmVkIGJ5IGFuIE1JVC1zdHlsZSBsaWNlbnNlIHRoYXQgY2FuIGJlXG4gKiBmb3VuZCBpbiB0aGUgTElDRU5TRSBmaWxlIGF0IGh0dHBzOi8vYW5ndWxhci5pby9saWNlbnNlXG4gKi9cblxuaW1wb3J0IHtWZXJzaW9ufSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuLyoqIEN1cnJlbnQgdmVyc2lvbiBvZiBBbmd1bGFyIE1hdGVyaWFsLiAqL1xuZXhwb3J0IGNvbnN0IFZFUlNJT04gPSBuZXcgVmVyc2lvbignMC4wLjAtUExBQ0VIT0xERVInKTtcbiJdfQ== -
trip-planner-front/node_modules/@angular/material/esm2015/sort/sort-header-intl.js
r6a3a178 rfa375fe 12 12 * To modify the labels and text displayed, create a new instance of MatSortHeaderIntl and 13 13 * include it in a custom provider. 14 * @deprecated No longer being used. To be removed.15 * @breaking-change 13.0.016 14 */ 17 15 export class MatSortHeaderIntl { … … 39 37 useFactory: MAT_SORT_HEADER_INTL_PROVIDER_FACTORY 40 38 }; 41 //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29ydC1oZWFkZXItaW50bC5qcyIs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angular/material/esm2015/sort/sort-header.js
r6a3a178 rfa375fe 6 6 * found in the LICENSE file at https://angular.io/license 7 7 */ 8 import { AriaDescriber, FocusMonitor } from '@angular/cdk/a11y'; 8 9 import { coerceBooleanProperty } from '@angular/cdk/coercion'; 9 import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, Optional, ViewEncapsulation, Inject, ElementRef, } from '@angular/core'; 10 import { ENTER, SPACE } from '@angular/cdk/keycodes'; 11 import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, Inject, Input, Optional, ViewEncapsulation, } from '@angular/core'; 10 12 import { mixinDisabled } from '@angular/material/core'; 11 import { FocusMonitor } from '@angular/cdk/a11y';12 import { ENTER, SPACE } from '@angular/cdk/keycodes';13 13 import { merge } from 'rxjs'; 14 14 import { MatSort } from './sort'; … … 38 38 // `MatSort` is not optionally injected, but just asserted manually w/ better error. 39 39 // 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) { 41 43 // Note that we use a string token for the `_columnDef`, because the value is provided both by 42 44 // `material/table` and `cdk/table` and we can't have the CDK depending on Material, … … 50 52 this._focusMonitor = _focusMonitor; 51 53 this._elementRef = _elementRef; 54 this._ariaDescriber = _ariaDescriber; 52 55 /** 53 56 * Flag set to true when the indicator should be displayed while the sort is not active. Used to … … 69 72 /** Sets the position of the arrow that displays when sorted. */ 70 73 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'; 71 78 if (!_sort && (typeof ngDevMode === 'undefined' || ngDevMode)) { 72 79 throw getSortHeaderNotContainedWithinSortError(); 73 80 } 74 81 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); 75 92 } 76 93 /** Overrides the disable clear value of the containing MatSort for this MatSortable. */ … … 85 102 this._setAnimationTransitionState({ toState: this._isSorted() ? 'active' : this._arrowDirection }); 86 103 this._sort.register(this); 104 this._sortButton = this._elementRef.nativeElement.querySelector('[role="button"]'); 105 this._updateSortActionDescription(this._sortActionDescription); 87 106 } 88 107 ngAfterViewInit() { … … 201 220 _renderArrow() { 202 221 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; 203 237 } 204 238 /** Handles changes in the sorting state. */ … … 258 292 { type: undefined, decorators: [{ type: Inject, args: ['MAT_SORT_HEADER_COLUMN_DEF',] }, { type: Optional }] }, 259 293 { type: FocusMonitor }, 260 { type: ElementRef } 294 { type: ElementRef }, 295 { type: AriaDescriber, decorators: [{ type: Inject, args: [AriaDescriber,] }, { type: Optional }] } 261 296 ]; 262 297 MatSortHeader.propDecorators = { … … 264 299 arrowPosition: [{ type: Input }], 265 300 start: [{ type: Input }], 301 sortActionDescription: [{ type: Input }], 266 302 disableClear: [{ type: Input }] 267 303 }; 268 //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWx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ibGVDbGVhcjogQm9vbGVhbklucHV0O1xuICBzdGF0aWMgbmdBY2NlcHRJbnB1dFR5cGVfZGlzYWJsZWQ6IEJvb2xlYW5JbnB1dDtcbn1cbiJdfQ==
Note:
See TracChangeset
for help on using the changeset viewer.