@arcgis/map-components 5.1.0-next.13 → 5.1.0-next.14
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/cdn/{7JQZBAFA.js → 255MJSL7.js} +1 -1
- package/dist/cdn/{BUE7MOVD.js → 2632C726.js} +1 -1
- package/dist/cdn/{EGN3YTD6.js → 2ID4LW4Y.js} +1 -1
- package/dist/cdn/{YFUI4F5L.js → 2LRWWFCA.js} +1 -1
- package/dist/cdn/2XOP6ODR.js +2 -0
- package/dist/cdn/{P6UY3ICC.js → 2XULQGZU.js} +1 -1
- package/dist/cdn/{7MD3GFV6.js → 2YBN6D3R.js} +1 -1
- package/dist/cdn/{UM2FDZJJ.js → 36FHKW25.js} +1 -1
- package/dist/cdn/{KYOYYCFY.js → 3IBLMFG2.js} +1 -1
- package/dist/cdn/{GKW3DDEQ.js → 3KOO4QMQ.js} +1 -1
- package/dist/cdn/{64OEHFBZ.js → 3O62Y4XU.js} +1 -1
- package/dist/cdn/{U4QW6VHU.js → 4723UCGJ.js} +1 -1
- package/dist/cdn/{JFDN4YD7.js → 4E76WGF2.js} +1 -1
- package/dist/cdn/{FYTMMPPG.js → 4GMSBMTS.js} +1 -1
- package/dist/cdn/{KAXJKSFB.js → 4JLBYQRJ.js} +1 -1
- package/dist/cdn/{SXS6AFSU.js → 4S2ZIUO2.js} +1 -1
- package/dist/cdn/{ZURN5EZI.js → 4WDHTN24.js} +1 -1
- package/dist/cdn/{DTVW3MYT.js → 4X3QNLL2.js} +1 -1
- package/dist/cdn/{EENOVGOS.js → 5H2OW6X5.js} +1 -1
- package/dist/cdn/5IXIFOQE.js +2 -0
- package/dist/cdn/{KNAUIRT6.js → 63HF2QYP.js} +1 -1
- package/dist/cdn/{TUW6NLYY.js → 6IUWB6ML.js} +1 -1
- package/dist/cdn/6PXPLFFB.js +2 -0
- package/dist/cdn/{UAO23YMW.js → 6XQPM3XF.js} +1 -1
- package/dist/cdn/6YZHULFG.js +2 -0
- package/dist/cdn/{I5QTPPFJ.js → 7CFAFS3P.js} +1 -1
- package/dist/cdn/{UNX4CKAF.js → 7D3Z55D3.js} +1 -1
- package/dist/cdn/{RRXH4CSV.js → 7SCKZLOG.js} +1 -1
- package/dist/cdn/7SIDRD63.js +2 -0
- package/dist/cdn/{7ZAVSDBZ.js → 7SLU4JV4.js} +1 -1
- package/dist/cdn/{GHFKQEFW.js → A5JTB4SB.js} +1 -1
- package/dist/cdn/{WW6L6XX4.js → AEDEEK6H.js} +1 -1
- package/dist/cdn/{F4HWT5H3.js → ANLNLB7F.js} +1 -1
- package/dist/cdn/{A44ZCOCX.js → ATG3WC6M.js} +1 -1
- package/dist/cdn/{RP5SO6BA.js → AWONSBWA.js} +1 -1
- package/dist/cdn/{BUOIT34V.js → B4IPMHN5.js} +1 -1
- package/dist/cdn/{UKNKW6MH.js → B4UXMUWZ.js} +1 -1
- package/dist/cdn/{PMQLTMQ4.js → BN6DAJ2Q.js} +1 -1
- package/dist/cdn/{XMSGTOUV.js → BOM3XB6A.js} +1 -1
- package/dist/cdn/{5RGFRTJS.js → BSOU3YSC.js} +1 -1
- package/dist/cdn/{62WRVJ3U.js → BUUMJJ3W.js} +1 -1
- package/dist/cdn/{M4L5EDRB.js → BX6WWIAY.js} +1 -1
- package/dist/cdn/{MQ6HO6LA.js → C3MVYUAO.js} +1 -1
- package/dist/cdn/C4FXVPMR.js +2 -0
- package/dist/cdn/{HH6BDERO.js → CJX4GSEZ.js} +1 -1
- package/dist/cdn/{3YA25S2J.js → CMI4ZWGU.js} +1 -1
- package/dist/cdn/{XFDR4YDM.js → COSZXJ2Q.js} +1 -1
- package/dist/cdn/{2EJ4XRH4.js → CUNZDZ3C.js} +1 -1
- package/dist/cdn/CWODI2VY.js +2 -0
- package/dist/cdn/{A2JO7DWO.js → DDYVX52H.js} +1 -1
- package/dist/cdn/{CC53K2CR.js → DG7CXNOU.js} +1 -1
- package/dist/cdn/{U37ZXVJO.js → DMGQRIIZ.js} +1 -1
- package/dist/cdn/E44RUDE7.js +2 -0
- package/dist/cdn/{TCG6VGIB.js → ELIGNLIF.js} +1 -1
- package/dist/cdn/{EQCNO3G4.js → EM6YZ3JD.js} +1 -1
- package/dist/cdn/EQPJBPD5.js +2 -0
- package/dist/cdn/{RP2MWWN5.js → F2JFRFTT.js} +1 -1
- package/dist/cdn/{AJHRJ5EA.js → FDCE7TCR.js} +1 -1
- package/dist/cdn/{2NOL7QIE.js → FNJ3HMEN.js} +1 -1
- package/dist/cdn/{OKXZJQ2B.js → FTQ4FNZO.js} +1 -1
- package/dist/cdn/{AEYZDEAH.js → FUXY5EKO.js} +1 -1
- package/dist/cdn/{OD5DHUHZ.js → FZDIAVC4.js} +1 -1
- package/dist/cdn/{SYMDMOKL.js → G7QZJNAC.js} +1 -1
- package/dist/cdn/{EX22SAPL.js → GF4QAY6O.js} +1 -1
- package/dist/cdn/{556MC5SF.js → GHVLDDZ3.js} +1 -1
- package/dist/cdn/{WTMMFDEH.js → GIAAX7SI.js} +1 -1
- package/dist/cdn/GJPX2JLE.js +2 -0
- package/dist/cdn/HDL76VD5.js +2 -0
- package/dist/cdn/{GNGZFV2C.js → HVKFQS3R.js} +1 -1
- package/dist/cdn/{37TNG76C.js → HZOWV5JG.js} +1 -1
- package/dist/cdn/{LG4PZVHS.js → I46QTMEJ.js} +1 -1
- package/dist/cdn/{5ITF7Q7U.js → I4SD3GKU.js} +1 -1
- package/dist/cdn/{3XMPN66U.js → I6EE4PLM.js} +1 -1
- package/dist/cdn/{NGKNECON.js → ILVKM7IB.js} +1 -1
- package/dist/cdn/{ORH27QWU.js → IOYNCKBD.js} +1 -1
- package/dist/cdn/{QVMTO5BV.js → IUFWY6SY.js} +1 -1
- package/dist/cdn/{SZ5MNKOW.js → IVHQAQZW.js} +1 -1
- package/dist/cdn/{6F6VOBIA.js → IX5YLGNO.js} +1 -1
- package/dist/cdn/{UKKUFJLL.js → J275QP5E.js} +1 -1
- package/dist/cdn/JSD5CN5Q.js +2 -0
- package/dist/cdn/{ZD5FJHIQ.js → JSISELHB.js} +1 -1
- package/dist/cdn/{4EAZ4PIQ.js → JUVPY4PW.js} +1 -1
- package/dist/cdn/{K27JJT2P.js → JWGHJITH.js} +1 -1
- package/dist/cdn/{NZAO2BVV.js → L6E647YW.js} +1 -1
- package/dist/cdn/{C4DJABUI.js → LA34IEDJ.js} +1 -1
- package/dist/cdn/LB32PLWG.js +2 -0
- package/dist/cdn/{42UR6TXZ.js → LJLCKW5C.js} +1 -1
- package/dist/cdn/{C7YN3AZA.js → LQNM7YK2.js} +1 -1
- package/dist/cdn/{R4V6HGJH.js → LYJM7ALP.js} +1 -1
- package/dist/cdn/{OCEXQCFT.js → MIGWB3PK.js} +1 -1
- package/dist/cdn/{RUB6EORR.js → MIXNJBCA.js} +1 -1
- package/dist/cdn/{ZVTPU2MO.js → MR4WJFX6.js} +1 -1
- package/dist/cdn/{NSGDR7V5.js → MSWQUZSG.js} +1 -1
- package/dist/cdn/{GYTQDFSL.js → MWS2QVII.js} +1 -1
- package/dist/cdn/{X26CF5AU.js → NFEIF3A6.js} +1 -1
- package/dist/cdn/{7YLXQNEC.js → NHBPPRG2.js} +1 -1
- package/dist/cdn/{XE5UPQ5E.js → NKO7ZJZN.js} +1 -1
- package/dist/cdn/{UHFSSX2G.js → NLRKDVIJ.js} +1 -1
- package/dist/cdn/{LZQCXN6A.js → NPEA453T.js} +1 -1
- package/dist/cdn/{HO4JUZ6N.js → NQ3Z6LXI.js} +1 -1
- package/dist/cdn/{2KDBYYCF.js → NWWJHV2L.js} +1 -1
- package/dist/cdn/{YA6FUJR2.js → O2BAIE3M.js} +1 -1
- package/dist/cdn/{A7JPWYKR.js → OJCZ3DV5.js} +1 -1
- package/dist/cdn/{TP6I2LJO.js → OKXFUFPW.js} +1 -1
- package/dist/cdn/{M65HMJZA.js → PJHO2DXQ.js} +1 -1
- package/dist/cdn/{ZD25GJYW.js → PR47Q75I.js} +1 -1
- package/dist/cdn/{AP2IFWYH.js → PX63EYUH.js} +1 -1
- package/dist/cdn/{MAGJWMWM.js → PXJQJ6MY.js} +1 -1
- package/dist/cdn/{MDCB7SO4.js → QEXDU6P7.js} +1 -1
- package/dist/cdn/{TJG4UE24.js → QHSQUBMZ.js} +1 -1
- package/dist/cdn/QUXORNHT.js +2 -0
- package/dist/cdn/{XRP25NGI.js → RG5JFGHQ.js} +1 -1
- package/dist/cdn/{ZM2YXU7Y.js → RMGBO7V2.js} +1 -1
- package/dist/cdn/{CVBNRF34.js → S726H24O.js} +1 -1
- package/dist/cdn/{XXZ3CKTX.js → SKUQ3U6A.js} +1 -1
- package/dist/cdn/{NRV7VFJ7.js → SVRZWJDO.js} +1 -1
- package/dist/cdn/{WOV3LB6K.js → TE3F7O3C.js} +1 -1
- package/dist/cdn/{YC6JWXOW.js → TFKBGMV2.js} +1 -1
- package/dist/cdn/{5LBJB4MP.js → TK4IQ72L.js} +1 -1
- package/dist/cdn/{XOPJ7VX2.js → TKFT2JL7.js} +1 -1
- package/dist/cdn/{24A3PRKY.js → TKK5PRP5.js} +1 -1
- package/dist/cdn/{NWK2WHZF.js → TMXUHRLR.js} +1 -1
- package/dist/cdn/{GY5226CJ.js → UNY32K3R.js} +1 -1
- package/dist/cdn/{DDFVZ5WZ.js → US7LKUHP.js} +1 -1
- package/dist/cdn/{3DO7PVNW.js → VD6EJLFO.js} +1 -1
- package/dist/cdn/VYAUH7PN.js +2 -0
- package/dist/cdn/{OSPWEZQJ.js → W5E542JG.js} +1 -1
- package/dist/cdn/{5TQ4ESJT.js → WCIXC6UR.js} +1 -1
- package/dist/cdn/{TPOLS4YM.js → WPWBOKOR.js} +1 -1
- package/dist/cdn/{WGWNMYUH.js → WZDTXSRM.js} +1 -1
- package/dist/cdn/{PISCYSA5.js → X35NN2TZ.js} +1 -1
- package/dist/cdn/{XMZSFKKO.js → X4AA7QDM.js} +1 -1
- package/dist/cdn/{QXUY4FOY.js → X5NCN674.js} +1 -1
- package/dist/cdn/{4QKKEYOT.js → XLB7XDRF.js} +1 -1
- package/dist/cdn/{C24SOTLL.js → Y4JTATJ2.js} +1 -1
- package/dist/cdn/{J55YUTPM.js → Y6W27QLR.js} +1 -1
- package/dist/cdn/{T2ZF4XIZ.js → ZERLO6VI.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/esri-main.js +1 -1
- package/dist/chunks/measurementUtils.js +3 -3
- package/dist/components/arcgis-area-measurement-2d/customElement.js +62 -74
- package/dist/components/arcgis-area-measurement-3d/customElement.js +52 -64
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +59 -71
- package/dist/components/arcgis-directions/customElement.d.ts +17 -0
- package/dist/components/arcgis-distance-measurement-2d/customElement.js +58 -70
- package/dist/components/arcgis-elevation-profile/customElement.js +100 -111
- package/dist/components/arcgis-elevation-profile-settings/customElement.js +22 -22
- package/dist/components/arcgis-popup/customElement.js +103 -96
- package/dist/components/arcgis-popup/types.d.ts +1 -1
- package/dist/components/arcgis-presentation/PresentationViewModel.d.ts +2 -2
- package/dist/components/arcgis-presentation/customElement.d.ts +1 -1
- package/dist/components/arcgis-reverse-geocode-list/customElement.d.ts +1 -1
- package/dist/components/arcgis-scale-bar/customElement.d.ts +1 -1
- package/dist/components/arcgis-shadow-cast/customElement.d.ts +3 -3
- package/dist/components/arcgis-sketch/customElement.d.ts +3 -4
- package/dist/components/arcgis-slice/types.d.ts +2 -2
- package/dist/components/arcgis-table-list/customElement.d.ts +7 -8
- package/dist/components/arcgis-time-slider/customElement.d.ts +3 -3
- package/dist/components/arcgis-time-zone-label/customElement.d.ts +1 -1
- package/dist/components/arcgis-utility-network-aggregated-geometry/customElement.d.ts +14 -2
- package/dist/components/arcgis-utility-network-aggregated-geometry/customElement.js +7 -7
- package/dist/components/arcgis-utility-network-trace/customElement.d.ts +7 -3
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +74 -14
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +47 -40
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +12 -0
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +80 -65
- package/dist/components/arcgis-utility-network-trace-location/customElement.d.ts +4 -0
- package/dist/components/arcgis-utility-network-trace-location/customElement.js +17 -14
- package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +13 -0
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +39 -26
- package/dist/components/arcgis-version-management/customElement.d.ts +3 -4
- package/dist/components/arcgis-volume-measurement/customElement.d.ts +3 -3
- package/dist/components/arcgis-volume-measurement/customElement.js +84 -84
- package/dist/components/types.d.ts +8 -6
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +6 -6
- package/dist/types/lumina.d.ts +5 -5
- package/dist/types/preact.d.ts +5 -5
- package/dist/types/react.d.ts +5 -5
- package/dist/types/stencil.d.ts +5 -5
- package/package.json +4 -4
- package/dist/cdn/22LNBUKE.js +0 -2
- package/dist/cdn/57NR3THC.js +0 -2
- package/dist/cdn/A4UJ53JS.js +0 -2
- package/dist/cdn/CTSWZC3O.js +0 -2
- package/dist/cdn/D73JFV2R.js +0 -2
- package/dist/cdn/DINM6JDS.js +0 -2
- package/dist/cdn/EL62JS5C.js +0 -2
- package/dist/cdn/EM7YCHTU.js +0 -2
- package/dist/cdn/HE6QV4XG.js +0 -2
- package/dist/cdn/KEFY4XPI.js +0 -2
- package/dist/cdn/LIEE5WCD.js +0 -2
- package/dist/cdn/MSMDSEFM.js +0 -2
- package/dist/cdn/N3BD4UQD.js +0 -2
- package/dist/cdn/QJOQNSYB.js +0 -2
- package/dist/cdn/RWQYK5BX.js +0 -2
|
@@ -1,28 +1,27 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as _ } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as
|
|
4
|
-
import { LitElement as
|
|
3
|
+
import { css as w, html as g } from "lit";
|
|
4
|
+
import { LitElement as f, createEvent as v, nothing as b, safeClassMap as x } from "@arcgis/lumina";
|
|
5
5
|
import { usePropertyChange as y } from "@arcgis/lumina/controllers";
|
|
6
6
|
import { classes as z } from "@arcgis/toolkit/dom";
|
|
7
7
|
import { u as D } from "../../chunks/useT9n.js";
|
|
8
8
|
import { m as k } from "../../chunks/useViewModel.js";
|
|
9
9
|
import { b as M } from "../../chunks/async-utils.js";
|
|
10
|
-
import { g as
|
|
11
|
-
import { V as
|
|
10
|
+
import { g as p } from "../../chunks/globalCss.js";
|
|
11
|
+
import { V as u } from "../../chunks/visible-element.js";
|
|
12
12
|
import O from "@arcgis/core/analysis/DirectLineMeasurementAnalysis.js";
|
|
13
|
-
import { isAboveGeodesicDistanceThreshold as
|
|
14
|
-
import { getDefaultUnitForView as V } from "@arcgis/core/applications/Components/getDefaultUnits.js";
|
|
13
|
+
import { isAboveGeodesicDistanceThreshold as V } from "@arcgis/core/applications/Components/analysisUtils.js";
|
|
15
14
|
import { property as l, subclass as $ } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
16
15
|
import { watch as S } from "@arcgis/core/core/reactiveUtils.js";
|
|
17
|
-
import { A as
|
|
18
|
-
import { g as
|
|
19
|
-
const
|
|
20
|
-
var
|
|
21
|
-
for (var
|
|
22
|
-
(c =
|
|
23
|
-
return
|
|
16
|
+
import { A as U } from "../../chunks/AnalysisViewModel.js";
|
|
17
|
+
import { g as L, a as C, b as d, r as E, d as m, c as P } from "../../chunks/measurementUtils.js";
|
|
18
|
+
const A = w`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}.esri-unit-select{width:100%}.esri-unit-select__label{--calcite-label-margin-bottom: 0;width:100%}:host{display:block}.esri-measurement-widget-content{padding:var(--arcgis-internal-padding);flex-direction:column;gap:var(--calcite-spacing-xxl);display:flex;position:relative;overflow-y:auto}.esri-measurement-widget-content__error{color:var(--calcite-color-status-danger)}.esri-measurement-widget-content__error,.esri-measurement-widget-content__hint{overflow:hidden}.esri-measurement-widget-content__error p,.esri-measurement-widget-content__hint p{margin:0;padding:0}.esri-measurement-widget-content__hint,.esri-measurement-widget-content__error,.esri-measurement-widget-content__measurement,.esri-measurement-widget-content__measurement-item{flex-direction:column;gap:var(--calcite-spacing-md);animation:.25s ease-in-out esri-fade-in;display:flex}.esri-measurement-widget-content__measurement-item--disabled{color:var(--calcite-color-border-ghost)}.esri-measurement-widget-content__measurement-item__value{font-weight:var(--calcite-font-weight-semibold)}.esri-measurement-widget-content__actions{flex-direction:column;justify-content:center;gap:var(--calcite-spacing-xs);display:flex}:host{width:300px}`;
|
|
19
|
+
var j = Object.defineProperty, B = Object.getOwnPropertyDescriptor, a = (t, e, r, o) => {
|
|
20
|
+
for (var i = o > 1 ? void 0 : o ? B(e, r) : e, n = t.length - 1, c; n >= 0; n--)
|
|
21
|
+
(c = t[n]) && (i = (o ? c(e, r, i) : c(i)) || i);
|
|
22
|
+
return o && i && j(e, r, i), i;
|
|
24
23
|
};
|
|
25
|
-
let
|
|
24
|
+
let s = class extends U {
|
|
26
25
|
constructor() {
|
|
27
26
|
super(...arguments), this.supportedViewType = "3d", this.unsupportedErrorMessage = "The Direct Line Measurement 3D component is only supported in 3D views.";
|
|
28
27
|
}
|
|
@@ -32,61 +31,53 @@ let o = class extends L {
|
|
|
32
31
|
S(
|
|
33
32
|
() => ({
|
|
34
33
|
analysis: this.analysis,
|
|
35
|
-
unit: this.
|
|
34
|
+
unit: this._userUnit
|
|
36
35
|
}),
|
|
37
|
-
({ analysis:
|
|
38
|
-
e
|
|
36
|
+
({ analysis: t, unit: e }) => {
|
|
37
|
+
e && (t.unit = e);
|
|
39
38
|
},
|
|
40
39
|
{ sync: !0, initial: !0 }
|
|
41
40
|
)
|
|
42
41
|
);
|
|
43
42
|
}
|
|
44
43
|
get state() {
|
|
45
|
-
const { analysis:
|
|
46
|
-
return
|
|
44
|
+
const { analysis: t, disabled: e, operationState: r, ready: o, supported: i } = this, { valid: n } = t;
|
|
45
|
+
return L({ supported: i, disabled: e, ready: o, operationState: r, valid: n });
|
|
47
46
|
}
|
|
48
47
|
get displayState() {
|
|
49
|
-
return
|
|
48
|
+
return C(this.state, !!this.analysis.startPoint);
|
|
50
49
|
}
|
|
51
50
|
get measurement() {
|
|
52
|
-
const
|
|
51
|
+
const t = this.analysisView?.result, e = t?.mode ?? "euclidean";
|
|
53
52
|
if (!this.analysis.valid)
|
|
54
53
|
return {
|
|
55
|
-
mode:
|
|
54
|
+
mode: e,
|
|
56
55
|
directDistance: d(void 0),
|
|
57
56
|
horizontalDistance: d(void 0),
|
|
58
57
|
verticalDistance: d(void 0)
|
|
59
58
|
};
|
|
60
|
-
const
|
|
59
|
+
const r = t?.directDistance, o = r != null && V(r);
|
|
61
60
|
return {
|
|
62
|
-
mode:
|
|
63
|
-
directDistance: d(
|
|
64
|
-
horizontalDistance: d(
|
|
65
|
-
verticalDistance: d(
|
|
61
|
+
mode: e,
|
|
62
|
+
directDistance: d(o ? void 0 : r),
|
|
63
|
+
horizontalDistance: d(t?.horizontalDistance),
|
|
64
|
+
verticalDistance: d(t?.verticalDistance)
|
|
66
65
|
};
|
|
67
66
|
}
|
|
68
67
|
get unitOptions() {
|
|
69
|
-
|
|
70
|
-
return e && e.length > 0 ? e : m.slice();
|
|
68
|
+
return E(this._userUnitOptions, m, m);
|
|
71
69
|
}
|
|
72
|
-
set unitOptions(
|
|
73
|
-
this._userUnitOptions =
|
|
70
|
+
set unitOptions(t) {
|
|
71
|
+
this._userUnitOptions = t;
|
|
74
72
|
}
|
|
75
73
|
get unit() {
|
|
76
|
-
|
|
77
|
-
if (e && t.includes(e))
|
|
78
|
-
return e;
|
|
79
|
-
const i = this._defaultUnit;
|
|
80
|
-
return i && t.includes(i) ? i : t[0];
|
|
74
|
+
return P(this._userUnit, this.analysis.unit, this.unitOptions, this.defaultMeasurementSystem);
|
|
81
75
|
}
|
|
82
|
-
set unit(
|
|
83
|
-
this._userUnit =
|
|
76
|
+
set unit(t) {
|
|
77
|
+
this._userUnit = t;
|
|
84
78
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
async place(e) {
|
|
89
|
-
await this.analysisView?.place(e);
|
|
79
|
+
async place(t) {
|
|
80
|
+
await this.analysisView?.place(t);
|
|
90
81
|
}
|
|
91
82
|
clearAnalysis() {
|
|
92
83
|
this.analysis.startPoint = null, this.analysis.endPoint = null;
|
|
@@ -97,41 +88,38 @@ let o = class extends L {
|
|
|
97
88
|
};
|
|
98
89
|
a([
|
|
99
90
|
l({ readOnly: !0 })
|
|
100
|
-
],
|
|
91
|
+
], s.prototype, "state", 1);
|
|
101
92
|
a([
|
|
102
93
|
l({ readOnly: !0 })
|
|
103
|
-
],
|
|
94
|
+
], s.prototype, "displayState", 1);
|
|
104
95
|
a([
|
|
105
96
|
l({ readOnly: !0 })
|
|
106
|
-
],
|
|
97
|
+
], s.prototype, "measurement", 1);
|
|
107
98
|
a([
|
|
108
99
|
l()
|
|
109
|
-
],
|
|
100
|
+
], s.prototype, "unitOptions", 1);
|
|
110
101
|
a([
|
|
111
102
|
l()
|
|
112
|
-
],
|
|
103
|
+
], s.prototype, "_userUnitOptions", 2);
|
|
113
104
|
a([
|
|
114
105
|
l()
|
|
115
|
-
],
|
|
106
|
+
], s.prototype, "unit", 1);
|
|
116
107
|
a([
|
|
117
108
|
l()
|
|
118
|
-
],
|
|
119
|
-
a([
|
|
120
|
-
l({ readOnly: !0 })
|
|
121
|
-
], o.prototype, "_defaultUnit", 1);
|
|
122
|
-
o = a([
|
|
109
|
+
], s.prototype, "_userUnit", 2);
|
|
110
|
+
s = a([
|
|
123
111
|
$("components.direct-line-measurement-3d.DirectLineMeasurement3dViewModel")
|
|
124
|
-
],
|
|
125
|
-
const
|
|
126
|
-
class
|
|
112
|
+
], s);
|
|
113
|
+
const T = k(s);
|
|
114
|
+
class Z extends f {
|
|
127
115
|
constructor() {
|
|
128
|
-
super(...arguments), this.viewModel =
|
|
116
|
+
super(...arguments), this.viewModel = T(this), this.messages = D({ name: "directline-measurement-3d", blocking: !0 }), this.view = this.viewModel.view, this.analysis = this.viewModel.analysis, this.autoDestroyDisabled = !1, this.hideStartButton = !1, this.hideUnitSelect = !1, this.hideVisualization = this.viewModel.hideVisualization, this.icon = "measure-line", this.state = this.viewModel.state, this.unit = this.viewModel.unit, this.unitOptions = this.viewModel.unitOptions, this.arcgisPropertyChange = y()("analysis", "state"), this.arcgisReady = v();
|
|
129
117
|
}
|
|
130
118
|
static {
|
|
131
119
|
this.properties = { view: 0, analysis: 0, autoDestroyDisabled: 5, hideStartButton: 5, hideUnitSelect: 5, hideVisualization: 5, icon: 3, label: 1, referenceElement: 1, state: 32, unit: 1, unitOptions: 0 };
|
|
132
120
|
}
|
|
133
121
|
static {
|
|
134
|
-
this.styles =
|
|
122
|
+
this.styles = A;
|
|
135
123
|
}
|
|
136
124
|
async clear() {
|
|
137
125
|
this.viewModel.clear();
|
|
@@ -143,26 +131,26 @@ class T extends w {
|
|
|
143
131
|
M(this.viewModel.start());
|
|
144
132
|
}
|
|
145
133
|
render() {
|
|
146
|
-
const { messages:
|
|
147
|
-
return g`<div aria-label=${
|
|
134
|
+
const { messages: e, unit: r, unitOptions: o, viewModel: i } = this, { measurement: n, state: c } = i;
|
|
135
|
+
return g`<div aria-label=${e.componentLabel ?? b} class=${x(z("root", p.widget, p.panel))} role=presentation><arcgis-measurement-content .state=${i.displayState} .hintLabel=${e.hint} .unsupportedLabel=${e.unsupported} .items=${[
|
|
148
136
|
{
|
|
149
|
-
title:
|
|
150
|
-
measurement:
|
|
137
|
+
title: e.direct,
|
|
138
|
+
measurement: n.directDistance
|
|
151
139
|
},
|
|
152
140
|
{
|
|
153
|
-
title:
|
|
154
|
-
measurement:
|
|
141
|
+
title: e.horizontal,
|
|
142
|
+
measurement: n.horizontalDistance
|
|
155
143
|
},
|
|
156
144
|
{
|
|
157
|
-
title:
|
|
158
|
-
measurement:
|
|
145
|
+
title: e.vertical,
|
|
146
|
+
measurement: n.verticalDistance
|
|
159
147
|
}
|
|
160
|
-
]}>${
|
|
148
|
+
]}>${u({ hidden: this.hideUnitSelect, children: g`<arcgis-unit-select slot=settings .options=${o} .selectLabel=${e.unit} .value=${r} @arcgisUnitSelectChange=${(h) => {
|
|
161
149
|
this.unit = h.detail;
|
|
162
|
-
}}></arcgis-unit-select>` })}${
|
|
150
|
+
}}></arcgis-unit-select>` })}${u({ hidden: this.hideStartButton, children: g`<calcite-button slot=actions .disabled=${c === "disabled" || c === "unsupported"} @click=${this.start}>${e.newMeasurement}</calcite-button>` })}</arcgis-measurement-content></div>`;
|
|
163
151
|
}
|
|
164
152
|
}
|
|
165
|
-
_("arcgis-direct-line-measurement-3d",
|
|
153
|
+
_("arcgis-direct-line-measurement-3d", Z);
|
|
166
154
|
export {
|
|
167
|
-
|
|
155
|
+
Z as ArcgisDirectLineMeasurement3d
|
|
168
156
|
};
|
|
@@ -14,6 +14,23 @@ import type { SystemOrLengthUnit } from "@arcgis/core/core/units.js";
|
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* The Directions component provides a way to calculate directions, between two or more input locations with a [RouteLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/RouteLayer/), using ArcGIS Online and custom Network Analysis Route services.
|
|
17
|
+
* This component generates a route finding a least-cost path between multiple points using the routing service associated with the assigned RouteLayer. The route is calculated based on the stops and barriers added to the RouteLayer. The component provides a user interface for adding, removing, and reordering stops and barriers. Once the route is solved, the component displays the route on the map and provides turn-by-turn directions in a list format.
|
|
18
|
+
*
|
|
19
|
+
* Directions uses the [Search component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-search/) to locate each stop, either by selecting a point on the map, or by entering a search term into the textbox.
|
|
20
|
+
* Search uses settings defined in the `Search properties`. This includes the `locationType`, which defines the type of geocoding result that is returned, and defaults to "street".
|
|
21
|
+
*
|
|
22
|
+
* Directions requires a RouteLayer to be associated with the `layer` property or using the `useDefaultRouteLayer` property. A RouteLayer can be programmatically created or derived from an external source like a portal item or webmap.
|
|
23
|
+
* Please note that in order to view or interact with routing inputs and results, the RouteLayer must be added to the map. Routing service and symbology is configured in the layer, specifically the `url` and `defaultSymbols` properties respectively.
|
|
24
|
+
*
|
|
25
|
+
* The ArcGIS Online routing service requires authentication. If an API key is specified at the app level (see [Config#apiKey](https://developers.arcgis.com/javascript/latest/references/core/config/#Config-apiKey)) or component level (see [apiKey](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-directions/#apiKey))) then this key will accompany requests to both the routing service and geocoder/reverse-geocoder.
|
|
26
|
+
* Please refer to the Search component for more information on geocoding.
|
|
27
|
+
*
|
|
28
|
+
* Locations on the map can be reverse geocoded and used as stops in the route. Click the button with a crosshairs icon to associate a location with a new or existing stop. After clicking the button, click the map once. To cancel this process, press the `escape` key.
|
|
29
|
+
* The resulting driving directions are automatically collapsed and can be optionally saved to a new or existing portal item. This can be achieved programically with `save` and `saveAs`. The `Clear` button calls the `reset()` method, which removes all stops, directions, and the solved route.
|
|
30
|
+
*
|
|
31
|
+
* Selecting the `Edit route` button allows you to add/move/remove stops, add/move/remove/reshape polyline barriers, and add/move/remove waypoints. To add a new waypoint, first hover the cursor over the route and select the desired point. Then select and drag the point to move and place the waypoint. By default the route will be automatically resolve at the completion of any editing operation. For more complex routes, it may be advantageous to disable auto-solving and solve as and when needed with the dedicated solve button. Currently, this is only supported in 2D MapViews.
|
|
32
|
+
*
|
|
33
|
+
* **Note:** Printing in Directions is in beta and considered experimental. The print preview dialog, in some scenarios, may not display as aniticipated.
|
|
17
34
|
*
|
|
18
35
|
* @since 4.28
|
|
19
36
|
*/
|
|
@@ -2,27 +2,26 @@
|
|
|
2
2
|
import { c as w } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as f, html as d } from "lit";
|
|
4
4
|
import { LitElement as v, createEvent as b, nothing as x, safeClassMap as y } from "@arcgis/lumina";
|
|
5
|
-
import { usePropertyChange as
|
|
6
|
-
import { classes as
|
|
5
|
+
import { usePropertyChange as M } from "@arcgis/lumina/controllers";
|
|
6
|
+
import { classes as k } from "@arcgis/toolkit/dom";
|
|
7
7
|
import { u as z } from "../../chunks/useT9n.js";
|
|
8
8
|
import { m as O } from "../../chunks/useViewModel.js";
|
|
9
9
|
import { b as V } from "../../chunks/async-utils.js";
|
|
10
10
|
import { g as p } from "../../chunks/globalCss.js";
|
|
11
11
|
import { V as g } from "../../chunks/visible-element.js";
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import { property as s, subclass as $ } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
12
|
+
import S from "@arcgis/core/analysis/DistanceMeasurementAnalysis.js";
|
|
13
|
+
import { property as n, subclass as $ } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
15
14
|
import { watch as u } from "@arcgis/core/core/reactiveUtils.js";
|
|
16
15
|
import h from "@arcgis/core/views/interactive/snapping/SnappingOptions.js";
|
|
17
|
-
import { A as
|
|
18
|
-
import { g as
|
|
19
|
-
const
|
|
20
|
-
var
|
|
21
|
-
for (var i =
|
|
22
|
-
(c =
|
|
23
|
-
return
|
|
16
|
+
import { A as D } from "../../chunks/AnalysisViewModel.js";
|
|
17
|
+
import { g as U, a as C, b as E, r as j, d as m, c as A } from "../../chunks/measurementUtils.js";
|
|
18
|
+
const L = f`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}.esri-unit-select{width:100%}.esri-unit-select__label{--calcite-label-margin-bottom: 0;width:100%}:host{display:block}.esri-measurement-widget-content{padding:var(--arcgis-internal-padding);flex-direction:column;gap:var(--calcite-spacing-xxl);display:flex;position:relative;overflow-y:auto}.esri-measurement-widget-content__error{color:var(--calcite-color-status-danger)}.esri-measurement-widget-content__error,.esri-measurement-widget-content__hint{overflow:hidden}.esri-measurement-widget-content__error p,.esri-measurement-widget-content__hint p{margin:0;padding:0}.esri-measurement-widget-content__hint,.esri-measurement-widget-content__error,.esri-measurement-widget-content__measurement,.esri-measurement-widget-content__measurement-item{flex-direction:column;gap:var(--calcite-spacing-md);animation:.25s ease-in-out esri-fade-in;display:flex}.esri-measurement-widget-content__measurement-item--disabled{color:var(--calcite-color-border-ghost)}.esri-measurement-widget-content__measurement-item__value{font-weight:var(--calcite-font-weight-semibold)}.esri-measurement-widget-content__actions{flex-direction:column;justify-content:center;gap:var(--calcite-spacing-xs);display:flex}:host{.esri-widget--panel{min-width:0}}`;
|
|
19
|
+
var P = Object.defineProperty, B = Object.getOwnPropertyDescriptor, s = (t, e, a, o) => {
|
|
20
|
+
for (var i = o > 1 ? void 0 : o ? B(e, a) : e, l = t.length - 1, c; l >= 0; l--)
|
|
21
|
+
(c = t[l]) && (i = (o ? c(e, a, i) : c(i)) || i);
|
|
22
|
+
return o && i && P(e, a, i), i;
|
|
24
23
|
};
|
|
25
|
-
let r = class extends
|
|
24
|
+
let r = class extends D {
|
|
26
25
|
constructor() {
|
|
27
26
|
super(...arguments), this.snappingOptions = new h(), this.supportedViewType = "2d", this.unsupportedErrorMessage = "The Distance Measurement 2D component is only supported in 2D views.", this.shouldForceInteractive = !1;
|
|
28
27
|
}
|
|
@@ -31,10 +30,10 @@ let r = class extends S {
|
|
|
31
30
|
u(
|
|
32
31
|
() => ({
|
|
33
32
|
analysis: this.analysis,
|
|
34
|
-
unit: this.
|
|
33
|
+
unit: this._userUnit
|
|
35
34
|
}),
|
|
36
|
-
({ analysis:
|
|
37
|
-
e && (
|
|
35
|
+
({ analysis: t, unit: e }) => {
|
|
36
|
+
e && (t.unit = e);
|
|
38
37
|
},
|
|
39
38
|
{ sync: !0, initial: !0 }
|
|
40
39
|
),
|
|
@@ -43,96 +42,85 @@ let r = class extends S {
|
|
|
43
42
|
analysisView: this.analysisView,
|
|
44
43
|
snappingOptions: this.snappingOptions
|
|
45
44
|
}),
|
|
46
|
-
({ analysisView:
|
|
47
|
-
|
|
45
|
+
({ analysisView: t, snappingOptions: e }) => {
|
|
46
|
+
t && (t.snappingOptions = e);
|
|
48
47
|
},
|
|
49
48
|
{ sync: !0, initial: !0 }
|
|
50
49
|
)
|
|
51
50
|
]);
|
|
52
51
|
}
|
|
53
52
|
get state() {
|
|
54
|
-
const { analysis:
|
|
55
|
-
return
|
|
53
|
+
const { analysis: t, disabled: e, operationState: a, ready: o, supported: i } = this, { valid: l } = t;
|
|
54
|
+
return U({ supported: i, disabled: e, ready: o, operationState: a, valid: l });
|
|
56
55
|
}
|
|
57
56
|
get displayState() {
|
|
58
|
-
return
|
|
57
|
+
return C(this.state, !!this.analysis.geometry);
|
|
59
58
|
}
|
|
60
59
|
get measurement() {
|
|
61
60
|
return {
|
|
62
61
|
mode: this.analysisView?.result?.mode ?? "euclidean",
|
|
63
|
-
length:
|
|
62
|
+
length: E(this.analysis.valid ? this.analysisView?.result?.length : void 0)
|
|
64
63
|
};
|
|
65
64
|
}
|
|
66
65
|
get unitOptions() {
|
|
67
|
-
|
|
68
|
-
return e && e.length > 0 ? e : m.slice();
|
|
66
|
+
return j(this._userUnitOptions, m, m);
|
|
69
67
|
}
|
|
70
|
-
set unitOptions(
|
|
71
|
-
this._userUnitOptions =
|
|
68
|
+
set unitOptions(t) {
|
|
69
|
+
this._userUnitOptions = t;
|
|
72
70
|
}
|
|
73
71
|
get unit() {
|
|
74
|
-
|
|
75
|
-
if (e && t.includes(e))
|
|
76
|
-
return e;
|
|
77
|
-
const o = this._defaultUnit;
|
|
78
|
-
return o && t.includes(o) ? o : t[0];
|
|
72
|
+
return A(this._userUnit, this.analysis.unit, this.unitOptions, this.defaultMeasurementSystem);
|
|
79
73
|
}
|
|
80
|
-
set unit(
|
|
81
|
-
this._userUnit =
|
|
74
|
+
set unit(t) {
|
|
75
|
+
this._userUnit = t;
|
|
82
76
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
async place(e) {
|
|
87
|
-
this.analysisView && (await this.analysisView.place(e), this.analysisView.interactive = !0);
|
|
77
|
+
async place(t) {
|
|
78
|
+
this.analysisView && (await this.analysisView.place(t), this.analysisView.interactive = !0);
|
|
88
79
|
}
|
|
89
80
|
clearAnalysis() {
|
|
90
81
|
this.analysis.geometry = null;
|
|
91
82
|
}
|
|
92
83
|
constructAnalysis() {
|
|
93
|
-
return new
|
|
84
|
+
return new S();
|
|
94
85
|
}
|
|
95
86
|
};
|
|
96
|
-
|
|
97
|
-
|
|
87
|
+
s([
|
|
88
|
+
n({ readOnly: !0 })
|
|
98
89
|
], r.prototype, "state", 1);
|
|
99
|
-
|
|
100
|
-
|
|
90
|
+
s([
|
|
91
|
+
n({ readOnly: !0 })
|
|
101
92
|
], r.prototype, "displayState", 1);
|
|
102
|
-
|
|
103
|
-
|
|
93
|
+
s([
|
|
94
|
+
n()
|
|
104
95
|
], r.prototype, "measurement", 1);
|
|
105
|
-
|
|
106
|
-
|
|
96
|
+
s([
|
|
97
|
+
n({ type: h })
|
|
107
98
|
], r.prototype, "snappingOptions", 2);
|
|
108
|
-
|
|
109
|
-
|
|
99
|
+
s([
|
|
100
|
+
n()
|
|
110
101
|
], r.prototype, "unitOptions", 1);
|
|
111
|
-
|
|
112
|
-
|
|
102
|
+
s([
|
|
103
|
+
n()
|
|
113
104
|
], r.prototype, "_userUnitOptions", 2);
|
|
114
|
-
|
|
115
|
-
|
|
105
|
+
s([
|
|
106
|
+
n()
|
|
116
107
|
], r.prototype, "unit", 1);
|
|
117
|
-
|
|
118
|
-
|
|
108
|
+
s([
|
|
109
|
+
n()
|
|
119
110
|
], r.prototype, "_userUnit", 2);
|
|
120
|
-
|
|
121
|
-
s()
|
|
122
|
-
], r.prototype, "_defaultUnit", 1);
|
|
123
|
-
r = n([
|
|
111
|
+
r = s([
|
|
124
112
|
$("components.distance-measurement-2d.DistanceMeasurement2dViewModel")
|
|
125
113
|
], r);
|
|
126
|
-
const
|
|
127
|
-
class
|
|
114
|
+
const T = O(r);
|
|
115
|
+
class Z extends v {
|
|
128
116
|
constructor() {
|
|
129
|
-
super(...arguments), this.viewModel =
|
|
117
|
+
super(...arguments), this.viewModel = T(this), this.messages = z({ name: "distance-measurement-2d", blocking: !0 }), this.view = this.viewModel.view, this.analysis = this.viewModel.analysis, this.autoDestroyDisabled = !1, this.hideStartButton = !1, this.hideUnitSelect = !1, this.hideVisualization = this.viewModel.hideVisualization, this.icon = "measure-line", this.snappingOptions = this.viewModel.snappingOptions, this.state = this.viewModel.state, this.unit = this.viewModel.unit, this.unitOptions = this.viewModel.unitOptions, this.arcgisPropertyChange = M()("analysis", "state"), this.arcgisReady = b();
|
|
130
118
|
}
|
|
131
119
|
static {
|
|
132
120
|
this.properties = { view: 0, analysis: 0, autoDestroyDisabled: 5, hideStartButton: 5, hideUnitSelect: 5, hideVisualization: 5, icon: 3, label: 1, referenceElement: 1, snappingOptions: 0, state: 32, unit: 1, unitOptions: 0 };
|
|
133
121
|
}
|
|
134
122
|
static {
|
|
135
|
-
this.styles =
|
|
123
|
+
this.styles = L;
|
|
136
124
|
}
|
|
137
125
|
async clear() {
|
|
138
126
|
this.viewModel.clear();
|
|
@@ -144,18 +132,18 @@ class T extends v {
|
|
|
144
132
|
V(this.viewModel.start());
|
|
145
133
|
}
|
|
146
134
|
render() {
|
|
147
|
-
const { messages:
|
|
148
|
-
return d`<div aria-label=${
|
|
135
|
+
const { messages: e, unit: a, unitOptions: o, viewModel: i } = this, { measurement: l, state: c } = i;
|
|
136
|
+
return d`<div aria-label=${e.componentLabel ?? x} class=${y(k("root", p.widget, p.panel))} role=presentation><arcgis-measurement-content .state=${i.displayState} .hintLabel=${e.hint} .unsupportedLabel=${e.unsupported} .items=${[
|
|
149
137
|
{
|
|
150
|
-
title:
|
|
138
|
+
title: e.distance,
|
|
151
139
|
measurement: l.length
|
|
152
140
|
}
|
|
153
|
-
]}>${g({ hidden: this.hideUnitSelect, children: d`<arcgis-unit-select slot=settings .options=${
|
|
141
|
+
]}>${g({ hidden: this.hideUnitSelect, children: d`<arcgis-unit-select slot=settings .options=${o} .selectLabel=${e.unit} .value=${a} @arcgisUnitSelectChange=${(_) => {
|
|
154
142
|
this.unit = _.detail;
|
|
155
|
-
}}></arcgis-unit-select>` })}${g({ hidden: this.hideStartButton, children: d`<calcite-button slot=actions .disabled=${c === "unsupported" || c === "disabled"} @click=${this.start}>${
|
|
143
|
+
}}></arcgis-unit-select>` })}${g({ hidden: this.hideStartButton, children: d`<calcite-button slot=actions .disabled=${c === "unsupported" || c === "disabled"} @click=${this.start}>${e.newMeasurement}</calcite-button>` })}</arcgis-measurement-content></div>`;
|
|
156
144
|
}
|
|
157
145
|
}
|
|
158
|
-
w("arcgis-distance-measurement-2d",
|
|
146
|
+
w("arcgis-distance-measurement-2d", Z);
|
|
159
147
|
export {
|
|
160
|
-
|
|
148
|
+
Z as ArcgisDistanceMeasurement2d
|
|
161
149
|
};
|