Repository: nifi-fds Updated Branches: refs/heads/gh-pages 90759b86d -> 6aea21ba4 (forced update)
http://git-wip-us.apache.org/repos/asf/nifi-fds/blob/eec354e6/node_modules/@angular/cdk/esm2015/platform.js ---------------------------------------------------------------------- diff --git a/node_modules/@angular/cdk/esm2015/platform.js b/node_modules/@angular/cdk/esm2015/platform.js new file mode 100644 index 0000000..a2cc254 --- /dev/null +++ b/node_modules/@angular/cdk/esm2015/platform.js @@ -0,0 +1,181 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +import { Injectable, NgModule } from '@angular/core'; + +/** + * @fileoverview added by tsickle + * @suppress {checkTypes} checked by tsc + */ + +// Whether the current platform supports the V8 Break Iterator. The V8 check +// is necessary to detect all Blink based browsers. +const hasV8BreakIterator = (typeof (Intl) !== 'undefined' && (/** @type {?} */ (Intl)).v8BreakIterator); +/** + * Service to detect the current platform by comparing the userAgent strings and + * checking browser-specific global properties. + */ +class Platform { + constructor() { + /** + * Whether the Angular application is being rendered in the browser. + */ + this.isBrowser = typeof document === 'object' && !!document; + /** + * Whether the current browser is Microsoft Edge. + */ + this.EDGE = this.isBrowser && /(edge)/i.test(navigator.userAgent); + /** + * Whether the current rendering engine is Microsoft Trident. + */ + this.TRIDENT = this.isBrowser && /(msie|trident)/i.test(navigator.userAgent); + /** + * Whether the current rendering engine is Blink. + */ + this.BLINK = this.isBrowser && + (!!((/** @type {?} */ (window)).chrome || hasV8BreakIterator) && !!CSS && !this.EDGE && !this.TRIDENT); + /** + * Whether the current rendering engine is WebKit. + */ + this.WEBKIT = this.isBrowser && + /AppleWebKit/i.test(navigator.userAgent) && !this.BLINK && !this.EDGE && !this.TRIDENT; + /** + * Whether the current platform is Apple iOS. + */ + this.IOS = this.isBrowser && /iPad|iPhone|iPod/.test(navigator.userAgent) && + !(/** @type {?} */ (window)).MSStream; + /** + * Whether the current browser is Firefox. + */ + this.FIREFOX = this.isBrowser && /(firefox|minefield)/i.test(navigator.userAgent); + /** + * Whether the current platform is Android. + */ + this.ANDROID = this.isBrowser && /android/i.test(navigator.userAgent) && !this.TRIDENT; + /** + * Whether the current browser is Safari. + */ + this.SAFARI = this.isBrowser && /safari/i.test(navigator.userAgent) && this.WEBKIT; + } +} +Platform.decorators = [ + { type: Injectable }, +]; +/** @nocollapse */ +Platform.ctorParameters = () => []; + +/** + * @fileoverview added by tsickle + * @suppress {checkTypes} checked by tsc + */ + +/** + * Cached result of whether the user's browser supports passive event listeners. + */ +let supportsPassiveEvents; +/** + * Checks whether the user's browser supports passive event listeners. + * See: https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md + * @return {?} + */ +function supportsPassiveEventListeners() { + if (supportsPassiveEvents == null && typeof window !== 'undefined') { + try { + window.addEventListener('test', /** @type {?} */ ((null)), Object.defineProperty({}, 'passive', { + get: () => supportsPassiveEvents = true + })); + } + finally { + supportsPassiveEvents = supportsPassiveEvents || false; + } + } + return supportsPassiveEvents; +} +/** + * Cached result Set of input types support by the current browser. + */ +let supportedInputTypes; +/** + * Types of `<input>` that *might* be supported. + */ +const candidateInputTypes = [ + 'color', + 'button', + 'checkbox', + 'date', + 'datetime-local', + 'email', + 'file', + 'hidden', + 'image', + 'month', + 'number', + 'password', + 'radio', + 'range', + 'reset', + 'search', + 'submit', + 'tel', + 'text', + 'time', + 'url', + 'week', +]; +/** + * @return {?} The input types supported by this browser. + */ +function getSupportedInputTypes() { + // Result is cached. + if (supportedInputTypes) { + return supportedInputTypes; + } + // We can't check if an input type is not supported until we're on the browser, so say that + // everything is supported when not on the browser. We don't use `Platform` here since it's + // just a helper function and can't inject it. + if (typeof document !== 'object' || !document) { + supportedInputTypes = new Set(candidateInputTypes); + return supportedInputTypes; + } + let /** @type {?} */ featureTestInput = document.createElement('input'); + supportedInputTypes = new Set(candidateInputTypes.filter(value => { + featureTestInput.setAttribute('type', value); + return featureTestInput.type === value; + })); + return supportedInputTypes; +} + +/** + * @fileoverview added by tsickle + * @suppress {checkTypes} checked by tsc + */ + +class PlatformModule { +} +PlatformModule.decorators = [ + { type: NgModule, args: [{ + providers: [Platform] + },] }, +]; +/** @nocollapse */ +PlatformModule.ctorParameters = () => []; + +/** + * @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 { Platform, supportsPassiveEventListeners, getSupportedInputTypes, PlatformModule }; +//# sourceMappingURL=platform.js.map
