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.
@@ -154,8 +154,8 @@ var _Carousel = /** @class */ (function (_super) {
154
154
  // See if we are rendering controls
155
155
  if (this.props.enableControls) {
156
156
  // Configure the controls
157
- nextControl ? nextControl.href = "#" + this.el.id : null;
158
- prevControl ? prevControl.href = "#" + this.el.id : null;
157
+ nextControl ? nextControl.setAttribute("data-bs-target", "#" + this.el.id) : null;
158
+ prevControl ? prevControl.setAttribute("data-bs-target", "#" + this.el.id) : null;
159
159
  // Set the click event
160
160
  nextControl.addEventListener("click", function (ev) { ev.preventDefault(); _this.next(); });
161
161
  prevControl.addEventListener("click", function (ev) { ev.preventDefault(); _this.previous(); });
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.HTMLItem = exports.HTML = void 0;
4
4
  // Carousel
5
- exports.HTML = "\n<div class=\"carousel slide\" data-bs-ride=\"carousel\">\n <div class=\"carousel-indicators\"></div>\n <div class=\"carousel-inner\"></div>\n <a class=\"carousel-control-prev\" href=\"#\" role=\"button\" data-bs-slide=\"prev\">\n <span class=\"carousel-control-prev-icon\" aria-hidden=\"true\"></span>\n <span class=\"visually-hidden\">Previous</span>\n </a>\n <a class=\"carousel-control-next\" href=\"#\" role=\"button\" data-bs-slide=\"next\">\n <span class=\"carousel-control-next-icon\" aria-hidden=\"true\"></span>\n <span class=\"visually-hidden\">Next</span>\n </a>\n</div>".trim();
5
+ exports.HTML = "\n<div class=\"carousel slide\" data-bs-ride=\"carousel\">\n <div class=\"carousel-indicators\"></div>\n <div class=\"carousel-inner\"></div>\n <button class=\"carousel-control-prev\" type=\"button\" data-bs-slide=\"prev\">\n <span class=\"carousel-control-prev-icon\" aria-hidden=\"true\"></span>\n <span class=\"visually-hidden\">Previous</span>\n </button>\n <button class=\"carousel-control-next\" type=\"button\" data-bs-slide=\"next\">\n <span class=\"carousel-control-next-icon\" aria-hidden=\"true\"></span>\n <span class=\"visually-hidden\">Next</span>\n </button>\n</div>".trim();
6
6
  // Carousel Item
7
7
  exports.HTMLItem = "\n<div class=\"carousel-item\">\n <img class=\"d-block w-100\" />\n <div class=\"carousel-caption\"></div>\n</div>".trim();
@@ -648,7 +648,8 @@ var FormControl = /** @class */ (function () {
648
648
  // Updates the control validation
649
649
  FormControl.prototype.updateValidation = function (elControl, validation) {
650
650
  // Get the form controls
651
- var elFormControls = elControl.querySelectorAll(".form-control") || elControl.querySelectorAll(".form-select");
651
+ var elFormControls = elControl.querySelectorAll(".form-control");
652
+ elFormControls = elFormControls.length == 0 ? elControl.querySelectorAll(".form-select") : elFormControls;
652
653
  for (var i = 0; i < elFormControls.length; i++) {
653
654
  // Ensure the control exists
654
655
  var elFormControl = elFormControls[i];