@esri/solutions-components 0.7.20 → 0.7.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. package/dist/assets/t9n/public-notification/resources.json +2 -1
  2. package/dist/assets/t9n/public-notification/resources_en.json +2 -1
  3. package/dist/cjs/card-manager_3.cjs.entry.js +133 -91
  4. package/dist/cjs/crowdsource-manager.cjs.entry.js +10 -10
  5. package/dist/cjs/{downloadUtils-9a13c6ac.js → downloadUtils-401356b5.js} +5 -3
  6. package/dist/cjs/{index.es-284a020c.js → index.es-a9a4ff08.js} +1 -1
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/cjs/map-select-tools_3.cjs.entry.js +1 -1
  9. package/dist/cjs/public-notification.cjs.entry.js +7 -4
  10. package/dist/cjs/solutions-components.cjs.js +1 -1
  11. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +29 -11
  12. package/dist/collection/components/layer-table/layer-table.js +162 -99
  13. package/dist/collection/components/public-notification/public-notification.js +7 -3
  14. package/dist/collection/utils/pdfUtils.js +4 -2
  15. package/dist/collection/utils/pdfUtils.ts +4 -2
  16. package/dist/components/crowdsource-manager.js +13 -12
  17. package/dist/components/downloadUtils.js +4 -2
  18. package/dist/components/layer-table2.js +134 -91
  19. package/dist/components/public-notification.js +7 -3
  20. package/dist/esm/card-manager_3.entry.js +133 -91
  21. package/dist/esm/crowdsource-manager.entry.js +10 -10
  22. package/dist/esm/{downloadUtils-a4bbdb1d.js → downloadUtils-13579d93.js} +5 -3
  23. package/dist/esm/{index.es-48fdb288.js → index.es-04d2e63e.js} +1 -1
  24. package/dist/esm/loader.js +1 -1
  25. package/dist/esm/map-select-tools_3.entry.js +1 -1
  26. package/dist/esm/public-notification.entry.js +7 -4
  27. package/dist/esm/solutions-components.js +1 -1
  28. package/dist/solutions-components/p-02fad071.entry.js +6 -0
  29. package/dist/solutions-components/{p-b1422b00.entry.js → p-24286e8c.entry.js} +1 -1
  30. package/dist/solutions-components/p-630e274b.entry.js +6 -0
  31. package/dist/solutions-components/{p-72dbfa77.js → p-c68a6d4f.js} +1 -1
  32. package/dist/solutions-components/{p-d4afcf86.js → p-c9f87acb.js} +2 -2
  33. package/dist/solutions-components/p-d3085b7a.entry.js +6 -0
  34. package/dist/solutions-components/solutions-components.esm.js +1 -1
  35. package/dist/solutions-components/utils/pdfUtils.ts +4 -2
  36. package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +13 -4
  37. package/dist/types/components/layer-table/layer-table.d.ts +14 -5
  38. package/dist/types/components/public-notification/public-notification.d.ts +4 -0
  39. package/dist/types/components.d.ts +18 -0
  40. package/package.json +1 -1
  41. package/dist/solutions-components/p-107b7816.entry.js +0 -6
  42. package/dist/solutions-components/p-2abc02a1.entry.js +0 -6
  43. package/dist/solutions-components/p-6b4e621b.entry.js +0 -6
@@ -63,6 +63,10 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
63
63
  * boolean: When true the ctrl key is currently pressed
64
64
  */
65
65
  this._ctrlIsPressed = false;
66
+ /**
67
+ * boolean: When true the default filter provided via url param has been honored and should now be ignored
68
+ */
69
+ this._defaultFilterHonored = false;
66
70
  /**
67
71
  * boolean: When true the default global id provided via url param has been honored and should now be ignored
68
72
  */
@@ -96,8 +100,9 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
96
100
  this.onTableNodeCreate = (node) => {
97
101
  this._tableNode = node;
98
102
  };
99
- this.defaultLayerId = undefined;
103
+ this.defaultFilter = undefined;
100
104
  this.defaultGlobalId = undefined;
105
+ this.defaultLayerId = undefined;
101
106
  this.defaultOid = undefined;
102
107
  this.enableAutoRefresh = undefined;
103
108
  this.enableColumnReorder = true;
@@ -467,93 +472,95 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
467
472
  const featuresSelected = this._featuresSelected();
468
473
  const featuresEmpty = this._featuresEmpty();
469
474
  const hasFilterExpressions = this._hasFilterExpressions();
