@esri/solutions-components 0.7.43 → 0.7.45

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 (53) hide show
  1. package/dist/cjs/calcite-alert_4.cjs.entry.js +1 -1
  2. package/dist/cjs/calcite-combobox_5.cjs.entry.js +1 -1
  3. package/dist/cjs/calcite-flow_5.cjs.entry.js +1 -1
  4. package/dist/cjs/card-manager_3.cjs.entry.js +12 -7
  5. package/dist/cjs/crowdsource-manager.cjs.entry.js +1 -1
  6. package/dist/cjs/crowdsource-reporter.cjs.entry.js +1 -1
  7. package/dist/cjs/{downloadUtils-7d4985c0.js → downloadUtils-82bc9a04.js} +9 -12
  8. package/dist/cjs/{index.es-8cef354a.js → index.es-79d8773c.js} +2 -2
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/cjs/map-select-tools_3.cjs.entry.js +2 -2
  11. package/dist/cjs/{mapViewUtils-290dbc9e.js → mapViewUtils-3e0fa457.js} +4 -8
  12. package/dist/cjs/public-notification.cjs.entry.js +2 -2
  13. package/dist/cjs/solutions-components.cjs.js +1 -1
  14. package/dist/collection/components/layer-table/layer-table.js +13 -5
  15. package/dist/collection/utils/downloadUtils.js +7 -10
  16. package/dist/collection/utils/downloadUtils.ts +13 -13
  17. package/dist/collection/utils/queryUtils.js +4 -8
  18. package/dist/collection/utils/queryUtils.ts +6 -9
  19. package/dist/components/downloadUtils.js +7 -10
  20. package/dist/components/layer-table2.js +12 -5
  21. package/dist/components/queryUtils.js +4 -8
  22. package/dist/esm/calcite-alert_4.entry.js +1 -1
  23. package/dist/esm/calcite-combobox_5.entry.js +1 -1
  24. package/dist/esm/calcite-flow_5.entry.js +1 -1
  25. package/dist/esm/card-manager_3.entry.js +12 -7
  26. package/dist/esm/crowdsource-manager.entry.js +1 -1
  27. package/dist/esm/crowdsource-reporter.entry.js +1 -1
  28. package/dist/esm/{downloadUtils-d5928e55.js → downloadUtils-3bab4b5f.js} +9 -12
  29. package/dist/esm/{index.es-a1725c19.js → index.es-be703f2b.js} +2 -2
  30. package/dist/esm/loader.js +1 -1
  31. package/dist/esm/map-select-tools_3.entry.js +2 -2
  32. package/dist/esm/{mapViewUtils-a177d4f9.js → mapViewUtils-20504620.js} +4 -8
  33. package/dist/esm/public-notification.entry.js +2 -2
  34. package/dist/esm/solutions-components.js +1 -1
  35. package/dist/solutions-components/p-4623754a.entry.js +6 -0
  36. package/dist/solutions-components/{p-42233edc.entry.js → p-766c0b57.entry.js} +1 -1
  37. package/dist/solutions-components/{p-7f374ec7.js → p-91d3732f.js} +1 -1
  38. package/dist/solutions-components/{p-3e88e0bd.entry.js → p-a4bb0787.entry.js} +1 -1
  39. package/dist/solutions-components/{p-c6af6407.entry.js → p-c05467fd.entry.js} +1 -1
  40. package/dist/solutions-components/p-c897e3eb.js +36 -0
  41. package/dist/solutions-components/{p-ac9c29da.entry.js → p-d561c970.entry.js} +1 -1
  42. package/dist/solutions-components/{p-12fc82a9.js → p-d9995b7e.js} +4 -4
  43. package/dist/solutions-components/{p-32adb2cc.entry.js → p-dbb6f1e2.entry.js} +1 -1
  44. package/dist/solutions-components/{p-6fe5e1d5.entry.js → p-e46617d1.entry.js} +2 -2
  45. package/dist/solutions-components/{p-6c86a392.entry.js → p-e8cd89c2.entry.js} +1 -1
  46. package/dist/solutions-components/solutions-components.esm.js +1 -1
  47. package/dist/solutions-components/utils/downloadUtils.ts +13 -13
  48. package/dist/solutions-components/utils/queryUtils.ts +6 -9
  49. package/dist/types/components/layer-table/layer-table.d.ts +8 -4
  50. package/dist/types/utils/downloadUtils.d.ts +3 -3
  51. package/package.json +1 -1
  52. package/dist/solutions-components/p-3eedaead.js +0 -36
  53. package/dist/solutions-components/p-45698f2a.entry.js +0 -6
