@eeacms/volto-arcgis-block 0.1.326 → 0.1.328

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,7 +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.326](https://github.com/eea/volto-arcgis-block/compare/0.1.325...0.1.326) - 7 January 2025
7
+ ### [0.1.328](https://github.com/eea/volto-arcgis-block/compare/0.1.327...0.1.328) - 9 January 2025
8
+
9
+ ### [0.1.327](https://github.com/eea/volto-arcgis-block/compare/0.1.326...0.1.327) - 8 January 2025
10
+
11
+ ### [0.1.326](https://github.com/eea/volto-arcgis-block/compare/0.1.325...0.1.326) - 8 January 2025
8
12
 
9
13
  ### [0.1.325](https://github.com/eea/volto-arcgis-block/compare/0.1.324...0.1.325) - 20 December 2024
10
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-arcgis-block",
3
- "version": "0.1.326",
3
+ "version": "0.1.328",
4
4
  "description": "volto-arcgis-block: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: CodeSyntax",
@@ -4220,7 +4220,7 @@ class MenuWidget extends React.Component {
4220
4220
  for (let index = 0; index < this.compCfg.length; index++) {
4221
4221
  let componentFound = false;
4222
4222
  if (
4223
- index.toString() === componentFilter ||
4223
+ this.compCfg[index].ComponentPosition.toString() === componentFilter ||
4224
4224
  componentFilter === 'default'
4225
4225
  ) {
4226
4226
  for (let j = 0; j < this.compCfg[index].Products.length; j++) {
@@ -4437,25 +4437,59 @@ class MenuWidget extends React.Component {
4437
4437
  </span>
4438
4438
  )}
4439
4439
  </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">
4440
+ <div
4441
+ className="panels"
4442
+ id="paneles"
4443
+ onScroll={() => this.storePanelScroll()}
4444
+ >
4445
+ <div className="search-panel">
4446
+ <div className="menu-searchpanel">
4447
+ <div class="search-input menu-search-input">
4448
+ <input
4449
+ type="text"
4450
+ id="menu-searchtext"
4451
+ maxlength="200"
4452
+ placeholder="Search products and datasets"
4453
+ onChange={() => this.openClearButton()}
4454
+ onKeyDown={(e) => {
4455
+ if (e.code === 'Enter') {
4456
+ this.menuSearch();
4457
+ }
4458
+ }}
4459
+ />
4460
+ <div class="search-input-actions">
4461
+ <button
4462
+ class="ui basic icon button search-input-clear-icon-button clearsearch"
4463
+ onClick={() => this.clearMenuText()}
4464
+ onKeyDown={(e) => {
4465
+ if (
4466
+ !e.altKey &&
4467
+ e.code !== 'Tab' &&
4468
+ !e.ctrlKey &&
4469
+ e.code !== 'Delete' &&
4470
+ !e.shiftKey &&
4471
+ !e.code.startsWith('F')
4472
+ ) {
4473
+ this.clearMenuText();
4474
+ }
4475
+ }}
4476
+ >
4477
+ <svg
4478
+ xmlns="http://www.w3.org/2000/svg"
4479
+ viewBox="0 0 26 26"
4480
+ class="icon"
4481
+ >
4482
+ <path
4483
+ fill-rule="evenodd"
4484
+ 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"
4485
+ ></path>
4486
+ </svg>
4487
+ </button>
4488
+ </div>
4456
4489
  <button
4457
- class="ui basic icon button search-input-clear-icon-button clearsearch"
4458
- onClick={() => this.clearMenuText()}
4490
+ aria-label="Search"
4491
+ class="button menu-search-button"
4492
+ onClick={() => this.menuSearch()}
4459
4493
  onKeyDown={(e) => {
4460
4494
  if (
4461
4495
  !e.altKey &&
@@ -4465,63 +4499,57 @@ class MenuWidget extends React.Component {
4465
4499
  !e.shiftKey &&
4466
4500
  !e.code.startsWith('F')
4467
4501
  ) {
4468
- this.clearMenuText();
4502
+ this.menuSearch();
4469
4503
  }
4470
4504
  }}
4471
4505
  >
4506
+ <span class="ccl-icon-zoom search-menu-icon"></span>
4507
+ </button>
4508
+ </div>
4509
+ <div class="filters-element filter-logo filters-header">
4510
+ <div class="filters-title">
4472
4511
  <svg
4473
4512
  xmlns="http://www.w3.org/2000/svg"
4474
- viewBox="0 0 26 26"
4475
- class="icon"
4513
+ viewBox="0 0 36 36"
4514
+ class="icon ui"
4476
4515
  >
4477
4516
  <path
4478
4517
  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"
4518
+ 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
4519
  ></path>
4481
4520
  </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>
4521
+ <span class="filters-title-bold">Filters</span>
4522
+ <div
4523
+ className="clear-filters"
4524
+ tabIndex="0"
4525
+ role="button"
4526
+ onClick={() => {
4527
+ this.clearFilters();
4528
+ this.menuSearch();
4529
+ }}
4530
+ onKeyDown={(e) => {
4531
+ if (
4532
+ !e.altKey &&
4533
+ e.code !== 'Tab' &&
4534
+ !e.ctrlKey &&
4535
+ e.code !== 'Delete' &&
4536
+ !e.shiftKey &&
4537
+ !e.code.startsWith('F')
4538
+ ) {
4539
+ this.clearFilters();
4540
+ this.menuSearch();
4541
+ }
4542
+ }}
4543
+ >
4544
+ Clear filters
4545
+ </div>
4546
+ </div>
4547
+
4517
4548
  <div
4518
- className="clear-filters"
4519
- tabIndex="0"
4549
+ className="dropdown-icon close-filters-icon"
4520
4550
  role="button"
4521
- onClick={() => {
4522
- this.clearFilters();
4523
- this.menuSearch();
4524
- }}
4551
+ tabIndex="0"
4552
+ onClick={() => this.closeFilters()}
4525
4553
  onKeyDown={(e) => {
4526
4554
  if (
4527
4555
  !e.altKey &&
@@ -4531,77 +4559,49 @@ class MenuWidget extends React.Component {
4531
4559
  !e.shiftKey &&
4532
4560
  !e.code.startsWith('F')
4533
4561
  ) {
4534
- this.clearFilters();
4535
- this.menuSearch();
4562
+ this.closeFilters();
4536
4563
  }
4537
4564
  }}
4538
4565
  >
4539
- Clear filters
4566
+ <FontAwesomeIcon icon={['fas', this.state.filterArrow]} />
4540
4567
  </div>
4541
4568
  </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]} />
4569
+ <div className="filters-panel">
4570
+ <span className="menu-filter">
4571
+ Component
4572
+ <select
4573
+ id="select-component"
4574
+ class="esri-select filter-select"
4575
+ onBlur={() => {}}
4576
+ onChange={() => {
4577
+ this.loadProductFilters();
4578
+ this.menuSearch();
4579
+ }}
4580
+ ></select>
4581
+ </span>
4582
+ <span className="menu-filter">
4583
+ Product groups
4584
+ <select
4585
+ id="select-product"
4586
+ class="esri-select filter-select"
4587
+ onBlur={() => {}}
4588
+ onChange={() => {
4589
+ this.loadFamilyFilters();
4590
+ this.menuSearch();
4591
+ }}
4592
+ ></select>
4593
+ </span>
4594
+ <span className="menu-filter menu-family-filter">
4595
+ Family
4596
+ <select
4597
+ id="select-family"
4598
+ class="esri-select filter-select"
4599
+ ></select>
4600
+ </span>
4562
4601
  </div>
4563
4602
  </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
4603
  </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
- >
4604
+ <div className="no-filter-result-message">No data available</div>
4605
4605
  <div
4606
4606
  className={
4607
4607
  !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