@esri/solutions-components 0.8.21 → 0.8.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. package/dist/cjs/calcite-alert_4.cjs.entry.js +12 -11
  2. package/dist/cjs/calcite-flow_6.cjs.entry.js +8 -8
  3. package/dist/cjs/card-manager_3.cjs.entry.js +13 -7
  4. package/dist/cjs/crowdsource-manager.cjs.entry.js +13 -5
  5. package/dist/cjs/crowdsource-reporter.cjs.entry.js +1 -1
  6. package/dist/cjs/{downloadUtils-2e36a300.js → downloadUtils-5349717a.js} +2 -1
  7. package/dist/cjs/feature-list.cjs.entry.js +7 -3
  8. package/dist/cjs/{index.es-56415e48.js → index.es-aa69b58b.js} +1 -1
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/cjs/map-select-tools_3.cjs.entry.js +1 -1
  11. package/dist/cjs/{popupUtils-500c1544.js → popupUtils-3e65296c.js} +17 -2
  12. package/dist/cjs/public-notification.cjs.entry.js +1 -1
  13. package/dist/cjs/solutions-components.cjs.js +1 -1
  14. package/dist/collection/components/card-manager/card-manager.js +1 -1
  15. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +31 -9
  16. package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +1 -1
  17. package/dist/collection/components/feature-details/feature-details.css +2 -2
  18. package/dist/collection/components/feature-details/feature-details.js +6 -6
  19. package/dist/collection/components/feature-list/feature-list.css +1 -1
  20. package/dist/collection/components/feature-list/feature-list.js +1 -1
  21. package/dist/collection/components/info-card/info-card.js +7 -27
  22. package/dist/collection/components/layer-list/layer-list.js +1 -1
  23. package/dist/collection/components/layer-table/layer-table.js +11 -5
  24. package/dist/collection/demos/crowdsource-manager.html +10 -2
  25. package/dist/collection/utils/popupUtils.js +17 -2
  26. package/dist/collection/utils/popupUtils.ts +23 -3
  27. package/dist/components/card-manager2.js +1 -1
  28. package/dist/components/consent-manager.js +1 -1
  29. package/dist/components/crowdsource-manager.js +14 -6
  30. package/dist/components/crowdsource-reporter.js +1 -1
  31. package/dist/components/downloadUtils.js +1 -1
  32. package/dist/components/esri-loader.js +1 -1
  33. package/dist/components/feature-details2.js +7 -7
  34. package/dist/components/feature-list2.js +2 -2
  35. package/dist/components/html2canvas.js +1 -1
  36. package/dist/components/index.es.js +2 -2
  37. package/dist/components/info-card2.js +7 -11
  38. package/dist/components/instant-apps-interactive-legend-classic2.js +1 -1
  39. package/dist/components/layer-list2.js +1 -1
  40. package/dist/components/layer-table2.js +11 -5
  41. package/dist/components/popupUtils.js +17 -2
  42. package/dist/components/purify.js +1 -1
  43. package/dist/components/solution-resource.js +1 -1
  44. package/dist/esm/calcite-alert_4.entry.js +12 -11
  45. package/dist/esm/calcite-flow_6.entry.js +8 -8
  46. package/dist/esm/card-manager_3.entry.js +13 -7
  47. package/dist/esm/crowdsource-manager.entry.js +13 -5
  48. package/dist/esm/crowdsource-reporter.entry.js +1 -1
  49. package/dist/esm/{downloadUtils-aab31bfe.js → downloadUtils-5fa0d437.js} +2 -2
  50. package/dist/esm/feature-list.entry.js +7 -3
  51. package/dist/esm/{index.es-43ba3006.js → index.es-57c15c9b.js} +1 -1
  52. package/dist/esm/loader.js +1 -1
  53. package/dist/esm/map-select-tools_3.entry.js +1 -1
  54. package/dist/esm/{popupUtils-2cc3c366.js → popupUtils-650b6bba.js} +17 -2
  55. package/dist/esm/public-notification.entry.js +1 -1
  56. package/dist/esm/solutions-components.js +1 -1
  57. package/dist/solutions-components/demos/crowdsource-manager.html +10 -2
  58. package/dist/solutions-components/{p-667caa6b.js → p-24bf45b7.js} +1 -1
  59. package/dist/solutions-components/{p-88f73319.entry.js → p-41d288c0.entry.js} +1 -1
  60. package/dist/solutions-components/p-63460d51.entry.js +6 -0
  61. package/dist/solutions-components/{p-f6668347.entry.js → p-64da5bb8.entry.js} +3 -3
  62. package/dist/solutions-components/{p-37fc92db.js → p-6f69de4d.js} +2 -2
  63. package/dist/solutions-components/{p-8cff32bd.entry.js → p-72317f8e.entry.js} +2 -2
  64. package/dist/solutions-components/p-88495699.entry.js +6 -0
  65. package/dist/solutions-components/{p-54324eaa.entry.js → p-97e343df.entry.js} +1 -1
  66. package/dist/solutions-components/p-a1037b19.js +21 -0
  67. package/dist/solutions-components/{p-48c99a48.entry.js → p-c36bb8ca.entry.js} +1 -1
  68. package/dist/solutions-components/p-f6a1673c.entry.js +6 -0
  69. package/dist/solutions-components/solutions-components.esm.js +1 -1
  70. package/dist/solutions-components/utils/popupUtils.ts +23 -3
  71. package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +14 -6
  72. package/dist/types/components/info-card/info-card.d.ts +0 -4
  73. package/dist/types/components.d.ts +11 -14
  74. package/dist/types/preact.d.ts +3 -2
  75. package/dist/types/utils/popupUtils.d.ts +4 -0
  76. package/package.json +1 -1
  77. package/dist/solutions-components/p-1cf1a4d5.entry.js +0 -6
  78. package/dist/solutions-components/p-51d2370c.entry.js +0 -6
  79. package/dist/solutions-components/p-64779bb2.entry.js +0 -6
  80. package/dist/solutions-components/p-ebf82ce0.js +0 -21
