@esri/solutions-components 0.8.20 → 0.8.22

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 (97) hide show
  1. package/dist/assets/t9n/crowdsource-reporter/resources_ar.json +0 -1
  2. package/dist/assets/t9n/crowdsource-reporter/resources_bg.json +0 -1
  3. package/dist/assets/t9n/crowdsource-reporter/resources_bs.json +0 -1
  4. package/dist/assets/t9n/crowdsource-reporter/resources_ca.json +0 -1
  5. package/dist/assets/t9n/crowdsource-reporter/resources_cs.json +0 -1
  6. package/dist/assets/t9n/crowdsource-reporter/resources_da.json +0 -1
  7. package/dist/assets/t9n/crowdsource-reporter/resources_de.json +0 -1
  8. package/dist/assets/t9n/crowdsource-reporter/resources_el.json +0 -1
  9. package/dist/assets/t9n/crowdsource-reporter/resources_es.json +0 -1
  10. package/dist/assets/t9n/crowdsource-reporter/resources_et.json +0 -1
  11. package/dist/assets/t9n/crowdsource-reporter/resources_fi.json +0 -1
  12. package/dist/assets/t9n/crowdsource-reporter/resources_fr.json +0 -1
  13. package/dist/assets/t9n/crowdsource-reporter/resources_he.json +0 -1
  14. package/dist/assets/t9n/crowdsource-reporter/resources_hr.json +0 -1
  15. package/dist/assets/t9n/crowdsource-reporter/resources_hu.json +0 -1
  16. package/dist/assets/t9n/crowdsource-reporter/resources_id.json +0 -1
  17. package/dist/assets/t9n/crowdsource-reporter/resources_it.json +0 -1
  18. package/dist/assets/t9n/crowdsource-reporter/resources_ja.json +0 -1
  19. package/dist/assets/t9n/crowdsource-reporter/resources_ko.json +0 -1
  20. package/dist/assets/t9n/crowdsource-reporter/resources_lt.json +0 -1
  21. package/dist/assets/t9n/crowdsource-reporter/resources_lv.json +0 -1
  22. package/dist/assets/t9n/crowdsource-reporter/resources_nb.json +0 -1
  23. package/dist/assets/t9n/crowdsource-reporter/resources_nl.json +0 -1
  24. package/dist/assets/t9n/crowdsource-reporter/resources_pl.json +0 -1
  25. package/dist/assets/t9n/crowdsource-reporter/resources_pt-BR.json +0 -1
  26. package/dist/assets/t9n/crowdsource-reporter/resources_pt-PT.json +0 -1
  27. package/dist/assets/t9n/crowdsource-reporter/resources_ro.json +0 -1
  28. package/dist/assets/t9n/crowdsource-reporter/resources_ru.json +0 -1
  29. package/dist/assets/t9n/crowdsource-reporter/resources_sk.json +0 -1
  30. package/dist/assets/t9n/crowdsource-reporter/resources_sl.json +0 -1
  31. package/dist/assets/t9n/crowdsource-reporter/resources_sr.json +0 -1
  32. package/dist/assets/t9n/crowdsource-reporter/resources_sv.json +0 -1
  33. package/dist/assets/t9n/crowdsource-reporter/resources_th.json +0 -1
  34. package/dist/assets/t9n/crowdsource-reporter/resources_tr.json +0 -1
  35. package/dist/assets/t9n/crowdsource-reporter/resources_uk.json +0 -1
  36. package/dist/assets/t9n/crowdsource-reporter/resources_vi.json +0 -1
  37. package/dist/assets/t9n/crowdsource-reporter/resources_zh-CN.json +0 -1
  38. package/dist/assets/t9n/crowdsource-reporter/resources_zh-HK.json +0 -1
  39. package/dist/assets/t9n/crowdsource-reporter/resources_zh-TW.json +0 -1
  40. package/dist/assets/t9n/layer-list/resources_ar.json +1 -1
  41. package/dist/assets/t9n/layer-list/resources_bg.json +1 -1
  42. package/dist/assets/t9n/layer-list/resources_bs.json +1 -1
  43. package/dist/assets/t9n/layer-list/resources_ca.json +1 -1
  44. package/dist/assets/t9n/layer-list/resources_cs.json +1 -1
  45. package/dist/assets/t9n/layer-list/resources_da.json +1 -1
  46. package/dist/assets/t9n/layer-list/resources_de.json +1 -1
  47. package/dist/assets/t9n/layer-list/resources_el.json +1 -1
  48. package/dist/assets/t9n/layer-list/resources_es.json +1 -1
  49. package/dist/assets/t9n/layer-list/resources_et.json +1 -1
  50. package/dist/assets/t9n/layer-list/resources_fi.json +1 -1
  51. package/dist/assets/t9n/layer-list/resources_fr.json +1 -1
  52. package/dist/assets/t9n/layer-list/resources_he.json +1 -1
  53. package/dist/assets/t9n/layer-list/resources_hr.json +1 -1
  54. package/dist/assets/t9n/layer-list/resources_hu.json +1 -1
  55. package/dist/assets/t9n/layer-list/resources_id.json +1 -1
  56. package/dist/assets/t9n/layer-list/resources_it.json +1 -1
  57. package/dist/assets/t9n/layer-list/resources_ja.json +1 -1
  58. package/dist/assets/t9n/layer-list/resources_ko.json +1 -1
  59. package/dist/assets/t9n/layer-list/resources_lt.json +1 -1
  60. package/dist/assets/t9n/layer-list/resources_lv.json +1 -1
  61. package/dist/assets/t9n/layer-list/resources_nb.json +1 -1
  62. package/dist/assets/t9n/layer-list/resources_nl.json +1 -1
  63. package/dist/assets/t9n/layer-list/resources_pl.json +1 -1
  64. package/dist/assets/t9n/layer-list/resources_pt-BR.json +1 -1
  65. package/dist/assets/t9n/layer-list/resources_pt-PT.json +1 -1
  66. package/dist/assets/t9n/layer-list/resources_ro.json +1 -1
  67. package/dist/assets/t9n/layer-list/resources_ru.json +1 -1
  68. package/dist/assets/t9n/layer-list/resources_sk.json +1 -1
  69. package/dist/assets/t9n/layer-list/resources_sl.json +1 -1
  70. package/dist/assets/t9n/layer-list/resources_sr.json +1 -1
  71. package/dist/assets/t9n/layer-list/resources_sv.json +1 -1
  72. package/dist/assets/t9n/layer-list/resources_th.json +1 -1
  73. package/dist/assets/t9n/layer-list/resources_tr.json +1 -1
  74. package/dist/assets/t9n/layer-list/resources_uk.json +1 -1
  75. package/dist/assets/t9n/layer-list/resources_vi.json +1 -1
  76. package/dist/assets/t9n/layer-list/resources_zh-CN.json +1 -1
  77. package/dist/assets/t9n/layer-list/resources_zh-HK.json +1 -1
  78. package/dist/assets/t9n/layer-list/resources_zh-TW.json +1 -1
  79. package/dist/cjs/card-manager_3.cjs.entry.js +7 -6
  80. package/dist/cjs/crowdsource-manager.cjs.entry.js +18 -2
  81. package/dist/cjs/loader.cjs.js +1 -1
  82. package/dist/cjs/solutions-components.cjs.js +1 -1
  83. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +21 -1
  84. package/dist/collection/components/layer-table/layer-table.js +7 -6
  85. package/dist/components/crowdsource-manager.js +21 -3
  86. package/dist/components/layer-table2.js +7 -6
  87. package/dist/esm/card-manager_3.entry.js +7 -6
  88. package/dist/esm/crowdsource-manager.entry.js +18 -2
  89. package/dist/esm/loader.js +1 -1
  90. package/dist/esm/solutions-components.js +1 -1
  91. package/dist/solutions-components/p-5a740f6c.entry.js +6 -0
  92. package/dist/solutions-components/p-f43d6a86.entry.js +6 -0
  93. package/dist/solutions-components/solutions-components.esm.js +1 -1
  94. package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +8 -0
  95. package/package.json +1 -1
  96. package/dist/solutions-components/p-347a2b0d.entry.js +0 -6
  97. package/dist/solutions-components/p-6a598429.entry.js +0 -6
