@esri/solutions-components 0.6.33 → 0.6.34

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. package/dist/cjs/card-manager_3.cjs.entry.js +15 -9
  2. package/dist/cjs/crowdsource-manager.cjs.entry.js +7 -3
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/solutions-components.cjs.js +1 -1
  5. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +8 -4
  6. package/dist/collection/components/layer-table/layer-table.js +25 -5
  7. package/dist/collection/components/map-card/map-card.js +24 -4
  8. package/dist/collection/demos/crowdsource-manager.html +5 -4
  9. package/dist/components/crowdsource-manager.js +7 -3
  10. package/dist/components/layer-table2.js +9 -5
  11. package/dist/components/map-card2.js +8 -4
  12. package/dist/esm/card-manager_3.entry.js +15 -9
  13. package/dist/esm/crowdsource-manager.entry.js +7 -3
  14. package/dist/esm/loader.js +1 -1
  15. package/dist/esm/polyfills/core-js.js +11 -0
  16. package/dist/esm/polyfills/dom.js +79 -0
  17. package/dist/esm/polyfills/es5-html-element.js +1 -0
  18. package/dist/esm/polyfills/index.js +34 -0
  19. package/dist/esm/polyfills/system.js +6 -0
  20. package/dist/esm/solutions-components.js +1 -1
  21. package/dist/solutions-components/demos/crowdsource-manager.html +5 -4
  22. package/dist/solutions-components/p-506db776.entry.js +6 -0
  23. package/dist/solutions-components/p-80243d29.entry.js +6 -0
  24. package/dist/solutions-components/solutions-components.esm.js +1 -1
  25. package/dist/types/components/layer-table/layer-table.d.ts +4 -0
  26. package/dist/types/components/map-card/map-card.d.ts +4 -0
  27. package/dist/types/components.d.ts +16 -0
  28. package/package.json +1 -1
  29. package/dist/solutions-components/p-65ade5af.entry.js +0 -6
  30. package/dist/solutions-components/p-a5342c42.entry.js +0 -6
