@esri/solutions-components 0.10.19 → 0.10.21
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.
- 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
@@ -19,7 +19,7 @@ const interactive = require('./interactive-3b85d8df.js');
|
|
19
19
|
const resources$1 = require('./resources-4c3e1c50.js');
|
20
20
|
const locale$1 = require('./locale-a09603ee.js');
|
21
21
|
const mapViewUtils = require('./mapViewUtils-18c46b84.js');
|
22
|
-
const popupUtils = require('./popupUtils-
|
22
|
+
const popupUtils = require('./popupUtils-c38f840d.js');
|
23
23
|
require('./guid-42cda8c9.js');
|
24
24
|
require('./resources-f11e9bd6.js');
|
25
25
|
require('./browser-2893460e.js');
|
@@ -28,7 +28,7 @@ require('./observers-5f9f67ee.js');
|
|
28
28
|
require('./esri-loader-08dc41bd.js');
|
29
29
|
require('./_commonjsHelpers-baf43783.js');
|
30
30
|
require('./interfaces-09c4c40e.js');
|
31
|
-
require('./downloadUtils-
|
31
|
+
require('./downloadUtils-470f6a27.js');
|
32
32
|
require('./solution-resource-40e70253.js');
|
33
33
|
require('./index-f052f656.js');
|
34
34
|
require('./restHelpersGet-5c2245a3.js');
|
@@ -10,7 +10,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
10
10
|
const index = require('./index-5a0af791.js');
|
11
11
|
const locale = require('./locale-a09603ee.js');
|
12
12
|
const mapViewUtils = require('./mapViewUtils-18c46b84.js');
|
13
|
-
const downloadUtils = require('./downloadUtils-
|
13
|
+
const downloadUtils = require('./downloadUtils-470f6a27.js');
|
14
14
|
require('./esri-loader-08dc41bd.js');
|
15
15
|
require('./_commonjsHelpers-baf43783.js');
|
16
16
|
require('./interfaces-09c4c40e.js');
|
@@ -22,7 +22,7 @@ const CrowdsourceManager = class {
|
|
22
22
|
index.registerInstance(this, hostRef);
|
23
23
|
this.showIntroductionWindow = index.createEvent(this, "showIntroductionWindow", 7);
|
24
24
|
this.showCoverPage = index.createEvent(this, "showCoverPage", 7);
|
25
|
-
this.appLayout =
|
25
|
+
this.appLayout = undefined;
|
26
26
|
this.appProxies = undefined;
|
27
27
|
this.basemapConfig = undefined;
|
28
28
|
this.coverPageEnabled = undefined;
|
@@ -45,6 +45,7 @@ const CrowdsourceManager = class {
|
|
45
45
|
this.enableSearch = true;
|
46
46
|
this.enableShare = false;
|
47
47
|
this.enableZoom = true;
|
48
|
+
this.hideMapOnLoad = false;
|
48
49
|
this.mapInfos = [];
|
49
50
|
this.onlyShowUpdatableLayers = true;
|
50
51
|
this.popupHeaderColor = undefined;
|
@@ -128,6 +129,12 @@ const CrowdsourceManager = class {
|
|
128
129
|
enableZoomWatchHandler() {
|
129
130
|
this._initMapZoom();
|
130
131
|
}
|
132
|
+
/**
|
133
|
+
* When true and no appLayout is defined the map will be hidden on load
|
134
|
+
*/
|
135
|
+
hideMapOnLoadWatchHandler() {
|
136
|
+
console.warn("hideMapOnLoad will be removed. Please use appLayout to control layout options.");
|
137
|
+
}
|
131
138
|
//--------------------------------------------------------------------------
|
132
139
|
//
|
133
140
|
// Methods (public)
|
@@ -206,7 +213,7 @@ const CrowdsourceManager = class {
|
|
206
213
|
render() {
|
207
214
|
// only avoid border when we have a header color that is not white
|
208
215
|
const borderClass = this.popupHeaderColor && this.popupHeaderColor !== "#FFFFFF" ? "border-width-0" : "";
|
209
|
-
return (index.h(index.Host, { key: '
|
216
|
+
return (index.h(index.Host, { key: '28614b892c93b83de202a681a756027472d092c2' }, index.h("calcite-shell", { key: '8f9c57fa9d1c1c88dbac9706376aad6bbd425691', class: "position-relative" }, index.h("calcite-panel", { key: '3c156df89f396425c2711a39968017cc23910a55', class: `width-full height-full ${borderClass}` }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter()), this._filterModal()));
|
210
217
|
}
|
211
218
|
/**
|
212
219
|
* Called after each render
|
@@ -225,6 +232,12 @@ const CrowdsourceManager = class {
|
|
225
232
|
*/
|
226
233
|
async componentDidLoad() {
|
227
234
|
this._resizeObserver.observe(this.el);
|
235
|
+
if (this.hideMapOnLoad && !this.appLayout) {
|
236
|
+
this.appLayout = 'tableView';
|
237
|
+
}
|
238
|
+
else if (!this.appLayout) {
|
239
|
+
this.appLayout = 'splitView';
|
240
|
+
}
|
228
241
|
this._isMapViewOnLoad = this.appLayout === 'mapView';
|
229
242
|
this._setActiveLayout(this.appLayout);
|
230
243
|
}
|
@@ -666,7 +679,8 @@ const CrowdsourceManager = class {
|
|
666
679
|
this._translations = messages[0];
|
667
680
|
}
|
668
681
|
static get watchers() { return {
|
669
|
-
"enableZoom": ["enableZoomWatchHandler"]
|
682
|
+
"enableZoom": ["enableZoomWatchHandler"],
|
683
|
+
"hideMapOnLoad": ["hideMapOnLoadWatchHandler"]
|
670
684
|
}; }
|
671
685
|
};
|
672
686
|
CrowdsourceManager.style = CrowdsourceManagerStyle0;
|
@@ -1512,7 +1512,7 @@ function(t){var e=function(t){for(var e=t.length,r=new Uint8Array(e),n=0;n<e;n++
|
|
1512
1512
|
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
1513
1513
|
* ====================================================================
|
1514
1514
|
*/
|
1515
|
-
function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):Promise.resolve().then(function () { return require('./index.es-
|
1515
|
+
function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):Promise.resolve().then(function () { return require('./index.es-6387d8fb.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},
|
1516
1516
|
/** ====================================================================
|
1517
1517
|
* @license
|
1518
1518
|
* jsPDF XMP metadata plugin
|
@@ -2214,7 +2214,7 @@ async function downloadPDFFile(filename, labels, labelPageDescription, title = "
|
|
2214
2214
|
const pdfLib = new PDFCreator_jsPDF();
|
2215
2215
|
await pdfLib.initialize({
|
2216
2216
|
pageType: "ANSI_A"
|
2217
|
-
}, index.getAssetPath(
|
2217
|
+
}, index.getAssetPath(`assets/arcgis-pdf-creator/`), "en", filename // filename without ".pdf"
|
2218
2218
|
);
|
2219
2219
|
const labeller = new PDFLabels();
|
2220
2220
|
await labeller.initialize(pdfLib);
|
@@ -9,11 +9,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
10
10
|
const index = require('./index-5a0af791.js');
|
11
11
|
const locale = require('./locale-a09603ee.js');
|
12
|
-
const popupUtils = require('./popupUtils-
|
12
|
+
const popupUtils = require('./popupUtils-c38f840d.js');
|
13
13
|
const mapViewUtils = require('./mapViewUtils-18c46b84.js');
|
14
14
|
require('./esri-loader-08dc41bd.js');
|
15
15
|
require('./_commonjsHelpers-baf43783.js');
|
16
|
-
require('./downloadUtils-
|
16
|
+
require('./downloadUtils-470f6a27.js');
|
17
17
|
require('./solution-resource-40e70253.js');
|
18
18
|
require('./index-f052f656.js');
|
19
19
|
require('./restHelpersGet-5c2245a3.js');
|
@@ -6,7 +6,7 @@
|
|
6
6
|
'use strict';
|
7
7
|
|
8
8
|
const _commonjsHelpers = require('./_commonjsHelpers-baf43783.js');
|
9
|
-
const downloadUtils = require('./downloadUtils-
|
9
|
+
const downloadUtils = require('./downloadUtils-470f6a27.js');
|
10
10
|
require('./index-5a0af791.js');
|
11
11
|
require('./locale-a09603ee.js');
|
12
12
|
require('./esri-loader-08dc41bd.js');
|