sdr_view_components 0.23.1 → 0.23.2
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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 706db14b9a3757c7f305dcd907da48caa8e7b7e832f88cfe4d5b9cc1a4b80547
|
|
4
|
+
data.tar.gz: 4e567ebedf3df411ca10ef7f44bcd425323b247e0c51ed5438f57e08e02e421e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dc58042cb98d8f2db5e87b2a6289dc566d36ec991ffb12a99378794b3a1e193f1bc3b60a65ce282a60a1ec9a447222da3722ace2286aa5e9340ab73047c4fb6e
|
|
7
|
+
data.tar.gz: 21a73aaa9036e979ac02bec783621b244c02f9ded173db66356133d66d9b27a628274d99c665bff594fdd6b1e31e3765694f67d2cc163d584370117408d867e0
|
|
@@ -7,15 +7,23 @@ export default class extends Controller {
|
|
|
7
7
|
showNext (event) {
|
|
8
8
|
event.preventDefault()
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
bootstrap.Tab.getOrCreateInstance(nextTab).show()
|
|
10
|
+
this.show(this.currentTab.nextElementSibling)
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
showPrevious (event) {
|
|
15
14
|
event.preventDefault()
|
|
16
15
|
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
this.show(this.currentTab.previousElementSibling)
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// The clicked button is in the pane being hidden, so move focus to the shown tab and,
|
|
20
|
+
// if the user has scrolled past the tab list (e.g., on a short screen), scroll back to it.
|
|
21
|
+
show (tab) {
|
|
22
|
+
bootstrap.Tab.getOrCreateInstance(tab).show()
|
|
23
|
+
tab.focus({ preventScroll: true })
|
|
24
|
+
|
|
25
|
+
const tabList = tab.closest('[role~="tablist"]')
|
|
26
|
+
if (tabList.getBoundingClientRect().top < 0) tabList.scrollIntoView({ block: 'start' })
|
|
19
27
|
}
|
|
20
28
|
|
|
21
29
|
get currentTab () {
|