470
- this._toolInfos = [{
471
- active: false,
472
- icon: "zoom-to-object",
473
- indicator: false,
474
- label: this._translations.zoom,
475
- func: () => this._zoom(),
476
- disabled: !featuresSelected,
477
- isOverflow: false
478
- },
479
- hasFilterExpressions ? {
480
- active: false,
481
- icon: "filter",
482
- indicator: false,
483
- label: this._translations.filters,
484
- func: () => this._toggleFilter(),
485
- disabled: false,
486
- isOverflow: false
487
- } : undefined,
488
- this._deleteEnabled ? {
489
- active: false,
490
- icon: "trash",
491
- indicator: false,
492
- label: this._translations.delete,
493
- func: () => this._delete(),
494
- disabled: !featuresSelected,
495
- isDanger: true,
496
- isOverflow: false
497
- } : undefined, {
498
- active: false,
499
- icon: "erase",
500
- indicator: false,
501
- label: this._translations.clearSelection,
502
- func: () => this._clearSelection(),
503
- disabled: !featuresSelected,
504
- isOverflow: false
505
- }, {
506
- active: false,
507
- icon: "selected-items-filter",
508
- indicator: false,
509
- label: this._showOnlySelected ? this._translations.showAll : this._translations.showSelected,
510
- func: () => this._toggleShowSelected(),
511
- disabled: !featuresSelected,
512
- isOverflow: false
513
- }, {
514
- active: false,
515
- icon: "list-check-all",
516
- indicator: false,
517
- func: () => this._selectAll(),
518
- label: this._translations.selectAll,
519
- disabled: featuresEmpty,
520
- isOverflow: false
521
- }, {
522
- active: false,
523
- icon: "compare",
524
- indicator: false,
525
- func: () => this._switchSelected(),
526
- label: this._translations.switchSelected,
527
- disabled: featuresEmpty,
528
- isOverflow: false
529
- }, {
530
- active: false,
531
- icon: "refresh",
532
- indicator: false,
533
- func: () => this._refresh(),
534
- label: this._translations.refresh,
535
- disabled: false,
536
- isOverflow: false
537
- },
538
- this.enableCSV ? {
539
- active: false,
540
- icon: "export",
541
- indicator: false,
542
- func: () => void this._exportToCSV(),
543
- label: this._translations.exportCSV,
544
- disabled: featuresEmpty,
545
- isOverflow: false
546
- } : undefined, {
547
- active: false,
548
- icon: this._showHideOpen ? "chevron-down" : "chevron-right",
549
- indicator: false,
550
- func: () => this._toggleShowHide(),
551
- label: this._translations.showHideColumns,
552
- disabled: false,
553
- isOverflow: false,
554
- isSublist: true
555
- }];
556
- this._defaultVisibleToolSizeInfos = undefined;
475
+ if (this._translations) {
476
+ this._toolInfos = [{
477
+ active: false,
478
+ icon: "zoom-to-object",
479
+ indicator: false,
480
+ label: this._translations.zoom,
481
+ func: () => this._zoom(),
482
+ disabled: !featuresSelected,
483
+ isOverflow: false
484
+ },
485
+ hasFilterExpressions ? {
486
+ active: false,
487
+ icon: "filter",
488
+ indicator: false,
489
+ label: this._translations.filters,
490
+ func: () => this._toggleFilter(),
491
+ disabled: false,
492
+ isOverflow: false
493
+ } : undefined,
494
+ this._deleteEnabled ? {
495
+ active: false,
496
+ icon: "trash",
497
+ indicator: false,
498
+ label: this._translations.delete,
499
+ func: () => this._delete(),
500
+ disabled: !featuresSelected,
501
+ isDanger: true,
502
+ isOverflow: false
503
+ } : undefined, {
504
+ active: false,
505
+ icon: "erase",
506
+ indicator: false,
507
+ label: this._translations.clearSelection,
508
+ func: () => this._clearSelection(),
509
+ disabled: !featuresSelected,
510
+ isOverflow: false
511
+ }, {
512
+ active: false,
513
+ icon: "selected-items-filter",
514
+ indicator: false,
515
+ label: this._showOnlySelected ? this._translations.showAll : this._translations.showSelected,
516
+ func: () => this._toggleShowSelected(),
517
+ disabled: !featuresSelected,
518
+ isOverflow: false
519
+ }, {
520
+ active: false,
521
+ icon: "list-check-all",
522
+ indicator: false,
523
+ func: () => this._selectAll(),
524
+ label: this._translations.selectAll,
525
+ disabled: featuresEmpty,
526
+ isOverflow: false
527
+ }, {
528
+ active: false,
529
+ icon: "compare",
530
+ indicator: false,
531
+ func: () => this._switchSelected(),
532
+ label: this._translations.switchSelected,
533
+ disabled: featuresEmpty,
534
+ isOverflow: false
535
+ }, {
536
+ active: false,
537
+ icon: "refresh",
538
+ indicator: false,
539
+ func: () => this._refresh(),
540
+ label: this._translations.refresh,
541
+ disabled: false,
542
+ isOverflow: false
543
+ },
544
+ this.enableCSV ? {
545
+ active: false,
546
+ icon: "export",
547
+ indicator: false,
548
+ func: () => void this._exportToCSV(),
549
+ label: this._translations.exportCSV,
550
+ disabled: featuresEmpty,
551
+ isOverflow: false
552
+ } : undefined, {
553
+ active: false,
554
+ icon: this._showHideOpen ? "chevron-down" : "chevron-right",
555
+ indicator: false,
556
+ func: () => this._toggleShowHide(),
557
+ label: this._translations.showHideColumns,
558
+ disabled: false,
559
+ isOverflow: false,
560
+ isSublist: true
561
+ }];
562
+ this._defaultVisibleToolSizeInfos = undefined;
563
+ }
557
564
  }
