@esri/solutions-components 0.10.20 → 0.10.21
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/crowdsource-manager.cjs.entry.js +17 -3
- package/dist/cjs/loader.cjs.js +1 -1
- 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/public-notification/public-notification.js +5 -5
- package/dist/components/crowdsource-manager.js +20 -4
- package/dist/components/public-notification.js +3 -3
- package/dist/esm/crowdsource-manager.entry.js +17 -3
- package/dist/esm/loader.js +1 -1
- 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-bd2278cf.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.d.ts +8 -0
- package/package.json +1 -1
- package/dist/solutions-components/p-5612aa0c.entry.js +0 -6
@@ -24,7 +24,7 @@ import { ELayoutMode } from "../../utils/interfaces";
|
|
24
24
|
import { getLayerOrTable } from "../../utils/mapViewUtils";
|
25
25
|
export class CrowdsourceManager {
|
26
26
|
constructor() {
|
27
|
-
this.appLayout =
|
27
|
+
this.appLayout = undefined;
|
28
28
|
this.appProxies = undefined;
|
29
29
|
this.basemapConfig = undefined;
|
30
30
|
this.coverPageEnabled = undefined;
|
@@ -47,6 +47,7 @@ export class CrowdsourceManager {
|
|
47
47
|
this.enableSearch = true;
|
48
48
|
this.enableShare = false;
|
49
49
|
this.enableZoom = true;
|
50
|
+
this.hideMapOnLoad = false;
|
50
51
|
this.mapInfos = [];
|
51
52
|
this.onlyShowUpdatableLayers = true;
|
52
53
|
this.popupHeaderColor = undefined;
|
@@ -135,6 +136,12 @@ export class CrowdsourceManager {
|
|
135
136
|
enableZoomWatchHandler() {
|
136
137
|
this._initMapZoom();
|
137
138
|
}
|
139
|
+
/**
|
140
|
+
* When true and no appLayout is defined the map will be hidden on load
|
141
|
+
*/
|
142
|
+
hideMapOnLoadWatchHandler() {
|
143
|
+
console.warn("hideMapOnLoad will be removed. Please use appLayout to control layout options.");
|
144
|
+
}
|
138
145
|
//--------------------------------------------------------------------------
|
139
146
|
//
|
140
147
|
// Methods (public)
|
@@ -213,7 +220,7 @@ export class CrowdsourceManager {
|
|
213
220
|
render() {
|
214
221
|
// only avoid border when we have a header color that is not white
|
215
222
|
const borderClass = this.popupHeaderColor && this.popupHeaderColor !== "#FFFFFF" ? "border-width-0" : "";
|
216
|
-
return (h(Host, { key: '
|
223
|
+
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()));
|
217
224
|
}
|
218
225
|
/**
|
219
226
|
* Called after each render
|
@@ -232,6 +239,12 @@ export class CrowdsourceManager {
|
|
232
239
|
*/
|
233
240
|
async componentDidLoad() {
|
234
241
|
this._resizeObserver.observe(this.el);
|
242
|
+
if (this.hideMapOnLoad && !this.appLayout) {
|
243
|
+
this.appLayout = 'tableView';
|
244
|
+
}
|
245
|
+
else if (!this.appLayout) {
|
246
|
+
this.appLayout = 'splitView';
|
247
|
+
}
|
235
248
|
this._isMapViewOnLoad = this.appLayout === 'mapView';
|
236
249
|
this._setActiveLayout(this.appLayout);
|
237
250
|
}
|
@@ -706,8 +719,7 @@ export class CrowdsourceManager {
|
|
706
719
|
"text": "AppLayout: The type of layout the application should use.\r\nValid values: \"mapView\" or \"tableView\" or \"splitView\""
|
707
720
|
},
|
708
721
|
"attribute": "app-layout",
|
709
|
-
"reflect": false
|
710
|
-
"defaultValue": "'splitView'"
|
722
|
+
"reflect": false
|
711
723
|
},
|
712
724
|
"appProxies": {
|
713
725
|
"type": "any",
|
@@ -1105,6 +1117,24 @@ export class CrowdsourceManager {
|
|
1105
1117
|
"reflect": false,
|
1106
1118
|
"defaultValue": "true"
|
1107
1119
|
},
|
1120
|
+
"hideMapOnLoad": {
|
1121
|
+
"type": "boolean",
|
1122
|
+
"mutable": false,
|
1123
|
+
"complexType": {
|
1124
|
+
"original": "boolean",
|
1125
|
+
"resolved": "boolean",
|
1126
|
+
"references": {}
|
1127
|
+
},
|
1128
|
+
"required": false,
|
1129
|
+
"optional": false,
|
1130
|
+
"docs": {
|
1131
|
+
"tags": [],
|
1132
|
+
"text": "boolean: when true the map will be hidden on load"
|
1133
|
+
},
|
1134
|
+
"attribute": "hide-map-on-load",
|
1135
|
+
"reflect": false,
|
1136
|
+
"defaultValue": "false"
|
1137
|
+
},
|
1108
1138
|
"mapInfos": {
|
1109
1139
|
"type": "unknown",
|
1110
1140
|
"mutable": false,
|
@@ -1402,6 +1432,9 @@ export class CrowdsourceManager {
|
|
1402
1432
|
return [{
|
1403
1433
|
"propName": "enableZoom",
|
1404
1434
|
"methodName": "enableZoomWatchHandler"
|
1435
|
+
}, {
|
1436
|
+
"propName": "hideMapOnLoad",
|
1437
|
+
"methodName": "hideMapOnLoadWatchHandler"
|
1405
1438
|
}];
|
1406
1439
|
}
|
1407
1440
|
static get listeners() {
|
@@ -37,9 +37,9 @@ export class PublicNotification {
|
|
37
37
|
this.defaultExportTitle = "";
|
38
38
|
this.defaultNumLabelsPerPage = 6;
|
39
39
|
this.enableLayerFeatures = true;
|
40
|
-
this.enableLayerFeaturesOnLoad =
|
40
|
+
this.enableLayerFeaturesOnLoad = false;
|
41
41
|
this.enableSearchDistance = true;
|
42
|
-
this.enableSearchDistanceOnLoad =
|
42
|
+
this.enableSearchDistanceOnLoad = false;
|
43
43
|
this.enableSketchTools = true;
|
44
44
|
this.featureEffect = undefined;
|
45
45
|
this.featureHighlightEnabled = undefined;
|
@@ -265,7 +265,7 @@ export class PublicNotification {
|
|
265
265
|
*/
|
266
266
|
render() {
|
267
267
|
const headerSlot = this._isMobile ? "footer" : "header";
|
268
|
-
return (h(Host, { key: '
|
268
|
+
return (h(Host, { key: '019074cdfaddd8121a6ed255f42dea427aac9440' }, h("calcite-shell", { key: 'ece21e206f6519627bc8f139c35f68838eb701a2' }, h("calcite-action-bar", { key: '92883d5df9fcf43584f3934bf7f61640afed2bdb', 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))));
|
269
269
|
}
|
270
270
|
/**
|
271
271
|
* StencilJS: Called once just after the component is first loaded.
|
@@ -1254,7 +1254,7 @@ export class PublicNotification {
|
|
1254
1254
|
},
|
1255
1255
|
"attribute": "enable-layer-features-on-load",
|
1256
1256
|
"reflect": false,
|
1257
|
-
"defaultValue": "
|
1257
|
+
"defaultValue": "false"
|
1258
1258
|
},
|
1259
1259
|
"enableSearchDistance": {
|
1260
1260
|
"type": "boolean",
|
@@ -1290,7 +1290,7 @@ export class PublicNotification {
|
|
1290
1290
|
},
|
1291
1291
|
"attribute": "enable-search-distance-on-load",
|
1292
1292
|
"reflect": false,
|
1293
|
-
"defaultValue": "
|
1293
|
+
"defaultValue": "false"
|
1294
1294
|
},
|
1295
1295
|
"enableSketchTools": {
|
1296
1296
|
"type": "boolean",
|
@@ -76,7 +76,7 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
|
|
76
76
|
this.__registerHost();
|
77
77
|
this.showIntroductionWindow = createEvent(this, "showIntroductionWindow", 7);
|
78
78
|
this.showCoverPage = createEvent(this, "showCoverPage", 7);
|
79
|
-
this.appLayout =
|
79
|
+
this.appLayout = undefined;
|
80
80
|
this.appProxies = undefined;
|
81
81
|
this.basemapConfig = undefined;
|
82
82
|
this.coverPageEnabled = undefined;
|
@@ -99,6 +99,7 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
|
|
99
99
|
this.enableSearch = true;
|
100
100
|
this.enableShare = false;
|
101
101
|
this.enableZoom = true;
|
102
|
+
this.hideMapOnLoad = false;
|
102
103
|
this.mapInfos = [];
|
103
104
|
this.onlyShowUpdatableLayers = true;
|
104
105
|
this.popupHeaderColor = undefined;
|
@@ -182,6 +183,12 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
|
|
182
183
|
enableZoomWatchHandler() {
|
183
184
|
this._initMapZoom();
|
184
185
|
}
|
186
|
+
/**
|
187
|
+
* When true and no appLayout is defined the map will be hidden on load
|
188
|
+
*/
|
189
|
+
hideMapOnLoadWatchHandler() {
|
190
|
+
console.warn("hideMapOnLoad will be removed. Please use appLayout to control layout options.");
|
191
|
+
}
|
185
192
|
//--------------------------------------------------------------------------
|
186
193
|
//
|
187
194
|
// Methods (public)
|
@@ -260,7 +267,7 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
|
|
260
267
|
render() {
|
261
268
|
// only avoid border when we have a header color that is not white
|
262
269
|
const borderClass = this.popupHeaderColor && this.popupHeaderColor !== "#FFFFFF" ? "border-width-0" : "";
|
263
|
-
return (h(Host, { key: '
|
270
|
+
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()));
|
264
271
|
}
|
265
272
|
/**
|
266
273
|
* Called after each render
|
@@ -279,6 +286,12 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
|
|
279
286
|
*/
|
280
287
|
async componentDidLoad() {
|
281
288
|
this._resizeObserver.observe(this.el);
|
289
|
+
if (this.hideMapOnLoad && !this.appLayout) {
|
290
|
+
this.appLayout = 'tableView';
|
291
|
+
}
|
292
|
+
else if (!this.appLayout) {
|
293
|
+
this.appLayout = 'splitView';
|
294
|
+
}
|
282
295
|
this._isMapViewOnLoad = this.appLayout === 'mapView';
|
283
296
|
this._setActiveLayout(this.appLayout);
|
284
297
|
}
|
@@ -720,7 +733,8 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
|
|
720
733
|
this._translations = messages[0];
|
721
734
|
}
|
722
735
|
static get watchers() { return {
|
723
|
-
"enableZoom": ["enableZoomWatchHandler"]
|
736
|
+
"enableZoom": ["enableZoomWatchHandler"],
|
737
|
+
"hideMapOnLoad": ["hideMapOnLoadWatchHandler"]
|
724
738
|
}; }
|
725
739
|
static get style() { return CrowdsourceManagerStyle0; }
|
726
740
|
}, [0, "crowdsource-manager", {
|
@@ -747,6 +761,7 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
|
|
747
761
|
"enableSearch": [4, "enable-search"],
|
748
762
|
"enableShare": [4, "enable-share"],
|
749
763
|
"enableZoom": [4, "enable-zoom"],
|
764
|
+
"hideMapOnLoad": [4, "hide-map-on-load"],
|
750
765
|
"mapInfos": [16],
|
751
766
|
"onlyShowUpdatableLayers": [4, "only-show-updatable-layers"],
|
752
767
|
"popupHeaderColor": [1, "popup-header-color"],
|
@@ -774,7 +789,8 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
|
|
774
789
|
"_filterOpen": [32],
|
775
790
|
"_showInformationHeader": [32]
|
776
791
|
}, [[8, "featureSelectionChange", "featureSelectionChange"], [8, "popupClosed", "popupClosed"], [8, "layoutChanged", "layoutChanged"], [8, "mapChanged", "mapChanged"], [8, "layerSelectionChange", "layerSelectionChange"]], {
|
777
|
-
"enableZoom": ["enableZoomWatchHandler"]
|
792
|
+
"enableZoom": ["enableZoomWatchHandler"],
|
793
|
+
"hideMapOnLoad": ["hideMapOnLoadWatchHandler"]
|
778
794
|
}]);
|
779
795
|
function defineCustomElement$1() {
|
780
796
|
if (typeof customElements === "undefined") {
|
@@ -71,9 +71,9 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class PublicNotifi
|
|
71
71
|
this.defaultExportTitle = "";
|
72
72
|
this.defaultNumLabelsPerPage = 6;
|
73
73
|
this.enableLayerFeatures = true;
|
74
|
-
this.enableLayerFeaturesOnLoad =
|
74
|
+
this.enableLayerFeaturesOnLoad = false;
|
75
75
|
this.enableSearchDistance = true;
|
76
|
-
this.enableSearchDistanceOnLoad =
|
76
|
+
this.enableSearchDistanceOnLoad = false;
|
77
77
|
this.enableSketchTools = true;
|
78
78
|
this.featureEffect = undefined;
|
79
79
|
this.featureHighlightEnabled = undefined;
|
@@ -294,7 +294,7 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class PublicNotifi
|
|
294
294
|
*/
|
295
295
|
render() {
|
296
296
|
const headerSlot = this._isMobile ? "footer" : "header";
|
297
|
-
return (h(Host, { key: '
|
297
|
+
return (h(Host, { key: '019074cdfaddd8121a6ed255f42dea427aac9440' }, h("calcite-shell", { key: 'ece21e206f6519627bc8f139c35f68838eb701a2' }, h("calcite-action-bar", { key: '92883d5df9fcf43584f3934bf7f61640afed2bdb', 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))));
|
298
298
|
}
|
299
299
|
/**
|
300
300
|
* StencilJS: Called once just after the component is first loaded.
|
@@ -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;
|