@esri/solutions-components 0.6.37 → 0.6.38
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_3.cjs.entry.js +1 -1
- package/dist/cjs/calcite-combobox_6.cjs.entry.js +1 -1
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +2 -2
- package/dist/cjs/card-manager_3.cjs.entry.js +4 -3
- package/dist/cjs/{downloadUtils-37d9aaf3.js → downloadUtils-d8e48fbd.js} +55 -12
- package/dist/cjs/{index.es-d1d9b140.js → index.es-6159eedc.js} +4 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/map-select-tools_3.cjs.entry.js +4 -3
- package/dist/cjs/{mapViewUtils-96172223.js → mapViewUtils-f7bbc35b.js} +5 -2
- package/dist/cjs/public-notification.cjs.entry.js +5 -4
- package/dist/cjs/{clean-url-d5326abb.js → restHelpersGet-c94617cf.js} +398 -0
- package/dist/cjs/solution-configuration.cjs.entry.js +565 -565
- package/dist/cjs/solution-contents_3.cjs.entry.js +2 -2
- package/dist/cjs/{solution-store-714601a2.js → solution-store-b40c2f46.js} +19 -383
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/collection/components/public-notification/public-notification.js +6 -5
- package/dist/collection/utils/downloadUtils.js +50 -8
- package/dist/collection/utils/downloadUtils.ts +62 -9
- package/dist/collection/utils/queryUtils.js +5 -2
- package/dist/collection/utils/queryUtils.ts +4 -2
- package/dist/components/downloadUtils.js +51 -8
- package/dist/components/public-notification.js +2 -2
- package/dist/components/queryUtils.js +5 -2
- package/dist/components/{clean-url.js → restHelpersGet.js} +392 -1
- package/dist/components/solution-configuration.js +552 -552
- package/dist/components/solution-store.js +2 -365
- package/dist/esm/calcite-alert_3.entry.js +1 -1
- package/dist/esm/calcite-combobox_6.entry.js +1 -1
- package/dist/esm/calcite-shell-panel_14.entry.js +2 -2
- package/dist/esm/card-manager_3.entry.js +4 -3
- package/dist/esm/{downloadUtils-76379e4a.js → downloadUtils-d41ecba9.js} +53 -10
- package/dist/esm/{index.es-0d134a52.js → index.es-b226bf47.js} +4 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/map-select-tools_3.entry.js +4 -3
- package/dist/esm/{mapViewUtils-08f6cfce.js → mapViewUtils-1e2befd7.js} +5 -2
- package/dist/esm/public-notification.entry.js +5 -4
- package/dist/esm/{clean-url-bce022e6.js → restHelpersGet-a5ec2192.js} +392 -1
- package/dist/esm/solution-configuration.entry.js +552 -552
- package/dist/esm/solution-contents_3.entry.js +2 -2
- package/dist/esm/{solution-store-3ee6c7a3.js → solution-store-17bb0a75.js} +2 -365
- package/dist/esm/solutions-components.js +1 -1
- package/dist/solutions-components/{p-9800e602.entry.js → p-091120c5.entry.js} +1 -1
- package/dist/solutions-components/p-1b14b687.entry.js +6 -0
- package/dist/solutions-components/p-20e627ed.entry.js +6 -0
- package/dist/solutions-components/{p-646e983f.entry.js → p-2d143359.entry.js} +1 -1
- package/dist/solutions-components/{p-ac7332b3.entry.js → p-40e95e2b.entry.js} +1 -1
- package/dist/solutions-components/p-420e1585.entry.js +36 -0
- package/dist/solutions-components/p-4807b2a1.js +36 -0
- package/dist/solutions-components/p-56a3b81e.entry.js +6 -0
- package/dist/solutions-components/p-5856dc4f.js +66 -0
- package/dist/solutions-components/p-89b4b401.js +145 -0
- package/dist/solutions-components/{p-4ecad91c.entry.js → p-973625f8.entry.js} +1 -1
- package/dist/solutions-components/{p-03130804.js → p-9ecb5d66.js} +1 -1
- package/dist/solutions-components/{p-b02eb8f4.js → p-a8661f1f.js} +30 -30
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/downloadUtils.ts +62 -9
- package/dist/solutions-components/utils/queryUtils.ts +4 -2
- package/dist/types/components/public-notification/public-notification.d.ts +1 -1
- package/dist/types/components.d.ts +2 -2
- package/package.json +1 -1
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/solutions-components/p-13b21d19.entry.js +0 -36
- package/dist/solutions-components/p-15070568.js +0 -36
- package/dist/solutions-components/p-81a0c88f.entry.js +0 -6
- package/dist/solutions-components/p-b7804687.entry.js +0 -6
- package/dist/solutions-components/p-d0544f24.js +0 -192
- package/dist/solutions-components/p-eba875d9.entry.js +0 -6
- package/dist/solutions-components/p-ecc95259.js +0 -20
@@ -18,7 +18,7 @@ const responsive = require('./responsive-b6e86bcb.js');
|
|
18
18
|
const observers = require('./observers-ee7eadc4.js');
|
19
19
|
const loadModules = require('./loadModules-03328b9d.js');
|
20
20
|
const locale$1 = require('./locale-d50f3250.js');
|
21
|
-
const mapViewUtils = require('./mapViewUtils-
|
21
|
+
const mapViewUtils = require('./mapViewUtils-f7bbc35b.js');
|
22
22
|
require('./guid-5ef151a6.js');
|
23
23
|
require('./resources-d8917c46.js');
|
24
24
|
require('./key-29076628.js');
|
@@ -25,7 +25,7 @@ const debounce = require('./debounce-30afab47.js');
|
|
25
25
|
const conditionalSlot = require('./conditionalSlot-b6c29b8c.js');
|
26
26
|
const key = require('./key-29076628.js');
|
27
27
|
const locale$1 = require('./locale-d50f3250.js');
|
28
|
-
const mapViewUtils = require('./mapViewUtils-
|
28
|
+
const mapViewUtils = require('./mapViewUtils-f7bbc35b.js');
|
29
29
|
const publicNotificationStore = require('./publicNotificationStore-9c812ef4.js');
|
30
30
|
require('./resources-d8917c46.js');
|
31
31
|
require('./browser-09760f9f.js');
|
@@ -23,7 +23,7 @@ const sortableComponent = require('./sortableComponent-f9fbabf1.js');
|
|
23
23
|
const resources$2 = require('./resources-9dcc553a.js');
|
24
24
|
const resources$1 = require('./resources-85c1ae6a.js');
|
25
25
|
const locale$1 = require('./locale-d50f3250.js');
|
26
|
-
const solutionStore = require('./solution-store-
|
26
|
+
const solutionStore = require('./solution-store-b40c2f46.js');
|
27
27
|
const interfaces = require('./interfaces-000be6de.js');
|
28
28
|
const solutionResource = require('./solution-resource-f9e3b289.js');
|
29
29
|
require('./key-29076628.js');
|
@@ -33,7 +33,7 @@ require('./resources-d89b020a.js');
|
|
33
33
|
require('./debounce-30afab47.js');
|
34
34
|
require('./_commonjsHelpers-384729db.js');
|
35
35
|
require('./index-2bdbac04.js');
|
36
|
-
require('./
|
36
|
+
require('./restHelpersGet-c94617cf.js');
|
37
37
|
|
38
38
|
/*!
|
39
39
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
@@ -9,12 +9,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
10
10
|
const index = require('./index-1ffa261f.js');
|
11
11
|
const locale = require('./locale-d50f3250.js');
|
12
|
-
const mapViewUtils = require('./mapViewUtils-
|
12
|
+
const mapViewUtils = require('./mapViewUtils-f7bbc35b.js');
|
13
13
|
const loadModules = require('./loadModules-03328b9d.js');
|
14
|
-
const downloadUtils = require('./downloadUtils-
|
14
|
+
const downloadUtils = require('./downloadUtils-d8e48fbd.js');
|
15
15
|
require('./_commonjsHelpers-384729db.js');
|
16
16
|
require('./interfaces-000be6de.js');
|
17
|
-
require('./
|
17
|
+
require('./solution-resource-f9e3b289.js');
|
18
|
+
require('./restHelpersGet-c94617cf.js');
|
18
19
|
|
19
20
|
const cardManagerCss = ":host{display:block !important}.display-flex{display:flex}.display-none{display:none}.w-100{width:100%}.padding-bottom-1{padding-bottom:1rem}.padding-1{padding:1rem}.position-relative{position:relative}.focus-margin{margin:1px 1px 0px 1px}.overflow-auto{overflow:auto}.height-full{height:100%}card-manager{display:block}";
|
20
21
|
|
@@ -8,8 +8,9 @@
|
|
8
8
|
const _commonjsHelpers = require('./_commonjsHelpers-384729db.js');
|
9
9
|
const index = require('./index-1ffa261f.js');
|
10
10
|
const loadModules = require('./loadModules-03328b9d.js');
|
11
|
-
const mapViewUtils = require('./mapViewUtils-
|
12
|
-
|
11
|
+
const mapViewUtils = require('./mapViewUtils-f7bbc35b.js');
|
12
|
+
require('./solution-resource-f9e3b289.js');
|
13
|
+
const restHelpersGet = require('./restHelpersGet-c94617cf.js');
|
13
14
|
|
14
15
|
/** @license
|
15
16
|
* Copyright 2022 Esri
|
@@ -1508,7 +1509,7 @@ function(t){var e=function(t){for(var e=t.length,r=new Uint8Array(e),n=0;n<e;n++
|
|
1508
1509
|
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
1509
1510
|
* ====================================================================
|
1510
1511
|
*/
|
1511
|
-
function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):Promise.resolve().then(function () { return require('./index.es-
|
1512
|
+
function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):Promise.resolve().then(function () { return require('./index.es-6159eedc.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},
|
1512
1513
|
/** ====================================================================
|
1513
1514
|
* @license
|
1514
1515
|
* jsPDF XMP metadata plugin
|
@@ -2285,7 +2286,7 @@ function appendCustomParams(customOptions, keys, baseOptions) {
|
|
2285
2286
|
"maxUrlLength",
|
2286
2287
|
"headers"
|
2287
2288
|
];
|
2288
|
-
var options =
|
2289
|
+
var options = restHelpersGet.__assign(restHelpersGet.__assign({ params: {} }, baseOptions), customOptions);
|
2289
2290
|
// merge all keys in customOptions into options.params
|
2290
2291
|
options.params = keys.reduce(function (value, key) {
|
2291
2292
|
if (customOptions[key] || typeof customOptions[key] === "boolean") {
|
@@ -2328,7 +2329,7 @@ function queryRelated(requestOptions) {
|
|
2328
2329
|
// set default query parameters
|
2329
2330
|
definitionExpression: "1=1", outFields: "*", relationshipId: 0 }, requestOptions.params)
|
2330
2331
|
});
|
2331
|
-
return
|
2332
|
+
return restHelpersGet.request(restHelpersGet.cleanUrl(requestOptions.url) + "/queryRelatedRecords", options);
|
2332
2333
|
}
|
2333
2334
|
|
2334
2335
|
/** @license
|
@@ -2744,13 +2745,55 @@ async function _getLabelFormat(webmap, layer, formatUsingLayerPopup) {
|
|
2744
2745
|
const labelFormatType = (_b = (_a = layer.popupTemplate) === null || _a === void 0 ? void 0 : _a.content[0]) === null || _b === void 0 ? void 0 : _b.type;
|
2745
2746
|
if (labelFormatType === "relationship") {
|
2746
2747
|
const relationshipId = layer.popupTemplate.content[0].relationshipId;
|
2747
|
-
|
2748
|
-
|
2749
|
-
|
2750
|
-
&&
|
2751
|
-
&&
|
2752
|
-
|
2753
|
-
|
2748
|
+
// Get related layer
|
2749
|
+
let webmapLayers = webmap.layers.toArray().concat(webmap.tables.toArray());
|
2750
|
+
webmapLayers = webmapLayers.filter((webmapLayer) => webmapLayer.type === "feature"
|
2751
|
+
&& webmapLayer.id !== layer.id
|
2752
|
+
&& webmapLayer.relationships
|
2753
|
+
&& webmapLayer.relationships.some(relationship => relationship.id === relationshipId));
|
2754
|
+
if (webmapLayers.length > 0) {
|
2755
|
+
labelFormatProps = await _getLabelFormat(webmap, webmapLayers[0], formatUsingLayerPopup);
|
2756
|
+
labelFormatProps.relationshipId = relationshipId;
|
2757
|
+
}
|
2758
|
+
else {
|
2759
|
+
// Related layer info is not in webmap; get the label info from the related layer
|
2760
|
+
webmapLayers = webmap.layers.toArray().concat(webmap.tables.toArray());
|
2761
|
+
// Keep only feature layers and tables that have the type "feature" and whose layerId doesn't
|
2762
|
+
// match the one we entered this function with and who have a URL that we can query
|
2763
|
+
const relationshipCandidatePromises = [];
|
2764
|
+
webmapLayers = webmapLayers.filter((webmapLayer) => {
|
2765
|
+
if (webmapLayer.type === "feature" && webmapLayer.layerId != layer.layerId && webmapLayer.url) {
|
2766
|
+
// Query the feature layer/table for properties missing from the webmap version
|
2767
|
+
const webmapLayerUrl = webmapLayer.url + "/" + webmapLayer.layerId.toString();
|
2768
|
+
relationshipCandidatePromises.push(restHelpersGet.getJson(webmapLayerUrl /*, authentication*/));
|
2769
|
+
return true;
|
2770
|
+
}
|
2771
|
+
else {
|
2772
|
+
return false;
|
2773
|
+
}
|
2774
|
+
});
|
2775
|
+
// Of the queried feature layers/tables, find the one with the matching relationship id
|
2776
|
+
const relationshipCandidates = await Promise.all(relationshipCandidatePromises);
|
2777
|
+
let labelFormatPropsPromise;
|
2778
|
+
if (!relationshipCandidates.some((candidateLayer, i) => {
|
2779
|
+
if (candidateLayer.relationships
|
2780
|
+
&& candidateLayer.relationships.some(relationship => relationship.id === relationshipId)) {
|
2781
|
+
// Found the matching relationship; get the label format from it
|
2782
|
+
labelFormatPropsPromise = _getLabelFormat(webmap, webmapLayers[i], formatUsingLayerPopup);
|
2783
|
+
return true;
|
2784
|
+
}
|
2785
|
+
else {
|
2786
|
+
return false;
|
2787
|
+
}
|
2788
|
+
})) {
|
2789
|
+
// Fallback to all fields
|
2790
|
+
labelFormatProps.labelFormat = _convertPopupFieldsToLabelSpec(layer.popupTemplate.fieldInfos);
|
2791
|
+
}
|
2792
|
+
else {
|
2793
|
+
labelFormatProps = await labelFormatPropsPromise;
|
2794
|
+
labelFormatProps.relationshipId = relationshipId;
|
2795
|
+
}
|
2796
|
+
}
|
2754
2797
|
}
|
2755
2798
|
else if (labelFormatType === "fields") {
|
2756
2799
|
labelFormatProps.labelFormat = _convertPopupFieldsToLabelSpec(layer.popupTemplate.fieldInfos);
|
@@ -6,13 +6,14 @@
|
|
6
6
|
'use strict';
|
7
7
|
|
8
8
|
const _commonjsHelpers = require('./_commonjsHelpers-384729db.js');
|
9
|
-
const downloadUtils = require('./downloadUtils-
|
9
|
+
const downloadUtils = require('./downloadUtils-d8e48fbd.js');
|
10
10
|
require('./index-1ffa261f.js');
|
11
11
|
require('./loadModules-03328b9d.js');
|
12
12
|
require('./locale-d50f3250.js');
|
13
|
-
require('./mapViewUtils-
|
13
|
+
require('./mapViewUtils-f7bbc35b.js');
|
14
14
|
require('./interfaces-000be6de.js');
|
15
|
-
require('./
|
15
|
+
require('./solution-resource-f9e3b289.js');
|
16
|
+
require('./restHelpersGet-c94617cf.js');
|
16
17
|
|
17
18
|
var check = function (it) {
|
18
19
|
return it && it.Math == Math && it;
|