@esri/solutions-components 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. package/dist/cjs/buffer-tools_4.cjs.entry.js +1 -2
  2. package/dist/cjs/calcite-combobox_3.cjs.entry.js +1 -1
  3. package/dist/cjs/calcite-input-text_5.cjs.entry.js +11 -5
  4. package/dist/cjs/{downloadUtils-7a0fd3c0.js → downloadUtils-fab9323c.js} +6 -6
  5. package/dist/cjs/{index.es-9965b78c.js → index.es-99057cf5.js} +2 -2
  6. package/dist/cjs/layer-table_2.cjs.entry.js +2 -2
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/cjs/{mapViewUtils-c45571b9.js → mapViewUtils-3bb4bce3.js} +11 -3
  9. package/dist/cjs/public-notification.cjs.entry.js +14 -7
  10. package/dist/cjs/solutions-components.cjs.js +1 -1
  11. package/dist/collection/components/map-draw-tools/map-draw-tools.js +1 -2
  12. package/dist/collection/components/pdf-download/pdf-download.js +9 -3
  13. package/dist/collection/components/public-notification/public-notification.js +13 -5
  14. package/dist/collection/utils/downloadUtils.js +4 -4
  15. package/dist/collection/utils/downloadUtils.ts +4 -4
  16. package/dist/collection/utils/queryUtils.js +11 -3
  17. package/dist/collection/utils/queryUtils.ts +21 -5
  18. package/dist/components/downloadUtils.js +4 -4
  19. package/dist/components/map-draw-tools2.js +1 -2
  20. package/dist/components/pdf-download2.js +9 -3
  21. package/dist/components/public-notification.js +13 -5
  22. package/dist/components/queryUtils.js +11 -3
  23. package/dist/esm/buffer-tools_4.entry.js +1 -2
  24. package/dist/esm/calcite-combobox_3.entry.js +1 -1
  25. package/dist/esm/calcite-input-text_5.entry.js +11 -5
  26. package/dist/esm/{downloadUtils-a447bab1.js → downloadUtils-d1ac854a.js} +6 -6
  27. package/dist/esm/{index.es-b9cb902a.js → index.es-27da806f.js} +2 -2
  28. package/dist/esm/layer-table_2.entry.js +2 -2
  29. package/dist/esm/loader.js +1 -1
  30. package/dist/esm/{mapViewUtils-27dfdc29.js → mapViewUtils-463d14af.js} +11 -3
  31. package/dist/esm/public-notification.entry.js +14 -7
  32. package/dist/esm/solutions-components.js +1 -1
  33. package/dist/solutions-components/p-12e7c4f5.entry.js +6 -0
  34. package/dist/solutions-components/{p-db099e05.entry.js → p-4b9aae87.entry.js} +1 -1
  35. package/dist/solutions-components/{p-984abc85.entry.js → p-4de3984c.entry.js} +2 -2
  36. package/dist/solutions-components/{p-80757ebd.js → p-6113411f.js} +1 -1
  37. package/dist/solutions-components/p-8fa800dd.js +36 -0
  38. package/dist/solutions-components/{p-345f517c.js → p-ccc06331.js} +3 -3
  39. package/dist/solutions-components/p-e037d355.entry.js +6 -0
  40. package/dist/solutions-components/solutions-components.esm.js +1 -1
  41. package/dist/solutions-components/utils/downloadUtils.ts +4 -4
  42. package/dist/solutions-components/utils/queryUtils.ts +21 -5
  43. package/dist/types/components/public-notification/public-notification.d.ts +4 -0
  44. package/dist/types/utils/queryUtils.d.ts +1 -1
  45. package/package.json +1 -1
  46. package/dist/solutions-components/p-2f4e1ddf.entry.js +0 -6
  47. package/dist/solutions-components/p-4b426bab.js +0 -36
  48. package/dist/solutions-components/p-6e807c80.entry.js +0 -6
@@ -237,7 +237,7 @@ const PdfDownload = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
237
237
  * @returns Promise resolving when function is done
238
238
  */
