chrv-components 1.12.106 → 1.12.107

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
@@ -4097,9 +4097,13 @@ class ChrPopoverDirectiveDirective {
4097
4097
  this.isOpen.set(false);
4098
4098
  this.targetElement().hidePopover();
4099
4099
  };
4100
- this.hideIfOutsideHostAndTarget = () => {
4100
+ this.hideIfOutsideHostAndTarget = (event = null) => {
4101
4101
  if (!this.isOpen())
4102
4102
  return;
4103
+ if (event != null) {
4104
+ if (event.shiftKey || event.altKey || event.ctrlKey || event.metaKey)
4105
+ return;
4106
+ }
4103
4107
  if (!this.isInsideHost() && !this.isInsideTarget())
4104
4108
  this.hidePopover();
4105
4109
  };
@@ -4130,7 +4134,7 @@ class ChrPopoverDirectiveDirective {
4130
4134
  this.renderer.setStyle(this.targetElement(), 'border', 'none');
4131
4135
  }
4132
4136
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ChrPopoverDirectiveDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
4133
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.8", type: ChrPopoverDirectiveDirective, 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 }, chrPopoverOnHover: { classPropertyName: "chrPopoverOnHover", publicName: "chrPopoverOnHover", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "keyup.escape": "hidePopover()", "mousedown": "hideIfOutsideHostAndTarget()" } }, ngImport: i0 }); }
4137
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.8", type: ChrPopoverDirectiveDirective, 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 }, chrPopoverOnHover: { classPropertyName: "chrPopoverOnHover", publicName: "chrPopoverOnHover", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "keyup.escape": "hidePopover()", "window:click": "hideIfOutsideHostAndTarget($event)" } }, ngImport: i0 }); }
4134
4138
  }
4135
4139
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ChrPopoverDirectiveDirective, decorators: [{
4136
4140
  type: Directive,
@@ -4138,7 +4142,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
4138
4142
  selector: '[chrPopover]',
4139
4143
  host: {
4140
4144
  '(keyup.escape)': 'hidePopover()',
4141
- '(mousedown)': 'hideIfOutsideHostAndTarget()',
4145
+ '(window:click)': 'hideIfOutsideHostAndTarget($event)',
4142
4146
  },
4143
4147
  }]
4144
4148
  }], propDecorators: { chrPopover: [{ type: i0.Input, args: [{ isSignal: true, alias: "chrPopover", required: true }] }], chrPopoverPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "chrPopoverPosition", required: false }] }], chrPopoverOnHover: [{ type: i0.Input, args: [{ isSignal: true, alias: "chrPopoverOnHover", required: false }] }] } });