@esri/solutions-components 0.10.30 → 0.10.32
Sign up to get free protection for your applications and to get access to all the features.
- 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_5.cjs.entry.js +33 -12
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +1 -1
- package/dist/cjs/calcite-flow_4.cjs.entry.js +15 -17
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +6 -6
- package/dist/cjs/card-manager_3.cjs.entry.js +9 -9
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +45 -22
- package/dist/cjs/feature-list.cjs.entry.js +16 -10
- 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-accordion.cjs.entry.js +1 -1
- 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/assets/t9n/create-feature/resources_ar.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_bg.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_bs.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_ca.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_cs.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_da.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_de.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_el.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_es.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_et.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_fi.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_fr.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_he.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_hr.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_hu.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_id.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_it.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_ja.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_ko.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_lt.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_lv.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_nb.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_nl.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_pl.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_pt-BR.json +2 -2
- package/dist/collection/assets/t9n/create-feature/resources_pt-PT.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_ro.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_ru.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_sk.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_sl.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_sr.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_sv.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_th.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_tr.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_uk.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_vi.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_zh-CN.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_zh-HK.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_zh-TW.json +1 -1
- package/dist/collection/components/card-manager/card-manager.js +0 -2
- package/dist/collection/components/create-feature/create-feature.css +8 -1
- package/dist/collection/components/create-feature/create-feature.js +32 -31
- package/dist/collection/components/create-related-feature/create-related-feature.js +9 -26
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +45 -23
- package/dist/collection/components/feature-details/feature-details.js +6 -8
- package/dist/collection/components/feature-list/feature-list.js +16 -10
- package/dist/collection/components/layer-table/layer-table.css +6 -0
- package/dist/collection/components/layer-table/layer-table.js +4 -3
- 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.css +3 -7
- package/dist/collection/components/map-card/map-card.js +3 -2
- 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.css +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-accordion/solution-item-accordion.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/card-manager2.js +0 -2
- package/dist/components/create-feature2.js +33 -13
- package/dist/components/create-related-feature2.js +9 -10
- package/dist/components/crowdsource-reporter.js +45 -23
- package/dist/components/feature-details2.js +6 -8
- package/dist/components/feature-list2.js +16 -10
- package/dist/components/layer-table2.js +5 -4
- 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 +4 -3
- 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 +2 -2
- 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-accordion.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-ref.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_5.entry.js +33 -12
- package/dist/esm/calcite-combobox_3.entry.js +1 -1
- package/dist/esm/calcite-flow_4.entry.js +15 -17
- package/dist/esm/calcite-shell-panel_14.entry.js +6 -6
- package/dist/esm/card-manager_3.entry.js +9 -9
- package/dist/esm/crowdsource-reporter.entry.js +45 -22
- package/dist/esm/feature-list.entry.js +16 -10
- 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-accordion.entry.js +1 -1
- 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/assets/t9n/create-feature/resources_ar.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_bg.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_bs.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_ca.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_cs.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_da.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_de.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_el.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_es.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_et.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_fi.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_fr.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_he.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_hr.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_hu.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_id.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_it.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_ja.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_ko.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_lt.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_lv.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_nb.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_nl.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_pl.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_pt-BR.json +2 -2
- package/dist/solutions-components/assets/t9n/create-feature/resources_pt-PT.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_ro.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_ru.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_sk.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_sl.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_sr.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_sv.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_th.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_tr.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_uk.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_vi.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_zh-CN.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_zh-HK.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_zh-TW.json +1 -1
- package/dist/solutions-components/{p-22bb693d.entry.js → p-06db1bfd.entry.js} +1 -1
- package/dist/solutions-components/p-1f072e2c.entry.js +11 -0
- package/dist/solutions-components/{p-6e1685bd.entry.js → p-3900240c.entry.js} +1 -1
- package/dist/solutions-components/{p-e72e2dcc.entry.js → p-42f75c8f.entry.js} +1 -1
- package/dist/solutions-components/p-4cb12506.entry.js +6 -0
- package/dist/solutions-components/p-51e2500f.entry.js +6 -0
- package/dist/solutions-components/{p-89b27ae3.entry.js → p-5fdb8f83.entry.js} +2 -2
- package/dist/solutions-components/{p-4e0045d5.entry.js → p-6c3261d7.entry.js} +1 -1
- package/dist/solutions-components/p-8a411917.entry.js +6 -0
- package/dist/solutions-components/{p-57ccfe47.entry.js → p-a07322cc.entry.js} +1 -1
- package/dist/solutions-components/{p-be2c7d0c.entry.js → p-a8525233.entry.js} +1 -1
- package/dist/solutions-components/{p-5b0e8838.entry.js → p-b9b77b87.entry.js} +1 -1
- package/dist/solutions-components/p-bd5f3c9e.entry.js +6 -0
- package/dist/solutions-components/p-cc4c013e.entry.js +6 -0
- package/dist/solutions-components/{p-4af0e4bd.entry.js → p-d08ece15.entry.js} +1 -1
- package/dist/solutions-components/{p-89a4ce79.entry.js → p-d119872d.entry.js} +1 -1
- package/dist/solutions-components/p-dd0bd439.entry.js +17 -0
- package/dist/solutions-components/{p-f8ee16f3.entry.js → p-ddc1218d.entry.js} +1 -1
- package/dist/solutions-components/p-e4a42efa.entry.js +6 -0
- package/dist/solutions-components/p-edd88d2d.entry.js +6 -0
- package/dist/solutions-components/p-fa7672c7.entry.js +6 -0
- package/dist/solutions-components/{p-ff8b0603.entry.js → p-ffa9a117.entry.js} +1 -1
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/types/components/create-feature/create-feature.d.ts +17 -5
- package/dist/types/components/create-related-feature/create-related-feature.d.ts +4 -4
- package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +10 -9
- package/dist/types/components/feature-list/feature-list.d.ts +1 -2
- package/dist/types/components.d.ts +0 -9
- package/package.json +1 -1
- package/dist/solutions-components/p-24ae549d.entry.js +0 -6
- package/dist/solutions-components/p-399dc933.entry.js +0 -17
- package/dist/solutions-components/p-3d7643a5.entry.js +0 -6
- package/dist/solutions-components/p-52094fca.entry.js +0 -6
- package/dist/solutions-components/p-634f86e5.entry.js +0 -11
- package/dist/solutions-components/p-662aa94e.entry.js +0 -6
- package/dist/solutions-components/p-790af200.entry.js +0 -6
- package/dist/solutions-components/p-94a5d59f.entry.js +0 -6
- package/dist/solutions-components/p-988c0d5e.entry.js +0 -6
- package/dist/solutions-components/p-a25c73c8.entry.js +0 -6
@@ -62,7 +62,6 @@ export class CrowdsourceReporter {
|
|
62
62
|
this._filterActive = false;
|
63
63
|
this._flowItems = [];
|
64
64
|
this._hasValidLayers = false;
|
65
|
-
this._loadingFeatureDetails = undefined;
|
66
65
|
this._mapInfo = undefined;
|
67
66
|
this._reportSubmitted = false;
|
68
67
|
this._selectedLayerName = undefined;
|
@@ -220,6 +219,10 @@ export class CrowdsourceReporter {
|
|
220
219
|
* FilterInitState: filter's init state
|
221
220
|
*/
|
222
221
|
_filterInitState;
|
222
|
+
/**
|
223
|
+
* string: Previous selected layer id
|
224
|
+
*/
|
225
|
+
_prevSelectedLayerId;
|
223
226
|
//--------------------------------------------------------------------------
|
224
227
|
//
|
225
228
|
// Watch handlers
|
@@ -320,7 +323,7 @@ export class CrowdsourceReporter {
|
|
320
323
|
*/
|
321
324
|
render() {
|
322
325
|
const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
|
323
|
-
return (h(Host, { key: '
|
326
|
+
return (h(Host, { key: 'bb2f79258038360e5c0b894ce5a21dcdd41d0ce4' }, this._reportSubmitted && h("calcite-alert", { key: 'aa244cd93326c8817b851d2465c7b9c453117ad2', "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: '25d6d6bd01ee8dc260bce41ea6c43eafa609292e', slot: "message" }, this.reportSubmittedMessage ? this.reportSubmittedMessage : this._translations.submitMsg)), this._featureCreationFailedErrorMsg && h("calcite-alert", { key: '06851f2f8cabebd0e953c31bdddfdeac363a4e6e', "auto-close": true, class: themeClass, icon: "x-octagon", kind: "danger", label: "", onCalciteAlertClose: () => { this._featureCreationFailedErrorMsg = ""; }, open: true, placement: "top" }, h("div", { key: 'f0d73a00a8150a78c48cc09e8901ad7dcb438e90', slot: "title" }, this._translations.error), h("div", { key: '0747a85bbf4936a28dd85a9ea0e8b416f70ee7cf', slot: "message" }, this._featureCreationFailedErrorMsg)), this._commentSubmitted && h("calcite-alert", { key: '55017090c066ad4e12023315bde39e8c7fa67091', "auto-close": true, class: 'report-submitted ' + themeClass, icon: "check-circle", kind: "success", label: "", onCalciteAlertClose: () => { this._commentSubmitted = false; }, open: true, placement: "top" }, h("div", { key: 'cb63168c1fe507b7b93ac4f58d5283ad0d09b34b', slot: "message" }, this.commentSubmittedMessage || this._translations.commentSubmittedMsg)), this._addingCommentFailed && h("calcite-alert", { key: '36b551428b32c7d93f4d04639504bfe326bbc9c8', "auto-close": true, class: themeClass, icon: "x-octagon", kind: "danger", label: "", onCalciteAlertClose: () => { this._addingCommentFailed = false; }, open: true, placement: "top" }, h("div", { key: '2e9865c5611f4960bb622f75f386a489abcbb484', slot: "title" }, this._translations.error), h("div", { key: 'ebdf339d63369e18b1c68867cdffb9bd40f52766', slot: "message" }, this._translations.addingCommentFailedMsg)), h("div", { key: 'a08980aead377e11697e96e77aa514ed66dc9613' }, h("calcite-shell", { key: '6d96e769ece33073870f2b8f1a7ef6a44006c3f0', "content-behind": true }, this._getReporter()))));
|
324
327
|
}
|
325
328
|
//--------------------------------------------------------------------------
|
326
329
|
//
|
@@ -453,18 +456,29 @@ export class CrowdsourceReporter {
|
|
453
456
|
this._filterActive = false;
|
454
457
|
this._filterUrlParams = null;
|
455
458
|
this._filterInitState = null;
|
456
|
-
|
459
|
+
if (this._featureList) {
|
460
|
+
await this._featureList.refresh();
|
461
|
+
}
|
462
|
+
if (this._layerList) {
|
463
|
+
await this._layerList.refresh();
|
464
|
+
}
|
457
465
|
}
|
458
466
|
/**
|
459
467
|
* Check if the layers definitionExpression has been modified and update the feature list depending on the applied filters
|
460
468
|
* @protected
|
461
469
|
*/
|
462
|
-
_handleFilterUpdate() {
|
470
|
+
async _handleFilterUpdate() {
|
471
|
+
this._showLoadingIndicator = true;
|
463
472
|
//if filter are applied the url params will be generated
|
464
473
|
//set the filter active state based on the length of applied filters
|
465
474
|
this._filterActive = this._filterList.urlParams.getAll('filter').length > 0;
|
466
475
|
this._filterUrlParams = this._filterList.urlParams.getAll('filter');
|
467
|
-
|
476
|
+
this._filterInitState = await this._filterList.getFilterInitState();
|
477
|
+
await this._featureList.refresh();
|
478
|
+
if (this._layerList) {
|
479
|
+
await this._layerList.refresh();
|
480
|
+
}
|
481
|
+
this._showLoadingIndicator = false;
|
468
482
|
}
|
469
483
|
/**
|
470
484
|
* Get the feature layer list
|
@@ -531,7 +545,6 @@ export class CrowdsourceReporter {
|
|
531
545
|
*/
|
532
546
|
backFromCreateFeaturePanel() {
|
533
547
|
if (this._createFeature) {
|
534
|
-
void this._createFeature.close();
|
535
548
|
void this.updateNonVisibleLayersOnMap(false);
|
536
549
|
}
|
537
550
|
//on back form will be closed, so update the form state
|
@@ -552,7 +565,6 @@ export class CrowdsourceReporter {
|
|
552
565
|
*/
|
553
566
|
backFromCreateRelatedFeaturePanel() {
|
554
567
|
if (this._createRelatedFeature) {
|
555
|
-
void this._createRelatedFeature.close();
|
556
568
|
this._showSubmitCancelButton = false;
|
557
569
|
}
|
558
570
|
//on back form will be closed, so update the form state
|
@@ -609,9 +621,6 @@ export class CrowdsourceReporter {
|
|
609
621
|
* @protected
|
610
622
|
*/
|
611
623
|
async navigateToHomePage() {
|
612
|
-
if (this._createFeature) {
|
613
|
-
void this._createFeature.close();
|
614
|
-
}
|
615
624
|
if (this._layerList) {
|
616
625
|
void this._layerList.refresh();
|
617
626
|
}
|
@@ -633,6 +642,10 @@ export class CrowdsourceReporter {
|
|
633
642
|
if (evt.detail.layerId && evt.detail.layerName) {
|
634
643
|
await this.setSelectedLayer(evt.detail.layerId, evt.detail.layerName);
|
635
644
|
}
|
645
|
+
// reset the applied filter when switching to another layer
|
646
|
+
if (this._selectedLayerId !== this._prevSelectedLayerId && this._filterActive) {
|
647
|
+
await this.resetFilter();
|
648
|
+
}
|
636
649
|
void this.updateNonVisibleLayersOnMap(true);
|
637
650
|
// get the form template elements to pass in create-feature to create a LEVELID field in feature-form
|
638
651
|
this._getFormElements();
|
@@ -692,27 +705,33 @@ export class CrowdsourceReporter {
|
|
692
705
|
await this.loadFeatureFromURLParams();
|
693
706
|
}
|
694
707
|
}
|
695
|
-
/**
|
708
|
+
/**
|
709
|
+
* On click of layer list item show feature list
|
696
710
|
* @param evt Event which has details of selected layerId and layerName
|
697
711
|
* @protected
|
698
712
|
*/
|
699
|
-
displayFeaturesList(evt) {
|
713
|
+
async displayFeaturesList(evt) {
|
700
714
|
this._updatedSorting = {
|
701
715
|
field: '',
|
702
716
|
order: 'desc'
|
703
717
|
};
|
704
|
-
this._filterActive = false;
|
705
718
|
this._updatedSortOption = "sortNewest";
|
706
|
-
|
719
|
+
await this.setSelectedLayer(evt.detail.layerId, evt.detail.layerName);
|
707
720
|
this._flowItems = [...this._flowItems, "feature-list"];
|
721
|
+
// reset the applied filter when switching to another layer
|
722
|
+
if (this._selectedLayerId !== this._prevSelectedLayerId && this._filterActive) {
|
723
|
+
await this.resetFilter();
|
724
|
+
}
|
725
|
+
this._prevSelectedLayerId = this._selectedLayerId;
|
708
726
|
}
|
709
727
|
/**
|
710
|
-
*
|
728
|
+
* Reset's the applied filter
|
711
729
|
* @protected
|
712
730
|
*/
|
713
|
-
async
|
714
|
-
|
715
|
-
this.
|
731
|
+
async resetFilter() {
|
732
|
+
const prevLayer = await getLayerOrTable(this.mapView, this._prevSelectedLayerId);
|
733
|
+
prevLayer.definitionExpression = this._filterInitState.initDefExpressions[this._prevSelectedLayerId];
|
734
|
+
void this._handleFilterListReset();
|
716
735
|
}
|
717
736
|
/**
|
718
737
|
* On back from selected panel navigate to the previous panel
|
@@ -773,10 +792,14 @@ export class CrowdsourceReporter {
|
|
773
792
|
*/
|
774
793
|
async getRelatedTable() {
|
775
794
|
const selectedLayer = this._currentFeature.layer;
|
776
|
-
const allRelatedTableIds = selectedLayer.relationships.map(a => a.relatedTableId);
|
777
795
|
const allTables = await getAllTables(this.mapView);
|
778
|
-
|
779
|
-
|
796
|
+
selectedLayer.relationships.some((relationship) => {
|
797
|
+
const relatedTables = allTables.filter((table) => selectedLayer.url === table.url && table.layerId === relationship.relatedTableId);
|
798
|
+
if (relatedTables && relatedTables.length > 0) {
|
799
|
+
this._relatedTable = relatedTables[0];
|
800
|
+
return true;
|
801
|
+
}
|
802
|
+
});
|
780
803
|
}
|
781
804
|
/**
|
782
805
|
* Show loading indicator while updating the feature details component
|
@@ -834,7 +857,7 @@ export class CrowdsourceReporter {
|
|
834
857
|
*/
|
835
858
|
getFilterPanel() {
|
836
859
|
const currentLayersExpressions = this.layerExpressions ? this.layerExpressions.filter((exp) => exp.id === this._selectedLayerId) : [];
|
837
|
-
return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._translations?.filterLayerTitle?.replace("{{title}}", this._selectedLayerName), loading: this._showLoadingIndicator, onCalciteFlowItemBack: this.
|
860
|
+
return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._translations?.filterLayerTitle?.replace("{{title}}", this._selectedLayerName), loading: this._showLoadingIndicator, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), h("div", { class: "width-full", slot: "footer" }, h("div", { class: "width-full", slot: "footer" }, h("calcite-button", { appearance: "solid", class: "footer-top-button footer-button", disabled: !this._filterActive, onClick: () => { void this._filterList?.forceReset(); }, width: "full" }, this._translations.resetFilter), h("calcite-button", { appearance: "outline", class: "footer-button", onClick: this.backFromSelectedPanel.bind(this), width: "full" }, this._translations.close))), h("calcite-panel", { "full-height": true }, h("instant-apps-filter-list", { autoUpdateUrl: false, closeBtnOnClick: () => undefined, comboboxOverlayPositioning: "fixed", layerExpressions: currentLayersExpressions, onFilterListReset: () => this._handleFilterListReset(), onFilterUpdate: () => this._handleFilterUpdate(), ref: (el) => this._filterList = el, resetBtn: false, resetFiltersOnDisconnect: false, view: this.mapView, zoomBtn: false }))));
|
838
861
|
}
|
839
862
|
/**
|
840
863
|
* Returns the calcite-flow item for feature details
|
@@ -1827,7 +1850,6 @@ export class CrowdsourceReporter {
|
|
1827
1850
|
"_filterActive": {},
|
1828
1851
|
"_flowItems": {},
|
1829
1852
|
"_hasValidLayers": {},
|
1830
|
-
"_loadingFeatureDetails": {},
|
1831
1853
|
"_mapInfo": {},
|
1832
1854
|
"_reportSubmitted": {},
|
1833
1855
|
"_selectedLayerName": {},
|
@@ -228,14 +228,12 @@ export class FeatureDetails {
|
|
228
228
|
const allTables = await getAllTables(this.mapView);
|
229
229
|
let relatedTable = null;
|
230
230
|
let validRelationshipId = null;
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
return true;
|
238
|
-
}
|
231
|
+
selectedLayer.relationships.some((relationship) => {
|
232
|
+
const relatedTables = allTables.filter((table) => selectedLayer.url === table.url && table.layerId === relationship.relatedTableId);
|
233
|
+
if (relatedTables && relatedTables.length > 0) {
|
234
|
+
relatedTable = relatedTables[0];
|
235
|
+
validRelationshipId = relationship.id;
|
236
|
+
return true;
|
239
237
|
}
|
240
238
|
});
|
241
239
|
this.relatedTableId = relatedTable?.id ?? '';
|
@@ -132,7 +132,7 @@ export class FeatureList {
|
|
132
132
|
* @returns Promise that resolves when the operation is complete
|
133
133
|
*/
|
134
134
|
async refresh(maintainPageState) {
|
135
|
-
if (maintainPageState) {
|
135
|
+
if (maintainPageState && this._pagination) {
|
136
136
|
const event = {
|
137
137
|
target: {
|
138
138
|
startItem: this._pagination.startItem
|
@@ -183,9 +183,9 @@ export class FeatureList {
|
|
183
183
|
* Renders the component.
|
184
184
|
*/
|
185
185
|
render() {
|
186
|
-
return (h("calcite-panel", { key: '
|
187
|
-
h("calcite-notice", { key: '
|
188
|
-
h("div", { key: '
|
186
|
+
return (h("calcite-panel", { key: 'fc2cc60231efb7fc4a05d3ade0bad6a3dd649b8e', "full-height": true, "full-width": true }, this._isLoading && h("calcite-loader", { key: '43c8176c2aaf0cc7f36a9f1ff477f53890cfcf2d', label: "", scale: "m" }), this.showErrorWhenNoFeatures && this._featureItems.length === 0 && !this._isLoading &&
|
187
|
+
h("calcite-notice", { key: 'dff1bb7207397ded8a557b61e9185ea788520441', class: "error-msg", icon: "feature-details", kind: "info", open: true }, h("div", { key: 'c1dd4e7fb8398c4317270b50eba7e6270fd7051b', slot: "message" }, this.noFeaturesFoundMsg ? this.noFeaturesFoundMsg : this._translations.featureErrorMsg)), h("calcite-list", { key: '49019c011e8667d193f566826644b0693b0fb6f9', "selection-appearance": "border", "selection-mode": "none" }, !this._isLoading && this._featureItems.length > 0 && this._featureItems), this._featuresCount > this.pageSize &&
|
188
|
+
h("div", { key: '12e767a001c4dffec7e771d12b772fb43bbf9b0f', class: "width-full", slot: "footer" }, h("calcite-pagination", { key: 'd6a8a9eac72fe7217eda926f46baedcb4e6d5859', 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 }))));
|
189
189
|
}
|
190
190
|
//--------------------------------------------------------------------------
|
191
191
|
//
|
@@ -359,10 +359,10 @@ export class FeatureList {
|
|
359
359
|
let userInfo;
|
360
360
|
let featureSymbol;
|
361
361
|
if (this.showUserImageInList) {
|
362
|
-
const creatorField = this._selectedLayer.editFieldsInfo?.creatorField
|
362
|
+
const creatorField = this._selectedLayer.editFieldsInfo?.creatorField;
|
363
363
|
// if feature's creator field is present then only we can fetch the information of user
|
364
364
|
if (creatorField) {
|
365
|
-
userInfo = await this.getUserInformation(feature
|
365
|
+
userInfo = await this.getUserInformation(feature);
|
366
366
|
}
|
367
367
|
}
|
368
368
|
if (this.showFeatureSymbol) {
|
@@ -414,21 +414,27 @@ export class FeatureList {
|
|
414
414
|
const popupTitleClass = this.textSize === 'small' ? 'feature-list-popup-title-small' : 'feature-list-popup-title';
|
415
415
|
const popupTitlePaddingClass = this.showUserImageInList || this.showFeatureSymbol ? 'feature-list-popup-title-padding-reduced' : 'feature-list-popup-title-padding';
|
416
416
|
return (h("calcite-list-item", { onCalciteListItemSelect: (e) => { void this.featureClicked(e, selectedFeature); }, onMouseLeave: () => { void this.clearHighlights(); }, onMouseOver: () => { void this.onFeatureHover(selectedFeature); }, value: oId }, this.showUserImageInList &&
|
417
|
-
h("calcite-avatar", { class: 'profile-img', "full-name": userInfo?.fullName,
|
417
|
+
h("calcite-avatar", { class: 'profile-img', "full-name": userInfo?.fullName, scale: "m", slot: "content-start", thumbnail: userInfo?.userProfileUrl, userId: userInfo?.id, username: userInfo?.fullName ? userInfo.username : undefined }), this.showFeatureSymbol &&
|
418
418
|
h("div", { class: 'feature-symbol', ref: (el) => el && el.appendChild(featureSymbol), slot: "content-start" }), h("div", { class: `${popupTitleClass} ${popupTitlePaddingClass}`, slot: "content-start" }, popupTitle), this._likeFieldAvailable &&
|
419
419
|
h("div", { class: "like-container", id: oId.concat("like"), slot: "content-end" }, h("span", null, this._abbreviatedLikeCount), h("calcite-icon", { icon: "thumbs-up", scale: 's' }), h("calcite-tooltip", { overlayPositioning: "fixed", placement: "top", "reference-element": oId.concat("like") }, formattedLikeCount)), h("calcite-icon", { flipRtl: true, icon: "chevron-right", scale: "s", slot: "content-end" })));
|
420
420
|
}
|
421
421
|
/**
|
422
422
|
*
|
423
423
|
* @param feature Each individual feature instance to be listed
|
424
|
-
* @param creatorField Feature's creator field from the layer
|
425
424
|
* @returns user information
|
426
425
|
* @protected
|
427
426
|
*/
|
428
|
-
async getUserInformation(feature
|
429
|
-
|
427
|
+
async getUserInformation(feature) {
|
428
|
+
let creatorField = this._selectedLayer.editFieldsInfo?.creatorField;
|
429
|
+
if (feature.attributes.hasOwnProperty(creatorField.toLowerCase())) {
|
430
|
+
creatorField = creatorField.toLowerCase();
|
431
|
+
}
|
432
|
+
else if (feature.attributes.hasOwnProperty(creatorField.toUpperCase())) {
|
433
|
+
creatorField = creatorField.toUpperCase();
|
434
|
+
}
|
430
435
|
//get the user information
|
431
436
|
let url = `${this.esriConfig.portalUrl}/sharing/rest/community/users/${feature.attributes[creatorField]}?f=json&returnUserLicensedItems=true`;
|
437
|
+
const userToken = this.mapView.map.portalItem.portal?.credential?.token;
|
432
438
|
if (userToken) {
|
433
439
|
url += `&token=${userToken}`;
|
434
440
|
}
|
@@ -140,6 +140,12 @@ html[dir="rtl"] .share-action {
|
|
140
140
|
height: 100%;
|
141
141
|
}
|
142
142
|
|
143
|
+
.search-container {
|
144
|
+
background-color: var(--calcite-color-foreground-1) !important;
|
145
|
+
}
|
146
|
+
|
143
147
|
.search {
|
144
148
|
--calcite-color-border-input: var(--calcite-color-border-3);
|
149
|
+
width: 60%;
|
150
|
+
padding: 10px;
|
145
151
|
}
|
@@ -522,7 +522,7 @@ export class LayerTable {
|
|
522
522
|
const showSearch = this._canShowFullTextSearch();
|
523
523
|
this._validateActiveActions();
|
524
524
|
return (h(Host, { key: '46394d7e108068600980efd766fbf5d91243f3c9' }, h("calcite-shell", { key: 'd831121a56070552139386033b02ddc2531c29e9' }, this._getTableControlRow("header"), h("div", { key: '591e0b0bba19f1dbe99049a470b5d3c04253a2c2', class: `width-full ${tableHeightClass}` }, h("calcite-panel", { key: 'd70244a3c989a5bea8bbbaf33c4ebe9c04fc4515', class: "height-full width-full" }, showSearch &&
|
525
|
-
h("calcite-input", { key: '
|
525
|
+
h("div", { key: 'fd14c6dab7898e27bd61bbc03878c898d26f042a', class: "search-container" }, h("calcite-input", { key: '9675cc22233456446be8a6b9fc24842fbb3f88e2', class: "search", clearable: true, icon: "search", onCalciteInputChange: (evt) => void this._searchTextChanged(evt), placeholder: this._searchPlaceHolder, title: this._searchPlaceHolder, type: "search" })), h("calcite-loader", { key: '74447458a0ac4cee6934e7101a5fee2c180d1330', class: loadingClass, label: this._translations.fetchingData, scale: "l" }), h("div", { key: '6c2a5ff4a69690fde002005eb9c55047c25ad63d', class: tableNodeClass, ref: this.onTableNodeCreate }))), !this.isMobile ? (h("div", { class: "bottom-left text-color height-19" }, this._translations.recordsSelected
|
526
526
|
.replace("{{total}}", total)
|
527
527
|
.replace("{{selected}}", selected))) : undefined), this.createFilterModal && this._filterModal()));
|
528
528
|
}
|
@@ -539,7 +539,7 @@ export class LayerTable {
|
|
539
539
|
* Called after the component is rendered
|
540
540
|
*/
|
541
541
|
componentDidRender() {
|
542
|
-
// need to be called after each render to get the clicked mouseEvent
|
542
|
+
// need to be called after each render to get the clicked mouseEvent
|
543
543
|
document.onclick = (e) => this._handleDocumentClick(e);
|
544
544
|
document.onkeydown = (e) => this._handleKeyDown(e);
|
545
545
|
document.onkeyup = (e) => this._handleKeyUp(e);
|
@@ -686,7 +686,8 @@ export class LayerTable {
|
|
686
686
|
*/
|
687
687
|
_getTableControlRow(slot) {
|
688
688
|
const id = "more-table-options";
|
689
|
-
|
689
|
+
const toolbarClass = this._canShowFullTextSearch() ? "border-bottom" : "";
|
690
|
+
return (h("div", { class: `display-flex height-51-px ${toolbarClass}`, ref: (el) => this._toolbar = el, slot: slot }, this._getActionBar(), !this.isMobile ? this._getDropdown(id) : undefined, this.enableShare && !this.isMobile ? this._getShare("share") : undefined));
|
690
691
|
}
|
691
692
|
/**
|
692
693
|
* Gets a row of controls that can be used for various interactions with the table
|
@@ -76,7 +76,7 @@ export class LayoutManager {
|
|
76
76
|
* Renders the component.
|
77
77
|
*/
|
78
78
|
render() {
|
79
|
-
return (h(Host, { key: '
|
79
|
+
return (h(Host, { key: '1381320aa1041faf8f3b878891d604d37bc9ba75' }, h("div", { key: 'd7d36debd225ecb188238bb6a19c265729244800', class: "display-flex" }, h("div", { key: '176a1db9d59dedc3714cc594aae8c9715ab34680', class: "display-flex action-center" }, h("calcite-icon", { key: '9a05af6302133624f7dc65769dac2d613ba66853', class: "icon icon-color", icon: "information", id: "app-information-icon", scale: "s" }), h("calcite-popover", { key: '4e3484d7403ad3ac2f2a30bac0b1e9b050e20840', closable: true, label: "", referenceElement: "app-information-icon" }, h("span", { key: '0a8d3607ebcb24b6ba0c7d7757cddf5f79faee49', class: "tooltip-message" }, this._translations.appInfo))), h("div", { key: '27ec5b7cadacbf763eabad8933bdec5b37b56c5c', 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))));
|
80
80
|
}
|
81
81
|
//--------------------------------------------------------------------------
|
82
82
|
//
|
@@ -62,7 +62,7 @@ export class ListFlowItem {
|
|
62
62
|
//
|
63
63
|
//--------------------------------------------------------------------------
|
64
64
|
render() {
|
65
|
-
return (h(Host, { key: '
|
65
|
+
return (h(Host, { key: 'eb0234045e0e914fd94b0afd15e9a41d57a9735f' }, h("slot", { key: 'bd2660cb4a2e04aa04445c8e446577bf4de27a4a' })));
|
66
66
|
}
|
67
67
|
static get is() { return "list-flow-item"; }
|
68
68
|
static get encapsulation() { return "shadow"; }
|
@@ -62,7 +62,7 @@ export class LocationFlowItem {
|
|
62
62
|
//
|
63
63
|
//--------------------------------------------------------------------------
|
64
64
|
render() {
|
65
|
-
return (h(Host, { key: '
|
65
|
+
return (h(Host, { key: '243b7931b8af88376378b299e8b1ed947069cf97' }, h("slot", { key: '605d9a18fbd685a3477e97b2c7fd840fc6980118' })));
|
66
66
|
}
|
67
67
|
static get is() { return "location-flow-item"; }
|
68
68
|
static get encapsulation() { return "shadow"; }
|
@@ -28,12 +28,8 @@
|
|
28
28
|
height: 100%;
|
29
29
|
}
|
30
30
|
|
31
|
-
.
|
32
|
-
|
33
|
-
}
|
34
|
-
|
35
|
-
.height-50-px {
|
36
|
-
height: 50px;
|
31
|
+
.height-49-px {
|
32
|
+
height: 49px;
|
37
33
|
}
|
38
34
|
|
39
35
|
.box-shadow {
|
@@ -52,4 +48,4 @@
|
|
52
48
|
|
53
49
|
.display-block {
|
54
50
|
display: block;
|
55
|
-
}
|
51
|
+
}
|
@@ -293,12 +293,13 @@ export class MapCard {
|
|
293
293
|
* Renders the component.
|
294
294
|
*/
|
295
295
|
render() {
|
296
|
-
const mapContainerClass = this.isMapLayout ? "display-flex height-
|
296
|
+
const mapContainerClass = this.isMapLayout ? "display-flex height-49-px" : "";
|
297
297
|
const mapClass = this.hidden ? "visibility-hidden-1" : "";
|
298
298
|
const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
|
299
299
|
const mapHeightClass = this.mapInfos?.length > 1 || this.isMapLayout ? "map-height" : "height-full";
|
300
|
+
const progressClass = this.isMapLayout ? "" : "display-none";
|
300
301
|
this._validateActiveActions();
|
301
|
-
return (h(Host, { key: '
|
302
|
+
return (h(Host, { key: '94d7399ed75c0e90487d6153a0d28ab6f722ae93' }, h("div", { key: 'e194d8800dd7a865e101d779d032d164f3e5562d', class: `${mapContainerClass} width-full`, ref: (el) => this._toolbar = el }, this._getActionBar(), !this.isMobile && this.isMapLayout && this._getDropdown("more-table-options")), h("calcite-progress", { key: '0abdbf4e8ba5861866aba7791dfdb91a7a5f4daa', class: progressClass, value: 0 }), h("div", { key: '83aa012aeef6ae64e49007d542fd949e7d4602f4', class: `${mapHeightClass} ${mapClass}`, ref: (el) => (this._mapDiv = el) }), h("map-tools", { key: '229cc18b36885cad12d44c13e1fe37a97403b9d8', 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 })));
|
302
303
|
}
|
303
304
|
/**
|
304
305
|
* Called each time after the component is loaded
|
@@ -183,7 +183,7 @@ export class MapDrawTools {
|
|
183
183
|
"border" : "border esri-widget esri-sketch__panel";
|
184
184
|
const undoRedoClass = this.drawMode === EDrawMode.SKETCH ?
|
185
185
|
"display-none" : "esri-widget esri-sketch__panel border-left esri-sketch__section";
|
186
|
-
return (h(Host, { key: '
|
186
|
+
return (h(Host, { key: '5f82fce6481912c103d709b5fefa3a890d291943' }, h("div", { key: '464d32d718167c5e7e2636fa0184622477fc5464', class: containerClass }, h("div", { key: '52a11f9d1b8f1692e67a7e706de3741e43c40591', ref: (el) => { this._sketchElement = el; } }), h("div", { key: '3a529e4e358ec4890513d7fcbbceadabb9e66a18', class: undoRedoClass }, h("calcite-action", { key: '98b684a186a03fe8868bde1978d59c7618a7635a', disabled: !this.undoEnabled, icon: "undo", onClick: () => this._undo(), scale: "s", text: this._translations.undo }), h("calcite-action", { key: 'b1d769fd984ecf7cf9e868029cc7a5aba5a39dc7', disabled: !this.redoEnabled, icon: "redo", onClick: () => this._redo(), scale: "s", text: this._translations.redo })))));
|
187
187
|
}
|
188
188
|
//--------------------------------------------------------------------------
|
189
189
|
//
|
@@ -95,7 +95,7 @@ export class MapFullscreen {
|
|
95
95
|
* Renders the component.
|
96
96
|
*/
|
97
97
|
render() {
|
98
|
-
return (h(Host, { key: '
|
98
|
+
return (h(Host, { key: '9fc5dfeffc8601763b27e001311ec317934ebcae' }, h("div", { key: '65f2ab96d7283a9a10a113be0cdef6a95de1ee1b', class: "fullscreen-widget", ref: (el) => { this._fullscreenElement = el; } })));
|
99
99
|
}
|
100
100
|
/**
|
101
101
|
* StencilJS: Called just after the component updates.
|
@@ -160,7 +160,7 @@ export class MapLayerPicker {
|
|
160
160
|
const id = "map-layer-picker";
|
161
161
|
let style = this.height > 0 ? { "height": `${this.height.toString()}px` } : {};
|
162
162
|
style = { ...style, "display": this.display };
|
163
|
-
return (h(Host, { key: '
|
163
|
+
return (h(Host, { key: 'e858ff58778eb1a40b40609f44705d9580ddd489' }, h("div", { key: '729c3ba4d508d02f79a2dd4856aef5c5662720d7', class: "map-layer-picker-container", style: style }, h("div", { key: '9055f9db9bc811797002ecb86da34e17b9cf77be', class: "map-layer-picker", style: style }, !this._hasValidLayers ? this._getInvalidPlaceholder() :
|
164
164
|
!this._hasMultipleLayers && this.showSingleLayerAsLabel ? this._getSingleLayerPlaceholder() :
|
165
165
|
this.type === "combobox" ? this._getCombobox(id) :
|
166
166
|
this.type === "select" ? this._getSelect(id) : this._getDropdown(id)))));
|
@@ -86,7 +86,7 @@ export class MapLegend {
|
|
86
86
|
* StencilJS: Renders the component.
|
87
87
|
*/
|
88
88
|
render() {
|
89
|
-
return (h(Host, { key: '
|
89
|
+
return (h(Host, { key: 'f520dd3737b8b883d8e27eb9a63da25f6d5b9375' }, h("div", { key: '6775e1c58ecd4fe63d50358fe2cd4f050cb1d709', ref: (el) => { this._legendElement = el; } })));
|
90
90
|
}
|
91
91
|
/**
|
92
92
|
* StencilJS: Called once just after the component is fully loaded and the first render() occurs.
|
@@ -120,7 +120,7 @@ export class MapPicker {
|
|
120
120
|
* Renders the component.
|
121
121
|
*/
|
122
122
|
render() {
|
123
|
-
return (h(Host, { key: '
|
123
|
+
return (h(Host, { key: '178a4e3fcd08972b0465885c4891a732ea970428' }, this._getToolbar(), this._getMapNameList(this._mapListExpanded)));
|
124
124
|
}
|
125
125
|
/**
|
126
126
|
* Called once after the component has loaded
|
@@ -109,7 +109,7 @@ export class MapSearch {
|
|
109
109
|
* Renders the component.
|
110
110
|
*/
|
111
111
|
render() {
|
112
|
-
return (h(Host, { key: '
|
112
|
+
return (h(Host, { key: '7c990343af0d1077a7315fd131379bc891310e30' }, h("div", { key: '97cd41cf7f749f31701de3526cf2ef633eda48dd', class: "search-widget", ref: (el) => { this._searchElement = el; } })));
|
113
113
|
}
|
114
114
|
//--------------------------------------------------------------------------
|
115
115
|
//
|
@@ -302,7 +302,7 @@ export class MapSelectTools {
|
|
302
302
|
render() {
|
303
303
|
const mapToolsClass = this.enableSketchTools ? "" : "display-none";
|
304
304
|
const mapToolsContainerClass = this.enableSketchTools ? "padding-top-1" : "";
|
305
|
-
return (h(Host, { key: '
|
305
|
+
return (h(Host, { key: '6753158d00a33dd5dfbb1f22cc27388baf4c0b5e' }, this._getMapLayerPicker(), h("div", { key: '082c6be48d3dfbe2e39be2c462959c7772a91d40', class: "border-bottom" }), h("div", { key: '0e8133a809b05bef34c2f19adeff43c1e57cc002', class: "padding-top-sides-1" }, h("div", { key: '4434b5b4d073f3ba9a7e44b82078b9b81733025b', class: "search-widget", ref: (el) => { this._searchElement = el; } }), h("div", { key: '6f01e27e06ea365de6ff98df3f9edd973d87117c', class: mapToolsContainerClass }, h("map-draw-tools", { key: '24ffe562d080955f2aacfd080c0baa1997f8eaab', active: true, class: mapToolsClass, editGraphicsEnabled: !this._useLayerFeaturesEnabled, graphics: this._graphics, mapView: this.mapView, onSketchGraphicsChange: (evt) => void this._sketchGraphicsChanged(evt), pointSymbol: this.sketchPointSymbol, polygonSymbol: this.sketchPolygonSymbol, polylineSymbol: this.sketchLineSymbol, ref: (el) => { this._drawTools = el; } })), this.enableSearchDistance ? this._getBufferOptions() : undefined, this.enableLayerFeatures ? this._getUseLayerFeaturesOptions() : undefined, this._getNumSelected()), h("div", { key: '4c7cf401b5bcc7e4adef34e140d22676fce8ebbc', class: "border-bottom" }), this._getNameInput()));
|
306
306
|
}
|
307
307
|
/**
|
308
308
|
* Renders the buffer tools component.
|
@@ -213,7 +213,7 @@ export class MapTools {
|
|
213
213
|
const toolMarginClass = this.enableSingleExpand ? "margin-top-1-2" : "";
|
214
214
|
const toolOrder = this.toolOrder ? this.toolOrder : ["legend", "search", "fullscreen", "floorfilter"];
|
215
215
|
const shadowClass = this.stackTools ? "box-shadow" : "";
|
216
|
-
return (h(Host, { key: '
|
216
|
+
return (h(Host, { key: '087d0879847a1a48e3e586d4e851a55f0640dfea' }, h("div", { key: 'cd76a75845afb17c42722125f30fb5c59d305671', class: containerClass }, this.enableSingleExpand ? (h("div", { class: "box-shadow" }, this._getActionGroup(toggleIcon, false, expandTip, () => this._toggleTools()))) : undefined, h("div", { key: 'f2522aa2d41243bcaf9ae75372c50454d354de1b', class: `${toolMarginClass} ${shadowClass} ${toolsClass}` }, this._getMapWidgets(toolOrder))), h("basemap-gallery", { key: '38762b76d6e5300800a1214a579cc7c76d4f00d7', basemapConfig: this.basemapConfig, class: basemapClass, mapView: this.mapView, ref: (el) => { this._basemapElement = el; } }), h("map-search", { key: '929003ecf89addceb07b6337a90f7d0558c67c18', class: searchClass, mapView: this.mapView, ref: (el) => { this._searchElement = el; }, resultGraphicEnabled: true, searchConfiguration: this.searchConfiguration }), h("map-legend", { key: '46177bd0963cefc5b5b36e4b4c08e323193d14c9', class: legendClass, mapView: this.mapView, ref: (el) => { this._legendElement = el; } }), h("map-fullscreen", { key: 'dfb346c088e665f137143655a47539148a3d2580', class: fullscreenClass, mapView: this.mapView, onFullscreenStateChange: (evt) => this._fullscreenStateChange(evt.detail), ref: (el) => { this._fullscreenElement = el; } }), h("floor-filter", { key: '0c1bd8979355d6f5d2c7299bbca23f6762d94cc5', class: floorFilterClass, enabled: this.enableFloorFilter, mapView: this.mapView, ref: (el) => { this._floorFilterElement = el; } })));
|
217
217
|
}
|
218
218
|
//--------------------------------------------------------------------------
|
219
219
|
//
|
@@ -70,7 +70,7 @@ export class PciCalculator {
|
|
70
70
|
render() {
|
71
71
|
const pciClass = !this.showAddDeduct ? "display-grid" : "display-none";
|
72
72
|
const deductClass = this.showAddDeduct ? "position-relative" : "display-none";
|
73
|
-
return (h(Host, { key: '
|
73
|
+
return (h(Host, { key: 'ed87d1027005d190e25bf5e1d7290e84d9d17ba0' }, h("div", { key: 'd9396264216f810a3bdcf5fce4872580b3abebe2', class: pciClass }, h("div", { key: 'a4235f8123959cf0d27faa2146de5aec798e5179', class: "label-display" }, h("calcite-label", { key: '6393ded2cce33388aed760d1a3ceefe395718020', class: "label-display" }, "Enter comma delimited deduct values", this._getDeductValuesInput())), h("div", { key: 'e172c646a39a69e7a69d3646389907ce561fb4ff' }, this._getCalculateButton())), h("div", { key: 'c9659b510e86cebd0170dc73a1ba5afc3173dc8a', class: deductClass }, h("div", { key: '45a9b444a79863644a330e72598ce7c33565db77', class: "position-right" }, h("calcite-action", { key: '250c4da105f5d33f058d7770e83e4c6d89741f90', appearance: 'transparent', class: "float-end", icon: "x", onClick: () => this._toggleShowAddDeduct(), scale: "s", text: '' })), h("deduct-calculator", { key: 'b51cb55ab07b8e5556e6eb6e04d23d7e1b767850', class: "display-grid padding-top-1", onDeductValueComplete: (evt) => this._addDeductValue(evt) }))));
|
74
74
|
}
|
75
75
|
//--------------------------------------------------------------------------
|
76
76
|
//
|
@@ -106,7 +106,7 @@ export class PdfDownload {
|
|
106
106
|
* Renders the component.
|
107
107
|
*/
|
108
108
|
render() {
|
109
|
-
return (h(Host, { key: '
|
109
|
+
return (h(Host, { key: 'ff0ad2a97a113ccfaa10d5219d93f5b07319fb33' }, h("calcite-select", { key: '4675536d2732329715198c54b5c03c8748d7732a', disabled: this.disabled, label: "", ref: (el) => { this._labelInfoElement = el; } })));
|
110
110
|
}
|
111
111
|
componentDidLoad() {
|
112
112
|
// Render the options outside of Stencil's rendering so that it doesn't mangle RTL text with embedded LTR
|
@@ -265,7 +265,7 @@ export class PublicNotification {
|
|
265
265
|
*/
|
266
266
|
render() {
|
267
267
|
const headerSlot = this._isMobile ? "footer" : "header";
|
268
|
-
return (h(Host, { key: '
|
268
|
+
return (h(Host, { key: '019074cdfaddd8121a6ed255f42dea427aac9440' }, h("calcite-shell", { key: 'ece21e206f6519627bc8f139c35f68838eb701a2' }, h("calcite-action-bar", { key: '92883d5df9fcf43584f3934bf7f61640afed2bdb', class: "border-bottom-1 action-bar-size", "expand-disabled": true, layout: "horizontal", slot: headerSlot }, this._getActionGroup("list-check", EPageType.LIST, this._translations.myLists), this.showRefineSelection ? this._getActionGroup("test-data", EPageType.REFINE, this._translations.refineSelection) : null, this._getActionGroup("export", EPageType.EXPORT, this._translations.export)), this._getPage(this._pageType))));
|
269
269
|
}
|
270
270
|
/**
|
271
271
|
* StencilJS: Called once just after the component is first loaded.
|
@@ -62,7 +62,7 @@ export class RefineResultsFlowItem {
|
|
62
62
|
//
|
63
63
|
//--------------------------------------------------------------------------
|
64
64
|
render() {
|
65
|
-
return (h(Host, { key: '
|
65
|
+
return (h(Host, { key: '556490bcef9d17e1677da73100cbb13bb564d32c' }, h("slot", { key: '04a54cdc534d8bc12b3321ae6a5ed89131cc5c71' })));
|
66
66
|
}
|
67
67
|
static get is() { return "refine-results-flow-item"; }
|
68
68
|
static get encapsulation() { return "shadow"; }
|
@@ -119,7 +119,7 @@ export class RefineSelection {
|
|
119
119
|
*/
|
120
120
|
render() {
|
121
121
|
const layerPickerClass = this._enabledLayerIds.length > 1 ? "display-block" : "display-none";
|
122
|
-
return (h(Host, { key: '
|
122
|
+
return (h(Host, { key: 'b3693694a5d007dd6add79848d1254a1ee52b8e3' }, h("div", { key: 'c464770d28fb981e9fba4d5cb3709684e41cbdc3', class: layerPickerClass + " padding-top-sides-1" }, h("div", { key: '2972637e3194c86d097a491678eb8b508bbf2fd2', class: "display-flex" }, h("calcite-label", { key: '242295f4d8f2f17554b99748795a5bc1e1f05dcb', class: "font-bold width-full label-margin-0" }, h("div", { key: 'f2643bf44301aaa0a1d67595dac537c6bad21928', class: "display-flex" }, this._translations.inputLayer, h("calcite-icon", { key: '1d068bd809b36b4aba7e3836d2fc8b33d6de5d3e', class: "padding-start-1-2 icon", flipRtl: !(this.locale?.toLowerCase() === "he"), icon: "question", id: "refine-input-layer", scale: "s" })), h("map-layer-picker", { key: 'e97947859dfa0a718595bfb54c843b6358ece94e', enabledLayerIds: this._enabledLayerIds, mapView: this.mapView, onLayerSelectionChange: (evt) => { void this._layerSelectionChange(evt); }, ref: (el) => { this._layerPicker = el; }, selectedIds: [this._refineLayer.layer.id], showTables: false })), h("calcite-popover", { key: 'e78a114a50aec427b6f6f0e4f8096447e464ba7e', closable: true, label: "", referenceElement: "refine-input-layer" }, h("span", { key: 'b7abd37b2907c0ef98059fd280dd30cfa4eea2d2', class: "tooltip-message" }, this._translations.inputLayerTip)))), h("div", { key: '3d5869d473e7c8068969e07619fc891268422f2b', class: "padding-1" }, h("div", { key: 'b89ed77287dc4ae5a6f7a7589faccbbc4da3b524', class: "padding-bottom-1" }, h("calcite-segmented-control", { key: '1f0d85ab4ed9af445ff8b9bc5c7d4be80733f573', class: "w-100", width: "full" }, h("calcite-segmented-control-item", { key: '229473e79f8ddc6c95ad0a09fdd3fef08c176b1e', checked: this._addEnabled, class: "w-50 word-wrap-anywhere", onClick: () => this._setSelectionMode(ESelectionMode.ADD), value: ESelectionMode.ADD }, h("span", { key: '27f7e1f70da8ae44cab4d2643d58b0bfe8e3ad6c', class: "font-weight-500" }, this._translations.add)), h("calcite-segmented-control-item", { key: 'b6c4199b48d7cedec36510572de7f63ee105b605', checked: !this._addEnabled, class: "w-50 word-wrap-anywhere", onClick: () => this._setSelectionMode(ESelectionMode.REMOVE), value: ESelectionMode.REMOVE }, h("span", { key: 'c3047bd7b4564b171ed8cb7c7842b64e7a4677f8', class: "font-weight-500" }, this._translations.remove)))), h("div", { key: '14408ec1abdbb64e4c4ccc473b3615d7036399f7' }, h("map-draw-tools", { key: 'fe946dc9ae433dabe45f5da695cde3daaa9e057d', active: true, drawMode: EDrawMode.REFINE, mapView: this.mapView, onDrawRedo: () => this._redo(), onDrawUndo: () => this._undo(), onSketchGraphicsChange: (evt) => this._sketchGraphicsChanged(evt), pointSymbol: this.sketchPointSymbol, polygonSymbol: this.sketchPolygonSymbol, polylineSymbol: this.sketchLineSymbol, redoEnabled: this._refineSelectionSet?.redoStack.length > 0, ref: (el) => { this._drawTools = el; }, undoEnabled: this._refineSelectionSet?.undoStack.length > 0 })), h("br", { key: 'a532f7b86708d6839449397841a68f2258645410' }), (h("calcite-list", { key: 'ef51c27c396c52c8fcb1c512957b3b2e276306e4', class: "list-border" }, this._getRefineSelectionSetList())))));
|
123
123
|
}
|
124
124
|
//--------------------------------------------------------------------------
|
125
125
|
//
|
@@ -62,7 +62,7 @@ export class ShareItem {
|
|
62
62
|
//
|
63
63
|
//--------------------------------------------------------------------------
|
64
64
|
render() {
|
65
|
-
return (h(Host, { key: '
|
65
|
+
return (h(Host, { key: '7b405bc7f7cb4204406da1aa0c05dc292508e6cf' }, h("slot", { key: 'fcaa34cd163995045268fd539a82ad3b102b1046' })));
|
66
66
|
}
|
67
67
|
static get is() { return "share-item"; }
|
68
68
|
static get encapsulation() { return "shadow"; }
|