@esri/solutions-components 0.8.25 → 0.8.26
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.
- package/dist/cjs/basemap-gallery_7.cjs.entry.js +6 -6
- package/dist/cjs/buffer-tools_3.cjs.entry.js +1 -1
- package/dist/cjs/calcite-alert_4.cjs.entry.js +6 -6
- package/dist/cjs/calcite-dropdown-group_2.cjs.entry.js +1 -1
- package/dist/cjs/calcite-flow_6.cjs.entry.js +87 -58
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +7 -7
- package/dist/cjs/card-manager_3.cjs.entry.js +2 -2
- package/dist/cjs/crowdsource-manager.cjs.entry.js +1 -1
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +1 -1
- package/dist/cjs/deduct-calculator.cjs.entry.js +1 -1
- package/dist/cjs/feature-comments.cjs.entry.js +1 -1
- package/dist/cjs/feature-form-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/feature-list.cjs.entry.js +3 -3
- package/dist/cjs/features-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/layout-manager.cjs.entry.js +1 -1
- package/dist/cjs/list-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/location-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/map-select-tools_3.cjs.entry.js +3 -3
- package/dist/cjs/pci-calculator.cjs.entry.js +1 -1
- package/dist/cjs/public-notification.cjs.entry.js +1 -1
- package/dist/cjs/refine-results-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/share-item.cjs.entry.js +1 -1
- package/dist/cjs/solution-configuration.cjs.entry.js +3 -3
- package/dist/cjs/solution-contents_3.cjs.entry.js +3 -3
- package/dist/cjs/solution-item-icon.cjs.entry.js +1 -1
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/cjs/spatial-ref.cjs.entry.js +1 -1
- package/dist/collection/components/create-feature/create-feature.js +82 -50
- package/dist/collection/components/create-related-feature/create-related-feature.js +1 -1
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +1 -1
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +1 -1
- package/dist/collection/components/deduct-calculator/deduct-calculator.js +1 -1
- package/dist/collection/components/delete-button/delete-button.css +4 -0
- package/dist/collection/components/delete-button/delete-button.js +2 -2
- package/dist/collection/components/edit-card/edit-card.js +1 -1
- package/dist/collection/components/feature-comments/feature-comments.js +1 -1
- package/dist/collection/components/feature-details/feature-details.js +6 -6
- package/dist/collection/components/feature-form-flow-item/feature-form-flow-item.js +1 -1
- package/dist/collection/components/feature-list/feature-list.js +3 -3
- package/dist/collection/components/features-flow-item/features-flow-item.js +1 -1
- package/dist/collection/components/floor-filter/floor-filter.js +1 -1
- package/dist/collection/components/info-card/info-card.js +2 -2
- package/dist/collection/components/json-editor/json-editor.js +1 -1
- package/dist/collection/components/layer-table/layer-table.js +1 -1
- package/dist/collection/components/layout-manager/layout-manager.js +1 -1
- package/dist/collection/components/list-flow-item/list-flow-item.js +1 -1
- package/dist/collection/components/location-flow-item/location-flow-item.js +1 -1
- package/dist/collection/components/map-card/map-card.js +1 -1
- package/dist/collection/components/map-draw-tools/map-draw-tools.js +1 -1
- package/dist/collection/components/map-fullscreen/map-fullscreen.js +1 -1
- package/dist/collection/components/map-layer-picker/map-layer-picker.js +1 -1
- package/dist/collection/components/map-legend/map-legend.js +1 -1
- package/dist/collection/components/map-picker/map-picker.js +1 -1
- package/dist/collection/components/map-search/map-search.js +1 -1
- package/dist/collection/components/map-select-tools/map-select-tools.js +1 -1
- package/dist/collection/components/map-tools/map-tools.js +1 -1
- package/dist/collection/components/pci-calculator/pci-calculator.js +1 -1
- package/dist/collection/components/pdf-download/pdf-download.js +1 -1
- package/dist/collection/components/public-notification/public-notification.js +1 -1
- package/dist/collection/components/refine-results-flow-item/refine-results-flow-item.js +1 -1
- package/dist/collection/components/refine-selection/refine-selection.js +1 -1
- package/dist/collection/components/share-item/share-item.js +1 -1
- package/dist/collection/components/solution-configuration/solution-configuration.js +3 -3
- package/dist/collection/components/solution-contents/solution-contents.js +1 -1
- package/dist/collection/components/solution-item/solution-item.js +1 -1
- package/dist/collection/components/solution-item-details/solution-item-details.js +1 -1
- package/dist/collection/components/solution-item-icon/solution-item-icon.js +1 -1
- package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +1 -1
- package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +1 -1
- package/dist/collection/components/solution-resource-item/solution-resource-item.js +1 -1
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +1 -1
- package/dist/collection/components/solution-template-data/solution-template-data.js +1 -1
- package/dist/collection/components/solution-variables/solution-variables.js +1 -1
- package/dist/collection/components/spatial-ref/spatial-ref.js +1 -1
- package/dist/components/create-feature2.js +90 -53
- package/dist/components/create-related-feature2.js +1 -1
- package/dist/components/crowdsource-manager.js +1 -1
- package/dist/components/crowdsource-reporter.js +1 -1
- package/dist/components/deduct-calculator2.js +1 -1
- package/dist/components/delete-button2.js +3 -3
- package/dist/components/edit-card2.js +1 -1
- package/dist/components/feature-comments.js +1 -1
- package/dist/components/feature-details2.js +6 -6
- package/dist/components/feature-form-flow-item.js +1 -1
- package/dist/components/feature-list2.js +3 -3
- package/dist/components/features-flow-item.js +1 -1
- package/dist/components/floor-filter2.js +1 -1
- package/dist/components/info-card2.js +2 -2
- package/dist/components/json-editor2.js +1 -1
- package/dist/components/layer-table2.js +1 -1
- package/dist/components/layout-manager.js +1 -1
- package/dist/components/list-flow-item.js +1 -1
- package/dist/components/location-flow-item.js +1 -1
- package/dist/components/map-card2.js +1 -1
- package/dist/components/map-draw-tools2.js +1 -1
- package/dist/components/map-fullscreen2.js +1 -1
- package/dist/components/map-layer-picker2.js +1 -1
- package/dist/components/map-legend2.js +1 -1
- package/dist/components/map-picker2.js +1 -1
- package/dist/components/map-search2.js +1 -1
- package/dist/components/map-select-tools2.js +1 -1
- package/dist/components/map-tools2.js +1 -1
- package/dist/components/pci-calculator.js +1 -1
- package/dist/components/pdf-download2.js +1 -1
- package/dist/components/public-notification.js +1 -1
- package/dist/components/refine-results-flow-item.js +1 -1
- package/dist/components/refine-selection2.js +1 -1
- package/dist/components/share-item.js +1 -1
- package/dist/components/solution-configuration.js +3 -3
- package/dist/components/solution-contents2.js +1 -1
- package/dist/components/solution-item-details2.js +1 -1
- package/dist/components/solution-item-icon2.js +1 -1
- package/dist/components/solution-item-sharing2.js +1 -1
- package/dist/components/solution-item2.js +1 -1
- package/dist/components/solution-organization-variables2.js +1 -1
- package/dist/components/solution-resource-item2.js +1 -1
- package/dist/components/solution-spatial-ref2.js +1 -1
- package/dist/components/solution-template-data2.js +1 -1
- package/dist/components/solution-variables2.js +1 -1
- package/dist/components/spatial-ref2.js +1 -1
- package/dist/esm/basemap-gallery_7.entry.js +6 -6
- package/dist/esm/buffer-tools_3.entry.js +1 -1
- package/dist/esm/calcite-alert_4.entry.js +6 -6
- package/dist/esm/calcite-dropdown-group_2.entry.js +1 -1
- package/dist/esm/calcite-flow_6.entry.js +87 -58
- package/dist/esm/calcite-shell-panel_14.entry.js +7 -7
- package/dist/esm/card-manager_3.entry.js +2 -2
- package/dist/esm/crowdsource-manager.entry.js +1 -1
- package/dist/esm/crowdsource-reporter.entry.js +1 -1
- package/dist/esm/deduct-calculator.entry.js +1 -1
- package/dist/esm/feature-comments.entry.js +1 -1
- package/dist/esm/feature-form-flow-item.entry.js +1 -1
- package/dist/esm/feature-list.entry.js +3 -3
- package/dist/esm/features-flow-item.entry.js +1 -1
- package/dist/esm/layout-manager.entry.js +1 -1
- package/dist/esm/list-flow-item.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/location-flow-item.entry.js +1 -1
- package/dist/esm/map-select-tools_3.entry.js +3 -3
- package/dist/esm/pci-calculator.entry.js +1 -1
- package/dist/esm/public-notification.entry.js +1 -1
- package/dist/esm/refine-results-flow-item.entry.js +1 -1
- package/dist/esm/share-item.entry.js +1 -1
- package/dist/esm/solution-configuration.entry.js +3 -3
- package/dist/esm/solution-contents_3.entry.js +3 -3
- package/dist/esm/solution-item-icon.entry.js +1 -1
- package/dist/esm/solutions-components.js +1 -1
- package/dist/esm/spatial-ref.entry.js +1 -1
- package/dist/solutions-components/{p-2c044250.entry.js → p-053be79f.entry.js} +2 -2
- package/dist/solutions-components/{p-1ff9eb95.entry.js → p-05b3a5d9.entry.js} +1 -1
- package/dist/solutions-components/p-0d17246a.entry.js +6 -0
- package/dist/solutions-components/{p-b3160299.entry.js → p-1e915546.entry.js} +1 -1
- package/dist/solutions-components/{p-97e343df.entry.js → p-1f4b174f.entry.js} +1 -1
- package/dist/solutions-components/p-27e9ea86.entry.js +6 -0
- package/dist/solutions-components/{p-72317f8e.entry.js → p-296375d3.entry.js} +2 -2
- package/dist/solutions-components/{p-af4be4ce.entry.js → p-2a6db6e8.entry.js} +1 -1
- package/dist/solutions-components/p-4870be89.entry.js +6 -0
- package/dist/solutions-components/p-51b5ac05.entry.js +6 -0
- package/dist/solutions-components/{p-686fa7ce.entry.js → p-66722851.entry.js} +1 -1
- package/dist/solutions-components/{p-f35cc7ae.entry.js → p-81747268.entry.js} +1 -1
- package/dist/solutions-components/{p-84a5d221.entry.js → p-92eadd14.entry.js} +1 -1
- package/dist/solutions-components/{p-fc665a1a.entry.js → p-96c901b4.entry.js} +1 -1
- package/dist/solutions-components/p-9cfc59dd.entry.js +6 -0
- package/dist/solutions-components/{p-16730f05.entry.js → p-b656b73e.entry.js} +1 -1
- package/dist/solutions-components/{p-8c500fd7.entry.js → p-bfdabb9d.entry.js} +1 -1
- package/dist/solutions-components/p-c5becad1.entry.js +6 -0
- package/dist/solutions-components/{p-102b1f94.entry.js → p-cb20ba34.entry.js} +1 -1
- package/dist/solutions-components/p-cd694107.entry.js +17 -0
- package/dist/solutions-components/p-e1662e32.entry.js +6 -0
- package/dist/solutions-components/p-eda6994e.entry.js +6 -0
- package/dist/solutions-components/{p-bf57dbfd.entry.js → p-edcc1f23.entry.js} +1 -1
- package/dist/solutions-components/p-f7b791a8.entry.js +6 -0
- package/dist/solutions-components/p-fac36b42.entry.js +6 -0
- package/dist/solutions-components/{p-33845a79.entry.js → p-fd28754c.entry.js} +1 -1
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/types/components/create-feature/create-feature.d.ts +21 -3
- package/package.json +1 -1
- package/dist/solutions-components/p-28c6906c.entry.js +0 -6
- package/dist/solutions-components/p-3470c0f7.entry.js +0 -6
- package/dist/solutions-components/p-3fae9775.entry.js +0 -6
- package/dist/solutions-components/p-5b817c98.entry.js +0 -6
- package/dist/solutions-components/p-71de367b.entry.js +0 -6
- package/dist/solutions-components/p-8a81f3c7.entry.js +0 -6
- package/dist/solutions-components/p-aa06f4d1.entry.js +0 -6
- package/dist/solutions-components/p-b76b5310.entry.js +0 -6
- package/dist/solutions-components/p-c047a6fc.entry.js +0 -6
- package/dist/solutions-components/p-c2ec0dcc.entry.js +0 -17
- package/dist/solutions-components/p-e9176a44.entry.js +0 -6
@@ -21103,7 +21103,7 @@ const SpatialRef = class {
|
|
21103
21103
|
* Renders the component.
|
21104
21104
|
*/
|
21105
21105
|
render() {
|
21106
|
-
return (index.h(index.Host, { key: '
|
21106
|
+
return (index.h(index.Host, { key: '0ca21876510da4276c6fd31885eed7dc15db70ad' }, index.h("div", { key: '90ff94d67604a66f20d30276a1b573affccf5eb2' }, index.h("calcite-input", { key: '35e207303270345e457406e26689f58bf5387d43', disabled: this.disabled, id: "calcite-sr-search", onKeyUp: (evt) => this._searchInputKeyDown(evt), placeholder: this._translations.spatialReferencePlaceholder }), index.h("calcite-tree", { key: '0b73019247c134d0cfcdf8e84544622907a40a80', id: "calcite-sr-tree", slot: "children" }, this._getTreeContent()))));
|
21107
21107
|
}
|
21108
21108
|
//--------------------------------------------------------------------------
|
21109
21109
|
//
|
@@ -31,6 +31,7 @@ export class CreateFeature {
|
|
31
31
|
this.selectedLayerId = undefined;
|
32
32
|
this.customizeSubmit = false;
|
33
33
|
this.searchConfiguration = undefined;
|
34
|
+
this._editorLoading = false;
|
34
35
|
this.showSearchWidget = undefined;
|
35
36
|
}
|
36
37
|
//--------------------------------------------------------------------------
|
@@ -39,13 +40,25 @@ export class CreateFeature {
|
|
39
40
|
//
|
40
41
|
//--------------------------------------------------------------------------
|
41
42
|
/**
|
42
|
-
|
43
|
-
|
43
|
+
* Called each time the mapView prop is changed.
|
44
|
+
*/
|
44
45
|
async mapViewWatchHandler() {
|
45
46
|
await this.mapView.when(async () => {
|
46
47
|
await this.init();
|
47
48
|
});
|
48
49
|
}
|
50
|
+
/**
|
51
|
+
* When _editorLoading is true the container node will be hidden while starting the create workflow
|
52
|
+
*/
|
53
|
+
async _editorLoadingWatchHandler(v) {
|
54
|
+
var _a, _b;
|
55
|
+
if (v) {
|
56
|
+
(_a = this._container) === null || _a === void 0 ? void 0 : _a.classList.add("display-none");
|
57
|
+
await this.startCreate();
|
58
|
+
(_b = this._container) === null || _b === void 0 ? void 0 : _b.classList.remove("display-none");
|
59
|
+
this._editorLoading = false;
|
60
|
+
}
|
61
|
+
}
|
49
62
|
//--------------------------------------------------------------------------
|
50
63
|
//
|
51
64
|
// Methods (public)
|
@@ -93,7 +106,9 @@ export class CreateFeature {
|
|
93
106
|
*/
|
94
107
|
render() {
|
95
108
|
const showSearchWidget = this.showSearchWidget ? '' : 'display-none';
|
96
|
-
|
109
|
+
const loaderClass = this._editorLoading ? "" : "display-none";
|
110
|
+
const featureFormClass = this._editorLoading ? "display-none" : "";
|
111
|
+
return (h(Fragment, { key: '2e790defdd5592fed729853888ee06143c95c84d' }, h("calcite-loader", { key: 'a0f1de0064ea80305d4aaf83f78939c0236c955a', class: loaderClass, label: "", scale: "s" }), h("div", { key: '1af391d6d7fd0dffa2e8e4b43905f8081a5f9820', class: featureFormClass, id: "feature-form" }), h("div", { key: '88d12115c3c2e0d34a5d6fd8895fb60cec6e9b5d', class: `search-widget ${showSearchWidget} ${featureFormClass}`, id: "search-widget-ref" })));
|
97
112
|
}
|
98
113
|
//--------------------------------------------------------------------------
|
99
114
|
//
|
@@ -129,11 +144,13 @@ export class CreateFeature {
|
|
129
144
|
* @protected
|
130
145
|
*/
|
131
146
|
async createEditorWidget() {
|
147
|
+
var _a;
|
132
148
|
if (this._editor) {
|
133
149
|
this._editor.destroy();
|
134
150
|
}
|
135
151
|
const layerInfos = [];
|
136
|
-
|
152
|
+
this._container = document.createElement("div");
|
153
|
+
(_a = this._container) === null || _a === void 0 ? void 0 : _a.classList.add("display-none");
|
137
154
|
const allMapLayers = await getAllLayers(this.mapView);
|
138
155
|
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
139
156
|
allMapLayers.forEach(async (eachLayer) => {
|
@@ -152,9 +169,9 @@ export class CreateFeature {
|
|
152
169
|
visibleElements: {
|
153
170
|
snappingControls: false
|
154
171
|
},
|
155
|
-
container
|
172
|
+
container: this._container
|
156
173
|
});
|
157
|
-
this.el.appendChild(
|
174
|
+
this.el.appendChild(this._container);
|
158
175
|
//Add handle to watch if attachments are added/edited
|
159
176
|
const attachmentHandle = this.reactiveUtils.watch(() => this._editor.viewModel.state, (state) => {
|
160
177
|
if (state === 'adding-attachment' || state === 'editing-attachment') {
|
@@ -173,13 +190,14 @@ export class CreateFeature {
|
|
173
190
|
const handle = this.reactiveUtils.watch(() => this._editor.viewModel.featureTemplatesViewModel.state, (state) => {
|
174
191
|
if (state === 'ready') {
|
175
192
|
this.progressStatus.emit(0.5);
|
176
|
-
|
193
|
+
this._editorLoading = true;
|
177
194
|
}
|
178
195
|
});
|
179
196
|
this._editor.viewModel.addHandles(handle);
|
180
197
|
//Add handle to watch editor viewmodel state and then show the search widget
|
181
198
|
const formHandle = this.reactiveUtils.watch(() => this._editor.viewModel.state, (state) => {
|
182
199
|
if (state === 'creating-features') {
|
200
|
+
this._editorLoading = true;
|
183
201
|
this.showSearchWidget = true;
|
184
202
|
}
|
185
203
|
});
|
@@ -190,36 +208,39 @@ export class CreateFeature {
|
|
190
208
|
* @protected
|
191
209
|
*/
|
192
210
|
async startCreate() {
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
this.
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
211
|
+
return new Promise((resolve, reject) => {
|
212
|
+
var _a;
|
213
|
+
if ((_a = this._editor.viewModel.featureTemplatesViewModel.items) === null || _a === void 0 ? void 0 : _a.length) {
|
214
|
+
const items = this._editor.viewModel.featureTemplatesViewModel.items[0].get("items");
|
215
|
+
//once the feature template is selected handle the event for formSubmit and sketch complete
|
216
|
+
//also, hide the headers and footer in the editor as we will be showing our own submit and cancel button
|
217
|
+
this._editor.viewModel.featureTemplatesViewModel.on('select', () => {
|
218
|
+
this.progressStatus.emit(0.75);
|
219
|
+
setTimeout(() => {
|
220
|
+
//on form submit
|
221
|
+
this._editor.viewModel.featureFormViewModel.on('submit', this.submitted.bind(this));
|
222
|
+
//on sketch complete emit the event
|
223
|
+
this._editor.viewModel.sketchViewModel.on("create", (evt) => {
|
224
|
+
if (evt.state === "complete") {
|
225
|
+
this.showSearchWidget = false;
|
226
|
+
this.progressStatus.emit(1);
|
227
|
+
this.drawComplete.emit();
|
228
|
+
}
|
229
|
+
});
|
230
|
+
this.hideEditorsElements().then(() => {
|
231
|
+
resolve({});
|
232
|
+
}, e => reject(e));
|
233
|
+
}, 700);
|
234
|
+
});
|
235
|
+
//if only one feature template then directly start geometry creation for that
|
236
|
+
//else allow feature template selection to user
|
237
|
+
if (items.length === 1) {
|
238
|
+
this._editor.viewModel.featureTemplatesViewModel.select(items[0]);
|
239
|
+
}
|
240
|
+
//hides the header and footer elements in editor widget
|
241
|
+
void this.hideEditorsElements();
|
219
242
|
}
|
220
|
-
|
221
|
-
this.hideEditorsElements();
|
222
|
-
}
|
243
|
+
});
|
223
244
|
}
|
224
245
|
/**
|
225
246
|
* Display search widget to search location
|
@@ -254,7 +275,7 @@ export class CreateFeature {
|
|
254
275
|
if (this._editor.viewModel.sketchViewModel.createGraphic && pointGeometry) {
|
255
276
|
this._editor.viewModel.sketchViewModel.createGraphic.set('geometry', pointGeometry);
|
256
277
|
this._editor.viewModel.sketchViewModel.complete();
|
257
|
-
this.hideEditorsElements();
|
278
|
+
void this.hideEditorsElements();
|
258
279
|
}
|
259
280
|
}, 100);
|
260
281
|
}
|
@@ -313,22 +334,21 @@ export class CreateFeature {
|
|
313
334
|
* Hides the elements of editor widget
|
314
335
|
* @protected
|
315
336
|
*/
|
316
|
-
hideEditorsElements() {
|
337
|
+
async hideEditorsElements() {
|
338
|
+
var _a;
|
317
339
|
if (!this.customizeSubmit) {
|
318
340
|
return;
|
319
341
|
}
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
});
|
331
|
-
}, 700);
|
342
|
+
await this.timeout(700);
|
343
|
+
//hides the header and footer on the featureForm
|
344
|
+
(_a = this.el.querySelector('.esri-editor').querySelectorAll('calcite-flow-item')) === null || _a === void 0 ? void 0 : _a.forEach((flowItem) => {
|
345
|
+
var _a, _b, _c, _d, _e;
|
346
|
+
const article = (_c = (_b = (_a = flowItem.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('calcite-panel')) === null || _b === void 0 ? void 0 : _b.shadowRoot) === null || _c === void 0 ? void 0 : _c.querySelector('article');
|
347
|
+
//hide the header
|
348
|
+
(_d = article === null || article === void 0 ? void 0 : article.querySelector('header')) === null || _d === void 0 ? void 0 : _d.setAttribute('style', 'display: none');
|
349
|
+
//hide the footer
|
350
|
+
(_e = article === null || article === void 0 ? void 0 : article.querySelector('footer')) === null || _e === void 0 ? void 0 : _e.setAttribute('style', 'display: none');
|
351
|
+
});
|
332
352
|
}
|
333
353
|
/**
|
334
354
|
* On creation of feature emit the event that the feature is created
|
@@ -364,6 +384,14 @@ export class CreateFeature {
|
|
364
384
|
this.success.emit();
|
365
385
|
}
|
366
386
|
}
|
387
|
+
/**
|
388
|
+
* call setTimeout in Promise wrapper
|
389
|
+
* @param delay The time, in milliseconds that the timer should wait before the promise is resolved
|
390
|
+
* @protected
|
391
|
+
*/
|
392
|
+
timeout(delay) {
|
393
|
+
return new Promise(resolve => setTimeout(resolve, delay));
|
394
|
+
}
|
367
395
|
static get is() { return "create-feature"; }
|
368
396
|
static get originalStyleUrls() {
|
369
397
|
return {
|
@@ -457,6 +485,7 @@ export class CreateFeature {
|
|
457
485
|
}
|
458
486
|
static get states() {
|
459
487
|
return {
|
488
|
+
"_editorLoading": {},
|
460
489
|
"showSearchWidget": {}
|
461
490
|
};
|
462
491
|
}
|
@@ -592,6 +621,9 @@ export class CreateFeature {
|
|
592
621
|
return [{
|
593
622
|
"propName": "mapView",
|
594
623
|
"methodName": "mapViewWatchHandler"
|
624
|
+
}, {
|
625
|
+
"propName": "_editorLoading",
|
626
|
+
"methodName": "_editorLoadingWatchHandler"
|
595
627
|
}];
|
596
628
|
}
|
597
629
|
}
|
@@ -100,7 +100,7 @@ export class CreateRelatedFeature {
|
|
100
100
|
this.reactiveUtils = reactiveUtils;
|
101
101
|
}
|
102
102
|
render() {
|
103
|
-
return (h(Host, { key: '
|
103
|
+
return (h(Host, { key: 'c8516898db79b35b7fba909810afdc56b0602ebd' }));
|
104
104
|
}
|
105
105
|
/**
|
106
106
|
* StencilJS: Called once just after the component is fully loaded and the first render() occurs.
|
@@ -202,7 +202,7 @@ export class CrowdsourceManager {
|
|
202
202
|
render() {
|
203
203
|
// only avoid border when we have a header color that is not white
|
204
204
|
const borderClass = this.popupHeaderColor && this.popupHeaderColor !== "#FFFFFF" ? "border-width-0" : "";
|
205
|
-
return (h(Host, { key: '
|
205
|
+
return (h(Host, { key: '9624c9a65dfde0984d1abdc8ed78f709d58874f3' }, h("calcite-shell", { key: '0b54737e19b7ab1b17a1841b7b83267515a5de51', class: "position-relative" }, h("calcite-panel", { key: 'aea71b81bd854548f921920cb6dc259d8441a2b2', class: `width-full height-full ${borderClass}` }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter())));
|
206
206
|
}
|
207
207
|
/**
|
208
208
|
* Called after each render
|
@@ -118,7 +118,7 @@ export class CrowdsourceReporter {
|
|
118
118
|
*/
|
119
119
|
render() {
|
120
120
|
const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
|
121
|
-
return (h(Host, { key: '
|
121
|
+
return (h(Host, { key: '119bb8b1c9115dca4e15c45ddd8e7fbed500b4d7' }, this._reportSubmitted && h("calcite-alert", { key: 'ef85c61fb5c9eaac9391c1e37494ef5e4244dadb', "auto-close": true, class: themeClass + " report-submitted-msg", icon: "check-circle", kind: "success", label: "", onCalciteAlertClose: () => { this._reportSubmitted = false; }, open: true, placement: "top" }, h("div", { key: '616a75103a227cf1b50d9e43fea129afc3fee4f9', slot: "message" }, this.reportSubmittedMessage ? this.reportSubmittedMessage : this._translations.submitMsg)), this._featureCreationFailedErrorMsg && h("calcite-alert", { key: '2faf9a9729bf90b87e044bfe8958571735f2cbf5', "auto-close": true, class: themeClass, icon: "x-octagon", kind: "danger", label: "", onCalciteAlertClose: () => { this._featureCreationFailedErrorMsg = ""; }, open: true, placement: "top" }, h("div", { key: '66cdf81166042ff4efddd4cc5801d790463d75fc', slot: "title" }, this._translations.error), h("div", { key: 'ad289b06742d2159d6fcfbdc42ecc9fb6d81f362', slot: "message" }, this._featureCreationFailedErrorMsg)), this._commentSubmitted && h("calcite-alert", { key: '27aee542bfd2cae8972035d17167407b35b5eb76', "auto-close": true, class: 'report-submitted ' + themeClass, icon: "check-circle", kind: "success", label: "", onCalciteAlertClose: () => { this._commentSubmitted = false; }, open: true, placement: "top" }, h("div", { key: '70a8a21de05b00d409adb226d6393817f7514930', slot: "message" }, this._translations.commentSubmittedMsg)), this._addingCommentFailed && h("calcite-alert", { key: '107ab01eca03500faeb4db5a2ac0e9dc7261e6fc', "auto-close": true, class: themeClass, icon: "x-octagon", kind: "danger", label: "", onCalciteAlertClose: () => { this._addingCommentFailed = false; }, open: true, placement: "top" }, h("div", { key: '31e6fba8c28489f87897a13ebb4e7b8956452191', slot: "title" }, this._translations.error), h("div", { key: '6f0868946ef6e04490ba1e0806a03e26c756760b', slot: "message" }, this._translations.addingCommentFailedMsg)), h("div", { key: 'e169b7b466023010d45151ca9b7dfb900d8d7f9f' }, h("calcite-shell", { key: '72899b8eff6622233224df91223ee5d59539905b', "content-behind": true }, this._getReporter())), this.filterModal()));
|
122
122
|
}
|
123
123
|
//--------------------------------------------------------------------------
|
124
124
|
//
|
@@ -41,7 +41,7 @@ export class DeductCalculator {
|
|
41
41
|
* Renders the component.
|
42
42
|
*/
|
43
43
|
render() {
|
44
|
-
return (h(Host, { key: '
|
44
|
+
return (h(Host, { key: '7c12073b99b009ce413082df1ea7f7ba57a24d89' }, h("div", { key: '35ad62ab6a2fe9efb8e32c262d562c213ce067aa', class: "label-display" }, h("calcite-label", { key: '5f4b84e4639538ebc8c6172def2a9c4b2703621f', class: "label-display" }, "Density %", this._getDensityInput()), h("calcite-label", { key: 'b3c9bf873945871c456e97a7c6ce71ce820f37c5', class: "label-display" }, "Type", this._getTypeInput()), h("calcite-label", { key: '57d3b49c4b2a1f103fb197e29913e244731c507f', class: "label-display" }, "Severity", this._getSeverityInput())), h("div", { key: '1194dccf269b5c42248f4e4eed188bcc89aa4cb5' }, this._getCalculateInput())));
|
45
45
|
}
|
46
46
|
//--------------------------------------------------------------------------
|
47
47
|
//
|
@@ -72,7 +72,7 @@ export class DeleteButton {
|
|
72
72
|
* Renders the component.
|
73
73
|
*/
|
74
74
|
render() {
|
75
|
-
return (h(Host, { key: '
|
75
|
+
return (h(Host, { key: '87e080ea4203ab7fcb1313d8fa57a3d5c5d37885' }, this.buttonType === "button" ? (h("calcite-button", { appearance: "outline", disabled: !this._deleteEndabled, id: "solutions-delete", kind: "danger", onClick: () => this._delete(), width: "full" }, this._translations.deleteCount.replace("{{n}}", this.ids.length.toString()))) : (h("calcite-action", { appearance: "solid", compact: true, disabled: !this._deleteEndabled, id: this.icon, onClick: () => this._delete(), scale: "s", text: this._translations.delete }, h("calcite-button", { appearance: "transparent", iconStart: this.icon, kind: "danger" }, this._translations.delete))), this._deleteMessage()));
|
76
76
|
}
|
77
77
|
/**
|
78
78
|
* StencilJS: Called once just after the component is fully loaded and the first render() occurs.
|
@@ -109,7 +109,7 @@ export class DeleteButton {
|
|
109
109
|
_deleteMessage() {
|
110
110
|
const confirmMessage = this.ids.length === 1 ? this._translations.confirmSingle :
|
111
111
|
this._translations.confirmMultiple;
|
112
|
-
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" }, confirmMessage), 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)));
|
112
|
+
return (h("calcite-modal", { "aria-labelledby": "modal-title", class: "delete-modal", 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" }, confirmMessage), 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)));
|
113
113
|
}
|
114
114
|
/**
|
115
115
|
* Delete the currently selected features
|
@@ -111,7 +111,7 @@ export class EditCard {
|
|
111
111
|
!this.graphics[0].layer.editingEnabled : true;
|
112
112
|
const tableNodeClass = this._editorLoading ? "display-none" : "position-absolute";
|
113
113
|
const loadingClass = this._editorLoading ? "" : "display-none";
|
114
|
-
return (h(Host, { key: '
|
114
|
+
return (h(Host, { key: '80acdd7d9b9441be28664ab60b7ad5d19c633bdd' }, h("div", { key: 'c8e41f2f7f3d5fcc4f49dd42b1f530c9e422cc8a', class: "position-absolute" }, editDisabled ? (h("calcite-notice", { kind: "warning", open: true, slot: "content-top", width: "full" }, h("div", { slot: "message" }, this._translations.enableEditing))) : undefined, h("div", { key: '4b93fef902254d2a55e997bccdb4e16ee67c3c75', class: "position-absolute" }, h("div", { key: '1794c5c246ab90b2915a15a15077ae7d82ec567c', class: tableNodeClass, id: "feature-form", ref: (el) => this._editContainer = el }), h("calcite-loader", { key: '001162f8ae947cae915de33c16a116efd7795f75', class: loadingClass, label: "", scale: "s" })))));
|
115
115
|
}
|
116
116
|
//--------------------------------------------------------------------------
|
117
117
|
//
|
@@ -56,7 +56,7 @@ export class FeatureComments {
|
|
56
56
|
//
|
57
57
|
//--------------------------------------------------------------------------
|
58
58
|
render() {
|
59
|
-
return (h(Host, { key: '
|
59
|
+
return (h(Host, { key: '70ab7bb863463c41fa2291412f8da6d602e9a94d' }, h("slot", { key: '7266d385e0fc9341baf651a5dcab13b7ba361163' })));
|
60
60
|
}
|
61
61
|
static get is() { return "feature-comments"; }
|
62
62
|
static get encapsulation() { return "shadow"; }
|
@@ -111,12 +111,12 @@ export class FeatureDetails {
|
|
111
111
|
var _a, _b, _c, _d, _e;
|
112
112
|
//When related features found show comments list of only those features else comments list will be empty
|
113
113
|
const commentsListWhereClause = ((_a = this._relatedFeaturesOIDs) === null || _a === void 0 ? void 0 : _a.length) > 0 ? `objectId in(${this._relatedFeaturesOIDs})` : '1=0';
|
114
|
-
return (h("calcite-panel", { key: '
|
115
|
-
h("div", { key: '
|
116
|
-
h("div", { key: '
|
117
|
-
h("calcite-button", { key: '
|
118
|
-
h("calcite-button", { key: '
|
119
|
-
h("feature-list", { key: '
|
114
|
+
return (h("calcite-panel", { key: 'e42bbf7e4070b03c43aec1bf47c442b65cd35731', "full-height": true }, h("info-card", { key: 'f44099e2f8f87edbc656700e65daeb1bf934d41c', allowEditing: false, graphics: this.graphics, highlightEnabled: false, isLoading: false, isMobile: false, mapView: this.mapView, onSelectionChanged: (e) => { this.featureSelectionChange.emit(e.detail); }, paginationEnabled: false, position: "relative", ref: el => this._infoCard = el }), (this._likeFieldAvailable || this._dislikeFieldAvailable || this._commentsAvailable) &&
|
115
|
+
h("div", { key: 'aa65adf8d8b6a059d5e9d0e74a1896eb20c84eaf', class: "buttons-container" }, this._commentsAvailable &&
|
116
|
+
h("div", { key: '09dd5da4932a9a0526b413592d25469087eaf4c9', class: "comment-btn" }, h("span", { key: '48f7080ace69de3589aa4f3b199eb25e53f61110' }, this._relatedFeaturesOIDs.length), h("calcite-icon", { key: 'f524b4d66a0a6427dda6a7a93e9dc362fe7337fc', icon: "speech-bubble", scale: 's' })), this._likeFieldAvailable &&
|
117
|
+
h("calcite-button", { key: '278a685b13f7ae2a37cb649a0933006104fa7b9f', appearance: "transparent", iconEnd: "thumbs-up", kind: this._isLikeBtnClicked ? "brand" : "neutral", loading: this._updating, onClick: this.onLikeButtonClick.bind(this), scale: 'm' }, (_c = (_b = this._likeCount) !== null && _b !== void 0 ? _b : this._selectedGraphic.attributes[this._likeField]) !== null && _c !== void 0 ? _c : 0), this._dislikeFieldAvailable &&
|
118
|
+
h("calcite-button", { key: '7010b6ef352be7c587d7ca49fe3b8411aeb163c6', appearance: "transparent", iconEnd: "thumbs-down", kind: this._isDislikeBtnClicked ? "brand" : "neutral", loading: this._updating, onClick: this.onDislikeButtonClick.bind(this), scale: 'm' }, (_e = (_d = this._disLikeCount) !== null && _d !== void 0 ? _d : this._selectedGraphic.attributes[this._dislikeField]) !== null && _e !== void 0 ? _e : 0)), this.relatedTableId && this._commentsAvailable &&
|
119
|
+
h("feature-list", { key: '526614c384fa627057a18528c1bd4aaf2b9c70d8', class: "height-full", mapView: this.mapView, onFeatureSelect: (e) => { this.commentSelect.emit(e.detail); }, pageSize: 5, ref: el => this._commentsList = el, selectedLayerId: this.relatedTableId, showErrorWhenNoFeatures: false, showInitialLoading: false, textSize: "small", whereClause: commentsListWhereClause })));
|
120
120
|
}
|
121
121
|
/**
|
122
122
|
* Load esri javascript api modules
|
@@ -56,7 +56,7 @@ export class FeatureFormFlowItem {
|
|
56
56
|
//
|
57
57
|
//--------------------------------------------------------------------------
|
58
58
|
render() {
|
59
|
-
return (h(Host, { key: '
|
59
|
+
return (h(Host, { key: '32113dda304b2f7179d0275f04987e69ce386959' }, h("slot", { key: '358d5ea7a03cc7da16e98a92391cf74dfe9fa89b' })));
|
60
60
|
}
|
61
61
|
static get is() { return "feature-form-flow-item"; }
|
62
62
|
static get encapsulation() { return "shadow"; }
|
@@ -103,9 +103,9 @@ export class FeatureList {
|
|
103
103
|
* Renders the component.
|
104
104
|
*/
|
105
105
|
render() {
|
106
|
-
return (h("calcite-panel", { key: '
|
107
|
-
h("calcite-notice", { key: '
|
108
|
-
h("div", { key: '
|
106
|
+
return (h("calcite-panel", { key: '3d7b707a73bb6c4d566515e50cf2baa155e60816', "full-height": true, "full-width": true }, this._isLoading && h("calcite-loader", { key: '50294111fb6c1e52e727b03e54ca83fc498ca3b9', label: "", scale: "m" }), this.showErrorWhenNoFeatures && this._featureItems.length === 0 && !this._isLoading &&
|
107
|
+
h("calcite-notice", { key: '8dd48fc33e2a9825a95b0d0d50424baf431fed55', class: "error-msg", icon: "feature-details", kind: "info", open: true }, h("div", { key: '6ff0dc700cdf40fe6929a9777bca8ebc6325f1ed', slot: "message" }, this.noFeaturesFoundMsg ? this.noFeaturesFoundMsg : this._translations.featureErrorMsg)), h("calcite-list", { key: '2412a7b41ab87bfee803460bdea0395ca609d55a', "selection-appearance": "border", "selection-mode": "none" }, !this._isLoading && this._featureItems.length > 0 && this._featureItems), this._featuresCount > this.pageSize &&
|
108
|
+
h("div", { key: '4216b02c264cf88472082f1c6f3cd466bd77d166', class: "width-full", slot: "footer" }, h("calcite-pagination", { key: '2bb39768d0fbd0d863b075b0e2e6b750c5f7c2a1', class: "pagination", "full-width": true, onCalcitePaginationChange: this.pageChanged.bind(this), "page-size": this.pageSize, ref: el => this._pagination = el, "start-item": "1", "total-items": this._featuresCount }))));
|
109
109
|
}
|
110
110
|
//--------------------------------------------------------------------------
|
111
111
|
//
|
@@ -56,7 +56,7 @@ export class FeaturesFlowItem {
|
|
56
56
|
//
|
57
57
|
//--------------------------------------------------------------------------
|
58
58
|
render() {
|
59
|
-
return (h(Host, { key: '
|
59
|
+
return (h(Host, { key: 'eb455611b9248308ef11de0f2b03cb35bbc77e5b' }, h("slot", { key: 'f9829297423e86f028c1415e6c7d27c0967b9e8e' })));
|
60
60
|
}
|
61
61
|
static get is() { return "features-flow-item"; }
|
62
62
|
static get encapsulation() { return "shadow"; }
|
@@ -57,7 +57,7 @@ export class FloorFilter {
|
|
57
57
|
return this._initModules();
|
58
58
|
}
|
59
59
|
render() {
|
60
|
-
return (h(Host, { key: '
|
60
|
+
return (h(Host, { key: '98769446b20d8a9432b571b5653abbc6613bdfe5' }, h("div", { key: '6606a2593fec1885fc02b07a168bdea43e7f864a', ref: (el) => { this._floorFilterElement = el; } })));
|
61
61
|
}
|
62
62
|
//--------------------------------------------------------------------------
|
63
63
|
//
|
@@ -184,8 +184,8 @@ export class InfoCard {
|
|
184
184
|
const id = (_d = (_c = this._features) === null || _c === void 0 ? void 0 : _c.selectedFeature) === null || _d === void 0 ? void 0 : _d.getObjectId();
|
185
185
|
const ids = parseInt(id === null || id === void 0 ? void 0 : id.toString(), 10) > -1 ? [id] : [];
|
186
186
|
const deleteEnabled = ((_e = this._layer) === null || _e === void 0 ? void 0 : _e.editingEnabled) && ((_h = (_g = (_f = this._layer) === null || _f === void 0 ? void 0 : _f.capabilities) === null || _g === void 0 ? void 0 : _g.operations) === null || _h === void 0 ? void 0 : _h.supportsDelete);
|
187
|
-
return (h(Host, { key: '
|
188
|
-
h("div", { key: '
|
187
|
+
return (h(Host, { key: 'ac9c78b064154a666a50e7e8540f13bd541c4d37' }, h("calcite-shell", { key: 'e12b6fd8ac5f92282899edceb5818764fb543301', style: { position: this.position } }, this._getHeader(), h("calcite-loader", { key: 'e73db3c6f71cddf497cb20e1f59e9f1d8b1ecdd6', class: loadingClass, label: this._translations.fetchingData }), h("div", { key: 'ab1913d90206219978d425a45f312da3e73bcca8', class: "esri-widget feature-node " + featureNodeClass, id: this._featuresNodeId }), h("div", { key: '67242dfb2b219e71a135c88d9d5e2fd40b083226', class: `${editButtonClass} width-100`, slot: "footer" }, this.allowEditing &&
|
188
|
+
h("div", { key: '25ee3d9374a5ce97c4fcd672b1f78315d1294719', class: "display-flex top-border padding-1-2" }, h("calcite-button", { key: '840e3b4ae075fbfd7836f2757128e2cfe9f267e3', appearance: "solid", id: "solutions-edit", onClick: () => this._openEditRecord(), width: "full" }, this._translations.edit), this.isMobile && deleteEnabled ? (h("delete-button", { class: "padding-inline-start-1 width-100", id: "solutions-delete", ids: ids, layer: this._layer, onEditsComplete: () => this._closePopup() })) : undefined, h("calcite-tooltip", { key: '747436c3815e94976c2838777a26185c9cb7ab28', placement: "bottom", "reference-element": "solutions-edit" }, h("span", { key: 'd40dbe85eddaf99acc522f305960ce59c16a8b1f' }, this._translations.edit)), this.isMobile ? (h("calcite-tooltip", { placement: "bottom", "reference-element": "solutions-delete" }, h("span", null, this._translations.delete))) : undefined), this.paginationEnabled && !nextBackDisabled && h("div", { key: '9a1b1e5d7e4432f6b2cd80f77a49f50b1910117f', class: `display-flex padding-1-2 button-container top-border ${nextBackClass}` }, h("div", { key: '9b6fd66023b514ff996107ade3af93415f1353f1' }, h("calcite-button", { key: '823bcbe1a3b592344972e6ef39fd5088ab6197fa', appearance: 'transparent', disabled: nextBackDisabled, iconStart: "chevron-left", id: "solutions-back", onClick: () => this._back(), width: "full" }), h("calcite-tooltip", { key: 'f547487c9eae179e0c65015a24432c936de2ceca', placement: "top", "reference-element": "solutions-back" }, h("span", { key: 'f6f352416103008acc20238efe7e7714fca8d05e' }, this._translations.back))), h("calcite-action", { key: '799e06b8af5df338b920ddc578fa349de469e786', class: 'pagination-action', onClick: () => this._toggleListView(), scale: "s", text: "", textEnabled: true }, h("span", { key: 'adee5b6b5149dbb4c1d6136c1314db89a04e8913', class: "pagination-count" }, this._count)), h("div", { key: '87f181c53ad1806a9831d01b54fdd51434a5a4c2' }, h("calcite-button", { key: 'a4612a6f0d9b6a9412e60022599cba536cd4f623', appearance: "transparent", disabled: nextBackDisabled, iconStart: "chevron-right", id: "solutions-next", onClick: () => this._next(), width: "full" }), h("calcite-tooltip", { key: '613849a34a568fe8df2abe8b1813070cb7a54633', placement: "top", "reference-element": "solutions-next" }, h("span", { key: '35a2e621ce4b3bccb2b859e961db1065d619b2d9' }, this._translations.next))))), h("edit-card", { key: 'a2054fc21fc09dbffc47e1a7617a4b91b29d26fd', class: editClass, graphicIndex: (_j = this._features) === null || _j === void 0 ? void 0 : _j.selectedFeatureIndex, graphics: this.graphics, mapView: this.mapView, open: this._editRecordOpen }), h("calcite-alert", { key: 'ec0fd6540b21987c80fe2035efa96d197c1e6cec', icon: "layer-broken", kind: "warning", label: "", onCalciteAlertClose: () => this._alertClosed(), open: this._alertOpen, placement: "top" }, h("div", { key: '721a363423ec61a9645b003a7d53849137fe1b82', slot: "title" }, this._translations.editDisabled), h("div", { key: '143e9ff06f5363682e8b9e1976fdbfdd1b56f2a9', slot: "message" }, this._translations.enableEditing)))));
|
189
189
|
}
|
190
190
|
//--------------------------------------------------------------------------
|
191
191
|
//
|
@@ -132,7 +132,7 @@ export class JsonEditor {
|
|
132
132
|
* Renders the component.
|
133
133
|
*/
|
134
134
|
render() {
|
135
|
-
return (h(Host, { key: '
|
135
|
+
return (h(Host, { key: '160ba6c2961d67add84b4f23b4aacd2213d064b2' }, h("div", { key: 'bf0a77eed1d206376244526db6a261cce163ca69', id: `${this.instanceid}-editor-container`, class: "editor-container padding-right" }, h("div", { key: '65a0f2f69d4b7f9694a6617755c638d9ad19e168', class: "editor-controls" }, h("div", { key: '3fccc399a3e2a45fe55a374c869a7a7c7533eafc', class: "editor-buttons" }, h("calcite-icon", { key: '5007e48c8ecf9d5a037e062bbb3b5ee3710b18eb', id: `${this.instanceid}-errorFlag`, icon: "exclamation-mark-triangle", title: this._translations.errorFlag, scale: "s", class: "edit-error-flag" }), h("calcite-button", { key: '37f8abf8027e0743e373de473421d06884f61d0b', id: `${this.instanceid}-undo`, color: "blue", appearance: "solid", title: this._translations.undo, onClick: () => this._undo(), scale: "s", class: "edit-button" }, h("calcite-icon", { key: '31c88e27793f4e07ccc20df6d6c88fa0d6661977', icon: "undo", scale: "s" })), h("calcite-button", { key: '56a5945e706a5c66044678f768d567286893c7b1', id: `${this.instanceid}-redo`, color: "blue", appearance: "solid", title: this._translations.redo, onClick: () => this._redo(), scale: "s", class: "edit-button" }, h("calcite-icon", { key: 'b2a2d56e6818ee09be15114fcab357732f9f0c99', icon: "redo", scale: "s" })), h("calcite-button", { key: '63acf48f78d1f9cdcd86c5862e399be2217a16c1', id: `${this.instanceid}-diff`, color: "blue", appearance: "solid", title: this._translations.diff, onClick: () => this._toggleEditor(), scale: "s", class: "edit-button" }, h("calcite-icon", { key: '677f9c42bbb449fb51325a9dd4b60affd8a73cd7', icon: "compare", scale: "s" })), h("calcite-button", { key: '7cf8fac59ad4096ed541bfd1e6454cec70890c72', id: `${this.instanceid}-search`, appearance: "outline", color: "blue", title: this._translations.search, onClick: () => this._search(), scale: "s", class: "edit-button" }, h("calcite-icon", { key: '1e2e4290e7b7254a533a99d85ea2745050b22e55', icon: "search", scale: "s" })), h("calcite-button", { key: 'ec656bcb0a64a6ff6a42760710f8067eae18b9a5', id: `${this.instanceid}-reset`, color: "blue", appearance: "solid", disabled: true, title: this._translations.cancelEdits, onClick: () => this._reset(), scale: "s", class: "edit-button" }, h("calcite-icon", { key: '0210b400f5934c68c45fe61f4bf11d3efca97333', icon: "reset", scale: "s" })))), h("div", { key: 'd14efe742fe79b18a436bf522e33924c2a7e72d5', class: "edit-parent" }, h("div", { key: 'e550bbc5968b71701220a44cba17afa9f5f61c48', id: `${this.instanceid}-container`, class: "json-edit-container" }), h("div", { key: '9778b7229d2f3ec994c8a8d707a7f7b394697823', id: `${this.instanceid}-diff-container`, class: "json-edit-container display-none" })))));
|
136
136
|
}
|
137
137
|
//--------------------------------------------------------------------------
|
138
138
|
//
|
@@ -314,7 +314,7 @@ export class LayerTable {
|
|
314
314
|
const selected = this.selectedIds.length.toString();
|
315
315
|
const tableHeightClass = this.isMobile ? "height-full" : "height-full-adjusted";
|
316
316
|
this._validateActiveActions();
|
317
|
-
return (h(Host, { key: '
|
317
|
+
return (h(Host, { key: 'c0451b25b6253fc017f59f471ced6347a618bdcf' }, h("calcite-shell", { key: 'b71245a1b347aae2e06ccccd750875d9c0571b1b' }, this._getTableControlRow("header"), h("div", { key: 'a4c9e51f2cfa9e90bd1b67e8d542e93896321037', class: `width-full ${tableHeightClass}` }, h("calcite-panel", { key: 'e50e3a4165c02c56f99897fa29f079b2ef1e02ff', class: "height-full width-full" }, h("calcite-loader", { key: 'ad263eb3ac8558d6cd0777f993f663ddd0f7fbe6', class: loadingClass, label: this._translations.fetchingData, scale: "l" }), h("div", { key: '2bcbdf8197b4bcc5102d408538dab17acd803ae9', class: tableNodeClass, ref: this.onTableNodeCreate })), !this.isMobile ? (h("div", { class: "bottom-left text-color height-19" }, this._translations.recordsSelected
|
318
318
|
.replace("{{total}}", total)
|
319
319
|
.replace("{{selected}}", selected))) : undefined)), this._filterModal()));
|
320
320
|
}
|
@@ -51,7 +51,7 @@ export class LayoutManager {
|
|
51
51
|
* Renders the component.
|
52
52
|
*/
|
53
53
|
render() {
|
54
|
-
return (h(Host, { key: '
|
54
|
+
return (h(Host, { key: '10b8c1f7ee9503c4bd7cb1bbbd8b58cb5009336f' }, h("div", { key: '39ae898c19e24746bfa5f7510006e368f37fe7d5', class: "display-flex" }, h("div", { key: '0080f9562ab26665e26a8447e4484d76e4861f9f', class: "display-flex action-center" }, h("calcite-icon", { key: 'cc941eede331c518fe0944e2bf4b46b0c9799f0c', class: "icon icon-color", icon: "information", id: "app-information-icon", scale: "s" }), h("calcite-popover", { key: 'd92ccbe95f58f15964fd8b5d0d1446216ef780a7', closable: true, label: "", referenceElement: "app-information-icon" }, h("span", { key: '37d306563b80589652c25809233063c60035397b', class: "tooltip-message" }, this._translations.appInfo))), h("div", { key: 'e33a33071990cd0edb32e1c76505ddcc834ae932', class: "header-text" }, this._translations.layout), this._getAction("grid-background", ELayoutMode.GRID, this._translations.grid), this._getAction("vertical-background", ELayoutMode.VERTICAL, this._translations.vertical), this._getAction("horizontal-background", ELayoutMode.HORIZONTAL, this._translations.horizontal))));
|
55
55
|
}
|
56
56
|
//--------------------------------------------------------------------------
|
57
57
|
//
|
@@ -56,7 +56,7 @@ export class ListFlowItem {
|
|
56
56
|
//
|
57
57
|
//--------------------------------------------------------------------------
|
58
58
|
render() {
|
59
|
-
return (h(Host, { key: '
|
59
|
+
return (h(Host, { key: '6691ddbcebb6a78570c1a7d1317aadcccf51c6e3' }, h("slot", { key: 'bca9498b533fa13dfc5d85b690a0cc0d80fef1b8' })));
|
60
60
|
}
|
61
61
|
static get is() { return "list-flow-item"; }
|
62
62
|
static get encapsulation() { return "shadow"; }
|
@@ -56,7 +56,7 @@ export class LocationFlowItem {
|
|
56
56
|
//
|
57
57
|
//--------------------------------------------------------------------------
|
58
58
|
render() {
|
59
|
-
return (h(Host, { key: '
|
59
|
+
return (h(Host, { key: '4338ca2001ca75d9994cc468c3d4216724e18a36' }, h("slot", { key: 'fc9dbfade945c848e3b3c259250d7a1c02f7431d' })));
|
60
60
|
}
|
61
61
|
static get is() { return "location-flow-item"; }
|
62
62
|
static get encapsulation() { return "shadow"; }
|
@@ -99,7 +99,7 @@ export class MapCard {
|
|
99
99
|
const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
|
100
100
|
const mapPickerClass = ((_a = this.mapInfos) === null || _a === void 0 ? void 0 : _a.length) > 1 ? "" : "display-none";
|
101
101
|
const mapHeightClass = ((_b = this.mapInfos) === null || _b === void 0 ? void 0 : _b.length) > 1 ? "map-height" : "height-full";
|
102
|
-
return (h(Host, { key: '
|
102
|
+
return (h(Host, { key: '4f5c0cd408f92856ceb2ba281a02856064ef6a5a' }, h("map-picker", { key: 'f69742384dc5ba13bbf257592cc8c35de77590f0', class: mapPickerClass, mapInfos: this.mapInfos, ref: (el) => this._mapPicker = el }), h("div", { key: '3ddddf3f674d49ae59fe627af1c67ec59718c9a3', class: `${mapHeightClass} ${mapClass}`, ref: (el) => (this._mapDiv = el) }), h("map-tools", { key: '6cb9518e74af0594ab6b657f0caec3598c250cb2', basemapConfig: this.basemapConfig, class: `box-shadow ${themeClass}`, enableBasemap: this.enableBasemap, enableFloorFilter: this.enableFloorFilter, enableFullscreen: this.enableFullscreen, enableHome: this.enableHome, enableLegend: this.enableLegend, enableSearch: this.enableSearch, enableSingleExpand: this.enableSingleExpand, homeZoomToolsSize: this.homeZoomToolsSize, mapView: this.mapView, mapWidgetsSize: this.mapWidgetsSize, position: this.mapWidgetsPosition, ref: (el) => this._mapTools = el, searchConfiguration: this._searchConfiguration, stackTools: this.stackTools, toolOrder: this.toolOrder })));
|
103
103
|
}
|
104
104
|
//--------------------------------------------------------------------------
|
105
105
|
//
|
@@ -121,7 +121,7 @@ export class MapDrawTools {
|
|
121
121
|
"border" : "border esri-widget esri-sketch__panel";
|
122
122
|
const undoRedoClass = this.drawMode === EDrawMode.SKETCH ?
|
123
123
|
"display-none" : "esri-widget esri-sketch__panel border-left esri-sketch__section";
|
124
|
-
return (h(Host, { key: '
|
124
|
+
return (h(Host, { key: '1f9544ac97df4b51337260e1bb7cf3b5d923fa03' }, h("div", { key: 'eca20834d2eacf3cc4a30e6ecf15a2f8d894cb8f', class: containerClass }, h("div", { key: '32bbaf5a03251c035821880231acb894a452b8dd', ref: (el) => { this._sketchElement = el; } }), h("div", { key: 'cd446419c2b7d347711a48851baec46f24d20375', class: undoRedoClass }, h("calcite-action", { key: '03ce63c7805c1cc1b63e78336ba624199eef3336', disabled: !this.undoEnabled, icon: "undo", onClick: () => this._undo(), scale: "s", text: this._translations.undo }), h("calcite-action", { key: '0d688389277586163c589561865ab7778021ac10', disabled: !this.redoEnabled, icon: "redo", onClick: () => this._redo(), scale: "s", text: this._translations.redo })))));
|
125
125
|
}
|
126
126
|
//--------------------------------------------------------------------------
|
127
127
|
//
|
@@ -55,7 +55,7 @@ export class MapFullscreen {
|
|
55
55
|
* Renders the component.
|
56
56
|
*/
|
57
57
|
render() {
|
58
|
-
return (h(Host, { key: '
|
58
|
+
return (h(Host, { key: '943217d26f3cf5861c165c3300ba24736ce8f7dc' }, h("div", { key: '6c76ebf6e63dab19f24d776cd27cd86b74ea93d0', class: "fullscreen-widget", ref: (el) => { this._fullscreenElement = el; } })));
|
59
59
|
}
|
60
60
|
/**
|
61
61
|
* StencilJS: Called just after the component updates.
|
@@ -97,7 +97,7 @@ export class MapLayerPicker {
|
|
97
97
|
const id = "map-layer-picker";
|
98
98
|
let style = this.height > 0 ? { "height": `${this.height.toString()}px` } : {};
|
99
99
|
style = Object.assign(Object.assign({}, style), { "display": this.display });
|
100
|
-
return (h(Host, { key: '
|
100
|
+
return (h(Host, { key: 'a96e93924530d926c5e10dd2f7212f3f8c1cbe3c' }, h("div", { key: '4b96a73e43e86c31291e4ac60eb15976b01de6a2', class: "map-layer-picker-container", style: style }, h("div", { key: 'e75c61d8ce0853814dd3903b9e1952cc613b6fbb', class: "map-layer-picker", style: style }, !this._hasValidLayers ? this._getInvalidPlaceholder() :
|
101
101
|
!this._hasMultipleLayers && this.showSingleLayerAsLabel ? this._getSingleLayerPlaceholder() :
|
102
102
|
this.type === "combobox" ? this._getCombobox(id) :
|
103
103
|
this.type === "select" ? this._getSelect(id) : this._getDropdown(id)))));
|