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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gd-bs",
3
- "version": "6.8.1",
3
+ "version": "6.8.3",
4
4
  "description": "Bootstrap JavaScript, TypeScript and Web Components library.",
5
5
  "main": "build/index.js",
6
6
  "typings": "src/index.d.ts",
@@ -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
@@ -8,6 +8,7 @@ export interface IFloatingUI {
8
8
  addIgnoreElement: (el: Element) => void;
9
9
  hide: () => void;
10
10
  isVisible: boolean;
11
+ refreshPosition: () => void;
11
12
  removeIgnoreElement: (el: Element) => void;
12
13
  setContent: (el: string | Element) => void;
13
14
  show: () => void;
@@ -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: any;
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: any;
79
+ floatingUI: IFloatingUI;
80
80
 
81
81
  /** Toggles an element's tooltip. */
82
82
  toggle: () => void;