gd-bs 5.8.3 → 5.8.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/package.json CHANGED
@@ -1,61 +1,62 @@
1
- {
2
- "name": "gd-bs",
3
- "version": "5.8.3",
4
- "description": "Bootstrap JavaScript, TypeScript and Web Components library.",
5
- "main": "build/index.js",
6
- "typings": "src/index.d.ts",
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",
9
- "build": "tsc && npm run build-bs && webpack --mode=development && npm run post-build",
10
- "build-bs": "webpack --mode=production --config webpack.sass.js",
11
- "build-icons": "webpack --mode=development --config webpack.icons.js",
12
- "post-build": "node ./post-build",
13
- "clean": "node ./clean.js",
14
- "docs": "typedoc",
15
- "generate-icons": "node ./generateIcons",
16
- "package": "npm run all && npm run docs",
17
- "prod": "webpack --mode=production",
18
- "prod-icons": "webpack --mode=production --config webpack.icons.js",
19
- "typings": "dts-bundle --configJson dts-bundle.json"
20
- },
21
- "repository": {
22
- "type": "git",
23
- "url": "git+https://github.com/gunjandatta/gd-bs.git"
24
- },
25
- "keywords": [
26
- "Bootstrap",
27
- "TypeScript"
28
- ],
29
- "author": "Gunjan Datta <me@dattabase.com> (https://dattabase.com)",
30
- "license": "MIT",
31
- "bugs": {
32
- "url": "https://github.com/gunjandatta/gd-bs/issues"
33
- },
34
- "homepage": "https://dattabase.com/extras/bs",
35
- "dependencies": {
36
- "@popperjs/core": "^2.11.5",
37
- "bootstrap": "^5.2.0",
38
- "bootstrap-icons": "^1.9.1",
39
- "core-js": "^3.24.0",
40
- "tippy.js": "^6.3.7"
41
- },
42
- "devDependencies": {
43
- "@babel/core": "^7.18.9",
44
- "@babel/preset-env": "^7.18.9",
45
- "@types/node": "^18.6.2",
46
- "autoprefixer": "^10.4.7",
47
- "babel-loader": "^8.2.5",
48
- "css-loader": "^6.7.1",
49
- "dts-bundle": "^0.7.3",
50
- "html-loader": "^4.1.0",
51
- "postcss-loader": "^7.0.1",
52
- "sass": "^1.54.0",
53
- "sass-loader": "^13.0.2",
54
- "style-loader": "^3.3.1",
55
- "ts-loader": "^9.3.1",
56
- "typedoc": "^0.23.9",
57
- "typescript": "^4.7.4",
58
- "webpack": "^5.74.0",
59
- "webpack-cli": "^4.10.0"
60
- }
1
+ {
2
+ "name": "gd-bs",
3
+ "version": "5.8.6",
4
+ "description": "Bootstrap JavaScript, TypeScript and Web Components library.",
5
+ "main": "build/index.js",
6
+ "typings": "src/index.d.ts",
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",
9
+ "build": "tsc && npm run build-bs && webpack --mode=development && npm run post-build",
10
+ "build-bs": "webpack --mode=production --config webpack.sass.js",
11
+ "build-icons": "webpack --mode=development --config webpack.icons.js",
12
+ "post-build": "node ./post-build",
13
+ "clean": "node ./clean.js",
14
+ "docs": "typedoc",
15
+ "generate-icons": "node ./generateIcons",
16
+ "package": "npm run all && npm run docs",
17
+ "prod": "webpack --mode=production",
18
+ "prod-icons": "webpack --mode=production --config webpack.icons.js",
19
+ "typings": "dts-bundle --configJson dts-bundle.json"
20
+ },
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "git+https://github.com/gunjandatta/gd-bs.git"
24
+ },
25
+ "keywords": [
26
+ "Bootstrap",
27
+ "TypeScript"
28
+ ],
29
+ "author": "Gunjan Datta <me@dattabase.com> (https://dattabase.com)",
30
+ "license": "MIT",
31
+ "bugs": {
32
+ "url": "https://github.com/gunjandatta/gd-bs/issues"
33
+ },
34
+ "homepage": "https://dattabase.com/extras/bs",
35
+ "dependencies": {
36
+ "@popperjs/core": "^2.11.5",
37
+ "bootstrap": "^5.2.0",
38
+ "bootstrap-icons": "^1.9.1",
39
+ "core-js": "^3.24.0",
40
+ "tippy.js": "^6.3.7"
41
+ },
42
+ "devDependencies": {
43
+ "@babel/core": "^7.18.9",
44
+ "@babel/preset-env": "^7.18.9",
45
+ "@types/node": "^18.6.2",
46
+ "autoprefixer": "^10.4.7",
47
+ "babel-loader": "^8.2.5",
48
+ "css-loader": "^6.7.1",
49
+ "dts-bundle": "^0.7.3",
50
+ "html-loader": "^4.1.0",
51
+ "postcss-loader": "^7.0.1",
52
+ "sass": "^1.54.0",
53
+ "sass-loader": "^13.0.2",
54
+ "style-loader": "^3.3.1",
55
+ "terser-webpack-plugin": "^5.3.3",
56
+ "ts-loader": "^9.3.1",
57
+ "typedoc": "^0.23.9",
58
+ "typescript": "^4.7.4",
59
+ "webpack": "^5.74.0",
60
+ "webpack-cli": "^4.10.0"
61
+ }
61
62
  }
