@esri/solutions-components 0.6.25 → 0.6.27

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. package/dist/cjs/buffer-tools_4.cjs.entry.js +28 -7
  2. package/dist/cjs/calcite-alert_3.cjs.entry.js +29 -17
  3. package/dist/cjs/card-manager_3.cjs.entry.js +8 -5
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/map-select-tools_3.cjs.entry.js +14 -13
  6. package/dist/cjs/public-notification.cjs.entry.js +4 -4
  7. package/dist/cjs/solutions-components.cjs.js +1 -1
  8. package/dist/collection/components/buffer-tools/buffer-tools.js +55 -7
  9. package/dist/collection/components/edit-card/edit-card.js +29 -17
  10. package/dist/collection/components/layer-table/layer-table.css +4 -0
  11. package/dist/collection/components/layer-table/layer-table.js +2 -2
  12. package/dist/collection/components/map-card/map-card.js +5 -2
  13. package/dist/collection/components/map-select-tools/map-select-tools.js +14 -13
  14. package/dist/collection/components/public-notification/public-notification.css +0 -9
  15. package/dist/collection/components/public-notification/public-notification.js +3 -3
  16. package/dist/collection/demos/crowdsource-manager.html +3 -0
  17. package/dist/components/buffer-tools2.js +30 -8
  18. package/dist/components/edit-card2.js +29 -17
  19. package/dist/components/layer-table2.js +3 -3
  20. package/dist/components/map-card2.js +5 -2
  21. package/dist/components/map-select-tools2.js +14 -13
  22. package/dist/components/public-notification.js +4 -4
  23. package/dist/esm/buffer-tools_4.entry.js +28 -7
  24. package/dist/esm/calcite-alert_3.entry.js +29 -17
  25. package/dist/esm/card-manager_3.entry.js +8 -5
  26. package/dist/esm/loader.js +1 -1
  27. package/dist/esm/map-select-tools_3.entry.js +14 -13
  28. package/dist/esm/public-notification.entry.js +4 -4
  29. package/dist/esm/solutions-components.js +1 -1
  30. package/dist/solutions-components/demos/crowdsource-manager.html +3 -0
  31. package/dist/solutions-components/{p-f5a593f4.entry.js → p-3fe6368e.entry.js} +1 -1
  32. package/dist/solutions-components/p-8144c528.entry.js +6 -0
  33. package/dist/solutions-components/p-86893d46.entry.js +6 -0
  34. package/dist/solutions-components/{p-cfe4ec71.entry.js → p-c68d870a.entry.js} +3 -3
  35. package/dist/solutions-components/p-ce3b40ca.entry.js +6 -0
  36. package/dist/solutions-components/solutions-components.esm.js +1 -1
  37. package/dist/types/components/buffer-tools/buffer-tools.d.ts +18 -0
  38. package/dist/types/components/edit-card/edit-card.d.ts +12 -0
  39. package/dist/types/components/map-card/map-card.d.ts +1 -0
  40. package/dist/types/components/map-select-tools/map-select-tools.d.ts +4 -4
  41. package/dist/types/components.d.ts +5 -0
  42. package/package.json +1 -1
  43. package/dist/solutions-components/p-3c4e583c.entry.js +0 -6
  44. package/dist/solutions-components/p-5bd796dd.entry.js +0 -6
  45. package/dist/solutions-components/p-dc477b27.entry.js +0 -6