@@ -86,7 +86,7 @@ export class CardManager {
86
86
  var _a, _b;
87
87
  const featuresClass = ((_a = this._graphics) === null || _a === void 0 ? void 0 : _a.length) > 0 ? "" : "display-none";
88
88
  const messageClass = ((_b = this._graphics) === null || _b === void 0 ? void 0 : _b.length) > 0 ? "display-none" : "";
89
- return (h(Host, { key: 'c4b71cefeb5eec1e1312104c519dfb9ef1398d71' }, h("div", { key: '6c1539db40060f9295c8aa72af29eac5f9c67d8d', class: "overflow-auto height-full" }, h("calcite-shell", { key: '2a4f7b47e01e3f27528dbce5fe236187a0f57dab', class: "position-relative " + featuresClass }, h("div", { key: '4b226239c5b80210aa3d42d422bbc50a66bdcf59' }, h("info-card", { key: '23ec16e93def6ebf81ed86109a55aa3e667fb958', graphics: this._graphics, isLoading: this._cardLoading, isMobile: this.isMobile, mapView: this.mapView, zoomAndScrollToSelected: this.zoomAndScrollToSelected }))), h("calcite-shell", { key: '8b385e91e35cfa4dc14aa67f300badf627119c39', class: "position-relative " + messageClass }, h("div", { key: 'a4cca3a463dbe115638c3b15d4613f7d719f153f', class: "padding-1" }, h("calcite-notice", { key: '91047393ac4f19864179f97631ffcdf48aaa47c1', icon: "table", open: true }, h("div", { key: 'c81f06e628d2811c3cedbae6a3e38fb972d0a759', slot: "message" }, this._translations.selectFeaturesToStart)))))));
89
+ return (h(Host, { key: 'c4b71cefeb5eec1e1312104c519dfb9ef1398d71' }, h("div", { key: '6c1539db40060f9295c8aa72af29eac5f9c67d8d', class: "overflow-auto height-full" }, h("calcite-shell", { key: '2a4f7b47e01e3f27528dbce5fe236187a0f57dab', class: "position-relative " + featuresClass }, h("div", { key: '4b226239c5b80210aa3d42d422bbc50a66bdcf59' }, h("info-card", { key: '55561c22c8685c3ba3daa25c51053fa47d553ba9', graphics: this._graphics, isLoading: this._cardLoading, isMobile: this.isMobile, mapView: this.mapView }))), h("calcite-shell", { key: '8f9156bf9c08920e7731f50daeecb031e9135281', class: "position-relative " + messageClass }, h("div", { key: '0529f9a60349337716ba53f10551b08a34c48209', class: "padding-1" }, h("calcite-notice", { key: '812047f7628598fa6b20e3df00355efee584bb71', icon: "table", open: true }, h("div", { key: 'd7c1b7ab03de1fb30e8e84a6d331d43e69a9946e', slot: "message" }, this._translations.selectFeaturesToStart)))))));
90
90
  }
91
91
  //--------------------------------------------------------------------------
92
92
  //
@@ -53,7 +53,7 @@ export class CrowdsourceManager {
53
53
  this.defaultLevel = "";
54
54
  this.defaultOid = "";
55
55
  this.defaultWebmap = "";
56
- this.introductionPageEnabled = false;
56
+ this.introductionWindowEnabled = false;
57
57
  this.enableAutoRefresh = false;
58
58
  this.enableBasemap = true;
59
59
  this.enableColumnReorder = true;
@@ -108,7 +108,7 @@ export class CrowdsourceManager {
108
108
  * When true the map will be hidden on load
109
109
  */
110
110
  hideMapOnLoadWatchHandler() {
111
- this.showHideMapPopupAndTable(true);
111
+ this.showHideMapPopupAndTable(this.hideMapOnLoad);
112
112
  this._expandPopup = this.hideMapOnLoad;
113
113
  }
114
114
  /**
@@ -202,7 +202,7 @@ export class CrowdsourceManager {
202
202
  render() {
203
203
  // only avoid border when we have a header color that is not white
204
204
  const borderClass = this.popupHeaderColor && this.popupHeaderColor !== "#FFFFFF" ? "border-width-0" : "";
205
- return (h(Host, { key: '8deef9c7dc113fa8aa03bb0841f5ec10a39de007' }, h("calcite-shell", { key: '652ec17baa763639ee7828383be371339c034670', class: "position-relative" }, h("calcite-panel", { key: '8ec3c3bd12c2fbed9b5166b683ee9cf79c7f3a88', class: `width-full height-full ${borderClass}` }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter())));
205
+ return (h(Host, { key: 'adf6957871aa364f3c0d65f949eb94587f065780' }, h("calcite-shell", { key: 'cbe60dd48a1ffb16ca5bf4d7bf7ee96272fed7a5', class: "position-relative" }, h("calcite-panel", { key: '19e98d7bd25c939f3d8860d68c61a5168730eb00', class: `width-full height-full ${borderClass}` }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter())));
206
206
  }
207
207
  /**
208
208
  * Called after each render
@@ -323,13 +323,20 @@ export class CrowdsourceManager {
323
323
  const contentClass = layoutMode === ELayoutMode.HORIZONTAL ? "" : "display-flex";
324
324
  const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
325
325
  return (h("calcite-panel", { class: "width-full height-full" }, h("div", { class: `width-full height-full overflow-hidden ${contentClass}` }, this._getMapAndCard(layoutMode, panelOpen, hideTable), this._getTable(layoutMode, panelOpen, hideTable)), this.coverPageEnabled &&
326
+ h("div", { class: "floating-container", onClick: this.coverPageButtonClick.bind(this) }, h("calcite-button", { appearance: "solid", class: `floating-button ${themeClass}`, "icon-start": "content-minimal", kind: "neutral", label: "", round: true, scale: "l", "split-child": "primary", width: "auto" })), this.introductionWindowEnabled &&
326
327
  h("div", { class: "floating-container", onClick: this.infoButtonClick.bind(this) }, h("calcite-button", { appearance: "solid", class: `floating-button ${themeClass}`, "icon-start": "information-letter", kind: "neutral", label: "", round: true, scale: "l", "split-child": "primary", width: "auto" }))));
327
328
  }
328
329
  /**
329
330
  * Emit the event when info button clicked
330
331
  */
331
332
  infoButtonClick() {
332
- this.infoIconButtonClick.emit();
333
+ this.showIntroductionWindow.emit();
334
+ }
335
+ /**
336
+ * Emit the event when cover page button clicked
337
+ */
338
+ coverPageButtonClick() {
339
+ this.showCoverPage.emit();
333
340
  }
334
341
  /**
335
342
  * Get the map and card nodes based for the current layout options
@@ -698,7 +705,7 @@ export class CrowdsourceManager {
698
705
  "reflect": false,
699
706
  "defaultValue": "\"\""
700
707
  },
701
- "introductionPageEnabled": {
708
+ "introductionWindowEnabled": {
702
709
  "type": "boolean",
703
710
  "mutable": false,
704
711
  "complexType": {
@@ -710,9 +717,9 @@ export class CrowdsourceManager {
710
717
  "optional": false,
711
718
  "docs": {
712
719
  "tags": [],
713
- "text": "boolean: When true a introduction page has been enabled in the consuming application.\r\nAlso when true a floating button will be shown in the lower right of the window that\r\nwill emit an event when clicked that the consuming application can respond to that will open the introduction page."
720
+ "text": "boolean: When true a introduction window has been enabled in the consuming application.\r\nAlso when true a floating button will be shown in the lower right of the window that\r\nwill emit an event when clicked that the consuming application can respond to that will open the introduction window."
714
721
  },
715
- "attribute": "introduction-page-enabled",
722
+ "attribute": "introduction-window-enabled",
716
723
  "reflect": false,
717
724
  "defaultValue": "false"
718
725
  },
@@ -1210,8 +1217,8 @@ export class CrowdsourceManager {
1210
1217
  }
1211
1218
  static get events() {
1212
1219
  return [{
1213
- "method": "infoIconButtonClick",
1214
- "name": "infoIconButtonClick",
1220
+ "method": "showIntroductionWindow",
1221
+ "name": "showIntroductionWindow",
1215
1222
  "bubbles": true,
1216
1223
  "cancelable": true,
1217
1224
  "composed": true,
@@ -1224,6 +1231,21 @@ export class CrowdsourceManager {
1224
1231
  "resolved": "void",
1225
1232
  "references": {}
1226
1233
  }
1234
+ }, {
1235
+ "method": "showCoverPage",
1236
+ "name": "showCoverPage",
1237
+ "bubbles": true,
1238
+ "cancelable": true,
1239
+ "composed": true,
1240
+ "docs": {
1241
+ "tags": [],
1242
+ "text": "Emitted on demand when a cover page button is clicked"
1243
+ },
1244
+ "complexType": {
1245
+ "original": "void",
1246
+ "resolved": "void",
1247
+ "references": {}
1248
+ }
1227
1249
  }];
1228
1250
  }
1229
1251
  static get elementRef() { return "el"; }
@@ -575,7 +575,7 @@ export class CrowdsourceReporter {
575
575
  * @returns Node
576
576
  */
577
577
  getCommentDetailsFlowItem() {
578
- return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._relatedTable.title, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), h("calcite-panel", { "full-height": true }, h("info-card", { allowEditing: false, graphics: this._selectedRelatedFeature, highlightEnabled: false, isLoading: false, isMobile: false, mapView: this.mapView, paginationEnabled: false, zoomAndScrollToSelected: false }))));
578
+ return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._relatedTable.title, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), h("calcite-panel", { "full-height": true }, h("info-card", { allowEditing: false, graphics: this._selectedRelatedFeature, highlightEnabled: false, isLoading: false, isMobile: false, mapView: this.mapView, paginationEnabled: false }))));
579
579
  }