239
239
  async downloadCSV(exportInfos, removeDuplicates, addColumnTitle = true) {
240
- void downloadCSV(exportInfos, true, // formatUsingLayerPopup
240
+ return downloadCSV(exportInfos, true, // formatUsingLayerPopup
241
241
  removeDuplicates, addColumnTitle);
242
242
  }
243
243
  /**
@@ -250,7 +250,8 @@ const PdfDownload = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
250
250
  * @returns Promise resolving when function is done
251
251
  */
252
252
  async downloadPDF(exportInfos, removeDuplicates = false, title = "", initialImageDataUrl = "") {
253
- void downloadPDF(exportInfos, this._labelInfoElement.selectedOption.value, removeDuplicates, title, initialImageDataUrl);
253
+ var _c;
254
+ return downloadPDF(exportInfos, (_c = this._labelInfoElement.selectedOption) === null || _c === void 0 ? void 0 : _c.value, removeDuplicates, title, initialImageDataUrl);
254
255
  }
255
256
  //--------------------------------------------------------------------------
256
257
  //
@@ -332,11 +333,16 @@ const PdfDownload = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
332
333
  const _b = parseInt(b.descriptionPDF.labelsPerPageDisplay, 10);
333
334
  return _a < _b ? -1 : _a > _b ? 1 : 0;
334
335
  });
335
- sortedPdfIndo.forEach((l) => {
336
+ sortedPdfIndo.forEach((l, i) => {
336
337
  const option = document.createElement("calcite-option");
337
338
  option.value = l;
338
339
  option.innerHTML = this._getLabelSizeText(l);
339
340
  this._labelInfoElement.appendChild(option);
341
+ if (i === 0) {
342
+ // Setting selected wasn't enough to trigger it being the 'selectedOption'
343
+ option.selected = true;
344
+ this._labelInfoElement.selectedOption = option;
345
+ }
340
346
  });
341
347
  }
342
348
  get el() { return this; }
@@ -84,6 +84,7 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
84
84
  this._addTitle = false;
85
85
  this._downloadActive = true;
86
86
  this._exportType = EExportType.PDF;
87
+ this._fetchingData = false;
87
88
  this._isMobile = undefined;
88
89
  this._numDuplicates = 0;
89
90
  this._pageType = EPageType.LIST;
@@ -153,7 +154,9 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
153
154
  this.mapView.popupEnabled = pageType !== EPageType.LIST ? false : this._popupsEnabled;
154
155
  }
155
156
  if (pageType === EPageType.EXPORT) {
157
+ this._fetchingData = true;
156
158
  this._numDuplicates = await this._getNumDuplicates();
159
+ this._fetchingData = false;
157
160
  }
158
161
  this._clearHighlight();
