@eeacms/volto-arcgis-block 0.1.474 → 0.1.475
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 +5 -0
- package/package.json +1 -1
- package/src/components/MapViewer/MenuWidget.jsx +35 -33
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,11 @@ 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.475](https://github.com/eea/volto-arcgis-block/compare/0.1.474...0.1.475) - 19 August 2026
|
|
8
|
+
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- CLMS-303602 (bug): Family checkbox solved, checked layers saved when coming from catalogue [Urkorue - [`55af373`](https://github.com/eea/volto-arcgis-block/commit/55af3739469bbb8a738f32d15d975e06b4631cad)]
|
|
7
12
|
### [0.1.474](https://github.com/eea/volto-arcgis-block/compare/0.1.473...0.1.474) - 17 August 2026
|
|
8
13
|
|
|
9
14
|
#### :hammer_and_wrench: Others
|
package/package.json
CHANGED
|
@@ -1935,7 +1935,7 @@ class MenuWidget extends React.Component {
|
|
|
1935
1935
|
key={'h' + familyId}
|
|
1936
1936
|
defcheck={familyDatasetDef}
|
|
1937
1937
|
onChange={(e) =>
|
|
1938
|
-
this.toggleFamily(e.target.checked, checkFamily, e)
|
|
1938
|
+
this.toggleFamily(e.target.checked, checkFamily, e.target)
|
|
1939
1939
|
}
|
|
1940
1940
|
></input>
|
|
1941
1941
|
<label
|
|
@@ -8135,7 +8135,7 @@ class MenuWidget extends React.Component {
|
|
|
8135
8135
|
}
|
|
8136
8136
|
} catch (e) {}
|
|
8137
8137
|
}
|
|
8138
|
-
if (layers && !this.props.download
|
|
8138
|
+
if (layers && !this.props.download) {
|
|
8139
8139
|
for (var i = layers.length - 1; i >= 0; i--) {
|
|
8140
8140
|
let layer = layers[i];
|
|
8141
8141
|
let node = document.getElementById(layer);
|
|
@@ -8157,43 +8157,45 @@ class MenuWidget extends React.Component {
|
|
|
8157
8157
|
delete node.dataset.preserveCheckedLayerState;
|
|
8158
8158
|
}
|
|
8159
8159
|
}
|
|
8160
|
-
|
|
8161
|
-
|
|
8162
|
-
|
|
8163
|
-
|
|
8164
|
-
button.setAttribute('aria-expanded', 'true');
|
|
8165
|
-
}
|
|
8166
|
-
}
|
|
8167
|
-
let productDropdown = node.closest('.map-menu-product-dropdown');
|
|
8168
|
-
if (productDropdown) {
|
|
8169
|
-
let familyDropdown = node.closest('.map-menu-family-dropdown');
|
|
8170
|
-
if (familyDropdown) {
|
|
8171
|
-
let button = familyDropdown.querySelector(
|
|
8172
|
-
'.ccl-expandable__button',
|
|
8173
|
-
);
|
|
8160
|
+
if (Array.isArray(expandedDropdowns)) {
|
|
8161
|
+
let dropdown = node.closest('.map-menu-dropdown');
|
|
8162
|
+
if (dropdown) {
|
|
8163
|
+
let button = dropdown.querySelector('.ccl-expandable__button');
|
|
8174
8164
|
if (button && expandedDropdowns.includes(button.id)) {
|
|
8175
8165
|
button.setAttribute('aria-expanded', 'true');
|
|
8176
8166
|
}
|
|
8177
8167
|
}
|
|
8178
|
-
let
|
|
8179
|
-
if (
|
|
8180
|
-
let
|
|
8181
|
-
|
|
8182
|
-
|
|
8183
|
-
|
|
8184
|
-
|
|
8168
|
+
let productDropdown = node.closest('.map-menu-product-dropdown');
|
|
8169
|
+
if (productDropdown) {
|
|
8170
|
+
let familyDropdown = node.closest('.map-menu-family-dropdown');
|
|
8171
|
+
if (familyDropdown) {
|
|
8172
|
+
let button = familyDropdown.querySelector(
|
|
8173
|
+
'.ccl-expandable__button',
|
|
8174
|
+
);
|
|
8175
|
+
if (button && expandedDropdowns.includes(button.id)) {
|
|
8176
|
+
button.setAttribute('aria-expanded', 'true');
|
|
8177
|
+
}
|
|
8178
|
+
}
|
|
8179
|
+
let datasetDropdown = node.closest('.map-menu-product-dropdown');
|
|
8180
|
+
if (datasetDropdown) {
|
|
8181
|
+
let button = datasetDropdown.querySelector(
|
|
8182
|
+
'.ccl-expandable__button',
|
|
8183
|
+
);
|
|
8184
|
+
if (button && expandedDropdowns.includes(button.id)) {
|
|
8185
|
+
button.setAttribute('aria-expanded', 'true');
|
|
8186
|
+
}
|
|
8185
8187
|
}
|
|
8186
8188
|
}
|
|
8187
|
-
|
|
8188
|
-
|
|
8189
|
-
|
|
8190
|
-
|
|
8191
|
-
|
|
8192
|
-
|
|
8193
|
-
|
|
8194
|
-
|
|
8195
|
-
|
|
8196
|
-
|
|
8189
|
+
// set scroll position
|
|
8190
|
+
dropdown = node.closest('.map-menu-dropdown');
|
|
8191
|
+
productDropdown = node.closest('.map-menu-product-dropdown');
|
|
8192
|
+
let scrollPosition = productDropdown
|
|
8193
|
+
? productDropdown.offsetTop
|
|
8194
|
+
: dropdown.offsetTop;
|
|
8195
|
+
let panelsElem = document.querySelector('.panels');
|
|
8196
|
+
if (panelsElem) {
|
|
8197
|
+
panelsElem.scrollTop = scrollPosition;
|
|
8198
|
+
}
|
|
8197
8199
|
}
|
|
8198
8200
|
}
|
|
8199
8201
|
}
|