@eeacms/volto-arcgis-block 0.1.103 → 0.1.105
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,17 @@ 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.105](https://github.com/eea/volto-arcgis-block/compare/0.1.104...0.1.105) - 22 February 2023
|
|
8
|
+
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- CLMS-1680 [Amanda Rodriguez - [`c3cec32`](https://github.com/eea/volto-arcgis-block/commit/c3cec32b85cbbf505a112ff1eb68cc9b1f062d90)]
|
|
12
|
+
- CLMS-1732 [Amanda Rodriguez - [`eee9be5`](https://github.com/eea/volto-arcgis-block/commit/eee9be5e5c0dd959e95d0f74eefdf834cfcf0d1f)]
|
|
13
|
+
### [0.1.104](https://github.com/eea/volto-arcgis-block/compare/0.1.103...0.1.104) - 22 February 2023
|
|
14
|
+
|
|
15
|
+
#### :hammer_and_wrench: Others
|
|
16
|
+
|
|
17
|
+
- CLMS-1822 FIX: removed componentDidUpdate life cycle in menuWidget as it was unecessary and was causing the site to crash [ujbolivar - [`a89586b`](https://github.com/eea/volto-arcgis-block/commit/a89586ba6d0a4a5a8aa1251bff6d2f7fc2e7f66a)]
|
|
7
18
|
### [0.1.103](https://github.com/eea/volto-arcgis-block/compare/0.1.102...0.1.103) - 21 February 2023
|
|
8
19
|
|
|
9
20
|
#### :hammer_and_wrench: Others
|
package/package.json
CHANGED
|
@@ -476,15 +476,19 @@ class MenuWidget extends React.Component {
|
|
|
476
476
|
this.props.view.ui.add(this.container.current, 'top-left');
|
|
477
477
|
if (this.props.download) {
|
|
478
478
|
document.querySelector('.area-panel input:checked').click();
|
|
479
|
-
document.querySelector('.map-product-checkbox input')
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
479
|
+
if (document.querySelector('.map-product-checkbox input')) {
|
|
480
|
+
document.querySelector('.map-product-checkbox input').click();
|
|
481
|
+
let dropdown = document.querySelector(
|
|
482
|
+
'.map-menu-dropdown .ccl-expandable__button',
|
|
483
|
+
);
|
|
484
|
+
if (dropdown) {
|
|
485
|
+
dropdown.setAttribute('aria-expanded', 'true');
|
|
486
|
+
dropdown = document.querySelector(
|
|
487
|
+
'.map-menu-product-dropdown .ccl-expandable__button',
|
|
488
|
+
);
|
|
489
|
+
dropdown.setAttribute('aria-expanded', 'true');
|
|
490
|
+
}
|
|
491
|
+
}
|
|
488
492
|
}
|
|
489
493
|
//to watch the component
|
|
490
494
|
this.setState({});
|
|
@@ -495,33 +499,10 @@ class MenuWidget extends React.Component {
|
|
|
495
499
|
this.loadVisibility();
|
|
496
500
|
}
|
|
497
501
|
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
componentDidUpdate(prevProps) {
|
|
503
|
-
if (!this.props.download && this.props !== prevProps) {
|
|
504
|
-
let isLoggedIn = document
|
|
505
|
-
.querySelector('[defcheck=' + this.props.elem.id + ']')
|
|
506
|
-
.parentElement.querySelector('.map-menu-icon-login')
|
|
507
|
-
.classList.contains('logged');
|
|
508
|
-
if (this.props.sliderIsActive && isLoggedIn) {
|
|
509
|
-
let event = new MouseEvent('click', {
|
|
510
|
-
view: window,
|
|
511
|
-
bubbles: true,
|
|
512
|
-
cancelable: false,
|
|
513
|
-
});
|
|
514
|
-
let el = document.getElementById('active_label');
|
|
515
|
-
el.dispatchEvent(event);
|
|
516
|
-
this.showTimeSlider();
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
setActiveSlider(val) {
|
|
522
|
-
if (!sessionStorage.key('sliderIsActive'))
|
|
523
|
-
sessionStorage.setItem('sliderIsActive', 'false');
|
|
524
|
-
sessionStorage.setItem('sliderIsActive', val);
|
|
502
|
+
setSliderTag(val) {
|
|
503
|
+
if (!sessionStorage.key('timeSliderTag'))
|
|
504
|
+
sessionStorage.setItem('timeSliderTag', 'false');
|
|
505
|
+
sessionStorage.setItem('timeSliderTag', val);
|
|
525
506
|
}
|
|
526
507
|
|
|
527
508
|
/**
|
|
@@ -1900,11 +1881,11 @@ class MenuWidget extends React.Component {
|
|
|
1900
1881
|
|
|
1901
1882
|
showTimeSlider(elem, fromDownload) {
|
|
1902
1883
|
if (
|
|
1903
|
-
sessionStorage.key('
|
|
1904
|
-
sessionStorage.getItem('
|
|
1884
|
+
sessionStorage.key('timeSliderTag') &&
|
|
1885
|
+
sessionStorage.getItem('timeSliderTag') === 'false'
|
|
1905
1886
|
)
|
|
1906
|
-
this.
|
|
1907
|
-
else this.
|
|
1887
|
+
this.setSliderTag(true);
|
|
1888
|
+
else this.setSliderTag(false);
|
|
1908
1889
|
let activeLayers = document.querySelectorAll('.active-layer');
|
|
1909
1890
|
let group = this.getGroup(elem);
|
|
1910
1891
|
let groupLayers = this.getGroupLayers(group);
|