@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
@@ -5,8 +5,8 @@
|
|
5
5
|
*/
|
6
6
|
'use strict';
|
7
7
|
|
8
|
-
const loadModules = require('./loadModules-
|
9
|
-
const languageUtil = require('./languageUtil-
|
8
|
+
const loadModules = require('./loadModules-8567855e.js');
|
9
|
+
const languageUtil = require('./languageUtil-a3e1eafd.js');
|
10
10
|
|
11
11
|
// https://medium.com/stencil-tricks/implementing-internationalisation-i18n-with-stencil-5e6559554117
|
12
12
|
const TEST_ENV_ORIGIN = 'localhost:4444';
|
@@ -8,16 +8,16 @@
|
|
8
8
|
Object.defineProperty(exports, '__esModule', { value: true });
|
9
9
|
|
10
10
|
const index = require('./index-696e53e6.js');
|
11
|
-
const locale = require('./locale-
|
11
|
+
const locale = require('./locale-4e7fe921.js');
|
12
12
|
const mapViewUtils = require('./mapViewUtils-8d4da732.js');
|
13
13
|
const interfaces = require('./interfaces-09c4c40e.js');
|
14
14
|
const publicNotificationStore = require('./publicNotificationStore-8d2558c6.js');
|
15
|
-
const downloadUtils = require('./downloadUtils-
|
16
|
-
require('./esri-loader-
|
15
|
+
const downloadUtils = require('./downloadUtils-b757205e.js');
|
16
|
+
require('./esri-loader-08dc41bd.js');
|
17
17
|
require('./_commonjsHelpers-baf43783.js');
|
18
18
|
require('./index-a0cca96e.js');
|
19
|
-
require('./solution-resource-
|
20
|
-
require('./restHelpersGet-
|
19
|
+
require('./solution-resource-57cf345b.js');
|
20
|
+
require('./restHelpersGet-bf484fda.js');
|
21
21
|
|
22
22
|
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)}";
|
23
23
|
const MapSelectToolsStyle0 = mapSelectToolsCss;
|
@@ -30,6 +30,9 @@ const MapSelectTools = class {
|
|
30
30
|
this.bufferOutlineColor = [255, 255, 255];
|
31
31
|
this.customLabelEnabled = undefined;
|
32
32
|
this.enabledLayerIds = [];
|
33
|
+
this.enableLayerFeatures = true;
|
34
|
+
this.enableSearchDistance = true;
|
35
|
+
this.enableSketchTools = true;
|
33
36
|
this.defaultBufferDistance = undefined;
|
34
37
|
this.defaultBufferUnit = undefined;
|
35
38
|
this.geometries = [];
|
@@ -217,9 +220,9 @@ const MapSelectTools = class {
|
|
217
220
|
id: this.isUpdate ? this.selectionSet.id : Date.now(),
|
218
221
|
searchResult: this._searchResult,
|
219
222
|
buffer: this._bufferGeometry,
|
220
|
-
distance: this._bufferTools
|
223
|
+
distance: this._bufferTools?.distance,
|
221
224
|
download: true,
|
222
|
-
unit: this._bufferTools
|
225
|
+
unit: this._bufferTools?.unit,
|
223
226
|
label: this._selectionLabel,
|
224
227
|
selectedIds: this._selectedIds,
|
225
228
|
layerView: this.selectLayerView,
|
@@ -285,7 +288,9 @@ const MapSelectTools = class {
|
|
285
288
|
* Renders the component.
|
286
289
|
*/
|
287
290
|
render() {
|
288
|
-
|
291
|
+
const mapToolsClass = this.enableSketchTools ? "" : "display-none";
|
292
|
+
const mapToolsContainerClass = this.enableSketchTools ? "padding-top-1" : "";
|
293
|
+
return (index.h(index.Host, { key: 'e6ac512fe773d0257844fcdd41afda5cd227b359' }, this._getMapLayerPicker(), index.h("div", { key: '3be4ed76db0d6899d984b0a2be85ebac6b7c29ae', class: "border-bottom" }), index.h("div", { key: 'b2a835c9096718742a54be522e1dc174d6f4da8f', class: "padding-top-sides-1" }, index.h("div", { key: '6133e6b951cde4504f8d19f747b4d7be5fe1d587', class: "search-widget", ref: (el) => { this._searchElement = el; } }), index.h("div", { key: '71636d8d7f9073315daae47d55746986c54f7596', class: mapToolsContainerClass }, index.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()), index.h("div", { key: '4dbd38b3b88d776e8b30561841e0a288f23fc38b', class: "border-bottom" }), this._getNameInput()));
|
289
294
|
}
|
290
295
|
/**
|
291
296
|
* Renders the buffer tools component.
|
@@ -293,14 +298,14 @@ const MapSelectTools = class {
|
|
293
298
|
_getBufferOptions() {
|
294
299
|
const showBufferToolsClass = this._searchDistanceEnabled ? "search-distance" : "div-not-visible";
|
295
300
|
const bufferDistance = typeof this.selectionSet?.distance === "number" ? this.selectionSet.distance : this.defaultBufferDistance;
|
296
|
-
return (index.h("div", null, index.h("div", { class: "padding-top-1 display-flex" }, index.h("calcite-label", { class: "label-margin-0 w-100", layout: "inline-space-between" }, index.h("div", { class: "tooltip-container" }, this._translations.searchDistance, index.h("calcite-icon", { class: "padding-start-1-2 icon", flipRtl: !(this.locale
|
301
|
+
return (index.h("div", null, index.h("div", { class: "padding-top-1 display-flex" }, index.h("calcite-label", { class: "label-margin-0 w-100", layout: "inline-space-between" }, index.h("div", { class: "tooltip-container" }, this._translations.searchDistance, index.h("calcite-icon", { class: "padding-start-1-2 icon", flipRtl: !(this.locale?.toLowerCase() === "he"), icon: "question", id: "search-distance-icon", scale: "s" }))), index.h("calcite-popover", { closable: true, label: "", referenceElement: "search-distance-icon" }, index.h("span", { class: "tooltip-message" }, this._translations.useSearchDistanceTootip)), index.h("calcite-switch", { checked: this._searchDistanceEnabled, onCalciteSwitchChange: () => this._searchDistanceEnabled = !this._searchDistanceEnabled })), index.h("div", { class: showBufferToolsClass }, index.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 }))));
|
297
302
|
}
|
298
303
|
/**
|
299
304
|
* Renders the map layer picker component.
|
300
305
|
*/
|
301
306
|
_getUseLayerFeaturesOptions() {
|
302
307
|
const useLayerFeaturesClass = this._useLayerFeaturesEnabled ? "div-visible" : "div-not-visible";
|
303
|
-
return (index.h("div", null, index.h("div", { class: "padding-top-1 display-flex" }, index.h("calcite-label", { class: "label-margin-0 w-100", layout: "inline-space-between" }, index.h("div", { class: "tooltip-container" }, this._translations.useLayerFeatures, index.h("calcite-icon", { class: "padding-start-1-2 icon", flipRtl: !(this.locale
|
308
|
+
return (index.h("div", null, index.h("div", { class: "padding-top-1 display-flex" }, index.h("calcite-label", { class: "label-margin-0 w-100", layout: "inline-space-between" }, index.h("div", { class: "tooltip-container" }, this._translations.useLayerFeatures, index.h("calcite-icon", { class: "padding-start-1-2 icon", flipRtl: !(this.locale?.toLowerCase() === "he"), icon: "question", id: "use-layer-features-icon", scale: "s" }))), index.h("calcite-popover", { closable: true, label: "", referenceElement: "use-layer-features-icon" }, index.h("span", { class: "tooltip-message" }, this._translations.useLayerFeaturesTooltip)), index.h("calcite-switch", { checked: this._useLayerFeaturesEnabled, onCalciteSwitchChange: () => { this._useLayerFeaturesEnabledChanged(); } })), index.h("div", { class: useLayerFeaturesClass + " padding-top-1" }, index.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 }))));
|
304
309
|
}
|
305
310
|
/**
|
306
311
|
* Renders the number of selected features
|
@@ -429,8 +434,12 @@ const MapSelectTools = class {
|
|
429
434
|
this._searchWidget.on("select-result", (searchResults) => {
|
430
435
|
if (searchResults.result) {
|
431
436
|
this._searchResult = searchResults.result;
|
432
|
-
const
|
433
|
-
const
|
437
|
+
const resultFeature = searchResults.result.feature;
|
438
|
+
const resultLayer = resultFeature?.layer;
|
439
|
+
const selectLayer = this.selectLayerView.layer;
|
440
|
+
const oid = resultFeature?.getObjectId();
|
441
|
+
const useOIDs = resultLayer?.url && selectLayer?.url && resultLayer.url === selectLayer.url && !isNaN(oid);
|
442
|
+
const oids = useOIDs ? [oid] : undefined;
|
434
443
|
this._workflowType = interfaces.EWorkflowType.SEARCH;
|
435
444
|
void this._updateLabel();
|
436
445
|
const graphics = [searchResults.result.feature];
|
@@ -700,7 +709,9 @@ const MapSelectTools = class {
|
|
700
709
|
this._unit = undefined;
|
701
710
|
if (clearLabel) {
|
702
711
|
this._selectionLabel = "";
|
703
|
-
this._labelName
|
712
|
+
if (this._labelName) {
|
713
|
+
this._labelName.value = "";
|
714
|
+
}
|
704
715
|
}
|
705
716
|
if (this._bufferGraphicsLayer) {
|
706
717
|
this._bufferGraphicsLayer.removeAll();
|
@@ -749,18 +760,20 @@ const MapSelectTools = class {
|
|
749
760
|
* @protected
|
750
761
|
*/
|
751
762
|
async _updateLabel() {
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
|
756
|
-
this._workflowType === interfaces.EWorkflowType.
|
757
|
-
this.
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
|
763
|
-
|
763
|
+
if (this.enableSearchDistance) {
|
764
|
+
const hasSketch = this._selectionLabel.indexOf(this._translations.sketch) > -1;
|
765
|
+
const hasSelect = this._selectionLabel.indexOf(this._translations.select) > -1;
|
766
|
+
const hasSearch = this._selectionLabel.indexOf(this._searchResult?.name) > -1;
|
767
|
+
const label = this._workflowType === interfaces.EWorkflowType.SEARCH ? this._searchResult?.name :
|
768
|
+
this._workflowType === interfaces.EWorkflowType.SELECT ?
|
769
|
+
this._translations.select : this._translations.sketch;
|
770
|
+
const _unit = !this._unit ? this._bufferTools.unit : this._unit;
|
771
|
+
const unit = await this._bufferTools.getTranslatedUnit(_unit);
|
772
|
+
const distance = isNaN(this._distance) ? this._bufferTools.distance : this._distance;
|
773
|
+
this._selectionLabel = hasSketch || hasSelect || hasSearch || !this._selectionLabel ?
|
774
|
+
`${label} ${distance} ${unit}` : this._selectionLabel;
|
775
|
+
this._labelName.value = this._selectionLabel;
|
776
|
+
}
|
764
777
|
}
|
765
778
|
/**
|
766
779
|
* Gets the layer views from the map when the layer selection changes
|
@@ -847,7 +860,7 @@ const MapSelectTools = class {
|
|
847
860
|
hasOID = g?.layer?.hasOwnProperty("objectIdField") || g.hasOwnProperty("getObjectId");
|
848
861
|
});
|
849
862
|
// OIDs are used when the addressee layer and the current "use layer features" layer are the same
|
850
|
-
const useOIDs = (this.layerViews[0].layer.
|
863
|
+
const useOIDs = (this.layerViews[0].layer.url === this.selectLayerView.layer.url) && hasOID;
|
851
864
|
await this._sketchGraphicsChanged({
|
852
865
|
detail: {
|
853
866
|
graphics,
|
@@ -1337,7 +1350,7 @@ const RefineSelection = class {
|
|
1337
1350
|
*/
|
1338
1351
|
render() {
|
1339
1352
|
const layerPickerClass = this._enabledLayerIds.length > 1 ? "display-block" : "display-none";
|
1340
|
-
return (index.h(index.Host, { key: '5bd1d6b85fc43ca4bfdffefd6a19bbbbd37cc13e' }, index.h("div", { key: '48312843133e3ece11ac8882aad91a570d809472', class: layerPickerClass + " padding-top-sides-1" }, index.h("div", { key: 'dea13cbbe64fff8dc6dff1ea4816229ba04c6b51', class: "display-flex" }, index.h("calcite-label", { key: '8184e95f8777e72e826d773aa212a32383983a51', class: "font-bold width-full label-margin-0" }, index.h("div", { key: 'b59989cfe2676fa520e7d2e23dd178425802536e', class: "display-flex" }, this._translations.inputLayer, index.h("calcite-icon", { key: '
|
1353
|
+
return (index.h(index.Host, { key: '5bd1d6b85fc43ca4bfdffefd6a19bbbbd37cc13e' }, index.h("div", { key: '48312843133e3ece11ac8882aad91a570d809472', class: layerPickerClass + " padding-top-sides-1" }, index.h("div", { key: 'dea13cbbe64fff8dc6dff1ea4816229ba04c6b51', class: "display-flex" }, index.h("calcite-label", { key: '8184e95f8777e72e826d773aa212a32383983a51', class: "font-bold width-full label-margin-0" }, index.h("div", { key: 'b59989cfe2676fa520e7d2e23dd178425802536e', class: "display-flex" }, this._translations.inputLayer, index.h("calcite-icon", { key: '0cdbf4745da0953434024c49a8fbc52a686e876a', class: "padding-start-1-2 icon", flipRtl: !(this.locale?.toLowerCase() === "he"), icon: "question", id: "refine-input-layer", scale: "s" })), index.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 })), index.h("calcite-popover", { key: 'ed39858d71e1b4f128eed508e1a7fc71c5112b75', closable: true, label: "", referenceElement: "refine-input-layer" }, index.h("span", { key: '1c0a8e1b9a9e77b097a9e676c06c8cbc1ce4b235', class: "tooltip-message" }, this._translations.inputLayerTip)))), index.h("div", { key: 'eceb792f9deb9cbe346173337ec254faacd3036d', class: "padding-1" }, index.h("div", { key: 'd172826cc5e6a206bde83fa0fed5c46fbf0422ec', class: "padding-bottom-1" }, index.h("calcite-segmented-control", { key: '096245916589f8486ed5f78f035a090c43749feb', class: "w-100", width: "full" }, index.h("calcite-segmented-control-item", { key: 'd0e5f7c7256e14421167cc9af90707d6d0457c01', checked: this._addEnabled, class: "w-50 word-wrap-anywhere", onClick: () => this._setSelectionMode(interfaces.ESelectionMode.ADD), value: interfaces.ESelectionMode.ADD }, index.h("span", { key: 'c5764bbb451659757c9f8fb84263255c50114e9c', class: "font-weight-500" }, this._translations.add)), index.h("calcite-segmented-control-item", { key: '6d1ffc481926f70176e5db3debb71daf6d782e97', checked: !this._addEnabled, class: "w-50 word-wrap-anywhere", onClick: () => this._setSelectionMode(interfaces.ESelectionMode.REMOVE), value: interfaces.ESelectionMode.REMOVE }, index.h("span", { key: 'aa3a9d97ebcf7553729858628164a5cdbb4ab5a6', class: "font-weight-500" }, this._translations.remove)))), index.h("div", { key: '7d366f2bb9d91696915e6bb5aa7872c8e13c0f4b' }, index.h("map-draw-tools", { key: '973fc2dfe9a3bb941e1257862ee6bf478dab6963', active: true, drawMode: interfaces.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 })), index.h("br", { key: 'fb6fb3c198ad97e157a3f08df1283e20928f17fd' }), (index.h("calcite-list", { key: 'fb32a7abec8c89d2d2073fbe741e18daba37eb6f', class: "list-border" }, this._getRefineSelectionSetList())))));
|
1341
1354
|
}
|
1342
1355
|
//--------------------------------------------------------------------------
|
1343
1356
|
//
|
@@ -5,8 +5,8 @@
|
|
5
5
|
*/
|
6
6
|
'use strict';
|
7
7
|
|
8
|
-
const downloadUtils = require('./downloadUtils-
|
9
|
-
const locale = require('./locale-
|
8
|
+
const downloadUtils = require('./downloadUtils-b757205e.js');
|
9
|
+
const locale = require('./locale-4e7fe921.js');
|
10
10
|
|
11
11
|
/** @license
|
12
12
|
* Copyright 2022 Esri
|
@@ -9,15 +9,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
10
10
|
const index = require('./index-696e53e6.js');
|
11
11
|
const interfaces = require('./interfaces-09c4c40e.js');
|
12
|
-
const locale = require('./locale-
|
12
|
+
const locale = require('./locale-4e7fe921.js');
|
13
13
|
const mapViewUtils = require('./mapViewUtils-8d4da732.js');
|
14
14
|
const publicNotificationStore = require('./publicNotificationStore-8d2558c6.js');
|
15
|
-
const downloadUtils = require('./downloadUtils-
|
16
|
-
require('./esri-loader-
|
15
|
+
const downloadUtils = require('./downloadUtils-b757205e.js');
|
16
|
+
require('./esri-loader-08dc41bd.js');
|
17
17
|
require('./_commonjsHelpers-baf43783.js');
|
18
18
|
require('./index-a0cca96e.js');
|
19
|
-
require('./solution-resource-
|
20
|
-
require('./restHelpersGet-
|
19
|
+
require('./solution-resource-57cf345b.js');
|
20
|
+
require('./restHelpersGet-bf484fda.js');
|
21
21
|
|
22
22
|
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}";
|
23
23
|
const PublicNotificationStyle0 = publicNotificationCss;
|
@@ -34,6 +34,9 @@ const PublicNotification = class {
|
|
34
34
|
this.defaultBufferUnit = undefined;
|
35
35
|
this.defaultExportTitle = "";
|
36
36
|
this.defaultNumLabelsPerPage = 6;
|
37
|
+
this.enableLayerFeatures = true;
|
38
|
+
this.enableSearchDistance = true;
|
39
|
+
this.enableSketchTools = true;
|
37
40
|
this.featureEffect = undefined;
|
38
41
|
this.featureHighlightEnabled = undefined;
|
39
42
|
this.locale = undefined;
|
@@ -246,14 +249,14 @@ const PublicNotification = class {
|
|
246
249
|
await this._getTranslations();
|
247
250
|
await this._initModules();
|
248
251
|
this._initSymbols();
|
249
|
-
this._onboardingImageUrl = index.getAssetPath(`../assets/data/images/onboarding.png`);
|
252
|
+
this._onboardingImageUrl = index.getAssetPath(`../solutions-components/assets/data/images/onboarding.png`);
|
250
253
|
}
|
251
254
|
/**
|
252
255
|
* Renders the component.
|
253
256
|
*/
|
254
257
|
render() {
|
255
258
|
const headerSlot = this._isMobile ? "footer" : "header";
|
256
|
-
return (index.h(index.Host, { key: '
|
259
|
+
return (index.h(index.Host, { key: '706cac9f6c3456220ffaa13cbe74a0b6eb60710b' }, index.h("calcite-shell", { key: '2d7169374eb285efc1b0dc20f005173aa7e33f61' }, index.h("calcite-action-bar", { key: '66ee03cbf7ad909af37f49ed7d89146235f6a1d6', class: "border-bottom-1 action-bar-size", "expand-disabled": true, layout: "horizontal", slot: headerSlot }, this._getActionGroup("list-check", interfaces.EPageType.LIST, this._translations.myLists), this.showRefineSelection ? this._getActionGroup("test-data", interfaces.EPageType.REFINE, this._translations.refineSelection) : null, this._getActionGroup("export", interfaces.EPageType.EXPORT, this._translations.export)), this._getPage(this._pageType))));
|
257
260
|
}
|
258
261
|
/**
|
259
262
|
* StencilJS: Called once just after the component is first loaded.
|
@@ -590,7 +593,7 @@ const PublicNotification = class {
|
|
590
593
|
*/
|
591
594
|
_getSelectPage() {
|
592
595
|
const noticeText = this._translations.selectSearchTip;
|
593
|
-
return (index.h("calcite-panel", null, this._getLabel(this._translations.stepTwoFull, true), this._getNotice(noticeText, "padding-1", "word-wrap-anywhere"), index.h("div", null, index.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(); })));
|
596
|
+
return (index.h("calcite-panel", null, this._getLabel(this._translations.stepTwoFull, true), this._getNotice(noticeText, "padding-1", "word-wrap-anywhere"), index.h("div", null, index.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(); })));
|
594
597
|
}
|
595
598
|
/**
|
596
599
|
* Create the main download page that has the shared aspects of both PDF and CSV
|
@@ -602,7 +605,7 @@ const PublicNotification = class {
|
|
602
605
|
_getExportPage() {
|
603
606
|
const hasSelections = this._hasSelections(this.showRefineSelection);
|
604
607
|
const displayDuplicatesClass = this._numDuplicates > 0 ? "display-block" : "display-none";
|
605
|
-
return (index.h("calcite-panel", null, index.h("div", null, this._getLabel(this._translations.export, false), hasSelections ? (index.h("div", null, this._getNotice(this._translations.exportTip, "padding-sides-1"), this._getLabel(this._translations.exportListsLabel), this._getExportSelectionLists(), index.h("div", { class: "padding-sides-1 " + displayDuplicatesClass }, index.h("div", { class: "display-flex" }, index.h("calcite-label", { layout: "inline" }, index.h("calcite-checkbox", { ref: (el) => { this._removeDuplicates = el; } }), index.h("div", { class: "display-flex" }, this._translations.removeDuplicate, index.h("div", { class: "info-message padding-start-1-2" }, index.h("calcite-input-message", { class: "info-blue margin-top-0", scale: "m" }, ` ${this._translations.numDuplicates.replace("{{n}}", this._numDuplicates.toString())}`)))), index.h("calcite-icon", { class: "padding-start-1-2 icon", flipRtl: !(this.locale
|
608
|
+
return (index.h("calcite-panel", null, index.h("div", null, this._getLabel(this._translations.export, false), hasSelections ? (index.h("div", null, this._getNotice(this._translations.exportTip, "padding-sides-1"), this._getLabel(this._translations.exportListsLabel), this._getExportSelectionLists(), index.h("div", { class: "padding-sides-1 " + displayDuplicatesClass }, index.h("div", { class: "display-flex" }, index.h("calcite-label", { layout: "inline" }, index.h("calcite-checkbox", { ref: (el) => { this._removeDuplicates = el; } }), index.h("div", { class: "display-flex" }, this._translations.removeDuplicate, index.h("div", { class: "info-message padding-start-1-2" }, index.h("calcite-input-message", { class: "info-blue margin-top-0", scale: "m" }, ` ${this._translations.numDuplicates.replace("{{n}}", this._numDuplicates.toString())}`)))), index.h("calcite-icon", { class: "padding-start-1-2 icon", flipRtl: !(this.locale?.toLowerCase() === "he"), icon: "question", id: "remove-duplicates-icon", scale: "s" })), index.h("calcite-popover", { closable: true, label: "", referenceElement: "remove-duplicates-icon" }, index.h("span", { class: "tooltip-message" }, this._translations.duplicatesTip))), index.h("div", { class: "border-bottom" }), index.h("div", { class: "padding-top-sides-1" }, index.h("calcite-segmented-control", { class: "w-100", onCalciteSegmentedControlChange: (evt) => this._exportTypeChange(evt), width: "full" }, index.h("calcite-segmented-control-item", { checked: this._exportType === interfaces.EExportType.PDF, class: "w-50 end-border", value: interfaces.EExportType.PDF }, index.h("span", { class: "font-weight-500" }, this._translations.pdf)), index.h("calcite-segmented-control-item", { checked: this._exportType === interfaces.EExportType.CSV, class: "w-50", value: interfaces.EExportType.CSV }, index.h("span", { class: "font-weight-500" }, this._translations.csv)))), index.h("div", { class: "padding-bottom-1" }, this._getExportOptions()), index.h("div", { class: "padding-1 display-flex" }, index.h("calcite-button", { disabled: (!this._downloadActive || this._fetchingData) || (!this._addMap && !this._addResults), loading: this._fetchingData, onClick: () => void this._export(), width: "full" }, index.h("span", { class: "font-weight-500" }, this._translations.export))))) : (this._getNotice(this._translations.downloadNoLists, "padding-sides-1 padding-bottom-1")))));
|
606
609
|
}
|
607
610
|
/**
|
608
611
|
* Store the user selected export type CSV || PDF
|
@@ -623,7 +626,7 @@ const PublicNotification = class {
|
|
623
626
|
const graphicsOptionsClass = this._addMap ? "display-flex" : "display-none";
|
624
627
|
const title = this._titleValue ? this._titleValue : this.defaultExportTitle ? this.defaultExportTitle : "";
|
625
628
|
const formatOptionsClass = this._addResults ? "" : "display-none";
|
626
|
-
return (index.h("div", { class: displayClass }, this._getLabel(this._translations.pdfOptions, true), index.h("div", { class: "padding-top-sides-1" }, index.h("calcite-label", { class: "label-margin-0", layout: "inline" }, index.h("calcite-checkbox", { checked: this._addResults, onCalciteCheckboxChange: () => this._addResults = !this._addResults }), this._translations.addResults)), index.h("div", { class: `padding-top-sides-1 ${formatOptionsClass}` }, index.h("calcite-label", { class: "label-margin-0" }, this._translations.selectPDFLabelOption)), index.h("div", { class: `padding-sides-1 ${formatOptionsClass}` }, index.h("pdf-download", { defaultNumLabelsPerPage: parseInt(this.defaultNumLabelsPerPage.toString(), 10), disabled: !this._downloadActive, ref: (el) => { this._downloadTools = el; } })), index.h("div", { class: "padding-top-sides-1" }, index.h("calcite-label", { class: "label-margin-0", layout: "inline" }, index.h("calcite-checkbox", { checked: this._addTitle, onCalciteCheckboxChange: () => this._addTitle = !this._addTitle }), this._translations.title)), index.h("div", { class: titleOptionsClass }, this._getLabel(this._translations.title, true, ""), index.h("calcite-input-text", { class: "padding-sides-1", onCalciteInputTextInput: () => this._changeTitle(), placeholder: this._translations.titlePlaceholder, ref: (el) => { this._titleElement = el; }, value: title })), index.h("div", { class: "padding-top-sides-1" }, index.h("calcite-label", { class: "label-margin-0", layout: "inline" }, index.h("calcite-checkbox", { checked: this._addMap, onCalciteCheckboxChange: () => this._handleAddMapChange() }), this._translations.includeMap)), index.h("div", { class: `padding-top-sides-1 ${graphicsOptionsClass}` }, index.h("calcite-label", { class: "label-margin-0", layout: "inline" }, index.h("calcite-checkbox", { checked: this._exportGraphics, onCalciteCheckboxChange: () => this._handleExportGraphicsChange() }), this._translations.listGraphics), index.h("calcite-icon", { class: "padding-start-1-2 icon", flipRtl: !(this.locale
|
629
|
+
return (index.h("div", { class: displayClass }, this._getLabel(this._translations.pdfOptions, true), index.h("div", { class: "padding-top-sides-1" }, index.h("calcite-label", { class: "label-margin-0", layout: "inline" }, index.h("calcite-checkbox", { checked: this._addResults, onCalciteCheckboxChange: () => this._addResults = !this._addResults }), this._translations.addResults)), index.h("div", { class: `padding-top-sides-1 ${formatOptionsClass}` }, index.h("calcite-label", { class: "label-margin-0" }, this._translations.selectPDFLabelOption)), index.h("div", { class: `padding-sides-1 ${formatOptionsClass}` }, index.h("pdf-download", { defaultNumLabelsPerPage: parseInt(this.defaultNumLabelsPerPage.toString(), 10), disabled: !this._downloadActive, ref: (el) => { this._downloadTools = el; } })), index.h("div", { class: "padding-top-sides-1" }, index.h("calcite-label", { class: "label-margin-0", layout: "inline" }, index.h("calcite-checkbox", { checked: this._addTitle, onCalciteCheckboxChange: () => this._addTitle = !this._addTitle }), this._translations.title)), index.h("div", { class: titleOptionsClass }, this._getLabel(this._translations.title, true, ""), index.h("calcite-input-text", { class: "padding-sides-1", onCalciteInputTextInput: () => this._changeTitle(), placeholder: this._translations.titlePlaceholder, ref: (el) => { this._titleElement = el; }, value: title })), index.h("div", { class: "padding-top-sides-1" }, index.h("calcite-label", { class: "label-margin-0", layout: "inline" }, index.h("calcite-checkbox", { checked: this._addMap, onCalciteCheckboxChange: () => this._handleAddMapChange() }), this._translations.includeMap)), index.h("div", { class: `padding-top-sides-1 ${graphicsOptionsClass}` }, index.h("calcite-label", { class: "label-margin-0", layout: "inline" }, index.h("calcite-checkbox", { checked: this._exportGraphics, onCalciteCheckboxChange: () => this._handleExportGraphicsChange() }), this._translations.listGraphics), index.h("calcite-icon", { class: "padding-start-1-2 icon", flipRtl: !(this.locale?.toLowerCase() === "he"), icon: "question", id: "list-graphics-icon", scale: "s" }), index.h("calcite-popover", { closable: true, label: "", referenceElement: "list-graphics-icon" }, index.h("span", { class: "tooltip-message" }, this._translations.listGraphicsTip)))));
|
627
630
|
}
|
628
631
|
/**
|
629
632
|
* Toggle the _addMap state variable and update the graphics on the map
|
@@ -5,7 +5,7 @@
|
|
5
5
|
*/
|
6
6
|
'use strict';
|
7
7
|
|
8
|
-
require('./solution-resource-
|
8
|
+
require('./solution-resource-57cf345b.js');
|
9
9
|
|
10
10
|
/*! *****************************************************************************
|
11
11
|
Copyright (c) Microsoft Corporation.
|
@@ -605,8 +605,8 @@ function cleanUrl(url) {
|
|
605
605
|
* @returns A promise that will resolve with JSON or null
|
606
606
|
*/
|
607
607
|
function blobToJson(blob) {
|
608
|
-
return new Promise(
|
609
|
-
blobToText(blob).then(
|
608
|
+
return new Promise(resolve => {
|
609
|
+
blobToText(blob).then(blobContents => {
|
610
610
|
try {
|
611
611
|
resolve(JSON.parse(blobContents));
|
612
612
|
}
|
@@ -626,7 +626,7 @@ function blobToJson(blob) {
|
|
626
626
|
*/
|
627
627
|
function blobToFile(blob, filename, mimeType) {
|
628
628
|
return new File([blob], filename ? filename : "", {
|
629
|
-
type: mimeType ?? blob.type
|
629
|
+
type: mimeType ?? blob.type // Blobs default to type=""
|
630
630
|
});
|
631
631
|
}
|
632
632
|
/**
|
@@ -636,7 +636,7 @@ function blobToFile(blob, filename, mimeType) {
|
|
636
636
|
* @returns A promise that will resolve with text read from blob
|
637
637
|
*/
|
638
638
|
function blobToText(blob) {
|
639
|
-
return new Promise(
|
639
|
+
return new Promise(resolve => {
|
640
640
|
const reader = new FileReader();
|
641
641
|
reader.onload = function (evt) {
|
642
642
|
// Disable needed because Node requires cast
|
@@ -753,9 +753,9 @@ function getBlob(url, authentication, requestOptions = {}) {
|
|
753
753
|
const blobRequestOptions = {
|
754
754
|
authentication: authentication,
|
755
755
|
rawResponse: true,
|
756
|
-
...requestOptions
|
756
|
+
...requestOptions
|
757
757
|
};
|
758
|
-
return request(url, blobRequestOptions).then(
|
758
|
+
return request(url, blobRequestOptions).then(response => {
|
759
759
|
return response.blob();
|
760
760
|
});
|
761
761
|
}
|
@@ -788,7 +788,7 @@ const ZIP_FILE_HEADER_SIGNATURE = "PK";
|
|
788
788
|
function getBlobAsFile(url, filename, authentication, ignoreErrors = [], mimeType) {
|
789
789
|
return new Promise((resolve, reject) => {
|
790
790
|
// Get the blob from the URL
|
791
|
-
getBlobCheckForError(url, authentication, ignoreErrors).then(
|
791
|
+
getBlobCheckForError(url, authentication, ignoreErrors).then(blob => !blob ? resolve(null) : resolve(blobToFile(blob, filename, mimeType)), reject);
|
792
792
|
});
|
793
793
|
}
|
794
794
|
/**
|
@@ -802,9 +802,9 @@ function getBlobAsFile(url, filename, authentication, ignoreErrors = [], mimeTyp
|
|
802
802
|
function getBlobCheckForError(url, authentication, ignoreErrors = []) {
|
803
803
|
return new Promise((resolve, reject) => {
|
804
804
|
// Get the blob from the URL
|
805
|
-
getBlob(url, authentication).then(
|
805
|
+
getBlob(url, authentication).then(blob => {
|
806
806
|
// Reclassify text/plain blobs as needed
|
807
|
-
_fixTextBlobType(blob).then(
|
807
|
+
_fixTextBlobType(blob).then(adjustedBlob => {
|
808
808
|
if (adjustedBlob.type === "application/json") {
|
809
809
|
// Blob may be an error
|
810
810
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
@@ -840,8 +840,8 @@ function getBlobCheckForError(url, authentication, ignoreErrors = []) {
|
|
840
840
|
* @returns Promise that will resolve with JSON, or an AGO-style JSON failure response
|
841
841
|
*/
|
842
842
|
function getItemDataAsJson(itemId, authentication) {
|
843
|
-
return new Promise(
|
844
|
-
getItemDataBlob(itemId, authentication).then(
|
843
|
+
return new Promise(resolve => {
|
844
|
+
getItemDataBlob(itemId, authentication).then(blob => resolve(blobToJson(blob)), () => resolve(null));
|
845
845
|
});
|
846
846
|
}
|
847
847
|
/**
|
@@ -852,9 +852,9 @@ function getItemDataAsJson(itemId, authentication) {
|
|
852
852
|
* @returns A promise that will resolve with the data Blob or null if the item doesn't have a data section
|
853
853
|
*/
|
854
854
|
function getItemDataBlob(itemId, authentication) {
|
855
|
-
return new Promise(
|
855
|
+
return new Promise(resolve => {
|
856
856
|
const url = getItemDataBlobUrl(itemId, authentication);
|
857
|
-
getBlobCheckForError(url, authentication, [400, 500]).then(
|
857
|
+
getBlobCheckForError(url, authentication, [400, 500]).then(blob => resolve(_fixTextBlobType(blob)), () => resolve(null));
|
858
858
|
});
|
859
859
|
}
|
860
860
|
/**
|
@@ -878,11 +878,11 @@ function getJson(url, authentication) {
|
|
878
878
|
// Get the blob from the URL
|
879
879
|
const requestOptions = { httpMethod: "GET" };
|
880
880
|
return getBlob(url, authentication, requestOptions)
|
881
|
-
.then(
|
881
|
+
.then(blob => {
|
882
882
|
// Reclassify text/plain blobs as needed
|
883
883
|
return _fixTextBlobType(blob);
|
884
884
|
})
|
885
|
-
.then(
|
885
|
+
.then(adjustedBlob => {
|
886
886
|
if (adjustedBlob.type === "application/json") {
|
887
887
|
// Blob may be an error
|
888
888
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
@@ -904,7 +904,7 @@ function getPortalSharingUrlFromAuth(authentication) {
|
|
904
904
|
return getProp(authentication, "portal") || "https://www.arcgis.com/sharing/rest";
|
905
905
|
}
|
906
906
|
function getThumbnailFile(url, filename, authentication) {
|
907
|
-
return new Promise(
|
907
|
+
return new Promise(resolve => {
|
908
908
|
getBlobAsFile(url, filename, authentication, [500]).then(resolve, () => resolve(null));
|
909
909
|
});
|
910
910
|
}
|
@@ -919,8 +919,11 @@ function getThumbnailFile(url, filename, authentication) {
|
|
919
919
|
*/
|
920
920
|
function _fixTextBlobType(blob) {
|
921
921
|
return new Promise((resolve, reject) => {
|
922
|
-
if (blob &&
|
923
|
-
|
922
|
+
if (blob &&
|
923
|
+
blob.size > 0 &&
|
924
|
+
(blob.type.startsWith("text/plain") ||
|
925
|
+
blob.type.startsWith("application/json"))) {
|
926
|
+
blobToText(blob).then(blobText => {
|
924
927
|
// Convertible to JSON?
|
925
928
|
try {
|
926
929
|
JSON.parse(blobText);
|
@@ -929,7 +932,8 @@ function _fixTextBlobType(blob) {
|
|
929
932
|
}
|
930
933
|
catch (ignored) {
|
931
934
|
// Nope; test for ZIP file
|
932
|
-
if (blobText.length > 4 &&
|
935
|
+
if (blobText.length > 4 &&
|
936
|
+
blobText.substr(0, 4) === ZIP_FILE_HEADER_SIGNATURE) {
|
933
937
|
// Yes; reclassify as ZIP
|
934
938
|
resolve(new Blob([blob], { type: "application/zip" }));
|
935
939
|
}
|
@@ -8,15 +8,15 @@
|
|
8
8
|
Object.defineProperty(exports, '__esModule', { value: true });
|
9
9
|
|
10
10
|
const index = require('./index-696e53e6.js');
|
11
|
-
const templates = require('./templates-
|
12
|
-
const solutionStore = require('./solution-store-
|
13
|
-
require('./solution-resource-
|
14
|
-
const locale = require('./locale-
|
15
|
-
const restHelpersGet = require('./restHelpersGet-
|
11
|
+
const templates = require('./templates-e4b98319.js');
|
12
|
+
const solutionStore = require('./solution-store-71bb46fa.js');
|
13
|
+
require('./solution-resource-57cf345b.js');
|
14
|
+
const locale = require('./locale-4e7fe921.js');
|
15
|
+
const restHelpersGet = require('./restHelpersGet-bf484fda.js');
|
16
16
|
require('./interfaces-09c4c40e.js');
|
17
17
|
require('./index-a0cca96e.js');
|
18
18
|
require('./_commonjsHelpers-baf43783.js');
|
19
|
-
require('./esri-loader-
|
19
|
+
require('./esri-loader-08dc41bd.js');
|
20
20
|
|
21
21
|
/* Copyright (c) 2017-2020 Environmental Systems Research Institute, Inc.
|
22
22
|
* Apache-2.0 */
|
@@ -8,15 +8,15 @@
|
|
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 locale = require('./locale-
|
13
|
-
const common = require('./common-
|
11
|
+
const solutionStore = require('./solution-store-71bb46fa.js');
|
12
|
+
const locale = require('./locale-4e7fe921.js');
|
13
|
+
const common = require('./common-61b41813.js');
|
14
14
|
const interfaces = require('./interfaces-09c4c40e.js');
|
15
15
|
require('./index-a0cca96e.js');
|
16
|
-
require('./solution-resource-
|
16
|
+
require('./solution-resource-57cf345b.js');
|
17
17
|
require('./_commonjsHelpers-baf43783.js');
|
18
|
-
require('./restHelpersGet-
|
19
|
-
require('./esri-loader-
|
18
|
+
require('./restHelpersGet-bf484fda.js');
|
19
|
+
require('./esri-loader-08dc41bd.js');
|
20
20
|
|
21
21
|
const solutionContentsCss = ".icon-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}";
|
22
22
|
const SolutionContentsStyle0 = solutionContentsCss;
|
@@ -1808,7 +1808,7 @@ var ESortVisitState;
|
|
1808
1808
|
/** visited, in progress */
|
1809
1809
|
ESortVisitState[ESortVisitState["InProgress"] = 1] = "InProgress";
|
1810
1810
|
/** finished */
|
1811
|
-
ESortVisitState[ESortVisitState["Finished"] = 2] = "Finished";
|
1811
|
+
ESortVisitState[ESortVisitState["Finished"] = 2] = "Finished"; // BLACK
|
1812
1812
|
})(ESortVisitState || (ESortVisitState = {}));
|
1813
1813
|
|
1814
1814
|
/** @license
|