@esri/solutions-components 0.11.32 → 0.11.33

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.
Files changed (89) hide show
  1. package/dist/cjs/{asyncToGenerator-c7fc3ee4.js → asyncToGenerator-ccb3278b.js} +1 -1
  2. package/dist/cjs/basemap-gallery_7.cjs.entry.js +14 -9
  3. package/dist/cjs/buffer-tools_2.cjs.entry.js +1 -1
  4. package/dist/cjs/card-manager_3.cjs.entry.js +90 -13
  5. package/dist/cjs/consent-manager.cjs.entry.js +3 -3
  6. package/dist/cjs/create-feature_4.cjs.entry.js +7 -7
  7. package/dist/cjs/create-related-feature_3.cjs.entry.js +1 -1
  8. package/dist/cjs/crowdsource-manager.cjs.entry.js +1 -1
  9. package/dist/cjs/crowdsource-reporter.cjs.entry.js +1 -1
  10. package/dist/cjs/delete-dialog.cjs.entry.js +1 -1
  11. package/dist/cjs/{downloadUtils-c7dac47d.js → downloadUtils-fefa863b.js} +3 -3
  12. package/dist/cjs/feature-list.cjs.entry.js +4 -4
  13. package/dist/cjs/{index.es-3c2404c3.js → index.es-0441a948.js} +2 -2
  14. package/dist/cjs/json-editor_7.cjs.entry.js +1 -1
  15. package/dist/cjs/map-layer-picker.cjs.entry.js +1 -1
  16. package/dist/cjs/map-select-tools_3.cjs.entry.js +3 -3
  17. package/dist/cjs/{popupUtils-27f6cf2a.js → popupUtils-a68a20db.js} +2 -2
  18. package/dist/cjs/public-notification.cjs.entry.js +3 -3
  19. package/dist/cjs/solution-configuration.cjs.entry.js +1 -1
  20. package/dist/cjs/solution-contents_3.cjs.entry.js +1 -1
  21. package/dist/cjs/solution-item-accordion.cjs.entry.js +1 -1
  22. package/dist/cjs/spatial-ref.cjs.entry.js +1 -1
  23. package/dist/collection/components/basemap-gallery/basemap-gallery.js +13 -8
  24. package/dist/collection/components/card-manager/card-manager.js +1 -1
  25. package/dist/collection/components/edit-card/edit-card.js +1 -1
  26. package/dist/collection/components/info-card/info-card.js +2 -2
  27. package/dist/collection/components/layer-table/layer-table.js +86 -9
  28. package/dist/components/basemap-gallery2.js +13 -8
  29. package/dist/components/card-manager2.js +1 -1
  30. package/dist/components/edit-card2.js +1 -1
  31. package/dist/components/info-card2.js +2 -2
  32. package/dist/components/layer-table2.js +87 -10
  33. package/dist/esm/{asyncToGenerator-96b2368d.js → asyncToGenerator-48cd21fe.js} +1 -1
  34. package/dist/esm/basemap-gallery_7.entry.js +14 -9
  35. package/dist/esm/buffer-tools_2.entry.js +1 -1
  36. package/dist/esm/card-manager_3.entry.js +90 -13
  37. package/dist/esm/consent-manager.entry.js +3 -3
  38. package/dist/esm/create-feature_4.entry.js +7 -7
  39. package/dist/esm/create-related-feature_3.entry.js +1 -1
  40. package/dist/esm/crowdsource-manager.entry.js +1 -1
  41. package/dist/esm/crowdsource-reporter.entry.js +1 -1
  42. package/dist/esm/delete-dialog.entry.js +1 -1
  43. package/dist/esm/{downloadUtils-a9fc6dd2.js → downloadUtils-7ef5420f.js} +3 -3
  44. package/dist/esm/feature-list.entry.js +4 -4
  45. package/dist/esm/{index.es-87662946.js → index.es-c379ea10.js} +2 -2
  46. package/dist/esm/json-editor_7.entry.js +1 -1
  47. package/dist/esm/map-layer-picker.entry.js +1 -1
  48. package/dist/esm/map-select-tools_3.entry.js +3 -3
  49. package/dist/esm/{popupUtils-78f2029e.js → popupUtils-ef89df87.js} +2 -2
  50. package/dist/esm/public-notification.entry.js +3 -3
  51. package/dist/esm/solution-configuration.entry.js +1 -1
  52. package/dist/esm/solution-contents_3.entry.js +1 -1
  53. package/dist/esm/solution-item-accordion.entry.js +1 -1
  54. package/dist/esm/spatial-ref.entry.js +1 -1
  55. package/dist/solutions-components/p-035a1d38.entry.js +6 -0
  56. package/dist/solutions-components/{p-c83b1a4a.entry.js → p-11ad8edc.entry.js} +1 -1
  57. package/dist/solutions-components/{p-f6d19f6d.entry.js → p-1325fa9e.entry.js} +1 -1
  58. package/dist/solutions-components/{p-60b1fe27.entry.js → p-2be59c38.entry.js} +1 -1
  59. package/dist/solutions-components/{p-455c19fa.js → p-4379cc5f.js} +2 -2
  60. package/dist/solutions-components/{p-0a60707c.entry.js → p-5096280f.entry.js} +1 -1
  61. package/dist/solutions-components/p-51033697.entry.js +6 -0
  62. package/dist/solutions-components/p-51e04c86.js +21 -0
  63. package/dist/solutions-components/{p-30b5dcaf.entry.js → p-605597cf.entry.js} +1 -1
  64. package/dist/solutions-components/{p-d65f8b73.js → p-62a0aa8e.js} +1 -1
  65. package/dist/solutions-components/{p-a38eee28.entry.js → p-681a41f3.entry.js} +1 -1
  66. package/dist/solutions-components/{p-dc188d13.js → p-6d1ee086.js} +1 -1
  67. package/dist/solutions-components/{p-50b4945e.entry.js → p-7eec82e3.entry.js} +1 -1
  68. package/dist/solutions-components/{p-5b481f0d.entry.js → p-8b05b49c.entry.js} +1 -1
  69. package/dist/solutions-components/{p-6dc629dc.entry.js → p-93ebcb9b.entry.js} +1 -1
  70. package/dist/solutions-components/{p-b04179db.entry.js → p-b1f11c67.entry.js} +1 -1
  71. package/dist/solutions-components/{p-1aad0b63.entry.js → p-b3b5dca4.entry.js} +1 -1
  72. package/dist/solutions-components/{p-b8e4345e.entry.js → p-c45ba7dd.entry.js} +1 -1
  73. package/dist/solutions-components/{p-4a2870b0.entry.js → p-de3ba7be.entry.js} +1 -1
  74. package/dist/solutions-components/{p-7f36cfb0.entry.js → p-debeb4dc.entry.js} +1 -1
  75. package/dist/solutions-components/{p-f8854c5e.entry.js → p-e68f5f54.entry.js} +1 -1
  76. package/dist/solutions-components/{p-f3ba92d5.entry.js → p-f2cfed3a.entry.js} +1 -1
  77. package/dist/solutions-components/solutions-components.esm.js +1 -1
  78. package/dist/solutions-components_commit.txt +6 -6
  79. package/dist/types/components/layer-table/layer-table.d.ts +34 -0
  80. package/package.json +1 -1
  81. package/dist/solutions-components/p-0def29e6.entry.js +0 -6
  82. package/dist/solutions-components/p-31159fc6.js +0 -21
  83. package/dist/solutions-components/p-76126e43.entry.js +0 -6
  84. /package/dist/cjs/{locale-809dbc6e.js → locale-81070bd9.js} +0 -0
  85. /package/dist/cjs/{typeof-2a7e2dec.js → typeof-920a4426.js} +0 -0
  86. /package/dist/esm/{locale-fa8258bf.js → locale-4be8e04f.js} +0 -0
  87. /package/dist/esm/{typeof-ef2a007d.js → typeof-2511410e.js} +0 -0
  88. /package/dist/solutions-components/{p-57be3b9d.js → p-8a74a780.js} +0 -0
  89. /package/dist/solutions-components/{p-4fe489cf.js → p-af7e43e0.js} +0 -0
