@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
@@ -47,12 +47,12 @@ const MapSelectTools = class {
|
|
47
47
|
this.sketchLineSymbol = undefined;
|
48
48
|
this.sketchPointSymbol = undefined;
|
49
49
|
this.sketchPolygonSymbol = undefined;
|
50
|
+
this.searchDistanceEnabled = false;
|
51
|
+
this.useLayerFeaturesEnabled = false;
|
50
52
|
this._numSelected = 0;
|
51
|
-
this._searchDistanceEnabled = false;
|
52
53
|
this._searchTerm = undefined;
|
53
54
|
this._selectionLoading = false;
|
54
55
|
this._translations = undefined;
|
55
|
-
this._useLayerFeaturesEnabled = false;
|
56
56
|
}
|
57
57
|
get el() { return getElement(this); }
|
58
58
|
//--------------------------------------------------------------------------
|
@@ -241,9 +241,9 @@ const MapSelectTools = class {
|
|
241
241
|
graphics: this._graphics,
|
242
242
|
selectLayers: this.layerViews,
|
243
243
|
skipGeomOIDs: this._skipGeomOIDs,
|
244
|
-
searchDistanceEnabled: this.
|
244
|
+
searchDistanceEnabled: this.searchDistanceEnabled,
|
245
245
|
workflowType: this._workflowType,
|
246
|
-
useLayerFeaturesEnabled: this.
|
246
|
+
useLayerFeaturesEnabled: this.useLayerFeaturesEnabled,
|
247
247
|
sketchGraphic: this._sketchGraphic
|
248
248
|
};
|
249
249
|
}
|
@@ -301,30 +301,30 @@ const MapSelectTools = class {
|
|
301
301
|
render() {
|
302
302
|
const mapToolsClass = this.enableSketchTools ? "" : "display-none";
|
303
303
|
const mapToolsContainerClass = this.enableSketchTools ? "padding-top-1" : "";
|
304
|
-
return (h(Host, { key: '
|
304
|
+
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()));
|
305
305
|
}
|
306
306
|
/**
|
307
307
|
* Renders the buffer tools component.
|
308
308
|
*/
|
309
309
|
_getBufferOptions() {
|
310
310
|
if (this.enableSearchDistanceOnLoad) {
|
311
|
-
this.
|
311
|
+
this.searchDistanceEnabled = true;
|
312
312
|
this.enableSearchDistanceOnLoad = false;
|
313
313
|
}
|
314
|
-
const showBufferToolsClass = this.
|
314
|
+
const showBufferToolsClass = this.searchDistanceEnabled ? "search-distance" : "div-not-visible";
|
315
315
|
const bufferDistance = typeof this.selectionSet?.distance === "number" ? this.selectionSet.distance : this.defaultBufferDistance;
|
316
|
-
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.
|
316
|
+
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 }))));
|
317
317
|
}
|
318
318
|
/**
|
319
319
|
* Renders the map layer picker component.
|
320
320
|
*/
|
321
321
|
_getUseLayerFeaturesOptions() {
|
322
322
|
if (this.enableLayerFeaturesOnLoad) {
|
323
|
-
this.
|
323
|
+
this.useLayerFeaturesEnabled = true;
|
324
324
|
this.enableLayerFeaturesOnLoad = false;
|
325
325
|
}
|
326
|
-
const useLayerFeaturesClass = this.
|
327
|
-
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.
|
326
|
+
const useLayerFeaturesClass = this.useLayerFeaturesEnabled ? "div-visible" : "div-not-visible";
|
327
|
+
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 }))));
|
328
328
|
}
|
329
329
|
/**
|
330
330
|
* Renders the number of selected features
|
@@ -405,8 +405,8 @@ const MapSelectTools = class {
|
|
405
405
|
this._selectLayers = this.selectionSet.selectLayers;
|
406
406
|
this._selectedIds = this.selectionSet.selectedIds;
|
407
407
|
this._skipGeomOIDs = this.selectionSet.skipGeomOIDs;
|
408
|
-
this.
|
409
|
-
this.
|
408
|
+
this.searchDistanceEnabled = this.selectionSet.searchDistanceEnabled;
|
409
|
+
this.useLayerFeaturesEnabled = this.selectionSet.useLayerFeaturesEnabled;
|
410
410
|
this._distance = this.selectionSet.searchDistanceEnabled ? this.selectionSet.distance : 0;
|
411
411
|
this._unit = this.selectionSet.unit;
|
412
412
|
this._workflowType = this.selectionSet.workflowType;
|
@@ -425,7 +425,7 @@ const MapSelectTools = class {
|
|
425
425
|
});
|
426
426
|
});
|
427
427
|
this._selectionLabel = this.selectionSet?.label;
|
428
|
-
if (!this.
|
428
|
+
if (!this.useLayerFeaturesEnabled) {
|
429
429
|
await this._drawTools?.updateGraphics();
|
430
430
|
}
|
431
431
|
await goToSelection(this.selectionSet.selectedIds, this.selectionSet.layerView, this.mapView, false);
|
@@ -631,13 +631,13 @@ const MapSelectTools = class {
|
|
631
631
|
if (!forceUpdate) {
|
632
632
|
this._sketchGraphic = graphics[0];
|
633
633
|
}
|
634
|
-
this._workflowType = this.
|
634
|
+
this._workflowType = this.useLayerFeaturesEnabled ? EWorkflowType.SELECT : EWorkflowType.SKETCH;
|
635
635
|
if (this._workflowType === EWorkflowType.SKETCH) {
|
636
636
|
await this._drawTools.updateGraphics();
|
637
637
|
}
|
638
638
|
await this._updateLabel();
|
639
639
|
this._clearSearchWidget();
|
640
|
-
if (this.
|
640
|
+
if (this.useLayerFeaturesEnabled && !forceUpdate) {
|
641
641
|
// Will only ever be a single graphic
|
642
642
|
const geometries = Array.isArray(graphics) ? graphics.map(g => g.geometry) : this.geometries;
|
643
643
|
await this._selectLayerFeatures(geometries[0]);
|
@@ -951,7 +951,7 @@ const MapSelectTools = class {
|
|
951
951
|
* @protected
|
952
952
|
*/
|
953
953
|
_useLayerFeaturesEnabledChanged() {
|
954
|
-
this.
|
954
|
+
this.useLayerFeaturesEnabled = !this.useLayerFeaturesEnabled;
|
955
955
|
if (this._sketchGraphic) {
|
956
956
|
void this._sketchGraphicsChanged({
|
957
957
|
detail: {
|
@@ -600,7 +600,7 @@ const PublicNotification = class {
|
|
600
600
|
*/
|
601
601
|
_getSelectPage() {
|
602
602
|
const noticeText = this._translations.selectSearchTip;
|
603
|
-
return (h("calcite-panel", null, this._getLabel(this._translations.stepTwoFull, true), this._getNotice(noticeText, "padding-1", "word-wrap-anywhere"), h("div", null, h("map-select-tools", { bufferColor: this.bufferColor, bufferOutlineColor: this.bufferOutlineColor, class: "font-bold", customLabelEnabled: this.customLabelEnabled, defaultBufferDistance: this.defaultBufferDistance, defaultBufferUnit: this.defaultBufferUnit, enableLayerFeatures: this.enableLayerFeatures, 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(); })));
|
603
|
+
return (h("calcite-panel", null, this._getLabel(this._translations.stepTwoFull, true), this._getNotice(noticeText, "padding-1", "word-wrap-anywhere"), h("div", null, h("map-select-tools", { bufferColor: this.bufferColor, bufferOutlineColor: this.bufferOutlineColor, class: "font-bold", customLabelEnabled: this.customLabelEnabled, defaultBufferDistance: this.defaultBufferDistance, defaultBufferUnit: this.defaultBufferUnit, enableLayerFeatures: this.enableLayerFeatures, 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(); })));
|
604
604
|
}
|
605
605
|
/**
|
606
606
|
* Create the main download page that has the shared aspects of both PDF and CSV
|