@esri/solutions-components 0.8.17 → 0.8.19

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 (56) hide show
  1. package/dist/cjs/calcite-alert_4.cjs.entry.js +1 -1
  2. package/dist/cjs/calcite-flow_6.cjs.entry.js +8 -7
  3. package/dist/cjs/card-manager_3.cjs.entry.js +18 -9
  4. package/dist/cjs/crowdsource-manager.cjs.entry.js +8 -9
  5. package/dist/cjs/crowdsource-reporter.cjs.entry.js +4 -3
  6. package/dist/cjs/feature-list.cjs.entry.js +5 -3
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/cjs/solutions-components.cjs.js +1 -1
  9. package/dist/collection/components/create-related-feature/create-related-feature.js +17 -1
  10. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +8 -43
  11. package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.css +4 -3
  12. package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +3 -2
  13. package/dist/collection/components/feature-details/feature-details.js +22 -7
  14. package/dist/collection/components/feature-list/feature-list.js +5 -3
  15. package/dist/collection/components/info-card/info-card.css +1 -0
  16. package/dist/collection/components/layer-table/layer-table.js +18 -43
  17. package/dist/collection/demos/crowdsource-manager.html +4 -2
  18. package/dist/collection/demos/crowdsource-reporter.html +1 -1
  19. package/dist/collection/utils/interfaces.ts +2 -0
  20. package/dist/components/create-related-feature2.js +2 -1
  21. package/dist/components/crowdsource-manager.js +8 -11
  22. package/dist/components/crowdsource-reporter.js +4 -3
  23. package/dist/components/feature-details2.js +6 -6
  24. package/dist/components/feature-list2.js +5 -3
  25. package/dist/components/info-card2.js +1 -1
  26. package/dist/components/layer-table2.js +18 -11
  27. package/dist/esm/calcite-alert_4.entry.js +1 -1
  28. package/dist/esm/calcite-flow_6.entry.js +8 -7
  29. package/dist/esm/card-manager_3.entry.js +18 -9
  30. package/dist/esm/crowdsource-manager.entry.js +8 -9
  31. package/dist/esm/crowdsource-reporter.entry.js +4 -3
  32. package/dist/esm/feature-list.entry.js +5 -3
  33. package/dist/esm/loader.js +1 -1
  34. package/dist/esm/solutions-components.js +1 -1
  35. package/dist/solutions-components/demos/crowdsource-manager.html +4 -2
  36. package/dist/solutions-components/demos/crowdsource-reporter.html +1 -1
  37. package/dist/solutions-components/{p-d4686851.entry.js → p-48c99a48.entry.js} +1 -1
  38. package/dist/solutions-components/p-64779bb2.entry.js +6 -0
  39. package/dist/solutions-components/p-6a598429.entry.js +6 -0
  40. package/dist/solutions-components/{p-d84fe0ee.entry.js → p-8cff32bd.entry.js} +1 -1
  41. package/dist/solutions-components/p-dae79b8d.entry.js +6 -0
  42. package/dist/solutions-components/{p-b6d47bab.entry.js → p-f6668347.entry.js} +3 -3
  43. package/dist/solutions-components/solutions-components.esm.js +1 -1
  44. package/dist/solutions-components/utils/interfaces.ts +2 -0
  45. package/dist/types/components/create-related-feature/create-related-feature.d.ts +16 -0
  46. package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +0 -8
  47. package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +1 -0
  48. package/dist/types/components/feature-details/feature-details.d.ts +16 -1
  49. package/dist/types/components/feature-list/feature-list.d.ts +4 -0
  50. package/dist/types/components/layer-table/layer-table.d.ts +1 -9
  51. package/dist/types/components.d.ts +1 -33
  52. package/dist/types/utils/interfaces.d.ts +2 -0
  53. package/package.json +1 -1
  54. package/dist/solutions-components/p-22aece81.entry.js +0 -6
  55. package/dist/solutions-components/p-e6abef31.entry.js +0 -6
  56. package/dist/solutions-components/p-e947332f.entry.js +0 -6
@@ -3,6 +3,21 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
+ /** @license
7
+ * Copyright 2022 Esri
8
+ *
9
+ * Licensed under the Apache License, Version 2.0 (the "License");
10
+ * you may not use this file except in compliance with the License.
11
+ * You may obtain a copy of the License at
12
+ *
13
+ * http://www.apache.org/licenses/LICENSE-2.0
14
+ *
15
+ * Unless required by applicable law or agreed to in writing, software
16
+ * distributed under the License is distributed on an "AS IS" BASIS,
17
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
+ * See the License for the specific language governing permissions and
19
+ * limitations under the License.
20
+ */
6
21
  import { Host, h } from "@stencil/core";
7
22
  import { loadModules } from "../../utils/loadModules";