@@ -104,6 +104,20 @@ export class CrowdsourceManager {
104
104
  enableZoomWatchHandler() {
105
105
  this._initMapZoom();
106
106
  }
107
+ /**
108
+ * When true the map will be hidden on load
109
+ */
110
+ hideMapOnLoadWatchHandler() {
111
+ this.showHideMapPopupAndTable(this.hideMapOnLoad);
112
+ this._expandPopup = this.hideMapOnLoad;
113
+ }
114
+ /**
115
+ * When true the map will be hidden on load
116
+ */
117
+ mapInfosWatchHandler() {
118
+ console.log("mapInfosWatchHandler");
119
+ console.log(this.mapInfos);
120
+ }
107
121
  /**
108
122
  * Listen for changes in feature selection and show or hide the map, popup, and table
109
123
  */
@@ -188,7 +202,7 @@ export class CrowdsourceManager {
188
202
  render() {
189
203
  // only avoid border when we have a header color that is not white
190
204
  const borderClass = this.popupHeaderColor && this.popupHeaderColor !== "#FFFFFF" ? "border-width-0" : "";
191
- return (h(Host, { key: '175124a05c83f6f02bef1378a20e5a3ed083ce00' }, h("calcite-shell", { key: '10677408a11bbe6196a95622a7a5f69fd3766c20', class: "position-relative" }, h("calcite-panel", { key: 'd3f044385482089d2dd5a457c2de4b3cc748e7c6', class: `width-full height-full ${borderClass}` }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter())));
205
+ return (h(Host, { key: 'aa063ae3fc59a7f3969aaa5b569fbd0ef09a1766' }, h("calcite-shell", { key: 'd5d5cdb201c24f2123089c5cd5f70f973aa24e78', class: "position-relative" }, h("calcite-panel", { key: 'c95bb56946b85574825160acf1411fdf7308cc8c', class: `width-full height-full ${borderClass}` }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter())));
192
206
  }
193
207
  /**
194
208
  * Called after each render
@@ -1217,6 +1231,12 @@ export class CrowdsourceManager {
1217
1231
  return [{
1218
1232
  "propName": "enableZoom",
1219
1233
  "methodName": "enableZoomWatchHandler"
1234
+ }, {
1235
+ "propName": "hideMapOnLoad",
1236
+ "methodName": "hideMapOnLoadWatchHandler"
1237
+ }, {
1238
+ "propName": "mapInfos",
1239
+ "methodName": "mapInfosWatchHandler"
1220
1240
  }];
1221
1241
  }
1222
1242
  static get listeners() {
@@ -172,6 +172,7 @@ export class LayerTable {
172
172
  this._initLayerExpressions();
173
173
  this._initToolInfos();
174
174
  this._updateToolbar();
175
+ await this._sortTable();
175
176
  }
176
177
  /**
177
178
  * watch for changes in map view and get the first layer
@@ -307,7 +308,7 @@ export class LayerTable {
307
308
  const selected = this.selectedIds.length.toString();
308
309
  const tableHeightClass = this.isMobile ? "height-full" : "height-full-adjusted";
309
310
  this._validateActiveActions();
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
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
311
312
  .replace("{{total}}", total)
312
313
  .replace("{{selected}}", selected))) : undefined)), this._filterModal()));
313
314
  }
@@ -1110,18 +1111,18 @@ export class LayerTable {
1110
1111
  * Sort the table with the configured field and the sort order
1111
1112
  */
1112
1113
  async _sortTable() {
1113
- var _a, _b, _c, _d;
1114
+ var _a, _b, _c, _d, _e;
1114
1115
  //By default sort the table using objectIdField and in descending order
1115
- let sortField = this._layer.objectIdField;
1116
+ let sortField = (_a = this._layer) === null || _a === void 0 ? void 0 : _a.objectIdField;
1116
1117
  let sortOrder = 'desc';
1117
1118
  let configuredLayer;
1118
1119
  //get the sortField and sortOrder from the configuration
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) {
1120
+ 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) {
1120
1121
  configuredLayer = this.mapInfo.layerOptions.layers.filter((layer) => layer.id === this._layer.id);
1121
1122
  if (configuredLayer && configuredLayer.length > 0) {
1122
1123
  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))) {
1124
+ //if sort field is defined and sortField is available in the fields then use it
1125
+ if (configuredLayer.sortField && ((_e = configuredLayer.fields) === null || _e === void 0 ? void 0 : _e.includes(configuredLayer.sortField))) {
1125
1126
  sortField = configuredLayer.sortField;
1126
1127
  }
1127
1128
  //use sort order if configured
@@ -153,6 +153,20 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
153
153
  enableZoomWatchHandler() {
154
154
  this._initMapZoom();
155
155
  }
156
+ /**
157
+ * When true the map will be hidden on load
158
+ */
159
+ hideMapOnLoadWatchHandler() {
160
+ this.showHideMapPopupAndTable(this.hideMapOnLoad);
161
+ this._expandPopup = this.hideMapOnLoad;
162
+ }
163
+ /**
164
+ * When true the map will be hidden on load
165
+ */
166
+ mapInfosWatchHandler() {
167
+ console.log("mapInfosWatchHandler");
168
+ console.log(this.mapInfos);
169
+ }
156
170
  /**
157
171
  * Listen for changes in feature selection and show or hide the map, popup, and table
158
172
  */
@@ -237,7 +251,7 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
237
251
  render() {
238
252
  // only avoid border when we have a header color that is not white
239
253
  const borderClass = this.popupHeaderColor && this.popupHeaderColor !== "#FFFFFF" ? "border-width-0" : "";
240
- return (h(Host, { key: '175124a05c83f6f02bef1378a20e5a3ed083ce00' }, h("calcite-shell", { key: '10677408a11bbe6196a95622a7a5f69fd3766c20', class: "position-relative" }, h("calcite-panel", { key: 'd3f044385482089d2dd5a457c2de4b3cc748e7c6', class: `width-full height-full ${borderClass}` }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter())));
254
+ return (h(Host, { key: 'aa063ae3fc59a7f3969aaa5b569fbd0ef09a1766' }, h("calcite-shell", { key: 'd5d5cdb201c24f2123089c5cd5f70f973aa24e78', class: "position-relative" }, h("calcite-panel", { key: 'c95bb56946b85574825160acf1411fdf7308cc8c', class: `width-full height-full ${borderClass}` }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter())));
241
255
  }
242
256
  /**
243
257
  * Called after each render
@@ -559,7 +573,9 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
559
573
  }
560
574
  get el() { return this; }
561
575
  static get watchers() { return {
562
- "enableZoom": ["enableZoomWatchHandler"]
576
+ "enableZoom": ["enableZoomWatchHandler"],
577
+ "hideMapOnLoad": ["hideMapOnLoadWatchHandler"],
578
+ "mapInfos": ["mapInfosWatchHandler"]
563
579
  }; }
564
580
  static get style() { return CrowdsourceManagerStyle0; }
565
581
  }, [0, "crowdsource-manager", {
@@ -612,7 +628,9 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
612
628
  "_numSelected": [32],
613
629
  "_tableOnly": [32]
614
630
  }, [[8, "featureSelectionChange", "featureSelectionChange"], [8, "popupClosed", "popupClosed"], [8, "idsFound", "idsFound"], [8, "layoutChanged", "layoutChanged"], [8, "mapChanged", "mapChanged"], [8, "beforeMapChanged", "beforeMapChanged"], [8, "layerSelectionChange", "layerSelectionChange"], [8, "mapInfoChange", "mapInfoChange"]], {
615
- "enableZoom": ["enableZoomWatchHandler"]
631
+ "enableZoom": ["enableZoomWatchHandler"],
632
+ "hideMapOnLoad": ["hideMapOnLoadWatchHandler"],
633
+ "mapInfos": ["mapInfosWatchHandler"]
616
634
  }]);
617
635
  function defineCustomElement$1() {
618
636
  if (typeof customElements === "undefined") {
@@ -202,6 +202,7 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
202
202
  this._initLayerExpressions();
203
203
  this._initToolInfos();
204
204
  this._updateToolbar();
205
+ await this._sortTable();
205
206
  }
206
207
  /**
207
208
  * watch for changes in map view and get the first layer
@@ -337,7 +338,7 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
337
338
  const selected = this.selectedIds.length.toString();
338
339
  const tableHeightClass = this.isMobile ? "height-full" : "height-full-adjusted";
339
340
  this._validateActiveActions();
340
- 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
341
+ 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
341
342
  .replace("{{total}}", total)
342
343
  .replace("{{selected}}", selected))) : undefined)), this._filterModal()));
343
344
  }
@@ -1140,18 +1141,18 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
1140
1141
  * Sort the table with the configured field and the sort order
1141
1142
  */
1142
1143
  async _sortTable() {
1143
- var _a, _b, _c, _d;
1144
+ var _a, _b, _c, _d, _e;
1144
1145
  //By default sort the table using objectIdField and in descending order
1145
- let sortField = this._layer.objectIdField;
1146
+ let sortField = (_a = this._layer) === null || _a === void 0 ? void 0 : _a.objectIdField;
1146
1147
  let sortOrder = 'desc';
1147
1148
  let configuredLayer;
1148
1149
  //get the sortField and sortOrder from the configuration
1149
- 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) {
1150
+ 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) {
1150
1151
  configuredLayer = this.mapInfo.layerOptions.layers.filter((layer) => layer.id === this._layer.id);
1151
1152
  if (configuredLayer && configuredLayer.length > 0) {
1152
1153
  configuredLayer = configuredLayer[0];
1153
- //if sort field is defined and sortField is available in the fields then use it
1154
- if (configuredLayer.sortField && ((_d = configuredLayer.fields) === null || _d === void 0 ? void 0 : _d.includes(configuredLayer.sortField))) {
1154
+ //if sort field is defined and sortField is available in the fields then use it
1155
+ if (configuredLayer.sortField && ((_e = configuredLayer.fields) === null || _e === void 0 ? void 0 : _e.includes(configuredLayer.sortField))) {
1155
1156
  sortField = configuredLayer.sortField;
1156
1157
  }
1157
1158
  //use sort order if configured
@@ -254,6 +254,7 @@ const LayerTable = class {
254
254
  this._initLayerExpressions();
255
255
  this._initToolInfos();
256
256
  this._updateToolbar();
257
+ await this._sortTable();
257
258
  }
258
259
  /**
259
260
  * watch for changes in map view and get the first layer
@@ -389,7 +390,7 @@ const LayerTable = class {
389
390
  const selected = this.selectedIds.length.toString();
390
391
  const tableHeightClass = this.isMobile ? "height-full" : "height-full-adjusted";
391
392
  this._validateActiveActions();
392
- 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
393
+ 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
393
394
  .replace("{{total}}", total)
394
395
  .replace("{{selected}}", selected))) : undefined)), this._filterModal()));
395
396
  }
@@ -1192,18 +1193,18 @@ const LayerTable = class {
1192
1193
  * Sort the table with the configured field and the sort order
1193
1194
  */
1194
1195
  async _sortTable() {
1195
- var _a, _b, _c, _d;
1196
+ var _a, _b, _c, _d, _e;
1196
1197
  //By default sort the table using objectIdField and in descending order
1197
- let sortField = this._layer.objectIdField;
1198
+ let sortField = (_a = this._layer) === null || _a === void 0 ? void 0 : _a.objectIdField;
1198
1199
  let sortOrder = 'desc';
1199
1200
  let configuredLayer;
1200
1201
  //get the sortField and sortOrder from the configuration
1201
- 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) {
1202
+ 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) {
1202
1203
  configuredLayer = this.mapInfo.layerOptions.layers.filter((layer) => layer.id === this._layer.id);
1203
1204
  if (configuredLayer && configuredLayer.length > 0) {
1204
1205
  configuredLayer = configuredLayer[0];
1205
- //if sort field is defined and sortField is available in the fields then use it
1206
- if (configuredLayer.sortField && ((_d = configuredLayer.fields) === null || _d === void 0 ? void 0 : _d.includes(configuredLayer.sortField))) {
1206
+ //if sort field is defined and sortField is available in the fields then use it
1207
+ if (configuredLayer.sortField && ((_e = configuredLayer.fields) === null || _e === void 0 ? void 0 : _e.includes(configuredLayer.sortField))) {
1207
1208
  sortField = configuredLayer.sortField;
1208
1209
  }
1209
1210
  //use sort order if configured
@@ -96,6 +96,20 @@ const CrowdsourceManager = class {
96
96
  enableZoomWatchHandler() {
97
97
  this._initMapZoom();
98
98
  }
99
+ /**
100
+ * When true the map will be hidden on load
101
+ */
102
+ hideMapOnLoadWatchHandler() {
103
+ this.showHideMapPopupAndTable(this.hideMapOnLoad);
104
+ this._expandPopup = this.hideMapOnLoad;
105
+ }
106
+ /**
107
+ * When true the map will be hidden on load
108
+ */
109
+ mapInfosWatchHandler() {
110
+ console.log("mapInfosWatchHandler");
111
+ console.log(this.mapInfos);
112
+ }
99
113
  /**
100
114
  * Listen for changes in feature selection and show or hide the map, popup, and table
101
115
  */
@@ -180,7 +194,7 @@ const CrowdsourceManager = class {
180
194
  render() {
181
195
  // only avoid border when we have a header color that is not white
182
196
  const borderClass = this.popupHeaderColor && this.popupHeaderColor !== "#FFFFFF" ? "border-width-0" : "";
183
- return (h(Host, { key: '175124a05c83f6f02bef1378a20e5a3ed083ce00' }, h("calcite-shell", { key: '10677408a11bbe6196a95622a7a5f69fd3766c20', class: "position-relative" }, h("calcite-panel", { key: 'd3f044385482089d2dd5a457c2de4b3cc748e7c6', class: `width-full height-full ${borderClass}` }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter())));
197
+ return (h(Host, { key: 'aa063ae3fc59a7f3969aaa5b569fbd0ef09a1766' }, h("calcite-shell", { key: 'd5d5cdb201c24f2123089c5cd5f70f973aa24e78', class: "position-relative" }, h("calcite-panel", { key: 'c95bb56946b85574825160acf1411fdf7308cc8c', class: `width-full height-full ${borderClass}` }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter())));
184
198
  }
185
199
  /**
186
200
  * Called after each render
@@ -502,7 +516,9 @@ const CrowdsourceManager = class {
502
516
  }
503
517
  get el() { return getElement(this); }
504
518
  static get watchers() { return {
505
- "enableZoom": ["enableZoomWatchHandler"]
519
+ "enableZoom": ["enableZoomWatchHandler"],
520
+ "hideMapOnLoad": ["hideMapOnLoadWatchHandler"],
521
+ "mapInfos": ["mapInfosWatchHandler"]
506
522
  }; }
507
523
  };
508
524
  CrowdsourceManager.style = CrowdsourceManagerStyle0;