gd-bs 6.1.7 → 6.1.8
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/dist/gd-bs-icons.js +1 -1
- 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/index.html +2 -2
- package/package.json +1 -1
- package/src/components/carousel/index.ts +2 -2
- package/src/components/carousel/templates.ts +4 -4
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
|
@@ -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.
|
|
157
|
-
prevControl ? prevControl.
|
|
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
|
-
<
|
|
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
|
-
</
|
|
10
|
-
<
|
|
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
|
-
</
|
|
13
|
+
</button>
|
|
14
14
|
</div>`.trim();
|
|
15
15
|
|
|
16
16
|
// Carousel Item
|