@@ -16,7 +16,7 @@ const openCloseComponent = require('./openCloseComponent-19a769d0.js');
16
16
  const t9n = require('./t9n-993a84de.js');
17
17
  const resources = require('./resources-dd8ff1b4.js');
18
18
  const locale$1 = require('./locale-8c42ba7a.js');
19
- const mapViewUtils = require('./mapViewUtils-290dbc9e.js');
19
+ const mapViewUtils = require('./mapViewUtils-3e0fa457.js');
20
20
  const popupUtils = require('./popupUtils-824d2f7c.js');
21
21
  require('./guid-ae73cd27.js');
22
22
  require('./resources-9447c777.js');
@@ -26,7 +26,7 @@ const Validation = require('./Validation-b02c6710.js');
26
26
  const debounce = require('./debounce-30afab47.js');
27
27
  const key = require('./key-c5504030.js');
28
28
  const locale$1 = require('./locale-8c42ba7a.js');
29
- const mapViewUtils = require('./mapViewUtils-290dbc9e.js');
29
+ const mapViewUtils = require('./mapViewUtils-3e0fa457.js');
30
30
  const publicNotificationStore = require('./publicNotificationStore-ef379d11.js');
31
31
  require('./resources-9447c777.js');
32
32
  require('./browser-d08a5f99.js');
@@ -16,7 +16,7 @@ const locale = require('./locale-d237c9d5.js');
16
16
  const t9n = require('./t9n-993a84de.js');
17
17
  const resources = require('./resources-3e593312.js');
18
18
  const locale$1 = require('./locale-8c42ba7a.js');
19
- const mapViewUtils = require('./mapViewUtils-290dbc9e.js');
19
+ const mapViewUtils = require('./mapViewUtils-3e0fa457.js');
20
20
  const popupUtils = require('./popupUtils-824d2f7c.js');
21
21
  require('./guid-ae73cd27.js');
22
22
  require('./resources-9447c777.js');
@@ -9,8 +9,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
10
  const index = require('./index-105cf2b9.js');
11
11
  const locale = require('./locale-8c42ba7a.js');
12
- const mapViewUtils = require('./mapViewUtils-290dbc9e.js');
13
- const downloadUtils = require('./downloadUtils-7d4985c0.js');
12
+ const mapViewUtils = require('./mapViewUtils-3e0fa457.js');
13
+ const downloadUtils = require('./downloadUtils-82bc9a04.js');
14
14
  require('./esri-loader-a91c0ec1.js');
15
15
  require('./_commonjsHelpers-384729db.js');
16
16
  require('./interfaces-7cd0a48a.js');
@@ -112,10 +112,6 @@ const LayerTable = class {
112
112
  constructor(hostRef) {
113
113
  index.registerInstance(this, hostRef);
114
114
  this.featureSelectionChange = index.createEvent(this, "featureSelectionChange", 7);
115
- /**
116
- * number[]: A list of all IDs for the current layer
117
- */
118
- this._allIds = [];
119
115
  /**
120
116
  * boolean: When true the ctrl key is currently pressed
121
117
  */
@@ -171,6 +167,7 @@ const LayerTable = class {
171
167
  this.shareIncludeSocial = undefined;
172
168
  this.showNewestFirst = undefined;
173
169
  this.zoomAndScrollToSelected = undefined;
170
+ this._allIds = [];
174
171
  this._controlsThatFit = undefined;
175
172
  this._csvExporting = false;
176
173
  this._fetchingData = false;
@@ -239,6 +236,13 @@ const LayerTable = class {
239
236
  this._initToolInfos();
240
237
  }
241
238
  }
239
+ /**
240
+ * watch for changes in map info and update the toolbar
241
+ */
242
+ async mapInfoWatchHandler() {
243
+ this._initToolInfos();
244
+ this._updateToolbar();
245
+ }
242
246
  /**
243
247
  * watch for changes in map view and get the first layer
244
248
  */
@@ -1350,7 +1354,7 @@ const LayerTable = class {
1350
1354
  exportInfos, false, // formatUsingLayerPopup
1351
1355
  false, // removeDuplicates
1352
1356
  true, // addColumnTitle
1353
- fields, true);
1357
+ fields, true, true);
1354
1358
  this._updateToolInfoLoading("export", false);
1355
1359
  this._csvExporting = false;
1356
1360
  }
