@esri/solutions-components 0.6.35 → 0.6.37

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 (33) hide show
  1. package/dist/cjs/basemap-gallery_7.cjs.entry.js +16 -0
  2. package/dist/cjs/buffer-tools_4.cjs.entry.js +15 -2
  3. package/dist/cjs/calcite-alert_3.cjs.entry.js +1 -12
  4. package/dist/cjs/public-notification.cjs.entry.js +1 -1
  5. package/dist/collection/components/basemap-gallery/basemap-gallery.js +8 -0
  6. package/dist/collection/components/buffer-tools/buffer-tools.js +15 -2
  7. package/dist/collection/components/edit-card/edit-card.js +1 -12
  8. package/dist/collection/components/map-legend/map-legend.js +9 -1
  9. package/dist/collection/components/public-notification/public-notification.js +1 -1
  10. package/dist/components/basemap-gallery2.js +8 -0
  11. package/dist/components/buffer-tools2.js +15 -2
  12. package/dist/components/edit-card2.js +1 -12
  13. package/dist/components/map-legend2.js +8 -0
  14. package/dist/components/public-notification.js +1 -1
  15. package/dist/esm/basemap-gallery_7.entry.js +16 -0
  16. package/dist/esm/buffer-tools_4.entry.js +15 -2
  17. package/dist/esm/calcite-alert_3.entry.js +1 -12
  18. package/dist/esm/polyfills/core-js.js +11 -0
  19. package/dist/esm/polyfills/dom.js +79 -0
  20. package/dist/esm/polyfills/es5-html-element.js +1 -0
  21. package/dist/esm/polyfills/index.js +34 -0
  22. package/dist/esm/polyfills/system.js +6 -0
  23. package/dist/esm/public-notification.entry.js +1 -1
  24. package/dist/solutions-components/{p-0f50087e.entry.js → p-4ecad91c.entry.js} +2 -2
  25. package/dist/solutions-components/{p-c68d870a.entry.js → p-5d28f356.entry.js} +3 -3
  26. package/dist/solutions-components/{p-1682bd0f.entry.js → p-b7804687.entry.js} +1 -1
  27. package/dist/solutions-components/p-fbc7fc26.entry.js +6 -0
  28. package/dist/solutions-components/solutions-components.esm.js +1 -1
  29. package/dist/types/components/basemap-gallery/basemap-gallery.d.ts +4 -0
  30. package/dist/types/components/buffer-tools/buffer-tools.d.ts +8 -0
  31. package/dist/types/components/map-legend/map-legend.d.ts +4 -0
  32. package/package.json +6 -5
  33. package/dist/solutions-components/p-7b61f856.entry.js +0 -6
