@eeacms/volto-arcgis-block 0.1.122 → 0.1.123
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,13 @@ 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.123](https://github.com/eea/volto-arcgis-block/compare/0.1.122...0.1.123) - 24 March 2023
|
|
8
|
+
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- CLMS-1975-1634 (fix): finished implementing these tickets and ran linting scripts [ujbolivar - [`fe41bc0`](https://github.com/eea/volto-arcgis-block/commit/fe41bc0e1e44beb350a340a18625e34c61d41437)]
|
|
12
|
+
- CLMS-1975-1634 (FIX): Changes for CLMS-1975 and CLMS-1634 completed [ujbolivar - [`4d13b79`](https://github.com/eea/volto-arcgis-block/commit/4d13b7965e9691fe1d66d2cc25b51a1c05f0d0e1)]
|
|
13
|
+
- CLMS-1975 [Amanda Rodriguez - [`182755c`](https://github.com/eea/volto-arcgis-block/commit/182755c7edb0348c505d1906d803c64fc4e18eb6)]
|
|
7
14
|
### [0.1.122](https://github.com/eea/volto-arcgis-block/compare/0.1.121...0.1.122) - 23 March 2023
|
|
8
15
|
|
|
9
16
|
#### :hammer_and_wrench: Others
|
package/package.json
CHANGED
|
@@ -366,10 +366,10 @@ class MenuWidget extends React.Component {
|
|
|
366
366
|
node.style.display = zoom > 6 ? 'none' : 'block';
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
|
-
if (dropDownActive.includes('
|
|
369
|
+
if (dropDownActive.includes('dropdown_2_1')) {
|
|
370
370
|
let checks = document
|
|
371
|
-
.getElementById('
|
|
372
|
-
.nextSibling.querySelectorAll('[parentid="
|
|
371
|
+
.getElementById('dropdown_2_1')
|
|
372
|
+
.nextSibling.querySelectorAll('[parentid="map_product_2_1"]');
|
|
373
373
|
let checksList = Array.prototype.slice.call(checks);
|
|
374
374
|
if (checksList && checksList !== null) {
|
|
375
375
|
checksList.forEach((check) => {
|
|
@@ -417,9 +417,17 @@ class MenuWidget extends React.Component {
|
|
|
417
417
|
);
|
|
418
418
|
}
|
|
419
419
|
|
|
420
|
+
waitForDataFill = async () => {
|
|
421
|
+
while (this.compCfg.length === 0) {
|
|
422
|
+
await new Promise((resolve) => setTimeout(resolve, 100)); // wait for 100ms
|
|
423
|
+
}
|
|
424
|
+
return this.compCfg;
|
|
425
|
+
};
|
|
426
|
+
|
|
420
427
|
// get custom TMS layer JSON
|
|
421
428
|
getTMSLayersJSON() {
|
|
422
429
|
let promises = []; // download JSON file calls
|
|
430
|
+
this.waitForDataFill();
|
|
423
431
|
this.compCfg.forEach((component) => {
|
|
424
432
|
component.Products.forEach((product) => {
|
|
425
433
|
product.Datasets.forEach((dataset) => {
|
|
@@ -1894,7 +1902,7 @@ class MenuWidget extends React.Component {
|
|
|
1894
1902
|
* Method to show Active Layers of the map
|
|
1895
1903
|
* @param {*} elem From the click event
|
|
1896
1904
|
*/
|
|
1897
|
-
addActiveLayer(elem, order, fromDownload) {
|
|
1905
|
+
addActiveLayer(elem, order, fromDownload, hideCalendar) {
|
|
1898
1906
|
return (
|
|
1899
1907
|
<div
|
|
1900
1908
|
className="active-layer"
|
|
@@ -1985,7 +1993,12 @@ class MenuWidget extends React.Component {
|
|
|
1985
1993
|
/>
|
|
1986
1994
|
</span>
|
|
1987
1995
|
{this.timeLayers[elem.id][1] === 'stop' &&
|
|
1988
|
-
this.renderTimeslider(
|
|
1996
|
+
this.renderTimeslider(
|
|
1997
|
+
elem,
|
|
1998
|
+
this.layers[elem.id],
|
|
1999
|
+
fromDownload,
|
|
2000
|
+
hideCalendar,
|
|
2001
|
+
)}
|
|
1989
2002
|
</div>
|
|
1990
2003
|
</div>
|
|
1991
2004
|
);
|
|
@@ -2121,7 +2134,7 @@ class MenuWidget extends React.Component {
|
|
|
2121
2134
|
* @param {*} id id from elem
|
|
2122
2135
|
*/
|
|
2123
2136
|
|
|
2124
|
-
showTimeSlider(elem, fromDownload) {
|
|
2137
|
+
showTimeSlider(elem, fromDownload, hideCalendar) {
|
|
2125
2138
|
if (
|
|
2126
2139
|
sessionStorage.key('timeSliderTag') &&
|
|
2127
2140
|
sessionStorage.getItem('timeSliderTag') === 'true'
|
|
@@ -2161,6 +2174,7 @@ class MenuWidget extends React.Component {
|
|
|
2161
2174
|
elem,
|
|
2162
2175
|
order,
|
|
2163
2176
|
fromDownload,
|
|
2177
|
+
hideCalendar,
|
|
2164
2178
|
);
|
|
2165
2179
|
} else {
|
|
2166
2180
|
if (
|
|
@@ -2734,7 +2748,7 @@ class MenuWidget extends React.Component {
|
|
|
2734
2748
|
}
|
|
2735
2749
|
}
|
|
2736
2750
|
|
|
2737
|
-
renderTimeslider(elem, layer, fromDownload) {
|
|
2751
|
+
renderTimeslider(elem, layer, fromDownload, hideCalendar) {
|
|
2738
2752
|
if (this.props.view && layer) {
|
|
2739
2753
|
let activeLayer = document.querySelector('#active_' + elem.id);
|
|
2740
2754
|
let time = { elem: activeLayer };
|
|
@@ -2758,6 +2772,7 @@ class MenuWidget extends React.Component {
|
|
|
2758
2772
|
logged={isLoggedIn}
|
|
2759
2773
|
fromDownload={fromDownload}
|
|
2760
2774
|
area={this.props.area}
|
|
2775
|
+
hideCalendar={hideCalendar}
|
|
2761
2776
|
/>,
|
|
2762
2777
|
document.querySelector('.esri-ui-bottom-right'),
|
|
2763
2778
|
);
|
|
@@ -2778,7 +2793,7 @@ class MenuWidget extends React.Component {
|
|
|
2778
2793
|
.querySelector('[datasetid="' + id + '"] input')
|
|
2779
2794
|
.getAttribute('defcheck');
|
|
2780
2795
|
setTimeout(() => {
|
|
2781
|
-
this.showTimeSlider(document.getElementById(layerId),
|
|
2796
|
+
this.showTimeSlider(document.getElementById(layerId), true, true);
|
|
2782
2797
|
}, 100);
|
|
2783
2798
|
}
|
|
2784
2799
|
}
|
|
@@ -26,7 +26,8 @@ class TimesliderWidget extends React.Component {
|
|
|
26
26
|
timeSelectedValuesC: [], //To compare time slider stored values with new selected values
|
|
27
27
|
showDatePanel: false,
|
|
28
28
|
lockDatePanel: true,
|
|
29
|
-
showCalendar:
|
|
29
|
+
showCalendar:
|
|
30
|
+
this.props.fromDownload && !this.props.hideCalendar ? true : false,
|
|
30
31
|
dateStart: this.props.time.start ? new Date(this.props.time.start) : null,
|
|
31
32
|
dateEnd: this.props.time.end ? new Date(this.props.time.end) : null,
|
|
32
33
|
periodicity: null,
|