@esri/solutions-components 0.10.20 → 0.10.22
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/calcite-alert_5.cjs.entry.js +6 -2
- package/dist/cjs/crowdsource-manager.cjs.entry.js +17 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/map-select-tools_3.cjs.entry.js +78 -21
- package/dist/cjs/public-notification.cjs.entry.js +3 -3
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +37 -4
- package/dist/collection/components/edit-card/edit-card.js +6 -2
- package/dist/collection/components/map-select-tools/map-select-tools.js +78 -21
- package/dist/collection/components/public-notification/public-notification.js +5 -5
- package/dist/components/crowdsource-manager.js +20 -4
- package/dist/components/edit-card2.js +6 -2
- package/dist/components/map-select-tools2.js +78 -21
- package/dist/components/public-notification.js +3 -3
- package/dist/esm/calcite-alert_5.entry.js +6 -2
- package/dist/esm/crowdsource-manager.entry.js +17 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/map-select-tools_3.entry.js +78 -21
- package/dist/esm/public-notification.entry.js +3 -3
- package/dist/esm/solutions-components.js +1 -1
- package/dist/solutions-components/{p-4c88578a.entry.js → p-5067d77e.entry.js} +1 -1
- package/dist/solutions-components/{p-9fed495d.entry.js → p-a85fd786.entry.js} +1 -1
- package/dist/solutions-components/p-bd2278cf.entry.js +6 -0
- package/dist/solutions-components/p-cd5a9034.entry.js +6 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +8 -0
- package/dist/types/components/edit-card/edit-card.d.ts +3 -1
- package/dist/types/components/map-select-tools/map-select-tools.d.ts +22 -0
- package/dist/types/components.d.ts +8 -0
- package/package.json +1 -1
- package/dist/solutions-components/p-5612aa0c.entry.js +0 -6
- package/dist/solutions-components/p-bde2619f.entry.js +0 -6
@@ -18,7 +18,7 @@ const CrowdsourceManager = class {
|
|
18
18
|
registerInstance(this, hostRef);
|
19
19
|
this.showIntroductionWindow = createEvent(this, "showIntroductionWindow", 7);
|
20
20
|
this.showCoverPage = createEvent(this, "showCoverPage", 7);
|
21
|
-
this.appLayout =
|
21
|
+
this.appLayout = undefined;
|
22
22
|
this.appProxies = undefined;
|
23
23
|
this.basemapConfig = undefined;
|
24
24
|
this.coverPageEnabled = undefined;
|
@@ -41,6 +41,7 @@ const CrowdsourceManager = class {
|
|
41
41
|
this.enableSearch = true;
|
42
42
|
this.enableShare = false;
|
43
43
|
this.enableZoom = true;
|
44
|
+
this.hideMapOnLoad = false;
|
44
45
|
this.mapInfos = [];
|
45
46
|
this.onlyShowUpdatableLayers = true;
|
46
47
|
this.popupHeaderColor = undefined;
|
@@ -124,6 +125,12 @@ const CrowdsourceManager = class {
|
|
124
125
|
enableZoomWatchHandler() {
|
125
126
|
this._initMapZoom();
|
126
127
|
}
|
128
|
+
/**
|
129
|
+
* When true and no appLayout is defined the map will be hidden on load
|
130
|
+
*/
|
131
|
+
hideMapOnLoadWatchHandler() {
|
132
|
+
console.warn("hideMapOnLoad will be removed. Please use appLayout to control layout options.");
|
133
|
+
}
|
127
134
|
//--------------------------------------------------------------------------
|
128
135
|
//
|
129
136
|
// Methods (public)
|
@@ -202,7 +209,7 @@ const CrowdsourceManager = class {
|
|
202
209
|
render() {
|
203
210
|
// only avoid border when we have a header color that is not white
|
204
211
|
const borderClass = this.popupHeaderColor && this.popupHeaderColor !== "#FFFFFF" ? "border-width-0" : "";
|
205
|
-
return (h(Host, { key: '
|
212
|
+
return (h(Host, { key: '28614b892c93b83de202a681a756027472d092c2' }, h("calcite-shell", { key: '8f9c57fa9d1c1c88dbac9706376aad6bbd425691', class: "position-relative" }, h("calcite-panel", { key: '3c156df89f396425c2711a39968017cc23910a55', class: `width-full height-full ${borderClass}` }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter()), this._filterModal()));
|
206
213
|
}
|
207
214
|
/**
|
208
215
|
* Called after each render
|
@@ -221,6 +228,12 @@ const CrowdsourceManager = class {
|
|
221
228
|
*/
|
222
229
|
async componentDidLoad() {
|
223
230
|
this._resizeObserver.observe(this.el);
|
231
|
+
if (this.hideMapOnLoad && !this.appLayout) {
|
232
|
+
this.appLayout = 'tableView';
|
233
|
+
}
|
234
|
+
else if (!this.appLayout) {
|
235
|
+
this.appLayout = 'splitView';
|
236
|
+
}
|
224
237
|
this._isMapViewOnLoad = this.appLayout === 'mapView';
|
225
238
|
this._setActiveLayout(this.appLayout);
|
226
239
|
}
|
@@ -662,7 +675,8 @@ const CrowdsourceManager = class {
|
|
662
675
|
this._translations = messages[0];
|
663
676
|
}
|
664
677
|
static get watchers() { return {
|
665
|
-
"enableZoom": ["enableZoomWatchHandler"]
|
678
|
+
"enableZoom": ["enableZoomWatchHandler"],
|
679
|
+
"hideMapOnLoad": ["hideMapOnLoadWatchHandler"]
|
666
680
|
}; }
|
667
681
|
};
|
668
682
|
CrowdsourceManager.style = CrowdsourceManagerStyle0;
|