@@ -58,6 +58,14 @@ const BasemapGallery = class {
58
58
  render() {
59
59
  return (index.h(index.Host, null, index.h("div", { ref: (el) => { this._basemapElement = el; } })));
60
60
  }
61
+ /**
62
+ * StencilJS: Called once just after the component is fully loaded and the first render() occurs.
63
+ */
64
+ async componentDidLoad() {
65
+ if (this.mapView) {
66
+ await this.mapViewWatchHandler();
67
+ }
68
+ }
61
69
  //--------------------------------------------------------------------------
62
70
  //
63
71
  // Functions (protected)
@@ -348,6 +356,14 @@ const MapLegend = class {
348
356
  render() {
349
357
  return (index.h(index.Host, null, index.h("div", { ref: (el) => { this._legendElement = el; } })));
350
358
  }
359
+ /**
360
+ * StencilJS: Called once just after the component is fully loaded and the first render() occurs.
361
+ */
362
+ async componentDidLoad() {
363
+ if (this.mapView) {
364
+ await this.mapViewWatchHandler();
365
+ }
366
+ }
351
367
  //--------------------------------------------------------------------------
352
368
  //
353
369
  // Functions (protected)
@@ -73,6 +73,9 @@ const BufferTools = class {
73
73
  * @returns Promise resolving with the translated unit
74
74
  */
75
75
  async getTranslatedUnit(unit) {
76
+ if (!this._units) {
77
+ await this._defineTranslations();
78
+ }
76
79
  return this._units[unit];
77
80
  }
78
81
  //--------------------------------------------------------------------------
@@ -86,9 +89,8 @@ const BufferTools = class {
86
89
  * @returns Promise when complete
87
90
  */
88
91
  async componentWillLoad() {
89
- await this._getTranslations();
92
+ await this._defineTranslations();
90
93
  await this._initModules();
91
- this._initTranslatedUnits();
92
94
  }
93
95
  /**
94
96
  * Renders the component.
@@ -101,6 +103,17 @@ const BufferTools = class {
101
103
  // Functions (protected)
102
104
  //
103
105
  //--------------------------------------------------------------------------
106
+ /**
107
+ * Loads translations and defines unit names using those translations.
108
+ *
109
+ * @returns Promise resolving when function is done
110
+ *
111
+ * @protected
112
+ */
113
+ async _defineTranslations() {
114
+ await this._getTranslations();
115
+ this._initTranslatedUnits();
116
+ }
104
117
  /**
105
118
  * Load esri javascript api modules
106
119
  *
@@ -450,11 +450,7 @@ const EditCard = class {
450
450
  const container = document.createElement("div");
451
451
  const layers = await mapViewUtils.getAllLayers(this.mapView);
452
452
  const layerInfos = layers.map(layer => {
453
- return {
454
- layer,
455
- geometryUpdatesEnabled: false,
456
- addEnabled: false
457
- };
453
+ return { layer };
458
454
  });
459
455
  this._editor = new this.Editor({
460
456
  allowedWorkflows: "update",
@@ -470,7 +466,6 @@ const EditCard = class {
470
466
  this._editHandle.remove();
471
467
  this._attachmentHandle.remove();
472
468
  this._activeWorkflowHandle.remove();
473
- this._addRelatedRecordHandle.remove();
474
469
  }
475
470
  this._attachmentHandle = this.reactiveUtils.when(() => this._editor.viewModel.state === "adding-attachment" ||
476
471
  this._editor.viewModel.state === "editing-attachment" ||
@@ -490,12 +485,6 @@ const EditCard = class {
490
485
  this._shouldClose = false;
491
486
  }
492
487
  });
493
- // Temp workaround until a new prop is added at 4.29
494
- this._addRelatedRecordHandle = this.reactiveUtils.when(() => !!this._editor.viewModel.featureFormViewModel.relatedRecordCallbacks, () => {
495
- this._editor.viewModel.featureFormViewModel.relatedRecordCallbacks.addRelatedRecord = null;
496
- }, {
497
- once: true
498
- });
499
488
  // had issues with destroy before adding like this
500
489
  this._editContainer.appendChild(container);
501
490
  }
@@ -513,7 +513,7 @@ const PublicNotification = class {
513
513
  const displayClass = this._exportType === interfaces.EExportType.PDF ? "display-block" : "display-none";
514
514
  const titleOptionsClass = this._addTitle ? "display-block" : "display-none";
515
515
  const title = this._titleValue ? this._titleValue : this.defaultExportTitle ? this.defaultExportTitle : "";
516
- return (index.h("div", { class: displayClass }, this._getLabel(this._translations.pdfOptions, true), index.h("div", { class: "padding-top-sides-1" }, index.h("calcite-label", { class: "label-margin-0" }, this._translations.selectPDFLabelOption)), index.h("div", { class: "padding-sides-1" }, index.h("pdf-download", { defaultNumLabelsPerPage: this.defaultNumLabelsPerPage, disabled: !this._downloadActive, ref: (el) => { this._downloadTools = el; } })), index.h("div", { class: "padding-top-sides-1" }, index.h("calcite-label", { class: "label-margin-0", layout: "inline" }, index.h("calcite-checkbox", { checked: this._addTitle, onCalciteCheckboxChange: () => this._addTitle = !this._addTitle }), this._translations.addTitle)), index.h("div", { class: titleOptionsClass }, this._getLabel(this._translations.title, true, ""), index.h("calcite-input-text", { class: "padding-sides-1", onCalciteInputTextInput: () => this._changeTitle(), placeholder: this._translations.titlePlaceholder, ref: (el) => { this._titleElement = el; }, value: title })), index.h("div", { class: "padding-top-sides-1" }, index.h("calcite-label", { class: "label-margin-0", layout: "inline" }, index.h("calcite-checkbox", { checked: this._addMap, onCalciteCheckboxChange: () => this._addMap = !this._addMap }), this._translations.includeMap))));
516
+ return (index.h("div", { class: displayClass }, this._getLabel(this._translations.pdfOptions, true), index.h("div", { class: "padding-top-sides-1" }, index.h("calcite-label", { class: "label-margin-0" }, this._translations.selectPDFLabelOption)), index.h("div", { class: "padding-sides-1" }, index.h("pdf-download", { defaultNumLabelsPerPage: parseInt(this.defaultNumLabelsPerPage.toString(), 10), disabled: !this._downloadActive, ref: (el) => { this._downloadTools = el; } })), index.h("div", { class: "padding-top-sides-1" }, index.h("calcite-label", { class: "label-margin-0", layout: "inline" }, index.h("calcite-checkbox", { checked: this._addTitle, onCalciteCheckboxChange: () => this._addTitle = !this._addTitle }), this._translations.addTitle)), index.h("div", { class: titleOptionsClass }, this._getLabel(this._translations.title, true, ""), index.h("calcite-input-text", { class: "padding-sides-1", onCalciteInputTextInput: () => this._changeTitle(), placeholder: this._translations.titlePlaceholder, ref: (el) => { this._titleElement = el; }, value: title })), index.h("div", { class: "padding-top-sides-1" }, index.h("calcite-label", { class: "label-margin-0", layout: "inline" }, index.h("calcite-checkbox", { checked: this._addMap, onCalciteCheckboxChange: () => this._addMap = !this._addMap }), this._translations.includeMap))));
517
517
  }
518
518
  /**
519
519
  * Render the refine page
@@ -63,6 +63,14 @@ export class BasemapGallery {
63
63
  render() {
64
64
  return (h(Host, null, h("div", { ref: (el) => { this._basemapElement = el; } })));
65
65
  }
66
+ /**
67
+ * StencilJS: Called once just after the component is fully loaded and the first render() occurs.
68
+ */
69
+ async componentDidLoad() {
70
+ if (this.mapView) {
71
+ await this.mapViewWatchHandler();
72
+ }
73
+ }
66
74
  //--------------------------------------------------------------------------
67
75
  //
68
76
  // Functions (protected)
@@ -61,6 +61,9 @@ export class BufferTools {
61
61
  * @returns Promise resolving with the translated unit
62
62
  */
63
63
  async getTranslatedUnit(unit) {
64
+ if (!this._units) {
65
+ await this._defineTranslations();
66
+ }
64
67
  return this._units[unit];
65
68
  }
66
69
  //--------------------------------------------------------------------------
@@ -74,9 +77,8 @@ export class BufferTools {
74
77
  * @returns Promise when complete
75
78
  */
76
79
  async componentWillLoad() {
77
- await this._getTranslations();
80
+ await this._defineTranslations();
78
81
  await this._initModules();
79
- this._initTranslatedUnits();
80
82
  }
81
83
  /**
82
84
  * Renders the component.
@@ -89,6 +91,17 @@ export class BufferTools {
89
91
  // Functions (protected)
90
92
  //
91
93
  //--------------------------------------------------------------------------
94
+ /**
95
+ * Loads translations and defines unit names using those translations.
96
+ *
97
+ * @returns Promise resolving when function is done
98
+ *
99
+ * @protected
100
+ */
101
+ async _defineTranslations() {
102
+ await this._getTranslations();
103
+ this._initTranslatedUnits();
104
+ }
92
105
  /**
93
106
  * Load esri javascript api modules
94
107
  *
@@ -142,11 +142,7 @@ export class EditCard {
142
142
  const container = document.createElement("div");
143
143
  const layers = await getAllLayers(this.mapView);
144
144
  const layerInfos = layers.map(layer => {
145
- return {
146
- layer,
147
- geometryUpdatesEnabled: false,
148
- addEnabled: false
149
- };
145
+ return { layer };
150
146
  });
151
147
  this._editor = new this.Editor({
152
148
  allowedWorkflows: "update",
@@ -162,7 +158,6 @@ export class EditCard {
162
158
  this._editHandle.remove();
163
159
  this._attachmentHandle.remove();
164
160
  this._activeWorkflowHandle.remove();
165
- this._addRelatedRecordHandle.remove();
166
161
  }
167
162
  this._attachmentHandle = this.reactiveUtils.when(() => this._editor.viewModel.state === "adding-attachment" ||
168
163
  this._editor.viewModel.state === "editing-attachment" ||
@@ -182,12 +177,6 @@ export class EditCard {
182
177
  this._shouldClose = false;
183
178
  }
184
179
  });
185
- // Temp workaround until a new prop is added at 4.29
186
- this._addRelatedRecordHandle = this.reactiveUtils.when(() => !!this._editor.viewModel.featureFormViewModel.relatedRecordCallbacks, () => {
187
- this._editor.viewModel.featureFormViewModel.relatedRecordCallbacks.addRelatedRecord = null;
188
- }, {
189
- once: true
190
- });
191
180
  // had issues with destroy before adding like this
192
181
  this._editContainer.appendChild(container);
193
182
  }
@@ -62,6 +62,14 @@ export class MapLegend {
62
62
  render() {
63
63
  return (h(Host, null, h("div", { ref: (el) => { this._legendElement = el; } })));
64
64
  }
65
+ /**
66
+ * StencilJS: Called once just after the component is fully loaded and the first render() occurs.
67
+ */
68
+ async componentDidLoad() {
69
+ if (this.mapView) {
70
+ await this.mapViewWatchHandler();
71
+ }
72
+ }
65
73
  //--------------------------------------------------------------------------
66
74
  //
67
75
  // Functions (protected)
@@ -151,7 +159,7 @@ export class MapLegend {
151
159
  "optional": false,
152
160
  "docs": {
153
161
  "tags": [],
154
- "text": "esri/widgets/Legend: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html\n\nLegend instance"
162
+ "text": "esri/widgets/Legend: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html\r\n\r\nLegend instance"
155
163
  }
156
164
  }
157
165
  };
@@ -517,7 +517,7 @@ export class PublicNotification {
517
517
  const displayClass = this._exportType === EExportType.PDF ? "display-block" : "display-none";
518
518
  const titleOptionsClass = this._addTitle ? "display-block" : "display-none";
519
519
  const title = this._titleValue ? this._titleValue : this.defaultExportTitle ? this.defaultExportTitle : "";
520
- 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))));
520
+ 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: parseInt(this.defaultNumLabelsPerPage.toString(), 10), 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))));
521
521
  }
