gd-bs 6.0.7 → 6.0.8
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/button/index.js +9 -1
- package/dist/gd-bs-icons.js +1 -1
- package/dist/gd-bs-icons.min.js +1 -1
- package/dist/gd-bs.js +1 -1
- package/dist/gd-bs.min.js +1 -1
- package/package.json +2 -2
- package/pnpm-lock.yaml +4 -4
- package/src/components/button/index.ts +11 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gd-bs",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.8",
|
|
4
4
|
"description": "Bootstrap JavaScript, TypeScript and Web Components library.",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"typings": "src/index.d.ts",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"homepage": "https://dattabase.com/extras/bs",
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@popperjs/core": "^2.11.6",
|
|
37
|
-
"bootstrap": "^5.2.
|
|
37
|
+
"bootstrap": "^5.2.3",
|
|
38
38
|
"bootstrap-icons": "^1.10.3",
|
|
39
39
|
"core-js": "^3.25.5",
|
|
40
40
|
"tippy.js": "^6.3.7"
|
package/pnpm-lock.yaml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
dependencies:
|
|
2
2
|
'@popperjs/core': 2.11.6
|
|
3
|
-
bootstrap: 5.2.
|
|
3
|
+
bootstrap: 5.2.3_@popperjs+core@2.11.6
|
|
4
4
|
bootstrap-icons: 1.10.3
|
|
5
5
|
core-js: 3.25.5
|
|
6
6
|
tippy.js: 6.3.7
|
|
@@ -1616,14 +1616,14 @@ packages:
|
|
|
1616
1616
|
dev: false
|
|
1617
1617
|
resolution:
|
|
1618
1618
|
integrity: sha512-7Qvj0j0idEm/DdX9Q0CpxAnJYqBCFCiUI6qzSPYfERMcokVuV9Mdm/AJiVZI8+Gawe4h/l6zFcOzvV7oXCZArw==
|
|
1619
|
-
/bootstrap/5.2.
|
|
1619
|
+
/bootstrap/5.2.3_@popperjs+core@2.11.6:
|
|
1620
1620
|
dependencies:
|
|
1621
1621
|
'@popperjs/core': 2.11.6
|
|
1622
1622
|
dev: false
|
|
1623
1623
|
peerDependencies:
|
|
1624
1624
|
'@popperjs/core': ^2.11.6
|
|
1625
1625
|
resolution:
|
|
1626
|
-
integrity: sha512-
|
|
1626
|
+
integrity: sha512-cEKPM+fwb3cT8NzQZYEu4HilJ3anCrWqh3CHAok1p9jXqMPsPTBhU25fBckEJHJ/p+tTxTFTsFQGM+gaHpi3QQ==
|
|
1627
1627
|
/brace-expansion/1.1.11:
|
|
1628
1628
|
dependencies:
|
|
1629
1629
|
balanced-match: 1.0.2
|
|
@@ -3281,7 +3281,7 @@ specifiers:
|
|
|
3281
3281
|
'@types/node': ^18.11.0
|
|
3282
3282
|
autoprefixer: ^10.4.12
|
|
3283
3283
|
babel-loader: ^8.2.5
|
|
3284
|
-
bootstrap: ^5.2.
|
|
3284
|
+
bootstrap: ^5.2.3
|
|
3285
3285
|
bootstrap-icons: ^1.10.3
|
|
3286
3286
|
core-js: ^3.25.5
|
|
3287
3287
|
css-loader: ^6.7.1
|
|
@@ -203,18 +203,28 @@ class _Button extends Base<IButtonProps> implements IButton {
|
|
|
203
203
|
// Sets the button text
|
|
204
204
|
setText(btnText?: string) {
|
|
205
205
|
let elButton = this.el as HTMLButtonElement;
|
|
206
|
+
let existsFl = false;
|
|
206
207
|
|
|
207
208
|
// Parse the child nodes
|
|
208
209
|
for (var i = 0; i < elButton.childNodes.length; i++) {
|
|
209
210
|
// See if this is the text element
|
|
210
211
|
if (elButton.childNodes[i].nodeName == "#text") {
|
|
212
|
+
// Set the flag
|
|
213
|
+
existsFl = true;
|
|
214
|
+
|
|
211
215
|
// Set the value
|
|
212
|
-
elButton.childNodes[i].nodeValue = btnText;
|
|
216
|
+
elButton.childNodes[i].nodeValue = btnText || "";
|
|
213
217
|
|
|
214
218
|
// Break from the loop
|
|
215
219
|
break;
|
|
216
220
|
}
|
|
217
221
|
}
|
|
222
|
+
|
|
223
|
+
// See if it doesn't exist
|
|
224
|
+
if (!existsFl) {
|
|
225
|
+
// Add the text node
|
|
226
|
+
elButton.appendChild(document.createTextNode(btnText == null ? "" : btnText))
|
|
227
|
+
}
|
|
218
228
|
}
|
|
219
229
|
|
|
220
230
|
// Sets the button type
|