558
565
  /**
559
566
  * Returns true when one ore more features are selected
@@ -764,13 +771,39 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
764
771
  if ((_b = this.mapInfo) === null || _b === void 0 ? void 0 : _b.id) {
765
772
  urlObj.searchParams.set("webmap", this.mapInfo.id);
766
773
  }
774
+ else {
775
+ urlObj.searchParams.delete("webmap");
776
+ }
767
777
  if ((_c = this._layer) === null || _c === void 0 ? void 0 : _c.id) {
768
778
  urlObj.searchParams.set("layer", this._layer.id);
769
779
  }
780
+ else {
781
+ urlObj.searchParams.delete("layer");
782
+ }
770
783
  if (((_d = this._selectedIndexes) === null || _d === void 0 ? void 0 : _d.length) > 0) {
771
784
  urlObj.searchParams.set("oid", this._selectedIndexes.join(","));
772
785
  }
786
+ else {
787
+ urlObj.searchParams.delete("oid");
788
+ }
789
+ if (this._filterActive) {
790
+ const filter = JSON.parse(this._filterList.urlParams.get("filter"));
791
+ const layerExpressions = this._filterList.layerExpressions.map(layerExp => {
792
+ layerExp.expressions = layerExp.expressions.map(exp => {
793
+ if (exp.id.toString() === filter.expressionId.toString()) {
794
+ exp.active = true;
795
+ }
796
+ return exp;
797
+ });
798
+ return layerExp;
799
+ });
800
+ urlObj.searchParams.set("filter", JSON.stringify(layerExpressions));
801
+ }
802
+ else {
803
+ urlObj.searchParams.delete("filter");
804
+ }
773
805
  this._shareNode.shareUrl = urlObj.href;
806
+ history.pushState(history.state, document.title, urlObj.href);
774
807
  }
775
808
  /**
776
809
  * Get a tooltip
@@ -891,7 +924,8 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
891
924
  const _end = this._table.viewModel.getObjectIdIndex(this._currentId);
892
925
  const startIndex = _start < _end ? _start : _end;
893
926
  const endIndex = _end > _start ? _end : _start;
894
- this._selectedIndexes = oids.reduce((prev, cur) => {
927
+ this._skipOnChange = startIndex + 1 !== endIndex;
928
+ const selectedIndexes = oids.reduce((prev, cur) => {
895
929
  const id = cur;
896
930
  const index = this._table.viewModel.getObjectIdIndex(id);
897
931
  if ((id === this._currentId || id === this._previousCurrentId)) {
@@ -913,6 +947,7 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
913
947
  }
914
948
  return prev;
915
949
  }, []);
950
+ this._selectedIndexes = _start < _end ? selectedIndexes.reverse() : selectedIndexes;
916
951
  this._table.highlightIds.addMany(this._selectedIndexes.filter(i => ids.indexOf(i) < 0));
917
952
  }
918
953
  }
@@ -975,6 +1010,11 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
975
1010
  }
976
1011
  this._defaultGlobalIdHonored = true;
977
1012
  }
1013
+ if (!this._defaultFilterHonored && this.defaultFilter && this._filterList) {
1014
+ this._layerExpressions = this.defaultFilter;
1015
+ this._filterActive = true;
1016
+ this._defaultFilterHonored = true;
1017
+ }
978
1018
  });
979
1019
  this._showOnlySelected = false;
980
1020
  this._sortActive = false;
@@ -1083,19 +1123,21 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
1083
1123
  */
