gd-bs 5.7.3 → 5.7.6
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/popover/index.js +1 -1
- package/build/components/tooltip/index.js +1 -1
- package/dist/gd-bs-icons.js +2 -2
- package/dist/gd-bs-icons.min.js +1 -1
- package/dist/gd-bs.js +659 -13
- package/dist/gd-bs.min.js +1 -1
- package/package.json +3 -2
- package/post-build.js +1 -1
- package/src/components/popover/index.ts +3 -3
- package/src/components/tooltip/index.ts +3 -3
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gd-bs",
|
|
3
|
-
"version": "5.7.
|
|
3
|
+
"version": "5.7.6",
|
|
4
4
|
"description": "Bootstrap JavaScript, TypeScript and Web Components library.",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"typings": "src/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"all": "npm run clean && npm run generate-icons && npm run build && npm run build-icons && npm run prod && npm run prod-icons && npm run typings
|
|
8
|
+
"all": "npm run clean && npm run generate-icons && npm run build && npm run build-icons && npm run prod && npm run prod-icons && npm run typings",
|
|
9
9
|
"build": "tsc && npm run build-bs && webpack --mode=development && npm run post-build",
|
|
10
10
|
"build-bs": "webpack --mode=production --config webpack.sass.js",
|
|
11
11
|
"build-icons": "webpack --mode=development --config webpack.icons.js",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"clean": "node ./clean.js",
|
|
14
14
|
"docs": "typedoc",
|
|
15
15
|
"generate-icons": "node ./generateIcons",
|
|
16
|
+
"package": "npm run all && npm run docs",
|
|
16
17
|
"prod": "webpack --mode=production",
|
|
17
18
|
"prod-icons": "webpack --mode=production --config webpack.icons.js",
|
|
18
19
|
"typings": "dts-bundle --configJson dts-bundle.json"
|
package/post-build.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import tippy, {
|
|
1
|
+
import tippy, { animateFill, followCursor, inlinePositioning, sticky } from "tippy.js";
|
|
2
2
|
import { ITippyProps } from "../types";
|
|
3
3
|
import { IPopover, IPopoverProps } from "./types";
|
|
4
4
|
import { Button } from "../button";
|
|
@@ -48,7 +48,7 @@ export enum PopoverPlacements {
|
|
|
48
48
|
*/
|
|
49
49
|
class _Popover extends Base<IPopoverProps> implements IPopover {
|
|
50
50
|
private _elContent: HTMLDivElement = null;
|
|
51
|
-
private _tippy
|
|
51
|
+
private _tippy = null;
|
|
52
52
|
|
|
53
53
|
// Constructor
|
|
54
54
|
constructor(props: IPopoverProps, template: string = "") {
|
|
@@ -243,7 +243,7 @@ class _Popover extends Base<IPopoverProps> implements IPopover {
|
|
|
243
243
|
}
|
|
244
244
|
|
|
245
245
|
// Create the tippy
|
|
246
|
-
this._tippy =
|
|
246
|
+
this._tippy = tippy(this.el, options as any);
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import tippy, {
|
|
1
|
+
import tippy, { animateFill, followCursor, inlinePositioning, sticky } from "tippy.js";
|
|
2
2
|
import { ITippyProps } from "../types";
|
|
3
3
|
import { ITooltip, ITooltipProps } from "./types";
|
|
4
4
|
import { IButton } from "../button/types";
|
|
@@ -50,7 +50,7 @@ export enum TooltipPlacements {
|
|
|
50
50
|
class _Tooltip extends Base<ITooltipProps> {
|
|
51
51
|
private _btn: IButton = null;
|
|
52
52
|
private _elContent: HTMLElement = null;
|
|
53
|
-
private _tippy
|
|
53
|
+
private _tippy = null;
|
|
54
54
|
|
|
55
55
|
// Constructor
|
|
56
56
|
constructor(props: ITooltipProps, template: string = "") {
|
|
@@ -294,7 +294,7 @@ class _Tooltip extends Base<ITooltipProps> {
|
|
|
294
294
|
}
|
|
295
295
|
|
|
296
296
|
// Create the tippy
|
|
297
|
-
this._tippy =
|
|
297
|
+
this._tippy = tippy(this.props.target || this.el, options as any);
|
|
298
298
|
}
|
|
299
299
|
|
|
300
300
|
/**
|