@esri/solutions-components 0.8.25 → 0.8.26
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_4.cjs.entry.js +6 -6
- package/dist/cjs/calcite-dropdown-group_2.cjs.entry.js +1 -1
- package/dist/cjs/calcite-flow_6.cjs.entry.js +87 -58
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +7 -7
- package/dist/cjs/card-manager_3.cjs.entry.js +2 -2
- package/dist/cjs/crowdsource-manager.cjs.entry.js +1 -1
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +1 -1
- package/dist/cjs/deduct-calculator.cjs.entry.js +1 -1
- package/dist/cjs/feature-comments.cjs.entry.js +1 -1
- package/dist/cjs/feature-form-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/feature-list.cjs.entry.js +3 -3
- package/dist/cjs/features-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/layout-manager.cjs.entry.js +1 -1
- package/dist/cjs/list-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/location-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/map-select-tools_3.cjs.entry.js +3 -3
- package/dist/cjs/pci-calculator.cjs.entry.js +1 -1
- package/dist/cjs/public-notification.cjs.entry.js +1 -1
- package/dist/cjs/refine-results-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/share-item.cjs.entry.js +1 -1
- package/dist/cjs/solution-configuration.cjs.entry.js +3 -3
- package/dist/cjs/solution-contents_3.cjs.entry.js +3 -3
- package/dist/cjs/solution-item-icon.cjs.entry.js +1 -1
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/cjs/spatial-ref.cjs.entry.js +1 -1
- package/dist/collection/components/create-feature/create-feature.js +82 -50
- package/dist/collection/components/create-related-feature/create-related-feature.js +1 -1
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +1 -1
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +1 -1
- package/dist/collection/components/deduct-calculator/deduct-calculator.js +1 -1
- package/dist/collection/components/delete-button/delete-button.css +4 -0
- package/dist/collection/components/delete-button/delete-button.js +2 -2
- package/dist/collection/components/edit-card/edit-card.js +1 -1
- package/dist/collection/components/feature-comments/feature-comments.js +1 -1
- package/dist/collection/components/feature-details/feature-details.js +6 -6
- package/dist/collection/components/feature-form-flow-item/feature-form-flow-item.js +1 -1
- package/dist/collection/components/feature-list/feature-list.js +3 -3
- package/dist/collection/components/features-flow-item/features-flow-item.js +1 -1
- package/dist/collection/components/floor-filter/floor-filter.js +1 -1
- package/dist/collection/components/info-card/info-card.js +2 -2
- package/dist/collection/components/json-editor/json-editor.js +1 -1
- package/dist/collection/components/layer-table/layer-table.js +1 -1
- package/dist/collection/components/layout-manager/layout-manager.js +1 -1
- package/dist/collection/components/list-flow-item/list-flow-item.js +1 -1
- package/dist/collection/components/location-flow-item/location-flow-item.js +1 -1
- package/dist/collection/components/map-card/map-card.js +1 -1
- package/dist/collection/components/map-draw-tools/map-draw-tools.js +1 -1
- package/dist/collection/components/map-fullscreen/map-fullscreen.js +1 -1
- package/dist/collection/components/map-layer-picker/map-layer-picker.js +1 -1
- package/dist/collection/components/map-legend/map-legend.js +1 -1
- package/dist/collection/components/map-picker/map-picker.js +1 -1
- package/dist/collection/components/map-search/map-search.js +1 -1
- package/dist/collection/components/map-select-tools/map-select-tools.js +1 -1
- package/dist/collection/components/map-tools/map-tools.js +1 -1
- package/dist/collection/components/pci-calculator/pci-calculator.js +1 -1
- package/dist/collection/components/pdf-download/pdf-download.js +1 -1
- package/dist/collection/components/public-notification/public-notification.js +1 -1
- package/dist/collection/components/refine-results-flow-item/refine-results-flow-item.js +1 -1
- package/dist/collection/components/refine-selection/refine-selection.js +1 -1
- package/dist/collection/components/share-item/share-item.js +1 -1
- package/dist/collection/components/solution-configuration/solution-configuration.js +3 -3
- package/dist/collection/components/solution-contents/solution-contents.js +1 -1
- package/dist/collection/components/solution-item/solution-item.js +1 -1
- package/dist/collection/components/solution-item-details/solution-item-details.js +1 -1
- package/dist/collection/components/solution-item-icon/solution-item-icon.js +1 -1
- package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +1 -1
- package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +1 -1
- package/dist/collection/components/solution-resource-item/solution-resource-item.js +1 -1
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +1 -1
- package/dist/collection/components/solution-template-data/solution-template-data.js +1 -1
- package/dist/collection/components/solution-variables/solution-variables.js +1 -1
- package/dist/collection/components/spatial-ref/spatial-ref.js +1 -1
- package/dist/components/create-feature2.js +90 -53
- package/dist/components/create-related-feature2.js +1 -1
- package/dist/components/crowdsource-manager.js +1 -1
- package/dist/components/crowdsource-reporter.js +1 -1
- package/dist/components/deduct-calculator2.js +1 -1
- package/dist/components/delete-button2.js +3 -3
- package/dist/components/edit-card2.js +1 -1
- package/dist/components/feature-comments.js +1 -1
- package/dist/components/feature-details2.js +6 -6
- package/dist/components/feature-form-flow-item.js +1 -1
- package/dist/components/feature-list2.js +3 -3
- package/dist/components/features-flow-item.js +1 -1
- package/dist/components/floor-filter2.js +1 -1
- package/dist/components/info-card2.js +2 -2
- package/dist/components/json-editor2.js +1 -1
- package/dist/components/layer-table2.js +1 -1
- package/dist/components/layout-manager.js +1 -1
- package/dist/components/list-flow-item.js +1 -1
- package/dist/components/location-flow-item.js +1 -1
- package/dist/components/map-card2.js +1 -1
- package/dist/components/map-draw-tools2.js +1 -1
- package/dist/components/map-fullscreen2.js +1 -1
- package/dist/components/map-layer-picker2.js +1 -1
- package/dist/components/map-legend2.js +1 -1
- package/dist/components/map-picker2.js +1 -1
- package/dist/components/map-search2.js +1 -1
- package/dist/components/map-select-tools2.js +1 -1
- package/dist/components/map-tools2.js +1 -1
- package/dist/components/pci-calculator.js +1 -1
- package/dist/components/pdf-download2.js +1 -1
- package/dist/components/public-notification.js +1 -1
- package/dist/components/refine-results-flow-item.js +1 -1
- package/dist/components/refine-selection2.js +1 -1
- package/dist/components/share-item.js +1 -1
- package/dist/components/solution-configuration.js +3 -3
- package/dist/components/solution-contents2.js +1 -1
- package/dist/components/solution-item-details2.js +1 -1
- package/dist/components/solution-item-icon2.js +1 -1
- package/dist/components/solution-item-sharing2.js +1 -1
- package/dist/components/solution-item2.js +1 -1
- package/dist/components/solution-organization-variables2.js +1 -1
- package/dist/components/solution-resource-item2.js +1 -1
- package/dist/components/solution-spatial-ref2.js +1 -1
- package/dist/components/solution-template-data2.js +1 -1
- package/dist/components/solution-variables2.js +1 -1
- package/dist/components/spatial-ref2.js +1 -1
- package/dist/esm/basemap-gallery_7.entry.js +6 -6
- package/dist/esm/buffer-tools_3.entry.js +1 -1
- package/dist/esm/calcite-alert_4.entry.js +6 -6
- package/dist/esm/calcite-dropdown-group_2.entry.js +1 -1
- package/dist/esm/calcite-flow_6.entry.js +87 -58
- package/dist/esm/calcite-shell-panel_14.entry.js +7 -7
- package/dist/esm/card-manager_3.entry.js +2 -2
- package/dist/esm/crowdsource-manager.entry.js +1 -1
- package/dist/esm/crowdsource-reporter.entry.js +1 -1
- package/dist/esm/deduct-calculator.entry.js +1 -1
- package/dist/esm/feature-comments.entry.js +1 -1
- package/dist/esm/feature-form-flow-item.entry.js +1 -1
- package/dist/esm/feature-list.entry.js +3 -3
- package/dist/esm/features-flow-item.entry.js +1 -1
- package/dist/esm/layout-manager.entry.js +1 -1
- package/dist/esm/list-flow-item.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/location-flow-item.entry.js +1 -1
- package/dist/esm/map-select-tools_3.entry.js +3 -3
- package/dist/esm/pci-calculator.entry.js +1 -1
- package/dist/esm/public-notification.entry.js +1 -1
- package/dist/esm/refine-results-flow-item.entry.js +1 -1
- package/dist/esm/share-item.entry.js +1 -1
- package/dist/esm/solution-configuration.entry.js +3 -3
- package/dist/esm/solution-contents_3.entry.js +3 -3
- package/dist/esm/solution-item-icon.entry.js +1 -1
- package/dist/esm/solutions-components.js +1 -1
- package/dist/esm/spatial-ref.entry.js +1 -1
- package/dist/solutions-components/{p-2c044250.entry.js → p-053be79f.entry.js} +2 -2
- package/dist/solutions-components/{p-1ff9eb95.entry.js → p-05b3a5d9.entry.js} +1 -1
- package/dist/solutions-components/p-0d17246a.entry.js +6 -0
- package/dist/solutions-components/{p-b3160299.entry.js → p-1e915546.entry.js} +1 -1
- package/dist/solutions-components/{p-97e343df.entry.js → p-1f4b174f.entry.js} +1 -1
- package/dist/solutions-components/p-27e9ea86.entry.js +6 -0
- package/dist/solutions-components/{p-72317f8e.entry.js → p-296375d3.entry.js} +2 -2
- package/dist/solutions-components/{p-af4be4ce.entry.js → p-2a6db6e8.entry.js} +1 -1
- package/dist/solutions-components/p-4870be89.entry.js +6 -0
- package/dist/solutions-components/p-51b5ac05.entry.js +6 -0
- package/dist/solutions-components/{p-686fa7ce.entry.js → p-66722851.entry.js} +1 -1
- package/dist/solutions-components/{p-f35cc7ae.entry.js → p-81747268.entry.js} +1 -1
- package/dist/solutions-components/{p-84a5d221.entry.js → p-92eadd14.entry.js} +1 -1
- package/dist/solutions-components/{p-fc665a1a.entry.js → p-96c901b4.entry.js} +1 -1
- package/dist/solutions-components/p-9cfc59dd.entry.js +6 -0
- package/dist/solutions-components/{p-16730f05.entry.js → p-b656b73e.entry.js} +1 -1
- package/dist/solutions-components/{p-8c500fd7.entry.js → p-bfdabb9d.entry.js} +1 -1
- package/dist/solutions-components/p-c5becad1.entry.js +6 -0
- package/dist/solutions-components/{p-102b1f94.entry.js → p-cb20ba34.entry.js} +1 -1
- package/dist/solutions-components/p-cd694107.entry.js +17 -0
- package/dist/solutions-components/p-e1662e32.entry.js +6 -0
- package/dist/solutions-components/p-eda6994e.entry.js +6 -0
- package/dist/solutions-components/{p-bf57dbfd.entry.js → p-edcc1f23.entry.js} +1 -1
- package/dist/solutions-components/p-f7b791a8.entry.js +6 -0
- package/dist/solutions-components/p-fac36b42.entry.js +6 -0
- package/dist/solutions-components/{p-33845a79.entry.js → p-fd28754c.entry.js} +1 -1
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/types/components/create-feature/create-feature.d.ts +21 -3
- package/package.json +1 -1
- package/dist/solutions-components/p-28c6906c.entry.js +0 -6
- package/dist/solutions-components/p-3470c0f7.entry.js +0 -6
- package/dist/solutions-components/p-3fae9775.entry.js +0 -6
- package/dist/solutions-components/p-5b817c98.entry.js +0 -6
- package/dist/solutions-components/p-71de367b.entry.js +0 -6
- package/dist/solutions-components/p-8a81f3c7.entry.js +0 -6
- package/dist/solutions-components/p-aa06f4d1.entry.js +0 -6
- package/dist/solutions-components/p-b76b5310.entry.js +0 -6
- package/dist/solutions-components/p-c047a6fc.entry.js +0 -6
- package/dist/solutions-components/p-c2ec0dcc.entry.js +0 -17
- package/dist/solutions-components/p-e9176a44.entry.js +0 -6
@@ -41,7 +41,7 @@ const SolutionItemSharing = /*@__PURE__*/ proxyCustomElement(class SolutionItemS
|
|
41
41
|
* Renders the component.
|
42
42
|
*/
|
43
43
|
render() {
|
44
|
-
return (h(Host, { key: '
|
44
|
+
return (h(Host, { key: '7042ab9382712488f9184b305e417dd93379422f' }, h("div", { key: '00baf7fac31f03b249592eb8603a74d6f93f2615', class: "container-border" }, h("calcite-label", { key: '5328280b6ee86819366800e43eda0c44b55ca277' }, this._translations.groupInfo), this._renderItems(this.sharing))));
|
45
45
|
}
|
46
46
|
//--------------------------------------------------------------------------
|
47
47
|
//
|
@@ -73,7 +73,7 @@ const SolutionItem = /*@__PURE__*/ proxyCustomElement(class SolutionItem extends
|
|
73
73
|
* Renders the component.
|
74
74
|
*/
|
75
75
|
render() {
|
76
|
-
return (h(Host, { key: '
|
76
|
+
return (h(Host, { key: '46215591e1f5c87fc30b116fbeeeef5e7eb29b19' }, h("div", { key: 'dbcb49c592eca9f30b44fb3e8a35d0433ed517d3', class: "configuration-container" }, h("div", { key: '9f97e7c2a6a912f3d57d1bc840cab02d13860da2', class: "configuration" }, this._showGroupTabs(this.itemType === "Group"), this._showItemTabs(this.itemType !== "Group")))));
|
77
77
|
}
|
78
78
|
//--------------------------------------------------------------------------
|
79
79
|
//
|
@@ -41,7 +41,7 @@ const SolutionOrganizationVariables = /*@__PURE__*/ proxyCustomElement(class Sol
|
|
41
41
|
* Renders the component.
|
42
42
|
*/
|
43
43
|
render() {
|
44
|
-
return (h(Host, { key: '
|
44
|
+
return (h(Host, { key: 'a4456905e1abde8eca22dfb6f3da81959d509b75' }, h("div", { key: '8fc37e2a59237ed0cca05b096f901a82da696151' }, h("h4", { key: '7bdd9e95f37297c51778a866542517048622e5ca', class: "org-var-header" }, this._translations.orgVariables)), h("div", { key: '10bfcebd83ddc363f04149a03298b0c5247fd265', class: "container-border" }, h("calcite-tree", { key: '1d168ebbceaf566fb8f4ddea85acba39c08bbd53', id: "variable-label" }, this._renderHierarchy(this._organizationVariables)))));
|
45
45
|
}
|
46
46
|
//--------------------------------------------------------------------------
|
47
47
|
//
|
@@ -59,7 +59,7 @@ const SolutionResourceItem = /*@__PURE__*/ proxyCustomElement(class SolutionReso
|
|
59
59
|
*/
|
60
60
|
render() {
|
61
61
|
const hasValidResources = this._hasValidResources();
|
62
|
-
return (h(Host, { key: '
|
62
|
+
return (h(Host, { key: 'c36fddfce9c4c97b281281ec11dfa017d496141e' }, h("div", { key: 'e1166173669689e9acee92cc7e53747ebcec0c09', class: "resource-item" }, h("div", { key: '86c8e1d498d7b84e9587cdcf4a3bb971fc1ecaad', class: "margin-bottom-1" }, h("calcite-button", { key: 'f382275e75efeb5beadef582ddd343a283f014e2', appearance: "solid", class: "resource-button", color: "blue", onClick: () => this._addNewResource() }, this._translations.addResource), h("calcite-button", { key: 'c487e618472b047f8db71e8989f849c844682080', appearance: "solid", color: "blue", disabled: !hasValidResources, onClick: () => this._downloadAll() }, this._translations.downloadAll)), h("div", { key: '08733ba234cba9b5ea19455256fa961d23ae933b', class: "resources-container", style: { display: hasValidResources ? "inherit" : "none" } }, this._renderResourceList()))));
|
63
63
|
}
|
64
64
|
//--------------------------------------------------------------------------
|
65
65
|
//
|
@@ -57,7 +57,7 @@ const SolutionSpatialRef = /*@__PURE__*/ proxyCustomElement(class SolutionSpatia
|
|
57
57
|
* Renders the component.
|
58
58
|
*/
|
59
59
|
render() {
|
60
|
-
return (h(Host, { key: '
|
60
|
+
return (h(Host, { key: '2a12d415e9408b646365ace8e3e82138be70f343' }, h("div", { key: 'f58d6782ac4065f67dd0205271b05d4c0c31d8dc', class: "spatial-ref" }, h("div", { key: '5267f203f1c63c5e900b0ead8798f3561d225d42', class: "spatial-ref-desc" }, h("calcite-label", { key: '1183f8ee9274be1980dc889ca52f5d0c6a6994af' }, this._translations.paramDescription)), h("label", { key: '5367f57784a20501505b0e9cfdd345a8de3fce93', class: "switch-label" }, h("calcite-switch", { key: '2d79a69e64f28b6e2aeed52b0b0aa4034ebb6c57', checked: !this.locked, class: "spatial-ref-switch", onCalciteSwitchChange: (event) => this._updateLocked(event), scale: "m" }), this._translations.specifyParam), h("div", { key: '60ab36865749f4c59798bf51ff1b5264a3eeeefc', class: "spatial-ref-component", id: "spatialRefDefn" }, h("calcite-label", { key: 'bc0b446d1f7b0a62f49b579ac0e5f8da33531ed9' }, this._translations.spatialReferenceInfo, h("label", { key: '5f2135d975e2254429c8d6a14fe2f2a91fdc3fb9', class: "spatial-ref-default" }, h("spatial-ref", { key: 'be7c105e3cebba4eed80c88e8b4d539affb67e0e', defaultWkid: this.defaultWkid, disabled: this.locked, value: this.value }))), this._getFeatureServices(this.services)))));
|
61
61
|
}
|
62
62
|
/**
|
63
63
|
* Saves changes to the embedded spatial reference value
|
@@ -80,7 +80,7 @@ const SolutionTemplateData = /*@__PURE__*/ proxyCustomElement(class SolutionTemp
|
|
80
80
|
* Renders the component.
|
81
81
|
*/
|
82
82
|
render() {
|
83
|
-
return (h(Host, { key: '
|
83
|
+
return (h(Host, { key: 'f6c478a45be7ba02a79446dca5a12ecb7cfaf817' }, h("div", { key: 'd268f063606f2d0a0dfbe76f0ea907074ac91c60', class: "solution-data-container" }, h("calcite-shell", { key: '170f35aa82ad4e4fbd7e111b558417712396a44d', class: "light var-container", dir: "ltr" }, h("calcite-panel", { key: 'ada2da8d5240d9904cd9021c9573eee5bd8fe6a4', class: "json-editor" }, h("div", { key: '51001e6bcf73ed23d6c76f5d9c17a66b5cbd1d05', class: "solution-data-child-container calcite-match-height" }, h("json-editor", { key: '4390b6ff57b3d6341a8c984e8393badf4122df2a', class: "solution-data-editor-container", instanceid: this.itemId + "|" + this.instanceid, value: this.value }))), h("calcite-shell-panel", { key: '866f4349e9ca6f5e8120479997248c2962c18b90', "height-scale": "l", position: "end", slot: "contextual-panel", "width-scale": "xs" }, h("div", { key: 'adb11719b67d10a9a4da50d79ac23eadc68544a7', class: this.varsOpen ? "solution-data-child-container" : "solution-data-child-container-collapsed" }, h("calcite-button", { key: 'c6a7365e101045ad0f30700e6ba296ff62f0942d', appearance: "transparent", class: "collapse-btn", "icon-start": this.varsOpen ? "chevrons-right" : "chevrons-left", id: "collapse-vars", onClick: () => this._toggleVars(), scale: "s", title: this.varsOpen ? this._translations.collapse : this._translations.expand }), h("div", { key: '76b05d456a9cafd25af16e3848e453ccfda5f1bc', class: this.varsOpen ? "org-vars" : "org-vars display-none", id: "orgVars" }, h("solution-organization-variables", { key: '4b2df6867414d5a6e4e9423b2133196dfd85b3bd', value: this.organizationVariables })), h("div", { key: 'eb5201a82e27a52e0a4f9c38cdc9db3f0c1173d8', class: this.varsOpen ? "sol-vars" : "sol-vars display-none", id: "solVars" }, h("solution-variables", { key: '00dda00409364b66e092e9ec304524c35f7d0704', value: this.solutionVariables }))))))));
|
84
84
|
}
|
85
85
|
//--------------------------------------------------------------------------
|
86
86
|
//
|
@@ -42,7 +42,7 @@ const SolutionVariables = /*@__PURE__*/ proxyCustomElement(class SolutionVariabl
|
|
42
42
|
* Renders the component.
|
43
43
|
*/
|
44
44
|
render() {
|
45
|
-
return (h(Host, { key: '
|
45
|
+
return (h(Host, { key: '6673253cf19a8d760dc1444feef39a74258d01ed' }, h("div", { key: '44e5a11c8f31558baf8458cc883e579f2f23ff47' }, h("h4", { key: 'f8b7a19e4a9eb4860015cfdb6c55c2b94d66a222', class: "org-var-header" }, this._translations.solVariables)), h("div", { key: 'ffb70400c5fd22a944328672e7eaefa5918fce5c', class: "container-border" }, h("calcite-tree", { key: 'de81612c2a603f17b1bcb58f0b750401db0d4f20', id: "variable-label" }, this._renderHierarchy(this._solutionVariables)))));
|
46
46
|
}
|
47
47
|
//--------------------------------------------------------------------------
|
48
48
|
//
|
@@ -21130,7 +21130,7 @@ const SpatialRef = /*@__PURE__*/ proxyCustomElement(class SpatialRef extends HTM
|
|
21130
21130
|
* Renders the component.
|
21131
21131
|
*/
|
21132
21132
|
render() {
|
21133
|
-
return (h(Host, { key: '
|
21133
|
+
return (h(Host, { key: '0ca21876510da4276c6fd31885eed7dc15db70ad' }, h("div", { key: '90ff94d67604a66f20d30276a1b573affccf5eb2' }, h("calcite-input", { key: '35e207303270345e457406e26689f58bf5387d43', disabled: this.disabled, id: "calcite-sr-search", onKeyUp: (evt) => this._searchInputKeyDown(evt), placeholder: this._translations.spatialReferencePlaceholder }), h("calcite-tree", { key: '0b73019247c134d0cfcdf8e84544622907a40a80', id: "calcite-sr-tree", slot: "children" }, this._getTreeContent()))));
|
21134
21134
|
}
|
21135
21135
|
//--------------------------------------------------------------------------
|
21136
21136
|
//
|
@@ -158,7 +158,7 @@ const FloorFilter = class {
|
|
158
158
|
return this._initModules();
|
159
159
|
}
|
160
160
|
render() {
|
161
|
-
return (h(Host, { key: '
|
161
|
+
return (h(Host, { key: '98769446b20d8a9432b571b5653abbc6613bdfe5' }, h("div", { key: '6606a2593fec1885fc02b07a168bdea43e7f864a', ref: (el) => { this._floorFilterElement = el; } })));
|
162
162
|
}
|
163
163
|
//--------------------------------------------------------------------------
|
164
164
|
//
|
@@ -251,7 +251,7 @@ const MapFullscreen = class {
|
|
251
251
|
* Renders the component.
|
252
252
|
*/
|
253
253
|
render() {
|
254
|
-
return (h(Host, { key: '
|
254
|
+
return (h(Host, { key: '943217d26f3cf5861c165c3300ba24736ce8f7dc' }, h("div", { key: '6c76ebf6e63dab19f24d776cd27cd86b74ea93d0', class: "fullscreen-widget", ref: (el) => { this._fullscreenElement = el; } })));
|
255
255
|
}
|
256
256
|
/**
|
257
257
|
* StencilJS: Called just after the component updates.
|
@@ -357,7 +357,7 @@ const MapLegend = class {
|
|
357
357
|
* StencilJS: Renders the component.
|
358
358
|
*/
|
359
359
|
render() {
|
360
|
-
return (h(Host, { key: '
|
360
|
+
return (h(Host, { key: 'bdd3b848bec1aec6f8c7676f8bab5e9463b16064' }, h("div", { key: 'd7bb217db6971758ef8774d19d6ac5cfa94a0ddc', ref: (el) => { this._legendElement = el; } })));
|
361
361
|
}
|
362
362
|
/**
|
363
363
|
* StencilJS: Called once just after the component is fully loaded and the first render() occurs.
|
@@ -475,7 +475,7 @@ const MapPicker = class {
|
|
475
475
|
* Renders the component.
|
476
476
|
*/
|
477
477
|
render() {
|
478
|
-
return (h(Host, { key: '
|
478
|
+
return (h(Host, { key: '86994e2c4d87809c1508b073c3af1c0975c2d81d' }, this._getToolbar(), this._getMapNameList(this._mapListExpanded)));
|
479
479
|
}
|
480
480
|
/**
|
481
481
|
* Called once after the component has loaded
|
@@ -634,7 +634,7 @@ const MapSearch = class {
|
|
634
634
|
* Renders the component.
|
635
635
|
*/
|
636
636
|
render() {
|
637
|
-
return (h(Host, { key: '
|
637
|
+
return (h(Host, { key: '5036a89c6a686b2486ff88dffd06f0bed1ea510e' }, h("div", { key: '4c5ede4d9877ff0ca0f16706c99aba354df21fd1', class: "search-widget", ref: (el) => { this._searchElement = el; } })));
|
638
638
|
}
|
639
639
|
//--------------------------------------------------------------------------
|
640
640
|
//
|
@@ -899,7 +899,7 @@ const MapTools = class {
|
|
899
899
|
const toolMarginClass = this.enableSingleExpand ? "margin-top-1-2" : "";
|
900
900
|
const toolOrder = this.toolOrder ? this.toolOrder : ["legend", "search", "fullscreen", "floorfilter"];
|
901
901
|
const shadowClass = this.stackTools ? "box-shadow" : "";
|
902
|
-
return (h(Host, { key: '
|
902
|
+
return (h(Host, { key: 'a1557491ffd833bed11843dbe1bd040a9d2d6b15' }, h("div", { key: '8866b3bc6e05fa75605b078e1a3deecaf6392024', class: containerClass }, this.enableSingleExpand ? (h("div", { class: "box-shadow" }, this._getActionGroup(toggleIcon, false, expandTip, () => this._toggleTools()))) : undefined, h("div", { key: '6a4e62ad1afcca39365aa965ffabedf8933051d4', class: `${toolMarginClass} ${shadowClass} ${toolsClass}` }, this._getMapWidgets(toolOrder))), h("basemap-gallery", { key: '4edade9536c0912a89f6a9335ae05ae46669e14d', basemapConfig: this.basemapConfig, class: basemapClass, mapView: this.mapView, ref: (el) => { this._basemapElement = el; } }), h("map-search", { key: '046d02c1927def025294645c6e855906fabd30aa', class: searchClass, mapView: this.mapView, ref: (el) => { this._searchElement = el; }, resultGraphicEnabled: true, searchConfiguration: this.searchConfiguration }), h("map-legend", { key: '54575e31073bdc68b611939eb0e619e4479b26f3', class: legendClass, mapView: this.mapView, ref: (el) => { this._legendElement = el; } }), h("map-fullscreen", { key: '9a54a22e12c372dd85717f83cf31b4ace80489eb', class: fullscreenClass, mapView: this.mapView, onFullscreenStateChange: (evt) => this._fullscreenStateChange(evt.detail), ref: (el) => { this._fullscreenElement = el; } }), h("floor-filter", { key: 'ffadf501a03186ed6f2fec8754cd758faea5b4dd', class: floorFilterClass, enabled: this.enableFloorFilter, mapView: this.mapView, ref: (el) => { this._floorFilterElement = el; } })));
|
903
903
|
}
|
904
904
|
//--------------------------------------------------------------------------
|
905
905
|
//
|
@@ -416,7 +416,7 @@ const MapDrawTools = class {
|
|
416
416
|
"border" : "border esri-widget esri-sketch__panel";
|
417
417
|
const undoRedoClass = this.drawMode === EDrawMode.SKETCH ?
|
418
418
|
"display-none" : "esri-widget esri-sketch__panel border-left esri-sketch__section";
|
419
|
-
return (h(Host, { key: '
|
419
|
+
return (h(Host, { key: '1f9544ac97df4b51337260e1bb7cf3b5d923fa03' }, h("div", { key: 'eca20834d2eacf3cc4a30e6ecf15a2f8d894cb8f', class: containerClass }, h("div", { key: '32bbaf5a03251c035821880231acb894a452b8dd', ref: (el) => { this._sketchElement = el; } }), h("div", { key: 'cd446419c2b7d347711a48851baec46f24d20375', class: undoRedoClass }, h("calcite-action", { key: '03ce63c7805c1cc1b63e78336ba624199eef3336', disabled: !this.undoEnabled, icon: "undo", onClick: () => this._undo(), scale: "s", text: this._translations.undo }), h("calcite-action", { key: '0d688389277586163c589561865ab7778021ac10', disabled: !this.redoEnabled, icon: "redo", onClick: () => this._redo(), scale: "s", text: this._translations.redo })))));
|
420
420
|
}
|
421
421
|
//--------------------------------------------------------------------------
|
422
422
|
//
|
@@ -325,7 +325,7 @@ const Alert = class {
|
|
325
325
|
};
|
326
326
|
Alert.style = CalciteAlertStyle0;
|
327
327
|
|
328
|
-
const deleteButtonCss = ":host{display:block}";
|
328
|
+
const deleteButtonCss = ":host{display:block}.delete-modal{position:fixed}";
|
329
329
|
const DeleteButtonStyle0 = deleteButtonCss;
|
330
330
|
|
331
331
|
const DeleteButton = class {
|
@@ -382,7 +382,7 @@ const DeleteButton = class {
|
|
382
382
|
* Renders the component.
|
383
383
|
*/
|
384
384
|
render() {
|
385
|
-
return (h(Host, { key: '
|
385
|
+
return (h(Host, { key: '87e080ea4203ab7fcb1313d8fa57a3d5c5d37885' }, this.buttonType === "button" ? (h("calcite-button", { appearance: "outline", disabled: !this._deleteEndabled, id: "solutions-delete", kind: "danger", onClick: () => this._delete(), width: "full" }, this._translations.deleteCount.replace("{{n}}", this.ids.length.toString()))) : (h("calcite-action", { appearance: "solid", compact: true, disabled: !this._deleteEndabled, id: this.icon, onClick: () => this._delete(), scale: "s", text: this._translations.delete }, h("calcite-button", { appearance: "transparent", iconStart: this.icon, kind: "danger" }, this._translations.delete))), this._deleteMessage()));
|
386
386
|
}
|
387
387
|
/**
|
388
388
|
* StencilJS: Called once just after the component is fully loaded and the first render() occurs.
|
@@ -419,7 +419,7 @@ const DeleteButton = class {
|
|
419
419
|
_deleteMessage() {
|
420
420
|
const confirmMessage = this.ids.length === 1 ? this._translations.confirmSingle :
|
421
421
|
this._translations.confirmMultiple;
|
422
|
-
return (h("calcite-modal", { "aria-labelledby": "modal-title", kind: "danger", onCalciteModalClose: () => this._deleteClosed(), open: this._confirmDelete }, h("div", { class: "display-flex align-center", id: "modal-title", slot: "header" }, this._translations.deleteFeature), h("div", { slot: "content" }, confirmMessage), h("calcite-button", { appearance: "outline", kind: "danger", onClick: () => this._deleteClosed(), slot: "secondary", width: "full" }, this._translations.cancel), h("calcite-button", { kind: "danger", loading: this._isDeleting, onClick: () => void this._deleteFeatures(), slot: "primary", width: "full" }, this._translations.delete)));
|
422
|
+
return (h("calcite-modal", { "aria-labelledby": "modal-title", class: "delete-modal", kind: "danger", onCalciteModalClose: () => this._deleteClosed(), open: this._confirmDelete }, h("div", { class: "display-flex align-center", id: "modal-title", slot: "header" }, this._translations.deleteFeature), h("div", { slot: "content" }, confirmMessage), h("calcite-button", { appearance: "outline", kind: "danger", onClick: () => this._deleteClosed(), slot: "secondary", width: "full" }, this._translations.cancel), h("calcite-button", { kind: "danger", loading: this._isDeleting, onClick: () => void this._deleteFeatures(), slot: "primary", width: "full" }, this._translations.delete)));
|
423
423
|
}
|
424
424
|
/**
|
425
425
|
* Delete the currently selected features
|
@@ -556,7 +556,7 @@ const EditCard = class {
|
|
556
556
|
!this.graphics[0].layer.editingEnabled : true;
|
557
557
|
const tableNodeClass = this._editorLoading ? "display-none" : "position-absolute";
|
558
558
|
const loadingClass = this._editorLoading ? "" : "display-none";
|
559
|
-
return (h(Host, { key: '
|
559
|
+
return (h(Host, { key: '80acdd7d9b9441be28664ab60b7ad5d19c633bdd' }, h("div", { key: 'c8e41f2f7f3d5fcc4f49dd42b1f530c9e422cc8a', class: "position-absolute" }, editDisabled ? (h("calcite-notice", { kind: "warning", open: true, slot: "content-top", width: "full" }, h("div", { slot: "message" }, this._translations.enableEditing))) : undefined, h("div", { key: '4b93fef902254d2a55e997bccdb4e16ee67c3c75', class: "position-absolute" }, h("div", { key: '1794c5c246ab90b2915a15a15077ae7d82ec567c', class: tableNodeClass, id: "feature-form", ref: (el) => this._editContainer = el }), h("calcite-loader", { key: '001162f8ae947cae915de33c16a116efd7795f75', class: loadingClass, label: "", scale: "s" })))));
|
560
560
|
}
|
561
561
|
//--------------------------------------------------------------------------
|
562
562
|
//
|
@@ -838,8 +838,8 @@ const InfoCard = class {
|
|
838
838
|
const id = (_d = (_c = this._features) === null || _c === void 0 ? void 0 : _c.selectedFeature) === null || _d === void 0 ? void 0 : _d.getObjectId();
|
839
839
|
const ids = parseInt(id === null || id === void 0 ? void 0 : id.toString(), 10) > -1 ? [id] : [];
|
840
840
|
const deleteEnabled = ((_e = this._layer) === null || _e === void 0 ? void 0 : _e.editingEnabled) && ((_h = (_g = (_f = this._layer) === null || _f === void 0 ? void 0 : _f.capabilities) === null || _g === void 0 ? void 0 : _g.operations) === null || _h === void 0 ? void 0 : _h.supportsDelete);
|
841
|
-
return (h(Host, { key: '
|
842
|
-
h("div", { key: '
|
841
|
+
return (h(Host, { key: 'ac9c78b064154a666a50e7e8540f13bd541c4d37' }, h("calcite-shell", { key: 'e12b6fd8ac5f92282899edceb5818764fb543301', style: { position: this.position } }, this._getHeader(), h("calcite-loader", { key: 'e73db3c6f71cddf497cb20e1f59e9f1d8b1ecdd6', class: loadingClass, label: this._translations.fetchingData }), h("div", { key: 'ab1913d90206219978d425a45f312da3e73bcca8', class: "esri-widget feature-node " + featureNodeClass, id: this._featuresNodeId }), h("div", { key: '67242dfb2b219e71a135c88d9d5e2fd40b083226', class: `${editButtonClass} width-100`, slot: "footer" }, this.allowEditing &&
|
842
|
+
h("div", { key: '25ee3d9374a5ce97c4fcd672b1f78315d1294719', class: "display-flex top-border padding-1-2" }, h("calcite-button", { key: '840e3b4ae075fbfd7836f2757128e2cfe9f267e3', appearance: "solid", id: "solutions-edit", onClick: () => this._openEditRecord(), width: "full" }, this._translations.edit), this.isMobile && deleteEnabled ? (h("delete-button", { class: "padding-inline-start-1 width-100", id: "solutions-delete", ids: ids, layer: this._layer, onEditsComplete: () => this._closePopup() })) : undefined, h("calcite-tooltip", { key: '747436c3815e94976c2838777a26185c9cb7ab28', placement: "bottom", "reference-element": "solutions-edit" }, h("span", { key: 'd40dbe85eddaf99acc522f305960ce59c16a8b1f' }, this._translations.edit)), this.isMobile ? (h("calcite-tooltip", { placement: "bottom", "reference-element": "solutions-delete" }, h("span", null, this._translations.delete))) : undefined), this.paginationEnabled && !nextBackDisabled && h("div", { key: '9a1b1e5d7e4432f6b2cd80f77a49f50b1910117f', class: `display-flex padding-1-2 button-container top-border ${nextBackClass}` }, h("div", { key: '9b6fd66023b514ff996107ade3af93415f1353f1' }, h("calcite-button", { key: '823bcbe1a3b592344972e6ef39fd5088ab6197fa', appearance: 'transparent', disabled: nextBackDisabled, iconStart: "chevron-left", id: "solutions-back", onClick: () => this._back(), width: "full" }), h("calcite-tooltip", { key: 'f547487c9eae179e0c65015a24432c936de2ceca', placement: "top", "reference-element": "solutions-back" }, h("span", { key: 'f6f352416103008acc20238efe7e7714fca8d05e' }, this._translations.back))), h("calcite-action", { key: '799e06b8af5df338b920ddc578fa349de469e786', class: 'pagination-action', onClick: () => this._toggleListView(), scale: "s", text: "", textEnabled: true }, h("span", { key: 'adee5b6b5149dbb4c1d6136c1314db89a04e8913', class: "pagination-count" }, this._count)), h("div", { key: '87f181c53ad1806a9831d01b54fdd51434a5a4c2' }, h("calcite-button", { key: 'a4612a6f0d9b6a9412e60022599cba536cd4f623', appearance: "transparent", disabled: nextBackDisabled, iconStart: "chevron-right", id: "solutions-next", onClick: () => this._next(), width: "full" }), h("calcite-tooltip", { key: '613849a34a568fe8df2abe8b1813070cb7a54633', placement: "top", "reference-element": "solutions-next" }, h("span", { key: '35a2e621ce4b3bccb2b859e961db1065d619b2d9' }, this._translations.next))))), h("edit-card", { key: 'a2054fc21fc09dbffc47e1a7617a4b91b29d26fd', class: editClass, graphicIndex: (_j = this._features) === null || _j === void 0 ? void 0 : _j.selectedFeatureIndex, graphics: this.graphics, mapView: this.mapView, open: this._editRecordOpen }), h("calcite-alert", { key: 'ec0fd6540b21987c80fe2035efa96d197c1e6cec', icon: "layer-broken", kind: "warning", label: "", onCalciteAlertClose: () => this._alertClosed(), open: this._alertOpen, placement: "top" }, h("div", { key: '721a363423ec61a9645b003a7d53849137fe1b82', slot: "title" }, this._translations.editDisabled), h("div", { key: '143e9ff06f5363682e8b9e1976fdbfdd1b56f2a9', slot: "message" }, this._translations.enableEditing)))));
|
843
843
|
}
|
844
844
|
//--------------------------------------------------------------------------
|
845
845
|
//
|
@@ -167,7 +167,7 @@ const MapLayerPicker = class {
|
|
167
167
|
const id = "map-layer-picker";
|
168
168
|
let style = this.height > 0 ? { "height": `${this.height.toString()}px` } : {};
|
169
169
|
style = Object.assign(Object.assign({}, style), { "display": this.display });
|
170
|
-
return (h(Host, { key: '
|
170
|
+
return (h(Host, { key: 'a96e93924530d926c5e10dd2f7212f3f8c1cbe3c' }, h("div", { key: '4b96a73e43e86c31291e4ac60eb15976b01de6a2', class: "map-layer-picker-container", style: style }, h("div", { key: 'e75c61d8ce0853814dd3903b9e1952cc613b6fbb', class: "map-layer-picker", style: style }, !this._hasValidLayers ? this._getInvalidPlaceholder() :
|
171
171
|
!this._hasMultipleLayers && this.showSingleLayerAsLabel ? this._getSingleLayerPlaceholder() :
|
172
172
|
this.type === "combobox" ? this._getCombobox(id) :
|
173
173
|
this.type === "select" ? this._getSelect(id) : this._getDropdown(id)))));
|
@@ -355,6 +355,7 @@ const CreateFeature = class {
|
|
355
355
|
this.selectedLayerId = undefined;
|
356
356
|
this.customizeSubmit = false;
|
357
357
|
this.searchConfiguration = undefined;
|
358
|
+
this._editorLoading = false;
|
358
359
|
this.showSearchWidget = undefined;
|
359
360
|
}
|
360
361
|
//--------------------------------------------------------------------------
|
@@ -363,13 +364,25 @@ const CreateFeature = class {
|
|
363
364
|
//
|
364
365
|
//--------------------------------------------------------------------------
|
365
366
|
/**
|
366
|
-
|
367
|
-
|
367
|
+
* Called each time the mapView prop is changed.
|
368
|
+
*/
|
368
369
|
async mapViewWatchHandler() {
|
369
370
|
await this.mapView.when(async () => {
|
370
371
|
await this.init();
|
371
372
|
});
|
372
373
|
}
|
374
|
+
/**
|
375
|
+
* When _editorLoading is true the container node will be hidden while starting the create workflow
|
376
|
+
*/
|
377
|
+
async _editorLoadingWatchHandler(v) {
|
378
|
+
var _a, _b;
|
379
|
+
if (v) {
|
380
|
+
(_a = this._container) === null || _a === void 0 ? void 0 : _a.classList.add("display-none");
|
381
|
+
await this.startCreate();
|
382
|
+
(_b = this._container) === null || _b === void 0 ? void 0 : _b.classList.remove("display-none");
|
383
|
+
this._editorLoading = false;
|
384
|
+
}
|
385
|
+
}
|
373
386
|
//--------------------------------------------------------------------------
|
374
387
|
//
|
375
388
|
// Methods (public)
|
@@ -417,7 +430,9 @@ const CreateFeature = class {
|
|
417
430
|
*/
|
418
431
|
render() {
|
419
432
|
const showSearchWidget = this.showSearchWidget ? '' : 'display-none';
|
420
|
-
|
433
|
+
const loaderClass = this._editorLoading ? "" : "display-none";
|
434
|
+
const featureFormClass = this._editorLoading ? "display-none" : "";
|
435
|
+
return (h(Fragment, { key: '2e790defdd5592fed729853888ee06143c95c84d' }, h("calcite-loader", { key: 'a0f1de0064ea80305d4aaf83f78939c0236c955a', class: loaderClass, label: "", scale: "s" }), h("div", { key: '1af391d6d7fd0dffa2e8e4b43905f8081a5f9820', class: featureFormClass, id: "feature-form" }), h("div", { key: '88d12115c3c2e0d34a5d6fd8895fb60cec6e9b5d', class: `search-widget ${showSearchWidget} ${featureFormClass}`, id: "search-widget-ref" })));
|
421
436
|
}
|
422
437
|
//--------------------------------------------------------------------------
|
423
438
|
//
|
@@ -453,11 +468,13 @@ const CreateFeature = class {
|
|
453
468
|
* @protected
|
454
469
|
*/
|
455
470
|
async createEditorWidget() {
|
471
|
+
var _a;
|
456
472
|
if (this._editor) {
|
457
473
|
this._editor.destroy();
|
458
474
|
}
|
459
475
|
const layerInfos = [];
|
460
|
-
|
476
|
+
this._container = document.createElement("div");
|
477
|
+
(_a = this._container) === null || _a === void 0 ? void 0 : _a.classList.add("display-none");
|
461
478
|
const allMapLayers = await getAllLayers(this.mapView);
|
462
479
|
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
463
480
|
allMapLayers.forEach(async (eachLayer) => {
|
@@ -476,9 +493,9 @@ const CreateFeature = class {
|
|
476
493
|
visibleElements: {
|
477
494
|
snappingControls: false
|
478
495
|
},
|
479
|
-
container
|
496
|
+
container: this._container
|
480
497
|
});
|
481
|
-
this.el.appendChild(
|
498
|
+
this.el.appendChild(this._container);
|
482
499
|
//Add handle to watch if attachments are added/edited
|
483
500
|
const attachmentHandle = this.reactiveUtils.watch(() => this._editor.viewModel.state, (state) => {
|
484
501
|
if (state === 'adding-attachment' || state === 'editing-attachment') {
|
@@ -497,13 +514,14 @@ const CreateFeature = class {
|
|
497
514
|
const handle = this.reactiveUtils.watch(() => this._editor.viewModel.featureTemplatesViewModel.state, (state) => {
|
498
515
|
if (state === 'ready') {
|
499
516
|
this.progressStatus.emit(0.5);
|
500
|
-
|
517
|
+
this._editorLoading = true;
|
501
518
|
}
|
502
519
|
});
|
503
520
|
this._editor.viewModel.addHandles(handle);
|
504
521
|
//Add handle to watch editor viewmodel state and then show the search widget
|
505
522
|
const formHandle = this.reactiveUtils.watch(() => this._editor.viewModel.state, (state) => {
|
506
523
|
if (state === 'creating-features') {
|
524
|
+
this._editorLoading = true;
|
507
525
|
this.showSearchWidget = true;
|
508
526
|
}
|
509
527
|
});
|
@@ -514,36 +532,39 @@ const CreateFeature = class {
|
|
514
532
|
* @protected
|
515
533
|
*/
|
516
534
|
async startCreate() {
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
this.
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
535
|
+
return new Promise((resolve, reject) => {
|
536
|
+
var _a;
|
537
|
+
if ((_a = this._editor.viewModel.featureTemplatesViewModel.items) === null || _a === void 0 ? void 0 : _a.length) {
|
538
|
+
const items = this._editor.viewModel.featureTemplatesViewModel.items[0].get("items");
|
539
|
+
//once the feature template is selected handle the event for formSubmit and sketch complete
|
540
|
+
//also, hide the headers and footer in the editor as we will be showing our own submit and cancel button
|
541
|
+
this._editor.viewModel.featureTemplatesViewModel.on('select', () => {
|
542
|
+
this.progressStatus.emit(0.75);
|
543
|
+
setTimeout(() => {
|
544
|
+
//on form submit
|
545
|
+
this._editor.viewModel.featureFormViewModel.on('submit', this.submitted.bind(this));
|
546
|
+
//on sketch complete emit the event
|
547
|
+
this._editor.viewModel.sketchViewModel.on("create", (evt) => {
|
548
|
+
if (evt.state === "complete") {
|
549
|
+
this.showSearchWidget = false;
|
550
|
+
this.progressStatus.emit(1);
|
551
|
+
this.drawComplete.emit();
|
552
|
+
}
|
553
|
+
});
|
554
|
+
this.hideEditorsElements().then(() => {
|
555
|
+
resolve({});
|
556
|
+
}, e => reject(e));
|
557
|
+
}, 700);
|
558
|
+
});
|
559
|
+
//if only one feature template then directly start geometry creation for that
|
560
|
+
//else allow feature template selection to user
|
561
|
+
if (items.length === 1) {
|
562
|
+
this._editor.viewModel.featureTemplatesViewModel.select(items[0]);
|
563
|
+
}
|
564
|
+
//hides the header and footer elements in editor widget
|
565
|
+
void this.hideEditorsElements();
|
543
566
|
}
|
544
|
-
|
545
|
-
this.hideEditorsElements();
|
546
|
-
}
|
567
|
+
});
|
547
568
|
}
|
548
569
|
/**
|
549
570
|
* Display search widget to search location
|
@@ -578,7 +599,7 @@ const CreateFeature = class {
|
|
578
599
|
if (this._editor.viewModel.sketchViewModel.createGraphic && pointGeometry) {
|
579
600
|
this._editor.viewModel.sketchViewModel.createGraphic.set('geometry', pointGeometry);
|
580
601
|
this._editor.viewModel.sketchViewModel.complete();
|
581
|
-
this.hideEditorsElements();
|
602
|
+
void this.hideEditorsElements();
|
582
603
|
}
|
583
604
|
}, 100);
|
584
605
|
}
|
@@ -637,22 +658,21 @@ const CreateFeature = class {
|
|
637
658
|
* Hides the elements of editor widget
|
638
659
|
* @protected
|
639
660
|
*/
|
640
|
-
hideEditorsElements() {
|
661
|
+
async hideEditorsElements() {
|
662
|
+
var _a;
|
641
663
|
if (!this.customizeSubmit) {
|
642
664
|
return;
|
643
665
|
}
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
});
|
655
|
-
}, 700);
|
666
|
+
await this.timeout(700);
|
667
|
+
//hides the header and footer on the featureForm
|
668
|
+
(_a = this.el.querySelector('.esri-editor').querySelectorAll('calcite-flow-item')) === null || _a === void 0 ? void 0 : _a.forEach((flowItem) => {
|
669
|
+
var _a, _b, _c, _d, _e;
|
670
|
+
const article = (_c = (_b = (_a = flowItem.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('calcite-panel')) === null || _b === void 0 ? void 0 : _b.shadowRoot) === null || _c === void 0 ? void 0 : _c.querySelector('article');
|
671
|
+
//hide the header
|
672
|
+
(_d = article === null || article === void 0 ? void 0 : article.querySelector('header')) === null || _d === void 0 ? void 0 : _d.setAttribute('style', 'display: none');
|
673
|
+
//hide the footer
|
674
|
+
(_e = article === null || article === void 0 ? void 0 : article.querySelector('footer')) === null || _e === void 0 ? void 0 : _e.setAttribute('style', 'display: none');
|
675
|
+
});
|
656
676
|
}
|
657
677
|
/**
|
658
678
|
* On creation of feature emit the event that the feature is created
|
@@ -688,9 +708,18 @@ const CreateFeature = class {
|
|
688
708
|
this.success.emit();
|
689
709
|
}
|
690
710
|
}
|
711
|
+
/**
|
712
|
+
* call setTimeout in Promise wrapper
|
713
|
+
* @param delay The time, in milliseconds that the timer should wait before the promise is resolved
|
714
|
+
* @protected
|
715
|
+
*/
|
716
|
+
timeout(delay) {
|
717
|
+
return new Promise(resolve => setTimeout(resolve, delay));
|
718
|
+
}
|
691
719
|
get el() { return getElement(this); }
|
692
720
|
static get watchers() { return {
|
693
|
-
"mapView": ["mapViewWatchHandler"]
|
721
|
+
"mapView": ["mapViewWatchHandler"],
|
722
|
+
"_editorLoading": ["_editorLoadingWatchHandler"]
|
694
723
|
}; }
|
695
724
|
};
|
696
725
|
CreateFeature.style = CreateFeatureStyle0;
|
@@ -782,7 +811,7 @@ const CreateRelatedFeature = class {
|
|
782
811
|
this.reactiveUtils = reactiveUtils;
|
783
812
|
}
|
784
813
|
render() {
|
785
|
-
return (h(Host, { key: '
|
814
|
+
return (h(Host, { key: 'c8516898db79b35b7fba909810afdc56b0602ebd' }));
|
786
815
|
}
|
787
816
|
/**
|
788
817
|
* StencilJS: Called once just after the component is fully loaded and the first render() occurs.
|
@@ -1041,12 +1070,12 @@ const FeatureDetails = class {
|
|
1041
1070
|
var _a, _b, _c, _d, _e;
|
1042
1071
|
//When related features found show comments list of only those features else comments list will be empty
|
1043
1072
|
const commentsListWhereClause = ((_a = this._relatedFeaturesOIDs) === null || _a === void 0 ? void 0 : _a.length) > 0 ? `objectId in(${this._relatedFeaturesOIDs})` : '1=0';
|
1044
|
-
return (h("calcite-panel", { key: '
|
1045
|
-
h("div", { key: '
|
1046
|
-
h("div", { key: '
|
1047
|
-
h("calcite-button", { key: '
|
1048
|
-
h("calcite-button", { key: '
|
1049
|
-
h("feature-list", { key: '
|
1073
|
+
return (h("calcite-panel", { key: 'e42bbf7e4070b03c43aec1bf47c442b65cd35731', "full-height": true }, h("info-card", { key: 'f44099e2f8f87edbc656700e65daeb1bf934d41c', allowEditing: false, graphics: this.graphics, highlightEnabled: false, isLoading: false, isMobile: false, mapView: this.mapView, onSelectionChanged: (e) => { this.featureSelectionChange.emit(e.detail); }, paginationEnabled: false, position: "relative", ref: el => this._infoCard = el }), (this._likeFieldAvailable || this._dislikeFieldAvailable || this._commentsAvailable) &&
|
1074
|
+
h("div", { key: 'aa65adf8d8b6a059d5e9d0e74a1896eb20c84eaf', class: "buttons-container" }, this._commentsAvailable &&
|
1075
|
+
h("div", { key: '09dd5da4932a9a0526b413592d25469087eaf4c9', class: "comment-btn" }, h("span", { key: '48f7080ace69de3589aa4f3b199eb25e53f61110' }, this._relatedFeaturesOIDs.length), h("calcite-icon", { key: 'f524b4d66a0a6427dda6a7a93e9dc362fe7337fc', icon: "speech-bubble", scale: 's' })), this._likeFieldAvailable &&
|
1076
|
+
h("calcite-button", { key: '278a685b13f7ae2a37cb649a0933006104fa7b9f', appearance: "transparent", iconEnd: "thumbs-up", kind: this._isLikeBtnClicked ? "brand" : "neutral", loading: this._updating, onClick: this.onLikeButtonClick.bind(this), scale: 'm' }, (_c = (_b = this._likeCount) !== null && _b !== void 0 ? _b : this._selectedGraphic.attributes[this._likeField]) !== null && _c !== void 0 ? _c : 0), this._dislikeFieldAvailable &&
|
1077
|
+
h("calcite-button", { key: '7010b6ef352be7c587d7ca49fe3b8411aeb163c6', appearance: "transparent", iconEnd: "thumbs-down", kind: this._isDislikeBtnClicked ? "brand" : "neutral", loading: this._updating, onClick: this.onDislikeButtonClick.bind(this), scale: 'm' }, (_e = (_d = this._disLikeCount) !== null && _d !== void 0 ? _d : this._selectedGraphic.attributes[this._dislikeField]) !== null && _e !== void 0 ? _e : 0)), this.relatedTableId && this._commentsAvailable &&
|
1078
|
+
h("feature-list", { key: '526614c384fa627057a18528c1bd4aaf2b9c70d8', class: "height-full", mapView: this.mapView, onFeatureSelect: (e) => { this.commentSelect.emit(e.detail); }, pageSize: 5, ref: el => this._commentsList = el, selectedLayerId: this.relatedTableId, showErrorWhenNoFeatures: false, showInitialLoading: false, textSize: "small", whereClause: commentsListWhereClause })));
|
1050
1079
|
}
|
1051
1080
|
/**
|
1052
1081
|
* Load esri javascript api modules
|