chrv-components 1.12.134 → 1.12.135
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,6 @@ class ChrPopoverDirective {
|
|
|
4022
4022
|
...(ngDevMode ? [{ debugName: "hostElement" }] : /* istanbul ignore next */ []));
|
|
4023
4023
|
this.isHostHovered$ = new Subject();
|
|
4024
4024
|
this.isTargetHovered$ = new Subject();
|
|
4025
|
-
this.lastKnowMousePosition = new Subject();
|
|
4026
4025
|
// private readonly isInsidePopover$ = new BehaviorSubject<boolean>(false);
|
|
4027
4026
|
this.destroyRef = inject(DestroyRef);
|
|
4028
4027
|
// private readonly isInsideHost = signal(false);
|
|
@@ -4064,12 +4063,12 @@ class ChrPopoverDirective {
|
|
|
4064
4063
|
// if (y < rect.top || y >= rect.bottom) return false;
|
|
4065
4064
|
// return true;
|
|
4066
4065
|
// };
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
};
|
|
4066
|
+
// updateMousePosition = (event: MouseEvent) => {
|
|
4067
|
+
// this.lastKnowMousePosition.next({
|
|
4068
|
+
// x: event.clientX,
|
|
4069
|
+
// y: event.clientY,
|
|
4070
|
+
// });
|
|
4071
|
+
// };
|
|
4073
4072
|
this.setupSubject = () => {
|
|
4074
4073
|
combineLatest([this.isHostHovered$, this.isTargetHovered$])
|
|
4075
4074
|
.pipe(map(([hostHovered, targetHovered]) => hostHovered.hover ||
|
|
@@ -4202,7 +4201,7 @@ class ChrPopoverDirective {
|
|
|
4202
4201
|
this.renderer.setStyle(this.targetElement(), 'border', 'none');
|
|
4203
4202
|
}
|
|
4204
4203
|
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: {
|
|
4204
|
+
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
4205
|
}
|
|
4207
4206
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ChrPopoverDirective, decorators: [{
|
|
4208
4207
|
type: Directive,
|
|
@@ -4210,7 +4209,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
4210
4209
|
selector: '[chrPopover]',
|
|
4211
4210
|
host: {
|
|
4212
4211
|
'(keyup.escape)': 'hidePopover()',
|
|
4213
|
-
'window:mousemove': 'updaeMousePosition($event)',
|
|
4214
4212
|
},
|
|
4215
4213
|
}]
|
|
4216
4214
|
}], 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 }] }] } });
|