@esri/solutions-components 0.10.45 → 0.10.47
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/calcite-block_5.cjs.entry.js +21 -1
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +53 -3
- package/dist/cjs/instant-apps-export.cjs.entry.js +18 -5
- package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +5 -6
- package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +13 -6
- package/dist/cjs/instant-apps-time-filter.cjs.entry.js +7 -12
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/map-select-tools_3.cjs.entry.js +17 -17
- package/dist/cjs/public-notification.cjs.entry.js +1 -1
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +84 -2
- package/dist/collection/components/map-select-tools/map-select-tools.js +54 -20
- package/dist/collection/components/public-notification/public-notification.js +1 -1
- package/dist/components/crowdsource-reporter.js +57 -5
- package/dist/components/instant-apps-export.js +18 -5
- package/dist/components/instant-apps-filter-list2.js +23 -2
- package/dist/components/instant-apps-language-switcher.js +5 -6
- package/dist/components/instant-apps-scoreboard.js +14 -6
- package/dist/components/instant-apps-time-filter.js +7 -12
- package/dist/components/map-select-tools2.js +19 -19
- package/dist/components/public-notification.js +1 -1
- package/dist/esm/calcite-block_5.entry.js +21 -1
- package/dist/esm/crowdsource-reporter.entry.js +53 -3
- package/dist/esm/instant-apps-export.entry.js +18 -5
- package/dist/esm/instant-apps-language-switcher.entry.js +5 -6
- package/dist/esm/instant-apps-scoreboard.entry.js +13 -6
- package/dist/esm/instant-apps-time-filter.entry.js +7 -12
- package/dist/esm/loader.js +1 -1
- package/dist/esm/map-select-tools_3.entry.js +17 -17
- package/dist/esm/public-notification.entry.js +1 -1
- package/dist/esm/solutions-components.js +1 -1
- package/dist/solutions-components/p-1336a071.entry.js +6 -0
- package/dist/solutions-components/p-41503b16.entry.js +6 -0
- package/dist/solutions-components/p-94e51621.entry.js +6 -0
- package/dist/solutions-components/{p-2cf41651.entry.js → p-c7f86f73.entry.js} +1 -1
- package/dist/solutions-components/p-e9a0d2f3.entry.js +6 -0
- package/dist/solutions-components/p-f09744aa.entry.js +6 -0
- package/dist/solutions-components/p-f86c2a0c.entry.js +6 -0
- package/dist/solutions-components/p-fdeceaf6.entry.js +29 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +17 -0
- package/dist/types/components/map-select-tools/map-select-tools.d.ts +8 -8
- package/dist/types/components.d.ts +20 -0
- package/package.json +7 -7
- package/dist/solutions-components/p-112df7b2.entry.js +0 -6
- package/dist/solutions-components/p-2291bf3f.entry.js +0 -6
- package/dist/solutions-components/p-5e694bcc.entry.js +0 -29
- package/dist/solutions-components/p-6e5ea1cb.entry.js +0 -6
- package/dist/solutions-components/p-add973e2.entry.js +0 -6
- package/dist/solutions-components/p-cb27611e.entry.js +0 -6
- package/dist/solutions-components/p-f4880179.entry.js +0 -6
@@ -35,31 +35,25 @@ let e$a;function has(a){return "function"==typeof e$a[a]?e$a[a]=e$a[a](globalThi
|
|
35
35
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
36
36
|
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
37
37
|
*/
|
38
|
-
function o$8(n){return "Int8Array"===n?.constructor?.name}function u$6(n){return "Uint8Array"===n?.constructor?.name}function e$9(n){return "Uint8ClampedArray"===n?.constructor?.name}function c$6(n){return "Int16Array"===n?.constructor?.name}function i$6(n){return "Uint16Array"===n?.constructor?.name}function a$
|
38
|
+
function o$8(n){return "Int8Array"===n?.constructor?.name}function u$6(n){return "Uint8Array"===n?.constructor?.name}function e$9(n){return "Uint8ClampedArray"===n?.constructor?.name}function c$6(n){return "Int16Array"===n?.constructor?.name}function i$6(n){return "Uint16Array"===n?.constructor?.name}function a$5(n){return "Int32Array"===n?.constructor?.name}function f$5(n){return "Uint32Array"===n?.constructor?.name}function s$6(n){return "Float32Array"===n?.constructor?.name}function m$5(n){return "Float64Array"===n?.constructor?.name}
|
39
39
|
|
40
40
|
/*
|
41
41
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
42
42
|
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
43
43
|
*/
|
44
|
-
function a$
|
44
|
+
function a$4(t){if(!t||"object"!=typeof t||"function"==typeof t)return t;const n=O$2(t);if(null!=n)return n;if(y$4(t))return t.clone();if(m$4(t))return t.map(a$4);if(b$2(t))return t.clone();const e={};for(const r of Object.getOwnPropertyNames(t))e[r]=a$4(t[r]);return e}function y$4(t){return "function"==typeof t.clone}function m$4(t){return "function"==typeof t.map&&"function"==typeof t.forEach}function b$2(t){return "function"==typeof t.notifyChange&&"function"==typeof t.watch}function O$2(t){if(o$8(t)||u$6(t)||e$9(t)||c$6(t)||i$6(t)||a$5(t)||f$5(t)||s$6(t)||m$5(t))return t.slice();if(t instanceof Date)return new Date(t.getTime());if(t instanceof ArrayBuffer){return t.slice(0,t.byteLength)}if(t instanceof Map){const n=new Map;for(const[e,r]of t)n.set(e,a$4(r));return n}if(t instanceof Set){const n=new Set;for(const e of t)n.add(a$4(e));return n}return null}
|
45
45
|
|
46
46
|
/*
|
47
47
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
48
48
|
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
49
49
|
*/
|
50
|
-
function n$7(r,n,t=!1){return f$4(r,n,t)}function t$4(r,n){if(null!=n)return n[r]||u$5(r.split("."),!1,n)}function u$5(r,n,t){let e=t;for(const i of r){if(null==e)return;if(!(i in e)){if(!n)return;e[i]={};}e=e[i];}return e}function f$4(n,t,e){return t?Object.keys(t).reduce(((n,i)=>{let u=n[i],l=t[i];return u===l?n:void 0===u?(n[i]=a$
|
50
|
+
function n$7(r,n,t=!1){return f$4(r,n,t)}function t$4(r,n){if(null!=n)return n[r]||u$5(r.split("."),!1,n)}function u$5(r,n,t){let e=t;for(const i of r){if(null==e)return;if(!(i in e)){if(!n)return;e[i]={};}e=e[i];}return e}function f$4(n,t,e){return t?Object.keys(t).reduce(((n,i)=>{let u=n[i],l=t[i];return u===l?n:void 0===u?(n[i]=a$4(l),n):(Array.isArray(l)||Array.isArray(n)?(u=u?Array.isArray(u)?n[i]=u.slice():n[i]=[u]:n[i]=[],l&&(Array.isArray(l)||(l=[l]),e?l.forEach((r=>{u.includes(r)||u.push(r);})):n[i]=l.slice())):l&&"object"==typeof l?n[i]=f$4(u,l,e):n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[i]=l),n)}),n||{}):n}
|
51
51
|
|
52
52
|
/*
|
53
53
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
54
54
|
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
55
55
|
*/
|
56
|
-
const
|
57
|
-
|
58
|
-
/*
|
59
|
-
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
60
|
-
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
61
|
-
*/
|
62
|
-
const s$5={apiKey:void 0,applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(n$7(s$5,globalThis.esriConfig,!0),delete s$5.has),!s$5.assetsPath){{const e="4.31.0";s$5.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${a$4}/assets`;}s$5.defaultAssetsPath=s$5.assetsPath;}
|
56
|
+
const s$5={apiKey:void 0,applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(n$7(s$5,globalThis.esriConfig,!0),delete s$5.has),!s$5.assetsPath){{const e="4.31";s$5.assetsPath=`https://js.arcgis.com/${e}/@arcgis/core/assets`;}s$5.defaultAssetsPath=s$5.assetsPath;}
|
63
57
|
|
64
58
|
/*
|
65
59
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
@@ -83,7 +77,7 @@ function s$4(s,e){return s.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,((s,r)
|
|
83
77
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
84
78
|
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
85
79
|
*/
|
86
|
-
class s$3 extends e$8{constructor(e,t,r){super(e,t,r);}toJSON(){if(null!=this.details)try{return {name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,((t,r)=>{if(r&&"object"==typeof r&&"function"==typeof r.toJSON)return r;try{return a$
|
80
|
+
class s$3 extends e$8{constructor(e,t,r){super(e,t,r);}toJSON(){if(null!=this.details)try{return {name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,((t,r)=>{if(r&&"object"==typeof r&&"function"==typeof r.toJSON)return r;try{return a$4(r)}catch(s){return "[object]"}})))}}catch(r){throw n$6.getLogger("esri.core.Error").error(r),r}return {name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new s$3(e.name,e.message,e.details)}}s$3.prototype.type="error";
|
87
81
|
|
88
82
|
/*
|
89
83
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
@@ -392,11 +386,12 @@ class InstantAppsTimeFilterViewModel {
|
|
392
386
|
}
|
393
387
|
}
|
394
388
|
applyFeatureEffect(layerView, timeExtent, filterMode) {
|
389
|
+
var _a;
|
395
390
|
if (!layerView)
|
396
391
|
return;
|
397
392
|
if (layerView.filter)
|
398
393
|
layerView.set('filter', null);
|
399
|
-
if (!layerView.featureEffect || filterMode) {
|
394
|
+
if (!(layerView === null || layerView === void 0 ? void 0 : layerView.featureEffect) || !((_a = layerView === null || layerView === void 0 ? void 0 : layerView.featureEffect) === null || _a === void 0 ? void 0 : _a.filter) || filterMode) {
|
400
395
|
this.handleUpdatedFeatureEffect(layerView, timeExtent);
|
401
396
|
return;
|
402
397
|
}
|
@@ -68,12 +68,12 @@ const MapSelectTools = /*@__PURE__*/ proxyCustomElement(class MapSelectTools ext
|
|
68
68
|
this.sketchLineSymbol = undefined;
|
69
69
|
this.sketchPointSymbol = undefined;
|
70
70
|
this.sketchPolygonSymbol = undefined;
|
71
|
+
this.searchDistanceEnabled = false;
|
72
|
+
this.useLayerFeaturesEnabled = false;
|
71
73
|
this._numSelected = 0;
|
72
|
-
this._searchDistanceEnabled = false;
|
73
74
|
this._searchTerm = undefined;
|
74
75
|
this._selectionLoading = false;
|
75
76
|
this._translations = undefined;
|
76
|
-
this._useLayerFeaturesEnabled = false;
|
77
77
|
}
|
78
78
|
get el() { return this; }
|
79
79
|
//--------------------------------------------------------------------------
|
@@ -262,9 +262,9 @@ const MapSelectTools = /*@__PURE__*/ proxyCustomElement(class MapSelectTools ext
|
|
262
262
|
graphics: this._graphics,
|
263
263
|
selectLayers: this.layerViews,
|
264
264
|
skipGeomOIDs: this._skipGeomOIDs,
|
265
|
-
searchDistanceEnabled: this.
|
265
|
+
searchDistanceEnabled: this.searchDistanceEnabled,
|
266
266
|
workflowType: this._workflowType,
|
267
|
-
useLayerFeaturesEnabled: this.
|
267
|
+
useLayerFeaturesEnabled: this.useLayerFeaturesEnabled,
|
268
268
|
sketchGraphic: this._sketchGraphic
|
269
269
|
};
|
270
270
|
}
|
@@ -322,30 +322,30 @@ const MapSelectTools = /*@__PURE__*/ proxyCustomElement(class MapSelectTools ext
|
|
322
322
|
render() {
|
323
323
|
const mapToolsClass = this.enableSketchTools ? "" : "display-none";
|
324
324
|
const mapToolsContainerClass = this.enableSketchTools ? "padding-top-1" : "";
|
325
|
-
return (h(Host, { key: '
|
325
|
+
return (h(Host, { key: '1c312d53b800ca401726c653e12465e92abf0eef' }, this._getMapLayerPicker(), h("div", { key: '2da9eb5316656769ec2f80dfa5fbdc190c62b1cb', class: "border-bottom" }), h("div", { key: 'b21d332e5da0aa8cfb34fdab7a1075bfbd5efb42', class: "padding-top-sides-1" }, h("div", { key: '2dd59511d4f07cc2cd43b5b5c2a8037303d21546', class: "search-widget", ref: (el) => { this._searchElement = el; } }), h("div", { key: '1149bcd2f36171b82f6902fbf89bb0400383fdde', class: mapToolsContainerClass }, h("map-draw-tools", { key: '2d3b1b91a108bf2bb2db463e7ffd4574f4a36dac', active: true, class: mapToolsClass, editGraphicsEnabled: !this.useLayerFeaturesEnabled, graphics: this._graphics, locale: this.locale, 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: 'd4068bef106e1f4226b1f9c104a626fe0a0f6700', class: "border-bottom" }), this._getNameInput()));
|
326
326
|
}
|
327
327
|
/**
|
328
328
|
* Renders the buffer tools component.
|
329
329
|
*/
|
330
330
|
_getBufferOptions() {
|
331
331
|
if (this.enableSearchDistanceOnLoad) {
|
332
|
-
this.
|
332
|
+
this.searchDistanceEnabled = true;
|
333
333
|
this.enableSearchDistanceOnLoad = false;
|
334
334
|
}
|
335
|
-
const showBufferToolsClass = this.
|
335
|
+
const showBufferToolsClass = this.searchDistanceEnabled ? "search-distance" : "div-not-visible";
|
336
336
|
const bufferDistance = typeof this.selectionSet?.distance === "number" ? this.selectionSet.distance : this.defaultBufferDistance;
|
337
|
-
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.
|
337
|
+
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, locale: this.locale, onBufferComplete: (evt) => void this._bufferComplete(evt), ref: (el) => this._bufferTools = el, unit: this.selectionSet?.unit || this.defaultBufferUnit }))));
|
338
338
|
}
|
339
339
|
/**
|
340
340
|
* Renders the map layer picker component.
|
341
341
|
*/
|
342
342
|
_getUseLayerFeaturesOptions() {
|
343
343
|
if (this.enableLayerFeaturesOnLoad) {
|
344
|
-
this.
|
344
|
+
this.useLayerFeaturesEnabled = true;
|
345
345
|
this.enableLayerFeaturesOnLoad = false;
|
346
346
|
}
|
347
|
-
const useLayerFeaturesClass = this.
|
348
|
-
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.
|
347
|
+
const useLayerFeaturesClass = this.useLayerFeaturesEnabled ? "div-visible" : "div-not-visible";
|
348
|
+
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, locale: this.locale, mapView: this.mapView, onLayerSelectionChange: (evt) => { void this._layerSelectionChange(evt); }, selectedIds: this.layerViews.map(l => l.layer.id), showTables: false }))));
|
349
349
|
}
|
350
350
|
/**
|
351
351
|
* Renders the number of selected features
|
@@ -426,8 +426,8 @@ const MapSelectTools = /*@__PURE__*/ proxyCustomElement(class MapSelectTools ext
|
|
426
426
|
this._selectLayers = this.selectionSet.selectLayers;
|
427
427
|
this._selectedIds = this.selectionSet.selectedIds;
|
428
428
|
this._skipGeomOIDs = this.selectionSet.skipGeomOIDs;
|
429
|
-
this.
|
430
|
-
this.
|
429
|
+
this.searchDistanceEnabled = this.selectionSet.searchDistanceEnabled;
|
430
|
+
this.useLayerFeaturesEnabled = this.selectionSet.useLayerFeaturesEnabled;
|
431
431
|
this._distance = this.selectionSet.searchDistanceEnabled ? this.selectionSet.distance : 0;
|
432
432
|
this._unit = this.selectionSet.unit;
|
433
433
|
this._workflowType = this.selectionSet.workflowType;
|
@@ -446,7 +446,7 @@ const MapSelectTools = /*@__PURE__*/ proxyCustomElement(class MapSelectTools ext
|
|
446
446
|
});
|
447
447
|
});
|
448
448
|
this._selectionLabel = this.selectionSet?.label;
|
449
|
-
if (!this.
|
449
|
+
if (!this.useLayerFeaturesEnabled) {
|
450
450
|
await this._drawTools?.updateGraphics();
|
451
451
|
}
|
452
452
|
await goToSelection(this.selectionSet.selectedIds, this.selectionSet.layerView, this.mapView, false);
|
@@ -652,13 +652,13 @@ const MapSelectTools = /*@__PURE__*/ proxyCustomElement(class MapSelectTools ext
|
|
652
652
|
if (!forceUpdate) {
|
653
653
|
this._sketchGraphic = graphics[0];
|
654
654
|
}
|
655
|
-
this._workflowType = this.
|
655
|
+
this._workflowType = this.useLayerFeaturesEnabled ? EWorkflowType.SELECT : EWorkflowType.SKETCH;
|
656
656
|
if (this._workflowType === EWorkflowType.SKETCH) {
|
657
657
|
await this._drawTools.updateGraphics();
|
658
658
|
}
|
659
659
|
await this._updateLabel();
|
660
660
|
this._clearSearchWidget();
|
661
|
-
if (this.
|
661
|
+
if (this.useLayerFeaturesEnabled && !forceUpdate) {
|
662
662
|
// Will only ever be a single graphic
|
663
663
|
const geometries = Array.isArray(graphics) ? graphics.map(g => g.geometry) : this.geometries;
|
664
664
|
await this._selectLayerFeatures(geometries[0]);
|
@@ -972,7 +972,7 @@ const MapSelectTools = /*@__PURE__*/ proxyCustomElement(class MapSelectTools ext
|
|
972
972
|
* @protected
|
973
973
|
*/
|
974
974
|
_useLayerFeaturesEnabledChanged() {
|
975
|
-
this.
|
975
|
+
this.useLayerFeaturesEnabled = !this.useLayerFeaturesEnabled;
|
976
976
|
if (this._sketchGraphic) {
|
977
977
|
void this._sketchGraphicsChanged({
|
978
978
|
detail: {
|
@@ -1023,12 +1023,12 @@ const MapSelectTools = /*@__PURE__*/ proxyCustomElement(class MapSelectTools ext
|
|
1023
1023
|
"sketchLineSymbol": [16],
|
1024
1024
|
"sketchPointSymbol": [16],
|
1025
1025
|
"sketchPolygonSymbol": [16],
|
1026
|
+
"searchDistanceEnabled": [4, "search-distance-enabled"],
|
1027
|
+
"useLayerFeaturesEnabled": [4, "use-layer-features-enabled"],
|
1026
1028
|
"_numSelected": [32],
|
1027
|
-
"_searchDistanceEnabled": [32],
|
1028
1029
|
"_searchTerm": [32],
|
1029
1030
|
"_selectionLoading": [32],
|
1030
1031
|
"_translations": [32],
|
1031
|
-
"_useLayerFeaturesEnabled": [32],
|
1032
1032
|
"clearSelection": [64],
|
1033
1033
|
"getSelection": [64]
|
1034
1034
|
}, [[8, "searchConfigurationChange", "searchConfigurationChangeChanged"], [8, "distanceChanged", "distanceChanged"], [8, "unitChanged", "unitChanged"]], {
|
@@ -639,7 +639,7 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class PublicNotifi
|
|
639
639
|
*/
|
640
640
|
_getSelectPage() {
|
641
641
|
const noticeText = this._translations.selectSearchTip;
|
642
|
-
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, enableLayerFeaturesOnLoad: this.enableLayerFeaturesOnLoad, enableSearchDistance: this.enableSearchDistance, enableSearchDistanceOnLoad: this.enableSearchDistanceOnLoad, 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(); })));
|
642
|
+
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, enableLayerFeaturesOnLoad: this.enableLayerFeaturesOnLoad, enableSearchDistance: this.enableSearchDistance, enableSearchDistanceOnLoad: this.enableSearchDistanceOnLoad, 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, searchDistanceEnabled: this.enableSearchDistanceOnLoad, selectionLayerIds: this.selectionLayerIds, selectionSet: this._activeSelection, sketchLineSymbol: this.sketchLineSymbol, sketchPointSymbol: this.sketchPointSymbol, sketchPolygonSymbol: this.sketchPolygonSymbol, useLayerFeaturesEnabled: this.enableLayerFeaturesOnLoad })), this._getPageNavButtons(this._translations.done, this._numSelected === 0, () => { void this._saveSelection(); }, this._translations.cancel, false, () => { void this._home(); })));
|
643
643
|
}
|
644
644
|
/**
|
645
645
|
* Create the main download page that has the shared aspects of both PDF and CSV
|
@@ -1567,6 +1567,26 @@ const InstantAppsFilterList = class {
|
|
1567
1567
|
const currentLayerExpressions = structuredClone(this.filterLayerExpressions);
|
1568
1568
|
return Promise.resolve(currentLayerExpressions);
|
1569
1569
|
}
|
1570
|
+
handleUpdatingT9nData(t9nLayerExpressions) {
|
1571
|
+
var _a;
|
1572
|
+
if (t9nLayerExpressions == null)
|
1573
|
+
return Promise.resolve();
|
1574
|
+
(_a = this.filterLayerExpressions) === null || _a === void 0 ? void 0 : _a.forEach(layerExpression => {
|
1575
|
+
var _a;
|
1576
|
+
const t9nLayerExpression = t9nLayerExpressions === null || t9nLayerExpressions === void 0 ? void 0 : t9nLayerExpressions.find(t9nLayerExpression => t9nLayerExpression.id === layerExpression.id);
|
1577
|
+
if (t9nLayerExpression != null) {
|
1578
|
+
layerExpression.title = t9nLayerExpression.title;
|
1579
|
+
(_a = layerExpression.expressions) === null || _a === void 0 ? void 0 : _a.forEach(expression => {
|
1580
|
+
var _a;
|
1581
|
+
const t9nExpression = (_a = t9nLayerExpression.expressions) === null || _a === void 0 ? void 0 : _a.find(t9nExpression => t9nExpression.id === expression.id);
|
1582
|
+
if (t9nExpression != null) {
|
1583
|
+
expression.name = t9nExpression.name;
|
1584
|
+
}
|
1585
|
+
});
|
1586
|
+
}
|
1587
|
+
});
|
1588
|
+
return Promise.resolve();
|
1589
|
+
}
|
1570
1590
|
connectedCallback() {
|
1571
1591
|
if (this.layerExpressions == null && this.view == null)
|
1572
1592
|
return;
|
@@ -1608,7 +1628,7 @@ const InstantAppsFilterList = class {
|
|
1608
1628
|
render() {
|
1609
1629
|
const filterConfig = this.loading ? this.renderLoading() : this.initFilterConfig();
|
1610
1630
|
const footer = this.renderFooter();
|
1611
|
-
return (h(Host, { key: '
|
1631
|
+
return (h(Host, { key: 'b3949fb2efa7587520eee01619be306a936b2f05' }, h("calcite-panel", { key: '2336ee3cd209346516ebb12780f7158fc88aa35c', class: this.baseClass, ref: el => (this.panelEl = el) }, h("slot", { key: 'd7400f3192055b45d9f75d19fcac85138f2958f8', slot: "header-content", name: "filter-header-content" }), h("slot", { key: 'fb684d06b51fd62fcc56129851444fad10beafc4', slot: "header-actions-end", name: "filter-header-actions-end" }), h("div", { key: "filter-container", class: CSS$1.filterContainer }, filterConfig, footer))));
|
1612
1632
|
}
|
1613
1633
|
renderLoading() {
|
1614
1634
|
return h("calcite-loader", { label: "Loading filters..." });
|
@@ -211,6 +211,10 @@ const CrowdsourceReporter = class {
|
|
211
211
|
* { [key: string]: string }: definitionExpressions for each layer
|
212
212
|
*/
|
213
213
|
_initDefExpressions;
|
214
|
+
/**
|
215
|
+
* ILayerExpression[]: translated values for layerExpressions
|
216
|
+
*/
|
217
|
+
_t9nLayerExpressions;
|
214
218
|
//--------------------------------------------------------------------------
|
215
219
|
//
|
216
220
|
// Watch handlers
|
@@ -281,11 +285,34 @@ const CrowdsourceReporter = class {
|
|
281
285
|
}, 50);
|
282
286
|
}
|
283
287
|
}
|
288
|
+
/**
|
289
|
+
* Called each time the layerExpressions prop is changed
|
290
|
+
*/
|
291
|
+
async layerExpressionsWatchHandler() {
|
292
|
+
this.resetFilterList();
|
293
|
+
await this.handleSelectedLayersFilter();
|
294
|
+
await this._featureList?.refresh();
|
295
|
+
}
|
284
296
|
//--------------------------------------------------------------------------
|
285
297
|
//
|
286
298
|
// Methods (public)
|
287
299
|
//
|
288
300
|
//--------------------------------------------------------------------------
|
301
|
+
/**
|
302
|
+
* Method to update layerExpressions with the translated values
|
303
|
+
*/
|
304
|
+
async updateLayerExpressionsT9n(t9nLayerExpressions) {
|
305
|
+
this._t9nLayerExpressions = t9nLayerExpressions ? t9nLayerExpressions : this.layerExpressions;
|
306
|
+
if (this._filterList != null) {
|
307
|
+
await this._filterList.handleUpdatingT9nData(this._t9nLayerExpressions);
|
308
|
+
}
|
309
|
+
else if (this._currentLayerExpressions != null) {
|
310
|
+
const currentLayerExpressions = structuredClone(this._currentLayerExpressions);
|
311
|
+
this.handleLayerExpressionsT9n(currentLayerExpressions, this._t9nLayerExpressions);
|
312
|
+
this._currentLayerExpressions = currentLayerExpressions;
|
313
|
+
}
|
314
|
+
return Promise.resolve();
|
315
|
+
}
|
289
316
|
//--------------------------------------------------------------------------
|
290
317
|
//
|
291
318
|
// Events (public)
|
@@ -332,7 +359,7 @@ const CrowdsourceReporter = class {
|
|
332
359
|
*/
|
333
360
|
render() {
|
334
361
|
const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
|
335
|
-
return (h(Host, { key: '
|
362
|
+
return (h(Host, { key: 'b6052369762b8c3e58ef1a4bf49f9f639e8f20f0' }, this._reportSubmitted && h("calcite-alert", { key: 'ea78ecf7f186cd9d2642288cd20017fc51945a47', "auto-close": true, class: themeClass + " report-submitted-msg", icon: "check-circle", kind: "success", label: "", onCalciteAlertClose: () => { this._reportSubmitted = false; }, open: true, placement: "top" }, h("div", { key: 'bca0fe4cc41938d401f2209e8e0eeb0ec8eb7eb4', slot: "message" }, this.reportSubmittedMessage ? this.reportSubmittedMessage : this._translations.submitMsg)), this._featureCreationFailedErrorMsg && h("calcite-alert", { key: '3cc3f7823c77997002261e5a44da38b798355078', "auto-close": true, class: themeClass, icon: "x-octagon", kind: "danger", label: "", onCalciteAlertClose: () => { this._featureCreationFailedErrorMsg = ""; }, open: true, placement: "top" }, h("div", { key: 'bfb524575668f85759111f71ed76a62aa4d8ff36', slot: "title" }, this._translations.error), h("div", { key: '25b174bdcf9126a6ea2ee3bf0b0a3d3e1a84d37f', slot: "message" }, this._featureCreationFailedErrorMsg)), this._commentSubmitted && h("calcite-alert", { key: 'f2cf41d7f1a09a8c56a8a70ec9c87685463e0ed3', "auto-close": true, class: 'report-submitted ' + themeClass, icon: "check-circle", kind: "success", label: "", onCalciteAlertClose: () => { this._commentSubmitted = false; }, open: true, placement: "top" }, h("div", { key: '000e66b1b85c954da28eda2cdde44d6a4f441ff8', slot: "message" }, this.commentSubmittedMessage || this._translations.commentSubmittedMsg)), this._addingCommentFailed && h("calcite-alert", { key: 'ec0d3b4ca27690452bb14777e716cf1c100e0ec8', "auto-close": true, class: themeClass, icon: "x-octagon", kind: "danger", label: "", onCalciteAlertClose: () => { this._addingCommentFailed = false; }, open: true, placement: "top" }, h("div", { key: 'dedf6bbf4d250e7108562a9bd05417e71c94dad4', slot: "title" }, this._translations.error), h("div", { key: 'b5c591bcc14feed655fa07e8d87accd281108f09', slot: "message" }, this._translations.addingCommentFailedMsg)), h("div", { key: '301ea807350d9c0a2bf5f45c01e40897bf644dd8' }, h("calcite-shell", { key: '386e94e32d12bf41ae76e9c78ad26a3d00158db6', "content-behind": true }, this._getReporter()))));
|
336
363
|
}
|
337
364
|
//--------------------------------------------------------------------------
|
338
365
|
//
|
@@ -1215,7 +1242,11 @@ const CrowdsourceReporter = class {
|
|
1215
1242
|
*/
|
1216
1243
|
async handleSelectedLayersFilter() {
|
1217
1244
|
if (this._selectedLayer) {
|
1218
|
-
|
1245
|
+
const currentLayerExpressions = this.layerExpressions ? structuredClone(this.layerExpressions.filter(exp => exp.id === this._selectedLayerId)) : [];
|
1246
|
+
if (this._t9nLayerExpressions != null) {
|
1247
|
+
this.handleLayerExpressionsT9n(currentLayerExpressions, this._t9nLayerExpressions);
|
1248
|
+
}
|
1249
|
+
this._currentLayerExpressions = currentLayerExpressions;
|
1219
1250
|
this.setActiveDefinitionExpressions();
|
1220
1251
|
}
|
1221
1252
|
}
|
@@ -1294,12 +1325,31 @@ const CrowdsourceReporter = class {
|
|
1294
1325
|
this._initDefExpressions[fl.id] = fl.definitionExpression;
|
1295
1326
|
});
|
1296
1327
|
}
|
1328
|
+
/**
|
1329
|
+
* Handles updating the layer expressions with the translated strings
|
1330
|
+
* @protected
|
1331
|
+
*/
|
1332
|
+
handleLayerExpressionsT9n(layerExpressions, layerExpressionsT9n) {
|
1333
|
+
layerExpressions?.forEach(layerExpression => {
|
1334
|
+
const t9nLayerExpression = layerExpressionsT9n?.find(t9nLayerExpression => t9nLayerExpression.id === layerExpression.id);
|
1335
|
+
if (t9nLayerExpression != null) {
|
1336
|
+
layerExpression.title = t9nLayerExpression.title;
|
1337
|
+
layerExpression.expressions?.forEach(expression => {
|
1338
|
+
const t9nExpression = t9nLayerExpression.expressions?.find(t9nExpression => t9nExpression.id === expression.id);
|
1339
|
+
if (t9nExpression != null) {
|
1340
|
+
expression.name = t9nExpression.name;
|
1341
|
+
}
|
1342
|
+
});
|
1343
|
+
}
|
1344
|
+
});
|
1345
|
+
}
|
1297
1346
|
static get watchers() { return {
|
1298
1347
|
"isMobile": ["isMobileWatchHandler"],
|
1299
1348
|
"locale": ["localeWatchHandler"],
|
1300
1349
|
"mapView": ["mapViewWatchHandler"],
|
1301
1350
|
"floorLevel": ["floorLevelWatchHandler"],
|
1302
|
-
"showMyReportsOnly": ["showMyReportsOnlyWatchHandler"]
|
1351
|
+
"showMyReportsOnly": ["showMyReportsOnlyWatchHandler"],
|
1352
|
+
"layerExpressions": ["layerExpressionsWatchHandler"]
|
1303
1353
|
}; }
|
1304
1354
|
};
|
1305
1355
|
CrowdsourceReporter.style = CrowdsourceReporterStyle0;
|
@@ -1548,18 +1548,31 @@ const InstantAppsExport = class {
|
|
1548
1548
|
}
|
1549
1549
|
}
|
1550
1550
|
}
|
1551
|
-
convertToImage() {
|
1551
|
+
async convertToImage() {
|
1552
1552
|
const options = { backgroundColor: '#FFF', skipFonts: true };
|
1553
|
-
|
1554
|
-
|
1553
|
+
let data = '';
|
1554
|
+
try {
|
1555
|
+
if (this.selectedFileType === 'JPG') {
|
1556
|
+
data = await toJpeg(this.printEl, options);
|
1557
|
+
}
|
1558
|
+
else {
|
1559
|
+
data = await toPng(this.printEl, options);
|
1560
|
+
}
|
1555
1561
|
}
|
1556
|
-
|
1557
|
-
|
1562
|
+
catch (_a) {
|
1563
|
+
this.logoImage = undefined;
|
1564
|
+
await new Promise(resolve => setTimeout(resolve, 500));
|
1565
|
+
data = await toJpeg(this.printEl, options);
|
1566
|
+
}
|
1567
|
+
finally {
|
1568
|
+
this.handleGetImage(data);
|
1558
1569
|
}
|
1559
1570
|
}
|
1560
1571
|
handleGetImage(dataUrl) {
|
1561
1572
|
var _a;
|
1562
1573
|
this.resetPrintContent();
|
1574
|
+
if (!dataUrl)
|
1575
|
+
return;
|
1563
1576
|
this.dataUrl = dataUrl;
|
1564
1577
|
this.setMapAreaOnClick(false);
|
1565
1578
|
this.showPreview(dataUrl);
|
@@ -106,14 +106,13 @@ const InstantAppsLanguageSwitcher = class {
|
|
106
106
|
if (selectedLanguage !== userLocale)
|
107
107
|
eventData['data'] = t9nData[translatedLanguage];
|
108
108
|
const params = new URLSearchParams(window.location.search);
|
109
|
-
|
110
|
-
|
109
|
+
const locale = this.intl.normalizeMessageBundleLocale(this.selectedLanguage);
|
110
|
+
intl.setLocale(locale);
|
111
|
+
// Set url parameter 'locale' with value
|
112
|
+
const docElLang = this.intl.normalizeMessageBundleLocale(document.documentElement.lang);
|
113
|
+
if (docElLang !== this.selectedLanguage) {
|
111
114
|
params.set('locale', this.selectedLanguage);
|
112
115
|
}
|
113
|
-
else {
|
114
|
-
params.delete('locale');
|
115
|
-
}
|
116
|
-
intl.setLocale(selectedLanguage);
|
117
116
|
if (this.view) {
|
118
117
|
const [WebMap] = await loadModules(['esri/WebMap']);
|
119
118
|
const webmap = (_b = (_a = this.locales.filter(localeItem => localeItem.locale === selectedLanguage)) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.webmap;
|
@@ -50,6 +50,7 @@ const InstantAppsScoreboard = class {
|
|
50
50
|
this.itemLimit = 6;
|
51
51
|
this.autoDockEnabled = true;
|
52
52
|
this.geometry = null;
|
53
|
+
this.queryType = 'layerView';
|
53
54
|
this.state = "loading" /* Scoreboard.Loading */;
|
54
55
|
this.messages = undefined;
|
55
56
|
this.itemIndex = 0;
|
@@ -241,10 +242,10 @@ const InstantAppsScoreboard = class {
|
|
241
242
|
const isLoading = state === "loading" /* Scoreboard.Loading */;
|
242
243
|
const isCalculating = state === "calculating" /* Scoreboard.Calculating */;
|
243
244
|
const isDisabled = state === "disabled" /* Scoreboard.Disabled */;
|
244
|
-
const progress = isLoading || isCalculating || ((_a = this.view) === null || _a === void 0 ? void 0 : _a.updating) ? this.renderProgress() : null;
|
245
|
+
const progress = isLoading || isCalculating || (this.queryType === 'layerView' && ((_a = this.view) === null || _a === void 0 ? void 0 : _a.updating)) ? this.renderProgress() : null;
|
245
246
|
const positionClass = this.getPositionClass;
|
246
247
|
const styleClass = this.getStyleClass;
|
247
|
-
return h(Host, { key: '
|
248
|
+
return h(Host, { key: '5a7e3fdc0753d3f951a71397519ebf07ecd68e03', class: `${positionClass} ${styleClass}` }, isDisabled ? null : [progress, ((_b = this.items) === null || _b === void 0 ? void 0 : _b.length) > 0 ? this.renderBase() : null]);
|
248
249
|
}
|
249
250
|
renderBase() {
|
250
251
|
return (h("div", { key: "instant-apps-scoreboard-base", class: BASE }, this.renderContent()));
|
@@ -362,7 +363,7 @@ const InstantAppsScoreboard = class {
|
|
362
363
|
};
|
363
364
|
const getStatDefinitionQuery = (layerView, statDefinition) => {
|
364
365
|
var _a, _b, _c, _d, _e;
|
365
|
-
const query = layerView.createQuery();
|
366
|
+
const query = this.queryType === 'layer' ? layerView.layer.createQuery() : layerView.createQuery();
|
366
367
|
const outStatistics = [statDefinition];
|
367
368
|
const geometry = this.geometry ? this.geometry : this.view.extent;
|
368
369
|
query.outStatistics = outStatistics;
|
@@ -380,7 +381,7 @@ const InstantAppsScoreboard = class {
|
|
380
381
|
return;
|
381
382
|
const statDefinition = getStatsDefinition(item);
|
382
383
|
const query = getStatDefinitionQuery(layerView, statDefinition);
|
383
|
-
const queryFeaturesRes = layerView.queryFeatures(query);
|
384
|
+
const queryFeaturesRes = this.queryType === 'layer' ? layerView.layer.queryFeatures(query) : layerView.queryFeatures(query);
|
384
385
|
queryFeaturePromises.push(queryFeaturesRes);
|
385
386
|
};
|
386
387
|
};
|
@@ -417,7 +418,10 @@ const InstantAppsScoreboard = class {
|
|
417
418
|
const whenOnceConfig = { once: true, initial: true };
|
418
419
|
const isNotInteractingWatcher = () => {
|
419
420
|
var _a;
|
420
|
-
return (_a = this.reactiveUtils) === null || _a === void 0 ? void 0 : _a.when(() => { var _a; return !((_a = this.view) === null || _a === void 0 ? void 0 : _a.interacting); }, () =>
|
421
|
+
return (_a = this.reactiveUtils) === null || _a === void 0 ? void 0 : _a.when(() => { var _a; return !((_a = this.view) === null || _a === void 0 ? void 0 : _a.interacting); }, () => {
|
422
|
+
if (this.queryType === 'layerView')
|
423
|
+
this.calculateScoreboardItemValues();
|
424
|
+
}, whenOnceConfig);
|
421
425
|
};
|
422
426
|
const stationaryWatcher = () => {
|
423
427
|
var _a;
|
@@ -430,7 +434,10 @@ const InstantAppsScoreboard = class {
|
|
430
434
|
}
|
431
435
|
initViewUpdateWatcher() {
|
432
436
|
return this.reactiveUtils.watch(() => { var _a; return (_a = this.view) === null || _a === void 0 ? void 0 : _a.updating; }, () => {
|
433
|
-
this.reactiveUtils.when(() => { var _a; return !((_a = this.view) === null || _a === void 0 ? void 0 : _a.updating); }, () =>
|
437
|
+
this.reactiveUtils.when(() => { var _a; return !((_a = this.view) === null || _a === void 0 ? void 0 : _a.updating); }, () => {
|
438
|
+
if (this.queryType === 'layerView')
|
439
|
+
this.calculateScoreboardItemValues();
|
440
|
+
}, { once: true, initial: true });
|
434
441
|
}, { initial: true });
|
435
442
|
}
|
436
443
|
watchLayerVisibility() {
|
@@ -33,31 +33,25 @@ let e$a;function has(a){return "function"==typeof e$a[a]?e$a[a]=e$a[a](globalThi
|
|
33
33
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
34
34
|
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
35
35
|
*/
|
36
|
-
function o$8(n){return "Int8Array"===n?.constructor?.name}function u$6(n){return "Uint8Array"===n?.constructor?.name}function e$9(n){return "Uint8ClampedArray"===n?.constructor?.name}function c$6(n){return "Int16Array"===n?.constructor?.name}function i$6(n){return "Uint16Array"===n?.constructor?.name}function a$
|
36
|
+
function o$8(n){return "Int8Array"===n?.constructor?.name}function u$6(n){return "Uint8Array"===n?.constructor?.name}function e$9(n){return "Uint8ClampedArray"===n?.constructor?.name}function c$6(n){return "Int16Array"===n?.constructor?.name}function i$6(n){return "Uint16Array"===n?.constructor?.name}function a$5(n){return "Int32Array"===n?.constructor?.name}function f$5(n){return "Uint32Array"===n?.constructor?.name}function s$6(n){return "Float32Array"===n?.constructor?.name}function m$5(n){return "Float64Array"===n?.constructor?.name}
|
37
37
|
|
38
38
|
/*
|
39
39
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
40
40
|
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
41
41
|
*/
|
42
|
-
function a$
|
42
|
+
function a$4(t){if(!t||"object"!=typeof t||"function"==typeof t)return t;const n=O$2(t);if(null!=n)return n;if(y$4(t))return t.clone();if(m$4(t))return t.map(a$4);if(b$2(t))return t.clone();const e={};for(const r of Object.getOwnPropertyNames(t))e[r]=a$4(t[r]);return e}function y$4(t){return "function"==typeof t.clone}function m$4(t){return "function"==typeof t.map&&"function"==typeof t.forEach}function b$2(t){return "function"==typeof t.notifyChange&&"function"==typeof t.watch}function O$2(t){if(o$8(t)||u$6(t)||e$9(t)||c$6(t)||i$6(t)||a$5(t)||f$5(t)||s$6(t)||m$5(t))return t.slice();if(t instanceof Date)return new Date(t.getTime());if(t instanceof ArrayBuffer){return t.slice(0,t.byteLength)}if(t instanceof Map){const n=new Map;for(const[e,r]of t)n.set(e,a$4(r));return n}if(t instanceof Set){const n=new Set;for(const e of t)n.add(a$4(e));return n}return null}
|
43
43
|
|
44
44
|
/*
|
45
45
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
46
46
|
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
47
47
|
*/
|
48
|
-
function n$7(r,n,t=!1){return f$4(r,n,t)}function t$4(r,n){if(null!=n)return n[r]||u$5(r.split("."),!1,n)}function u$5(r,n,t){let e=t;for(const i of r){if(null==e)return;if(!(i in e)){if(!n)return;e[i]={};}e=e[i];}return e}function f$4(n,t,e){return t?Object.keys(t).reduce(((n,i)=>{let u=n[i],l=t[i];return u===l?n:void 0===u?(n[i]=a$
|
48
|
+
function n$7(r,n,t=!1){return f$4(r,n,t)}function t$4(r,n){if(null!=n)return n[r]||u$5(r.split("."),!1,n)}function u$5(r,n,t){let e=t;for(const i of r){if(null==e)return;if(!(i in e)){if(!n)return;e[i]={};}e=e[i];}return e}function f$4(n,t,e){return t?Object.keys(t).reduce(((n,i)=>{let u=n[i],l=t[i];return u===l?n:void 0===u?(n[i]=a$4(l),n):(Array.isArray(l)||Array.isArray(n)?(u=u?Array.isArray(u)?n[i]=u.slice():n[i]=[u]:n[i]=[],l&&(Array.isArray(l)||(l=[l]),e?l.forEach((r=>{u.includes(r)||u.push(r);})):n[i]=l.slice())):l&&"object"==typeof l?n[i]=f$4(u,l,e):n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[i]=l),n)}),n||{}):n}
|
49
49
|
|
50
50
|
/*
|
51
51
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
52
52
|
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
53
53
|
*/
|
54
|
-
const
|
55
|
-
|
56
|
-
/*
|
57
|
-
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
58
|
-
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
59
|
-
*/
|
60
|
-
const s$5={apiKey:void 0,applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(n$7(s$5,globalThis.esriConfig,!0),delete s$5.has),!s$5.assetsPath){{const e="4.31.0";s$5.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${a$4}/assets`;}s$5.defaultAssetsPath=s$5.assetsPath;}
|
54
|
+
const s$5={apiKey:void 0,applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(n$7(s$5,globalThis.esriConfig,!0),delete s$5.has),!s$5.assetsPath){{const e="4.31";s$5.assetsPath=`https://js.arcgis.com/${e}/@arcgis/core/assets`;}s$5.defaultAssetsPath=s$5.assetsPath;}
|
61
55
|
|
62
56
|
/*
|
63
57
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
@@ -81,7 +75,7 @@ function s$4(s,e){return s.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,((s,r)
|
|
81
75
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
82
76
|
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
83
77
|
*/
|
84
|
-
class s$3 extends e$8{constructor(e,t,r){super(e,t,r);}toJSON(){if(null!=this.details)try{return {name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,((t,r)=>{if(r&&"object"==typeof r&&"function"==typeof r.toJSON)return r;try{return a$
|
78
|
+
class s$3 extends e$8{constructor(e,t,r){super(e,t,r);}toJSON(){if(null!=this.details)try{return {name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,((t,r)=>{if(r&&"object"==typeof r&&"function"==typeof r.toJSON)return r;try{return a$4(r)}catch(s){return "[object]"}})))}}catch(r){throw n$6.getLogger("esri.core.Error").error(r),r}return {name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new s$3(e.name,e.message,e.details)}}s$3.prototype.type="error";
|
85
79
|
|
86
80
|
/*
|
87
81
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
@@ -390,11 +384,12 @@ class InstantAppsTimeFilterViewModel {
|
|
390
384
|
}
|
391
385
|
}
|
392
386
|
applyFeatureEffect(layerView, timeExtent, filterMode) {
|
387
|
+
var _a;
|
393
388
|
if (!layerView)
|
394
389
|
return;
|
395
390
|
if (layerView.filter)
|
396
391
|
layerView.set('filter', null);
|
397
|
-
if (!layerView.featureEffect || filterMode) {
|
392
|
+
if (!(layerView === null || layerView === void 0 ? void 0 : layerView.featureEffect) || !((_a = layerView === null || layerView === void 0 ? void 0 : layerView.featureEffect) === null || _a === void 0 ? void 0 : _a.filter) || filterMode) {
|
398
393
|
this.handleUpdatedFeatureEffect(layerView, timeExtent);
|
399
394
|
return;
|
400
395
|
}
|