@arcgis/map-components 4.34.0-next.114 → 4.34.0-next.116
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/{PWGAIHMA.js → 2533TGMU.js} +2 -2
- package/dist/cdn/{I5UQJ55M.js → 2DJJ7YN4.js} +2 -2
- package/dist/cdn/{SU245ZZP.js → 2DTNGTIE.js} +2 -2
- package/dist/cdn/{LNX55VJO.js → 2K3WKO6A.js} +2 -2
- package/dist/cdn/{Q6ABPP2K.js → 34VQ7MLE.js} +2 -2
- package/dist/cdn/{K47SF35W.js → 3I6HI7Q7.js} +2 -2
- package/dist/cdn/{VRJIHKQB.js → 3IMHPARK.js} +1 -1
- package/dist/cdn/{HYBGKN2N.js → 3KXQL6RX.js} +2 -2
- package/dist/cdn/{DZ4HXMWM.js → 3PMIHDEI.js} +2 -2
- package/dist/cdn/{X6HXJNRI.js → 3RZHUFF6.js} +1 -1
- package/dist/cdn/{6CQYLGBZ.js → 3TLGG5LP.js} +2 -2
- package/dist/cdn/{2NI7MEWY.js → 45BEGTT2.js} +2 -2
- package/dist/cdn/{57QJBZKH.js → 45BOZR4P.js} +2 -2
- package/dist/cdn/{MG4ROEYY.js → 4DGLGWBF.js} +2 -2
- package/dist/cdn/{SBAFB7AG.js → 4JWCRGM4.js} +2 -2
- package/dist/cdn/{HZZYW7YD.js → 4LA3FVXW.js} +2 -2
- package/dist/cdn/4XIE5HRE.js +4 -0
- package/dist/cdn/{KSGRUQYK.js → 5D427N3Y.js} +2 -2
- package/dist/cdn/{CUUX445B.js → 5LIIRMXT.js} +2 -2
- package/dist/cdn/{T5ZMQKQK.js → 5M7KFAZU.js} +2 -2
- package/dist/cdn/5UGYQJHR.js +4 -0
- package/dist/cdn/{ZCJXLCTZ.js → 5VQK6GJS.js} +2 -2
- package/dist/cdn/{YW7BYLUU.js → 5XWGZLNH.js} +2 -2
- package/dist/cdn/{ECGFTN4C.js → 6AKLRLOC.js} +2 -2
- package/dist/cdn/{O7M5POMN.js → 6C4D7NB6.js} +2 -2
- package/dist/cdn/{SOFHEKYZ.js → 6DOVSHF6.js} +2 -2
- package/dist/cdn/{DYZHUMFE.js → 6EIFLEZ3.js} +2 -2
- package/dist/cdn/{APX5NP6D.js → 6FVTHDN6.js} +2 -2
- package/dist/cdn/{VKGXWFF6.js → 6GAZHUZR.js} +2 -2
- package/dist/cdn/{EG7TQF2G.js → 6J5J43XH.js} +2 -2
- package/dist/cdn/{3RDHOHE5.js → 6RTZ7R7K.js} +2 -2
- package/dist/cdn/{YA5IBX2V.js → 6SVM4VXM.js} +2 -2
- package/dist/cdn/{4QB3MFYF.js → 6VETYYAS.js} +2 -2
- package/dist/cdn/{6M2FCYAX.js → 6ZGSANNK.js} +2 -2
- package/dist/cdn/6ZTO7FNO.js +4 -0
- package/dist/cdn/{WZHH23QM.js → 77WRS6VW.js} +2 -2
- package/dist/cdn/{ZEAXRKXK.js → 7BQ4ROUA.js} +2 -2
- package/dist/cdn/{4OMQMK3I.js → 7F5JDOAZ.js} +1 -1
- package/dist/cdn/{Y6VLSCRE.js → 7I3BFLBC.js} +2 -2
- package/dist/cdn/{DHJ6UUY6.js → 7WCEQAY7.js} +1 -1
- package/dist/cdn/{FWJH47NT.js → 7X2MADWU.js} +2 -2
- package/dist/cdn/{KI2AQOA3.js → 7YFQBSNB.js} +2 -2
- package/dist/cdn/{DNL7IM5O.js → A3B73JRH.js} +2 -2
- package/dist/cdn/{QAMB66LB.js → AEE7RFUA.js} +1 -1
- package/dist/cdn/{L7PWOP64.js → AEGV4KPY.js} +2 -2
- package/dist/cdn/{EUTXQZVS.js → ALTCCKRR.js} +2 -2
- package/dist/cdn/{FIBCL6YB.js → AOTHMQCB.js} +2 -2
- package/dist/cdn/{FVWVGXHH.js → B7YGJRHY.js} +2 -2
- package/dist/cdn/{E3NILDZV.js → BADEAIBO.js} +2 -2
- package/dist/cdn/{KEVWTBIU.js → BBOZCDSB.js} +2 -2
- package/dist/cdn/{5H2IBVUZ.js → BEJAAYHT.js} +2 -2
- package/dist/cdn/{D5JJQ4N7.js → BNGPGDJQ.js} +2 -2
- package/dist/cdn/{YZYFQTWA.js → BTX6YROB.js} +2 -2
- package/dist/cdn/{ZGA3VCTT.js → BTZWCOWY.js} +2 -2
- package/dist/cdn/{ARDKR77T.js → C22GGJF5.js} +2 -2
- package/dist/cdn/{ZISJXCO5.js → C2KJFMZD.js} +2 -2
- package/dist/cdn/{Z67EYOTL.js → CBTYFXIH.js} +1 -1
- package/dist/cdn/{2ZB7DSAY.js → CDXFUVZJ.js} +2 -2
- package/dist/cdn/{LFTBTSKV.js → CI5TOXUY.js} +2 -2
- package/dist/cdn/{FUKAZQJV.js → CQPBVOKN.js} +2 -2
- package/dist/cdn/{6CWTXGKD.js → CXVWS6AM.js} +2 -2
- package/dist/cdn/{6BXYZ2CT.js → D2SJTC6M.js} +2 -2
- package/dist/cdn/{RNXQ27HV.js → D44JV44M.js} +2 -2
- package/dist/cdn/{Y3H62TNT.js → D4GDMHYD.js} +2 -2
- package/dist/cdn/{NTELI2LP.js → D4MARRYY.js} +2 -2
- package/dist/cdn/{NTTLXS6I.js → DA4UN4LV.js} +2 -2
- package/dist/cdn/{B3MI3INM.js → DCF6CV5Y.js} +2 -2
- package/dist/cdn/{7BXWH5XW.js → DFHWQFL2.js} +2 -2
- package/dist/cdn/{BGIVTGKI.js → E56Q37HO.js} +2 -2
- package/dist/cdn/{GLG5ALEA.js → E6BFIQ36.js} +2 -2
- package/dist/cdn/{FY5SXA6C.js → EAD7W7QN.js} +2 -2
- package/dist/cdn/{EHQWNZJG.js → EE23OEJT.js} +2 -2
- package/dist/cdn/{YKND2XAM.js → ELXQDRNT.js} +2 -2
- package/dist/cdn/{FN6CG5PL.js → EUGNVRXQ.js} +2 -2
- package/dist/cdn/{XCNX76RW.js → FGRXM3SW.js} +2 -2
- package/dist/cdn/{I5NSAWFV.js → FNNWQA65.js} +2 -2
- package/dist/cdn/{XKQV44UM.js → FZUE5SPZ.js} +2 -2
- package/dist/cdn/{GBR3BY2H.js → G32IMKKR.js} +2 -2
- package/dist/cdn/{P5JYLWOO.js → G7EKOENF.js} +2 -2
- package/dist/cdn/{NEA6VF4T.js → GDP36MSF.js} +2 -2
- package/dist/cdn/{GGU3UUGI.js → GEM7UHTG.js} +2 -2
- package/dist/cdn/{WCWYIURF.js → GF7VPBTK.js} +2 -2
- package/dist/cdn/{4VS75J6F.js → GQKVT2OH.js} +2 -2
- package/dist/cdn/{LTI3CRHC.js → GT5QHSMU.js} +2 -2
- package/dist/cdn/{5ZHSSLUN.js → HCF33EAK.js} +2 -2
- package/dist/cdn/{B4SCNICK.js → HIXNOJNZ.js} +2 -2
- package/dist/cdn/{UEXYBZLX.js → HNYIBA57.js} +2 -2
- package/dist/cdn/{WJVPRO7S.js → HPK24VBO.js} +2 -2
- package/dist/cdn/{56KCHKLE.js → HRFURV74.js} +2 -2
- package/dist/cdn/HWRDTKGR.js +4 -0
- package/dist/cdn/{VKS5XOVF.js → HYRTEKFM.js} +2 -2
- package/dist/cdn/{2I4WBC6B.js → HZ5XOE47.js} +2 -2
- package/dist/cdn/{L2TA4CZI.js → IB5EZAKS.js} +2 -2
- package/dist/cdn/{6WFJS5DD.js → IEAOURZP.js} +2 -2
- package/dist/cdn/{35C476JQ.js → IFHST3WW.js} +2 -2
- package/dist/cdn/{HEHL6B3L.js → IHPYT3EY.js} +2 -2
- package/dist/cdn/{NYIRQCA5.js → IJNAPJ4R.js} +2 -2
- package/dist/cdn/{36IIFUHH.js → ILCVH3T4.js} +2 -2
- package/dist/cdn/{UAEJKSH3.js → ILY7ROLS.js} +2 -2
- package/dist/cdn/{47GMREYE.js → IO2Y6ADU.js} +2 -2
- package/dist/cdn/{LGRZQMXN.js → IRO7ROF5.js} +2 -2
- package/dist/cdn/{MFMOWWY5.js → J2MYGMN6.js} +2 -2
- package/dist/cdn/{6PILICC7.js → J3ADC3OS.js} +2 -2
- package/dist/cdn/{EXAXXMU3.js → J3JDWS7L.js} +2 -2
- package/dist/cdn/{QP4TZMHH.js → JH5F6QUJ.js} +2 -2
- package/dist/cdn/{34SU26LL.js → JREDF4CI.js} +2 -2
- package/dist/cdn/{OZBIJMUX.js → K3IAO6QB.js} +2 -2
- package/dist/cdn/{WRLRWHOV.js → KKYJCNT7.js} +2 -2
- package/dist/cdn/{4YKNG7KT.js → KPZZLUTG.js} +2 -2
- package/dist/cdn/{ADO6NFKS.js → KVKVQI5T.js} +2 -2
- package/dist/cdn/{LVUD4JYF.js → KY5BNO5M.js} +2 -2
- package/dist/cdn/{GZXAM3U2.js → L7YK7CHZ.js} +2 -2
- package/dist/cdn/{UHUTQRTJ.js → LBIIYB4P.js} +2 -2
- package/dist/cdn/{BKLQKGLR.js → LDW4ZUVO.js} +2 -2
- package/dist/cdn/{6ZD3WAUV.js → LGL5ZIVW.js} +2 -2
- package/dist/cdn/LOGQI23L.js +4 -0
- package/dist/cdn/{RDRJ5GSB.js → LWQX7QXT.js} +2 -2
- package/dist/cdn/{FUOSJXM6.js → M435C5OW.js} +2 -2
- package/dist/cdn/{RWN6FOQE.js → MEPN2MCV.js} +1 -1
- package/dist/cdn/{2EQC5LWJ.js → MX53KP7R.js} +2 -2
- package/dist/cdn/{OWED63ON.js → N7KVASP3.js} +2 -2
- package/dist/cdn/{YMLVU346.js → NCTBONII.js} +2 -2
- package/dist/cdn/{ANCGKKTA.js → ND3WIOQT.js} +2 -2
- package/dist/cdn/{CCFHLREH.js → NEGPORHD.js} +2 -2
- package/dist/cdn/{ANNZ2RFV.js → NFTUHXWL.js} +2 -2
- package/dist/cdn/{ABFYUAE2.js → NMTNQWBF.js} +1 -1
- package/dist/cdn/{DTXBVJCW.js → NQ45RGAJ.js} +2 -2
- package/dist/cdn/{QMYVHKVP.js → NW7J5QPN.js} +2 -2
- package/dist/cdn/{TDWH3NHQ.js → O6RSAG3M.js} +2 -2
- package/dist/cdn/{WNC2R4VW.js → ODNTAYSU.js} +2 -2
- package/dist/cdn/{ADNY3PO5.js → OEOGJ4A3.js} +2 -2
- package/dist/cdn/{B4ODNNQK.js → OKSMJXLZ.js} +2 -2
- package/dist/cdn/{XX3W4H65.js → OM4GZBZI.js} +2 -2
- package/dist/cdn/{PEPSVXNH.js → OQAYO7AD.js} +2 -2
- package/dist/cdn/{YPI7BPMQ.js → ORUGCX43.js} +2 -2
- package/dist/cdn/{T6CBFGLS.js → OUFXHABI.js} +2 -2
- package/dist/cdn/{KUIOVKBS.js → P4AOEHOJ.js} +2 -2
- package/dist/cdn/{VS47ZONM.js → PDLQU3LD.js} +2 -2
- package/dist/cdn/{PMGLJKJE.js → PGUW3SIL.js} +2 -2
- package/dist/cdn/{4GTKKE5X.js → PKZRVOEK.js} +2 -2
- package/dist/cdn/{RQY7KILW.js → PS4BPIIO.js} +2 -2
- package/dist/cdn/{L2PQZXV4.js → PSHV4YUL.js} +2 -2
- package/dist/cdn/{XQ3ICK26.js → PTRUKN2N.js} +2 -2
- package/dist/cdn/{K6DPNC2L.js → PUY2UBFV.js} +2 -2
- package/dist/cdn/{5I7HVSJU.js → PYI5U3EC.js} +2 -2
- package/dist/cdn/{ZYFWCKAZ.js → Q2SDHJ6R.js} +2 -2
- package/dist/cdn/Q4AA3F7A.js +4 -0
- package/dist/cdn/{XJJCQSJ3.js → Q6GEAGJ2.js} +2 -2
- package/dist/cdn/{XCUQCF7H.js → QLOZ254D.js} +2 -2
- package/dist/cdn/{VQFY32AI.js → R2EHHWUH.js} +2 -2
- package/dist/cdn/{UZ2EUELX.js → R62IEF77.js} +2 -2
- package/dist/cdn/{YF37QVMY.js → RIGZNC5A.js} +2 -2
- package/dist/cdn/{IEUWSODE.js → RLVAJMIO.js} +2 -2
- package/dist/cdn/{YYQN5X2D.js → RRCTX5RH.js} +1 -1
- package/dist/cdn/{DNJXPHF5.js → SFJDK6UF.js} +2 -2
- package/dist/cdn/{MGXRSY2B.js → SITHLIXG.js} +2 -2
- package/dist/cdn/{DAREU2OO.js → T55CRIHB.js} +2 -2
- package/dist/cdn/{ADNUQDAV.js → TASOJC7V.js} +2 -2
- package/dist/cdn/{VRF3YD5N.js → TE6GA4ZO.js} +2 -2
- package/dist/cdn/{ZCREGARP.js → TFG7PP6W.js} +2 -2
- package/dist/cdn/TG3W6XQS.js +4 -0
- package/dist/cdn/{WR6LRJTX.js → TISPJJNL.js} +2 -2
- package/dist/cdn/{24BDQI2S.js → TSASOJQ3.js} +2 -2
- package/dist/cdn/{63UXQ6BZ.js → TVZBM53P.js} +2 -2
- package/dist/cdn/{P3KIHFNI.js → TY5IUA72.js} +2 -2
- package/dist/cdn/{SLTJ3IGM.js → U5HMYGTI.js} +1 -1
- package/dist/cdn/{2PYGCYJQ.js → UIG7FXNT.js} +2 -2
- package/dist/cdn/{FX3FVEOD.js → UNGICPRX.js} +2 -2
- package/dist/cdn/{4MQI2NFR.js → URAZPLS7.js} +2 -2
- package/dist/cdn/{LGXS2V34.js → URFCHRYI.js} +2 -2
- package/dist/cdn/{J4SB5EX2.js → V5LC2NCU.js} +1 -1
- package/dist/cdn/VAARGNE3.js +4 -0
- package/dist/cdn/{UZWQYF5F.js → VO4RDWVP.js} +2 -2
- package/dist/cdn/{23QILKEM.js → VPTPRLYR.js} +2 -2
- package/dist/cdn/{HVQQO6UH.js → VTQ6TQ2S.js} +1 -1
- package/dist/cdn/{STYBVLB7.js → W5LCHJVB.js} +2 -2
- package/dist/cdn/{NYVIVW3M.js → WCJC4FFS.js} +2 -2
- package/dist/cdn/{42R2TISP.js → WDR6OXHL.js} +2 -2
- package/dist/cdn/{MCBBE3OE.js → WJPALJVP.js} +2 -2
- package/dist/cdn/{EAURIHNS.js → WK4JUM42.js} +2 -2
- package/dist/cdn/{XCGPBHT2.js → WN7EPAL2.js} +2 -2
- package/dist/cdn/{MX6NNSMX.js → WUQS3ZP7.js} +2 -2
- package/dist/cdn/{SANAMZSL.js → WV25TCRN.js} +2 -2
- package/dist/cdn/{TUD32BZ4.js → X5AZMUX2.js} +2 -2
- package/dist/cdn/{3QFLK3VF.js → XWKAJJBO.js} +2 -2
- package/dist/cdn/{ILVZSLXS.js → Y4YRFGMZ.js} +2 -2
- package/dist/cdn/{5UPT6NND.js → YKP42LA3.js} +2 -2
- package/dist/cdn/{NBT26Q64.js → YSY2MS3W.js} +2 -2
- package/dist/cdn/Z6HFPMQG.js +4 -0
- package/dist/cdn/{LF3XBK6W.js → ZFKKMD7P.js} +2 -2
- package/dist/cdn/{PYZGBQ5B.js → ZHWEGDVE.js} +2 -2
- package/dist/cdn/{WT5YMK5B.js → ZSAP6F4C.js} +3 -3
- package/dist/cdn/{TGHILTC2.js → ZYYFGRR3.js} +2 -2
- package/dist/cdn/assets/daylight/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/elevation-profile-next/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/AnalysisViewModel.js +1 -1
- package/dist/chunks/action-utils.js +1 -1
- package/dist/chunks/async-utils.js +1 -1
- package/dist/chunks/basemap-gallery-resources.js +1 -1
- package/dist/chunks/chart-utils.js +1 -1
- package/dist/chunks/chartCommon.js +1 -1
- package/dist/chunks/component-utils.js +1 -1
- package/dist/chunks/createCloseEvent.js +1 -1
- package/dist/chunks/feature-utils.js +1 -1
- package/dist/chunks/globalCss.js +1 -1
- package/dist/chunks/heading.js +1 -1
- package/dist/chunks/layer-list.js +1 -1
- package/dist/chunks/legacyIcon.js +1 -1
- package/dist/chunks/maybe.js +1 -1
- package/dist/chunks/measurementUtils.js +12 -8
- package/dist/chunks/runtime.js +2 -2
- package/dist/chunks/slots.js +1 -1
- package/dist/chunks/slots2.js +2 -2
- package/dist/chunks/useHandles.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/useView.js +1 -1
- package/dist/chunks/useViewModel.js +1 -1
- package/dist/chunks/useWidget.js +1 -1
- package/dist/chunks/utils.js +1 -1
- package/dist/components/arcgis-area-measurement-2d/customElement.js +1 -1
- package/dist/components/arcgis-area-measurement-3d/customElement.js +1 -1
- package/dist/components/arcgis-attachments/customElement.js +1 -1
- package/dist/components/arcgis-basemap-gallery/customElement.js +2 -2
- package/dist/components/arcgis-basemap-gallery-item/customElement.js +1 -1
- package/dist/components/arcgis-basemap-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-basemap-toggle/customElement.js +1 -1
- package/dist/components/arcgis-bookmarks/customElement.js +1 -1
- package/dist/components/arcgis-building-explorer/customElement.js +1 -1
- package/dist/components/arcgis-catalog-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-compass/customElement.js +1 -1
- package/dist/components/arcgis-coordinate-conversion/customElement.js +1 -1
- package/dist/components/arcgis-daylight/animation.d.ts +7 -0
- package/dist/components/arcgis-daylight/customElement.d.ts +87 -53
- package/dist/components/arcgis-daylight/customElement.js +472 -14
- package/dist/components/arcgis-daylight/daylight-time-slider.d.ts +7 -0
- package/dist/components/arcgis-daylight/daylight-utils.d.ts +32 -0
- package/dist/components/arcgis-daylight/index.d.ts +8 -0
- package/dist/components/arcgis-daylight/index.js +8 -0
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +1 -1
- package/dist/components/arcgis-directional-pad/customElement.js +1 -1
- package/dist/components/arcgis-directions/customElement.js +1 -1
- package/dist/components/arcgis-distance-measurement-2d/customElement.js +1 -1
- package/dist/components/arcgis-editor/customElement.js +2 -2
- package/dist/components/arcgis-elevation-profile/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-legend/customElement.d.ts +15 -0
- package/dist/components/arcgis-elevation-profile-legend/customElement.js +33 -0
- package/dist/components/arcgis-elevation-profile-legend/index.d.ts +2 -0
- package/dist/components/arcgis-elevation-profile-legend/index.js +2 -0
- package/dist/components/arcgis-elevation-profile-legend-item/customElement.d.ts +21 -0
- package/dist/components/arcgis-elevation-profile-legend-item/customElement.js +74 -0
- package/dist/components/arcgis-elevation-profile-legend-item/index.d.ts +5 -0
- package/dist/components/arcgis-elevation-profile-legend-item/index.js +5 -0
- package/dist/components/arcgis-elevation-profile-next/ElevationProfileViewModel.d.ts +19 -6
- package/dist/components/arcgis-elevation-profile-next/customElement.d.ts +7 -10
- package/dist/components/arcgis-elevation-profile-next/customElement.js +445 -134
- package/dist/components/arcgis-elevation-profile-next/geometryUtils.d.ts +9 -0
- package/dist/components/arcgis-elevation-profile-next/index.d.ts +5 -0
- package/dist/components/arcgis-elevation-profile-next/index.js +5 -0
- package/dist/components/arcgis-elevation-profile-next/interfaces.d.ts +171 -0
- package/dist/components/arcgis-elevation-profile-settings/customElement.d.ts +25 -0
- package/dist/components/arcgis-elevation-profile-settings/customElement.js +59 -0
- package/dist/components/arcgis-elevation-profile-settings/index.d.ts +6 -0
- package/dist/components/arcgis-elevation-profile-settings/index.js +6 -0
- package/dist/components/arcgis-elevation-profile-statistics/customElement.d.ts +17 -0
- package/dist/components/arcgis-elevation-profile-statistics/customElement.js +65 -0
- package/dist/components/arcgis-elevation-profile-statistics/index.d.ts +2 -0
- package/dist/components/arcgis-elevation-profile-statistics/index.js +2 -0
- package/dist/components/arcgis-expand/customElement.js +1 -1
- package/dist/components/arcgis-feature/customElement.js +1 -1
- package/dist/components/arcgis-feature-attachments/customElement.js +1 -1
- package/dist/components/arcgis-feature-content/customElement.js +1 -1
- package/dist/components/arcgis-feature-element-info/customElement.js +1 -1
- package/dist/components/arcgis-feature-expression/customElement.js +1 -1
- package/dist/components/arcgis-feature-fields/customElement.js +1 -1
- package/dist/components/arcgis-feature-form/customElement.js +1 -1
- package/dist/components/arcgis-feature-media/customElement.js +1 -1
- package/dist/components/arcgis-feature-relationship/customElement.js +1 -1
- package/dist/components/arcgis-feature-table/customElement.js +1 -1
- package/dist/components/arcgis-feature-templates/customElement.js +1 -1
- package/dist/components/arcgis-features/customElement.js +4 -4
- package/dist/components/arcgis-floor-filter/customElement.js +1 -1
- package/dist/components/arcgis-fullscreen/customElement.js +1 -1
- package/dist/components/arcgis-grid-controls/customElement.js +1 -1
- package/dist/components/arcgis-histogram-range-slider/customElement.js +1 -1
- package/dist/components/arcgis-home/customElement.js +1 -1
- package/dist/components/arcgis-labeled-switch/customElement.js +1 -1
- package/dist/components/arcgis-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-layer-list-item/customElement.js +1 -1
- package/dist/components/arcgis-legend/customElement.js +1 -1
- package/dist/components/arcgis-line-of-sight/customElement.js +1 -1
- package/dist/components/arcgis-link-chart/customElement.js +1 -1
- package/dist/components/arcgis-link-chart-layout-switcher/customElement.js +1 -1
- package/dist/components/arcgis-locate/customElement.js +1 -1
- package/dist/components/arcgis-map/customElement.js +1 -1
- package/dist/components/arcgis-measurement/customElement.js +1 -1
- package/dist/components/arcgis-measurement-content/customElement.js +1 -1
- package/dist/components/arcgis-navigation-toggle/customElement.js +1 -1
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +1 -1
- package/dist/components/arcgis-placement/customElement.js +1 -1
- package/dist/components/arcgis-print/customElement.js +1 -1
- package/dist/components/arcgis-print-custom-text-elements/customElement.js +1 -1
- package/dist/components/arcgis-print-dpi-input/customElement.js +1 -1
- package/dist/components/arcgis-print-export-button/customElement.js +1 -1
- package/dist/components/arcgis-print-exported-link/customElement.js +1 -1
- package/dist/components/arcgis-print-exports-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-format-select/customElement.js +1 -1
- package/dist/components/arcgis-print-layout-advanced-options/customElement.js +1 -1
- package/dist/components/arcgis-print-layout-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-main-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-map-only-advanced-options/customElement.js +1 -1
- package/dist/components/arcgis-print-map-only-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-out-spatial-reference-input/customElement.js +1 -1
- package/dist/components/arcgis-print-preview-input/customElement.js +1 -1
- package/dist/components/arcgis-print-scale-section/customElement.js +1 -1
- package/dist/components/arcgis-print-template-select/customElement.js +1 -1
- package/dist/components/arcgis-print-template-selector/customElement.js +1 -1
- package/dist/components/arcgis-scale-bar/customElement.js +1 -1
- package/dist/components/arcgis-scale-range-slider/customElement.js +1 -1
- package/dist/components/arcgis-scene/customElement.js +1 -1
- package/dist/components/arcgis-search/customElement.js +1 -1
- package/dist/components/arcgis-search-result-renderer/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast/customElement.js +1 -1
- package/dist/components/arcgis-sketch/customElement.js +1 -1
- package/dist/components/arcgis-slice/customElement.js +1 -1
- package/dist/components/arcgis-swipe/customElement.js +1 -1
- package/dist/components/arcgis-table-list/customElement.js +1 -1
- package/dist/components/arcgis-time-slider/customElement.js +1 -1
- package/dist/components/arcgis-time-zone-label/customElement.js +1 -1
- package/dist/components/arcgis-track/customElement.js +1 -1
- package/dist/components/arcgis-unit-select/customElement.d.ts +1 -3
- package/dist/components/arcgis-unit-select/customElement.js +18 -20
- package/dist/components/arcgis-utility-network-associations/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-validate-topology/customElement.js +1 -1
- package/dist/components/arcgis-value-picker/customElement.js +1 -1
- package/dist/components/arcgis-version-management/customElement.js +1 -1
- package/dist/components/arcgis-version-management-service-item/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-item/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-list/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-properties/customElement.js +1 -1
- package/dist/components/arcgis-video/customElement.js +1 -1
- package/dist/components/arcgis-video-player/customElement.js +1 -1
- package/dist/components/arcgis-video-player-action-bar/customElement.js +1 -1
- package/dist/components/arcgis-video-player-actions-group/customElement.js +1 -1
- package/dist/components/arcgis-video-player-controls-group/customElement.js +1 -1
- package/dist/components/arcgis-video-player-metadata/customElement.js +1 -1
- package/dist/components/arcgis-video-player-settings/customElement.js +1 -1
- package/dist/components/arcgis-video-player-slider/customElement.js +1 -1
- package/dist/components/arcgis-weather/customElement.js +1 -1
- package/dist/components/arcgis-zoom/customElement.js +1 -1
- package/dist/components/support/utility-components/component-wrapper.d.ts +10 -0
- package/dist/components/support/utility-components/visible-element.d.ts +5 -0
- package/dist/docs/api.json +304 -34
- package/dist/docs/docs.json +268 -37
- package/dist/docs/vscode.html-custom-data.json +59 -7
- package/dist/docs/web-types.json +101 -19
- package/dist/index.js +1 -1
- package/dist/loader.js +6 -2
- package/dist/support/AnalysisViewModel.d.ts +1 -1
- package/dist/support/earth-utils.d.ts +10 -0
- package/dist/support/handle.d.ts +1 -0
- package/dist/support/measurementUtils.d.ts +2 -1
- package/dist/support/sun-calc-lib/SunCalc.d.ts +25 -0
- package/dist/support/time-utils.d.ts +33 -0
- 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/dist/utils/async-utils.d.ts +1 -0
- package/package.json +3 -3
- package/dist/cdn/6XMPVXYW.js +0 -4
- package/dist/cdn/DQ5KZE73.js +0 -4
- package/dist/cdn/ILRFYIOE.js +0 -4
- package/dist/cdn/LXVKNC6W.js +0 -4
- package/dist/cdn/WX2NG4V2.js +0 -4
|
@@ -1,37 +1,92 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { css as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { u as
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
1
|
+
import { c as x } from "../../chunks/runtime.js";
|
|
2
|
+
import { css as C, html as d } from "lit";
|
|
3
|
+
import { ref as S } from "lit/directives/ref.js";
|
|
4
|
+
import { ignoreAbortErrors as v } from "@arcgis/core/core/promiseUtils.js";
|
|
5
|
+
import { LitElement as k, createEvent as M, nothing as u, safeClassMap as _ } from "@arcgis/lumina";
|
|
6
|
+
import { usePropertyChange as E } from "@arcgis/lumina/controllers";
|
|
7
|
+
import { u as B } from "../../chunks/useT9n.js";
|
|
8
|
+
import { m as O } from "../../chunks/useViewModel.js";
|
|
9
|
+
import { g } from "../../chunks/globalCss.js";
|
|
10
|
+
import P from "@arcgis/core/analysis/ElevationProfileAnalysis.js";
|
|
11
|
+
import { getDefaultUnitForView as $ } from "@arcgis/core/applications/Components/getDefaultUnits.js";
|
|
12
|
+
import { property as a, subclass as z } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
13
|
+
import { watch as m } from "@arcgis/core/core/reactiveUtils.js";
|
|
14
|
+
import { A as V } from "../../chunks/AnalysisViewModel.js";
|
|
15
|
+
import { m as y } from "../../chunks/measurementUtils.js";
|
|
16
|
+
import { c as U } from "../../chunks/async-utils.js";
|
|
17
|
+
import { createChart as D } from "@arcgis/core/applications/Components/analysisUtils.js";
|
|
14
18
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
15
19
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
16
|
-
v4.34.0-next.
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
v4.34.0-next.116 */
|
|
21
|
+
const A = C`.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{--esri-widget-padding-x: 15px;--esri-widget-padding-y: var(--calcite-spacing-md);--esri-widget-padding: var(--esri-widget-padding-y) var(--esri-widget-padding-x);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:1.3em}.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__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:#303030}.esri-menu__list-item:active{background-color:#000}.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:#2493f2}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:1.3em}.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(--esri-widget-padding);transition:max-height .25s ease-in-out;overflow-y:auto}:host{--internal-chart-height: 180px;--internal-gap: var(--calcite-spacing-sm-plus);width:550px;isolation:isolate;padding:var(--esri-widget-padding);position:relative;container-type:inline-size;resize:horizontal}.container{display:flex;flex-direction:column;width:100%;min-width:0;gap:var(--internal-gap)}.header{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;margin-bottom:calc(var(--internal-gap) * -1)}.actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--calcite-spacing-xs)}.action-button{width:auto;min-height:32px}.main-container{display:flex;position:relative;flex-flow:column;width:100%;height:var(--internal-chart-height)}.chart-container{position:relative;width:100%;height:100%}.prompt-container{box-sizing:border-box;display:grid;place-content:center;padding-inline:var(--calcite-spacing-md);height:100%;text-align:center}.prompt-message{margin:0;width:100%}.spinner{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity .15s ease-in-out;transition-delay:0;opacity:0;&.visible{transition-delay:50ms;opacity:1}&.small{inset-inline-start:0;top:-22px;left:unset;transform:none;color:var(--calcite-color-brand)}}@container (max-width: 400px){.esri-widget--panel{height:auto}.actions{flex-direction:column}.action-button{align-self:stretch}}`;
|
|
22
|
+
function F(t) {
|
|
23
|
+
const e = f(t);
|
|
24
|
+
return e != null && e.type === "polyline" && e.paths.length > 0 && e.paths.every((i) => i.length >= 2);
|
|
25
|
+
}
|
|
26
|
+
function L(t) {
|
|
27
|
+
const e = f(t);
|
|
28
|
+
return e?.type === "polyline" && e.paths.reduce((i, r) => i + r.length, 0) > 0;
|
|
29
|
+
}
|
|
30
|
+
function f({ input: t }) {
|
|
31
|
+
return j(t) ? t.geometry : t;
|
|
32
|
+
}
|
|
33
|
+
function T(t) {
|
|
34
|
+
return t?.samples?.some((e) => e.z != null) ?? !1;
|
|
35
|
+
}
|
|
36
|
+
function Z(t) {
|
|
37
|
+
return t?.type === "polyline";
|
|
38
|
+
}
|
|
39
|
+
function j(t) {
|
|
40
|
+
return t != null && "geometry" in t;
|
|
41
|
+
}
|
|
42
|
+
var R = Object.defineProperty, I = Object.getOwnPropertyDescriptor, o = (t, e, i, r) => {
|
|
43
|
+
for (var n = r > 1 ? void 0 : r ? I(e, i) : e, l = t.length - 1, c; l >= 0; l--)
|
|
44
|
+
(c = t[l]) && (n = (r ? c(e, i, n) : c(n)) || n);
|
|
45
|
+
return r && n && R(e, i, n), n;
|
|
22
46
|
};
|
|
23
|
-
let
|
|
47
|
+
let s = class extends V {
|
|
24
48
|
constructor() {
|
|
25
|
-
super(...arguments), this.supportedViewType = "both", this.unsupportedErrorMessage = "";
|
|
49
|
+
super(...arguments), this.uniformChartScaling = !1, this.supportedViewType = "both", this.unsupportedErrorMessage = "";
|
|
26
50
|
}
|
|
27
51
|
get _measurementSystem() {
|
|
28
|
-
return this.view ?
|
|
52
|
+
return this.view ? $(this.view) : void 0;
|
|
53
|
+
}
|
|
54
|
+
get _hasSamples() {
|
|
55
|
+
const { progress: t } = this;
|
|
56
|
+
return this._analysisView?.results?.some((e) => e.available && (t < 1 || T(e))) ?? !1;
|
|
57
|
+
}
|
|
58
|
+
get canStopCreating() {
|
|
59
|
+
const t = f(this.analysis);
|
|
60
|
+
return Z(t) && t.paths.length > 0 && t.paths[0].length > 2;
|
|
61
|
+
}
|
|
62
|
+
get effectiveUnits() {
|
|
63
|
+
return this.analysisView?.effectiveUnits;
|
|
64
|
+
}
|
|
65
|
+
get errorState() {
|
|
66
|
+
if (!F(this.analysis))
|
|
67
|
+
return "no-valid-input";
|
|
68
|
+
const t = this.analysisView?.error;
|
|
69
|
+
if (t)
|
|
70
|
+
switch (t.name) {
|
|
71
|
+
case "elevation-profile-analysis:too-complex":
|
|
72
|
+
return "too-complex";
|
|
73
|
+
case "elevation-profile-analysis:invalid-geometry":
|
|
74
|
+
return "invalid-geometry";
|
|
75
|
+
case "elevation-profile-analysis:elevation-query-error":
|
|
76
|
+
return "no-valid-input";
|
|
77
|
+
default:
|
|
78
|
+
return "unknown";
|
|
79
|
+
}
|
|
80
|
+
return this._hasSamples ? "none" : "no-available-profiles";
|
|
81
|
+
}
|
|
82
|
+
get hasVertices() {
|
|
83
|
+
return L(this.analysis);
|
|
29
84
|
}
|
|
30
85
|
get highlightEnabled() {
|
|
31
86
|
return this.analysis.viewOptions.highlightEnabled;
|
|
32
87
|
}
|
|
33
|
-
set highlightEnabled(
|
|
34
|
-
this.analysis.viewOptions.highlightEnabled =
|
|
88
|
+
set highlightEnabled(t) {
|
|
89
|
+
this.analysis.viewOptions.highlightEnabled = t;
|
|
35
90
|
}
|
|
36
91
|
get hoveredPosition() {
|
|
37
92
|
return this.analysisView?.hoveredPosition ?? void 0;
|
|
@@ -39,18 +94,34 @@ let i = class extends k {
|
|
|
39
94
|
get input() {
|
|
40
95
|
return this.analysis.input;
|
|
41
96
|
}
|
|
42
|
-
set input(
|
|
43
|
-
this.analysis.input =
|
|
97
|
+
set input(t) {
|
|
98
|
+
this.analysis.input = t;
|
|
44
99
|
}
|
|
45
100
|
get profiles() {
|
|
46
101
|
return this.analysis.profiles;
|
|
47
102
|
}
|
|
48
|
-
set profiles(
|
|
49
|
-
this.analysis.profiles =
|
|
103
|
+
set profiles(t) {
|
|
104
|
+
this.analysis.profiles = t;
|
|
50
105
|
}
|
|
51
106
|
get progress() {
|
|
52
107
|
return this.analysisView?.progress ?? 0;
|
|
53
108
|
}
|
|
109
|
+
get results() {
|
|
110
|
+
const { analysis: t, analysisView: e } = this;
|
|
111
|
+
if (!e)
|
|
112
|
+
return [];
|
|
113
|
+
const { profiles: i } = t, { results: r } = e;
|
|
114
|
+
return i.length !== r.length ? [] : i.toArray().map((n, l) => {
|
|
115
|
+
const c = r.at(l);
|
|
116
|
+
return { profileLine: n, result: c };
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
get selectAvailable() {
|
|
120
|
+
for (const t of this.view?.map?.allLayers ?? [])
|
|
121
|
+
if (t.type === "graphics" && !("internal" in t && t.internal) && t.graphics.some((e) => e.geometry?.type === "polyline") || "geometryType" in t && t.geometryType === "polyline")
|
|
122
|
+
return !0;
|
|
123
|
+
return !!this.view?.graphics?.some((t) => t.geometry?.type === "polyline");
|
|
124
|
+
}
|
|
54
125
|
get state() {
|
|
55
126
|
if (this.disabled || !this.ready)
|
|
56
127
|
return "disabled";
|
|
@@ -59,70 +130,67 @@ let i = class extends k {
|
|
|
59
130
|
if (this.operationState === "active")
|
|
60
131
|
return "creating";
|
|
61
132
|
if (this.analysis.valid) {
|
|
62
|
-
const
|
|
63
|
-
return
|
|
133
|
+
const t = this.analysis.input;
|
|
134
|
+
return t != null && "geometry" in t ? "selected" : "created";
|
|
64
135
|
} else
|
|
65
136
|
return "ready";
|
|
66
137
|
}
|
|
67
138
|
get unitDistance() {
|
|
68
|
-
return
|
|
139
|
+
return w(this._userUnitDistance, this.unitOptionsDistance, this._measurementSystem);
|
|
69
140
|
}
|
|
70
|
-
set unitDistance(
|
|
71
|
-
this._userUnitDistance =
|
|
72
|
-
}
|
|
73
|
-
get effectiveUnits() {
|
|
74
|
-
return this.analysisView?.effectiveUnits;
|
|
141
|
+
set unitDistance(t) {
|
|
142
|
+
this._userUnitDistance = t;
|
|
75
143
|
}
|
|
76
144
|
get unitElevation() {
|
|
77
|
-
return
|
|
145
|
+
return w(this._userUnitElevation, this.unitOptionsElevation, this._measurementSystem);
|
|
78
146
|
}
|
|
79
|
-
set unitElevation(
|
|
80
|
-
this._userUnitElevation =
|
|
147
|
+
set unitElevation(t) {
|
|
148
|
+
this._userUnitElevation = t;
|
|
81
149
|
}
|
|
82
150
|
get unitOptionsDistance() {
|
|
83
|
-
return
|
|
151
|
+
return b(this._userUnitOptionsDistance);
|
|
84
152
|
}
|
|
85
|
-
set unitOptionsDistance(
|
|
86
|
-
this._userUnitOptionsDistance =
|
|
153
|
+
set unitOptionsDistance(t) {
|
|
154
|
+
this._userUnitOptionsDistance = t;
|
|
87
155
|
}
|
|
88
156
|
get unitOptionsElevation() {
|
|
89
|
-
return
|
|
157
|
+
return b(this._userUnitOptionsElevation);
|
|
90
158
|
}
|
|
91
|
-
set unitOptionsElevation(
|
|
92
|
-
this._userUnitOptionsElevation =
|
|
159
|
+
set unitOptionsElevation(t) {
|
|
160
|
+
this._userUnitOptionsElevation = t;
|
|
93
161
|
}
|
|
94
162
|
//#endregion
|
|
95
163
|
//#region Public Methods
|
|
96
164
|
initialize() {
|
|
97
165
|
this.addHandles(
|
|
98
|
-
|
|
166
|
+
m(
|
|
99
167
|
() => ({
|
|
100
168
|
analysis: this.analysis,
|
|
101
|
-
|
|
102
|
-
|
|
169
|
+
unitDistance: this.unitDistance,
|
|
170
|
+
unitElevation: this.unitElevation
|
|
103
171
|
}),
|
|
104
|
-
({ analysis:
|
|
105
|
-
|
|
172
|
+
({ analysis: t, unitDistance: e, unitElevation: i }) => {
|
|
173
|
+
t != null && (t.units.elevation = i, t.units.distance = e);
|
|
106
174
|
},
|
|
107
175
|
{ sync: !0, initial: !0 }
|
|
108
176
|
)
|
|
109
177
|
);
|
|
110
178
|
}
|
|
111
179
|
async select() {
|
|
112
|
-
const
|
|
113
|
-
if (!
|
|
180
|
+
const t = this.analysisView;
|
|
181
|
+
if (!t)
|
|
114
182
|
return;
|
|
115
|
-
const
|
|
116
|
-
operation: async (
|
|
117
|
-
await
|
|
183
|
+
const e = super.start({
|
|
184
|
+
operation: async (i) => {
|
|
185
|
+
await t.pickGraphic(i);
|
|
118
186
|
}
|
|
119
187
|
});
|
|
120
|
-
|
|
121
|
-
this._selectingPromise ===
|
|
122
|
-
}), this._selectingPromise =
|
|
188
|
+
e.finally(() => {
|
|
189
|
+
this._selectingPromise === e && (this._selectingPromise = void 0);
|
|
190
|
+
}), this._selectingPromise = e, await e.catch();
|
|
123
191
|
}
|
|
124
|
-
async place(
|
|
125
|
-
await this.analysisView?.place(
|
|
192
|
+
async place(t) {
|
|
193
|
+
await this.analysisView?.place(t);
|
|
126
194
|
}
|
|
127
195
|
//#endregion
|
|
128
196
|
//#region Protected/Private Methods
|
|
@@ -131,103 +199,346 @@ let i = class extends k {
|
|
|
131
199
|
}
|
|
132
200
|
// Should never happen because both 2d and 3d are supported
|
|
133
201
|
constructAnalysis() {
|
|
134
|
-
return new
|
|
202
|
+
return new P();
|
|
135
203
|
}
|
|
136
204
|
//#endregion
|
|
137
205
|
};
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
],
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
],
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
],
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
],
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
],
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
],
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
],
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
],
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
],
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
],
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
],
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
],
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
],
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
],
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
],
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
],
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
],
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
],
|
|
192
|
-
|
|
193
|
-
|
|
206
|
+
o([
|
|
207
|
+
a()
|
|
208
|
+
], s.prototype, "_userUnitOptionsDistance", 2);
|
|
209
|
+
o([
|
|
210
|
+
a()
|
|
211
|
+
], s.prototype, "_userUnitOptionsElevation", 2);
|
|
212
|
+
o([
|
|
213
|
+
a()
|
|
214
|
+
], s.prototype, "_userUnitDistance", 2);
|
|
215
|
+
o([
|
|
216
|
+
a()
|
|
217
|
+
], s.prototype, "_userUnitElevation", 2);
|
|
218
|
+
o([
|
|
219
|
+
a({ readOnly: !0 })
|
|
220
|
+
], s.prototype, "_measurementSystem", 1);
|
|
221
|
+
o([
|
|
222
|
+
a()
|
|
223
|
+
], s.prototype, "_selectingPromise", 2);
|
|
224
|
+
o([
|
|
225
|
+
a()
|
|
226
|
+
], s.prototype, "_hasSamples", 1);
|
|
227
|
+
o([
|
|
228
|
+
a()
|
|
229
|
+
], s.prototype, "canStopCreating", 1);
|
|
230
|
+
o([
|
|
231
|
+
a({ readOnly: !0 })
|
|
232
|
+
], s.prototype, "effectiveUnits", 1);
|
|
233
|
+
o([
|
|
234
|
+
a({ readOnly: !0 })
|
|
235
|
+
], s.prototype, "errorState", 1);
|
|
236
|
+
o([
|
|
237
|
+
a({ readOnly: !0 })
|
|
238
|
+
], s.prototype, "hasVertices", 1);
|
|
239
|
+
o([
|
|
240
|
+
a()
|
|
241
|
+
], s.prototype, "highlightEnabled", 1);
|
|
242
|
+
o([
|
|
243
|
+
a()
|
|
244
|
+
], s.prototype, "hoveredPosition", 1);
|
|
245
|
+
o([
|
|
246
|
+
a()
|
|
247
|
+
], s.prototype, "input", 1);
|
|
248
|
+
o([
|
|
249
|
+
a()
|
|
250
|
+
], s.prototype, "profiles", 1);
|
|
251
|
+
o([
|
|
252
|
+
a({ readOnly: !0 })
|
|
253
|
+
], s.prototype, "progress", 1);
|
|
254
|
+
o([
|
|
255
|
+
a({ readOnly: !0 })
|
|
256
|
+
], s.prototype, "results", 1);
|
|
257
|
+
o([
|
|
258
|
+
a({ readOnly: !0 })
|
|
259
|
+
], s.prototype, "selectAvailable", 1);
|
|
260
|
+
o([
|
|
261
|
+
a({ readOnly: !0 })
|
|
262
|
+
], s.prototype, "state", 1);
|
|
263
|
+
o([
|
|
264
|
+
a()
|
|
265
|
+
], s.prototype, "uniformChartScaling", 2);
|
|
266
|
+
o([
|
|
267
|
+
a()
|
|
268
|
+
], s.prototype, "unitDistance", 1);
|
|
269
|
+
o([
|
|
270
|
+
a()
|
|
271
|
+
], s.prototype, "unitElevation", 1);
|
|
272
|
+
o([
|
|
273
|
+
a()
|
|
274
|
+
], s.prototype, "unitOptionsDistance", 1);
|
|
275
|
+
o([
|
|
276
|
+
a()
|
|
277
|
+
], s.prototype, "unitOptionsElevation", 1);
|
|
278
|
+
s = o([
|
|
279
|
+
z("components.elevation-profile.ElevationProfileViewModel")
|
|
280
|
+
], s);
|
|
281
|
+
function w(t, e, i) {
|
|
282
|
+
return t && e.includes(t) ? t : i && e.includes(i) ? i : e[0];
|
|
194
283
|
}
|
|
195
|
-
function
|
|
196
|
-
const
|
|
197
|
-
return
|
|
284
|
+
function b(t) {
|
|
285
|
+
const e = t?.filter((i) => y.includes(i));
|
|
286
|
+
return e && e.length > 0 ? e : y.slice();
|
|
198
287
|
}
|
|
199
|
-
const
|
|
200
|
-
class
|
|
288
|
+
const G = O(s);
|
|
289
|
+
class H extends k {
|
|
201
290
|
constructor() {
|
|
202
|
-
super(...arguments), this.viewModel =
|
|
291
|
+
super(...arguments), this.viewModel = G(this), this._messages = B(), this._hideZoomOutButton = !0, this.analysis = this.viewModel.analysis, this.autoDestroyDisabled = !1, this.effectiveUnits = this.viewModel.effectiveUnits, this.hideChart = !1, this.hideClearButton = !1, this.hideLegend = !1, this.hideSelectButton = !1, this.hideSettingsButton = !1, this.hideSketchButton = !1, this.hideUniformChartScalingToggle = !1, this.hideUnitSelector = !1, this.highlightEnabled = this.viewModel.highlightEnabled, this.hoveredPosition = this.viewModel.hoveredPosition, this.icon = "altitude", this.input = this.viewModel.input, this.profiles = this.viewModel.profiles, this.progress = this.viewModel.progress, this.state = this.viewModel.state, this.uniformChartScaling = this.viewModel.uniformChartScaling, this.unitDistance = this.viewModel.unitDistance, this.unitElevation = this.viewModel.unitElevation, this.unitOptionsDistance = this.viewModel.unitOptionsDistance, this.unitOptionsElevation = this.viewModel.unitOptionsElevation, this.arcgisPropertyChange = E()("input", "effectiveUnits", "progress", "state"), this.arcgisReady = M();
|
|
203
292
|
}
|
|
204
293
|
static {
|
|
205
|
-
this.properties = { analysis: 0, autoDestroyDisabled: 5, effectiveUnits: 32, hideChart: 5, hideClearButton: 5, hideLegend: 5, hideSelectButton: 5, hideSettingsButton: 5, hideSketchButton: 5, hideUniformChartScalingToggle: 5, hideUnitSelector: 5, highlightEnabled: 5, hoveredPosition: 9, icon: 3, input: 0, label: 1, messageOverrides: 0, position: 1, referenceElement: 1, profiles: 0, progress: 40, state: 3, uniformChartScaling: 5, unitDistance: 1, unitElevation: 1, unitOptionsDistance: 0, unitOptionsElevation: 0 };
|
|
294
|
+
this.properties = { _hideZoomOutButton: 16, _chartContainer: 16, analysis: 0, autoDestroyDisabled: 5, effectiveUnits: 32, hideChart: 5, hideClearButton: 5, hideLegend: 5, hideSelectButton: 5, hideSettingsButton: 5, hideSketchButton: 5, hideUniformChartScalingToggle: 5, hideUnitSelector: 5, highlightEnabled: 5, hoveredPosition: 9, icon: 3, input: 0, label: 1, messageOverrides: 0, position: 1, referenceElement: 1, profiles: 0, progress: 40, state: 3, uniformChartScaling: 5, unitDistance: 1, unitElevation: 1, unitOptionsDistance: 0, unitOptionsElevation: 0 };
|
|
206
295
|
}
|
|
207
296
|
static {
|
|
208
|
-
this.styles =
|
|
297
|
+
this.styles = A;
|
|
298
|
+
}
|
|
299
|
+
get _selectButtonVisible() {
|
|
300
|
+
return !this.hideSelectButton && this.viewModel.selectAvailable;
|
|
301
|
+
}
|
|
302
|
+
get _chart() {
|
|
303
|
+
return this._chartInitializationTask?.value;
|
|
209
304
|
}
|
|
210
305
|
async destroy() {
|
|
211
306
|
await this.manager.destroy();
|
|
212
307
|
}
|
|
308
|
+
async select() {
|
|
309
|
+
this.viewModel.select();
|
|
310
|
+
}
|
|
213
311
|
async start() {
|
|
214
312
|
this.viewModel.start();
|
|
215
313
|
}
|
|
216
314
|
async stop() {
|
|
217
315
|
this.viewModel.stop();
|
|
218
316
|
}
|
|
219
|
-
|
|
220
|
-
this.
|
|
317
|
+
load() {
|
|
318
|
+
this.manager.onLifecycle(() => [
|
|
319
|
+
m(() => ({ container: this._chartContainer }), ({ container: e }) => {
|
|
320
|
+
this._destroyChart(), e && (this._chartInitializationTask = U(async (i) => await D({
|
|
321
|
+
view: this.viewModel.view,
|
|
322
|
+
analysisView: this.viewModel.analysisView,
|
|
323
|
+
container: e,
|
|
324
|
+
messages: this._messages,
|
|
325
|
+
signal: i,
|
|
326
|
+
onRangeChange: (r, n) => {
|
|
327
|
+
this._hideZoomOutButton = r === 1 && n === 1;
|
|
328
|
+
},
|
|
329
|
+
onCursorPositionChange: (r, n) => {
|
|
330
|
+
const { analysisView: l } = this.viewModel;
|
|
331
|
+
l && (l.hoveredPosition = r);
|
|
332
|
+
}
|
|
333
|
+
})));
|
|
334
|
+
}, { sync: !0, initial: !0 }),
|
|
335
|
+
m(() => ({
|
|
336
|
+
chart: this._chart,
|
|
337
|
+
view: this.viewModel.view,
|
|
338
|
+
analysisView: this.viewModel.analysisView,
|
|
339
|
+
uniformScaling: this.viewModel.uniformChartScaling
|
|
340
|
+
}), ({ chart: e, view: i, analysisView: r, uniformScaling: n }) => {
|
|
341
|
+
e && (e.view = i, e.analysisView = r, e.uniformScaling = n);
|
|
342
|
+
}, { sync: !0, initial: !0 }),
|
|
343
|
+
// Make sure to destroy the chart when the component is disconnected.
|
|
344
|
+
{ remove: () => this._destroyChart() }
|
|
345
|
+
]);
|
|
346
|
+
}
|
|
347
|
+
_destroyChart() {
|
|
348
|
+
const e = this._chart;
|
|
349
|
+
this._chartInitializationTask?.abort(), this._chartInitializationTask = void 0, e?.destroy();
|
|
350
|
+
}
|
|
351
|
+
_onCancelButtonClick() {
|
|
352
|
+
this.viewModel.stop();
|
|
353
|
+
}
|
|
354
|
+
_onDoneButtonClick() {
|
|
355
|
+
this.viewModel.stop();
|
|
356
|
+
}
|
|
357
|
+
_getErrorMessage() {
|
|
358
|
+
const e = N[this.viewModel.errorState];
|
|
359
|
+
return e ? this._messages?.errors?.[e] : void 0;
|
|
360
|
+
}
|
|
361
|
+
_onSketchButtonClick() {
|
|
362
|
+
v(this.viewModel.start());
|
|
363
|
+
}
|
|
364
|
+
_onSelectButtonClick() {
|
|
365
|
+
v(this.viewModel.select());
|
|
366
|
+
}
|
|
367
|
+
_onClearButtonClick() {
|
|
368
|
+
this.viewModel.clear();
|
|
369
|
+
}
|
|
370
|
+
_onZoomOutButtonClick() {
|
|
371
|
+
this._chart?._zoomOut();
|
|
372
|
+
}
|
|
373
|
+
_onChartContainerRef(e) {
|
|
374
|
+
this._chartContainer = e;
|
|
221
375
|
}
|
|
222
376
|
render() {
|
|
223
|
-
return
|
|
224
|
-
|
|
225
|
-
[
|
|
226
|
-
[
|
|
227
|
-
|
|
377
|
+
return d`<div aria-label=${this._messages.componentLabel ?? u} class=${_({
|
|
378
|
+
container: !0,
|
|
379
|
+
[g.widget]: !0,
|
|
380
|
+
[g.widgetDisabled]: this.viewModel.state === "disabled",
|
|
381
|
+
[g.panel]: !0
|
|
382
|
+
})} role=presentation>${this._renderContentForState()}</div>`;
|
|
383
|
+
}
|
|
384
|
+
_renderContentForState() {
|
|
385
|
+
switch (this.viewModel.state) {
|
|
386
|
+
case "ready":
|
|
387
|
+
return this._renderContentForReadyState();
|
|
388
|
+
case "selecting":
|
|
389
|
+
return this._renderContentForSelectingState();
|
|
390
|
+
case "creating":
|
|
391
|
+
return this._renderContentForCreatingState();
|
|
392
|
+
case "selected":
|
|
393
|
+
return this._renderContentForSelectedState();
|
|
394
|
+
case "created":
|
|
395
|
+
return this._renderContentForCreatedState();
|
|
396
|
+
case "disabled":
|
|
397
|
+
return this._renderContentForReadyState();
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
_renderContentForReadyState() {
|
|
401
|
+
const { _messages: e, hideSelectButton: i, hideSketchButton: r } = this, { selectAvailable: n } = this.viewModel, l = !i && n;
|
|
402
|
+
let c;
|
|
403
|
+
return !r && l ? c = e.readyPrompt : r ? l ? c = e.readyPromptSelectOnly : c = e.errors?.noProfile : c = e.readyPromptCreateOnly, this._renderContent({ prompt: c, chart: !1, actions: p });
|
|
404
|
+
}
|
|
405
|
+
_renderContentForSelectingState() {
|
|
406
|
+
const { view: e } = this.viewModel;
|
|
407
|
+
if (!e)
|
|
408
|
+
return;
|
|
409
|
+
const i = this._messages[`selectingPrompt-${e.type}`];
|
|
410
|
+
return this._renderContent({
|
|
411
|
+
prompt: i,
|
|
412
|
+
chart: !1,
|
|
413
|
+
actions: [{ type: "select-cancel" }]
|
|
414
|
+
});
|
|
415
|
+
}
|
|
416
|
+
_renderContentForCreatingState() {
|
|
417
|
+
const { viewModel: e } = this, { view: i } = e;
|
|
418
|
+
if (!i)
|
|
419
|
+
return;
|
|
420
|
+
const r = e.hasVertices ? [{ type: "sketch-cancel" }, { type: "sketch-done", disabled: !e.canStopCreating }] : [{ type: "select" }, { type: "sketch", disabled: !0 }];
|
|
421
|
+
if (e.errorState === "no-valid-input") {
|
|
422
|
+
const l = this._messages[`creatingPrompt-${i.type}`];
|
|
423
|
+
return this._renderContent({
|
|
424
|
+
chart: !1,
|
|
425
|
+
actions: r,
|
|
426
|
+
prompt: l
|
|
427
|
+
});
|
|
428
|
+
}
|
|
429
|
+
const n = this._getErrorMessage();
|
|
430
|
+
return n ? this._renderContent({ chart: !1, actions: r, prompt: n }) : this._renderContent({ chart: !0, actions: r });
|
|
431
|
+
}
|
|
432
|
+
_renderContentForSelectedState() {
|
|
433
|
+
const e = this._getErrorMessage();
|
|
434
|
+
return e ? this._renderContent({ chart: !1, actions: p, prompt: e }) : this._renderContent({ chart: !0, actions: p });
|
|
435
|
+
}
|
|
436
|
+
_renderContentForCreatedState() {
|
|
437
|
+
const e = this._getErrorMessage();
|
|
438
|
+
return e ? this._renderContent({ chart: !1, actions: p, prompt: e }) : this._renderContent({ chart: !0, actions: p });
|
|
439
|
+
}
|
|
440
|
+
_renderContent(e) {
|
|
441
|
+
const { viewModel: i } = this, r = i.input != null;
|
|
442
|
+
return d`<header class="header">${h({ hidden: this._hideZoomOutButton, children: this._renderZoomOutButton() })}${h({ hidden: this.hideClearButton || !r, children: this._renderClearButton() })}${h({ hidden: this.hideSettingsButton, children: this._renderSettingsButton() })}</header><div class="main-container">${e.prompt != null ? this._renderPrompt(e.prompt) : e.chart ? this._renderChart() : void 0}</div>${h({ hidden: this.hideLegend, children: this._renderLegend() })}${this._renderActions(e)}`;
|
|
443
|
+
}
|
|
444
|
+
_renderPrompt(e) {
|
|
445
|
+
return [
|
|
446
|
+
d`<div class="prompt-container"><p class="prompt-message">${e}</p></div>`
|
|
447
|
+
];
|
|
448
|
+
}
|
|
449
|
+
_renderZoomOutButton() {
|
|
450
|
+
const e = this._messages.zoomOut ?? "";
|
|
451
|
+
return d`<calcite-action appearance=transparent icon=magnifying-glass-minus @click=${this._onZoomOutButtonClick} scale=s .text=${e} title=${e ?? u}></calcite-action>`;
|
|
452
|
+
}
|
|
453
|
+
_renderChart() {
|
|
454
|
+
if (this.hideChart)
|
|
455
|
+
return;
|
|
456
|
+
const e = this._chart;
|
|
457
|
+
return d`${this._renderSpinner({
|
|
458
|
+
size: e?.chartVisible ? "small" : "large",
|
|
459
|
+
visible: e?.spinnerVisible ?? !1
|
|
460
|
+
})}<div class="chart-container" ${S(this._onChartContainerRef)}></div>`;
|
|
461
|
+
}
|
|
462
|
+
_renderSpinner(e) {
|
|
463
|
+
const i = e.size === "small", r = e.visible ?? !0;
|
|
464
|
+
return d`<calcite-loader class=${_({
|
|
465
|
+
spinner: !0,
|
|
466
|
+
small: i,
|
|
467
|
+
visible: r
|
|
468
|
+
})} .inline=${i} label scale=s></calcite-loader>`;
|
|
469
|
+
}
|
|
470
|
+
_renderClearButton() {
|
|
471
|
+
const e = this._messages.clearProfile ?? "";
|
|
472
|
+
return d`<calcite-action appearance=transparent icon=trash @click=${this._onClearButtonClick} scale=s .text=${e} title=${e ?? u}></calcite-action>`;
|
|
473
|
+
}
|
|
474
|
+
_renderLegend() {
|
|
475
|
+
return d`<arcgis-elevation-profile-legend .effectiveUnits=${this.viewModel.effectiveUnits} .messages=${this._messages} .results=${this.viewModel.results}></arcgis-elevation-profile-legend>`;
|
|
476
|
+
}
|
|
477
|
+
_renderSettingsButton() {
|
|
478
|
+
return d`<arcgis-elevation-profile-settings .analysis=${this.viewModel.analysis} .hideUniformChartScalingToggle=${this.hideUniformChartScalingToggle} .hideUnitSelector=${this.hideUnitSelector} .messages=${this._messages} .uniformChartScaling=${this.viewModel.uniformChartScaling} .unitOptionsDistance=${this.viewModel.unitOptionsDistance} .unitOptionsElevation=${this.viewModel.unitOptionsElevation} @arcgisElevationProfileSettingsUniformChartScalingChange=${(e) => {
|
|
479
|
+
this.viewModel.uniformChartScaling = e.detail;
|
|
480
|
+
}}></arcgis-elevation-profile-settings>`;
|
|
481
|
+
}
|
|
482
|
+
_renderActions({ actions: e }) {
|
|
483
|
+
const i = this._messages, r = e.map((n) => {
|
|
484
|
+
switch (n.type) {
|
|
485
|
+
case "sketch":
|
|
486
|
+
return h({ hidden: this.hideSketchButton, children: this._renderAction({
|
|
487
|
+
action: n,
|
|
488
|
+
label: i.sketchButtonLabel,
|
|
489
|
+
primary: !0,
|
|
490
|
+
onClick: this._onSketchButtonClick
|
|
491
|
+
}) });
|
|
492
|
+
case "sketch-cancel":
|
|
493
|
+
return h({ hidden: this.hideSketchButton, children: this._renderAction({
|
|
494
|
+
action: n,
|
|
495
|
+
label: i.cancelButtonLabel,
|
|
496
|
+
primary: !1,
|
|
497
|
+
onClick: this._onCancelButtonClick
|
|
498
|
+
}) });
|
|
499
|
+
case "sketch-done":
|
|
500
|
+
return h({ hidden: this.hideSketchButton, children: this._renderAction({
|
|
501
|
+
action: n,
|
|
502
|
+
label: i.doneButtonLabel,
|
|
503
|
+
primary: !0,
|
|
504
|
+
onClick: this._onDoneButtonClick
|
|
505
|
+
}) });
|
|
506
|
+
case "select":
|
|
507
|
+
return h({ hidden: !this._selectButtonVisible, children: this._renderAction({
|
|
508
|
+
action: n,
|
|
509
|
+
label: i.selectButtonLabel,
|
|
510
|
+
primary: !1,
|
|
511
|
+
onClick: this._onSelectButtonClick
|
|
512
|
+
}) });
|
|
513
|
+
case "select-cancel":
|
|
514
|
+
return h({ hidden: !this._selectButtonVisible, children: this._renderAction({
|
|
515
|
+
action: n,
|
|
516
|
+
label: i.cancelButtonLabel,
|
|
517
|
+
primary: !1,
|
|
518
|
+
onClick: this._onCancelButtonClick
|
|
519
|
+
}) });
|
|
520
|
+
default:
|
|
521
|
+
return;
|
|
522
|
+
}
|
|
523
|
+
}).filter(Boolean);
|
|
524
|
+
return r.length ? d`<footer class="actions">${r}</footer>` : void 0;
|
|
228
525
|
}
|
|
526
|
+
_renderAction({ action: e, label: i, onClick: r, primary: n }) {
|
|
527
|
+
return d`<calcite-button .appearance=${n ? "solid" : "outline-fill"} class="action-button" .disabled=${e.disabled || void 0} @click=${r}>${i}</calcite-button>`;
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
function h(t) {
|
|
531
|
+
return t.hidden ? void 0 : t.children;
|
|
229
532
|
}
|
|
230
|
-
|
|
533
|
+
const p = [{ type: "select" }, { type: "sketch" }], N = {
|
|
534
|
+
none: void 0,
|
|
535
|
+
"no-valid-input": "noProfile",
|
|
536
|
+
"no-available-profiles": "noProfile",
|
|
537
|
+
"too-complex": "tooComplex",
|
|
538
|
+
unknown: "unknown",
|
|
539
|
+
"invalid-geometry": "invalidGeometry"
|
|
540
|
+
};
|
|
541
|
+
x("arcgis-elevation-profile-next", H);
|
|
231
542
|
export {
|
|
232
|
-
|
|
543
|
+
H as ArcgisElevationProfileNext
|
|
233
544
|
};
|