@esri/solutions-components 0.10.2 → 0.10.3
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 +33 -24
- 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 +81 -18
- 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 +30 -18
- 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 +33 -24
- 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-2727a29c.entry.js +6 -0
- 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-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
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import { e as esriLoader } from './esri-loader-
|
6
|
+
import { e as esriLoader } from './esri-loader-c6842c6b.js';
|
7
7
|
import { a as getAssetPath } from './index-e3f04fa1.js';
|
8
8
|
|
9
9
|
/** @license
|
@@ -3,8 +3,8 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import { l as loadModules } from './loadModules-
|
7
|
-
import { l as languageMap } from './languageUtil-
|
6
|
+
import { l as loadModules } from './loadModules-03ba7abe.js';
|
7
|
+
import { l as languageMap } from './languageUtil-2b6e191a.js';
|
8
8
|
|
9
9
|
// https://medium.com/stencil-tricks/implementing-internationalisation-i18n-with-stencil-5e6559554117
|
10
10
|
const TEST_ENV_ORIGIN = 'localhost:4444';
|
@@ -4,16 +4,16 @@
|
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
6
|
import { r as registerInstance, c as createEvent, g as getElement, h, H as Host } from './index-e3f04fa1.js';
|
7
|
-
import { a as getComponentClosestLanguage, l as loadModules, g as getLocaleComponentStrings } from './locale-
|
7
|
+
import { a as getComponentClosestLanguage, l as loadModules, g as getLocaleComponentStrings } from './locale-7162b55a.js';
|
8
8
|
import { e as goToSelection, h as highlightFeatures, k as queryObjectIds, l as getQueryGeoms, c as getFeatureLayerView, m as queryFeaturesByGeometry, n as getIdSets, o as highlightAllFeatures } from './mapViewUtils-3e3d33ea.js';
|
9
9
|
import { a as EWorkflowType, e as ESelectionMode, f as EDrawMode } from './interfaces-659e3836.js';
|
10
10
|
import { s as state } from './publicNotificationStore-065c7136.js';
|
11
|
-
import { d as downloadCSV, a as downloadPDF } from './downloadUtils-
|
12
|
-
import './esri-loader-
|
11
|
+
import { d as downloadCSV, a as downloadPDF } from './downloadUtils-16c51b10.js';
|
12
|
+
import './esri-loader-c6842c6b.js';
|
13
13
|
import './_commonjsHelpers-089957fe.js';
|
14
14
|
import './index-1dc14abf.js';
|
15
|
-
import './solution-resource-
|
16
|
-
import './restHelpersGet-
|
15
|
+
import './solution-resource-ab63a236.js';
|
16
|
+
import './restHelpersGet-0a15c2f4.js';
|
17
17
|
|
18
18
|
const mapSelectToolsCss = ":host{display:block}.div-visible{display:inherit}.div-visible-search{display:flex;height:44px;align-items:center;padding-bottom:0}.div-not-visible{display:none}.padding-bottom-1{padding-bottom:1rem}.padding-top-1{padding-top:1rem}.search-widget{width:100% !important;border:1px solid var(--calcite-color-border-input)}.w-100{width:100%}.w-50{width:50%}.search-distance-container{padding-top:\"1rem\" !important}.end-border{border-inline-end:1px solid var(--calcite-color-border-2)}.search-distance{display:flex;padding-top:1rem}.font-bold{font:bold}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.tooltip-container{display:flex}.padding-start-1-2{padding-inline-start:0.5rem}.icon{--calcite-color-icon-color:var(--calcite-color-brand)}.tooltip-message{padding:5px 8px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2)}";
|
19
19
|
const MapSelectToolsStyle0 = mapSelectToolsCss;
|
@@ -26,6 +26,9 @@ const MapSelectTools = class {
|
|
26
26
|
this.bufferOutlineColor = [255, 255, 255];
|
27
27
|
this.customLabelEnabled = undefined;
|
28
28
|
this.enabledLayerIds = [];
|
29
|
+
this.enableLayerFeatures = true;
|
30
|
+
this.enableSearchDistance = true;
|
31
|
+
this.enableSketchTools = true;
|
29
32
|
this.defaultBufferDistance = undefined;
|
30
33
|
this.defaultBufferUnit = undefined;
|
31
34
|
this.geometries = [];
|
@@ -213,9 +216,9 @@ const MapSelectTools = class {
|
|
213
216
|
id: this.isUpdate ? this.selectionSet.id : Date.now(),
|
214
217
|
searchResult: this._searchResult,
|
215
218
|
buffer: this._bufferGeometry,
|
216
|
-
distance: this._bufferTools
|
219
|
+
distance: this._bufferTools?.distance,
|
217
220
|
download: true,
|
218
|
-
unit: this._bufferTools
|
221
|
+
unit: this._bufferTools?.unit,
|
219
222
|
label: this._selectionLabel,
|
220
223
|
selectedIds: this._selectedIds,
|
221
224
|
layerView: this.selectLayerView,
|
@@ -281,7 +284,9 @@ const MapSelectTools = class {
|
|
281
284
|
* Renders the component.
|
282
285
|
*/
|
283
286
|
render() {
|
284
|
-
|
287
|
+
const mapToolsClass = this.enableSketchTools ? "" : "display-none";
|
288
|
+
const mapToolsContainerClass = this.enableSketchTools ? "padding-top-1" : "";
|
289
|
+
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()));
|
285
290
|
}
|
286
291
|
/**
|
287
292
|
* Renders the buffer tools component.
|
@@ -289,14 +294,14 @@ const MapSelectTools = class {
|
|
289
294
|
_getBufferOptions() {
|
290
295
|
const showBufferToolsClass = this._searchDistanceEnabled ? "search-distance" : "div-not-visible";
|
291
296
|
const bufferDistance = typeof this.selectionSet?.distance === "number" ? this.selectionSet.distance : this.defaultBufferDistance;
|
292
|
-
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
|
297
|
+
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 }))));
|
293
298
|
}
|
294
299
|
/**
|
295
300
|
* Renders the map layer picker component.
|
296
301
|
*/
|
297
302
|
_getUseLayerFeaturesOptions() {
|
298
303
|
const useLayerFeaturesClass = this._useLayerFeaturesEnabled ? "div-visible" : "div-not-visible";
|
299
|
-
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
|
304
|
+
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 }))));
|
300
305
|
}
|
301
306
|
/**
|
302
307
|
* Renders the number of selected features
|
@@ -696,7 +701,9 @@ const MapSelectTools = class {
|
|
696
701
|
this._unit = undefined;
|
697
702
|
if (clearLabel) {
|
698
703
|
this._selectionLabel = "";
|
699
|
-
this._labelName
|
704
|
+
if (this._labelName) {
|
705
|
+
this._labelName.value = "";
|
706
|
+
}
|
700
707
|
}
|
701
708
|
if (this._bufferGraphicsLayer) {
|
702
709
|
this._bufferGraphicsLayer.removeAll();
|
@@ -745,18 +752,20 @@ const MapSelectTools = class {
|
|
745
752
|
* @protected
|
746
753
|
*/
|
747
754
|
async _updateLabel() {
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
this._workflowType === EWorkflowType.
|
753
|
-
this.
|
754
|
-
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
|
755
|
+
if (this.enableSearchDistance) {
|
756
|
+
const hasSketch = this._selectionLabel.indexOf(this._translations.sketch) > -1;
|
757
|
+
const hasSelect = this._selectionLabel.indexOf(this._translations.select) > -1;
|
758
|
+
const hasSearch = this._selectionLabel.indexOf(this._searchResult?.name) > -1;
|
759
|
+
const label = this._workflowType === EWorkflowType.SEARCH ? this._searchResult?.name :
|
760
|
+
this._workflowType === EWorkflowType.SELECT ?
|
761
|
+
this._translations.select : this._translations.sketch;
|
762
|
+
const _unit = !this._unit ? this._bufferTools.unit : this._unit;
|
763
|
+
const unit = await this._bufferTools.getTranslatedUnit(_unit);
|
764
|
+
const distance = isNaN(this._distance) ? this._bufferTools.distance : this._distance;
|
765
|
+
this._selectionLabel = hasSketch || hasSelect || hasSearch || !this._selectionLabel ?
|
766
|
+
`${label} ${distance} ${unit}` : this._selectionLabel;
|
767
|
+
this._labelName.value = this._selectionLabel;
|
768
|
+
}
|
760
769
|
}
|
761
770
|
/**
|
762
771
|
* Gets the layer views from the map when the layer selection changes
|
@@ -1333,7 +1342,7 @@ const RefineSelection = class {
|
|
1333
1342
|
*/
|
1334
1343
|
render() {
|
1335
1344
|
const layerPickerClass = this._enabledLayerIds.length > 1 ? "display-block" : "display-none";
|
1336
|
-
return (h(Host, { key: '5bd1d6b85fc43ca4bfdffefd6a19bbbbd37cc13e' }, h("div", { key: '48312843133e3ece11ac8882aad91a570d809472', class: layerPickerClass + " padding-top-sides-1" }, h("div", { key: 'dea13cbbe64fff8dc6dff1ea4816229ba04c6b51', class: "display-flex" }, h("calcite-label", { key: '8184e95f8777e72e826d773aa212a32383983a51', class: "font-bold width-full label-margin-0" }, h("div", { key: 'b59989cfe2676fa520e7d2e23dd178425802536e', class: "display-flex" }, this._translations.inputLayer, h("calcite-icon", { key: '
|
1345
|
+
return (h(Host, { key: '5bd1d6b85fc43ca4bfdffefd6a19bbbbd37cc13e' }, h("div", { key: '48312843133e3ece11ac8882aad91a570d809472', class: layerPickerClass + " padding-top-sides-1" }, h("div", { key: 'dea13cbbe64fff8dc6dff1ea4816229ba04c6b51', class: "display-flex" }, h("calcite-label", { key: '8184e95f8777e72e826d773aa212a32383983a51', class: "font-bold width-full label-margin-0" }, h("div", { key: 'b59989cfe2676fa520e7d2e23dd178425802536e', class: "display-flex" }, this._translations.inputLayer, h("calcite-icon", { key: '0cdbf4745da0953434024c49a8fbc52a686e876a', class: "padding-start-1-2 icon", flipRtl: !(this.locale?.toLowerCase() === "he"), icon: "question", id: "refine-input-layer", scale: "s" })), h("map-layer-picker", { key: '1d62e84b9fa0fa6ac0416ecf22a52a8b72eb7529', enabledLayerIds: this._enabledLayerIds, mapView: this.mapView, onLayerSelectionChange: (evt) => { void this._layerSelectionChange(evt); }, ref: (el) => { this._layerPicker = el; }, selectedIds: [this._refineLayer.layer.id], showTables: false })), h("calcite-popover", { key: 'ed39858d71e1b4f128eed508e1a7fc71c5112b75', closable: true, label: "", referenceElement: "refine-input-layer" }, h("span", { key: '1c0a8e1b9a9e77b097a9e676c06c8cbc1ce4b235', class: "tooltip-message" }, this._translations.inputLayerTip)))), h("div", { key: 'eceb792f9deb9cbe346173337ec254faacd3036d', class: "padding-1" }, h("div", { key: 'd172826cc5e6a206bde83fa0fed5c46fbf0422ec', class: "padding-bottom-1" }, h("calcite-segmented-control", { key: '096245916589f8486ed5f78f035a090c43749feb', class: "w-100", width: "full" }, h("calcite-segmented-control-item", { key: 'd0e5f7c7256e14421167cc9af90707d6d0457c01', checked: this._addEnabled, class: "w-50 word-wrap-anywhere", onClick: () => this._setSelectionMode(ESelectionMode.ADD), value: ESelectionMode.ADD }, h("span", { key: 'c5764bbb451659757c9f8fb84263255c50114e9c', class: "font-weight-500" }, this._translations.add)), h("calcite-segmented-control-item", { key: '6d1ffc481926f70176e5db3debb71daf6d782e97', checked: !this._addEnabled, class: "w-50 word-wrap-anywhere", onClick: () => this._setSelectionMode(ESelectionMode.REMOVE), value: ESelectionMode.REMOVE }, h("span", { key: 'aa3a9d97ebcf7553729858628164a5cdbb4ab5a6', class: "font-weight-500" }, this._translations.remove)))), h("div", { key: '7d366f2bb9d91696915e6bb5aa7872c8e13c0f4b' }, h("map-draw-tools", { key: '973fc2dfe9a3bb941e1257862ee6bf478dab6963', active: true, drawMode: EDrawMode.REFINE, mapView: this.mapView, onDrawRedo: () => this._redo(), onDrawUndo: () => this._undo(), onSketchGraphicsChange: (evt) => this._sketchGraphicsChanged(evt), pointSymbol: this.sketchPointSymbol, polygonSymbol: this.sketchPolygonSymbol, polylineSymbol: this.sketchLineSymbol, redoEnabled: this._refineSelectionSet?.redoStack.length > 0, ref: (el) => { this._drawTools = el; }, undoEnabled: this._refineSelectionSet?.undoStack.length > 0 })), h("br", { key: 'fb6fb3c198ad97e157a3f08df1283e20928f17fd' }), (h("calcite-list", { key: 'fb32a7abec8c89d2d2073fbe741e18daba37eb6f', class: "list-border" }, this._getRefineSelectionSetList())))));
|
1337
1346
|
}
|
1338
1347
|
//--------------------------------------------------------------------------
|
1339
1348
|
//
|
@@ -3,8 +3,8 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import { _ as _prepareAttributeValue } from './downloadUtils-
|
7
|
-
import { l as loadModules } from './locale-
|
6
|
+
import { _ as _prepareAttributeValue } from './downloadUtils-16c51b10.js';
|
7
|
+
import { l as loadModules } from './locale-7162b55a.js';
|
8
8
|
|
9
9
|
/** @license
|
10
10
|
* Copyright 2022 Esri
|
@@ -5,15 +5,15 @@
|
|
5
5
|
*/
|
6
6
|
import { r as registerInstance, c as createEvent, g as getElement, a as getAssetPath, h, H as Host } from './index-e3f04fa1.js';
|
7
7
|
import { b as EExportType, c as EPageType, a as EWorkflowType } from './interfaces-659e3836.js';
|
8
|
-
import { l as loadModules, g as getLocaleComponentStrings } from './locale-
|
8
|
+
import { l as loadModules, g as getLocaleComponentStrings } from './locale-7162b55a.js';
|
9
9
|
import { e as goToSelection, h as highlightFeatures } from './mapViewUtils-3e3d33ea.js';
|
10
10
|
import { s as state } from './publicNotificationStore-065c7136.js';
|
11
|
-
import { c as consolidateLabels, r as removeDuplicateLabels } from './downloadUtils-
|
12
|
-
import './esri-loader-
|
11
|
+
import { c as consolidateLabels, r as removeDuplicateLabels } from './downloadUtils-16c51b10.js';
|
12
|
+
import './esri-loader-c6842c6b.js';
|
13
13
|
import './_commonjsHelpers-089957fe.js';
|
14
14
|
import './index-1dc14abf.js';
|
15
|
-
import './solution-resource-
|
16
|
-
import './restHelpersGet-
|
15
|
+
import './solution-resource-ab63a236.js';
|
16
|
+
import './restHelpersGet-0a15c2f4.js';
|
17
17
|
|
18
18
|
const publicNotificationCss = ":host{display:block;--calcite-input-message-spacing-value:0}.align-center{align-items:center}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-color-border-3)}.action-bar-size{height:3.5rem;width:100%}.w-1-2{width:50%}.w-1-3{width:33.33%}.width-full{width:100%}.height-full{height:100%}.padding-1{padding:1rem}.padding-top-sides-1{padding-block-start:1rem;padding-inline-start:1rem;padding-inline-end:1rem}.padding-sides-1{padding-inline-start:1rem;padding-inline-end:1rem}.padding-end-1-2{padding-inline-end:.5rem}.padding-top-1-2{padding-block-start:.5rem}.padding-top-1{padding-top:1rem}.padding-bottom-1{padding-bottom:1rem}.padding-bottom-1-2{padding-bottom:.5rem}.info-blue{color:#00A0FF}.info-message{justify-content:center;display:grid}.font-bold{font-weight:bold}.display-flex{display:flex}.display-block{display:block}.display-none{display:none}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-start-1-2{padding-inline-start:0.5rem}.list-border{border:1px solid var(--calcite-color-border-2)}.margin-sides-1{margin-inline-start:1rem;margin-inline-end:1rem}.margin-start-1-2{margin-inline-start:0.5rem}.float-right{float:right}.float-right[dir=\"rtl\"]{float:left}.float-left{float:left}.float-left[dir=\"rtl\"]{float:right}.margin-top-0{margin-block-start:0 !important}.height-1-1-2{height:1.5rem}.main-background{background-color:var(--calcite-color-foreground-2)}.position-right{position:absolute;right:1rem}.position-right[dir=\"rtl\"]{position:absolute;left:1rem}.label-margin-0{--calcite-label-margin-bottom:0}.list-label{color:var(--calcite-color-text-1)}.list-label,.list-description{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.list-description{margin-block-start:0.125rem;color:var(--calcite-color-text-3)}.img-container{width:100%;height:100%}.font-weight-500{font-weight:500}.background-override{height:100%;width:100%;--calcite-color-foreground-3:var(--calcite-color-brand);--calcite-color-foreground-2:var(--calcite-color-brand-hover);--calcite-color-text-1:var(--calcite-color-text-inverse)}.word-wrap-anywhere{word-wrap:anywhere}";
|
19
19
|
const PublicNotificationStyle0 = publicNotificationCss;
|
@@ -30,6 +30,9 @@ const PublicNotification = class {
|
|
30
30
|
this.defaultBufferUnit = undefined;
|
31
31
|
this.defaultExportTitle = "";
|
32
32
|
this.defaultNumLabelsPerPage = 6;
|
33
|
+
this.enableLayerFeatures = true;
|
34
|
+
this.enableSearchDistance = true;
|
35
|
+
this.enableSketchTools = true;
|
33
36
|
this.featureEffect = undefined;
|
34
37
|
this.featureHighlightEnabled = undefined;
|
35
38
|
this.locale = undefined;
|
@@ -242,14 +245,14 @@ const PublicNotification = class {
|
|
242
245
|
await this._getTranslations();
|
243
246
|
await this._initModules();
|
244
247
|
this._initSymbols();
|
245
|
-
this._onboardingImageUrl = getAssetPath(`../assets/data/images/onboarding.png`);
|
248
|
+
this._onboardingImageUrl = getAssetPath(`../solutions-components/assets/data/images/onboarding.png`);
|
246
249
|
}
|
247
250
|
/**
|
248
251
|
* Renders the component.
|
249
252
|
*/
|
250
253
|
render() {
|
251
254
|
const headerSlot = this._isMobile ? "footer" : "header";
|
252
|
-
return (h(Host, { key: '
|
255
|
+
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))));
|
253
256
|
}
|
254
257
|
/**
|
255
258
|
* StencilJS: Called once just after the component is first loaded.
|
@@ -586,7 +589,7 @@ const PublicNotification = class {
|
|
586
589
|
*/
|
587
590
|
_getSelectPage() {
|
588
591
|
const noticeText = this._translations.selectSearchTip;
|
589
|
-
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(); })));
|
592
|
+
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(); })));
|
590
593
|
}
|
591
594
|
/**
|
592
595
|
* Create the main download page that has the shared aspects of both PDF and CSV
|
@@ -598,7 +601,7 @@ const PublicNotification = class {
|
|
598
601
|
_getExportPage() {
|
599
602
|
const hasSelections = this._hasSelections(this.showRefineSelection);
|
600
603
|
const displayDuplicatesClass = this._numDuplicates > 0 ? "display-block" : "display-none";
|
601
|
-
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
|
604
|
+
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")))));
|
602
605
|
}
|
603
606
|
/**
|
604
607
|
* Store the user selected export type CSV || PDF
|
@@ -619,7 +622,7 @@ const PublicNotification = class {
|
|
619
622
|
const graphicsOptionsClass = this._addMap ? "display-flex" : "display-none";
|
620
623
|
const title = this._titleValue ? this._titleValue : this.defaultExportTitle ? this.defaultExportTitle : "";
|
621
624
|
const formatOptionsClass = this._addResults ? "" : "display-none";
|
622
|
-
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
|
625
|
+
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)))));
|
623
626
|
}
|
624
627
|
/**
|
625
628
|
* Toggle the _addMap state variable and update the graphics on the map
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import './solution-resource-
|
6
|
+
import './solution-resource-ab63a236.js';
|
7
7
|
|
8
8
|
/*! *****************************************************************************
|
9
9
|
Copyright (c) Microsoft Corporation.
|
@@ -603,8 +603,8 @@ function cleanUrl(url) {
|
|
603
603
|
* @returns A promise that will resolve with JSON or null
|
604
604
|
*/
|
605
605
|
function blobToJson(blob) {
|
606
|
-
return new Promise(
|
607
|
-
blobToText(blob).then(
|
606
|
+
return new Promise(resolve => {
|
607
|
+
blobToText(blob).then(blobContents => {
|
608
608
|
try {
|
609
609
|
resolve(JSON.parse(blobContents));
|
610
610
|
}
|
@@ -624,7 +624,7 @@ function blobToJson(blob) {
|
|
624
624
|
*/
|
625
625
|
function blobToFile(blob, filename, mimeType) {
|
626
626
|
return new File([blob], filename ? filename : "", {
|
627
|
-
type: mimeType ?? blob.type
|
627
|
+
type: mimeType ?? blob.type // Blobs default to type=""
|
628
628
|
});
|
629
629
|
}
|
630
630
|
/**
|
@@ -634,7 +634,7 @@ function blobToFile(blob, filename, mimeType) {
|
|
634
634
|
* @returns A promise that will resolve with text read from blob
|
635
635
|
*/
|
636
636
|
function blobToText(blob) {
|
637
|
-
return new Promise(
|
637
|
+
return new Promise(resolve => {
|
638
638
|
const reader = new FileReader();
|
639
639
|
reader.onload = function (evt) {
|
640
640
|
// Disable needed because Node requires cast
|
@@ -751,9 +751,9 @@ function getBlob(url, authentication, requestOptions = {}) {
|
|
751
751
|
const blobRequestOptions = {
|
752
752
|
authentication: authentication,
|
753
753
|
rawResponse: true,
|
754
|
-
...requestOptions
|
754
|
+
...requestOptions
|
755
755
|
};
|
756
|
-
return request(url, blobRequestOptions).then(
|
756
|
+
return request(url, blobRequestOptions).then(response => {
|
757
757
|
return response.blob();
|
758
758
|
});
|
759
759
|
}
|
@@ -786,7 +786,7 @@ const ZIP_FILE_HEADER_SIGNATURE = "PK";
|
|
786
786
|
function getBlobAsFile(url, filename, authentication, ignoreErrors = [], mimeType) {
|
787
787
|
return new Promise((resolve, reject) => {
|
788
788
|
// Get the blob from the URL
|
789
|
-
getBlobCheckForError(url, authentication, ignoreErrors).then(
|
789
|
+
getBlobCheckForError(url, authentication, ignoreErrors).then(blob => !blob ? resolve(null) : resolve(blobToFile(blob, filename, mimeType)), reject);
|
790
790
|
});
|
791
791
|
}
|
792
792
|
/**
|
@@ -800,9 +800,9 @@ function getBlobAsFile(url, filename, authentication, ignoreErrors = [], mimeTyp
|
|
800
800
|
function getBlobCheckForError(url, authentication, ignoreErrors = []) {
|
801
801
|
return new Promise((resolve, reject) => {
|
802
802
|
// Get the blob from the URL
|
803
|
-
getBlob(url, authentication).then(
|
803
|
+
getBlob(url, authentication).then(blob => {
|
804
804
|
// Reclassify text/plain blobs as needed
|
805
|
-
_fixTextBlobType(blob).then(
|
805
|
+
_fixTextBlobType(blob).then(adjustedBlob => {
|
806
806
|
if (adjustedBlob.type === "application/json") {
|
807
807
|
// Blob may be an error
|
808
808
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
@@ -838,8 +838,8 @@ function getBlobCheckForError(url, authentication, ignoreErrors = []) {
|
|
838
838
|
* @returns Promise that will resolve with JSON, or an AGO-style JSON failure response
|
839
839
|
*/
|
840
840
|
function getItemDataAsJson(itemId, authentication) {
|
841
|
-
return new Promise(
|
842
|
-
getItemDataBlob(itemId, authentication).then(
|
841
|
+
return new Promise(resolve => {
|
842
|
+
getItemDataBlob(itemId, authentication).then(blob => resolve(blobToJson(blob)), () => resolve(null));
|
843
843
|
});
|
844
844
|
}
|
845
845
|
/**
|
@@ -850,9 +850,9 @@ function getItemDataAsJson(itemId, authentication) {
|
|
850
850
|
* @returns A promise that will resolve with the data Blob or null if the item doesn't have a data section
|
851
851
|
*/
|
852
852
|
function getItemDataBlob(itemId, authentication) {
|
853
|
-
return new Promise(
|
853
|
+
return new Promise(resolve => {
|
854
854
|
const url = getItemDataBlobUrl(itemId, authentication);
|
855
|
-
getBlobCheckForError(url, authentication, [400, 500]).then(
|
855
|
+
getBlobCheckForError(url, authentication, [400, 500]).then(blob => resolve(_fixTextBlobType(blob)), () => resolve(null));
|
856
856
|
});
|
857
857
|
}
|
858
858
|
/**
|
@@ -876,11 +876,11 @@ function getJson(url, authentication) {
|
|
876
876
|
// Get the blob from the URL
|
877
877
|
const requestOptions = { httpMethod: "GET" };
|
878
878
|
return getBlob(url, authentication, requestOptions)
|
879
|
-
.then(
|
879
|
+
.then(blob => {
|
880
880
|
// Reclassify text/plain blobs as needed
|
881
881
|
return _fixTextBlobType(blob);
|
882
882
|
})
|
883
|
-
.then(
|
883
|
+
.then(adjustedBlob => {
|
884
884
|
if (adjustedBlob.type === "application/json") {
|
885
885
|
// Blob may be an error
|
886
886
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
@@ -902,7 +902,7 @@ function getPortalSharingUrlFromAuth(authentication) {
|
|
902
902
|
return getProp(authentication, "portal") || "https://www.arcgis.com/sharing/rest";
|
903
903
|
}
|
904
904
|
function getThumbnailFile(url, filename, authentication) {
|
905
|
-
return new Promise(
|
905
|
+
return new Promise(resolve => {
|
906
906
|
getBlobAsFile(url, filename, authentication, [500]).then(resolve, () => resolve(null));
|
907
907
|
});
|
908
908
|
}
|
@@ -917,8 +917,11 @@ function getThumbnailFile(url, filename, authentication) {
|
|
917
917
|
*/
|
918
918
|
function _fixTextBlobType(blob) {
|
919
919
|
return new Promise((resolve, reject) => {
|
920
|
-
if (blob &&
|
921
|
-
|
920
|
+
if (blob &&
|
921
|
+
blob.size > 0 &&
|
922
|
+
(blob.type.startsWith("text/plain") ||
|
923
|
+
blob.type.startsWith("application/json"))) {
|
924
|
+
blobToText(blob).then(blobText => {
|
922
925
|
// Convertible to JSON?
|
923
926
|
try {
|
924
927
|
JSON.parse(blobText);
|
@@ -927,7 +930,8 @@ function _fixTextBlobType(blob) {
|
|
927
930
|
}
|
928
931
|
catch (ignored) {
|
929
932
|
// Nope; test for ZIP file
|
930
|
-
if (blobText.length > 4 &&
|
933
|
+
if (blobText.length > 4 &&
|
934
|
+
blobText.substr(0, 4) === ZIP_FILE_HEADER_SIGNATURE) {
|
931
935
|
// Yes; reclassify as ZIP
|
932
936
|
resolve(new Blob([blob], { type: "application/zip" }));
|
933
937
|
}
|
@@ -4,15 +4,15 @@
|
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
6
|
import { g as getElement, r as registerInstance, h, H as Host } from './index-e3f04fa1.js';
|
7
|
-
import { g as getSolutionVariables, a as getOrganizationVariables, b as getInventoryItems } from './templates-
|
8
|
-
import { s as state } from './solution-store-
|
9
|
-
import './solution-resource-
|
10
|
-
import { g as getLocaleComponentStrings } from './locale-
|
11
|
-
import { r as request, N as NODEJS_DEFAULT_REFERER_HEADER, c as cleanUrl, e as encodeQueryString, A as ArcGISAuthError } from './restHelpersGet-
|
7
|
+
import { g as getSolutionVariables, a as getOrganizationVariables, b as getInventoryItems } from './templates-9556eb87.js';
|
8
|
+
import { s as state } from './solution-store-e2690620.js';
|
9
|
+
import './solution-resource-ab63a236.js';
|
10
|
+
import { g as getLocaleComponentStrings } from './locale-7162b55a.js';
|
11
|
+
import { r as request, N as NODEJS_DEFAULT_REFERER_HEADER, c as cleanUrl, e as encodeQueryString, A as ArcGISAuthError } from './restHelpersGet-0a15c2f4.js';
|
12
12
|
import './interfaces-659e3836.js';
|
13
13
|
import './index-1dc14abf.js';
|
14
14
|
import './_commonjsHelpers-089957fe.js';
|
15
|
-
import './esri-loader-
|
15
|
+
import './esri-loader-c6842c6b.js';
|
16
16
|
|
17
17
|
/* Copyright (c) 2017-2020 Environmental Systems Research Institute, Inc.
|
18
18
|
* Apache-2.0 */
|
@@ -4,15 +4,15 @@
|
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
6
|
import { r as registerInstance, c as createEvent, g as getElement, h, H as Host } from './index-e3f04fa1.js';
|
7
|
-
import { s as state } from './solution-store-
|
8
|
-
import { g as getLocaleComponentStrings } from './locale-
|
9
|
-
import { n as nodeListToArray } from './common-
|
7
|
+
import { s as state } from './solution-store-e2690620.js';
|
8
|
+
import { g as getLocaleComponentStrings } from './locale-7162b55a.js';
|
9
|
+
import { n as nodeListToArray } from './common-1618d62f.js';
|
10
10
|
import { C as CSpatialRefCustomizingPrefix, g as CSpatialRefCustomizingSuffix } from './interfaces-659e3836.js';
|
11
11
|
import './index-1dc14abf.js';
|
12
|
-
import './solution-resource-
|
12
|
+
import './solution-resource-ab63a236.js';
|
13
13
|
import './_commonjsHelpers-089957fe.js';
|
14
|
-
import './restHelpersGet-
|
15
|
-
import './esri-loader-
|
14
|
+
import './restHelpersGet-0a15c2f4.js';
|
15
|
+
import './esri-loader-c6842c6b.js';
|
16
16
|
|
17
17
|
const solutionContentsCss = ".icon-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}";
|
18
18
|
const SolutionContentsStyle0 = solutionContentsCss;
|
@@ -1806,7 +1806,7 @@ var ESortVisitState;
|
|
1806
1806
|
/** visited, in progress */
|
1807
1807
|
ESortVisitState[ESortVisitState["InProgress"] = 1] = "InProgress";
|
1808
1808
|
/** finished */
|
1809
|
-
ESortVisitState[ESortVisitState["Finished"] = 2] = "Finished";
|
1809
|
+
ESortVisitState[ESortVisitState["Finished"] = 2] = "Finished"; // BLACK
|
1810
1810
|
})(ESortVisitState || (ESortVisitState = {}));
|
1811
1811
|
|
1812
1812
|
/** @license
|