gd-bs 5.9.8 → 6.0.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.
- package/build/bs.js +1 -1
- package/build/components/modal/index.js +2 -2
- package/build/icons/iconTypes.js +1 -1
- package/build/icons/index.js +1 -1
- package/build/icons/svgs/index.d.ts +1 -1
- package/build/icons/svgs/index.js +1 -1
- package/build/icons/svgs/{appWindow.js → window_.js} +3 -3
- package/dist/gd-bs-icons.js +1 -1
- package/dist/gd-bs-icons.js.LICENSE.txt +4 -4
- 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/generateIcons.js +4 -4
- package/package.json +2 -2
- package/pnpm-lock.yaml +5 -5
- package/src/components/modal/index.ts +3 -3
- package/src/icons/iconTypes.ts +1 -1
- package/src/icons/index.d.ts +1 -1
- package/src/icons/index.ts +1 -1
- package/src/icons/svgs/index.d.ts +1 -1
- package/src/icons/svgs/index.ts +1 -1
- package/src/icons/svgs/window_.d.ts +1 -0
- package/src/icons/svgs/{appWindow.ts → window_.ts} +1 -1
- package/src/icons/svgs/appWindow.d.ts +0 -1
package/generateIcons.js
CHANGED
|
@@ -26,17 +26,17 @@ fs.readdir(dirIcons, function (err, files) {
|
|
|
26
26
|
|
|
27
27
|
// Create the variable name
|
|
28
28
|
var idx = 0;
|
|
29
|
-
var varName = file[0].toLowerCase() + file.
|
|
29
|
+
var varName = file[0].toLowerCase() + file.substring(1);
|
|
30
30
|
while ((idx = varName.indexOf('-')) > 0) {
|
|
31
31
|
// Find the instance
|
|
32
|
-
varName = varName.
|
|
32
|
+
varName = varName.substring(0, idx) + varName.charAt(idx + 1).toUpperCase() + varName.substring(idx + 2);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
// Determine the variable and function names
|
|
36
36
|
varName = varName.replace(/\.svg$/, '');
|
|
37
|
-
varName = varName == "window" ? "
|
|
37
|
+
varName = varName == "window" ? "window_" : varName;
|
|
38
38
|
varName = parseInt(varName) >= 0 ? "_" + varName : varName;
|
|
39
|
-
var funcName = varName[0].toUpperCase() + varName.
|
|
39
|
+
var funcName = varName[0].toUpperCase() + varName.substring(1);
|
|
40
40
|
|
|
41
41
|
// Add the type
|
|
42
42
|
let iconType = types.length + 1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gd-bs",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
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.5",
|
|
37
|
-
"bootstrap": "^5.2.
|
|
37
|
+
"bootstrap": "^5.2.1",
|
|
38
38
|
"bootstrap-icons": "^1.9.1",
|
|
39
39
|
"core-js": "^3.24.0",
|
|
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.5
|
|
3
|
-
bootstrap: 5.2.
|
|
3
|
+
bootstrap: 5.2.1_@popperjs+core@2.11.5
|
|
4
4
|
bootstrap-icons: 1.9.1
|
|
5
5
|
core-js: 3.24.0
|
|
6
6
|
tippy.js: 6.3.7
|
|
@@ -1612,14 +1612,14 @@ packages:
|
|
|
1612
1612
|
dev: false
|
|
1613
1613
|
resolution:
|
|
1614
1614
|
integrity: sha512-d4ZkO30MIkAhQ2nNRJqKXJVEQorALGbLWTuRxyCTJF96lRIV6imcgMehWGJUiJMJhglN0o2tqLIeDnMdiQEE9g==
|
|
1615
|
-
/bootstrap/5.2.
|
|
1615
|
+
/bootstrap/5.2.1_@popperjs+core@2.11.5:
|
|
1616
1616
|
dependencies:
|
|
1617
1617
|
'@popperjs/core': 2.11.5
|
|
1618
1618
|
dev: false
|
|
1619
1619
|
peerDependencies:
|
|
1620
|
-
'@popperjs/core': ^2.11.
|
|
1620
|
+
'@popperjs/core': ^2.11.6
|
|
1621
1621
|
resolution:
|
|
1622
|
-
integrity: sha512-
|
|
1622
|
+
integrity: sha512-UQi3v2NpVPEi1n35dmRRzBJFlgvWHYwyem6yHhuT6afYF+sziEt46McRbT//kVXZ7b1YUYEVGdXEH74Nx3xzGA==
|
|
1623
1623
|
/brace-expansion/1.1.11:
|
|
1624
1624
|
dependencies:
|
|
1625
1625
|
balanced-match: 1.0.2
|
|
@@ -3294,7 +3294,7 @@ specifiers:
|
|
|
3294
3294
|
'@types/node': ^18.6.2
|
|
3295
3295
|
autoprefixer: ^10.4.7
|
|
3296
3296
|
babel-loader: ^8.2.5
|
|
3297
|
-
bootstrap: ^5.2.
|
|
3297
|
+
bootstrap: ^5.2.1
|
|
3298
3298
|
bootstrap-icons: ^1.9.1
|
|
3299
3299
|
core-js: ^3.24.0
|
|
3300
3300
|
css-loader: ^6.7.1
|
|
@@ -184,9 +184,6 @@ class _Modal extends Base<IModalProps> implements IModal {
|
|
|
184
184
|
elClose.addEventListener("click", () => {
|
|
185
185
|
// Hide the modal
|
|
186
186
|
this.hide();
|
|
187
|
-
|
|
188
|
-
// Call the event
|
|
189
|
-
this.props.onClose ? this.props.onClose(this.el) : null;
|
|
190
187
|
});
|
|
191
188
|
}
|
|
192
189
|
|
|
@@ -370,6 +367,9 @@ class _Modal extends Base<IModalProps> implements IModal {
|
|
|
370
367
|
|
|
371
368
|
// Set the flag
|
|
372
369
|
this._tranisitioningFl = false;
|
|
370
|
+
|
|
371
|
+
// Call the event
|
|
372
|
+
this.props.onClose ? this.props.onClose(this.el) : null;
|
|
373
373
|
}, 250);
|
|
374
374
|
} else {
|
|
375
375
|
// Start the animation
|
package/src/icons/iconTypes.ts
CHANGED
package/src/icons/index.d.ts
CHANGED
package/src/icons/index.ts
CHANGED
|
@@ -5372,7 +5372,7 @@ export const Icons = (iconType:number, height?:number, width?:number, className?
|
|
|
5372
5372
|
return SVGIcons.windowX(height, width, className);
|
|
5373
5373
|
// window.svg
|
|
5374
5374
|
case 1789:
|
|
5375
|
-
return SVGIcons.
|
|
5375
|
+
return SVGIcons.window_(height, width, className);
|
|
5376
5376
|
// windows.svg
|
|
5377
5377
|
case 1790:
|
|
5378
5378
|
return SVGIcons.windows(height, width, className);
|
|
@@ -3575,7 +3575,7 @@ export const windowStack: (height?:number, width?:number, className?:string) =>
|
|
|
3575
3575
|
// window-x.svg
|
|
3576
3576
|
export const windowX: (height?:number, width?:number, className?:string) => HTMLElement;
|
|
3577
3577
|
// window.svg
|
|
3578
|
-
export const
|
|
3578
|
+
export const window_: (height?:number, width?:number, className?:string) => HTMLElement;
|
|
3579
3579
|
// windows.svg
|
|
3580
3580
|
export const windows: (height?:number, width?:number, className?:string) => HTMLElement;
|
|
3581
3581
|
// wordpress.svg
|
package/src/icons/svgs/index.ts
CHANGED
|
@@ -1786,7 +1786,7 @@ export * from "./windowSidebar";
|
|
|
1786
1786
|
export * from "./windowSplit";
|
|
1787
1787
|
export * from "./windowStack";
|
|
1788
1788
|
export * from "./windowX";
|
|
1789
|
-
export * from "./
|
|
1789
|
+
export * from "./window_";
|
|
1790
1790
|
export * from "./windows";
|
|
1791
1791
|
export * from "./wordpress";
|
|
1792
1792
|
export * from "./wrenchAdjustableCircleFill";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const window_: (height?:number, width?:number, className?:string) => HTMLElement;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { generateIcon } from "../generate";
|
|
2
|
-
export function
|
|
2
|
+
export function window_(height, width, className?) {
|
|
3
3
|
return generateIcon(`<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-window' viewBox='0 0 16 16'> <path d='M2.5 4a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1zm2-.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0zm1 .5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1z'/> <path d='M2 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2H2zm13 2v2H1V3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1zM2 14a1 1 0 0 1-1-1V6h14v7a1 1 0 0 1-1 1H2z'/> </svg>`, height, width, className);
|
|
4
4
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const appWindow: (height?:number, width?:number, className?:string) => HTMLElement;
|