gd-bs 6.1.7 → 6.2.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/index.html CHANGED
@@ -1166,7 +1166,7 @@
1166
1166
  imageUrl: "https://via.placeholder.com/400x200",
1167
1167
  imageAlt: "First Slide",
1168
1168
  isActive: true
1169
- }/*, {
1169
+ }, {
1170
1170
  captions: "<h5>Second Slide</h5>",
1171
1171
  imageUrl: "https://via.placeholder.com/400x200",
1172
1172
  imageAlt: "Second Slide"
@@ -1176,7 +1176,7 @@
1176
1176
  imageAlt: "Third Slide"
1177
1177
  }, {
1178
1178
  content: "<h1>Header</h1><h3>Title</h3><p>Content</p>"
1179
- }*/]
1179
+ }]
1180
1180
  });
1181
1181
  window["collapse"] = GD.Components.Collapse({
1182
1182
  el: document.querySelector("#collapse"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gd-bs",
3
- "version": "6.1.7",
3
+ "version": "6.2.0",
4
4
  "description": "Bootstrap JavaScript, TypeScript and Web Components library.",
5
5
  "main": "build/index.js",
6
6
  "typings": "src/index.d.ts",
@@ -33,10 +33,10 @@
33
33
  },
34
34
  "homepage": "https://dattabase.com/extras/bs",
35
35
  "dependencies": {
36
- "@popperjs/core": "^2.11.6",
36
+ "@popperjs/core": "^2.11.8",
37
37
  "bootstrap": "^5.3.0",
38
38
  "bootstrap-icons": "^1.10.5",
39
- "core-js": "^3.31.0",
39
+ "core-js": "^3.31.1",
40
40
  "tippy.js": "^6.3.7"
41
41
  },
42
42
  "devDependencies": {
package/pnpm-lock.yaml CHANGED
@@ -2,7 +2,7 @@ dependencies:
2
2
  '@popperjs/core': 2.11.8
3
3
  bootstrap: 5.3.0_@popperjs+core@2.11.8
4
4
  bootstrap-icons: 1.10.5
5
- core-js: 3.31.0
5
+ core-js: 3.31.1
6
6
  tippy.js: 6.3.7
7
7
  devDependencies:
8
8
  '@babel/core': 7.19.3
@@ -1834,11 +1834,11 @@ packages:
1834
1834
  dev: true
1835
1835
  resolution:
1836
1836
  integrity: sha512-ovcyhs2DEBUIE0MGEKHP4olCUW/XYte3Vroyxuh38rD1wAO4dHohsovUC4eAOuzFxE6b+RXvBU3UZ9o0YhUTkA==
1837
- /core-js/3.31.0:
1837
+ /core-js/3.31.1:
1838
1838
  dev: false
1839
1839
  requiresBuild: true
1840
1840
  resolution:
1841
- integrity: sha512-NIp2TQSGfR6ba5aalZD+ZQ1fSxGhDo/s1w0nx3RYzf2pnJxt7YynxFlFScP6eV7+GZsKO95NSjGxyJsU3DZgeQ==
1841
+ integrity: sha512-2sKLtfq1eFST7l7v62zaqXacPc7uG8ZAya8ogijLhTtaKNcpzpB4TMoTw2Si+8GYKRwFPMMtUT0263QFWFfqyQ==
1842
1842
  /cosmiconfig/8.2.0:
1843
1843
  dependencies:
1844
1844
  import-fresh: 3.3.0
@@ -3278,13 +3278,13 @@ packages:
3278
3278
  specifiers:
3279
3279
  '@babel/core': ^7.19.3
3280
3280
  '@babel/preset-env': ^7.19.4
3281
- '@popperjs/core': ^2.11.6
3281
+ '@popperjs/core': ^2.11.8
3282
3282
  '@types/node': ^18.11.0
3283
3283
  autoprefixer: ^10.4.12
3284
3284
  babel-loader: ^9.1.2
3285
3285
  bootstrap: ^5.3.0
3286
3286
  bootstrap-icons: ^1.10.5
3287
- core-js: ^3.31.0
3287
+ core-js: ^3.31.1
3288
3288
  css-loader: ^6.7.3
3289
3289
  dts-bundle: ^0.7.3
3290
3290
  postcss-loader: ^7.3.3
@@ -153,8 +153,8 @@ class _Carousel extends Base<ICarouselProps> implements ICarousel {
153
153
  // See if we are rendering controls
154
154
  if (this.props.enableControls) {
155
155
  // Configure the controls
156
- nextControl ? nextControl.href = "#" + this.el.id : null;
157
- prevControl ? prevControl.href = "#" + this.el.id : null;
156
+ nextControl ? nextControl.setAttribute("data-bs-target", "#" + this.el.id) : null;
157
+ prevControl ? prevControl.setAttribute("data-bs-target", "#" + this.el.id) : null;
158
158
 
159
159
  // Set the click event
160
160
  nextControl.addEventListener("click", ev => { ev.preventDefault(); this.next(); })
@@ -3,14 +3,14 @@ export const HTML = `
3
3
  <div class="carousel slide" data-bs-ride="carousel">
4
4
  <div class="carousel-indicators"></div>
5
5
  <div class="carousel-inner"></div>
6
- <a class="carousel-control-prev" href="#" role="button" data-bs-slide="prev">
6
+ <button class="carousel-control-prev" type="button" data-bs-slide="prev">
7
7
  <span class="carousel-control-prev-icon" aria-hidden="true"></span>
8
8
  <span class="visually-hidden">Previous</span>
9
- </a>
10
- <a class="carousel-control-next" href="#" role="button" data-bs-slide="next">
9
+ </button>
10
+ <button class="carousel-control-next" type="button" data-bs-slide="next">
11
11
  <span class="carousel-control-next-icon" aria-hidden="true"></span>
12
12
  <span class="visually-hidden">Next</span>
13
- </a>
13
+ </button>
14
14
  </div>`.trim();
15
15
 
16
16
  // Carousel Item
@@ -652,7 +652,8 @@ export class FormControl implements IFormControl {
652
652
  // Updates the control validation
653
653
  updateValidation(elControl: Element, validation: IFormControlValidationResult) {
654
654
  // Get the form controls
655
- let elFormControls = elControl.querySelectorAll(".form-control") || elControl.querySelectorAll(".form-select");
655
+ let elFormControls = elControl.querySelectorAll(".form-control");
656
+ elFormControls = elFormControls.length == 0 ? elControl.querySelectorAll(".form-select") : elFormControls;
656
657
  for (let i = 0; i < elFormControls.length; i++) {
657
658
  // Ensure the control exists
658
659
  let elFormControl = elFormControls[i] as HTMLElement;