@esri/solutions-components 0.3.6 → 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/buffer-tools_6.cjs.entry.js +8 -5
- 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/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 +16 -10
- 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/collection/components/buffer-tools/buffer-tools.js +2 -2
- package/dist/collection/components/map-draw-tools/map-draw-tools.js +2 -1
- package/dist/collection/components/public-notification/public-notification.js +14 -8
- 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 +2 -1
- package/dist/collection/utils/interfaces.js +1 -1
- package/dist/collection/utils/interfaces.ts +2 -2
- package/dist/components/interfaces3.js +1 -1
- package/dist/components/map-draw-tools2.js +2 -1
- package/dist/components/public-notification.js +14 -8
- 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 +8 -5
- 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/map-card.entry.js +1 -1
- package/dist/esm/{mapViewUtils-e5d8a1e1.js → mapViewUtils-541e7a3c.js} +1 -1
- package/dist/esm/public-notification.entry.js +16 -10
- 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/solutions-components/demos/new-public-notification.html +2 -1
- 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 +2 -2
- package/dist/types/components/buffer-tools/buffer-tools.d.ts +2 -2
- package/dist/types/components/public-notification/public-notification.d.ts +9 -1
- package/dist/types/components.d.ts +2 -2
- 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-3649acb3.entry.js +0 -18
- 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-851e04ae.entry.js +0 -6
- 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-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,8 +19,8 @@ const math = require('./math-460fffaf.js');
|
|
19
19
|
const key = require('./key-55aca5c0.js');
|
20
20
|
const locale$1 = require('./locale-73cab8e8.js');
|
21
21
|
const publicNotificationStore = require('./publicNotificationStore-28a8759d.js');
|
22
|
-
const interfaces = require('./interfaces-
|
23
|
-
const mapViewUtils = require('./mapViewUtils-
|
22
|
+
const interfaces = require('./interfaces-17c631bf.js');
|
23
|
+
const mapViewUtils = require('./mapViewUtils-24d1d859.js');
|
24
24
|
require('./_commonjsHelpers-6aafa5de.js');
|
25
25
|
require('./resources-b56bce71.js');
|
26
26
|
require('./observers-5311faf8.js');
|
@@ -1461,7 +1461,8 @@ const MapDrawTools = class {
|
|
1461
1461
|
"rectangle-selection": false
|
1462
1462
|
}, createTools: {
|
1463
1463
|
"circle": false
|
1464
|
-
}
|
1464
|
+
},
|
1465
|
+
undoRedoMenu: false
|
1465
1466
|
};
|
1466
1467
|
this._sketchWidget.on("update", (evt) => {
|
1467
1468
|
if (evt.state === "start") {
|
@@ -1521,7 +1522,7 @@ const MapDrawTools = class {
|
|
1521
1522
|
};
|
1522
1523
|
MapDrawTools.style = mapDrawToolsCss;
|
1523
1524
|
|
1524
|
-
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)}";
|
1525
|
+
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)}";
|
1525
1526
|
|
1526
1527
|
const RefineSelectionTools = class {
|
1527
1528
|
constructor(hostRef) {
|
@@ -1632,7 +1633,8 @@ const RefineSelectionTools = class {
|
|
1632
1633
|
render() {
|
1633
1634
|
const showLayerPickerClass = this.useLayerPicker ? "div-visible" : "div-not-visible";
|
1634
1635
|
const drawClass = this.border ? " border" : "";
|
1635
|
-
|
1636
|
+
const showUndoRedo = this.refineMode === interfaces.ERefineMode.ALL ? "div-visible" : "div-not-visible";
|
1637
|
+
return (index.h(index.Host, null, index.h("div", null, index.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" }), index.h("div", { class: "margin-top-1" + drawClass }, index.h("div", { class: "esri-sketch esri-widget" }, index.h("div", { class: "esri-sketch__panel" }, index.h("div", { class: "esri-sketch__tool-section esri-sketch__section" }, index.h("calcite-action", { disabled: !this._selectEnabled, icon: "select", onClick: () => this._setSelectionMode(interfaces.ESelectionType.POINT), scale: "s", text: this._translations.select })), index.h("div", { class: "esri-sketch__tool-section esri-sketch__section" }, index.h("calcite-action", { disabled: !this._selectEnabled, icon: "line", onClick: () => this._setSelectionMode(interfaces.ESelectionType.LINE), scale: "s", text: this._translations.selectLine }), index.h("calcite-action", { disabled: !this._selectEnabled, icon: "polygon", onClick: () => this._setSelectionMode(interfaces.ESelectionType.POLY), scale: "s", text: this._translations.selectPolygon }), index.h("calcite-action", { disabled: !this._selectEnabled, icon: "rectangle", onClick: () => this._setSelectionMode(interfaces.ESelectionType.RECT), scale: "s", text: this._translations.selectRectangle })), index.h("div", { class: showUndoRedo + " esri-sketch__tool-section esri-sketch__section" }, index.h("calcite-action", { disabled: this._undoStack.length === 0, icon: "undo", onClick: () => this._undo(), scale: "s", text: this._translations.undo }), index.h("calcite-action", { disabled: this._redoStack.length === 0, icon: "redo", onClick: () => this._redo(), scale: "s", text: this._translations.redo }))))))));
|
1636
1638
|
}
|
1637
1639
|
//--------------------------------------------------------------------------
|
1638
1640
|
//
|
@@ -1861,6 +1863,7 @@ const RefineSelectionTools = class {
|
|
1861
1863
|
* @protected
|
1862
1864
|
*/
|
1863
1865
|
async _updateIds(oids, mode, operationStack, operationMode) {
|
1866
|
+
console.log("_updateIds");
|
1864
1867
|
const idUpdates = { addIds: [], removeIds: [] };
|
1865
1868
|
if (mode === interfaces.ESelectionMode.ADD) {
|
1866
1869
|
idUpdates.addIds = oids.filter(id => this.ids.indexOf(id) < 0);
|
@@ -20,10 +20,10 @@ const dom = require('./dom-4a580af6.js');
|
|
20
20
|
const openCloseComponent = require('./openCloseComponent-bf986132.js');
|
21
21
|
const debounce = require('./debounce-69c3bada.js');
|
22
22
|
const conditionalSlot = require('./conditionalSlot-d8471163.js');
|
23
|
-
const mapViewUtils = require('./mapViewUtils-
|
23
|
+
const mapViewUtils = require('./mapViewUtils-24d1d859.js');
|
24
24
|
const publicNotificationStore = require('./publicNotificationStore-28a8759d.js');
|
25
25
|
require('./resources-b56bce71.js');
|
26
|
-
require('./interfaces-
|
26
|
+
require('./interfaces-17c631bf.js');
|
27
27
|
require('./index-a2ef93bb.js');
|
28
28
|
|
29
29
|
const comboboxCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{position:relative;display:block}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]){font-size:var(--calcite-font-size--2);--calcite-combobox-item-spacing-unit-l:0.5rem;--calcite-combobox-item-spacing-unit-s:0.25rem;--calcite-combobox-input-height:1.5rem}:host([scale=m]){font-size:var(--calcite-font-size--1);--calcite-combobox-item-spacing-unit-l:0.75rem;--calcite-combobox-item-spacing-unit-s:0.5rem;--calcite-combobox-input-height:2rem}:host([scale=l]){font-size:var(--calcite-font-size-0);--calcite-combobox-item-spacing-unit-l:1rem;--calcite-combobox-item-spacing-unit-s:0.75rem;--calcite-combobox-input-height:2.75rem}.wrapper{display:flex;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-1);outline-color:transparent;padding-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 4);padding-inline:var(--calcite-combobox-item-spacing-unit-l)}:host(:focus-within) .wrapper,.wrapper--active{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.wrapper--single{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-l);cursor:pointer;flex-wrap:nowrap}.grid-input{display:flex;flex-grow:1;flex-wrap:wrap;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px}.input{flex-grow:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-style:none;background-color:transparent;padding:0px;font-family:inherit;color:var(--calcite-ui-text-1);font-size:inherit;block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height);min-inline-size:120px;-webkit-margin-after:var(--calcite-combobox-item-spacing-unit-s);margin-block-end:var(--calcite-combobox-item-spacing-unit-s)}.input:focus{outline:2px solid transparent;outline-offset:2px}.input--transparent{opacity:0}.input--single{margin-block:0px;padding:0px}.wrapper--active .input-single{cursor:text}.input--hidden{pointer-events:none;inline-size:0px;min-inline-size:0px;opacity:0}.input--icon{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-l)}.input-wrap{display:flex;flex-grow:1}.input-wrap--single{flex:1 1 0%;overflow:hidden}.label{pointer-events:none;display:flex;max-inline-size:100%;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px;font-weight:var(--calcite-font-weight-normal);block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height)}.label--icon{padding-inline:var(--calcite-combobox-item-spacing-unit-l)}.icon-end,.icon-start{display:flex;inline-size:1rem;cursor:pointer;align-items:center}.icon-end{flex:none}.floating-ui-container{display:block;position:absolute;z-index:900;visibility:hidden;pointer-events:none;inline-size:0;block-size:0;overflow:hidden}.floating-ui-container .calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);visibility:hidden;transition-property:transform, visibility, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:1;border-radius:0.25rem}.floating-ui-container[data-placement^=bottom] .calcite-floating-ui-anim{transform:translateY(-5px)}.floating-ui-container[data-placement^=top] .calcite-floating-ui-anim{transform:translateY(5px)}.floating-ui-container[data-placement^=left] .calcite-floating-ui-anim{transform:translateX(5px)}.floating-ui-container[data-placement^=right] .calcite-floating-ui-anim{transform:translateX(-5px)}.floating-ui-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;visibility:visible;transform:translate(0)}.floating-ui-container--active{pointer-events:initial;visibility:visible;inline-size:unset;block-size:unset;overflow:unset}@media (forced-colors: active){.wrapper,.floating-ui-container--active{border:1px solid canvasText}}.screen-readers-only{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.list-container{max-block-size:45vh;overflow-y:auto;background-color:var(--calcite-ui-foreground-1);inline-size:var(--calcite-dropdown-width)}.list{margin:0px;display:block;padding:0px}.list--hide{block-size:0px;overflow:hidden}.chip{margin-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 4);margin-inline:0 var(--calcite-combobox-item-spacing-unit-s);max-inline-size:100%}.chip--active{background-color:var(--calcite-ui-foreground-3)}.item{display:block}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
@@ -12,11 +12,11 @@ const dom = require('./dom-4a580af6.js');
|
|
12
12
|
const interfaces = require('./interfaces-e76f31e9.js');
|
13
13
|
const conditionalSlot = require('./conditionalSlot-d8471163.js');
|
14
14
|
const loadModules = require('./loadModules-e9007588.js');
|
15
|
-
const mapViewUtils = require('./mapViewUtils-
|
16
|
-
const interfaces$1 = require('./interfaces-
|
15
|
+
const mapViewUtils = require('./mapViewUtils-24d1d859.js');
|
16
|
+
const interfaces$1 = require('./interfaces-17c631bf.js');
|
17
17
|
const publicNotificationStore = require('./publicNotificationStore-28a8759d.js');
|
18
18
|
const locale = require('./locale-d15229c4.js');
|
19
|
-
const csvUtils = require('./csvUtils-
|
19
|
+
const csvUtils = require('./csvUtils-34666909.js');
|
20
20
|
const publicNotificationUtils = require('./publicNotificationUtils-9d585d8d.js');
|
21
21
|
require('./resources-b56bce71.js');
|
22
22
|
require('./guid-84ac4d91.js');
|
@@ -1108,7 +1108,7 @@ const RefineSelection = class {
|
|
1108
1108
|
* Renders the component.
|
1109
1109
|
*/
|
1110
1110
|
render() {
|
1111
|
-
return (index.h(index.Host, null, index.h("div", { class: "padding-1" }, index.h("div", null, index.h("calcite-radio-group", { class: "w-100", onCalciteRadioGroupChange: (evt) => this._modeChanged(evt) }, index.h("calcite-radio-group-item", { checked: this._addEnabled, class: "w-50", onClick: () => this._setSelectionMode(interfaces$1.ESelectionMode.ADD), value: interfaces$1.ESelectionMode.ADD }, this._translations.add), index.h("calcite-radio-group-item", { checked: !this._addEnabled, class: "w-50", onClick: () => this._setSelectionMode(interfaces$1.ESelectionMode.REMOVE), value: interfaces$1.ESelectionMode.REMOVE }, this._translations.remove)), index.h("refine-selection-tools", { border: true, enabledLayerIds: this.enabledLayerIds, ids: publicNotificationUtils.getSelectionIds(this.selectionSets), layerViews: [this.addresseeLayer], mapView: this.mapView, mode: this._addEnabled ? interfaces$1.ESelectionMode.ADD : interfaces$1.ESelectionMode.REMOVE, ref: (el) => { this._refineTools = el; }, useLayerPicker: false })), index.h("br", null), (index.h("calcite-list", { class: "list-border" }, this._getRefineSelectionSetList())))));
|
1111
|
+
return (index.h(index.Host, null, index.h("div", { class: "padding-1" }, index.h("div", null, index.h("calcite-radio-group", { class: "w-100", onCalciteRadioGroupChange: (evt) => this._modeChanged(evt) }, index.h("calcite-radio-group-item", { checked: this._addEnabled, class: "w-50", onClick: () => this._setSelectionMode(interfaces$1.ESelectionMode.ADD), value: interfaces$1.ESelectionMode.ADD }, this._translations.add), index.h("calcite-radio-group-item", { checked: !this._addEnabled, class: "w-50", onClick: () => this._setSelectionMode(interfaces$1.ESelectionMode.REMOVE), value: interfaces$1.ESelectionMode.REMOVE }, this._translations.remove)), index.h("refine-selection-tools", { border: true, enabledLayerIds: this.enabledLayerIds, ids: publicNotificationUtils.getSelectionIds(this.selectionSets), layerViews: [this.addresseeLayer], mapView: this.mapView, mode: this._addEnabled ? interfaces$1.ESelectionMode.ADD : interfaces$1.ESelectionMode.REMOVE, ref: (el) => { this._refineTools = el; }, refineMode: interfaces$1.ERefineMode.ALL, useLayerPicker: false })), index.h("br", null), (index.h("calcite-list", { class: "list-border" }, this._getRefineSelectionSetList())))));
|
1112
1112
|
}
|
1113
1113
|
//--------------------------------------------------------------------------
|
1114
1114
|
//
|
@@ -1138,6 +1138,7 @@ const RefineSelection = class {
|
|
1138
1138
|
* @protected
|
1139
1139
|
*/
|
1140
1140
|
_getRefineSelectionSetList() {
|
1141
|
+
console.log("_getRefineSelectionSetList");
|
1141
1142
|
const total = publicNotificationUtils.getTotal(this.selectionSets);
|
1142
1143
|
const refineSet = this._getRefineSelectionSet(this.selectionSets);
|
1143
1144
|
const numAdded = (refineSet === null || refineSet === void 0 ? void 0 : refineSet.refineIds.addIds.length) || 0;
|
@@ -1209,6 +1210,7 @@ const RefineSelection = class {
|
|
1209
1210
|
* @protected
|
1210
1211
|
*/
|
1211
1212
|
_updateRefineIds(selectionSet, addIds, removeIds) {
|
1213
|
+
console.log("_updateRefineIds");
|
1212
1214
|
// remove ids if they exist in the current add or remove list
|
1213
1215
|
selectionSet.refineIds.addIds = selectionSet.refineIds.addIds.filter(id => removeIds.indexOf(id) < 0);
|
1214
1216
|
selectionSet.refineIds.removeIds = selectionSet.refineIds.removeIds.filter(id => addIds.indexOf(id) < 0);
|
@@ -19,8 +19,8 @@ const sharedListRender = require('./shared-list-render-622b5ba5.js');
|
|
19
19
|
const resources = require('./resources-9c55e05c.js');
|
20
20
|
const resources$1 = require('./resources-1f785471.js');
|
21
21
|
const locale = require('./locale-d15229c4.js');
|
22
|
-
const solutionStore = require('./solution-store-
|
23
|
-
const interfaces = require('./interfaces-
|
22
|
+
const solutionStore = require('./solution-store-2dbab624.js');
|
23
|
+
const interfaces = require('./interfaces-17c631bf.js');
|
24
24
|
require('./resources-b56bce71.js');
|
25
25
|
require('./array-ace6d4b5.js');
|
26
26
|
require('./resources-808cfca8.js');
|
@@ -47,7 +47,7 @@ exports.EPageType = void 0;
|
|
47
47
|
exports.ERefineMode = void 0;
|
48
48
|
(function (ERefineMode) {
|
49
49
|
ERefineMode["ALL"] = "ALL";
|
50
|
-
ERefineMode["SUBSET"] = "SUBSET";
|
50
|
+
ERefineMode["SUBSET"] = "SUBSET"; // Used as a part interactive selection "Use layer features"
|
51
51
|
})(exports.ERefineMode || (exports.ERefineMode = {}));
|
52
52
|
exports.ESelectionMode = void 0;
|
53
53
|
(function (ESelectionMode) {
|
@@ -9,10 +9,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
10
10
|
const index = require('./index-ee607805.js');
|
11
11
|
const locale = require('./locale-d15229c4.js');
|
12
|
-
const mapViewUtils = require('./mapViewUtils-
|
13
|
-
const csvUtils = require('./csvUtils-
|
12
|
+
const mapViewUtils = require('./mapViewUtils-24d1d859.js');
|
13
|
+
const csvUtils = require('./csvUtils-34666909.js');
|
14
14
|
require('./_commonjsHelpers-6aafa5de.js');
|
15
|
-
require('./interfaces-
|
15
|
+
require('./interfaces-17c631bf.js');
|
16
16
|
|
17
17
|
const layerTableCss = ":host{display:block}.table{display:table;width:100%}.header{display:table-header-group;background-color:#757575;font-weight:500;font-size:var(--calcite-font-size-0);color:var(--calcite-ui-text-inverse);position:sticky;top:0;z-index:1}.table-header-cell{display:table-cell;text-align:justify;border-right:1px solid var(--calcite-ui-border-2);padding:0.5rem}.table-body{display:table-row-group}.row{display:table-row}.table-cell{display:table-cell;padding:0.5rem}.display-table-header{display:table-header-group}.display-flex{display:flex}.table-border{border:1px solid var(--calcite-ui-border-2)}.justify-center{justify-content:center}.table-container{width:100%}.overflow-auto{overflow:auto}.data-container{overflow:auto;height:calc(100% - 35px)}.row:nth-child(odd){background:var(--calcite-ui-foreground-3)}.padding-3-4{padding:0.75rem}.field-width{white-space:nowrap;min-width:300px;max-width:300px;overflow:hidden}";
|
18
18
|
|
@@ -10,7 +10,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
10
10
|
const index = require('./index-ee607805.js');
|
11
11
|
const loadModules = require('./loadModules-e9007588.js');
|
12
12
|
const locale = require('./locale-d15229c4.js');
|
13
|
-
const interfaces = require('./interfaces-
|
13
|
+
const interfaces = require('./interfaces-17c631bf.js');
|
14
14
|
require('./_commonjsHelpers-6aafa5de.js');
|
15
15
|
|
16
16
|
const mapCardCss = ":host{display:block;--calcite-label-margin-bottom:0;--calcite-block-padding:0}.action-bar-size{height:3.5rem;width:100%}.action-center{-webkit-box-align:center;-webkit-align-items:center;-ms-grid-row-align:center;align-items:center;align-content:center;justify-content:center}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}.width-1-7{width:14.28%}.width-1-6{width:16.66%}.width-full{width:100%}.height-full{height:100%}.display-flex{display:flex}.block-button{border-bottom:0}.block-button:hover{background-color:var(--calcite-ui-foreground-2)}.block-button:active{background-color:var(--calcite-ui-foreground-3)}.map-view{padding:0;margin:0;height:100%;width:100%}.map-list{position:absolute;inset:3.5rem 0 0 0;display:flex;flex-direction:column;overflow:hidden;animation:calcite-scrim-fade-in var(--calcite-internal-animation-timing-medium) ease-in-out;background-color:var(--calcite-scrim-background);z-index:1;width:100%;height:-moz-fit-content;height:fit-content}.map-height{height:calc(100% - 58px)}.display-none{display:none}.esri-zoom{display:none !important}";
|
@@ -8,9 +8,9 @@
|
|
8
8
|
Object.defineProperty(exports, '__esModule', { value: true });
|
9
9
|
|
10
10
|
const index = require('./index-ee607805.js');
|
11
|
-
const interfaces = require('./interfaces-
|
11
|
+
const interfaces = require('./interfaces-17c631bf.js');
|
12
12
|
const loadModules = require('./loadModules-e9007588.js');
|
13
|
-
const mapViewUtils = require('./mapViewUtils-
|
13
|
+
const mapViewUtils = require('./mapViewUtils-24d1d859.js');
|
14
14
|
const publicNotificationStore = require('./publicNotificationStore-28a8759d.js');
|
15
15
|
const locale = require('./locale-d15229c4.js');
|
16
16
|
const publicNotificationUtils = require('./publicNotificationUtils-9d585d8d.js');
|
@@ -91,7 +91,8 @@ const PublicNotification = class {
|
|
91
91
|
* Handle changes to the buffer distance value
|
92
92
|
*/
|
93
93
|
distanceChanged(event) {
|
94
|
-
this._updateLabel(event);
|
94
|
+
this._updateLabel(event, "distance");
|
95
|
+
this._distance = event.detail.newValue;
|
95
96
|
}
|
96
97
|
/**
|
97
98
|
* Handle changes to the selection sets
|
@@ -109,7 +110,8 @@ const PublicNotification = class {
|
|
109
110
|
* Handle changes to the buffer unit
|
110
111
|
*/
|
111
112
|
unitChanged(event) {
|
112
|
-
this._updateLabel(event);
|
113
|
+
this._updateLabel(event, "unit");
|
114
|
+
this._unit = event.detail.newValue;
|
113
115
|
}
|
114
116
|
//--------------------------------------------------------------------------
|
115
117
|
//
|
@@ -451,9 +453,11 @@ const PublicNotification = class {
|
|
451
453
|
*
|
452
454
|
* @protected
|
453
455
|
*/
|
454
|
-
_updateLabel(evt) {
|
455
|
-
if (this.
|
456
|
-
|
456
|
+
_updateLabel(evt, type) {
|
457
|
+
if (this._customLabel) {
|
458
|
+
const oldV = type === "unit" ? `${this._distance} ${evt.detail.oldValue}` : `${evt.detail.oldValue} ${this._unit}`;
|
459
|
+
const newV = type === "unit" ? `${this._distance} ${evt.detail.newValue}` : `${evt.detail.newValue} ${this._unit}`;
|
460
|
+
this._customLabel = this._customLabel.replace(oldV, newV);
|
457
461
|
this._labelName.value = this._customLabel;
|
458
462
|
this.labelChange.emit(this._labelName.value);
|
459
463
|
}
|
@@ -597,6 +601,8 @@ const PublicNotification = class {
|
|
597
601
|
this._numSelected = 0;
|
598
602
|
this._activeSelection = undefined;
|
599
603
|
this._customLabel = undefined;
|
604
|
+
this._distance = undefined;
|
605
|
+
this._unit = undefined;
|
600
606
|
}
|
601
607
|
/**
|
602
608
|
* Delete the selection at the defined index
|
@@ -633,9 +639,9 @@ const PublicNotification = class {
|
|
633
639
|
_openSelection(selectionSet, evt) {
|
634
640
|
evt.stopPropagation();
|
635
641
|
this._activeSelection = selectionSet;
|
636
|
-
|
637
|
-
|
638
|
-
|
642
|
+
this._distance = this._activeSelection.distance;
|
643
|
+
this._unit = this._activeSelection.unit;
|
644
|
+
this._customLabel = this._activeSelection.label;
|
639
645
|
this._pageType = interfaces.EPageType.SELECT;
|
640
646
|
}
|
641
647
|
/**
|
@@ -8,10 +8,10 @@
|
|
8
8
|
Object.defineProperty(exports, '__esModule', { value: true });
|
9
9
|
|
10
10
|
const index = require('./index-ee607805.js');
|
11
|
-
const solutionStore = require('./solution-store-
|
11
|
+
const solutionStore = require('./solution-store-2dbab624.js');
|
12
12
|
const locale = require('./locale-d15229c4.js');
|
13
13
|
require('./index-a2ef93bb.js');
|
14
|
-
require('./interfaces-
|
14
|
+
require('./interfaces-17c631bf.js');
|
15
15
|
require('./_commonjsHelpers-6aafa5de.js');
|
16
16
|
|
17
17
|
/** @license
|
@@ -8,9 +8,9 @@
|
|
8
8
|
Object.defineProperty(exports, '__esModule', { value: true });
|
9
9
|
|
10
10
|
const index = require('./index-ee607805.js');
|
11
|
-
const solutionStore = require('./solution-store-
|
11
|
+
const solutionStore = require('./solution-store-2dbab624.js');
|
12
12
|
const locale = require('./locale-d15229c4.js');
|
13
|
-
require('./interfaces-
|
13
|
+
require('./interfaces-17c631bf.js');
|
14
14
|
require('./index-a2ef93bb.js');
|
15
15
|
require('./_commonjsHelpers-6aafa5de.js');
|
16
16
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
'use strict';
|
7
7
|
|
8
8
|
const index = require('./index-a2ef93bb.js');
|
9
|
-
const interfaces = require('./interfaces-
|
9
|
+
const interfaces = require('./interfaces-17c631bf.js');
|
10
10
|
const _commonjsHelpers = require('./_commonjsHelpers-6aafa5de.js');
|
11
11
|
|
12
12
|
/*! *****************************************************************************
|
@@ -402,7 +402,7 @@ export class BufferTools {
|
|
402
402
|
"composed": true,
|
403
403
|
"docs": {
|
404
404
|
"tags": [],
|
405
|
-
"text": "Emitted on demand when
|
405
|
+
"text": "Emitted on demand when the distance value changes"
|
406
406
|
},
|
407
407
|
"complexType": {
|
408
408
|
"original": "IValueChange",
|
@@ -422,7 +422,7 @@ export class BufferTools {
|
|
422
422
|
"composed": true,
|
423
423
|
"docs": {
|
424
424
|
"tags": [],
|
425
|
-
"text": "Emitted on demand when
|
425
|
+
"text": "Emitted on demand when the unit changes"
|
426
426
|
},
|
427
427
|
"complexType": {
|
428
428
|
"original": "IValueChange",
|
@@ -96,7 +96,8 @@ export class PublicNotification {
|
|
96
96
|
* Handle changes to the buffer distance value
|
97
97
|
*/
|
98
98
|
distanceChanged(event) {
|
99
|
-
this._updateLabel(event);
|
99
|
+
this._updateLabel(event, "distance");
|
100
|
+
this._distance = event.detail.newValue;
|
100
101
|
}
|
101
102
|
/**
|
102
103
|
* Handle changes to the selection sets
|
@@ -114,7 +115,8 @@ export class PublicNotification {
|
|
114
115
|
* Handle changes to the buffer unit
|
115
116
|
*/
|
116
117
|
unitChanged(event) {
|
117
|
-
this._updateLabel(event);
|
118
|
+
this._updateLabel(event, "unit");
|
119
|
+
this._unit = event.detail.newValue;
|
118
120
|
}
|
119
121
|
//--------------------------------------------------------------------------
|
120
122
|
//
|
@@ -456,9 +458,11 @@ export class PublicNotification {
|
|
456
458
|
*
|
457
459
|
* @protected
|
458
460
|
*/
|
459
|
-
_updateLabel(evt) {
|
460
|
-
if (this.
|
461
|
-
|
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);
|
462
466
|
this._labelName.value = this._customLabel;
|
463
467
|
this.labelChange.emit(this._labelName.value);
|
464
468
|
}
|
@@ -602,6 +606,8 @@ export class PublicNotification {
|
|
602
606
|
this._numSelected = 0;
|
603
607
|
this._activeSelection = undefined;
|
604
608
|
this._customLabel = undefined;
|
609
|
+
this._distance = undefined;
|
610
|
+
this._unit = undefined;
|
605
611
|
}
|
606
612
|
/**
|
607
613
|
* Delete the selection at the defined index
|
@@ -638,9 +644,9 @@ export class PublicNotification {
|
|
638
644
|
_openSelection(selectionSet, evt) {
|
639
645
|
evt.stopPropagation();
|
640
646
|
this._activeSelection = selectionSet;
|
641
|
-
|
642
|
-
|
643
|
-
|
647
|
+
this._distance = this._activeSelection.distance;
|
648
|
+
this._unit = this._activeSelection.unit;
|
649
|
+
this._customLabel = this._activeSelection.label;
|
644
650
|
this._pageType = EPageType.SELECT;
|
645
651
|
}
|
646
652
|
/**
|
@@ -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);
|
@@ -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 =
|
114
|
+
demo.customLabelEnabled = false;
|
115
115
|
// demo.bufferColor = [227, 0, 0, 0.8];
|
116
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 {
|
@@ -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) {
|
@@ -165,7 +165,8 @@ const MapDrawTools = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
165
165
|
"rectangle-selection": false
|
166
166
|
}, createTools: {
|
167
167
|
"circle": false
|
168
|
-
}
|
168
|
+
},
|
169
|
+
undoRedoMenu: false
|
169
170
|
};
|
170
171
|
this._sketchWidget.on("update", (evt) => {
|
171
172
|
if (evt.state === "start") {
|
@@ -122,7 +122,8 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
122
122
|
* Handle changes to the buffer distance value
|
123
123
|
*/
|
124
124
|
distanceChanged(event) {
|
125
|
-
this._updateLabel(event);
|
125
|
+
this._updateLabel(event, "distance");
|
126
|
+
this._distance = event.detail.newValue;
|
126
127
|
}
|
127
128
|
/**
|
128
129
|
* Handle changes to the selection sets
|
@@ -140,7 +141,8 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
140
141
|
* Handle changes to the buffer unit
|
141
142
|
*/
|
142
143
|
unitChanged(event) {
|
143
|
-
this._updateLabel(event);
|
144
|
+
this._updateLabel(event, "unit");
|
145
|
+
this._unit = event.detail.newValue;
|
144
146
|
}
|
145
147
|
//--------------------------------------------------------------------------
|
146
148
|
//
|
@@ -482,9 +484,11 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
482
484
|
*
|
483
485
|
* @protected
|
484
486
|
*/
|
485
|
-
_updateLabel(evt) {
|
486
|
-
if (this.
|
487
|
-
|
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);
|
488
492
|
this._labelName.value = this._customLabel;
|
489
493
|
this.labelChange.emit(this._labelName.value);
|
490
494
|
}
|
@@ -628,6 +632,8 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
628
632
|
this._numSelected = 0;
|
629
633
|
this._activeSelection = undefined;
|
630
634
|
this._customLabel = undefined;
|
635
|
+
this._distance = undefined;
|
636
|
+
this._unit = undefined;
|
631
637
|
}
|
632
638
|
/**
|
633
639
|
* Delete the selection at the defined index
|
@@ -664,9 +670,9 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
664
670
|
_openSelection(selectionSet, evt) {
|
665
671
|
evt.stopPropagation();
|
666
672
|
this._activeSelection = selectionSet;
|
667
|
-
|
668
|
-
|
669
|
-
|
673
|
+
this._distance = this._activeSelection.distance;
|
674
|
+
this._unit = this._activeSelection.unit;
|
675
|
+
this._customLabel = this._activeSelection.label;
|
670
676
|
this._pageType = EPageType.SELECT;
|
671
677
|
}
|
672
678
|
/**
|
@@ -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);
|