@esri/solutions-components 0.11.31 → 0.11.33
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/{asyncToGenerator-c7fc3ee4.js → asyncToGenerator-ccb3278b.js} +1 -1
- package/dist/cjs/basemap-gallery_7.cjs.entry.js +14 -9
- package/dist/cjs/buffer-tools_2.cjs.entry.js +1 -1
- package/dist/cjs/card-manager_3.cjs.entry.js +91 -14
- package/dist/cjs/consent-manager.cjs.entry.js +3 -3
- package/dist/cjs/create-feature_4.cjs.entry.js +11 -12
- package/dist/cjs/create-related-feature_3.cjs.entry.js +1 -1
- package/dist/cjs/crowdsource-manager.cjs.entry.js +1 -1
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +9 -2
- package/dist/cjs/delete-dialog.cjs.entry.js +1 -1
- package/dist/cjs/{downloadUtils-c7dac47d.js → downloadUtils-fefa863b.js} +3 -3
- package/dist/cjs/feature-list.cjs.entry.js +4 -4
- package/dist/cjs/{index.es-3c2404c3.js → index.es-0441a948.js} +2 -2
- package/dist/cjs/json-editor_7.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/map-layer-picker.cjs.entry.js +1 -1
- package/dist/cjs/map-select-tools_3.cjs.entry.js +3 -3
- package/dist/cjs/{popupUtils-27f6cf2a.js → popupUtils-a68a20db.js} +2 -2
- package/dist/cjs/public-notification.cjs.entry.js +3 -3
- package/dist/cjs/solution-configuration.cjs.entry.js +1 -1
- package/dist/cjs/solution-contents_3.cjs.entry.js +1 -1
- package/dist/cjs/solution-item-accordion.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/basemap-gallery/basemap-gallery.js +13 -8
- package/dist/collection/components/card-manager/card-manager.js +2 -2
- package/dist/collection/components/create-feature/create-feature.js +4 -23
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +10 -1
- package/dist/collection/components/edit-card/edit-card.js +1 -1
- package/dist/collection/components/info-card/info-card.js +2 -2
- package/dist/collection/components/layer-table/layer-table.js +86 -9
- package/dist/components/basemap-gallery2.js +13 -8
- package/dist/components/card-manager2.js +2 -2
- package/dist/components/create-feature2.js +4 -6
- package/dist/components/crowdsource-reporter.js +9 -1
- package/dist/components/edit-card2.js +1 -1
- package/dist/components/info-card2.js +2 -2
- package/dist/components/layer-table2.js +87 -10
- package/dist/esm/{asyncToGenerator-96b2368d.js → asyncToGenerator-48cd21fe.js} +1 -1
- package/dist/esm/basemap-gallery_7.entry.js +14 -9
- package/dist/esm/buffer-tools_2.entry.js +1 -1
- package/dist/esm/card-manager_3.entry.js +91 -14
- package/dist/esm/consent-manager.entry.js +3 -3
- package/dist/esm/create-feature_4.entry.js +11 -12
- package/dist/esm/create-related-feature_3.entry.js +1 -1
- package/dist/esm/crowdsource-manager.entry.js +1 -1
- package/dist/esm/crowdsource-reporter.entry.js +9 -2
- package/dist/esm/delete-dialog.entry.js +1 -1
- package/dist/esm/{downloadUtils-a9fc6dd2.js → downloadUtils-7ef5420f.js} +3 -3
- package/dist/esm/feature-list.entry.js +4 -4
- package/dist/esm/{index.es-87662946.js → index.es-c379ea10.js} +2 -2
- package/dist/esm/json-editor_7.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/map-layer-picker.entry.js +1 -1
- package/dist/esm/map-select-tools_3.entry.js +3 -3
- package/dist/esm/{popupUtils-78f2029e.js → popupUtils-ef89df87.js} +2 -2
- package/dist/esm/public-notification.entry.js +3 -3
- package/dist/esm/solution-configuration.entry.js +1 -1
- package/dist/esm/solution-contents_3.entry.js +1 -1
- package/dist/esm/solution-item-accordion.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-035a1d38.entry.js +6 -0
- package/dist/solutions-components/p-11ad8edc.entry.js +6 -0
- package/dist/solutions-components/{p-f6d19f6d.entry.js → p-1325fa9e.entry.js} +1 -1
- package/dist/solutions-components/{p-60b1fe27.entry.js → p-2be59c38.entry.js} +1 -1
- package/dist/solutions-components/{p-455c19fa.js → p-4379cc5f.js} +2 -2
- package/dist/solutions-components/{p-0a60707c.entry.js → p-5096280f.entry.js} +1 -1
- package/dist/solutions-components/p-51033697.entry.js +6 -0
- package/dist/solutions-components/p-51e04c86.js +21 -0
- package/dist/solutions-components/p-605597cf.entry.js +6 -0
- package/dist/solutions-components/{p-d65f8b73.js → p-62a0aa8e.js} +1 -1
- package/dist/solutions-components/{p-a38eee28.entry.js → p-681a41f3.entry.js} +1 -1
- package/dist/solutions-components/{p-dc188d13.js → p-6d1ee086.js} +1 -1
- package/dist/solutions-components/{p-50b4945e.entry.js → p-7eec82e3.entry.js} +1 -1
- package/dist/solutions-components/{p-5b481f0d.entry.js → p-8b05b49c.entry.js} +1 -1
- package/dist/solutions-components/{p-6dc629dc.entry.js → p-93ebcb9b.entry.js} +1 -1
- package/dist/solutions-components/{p-b04179db.entry.js → p-b1f11c67.entry.js} +1 -1
- package/dist/solutions-components/{p-1aad0b63.entry.js → p-b3b5dca4.entry.js} +1 -1
- package/dist/solutions-components/{p-b8e4345e.entry.js → p-c45ba7dd.entry.js} +1 -1
- package/dist/solutions-components/{p-4a2870b0.entry.js → p-de3ba7be.entry.js} +1 -1
- package/dist/solutions-components/{p-7f36cfb0.entry.js → p-debeb4dc.entry.js} +1 -1
- package/dist/solutions-components/{p-f8854c5e.entry.js → p-e68f5f54.entry.js} +1 -1
- package/dist/solutions-components/{p-f3ba92d5.entry.js → p-f2cfed3a.entry.js} +1 -1
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components_commit.txt +6 -6
- package/dist/types/components/create-feature/create-feature.d.ts +0 -4
- package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +4 -0
- package/dist/types/components/layer-table/layer-table.d.ts +34 -0
- package/dist/types/components.d.ts +0 -8
- package/package.json +1 -1
- package/dist/solutions-components/p-03f8bcc3.entry.js +0 -6
- package/dist/solutions-components/p-31159fc6.js +0 -21
- package/dist/solutions-components/p-76126e43.entry.js +0 -6
- package/dist/solutions-components/p-a4282d56.entry.js +0 -6
- package/dist/solutions-components/p-f899ecdb.entry.js +0 -6
- /package/dist/cjs/{locale-809dbc6e.js → locale-81070bd9.js} +0 -0
- /package/dist/cjs/{typeof-2a7e2dec.js → typeof-920a4426.js} +0 -0
- /package/dist/esm/{locale-fa8258bf.js → locale-4be8e04f.js} +0 -0
- /package/dist/esm/{typeof-ef2a007d.js → typeof-2511410e.js} +0 -0
- /package/dist/solutions-components/{p-57be3b9d.js → p-8a74a780.js} +0 -0
- /package/dist/solutions-components/{p-4fe489cf.js → p-af7e43e0.js} +0 -0
@@ -35,7 +35,6 @@ export class CreateFeature {
|
|
35
35
|
this.searchConfiguration = undefined;
|
36
36
|
this.selectedLayerId = undefined;
|
37
37
|
this.showGuidingMsg = true;
|
38
|
-
this.showGuidingMsgWhileDrawing = true;
|
39
38
|
this.submitNewReportsMessage = undefined;
|
40
39
|
this._currentPage = "templatePicker";
|
41
40
|
this._editorLoading = false;
|
@@ -291,8 +290,8 @@ export class CreateFeature {
|
|
291
290
|
const loaderClass = this._editorLoading ? "" : "display-none";
|
292
291
|
const featureFormClass = this._editorLoading ? "display-none" : "";
|
293
292
|
const mobileMapClass = this.isMobile ? "show-map" : "display-none";
|
294
|
-
// hide guiding msg for
|
295
|
-
const showGuidingMsg = this.showGuidingMsg && (this.
|
293
|
+
// hide guiding msg for template picker page
|
294
|
+
const showGuidingMsg = this.showGuidingMsg && (this._currentPage !== "templatePicker");
|
296
295
|
let guidingMsg = this._translations.chooseCategoryMsg;
|
297
296
|
if (this._currentPage === 'drawing') {
|
298
297
|
guidingMsg = this._translations.provideLocationMsg;
|
@@ -300,8 +299,8 @@ export class CreateFeature {
|
|
300
299
|
else if (this._currentPage === 'featureForm') {
|
301
300
|
guidingMsg = this._translations.provideDetailsMsg;
|
302
301
|
}
|
303
|
-
return (h(Fragment, { key: '
|
304
|
-
h("div", { key: '
|
302
|
+
return (h(Fragment, { key: '3a448bdb1ffdef55993b20f99b3f1bd1643b6e2f' }, showGuidingMsg && h("calcite-notice", { key: '5a9f000003d75c93ff613f1a4ddba14711653173', class: "notice-msg", icon: "lightbulb", kind: "success", open: true, ref: el => this._calciteNotice = el }, h("div", { key: '751a2c932838a798b102e14340cba2103abdf971', slot: "message" }, guidingMsg)), h("calcite-loader", { key: 'e6ae257cd070bc9d7ea55c725ecf95d096effbc0', class: loaderClass, label: "", scale: "s" }), h("div", { key: 'c25373774f6b87f7a6db4febd62a25b870d9be79', class: featureFormClass, id: "feature-form" }), this.enableSearch &&
|
303
|
+
h("div", { key: '3deb4ffc1f8a633d92e3c27f64247a6f21c58e56', class: `search-widget ${showSearchWidget} ${featureFormClass}`, id: "search-widget-ref", ref: el => this._searchDiv = el }), h("div", { key: 'c72a6826cddbac45675a788e941a6cabd320740a', class: `${mobileMapClass}`, ref: (el) => { this._mapViewContainer = el; } })));
|
305
304
|
}
|
306
305
|
//--------------------------------------------------------------------------
|
307
306
|
//
|
@@ -921,24 +920,6 @@ export class CreateFeature {
|
|
921
920
|
"reflect": false,
|
922
921
|
"defaultValue": "true"
|
923
922
|
},
|
924
|
-
"showGuidingMsgWhileDrawing": {
|
925
|
-
"type": "boolean",
|
926
|
-
"mutable": false,
|
927
|
-
"complexType": {
|
928
|
-
"original": "boolean",
|
929
|
-
"resolved": "boolean",
|
930
|
-
"references": {}
|
931
|
-
},
|
932
|
-
"required": false,
|
933
|
-
"optional": true,
|
934
|
-
"docs": {
|
935
|
-
"tags": [],
|
936
|
-
"text": "boolean: When false the notice message at drawing page will be hidden"
|
937
|
-
},
|
938
|
-
"attribute": "show-guiding-msg-while-drawing",
|
939
|
-
"reflect": false,
|
940
|
-
"defaultValue": "true"
|
941
|
-
},
|
942
923
|
"submitNewReportsMessage": {
|
943
924
|
"type": "string",
|
944
925
|
"mutable": false,
|
@@ -305,6 +305,12 @@ export class CrowdsourceReporter {
|
|
305
305
|
this.refreshLists();
|
306
306
|
}
|
307
307
|
}
|
308
|
+
/**
|
309
|
+
* Update sorting options when the sortOption prop is changed
|
310
|
+
*/
|
311
|
+
async sortOptionWatchHandler() {
|
312
|
+
this.updateSortingOptions();
|
313
|
+
}
|
308
314
|
/**
|
309
315
|
* Called each time the filterByMapExtent prop is changed
|
310
316
|
*/
|
@@ -391,7 +397,7 @@ export class CrowdsourceReporter {
|
|
391
397
|
*/
|
392
398
|
render() {
|
393
399
|
const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
|
394
|
-
return (h(Host, { key: '
|
400
|
+
return (h(Host, { key: '67b22ff121842ed855d42c6e95f506da7a27fc03' }, this._reportSubmitted && h("calcite-alert", { key: 'a4687bb0a46e215f830418c934156adc1ca22d28', "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: '75c7f06e0c997cff02f2d03cf165a0d96556a99e', slot: "message" }, this.reportSubmittedMessage ? this.reportSubmittedMessage : this._translations.submitMsg)), this._featureCreationFailedErrorMsg && h("calcite-alert", { key: 'db289e06eeff7d79511b0f2d94681931347b40ed', "auto-close": true, class: themeClass, icon: "x-octagon", kind: "danger", label: "", onCalciteAlertClose: () => { this._featureCreationFailedErrorMsg = ""; }, open: true, placement: "top" }, h("div", { key: '9f8c4ef83cafb13d17fd1051d308e59e00c277d5', slot: "title" }, this._translations.error), h("div", { key: 'c18221f220f9b1d28b296a9bab89b838f0884323', slot: "message" }, this._featureCreationFailedErrorMsg)), this._commentSubmitted && h("calcite-alert", { key: '086aff48b20dbabcddb68fca5b57d7a14101c8d0', "auto-close": true, class: 'report-submitted ' + themeClass, icon: "check-circle", kind: "success", label: "", onCalciteAlertClose: () => { this._commentSubmitted = false; }, open: true, placement: "top" }, h("div", { key: '02125cd052ba81cc1fce0ac65ab517ae0eb46d13', slot: "message" }, this.commentSubmittedMessage || this._translations.commentSubmittedMsg)), this._addingCommentFailed && h("calcite-alert", { key: 'c1e0966dde08f7f22f54cdadfc85f3024616fc77', "auto-close": true, class: themeClass, icon: "x-octagon", kind: "danger", label: "", onCalciteAlertClose: () => { this._addingCommentFailed = false; }, open: true, placement: "top" }, h("div", { key: '0dd5af761fef31a4b85bfa0f66dff82e04b1cced', slot: "title" }, this._translations.error), h("div", { key: 'e8b8667855147b417cfc43d19e0c0a04f8870bfd', slot: "message" }, this._translations.addingCommentFailedMsg)), h("div", { key: '10c4c2d1673d63a8ced357312d57acf7faa46f0a' }, h("calcite-shell", { key: '8262117bc32e033f25f2864f4c5aa8a1bdde85ff', "content-behind": true }, this._getReporter())), this.isMobile && this.filterModal()));
|
395
401
|
}
|
396
402
|
//--------------------------------------------------------------------------
|
397
403
|
//
|
@@ -2240,6 +2246,9 @@ export class CrowdsourceReporter {
|
|
2240
2246
|
}, {
|
2241
2247
|
"propName": "showMyReportsOnly",
|
2242
2248
|
"methodName": "showMyReportsOnlyWatchHandler"
|
2249
|
+
}, {
|
2250
|
+
"propName": "sortOption",
|
2251
|
+
"methodName": "sortOptionWatchHandler"
|
2243
2252
|
}, {
|
2244
2253
|
"propName": "filterByMapExtent",
|
2245
2254
|
"methodName": "filterByMapExtentChangeWatchHandler"
|
@@ -215,7 +215,7 @@ export class EditCard {
|
|
215
215
|
!this.graphics[0].layer.editingEnabled : true;
|
216
216
|
const tableNodeClass = this._editorLoading ? "display-none" : "position-absolute";
|
217
217
|
const loadingClass = this._editorLoading ? "" : "display-none";
|
218
|
-
return (h(Host, { key: '
|
218
|
+
return (h(Host, { key: '5d0380d4dbd7412c90e6e3b9aa28b580bf5a6ac4' }, h("div", { key: '29825ee6c26acce86fcb6678d3e3db957358e314', 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: '35fc876d6857fb72c8808cff311e894dd9890afe', class: "position-absolute" }, h("div", { key: 'c95f3453d5fc4dac7ba5f1e7db69490405861059', class: tableNodeClass, id: "feature-form", ref: (el) => this._editContainer = el }), h("calcite-loader", { key: '211fd81ec4b13a731a895c882fafcb438fbf235c', class: loadingClass, label: "", scale: "s" })))));
|
219
219
|
}
|
220
220
|
//--------------------------------------------------------------------------
|
221
221
|
//
|
@@ -230,6 +230,18 @@ export class LayerTable {
|
|
230
230
|
* boolean: When true we will not evaluate if the editor has any pending edits
|
231
231
|
*/
|
232
232
|
_skipEditCheck = false;
|
233
|
+
/**
|
234
|
+
* __esri.Handle: highlight handle for the current feature
|
235
|
+
*/
|
236
|
+
_currentFeatureHighlightHandle;
|
237
|
+
/**
|
238
|
+
* __esri.Handle: highlight handle for the default features
|
239
|
+
*/
|
240
|
+
_defaultFeaturesHandle;
|
241
|
+
/**
|
242
|
+
* __esri.Handle: highlight handle for temporary / hovered feature
|
243
|
+
*/
|
244
|
+
_temporaryFeatureHandle;
|
233
245
|
/**
|
234
246
|
* __esri.Handle: handle for the filter by extent
|
235
247
|
*/
|
@@ -246,6 +258,10 @@ export class LayerTable {
|
|
246
258
|
* boolean: When true allow table to update the records
|
247
259
|
*/
|
248
260
|
_shouldUpdateTableOnExtentChange = true;
|
261
|
+
/**
|
262
|
+
* any: layer view of the selected layer
|
263
|
+
*/
|
264
|
+
_selectedLayerView;
|
249
265
|
//--------------------------------------------------------------------------
|
250
266
|
//
|
251
267
|
// Watch handlers
|
@@ -345,6 +361,19 @@ export class LayerTable {
|
|
345
361
|
if (this.mapView) {
|
346
362
|
this._floorExpression = undefined;
|
347
363
|
this._searchExpression = undefined;
|
364
|
+
// highlight group for selections
|
365
|
+
this.mapView.highlights = [
|
366
|
+
{
|
367
|
+
name: "default",
|
368
|
+
color: "#00FFFF"
|
369
|
+
}, {
|
370
|
+
name: "current-selection",
|
371
|
+
color: "#ff00ff"
|
372
|
+
}, {
|
373
|
+
name: "temporary",
|
374
|
+
color: "#FFFF00"
|
375
|
+
}
|
376
|
+
];
|
348
377
|
this._updateShareUrl();
|
349
378
|
this._mapClickHandle = this.reactiveUtils.on(() => this.mapView, "click", (event) => {
|
350
379
|
void this._mapClicked(event);
|
@@ -507,6 +536,7 @@ export class LayerTable {
|
|
507
536
|
table.rowHighlightIds.removeAll();
|
508
537
|
}
|
509
538
|
table.rowHighlightIds.add(oid);
|
539
|
+
this._highlightFeatures(oid);
|
510
540
|
if (this.zoomAndScrollToSelected) {
|
511
541
|
const i = this._table.viewModel.getObjectIdIndex(oid);
|
512
542
|
this._table.scrollToIndex(i);
|
@@ -625,8 +655,8 @@ export class LayerTable {
|
|
625
655
|
const tableHeightClass = this.isMobile ? "height-full" : "height-full-adjusted";
|
626
656
|
const showSearch = this._canShowFullTextSearch();
|
627
657
|
this._validateActiveActions();
|
628
|
-
return (h(Host, { key: '
|
629
|
-
h("div", { key: '
|
658
|
+
return (h(Host, { key: '2d4fa2f8d4cce83ef1f972444cac99ab17ccf09a' }, h("div", { key: 'b53e3d454a7c2c1886bfd61e960ca7aa27bf5761' }, h("calcite-scrim", { key: '9a0e507b26707b8010f4d0ac3acd5a1eb8820780', class: scrimClass, loading: this._queryingData }), h("calcite-shell", { key: '1f1815e38773a834b7c1f6bdb783717477331522' }, this._getTableControlRow("header"), h("div", { key: 'fd2b3ca04bbb6b5ed9c2e044722079704b1c778e', class: `width-full ${tableHeightClass}` }, h("calcite-panel", { key: '0355028dce084ac034fe4b5ea8f7a0b1fec18b83', class: "height-full width-full" }, showSearch &&
|
659
|
+
h("div", { key: '3169fdf7d876b504c6ee1d11a0b41a55815cbc87', class: "search-container border-bottom" }, h("calcite-input", { key: '116960c2b95658c23c2ed2ee4b5282af0fa44f27', class: "search", clearable: true, icon: "search", onCalciteInputChange: (evt) => void this._searchTextChanged(evt), placeholder: this._searchPlaceHolder, title: this._searchPlaceHolder, type: "search" })), h("calcite-loader", { key: '83fdb600a68786dc0dd0dbbcfee1bc59bd311763', class: loadingClass, label: this._translations.fetchingData, scale: "l" }), h("div", { key: '4983053113d687a459f7749bfe7723964551c3df', class: tableNodeClass, ref: this.onTableNodeCreate }))), !this.isMobile ? (h("div", { class: "bottom-left text-color height-19", id: "solutions-selected-count-div" }, this._translations.recordsSelected
|
630
660
|
.replace("{{total}}", total)
|
631
661
|
.replace("{{selected}}", selected))) : undefined), this.createFilterModal && this._filterModal())));
|
632
662
|
}
|
@@ -1338,7 +1368,7 @@ export class LayerTable {
|
|
1338
1368
|
view: this.mapView,
|
1339
1369
|
columnReorderingEnabled: this.enableColumnReorder,
|
1340
1370
|
editingEnabled: this._editEnabled && this.enableInlineEdit,
|
1341
|
-
highlightEnabled:
|
1371
|
+
highlightEnabled: false,
|
1342
1372
|
multiSortEnabled: false,
|
1343
1373
|
attachmentsEnabled: true,
|
1344
1374
|
visibleElements: {
|
@@ -1358,6 +1388,9 @@ export class LayerTable {
|
|
1358
1388
|
void this._handleOnChange(evt);
|
1359
1389
|
});
|
1360
1390
|
this._table.viewModel.addHandles(changeHandle);
|
1391
|
+
this._table.on('cell-pointerover', this.tempHighlightOnHover.bind(this));
|
1392
|
+
this._table.on('cell-pointerout', this._removeTempHighlight.bind(this));
|
1393
|
+
this._tableNode.addEventListener("mouseleave", this._removeTempHighlight.bind(this));
|
1361
1394
|
//Add handle to watch size of the table and update the state to reflect the total count
|
1362
1395
|
const handle = this.reactiveUtils.watch(() => this._table.size, (size) => {
|
1363
1396
|
this._size = size;
|
@@ -1376,6 +1409,7 @@ export class LayerTable {
|
|
1376
1409
|
this._tempSelectedIds = [...this.selectedIds];
|
1377
1410
|
this._finishOnChange();
|
1378
1411
|
this._selectionFromMap = false;
|
1412
|
+
this._highlightFeatures(this.selectedIds[0]);
|
1379
1413
|
}
|
1380
1414
|
/**
|
1381
1415
|
* Validate if the editor has any pending edits
|
@@ -1438,6 +1472,47 @@ export class LayerTable {
|
|
1438
1472
|
}
|
1439
1473
|
this.featureSelectionChange.emit(this.selectedIds);
|
1440
1474
|
}
|
1475
|
+
/**
|
1476
|
+
* Highlight feature when hovered over table row
|
1477
|
+
* @param e The Feature table pointer over event
|
1478
|
+
*/
|
1479
|
+
tempHighlightOnHover(e) {
|
1480
|
+
this._removeTempHighlight();
|
1481
|
+
const temporaryFeature = e.feature;
|
1482
|
+
this._temporaryFeatureHandle = this._selectedLayerView.highlight([temporaryFeature], { name: "temporary" });
|
1483
|
+
}
|
1484
|
+
/**
|
1485
|
+
* Clears the temporary highlight
|
1486
|
+
*/
|
1487
|
+
_removeTempHighlight() {
|
1488
|
+
if (this._temporaryFeatureHandle) {
|
1489
|
+
this._temporaryFeatureHandle.remove();
|
1490
|
+
}
|
1491
|
+
}
|
1492
|
+
/**
|
1493
|
+
* Highlights the current and secondary features on map
|
1494
|
+
* @param currentFeatureId selected current feature id
|
1495
|
+
*/
|
1496
|
+
_highlightFeatures(currentFeatureId) {
|
1497
|
+
this._clearHighlights();
|
1498
|
+
this._currentFeatureHighlightHandle = this._selectedLayerView.highlight([currentFeatureId], { name: "current-selection" });
|
1499
|
+
if (this.selectedIds.length > 1) {
|
1500
|
+
const secondaryFeatures = this.selectedIds.filter((id) => id !== currentFeatureId);
|
1501
|
+
this._defaultFeaturesHandle = this._selectedLayerView.highlight(secondaryFeatures, { name: "default" });
|
1502
|
+
}
|
1503
|
+
}
|
1504
|
+
/**
|
1505
|
+
* Clears the highlights
|
1506
|
+
*/
|
1507
|
+
_clearHighlights() {
|
1508
|
+
this._removeTempHighlight();
|
1509
|
+
if (this._currentFeatureHighlightHandle) {
|
1510
|
+
this._currentFeatureHighlightHandle.remove();
|
1511
|
+
}
|
1512
|
+
if (this._defaultFeaturesHandle) {
|
1513
|
+
this._defaultFeaturesHandle.remove();
|
1514
|
+
}
|
1515
|
+
}
|
1441
1516
|
/**
|
1442
1517
|
* Reset the tables column templates when we get new column config
|
1443
1518
|
*/
|
@@ -1736,7 +1811,10 @@ export class LayerTable {
|
|
1736
1811
|
this._outOFExtentOids = [...this._outOFExtentOids, ...outOids];
|
1737
1812
|
}
|
1738
1813
|
if (restoreOids.length > 0) {
|
1739
|
-
this
|
1814
|
+
// Merge this two array and then highlight the feature to maintain the current feature selection while restoring highlighted features
|
1815
|
+
this.selectedIds = [...new Set([...this.selectedIds, ...restoreOids])];
|
1816
|
+
this._table.highlightIds.removeAll();
|
1817
|
+
this._table.highlightIds.addMany(this.selectedIds.reverse());
|
1740
1818
|
this._outOFExtentOids = this._outOFExtentOids.filter(oid => !restoreOids.includes(oid));
|
1741
1819
|
}
|
1742
1820
|
}
|
@@ -1834,6 +1912,7 @@ export class LayerTable {
|
|
1834
1912
|
this._table.viewModel.hideAttachmentsView();
|
1835
1913
|
}
|
1836
1914
|
this._table?.highlightIds.removeAll();
|
1915
|
+
this._clearHighlights();
|
1837
1916
|
this._table?.rowHighlightIds.removeAll();
|
1838
1917
|
this._finishOnChange();
|
1839
1918
|
}
|
@@ -1944,8 +2023,7 @@ export class LayerTable {
|
|
1944
2023
|
*/
|
1945
2024
|
async _zoom() {
|
1946
2025
|
if (this._layer) {
|
1947
|
-
|
1948
|
-
await goToSelection(this.selectedIds, selectedLayerView, this.mapView, true, undefined, this.zoomToScale);
|
2026
|
+
await goToSelection(this.selectedIds, this._selectedLayerView, this.mapView, true, undefined, this.zoomToScale);
|
1949
2027
|
}
|
1950
2028
|
}
|
1951
2029
|
/**
|
@@ -1961,7 +2039,8 @@ export class LayerTable {
|
|
1961
2039
|
if (id !== this._layer?.id || this._featuresEmpty()) {
|
1962
2040
|
this._fetchingData = true;
|
1963
2041
|
const layer = await getLayerOrTable(this.mapView, id);
|
1964
|
-
layer && await layer.when(() => {
|
2042
|
+
layer && await layer.when(async () => {
|
2043
|
+
this._selectedLayerView = await getFeatureLayerView(this.mapView, layer.id);
|
1965
2044
|
if (this._table && this._table?.viewModel?.attachmentsViewOptions?.objectId) {
|
1966
2045
|
this._table.viewModel.hideAttachmentsView();
|
1967
2046
|
}
|
@@ -2000,8 +2079,6 @@ export class LayerTable {
|
|
2000
2079
|
if (fieldInfos) {
|
2001
2080
|
columnTemplates = fieldInfos.reduce((prev, cur) => {
|
2002
2081
|
const template = {
|
2003
|
-
icon: "information",
|
2004
|
-
iconText: cur.description,
|
2005
2082
|
type: "field",
|
2006
2083
|
fieldName: cur.name,
|
2007
2084
|
label: cur.alias,
|
@@ -124,9 +124,6 @@ const BasemapGallery = /*@__PURE__*/ proxyCustomElement(class BasemapGallery ext
|
|
124
124
|
*/
|
125
125
|
async _initBaseMapGallery(view) {
|
126
126
|
if (this.BasemapGallery) {
|
127
|
-
if (this.basemapWidget) {
|
128
|
-
this.basemapWidget.destroy();
|
129
|
-
}
|
130
127
|
const source = new this.PortalBasemapsSource({
|
131
128
|
query: this.basemapConfig?.basemapGroupId ? `id:${this.basemapConfig.basemapGroupId}` : null,
|
132
129
|
filterFunction: this.basemapConfig ? (basemap) => {
|
@@ -134,11 +131,19 @@ const BasemapGallery = /*@__PURE__*/ proxyCustomElement(class BasemapGallery ext
|
|
134
131
|
} : () => true
|
135
132
|
});
|
136
133
|
await source.refresh();
|
137
|
-
this
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
134
|
+
// Don't destroy and re-create this widget as it leads to a duplication
|
135
|
+
// of the basemaps listed
|
136
|
+
if (!this.basemapWidget) {
|
137
|
+
this.basemapWidget = new this.BasemapGallery({
|
138
|
+
container: this._basemapElement,
|
139
|
+
view,
|
140
|
+
source
|
141
|
+
});
|
142
|
+
}
|
143
|
+
else {
|
144
|
+
this.basemapWidget.view = view;
|
145
|
+
this.basemapWidget.source = source;
|
146
|
+
}
|
142
147
|
}
|
143
148
|
}
|
144
149
|
static get watchers() { return {
|
@@ -144,7 +144,7 @@ const CardManager = /*@__PURE__*/ proxyCustomElement(class CardManager extends H
|
|
144
144
|
const heading = isTable ? this._translations.createRecord : this._translations.createFeature;
|
145
145
|
const guideMsg = this.customInfoText ? this.customInfoText : this.selectingFeatureFromMap ? this._translations.selectFeaturesFromMapToStart : this._translations.selectFeaturesToStart;
|
146
146
|
const showCreateFeatureOrRecordBtn = this.enableCreateFeatures && this.layer?.capabilities?.operations?.supportsAdd;
|
147
|
-
return (h(Host, { key: '803f5130e6f4fa0bf97cfdd2776e176786e736cc' }, h("div", { key: '7c0a756f5de5f536b52d2e9f6629593eb3c85781', class: "overflow-auto height-full" }, h("calcite-shell", { key: '9a6366bba429d5c29a5f1c556d6812f44d28ee2c', class: "position-relative " + featuresClass }, h("div", { key: '61cb9f7942eb209e5e0bd751ab4b5ca026086882', class: "position-static z-index-500" }, h("info-card", { key: '
|
147
|
+
return (h(Host, { key: '803f5130e6f4fa0bf97cfdd2776e176786e736cc' }, h("div", { key: '7c0a756f5de5f536b52d2e9f6629593eb3c85781', class: "overflow-auto height-full" }, h("calcite-shell", { key: '9a6366bba429d5c29a5f1c556d6812f44d28ee2c', class: "position-relative " + featuresClass }, h("div", { key: '61cb9f7942eb209e5e0bd751ab4b5ca026086882', class: "position-static z-index-500" }, h("info-card", { key: 'aa2e8443af374a37dfebd0d5e87ca052221339a7', enableEditGeometry: this.enableEditGeometry, enableSnapping: this.enableSnapping, graphics: this._graphics, highlightEnabled: false, isLoading: this._cardLoading, isMobile: this.isMobile, locale: this.locale, mapView: this.mapView, showCloseBtn: true }))), h("calcite-shell", { key: '4979b9d94cd68f36b5d9e6ea59ffc0baecd180c0', class: "position-relative " + messageClass }, h("calcite-panel", { key: '9e02f86010e2348668a995de7d3644f0ddf838a6' }, h("div", { key: '83a5ac2003838734308d81dc2903313cb6c07e9a', class: "padding-1" }, h("calcite-notice", { key: 'e380ab334a7b4d65fb64b51bc2b7feb61771f813', icon: this.selectingFeatureFromMap ? "map" : "table", iconFlipRtl: true, open: true }, h("div", { key: '2ac48545c9c825d8d266a96b034dba7d17c024c1', slot: "message" }, guideMsg))), !this.isMobile && showCreateFeatureOrRecordBtn && h("calcite-button", { key: '300e922dcf00b72657ca48382579746073a1a646', disabled: !this.layer, onClick: () => this._createFeatureBtnClicked(), slot: "footer", width: "full" }, isTable ? this._translations.createRecord : this._translations.createFeature))), h("calcite-shell", { key: '1c279da12e0885ed5ecae714a0958e76ac3734d5', class: "position-relative " + createFeatureClass }, h("calcite-flow-item", { key: '8e54e6abf83e3d8ce487a2f76e1bdd8635f4d7b5', selected: true }, h("calcite-panel", { key: 'd31997df187797550eeaee6df294e4f41e6653b5', heading: heading }, h("calcite-action", { key: '636c83f8d5f361c1eb35a5b524565d0bd072489f', class: "back-button hydrated", icon: "chevron-left", onClick: this._backFromCreateFeature.bind(this), scale: "s", slot: "header-actions-start", text: "" }), this.getEditorComponent(), this._showSubmitBtn && h("calcite-button", { key: 'bd1a3ee472e275c57e9c40c217a3c0ac9c8e8715', appearance: "solid", class: "footer-top-button footer-button", onClick: () => void this._createFeature.submit(), slot: "footer", width: "full" }, this._translations.create)))))));
|
148
148
|
}
|
149
149
|
/**
|
150
150
|
* Returns the editor component for adding feature
|
@@ -155,7 +155,7 @@ const CardManager = /*@__PURE__*/ proxyCustomElement(class CardManager extends H
|
|
155
155
|
setTimeout(() => {
|
156
156
|
this._isFeatureCreated = false;
|
157
157
|
}, 2000);
|
158
|
-
}, onSuccess: this._featureCreated.bind(this), ref: el => this._createFeature = el, selectedLayerId: this.layer?.id, showGuidingMsg: false
|
158
|
+
}, onSuccess: this._featureCreated.bind(this), ref: el => this._createFeature = el, selectedLayerId: this.layer?.id, showGuidingMsg: false })));
|
159
159
|
}
|
160
160
|
//--------------------------------------------------------------------------
|
161
161
|
//
|
@@ -34,7 +34,6 @@ const CreateFeature = /*@__PURE__*/ proxyCustomElement(class CreateFeature exten
|
|
34
34
|
this.searchConfiguration = undefined;
|
35
35
|
this.selectedLayerId = undefined;
|
36
36
|
this.showGuidingMsg = true;
|
37
|
-
this.showGuidingMsgWhileDrawing = true;
|
38
37
|
this.submitNewReportsMessage = undefined;
|
39
38
|
this._currentPage = "templatePicker";
|
40
39
|
this._editorLoading = false;
|
@@ -285,8 +284,8 @@ const CreateFeature = /*@__PURE__*/ proxyCustomElement(class CreateFeature exten
|
|
285
284
|
const loaderClass = this._editorLoading ? "" : "display-none";
|
286
285
|
const featureFormClass = this._editorLoading ? "display-none" : "";
|
287
286
|
const mobileMapClass = this.isMobile ? "show-map" : "display-none";
|
288
|
-
// hide guiding msg for
|
289
|
-
const showGuidingMsg = this.showGuidingMsg && (this.
|
287
|
+
// hide guiding msg for template picker page
|
288
|
+
const showGuidingMsg = this.showGuidingMsg && (this._currentPage !== "templatePicker");
|
290
289
|
let guidingMsg = this._translations.chooseCategoryMsg;
|
291
290
|
if (this._currentPage === 'drawing') {
|
292
291
|
guidingMsg = this._translations.provideLocationMsg;
|
@@ -294,8 +293,8 @@ const CreateFeature = /*@__PURE__*/ proxyCustomElement(class CreateFeature exten
|
|
294
293
|
else if (this._currentPage === 'featureForm') {
|
295
294
|
guidingMsg = this._translations.provideDetailsMsg;
|
296
295
|
}
|
297
|
-
return (h(Fragment, { key: '
|
298
|
-
h("div", { key: '
|
296
|
+
return (h(Fragment, { key: '3a448bdb1ffdef55993b20f99b3f1bd1643b6e2f' }, showGuidingMsg && h("calcite-notice", { key: '5a9f000003d75c93ff613f1a4ddba14711653173', class: "notice-msg", icon: "lightbulb", kind: "success", open: true, ref: el => this._calciteNotice = el }, h("div", { key: '751a2c932838a798b102e14340cba2103abdf971', slot: "message" }, guidingMsg)), h("calcite-loader", { key: 'e6ae257cd070bc9d7ea55c725ecf95d096effbc0', class: loaderClass, label: "", scale: "s" }), h("div", { key: 'c25373774f6b87f7a6db4febd62a25b870d9be79', class: featureFormClass, id: "feature-form" }), this.enableSearch &&
|
297
|
+
h("div", { key: '3deb4ffc1f8a633d92e3c27f64247a6f21c58e56', class: `search-widget ${showSearchWidget} ${featureFormClass}`, id: "search-widget-ref", ref: el => this._searchDiv = el }), h("div", { key: 'c72a6826cddbac45675a788e941a6cabd320740a', class: `${mobileMapClass}`, ref: (el) => { this._mapViewContainer = el; } })));
|
299
298
|
}
|
300
299
|
//--------------------------------------------------------------------------
|
301
300
|
//
|
@@ -723,7 +722,6 @@ const CreateFeature = /*@__PURE__*/ proxyCustomElement(class CreateFeature exten
|
|
723
722
|
"searchConfiguration": [16],
|
724
723
|
"selectedLayerId": [1, "selected-layer-id"],
|
725
724
|
"showGuidingMsg": [4, "show-guiding-msg"],
|
726
|
-
"showGuidingMsgWhileDrawing": [4, "show-guiding-msg-while-drawing"],
|
727
725
|
"submitNewReportsMessage": [1, "submit-new-reports-message"],
|
728
726
|
"_currentPage": [32],
|
729
727
|
"_editorLoading": [32],
|
@@ -324,6 +324,12 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
|
|
324
324
|
this.refreshLists();
|
325
325
|
}
|
326
326
|
}
|
327
|
+
/**
|
328
|
+
* Update sorting options when the sortOption prop is changed
|
329
|
+
*/
|
330
|
+
async sortOptionWatchHandler() {
|
331
|
+
this.updateSortingOptions();
|
332
|
+
}
|
327
333
|
/**
|
328
334
|
* Called each time the filterByMapExtent prop is changed
|
329
335
|
*/
|
@@ -410,7 +416,7 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
|
|
410
416
|
*/
|
411
417
|
render() {
|
412
418
|
const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
|
413
|
-
return (h(Host, { key: '
|
419
|
+
return (h(Host, { key: '67b22ff121842ed855d42c6e95f506da7a27fc03' }, this._reportSubmitted && h("calcite-alert", { key: 'a4687bb0a46e215f830418c934156adc1ca22d28', "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: '75c7f06e0c997cff02f2d03cf165a0d96556a99e', slot: "message" }, this.reportSubmittedMessage ? this.reportSubmittedMessage : this._translations.submitMsg)), this._featureCreationFailedErrorMsg && h("calcite-alert", { key: 'db289e06eeff7d79511b0f2d94681931347b40ed', "auto-close": true, class: themeClass, icon: "x-octagon", kind: "danger", label: "", onCalciteAlertClose: () => { this._featureCreationFailedErrorMsg = ""; }, open: true, placement: "top" }, h("div", { key: '9f8c4ef83cafb13d17fd1051d308e59e00c277d5', slot: "title" }, this._translations.error), h("div", { key: 'c18221f220f9b1d28b296a9bab89b838f0884323', slot: "message" }, this._featureCreationFailedErrorMsg)), this._commentSubmitted && h("calcite-alert", { key: '086aff48b20dbabcddb68fca5b57d7a14101c8d0', "auto-close": true, class: 'report-submitted ' + themeClass, icon: "check-circle", kind: "success", label: "", onCalciteAlertClose: () => { this._commentSubmitted = false; }, open: true, placement: "top" }, h("div", { key: '02125cd052ba81cc1fce0ac65ab517ae0eb46d13', slot: "message" }, this.commentSubmittedMessage || this._translations.commentSubmittedMsg)), this._addingCommentFailed && h("calcite-alert", { key: 'c1e0966dde08f7f22f54cdadfc85f3024616fc77', "auto-close": true, class: themeClass, icon: "x-octagon", kind: "danger", label: "", onCalciteAlertClose: () => { this._addingCommentFailed = false; }, open: true, placement: "top" }, h("div", { key: '0dd5af761fef31a4b85bfa0f66dff82e04b1cced', slot: "title" }, this._translations.error), h("div", { key: 'e8b8667855147b417cfc43d19e0c0a04f8870bfd', slot: "message" }, this._translations.addingCommentFailedMsg)), h("div", { key: '10c4c2d1673d63a8ced357312d57acf7faa46f0a' }, h("calcite-shell", { key: '8262117bc32e033f25f2864f4c5aa8a1bdde85ff', "content-behind": true }, this._getReporter())), this.isMobile && this.filterModal()));
|
414
420
|
}
|
415
421
|
//--------------------------------------------------------------------------
|
416
422
|
//
|
@@ -1462,6 +1468,7 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
|
|
1462
1468
|
"mapView": ["mapViewWatchHandler"],
|
1463
1469
|
"floorLevel": ["floorLevelWatchHandler"],
|
1464
1470
|
"showMyReportsOnly": ["showMyReportsOnlyWatchHandler"],
|
1471
|
+
"sortOption": ["sortOptionWatchHandler"],
|
1465
1472
|
"filterByMapExtent": ["filterByMapExtentChangeWatchHandler"],
|
1466
1473
|
"layerExpressions": ["layerExpressionsWatchHandler"],
|
1467
1474
|
"showFeatureSymbol": ["showFeatureSymbolWatchHandler"]
|
@@ -1531,6 +1538,7 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
|
|
1531
1538
|
"mapView": ["mapViewWatchHandler"],
|
1532
1539
|
"floorLevel": ["floorLevelWatchHandler"],
|
1533
1540
|
"showMyReportsOnly": ["showMyReportsOnlyWatchHandler"],
|
1541
|
+
"sortOption": ["sortOptionWatchHandler"],
|
1534
1542
|
"filterByMapExtent": ["filterByMapExtentChangeWatchHandler"],
|
1535
1543
|
"layerExpressions": ["layerExpressionsWatchHandler"],
|
1536
1544
|
"showFeatureSymbol": ["showFeatureSymbolWatchHandler"]
|
@@ -207,7 +207,7 @@ const EditCard = /*@__PURE__*/ proxyCustomElement(class EditCard extends HTMLEle
|
|
207
207
|
!this.graphics[0].layer.editingEnabled : true;
|
208
208
|
const tableNodeClass = this._editorLoading ? "display-none" : "position-absolute";
|
209
209
|
const loadingClass = this._editorLoading ? "" : "display-none";
|
210
|
-
return (h(Host, { key: '
|
210
|
+
return (h(Host, { key: '5d0380d4dbd7412c90e6e3b9aa28b580bf5a6ac4' }, h("div", { key: '29825ee6c26acce86fcb6678d3e3db957358e314', 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: '35fc876d6857fb72c8808cff311e894dd9890afe', class: "position-absolute" }, h("div", { key: 'c95f3453d5fc4dac7ba5f1e7db69490405861059', class: tableNodeClass, id: "feature-form", ref: (el) => this._editContainer = el }), h("calcite-loader", { key: '211fd81ec4b13a731a895c882fafcb438fbf235c', class: loadingClass, label: "", scale: "s" })))));
|
211
211
|
}
|
212
212
|
//--------------------------------------------------------------------------
|
213
213
|
//
|
@@ -313,8 +313,8 @@ const InfoCard = /*@__PURE__*/ proxyCustomElement(class InfoCard extends HTMLEle
|
|
313
313
|
});
|
314
314
|
}
|
315
315
|
else {
|
316
|
-
this._features
|
317
|
-
this._features
|
316
|
+
this._features?.clear();
|
317
|
+
this._features?.close();
|
318
318
|
}
|
319
319
|
this._count = this._getCount();
|
320
320
|
}
|