@dotglitch/ngx-common 1.0.12 → 1.0.13
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.
- package/directives/tooltip.directive.d.ts +1 -1
- package/esm2020/directives/tooltip.directive.mjs +4 -2
- package/fesm2015/dotglitch-ngx-common.mjs +3 -1
- package/fesm2015/dotglitch-ngx-common.mjs.map +1 -1
- package/fesm2020/dotglitch-ngx-common.mjs +3 -1
- package/fesm2020/dotglitch-ngx-common.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -368,13 +368,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
368
368
|
args: ['pointerleave', ['$event']]
|
|
369
369
|
}] } });
|
|
370
370
|
// Helper to open the context menu without using the directive.
|
|
371
|
-
const openTooltip = async (dialog, template, data, el, config) => {
|
|
371
|
+
const openTooltip = async (dialog, template, data, el, config, focusTrap = false) => {
|
|
372
372
|
const rect = await calcTooltipBounds(template, data);
|
|
373
373
|
const ownerCords = el.getBoundingClientRect();
|
|
374
374
|
const cords = getPosition(el, config, rect);
|
|
375
375
|
const specificId = crypto.randomUUID();
|
|
376
376
|
return new Promise(res => {
|
|
377
377
|
dialog.open(TooltipComponent, {
|
|
378
|
+
autoFocus: focusTrap,
|
|
379
|
+
restoreFocus: focusTrap,
|
|
378
380
|
data: {
|
|
379
381
|
data: data,
|
|
380
382
|
template: template,
|