@esri/solutions-components 0.10.2 → 0.10.4
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 +2 -2
- package/dist/cjs/buffer-tools_3.cjs.entry.js +2 -2
- package/dist/cjs/calcite-action-pad_2.cjs.entry.js +2 -2
- package/dist/cjs/calcite-alert_4.cjs.entry.js +12 -10
- package/dist/cjs/calcite-block_5.cjs.entry.js +4 -4
- package/dist/cjs/calcite-dropdown-group_2.cjs.entry.js +2 -2
- package/dist/cjs/calcite-flow_6.cjs.entry.js +2 -2
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +5 -5
- package/dist/cjs/card-manager_3.cjs.entry.js +7 -6
- package/dist/cjs/{common-4d4cf291.js → common-61b41813.js} +1 -1
- package/dist/cjs/consent-manager.cjs.entry.js +2 -2
- package/dist/cjs/crowdsource-manager.cjs.entry.js +5 -6
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +2 -2
- package/dist/cjs/{downloadUtils-48ffc5b3.js → downloadUtils-b757205e.js} +5 -5
- package/dist/cjs/feature-list.cjs.entry.js +6 -6
- package/dist/cjs/{helpers-6f7660d4.js → helpers-1deec961.js} +1 -1
- package/dist/cjs/{index.es-9e361fa2.js → index.es-6c8b7d64.js} +5 -5
- package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-control-panel.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-create.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-export-views.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-export.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-header.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-keyboard-shortcuts.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +6 -6
- package/dist/cjs/instant-apps-language-translator.cjs.entry.js +6 -6
- package/dist/cjs/instant-apps-measurement.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-popover.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-sign-in.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-splash.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-time-filter.cjs.entry.js +4 -4
- package/dist/cjs/{languageSwitcher-f0bb94fa.js → languageSwitcher-dc2dd354.js} +1 -1
- package/dist/cjs/{languageUtil-f22ce913.js → languageUtil-a3e1eafd.js} +1 -1
- package/dist/cjs/layout-manager.cjs.entry.js +2 -2
- package/dist/cjs/{loadModules-36d49819.js → loadModules-8567855e.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{locale-2dc1252d.js → locale-4e7fe921.js} +1 -1
- package/dist/cjs/{locale-239118c6.js → locale-a1bcb6eb.js} +2 -2
- package/dist/cjs/map-select-tools_3.cjs.entry.js +40 -27
- package/dist/cjs/{popupUtils-b771f498.js → popupUtils-2b5ec788.js} +2 -2
- package/dist/cjs/public-notification.cjs.entry.js +13 -10
- package/dist/cjs/{restHelpersGet-88ba0e25.js → restHelpersGet-bf484fda.js} +24 -20
- package/dist/cjs/solution-configuration.cjs.entry.js +6 -6
- package/dist/cjs/solution-contents_3.cjs.entry.js +6 -6
- package/dist/cjs/{solution-resource-16c7510c.js → solution-resource-57cf345b.js} +1 -1
- package/dist/cjs/{solution-store-747a28ab.js → solution-store-71bb46fa.js} +65 -58
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/cjs/spatial-ref.cjs.entry.js +4 -4
- package/dist/cjs/store-manager.cjs.entry.js +4 -4
- package/dist/cjs/{templates-2f44c01b.js → templates-e4b98319.js} +2 -2
- package/dist/cjs/{utils-e486aa01.js → utils-b43fe04f.js} +1 -1
- package/dist/collection/components/card-manager/card-manager.js +20 -1
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +3 -22
- package/dist/collection/components/edit-card/edit-card.js +21 -2
- package/dist/collection/components/info-card/info-card.js +21 -2
- package/dist/collection/components/map-select-tools/map-select-tools.js +88 -21
- package/dist/collection/components/public-notification/public-notification.js +62 -5
- package/dist/collection/components/refine-selection/refine-selection.js +1 -1
- package/dist/collection/utils/interfaces.ts +3 -0
- package/dist/collection/utils/pdfUtils.js +1 -1
- package/dist/collection/utils/pdfUtils.ts +1 -1
- package/dist/components/card-manager2.js +3 -1
- package/dist/components/crowdsource-manager.js +3 -5
- package/dist/components/downloadUtils.js +1 -1
- package/dist/components/edit-card2.js +4 -2
- package/dist/components/info-card2.js +4 -2
- package/dist/components/map-select-tools2.js +37 -21
- package/dist/components/public-notification.js +11 -5
- package/dist/components/refine-selection2.js +1 -1
- package/dist/components/restHelpersGet.js +23 -19
- package/dist/components/solution-resource.js +1 -1
- package/dist/components/solution-store.js +63 -56
- package/dist/esm/basemap-gallery_7.entry.js +2 -2
- package/dist/esm/buffer-tools_3.entry.js +2 -2
- package/dist/esm/calcite-action-pad_2.entry.js +2 -2
- package/dist/esm/calcite-alert_4.entry.js +12 -10
- package/dist/esm/calcite-block_5.entry.js +4 -4
- package/dist/esm/calcite-dropdown-group_2.entry.js +2 -2
- package/dist/esm/calcite-flow_6.entry.js +2 -2
- package/dist/esm/calcite-shell-panel_14.entry.js +5 -5
- package/dist/esm/card-manager_3.entry.js +7 -6
- package/dist/esm/{common-3b99e350.js → common-1618d62f.js} +1 -1
- package/dist/esm/consent-manager.entry.js +2 -2
- package/dist/esm/crowdsource-manager.entry.js +5 -6
- package/dist/esm/crowdsource-reporter.entry.js +2 -2
- package/dist/esm/{downloadUtils-abb8cda2.js → downloadUtils-16c51b10.js} +5 -5
- package/dist/esm/feature-list.entry.js +6 -6
- package/dist/esm/{helpers-62213648.js → helpers-2298687e.js} +1 -1
- package/dist/esm/{index.es-9283e62c.js → index.es-d950915a.js} +5 -5
- package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +5 -5
- package/dist/esm/instant-apps-control-panel.entry.js +2 -2
- package/dist/esm/instant-apps-create.entry.js +4 -4
- package/dist/esm/instant-apps-export-views.entry.js +4 -4
- package/dist/esm/instant-apps-export.entry.js +4 -4
- package/dist/esm/instant-apps-header.entry.js +2 -2
- package/dist/esm/instant-apps-interactive-legend-classic.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend.entry.js +5 -5
- package/dist/esm/instant-apps-keyboard-shortcuts.entry.js +4 -4
- package/dist/esm/instant-apps-language-switcher.entry.js +6 -6
- package/dist/esm/instant-apps-language-translator.entry.js +6 -6
- package/dist/esm/instant-apps-measurement.entry.js +4 -4
- package/dist/esm/instant-apps-popover.entry.js +4 -4
- package/dist/esm/instant-apps-scoreboard.entry.js +4 -4
- package/dist/esm/instant-apps-sign-in.entry.js +4 -4
- package/dist/esm/instant-apps-splash.entry.js +4 -4
- package/dist/esm/instant-apps-time-filter.entry.js +4 -4
- package/dist/esm/{languageSwitcher-b665499d.js → languageSwitcher-9db90f1e.js} +1 -1
- package/dist/esm/{languageUtil-a3e6adf6.js → languageUtil-2b6e191a.js} +1 -1
- package/dist/esm/layout-manager.entry.js +2 -2
- package/dist/esm/{loadModules-9c062d08.js → loadModules-03ba7abe.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{locale-e758c2ee.js → locale-7162b55a.js} +1 -1
- package/dist/esm/{locale-35ebf4af.js → locale-adb5ff0b.js} +2 -2
- package/dist/esm/map-select-tools_3.entry.js +40 -27
- package/dist/esm/{popupUtils-9b2b0aba.js → popupUtils-44f11275.js} +2 -2
- package/dist/esm/public-notification.entry.js +13 -10
- package/dist/esm/{restHelpersGet-788d7f7b.js → restHelpersGet-0a15c2f4.js} +24 -20
- package/dist/esm/solution-configuration.entry.js +6 -6
- package/dist/esm/solution-contents_3.entry.js +6 -6
- package/dist/esm/{solution-resource-966f8511.js → solution-resource-ab63a236.js} +1 -1
- package/dist/esm/{solution-store-0586e891.js → solution-store-e2690620.js} +65 -58
- package/dist/esm/solutions-components.js +1 -1
- package/dist/esm/spatial-ref.entry.js +4 -4
- package/dist/esm/store-manager.entry.js +4 -4
- package/dist/esm/{templates-9330d7b8.js → templates-9556eb87.js} +2 -2
- package/dist/esm/{utils-72a48b01.js → utils-178e7afe.js} +1 -1
- package/dist/solutions-components/{p-71452a4e.entry.js → p-002c97df.entry.js} +1 -1
- package/dist/solutions-components/{p-08b0e478.js → p-00b26aac.js} +2 -2
- package/dist/solutions-components/{p-f2ac5d0e.js → p-1904654e.js} +1 -1
- package/dist/solutions-components/{p-e9aba912.entry.js → p-1b9aa18e.entry.js} +1 -1
- package/dist/solutions-components/p-235bf02e.entry.js +6 -0
- package/dist/solutions-components/{p-beeccd19.entry.js → p-24b3aedc.entry.js} +1 -1
- package/dist/solutions-components/{p-f067a46c.js → p-2fa78dd8.js} +1 -1
- package/dist/solutions-components/{p-c742acd9.js → p-2fc63144.js} +1 -1
- package/dist/solutions-components/{p-65283b75.entry.js → p-3438cbc4.entry.js} +1 -1
- package/dist/solutions-components/{p-1176ec70.entry.js → p-38cfa3cd.entry.js} +1 -1
- package/dist/solutions-components/p-3b426576.entry.js +6 -0
- package/dist/solutions-components/{p-de30afd0.entry.js → p-425a1dab.entry.js} +1 -1
- package/dist/solutions-components/{p-29962ae5.entry.js → p-4848b48f.entry.js} +1 -1
- package/dist/solutions-components/p-49aa2929.entry.js +6 -0
- package/dist/solutions-components/{p-73ef6866.js → p-4b3cc01f.js} +3 -3
- package/dist/solutions-components/{p-65581d83.js → p-4cd4cb85.js} +1 -1
- package/dist/solutions-components/{p-2d03b0d7.entry.js → p-5b818d29.entry.js} +1 -1
- package/dist/solutions-components/{p-787a4789.entry.js → p-5c999087.entry.js} +1 -1
- package/dist/solutions-components/{p-32f5c6ec.entry.js → p-69cfa9e6.entry.js} +1 -1
- package/dist/solutions-components/{p-51cfb4a6.entry.js → p-6b30ca36.entry.js} +1 -1
- package/dist/solutions-components/{p-4b843bc0.entry.js → p-6de944af.entry.js} +1 -1
- package/dist/solutions-components/{p-4a0838c0.entry.js → p-78712b70.entry.js} +1 -1
- package/dist/solutions-components/{p-ee87a7b0.entry.js → p-7af4c00e.entry.js} +3 -3
- package/dist/solutions-components/{p-09d62c22.js → p-7bfecd07.js} +1 -1
- package/dist/solutions-components/{p-07053ee3.entry.js → p-80e6c7cb.entry.js} +1 -1
- package/dist/solutions-components/{p-ef493a84.entry.js → p-86e6b5b3.entry.js} +1 -1
- package/dist/solutions-components/{p-81f62cf5.entry.js → p-88d4db61.entry.js} +1 -1
- package/dist/solutions-components/{p-13f83a1a.entry.js → p-8a6fa619.entry.js} +1 -1
- package/dist/solutions-components/{p-e05894a6.entry.js → p-8b999a2b.entry.js} +1 -1
- package/dist/solutions-components/{p-614edd9f.entry.js → p-8e8b92b4.entry.js} +1 -1
- package/dist/solutions-components/{p-a759e0e5.js → p-90d6755b.js} +1 -1
- package/dist/solutions-components/{p-f4828ba4.entry.js → p-932f22b5.entry.js} +1 -1
- package/dist/solutions-components/{p-afad4f05.js → p-a091bc9a.js} +1 -1
- package/dist/solutions-components/{p-a7b05a79.entry.js → p-a22b8cc1.entry.js} +1 -1
- package/dist/solutions-components/{p-a7710355.js → p-a860f365.js} +8 -7
- package/dist/solutions-components/{p-2cff27c5.js → p-a8e6463b.js} +2 -2
- package/dist/solutions-components/{p-7efb5ef0.entry.js → p-a9818be2.entry.js} +1 -1
- package/dist/solutions-components/{p-3e84a420.entry.js → p-ab2adcaf.entry.js} +1 -1
- package/dist/solutions-components/{p-4c0b8e55.entry.js → p-abc9e858.entry.js} +1 -1
- package/dist/solutions-components/{p-af2c8aa9.js → p-ac122d9e.js} +1 -1
- package/dist/solutions-components/{p-ed9b7fa1.entry.js → p-b19ca04e.entry.js} +1 -1
- package/dist/solutions-components/{p-fb0fdc0d.entry.js → p-b7cec3bd.entry.js} +1 -1
- package/dist/solutions-components/p-b80bcd0b.entry.js +6 -0
- package/dist/solutions-components/{p-92744164.entry.js → p-b850796d.entry.js} +1 -1
- package/dist/solutions-components/{p-7c583516.js → p-badcaf04.js} +1 -1
- package/dist/solutions-components/{p-a2150807.entry.js → p-c6473b38.entry.js} +1 -1
- package/dist/solutions-components/{p-f341b87e.entry.js → p-d57736d0.entry.js} +1 -1
- package/dist/solutions-components/{p-09b47605.js → p-d7868dd4.js} +1 -1
- package/dist/solutions-components/{p-f7d822f7.entry.js → p-d8047d8f.entry.js} +1 -1
- package/dist/solutions-components/{p-386429a4.entry.js → p-dc17b638.entry.js} +1 -1
- package/dist/solutions-components/{p-02d3d3e9.entry.js → p-e3e593db.entry.js} +2 -2
- package/dist/solutions-components/{p-00786a30.entry.js → p-edd70ba3.entry.js} +1 -1
- package/dist/solutions-components/{p-6f836c0a.entry.js → p-ef6567ae.entry.js} +1 -1
- package/dist/solutions-components/{p-0bf41dfd.entry.js → p-f59b4183.entry.js} +1 -1
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/interfaces.ts +3 -0
- package/dist/solutions-components/utils/pdfUtils.ts +1 -1
- package/dist/types/components/card-manager/card-manager.d.ts +4 -0
- package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +0 -4
- package/dist/types/components/edit-card/edit-card.d.ts +4 -0
- package/dist/types/components/info-card/info-card.d.ts +4 -0
- package/dist/types/components/map-select-tools/map-select-tools.d.ts +12 -0
- package/dist/types/components/public-notification/public-notification.d.ts +12 -0
- package/dist/types/components.d.ts +72 -8
- package/dist/types/utils/interfaces.d.ts +3 -0
- package/package.json +1 -1
- package/dist/solutions-components/p-2977bdbf.entry.js +0 -6
- package/dist/solutions-components/p-d0432926.entry.js +0 -6
- package/dist/solutions-components/p-d1fd4a53.entry.js +0 -6
- package/dist/solutions-components/p-f26423c7.entry.js +0 -6
- package/dist/solutions-components_commit.txt +0 -8
- /package/dist/cjs/{esri-loader-a56cbcbe.js → esri-loader-08dc41bd.js} +0 -0
- /package/dist/esm/{esri-loader-781d738a.js → esri-loader-c6842c6b.js} +0 -0
- /package/dist/solutions-components/{p-6a68306c.js → p-0a24ad5f.js} +0 -0
- /package/dist/solutions-components/{p-659678f1.js → p-9fe07c30.js} +0 -0
@@ -8,11 +8,11 @@
|
|
8
8
|
Object.defineProperty(exports, '__esModule', { value: true });
|
9
9
|
|
10
10
|
const index = require('./index-696e53e6.js');
|
11
|
-
const locale = require('./locale-
|
12
|
-
const common = require('./common-
|
13
|
-
require('./esri-loader-
|
11
|
+
const locale = require('./locale-4e7fe921.js');
|
12
|
+
const common = require('./common-61b41813.js');
|
13
|
+
require('./esri-loader-08dc41bd.js');
|
14
14
|
require('./_commonjsHelpers-baf43783.js');
|
15
|
-
require('./solution-resource-
|
15
|
+
require('./solution-resource-57cf345b.js');
|
16
16
|
require('./interfaces-09c4c40e.js');
|
17
17
|
|
18
18
|
/** @license
|
@@ -8,13 +8,13 @@
|
|
8
8
|
Object.defineProperty(exports, '__esModule', { value: true });
|
9
9
|
|
10
10
|
const index = require('./index-696e53e6.js');
|
11
|
-
const solutionStore = require('./solution-store-
|
12
|
-
const templates = require('./templates-
|
11
|
+
const solutionStore = require('./solution-store-71bb46fa.js');
|
12
|
+
const templates = require('./templates-e4b98319.js');
|
13
13
|
require('./index-a0cca96e.js');
|
14
14
|
require('./interfaces-09c4c40e.js');
|
15
|
-
require('./solution-resource-
|
15
|
+
require('./solution-resource-57cf345b.js');
|
16
16
|
require('./_commonjsHelpers-baf43783.js');
|
17
|
-
require('./restHelpersGet-
|
17
|
+
require('./restHelpersGet-bf484fda.js');
|
18
18
|
|
19
19
|
const StoreManager = class {
|
20
20
|
constructor(hostRef) {
|
@@ -6,8 +6,8 @@
|
|
6
6
|
'use strict';
|
7
7
|
|
8
8
|
const interfaces = require('./interfaces-09c4c40e.js');
|
9
|
-
require('./solution-resource-
|
10
|
-
const restHelpersGet = require('./restHelpersGet-
|
9
|
+
require('./solution-resource-57cf345b.js');
|
10
|
+
const restHelpersGet = require('./restHelpersGet-bf484fda.js');
|
11
11
|
|
12
12
|
/** @license
|
13
13
|
* Copyright 2022 Esri
|
@@ -24,6 +24,7 @@ import { queryFeaturesByID } from "../../utils/queryUtils";
|
|
24
24
|
import { getLayerOrTable } from "../../utils/mapViewUtils";
|
25
25
|
export class CardManager {
|
26
26
|
constructor() {
|
27
|
+
this.enableEditGeometry = false;
|
27
28
|
this.isMobile = undefined;
|
28
29
|
this.layer = undefined;
|
29
30
|
this.mapView = undefined;
|
@@ -91,7 +92,7 @@ export class CardManager {
|
|
91
92
|
render() {
|
92
93
|
const featuresClass = this._graphics?.length > 0 ? "" : "display-none";
|
93
94
|
const messageClass = this._graphics?.length > 0 ? "display-none" : "";
|
94
|
-
return (h(Host, { key: '
|
95
|
+
return (h(Host, { key: 'ff2b82f23cc912a79d4f2d04a3263215e54ff03d' }, h("div", { key: '64a96d7162508794b955dc4b557fa94d18f8ab53', class: "overflow-auto height-full" }, h("calcite-shell", { key: '77b8ad0b9a459d2fb9399ccfebc6d0211147bb01', class: "position-relative " + featuresClass }, h("div", { key: 'e0725835f5c1c32a9164e04d6321ba5853a3892c' }, h("info-card", { key: '6712a077c4746585e7b2474aedd14e1869b37c34', enableEditGeometry: this.enableEditGeometry, graphics: this._graphics, isLoading: this._cardLoading, isMobile: this.isMobile, mapView: this.mapView }))), h("calcite-shell", { key: '38c85dbb72df9b9b1225f1488c3bf384f67d7db4', class: "position-relative " + messageClass }, h("div", { key: '66386d1a0d19fb4a023515e5dc4b41ac73a8c257', class: "padding-1" }, h("calcite-notice", { key: '12a843bede7b688651b436bcb9b7ad9e7f6217e0', icon: "table", open: true }, h("div", { key: '28862f4aa25802ca6b2bdc0ef2af3bcb825267f9', slot: "message" }, this._translations.selectFeaturesToStart)))))));
|
95
96
|
}
|
96
97
|
//--------------------------------------------------------------------------
|
97
98
|
//
|
@@ -121,6 +122,24 @@ export class CardManager {
|
|
121
122
|
}
|
122
123
|
static get properties() {
|
123
124
|
return {
|
125
|
+
"enableEditGeometry": {
|
126
|
+
"type": "boolean",
|
127
|
+
"mutable": false,
|
128
|
+
"complexType": {
|
129
|
+
"original": "boolean",
|
130
|
+
"resolved": "boolean",
|
131
|
+
"references": {}
|
132
|
+
},
|
133
|
+
"required": false,
|
134
|
+
"optional": false,
|
135
|
+
"docs": {
|
136
|
+
"tags": [],
|
137
|
+
"text": "When true the geometry of the current feature will be editable"
|
138
|
+
},
|
139
|
+
"attribute": "enable-edit-geometry",
|
140
|
+
"reflect": false,
|
141
|
+
"defaultValue": "false"
|
142
|
+
},
|
124
143
|
"isMobile": {
|
125
144
|
"type": "boolean",
|
126
145
|
"mutable": false,
|
@@ -42,7 +42,6 @@ export class CrowdsourceManager {
|
|
42
42
|
this.enableFloorFilter = true;
|
43
43
|
this.enableFullscreen = true;
|
44
44
|
this.enableHome = true;
|
45
|
-
this.enableInlineEdit = false;
|
46
45
|
this.enableLegend = true;
|
47
46
|
this.enableSearch = true;
|
48
47
|
this.enableShare = false;
|
@@ -236,7 +235,7 @@ export class CrowdsourceManager {
|
|
236
235
|
render() {
|
237
236
|
// only avoid border when we have a header color that is not white
|
238
237
|
const borderClass = this.popupHeaderColor && this.popupHeaderColor !== "#FFFFFF" ? "border-width-0" : "";
|
239
|
-
return (h(Host, { key: '
|
238
|
+
return (h(Host, { key: '711376ac0d4b633b63c4c94b87f98255c3562dc1' }, h("calcite-shell", { key: 'b78e8febbbf55e0e61817c04c4838095a5de6ebe', class: "position-relative" }, h("calcite-panel", { key: '8e53369a82e75cbea09e6d4edd42f1e09954277b', class: `width-full height-full ${borderClass}` }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter())));
|
240
239
|
}
|
241
240
|
/**
|
242
241
|
* Called after each render
|
@@ -440,7 +439,7 @@ export class CrowdsourceManager {
|
|
440
439
|
_getCardNode() {
|
441
440
|
const cardManagerHeight = !this._expandPopup && !this._isMobile ? "height-50" : "height-full";
|
442
441
|
const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
|
443
|
-
return (h("div", { class: `width-50 height-full ${themeClass}` }, h("card-manager", { class: `${cardManagerHeight} width-full`, isMobile: this._isMobile, mapView: this?._mapView, zoomAndScrollToSelected: this.zoomAndScrollToSelected })));
|
442
|
+
return (h("div", { class: `width-50 height-full ${themeClass}` }, h("card-manager", { class: `${cardManagerHeight} width-full`, enableEditGeometry: this?._mapInfo?.enableEditGeometry, isMobile: this._isMobile, mapView: this?._mapView, zoomAndScrollToSelected: this.zoomAndScrollToSelected })));
|
444
443
|
}
|
445
444
|
/**
|
446
445
|
* Get the table node based for the current layout
|
@@ -464,7 +463,7 @@ export class CrowdsourceManager {
|
|
464
463
|
this.defaultGlobalId?.indexOf(",") > -1 ? this.defaultGlobalId.split(",") : [this.defaultGlobalId];
|
465
464
|
const defaultOid = !this.defaultOid ? undefined :
|
466
465
|
this.defaultOid?.indexOf(",") > -1 ? this.defaultOid.split(",").map(o => parseInt(o, 10)) : [parseInt(this.defaultOid, 10)];
|
467
|
-
return (h("calcite-shell", { class: `${tableSizeClass} ${tableClass} border-bottom` }, !this._isMobile ? (h("calcite-action-bar", { class: "border-sides", expandDisabled: true, layout: toggleLayout, slot: toggleSlot }, h("calcite-action", { class: "toggle-node", icon: icon, id: id, onClick: () => this._toggleLayout(), text: "" }), h("calcite-tooltip", { label: tooltip, placement: "bottom", "reference-element": id }, h("span", null, tooltip)))) : undefined, h("div", { class: `width-full height-full position-relative` }, h("layer-table", { defaultGlobalId: hasMapAndLayer ? globalId : undefined, defaultLayerId: hasMapAndLayer ? this.defaultLayer : "", defaultOid: hasMapAndLayer && !globalId ? defaultOid : undefined, enableAutoRefresh: this.enableAutoRefresh, enableCSV: this.enableCSV, enableColumnReorder: this.enableColumnReorder, enableInlineEdit: this
|
466
|
+
return (h("calcite-shell", { class: `${tableSizeClass} ${tableClass} border-bottom` }, !this._isMobile ? (h("calcite-action-bar", { class: "border-sides", expandDisabled: true, layout: toggleLayout, slot: toggleSlot }, h("calcite-action", { class: "toggle-node", icon: icon, id: id, onClick: () => this._toggleLayout(), text: "" }), h("calcite-tooltip", { label: tooltip, placement: "bottom", "reference-element": id }, h("span", null, tooltip)))) : undefined, h("div", { class: `width-full height-full position-relative` }, h("layer-table", { defaultGlobalId: hasMapAndLayer ? globalId : undefined, defaultLayerId: hasMapAndLayer ? this.defaultLayer : "", defaultOid: hasMapAndLayer && !globalId ? defaultOid : undefined, enableAutoRefresh: this.enableAutoRefresh, enableCSV: this.enableCSV, enableColumnReorder: this.enableColumnReorder, enableInlineEdit: this?._mapInfo?.enableInlineEdit, enableShare: this.enableShare, isMobile: this._isMobile, mapHidden: this._expandPopup, mapInfo: this._mapInfo, mapView: this?._mapView, onlyShowUpdatableLayers: this.onlyShowUpdatableLayers, ref: (el) => this._layerTable = el, shareIncludeEmbed: this.shareIncludeEmbed, shareIncludeSocial: this.shareIncludeSocial, showNewestFirst: this.showNewestFirst, zoomAndScrollToSelected: this.zoomAndScrollToSelected, zoomToScale: this.zoomToScale }))));
|
468
467
|
}
|
469
468
|
/**
|
470
469
|
* Update the component layout when its size changes
|
@@ -902,24 +901,6 @@ export class CrowdsourceManager {
|
|
902
901
|
"reflect": false,
|
903
902
|
"defaultValue": "true"
|
904
903
|
},
|
905
|
-
"enableInlineEdit": {
|
906
|
-
"type": "boolean",
|
907
|
-
"mutable": false,
|
908
|
-
"complexType": {
|
909
|
-
"original": "boolean",
|
910
|
-
"resolved": "boolean",
|
911
|
-
"references": {}
|
912
|
-
},
|
913
|
-
"required": false,
|
914
|
-
"optional": false,
|
915
|
-
"docs": {
|
916
|
-
"tags": [],
|
917
|
-
"text": "boolean: when true edits can be applied directly within the table"
|
918
|
-
},
|
919
|
-
"attribute": "enable-inline-edit",
|
920
|
-
"reflect": false,
|
921
|
-
"defaultValue": "false"
|
922
|
-
},
|
923
904
|
"enableLegend": {
|
924
905
|
"type": "boolean",
|
925
906
|
"mutable": false,
|
@@ -24,6 +24,7 @@ import { getLocaleComponentStrings } from "../../utils/locale";
|
|
24
24
|
import { getAllLayers } from "../../utils/mapViewUtils";
|
25
25
|
export class EditCard {
|
26
26
|
constructor() {
|
27
|
+
this.enableEditGeometry = false;
|
27
28
|
this.graphics = undefined;
|
28
29
|
this.mapView = undefined;
|
29
30
|
this.open = false;
|
@@ -193,7 +194,7 @@ export class EditCard {
|
|
193
194
|
!this.graphics[0].layer.editingEnabled : true;
|
194
195
|
const tableNodeClass = this._editorLoading ? "display-none" : "position-absolute";
|
195
196
|
const loadingClass = this._editorLoading ? "" : "display-none";
|
196
|
-
return (h(Host, { key: '
|
197
|
+
return (h(Host, { key: '5f81ea077d226b6bccf489c0628bf425df078d3a' }, h("div", { key: 'b66be8fe337bdedfe55d5897d044e5d2f6741c7e', 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: '58c7c0ff41141280c69d6477b3699bc6960b7a0a', class: "position-absolute" }, h("div", { key: '6b853f84699c0dcbeb867c13b7cd84f6316d87a9', class: tableNodeClass, id: "feature-form", ref: (el) => this._editContainer = el }), h("calcite-loader", { key: '2a30bcd6e2fad7f65d16b167cf9d1cdc7549ca01', class: loadingClass, label: "", scale: "s" })))));
|
197
198
|
}
|
198
199
|
//--------------------------------------------------------------------------
|
199
200
|
//
|
@@ -226,7 +227,7 @@ export class EditCard {
|
|
226
227
|
const layerInfos = layers.map(layer => {
|
227
228
|
return {
|
228
229
|
layer,
|
229
|
-
geometryUpdatesEnabled:
|
230
|
+
geometryUpdatesEnabled: this.enableEditGeometry
|
230
231
|
};
|
231
232
|
});
|
232
233
|
this._editor = new this.Editor({
|
@@ -310,6 +311,24 @@ export class EditCard {
|
|
310
311
|
}
|
311
312
|
static get properties() {
|
312
313
|
return {
|
314
|
+
"enableEditGeometry": {
|
315
|
+
"type": "boolean",
|
316
|
+
"mutable": false,
|
317
|
+
"complexType": {
|
318
|
+
"original": "boolean",
|
319
|
+
"resolved": "boolean",
|
320
|
+
"references": {}
|
321
|
+
},
|
322
|
+
"required": false,
|
323
|
+
"optional": false,
|
324
|
+
"docs": {
|
325
|
+
"tags": [],
|
326
|
+
"text": "When true the geometry of the current feature will be editable"
|
327
|
+
},
|
328
|
+
"attribute": "enable-edit-geometry",
|
329
|
+
"reflect": false,
|
330
|
+
"defaultValue": "false"
|
331
|
+
},
|
313
332
|
"graphics": {
|
314
333
|
"type": "unknown",
|
315
334
|
"mutable": true,
|
@@ -24,6 +24,7 @@ import { loadModules } from "../../utils/loadModules";
|
|
24
24
|
import { PopupUtils } from "../../utils/popupUtils";
|
25
25
|
export class InfoCard {
|
26
26
|
constructor() {
|
27
|
+
this.enableEditGeometry = false;
|
27
28
|
this.graphics = undefined;
|
28
29
|
this.isLoading = false;
|
29
30
|
this.isMobile = undefined;
|
@@ -231,8 +232,8 @@ export class InfoCard {
|
|
231
232
|
const id = this._features?.selectedFeature?.getObjectId();
|
232
233
|
const ids = parseInt(id?.toString(), 10) > -1 ? [id] : [];
|
233
234
|
const deleteEnabled = this._layer?.editingEnabled && this._layer?.capabilities?.operations?.supportsDelete;
|
234
|
-
return (h(Host, { key: '
|
235
|
-
h("div", { key: '
|
235
|
+
return (h(Host, { key: '2d0ebbf98b0d7e6f391d875258effbc6d4dc72f5' }, h("calcite-shell", { key: '260ac176bd21e9012f34ba66e27cd7a4ec1e7ff0', style: { position: this.position } }, this._getHeader(), h("calcite-loader", { key: 'f72c7fe39f646655f8ee71ac7d336aaf7dd3afbd', class: loadingClass, label: this._translations.fetchingData }), h("div", { key: '43933c437a046a6505e121e43736aac92382effa', class: "esri-widget feature-node " + featureNodeClass, id: this._featuresNodeId }), h("div", { key: '4433d5975b6d25dc77932f99b2b7aa9d3ade77e8', class: `${editButtonClass} width-100`, slot: "footer" }, this.allowEditing &&
|
236
|
+
h("div", { key: 'da7610d89193e5594429d26b805ba44ec064904f', class: "display-flex top-border padding-1-2" }, h("calcite-button", { key: 'dc22d8cf61f07085e011b45636e8f4950912e5b3', 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: '1ee8d69384f85258ed10946206e42634798a700b', placement: "bottom", "reference-element": "solutions-edit" }, h("span", { key: '3b8b822a40ef6932aa3ad34c8e05bb758be7aff8' }, 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: '172bddeb6f0f1d73dbd563e3b244c311ec4904fe', class: `display-flex padding-1-2 button-container top-border ${nextBackClass}` }, h("div", { key: '66059747f9aad9fabd26a9d7a88e4cac762e096d' }, h("calcite-button", { key: '05b36ba1d5539a16eef53e35cc88eb5134c45104', appearance: 'transparent', disabled: nextBackDisabled, iconStart: "chevron-left", id: "solutions-back", onClick: () => this._back(), width: "full" }), h("calcite-tooltip", { key: '2736e0047665272cede16b1e3b1d94495075d310', placement: "top", "reference-element": "solutions-back" }, h("span", { key: '7c40eae302564f5bcd7a10471481a65c16be9ee5' }, this._translations.back))), h("calcite-action", { key: '873d07e0ecbf456f4010c80c23baaae3f0ce6335', class: 'pagination-action', onClick: () => this._toggleListView(), scale: "s", text: "", textEnabled: true }, h("span", { key: '49dabbcabc8fb64c5cd0581f826c9570270d3ce9', class: "pagination-count" }, this._count)), h("div", { key: '570df27fa721c4cb62c9bd77d7197c830410e387' }, h("calcite-button", { key: '6bd9010b943216af756558e8f062b475d138ee49', appearance: "transparent", disabled: nextBackDisabled, iconStart: "chevron-right", id: "solutions-next", onClick: () => this._next(), width: "full" }), h("calcite-tooltip", { key: '1ee755e1694d3d4b8d6d5417056e5f287de26912', placement: "top", "reference-element": "solutions-next" }, h("span", { key: 'a59e478daa0de11a3e81c22fa61069fdb77a680c' }, this._translations.next))))), h("edit-card", { key: '7f231459e65132658f08338ca67782d1584c761d', class: editClass, enableEditGeometry: this.enableEditGeometry, graphicIndex: this._features?.selectedFeatureIndex, graphics: this.graphics, mapView: this.mapView, open: this._editRecordOpen }), h("calcite-alert", { key: '76b7c28eea68cb73549e563afcdeab5f4ecc44b8', icon: "layer-broken", kind: "warning", label: "", onCalciteAlertClose: () => this._alertClosed(), open: this._alertOpen, placement: "top" }, h("div", { key: '5d6456ce4bc64dc074b238bdf38f05436c1d0ebc', slot: "title" }, this._translations.editDisabled), h("div", { key: 'cf8ebf5e8d2277fb815afdc12ae5f9e37312b2c5', slot: "message" }, this._translations.enableEditing)))));
|
236
237
|
}
|
237
238
|
//--------------------------------------------------------------------------
|
238
239
|
//
|
@@ -411,6 +412,24 @@ export class InfoCard {
|
|
411
412
|
}
|
412
413
|
static get properties() {
|
413
414
|
return {
|
415
|
+
"enableEditGeometry": {
|
416
|
+
"type": "boolean",
|
417
|
+
"mutable": false,
|
418
|
+
"complexType": {
|
419
|
+
"original": "boolean",
|
420
|
+
"resolved": "boolean",
|
421
|
+
"references": {}
|
422
|
+
},
|
423
|
+
"required": false,
|
424
|
+
"optional": false,
|
425
|
+
"docs": {
|
426
|
+
"tags": [],
|
427
|
+
"text": "When true the geometry of the current feature will be editable"
|
428
|
+
},
|
429
|
+
"attribute": "enable-edit-geometry",
|
430
|
+
"reflect": false,
|
431
|
+
"defaultValue": "false"
|
432
|
+
},
|
414
433
|
"graphics": {
|
415
434
|
"type": "unknown",
|
416
435
|
"mutable": false,
|
@@ -31,6 +31,9 @@ export class MapSelectTools {
|
|
31
31
|
this.bufferOutlineColor = [255, 255, 255];
|
32
32
|
this.customLabelEnabled = undefined;
|
33
33
|
this.enabledLayerIds = [];
|
34
|
+
this.enableLayerFeatures = true;
|
35
|
+
this.enableSearchDistance = true;
|
36
|
+
this.enableSketchTools = true;
|
34
37
|
this.defaultBufferDistance = undefined;
|
35
38
|
this.defaultBufferUnit = undefined;
|
36
39
|
this.geometries = [];
|
@@ -223,9 +226,9 @@ export class MapSelectTools {
|
|
223
226
|
id: this.isUpdate ? this.selectionSet.id : Date.now(),
|
224
227
|
searchResult: this._searchResult,
|
225
228
|
buffer: this._bufferGeometry,
|
226
|
-
distance: this._bufferTools
|
229
|
+
distance: this._bufferTools?.distance,
|
227
230
|
download: true,
|
228
|
-
unit: this._bufferTools
|
231
|
+
unit: this._bufferTools?.unit,
|
229
232
|
label: this._selectionLabel,
|
230
233
|
selectedIds: this._selectedIds,
|
231
234
|
layerView: this.selectLayerView,
|
@@ -291,7 +294,9 @@ export class MapSelectTools {
|
|
291
294
|
* Renders the component.
|
292
295
|
*/
|
293
296
|
render() {
|
294
|
-
|
297
|
+
const mapToolsClass = this.enableSketchTools ? "" : "display-none";
|
298
|
+
const mapToolsContainerClass = this.enableSketchTools ? "padding-top-1" : "";
|
299
|
+
return (h(Host, { key: 'e6ac512fe773d0257844fcdd41afda5cd227b359' }, this._getMapLayerPicker(), h("div", { key: '3be4ed76db0d6899d984b0a2be85ebac6b7c29ae', class: "border-bottom" }), h("div", { key: 'b2a835c9096718742a54be522e1dc174d6f4da8f', class: "padding-top-sides-1" }, h("div", { key: '6133e6b951cde4504f8d19f747b4d7be5fe1d587', class: "search-widget", ref: (el) => { this._searchElement = el; } }), h("div", { key: '71636d8d7f9073315daae47d55746986c54f7596', class: mapToolsContainerClass }, h("map-draw-tools", { key: '4f8d3bc3953c4bd22837536c700eff959550f1e3', active: true, class: mapToolsClass, editGraphicsEnabled: !this._useLayerFeaturesEnabled, graphics: this._graphics, mapView: this.mapView, onSketchGraphicsChange: (evt) => void this._sketchGraphicsChanged(evt), pointSymbol: this.sketchPointSymbol, polygonSymbol: this.sketchPolygonSymbol, polylineSymbol: this.sketchLineSymbol, ref: (el) => { this._drawTools = el; } })), this.enableSearchDistance ? this._getBufferOptions() : undefined, this.enableLayerFeatures ? this._getUseLayerFeaturesOptions() : undefined, this._getNumSelected()), h("div", { key: '4dbd38b3b88d776e8b30561841e0a288f23fc38b', class: "border-bottom" }), this._getNameInput()));
|
295
300
|
}
|
296
301
|
/**
|
297
302
|
* Renders the buffer tools component.
|
@@ -299,14 +304,14 @@ export class MapSelectTools {
|
|
299
304
|
_getBufferOptions() {
|
300
305
|
const showBufferToolsClass = this._searchDistanceEnabled ? "search-distance" : "div-not-visible";
|
301
306
|
const bufferDistance = typeof this.selectionSet?.distance === "number" ? this.selectionSet.distance : this.defaultBufferDistance;
|
302
|
-
return (h("div", null, h("div", { class: "padding-top-1 display-flex" }, h("calcite-label", { class: "label-margin-0 w-100", layout: "inline-space-between" }, h("div", { class: "tooltip-container" }, this._translations.searchDistance, h("calcite-icon", { class: "padding-start-1-2 icon", flipRtl: !(this.locale
|
307
|
+
return (h("div", null, h("div", { class: "padding-top-1 display-flex" }, h("calcite-label", { class: "label-margin-0 w-100", layout: "inline-space-between" }, h("div", { class: "tooltip-container" }, this._translations.searchDistance, h("calcite-icon", { class: "padding-start-1-2 icon", flipRtl: !(this.locale?.toLowerCase() === "he"), icon: "question", id: "search-distance-icon", scale: "s" }))), h("calcite-popover", { closable: true, label: "", referenceElement: "search-distance-icon" }, h("span", { class: "tooltip-message" }, this._translations.useSearchDistanceTootip)), h("calcite-switch", { checked: this._searchDistanceEnabled, onCalciteSwitchChange: () => this._searchDistanceEnabled = !this._searchDistanceEnabled })), h("div", { class: showBufferToolsClass }, h("buffer-tools", { disabled: !this._searchDistanceEnabled, distance: bufferDistance, geometries: this.geometries, onBufferComplete: (evt) => void this._bufferComplete(evt), ref: (el) => this._bufferTools = el, unit: this.selectionSet?.unit || this.defaultBufferUnit }))));
|
303
308
|
}
|
304
309
|
/**
|
305
310
|
* Renders the map layer picker component.
|
306
311
|
*/
|
307
312
|
_getUseLayerFeaturesOptions() {
|
308
313
|
const useLayerFeaturesClass = this._useLayerFeaturesEnabled ? "div-visible" : "div-not-visible";
|
309
|
-
return (h("div", null, h("div", { class: "padding-top-1 display-flex" }, h("calcite-label", { class: "label-margin-0 w-100", layout: "inline-space-between" }, h("div", { class: "tooltip-container" }, this._translations.useLayerFeatures, h("calcite-icon", { class: "padding-start-1-2 icon", flipRtl: !(this.locale
|
314
|
+
return (h("div", null, h("div", { class: "padding-top-1 display-flex" }, h("calcite-label", { class: "label-margin-0 w-100", layout: "inline-space-between" }, h("div", { class: "tooltip-container" }, this._translations.useLayerFeatures, h("calcite-icon", { class: "padding-start-1-2 icon", flipRtl: !(this.locale?.toLowerCase() === "he"), icon: "question", id: "use-layer-features-icon", scale: "s" }))), h("calcite-popover", { closable: true, label: "", referenceElement: "use-layer-features-icon" }, h("span", { class: "tooltip-message" }, this._translations.useLayerFeaturesTooltip)), h("calcite-switch", { checked: this._useLayerFeaturesEnabled, onCalciteSwitchChange: () => { this._useLayerFeaturesEnabledChanged(); } })), h("div", { class: useLayerFeaturesClass + " padding-top-1" }, h("map-layer-picker", { enabledLayerIds: this.selectionLayerIds, mapView: this.mapView, onLayerSelectionChange: (evt) => { void this._layerSelectionChange(evt); }, selectedIds: this.layerViews.map(l => l.layer.id), showTables: false }))));
|
310
315
|
}
|
311
316
|
/**
|
312
317
|
* Renders the number of selected features
|
@@ -435,8 +440,12 @@ export class MapSelectTools {
|
|
435
440
|
this._searchWidget.on("select-result", (searchResults) => {
|
436
441
|
if (searchResults.result) {
|
437
442
|
this._searchResult = searchResults.result;
|
438
|
-
const
|
439
|
-
const
|
443
|
+
const resultFeature = searchResults.result.feature;
|
444
|
+
const resultLayer = resultFeature?.layer;
|
445
|
+
const selectLayer = this.selectLayerView.layer;
|
446
|
+
const oid = resultFeature?.getObjectId();
|
447
|
+
const useOIDs = resultLayer?.url && selectLayer?.url && resultLayer.url === selectLayer.url && !isNaN(oid);
|
448
|
+
const oids = useOIDs ? [oid] : undefined;
|
440
449
|
this._workflowType = EWorkflowType.SEARCH;
|
441
450
|
void this._updateLabel();
|
442
451
|
const graphics = [searchResults.result.feature];
|
@@ -706,7 +715,9 @@ export class MapSelectTools {
|
|
706
715
|
this._unit = undefined;
|
707
716
|
if (clearLabel) {
|
708
717
|
this._selectionLabel = "";
|
709
|
-
this._labelName
|
718
|
+
if (this._labelName) {
|
719
|
+
this._labelName.value = "";
|
720
|
+
}
|
710
721
|
}
|
711
722
|
if (this._bufferGraphicsLayer) {
|
712
723
|
this._bufferGraphicsLayer.removeAll();
|
@@ -755,18 +766,20 @@ export class MapSelectTools {
|
|
755
766
|
* @protected
|
756
767
|
*/
|
757
768
|
async _updateLabel() {
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
this._workflowType === EWorkflowType.
|
763
|
-
this.
|
764
|
-
|
765
|
-
|
766
|
-
|
767
|
-
|
768
|
-
|
769
|
-
|
769
|
+
if (this.enableSearchDistance) {
|
770
|
+
const hasSketch = this._selectionLabel.indexOf(this._translations.sketch) > -1;
|
771
|
+
const hasSelect = this._selectionLabel.indexOf(this._translations.select) > -1;
|
772
|
+
const hasSearch = this._selectionLabel.indexOf(this._searchResult?.name) > -1;
|
773
|
+
const label = this._workflowType === EWorkflowType.SEARCH ? this._searchResult?.name :
|
774
|
+
this._workflowType === EWorkflowType.SELECT ?
|
775
|
+
this._translations.select : this._translations.sketch;
|
776
|
+
const _unit = !this._unit ? this._bufferTools.unit : this._unit;
|
777
|
+
const unit = await this._bufferTools.getTranslatedUnit(_unit);
|
778
|
+
const distance = isNaN(this._distance) ? this._bufferTools.distance : this._distance;
|
779
|
+
this._selectionLabel = hasSketch || hasSelect || hasSearch || !this._selectionLabel ?
|
780
|
+
`${label} ${distance} ${unit}` : this._selectionLabel;
|
781
|
+
this._labelName.value = this._selectionLabel;
|
782
|
+
}
|
770
783
|
}
|
771
784
|
/**
|
772
785
|
* Gets the layer views from the map when the layer selection changes
|
@@ -853,7 +866,7 @@ export class MapSelectTools {
|
|
853
866
|
hasOID = g?.layer?.hasOwnProperty("objectIdField") || g.hasOwnProperty("getObjectId");
|
854
867
|
});
|
855
868
|
// OIDs are used when the addressee layer and the current "use layer features" layer are the same
|
856
|
-
const useOIDs = (this.layerViews[0].layer.
|
869
|
+
const useOIDs = (this.layerViews[0].layer.url === this.selectLayerView.layer.url) && hasOID;
|
857
870
|
await this._sketchGraphicsChanged({
|
858
871
|
detail: {
|
859
872
|
graphics,
|
@@ -969,6 +982,60 @@ export class MapSelectTools {
|
|
969
982
|
},
|
970
983
|
"defaultValue": "[]"
|
971
984
|
},
|
985
|
+
"enableLayerFeatures": {
|
986
|
+
"type": "boolean",
|
987
|
+
"mutable": false,
|
988
|
+
"complexType": {
|
989
|
+
"original": "boolean",
|
990
|
+
"resolved": "boolean",
|
991
|
+
"references": {}
|
992
|
+
},
|
993
|
+
"required": false,
|
994
|
+
"optional": false,
|
995
|
+
"docs": {
|
996
|
+
"tags": [],
|
997
|
+
"text": "boolean: When true users will be allowed to optionally use features from a layer as the selection geometry"
|
998
|
+
},
|
999
|
+
"attribute": "enable-layer-features",
|
1000
|
+
"reflect": false,
|
1001
|
+
"defaultValue": "true"
|
1002
|
+
},
|
1003
|
+
"enableSearchDistance": {
|
1004
|
+
"type": "boolean",
|
1005
|
+
"mutable": false,
|
1006
|
+
"complexType": {
|
1007
|
+
"original": "boolean",
|
1008
|
+
"resolved": "boolean",
|
1009
|
+
"references": {}
|
1010
|
+
},
|
1011
|
+
"required": false,
|
1012
|
+
"optional": false,
|
1013
|
+
"docs": {
|
1014
|
+
"tags": [],
|
1015
|
+
"text": "boolean: When true users will be allowed to optionally create a buffer around the selection geometry"
|
1016
|
+
},
|
1017
|
+
"attribute": "enable-search-distance",
|
1018
|
+
"reflect": false,
|
1019
|
+
"defaultValue": "true"
|
1020
|
+
},
|
1021
|
+
"enableSketchTools": {
|
1022
|
+
"type": "boolean",
|
1023
|
+
"mutable": false,
|
1024
|
+
"complexType": {
|
1025
|
+
"original": "boolean",
|
1026
|
+
"resolved": "boolean",
|
1027
|
+
"references": {}
|
1028
|
+
},
|
1029
|
+
"required": false,
|
1030
|
+
"optional": false,
|
1031
|
+
"docs": {
|
1032
|
+
"tags": [],
|
1033
|
+
"text": "boolean: When true sketch tools will be provided to allow users to draw a selection geometry"
|
1034
|
+
},
|
1035
|
+
"attribute": "enable-sketch-tools",
|
1036
|
+
"reflect": false,
|
1037
|
+
"defaultValue": "true"
|
1038
|
+
},
|
972
1039
|
"defaultBufferDistance": {
|
973
1040
|
"type": "number",
|
974
1041
|
"mutable": false,
|
@@ -36,6 +36,9 @@ export class PublicNotification {
|
|
36
36
|
this.defaultBufferUnit = undefined;
|
37
37
|
this.defaultExportTitle = "";
|
38
38
|
this.defaultNumLabelsPerPage = 6;
|
39
|
+
this.enableLayerFeatures = true;
|
40
|
+
this.enableSearchDistance = true;
|
41
|
+
this.enableSketchTools = true;
|
39
42
|
this.featureEffect = undefined;
|
40
43
|
this.featureHighlightEnabled = undefined;
|
41
44
|
this.locale = undefined;
|
@@ -253,14 +256,14 @@ export class PublicNotification {
|
|
253
256
|
await this._getTranslations();
|
254
257
|
await this._initModules();
|
255
258
|
this._initSymbols();
|
256
|
-
this._onboardingImageUrl = getAssetPath(`../assets/data/images/onboarding.png`);
|
259
|
+
this._onboardingImageUrl = getAssetPath(`../solutions-components/assets/data/images/onboarding.png`);
|
257
260
|
}
|
258
261
|
/**
|
259
262
|
* Renders the component.
|
260
263
|
*/
|
261
264
|
render() {
|
262
265
|
const headerSlot = this._isMobile ? "footer" : "header";
|
263
|
-
return (h(Host, { key: '
|
266
|
+
return (h(Host, { key: '706cac9f6c3456220ffaa13cbe74a0b6eb60710b' }, h("calcite-shell", { key: '2d7169374eb285efc1b0dc20f005173aa7e33f61' }, h("calcite-action-bar", { key: '66ee03cbf7ad909af37f49ed7d89146235f6a1d6', class: "border-bottom-1 action-bar-size", "expand-disabled": true, layout: "horizontal", slot: headerSlot }, this._getActionGroup("list-check", EPageType.LIST, this._translations.myLists), this.showRefineSelection ? this._getActionGroup("test-data", EPageType.REFINE, this._translations.refineSelection) : null, this._getActionGroup("export", EPageType.EXPORT, this._translations.export)), this._getPage(this._pageType))));
|
264
267
|
}
|
265
268
|
/**
|
266
269
|
* StencilJS: Called once just after the component is first loaded.
|
@@ -597,7 +600,7 @@ export class PublicNotification {
|
|
597
600
|
*/
|
598
601
|
_getSelectPage() {
|
599
602
|
const noticeText = this._translations.selectSearchTip;
|
600
|
-
return (h("calcite-panel", null, this._getLabel(this._translations.stepTwoFull, true), this._getNotice(noticeText, "padding-1", "word-wrap-anywhere"), h("div", null, h("map-select-tools", { bufferColor: this.bufferColor, bufferOutlineColor: this.bufferOutlineColor, class: "font-bold", customLabelEnabled: this.customLabelEnabled, defaultBufferDistance: this.defaultBufferDistance, defaultBufferUnit: this.defaultBufferUnit, enabledLayerIds: this.addresseeLayerIds, isUpdate: !!this._activeSelection, locale: this.locale, mapView: this.mapView, noResultText: this.noResultText, onSelectionSetChange: (evt) => this._updateForSelection(evt), ref: (el) => { this._selectTools = el; }, searchConfiguration: this._searchConfiguration, selectionLayerIds: this.selectionLayerIds, selectionSet: this._activeSelection, sketchLineSymbol: this.sketchLineSymbol, sketchPointSymbol: this.sketchPointSymbol, sketchPolygonSymbol: this.sketchPolygonSymbol })), this._getPageNavButtons(this._translations.done, this._numSelected === 0, () => { void this._saveSelection(); }, this._translations.cancel, false, () => { void this._home(); })));
|
603
|
+
return (h("calcite-panel", null, this._getLabel(this._translations.stepTwoFull, true), this._getNotice(noticeText, "padding-1", "word-wrap-anywhere"), h("div", null, h("map-select-tools", { bufferColor: this.bufferColor, bufferOutlineColor: this.bufferOutlineColor, class: "font-bold", customLabelEnabled: this.customLabelEnabled, defaultBufferDistance: this.defaultBufferDistance, defaultBufferUnit: this.defaultBufferUnit, enableLayerFeatures: this.enableLayerFeatures, enableSearchDistance: this.enableSearchDistance, enableSketchTools: this.enableSketchTools, enabledLayerIds: this.addresseeLayerIds, isUpdate: !!this._activeSelection, locale: this.locale, mapView: this.mapView, noResultText: this.noResultText, onSelectionSetChange: (evt) => this._updateForSelection(evt), ref: (el) => { this._selectTools = el; }, searchConfiguration: this._searchConfiguration, selectionLayerIds: this.selectionLayerIds, selectionSet: this._activeSelection, sketchLineSymbol: this.sketchLineSymbol, sketchPointSymbol: this.sketchPointSymbol, sketchPolygonSymbol: this.sketchPolygonSymbol })), this._getPageNavButtons(this._translations.done, this._numSelected === 0, () => { void this._saveSelection(); }, this._translations.cancel, false, () => { void this._home(); })));
|
601
604
|
}
|
602
605
|
/**
|
603
606
|
* Create the main download page that has the shared aspects of both PDF and CSV
|
@@ -609,7 +612,7 @@ export class PublicNotification {
|
|
609
612
|
_getExportPage() {
|
610
613
|
const hasSelections = this._hasSelections(this.showRefineSelection);
|
611
614
|
const displayDuplicatesClass = this._numDuplicates > 0 ? "display-block" : "display-none";
|
612
|
-
return (h("calcite-panel", null, h("div", null, this._getLabel(this._translations.export, false), hasSelections ? (h("div", null, this._getNotice(this._translations.exportTip, "padding-sides-1"), this._getLabel(this._translations.exportListsLabel), this._getExportSelectionLists(), h("div", { class: "padding-sides-1 " + displayDuplicatesClass }, h("div", { class: "display-flex" }, h("calcite-label", { layout: "inline" }, h("calcite-checkbox", { ref: (el) => { this._removeDuplicates = el; } }), h("div", { class: "display-flex" }, this._translations.removeDuplicate, h("div", { class: "info-message padding-start-1-2" }, h("calcite-input-message", { class: "info-blue margin-top-0", scale: "m" }, ` ${this._translations.numDuplicates.replace("{{n}}", this._numDuplicates.toString())}`)))), h("calcite-icon", { class: "padding-start-1-2 icon", flipRtl: !(this.locale
|
615
|
+
return (h("calcite-panel", null, h("div", null, this._getLabel(this._translations.export, false), hasSelections ? (h("div", null, this._getNotice(this._translations.exportTip, "padding-sides-1"), this._getLabel(this._translations.exportListsLabel), this._getExportSelectionLists(), h("div", { class: "padding-sides-1 " + displayDuplicatesClass }, h("div", { class: "display-flex" }, h("calcite-label", { layout: "inline" }, h("calcite-checkbox", { ref: (el) => { this._removeDuplicates = el; } }), h("div", { class: "display-flex" }, this._translations.removeDuplicate, h("div", { class: "info-message padding-start-1-2" }, h("calcite-input-message", { class: "info-blue margin-top-0", scale: "m" }, ` ${this._translations.numDuplicates.replace("{{n}}", this._numDuplicates.toString())}`)))), h("calcite-icon", { class: "padding-start-1-2 icon", flipRtl: !(this.locale?.toLowerCase() === "he"), icon: "question", id: "remove-duplicates-icon", scale: "s" })), h("calcite-popover", { closable: true, label: "", referenceElement: "remove-duplicates-icon" }, h("span", { class: "tooltip-message" }, this._translations.duplicatesTip))), h("div", { class: "border-bottom" }), h("div", { class: "padding-top-sides-1" }, h("calcite-segmented-control", { class: "w-100", onCalciteSegmentedControlChange: (evt) => this._exportTypeChange(evt), width: "full" }, h("calcite-segmented-control-item", { checked: this._exportType === EExportType.PDF, class: "w-50 end-border", value: EExportType.PDF }, h("span", { class: "font-weight-500" }, this._translations.pdf)), h("calcite-segmented-control-item", { checked: this._exportType === EExportType.CSV, class: "w-50", value: EExportType.CSV }, h("span", { class: "font-weight-500" }, this._translations.csv)))), h("div", { class: "padding-bottom-1" }, this._getExportOptions()), h("div", { class: "padding-1 display-flex" }, h("calcite-button", { disabled: (!this._downloadActive || this._fetchingData) || (!this._addMap && !this._addResults), loading: this._fetchingData, onClick: () => void this._export(), width: "full" }, h("span", { class: "font-weight-500" }, this._translations.export))))) : (this._getNotice(this._translations.downloadNoLists, "padding-sides-1 padding-bottom-1")))));
|
613
616
|
}
|
614
617
|
/**
|
615
618
|
* Store the user selected export type CSV || PDF
|
@@ -630,7 +633,7 @@ export class PublicNotification {
|
|
630
633
|
const graphicsOptionsClass = this._addMap ? "display-flex" : "display-none";
|
631
634
|
const title = this._titleValue ? this._titleValue : this.defaultExportTitle ? this.defaultExportTitle : "";
|
632
635
|
const formatOptionsClass = this._addResults ? "" : "display-none";
|
633
|
-
return (h("div", { class: displayClass }, this._getLabel(this._translations.pdfOptions, true), h("div", { class: "padding-top-sides-1" }, h("calcite-label", { class: "label-margin-0", layout: "inline" }, h("calcite-checkbox", { checked: this._addResults, onCalciteCheckboxChange: () => this._addResults = !this._addResults }), this._translations.addResults)), h("div", { class: `padding-top-sides-1 ${formatOptionsClass}` }, h("calcite-label", { class: "label-margin-0" }, this._translations.selectPDFLabelOption)), h("div", { class: `padding-sides-1 ${formatOptionsClass}` }, h("pdf-download", { defaultNumLabelsPerPage: parseInt(this.defaultNumLabelsPerPage.toString(), 10), disabled: !this._downloadActive, ref: (el) => { this._downloadTools = el; } })), h("div", { class: "padding-top-sides-1" }, h("calcite-label", { class: "label-margin-0", layout: "inline" }, h("calcite-checkbox", { checked: this._addTitle, onCalciteCheckboxChange: () => this._addTitle = !this._addTitle }), this._translations.title)), h("div", { class: titleOptionsClass }, this._getLabel(this._translations.title, true, ""), h("calcite-input-text", { class: "padding-sides-1", onCalciteInputTextInput: () => this._changeTitle(), placeholder: this._translations.titlePlaceholder, ref: (el) => { this._titleElement = el; }, value: title })), h("div", { class: "padding-top-sides-1" }, h("calcite-label", { class: "label-margin-0", layout: "inline" }, h("calcite-checkbox", { checked: this._addMap, onCalciteCheckboxChange: () => this._handleAddMapChange() }), this._translations.includeMap)), h("div", { class: `padding-top-sides-1 ${graphicsOptionsClass}` }, h("calcite-label", { class: "label-margin-0", layout: "inline" }, h("calcite-checkbox", { checked: this._exportGraphics, onCalciteCheckboxChange: () => this._handleExportGraphicsChange() }), this._translations.listGraphics), h("calcite-icon", { class: "padding-start-1-2 icon", flipRtl: !(this.locale
|
636
|
+
return (h("div", { class: displayClass }, this._getLabel(this._translations.pdfOptions, true), h("div", { class: "padding-top-sides-1" }, h("calcite-label", { class: "label-margin-0", layout: "inline" }, h("calcite-checkbox", { checked: this._addResults, onCalciteCheckboxChange: () => this._addResults = !this._addResults }), this._translations.addResults)), h("div", { class: `padding-top-sides-1 ${formatOptionsClass}` }, h("calcite-label", { class: "label-margin-0" }, this._translations.selectPDFLabelOption)), h("div", { class: `padding-sides-1 ${formatOptionsClass}` }, h("pdf-download", { defaultNumLabelsPerPage: parseInt(this.defaultNumLabelsPerPage.toString(), 10), disabled: !this._downloadActive, ref: (el) => { this._downloadTools = el; } })), h("div", { class: "padding-top-sides-1" }, h("calcite-label", { class: "label-margin-0", layout: "inline" }, h("calcite-checkbox", { checked: this._addTitle, onCalciteCheckboxChange: () => this._addTitle = !this._addTitle }), this._translations.title)), h("div", { class: titleOptionsClass }, this._getLabel(this._translations.title, true, ""), h("calcite-input-text", { class: "padding-sides-1", onCalciteInputTextInput: () => this._changeTitle(), placeholder: this._translations.titlePlaceholder, ref: (el) => { this._titleElement = el; }, value: title })), h("div", { class: "padding-top-sides-1" }, h("calcite-label", { class: "label-margin-0", layout: "inline" }, h("calcite-checkbox", { checked: this._addMap, onCalciteCheckboxChange: () => this._handleAddMapChange() }), this._translations.includeMap)), h("div", { class: `padding-top-sides-1 ${graphicsOptionsClass}` }, h("calcite-label", { class: "label-margin-0", layout: "inline" }, h("calcite-checkbox", { checked: this._exportGraphics, onCalciteCheckboxChange: () => this._handleExportGraphicsChange() }), this._translations.listGraphics), h("calcite-icon", { class: "padding-start-1-2 icon", flipRtl: !(this.locale?.toLowerCase() === "he"), icon: "question", id: "list-graphics-icon", scale: "s" }), h("calcite-popover", { closable: true, label: "", referenceElement: "list-graphics-icon" }, h("span", { class: "tooltip-message" }, this._translations.listGraphicsTip)))));
|
634
637
|
}
|
635
638
|
/**
|
636
639
|
* Toggle the _addMap state variable and update the graphics on the map
|
@@ -1215,6 +1218,60 @@ export class PublicNotification {
|
|
1215
1218
|
"reflect": false,
|
1216
1219
|
"defaultValue": "6"
|
1217
1220
|
},
|
1221
|
+
"enableLayerFeatures": {
|
1222
|
+
"type": "boolean",
|
1223
|
+
"mutable": false,
|
1224
|
+
"complexType": {
|
1225
|
+
"original": "boolean",
|
1226
|
+
"resolved": "boolean",
|
1227
|
+
"references": {}
|
1228
|
+
},
|
1229
|
+
"required": false,
|
1230
|
+
"optional": false,
|
1231
|
+
"docs": {
|
1232
|
+
"tags": [],
|
1233
|
+
"text": "boolean: When true users will be allowed to optionally use features from a layer as the selection geometry"
|
1234
|
+
},
|
1235
|
+
"attribute": "enable-layer-features",
|
1236
|
+
"reflect": false,
|
1237
|
+
"defaultValue": "true"
|
1238
|
+
},
|
1239
|
+
"enableSearchDistance": {
|
1240
|
+
"type": "boolean",
|
1241
|
+
"mutable": false,
|
1242
|
+
"complexType": {
|
1243
|
+
"original": "boolean",
|
1244
|
+
"resolved": "boolean",
|
1245
|
+
"references": {}
|
1246
|
+
},
|
1247
|
+
"required": false,
|
1248
|
+
"optional": false,
|
1249
|
+
"docs": {
|
1250
|
+
"tags": [],
|
1251
|
+
"text": "boolean: When true users will be allowed to optionally create a buffer around the selection geometry"
|
1252
|
+
},
|
1253
|
+
"attribute": "enable-search-distance",
|
1254
|
+
"reflect": false,
|
1255
|
+
"defaultValue": "true"
|
1256
|
+
},
|
1257
|
+
"enableSketchTools": {
|
1258
|
+
"type": "boolean",
|
1259
|
+
"mutable": false,
|
1260
|
+
"complexType": {
|
1261
|
+
"original": "boolean",
|
1262
|
+
"resolved": "boolean",
|
1263
|
+
"references": {}
|
1264
|
+
},
|
1265
|
+
"required": false,
|
1266
|
+
"optional": false,
|
1267
|
+
"docs": {
|
1268
|
+
"tags": [],
|
1269
|
+
"text": "boolean: When true sketch tools will be provided to allow users to draw a selection geometry"
|
1270
|
+
},
|
1271
|
+
"attribute": "enable-sketch-tools",
|
1272
|
+
"reflect": false,
|
1273
|
+
"defaultValue": "true"
|
1274
|
+
},
|
1218
1275
|
"featureEffect": {
|
1219
1276
|
"type": "unknown",
|
1220
1277
|
"mutable": false,
|