| import { Directive, ElementRef, Input, HostBinding, Renderer2, ChangeDetectorRef, Output, EventEmitter, HostListener, Host, Optional, Pipe, Inject, LOCALE_ID, Injectable, NgModule } from '@angular/core'; |
| import { animate, AnimationBuilder, AUTO_STYLE, style, animation, trigger, state, transition, query, animateChild, group, keyframes } from '@angular/animations'; |
| import { NgModel, FormsModule, Validators } from '@angular/forms'; |
| import { DecimalPipe, CommonModule } from '@angular/common'; |
| import { Router, RoutesRecognized } from '@angular/router'; |
| import { filter } from 'rxjs/operators/filter'; |
| import { pairwise } from 'rxjs/operators/pairwise'; |
| import { Subject } from 'rxjs/Subject'; |
| import { coerceBooleanProperty } from '@angular/cdk/coercion'; |
| |
| /** |
| * @fileoverview added by tsickle |
| * @suppress {checkTypes} checked by tsc |
| */ |
| class TdToggleDirective { |
| /** |
| * @param {?} _renderer |
| * @param {?} _element |
| * @param {?} _changeDetectorRef |
| * @param {?} _animationBuilder |
| */ |
| constructor(_renderer, _element, _changeDetectorRef, _animationBuilder) { |
| this._renderer = _renderer; |
| this._element = _element; |
| this._changeDetectorRef = _changeDetectorRef; |
| this._animationBuilder = _animationBuilder; |
| /** |
| * duration?: number |
| * Sets duration of toggle animation in milliseconds. |
| * Defaults to 150 ms. |
| */ |
| this.duration = 150; |
| this._defaultDisplay = this._element.nativeElement.style.display; |
| this._defaultOverflow = this._element.nativeElement.style.overflow; |
| } |
| /** |
| * tdToggle: boolean |
| * Toggles element, hides if its 'true', shows if its 'false'. |
| * @param {?} state |
| * @return {?} |
| */ |
| set state(state$$1) { |
| this._state = state$$1; |
| if (state$$1) { |
| if (this._animationShowPlayer) { |
| this._animationShowPlayer.destroy(); |
| this._animationShowPlayer = undefined; |
| } |
| this.hide(); |
| } |
| else { |
| if (this._animationHidePlayer) { |
| this._animationHidePlayer.destroy(); |
| this._animationHidePlayer = undefined; |
| } |
| this.show(); |
| } |
| } |
| /** |
| * Binds native 'aria-expanded' attribute. |
| * @return {?} |
| */ |
| get ariaExpandedBinding() { |
| return !this._state; |
| } |
| /** |
| * Binds native 'aria-hidden' attribute. |
| * @return {?} |
| */ |
| get ariaHiddenBinding() { |
| return this._state; |
| } |
| /** |
| * Hides element: sets "display:[default]" so animation is shown, |
| * starts animation and adds "display:'none'" style at the end. |
| * @return {?} |
| */ |
| hide() { |
| this._animationHidePlayer = this._animationBuilder.build(animation([ |
| style({ |
| height: AUTO_STYLE, |
| display: AUTO_STYLE, |
| }), |
| animate(this.duration + 'ms ease-in', style({ height: '0' })), |
| ])).create(this._element.nativeElement); |
| this._renderer.setStyle(this._element.nativeElement, 'overflow', 'hidden'); |
| this._changeDetectorRef.markForCheck(); |
| this._animationHidePlayer.onDone(() => { |
| this._onHideDone(); |
| }); |
| this._animationHidePlayer.play(); |
| } |
| /** |
| * Shows element: sets "display:[default]" so animation is shown, |
| * starts animation and adds "overflow:[default]" style again at the end. |
| * @return {?} |
| */ |
| show() { |
| this._renderer.setStyle(this._element.nativeElement, 'display', this._defaultDisplay); |
| this._changeDetectorRef.markForCheck(); |
| this._animationShowPlayer = this._animationBuilder.build(animation([ |
| style({ |
| height: '0', |
| display: 'none', |
| }), |
| animate(this.duration + 'ms ease-out', style({ height: AUTO_STYLE })), |
| ])).create(this._element.nativeElement); |
| this._renderer.setStyle(this._element.nativeElement, 'overflow', 'hidden'); |
| this._animationShowPlayer.onDone(() => { |
| this._onShowDone(); |
| }); |
| this._animationShowPlayer.play(); |
| } |
| /** |
| * @return {?} |
| */ |
| _onHideDone() { |
| if (this._animationHidePlayer) { |
| this._animationHidePlayer.destroy(); |
| this._animationHidePlayer = undefined; |
| this._renderer.setStyle(this._element.nativeElement, 'overflow', this._defaultOverflow); |
| this._renderer.setStyle(this._element.nativeElement, 'display', 'none'); |
| this._changeDetectorRef.markForCheck(); |
| } |
| } |
| /** |
| * @return {?} |
| */ |
| _onShowDone() { |
| if (this._animationShowPlayer) { |
| this._animationShowPlayer.destroy(); |
| this._animationShowPlayer = undefined; |
| this._renderer.setStyle(this._element.nativeElement, 'overflow', this._defaultOverflow); |
| this._changeDetectorRef.markForCheck(); |
| } |
| } |
| } |
| TdToggleDirective.decorators = [ |
| { type: Directive, args: [{ |
| selector: '[tdToggle]', |
| },] }, |
| ]; |
| /** @nocollapse */ |
| TdToggleDirective.ctorParameters = () => [ |
| { type: Renderer2, }, |
| { type: ElementRef, }, |
| { type: ChangeDetectorRef, }, |
| { type: AnimationBuilder, }, |
| ]; |
| TdToggleDirective.propDecorators = { |
| "duration": [{ type: Input },], |
| "state": [{ type: Input, args: ['tdToggle',] },], |
| "ariaExpandedBinding": [{ type: HostBinding, args: ['attr.aria-expanded',] },], |
| "ariaHiddenBinding": [{ type: HostBinding, args: ['attr.aria-hidden',] },], |
| }; |
| |
| /** |
| * @fileoverview added by tsickle |
| * @suppress {checkTypes} checked by tsc |
| */ |
| class TdFadeDirective { |
| /** |
| * @param {?} _renderer |
| * @param {?} _element |
| * @param {?} _changeDetectorRef |
| * @param {?} _animationBuilder |
| */ |
| constructor(_renderer, _element, _changeDetectorRef, _animationBuilder) { |
| this._renderer = _renderer; |
| this._element = _element; |
| this._changeDetectorRef = _changeDetectorRef; |
| this._animationBuilder = _animationBuilder; |
| /** |
| * duration?: number |
| * Sets duration of fade animation in milliseconds. |
| * Defaults to 150 ms. |
| */ |
| this.duration = 150; |
| /** |
| * fadeIn?: function |
| * Method to be executed when fadeIn animation ends. |
| */ |
| this.onFadeIn = new EventEmitter(); |
| /** |
| * fadeOut?: function |
| * Method to be executed when fadeOut animation ends. |
| */ |
| this.onFadeOut = new EventEmitter(); |
| this._defaultDisplay = this._element.nativeElement.style.display; |
| } |
| /** |
| * tdFade: boolean |
| * Fades element, FadesOut if its 'true', FadesIn if its 'false'. |
| * @param {?} state |
| * @return {?} |
| */ |
| set state(state$$1) { |
| this._state = state$$1; |
| if (state$$1) { |
| if (this._animationFadeOutPlayer) { |
| this._animationFadeOutPlayer.destroy(); |
| this._animationFadeOutPlayer = undefined; |
| } |
| this.hide(); |
| } |
| else { |
| if (this._animationFadeInPlayer) { |
| this._animationFadeInPlayer.destroy(); |
| this._animationFadeInPlayer = undefined; |
| } |
| this.show(); |
| } |
| } |
| /** |
| * Binds native 'aria-expanded' attribute. |
| * @return {?} |
| */ |
| get ariaExpandedBinding() { |
| return !this._state; |
| } |
| /** |
| * Binds native 'aria-hidden' attribute. |
| * @return {?} |
| */ |
| get ariaHiddenBinding() { |
| return this._state; |
| } |
| /** |
| * Hides element: starts animation and adds "display:'none'" style at the end. |
| * @return {?} |
| */ |
| hide() { |
| this._animationFadeInPlayer = this._animationBuilder.build(animation([ |
| style({ |
| opacity: AUTO_STYLE, |
| display: AUTO_STYLE, |
| }), |
| animate(this.duration + 'ms ease-out', style({ opacity: '0' })), |
| ])).create(this._element.nativeElement); |
| this._animationFadeInPlayer.onDone(() => { |
| this._onFadeInDone(); |
| }); |
| this._animationFadeInPlayer.play(); |
| } |
| /** |
| * Shows element: sets "display:[default]" so animation is shown. |
| * @return {?} |
| */ |
| show() { |
| this._renderer.setStyle(this._element.nativeElement, 'display', this._defaultDisplay); |
| this._changeDetectorRef.markForCheck(); |
| this._animationFadeOutPlayer = this._animationBuilder.build(animation([ |
| style({ |
| opacity: '0', |
| display: 'none', |
| }), |
| animate(this.duration + 'ms ease-in', style({ opacity: AUTO_STYLE })), |
| ])).create(this._element.nativeElement); |
| this._animationFadeOutPlayer.onDone(() => { |
| this._onFadeOutDone(); |
| }); |
| this._animationFadeOutPlayer.play(); |
| } |
| /** |
| * @return {?} |
| */ |
| _onFadeInDone() { |
| if (this._animationFadeInPlayer) { |
| this._animationFadeInPlayer.destroy(); |
| this._animationFadeInPlayer = undefined; |
| this._renderer.setStyle(this._element.nativeElement, 'display', 'none'); |
| this._changeDetectorRef.markForCheck(); |
| this.onFadeIn.emit(); |
| } |
| } |
| /** |
| * @return {?} |
| */ |
| _onFadeOutDone() { |
| if (this._animationFadeOutPlayer) { |
| this._animationFadeOutPlayer.destroy(); |
| this._animationFadeOutPlayer = undefined; |
| this._changeDetectorRef.markForCheck(); |
| this.onFadeOut.emit(); |
| } |
| } |
| } |
| TdFadeDirective.decorators = [ |
| { type: Directive, args: [{ |
| selector: '[tdFade]', |
| },] }, |
| ]; |
| /** @nocollapse */ |
| TdFadeDirective.ctorParameters = () => [ |
| { type: Renderer2, }, |
| { type: ElementRef, }, |
| { type: ChangeDetectorRef, }, |
| { type: AnimationBuilder, }, |
| ]; |
| TdFadeDirective.propDecorators = { |
| "duration": [{ type: Input },], |
| "state": [{ type: Input, args: ['tdFade',] },], |
| "onFadeIn": [{ type: Output, args: ['fadeIn',] },], |
| "onFadeOut": [{ type: Output, args: ['fadeOut',] },], |
| "ariaExpandedBinding": [{ type: HostBinding, args: ['attr.aria-expanded',] },], |
| "ariaHiddenBinding": [{ type: HostBinding, args: ['attr.aria-hidden',] },], |
| }; |
| |
| /** |
| * @fileoverview added by tsickle |
| * @suppress {checkTypes} checked by tsc |
| */ |
| class TdAutoTrimDirective { |
| /** |
| * @param {?} _model |
| */ |
| constructor(_model) { |
| this._model = _model; |
| } |
| /** |
| * Listens to host's (blur) event and trims value. |
| * @param {?} event |
| * @return {?} |
| */ |
| onBlur(event) { |
| if (this._model && this._model.value && typeof (this._model.value) === 'string') { |
| this._model.update.emit(this._model.value.trim()); |
| } |
| } |
| } |
| TdAutoTrimDirective.decorators = [ |
| { type: Directive, args: [{ |
| selector: '[tdAutoTrim]', |
| },] }, |
| ]; |
| /** @nocollapse */ |
| TdAutoTrimDirective.ctorParameters = () => [ |
| { type: NgModel, decorators: [{ type: Optional }, { type: Host },] }, |
| ]; |
| TdAutoTrimDirective.propDecorators = { |
| "onBlur": [{ type: HostListener, args: ['blur', ['$event'],] },], |
| }; |
| |
| /** |
| * @fileoverview added by tsickle |
| * @suppress {checkTypes} checked by tsc |
| */ |
| class TdTimeAgoPipe { |
| /** |
| * @param {?} time |
| * @param {?=} reference |
| * @return {?} |
| */ |
| transform(time, reference) { |
| // Convert time to date object if not already |
| time = new Date(time); |
| let /** @type {?} */ ref = new Date(reference); |
| // If not a valid timestamp, return 'Invalid Date' |
| if (!time.getTime()) { |
| return 'Invalid Date'; |
| } |
| // For unit testing, we need to be able to declare a static start time |
| // for calculations, or else speed of tests can bork. |
| let /** @type {?} */ startTime = isNaN(ref.getTime()) ? Date.now() : ref.getTime(); |
| let /** @type {?} */ diff = Math.floor((startTime - time.getTime()) / 1000); |
| if (diff < 2) { |
| return '1 second ago'; |
| } |
| if (diff < 60) { |
| return Math.floor(diff) + ' seconds ago'; |
| } |
| // Minutes |
| diff = diff / 60; |
| if (diff < 2) { |
| return '1 minute ago'; |
| } |
| if (diff < 60) { |
| return Math.floor(diff) + ' minutes ago'; |
| } |
| // Hours |
| diff = diff / 60; |
| if (diff < 2) { |
| return '1 hour ago'; |
| } |
| if (diff < 24) { |
| return Math.floor(diff) + ' hours ago'; |
| } |
| // Days |
| diff = diff / 24; |
| if (diff < 2) { |
| return '1 day ago'; |
| } |
| if (diff < 30) { |
| return Math.floor(diff) + ' days ago'; |
| } |
| // Months |
| diff = diff / 30; |
| if (diff < 2) { |
| return '1 month ago'; |
| } |
| if (diff < 12) { |
| return Math.floor(diff) + ' months ago'; |
| } |
| // Years |
| diff = diff / 12; |
| if (diff < 2) { |
| return '1 year ago'; |
| } |
| else { |
| return Math.floor(diff) + ' years ago'; |
| } |
| } |
| } |
| TdTimeAgoPipe.decorators = [ |
| { type: Pipe, args: [{ |
| name: 'timeAgo', |
| },] }, |
| ]; |
| /** @nocollapse */ |
| TdTimeAgoPipe.ctorParameters = () => []; |
| |
| /** |
| * @fileoverview added by tsickle |
| * @suppress {checkTypes} checked by tsc |
| */ |
| class TdTimeDifferencePipe { |
| /** |
| * @param {?} start |
| * @param {?=} end |
| * @return {?} |
| */ |
| transform(start, end) { |
| let /** @type {?} */ startTime = new Date(start); |
| let /** @type {?} */ endTime; |
| if (end !== undefined) { |
| endTime = new Date(end); |
| } |
| else { |
| endTime = new Date(); |
| } |
| if (!startTime.getTime() || !endTime.getTime()) { |
| return 'Invalid Date'; |
| } |
| let /** @type {?} */ diff = Math.floor((endTime.getTime() - startTime.getTime()) / 1000); |
| let /** @type {?} */ days = Math.floor(diff / (60 * 60 * 24)); |
| diff = diff - (days * (60 * 60 * 24)); |
| let /** @type {?} */ hours = Math.floor(diff / (60 * 60)); |
| diff = diff - (hours * (60 * 60)); |
| let /** @type {?} */ minutes = Math.floor(diff / (60)); |
| diff -= minutes * (60); |
| let /** @type {?} */ seconds = diff; |
| let /** @type {?} */ pad = '00'; |
| let /** @type {?} */ daysFormatted = ''; |
| if (days > 0 && days < 2) { |
| daysFormatted = ' day - '; |
| } |
| else if (days > 1) { |
| daysFormatted = ' days - '; |
| } |
| return (days > 0 ? days + daysFormatted : daysFormatted) + |
| pad.substring(0, pad.length - (hours + '').length) + hours + ':' + |
| pad.substring(0, pad.length - (minutes + '').length) + minutes + ':' + |
| pad.substring(0, pad.length - (seconds + '').length) + seconds; |
| } |
| } |
| TdTimeDifferencePipe.decorators = [ |
| { type: Pipe, args: [{ |
| name: 'timeDifference', |
| },] }, |
| ]; |
| /** @nocollapse */ |
| TdTimeDifferencePipe.ctorParameters = () => []; |
| |
| /** |
| * @fileoverview added by tsickle |
| * @suppress {checkTypes} checked by tsc |
| */ |
| class TdBytesPipe { |
| /** |
| * @param {?} bytes |
| * @param {?=} precision |
| * @return {?} |
| */ |
| transform(bytes, precision = 2) { |
| if (bytes === 0) { |
| return '0 B'; |
| } |
| else if (isNaN(parseInt(bytes, 10))) { |
| /* If not a valid number, return 'Invalid Number' */ |
| return 'Invalid Number'; |
| } |
| let /** @type {?} */ k = 1024; |
| let /** @type {?} */ sizes = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']; |
| let /** @type {?} */ i = Math.floor(Math.log(bytes) / Math.log(k)); |
| // if less than 1 |
| if (i < 0) { |
| return 'Invalid Number'; |
| } |
| return parseFloat((bytes / Math.pow(k, i)).toFixed(precision)) + ' ' + sizes[i]; |
| } |
| } |
| TdBytesPipe.decorators = [ |
| { type: Pipe, args: [{ |
| name: 'bytes', |
| },] }, |
| ]; |
| /** @nocollapse */ |
| TdBytesPipe.ctorParameters = () => []; |
| |
| /** |
| * @fileoverview added by tsickle |
| * @suppress {checkTypes} checked by tsc |
| */ |
| class TdDigitsPipe { |
| /** |
| * @param {?=} _locale |
| */ |
| constructor(_locale = 'en') { |
| this._locale = _locale; |
| this._decimalPipe = new DecimalPipe(this._locale); |
| } |
| /** |
| * @param {?} digits |
| * @param {?=} precision |
| * @return {?} |
| */ |
| transform(digits, precision = 1) { |
| if (digits === 0) { |
| return '0'; |
| } |
| else if (isNaN(parseInt(digits, 10))) { |
| /* If not a valid number, return the value */ |
| return digits; |
| } |
| else if (digits < 1) { |
| return this._decimalPipe.transform(digits.toFixed(precision)); |
| } |
| let /** @type {?} */ k = 1000; |
| let /** @type {?} */ sizes = ['', 'K', 'M', 'B', 'T', 'Q']; |
| let /** @type {?} */ i = Math.floor(Math.log(digits) / Math.log(k)); |
| let /** @type {?} */ size = sizes[i]; |
| return this._decimalPipe.transform(parseFloat((digits / Math.pow(k, i)).toFixed(precision))) + (size ? ' ' + size : ''); |
| } |
| } |
| TdDigitsPipe.decorators = [ |
| { type: Pipe, args: [{ |
| name: 'digits', |
| },] }, |
| ]; |
| /** @nocollapse */ |
| TdDigitsPipe.ctorParameters = () => [ |
| { type: undefined, decorators: [{ type: Inject, args: [LOCALE_ID,] },] }, |
| ]; |
| |
| /** |
| * @fileoverview added by tsickle |
| * @suppress {checkTypes} checked by tsc |
| */ |
| class TdTruncatePipe { |
| /** |
| * @param {?} text |
| * @param {?} length |
| * @return {?} |
| */ |
| transform(text, length) { |
| if (typeof text !== 'string') { |
| return ''; |
| } |
| // Truncate |
| let /** @type {?} */ truncated = text.substr(0, length); |
| if (text.length > length) { |
| if (truncated.lastIndexOf(' ') > 0) { |
| truncated = truncated.trim(); |
| } |
| truncated += '…'; |
| } |
| return truncated; |
| } |
| } |
| TdTruncatePipe.decorators = [ |
| { type: Pipe, args: [{ |
| name: 'truncate', |
| },] }, |
| ]; |
| /** @nocollapse */ |
| TdTruncatePipe.ctorParameters = () => []; |
| |
| /** |
| * @fileoverview added by tsickle |
| * @suppress {checkTypes} checked by tsc |
| */ |
| class RouterPathService { |
| /** |
| * @param {?} _router |
| */ |
| constructor(_router) { |
| this._router = _router; |
| this._router.events.pipe(filter((e) => e instanceof RoutesRecognized), pairwise()).subscribe((e) => { |
| RouterPathService._previousRoute = e[0].urlAfterRedirects; |
| }); |
| } |
| /** |
| * @return {?} |
| */ |
| getPreviousRoute() { |
| return RouterPathService._previousRoute; |
| } |
| } |
| RouterPathService._previousRoute = '/'; |
| RouterPathService.decorators = [ |
| { type: Injectable }, |
| ]; |
| /** @nocollapse */ |
| RouterPathService.ctorParameters = () => [ |
| { type: Router, }, |
| ]; |
| |
| /** |
| * @fileoverview added by tsickle |
| * @suppress {checkTypes} checked by tsc |
| */ |
| /* |
| * Copyright (C) 2016-2017 by Teradata Corporation. All rights reserved. |
| * TERADATA CORPORATION CONFIDENTIAL AND TRADE SECRET |
| */ |
| class IconService { |
| constructor() { |
| this._icons = [ |
| 'access_alarm', |
| 'access_alarms', |
| 'access_time', |
| 'accessibility', |
| 'account_balance', |
| 'account_balance_wallet', |
| 'account_box', |
| 'account_circle', |
| 'add', |
| 'add_alarm', |
| 'add_box', |
| 'add_circle', |
| 'add_circle_outline', |
| 'add_shopping_cart', |
| 'add_to_photos', |
| 'adjust', |
| 'alarm', |
| 'alarm_add', |
| 'alarm_off', |
| 'alarm_on', |
| 'album', |
| 'android', |
| 'announcement', |
| 'apps', |
| 'archive', |
| 'arrow_back', |
| 'arrow_drop_down', |
| 'arrow_drop_down_circle', |
| 'arrow_drop_up', |
| 'arrow_forward', |
| 'aspect_ratio', |
| 'assessment', |
| 'assignment', |
| 'assignment_ind', |
| 'assignment_late', |
| 'assignment_return', |
| 'assignment_returned', |
| 'assignment_turned_in', |
| 'assistant_photo', |
| 'attach_file', |
| 'attach_money', |
| 'attachment', |
| 'audiotrack', |
| 'autorenew', |
| 'av_timer', |
| 'backspace', |
| 'backup', |
| 'battery_alert', |
| 'battery_charging_full', |
| 'battery_full', |
| 'battery_std', |
| 'battery_unknown', |
| 'beenhere', |
| 'block', |
| 'bluetooth', |
| 'bluetooth_audio', |
| 'bluetooth_connected', |
| 'bluetooth_disabled', |
| 'bluetooth_searching', |
| 'blur_circular', |
| 'blur_linear', |
| 'blur_off', |
| 'blur_on', |
| 'book', |
| 'bookmark', |
| 'bookmark_border', |
| 'border_all', |
| 'border_bottom', |
| 'border_clear', |
| 'border_color', |
| 'border_horizontal', |
| 'border_inner', |
| 'border_left', |
| 'border_outer', |
| 'border_right', |
| 'border_style', |
| 'border_top', |
| 'border_vertical', |
| 'brightness_1', |
| 'brightness_2', |
| 'brightness_3', |
| 'brightness_4', |
| 'brightness_5', |
| 'brightness_6', |
| 'brightness_7', |
| 'brightness_auto', |
| 'brightness_high', |
| 'brightness_low', |
| 'brightness_medium', |
| 'broken_image', |
| 'brush', |
| 'bug_report', |
| 'build', |
| 'business', |
| 'cached', |
| 'cake', |
| 'call', |
| 'call_end', |
| 'call_made', |
| 'call_merge', |
| 'call_missed', |
| 'call_received', |
| 'call_split', |
| 'camera', |
| 'camera_alt', |
| 'camera_front', |
| 'camera_rear', |
| 'camera_roll', |
| 'cancel', |
| 'cast', |
| 'cast_connected', |
| 'center_focus_strong', |
| 'center_focus_weak', |
| 'chat', |
| 'check', |
| 'check_box', |
| 'check_box_outline_blank', |
| 'check_circle', |
| 'chevron_left', |
| 'chevron_right', |
| 'class', |
| 'clear', |
| 'clear_all', |
| 'close', |
| 'closed_caption', |
| 'cloud', |
| 'cloud_circle', |
| 'cloud_done', |
| 'cloud_download', |
| 'cloud_off', |
| 'cloud_queue', |
| 'cloud_upload', |
| 'collections', |
| 'collections_bookmark', |
| 'color_lens', |
| 'colorize', |
| 'comment', |
| 'compare', |
| 'computer', |
| 'confirmation_number', |
| 'contact_phone', |
| 'contacts', |
| 'content_copy', |
| 'content_cut', |
| 'content_paste', |
| 'control_point', |
| 'control_point_duplicate', |
| 'create', |
| 'credit_card', |
| 'crop', |
| 'crop_16_9', |
| 'crop_3_2', |
| 'crop_5_4', |
| 'crop_7_5', |
| 'crop_din', |
| 'crop_free', |
| 'crop_landscape', |
| 'crop_original', |
| 'crop_portrait', |
| 'crop_square', |
| 'dashboard', |
| 'data_usage', |
| 'dehaze', |
| 'delete', |
| 'description', |
| 'desktop_mac', |
| 'desktop_windows', |
| 'details', |
| 'developer_board', |
| 'developer_mode', |
| 'device_hub', |
| 'devices', |
| 'dialer_sip', |
| 'dialpad', |
| 'directions', |
| 'directions_bike', |
| 'directions_boat', |
| 'directions_bus', |
| 'directions_car', |
| 'directions_railway', |
| 'directions_run', |
| 'directions_subway', |
| 'directions_transit', |
| 'directions_walk', |
| 'disc_full', |
| 'dns', |
| 'do_not_disturb', |
| 'do_not_disturb_alt', |
| 'dock', |
| 'domain', |
| 'done', |
| 'done_all', |
| 'drafts', |
| 'drive_eta', |
| 'dvr', |
| 'edit', |
| 'eject', |
| 'email', |
| 'equalizer', |
| 'error', |
| 'error_outline', |
| 'event', |
| 'event_available', |
| 'event_busy', |
| 'event_note', |
| 'event_seat', |
| 'exit_to_app', |
| 'expand_less', |
| 'expand_more', |
| 'explicit', |
| 'explore', |
| 'exposure', |
| 'exposure_neg_1', |
| 'exposure_neg_2', |
| 'exposure_plus_1', |
| 'exposure_plus_2', |
| 'exposure_zero', |
| 'extension', |
| 'face', |
| 'fast_forward', |
| 'fast_rewind', |
| 'favorite', |
| 'favorite_border', |
| 'feedback', |
| 'file_download', |
| 'file_upload', |
| 'filter', |
| 'filter_1', |
| 'filter_2', |
| 'filter_3', |
| 'filter_4', |
| 'filter_5', |
| 'filter_6', |
| 'filter_7', |
| 'filter_8', |
| 'filter_9', |
| 'filter_9_plus', |
| 'filter_b_and_w', |
| 'filter_center_focus', |
| 'filter_drama', |
| 'filter_frames', |
| 'filter_hdr', |
| 'filter_list', |
| 'filter_none', |
| 'filter_tilt_shift', |
| 'filter_vintage', |
| 'find_in_page', |
| 'find_replace', |
| 'flag', |
| 'flare', |
| 'flash_auto', |
| 'flash_off', |
| 'flash_on', |
| 'flight', |
| 'flight_land', |
| 'flight_takeoff', |
| 'flip', |
| 'flip_to_back', |
| 'flip_to_front', |
| 'folder', |
| 'folder_open', |
| 'folder_shared', |
| 'folder_special', |
| 'font_download', |
| 'format_align_center', |
| 'format_align_justify', |
| 'format_align_left', |
| 'format_align_right', |
| 'format_bold', |
| 'format_clear', |
| 'format_color_fill', |
| 'format_color_reset', |
| 'format_color_text', |
| 'format_indent_decrease', |
| 'format_indent_increase', |
| 'format_italic', |
| 'format_line_spacing', |
| 'format_list_bulleted', |
| 'format_list_numbered', |
| 'format_paint', |
| 'format_quote', |
| 'format_size', |
| 'format_strikethrough', |
| 'format_textdirection_l_to_r', |
| 'format_textdirection_r_to_l', |
| 'format_underlined', |
| 'forum', |
| 'forward', |
| 'forward_10', |
| 'forward_30', |
| 'forward_5', |
| 'fullscreen', |
| 'fullscreen_exit', |
| 'functions', |
| 'gamepad', |
| 'games', |
| 'gesture', |
| 'get_app', |
| 'gif', |
| 'gps_fixed', |
| 'gps_not_fixed', |
| 'gps_off', |
| 'grade', |
| 'gradient', |
| 'grain', |
| 'graphic_eq', |
| 'grid_off', |
| 'grid_on', |
| 'group', |
| 'group_add', |
| 'group_work', |
| 'hd', |
| 'hdr_off', |
| 'hdr_on', |
| 'hdr_strong', |
| 'hdr_weak', |
| 'headset', |
| 'headset_mic', |
| 'healing', |
| 'hearing', |
| 'help', |
| 'help_outline', |
| 'high_quality', |
| 'highlight_off', |
| 'history', |
| 'home', |
| 'hotel', |
| 'hourglass_empty', |
| 'hourglass_full', |
| 'http', |
| 'https', |
| 'image', |
| 'image_aspect_ratio', |
| 'import_export', |
| 'inbox', |
| 'indeterminate_check_box', |
| 'info', |
| 'info_outline', |
| 'input', |
| 'insert_chart', |
| 'insert_comment', |
| 'insert_drive_file', |
| 'insert_emoticon', |
| 'insert_invitation', |
| 'insert_link', |
| 'insert_photo', |
| 'invert_colors', |
| 'invert_colors_off', |
| 'iso', |
| 'keyboard', |
| 'keyboard_arrow_down', |
| 'keyboard_arrow_left', |
| 'keyboard_arrow_right', |
| 'keyboard_arrow_up', |
| 'keyboard_backspace', |
| 'keyboard_capslock', |
| 'keyboard_hide', |
| 'keyboard_return', |
| 'keyboard_tab', |
| 'keyboard_voice', |
| 'label', |
| 'label_outline', |
| 'landscape', |
| 'language', |
| 'laptop', |
| 'laptop_chromebook', |
| 'laptop_mac', |
| 'laptop_windows', |
| 'launch', |
| 'layers', |
| 'layers_clear', |
| 'leak_add', |
| 'leak_remove', |
| 'lens', |
| 'library_add', |
| 'library_books', |
| 'library_music', |
| 'link', |
| 'list', |
| 'live_help', |
| 'live_tv', |
| 'local_activity', |
| 'local_airport', |
| 'local_atm', |
| 'local_bar', |
| 'local_cafe', |
| 'local_car_wash', |
| 'local_convenience_store', |
| 'local_dining', |
| 'local_drink', |
| 'local_florist', |
| 'local_gas_station', |
| 'local_grocery_store', |
| 'local_hospital', |
| 'local_hotel', |
| 'local_laundry_service', |
| 'local_library', |
| 'local_mall', |
| 'local_movies', |
| 'local_offer', |
| 'local_parking', |
| 'local_pharmacy', |
| 'local_phone', |
| 'local_pizza', |
| 'local_play', |
| 'local_post_office', |
| 'local_printshop', |
| 'local_see', |
| 'local_shipping', |
| 'local_taxi', |
| 'location_city', |
| 'location_disabled', |
| 'location_off', |
| 'location_on', |
| 'location_searching', |
| 'lock', |
| 'lock_open', |
| 'lock_outline', |
| 'looks', |
| 'looks_3', |
| 'looks_4', |
| 'looks_5', |
| 'looks_6', |
| 'looks_one', |
| 'looks_two', |
| 'loop', |
| 'loupe', |
| 'loyalty', |
| 'mail', |
| 'map', |
| 'markunread', |
| 'markunread_mailbox', |
| 'memory', |
| 'menu', |
| 'merge_type', |
| 'message', |
| 'mic', |
| 'mic_none', |
| 'mic_off', |
| 'mms', |
| 'mode_comment', |
| 'mode_edit', |
| 'money_off', |
| 'monochrome_photos', |
| 'mood', |
| 'mood_bad', |
| 'more', |
| 'more_horiz', |
| 'more_vert', |
| 'mouse', |
| 'movie', |
| 'movie_creation', |
| 'music_note', |
| 'my_library_add', |
| 'my_library_books', |
| 'my_library_music', |
| 'my_location', |
| 'nature', |
| 'nature_people', |
| 'navigate_before', |
| 'navigate_next', |
| 'navigation', |
| 'network_cell', |
| 'network_locked', |
| 'network_wifi', |
| 'new_releases', |
| 'nfc', |
| 'no_sim', |
| 'not_interested', |
| 'note_add', |
| 'notifications', |
| 'notifications_active', |
| 'notifications_none', |
| 'notifications_off', |
| 'notifications_paused', |
| 'offline_pin', |
| 'ondemand_video', |
| 'open_in_browser', |
| 'open_in_new', |
| 'open_with', |
| 'pages', |
| 'pageview', |
| 'palette', |
| 'panorama', |
| 'panorama_fish_eye', |
| 'panorama_horizontal', |
| 'panorama_vertical', |
| 'panorama_wide_angle', |
| 'party_mode', |
| 'pause', |
| 'pause_circle_filled', |
| 'pause_circle_outline', |
| 'payment', |
| 'people', |
| 'people_outline', |
| 'perm_camera_mic', |
| 'perm_contact_calendar', |
| 'perm_data_setting', |
| 'perm_device_information', |
| 'perm_identity', |
| 'perm_media', |
| 'perm_phone_msg', |
| 'perm_scan_wifi', |
| 'person', |
| 'person_add', |
| 'person_outline', |
| 'person_pin', |
| 'personal_video', |
| 'phone', |
| 'phone_android', |
| 'phone_bluetooth_speaker', |
| 'phone_forwarded', |
| 'phone_in_talk', |
| 'phone_iphone', |
| 'phone_locked', |
| 'phone_missed', |
| 'phone_paused', |
| 'phonelink', |
| 'phonelink_erase', |
| 'phonelink_lock', |
| 'phonelink_off', |
| 'phonelink_ring', |
| 'phonelink_setup', |
| 'photo', |
| 'photo_album', |
| 'photo_camera', |
| 'photo_library', |
| 'photo_size_select_actual', |
| 'photo_size_select_large', |
| 'photo_size_select_small', |
| 'picture_as_pdf', |
| 'picture_in_picture', |
| 'pin_drop', |
| 'place', |
| 'play_arrow', |
| 'play_circle_filled', |
| 'play_circle_outline', |
| 'play_for_work', |
| 'play_shopping_bag', |
| 'playlist_add', |
| 'plus_one', |
| 'poll', |
| 'polymer', |
| 'portable_wifi_off', |
| 'portrait', |
| 'power', |
| 'power_input', |
| 'power_settings_new', |
| 'present_to_all', |
| 'print', |
| 'public', |
| 'publish', |
| 'query_builder', |
| 'question_answer', |
| 'queue', |
| 'queue_music', |
| 'radio', |
| 'radio_button_checked', |
| 'radio_button_unchecked', |
| 'rate_review', |
| 'receipt', |
| 'recent_actors', |
| 'redeem', |
| 'redo', |
| 'refresh', |
| 'remove', |
| 'remove_circle', |
| 'remove_circle_outline', |
| 'remove_red_eye', |
| 'reorder', |
| 'repeat', |
| 'repeat_one', |
| 'replay', |
| 'replay_10', |
| 'replay_30', |
| 'replay_5', |
| 'reply', |
| 'reply_all', |
| 'report', |
| 'report_problem', |
| 'restaurant_menu', |
| 'restore', |
| 'ring_volume', |
| 'room', |
| 'rotate_90_degrees_ccw', |
| 'rotate_left', |
| 'rotate_right', |
| 'router', |
| 'satellite', |
| 'save', |
| 'scanner', |
| 'schedule', |
| 'school', |
| 'screen_lock_landscape', |
| 'screen_lock_portrait', |
| 'screen_lock_rotation', |
| 'screen_rotation', |
| 'sd_card', |
| 'sd_storage', |
| 'search', |
| 'security', |
| 'select_all', |
| 'send', |
| 'settings', |
| 'settings_applications', |
| 'settings_backup_restore', |
| 'settings_bluetooth', |
| 'settings_brightness', |
| 'settings_cell', |
| 'settings_ethernet', |
| 'settings_input_antenna', |
| 'settings_input_component', |
| 'settings_input_composite', |
| 'settings_input_hdmi', |
| 'settings_input_svideo', |
| 'settings_overscan', |
| 'settings_phone', |
| 'settings_power', |
| 'settings_remote', |
| 'settings_system_daydream', |
| 'settings_voice', |
| 'share', |
| 'shop', |
| 'shop_two', |
| 'shopping_basket', |
| 'shopping_cart', |
| 'shuffle', |
| 'signal_cellular_4_bar', |
| 'signal_cellular_connected_no_internet_4_bar', |
| 'signal_cellular_no_sim', |
| 'signal_cellular_null', |
| 'signal_cellular_off', |
| 'signal_wifi_4_bar', |
| 'signal_wifi_4_bar_lock', |
| 'signal_wifi_off', |
| 'sim_card', |
| 'sim_card_alert', |
| 'skip_next', |
| 'skip_previous', |
| 'slideshow', |
| 'smartphone', |
| 'sms', |
| 'sms_failed', |
| 'snooze', |
| 'sort', |
| 'sort_by_alpha', |
| 'space_bar', |
| 'speaker', |
| 'speaker_group', |
| 'speaker_notes', |
| 'speaker_phone', |
| 'spellcheck', |
| 'star', |
| 'star_border', |
| 'star_half', |
| 'stars', |
| 'stay_current_landscape', |
| 'stay_current_portrait', |
| 'stay_primary_landscape', |
| 'stay_primary_portrait', |
| 'stop', |
| 'storage', |
| 'store', |
| 'store_mall_directory', |
| 'straighten', |
| 'strikethrough_s', |
| 'style', |
| 'subject', |
| 'subtitles', |
| 'supervisor_account', |
| 'surround_sound', |
| 'swap_calls', |
| 'swap_horiz', |
| 'swap_vert', |
| 'swap_vertical_circle', |
| 'switch_camera', |
| 'switch_video', |
| 'sync', |
| 'sync_disabled', |
| 'sync_problem', |
| 'system_update', |
| 'system_update_alt', |
| 'tab', |
| 'tab_unselected', |
| 'tablet', |
| 'tablet_android', |
| 'tablet_mac', |
| 'tag_faces', |
| 'tap_and_play', |
| 'terrain', |
| 'text_format', |
| 'textsms', |
| 'texture', |
| 'theaters', |
| 'thumb_down', |
| 'thumb_up', |
| 'thumbs_up_down', |
| 'time_to_leave', |
| 'timelapse', |
| 'timer', |
| 'timer_10', |
| 'timer_3', |
| 'timer_off', |
| 'toc', |
| 'today', |
| 'toll', |
| 'tonality', |
| 'toys', |
| 'track_changes', |
| 'traffic', |
| 'transform', |
| 'translate', |
| 'trending_down', |
| 'trending_flat', |
| 'trending_up', |
| 'tune', |
| 'turned_in', |
| 'turned_in_not', |
| 'tv', |
| 'undo', |
| 'unfold_less', |
| 'unfold_more', |
| 'usb', |
| 'verified_user', |
| 'vertical_align_bottom', |
| 'vertical_align_center', |
| 'vertical_align_top', |
| 'vibration', |
| 'video_library', |
| 'videocam', |
| 'videocam_off', |
| 'view_agenda', |
| 'view_array', |
| 'view_carousel', |
| 'view_column', |
| 'view_comfy', |
| 'view_compact', |
| 'view_day', |
| 'view_headline', |
| 'view_list', |
| 'view_module', |
| 'view_quilt', |
| 'view_stream', |
| 'view_week', |
| 'vignette', |
| 'visibility', |
| 'visibility_off', |
| 'voice_chat', |
| 'voicemail', |
| 'volume_down', |
| 'volume_mute', |
| 'volume_off', |
| 'volume_up', |
| 'vpn_key', |
| 'vpn_lock', |
| 'wallpaper', |
| 'warning', |
| 'watch', |
| 'wb_auto', |
| 'wb_cloudy', |
| 'wb_incandescent', |
| 'wb_iridescent', |
| 'wb_sunny', |
| 'wc', |
| 'web', |
| 'whatshot', |
| 'widgets', |
| 'wifi', |
| 'wifi_lock', |
| 'wifi_tethering', |
| 'work', |
| 'wrap_text', |
| 'youtube_searched_for', |
| 'zoom_in', |
| 'zoom_out', |
| ]; |
| } |
| /** |
| * @return {?} |
| */ |
| get icons() { |
| return this._icons; |
| } |
| /** |
| * @param {?} query |
| * @return {?} |
| */ |
| filter(query$$1) { |
| return this.icons.filter((el) => { |
| return el.toLowerCase().indexOf(query$$1 ? query$$1.toLowerCase() : '') > -1; |
| }); |
| } |
| } |
| IconService.decorators = [ |
| { type: Injectable }, |
| ]; |
| /** @nocollapse */ |
| IconService.ctorParameters = () => []; |
| |
| /** |
| * @fileoverview added by tsickle |
| * @suppress {checkTypes} checked by tsc |
| */ |
| const TD_ANIMATIONS = [ |
| TdToggleDirective, |
| TdFadeDirective, |
| ]; |
| const TD_FORMS = [ |
| TdAutoTrimDirective, |
| ]; |
| // Validators |
| const TD_VALIDATORS = []; |
| const TD_PIPES = [ |
| TdTimeAgoPipe, |
| TdTimeDifferencePipe, |
| TdBytesPipe, |
| TdDigitsPipe, |
| TdTruncatePipe, |
| ]; |
| class CovalentCommonModule { |
| } |
| CovalentCommonModule.decorators = [ |
| { type: NgModule, args: [{ |
| imports: [ |
| FormsModule, |
| CommonModule, |
| ], |
| declarations: [ |
| TD_FORMS, |
| TD_PIPES, |
| TD_ANIMATIONS, |
| TD_VALIDATORS, |
| ], |
| exports: [ |
| FormsModule, |
| CommonModule, |
| TD_FORMS, |
| TD_PIPES, |
| TD_ANIMATIONS, |
| TD_VALIDATORS, |
| ], |
| providers: [ |
| RouterPathService, |
| IconService, |
| ], |
| },] }, |
| ]; |
| /** @nocollapse */ |
| CovalentCommonModule.ctorParameters = () => []; |
| |
| /** |
| * @fileoverview added by tsickle |
| * @suppress {checkTypes} checked by tsc |
| */ |
| /** |
| * @record |
| */ |
| |
| /** |
| * Function TdRotateAnimation |
| * |
| * params: |
| * * anchor: Name of the anchor that will attach to a dom element in the components template that will contain the animation. Defaults to tdRotate. |
| * * duration: Duration the animation will run in milliseconds. Defaults to 250 ms. |
| * * delay: Delay before the animation will run in milliseconds. Defaults to 0 ms. |
| * * degrees: Degrees of rotation that the dom object will animation. A negative value will cause the animation to initially rotate counter-clockwise. |
| * * ease: Animation accelerates and decelerates when rotation. Defaults to ease-in. |
| * |
| * Returns an [AnimationTriggerMetadata] object with states for a boolean trigger based rotation animation. |
| * |
| * usage: [\@myAnchorName]="true|false" |
| * @param {?=} rotateOptions |
| * @return {?} |
| */ |
| function TdRotateAnimation(rotateOptions = {}) { |
| return trigger(rotateOptions.anchor || 'tdRotate', [ |
| state('0', style({ |
| transform: 'rotate(0deg)', |
| })), |
| state('1', style({ |
| transform: 'rotate(' + (rotateOptions.degrees || 180) + 'deg)', |
| })), |
| transition('0 <=> 1', [ |
| group([ |
| query('@*', animateChild(), { optional: true }), |
| animate((rotateOptions.duration || 250) + 'ms ' + |
| (rotateOptions.delay || 0) + 'ms ' + |
| (rotateOptions.ease || 'ease-in')), |
| ]), |
| ]), |
| ]); |
| } |
| |
| /** |
| * @fileoverview added by tsickle |
| * @suppress {checkTypes} checked by tsc |
| */ |
| /** |
| * @record |
| */ |
| |
| /** |
| * Function TdCollapseAnimation |
| * |
| * params: |
| * * anchor: Name of the anchor that will attach to a dom element in the components template that will contain the animation. Defaults to tdCollapse. |
| * * duration: Duration the animation will run in milliseconds. Defaults to 150 ms. |
| * * delay: Delay before the animation will run in milliseconds. Defaults to 0 ms. |
| * * easeOnClose: Animation accelerates and decelerates when closing. Defaults to ease-in. |
| * * easeOnOpen: Animation accelerates and decelerates when opening. Defaults to ease-out. |
| * |
| * Returns an [AnimationTriggerMetadata] object with states for a collapse/expand animation. |
| * |
| * usage: [\@tdCollapse]="true|false" |
| * @param {?=} collapseOptions |
| * @return {?} |
| */ |
| function TdCollapseAnimation(collapseOptions = {}) { |
| return trigger(collapseOptions.anchor || 'tdCollapse', [ |
| state('1', style({ |
| height: '0', |
| display: 'none', |
| })), |
| state('0', style({ |
| height: AUTO_STYLE, |
| display: AUTO_STYLE, |
| })), |
| transition('0 => 1', [ |
| group([ |
| query('@*', animateChild(), { optional: true }), |
| animate((collapseOptions.duration || 150) + 'ms ' + |
| (collapseOptions.delay || 0) + 'ms ' + |
| (collapseOptions.easeOnClose || 'ease-in')), |
| ]), |
| ]), |
| transition('1 => 0', [ |
| group([ |
| query('@*', animateChild(), { optional: true }), |
| animate((collapseOptions.duration || 150) + 'ms ' + |
| (collapseOptions.delay || 0) + 'ms ' + |
| (collapseOptions.easeOnOpen || 'ease-out')), |
| ]), |
| ]), |
| ]); |
| } |
| |
| /** |
| * @fileoverview added by tsickle |
| * @suppress {checkTypes} checked by tsc |
| */ |
| /** |
| * @record |
| */ |
| |
| /** |
| * Function TdFadeInOutAnimation |
| * |
| * params: |
| * * anchor: Name of the anchor that will attach to a dom element in the components template that will contain the animation. Defaults to tdFadeInOut |
| * * duration: Duration the animation will run in milliseconds. Defaults to 150 ms. |
| * * delay: Delay before the animation will run in milliseconds. Defaults to 0 ms. |
| * * easeOnIn: Animation accelerates and decelerates when fading in. Defaults to ease-in. |
| * * easeOnOut: Animation accelerates and decelerates when fading out. Defaults to ease-out. |
| * |
| * Returns an [AnimationTriggerMetadata] object with states for a fading animation. |
| * |
| * usage: [\@tdFadeInOut]="true|false" |
| * @param {?=} fadeInOut |
| * @return {?} |
| */ |
| function TdFadeInOutAnimation(fadeInOut = {}) { |
| return trigger((fadeInOut.anchor || 'tdFadeInOut'), [ |
| state('0', style({ |
| opacity: '0', |
| display: 'none', |
| })), |
| state('1', style({ |
| opacity: AUTO_STYLE, |
| display: AUTO_STYLE, |
| })), |
| transition('0 => 1', [ |
| group([ |
| query('@*', animateChild(), { optional: true }), |
| animate((fadeInOut.duration || 150) + 'ms ' + |
| (fadeInOut.delay || 0) + 'ms ' + |
| (fadeInOut.easeOnIn || 'ease-in')), |
| ]), |
| ]), |
| transition('1 => 0', [ |
| group([ |
| query('@*', animateChild(), { optional: true }), |
| animate((fadeInOut.duration || 150) + 'ms ' + |
| (fadeInOut.delay || 0) + 'ms ' + |
| (fadeInOut.easeOnOut || 'ease-out')), |
| ]), |
| ]), |
| ]); |
| } |
| |
| /** |
| * @fileoverview added by tsickle |
| * @suppress {checkTypes} checked by tsc |
| */ |
| /** |
| * Function TdBounceAnimation |
| * |
| * params: |
| * * anchor: Name of the anchor that will attach to a dom element in the components template that will contain the animation. |
| * * duration: Duration the animation will run in milliseconds. Defaults to 500 ms. |
| * |
| * Returns an [AnimationTriggerMetadata] object with states for a boolean trigger based bounce animation. |
| * |
| * usage: [\@myAnchorName]="true|false" |
| * @param {?=} bounceOptions |
| * @return {?} |
| */ |
| function TdBounceAnimation(bounceOptions = {}) { |
| return trigger(bounceOptions.anchor || 'tdBounce', [ |
| state('0', style({ |
| transform: 'translate3d(0, 0, 0)', |
| })), |
| state('1', style({ |
| transform: 'translate3d(0, 0, 0)', |
| })), |
| transition('0 <=> 1', [ |
| group([ |
| query('@*', animateChild(), { optional: true }), |
| animate((bounceOptions.duration || 500) + 'ms ' + (bounceOptions.delay || 0) + 'ms', keyframes([ |
| style({ animationTimingFunction: 'cubic-bezier(0.215, 0.610, 0.355, 1.000)', transform: 'translate3d(0, 0, 0)', offset: 0 }), |
| style({ animationTimingFunction: 'cubic-bezier(0.215, 0.610, 0.355, 1.000)', transform: 'translate3d(0, 0, 0)', offset: 0.2 }), |
| style({ animationTimingFunction: 'cubic-bezier(0.755, 0.050, 0.855, 0.060)', transform: 'translate3d(0, -30px, 0)', offset: 0.4 }), |
| style({ animationTimingFunction: 'cubic-bezier(0.755, 0.050, 0.855, 0.060)', transform: 'translate3d(0, -30px, 0)', offset: 0.43 }), |
| style({ animationTimingFunction: 'cubic-bezier(0.215, 0.610, 0.355, 1.000)', transform: 'translate3d(0, 0, 0)', offset: 0.53 }), |
| style({ animationTimingFunction: 'cubic-bezier(0.755, 0.050, 0.855, 0.060)', transform: 'translate3d(0, -15px, 0)', offset: .7 }), |
| style({ animationTimingFunction: 'cubic-bezier(0.215, 0.610, 0.355, 1.000)', transform: 'translate3d(0, 0, 0)', offset: 0.8 }), |
| style({ transform: 'translate3d(0, -4px, 0)', offset: .9 }), |
| style({ animationTimingFunction: 'cubic-bezier(0.215, 0.610, 0.355, 1.000)', transform: 'translate3d(0, 0, 0)', offset: 1.0 }), |
| ])), |
| ]), |
| ]), |
| ]); |
| } |
| |
| /** |
| * @fileoverview added by tsickle |
| * @suppress {checkTypes} checked by tsc |
| */ |
| /** |
| * Function TdFlashAnimation |
| * |
| * params: |
| * * anchor: Name of the anchor that will attach to a dom element in the components template that will contain the animation. |
| * * duration: Duration the animation will run in milliseconds. Defaults to 500 ms. |
| * |
| * Returns an [AnimationTriggerMetadata] object with states for a boolean trigger based flash animation. |
| * |
| * usage: [\@myAnchorName]="true|false" |
| * @param {?=} flashOptions |
| * @return {?} |
| */ |
| function TdFlashAnimation(flashOptions = {}) { |
| return trigger(flashOptions.anchor || 'tdFlash', [ |
| state('0', style({ |
| opacity: 1, |
| })), |
| state('1', style({ |
| opacity: 1, |
| })), |
| transition('0 <=> 1', [ |
| group([ |
| query('@*', animateChild(), { optional: true }), |
| animate((flashOptions.duration || 500) + 'ms ' + (flashOptions.delay || 0) + 'ms', keyframes([ |
| style({ opacity: 1, offset: 0 }), |
| style({ opacity: 0, offset: 0.25 }), |
| style({ opacity: 1, offset: 0.5 }), |
| style({ opacity: 0, offset: 0.75 }), |
| style({ opacity: 1, offset: 1.0 }), |
| ])), |
| ]), |
| ]), |
| ]); |
| } |
| |
| /** |
| * @fileoverview added by tsickle |
| * @suppress {checkTypes} checked by tsc |
| */ |
| /** |
| * Function TdHeadshakeAnimation |
| * |
| * params: |
| * * anchor: Name of the anchor that will attach to a dom element in the components template that will contain the animation. |
| * * duration: Duration the animation will run in milliseconds. Defaults to 500 ms. |
| * |
| * Returns an [AnimationTriggerMetadata] object with states for a boolean trigger based headshake animation. |
| * |
| * usage: [\@myAnchorName]="true|false" |
| * @param {?=} headshakeOptions |
| * @return {?} |
| */ |
| function TdHeadshakeAnimation(headshakeOptions = {}) { |
| return trigger(headshakeOptions.anchor || 'tdHeadshake', [ |
| state('0', style({ |
| transform: 'translateX(0)', |
| })), |
| state('1', style({ |
| transform: 'translateX(0)', |
| })), |
| transition('0 <=> 1', [ |
| group([ |
| query('@*', animateChild(), { optional: true }), |
| animate((headshakeOptions.duration || 500) + 'ms ' + (headshakeOptions.delay || 0) + 'ms', keyframes([ |
| style({ transform: 'translateX(0)', offset: 0 }), |
| style({ transform: 'translateX(-6px) rotateY(-9deg)', offset: 0.065 }), |
| style({ transform: 'translateX(5px) rotateY(7deg)', offset: 0.185 }), |
| style({ transform: 'translateX(-3px) rotateY(-5deg)', offset: 0.315 }), |
| style({ transform: 'translateX(2px) rotateY(3deg)', offset: 0.435 }), |
| style({ transform: 'translateX(0)', offset: 0.50 }), |
| ])), |
| ]), |
| ]), |
| ]); |
| } |
| |
| /** |
| * @fileoverview added by tsickle |
| * @suppress {checkTypes} checked by tsc |
| */ |
| /** |
| * Function TdJelloAnimation |
| * |
| * params: |
| * * anchor: Name of the anchor that will attach to a dom element in the components template that will contain the animation. |
| * * duration: Duration the animation will run in milliseconds. Defaults to 500 ms. |
| * |
| * Returns an [AnimationTriggerMetadata] object with states for a boolean trigger based jello animation. |
| * |
| * usage: [\@myAnchorName]="true|false" |
| * @param {?=} jelloOptions |
| * @return {?} |
| */ |
| function TdJelloAnimation(jelloOptions = {}) { |
| return trigger(jelloOptions.anchor || 'tdJello', [ |
| state('0', style({ |
| transform: 'none', |
| })), |
| state('1', style({ |
| transform: 'none', |
| })), |
| transition('0 <=> 1', [ |
| group([ |
| query('@*', animateChild(), { optional: true }), |
| animate((jelloOptions.duration || 500) + 'ms ' + (jelloOptions.delay || 0) + 'ms', keyframes([ |
| style({ transform: 'none', offset: 0 }), |
| style({ transform: 'none', offset: 0.011 }), |
| style({ transform: 'skewX(-12.5deg) skewY(-12.5deg)', offset: 0.222 }), |
| style({ transform: 'skewX(6.25deg) skewY(6.25deg)', offset: 0.333 }), |
| style({ transform: 'skewX(-3.125deg) skewY(-3.125deg)', offset: 0.444 }), |
| style({ transform: 'skewX(1.5625deg) skewY(1.5625deg)', offset: 0.555 }), |
| style({ transform: 'skewX(-0.78125deg) skewY(-0.78125deg)', offset: 0.666 }), |
| style({ transform: 'skewX(0.390625deg) skewY(0.390625deg)', offset: 0.777 }), |
| style({ transform: 'skewX(-0.1953125deg) skewY(-0.1953125deg)', offset: 0.888 }), |
| ])), |
| ]), |
| ]), |
| ]); |
| } |
| |
| /** |
| * @fileoverview added by tsickle |
| * @suppress {checkTypes} checked by tsc |
| */ |
| /** |
| * Function TdPulseAnimation |
| * |
| * params: |
| * * anchor: Name of the anchor that will attach to a dom element in the components template that will contain the animation. |
| * * duration: Duration the animation will run in milliseconds. Defaults to 500 ms. |
| * |
| * Returns an [AnimationTriggerMetadata] object with states for a boolean trigger based pulse animation. |
| * |
| * usage: [\@myAnchorName]="true|false" |
| * @param {?=} pulseOptions |
| * @return {?} |
| */ |
| function TdPulseAnimation(pulseOptions = {}) { |
| return trigger(pulseOptions.anchor || 'tdPulse', [ |
| state('0', style({ |
| transform: 'scale3d(1, 1, 1)', |
| })), |
| state('1', style({ |
| transform: 'scale3d(1, 1, 1)', |
| })), |
| transition('0 <=> 1', [ |
| group([ |
| query('@*', animateChild(), { optional: true }), |
| animate((pulseOptions.duration || 500) + 'ms ' + (pulseOptions.delay || 0) + 'ms', keyframes([ |
| style({ transform: 'scale3d(1, 1, 1)', offset: 0 }), |
| style({ transform: 'scale3d(1.05, 1.05, 1.05)', offset: 0.5 }), |
| style({ transform: 'scale3d(1, 1, 1)', offset: 1.0 }), |
| ])), |
| ]), |
| ]), |
| ]); |
| } |
| |
| /** |
| * @fileoverview added by tsickle |
| * @suppress {checkTypes} checked by tsc |
| */ |
| const noop = () => { |
| // empty method |
| }; |
| /** |
| * @record |
| */ |
| |
| /** |
| * @record |
| */ |
| |
| /** |
| * Mixin to augment a component with ngModel support. |
| * @template T |
| * @param {?} base |
| * @param {?=} initialValue |
| * @return {?} |
| */ |
| function mixinControlValueAccessor(base, initialValue) { |
| return class extends base { |
| /** |
| * @param {...?} args |
| */ |
| constructor(...args) { |
| super(...args); |
| this._value = initialValue; |
| this.onChange = (_) => noop; |
| this.onTouched = () => noop; |
| this._subjectValueChanges = new Subject(); |
| this.valueChanges = this._subjectValueChanges.asObservable(); |
| } |
| /** |
| * @param {?} v |
| * @return {?} |
| */ |
| set value(v) { |
| if (v !== this._value) { |
| this._value = v; |
| this.onChange(v); |
| this._changeDetectorRef.markForCheck(); |
| this._subjectValueChanges.next(v); |
| } |
| } |
| /** |
| * @return {?} |
| */ |
| get value() { |
| return this._value; |
| } |
| /** |
| * @param {?} value |
| * @return {?} |
| */ |
| writeValue(value) { |
| this.value = value; |
| this._changeDetectorRef.markForCheck(); |
| } |
| /** |
| * @param {?} fn |
| * @return {?} |
| */ |
| registerOnChange(fn) { |
| this.onChange = fn; |
| } |
| /** |
| * @param {?} fn |
| * @return {?} |
| */ |
| registerOnTouched(fn) { |
| this.onTouched = fn; |
| } |
| }; |
| } |
| |
| /** |
| * @fileoverview added by tsickle |
| * @suppress {checkTypes} checked by tsc |
| */ |
| /** |
| * Interface to implement when applying the disabled mixin |
| * @record |
| */ |
| |
| /** |
| * Mixin to augment a component or directive with a `disabled` property. |
| * @template T |
| * @param {?} base |
| * @return {?} |
| */ |
| function mixinDisabled(base) { |
| return class extends base { |
| /** |
| * @param {...?} args |
| */ |
| constructor(...args) { |
| super(...args); |
| this._disabled = false; |
| } |
| /** |
| * @return {?} |
| */ |
| get disabled() { |
| return this._disabled; |
| } |
| /** |
| * @param {?} value |
| * @return {?} |
| */ |
| set disabled(value) { |
| let /** @type {?} */ newValue = coerceBooleanProperty(value); |
| if (this._disabled !== newValue) { |
| this._disabled = newValue; |
| this.onDisabledChange(this._disabled); |
| } |
| } |
| /** |
| * @param {?} v |
| * @return {?} |
| */ |
| onDisabledChange(v) { |
| /** NOT IMPLEMENTED, this needs to be overriden by subclasses if needed */ |
| } |
| }; |
| } |
| |
| /** |
| * @fileoverview added by tsickle |
| * @suppress {checkTypes} checked by tsc |
| */ |
| /** |
| * Interface to implement when applying the disabled mixin |
| * @record |
| */ |
| |
| /** |
| * Mixin to augment a component or directive with a `disabled` property. |
| * @template T |
| * @param {?} base |
| * @return {?} |
| */ |
| function mixinDisableRipple(base) { |
| return class extends base { |
| /** |
| * @param {...?} args |
| */ |
| constructor(...args) { |
| super(...args); |
| this._disableRipple = false; |
| } |
| /** |
| * @return {?} |
| */ |
| get disableRipple() { |
| return this._disableRipple; |
| } |
| /** |
| * @param {?} value |
| * @return {?} |
| */ |
| set disableRipple(value) { |
| let /** @type {?} */ newValue = coerceBooleanProperty(value); |
| if (this._disableRipple !== newValue) { |
| this._disableRipple = newValue; |
| this.onDisableRippleChange(this._disableRipple); |
| } |
| } |
| /** |
| * @param {?} v |
| * @return {?} |
| */ |
| onDisableRippleChange(v) { |
| /** NOT IMPLEMENTED, this needs to be overriden by subclasses if needed */ |
| } |
| }; |
| } |
| |
| /** |
| * @fileoverview added by tsickle |
| * @suppress {checkTypes} checked by tsc |
| */ |
| class CovalentValidators { |
| /** |
| * @param {?} minValue |
| * @return {?} |
| */ |
| static min(minValue) { |
| let /** @type {?} */ func = (c) => { |
| if (!!Validators.required(c) || (!minValue && minValue !== 0)) { |
| return undefined; |
| } |
| let /** @type {?} */ v = c.value; |
| return v < minValue ? |
| { min: { minValue: minValue, actualValue: v } } : |
| undefined; |
| }; |
| return func; |
| } |
| /** |
| * @param {?} maxValue |
| * @return {?} |
| */ |
| static max(maxValue) { |
| let /** @type {?} */ func = (c) => { |
| if (!!Validators.required(c) || (!maxValue && maxValue !== 0)) { |
| return undefined; |
| } |
| let /** @type {?} */ v = c.value; |
| return v > maxValue ? |
| { max: { maxValue: maxValue, actualValue: v } } : |
| undefined; |
| }; |
| return func; |
| } |
| /** |
| * @param {?} c |
| * @return {?} |
| */ |
| static numberRequired(c) { |
| return (Number.isNaN(c.value)) ? |
| { required: true } : |
| undefined; |
| } |
| } |
| |
| /** |
| * @fileoverview added by tsickle |
| * @suppress {checkTypes} checked by tsc |
| */ |
| |
| /** |
| * @fileoverview added by tsickle |
| * @suppress {checkTypes} checked by tsc |
| */ |
| |
| /** |
| * @fileoverview added by tsickle |
| * @suppress {checkTypes} checked by tsc |
| */ |
| /** |
| * Generated bundle index. Do not edit. |
| */ |
| |
| export { CovalentCommonModule, TdToggleDirective, TdFadeDirective, TdRotateAnimation, TdCollapseAnimation, TdFadeInOutAnimation, TdBounceAnimation, TdFlashAnimation, TdHeadshakeAnimation, TdJelloAnimation, TdPulseAnimation, mixinControlValueAccessor, mixinDisabled, mixinDisableRipple, TdAutoTrimDirective, CovalentValidators, TdTimeAgoPipe, TdTimeDifferencePipe, TdBytesPipe, TdDigitsPipe, TdTruncatePipe, IconService as ɵb, RouterPathService as ɵa }; |
| //# sourceMappingURL=covalent-core-common.js.map |