chrv-components 1.12.138 → 1.12.140

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
@@ -10,8 +10,8 @@ import { CommonModule, AsyncPipe, DatePipe, formatDate, DATE_PIPE_DEFAULT_OPTION
10
10
  import * as i1$3 from '@angular/cdk/overlay';
11
11
  import { Overlay, CdkOverlayOrigin, CdkConnectedOverlay, CdkScrollable, CDK_CONNECTED_OVERLAY_DEFAULT_CONFIG } from '@angular/cdk/overlay';
12
12
  import { ComponentPortal, TemplatePortal } from '@angular/cdk/portal';
13
- import { Subject, Observable, map, BehaviorSubject, skip, debounceTime as debounceTime$1, distinctUntilChanged, skipWhile, from, mergeMap, toArray, timer, takeUntil as takeUntil$1, of, catchError, forkJoin, take, combineLatest, finalize, tap, interval } from 'rxjs';
14
- import { debounceTime, takeUntil, finalize as finalize$1, concatMap, switchMap, tap as tap$1, catchError as catchError$1 } from 'rxjs/operators';
13
+ import { Subject, Observable, map, BehaviorSubject, skip, debounceTime as debounceTime$1, distinctUntilChanged, skipWhile, from, mergeMap, toArray, timer, takeUntil as takeUntil$1, of, catchError, forkJoin, take, combineLatest, switchMap, finalize, tap, interval } from 'rxjs';
14
+ import { debounceTime, takeUntil, finalize as finalize$1, concatMap, switchMap as switchMap$1, tap as tap$1, catchError as catchError$1 } from 'rxjs/operators';
15
15
  import * as i1$2 from '@angular/forms';
16
16
  import { NG_VALIDATORS, Validators, NgControl, ReactiveFormsModule, FormsModule, FormBuilder, FormControl } from '@angular/forms';
17
17
  import { isValid, isBefore, formatDate as formatDate$1 } from 'date-fns';
@@ -4022,7 +4022,7 @@ class ChrPopoverDirective {
4022
4022
  ...(ngDevMode ? [{ debugName: "hostElement" }] : /* istanbul ignore next */ []));
4023
4023
  this.isHostHovered$ = new BehaviorSubject(false);
4024
4024
  this.isTargetHovered$ = new BehaviorSubject(false);
4025
- this.lastKnowMousePosition$ = new BehaviorSubject({
4025
+ this.lastKnownMousePosition$ = new BehaviorSubject({
4026
4026
  x: 0,
4027
4027
  y: 0,
4028
4028
  });
@@ -4077,13 +4077,19 @@ class ChrPopoverDirective {
4077
4077
  combineLatest([
4078
4078
  this.isHostHovered$,
4079
4079
  this.isTargetHovered$,
4080
- this.lastKnowMousePosition$,
4080
+ this.lastKnownMousePosition$,
4081
4081
  ])
4082
- .pipe(debounceTime$1(100), map(([hostHovered, targetHovered, position]) => hostHovered ||
4082
+ .pipe(map(([hostHovered, targetHovered, position]) => hostHovered ||
4083
4083
  targetHovered ||
4084
- this.isInsideHost(position.x, position.y)),
4085
- // switchMap((isInside) => timer(100).pipe(map(() => isInside))),
4086
- takeUntilDestroyed(this.destroyRef))
4084
+ this.isInsideHost(position.x, position.y) ||
4085
+ this.isInsideTarget(position.x, position.y)), distinctUntilChanged(), takeUntilDestroyed(this.destroyRef), switchMap((isInside) => {
4086
+ if (isInside) {
4087
+ return of(true);
4088
+ }
4089
+ else {
4090
+ return timer(100).pipe(map(() => false));
4091
+ }
4092
+ }))
4087
4093
  .subscribe((isInside) => {
4088
4094
  if (isInside && !this.isOpen()) {
4089
4095
  this.showPopover();
@@ -4100,7 +4106,7 @@ class ChrPopoverDirective {
4100
4106
  // hover: true,
4101
4107
  // position: { x: event.clientX, y: event.clientY },
4102
4108
  // });
4103
- this.lastKnowMousePosition$.next({
4109
+ this.lastKnownMousePosition$.next({
4104
4110
  x: event.clientX,
4105
4111
  y: event.clientY,
4106
4112
  });
@@ -4124,7 +4130,7 @@ class ChrPopoverDirective {
4124
4130
  // hover: false,
4125
4131
  // position: { x: event.clientX, y: event.clientY },
4126
4132
  // });
4127
- this.lastKnowMousePosition$.next({
4133
+ this.lastKnownMousePosition$.next({
4128
4134
  x: event.clientX,
4129
4135
  y: event.clientY,
4130
4136
  });
@@ -4139,7 +4145,7 @@ class ChrPopoverDirective {
4139
4145
  // hover: true,
4140
4146
  // position: { x: event.clientX, y: event.clientY },
4141
4147
  // });
4142
- this.lastKnowMousePosition$.next({
4148
+ this.lastKnownMousePosition$.next({
4143
4149
  x: event.clientX,
4144
4150
  y: event.clientY,
4145
4151
  });
@@ -4156,7 +4162,7 @@ class ChrPopoverDirective {
4156
4162
  // hover: false,
4157
4163
  // position: { x: event.clientX, y: event.clientY },
4158
4164
  // });
4159
- this.lastKnowMousePosition$.next({
4165
+ this.lastKnownMousePosition$.next({
4160
4166
  x: event.clientX,
4161
4167
  y: event.clientY,
4162
4168
  });
@@ -5501,7 +5507,7 @@ class LegacyToastService {
5501
5507
  this.currentToastSubject.next(null);
5502
5508
  }),
5503
5509
  //Small delay between toasts
5504
- switchMap(() => timer(500)));
5510
+ switchMap$1(() => timer(500)));
5505
5511
  }))
5506
5512
  .subscribe();
5507
5513
  }