package/pnpm-lock.yaml CHANGED
@@ -10,7 +10,6 @@ devDependencies:
10
10
  '@types/node': 18.6.2
11
11
  autoprefixer: 10.4.7
12
12
  babel-loader: 8.2.5_c6d75f4dbec394724794fdd3c4eb4fbf
13
- compression-webpack-plugin: 10.0.0_webpack@5.74.0
14
13
  css-loader: 6.7.1_webpack@5.74.0
15
14
  dts-bundle: 0.7.3
16
15
  html-loader: 4.1.0_webpack@5.74.0
@@ -18,6 +17,7 @@ devDependencies:
18
17
  sass: 1.54.0
19
18
  sass-loader: 13.0.2_sass@1.54.0+webpack@5.74.0
20
19
  style-loader: 3.3.1_webpack@5.74.0
20
+ terser-webpack-plugin: 5.3.3_webpack@5.74.0
21
21
  ts-loader: 9.3.1_typescript@4.7.4+webpack@5.74.0
22
22
  typedoc: 0.23.9_typescript@4.7.4
23
23
  typescript: 4.7.4
@@ -1484,15 +1484,6 @@ packages:
1484
1484
  hasBin: true
1485
1485
  resolution:
1486
1486
  integrity: sha512-QOxyigPVrpZ2GXT+PFyZTl6TtOFc5egxHIP9IlQ+RbupQuX4RkT/Bee4/kQuC02Xkzg84JcT7oLYtDIQxp+v7w==
1487
- /ajv-formats/2.1.1:
1488
- dependencies:
1489
- ajv: 8.11.0
1490
- dev: true
1491
- peerDependenciesMeta:
1492
- ajv:
1493
- optional: true
1494
- resolution:
1495
- integrity: sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==
1496
1487
  /ajv-keywords/3.5.2_ajv@6.12.6:
1497
1488
  dependencies:
1498
1489
  ajv: 6.12.6
@@ -1501,15 +1492,6 @@ packages:
1501
1492
  ajv: ^6.9.1
1502
1493
  resolution:
1503
1494
  integrity: sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==
1504
- /ajv-keywords/5.1.0_ajv@8.11.0:
1505
- dependencies:
1506
- ajv: 8.11.0
1507
- fast-deep-equal: 3.1.3
1508
- dev: true
1509
- peerDependencies:
1510
- ajv: ^8.8.2
1511
- resolution:
1512
- integrity: sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==
1513
1495
  /ajv/6.12.6:
1514
1496
  dependencies:
1515
1497
  fast-deep-equal: 3.1.3
@@ -1519,15 +1501,6 @@ packages:
1519
1501
  dev: true
1520
1502
  resolution:
1521
1503
  integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==
1522
- /ajv/8.11.0:
1523
- dependencies:
1524
- fast-deep-equal: 3.1.3
1525
- json-schema-traverse: 1.0.0
1526
- require-from-string: 2.0.2
1527
- uri-js: 4.4.1
1528
- dev: true
1529
- resolution:
1530
- integrity: sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg==
1531
1504
  /ansi-styles/3.2.1:
