@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.
Files changed (36) hide show
  1. package/dist/cjs/calcite-flow_6.cjs.entry.js +3 -4
  2. package/dist/cjs/crowdsource-reporter.cjs.entry.js +4 -2
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/map-select-tools_3.cjs.entry.js +11 -1
  5. package/dist/cjs/public-notification.cjs.entry.js +4 -2
  6. package/dist/cjs/solutions-components.cjs.js +1 -1
  7. package/dist/collection/components/create-feature/create-feature.js +3 -4
  8. package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +38 -2
  9. package/dist/collection/components/map-select-tools/map-select-tools.js +47 -1
  10. package/dist/collection/components/public-notification/public-notification.js +40 -2
  11. package/dist/collection/demos/crowdsource-reporter.html +63 -113
  12. package/dist/components/create-feature2.js +3 -4
  13. package/dist/components/crowdsource-reporter.js +6 -2
  14. package/dist/components/map-select-tools2.js +13 -1
  15. package/dist/components/public-notification.js +6 -2
  16. package/dist/esm/calcite-flow_6.entry.js +3 -4
  17. package/dist/esm/crowdsource-reporter.entry.js +4 -2
  18. package/dist/esm/loader.js +1 -1
  19. package/dist/esm/map-select-tools_3.entry.js +11 -1
  20. package/dist/esm/public-notification.entry.js +4 -2
  21. package/dist/esm/solutions-components.js +1 -1
  22. package/dist/solutions-components/demos/crowdsource-reporter.html +63 -113
  23. package/dist/solutions-components/p-2737e44e.entry.js +17 -0
  24. package/dist/solutions-components/p-5907d17d.entry.js +6 -0
  25. package/dist/solutions-components/p-c5e05351.entry.js +6 -0
  26. package/dist/solutions-components/p-f0a23f46.entry.js +6 -0
  27. package/dist/solutions-components/solutions-components.esm.js +1 -1
  28. package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +8 -0
  29. package/dist/types/components/map-select-tools/map-select-tools.d.ts +8 -0
  30. package/dist/types/components/public-notification/public-notification.d.ts +8 -0
  31. package/dist/types/components.d.ts +48 -0
  32. package/package.json +1 -1
  33. package/dist/solutions-components/p-31f7dd8e.entry.js +0 -6
  34. package/dist/solutions-components/p-40e305b4.entry.js +0 -17
  35. package/dist/solutions-components/p-4d44410b.entry.js +0 -6
  36. package/dist/solutions-components/p-abd3e579.entry.js +0 -6
