@esri/solutions-components 0.10.14 → 0.10.16
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/calcite-flow_6.cjs.entry.js +3 -4
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +4 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/map-select-tools_3.cjs.entry.js +11 -1
- package/dist/cjs/public-notification.cjs.entry.js +4 -2
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/collection/components/create-feature/create-feature.js +3 -4
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +38 -2
- package/dist/collection/components/map-select-tools/map-select-tools.js +47 -1
- package/dist/collection/components/public-notification/public-notification.js +40 -2
- package/dist/collection/demos/crowdsource-reporter.html +63 -113
- package/dist/components/create-feature2.js +3 -4
- package/dist/components/crowdsource-reporter.js +6 -2
- package/dist/components/map-select-tools2.js +13 -1
- package/dist/components/public-notification.js +6 -2
- package/dist/esm/calcite-flow_6.entry.js +3 -4
- package/dist/esm/crowdsource-reporter.entry.js +4 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/map-select-tools_3.entry.js +11 -1
- package/dist/esm/public-notification.entry.js +4 -2
- package/dist/esm/solutions-components.js +1 -1
- package/dist/solutions-components/demos/crowdsource-reporter.html +63 -113
- package/dist/solutions-components/p-2737e44e.entry.js +17 -0
- package/dist/solutions-components/p-5907d17d.entry.js +6 -0
- package/dist/solutions-components/p-c5e05351.entry.js +6 -0
- package/dist/solutions-components/p-f0a23f46.entry.js +6 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +8 -0
- package/dist/types/components/map-select-tools/map-select-tools.d.ts +8 -0
- package/dist/types/components/public-notification/public-notification.d.ts +8 -0
- package/dist/types/components.d.ts +48 -0
- package/package.json +1 -1
- package/dist/solutions-components/p-31f7dd8e.entry.js +0 -6
- package/dist/solutions-components/p-40e305b4.entry.js +0 -17
- package/dist/solutions-components/p-4d44410b.entry.js +0 -6
- package/dist/solutions-components/p-abd3e579.entry.js +0 -6
@@ -27,7 +27,9 @@ const MapSelectTools = class {
|
|
27
27
|
this.customLabelEnabled = undefined;
|
28
28
|
this.enabledLayerIds = [];
|
29
29
|
this.enableLayerFeatures = true;
|
30
|
+
this.enableLayerFeaturesOnLoad = false;
|
30
31
|
this.enableSearchDistance = true;
|
32
|
+
this.enableSearchDistanceOnLoad = false;
|
31
33
|
this.enableSketchTools = true;
|
32
34
|
this.defaultBufferDistance = undefined;
|
33
35
|
this.defaultBufferUnit = undefined;
|
@@ -286,12 +288,16 @@ const MapSelectTools = class {
|
|
286
288
|
render() {
|
287
289
|
const mapToolsClass = this.enableSketchTools ? "" : "display-none";
|
288
290
|
const mapToolsContainerClass = this.enableSketchTools ? "padding-top-1" : "";
|
289
|
-
return (h(Host, { key: '
|
291
|
+
return (h(Host, { key: '14b27786176d25c3d36df5fa71a7d15c84febf6a' }, this._getMapLayerPicker(), h("div", { key: 'f0ec5ecbcc252ac74e19e1c76ca9a8fcf23d7375', class: "border-bottom" }), h("div", { key: 'a396efbe43a9b23af12a46bfb6bdc422be700c51', class: "padding-top-sides-1" }, h("div", { key: '3ce18d6baeb866edccb3b3f5461329303d1a7340', class: "search-widget", ref: (el) => { this._searchElement = el; } }), h("div", { key: 'b7acabfd7addac9184b488f918fadb09099074d6', class: mapToolsContainerClass }, h("map-draw-tools", { key: '6eda64fb64bbac651d8bbaada867b7112edb30e1', active: true, class: mapToolsClass, editGraphicsEnabled: !this._useLayerFeaturesEnabled, graphics: this._graphics, mapView: this.mapView, onSketchGraphicsChange: (evt) => void this._sketchGraphicsChanged(evt), pointSymbol: this.sketchPointSymbol, polygonSymbol: this.sketchPolygonSymbol, polylineSymbol: this.sketchLineSymbol, ref: (el) => { this._drawTools = el; } })), this.enableSearchDistance ? this._getBufferOptions() : undefined, this.enableLayerFeatures ? this._getUseLayerFeaturesOptions() : undefined, this._getNumSelected()), h("div", { key: 'fe122716ac0c9df8fb84115aa2e2ac994766b360', class: "border-bottom" }), this._getNameInput()));
|
290
292
|
}
|
291
293
|
/**
|
292
294
|
* Renders the buffer tools component.
|
293
295
|
*/
|
294
296
|
_getBufferOptions() {
|
297
|
+
if (this.enableSearchDistanceOnLoad) {
|
298
|
+
this._searchDistanceEnabled = true;
|
299
|
+
this.enableSearchDistanceOnLoad = false;
|
300
|
+
}
|
295
301
|
const showBufferToolsClass = this._searchDistanceEnabled ? "search-distance" : "div-not-visible";
|
296
302
|
const bufferDistance = typeof this.selectionSet?.distance === "number" ? this.selectionSet.distance : this.defaultBufferDistance;
|
297
303
|
return (h("div", null, h("div", { class: "padding-top-1 display-flex" }, h("calcite-label", { class: "label-margin-0 w-100", layout: "inline-space-between" }, h("div", { class: "tooltip-container" }, this._translations.searchDistance, h("calcite-icon", { class: "padding-start-1-2 icon", flipRtl: !(this.locale?.toLowerCase() === "he"), icon: "question", id: "search-distance-icon", scale: "s" }))), h("calcite-popover", { closable: true, label: "", referenceElement: "search-distance-icon" }, h("span", { class: "tooltip-message" }, this._translations.useSearchDistanceTootip)), h("calcite-switch", { checked: this._searchDistanceEnabled, onCalciteSwitchChange: () => this._searchDistanceEnabled = !this._searchDistanceEnabled })), h("div", { class: showBufferToolsClass }, h("buffer-tools", { disabled: !this._searchDistanceEnabled, distance: bufferDistance, geometries: this.geometries, onBufferComplete: (evt) => void this._bufferComplete(evt), ref: (el) => this._bufferTools = el, unit: this.selectionSet?.unit || this.defaultBufferUnit }))));
|
@@ -300,6 +306,10 @@ const MapSelectTools = class {
|
|
300
306
|
* Renders the map layer picker component.
|
301
307
|
*/
|
302
308
|
_getUseLayerFeaturesOptions() {
|
309
|
+
if (this.enableLayerFeaturesOnLoad) {
|
310
|
+
this._useLayerFeaturesEnabled = true;
|
311
|
+
this.enableLayerFeaturesOnLoad = false;
|
312
|
+
}
|
303
313
|
const useLayerFeaturesClass = this._useLayerFeaturesEnabled ? "div-visible" : "div-not-visible";
|
304
314
|
return (h("div", null, h("div", { class: "padding-top-1 display-flex" }, h("calcite-label", { class: "label-margin-0 w-100", layout: "inline-space-between" }, h("div", { class: "tooltip-container" }, this._translations.useLayerFeatures, h("calcite-icon", { class: "padding-start-1-2 icon", flipRtl: !(this.locale?.toLowerCase() === "he"), icon: "question", id: "use-layer-features-icon", scale: "s" }))), h("calcite-popover", { closable: true, label: "", referenceElement: "use-layer-features-icon" }, h("span", { class: "tooltip-message" }, this._translations.useLayerFeaturesTooltip)), h("calcite-switch", { checked: this._useLayerFeaturesEnabled, onCalciteSwitchChange: () => { this._useLayerFeaturesEnabledChanged(); } })), h("div", { class: useLayerFeaturesClass + " padding-top-1" }, h("map-layer-picker", { enabledLayerIds: this.selectionLayerIds, mapView: this.mapView, onLayerSelectionChange: (evt) => { void this._layerSelectionChange(evt); }, selectedIds: this.layerViews.map(l => l.layer.id), showTables: false }))));
|
305
315
|
}
|
@@ -31,7 +31,9 @@ const PublicNotification = class {
|
|
31
31
|
this.defaultExportTitle = "";
|
32
32
|
this.defaultNumLabelsPerPage = 6;
|
33
33
|
this.enableLayerFeatures = true;
|
34
|
+
this.enableLayerFeaturesOnLoad = true;
|
34
35
|
this.enableSearchDistance = true;
|
36
|
+
this.enableSearchDistanceOnLoad = true;
|
35
37
|
this.enableSketchTools = true;
|
36
38
|
this.featureEffect = undefined;
|
37
39
|
this.featureHighlightEnabled = undefined;
|
@@ -252,7 +254,7 @@ const PublicNotification = class {
|
|
252
254
|
*/
|
253
255
|
render() {
|
254
256
|
const headerSlot = this._isMobile ? "footer" : "header";
|
255
|
-
return (h(Host, { key: '
|
257
|
+
return (h(Host, { key: '3ba355821879dc79890507bca0adcd1e2a2e32af' }, h("calcite-shell", { key: 'b6f08e69cc7581f1273297bfba743944d18a7054' }, h("calcite-action-bar", { key: '2ed5932e3506153451a8aa6ba9aa531524ef7c82', class: "border-bottom-1 action-bar-size", "expand-disabled": true, layout: "horizontal", slot: headerSlot }, this._getActionGroup("list-check", EPageType.LIST, this._translations.myLists), this.showRefineSelection ? this._getActionGroup("test-data", EPageType.REFINE, this._translations.refineSelection) : null, this._getActionGroup("export", EPageType.EXPORT, this._translations.export)), this._getPage(this._pageType))));
|
256
258
|
}
|
257
259
|
/**
|
258
260
|
* StencilJS: Called once just after the component is first loaded.
|
@@ -589,7 +591,7 @@ const PublicNotification = class {
|
|
589
591
|
*/
|
590
592
|
_getSelectPage() {
|
591
593
|
const noticeText = this._translations.selectSearchTip;
|
592
|
-
return (h("calcite-panel", null, this._getLabel(this._translations.stepTwoFull, true), this._getNotice(noticeText, "padding-1", "word-wrap-anywhere"), h("div", null, h("map-select-tools", { bufferColor: this.bufferColor, bufferOutlineColor: this.bufferOutlineColor, class: "font-bold", customLabelEnabled: this.customLabelEnabled, defaultBufferDistance: this.defaultBufferDistance, defaultBufferUnit: this.defaultBufferUnit, enableLayerFeatures: this.enableLayerFeatures, enableSearchDistance: this.enableSearchDistance, enableSketchTools: this.enableSketchTools, enabledLayerIds: this.addresseeLayerIds, isUpdate: !!this._activeSelection, locale: this.locale, mapView: this.mapView, noResultText: this.noResultText, onSelectionSetChange: (evt) => this._updateForSelection(evt), ref: (el) => { this._selectTools = el; }, searchConfiguration: this._searchConfiguration, selectionLayerIds: this.selectionLayerIds, selectionSet: this._activeSelection, sketchLineSymbol: this.sketchLineSymbol, sketchPointSymbol: this.sketchPointSymbol, sketchPolygonSymbol: this.sketchPolygonSymbol })), this._getPageNavButtons(this._translations.done, this._numSelected === 0, () => { void this._saveSelection(); }, this._translations.cancel, false, () => { void this._home(); })));
|
594
|
+
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(); })));
|
593
595
|
}
|
594
596
|
/**
|
595
597
|
* Create the main download page that has the shared aspects of both PDF and CSV
|