159
162
  if (oldPageType === EPageType.SELECT || oldPageType === EPageType.REFINE) {
@@ -516,7 +519,7 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
516
519
  _getExportPage() {
517
520
  const hasSelections = this._hasSelections(this.showRefineSelection);
518
521
  const displayDuplicatesClass = this._numDuplicates > 0 ? "display-block" : "display-none";
519
- return (h("calcite-panel", null, h("div", null, this._getLabel(this._translations.export, false), hasSelections ? (h("div", null, this._getNotice(this._translations.exportTip, "padding-sides-1"), this._getLabel(this._translations.exportListsLabel), this._getExportSelectionLists(), h("div", { class: "padding-sides-1 " + displayDuplicatesClass }, h("div", { class: "display-flex" }, h("calcite-label", { layout: "inline" }, h("calcite-checkbox", { ref: (el) => { this._removeDuplicates = el; } }), h("div", { class: "display-flex" }, this._translations.removeDuplicate, h("div", { class: "info-message padding-start-1-2" }, h("calcite-input-message", { class: "info-blue margin-top-0", scale: "m" }, ` ${this._translations.numDuplicates.replace("{{n}}", this._numDuplicates.toString())}`)))), h("calcite-icon", { class: "padding-start-1-2 icon", icon: "question", id: "remove-duplicates-icon", scale: "s" })), h("calcite-popover", { closable: true, label: "", referenceElement: "remove-duplicates-icon" }, h("span", { class: "tooltip-message" }, this._translations.duplicatesTip))), h("div", { class: "border-bottom" }), h("div", { class: "padding-top-sides-1" }, h("calcite-segmented-control", { class: "w-100", onCalciteSegmentedControlChange: (evt) => this._exportTypeChange(evt) }, h("calcite-segmented-control-item", { checked: this._exportType === EExportType.PDF, class: "w-50 end-border", value: EExportType.PDF }, h("span", { class: "font-weight-500" }, this._translations.pdf)), h("calcite-segmented-control-item", { checked: this._exportType === EExportType.CSV, class: "w-50", value: EExportType.CSV }, h("span", { class: "font-weight-500" }, this._translations.csv)))), h("div", { class: "padding-bottom-1" }, this._getExportOptions()), h("div", { class: "padding-1 display-flex" }, h("calcite-button", { disabled: !this._downloadActive, onClick: () => void this._export(), width: "full" }, h("span", { class: "font-weight-500" }, this._translations.export))))) : (this._getNotice(this._translations.downloadNoLists, "padding-sides-1 padding-bottom-1")))));
522
+ return (h("calcite-panel", null, h("div", null, this._getLabel(this._translations.export, false), hasSelections ? (h("div", null, this._getNotice(this._translations.exportTip, "padding-sides-1"), this._getLabel(this._translations.exportListsLabel), this._getExportSelectionLists(), h("div", { class: "padding-sides-1 " + displayDuplicatesClass }, h("div", { class: "display-flex" }, h("calcite-label", { layout: "inline" }, h("calcite-checkbox", { ref: (el) => { this._removeDuplicates = el; } }), h("div", { class: "display-flex" }, this._translations.removeDuplicate, h("div", { class: "info-message padding-start-1-2" }, h("calcite-input-message", { class: "info-blue margin-top-0", scale: "m" }, ` ${this._translations.numDuplicates.replace("{{n}}", this._numDuplicates.toString())}`)))), h("calcite-icon", { class: "padding-start-1-2 icon", icon: "question", id: "remove-duplicates-icon", scale: "s" })), h("calcite-popover", { closable: true, label: "", referenceElement: "remove-duplicates-icon" }, h("span", { class: "tooltip-message" }, this._translations.duplicatesTip))), h("div", { class: "border-bottom" }), h("div", { class: "padding-top-sides-1" }, h("calcite-segmented-control", { class: "w-100", onCalciteSegmentedControlChange: (evt) => this._exportTypeChange(evt) }, h("calcite-segmented-control-item", { checked: this._exportType === EExportType.PDF, class: "w-50 end-border", value: EExportType.PDF }, h("span", { class: "font-weight-500" }, this._translations.pdf)), h("calcite-segmented-control-item", { checked: this._exportType === EExportType.CSV, class: "w-50", value: EExportType.CSV }, h("span", { class: "font-weight-500" }, this._translations.csv)))), h("div", { class: "padding-bottom-1" }, this._getExportOptions()), h("div", { class: "padding-1 display-flex" }, h("calcite-button", { disabled: !this._downloadActive, loading: this._fetchingData, onClick: () => void this._export(), width: "full" }, h("span", { class: "font-weight-500" }, this._translations.export))))) : (this._getNotice(this._translations.downloadNoLists, "padding-sides-1 padding-bottom-1")))));
520
523
  }
521
524
  /**
522
525
  * Store the user selected export type CSV || PDF
@@ -623,7 +626,9 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
623
626
  return ss;
624
627
  });
625
628
  this._downloadActive = isActive;
629
+ this._fetchingData = true;
626
630
  this._numDuplicates = await this._getNumDuplicates();
631
+ this._fetchingData = false;
627
632
  await this._highlightFeatures();
628
633
  }
629
634
  /**
@@ -640,11 +645,15 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
640
645
  const screenshot = await this.mapView.takeScreenshot({ width: 1500, height: 2000 });
641
646
  initialImageDataUrl = screenshot === null || screenshot === void 0 ? void 0 : screenshot.dataUrl;
642
647
  }
648
+ this._fetchingData = true;
643
649
  // Create the labels for each selection set
644
- void this._downloadTools.downloadPDF(exportInfos, this._removeDuplicates.checked, this._addTitle ? this._title.value : "", initialImageDataUrl);
650
+ await this._downloadTools.downloadPDF(exportInfos, this._removeDuplicates.checked, this._addTitle ? this._title.value : "", initialImageDataUrl);
651
+ this._fetchingData = false;
645
652
  }
646
653
  if (this._exportType === EExportType.CSV) {
647
- void this._downloadTools.downloadCSV(exportInfos, this._removeDuplicates.checked);
654
+ this._fetchingData = true;
655
+ await this._downloadTools.downloadCSV(exportInfos, this._removeDuplicates.checked);
656
+ this._fetchingData = false;
648
657
  }
649
658
  }
650
659
  /**
@@ -833,8 +842,6 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
833
842
  _checkPopups() {
834
843
  var _a;
835
844
  if (typeof this._popupsEnabled !== 'boolean') {
836
- // this is a temp workaround to handle a mapView spec change
837
- // I don't see where we can get early access to 4.27 types in our package.json
838
845
  this._popupsEnabled = (_a = this.mapView) === null || _a === void 0 ? void 0 : _a.popupEnabled;
839
846
  }
840
847
  }
@@ -889,6 +896,7 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
889
896
  "_addTitle": [32],
890
897
  "_downloadActive": [32],
891
898
  "_exportType": [32],
899
+ "_fetchingData": [32],
892
900
  "_isMobile": [32],
893
901
  "_numDuplicates": [32],
894
902
  "_pageType": [32],
@@ -68,10 +68,18 @@ async function queryObjectIds(geometries, layer) {
68
68
  *
69
69
  * @returns Promise with the featureSet from the layer that match the provided ids
70
70
  */
71
- async function queryFeaturesByID(ids, layer) {
71
+ async function queryFeaturesByID(ids, layer, start, graphics) {
72
+ const num = layer.capabilities.query.maxRecordCount;
72
73
  const q = layer.createQuery();
73
- q.objectIds = ids;
74
- return layer.queryFeatures(q);
74
+ q.start = start;
75
+ q.num = num;
76
+ q.objectIds = ids.slice(start, num);
77
+ const result = await layer.queryFeatures(q);
78
+ graphics = graphics.concat(result.features);
79
+ const remainingIds = ids.slice(num, ids.length);
80
+ return remainingIds.length > 0 ?
81
+ queryFeaturesByID(remainingIds, layer, start += num, graphics) :
82
+ Promise.resolve(graphics);
75
83
  }
76
84
  /**
77
85
  * Query the layer for features that intersect the provided geometry
@@ -1315,8 +1315,7 @@ const MapDrawTools = class {
1315
1315
  },
1316
1316
  undoRedoMenu: false,
1317
1317
  settingsMenu: this.drawMode === EDrawMode.SKETCH
1318
- } // temp workaround since we need duplicateButton flag that is not in 4.26 types but will be in the 4.27 modules we get from IA
1319
- }));
1318
+ } }));
1320
1319
  this._sketchViewModel = new this.SketchViewModel(Object.assign({}, sketchOptions));
1321
1320
  this._sketchWidget.viewModel.polylineSymbol = this.polylineSymbol;
1322
1321
  this._sketchWidget.viewModel.pointSymbol = this.pointSymbol;
@@ -19,7 +19,7 @@ import { c as connectMessages, s as setUpMessages, d as disconnectMessages, u as
19
19
  import { C as ComboboxChildSelector, b as getItemAncestors, c as getItemChildren, h as hasActiveChildren, d as ComboboxItem$1, e as ComboboxItemGroup, g as getAncestors, a as getDepth } from './utils-1095d24d.js';
20
20
  import { d as debounce } from './debounce-4c884e5c.js';
21
21
  import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot-d3eebe7f.js';
22
- import { i as getMapLayerIds, k as getMapLayerHash } from './mapViewUtils-27dfdc29.js';
22
+ import { i as getMapLayerIds, k as getMapLayerHash } from './mapViewUtils-463d14af.js';
23
23
  import { s as state } from './publicNotificationStore-c36d95bf.js';
24
24
  import './resources-e83f65b3.js';
25
25
  import './key-218d8d4d.js';
@@ -16,11 +16,11 @@ import { u as updateMessages, c as connectMessages, d as disconnectMessages, s a
16
16
  import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot-d3eebe7f.js';
17
17
  import { K as KindIcons } from './resources-cfdc6def.js';
18
18
  import { l as loadModules } from './loadModules-cd3569de.js';
19
- import { g as goToSelection, h as highlightFeatures, a as queryObjectIds, b as getQueryGeoms, c as getMapLayerView, d as queryFeaturesByGeometry, e as getIdSets, f as highlightAllFeatures } from './mapViewUtils-27dfdc29.js';
19
+ import { g as goToSelection, h as highlightFeatures, a as queryObjectIds, b as getQueryGeoms, c as getMapLayerView, d as queryFeaturesByGeometry, e as getIdSets, f as highlightAllFeatures } from './mapViewUtils-463d14af.js';
20
20
  import { c as EWorkflowType, e as ESelectionMode, f as EDrawMode } from './interfaces-523c6558.js';
21
21
  import { s as state } from './publicNotificationStore-c36d95bf.js';
22
22
  import { a as getComponentClosestLanguage, g as getLocaleComponentStrings } from './locale-54cac39a.js';
23
- import { d as downloadCSV, a as downloadPDF } from './downloadUtils-a447bab1.js';
23
+ import { d as downloadCSV, a as downloadPDF } from './downloadUtils-d1ac854a.js';
24
24
  import './guid-2069664e.js';
25
25
  import './key-218d8d4d.js';
26
26
  import './index-4c4a4f3d.js';
@@ -1454,7 +1454,7 @@ const PdfDownload = class {
1454
1454
  * @returns Promise resolving when function is done
1455
1455
  */
1456
1456
  async downloadCSV(exportInfos, removeDuplicates, addColumnTitle = true) {
1457
- void downloadCSV(exportInfos, true, // formatUsingLayerPopup
1457
+ return downloadCSV(exportInfos, true, // formatUsingLayerPopup
1458
1458
  removeDuplicates, addColumnTitle);
1459
1459
  }
1460
1460
  /**
@@ -1467,7 +1467,8 @@ const PdfDownload = class {
1467
1467
  * @returns Promise resolving when function is done
1468
1468
  */
1469
1469
  async downloadPDF(exportInfos, removeDuplicates = false, title = "", initialImageDataUrl = "") {
1470
- void downloadPDF(exportInfos, this._labelInfoElement.selectedOption.value, removeDuplicates, title, initialImageDataUrl);
1470
+ var _c;
1471
+ return downloadPDF(exportInfos, (_c = this._labelInfoElement.selectedOption) === null || _c === void 0 ? void 0 : _c.value, removeDuplicates, title, initialImageDataUrl);
1471
1472
  }
1472
1473
  //--------------------------------------------------------------------------
1473
1474
  //
@@ -1549,11 +1550,16 @@ const PdfDownload = class {
1549
1550
  const _b = parseInt(b.descriptionPDF.labelsPerPageDisplay, 10);
1550
1551
  return _a < _b ? -1 : _a > _b ? 1 : 0;
1551
1552
  });
1552
- sortedPdfIndo.forEach((l) => {
1553
+ sortedPdfIndo.forEach((l, i) => {
1553
1554
  const option = document.createElement("calcite-option");
1554
1555
  option.value = l;
1555
1556
  option.innerHTML = this._getLabelSizeText(l);
1556
1557
  this._labelInfoElement.appendChild(option);
1558
+ if (i === 0) {
1559
+ // Setting selected wasn't enough to trigger it being the 'selectedOption'
1560
+ option.selected = true;
1561
+ this._labelInfoElement.selectedOption = option;
1562
+ }
1557
1563
  });
1558
1564
  }
1559
1565
  get el() { return getElement(this); }
@@ -6,7 +6,7 @@
6
6
  import { c as createCommonjsModule, g as getDefaultExportFromCjs } from './_commonjsHelpers-d5f9d613.js';
7
7
  import { a as getAssetPath } from './index-d298aca9.js';
8
8
  import { l as loadModules } from './loadModules-cd3569de.js';
9
- import { q as queryFeaturesByID } from './mapViewUtils-27dfdc29.js';
9
+ import { q as queryFeaturesByID } from './mapViewUtils-463d14af.js';
10
10
 
11
11
  /** @license
12
12
  * Copyright 2022 Esri
@@ -1505,7 +1505,7 @@ function(t){var e=function(t){for(var e=t.length,r=new Uint8Array(e),n=0;n<e;n++
1505
1505
  * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1506
1506
  * ====================================================================
1507
1507
  */
1508
- function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):import('./index.es-b9cb902a.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},
1508
+ function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):import('./index.es-27da806f.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},
1509
1509
  /** ====================================================================
1510
1510
  * @license
1511
1511
  * jsPDF XMP metadata plugin
@@ -2532,7 +2532,7 @@ async function _prepareLabels(layer, ids, formatUsingLayerPopup = true, includeH
2532
2532
  var _a, _b, _c, _d, _e, _f;
2533
2533
  const [intl] = await loadModules(["esri/intl"]);
2534
2534
  // Get the features to export
2535
- const featureSet = await queryFeaturesByID(ids, layer);
2535
+ const featureSet = await queryFeaturesByID(ids, layer, 0, []);
2536
2536
  // Get field data types. Do we have any domain-based fields?
2537
2537
  const attributeTypes = {};
2538
2538
  const attributeDomains = {};
@@ -2589,7 +2589,7 @@ async function _prepareLabels(layer, ids, formatUsingLayerPopup = true, includeH
2589
2589
  const attributeMatches = (_f = labelFormat.match(attributeRegExp)) !== null && _f !== void 0 ? _f : [];
2590
2590
  // Convert feature attributes into an array of labels
2591
2591
  const relationshipKeys = Object.keys(relationshipQueries);
2592
- labels = await Promise.all(featureSet.features.map(async (feature) => {
2592
+ labels = await Promise.all(featureSet.map(async (feature) => {
2593
2593
  let labelPrep = labelFormat;
2594
2594
  // Replace Arcade expressions in this feature
2595
2595
  arcadeExpressionMatches.forEach((match) => {
@@ -2646,7 +2646,7 @@ async function _prepareLabels(layer, ids, formatUsingLayerPopup = true, includeH
2646
2646
  }
2647
2647
  else {
2648
2648
  // Export all attributes
2649
- labels = featureSet.features.map(feature => {
2649
+ labels = featureSet.map(feature => {
2650
2650
  return Object.keys(feature.attributes).map((attributeName) => {
2651
2651
  const value = _prepareAttributeValue(feature.attributes[attributeName], attributeTypes[attributeName], attributeDomains[attributeName], null, intl);
2652
2652
  return `${value}`;
@@ -2660,7 +2660,7 @@ async function _prepareLabels(layer, ids, formatUsingLayerPopup = true, includeH
2660
2660
  headerNames = labelFormat.replace(/\{/g, "").replace(/\}/g, "").split(lineSeparatorChar);
2661
2661
  }
2662
2662
  else {
2663
- const featuresAttrs = featureSet.features[0].attributes;
2663
+ const featuresAttrs = featureSet[0].attributes;
2664
2664
  Object.keys(featuresAttrs).forEach(k => {
2665
2665
  headerNames.push(k);
2666
2666
  });
@@ -4,11 +4,11 @@
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
6
  import { a as commonjsGlobal, c as createCommonjsModule, g as getDefaultExportFromCjs } from './_commonjsHelpers-d5f9d613.js';
7
- import { _ as _typeof_1 } from './downloadUtils-a447bab1.js';
7
+ import { _ as _typeof_1 } from './downloadUtils-d1ac854a.js';
8
8
  import './index-d298aca9.js';
9
9
  import './loadModules-cd3569de.js';
10
10
  import './locale-54cac39a.js';
11
- import './mapViewUtils-27dfdc29.js';
11
+ import './mapViewUtils-463d14af.js';
12
12
  import './interfaces-523c6558.js';
13
13
 
14
14
  var check = function (it) {
@@ -6,8 +6,8 @@
6
6
  import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-d298aca9.js';
7
7
  import { l as loadModules } from './loadModules-cd3569de.js';
8
8
  import { g as getLocaleComponentStrings } from './locale-54cac39a.js';
9
- import { i as getMapLayerIds, c as getMapLayerView, g as goToSelection, j as queryAllFeatures } from './mapViewUtils-27dfdc29.js';
10
- import { d as downloadCSV } from './downloadUtils-a447bab1.js';
9
+ import { i as getMapLayerIds, c as getMapLayerView, g as goToSelection, j as queryAllFeatures } from './mapViewUtils-463d14af.js';
10
+ import { d as downloadCSV } from './downloadUtils-d1ac854a.js';
11
11
  import { g as EExpandType } from './interfaces-523c6558.js';
12
12
  import './_commonjsHelpers-d5f9d613.js';
13
13