580
580
  /**
581
581
  * Returns the calcite-flow item for add comment
@@ -5,7 +5,7 @@
5
5
  .buttons-container{
6
6
  align-items: center;
7
7
  display: flex;
8
- padding: 10px 0 10px 15px;
8
+ padding: 10px;
9
9
  color: var(--calcite-color-text-1) !important;
10
10
  background-color: var(--calcite-color-foreground-1) !important;
11
11
  border-block-start: 1px solid var(--calcite-color-border-3);
@@ -15,7 +15,7 @@
15
15
  .comment-btn{
16
16
  display: flex;
17
17
  gap: 5px;
18
- width: 37px;
19
18
  font-size: var(--calcite-font-size--2);
20
19
  align-items: center;
20
+ padding: 0 0.5rem;
21
21
  }
@@ -109,12 +109,12 @@ export class FeatureDetails {
109
109
  var _a, _b, _c, _d, _e;
110
110
  //When related features found show comments list of only those features else comments list will be empty
111
111
  const commentsListWhereClause = ((_a = this._relatedFeaturesOIDs) === null || _a === void 0 ? void 0 : _a.length) > 0 ? `objectId in(${this._relatedFeaturesOIDs})` : '1=0';
112
- return (h("calcite-panel", { key: 'b8d1cc9d4d9040665be3c892f5738a179ab64eaf', "full-height": true }, h("info-card", { key: '0a31a068a4e80e34ba2435a7d8d8faaea271dac8', allowEditing: false, graphics: this.graphics, highlightEnabled: false, isLoading: false, isMobile: false, mapView: this.mapView, paginationEnabled: false, position: "relative", ref: el => this._infoCard = el, zoomAndScrollToSelected: true }), (this._likeFieldAvailable || this._dislikeFieldAvailable || this._commentsAvailable) &&
113
- h("div", { key: '8e27d13341a9b4ad37f87778e046a4e8e0b2778e', class: "buttons-container" }, this._commentsAvailable &&
114
- h("div", { key: '3dd02fdbc107e7ce04e8aabb96a6748b68eeec6b', class: "comment-btn" }, h("span", { key: '5601fdb24ff385e0b6d2b9e5b86bde06b3c2d1b8' }, this._relatedFeaturesOIDs.length), h("calcite-icon", { key: '97a517d117a4d5a8c6798da9c9c82e46c39c25f8', icon: "speech-bubble", scale: 's' })), this._likeFieldAvailable &&
115
- h("calcite-button", { key: '0d1ff14be9396ab3ff634e92208792f5fd3b8d36', appearance: "transparent", iconEnd: "thumbs-up", kind: this._isLikeBtnClicked ? "brand" : "neutral", onClick: this.onLikeButtonClick.bind(this), scale: 's' }, (_c = (_b = this._likeCount) !== null && _b !== void 0 ? _b : this._selectedGraphic.attributes[this._likeField]) !== null && _c !== void 0 ? _c : 0), this._dislikeFieldAvailable &&
116
- h("calcite-button", { key: '34e362e083dbc13dffae7ad5544aa33a0421a51a', appearance: "transparent", iconEnd: "thumbs-down", kind: this._isDislikeBtnClicked ? "brand" : "neutral", onClick: this.onDislikeButtonClick.bind(this), scale: 's' }, (_e = (_d = this._disLikeCount) !== null && _d !== void 0 ? _d : this._selectedGraphic.attributes[this._dislikeField]) !== null && _e !== void 0 ? _e : 0)), this.relatedTableId && this._commentsAvailable &&
117
- h("feature-list", { key: '4abc53ab7679b07f0dd7413b97f447da736e5002', class: "height-full", mapView: this.mapView, pageSize: 5, ref: el => this._commentsList = el, selectedLayerId: this.relatedTableId, showInitialLoading: false, textSize: "small", whereClause: commentsListWhereClause })));
112
+ return (h("calcite-panel", { key: 'b8d1cc9d4d9040665be3c892f5738a179ab64eaf', "full-height": true }, h("info-card", { key: 'a4c7771bdf84f85b88bd6bf2544e2a1a985fdbbe', allowEditing: false, graphics: this.graphics, highlightEnabled: false, isLoading: false, isMobile: false, mapView: this.mapView, paginationEnabled: false, position: "relative", ref: el => this._infoCard = el }), (this._likeFieldAvailable || this._dislikeFieldAvailable || this._commentsAvailable) &&
113
+ h("div", { key: '2d405f3f722eb4fe0de4212ec4ff3e4b8588db40', class: "buttons-container" }, this._commentsAvailable &&
114
+ h("div", { key: '9454b0cb93e665de20fafb4ca75e1a6d3198a03a', class: "comment-btn" }, h("span", { key: '8c682aa73f9c28b9db5266cfb5ad970f15535241' }, this._relatedFeaturesOIDs.length), h("calcite-icon", { key: 'd920e63f8d1d447afa732bd336f6a09e18ccbd2a', icon: "speech-bubble", scale: 's' })), this._likeFieldAvailable &&
115
+ h("calcite-button", { key: '6b68adcc0b24b1e8d71148182339fa1b6d7922a1', appearance: "transparent", iconEnd: "thumbs-up", kind: this._isLikeBtnClicked ? "brand" : "neutral", onClick: this.onLikeButtonClick.bind(this), scale: 's' }, (_c = (_b = this._likeCount) !== null && _b !== void 0 ? _b : this._selectedGraphic.attributes[this._likeField]) !== null && _c !== void 0 ? _c : 0), this._dislikeFieldAvailable &&
116
+ h("calcite-button", { key: '7c365fdaf5a3de12745e4a7b7a79dc8ec5e37cc0', appearance: "transparent", iconEnd: "thumbs-down", kind: this._isDislikeBtnClicked ? "brand" : "neutral", onClick: this.onDislikeButtonClick.bind(this), scale: 's' }, (_e = (_d = this._disLikeCount) !== null && _d !== void 0 ? _d : this._selectedGraphic.attributes[this._dislikeField]) !== null && _e !== void 0 ? _e : 0)), this.relatedTableId && this._commentsAvailable &&
117
+ h("feature-list", { key: '7b2b92b001dcdeb51d7ae1c1b39dc263f5ed1934', class: "height-full", mapView: this.mapView, pageSize: 5, ref: el => this._commentsList = el, selectedLayerId: this.relatedTableId, showInitialLoading: false, textSize: "small", whereClause: commentsListWhereClause })));
118
118
  }
119
119
  /**
120
120
  * Load esri javascript api modules
@@ -38,6 +38,6 @@
38
38
  }
39
39
 
40
40
  .feature-list-popup-title-small {
41
- font-size: x-small;
41
+ font-size: small;
42
42
  padding: 10px 12px;
43
43
  }
@@ -280,7 +280,7 @@ export class FeatureList {
280
280
  //use object id if popupTitle is null or undefined
281
281
  popupTitle = popupTitle !== null && popupTitle !== void 0 ? popupTitle : oId;
282
282
  const popupTitleClass = this.textSize === 'small' ? 'feature-list-popup-title-small' : 'feature-list-popup-title';
283
- return (h("calcite-list-item", { onCalciteListItemSelect: (e) => { void this.featureClicked(e, selectedFeature); }, onMouseLeave: () => { void this.clearHighlights(); }, onMouseOver: () => { void this.onFeatureHover(selectedFeature); }, value: oId }, h("div", { class: popupTitleClass, slot: "content-start" }, popupTitle), h("calcite-icon", { icon: "chevron-right", scale: "s", slot: "content-end" })));
283
+ return (h("calcite-list-item", { onCalciteListItemSelect: (e) => { void this.featureClicked(e, selectedFeature); }, onMouseLeave: () => { void this.clearHighlights(); }, onMouseOver: () => { void this.onFeatureHover(selectedFeature); }, value: oId }, h("div", { class: popupTitleClass, slot: "content-start" }, popupTitle), h("calcite-icon", { flipRtl: true, icon: "chevron-right", scale: "s", slot: "content-end" })));
284
284
  }
285
285
  /**
286
286
  * Fetches the component's translations
@@ -32,7 +32,6 @@ export class InfoCard {
32
32
  this.isLoading = false;
33
33
  this.isMobile = undefined;
34
34
  this.mapView = undefined;
35
- this.zoomAndScrollToSelected = undefined;
36
35
  this.allowEditing = true;
37
36
  this.highlightEnabled = true;
38
37
  this.paginationEnabled = true;
@@ -185,8 +184,8 @@ export class InfoCard {
185
184
  const id = (_d = (_c = this._features) === null || _c === void 0 ? void 0 : _c.selectedFeature) === null || _d === void 0 ? void 0 : _d.getObjectId();
186
185
  const ids = parseInt(id === null || id === void 0 ? void 0 : id.toString(), 10) > -1 ? [id] : [];
187
186
  const deleteEnabled = ((_e = this._layer) === null || _e === void 0 ? void 0 : _e.editingEnabled) && ((_h = (_g = (_f = this._layer) === null || _f === void 0 ? void 0 : _f.capabilities) === null || _g === void 0 ? void 0 : _g.operations) === null || _h === void 0 ? void 0 : _h.supportsDelete);
188
- return (h(Host, { key: '7b48c1dbd2c4e384c4bcba62a8cf35e4c62d2edb' }, h("calcite-shell", { key: 'a8387dfb3968ea07182cdd782a5a147bdcb1188a', style: { position: this.position } }, this._getHeader(), h("calcite-loader", { key: '1695d423a19876c6ccde5f4004f21ca26e305350', class: loadingClass, label: this._translations.fetchingData }), h("div", { key: 'd8870e95ba06ed713c5143c5b260ee4059275d81', class: "esri-widget feature-node " + featureNodeClass, id: this._featuresNodeId }), h("div", { key: '84af335caa0f39890801faebc207bf8c794fe1e3', class: `${editButtonClass} width-100`, slot: "footer" }, this.allowEditing &&
189
- h("div", { key: 'fa91c18424af38067c44e50635b9af55aacc84b8', class: "display-flex top-border padding-1-2" }, h("calcite-button", { key: 'c4565bda374ab4eb2afd2273c62256fae187d151', appearance: "solid", id: "solutions-edit", onClick: () => this._openEditRecord(), width: "full" }, this._translations.edit), this.isMobile && deleteEnabled ? (h("delete-button", { class: "padding-inline-start-1 width-100", id: "solutions-delete", ids: ids, layer: this._layer, onEditsComplete: () => this._closePopup() })) : undefined, h("calcite-tooltip", { key: '7175a74e7e1db0939fbbe4a229e7f6df6efb2768', placement: "bottom", "reference-element": "solutions-edit" }, h("span", { key: '6443c4d8274fe6003f5dcbd3b36f35057234c550' }, this._translations.edit)), this.isMobile ? (h("calcite-tooltip", { placement: "bottom", "reference-element": "solutions-delete" }, h("span", null, this._translations.delete))) : undefined), this.paginationEnabled && !nextBackDisabled && h("div", { key: 'ff3d3dffd57bf118f7e71ec5a504bbcfda0de229', class: `display-flex padding-1-2 button-container top-border ${nextBackClass}` }, h("div", { key: '1912bdf3dbad45ba66acf13ef8ad6894ced8caa2' }, h("calcite-button", { key: 'fe1e5032b764b3c0ac8ef619c9d365f8d781d6b3', appearance: 'transparent', disabled: nextBackDisabled, iconStart: "chevron-left", id: "solutions-back", onClick: () => this._back(), width: "full" }), h("calcite-tooltip", { key: 'a9928e72cc3dcebad2544ee5a347a0b70ebdae4b', placement: "top", "reference-element": "solutions-back" }, h("span", { key: '6d8cc94ae72deab6ae19d3314f5b0f7e1833bd3c' }, this._translations.back))), h("calcite-action", { key: '90d7951f0eacd4b77f8ebe3da79a12665a8b9f63', class: 'pagination-action', onClick: () => this._toggleListView(), scale: "s", text: "", textEnabled: true }, h("span", { key: '6c36eb43691a79b6a7c0da99663fa22c1d97e572', class: "pagination-count" }, this._count)), h("div", { key: '23758504ca1b4b97c4c488e88e61f0c3cdc10830' }, h("calcite-button", { key: '93efeff6e0cb54edd1817c3410806b009755618f', appearance: "transparent", disabled: nextBackDisabled, iconStart: "chevron-right", id: "solutions-next", onClick: () => this._next(), width: "full" }), h("calcite-tooltip", { key: '17afd49a3b167d9322d944a9d8ae6ffc249d202e', placement: "top", "reference-element": "solutions-next" }, h("span", { key: '0b15e569313961c53700d2ef6eb148b9c0efd778' }, this._translations.next))))), h("edit-card", { key: '2217a66105095ea1e5bd577dc8bf970b3fdeae10', class: editClass, graphicIndex: (_j = this._features) === null || _j === void 0 ? void 0 : _j.selectedFeatureIndex, graphics: this.graphics, mapView: this.mapView, open: this._editRecordOpen }), h("calcite-alert", { key: 'c59bd8d759ef1df763b3bbe513b7146cfa270057', icon: "layer-broken", kind: "warning", label: "", onCalciteAlertClose: () => this._alertClosed(), open: this._alertOpen, placement: "top" }, h("div", { key: '3733d543e7483037aa5130f0ca06f8da434eaf7e', slot: "title" }, this._translations.editDisabled), h("div", { key: 'eaace9548fd442015000f836d54e556c9859a3fc', slot: "message" }, this._translations.enableEditing)))));
187
+ return (h(Host, { key: 'ab22ed392db6e8bad11758f39d6bd1738c10a229' }, h("calcite-shell", { key: 'f97bdc21cb5e667b1973353a45297f9536252fcd', style: { position: this.position } }, this._getHeader(), h("calcite-loader", { key: '82b78360be903de1be044406735db84122399f49', class: loadingClass, label: this._translations.fetchingData }), h("div", { key: '168d0310daf7eca08c4891283b8a9865eda102bc', class: "esri-widget feature-node " + featureNodeClass, id: this._featuresNodeId }), h("div", { key: '258b913cfdc4f1269dcc250a473643878d97f8bd', class: `${editButtonClass} width-100`, slot: "footer" }, this.allowEditing &&
188
+ h("div", { key: 'c6fd569640410dd3a106f27f49eb6553c9ea0167', class: "display-flex top-border padding-1-2" }, h("calcite-button", { key: '3dbe007feb1104d53c47298ae1308c776e3ec5cf', appearance: "solid", id: "solutions-edit", onClick: () => this._openEditRecord(), width: "full" }, this._translations.edit), this.isMobile && deleteEnabled ? (h("delete-button", { class: "padding-inline-start-1 width-100", id: "solutions-delete", ids: ids, layer: this._layer, onEditsComplete: () => this._closePopup() })) : undefined, h("calcite-tooltip", { key: '094e52e8d2945125096856a8c5249babdbbd1eec', placement: "bottom", "reference-element": "solutions-edit" }, h("span", { key: 'da9edbf6bdb39ce1a287894287d69f2767bb18de' }, this._translations.edit)), this.isMobile ? (h("calcite-tooltip", { placement: "bottom", "reference-element": "solutions-delete" }, h("span", null, this._translations.delete))) : undefined), this.paginationEnabled && !nextBackDisabled && h("div", { key: '5badbe8009a3a64e3b471ce4e63f4a7d2ae68acc', class: `display-flex padding-1-2 button-container top-border ${nextBackClass}` }, h("div", { key: '17b287e0f0405ead48a9460423e5371e102de38a' }, h("calcite-button", { key: '4277d8e56528475c5cea369811c9c3c8a0cdd5c7', appearance: 'transparent', disabled: nextBackDisabled, iconStart: "chevron-left", id: "solutions-back", onClick: () => this._back(), width: "full" }), h("calcite-tooltip", { key: 'c8ee8c81d9de098290f35075b0c6ac3ee2f46afc', placement: "top", "reference-element": "solutions-back" }, h("span", { key: '3321af9ca1a78efe28249872be05433d9d79f51b' }, this._translations.back))), h("calcite-action", { key: '5ce96bff1e1e1bd77f364d8ceb297e0db7453a29', class: 'pagination-action', onClick: () => this._toggleListView(), scale: "s", text: "", textEnabled: true }, h("span", { key: 'd558026468f5aeb0797efcfa1843f515fed2b451', class: "pagination-count" }, this._count)), h("div", { key: '52fd57812fda98ad244a1f60aa4ec2f31efce78d' }, h("calcite-button", { key: '3582c2ea725fe9eb36f1846fbb06acaedcb3ebe1', appearance: "transparent", disabled: nextBackDisabled, iconStart: "chevron-right", id: "solutions-next", onClick: () => this._next(), width: "full" }), h("calcite-tooltip", { key: '1212e990b6ae4e7979f2a1571b461cf063e55b9d', placement: "top", "reference-element": "solutions-next" }, h("span", { key: '2284b042fdfeebc86441119c404c5905fb84f367' }, this._translations.next))))), h("edit-card", { key: 'ae9f73223bdffa5c3ec85e3ebdf4b314cd91d1c7', class: editClass, graphicIndex: (_j = this._features) === null || _j === void 0 ? void 0 : _j.selectedFeatureIndex, graphics: this.graphics, mapView: this.mapView, open: this._editRecordOpen }), h("calcite-alert", { key: '1927a41a8c9fbb6373490d554cf8128a93fe8e71', icon: "layer-broken", kind: "warning", label: "", onCalciteAlertClose: () => this._alertClosed(), open: this._alertOpen, placement: "top" }, h("div", { key: '33ba87f5b72019c2795fe12485aa51429115b74d', slot: "title" }, this._translations.editDisabled), h("div", { key: 'd45970a653b416bbdd5e5b97040b23e54eaf98a5', slot: "message" }, this._translations.enableEditing)))));
190
189
  }
191
190
  //--------------------------------------------------------------------------
192
191
  //
@@ -259,13 +258,11 @@ export class InfoCard {
259
258
  this._showListView = isOpen;
260
259
  }
261
260
  });
262
- if (this.zoomAndScrollToSelected) {
263
- this.reactiveUtils.watch(() => this._features.selectedFeatureIndex, (i) => {
264
- if (i > -1) {
265
- this.selectionChanged.emit({ selectedFeature: [this._features.selectedFeature], selectedFeatureIndex: this._features.selectedFeatureIndex });
266
- }
267
- });
268
- }
261
+ this.reactiveUtils.watch(() => this._features.selectedFeatureIndex, (i) => {
262
+ if (i > -1) {
263
+ this.selectionChanged.emit({ selectedFeature: [this._features.selectedFeature], selectedFeatureIndex: this._features.selectedFeatureIndex });
264
+ }
265
+ });
269
266
  }
270
267
  else {
271
268
  this._features.view = this.mapView;
@@ -445,23 +442,6 @@ export class InfoCard {
445
442
  "text": "esri/views/MapView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html"
446
443
  }
447
444
  },
448
- "zoomAndScrollToSelected": {
449
- "type": "boolean",
450
- "mutable": false,
451
- "complexType": {
452
- "original": "boolean",
453
- "resolved": "boolean",
454
- "references": {}
455
- },
456
- "required": false,
457
- "optional": false,
458
- "docs": {
459
- "tags": [],
460
- "text": "boolean: When true the selected feature will zoomed to in the map and the row will be scrolled to within the table"
461
- },
462
- "attribute": "zoom-and-scroll-to-selected",
463
- "reflect": false
464
- },
465
445
  "allowEditing": {
466
446
  "type": "boolean",
467
447
  "mutable": false,
@@ -180,7 +180,7 @@ export class LayerList {
180
180
  getLayerListItem(layerId) {
181
181
  const layerName = this._layerItemsHash[layerId].name;
182
182
  const featureCount = this._layerItemsHash[layerId].formattedFeatureCount;
183
- return (h("calcite-list-item", { onCalciteListItemSelect: () => { this.onLayerItemSelected(layerId); } }, h("div", { class: "layer-name", slot: "content-start" }, layerName), this.showFeatureCount && featureCount !== undefined && featureCount !== "" && h("div", { class: !this.showNextIcon ? "feature-count" : "", slot: "content-end" }, "(" + featureCount + ")"), this.showNextIcon && h("calcite-icon", { icon: "chevron-right", scale: "s", slot: "content-end" })));
183
+ return (h("calcite-list-item", { onCalciteListItemSelect: () => { this.onLayerItemSelected(layerId); } }, h("div", { class: "layer-name", slot: "content-start" }, layerName), this.showFeatureCount && featureCount !== undefined && featureCount !== "" && h("div", { class: !this.showNextIcon ? "feature-count" : "", slot: "content-end" }, "(" + featureCount + ")"), this.showNextIcon && h("calcite-icon", { flipRtl: true, icon: "chevron-right", scale: "s", slot: "content-end" })));
184
184
  }
185
185
  /**On click of layer list item emit the event along with the selected layerId and layerName
186
186
  * @param layerId Layer id
@@ -224,6 +224,12 @@ export class LayerTable {
224
224
  async selectionChanged(evt) {
225
225
  const g = evt.detail.selectedFeature[0];
226
226
  const oid = g.getObjectId();
227
+ //Highlight the current selected feature in the table using rowHighlightIds
228
+ const table = this._table;
229
+ if (table.rowHighlightIds.length) {
230
+ table.rowHighlightIds.removeAll();
231
+ }
232
+ table.rowHighlightIds.add(oid);
227
233
  if (this.zoomAndScrollToSelected) {
228
234
  const i = this._table.viewModel.getObjectIdIndex(oid);
229
235
  this._table.scrollToIndex(i);
@@ -308,7 +314,7 @@ export class LayerTable {
308
314
  const selected = this.selectedIds.length.toString();
309
315
  const tableHeightClass = this.isMobile ? "height-full" : "height-full-adjusted";
310
316
  this._validateActiveActions();
311
- return (h(Host, { key: 'a8110680363000bcec4eb6f0b4a94ee2f677dcca' }, h("calcite-shell", { key: '3c4471daca709db284ede134712933ada2213bdd' }, this._getTableControlRow("header"), h("div", { key: 'fce44e957e4490d6fd9cbcff02beec8cf1a780f4', class: `width-full ${tableHeightClass}` }, h("calcite-panel", { key: 'e75572b0f313f99489268f6d63b27b78c8722331', class: "height-full width-full" }, h("calcite-loader", { key: '2a34bd84408d1aff552f2818976e03c487443215', class: loadingClass, label: this._translations.fetchingData, scale: "l" }), h("div", { key: '0823308992c61fa803cf5a526d903b629327c251', class: tableNodeClass, ref: this.onTableNodeCreate })), !this.isMobile ? (h("div", { class: "bottom-left text-color height-19" }, this._translations.recordsSelected
317
+ return (h(Host, { key: '92b88fc87d2c0a0eaaef9587d2324a63665b1cc2' }, h("calcite-shell", { key: 'fcc7190ee18fe6f20ab08a5331a8bcd2c9c83c74' }, this._getTableControlRow("header"), h("div", { key: 'be1a282eb23580b8f713f27fe198bab1c18ba689', class: `width-full ${tableHeightClass}` }, h("calcite-panel", { key: 'd5ef6c04334f48c26f01b61f587370c0ee58682f', class: "height-full width-full" }, h("calcite-loader", { key: 'b31c1977446ed6ca47e96a7a47673e03f938265e', class: loadingClass, label: this._translations.fetchingData, scale: "l" }), h("div", { key: '07ce4a7741dc0197816f04e57c5d32cbc5666f0e', class: tableNodeClass, ref: this.onTableNodeCreate })), !this.isMobile ? (h("div", { class: "bottom-left text-color height-19" }, this._translations.recordsSelected
312
318
  .replace("{{total}}", total)
313
319
  .replace("{{selected}}", selected))) : undefined)), this._filterModal()));
314
320
  }
@@ -1111,18 +1117,18 @@ export class LayerTable {
1111
1117
  * Sort the table with the configured field and the sort order
1112
1118
  */
