@esri/solutions-components 0.8.35 → 0.8.37

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -170,6 +170,14 @@ const FloorFilter = class {
170
170
  render() {
171
171
  return (index.h(index.Host, { key: 'c80a8d46fb48f3789d9fa09c2400faad49e2e236' }, index.h("div", { key: '82919a3ba061a17c8aeaa0d2f6f4f13bc428b519', ref: (el) => { this._floorFilterElement = el; } })));
172
172
  }
173
+ /**
174
+ * StencilJS: Called once just after the component is first loaded.
175
+ */
176
+ async componentDidLoad() {
177
+ if (this.mapView && !this.floorFilterWidget) {
178
+ await this._initFloorFilter(this.mapView);
179
+ }
180
+ }
173
181
  //--------------------------------------------------------------------------
174
182
  //
175
183
  // Functions (protected)
@@ -36,6 +36,10 @@ const CrowdsourceManager = class {
36
36
  * MapView.when is not fired when mapView is not currently visible
37
37
  */
38
38
  this._defaultLevelHonored = false;
39
+ /**
40
+ * boolean: When true hideMapOnLoad was honored for the current map
41
+ */
42
+ this._hideMapOnLoadHonored = false;
39
43
  /**
40
44
  * boolean: When true the map view will be set after render due to popup obstructing the view
41
45
  * MapView.when is not fired when mapView is not currently visible
@@ -77,10 +81,10 @@ const CrowdsourceManager = class {
77
81
  this.theme = "light";
78
82
  this.zoomAndScrollToSelected = false;
79
83
  this.zoomToScale = undefined;
80
- this._expandPopup = this.hideMapOnLoad;
84
+ this._expandPopup = false;
81
85
  this._hideFooter = false;
82
86
  this._hideTable = false;
83
- this._isMobile = undefined;
87
+ this._isMobile = false;
84
88
  this._translations = undefined;
85
89
  this._layer = undefined;
86
90
  this._layoutMode = interfaces.ELayoutMode.GRID;
@@ -105,8 +109,8 @@ const CrowdsourceManager = class {
105
109
  * When true the map will be hidden on load
106
110
  */
107
111
  hideMapOnLoadWatchHandler() {
108
- this.showHideMapPopupAndTable(this.hideMapOnLoad);
109
- this._expandPopup = this.hideMapOnLoad;
112
+ this.showHideMapPopupAndTable(this.hideMapOnLoad && !this._isMobile);
113
+ this._expandPopup = this.hideMapOnLoad && !this._isMobile;
110
114
  }
111
115
  /**
112
116
  * When true the map will be hidden on load
@@ -177,7 +181,8 @@ const CrowdsourceManager = class {
177
181
  * Update the state expandPopup when mapInfoChange event occurs
178
182
  */
179
183
  async mapInfoChange() {
180
- this._expandPopup = this.hideMapOnLoad;
184
+ this._expandPopup = this.hideMapOnLoad && !this._isMobile;
185
+ this._hideMapOnLoadHonored = false;
181
186
  }
182
187
  //--------------------------------------------------------------------------
183
188
  //
@@ -199,7 +204,7 @@ const CrowdsourceManager = class {
199
204
  render() {
200
205
  // only avoid border when we have a header color that is not white
201
206
  const borderClass = this.popupHeaderColor && this.popupHeaderColor !== "#FFFFFF" ? "border-width-0" : "";
202
- return (index.h(index.Host, { key: '9624c9a65dfde0984d1abdc8ed78f709d58874f3' }, index.h("calcite-shell", { key: '0b54737e19b7ab1b17a1841b7b83267515a5de51', class: "position-relative" }, index.h("calcite-panel", { key: 'aea71b81bd854548f921920cb6dc259d8441a2b2', class: `width-full height-full ${borderClass}` }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter())));
207
+ return (index.h(index.Host, { key: '09154a91e9c1ca9ee6fffcc9d15f6488d1572429' }, index.h("calcite-shell", { key: '78268044775861d16a557d7e95678614c3be90c8', class: "position-relative" }, index.h("calcite-panel", { key: '2efe00d79d9c939400bc13558e8ad89a06ae68ab', class: `width-full height-full ${borderClass}` }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter())));
203
208
  }
204
209
  /**
205
210
  * Called after each render
@@ -395,6 +400,7 @@ const CrowdsourceManager = class {
395
400
  */
396
401
  _togglePopup() {
397
402
  this._expandPopup = !this._expandPopup;
403
+ this._hideMapOnLoadHonored = true;
398
404
  }
399
405
  /**
400
406
  * Get the card node
@@ -443,6 +449,9 @@ const CrowdsourceManager = class {
443
449
  if (forceOpen) {
444
450
  this._panelOpen = true;
445
451
  }
452
+ if ((this.hideMapOnLoad && !this._hideMapOnLoadHonored) || this._isMobile) {
453
+ this.hideMapOnLoadWatchHandler();
454
+ }
446
455
  }
447
456
  /**
448
457
  * Open/Close the appropriate panel.