Ignore:
Timestamp:
11/25/21 22:08:24 (3 years ago)
Author:
Ema <ema_spirova@…>
Branches:
master
Children:
8d391a1
Parents:
59329aa
Message:

primeNG components

Location:
trip-planner-front/node_modules/@angular/cdk/esm2015
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trip-planner-front/node_modules/@angular/cdk/esm2015/a11y/focus-monitor/focus-monitor.js

    r59329aa re29cc2e  
    400400    cdkFocusChange: [{ type: Output }]
    401401};
    402 //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9jdXMtbW9uaXRvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9jZGsvYTExeS9mb2N1cy1tb25pdG9yL2ZvY3VzLW1vbml0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBRUgsT0FBTyxFQUNMLFFBQVEsRUFDUiwrQkFBK0IsRUFDL0IsY0FBYyxFQUNkLGVBQWUsR0FDaEIsTUFBTSx1QkFBdUIsQ0FBQztBQUMvQixPQUFPLEVBQ0wsU0FBUyxFQUNULFVBQVUsRUFDVixZQUFZLEVBQ1osTUFBTSxFQUNOLFVBQVUsRUFDVixjQUFjLEVBQ2QsTUFBTSxFQUVOLFFBQVEsRUFDUixNQUFNLEdBRVAsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFhLEVBQUUsSUFBSSxZQUFZLEVBQUUsT0FBTyxFQUFlLE1BQU0sTUFBTSxDQUFDO0FBQzNFLE9BQU8sRUFBQyxTQUFTLEVBQUMsTUFBTSxnQkFBZ0IsQ0FBQztBQUN6QyxPQUFPLEVBQUMsYUFBYSxFQUFDLE1BQU0sdUJBQXVCLENBQUM7QUFDcEQsT0FBTyxFQUFDLFFBQVEsRUFBQyxNQUFNLGlCQUFpQixDQUFDO0FBQ3pDLE9BQU8sRUFDTCxxQkFBcUIs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wgT25EZXN0cm95IHtcbiAgcHJpdmF0ZSBfbW9uaXRvclN1YnNjcmlwdGlvbjogU3Vic2NyaXB0aW9uO1xuICBAT3V0cHV0KCkgcmVhZG9ubHkgY2RrRm9jdXNDaGFuZ2UgPSBuZXcgRXZlbnRFbWl0dGVyPEZvY3VzT3JpZ2luPigpO1xuXG4gIGNvbnN0cnVjdG9yKHByaXZhdGUgX2VsZW1lbnRSZWY6IEVsZW1lbnRSZWY8SFRNTEVsZW1lbnQ+LCBwcml2YXRlIF9mb2N1c01vbml0b3I6IEZvY3VzTW9uaXRvcikge31cblxuICBuZ0FmdGVyVmlld0luaXQoKSB7XG4gICAgY29uc3QgZWxlbWVudCA9IHRoaXMuX2VsZW1lbnRSZWYubmF0aXZlRWxlbWVudDtcbiAgICB0aGlzLl9tb25pdG9yU3Vic2NyaXB0aW9uID0gdGhpcy5fZm9jdXNNb25pdG9yLm1vbml0b3IoXG4gICAgICBlbGVtZW50LFxuICAgICAgZWxlbWVudC5ub2RlVHlwZSA9PT0gMSAmJiBlbGVtZW50Lmhhc0F0dHJpYnV0ZSgnY2RrTW9uaXRvclN1YnRyZWVGb2N1cycpKVxuICAgIC5zdWJzY3JpYmUob3JpZ2luID0+IHRoaXMuY2RrRm9jdXNDaGFuZ2UuZW1pdChvcmlnaW4pKTtcbiAgfVxuXG4gIG5nT25EZXN0cm95KCkge1xuICAgIHRoaXMuX2ZvY3VzTW9uaXRvci5zdG9wTW9uaXRvcmluZyh0aGlzLl9lbGVtZW50UmVmKTtcblxuICAgIGlmICh0aGlzLl9tb25pdG9yU3Vic2NyaXB0aW9uKSB7XG4gICAgICB0aGlzLl9tb25pdG9yU3Vic2NyaXB0aW9uLnVuc3Vic2NyaWJlKCk7XG4gICAgfVxuICB9XG59XG4iXX0=
  • trip-planner-front/node_modules/@angular/cdk/esm2015/a11y/live-announcer/live-announcer.js

    r59329aa re29cc2e  
    165165    politeness: [{ type: Input, args: ['cdkAriaLive',] }]
    166166};
    167 //# source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ICAgICB9KTtcbiAgICAgIH0pO1xuICAgIH1cbiAgfVxuICBwcml2YXRlIF9wb2xpdGVuZXNzOiBBcmlhTGl2ZVBvbGl0ZW5lc3MgPSAncG9saXRlJztcblxuICBwcml2YXRlIF9wcmV2aW91c0Fubm91bmNlZFRleHQ/OiBzdHJpbmc7XG4gIHByaXZhdGUgX3N1YnNjcmlwdGlvbjogU3Vic2NyaXB0aW9uIHwgbnVsbDtcblxuICBjb25zdHJ1Y3Rvcihwcml2YXRlIF9lbGVtZW50UmVmOiBFbGVtZW50UmVmLCBwcml2YXRlIF9saXZlQW5ub3VuY2VyOiBMaXZlQW5ub3VuY2VyLFxuICAgICAgICAgICAgICBwcml2YXRlIF9jb250ZW50T2JzZXJ2ZXI6IENvbnRlbnRPYnNlcnZlciwgcHJpdmF0ZSBfbmdab25lOiBOZ1pvbmUpIHt9XG5cbiAgbmdPbkRlc3Ryb3koKSB7XG4gICAgaWYgKHRoaXMuX3N1YnNjcmlwdGlvbikge1xuICAgICAgdGhpcy5fc3Vic2NyaXB0aW9uLnVuc3Vic2NyaWJlKCk7XG4gICAgfVxuICB9XG59XG4iXX0=
  • trip-planner-front/node_modules/@angular/cdk/esm2015/overlay/dispatchers/overlay-outside-click-dispatcher.js

    r59329aa re29cc2e  
    2323        this._platform = _platform;
    2424        this._cursorStyleIsSet = false;
     25        /** Store pointerdown event target to track origin of click. */
     26        this._pointerDownListener = (event) => {
     27            this._pointerDownEventTarget = _getEventTarget(event);
     28        };
    2529        /** Click event listener that will be attached to the body propagate phase. */
    2630        this._clickListener = (event) => {
    2731            const target = _getEventTarget(event);
     32            // In case of a click event, we want to check the origin of the click
     33            // (e.g. in case where a user starts a click inside the overlay and
     34            // releases the click outside of it).
     35            // This is done by using the event target of the preceding pointerdown event.
     36            // Every click event caused by a pointer device has a preceding pointerdown
     37            // event, unless the click was programmatically triggered (e.g. in a unit test).
     38            const origin = event.type === 'click' && this._pointerDownEventTarget
     39                ? this._pointerDownEventTarget : target;
     40            // Reset the stored pointerdown event target, to avoid having it interfere
     41            // in subsequent events.
     42            this._pointerDownEventTarget = null;
    2843            // We copy the array because the original may be modified asynchronously if the
    2944            // outsidePointerEvents listener decides to detach overlays resulting in index errors inside
     
    4055                }
    4156                // If it's a click inside the overlay, just break - we should do nothing
    42                 // If it's an outside click dispatch the mouse event, and proceed with the next overlay
    43                 if (overlayRef.overlayElement.contains(target)) {
     57                // If it's an outside click (both origin and target of the click) dispatch the mouse event,
     58                // and proceed with the next overlay
     59                if (overlayRef.overlayElement.contains(target) ||
     60                    overlayRef.overlayElement.contains(origin)) {
    4461                    break;
    4562                }
     
    5976        if (!this._isAttached) {
    6077            const body = this._document.body;
     78            body.addEventListener('pointerdown', this._pointerDownListener, true);
    6179            body.addEventListener('click', this._clickListener, true);
    6280            body.addEventListener('auxclick', this._clickListener, true);
     
    7694        if (this._isAttached) {
    7795            const body = this._document.body;
     96            body.removeEventListener('pointerdown', this._pointerDownListener, true);
    7897            body.removeEventListener('click', this._clickListener, true);
    7998            body.removeEventListener('auxclick', this._clickListener, true);
     
    95114    { type: Platform }
    96115];
    97 //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3ZlcmxheS1vdXRzaWRlLWNsaWNrLWRpc3BhdGNoZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvY2RrL292ZXJsYXkvZGlzcGF0Y2hlcnMvb3ZlcmxheS1vdXRzaWRlLWNsaWNrLWRpc3BhdGNoZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBRUgsT0FBTyxFQUFDLFFBQVEsRUFBQyxNQUFNLGlCQUFpQixDQUFDO0FBQ3pDLE9BQU8sRUFBQyxNQUFNLEVBQUUsVUFBVSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBRWpELE9BQU8sRUFBQyxRQUFRLEVBQUUsZUF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sYXlSZWYub3ZlcmxheUVsZW1lbnQuY29udGFpbnMob3JpZ2luIGFzIE5vZGUpKSB7XG4gICAgICAgIGJyZWFrO1xuICAgICAgfVxuXG4gICAgICBvdmVybGF5UmVmLl9vdXRzaWRlUG9pbnRlckV2ZW50cy5uZXh0KGV2ZW50KTtcbiAgICB9XG4gIH1cbn1cbiJdfQ==
  • trip-planner-front/node_modules/@angular/cdk/esm2015/overlay/overlay-ref.js

    r59329aa re29cc2e  
    411411    }
    412412}
    413 //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3ZlcmxheS1yZWYuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvY2RrL292ZXJsYXkvb3ZlcmxheS1yZWYudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBTUgsT0FBTyxFQUFhLE9BQU8sRUFBRSxLQUFLLEVBQW9CLFlBQVksRUFBQyxNQUFNLE1BQU0sQ0FBQztBQUNoRixPQUFPLEVBQUMsSUFBSSxFQUFFLFNBQVMsRUFBQyxNQUFNLGdCQUFnQixDQUFDO0FBSS9DLE9BQU8sRUFBQyxtQkFBbUIsRUFBRSxXQUFXLEVBQUMsTUFBTSx1QkFBdUIsQ0FBQztBQVd2RTs7O0dBR0c7QUFDSCxNQUFNLE9BQU8sVUFBVTtJQXNCckIsWUFDWSxhQUEyQixFQUMzQixLQUFrQixFQUNsQixLQUFrQixFQUNsQixPQUF1QyxFQUN2QyxPQUFlLEVBQ2YsbUJBQThDLEVBQzlDLFNBQW1CLEVBQ25CLFNBQW1CLEVBQ25CLHVCQUFzRDtRQVJ0RCxrQkFBYSxHQUFiLGFBQWEsQ0FBYztRQUMzQixVQUFLLEdBQUwsS0FBSyxDQUFhO1FBQ2xCLFVBQUssR0FBTCxLQUFLLENBQWE7UUFDbEIsWUFBTyxHQUFQLE9BQU8sQ0FBZ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ip-planner-front/node_modules/@angular/cdk/esm2015/platform/features/test-environment.js

    r59329aa re29cc2e  
    66 * found in the LICENSE file at https://angular.io/license
    77 */
    8 let testGlobals;
    9 // We check the Node-specific `global` first, because tools tend to add a fake
    10 // `window` in Node environments which won't actually receive global variables.
    11 if (typeof global !== 'undefined') {
    12     testGlobals = global;
    13 }
    14 else if (typeof window !== 'undefined') {
    15     testGlobals = window;
    16 }
    17 else {
    18     testGlobals = {};
    19 }
    208/** Gets whether the code is currently running in a test environment. */
    219export function _isTestEnvironment() {
    22     return (typeof testGlobals.__karma__ !== 'undefined' && !!testGlobals.__karma__) ||
    23         (typeof testGlobals.jasmine !== 'undefined' && !!testGlobals.jasmine) ||
    24         (typeof testGlobals.jest !== 'undefined' && !!testGlobals.jest) ||
    25         (typeof testGlobals.Mocha !== 'undefined' && !!testGlobals.Mocha);
     10    // We can't use `declare const` because it causes conflicts inside Google with the real typings
     11    // for these symbols and we can't read them off the global object, because they don't appear to
     12    // be attached there for some runners like Jest.
     13    // (see: https://github.com/angular/components/issues/23365#issuecomment-938146643)
     14    return (
     15    // @ts-ignore
     16    (typeof __karma__ !== 'undefined' && !!__karma__) ||
     17        // @ts-ignore
     18        (typeof jasmine !== 'undefined' && !!jasmine) ||
     19        // @ts-ignore
     20        (typeof jest !== 'undefined' && !!jest) ||
     21        // @ts-ignore
     22        (typeof Mocha !== 'undefined' && !!Mocha));
    2623}
    27 //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdC1lbnZpcm9ubWVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9jZGsvcGxhdGZvcm0vZmVhdHVyZXMvdGVzdC1lbnZpcm9ubWVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFhSCxJQUFJLFdBQXdCLENBQUM7QUFFN0IsOEVBQThF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dGhlbSBvZmYgdGhlIGdsb2JhbCBvYmplY3QsIGJlY2F1c2UgdGhleSBkb24ndCBhcHBlYXIgdG9cbiAgLy8gYmUgYXR0YWNoZWQgdGhlcmUgZm9yIHNvbWUgcnVubmVycyBsaWtlIEplc3QuXG4gIC8vIChzZWU6IGh0dHBzOi8vZ2l0aHViLmNvbS9hbmd1bGFyL2NvbXBvbmVudHMvaXNzdWVzLzIzMzY1I2lzc3VlY29tbWVudC05MzgxNDY2NDMpXG4gIHJldHVybiAoXG4gICAgLy8gQHRzLWlnbm9yZVxuICAgICh0eXBlb2YgX19rYXJtYV9fICE9PSAndW5kZWZpbmVkJyAmJiAhIV9fa2FybWFfXykgfHxcbiAgICAvLyBAdHMtaWdub3JlXG4gICAgKHR5cGVvZiBqYXNtaW5lICE9PSAndW5kZWZpbmVkJyAmJiAhIWphc21pbmUpIHx8XG4gICAgLy8gQHRzLWlnbm9yZVxuICAgICh0eXBlb2YgamVzdCAhPT0gJ3VuZGVmaW5lZCcgJiYgISFqZXN0KSB8fFxuICAgIC8vIEB0cy1pZ25vcmVcbiAgICAodHlwZW9mIE1vY2hhICE9PSAndW5kZWZpbmVkJyAmJiAhIU1vY2hhKVxuICApO1xufVxuIl19
  • trip-planner-front/node_modules/@angular/cdk/esm2015/version.js

    r59329aa re29cc2e  
    88import { Version } from '@angular/core';
    99/** Current version of the Angular Component Development Kit. */
    10 export const VERSION = new Version('12.2.10');
     10export const VERSION = new Version('12.2.13');
    1111//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9jZGsvdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFFSCxPQUFPLEVBQUMsT0FBTyxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBRXRDLGdFQUFnRTtBQUNoRSxNQUFNLENBQUMsTUFBTSxPQUFPLEdBQUcsSUFBSSxPQUFPLENBQUMsbUJBQW1CLENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQGxpY2Vuc2VcbiAqIENvcHlyaWdodCBHb29nbGUgTExDIEFsbCBSaWdodHMgUmVzZXJ2ZWQuXG4gKlxuICogVXNlIG9mIHRoaXMgc291cmNlIGNvZGUgaXMgZ292ZXJuZWQgYnkgYW4gTUlULXN0eWxlIGxpY2Vuc2UgdGhhdCBjYW4gYmVcbiAqIGZvdW5kIGluIHRoZSBMSUNFTlNFIGZpbGUgYXQgaHR0cHM6Ly9hbmd1bGFyLmlvL2xpY2Vuc2VcbiAqL1xuXG5pbXBvcnQge1ZlcnNpb259IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG4vKiogQ3VycmVudCB2ZXJzaW9uIG9mIHRoZSBBbmd1bGFyIENvbXBvbmVudCBEZXZlbG9wbWVudCBLaXQuICovXG5leHBvcnQgY29uc3QgVkVSU0lPTiA9IG5ldyBWZXJzaW9uKCcwLjAuMC1QTEFDRUhPTERFUicpO1xuIl19
Note: See TracChangeset for help on using the changeset viewer.