@esri/solutions-components 0.7.20 → 0.7.21
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/assets/t9n/public-notification/resources.json +2 -1
- package/dist/assets/t9n/public-notification/resources_en.json +2 -1
- package/dist/cjs/card-manager_3.cjs.entry.js +30 -3
- package/dist/cjs/crowdsource-manager.cjs.entry.js +10 -10
- package/dist/cjs/{downloadUtils-9a13c6ac.js → downloadUtils-401356b5.js} +5 -3
- package/dist/cjs/{index.es-284a020c.js → index.es-a9a4ff08.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/map-select-tools_3.cjs.entry.js +1 -1
- package/dist/cjs/public-notification.cjs.entry.js +7 -4
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +29 -11
- package/dist/collection/components/layer-table/layer-table.js +59 -11
- package/dist/collection/components/public-notification/public-notification.js +7 -3
- package/dist/collection/utils/pdfUtils.js +4 -2
- package/dist/collection/utils/pdfUtils.ts +4 -2
- package/dist/components/crowdsource-manager.js +13 -12
- package/dist/components/downloadUtils.js +4 -2
- package/dist/components/layer-table2.js +31 -3
- package/dist/components/public-notification.js +7 -3
- package/dist/esm/card-manager_3.entry.js +30 -3
- package/dist/esm/crowdsource-manager.entry.js +10 -10
- package/dist/esm/{downloadUtils-a4bbdb1d.js → downloadUtils-13579d93.js} +5 -3
- package/dist/esm/{index.es-48fdb288.js → index.es-04d2e63e.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/map-select-tools_3.entry.js +1 -1
- package/dist/esm/public-notification.entry.js +7 -4
- package/dist/esm/solutions-components.js +1 -1
- package/dist/solutions-components/p-02fad071.entry.js +6 -0
- package/dist/solutions-components/{p-b1422b00.entry.js → p-24286e8c.entry.js} +1 -1
- package/dist/solutions-components/p-5302f406.entry.js +6 -0
- package/dist/solutions-components/{p-72dbfa77.js → p-c68a6d4f.js} +1 -1
- package/dist/solutions-components/{p-d4afcf86.js → p-c9f87acb.js} +2 -2
- package/dist/solutions-components/p-d3085b7a.entry.js +6 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/pdfUtils.ts +4 -2
- package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +13 -4
- package/dist/types/components/layer-table/layer-table.d.ts +14 -5
- package/dist/types/components/public-notification/public-notification.d.ts +4 -0
- package/dist/types/components.d.ts +18 -0
- package/package.json +1 -1
- package/dist/solutions-components/p-107b7816.entry.js +0 -6
- package/dist/solutions-components/p-2abc02a1.entry.js +0 -6
- package/dist/solutions-components/p-6b4e621b.entry.js +0 -6
@@ -13,7 +13,7 @@ const mapViewUtils = require('./mapViewUtils-8aa325de.js');
|
|
13
13
|
const interfaces = require('./interfaces-7cd0a48a.js');
|
14
14
|
const publicNotificationStore = require('./publicNotificationStore-3a17c2f4.js');
|
15
15
|
const locale = require('./locale-9db09b63.js');
|
16
|
-
const downloadUtils = require('./downloadUtils-
|
16
|
+
const downloadUtils = require('./downloadUtils-401356b5.js');
|
17
17
|
require('./esri-loader-a91c0ec1.js');
|
18
18
|
require('./_commonjsHelpers-384729db.js');
|
19
19
|
require('./index-22bb61da.js');
|
@@ -13,7 +13,7 @@ const loadModules = require('./loadModules-46d14e81.js');
|
|
13
13
|
const mapViewUtils = require('./mapViewUtils-8aa325de.js');
|
14
14
|
const publicNotificationStore = require('./publicNotificationStore-3a17c2f4.js');
|
15
15
|
const locale = require('./locale-9db09b63.js');
|
16
|
-
const downloadUtils = require('./downloadUtils-
|
16
|
+
const downloadUtils = require('./downloadUtils-401356b5.js');
|
17
17
|
require('./esri-loader-a91c0ec1.js');
|
18
18
|
require('./_commonjsHelpers-384729db.js');
|
19
19
|
require('./index-22bb61da.js');
|
@@ -59,6 +59,7 @@ const PublicNotification = class {
|
|
59
59
|
this.sketchPointSymbol = undefined;
|
60
60
|
this.sketchPolygonSymbol = undefined;
|
61
61
|
this._addMap = false;
|
62
|
+
this._addResults = true;
|
62
63
|
this._addTitle = false;
|
63
64
|
this._downloadActive = true;
|
64
65
|
this._exportType = interfaces.EExportType.PDF;
|
@@ -497,7 +498,7 @@ const PublicNotification = class {
|
|
497
498
|
_getExportPage() {
|
498
499
|
const hasSelections = this._hasSelections(this.showRefineSelection);
|
499
500
|
const displayDuplicatesClass = this._numDuplicates > 0 ? "display-block" : "display-none";
|
500
|
-
return (index.h("calcite-panel", null, index.h("div", null, this._getLabel(this._translations.export, false), hasSelections ? (index.h("div", null, this._getNotice(this._translations.exportTip, "padding-sides-1"), this._getLabel(this._translations.exportListsLabel), this._getExportSelectionLists(), index.h("div", { class: "padding-sides-1 " + displayDuplicatesClass }, index.h("div", { class: "display-flex" }, index.h("calcite-label", { layout: "inline" }, index.h("calcite-checkbox", { ref: (el) => { this._removeDuplicates = el; } }), index.h("div", { class: "display-flex" }, this._translations.removeDuplicate, index.h("div", { class: "info-message padding-start-1-2" }, index.h("calcite-input-message", { class: "info-blue margin-top-0", scale: "m" }, ` ${this._translations.numDuplicates.replace("{{n}}", this._numDuplicates.toString())}`)))), index.h("calcite-icon", { class: "padding-start-1-2 icon", icon: "question", id: "remove-duplicates-icon", scale: "s" })), index.h("calcite-popover", { closable: true, label: "", referenceElement: "remove-duplicates-icon" }, index.h("span", { class: "tooltip-message" }, this._translations.duplicatesTip))), index.h("div", { class: "border-bottom" }), index.h("div", { class: "padding-top-sides-1" }, index.h("calcite-segmented-control", { class: "w-100", onCalciteSegmentedControlChange: (evt) => this._exportTypeChange(evt) }, index.h("calcite-segmented-control-item", { checked: this._exportType === interfaces.EExportType.PDF, class: "w-50 end-border", value: interfaces.EExportType.PDF }, index.h("span", { class: "font-weight-500" }, this._translations.pdf)), index.h("calcite-segmented-control-item", { checked: this._exportType === interfaces.EExportType.CSV, class: "w-50", value: interfaces.EExportType.CSV }, index.h("span", { class: "font-weight-500" }, this._translations.csv)))), index.h("div", { class: "padding-bottom-1" }, this._getExportOptions()), index.h("div", { class: "padding-1 display-flex" }, index.h("calcite-button", { disabled: !this._downloadActive || this._fetchingData, loading: this._fetchingData, onClick: () => void this._export(), width: "full" }, index.h("span", { class: "font-weight-500" }, this._translations.export))))) : (this._getNotice(this._translations.downloadNoLists, "padding-sides-1 padding-bottom-1")))));
|
501
|
+
return (index.h("calcite-panel", null, index.h("div", null, this._getLabel(this._translations.export, false), hasSelections ? (index.h("div", null, this._getNotice(this._translations.exportTip, "padding-sides-1"), this._getLabel(this._translations.exportListsLabel), this._getExportSelectionLists(), index.h("div", { class: "padding-sides-1 " + displayDuplicatesClass }, index.h("div", { class: "display-flex" }, index.h("calcite-label", { layout: "inline" }, index.h("calcite-checkbox", { ref: (el) => { this._removeDuplicates = el; } }), index.h("div", { class: "display-flex" }, this._translations.removeDuplicate, index.h("div", { class: "info-message padding-start-1-2" }, index.h("calcite-input-message", { class: "info-blue margin-top-0", scale: "m" }, ` ${this._translations.numDuplicates.replace("{{n}}", this._numDuplicates.toString())}`)))), index.h("calcite-icon", { class: "padding-start-1-2 icon", icon: "question", id: "remove-duplicates-icon", scale: "s" })), index.h("calcite-popover", { closable: true, label: "", referenceElement: "remove-duplicates-icon" }, index.h("span", { class: "tooltip-message" }, this._translations.duplicatesTip))), index.h("div", { class: "border-bottom" }), index.h("div", { class: "padding-top-sides-1" }, index.h("calcite-segmented-control", { class: "w-100", onCalciteSegmentedControlChange: (evt) => this._exportTypeChange(evt) }, index.h("calcite-segmented-control-item", { checked: this._exportType === interfaces.EExportType.PDF, class: "w-50 end-border", value: interfaces.EExportType.PDF }, index.h("span", { class: "font-weight-500" }, this._translations.pdf)), index.h("calcite-segmented-control-item", { checked: this._exportType === interfaces.EExportType.CSV, class: "w-50", value: interfaces.EExportType.CSV }, index.h("span", { class: "font-weight-500" }, this._translations.csv)))), index.h("div", { class: "padding-bottom-1" }, this._getExportOptions()), index.h("div", { class: "padding-1 display-flex" }, index.h("calcite-button", { disabled: (!this._downloadActive || this._fetchingData) || (!this._addMap && !this._addResults), loading: this._fetchingData, onClick: () => void this._export(), width: "full" }, index.h("span", { class: "font-weight-500" }, this._translations.export))))) : (this._getNotice(this._translations.downloadNoLists, "padding-sides-1 padding-bottom-1")))));
|
501
502
|
}
|
502
503
|
/**
|
503
504
|
* Store the user selected export type CSV || PDF
|
@@ -516,7 +517,8 @@ const PublicNotification = class {
|
|
516
517
|
const displayClass = this._exportType === interfaces.EExportType.PDF ? "display-block" : "display-none";
|
517
518
|
const titleOptionsClass = this._addTitle ? "display-block" : "display-none";
|
518
519
|
const title = this._titleValue ? this._titleValue : this.defaultExportTitle ? this.defaultExportTitle : "";
|
519
|
-
|
520
|
+
const formatOptionsClass = this._addResults ? "" : "display-none";
|
521
|
+
return (index.h("div", { class: displayClass }, this._getLabel(this._translations.pdfOptions, true), index.h("div", { class: "padding-top-sides-1" }, index.h("calcite-label", { class: "label-margin-0", layout: "inline" }, index.h("calcite-checkbox", { checked: this._addResults, onCalciteCheckboxChange: () => this._addResults = !this._addResults }), this._translations.addResults)), index.h("div", { class: `padding-top-sides-1 ${formatOptionsClass}` }, index.h("calcite-label", { class: "label-margin-0" }, this._translations.selectPDFLabelOption)), index.h("div", { class: `padding-sides-1 ${formatOptionsClass}` }, index.h("pdf-download", { defaultNumLabelsPerPage: parseInt(this.defaultNumLabelsPerPage.toString(), 10), disabled: !this._downloadActive, ref: (el) => { this._downloadTools = el; } })), index.h("div", { class: "padding-top-sides-1" }, index.h("calcite-label", { class: "label-margin-0", layout: "inline" }, index.h("calcite-checkbox", { checked: this._addTitle, onCalciteCheckboxChange: () => this._addTitle = !this._addTitle }), this._translations.addTitle)), index.h("div", { class: titleOptionsClass }, this._getLabel(this._translations.title, true, ""), index.h("calcite-input-text", { class: "padding-sides-1", onCalciteInputTextInput: () => this._changeTitle(), placeholder: this._translations.titlePlaceholder, ref: (el) => { this._titleElement = el; }, value: title })), index.h("div", { class: "padding-top-sides-1" }, index.h("calcite-label", { class: "label-margin-0", layout: "inline" }, index.h("calcite-checkbox", { checked: this._addMap, onCalciteCheckboxChange: () => this._addMap = !this._addMap }), this._translations.includeMap))));
|
520
522
|
}
|
521
523
|
/**
|
522
524
|
* Render the refine page
|
@@ -622,7 +624,8 @@ const PublicNotification = class {
|
|
622
624
|
* @protected
|
623
625
|
*/
|
624
626
|
async _export() {
|
625
|
-
const exportInfos = this.
|
627
|
+
const exportInfos = this._addResults ?
|
628
|
+
this._getSelectionIdsAndViews(this._selectionSets, true) : {};
|
626
629
|
if (this._exportType === interfaces.EExportType.PDF) {
|
627
630
|
// Generate a map screenshot
|
628
631
|
let initialImageDataUrl = "";
|