@esri/solutions-components 0.8.35 → 0.8.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist/cjs/basemap-gallery_7.cjs.entry.js +8 -0
  2. package/dist/cjs/crowdsource-manager.cjs.entry.js +15 -6
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/map-select-tools_3.cjs.entry.js +6 -4
  5. package/dist/cjs/public-notification.cjs.entry.js +6 -5
  6. package/dist/cjs/solutions-components.cjs.js +1 -1
  7. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +15 -6
  8. package/dist/collection/components/floor-filter/floor-filter.js +8 -0
  9. package/dist/collection/components/map-select-tools/map-select-tools.js +21 -3
  10. package/dist/collection/components/public-notification/public-notification.js +23 -5
  11. package/dist/collection/components/refine-selection/refine-selection.js +19 -1
  12. package/dist/components/crowdsource-manager.js +15 -6
  13. package/dist/components/floor-filter2.js +8 -0
  14. package/dist/components/map-select-tools2.js +5 -3
  15. package/dist/components/public-notification.js +7 -5
  16. package/dist/components/refine-selection2.js +3 -1
  17. package/dist/esm/basemap-gallery_7.entry.js +8 -0
  18. package/dist/esm/crowdsource-manager.entry.js +15 -6
  19. package/dist/esm/loader.js +1 -1
  20. package/dist/esm/map-select-tools_3.entry.js +6 -4
  21. package/dist/esm/public-notification.entry.js +6 -5
  22. package/dist/esm/solutions-components.js +1 -1
  23. package/dist/solutions-components/p-9c05337d.entry.js +6 -0
  24. package/dist/solutions-components/p-ab2c8a60.entry.js +6 -0
  25. package/dist/solutions-components/p-c1222f6b.entry.js +6 -0
  26. package/dist/solutions-components/p-c8233fcd.entry.js +6 -0
  27. package/dist/solutions-components/solutions-components.esm.js +1 -1
  28. package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +4 -0
  29. package/dist/types/components/floor-filter/floor-filter.d.ts +4 -0
  30. package/dist/types/components/map-select-tools/map-select-tools.d.ts +4 -0
  31. package/dist/types/components/public-notification/public-notification.d.ts +4 -0
  32. package/dist/types/components/refine-selection/refine-selection.d.ts +4 -0
  33. package/dist/types/components.d.ts +24 -0
  34. package/package.json +1 -1
  35. package/dist/solutions-components/p-061da95a.entry.js +0 -6
  36. package/dist/solutions-components/p-6e260ca3.entry.js +0 -6
  37. package/dist/solutions-components/p-bda54b12.entry.js +0 -6
  38. package/dist/solutions-components/p-c91b2153.entry.js +0 -6
@@ -32,6 +32,10 @@ const CrowdsourceManager = class {
32
32
  * MapView.when is not fired when mapView is not currently visible
33
33
  */
34
34
  this._defaultLevelHonored = false;
35
+ /**
36
+ * boolean: When true hideMapOnLoad was honored for the current map
37
+ */
38
+ this._hideMapOnLoadHonored = false;
35
39
  /**
36
40
  * boolean: When true the map view will be set after render due to popup obstructing the view
37
41
  * MapView.when is not fired when mapView is not currently visible
@@ -73,10 +77,10 @@ const CrowdsourceManager = class {
73
77
  this.theme = "light";
74
78
  this.zoomAndScrollToSelected = false;
75
79
  this.zoomToScale = undefined;
76
- this._expandPopup = this.hideMapOnLoad;
80
+ this._expandPopup = false;
77
81
  this._hideFooter = false;
78
82
  this._hideTable = false;
79
- this._isMobile = undefined;
83
+ this._isMobile = false;
80
84
  this._translations = undefined;
81
85
  this._layer = undefined;
82
86
  this._layoutMode = ELayoutMode.GRID;
@@ -101,8 +105,8 @@ const CrowdsourceManager = class {
101
105
  * When true the map will be hidden on load
102
106
  */
103
107
  hideMapOnLoadWatchHandler() {
104
- this.showHideMapPopupAndTable(this.hideMapOnLoad);
105
- this._expandPopup = this.hideMapOnLoad;
108
+ this.showHideMapPopupAndTable(this.hideMapOnLoad && !this._isMobile);
109
+ this._expandPopup = this.hideMapOnLoad && !this._isMobile;
106
110
  }
107
111
  /**
108
112
  * When true the map will be hidden on load
@@ -173,7 +177,8 @@ const CrowdsourceManager = class {
173
177
  * Update the state expandPopup when mapInfoChange event occurs
174
178
  */
175
179
  async mapInfoChange() {
176
- this._expandPopup = this.hideMapOnLoad;
180
+ this._expandPopup = this.hideMapOnLoad && !this._isMobile;
181
+ this._hideMapOnLoadHonored = false;
177
182
  }
178
183
  //--------------------------------------------------------------------------
179
184
  //
@@ -195,7 +200,7 @@ const CrowdsourceManager = class {
195
200
  render() {
196
201
  // only avoid border when we have a header color that is not white
197
202
  const borderClass = this.popupHeaderColor && this.popupHeaderColor !== "#FFFFFF" ? "border-width-0" : "";
198
- return (h(Host, { key: '9624c9a65dfde0984d1abdc8ed78f709d58874f3' }, h("calcite-shell", { key: '0b54737e19b7ab1b17a1841b7b83267515a5de51', class: "position-relative" }, h("calcite-panel", { key: 'aea71b81bd854548f921920cb6dc259d8441a2b2', class: `width-full height-full ${borderClass}` }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter())));
203
+ return (h(Host, { key: '09154a91e9c1ca9ee6fffcc9d15f6488d1572429' }, h("calcite-shell", { key: '78268044775861d16a557d7e95678614c3be90c8', class: "position-relative" }, h("calcite-panel", { key: '2efe00d79d9c939400bc13558e8ad89a06ae68ab', class: `width-full height-full ${borderClass}` }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter())));
199
204
  }
200
205
  /**
201
206
  * Called after each render
@@ -391,6 +396,7 @@ const CrowdsourceManager = class {
391
396
  */
392
397
  _togglePopup() {
393
398
  this._expandPopup = !this._expandPopup;
399
+ this._hideMapOnLoadHonored = true;
394
400
  }
395
401
  /**
396
402
  * Get the card node
@@ -439,6 +445,9 @@ const CrowdsourceManager = class {
439
445
  if (forceOpen) {
440
446
  this._panelOpen = true;
441
447
  }
448
+ if ((this.hideMapOnLoad && !this._hideMapOnLoadHonored) || this._isMobile) {
449
+ this.hideMapOnLoadWatchHandler();
450
+ }
442
451
  }
443
452
  /**
444
453
  * Open/Close the appropriate panel.