1084
1124
  _filterModal() {
1085
1125
  var _a, _b, _c;
1086
- return (h("calcite-modal", { "aria-labelledby": "modal-title", class: "modal", kind: "brand", onCalciteModalClose: async () => this._closeFilter(), open: this._filterOpen, widthScale: "s" }, h("div", { class: "display-flex align-center", id: "modal-title", slot: "header" }, (_b = (_a = this._translations) === null || _a === void 0 ? void 0 : _a.filter) === null || _b === void 0 ? void 0 : _b.replace("{{title}}", (_c = this._layer) === null || _c === void 0 ? void 0 : _c.title)), h("div", { slot: "content" }, h("instant-apps-filter-list", { autoUpdateUrl: false, closeBtn: true, closeBtnOnClick: async () => this._closeFilter(), layerExpressions: this._layerExpressions, onFilterListReset: () => this._handleFilterListReset(), onFilterUpdate: () => this._handleFilterUpdate(), ref: (el) => this._filterList = el, view: this.mapView, zoomBtn: false }))));
1126
+ return (h("calcite-modal", { "aria-labelledby": "modal-title", class: "modal", kind: "brand", onCalciteModalClose: async () => this._closeFilter(), open: this._filterOpen, widthScale: "s" }, h("div", { class: "display-flex align-center", id: "modal-title", slot: "header" }, (_b = (_a = this._translations) === null || _a === void 0 ? void 0 : _a.filter) === null || _b === void 0 ? void 0 : _b.replace("{{title}}", (_c = this._layer) === null || _c === void 0 ? void 0 : _c.title)), h("div", { slot: "content" }, h("instant-apps-filter-list", { autoUpdateUrl: true, closeBtn: true, closeBtnOnClick: async () => this._closeFilter(), layerExpressions: this._layerExpressions, onFilterListReset: () => this._handleFilterListReset(), onFilterUpdate: () => this._handleFilterUpdate(), ref: (el) => this._filterList = el, view: this.mapView, zoomBtn: false }))));
1087
1127
  }
1088
1128
  /**
1089
1129
  * Reset the filter active prop
1090
1130
  */
1091
1131
  _handleFilterListReset() {
1092
1132
  this._filterActive = false;
1133
+ this._updateShareUrl();
1093
1134
  }
1094
1135
  /**
1095
1136
  * Check if the layers definitionExpression has been modified
1096
1137
  */
1097
1138
  _handleFilterUpdate() {
1098
1139
  this._filterActive = this._definitionExpression !== this._layer.definitionExpression;
1140
+ this._updateShareUrl();
1099
1141
  }
