@esri/solutions-components 0.10.19 → 0.10.20
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/{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/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 +3 -3
- package/dist/collection/components/public-notification/public-notification.js +2 -2
- package/dist/collection/utils/pdfUtils.js +1 -1
- package/dist/collection/utils/pdfUtils.ts +1 -1
- package/dist/components/downloadUtils.js +1 -1
- package/dist/components/public-notification.js +2 -2
- package/dist/esm/calcite-alert_5.entry.js +2 -2
- package/dist/esm/card-manager_3.entry.js +1 -1
- 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/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 +3 -3
- package/dist/solutions-components/{p-01588d2c.js → p-1490c752.js} +1 -1
- package/dist/solutions-components/p-4c88578a.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-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/package.json +1 -1
- package/dist/solutions-components/p-39ca5896.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');
|
@@ -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');
|
@@ -12,7 +12,7 @@ const locale = require('./locale-a09603ee.js');
|
|
12
12
|
const mapViewUtils = require('./mapViewUtils-18c46b84.js');
|
13
13
|
const interfaces = require('./interfaces-09c4c40e.js');
|
14
14
|
const publicNotificationStore = require('./publicNotificationStore-f229e839.js');
|
15
|
-
const downloadUtils = require('./downloadUtils-
|
15
|
+
const downloadUtils = require('./downloadUtils-470f6a27.js');
|
16
16
|
require('./esri-loader-08dc41bd.js');
|
17
17
|
require('./_commonjsHelpers-baf43783.js');
|
18
18
|
require('./index-da709a10.js');
|
@@ -12,7 +12,7 @@ const interfaces = require('./interfaces-09c4c40e.js');
|
|
12
12
|
const locale = require('./locale-a09603ee.js');
|
13
13
|
const mapViewUtils = require('./mapViewUtils-18c46b84.js');
|
14
14
|
const publicNotificationStore = require('./publicNotificationStore-f229e839.js');
|
15
|
-
const downloadUtils = require('./downloadUtils-
|
15
|
+
const downloadUtils = require('./downloadUtils-470f6a27.js');
|
16
16
|
require('./esri-loader-08dc41bd.js');
|
17
17
|
require('./_commonjsHelpers-baf43783.js');
|
18
18
|
require('./index-da709a10.js');
|
@@ -252,14 +252,14 @@ const PublicNotification = class {
|
|
252
252
|
await this._getTranslations();
|
253
253
|
await this._initModules();
|
254
254
|
this._initSymbols();
|
255
|
-
this._onboardingImageUrl = index.getAssetPath(
|
255
|
+
this._onboardingImageUrl = index.getAssetPath(`assets/data/images/onboarding.png`);
|
256
256
|
}
|
257
257
|
/**
|
258
258
|
* Renders the component.
|
259
259
|
*/
|
260
260
|
render() {
|
261
261
|
const headerSlot = this._isMobile ? "footer" : "header";
|
262
|
-
return (index.h(index.Host, { key: '
|
262
|
+
return (index.h(index.Host, { key: '5473fef09cfb2a8870f8e03f263f4d003c6768e4' }, index.h("calcite-shell", { key: '4ecd592093267c886138b79b2ebb1b4b2e913463' }, index.h("calcite-action-bar", { key: 'e427d8982bc5e68d9b5430875b9079a0ce43e02b', class: "border-bottom-1 action-bar-size", "expand-disabled": true, layout: "horizontal", slot: headerSlot }, this._getActionGroup("list-check", interfaces.EPageType.LIST, this._translations.myLists), this.showRefineSelection ? this._getActionGroup("test-data", interfaces.EPageType.REFINE, this._translations.refineSelection) : null, this._getActionGroup("export", interfaces.EPageType.EXPORT, this._translations.export)), this._getPage(this._pageType))));
|
263
263
|
}
|
264
264
|
/**
|
265
265
|
* StencilJS: Called once just after the component is first loaded.
|
@@ -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: '5473fef09cfb2a8870f8e03f263f4d003c6768e4' }, h("calcite-shell", { key: '4ecd592093267c886138b79b2ebb1b4b2e913463' }, h("calcite-action-bar", { key: 'e427d8982bc5e68d9b5430875b9079a0ce43e02b', 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.
|
@@ -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);
|
@@ -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);
|
@@ -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: '5473fef09cfb2a8870f8e03f263f4d003c6768e4' }, h("calcite-shell", { key: '4ecd592093267c886138b79b2ebb1b4b2e913463' }, h("calcite-action-bar", { key: 'e427d8982bc5e68d9b5430875b9079a0ce43e02b', 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';
|
@@ -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';
|
@@ -8,7 +8,7 @@ import { a as getComponentClosestLanguage, l as loadModules, g as getLocaleCompo
|
|
8
8
|
import { e as goToSelection, h as highlightFeatures, k as queryObjectIds, l as getQueryGeoms, c as getFeatureLayerView, m as queryFeaturesByGeometry, n as getIdSets, o as highlightAllFeatures } from './mapViewUtils-f54edae3.js';
|
9
9
|
import { a as EWorkflowType, e as ESelectionMode, f as EDrawMode } from './interfaces-659e3836.js';
|
10
10
|
import { s as state } from './publicNotificationStore-7b0b97b6.js';
|
11
|
-
import { d as downloadCSV, a as downloadPDF } from './downloadUtils-
|
11
|
+
import { d as downloadCSV, a as downloadPDF } from './downloadUtils-d1f791c5.js';
|
12
12
|
import './esri-loader-c6842c6b.js';
|
13
13
|
import './_commonjsHelpers-089957fe.js';
|
14
14
|
import './index-2c724afd.js';
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import { _ as _prepareAttributeValue } from './downloadUtils-
|
6
|
+
import { _ as _prepareAttributeValue } from './downloadUtils-d1f791c5.js';
|
7
7
|
import { l as loadModules } from './locale-b1d53fb1.js';
|
8
8
|
|
9
9
|
/** @license
|
@@ -8,7 +8,7 @@ import { b as EExportType, c as EPageType, a as EWorkflowType } from './interfac
|
|
8
8
|
import { l as loadModules, g as getLocaleComponentStrings } from './locale-b1d53fb1.js';
|
9
9
|
import { e as goToSelection, h as highlightFeatures } from './mapViewUtils-f54edae3.js';
|
10
10
|
import { s as state } from './publicNotificationStore-7b0b97b6.js';
|
11
|
-
import { c as consolidateLabels, r as removeDuplicateLabels } from './downloadUtils-
|
11
|
+
import { c as consolidateLabels, r as removeDuplicateLabels } from './downloadUtils-d1f791c5.js';
|
12
12
|
import './esri-loader-c6842c6b.js';
|
13
13
|
import './_commonjsHelpers-089957fe.js';
|
14
14
|
import './index-2c724afd.js';
|
@@ -248,14 +248,14 @@ const PublicNotification = class {
|
|
248
248
|
await this._getTranslations();
|
249
249
|
await this._initModules();
|
250
250
|
this._initSymbols();
|
251
|
-
this._onboardingImageUrl = getAssetPath(
|
251
|
+
this._onboardingImageUrl = getAssetPath(`assets/data/images/onboarding.png`);
|
252
252
|
}
|
253
253
|
/**
|
254
254
|
* Renders the component.
|
255
255
|
*/
|
256
256
|
render() {
|
257
257
|
const headerSlot = this._isMobile ? "footer" : "header";
|
258
|
-
return (h(Host, { key: '
|
258
|
+
return (h(Host, { key: '5473fef09cfb2a8870f8e03f263f4d003c6768e4' }, h("calcite-shell", { key: '4ecd592093267c886138b79b2ebb1b4b2e913463' }, h("calcite-action-bar", { key: 'e427d8982bc5e68d9b5430875b9079a0ce43e02b', 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))));
|
259
259
|
}
|
260
260
|
/**
|
261
261
|
* StencilJS: Called once just after the component is first loaded.
|