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/build/components/carousel/index.js +2 -2
- package/build/components/carousel/templates.js +1 -1
- package/build/components/form/control.js +2 -1
- package/dist/gd-bs-icons.js +1 -1
- package/dist/gd-bs-icons.js.LICENSE.txt +210 -210
- package/dist/gd-bs-icons.min.js +1 -1
- package/dist/gd-bs.js +1 -1
- package/dist/gd-bs.js.LICENSE.txt +210 -210
- package/dist/gd-bs.min.js +1 -1
- package/index.html +2 -2
- package/package.json +3 -3
- package/pnpm-lock.yaml +5 -5
- package/src/components/carousel/index.ts +2 -2
- package/src/components/carousel/templates.ts +4 -4
- package/src/components/form/control.ts +2 -1
|
@@ -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.
|
|
158
|
-
prevControl ? prevControl.
|
|
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 <
|
|
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")
|
|
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];
|