chrv-components 1.12.134 → 1.12.136

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
@@ -4020,9 +4020,14 @@ class ChrPopoverDirective {
4020
4020
  this.viewContainerRef = inject(ViewContainerRef);
4021
4021
  this.hostElement = computed(() => this.hostElementRef.nativeElement, /* @ts-ignore */
4022
4022
  ...(ngDevMode ? [{ debugName: "hostElement" }] : /* istanbul ignore next */ []));
4023
- this.isHostHovered$ = new Subject();
4024
- this.isTargetHovered$ = new Subject();
4025
- this.lastKnowMousePosition = new Subject();
4023
+ this.isHostHovered$ = new BehaviorSubject({
4024
+ hover: false,
4025
+ position: { x: 0, y: 0 },
4026
+ });
4027
+ this.isTargetHovered$ = new BehaviorSubject({
4028
+ hover: false,
4029
+ position: { x: 0, y: 0 },
4030
+ });
4026
4031
  // private readonly isInsidePopover$ = new BehaviorSubject<boolean>(false);
4027
4032
  this.destroyRef = inject(DestroyRef);
4028
4033
  // private readonly isInsideHost = signal(false);
@@ -4064,12 +4069,12 @@ class ChrPopoverDirective {
4064
4069
  // if (y < rect.top || y >= rect.bottom) return false;
4065
4070
  // return true;
4066
4071
  // };
4067
- this.updateMousePosition = (event) => {
4068
- this.lastKnowMousePosition.next({
4069
- x: event.clientX,
4070
- y: event.clientY,
4071
- });
4072
- };
4072
+ // updateMousePosition = (event: MouseEvent) => {
4073
+ // this.lastKnowMousePosition.next({
4074
+ // x: event.clientX,
4075
+ // y: event.clientY,
4076
+ // });
4077
+ // };
4073
4078
  this.setupSubject = () => {
4074
4079
  combineLatest([this.isHostHovered$, this.isTargetHovered$])
4075
4080
  .pipe(map(([hostHovered, targetHovered]) => hostHovered.hover ||
@@ -4202,7 +4207,7 @@ class ChrPopoverDirective {
4202
4207
  this.renderer.setStyle(this.targetElement(), 'border', 'none');
4203
4208
  }
4204
4209
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ChrPopoverDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
4205
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.8", type: ChrPopoverDirective, isStandalone: true, selector: "[chrPopover]", inputs: { chrPopover: { classPropertyName: "chrPopover", publicName: "chrPopover", isSignal: true, isRequired: true, transformFunction: null }, chrPopoverPosition: { classPropertyName: "chrPopoverPosition", publicName: "chrPopoverPosition", isSignal: true, isRequired: false, transformFunction: null }, chrPopoverData: { classPropertyName: "chrPopoverData", publicName: "chrPopoverData", isSignal: true, isRequired: false, transformFunction: null }, chrPopoverOnHover: { classPropertyName: "chrPopoverOnHover", publicName: "chrPopoverOnHover", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "window:mousemove": "updaeMousePosition($event)" }, listeners: { "keyup.escape": "hidePopover()" } }, ngImport: i0 }); }
4210
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.8", type: ChrPopoverDirective, isStandalone: true, selector: "[chrPopover]", inputs: { chrPopover: { classPropertyName: "chrPopover", publicName: "chrPopover", isSignal: true, isRequired: true, transformFunction: null }, chrPopoverPosition: { classPropertyName: "chrPopoverPosition", publicName: "chrPopoverPosition", isSignal: true, isRequired: false, transformFunction: null }, chrPopoverData: { classPropertyName: "chrPopoverData", publicName: "chrPopoverData", isSignal: true, isRequired: false, transformFunction: null }, chrPopoverOnHover: { classPropertyName: "chrPopoverOnHover", publicName: "chrPopoverOnHover", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "keyup.escape": "hidePopover()" } }, ngImport: i0 }); }
4206
4211
  }
4207
4212
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ChrPopoverDirective, decorators: [{
4208
4213
  type: Directive,
@@ -4210,7 +4215,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
4210
4215
  selector: '[chrPopover]',
4211
4216
  host: {
4212
4217
  '(keyup.escape)': 'hidePopover()',
4213
- 'window:mousemove': 'updaeMousePosition($event)',
4214
4218
  },
4215
4219
  }]
4216
4220
  }], propDecorators: { chrPopover: [{ type: i0.Input, args: [{ isSignal: true, alias: "chrPopover", required: true }] }], chrPopoverPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "chrPopoverPosition", required: false }] }], chrPopoverData: [{ type: i0.Input, args: [{ isSignal: true, alias: "chrPopoverData", required: false }] }], chrPopoverOnHover: [{ type: i0.Input, args: [{ isSignal: true, alias: "chrPopoverOnHover", required: false }] }] } });