@esri/solutions-components 0.11.22 → 0.11.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/basemap-gallery_7.cjs.entry.js +6 -6
- package/dist/cjs/buffer-tools_2.cjs.entry.js +1 -1
- package/dist/cjs/card-manager_3.cjs.entry.js +10 -6
- package/dist/cjs/consent-manager.cjs.entry.js +1 -1
- package/dist/cjs/create-feature_4.cjs.entry.js +22 -11
- package/dist/cjs/create-related-feature_3.cjs.entry.js +25 -19
- package/dist/cjs/crowdsource-manager.cjs.entry.js +3 -2
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +7 -6
- package/dist/cjs/deduct-calculator.cjs.entry.js +1 -1
- package/dist/cjs/delete-dialog.cjs.entry.js +1 -1
- package/dist/cjs/feature-list.cjs.entry.js +4 -4
- package/dist/cjs/json-editor_7.cjs.entry.js +7 -7
- 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/pci-calculator.cjs.entry.js +1 -1
- package/dist/cjs/public-notification.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/layer-table/resources.json +4 -1
- package/dist/collection/assets/t9n/layer-table/resources_en.json +4 -1
- package/dist/collection/components/card-manager/card-manager.js +23 -2
- package/dist/collection/components/consent-manager/consent-manager.js +1 -1
- package/dist/collection/components/create-feature/create-feature.css +1 -1
- package/dist/collection/components/create-feature/create-feature.js +28 -3
- package/dist/collection/components/create-related-feature/create-related-feature.css +1 -1
- package/dist/collection/components/create-related-feature/create-related-feature.js +74 -49
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +23 -2
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +27 -6
- package/dist/collection/components/deduct-calculator/deduct-calculator.js +1 -1
- package/dist/collection/components/delete-button/delete-button.js +1 -1
- package/dist/collection/components/delete-dialog/delete-dialog.js +1 -1
- package/dist/collection/components/edit-card/edit-card.css +1 -1
- package/dist/collection/components/edit-card/edit-card.js +48 -23
- package/dist/collection/components/feature-details/feature-details.js +27 -6
- package/dist/collection/components/feature-list/feature-list.js +4 -4
- package/dist/collection/components/floor-filter/floor-filter.js +1 -1
- package/dist/collection/components/info-card/info-card.js +23 -2
- package/dist/collection/components/json-editor/json-editor.js +1 -1
- package/dist/collection/components/layer-table/layer-table.js +6 -3
- package/dist/collection/components/map-card/map-card.js +1 -1
- package/dist/collection/components/map-draw-tools/map-draw-tools.js +1 -1
- package/dist/collection/components/map-fullscreen/map-fullscreen.js +1 -1
- package/dist/collection/components/map-layer-picker/map-layer-picker.js +1 -1
- package/dist/collection/components/map-legend/map-legend.js +1 -1
- package/dist/collection/components/map-picker/map-picker.js +1 -1
- package/dist/collection/components/map-search/map-search.js +1 -1
- package/dist/collection/components/map-select-tools/map-select-tools.js +1 -1
- package/dist/collection/components/map-tools/map-tools.js +1 -1
- package/dist/collection/components/pci-calculator/pci-calculator.js +1 -1
- package/dist/collection/components/pdf-download/pdf-download.js +1 -1
- package/dist/collection/components/public-notification/public-notification.js +1 -1
- package/dist/collection/components/refine-selection/refine-selection.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 +4 -2
- package/dist/components/consent-manager.js +1 -1
- package/dist/components/create-feature2.js +10 -4
- package/dist/components/create-related-feature2.js +21 -15
- package/dist/components/crowdsource-manager.js +4 -2
- package/dist/components/crowdsource-reporter.js +8 -6
- package/dist/components/deduct-calculator2.js +1 -1
- package/dist/components/delete-button2.js +1 -1
- package/dist/components/delete-dialog2.js +1 -1
- package/dist/components/edit-card2.js +11 -5
- package/dist/components/feature-details2.js +8 -6
- package/dist/components/feature-list2.js +4 -4
- package/dist/components/floor-filter2.js +1 -1
- package/dist/components/info-card2.js +4 -2
- package/dist/components/json-editor2.js +1 -1
- package/dist/components/layer-table2.js +6 -3
- package/dist/components/map-card2.js +1 -1
- package/dist/components/map-draw-tools2.js +1 -1
- package/dist/components/map-fullscreen2.js +1 -1
- package/dist/components/map-layer-picker2.js +1 -1
- package/dist/components/map-legend2.js +1 -1
- package/dist/components/map-picker2.js +1 -1
- package/dist/components/map-search2.js +1 -1
- package/dist/components/map-select-tools2.js +1 -1
- package/dist/components/map-tools2.js +1 -1
- package/dist/components/pci-calculator.js +1 -1
- package/dist/components/pdf-download2.js +1 -1
- package/dist/components/public-notification.js +1 -1
- package/dist/components/refine-selection2.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_2.entry.js +1 -1
- package/dist/esm/card-manager_3.entry.js +10 -6
- package/dist/esm/consent-manager.entry.js +1 -1
- package/dist/esm/create-feature_4.entry.js +22 -11
- package/dist/esm/create-related-feature_3.entry.js +25 -19
- package/dist/esm/crowdsource-manager.entry.js +3 -2
- package/dist/esm/crowdsource-reporter.entry.js +7 -6
- package/dist/esm/deduct-calculator.entry.js +1 -1
- package/dist/esm/delete-dialog.entry.js +1 -1
- package/dist/esm/feature-list.entry.js +4 -4
- package/dist/esm/json-editor_7.entry.js +7 -7
- 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/pci-calculator.entry.js +1 -1
- package/dist/esm/public-notification.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/layer-table/resources.json +4 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_en.json +4 -1
- package/dist/solutions-components/{p-7e233b70.entry.js → p-0bc11bac.entry.js} +1 -1
- package/dist/solutions-components/{p-e3e35c14.entry.js → p-0efb117f.entry.js} +1 -1
- package/dist/solutions-components/p-12f91837.entry.js +6 -0
- package/dist/solutions-components/p-16c5c285.entry.js +6 -0
- package/dist/solutions-components/p-1dc077ec.entry.js +6 -0
- package/dist/solutions-components/{p-5e4e0f84.entry.js → p-281cc2b2.entry.js} +1 -1
- package/dist/solutions-components/{p-b636a8b4.entry.js → p-48ff9d90.entry.js} +1 -1
- package/dist/solutions-components/{p-832707fd.entry.js → p-505a2880.entry.js} +1 -1
- package/dist/solutions-components/{p-72d04c7a.entry.js → p-70fbbe26.entry.js} +1 -1
- package/dist/solutions-components/{p-837e0939.entry.js → p-7b9f3c85.entry.js} +1 -1
- package/dist/solutions-components/p-84976ab1.entry.js +6 -0
- package/dist/solutions-components/{p-698656b8.entry.js → p-8ef447cc.entry.js} +1 -1
- package/dist/solutions-components/{p-ed1ecb5b.entry.js → p-922e704c.entry.js} +1 -1
- package/dist/solutions-components/p-a2e356f8.entry.js +6 -0
- package/dist/solutions-components/{p-6d20da19.entry.js → p-a9b81651.entry.js} +1 -1
- package/dist/solutions-components/p-abcdbba6.entry.js +6 -0
- package/dist/solutions-components/{p-09041307.entry.js → p-c117b7f7.entry.js} +1 -1
- package/dist/solutions-components/{p-a5eaf7fe.entry.js → p-df018eb2.entry.js} +1 -1
- package/dist/solutions-components/{p-ee3bb943.entry.js → p-e806feda.entry.js} +1 -1
- package/dist/solutions-components/{p-244316dd.entry.js → p-e8df7a70.entry.js} +1 -1
- package/dist/solutions-components/{p-0326f1f4.entry.js → p-fd106abf.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/card-manager/card-manager.d.ts +4 -0
- package/dist/types/components/create-feature/create-feature.d.ts +4 -0
- package/dist/types/components/create-related-feature/create-related-feature.d.ts +23 -19
- package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +4 -0
- package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +4 -0
- package/dist/types/components/edit-card/edit-card.d.ts +8 -4
- package/dist/types/components/feature-details/feature-details.d.ts +4 -0
- package/dist/types/components/info-card/info-card.d.ts +4 -0
- package/dist/types/components.d.ts +64 -0
- package/package.json +1 -1
- package/dist/solutions-components/p-1ac20964.entry.js +0 -6
- package/dist/solutions-components/p-541eb93a.entry.js +0 -6
- package/dist/solutions-components/p-892b42be.entry.js +0 -6
- package/dist/solutions-components/p-9161beb0.entry.js +0 -6
- package/dist/solutions-components/p-decfd5fc.entry.js +0 -6
- package/dist/solutions-components/p-eba271dd.entry.js +0 -6
@@ -261,7 +261,7 @@ const FloorFilter = class {
|
|
261
261
|
* Renders the component.
|
262
262
|
*/
|
263
263
|
render() {
|
264
|
-
return (index.h(index.Host, { key: '
|
264
|
+
return (index.h(index.Host, { key: 'dd7fa68ddc1e417cb8924549e50e81742f9e891a' }, index.h("div", { key: '294837a32ed7e8f955bce7dc2403895c7dd9984f', ref: (el) => { this._floorFilterElement = el; } })));
|
265
265
|
}
|
266
266
|
/**
|
267
267
|
* StencilJS: Called once just after the component is first loaded.
|
@@ -428,7 +428,7 @@ const MapFullscreen = class {
|
|
428
428
|
* Renders the component.
|
429
429
|
*/
|
430
430
|
render() {
|
431
|
-
return (index.h(index.Host, { key: '
|
431
|
+
return (index.h(index.Host, { key: '7eec3dc5ab76a4ad8fdd24d8d18f8e6cf2820dde' }, index.h("div", { key: '2093cc2a6a3678209e61eea63ebde2f69ec00011', class: "fullscreen-widget", ref: (el) => { this._fullscreenElement = el; } })));
|
432
432
|
}
|
433
433
|
/**
|
434
434
|
* StencilJS: Called just after the component updates.
|
@@ -555,7 +555,7 @@ const MapLegend = class {
|
|
555
555
|
* StencilJS: Renders the component.
|
556
556
|
*/
|
557
557
|
render() {
|
558
|
-
return (index.h(index.Host, { key: '
|
558
|
+
return (index.h(index.Host, { key: '768d9d69042516c6d4edc55fcb0af23f90d33e6e' }, index.h("div", { key: 'e1147cf58240e7a6fcb9a00fce3649a380755e3d', ref: (el) => { this._legendElement = el; } })));
|
559
559
|
}
|
560
560
|
/**
|
561
561
|
* StencilJS: Called once just after the component is fully loaded and the first render() occurs.
|
@@ -726,7 +726,7 @@ const MapPicker = class {
|
|
726
726
|
* Renders the component.
|
727
727
|
*/
|
728
728
|
render() {
|
729
|
-
return (index.h(index.Host, { key: '
|
729
|
+
return (index.h(index.Host, { key: '6b4b2bc101fa29a1eaadfdcc772131b7c40cedec' }, this._getToolbar(), this._getMapNameList(this._mapListExpanded)));
|
730
730
|
}
|
731
731
|
/**
|
732
732
|
* Called once after the component has loaded
|
@@ -925,7 +925,7 @@ const MapSearch = class {
|
|
925
925
|
* Renders the component.
|
926
926
|
*/
|
927
927
|
render() {
|
928
|
-
return (index.h(index.Host, { key: '
|
928
|
+
return (index.h(index.Host, { key: '36e0fb49fdedbe9e8789fba37f86a2f2d57b4e45' }, index.h("div", { key: '796ee258723e9277dc98323ba76def22bd7dca3a', class: "search-widget", ref: (el) => { this._searchElement = el; } })));
|
929
929
|
}
|
930
930
|
//--------------------------------------------------------------------------
|
931
931
|
//
|
@@ -1232,7 +1232,7 @@ const MapTools = class {
|
|
1232
1232
|
const toolMarginClass = this.enableSingleExpand ? "margin-top-1-2" : "";
|
1233
1233
|
const toolOrder = this.toolOrder ? this.toolOrder : ["legend", "search", "fullscreen", "floorfilter"];
|
1234
1234
|
const shadowClass = this.stackTools ? "box-shadow" : "";
|
1235
|
-
return (index.h(index.Host, { key: '
|
1235
|
+
return (index.h(index.Host, { key: '6a707a10b3cbe094548a863b13d0852969c46f94' }, index.h("div", { key: 'c1e349ba8577a87f967b31a7a042be30cb933d34', class: containerClass }, this.enableSingleExpand ? (index.h("div", { class: "box-shadow" }, this._getActionGroup(toggleIcon, false, expandTip, () => this._toggleTools()))) : undefined, index.h("div", { key: '7120793f9d707fb0d1914f5aeffb3293532ab891', class: `${toolMarginClass} ${shadowClass} ${toolsClass}` }, this._getMapWidgets(toolOrder))), index.h("basemap-gallery", { key: '11e280302f6b1f5287aa83c7eb33542f3a9d87ab', basemapConfig: this.basemapConfig, class: basemapClass, mapView: this.mapView, ref: (el) => { this._basemapElement = el; } }), index.h("map-search", { key: 'c3afd22dc8d652877f48a6def87e486546993d61', class: searchClass, mapView: this.mapView, ref: (el) => { this._searchElement = el; }, resultGraphicEnabled: true, searchConfiguration: this.searchConfiguration }), index.h("map-legend", { key: 'b8fad3cdbc3b96b4f3441316651ad78b4ed3de65', class: legendClass, mapView: this.mapView, ref: (el) => { this._legendElement = el; } }), index.h("map-fullscreen", { key: 'e34111225f1ec80fedfd548196e407786d28200b', class: fullscreenClass, mapView: this.mapView, onFullscreenStateChange: (evt) => this._fullscreenStateChange(evt.detail), ref: (el) => { this._fullscreenElement = el; } }), index.h("floor-filter", { key: '2db5c7e6182d77786b162692169263495b2752f5', class: floorFilterClass, enabled: this.enableFloorFilter, mapView: this.mapView, ref: (el) => { this._floorFilterElement = el; } })));
|
1236
1236
|
}
|
1237
1237
|
//--------------------------------------------------------------------------
|
1238
1238
|
//
|
@@ -476,7 +476,7 @@ const MapDrawTools = class {
|
|
476
476
|
"border" : "border esri-widget esri-sketch__panel";
|
477
477
|
const undoRedoClass = this.drawMode === interfaces.EDrawMode.SKETCH ?
|
478
478
|
"display-none" : "esri-widget esri-sketch__panel border-left esri-sketch__section";
|
479
|
-
return (index.h(index.Host, { key: '
|
479
|
+
return (index.h(index.Host, { key: '253db0399bab5d5fc6f4232bb537ddeec81fec2c' }, index.h("div", { key: 'bbac53da8b8b1196cc3a7aedf5479cd4e33ab3ea', class: containerClass }, index.h("div", { key: '8d3dae2c2f82f7e4d7aae92d4a4c6050d2a96478', ref: (el) => { this._sketchElement = el; } }), index.h("div", { key: 'd635374374ebdff26157a1258ba84932d491e36a', class: undoRedoClass }, index.h("calcite-action", { key: 'fb437fec19fa7ffc57459e426ba988fd4d50c1e6', disabled: !this.undoEnabled, icon: "undo", onClick: () => this._undo(), scale: "s", text: this._translations.undo }), index.h("calcite-action", { key: 'fd3f4f3e8b722b95c0b7aad1fc6b909a97787b86', disabled: !this.redoEnabled, icon: "redo", onClick: () => this._redo(), scale: "s", text: this._translations.redo })))));
|
480
480
|
}
|
481
481
|
//--------------------------------------------------------------------------
|
482
482
|
//
|
@@ -31,6 +31,7 @@ const CardManager = class {
|
|
31
31
|
this.featureOrRecordSubmitted = index.createEvent(this, "featureOrRecordSubmitted", 7);
|
32
32
|
this.customInfoText = undefined;
|
33
33
|
this.enableEditGeometry = false;
|
34
|
+
this.enableSnapping = false;
|
34
35
|
this.isMobile = undefined;
|
35
36
|
this.layer = undefined;
|
36
37
|
this.locale = undefined;
|
@@ -141,14 +142,14 @@ const CardManager = class {
|
|
141
142
|
const heading = isTable ? this._translations.createRecord : this._translations.createFeature;
|
142
143
|
const guideMsg = this.customInfoText ? this.customInfoText : this.selectingFeatureFromMap ? this._translations.selectFeaturesFromMapToStart : this._translations.selectFeaturesToStart;
|
143
144
|
const showCreateFeatureOrRecordBtn = this.enableCreateFeatures && this.layer?.capabilities?.operations?.supportsAdd;
|
144
|
-
return (index.h(index.Host, { key: '
|
145
|
+
return (index.h(index.Host, { key: '803f5130e6f4fa0bf97cfdd2776e176786e736cc' }, index.h("div", { key: '7c0a756f5de5f536b52d2e9f6629593eb3c85781', class: "overflow-auto height-full" }, index.h("calcite-shell", { key: '9a6366bba429d5c29a5f1c556d6812f44d28ee2c', class: "position-relative " + featuresClass }, index.h("div", { key: '61cb9f7942eb209e5e0bd751ab4b5ca026086882', class: "position-static z-index-500" }, index.h("info-card", { key: '0c3b6f958384dab4bc1db2917a88215bafe330b1', enableEditGeometry: this.enableEditGeometry, enableSnapping: this.enableSnapping, graphics: this._graphics, isLoading: this._cardLoading, isMobile: this.isMobile, locale: this.locale, mapView: this.mapView, showCloseBtn: true }))), index.h("calcite-shell", { key: 'db9233d29cc88ddc6cb023bcf9e9190ecb721214', class: "position-relative " + messageClass }, index.h("calcite-panel", { key: '0d1c22a3ad3d2d2a56054b2e8609697987b45ca7' }, index.h("div", { key: 'cc5f7faa934f474ddca2d0ab74fd46dac240cc6f', class: "padding-1" }, index.h("calcite-notice", { key: '2c2771696892455fcb1ec24d895cd321a84a8f49', icon: this.selectingFeatureFromMap ? "map" : "table", iconFlipRtl: true, open: true }, index.h("div", { key: '0bbbd13e4e9a7b2240a85b41dbd00fc2a7e39c75', slot: "message" }, guideMsg))), !this.isMobile && showCreateFeatureOrRecordBtn && index.h("calcite-button", { key: '67bac627f68fc6bcda2b1a8965ab6d7fb12d2e4c', disabled: !this.layer, onClick: () => this._createFeatureBtnClicked(), slot: "footer", width: "full" }, isTable ? this._translations.createRecord : this._translations.createFeature))), index.h("calcite-shell", { key: 'cd44af48bb05fd6ac41c0d66bdd9e01826ece1a4', class: "position-relative " + createFeatureClass }, index.h("calcite-flow-item", { key: '648dfdc4fb559ecbf64ee43791e3d9799c346f1a', selected: true }, index.h("calcite-panel", { key: '855df56ed576e52c94dbe3cfa8f6d57427a37ba2', heading: heading }, index.h("calcite-action", { key: '156d1b20da3f02de66879531802aa2d2fb99b1ca', class: "back-button hydrated", icon: "chevron-left", onClick: this._backFromCreateFeature.bind(this), scale: "s", slot: "header-actions-start", text: "" }), this.getEditorComponent(), this._showSubmitBtn && index.h("calcite-button", { key: '9b4556876d579a4f2bd02849737cd55b55f87cbd', appearance: "solid", class: "footer-top-button footer-button", onClick: () => void this._createFeature.submit(), slot: "footer", width: "full" }, this._translations.create)))))));
|
145
146
|
}
|
146
147
|
/**
|
147
148
|
* Returns the editor component for adding feature
|
148
149
|
* @returns Node
|
149
150
|
*/
|
150
151
|
getEditorComponent() {
|
151
|
-
return (index.h("div", null, this._showCreateFeatureComponent && index.h("create-feature", { customizeSubmit: true, locale: this.locale, mapView: this.mapView, onDrawComplete: () => { this._showSubmitBtn = true; }, onEditingAttachment: (evt) => { this._showSubmitBtn = !evt.detail; }, onProgressStatus: () => {
|
152
|
+
return (index.h("div", null, this._showCreateFeatureComponent && index.h("create-feature", { customizeSubmit: true, enableSnapping: this.enableSnapping, locale: this.locale, mapView: this.mapView, onDrawComplete: () => { this._showSubmitBtn = true; }, onEditingAttachment: (evt) => { this._showSubmitBtn = !evt.detail; }, onProgressStatus: () => {
|
152
153
|
setTimeout(() => {
|
153
154
|
this._isFeatureCreated = false;
|
154
155
|
}, 2000);
|
@@ -834,8 +835,8 @@ const LayerTable = class {
|
|
834
835
|
const tableHeightClass = this.isMobile ? "height-full" : "height-full-adjusted";
|
835
836
|
const showSearch = this._canShowFullTextSearch();
|
836
837
|
this._validateActiveActions();
|
837
|
-
return (index.h(index.Host, { key: '
|
838
|
-
index.h("div", { key: '
|
838
|
+
return (index.h(index.Host, { key: '1feac862589dfbc7835d3662f80265be6a93d968' }, index.h("div", { key: '16be280b961c35f9a05f9fde0d4e77b5491a9c50' }, index.h("calcite-scrim", { key: '914fa2714bf757e33cb6a39f1e98abc0b7cbf480', class: scrimClass, loading: this._queryingData }), index.h("calcite-shell", { key: '4df46fccce95a3d88369087660a6984efbd62528' }, this._getTableControlRow("header"), index.h("div", { key: '2874a9c724fabd222c455e24bc0f815244509b3d', class: `width-full ${tableHeightClass}` }, index.h("calcite-panel", { key: '64ed720c02ec2907f99a9ce468fc8b5c38f63360', class: "height-full width-full" }, showSearch &&
|
839
|
+
index.h("div", { key: 'e7220fd93e5120fd39b10f713fb536b1a4e83590', class: "search-container" }, index.h("calcite-input", { key: '1717d85eacff6fd1fc23de346be916b817b32a45', class: "search", clearable: true, icon: "search", onCalciteInputChange: (evt) => void this._searchTextChanged(evt), placeholder: this._searchPlaceHolder, title: this._searchPlaceHolder, type: "search" })), index.h("calcite-loader", { key: '0385ff6220ab46f816d73341b20519ad6a1c181b', class: loadingClass, label: this._translations.fetchingData, scale: "l" }), index.h("div", { key: '9fa317ea8857cc78531fc4a459e4636e674482cd', class: tableNodeClass, ref: this.onTableNodeCreate }))), !this.isMobile ? (index.h("div", { class: "bottom-left text-color height-19", id: "solutions-selected-count-div" }, this._translations.recordsSelected
|
839
840
|
.replace("{{total}}", total)
|
840
841
|
.replace("{{selected}}", selected))) : undefined), this.createFilterModal && this._filterModal())));
|
841
842
|
}
|
@@ -2095,7 +2096,10 @@ const LayerTable = class {
|
|
2095
2096
|
};
|
2096
2097
|
const fields = this._table.columns.toArray().reduce((prev, cur) => {
|
2097
2098
|
if (!cur.hidden) {
|
2098
|
-
|
2099
|
+
const name = cur?.name || cur?.fieldName;
|
2100
|
+
if (name) {
|
2101
|
+
prev.push(name.toLocaleLowerCase());
|
2102
|
+
}
|
2099
2103
|
}
|
2100
2104
|
return prev;
|
2101
2105
|
}, []);
|
@@ -2640,7 +2644,7 @@ const MapCard = class {
|
|
2640
2644
|
const mapHeightClass = this.mapInfos?.length > 1 || this.isMapLayout ? "map-height" : "height-full";
|
2641
2645
|
const progressClass = this.isMapLayout ? "" : "display-none";
|
2642
2646
|
this._validateActiveActions();
|
2643
|
-
return (index.h(index.Host, { key: '
|
2647
|
+
return (index.h(index.Host, { key: '5861d407b8529c6834d5d05450693d1fff2b71ee' }, index.h("div", { key: '01e028e8a00fc66d5eaa8eb7f85b58d579c3e7ff', class: `${mapContainerClass} width-full`, ref: (el) => this._toolbar = el }, this._getActionBar(), !this.isMobile && this.isMapLayout && this._getDropdown("more-table-options"), this.enableShare && !this.isMobile && this.isMapLayout ? this._getShare("share") : undefined), index.h("calcite-progress", { key: '6a0b7a2a734f3631b8c8a712acaf60a9e95c6c16', class: progressClass, value: 0 }), index.h("div", { key: '74cebf9c194bfc5b72be3b397821f586a5923fa4', class: `${mapHeightClass} ${mapClass}`, ref: (el) => (this._mapDiv = el) }), index.h("map-tools", { key: '6c87207eecaacf61c594f1036af38c0548ea1767', 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, locale: this.locale, mapView: this.mapView, mapWidgetsSize: this.mapWidgetsSize, position: this.mapWidgetsPosition, ref: (el) => this._mapTools = el, searchConfiguration: this._searchConfiguration, stackTools: this.stackTools, toolOrder: this.toolOrder })));
|
2644
2648
|
}
|
2645
2649
|
/**
|
2646
2650
|
* Called each time after the component is loaded
|
@@ -8575,7 +8575,7 @@ const ConsentManager = class {
|
|
8575
8575
|
* Renders the component.
|
8576
8576
|
*/
|
8577
8577
|
render() {
|
8578
|
-
return (index$1.h(index$1.Host, { key: '6b5a4571e972d6d79948cbf186119372456b5e1e' }
|
8578
|
+
return (index$1.h(index$1.Host, { key: '6b5a4571e972d6d79948cbf186119372456b5e1e' }));
|
8579
8579
|
}
|
8580
8580
|
/**
|
8581
8581
|
* Called once after the component is loaded
|
@@ -21,7 +21,7 @@ require('./solution-resource-d0a2f7fe.js');
|
|
21
21
|
require('./restHelpersGet-e4639890.js');
|
22
22
|
require('./update-243ea407.js');
|
23
23
|
|
24
|
-
const createFeatureCss = ":host{display:block}.esri-editor__panel-toolbar{display:none !important}.esri-editor__panel-content{padding-block:0px !important}.esri-editor .esri-item-list__group__header{display:none !important}.esri-editor__panel-content__section .esri-widget__heading{display:none !important}.esri-editor .esri-item-list__filter-container--sticky{padding-block:0px !important;padding-inline:10px !important}.search-widget{width:92% !important;margin:5px 14px 20px 14px}.display-none{display:none !important}.hide-map{height:1%;visibility:hidden}.show-map{padding:10px !important;position:absolute !important;bottom:0;height:auto !important;width:calc(100% - 22px)}.notice-msg{padding:10px;width:calc(100% - 20px)}.esri-editor__panel-content{padding-block:10px !important}@media only screen and (max-width: 600px){.esri-editor__panel-content{padding-block:0 !important;min-height:0 !important}}";
|
24
|
+
const createFeatureCss = ":host{display:block}.hide-editor-toolbar .esri-editor__panel-toolbar{display:none !important}.esri-editor__panel-content{padding-block:0px !important}.esri-editor .esri-item-list__group__header{display:none !important}.esri-editor__panel-content__section .esri-widget__heading{display:none !important}.esri-editor .esri-item-list__filter-container--sticky{padding-block:0px !important;padding-inline:10px !important}.search-widget{width:92% !important;margin:5px 14px 20px 14px}.display-none{display:none !important}.hide-map{height:1%;visibility:hidden}.show-map{padding:10px !important;position:absolute !important;bottom:0;height:auto !important;width:calc(100% - 22px)}.notice-msg{padding:10px;width:calc(100% - 20px)}.esri-editor__panel-content{padding-block:10px !important}@media only screen and (max-width: 600px){.esri-editor__panel-content{padding-block:0 !important;min-height:0 !important}}";
|
25
25
|
const CreateFeatureStyle0 = createFeatureCss;
|
26
26
|
|
27
27
|
const CreateFeature = class {
|
@@ -35,6 +35,7 @@ const CreateFeature = class {
|
|
35
35
|
this.modeChanged = index.createEvent(this, "modeChanged", 7);
|
36
36
|
this.customizeSubmit = false;
|
37
37
|
this.enableSearch = false;
|
38
|
+
this.enableSnapping = false;
|
38
39
|
this.floorLevel = undefined;
|
39
40
|
this.formElements = undefined;
|
40
41
|
this.isMobile = undefined;
|
@@ -295,8 +296,8 @@ const CreateFeature = class {
|
|
295
296
|
else if (this._currentPage === 'featureForm') {
|
296
297
|
guidingMsg = this._translations.provideDetailsMsg;
|
297
298
|
}
|
298
|
-
return (index.h(index.Fragment, { key: '
|
299
|
-
index.h("div", { key: '
|
299
|
+
return (index.h(index.Fragment, { key: 'b480d2d78dbf168d351afb4212dcc6d49cb39c72' }, showGuidingMsg && index.h("calcite-notice", { key: 'e8cc752d19038993393d2d86cb934ae677cfc96f', class: "notice-msg", icon: "lightbulb", kind: "success", open: true, ref: el => this._calciteNotice = el }, index.h("div", { key: '85b53eb990d6566e66d2eecfae6e90ec1b368e0c', slot: "message" }, guidingMsg)), index.h("calcite-loader", { key: 'ee1ece408069e5112165860dd01f4dca526c0b4f', class: loaderClass, label: "", scale: "s" }), index.h("div", { key: '8a978d99246bd98a91e6fc6695f4159342bbf55a', class: featureFormClass, id: "feature-form" }), this.enableSearch &&
|
300
|
+
index.h("div", { key: '8678f6645b86202155a64dd7cfcb05f2c805e5f8', class: `search-widget ${showSearchWidget} ${featureFormClass}`, id: "search-widget-ref", ref: el => this._searchDiv = el }), index.h("div", { key: '738f720b5773abeda51eb4abf004e14e0c73c934', class: `${mobileMapClass}`, ref: (el) => { this._mapViewContainer = el; } })));
|
300
301
|
}
|
301
302
|
//--------------------------------------------------------------------------
|
302
303
|
//
|
@@ -375,6 +376,9 @@ const CreateFeature = class {
|
|
375
376
|
const layerInfos = [];
|
376
377
|
this._container = document.createElement("div");
|
377
378
|
this._container?.classList.add("display-none");
|
379
|
+
if (!this.enableSnapping) {
|
380
|
+
this._container.classList.add("hide-editor-toolbar");
|
381
|
+
}
|
378
382
|
const allMapLayers = await mapViewUtils.getAllLayers(this._updatedMapView);
|
379
383
|
this._selectedLayer = await mapViewUtils.getLayerOrTable(this.mapView, this.selectedLayerId);
|
380
384
|
// if layer is selected then only use the layerInfos while initializing the editor widget
|
@@ -394,7 +398,8 @@ const CreateFeature = class {
|
|
394
398
|
view: this._updatedMapView,
|
395
399
|
layerInfos: layerInfos,
|
396
400
|
visibleElements: {
|
397
|
-
|
401
|
+
settingsMenu: this.enableSnapping,
|
402
|
+
snappingControls: this.enableSnapping,
|
398
403
|
createFeaturesSection: true,
|
399
404
|
editFeaturesSection: false,
|
400
405
|
flow: false
|
@@ -790,7 +795,7 @@ const DeleteButton = class {
|
|
790
795
|
* Renders the component.
|
791
796
|
*/
|
792
797
|
render() {
|
793
|
-
return (index.h(index.Host, { key: '
|
798
|
+
return (index.h(index.Host, { key: 'a8b845e5a7283318d4e313914e8bf992c5405d82' }, this.buttonType === "button" ? (index.h("calcite-button", { appearance: "outline", disabled: !this._deleteEndabled, id: "solutions-delete", kind: "danger", onClick: () => this._delete(), width: "full" }, this._translations.deleteCount.replace("{{n}}", this.ids.length.toString()))) : (index.h("calcite-action", { appearance: "solid", disabled: !this._deleteEndabled, id: this.icon, onClick: () => this._delete(), scale: "s", text: this._translations.delete }, index.h("calcite-button", { appearance: "transparent", iconStart: this.icon, kind: "danger" }, this._translations.delete))), this._deleteMessage(), index.h("calcite-tooltip", { key: '63e746d5066e96a13066cae6d3ad0b23c81437dc', placement: "bottom", "reference-element": this.buttonType === "button" ? "solutions-delete" : this.icon }, index.h("span", { key: '9f6708e8ff0255d6634c69cb66d9544dc5b053ba' }, this._translations.delete))));
|
794
799
|
}
|
795
800
|
/**
|
796
801
|
* StencilJS: Called once just after the component is fully loaded and the first render() occurs.
|
@@ -844,7 +849,7 @@ const DeleteButton = class {
|
|
844
849
|
};
|
845
850
|
DeleteButton.style = DeleteButtonStyle0;
|
846
851
|
|
847
|
-
const editCardCss = ":host{display:block}.padding-bottom-1{padding-bottom:1rem}.font-bold{font-weight:var(--calcite-font-weight-bold)}.font-500{font-weight:var(--calcite-font-weight-medium)}.font-italic{font-style:italic}#feature-form{padding-top:0px}.padding-sides-bottom-1{padding:0 1rem 1rem 1rem}.position-relative{position:relative}.esri-editor__prompt--danger{position:relative !important;width:100% !important;background-color:var(--calcite-color-foreground-1) !important}.esri-feature__content-node{background-color:var(--calcite-color-foreground-1) !important}.esri-editor__panel-toolbar{display:none !important}.position-absolute{position:absolute;top:0;right:0;bottom:0;left:0;overflow:auto}.esri-editor__panel-content{padding-block:10px !important}";
|
852
|
+
const editCardCss = ":host{display:block}.padding-bottom-1{padding-bottom:1rem}.font-bold{font-weight:var(--calcite-font-weight-bold)}.font-500{font-weight:var(--calcite-font-weight-medium)}.font-italic{font-style:italic}#feature-form{padding-top:0px}.padding-sides-bottom-1{padding:0 1rem 1rem 1rem}.position-relative{position:relative}.esri-editor__prompt--danger{position:relative !important;width:100% !important;background-color:var(--calcite-color-foreground-1) !important}.esri-feature__content-node{background-color:var(--calcite-color-foreground-1) !important}.hide-editor-toolbar .esri-editor__panel-toolbar{display:none !important}.position-absolute{position:absolute;top:0;right:0;bottom:0;left:0;overflow:auto}.esri-editor__panel-content{padding-block:10px !important}";
|
848
853
|
const EditCardStyle0 = editCardCss;
|
849
854
|
|
850
855
|
const EditCard = class {
|
@@ -855,11 +860,12 @@ const EditCard = class {
|
|
855
860
|
this.editsComplete = index.createEvent(this, "editsComplete", 7);
|
856
861
|
this.refreshGraphics = index.createEvent(this, "refreshGraphics", 7);
|
857
862
|
this.enableEditGeometry = false;
|
863
|
+
this.enableSnapping = false;
|
864
|
+
this.graphicIndex = 0;
|
858
865
|
this.graphics = undefined;
|
859
866
|
this.locale = undefined;
|
860
867
|
this.mapView = undefined;
|
861
868
|
this.open = false;
|
862
|
-
this.graphicIndex = 0;
|
863
869
|
this._editorLoading = false;
|
864
870
|
this._translations = undefined;
|
865
871
|
}
|
@@ -1036,7 +1042,7 @@ const EditCard = class {
|
|
1036
1042
|
!this.graphics[0].layer.editingEnabled : true;
|
1037
1043
|
const tableNodeClass = this._editorLoading ? "display-none" : "position-absolute";
|
1038
1044
|
const loadingClass = this._editorLoading ? "" : "display-none";
|
1039
|
-
return (index.h(index.Host, { key: '
|
1045
|
+
return (index.h(index.Host, { key: '8491a0fbeefc9533ed6898cf4734ec98dddd7f62' }, index.h("div", { key: 'a98e923e1d697559c37ce85fbd57fc1688171cb2', class: "position-absolute" }, editDisabled ? (index.h("calcite-notice", { kind: "warning", open: true, slot: "content-top", width: "full" }, index.h("div", { slot: "message" }, this._translations.enableEditing))) : undefined, index.h("div", { key: 'ac5eed8a614523e1ddaad0eaf3b973faf28fdbf2', class: "position-absolute" }, index.h("div", { key: '63778d7c29d6fd26e0c8a534dc70da4a0e94075d', class: tableNodeClass, id: "feature-form", ref: (el) => this._editContainer = el }), index.h("calcite-loader", { key: '641a987e8860222a1a3b6f64e700a16c03463c81', class: loadingClass, label: "", scale: "s" })))));
|
1040
1046
|
}
|
1041
1047
|
//--------------------------------------------------------------------------
|
1042
1048
|
//
|
@@ -1077,7 +1083,8 @@ const EditCard = class {
|
|
1077
1083
|
layerInfos,
|
1078
1084
|
visibleElements: {
|
1079
1085
|
flow: true,
|
1080
|
-
|
1086
|
+
settingsMenu: this.enableSnapping,
|
1087
|
+
snappingControls: this.enableSnapping,
|
1081
1088
|
},
|
1082
1089
|
container
|
1083
1090
|
});
|
@@ -1100,6 +1107,9 @@ const EditCard = class {
|
|
1100
1107
|
this.open = false;
|
1101
1108
|
}
|
1102
1109
|
});
|
1110
|
+
if (!this.enableSnapping) {
|
1111
|
+
container.classList.add("hide-editor-toolbar");
|
1112
|
+
}
|
1103
1113
|
// had issues with destroy before adding like this
|
1104
1114
|
this._editContainer.appendChild(container);
|
1105
1115
|
this.editorInitialized.emit(this._editor);
|
@@ -1159,6 +1169,7 @@ const InfoCard = class {
|
|
1159
1169
|
this.clearSelection = index.createEvent(this, "clearSelection", 7);
|
1160
1170
|
this.selectionChanged = index.createEvent(this, "selectionChanged", 7);
|
1161
1171
|
this.enableEditGeometry = false;
|
1172
|
+
this.enableSnapping = false;
|
1162
1173
|
this.graphics = undefined;
|
1163
1174
|
this.isLoading = false;
|
1164
1175
|
this.isMobile = undefined;
|
@@ -1399,8 +1410,8 @@ const InfoCard = class {
|
|
1399
1410
|
// if user has navigated to the related feature then pass the related feature to the graphics
|
1400
1411
|
const graphics = this._relatedFeature ? [this._relatedFeature] : this.graphics;
|
1401
1412
|
const selectedFeatureIndex = this._navigatedToRelatedFeature ? 0 : this._features?.selectedFeatureIndex;
|
1402
|
-
return (index.h(index.Host, { key: '
|
1403
|
-
index.h("div", { key: '
|
1413
|
+
return (index.h(index.Host, { key: 'b62820abf5a5ce69261a7170dbc102ee8f656907' }, index.h("calcite-shell", { key: '6c26e6c6e0247f96183ab7d300d2591c5beb5b94', style: { position: this.position } }, this._getHeader(), index.h("calcite-loader", { key: 'fc153dc30be352de54fd2d197e154cd09a8f39f2', class: loadingClass, label: this._translations.fetchingData }), index.h("div", { key: '8faba972e54dbc4086a5c74187279149c7bbfe6e', class: "esri-widget feature-node " + featureNodeClass, id: this._featuresNodeId }), index.h("div", { key: '3374bace58475d983d0b6b57c1c45faa6bddef6e', class: `${editButtonClass} width-100`, slot: "footer" }, this.allowEditing &&
|
1414
|
+
index.h("div", { key: '567ed97ca7a9a1d7245caa21ca23effe728b0ac9', class: "display-flex top-border padding-1-2" }, index.h("calcite-button", { key: 'caae5c4c5834bf7658bbe12c329ead2f8150f8cd', appearance: "solid", id: "solutions-edit", onClick: () => this._openEditRecord(), width: "full" }, this._translations.edit), this.isMobile && deleteEnabled ? (index.h("delete-button", { class: "padding-inline-start-1 width-100", id: "solutions-delete", ids: ids, layer: this._layer, locale: this.locale, onEditsComplete: () => this._closePopup() })) : undefined, index.h("calcite-tooltip", { key: '57681bf90ac5d7c2a4bc9d3e15e3a93a675fbed1', placement: "bottom", "reference-element": "solutions-edit" }, index.h("span", { key: '018a661cd5f88ea5be62acbe762308ef25e7b681' }, this._translations.edit)), this.isMobile && deleteEnabled ? (index.h("calcite-tooltip", { placement: "bottom", "reference-element": "solutions-delete" }, index.h("span", null, this._translations.delete))) : undefined), this.paginationEnabled && !nextBackDisabled && index.h("div", { key: '92ba3836a0b5fcd2717966ef6162e10968d43126', class: `display-flex padding-1-2 button-container top-border ${nextBackClass}` }, index.h("div", { key: 'bf23c4f203efcea7c613d77d86efada639fa7c1b' }, index.h("calcite-button", { key: 'a416b24f360374e73679df9027b13f7651dbb723', appearance: 'transparent', disabled: nextBackDisabled, iconFlipRtl: "both", iconStart: "chevron-left", id: "solutions-back", onClick: () => this._back(), width: "full" }), index.h("calcite-tooltip", { key: '8849ca323a75d2fd21393a133f49c1ea201178d4', placement: "top", "reference-element": "solutions-back" }, index.h("span", { key: '84cd60a8c7a5678d99e2d803ebb705e986591cb5' }, this._translations.back))), index.h("calcite-action", { key: '7d4e9984eda51a7b9d67bcc2bce3b258566bbeee', class: 'pagination-action', iconFlipRtl: true, onClick: () => this._toggleListView(), scale: "s", text: "", textEnabled: true }, index.h("span", { key: 'a14051ff8801623cc1dda9895f9bf98b5b4b8a36', class: "pagination-count" }, this._count)), index.h("div", { key: '65bd33feeee7e1606548a9b21b9a3d1b78bc8931' }, index.h("calcite-button", { key: '228969faa39e600546e8b9a00c888df4d00a6477', appearance: "transparent", disabled: nextBackDisabled, iconFlipRtl: "both", iconStart: "chevron-right", id: "solutions-next", onClick: () => this._next(), width: "full" }), index.h("calcite-tooltip", { key: '8f343657583d421b7dbbd79067af998d11c30855', placement: "top", "reference-element": "solutions-next" }, index.h("span", { key: '98fc622e0ba9ae3878ac0cbc8c2c119fe5b4b489' }, this._translations.next))))), index.h("edit-card", { key: 'c99b429d633117c673a7c8effc7cb689233bce1e', class: editClass, enableEditGeometry: this.enableEditGeometry, enableSnapping: this.enableSnapping, graphicIndex: selectedFeatureIndex, graphics: graphics, locale: this.locale, mapView: this.mapView, open: this._editRecordOpen }), index.h("calcite-alert", { key: '82ac3ceb259b6f87b8bbbb196fcf61de705ed019', icon: "layer-broken", kind: "warning", label: "", onCalciteAlertClose: () => this._alertClosed(), open: this._alertOpen, placement: "top" }, index.h("div", { key: 'f113eb60f51d3b1d9fddf9c58e89c792e41e95b5', slot: "title" }, this._translations.editDisabled), index.h("div", { key: 'c010ac376e6e3497d86326bcb1e16976a4a026cd', slot: "message" }, this._translations.enableEditing)))));
|
1404
1415
|
}
|
1405
1416
|
//--------------------------------------------------------------------------
|
1406
1417
|
//
|
@@ -14,7 +14,7 @@ const esriLoader = require('./esri-loader-08dc41bd.js');
|
|
14
14
|
require('./interfaces-09c4c40e.js');
|
15
15
|
require('./_commonjsHelpers-baf43783.js');
|
16
16
|
|
17
|
-
const createRelatedFeatureCss = ":host{display:block}.esri-editor__panel-toolbar{display:none !important}.display-none{display:none !important}.esri-editor__panel-content{padding-block:10px !important}.notice-msg{padding:10px;width:calc(100% - 20px)}";
|
17
|
+
const createRelatedFeatureCss = ":host{display:block}.hide-editor-toolbar .esri-editor__panel-toolbar{display:none !important}.display-none{display:none !important}.esri-editor__panel-content{padding-block:10px !important}.notice-msg{padding:10px;width:calc(100% - 20px)}";
|
18
18
|
const CreateRelatedFeatureStyle0 = createRelatedFeatureCss;
|
19
19
|
|
20
20
|
const CreateRelatedFeature = class {
|
@@ -24,12 +24,13 @@ const CreateRelatedFeature = class {
|
|
24
24
|
this.fail = index.createEvent(this, "fail", 7);
|
25
25
|
this.isActionPending = index.createEvent(this, "isActionPending", 7);
|
26
26
|
this.formReady = index.createEvent(this, "formReady", 7);
|
27
|
+
this.customizeSubmit = false;
|
28
|
+
this.enableSnapping = false;
|
27
29
|
this.locale = undefined;
|
28
30
|
this.mapView = undefined;
|
29
|
-
this.table = undefined;
|
30
31
|
this.selectedFeature = undefined;
|
31
|
-
this.customizeSubmit = false;
|
32
32
|
this.showGuidingMsg = true;
|
33
|
+
this.table = undefined;
|
33
34
|
this._editorLoading = false;
|
34
35
|
this._translations = undefined;
|
35
36
|
}
|
@@ -44,23 +45,23 @@ const CreateRelatedFeature = class {
|
|
44
45
|
* The Editor constructor
|
45
46
|
*/
|
46
47
|
Editor;
|
47
|
-
/**
|
48
|
-
* esri/widgets/Editor: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html
|
49
|
-
* The Editor instance
|
50
|
-
*/
|
51
|
-
_editor;
|
52
48
|
/**
|
53
49
|
* esri/core/reactiveUtils: https://developers.arcgis.com/javascript/latest/api-reference/esri-core-reactiveUtils.html
|
54
50
|
*/
|
55
51
|
reactiveUtils;
|
52
|
+
/**
|
53
|
+
* boolean: Flag to maintain the add attachment
|
54
|
+
*/
|
55
|
+
_addingAttachment;
|
56
56
|
/**
|
57
57
|
* HTMLDivElement: The node the editor will be added to
|
58
58
|
*/
|
59
59
|
_container;
|
60
60
|
/**
|
61
|
-
|
62
|
-
|
63
|
-
|
61
|
+
* esri/widgets/Editor: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html
|
62
|
+
* The Editor instance
|
63
|
+
*/
|
64
|
+
_editor;
|
64
65
|
/**
|
65
66
|
* boolean: Flag to maintain form submission using submit button
|
66
67
|
*/
|
@@ -168,7 +169,7 @@ const CreateRelatedFeature = class {
|
|
168
169
|
}
|
169
170
|
render() {
|
170
171
|
const loaderClass = this._editorLoading ? "" : "display-none";
|
171
|
-
return (index.h(index.Fragment, { key: '
|
172
|
+
return (index.h(index.Fragment, { key: '6c2bfcf17fc2ef0f1fc16c3c45d98b58101f629b' }, this.showGuidingMsg && index.h("calcite-notice", { key: 'df2091f0435ef5ee4adcf71e177e35429c831d63', class: "notice-msg", icon: "lightbulb", kind: "success", open: true }, index.h("div", { key: 'e0180f8e8d6c615507c18ad3d1b0c248d42a754f', slot: "message" }, this._translations.provideDetailsMsg)), index.h("calcite-loader", { key: '235fb4b02ee3f6576ad5620517da6386774cfb7d', class: loaderClass, label: "", scale: "s" })));
|
172
173
|
}
|
173
174
|
/**
|
174
175
|
* StencilJS: Called once just after the component is fully loaded and the first render() occurs.
|
@@ -194,11 +195,15 @@ const CreateRelatedFeature = class {
|
|
194
195
|
}
|
195
196
|
this._container = document.createElement("div");
|
196
197
|
this._container?.classList.add("display-none");
|
198
|
+
if (!this.enableSnapping) {
|
199
|
+
this._container.classList.add("hide-editor-toolbar");
|
200
|
+
}
|
197
201
|
this._editor = new this.Editor({
|
198
202
|
view: this.mapView,
|
199
203
|
visibleElements: {
|
200
204
|
flow: true,
|
201
|
-
|
205
|
+
settingsMenu: this.enableSnapping,
|
206
|
+
snappingControls: this.enableSnapping,
|
202
207
|
},
|
203
208
|
container: this._container
|
204
209
|
});
|
@@ -374,6 +379,7 @@ const FeatureDetails = class {
|
|
374
379
|
this.addComment = index.createEvent(this, "addComment", 7);
|
375
380
|
this.likeOrDislikeClicked = index.createEvent(this, "likeOrDislikeClicked", 7);
|
376
381
|
this.featureSelectionChange = index.createEvent(this, "featureSelectionChange", 7);
|
382
|
+
this.enableSnapping = false;
|
377
383
|
this.mapView = undefined;
|
378
384
|
this.graphics = undefined;
|
379
385
|
this.reportingOptions = undefined;
|
@@ -528,12 +534,12 @@ const FeatureDetails = class {
|
|
528
534
|
render() {
|
529
535
|
//When related features found show comments list of only those features else comments list will be empty
|
530
536
|
const commentsListWhereClause = this._relatedFeaturesOIDs?.length > 0 ? `objectId in(${this._relatedFeaturesOIDs})` : '1=0';
|
531
|
-
return (index.h("calcite-panel", { key: '
|
532
|
-
index.h("div", { key: '
|
533
|
-
index.h("calcite-button", { key: '
|
534
|
-
index.h("calcite-button", { key: '
|
535
|
-
index.h("calcite-button", { key: '
|
536
|
-
index.h("feature-list", { key: '
|
537
|
+
return (index.h("calcite-panel", { key: '369276b48d989c7e15e86a507414e68b55c842b0', "full-height": true }, index.h("info-card", { key: '1cc64b674205bc2b1b7a7c65d9f99ae551daf89d', allowEditing: false, enableSnapping: this.enableSnapping, graphics: this.graphics, highlightEnabled: false, isLoading: false, isMobile: false, locale: this.locale, mapView: this.mapView, onSelectionChanged: (e) => { this.featureSelectionChange.emit(e.detail); }, paginationEnabled: false, position: "relative", ref: el => this._infoCard = el }), (this._likeFieldAvailable || this._dislikeFieldAvailable || this._commentsAvailable) &&
|
538
|
+
index.h("div", { key: '52d494236fbf3ea0db4894600885f25d8c9c021f', class: "buttons-container" }, this._commentsAvailable &&
|
539
|
+
index.h("calcite-button", { key: 'f9844e33d90a3d5c4b950e9d7dcbd8c1f2b541af', appearance: "transparent", iconEnd: "speech-bubble", kind: "neutral", onClick: () => { this.addComment.emit(); }, scale: 'm' }, this._relatedFeaturesOIDs.length), this._likeFieldAvailable &&
|
540
|
+
index.h("calcite-button", { key: '0912473490c6ada2ba3e3a703a37d26e752ee4d5', appearance: "transparent", iconEnd: "thumbs-up", kind: this._isLikeBtnClicked ? "brand" : "neutral", loading: this._updating, onClick: this.onLikeButtonClick.bind(this), scale: 'm' }, this._likeCount ?? this._selectedGraphic.attributes[this._likeField] ?? 0), this._dislikeFieldAvailable &&
|
541
|
+
index.h("calcite-button", { key: 'e6d62adf0d5669f50b829e78bd2b224d1e400b36', appearance: "transparent", iconEnd: "thumbs-down", kind: this._isDislikeBtnClicked ? "brand" : "neutral", loading: this._updating, onClick: this.onDislikeButtonClick.bind(this), scale: 'm' }, this._disLikeCount ?? this._selectedGraphic.attributes[this._dislikeField] ?? 0)), this.relatedTableId && this._commentsAvailable &&
|
542
|
+
index.h("feature-list", { key: '8cd2570111a3425e6c4d9d8b7de1e2b522ce8833', class: "height-full", locale: this.locale, mapView: this.mapView, onFeatureSelect: (e) => { this.commentSelect.emit(e.detail); }, pageSize: 5, ref: el => this._commentsList = el, selectedLayerId: this.relatedTableId, showErrorWhenNoFeatures: false, showFullTitle: this.showFullCommentTitle, showInitialLoading: false, showUserImageInList: this.showUserImageInCommentsList, textSize: "small", whereClause: commentsListWhereClause })));
|
537
543
|
}
|
538
544
|
/**
|
539
545
|
* Load esri javascript api modules
|
@@ -46,6 +46,7 @@ const CrowdsourceManager = class {
|
|
46
46
|
this.enableLegend = true;
|
47
47
|
this.enableSearch = true;
|
48
48
|
this.enableShare = false;
|
49
|
+
this.enableSnapping = true;
|
49
50
|
this.enableZoom = true;
|
50
51
|
this.locale = undefined;
|
51
52
|
this.mapInfos = [];
|
@@ -270,7 +271,7 @@ const CrowdsourceManager = class {
|
|
270
271
|
render() {
|
271
272
|
// only avoid border when we have a header color that is not white
|
272
273
|
const borderClass = this.popupHeaderColor && this.popupHeaderColor !== "#FFFFFF" ? "border-width-0" : "";
|
273
|
-
return (index.h(index.Host, { key: '
|
274
|
+
return (index.h(index.Host, { key: 'cb38f5440e7f36f0285b41a7193e58be94e6cbb7' }, index.h("calcite-shell", { key: 'dd7b80c00af2b2e28dd5cf7662cfc80d5a46f277', class: "position-relative" }, index.h("calcite-panel", { key: '5b38f18d4db6132822b622892b9eff5bffbdea2b', class: `width-full height-full ${borderClass}`, loading: this._isLoading }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter()), this._filterModal(), this._deleteModal()));
|
274
275
|
}
|
275
276
|
/**
|
276
277
|
* Called after each render
|
@@ -501,7 +502,7 @@ const CrowdsourceManager = class {
|
|
501
502
|
const isTableLayout = this.appLayout === 'tableView';
|
502
503
|
const cardManagerHeight = isTableLayout && this.mapInfos?.length > 1 ? "adjusted-height-100-51" : isMapLayout || isTableLayout ? "height-full" : (this._numSelected > 0 && !this._isMobile) ? "height-50" : !this._showInformationHeader ? "adjusted-height-50_25" : !this._isPortraitMobile ? "height-50" : "height-full";
|
503
504
|
const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
|
504
|
-
return (index.h("div", { class: `width-50 height-full ${themeClass}` }, index.h("card-manager", { class: `${cardManagerHeight} width-full`, customInfoText: this.customInfoText, enableCreateFeatures: this._enableCreateFeatures && !this._isMobile, enableEditGeometry: this?._mapInfo?.enableEditGeometry, isMobile: this._isPortraitMobile, layer: this._layer, locale: this.locale, mapView: this?._mapView, onBackFromCreateWorkFlow: () => {
|
505
|
+
return (index.h("div", { class: `width-50 height-full ${themeClass}` }, index.h("card-manager", { class: `${cardManagerHeight} width-full`, customInfoText: this.customInfoText, enableCreateFeatures: this._enableCreateFeatures && !this._isMobile, enableEditGeometry: this?._mapInfo?.enableEditGeometry, enableSnapping: this.enableSnapping, isMobile: this._isPortraitMobile, layer: this._layer, locale: this.locale, mapView: this?._mapView, onBackFromCreateWorkFlow: () => {
|
505
506
|
this._showInformationHeader = true;
|
506
507
|
}, onCreateWorkFlowStarted: () => {
|
507
508
|
this.appLayout = this._layer.isTable ? "tableView" : "mapView";
|
@@ -33,6 +33,7 @@ const CrowdsourceReporter = class {
|
|
33
33
|
this.enableLogin = undefined;
|
34
34
|
this.enableNewReports = undefined;
|
35
35
|
this.enableSearch = true;
|
36
|
+
this.enableSnapping = false;
|
36
37
|
this.enableZoom = true;
|
37
38
|
this.isMobile = undefined;
|
38
39
|
this.layerExpressions = [];
|
@@ -381,7 +382,7 @@ const CrowdsourceReporter = class {
|
|
381
382
|
*/
|
382
383
|
render() {
|
383
384
|
const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
|
384
|
-
return (index.h(index.Host, { key: '
|
385
|
+
return (index.h(index.Host, { key: 'b262a653d9af3a8f332f416af7f297cc15ac3355' }, this._reportSubmitted && index.h("calcite-alert", { key: 'efe33e5ec3ed708d21f8464aa70eb7ce9a258035', "auto-close": true, class: themeClass + " report-submitted-msg", icon: "check-circle", kind: "success", label: "", onCalciteAlertClose: () => { this._reportSubmitted = false; }, open: true, placement: "top" }, index.h("div", { key: '6c6a35bc84da9a13241313dd15dc4a5905f59866', slot: "message" }, this.reportSubmittedMessage ? this.reportSubmittedMessage : this._translations.submitMsg)), this._featureCreationFailedErrorMsg && index.h("calcite-alert", { key: '21d8064c4bf5c0dd118cd012d9d30d2998011a00', "auto-close": true, class: themeClass, icon: "x-octagon", kind: "danger", label: "", onCalciteAlertClose: () => { this._featureCreationFailedErrorMsg = ""; }, open: true, placement: "top" }, index.h("div", { key: '93e68814f1f3cf62d9ed4d6673aec8124cfa0a4f', slot: "title" }, this._translations.error), index.h("div", { key: '156cd9169dbcbeafa605620938ba9aeccd0f9401', slot: "message" }, this._featureCreationFailedErrorMsg)), this._commentSubmitted && index.h("calcite-alert", { key: '2cb152fe6734f80f6d9714c3597aaf064ffffd57', "auto-close": true, class: 'report-submitted ' + themeClass, icon: "check-circle", kind: "success", label: "", onCalciteAlertClose: () => { this._commentSubmitted = false; }, open: true, placement: "top" }, index.h("div", { key: '33369e8086740651ef26bfc765448fb6bded03fe', slot: "message" }, this.commentSubmittedMessage || this._translations.commentSubmittedMsg)), this._addingCommentFailed && index.h("calcite-alert", { key: '5b4fbac03c85e82e2bb11611772186140d0419e9', "auto-close": true, class: themeClass, icon: "x-octagon", kind: "danger", label: "", onCalciteAlertClose: () => { this._addingCommentFailed = false; }, open: true, placement: "top" }, index.h("div", { key: '31bd9f781304d1493dcbbee5914369742c8c0e03', slot: "title" }, this._translations.error), index.h("div", { key: '7844073654d79069fe7e54c72ec7bc85a1e77436', slot: "message" }, this._translations.addingCommentFailedMsg)), index.h("div", { key: '17eca819f0141e4945deb8013aa662d5b3c27626' }, index.h("calcite-shell", { key: 'c07f28fa3733f6be3a22d813a267e77a05038f3e', "content-behind": true }, this._getReporter())), this.isMobile && this.filterModal()));
|
385
386
|
}
|
386
387
|
//--------------------------------------------------------------------------
|
387
388
|
//
|
@@ -565,7 +566,7 @@ const CrowdsourceReporter = class {
|
|
565
566
|
* @protected
|
566
567
|
*/
|
567
568
|
getFeatureCreateFlowItem() {
|
568
|
-
return (index.h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._selectedLayerName, onCalciteFlowItemBack: this.backFromCreateFeaturePanel.bind(this), selected: this._flowItems[this._flowItems.length - 1] === "feature-create" }, this._showSubmitCancelButton && index.h("div", { class: "width-full", slot: "footer" }, index.h("calcite-button", { appearance: "solid", class: "footer-top-button footer-button", onClick: this.onCreateFeatureSubmitButtonClick.bind(this), width: "full" }, this._translations.submit), index.h("calcite-button", { appearance: "outline", class: "footer-button", onClick: this.backFromCreateFeaturePanel.bind(this), width: "full" }, this._translations.cancel)), index.h("calcite-panel", { "full-height": true, "full-width": true }, index.h("div", { class: "progress-bar" }, index.h("calcite-progress", { type: "determinate", value: this._updatedProgressBarStatus })), index.h("create-feature", { customizeSubmit: true, enableSearch: true, floorLevel: this.floorLevel, formElements: this._formElements.find(elm => elm.id === this._selectedLayerId), isMobile: this.isMobile, locale: this.locale, mapView: this.mapView, onDrawComplete: this.onFormReady.bind(this), onEditingAttachment: this.showSubmitCancelButton.bind(this), onFail: this.createFeatureFailed.bind(this), onModeChanged: this.backFromCreateFeaturePanel.bind(this), onProgressStatus: this.updatedProgressStatus.bind(this), onSuccess: this.onReportSubmitted.bind(this), ref: el => this._createFeature = el, searchConfiguration: this.searchConfiguration, selectedLayerId: this._selectedLayerId, submitNewReportsMessage: this.submitNewReportsMessage }))));
|
569
|
+
return (index.h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._selectedLayerName, onCalciteFlowItemBack: this.backFromCreateFeaturePanel.bind(this), selected: this._flowItems[this._flowItems.length - 1] === "feature-create" }, this._showSubmitCancelButton && index.h("div", { class: "width-full", slot: "footer" }, index.h("calcite-button", { appearance: "solid", class: "footer-top-button footer-button", onClick: this.onCreateFeatureSubmitButtonClick.bind(this), width: "full" }, this._translations.submit), index.h("calcite-button", { appearance: "outline", class: "footer-button", onClick: this.backFromCreateFeaturePanel.bind(this), width: "full" }, this._translations.cancel)), index.h("calcite-panel", { "full-height": true, "full-width": true }, index.h("div", { class: "progress-bar" }, index.h("calcite-progress", { type: "determinate", value: this._updatedProgressBarStatus })), index.h("create-feature", { customizeSubmit: true, enableSearch: true, enableSnapping: this.enableSnapping, floorLevel: this.floorLevel, formElements: this._formElements.find(elm => elm.id === this._selectedLayerId), isMobile: this.isMobile, locale: this.locale, mapView: this.mapView, onDrawComplete: this.onFormReady.bind(this), onEditingAttachment: this.showSubmitCancelButton.bind(this), onFail: this.createFeatureFailed.bind(this), onModeChanged: this.backFromCreateFeaturePanel.bind(this), onProgressStatus: this.updatedProgressStatus.bind(this), onSuccess: this.onReportSubmitted.bind(this), ref: el => this._createFeature = el, searchConfiguration: this.searchConfiguration, selectedLayerId: this._selectedLayerId, submitNewReportsMessage: this.submitNewReportsMessage }))));
|
569
570
|
}
|
570
571
|
/**
|
571
572
|
* Update the progress bar status when editor panel changes
|
@@ -733,7 +734,7 @@ const CrowdsourceReporter = class {
|
|
733
734
|
* @protected
|
734
735
|
*/
|
735
736
|
async layerListLoaded(evt) {
|
736
|
-
// Check if user is present on the layer panel or if first component is feature list then only allow to store the non-reporting valid layers to avoid the feature visbility issue on map
|
737
|
+
// Check if user is present on the layer panel or if first component is feature list then only allow to store the non-reporting valid layers to avoid the feature visbility issue on map
|
737
738
|
const presentOnLayerListPanel = this._layerList && this._flowItems[this._flowItems.length - 1] === "layer-list" || this._flowItems[0] === "feature-list";
|
738
739
|
if (presentOnLayerListPanel) {
|
739
740
|
const layersListed = evt.detail;
|
@@ -933,7 +934,7 @@ const CrowdsourceReporter = class {
|
|
933
934
|
*/
|
934
935
|
getFeatureDetailsFlowItem() {
|
935
936
|
const showCommentBtn = this._getLayersConfig(this._selectedLayerId)?.comment && this._selectedLayer.relationships.length > 0 && this._relatedTable;
|
936
|
-
return (index.h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._selectedLayerName, loading: this._showLoadingIndicator, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this), selected: this._flowItems[this._flowItems.length - 1] === "feature-details" }, this.isMobile && this.getActionToExpandCollapsePanel(), index.h("instant-apps-social-share", { autoUpdateShareUrl: false, class: "share-node", embed: false, popoverButtonIconScale: "s", ref: el => this._shareNode = el, removePopoverOffset: true, scale: "m", shareButtonColor: "neutral", shareButtonType: "action", slot: "header-actions-end", socialMedia: true, view: this.mapView }), this._selectedFeature.length > 1 && this.getFeaturesPagination(), index.h("calcite-panel", null, index.h("feature-details", { class: 'full-height', graphics: this._selectedFeature, layerItemsHash: this._layerItemsHash, locale: this.locale, mapView: this.mapView, onAddComment: this.showAddCommentsPanel.bind(this), onCommentSelect: this.onCommentSelectFromList.bind(this), onFeatureSelectionChange: this.selectionChanged.bind(this), onLikeOrDislikeClicked: () => { void this._featureList.refresh(true); }, onLoadingStatus: (evt) => void this.updatingFeatureDetails(evt.detail), ref: el => this._featureDetails = el, reportingOptions: this.reportingOptions, showFullCommentTitle: this.showFullCommentTitle, showUserImageInCommentsList: this.showUserImageInCommentsList }), showCommentBtn &&
|
937
|
+
return (index.h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._selectedLayerName, loading: this._showLoadingIndicator, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this), selected: this._flowItems[this._flowItems.length - 1] === "feature-details" }, this.isMobile && this.getActionToExpandCollapsePanel(), index.h("instant-apps-social-share", { autoUpdateShareUrl: false, class: "share-node", embed: false, popoverButtonIconScale: "s", ref: el => this._shareNode = el, removePopoverOffset: true, scale: "m", shareButtonColor: "neutral", shareButtonType: "action", slot: "header-actions-end", socialMedia: true, view: this.mapView }), this._selectedFeature.length > 1 && this.getFeaturesPagination(), index.h("calcite-panel", null, index.h("feature-details", { class: 'full-height', enableSnapping: this.enableSnapping, graphics: this._selectedFeature, layerItemsHash: this._layerItemsHash, locale: this.locale, mapView: this.mapView, onAddComment: this.showAddCommentsPanel.bind(this), onCommentSelect: this.onCommentSelectFromList.bind(this), onFeatureSelectionChange: this.selectionChanged.bind(this), onLikeOrDislikeClicked: () => { void this._featureList.refresh(true); }, onLoadingStatus: (evt) => void this.updatingFeatureDetails(evt.detail), ref: el => this._featureDetails = el, reportingOptions: this.reportingOptions, showFullCommentTitle: this.showFullCommentTitle, showUserImageInCommentsList: this.showUserImageInCommentsList }), showCommentBtn &&
|
937
938
|
index.h("calcite-button", { appearance: "solid", onClick: this.showAddCommentsPanel.bind(this), slot: "footer", width: "full" }, this.commentButtonText || this._translations.comment))));
|
938
939
|
}
|
939
940
|
/**
|
@@ -949,14 +950,14 @@ const CrowdsourceReporter = class {
|
|
949
950
|
* @returns Node
|
950
951
|
*/
|
951
952
|
getCommentDetailsFlowItem() {
|
952
|
-
return (index.h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._relatedTable.title, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this), selected: this._flowItems[this._flowItems.length - 1] === "comment-details" }, this.isMobile && this.getActionToExpandCollapsePanel(), index.h("calcite-panel", { "full-height": true }, index.h("info-card", { allowEditing: false, graphics: this._selectedRelatedFeature, highlightEnabled: false, isLoading: false, isMobile: false, locale: this.locale, mapView: this.mapView, paginationEnabled: false }))));
|
953
|
+
return (index.h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._relatedTable.title, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this), selected: this._flowItems[this._flowItems.length - 1] === "comment-details" }, this.isMobile && this.getActionToExpandCollapsePanel(), index.h("calcite-panel", { "full-height": true }, index.h("info-card", { allowEditing: false, enableSnapping: this.enableSnapping, graphics: this._selectedRelatedFeature, highlightEnabled: false, isLoading: false, isMobile: false, locale: this.locale, mapView: this.mapView, paginationEnabled: false }))));
|
953
954
|
}
|
954
955
|
/**
|
955
956
|
* Returns the calcite-flow item for add comment
|
956
957
|
* @returns Node
|
957
958
|
*/
|
958
959
|
getAddCommentFlowItem() {
|
959
|
-
return (index.h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._relatedTable.title, onCalciteFlowItemBack: this.backFromCreateRelatedFeaturePanel.bind(this), selected: this._flowItems[this._flowItems.length - 1] === "add-comment" }, this.isMobile && this.getActionToExpandCollapsePanel(), index.h("div", { class: "width-full", slot: "footer" }, this._showSubmitCancelButton && index.h("div", { class: "width-full", slot: "footer" }, index.h("calcite-button", { appearance: "solid", class: "footer-top-button footer-button", onClick: this.onCreateRelatedFeatureSubmitButtonClick.bind(this), width: "full" }, this._translations.submit), index.h("calcite-button", { appearance: "outline", class: "footer-button", onClick: this.backFromCreateRelatedFeaturePanel.bind(this), width: "full" }, this._translations.cancel))), index.h("calcite-panel", null, index.h("create-related-feature", { customizeSubmit: true, locale: this.locale, mapView: this.mapView, onFail: this.addCommentFailed.bind(this), onFormReady: this.onFormReady.bind(this), onIsActionPending: this.showSubmitCancelButton.bind(this), onSuccess: this.onCommentSubmitted.bind(this), ref: el => this._createRelatedFeature = el, selectedFeature: this._currentFeature, table: this._relatedTable }))));
|
960
|
+
return (index.h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._relatedTable.title, onCalciteFlowItemBack: this.backFromCreateRelatedFeaturePanel.bind(this), selected: this._flowItems[this._flowItems.length - 1] === "add-comment" }, this.isMobile && this.getActionToExpandCollapsePanel(), index.h("div", { class: "width-full", slot: "footer" }, this._showSubmitCancelButton && index.h("div", { class: "width-full", slot: "footer" }, index.h("calcite-button", { appearance: "solid", class: "footer-top-button footer-button", onClick: this.onCreateRelatedFeatureSubmitButtonClick.bind(this), width: "full" }, this._translations.submit), index.h("calcite-button", { appearance: "outline", class: "footer-button", onClick: this.backFromCreateRelatedFeaturePanel.bind(this), width: "full" }, this._translations.cancel))), index.h("calcite-panel", null, index.h("create-related-feature", { customizeSubmit: true, enableSnapping: this.enableSnapping, locale: this.locale, mapView: this.mapView, onFail: this.addCommentFailed.bind(this), onFormReady: this.onFormReady.bind(this), onIsActionPending: this.showSubmitCancelButton.bind(this), onSuccess: this.onCommentSubmitted.bind(this), ref: el => this._createRelatedFeature = el, selectedFeature: this._currentFeature, table: this._relatedTable }))));
|
960
961
|
}
|
961
962
|
/**
|
962
963
|
* Sets the selected features and updates the first feature as the current selected feature
|
@@ -80,7 +80,7 @@ const DeductCalculator = class {
|
|
80
80
|
* Renders the component.
|
81
81
|
*/
|
82
82
|
render() {
|
83
|
-
return (index.h(index.Host, { key: '
|
83
|
+
return (index.h(index.Host, { key: 'b2208eddc39e3112b21061b0718c07b40b5d555f' }, index.h("div", { key: '141f1411adb23fe1678bd4335c46c4de0c3a6f45', class: "label-display" }, index.h("calcite-label", { key: '78f7956efdfd7d88832e6fd031682b7f58046e34', class: "label-display" }, "Density %", this._getDensityInput()), index.h("calcite-label", { key: '1e38c3db3a4797efcd98b8b767578f734448ec8f', class: "label-display" }, "Type", this._getTypeInput()), index.h("calcite-label", { key: '1793f3b2babbcadce21c45f4224ddfe958ad6e2f', class: "label-display" }, "Severity", this._getSeverityInput())), index.h("div", { key: 'e7e16b0e165357f0da22617463aab443534f7ace' }, this._getCalculateInput())));
|
84
84
|
}
|
85
85
|
//--------------------------------------------------------------------------
|
86
86
|
//
|
@@ -83,7 +83,7 @@ const DeleteDialog = class {
|
|
83
83
|
render() {
|
84
84
|
const confirmMessage = this.ids.length === 1 ? this._translations?.confirmSingle :
|
85
85
|
this._translations?.confirmMultiple;
|
86
|
-
return (index.h(index.Host, { key: '
|
86
|
+
return (index.h(index.Host, { key: 'c75cf86cce1b728837422e4102fd9cdffc33c78a' }, index.h("calcite-dialog", { key: '026e1b0a55ebd740f2352da820d5b15afa050f78', heading: this._translations?.deleteFeature, kind: "danger", modal: true, onCalciteDialogClose: () => this._close(), open: this.open, widthScale: "s" }, index.h("div", { key: '3f8e4aef2995387b758f1af8e1443253207998bc' }, confirmMessage), index.h("calcite-button", { key: '3005fafc853db910adc787290a328dcc161401bb', appearance: "outline", kind: "danger", onClick: () => this._close(), slot: "footer-end", width: "full" }, this._translations?.cancel), index.h("calcite-button", { key: '42e9da99a45f416fa9b9b5cfefdb10b045593ecb', kind: "danger", loading: this._isDeleting, onClick: () => void this._deleteFeatures(), slot: "footer-end", width: "full" }, this._translations?.delete))));
|
87
87
|
}
|
88
88
|
//--------------------------------------------------------------------------
|
89
89
|
//
|