gd-bs 6.9.12 → 6.9.13
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/modal/index.js +1 -1
- package/build/components/navbar/index.js +1 -1
- package/build/components/offcanvas/index.js +1 -1
- package/dist/gd-bs-icons.js +1 -1
- package/dist/gd-bs-icons.js.LICENSE.txt +4 -4
- package/dist/gd-bs-icons.min.js +1 -1
- package/dist/gd-bs.js +1 -1
- package/dist/gd-bs.js.LICENSE.txt +4 -4
- package/dist/gd-bs.min.js +1 -1
- package/package.json +2 -2
- package/src/components/carousel/index.ts +2 -2
- package/src/components/modal/index.ts +1 -1
- package/src/components/navbar/index.ts +1 -1
- package/src/components/offcanvas/index.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gd-bs",
|
|
3
|
-
"version": "6.9.
|
|
3
|
+
"version": "6.9.13",
|
|
4
4
|
"description": "Bootstrap JavaScript, TypeScript and Web Components library.",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"typings": "src/index.d.ts",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"homepage": "https://dattabase.com/extras/bs",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@floating-ui/dom": "^1.7.
|
|
37
|
+
"@floating-ui/dom": "^1.7.6",
|
|
38
38
|
"bootstrap": "^5.3.8",
|
|
39
39
|
"bootstrap-icons": "^1.13.1",
|
|
40
40
|
"core-js": "^3.48.0"
|
|
@@ -76,12 +76,12 @@ class _Carousel extends Base<ICarouselProps> implements ICarousel {
|
|
|
76
76
|
// Add a keydown event
|
|
77
77
|
el.addEventListener("keydown", (ev) => {
|
|
78
78
|
// See if the left arrow was pressed
|
|
79
|
-
if (ev.
|
|
79
|
+
if (ev.key == "ArrowLeft" || ev.keyCode == 37) {
|
|
80
80
|
// Move to the previous slide
|
|
81
81
|
this.previous();
|
|
82
82
|
}
|
|
83
83
|
// Else, see if the right arrow was pressed
|
|
84
|
-
else if (ev.
|
|
84
|
+
else if (ev.key == "ArrowRight" || ev.keyCode == 39) {
|
|
85
85
|
// Move tot he next slide
|
|
86
86
|
this.next();
|
|
87
87
|
}
|
|
@@ -195,7 +195,7 @@ class _Modal extends Base<IModalProps> implements IModal {
|
|
|
195
195
|
// Add a click event
|
|
196
196
|
(this.el as HTMLElement).addEventListener("keydown", ev => {
|
|
197
197
|
// See if the escape key was clicked and the modal is visible
|
|
198
|
-
if (ev.
|
|
198
|
+
if ((ev.key === "Escape" || ev.keyCode == 27) && this.isVisible) {
|
|
199
199
|
// Toggle the modal
|
|
200
200
|
this.toggle();
|
|
201
201
|
}
|
|
@@ -122,7 +122,7 @@ class _Navbar extends Base<INavbarProps> implements INavbar {
|
|
|
122
122
|
// Set a keydown event to catch the "Enter" key being pressed
|
|
123
123
|
searchbox.addEventListener("keydown", ev => {
|
|
124
124
|
// See if the "Enter" key was pressed
|
|
125
|
-
if (ev.
|
|
125
|
+
if (ev.key == "Enter") {
|
|
126
126
|
// Disable the postback
|
|
127
127
|
ev.preventDefault();
|
|
128
128
|
|
|
@@ -190,7 +190,7 @@ class _Offcanvas extends Base<IOffcanvasProps> implements IOffcanvas {
|
|
|
190
190
|
// Add a click event
|
|
191
191
|
(this.el as HTMLElement).addEventListener("keydown", ev => {
|
|
192
192
|
// See if the escape key was clicked and the modal is visible
|
|
193
|
-
if (ev.
|
|
193
|
+
if ((ev.key === "Escape" || ev.keyCode == 27) && this.isVisible) {
|
|
194
194
|
// Toggle the modal
|
|
195
195
|
this.toggle();
|
|
196
196
|
}
|