chrv-components 1.12.138 → 1.12.139
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
|
|
@@ -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.
|
|
4025
|
+
this.lastKnownMousePosition$ = new BehaviorSubject({
|
|
4026
4026
|
x: 0,
|
|
4027
4027
|
y: 0,
|
|
4028
4028
|
});
|
|
@@ -4077,11 +4077,12 @@ class ChrPopoverDirective {
|
|
|
4077
4077
|
combineLatest([
|
|
4078
4078
|
this.isHostHovered$,
|
|
4079
4079
|
this.isTargetHovered$,
|
|
4080
|
-
this.
|
|
4080
|
+
this.lastKnownMousePosition$,
|
|
4081
4081
|
])
|
|
4082
|
-
.pipe(
|
|
4082
|
+
.pipe(map(([hostHovered, targetHovered, position]) => hostHovered ||
|
|
4083
4083
|
targetHovered ||
|
|
4084
|
-
this.isInsideHost(position.x, position.y)
|
|
4084
|
+
this.isInsideHost(position.x, position.y) ||
|
|
4085
|
+
this.isInsideTarget(position.x, position.y)), debounceTime$1(100),
|
|
4085
4086
|
// switchMap((isInside) => timer(100).pipe(map(() => isInside))),
|
|
4086
4087
|
takeUntilDestroyed(this.destroyRef))
|
|
4087
4088
|
.subscribe((isInside) => {
|
|
@@ -4100,7 +4101,7 @@ class ChrPopoverDirective {
|
|
|
4100
4101
|
// hover: true,
|
|
4101
4102
|
// position: { x: event.clientX, y: event.clientY },
|
|
4102
4103
|
// });
|
|
4103
|
-
this.
|
|
4104
|
+
this.lastKnownMousePosition$.next({
|
|
4104
4105
|
x: event.clientX,
|
|
4105
4106
|
y: event.clientY,
|
|
4106
4107
|
});
|
|
@@ -4124,7 +4125,7 @@ class ChrPopoverDirective {
|
|
|
4124
4125
|
// hover: false,
|
|
4125
4126
|
// position: { x: event.clientX, y: event.clientY },
|
|
4126
4127
|
// });
|
|
4127
|
-
this.
|
|
4128
|
+
this.lastKnownMousePosition$.next({
|
|
4128
4129
|
x: event.clientX,
|
|
4129
4130
|
y: event.clientY,
|
|
4130
4131
|
});
|
|
@@ -4139,7 +4140,7 @@ class ChrPopoverDirective {
|
|
|
4139
4140
|
// hover: true,
|
|
4140
4141
|
// position: { x: event.clientX, y: event.clientY },
|
|
4141
4142
|
// });
|
|
4142
|
-
this.
|
|
4143
|
+
this.lastKnownMousePosition$.next({
|
|
4143
4144
|
x: event.clientX,
|
|
4144
4145
|
y: event.clientY,
|
|
4145
4146
|
});
|
|
@@ -4156,7 +4157,7 @@ class ChrPopoverDirective {
|
|
|
4156
4157
|
// hover: false,
|
|
4157
4158
|
// position: { x: event.clientX, y: event.clientY },
|
|
4158
4159
|
// });
|
|
4159
|
-
this.
|
|
4160
|
+
this.lastKnownMousePosition$.next({
|
|
4160
4161
|
x: event.clientX,
|
|
4161
4162
|
y: event.clientY,
|
|
4162
4163
|
});
|