chrv-components 1.12.224 → 1.12.226
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
|
|
@@ -4182,11 +4182,17 @@ class ChrPopoverDirective {
|
|
|
4182
4182
|
};
|
|
4183
4183
|
this.showPopover = () => {
|
|
4184
4184
|
this.isOpen.set(true);
|
|
4185
|
-
|
|
4185
|
+
try {
|
|
4186
|
+
this.targetElement().showPopover({ source: this.hostElement() });
|
|
4187
|
+
}
|
|
4188
|
+
catch { }
|
|
4186
4189
|
};
|
|
4187
4190
|
this.hidePopover = () => {
|
|
4188
4191
|
this.isOpen.set(false);
|
|
4189
|
-
|
|
4192
|
+
try {
|
|
4193
|
+
this.targetElement().hidePopover();
|
|
4194
|
+
}
|
|
4195
|
+
catch { }
|
|
4190
4196
|
};
|
|
4191
4197
|
this.isInsideRect = (x, y, rect) => {
|
|
4192
4198
|
return (x >= rect.left && x <= rect.right && y >= rect.top && y <= rect.bottom);
|
|
@@ -4204,7 +4210,8 @@ class ChrPopoverDirective {
|
|
|
4204
4210
|
return this.isInsideRect(x, y, rect);
|
|
4205
4211
|
};
|
|
4206
4212
|
effect(() => {
|
|
4207
|
-
|
|
4213
|
+
const target = this.targetElement();
|
|
4214
|
+
if (!target || typeof target.showPopover !== 'function')
|
|
4208
4215
|
return;
|
|
4209
4216
|
const open = this.isOpen();
|
|
4210
4217
|
if (open)
|