@eeacms/volto-arcgis-block 0.1.354 → 0.1.355

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.355](https://github.com/eea/volto-arcgis-block/compare/0.1.354...0.1.355) - 5 May 2025
8
+
7
9
  ### [0.1.354](https://github.com/eea/volto-arcgis-block/compare/0.1.353...0.1.354) - 24 April 2025
8
10
 
9
11
  ### [0.1.353](https://github.com/eea/volto-arcgis-block/compare/0.1.352...0.1.353) - 15 April 2025
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-arcgis-block",
3
- "version": "0.1.354",
3
+ "version": "0.1.355",
4
4
  "description": "volto-arcgis-block: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: CodeSyntax",
@@ -2279,7 +2279,7 @@ class MenuWidget extends React.Component {
2279
2279
  const checkboxId = LayerId;
2280
2280
 
2281
2281
  return (
2282
- <div className="map-menu-dataset-dropdown">
2282
+ <div className="map-menu-dataset-dropdown" id={'my-service-' + LayerId}>
2283
2283
  <fieldset className="ccl-fieldset">
2284
2284
  <div className="ccl-expandable__button" aria-expanded="false">
2285
2285
  <div className="dropdown-icon">
@@ -5325,6 +5325,31 @@ class MenuWidget extends React.Component {
5325
5325
  componentElem.setAttribute('style', 'display: none;');
5326
5326
  }
5327
5327
  }
5328
+ let myServiceResult = false;
5329
+ this.state.wmsUserServiceLayers.forEach((element) => {
5330
+ let node = document.getElementById('my-service-' + element.LayerId);
5331
+ let checkbox = document.getElementById(element.LayerId);
5332
+ if (
5333
+ element?.LayerId?.toUpperCase().includes(searchText) ||
5334
+ checkbox.checked
5335
+ ) {
5336
+ node.removeAttribute('style');
5337
+ result = true;
5338
+ myServiceResult = true;
5339
+ } else {
5340
+ node.setAttribute('style', 'display: none;');
5341
+ }
5342
+ });
5343
+ let dropdowns = document.querySelectorAll('.map-menu-dropdown');
5344
+ let i = dropdowns.length === 0 ? 0 : dropdowns.length - 1;
5345
+ let componentId = `component_${i}`;
5346
+ if (!myServiceResult) {
5347
+ document
5348
+ .getElementById(componentId)
5349
+ .setAttribute('style', 'display: none;');
5350
+ } else {
5351
+ document.getElementById(componentId).removeAttribute('style');
5352
+ }
5328
5353
  if (result) {
5329
5354
  document.querySelector('.no-filter-result-message').style.display =
5330
5355
  'none';