@esri/solutions-components 0.6.44 → 0.6.46

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.
Files changed (35) hide show
  1. package/dist/cjs/card-manager_3.cjs.entry.js +1 -1
  2. package/dist/cjs/{downloadUtils-d017810f.js → downloadUtils-e3e595e9.js} +30 -52
  3. package/dist/cjs/{index.es-de35a9a4.js → index.es-047537b5.js} +1 -1
  4. package/dist/cjs/map-select-tools_3.cjs.entry.js +5 -5
  5. package/dist/cjs/public-notification.cjs.entry.js +1 -1
  6. package/dist/collection/components/basemap-gallery/basemap-gallery.css +19 -19
  7. package/dist/collection/components/layout-manager/layout-manager.css +73 -73
  8. package/dist/collection/components/map-fullscreen/map-fullscreen.css +19 -19
  9. package/dist/collection/components/map-legend/map-legend.css +3 -3
  10. package/dist/collection/components/map-search/map-search.css +24 -24
  11. package/dist/collection/components/map-select-tools/map-select-tools.js +4 -4
  12. package/dist/collection/demos/new-public-notification.html +16 -2
  13. package/dist/collection/utils/downloadUtils.js +28 -50
  14. package/dist/collection/utils/downloadUtils.ts +7 -13
  15. package/dist/components/downloadUtils.js +28 -50
  16. package/dist/components/map-select-tools2.js +4 -4
  17. package/dist/esm/card-manager_3.entry.js +1 -1
  18. package/dist/esm/{downloadUtils-a3f28bae.js → downloadUtils-8fbd1347.js} +29 -51
  19. package/dist/esm/{index.es-e0432a23.js → index.es-b6705ce7.js} +1 -1
  20. package/dist/esm/map-select-tools_3.entry.js +5 -5
  21. package/dist/esm/public-notification.entry.js +1 -1
  22. package/dist/solutions-components/demos/new-public-notification.html +16 -2
  23. package/dist/solutions-components/{p-02b1befe.js → p-072680a5.js} +12 -12
  24. package/dist/solutions-components/{p-5d5d10d5.js → p-092fd5d9.js} +1 -1
  25. package/dist/solutions-components/{p-4fbf3997.entry.js → p-11cb7b04.entry.js} +1 -1
  26. package/dist/solutions-components/p-7f793144.entry.js +6 -0
  27. package/dist/solutions-components/{p-5a5676d4.entry.js → p-f367db61.entry.js} +1 -1
  28. package/dist/solutions-components/solutions-components.esm.js +1 -1
  29. package/dist/solutions-components/utils/downloadUtils.ts +7 -13
  30. package/dist/types/utils/downloadUtils.d.ts +1 -9
  31. package/package.json +1 -1
  32. package/dist/collection/utils/__b302600c5c884ab280e2ff6dc2e1fc78.json +0 -387
  33. package/dist/solutions-components/p-9183a4ab.entry.js +0 -6
  34. package/dist/solutions-components/utils/__b302600c5c884ab280e2ff6dc2e1fc78.json +0 -387
  35. package/dist/solutions-components_commit.txt +0 -7
@@ -11,7 +11,7 @@ const index = require('./index-2d5760f2.js');
11
11
  const locale = require('./locale-ef06bf9e.js');
12
12
  const mapViewUtils = require('./mapViewUtils-f7bbc35b.js');
13
13
  const loadModules = require('./loadModules-ad1ab1a8.js');
14
- const downloadUtils = require('./downloadUtils-d017810f.js');
14
+ const downloadUtils = require('./downloadUtils-e3e595e9.js');
15
15
  require('./_commonjsHelpers-384729db.js');
16
16
  require('./interfaces-000be6de.js');
17
17
  require('./solution-resource-f9e3b289.js');
