@esri/solutions-components 0.3.5 → 0.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/buffer-tools_6.cjs.entry.js +26 -8
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +2 -2
- package/dist/cjs/calcite-input-message_5.cjs.entry.js +6 -4
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +2 -2
- package/dist/cjs/{csvUtils-83af7ae1.js → csvUtils-34666909.js} +1 -1
- package/dist/cjs/{interfaces-772edf61.js → interfaces-17c631bf.js} +1 -1
- package/dist/cjs/layer-table.cjs.entry.js +3 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/map-card.cjs.entry.js +1 -1
- package/dist/cjs/{mapViewUtils-55ac76cb.js → mapViewUtils-24d1d859.js} +1 -1
- package/dist/cjs/public-notification.cjs.entry.js +41 -7
- package/dist/cjs/solution-configuration.cjs.entry.js +2 -2
- package/dist/cjs/solution-contents_3.cjs.entry.js +2 -2
- package/dist/cjs/{solution-store-39726b81.js → solution-store-2dbab624.js} +1 -1
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/collection/components/buffer-tools/buffer-tools.js +48 -0
- package/dist/collection/components/map-draw-tools/map-draw-tools.js +10 -4
- package/dist/collection/components/public-notification/public-notification.css +12 -12
- package/dist/collection/components/public-notification/public-notification.js +50 -4
- package/dist/collection/components/refine-selection/refine-selection.js +4 -2
- package/dist/collection/components/refine-selection-tools/refine-selection-tools.css +1 -0
- package/dist/collection/components/refine-selection-tools/refine-selection-tools.js +3 -1
- package/dist/collection/demos/new-public-notification.html +7 -6
- package/dist/collection/utils/interfaces.js +1 -1
- package/dist/collection/utils/interfaces.ts +7 -2
- package/dist/components/buffer-tools2.js +10 -0
- package/dist/components/interfaces3.js +1 -1
- package/dist/components/map-draw-tools2.js +10 -4
- package/dist/components/public-notification.js +40 -6
- package/dist/components/refine-selection-tools2.js +4 -2
- package/dist/components/refine-selection2.js +4 -2
- package/dist/esm/buffer-tools_6.entry.js +26 -8
- package/dist/esm/calcite-combobox_3.entry.js +2 -2
- package/dist/esm/calcite-input-message_5.entry.js +6 -4
- package/dist/esm/calcite-shell-panel_14.entry.js +2 -2
- package/dist/esm/{csvUtils-eb231cfb.js → csvUtils-ae3004b9.js} +1 -1
- package/dist/esm/{interfaces-3b23a5f9.js → interfaces-d0d83efa.js} +1 -1
- package/dist/esm/layer-table.entry.js +3 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/map-card.entry.js +1 -1
- package/dist/esm/{mapViewUtils-e5d8a1e1.js → mapViewUtils-541e7a3c.js} +1 -1
- package/dist/esm/public-notification.entry.js +41 -7
- package/dist/esm/solution-configuration.entry.js +2 -2
- package/dist/esm/solution-contents_3.entry.js +2 -2
- package/dist/esm/{solution-store-c0bf9200.js → solution-store-41e15f1c.js} +1 -1
- package/dist/esm/solutions-components.js +1 -1
- package/dist/solutions-components/demos/new-public-notification.html +7 -6
- package/dist/solutions-components/p-05e64bd1.js +498 -2
- package/dist/solutions-components/p-08a95b33.entry.js +138 -0
- package/dist/solutions-components/p-0da5bbdf.entry.js +91 -0
- package/dist/solutions-components/p-0ef91144.entry.js +913 -0
- package/dist/solutions-components/p-0f523243.entry.js +1916 -0
- package/dist/solutions-components/p-11b9510e.entry.js +173 -0
- package/dist/solutions-components/p-1b875d94.entry.js +58 -0
- package/dist/solutions-components/p-1c567f3a.js +23 -16
- package/dist/solutions-components/p-1c883db9.entry.js +43 -0
- package/dist/solutions-components/p-1f225056.js +322 -0
- package/dist/solutions-components/p-1f499e67.entry.js +72 -0
- package/dist/solutions-components/p-20d3d758.entry.js +881 -0
- package/dist/solutions-components/p-2274ac9e.entry.js +160 -0
- package/dist/solutions-components/p-23ec5ac5.entry.js +93 -0
- package/dist/solutions-components/p-2447798c.entry.js +155 -0
- package/dist/solutions-components/p-2525e691.entry.js +432 -0
- package/dist/solutions-components/p-2561f5b5.js +4092 -0
- package/dist/solutions-components/p-29f887c0.entry.js +234 -0
- package/dist/solutions-components/p-2a0d8047.entry.js +345 -0
- package/dist/solutions-components/p-2c177e6a.entry.js +101 -0
- package/dist/solutions-components/p-2e9ed892.js +46 -1
- package/dist/solutions-components/p-316f56db.js +219 -2
- package/dist/solutions-components/p-327f3ebf.entry.js +98 -0
- package/dist/solutions-components/p-356f8b54.entry.js +138 -0
- package/dist/solutions-components/p-359c58de.entry.js +172 -0
- package/dist/solutions-components/p-37336c0d.entry.js +116 -0
- package/dist/solutions-components/p-374a5031.js +105 -2
- package/dist/solutions-components/p-39ea6ef4.entry.js +71 -0
- package/dist/solutions-components/p-3b010ce1.js +17 -1
- package/dist/solutions-components/p-4307dacd.js +194 -1
- package/dist/solutions-components/p-44da2507.js +405 -14
- package/dist/solutions-components/p-46bdffe8.entry.js +54 -0
- package/dist/solutions-components/p-4894bbeb.js +53 -2
- package/dist/solutions-components/p-4cd569f1.entry.js +1298 -0
- package/dist/solutions-components/p-4d4160f9.entry.js +121 -0
- package/dist/solutions-components/p-4e32bf8c.js +482 -1
- package/dist/solutions-components/p-4e9cbd32.entry.js +184 -0
- package/dist/solutions-components/p-508317b3.js +13 -2
- package/dist/solutions-components/p-54697d58.entry.js +198 -0
- package/dist/solutions-components/p-55c79103.entry.js +311 -0
- package/dist/solutions-components/p-57fd19c0.entry.js +706 -0
- package/dist/solutions-components/p-59b48fde.entry.js +443 -0
- package/dist/solutions-components/p-60e0e6a0.entry.js +214 -0
- package/dist/solutions-components/p-621d0534.entry.js +123 -0
- package/dist/solutions-components/p-63f6e8f1.js +14 -1
- package/dist/solutions-components/p-66aeec57.entry.js +61 -0
- package/dist/solutions-components/p-69834f46.entry.js +618 -0
- package/dist/solutions-components/p-6d9da8e5.entry.js +21530 -0
- package/dist/solutions-components/p-6e0da576.js +13 -1
- package/dist/solutions-components/p-6ec3f294.entry.js +106 -0
- package/dist/solutions-components/p-6fe17794.js +9 -1
- package/dist/solutions-components/p-7024cb16.entry.js +72 -0
- package/dist/solutions-components/p-70535506.entry.js +226 -0
- package/dist/solutions-components/p-708a63a8.js +12 -1
- package/dist/solutions-components/p-729708a3.js +14 -1
- package/dist/solutions-components/p-73e23995.js +6 -1
- package/dist/solutions-components/p-74b29d75.entry.js +231 -0
- package/dist/solutions-components/p-74b7ee25.entry.js +711 -0
- package/dist/solutions-components/p-77182c3a.js +3015 -1
- package/dist/solutions-components/p-78b3ef80.entry.js +456 -0
- package/dist/solutions-components/p-79709c19.js +60 -3
- package/dist/solutions-components/p-7a46ef97.js +181 -2
- package/dist/solutions-components/p-7be159e6.entry.js +175 -0
- package/dist/solutions-components/p-7d4451c2.entry.js +71 -0
- package/dist/solutions-components/p-7daea1df.js +41 -1
- package/dist/solutions-components/p-7e39e5ad.entry.js +102 -0
- package/dist/solutions-components/p-7fb45059.entry.js +43 -0
- package/dist/solutions-components/p-815533de.js +306 -3
- package/dist/solutions-components/p-816622ca.entry.js +248 -0
- package/dist/solutions-components/p-83166522.js +205 -2
- package/dist/solutions-components/p-83bd1991.entry.js +36 -0
- package/dist/solutions-components/p-856464d7.entry.js +572 -0
- package/dist/solutions-components/p-8c349bad.entry.js +347 -0
- package/dist/solutions-components/p-8dccb390.entry.js +1986 -0
- package/dist/solutions-components/p-904c185a.entry.js +228 -0
- package/dist/solutions-components/p-9092f8b3.entry.js +156 -0
- package/dist/solutions-components/p-9371145a.entry.js +477 -0
- package/dist/solutions-components/p-93d3119d.js +1948 -1
- package/dist/solutions-components/p-95ec8062.entry.js +173 -0
- package/dist/solutions-components/p-991ee695.js +109 -1
- package/dist/solutions-components/p-9a57dab7.entry.js +213 -0
- package/dist/solutions-components/p-9a9955db.js +41 -1
- package/dist/solutions-components/p-9c1ebc90.js +35 -16
- package/dist/solutions-components/p-9eba5c66.js +399 -3
- package/dist/solutions-components/p-a033a507.entry.js +252 -0
- package/dist/solutions-components/p-a3773415.entry.js +1132 -0
- package/dist/solutions-components/p-a44fe40f.entry.js +94 -0
- package/dist/solutions-components/p-a5b1ab03.js +33 -3
- package/dist/solutions-components/p-a5b2c13d.entry.js +723 -0
- package/dist/solutions-components/p-a6d729b7.entry.js +85 -0
- package/dist/solutions-components/p-a8005026.entry.js +565 -0
- package/dist/solutions-components/p-a80b3880.js +14 -1
- package/dist/solutions-components/p-a89198a3.entry.js +2620 -0
- package/dist/solutions-components/p-aa04bd1f.entry.js +95 -0
- package/dist/solutions-components/p-aa0a0922.entry.js +80 -0
- package/dist/solutions-components/p-ae1fd76b.js +11 -1
- package/dist/solutions-components/p-b2cf435e.entry.js +87 -0
- package/dist/solutions-components/p-b359dc78.js +41 -1
- package/dist/solutions-components/p-b57bc4eb.entry.js +71 -0
- package/dist/solutions-components/p-b75cc407.entry.js +145 -0
- package/dist/solutions-components/p-b911cb75.entry.js +71 -0
- package/dist/solutions-components/p-b965e177.entry.js +335 -0
- package/dist/solutions-components/p-b978636e.js +14 -1
- package/dist/solutions-components/p-ba10a5c8.entry.js +42 -0
- package/dist/solutions-components/p-bd67334c.js +122 -2
- package/dist/solutions-components/p-bde20dba.entry.js +212 -0
- package/dist/solutions-components/p-be0b5a94.entry.js +248 -0
- package/dist/solutions-components/p-c023e6a1.js +2028 -2
- package/dist/solutions-components/p-c27b0c2d.entry.js +150 -0
- package/dist/solutions-components/p-c579ed60.entry.js +447 -0
- package/dist/solutions-components/p-c92bc231.js +101 -2
- package/dist/solutions-components/p-cc815aca.js +839 -16
- package/dist/solutions-components/p-cc8beabb.entry.js +695 -0
- package/dist/solutions-components/p-cdc46c0c.js +1751 -2
- package/dist/solutions-components/p-d12e6992.entry.js +118 -0
- package/dist/solutions-components/p-d1dfed6b.entry.js +179 -0
- package/dist/solutions-components/p-d48a24e6.js +754 -2
- package/dist/solutions-components/p-d96ee3ef.entry.js +579 -0
- package/dist/solutions-components/p-dbc9a5a8.js +80 -0
- package/dist/solutions-components/p-dcdbe712.entry.js +278 -0
- package/dist/solutions-components/p-de39206f.entry.js +113 -0
- package/dist/solutions-components/p-de5416e8.js +28 -1
- package/dist/solutions-components/p-df420d54.entry.js +213 -0
- package/dist/solutions-components/p-e3138cf0.entry.js +20 -0
- package/dist/solutions-components/p-e4845fec.entry.js +152 -0
- package/dist/solutions-components/p-e611d8c8.js +28 -1
- package/dist/solutions-components/p-e947d3b0.js +5 -1
- package/dist/solutions-components/p-ea534300.js +41 -2
- package/dist/solutions-components/p-ec84ee85.entry.js +55 -0
- package/dist/solutions-components/p-ed36c637.entry.js +85 -0
- package/dist/solutions-components/p-f0add71c.js +74 -0
- package/dist/solutions-components/p-f42e014b.js +171 -2
- package/dist/solutions-components/p-fc02e7de.entry.js +308 -0
- package/dist/solutions-components/p-fc884dd6.js +28 -16
- package/dist/solutions-components/p-fcbfa59c.entry.js +181 -0
- package/dist/solutions-components/p-fdc5cf5f.entry.js +138 -0
- package/dist/solutions-components/solutions-components.esm.js +20 -1
- package/dist/solutions-components/utils/interfaces.ts +7 -2
- package/dist/types/components/buffer-tools/buffer-tools.d.ts +9 -1
- package/dist/types/components/public-notification/public-notification.d.ts +26 -0
- package/dist/types/components.d.ts +9 -1
- package/dist/types/preact.d.ts +3 -1
- package/dist/types/utils/interfaces.d.ts +4 -0
- package/package.json +1 -1
- package/dist/solutions-components/p-021432b8.entry.js +0 -12
- package/dist/solutions-components/p-03440b1e.entry.js +0 -11
- package/dist/solutions-components/p-0512635b.entry.js +0 -6
- package/dist/solutions-components/p-086ef115.entry.js +0 -29
- package/dist/solutions-components/p-0b4bf57f.entry.js +0 -6
- package/dist/solutions-components/p-0c088725.entry.js +0 -6
- package/dist/solutions-components/p-0f820c08.entry.js +0 -6
- package/dist/solutions-components/p-164780a0.entry.js +0 -6
- package/dist/solutions-components/p-179a68a0.entry.js +0 -6
- package/dist/solutions-components/p-184b5005.entry.js +0 -11
- package/dist/solutions-components/p-1d082fee.entry.js +0 -11
- package/dist/solutions-components/p-1e6c02a2.entry.js +0 -11
- package/dist/solutions-components/p-20a58e62.entry.js +0 -17
- package/dist/solutions-components/p-20b2458c.entry.js +0 -11
- package/dist/solutions-components/p-245d47c1.entry.js +0 -6
- package/dist/solutions-components/p-2cb057a9.entry.js +0 -11
- package/dist/solutions-components/p-2cc72806.entry.js +0 -23
- package/dist/solutions-components/p-2de1db9c.entry.js +0 -11
- package/dist/solutions-components/p-2e9c7055.entry.js +0 -11
- package/dist/solutions-components/p-2ed5e6c8.entry.js +0 -11
- package/dist/solutions-components/p-3109d940.entry.js +0 -6
- package/dist/solutions-components/p-31a8bcfa.entry.js +0 -6
- package/dist/solutions-components/p-3f88ba73.entry.js +0 -6
- package/dist/solutions-components/p-3fa9b3c8.js +0 -36
- package/dist/solutions-components/p-40c41709.entry.js +0 -6
- package/dist/solutions-components/p-40e963c7.entry.js +0 -11
- package/dist/solutions-components/p-40f480da.entry.js +0 -11
- package/dist/solutions-components/p-49d5d2d3.entry.js +0 -11
- package/dist/solutions-components/p-4f7049a4.entry.js +0 -11
- package/dist/solutions-components/p-506e4d78.entry.js +0 -6
- package/dist/solutions-components/p-576fdcab.entry.js +0 -6
- package/dist/solutions-components/p-5bd0cf34.entry.js +0 -23
- package/dist/solutions-components/p-65e177f1.entry.js +0 -6
- package/dist/solutions-components/p-67d710c2.entry.js +0 -6
- package/dist/solutions-components/p-7268b445.entry.js +0 -11
- package/dist/solutions-components/p-75ea4667.entry.js +0 -6
- package/dist/solutions-components/p-778c0a36.entry.js +0 -17
- package/dist/solutions-components/p-7a22509b.entry.js +0 -12
- package/dist/solutions-components/p-7bff51db.entry.js +0 -6
- package/dist/solutions-components/p-7d2d0d5d.entry.js +0 -6
- package/dist/solutions-components/p-7f0036f1.entry.js +0 -11
- package/dist/solutions-components/p-8060fb94.entry.js +0 -6
- package/dist/solutions-components/p-80a1b305.entry.js +0 -6
- package/dist/solutions-components/p-81eae877.entry.js +0 -12
- package/dist/solutions-components/p-84e86b8b.entry.js +0 -6
- package/dist/solutions-components/p-877dd0dc.entry.js +0 -18
- package/dist/solutions-components/p-9106950a.entry.js +0 -11
- package/dist/solutions-components/p-979804a4.entry.js +0 -11
- package/dist/solutions-components/p-9862baa8.entry.js +0 -11
- package/dist/solutions-components/p-9b5a9117.entry.js +0 -12
- package/dist/solutions-components/p-9deff0c2.entry.js +0 -6
- package/dist/solutions-components/p-9f400eeb.entry.js +0 -6
- package/dist/solutions-components/p-a0639ad1.entry.js +0 -11
- package/dist/solutions-components/p-a33c044e.entry.js +0 -6
- package/dist/solutions-components/p-a516c658.entry.js +0 -6
- package/dist/solutions-components/p-aa0ef36d.entry.js +0 -11
- package/dist/solutions-components/p-aaccbdf3.entry.js +0 -18
- package/dist/solutions-components/p-ab03a5c9.entry.js +0 -11
- package/dist/solutions-components/p-ad469b92.entry.js +0 -11
- package/dist/solutions-components/p-adc86ac3.entry.js +0 -6
- package/dist/solutions-components/p-addc1156.entry.js +0 -11
- package/dist/solutions-components/p-ae846934.entry.js +0 -11
- package/dist/solutions-components/p-b0572fc4.entry.js +0 -37
- package/dist/solutions-components/p-b4e476b7.js +0 -257
- package/dist/solutions-components/p-b668daf8.js +0 -21
- package/dist/solutions-components/p-b6e6eae1.entry.js +0 -6
- package/dist/solutions-components/p-bc317a7f.entry.js +0 -6
- package/dist/solutions-components/p-bd4d0773.entry.js +0 -6
- package/dist/solutions-components/p-be41429f.js +0 -21
- package/dist/solutions-components/p-bf6b6353.entry.js +0 -11
- package/dist/solutions-components/p-c2e3dfbb.entry.js +0 -11
- package/dist/solutions-components/p-c4afae53.entry.js +0 -12
- package/dist/solutions-components/p-c9da1c26.entry.js +0 -6
- package/dist/solutions-components/p-cbf8cd49.entry.js +0 -6
- package/dist/solutions-components/p-cc1a064a.entry.js +0 -11
- package/dist/solutions-components/p-d09a168c.entry.js +0 -6
- package/dist/solutions-components/p-d377f913.entry.js +0 -11
- package/dist/solutions-components/p-d4cefead.entry.js +0 -37
- package/dist/solutions-components/p-d7bc0baf.entry.js +0 -16
- package/dist/solutions-components/p-d8968487.entry.js +0 -11
- package/dist/solutions-components/p-e00a0b86.entry.js +0 -11
- package/dist/solutions-components/p-e9a7ed49.entry.js +0 -11
- package/dist/solutions-components/p-ec27e493.entry.js +0 -11
- package/dist/solutions-components/p-ed6404eb.entry.js +0 -6
- package/dist/solutions-components/p-ef21e195.entry.js +0 -23
- package/dist/solutions-components/p-f6068a2d.entry.js +0 -11
- package/dist/solutions-components/p-f6c4cff3.entry.js +0 -11
- package/dist/solutions-components/p-f847291f.entry.js +0 -6
- package/dist/solutions-components/p-f90fd262.entry.js +0 -11
- package/dist/solutions-components/p-fc973005.entry.js +0 -6
- package/dist/solutions-components/p-ff9fb6bc.entry.js +0 -11
|
@@ -19,6 +19,10 @@
|
|
|
19
19
|
--calcite-input-message-spacing-value: 0;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
.align-center {
|
|
23
|
+
align-items: center;
|
|
24
|
+
}
|
|
25
|
+
|
|
22
26
|
.border-bottom-1 {
|
|
23
27
|
border-width: 0px;
|
|
24
28
|
border-bottom-width: 1px;
|
|
@@ -179,24 +183,20 @@
|
|
|
179
183
|
margin-inline-start: 0.5rem;
|
|
180
184
|
}
|
|
181
185
|
|
|
182
|
-
.
|
|
183
|
-
|
|
184
|
-
right: 1rem;
|
|
186
|
+
.float-right {
|
|
187
|
+
float: right;
|
|
185
188
|
}
|
|
186
189
|
|
|
187
|
-
.
|
|
188
|
-
|
|
189
|
-
left: 1rem;
|
|
190
|
+
.float-right[dir="rtl"] {
|
|
191
|
+
float: left;
|
|
190
192
|
}
|
|
191
193
|
|
|
192
|
-
.
|
|
193
|
-
|
|
194
|
-
left: 1rem;
|
|
194
|
+
.float-left {
|
|
195
|
+
float: left;
|
|
195
196
|
}
|
|
196
197
|
|
|
197
|
-
.
|
|
198
|
-
|
|
199
|
-
right: 1rem;
|
|
198
|
+
.float-left[dir="rtl"] {
|
|
199
|
+
float: right;
|
|
200
200
|
}
|
|
201
201
|
|
|
202
202
|
.margin-top-0 {
|
|
@@ -92,6 +92,13 @@ export class PublicNotification {
|
|
|
92
92
|
return this._highlightFeatures();
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
+
/**
|
|
96
|
+
* Handle changes to the buffer distance value
|
|
97
|
+
*/
|
|
98
|
+
distanceChanged(event) {
|
|
99
|
+
this._updateLabel(event, "distance");
|
|
100
|
+
this._distance = event.detail.newValue;
|
|
101
|
+
}
|
|
95
102
|
/**
|
|
96
103
|
* Handle changes to the selection sets
|
|
97
104
|
*/
|
|
@@ -104,6 +111,13 @@ export class PublicNotification {
|
|
|
104
111
|
sketchTypeChange(event) {
|
|
105
112
|
this._sketchType = event.detail;
|
|
106
113
|
}
|
|
114
|
+
/**
|
|
115
|
+
* Handle changes to the buffer unit
|
|
116
|
+
*/
|
|
117
|
+
unitChanged(event) {
|
|
118
|
+
this._updateLabel(event, "unit");
|
|
119
|
+
this._unit = event.detail.newValue;
|
|
120
|
+
}
|
|
107
121
|
//--------------------------------------------------------------------------
|
|
108
122
|
//
|
|
109
123
|
// Functions (lifecycle)
|
|
@@ -209,7 +223,7 @@ export class PublicNotification {
|
|
|
209
223
|
_getListPage() {
|
|
210
224
|
const hasSets = this._selectionSets.filter(ss => ss.workflowType !== EWorkflowType.REFINE).length > 0;
|
|
211
225
|
const total = utils.getTotal(this._selectionSets);
|
|
212
|
-
return hasSets ? (h("calcite-panel", null, h("div", { class: "padding-top-sides-1" }, h("calcite-label", { class: "font-bold" }, this._translations.myLists)), this._getNotice(this._translations.listHasSetsTip, "padding-sides-1 padding-bottom-1"), this._getMapLayerPicker(), h("div", { class: "padding-sides-1 height-1-1-2" }, h("div", { class: "
|
|
226
|
+
return hasSets ? (h("calcite-panel", null, h("div", { class: "padding-top-sides-1" }, h("calcite-label", { class: "font-bold" }, this._translations.myLists)), this._getNotice(this._translations.listHasSetsTip, "padding-sides-1 padding-bottom-1"), this._getMapLayerPicker(), h("div", { class: "display-block padding-sides-1 height-1-1-2" }, h("div", { class: "display-block float-left" }, h("calcite-label", { alignment: "start", class: "font-bold" }, this._translations.notifications)), h("div", { class: "display-block float-right" }, h("calcite-input-message", { active: true, class: "info-blue margin-top-0", scale: "m" }, this._translations.uniqueCout.replace("{{n}}", total.toString())))), hasSets ? this._getSelectionSetList() : (h("div", { class: "info-message" }, h("calcite-input-message", { active: true, class: "info-blue", scale: "m" }, this._translations.noNotifications))), h("div", { class: "display-flex padding-1" }, h("calcite-button", { onClick: () => { this._setPageType(EPageType.SELECT); }, width: "full" }, this._translations.add)), this._showModal(this._showLayerSelectionChangeModal))) : (h("calcite-panel", null, h("div", { class: "padding-top-sides-1" }, h("calcite-label", { class: "font-bold" }, this._translations.myLists)), h("div", { class: "padding-sides-1" }, h("calcite-label", null, this._translations.notifications)), h("div", { class: "info-message padding-bottom-1" }, h("calcite-input-message", { active: true, class: "info-blue", scale: "m" }, this._translations.noNotifications)), this._getNotice(this._translations.selectLayerAndAdd, "padding-sides-1 padding-bottom-1"), this._getMapLayerPicker(), h("div", { class: "display-flex padding-1" }, h("calcite-button", { onClick: () => { this._setPageType(EPageType.SELECT); }, width: "full" }, this._translations.add))));
|
|
213
227
|
}
|
|
214
228
|
/**
|
|
215
229
|
* Create the UI element that will expose the addressee layers
|
|
@@ -279,7 +293,7 @@ export class PublicNotification {
|
|
|
279
293
|
* @protected
|
|
280
294
|
*/
|
|
281
295
|
_getSelectPage() {
|
|
282
|
-
var _a, _b
|
|
296
|
+
var _a, _b;
|
|
283
297
|
const searchTip = this._translations.selectSearchTip;
|
|
284
298
|
const selectTip = this._translations.selectLayerTip;
|
|
285
299
|
const sketchTip = this._sketchType === ESketchType.INTERACTIVE ?
|
|
@@ -291,7 +305,7 @@ export class PublicNotification {
|
|
|
291
305
|
return (h("calcite-panel", null, this._getLabel(this._translations.stepTwoFull.replace("{{layer}}", (_a = this.addresseeLayer) === null || _a === void 0 ? void 0 : _a.layer.title)), this._getNotice(noticeText), h("div", { class: "padding-top-sides-1" }, h("map-select-tools", { bufferColor: this.bufferColor, bufferOutlineColor: this.bufferOutlineColor, class: "font-bold", defaultBufferDistance: this.defaultBufferDistance, defaultBufferUnit: this.defaultBufferUnit, enabledLayerIds: this.selectionLayerIds, isUpdate: !!this._activeSelection, mapView: this.mapView, onSelectionSetChange: (evt) => this._updateForSelection(evt), onWorkflowTypeChange: (evt) => this._updateForWorkflowType(evt), ref: (el) => { this._selectTools = el; }, searchConfiguration: this.searchConfiguration, selectLayerView: this.addresseeLayer, selectionSet: this._activeSelection, showBufferTools: this.showSearchSettings })), h("div", { class: "padding-sides-1 padding-bottom-1", style: { "align-items": "end", "display": "flex" } }, h("calcite-icon", { class: "info-blue padding-end-1-2", icon: "feature-layer", scale: "s" }), h("calcite-input-message", { active: true, class: "info-blue", scale: "m" }, this.noResultText && this._numSelected === 0 ? this.noResultText :
|
|
292
306
|
this._translations.selectedAddresses.replace("{{n}}", this._numSelected.toString()).replace("{{layer}}", ((_b = this.addresseeLayer) === null || _b === void 0 ? void 0 : _b.layer.title) || ""))), h("div", { class: "padding-sides-1 " + nameLabelClass }, h("calcite-label", { class: "font-bold" }, "Name label", h("calcite-input", { onInput: () => {
|
|
293
307
|
this.labelChange.emit(this._labelName.value);
|
|
294
|
-
}, placeholder: "Insert label here...", ref: (el) => { this._labelName = el; }, value:
|
|
308
|
+
}, placeholder: "Insert label here...", ref: (el) => { this._labelName = el; }, value: this._customLabel || "" }))), this._getPageNavButtons(this._translations.done, this._numSelected === 0, () => { void this._saveSelection(); }, this._translations.cancel, false, () => { void this._home(); })));
|
|
295
309
|
}
|
|
296
310
|
/**
|
|
297
311
|
* Create the Refine page that users can interactively add/remove features from existing selection sets
|
|
@@ -387,7 +401,7 @@ export class PublicNotification {
|
|
|
387
401
|
if (!this._downloadActive && cur.download) {
|
|
388
402
|
this._downloadActive = true;
|
|
389
403
|
}
|
|
390
|
-
prev.push((h("div", { class: "display-flex padding-sides-1 padding-bottom-1" }, h("calcite-checkbox", { checked: cur.download, onClick: () => { void this._toggleDownload(cur.id); } }), h("calcite-list", { class: "list-border margin-start-1-2 w-100", id: "download-list" }, h("calcite-list-item", { description: this._translations.selectedFeatures.replace("{{n}}", cur.selectedIds.length.toString()), disabled: !cur.download, label: cur.label, onClick: () => { void this._toggleDownload(cur.id); } })))));
|
|
404
|
+
prev.push((h("div", { class: "display-flex padding-sides-1 padding-bottom-1" }, h("calcite-checkbox", { checked: cur.download, class: "align-center", onClick: () => { void this._toggleDownload(cur.id); } }), h("calcite-list", { class: "list-border margin-start-1-2 w-100", id: "download-list" }, h("calcite-list-item", { description: this._translations.selectedFeatures.replace("{{n}}", cur.selectedIds.length.toString()), disabled: !cur.download, label: cur.label, onClick: () => { void this._toggleDownload(cur.id); } })))));
|
|
391
405
|
}
|
|
392
406
|
return prev;
|
|
393
407
|
}, []) || (h("div", null));
|
|
@@ -439,6 +453,20 @@ export class PublicNotification {
|
|
|
439
453
|
return ss.download || ss.workflowType === EWorkflowType.REFINE;
|
|
440
454
|
});
|
|
441
455
|
}
|
|
456
|
+
/**
|
|
457
|
+
* Update custom label UI with buffer values
|
|
458
|
+
*
|
|
459
|
+
* @protected
|
|
460
|
+
*/
|
|
461
|
+
_updateLabel(evt, type) {
|
|
462
|
+
if (this._customLabel) {
|
|
463
|
+
const oldV = type === "unit" ? `${this._distance} ${evt.detail.oldValue}` : `${evt.detail.oldValue} ${this._unit}`;
|
|
464
|
+
const newV = type === "unit" ? `${this._distance} ${evt.detail.newValue}` : `${evt.detail.newValue} ${this._unit}`;
|
|
465
|
+
this._customLabel = this._customLabel.replace(oldV, newV);
|
|
466
|
+
this._labelName.value = this._customLabel;
|
|
467
|
+
this.labelChange.emit(this._labelName.value);
|
|
468
|
+
}
|
|
469
|
+
}
|
|
442
470
|
/**
|
|
443
471
|
* Store the current workflow type
|
|
444
472
|
*
|
|
@@ -577,6 +605,9 @@ export class PublicNotification {
|
|
|
577
605
|
await ((_a = this._selectTools) === null || _a === void 0 ? void 0 : _a.clearSelection());
|
|
578
606
|
this._numSelected = 0;
|
|
579
607
|
this._activeSelection = undefined;
|
|
608
|
+
this._customLabel = undefined;
|
|
609
|
+
this._distance = undefined;
|
|
610
|
+
this._unit = undefined;
|
|
580
611
|
}
|
|
581
612
|
/**
|
|
582
613
|
* Delete the selection at the defined index
|
|
@@ -613,6 +644,9 @@ export class PublicNotification {
|
|
|
613
644
|
_openSelection(selectionSet, evt) {
|
|
614
645
|
evt.stopPropagation();
|
|
615
646
|
this._activeSelection = selectionSet;
|
|
647
|
+
this._distance = this._activeSelection.distance;
|
|
648
|
+
this._unit = this._activeSelection.unit;
|
|
649
|
+
this._customLabel = this._activeSelection.label;
|
|
616
650
|
this._pageType = EPageType.SELECT;
|
|
617
651
|
}
|
|
618
652
|
/**
|
|
@@ -992,6 +1026,12 @@ export class PublicNotification {
|
|
|
992
1026
|
}
|
|
993
1027
|
static get listeners() {
|
|
994
1028
|
return [{
|
|
1029
|
+
"name": "distanceChanged",
|
|
1030
|
+
"method": "distanceChanged",
|
|
1031
|
+
"target": "window",
|
|
1032
|
+
"capture": false,
|
|
1033
|
+
"passive": false
|
|
1034
|
+
}, {
|
|
995
1035
|
"name": "selectionSetsChanged",
|
|
996
1036
|
"method": "selectionSetsChanged",
|
|
997
1037
|
"target": "window",
|
|
@@ -1003,6 +1043,12 @@ export class PublicNotification {
|
|
|
1003
1043
|
"target": "window",
|
|
1004
1044
|
"capture": false,
|
|
1005
1045
|
"passive": false
|
|
1046
|
+
}, {
|
|
1047
|
+
"name": "unitChanged",
|
|
1048
|
+
"method": "unitChanged",
|
|
1049
|
+
"target": "window",
|
|
1050
|
+
"capture": false,
|
|
1051
|
+
"passive": false
|
|
1006
1052
|
}];
|
|
1007
1053
|
}
|
|
1008
1054
|
}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* limitations under the License.
|
|
20
20
|
*/
|
|
21
21
|
import { Host, h } from "@stencil/core";
|
|
22
|
-
import { ESelectionMode, EWorkflowType } from "../../utils/interfaces";
|
|
22
|
+
import { ERefineMode, ESelectionMode, EWorkflowType } from "../../utils/interfaces";
|
|
23
23
|
import * as utils from "../../utils/publicNotificationUtils";
|
|
24
24
|
import { getLocaleComponentStrings } from "../../utils/locale";
|
|
25
25
|
export class RefineSelection {
|
|
@@ -67,7 +67,7 @@ export class RefineSelection {
|
|
|
67
67
|
* Renders the component.
|
|
68
68
|
*/
|
|
69
69
|
render() {
|
|
70
|
-
return (h(Host, null, h("div", { class: "padding-1" }, h("div", null, h("calcite-radio-group", { class: "w-100", onCalciteRadioGroupChange: (evt) => this._modeChanged(evt) }, h("calcite-radio-group-item", { checked: this._addEnabled, class: "w-50", onClick: () => this._setSelectionMode(ESelectionMode.ADD), value: ESelectionMode.ADD }, this._translations.add), h("calcite-radio-group-item", { checked: !this._addEnabled, class: "w-50", onClick: () => this._setSelectionMode(ESelectionMode.REMOVE), value: ESelectionMode.REMOVE }, this._translations.remove)), h("refine-selection-tools", { border: true, enabledLayerIds: this.enabledLayerIds, ids: utils.getSelectionIds(this.selectionSets), layerViews: [this.addresseeLayer], mapView: this.mapView, mode: this._addEnabled ? ESelectionMode.ADD : ESelectionMode.REMOVE, ref: (el) => { this._refineTools = el; }, useLayerPicker: false })), h("br", null), (h("calcite-list", { class: "list-border" }, this._getRefineSelectionSetList())))));
|
|
70
|
+
return (h(Host, null, h("div", { class: "padding-1" }, h("div", null, h("calcite-radio-group", { class: "w-100", onCalciteRadioGroupChange: (evt) => this._modeChanged(evt) }, h("calcite-radio-group-item", { checked: this._addEnabled, class: "w-50", onClick: () => this._setSelectionMode(ESelectionMode.ADD), value: ESelectionMode.ADD }, this._translations.add), h("calcite-radio-group-item", { checked: !this._addEnabled, class: "w-50", onClick: () => this._setSelectionMode(ESelectionMode.REMOVE), value: ESelectionMode.REMOVE }, this._translations.remove)), h("refine-selection-tools", { border: true, enabledLayerIds: this.enabledLayerIds, ids: utils.getSelectionIds(this.selectionSets), layerViews: [this.addresseeLayer], mapView: this.mapView, mode: this._addEnabled ? ESelectionMode.ADD : ESelectionMode.REMOVE, ref: (el) => { this._refineTools = el; }, refineMode: ERefineMode.ALL, useLayerPicker: false })), h("br", null), (h("calcite-list", { class: "list-border" }, this._getRefineSelectionSetList())))));
|
|
71
71
|
}
|
|
72
72
|
//--------------------------------------------------------------------------
|
|
73
73
|
//
|
|
@@ -97,6 +97,7 @@ export class RefineSelection {
|
|
|
97
97
|
* @protected
|
|
98
98
|
*/
|
|
99
99
|
_getRefineSelectionSetList() {
|
|
100
|
+
console.log("_getRefineSelectionSetList");
|
|
100
101
|
const total = utils.getTotal(this.selectionSets);
|
|
101
102
|
const refineSet = this._getRefineSelectionSet(this.selectionSets);
|
|
102
103
|
const numAdded = (refineSet === null || refineSet === void 0 ? void 0 : refineSet.refineIds.addIds.length) || 0;
|
|
@@ -168,6 +169,7 @@ export class RefineSelection {
|
|
|
168
169
|
* @protected
|
|
169
170
|
*/
|
|
170
171
|
_updateRefineIds(selectionSet, addIds, removeIds) {
|
|
172
|
+
console.log("_updateRefineIds");
|
|
171
173
|
// remove ids if they exist in the current add or remove list
|
|
172
174
|
selectionSet.refineIds.addIds = selectionSet.refineIds.addIds.filter(id => removeIds.indexOf(id) < 0);
|
|
173
175
|
selectionSet.refineIds.removeIds = selectionSet.refineIds.removeIds.filter(id => addIds.indexOf(id) < 0);
|
|
@@ -131,7 +131,8 @@ export class RefineSelectionTools {
|
|
|
131
131
|
render() {
|
|
132
132
|
const showLayerPickerClass = this.useLayerPicker ? "div-visible" : "div-not-visible";
|
|
133
133
|
const drawClass = this.border ? " border" : "";
|
|
134
|
-
|
|
134
|
+
const showUndoRedo = this.refineMode === ERefineMode.ALL ? "div-visible" : "div-not-visible";
|
|
135
|
+
return (h(Host, null, h("div", null, h("map-layer-picker", { class: showLayerPickerClass, enabledLayerIds: this.enabledLayerIds, mapView: this.mapView, onLayerSelectionChange: (evt) => { void this._layerSelectionChange(evt); }, selectedLayerIds: this.layerViews.map(l => l.layer.id), selectionMode: "single" }), h("div", { class: "margin-top-1" + drawClass }, h("div", { class: "esri-sketch esri-widget" }, h("div", { class: "esri-sketch__panel" }, h("div", { class: "esri-sketch__tool-section esri-sketch__section" }, h("calcite-action", { disabled: !this._selectEnabled, icon: "select", onClick: () => this._setSelectionMode(ESelectionType.POINT), scale: "s", text: this._translations.select })), h("div", { class: "esri-sketch__tool-section esri-sketch__section" }, h("calcite-action", { disabled: !this._selectEnabled, icon: "line", onClick: () => this._setSelectionMode(ESelectionType.LINE), scale: "s", text: this._translations.selectLine }), h("calcite-action", { disabled: !this._selectEnabled, icon: "polygon", onClick: () => this._setSelectionMode(ESelectionType.POLY), scale: "s", text: this._translations.selectPolygon }), h("calcite-action", { disabled: !this._selectEnabled, icon: "rectangle", onClick: () => this._setSelectionMode(ESelectionType.RECT), scale: "s", text: this._translations.selectRectangle })), h("div", { class: showUndoRedo + " esri-sketch__tool-section esri-sketch__section" }, h("calcite-action", { disabled: this._undoStack.length === 0, icon: "undo", onClick: () => this._undo(), scale: "s", text: this._translations.undo }), h("calcite-action", { disabled: this._redoStack.length === 0, icon: "redo", onClick: () => this._redo(), scale: "s", text: this._translations.redo }))))))));
|
|
135
136
|
}
|
|
136
137
|
//--------------------------------------------------------------------------
|
|
137
138
|
//
|
|
@@ -360,6 +361,7 @@ export class RefineSelectionTools {
|
|
|
360
361
|
* @protected
|
|
361
362
|
*/
|
|
362
363
|
async _updateIds(oids, mode, operationStack, operationMode) {
|
|
364
|
+
console.log("_updateIds");
|
|
363
365
|
const idUpdates = { addIds: [], removeIds: [] };
|
|
364
366
|
if (mode === ESelectionMode.ADD) {
|
|
365
367
|
idUpdates.addIds = oids.filter(id => this.ids.indexOf(id) < 0);
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
top: 0px;
|
|
28
28
|
left: 0px;
|
|
29
29
|
bottom: 0px;
|
|
30
|
-
right:
|
|
30
|
+
right: 354px;
|
|
31
31
|
}
|
|
32
32
|
#viewDiv[dir="rtl"] {
|
|
33
|
-
left:
|
|
33
|
+
left: 354px;
|
|
34
34
|
right: 0px;
|
|
35
35
|
}
|
|
36
36
|
.over-map {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
left: 0px;
|
|
43
43
|
}
|
|
44
44
|
.column {
|
|
45
|
-
width:
|
|
45
|
+
width: 320px;
|
|
46
46
|
padding: 1rem;
|
|
47
47
|
border: 1px solid var(--calcite-ui-border-2);
|
|
48
48
|
height: -webkit-fill-available;
|
|
@@ -111,9 +111,10 @@
|
|
|
111
111
|
demo.noResultText = "No results found";
|
|
112
112
|
//demo.selectionLayerIds = ["1843422bf6b-layer-7"];
|
|
113
113
|
demo.showSearchSettings = true;
|
|
114
|
-
demo.customLabelEnabled =
|
|
115
|
-
demo.bufferColor = [227, 0, 0, 0.8];
|
|
116
|
-
demo.bufferOutlineColor = [0, 255, 0];
|
|
114
|
+
demo.customLabelEnabled = false;
|
|
115
|
+
// demo.bufferColor = [227, 0, 0, 0.8];
|
|
116
|
+
// demo.bufferOutlineColor = [0, 255, 0];
|
|
117
|
+
demo.showRefineSelection = true;
|
|
117
118
|
});
|
|
118
119
|
</script>
|
|
119
120
|
</head>
|
|
@@ -45,7 +45,7 @@ export var EPageType;
|
|
|
45
45
|
export var ERefineMode;
|
|
46
46
|
(function (ERefineMode) {
|
|
47
47
|
ERefineMode["ALL"] = "ALL";
|
|
48
|
-
ERefineMode["SUBSET"] = "SUBSET";
|
|
48
|
+
ERefineMode["SUBSET"] = "SUBSET"; // Used as a part interactive selection "Use layer features"
|
|
49
49
|
})(ERefineMode || (ERefineMode = {}));
|
|
50
50
|
export var ESelectionMode;
|
|
51
51
|
(function (ESelectionMode) {
|
|
@@ -44,8 +44,8 @@ export enum EPageType {
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
export enum ERefineMode {
|
|
47
|
-
ALL="ALL",
|
|
48
|
-
SUBSET="SUBSET"
|
|
47
|
+
ALL="ALL", // Used for the refine selection workflow
|
|
48
|
+
SUBSET="SUBSET" // Used as a part interactive selection "Use layer features"
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
export enum ESelectionMode {
|
|
@@ -138,6 +138,11 @@ export interface ILayerSourceConfigItem extends ISearchSourceConfigItem {
|
|
|
138
138
|
popupEnabled: boolean;
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
+
export interface IValueChange {
|
|
142
|
+
oldValue: number | string;
|
|
143
|
+
newValue: number | string;
|
|
144
|
+
}
|
|
145
|
+
|
|
141
146
|
/**
|
|
142
147
|
* Layer id and title key value pair
|
|
143
148
|
*/
|
|
@@ -22,6 +22,8 @@ const BufferTools = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
22
22
|
this.__registerHost();
|
|
23
23
|
this.__attachShadow();
|
|
24
24
|
this.bufferComplete = createEvent(this, "bufferComplete", 7);
|
|
25
|
+
this.distanceChanged = createEvent(this, "distanceChanged", 7);
|
|
26
|
+
this.unitChanged = createEvent(this, "unitChanged", 7);
|
|
25
27
|
this.appearance = "text";
|
|
26
28
|
this.distance = 0;
|
|
27
29
|
this.geometries = [];
|
|
@@ -111,6 +113,10 @@ const BufferTools = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
111
113
|
* @protected
|
|
112
114
|
*/
|
|
113
115
|
_setDistance(event) {
|
|
116
|
+
this.distanceChanged.emit({
|
|
117
|
+
oldValue: this.distance,
|
|
118
|
+
newValue: event.detail.value
|
|
119
|
+
});
|
|
114
120
|
this.distance = event.detail.value;
|
|
115
121
|
if (this.distance > 0) {
|
|
116
122
|
this._buffer();
|
|
@@ -125,6 +131,10 @@ const BufferTools = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
125
131
|
* @protected
|
|
126
132
|
*/
|
|
127
133
|
_setUnit(unit) {
|
|
134
|
+
this.unitChanged.emit({
|
|
135
|
+
oldValue: this.unit,
|
|
136
|
+
newValue: unit
|
|
137
|
+
});
|
|
128
138
|
this.unit = unit;
|
|
129
139
|
this._buffer();
|
|
130
140
|
}
|
|
@@ -45,7 +45,7 @@ var EPageType;
|
|
|
45
45
|
var ERefineMode;
|
|
46
46
|
(function (ERefineMode) {
|
|
47
47
|
ERefineMode["ALL"] = "ALL";
|
|
48
|
-
ERefineMode["SUBSET"] = "SUBSET";
|
|
48
|
+
ERefineMode["SUBSET"] = "SUBSET"; // Used as a part interactive selection "Use layer features"
|
|
49
49
|
})(ERefineMode || (ERefineMode = {}));
|
|
50
50
|
var ESelectionMode;
|
|
51
51
|
(function (ESelectionMode) {
|
|
@@ -151,7 +151,7 @@ const MapDrawTools = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
151
151
|
layer: this._sketchGraphicsLayer,
|
|
152
152
|
view: this.mapView,
|
|
153
153
|
container: this._sketchElement,
|
|
154
|
-
creationMode: "
|
|
154
|
+
creationMode: "single",
|
|
155
155
|
defaultCreateOptions: {
|
|
156
156
|
"mode": "hybrid"
|
|
157
157
|
}
|
|
@@ -164,9 +164,9 @@ const MapDrawTools = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
164
164
|
"lasso-selection": false,
|
|
165
165
|
"rectangle-selection": false
|
|
166
166
|
}, createTools: {
|
|
167
|
-
"circle": false
|
|
168
|
-
|
|
169
|
-
|
|
167
|
+
"circle": false
|
|
168
|
+
},
|
|
169
|
+
undoRedoMenu: false
|
|
170
170
|
};
|
|
171
171
|
this._sketchWidget.on("update", (evt) => {
|
|
172
172
|
if (evt.state === "start") {
|
|
@@ -193,6 +193,12 @@ const MapDrawTools = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
193
193
|
this.graphics = evt.graphics;
|
|
194
194
|
this.sketchGraphicsChange.emit(this.graphics);
|
|
195
195
|
});
|
|
196
|
+
this._sketchWidget.on("create", (evt) => {
|
|
197
|
+
if (evt.state === "complete") {
|
|
198
|
+
this.graphics = [evt.graphic];
|
|
199
|
+
this.sketchGraphicsChange.emit(this.graphics);
|
|
200
|
+
}
|
|
201
|
+
});
|
|
196
202
|
}
|
|
197
203
|
/**
|
|
198
204
|
* Clear any stored graphics and remove all graphics from the graphics layer
|
|
@@ -47,7 +47,7 @@ import { d as defineCustomElement$5 } from './map-select-tools2.js';
|
|
|
47
47
|
import { d as defineCustomElement$4 } from './pdf-download2.js';
|
|
48
48
|
import { d as defineCustomElement$2 } from './refine-selection-tools2.js';
|
|
49
49
|
|
|
50
|
-
const publicNotificationCss = ":host{display:block;--calcite-input-message-spacing-value:0}.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}.
|
|
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
51
|
|
|
52
52
|
const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
53
53
|
constructor() {
|
|
@@ -118,6 +118,13 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
|
118
118
|
return this._highlightFeatures();
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
|
+
/**
|
|
122
|
+
* Handle changes to the buffer distance value
|
|
123
|
+
*/
|
|
124
|
+
distanceChanged(event) {
|
|
125
|
+
this._updateLabel(event, "distance");
|
|
126
|
+
this._distance = event.detail.newValue;
|
|
127
|
+
}
|
|
121
128
|
/**
|
|
122
129
|
* Handle changes to the selection sets
|
|
123
130
|
*/
|
|
@@ -130,6 +137,13 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
|
130
137
|
sketchTypeChange(event) {
|
|
131
138
|
this._sketchType = event.detail;
|
|
132
139
|
}
|
|
140
|
+
/**
|
|
141
|
+
* Handle changes to the buffer unit
|
|
142
|
+
*/
|
|
143
|
+
unitChanged(event) {
|
|
144
|
+
this._updateLabel(event, "unit");
|
|
145
|
+
this._unit = event.detail.newValue;
|
|
146
|
+
}
|
|
133
147
|
//--------------------------------------------------------------------------
|
|
134
148
|
//
|
|
135
149
|
// Functions (lifecycle)
|
|
@@ -235,7 +249,7 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
|
235
249
|
_getListPage() {
|
|
236
250
|
const hasSets = this._selectionSets.filter(ss => ss.workflowType !== EWorkflowType.REFINE).length > 0;
|
|
237
251
|
const total = getTotal(this._selectionSets);
|
|
238
|
-
return hasSets ? (h("calcite-panel", null, h("div", { class: "padding-top-sides-1" }, h("calcite-label", { class: "font-bold" }, this._translations.myLists)), this._getNotice(this._translations.listHasSetsTip, "padding-sides-1 padding-bottom-1"), this._getMapLayerPicker(), h("div", { class: "padding-sides-1 height-1-1-2" }, h("div", { class: "
|
|
252
|
+
return hasSets ? (h("calcite-panel", null, h("div", { class: "padding-top-sides-1" }, h("calcite-label", { class: "font-bold" }, this._translations.myLists)), this._getNotice(this._translations.listHasSetsTip, "padding-sides-1 padding-bottom-1"), this._getMapLayerPicker(), h("div", { class: "display-block padding-sides-1 height-1-1-2" }, h("div", { class: "display-block float-left" }, h("calcite-label", { alignment: "start", class: "font-bold" }, this._translations.notifications)), h("div", { class: "display-block float-right" }, h("calcite-input-message", { active: true, class: "info-blue margin-top-0", scale: "m" }, this._translations.uniqueCout.replace("{{n}}", total.toString())))), hasSets ? this._getSelectionSetList() : (h("div", { class: "info-message" }, h("calcite-input-message", { active: true, class: "info-blue", scale: "m" }, this._translations.noNotifications))), h("div", { class: "display-flex padding-1" }, h("calcite-button", { onClick: () => { this._setPageType(EPageType.SELECT); }, width: "full" }, this._translations.add)), this._showModal(this._showLayerSelectionChangeModal))) : (h("calcite-panel", null, h("div", { class: "padding-top-sides-1" }, h("calcite-label", { class: "font-bold" }, this._translations.myLists)), h("div", { class: "padding-sides-1" }, h("calcite-label", null, this._translations.notifications)), h("div", { class: "info-message padding-bottom-1" }, h("calcite-input-message", { active: true, class: "info-blue", scale: "m" }, this._translations.noNotifications)), this._getNotice(this._translations.selectLayerAndAdd, "padding-sides-1 padding-bottom-1"), this._getMapLayerPicker(), h("div", { class: "display-flex padding-1" }, h("calcite-button", { onClick: () => { this._setPageType(EPageType.SELECT); }, width: "full" }, this._translations.add))));
|
|
239
253
|
}
|
|
240
254
|
/**
|
|
241
255
|
* Create the UI element that will expose the addressee layers
|
|
@@ -305,7 +319,7 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
|
305
319
|
* @protected
|
|
306
320
|
*/
|
|
307
321
|
_getSelectPage() {
|
|
308
|
-
var _a, _b
|
|
322
|
+
var _a, _b;
|
|
309
323
|
const searchTip = this._translations.selectSearchTip;
|
|
310
324
|
const selectTip = this._translations.selectLayerTip;
|
|
311
325
|
const sketchTip = this._sketchType === ESketchType.INTERACTIVE ?
|
|
@@ -317,7 +331,7 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
|
317
331
|
return (h("calcite-panel", null, this._getLabel(this._translations.stepTwoFull.replace("{{layer}}", (_a = this.addresseeLayer) === null || _a === void 0 ? void 0 : _a.layer.title)), this._getNotice(noticeText), h("div", { class: "padding-top-sides-1" }, h("map-select-tools", { bufferColor: this.bufferColor, bufferOutlineColor: this.bufferOutlineColor, class: "font-bold", defaultBufferDistance: this.defaultBufferDistance, defaultBufferUnit: this.defaultBufferUnit, enabledLayerIds: this.selectionLayerIds, isUpdate: !!this._activeSelection, mapView: this.mapView, onSelectionSetChange: (evt) => this._updateForSelection(evt), onWorkflowTypeChange: (evt) => this._updateForWorkflowType(evt), ref: (el) => { this._selectTools = el; }, searchConfiguration: this.searchConfiguration, selectLayerView: this.addresseeLayer, selectionSet: this._activeSelection, showBufferTools: this.showSearchSettings })), h("div", { class: "padding-sides-1 padding-bottom-1", style: { "align-items": "end", "display": "flex" } }, h("calcite-icon", { class: "info-blue padding-end-1-2", icon: "feature-layer", scale: "s" }), h("calcite-input-message", { active: true, class: "info-blue", scale: "m" }, this.noResultText && this._numSelected === 0 ? this.noResultText :
|
|
318
332
|
this._translations.selectedAddresses.replace("{{n}}", this._numSelected.toString()).replace("{{layer}}", ((_b = this.addresseeLayer) === null || _b === void 0 ? void 0 : _b.layer.title) || ""))), h("div", { class: "padding-sides-1 " + nameLabelClass }, h("calcite-label", { class: "font-bold" }, "Name label", h("calcite-input", { onInput: () => {
|
|
319
333
|
this.labelChange.emit(this._labelName.value);
|
|
320
|
-
}, placeholder: "Insert label here...", ref: (el) => { this._labelName = el; }, value:
|
|
334
|
+
}, placeholder: "Insert label here...", ref: (el) => { this._labelName = el; }, value: this._customLabel || "" }))), this._getPageNavButtons(this._translations.done, this._numSelected === 0, () => { void this._saveSelection(); }, this._translations.cancel, false, () => { void this._home(); })));
|
|
321
335
|
}
|
|
322
336
|
/**
|
|
323
337
|
* Create the Refine page that users can interactively add/remove features from existing selection sets
|
|
@@ -413,7 +427,7 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
|
413
427
|
if (!this._downloadActive && cur.download) {
|
|
414
428
|
this._downloadActive = true;
|
|
415
429
|
}
|
|
416
|
-
prev.push((h("div", { class: "display-flex padding-sides-1 padding-bottom-1" }, h("calcite-checkbox", { checked: cur.download, onClick: () => { void this._toggleDownload(cur.id); } }), h("calcite-list", { class: "list-border margin-start-1-2 w-100", id: "download-list" }, h("calcite-list-item", { description: this._translations.selectedFeatures.replace("{{n}}", cur.selectedIds.length.toString()), disabled: !cur.download, label: cur.label, onClick: () => { void this._toggleDownload(cur.id); } })))));
|
|
430
|
+
prev.push((h("div", { class: "display-flex padding-sides-1 padding-bottom-1" }, h("calcite-checkbox", { checked: cur.download, class: "align-center", onClick: () => { void this._toggleDownload(cur.id); } }), h("calcite-list", { class: "list-border margin-start-1-2 w-100", id: "download-list" }, h("calcite-list-item", { description: this._translations.selectedFeatures.replace("{{n}}", cur.selectedIds.length.toString()), disabled: !cur.download, label: cur.label, onClick: () => { void this._toggleDownload(cur.id); } })))));
|
|
417
431
|
}
|
|
418
432
|
return prev;
|
|
419
433
|
}, []) || (h("div", null));
|
|
@@ -465,6 +479,20 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
|
465
479
|
return ss.download || ss.workflowType === EWorkflowType.REFINE;
|
|
466
480
|
});
|
|
467
481
|
}
|
|
482
|
+
/**
|
|
483
|
+
* Update custom label UI with buffer values
|
|
484
|
+
*
|
|
485
|
+
* @protected
|
|
486
|
+
*/
|
|
487
|
+
_updateLabel(evt, type) {
|
|
488
|
+
if (this._customLabel) {
|
|
489
|
+
const oldV = type === "unit" ? `${this._distance} ${evt.detail.oldValue}` : `${evt.detail.oldValue} ${this._unit}`;
|
|
490
|
+
const newV = type === "unit" ? `${this._distance} ${evt.detail.newValue}` : `${evt.detail.newValue} ${this._unit}`;
|
|
491
|
+
this._customLabel = this._customLabel.replace(oldV, newV);
|
|
492
|
+
this._labelName.value = this._customLabel;
|
|
493
|
+
this.labelChange.emit(this._labelName.value);
|
|
494
|
+
}
|
|
495
|
+
}
|
|
468
496
|
/**
|
|
469
497
|
* Store the current workflow type
|
|
470
498
|
*
|
|
@@ -603,6 +631,9 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
|
603
631
|
await ((_a = this._selectTools) === null || _a === void 0 ? void 0 : _a.clearSelection());
|
|
604
632
|
this._numSelected = 0;
|
|
605
633
|
this._activeSelection = undefined;
|
|
634
|
+
this._customLabel = undefined;
|
|
635
|
+
this._distance = undefined;
|
|
636
|
+
this._unit = undefined;
|
|
606
637
|
}
|
|
607
638
|
/**
|
|
608
639
|
* Delete the selection at the defined index
|
|
@@ -639,6 +670,9 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
|
639
670
|
_openSelection(selectionSet, evt) {
|
|
640
671
|
evt.stopPropagation();
|
|
641
672
|
this._activeSelection = selectionSet;
|
|
673
|
+
this._distance = this._activeSelection.distance;
|
|
674
|
+
this._unit = this._activeSelection.unit;
|
|
675
|
+
this._customLabel = this._activeSelection.label;
|
|
642
676
|
this._pageType = EPageType.SELECT;
|
|
643
677
|
}
|
|
644
678
|
/**
|
|
@@ -717,7 +751,7 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
|
717
751
|
"_selectionWorkflowType": [32],
|
|
718
752
|
"_showLayerSelectionChangeModal": [32],
|
|
719
753
|
"_translations": [32]
|
|
720
|
-
}, [[8, "selectionSetsChanged", "selectionSetsChanged"], [8, "sketchTypeChange", "sketchTypeChange"]]]);
|
|
754
|
+
}, [[8, "distanceChanged", "distanceChanged"], [8, "selectionSetsChanged", "selectionSetsChanged"], [8, "sketchTypeChange", "sketchTypeChange"], [8, "unitChanged", "unitChanged"]]]);
|
|
721
755
|
function defineCustomElement$1() {
|
|
722
756
|
if (typeof customElements === "undefined") {
|
|
723
757
|
return;
|
|
@@ -19,7 +19,7 @@ import { d as defineCustomElement$4 } from './loader.js';
|
|
|
19
19
|
import { d as defineCustomElement$3 } from './option.js';
|
|
20
20
|
import { d as defineCustomElement$2 } from './select.js';
|
|
21
21
|
|
|
22
|
-
const refineSelectionToolsCss = ":host{display:block}.div-visible{display:inherit}.div-not-visible{display:none !important}.padding-top-1-2{padding-top:.5rem}.main-label{display:flex;float:left}html[dir=\"rtl\"] .main-label{display:flex;float:right}.border{outline:1px solid var(--calcite-ui-border-input)}.margin-top-1{margin-top:1rem}.esri-sketch{display:flex;flex-flow:column wrap}.esri-widget{box-sizing:border-box;color:#323232;font-size:14px;font-family:\"Avenir Next\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;line-height:1.3em}.esri-sketch__panel{align-items:center;display:flex;flex-flow:row nowrap;padding:0}*/ .esri-sketch__tool-section{border-right:1px solid rgba(110,110,110,.3)}.esri-sketch__section{align-items:center;display:flex;flex-flow:row nowrap;padding:0 7px;margin:6px 0;border-right:1px solid rgba(110,110,110,.3)}";
|
|
22
|
+
const refineSelectionToolsCss = ":host{display:block}.div-visible{display:inherit}.div-not-visible{display:none !important}.padding-top-1-2{padding-top:.5rem}.main-label{display:flex;float:left}html[dir=\"rtl\"] .main-label{display:flex;float:right}.border{outline:1px solid var(--calcite-ui-border-input)}.margin-top-1{margin-top:1rem}.esri-sketch{display:flex;flex-flow:column wrap}.esri-widget{box-sizing:border-box;color:#323232;font-size:14px;font-family:\"Avenir Next\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;line-height:1.3em;background-color:var(--calcite-ui-foreground-1)}.esri-sketch__panel{align-items:center;display:flex;flex-flow:row nowrap;padding:0}*/ .esri-sketch__tool-section{border-right:1px solid rgba(110,110,110,.3)}.esri-sketch__section{align-items:center;display:flex;flex-flow:row nowrap;padding:0 7px;margin:6px 0;border-right:1px solid rgba(110,110,110,.3)}";
|
|
23
23
|
|
|
24
24
|
const RefineSelectionTools = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
25
25
|
constructor() {
|
|
@@ -132,7 +132,8 @@ const RefineSelectionTools = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
|
132
132
|
render() {
|
|
133
133
|
const showLayerPickerClass = this.useLayerPicker ? "div-visible" : "div-not-visible";
|
|
134
134
|
const drawClass = this.border ? " border" : "";
|
|
135
|
-
|
|
135
|
+
const showUndoRedo = this.refineMode === ERefineMode.ALL ? "div-visible" : "div-not-visible";
|
|
136
|
+
return (h(Host, null, h("div", null, h("map-layer-picker", { class: showLayerPickerClass, enabledLayerIds: this.enabledLayerIds, mapView: this.mapView, onLayerSelectionChange: (evt) => { void this._layerSelectionChange(evt); }, selectedLayerIds: this.layerViews.map(l => l.layer.id), selectionMode: "single" }), h("div", { class: "margin-top-1" + drawClass }, h("div", { class: "esri-sketch esri-widget" }, h("div", { class: "esri-sketch__panel" }, h("div", { class: "esri-sketch__tool-section esri-sketch__section" }, h("calcite-action", { disabled: !this._selectEnabled, icon: "select", onClick: () => this._setSelectionMode(ESelectionType.POINT), scale: "s", text: this._translations.select })), h("div", { class: "esri-sketch__tool-section esri-sketch__section" }, h("calcite-action", { disabled: !this._selectEnabled, icon: "line", onClick: () => this._setSelectionMode(ESelectionType.LINE), scale: "s", text: this._translations.selectLine }), h("calcite-action", { disabled: !this._selectEnabled, icon: "polygon", onClick: () => this._setSelectionMode(ESelectionType.POLY), scale: "s", text: this._translations.selectPolygon }), h("calcite-action", { disabled: !this._selectEnabled, icon: "rectangle", onClick: () => this._setSelectionMode(ESelectionType.RECT), scale: "s", text: this._translations.selectRectangle })), h("div", { class: showUndoRedo + " esri-sketch__tool-section esri-sketch__section" }, h("calcite-action", { disabled: this._undoStack.length === 0, icon: "undo", onClick: () => this._undo(), scale: "s", text: this._translations.undo }), h("calcite-action", { disabled: this._redoStack.length === 0, icon: "redo", onClick: () => this._redo(), scale: "s", text: this._translations.redo }))))))));
|
|
136
137
|
}
|
|
137
138
|
//--------------------------------------------------------------------------
|
|
138
139
|
//
|
|
@@ -361,6 +362,7 @@ const RefineSelectionTools = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
|
361
362
|
* @protected
|
|
362
363
|
*/
|
|
363
364
|
async _updateIds(oids, mode, operationStack, operationMode) {
|
|
365
|
+
console.log("_updateIds");
|
|
364
366
|
const idUpdates = { addIds: [], removeIds: [] };
|
|
365
367
|
if (mode === ESelectionMode.ADD) {
|
|
366
368
|
idUpdates.addIds = oids.filter(id => this.ids.indexOf(id) < 0);
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
5
5
|
*/
|
|
6
6
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
7
|
-
import { e as ESelectionMode, c as EWorkflowType } from './interfaces3.js';
|
|
7
|
+
import { e as ESelectionMode, f as ERefineMode, c as EWorkflowType } from './interfaces3.js';
|
|
8
8
|
import { g as getLocaleComponentStrings } from './locale.js';
|
|
9
9
|
import { d as defineCustomElement$e } from './action.js';
|
|
10
10
|
import { d as defineCustomElement$d } from './chip.js';
|
|
@@ -98,7 +98,7 @@ const RefineSelection = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
98
98
|
* Renders the component.
|
|
99
99
|
*/
|
|
100
100
|
render() {
|
|
101
|
-
return (h(Host, null, h("div", { class: "padding-1" }, h("div", null, h("calcite-radio-group", { class: "w-100", onCalciteRadioGroupChange: (evt) => this._modeChanged(evt) }, h("calcite-radio-group-item", { checked: this._addEnabled, class: "w-50", onClick: () => this._setSelectionMode(ESelectionMode.ADD), value: ESelectionMode.ADD }, this._translations.add), h("calcite-radio-group-item", { checked: !this._addEnabled, class: "w-50", onClick: () => this._setSelectionMode(ESelectionMode.REMOVE), value: ESelectionMode.REMOVE }, this._translations.remove)), h("refine-selection-tools", { border: true, enabledLayerIds: this.enabledLayerIds, ids: getSelectionIds(this.selectionSets), layerViews: [this.addresseeLayer], mapView: this.mapView, mode: this._addEnabled ? ESelectionMode.ADD : ESelectionMode.REMOVE, ref: (el) => { this._refineTools = el; }, useLayerPicker: false })), h("br", null), (h("calcite-list", { class: "list-border" }, this._getRefineSelectionSetList())))));
|
|
101
|
+
return (h(Host, null, h("div", { class: "padding-1" }, h("div", null, h("calcite-radio-group", { class: "w-100", onCalciteRadioGroupChange: (evt) => this._modeChanged(evt) }, h("calcite-radio-group-item", { checked: this._addEnabled, class: "w-50", onClick: () => this._setSelectionMode(ESelectionMode.ADD), value: ESelectionMode.ADD }, this._translations.add), h("calcite-radio-group-item", { checked: !this._addEnabled, class: "w-50", onClick: () => this._setSelectionMode(ESelectionMode.REMOVE), value: ESelectionMode.REMOVE }, this._translations.remove)), h("refine-selection-tools", { border: true, enabledLayerIds: this.enabledLayerIds, ids: getSelectionIds(this.selectionSets), layerViews: [this.addresseeLayer], mapView: this.mapView, mode: this._addEnabled ? ESelectionMode.ADD : ESelectionMode.REMOVE, ref: (el) => { this._refineTools = el; }, refineMode: ERefineMode.ALL, useLayerPicker: false })), h("br", null), (h("calcite-list", { class: "list-border" }, this._getRefineSelectionSetList())))));
|
|
102
102
|
}
|
|
103
103
|
//--------------------------------------------------------------------------
|
|
104
104
|
//
|
|
@@ -128,6 +128,7 @@ const RefineSelection = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
128
128
|
* @protected
|
|
129
129
|
*/
|
|
130
130
|
_getRefineSelectionSetList() {
|
|
131
|
+
console.log("_getRefineSelectionSetList");
|
|
131
132
|
const total = getTotal(this.selectionSets);
|
|
132
133
|
const refineSet = this._getRefineSelectionSet(this.selectionSets);
|
|
133
134
|
const numAdded = (refineSet === null || refineSet === void 0 ? void 0 : refineSet.refineIds.addIds.length) || 0;
|
|
@@ -199,6 +200,7 @@ const RefineSelection = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
199
200
|
* @protected
|
|
200
201
|
*/
|
|
201
202
|
_updateRefineIds(selectionSet, addIds, removeIds) {
|
|
203
|
+
console.log("_updateRefineIds");
|
|
202
204
|
// remove ids if they exist in the current add or remove list
|
|
203
205
|
selectionSet.refineIds.addIds = selectionSet.refineIds.addIds.filter(id => removeIds.indexOf(id) < 0);
|
|
204
206
|
selectionSet.refineIds.removeIds = selectionSet.refineIds.removeIds.filter(id => addIds.indexOf(id) < 0);
|