1113
1119
  async _sortTable() {
1114
- var _a, _b, _c, _d;
1120
+ var _a, _b, _c, _d, _e;
1115
1121
  //By default sort the table using objectIdField and in descending order
1116
- let sortField = this._layer.objectIdField;
1122
+ let sortField = (_a = this._layer) === null || _a === void 0 ? void 0 : _a.objectIdField;
1117
1123
  let sortOrder = 'desc';
1118
1124
  let configuredLayer;
1119
1125
  //get the sortField and sortOrder from the configuration
1120
- if (((_c = (_b = (_a = this.mapInfo) === null || _a === void 0 ? void 0 : _a.layerOptions) === null || _b === void 0 ? void 0 : _b.layers) === null || _c === void 0 ? void 0 : _c.length) > 0) {
1126
+ if (((_d = (_c = (_b = this.mapInfo) === null || _b === void 0 ? void 0 : _b.layerOptions) === null || _c === void 0 ? void 0 : _c.layers) === null || _d === void 0 ? void 0 : _d.length) > 0) {
1121
1127
  configuredLayer = this.mapInfo.layerOptions.layers.filter((layer) => layer.id === this._layer.id);
1122
1128
  if (configuredLayer && configuredLayer.length > 0) {
1123
1129
  configuredLayer = configuredLayer[0];
1124
1130
  //if sort field is defined and sortField is available in the fields then use it
1125
- if (configuredLayer.sortField && ((_d = configuredLayer.fields) === null || _d === void 0 ? void 0 : _d.includes(configuredLayer.sortField))) {
1131
+ if (configuredLayer.sortField && ((_e = configuredLayer.fields) === null || _e === void 0 ? void 0 : _e.includes(configuredLayer.sortField))) {
1126
1132
  sortField = configuredLayer.sortField;
1127
1133
  }
1128
1134
  //use sort order if configured
@@ -45,11 +45,17 @@
45
45
  // });
46
46
 
47
47
  function infoIconButtonClick(evt) {
48
- }
48
+ console.log('Introduction window button clicked')
49
+ }
50
+
51
+ function coverPageIconButtonClick() {
52
+ console.log('cover page button clicked')
53
+ }
49
54
 
50
55
  function addValues() {
51
56
  const demo = document.getElementById("demo");
52
- demo.addEventListener('infoIconButtonClick', infoIconButtonClick);
57
+ demo.addEventListener('showIntroductionWindow', infoIconButtonClick);
58
+ demo.addEventListener('showCoverPage', coverPageIconButtonClick);
53
59
  let headerSet = false;
54
60
  let custom = [];
55
61
  var vars = window.location.search.substring(1).split('&');
@@ -204,6 +210,8 @@
204
210
  }]
205
211
  ];
206
212
  demo.hideMapOnLoad = false;
213
+ //demo.coverPageEnabled = true;
214
+ demo.introductionWindowEnabled = true;
207
215
  }
208
216
  </script>
209
217
  </head>
@@ -18,6 +18,7 @@
18
18
  * See the License for the specific language governing permissions and
19
19
  * limitations under the License.
20
20
  */
21
+ import { _prepareAttributeValue } from "./downloadUtils";
21
22
  import { loadModules } from "./loadModules";
22
23
  export class PopupUtils {
23
24
  /**
@@ -39,6 +40,7 @@ export class PopupUtils {
39
40
  }
40
41
  const layer = graphic.layer;
41
42
  const popupTitle = this._removeTags((_a = layer === null || layer === void 0 ? void 0 : layer.popupTemplate) === null || _a === void 0 ? void 0 : _a.title);
43
+ //resolve arcade expression from the popup title
42
44
  if (popupTitle.includes("{expression/expr") && ((_b = layer === null || layer === void 0 ? void 0 : layer.popupTemplate) === null || _b === void 0 ? void 0 : _b.expressionInfos) != null) {
43
45
  for (let i = 0; i < ((_c = layer.popupTemplate) === null || _c === void 0 ? void 0 : _c.expressionInfos.length); i++) {
44
46
  const info = layer.popupTemplate.expressionInfos[i];
@@ -58,6 +60,17 @@ export class PopupUtils {
58
60
  }
59
61
  }
60
62
  }
63
+ //Format field values
64
+ if (layer.popupTemplate.fieldInfos) {
65
+ layer.fields.forEach((field) => {
66
+ const attributeValue = graphic.attributes[field.name];
67
+ //get the field info from popupTemplate
68
+ const fieldInfo = layer.popupTemplate.fieldInfos.find((fInfo) => fInfo.fieldName.toLowerCase() === field.name.toLowerCase());
69
+ //format the attribute value
70
+ const formattedAttributeValue = _prepareAttributeValue(attributeValue, field.type, field.domain, fieldInfo === null || fieldInfo === void 0 ? void 0 : fieldInfo.format, this.intl);
71
+ attributes[`{${field.name.toUpperCase()}}`] = formattedAttributeValue;
72
+ });
73
+ }
61
74
  return popupTitle === null || popupTitle === void 0 ? void 0 : popupTitle.replace(/{.*?}/g, (placeholder) => {
62
75
  return attributes[placeholder.toUpperCase()] != null ? attributes[placeholder.toUpperCase()] : "";
63
76
  });
@@ -83,9 +96,11 @@ export class PopupUtils {
83
96
  * @protected
84
97
  */
85
98
  async _initModules() {
86
- const [arcade] = await loadModules([
87
- "esri/arcade"
99
+ const [arcade, intl] = await loadModules([
100
+ "esri/arcade",
101
+ "esri/intl"
88
102
  ]);
89
103
  this.arcade = arcade;
104
+ this.intl = intl;
90
105
  }
91
106
  }
@@ -14,6 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
+ import { _prepareAttributeValue } from "./downloadUtils";
17
18
  import { loadModules } from "./loadModules";
18
19
 
19
20
  export class PopupUtils {
@@ -23,6 +24,11 @@ export class PopupUtils {
23
24
  */
24
25
  arcade: typeof import("esri/arcade");
25
26
 
27
+ /**
28
+ * esri/intl: https://developers.arcgis.com/javascript/latest/api-reference/esri-intl.html
29
+ */
30
+ intl: typeof import("esri/intl");
31
+
26
32
  /**
27
33
  * Get the popup title that honors arcade expressions
28
34
  * @param graphic selected graphic
@@ -47,6 +53,7 @@ export class PopupUtils {
47
53
  }
48
54
  const layer = graphic.layer as __esri.FeatureLayer;
49
55
  const popupTitle = this._removeTags(layer?.popupTemplate?.title as string);
56
+ //resolve arcade expression from the popup title
50
57
  if (popupTitle.includes("{expression/expr") && layer?.popupTemplate?.expressionInfos != null) {
51
58
  for (let i = 0; i < layer.popupTemplate?.expressionInfos.length; i++) {
52
59
  const info = layer.popupTemplate.expressionInfos[i];
@@ -65,7 +72,18 @@ export class PopupUtils {
65
72
  }
66
73
  }
67
74
  }
68
-
75
+ //Format field values
76
+ if (layer.popupTemplate.fieldInfos) {
77
+ layer.fields.forEach((field) => {
78
+ const attributeValue = graphic.attributes[field.name];
79
+ //get the field info from popupTemplate
80
+ const fieldInfo = layer.popupTemplate.fieldInfos.find((fInfo) => fInfo.fieldName.toLowerCase() === field.name.toLowerCase());
81
+ //format the attribute value
82
+ const formattedAttributeValue = _prepareAttributeValue(attributeValue, field.type, field.domain, fieldInfo?.format, this.intl);
83
+ attributes[`{${field.name.toUpperCase()}}`] = formattedAttributeValue;
84
+ })
85
+ }
86
+
69
87
  return popupTitle?.replace(/{.*?}/g, (placeholder: string) => {
70
88
  return attributes[placeholder.toUpperCase()] != null ? (attributes[placeholder.toUpperCase()] as string) : "";
71
89
  });
@@ -93,10 +111,12 @@ export class PopupUtils {
93
111
  * @protected
94
112
  */
95
113
  protected async _initModules(): Promise<void> {
96
- const [arcade] = await loadModules([
97
- "esri/arcade"
114
+ const [arcade, intl] = await loadModules([
115
+ "esri/arcade",
116
+ "esri/intl"
98
117
  ]);
99
118
  this.arcade = arcade;
119
+ this.intl = intl;
100
120
  }
101
121
 
102
122
  }
@@ -94,7 +94,7 @@ const CardManager = /*@__PURE__*/ proxyCustomElement(class CardManager extends H
94
94
  var _a, _b;
95
95
  const featuresClass = ((_a = this._graphics) === null || _a === void 0 ? void 0 : _a.length) > 0 ? "" : "display-none";
96
96
  const messageClass = ((_b = this._graphics) === null || _b === void 0 ? void 0 : _b.length) > 0 ? "display-none" : "";
97
- return (h(Host, { key: 'c4b71cefeb5eec1e1312104c519dfb9ef1398d71' }, h("div", { key: '6c1539db40060f9295c8aa72af29eac5f9c67d8d', class: "overflow-auto height-full" }, h("calcite-shell", { key: '2a4f7b47e01e3f27528dbce5fe236187a0f57dab', class: "position-relative " + featuresClass }, h("div", { key: '4b226239c5b80210aa3d42d422bbc50a66bdcf59' }, h("info-card", { key: '23ec16e93def6ebf81ed86109a55aa3e667fb958', graphics: this._graphics, isLoading: this._cardLoading, isMobile: this.isMobile, mapView: this.mapView, zoomAndScrollToSelected: this.zoomAndScrollToSelected }))), h("calcite-shell", { key: '8b385e91e35cfa4dc14aa67f300badf627119c39', class: "position-relative " + messageClass }, h("div", { key: 'a4cca3a463dbe115638c3b15d4613f7d719f153f', class: "padding-1" }, h("calcite-notice", { key: '91047393ac4f19864179f97631ffcdf48aaa47c1', icon: "table", open: true }, h("div", { key: 'c81f06e628d2811c3cedbae6a3e38fb972d0a759', slot: "message" }, this._translations.selectFeaturesToStart)))))));
97
+ return (h(Host, { key: 'c4b71cefeb5eec1e1312104c519dfb9ef1398d71' }, h("div", { key: '6c1539db40060f9295c8aa72af29eac5f9c67d8d', class: "overflow-auto height-full" }, h("calcite-shell", { key: '2a4f7b47e01e3f27528dbce5fe236187a0f57dab', class: "position-relative " + featuresClass }, h("div", { key: '4b226239c5b80210aa3d42d422bbc50a66bdcf59' }, h("info-card", { key: '55561c22c8685c3ba3daa25c51053fa47d553ba9', graphics: this._graphics, isLoading: this._cardLoading, isMobile: this.isMobile, mapView: this.mapView }))), h("calcite-shell", { key: '8f9156bf9c08920e7731f50daeecb031e9135281', class: "position-relative " + messageClass }, h("div", { key: '0529f9a60349337716ba53f10551b08a34c48209', class: "padding-1" }, h("calcite-notice", { key: '812047f7628598fa6b20e3df00355efee584bb71', icon: "table", open: true }, h("div", { key: 'd7c1b7ab03de1fb30e8e84a6d331d43e69a9946e', slot: "message" }, this._translations.selectFeaturesToStart)))))));
98
98
  }
99
99
  //--------------------------------------------------------------------------
100
100
  //
@@ -5,7 +5,7 @@
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
7
7
  import { g as getLocaleComponentStrings } from './locale.js';
8
- import { c as commonjsRequire, a as commonjsGlobal } from './esri-loader.js';
8
+ import { a as commonjsRequire, c as commonjsGlobal } from './esri-loader.js';
9
9
  import { d as defineCustomElement$a } from './action.js';
10
10
  import { d as defineCustomElement$9 } from './action-menu.js';
11
11
  import { d as defineCustomElement$8 } from './button.js';
@@ -72,7 +72,8 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
72
72
  constructor() {
73
73
  super();
74
74
  this.__registerHost();
75
- this.infoIconButtonClick = createEvent(this, "infoIconButtonClick", 7);
75
+ this.showIntroductionWindow = createEvent(this, "showIntroductionWindow", 7);
76
+ this.showCoverPage = createEvent(this, "showCoverPage", 7);
76
77
  //--------------------------------------------------------------------------
77
78
  //
78
79
  // Properties (protected)
@@ -102,7 +103,7 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
102
103
  this.defaultLevel = "";
103
104
  this.defaultOid = "";
104
105
  this.defaultWebmap = "";
105
- this.introductionPageEnabled = false;
106
+ this.introductionWindowEnabled = false;
106
107
  this.enableAutoRefresh = false;
107
108
  this.enableBasemap = true;
108
109
  this.enableColumnReorder = true;
@@ -157,7 +158,7 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
157
158
  * When true the map will be hidden on load
158
159
  */
159
160
  hideMapOnLoadWatchHandler() {
160
- this.showHideMapPopupAndTable(true);
161
+ this.showHideMapPopupAndTable(this.hideMapOnLoad);
161
162
  this._expandPopup = this.hideMapOnLoad;
162
163
  }
163
164
  /**
@@ -251,7 +252,7 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
251
252
  render() {
252
253
  // only avoid border when we have a header color that is not white
253
254
  const borderClass = this.popupHeaderColor && this.popupHeaderColor !== "#FFFFFF" ? "border-width-0" : "";
254
- return (h(Host, { key: '8deef9c7dc113fa8aa03bb0841f5ec10a39de007' }, h("calcite-shell", { key: '652ec17baa763639ee7828383be371339c034670', class: "position-relative" }, h("calcite-panel", { key: '8ec3c3bd12c2fbed9b5166b683ee9cf79c7f3a88', class: `width-full height-full ${borderClass}` }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter())));
255
+ return (h(Host, { key: 'adf6957871aa364f3c0d65f949eb94587f065780' }, h("calcite-shell", { key: 'cbe60dd48a1ffb16ca5bf4d7bf7ee96272fed7a5', class: "position-relative" }, h("calcite-panel", { key: '19e98d7bd25c939f3d8860d68c61a5168730eb00', class: `width-full height-full ${borderClass}` }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter())));
255
256
  }
256
257
  /**
257
258
  * Called after each render
@@ -372,13 +373,20 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
372
373
  const contentClass = layoutMode === ELayoutMode.HORIZONTAL ? "" : "display-flex";
373
374
  const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
374
375
  return (h("calcite-panel", { class: "width-full height-full" }, h("div", { class: `width-full height-full overflow-hidden ${contentClass}` }, this._getMapAndCard(layoutMode, panelOpen, hideTable), this._getTable(layoutMode, panelOpen, hideTable)), this.coverPageEnabled &&
376
+ h("div", { class: "floating-container", onClick: this.coverPageButtonClick.bind(this) }, h("calcite-button", { appearance: "solid", class: `floating-button ${themeClass}`, "icon-start": "content-minimal", kind: "neutral", label: "", round: true, scale: "l", "split-child": "primary", width: "auto" })), this.introductionWindowEnabled &&
375
377
  h("div", { class: "floating-container", onClick: this.infoButtonClick.bind(this) }, h("calcite-button", { appearance: "solid", class: `floating-button ${themeClass}`, "icon-start": "information-letter", kind: "neutral", label: "", round: true, scale: "l", "split-child": "primary", width: "auto" }))));
376
378
  }
377
379
  /**
378
380
  * Emit the event when info button clicked
379
381
  */
380
382
  infoButtonClick() {
381
- this.infoIconButtonClick.emit();
383
+ this.showIntroductionWindow.emit();
384
+ }
385
+ /**
386
+ * Emit the event when cover page button clicked
387
+ */
388
+ coverPageButtonClick() {
389
+ this.showCoverPage.emit();
382
390
  }
383
391
  /**
384
392
  * Get the map and card nodes based for the current layout options
@@ -588,7 +596,7 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
588
596
  "defaultLevel": [1, "default-level"],
589
597
  "defaultOid": [1, "default-oid"],
590
598
  "defaultWebmap": [1, "default-webmap"],
591
- "introductionPageEnabled": [4, "introduction-page-enabled"],
599
+ "introductionWindowEnabled": [4, "introduction-window-enabled"],
592
600
  "enableAutoRefresh": [4, "enable-auto-refresh"],
593
601
  "enableBasemap": [4, "enable-basemap"],
594
602
  "enableColumnReorder": [4, "enable-column-reorder"],
@@ -613,7 +613,7 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
613
613
  * @returns Node
614
614
  */
615
615
  getCommentDetailsFlowItem() {
616
- return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._relatedTable.title, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), h("calcite-panel", { "full-height": true }, h("info-card", { allowEditing: false, graphics: this._selectedRelatedFeature, highlightEnabled: false, isLoading: false, isMobile: false, mapView: this.mapView, paginationEnabled: false, zoomAndScrollToSelected: false }))));
616
+ return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._relatedTable.title, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), h("calcite-panel", { "full-height": true }, h("info-card", { allowEditing: false, graphics: this._selectedRelatedFeature, highlightEnabled: false, isLoading: false, isMobile: false, mapView: this.mapView, paginationEnabled: false }))));
617
617
  }
618
618
  /**
619
619
  * Returns the calcite-flow item for add comment
@@ -3155,4 +3155,4 @@ async function _prepareLabelsUsingExecutor(featureSet, labelFormat) {
3155
3155
  }
3156
3156
  //#endregion
3157
3157
 
3158
- export { _typeof as _, downloadPDF as a, consolidateLabels as c, downloadCSV as d, removeDuplicateLabels as r };
3158
+ export { _prepareAttributeValue as _, downloadPDF as a, _typeof as b, consolidateLabels as c, downloadCSV as d, removeDuplicateLabels as r };
@@ -308,4 +308,4 @@ Object.defineProperty(exports, '__esModule', { value: true });
308
308
 
309
309
  }(esriLoader, esriLoader.exports));
310
310
 
311
- export { commonjsGlobal as a, commonjsRequire as c, esriLoader as e, getDefaultExportFromCjs as g };
311
+ export { commonjsRequire as a, commonjsGlobal as c, esriLoader as e, getDefaultExportFromCjs as g };