@@ -1509,7 +1509,7 @@ function(t){var e=function(t){for(var e=t.length,r=new Uint8Array(e),n=0;n<e;n++
1509
1509
  * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1510
1510
  * ====================================================================
1511
1511
  */
1512
- function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):Promise.resolve().then(function () { return require('./index.es-de35a9a4.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
+ function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):Promise.resolve().then(function () { return require('./index.es-047537b5.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},
1513
1513
  /** ====================================================================
1514
1514
  * @license
1515
1515
  * jsPDF XMP metadata plugin
@@ -2556,28 +2556,21 @@ async function _convertPopupArcadeToLabelSpec(expressionInfo) {
2556
2556
  * @param layer Layer from which to fetch features
2557
2557
  * @return Promise resolving to a set of executors keyed using the expression name
2558
2558
  */
2559
- /*
2560
- async function _createArcadeExecutors(
2561
- labelFormat: string,
2562
- layer: __esri.FeatureLayer
2563
- ): Promise<IArcadeExecutors> {
2564
- const arcadeExecutors: IArcadeExecutors = {};
2565
-
2559
+ async function _createArcadeExecutors(labelFormat, layer) {
2560
+ const arcadeExecutors = {};
2566
2561
  // Are any Arcade expressions in the layer?
2567
2562
  if (!Array.isArray(layer.popupTemplate.expressionInfos) || layer.popupTemplate.expressionInfos.length === 0) {
2568
2563
  return Promise.resolve(arcadeExecutors);
2569
2564
  }
2570
-
2571
2565
  // Are there any Arcade expressions in the label format?
2572
2566
  const arcadeExpressionRegExp = /\{expression\/\w+\}/g;
2573
2567
  const arcadeExpressionsMatches = labelFormat.match(arcadeExpressionRegExp);
2574
2568
  if (!arcadeExpressionsMatches) {
2575
2569
  return Promise.resolve(arcadeExecutors);
2576
2570
  }
2577
-
2578
2571
  // Generate an Arcade executor for each match
2579
- const [arcade] = await loadModules(["esri/arcade"]);
2580
- const labelingProfile: __esri.Profile = {
2572
+ const [arcade] = await loadModules.loadModules(["esri/arcade"]);
2573
+ const labelingProfile = {
2581
2574
  variables: [
2582
2575
  {
2583
2576
  name: "$feature",
@@ -2597,38 +2590,26 @@ async function _createArcadeExecutors(
2597
2590
  }
2598
2591
  ]
2599
2592
  };
2600
-
2601
- const createArcadeExecutorPromises: IArcadeExecutorPromises = {};
2602
- arcadeExpressionsMatches.forEach(
2603
- (match: string) => {
2604
- const expressionName = match.substring(match.indexOf("/") + 1, match.length - 1);
2605
-
2606
- (layer.popupTemplate.expressionInfos || []).forEach(
2607
- expressionInfo => {
2608
- if (expressionInfo.name === expressionName) {
2609
- createArcadeExecutorPromises[expressionName] =
2610
- arcade.createArcadeExecutor(expressionInfo.expression, labelingProfile);
2611
- }
2612
- }
2613
- );
2614
- }
2615
- );
2616
-
2593
+ const createArcadeExecutorPromises = {};
2594
+ arcadeExpressionsMatches.forEach((match) => {
2595
+ const expressionName = match.substring(match.indexOf("/") + 1, match.length - 1);
2596
+ (layer.popupTemplate.expressionInfos || []).forEach(expressionInfo => {
2597
+ if (expressionInfo.name === expressionName) {
2598
+ createArcadeExecutorPromises[expressionName] =
2599
+ arcade.createArcadeExecutor(expressionInfo.expression, labelingProfile);
2600
+ }
2601
+ });
2602
+ });
2617
2603
  const promises = Object.values(createArcadeExecutorPromises);
2618
2604
  return Promise.all(promises)
2619
- .then(
2620
- executors => {
2621
- const expressionNames = Object.keys(createArcadeExecutorPromises);
2622
-
2623
- for (let i = 0; i < expressionNames.length; ++i) {
2624
- arcadeExecutors[expressionNames[i]] = executors[i].valueOf() as __esri.ArcadeExecutor;
2625
- }
2626
-
2627
- return arcadeExecutors;
2605
+ .then(executors => {
2606
+ const expressionNames = Object.keys(createArcadeExecutorPromises);
2607
+ for (let i = 0; i < expressionNames.length; ++i) {
2608
+ arcadeExecutors[expressionNames[i]] = executors[i].valueOf();
2628
2609
  }
2629
- );
2610
+ return arcadeExecutors;
2611
+ });
2630
2612
  }
2631
- */
2632
2613
  /**
2633
2614
  * Creates a title from a list of selection set names.
2634
2615
  *
@@ -3025,7 +3006,7 @@ async function _prepareLabels(webmap, layer, ids, formatUsingLayerPopup = true,
3025
3006
  // Apply the label format
3026
3007
  const labels = labelFormatProps.labelFormat.type === "pattern" ?
3027
3008
  // Export attributes in format
3028
- await _prepareLabelsFromPattern(/*layer,*/ featureSet, attributeOrigNames, attributeTypes, attributeDomains, labelFormatProps.attributeFormats, labelFormatProps.labelFormat.format, includeHeaderNames)
3009
+ await _prepareLabelsFromPattern(layer, featureSet, attributeOrigNames, attributeTypes, attributeDomains, labelFormatProps.attributeFormats, labelFormatProps.labelFormat.format, includeHeaderNames)
3029
3010
  : labelFormatProps.labelFormat.type === "executor" ?
3030
3011
  // Export attributes in expression
3031
3012
  await _prepareLabelsUsingExecutor(featureSet, labelFormatProps.labelFormat.format)
@@ -3075,31 +3056,28 @@ async function _prepareLabelsFromAll(featureSet, attributeTypes, attributeDomain
3075
3056
  * @param includeHeaderNames Add the label format at the front of the list of generated labels
3076
3057
  * @returns Promise resolving with list of labels, each of which is a list of label lines
3077
3058
  */
3078
- async function _prepareLabelsFromPattern(
3079
- //layer: __esri.FeatureLayer,
3080
- featureSet, attributeOrigNames, attributeTypes, attributeDomains, attributeFormats, labelFormat, includeHeaderNames = false) {
3059
+ async function _prepareLabelsFromPattern(layer, featureSet, attributeOrigNames, attributeTypes, attributeDomains, attributeFormats, labelFormat, includeHeaderNames = false) {
3060
+ var _a;
3081
3061
  const [intl] = await loadModules.loadModules(["esri/intl"]);
3082
3062
  // Find the label fields that we need to replace with values
3083
3063
  const attributeExpressionMatches = _getFieldExpressionsFromLabel(labelFormat);
3084
3064
  const attributeNames = _getFieldNamesFromFieldExpressions(attributeExpressionMatches);
3085
3065
  // Do we need any Arcade executors?
3086
- //const arcadeExecutors = await _createArcadeExecutors(labelFormat, layer);
3087
- //const arcadeExpressionRegExp = /\{expression\/\w+\}/g;
3066
+ const arcadeExecutors = await _createArcadeExecutors(labelFormat, layer);
3067
+ const arcadeExpressionRegExp = /\{expression\/\w+\}/g;
3088
3068
  // Find the label fields that we need to replace with values
3089
- //const arcadeExpressionMatches = labelFormat.match(arcadeExpressionRegExp) ?? [];
3069
+ const arcadeExpressionMatches = (_a = labelFormat.match(arcadeExpressionRegExp)) !== null && _a !== void 0 ? _a : [];
3090
3070
  // Convert feature attributes into an array of labels
3091
3071
  const labels = await Promise.all(featureSet.map(async (feature) => {
3092
3072
  var _a;
3093
3073
  let labelPrep = labelFormat;
3094
- /*
3095
- // Replace Arcade expressions in this feature
3074
+ //Replace Arcade expressions in this feature
3096
3075
  for (let i = 0; i < arcadeExpressionMatches.length; i++) {
3097
- const match: string = arcadeExpressionMatches[i];
3076
+ const match = arcadeExpressionMatches[i];
3098
3077
  const expressionName = match.substring(match.indexOf("/") + 1, match.length - 1);
3099
- const value = await arcadeExecutors[expressionName].executeAsync({"$feature": feature, "$layer", layer});
3078
+ const value = await arcadeExecutors[expressionName].executeAsync({ "$feature": feature, "$layer": layer });
3100
3079
  labelPrep = labelPrep.replace(match, value);
3101
3080
  }
3102
- */
3103
3081
  // Replace non-Arcade fields in this feature
3104
3082
  const attributeValues = (_a = feature.attributes) !== null && _a !== void 0 ? _a : feature;
3105
3083
  attributeNames.forEach((attributeName, i) => {
@@ -6,7 +6,7 @@
6
6
  'use strict';
7
7
 
8
8
  const _commonjsHelpers = require('./_commonjsHelpers-384729db.js');
9
- const downloadUtils = require('./downloadUtils-d017810f.js');
9
+ const downloadUtils = require('./downloadUtils-e3e595e9.js');
10
10
  require('./index-2d5760f2.js');
11
11
  require('./loadModules-ad1ab1a8.js');
12
12
  require('./locale-ef06bf9e.js');
@@ -13,7 +13,7 @@ const mapViewUtils = require('./mapViewUtils-f7bbc35b.js');
13
13
  const interfaces = require('./interfaces-000be6de.js');
14
14
  const publicNotificationStore = require('./publicNotificationStore-e1ae21f1.js');
15
15
  const locale = require('./locale-ef06bf9e.js');
16
- const downloadUtils = require('./downloadUtils-d017810f.js');
16
+ const downloadUtils = require('./downloadUtils-e3e595e9.js');
17
17
  require('./index-74222073.js');
18
18
  require('./_commonjsHelpers-384729db.js');
19
19
  require('./solution-resource-f9e3b289.js');
@@ -177,10 +177,10 @@ const MapSelectTools = class {
177
177
  async componentDidLoad() {
178
178
  await this._init();
179
179
  await this._searchWidget.when(() => {
180
- this._searchWidget.allPlaceholder = this._translations.placeholder;
181
- this._searchWidget.defaultSources.forEach(s => {
182
- s.placeholder = this._translations.placeholder;
183
- });
180
+ var _a;
181
+ this._searchWidget.allPlaceholder = ((_a = this.searchConfiguration) === null || _a === void 0 ? void 0 : _a.allPlaceholder) &&
182
+ this.searchConfiguration.allPlaceholder.toLowerCase() !== "find address or place" ?
183
+ this.searchConfiguration.allPlaceholder : this._translations.placeholder;
184
184
  });
185
185
  }
186
186
  /**
@@ -13,7 +13,7 @@ const loadModules = require('./loadModules-ad1ab1a8.js');
13
13
  const mapViewUtils = require('./mapViewUtils-f7bbc35b.js');
14
14
  const publicNotificationStore = require('./publicNotificationStore-e1ae21f1.js');
15
15
  const locale = require('./locale-ef06bf9e.js');
16
- const downloadUtils = require('./downloadUtils-d017810f.js');
16
+ const downloadUtils = require('./downloadUtils-e3e595e9.js');
17
17
  require('./index-74222073.js');
18
18
  require('./_commonjsHelpers-384729db.js');
19
19
  require('./solution-resource-f9e3b289.js');
@@ -1,19 +1,19 @@
1
- /** @license
2
- * Copyright 2022 Esri
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- :host {
18
- display: block;
19
- }
1
+ /** @license
2
+ * Copyright 2022 Esri
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ :host {
18
+ display: block;
19
+ }
@@ -1,73 +1,73 @@
1
- /** @license
2
- * Copyright 2023 Esri
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- :host {
18
- display: block;
19
- }
20
-
21
- .action-center {
22
- -webkit-box-align: center;
23
- -webkit-align-items: center;
24
- -ms-grid-row-align: center;
25
- align-items: center;
26
- align-content: center;
27
- justify-content: center;
28
- }
29
-
30
- .display-flex {
31
- display: flex;
32
- }
33
-
34
- .icon-color {
35
- --calcite-ui-icon-color: var(--calcite-ui-brand);
36
- }
37
-
38
- .icon {
39
- cursor: pointer;
40
- }
41
-
42
- .tooltip-message {
43
- padding: 5px 8px;
44
- font-weight: var(--calcite-font-weight-normal);
45
- color: var(--calcite-ui-text-2);
46
- }
47
-
48
- .header-text {
49
- font-size: var(--calcite-font-size-0);
50
- font-weight: var(--calcite-font-weight-medium);
51
- padding-inline: 0.75rem;
52
- padding-block: 0.875rem;
53
- line-height: 1.25rem;
54
- }
55
-
56
- .img-background {
57
- background-repeat: no-repeat;
58
- background-size: 100% 100%;
59
- width: 38px;
60
- height: 26px;
61
- }
62
-
63
- .grid-background {
64
- background-image: url('../../assets/data/images/grid.png');
65
- }
66
-
67
- .horizontal-background {
68
- background-image: url('../../assets/data/images/horizontal.png');
69
- }
70
-
71
- .vertical-background {
72
- background-image: url('../../assets/data/images/vertical.png');
73
- }
1
+ /** @license
2
+ * Copyright 2023 Esri
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ :host {
18
+ display: block;
19
+ }
20
+
21
+ .action-center {
22
+ -webkit-box-align: center;
23
+ -webkit-align-items: center;
24
+ -ms-grid-row-align: center;
25
+ align-items: center;
26
+ align-content: center;
27
+ justify-content: center;
28
+ }
29
+
30
+ .display-flex {
31
+ display: flex;
32
+ }
33
+
34
+ .icon-color {
35
+ --calcite-ui-icon-color: var(--calcite-ui-brand);
36
+ }
37
+
38
+ .icon {
39
+ cursor: pointer;
40
+ }
41
+
42
+ .tooltip-message {
43
+ padding: 5px 8px;
44
+ font-weight: var(--calcite-font-weight-normal);
45
+ color: var(--calcite-ui-text-2);
46
+ }
47
+
48
+ .header-text {
49
+ font-size: var(--calcite-font-size-0);
50
+ font-weight: var(--calcite-font-weight-medium);
51
+ padding-inline: 0.75rem;
52
+ padding-block: 0.875rem;
53
+ line-height: 1.25rem;
54
+ }
55
+
56
+ .img-background {
57
+ background-repeat: no-repeat;
58
+ background-size: 100% 100%;
59
+ width: 38px;
60
+ height: 26px;
61
+ }
62
+
63
+ .grid-background {
64
+ background-image: url('../../assets/data/images/grid.png');
65
+ }
66
+
67
+ .horizontal-background {
68
+ background-image: url('../../assets/data/images/horizontal.png');
69
+ }
70
+
71
+ .vertical-background {
72
+ background-image: url('../../assets/data/images/vertical.png');
73
+ }
@@ -1,19 +1,19 @@
1
- /** @license
2
- * Copyright 2022 Esri
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- :host {
18
- display: block;
19
- }
1
+ /** @license
2
+ * Copyright 2022 Esri
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ :host {
18
+ display: block;
19
+ }
@@ -1,3 +1,3 @@
1
- :host {
2
- display: block;
3
- }
1
+ :host {
2
+ display: block;
3
+ }
@@ -1,24 +1,24 @@
1
- /** @license
2
- * Copyright 2022 Esri
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- :host {
18
- display: block;
19
- }
20
-
21
- .search-widget {
22
- width: 100% !important;
23
- border: 1px solid var(--calcite-ui-border-input);
24
- }
1
+ /** @license
2
+ * Copyright 2022 Esri
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ :host {
18
+ display: block;
19
+ }
20
+
21
+ .search-widget {
22
+ width: 100% !important;
23
+ border: 1px solid var(--calcite-ui-border-input);
24
+ }
@@ -179,10 +179,10 @@ export class MapSelectTools {
179
179
  async componentDidLoad() {
180
180
  await this._init();
181
181
  await this._searchWidget.when(() => {
182
- this._searchWidget.allPlaceholder = this._translations.placeholder;
183
- this._searchWidget.defaultSources.forEach(s => {
184
- s.placeholder = this._translations.placeholder;
185
- });
182
+ var _a;
183
+ this._searchWidget.allPlaceholder = ((_a = this.searchConfiguration) === null || _a === void 0 ? void 0 : _a.allPlaceholder) &&
184
+ this.searchConfiguration.allPlaceholder.toLowerCase() !== "find address or place" ?
185
+ this.searchConfiguration.allPlaceholder : this._translations.placeholder;
186
186
  });
187
187
  }
188
188
  /**
@@ -74,13 +74,27 @@
74
74
  Legend,
75
75
  esriConfig
76
76
  ) => {
77
+ let itemId;
78
+ var vars = window.location.search.substring(1).split('&');
79
+ vars.forEach((param) => {
80
+ let vals = param.split('=');
81
+ const v = vals[1];
82
+ switch (vals[0]) {
83
+ case "id":
84
+ itemId = v;
85
+ break;
86
+ default:
87
+ break;
88
+ }
89
+ });
90
+
77
91
  //esriConfig.portalUrl = "https://solutions.mapsdevext.arcgis.com";
78
92
  var webMap = new WebMap({
79
93
  portalItem: {
80
94
  // solutions
81
- id: "184679b8ae6c4575830176ba64b9037e"
95
+ id: itemId ? itemId : "3715f4899bea4b2a948347c5c2357e58"
82
96
  // InstantApps
83
- //id: "863e4f6f2a7840db896cc1b1606d552d"
97
+ //id: itemId ? itemId : "863e4f6f2a7840db896cc1b1606d552d"
84
98
  }
85
99
  });
86
100