gd-bs 6.2.0 → 6.2.2
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/dist/gd-bs-icons.js +1 -1
- package/dist/gd-bs-icons.js.LICENSE.txt +211 -211
- package/dist/gd-bs-icons.min.js +1 -1
- package/dist/gd-bs.d.ts +41 -41
- package/dist/gd-bs.js +1 -1
- package/dist/gd-bs.js.LICENSE.txt +210 -210
- package/dist/gd-bs.min.js +1 -1
- package/package.json +3 -3
- package/pnpm-lock.yaml +9 -9
- package/src/components/accordion/types.d.ts +2 -2
- package/src/components/alert/types.d.ts +1 -1
- package/src/components/base.ts +1 -1
- package/src/components/breadcrumb/types.d.ts +1 -1
- package/src/components/button/index.ts +1 -1
- package/src/components/button/types.d.ts +1 -1
- package/src/components/buttonGroup/types.d.ts +1 -1
- package/src/components/card/types.d.ts +1 -1
- package/src/components/cardGroup/types.d.ts +1 -1
- package/src/components/carousel/types.d.ts +3 -3
- package/src/components/collapse/types.d.ts +2 -2
- package/src/components/dropdown/item.ts +1 -1
- package/src/components/dropdown/types.d.ts +2 -2
- package/src/components/form/controlTypes.d.ts +1 -1
- package/src/components/iconLink/index.ts +1 -1
- package/src/components/iconLink/types.d.ts +2 -2
- package/src/components/jumbotron/types.d.ts +1 -1
- package/src/components/listBox/types.d.ts +1 -1
- package/src/components/listGroup/types.d.ts +1 -1
- package/src/components/modal/types.d.ts +2 -2
- package/src/components/nav/types.d.ts +2 -2
- package/src/components/navbar/item.ts +1 -1
- package/src/components/navbar/types.d.ts +2 -2
- package/src/components/offcanvas/types.d.ts +2 -2
- package/src/components/popover/types.d.ts +2 -2
- package/src/components/progress/types.d.ts +1 -1
- package/src/components/progressGroup/types.d.ts +1 -1
- package/src/components/spinner/types.d.ts +1 -1
- package/src/components/toast/types.d.ts +1 -1
- package/src/components/toolbar/types.d.ts +1 -1
- package/src/components/tooltip/types.d.ts +1 -1
- package/src/components/tooltipGroup/types.d.ts +1 -1
- package/src/components/types.d.ts +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gd-bs",
|
|
3
|
-
"version": "6.2.
|
|
3
|
+
"version": "6.2.2",
|
|
4
4
|
"description": "Bootstrap JavaScript, TypeScript and Web Components library.",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"typings": "src/index.d.ts",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"homepage": "https://dattabase.com/extras/bs",
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@popperjs/core": "^2.11.8",
|
|
37
|
-
"bootstrap": "^5.3.
|
|
37
|
+
"bootstrap": "^5.3.1",
|
|
38
38
|
"bootstrap-icons": "^1.10.5",
|
|
39
|
-
"core-js": "^3.
|
|
39
|
+
"core-js": "^3.32.0",
|
|
40
40
|
"tippy.js": "^6.3.7"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
package/pnpm-lock.yaml
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
dependencies:
|
|
2
2
|
'@popperjs/core': 2.11.8
|
|
3
|
-
bootstrap: 5.3.
|
|
3
|
+
bootstrap: 5.3.1_@popperjs+core@2.11.8
|
|
4
4
|
bootstrap-icons: 1.10.5
|
|
5
|
-
core-js: 3.
|
|
5
|
+
core-js: 3.32.0
|
|
6
6
|
tippy.js: 6.3.7
|
|
7
7
|
devDependencies:
|
|
8
8
|
'@babel/core': 7.19.3
|
|
@@ -1667,14 +1667,14 @@ packages:
|
|
|
1667
1667
|
dev: false
|
|
1668
1668
|
resolution:
|
|
1669
1669
|
integrity: sha512-oSX26F37V7QV7NCE53PPEL45d7EGXmBgHG3pDpZvcRaKVzWMqIRL9wcqJUyEha1esFtM3NJzvmxFXDxjJYD0jQ==
|
|
1670
|
-
/bootstrap/5.3.
|
|
1670
|
+
/bootstrap/5.3.1_@popperjs+core@2.11.8:
|
|
1671
1671
|
dependencies:
|
|
1672
1672
|
'@popperjs/core': 2.11.8
|
|
1673
1673
|
dev: false
|
|
1674
1674
|
peerDependencies:
|
|
1675
|
-
'@popperjs/core': ^2.11.
|
|
1675
|
+
'@popperjs/core': ^2.11.8
|
|
1676
1676
|
resolution:
|
|
1677
|
-
integrity: sha512-
|
|
1677
|
+
integrity: sha512-jzwza3Yagduci2x0rr9MeFSORjcHpt0lRZukZPZQJT1Dth5qzV7XcgGqYzi39KGAVYR8QEDVoO0ubFKOxzMG+g==
|
|
1678
1678
|
/brace-expansion/1.1.11:
|
|
1679
1679
|
dependencies:
|
|
1680
1680
|
balanced-match: 1.0.2
|
|
@@ -1834,11 +1834,11 @@ packages:
|
|
|
1834
1834
|
dev: true
|
|
1835
1835
|
resolution:
|
|
1836
1836
|
integrity: sha512-ovcyhs2DEBUIE0MGEKHP4olCUW/XYte3Vroyxuh38rD1wAO4dHohsovUC4eAOuzFxE6b+RXvBU3UZ9o0YhUTkA==
|
|
1837
|
-
/core-js/3.
|
|
1837
|
+
/core-js/3.32.0:
|
|
1838
1838
|
dev: false
|
|
1839
1839
|
requiresBuild: true
|
|
1840
1840
|
resolution:
|
|
1841
|
-
integrity: sha512-
|
|
1841
|
+
integrity: sha512-rd4rYZNlF3WuoYuRIDEmbR/ga9CeuWX9U05umAvgrrZoHY4Z++cp/xwPQMvUpBB4Ag6J8KfD80G0zwCyaSxDww==
|
|
1842
1842
|
/cosmiconfig/8.2.0:
|
|
1843
1843
|
dependencies:
|
|
1844
1844
|
import-fresh: 3.3.0
|
|
@@ -3282,9 +3282,9 @@ specifiers:
|
|
|
3282
3282
|
'@types/node': ^18.11.0
|
|
3283
3283
|
autoprefixer: ^10.4.12
|
|
3284
3284
|
babel-loader: ^9.1.2
|
|
3285
|
-
bootstrap: ^5.3.
|
|
3285
|
+
bootstrap: ^5.3.1
|
|
3286
3286
|
bootstrap-icons: ^1.10.5
|
|
3287
|
-
core-js: ^3.
|
|
3287
|
+
core-js: ^3.32.0
|
|
3288
3288
|
css-loader: ^6.7.3
|
|
3289
3289
|
dts-bundle: ^0.7.3
|
|
3290
3290
|
postcss-loader: ^7.3.3
|
|
@@ -68,7 +68,7 @@ export interface IAccordion extends IBase<IAccordionProps> { }
|
|
|
68
68
|
/**
|
|
69
69
|
* Accordion Item
|
|
70
70
|
*/
|
|
71
|
-
export interface IAccordionItem<T =
|
|
71
|
+
export interface IAccordionItem<T = HTMLElement> {
|
|
72
72
|
data?: any;
|
|
73
73
|
className?: string;
|
|
74
74
|
content?: string | T;
|
|
@@ -81,7 +81,7 @@ export interface IAccordionItem<T = Element> {
|
|
|
81
81
|
/**
|
|
82
82
|
* Accordion Properties
|
|
83
83
|
*/
|
|
84
|
-
export interface IAccordionProps<T =
|
|
84
|
+
export interface IAccordionProps<T = HTMLElement> extends IBaseProps<IAccordion> {
|
|
85
85
|
autoCollapse?: boolean;
|
|
86
86
|
id?: string;
|
|
87
87
|
items?: Array<IAccordionItem<T>>;
|
|
@@ -63,7 +63,7 @@ export interface IAlert extends IBase<IAlertProps> {
|
|
|
63
63
|
/**
|
|
64
64
|
* Alert Properties
|
|
65
65
|
*/
|
|
66
|
-
export interface IAlertProps<T =
|
|
66
|
+
export interface IAlertProps<T = HTMLElement> extends IBaseProps<IAlert> {
|
|
67
67
|
content?: string | T;
|
|
68
68
|
data?: any;
|
|
69
69
|
header?: string;
|
package/src/components/base.ts
CHANGED
|
@@ -32,7 +32,7 @@ export class Base<IProps = IBaseProps<IBase>> implements IBase<IProps> {
|
|
|
32
32
|
// Configures the parent element
|
|
33
33
|
configureParent() {
|
|
34
34
|
// Create the element
|
|
35
|
-
let el:
|
|
35
|
+
let el: HTMLElement = document.createElement("div");
|
|
36
36
|
el.appendChild(this._el);
|
|
37
37
|
|
|
38
38
|
// See if the parent element exists
|
|
@@ -115,7 +115,7 @@ class _Button extends Base<IButtonProps> implements IButton {
|
|
|
115
115
|
if (this.props.iconType) {
|
|
116
116
|
if (typeof (this.props.iconType) === "function") {
|
|
117
117
|
// Append the icon
|
|
118
|
-
this.el.prepend(this.props.iconType(this.props.iconSize, this.props.iconSize, this.props.iconClassName));
|
|
118
|
+
this.el.prepend((this.props.iconType as Function)(this.props.iconSize, this.props.iconSize, this.props.iconClassName));
|
|
119
119
|
|
|
120
120
|
// Update the styling of the button
|
|
121
121
|
this.el.classList.add("btn-icon");
|
|
@@ -84,7 +84,7 @@ export interface ICarousel {
|
|
|
84
84
|
cycle: () => void;
|
|
85
85
|
|
|
86
86
|
/** The element. */
|
|
87
|
-
el:
|
|
87
|
+
el: HTMLElement;
|
|
88
88
|
|
|
89
89
|
/** Hides the carousel. */
|
|
90
90
|
hide: () => void;
|
|
@@ -117,7 +117,7 @@ export interface ICarousel {
|
|
|
117
117
|
/**
|
|
118
118
|
* Carousel Item
|
|
119
119
|
*/
|
|
120
|
-
export interface ICarouselItem<T =
|
|
120
|
+
export interface ICarouselItem<T = HTMLElement> {
|
|
121
121
|
captions?: string;
|
|
122
122
|
className?: string;
|
|
123
123
|
content?: string | T;
|
|
@@ -141,7 +141,7 @@ export interface ICarouselOptions {
|
|
|
141
141
|
/**
|
|
142
142
|
* Carousel Properties
|
|
143
143
|
*/
|
|
144
|
-
export interface ICarouselProps<T =
|
|
144
|
+
export interface ICarouselProps<T = HTMLElement> extends IBaseProps<ICarousel> {
|
|
145
145
|
enableControls?: boolean;
|
|
146
146
|
enableCrossfade?: boolean;
|
|
147
147
|
enableIndicators?: boolean;
|
|
@@ -53,7 +53,7 @@ import { IBaseProps } from "../types";
|
|
|
53
53
|
*/
|
|
54
54
|
export interface ICollapse {
|
|
55
55
|
/** The element. */
|
|
56
|
-
el:
|
|
56
|
+
el: HTMLElement;
|
|
57
57
|
|
|
58
58
|
/** Hides a collapsible element. */
|
|
59
59
|
hide: () => void;
|
|
@@ -78,7 +78,7 @@ export interface ICollapseOptions {
|
|
|
78
78
|
/**
|
|
79
79
|
* Collapse Properties
|
|
80
80
|
*/
|
|
81
|
-
export interface ICollapseProps<T =
|
|
81
|
+
export interface ICollapseProps<T = HTMLElement> extends IBaseProps<ICollapse> {
|
|
82
82
|
content?: string | T;
|
|
83
83
|
data?: any;
|
|
84
84
|
id?: string;
|
|
@@ -108,7 +108,7 @@ export class DropdownItem {
|
|
|
108
108
|
// See if it's a function
|
|
109
109
|
if (typeof (this.props.iconType) === "function") {
|
|
110
110
|
// Append the icon
|
|
111
|
-
elItem.prepend(this.props.iconType(iconSize, iconSize, this.props.iconClassName));
|
|
111
|
+
elItem.prepend((this.props.iconType as Function)(iconSize, iconSize, this.props.iconClassName));
|
|
112
112
|
}
|
|
113
113
|
// Else, it's an element
|
|
114
114
|
else if (typeof (this.props.iconType === "object")) {
|
|
@@ -66,7 +66,7 @@ export interface IDropdown {
|
|
|
66
66
|
enable: () => void;
|
|
67
67
|
|
|
68
68
|
/** The element. */
|
|
69
|
-
el:
|
|
69
|
+
el: HTMLElement;
|
|
70
70
|
|
|
71
71
|
/** Gets the selected dropdown item(s). */
|
|
72
72
|
getValue: () => IDropdownItem | Array<IDropdownItem>;
|
|
@@ -108,7 +108,7 @@ export interface IDropdownItem {
|
|
|
108
108
|
href?: string;
|
|
109
109
|
iconClassName?: string;
|
|
110
110
|
iconSize?: number;
|
|
111
|
-
iconType?: Function;
|
|
111
|
+
iconType?: HTMLElement | Function;
|
|
112
112
|
isDisabled?: boolean;
|
|
113
113
|
isDivider?: boolean;
|
|
114
114
|
isHeader?: boolean;
|
|
@@ -63,7 +63,7 @@ export interface IFormControl {
|
|
|
63
63
|
setControl: (control: any) => void;
|
|
64
64
|
setValue: (value: any) => void;
|
|
65
65
|
show: () => void;
|
|
66
|
-
updateValidation: (elControl:
|
|
66
|
+
updateValidation: (elControl: HTMLElement, validation: IFormControlValidationResult) => void;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
/**
|
|
@@ -40,7 +40,7 @@ class _IconLink extends Base<IIconLinkProps> implements IIconLink {
|
|
|
40
40
|
if (this.props.iconType) {
|
|
41
41
|
if (typeof (this.props.iconType) === "function") {
|
|
42
42
|
// Set the icon
|
|
43
|
-
this._elIcon = this.props.iconType(this.props.iconSize, this.props.iconSize, this.props.iconClassName);
|
|
43
|
+
this._elIcon = (this.props.iconType as Function)(this.props.iconSize, this.props.iconSize, this.props.iconClassName);
|
|
44
44
|
}
|
|
45
45
|
// Else, it's an element
|
|
46
46
|
else if (typeof (this.props.iconType === "object")) {
|
|
@@ -49,13 +49,13 @@ export interface IIconLink extends IBase<IIconLinkProps> { }
|
|
|
49
49
|
/**
|
|
50
50
|
* Icon Link Properties
|
|
51
51
|
*/
|
|
52
|
-
export interface IIconLinkProps<T =
|
|
52
|
+
export interface IIconLinkProps<T = HTMLElement> extends IBaseProps<IIconLink> {
|
|
53
53
|
content?: string | T;
|
|
54
54
|
data?: any;
|
|
55
55
|
href?: string;
|
|
56
56
|
iconClassName?: string;
|
|
57
57
|
iconSize?: number;
|
|
58
|
-
iconType?: Function;
|
|
58
|
+
iconType?: HTMLElement | Function;
|
|
59
59
|
type?: number;
|
|
60
60
|
}
|
|
61
61
|
|
|
@@ -78,7 +78,7 @@ import { IBaseProps } from "../types";
|
|
|
78
78
|
*/
|
|
79
79
|
export interface IModal {
|
|
80
80
|
/** The element. */
|
|
81
|
-
el:
|
|
81
|
+
el: HTMLElement;
|
|
82
82
|
|
|
83
83
|
/** Manually hides a modal. */
|
|
84
84
|
hide: () => void;
|
|
@@ -149,7 +149,7 @@ export interface IModalOptions {
|
|
|
149
149
|
/**
|
|
150
150
|
* Modal Properties
|
|
151
151
|
*/
|
|
152
|
-
export interface IModalProps<T =
|
|
152
|
+
export interface IModalProps<T = HTMLElement> extends IBaseProps<IModal> {
|
|
153
153
|
body?: string | T;
|
|
154
154
|
disableFade?: boolean;
|
|
155
155
|
footer?: string | T;
|
|
@@ -81,7 +81,7 @@ export interface INav {
|
|
|
81
81
|
/**
|
|
82
82
|
* Navigation Properties
|
|
83
83
|
*/
|
|
84
|
-
export interface INavProps<T =
|
|
84
|
+
export interface INavProps<T = HTMLElement> extends IBaseProps<INav> {
|
|
85
85
|
data?: any;
|
|
86
86
|
enableFill?: boolean;
|
|
87
87
|
fadeTabs?: boolean;
|
|
@@ -112,7 +112,7 @@ export interface INavLink {
|
|
|
112
112
|
/**
|
|
113
113
|
* Navigation Link Properties
|
|
114
114
|
*/
|
|
115
|
-
export interface INavLinkProps<T =
|
|
115
|
+
export interface INavLinkProps<T = HTMLElement> extends IBaseProps<INavLink> {
|
|
116
116
|
isActive?: boolean;
|
|
117
117
|
isDisabled?: boolean;
|
|
118
118
|
className?: string;
|
|
@@ -90,7 +90,7 @@ export class NavbarItem {
|
|
|
90
90
|
// See if it's a function
|
|
91
91
|
if (typeof (this._props.iconType) === "function") {
|
|
92
92
|
// Append the icon
|
|
93
|
-
link.prepend(this._props.iconType(iconSize, iconSize, this._props.iconClassName));
|
|
93
|
+
link.prepend((this._props.iconType as Function)(iconSize, iconSize, this._props.iconClassName));
|
|
94
94
|
}
|
|
95
95
|
// Else, it's an element
|
|
96
96
|
else if (typeof (this._props.iconType === "object")) {
|
|
@@ -124,7 +124,7 @@ export interface INavbarItem {
|
|
|
124
124
|
href?: string;
|
|
125
125
|
iconClassName?: string;
|
|
126
126
|
iconSize?: number;
|
|
127
|
-
iconType?: Function;
|
|
127
|
+
iconType?: HTMLElement | Function;
|
|
128
128
|
isActive?: boolean;
|
|
129
129
|
isButton?: boolean;
|
|
130
130
|
isDisabled?: boolean;
|
|
@@ -141,7 +141,7 @@ export interface INavbarItem {
|
|
|
141
141
|
/**
|
|
142
142
|
* Navbar Properties
|
|
143
143
|
*/
|
|
144
|
-
export interface INavbarProps<T =
|
|
144
|
+
export interface INavbarProps<T = HTMLElement> extends IBaseProps<INavbar> {
|
|
145
145
|
brand?: string | T;
|
|
146
146
|
brandUrl?: string;
|
|
147
147
|
enableScrolling?: boolean;
|
|
@@ -82,7 +82,7 @@ import { IBaseProps } from "../types";
|
|
|
82
82
|
*/
|
|
83
83
|
export interface IOffcanvas {
|
|
84
84
|
/** The element. */
|
|
85
|
-
el:
|
|
85
|
+
el: HTMLElement;
|
|
86
86
|
|
|
87
87
|
/** Hides a collapsible element. */
|
|
88
88
|
hide: () => void;
|
|
@@ -109,7 +109,7 @@ export interface IOffcanvas {
|
|
|
109
109
|
/**
|
|
110
110
|
* Offcanvas Properties
|
|
111
111
|
*/
|
|
112
|
-
export interface IOffcanvasProps<T =
|
|
112
|
+
export interface IOffcanvasProps<T = HTMLElement> extends IBaseProps<IOffcanvas> {
|
|
113
113
|
body?: string | T;
|
|
114
114
|
data?: any;
|
|
115
115
|
id?: string;
|
|
@@ -70,7 +70,7 @@ import { IButtonProps } from "../button/types";
|
|
|
70
70
|
*/
|
|
71
71
|
export interface IPopover {
|
|
72
72
|
/** The element. */
|
|
73
|
-
el:
|
|
73
|
+
el: HTMLElement;
|
|
74
74
|
|
|
75
75
|
/** The tippy instance. */
|
|
76
76
|
tippy: any;
|
|
@@ -101,7 +101,7 @@ export interface IPopoverProps extends IBaseProps<IPopover> {
|
|
|
101
101
|
isDismissible?: boolean;
|
|
102
102
|
options?: ITippyProps;
|
|
103
103
|
placement?: number;
|
|
104
|
-
target?:
|
|
104
|
+
target?: HTMLElement,
|
|
105
105
|
title?: string;
|
|
106
106
|
type?: number;
|
|
107
107
|
}
|
|
@@ -54,7 +54,7 @@ export interface IToast {
|
|
|
54
54
|
/**
|
|
55
55
|
* Toast Properties
|
|
56
56
|
*/
|
|
57
|
-
export interface IToastProps<T =
|
|
57
|
+
export interface IToastProps<T = HTMLElement> extends IBaseProps<IToast> {
|
|
58
58
|
body?: string | T;
|
|
59
59
|
data?: any;
|
|
60
60
|
headerImgClass?: string;
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface IBase<IProps = IBaseProps> {
|
|
5
5
|
/** Internal method to configure the parent element. */
|
|
6
|
-
configureParent():
|
|
6
|
+
configureParent(): HTMLElement;
|
|
7
7
|
|
|
8
8
|
/** The component HTML element */
|
|
9
|
-
el:
|
|
9
|
+
el: HTMLElement;
|
|
10
10
|
|
|
11
11
|
/** Hides the component. */
|
|
12
12
|
hide(): void;
|
|
@@ -29,7 +29,7 @@ export interface IBaseProps<IBaseObj = any> {
|
|
|
29
29
|
className?: string;
|
|
30
30
|
|
|
31
31
|
/** The element to render the component to. */
|
|
32
|
-
el?:
|
|
32
|
+
el?: HTMLElement;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/** Tippy Options */
|
|
@@ -37,7 +37,7 @@ export interface ITippyProps {
|
|
|
37
37
|
allowHTML?: boolean;
|
|
38
38
|
animateFill?: boolean;
|
|
39
39
|
animation?: string | boolean;
|
|
40
|
-
appendTo?:
|
|
40
|
+
appendTo?: HTMLElement;
|
|
41
41
|
aria?: object;
|
|
42
42
|
arrow?: boolean | string | SVGElement | DocumentFragment;
|
|
43
43
|
content?: string | Element;
|
|
@@ -75,6 +75,6 @@ export interface ITippyProps {
|
|
|
75
75
|
theme?: string;
|
|
76
76
|
touch?: boolean | 'hold' | ['hold', number];
|
|
77
77
|
trigger?: string;
|
|
78
|
-
triggerTarget?:
|
|
78
|
+
triggerTarget?: HTMLElement | HTMLElement[] | null;
|
|
79
79
|
zIndex?: number;
|
|
80
80
|
}
|