@esri/solutions-components 0.4.8 → 0.4.9
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/calcite-input-message_5.cjs.entry.js +282 -282
- package/dist/cjs/{downloadUtils-75d3d16a.js → downloadUtils-bb998aa8.js} +1096 -1094
- package/dist/cjs/{index.es-639250cc.js → index.es-b1ff1b6a.js} +10682 -10682
- package/dist/cjs/layer-table.cjs.entry.js +22 -22
- package/dist/cjs/public-notification.cjs.entry.js +27 -27
- package/dist/collection/components/public-notification/public-notification.js +3 -3
- package/dist/collection/utils/downloadUtils.js +3 -1
- package/dist/collection/utils/downloadUtils.ts +3 -1
- package/dist/components/downloadUtils.js +1092 -1090
- package/dist/components/public-notification.js +60 -60
- package/dist/esm/calcite-input-message_5.entry.js +274 -274
- package/dist/esm/{downloadUtils-bcf65b52.js → downloadUtils-2ed29d75.js} +1092 -1090
- package/dist/esm/{index.es-4c9f419c.js → index.es-edc28958.js} +10596 -10596
- package/dist/esm/layer-table.entry.js +18 -18
- package/dist/esm/public-notification.entry.js +23 -23
- package/dist/solutions-components/{p-695007c1.entry.js → p-08ecf204.entry.js} +16 -16
- package/dist/solutions-components/{p-71372851.js → p-375face5.js} +437 -437
- package/dist/solutions-components/{p-20c73673.entry.js → p-5205c898.entry.js} +6 -6
- package/dist/solutions-components/{p-186b959c.entry.js → p-53836566.entry.js} +6 -6
- package/dist/solutions-components/{p-bb92a46c.js → p-d9c18211.js} +60 -60
- package/dist/solutions-components/solutions-components.esm.js +6 -6
- package/dist/solutions-components/utils/downloadUtils.ts +3 -1
- package/dist/solutions-components_commit.txt +7 -7
- package/dist/types/components/public-notification/public-notification.d.ts +6 -2
- package/package.json +1 -1
@@ -1,54 +1,54 @@
|
|
1
|
-
/*!
|
2
|
-
* Copyright 2022 Esri
|
3
|
-
* Licensed under the Apache License, Version 2.0
|
4
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
-
*/
|
6
|
-
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
7
|
-
import { a as EPageType, b as ESketchType, c as EWorkflowType, d as EExportType } from './interfaces3.js';
|
8
|
-
import { l as loadModules } from './loadModules.js';
|
9
|
-
import { a as getMapLayerView, g as goToSelection, h as highlightFeatures, d as defineCustomElement$6 } from './map-layer-picker2.js';
|
10
|
-
import { g as getSelectionSetQuery } from './queryUtils.js';
|
11
|
-
import { s as state } from './publicNotificationStore.js';
|
12
|
-
import { a as getComponentClosestLanguage, g as getLocaleComponentStrings } from './locale.js';
|
13
|
-
import { g as getTotal, a as getSelectionIds, d as defineCustomElement$3 } from './refine-selection2.js';
|
14
|
-
import { d as defineCustomElement$C } from './buffer-tools2.js';
|
15
|
-
import { d as defineCustomElement$B } from './action.js';
|
16
|
-
import { d as defineCustomElement$A } from './action-bar.js';
|
17
|
-
import { d as defineCustomElement$z } from './action-group.js';
|
18
|
-
import { d as defineCustomElement$y } from './action-menu.js';
|
19
|
-
import { d as defineCustomElement$x } from './button.js';
|
20
|
-
import { d as defineCustomElement$w } from './checkbox.js';
|
21
|
-
import { d as defineCustomElement$v } from './chip.js';
|
22
|
-
import { d as defineCustomElement$u } from './combobox.js';
|
23
|
-
import { d as defineCustomElement$t } from './combobox-item.js';
|
24
|
-
import { d as defineCustomElement$s } from './graph.js';
|
25
|
-
import { d as defineCustomElement$r } from './icon.js';
|
26
|
-
import { d as defineCustomElement$q } from './input.js';
|
27
|
-
import { d as defineCustomElement$p } from './input-message.js';
|
28
|
-
import { d as defineCustomElement$o } from './label.js';
|
29
|
-
import { d as defineCustomElement$n } from './list.js';
|
30
|
-
import { d as defineCustomElement$m } from './list-item2.js';
|
31
|
-
import { d as defineCustomElement$l } from './loader.js';
|
32
|
-
import { d as defineCustomElement$k } from './modal.js';
|
33
|
-
import { d as defineCustomElement$j } from './notice.js';
|
34
|
-
import { d as defineCustomElement$i } from './option.js';
|
35
|
-
import { d as defineCustomElement$h } from './panel.js';
|
36
|
-
import { d as defineCustomElement$g } from './popover.js';
|
37
|
-
import { d as defineCustomElement$f } from './progress.js';
|
38
|
-
import { d as defineCustomElement$e } from './radio-group.js';
|
39
|
-
import { d as defineCustomElement$d } from './radio-group-item.js';
|
40
|
-
import { d as defineCustomElement$c } from './scrim.js';
|
41
|
-
import { d as defineCustomElement$b } from './select.js';
|
42
|
-
import { d as defineCustomElement$a } from './shell.js';
|
43
|
-
import { d as defineCustomElement$9 } from './slider.js';
|
44
|
-
import { d as defineCustomElement$8 } from './tooltip.js';
|
45
|
-
import { d as defineCustomElement$7 } from './map-draw-tools2.js';
|
46
|
-
import { d as defineCustomElement$5 } from './map-select-tools2.js';
|
47
|
-
import { d as defineCustomElement$4 } from './pdf-download2.js';
|
48
|
-
import { d as defineCustomElement$2 } from './refine-selection-tools2.js';
|
49
|
-
|
50
|
-
const publicNotificationCss = ":host{display:block;--calcite-input-message-spacing-value:0}.align-center{align-items:center}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}.action-bar-size{height:3.5rem;width:100%}.w-1-3{width:33.3%}.w-1-4{width:25%}.action-center{-webkit-box-align:center;-webkit-align-items:center;-ms-grid-row-align:center;align-items:center;align-content:center;justify-content:center}.width-full{width:100%}.height-full{height:100%}.padding-1{padding:1rem}.padding-top-sides-1{-webkit-padding-before:1rem;padding-block-start:1rem;-webkit-padding-start:1rem;padding-inline-start:1rem;-webkit-padding-end:1rem;padding-inline-end:1rem}.padding-sides-1{-webkit-padding-start:1rem;padding-inline-start:1rem;-webkit-padding-end:1rem;padding-inline-end:1rem}.padding-end-1-2{-webkit-padding-end:.5rem;padding-inline-end:.5rem}.padding-top-1-2{-webkit-padding-before:.5rem;padding-block-start:.5rem}.padding-top-1{padding-top:1rem}.padding-bottom-1{padding-bottom:1rem}.info-blue{color:#00A0FF}.info-message{justify-content:center;display:grid}.font-bold{font-weight:bold}.display-flex{display:flex}.display-block{display:block}.display-none{display:none}.main-label{float:left}html[dir=\"rtl\"] .main-label{float:right}.back-label:hover{cursor:pointer;color:var(--calcite-ui-brand-hover)}.border-bottom{border-bottom:1px solid var(--calcite-ui-border-2)}.margin-side-1{-webkit-margin-start:1rem;margin-inline-start:1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}.border-top{border-top:1px solid var(--calcite-ui-border-2)}.w-100{width:100%}.w-50{width:50%}.padding-1-2{padding:0.5rem}.list-border{border:1px solid var(--calcite-ui-border-2)}.margin-sides-1{-webkit-margin-start:1rem;margin-inline-start:1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}.margin-start-1-2{-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}.float-right{float:right}.float-right[dir=\"rtl\"]{float:left}.float-left{float:left}.float-left[dir=\"rtl\"]{float:right}.margin-top-0{-webkit-margin-before:0 !important;margin-block-start:0 !important}.height-1-1-2{height:1.5rem}.main-background{background-color:var(--calcite-ui-foreground-2)}.num-selected{align-items:center;display:flex}";
|
51
|
-
|
1
|
+
/*!
|
2
|
+
* Copyright 2022 Esri
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
+
*/
|
6
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
7
|
+
import { a as EPageType, b as ESketchType, c as EWorkflowType, d as EExportType } from './interfaces3.js';
|
8
|
+
import { l as loadModules } from './loadModules.js';
|
9
|
+
import { a as getMapLayerView, g as goToSelection, h as highlightFeatures, d as defineCustomElement$6 } from './map-layer-picker2.js';
|
10
|
+
import { g as getSelectionSetQuery } from './queryUtils.js';
|
11
|
+
import { s as state } from './publicNotificationStore.js';
|
12
|
+
import { a as getComponentClosestLanguage, g as getLocaleComponentStrings } from './locale.js';
|
13
|
+
import { g as getTotal, a as getSelectionIds, d as defineCustomElement$3 } from './refine-selection2.js';
|
14
|
+
import { d as defineCustomElement$C } from './buffer-tools2.js';
|
15
|
+
import { d as defineCustomElement$B } from './action.js';
|
16
|
+
import { d as defineCustomElement$A } from './action-bar.js';
|
17
|
+
import { d as defineCustomElement$z } from './action-group.js';
|
18
|
+
import { d as defineCustomElement$y } from './action-menu.js';
|
19
|
+
import { d as defineCustomElement$x } from './button.js';
|
20
|
+
import { d as defineCustomElement$w } from './checkbox.js';
|
21
|
+
import { d as defineCustomElement$v } from './chip.js';
|
22
|
+
import { d as defineCustomElement$u } from './combobox.js';
|
23
|
+
import { d as defineCustomElement$t } from './combobox-item.js';
|
24
|
+
import { d as defineCustomElement$s } from './graph.js';
|
25
|
+
import { d as defineCustomElement$r } from './icon.js';
|
26
|
+
import { d as defineCustomElement$q } from './input.js';
|
27
|
+
import { d as defineCustomElement$p } from './input-message.js';
|
28
|
+
import { d as defineCustomElement$o } from './label.js';
|
29
|
+
import { d as defineCustomElement$n } from './list.js';
|
30
|
+
import { d as defineCustomElement$m } from './list-item2.js';
|
31
|
+
import { d as defineCustomElement$l } from './loader.js';
|
32
|
+
import { d as defineCustomElement$k } from './modal.js';
|
33
|
+
import { d as defineCustomElement$j } from './notice.js';
|
34
|
+
import { d as defineCustomElement$i } from './option.js';
|
35
|
+
import { d as defineCustomElement$h } from './panel.js';
|
36
|
+
import { d as defineCustomElement$g } from './popover.js';
|
37
|
+
import { d as defineCustomElement$f } from './progress.js';
|
38
|
+
import { d as defineCustomElement$e } from './radio-group.js';
|
39
|
+
import { d as defineCustomElement$d } from './radio-group-item.js';
|
40
|
+
import { d as defineCustomElement$c } from './scrim.js';
|
41
|
+
import { d as defineCustomElement$b } from './select.js';
|
42
|
+
import { d as defineCustomElement$a } from './shell.js';
|
43
|
+
import { d as defineCustomElement$9 } from './slider.js';
|
44
|
+
import { d as defineCustomElement$8 } from './tooltip.js';
|
45
|
+
import { d as defineCustomElement$7 } from './map-draw-tools2.js';
|
46
|
+
import { d as defineCustomElement$5 } from './map-select-tools2.js';
|
47
|
+
import { d as defineCustomElement$4 } from './pdf-download2.js';
|
48
|
+
import { d as defineCustomElement$2 } from './refine-selection-tools2.js';
|
49
|
+
|
50
|
+
const publicNotificationCss = ":host{display:block;--calcite-input-message-spacing-value:0}.align-center{align-items:center}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}.action-bar-size{height:3.5rem;width:100%}.w-1-3{width:33.3%}.w-1-4{width:25%}.action-center{-webkit-box-align:center;-webkit-align-items:center;-ms-grid-row-align:center;align-items:center;align-content:center;justify-content:center}.width-full{width:100%}.height-full{height:100%}.padding-1{padding:1rem}.padding-top-sides-1{-webkit-padding-before:1rem;padding-block-start:1rem;-webkit-padding-start:1rem;padding-inline-start:1rem;-webkit-padding-end:1rem;padding-inline-end:1rem}.padding-sides-1{-webkit-padding-start:1rem;padding-inline-start:1rem;-webkit-padding-end:1rem;padding-inline-end:1rem}.padding-end-1-2{-webkit-padding-end:.5rem;padding-inline-end:.5rem}.padding-top-1-2{-webkit-padding-before:.5rem;padding-block-start:.5rem}.padding-top-1{padding-top:1rem}.padding-bottom-1{padding-bottom:1rem}.info-blue{color:#00A0FF}.info-message{justify-content:center;display:grid}.font-bold{font-weight:bold}.display-flex{display:flex}.display-block{display:block}.display-none{display:none}.main-label{float:left}html[dir=\"rtl\"] .main-label{float:right}.back-label:hover{cursor:pointer;color:var(--calcite-ui-brand-hover)}.border-bottom{border-bottom:1px solid var(--calcite-ui-border-2)}.margin-side-1{-webkit-margin-start:1rem;margin-inline-start:1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}.border-top{border-top:1px solid var(--calcite-ui-border-2)}.w-100{width:100%}.w-50{width:50%}.padding-1-2{padding:0.5rem}.list-border{border:1px solid var(--calcite-ui-border-2)}.margin-sides-1{-webkit-margin-start:1rem;margin-inline-start:1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}.margin-start-1-2{-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}.float-right{float:right}.float-right[dir=\"rtl\"]{float:left}.float-left{float:left}.float-left[dir=\"rtl\"]{float:right}.margin-top-0{-webkit-margin-before:0 !important;margin-block-start:0 !important}.height-1-1-2{height:1.5rem}.main-background{background-color:var(--calcite-ui-foreground-2)}.num-selected{align-items:center;display:flex}";
|
51
|
+
|
52
52
|
const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
53
53
|
constructor() {
|
54
54
|
super();
|
@@ -402,7 +402,7 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
402
402
|
_getDownloadPage(type) {
|
403
403
|
const isPdf = type === EExportType.PDF;
|
404
404
|
const hasSelections = this._hasSelections();
|
405
|
-
return (h("calcite-panel", null, h("div", null, h("div", { class: "padding-top-sides-1" }, h("calcite-label", { class: "font-bold" }, isPdf ? this._translations.downloadPDF : this._translations.downloadCSV)), hasSelections ? (h("div", null, h("calcite-label", null, this._translations.notifications), this._getSelectionLists(), h("div", { class: "margin-side-1 padding-top-1 border-bottom" }), h("div", { class: "padding-top-sides-1" }, h("calcite-label", { layout: "inline" }, h("calcite-checkbox", { disabled: !this._downloadActive, ref: (el) => { this.
|
405
|
+
return (h("calcite-panel", null, h("div", null, h("div", { class: "padding-top-sides-1" }, h("calcite-label", { class: "font-bold" }, isPdf ? this._translations.downloadPDF : this._translations.downloadCSV)), hasSelections ? (h("div", null, h("calcite-label", null, this._translations.notifications), this._getSelectionLists(), h("div", { class: "margin-side-1 padding-top-1 border-bottom" }), h("div", { class: "padding-top-sides-1" }, h("calcite-label", { class: isPdf ? "display-none" : "", layout: "inline" }, h("calcite-checkbox", { disabled: !this._downloadActive, ref: (el) => { this._removeDuplicatesCSV = el; } }), this._translations.removeDuplicate), h("calcite-label", { class: isPdf ? "" : "display-none", layout: "inline" }, h("calcite-checkbox", { disabled: !this._downloadActive, ref: (el) => { this._removeDuplicatesPDF = el; } }), this._translations.removeDuplicate)), h("div", { class: isPdf ? "" : "display-none" }, this._getLabel(this._translations.selectPDFLabelOption, false), h("div", { class: "padding-sides-1" }, h("pdf-download", { disabled: !this._downloadActive, layerView: this.addresseeLayer, ref: (el) => { this._downloadTools = el; } }))), h("div", { class: "padding-1 display-flex" }, h("calcite-button", { disabled: !this._downloadActive, onClick: isPdf ? () => this._downloadPDF() : () => this._downloadCSV(), width: "full" }, isPdf ? this._translations.downloadPDF : this._translations.downloadCSV)))) : (this._getNotice(this._translations.downloadNoLists, "padding-sides-1 padding-bottom-1")))));
|
406
406
|
}
|
407
407
|
/**
|
408
408
|
* Create the stacked navigation buttons for a page
|
@@ -486,7 +486,7 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
486
486
|
_downloadPDF() {
|
487
487
|
const ids = getSelectionIds(this._getDownloadSelectionSets());
|
488
488
|
const selectionSetNames = this._selectionSets.map(set => set.label);
|
489
|
-
void this._downloadTools.downloadPDF(selectionSetNames, ids, this.
|
489
|
+
void this._downloadTools.downloadPDF(selectionSetNames, ids, this._removeDuplicatesPDF.checked);
|
490
490
|
}
|
491
491
|
/**
|
492
492
|
* Download all selection sets as CSV
|
@@ -496,7 +496,7 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
496
496
|
_downloadCSV() {
|
497
497
|
const ids = getSelectionIds(this._getDownloadSelectionSets());
|
498
498
|
const selectionSetNames = this._selectionSets.map(set => set.label);
|
499
|
-
void this._downloadTools.downloadCSV(selectionSetNames, ids, this.
|
499
|
+
void this._downloadTools.downloadCSV(selectionSetNames, ids, this._removeDuplicatesCSV.checked);
|
500
500
|
}
|
501
501
|
/**
|
502
502
|
* Get all enabled selection sets
|
@@ -981,9 +981,9 @@ function defineCustomElement$1() {
|
|
981
981
|
break;
|
982
982
|
} });
|
983
983
|
}
|
984
|
-
defineCustomElement$1();
|
985
|
-
|
986
|
-
const PublicNotification = PublicNotification$1;
|
987
|
-
const defineCustomElement = defineCustomElement$1;
|
988
|
-
|
989
|
-
export { PublicNotification, defineCustomElement };
|
984
|
+
defineCustomElement$1();
|
985
|
+
|
986
|
+
const PublicNotification = PublicNotification$1;
|
987
|
+
const defineCustomElement = defineCustomElement$1;
|
988
|
+
|
989
|
+
export { PublicNotification, defineCustomElement };
|