@eeacms/volto-arcgis-block 0.1.296 → 0.1.298
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,10 +4,22 @@ 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.298](https://github.com/eea/volto-arcgis-block/compare/0.1.297...0.1.298) - 18 July 2024
|
|
8
|
+
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- CLMS-271329 (bug): Fixed site crash when leaving data viewer without waiting for menu loading to be completed [Unai Bolivar - [`b72d0bc`](https://github.com/eea/volto-arcgis-block/commit/b72d0bc1c1399eceabe7a4b679dba58ff1f2ba9c)]
|
|
12
|
+
### [0.1.297](https://github.com/eea/volto-arcgis-block/compare/0.1.296...0.1.297) - 16 July 2024
|
|
13
|
+
|
|
14
|
+
#### :hammer_and_wrench: Others
|
|
15
|
+
|
|
16
|
+
- CLMS-272374 (Feat):Area search by code zoom [Urkorue - [`513bbf0`](https://github.com/eea/volto-arcgis-block/commit/513bbf0290aebabafd9a06e16cfd096fbe9fa6fa)]
|
|
17
|
+
- CLMS-272327 (Feat): Upload file improvements [Urkorue - [`7abfe58`](https://github.com/eea/volto-arcgis-block/commit/7abfe58503fd83b532e5a74c15f3a61370fa1177)]
|
|
7
18
|
### [0.1.296](https://github.com/eea/volto-arcgis-block/compare/0.1.295...0.1.296) - 15 July 2024
|
|
8
19
|
|
|
9
20
|
#### :hammer_and_wrench: Others
|
|
10
21
|
|
|
22
|
+
- Merge pull request #805 from eea/develop [Unai Bolivar - [`33ca8ca`](https://github.com/eea/volto-arcgis-block/commit/33ca8ca8f2751181398d91e0bb19826dce8a8dc6)]
|
|
11
23
|
- Update package.json [Urkorue - [`f2367f1`](https://github.com/eea/volto-arcgis-block/commit/f2367f1080939a66d18f2ecce5f28fec0250b961)]
|
|
12
24
|
- Update CHANGELOG.md [Urkorue - [`8bb1b46`](https://github.com/eea/volto-arcgis-block/commit/8bb1b465bf67e2d8aa243f99ab3fadd8975c0b4d)]
|
|
13
25
|
- CLMS-272327 (Feat):Upload file improves [Urkorue - [`fc9104d`](https://github.com/eea/volto-arcgis-block/commit/fc9104d8984d1b8bd86672299a07389ba44294da)]
|
package/package.json
CHANGED
|
@@ -816,29 +816,10 @@ class AreaWidget extends React.Component {
|
|
|
816
816
|
|
|
817
817
|
removeNutsLayers() {
|
|
818
818
|
//find all the radio buttons
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
'#download_area_select_rectangle',
|
|
823
|
-
);
|
|
824
|
-
// Isolate the the checked radio button
|
|
825
|
-
|
|
826
|
-
let selectedRadioButton = Array.from(radioButtons).find((radioButton) => {
|
|
827
|
-
let input = radioButton.querySelector('input');
|
|
828
|
-
return input && input.type === 'radio' && input.checked;
|
|
819
|
+
let radioButtons = document.querySelectorAll('.area-radio');
|
|
820
|
+
radioButtons.forEach((button) => {
|
|
821
|
+
button.checked = false;
|
|
829
822
|
});
|
|
830
|
-
|
|
831
|
-
//Uncheck the selected radio button
|
|
832
|
-
|
|
833
|
-
if (selectedRadioButton) {
|
|
834
|
-
selectedRadioButton.querySelector('input').checked = false;
|
|
835
|
-
}
|
|
836
|
-
if (rectangleRadioButton.checked) {
|
|
837
|
-
rectangleRadioButton.checked = false;
|
|
838
|
-
}
|
|
839
|
-
|
|
840
|
-
//Remove the layers in this.nutsGroupLayer from the map
|
|
841
|
-
|
|
842
823
|
this.clearWidget();
|
|
843
824
|
}
|
|
844
825
|
|
|
@@ -1070,6 +1051,7 @@ class AreaWidget extends React.Component {
|
|
|
1070
1051
|
infoPopupType: 'download',
|
|
1071
1052
|
});
|
|
1072
1053
|
this.props.uploadFileHandler(true);
|
|
1054
|
+
this.props.view.goTo(feature.geometry);
|
|
1073
1055
|
}
|
|
1074
1056
|
});
|
|
1075
1057
|
if (!found && count === 0) {
|
|
@@ -1249,7 +1231,7 @@ class AreaWidget extends React.Component {
|
|
|
1249
1231
|
id="download_prepackage"
|
|
1250
1232
|
name="downloadAreaSelect"
|
|
1251
1233
|
value="prepackage"
|
|
1252
|
-
className="ccl-checkbox ccl-required ccl-form-check-input"
|
|
1234
|
+
className="ccl-checkbox ccl-required ccl-form-check-input area-radio"
|
|
1253
1235
|
onClick={this.prepackageButton.bind(this)}
|
|
1254
1236
|
></input>
|
|
1255
1237
|
<label
|
|
@@ -1280,7 +1262,7 @@ class AreaWidget extends React.Component {
|
|
|
1280
1262
|
id="download_area_select_nuts0"
|
|
1281
1263
|
name="downloadAreaSelect"
|
|
1282
1264
|
value="nuts0"
|
|
1283
|
-
className="ccl-checkbox cl-required ccl-form-check-input"
|
|
1265
|
+
className="ccl-checkbox cl-required ccl-form-check-input area-radio"
|
|
1284
1266
|
defaultChecked
|
|
1285
1267
|
onClick={this.nuts0handler.bind(this)}
|
|
1286
1268
|
></input>
|
|
@@ -1297,7 +1279,7 @@ class AreaWidget extends React.Component {
|
|
|
1297
1279
|
id="download_area_select_nuts"
|
|
1298
1280
|
name="downloadAreaSelect"
|
|
1299
1281
|
value="nuts"
|
|
1300
|
-
className="ccl-checkbox cl-required ccl-form-check-input"
|
|
1282
|
+
className="ccl-checkbox cl-required ccl-form-check-input area-radio"
|
|
1301
1283
|
onClick={this.nutsRadioButtonGeneral.bind(this)}
|
|
1302
1284
|
></input>
|
|
1303
1285
|
<label
|
|
@@ -1327,7 +1309,7 @@ class AreaWidget extends React.Component {
|
|
|
1327
1309
|
id="download_area_select_nuts1"
|
|
1328
1310
|
name="downloadAreaSelectNuts"
|
|
1329
1311
|
value="nuts1"
|
|
1330
|
-
className="ccl-checkbox ccl-required ccl-form-check-input"
|
|
1312
|
+
className="ccl-checkbox ccl-required ccl-form-check-input area-radio"
|
|
1331
1313
|
onClick={this.nuts1handler.bind(this)}
|
|
1332
1314
|
></input>
|
|
1333
1315
|
<label
|
|
@@ -1343,7 +1325,7 @@ class AreaWidget extends React.Component {
|
|
|
1343
1325
|
id="download_area_select_nuts2"
|
|
1344
1326
|
name="downloadAreaSelectNuts"
|
|
1345
1327
|
value="nuts2"
|
|
1346
|
-
className="ccl-checkbox ccl-required ccl-form-check-input"
|
|
1328
|
+
className="ccl-checkbox ccl-required ccl-form-check-input area-radio"
|
|
1347
1329
|
onClick={this.nuts2handler.bind(this)}
|
|
1348
1330
|
></input>
|
|
1349
1331
|
<label
|
|
@@ -1359,7 +1341,7 @@ class AreaWidget extends React.Component {
|
|
|
1359
1341
|
id="download_area_select_nuts3"
|
|
1360
1342
|
name="downloadAreaSelectNuts"
|
|
1361
1343
|
value="nuts3"
|
|
1362
|
-
className="ccl-radio ccl-required ccl-form-check-input"
|
|
1344
|
+
className="ccl-radio ccl-required ccl-form-check-input area-radio"
|
|
1363
1345
|
onClick={this.nuts3handler.bind(this)}
|
|
1364
1346
|
></input>
|
|
1365
1347
|
<label
|
|
@@ -1416,7 +1398,7 @@ class AreaWidget extends React.Component {
|
|
|
1416
1398
|
id="download_area_select_rectangle"
|
|
1417
1399
|
name="downloadAreaSelect"
|
|
1418
1400
|
value="area"
|
|
1419
|
-
className="ccl-radio ccl-required ccl-form-check-input"
|
|
1401
|
+
className="ccl-radio ccl-required ccl-form-check-input area-radio"
|
|
1420
1402
|
onClick={this.rectanglehandler.bind(this)}
|
|
1421
1403
|
></input>
|
|
1422
1404
|
<label
|
|
@@ -593,18 +593,28 @@ class MenuWidget extends React.Component {
|
|
|
593
593
|
storePanelScroll() {
|
|
594
594
|
let paneles = document.querySelector('#paneles');
|
|
595
595
|
var selected_tab = document.querySelector('.tab-selected');
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
596
|
+
|
|
597
|
+
if (!paneles || !selected_tab) {
|
|
598
|
+
return;
|
|
599
|
+
} else if (paneles && selected_tab) {
|
|
600
|
+
let toc_panel_scrolls =
|
|
601
|
+
JSON.parse(sessionStorage.getItem('toc_panel_scrolls')) || {};
|
|
602
|
+
toc_panel_scrolls[selected_tab.id] = paneles.scrollTop;
|
|
603
|
+
sessionStorage.setItem(
|
|
604
|
+
'toc_panel_scrolls',
|
|
605
|
+
JSON.stringify(toc_panel_scrolls),
|
|
606
|
+
);
|
|
607
|
+
}
|
|
603
608
|
}
|
|
604
609
|
|
|
605
610
|
restorePanelScroll() {
|
|
606
611
|
let paneles = document.querySelector('#paneles');
|
|
607
612
|
var selected_tab = document.querySelector('.tab-selected');
|
|
613
|
+
|
|
614
|
+
if (!paneles || !selected_tab) {
|
|
615
|
+
return;
|
|
616
|
+
}
|
|
617
|
+
|
|
608
618
|
let toc_panel_scrolls =
|
|
609
619
|
JSON.parse(sessionStorage.getItem('toc_panel_scrolls')) || {};
|
|
610
620
|
let scroll = toc_panel_scrolls[selected_tab.id];
|
|
@@ -644,16 +654,35 @@ class MenuWidget extends React.Component {
|
|
|
644
654
|
// and ensure that the component is rendered again
|
|
645
655
|
this.setState({ showMapMenu: false });
|
|
646
656
|
} else {
|
|
647
|
-
this.container.current
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
+
const container = this.container.current;
|
|
658
|
+
const tabContainer = container.querySelector('#tabcontainer');
|
|
659
|
+
const paneles = container.querySelector('#paneles');
|
|
660
|
+
const esriWidgetButton = container.querySelector(
|
|
661
|
+
'.esri-widget--button',
|
|
662
|
+
);
|
|
663
|
+
const timeSliderContainer = document.querySelector(
|
|
664
|
+
'.timeslider-container',
|
|
665
|
+
);
|
|
666
|
+
|
|
667
|
+
if (tabContainer) {
|
|
668
|
+
tabContainer.style.display = 'block';
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
if (paneles) {
|
|
672
|
+
paneles.style.display = 'block';
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
if (esriWidgetButton) {
|
|
676
|
+
esriWidgetButton.classList.replace(
|
|
677
|
+
'esri-icon-drag-horizontal',
|
|
678
|
+
'esri-icon-close',
|
|
679
|
+
);
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
if (timeSliderContainer && document.contains(timeSliderContainer)) {
|
|
683
|
+
timeSliderContainer.style.display = 'block';
|
|
684
|
+
}
|
|
685
|
+
|
|
657
686
|
this.restorePanelScroll();
|
|
658
687
|
|
|
659
688
|
// By invoking the setState, we notify the state we want to reach
|