@@ -31,7 +31,9 @@ const MapSelectTools = class {
31
31
  this.customLabelEnabled = undefined;
32
32
  this.enabledLayerIds = [];
33
33
  this.enableLayerFeatures = true;
34
+ this.enableLayerFeaturesOnLoad = false;
34
35
  this.enableSearchDistance = true;
36
+ this.enableSearchDistanceOnLoad = false;
35
37
  this.enableSketchTools = true;
36
38
  this.defaultBufferDistance = undefined;
37
39
  this.defaultBufferUnit = undefined;
@@ -290,12 +292,16 @@ const MapSelectTools = class {
290
292
  render() {
291
293
  const mapToolsClass = this.enableSketchTools ? "" : "display-none";
292
294
  const mapToolsContainerClass = this.enableSketchTools ? "padding-top-1" : "";
293
- return (index.h(index.Host, { key: '2643969b71b41cad30ade0900eb391abe054a2ff' }, this._getMapLayerPicker(), index.h("div", { key: 'ed4f34f2f6e1b99c5b133ec6097becd13539ebe6', class: "border-bottom" }), index.h("div", { key: '5aca91cf4f34d343716d68c4f68f88ce98ba0e07', class: "padding-top-sides-1" }, index.h("div", { key: '999f1090ea43e2c71ef8f957ed3dab9c11e9233a', class: "search-widget", ref: (el) => { this._searchElement = el; } }), index.h("div", { key: 'e92f91fdaba7ec3975fd099c835d013a61af240c', class: mapToolsContainerClass }, index.h("map-draw-tools", { key: 'a330983f29bb8c866af82ea50970b779a0a04519', 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: '022214b69e6c57324c1bc8ffa528adf618f8fe60', class: "border-bottom" }), this._getNameInput()));
295
+ return (index.h(index.Host, { key: '14b27786176d25c3d36df5fa71a7d15c84febf6a' }, this._getMapLayerPicker(), index.h("div", { key: 'f0ec5ecbcc252ac74e19e1c76ca9a8fcf23d7375', class: "border-bottom" }), index.h("div", { key: 'a396efbe43a9b23af12a46bfb6bdc422be700c51', class: "padding-top-sides-1" }, index.h("div", { key: '3ce18d6baeb866edccb3b3f5461329303d1a7340', class: "search-widget", ref: (el) => { this._searchElement = el; } }), index.h("div", { key: 'b7acabfd7addac9184b488f918fadb09099074d6', class: mapToolsContainerClass }, index.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()), index.h("div", { key: 'fe122716ac0c9df8fb84115aa2e2ac994766b360', class: "border-bottom" }), this._getNameInput()));
294
296
  }
295
297
  /**
296
298
  * Renders the buffer tools component.
297
299
  */
298
300
  _getBufferOptions() {
301
+ if (this.enableSearchDistanceOnLoad) {
302
+ this._searchDistanceEnabled = true;
303
+ this.enableSearchDistanceOnLoad = false;
304
+ }
299
305
  const showBufferToolsClass = this._searchDistanceEnabled ? "search-distance" : "div-not-visible";
300
306
  const bufferDistance = typeof this.selectionSet?.distance === "number" ? this.selectionSet.distance : this.defaultBufferDistance;
301
307
  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 }))));
@@ -304,6 +310,10 @@ const MapSelectTools = class {
304
310
  * Renders the map layer picker component.
305
311
  */
306
312
  _getUseLayerFeaturesOptions() {
313
+ if (this.enableLayerFeaturesOnLoad) {
314
+ this._useLayerFeaturesEnabled = true;
315
+ this.enableLayerFeaturesOnLoad = false;
316
+ }
307
317
  const useLayerFeaturesClass = this._useLayerFeaturesEnabled ? "div-visible" : "div-not-visible";
308
318
  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 }))));
309
319
  }
@@ -35,7 +35,9 @@ const PublicNotification = class {
35
35
  this.defaultExportTitle = "";
36
36
  this.defaultNumLabelsPerPage = 6;
37
37
  this.enableLayerFeatures = true;
38
+ this.enableLayerFeaturesOnLoad = true;
38
39
  this.enableSearchDistance = true;
40
+ this.enableSearchDistanceOnLoad = true;
39
41
  this.enableSketchTools = true;
40
42
  this.featureEffect = undefined;
41
43
  this.featureHighlightEnabled = undefined;
@@ -256,7 +258,7 @@ const PublicNotification = class {
256
258
  */
257
259
  render() {
258
260
  const headerSlot = this._isMobile ? "footer" : "header";
259
- return (index.h(index.Host, { key: '6566efb322c1eebdae473c81dd897e67d287074e' }, index.h("calcite-shell", { key: 'a367e97f0eaec3c8cba2d02ddf27c45b7385839b' }, index.h("calcite-action-bar", { key: '9fa26481d990cfac05be11394e95b386038f6398', 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))));
261
+ return (index.h(index.Host, { key: '3ba355821879dc79890507bca0adcd1e2a2e32af' }, index.h("calcite-shell", { key: 'b6f08e69cc7581f1273297bfba743944d18a7054' }, index.h("calcite-action-bar", { key: '2ed5932e3506153451a8aa6ba9aa531524ef7c82', 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))));
260
262
  }
261
263
  /**
262
264
  * StencilJS: Called once just after the component is first loaded.
@@ -593,7 +595,7 @@ const PublicNotification = class {
593
595
  */
594
596
  _getSelectPage() {
595
597
  const noticeText = this._translations.selectSearchTip;
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(); })));
598
+ 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, 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(); })));
597
599
  }
598
600
  /**
599
601
  * Create the main download page that has the shared aspects of both PDF and CSV