@watermarkinsights/ripple 4.1.0-1 → 4.1.0-4
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/dist/cjs/{chartFunctions-dae496d3.js → chartFunctions-40836feb.js} +2 -2
- package/dist/cjs/{functions-4a9309de.js → functions-09a01c96.js} +40 -24
- package/dist/{esm/global-c083cac3.js → cjs/global-b46bb506.js} +13 -3
- package/dist/cjs/{index-670c5d2a.js → index-fae02cd7.js} +386 -8
- package/dist/cjs/{intl-4645e971.js → intl-2d676927.js} +1 -1
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/priv-chart-popover.cjs.entry.js +2 -2
- package/dist/cjs/priv-datepicker.cjs.entry.js +2 -2
- package/dist/cjs/priv-navigator-button.cjs.entry.js +1 -1
- package/dist/cjs/priv-navigator-item.cjs.entry.js +1 -1
- package/dist/cjs/ripple.cjs.js +3 -3
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +29 -31
- package/dist/cjs/wm-button.cjs.entry.js +2 -2
- package/dist/cjs/wm-chart-slice.cjs.entry.js +1 -1
- package/dist/cjs/wm-chart.cjs.entry.js +4 -4
- package/dist/cjs/wm-datepicker.cjs.entry.js +2 -2
- package/dist/cjs/wm-file-list.cjs.entry.js +1 -1
- package/dist/cjs/wm-file.cjs.entry.js +2 -2
- package/dist/cjs/wm-input.cjs.entry.js +3 -3
- package/dist/cjs/wm-line-chart.cjs.entry.js +4 -4
- package/dist/cjs/wm-modal-footer.cjs.entry.js +13 -16
- package/dist/cjs/wm-modal-header.cjs.entry.js +8 -18
- package/dist/cjs/wm-modal.cjs.entry.js +23 -49
- package/dist/cjs/wm-navigation_3.cjs.entry.js +3 -3
- package/dist/cjs/wm-navigator.cjs.entry.js +2 -2
- package/dist/cjs/wm-option_2.cjs.entry.js +28 -25
- package/dist/cjs/wm-pagination.cjs.entry.js +2 -2
- package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +3 -3
- package/dist/cjs/wm-search.cjs.entry.js +3 -3
- package/dist/cjs/wm-snackbar.cjs.entry.js +3 -3
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +2 -2
- package/dist/cjs/wm-tag-input.cjs.entry.js +3 -3
- package/dist/cjs/wm-tag-option.cjs.entry.js +2 -2
- package/dist/cjs/wm-timepicker.cjs.entry.js +2 -2
- package/dist/cjs/wm-toggletip.cjs.entry.js +2 -2
- package/dist/cjs/wm-uploader.cjs.entry.js +3 -3
- package/dist/cjs/wm-wrapper.cjs.entry.js +1 -1
- package/dist/collection/components/wm-action-menu/wm-action-menu.js +28 -30
- package/dist/collection/components/wm-action-menu/wm-action-menu.spec.js +2 -2
- package/dist/collection/components/wm-modal/wm-modal-footer.css +1 -1
- package/dist/collection/components/wm-modal/wm-modal-footer.js +11 -14
- package/dist/collection/components/wm-modal/wm-modal-header.css +1 -1
- package/dist/collection/components/wm-modal/wm-modal-header.js +4 -14
- package/dist/collection/components/wm-modal/wm-modal.css +27 -65
- package/dist/collection/components/wm-modal/wm-modal.js +21 -54
- package/dist/collection/components/wm-modal/wm-modal.spec.js +2 -2
- package/dist/collection/components/wm-option/wm-option.js +1 -4
- package/dist/collection/components/wm-select/wm-select.js +24 -18
- package/dist/collection/global/functions.js +40 -24
- package/dist/collection/global/global.js +10 -2
- package/dist/esm/{chartFunctions-bb9cd8fd.js → chartFunctions-8990fbfa.js} +2 -2
- package/dist/esm/{functions-80872df1.js → functions-cbc025be.js} +41 -25
- package/dist/{cjs/global-6bc9dd34.js → esm/global-f8b0065a.js} +11 -5
- package/dist/esm/{index-294d486f.js → index-7e11ea42.js} +386 -8
- package/dist/esm/{intl-d2968995.js → intl-0d16c092.js} +1 -1
- package/dist/esm/loader.js +4 -4
- package/dist/esm/priv-chart-popover.entry.js +2 -2
- package/dist/esm/priv-datepicker.entry.js +2 -2
- package/dist/esm/priv-navigator-button.entry.js +1 -1
- package/dist/esm/priv-navigator-item.entry.js +1 -1
- package/dist/esm/ripple.js +4 -4
- package/dist/esm/wm-action-menu_2.entry.js +29 -31
- package/dist/esm/wm-button.entry.js +2 -2
- package/dist/esm/wm-chart-slice.entry.js +1 -1
- package/dist/esm/wm-chart.entry.js +4 -4
- package/dist/esm/wm-datepicker.entry.js +2 -2
- package/dist/esm/wm-file-list.entry.js +1 -1
- package/dist/esm/wm-file.entry.js +2 -2
- package/dist/esm/wm-input.entry.js +3 -3
- package/dist/esm/wm-line-chart.entry.js +4 -4
- package/dist/esm/wm-modal-footer.entry.js +13 -16
- package/dist/esm/wm-modal-header.entry.js +8 -18
- package/dist/esm/wm-modal.entry.js +23 -49
- package/dist/esm/wm-navigation_3.entry.js +3 -3
- package/dist/esm/wm-navigator.entry.js +2 -2
- package/dist/esm/wm-option_2.entry.js +28 -25
- package/dist/esm/wm-pagination.entry.js +2 -2
- package/dist/esm/wm-progress-indicator_3.entry.js +3 -3
- package/dist/esm/wm-search.entry.js +3 -3
- package/dist/esm/wm-snackbar.entry.js +3 -3
- package/dist/esm/wm-tab-item_3.entry.js +2 -2
- package/dist/esm/wm-tag-input.entry.js +3 -3
- package/dist/esm/wm-tag-option.entry.js +2 -2
- package/dist/esm/wm-timepicker.entry.js +2 -2
- package/dist/esm/wm-toggletip.entry.js +2 -2
- package/dist/esm/wm-uploader.entry.js +3 -3
- package/dist/esm/wm-wrapper.entry.js +1 -1
- package/dist/esm-es5/{chartFunctions-bb9cd8fd.js → chartFunctions-8990fbfa.js} +1 -1
- package/dist/esm-es5/{functions-80872df1.js → functions-cbc025be.js} +1 -1
- package/dist/esm-es5/{global-c083cac3.js → global-f8b0065a.js} +1 -1
- package/dist/esm-es5/index-7e11ea42.js +2 -0
- package/dist/esm-es5/{intl-d2968995.js → intl-0d16c092.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/priv-chart-popover.entry.js +1 -1
- package/dist/esm-es5/priv-datepicker.entry.js +1 -1
- package/dist/esm-es5/priv-navigator-button.entry.js +1 -1
- package/dist/esm-es5/priv-navigator-item.entry.js +1 -1
- package/dist/esm-es5/ripple.js +1 -1
- package/dist/esm-es5/wm-action-menu_2.entry.js +1 -1
- package/dist/esm-es5/wm-button.entry.js +1 -1
- package/dist/esm-es5/wm-chart-slice.entry.js +1 -1
- package/dist/esm-es5/wm-chart.entry.js +1 -1
- package/dist/esm-es5/wm-datepicker.entry.js +1 -1
- package/dist/esm-es5/wm-file-list.entry.js +1 -1
- package/dist/esm-es5/wm-file.entry.js +1 -1
- package/dist/esm-es5/wm-input.entry.js +1 -1
- package/dist/esm-es5/wm-line-chart.entry.js +1 -1
- package/dist/esm-es5/wm-modal-footer.entry.js +1 -1
- package/dist/esm-es5/wm-modal-header.entry.js +1 -1
- package/dist/esm-es5/wm-modal.entry.js +1 -1
- package/dist/esm-es5/wm-navigation_3.entry.js +1 -1
- package/dist/esm-es5/wm-navigator.entry.js +1 -1
- package/dist/esm-es5/wm-option_2.entry.js +1 -1
- package/dist/esm-es5/wm-pagination.entry.js +1 -1
- package/dist/esm-es5/wm-progress-indicator_3.entry.js +1 -1
- package/dist/esm-es5/wm-search.entry.js +1 -1
- package/dist/esm-es5/wm-snackbar.entry.js +1 -1
- package/dist/esm-es5/wm-tab-item_3.entry.js +1 -1
- package/dist/esm-es5/wm-tag-input.entry.js +1 -1
- package/dist/esm-es5/wm-tag-option.entry.js +1 -1
- package/dist/esm-es5/wm-timepicker.entry.js +1 -1
- package/dist/esm-es5/wm-toggletip.entry.js +1 -1
- package/dist/esm-es5/wm-uploader.entry.js +1 -1
- package/dist/esm-es5/wm-wrapper.entry.js +1 -1
- package/dist/ripple/{p-5f47be02.entry.js → p-00dbbf66.entry.js} +1 -1
- package/dist/ripple/p-02cb16bf.system.entry.js +1 -0
- package/dist/ripple/p-0631be01.system.entry.js +1 -0
- package/dist/ripple/{p-15eae24e.system.entry.js → p-06bfd8de.system.entry.js} +1 -1
- package/dist/ripple/{p-ede367f5.js → p-0aab03b4.js} +1 -1
- package/dist/ripple/p-0d4fe666.entry.js +1 -0
- package/dist/ripple/{p-5e109597.entry.js → p-0d9f70ab.entry.js} +1 -1
- package/dist/ripple/{p-8f974e99.system.entry.js → p-0fbb1b90.system.entry.js} +1 -1
- package/dist/ripple/p-11975f3e.entry.js +1 -0
- package/dist/ripple/{p-d0150c81.system.entry.js → p-15fe0903.system.entry.js} +1 -1
- package/dist/ripple/{p-e9d8dac8.system.entry.js → p-16363e1c.system.entry.js} +1 -1
- package/dist/ripple/{p-42cd9ae6.entry.js → p-19773c40.entry.js} +1 -1
- package/dist/ripple/{p-187869bd.system.js → p-2540ae8b.system.js} +1 -1
- package/dist/ripple/p-26de394c.system.entry.js +1 -0
- package/dist/ripple/p-271e783e.entry.js +1 -0
- package/dist/ripple/{p-13dd41c0.entry.js → p-2a0ae442.entry.js} +1 -1
- package/dist/ripple/{p-0fd75e0a.system.entry.js → p-2bd48a69.system.entry.js} +1 -1
- package/dist/ripple/{p-b21281af.system.js → p-2e3d779d.system.js} +1 -1
- package/dist/ripple/p-30bf24f8.system.js +2 -0
- package/dist/ripple/{p-a2d4f40f.system.entry.js → p-314b74f1.system.entry.js} +1 -1
- package/dist/ripple/{p-bde26da9.system.entry.js → p-3248c0fa.system.entry.js} +1 -1
- package/dist/ripple/{p-15f01d3f.js → p-38e37250.js} +1 -1
- package/dist/ripple/p-390ecafd.system.entry.js +1 -0
- package/dist/ripple/p-3c80bf67.entry.js +1 -0
- package/dist/ripple/p-434dc493.js +1 -0
- package/dist/ripple/{p-5a561e73.system.entry.js → p-43f2b5c9.system.entry.js} +1 -1
- package/dist/ripple/{p-a46d2365.system.entry.js → p-45733756.system.entry.js} +1 -1
- package/dist/ripple/{p-29659f12.entry.js → p-45cdfb45.entry.js} +1 -1
- package/dist/ripple/{p-b10891e7.entry.js → p-472a1223.entry.js} +1 -1
- package/dist/ripple/{p-b06f5434.system.js → p-48793820.system.js} +1 -1
- package/dist/ripple/{p-d1569c57.system.entry.js → p-4c38a310.system.entry.js} +1 -1
- package/dist/ripple/{p-27007c4f.entry.js → p-56b60d33.entry.js} +1 -1
- package/dist/ripple/{p-0412d22d.system.entry.js → p-56d64283.system.entry.js} +1 -1
- package/dist/ripple/{p-6a1aa577.entry.js → p-580a2ae4.entry.js} +1 -1
- package/dist/ripple/{p-3543dead.entry.js → p-676b24f0.entry.js} +1 -1
- package/dist/ripple/{p-6905173a.system.entry.js → p-67daaac5.system.entry.js} +1 -1
- package/dist/ripple/{p-f174229b.system.entry.js → p-6d211c4d.system.entry.js} +1 -1
- package/dist/ripple/{p-115a0964.system.entry.js → p-74ee07f0.system.entry.js} +1 -1
- package/dist/ripple/{p-a3a075c6.entry.js → p-751414e8.entry.js} +1 -1
- package/dist/ripple/{p-fcbd4194.entry.js → p-7962f562.entry.js} +1 -1
- package/dist/ripple/{p-96ef81b7.system.entry.js → p-803bf5a5.system.entry.js} +1 -1
- package/dist/ripple/{p-61bc3783.system.entry.js → p-80b65f8b.system.entry.js} +1 -1
- package/dist/ripple/{p-c8bd5da0.entry.js → p-81022baf.entry.js} +1 -1
- package/dist/ripple/{p-0ac25bc9.system.entry.js → p-83e25702.system.entry.js} +1 -1
- package/dist/ripple/{p-45cbb1f7.system.entry.js → p-8b3771c0.system.entry.js} +1 -1
- package/dist/ripple/{p-168672ed.entry.js → p-8b7f6ebf.entry.js} +1 -1
- package/dist/ripple/p-8e254df6.system.entry.js +1 -0
- package/dist/ripple/p-8ea68cb3.system.entry.js +1 -0
- package/dist/ripple/{p-0ba70685.entry.js → p-965a7bf6.entry.js} +1 -1
- package/dist/ripple/{p-6cc52a23.system.entry.js → p-a1e95b05.system.entry.js} +1 -1
- package/dist/ripple/{p-38b67301.entry.js → p-a52c5a1c.entry.js} +1 -1
- package/dist/ripple/p-b5bedd63.js +2 -0
- package/dist/ripple/{p-998ca617.system.entry.js → p-c0532c44.system.entry.js} +1 -1
- package/dist/ripple/{p-79f1b9a0.entry.js → p-c15c975c.entry.js} +1 -1
- package/dist/ripple/{p-ce6b4cbf.entry.js → p-c1e2591b.entry.js} +1 -1
- package/dist/ripple/{p-9343251e.system.js → p-c495eb61.system.js} +1 -1
- package/dist/ripple/{p-f0889fa7.entry.js → p-c499988f.entry.js} +1 -1
- package/dist/ripple/p-cd02a0f3.system.js +1 -0
- package/dist/ripple/p-cf0e97f6.entry.js +1 -0
- package/dist/ripple/{p-1cfd0049.entry.js → p-d3854674.entry.js} +1 -1
- package/dist/ripple/{p-5fd6e4be.entry.js → p-d7203349.entry.js} +1 -1
- package/dist/ripple/{p-efbc98c4.system.entry.js → p-d8e5daf4.system.entry.js} +1 -1
- package/dist/ripple/{p-3f4486b7.entry.js → p-d901268a.entry.js} +1 -1
- package/dist/ripple/{p-4f259603.entry.js → p-da112919.entry.js} +1 -1
- package/dist/ripple/{p-84d97620.entry.js → p-dd9498a6.entry.js} +1 -1
- package/dist/ripple/p-deb4f5a2.entry.js +1 -0
- package/dist/ripple/p-e04fcfb1.js +1 -0
- package/dist/ripple/{p-45661d23.system.entry.js → p-efcb8569.system.entry.js} +1 -1
- package/dist/ripple/p-f51ff355.entry.js +1 -0
- package/dist/ripple/{p-886b3b7a.system.entry.js → p-f994ec85.system.entry.js} +1 -1
- package/dist/ripple/{p-379ee49a.system.entry.js → p-fe635820.system.entry.js} +1 -1
- package/dist/ripple/ripple.esm.js +1 -1
- package/dist/ripple/ripple.js +1 -1
- package/dist/types/components/wm-action-menu/wm-action-menu.d.ts +1 -2
- package/dist/types/components/wm-modal/wm-modal-footer.d.ts +0 -1
- package/dist/types/components/wm-modal/wm-modal-header.d.ts +0 -1
- package/dist/types/components/wm-modal/wm-modal.d.ts +3 -9
- package/package.json +1 -1
- package/dist/esm-es5/index-294d486f.js +0 -2
- package/dist/ripple/p-04130927.entry.js +0 -1
- package/dist/ripple/p-0d485759.entry.js +0 -1
- package/dist/ripple/p-11b416c7.js +0 -2
- package/dist/ripple/p-1d29a41a.system.js +0 -1
- package/dist/ripple/p-2b59a09f.entry.js +0 -1
- package/dist/ripple/p-38b4f6f7.system.entry.js +0 -1
- package/dist/ripple/p-3a7e195f.entry.js +0 -1
- package/dist/ripple/p-4f1e2135.entry.js +0 -1
- package/dist/ripple/p-611e49c1.system.entry.js +0 -1
- package/dist/ripple/p-66f5d3e2.system.entry.js +0 -1
- package/dist/ripple/p-8c6ffd70.system.entry.js +0 -1
- package/dist/ripple/p-9010302f.system.entry.js +0 -1
- package/dist/ripple/p-9514c204.entry.js +0 -1
- package/dist/ripple/p-af5e46dd.entry.js +0 -1
- package/dist/ripple/p-c467a1e1.system.js +0 -2
- package/dist/ripple/p-c5942ad6.system.entry.js +0 -1
- package/dist/ripple/p-d21c139c.js +0 -1
- package/dist/ripple/p-dd8ea495.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
4
|
-
const functions = require('./functions-
|
|
3
|
+
const index = require('./index-fae02cd7.js');
|
|
4
|
+
const functions = require('./functions-09a01c96.js');
|
|
5
5
|
|
|
6
6
|
const colors = {
|
|
7
7
|
salmon: "#ff5f4e",
|
|
@@ -7833,30 +7833,46 @@ function adjustTooltipPlacement(placement, anchorEl, tooltipHeight, tooltipWidth
|
|
|
7833
7833
|
return placement;
|
|
7834
7834
|
}
|
|
7835
7835
|
function showTooltip(placement, anchorEl, tooltipText) {
|
|
7836
|
-
|
|
7837
|
-
|
|
7838
|
-
|
|
7839
|
-
|
|
7840
|
-
|
|
7841
|
-
tooltipEl.
|
|
7842
|
-
|
|
7843
|
-
|
|
7844
|
-
|
|
7845
|
-
tooltipEl.classList.
|
|
7846
|
-
tooltipEl.
|
|
7847
|
-
|
|
7848
|
-
|
|
7849
|
-
|
|
7850
|
-
|
|
7851
|
-
|
|
7852
|
-
|
|
7853
|
-
|
|
7854
|
-
|
|
7855
|
-
|
|
7836
|
+
// until popover is supported by firefox, we have to check for and position additional tooltip rendered within the modal's dialog element
|
|
7837
|
+
// this additional tooltip is only rendered in browsers that do not support popover
|
|
7838
|
+
const tooltipEls = document.querySelectorAll(".wm-tooltip");
|
|
7839
|
+
tooltipEls.forEach((tooltipEl) => {
|
|
7840
|
+
//@ts-ignore
|
|
7841
|
+
if (!!tooltipEl.showPopover) {
|
|
7842
|
+
//@ts-ignore
|
|
7843
|
+
tooltipEl.showPopover();
|
|
7844
|
+
}
|
|
7845
|
+
tooltipEl.classList.add("show");
|
|
7846
|
+
tooltipEl.textContent = tooltipText;
|
|
7847
|
+
// tooltip only has a maxWidth if it contains whitespace and can break
|
|
7848
|
+
const hasNoWhitespace = tooltipText.match(/^[^\s]+$/);
|
|
7849
|
+
if (hasNoWhitespace) {
|
|
7850
|
+
tooltipEl.classList.add("single-word");
|
|
7851
|
+
tooltipEl.style.setProperty("--wmTooltipMaxWidth", "none");
|
|
7852
|
+
}
|
|
7853
|
+
else {
|
|
7854
|
+
tooltipEl.classList.remove("single-word");
|
|
7855
|
+
tooltipEl.style.removeProperty("--wmTooltipMaxWidth");
|
|
7856
|
+
}
|
|
7857
|
+
const tooltipRect = tooltipEl.getBoundingClientRect();
|
|
7858
|
+
const anchorRect = anchorEl.getBoundingClientRect();
|
|
7859
|
+
const adjustedPlacement = adjustTooltipPlacement(placement, anchorEl, tooltipRect.height, tooltipRect.width);
|
|
7860
|
+
let verticalPos, horizontalPos;
|
|
7861
|
+
[verticalPos, horizontalPos] = positionTooltip(adjustedPlacement, anchorRect, tooltipRect.height, tooltipRect.width);
|
|
7862
|
+
tooltipEl.style.setProperty("--wmTooltipTop", verticalPos + "px");
|
|
7863
|
+
tooltipEl.style.setProperty("--wmTooltipLeft", horizontalPos + "px");
|
|
7864
|
+
});
|
|
7856
7865
|
}
|
|
7857
7866
|
function hideTooltip() {
|
|
7858
|
-
const
|
|
7859
|
-
|
|
7867
|
+
const tooltipEls = document.querySelectorAll(".wm-tooltip");
|
|
7868
|
+
tooltipEls.forEach((tooltipEl) => {
|
|
7869
|
+
//@ts-ignore
|
|
7870
|
+
if (!!tooltipEl.hidePopover) {
|
|
7871
|
+
//@ts-ignore
|
|
7872
|
+
tooltipEl.hidePopover();
|
|
7873
|
+
}
|
|
7874
|
+
tooltipEl.classList.remove("show");
|
|
7875
|
+
});
|
|
7860
7876
|
}
|
|
7861
7877
|
function positionTooltip(placement, anchorRect, tooltipHeight, tooltipWidth) {
|
|
7862
7878
|
// to get the center positions, calculate the difference between the button width and the tooltip width
|
|
@@ -8060,7 +8076,7 @@ function findPrev(list, item, loop = false) {
|
|
|
8060
8076
|
if (!!list && !item)
|
|
8061
8077
|
return list[list.length - 1]; // if list was passed but no item, get the last item
|
|
8062
8078
|
if (!list.includes(item))
|
|
8063
|
-
return; // if list is empty or doesn't include item
|
|
8079
|
+
return; // if list is empty or doesn't include item
|
|
8064
8080
|
let current = list.indexOf(item);
|
|
8065
8081
|
let beforeFirst = loop ? list.length - 1 : 0; // before first item can be first (hard stop) or back to last
|
|
8066
8082
|
let prev = current > 0 ? current - 1 : beforeFirst;
|
|
@@ -8070,7 +8086,7 @@ function findNext(list, item, loop = false) {
|
|
|
8070
8086
|
if (!!list && !item)
|
|
8071
8087
|
return list[0]; // if list was passed but no item, get the first item
|
|
8072
8088
|
if (!list.includes(item))
|
|
8073
|
-
return; // if list is empty or doesn't include item
|
|
8089
|
+
return; // if list is empty or doesn't include item
|
|
8074
8090
|
let current = list.indexOf(item);
|
|
8075
8091
|
const last = list.length - 1;
|
|
8076
8092
|
let afterLast = loop ? 0 : last; // after last item can be last (hard stop) or back to first
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const version = "4.1.0-4";
|
|
2
4
|
|
|
3
5
|
function injectDefaultTheme() {
|
|
4
6
|
const style = `
|
|
@@ -278,10 +280,12 @@ const tooltipContainer = document.createElement("div");
|
|
|
278
280
|
tooltipContainer.id = "wm-tooltip-container";
|
|
279
281
|
const tooltipEl = document.createElement("div");
|
|
280
282
|
tooltipEl.id = "wm-tooltip";
|
|
283
|
+
tooltipEl.classList.add("wm-tooltip");
|
|
284
|
+
tooltipEl.setAttribute("popover", "manual");
|
|
281
285
|
tooltipEl.setAttribute("aria-hidden", "true");
|
|
282
286
|
const tooltipStyles = document.createElement("style");
|
|
283
287
|
tooltipStyles.textContent = `
|
|
284
|
-
|
|
288
|
+
.wm-tooltip {
|
|
285
289
|
position: fixed;
|
|
286
290
|
overflow: hidden;
|
|
287
291
|
pointer-events: none;
|
|
@@ -299,14 +303,20 @@ tooltipStyles.textContent = `
|
|
|
299
303
|
transition-property: opacity;
|
|
300
304
|
transition-delay: 0s;
|
|
301
305
|
opacity: 0;
|
|
306
|
+
inset: unset;
|
|
302
307
|
top: 0;
|
|
303
308
|
left: 0;
|
|
304
309
|
transform: translateZ(0);
|
|
305
310
|
will-change: transform;
|
|
306
311
|
transform: translate(var(--wmTooltipLeft), var(--wmTooltipTop));
|
|
312
|
+
border: none;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.wm-tooltip:popover-open {
|
|
316
|
+
opacity: 0;
|
|
307
317
|
}
|
|
308
318
|
|
|
309
|
-
|
|
319
|
+
.wm-tooltip.show {
|
|
310
320
|
transition-delay: 500ms;
|
|
311
321
|
opacity: 1;
|
|
312
322
|
}
|