@@ -134,7 +134,7 @@ const MapSelectTools = /*@__PURE__*/ proxyCustomElement(class MapSelectTools ext
134
134
  async getSelection() {
135
135
  // Allow any non whitespace
136
136
  if (!/\S+/gm.test(this._selectionLabel)) {
137
- this._updateLabel();
137
+ await this._updateLabel();
138
138
  }
139
139
  return {
140
140
  id: this.isUpdate ? this.selectionSet.id : Date.now(),
@@ -165,16 +165,16 @@ const MapSelectTools = /*@__PURE__*/ proxyCustomElement(class MapSelectTools ext
165
165
  /**
166
166
  * Handle changes to the buffer distance value
167
167
  */
168
- distanceChanged(event) {
169
- this._distanceChanged(event.detail);
168
+ async distanceChanged(event) {
169
+ await this._distanceChanged(event.detail);
170
170
  }
171
171
  /**
172
172
  * Handle changes to the buffer unit
173
173
  */
174
- unitChanged(event) {
174
+ async unitChanged(event) {
175
175
  if (event.detail.newValue !== event.detail.oldValue) {
176
176
  this._unit = event.detail.newValue;
177
- this._updateLabel();
177
+ await this._updateLabel();
178
178
  }
179
179
  }
180
180
  //--------------------------------------------------------------------------
@@ -350,7 +350,7 @@ const MapSelectTools = /*@__PURE__*/ proxyCustomElement(class MapSelectTools ext
350
350
  const useOIDs = ((_b = (_a = searchResults.source) === null || _a === void 0 ? void 0 : _a.layer) === null || _b === void 0 ? void 0 : _b.id) && searchResults.source.layer.id === this.selectLayerView.layer.id;
351
351
  const oids = useOIDs ? [searchResults.result.feature.getObjectId()] : undefined;
352
352
  this._workflowType = EWorkflowType.SEARCH;
353
- this._updateLabel();
353
+ void this._updateLabel();
354
354
  const graphics = [searchResults.result.feature];
355
355
  this._updateSelection(graphics, useOIDs, oids);
356
356
  this._drawTools.graphics = graphics;
@@ -462,7 +462,7 @@ const MapSelectTools = /*@__PURE__*/ proxyCustomElement(class MapSelectTools ext
462
462
  if (this._workflowType === EWorkflowType.SKETCH) {
463
463
  this._drawTools.updateGraphics();
464
464
  }
465
- this._updateLabel();
465
+ await this._updateLabel();
466
466
  this._clearSearchWidget();
467
467
  if (this._useLayerFeaturesEnabled && !forceUpdate) {
468
468
  // Will only ever be a single graphic
@@ -580,7 +580,7 @@ const MapSelectTools = /*@__PURE__*/ proxyCustomElement(class MapSelectTools ext
580
580
  }
581
581
  // mock this b/c the tools can store a value that is different than what is shown in the map
582
582
  // this occurs when a distance is set but then buffer is disabled
583
- this._distanceChanged({
583
+ await this._distanceChanged({
584
584
  oldValue,
585
585
  newValue
586
586
  });
@@ -659,7 +659,7 @@ const MapSelectTools = /*@__PURE__*/ proxyCustomElement(class MapSelectTools ext
659
659
  *
660
660
  * @protected
661
661
  */
662
- _updateLabel() {
662
+ async _updateLabel() {
663
663
  var _a, _b;
664
664
  const hasSketch = this._selectionLabel.indexOf(this._translations.sketch) > -1;
665
665
  const hasSelect = this._selectionLabel.indexOf(this._translations.select) > -1;
@@ -667,7 +667,8 @@ const MapSelectTools = /*@__PURE__*/ proxyCustomElement(class MapSelectTools ext
667
667
  const label = this._workflowType === EWorkflowType.SEARCH ? (_b = this._searchResult) === null || _b === void 0 ? void 0 : _b.name :
668
668
  this._workflowType === EWorkflowType.SELECT ?
669
669
  this._translations.select : this._translations.sketch;
670
- const unit = !this._unit ? this._bufferTools.unit : this._unit;
670
+ const _unit = !this._unit ? this._bufferTools.unit : this._unit;
671
+ const unit = await this._bufferTools.getTranslatedUnit(_unit);
671
672
  const distance = isNaN(this._distance) ? this._bufferTools.distance : this._distance;
672
673
  this._selectionLabel = hasSketch || hasSelect || hasSearch || !this._selectionLabel ?
673
674
  `${label} ${distance} ${unit}` : this._selectionLabel;
@@ -712,7 +713,7 @@ const MapSelectTools = /*@__PURE__*/ proxyCustomElement(class MapSelectTools ext
712
713
  const id = ((_a = evt === null || evt === void 0 ? void 0 : evt.detail) === null || _a === void 0 ? void 0 : _a.length) > 0 ? evt.detail[0] : "";
713
714
  if (!this.selectLayerView || id !== this.selectLayerView.layer.id) {
714
715
  this.selectLayerView = await getFeatureLayerView(this.mapView, id);
715
- this._updateLabel();
716
+ await this._updateLabel();
716
717
  this._bufferGeometry ? await this._selectFeatures([this._bufferGeometry]) :
717
718
  await this._highlightWithOIDsOrGeoms();
718
719
  }
@@ -720,10 +721,10 @@ const MapSelectTools = /*@__PURE__*/ proxyCustomElement(class MapSelectTools ext
720
721
  /**
721
722
  * Handle changes to the buffer distance value
722
723
  */
723
- _distanceChanged(detail) {
724
+ async _distanceChanged(detail) {
724
725
  if (detail.newValue !== detail.oldValue) {
725
726
  this._distance = detail.newValue;
726
- this._updateLabel();
727
+ await this._updateLabel();
727
728
  }
728
729
  }
729
730
  /**
@@ -54,7 +54,7 @@ import { d as defineCustomElement$4 } from './map-select-tools2.js';
54
54
  import { d as defineCustomElement$3 } from './pdf-download2.js';
55
55
  import { d as defineCustomElement$2 } from './refine-selection2.js';
56
56
 
57
- const publicNotificationCss = ":host{display:block;--calcite-input-message-spacing-value:0}.align-center{align-items:center}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}.action-bar-size{height:3.5rem;width:100%}.w-1-2{width:50%}.w-1-3{width:33.33%}.action-center{-webkit-box-align:center;-webkit-align-items:center;-ms-grid-row-align:center;align-items:center;align-content:center;justify-content:center}.width-full{width:100%}.height-full{height:100%}.padding-1{padding:1rem}.padding-top-sides-1{padding-block-start:1rem;padding-inline-start:1rem;padding-inline-end:1rem}.padding-sides-1{padding-inline-start:1rem;padding-inline-end:1rem}.padding-end-1-2{padding-inline-end:.5rem}.padding-top-1-2{padding-block-start:.5rem}.padding-top-1{padding-top:1rem}.padding-bottom-1{padding-bottom:1rem}.padding-bottom-1-2{padding-bottom:.5rem}.info-blue{color:#00A0FF}.info-message{justify-content:center;display:grid}.font-bold{font-weight:bold}.display-flex{display:flex}.display-block{display:block}.display-none{display:none}.border-bottom{border-bottom:1px solid var(--calcite-ui-border-2)}.padding-start-1-2{padding-inline-start:0.5rem}.list-border{border:1px solid var(--calcite-ui-border-2)}.margin-sides-1{margin-inline-start:1rem;margin-inline-end:1rem}.margin-start-1-2{margin-inline-start:0.5rem}.float-right{float:right}.float-right[dir=\"rtl\"]{float:left}.float-left{float:left}.float-left[dir=\"rtl\"]{float:right}.margin-top-0{margin-block-start:0 !important}.height-1-1-2{height:1.5rem}.main-background{background-color:var(--calcite-ui-foreground-2)}.position-right{position:absolute;right:1rem}.position-right[dir=\"rtl\"]{position:absolute;left:1rem}.label-margin-0{--calcite-label-margin-bottom:0}.list-label{color:var(--calcite-ui-text-1)}.list-label,.list-description{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.list-description{margin-block-start:0.125rem;color:var(--calcite-ui-text-3)}.img-container{width:100%;height:100%}.font-weight-500{font-weight:500}.background-override{height:100%;width:100%;--calcite-ui-foreground-3:var(--calcite-ui-brand);--calcite-ui-foreground-2:var(--calcite-ui-brand-hover);--calcite-ui-text-1:var(--calcite-ui-text-inverse)}.word-wrap-anywhere{word-wrap:anywhere}";
57
+ const publicNotificationCss = ":host{display:block;--calcite-input-message-spacing-value:0}.align-center{align-items:center}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}.action-bar-size{height:3.5rem;width:100%}.w-1-2{width:50%}.w-1-3{width:33.33%}.width-full{width:100%}.height-full{height:100%}.padding-1{padding:1rem}.padding-top-sides-1{padding-block-start:1rem;padding-inline-start:1rem;padding-inline-end:1rem}.padding-sides-1{padding-inline-start:1rem;padding-inline-end:1rem}.padding-end-1-2{padding-inline-end:.5rem}.padding-top-1-2{padding-block-start:.5rem}.padding-top-1{padding-top:1rem}.padding-bottom-1{padding-bottom:1rem}.padding-bottom-1-2{padding-bottom:.5rem}.info-blue{color:#00A0FF}.info-message{justify-content:center;display:grid}.font-bold{font-weight:bold}.display-flex{display:flex}.display-block{display:block}.display-none{display:none}.border-bottom{border-bottom:1px solid var(--calcite-ui-border-2)}.padding-start-1-2{padding-inline-start:0.5rem}.list-border{border:1px solid var(--calcite-ui-border-2)}.margin-sides-1{margin-inline-start:1rem;margin-inline-end:1rem}.margin-start-1-2{margin-inline-start:0.5rem}.float-right{float:right}.float-right[dir=\"rtl\"]{float:left}.float-left{float:left}.float-left[dir=\"rtl\"]{float:right}.margin-top-0{margin-block-start:0 !important}.height-1-1-2{height:1.5rem}.main-background{background-color:var(--calcite-ui-foreground-2)}.position-right{position:absolute;right:1rem}.position-right[dir=\"rtl\"]{position:absolute;left:1rem}.label-margin-0{--calcite-label-margin-bottom:0}.list-label{color:var(--calcite-ui-text-1)}.list-label,.list-description{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.list-description{margin-block-start:0.125rem;color:var(--calcite-ui-text-3)}.img-container{width:100%;height:100%}.font-weight-500{font-weight:500}.background-override{height:100%;width:100%;--calcite-ui-foreground-3:var(--calcite-ui-brand);--calcite-ui-foreground-2:var(--calcite-ui-brand-hover);--calcite-ui-text-1:var(--calcite-ui-text-inverse)}.word-wrap-anywhere{word-wrap:anywhere}";
58
58
 
59
59
  const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class PublicNotification extends HTMLElement {
60
60
  constructor() {
@@ -332,8 +332,8 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class PublicNotifi
332
332
  * @protected
333
333
  */
334
334
  _getActionGroup(icon, pageType, tip) {
335
- const sizeClass = this.showRefineSelection ? " w-1-3" : " w-1-2";
336
- return (h("calcite-action-group", { class: "action-center" + sizeClass, layout: "horizontal" }, h("div", { class: "background-override" }, h("calcite-action", { active: this._pageType === pageType, alignment: "center", class: "width-full height-full", compact: false, icon: icon, id: icon, onClick: () => { this._setPageType(pageType); }, text: "" })), h("calcite-tooltip", { label: "", placement: "bottom", "reference-element": icon }, h("span", null, tip))));
335
+ const sizeClass = this.showRefineSelection ? "w-1-3" : "w-1-2";
336
+ return (h("calcite-action-group", { class: sizeClass, layout: "horizontal" }, h("div", { class: "background-override" }, h("calcite-action", { active: this._pageType === pageType, alignment: "center", class: "width-full height-full", compact: false, icon: icon, id: icon, onClick: () => { this._setPageType(pageType); }, text: "" })), h("calcite-tooltip", { label: "", placement: "bottom", "reference-element": icon }, h("span", null, tip))));
337
337
  }
338
338
  /**
339
339
  * Navigate to the defined page type
@@ -549,7 +549,7 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class PublicNotifi
549
549
  _getExportOptions() {
550
550
  const displayClass = this._exportType === EExportType.PDF ? "display-block" : "display-none";
551
551
  const titleOptionsClass = this._addTitle ? "display-block" : "display-none";
552
- const title = this._titleValue !== undefined ? this._titleValue : this.defaultExportTitle ? this.defaultExportTitle : "";
552
+ const title = this._titleValue ? this._titleValue : this.defaultExportTitle ? this.defaultExportTitle : "";
553
553
  return (h("div", { class: displayClass }, this._getLabel(this._translations.pdfOptions, true), h("div", { class: "padding-top-sides-1" }, h("calcite-label", { class: "label-margin-0" }, this._translations.selectPDFLabelOption)), h("div", { class: "padding-sides-1" }, h("pdf-download", { defaultNumLabelsPerPage: this.defaultNumLabelsPerPage, disabled: !this._downloadActive, ref: (el) => { this._downloadTools = el; } })), h("div", { class: "padding-top-sides-1" }, h("calcite-label", { class: "label-margin-0", layout: "inline" }, h("calcite-checkbox", { checked: this._addTitle, onCalciteCheckboxChange: () => this._addTitle = !this._addTitle }), this._translations.addTitle)), h("div", { class: titleOptionsClass }, this._getLabel(this._translations.title, true, ""), h("calcite-input-text", { class: "padding-sides-1", onCalciteInputTextInput: () => this._changeTitle(), placeholder: this._translations.titlePlaceholder, ref: (el) => { this._titleElement = el; }, value: title })), h("div", { class: "padding-top-sides-1" }, h("calcite-label", { class: "label-margin-0", layout: "inline" }, h("calcite-checkbox", { checked: this._addMap, onCalciteCheckboxChange: () => this._addMap = !this._addMap }), this._translations.includeMap))));
554
554
  }
555
555
  /**
@@ -60,6 +60,19 @@ const BufferTools = class {
60
60
  }
61
61
  //--------------------------------------------------------------------------
62
62
  //
63
+ // Methods (public)
64
+ //
65
+ //--------------------------------------------------------------------------
66
+ /**
67
+ * Get the translated unit for display
68
+ *
69
+ * @returns Promise resolving with the translated unit
70
+ */
71
+ async getTranslatedUnit(unit) {
72
+ return this._units[unit];
73
+ }
74
+ //--------------------------------------------------------------------------
75
+ //
63
76
  // Functions (lifecycle)
64
77
  //
65
78
  //--------------------------------------------------------------------------
@@ -71,6 +84,7 @@ const BufferTools = class {
71
84
  async componentWillLoad() {
72
85
  await this._getTranslations();
73
86
  await this._initModules();
87
+ this._initTranslatedUnits();
74
88
  }
75
89
  /**
76
90
  * Renders the component.
@@ -97,21 +111,28 @@ const BufferTools = class {
97
111
  this._geometryEngine = geometryEngine;
98
112
  }
99
113
  /**
100
- * Gets the nodes for each of the possible distance units
101
- *
102
- * @returns An array of option nodes
114
+ * Init the lookup hash for translated units
103
115
  *
104
116
  * @protected
105
117
  */
106
- _getUnits() {
107
- const units = {
118
+ _initTranslatedUnits() {
119
+ this._units = {
108
120
  "feet": this._translations.feet,
109
121
  "meters": this._translations.meters,
110
122
  "miles": this._translations.miles,
111
123
  "kilometers": this._translations.kilometers
112
124
  };
113
- return Object.keys(units).map(u => {
114
- return (h("calcite-option", { label: units[u], selected: this.unit === u, value: u }));
125
+ }
126
+ /**
127
+ * Gets the nodes for each of the possible distance units
128
+ *
129
+ * @returns An array of option nodes
130
+ *
131
+ * @protected
132
+ */
133
+ _getUnits() {
134
+ return Object.keys(this._units).map(u => {
135
+ return (h("calcite-option", { label: this._units[u], selected: this.unit === u, value: u }));
115
136
  });
116
137
  }
117
138
  /**
@@ -347,8 +347,7 @@ const EditCard = class {
347
347
  */
348
348
  async graphicsWatchHandler() {
349
349
  if (this.graphics.length === 0) {
350
- this._shouldClose = false;
351
- this.closeEdit.emit();
350
+ this._closeEdit();
352
351
  }
353
352
  }
354
353
  async openWatchHandler(v) {
@@ -357,14 +356,12 @@ const EditCard = class {
357
356
  this._editorLoading = true;
358
357
  this._initEditorWidget();
359
358
  if (this.graphicIndex > -1 && this.graphics.length > 0 && this.open && !this._shouldClose) {
360
- await this._editor.startUpdateWorkflowAtFeatureEdit(this.graphics[this.graphicIndex]);
361
- this._shouldClose = true;
359
+ await this._startUpdate();
362
360
  }
363
361
  this._editorLoading = false;
364
362
  }
365
363
  if (!v) {
366
- this._shouldClose = false;
367
- this.closeEdit.emit();
364
+ this._closeEdit();
368
365
  }
369
366
  }
370
367
  //--------------------------------------------------------------------------
@@ -395,13 +392,8 @@ const EditCard = class {
395
392
  this._layerEditHandle.remove();
396
393
  }
397
394
  this._layerEditHandle = this._layer.on("edits", () => {
398
- this._editorLoading = true;
399
395
  this.editsComplete.emit();
400
- this._shouldClose = false;
401
- this._initEditorWidget();
402
- void this._editor.startUpdateWorkflowAtFeatureEdit(this.graphics[this.graphicIndex]);
403
- this._shouldClose = true;
404
- this._editorLoading = false;
396
+ this._closeEdit();
405
397
  });
406
398
  }
407
399
  }
@@ -449,7 +441,11 @@ const EditCard = class {
449
441
  const container = document.createElement("div");
450
442
  this._editor = new this.Editor({
451
443
  allowedWorkflows: "update",
452
- view: this.mapView,
444
+ //view: this.mapView,
445
+ layerInfos: [{
446
+ layer: this._layer,
447
+ geometryUpdatesEnabled: false
448
+ }],
453
449
  visibleElements: {
454
450
  snappingControls: false,
455
451
  sketchTooltipControls: false
@@ -468,12 +464,10 @@ const EditCard = class {
468
464
  });
469
465
  this._editHandle = this.reactiveUtils.when(() => this._editor.viewModel.state === "ready", () => {
470
466
  if (this._shouldClose) {
471
- this._shouldClose = false;
472
- this.closeEdit.emit();
467
+ this._closeEdit();
473
468
  }
474
469
  else if (this.graphicIndex > -1 && this.graphics.length > 0 && this.open && !this._shouldClose) {
475
- void this._editor.startUpdateWorkflowAtFeatureEdit(this.graphics[this.graphicIndex]);
476
- this._shouldClose = true;
470
+ void this._startUpdate();
477
471
  }
478
472
  });
479
473
  this._activeWorkflowHandle = this.reactiveUtils.watch(() => { var _a; return (_a = this._editor.viewModel.activeWorkflow) === null || _a === void 0 ? void 0 : _a.activeWorkflow; }, (activeWorkflow) => {
@@ -485,6 +479,24 @@ const EditCard = class {
485
479
  this._editContainer.appendChild(container);
486
480
  }
487
481
  }
482
+ /**
483
+ * Close the edit widget
484
+ *
485
+ * @returns void
486
+ */
487
+ _closeEdit() {
488
+ this._shouldClose = false;
489
+ this.closeEdit.emit();
490
+ }
491
+ /**
492
+ * Start the update workflow for the editor widget
493
+ *
494
+ * @returns void
495
+ */
496
+ async _startUpdate() {
497
+ await this._editor.startUpdateWorkflowAtFeatureEdit(this.graphics[this.graphicIndex]);
498
+ this._shouldClose = true;
499
+ }
488
500
  /**
489
501
  * Fetches the component's translations
490
502
  *
@@ -99,7 +99,7 @@ const CardManager = class {
99
99
  };
100
100
  CardManager.style = cardManagerCss;
101
101
 
102
- const layerTableCss = ":host{display:block}.height-full{height:100%}.width-full{width:100%}.display-flex{display:flex}.table-border{border:1px solid var(--calcite-ui-border-2)}.border-end{border-inline-end:1px solid var(--calcite-ui-border-2)}.border-bottom{border-bottom:1px solid var(--calcite-ui-border-2)}.padding-5{padding:5px}.padding-end-1{padding-inline-end:1rem}.height-51{height:51px}.bottom-left{position:absolute;left:0;bottom:0}html[dir=\"rtl\"] .bottom-left{position:absolute;right:0;bottom:0}.background{background-color:var(--calcite-ui-background)}.text-color{color:var(--calcite-ui-text-1)}.align-center{align-items:center}.danger-color{color:var(--calcite-ui-danger)}.esri-feature-table vaadin-grid{border:none !important}vaadin-grid-cell-content{padding:var(--lumo-space-xs) var(--lumo-space-m) !important;font-size:14px !important}";
102
+ const layerTableCss = ":host{display:block}.height-full{height:100%}.height-full-adjusted{height:calc(100% - 20px)}.width-full{width:100%}.display-flex{display:flex}.table-border{border:1px solid var(--calcite-ui-border-2)}.border-end{border-inline-end:1px solid var(--calcite-ui-border-2)}.border-bottom{border-bottom:1px solid var(--calcite-ui-border-2)}.padding-5{padding:5px}.padding-end-1{padding-inline-end:1rem}.height-51{height:51px}.bottom-left{position:absolute;left:0;bottom:0}html[dir=\"rtl\"] .bottom-left{position:absolute;right:0;bottom:0}.background{background-color:var(--calcite-ui-background)}.text-color{color:var(--calcite-ui-text-1)}.align-center{align-items:center}.danger-color{color:var(--calcite-ui-danger)}.esri-feature-table vaadin-grid{border:none !important}vaadin-grid-cell-content{padding:var(--lumo-space-xs) var(--lumo-space-m) !important;font-size:14px !important}";
103
103
 
104
104
  const LayerTable = class {
105
105
  constructor(hostRef) {
@@ -239,7 +239,7 @@ const LayerTable = class {
239
239
  const loadingClass = this._fetchingData ? "" : "display-none";
240
240
  const total = this._allIds.length.toString();
241
241
  const selected = this._selectedIndexes.length.toString();
242
- return (h(Host, null, h("calcite-shell", null, this._getTableControlRow("header"), h("div", { class: "height-full width-full" }, h("calcite-panel", { class: "height-full width-full" }, h("calcite-loader", { class: loadingClass, label: this._translations.fetchingData, scale: "l" }), h("div", { class: tableNodeClass, ref: this.onTableNodeCreate })), h("div", { class: "bottom-left background text-color" }, this._translations.recordsSelected
242
+ return (h(Host, null, h("calcite-shell", null, this._getTableControlRow("header"), h("div", { class: "height-full-adjusted width-full" }, h("calcite-panel", { class: "height-full width-full" }, h("calcite-loader", { class: loadingClass, label: this._translations.fetchingData, scale: "l" }), h("div", { class: tableNodeClass, ref: this.onTableNodeCreate })), h("div", { class: "bottom-left text-color" }, this._translations.recordsSelected
243
243
  .replace("{{total}}", total)
244
244
  .replace("{{selected}}", selected)))), this._deleteMessage()));
245
245
  }
@@ -420,7 +420,7 @@ const LayerTable = class {
420
420
  * @returns node to confirm or deny the delete operation
421
421
  */
422
422
  _deleteMessage() {
423
- return (h("calcite-modal", { "aria-labelledby": "modal-title", kind: "danger", onCalciteModalClose: () => this._deleteClosed(), open: this._confirmDelete }, h("div", { class: "display-flex align-center", id: "modal-title", slot: "header" }, h("calcite-icon", { "aria-hidden": "true", class: "padding-end-1 danger-color", icon: "exclamation-mark-triangle", scale: "m" }), this._translations.deleteFeature), h("div", { slot: "content" }, this._translations.confirm), h("calcite-button", { appearance: "outline", kind: "danger", onClick: () => this._deleteClosed(), slot: "secondary", width: "full" }, this._translations.cancel), h("calcite-button", { kind: "danger", loading: this._isDeleting, onClick: () => void this._deleteFeatures(), slot: "primary", width: "full" }, this._translations.delete)));
423
+ return (h("calcite-modal", { "aria-labelledby": "modal-title", kind: "danger", onCalciteModalClose: () => this._deleteClosed(), open: this._confirmDelete }, h("div", { class: "display-flex align-center", id: "modal-title", slot: "header" }, this._translations.deleteFeature), h("div", { slot: "content" }, this._translations.confirm), h("calcite-button", { appearance: "outline", kind: "danger", onClick: () => this._deleteClosed(), slot: "secondary", width: "full" }, this._translations.cancel), h("calcite-button", { kind: "danger", loading: this._isDeleting, onClick: () => void this._deleteFeatures(), slot: "primary", width: "full" }, this._translations.delete)));
424
424
  }
425
425
  /**
426
426
  * Delete the currently selected features
@@ -704,6 +704,7 @@ const MapCard = class {
704
704
  */
705
705
  async componentWillLoad() {
706
706
  await this._initModules();
707
+ this.esriConfig.portalUrl = "https://holistic.mapsdevext.arcgis.com";
707
708
  }
708
709
  /**
709
710
  * Renders the component.
@@ -724,14 +725,16 @@ const MapCard = class {
724
725
  * @protected
725
726
  */
726
727
  async _initModules() {
727
- const [WebMap, MapView, Home] = await loadModules([
728
+ const [WebMap, MapView, Home, esriConfig] = await loadModules([
728
729
  "esri/WebMap",
729
730
  "esri/views/MapView",
730
- "esri/widgets/Home"
731
+ "esri/widgets/Home",
732
+ "esri/config"
731
733
  ]);
732
734
  this.WebMap = WebMap;
733
735
  this.MapView = MapView;
734
736
  this.Home = Home;
737
+ this.esriConfig = esriConfig;
735
738
  }
736
739
  /**
737
740
  * Load the webmap for the provided webMapInfo