8
23
  export class CreateRelatedFeature {
@@ -80,7 +95,7 @@ export class CreateRelatedFeature {
80
95
  this.reactiveUtils = reactiveUtils;
81
96
  }
82
97
  render() {
83
- return (h(Host, { key: '383e8fac89d037f77241d856013202d1e04b28ba' }));
98
+ return (h(Host, { key: '9807b7dcad1f8305756e6098f1e64ef8caffcbac' }));
84
99
  }
85
100
  /**
86
101
  * StencilJS: Called once just after the component is fully loaded and the first render() occurs.
@@ -187,6 +202,7 @@ export class CreateRelatedFeature {
187
202
  * @param parentRelationship Parent relationship
188
203
  * @param childRelationship Child relationship
189
204
  * @returns Attributes for related feature
205
+ * @protected
190
206
  */
191
207
  makeAttributesForRelatedFeature(parentFeature, parentRelationship, childRelationship) {
192
208
  const parentKeyField = parentRelationship.keyField;
@@ -79,8 +79,6 @@ export class CrowdsourceManager {
79
79
  this.theme = "light";
80
80
  this.zoomAndScrollToSelected = false;
81
81
  this.zoomToScale = undefined;
82
- this.sortField = undefined;
83
- this.sortOrder = undefined;
84
82
  this._expandPopup = this.hideMapOnLoad;
85
83
  this._hideFooter = false;
86
84
  this._hideTable = false;
@@ -187,7 +185,7 @@ export class CrowdsourceManager {
187
185
  * Renders the component.
188
186
  */
189
187
  render() {
190
- return (h(Host, { key: '686aeccc0f97c1eb8bc1b673d8816663e80fdf71' }, h("calcite-shell", { key: 'f3451483cdbafa8b68a00b71e9927bbff55781b9', class: "position-relative" }, h("calcite-panel", { key: '8256440e1cefa8f25bf1af1f9a1e87650c34462d', class: `width-full height-full border-width-0` }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter())));
188
+ return (h(Host, { key: '5cd7d2ea4be1216270e15afc3d090bfc672f5335' }, h("calcite-shell", { key: 'cb5b4104b698a0bc146c2f5f47bd03b7944025c1', class: "position-relative" }, h("calcite-panel", { key: 'cbf1848d59c485dd143d6051506fcd92215fa2ec', class: `width-full height-full border-width-0` }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter())));
191
189
  }
192
190
  /**
193
191
  * Called after each render
@@ -307,7 +305,8 @@ export class CrowdsourceManager {
307
305
  _getBody(layoutMode, panelOpen, hideTable) {
308
306
  const contentClass = layoutMode === ELayoutMode.HORIZONTAL ? "" : "display-flex";
309
307
  const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
310
- 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)), 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" }))));
308
+ 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 &&
309
+ 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" }))));
311
310
  }
312
311
  /**
313
312
  * Emit the event when info button clicked
@@ -360,10 +359,10 @@ export class CrowdsourceManager {
360
359
  const headerTheme = this.popupHeaderColor ? "" : !this._isMobile ? "calcite-mode-dark" : "calcite-mode-light";
361
360
  const containerClass = this._isMobile && this._hideTable ? "position-absolute-0 width-full height-full" : this._isMobile ? "display-none height-0" : "";
362
361
  return (h("div", { class: `${headerTheme} ${popupNodeClass} ${containerClass}`, style: {
363
- '--calcite-color-foreground-1': this.popupHeaderColor, /* background color to apply to the popup header */
364
- '--calcite-color-foreground-2': this.popupHeaderHoverColor, /* color that will be displayed on hover when expanding the popup header */
365
- '--calcite-color-text-3': this.popupHeaderHoverTextColor, /* font color that will be displayed on hover when expanding the popup header */
366
- '--calcite-color-text-2': this.popupHeaderTextColor, /* font color to apply to the popup header */
362
+ '--calcite-color-foreground-1': this.popupHeaderColor, /* background color that will be displayed on the popup header */
363
+ '--calcite-color-foreground-2': this.popupHeaderHoverColor, /* background color that will be displayed on button when hovered */
364
+ '--calcite-color-text-3': this.popupHeaderTextColor, /* font color that will be displayed on button */
365
+ '--calcite-color-text-2': this.popupHeaderTextColor, /* font color that will be displayed on popup header text*/
367
366
  } }, h("calcite-panel", null, !this._isMobile ? (h("div", { class: `display-flex align-items-center ${headerClass}`, slot: "header-content" }, h("calcite-icon", { icon: "information", scale: "s" }), h("div", { class: "padding-inline-start-75" }, this._translations.information))) : undefined, h("calcite-action", { class: headerClass, disabled: this._tableOnly, icon: icon, id: id, onClick: () => this._togglePopup(), slot: "header-actions-end", text: "" }), !this._tableOnly ? h("calcite-tooltip", { class: themeClass, label: "", placement: "bottom", "reference-element": id }, h("span", null, tooltip)) : undefined, this._getCardNode())));
368
367
  }
369
368
  /**
@@ -408,7 +407,7 @@ export class CrowdsourceManager {
408
407
  ((_a = this.defaultGlobalId) === null || _a === void 0 ? void 0 : _a.indexOf(",")) > -1 ? this.defaultGlobalId.split(",") : [this.defaultGlobalId];
409
408
  const defaultOid = !this.defaultOid ? undefined :
410
409
  ((_b = this.defaultOid) === null || _b === void 0 ? void 0 : _b.indexOf(",")) > -1 ? this.defaultOid.split(",").map(o => parseInt(o, 10)) : [parseInt(this.defaultOid, 10)];
411
- return (h("calcite-shell", { class: `${tableSizeClass} ${tableClass} border-bottom` }, !this._isMobile ? (h("calcite-action-bar", { class: "border-sides", expandDisabled: true, layout: toggleLayout, slot: toggleSlot }, h("calcite-action", { class: "toggle-node", icon: icon, id: id, onClick: () => this._toggleLayout(), text: "" }), h("calcite-tooltip", { label: tooltip, placement: "bottom", "reference-element": id }, h("span", null, tooltip)))) : undefined, h("div", { class: `width-full height-full position-relative` }, h("layer-table", { defaultGlobalId: hasMapAndLayer ? globalId : undefined, defaultLayerId: hasMapAndLayer ? this.defaultLayer : "", defaultOid: hasMapAndLayer && !globalId ? defaultOid : undefined, enableAutoRefresh: this.enableAutoRefresh, enableCSV: this.enableCSV, enableColumnReorder: this.enableColumnReorder, enableInlineEdit: this.enableInlineEdit, enableShare: this.enableShare, isMobile: this._isMobile, mapInfo: this._mapInfo, mapView: this === null || this === void 0 ? void 0 : this._mapView, onlyShowUpdatableLayers: this.onlyShowUpdatableLayers, ref: (el) => this._layerTable = el, shareIncludeEmbed: this.shareIncludeEmbed, shareIncludeSocial: this.shareIncludeSocial, showNewestFirst: this.showNewestFirst, sortField: this.sortField, sortOrder: this.sortOrder, zoomAndScrollToSelected: this.zoomAndScrollToSelected, zoomToScale: this.zoomToScale }))));
410
+ return (h("calcite-shell", { class: `${tableSizeClass} ${tableClass} border-bottom` }, !this._isMobile ? (h("calcite-action-bar", { class: "border-sides", expandDisabled: true, layout: toggleLayout, slot: toggleSlot }, h("calcite-action", { class: "toggle-node", icon: icon, id: id, onClick: () => this._toggleLayout(), text: "" }), h("calcite-tooltip", { label: tooltip, placement: "bottom", "reference-element": id }, h("span", null, tooltip)))) : undefined, h("div", { class: `width-full height-full position-relative` }, h("layer-table", { defaultGlobalId: hasMapAndLayer ? globalId : undefined, defaultLayerId: hasMapAndLayer ? this.defaultLayer : "", defaultOid: hasMapAndLayer && !globalId ? defaultOid : undefined, enableAutoRefresh: this.enableAutoRefresh, enableCSV: this.enableCSV, enableColumnReorder: this.enableColumnReorder, enableInlineEdit: this.enableInlineEdit, enableShare: this.enableShare, isMobile: this._isMobile, mapInfo: this._mapInfo, mapView: this === null || this === void 0 ? void 0 : this._mapView, onlyShowUpdatableLayers: this.onlyShowUpdatableLayers, ref: (el) => this._layerTable = el, shareIncludeEmbed: this.shareIncludeEmbed, shareIncludeSocial: this.shareIncludeSocial, showNewestFirst: this.showNewestFirst, zoomAndScrollToSelected: this.zoomAndScrollToSelected, zoomToScale: this.zoomToScale }))));
412
411
  }
413
412
  /**
414
413
  * Update the component layout when its size changes
@@ -1155,40 +1154,6 @@ export class CrowdsourceManager {
1155
1154
  },
1156
1155
  "attribute": "zoom-to-scale",
1157
1156
  "reflect": false
1158
- },
1159
- "sortField": {
1160
- "type": "string",
1161
- "mutable": false,
1162
- "complexType": {
1163
- "original": "string",
1164
- "resolved": "string",
1165
- "references": {}
1166
- },
1167
- "required": false,
1168
- "optional": false,
1169
- "docs": {
1170
- "tags": [],
1171
- "text": "string: Field using which table will be sorted"
1172
- },
1173
- "attribute": "sort-field",
1174
- "reflect": false
1175
- },
1176
- "sortOrder": {
1177
- "type": "string",
1178
- "mutable": false,
1179
- "complexType": {
1180
- "original": "'asc' | 'desc'",
1181
- "resolved": "\"asc\" | \"desc\"",
1182
- "references": {}
1183
- },
1184
- "required": false,
1185
- "optional": false,
1186
- "docs": {
1187
- "tags": [],
1188
- "text": "string(asc/desc): Sorting order - Ascending or Descending"
1189
- },
1190
- "attribute": "sort-order",
1191
- "reflect": false
1192
1157
  }
1193
1158
  };
1194
1159
  }
@@ -62,13 +62,14 @@
62
62
  }
63
63
 
64
64
  .feature-pagination {
65
- align-items: center;
66
- margin: 5% 124%;
65
+ background-color: var(--calcite-color-foreground-1) !important;
66
+ border-block-end: 1px solid var(--calcite-color-border-3);
67
67
  display: flex;
68
+ justify-content: center;
69
+ padding: 5px 0;
68
70
  }
69
71
 
70
72
  .pagination-count {
71
- width: 32px;
72
73
  color: var(--calcite-color-brand);
73
74
  border-bottom: 1px solid var(--calcite-color-brand);
74
75
  font-weight: bold;
@@ -232,6 +232,7 @@ export class CrowdsourceReporter {
232
232
  * On sort option click update the sort field and sort order
233
233
  * @param sortField sort field
234
234
  * @param sortOrder sort order
235
+ * @param sortOption selected sort option (Newest/Oldest/Highest Voted/Lowest Voted)
235
236
  */
236
237
  async sortOptionClick(sortField, sortOrder, sortOption) {
237
238
  this._updatedSorting = {
@@ -558,7 +559,7 @@ export class CrowdsourceReporter {
558
559
  */
559
560
  getFeatureDetailsFlowItem() {
560
561
  const showCommentBtn = this.reportingOptions[this._currentFeature.layer.id].comment && this._currentFeature.layer.relationships.length > 0;
561
- return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._selectedLayerName, loading: this._showLoadingIndicator, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), h("instant-apps-social-share", { autoUpdateShareUrl: false, embed: false, popoverButtonIconScale: "s", ref: el => this._shareNode = el, scale: "m", shareButtonColor: "neutral", shareButtonType: "action", slot: "header-actions-end", socialMedia: true, view: this.mapView }), h("calcite-panel", null, this._selectedFeature.length > 1 && this.getFeaturesPagination(), h("feature-details", { class: 'full-height', graphics: this._selectedFeature, mapView: this.mapView, onFeatureSelect: this.onCommentSelectFromList.bind(this), onLoadingStatus: (evt) => void this.updatingFeatureDetails(evt.detail), ref: el => this._featureDetails = el, reportingOptions: this.reportingOptions }), showCommentBtn &&
562
+ return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._selectedLayerName, loading: this._showLoadingIndicator, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), h("instant-apps-social-share", { autoUpdateShareUrl: false, embed: false, popoverButtonIconScale: "s", ref: el => this._shareNode = el, scale: "m", shareButtonColor: "neutral", shareButtonType: "action", slot: "header-actions-end", socialMedia: true, view: this.mapView }), this._selectedFeature.length > 1 && this.getFeaturesPagination(), h("calcite-panel", null, h("feature-details", { class: 'full-height', graphics: this._selectedFeature, mapView: this.mapView, onFeatureSelect: this.onCommentSelectFromList.bind(this), onLoadingStatus: (evt) => void this.updatingFeatureDetails(evt.detail), ref: el => this._featureDetails = el, reportingOptions: this.reportingOptions }), showCommentBtn &&
562
563
  h("calcite-button", { appearance: "solid", onClick: () => this._flowItems = [...this._flowItems, "add-comment"], slot: "footer", width: "full" }, this._translations.comment))));
563
564
  }
564
565
  /**
@@ -567,7 +568,7 @@ export class CrowdsourceReporter {
567
568
  * @returns Node
568
569
  */
569
570
  getFeaturesPagination() {
570
- return (h("div", { class: "feature-pagination", slot: "header-actions-start" }, h("div", null, h("calcite-button", { appearance: 'transparent', disabled: false, iconStart: "chevron-left", id: "solutions-back", onClick: () => void this._featureDetails.back(), scale: "s", width: "full" }), h("calcite-tooltip", { label: "", placement: "top", "reference-element": "solutions-back" }, h("span", null, this._translations.back))), h("calcite-button", { appearance: 'transparent', class: 'pagination-action', onClick: () => void this._featureDetails.toggleListView(), scale: "s" }, h("span", { class: "pagination-count" }, this._getCount())), h("div", null, h("calcite-button", { appearance: "transparent", disabled: false, iconStart: "chevron-right", id: "solutions-next", onClick: () => void this._featureDetails.next(), scale: "s", width: "full" }), h("calcite-tooltip", { placement: "top", "reference-element": "solutions-next" }, h("span", null, this._translations.next)))));
571
+ return (h("div", { class: "feature-pagination" }, h("div", null, h("calcite-button", { appearance: 'transparent', disabled: false, iconStart: "chevron-left", id: "solutions-back", onClick: () => void this._featureDetails.back(), scale: "s", width: "full" }), h("calcite-tooltip", { label: "", placement: "top", "reference-element": "solutions-back" }, h("span", null, this._translations.back))), h("calcite-button", { appearance: 'transparent', onClick: () => void this._featureDetails.toggleListView(), scale: "s" }, h("span", { class: "pagination-count" }, this._getCount())), h("div", null, h("calcite-button", { appearance: "transparent", disabled: false, iconStart: "chevron-right", id: "solutions-next", onClick: () => void this._featureDetails.next(), scale: "s", width: "full" }), h("calcite-tooltip", { placement: "top", "reference-element": "solutions-next" }, h("span", null, this._translations.next)))));
571
572
  }
572
573
  /**
573
574
  * Returns the calcite-flow item for comment details
@@ -3,6 +3,21 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
+ /** @license
7
+ * Copyright 2022 Esri
8
+ *
9
+ * Licensed under the Apache License, Version 2.0 (the "License");
10
+ * you may not use this file except in compliance with the License.
11
+ * You may obtain a copy of the License at
12
+ *
13
+ * http://www.apache.org/licenses/LICENSE-2.0
14
+ *
15
+ * Unless required by applicable law or agreed to in writing, software
16
+ * distributed under the License is distributed on an "AS IS" BASIS,
17
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
+ * See the License for the specific language governing permissions and
19
+ * limitations under the License.
20
+ */
6
21
  import { h } from "@stencil/core";
7
22
  import { loadModules } from "../../utils/loadModules";
8
23
  import { getAllTables } from "../../utils/mapViewUtils";
@@ -94,12 +109,12 @@ export class FeatureDetails {
94
109
  var _a, _b, _c, _d, _e;
95
110
  //When related features found show comments list of only those features else comments list will be empty
96
111
  const commentsListWhereClause = ((_a = this._relatedFeaturesOIDs) === null || _a === void 0 ? void 0 : _a.length) > 0 ? `objectId in(${this._relatedFeaturesOIDs})` : '1=0';
97
- return (h("calcite-panel", { key: 'c39c0eec021627b920972f7d4bce0d45bfe0a9c2', "full-height": true }, h("info-card", { key: 'e90cb427a1f874216afcfdf0a33804bf14fb6a2c', 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) &&
98
- h("div", { key: 'ecfdf111612c92eacfd97dae7bb3080b7ad50e96', class: "buttons-container" }, this._commentsAvailable &&
99
- h("div", { key: '07a8213e11585041fb1c5f56254447a720033f04', class: "comment-btn" }, h("span", { key: 'f4071fbd03372a0e88857962e9c31530e2dc693a' }, this._relatedFeaturesOIDs.length), h("calcite-icon", { key: '30258e1daae5f1e00d18dd4ec052861de46b45bf', icon: "speech-bubble", scale: 's' })), this._likeFieldAvailable &&
100
- h("calcite-button", { key: 'fa76245789a29e49be06482fd8cd0244f44d19ab', 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 &&
101
- h("calcite-button", { key: 'ac9adc799a93f08319b2f0b797cd5d4773b1a6cb', 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 &&
102
- h("feature-list", { key: '165b2ac0af65cbbab945a0dfd4ac878cc41af56c', 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: '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 })));
103
118
  }
104
119
  /**
105
120
  * Load esri javascript api modules
@@ -479,7 +494,7 @@ export class FeatureDetails {
479
494
  "composed": true,
480
495
  "docs": {
481
496
  "tags": [],
482
- "text": "Emitted on demand when feature is selected using the list"
497
+ "text": "Emitted on demand when comment is selected using the feature-list"
483
498
  },
484
499
  "complexType": {
485
500
  "original": "__esri.Graphic",
@@ -102,9 +102,9 @@ export class FeatureList {
102
102
  * Renders the component.
103
103
  */
104
104
  render() {
105
- return (h("calcite-panel", { key: '37f83a9c019e68213493f5e890324470389cd36f', "full-height": true, "full-width": true }, this._isLoading && h("calcite-loader", { key: '671559375bb5fcdc8a01f9f10a82ab71edc0d836', label: "", scale: "m" }), this._featureItems.length === 0 && !this._isLoading &&
106
- h("calcite-notice", { key: 'f6101de52464f2316bfbb83919036b4cf035f8b9', class: "error-msg", icon: "feature-details", kind: "info", open: true }, h("div", { key: 'e49017399909f1d0b93ec4e24341b9042267977f', slot: "message" }, this.noFeaturesFoundMsg ? this.noFeaturesFoundMsg : this._translations.featureErrorMsg)), h("calcite-list", { key: '2e90c0aec739fcce422ff730a39adc85b71a84cb', "selection-appearance": "border", "selection-mode": "none" }, !this._isLoading && this._featureItems.length > 0 && this._featureItems), this._featuresCount > this.pageSize &&
107
- h("div", { key: '4b59248846c5b433bb88171c322070a13002f23d', class: "width-full", slot: "footer" }, h("calcite-pagination", { key: '1ca5dbccdc59379999a94198d7ac6111e1ef547b', class: "pagination", "full-width": true, onCalcitePaginationChange: this.pageChanged.bind(this), "page-size": this.pageSize, "start-item": "1", "total-items": this._featuresCount }))));
105
+ return (h("calcite-panel", { key: '9f702c6d98cc19704e0773e36fd969817ea7262e', "full-height": true, "full-width": true }, this._isLoading && h("calcite-loader", { key: 'e9acf13f3444057b097d6b145c1a6e0118f150ea', label: "", scale: "m" }), this._featureItems.length === 0 && !this._isLoading &&
106
+ h("calcite-notice", { key: '8c7fa89e2da7490b04456e51f8534c2515a02399', class: "error-msg", icon: "feature-details", kind: "info", open: true }, h("div", { key: '799d419e9c26b7928f15cb1cf9afa9f47cab0e94', slot: "message" }, this.noFeaturesFoundMsg ? this.noFeaturesFoundMsg : this._translations.featureErrorMsg)), h("calcite-list", { key: '82c60b16ab586ad57f8f98bb08814f688102b166', "selection-appearance": "border", "selection-mode": "none" }, !this._isLoading && this._featureItems.length > 0 && this._featureItems), this._featuresCount > this.pageSize &&
107
+ h("div", { key: 'e5b789ea46c6bedfbe83f1323ffb89271c0b76ce', class: "width-full", slot: "footer" }, h("calcite-pagination", { key: '4d30b5364fc4742f278157c5f2c21e75d4ecb0b8', class: "pagination", "full-width": true, onCalcitePaginationChange: this.pageChanged.bind(this), "page-size": this.pageSize, ref: el => this._pagination = el, "start-item": "1", "total-items": this._featuresCount }))));
108
108
  }
109
109
  //--------------------------------------------------------------------------
110
110
  //
@@ -145,7 +145,9 @@ export class FeatureList {
145
145
  * @protected
146
146
  */
147
147
  async initializeFeatureItems() {
148
+ var _a;
148
149
  if (this._selectedLayer) {
150
+ void ((_a = this._pagination) === null || _a === void 0 ? void 0 : _a.goTo("start"));
149
151
  this._isLoading = this.showInitialLoading;
150
152
  this._featureItems = await this.queryPage(0);
151
153
  const query = {
@@ -104,4 +104,5 @@
104
104
  .pagination-count {
105
105
  color: var(--calcite-color-brand);
106
106
  border-bottom: 1px solid var(--calcite-color-brand);
107
+ font-weight: bold;
107
108
  }
@@ -80,8 +80,6 @@ export class LayerTable {
80
80
  this.shareIncludeEmbed = undefined;
81
81
  this.shareIncludeSocial = undefined;
82
82
  this.showNewestFirst = undefined;
83
- this.sortField = undefined;
84
- this.sortOrder = undefined;
85
83
  this.zoomAndScrollToSelected = undefined;
86
84
  this.zoomToScale = undefined;
87
85
  this._allIds = [];
@@ -309,7 +307,7 @@ export class LayerTable {
309
307
  const selected = this.selectedIds.length.toString();
310
308
  const tableHeightClass = this.isMobile ? "height-full" : "height-full-adjusted";
311
309
  this._validateActiveActions();
312
- return (h(Host, { key: '69a8f1d8c41eb82d6f39f6c580f78369f372567f' }, h("calcite-shell", { key: '3cb7997d918af450d04b95e1a236e09400b30af1' }, this._getTableControlRow("header"), h("div", { key: '1f0e84f1759c0333acee402a603923ca96e7d9e4', class: `width-full ${tableHeightClass}` }, h("calcite-panel", { key: 'b62bedc4c924f0d0a30e2746a532270c2a4d4a4b', class: "height-full width-full" }, h("calcite-loader", { key: 'e28017e4c3aba559774965f2cbff0fcb83f9ab2d', class: loadingClass, label: this._translations.fetchingData, scale: "l" }), h("div", { key: 'efc520212f53c3db46574c7caf5d9f9835b83a2c', class: tableNodeClass, ref: this.onTableNodeCreate })), !this.isMobile ? (h("div", { class: "bottom-left text-color height-19" }, this._translations.recordsSelected
310
+ return (h(Host, { key: '1077bca0d3f59ed86999449c2c5428e4aa65b30f' }, h("calcite-shell", { key: '02b7a7512cfdc8958251ae00709b971f9bfff6df' }, this._getTableControlRow("header"), h("div", { key: '83d03238c368cd332714f4434297a9a4f9d47ec4', class: `width-full ${tableHeightClass}` }, h("calcite-panel", { key: '18927c7c65687c9df28f69b1e66f542be05e8c52', class: "height-full width-full" }, h("calcite-loader", { key: '51ed528d5676b983c27b50b098dd8785a3c7b591', class: loadingClass, label: this._translations.fetchingData, scale: "l" }), h("div", { key: '4e51683f468b29b6dcdf1a588cdfedb37a02166f', class: tableNodeClass, ref: this.onTableNodeCreate })), !this.isMobile ? (h("div", { class: "bottom-left text-color height-19" }, this._translations.recordsSelected
313
311
  .replace("{{total}}", total)
314
312
  .replace("{{selected}}", selected))) : undefined)), this._filterModal()));
315
313
  }
@@ -1109,16 +1107,27 @@ export class LayerTable {
1109
1107
  this._deleteEnabled = this._layer.editingEnabled && this._layer.capabilities.operations.supportsDelete;
1110
1108
  }
1111
1109
  /**
1112
- * Sort the table with the configured field in the configured sort order
1110
+ * Sort the table with the configured field and the sort order
1113
1111
  */
1114
1112
  async _sortTable() {
1115
- var _a, _b, _c, _d, _e, _f;
1116
- let sortField = this.sortField ? this.sortField : this._layer.objectIdField;
1113
+ var _a, _b, _c, _d;
1114
+ //By default sort the table using objectIdField and in descending order
1115
+ let sortField = this._layer.objectIdField;
1116
+ let sortOrder = 'desc';
1117
+ let configuredLayer;
1118
+ //get the sortField and sortOrder from the configuration
1117
1119
  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) {
1118
- const configuredLayer = (_d = this.mapInfo.layerOptions) === null || _d === void 0 ? void 0 : _d.layers.filter((layer) => layer.id === this._layer.id);
1119
- sortField = ((_f = (_e = configuredLayer[0]) === null || _e === void 0 ? void 0 : _e.fields) === null || _f === void 0 ? void 0 : _f.includes(this.sortField)) ? this.sortField : this._layer.objectIdField;
1120
+ configuredLayer = this.mapInfo.layerOptions.layers.filter((layer) => layer.id === this._layer.id);
1121
+ if (configuredLayer && configuredLayer.length > 0) {
1122
+ configuredLayer = configuredLayer[0];
1123
+ //if sort field is defined and sortField is available in the fields then use it
1124
+ if (configuredLayer.sortField && ((_d = configuredLayer.fields) === null || _d === void 0 ? void 0 : _d.includes(configuredLayer.sortField))) {
1125
+ sortField = configuredLayer.sortField;
1126
+ }
1127
+ //use sort order if configured
1128
+ sortOrder = (configuredLayer === null || configuredLayer === void 0 ? void 0 : configuredLayer.sortOrder) ? configuredLayer.sortOrder : "desc";
1129
+ }
1120
1130
  }
1121
- const sortOrder = this.sortOrder ? this.sortOrder : 'desc';
1122
1131
  if (this._table && this._layer) {
1123
1132
  await this._table.when();
1124
1133
  await this._layer.when(() => {
@@ -1770,40 +1779,6 @@ export class LayerTable {
1770
1779
  "attribute": "show-newest-first",
1771
1780
  "reflect": false
1772
1781
  },
1773
- "sortField": {
1774
- "type": "string",
1775
- "mutable": false,
1776
- "complexType": {
1777
- "original": "string",
1778
- "resolved": "string",
1779
- "references": {}
1780
- },
1781
- "required": false,
1782
- "optional": false,
1783
- "docs": {
1784
- "tags": [],
1785
- "text": "string: Field using which table will be sorted"
1786
- },
1787
- "attribute": "sort-field",
1788
- "reflect": false
1789
- },
1790
- "sortOrder": {
1791
- "type": "string",
1792
- "mutable": false,
1793
- "complexType": {
1794
- "original": "'asc' | 'desc'",
1795
- "resolved": "\"asc\" | \"desc\"",
1796
- "references": {}
1797
- },
1798
- "required": false,
1799
- "optional": false,
1800
- "docs": {
1801
- "tags": [],
1802
- "text": "string(asc/desc): Sorting order - Ascending or Descending"
1803
- },
1804
- "attribute": "sort-order",
1805
- "reflect": false
1806
- },
1807
1782
  "zoomAndScrollToSelected": {
1808
1783
  "type": "boolean",
1809
1784
  "mutable": false,
@@ -29,7 +29,7 @@
29
29
 
30
30
  <link rel="stylesheet" href="https://jsdev.arcgis.com/4.30/esri/themes/light/main.css" />
31
31
  <!-- <link rel="stylesheet" href="https://jsdev.arcgis.com/4.29/esri/themes/dark/main.css" /> -->
32
- <link rel="stylesheet" type="text/css" href="https://js.arcgis.com/calcite-components/2.0.0/calcite.css" />
32
+ <link rel="stylesheet" type="text/css" href="https://js.arcgis.com/calcite-components/2.8.2/calcite.css" />
33
33
 
34
34
  <link rel="stylesheet" href="https://webapps-cdn.esri.com/CDN/fonts/v1.4.1/fonts.css" />
35
35
  <link rel="stylesheet" href="../solutions-components.css" type="text/css">
@@ -175,7 +175,9 @@
175
175
  ],
176
176
  fieldOrder: [
177
177
  "Your_Stars", "Route", "Location", "URL", "Avg_Stars", "Route_Type", "Rating", "Pitches", "Length", "Area_Latitude", "Area_Longitude", "ObjectId"
178
- ]
178
+ ],
179
+ sortField: "Avg_Stars",
180
+ sortOrder: "asc"
179
181
  }],
180
182
  mapId: "91e220910a994da4abfb0d1763d64ecb"
181
183
  }
@@ -78,7 +78,7 @@
78
78
  <link rel="stylesheet" href="https://jsdev.arcgis.com/4.29/esri/themes/light/main.css"/>
79
79
  <link rel="stylesheet" href="https://webapps-cdn.esri.com/CDN/fonts/v1.4.1/fonts.css" />
80
80
  <link rel="stylesheet" href="../solutions-components.css" type="text/css">
81
- <link rel="stylesheet" type="text/css" href="https://js.arcgis.com/calcite-components/2.0.0/calcite.css" />
81
+ <link rel="stylesheet" type="text/css" href="https://js.arcgis.com/calcite-components/2.8.2/calcite.css" />
82
82
 
83
83
  <script src="https://jsdev.arcgis.com/4.29/"></script>
84
84
  <script type="module" src="../solutions-components.esm.js"></script>
@@ -470,6 +470,8 @@ export interface ILayerDef {
470
470
  sublayerId?: number;
471
471
  fields?: string[];
472
472
  fieldOrder?: string[];
473
+ sortField?: string;
474
+ sortOrder?: 'asc' | 'desc';
473
475
  }
474
476
 
475
477
  export interface IMapChange {
@@ -89,7 +89,7 @@ const CreateRelatedFeature = /*@__PURE__*/ proxyCustomElement(class CreateRelate
89
89
  this.reactiveUtils = reactiveUtils;
90
90
  }
91
91
  render() {
92
- return (h(Host, { key: '383e8fac89d037f77241d856013202d1e04b28ba' }));
92
+ return (h(Host, { key: '9807b7dcad1f8305756e6098f1e64ef8caffcbac' }));
93
93
  }
94
94
  /**
95
95
  * StencilJS: Called once just after the component is fully loaded and the first render() occurs.
@@ -196,6 +196,7 @@ const CreateRelatedFeature = /*@__PURE__*/ proxyCustomElement(class CreateRelate
196
196
  * @param parentRelationship Parent relationship
197
197
  * @param childRelationship Child relationship
198
198
  * @returns Attributes for related feature
199
+ * @protected
199
200
  */
200
201
  makeAttributesForRelatedFeature(parentFeature, parentRelationship, childRelationship) {
201
202
  const parentKeyField = parentRelationship.keyField;
@@ -128,8 +128,6 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
128
128
  this.theme = "light";
129
129
  this.zoomAndScrollToSelected = false;
130
130
  this.zoomToScale = undefined;
131
- this.sortField = undefined;
132
- this.sortOrder = undefined;
133
131
  this._expandPopup = this.hideMapOnLoad;
134
132
  this._hideFooter = false;
135
133
  this._hideTable = false;
@@ -236,7 +234,7 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
236
234
  * Renders the component.
237
235
  */
238
236
  render() {
239
- return (h(Host, { key: '686aeccc0f97c1eb8bc1b673d8816663e80fdf71' }, h("calcite-shell", { key: 'f3451483cdbafa8b68a00b71e9927bbff55781b9', class: "position-relative" }, h("calcite-panel", { key: '8256440e1cefa8f25bf1af1f9a1e87650c34462d', class: `width-full height-full border-width-0` }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter())));
237
+ return (h(Host, { key: '5cd7d2ea4be1216270e15afc3d090bfc672f5335' }, h("calcite-shell", { key: 'cb5b4104b698a0bc146c2f5f47bd03b7944025c1', class: "position-relative" }, h("calcite-panel", { key: 'cbf1848d59c485dd143d6051506fcd92215fa2ec', class: `width-full height-full border-width-0` }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter())));
240
238
  }
241
239
  /**
242
240
  * Called after each render
@@ -356,7 +354,8 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
356
354
  _getBody(layoutMode, panelOpen, hideTable) {
357
355
  const contentClass = layoutMode === ELayoutMode.HORIZONTAL ? "" : "display-flex";
358
356
  const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
359
- 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)), 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" }))));
357
+ 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 &&
358
+ 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" }))));
360
359
  }
361
360
  /**
362
361
  * Emit the event when info button clicked
@@ -409,10 +408,10 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
409
408
  const headerTheme = this.popupHeaderColor ? "" : !this._isMobile ? "calcite-mode-dark" : "calcite-mode-light";
410
409
  const containerClass = this._isMobile && this._hideTable ? "position-absolute-0 width-full height-full" : this._isMobile ? "display-none height-0" : "";
411
410
  return (h("div", { class: `${headerTheme} ${popupNodeClass} ${containerClass}`, style: {
412
- '--calcite-color-foreground-1': this.popupHeaderColor, /* background color to apply to the popup header */
413
- '--calcite-color-foreground-2': this.popupHeaderHoverColor, /* color that will be displayed on hover when expanding the popup header */
414
- '--calcite-color-text-3': this.popupHeaderHoverTextColor, /* font color that will be displayed on hover when expanding the popup header */
415
- '--calcite-color-text-2': this.popupHeaderTextColor, /* font color to apply to the popup header */
411
+ '--calcite-color-foreground-1': this.popupHeaderColor, /* background color that will be displayed on the popup header */
412
+ '--calcite-color-foreground-2': this.popupHeaderHoverColor, /* background color that will be displayed on button when hovered */
413
+ '--calcite-color-text-3': this.popupHeaderTextColor, /* font color that will be displayed on button */
414
+ '--calcite-color-text-2': this.popupHeaderTextColor, /* font color that will be displayed on popup header text*/
416
415
  } }, h("calcite-panel", null, !this._isMobile ? (h("div", { class: `display-flex align-items-center ${headerClass}`, slot: "header-content" }, h("calcite-icon", { icon: "information", scale: "s" }), h("div", { class: "padding-inline-start-75" }, this._translations.information))) : undefined, h("calcite-action", { class: headerClass, disabled: this._tableOnly, icon: icon, id: id, onClick: () => this._togglePopup(), slot: "header-actions-end", text: "" }), !this._tableOnly ? h("calcite-tooltip", { class: themeClass, label: "", placement: "bottom", "reference-element": id }, h("span", null, tooltip)) : undefined, this._getCardNode())));
417
416
  }
418
417
  /**
@@ -457,7 +456,7 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
457
456
  ((_a = this.defaultGlobalId) === null || _a === void 0 ? void 0 : _a.indexOf(",")) > -1 ? this.defaultGlobalId.split(",") : [this.defaultGlobalId];
458
457
  const defaultOid = !this.defaultOid ? undefined :
459
458
  ((_b = this.defaultOid) === null || _b === void 0 ? void 0 : _b.indexOf(",")) > -1 ? this.defaultOid.split(",").map(o => parseInt(o, 10)) : [parseInt(this.defaultOid, 10)];
460
- return (h("calcite-shell", { class: `${tableSizeClass} ${tableClass} border-bottom` }, !this._isMobile ? (h("calcite-action-bar", { class: "border-sides", expandDisabled: true, layout: toggleLayout, slot: toggleSlot }, h("calcite-action", { class: "toggle-node", icon: icon, id: id, onClick: () => this._toggleLayout(), text: "" }), h("calcite-tooltip", { label: tooltip, placement: "bottom", "reference-element": id }, h("span", null, tooltip)))) : undefined, h("div", { class: `width-full height-full position-relative` }, h("layer-table", { defaultGlobalId: hasMapAndLayer ? globalId : undefined, defaultLayerId: hasMapAndLayer ? this.defaultLayer : "", defaultOid: hasMapAndLayer && !globalId ? defaultOid : undefined, enableAutoRefresh: this.enableAutoRefresh, enableCSV: this.enableCSV, enableColumnReorder: this.enableColumnReorder, enableInlineEdit: this.enableInlineEdit, enableShare: this.enableShare, isMobile: this._isMobile, mapInfo: this._mapInfo, mapView: this === null || this === void 0 ? void 0 : this._mapView, onlyShowUpdatableLayers: this.onlyShowUpdatableLayers, ref: (el) => this._layerTable = el, shareIncludeEmbed: this.shareIncludeEmbed, shareIncludeSocial: this.shareIncludeSocial, showNewestFirst: this.showNewestFirst, sortField: this.sortField, sortOrder: this.sortOrder, zoomAndScrollToSelected: this.zoomAndScrollToSelected, zoomToScale: this.zoomToScale }))));
459
+ return (h("calcite-shell", { class: `${tableSizeClass} ${tableClass} border-bottom` }, !this._isMobile ? (h("calcite-action-bar", { class: "border-sides", expandDisabled: true, layout: toggleLayout, slot: toggleSlot }, h("calcite-action", { class: "toggle-node", icon: icon, id: id, onClick: () => this._toggleLayout(), text: "" }), h("calcite-tooltip", { label: tooltip, placement: "bottom", "reference-element": id }, h("span", null, tooltip)))) : undefined, h("div", { class: `width-full height-full position-relative` }, h("layer-table", { defaultGlobalId: hasMapAndLayer ? globalId : undefined, defaultLayerId: hasMapAndLayer ? this.defaultLayer : "", defaultOid: hasMapAndLayer && !globalId ? defaultOid : undefined, enableAutoRefresh: this.enableAutoRefresh, enableCSV: this.enableCSV, enableColumnReorder: this.enableColumnReorder, enableInlineEdit: this.enableInlineEdit, enableShare: this.enableShare, isMobile: this._isMobile, mapInfo: this._mapInfo, mapView: this === null || this === void 0 ? void 0 : this._mapView, onlyShowUpdatableLayers: this.onlyShowUpdatableLayers, ref: (el) => this._layerTable = el, shareIncludeEmbed: this.shareIncludeEmbed, shareIncludeSocial: this.shareIncludeSocial, showNewestFirst: this.showNewestFirst, zoomAndScrollToSelected: this.zoomAndScrollToSelected, zoomToScale: this.zoomToScale }))));
461
460
  }
462
461
  /**
463
462
  * Update the component layout when its size changes
@@ -596,8 +595,6 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
596
595
  "theme": [1],
597
596
  "zoomAndScrollToSelected": [4, "zoom-and-scroll-to-selected"],
598
597
  "zoomToScale": [2, "zoom-to-scale"],
599
- "sortField": [1, "sort-field"],
600
- "sortOrder": [1, "sort-order"],
601
598
  "_expandPopup": [32],
602
599
  "_hideFooter": [32],
603
600
  "_hideTable": [32],
@@ -55,7 +55,7 @@ import { d as defineCustomElement$4 } from './instant-apps-filter-list2.js';
55
55
  import { d as defineCustomElement$3 } from './instant-apps-social-share2.js';
56
56
  import { d as defineCustomElement$2 } from './layer-list2.js';
57
57
 
58
- const crowdsourceReporterCss = ":host{display:block;--calcite-label-margin-bottom:0px;--solutions-theme-foreground-color:var(--calcite-color-foreground-1)}.width-full{width:100% !important}.width-0{width:0}.height-full{height:100% !important}.height-0{height:0}.overflow-hidden{overflow:hidden}.border{border:1px solid var(--calcite-color-border-3)}.notice-msg{padding:10px;width:calc(100% - 20px)}.progress-bar{padding:12px}.footer-top-button{padding-bottom:7px}.footer-button{height:35px}.feature-pagination{align-items:center;margin:5% 124%;display:flex}.pagination-count{width:32px;color:var(--calcite-color-brand);border-bottom:1px solid var(--calcite-color-brand);font-weight:bold}.report-submitted-msg{position:absolute;z-index:1000}";
58
+ const crowdsourceReporterCss = ":host{display:block;--calcite-label-margin-bottom:0px;--solutions-theme-foreground-color:var(--calcite-color-foreground-1)}.width-full{width:100% !important}.width-0{width:0}.height-full{height:100% !important}.height-0{height:0}.overflow-hidden{overflow:hidden}.border{border:1px solid var(--calcite-color-border-3)}.notice-msg{padding:10px;width:calc(100% - 20px)}.progress-bar{padding:12px}.footer-top-button{padding-bottom:7px}.footer-button{height:35px}.feature-pagination{background-color:var(--calcite-color-foreground-1) !important;border-block-end:1px solid var(--calcite-color-border-3);display:flex;justify-content:center;padding:5px 0}.pagination-count{color:var(--calcite-color-brand);border-bottom:1px solid var(--calcite-color-brand);font-weight:bold}.report-submitted-msg{position:absolute;z-index:1000}";
59
59
  const CrowdsourceReporterStyle0 = crowdsourceReporterCss;
60
60
 
61
61
  const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceReporter extends HTMLElement {
@@ -270,6 +270,7 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
270
270
  * On sort option click update the sort field and sort order
271
271
  * @param sortField sort field
272
272
  * @param sortOrder sort order
273
+ * @param sortOption selected sort option (Newest/Oldest/Highest Voted/Lowest Voted)
273
274
  */
274
275
  async sortOptionClick(sortField, sortOrder, sortOption) {
275
276
  this._updatedSorting = {
@@ -596,7 +597,7 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
596
597
  */
597
598
  getFeatureDetailsFlowItem() {
598
599
  const showCommentBtn = this.reportingOptions[this._currentFeature.layer.id].comment && this._currentFeature.layer.relationships.length > 0;
599
- return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._selectedLayerName, loading: this._showLoadingIndicator, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), h("instant-apps-social-share", { autoUpdateShareUrl: false, embed: false, popoverButtonIconScale: "s", ref: el => this._shareNode = el, scale: "m", shareButtonColor: "neutral", shareButtonType: "action", slot: "header-actions-end", socialMedia: true, view: this.mapView }), h("calcite-panel", null, this._selectedFeature.length > 1 && this.getFeaturesPagination(), h("feature-details", { class: 'full-height', graphics: this._selectedFeature, mapView: this.mapView, onFeatureSelect: this.onCommentSelectFromList.bind(this), onLoadingStatus: (evt) => void this.updatingFeatureDetails(evt.detail), ref: el => this._featureDetails = el, reportingOptions: this.reportingOptions }), showCommentBtn &&
600
+ return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._selectedLayerName, loading: this._showLoadingIndicator, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), h("instant-apps-social-share", { autoUpdateShareUrl: false, embed: false, popoverButtonIconScale: "s", ref: el => this._shareNode = el, scale: "m", shareButtonColor: "neutral", shareButtonType: "action", slot: "header-actions-end", socialMedia: true, view: this.mapView }), this._selectedFeature.length > 1 && this.getFeaturesPagination(), h("calcite-panel", null, h("feature-details", { class: 'full-height', graphics: this._selectedFeature, mapView: this.mapView, onFeatureSelect: this.onCommentSelectFromList.bind(this), onLoadingStatus: (evt) => void this.updatingFeatureDetails(evt.detail), ref: el => this._featureDetails = el, reportingOptions: this.reportingOptions }), showCommentBtn &&
600
601
  h("calcite-button", { appearance: "solid", onClick: () => this._flowItems = [...this._flowItems, "add-comment"], slot: "footer", width: "full" }, this._translations.comment))));
601
602
  }
602
603
  /**
@@ -605,7 +606,7 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
605
606
  * @returns Node
606
607
  */
607
608
  getFeaturesPagination() {
608
- return (h("div", { class: "feature-pagination", slot: "header-actions-start" }, h("div", null, h("calcite-button", { appearance: 'transparent', disabled: false, iconStart: "chevron-left", id: "solutions-back", onClick: () => void this._featureDetails.back(), scale: "s", width: "full" }), h("calcite-tooltip", { label: "", placement: "top", "reference-element": "solutions-back" }, h("span", null, this._translations.back))), h("calcite-button", { appearance: 'transparent', class: 'pagination-action', onClick: () => void this._featureDetails.toggleListView(), scale: "s" }, h("span", { class: "pagination-count" }, this._getCount())), h("div", null, h("calcite-button", { appearance: "transparent", disabled: false, iconStart: "chevron-right", id: "solutions-next", onClick: () => void this._featureDetails.next(), scale: "s", width: "full" }), h("calcite-tooltip", { placement: "top", "reference-element": "solutions-next" }, h("span", null, this._translations.next)))));
609
+ return (h("div", { class: "feature-pagination" }, h("div", null, h("calcite-button", { appearance: 'transparent', disabled: false, iconStart: "chevron-left", id: "solutions-back", onClick: () => void this._featureDetails.back(), scale: "s", width: "full" }), h("calcite-tooltip", { label: "", placement: "top", "reference-element": "solutions-back" }, h("span", null, this._translations.back))), h("calcite-button", { appearance: 'transparent', onClick: () => void this._featureDetails.toggleListView(), scale: "s" }, h("span", { class: "pagination-count" }, this._getCount())), h("div", null, h("calcite-button", { appearance: "transparent", disabled: false, iconStart: "chevron-right", id: "solutions-next", onClick: () => void this._featureDetails.next(), scale: "s", width: "full" }), h("calcite-tooltip", { placement: "top", "reference-element": "solutions-next" }, h("span", null, this._translations.next)))));
609
610
  }
610
611
  /**
611
612
  * Returns the calcite-flow item for comment details
@@ -128,12 +128,12 @@ const FeatureDetails = /*@__PURE__*/ proxyCustomElement(class FeatureDetails ext
128
128
  var _a, _b, _c, _d, _e;
129
129
  //When related features found show comments list of only those features else comments list will be empty
130
130
  const commentsListWhereClause = ((_a = this._relatedFeaturesOIDs) === null || _a === void 0 ? void 0 : _a.length) > 0 ? `objectId in(${this._relatedFeaturesOIDs})` : '1=0';
131
- return (h("calcite-panel", { key: 'c39c0eec021627b920972f7d4bce0d45bfe0a9c2', "full-height": true }, h("info-card", { key: 'e90cb427a1f874216afcfdf0a33804bf14fb6a2c', 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) &&
132
- h("div", { key: 'ecfdf111612c92eacfd97dae7bb3080b7ad50e96', class: "buttons-container" }, this._commentsAvailable &&
133
- h("div", { key: '07a8213e11585041fb1c5f56254447a720033f04', class: "comment-btn" }, h("span", { key: 'f4071fbd03372a0e88857962e9c31530e2dc693a' }, this._relatedFeaturesOIDs.length), h("calcite-icon", { key: '30258e1daae5f1e00d18dd4ec052861de46b45bf', icon: "speech-bubble", scale: 's' })), this._likeFieldAvailable &&
134
- h("calcite-button", { key: 'fa76245789a29e49be06482fd8cd0244f44d19ab', 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 &&
135
- h("calcite-button", { key: 'ac9adc799a93f08319b2f0b797cd5d4773b1a6cb', 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 &&
136
- h("feature-list", { key: '165b2ac0af65cbbab945a0dfd4ac878cc41af56c', class: "height-full", mapView: this.mapView, pageSize: 5, ref: el => this._commentsList = el, selectedLayerId: this.relatedTableId, showInitialLoading: false, textSize: "small", whereClause: commentsListWhereClause })));
131
+ 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) &&
132
+ h("div", { key: '8e27d13341a9b4ad37f87778e046a4e8e0b2778e', class: "buttons-container" }, this._commentsAvailable &&
133
+ 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 &&
134
+ 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 &&
135
+ 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 &&
136
+ 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 })));
137
137
  }
138
138
  /**
139
139
  * Load esri javascript api modules