@eeacms/volto-arcgis-block 0.1.448 → 0.1.449
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/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
+
### [0.1.449](https://github.com/eea/volto-arcgis-block/compare/0.1.448...0.1.449) - 12 May 2026
|
|
8
|
+
|
|
7
9
|
### [0.1.448](https://github.com/eea/volto-arcgis-block/compare/0.1.447...0.1.448) - 11 May 2026
|
|
8
10
|
|
|
9
11
|
#### :hammer_and_wrench: Others
|
package/package.json
CHANGED
|
@@ -714,6 +714,7 @@ class MapViewer extends React.Component {
|
|
|
714
714
|
}
|
|
715
715
|
this.syncViewWidgetContainers();
|
|
716
716
|
this.syncViewTask = null;
|
|
717
|
+
this.restorePanelScroll(true);
|
|
717
718
|
});
|
|
718
719
|
}
|
|
719
720
|
|
|
@@ -1552,6 +1553,33 @@ class MapViewer extends React.Component {
|
|
|
1552
1553
|
this.processPendingWidgetActivation();
|
|
1553
1554
|
}
|
|
1554
1555
|
|
|
1556
|
+
restorePanelScroll(skipTimeout) {
|
|
1557
|
+
let paneles = document.querySelector('div#paneles.panels');
|
|
1558
|
+
var selected_tab = document.querySelector('.tab-selected');
|
|
1559
|
+
|
|
1560
|
+
if (!paneles || !selected_tab) {
|
|
1561
|
+
return;
|
|
1562
|
+
}
|
|
1563
|
+
|
|
1564
|
+
let toc_panel_scrolls =
|
|
1565
|
+
JSON.parse(sessionStorage.getItem('toc_panel_scrolls')) ?? {};
|
|
1566
|
+
let scroll = toc_panel_scrolls[selected_tab.id];
|
|
1567
|
+
if (scroll !== undefined) {
|
|
1568
|
+
scroll = parseInt(scroll);
|
|
1569
|
+
if (skipTimeout) {
|
|
1570
|
+
if (paneles) {
|
|
1571
|
+
paneles.scrollTop = scroll;
|
|
1572
|
+
}
|
|
1573
|
+
} else {
|
|
1574
|
+
setTimeout(() => {
|
|
1575
|
+
if (paneles) {
|
|
1576
|
+
paneles.scrollTop = scroll;
|
|
1577
|
+
}
|
|
1578
|
+
}, 1000);
|
|
1579
|
+
}
|
|
1580
|
+
}
|
|
1581
|
+
}
|
|
1582
|
+
|
|
1555
1583
|
componentWillUnmount() {
|
|
1556
1584
|
this.isComponentMounted = false;
|
|
1557
1585
|
this.viewTransitionTaskId += 1;
|
|
@@ -2173,6 +2201,7 @@ export const CheckUserID = ({ reference }) => {
|
|
|
2173
2201
|
tax={reference.tax}
|
|
2174
2202
|
catalogapi={reference.props.catalogapi}
|
|
2175
2203
|
fetchCatalogApiDates={reference.props.fetchCatalogApiDates}
|
|
2204
|
+
restorePanelScroll={reference.restorePanelScroll}
|
|
2176
2205
|
/>
|
|
2177
2206
|
</>
|
|
2178
2207
|
)}
|
|
@@ -762,23 +762,6 @@ class MenuWidget extends React.Component {
|
|
|
762
762
|
}
|
|
763
763
|
}
|
|
764
764
|
|
|
765
|
-
restorePanelScroll() {
|
|
766
|
-
let paneles = document.querySelector('#paneles');
|
|
767
|
-
var selected_tab = document.querySelector('.tab-selected');
|
|
768
|
-
|
|
769
|
-
if (!paneles || !selected_tab) {
|
|
770
|
-
return;
|
|
771
|
-
}
|
|
772
|
-
|
|
773
|
-
let toc_panel_scrolls =
|
|
774
|
-
JSON.parse(sessionStorage.getItem('toc_panel_scrolls')) ?? {};
|
|
775
|
-
let scroll = toc_panel_scrolls[selected_tab.id];
|
|
776
|
-
if (scroll !== undefined) {
|
|
777
|
-
scroll = parseInt(scroll);
|
|
778
|
-
paneles.scrollTop = scroll;
|
|
779
|
-
}
|
|
780
|
-
}
|
|
781
|
-
|
|
782
765
|
/**
|
|
783
766
|
* Method that will be invoked when the
|
|
784
767
|
* button is clicked. It controls the open
|
|
@@ -841,7 +824,7 @@ class MenuWidget extends React.Component {
|
|
|
841
824
|
timeSliderContainer.style.display = 'block';
|
|
842
825
|
}
|
|
843
826
|
|
|
844
|
-
this.restorePanelScroll();
|
|
827
|
+
this.props.restorePanelScroll();
|
|
845
828
|
}
|
|
846
829
|
|
|
847
830
|
this.setState({ showMapMenu: true });
|
|
@@ -7653,7 +7636,7 @@ class MenuWidget extends React.Component {
|
|
|
7653
7636
|
if (document.querySelector('.opacity-panel').style.display === 'block') {
|
|
7654
7637
|
this.closeOpacity();
|
|
7655
7638
|
}
|
|
7656
|
-
this.restorePanelScroll();
|
|
7639
|
+
this.props.restorePanelScroll();
|
|
7657
7640
|
}
|
|
7658
7641
|
}
|
|
7659
7642
|
|