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/overlay
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3ZlcmxheS1vdXRzaWRlLWNsaWNrLWRpc3BhdGNoZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvY2RrL292ZXJsYXkvZGlzcGF0Y2hlcnMvb3ZlcmxheS1vdXRzaWRlLWNsaWNrLWRpc3BhdGNoZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBRUgsT0FBTyxFQUFDLFFBQVEsRUFBQyxNQUFNLGlCQUFpQixDQUFDO0FBQ3pDLE9BQU8sRUFBQyxNQUFNLEVBQUUsVUFBVSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBRWpELE9BQU8sRUFBQyxRQUFRLEVBQUUsZUFBZSxFQUFDLE1BQU0sdUJBQXVCLENBQUM7QUFDaEUsT0FBTyxFQUFDLHFCQUFxQixFQUFDLE1BQU0sMkJBQTJCLENBQUM7Ozs7QUFFaEU7Ozs7R0FJRztBQUVILE1BQU0sT0FBTyw2QkFBOEIsU0FBUSxxQkFBcUI7SUFJdEUsWUFBOEIsUUFBYSxFQUFVLFNBQW1CO1FBQ3RFLEtBQUssQ0FBQyxRQUFRLENBQUMsQ0FBQztRQURtQyxjQUFTLEdBQVQsU0FBUyxDQUFVO1FBRmhFLHNCQUFpQixHQUFHLEtBQUssQ0FBQztRQWlEbEMsOEVBQThFO1FBQ3RFLG1CQUFjLEdBQUcsQ0FBQyxLQUFpQixFQUFFLEVBQUU7WUFDN0MsTUFBTSxNQUFNLEdBQUcsZUFBZSxDQUFDLEtBQUssQ0FBQyxDQUFDO1lBQ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G4gICAgICBjb25zdCBvdmVybGF5UmVmID0gb3ZlcmxheXNbaV07XG4gICAgICBpZiAob3ZlcmxheVJlZi5fb3V0c2lkZVBvaW50ZXJFdmVudHMub2JzZXJ2ZXJzLmxlbmd0aCA8IDEgfHwgIW92ZXJsYXlSZWYuaGFzQXR0YWNoZWQoKSkge1xuICAgICAgICBjb250aW51ZTtcbiAgICAgIH1cblxuICAgICAgLy8gSWYgaXQncyBhIGNsaWNrIGluc2lkZSB0aGUgb3ZlcmxheSwganVzdCBicmVhayAtIHdlIHNob3VsZCBkbyBub3RoaW5nXG4gICAgICAvLyBJZiBpdCdzIGFuIG91dHNpZGUgY2xpY2sgKGJvdGggb3JpZ2luIGFuZCB0YXJnZXQgb2YgdGhlIGNsaWNrKSBkaXNwYXRjaCB0aGUgbW91c2UgZXZlbnQsXG4gICAgICAvLyBhbmQgcHJvY2VlZCB3aXRoIHRoZSBuZXh0IG92ZXJsYXlcbiAgICAgIGlmIChvdmVybGF5UmVmLm92ZXJsYXlFbGVtZW50LmNvbnRhaW5zKHRhcmdldCBhcyBOb2RlKSB8fFxuICAgICAgICAgIG92ZXJsYXlSZWYub3ZlcmxheUVsZW1lbnQuY29udGFpbnMob3JpZ2luIGFzIE5vZGUpKSB7XG4gICAgICAgIGJyZWFrO1xuICAgICAgfVxuXG4gICAgICBvdmVybGF5UmVmLl9vdXRzaWRlUG9pbnRlckV2ZW50cy5uZXh0KGV2ZW50KTtcbiAgICB9XG4gIH1cbn1cbiJdfQ==
  • trip-planner-front/node_modules/@angular/cdk/esm2015/overlay/overlay-ref.js

    r59329aa re29cc2e  
    411411    }
    412412}
    413 //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3ZlcmxheS1yZWYuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvY2RrL292ZXJsYXkvb3ZlcmxheS1yZWYudHMiXSwibmFtZXMiOltdLCJt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m9wIHJlZmVyZW5jZSBpZiBpdFxuICAgICAgLy8gaXMgc3RpbGwgdGhlIHNhbWUgaW5zdGFuY2UgdGhhdCB3ZSBzdGFydGVkIHRvIHJlbW92ZS5cbiAgICAgIGlmICh0aGlzLl9iYWNrZHJvcEVsZW1lbnQgPT09IGJhY2tkcm9wKSB7XG4gICAgICAgIHRoaXMuX2JhY2tkcm9wRWxlbWVudCA9IG51bGw7XG4gICAgICB9XG4gICAgfVxuICB9XG59XG5cblxuLyoqIFNpemUgcHJvcGVydGllcyBmb3IgYW4gb3ZlcmxheS4gKi9cbmV4cG9ydCBpbnRlcmZhY2UgT3ZlcmxheVNpemVDb25maWcge1xuICB3aWR0aD86IG51bWJlciB8IHN0cmluZztcbiAgaGVpZ2h0PzogbnVtYmVyIHwgc3RyaW5nO1xuICBtaW5XaWR0aD86IG51bWJlciB8IHN0cmluZztcbiAgbWluSGVpZ2h0PzogbnVtYmVyIHwgc3RyaW5nO1xuICBtYXhXaWR0aD86IG51bWJlciB8IHN0cmluZztcbiAgbWF4SGVpZ2h0PzogbnVtYmVyIHwgc3RyaW5nO1xufVxuIl19
Note: See TracChangeset for help on using the changeset viewer.