@@ -6,7 +6,7 @@
6
6
  'use strict';
7
7
 
8
8
  const _commonjsHelpers = require('./_commonjsHelpers-baf43783.js');
9
- const _typeof = require('./typeof-2a7e2dec.js');
9
+ const _typeof = require('./typeof-920a4426.js');
10
10
 
11
11
  var defineProperty = {exports: {}};
12
12
 
@@ -8,7 +8,7 @@
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
10
  const index = require('./index-f7713138.js');
11
- const locale = require('./locale-809dbc6e.js');
11
+ const locale = require('./locale-81070bd9.js');
12
12
  require('./_commonjsHelpers-baf43783.js');
13
13
 
14
14
  const basemapGalleryCss = ":host{display:block}";
@@ -127,9 +127,6 @@ const BasemapGallery = class {
127
127
  */
128
128
  async _initBaseMapGallery(view) {
129
129
  if (this.BasemapGallery) {
130
- if (this.basemapWidget) {
131
- this.basemapWidget.destroy();
132
- }
133
130
  const source = new this.PortalBasemapsSource({
134
131
  query: this.basemapConfig?.basemapGroupId ? `id:${this.basemapConfig.basemapGroupId}` : null,
135
132
  filterFunction: this.basemapConfig ? (basemap) => {
@@ -137,11 +134,19 @@ const BasemapGallery = class {
137
134
  } : () => true
138
135
  });
139
136
  await source.refresh();
140
- this.basemapWidget = new this.BasemapGallery({
141
- container: this._basemapElement,
142
- view,
143
- source
144
- });
137
+ // Don't destroy and re-create this widget as it leads to a duplication
138
+ // of the basemaps listed
139
+ if (!this.basemapWidget) {
140
+ this.basemapWidget = new this.BasemapGallery({
141
+ container: this._basemapElement,
142
+ view,
143
+ source
144
+ });
145
+ }
146
+ else {
147
+ this.basemapWidget.view = view;
148
+ this.basemapWidget.source = source;
149
+ }
145
150
  }
146
151
  }
147
152
  static get watchers() { return {
@@ -8,7 +8,7 @@
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
10
  const index = require('./index-f7713138.js');
11
- const locale = require('./locale-809dbc6e.js');
11
+ const locale = require('./locale-81070bd9.js');
12
12
  const interfaces = require('./interfaces-09c4c40e.js');
13
13
  const publicNotificationStore = require('./publicNotificationStore-f55899b2.js');
14
14
  require('./_commonjsHelpers-baf43783.js');
@@ -8,12 +8,12 @@
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
10
  const index = require('./index-f7713138.js');
11
- const locale = require('./locale-809dbc6e.js');
11
+ const locale = require('./locale-81070bd9.js');
12
12
  const mapViewUtils = require('./mapViewUtils-8b26c9d0.js');
13
- const downloadUtils = require('./downloadUtils-c7dac47d.js');
13
+ const downloadUtils = require('./downloadUtils-fefa863b.js');
14
14
  require('./_commonjsHelpers-baf43783.js');
15
15
  require('./interfaces-09c4c40e.js');
16
- require('./typeof-2a7e2dec.js');
16
+ require('./typeof-920a4426.js');
17
17
  require('./solution-resource-d0a2f7fe.js');
18
18
  require('./restHelpersGet-e4639890.js');
19
19
  require('./update-243ea407.js');
@@ -140,7 +140,7 @@ const CardManager = class {
140
140
  const heading = isTable ? this._translations.createRecord : this._translations.createFeature;
141
141
  const guideMsg = this.customInfoText ? this.customInfoText : this.selectingFeatureFromMap ? this._translations.selectFeaturesFromMapToStart : this._translations.selectFeaturesToStart;
142
142
  const showCreateFeatureOrRecordBtn = this.enableCreateFeatures && this.layer?.capabilities?.operations?.supportsAdd;
143
- return (index.h(index.Host, { key: '803f5130e6f4fa0bf97cfdd2776e176786e736cc' }, index.h("div", { key: '7c0a756f5de5f536b52d2e9f6629593eb3c85781', class: "overflow-auto height-full" }, index.h("calcite-shell", { key: '9a6366bba429d5c29a5f1c556d6812f44d28ee2c', class: "position-relative " + featuresClass }, index.h("div", { key: '61cb9f7942eb209e5e0bd751ab4b5ca026086882', class: "position-static z-index-500" }, index.h("info-card", { key: '0c3b6f958384dab4bc1db2917a88215bafe330b1', enableEditGeometry: this.enableEditGeometry, enableSnapping: this.enableSnapping, graphics: this._graphics, isLoading: this._cardLoading, isMobile: this.isMobile, locale: this.locale, mapView: this.mapView, showCloseBtn: true }))), index.h("calcite-shell", { key: 'db9233d29cc88ddc6cb023bcf9e9190ecb721214', class: "position-relative " + messageClass }, index.h("calcite-panel", { key: '0d1c22a3ad3d2d2a56054b2e8609697987b45ca7' }, index.h("div", { key: 'cc5f7faa934f474ddca2d0ab74fd46dac240cc6f', class: "padding-1" }, index.h("calcite-notice", { key: '2c2771696892455fcb1ec24d895cd321a84a8f49', icon: this.selectingFeatureFromMap ? "map" : "table", iconFlipRtl: true, open: true }, index.h("div", { key: '0bbbd13e4e9a7b2240a85b41dbd00fc2a7e39c75', slot: "message" }, guideMsg))), !this.isMobile && showCreateFeatureOrRecordBtn && index.h("calcite-button", { key: '67bac627f68fc6bcda2b1a8965ab6d7fb12d2e4c', disabled: !this.layer, onClick: () => this._createFeatureBtnClicked(), slot: "footer", width: "full" }, isTable ? this._translations.createRecord : this._translations.createFeature))), index.h("calcite-shell", { key: 'cd44af48bb05fd6ac41c0d66bdd9e01826ece1a4', class: "position-relative " + createFeatureClass }, index.h("calcite-flow-item", { key: '648dfdc4fb559ecbf64ee43791e3d9799c346f1a', selected: true }, index.h("calcite-panel", { key: '855df56ed576e52c94dbe3cfa8f6d57427a37ba2', heading: heading }, index.h("calcite-action", { key: '156d1b20da3f02de66879531802aa2d2fb99b1ca', class: "back-button hydrated", icon: "chevron-left", onClick: this._backFromCreateFeature.bind(this), scale: "s", slot: "header-actions-start", text: "" }), this.getEditorComponent(), this._showSubmitBtn && index.h("calcite-button", { key: '9b4556876d579a4f2bd02849737cd55b55f87cbd', appearance: "solid", class: "footer-top-button footer-button", onClick: () => void this._createFeature.submit(), slot: "footer", width: "full" }, this._translations.create)))))));
143
+ return (index.h(index.Host, { key: '803f5130e6f4fa0bf97cfdd2776e176786e736cc' }, index.h("div", { key: '7c0a756f5de5f536b52d2e9f6629593eb3c85781', class: "overflow-auto height-full" }, index.h("calcite-shell", { key: '9a6366bba429d5c29a5f1c556d6812f44d28ee2c', class: "position-relative " + featuresClass }, index.h("div", { key: '61cb9f7942eb209e5e0bd751ab4b5ca026086882', class: "position-static z-index-500" }, index.h("info-card", { key: 'aa2e8443af374a37dfebd0d5e87ca052221339a7', enableEditGeometry: this.enableEditGeometry, enableSnapping: this.enableSnapping, graphics: this._graphics, highlightEnabled: false, isLoading: this._cardLoading, isMobile: this.isMobile, locale: this.locale, mapView: this.mapView, showCloseBtn: true }))), index.h("calcite-shell", { key: '4979b9d94cd68f36b5d9e6ea59ffc0baecd180c0', class: "position-relative " + messageClass }, index.h("calcite-panel", { key: '9e02f86010e2348668a995de7d3644f0ddf838a6' }, index.h("div", { key: '83a5ac2003838734308d81dc2903313cb6c07e9a', class: "padding-1" }, index.h("calcite-notice", { key: 'e380ab334a7b4d65fb64b51bc2b7feb61771f813', icon: this.selectingFeatureFromMap ? "map" : "table", iconFlipRtl: true, open: true }, index.h("div", { key: '2ac48545c9c825d8d266a96b034dba7d17c024c1', slot: "message" }, guideMsg))), !this.isMobile && showCreateFeatureOrRecordBtn && index.h("calcite-button", { key: '300e922dcf00b72657ca48382579746073a1a646', disabled: !this.layer, onClick: () => this._createFeatureBtnClicked(), slot: "footer", width: "full" }, isTable ? this._translations.createRecord : this._translations.createFeature))), index.h("calcite-shell", { key: '1c279da12e0885ed5ecae714a0958e76ac3734d5', class: "position-relative " + createFeatureClass }, index.h("calcite-flow-item", { key: '8e54e6abf83e3d8ce487a2f76e1bdd8635f4d7b5', selected: true }, index.h("calcite-panel", { key: 'd31997df187797550eeaee6df294e4f41e6653b5', heading: heading }, index.h("calcite-action", { key: '636c83f8d5f361c1eb35a5b524565d0bd072489f', class: "back-button hydrated", icon: "chevron-left", onClick: this._backFromCreateFeature.bind(this), scale: "s", slot: "header-actions-start", text: "" }), this.getEditorComponent(), this._showSubmitBtn && index.h("calcite-button", { key: 'bd1a3ee472e275c57e9c40c217a3c0ac9c8e8715', appearance: "solid", class: "footer-top-button footer-button", onClick: () => void this._createFeature.submit(), slot: "footer", width: "full" }, this._translations.create)))))));
144
144
  }
145
145
  /**
146
146
  * Returns the editor component for adding feature
@@ -426,6 +426,18 @@ const LayerTable = class {
426
426
  * boolean: When true we will not evaluate if the editor has any pending edits
427
427
  */
428
428
  _skipEditCheck = false;
429
+ /**
430
+ * __esri.Handle: highlight handle for the current feature
431
+ */
432
+ _currentFeatureHighlightHandle;
433
+ /**
434
+ * __esri.Handle: highlight handle for the default features
435
+ */
436
+ _defaultFeaturesHandle;
437
+ /**
438
+ * __esri.Handle: highlight handle for temporary / hovered feature
439
+ */
440
+ _temporaryFeatureHandle;
429
441
  /**
430
442
  * __esri.Handle: handle for the filter by extent
431
443
  */
@@ -442,6 +454,10 @@ const LayerTable = class {
442
454
  * boolean: When true allow table to update the records
443
455
  */
444
456
  _shouldUpdateTableOnExtentChange = true;
457
+ /**
458
+ * any: layer view of the selected layer
459
+ */
460
+ _selectedLayerView;
445
461
  //--------------------------------------------------------------------------
446
462
  //
447
463
  // Watch handlers
@@ -541,6 +557,19 @@ const LayerTable = class {
541
557
  if (this.mapView) {
542
558
  this._floorExpression = undefined;
543
559
  this._searchExpression = undefined;
560
+ // highlight group for selections
561
+ this.mapView.highlights = [
562
+ {
563
+ name: "default",
564
+ color: "#00FFFF"
565
+ }, {
566
+ name: "current-selection",
567
+ color: "#ff00ff"
568
+ }, {
569
+ name: "temporary",
570
+ color: "#FFFF00"
571
+ }
572
+ ];
544
573
  this._updateShareUrl();
545
574
  this._mapClickHandle = this.reactiveUtils.on(() => this.mapView, "click", (event) => {
546
575
  void this._mapClicked(event);
@@ -703,6 +732,7 @@ const LayerTable = class {
703
732
  table.rowHighlightIds.removeAll();
704
733
  }
705
734
  table.rowHighlightIds.add(oid);
735
+ this._highlightFeatures(oid);
706
736
  if (this.zoomAndScrollToSelected) {
707
737
  const i = this._table.viewModel.getObjectIdIndex(oid);
708
738
  this._table.scrollToIndex(i);
@@ -821,8 +851,8 @@ const LayerTable = class {
821
851
  const tableHeightClass = this.isMobile ? "height-full" : "height-full-adjusted";
822
852
  const showSearch = this._canShowFullTextSearch();
823
853
  this._validateActiveActions();
824
- return (index.h(index.Host, { key: '407c23b3b63455e5bab7e6c5fd239faae66a313a' }, index.h("div", { key: '9630101da8fef334861a236101d37f4a2b990dbc' }, index.h("calcite-scrim", { key: '8e7844a1ba4df87ab8d6fbe4ac9265688f5354dd', class: scrimClass, loading: this._queryingData }), index.h("calcite-shell", { key: 'd0a5eaa5bdbaf0338125bbdc47c6f1801662b37a' }, this._getTableControlRow("header"), index.h("div", { key: '6747f6638aa3d1f7380c61451cb522d159e7ddb2', class: `width-full ${tableHeightClass}` }, index.h("calcite-panel", { key: 'dc5b04234e48d6c466fc514a58eee4ef6c4886ba', class: "height-full width-full" }, showSearch &&
825
- index.h("div", { key: '8aebcf99b0a159e3e7ce8c737f0558f9f147ee9b', class: "search-container border-bottom" }, index.h("calcite-input", { key: '7e4c1343755a966c4460506d6b1c205a81261155', class: "search", clearable: true, icon: "search", onCalciteInputChange: (evt) => void this._searchTextChanged(evt), placeholder: this._searchPlaceHolder, title: this._searchPlaceHolder, type: "search" })), index.h("calcite-loader", { key: '2eaa2b221d9e401a0ac1c6b379718b29eb76ea9e', class: loadingClass, label: this._translations.fetchingData, scale: "l" }), index.h("div", { key: 'fa05975786b02a18c9c9866f3390c2f549d67961', class: tableNodeClass, ref: this.onTableNodeCreate }))), !this.isMobile ? (index.h("div", { class: "bottom-left text-color height-19", id: "solutions-selected-count-div" }, this._translations.recordsSelected
854
+ return (index.h(index.Host, { key: '2d4fa2f8d4cce83ef1f972444cac99ab17ccf09a' }, index.h("div", { key: 'b53e3d454a7c2c1886bfd61e960ca7aa27bf5761' }, index.h("calcite-scrim", { key: '9a0e507b26707b8010f4d0ac3acd5a1eb8820780', class: scrimClass, loading: this._queryingData }), index.h("calcite-shell", { key: '1f1815e38773a834b7c1f6bdb783717477331522' }, this._getTableControlRow("header"), index.h("div", { key: 'fd2b3ca04bbb6b5ed9c2e044722079704b1c778e', class: `width-full ${tableHeightClass}` }, index.h("calcite-panel", { key: '0355028dce084ac034fe4b5ea8f7a0b1fec18b83', class: "height-full width-full" }, showSearch &&
855
+ index.h("div", { key: '3169fdf7d876b504c6ee1d11a0b41a55815cbc87', class: "search-container border-bottom" }, index.h("calcite-input", { key: '116960c2b95658c23c2ed2ee4b5282af0fa44f27', class: "search", clearable: true, icon: "search", onCalciteInputChange: (evt) => void this._searchTextChanged(evt), placeholder: this._searchPlaceHolder, title: this._searchPlaceHolder, type: "search" })), index.h("calcite-loader", { key: '83fdb600a68786dc0dd0dbbcfee1bc59bd311763', class: loadingClass, label: this._translations.fetchingData, scale: "l" }), index.h("div", { key: '4983053113d687a459f7749bfe7723964551c3df', class: tableNodeClass, ref: this.onTableNodeCreate }))), !this.isMobile ? (index.h("div", { class: "bottom-left text-color height-19", id: "solutions-selected-count-div" }, this._translations.recordsSelected
826
856
  .replace("{{total}}", total)
827
857
  .replace("{{selected}}", selected))) : undefined), this.createFilterModal && this._filterModal())));
828
858
  }
@@ -1534,7 +1564,7 @@ const LayerTable = class {
1534
1564
  view: this.mapView,
1535
1565
  columnReorderingEnabled: this.enableColumnReorder,
1536
1566
  editingEnabled: this._editEnabled && this.enableInlineEdit,
1537
- highlightEnabled: true,
1567
+ highlightEnabled: false,
1538
1568
  multiSortEnabled: false,
1539
1569
  attachmentsEnabled: true,
1540
1570
  visibleElements: {
@@ -1554,6 +1584,9 @@ const LayerTable = class {
1554
1584
  void this._handleOnChange(evt);
1555
1585
  });
1556
1586
  this._table.viewModel.addHandles(changeHandle);
1587
+ this._table.on('cell-pointerover', this.tempHighlightOnHover.bind(this));
1588
+ this._table.on('cell-pointerout', this._removeTempHighlight.bind(this));
1589
+ this._tableNode.addEventListener("mouseleave", this._removeTempHighlight.bind(this));
1557
1590
  //Add handle to watch size of the table and update the state to reflect the total count
1558
1591
  const handle = this.reactiveUtils.watch(() => this._table.size, (size) => {
1559
1592
  this._size = size;
@@ -1572,6 +1605,7 @@ const LayerTable = class {
1572
1605
  this._tempSelectedIds = [...this.selectedIds];
1573
1606
  this._finishOnChange();
1574
1607
  this._selectionFromMap = false;
1608
+ this._highlightFeatures(this.selectedIds[0]);
1575
1609
  }
1576
1610
  /**
1577
1611
  * Validate if the editor has any pending edits
@@ -1634,6 +1668,47 @@ const LayerTable = class {
1634
1668
  }
1635
1669
  this.featureSelectionChange.emit(this.selectedIds);
1636
1670
  }
1671
+ /**
1672
+ * Highlight feature when hovered over table row
1673
+ * @param e The Feature table pointer over event
1674
+ */
1675
+ tempHighlightOnHover(e) {
1676
+ this._removeTempHighlight();
1677
+ const temporaryFeature = e.feature;
1678
+ this._temporaryFeatureHandle = this._selectedLayerView.highlight([temporaryFeature], { name: "temporary" });
1679
+ }
1680
+ /**
1681
+ * Clears the temporary highlight
1682
+ */
1683
+ _removeTempHighlight() {
1684
+ if (this._temporaryFeatureHandle) {
1685
+ this._temporaryFeatureHandle.remove();
1686
+ }
1687
+ }
1688
+ /**
1689
+ * Highlights the current and secondary features on map
1690
+ * @param currentFeatureId selected current feature id
1691
+ */
1692
+ _highlightFeatures(currentFeatureId) {
1693
+ this._clearHighlights();
1694
+ this._currentFeatureHighlightHandle = this._selectedLayerView.highlight([currentFeatureId], { name: "current-selection" });
1695
+ if (this.selectedIds.length > 1) {
1696
+ const secondaryFeatures = this.selectedIds.filter((id) => id !== currentFeatureId);
1697
+ this._defaultFeaturesHandle = this._selectedLayerView.highlight(secondaryFeatures, { name: "default" });
1698
+ }
1699
+ }
1700
+ /**
1701
+ * Clears the highlights
1702
+ */
1703
+ _clearHighlights() {
1704
+ this._removeTempHighlight();
1705
+ if (this._currentFeatureHighlightHandle) {
1706
+ this._currentFeatureHighlightHandle.remove();
1707
+ }
1708
+ if (this._defaultFeaturesHandle) {
1709
+ this._defaultFeaturesHandle.remove();
1710
+ }
1711
+ }
1637
1712
  /**
1638
1713
  * Reset the tables column templates when we get new column config
1639
1714
  */
@@ -1932,7 +2007,10 @@ const LayerTable = class {
1932
2007
  this._outOFExtentOids = [...this._outOFExtentOids, ...outOids];
1933
2008
  }
1934
2009
  if (restoreOids.length > 0) {
1935
- this._table.highlightIds.addMany(restoreOids);
2010
+ // Merge this two array and then highlight the feature to maintain the current feature selection while restoring highlighted features
2011
+ this.selectedIds = [...new Set([...this.selectedIds, ...restoreOids])];
2012
+ this._table.highlightIds.removeAll();
2013
+ this._table.highlightIds.addMany(this.selectedIds.reverse());
1936
2014
  this._outOFExtentOids = this._outOFExtentOids.filter(oid => !restoreOids.includes(oid));
1937
2015
  }
1938
2016
  }
@@ -2030,6 +2108,7 @@ const LayerTable = class {
2030
2108
  this._table.viewModel.hideAttachmentsView();
2031
2109
  }
2032
2110
  this._table?.highlightIds.removeAll();
2111
+ this._clearHighlights();
2033
2112
  this._table?.rowHighlightIds.removeAll();
2034
2113
  this._finishOnChange();
2035
2114
  }
@@ -2140,8 +2219,7 @@ const LayerTable = class {
2140
2219
  */
2141
2220
  async _zoom() {
2142
2221
  if (this._layer) {
2143
- const selectedLayerView = await mapViewUtils.getFeatureLayerView(this.mapView, this._layer.id);
2144
- await mapViewUtils.goToSelection(this.selectedIds, selectedLayerView, this.mapView, true, undefined, this.zoomToScale);
2222
+ await mapViewUtils.goToSelection(this.selectedIds, this._selectedLayerView, this.mapView, true, undefined, this.zoomToScale);
2145
2223
  }
2146
2224
  }
2147
2225
  /**
@@ -2157,7 +2235,8 @@ const LayerTable = class {
2157
2235
  if (id !== this._layer?.id || this._featuresEmpty()) {
2158
2236
  this._fetchingData = true;
2159
2237
  const layer = await mapViewUtils.getLayerOrTable(this.mapView, id);
2160
- layer && await layer.when(() => {
2238
+ layer && await layer.when(async () => {
2239
+ this._selectedLayerView = await mapViewUtils.getFeatureLayerView(this.mapView, layer.id);
2161
2240
  if (this._table && this._table?.viewModel?.attachmentsViewOptions?.objectId) {
2162
2241
  this._table.viewModel.hideAttachmentsView();
2163
2242
  }
@@ -2196,8 +2275,6 @@ const LayerTable = class {
2196
2275
  if (fieldInfos) {
2197
2276
  columnTemplates = fieldInfos.reduce((prev, cur) => {
2198
2277
  const template = {
2199
- icon: "information",
2200
- iconText: cur.description,
2201
2278
  type: "field",
2202
2279
  fieldName: cur.name,
2203
2280
  label: cur.alias,
@@ -8,10 +8,10 @@
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
10
  const index$1 = require('./index-f7713138.js');
11
- const locale$1 = require('./locale-809dbc6e.js');
11
+ const locale$1 = require('./locale-81070bd9.js');
12
12
  const _commonjsHelpers = require('./_commonjsHelpers-baf43783.js');
13
- const asyncToGenerator = require('./asyncToGenerator-c7fc3ee4.js');
14
- const _typeof$1 = require('./typeof-2a7e2dec.js');
13
+ const asyncToGenerator = require('./asyncToGenerator-ccb3278b.js');
14
+ const _typeof$1 = require('./typeof-920a4426.js');
15
15
  const update = require('./update-243ea407.js');
16
16
 
17
17
  function shouldDisableTracking(options = {}) {
@@ -8,13 +8,13 @@
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
10
  const index = require('./index-f7713138.js');
11
- const locale = require('./locale-809dbc6e.js');
11
+ const locale = require('./locale-81070bd9.js');
12
12
  const mapViewUtils = require('./mapViewUtils-8b26c9d0.js');
13
- const popupUtils = require('./popupUtils-27f6cf2a.js');
13
+ const popupUtils = require('./popupUtils-a68a20db.js');
14
14
  require('./_commonjsHelpers-baf43783.js');
15
15
  require('./interfaces-09c4c40e.js');
16
- require('./downloadUtils-c7dac47d.js');
17
- require('./typeof-2a7e2dec.js');
16
+ require('./downloadUtils-fefa863b.js');
17
+ require('./typeof-920a4426.js');
18
18
  require('./solution-resource-d0a2f7fe.js');
19
19
  require('./restHelpersGet-e4639890.js');
20
20
  require('./update-243ea407.js');
@@ -1051,7 +1051,7 @@ const EditCard = class {
1051
1051
  !this.graphics[0].layer.editingEnabled : true;
1052
1052
  const tableNodeClass = this._editorLoading ? "display-none" : "position-absolute";
1053
1053
  const loadingClass = this._editorLoading ? "" : "display-none";
1054
- return (index.h(index.Host, { key: 'd67dbfb453966623d26a1567df84bc58024305d7' }, index.h("div", { key: '9cd13eaf0125ab39e1d24398ccfda17c9534317a', class: "position-absolute" }, editDisabled ? (index.h("calcite-notice", { kind: "warning", open: true, slot: "content-top", width: "full" }, index.h("div", { slot: "message" }, this._translations.enableEditing))) : undefined, index.h("div", { key: '6cb4122611d8d8595cd85cd07224baa374066658', class: "position-absolute" }, index.h("div", { key: 'c4498b1ecd165fa594d9d1cef43f01643b5e3efb', class: tableNodeClass, id: "feature-form", ref: (el) => this._editContainer = el }), index.h("calcite-loader", { key: 'febb4d5c9a662ec9ffa6955114c8476c498116ee', class: loadingClass, label: "", scale: "s" })))));
1054
+ return (index.h(index.Host, { key: '5d0380d4dbd7412c90e6e3b9aa28b580bf5a6ac4' }, index.h("div", { key: '29825ee6c26acce86fcb6678d3e3db957358e314', class: "position-absolute" }, editDisabled ? (index.h("calcite-notice", { kind: "warning", open: true, slot: "content-top", width: "full" }, index.h("div", { slot: "message" }, this._translations.enableEditing))) : undefined, index.h("div", { key: '35fc876d6857fb72c8808cff311e894dd9890afe', class: "position-absolute" }, index.h("div", { key: 'c95f3453d5fc4dac7ba5f1e7db69490405861059', class: tableNodeClass, id: "feature-form", ref: (el) => this._editContainer = el }), index.h("calcite-loader", { key: '211fd81ec4b13a731a895c882fafcb438fbf235c', class: loadingClass, label: "", scale: "s" })))));
1055
1055
  }
1056
1056
  //--------------------------------------------------------------------------
1057
1057
  //
@@ -1466,8 +1466,8 @@ const InfoCard = class {
1466
1466
  });
1467
1467
  }
1468
1468
  else {
1469
- this._features.clear();
1470
- this._features.close();
1469
+ this._features?.clear();
1470
+ this._features?.close();
1471
1471
  }
1472
1472
  this._count = this._getCount();
1473
1473
  }
@@ -8,7 +8,7 @@
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
10
  const index = require('./index-f7713138.js');
11
- const locale = require('./locale-809dbc6e.js');
11
+ const locale = require('./locale-81070bd9.js');
12
12
  const mapViewUtils = require('./mapViewUtils-8b26c9d0.js');
13
13
  require('./_commonjsHelpers-baf43783.js');
14
14
  require('./interfaces-09c4c40e.js');
@@ -8,7 +8,7 @@
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
10
  const index = require('./index-f7713138.js');
11
- const locale = require('./locale-809dbc6e.js');
11
+ const locale = require('./locale-81070bd9.js');
12
12
  const interfaces = require('./interfaces-09c4c40e.js');
13
13
  const mapViewUtils = require('./mapViewUtils-8b26c9d0.js');
14
14
  require('./_commonjsHelpers-baf43783.js');
@@ -8,7 +8,7 @@
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
10
  const index = require('./index-f7713138.js');
11
- const locale = require('./locale-809dbc6e.js');
11
+ const locale = require('./locale-81070bd9.js');
12
12
  const mapViewUtils = require('./mapViewUtils-8b26c9d0.js');
13
13
  require('./_commonjsHelpers-baf43783.js');
14
14
  require('./interfaces-09c4c40e.js');
@@ -8,7 +8,7 @@
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
10
  const index = require('./index-f7713138.js');
11
- const locale = require('./locale-809dbc6e.js');
11
+ const locale = require('./locale-81070bd9.js');
12
12
  require('./_commonjsHelpers-baf43783.js');
13
13
 
14
14
  const deleteDialogCss = ":host{display:block}.delete-modal{position:fixed}";
@@ -5,9 +5,9 @@
5
5
  */
6
6
  'use strict';
7
7
 
8
- const _typeof = require('./typeof-2a7e2dec.js');
8
+ const _typeof = require('./typeof-920a4426.js');
9
9
  const index = require('./index-f7713138.js');
10
- const locale = require('./locale-809dbc6e.js');
10
+ const locale = require('./locale-81070bd9.js');
11
11
  const mapViewUtils = require('./mapViewUtils-8b26c9d0.js');
12
12
  require('./solution-resource-d0a2f7fe.js');
13
13
  const restHelpersGet = require('./restHelpersGet-e4639890.js');
@@ -1603,7 +1603,7 @@ function(t){var e=function(t){for(var e=t.length,r=new Uint8Array(e),n=0;n<e;n++
1603
1603
  * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1604
1604
  * ====================================================================
1605
1605
  */
1606
- function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):Promise.resolve().then(function () { return require('./index.es-3c2404c3.js'); })).catch((function(t){return Promise.reject(new Error("Could not load canvg: "+t))})).then((function(t){return t.default?t.default:t}))}E.API.addSvgAsImage=function(t,r,n,i,o,s,c,u){if(isNaN(r)||isNaN(n))throw a.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(o))throw a.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var h=document.createElement("canvas");h.width=i,h.height=o;var l=h.getContext("2d");l.fillStyle="#fff",l.fillRect(0,0,h.width,h.height);var f={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},d=this;return e().then((function(e){return e.fromString(l,t,f)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(t){return t.render(f)})).then((function(){d.addImage(h.toDataURL("image/jpeg",1),r,n,i,o,c,u);}))};}(),E.API.putTotalPages=function(t){var e,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),r=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var i=0;i<this.internal.pages[n].length;i++)this.internal.pages[n][i]=this.internal.pages[n][i].replace(e,r);return this},E.API.viewerPreferences=function(e,r){var n;e=e||{},r=r||!1;var i,a,o,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},c=Object.keys(s),u=[],h=0,l=0,f=0;function d(t,e){var r,n=!1;for(r=0;r<t.length;r+=1)t[r]===e&&(n=!0);return n}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===e||!0===r){var p=c.length;for(f=0;f<p;f+=1)n[c[f]].value=n[c[f]].defaultValue,n[c[f]].explicitSet=!1;}if("object"===_typeof.t(e))for(a in e)if(o=e[a],d(c,a)&&void 0!==o){if("boolean"===n[a].type&&"boolean"==typeof o)n[a].value=o;else if("name"===n[a].type&&d(n[a].valueSet,o))n[a].value=o;else if("integer"===n[a].type&&Number.isInteger(o))n[a].value=o;else if("array"===n[a].type){for(h=0;h<o.length;h+=1)if(i=!0,1===o[h].length&&"number"==typeof o[h][0])u.push(String(o[h]-1));else if(o[h].length>1){for(l=0;l<o[h].length;l+=1)"number"!=typeof o[h][l]&&(i=!1);!0===i&&u.push([o[h][0]-1,o[h][1]-1].join(" "));}n[a].value="["+u.join(" ")+"]";}else n[a].value=n[a].defaultValue;n[a].explicitSet=!0;}return !1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var t,e=[];for(t in n)!0===n[t].explicitSet&&("name"===n[t].type?e.push("/"+t+" /"+n[t].value):e.push("/"+t+" "+n[t].value));0!==e.length&&this.internal.write("/ViewerPreferences\n<<\n"+e.join("\n")+"\n>>");})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},
1606
+ function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):Promise.resolve().then(function () { return require('./index.es-0441a948.js'); })).catch((function(t){return Promise.reject(new Error("Could not load canvg: "+t))})).then((function(t){return t.default?t.default:t}))}E.API.addSvgAsImage=function(t,r,n,i,o,s,c,u){if(isNaN(r)||isNaN(n))throw a.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(o))throw a.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var h=document.createElement("canvas");h.width=i,h.height=o;var l=h.getContext("2d");l.fillStyle="#fff",l.fillRect(0,0,h.width,h.height);var f={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},d=this;return e().then((function(e){return e.fromString(l,t,f)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(t){return t.render(f)})).then((function(){d.addImage(h.toDataURL("image/jpeg",1),r,n,i,o,c,u);}))};}(),E.API.putTotalPages=function(t){var e,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),r=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var i=0;i<this.internal.pages[n].length;i++)this.internal.pages[n][i]=this.internal.pages[n][i].replace(e,r);return this},E.API.viewerPreferences=function(e,r){var n;e=e||{},r=r||!1;var i,a,o,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},c=Object.keys(s),u=[],h=0,l=0,f=0;function d(t,e){var r,n=!1;for(r=0;r<t.length;r+=1)t[r]===e&&(n=!0);return n}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===e||!0===r){var p=c.length;for(f=0;f<p;f+=1)n[c[f]].value=n[c[f]].defaultValue,n[c[f]].explicitSet=!1;}if("object"===_typeof.t(e))for(a in e)if(o=e[a],d(c,a)&&void 0!==o){if("boolean"===n[a].type&&"boolean"==typeof o)n[a].value=o;else if("name"===n[a].type&&d(n[a].valueSet,o))n[a].value=o;else if("integer"===n[a].type&&Number.isInteger(o))n[a].value=o;else if("array"===n[a].type){for(h=0;h<o.length;h+=1)if(i=!0,1===o[h].length&&"number"==typeof o[h][0])u.push(String(o[h]-1));else if(o[h].length>1){for(l=0;l<o[h].length;l+=1)"number"!=typeof o[h][l]&&(i=!1);!0===i&&u.push([o[h][0]-1,o[h][1]-1].join(" "));}n[a].value="["+u.join(" ")+"]";}else n[a].value=n[a].defaultValue;n[a].explicitSet=!0;}return !1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var t,e=[];for(t in n)!0===n[t].explicitSet&&("name"===n[t].type?e.push("/"+t+" /"+n[t].value):e.push("/"+t+" "+n[t].value));0!==e.length&&this.internal.write("/ViewerPreferences\n<<\n"+e.join("\n")+"\n>>");})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},
1607
1607
  /** ====================================================================
1608
1608
  * @license
1609
1609
  * jsPDF XMP metadata plugin
@@ -8,12 +8,12 @@
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
10
  const index = require('./index-f7713138.js');
11
- const locale = require('./locale-809dbc6e.js');
12
- const popupUtils = require('./popupUtils-27f6cf2a.js');
11
+ const locale = require('./locale-81070bd9.js');
12
+ const popupUtils = require('./popupUtils-a68a20db.js');
13
13
  const mapViewUtils = require('./mapViewUtils-8b26c9d0.js');
14
14
  require('./_commonjsHelpers-baf43783.js');
15
- require('./downloadUtils-c7dac47d.js');
16
- require('./typeof-2a7e2dec.js');
15
+ require('./downloadUtils-fefa863b.js');
16
+ require('./typeof-920a4426.js');
17
17
  require('./solution-resource-d0a2f7fe.js');
18
18
  require('./restHelpersGet-e4639890.js');
19
19
  require('./update-243ea407.js');
@@ -6,8 +6,8 @@
6
6
  'use strict';
7
7
 
8
8
  const _commonjsHelpers = require('./_commonjsHelpers-baf43783.js');
9
- const asyncToGenerator = require('./asyncToGenerator-c7fc3ee4.js');
10
- require('./typeof-2a7e2dec.js');
9
+ const asyncToGenerator = require('./asyncToGenerator-ccb3278b.js');
10
+ require('./typeof-920a4426.js');
11
11
 
12
12
  var check = function (it) {
13
13
  return it && it.Math === Math && it;
@@ -8,7 +8,7 @@
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
10
  const index = require('./index-f7713138.js');
11
- const locale = require('./locale-809dbc6e.js');
11
+ const locale = require('./locale-81070bd9.js');
12
12
  const solutionStore = require('./solution-store-ed7cc59b.js');
13
13
  const interfaces = require('./interfaces-09c4c40e.js');
14
14
  const solutionResource = require('./solution-resource-d0a2f7fe.js');
@@ -8,7 +8,7 @@
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
10
  const index = require('./index-f7713138.js');
11
- const locale = require('./locale-809dbc6e.js');
11
+ const locale = require('./locale-81070bd9.js');
12
12
  const mapViewUtils = require('./mapViewUtils-8b26c9d0.js');
13
13
  const publicNotificationStore = require('./publicNotificationStore-f55899b2.js');
14
14
  require('./_commonjsHelpers-baf43783.js');
@@ -8,14 +8,14 @@
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
10
  const index = require('./index-f7713138.js');
11
- const locale = require('./locale-809dbc6e.js');
11
+ const locale = require('./locale-81070bd9.js');
12
12
  const mapViewUtils = require('./mapViewUtils-8b26c9d0.js');
13
13
  const interfaces = require('./interfaces-09c4c40e.js');
14
14
  const publicNotificationStore = require('./publicNotificationStore-f55899b2.js');
15
- const downloadUtils = require('./downloadUtils-c7dac47d.js');
15
+ const downloadUtils = require('./downloadUtils-fefa863b.js');
16
16
  require('./_commonjsHelpers-baf43783.js');
17
17
  require('./index-44c76bf2.js');
18
- require('./typeof-2a7e2dec.js');
18
+ require('./typeof-920a4426.js');
19
19
  require('./solution-resource-d0a2f7fe.js');
20
20
  require('./restHelpersGet-e4639890.js');
21
21
  require('./update-243ea407.js');
@@ -5,8 +5,8 @@
5
5
  */
6
6
  'use strict';
7
7
 
8
- const downloadUtils = require('./downloadUtils-c7dac47d.js');
9
- const locale = require('./locale-809dbc6e.js');
8
+ const downloadUtils = require('./downloadUtils-fefa863b.js');
9
+ const locale = require('./locale-81070bd9.js');
10
10
 
11
11
  /** @license
12
12
  * Copyright 2022 Esri
@@ -9,13 +9,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
10
  const index = require('./index-f7713138.js');
11
11
  const interfaces = require('./interfaces-09c4c40e.js');
12
- const locale = require('./locale-809dbc6e.js');
12
+ const locale = require('./locale-81070bd9.js');
13
13
  const mapViewUtils = require('./mapViewUtils-8b26c9d0.js');
14
14
  const publicNotificationStore = require('./publicNotificationStore-f55899b2.js');
15
- const downloadUtils = require('./downloadUtils-c7dac47d.js');
15
+ const downloadUtils = require('./downloadUtils-fefa863b.js');
16
16
  require('./_commonjsHelpers-baf43783.js');
17
17
  require('./index-44c76bf2.js');
18
- require('./typeof-2a7e2dec.js');
18
+ require('./typeof-920a4426.js');
19
19
  require('./solution-resource-d0a2f7fe.js');
20
20
  require('./restHelpersGet-e4639890.js');
21
21
  require('./update-243ea407.js');
@@ -11,7 +11,7 @@ const index = require('./index-f7713138.js');
11
11
  const templates = require('./templates-1e84847a.js');
12
12
  const solutionStore = require('./solution-store-ed7cc59b.js');
13
13
  require('./solution-resource-d0a2f7fe.js');
14
- const locale = require('./locale-809dbc6e.js');
14
+ const locale = require('./locale-81070bd9.js');
15
15
  const update = require('./update-243ea407.js');
16
16
  require('./interfaces-09c4c40e.js');
17
17
  require('./restHelpersGet-e4639890.js');
@@ -9,7 +9,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
10
  const index = require('./index-f7713138.js');
11
11
  const solutionStore = require('./solution-store-ed7cc59b.js');
12
- const locale = require('./locale-809dbc6e.js');
12
+ const locale = require('./locale-81070bd9.js');
13
13
  const common = require('./common-10d11a29.js');
14
14
  const interfaces = require('./interfaces-09c4c40e.js');
15
15
  require('./index-44c76bf2.js');
@@ -8,7 +8,7 @@
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
10
  const index = require('./index-f7713138.js');
11
- const locale = require('./locale-809dbc6e.js');
11
+ const locale = require('./locale-81070bd9.js');
12
12
  require('./_commonjsHelpers-baf43783.js');
13
13
 
14
14
  const solutionItemAccordionCss = ":host{display:block}.padding-start-1{padding-inline-start:1rem}.border-override{--calcite-accordion-border-color:var(--calcite-color-border-1) !important}.display-flex{display:flex}.align-center{align-items:center}.solution-list-item-label{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size--1)}.solution-list-item-label,.solution-list-item-description{font-family:var(--calcite-font-family);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.solution-list-item-description{font-size:var(--calcite-font-size--2);margin-block-start:0.125rem;color:var(--calcite-color-text-3)}.solution-list-item-content{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;line-height:1.375}";
@@ -8,7 +8,7 @@
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
10
  const index = require('./index-f7713138.js');
11
- const locale = require('./locale-809dbc6e.js');
11
+ const locale = require('./locale-81070bd9.js');
12
12
  const common = require('./common-10d11a29.js');
13
13
  require('./_commonjsHelpers-baf43783.js');
14
14
  require('./solution-resource-d0a2f7fe.js');
@@ -137,9 +137,6 @@ export class BasemapGallery {
137
137
  */
138
138
  async _initBaseMapGallery(view) {
139
139
  if (this.BasemapGallery) {
140
- if (this.basemapWidget) {
141
- this.basemapWidget.destroy();
142
- }
143
140
  const source = new this.PortalBasemapsSource({
144
141
  query: this.basemapConfig?.basemapGroupId ? `id:${this.basemapConfig.basemapGroupId}` : null,
145
142
  filterFunction: this.basemapConfig ? (basemap) => {
@@ -147,11 +144,19 @@ export class BasemapGallery {
147
144
  } : () => true
148
145
  });
149
146
  await source.refresh();
150
- this.basemapWidget = new this.BasemapGallery({
151
- container: this._basemapElement,
152
- view,
153
- source
154
- });
147
+ // Don't destroy and re-create this widget as it leads to a duplication
148
+ // of the basemaps listed
149
+ if (!this.basemapWidget) {
150
+ this.basemapWidget = new this.BasemapGallery({
151
+ container: this._basemapElement,
152
+ view,
153
+ source
154
+ });
155
+ }
156
+ else {
157
+ this.basemapWidget.view = view;
158
+ this.basemapWidget.source = source;
159
+ }
155
160
  }
156
161
  }
157
162
  static get is() { return "basemap-gallery"; }