@esri/solutions-components 0.4.0 → 0.4.1
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 +0 -2
- package/dist/assets/t9n/public-notification/resources_en.json +0 -2
- package/dist/cjs/calcite-input-message_5.cjs.entry.js +1342 -18
- package/dist/cjs/{calcite-input-message.calcite-notice.map-select-tools.pdf-download.refine-selection-da276a1c.js → downloadUtils-27dbd8b9.js} +205 -1383
- package/dist/cjs/{index.es-176629d8.js → index.es-40d341ed.js} +3 -13
- package/dist/cjs/layer-table.cjs.entry.js +5 -15
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/public-notification.cjs.entry.js +2 -2
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/collection/components/layer-table/layer-table.js +4 -16
- package/dist/collection/components/map-search/map-search.js +1 -1
- package/dist/collection/components/map-select-tools/map-select-tools.js +42 -38
- package/dist/collection/components/pdf-download/pdf-download.js +9 -76
- package/dist/collection/components/public-notification/public-notification.js +3 -3
- package/dist/collection/components/refine-selection/refine-selection.js +1 -1
- package/dist/collection/utils/csvUtils.js +4 -0
- package/dist/collection/utils/csvUtils.ts +7 -0
- package/dist/collection/utils/downloadUtils.js +181 -0
- package/dist/collection/utils/downloadUtils.ts +235 -0
- package/dist/collection/utils/interfaces.ts +3 -2
- package/dist/collection/utils/pdfUtils.js +7 -0
- package/dist/collection/utils/pdfUtils.ts +13 -2
- package/dist/components/downloadUtils.js +2279 -0
- package/dist/components/index.es.js +1 -1
- package/dist/components/layer-table.js +5 -16
- package/dist/components/map-layer-picker2.js +1 -1
- package/dist/components/map-search.js +1 -1
- package/dist/components/map-select-tools2.js +44 -40
- package/dist/components/pdf-download2.js +10 -2124
- package/dist/components/public-notification.js +3 -3
- package/dist/components/queryUtils.js +1 -1
- package/dist/components/refine-selection-tools2.js +1 -1
- package/dist/components/refine-selection2.js +1 -1
- package/dist/esm/buffer-tools_6.entry.js +1 -1
- package/dist/esm/calcite-combobox_3.entry.js +1 -1
- package/dist/esm/calcite-input-message_5.entry.js +1341 -13
- package/dist/esm/{calcite-input-message.calcite-notice.map-select-tools.pdf-download.refine-selection-c6f63458.js → downloadUtils-76e38a94.js} +206 -1381
- package/dist/esm/{index.es-54a6f3a3.js → index.es-489f4f08.js} +2 -12
- package/dist/esm/layer-table.entry.js +6 -16
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{mapViewUtils-63e118f8.js → mapViewUtils-02696ab6.js} +1 -1
- package/dist/esm/public-notification.entry.js +3 -3
- package/dist/esm/solutions-components.js +1 -1
- package/dist/solutions-components/{p-cc2e20c8.js → p-1bfd07e3.js} +1 -1
- package/dist/solutions-components/{p-117174e8.entry.js → p-335fce8c.entry.js} +1 -1
- package/dist/solutions-components/p-4ef94c6b.entry.js +6 -0
- package/dist/solutions-components/p-5d27b47d.entry.js +17 -0
- package/dist/solutions-components/p-92cb569a.entry.js +6 -0
- package/dist/solutions-components/{p-8a0c0935.entry.js → p-a3b60bc9.entry.js} +1 -1
- package/dist/solutions-components/{p-1e459361.js → p-bff8aa4e.js} +3 -3
- package/dist/solutions-components/p-caa7e7a7.js +437 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/csvUtils.ts +7 -0
- package/dist/solutions-components/utils/downloadUtils.ts +235 -0
- package/dist/solutions-components/utils/interfaces.ts +3 -2
- package/dist/solutions-components/utils/pdfUtils.ts +13 -2
- package/dist/types/components/map-select-tools/map-select-tools.d.ts +11 -5
- package/dist/types/components/pdf-download/pdf-download.d.ts +0 -18
- package/dist/types/utils/downloadUtils.d.ts +40 -0
- package/dist/types/utils/interfaces.d.ts +2 -3
- package/dist/types/utils/pdfUtils.d.ts +3 -1
- package/package.json +1 -1
- package/dist/cjs/csvUtils-3a56c6d8.js +0 -54
- package/dist/components/csvUtils.js +0 -52
- package/dist/esm/csvUtils-23b5418f.js +0 -52
- package/dist/solutions-components/p-3069e3b7.js +0 -21
- package/dist/solutions-components/p-6d28f991.entry.js +0 -6
- package/dist/solutions-components/p-80f5e33c.js +0 -416
- package/dist/solutions-components/p-8927862a.entry.js +0 -6
- package/dist/solutions-components/p-e69c58e5.entry.js +0 -6
@@ -18,9 +18,13 @@
|
|
18
18
|
* See the License for the specific language governing permissions and
|
19
19
|
* limitations under the License.
|
20
20
|
*/
|
21
|
+
//#region Declarations
|
21
22
|
import * as PDFCreator_jsPDF from "../assets/arcgis-pdf-creator/PDFCreator_jsPDF";
|
22
23
|
import * as PDFLabels from "../assets/arcgis-pdf-creator/PDFLabels";
|
23
24
|
import { getAssetPath } from "@stencil/core";
|
25
|
+
export { ILabel } from "../assets/arcgis-pdf-creator/PDFLabels";
|
26
|
+
//#endregion
|
27
|
+
//#region Public functions
|
24
28
|
/**
|
25
29
|
* Exports a PDF of labels.
|
26
30
|
*
|
@@ -30,6 +34,8 @@ import { getAssetPath } from "@stencil/core";
|
|
30
34
|
export function exportPDF(labels, labelPageDescription) {
|
31
35
|
_downloadPDFFile(labels, labelPageDescription, `notify-${Date.now().toString()}`);
|
32
36
|
}
|
37
|
+
//#endregion
|
38
|
+
//#region Private functions
|
33
39
|
/**
|
34
40
|
* Downloads the PDF file.
|
35
41
|
*
|
@@ -51,3 +57,4 @@ function _downloadPDFFile(labels, labelPageDescription, fileTitle) {
|
|
51
57
|
});
|
52
58
|
});
|
53
59
|
}
|
60
|
+
//#endregion
|
@@ -14,9 +14,15 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
|
17
|
+
//#region Declarations
|
18
|
+
|
17
19
|
import * as PDFCreator_jsPDF from "../assets/arcgis-pdf-creator/PDFCreator_jsPDF";
|
18
20
|
import * as PDFLabels from "../assets/arcgis-pdf-creator/PDFLabels";
|
19
21
|
import { getAssetPath } from "@stencil/core";
|
22
|
+
export { ILabel } from "../assets/arcgis-pdf-creator/PDFLabels";
|
23
|
+
|
24
|
+
//#endregion
|
25
|
+
//#region Public functions
|
20
26
|
|
21
27
|
/**
|
22
28
|
* Exports a PDF of labels.
|
@@ -26,11 +32,14 @@ import { getAssetPath } from "@stencil/core";
|
|
26
32
|
*/
|
27
33
|
export function exportPDF(
|
28
34
|
labels: string[][],
|
29
|
-
labelPageDescription:
|
35
|
+
labelPageDescription: PDFLabels.ILabel
|
30
36
|
): void {
|
31
37
|
_downloadPDFFile(labels, labelPageDescription, `notify-${Date.now().toString()}`);
|
32
38
|
}
|
33
39
|
|
40
|
+
//#endregion
|
41
|
+
//#region Private functions
|
42
|
+
|
34
43
|
/**
|
35
44
|
* Downloads the PDF file.
|
36
45
|
*
|
@@ -40,7 +49,7 @@ export function exportPDF(
|
|
40
49
|
*/
|
41
50
|
function _downloadPDFFile(
|
42
51
|
labels: string[][],
|
43
|
-
labelPageDescription:
|
52
|
+
labelPageDescription: PDFLabels.ILabel,
|
44
53
|
fileTitle: string
|
45
54
|
): void {
|
46
55
|
const pdfLib = new PDFCreator_jsPDF.PDFCreator_jsPDF();
|
@@ -69,3 +78,5 @@ function _downloadPDFFile(
|
|
69
78
|
);
|
70
79
|
|
71
80
|
}
|
81
|
+
|
82
|
+
//#endregion
|