@eeacms/volto-arcgis-block 0.1.327 → 0.1.329

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.329](https://github.com/eea/volto-arcgis-block/compare/0.1.328...0.1.329) - 14 January 2025
8
+
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - CLMS-270893 (bug): Fixed scroll positioning of checked dataset in dataviewer when coming from dataset catalogue result [Unai Bolivar - [`8a2cf7f`](https://github.com/eea/volto-arcgis-block/commit/8a2cf7f3184b81c653d3ba420921d481bc5619fa)]
12
+ ### [0.1.328](https://github.com/eea/volto-arcgis-block/compare/0.1.327...0.1.328) - 9 January 2025
13
+
7
14
  ### [0.1.327](https://github.com/eea/volto-arcgis-block/compare/0.1.326...0.1.327) - 8 January 2025
8
15
 
9
16
  ### [0.1.326](https://github.com/eea/volto-arcgis-block/compare/0.1.325...0.1.326) - 8 January 2025
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-arcgis-block",
3
- "version": "0.1.327",
3
+ "version": "0.1.329",
4
4
  "description": "volto-arcgis-block: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: CodeSyntax",
@@ -743,11 +743,11 @@ class MenuWidget extends React.Component {
743
743
  // and ensure that the component is rendered again
744
744
  this.setState({ showMapMenu: true });
745
745
  }
746
- if (this.loadFirst && this.container.current) {
747
- this.checkUrl();
748
- this.loadFirst = false;
749
- this.zoomTooltips();
750
- }
746
+ // if (this.loadFirst && this.container.current) {
747
+ this.checkUrl();
748
+ // this.loadFirst = false;
749
+ this.zoomTooltips();
750
+ // }
751
751
 
752
752
  let authToken = this.getAuthToken();
753
753
  let timeSliderTag = sessionStorage.getItem('timeSliderTag');
@@ -1060,7 +1060,11 @@ class MenuWidget extends React.Component {
1060
1060
  scrollPosition = mapMenu.offsetTop;
1061
1061
  }
1062
1062
  }
1063
- document.querySelector('.panels').scrollTop = scrollPosition;
1063
+ setTimeout(() => {
1064
+ document.querySelector(
1065
+ 'div#paneles.panels',
1066
+ ).scrollTop = scrollPosition;
1067
+ }, 1000);
1064
1068
  }
1065
1069
  }
1066
1070
  }
@@ -4437,25 +4441,59 @@ class MenuWidget extends React.Component {
4437
4441
  </span>
4438
4442
  )}
4439
4443
  </div>
4440
- <div className="search-panel">
4441
- <div className="menu-searchpanel">
4442
- <div class="search-input menu-search-input">
4443
- <input
4444
- type="text"
4445
- id="menu-searchtext"
4446
- maxlength="200"
4447
- placeholder="Search products and datasets"
4448
- onChange={() => this.openClearButton()}
4449
- onKeyDown={(e) => {
4450
- if (e.code === 'Enter') {
4451
- this.menuSearch();
4452
- }
4453
- }}
4454
- />
4455
- <div class="search-input-actions">
4444
+ <div
4445
+ className="panels"
4446
+ id="paneles"
4447
+ onScroll={() => this.storePanelScroll()}
4448
+ >
4449
+ <div className="search-panel">
4450
+ <div className="menu-searchpanel">
4451
+ <div class="search-input menu-search-input">
4452
+ <input
4453
+ type="text"
4454
+ id="menu-searchtext"
4455
+ maxlength="200"
4456
+ placeholder="Search products and datasets"
4457
+ onChange={() => this.openClearButton()}
4458
+ onKeyDown={(e) => {
4459
+ if (e.code === 'Enter') {
4460
+ this.menuSearch();
4461
+ }
4462
+ }}
4463
+ />
4464
+ <div class="search-input-actions">
4465
+ <button
4466
+ class="ui basic icon button search-input-clear-icon-button clearsearch"
4467
+ onClick={() => this.clearMenuText()}
4468
+ onKeyDown={(e) => {
4469
+ if (
4470
+ !e.altKey &&
4471
+ e.code !== 'Tab' &&
4472
+ !e.ctrlKey &&
4473
+ e.code !== 'Delete' &&
4474
+ !e.shiftKey &&
4475
+ !e.code.startsWith('F')
4476
+ ) {
4477
+ this.clearMenuText();
4478
+ }
4479
+ }}
4480
+ >
4481
+ <svg
4482
+ xmlns="http://www.w3.org/2000/svg"
4483
+ viewBox="0 0 26 26"
4484
+ class="icon"
4485
+ >
4486
+ <path
4487
+ fill-rule="evenodd"
4488
+ d="M27.899 9.515L26.485 8.101 18 16.586 9.514 8.101 8.1 9.515 16.586 18 8.1 26.486 9.514 27.9 18 19.414 26.485 27.9 27.899 26.486 19.414 18z"
4489
+ ></path>
4490
+ </svg>
4491
+ </button>
4492
+ </div>
4456
4493
  <button
