@esri/solutions-components 0.10.19 → 0.10.21
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 +2 -2
- package/dist/cjs/card-manager_3.cjs.entry.js +1 -1
- package/dist/cjs/crowdsource-manager.cjs.entry.js +17 -3
- package/dist/cjs/{downloadUtils-5864e6b2.js → downloadUtils-470f6a27.js} +2 -2
- package/dist/cjs/feature-list.cjs.entry.js +2 -2
- package/dist/cjs/{index.es-c82ac9f0.js → index.es-6387d8fb.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/map-select-tools_3.cjs.entry.js +1 -1
- package/dist/cjs/{popupUtils-f92ecd7f.js → popupUtils-c38f840d.js} +1 -1
- package/dist/cjs/public-notification.cjs.entry.js +5 -5
- 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 +6 -6
- package/dist/collection/utils/pdfUtils.js +1 -1
- package/dist/collection/utils/pdfUtils.ts +1 -1
- package/dist/components/crowdsource-manager.js +20 -4
- package/dist/components/downloadUtils.js +1 -1
- package/dist/components/public-notification.js +4 -4
- package/dist/esm/calcite-alert_5.entry.js +2 -2
- package/dist/esm/card-manager_3.entry.js +1 -1
- package/dist/esm/crowdsource-manager.entry.js +17 -3
- package/dist/esm/{downloadUtils-a065e9cd.js → downloadUtils-d1f791c5.js} +2 -2
- package/dist/esm/feature-list.entry.js +2 -2
- package/dist/esm/{index.es-4b7e52e4.js → index.es-decad494.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/map-select-tools_3.entry.js +1 -1
- package/dist/esm/{popupUtils-07732cb9.js → popupUtils-4e0a103f.js} +1 -1
- package/dist/esm/public-notification.entry.js +5 -5
- package/dist/esm/solutions-components.js +1 -1
- package/dist/solutions-components/{p-01588d2c.js → p-1490c752.js} +1 -1
- package/dist/solutions-components/p-5067d77e.entry.js +6 -0
- package/dist/solutions-components/{p-abd1cb78.js → p-691cb5f4.js} +2 -2
- package/dist/solutions-components/{p-2a53ba0d.js → p-74fbad1c.js} +2 -2
- package/dist/solutions-components/{p-ec8f8ff9.entry.js → p-9fed495d.entry.js} +1 -1
- package/dist/solutions-components/{p-f222a84e.entry.js → p-b96233e3.entry.js} +1 -1
- package/dist/solutions-components/p-bd2278cf.entry.js +6 -0
- package/dist/solutions-components/{p-dcef5e1a.entry.js → p-bde2619f.entry.js} +1 -1
- package/dist/solutions-components/{p-01bdd59d.entry.js → p-fd79adec.entry.js} +1 -1
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/pdfUtils.ts +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-39ca5896.entry.js +0 -6
- 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;
|
@@ -258,14 +258,14 @@ export class PublicNotification {
|
|
258
258
|
await this._getTranslations();
|
259
259
|
await this._initModules();
|
260
260
|
this._initSymbols();
|
261
|
-
this._onboardingImageUrl = getAssetPath(
|
261
|
+
this._onboardingImageUrl = getAssetPath(`assets/data/images/onboarding.png`);
|
262
262
|
}
|
263
263
|
/**
|
264
264
|
* Renders the component.
|
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",
|
@@ -52,7 +52,7 @@ async function downloadPDFFile(filename, labels, labelPageDescription, title = "
|
|
52
52
|
const pdfLib = new PDFCreator_jsPDF.PDFCreator_jsPDF();
|
53
53
|
await pdfLib.initialize({
|
54
54
|
pageType: "ANSI_A"
|
55
|
-
}, getAssetPath(
|
55
|
+
}, getAssetPath(`assets/arcgis-pdf-creator/`), "en", filename // filename without ".pdf"
|
56
56
|
);
|
57
57
|
const labeller = new PDFLabels.PDFLabels();
|
58
58
|
await labeller.initialize(pdfLib);
|
@@ -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") {
|
@@ -2212,7 +2212,7 @@ async function downloadPDFFile(filename, labels, labelPageDescription, title = "
|
|
2212
2212
|
const pdfLib = new PDFCreator_jsPDF();
|
2213
2213
|
await pdfLib.initialize({
|
2214
2214
|
pageType: "ANSI_A"
|
2215
|
-
}, getAssetPath(
|
2215
|
+
}, getAssetPath(`assets/arcgis-pdf-creator/`), "en", filename // filename without ".pdf"
|
2216
2216
|
);
|
2217
2217
|
const labeller = new PDFLabels();
|
2218
2218
|
await labeller.initialize(pdfLib);
|
@@ -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;
|
@@ -287,14 +287,14 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class PublicNotifi
|
|
287
287
|
await this._getTranslations();
|
288
288
|
await this._initModules();
|
289
289
|
this._initSymbols();
|
290
|
-
this._onboardingImageUrl = getAssetPath(
|
290
|
+
this._onboardingImageUrl = getAssetPath(`assets/data/images/onboarding.png`);
|
291
291
|
}
|
292
292
|
/**
|
293
293
|
* Renders the component.
|
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.
|
@@ -15,7 +15,7 @@ import { c as connectInteractive, u as updateHostInteraction, d as disconnectInt
|
|
15
15
|
import { S as SLOTS$2 } from './resources-57625076.js';
|
16
16
|
import { l as loadModules, g as getLocaleComponentStrings } from './locale-b1d53fb1.js';
|
17
17
|
import { a as getAllLayers, g as getLayerOrTable } from './mapViewUtils-f54edae3.js';
|
18
|
-
import { P as PopupUtils } from './popupUtils-
|
18
|
+
import { P as PopupUtils } from './popupUtils-4e0a103f.js';
|
19
19
|
import './guid-42656051.js';
|
20
20
|
import './resources-745dec87.js';
|
21
21
|
import './browser-a791205e.js';
|
@@ -24,7 +24,7 @@ import './observers-6cac5525.js';
|
|
24
24
|
import './esri-loader-c6842c6b.js';
|
25
25
|
import './_commonjsHelpers-089957fe.js';
|
26
26
|
import './interfaces-659e3836.js';
|
27
|
-
import './downloadUtils-
|
27
|
+
import './downloadUtils-d1f791c5.js';
|
28
28
|
import './solution-resource-f5809979.js';
|
29
29
|
import './index-e14fade9.js';
|
30
30
|
import './restHelpersGet-48113381.js';
|
@@ -6,7 +6,7 @@
|
|
6
6
|
import { r as registerInstance, c as createEvent, g as getElement, h, H as Host, F as Fragment } from './index-b793d9aa.js';
|
7
7
|
import { g as getLocaleComponentStrings, l as loadModules } from './locale-b1d53fb1.js';
|
8
8
|
import { g as getLayerOrTable, q as queryFeaturesByID, e as goToSelection, f as queryAllIds, i as queryAllOidsWithQueryFeatures, j as queryFeaturesByGlobalID, c as getFeatureLayerView } from './mapViewUtils-f54edae3.js';
|
9
|
-
import { d as downloadCSV } from './downloadUtils-
|
9
|
+
import { d as downloadCSV } from './downloadUtils-d1f791c5.js';
|
10
10
|
import './esri-loader-c6842c6b.js';
|
11
11
|
import './_commonjsHelpers-089957fe.js';
|
12
12
|
import './interfaces-659e3836.js';
|
@@ -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;
|
@@ -1510,7 +1510,7 @@ function(t){var e=function(t){for(var e=t.length,r=new Uint8Array(e),n=0;n<e;n++
|
|
1510
1510
|
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
1511
1511
|
* ====================================================================
|
1512
1512
|
*/
|
1513
|
-
function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):import('./index.es-
|
1513
|
+
function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):import('./index.es-decad494.js')).catch((function(t){return Promise.reject(new Error("Could not load canvg: "+t))})).then((function(t){return t.default?t.default:t}))}E.API.addSvgAsImage=function(t,r,n,i,o,s,c,u){if(isNaN(r)||isNaN(n))throw a.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(o))throw a.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var h=document.createElement("canvas");h.width=i,h.height=o;var l=h.getContext("2d");l.fillStyle="#fff",l.fillRect(0,0,h.width,h.height);var f={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},d=this;return e().then((function(e){return e.fromString(l,t,f)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(t){return t.render(f)})).then((function(){d.addImage(h.toDataURL("image/jpeg",1),r,n,i,o,c,u);}))};}(),E.API.putTotalPages=function(t){var e,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),r=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var i=0;i<this.internal.pages[n].length;i++)this.internal.pages[n][i]=this.internal.pages[n][i].replace(e,r);return this},E.API.viewerPreferences=function(e,r){var n;e=e||{},r=r||!1;var i,a,o,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},c=Object.keys(s),u=[],h=0,l=0,f=0;function d(t,e){var r,n=!1;for(r=0;r<t.length;r+=1)t[r]===e&&(n=!0);return n}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===e||!0===r){var p=c.length;for(f=0;f<p;f+=1)n[c[f]].value=n[c[f]].defaultValue,n[c[f]].explicitSet=!1;}if("object"===t(e))for(a in e)if(o=e[a],d(c,a)&&void 0!==o){if("boolean"===n[a].type&&"boolean"==typeof o)n[a].value=o;else if("name"===n[a].type&&d(n[a].valueSet,o))n[a].value=o;else if("integer"===n[a].type&&Number.isInteger(o))n[a].value=o;else if("array"===n[a].type){for(h=0;h<o.length;h+=1)if(i=!0,1===o[h].length&&"number"==typeof o[h][0])u.push(String(o[h]-1));else if(o[h].length>1){for(l=0;l<o[h].length;l+=1)"number"!=typeof o[h][l]&&(i=!1);!0===i&&u.push([o[h][0]-1,o[h][1]-1].join(" "));}n[a].value="["+u.join(" ")+"]";}else n[a].value=n[a].defaultValue;n[a].explicitSet=!0;}return !1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var t,e=[];for(t in n)!0===n[t].explicitSet&&("name"===n[t].type?e.push("/"+t+" /"+n[t].value):e.push("/"+t+" "+n[t].value));0!==e.length&&this.internal.write("/ViewerPreferences\n<<\n"+e.join("\n")+"\n>>");})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},
|
1514
1514
|
/** ====================================================================
|
1515
1515
|
* @license
|
1516
1516
|
* jsPDF XMP metadata plugin
|
@@ -2212,7 +2212,7 @@ async function downloadPDFFile(filename, labels, labelPageDescription, title = "
|
|
2212
2212
|
const pdfLib = new PDFCreator_jsPDF();
|
2213
2213
|
await pdfLib.initialize({
|
2214
2214
|
pageType: "ANSI_A"
|
2215
|
-
}, getAssetPath(
|
2215
|
+
}, getAssetPath(`assets/arcgis-pdf-creator/`), "en", filename // filename without ".pdf"
|
2216
2216
|
);
|
2217
2217
|
const labeller = new PDFLabels();
|
2218
2218
|
await labeller.initialize(pdfLib);
|
@@ -5,11 +5,11 @@
|
|
5
5
|
*/
|
6
6
|
import { r as registerInstance, c as createEvent, g as getElement, h } from './index-b793d9aa.js';
|
7
7
|
import { l as loadModules, g as getLocaleComponentStrings } from './locale-b1d53fb1.js';
|
8
|
-
import { P as PopupUtils } from './popupUtils-
|
8
|
+
import { P as PopupUtils } from './popupUtils-4e0a103f.js';
|
9
9
|
import { g as getLayerOrTable, c as getFeatureLayerView, h as highlightFeatures } from './mapViewUtils-f54edae3.js';
|
10
10
|
import './esri-loader-c6842c6b.js';
|
11
11
|
import './_commonjsHelpers-089957fe.js';
|
12
|
-
import './downloadUtils-
|
12
|
+
import './downloadUtils-d1f791c5.js';
|
13
13
|
import './solution-resource-f5809979.js';
|
14
14
|
import './index-e14fade9.js';
|
15
15
|
import './restHelpersGet-48113381.js';
|
@@ -4,7 +4,7 @@
|
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
6
|
import { c as commonjsGlobal, g as getDefaultExportFromCjs } from './_commonjsHelpers-089957fe.js';
|
7
|
-
import { b as _typeof$1 } from './downloadUtils-
|
7
|
+
import { b as _typeof$1 } from './downloadUtils-d1f791c5.js';
|
8
8
|
import './index-b793d9aa.js';
|
9
9
|
import './locale-b1d53fb1.js';
|
10
10
|
import './esri-loader-c6842c6b.js';
|