522
522
  /**
523
523
  * Render the refine page
@@ -54,6 +54,14 @@ const BasemapGallery = /*@__PURE__*/ proxyCustomElement(class BasemapGallery ext
54
54
  render() {
55
55
  return (h(Host, null, h("div", { ref: (el) => { this._basemapElement = el; } })));
56
56
  }
57
+ /**
58
+ * StencilJS: Called once just after the component is fully loaded and the first render() occurs.
59
+ */
60
+ async componentDidLoad() {
61
+ if (this.mapView) {
62
+ await this.mapViewWatchHandler();
63
+ }
64
+ }
57
65
  //--------------------------------------------------------------------------
58
66
  //
59
67
  // Functions (protected)
@@ -62,6 +62,9 @@ const BufferTools = /*@__PURE__*/ proxyCustomElement(class BufferTools extends H
62
62
  * @returns Promise resolving with the translated unit
63
63
  */
64
64
  async getTranslatedUnit(unit) {
65
+ if (!this._units) {
66
+ await this._defineTranslations();
67
+ }
65
68
  return this._units[unit];
66
69
  }
67
70
  //--------------------------------------------------------------------------
@@ -75,9 +78,8 @@ const BufferTools = /*@__PURE__*/ proxyCustomElement(class BufferTools extends H
75
78
  * @returns Promise when complete
76
79
  */
77
80
  async componentWillLoad() {
78
- await this._getTranslations();
81
+ await this._defineTranslations();
79
82
  await this._initModules();
80
- this._initTranslatedUnits();
81
83
  }
82
84
  /**
83
85
  * Renders the component.
@@ -90,6 +92,17 @@ const BufferTools = /*@__PURE__*/ proxyCustomElement(class BufferTools extends H
90
92
  // Functions (protected)
91
93
  //
92
94
  //--------------------------------------------------------------------------
95
+ /**
96
+ * Loads translations and defines unit names using those translations.
97
+ *
98
+ * @returns Promise resolving when function is done
99
+ *
100
+ * @protected
101
+ */
102
+ async _defineTranslations() {
103
+ await this._getTranslations();
104
+ this._initTranslatedUnits();
105
+ }
93
106
  /**
94
107
  * Load esri javascript api modules
95
108
  *
@@ -137,11 +137,7 @@ const EditCard = /*@__PURE__*/ proxyCustomElement(class EditCard extends HTMLEle
137
137
  const container = document.createElement("div");
138
138
  const layers = await getAllLayers(this.mapView);
139
139
  const layerInfos = layers.map(layer => {
140
- return {
141
- layer,
142
- geometryUpdatesEnabled: false,
143
- addEnabled: false
144
- };
140
+ return { layer };
145
141
  });
146
142
  this._editor = new this.Editor({
147
143
  allowedWorkflows: "update",
@@ -157,7 +153,6 @@ const EditCard = /*@__PURE__*/ proxyCustomElement(class EditCard extends HTMLEle
157
153
  this._editHandle.remove();
158
154
  this._attachmentHandle.remove();
159
155
  this._activeWorkflowHandle.remove();
160
- this._addRelatedRecordHandle.remove();
161
156
  }
162
157
  this._attachmentHandle = this.reactiveUtils.when(() => this._editor.viewModel.state === "adding-attachment" ||
163
158
  this._editor.viewModel.state === "editing-attachment" ||
@@ -177,12 +172,6 @@ const EditCard = /*@__PURE__*/ proxyCustomElement(class EditCard extends HTMLEle
177
172
  this._shouldClose = false;
178
173
  }
179
174
  });
180
- // Temp workaround until a new prop is added at 4.29
181
- this._addRelatedRecordHandle = this.reactiveUtils.when(() => !!this._editor.viewModel.featureFormViewModel.relatedRecordCallbacks, () => {
182
- this._editor.viewModel.featureFormViewModel.relatedRecordCallbacks.addRelatedRecord = null;
183
- }, {
184
- once: true
185
- });
186
175
  // had issues with destroy before adding like this
187
176
  this._editContainer.appendChild(container);
188
177
  }
@@ -53,6 +53,14 @@ const MapLegend = /*@__PURE__*/ proxyCustomElement(class MapLegend extends HTMLE
53
53
  render() {
54
54
  return (h(Host, null, h("div", { ref: (el) => { this._legendElement = el; } })));
55
55
  }
56
+ /**
57
+ * StencilJS: Called once just after the component is fully loaded and the first render() occurs.
58
+ */
59
+ async componentDidLoad() {
60
+ if (this.mapView) {
61
+ await this.mapViewWatchHandler();
62
+ }
63
+ }
56
64
  //--------------------------------------------------------------------------
57
65
  //
58
66
  // Functions (protected)
@@ -550,7 +550,7 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class PublicNotifi
550
550
  const displayClass = this._exportType === EExportType.PDF ? "display-block" : "display-none";
551
551
  const titleOptionsClass = this._addTitle ? "display-block" : "display-none";
552
552
  const title = this._titleValue ? this._titleValue : this.defaultExportTitle ? this.defaultExportTitle : "";
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))));
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: parseInt(this.defaultNumLabelsPerPage.toString(), 10), 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
  /**
556
556
  * Render the refine page
@@ -54,6 +54,14 @@ const BasemapGallery = class {
54
54
  render() {
55
55
  return (h(Host, null, h("div", { ref: (el) => { this._basemapElement = el; } })));
56
56
  }
57
+ /**
58
+ * StencilJS: Called once just after the component is fully loaded and the first render() occurs.
59
+ */
60
+ async componentDidLoad() {
61
+ if (this.mapView) {
62
+ await this.mapViewWatchHandler();
63
+ }
64
+ }
57
65
  //--------------------------------------------------------------------------
58
66
  //
59
67
  // Functions (protected)
@@ -344,6 +352,14 @@ const MapLegend = class {
344
352
  render() {
345
353
  return (h(Host, null, h("div", { ref: (el) => { this._legendElement = el; } })));
346
354
  }
355
+ /**
356
+ * StencilJS: Called once just after the component is fully loaded and the first render() occurs.
357
+ */
358
+ async componentDidLoad() {
359
+ if (this.mapView) {
360
+ await this.mapViewWatchHandler();
361
+ }
362
+ }
347
363
  //--------------------------------------------------------------------------
348
364
  //
349
365
  // Functions (protected)
@@ -69,6 +69,9 @@ const BufferTools = class {
69
69
  * @returns Promise resolving with the translated unit
70
70
  */
71
71
  async getTranslatedUnit(unit) {
72
+ if (!this._units) {
73
+ await this._defineTranslations();
74
+ }
72
75
  return this._units[unit];
73
76
  }
74
77
  //--------------------------------------------------------------------------
@@ -82,9 +85,8 @@ const BufferTools = class {
82
85
  * @returns Promise when complete
83
86
  */
84
87
  async componentWillLoad() {
85
- await this._getTranslations();
88
+ await this._defineTranslations();
86
89
  await this._initModules();
87
- this._initTranslatedUnits();
88
90
  }
89
91
  /**
90
92
  * Renders the component.
@@ -97,6 +99,17 @@ const BufferTools = class {
97
99
  // Functions (protected)
98
100
  //
99
101
  //--------------------------------------------------------------------------
102
+ /**
103
+ * Loads translations and defines unit names using those translations.
104
+ *
105
+ * @returns Promise resolving when function is done
106
+ *
107
+ * @protected
108
+ */
109
+ async _defineTranslations() {
110
+ await this._getTranslations();
111
+ this._initTranslatedUnits();
112
+ }
100
113
  /**
101
114
  * Load esri javascript api modules
102
115
  *
@@ -446,11 +446,7 @@ const EditCard = class {
446
446
  const container = document.createElement("div");
447
447
  const layers = await getAllLayers(this.mapView);
448
448
  const layerInfos = layers.map(layer => {
449
- return {
450
- layer,
451
- geometryUpdatesEnabled: false,
452
- addEnabled: false
453
- };
449
+ return { layer };
454
450
  });
455
451
  this._editor = new this.Editor({
456
452
  allowedWorkflows: "update",
@@ -466,7 +462,6 @@ const EditCard = class {
466
462
  this._editHandle.remove();
467
463
  this._attachmentHandle.remove();
468
464
  this._activeWorkflowHandle.remove();
469
- this._addRelatedRecordHandle.remove();
470
465
  }
471
466
  this._attachmentHandle = this.reactiveUtils.when(() => this._editor.viewModel.state === "adding-attachment" ||
472
467
  this._editor.viewModel.state === "editing-attachment" ||
@@ -486,12 +481,6 @@ const EditCard = class {
486
481
  this._shouldClose = false;
487
482
  }
488
483
  });
489
- // Temp workaround until a new prop is added at 4.29
490
- this._addRelatedRecordHandle = this.reactiveUtils.when(() => !!this._editor.viewModel.featureFormViewModel.relatedRecordCallbacks, () => {
491
- this._editor.viewModel.featureFormViewModel.relatedRecordCallbacks.addRelatedRecord = null;
492
- }, {
493
- once: true
494
- });
495
484
  // had issues with destroy before adding like this
496
485
  this._editContainer.appendChild(container);
497
486
  }