@cedx/ui 0.6.0 → 0.7.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.
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Disposes all popovers attached to the specified element.
|
|
3
|
+
* @param element The source element.
|
|
4
|
+
*/
|
|
5
|
+
export declare function disposePopovers(element: Element): void;
|
|
6
|
+
/**
|
|
7
|
+
* Disposes all tooltips attached to the specified element.
|
|
8
|
+
* @param element The source element.
|
|
9
|
+
*/
|
|
10
|
+
export declare function disposeTooltips(element: Element): void;
|
|
11
|
+
//# sourceMappingURL=Bootstrap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Bootstrap.d.ts","sourceRoot":"","sources":["../Sources/Client/Bootstrap.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAEtD;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAEtD"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Popover, Tooltip } from "bootstrap";
|
|
2
|
+
/**
|
|
3
|
+
* Disposes all popovers attached to the specified element.
|
|
4
|
+
* @param element The source element.
|
|
5
|
+
*/
|
|
6
|
+
export function disposePopovers(element) {
|
|
7
|
+
for (const node of element.querySelectorAll('[data-bs-toggle="popover"]'))
|
|
8
|
+
Popover.getInstance(node)?.dispose();
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Disposes all tooltips attached to the specified element.
|
|
12
|
+
* @param element The source element.
|
|
13
|
+
*/
|
|
14
|
+
export function disposeTooltips(element) {
|
|
15
|
+
for (const node of element.querySelectorAll('[data-bs-toggle="tooltip"]'))
|
|
16
|
+
Tooltip.getInstance(node)?.dispose();
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {Popover, Tooltip} from "bootstrap";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Disposes all popovers attached to the specified element.
|
|
5
|
+
* @param element The source element.
|
|
6
|
+
*/
|
|
7
|
+
export function disposePopovers(element: Element): void {
|
|
8
|
+
for (const node of element.querySelectorAll('[data-bs-toggle="popover"]')) Popover.getInstance(node)?.dispose();
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Disposes all tooltips attached to the specified element.
|
|
13
|
+
* @param element The source element.
|
|
14
|
+
*/
|
|
15
|
+
export function disposeTooltips(element: Element): void {
|
|
16
|
+
for (const node of element.querySelectorAll('[data-bs-toggle="tooltip"]')) Tooltip.getInstance(node)?.dispose();
|
|
17
|
+
}
|