1532
1505
  dependencies:
1533
1506
  color-convert: 1.9.3
@@ -1813,18 +1786,6 @@ packages:
1813
1786
  dev: true
1814
1787
  resolution:
1815
1788
  integrity: sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==
1816
- /compression-webpack-plugin/10.0.0_webpack@5.74.0:
1817
- dependencies:
1818
- schema-utils: 4.0.0
1819
- serialize-javascript: 6.0.0
1820
- webpack: 5.74.0_webpack-cli@4.10.0
1821
- dev: true
1822
- engines:
1823
- node: '>= 14.15.0'
1824
- peerDependencies:
1825
- webpack: ^5.1.0
1826
- resolution:
1827
- integrity: sha512-wLXLIBwpul/ALcm7Aj+69X0pYT3BYt6DdPn3qrgBIh9YejV9Bju9ShhlAsjujLyWMo6SAweFIWaUoFmXZNuNrg==
1828
1789
  /concat-map/0.0.1:
1829
1790
  dev: true
1830
1791
  resolution:
@@ -2326,7 +2287,7 @@ packages:
2326
2287
  integrity: sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==
2327
2288
  /jest-worker/27.5.1:
2328
2289
  dependencies:
2329
- '@types/node': 16.11.46
2290
+ '@types/node': 18.6.2
2330
2291
  merge-stream: 2.0.0
2331
2292
  supports-color: 8.1.1
2332
2293
  dev: true
@@ -2358,10 +2319,6 @@ packages:
2358
2319
  dev: true
2359
2320
  resolution:
2360
2321
  integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==
2361
- /json-schema-traverse/1.0.0:
2362
- dev: true
2363
- resolution:
2364
- integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==
2365
2322
  /json5/2.2.1:
2366
2323
  dev: true
2367
2324
  engines:
@@ -2836,12 +2793,6 @@ packages:
2836
2793
  node: '>= 0.10'
2837
2794
  resolution:
2838
2795
  integrity: sha512-G08Dxvm4iDN3MLM0EsP62EDV9IuhXPR6blNz6Utcp7zyV3tr4HVNINt6MpaRWbxoOHT3Q7YN2P+jaHX8vUbgog==
2839
- /require-from-string/2.0.2:
2840
- dev: true
2841
- engines:
2842
- node: '>=0.10.0'
2843
- resolution:
2844
- integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==
2845
2796
  /resolve-cwd/3.0.0:
2846
2797
  dependencies:
2847
2798
  resolve-from: 5.0.0
@@ -2936,17 +2887,6 @@ packages:
2936
2887
  node: '>= 10.13.0'
2937
2888
  resolution:
2938
2889
  integrity: sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==
2939
- /schema-utils/4.0.0:
2940
- dependencies:
2941
- '@types/json-schema': 7.0.11
2942
- ajv: 8.11.0
2943
- ajv-formats: 2.1.1
2944
- ajv-keywords: 5.1.0_ajv@8.11.0
2945
- dev: true
2946
- engines:
2947
- node: '>= 12.13.0'
2948
- resolution:
2949
- integrity: sha512-1edyXKgh6XnJsJSQ8mKWXnN/BVaIbFMLpouRUrXgVq7WYne5kw3MW7UPhO44uRXQSIpTSXoJbmrR2X0w9kUTyg==
2950
2890
  /semver/6.3.0:
2951
2891
  dev: true
2952
2892
  hasBin: true
@@ -3356,7 +3296,6 @@ specifiers:
3356
3296
  babel-loader: ^8.2.5
3357
3297
  bootstrap: ^5.2.0
3358
3298
  bootstrap-icons: ^1.9.1
3359
- compression-webpack-plugin: ^10.0.0
3360
3299
  core-js: ^3.24.0
3361
3300
  css-loader: ^6.7.1
3362
3301
  dts-bundle: ^0.7.3
@@ -3365,6 +3304,7 @@ specifiers:
3365
3304
  sass: ^1.54.0
3366
3305
  sass-loader: ^13.0.2
3367
3306
  style-loader: ^3.3.1
3307
+ terser-webpack-plugin: ^5.3.3
3368
3308
  tippy.js: ^6.3.7
