@arcgis/map-components 5.1.0-next.25 → 5.1.0-next.27
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/{FHVJILOP.js → 227WPY6O.js} +1 -1
- package/dist/cdn/{F3NCON5F.js → 22YBLZZ5.js} +1 -1
- package/dist/cdn/{IDBLPYXK.js → 23HX6BD2.js} +1 -1
- package/dist/cdn/{SJJ4MLVA.js → 2AHOSQID.js} +1 -1
- package/dist/cdn/{MYJWBY4N.js → 2CHBGF6N.js} +1 -1
- package/dist/cdn/{NS6A57H7.js → 2CZVQJFN.js} +1 -1
- package/dist/cdn/2D47DQA5.js +2 -0
- package/dist/cdn/{HFWMJJFD.js → 2E5U7E4Y.js} +1 -1
- package/dist/cdn/{LGF6DK5V.js → 2HRXVQNT.js} +1 -1
- package/dist/cdn/{LMI2OZRD.js → 2NW3IA4C.js} +1 -1
- package/dist/cdn/{NIEHEX74.js → 34K7KDP3.js} +1 -1
- package/dist/cdn/{EHWPP2OD.js → 34Z77QHJ.js} +1 -1
- package/dist/cdn/{5KNN577Y.js → 3NTRW2I5.js} +1 -1
- package/dist/cdn/{Y7BSBKHO.js → 3ON5H2G5.js} +1 -1
- package/dist/cdn/{7D64YYLS.js → 3W3MBD25.js} +1 -1
- package/dist/cdn/{DV3AMXLQ.js → 42IKCJ2T.js} +1 -1
- package/dist/cdn/{WQZ44Y3Z.js → 44APAUMM.js} +1 -1
- package/dist/cdn/{7W7RNWBM.js → 4J3CK2QK.js} +1 -1
- package/dist/cdn/{KG3JO6AR.js → 4MNQPYT6.js} +1 -1
- package/dist/cdn/{ZZ7EY45U.js → 4WKSSPS5.js} +1 -1
- package/dist/cdn/{Q4HJ76OE.js → 4YQZ3XVG.js} +1 -1
- package/dist/cdn/{PTGYG2U4.js → 54WDNPKC.js} +1 -1
- package/dist/cdn/{MQNRWUJV.js → 5KRCPR2U.js} +1 -1
- package/dist/cdn/{MSGBVT7B.js → 5ZHD4P65.js} +1 -1
- package/dist/cdn/{QH2WUE6T.js → 6M6VT4H6.js} +1 -1
- package/dist/cdn/{N2VUYFEK.js → 6UNF7T5E.js} +1 -1
- package/dist/cdn/{64XTP54A.js → 7FS3KABY.js} +1 -1
- package/dist/cdn/{IIGVQFLD.js → 7LEGZD2O.js} +1 -1
- package/dist/cdn/{AEQFRO7B.js → 7LYFC7SC.js} +1 -1
- package/dist/cdn/{ICCQCKZB.js → 7RUBJPVS.js} +1 -1
- package/dist/cdn/{YKFPLV7U.js → 7SZFENQP.js} +1 -1
- package/dist/cdn/{DUSCPURL.js → 7VRU553O.js} +1 -1
- package/dist/cdn/{FOZBLOPX.js → 7WKBNAQD.js} +1 -1
- package/dist/cdn/{2ELWNWRV.js → 7XJ2H56Y.js} +1 -1
- package/dist/cdn/{JTUDL7ZD.js → AA6JMN5J.js} +1 -1
- package/dist/cdn/{EAV2N3XM.js → AH4HKYPE.js} +1 -1
- package/dist/cdn/{BQUMWB3P.js → AR47FOKN.js} +1 -1
- package/dist/cdn/{VTWJOYZO.js → ATBESYRQ.js} +1 -1
- package/dist/cdn/{KB6ZC3F2.js → AZNCJT62.js} +1 -1
- package/dist/cdn/{ZSUULNWA.js → B2G5OTNZ.js} +1 -1
- package/dist/cdn/{AHAR3YRD.js → B4GFOGFO.js} +1 -1
- package/dist/cdn/{4Q2WOBXH.js → BHB3PSCU.js} +1 -1
- package/dist/cdn/{PX7OQ23D.js → BJEDYTXQ.js} +1 -1
- package/dist/cdn/{TCB332AR.js → BTIV4UDX.js} +1 -1
- package/dist/cdn/{VRC4A6UI.js → CDVHDTSM.js} +1 -1
- package/dist/cdn/{RTXZGZRC.js → CDVPXUWH.js} +1 -1
- package/dist/cdn/{ZENXKKZU.js → CGXRBQGQ.js} +1 -1
- package/dist/cdn/{XE7L75G7.js → DJMRUJ7O.js} +1 -1
- package/dist/cdn/{BSZYRTSR.js → DVMAHZFP.js} +1 -1
- package/dist/cdn/{M6NRIDED.js → DW3K3W57.js} +1 -1
- package/dist/cdn/E3ATQTQG.js +2 -0
- package/dist/cdn/{IOZAX7QH.js → EAQLT2UN.js} +1 -1
- package/dist/cdn/{QAGNYSNU.js → EPII4PE5.js} +1 -1
- package/dist/cdn/{7E3PHG6R.js → EQPYSPT5.js} +1 -1
- package/dist/cdn/{BX4XQZE3.js → ET6WL43W.js} +1 -1
- package/dist/cdn/{23TQHX3R.js → EUFSNMR4.js} +1 -1
- package/dist/cdn/{U4FOROQE.js → EY7SYUYY.js} +1 -1
- package/dist/cdn/{JYFXOUAR.js → EYX4XXBU.js} +1 -1
- package/dist/cdn/{NBS2JRKZ.js → G3DJLLNR.js} +1 -1
- package/dist/cdn/{TJXR3SIG.js → G44JDQZ4.js} +1 -1
- package/dist/cdn/{EXSFSEK3.js → GIICS6MH.js} +1 -1
- package/dist/cdn/{IGCGKXVQ.js → GKZICLQB.js} +1 -1
- package/dist/cdn/{YWYMFFO5.js → GST63XCD.js} +1 -1
- package/dist/cdn/{DTLIZIOI.js → H337G76Z.js} +1 -1
- package/dist/cdn/{5EZ4KU4A.js → HA465EKI.js} +1 -1
- package/dist/cdn/{YPGLFMTV.js → IEC2UOVC.js} +1 -1
- package/dist/cdn/{5JF5N6II.js → IEOFMCCO.js} +1 -1
- package/dist/cdn/{667Y5WZS.js → INULU27Q.js} +1 -1
- package/dist/cdn/{5YYDQKYB.js → IP6MMWXP.js} +1 -1
- package/dist/cdn/{SUUWINLA.js → ITTHJAUG.js} +1 -1
- package/dist/cdn/{DCF4XOHG.js → J5H3B35H.js} +1 -1
- package/dist/cdn/{XEKVZSQD.js → J756LIIM.js} +1 -1
- package/dist/cdn/{N7SXGVEK.js → JF4W5UZ7.js} +1 -1
- package/dist/cdn/{5DS4JPW6.js → JIZ6BEMO.js} +1 -1
- package/dist/cdn/{4HVMKKUC.js → JODAZMW3.js} +1 -1
- package/dist/cdn/{ZKB2DJMQ.js → JWTRJAFZ.js} +1 -1
- package/dist/cdn/{CHQK4O2O.js → JYDGMTWJ.js} +1 -1
- package/dist/cdn/{LQA4IF5M.js → K6T4CJK7.js} +1 -1
- package/dist/cdn/{XLAV73BO.js → KEKWNLTW.js} +1 -1
- package/dist/cdn/{P7GCX7CN.js → KUFUPG4B.js} +1 -1
- package/dist/cdn/{PAFLJ4T6.js → KUFW2OOW.js} +1 -1
- package/dist/cdn/{QPCLA4EJ.js → KUUX4Y7X.js} +1 -1
- package/dist/cdn/{MIK35PDX.js → KV2UORZN.js} +1 -1
- package/dist/cdn/{VW43RPYP.js → KVIUDTBB.js} +1 -1
- package/dist/cdn/{NCUVQ62D.js → KX25AEKF.js} +1 -1
- package/dist/cdn/KX5PBTVM.js +2 -0
- package/dist/cdn/{NGFJVQMO.js → KYJD5CQL.js} +1 -1
- package/dist/cdn/{JEG2YAUH.js → L6D5F5SD.js} +1 -1
- package/dist/cdn/{TPA4RUZY.js → LGEWMTBM.js} +1 -1
- package/dist/cdn/{7DAFL3QP.js → LGO4NCZM.js} +1 -1
- package/dist/cdn/{FSTB6YQB.js → LO6QWIYR.js} +1 -1
- package/dist/cdn/{UB6YWPE6.js → LY5GZCVF.js} +1 -1
- package/dist/cdn/{CYHPOGKU.js → M67RIQAG.js} +1 -1
- package/dist/cdn/{TO4AP4NZ.js → M6ZVATVW.js} +1 -1
- package/dist/cdn/{L4QA437J.js → MBIE3GJO.js} +1 -1
- package/dist/cdn/{46PYSV4C.js → MD2KA2VE.js} +1 -1
- package/dist/cdn/{YLAOXZXB.js → MFQWNYVF.js} +1 -1
- package/dist/cdn/{ZO5DJCAZ.js → MGI5SXEX.js} +1 -1
- package/dist/cdn/{YIABICX7.js → MHVCLFTY.js} +1 -1
- package/dist/cdn/{5JHCBJB4.js → MLTG7WO5.js} +1 -1
- package/dist/cdn/{CP3VD55W.js → MR5JAWKH.js} +1 -1
- package/dist/cdn/{LGCAKLVB.js → MX7LKRXI.js} +1 -1
- package/dist/cdn/{OI6PBJPY.js → MYATZCJP.js} +1 -1
- package/dist/cdn/{2LOKXZGA.js → NBA6VGFB.js} +1 -1
- package/dist/cdn/{HNDFLEFC.js → NQ53C2SG.js} +1 -1
- package/dist/cdn/{S5XIZMAX.js → NWQEVQPN.js} +1 -1
- package/dist/cdn/{O3GU57ZF.js → ODGZ4RGD.js} +1 -1
- package/dist/cdn/{SRHN7R6A.js → OIFWL2YB.js} +1 -1
- package/dist/cdn/{ITX6LJ6O.js → ONRBFGY5.js} +1 -1
- package/dist/cdn/{Z4BYNRYD.js → OPATO46Y.js} +1 -1
- package/dist/cdn/{AODIPCQO.js → OZICG5FF.js} +1 -1
- package/dist/cdn/{S2L4RRRK.js → P4DS6L6N.js} +1 -1
- package/dist/cdn/{PJ3PYFJ4.js → P5MTPM2I.js} +1 -1
- package/dist/cdn/{NKRZ2VLU.js → P6I2HVEZ.js} +1 -1
- package/dist/cdn/{UENUQ4KE.js → PI6KXXB5.js} +1 -1
- package/dist/cdn/{74J22H6S.js → PL6H7VTE.js} +1 -1
- package/dist/cdn/{K3C4REJ2.js → PPOG4NAA.js} +1 -1
- package/dist/cdn/{46LACOKN.js → PUJPVTUS.js} +1 -1
- package/dist/cdn/PY4FXGEA.js +2 -0
- package/dist/cdn/{5YQWN4HC.js → QAXSOHDW.js} +1 -1
- package/dist/cdn/{PEIVXKOI.js → QB7F6BBW.js} +1 -1
- package/dist/cdn/{B752UU56.js → QCCYKLEL.js} +1 -1
- package/dist/cdn/{T6LJGCEK.js → QDHEAX7N.js} +1 -1
- package/dist/cdn/{C3D6DL63.js → QIXAQV3Y.js} +1 -1
- package/dist/cdn/{GU3IZVNE.js → QRIK2V22.js} +1 -1
- package/dist/cdn/{RTWFIBP2.js → QUBU7FFY.js} +1 -1
- package/dist/cdn/{RO7BCT67.js → R7YMIGPE.js} +1 -1
- package/dist/cdn/{Z7KZKGZH.js → RB4ZCMX4.js} +1 -1
- package/dist/cdn/RCZV4CQN.js +2 -0
- package/dist/cdn/{HIALRIA5.js → RG3A222F.js} +1 -1
- package/dist/cdn/{HVP4D5QA.js → RG4S7JVP.js} +1 -1
- package/dist/cdn/{27PMZPVO.js → RVGCVXBV.js} +1 -1
- package/dist/cdn/{RSXH2YEV.js → SEPRRGUF.js} +1 -1
- package/dist/cdn/{SRSSON6V.js → SJUWADQP.js} +1 -1
- package/dist/cdn/{AGWQDLNI.js → SKEB63NG.js} +1 -1
- package/dist/cdn/{APV3AYJF.js → SMHB2XNO.js} +1 -1
- package/dist/cdn/{ZNKRUHBB.js → SUZEU5HH.js} +2 -2
- package/dist/cdn/SY5BLQ77.js +2 -0
- package/dist/cdn/{NVPDQFVK.js → T4WQQ7MP.js} +1 -1
- package/dist/cdn/{JPC5EARH.js → T5F57ZKY.js} +1 -1
- package/dist/cdn/{KC37LMMM.js → TBB5FDQB.js} +1 -1
- package/dist/cdn/{LA4NAQGV.js → TLUXYPPY.js} +1 -1
- package/dist/cdn/{FOJRNP3B.js → TMXAN3O2.js} +1 -1
- package/dist/cdn/TTZN7HIT.js +2 -0
- package/dist/cdn/{DQRCKBRU.js → TZHRLKZR.js} +1 -1
- package/dist/cdn/TZXIPFOD.js +2 -0
- package/dist/cdn/{FKLSUEE4.js → U3CQZ6CI.js} +1 -1
- package/dist/cdn/{3YF5ELCV.js → U557VRFM.js} +1 -1
- package/dist/cdn/{HCWAOP6D.js → U5PXE2DX.js} +1 -1
- package/dist/cdn/{GPUGICGT.js → U7GSOBVS.js} +1 -1
- package/dist/cdn/{XILIHQ2Y.js → UCWDM6D2.js} +1 -1
- package/dist/cdn/{EV3HXCIH.js → UEF6TPIT.js} +1 -1
- package/dist/cdn/{5FZ74RGF.js → UKG6DYFF.js} +1 -1
- package/dist/cdn/{7FXNEMXE.js → UMYVF65X.js} +1 -1
- package/dist/cdn/{4LG73L7E.js → US4GUOT3.js} +1 -1
- package/dist/cdn/{FXW2QMCP.js → UXYBJXLL.js} +1 -1
- package/dist/cdn/{Q4Z6YWQ4.js → UZFDHLQM.js} +1 -1
- package/dist/cdn/{UMQX5AKE.js → V5WAYR44.js} +1 -1
- package/dist/cdn/{OPPTQDUJ.js → VGP43HGK.js} +1 -1
- package/dist/cdn/{FGPK4XM4.js → VGR7AU6K.js} +1 -1
- package/dist/cdn/{IWN6U37Z.js → VH3WALH4.js} +1 -1
- package/dist/cdn/{5HUNDZSE.js → VNCC2KP5.js} +1 -1
- package/dist/cdn/{5OZFNWAD.js → VQ4QWOQY.js} +1 -1
- package/dist/cdn/{QJPNEXAO.js → VWHIK5GL.js} +1 -1
- package/dist/cdn/{NJN3I6EV.js → W5TN3LOU.js} +1 -1
- package/dist/cdn/{C5QG2S6I.js → WJ4JHHNJ.js} +1 -1
- package/dist/cdn/{VQ5WECKT.js → X7IBOHSI.js} +1 -1
- package/dist/cdn/{7BPH252S.js → XDDOM7RA.js} +1 -1
- package/dist/cdn/{XUQOEMSH.js → XIUUCICM.js} +1 -1
- package/dist/cdn/{CB36GREW.js → XP7ST6TO.js} +1 -1
- package/dist/cdn/{WMSKSUGI.js → XUESBDWT.js} +1 -1
- package/dist/cdn/{BMITVMTW.js → XV2NVNDJ.js} +1 -1
- package/dist/cdn/{G7OKKTPN.js → YOOYHZ7L.js} +1 -1
- package/dist/cdn/{3RWP2MFY.js → YQMPW2VC.js} +1 -1
- package/dist/cdn/{OOITGE5V.js → YRUX64GE.js} +1 -1
- package/dist/cdn/{GK27I2Y5.js → YSPFHM7A.js} +1 -1
- package/dist/cdn/{U77W27GO.js → YTOLDZ6E.js} +1 -1
- package/dist/cdn/{S4DXV4PM.js → YXYHUSBB.js} +1 -1
- package/dist/cdn/{G44PNNZ4.js → ZBANIHB3.js} +1 -1
- package/dist/cdn/{Q5LEXBSY.js → ZOAOTITT.js} +1 -1
- package/dist/cdn/{XAM2764P.js → ZW733SWS.js} +1 -1
- package/dist/cdn/{UIQHTGAK.js → ZXEQN6RW.js} +1 -1
- package/dist/cdn/ZZAD2X6F.js +2 -0
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/action-utils.js +2 -2
- package/dist/chunks/esri-main.js +1 -1
- package/dist/chunks/heading.js +2 -2
- package/dist/chunks/slots.js +9 -9
- package/dist/components/arcgis-basemap-toggle/customElement.js +1 -1
- package/dist/components/arcgis-compass/customElement.js +1 -1
- package/dist/components/arcgis-directions/customElement.js +4 -4
- package/dist/components/arcgis-feature-attachments/customElement.js +1 -1
- package/dist/components/arcgis-feature-media/customElement.js +1 -1
- package/dist/components/arcgis-features/customElement.d.ts +4 -0
- package/dist/components/arcgis-features/customElement.js +59 -58
- package/dist/components/arcgis-home/customElement.js +2 -2
- package/dist/components/arcgis-link-chart/customElement.js +1 -1
- package/dist/components/arcgis-locate/customElement.js +17 -16
- package/dist/components/arcgis-map/customElement.js +1 -1
- package/dist/components/arcgis-navigation-toggle/customElement.js +1 -1
- package/dist/components/arcgis-popup/customElement.d.ts +5 -0
- package/dist/components/arcgis-presentation/customElement.js +6 -6
- package/dist/components/arcgis-scene/customElement.js +1 -1
- package/dist/components/arcgis-sketch/customElement.d.ts +8 -0
- package/dist/components/arcgis-sketch/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-aggregated-geometry/customElement.js +8 -8
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +9 -5
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +1 -1
- package/dist/components/arcgis-zoom/customElement.js +1 -1
- 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 +1 -1
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/package.json +4 -4
- package/dist/cdn/4Y6EXK2P.js +0 -2
- package/dist/cdn/CC4JKJPW.js +0 -2
- package/dist/cdn/DS6FJ2ZR.js +0 -2
- package/dist/cdn/K3WRWVQH.js +0 -2
- package/dist/cdn/U3P6MNLN.js +0 -2
- package/dist/cdn/X7YUOD3X.js +0 -2
- package/dist/cdn/XL5VSTUT.js +0 -2
- package/dist/cdn/YSACVRKP.js +0 -2
- package/dist/cdn/ZJH54CNE.js +0 -2
- /package/dist/cdn/{BDUD457O.js → R5KGKAEB.js} +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as a } from "../../chunks/runtime.js";
|
|
3
3
|
import { usePropertyChange as s } from "@arcgis/lumina/controllers";
|
|
4
|
-
import { watch as
|
|
4
|
+
import { watch as n } from "@arcgis/core/core/reactiveUtils.js";
|
|
5
5
|
import o from "@arcgis/core/layers/RouteLayer.js";
|
|
6
|
-
import
|
|
6
|
+
import c from "@arcgis/core/widgets/Directions.js";
|
|
7
7
|
import { LitElement as l, createEvent as d } from "@arcgis/lumina";
|
|
8
8
|
import { m as g } from "../../chunks/useWidget.js";
|
|
9
9
|
import { d as p } from "../../chunks/component-utils.js";
|
|
10
10
|
import { css as h } from "lit";
|
|
11
|
-
const m = h`.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-search{flex-flow:row;justify-content:center;align-items:center;width:240px;display:flex}.esri-search__dropdown{--calcite-color-border-1: var(--calcite-color-border-input);--calcite-dropdown-width: 240px;width:31px}.esri-search__autocomplete{flex:1}.esri-search__container{flex-flow:row;flex:1 0 100%;align-items:stretch;display:flex;position:relative}.esri-search__form{flex-flow:row;flex:1 0;align-items:stretch;margin:0;padding:0;display:flex}.esri-search-result-renderer calcite-block,.esri-search-result-renderer calcite-block[expanded]{margin-block:0;border:0;margin-block-start:var(--calcite-spacing-md)}.esri-search__submit-button{position:absolute;margin:-1px;border-width:0;padding:0;width:1px;height:1px;overflow:hidden;white-space:nowrap;clip:rect(0,0,0,0)}:host{display:flex}.esri-directions{display:flex;flex:1 1 auto}.esri-directions calcite-flow-item{--calcite-color-background: var(--calcite-color-foreground-1)}.esri-directions calcite-flow{z-index:1;position:relative}.esri-directions__accordion{--calcite-accordion-border-color: transparent}.esri-directions__stop-container{--calcite-list-border-color: transparent;--calcite-list-background-color-hover: var(--calcite-color-foreground-1);margin-block-start:var(--calcite-spacing-sm);display:flex}.esri-directions__stop-list{flex:auto}.esri-directions__action-container{margin-top:var(--calcite-spacing-sm);margin-inline:var(--calcite-spacing-sm);display:flex}.esri-directions__add-stop-button{margin-inline-end:var(--calcite-spacing-xs)}.esri-directions__departure-time{--calcite-label-margin-bottom: 0}.esri-directions__departure-time-options{margin-bottom:var(--calcite-spacing-sm);display:flex}.esri-directions__departure-time-options calcite-input-date-picker,.esri-directions__departure-time-options calcite-input-time-picker{flex:1}.esri-directions__directions-header{line-height:var(--calcite-font-line-height-relative-snug);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size--2);flex-direction:column;display:flex}.esri-directions__header-stops{gap:var(--calcite-spacing-base) var(--calcite-spacing-xxs);font-size:var(--calcite-font-size--1);grid-template-columns:auto 1fr;margin-block-end:var(--calcite-spacing-base);display:grid}.esri-directions__directions-header-stop-name{text-overflow:ellipsis;color:var(--calcite-color-text-1);font-weight:var(--calcite-font-weight-medium);overflow:hidden}.esri-directions__edit-footer{border-top:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);padding:var(--calcite-spacing-md)}.esri-directions__edit-information-container{border-bottom:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);background-color:var(--calcite-color-surface-1);padding:var(--calcite-spacing-md)}.esri-directions__edit-toolbar-container{margin:var(--calcite-spacing-md);flex-flow:column;align-items:flex-start;display:flex}.esri-directions__edit-toolbar{border-width:var(--calcite-border-width-sm);border-radius:var(--calcite-corner-radius-round);border-style:solid;border-color:var(--calcite-color-foreground-3);flex-flow:row;display:flex;overflow:hidden}.esri-directions__solve-route{border-inline-start:solid var(--calcite-border-width-sm) var(--calcite-color-border-3)}.esri-directions__flex-column{flex-direction:column;display:flex}.esri-directions__flex-row{flex-direction:row;display:flex}.esri-directions__label-emphasize{font-weight:var(--calcite-font-weight-medium)}.esri-directions__label-no-bottom-margin{--calcite-label-margin-bottom: 0}.esri-directions__margin-inline-medium{margin-inline:var(--calcite-spacing-md)}.esri-directions__padding-medium{padding:var(--calcite-spacing-md)}.esri-directions__route-item{margin:var(--calcite-spacing-md);border:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-round);flex:1 0 auto;width:auto;margin-block-start:var(--calcite-spacing-sm);display:flex;overflow:hidden}.esri-directions__route-item-button{background-color:var(--calcite-color-foreground-1);padding:var(--calcite-spacing-sm) var(--calcite-spacing-md);text-align:unset;font-family:var(--calcite-font-family);border:none;flex:1 0 auto;align-items:center;margin:0;padding-inline-end:var(--calcite-spacing-xs);display:flex}.esri-directions__route-item-button:hover{background-color:var(--calcite-color-foreground-2);cursor:pointer}.esri-directions__route-item-button-content{flex-direction:column;flex:1 0 auto;display:flex}.esri-directions__route-item-label{line-height:var(--calcite-font-line-height-relative-snug);color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-md);font-weight:var(--calcite-font-weight-medium)}.esri-directions__route-item-description{line-height:var(--calcite-font-line-height-relative-snug);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-regular)}.esri-directions__optimize-section{--calcite-block-section-header-text-color: var(--calcite-color-text-1)}.esri-directions__optimize-switches{cursor:pointer;margin-inline-start:var(--calcite-spacing-md)}.esri-directions__panel-header-action{align-items:center;display:flex}.esri-directions__primary-flow-item{flex-flow:column;flex:auto;justify-content:flex-start;align-items:stretch;display:flex;overflow:visible}.esri-directions__primary-footer{border-top:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);padding:var(--calcite-spacing-md)}.esri-directions__primary-footer-centered{border-top:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);padding:var(--calcite-spacing-md);flex-flow:column wrap;align-items:center;display:flex}.esri-directions__primary-footer-loader{--calcite-loader-spacing: 0;margin-top:var(--calcite-spacing-md);margin-bottom:var(--calcite-spacing-md)}.esri-directions__save-error{flex-direction:column;align-items:center;display:flex}.esri-directions__save-error-icon{margin-top:calc(var(--calcite-spacing-lg) * 3);margin-bottom:var(--calcite-spacing-xxs);color:var(--calcite-color-status-danger)}.esri-directions__save-error-label{margin-inline:var(--calcite-spacing-sm)}.esri-directions__save-process-loader{padding-top:calc(var(--calcite-spacing-lg) * 3);padding-bottom:calc(var(--calcite-spacing-lg) * 2)}.esri-directions__selected-feature-container{margin-inline:var(--calcite-spacing-md);height:100px;overflow-y:auto}.esri-directions__separator{margin:var(--calcite-spacing-md) 0;background-color:var(--calcite-color-border-3);height:var(--calcite-border-width-sm)}.esri-directions__stop-item .esri-search{width:auto}.esri-directions__print-document{box-sizing:border-box;z-index:var(--calcite-z-index-overlay);background-color:var(--calcite-color-foreground-1);width:100%;height:100%;position:fixed;top:0;left:0;overflow-y:scroll}.esri-directions__print-body{padding-inline:var(--calcite-spacing-md);flex-direction:column;display:flex}.esri-directions__print-header{margin-bottom:var(--calcite-spacing-lg);border-block-end:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);align-items:center;display:flex}.esri-directions__print-header-label{padding-block:var(--calcite-spacing-sm);line-height:var(--calcite-font-line-height-relative-snug);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-bold);flex-direction:column;flex-grow:1;display:flex}.esri-directions__print-section{margin-top:var(--calcite-spacing-md);flex-direction:column;display:flex}.esri-directions__print-header-buttons{padding-inline-end:var(--calcite-spacing-md);display:flex}.esri-directions__print--avoid-page-break{break-inside:avoid}@media print{body.esri-directions__print-media{margin:0;padding:0}body.esri-directions__print-media>:not(div.esri-directions__print-document){display:none}}@media print{.esri-directions__print-document{height:auto;position:static;overflow:visible}.esri-directions__print--hide-on-print{display:none}}`, f = g(n), t = "map-components:arcgis-directions";
|
|
11
|
+
const m = h`.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-search{flex-flow:row;justify-content:center;align-items:center;width:240px;display:flex}.esri-search__dropdown{--calcite-color-border-1: var(--calcite-color-border-input);--calcite-dropdown-width: 240px;width:31px}.esri-search__autocomplete{flex:1}.esri-search__container{flex-flow:row;flex:1 0 100%;align-items:stretch;display:flex;position:relative}.esri-search__form{flex-flow:row;flex:1 0;align-items:stretch;margin:0;padding:0;display:flex}.esri-search-result-renderer calcite-block,.esri-search-result-renderer calcite-block[expanded]{margin-block:0;border:0;margin-block-start:var(--calcite-spacing-md)}.esri-search__submit-button{position:absolute;margin:-1px;border-width:0;padding:0;width:1px;height:1px;overflow:hidden;white-space:nowrap;clip:rect(0,0,0,0)}:host{display:flex}.esri-directions{display:flex;flex:1 1 auto;overflow:hidden}.esri-directions calcite-flow-item{--calcite-color-background: var(--calcite-color-foreground-1)}.esri-directions calcite-flow{z-index:1;position:relative}.esri-directions__accordion{--calcite-accordion-border-color: transparent}.esri-directions__stop-container{--calcite-list-border-color: transparent;--calcite-list-background-color-hover: var(--calcite-color-foreground-1);margin-block-start:var(--calcite-spacing-sm);display:flex}.esri-directions__stop-list{flex:auto}.esri-directions__action-container{margin-top:var(--calcite-spacing-sm);margin-inline:var(--calcite-spacing-sm);display:flex}.esri-directions__add-stop-button{margin-inline-end:var(--calcite-spacing-xs)}.esri-directions__departure-time{--calcite-label-margin-bottom: 0}.esri-directions__departure-time-options{margin-bottom:var(--calcite-spacing-sm);display:flex}.esri-directions__departure-time-options calcite-input-date-picker,.esri-directions__departure-time-options calcite-input-time-picker{flex:1}.esri-directions__directions-header{line-height:var(--calcite-font-line-height-relative-snug);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size--2);flex-direction:column;display:flex}.esri-directions__header-stops{gap:var(--calcite-spacing-base) var(--calcite-spacing-xxs);font-size:var(--calcite-font-size--1);grid-template-columns:auto 1fr;margin-block-end:var(--calcite-spacing-base);display:grid}.esri-directions__directions-header-stop-name{text-overflow:ellipsis;color:var(--calcite-color-text-1);font-weight:var(--calcite-font-weight-medium);overflow:hidden}.esri-directions__edit-footer{border-top:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);padding:var(--calcite-spacing-md)}.esri-directions__edit-information-container{border-bottom:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);background-color:var(--calcite-color-surface-1);padding:var(--calcite-spacing-md)}.esri-directions__edit-toolbar-container{margin:var(--calcite-spacing-md);flex-flow:column;align-items:flex-start;display:flex}.esri-directions__edit-toolbar{border-width:var(--calcite-border-width-sm);border-radius:var(--calcite-corner-radius-round);border-style:solid;border-color:var(--calcite-color-foreground-3);flex-flow:row;display:flex;overflow:hidden}.esri-directions__solve-route{border-inline-start:solid var(--calcite-border-width-sm) var(--calcite-color-border-3)}.esri-directions__flex-column{flex-direction:column;display:flex}.esri-directions__flex-row{flex-direction:row;display:flex}.esri-directions__label-emphasize{font-weight:var(--calcite-font-weight-medium)}.esri-directions__label-no-bottom-margin{--calcite-label-margin-bottom: 0}.esri-directions__margin-inline-medium{margin-inline:var(--calcite-spacing-md)}.esri-directions__padding-medium{padding:var(--calcite-spacing-md)}.esri-directions__route-item{margin:var(--calcite-spacing-md);border:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-round);flex:1 0 auto;width:auto;margin-block-start:var(--calcite-spacing-sm);display:flex;overflow:hidden}.esri-directions__route-item-button{background-color:var(--calcite-color-foreground-1);padding:var(--calcite-spacing-sm) var(--calcite-spacing-md);text-align:unset;font-family:var(--calcite-font-family);border:none;flex:1 0 auto;align-items:center;margin:0;padding-inline-end:var(--calcite-spacing-xs);display:flex}.esri-directions__route-item-button:hover{background-color:var(--calcite-color-foreground-2);cursor:pointer}.esri-directions__route-item-button-content{flex-direction:column;flex:1 0 auto;display:flex}.esri-directions__route-item-label{line-height:var(--calcite-font-line-height-relative-snug);color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-md);font-weight:var(--calcite-font-weight-medium)}.esri-directions__route-item-description{line-height:var(--calcite-font-line-height-relative-snug);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-regular)}.esri-directions__optimize-section{--calcite-block-section-header-text-color: var(--calcite-color-text-1)}.esri-directions__optimize-switches{cursor:pointer;margin-inline-start:var(--calcite-spacing-md)}.esri-directions__panel-header-action{align-items:center;display:flex}.esri-directions__primary-flow-item{flex-flow:column;flex:auto;justify-content:flex-start;align-items:stretch;display:flex;overflow:visible}.esri-directions__primary-footer{border-top:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);padding:var(--calcite-spacing-md)}.esri-directions__primary-footer-centered{border-top:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);padding:var(--calcite-spacing-md);flex-flow:column wrap;align-items:center;display:flex}.esri-directions__primary-footer-loader{--calcite-loader-spacing: 0;margin-top:var(--calcite-spacing-md);margin-bottom:var(--calcite-spacing-md)}.esri-directions__save-error{flex-direction:column;align-items:center;display:flex}.esri-directions__save-error-icon{margin-top:calc(var(--calcite-spacing-lg) * 3);margin-bottom:var(--calcite-spacing-xxs);color:var(--calcite-color-status-danger)}.esri-directions__save-error-label{margin-inline:var(--calcite-spacing-sm)}.esri-directions__save-process-loader{padding-top:calc(var(--calcite-spacing-lg) * 3);padding-bottom:calc(var(--calcite-spacing-lg) * 2)}.esri-directions__selected-feature-container{margin-inline:var(--calcite-spacing-md);height:100px;overflow-y:auto}.esri-directions__separator{margin:var(--calcite-spacing-md) 0;background-color:var(--calcite-color-border-3);height:var(--calcite-border-width-sm)}.esri-directions__stop-item .esri-search{width:auto}.esri-directions__print-document{box-sizing:border-box;z-index:var(--calcite-z-index-overlay);background-color:var(--calcite-color-foreground-1);width:100%;height:100%;position:fixed;top:0;left:0;overflow-y:scroll}.esri-directions__print-body{padding-inline:var(--calcite-spacing-md);flex-direction:column;display:flex}.esri-directions__print-header{margin-bottom:var(--calcite-spacing-lg);border-block-end:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);align-items:center;display:flex}.esri-directions__print-header-label{padding-block:var(--calcite-spacing-sm);line-height:var(--calcite-font-line-height-relative-snug);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-bold);flex-direction:column;flex-grow:1;display:flex}.esri-directions__print-section{margin-top:var(--calcite-spacing-md);flex-direction:column;display:flex}.esri-directions__print-header-buttons{padding-inline-end:var(--calcite-spacing-md);display:flex}.esri-directions__print--avoid-page-break{break-inside:avoid}@media print{body.esri-directions__print-media{margin:0;padding:0}body.esri-directions__print-media>:not(div.esri-directions__print-document){display:none}}@media print{.esri-directions__print-document{height:auto;position:static;overflow:visible}.esri-directions__print--hide-on-print{display:none}}`, f = g(c), t = "map-components:arcgis-directions";
|
|
12
12
|
class u extends l {
|
|
13
13
|
constructor() {
|
|
14
14
|
super(...arguments), this.widget = f(this), this.viewModel = this.widget.viewModel, this.view = this.widget.view, this.apiKey = this.widget.apiKey, this.autoDestroyDisabled = !1, this.goToOverride = this.widget.goToOverride, this.headingLevel = this.widget.headingLevel, this.hideLayerDetails = this.widget.visibleElements.layerDetails, this.hidePrintButton = this.widget.visibleElements.printButton, this.hideSaveAsButton = this.widget.visibleElements.saveAsButton, this.hideSaveButton = this.widget.visibleElements.saveButton, this.icon = this.widget.icon, this.label = this.widget.label, this.lastRoute = this.widget.lastRoute, this.layer = this.widget.layer, this.maxStops = this.widget.maxStops, this.searchProperties = this.widget.searchProperties, this.state = this.viewModel.state, this.unit = this.widget.unit, this.useDefaultRouteLayer = !1, this.arcgisPropertyChange = s()("lastRoute", "state"), this.arcgisReady = d();
|
|
@@ -79,7 +79,7 @@ class u extends l {
|
|
|
79
79
|
this.widget.viewModel.stopEditing();
|
|
80
80
|
}
|
|
81
81
|
_setDefaultLayer() {
|
|
82
|
-
this.useDefaultRouteLayer && !this.routeLayerItemId && (this.layer = new o(),
|
|
82
|
+
this.useDefaultRouteLayer && !this.routeLayerItemId && (this.layer = new o(), n(() => this.widget.view, () => this.widget.view?.map?.add(this.layer), { once: !0 }));
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
a("arcgis-directions", u);
|
|
@@ -5,7 +5,7 @@ import z from "@arcgis/core/rest/query/support/AttachmentInfo.js";
|
|
|
5
5
|
import S from "@arcgis/core/rest/support/AttachmentQuery.js";
|
|
6
6
|
import I from "@arcgis/core/core/Collection.js";
|
|
7
7
|
import b from "@arcgis/core/core/Error.js";
|
|
8
|
-
import { LitElement as _,
|
|
8
|
+
import { LitElement as _, nothing as p, safeClassMap as w, safeStyleMap as $ } from "@arcgis/lumina";
|
|
9
9
|
import { classes as A } from "@arcgis/toolkit/dom";
|
|
10
10
|
import { a as u } from "../../chunks/feature-utils.js";
|
|
11
11
|
import { watch as C } from "@arcgis/core/core/reactiveUtils.js";
|
|
@@ -492,7 +492,7 @@ class ue extends J {
|
|
|
492
492
|
if (!e.value)
|
|
493
493
|
return null;
|
|
494
494
|
const { _refreshIntervalInfo: t } = this, { value: i, refreshInterval: a, altText: r, title: o } = e, { sourceURL: n, linkURL: s } = i, v = ne(s ?? void 0) ? "_blank" : "_self", d = v === "_blank" ? "noreferrer" : "", l = a ? t : null, h = l ? l.sourceURL : n, u = x`<img alt=${(r || o) ?? y} src=${h ?? void 0 ?? y}>`;
|
|
495
|
-
return (s ? x`<a href=${s ?? y} rel=${d ?? y} target=${v} title=${o ?? y}>${u}</a>` : null) ?? u;
|
|
495
|
+
return (s ? x`<a href=${s ?? y} rel=${d ?? y} target=${v ?? y} title=${o ?? y}>${u}</a>` : null) ?? u;
|
|
496
496
|
}
|
|
497
497
|
_renderChartMediaInfo(e) {
|
|
498
498
|
const { activeMediaInfoIndex: t, formattedMediaInfoCount: i } = this;
|
|
@@ -435,15 +435,19 @@ export abstract class ArcgisFeatures extends LitElement {
|
|
|
435
435
|
/**
|
|
436
436
|
* Indicates whether the component is visible. This property is `true` when the component is querying for results, even if it is not open. Use this property to check if the component is visible.
|
|
437
437
|
*
|
|
438
|
+
* When setting the [content](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#content) and [heading](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#heading) directly, it is recommended to call [clear()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#clear) before setting `open` to `true` to remove any existing promises, features, heading, location, and content from the component. Otherwise, the old content will display.
|
|
439
|
+
*
|
|
438
440
|
* @default false
|
|
439
441
|
* @see [fetchFeatures()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#fetchFeatures)
|
|
440
442
|
* @see [active](https://developers.arcgis.com/javascript/latest/references/core/widgets/Features/FeaturesViewModel/#active)
|
|
443
|
+
* @see [clear()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#clear)
|
|
441
444
|
* @since 5.0
|
|
442
445
|
* @example
|
|
443
446
|
* ```js
|
|
444
447
|
* // Listen for clicks on the view and open the component at the clicked location with custom content.
|
|
445
448
|
* viewElement.addEventListener("arcgisViewClick", (event) => {
|
|
446
449
|
* const { mapPoint } = event.detail;
|
|
450
|
+
* component.clear();
|
|
447
451
|
* component.location = mapPoint;
|
|
448
452
|
* component.heading = "You clicked here";
|
|
449
453
|
* component.content = "Latitude: " + mapPoint.latitude.toFixed(3) + ", Longitude: " + mapPoint.longitude.toFixed(3);
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as N } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as E, html as
|
|
4
|
-
import { keyed as
|
|
3
|
+
import { css as E, html as n } from "lit";
|
|
4
|
+
import { keyed as _ } from "lit/directives/keyed.js";
|
|
5
5
|
import O from "@arcgis/core/widgets/Features/FeaturesViewModel.js";
|
|
6
6
|
import { u as B } from "../../chunks/useT9n.js";
|
|
7
7
|
import { classes as b } from "@arcgis/toolkit/dom";
|
|
8
8
|
import { usePropertyChange as L } from "@arcgis/lumina/controllers";
|
|
9
9
|
import { m as R } from "../../chunks/useViewModel.js";
|
|
10
|
-
import { LitElement as P, createEvent as C, renderElement as
|
|
11
|
-
import { substitute as u, formatNumber as
|
|
10
|
+
import { LitElement as P, createEvent as C, renderElement as S, nothing as d, safeClassMap as $ } from "@arcgis/lumina";
|
|
11
|
+
import { substitute as u, formatNumber as F } from "@arcgis/core/intl.js";
|
|
12
12
|
import { watch as h } from "@arcgis/core/core/reactiveUtils.js";
|
|
13
|
-
import { t as
|
|
13
|
+
import { t as H, z, b as U } from "../../chunks/action-utils.js";
|
|
14
14
|
import { stripHTML as A } from "@arcgis/core/applications/Components/stringUtils.js";
|
|
15
15
|
import x from "@arcgis/core/core/Collection.js";
|
|
16
16
|
import { a as Z } from "../../chunks/feature-utils.js";
|
|
17
17
|
import { renderingSanitizer as y } from "@arcgis/core/applications/Components/sanitizerUtils.js";
|
|
18
18
|
import { initializeProjection as j } from "@arcgis/core/applications/Components/featureUtils.js";
|
|
19
|
-
import { createRef as
|
|
19
|
+
import { createRef as M, ref as v } from "lit/directives/ref.js";
|
|
20
20
|
const G = E`:host{display:flex;overflow:hidden;flex:1 1 auto}.root{--calcite-color-background: var(--calcite-color-foreground-1);display:flex;overflow:hidden;flex:1 1 auto;flex-direction:column}.root img{image-orientation:from-image}.flow-item-collapsed{--calcite-flow-item-header-border-block-end: none}.container{display:flex;flex:1 1 auto;background-color:var(--calcite-color-foreground-1)}.container calcite-list{width:100%}.container:not(:empty){padding:var(--arcgis-internal-padding-md, var(--calcite-spacing-md))}.root .arcgis-feature,.root .arcgis-feature-relationship,.root .arcgis-feature-utility-network-associations{background-color:transparent}.heading{word-break:break-word;word-wrap:break-word}.header,.footer{display:flex;align-items:center;justify-content:flex-end;background-color:var(--calcite-color-foreground-1)}.footer{flex:1}.pagination-text{padding-inline:var(--calcite-spacing-sm);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-sm)}.loader{align-self:center;padding-inline:var(--calcite-spacing-lg)}.pagination-action-bar{flex:1}.pagination-menu-button{padding-inline:var(--calcite-spacing-xxs);border-inline-start:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.icon{display:inline-block;flex:0 0 var(--calcite-spacing-lg);width:var(--calcite-spacing-lg);height:var(--calcite-spacing-lg)}.action-image{flex:0 0 var(--calcite-spacing-lg);background-position:50% 50%;background-repeat:no-repeat;background-size:contain;width:var(--calcite-spacing-lg);height:var(--calcite-spacing-lg)}.header{border-block-end:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.content-feature{--calcite-flow-item-footer-padding: 0}.feature-menu-observer{position:relative;bottom:var(--calcite-spacing-xxl);z-index:2;text-align:center}.action-exit{transform:scaleX(-1)}`;
|
|
21
21
|
function K(c) {
|
|
22
22
|
switch (c?.type) {
|
|
@@ -33,7 +33,7 @@ function K(c) {
|
|
|
33
33
|
return null;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
const m =
|
|
36
|
+
const m = U.clone();
|
|
37
37
|
function W(c) {
|
|
38
38
|
return c?.declaredClass.startsWith("esri.layers.") ?? !1;
|
|
39
39
|
}
|
|
@@ -44,7 +44,7 @@ class q extends P {
|
|
|
44
44
|
e?.isIntersecting && this.viewModel.featurePage != null && this.viewModel.featurePage++;
|
|
45
45
|
}, this._featureMenuIntersectionObserver = new IntersectionObserver(this._featureMenuIntersectionObserverCallback, {
|
|
46
46
|
root: window.document
|
|
47
|
-
}), this._featureMenuIntersectionObserverNode = null, this._rootFlowItemNode =
|
|
47
|
+
}), this._featureMenuIntersectionObserverNode = null, this._rootFlowItemNode = M(), this._featureMenuViewportNode = M(), this._actionBarMenuNode = M(), this._flowContainerNode = M(), this.messages = B(), this._selectedFeatureComponent = M(), this._cancelOpenRelatedFeature = () => {
|
|
48
48
|
const { _openRelatedFeatureAbortController: e } = this;
|
|
49
49
|
e && e.abort(), this._openRelatedFeatureAbortController = null;
|
|
50
50
|
}, this._openRelatedFeatureAbortController = null, this.flowItems = new x(), this.viewModel = X(this), this.actions = this.viewModel.actions, this.active = this.viewModel.active, this.autoDestroyDisabled = !1, this.collapsed = !1, this.content = this.viewModel.content, this.defaultPopupTemplateEnabled = this.viewModel.defaultPopupTemplateEnabled, this.featureCount = this.viewModel.featureCount, this.featureMenuOpen = this.viewModel.featureMenuOpen, this.featureMenuTitle = this.viewModel.featureMenuTitle, this.featureNavigationTop = !1, this.features = this.viewModel.features, this.featuresPerPage = this.viewModel.featuresPerPage, this.featureViewModelAbilities = this.viewModel.featureViewModelAbilities, this.goToOverride = this.viewModel.goToOverride, this.headerActions = new x(), this.heading = this.viewModel.title, this.headingLevel = 2, this.hideActionBar = !1, this.hideCloseButton = !1, this.hideFeatureMenuHeading = !1, this.hideFeatureNavigation = !1, this.hideFeatureListLayerTitle = !1, this.hideHeading = !1, this.hideSpinner = !1, this.hideContent = !1, this.hideExpressionContent = !1, this.hideLastEditedInfo = !1, this.highlightDisabled = this.viewModel.highlightEnabled, this.includeDefaultActionsDisabled = this.viewModel.includeDefaultActions, this.initialDisplayMode = this.viewModel.initialDisplayMode, this.location = this.viewModel.location, this.map = this.viewModel.map, this.open = this.viewModel.visible, this.promises = this.viewModel.promises, this.responsiveActionsEnabled = !1, this.selectedFeature = this.viewModel.selectedFeature, this.selectedFeatureIndex = this.viewModel.selectedFeatureIndex, this.showCollapseButton = !1, this.spatialReference = this.viewModel.spatialReference, this.state = this.viewModel.state, this.timeZone = this.viewModel.timeZone, this.updateLocationEnabled = this.viewModel.updateLocationEnabled, this.view = this.viewModel.view, this.arcgisPropertyChange = L()("active", "collapsed", "featureCount", "featureMenuOpen", "features", "promises", "selectedDrillInFeature", "selectedFeature", "selectedFeatureComponent", "selectedFeatureIndex", "state", "open"), this.arcgisReady = C(), this.arcgisClose = C(), this.arcgisTriggerAction = C();
|
|
@@ -139,8 +139,8 @@ class q extends P {
|
|
|
139
139
|
const i = new AbortController(), { signal: s } = i;
|
|
140
140
|
if (this._fetchFeaturesController = i, !e && this.view && this.location && (await j(this.location.spatialReference, this.view.spatialReference, null, { signal: s }), e = this.view.toScreen(this.location) ?? void 0), !e)
|
|
141
141
|
return;
|
|
142
|
-
const
|
|
143
|
-
this.location =
|
|
142
|
+
const o = await this.viewModel.fetchFeatures(e, { signal: s, ...t });
|
|
143
|
+
this.location = o.location, this.promises = o.pendingFeatures;
|
|
144
144
|
}
|
|
145
145
|
async next() {
|
|
146
146
|
return this.viewModel.next();
|
|
@@ -153,7 +153,7 @@ class q extends P {
|
|
|
153
153
|
}
|
|
154
154
|
async triggerAction(e) {
|
|
155
155
|
if (!e.disabled)
|
|
156
|
-
return e?.type === "toggle" && (e.value = !e.value), await
|
|
156
|
+
return e?.type === "toggle" && (e.value = !e.value), await H(e, this.viewModel);
|
|
157
157
|
}
|
|
158
158
|
loaded() {
|
|
159
159
|
this.manager.onLifecycle(() => [
|
|
@@ -189,8 +189,8 @@ class q extends P {
|
|
|
189
189
|
const s = i?.graphic;
|
|
190
190
|
if (!s)
|
|
191
191
|
return;
|
|
192
|
-
const
|
|
193
|
-
t.set(a, [...
|
|
192
|
+
const o = Z(s), a = W(o) ? o : null, l = t.get(a) ?? [];
|
|
193
|
+
t.set(a, [...l, i]);
|
|
194
194
|
}), t;
|
|
195
195
|
}
|
|
196
196
|
_handleCollapseToggle() {
|
|
@@ -204,8 +204,8 @@ class q extends P {
|
|
|
204
204
|
if (s == null || i == null)
|
|
205
205
|
return;
|
|
206
206
|
this._removeFlowItems(), await this.viewModel.zoomTo({ target: s });
|
|
207
|
-
const
|
|
208
|
-
|
|
207
|
+
const o = K(s);
|
|
208
|
+
o != null && (this.location = o), this.features = [i], this.open = !0, await this.setFocus(), this._openRelatedFeatureAbortController === t && (this._openRelatedFeatureAbortController = null);
|
|
209
209
|
}
|
|
210
210
|
_handlePaginationMenuButton() {
|
|
211
211
|
this._updateFeatureMenu();
|
|
@@ -248,8 +248,8 @@ class q extends P {
|
|
|
248
248
|
this._unobserveFeatureMenuObserver(), e && this._featureMenuIntersectionObserver.observe(e), this._featureMenuIntersectionObserverNode = e;
|
|
249
249
|
}
|
|
250
250
|
_getActionTitle(e) {
|
|
251
|
-
const { messages: t, selectedFeature: i } = this, { id: s } = e,
|
|
252
|
-
return
|
|
251
|
+
const { messages: t, selectedFeature: i } = this, { id: s } = e, o = i?.attributes, a = e.title ?? "", l = s === "zoom-to-feature" ? u(a, { messages: t }) : s === "remove-selected-feature" ? u(a, { messages: t }) : s === "zoom-to-clustered-features" ? u(a, { messages: t }) : s === "browse-clustered-features" ? u(a, { messages: t }) : e.title;
|
|
252
|
+
return l && o ? u(l, o) : l ?? "";
|
|
253
253
|
}
|
|
254
254
|
_onMainKeydown(e) {
|
|
255
255
|
const { key: t } = e;
|
|
@@ -298,10 +298,10 @@ class q extends P {
|
|
|
298
298
|
}
|
|
299
299
|
async _createSpinner() {
|
|
300
300
|
const e = this.referenceElement;
|
|
301
|
-
e && (await this._destroySpinner(e), this._spinnerEl =
|
|
301
|
+
e && (await this._destroySpinner(e), this._spinnerEl = S(n`<arcgis-spinner auto-destroy-disabled .label=${this.messages.loading ?? ""} .trackLocation=${!this.hideSpinner && this.viewModel?.waitingForResult} .location=${this.viewModel?.location ?? void 0} .view=${this.viewModel?.view ?? void 0}></arcgis-spinner>`), e.manager?.component?.extraContent?.add(this._spinnerEl));
|
|
302
302
|
}
|
|
303
303
|
render() {
|
|
304
|
-
return
|
|
304
|
+
return n`<div class="root" @keydown=${this._onMainKeydown}>${this._renderHeader()}${this._renderContentContainer()}</div>`;
|
|
305
305
|
}
|
|
306
306
|
_renderFeatureNavigation() {
|
|
307
307
|
return [
|
|
@@ -310,92 +310,93 @@ class q extends P {
|
|
|
310
310
|
];
|
|
311
311
|
}
|
|
312
312
|
_renderHeader() {
|
|
313
|
-
return this.featureNavigationTop && this._featureNavigationVisible ?
|
|
313
|
+
return this.featureNavigationTop && this._featureNavigationVisible ? n`<div class="header">${this._renderFeatureNavigation()}</div>` : null;
|
|
314
314
|
}
|
|
315
315
|
_renderFooter() {
|
|
316
|
-
return !this.featureNavigationTop && this._featureNavigationVisible ?
|
|
316
|
+
return !this.featureNavigationTop && this._featureNavigationVisible ? n`<div class="footer" slot=footer>${this._renderFeatureNavigation()}</div>` : null;
|
|
317
317
|
}
|
|
318
318
|
_renderFeaturePaginationText() {
|
|
319
319
|
const { messages: e, viewModel: t } = this, { featureCount: i, selectedFeatureIndex: s } = t;
|
|
320
|
-
return
|
|
321
|
-
index:
|
|
322
|
-
total:
|
|
320
|
+
return n`<div class="pagination-text">${u(e.pageText ?? "", {
|
|
321
|
+
index: F(s + 1),
|
|
322
|
+
total: F(i)
|
|
323
323
|
})}</div>`;
|
|
324
324
|
}
|
|
325
325
|
_renderFeatureMenuButton() {
|
|
326
|
-
const { messages: e, viewModel: t } = this, { featureCount: i, selectedFeatureIndex: s, pendingPromisesCount:
|
|
327
|
-
return
|
|
328
|
-
index:
|
|
329
|
-
total:
|
|
326
|
+
const { messages: e, viewModel: t } = this, { featureCount: i, selectedFeatureIndex: s, pendingPromisesCount: o } = t;
|
|
327
|
+
return n`<calcite-action class="pagination-menu-button" icon=list .label=${e.selectFeature} .loading=${o > 0} @click=${this._handlePaginationMenuButton} .text=${u(e.pageText ?? "", {
|
|
328
|
+
index: F(s + 1),
|
|
329
|
+
total: F(i)
|
|
330
330
|
})} text-enabled title=${e.selectFeature ?? d}></calcite-action>`;
|
|
331
331
|
}
|
|
332
332
|
_renderPagination() {
|
|
333
333
|
const { previous: e, next: t } = this.messages;
|
|
334
|
-
return
|
|
334
|
+
return n`<calcite-action-bar class="pagination-action-bar" expand-disabled layout=horizontal overflow-actions-disabled scale=s><calcite-action-group scale=s><calcite-action class="pagination-previous" icon=chevron-left icon-flip-rtl .label=${e ?? ""} @click=${this._previousFeature} .text=${e ?? ""} title=${e ?? "" ?? d}></calcite-action><calcite-action icon=chevron-right icon-flip-rtl .label=${t ?? ""} @click=${this._nextFeature} .text=${t ?? ""} title=${t ?? "" ?? d}></calcite-action></calcite-action-group></calcite-action-bar>`;
|
|
335
335
|
}
|
|
336
336
|
_renderFeatureMenuItem(e) {
|
|
337
|
-
const { initialDisplayMode: t } = this, { selectedFeatureViewModel: i, featureViewModels: s } = this.viewModel,
|
|
338
|
-
return
|
|
337
|
+
const { initialDisplayMode: t } = this, { selectedFeatureViewModel: i, featureViewModels: s } = this.viewModel, o = e === i, a = s.indexOf(e);
|
|
338
|
+
return n`<calcite-list-item @blur=${this._removeActiveFeature} @focus=${() => this._setActiveFeature(a)} @mouseleave=${this._removeActiveFeature} @mouseover=${() => this._setActiveFeature(a)} .selected=${o} @calciteListItemSelect=${() => this._selectFeature(a)}><span .innerHTML=${(y.sanitize(e.title) || this.messages.untitled) ?? ""} slot=content></span>${t === "list" ? n`<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon>` : null}</calcite-list-item>`;
|
|
339
339
|
}
|
|
340
340
|
_renderFeatureMenu() {
|
|
341
341
|
const { messages: e, viewModel: t } = this, i = this._groupResultsByLayer(), s = this.initialDisplayMode === "list" ? "none" : "single";
|
|
342
|
-
return t.featureViewModels.length ?
|
|
343
|
-
const a = i.get(
|
|
344
|
-
return !this.hideFeatureListLayerTitle &&
|
|
342
|
+
return t.featureViewModels.length ? n`<calcite-list display-mode=flat .label=${e?.featuresList ?? ""} selection-appearance=icon .selectionMode=${s}>${Array.from(i.keys(), (o) => {
|
|
343
|
+
const a = i.get(o)?.map((r) => this._renderFeatureMenuItem(r)), l = o ? o.title ?? this.messages.untitled : null;
|
|
344
|
+
return !this.hideFeatureListLayerTitle && l !== null ? _(o ?? "map-graphics", n`<calcite-list-item-group .heading=${l}>${a}</calcite-list-item-group>`) : a;
|
|
345
345
|
})}</calcite-list>` : null;
|
|
346
346
|
}
|
|
347
347
|
_renderHeaderAction(e) {
|
|
348
348
|
const t = e.title || "";
|
|
349
|
-
return e.visible ?
|
|
349
|
+
return e.visible ? n`<calcite-action .active=${e.type === "toggle" ? e.value : !1} .disabled=${e.disabled} .icon=${e.icon ?? void 0} .indicator=${e.active} .loading=${e.active} @click=${() => this._triggerAction(e)} slot=header-actions-end .text=${t} title=${t ?? d}></calcite-action>` : null;
|
|
350
350
|
}
|
|
351
351
|
_renderHeaderActions() {
|
|
352
352
|
return this.headerActions.map((e) => this._renderHeaderAction(e)).toArray();
|
|
353
353
|
}
|
|
354
354
|
_renderContentFeature() {
|
|
355
|
-
const { headingLevel: e, hideCloseButton: t, _isCollapsed: i, _collapseEnabled: s, featureNavigationTop:
|
|
356
|
-
if (
|
|
355
|
+
const { headingLevel: e, hideCloseButton: t, _isCollapsed: i, _collapseEnabled: s, featureNavigationTop: o, flowItems: a, initialDisplayMode: l, selectedFeature: r, featureMenuOpen: p } = this, { active: f } = this.viewModel, g = this._getHeading();
|
|
356
|
+
if (l === "list" && !r)
|
|
357
357
|
return null;
|
|
358
|
-
const
|
|
359
|
-
return
|
|
358
|
+
const w = a.length === 0 && (l === "list" ? !!r : !p);
|
|
359
|
+
return n`<calcite-flow-item class=${$(b({
|
|
360
360
|
"content-feature": !0,
|
|
361
361
|
"flow-item-collapsed": i
|
|
362
|
-
}))} .closable=${!t} .closed=${!f} .collapsed=${i} .collapseDirection=${
|
|
362
|
+
}))} .closable=${!t} .closed=${!f} .collapsed=${i} .collapseDirection=${o ? "down" : "up"} .collapsible=${s} .headingLevel=${e} .selected=${w} @calciteFlowItemBack=${this._handleFeatureBack} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} .heading=${A(g)} ${v(this._rootFlowItemNode)}>${this._renderHeaderActions()}${this._renderActionBar()}<div class=${$(b("container", "content-container"))}>${this._renderContent()}</div>${this._renderFooter()}</calcite-flow-item>`;
|
|
363
363
|
}
|
|
364
364
|
_renderFeatureMenuContainer() {
|
|
365
|
-
const { viewModel: e, hideCloseButton: t, featureMenuTitle: i, messages: s, initialDisplayMode:
|
|
366
|
-
if (
|
|
365
|
+
const { viewModel: e, hideCloseButton: t, featureMenuTitle: i, messages: s, initialDisplayMode: o, featureMenuOpen: a, selectedFeature: l, _collapseEnabled: r, _isCollapsed: p, featureNavigationTop: f, headingLevel: g } = this, { active: w, featureViewModels: T, pendingPromisesCount: I } = e, k = i ?? s.selectFeature;
|
|
366
|
+
if (o === "feature" && !a)
|
|
367
367
|
return null;
|
|
368
|
-
const
|
|
369
|
-
return
|
|
368
|
+
const V = o === "list" ? !l : a;
|
|
369
|
+
return n`<calcite-flow-item class=${$(b({
|
|
370
370
|
"flow-item-collapsed": p
|
|
371
|
-
}))} .closable=${
|
|
372
|
-
total:
|
|
373
|
-
})} .heading=${this.hideFeatureMenuHeading ? void 0 : k} .headingLevel=${g} .loading=${e.waitingForContents} .selected=${
|
|
374
|
-
|
|
375
|
-
}} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} ${v(this._featureMenuViewportNode)}>${
|
|
371
|
+
}))} .closable=${o === "list" && !t} .closed=${!w} .collapsed=${o === "list" && p} .collapseDirection=${f ? "down" : "up"} .collapsible=${o === "list" && r} .description=${this.hideFeatureMenuHeading ? void 0 : u(s.total ?? "", {
|
|
372
|
+
total: T.length
|
|
373
|
+
})} .heading=${this.hideFeatureMenuHeading ? void 0 : k} .headingLevel=${g} .loading=${e.waitingForContents} .selected=${V} @calciteFlowItemBack=${(D) => {
|
|
374
|
+
D.preventDefault(), this._handleFeatureMenuBack();
|
|
375
|
+
}} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} ${v(this._featureMenuViewportNode)}>${o === "list" ? this._renderHeaderActions() : null}${I > 0 ? n`<calcite-loader class="loader" inline .label=${s.loading ?? ""} slot=header-actions-end></calcite-loader>` : null}<div class="container">${this._renderFeatureMenu()}</div><div class="feature-menu-observer" ${v(this._featureMenuIntersectionObserverCreated)}></div>${o === "feature" ? n`<calcite-button appearance=transparent @click=${this._handleFeatureMenuBack} slot=footer-start width=full>${s.back}</calcite-button>` : null}</calcite-flow-item>`;
|
|
376
376
|
}
|
|
377
377
|
_renderFlowItem(e, t) {
|
|
378
|
-
const { messages: i, hideCloseButton: s, active:
|
|
379
|
-
return
|
|
380
|
-
|
|
381
|
-
}} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose}><calcite-action class="action-exit" icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${
|
|
378
|
+
const { messages: i, hideCloseButton: s, active: o } = this, a = "graphic" in e && "isFeatureFromTable" in e && !e.isFeatureFromTable, l = e.flowType === "feature-association", r = i.returnToInitialFeature ?? "", p = i?.selectFeature, f = this._getActionTitle(m), g = l && a;
|
|
379
|
+
return n`<calcite-flow-item .closable=${!s} .closed=${!o} .description=${A(this._getDrillInFlowItemDescription(e) ?? "")} .heading=${this.hideHeading ? void 0 : A(e.heading ?? "")} .selected=${t} @calciteFlowItemBack=${(w) => {
|
|
380
|
+
w.preventDefault(), this._handleDrillInBackClick();
|
|
381
|
+
}} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose}><calcite-action class="action-exit" icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${r ?? ""} title=${r ?? "" ?? d}></calcite-action>${a ? n`<calcite-action icon=zoom-to-object @click=${() => this._openRelatedFeature(e)} slot=header-actions-end .text=${p ?? ""} title=${p ?? d}></calcite-action>` : null}${g ? n`<calcite-action-bar expand-disabled expanded scale=s slot=action-bar><calcite-action-group overlay-positioning=fixed scale=s><calcite-action .disabled=${m.disabled} .icon=${m.icon ?? void 0} .loading=${m.active} scale=s text-enabled .text=${f} title=${f ?? d} @click=${() => z(this.viewModel, e)}></calcite-action></calcite-action-group></calcite-action-bar>` : null}<div class="container">${e}</div></calcite-flow-item>`;
|
|
382
382
|
}
|
|
383
383
|
_renderContentContainer() {
|
|
384
|
-
const e = this.flowItems?.toArray(), t = e?.map((s,
|
|
385
|
-
return
|
|
384
|
+
const e = this.flowItems?.toArray(), t = e?.map((s, o) => this._renderFlowItem(s, this.initialDisplayMode === "list" || !this.featureMenuOpen && o === e.length - 1)), i = this.initialDisplayMode === "list" ? [this._renderFeatureMenuContainer(), this._renderContentFeature(), t] : [this._renderContentFeature(), t, this._renderFeatureMenuContainer()];
|
|
385
|
+
return n`<calcite-flow ${v(this._flowContainerNode)}>${i}</calcite-flow>`;
|
|
386
386
|
}
|
|
387
387
|
_renderActionBar() {
|
|
388
|
-
|
|
388
|
+
const t = this.viewModel.selectedFeatureViewModel?.isFeatureFromTable && !this.location ? this.viewModel.allActions.filter((i) => i.id !== m.id) : this.viewModel.allActions;
|
|
389
|
+
return !this._isCollapsed && !this.hideActionBar && t.length ? n`<calcite-action-bar expand-disabled .expanded=${!this._hideActionText} scale=s slot=action-bar><calcite-action-group overlay-positioning=fixed scale=s ${v(this._actionBarMenuNode)}>${this._renderActions()}</calcite-action-group></calcite-action-bar>` : null;
|
|
389
390
|
}
|
|
390
391
|
_renderActions() {
|
|
391
392
|
return this.viewModel.allActions.toArray().map((e) => {
|
|
392
393
|
const t = this._getActionTitle(e);
|
|
393
|
-
return
|
|
394
|
+
return n`<calcite-action .active=${e.type === "toggle" ? e.value : !1} .disabled=${e.disabled} .icon=${e.icon ?? void 0} .loading=${e.active} scale=s .textEnabled=${!this._hideActionText} .text=${t ?? ""} title=${t ?? d} .hidden=${!e.visible} @click=${() => this._triggerAction(e)}></calcite-action>`;
|
|
394
395
|
});
|
|
395
396
|
}
|
|
396
397
|
_renderContent() {
|
|
397
398
|
const { content: e, selectedFeatureViewModel: t } = this.viewModel;
|
|
398
|
-
return t ?
|
|
399
|
+
return t ? _(t, n`<arcgis-feature .autoDestroyDisabled=${this.autoDestroyDisabled} .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .flowItems=${this.flowItems} .graphic=${t.graphic} .headingLevel=${this.headingLevel + 1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .location=${this.location} .map=${this.map} .referenceElement=${this.referenceElement} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} ${v(this._selectedFeatureComponent)}></arcgis-feature>`) : typeof e == "string" ? _(e, n`<div .innerHTML=${y.sanitize(e) ?? ""}></div>`) : e ?? null;
|
|
399
400
|
}
|
|
400
401
|
}
|
|
401
402
|
N("arcgis-features", q);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { c as s } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as r, html as a } from "lit";
|
|
4
4
|
import { watch as n } from "@arcgis/core/core/reactiveUtils.js";
|
|
5
|
-
import { LitElement as c, createEvent as o,
|
|
5
|
+
import { LitElement as c, createEvent as o, nothing as l, safeClassMap as h } from "@arcgis/lumina";
|
|
6
6
|
import { usePropertyChange as g } from "@arcgis/lumina/controllers";
|
|
7
7
|
import { classes as m } from "@arcgis/toolkit/dom";
|
|
8
8
|
import { u as v } from "../../chunks/useT9n.js";
|
|
@@ -66,7 +66,7 @@ class f extends c {
|
|
|
66
66
|
}
|
|
67
67
|
render() {
|
|
68
68
|
const { messages: t, icon: e } = this, i = this.state === "going-home";
|
|
69
|
-
return a`<div class=${
|
|
69
|
+
return a`<div class=${h(m("root", u.arcgisButton))}><calcite-button .disabled=${this.state === "disabled"} .iconStart=${i ? void 0 : e ?? void 0} kind=neutral .label=${t.componentLabel} @click=${this._go} .scale=${this.visualScale} .loading=${i} title=${(i ? t.cancel : t.title) ?? l}></calcite-button></div>`;
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
s("arcgis-home", f);
|
|
@@ -4,7 +4,7 @@ import { watch as n } from "@arcgis/core/core/reactiveUtils.js";
|
|
|
4
4
|
import _ from "@arcgis/core/views/LinkChartView.js";
|
|
5
5
|
import b from "@arcgis/core/WebLinkChart.js";
|
|
6
6
|
import { LitElement as V, createEvent as c, safeClassMap as p } from "@arcgis/lumina";
|
|
7
|
-
import { reCreateAccessor as A,
|
|
7
|
+
import { reCreateAccessor as A, reEmitEvent as e, makeAccessorController as f } from "@arcgis/lumina/controllers/accessor";
|
|
8
8
|
import { createRef as v, ref as m } from "lit/directives/ref.js";
|
|
9
9
|
import { s as I } from "../../chunks/esri-main.js";
|
|
10
10
|
import { s as E, C as u } from "../../chunks/slots.js";
|
|
@@ -26,9 +26,9 @@ import oe from "@arcgis/core/portal/Portal.js";
|
|
|
26
26
|
import { project as ie } from "@arcgis/core/rest/geometryService.js";
|
|
27
27
|
import re from "@arcgis/core/rest/support/ProjectParameters.js";
|
|
28
28
|
import { log as O } from "@arcgis/toolkit/log";
|
|
29
|
-
import { g as
|
|
29
|
+
import { g as P } from "../../chunks/globalCss.js";
|
|
30
30
|
const ae = z`.arcgis-button{--calcite-icon-color: var(--calcite-color-text-3);--calcite-button-background-color: var(--calcite-color-foreground-1);color:var(--calcite-color-text-3);line-height:var(--calcite-font-line-height-relative-tight);display:flex;flex-flow:column;cursor:pointer;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);:hover{--calcite-icon-color: var(--calcite-color-text-1);--calcite-button-background-color: var(--calcite-color-transparent-hover)}}:host{width:fit-content;height:fit-content}`;
|
|
31
|
-
let
|
|
31
|
+
let E = !1;
|
|
32
32
|
const se = {
|
|
33
33
|
maximumAge: 0,
|
|
34
34
|
timeout: 15e3,
|
|
@@ -40,7 +40,7 @@ function ne(t) {
|
|
|
40
40
|
}
|
|
41
41
|
function ce(t) {
|
|
42
42
|
const e = window.isSecureContext;
|
|
43
|
-
return e ||
|
|
43
|
+
return e || E || (E = !0, O("warn", t, "Geolocation requires a secure origin.")), e;
|
|
44
44
|
}
|
|
45
45
|
function le(t) {
|
|
46
46
|
return ne(t) && ce(t);
|
|
@@ -404,18 +404,19 @@ p([
|
|
|
404
404
|
c = p([
|
|
405
405
|
M("map-components.geolocation.GeolocationPositioning")
|
|
406
406
|
], c);
|
|
407
|
-
|
|
408
|
-
|
|
407
|
+
const Pe = c;
|
|
408
|
+
var Ee = Object.defineProperty, Se = Object.getOwnPropertyDescriptor, d = (t, e, o, r) => {
|
|
409
|
+
for (var i = r > 1 ? void 0 : r ? Se(e, o) : e, a = t.length - 1, s; a >= 0; a--)
|
|
409
410
|
(s = t[a]) && (i = (r ? s(e, o, i) : s(i)) || i);
|
|
410
411
|
return r && i && Ee(e, o, i), i;
|
|
411
412
|
};
|
|
412
|
-
const
|
|
413
|
+
const Me = new X({
|
|
413
414
|
icon: "trash",
|
|
414
415
|
id: "remove-selected-feature",
|
|
415
416
|
title: "{messages.remove}",
|
|
416
417
|
className: "esri-icon-trash"
|
|
417
418
|
});
|
|
418
|
-
function
|
|
419
|
+
function Ce(t) {
|
|
419
420
|
return new W({
|
|
420
421
|
title: t.currentLocation,
|
|
421
422
|
fieldInfos: [
|
|
@@ -483,7 +484,7 @@ function Me(t) {
|
|
|
483
484
|
}
|
|
484
485
|
}
|
|
485
486
|
],
|
|
486
|
-
actions: [
|
|
487
|
+
actions: [Me.clone()],
|
|
487
488
|
content: [
|
|
488
489
|
{
|
|
489
490
|
type: "fields"
|
|
@@ -491,7 +492,7 @@ function Me(t) {
|
|
|
491
492
|
]
|
|
492
493
|
});
|
|
493
494
|
}
|
|
494
|
-
let l = class extends
|
|
495
|
+
let l = class extends Pe {
|
|
495
496
|
//#region Lifecycle
|
|
496
497
|
constructor(t) {
|
|
497
498
|
super(t), this.popupEnabled = !0, this.locate = this.locate.bind(this);
|
|
@@ -541,7 +542,7 @@ let l = class extends c {
|
|
|
541
542
|
_updatePopupTemplate(t) {
|
|
542
543
|
if (!this.popupEnabled)
|
|
543
544
|
return;
|
|
544
|
-
const e =
|
|
545
|
+
const e = Ce(this.messages), o = t !== this.graphic;
|
|
545
546
|
this.destroyed || o || (t.popupTemplate = e);
|
|
546
547
|
}
|
|
547
548
|
//#endregion
|
|
@@ -567,10 +568,10 @@ d([
|
|
|
567
568
|
l = d([
|
|
568
569
|
M("map-components.locate.LocateViewModel")
|
|
569
570
|
], l);
|
|
570
|
-
const S = "gps-off",
|
|
571
|
-
class
|
|
571
|
+
const S = "gps-off", Te = B(l);
|
|
572
|
+
class Oe extends k {
|
|
572
573
|
constructor() {
|
|
573
|
-
super(), this.locateButtonElement = H(), this.messages = V(), this.viewModel =
|
|
574
|
+
super(), this.locateButtonElement = H(), this.messages = V(), this.viewModel = Te(this), this.hideErrorTooltip = () => {
|
|
574
575
|
this.isErrorTooltipOpen = !1;
|
|
575
576
|
}, this.isErrorTooltipOpen = !1, this.view = this.viewModel.view, this.autoDestroyDisabled = !1, this.geolocationOptions = this.viewModel.geolocationOptions, this.goToLocationDisabled = this.viewModel.goToLocationEnabled, this.goToOverride = this.viewModel.goToOverride, this.graphic = this.viewModel.graphic, this.icon = S, this.popupDisabled = this.viewModel.popupEnabled, this.scale = this.viewModel.scale, this.state = this.viewModel.state, this.visualScale = "m", this.arcgisError = f(), this.arcgisPropertyChange = F()("state"), this.arcgisReady = f(), this.arcgisSuccess = f(), this.listenOn(document, "click", this.hideErrorTooltip);
|
|
576
577
|
}
|
|
@@ -612,10 +613,10 @@ class Te extends k {
|
|
|
612
613
|
}
|
|
613
614
|
render() {
|
|
614
615
|
const { viewModel: e, icon: o } = this, { state: r } = e, i = r === "locating", a = i ? this.messages.cancel : this.messages.title, s = r === "feature-unsupported", m = J === void 0 ? S : void 0, h = this._localizeError(this.viewModel?.error);
|
|
615
|
-
return g`<div class=${w(j("root",
|
|
616
|
+
return g`<div class=${w(j("root", P.arcgisButton))}>${!s && g`<calcite-button class=${w(P.widgetButton)} .disabled=${r === "disabled"} .loading=${i} .iconStart=${i ? void 0 : o ?? m} kind=neutral .label=${a} @click=${this._locate} .scale=${this.visualScale} title=${a ?? Q} ${K(this.locateButtonElement)}></calcite-button>` || ""}${h ? g`<calcite-tooltip .open=${this.isErrorTooltipOpen} overlay-positioning=fixed .referenceElement=${this.locateButtonElement.value}>${h}</calcite-tooltip>` : null}</div>`;
|
|
616
617
|
}
|
|
617
618
|
}
|
|
618
|
-
G("arcgis-locate",
|
|
619
|
+
G("arcgis-locate", Oe);
|
|
619
620
|
export {
|
|
620
|
-
|
|
621
|
+
Oe as ArcgisLocate
|
|
621
622
|
};
|
|
@@ -5,7 +5,7 @@ import { watch as s } from "@arcgis/core/core/reactiveUtils.js";
|
|
|
5
5
|
import l from "@arcgis/core/views/MapView.js";
|
|
6
6
|
import v from "@arcgis/core/WebMap.js";
|
|
7
7
|
import { LitElement as m, createEvent as r, safeClassMap as n } from "@arcgis/lumina";
|
|
8
|
-
import {
|
|
8
|
+
import { reEmitEvent as e, reCreateAccessor as u, makeAccessorController as p } from "@arcgis/lumina/controllers/accessor";
|
|
9
9
|
import { createRef as o, ref as h } from "lit/directives/ref.js";
|
|
10
10
|
import { s as g } from "../../chunks/esri-main.js";
|
|
11
11
|
import { s as d, C as w } from "../../chunks/slots.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as d } from "../../chunks/runtime.js";
|
|
3
3
|
import { when as c } from "@arcgis/core/core/reactiveUtils.js";
|
|
4
|
-
import { LitElement as g, createEvent as h,
|
|
4
|
+
import { LitElement as g, createEvent as h, nothing as r, safeClassMap as p } from "@arcgis/lumina";
|
|
5
5
|
import { usePropertyChange as u } from "@arcgis/lumina/controllers";
|
|
6
6
|
import { css as v, html as m } from "lit";
|
|
7
7
|
import { u as f } from "../../chunks/useT9n.js";
|
|
@@ -51,6 +51,7 @@ import type { MapViewOrSceneView } from "@arcgis/core/views/MapViewOrSceneView.j
|
|
|
51
51
|
* // Listen for clicks on the view and open the popup at the clicked location with custom content.
|
|
52
52
|
* viewElement.addEventListener("arcgisViewClick", (event) => {
|
|
53
53
|
* const { mapPoint } = event.detail;
|
|
54
|
+
* popupComponent.clear();
|
|
54
55
|
* popupComponent.location = mapPoint;
|
|
55
56
|
* popupComponent.heading = "You clicked here";
|
|
56
57
|
* popupComponent.content = "Latitude: " + mapPoint.latitude.toFixed(3) + ", Longitude: " + mapPoint.longitude.toFixed(3);
|
|
@@ -467,15 +468,19 @@ export abstract class ArcgisPopup extends LitElement {
|
|
|
467
468
|
/**
|
|
468
469
|
* Indicates whether the component is visible. This property is `true` when the component is querying for results, even if it is not open. Use this property to check if the component is visible.
|
|
469
470
|
*
|
|
471
|
+
* When setting the [content](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/#content) and [heading](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/#heading) directly, it is recommended to call [clear()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/#clear) before setting `open` to `true` to remove any existing promises, features, heading, location, and content from the component. Otherwise, the old content will display.
|
|
472
|
+
*
|
|
470
473
|
* @default false
|
|
471
474
|
* @see [fetchFeatures()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/#fetchFeatures)
|
|
472
475
|
* @see [active](https://developers.arcgis.com/javascript/latest/references/core/widgets/Features/FeaturesViewModel/#active)
|
|
476
|
+
* @see [clear()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/#clear)
|
|
473
477
|
* @since 5.0
|
|
474
478
|
* @example
|
|
475
479
|
* ```js
|
|
476
480
|
* // Listen for clicks on the view and open the component at the clicked location with custom content.
|
|
477
481
|
* viewElement.addEventListener("arcgisViewClick", (event) => {
|
|
478
482
|
* const { mapPoint } = event.detail;
|
|
483
|
+
* component.clear();
|
|
479
484
|
* component.location = mapPoint;
|
|
480
485
|
* component.heading = "You clicked here";
|
|
481
486
|
* component.content = "Latitude: " + mapPoint.latitude.toFixed(3) + ", Longitude: " + mapPoint.longitude.toFixed(3);
|