1100
1142
  /**
1101
1143
  * Close the filter modal
@@ -1388,8 +1430,9 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
1388
1430
  }; }
1389
1431
  static get style() { return layerTableCss; }
1390
1432
  }, [0, "layer-table", {
1391
- "defaultLayerId": [1, "default-layer-id"],
1433
+ "defaultFilter": [16],
1392
1434
  "defaultGlobalId": [16],
1435
+ "defaultLayerId": [1, "default-layer-id"],
1393
1436
  "defaultOid": [16],
1394
1437
  "enableAutoRefresh": [4, "enable-auto-refresh"],
1395
1438
  "enableColumnReorder": [4, "enable-column-reorder"],
@@ -93,6 +93,7 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class PublicNotifi
93
93
  this.sketchPointSymbol = undefined;
94
94
  this.sketchPolygonSymbol = undefined;
95
95
  this._addMap = false;
96
+ this._addResults = true;
96
97
  this._addTitle = false;
97
98
  this._downloadActive = true;
98
99
  this._exportType = EExportType.PDF;
@@ -531,7 +532,7 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class PublicNotifi
531
532
  _getExportPage() {
532
533
  const hasSelections = this._hasSelections(this.showRefineSelection);
533
534
  const displayDuplicatesClass = this._numDuplicates > 0 ? "display-block" : "display-none";
534
- 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 || this._fetchingData, 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")))));
535
+ 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 || this._fetchingData) || (!this._addMap && !this._addResults), 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")))));
535
536
  }
536
537
  /**
537
538
  * Store the user selected export type CSV || PDF
@@ -550,7 +551,8 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class PublicNotifi
550
551
  const displayClass = this._exportType === EExportType.PDF ? "display-block" : "display-none";
551
552
  const titleOptionsClass = this._addTitle ? "display-block" : "display-none";
552
553
  const title = this._titleValue ? this._titleValue : this.defaultExportTitle ? this.defaultExportTitle : "";
553
- return (h("div", { class: displayClass }, this._getLabel(this._translations.pdfOptions, true), h("div", { class: "padding-top-sides-1" }, h("calcite-label", { class: "label-margin-0" }, this._translations.selectPDFLabelOption)), h("div", { class: "padding-sides-1" }, h("pdf-download", { defaultNumLabelsPerPage: parseInt(this.defaultNumLabelsPerPage.toString(), 10), disabled: !this._downloadActive, ref: (el) => { this._downloadTools = el; } })), h("div", { class: "padding-top-sides-1" }, h("calcite-label", { class: "label-margin-0", layout: "inline" }, h("calcite-checkbox", { checked: this._addTitle, onCalciteCheckboxChange: () => this._addTitle = !this._addTitle }), this._translations.addTitle)), h("div", { class: titleOptionsClass }, this._getLabel(this._translations.title, true, ""), h("calcite-input-text", { class: "padding-sides-1", onCalciteInputTextInput: () => this._changeTitle(), placeholder: this._translations.titlePlaceholder, ref: (el) => { this._titleElement = el; }, value: title })), h("div", { class: "padding-top-sides-1" }, h("calcite-label", { class: "label-margin-0", layout: "inline" }, h("calcite-checkbox", { checked: this._addMap, onCalciteCheckboxChange: () => this._addMap = !this._addMap }), this._translations.includeMap))));
554
+ const formatOptionsClass = this._addResults ? "" : "display-none";
555
+ return (h("div", { class: displayClass }, this._getLabel(this._translations.pdfOptions, true), h("div", { class: "padding-top-sides-1" }, h("calcite-label", { class: "label-margin-0", layout: "inline" }, h("calcite-checkbox", { checked: this._addResults, onCalciteCheckboxChange: () => this._addResults = !this._addResults }), this._translations.addResults)), h("div", { class: `padding-top-sides-1 ${formatOptionsClass}` }, h("calcite-label", { class: "label-margin-0" }, this._translations.selectPDFLabelOption)), h("div", { class: `padding-sides-1 ${formatOptionsClass}` }, h("pdf-download", { defaultNumLabelsPerPage: parseInt(this.defaultNumLabelsPerPage.toString(), 10), disabled: !this._downloadActive, ref: (el) => { this._downloadTools = el; } })), h("div", { class: "padding-top-sides-1" }, h("calcite-label", { class: "label-margin-0", layout: "inline" }, h("calcite-checkbox", { checked: this._addTitle, onCalciteCheckboxChange: () => this._addTitle = !this._addTitle }), this._translations.addTitle)), h("div", { class: titleOptionsClass }, this._getLabel(this._translations.title, true, ""), h("calcite-input-text", { class: "padding-sides-1", onCalciteInputTextInput: () => this._changeTitle(), placeholder: this._translations.titlePlaceholder, ref: (el) => { this._titleElement = el; }, value: title })), h("div", { class: "padding-top-sides-1" }, h("calcite-label", { class: "label-margin-0", layout: "inline" }, h("calcite-checkbox", { checked: this._addMap, onCalciteCheckboxChange: () => this._addMap = !this._addMap }), this._translations.includeMap))));
554
556
  }
555
557
  /**
556
558
  * Render the refine page
@@ -656,7 +658,8 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class PublicNotifi
656
658
  * @protected
657
659
  */
658
660
  async _export() {
659
- const exportInfos = this._getSelectionIdsAndViews(this._selectionSets, true);
661
+ const exportInfos = this._addResults ?
662
+ this._getSelectionIdsAndViews(this._selectionSets, true) : {};
660
663
  if (this._exportType === EExportType.PDF) {
661
664
  // Generate a map screenshot
662
665
  let initialImageDataUrl = "";
@@ -914,6 +917,7 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class PublicNotifi
914
917
  "sketchPointSymbol": [8, "sketch-point-symbol"],
915
918
  "sketchPolygonSymbol": [8, "sketch-polygon-symbol"],
916
919
  "_addMap": [32],
920
+ "_addResults": [32],
917
921
  "_addTitle": [32],
918
922
  "_downloadActive": [32],
919
923
  "_exportType": [32],