@@ -1495,6 +1499,7 @@ const LayerTable = class {
1495
1499
  "enableShare": ["enableShareWatchHandler"],
1496
1500
  "_controlsThatFit": ["_controlsThatFitWatchHandler"],
1497
1501
  "isMobile": ["isMobileWatchHandler"],
1502
+ "mapInfo": ["mapInfoWatchHandler"],
1498
1503
  "mapView": ["mapViewWatchHandler"],
1499
1504
  "_layer": ["_layerWatchHandler"],
1500
1505
  "selectedIds": ["selectedIdsWatchHandler"]
@@ -10,7 +10,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
10
10
  const index = require('./index-105cf2b9.js');
11
11
  const locale = require('./locale-8c42ba7a.js');
12
12
  const interfaces = require('./interfaces-7cd0a48a.js');
13
- const mapViewUtils = require('./mapViewUtils-290dbc9e.js');
13
+ const mapViewUtils = require('./mapViewUtils-3e0fa457.js');
14
14
  require('./esri-loader-a91c0ec1.js');
15
15
  require('./_commonjsHelpers-384729db.js');
16
16
 
@@ -9,7 +9,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
10
  const index = require('./index-105cf2b9.js');
11
11
  const locale = require('./locale-8c42ba7a.js');
12
- const mapViewUtils = require('./mapViewUtils-290dbc9e.js');
12
+ const mapViewUtils = require('./mapViewUtils-3e0fa457.js');
13
13
  require('./esri-loader-a91c0ec1.js');
14
14
  require('./_commonjsHelpers-384729db.js');
15
15
  require('./interfaces-7cd0a48a.js');
@@ -8,7 +8,7 @@
8
8
  const _commonjsHelpers = require('./_commonjsHelpers-384729db.js');
9
9
  const index = require('./index-105cf2b9.js');
10
10
  const locale = require('./locale-8c42ba7a.js');
11
- const mapViewUtils = require('./mapViewUtils-290dbc9e.js');
11
+ const mapViewUtils = require('./mapViewUtils-3e0fa457.js');
12
12
  require('./solution-resource-abec7452.js');
13
13
  require('./index-f64944ad.js');
14
14
  const restHelpersGet = require('./restHelpersGet-e0737480.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):Promise.resolve().then(function () { return require('./index.es-8cef354a.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
+ function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):Promise.resolve().then(function () { return require('./index.es-79d8773c.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
@@ -2364,12 +2364,12 @@ const lineSeparatorChar = "|";
2364
2364
  * @param includeHeaderNames Add the label format at the front of the list of generated labels
2365
2365
  * @returns selectionSetNames that will be used for export filenames
2366
2366
  */
2367
- async function consolidateLabels(webmap, exportInfos, formatUsingLayerPopup = true, includeHeaderNames = false, isCSVExport = false, fields = [], useFieldAliasNames = false) {
2367
+ async function consolidateLabels(webmap, exportInfos, formatUsingLayerPopup = true, includeHeaderNames = false, isCSVExport = false, fields = undefined, useFieldAliasNames = false, filterFields = false) {
2368
2368
  const labelRequests = [];
2369
2369
  Object.keys(exportInfos).forEach(k => {
2370
2370
  var _a;
2371
2371
  const labelInfo = exportInfos[k];
2372
- labelRequests.push(_prepareLabels(webmap, ((_a = labelInfo.layerView) === null || _a === void 0 ? void 0 : _a.layer) || labelInfo.layer, labelInfo.ids, formatUsingLayerPopup, includeHeaderNames, fields, useFieldAliasNames));
2372
+ labelRequests.push(_prepareLabels(webmap, ((_a = labelInfo.layerView) === null || _a === void 0 ? void 0 : _a.layer) || labelInfo.layer, labelInfo.ids, formatUsingLayerPopup, includeHeaderNames, fields, useFieldAliasNames, filterFields));
2373
2373
  if (isCSVExport) {
2374
2374
  // add the layer id as a temp value separator that we can use to split values for CSV export
2375
2375
  labelRequests.push(Promise.resolve([[k]]));
@@ -2389,8 +2389,8 @@ async function consolidateLabels(webmap, exportInfos, formatUsingLayerPopup = tr
2389
2389
  * @param addColumnTitle Indicates if column headings should be included in output
2390
2390
  * @returns Promise resolving when function is done
2391
2391
  */
2392
- async function downloadCSV(webmap, exportInfos, formatUsingLayerPopup, removeDuplicates = false, addColumnTitle = false, fields = [], useFieldAliasNames = false) {
2393
- let labels = await consolidateLabels(webmap, exportInfos, formatUsingLayerPopup, addColumnTitle, true, fields, useFieldAliasNames);
2392
+ async function downloadCSV(webmap, exportInfos, formatUsingLayerPopup, removeDuplicates = false, addColumnTitle = false, fields = undefined, useFieldAliasNames = false, filterFields = false) {
2393
+ let labels = await consolidateLabels(webmap, exportInfos, formatUsingLayerPopup, addColumnTitle, true, fields, useFieldAliasNames, filterFields);
2394
2394
  labels = removeDuplicates ? removeDuplicateLabels(labels) : labels;
2395
2395
  const layerIds = Object.keys(exportInfos);
2396
2396
  let layerLabels = [];
@@ -2926,10 +2926,7 @@ function _prepareAttributeValue(attributeValue, attributeType, attributeDomain,
2926
2926
  * @param includeHeaderNames Add the label format at the front of the list of generated labels
2927
2927
  * @returns Promise resolving when function is done
2928
2928
  */
2929
- async function _prepareLabels(webmap, layer, ids, formatUsingLayerPopup = true, includeHeaderNames = false, fields = [], useFieldAliasNames = false) {
2930
- if (fields.length === 0) {
2931
- fields = layer.fields.map(f => f.name.toLowerCase());
2932
- }
2929
+ async function _prepareLabels(webmap, layer, ids, formatUsingLayerPopup = true, includeHeaderNames = false, fields = undefined, useFieldAliasNames = false, filterFields = false) {
2933
2930
  // Get the label formatting, if any
2934
2931
  const labelFormatProps = await _getLabelFormat(webmap, layer, formatUsingLayerPopup);
2935
2932
  // Because the label may actually come from a related layer, we'll use the layer that comes back from _getLabelFormat.
@@ -2996,7 +2993,7 @@ async function _prepareLabels(webmap, layer, ids, formatUsingLayerPopup = true,
2996
2993
  const attributeDomains = {};
2997
2994
  if (featureLayer.fields) {
2998
2995
  featureLayer.fields.forEach(field => {
2999
- if (fields.indexOf(field.name.toLowerCase()) > -1) {
2996
+ if (filterFields ? fields.indexOf(field.name.toLowerCase()) > -1 : true) {
3000
2997
  const lowercaseFieldname = field.name.toLowerCase();
3001
2998
  attributeOrigNames[lowercaseFieldname] = field.name;
3002
2999
  attributeDomains[lowercaseFieldname] = field.domain;
@@ -3007,7 +3004,7 @@ async function _prepareLabels(webmap, layer, ids, formatUsingLayerPopup = true,
3007
3004
  else {
3008
3005
  // Feature layer is missing fields, so get info from first feature
3009
3006
  Object.keys(featureSet[0]).forEach(fieldName => {
3010
- if (fields.indexOf(fieldName.toLowerCase()) > -1) {
3007
+ if (filterFields ? fields.indexOf(fieldName.toLowerCase()) > -1 : true) {
3011
3008
  const lowercaseFieldname = fieldName.toLowerCase();
3012
3009
  attributeOrigNames[lowercaseFieldname] = fieldName;
3013
3010
  }
@@ -6,11 +6,11 @@
6
6
  'use strict';
7
7
 
8
8
  const _commonjsHelpers = require('./_commonjsHelpers-384729db.js');
9
- const downloadUtils = require('./downloadUtils-7d4985c0.js');
9
+ const downloadUtils = require('./downloadUtils-82bc9a04.js');
10
10
  require('./index-105cf2b9.js');
11
11
  require('./locale-8c42ba7a.js');
12
12
  require('./esri-loader-a91c0ec1.js');
13
- require('./mapViewUtils-290dbc9e.js');
13
+ require('./mapViewUtils-3e0fa457.js');
14
14
  require('./interfaces-7cd0a48a.js');
15
15
  require('./solution-resource-abec7452.js');
16
16
  require('./index-f64944ad.js');