4457
- class="ui basic icon button search-input-clear-icon-button clearsearch"
4458
- onClick={() => this.clearMenuText()}
4494
+ aria-label="Search"
4495
+ class="button menu-search-button"
4496
+ onClick={() => this.menuSearch()}
4459
4497
  onKeyDown={(e) => {
4460
4498
  if (
4461
4499
  !e.altKey &&
@@ -4465,63 +4503,57 @@ class MenuWidget extends React.Component {
4465
4503
  !e.shiftKey &&
4466
4504
  !e.code.startsWith('F')
4467
4505
  ) {
4468
- this.clearMenuText();
4506
+ this.menuSearch();
4469
4507
  }
4470
4508
  }}
4471
4509
  >
4510
+ <span class="ccl-icon-zoom search-menu-icon"></span>
4511
+ </button>
4512
+ </div>
4513
+ <div class="filters-element filter-logo filters-header">
4514
+ <div class="filters-title">
4472
4515
  <svg
4473
4516
  xmlns="http://www.w3.org/2000/svg"
4474
- viewBox="0 0 26 26"
4475
- class="icon"
4517
+ viewBox="0 0 36 36"
4518
+ class="icon ui"
4476
4519
  >
4477
4520
  <path
4478
4521
  fill-rule="evenodd"
4479
- d="M27.899 9.515L26.485 8.101 18 16.586 9.514 8.101 8.1 9.515 16.586 18 8.1 26.486 9.514 27.9 18 19.414 26.485 27.9 27.899 26.486 19.414 18z"
4522
+ d="M5.0916,5.0002 L14.9996,19.3132 L14.9996,34.0002 L20.9996,29.5002 L20.9996,19.3132 L30.9086,5.0002 L5.0916,5.0002 Z M17.0006,18.6872 L8.9086,7.0002 L27.0916,7.0002 L19.0006,18.6872 L19.0006,28.5002 L17.0006,30.0002 L17.0006,18.6872 Z"
4480
4523
  ></path>
4481
4524
  </svg>
4482
- </button>
4483
- </div>
4484
- <button
4485
- aria-label="Search"
4486
- class="button menu-search-button"
4487
- onClick={() => this.menuSearch()}
4488
- onKeyDown={(e) => {
4489
- if (
4490
- !e.altKey &&
4491
- e.code !== 'Tab' &&
4492
- !e.ctrlKey &&
4493
- e.code !== 'Delete' &&
4494
- !e.shiftKey &&
4495
- !e.code.startsWith('F')
4496
- ) {
4497
- this.menuSearch();
4498
- }
4499
- }}
4500
- >
4501
- <span class="ccl-icon-zoom search-menu-icon"></span>
4502
- </button>
4503
- </div>
4504
- <div class="filters-element filter-logo filters-header">
4505
- <div class="filters-title">
4506
- <svg
4507
- xmlns="http://www.w3.org/2000/svg"
4508
- viewBox="0 0 36 36"
4509
- class="icon ui"
4510
- >
4511
- <path
4512
- fill-rule="evenodd"
4513
- d="M5.0916,5.0002 L14.9996,19.3132 L14.9996,34.0002 L20.9996,29.5002 L20.9996,19.3132 L30.9086,5.0002 L5.0916,5.0002 Z M17.0006,18.6872 L8.9086,7.0002 L27.0916,7.0002 L19.0006,18.6872 L19.0006,28.5002 L17.0006,30.0002 L17.0006,18.6872 Z"
4514
- ></path>
4515
- </svg>
4516
- <span class="filters-title-bold">Filters</span>
4525
+ <span class="filters-title-bold">Filters</span>
4526
+ <div
4527
+ className="clear-filters"
4528
+ tabIndex="0"
4529
+ role="button"
4530
+ onClick={() => {
4531
+ this.clearFilters();
4532
+ this.menuSearch();
4533
+ }}
4534
+ onKeyDown={(e) => {
4535
+ if (
4536
+ !e.altKey &&
4537
+ e.code !== 'Tab' &&
4538
+ !e.ctrlKey &&
4539
+ e.code !== 'Delete' &&
4540
+ !e.shiftKey &&
4541
+ !e.code.startsWith('F')
4542
+ ) {
4543
+ this.clearFilters();
4544
+ this.menuSearch();
4545
+ }
4546
+ }}
4547
+ >
4548
+ Clear filters
4549
+ </div>
4550
+ </div>
4551
+
4517
4552
  <div
4518
- className="clear-filters"
4519
- tabIndex="0"
4553
+ className="dropdown-icon close-filters-icon"
4520
4554
  role="button"
4521
- onClick={() => {
4522
- this.clearFilters();
4523
- this.menuSearch();
4524
- }}
4555
+ tabIndex="0"
4556
+ onClick={() => this.closeFilters()}
4525
4557
  onKeyDown={(e) => {
4526
4558
  if (
4527
4559
  !e.altKey &&
@@ -4531,77 +4563,49 @@ class MenuWidget extends React.Component {
4531
4563
  !e.shiftKey &&
4532
4564
  !e.code.startsWith('F')
4533
4565
  ) {
4534
- this.clearFilters();
4535
- this.menuSearch();
4566
+ this.closeFilters();
4536
4567
  }
4537
4568
  }}
4538
4569
  >
4539
- Clear filters
4570
+ <FontAwesomeIcon icon={['fas', this.state.filterArrow]} />
4540
4571
  </div>
4541
4572
  </div>
4542
-
4543
- <div
4544
- className="dropdown-icon close-filters-icon"
4545
- role="button"
4546
- tabIndex="0"
4547
- onClick={() => this.closeFilters()}
4548
- onKeyDown={(e) => {
4549
- if (
4550
- !e.altKey &&
4551
- e.code !== 'Tab' &&
4552
- !e.ctrlKey &&
4553
- e.code !== 'Delete' &&
4554
- !e.shiftKey &&
4555
- !e.code.startsWith('F')
4556
- ) {
4557
- this.closeFilters();
4558
- }
4559
- }}
4560
- >
4561
- <FontAwesomeIcon icon={['fas', this.state.filterArrow]} />
4573
+ <div className="filters-panel">
4574
+ <span className="menu-filter">
4575
+ Component
4576
+ <select
4577
+ id="select-component"
4578
+ class="esri-select filter-select"
4579
+ onBlur={() => {}}
4580
+ onChange={() => {
4581
+ this.loadProductFilters();
4582
+ this.menuSearch();
4583
+ }}
4584
+ ></select>
4585
+ </span>
4586
+ <span className="menu-filter">
4587
+ Product groups
4588
+ <select
4589
+ id="select-product"
4590
+ class="esri-select filter-select"
4591
+ onBlur={() => {}}
4592
+ onChange={() => {
4593
+ this.loadFamilyFilters();
4594
+ this.menuSearch();
4595
+ }}
4596
+ ></select>
4597
+ </span>
4598
+ <span className="menu-filter menu-family-filter">
4599
+ Family
4600
+ <select
4601
+ id="select-family"
4602
+ class="esri-select filter-select"
4603
+ ></select>
4604
+ </span>
4562
4605
  </div>
4563
4606
  </div>
4564
- <div className="filters-panel">
4565
- <span className="menu-filter">
4566
- Component
4567
- <select
4568
- id="select-component"
4569
- class="esri-select filter-select"
4570
- onBlur={() => {}}
4571
- onChange={() => {
4572
- this.loadProductFilters();
4573
- this.menuSearch();
4574
- }}
4575
- ></select>
4576
- </span>
4577
- <span className="menu-filter">
4578
- Product groups
4579
- <select
4580
- id="select-product"
4581
- class="esri-select filter-select"
4582
- onBlur={() => {}}
4583
- onChange={() => {
4584
- this.loadFamilyFilters();
4585
- this.menuSearch();
4586
- }}
4587
- ></select>
4588
- </span>
4589
- <span className="menu-filter menu-family-filter">
4590
- Family
4591
- <select
4592
- id="select-family"
4593
- class="esri-select filter-select"
4594
- ></select>
4595
- </span>
4596
- </div>
4597
4607
  </div>
4598
- </div>
4599
- <div className="no-filter-result-message">No data available</div>
4600
- <div
4601
- className="panels"
4602
- id="paneles"
4603
- onScroll={() => this.storePanelScroll()}
4604
- >
4608
+ <div className="no-filter-result-message">No data available</div>
4605
4609
  <div
4606
4610
  className={
4607
4611
  !this.props.download ? 'panel panel-selected' : 'panel'
@@ -1638,13 +1638,13 @@ div.map-container.popup-block {
1638
1638
  }
1639
1639
 
1640
1640
  .filter-select {
1641
- max-width: 19rem;
1641
+ max-width: 18rem;
1642
1642
  height: 1.5rem !important;
1643
1643
  }
1644
1644
 
1645
1645
  .clear-filters {
1646
1646
  display: none;
1647
- margin-left: 16rem;
1647
+ margin-left: 15rem;
1648
1648
  font-size: small;
1649
1649
  text-decoration: underline;
1650
1650
  }
@@ -1652,7 +1652,7 @@ div.map-container.popup-block {
1652
1652
  .clearsearch.search-input-clear-icon-button.button {
1653
1653
  position: absolute;
1654
1654
  top: 4.3rem;
1655
- left: 23rem;
1655
+ left: 22.5rem;
1656
1656
  display: none;
1657
1657
  }
1658
1658