3369
3309
  ts-loader: ^9.3.1
3370
3310
  typedoc: ^0.23.9
@@ -212,8 +212,23 @@ class _Modal extends Base<IModalProps> implements IModal {
212
212
 
213
213
  // Hides the modal
214
214
  hide() {
215
- // Toggle the modal
216
- this.isVisible ? this.toggle() : null;
215
+ // See if a transition is currently happening
216
+ if (this._tranisitioningFl) {
217
+ // Wait for the transition to complete
218
+ let id = setInterval(() => {
219
+ // See if the transition is complete
220
+ if (!this._tranisitioningFl) {
221
+ // Stop the loop
222
+ clearInterval(id);
223
+
224
+ // Toggle the modal
225
+ this.isVisible ? this.toggle() : null;
226
+ }
227
+ }, 250);
228
+ } else {
229
+ // Toggle the modal
230
+ this.isVisible ? this.toggle() : null;
231
+ }
217
232
  }
218
233
 
219
234
  // Returns true if the modal is visible
@@ -313,8 +328,23 @@ class _Modal extends Base<IModalProps> implements IModal {
313
328
 
314
329
  // Shows the modal
315
330
  show() {
316
- // Toggle the modal
317
- this.isVisible ? null : this.toggle();
331
+ // See if a transition is currently happening
332
+ if (this._tranisitioningFl) {
333
+ // Wait for the transition to complete
334
+ let id = setInterval(() => {
335
+ // See if the transition is complete
336
+ if (!this._tranisitioningFl) {
337
+ // Stop the loop
338
+ clearInterval(id);
339
+
340
+ // Toggle the modal
341
+ this.isVisible ? null : this.toggle();
342
+ }
343
+ }, 250);
344
+ } else {
345
+ // Toggle the modal
346
+ this.isVisible ? null : this.toggle();
347
+ }
318
348
  }
319
349
 
320
350
  // Toggles the modal
@@ -204,8 +204,23 @@ class _Offcanvas extends Base<IOffcanvasProps> implements IOffcanvas {
204
204
 
205
205
  // Hides the modal
206
206
  hide() {
207
- // Toggle the modal
208
- this.isVisible ? this.toggle() : null;
207
+ // See if a transition is currently happening
208
+ if (this._tranisitioningFl) {
209
+ // Wait for the transition to complete
210
+ let id = setInterval(() => {
211
+ // See if the transition is complete
212
+ if (!this._tranisitioningFl) {
213
+ // Stop the loop
214
+ clearInterval(id);
215
+
216
+ // Toggle the modal
217
+ this.isVisible ? this.toggle() : null;
218
+ }
219
+ }, 250);
220
+ } else {
221
+ // Toggle the modal
222
+ this.isVisible ? this.toggle() : null;
223
+ }
209
224
  }
210
225
 
211
226
  // Returns true if the modal is visible
@@ -248,8 +263,23 @@ class _Offcanvas extends Base<IOffcanvasProps> implements IOffcanvas {
248
263
 
249
264
  // Shows the modal
250
265
  show() {
251
- // Toggle the modal
252
- this.isVisible ? null : this.toggle();
266
+ // See if a transition is currently happening
267
+ if (this._tranisitioningFl) {
268
+ // Wait for the transition to complete
269
+ let id = setInterval(() => {
270
+ // See if the transition is complete
271
+ if (!this._tranisitioningFl) {
272
+ // Stop the loop
273
+ clearInterval(id);
274
+
275
+ // Toggle the modal
276
+ this.isVisible ? null : this.toggle();
277
+ }
278
+ }, 250);
279
+ } else {
280
+ // Toggle the modal
281
+ this.isVisible ? null : this.toggle();
282
+ }
253
283
  }
254
284
 
255
285
  // Toggles the modal
@@ -65,6 +65,11 @@
65
65
  */
66
66
  export const Offcanvas: (props: IOffcanvasProps, template?: string) => IOffcanvas;
67
67
 
68
+ /**
69
+ * Offcanvas Sizes
70
+ */
71
+ export const OffcanvasSize: IOffcanvasSize;
72
+
68
73
  /**
69
74
  * Offcanvas Types
70
75
  */