@ganpatiinfo/gids-core-web 13.0.0 → 14.0.0
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/css/index.css +912 -56
- package/dist/css/index.css.map +1 -1
- package/dist/gids-action-bar.js +1 -1
- package/dist/gids-activity-gauge.js +1 -1
- package/dist/gids-advanced-tooltip.d.ts +11 -0
- package/dist/gids-advanced-tooltip.js +1 -0
- package/dist/gids-bar-chart.js +1 -1
- package/dist/gids-calendar-header-panel.js +1 -1
- package/dist/gids-calendar-month-list.js +1 -1
- package/dist/gids-calendar-year-list.js +1 -1
- package/dist/gids-calendar.js +1 -1
- package/dist/gids-chart-legend-item.js +1 -1
- package/dist/gids-chart-legend.js +1 -1
- package/dist/gids-chart.js +1 -1
- package/dist/gids-chevron-button.js +1 -1
- package/dist/gids-dot.js +1 -1
- package/dist/gids-dropdown-field.js +1 -1
- package/dist/gids-dropdown-picker.js +1 -1
- package/dist/gids-dropdown.js +1 -1
- package/dist/gids-expansion-body-list-item.js +1 -1
- package/dist/gids-expansion-body-list.js +1 -1
- package/dist/gids-expansion-group.js +1 -1
- package/dist/gids-expansion.js +1 -1
- package/dist/gids-field.js +1 -1
- package/dist/gids-filter.js +1 -1
- package/dist/gids-icon.js +1 -1
- package/dist/gids-input.js +1 -1
- package/dist/gids-line-chart.js +1 -1
- package/dist/gids-md-table.js +1 -1
- package/dist/gids-overflow-container.js +1 -1
- package/dist/gids-overlay-provider.js +1 -1
- package/dist/gids-password-field.js +1 -1
- package/dist/gids-pie-chart.js +1 -1
- package/dist/gids-popover.js +1 -1
- package/dist/gids-scrim.js +1 -1
- package/dist/gids-tab-item.js +1 -1
- package/dist/gids-tab.js +1 -1
- package/dist/gids-text-field.js +1 -1
- package/dist/gids-toggle-button.js +1 -1
- package/dist/gids-tooltip.js +1 -1
- package/dist/{p-pSb81aE0.js → p-1fMG8D4t.js} +1 -1
- package/dist/p-BBszCFSA.js +1 -0
- package/dist/p-BKcvOO8o.js +1 -0
- package/dist/p-BV0jg2ix.js +1 -0
- package/dist/p-BVA1LAFM.js +1 -0
- package/dist/p-BYt-9DKT.js +1 -0
- package/dist/{p-C3We7Q8Q.js → p-Bab1qxsC.js} +1 -1
- package/dist/{p-C3w3wdCt.js → p-Bh8qYmAS.js} +1 -1
- package/dist/{p-BSbOhfLZ.js → p-BzzDNTlP.js} +1 -1
- package/dist/{p-C2O_pGky.js → p-CU5JIcEp.js} +1 -1
- package/dist/{p-Chqeexny.js → p-C_RW9IFo.js} +1 -1
- package/dist/{p-ub0GuVHb.js → p-CatvDz2b.js} +1 -1
- package/dist/{p-BVAtja26.js → p-CnVmK0dH.js} +1 -1
- package/dist/p-D5DRatg0.js +1 -0
- package/dist/{p-6APCjBEI.js → p-DAnkY5ik.js} +1 -1
- package/dist/p-DMVCMnTe.js +1 -0
- package/dist/p-DUUxlY-K.js +1 -0
- package/dist/{p-COHuQEfZ.js → p-Dan1sCNk.js} +1 -1
- package/dist/{p-BCVFQSjK.js → p-DslOQITw.js} +1 -1
- package/dist/{p-DUojHltk.js → p-_HwuS8vK.js} +1 -1
- package/dist/{p-4lN1OdcA.js → p-jzl-rPxB.js} +1 -1
- package/dist/types/components/html/GidsBasicTableBody/GidsBasicTableBody.d.ts +28 -4
- package/dist/types/components/html/GidsBasicTableHead/GidsBasicTableHead.d.ts +15 -0
- package/dist/types/components/html/GidsBasicTableHeader/GidsBasicTableHeader.d.ts +22 -3
- package/dist/types/components/html/GidsBasicTableRow/GidsBasicTableRow.d.ts +19 -3
- package/dist/types/components/html/GidsBsTable/GidsBsTable.d.ts +26 -3
- package/dist/types/components/html/GidsColorSwatch/GidsColorSwatch.d.ts +6 -0
- package/dist/types/components/html/GidsMatrixTable/GidsMatrixTable.d.ts +11 -0
- package/dist/types/components/html/GidsMatrixTableBody/GidsMatrixTableBody.d.ts +11 -0
- package/dist/types/components/html/GidsPagination/GidsPagination.d.ts +10 -0
- package/dist/types/components/html/GidsPaginator/GidsPaginator.d.ts +6 -0
- package/dist/types/components/html/GidsPaginatorItem/GidsPaginatorItem.d.ts +7 -0
- package/dist/types/components/html/GidsTable/GidsTable.d.ts +16 -0
- package/dist/types/components/html/GidsTableBody/GidsTableBody.d.ts +11 -0
- package/dist/types/components/html/GidsTableCell/GidsTableCell.d.ts +21 -0
- package/dist/types/components/html/GidsTableEntry/GidsTableEntry.d.ts +9 -0
- package/dist/types/components/html/GidsTableFooter/GidsTableFooter.d.ts +12 -0
- package/dist/types/components/html/GidsTableFooterControl/GidsTableFooterControl.d.ts +8 -0
- package/dist/types/components/html/GidsTableHeader/GidsTableHeader.d.ts +9 -0
- package/dist/types/components/html/GidsTableRow/GidsTableRow.d.ts +9 -0
- package/dist/types/components/html/GidsTableToolbar/GidsTableToolbar.d.ts +11 -0
- package/dist/types/components/html/_GidsPaginationItem/GidsPaginationItem.d.ts +10 -0
- package/dist/types/components/webComponents/GidsAdvancedTooltip/GidsAdvancedTooltip.d.ts +28 -0
- package/dist/types/components/webComponents/GidsBarChart/GidsBarChart.d.ts +7 -0
- package/dist/types/components/webComponents/GidsChartLegendItem/GidsChartLegendItem.d.ts +7 -0
- package/dist/types/components/webComponents/GidsLineChart/GidsLineChart.d.ts +7 -0
- package/dist/types/components/webComponents/GidsMdTable/GidsMdTable.d.ts +12 -9
- package/dist/types/components.d.ts +114 -17
- package/dist-bundled/es/gids-action-bar.js +3 -3
- package/dist-bundled/es/gids-activity-gauge.js +4 -4
- package/dist-bundled/es/gids-advanced-tooltip.js +6 -0
- package/dist-bundled/es/gids-bar-chart.js +1 -1
- package/dist-bundled/es/gids-calendar-header-panel.js +3 -3
- package/dist-bundled/es/gids-calendar-month-list.js +3 -3
- package/dist-bundled/es/gids-calendar-year-list.js +4 -4
- package/dist-bundled/es/gids-calendar.js +23 -23
- package/dist-bundled/es/gids-chart-legend-item.js +4 -4
- package/dist-bundled/es/gids-chart-legend.js +4 -4
- package/dist-bundled/es/gids-chart.js +38 -34
- package/dist-bundled/es/gids-chevron-button.js +7 -7
- package/dist-bundled/es/gids-dot.js +1 -1
- package/dist-bundled/es/gids-dropdown-field.js +6 -6
- package/dist-bundled/es/gids-dropdown-picker.js +2 -2
- package/dist-bundled/es/gids-dropdown.js +3 -3
- package/dist-bundled/es/gids-expansion-body-list-item.js +3 -3
- package/dist-bundled/es/gids-expansion-body-list.js +2 -2
- package/dist-bundled/es/gids-expansion-group.js +13 -13
- package/dist-bundled/es/gids-expansion.js +6 -6
- package/dist-bundled/es/gids-field.js +3 -3
- package/dist-bundled/es/gids-filter.js +4 -4
- package/dist-bundled/es/gids-icon.js +1 -1
- package/dist-bundled/es/gids-input.js +4 -4
- package/dist-bundled/es/gids-line-chart.js +1 -1
- package/dist-bundled/es/gids-md-table.js +121 -88
- package/dist-bundled/es/gids-overflow-container.js +1 -1
- package/dist-bundled/es/gids-overlay-provider.js +1 -1
- package/dist-bundled/es/gids-password-field.js +9 -9
- package/dist-bundled/es/gids-pie-chart.js +4 -4
- package/dist-bundled/es/gids-popover.js +2 -2
- package/dist-bundled/es/gids-scrim.js +7 -7
- package/dist-bundled/es/gids-tab-item.js +1 -1
- package/dist-bundled/es/gids-tab.js +1 -1
- package/dist-bundled/es/gids-text-field.js +9 -9
- package/dist-bundled/es/gids-toggle-button.js +1 -1
- package/dist-bundled/es/gids-tooltip.js +2 -2
- package/dist-bundled/es/{p-pSb81aE0-WzAszFOQ.js → p-1fMG8D4t-CIEDM74u.js} +2 -2
- package/dist-bundled/es/p-BBszCFSA-BN0-eWJX.js +115 -0
- package/dist-bundled/es/p-BKcvOO8o-L5KtCP_k.js +1024 -0
- package/dist-bundled/es/{p-C3xv7tfs-DHsjc3Ns.js → p-BV0jg2ix-DI0fZl_6.js} +15 -12
- package/dist-bundled/es/p-BVA1LAFM-DdsY_n8R.js +129 -0
- package/dist-bundled/es/{p-CI-sN9Lr-BvWzRJw-.js → p-BYt-9DKT-DByyhIUd.js} +13 -13
- package/dist-bundled/es/{p-C3We7Q8Q-2EoDLj5m.js → p-Bab1qxsC-BMbD0lEy.js} +2 -2
- package/dist-bundled/es/{p-C3w3wdCt-BTH-jYlI.js → p-Bh8qYmAS-DhSpwB20.js} +4 -4
- package/dist-bundled/es/{p-BSbOhfLZ-BdEHhmFM.js → p-BzzDNTlP-BkSyrafk.js} +8 -8
- package/dist-bundled/es/{p-C2O_pGky-CP4PN55D.js → p-CU5JIcEp-CuVpd-eZ.js} +10 -10
- package/dist-bundled/es/{p-Chqeexny-BuJ-PhNi.js → p-C_RW9IFo-DNQqJS8t.js} +5 -5
- package/dist-bundled/es/{p-ub0GuVHb-C9vrhXyF.js → p-CatvDz2b-C-Hlv2Xb.js} +9 -9
- package/dist-bundled/es/{p-BVAtja26-C16IjShX.js → p-CnVmK0dH-CbmnN-RR.js} +6 -6
- package/dist-bundled/es/{p-_SIWct9h-jMYFZ-VO.js → p-D5DRatg0-DtQL-DQg.js} +2 -2
- package/dist-bundled/es/{p-6APCjBEI-BREg63Xr.js → p-DAnkY5ik-ChPtRpOX.js} +5 -5
- package/dist-bundled/es/p-DMVCMnTe-D4eJKJsj.js +111 -0
- package/dist-bundled/es/p-DUUxlY-K-mypBhVt6.js +99 -0
- package/dist-bundled/es/{p-COHuQEfZ-DcUxD9TI.js → p-Dan1sCNk-mWcyyplK.js} +11 -11
- package/dist-bundled/es/{p-BCVFQSjK-CKrYrI4b.js → p-DslOQITw-BfwtLWqG.js} +7 -7
- package/dist-bundled/es/{p-DUojHltk-BQ0ryfLD.js → p-_HwuS8vK-C0w4T5rV.js} +2 -2
- package/dist-bundled/es/{p-4lN1OdcA-xYP8gbDc.js → p-jzl-rPxB-CC735zJp.js} +7 -7
- package/dist-bundled/umd/gids-action-bar.umd.js +2 -2
- package/dist-bundled/umd/gids-activity-gauge.umd.js +2 -2
- package/dist-bundled/umd/gids-advanced-tooltip.umd.js +5 -0
- package/dist-bundled/umd/gids-bar-chart.umd.js +8 -8
- package/dist-bundled/umd/gids-calendar-header-panel.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar-month-list.umd.js +2 -2
- package/dist-bundled/umd/gids-calendar-year-list.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar.umd.js +1 -1
- package/dist-bundled/umd/gids-chart-legend-item.umd.js +2 -2
- package/dist-bundled/umd/gids-chart-legend.umd.js +1 -1
- package/dist-bundled/umd/gids-chart.umd.js +5 -5
- package/dist-bundled/umd/gids-chevron-button.umd.js +1 -1
- package/dist-bundled/umd/gids-dot.umd.js +1 -1
- package/dist-bundled/umd/gids-dropdown-field.umd.js +1 -1
- package/dist-bundled/umd/gids-dropdown-picker.umd.js +1 -1
- package/dist-bundled/umd/gids-dropdown.umd.js +1 -1
- package/dist-bundled/umd/gids-expansion-body-list-item.umd.js +1 -1
- package/dist-bundled/umd/gids-expansion-body-list.umd.js +1 -1
- package/dist-bundled/umd/gids-expansion-group.umd.js +1 -1
- package/dist-bundled/umd/gids-expansion.umd.js +1 -1
- package/dist-bundled/umd/gids-field.umd.js +1 -1
- package/dist-bundled/umd/gids-filter.umd.js +2 -2
- package/dist-bundled/umd/gids-icon.umd.js +1 -1
- package/dist-bundled/umd/gids-input.umd.js +1 -1
- package/dist-bundled/umd/gids-line-chart.umd.js +2 -2
- package/dist-bundled/umd/gids-md-table.umd.js +2 -2
- package/dist-bundled/umd/gids-overflow-container.umd.js +1 -1
- package/dist-bundled/umd/gids-overlay-provider.umd.js +1 -1
- package/dist-bundled/umd/gids-password-field.umd.js +1 -1
- package/dist-bundled/umd/gids-pie-chart.umd.js +2 -2
- package/dist-bundled/umd/gids-popover.umd.js +2 -2
- package/dist-bundled/umd/gids-scrim.umd.js +1 -1
- package/dist-bundled/umd/gids-tab-item.umd.js +2 -2
- package/dist-bundled/umd/gids-tab.umd.js +1 -1
- package/dist-bundled/umd/gids-text-field.umd.js +1 -1
- package/dist-bundled/umd/gids-toggle-button.umd.js +2 -2
- package/dist-bundled/umd/gids-tooltip.umd.js +1 -1
- package/dist-bundled/umd-complete/gids-core-web.umd.js +8 -8
- package/package.json +17 -9
- package/dist/p-C3xv7tfs.js +0 -1
- package/dist/p-C56G7JRy.js +0 -1
- package/dist/p-CI-sN9Lr.js +0 -1
- package/dist/p-DO0MyFf4.js +0 -1
- package/dist/p-_SIWct9h.js +0 -1
- package/dist/p-a3JfEYJp.js +0 -1
- package/dist/types/components/html/GidsBasicTableCell/GidsBasicTableCell.d.ts +0 -5
- package/dist-bundled/es/p-C56G7JRy-BCGZG2-3.js +0 -88
- package/dist-bundled/es/p-DO0MyFf4-Ddg5sVMx.js +0 -115
- package/dist-bundled/es/p-a3JfEYJp-DyhDK6VZ.js +0 -1128
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { b as y, o as x, d as b, s as A, a as T, c as F, p as u, f as v } from "./p-BKcvOO8o-L5KtCP_k.js";
|
|
2
|
+
import { o as d } from "./p-B8kX8Vqv-trBz4jdS.js";
|
|
3
|
+
const l = class l {
|
|
4
|
+
constructor(t, e) {
|
|
5
|
+
this.el = t, this.config = e, this.offset = 10, this.timeDelayBeforeFadingOut = 50, this.popoverMainAxisEnabled = !0, this.currentPlacement = e.placement, this.cleanup = null;
|
|
6
|
+
}
|
|
7
|
+
setCommonTimingConfig() {
|
|
8
|
+
this.timeBeforeElementShows = this.config.showWithoutDelay ? 50 : 500, this.timeOfAnimation = this.config.showWithoutDelay ? 50 : 250;
|
|
9
|
+
}
|
|
10
|
+
initialize() {
|
|
11
|
+
this.setCommonTimingConfig(), this.floatingElement = this.el.shadowRoot?.querySelector(this.config.floatingElementSelector), this.floatingElement && this.applyViewportMaxWidth(), this.arrowEl = this.config.showArrow !== !1 && this.config.arrowElementSelector ? this.el.shadowRoot?.querySelector(this.config.arrowElementSelector) : null, this.anchorElement = this.config.htmlFor?.length > 0 ? document.getElementById(this.config.htmlFor) : this.config.getAnchorElementFromSlot(this.el.shadowRoot), this.anchorElement ? this.setupPositioning() : console.warn("Could not determine the element associated with this floating element." + (this.config.htmlFor?.length > 0 ? `Element with id=${this.config.htmlFor} could not be found on the DOM.` : ""));
|
|
12
|
+
}
|
|
13
|
+
getAnchorElement() {
|
|
14
|
+
return this.anchorElement;
|
|
15
|
+
}
|
|
16
|
+
updateConfig(t) {
|
|
17
|
+
this.config = { ...this.config, ...t }, "showWithoutDelay" in t && this.setCommonTimingConfig(), this.forceUpdate();
|
|
18
|
+
}
|
|
19
|
+
getConfig() {
|
|
20
|
+
return this.config;
|
|
21
|
+
}
|
|
22
|
+
getCurrentPlacement() {
|
|
23
|
+
return this.currentPlacement || this.config.placement;
|
|
24
|
+
}
|
|
25
|
+
reposition() {
|
|
26
|
+
this.forceUpdate();
|
|
27
|
+
}
|
|
28
|
+
forceUpdate() {
|
|
29
|
+
this.anchorElement && this.floatingElement && this.updatePosition();
|
|
30
|
+
}
|
|
31
|
+
setupPositioning() {
|
|
32
|
+
this.anchorElement && this.updatePosition();
|
|
33
|
+
}
|
|
34
|
+
setupAutoUpdate() {
|
|
35
|
+
!this.cleanup && this.anchorElement && (this.cleanup = y(this.anchorElement, this.floatingElement, (() => {
|
|
36
|
+
this.updatePosition();
|
|
37
|
+
}), { ancestorScroll: !0, ancestorResize: !1, elementResize: !0, layoutShift: !0, animationFrame: !1 }));
|
|
38
|
+
}
|
|
39
|
+
cleanupAutoUpdate() {
|
|
40
|
+
this.cleanup && (this.cleanup(), this.cleanup = null);
|
|
41
|
+
}
|
|
42
|
+
updatePosition() {
|
|
43
|
+
if (!this.anchorElement) return;
|
|
44
|
+
const t = [x(this.offset)], e = b({ mainAxis: !0, crossAxis: !this.config.lockToMainAxis && "alignment", fallbackAxisSideDirection: "end", padding: this.offset }), s = this.config.elementType === d.POPOVER, i = A({ padding: this.offset, mainAxis: this.config.elementType === d.TOOLTIP || s && this.popoverMainAxisEnabled, crossAxis: !1 });
|
|
45
|
+
this.config.placement.includes("-") ? t.push(e, i) : t.push(i, e), this.config.showArrow !== !1 && this.arrowEl && t.push(T({ element: this.arrowEl, padding: this.offset })), F(this.anchorElement, this.floatingElement, { placement: this.config.placement, strategy: "fixed", middleware: t, platform: { ...u, getOffsetParent: (n) => u.getOffsetParent(n, v) } }).then((({ x: n, y: a, middlewareData: h, placement: o }) => {
|
|
46
|
+
if (s) {
|
|
47
|
+
const f = o.startsWith("left") || o.startsWith("right"), r = o.startsWith("top") || o.startsWith("bottom"), m = this.isAnchorInViewport(), g = !!r || (f ? m : this.popoverMainAxisEnabled);
|
|
48
|
+
if (g !== this.popoverMainAxisEnabled) return this.popoverMainAxisEnabled = g, void this.updatePosition();
|
|
49
|
+
}
|
|
50
|
+
this.currentPlacement = o, Object.assign(this.floatingElement.style, { left: `${n}px`, top: `${a}px`, position: "fixed", transition: `opacity ${this.timeOfAnimation}ms ease` });
|
|
51
|
+
const c = o.split("-")[0] ?? "bottom", E = { top: "bottom", right: "left", bottom: "top", left: "right" }[c], { arrowZIndex: w } = this.normalizeFloatingElementStacking();
|
|
52
|
+
if (h.arrow && this.arrowEl) {
|
|
53
|
+
const f = this.arrowEl.offsetWidth, { x: r, y: m } = h.arrow;
|
|
54
|
+
this.arrowEl.style.borderRadius = `${["left", "right"].includes(c) ? "0 " : ""}var(--gidsFloatingElement-tip-border-radius, 2px)${["top", "bottom"].includes(c) ? " 0" : ""}`, Object.assign(this.arrowEl.style, { left: r !== null ? `${r}px` : "", top: m !== null ? `${m}px` : "", right: "", bottom: "", [E]: -f / 2 + "px", transform: "rotate(45deg)", zIndex: `${w}`, background: "var(--gidsFloatingElement-background)" });
|
|
55
|
+
}
|
|
56
|
+
}));
|
|
57
|
+
}
|
|
58
|
+
applyViewportMaxWidth() {
|
|
59
|
+
const t = `calc(100vw - ${2 * this.offset}px)`;
|
|
60
|
+
this.floatingElement?.style.maxWidth !== t && (this.floatingElement.style.maxWidth = t);
|
|
61
|
+
}
|
|
62
|
+
normalizeFloatingElementStacking() {
|
|
63
|
+
const t = this.floatingElement.style.zIndex || (window.getComputedStyle?.(this.floatingElement).zIndex ?? ""), e = Number.parseInt(t, 10), s = Number.isNaN(e) ? -1 : e - 1, i = Number.isNaN(e) ? s + 1 : e;
|
|
64
|
+
return Number.isNaN(i) || (this.floatingElement.style.zIndex = `${i}`), Array.from(this.floatingElement.children).forEach(((n) => {
|
|
65
|
+
if (!(n instanceof HTMLElement) || n === this.arrowEl) return;
|
|
66
|
+
const a = n.style.zIndex || (window.getComputedStyle?.(n).zIndex ?? ""), h = Number.parseInt(a, 10), o = window.getComputedStyle?.(n).position ?? "";
|
|
67
|
+
(a === "" || a === "auto" || Number.isNaN(h) || h < i) && (n.style.zIndex = `${i}`, o !== "" && o !== "static" || (n.style.position = "relative"));
|
|
68
|
+
})), { contentZIndex: i, arrowZIndex: s };
|
|
69
|
+
}
|
|
70
|
+
hideFloatingElement() {
|
|
71
|
+
this.floatingElement.classList.remove(this.config.visibilityClass), l.currentFloatingElements.delete(this.config.elementType);
|
|
72
|
+
}
|
|
73
|
+
showFloatingElement() {
|
|
74
|
+
const t = l.currentFloatingElements.get(this.config.elementType);
|
|
75
|
+
t && t.hideFloatingElement(), this.floatingElement.classList.add(this.config.visibilityClass), l.currentFloatingElements.set(this.config.elementType, this);
|
|
76
|
+
}
|
|
77
|
+
isVisible() {
|
|
78
|
+
return this.floatingElement.classList.contains(this.config.visibilityClass);
|
|
79
|
+
}
|
|
80
|
+
show() {
|
|
81
|
+
this.setupAutoUpdate(), this.showFloatingElement();
|
|
82
|
+
}
|
|
83
|
+
hide() {
|
|
84
|
+
this.cleanupAutoUpdate(), this.hideFloatingElement();
|
|
85
|
+
}
|
|
86
|
+
toggle() {
|
|
87
|
+
this.isVisible() ? this.hide() : this.show();
|
|
88
|
+
}
|
|
89
|
+
showAfterDelay() {
|
|
90
|
+
clearTimeout(this.hoverOutTimeout), this.hoverTimeout = setTimeout((() => {
|
|
91
|
+
this.show();
|
|
92
|
+
}), this.timeBeforeElementShows);
|
|
93
|
+
}
|
|
94
|
+
hideAfterDelay() {
|
|
95
|
+
clearTimeout(this.hoverTimeout), this.hoverOutTimeout = setTimeout((() => {
|
|
96
|
+
this.hide();
|
|
97
|
+
}), this.timeDelayBeforeFadingOut);
|
|
98
|
+
}
|
|
99
|
+
cancelDelayedActions() {
|
|
100
|
+
clearTimeout(this.hoverTimeout), clearTimeout(this.hoverOutTimeout);
|
|
101
|
+
}
|
|
102
|
+
destroy() {
|
|
103
|
+
this.cleanupAutoUpdate(), this.cancelDelayedActions();
|
|
104
|
+
}
|
|
105
|
+
isAnchorInViewport() {
|
|
106
|
+
if (!(this.anchorElement && this.anchorElement instanceof Element)) return !1;
|
|
107
|
+
const t = this.anchorElement.getBoundingClientRect(), e = window.innerHeight || document.documentElement?.clientHeight || 0, s = window.innerWidth || document.documentElement?.clientWidth || 0, i = t.height / 2 + 2 * this.offset;
|
|
108
|
+
return t.bottom >= i && t.top <= e - i && t.right >= 0 && t.left <= s;
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
l.currentFloatingElements = /* @__PURE__ */ new Map();
|
|
112
|
+
let p = l;
|
|
113
|
+
export {
|
|
114
|
+
p as l
|
|
115
|
+
};
|