gd-bs 5.4.8 → 5.5.1
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/bs.js +1 -1
- package/build/components/listGroup/index.js +1 -1
- package/build/components/popover/index.js +5 -0
- package/build/components/tooltip/index.js +5 -0
- package/build/icons/svgs/bank.js +1 -1
- package/build/icons/svgs/houseHeart.js +1 -1
- package/build/icons/svgs/houseHeartFill.js +1 -1
- package/build/icons/svgs/pentagon.js +1 -1
- package/build/icons/svgs/pentagonFill.js +1 -1
- package/build/icons/svgs/pentagonHalf.js +1 -1
- package/build/icons/svgs/tools.js +1 -1
- package/build/icons/svgs/xLg.js +1 -1
- package/build/index-core.js +14 -0
- package/dist/gd-bs-icons.js +956 -796
- package/dist/gd-bs-icons.min.js +1 -1
- package/dist/gd-bs.d.ts +8 -2
- package/dist/gd-bs.js +913 -758
- package/dist/gd-bs.min.js +1 -1
- package/index.html +2 -4
- package/package.json +13 -13
- package/pnpm-lock.yaml +695 -645
- package/src/components/listGroup/index.ts +1 -1
- package/src/components/popover/index.ts +6 -0
- package/src/components/popover/types.d.ts +3 -0
- package/src/components/tooltip/index.ts +6 -0
- package/src/components/tooltip/types.d.ts +5 -2
- package/src/icons/svgs/bank.ts +1 -1
- package/src/icons/svgs/houseHeart.ts +1 -1
- package/src/icons/svgs/houseHeartFill.ts +1 -1
- package/src/icons/svgs/pentagon.ts +1 -1
- package/src/icons/svgs/pentagonFill.ts +1 -1
- package/src/icons/svgs/pentagonHalf.ts +1 -1
- package/src/icons/svgs/tools.ts +1 -1
- package/src/icons/svgs/xLg.ts +1 -1
- package/src/index-core.ts +14 -0
|
@@ -40,7 +40,7 @@ class _ListGroup extends Base<IListGroupProps> implements IListGroup {
|
|
|
40
40
|
private _items: Array<ListGroupItem> = null;
|
|
41
41
|
|
|
42
42
|
// Constructor
|
|
43
|
-
constructor(props: IListGroupProps, template: string = props.isTabs && props.colWidth > 0 && props.colWidth
|
|
43
|
+
constructor(props: IListGroupProps, template: string = props.isTabs && props.colWidth > 0 && props.colWidth <= 12 ? HTMLTabs : HTML, itemTemplate?: string) {
|
|
44
44
|
super(template, props);
|
|
45
45
|
|
|
46
46
|
// Configure the collapse
|
|
@@ -275,6 +275,12 @@ class _Popover extends Base<IPopoverProps> implements IPopover {
|
|
|
275
275
|
// The tippy instance
|
|
276
276
|
get tippy() { return this._tippy; }
|
|
277
277
|
|
|
278
|
+
// Sets the tippy content
|
|
279
|
+
setContent(content: string | Element) {
|
|
280
|
+
// Set the tippy content
|
|
281
|
+
this.tippy.setContent(content);
|
|
282
|
+
}
|
|
283
|
+
|
|
278
284
|
// Shows the popover
|
|
279
285
|
show() {
|
|
280
286
|
// See if it's hidden
|
|
@@ -329,6 +329,12 @@ class _Tooltip extends Base<ITooltipProps> {
|
|
|
329
329
|
// The tippy instance
|
|
330
330
|
get tippy() { return this._tippy; }
|
|
331
331
|
|
|
332
|
+
// Sets the tippy content
|
|
333
|
+
setContent(content: string | Element) {
|
|
334
|
+
// Set the tippy content
|
|
335
|
+
this.tippy.setContent(content);
|
|
336
|
+
}
|
|
337
|
+
|
|
332
338
|
// Shows the tooltip
|
|
333
339
|
show() {
|
|
334
340
|
// See if it's hidden
|
|
@@ -44,7 +44,7 @@ export const Tooltip: (props: ITooltipProps, template?: string) => ITooltip;
|
|
|
44
44
|
/**
|
|
45
45
|
* Tooltip Placements
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
export const TooltipPlacements: ITooltipPlacements;
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
50
|
* Tooltip Types
|
|
@@ -77,6 +77,9 @@ export interface ITooltip {
|
|
|
77
77
|
/** Toggles an element's tooltip. */
|
|
78
78
|
toggle: () => void;
|
|
79
79
|
|
|
80
|
+
/** Sets the tippy content. */
|
|
81
|
+
setContent: (content: string | Element) => void;
|
|
82
|
+
|
|
80
83
|
/** Reveals an element’s tooltip. */
|
|
81
84
|
show: () => void;
|
|
82
85
|
}
|
|
@@ -113,7 +116,7 @@ export type ITooltipTypes = {
|
|
|
113
116
|
/**
|
|
114
117
|
* Tooltip Placements
|
|
115
118
|
*/
|
|
116
|
-
|
|
119
|
+
export type ITooltipPlacements = {
|
|
117
120
|
Auto: number;
|
|
118
121
|
AutoStart: number;
|
|
119
122
|
AutoEnd: number;
|
package/src/icons/svgs/bank.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { generateIcon } from "../generate";
|
|
2
2
|
export function bank(height, width, className?) {
|
|
3
|
-
return generateIcon(`<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-bank' viewBox='0 0 16 16'> <path d='
|
|
3
|
+
return generateIcon(`<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-bank' viewBox='0 0 16 16'> <path d='m8 0 6.61 3h.89a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.5.5H15v7a.5.5 0 0 1 .485.38l.5 2a.498.498 0 0 1-.485.62H.5a.498.498 0 0 1-.485-.62l.5-2A.501.501 0 0 1 1 13V6H.5a.5.5 0 0 1-.5-.5v-2A.5.5 0 0 1 .5 3h.89L8 0ZM3.777 3h8.447L8 1 3.777 3ZM2 6v7h1V6H2Zm2 0v7h2.5V6H4Zm3.5 0v7h1V6h-1Zm2 0v7H12V6H9.5ZM13 6v7h1V6h-1Zm2-1V4H1v1h14Zm-.39 9H1.39l-.25 1h13.72l-.25-1Z'/> </svg>`, height, width, className);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { generateIcon } from "../generate";
|
|
2
2
|
export function houseHeart(height, width, className?) {
|
|
3
|
-
return generateIcon(`<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-house-heart' viewBox='0 0 16 16'> <path
|
|
3
|
+
return generateIcon(`<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-house-heart' viewBox='0 0 16 16'> <path d='M8 6.982C9.664 5.309 13.825 8.236 8 12 2.175 8.236 6.336 5.309 8 6.982Z'/> <path d='M8.707 1.5a1 1 0 0 0-1.414 0L.646 8.146a.5.5 0 0 0 .708.707L2 8.207V13.5A1.5 1.5 0 0 0 3.5 15h9a1.5 1.5 0 0 0 1.5-1.5V8.207l.646.646a.5.5 0 0 0 .708-.707L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.707 1.5ZM13 7.207V13.5a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5V7.207l5-5 5 5Z'/> </svg>`, height, width, className);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { generateIcon } from "../generate";
|
|
2
2
|
export function houseHeartFill(height, width, className?) {
|
|
3
|
-
return generateIcon(`<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-house-heart-fill' viewBox='0 0 16 16'> <path
|
|
3
|
+
return generateIcon(`<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-house-heart-fill' viewBox='0 0 16 16'> <path d='M7.293 1.5a1 1 0 0 1 1.414 0L11 3.793V2.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v3.293l2.354 2.353a.5.5 0 0 1-.708.707L8 2.207 1.354 8.853a.5.5 0 1 1-.708-.707L7.293 1.5Z'/> <path d='m14 9.293-6-6-6 6V13.5A1.5 1.5 0 0 0 3.5 15h9a1.5 1.5 0 0 0 1.5-1.5V9.293Zm-6-.811c1.664-1.673 5.825 1.254 0 5.018-5.825-3.764-1.664-6.691 0-5.018Z'/> </svg>`, height, width, className);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { generateIcon } from "../generate";
|
|
2
2
|
export function pentagon(height, width, className?) {
|
|
3
|
-
return generateIcon(`<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-pentagon' viewBox='0 0 16 16'> <path d='
|
|
3
|
+
return generateIcon(`<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-pentagon' viewBox='0 0 16 16'> <path d='M7.685 1.545a.5.5 0 0 1 .63 0l6.263 5.088a.5.5 0 0 1 .161.539l-2.362 7.479a.5.5 0 0 1-.476.349H4.099a.5.5 0 0 1-.476-.35L1.26 7.173a.5.5 0 0 1 .161-.54l6.263-5.087Zm8.213 5.28a.5.5 0 0 0-.162-.54L8.316.257a.5.5 0 0 0-.631 0L.264 6.286a.5.5 0 0 0-.162.538l2.788 8.827a.5.5 0 0 0 .476.349h9.268a.5.5 0 0 0 .476-.35l2.788-8.826Z'/> </svg>`, height, width, className);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { generateIcon } from "../generate";
|
|
2
2
|
export function pentagonFill(height, width, className?) {
|
|
3
|
-
return generateIcon(`<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-pentagon-fill' viewBox='0 0 16 16'> <path d='
|
|
3
|
+
return generateIcon(`<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-pentagon-fill' viewBox='0 0 16 16'> <path d='M7.685.256a.5.5 0 0 1 .63 0l7.421 6.03a.5.5 0 0 1 .162.538l-2.788 8.827a.5.5 0 0 1-.476.349H3.366a.5.5 0 0 1-.476-.35L.102 6.825a.5.5 0 0 1 .162-.538l7.42-6.03Z'/> </svg>`, height, width, className);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { generateIcon } from "../generate";
|
|
2
2
|
export function pentagonHalf(height, width, className?) {
|
|
3
|
-
return generateIcon(`<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-pentagon-half' viewBox='0 0 16 16'> <path d='m8 1.288 6.
|
|
3
|
+
return generateIcon(`<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-pentagon-half' viewBox='0 0 16 16'> <path d='m8 1.288 6.578 5.345a.5.5 0 0 1 .161.539l-2.362 7.479a.5.5 0 0 1-.476.349H8V1.288Zm7.898 5.536a.5.5 0 0 0-.162-.538L8.316.256a.5.5 0 0 0-.631 0L.264 6.286a.5.5 0 0 0-.162.538l2.788 8.827a.5.5 0 0 0 .476.349h9.268a.5.5 0 0 0 .476-.35l2.788-8.826Z'/> </svg>`, height, width, className);
|
|
4
4
|
}
|
package/src/icons/svgs/tools.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { generateIcon } from "../generate";
|
|
2
2
|
export function tools(height, width, className?) {
|
|
3
|
-
return generateIcon(`<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-tools' viewBox='0 0 16 16'> <path d='M1 0 0 1l2.2 3.081a1 1 0 0 0 .815.419h.07a1 1 0 0 1 .708.293l2.675 2.675-2.617 2.654A3.003 3.003 0 0 0 0 13a3 3 0 1 0 5.878-.851l2.654-2.617.968.968-.305.914a1 1 0 0 0 .242 1.023l3.
|
|
3
|
+
return generateIcon(`<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-tools' viewBox='0 0 16 16'> <path d='M1 0 0 1l2.2 3.081a1 1 0 0 0 .815.419h.07a1 1 0 0 1 .708.293l2.675 2.675-2.617 2.654A3.003 3.003 0 0 0 0 13a3 3 0 1 0 5.878-.851l2.654-2.617.968.968-.305.914a1 1 0 0 0 .242 1.023l3.27 3.27a.997.997 0 0 0 1.414 0l1.586-1.586a.997.997 0 0 0 0-1.414l-3.27-3.27a1 1 0 0 0-1.023-.242L10.5 9.5l-.96-.96 2.68-2.643A3.005 3.005 0 0 0 16 3c0-.269-.035-.53-.102-.777l-2.14 2.141L12 4l-.364-1.757L13.777.102a3 3 0 0 0-3.675 3.68L7.462 6.46 4.793 3.793a1 1 0 0 1-.293-.707v-.071a1 1 0 0 0-.419-.814L1 0Zm9.646 10.646a.5.5 0 0 1 .708 0l2.914 2.915a.5.5 0 0 1-.707.707l-2.915-2.914a.5.5 0 0 1 0-.708ZM3 11l.471.242.529.026.287.445.445.287.026.529L5 13l-.242.471-.026.529-.445.287-.287.445-.529.026L3 15l-.471-.242L2 14.732l-.287-.445L1.268 14l-.026-.529L1 13l.242-.471.026-.529.445-.287.287-.445.529-.026L3 11Z'/> </svg>`, height, width, className);
|
|
4
4
|
}
|
package/src/icons/svgs/xLg.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { generateIcon } from "../generate";
|
|
2
2
|
export function xLg(height, width, className?) {
|
|
3
|
-
return generateIcon(`<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-x-lg' viewBox='0 0 16 16'> <path
|
|
3
|
+
return generateIcon(`<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-x-lg' viewBox='0 0 16 16'> <path d='M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854Z'/> </svg>`, height, width, className);
|
|
4
4
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Import the IE fix
|
|
2
|
+
import "./ie";
|
|
3
|
+
|
|
4
|
+
// Bootstrap Components
|
|
5
|
+
import * as Components from "./components";
|
|
6
|
+
export { Components }
|
|
7
|
+
|
|
8
|
+
// TippyJS library
|
|
9
|
+
import { tippy } from "./libs";
|
|
10
|
+
export { tippy }
|
|
11
|
+
|
|
12
|
+
// Bootstrap Global library
|
|
13
|
+
const BS = { Components, tippy }
|
|
14
|
+
window["GD"] = window["GD"] || BS;
|