@@ -48,6 +48,7 @@ export class LayerTable {
48
48
  this.enableAutoRefresh = undefined;
49
49
  this.enableCSV = undefined;
50
50
  this.enableInlineEdit = undefined;
51
+ this.enableZoom = undefined;
51
52
  this.mapInfo = undefined;
52
53
  this.mapView = undefined;
53
54
  this.onlyShowUpdatableLayers = undefined;
@@ -294,13 +295,15 @@ export class LayerTable {
294
295
  _initToolInfos() {
295
296
  var _a;
296
297
  const featuresSelected = this._selectedIndexes.length > 0;
297
- this._toolInfos = [{
298
+ const featuresEmpty = this._allIds.length === 0;
299
+ this._toolInfos = [this.enableZoom ? {
298
300
  icon: "zoom-to-object",
299
301
  label: this._translations.zoom,
300
302
  func: () => this._zoom(),
301
303
  disabled: !featuresSelected,
302
304
  isOverflow: false
303
- }, ((_a = this.mapInfo) === null || _a === void 0 ? void 0 : _a.filters) ? {
305
+ } : undefined,
306
+ ((_a = this.mapInfo) === null || _a === void 0 ? void 0 : _a.filters) ? {
304
307
  icon: "filter",
305
308
  label: this._translations.filters,
306
309
  func: () => this._filter(),
@@ -330,13 +333,13 @@ export class LayerTable {
330
333
  icon: "list-check-all",
331
334
  func: () => this._selectAll(),
332
335
  label: this._translations.selectAll,
333
- disabled: false,
336
+ disabled: featuresEmpty,
334
337
  isOverflow: false
335
338
  }, {
336
339
  icon: "compare",
337
340
  func: () => this._switchSelected(),
338
341
  label: this._translations.switchSelected,
339
- disabled: false,
342
+ disabled: featuresEmpty,
340
343
  isOverflow: false
341
344
  }, {
342
345
  icon: "refresh",
@@ -349,7 +352,7 @@ export class LayerTable {
349
352
  icon: "export",
350
353
  func: () => void this._exportToCSV(),
351
354
  label: this._translations.exportCSV,
352
- disabled: false,
355
+ disabled: featuresEmpty,
353
356
  isOverflow: false
354
357
  } : undefined];
355
358
  this._defaultVisibleToolSizeInfos = undefined;
@@ -951,6 +954,23 @@ export class LayerTable {
951
954
  "attribute": "enable-inline-edit",
952
955
  "reflect": false
953
956
  },
957
+ "enableZoom": {
958
+ "type": "boolean",
959
+ "mutable": false,
960
+ "complexType": {
961
+ "original": "boolean",
962
+ "resolved": "boolean",
963
+ "references": {}
964
+ },
965
+ "required": false,
966
+ "optional": false,
967
+ "docs": {
968
+ "tags": [],
969
+ "text": "boolean: when true the zoom button will be enabled"
970
+ },
971
+ "attribute": "enable-zoom",
972
+ "reflect": false
973
+ },
954
974
  "mapInfo": {
955
975
  "type": "unknown",
956
976
  "mutable": false,
@@ -32,6 +32,7 @@ export class MapCard {
32
32
  * string: the id of map currently displayed
33
33
  */
34
34
  this._loadedId = "";
35
+ this.enableHome = undefined;
35
36
  this.enableLegend = undefined;
36
37
  this.enableFloorFilter = undefined;
37
38
  this.enableFullscreen = undefined;
@@ -118,10 +119,12 @@ export class MapCard {
118
119
  this._searchConfiguration = this._webMapInfo.searchConfiguration;
119
120
  this.beforeMapChanged.emit();
120
121
  await this.mapView.when(() => {
121
- const home = new this.Home({
122
- view: this.mapView
123
- });
124
- this.mapView.ui.add(home, { position: "top-left", index: 3 });
122
+ if (this.enableHome) {
123
+ const home = new this.Home({
124
+ view: this.mapView
125
+ });
126
+ this.mapView.ui.add(home, { position: "top-left", index: 3 });
127
+ }
125
128
  this.mapView.ui.add(this._mapTools, { position: "top-right", index: 0 });
126
129
  this.mapChanged.emit({
127
130
  id: id,
@@ -143,6 +146,23 @@ export class MapCard {
143
146
  }
144
147
  static get properties() {
145
148
  return {
149
+ "enableHome": {
150
+ "type": "boolean",
151
+ "mutable": false,
152
+ "complexType": {
153
+ "original": "boolean",
154
+ "resolved": "boolean",
155
+ "references": {}
156
+ },
157
+ "required": false,
158
+ "optional": false,
159
+ "docs": {
160
+ "tags": [],
161
+ "text": "boolean: when true the home widget will be available"
162
+ },
163
+ "attribute": "enable-home",
164
+ "reflect": false
165
+ },
146
166
  "enableLegend": {
147
167
  "type": "boolean",
148
168
  "mutable": false,
@@ -28,10 +28,9 @@
28
28
  }
29
29
  </style>
30
30
 
31
- <link
32
- rel="stylesheet"
33
- href="https://jsdev.arcgis.com/4.28/esri/themes/light/main.css"
34
- />
31
+ <link rel="stylesheet" href="https://jsdev.arcgis.com/4.28/esri/themes/light/main.css" />
32
+ <!-- <link rel="stylesheet" href="https://jsdev.arcgis.com/4.28/esri/themes/dark/main.css" /> -->
33
+
35
34
  <link rel="stylesheet" href="https://webapps-cdn.esri.com/CDN/fonts/v1.4.1/fonts.css" />
36
35
  <link rel="stylesheet" href="../solutions-components.css" type="text/css">
37
36
 
@@ -132,7 +131,9 @@
132
131
  </script>
133
132
  </head>
134
133
 
134
+ <!-- <body class="calcite-mode-dark" onload="addValues()"> -->
135
135
  <body onload="addValues()">
136
136
  <crowdsource-manager id="demo" class="crowdsource"/>
137
+ <!-- <crowdsource-manager id="demo" class="crowdsource" theme="dark"/> -->
137
138
  </body>
138
139
  </html>
@@ -62,7 +62,7 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
62
62
  */
63
63
  this._shouldSetMapView = false;
64
64
  this.classicGrid = false;
65
- this.enableAutoRefresh = true;
65
+ this.enableAutoRefresh = false;
66
66
  this.enableCSV = true;
67
67
  this.enableFloorFilter = true;
68
68
  this.enableFullscreen = true;
@@ -283,7 +283,7 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
283
283
  const mapDisplayClass = this.classicGrid && layoutMode === ELayoutMode.GRID ? "display-flex height-full width-1-2" :
284
284
  layoutMode === ELayoutMode.GRID && !hideMap ? "" : "display-none";
285
285
  const mapContainerClass = this.classicGrid && layoutMode === ELayoutMode.GRID ? "width-full" : "adjusted-height-50";
286
- return (h("div", { class: `${mapContainerClass} overflow-hidden ${mapDisplayClass}` }, h("map-card", { basemapConfig: this.basemapConfig, class: "width-full", enableBasemap: this.enableBasemap, enableFloorFilter: this.enableFloorFilter, enableFullscreen: this.enableFullscreen, enableLegend: this.enableLegend, enableSearch: this.enableSearch, hidden: this._expandPopup, mapInfos: (_a = this.mapInfos) === null || _a === void 0 ? void 0 : _a.filter(mapInfo => mapInfo.visible !== false) })));
286
+ return (h("div", { class: `${mapContainerClass} overflow-hidden ${mapDisplayClass}` }, h("map-card", { basemapConfig: this.basemapConfig, class: "width-full", enableBasemap: this.enableBasemap, enableFloorFilter: this.enableFloorFilter, enableFullscreen: this.enableFullscreen, enableHome: this.enableHome, enableLegend: this.enableLegend, enableSearch: this.enableSearch, hidden: this._expandPopup, mapInfos: (_a = this.mapInfos) === null || _a === void 0 ? void 0 : _a.filter(mapInfo => mapInfo.visible !== false) })));
287
287
  }
288
288
  /**
289
289
  * Get the expand node for the popup information
@@ -339,7 +339,7 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
339
339
  const toggleSlot = this.classicGrid && layoutMode !== ELayoutMode.VERTICAL ? "footer" :
340
340
  this.classicGrid && layoutMode === ELayoutMode.VERTICAL ? "panel-end" :
341
341
  layoutMode === ELayoutMode.HORIZONTAL ? "header" : "panel-start";
342
- return (h("calcite-shell", { class: tableSizeClass + " border-bottom" }, 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))), h("div", { class: "width-full height-full position-relative" }, h("layer-table", { enableAutoRefresh: this.enableAutoRefresh, enableCSV: this.enableCSV, enableInlineEdit: this.enableInlineEdit, mapInfo: this._mapInfo, mapView: this === null || this === void 0 ? void 0 : this._mapView, onlyShowUpdatableLayers: this.onlyShowUpdatableLayers, showNewestFirst: this.showNewestFirst, zoomAndScrollToSelected: this.zoomAndScrollToSelected }))));
342
+ return (h("calcite-shell", { class: tableSizeClass + " border-bottom" }, 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))), h("div", { class: "width-full height-full position-relative" }, h("layer-table", { enableAutoRefresh: this.enableAutoRefresh, enableCSV: this.enableCSV, enableInlineEdit: this.enableInlineEdit, enableZoom: this.enableZoom, mapInfo: this._mapInfo, mapView: this === null || this === void 0 ? void 0 : this._mapView, onlyShowUpdatableLayers: this.onlyShowUpdatableLayers, showNewestFirst: this.showNewestFirst, zoomAndScrollToSelected: this.zoomAndScrollToSelected }))));
343
343
  }
344
344
  /**
345
345
  * Open/Close the appropriate panel.
@@ -373,8 +373,12 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
373
373
  * @protected
374
374
  */
375
375
  _setMapView() {
376
+ var _a, _b;
376
377
  this._mapInfo = this._getMapInfo(this._mapChange.id);
377
378
  this._mapView = this._mapChange.mapView;
379
+ if (!this.enableZoom && ((_b = (_a = this._mapView) === null || _a === void 0 ? void 0 : _a.ui) === null || _b === void 0 ? void 0 : _b.components.indexOf("zoom")) > -1) {
380
+ this._mapView.ui.components = this._mapView.ui.components.filter(c => c !== "zoom");
381
+ }
378
382
  this._mapView.popupEnabled = false;
379
383
  }
380
384
  /**
@@ -63,6 +63,7 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
63
63
  this.enableAutoRefresh = undefined;
64
64
  this.enableCSV = undefined;
65
65
  this.enableInlineEdit = undefined;
66
+ this.enableZoom = undefined;
66
67
  this.mapInfo = undefined;
67
68
  this.mapView = undefined;
68
69
  this.onlyShowUpdatableLayers = undefined;
@@ -309,13 +310,15 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
309
310
  _initToolInfos() {
310
311
  var _a;
311
312
  const featuresSelected = this._selectedIndexes.length > 0;
312
- this._toolInfos = [{
313
+ const featuresEmpty = this._allIds.length === 0;
314
+ this._toolInfos = [this.enableZoom ? {
313
315
  icon: "zoom-to-object",
314
316
  label: this._translations.zoom,
315
317
  func: () => this._zoom(),
316
318
  disabled: !featuresSelected,
317
319
  isOverflow: false
318
- }, ((_a = this.mapInfo) === null || _a === void 0 ? void 0 : _a.filters) ? {
320
+ } : undefined,
321
+ ((_a = this.mapInfo) === null || _a === void 0 ? void 0 : _a.filters) ? {
319
322
  icon: "filter",
320
323
  label: this._translations.filters,
321
324
  func: () => this._filter(),
@@ -345,13 +348,13 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
345
348
  icon: "list-check-all",
346
349
  func: () => this._selectAll(),
347
350
  label: this._translations.selectAll,
348
- disabled: false,
351
+ disabled: featuresEmpty,
349
352
  isOverflow: false
350
353
  }, {
351
354
  icon: "compare",
352
355
  func: () => this._switchSelected(),
353
356
  label: this._translations.switchSelected,
354
- disabled: false,
357
+ disabled: featuresEmpty,
355
358
  isOverflow: false
356
359
  }, {
357
360
  icon: "refresh",
@@ -364,7 +367,7 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
364
367
  icon: "export",
365
368
  func: () => void this._exportToCSV(),
366
369
  label: this._translations.exportCSV,
367
- disabled: false,
370
+ disabled: featuresEmpty,
368
371
  isOverflow: false
369
372
  } : undefined];
370
373
  this._defaultVisibleToolSizeInfos = undefined;
@@ -915,6 +918,7 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
915
918
  "enableAutoRefresh": [4, "enable-auto-refresh"],
916
919
  "enableCSV": [4, "enable-c-s-v"],
917
920
  "enableInlineEdit": [4, "enable-inline-edit"],
921
+ "enableZoom": [4, "enable-zoom"],
918
922
  "mapInfo": [16],
919
923
  "mapView": [16],
920
924
  "onlyShowUpdatableLayers": [4, "only-show-updatable-layers"],
@@ -42,6 +42,7 @@ const MapCard = /*@__PURE__*/ proxyCustomElement(class MapCard extends HTMLEleme
42
42
  * string: the id of map currently displayed
43
43
  */
44
44
  this._loadedId = "";
45
+ this.enableHome = undefined;
45
46
  this.enableLegend = undefined;
46
47
  this.enableFloorFilter = undefined;
47
48
  this.enableFullscreen = undefined;
@@ -128,10 +129,12 @@ const MapCard = /*@__PURE__*/ proxyCustomElement(class MapCard extends HTMLEleme
128
129
  this._searchConfiguration = this._webMapInfo.searchConfiguration;
129
130
  this.beforeMapChanged.emit();
130
131
  await this.mapView.when(() => {
131
- const home = new this.Home({
132
- view: this.mapView
133
- });
134
- this.mapView.ui.add(home, { position: "top-left", index: 3 });
132
+ if (this.enableHome) {
133
+ const home = new this.Home({
134
+ view: this.mapView
135
+ });
136
+ this.mapView.ui.add(home, { position: "top-left", index: 3 });
137
+ }
135
138
  this.mapView.ui.add(this._mapTools, { position: "top-right", index: 0 });
136
139
  this.mapChanged.emit({
137
140
  id: id,
@@ -143,6 +146,7 @@ const MapCard = /*@__PURE__*/ proxyCustomElement(class MapCard extends HTMLEleme
143
146
  get el() { return this; }
144
147
  static get style() { return mapCardCss; }
145
148
  }, [0, "map-card", {
149
+ "enableHome": [4, "enable-home"],
146
150
  "enableLegend": [4, "enable-legend"],
147
151
  "enableFloorFilter": [4, "enable-floor-filter"],
148
152
  "enableFullscreen": [4, "enable-fullscreen"],
@@ -128,6 +128,7 @@ const LayerTable = class {
128
128
  this.enableAutoRefresh = undefined;
129
129
  this.enableCSV = undefined;
130
130
  this.enableInlineEdit = undefined;
131
+ this.enableZoom = undefined;
131
132
  this.mapInfo = undefined;
132
133
  this.mapView = undefined;
133
134
  this.onlyShowUpdatableLayers = undefined;
@@ -374,13 +375,15 @@ const LayerTable = class {
374
375
  _initToolInfos() {
375
376
  var _a;
376
377
  const featuresSelected = this._selectedIndexes.length > 0;
377
- this._toolInfos = [{
378
+ const featuresEmpty = this._allIds.length === 0;
379
+ this._toolInfos = [this.enableZoom ? {
378
380
  icon: "zoom-to-object",
379
381
  label: this._translations.zoom,
380
382
  func: () => this._zoom(),
381
383
  disabled: !featuresSelected,
382
384
  isOverflow: false
383
- }, ((_a = this.mapInfo) === null || _a === void 0 ? void 0 : _a.filters) ? {
385
+ } : undefined,
386
+ ((_a = this.mapInfo) === null || _a === void 0 ? void 0 : _a.filters) ? {
384
387
  icon: "filter",
385
388
  label: this._translations.filters,
386
389
  func: () => this._filter(),
@@ -410,13 +413,13 @@ const LayerTable = class {
410
413
  icon: "list-check-all",
411
414
  func: () => this._selectAll(),
412
415
  label: this._translations.selectAll,
413
- disabled: false,
416
+ disabled: featuresEmpty,
414
417
  isOverflow: false
415
418
  }, {
416
419
  icon: "compare",
417
420
  func: () => this._switchSelected(),
418
421
  label: this._translations.switchSelected,
419
- disabled: false,
422
+ disabled: featuresEmpty,
420
423
  isOverflow: false
421
424
  }, {
422
425
  icon: "refresh",
@@ -429,7 +432,7 @@ const LayerTable = class {
429
432
  icon: "export",
430
433
  func: () => void this._exportToCSV(),
431
434
  label: this._translations.exportCSV,
432
- disabled: false,
435
+ disabled: featuresEmpty,
433
436
  isOverflow: false
434
437
  } : undefined];
435
438
  this._defaultVisibleToolSizeInfos = undefined;
@@ -989,6 +992,7 @@ const MapCard = class {
989
992
  * string: the id of map currently displayed
990
993
  */
991
994
  this._loadedId = "";
995
+ this.enableHome = undefined;
992
996
  this.enableLegend = undefined;
993
997
  this.enableFloorFilter = undefined;
994
998
  this.enableFullscreen = undefined;
@@ -1075,10 +1079,12 @@ const MapCard = class {
1075
1079
  this._searchConfiguration = this._webMapInfo.searchConfiguration;
1076
1080
  this.beforeMapChanged.emit();
1077
1081
  await this.mapView.when(() => {
1078
- const home = new this.Home({
1079
- view: this.mapView
1080
- });
1081
- this.mapView.ui.add(home, { position: "top-left", index: 3 });
1082
+ if (this.enableHome) {
1083
+ const home = new this.Home({
1084
+ view: this.mapView
1085
+ });
1086
+ this.mapView.ui.add(home, { position: "top-left", index: 3 });
1087
+ }
1082
1088
  this.mapView.ui.add(this._mapTools, { position: "top-right", index: 0 });
1083
1089
  this.mapChanged.emit({
1084
1090
  id: id,
@@ -19,7 +19,7 @@ const CrowdsourceManager = class {
19
19
  */
20
20
  this._shouldSetMapView = false;
21
21
  this.classicGrid = false;
22
- this.enableAutoRefresh = true;
22
+ this.enableAutoRefresh = false;
23
23
  this.enableCSV = true;
24
24
  this.enableFloorFilter = true;
25
25
  this.enableFullscreen = true;
@@ -240,7 +240,7 @@ const CrowdsourceManager = class {
240
240
  const mapDisplayClass = this.classicGrid && layoutMode === ELayoutMode.GRID ? "display-flex height-full width-1-2" :
241
241
  layoutMode === ELayoutMode.GRID && !hideMap ? "" : "display-none";
242
242
  const mapContainerClass = this.classicGrid && layoutMode === ELayoutMode.GRID ? "width-full" : "adjusted-height-50";
243
- return (h("div", { class: `${mapContainerClass} overflow-hidden ${mapDisplayClass}` }, h("map-card", { basemapConfig: this.basemapConfig, class: "width-full", enableBasemap: this.enableBasemap, enableFloorFilter: this.enableFloorFilter, enableFullscreen: this.enableFullscreen, enableLegend: this.enableLegend, enableSearch: this.enableSearch, hidden: this._expandPopup, mapInfos: (_a = this.mapInfos) === null || _a === void 0 ? void 0 : _a.filter(mapInfo => mapInfo.visible !== false) })));
243
+ return (h("div", { class: `${mapContainerClass} overflow-hidden ${mapDisplayClass}` }, h("map-card", { basemapConfig: this.basemapConfig, class: "width-full", enableBasemap: this.enableBasemap, enableFloorFilter: this.enableFloorFilter, enableFullscreen: this.enableFullscreen, enableHome: this.enableHome, enableLegend: this.enableLegend, enableSearch: this.enableSearch, hidden: this._expandPopup, mapInfos: (_a = this.mapInfos) === null || _a === void 0 ? void 0 : _a.filter(mapInfo => mapInfo.visible !== false) })));
244
244
  }
245
245
  /**
246
246
  * Get the expand node for the popup information
@@ -296,7 +296,7 @@ const CrowdsourceManager = class {
296
296
  const toggleSlot = this.classicGrid && layoutMode !== ELayoutMode.VERTICAL ? "footer" :
297
297
  this.classicGrid && layoutMode === ELayoutMode.VERTICAL ? "panel-end" :
298
298
  layoutMode === ELayoutMode.HORIZONTAL ? "header" : "panel-start";
299
- return (h("calcite-shell", { class: tableSizeClass + " border-bottom" }, 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))), h("div", { class: "width-full height-full position-relative" }, h("layer-table", { enableAutoRefresh: this.enableAutoRefresh, enableCSV: this.enableCSV, enableInlineEdit: this.enableInlineEdit, mapInfo: this._mapInfo, mapView: this === null || this === void 0 ? void 0 : this._mapView, onlyShowUpdatableLayers: this.onlyShowUpdatableLayers, showNewestFirst: this.showNewestFirst, zoomAndScrollToSelected: this.zoomAndScrollToSelected }))));
299
+ return (h("calcite-shell", { class: tableSizeClass + " border-bottom" }, 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))), h("div", { class: "width-full height-full position-relative" }, h("layer-table", { enableAutoRefresh: this.enableAutoRefresh, enableCSV: this.enableCSV, enableInlineEdit: this.enableInlineEdit, enableZoom: this.enableZoom, mapInfo: this._mapInfo, mapView: this === null || this === void 0 ? void 0 : this._mapView, onlyShowUpdatableLayers: this.onlyShowUpdatableLayers, showNewestFirst: this.showNewestFirst, zoomAndScrollToSelected: this.zoomAndScrollToSelected }))));
300
300
  }
301
301
  /**
302
302
  * Open/Close the appropriate panel.
@@ -330,8 +330,12 @@ const CrowdsourceManager = class {
330
330
  * @protected
331
331
  */
332
332
  _setMapView() {
333
+ var _a, _b;
333
334
  this._mapInfo = this._getMapInfo(this._mapChange.id);
334
335
  this._mapView = this._mapChange.mapView;
336
+ if (!this.enableZoom && ((_b = (_a = this._mapView) === null || _a === void 0 ? void 0 : _a.ui) === null || _b === void 0 ? void 0 : _b.components.indexOf("zoom")) > -1) {
337
+ this._mapView.ui.components = this._mapView.ui.components.filter(c => c !== "zoom");
338
+ }
335
339
  this._mapView.popupEnabled = false;
336
340
  }
337
341
  /**