gd-bs 6.8.1 → 6.8.3
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/build/components/floating-ui/index.js +2 -0
- package/dist/gd-bs-icons.js +1 -1
- package/dist/gd-bs-icons.min.js +1 -1
- package/dist/gd-bs.d.ts +5 -4
- package/dist/gd-bs.js +1 -1
- package/dist/gd-bs.min.js +1 -1
- package/package.json +1 -1
- package/src/components/floating-ui/index.ts +3 -0
- package/src/components/floating-ui/types.d.ts +1 -0
- package/src/components/popover/types.d.ts +2 -2
- package/src/components/tooltip/types.d.ts +2 -2
package/package.json
CHANGED
|
@@ -384,6 +384,9 @@ class _FloatingUI {
|
|
|
384
384
|
// Determines if the content is visible
|
|
385
385
|
get isVisible(): boolean { return !this._elContent.classList.contains("d-none"); }
|
|
386
386
|
|
|
387
|
+
// Refreshes the position of the floating ui
|
|
388
|
+
refreshPosition() { this.refresh(); }
|
|
389
|
+
|
|
387
390
|
// Shows the content
|
|
388
391
|
show() {
|
|
389
392
|
// Append it to the document
|
|
@@ -64,7 +64,7 @@ export const PopoverTypes: IFloatingUITypes;
|
|
|
64
64
|
|
|
65
65
|
import { IBaseProps } from "../types";
|
|
66
66
|
import { IButtonProps } from "../button/types";
|
|
67
|
-
import { IFloatingUIOptions, IFloatingUIPlacements, IFloatingUITypes } from "../floating-ui/types";
|
|
67
|
+
import { IFloatingUI, IFloatingUIOptions, IFloatingUIPlacements, IFloatingUITypes } from "../floating-ui/types";
|
|
68
68
|
|
|
69
69
|
/**
|
|
70
70
|
* Popover
|
|
@@ -74,7 +74,7 @@ export interface IPopover {
|
|
|
74
74
|
el: HTMLElement;
|
|
75
75
|
|
|
76
76
|
/** The floating ui instance. */
|
|
77
|
-
floatingUI:
|
|
77
|
+
floatingUI: IFloatingUI;
|
|
78
78
|
|
|
79
79
|
/** Enables the popover. */
|
|
80
80
|
enable: () => void;
|
|
@@ -54,7 +54,7 @@ export const TooltipTypes: IFloatingUITypes;
|
|
|
54
54
|
import { IBaseProps } from "../types";
|
|
55
55
|
import { IButtonProps, IButton } from "../button/types";
|
|
56
56
|
import { IDropdownProps, IDropdown } from "../dropdown/types";
|
|
57
|
-
import { IFloatingUIOptions, IFloatingUIPlacements, IFloatingUITypes } from "../floating-ui/types";
|
|
57
|
+
import { IFloatingUI, IFloatingUIOptions, IFloatingUIPlacements, IFloatingUITypes } from "../floating-ui/types";
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
* Tooltip
|
|
@@ -76,7 +76,7 @@ export interface ITooltip {
|
|
|
76
76
|
ddl?: IDropdown;
|
|
77
77
|
|
|
78
78
|
/** The floating ui instance. */
|
|
79
|
-
floatingUI:
|
|
79
|
+
floatingUI: IFloatingUI;
|
|
80
80
|
|
|
81
81
|
/** Toggles an element's tooltip. */
|
|
82
82
|
toggle: () => void;
|