@arcgis/map-components 5.2.0-next.109 → 5.2.0-next.110
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/{GYKLS7BF.js → 2DO76JGB.js} +1 -1
- package/dist/cdn/{XQYCY3SO.js → 2KZ54377.js} +1 -1
- package/dist/cdn/{O5MC4GSN.js → 2RSBXTPW.js} +1 -1
- package/dist/cdn/{KLQ4AHCM.js → 2SU665WO.js} +1 -1
- package/dist/cdn/{TL3BHRM5.js → 2UITSTVB.js} +1 -1
- package/dist/cdn/{6KR5NUQH.js → 2YBIOK75.js} +1 -1
- package/dist/cdn/{K7YAABGV.js → 35MV5ARD.js} +1 -1
- package/dist/cdn/{BZGWUC7W.js → 36OTNB5O.js} +1 -1
- package/dist/cdn/{XJI5IX7X.js → 3756VDQU.js} +1 -1
- package/dist/cdn/{76F6FZRM.js → 37WTHXKN.js} +1 -1
- package/dist/cdn/{QXQQRABH.js → 3COXTA43.js} +1 -1
- package/dist/cdn/{HEJKNCT3.js → 3EWJ3VWQ.js} +1 -1
- package/dist/cdn/{A6PF7XP3.js → 3LLSKZP3.js} +1 -1
- package/dist/cdn/{WCHOVD3X.js → 3P32KF3U.js} +1 -1
- package/dist/cdn/{JAS7ZU7D.js → 3XGFNFJZ.js} +1 -1
- package/dist/cdn/{EFKDUIV3.js → 44OU6U2B.js} +1 -1
- package/dist/cdn/{3OCIVKEG.js → 46V55DCJ.js} +1 -1
- package/dist/cdn/{QGCUTIEK.js → 4A6PD3J7.js} +1 -1
- package/dist/cdn/{RY6OUMW3.js → 4DHQTKGK.js} +1 -1
- package/dist/cdn/{SOCF5LUG.js → 4HQU43ZT.js} +1 -1
- package/dist/cdn/{YP5F4QPR.js → 4NXHNK7Q.js} +1 -1
- package/dist/cdn/{NGRE377Y.js → 4OUXORZF.js} +1 -1
- package/dist/cdn/{G7IW33OH.js → 4QLCH54V.js} +1 -1
- package/dist/cdn/{2P55CEYY.js → 4QORNXMT.js} +1 -1
- package/dist/cdn/{ESJNQPRL.js → 53IRBPTL.js} +1 -1
- package/dist/cdn/{MCC4KEVW.js → 57WFUSGF.js} +1 -1
- package/dist/cdn/{336AFXZY.js → 5J2DJRO2.js} +1 -1
- package/dist/cdn/{ADUYKBEG.js → 5M3X2JDH.js} +1 -1
- package/dist/cdn/{AKYYKZJW.js → 5N6T6F3O.js} +1 -1
- package/dist/cdn/{VBBLPKUM.js → 5NUVRUVJ.js} +1 -1
- package/dist/cdn/{RNJ7OVWP.js → 5R6GEYRK.js} +1 -1
- package/dist/cdn/{5NZQBTEA.js → 5SU2WJLV.js} +1 -1
- package/dist/cdn/{72JATOVU.js → 5YCZ6WCS.js} +1 -1
- package/dist/cdn/{HZ2G6JVY.js → 63JBTP6W.js} +1 -1
- package/dist/cdn/{ENN2G6KY.js → 64A7DEAH.js} +1 -1
- package/dist/cdn/66N2GD3G.js +2 -0
- package/dist/cdn/{6YMTY2YD.js → 6GCV73ZT.js} +1 -1
- package/dist/cdn/{432M5FFW.js → 6I4BYACE.js} +1 -1
- package/dist/cdn/{PQUQG2X5.js → 6QMDEHMD.js} +1 -1
- package/dist/cdn/{5CUV22O6.js → 7FPLBSNW.js} +1 -1
- package/dist/cdn/{63TVHDSQ.js → 7H3DB74N.js} +1 -1
- package/dist/cdn/{JJGJDAWE.js → 7TV5T7QI.js} +1 -1
- package/dist/cdn/{6YU6AX5Q.js → 7VWLW24H.js} +1 -1
- package/dist/cdn/{CET7H2EA.js → A3RZLV73.js} +1 -1
- package/dist/cdn/{Q6Z4UC7E.js → A76ATXEQ.js} +1 -1
- package/dist/cdn/{QUFT5RZZ.js → AKBDQKSI.js} +1 -1
- package/dist/cdn/{2JX7D3WZ.js → AL2WKZR5.js} +1 -1
- package/dist/cdn/{53F4WGRN.js → APO4UXMF.js} +1 -1
- package/dist/cdn/{APT5Q2YS.js → AUETQR5T.js} +1 -1
- package/dist/cdn/{ZRP5VRSA.js → AWHZZLXZ.js} +1 -1
- package/dist/cdn/{V6RMPQTY.js → AXDXX5K6.js} +1 -1
- package/dist/cdn/{RIACWHWP.js → B2IAVMYR.js} +1 -1
- package/dist/cdn/{CYXMCHV6.js → BLHNQPFT.js} +1 -1
- package/dist/cdn/{ZDUSPOAH.js → BMFWQYDT.js} +1 -1
- package/dist/cdn/{PFIT42PK.js → BOZVF5EL.js} +1 -1
- package/dist/cdn/{XDVNRO2B.js → BQAMCCUR.js} +1 -1
- package/dist/cdn/{OYR2BS5M.js → C3HQBKB7.js} +1 -1
- package/dist/cdn/{LXUDCLWO.js → CAUIUSB6.js} +1 -1
- package/dist/cdn/{N3LOITL3.js → CFM6Q6QR.js} +1 -1
- package/dist/cdn/{KAHWMOS2.js → CYLGGQOU.js} +1 -1
- package/dist/cdn/{UZBZV6W6.js → CZ5UJMHM.js} +1 -1
- package/dist/cdn/{YII3JEOW.js → CZP5TXWA.js} +1 -1
- package/dist/cdn/{ENCCEEJQ.js → CZY4XQ6R.js} +1 -1
- package/dist/cdn/{YP5MOATQ.js → D5I4FT6B.js} +1 -1
- package/dist/cdn/{5CEVLYMV.js → D7JTITKB.js} +1 -1
- package/dist/cdn/{ICDNO4GV.js → D7UGWYJ7.js} +1 -1
- package/dist/cdn/{ZC2YX5NW.js → DIOI3GAG.js} +1 -1
- package/dist/cdn/{BNGQ45X2.js → DN6BWCPL.js} +1 -1
- package/dist/cdn/{M6PC4HK3.js → DOOJ4KZC.js} +1 -1
- package/dist/cdn/{JEC6735P.js → DRT6YF2C.js} +1 -1
- package/dist/cdn/{CCMIR5F5.js → DTUSCYK3.js} +1 -1
- package/dist/cdn/DV6IEROR.js +2 -0
- package/dist/cdn/{CZBASX6A.js → DWI64JPC.js} +1 -1
- package/dist/cdn/{4EKG4LC2.js → E7XCBQHK.js} +1 -1
- package/dist/cdn/{22C6DHTG.js → EDSBUG3P.js} +1 -1
- package/dist/cdn/{CQL7U6XL.js → EDTFC52Z.js} +1 -1
- package/dist/cdn/{O2GNLGBY.js → EGDL3WNU.js} +1 -1
- package/dist/cdn/{3FU3ED4Q.js → EN2GJ3CQ.js} +1 -1
- package/dist/cdn/{ETASGMSM.js → EN5VHOWB.js} +1 -1
- package/dist/cdn/{MM6UYRSK.js → EY4TJMGT.js} +1 -1
- package/dist/cdn/{XGBMP2LT.js → EZTFGVFO.js} +1 -1
- package/dist/cdn/{AQN7FJVR.js → F67HSLMH.js} +1 -1
- package/dist/cdn/{XHAFVPEU.js → FAI6OGRG.js} +1 -1
- package/dist/cdn/{A3Y3WUPP.js → FGXOZY5V.js} +1 -1
- package/dist/cdn/{H35BRZNP.js → FNNUL4J5.js} +1 -1
- package/dist/cdn/FNTOIL4D.js +2 -0
- package/dist/cdn/{UHW72SBS.js → FR4LZGHG.js} +1 -1
- package/dist/cdn/{6KZ75Z3M.js → FVVN2IRD.js} +1 -1
- package/dist/cdn/{AILE3CDA.js → GHYY7IC3.js} +1 -1
- package/dist/cdn/{53Q4X6GD.js → GJ4GPLO5.js} +1 -1
- package/dist/cdn/{YNWUCCX2.js → GMH447GP.js} +1 -1
- package/dist/cdn/{FEC6JN7U.js → GNSW6P7K.js} +1 -1
- package/dist/cdn/{A7KCWK5O.js → GTKAQ2TV.js} +1 -1
- package/dist/cdn/{ZCG2R7MR.js → GUKBUKX3.js} +1 -1
- package/dist/cdn/{NL3ICKTG.js → GV2MGKQN.js} +1 -1
- package/dist/cdn/{4MCWJFV4.js → H66RBIBR.js} +1 -1
- package/dist/cdn/{W7KJM3N6.js → HAW4K5EZ.js} +1 -1
- package/dist/cdn/{ENBFL3Z3.js → HBSGE2KS.js} +1 -1
- package/dist/cdn/{WQGUFNE4.js → HH3GLPQE.js} +1 -1
- package/dist/cdn/{A4WIXGVJ.js → HO5QMOYM.js} +1 -1
- package/dist/cdn/{SNVII5PB.js → HRWFFMAL.js} +1 -1
- package/dist/cdn/{DX6APBUN.js → HWH7Q6FB.js} +1 -1
- package/dist/cdn/{KFA2T3RY.js → HWP64DDT.js} +1 -1
- package/dist/cdn/{CY54D6B2.js → I34PJ3KY.js} +1 -1
- package/dist/cdn/{TCLA4VGW.js → I4G2JFOM.js} +1 -1
- package/dist/cdn/{MQXRWP2H.js → I7ENSEQQ.js} +1 -1
- package/dist/cdn/{4BNLDTDC.js → IAZFRYC4.js} +1 -1
- package/dist/cdn/{GHIFPTA5.js → ICWUIDDR.js} +1 -1
- package/dist/cdn/{ACKIL7LV.js → IFD5SJHS.js} +1 -1
- package/dist/cdn/{EVKHJ2WO.js → IICP6TEK.js} +1 -1
- package/dist/cdn/{ISRIVRY4.js → J4FI675H.js} +1 -1
- package/dist/cdn/{WZNJ6F43.js → J4LLVNZI.js} +1 -1
- package/dist/cdn/{WUEHF6NW.js → JEQERLV7.js} +1 -1
- package/dist/cdn/{36SJXUCR.js → JIUQ2MYX.js} +1 -1
- package/dist/cdn/{TNWVMOUD.js → JIUYWHMY.js} +1 -1
- package/dist/cdn/{ET6KXGPH.js → JQ6KVXC5.js} +1 -1
- package/dist/cdn/{FLGJJRFR.js → K24A4HOF.js} +1 -1
- package/dist/cdn/{5YC3JGGT.js → KIRGDRFT.js} +1 -1
- package/dist/cdn/{RKOEMHQY.js → KJJZRW6J.js} +1 -1
- package/dist/cdn/{VBTI2QSM.js → KKPNC232.js} +1 -1
- package/dist/cdn/{5BGITT5F.js → KKQ3ACC5.js} +1 -1
- package/dist/cdn/{BYANW43A.js → KNRQ2F6D.js} +1 -1
- package/dist/cdn/{XIRBLJ5R.js → KNX5HZGN.js} +1 -1
- package/dist/cdn/{KW3AQ4LE.js → KOR47IXI.js} +1 -1
- package/dist/cdn/{HIIJTZPP.js → KPFBVAKN.js} +1 -1
- package/dist/cdn/{GZYDNFNM.js → KQEOXXIJ.js} +1 -1
- package/dist/cdn/{BAPZCO64.js → KR7K2J2H.js} +1 -1
- package/dist/cdn/KSMKKJXJ.js +2 -0
- package/dist/cdn/{4R4AAPXG.js → KU37AO7J.js} +1 -1
- package/dist/cdn/{VW7LE4KP.js → KYH6PAOO.js} +1 -1
- package/dist/cdn/{KS7YKY4X.js → KYTRFWGZ.js} +1 -1
- package/dist/cdn/{XDP2FM73.js → L6CP7445.js} +1 -1
- package/dist/cdn/{4JKDURDJ.js → L7QRRMGT.js} +1 -1
- package/dist/cdn/{D6Y63G5R.js → LATAWKE3.js} +1 -1
- package/dist/cdn/{QHCWHZ5S.js → LQEUZRIS.js} +1 -1
- package/dist/cdn/{D4EDMWLE.js → LQU2J7A6.js} +1 -1
- package/dist/cdn/{PKSKD6LC.js → LQVRN5GK.js} +1 -1
- package/dist/cdn/{NWM44AL3.js → LVHDT4DO.js} +1 -1
- package/dist/cdn/{5FWENEVA.js → LX23TNEM.js} +1 -1
- package/dist/cdn/{PMTLMEXF.js → M23VRNVD.js} +1 -1
- package/dist/cdn/{4UCGY6KS.js → MFPOH2KX.js} +1 -1
- package/dist/cdn/{ZN7OF3X7.js → MHBU2W7T.js} +1 -1
- package/dist/cdn/{NSH3BQBJ.js → MHRMU4DC.js} +1 -1
- package/dist/cdn/{JHX4N35S.js → MIAIIQGU.js} +1 -1
- package/dist/cdn/{YQTPLDGF.js → MUFZWCGR.js} +1 -1
- package/dist/cdn/{TQCXFWCA.js → MWJWKG2I.js} +1 -1
- package/dist/cdn/{P3LGX6O7.js → N4BV7HE2.js} +1 -1
- package/dist/cdn/{IUNS22KV.js → NDYPQNRE.js} +1 -1
- package/dist/cdn/{4MWTVD4F.js → NG242ROT.js} +1 -1
- package/dist/cdn/{W3DKZ26B.js → NGK3WT5D.js} +1 -1
- package/dist/cdn/{7FN3LJLG.js → NOUENLHY.js} +1 -1
- package/dist/cdn/{KFFU3G3S.js → NQM3V5OD.js} +1 -1
- package/dist/cdn/{LXLTLU2X.js → OAQLYTXL.js} +1 -1
- package/dist/cdn/{QFJL3I7Z.js → ODWVHMJF.js} +1 -1
- package/dist/cdn/{2MB4ALXG.js → ONHUE4I7.js} +1 -1
- package/dist/cdn/{B2YXGSVS.js → ONLQP6HM.js} +1 -1
- package/dist/cdn/{ANWWN4ZK.js → OOB3UCSG.js} +1 -1
- package/dist/cdn/{SNQ57WCF.js → P3ETMB3K.js} +1 -1
- package/dist/cdn/{Q7WYIKHE.js → PDR3X32P.js} +1 -1
- package/dist/cdn/{PLFDNANE.js → PGFYIHWY.js} +1 -1
- package/dist/cdn/{6LZN2CIM.js → PNMF55SN.js} +1 -1
- package/dist/cdn/{HP4UWONT.js → PY2P7UXG.js} +1 -1
- package/dist/cdn/{SCWRONFT.js → Q4VYTMFM.js} +1 -1
- package/dist/cdn/{EEMIOARW.js → Q5GH3AS2.js} +1 -1
- package/dist/cdn/{V2NXS6N5.js → QDAGCFYS.js} +1 -1
- package/dist/cdn/{2AEV3R7B.js → QE3GCUUF.js} +1 -1
- package/dist/cdn/{FK4TPFG6.js → QJ2RBJVE.js} +1 -1
- package/dist/cdn/{F3AL3V7M.js → QPXPOX5V.js} +1 -1
- package/dist/cdn/{R6KT5DMH.js → QQBPYVK7.js} +1 -1
- package/dist/cdn/{HZ5TI5EQ.js → QT72URYJ.js} +1 -1
- package/dist/cdn/{U7IWBVPL.js → QZEOZYWP.js} +1 -1
- package/dist/cdn/{XROVQNMM.js → R67SG7JY.js} +1 -1
- package/dist/cdn/RBAD6ZAC.js +2 -0
- package/dist/cdn/{6UQURBNL.js → REMBI4YT.js} +1 -1
- package/dist/cdn/{M46QTP4B.js → RF4WDU6M.js} +1 -1
- package/dist/cdn/{66LTJSVN.js → RINU4G7C.js} +1 -1
- package/dist/cdn/{IQC2Z35U.js → RPBPC667.js} +1 -1
- package/dist/cdn/S7KOCJ2V.js +2 -0
- package/dist/cdn/{ZLRNK6A6.js → SDSC2VEY.js} +1 -1
- package/dist/cdn/{PGHDIUVC.js → SMFVYWST.js} +1 -1
- package/dist/cdn/{S7O6Q5FL.js → SUMWYYWD.js} +1 -1
- package/dist/cdn/{5W2DLSL7.js → SUZSV5HG.js} +1 -1
- package/dist/cdn/{4Y5TMMVK.js → SW35H74D.js} +1 -1
- package/dist/cdn/{6QPWIZBB.js → T3FLTZPV.js} +1 -1
- package/dist/cdn/{CJMZED4J.js → T3PYCVD2.js} +1 -1
- package/dist/cdn/{FSSKGZFW.js → TPWONZOT.js} +1 -1
- package/dist/cdn/{K6D6SEB2.js → TUV2ZUII.js} +1 -1
- package/dist/cdn/{6BT22SMJ.js → TWSIDKAY.js} +1 -1
- package/dist/cdn/{DUBL2BP2.js → TY7SR7RT.js} +1 -1
- package/dist/cdn/{IIFQAQIE.js → TZCGZMQF.js} +1 -1
- package/dist/cdn/{W7SYOJYR.js → U2YB2KXD.js} +1 -1
- package/dist/cdn/{3PY7ZKWM.js → UFLNPLKG.js} +1 -1
- package/dist/cdn/{IQ7II2NQ.js → UNP6V754.js} +1 -1
- package/dist/cdn/{GVU5JQ6O.js → US6OTQQW.js} +1 -1
- package/dist/cdn/{QCWQMXZS.js → V4LYKRHX.js} +1 -1
- package/dist/cdn/{2MG7DELG.js → V5EF7QMF.js} +1 -1
- package/dist/cdn/{LB6EOBBU.js → V5SKEBVP.js} +1 -1
- package/dist/cdn/{M7UGJXFN.js → VAUTZPJM.js} +1 -1
- package/dist/cdn/{53O2N4JQ.js → VCESUV4Y.js} +1 -1
- package/dist/cdn/{PJBHBHIR.js → VF76D5JD.js} +1 -1
- package/dist/cdn/{X7ETUXUI.js → VFM4G4QD.js} +1 -1
- package/dist/cdn/{6WW5JHHK.js → VSQ6XF6J.js} +1 -1
- package/dist/cdn/{2LX242K3.js → VTXG5AKD.js} +1 -1
- package/dist/cdn/{6ECDGJ6F.js → VYVOEI5X.js} +1 -1
- package/dist/cdn/{WQSSBN6Y.js → W36KFT44.js} +1 -1
- package/dist/cdn/{25PLHIAO.js → WA53OYU5.js} +1 -1
- package/dist/cdn/{4T7GL4RH.js → WE2GCN2O.js} +1 -1
- package/dist/cdn/{4UHMEUDF.js → WFZHXRJS.js} +1 -1
- package/dist/cdn/{IWZLNOUW.js → WLE3NI2C.js} +1 -1
- package/dist/cdn/{37R7ODHI.js → WNKDZ6CS.js} +1 -1
- package/dist/cdn/{WWALUTCP.js → WNYBWOMJ.js} +1 -1
- package/dist/cdn/{OTB4PNZX.js → WSTSRANF.js} +1 -1
- package/dist/cdn/{6Y6PH2ZF.js → WTAK75A7.js} +1 -1
- package/dist/cdn/{534YC6RE.js → WWXOLNVA.js} +1 -1
- package/dist/cdn/{BJUVYLLY.js → XDOFECT4.js} +1 -1
- package/dist/cdn/{DGRGFHJW.js → XGKEMO2Z.js} +1 -1
- package/dist/cdn/{VE4SZFU3.js → XJDACZMI.js} +1 -1
- package/dist/cdn/{43252IPH.js → XPCTOHUR.js} +1 -1
- package/dist/cdn/{CENY4RUV.js → XPL3W54C.js} +1 -1
- package/dist/cdn/{IMHRDTF4.js → XVKP7S37.js} +1 -1
- package/dist/cdn/{2NF2PXOL.js → XYQPGCHX.js} +1 -1
- package/dist/cdn/{3VD4KQ6Y.js → XYQZYGWJ.js} +1 -1
- package/dist/cdn/{PLCN6NDR.js → Y2HHAELS.js} +1 -1
- package/dist/cdn/{QKV3QG3M.js → YMM6X7XV.js} +1 -1
- package/dist/cdn/{ONKQQBGX.js → YT7FHHUP.js} +1 -1
- package/dist/cdn/{HYJ3ATLK.js → YTJGD2W3.js} +1 -1
- package/dist/cdn/{JNQ36OXH.js → Z45KTQXG.js} +1 -1
- package/dist/cdn/{ULDH2VAY.js → Z4GIERIV.js} +1 -1
- package/dist/cdn/{TSVP7GS3.js → Z5662OCH.js} +1 -1
- package/dist/cdn/{2PS2P6F5.js → ZADX4BRJ.js} +1 -1
- package/dist/cdn/{4NKECHTT.js → ZCAKKXF4.js} +1 -1
- package/dist/cdn/{Y4LYAD4W.js → ZD6U62UH.js} +1 -1
- package/dist/cdn/{7QW75CEY.js → ZDLE6XVT.js} +1 -1
- package/dist/cdn/ZE74GPMH.js +2 -0
- package/dist/cdn/{NAKU3HPT.js → ZF7Q6JNG.js} +1 -1
- package/dist/cdn/{23SQXVZZ.js → ZLLQUINC.js} +1 -1
- package/dist/cdn/{EPIMYANO.js → ZNQV6S3B.js} +1 -1
- package/dist/cdn/{YSA4NE2J.js → ZRPYF6IU.js} +1 -1
- package/dist/cdn/{7EMQGYCP.js → ZRQN6ULW.js} +1 -1
- package/dist/cdn/{WKVQWXYK.js → ZSU7OXFW.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/components/arcgis-legend-classic-view/customElement.js +15 -15
- package/dist/components/arcgis-presentation/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/package.json +5 -5
- package/dist/cdn/4PYKHA5Z.js +0 -2
- package/dist/cdn/6NW3PKBK.js +0 -2
- package/dist/cdn/IYUXLV3U.js +0 -2
- package/dist/cdn/SQ4LXJXP.js +0 -2
- package/dist/cdn/UZ4NHKPM.js +0 -2
- package/dist/cdn/VNQ63PPJ.js +0 -2
- package/dist/cdn/YZ2IL7ZF.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
|
|
2
|
-
import d from"./
|
|
2
|
+
import d from"./WWXOLNVA.js";import{a as c}from"./WNKDZ6CS.js";import b from"./L3ETMNA2.js";import{O as g,R as h,T as y,a as f,b as a}from"./T3FLTZPV.js";import"./DUIJO5RQ.js";export default $arcgis.t(([{stripHTML:$},{formatNumber:F,substitute:b},{f:u},w])=>{var _=f`:host{position:relative;flex:1 1 auto}.list-item--hidden{display:none}.feature-observer{bottom:var(--calcite-spacing-xxl);position:relative;text-align:center;z-index:2}.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.notice-container{margin-bottom:var(--calcite-spacing-xs)}`,A="nested",p=class extends w{constructor(){super(...arguments),this.autoDestroyDisabled=!1,this.displayCount=3,this.useFeatureNextFlowItem=!1,this.flowType="feature-utility-network-association-type"}static{this.properties={autoDestroyDisabled:5,description:1,displayCount:9,endIndex:32,flowItems:0,useFeatureNextFlowItem:5,flowType:1,heading:1,map:0,referenceElement:1,spatialReference:0,timeZone:1,view:0}}static{this.styles=_}get endIndex(){let{currentFeaturePage:e,featuresPerPage:t,maxFeatureCount:s}=this;return Math.min(e*t,s)}async destroy(){await this.manager.destroy()}_featureViewModelMatch(e,t){let s=e.graphic,i=s?.layer,o=null;u(i)&&i.parent?o=i.parent.globalIdField??null:i&&"globalIdField"in i&&(o=i.globalIdField);let r=o?s?.getAttribute(o):null,l=t.graphic,n=l?.layer,d=null;u(n)&&n.parent?d=n.parent.globalIdField??null:n&&"globalIdField"in n&&(d=n.globalIdField);let m=d?l?.getAttribute(d):null;return!!(r&&m&&r===m)}_findFlowItem(e){return this.flowItems?.findIndex(t=>{if(t.flowType!=="feature-association")return!1;let s=t.viewModel;return this._featureViewModelMatch(s,e)})??-1}_formatPercentAlong(e){let{percentAlong:t}=e;return t==null?"":F(t,{style:"percent",maximumFractionDigits:2})}async _handleFeatureClick(e,t,s){let{flowItems:i}=this;if(e){i?.destroyAll();return}if(t<0||!i){await this._selectAssociation(s);return}for(;i.length>t+1;)i.pop()}_isConnectivityAssociation(e){let{associationType:t}=e;return t==="connectivity"||t==="junction-junction-connectivity"||t==="junction-edge-from-connectivity"||t==="junction-edge-midspan-connectivity"||t==="junction-edge-to-connectivity"}_isConnectivityMidspanAssociation(e){return e.associationType==="junction-edge-midspan-connectivity"}_isParentFeature(e){let t=this.flowItems?.getItemAt(0);if(!t)return!1;let s=t.parentFeatureViewModel;return this._featureViewModelMatch(s,e)}async _selectAssociation(e){let{flowItems:t}=this;if(!t)return;let s=this.useFeatureNextFlowItem?h(c(this.parentFeatureViewModel,a`<arcgis-feature-next .autoDestroyDisabled=${this.autoDestroyDisabled} .flowItems=${t} .flowType=${"feature-association"} .graphic=${e.graphic} .map=${this.map} .referenceElement=${this.referenceElement} show-utility-network-content .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature-next>`)):h(c(this.parentFeatureViewModel,a`<arcgis-feature .autoDestroyDisabled=${this.autoDestroyDisabled} .flowItems=${t} .flowType=${"feature-association"} .graphic=${e.graphic} .map=${this.map} .referenceElement=${this.referenceElement} show-utility-network-content .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature>`));t.push(s)}_showAllAssociations(e){let{flowItems:t,description:s}=this;if(!t||!e)return;this.showAllEnabled=!0;let i=e?.title??"";t.push(h(a`<arcgis-feature-utility-network-association-list .autoDestroyDisabled=${this.autoDestroyDisabled} .associationViewModels=${this.associationViewModels} .description=${s} .flowItems=${t} .flowType=${this.flowType} .heading=${i} .messages=${this.messages} .parentFeatureViewModel=${this.parentFeatureViewModel} .referenceElement=${this.referenceElement} .selectedLayer=${e} .showAllEnabled=${this.showAllEnabled} .useFeatureNextFlowItem=${this.useFeatureNextFlowItem}></arcgis-feature-utility-network-association-list>`))}render(){let{associationViewModels:e,state:t}=this,s=this.selectedLayer?.title??this.messages?.noTitle??"";return a`<div class="root">${t==="loading"||t==="querying"?this._renderLoading():a`<calcite-list .displayMode=${A} .filterEnabled=${this.showAllEnabled&&!!this.selectedLayer} .filterLabel=${this.messages?.associationFilterPlaceholder} .filterPlaceholder=${this.messages?.associationFilterPlaceholder} .label=${s}>${this.showAllEnabled&&this.selectedLayer?a`${this._renderFeatureCountWarning()}${this._renderAssociatedFeatureListPage()}${this._renderFeatureObserver()}`:Array.from(e.keys(),i=>this._renderTypeList(i))}</calcite-list>`}</div>`}_renderAssociatedFeature(e){let{featureViewModel:t,title:s}=e,i=this.state==="loading",o=this._findFlowItem(t),r=o<0&&this._isParentFeature(t),l=r||o>=0,n=`associated-feature-${e.association.globalId}`;return a`<calcite-list-item class=${g(i?"list-item--hidden":"")} .description=${$(e.terminalName??"")} .label=${$(s)} @calciteListItemSelect=${async()=>await this._handleFeatureClick(r,o,t)}>${this._isConnectivityAssociation(e.association)?this._renderConnectivityIcon(e.association.associationType,n):null}${this._isConnectivityMidspanAssociation(e.association)?a`<calcite-chip .label=${this._formatPercentAlong(e.association)} scale=s slot=content-end>${this._formatPercentAlong(e.association)}</calcite-chip>`:null}${this._renderChevronIconNode(l)}</calcite-list-item>`}_renderAssociatedFeatureList(e){return e.toArray().map(t=>this._renderAssociatedFeature(t))}_renderAssociatedFeatureListPage(){let e=this.associationViewModels.get(this.selectedLayer).slice(0,this.endIndex);return[...this._renderTooltips(e),...this._renderAssociatedFeatureList(e)]}_renderChevronIconNode(e){return a`<calcite-icon flip-rtl .icon=${e?"move-up":"chevron-right"} scale=s slot=content-end></calcite-icon>`}_renderItemTooltip(e){let{tooltipReferenceMap:t}=this,s=`associated-feature-${e.association.globalId}`;return this._isConnectivityAssociation(e.association)?a`<calcite-tooltip overlay-positioning=fixed .referenceElement=${t.get(s)}>${this.getConnectivityTooltip(e.association.associationType)}</calcite-tooltip>`:null}_renderTypeList(e){let{messages:t}=this,{displayCount:s}=this,i=this.associationViewModels.get(e),o=i.slice(0,s),r=o.length<i.length,l=b(t?.numberRecords??"",{number:i.length.toString()}),n=t?.showAll??"";return c("show-all",a`<calcite-list-item expanded .label=${e.title} .value=${e.id}><calcite-chip .label=${String(i.length)} scale=s slot=content-end>${i.length}</calcite-chip><calcite-list .group=${e.id} .label=${e.title??""}>${[this._renderTooltips(o),this._renderAssociatedFeatureList(o)]}${r?c("show-all-item",a`<calcite-list-item .description=${l} .label=${n} @calciteListItemSelect=${()=>this._showAllAssociations(e)}><calcite-icon icon=list scale=s slot=content-end></calcite-icon></calcite-list-item>`):null}</calcite-list></calcite-list-item>`)}_renderTooltips(e){return e.toArray().map(t=>this._renderItemTooltip(t))}};y("arcgis-feature-utility-network-association-list",p);return p},"applications/Components/stringUtils","intl",b,d)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
|
|
2
|
-
import{a as S}from"./5A3LVD4P.js";import{a as f,d as h,i as z}from"./DSAJ2RIZ.js";import{a as $}from"./GBUSRXLN.js";import k from"./XROVQNMM.js";import{a as m}from"./JCDJCRWD.js";import j from"./TQCXFWCA.js";import"./Q5TD3W4O.js";import{a as p}from"./D4EDMWLE.js";import i from"./432M5FFW.js";import{a as C}from"./6YMTY2YD.js";import{a as g}from"./X3ZN3AMW.js";import e from"./Y4LYAD4W.js";import c from"./PQUQG2X5.js";import{g as M}from"./M7UGJXFN.js";import"./A3Y3WUPP.js";import a from"./36SJXUCR.js";import"./FWR73QLI.js";import"./YQTPLDGF.js";import{N as _,O as u,Q as x,T as b,a as y,b as d,w as D}from"./6QPWIZBB.js";import"./DUIJO5RQ.js";export default $arcgis.t(([A,{property:r,subclass:H},{watch:k,whenOnce:j},{forceInteractive:U},,,,O,,T])=>{var B=y`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}:host{position:relative;width:var(--arcgis-internal-panel-width, 300px)}.root{--section-internal-gap: var(--calcite-spacing-md);display:flex;flex-direction:column;gap:var(--calcite-spacing-lg);min-width:var(--arcgis-internal-panel-min-width, 300px);overflow:var(--arcgis-internal-panel-overflow, visible);height:fit-content}:host([visual-scale="s"]) .root{--section-internal-gap: var(--calcite-spacing-sm)}:host([visual-scale="l"]) .root{--section-internal-gap: var(--calcite-spacing-lg)}.time-range-section arcgis-time-of-day-slider{margin-block-end:var(--section-internal-gap)}.time-range-heading{display:flex;align-items:center;gap:var(--calcite-spacing-sm);margin-block-end:var(--calcite-spacing-sm);.esri-widget__heading{margin-block-end:0}arcgis-time-zone-chip{margin-inline-start:auto}}.time-range-section calcite-label:last-child,.visualization-options-section calcite-label:last-child{--calcite-label-margin-bottom: 0}.date-picker{flex-grow:1;display:block}.visualization-options{flex-direction:column;display:flex;gap:var(--section-internal-gap)}.hidden-config{display:none}`,F=Object.defineProperty,K=Object.getOwnPropertyDescriptor,a=(e,i,t,n)=>{for(var s=n>1?void 0:n?K(i,t):i,l=e.length-1,c;l>=0;l--)(c=e[l])&&(s=(n?c(i,t,s):c(s))||s);return n&&s&&F(i,t,s),s},Z=Symbol("interactiveHandle"),o=class extends T{constructor(){super(...arguments),this.supportedViewType="3d",this.unsupportedErrorMessage="The Shadow Cast component is only supported in 3D views.",this.shouldForceInteractive=!1,this.timeZoneMode="offset",this.minMinDuration=0,this.maxMinDuration=h(8,"hours","milliseconds"),this.hideShadowDurationTooltip=!1}constructAnalysis(){return new A}initialize(){this.addHandles([k(()=>({analysisView:this.analysisView,tooltipVisible:!this.hideShadowDurationTooltip}),({analysisView:e,tooltipVisible:i})=>{this.removeHandles(Z),e&&(e.interactive=i,i&&this.addHandles(U(e),Z))},{sync:!0,initial:!0}),k(()=>({analysis:this.analysis,analysisTimeZone:this.analysis.timeZone,timeZone:this.view?.timeZone??f,timeZoneMode:this.timeZoneMode}),({analysis:e,analysisTimeZone:i,timeZone:t,timeZoneMode:n})=>{let s=this._viewTimeZoneSync;if(s&&(n!=="region"||s.analysis!==e)&&this._clearViewTimeZoneSync(),n!=="region")return;let l=this._viewTimeZoneSync;l&&(i!==l.timeZone?this._clearViewTimeZoneSync():t!==l.timeZone&&(l.timeZone=t,e.timeZone=t)),!this._viewTimeZoneSync&&e.timeZone==null&&(this._viewTimeZoneSync={analysis:e,originalTimeZone:i,timeZone:t},e.timeZone=t)},{sync:!0,initial:!0}),$(()=>this._clearViewTimeZoneSync())])}_clearViewTimeZoneSync(){let e=this._viewTimeZoneSync;this._viewTimeZoneSync=void 0,e&&e.analysis.timeZone===e.timeZone&&(e.analysis.timeZone=e.originalTimeZone)}get date(){return this.analysis.date}set date(e){this.analysis.date=e}get discreteColor(){return this.analysis.discreteOptions.color}set discreteColor(e){this.analysis.discreteOptions.color=e}get discreteInterval(){return this.analysis.discreteOptions.interval}set discreteInterval(e){this.analysis.discreteOptions.interval=e}get totalDurationColor(){return this.analysis.totalDurationOptions.color}set totalDurationColor(e){this.analysis.totalDurationOptions.color=e}get totalDurationMode(){return this.analysis.totalDurationOptions.mode}set totalDurationMode(e){this.analysis.totalDurationOptions.mode=e}get localDate(){return z(this.view,this.effectiveUtcOffset)}get mode(){return this.analysis.mode}set mode(e){this.analysis.mode=e}get visualizeSunlight(){return this.analysis.visualizeSunlight}set visualizeSunlight(e){this.analysis.visualizeSunlight=e}get startTimeOfDay(){return this.analysis.startTimeOfDay}set startTimeOfDay(e){this.analysis.startTimeOfDay=e}get endTimeOfDay(){return this.analysis.endTimeOfDay}set endTimeOfDay(e){this.analysis.endTimeOfDay=e}get state(){return this.view?.ready&&this.analysisView?"ready":"disabled"}get timeZone(){return this.analysis.timeZone??(this.timeZoneMode==="region"?this.view?.timeZone??f:null)}set timeZone(e){this.analysis.timeZone=e}get minDurationColor(){return this.analysis.minDurationOptions.color}set minDurationColor(e){this.analysis.minDurationOptions.color=e}get minDuration(){return this.analysis.minDurationOptions.minDuration}set minDuration(e){this.analysis.minDurationOptions.minDuration=e}get minDurationContextEnabled(){return this.analysis.minDurationOptions.contextEnabled}set minDurationContextEnabled(e){this.analysis.minDurationOptions.contextEnabled=e}get minDurationContextColor(){return this.analysis.minDurationOptions.contextOptions.color}set minDurationContextColor(e){this.analysis.minDurationOptions.contextOptions.color=e}get minDurationContextInterval(){return this.analysis.minDurationOptions.contextOptions.interval}set minDurationContextInterval(e){this.analysis.minDurationOptions.contextOptions.interval=e}get utcOffset(){return this.analysis.utcOffset??void 0}set utcOffset(e){this.analysis.utcOffset=e}get effectiveUtcOffset(){let{utcOffset:e}=this.analysis;if(e!=null)return e;let i=this.view?.camera?.position;return i?S(i):0}async getDurationAtScreen(e){return await(await j(()=>this.analysisView)).getDurationAtScreen(e)}};a([r()],o.prototype,"date",1);a([r()],o.prototype,"discreteColor",1);a([r()],o.prototype,"discreteInterval",1);a([r()],o.prototype,"totalDurationColor",1);a([r()],o.prototype,"totalDurationMode",1);a([r()],o.prototype,"localDate",1);a([r()],o.prototype,"mode",1);a([r()],o.prototype,"visualizeSunlight",1);a([r()],o.prototype,"startTimeOfDay",1);a([r()],o.prototype,"endTimeOfDay",1);a([r()],o.prototype,"state",1);a([r()],o.prototype,"timeZoneMode",2);a([r()],o.prototype,"timeZone",1);a([r()],o.prototype,"minDurationColor",1);a([r()],o.prototype,"minMinDuration",2);a([r()],o.prototype,"maxMinDuration",2);a([r()],o.prototype,"minDuration",1);a([r()],o.prototype,"minDurationContextEnabled",1);a([r()],o.prototype,"minDurationContextColor",1);a([r()],o.prototype,"minDurationContextInterval",1);a([r()],o.prototype,"utcOffset",1);a([r()],o.prototype,"effectiveUtcOffset",1);a([r()],o.prototype,"hideShadowDurationTooltip",2);o=a([H("components.shadow-cast.ShadowCastViewModel")],o);var G=O(o),w=class extends _{constructor(){super(...arguments),this.viewModel=G(this),this.messages=C(),this.analysis=this.viewModel.analysis,this.view=this.viewModel.view,this.visualizeSunlight=this.viewModel.visualizeSunlight,this.visualScale="m",this.autoDestroyDisabled=!1,this.endTimeOfDay=this.viewModel.endTimeOfDay,this.headingLevel=4,this.hideTimeRangeSlider=!1,this.hideTimezone=!1,this.hideDatePicker=!1,this.hideShadowDurationTooltip=this.viewModel.hideShadowDurationTooltip,this.hideVisualization=this.viewModel.hideVisualization,this.hideVisualizationOptions=!1,this.hideDiscreteOptions=!1,this.hideDiscreteColorPicker=!1,this.hideDiscreteInterval=!1,this.hideTotalDurationOptions=!1,this.hideTotalDurationColorPicker=!1,this.hideTotalDurationModeSelect=!1,this.hideMinDurationOptions=!1,this.hideMinDurationColorPicker=!1,this.hideMinDurationSlider=!1,this.hideMinDurationContextOptions=!1,this.hideMinDurationContextToggle=!1,this.hideMinDurationContextColorPicker=!1,this.hideMinDurationContextInterval=!1,this.icon="measure-building-height-shadow",this.mode=this.viewModel.mode,this.startTimeOfDay=this.viewModel.startTimeOfDay,this.state=this.viewModel.state,this.timeZoneMode=this.viewModel.timeZoneMode,this.utcOffset=this.viewModel.utcOffset,this.discreteColor=this.viewModel.discreteColor,this.discreteInterval=this.viewModel.discreteInterval,this.totalDurationColor=this.viewModel.totalDurationColor,this.totalDurationMode=this.viewModel.totalDurationMode,this.minDuration=this.viewModel.minDuration,this.minDurationColor=this.viewModel.minDurationColor,this.minMinDuration=this.viewModel.minMinDuration,this.maxMinDuration=this.viewModel.maxMinDuration,this.minDurationContextEnabled=this.viewModel.minDurationContextEnabled,this.minDurationContextColor=this.viewModel.minDurationContextColor,this.minDurationContextInterval=this.viewModel.minDurationContextInterval,this.arcgisPropertyChange=M()("state"),this.arcgisReady=D()}static{this.properties={analysis:0,view:0,visualizeSunlight:5,visualScale:3,autoDestroyDisabled:5,date:1,endTimeOfDay:9,headingLevel:9,hideTimeRangeSlider:5,hideTimezone:5,hideDatePicker:5,hideShadowDurationTooltip:5,hideVisualization:5,hideVisualizationOptions:5,hideDiscreteOptions:5,hideDiscreteColorPicker:5,hideDiscreteInterval:5,hideTotalDurationOptions:5,hideTotalDurationColorPicker:5,hideTotalDurationModeSelect:5,hideMinDurationOptions:5,hideMinDurationColorPicker:5,hideMinDurationSlider:5,hideMinDurationContextOptions:5,hideMinDurationContextToggle:5,hideMinDurationContextColorPicker:5,hideMinDurationContextInterval:5,icon:3,label:1,mode:1,referenceElement:1,startTimeOfDay:9,state:32,timeZoneMode:1,utcOffset:9,discreteColor:0,discreteInterval:9,totalDurationColor:0,totalDurationMode:1,minDuration:9,minDurationColor:0,minMinDuration:9,maxMinDuration:9,minDurationContextEnabled:5,minDurationContextColor:0,minDurationContextInterval:9}}static{this.styles=B}get _effectiveMessages(){let{messages:i,visualizeSunlight:t}=this,{sunlight:n}=i;return{...i,discrete:t?n?.discrete:i.discrete,minDuration:t?n?.minDuration:i.minDuration,totalDuration:t?n?.totalDuration:i.totalDuration,timeInShadow:t?i.timeInSunlight:i.timeInShadow,timeRangeSliderLabel:i.timeRangeSliderLabel}}get date(){return this.viewModel.date}set date(i){this.viewModel.date=i}async destroy(){await this.manager.destroy()}async getDurationAtScreen(i){return await this.viewModel.getDurationAtScreen(i)}render(){let{_effectiveMessages:i}=this;return d`<div aria-label=${i.componentLabel??x} class=${u({root:!0,[g.widget]:!0,[g.widgetDisabled]:this.viewModel.state==="disabled",[g.panel]:!0})} role=presentation>${this._renderTimeRangeSection()}${m({hidden:this.hideVisualizationOptions,children:this._renderVisualizationOptionsSection()})}</div>`}_renderTimeRangeSection(){if(!this.analysis||this.hideTimeRangeSlider&&this.hideDatePicker)return;let{_effectiveMessages:i,viewModel:t}=this,n=this.visualScale,s=t.timeZone;return d`<section class="time-range-section">${s&&!this.hideTimezone?d`<div class="time-range-heading">${p({level:this.headingLevel,children:i.timeRangeHeading})}<arcgis-time-zone-chip .disabled=${t.state==="disabled"} .timeZone=${s} .visualScale=${n} @arcgisInternalTimeZoneChange=${l=>{t.timeZone=l.detail}}></arcgis-time-zone-chip></div>`:p({level:this.headingLevel,children:i.timeRangeHeading})}${m({hidden:this.hideTimeRangeSlider,children:this._renderTimeRange()})}${s==null?m({hidden:this.hideTimezone,children:d`<calcite-label .scale=${n}>${i.timezoneLabel}<calcite-input-time-zone data-testid=shadow-cast-time-zone-input mode=offset overlay-positioning=fixed .referenceDate=${t.localDate} .scale=${n} .value=${`${h(t.effectiveUtcOffset,"hours","minutes")}`} @calciteInputTimeZoneChange=${l=>{t.utcOffset=+l.target.value/60}}></calcite-input-time-zone></calcite-label>`}):null}${m({hidden:this.hideDatePicker,children:d`<calcite-label .scale=${n}>${i.dateLabel}<calcite-input-date-picker overlay-positioning=fixed placement=bottom .scale=${n} .valueAsDate=${t.date} @calciteInputDatePickerChange=${l=>{let c=l.currentTarget.valueAsDate;t.date=Array.isArray(c)?c[0]:c}}></calcite-input-date-picker></calcite-label>`})}</section>`}_renderTimeRange(){let{_effectiveMessages:i,viewModel:t}=this;return d`<arcgis-time-of-day-slider mode=range .startTime=${I(this.startTimeOfDay)} .endTime=${I(this.endTimeOfDay)} .label=${i.timeRangeSliderLabel} .visualScale=${this.visualScale} @arcgisTimeChange=${({currentTarget:n})=>{t.startTimeOfDay=h(n.startTime,"minutes","milliseconds"),t.endTimeOfDay=h(n.endTime,"minutes","milliseconds")}}></arcgis-time-of-day-slider>`}_renderVisualizationOptionsSection(){let{analysis:i,_effectiveMessages:t,headingLevel:n,viewModel:s}=this;if(!i)return;let{discreteOptions:l,totalDurationOptions:c,minDurationOptions:P}=i,v=(E,R)=>s.mode===E&&!R?void 0:"hidden-config",V=this.hideMinDurationContextOptions||this.visualizeSunlight,L=this.hideMinDurationContextToggle||this.visualizeSunlight;return d`<section class="visualization-options-section">${p({level:n,children:t.visualizationLabel})}<div class="visualization-options">${this._renderModeSelect()}<div class=${u(v("min-duration",this.hideMinDurationOptions))}><arcgis-shadow-cast-min-duration-config .hideColorPicker=${this.hideMinDurationColorPicker} .hideContextColorPicker=${this.hideMinDurationContextColorPicker} .hideContextInterval=${this.hideMinDurationContextInterval} .hideContextOptions=${V} .hideContextToggle=${L} .hideSlider=${this.hideMinDurationSlider} .minMinDuration=${this.minMinDuration} .maxMinDuration=${this.maxMinDuration} .messages=${t} .options=${P} .scale=${this.visualScale}></arcgis-shadow-cast-min-duration-config></div><div class=${u(v("total-duration",this.hideTotalDurationOptions))}><arcgis-shadow-cast-total-duration-config .hideColorPicker=${this.hideTotalDurationColorPicker} .hideModeSelect=${this.hideTotalDurationModeSelect} .messages=${t} .options=${c} .scale=${this.visualScale}></arcgis-shadow-cast-total-duration-config></div><div class=${u(v("discrete",this.hideDiscreteOptions))}><arcgis-shadow-cast-discrete-config .hideColorPicker=${this.hideDiscreteColorPicker} .hideInterval=${this.hideDiscreteInterval} .messages=${t} .options=${l} .scale=${this.visualScale}></arcgis-shadow-cast-discrete-config></div></div></section>`}_renderModeSelect(){let{_effectiveMessages:i,viewModel:t}=this,{mode:n}=t;return d`<calcite-select .label=${i.visualizationLabel??""} .scale=${this.visualScale} @calciteSelectChange=${s=>{let l=s.target.selectedOption?.value;t.mode=l??"min-duration"}}>${[{mode:"min-duration",label:i.minDuration?.optionLabel},{mode:"total-duration",label:i.totalDuration?.optionLabel},{mode:"discrete",label:i.discrete?.optionLabel}].map(({mode:s,label:l})=>d`<calcite-option .selected=${s===n} .value=${s} .label=${l}></calcite-option>`)}</calcite-select>`}};function I(e){return Math.round(h(e,"milliseconds","minutes"))}b("arcgis-shadow-cast",w);return w},"analysis/ShadowCastAnalysis","core/accessorSupport/decorators","core/reactiveUtils","applications/Components/analysisUtils",a,c,e,i,j,k)
|
|
2
|
+
import{a as S}from"./5A3LVD4P.js";import{a as f,d as h,i as z}from"./DSAJ2RIZ.js";import{a as $}from"./GBUSRXLN.js";import k from"./R67SG7JY.js";import{a as m}from"./JCDJCRWD.js";import j from"./MWJWKG2I.js";import"./Q5TD3W4O.js";import{a as p}from"./LQU2J7A6.js";import i from"./6I4BYACE.js";import{a as C}from"./6GCV73ZT.js";import{a as g}from"./X3ZN3AMW.js";import e from"./ZD6U62UH.js";import c from"./6QMDEHMD.js";import{g as M}from"./VAUTZPJM.js";import"./FGXOZY5V.js";import a from"./JIUQ2MYX.js";import"./FWR73QLI.js";import"./MUFZWCGR.js";import{N as _,O as u,Q as x,T as b,a as y,b as d,w as D}from"./T3FLTZPV.js";import"./DUIJO5RQ.js";export default $arcgis.t(([A,{property:r,subclass:H},{watch:k,whenOnce:j},{forceInteractive:U},,,,O,,T])=>{var B=y`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}:host{position:relative;width:var(--arcgis-internal-panel-width, 300px)}.root{--section-internal-gap: var(--calcite-spacing-md);display:flex;flex-direction:column;gap:var(--calcite-spacing-lg);min-width:var(--arcgis-internal-panel-min-width, 300px);overflow:var(--arcgis-internal-panel-overflow, visible);height:fit-content}:host([visual-scale="s"]) .root{--section-internal-gap: var(--calcite-spacing-sm)}:host([visual-scale="l"]) .root{--section-internal-gap: var(--calcite-spacing-lg)}.time-range-section arcgis-time-of-day-slider{margin-block-end:var(--section-internal-gap)}.time-range-heading{display:flex;align-items:center;gap:var(--calcite-spacing-sm);margin-block-end:var(--calcite-spacing-sm);.esri-widget__heading{margin-block-end:0}arcgis-time-zone-chip{margin-inline-start:auto}}.time-range-section calcite-label:last-child,.visualization-options-section calcite-label:last-child{--calcite-label-margin-bottom: 0}.date-picker{flex-grow:1;display:block}.visualization-options{flex-direction:column;display:flex;gap:var(--section-internal-gap)}.hidden-config{display:none}`,F=Object.defineProperty,K=Object.getOwnPropertyDescriptor,a=(e,i,t,n)=>{for(var s=n>1?void 0:n?K(i,t):i,l=e.length-1,c;l>=0;l--)(c=e[l])&&(s=(n?c(i,t,s):c(s))||s);return n&&s&&F(i,t,s),s},Z=Symbol("interactiveHandle"),o=class extends T{constructor(){super(...arguments),this.supportedViewType="3d",this.unsupportedErrorMessage="The Shadow Cast component is only supported in 3D views.",this.shouldForceInteractive=!1,this.timeZoneMode="offset",this.minMinDuration=0,this.maxMinDuration=h(8,"hours","milliseconds"),this.hideShadowDurationTooltip=!1}constructAnalysis(){return new A}initialize(){this.addHandles([k(()=>({analysisView:this.analysisView,tooltipVisible:!this.hideShadowDurationTooltip}),({analysisView:e,tooltipVisible:i})=>{this.removeHandles(Z),e&&(e.interactive=i,i&&this.addHandles(U(e),Z))},{sync:!0,initial:!0}),k(()=>({analysis:this.analysis,analysisTimeZone:this.analysis.timeZone,timeZone:this.view?.timeZone??f,timeZoneMode:this.timeZoneMode}),({analysis:e,analysisTimeZone:i,timeZone:t,timeZoneMode:n})=>{let s=this._viewTimeZoneSync;if(s&&(n!=="region"||s.analysis!==e)&&this._clearViewTimeZoneSync(),n!=="region")return;let l=this._viewTimeZoneSync;l&&(i!==l.timeZone?this._clearViewTimeZoneSync():t!==l.timeZone&&(l.timeZone=t,e.timeZone=t)),!this._viewTimeZoneSync&&e.timeZone==null&&(this._viewTimeZoneSync={analysis:e,originalTimeZone:i,timeZone:t},e.timeZone=t)},{sync:!0,initial:!0}),$(()=>this._clearViewTimeZoneSync())])}_clearViewTimeZoneSync(){let e=this._viewTimeZoneSync;this._viewTimeZoneSync=void 0,e&&e.analysis.timeZone===e.timeZone&&(e.analysis.timeZone=e.originalTimeZone)}get date(){return this.analysis.date}set date(e){this.analysis.date=e}get discreteColor(){return this.analysis.discreteOptions.color}set discreteColor(e){this.analysis.discreteOptions.color=e}get discreteInterval(){return this.analysis.discreteOptions.interval}set discreteInterval(e){this.analysis.discreteOptions.interval=e}get totalDurationColor(){return this.analysis.totalDurationOptions.color}set totalDurationColor(e){this.analysis.totalDurationOptions.color=e}get totalDurationMode(){return this.analysis.totalDurationOptions.mode}set totalDurationMode(e){this.analysis.totalDurationOptions.mode=e}get localDate(){return z(this.view,this.effectiveUtcOffset)}get mode(){return this.analysis.mode}set mode(e){this.analysis.mode=e}get visualizeSunlight(){return this.analysis.visualizeSunlight}set visualizeSunlight(e){this.analysis.visualizeSunlight=e}get startTimeOfDay(){return this.analysis.startTimeOfDay}set startTimeOfDay(e){this.analysis.startTimeOfDay=e}get endTimeOfDay(){return this.analysis.endTimeOfDay}set endTimeOfDay(e){this.analysis.endTimeOfDay=e}get state(){return this.view?.ready&&this.analysisView?"ready":"disabled"}get timeZone(){return this.analysis.timeZone??(this.timeZoneMode==="region"?this.view?.timeZone??f:null)}set timeZone(e){this.analysis.timeZone=e}get minDurationColor(){return this.analysis.minDurationOptions.color}set minDurationColor(e){this.analysis.minDurationOptions.color=e}get minDuration(){return this.analysis.minDurationOptions.minDuration}set minDuration(e){this.analysis.minDurationOptions.minDuration=e}get minDurationContextEnabled(){return this.analysis.minDurationOptions.contextEnabled}set minDurationContextEnabled(e){this.analysis.minDurationOptions.contextEnabled=e}get minDurationContextColor(){return this.analysis.minDurationOptions.contextOptions.color}set minDurationContextColor(e){this.analysis.minDurationOptions.contextOptions.color=e}get minDurationContextInterval(){return this.analysis.minDurationOptions.contextOptions.interval}set minDurationContextInterval(e){this.analysis.minDurationOptions.contextOptions.interval=e}get utcOffset(){return this.analysis.utcOffset??void 0}set utcOffset(e){this.analysis.utcOffset=e}get effectiveUtcOffset(){let{utcOffset:e}=this.analysis;if(e!=null)return e;let i=this.view?.camera?.position;return i?S(i):0}async getDurationAtScreen(e){return await(await j(()=>this.analysisView)).getDurationAtScreen(e)}};a([r()],o.prototype,"date",1);a([r()],o.prototype,"discreteColor",1);a([r()],o.prototype,"discreteInterval",1);a([r()],o.prototype,"totalDurationColor",1);a([r()],o.prototype,"totalDurationMode",1);a([r()],o.prototype,"localDate",1);a([r()],o.prototype,"mode",1);a([r()],o.prototype,"visualizeSunlight",1);a([r()],o.prototype,"startTimeOfDay",1);a([r()],o.prototype,"endTimeOfDay",1);a([r()],o.prototype,"state",1);a([r()],o.prototype,"timeZoneMode",2);a([r()],o.prototype,"timeZone",1);a([r()],o.prototype,"minDurationColor",1);a([r()],o.prototype,"minMinDuration",2);a([r()],o.prototype,"maxMinDuration",2);a([r()],o.prototype,"minDuration",1);a([r()],o.prototype,"minDurationContextEnabled",1);a([r()],o.prototype,"minDurationContextColor",1);a([r()],o.prototype,"minDurationContextInterval",1);a([r()],o.prototype,"utcOffset",1);a([r()],o.prototype,"effectiveUtcOffset",1);a([r()],o.prototype,"hideShadowDurationTooltip",2);o=a([H("components.shadow-cast.ShadowCastViewModel")],o);var G=O(o),w=class extends _{constructor(){super(...arguments),this.viewModel=G(this),this.messages=C(),this.analysis=this.viewModel.analysis,this.view=this.viewModel.view,this.visualizeSunlight=this.viewModel.visualizeSunlight,this.visualScale="m",this.autoDestroyDisabled=!1,this.endTimeOfDay=this.viewModel.endTimeOfDay,this.headingLevel=4,this.hideTimeRangeSlider=!1,this.hideTimezone=!1,this.hideDatePicker=!1,this.hideShadowDurationTooltip=this.viewModel.hideShadowDurationTooltip,this.hideVisualization=this.viewModel.hideVisualization,this.hideVisualizationOptions=!1,this.hideDiscreteOptions=!1,this.hideDiscreteColorPicker=!1,this.hideDiscreteInterval=!1,this.hideTotalDurationOptions=!1,this.hideTotalDurationColorPicker=!1,this.hideTotalDurationModeSelect=!1,this.hideMinDurationOptions=!1,this.hideMinDurationColorPicker=!1,this.hideMinDurationSlider=!1,this.hideMinDurationContextOptions=!1,this.hideMinDurationContextToggle=!1,this.hideMinDurationContextColorPicker=!1,this.hideMinDurationContextInterval=!1,this.icon="measure-building-height-shadow",this.mode=this.viewModel.mode,this.startTimeOfDay=this.viewModel.startTimeOfDay,this.state=this.viewModel.state,this.timeZoneMode=this.viewModel.timeZoneMode,this.utcOffset=this.viewModel.utcOffset,this.discreteColor=this.viewModel.discreteColor,this.discreteInterval=this.viewModel.discreteInterval,this.totalDurationColor=this.viewModel.totalDurationColor,this.totalDurationMode=this.viewModel.totalDurationMode,this.minDuration=this.viewModel.minDuration,this.minDurationColor=this.viewModel.minDurationColor,this.minMinDuration=this.viewModel.minMinDuration,this.maxMinDuration=this.viewModel.maxMinDuration,this.minDurationContextEnabled=this.viewModel.minDurationContextEnabled,this.minDurationContextColor=this.viewModel.minDurationContextColor,this.minDurationContextInterval=this.viewModel.minDurationContextInterval,this.arcgisPropertyChange=M()("state"),this.arcgisReady=D()}static{this.properties={analysis:0,view:0,visualizeSunlight:5,visualScale:3,autoDestroyDisabled:5,date:1,endTimeOfDay:9,headingLevel:9,hideTimeRangeSlider:5,hideTimezone:5,hideDatePicker:5,hideShadowDurationTooltip:5,hideVisualization:5,hideVisualizationOptions:5,hideDiscreteOptions:5,hideDiscreteColorPicker:5,hideDiscreteInterval:5,hideTotalDurationOptions:5,hideTotalDurationColorPicker:5,hideTotalDurationModeSelect:5,hideMinDurationOptions:5,hideMinDurationColorPicker:5,hideMinDurationSlider:5,hideMinDurationContextOptions:5,hideMinDurationContextToggle:5,hideMinDurationContextColorPicker:5,hideMinDurationContextInterval:5,icon:3,label:1,mode:1,referenceElement:1,startTimeOfDay:9,state:32,timeZoneMode:1,utcOffset:9,discreteColor:0,discreteInterval:9,totalDurationColor:0,totalDurationMode:1,minDuration:9,minDurationColor:0,minMinDuration:9,maxMinDuration:9,minDurationContextEnabled:5,minDurationContextColor:0,minDurationContextInterval:9}}static{this.styles=B}get _effectiveMessages(){let{messages:i,visualizeSunlight:t}=this,{sunlight:n}=i;return{...i,discrete:t?n?.discrete:i.discrete,minDuration:t?n?.minDuration:i.minDuration,totalDuration:t?n?.totalDuration:i.totalDuration,timeInShadow:t?i.timeInSunlight:i.timeInShadow,timeRangeSliderLabel:i.timeRangeSliderLabel}}get date(){return this.viewModel.date}set date(i){this.viewModel.date=i}async destroy(){await this.manager.destroy()}async getDurationAtScreen(i){return await this.viewModel.getDurationAtScreen(i)}render(){let{_effectiveMessages:i}=this;return d`<div aria-label=${i.componentLabel??x} class=${u({root:!0,[g.widget]:!0,[g.widgetDisabled]:this.viewModel.state==="disabled",[g.panel]:!0})} role=presentation>${this._renderTimeRangeSection()}${m({hidden:this.hideVisualizationOptions,children:this._renderVisualizationOptionsSection()})}</div>`}_renderTimeRangeSection(){if(!this.analysis||this.hideTimeRangeSlider&&this.hideDatePicker)return;let{_effectiveMessages:i,viewModel:t}=this,n=this.visualScale,s=t.timeZone;return d`<section class="time-range-section">${s&&!this.hideTimezone?d`<div class="time-range-heading">${p({level:this.headingLevel,children:i.timeRangeHeading})}<arcgis-time-zone-chip .disabled=${t.state==="disabled"} .timeZone=${s} .visualScale=${n} @arcgisInternalTimeZoneChange=${l=>{t.timeZone=l.detail}}></arcgis-time-zone-chip></div>`:p({level:this.headingLevel,children:i.timeRangeHeading})}${m({hidden:this.hideTimeRangeSlider,children:this._renderTimeRange()})}${s==null?m({hidden:this.hideTimezone,children:d`<calcite-label .scale=${n}>${i.timezoneLabel}<calcite-input-time-zone data-testid=shadow-cast-time-zone-input mode=offset overlay-positioning=fixed .referenceDate=${t.localDate} .scale=${n} .value=${`${h(t.effectiveUtcOffset,"hours","minutes")}`} @calciteInputTimeZoneChange=${l=>{t.utcOffset=+l.target.value/60}}></calcite-input-time-zone></calcite-label>`}):null}${m({hidden:this.hideDatePicker,children:d`<calcite-label .scale=${n}>${i.dateLabel}<calcite-input-date-picker overlay-positioning=fixed placement=bottom .scale=${n} .valueAsDate=${t.date} @calciteInputDatePickerChange=${l=>{let c=l.currentTarget.valueAsDate;t.date=Array.isArray(c)?c[0]:c}}></calcite-input-date-picker></calcite-label>`})}</section>`}_renderTimeRange(){let{_effectiveMessages:i,viewModel:t}=this;return d`<arcgis-time-of-day-slider mode=range .startTime=${I(this.startTimeOfDay)} .endTime=${I(this.endTimeOfDay)} .label=${i.timeRangeSliderLabel} .visualScale=${this.visualScale} @arcgisTimeChange=${({currentTarget:n})=>{t.startTimeOfDay=h(n.startTime,"minutes","milliseconds"),t.endTimeOfDay=h(n.endTime,"minutes","milliseconds")}}></arcgis-time-of-day-slider>`}_renderVisualizationOptionsSection(){let{analysis:i,_effectiveMessages:t,headingLevel:n,viewModel:s}=this;if(!i)return;let{discreteOptions:l,totalDurationOptions:c,minDurationOptions:P}=i,v=(E,R)=>s.mode===E&&!R?void 0:"hidden-config",V=this.hideMinDurationContextOptions||this.visualizeSunlight,L=this.hideMinDurationContextToggle||this.visualizeSunlight;return d`<section class="visualization-options-section">${p({level:n,children:t.visualizationLabel})}<div class="visualization-options">${this._renderModeSelect()}<div class=${u(v("min-duration",this.hideMinDurationOptions))}><arcgis-shadow-cast-min-duration-config .hideColorPicker=${this.hideMinDurationColorPicker} .hideContextColorPicker=${this.hideMinDurationContextColorPicker} .hideContextInterval=${this.hideMinDurationContextInterval} .hideContextOptions=${V} .hideContextToggle=${L} .hideSlider=${this.hideMinDurationSlider} .minMinDuration=${this.minMinDuration} .maxMinDuration=${this.maxMinDuration} .messages=${t} .options=${P} .scale=${this.visualScale}></arcgis-shadow-cast-min-duration-config></div><div class=${u(v("total-duration",this.hideTotalDurationOptions))}><arcgis-shadow-cast-total-duration-config .hideColorPicker=${this.hideTotalDurationColorPicker} .hideModeSelect=${this.hideTotalDurationModeSelect} .messages=${t} .options=${c} .scale=${this.visualScale}></arcgis-shadow-cast-total-duration-config></div><div class=${u(v("discrete",this.hideDiscreteOptions))}><arcgis-shadow-cast-discrete-config .hideColorPicker=${this.hideDiscreteColorPicker} .hideInterval=${this.hideDiscreteInterval} .messages=${t} .options=${l} .scale=${this.visualScale}></arcgis-shadow-cast-discrete-config></div></div></section>`}_renderModeSelect(){let{_effectiveMessages:i,viewModel:t}=this,{mode:n}=t;return d`<calcite-select .label=${i.visualizationLabel??""} .scale=${this.visualScale} @calciteSelectChange=${s=>{let l=s.target.selectedOption?.value;t.mode=l??"min-duration"}}>${[{mode:"min-duration",label:i.minDuration?.optionLabel},{mode:"total-duration",label:i.totalDuration?.optionLabel},{mode:"discrete",label:i.discrete?.optionLabel}].map(({mode:s,label:l})=>d`<calcite-option .selected=${s===n} .value=${s} .label=${l}></calcite-option>`)}</calcite-select>`}};function I(e){return Math.round(h(e,"milliseconds","minutes"))}b("arcgis-shadow-cast",w);return w},"analysis/ShadowCastAnalysis","core/accessorSupport/decorators","core/reactiveUtils","applications/Components/analysisUtils",a,c,e,i,j,k)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
|
|
2
|
-
import{a as _}from"./E4NVOXNZ.js";import c from"./HZ5TI5EQ.js";import b from"./L3ETMNA2.js";import a from"./TQCXFWCA.js";import"./Q5TD3W4O.js";import"./M7UGJXFN.js";import"./A3Y3WUPP.js";import"./FWR73QLI.js";import{d as L}from"./YQTPLDGF.js";import{L as O,M as S,N as j,O as R,R as f,T as Q,a as N,b as o,n as M}from"./6QPWIZBB.js";import"./DUIJO5RQ.js";export default $arcgis.t(([{templateHasKey:V,stripHTML:T},{renderingSanitizer:H},{isRelatableFeatureSupportedLayer:J,findRelatedLayer:U},{substitute:X,formatNumber:k},{watch:p,on:Y},K,Z,{ignoreAbortErrors:P},ee,,,{g:B}])=>{var te=N`:host{position:relative;flex:1 1 auto}:host([empty]){display:none}.list{min-height:var(--calcite-spacing-xxxl)}.list-item-hidden{display:none}.feature-observer{position:relative;bottom:var(--calcite-spacing-xxl);z-index:2;text-align:center}.sticky-loading-container{display:flex;position:sticky;bottom:var(--calcite-spacing-sm);align-items:center;justify-content:center;z-index:2;margin:0;padding:0;height:var(--calcite-spacing-xxxl);pointer-events:none}`,re=h=>{let e=[];if(h.formTemplate){let{description:t,title:r}=h.formTemplate;h.fields?.forEach(i=>{let s=r&&V(r,i.name),a=t&&V(t,i.name);(s||a)&&e.push(i.name)})}return e},E=100;function ie(h){return typeof h=="string"&&h.trim().length>0}var D=class extends j{constructor(){super(...arguments),this._increaseFeaturePage=()=>{let{state:e,showAllEnabled:t,relatedFeatures:r,featuresPerPage:i,featurePage:s}=this;e==="ready"&&t&&r.length>=i*s&&this.featurePage++},this._relatedFeatureIntersectionObserver=new IntersectionObserver(([e])=>{e?.isIntersecting&&this._increaseFeaturePage()},{root:window.document}),this._featurePage=1,this._cancelQuery=()=>{let{_queryAbortController:e}=this;e&&e.abort(),this._queryAbortController=null},this._cancelQueryFeatureCount=()=>{let{_queryFeatureCountAbortController:e}=this;e&&e.abort(),this._queryFeatureCountAbortController=null},this._cancelQueryPage=()=>{let{_queryPageAbortController:e}=this;e&&e.abort(),this._queryPageAbortController=null},this._queryController=async()=>{this._cancelQuery();let e=new AbortController;this._queryAbortController=e,await P(this._query()),this._queryAbortController===e&&(this._queryAbortController=null)},this._queryFeatureCountController=async()=>{this._loaded=!1,this._cancelQueryFeatureCount();let e=new AbortController;this._queryFeatureCountAbortController=e,await P(this._queryFeatureCount()),this._queryFeatureCountAbortController===e&&(this._queryFeatureCountAbortController=null),this._loaded=!0},this._queryPageController=async()=>{let e=new AbortController;this._queryPageAbortController=e,await P(this._queryPage()),this._queryPageAbortController===e&&(this._queryPageAbortController=null)},this._queryDebounced=_(this._queryController,E),this._queryFeatureCountDebounced=_(this._queryFeatureCountController,E),this._queryPageDebounced=_(this._queryPageController,E),this._query=async()=>{let{_queryAbortController:e,relatedFeatures:t}=this;!this.featureCount||this.relatedLayer?.type==="subtype-group"&&!this.activeCategory||(this.relatedFeatureViewModels.destroyAll(),this.featurePage=1,t.destroyAll(),t.addMany(this._sliceFeatures(await this._queryRelatedFeatures({signal:e?.signal}))))},this._addFlowItem=e=>{e&&this.flowItems?.push(e)},this._relatedFeatureIntersectionObserverNode=O(),this.relatedFeatures=new K,this._queryAbortController=null,this._queryPageAbortController=null,this._queryFeatureCountAbortController=null,this.featureCount=0,this._loaded=!1,this.relatedFeatureViewModels=new K,this.autoDestroyDisabled=!1,this.featuresPerPage=10,this.useFeatureNextFlowItem=!1,this.flowType="feature-relationship",this.headingLevel=2,this.hideHeading=!1,this.hideDescription=!1,this.hideEmptyRelationshipContent=!1,this.empty=!1,this.showAllEnabled=!1}static{this.properties={allCategories:16,_queryAbortController:16,_queryPageAbortController:16,_queryFeatureCountAbortController:16,featureCount:16,_loaded:16,canLoad:16,canQuery:16,displayShowAllButton:16,displayListItems:16,categories:16,itemDescriptionFieldName:16,relatedFeatureViewModels:16,state:16,autoDestroyDisabled:5,allItemsDescription:32,featurePage:9,featuresPerPage:9,flowItems:0,useFeatureNextFlowItem:5,flowType:1,headingLevel:9,messages:0,heading:1,description:1,values:0,activeCategory:0,hideHeading:5,hideDescription:5,hideEmptyRelationshipContent:5,empty:39,displayCount:9,graphic:0,layer:0,map:0,view:0,spatialReference:0,timeZone:1,orderByFields:0,relationshipId:9,showAllEnabled:5,label:3}}static{this.styles=te}get orderByFieldsFixedCasing(){let{orderByFields:e,relatedLayer:t}=this;return e&&t?.loaded?e.map(r=>{let i=r.clone();return i.field=B(r.field,t),i}):e??[]}get supportsCacheHint(){return!!this.layer?.capabilities?.queryRelated?.supportsCacheHint}get allCategoriesCount(){return this.allCategories?.length??0}get objectId(){return(this.objectIdField&&this.graphic?.attributes?.[this.objectIdField])??null}get objectIdField(){return this.layer?.objectIdField||null}get relatedLayer(){let{layer:e,map:t,relationship:r}=this;if(!e?.loaded||!t||!r)return null;let i=e.type==="subtype-sublayer"&&e.parent&&J(e.parent)?e.parent:e;return U(t,i,r)??null}get relatedLayerKeyField(){let{relatedLayer:e,relationshipId:t}=this;return e?.loaded&&t!=null?e.relationships?.find(r=>r.id===t)?.keyField:null}get relatedLayerKeyFields(){let{relatedLayer:e}=this;return e?.loaded?e.relationships?.map(t=>t.keyField).filter(t=>t!=null)??[]:[]}get relationship(){let{relationshipId:e,layer:t}=this;return e!=null&&t?.loaded?t.relationships?.find(({id:r})=>r===e)??null:null}get relationshipKey(){let{relationshipKeyField:e}=this;return(e&&this.graphic?.attributes?.[e])??null}get relationshipKeyField(){return this.relationship?.keyField||null}get canLoad(){return!!this.map&&this.relationshipId!=null&&typeof this.objectId=="number"}get canQuery(){let e=this.layer?.capabilities?.queryRelated;return!!this.relatedLayer&&!!this.relationship&&this.relationshipId!=null&&this.objectId!=null&&!!e?.supportsCount&&e?.supportsPagination}get displayShowAllButton(){let{showAllEnabled:e,featureCount:t,displayCount:r,state:i,allCategoriesCount:s}=this,a=!!s&&(s>r||r===0),n=!!t&&(t>r||r===0);return!e&&i==="ready"&&(a||n)}get displayListItems(){let{relatedFeatures:e,allCategoriesCount:t}=this;return this.displayShowAllButton||!!e.length||!!t}get categories(){let{allCategories:e}=this;return this.showAllEnabled?e:e?.slice(0,this.displayCount)??null}get itemDescriptionFieldName(){return this.orderByFieldsFixedCasing[0]?.field||null}get state(){let{_queryAbortController:e,_queryFeatureCountAbortController:t,_queryPageAbortController:r,canQuery:i,_loaded:s,canLoad:a}=this;return t||a&&!s?"loading":e||r?"querying":i?"ready":"disabled"}get allItemsDescription(){let{messages:e,featureCount:t,allCategories:r,allCategoriesCount:i}=this;return X(e?.numberRecords??"",{number:k(r?i:t)})}get featurePage(){return this._featurePage}set featurePage(e){let{featuresPerPage:t,featureCount:r}=this,i=1,s=Math.ceil(r/t)||1;this._featurePage=Math.min(Math.max(e,i),s)}get heading(){let{activeCategory:e}=this;return this._heading??e?.name}set heading(e){this._heading=e}get _empty(){let{displayListItems:e,hideEmptyRelationshipContent:t,state:r}=this;return t&&r==="ready"&&!e}get displayCount(){return this._displayCount??3}set displayCount(e){this._displayCount=Math.min(Math.max(e??3,0),10)}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[p(()=>[this.displayCount,this.graphic,this.layer,this.layer?.loaded,this.map,this.orderByFields,this.relationshipId,this.featuresPerPage,this.showAllEnabled,this.canQuery,this.featureCount,this.activeCategory],()=>this._queryDebounced(),{initial:!0}),p(()=>[this.featurePage,this.showAllEnabled],()=>this._queryPageDebounced()),p(()=>[this.layer,this.relationshipId,this.objectId,this.canQuery,this.activeCategory],()=>this._queryFeatureCountDebounced(),{initial:!0}),p(()=>[this.state,this.showAllEnabled,this._relatedFeatureIntersectionObserverNode],()=>this._handleRelatedFeatureObserverChange()),p(()=>[this.displayListItems,this.hideEmptyRelationshipContent,this.state],()=>this._setEmpty(this._empty),{initial:!0}),Y(()=>this.relatedFeatures,"change",()=>this._setRelatedFeaturesViewModels())]),this.manager.onDestroy(()=>{this.relatedFeatureViewModels.destroyAll(),this.relatedFeatures.destroyAll(),this._cancelQuery(),this._cancelQueryFeatureCount(),this._cancelQueryPage(),this._unobserveRelatedFeatureObserver()})}_setEmpty(e){M(()=>this.empty=e)}async _queryFeatureCount(){let{layer:e,relatedLayer:t}=this;await e?.load(),await t?.load();let{_queryFeatureCountAbortController:r,activeCategory:i,canQuery:s,objectId:a,relatedLayerKeyField:n,relationshipId:l,relationshipKey:g,supportsCacheHint:C}=this;if(!s||!e||!t||a==null){this.featureCount=0,this.allCategories=void 0;return}if(t?.type==="subtype-group"&&!i){if(this.featureCount=0,this.relatedFeatureViewModels.destroyAll(),this.featurePage=1,this.relatedFeatures.destroyAll(),n&&g!=null){let{default:v}=await $arcgis.t(m=>m[0],"smartMapping/statistics/uniqueValues"),{uniqueValueInfos:I}=await v({layer:t,sqlWhere:`${n} = '${g}'`,field:t.subtypeField??void 0,signal:r?.signal}),$=I.map(({count:u,value:y})=>{let b=t.subtypes?.find(A=>A.code===y)?.name;return y!=null&&b?{count:u,value:y,name:b}:void 0}).filter(u=>u!=null);this.allCategories=$}return}let{historicMoment:m,gdbVersion:F}=e,w=new Z({cacheHint:C,gdbVersion:F,historicMoment:m,relationshipId:l,returnGeometry:!1,objectIds:[a],where:this._getRelationshipWhereClause(t)}),c=await e.queryRelatedFeaturesCount(w,{signal:r?.signal});this.allCategories=void 0,this.featureCount=c[a]||0}_getRelationshipWhereClause(e){let{activeCategory:t}=this,r=e.createQuery(),i="subtypeField"in e?e.subtypeField:void 0,s=t&&i?`${i} = ${t.value}`:void 0,a=r.where;return a&&s?`(${a}) AND (${s})`:a??s}_sliceFeatures(e){let{showAllEnabled:t,displayCount:r}=this;return t?e:r?e.slice(0,r):[]}async _queryPage(){let{relatedFeatures:e,featurePage:t,showAllEnabled:r,_queryPageAbortController:i,featureCount:s}=this;!r||t<2||!s||this.relatedLayer?.type==="subtype-group"&&!this.activeCategory||e.addMany(await this._queryRelatedFeatures({signal:i?.signal}))}async _queryRelatedFeatures(e){let{displayCount:t,featureCount:r,featurePage:i,featuresPerPage:s,layer:a,orderByFieldsFixedCasing:n,relatedLayer:l,relatedLayerKeyFields:g,relationshipId:C,showAllEnabled:m,supportsCacheHint:F}=this,{canQuery:w,objectId:c}=this;if(!w||!a||!l||c==null)return[];let v=m?((i-1)*s+r)%r:0,I=m?s:t,$=l.objectIdField,u="subtypeField"in l?l.subtypeField:void 0,y=[...n.map(d=>d.field),...re(l),...g,$,u].filter(ie),b=n.map(d=>`${d.field} ${d.order}`),{historicMoment:A,gdbVersion:z}=a,W=new Z({orderByFields:b,start:v,num:I,outFields:y,cacheHint:F,historicMoment:A,gdbVersion:z,relationshipId:C,returnGeometry:!1,objectIds:[c],where:this._getRelationshipWhereClause(l)}),q=(await a.queryRelatedFeatures(W,{signal:e?.signal}))[c]?.features||[];return l.type==="subtype-group"&&u?q.forEach(d=>{let G=d.attributes[u],x=l.findSublayerForSubtypeCode?.(G);d.sourceLayer=x,d.layer=x}):q.forEach(d=>{d.sourceLayer=l,d.layer=l}),q}_selectCategory(e){let{flowItems:t}=this;t&&this._addRelationshipFlowItem({showAllEnabled:!0,activeCategory:e})}_selectRecord(e){let{flowItems:t}=this;if(!t)return;let r=this.useFeatureNextFlowItem?f(o`<arcgis-feature-next .autoDestroyDisabled=${this.autoDestroyDisabled} .flowItems=${t} .flowType=${this.flowType} .graphic=${e.graphic} .hideEmptyRelationshipContent=${this.hideEmptyRelationshipContent} .map=${this.map} show-relationship-content .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature-next>`):f(o`<arcgis-feature .autoDestroyDisabled=${this.autoDestroyDisabled} .flowItems=${t} .flowType=${this.flowType} .graphic=${e.graphic} .map=${this.map} show-relationship-content .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature>`);this._addFlowItem(r)}_addRelationshipFlowItem({showAllEnabled:e=!1,activeCategory:t}){this._addFlowItem(f(o`<arcgis-feature-relationship .autoDestroyDisabled=${this.autoDestroyDisabled} .messages=${this.messages} .activeCategory=${t} .displayCount=${this.displayCount} .flowItems=${this.flowItems} .flowType=${this.flowType} .graphic=${this.graphic} .heading=${this.heading} hide-description .hideEmptyRelationshipContent=${this.hideEmptyRelationshipContent} .showAllEnabled=${e} hide-heading .layer=${this.layer} .map=${this.map} .orderByFields=${this.orderByFields} .relationshipId=${this.relationshipId} .spatialReference=${this.spatialReference} .useFeatureNextFlowItem=${this.useFeatureNextFlowItem} .values=${this.values} .view=${this.view}></arcgis-feature-relationship>`))}_showAllRecords(){let{flowItems:e}=this;e&&this._addRelationshipFlowItem({showAllEnabled:!0})}_handleRelatedFeatureObserverChange(){this._unobserveRelatedFeatureObserver();let{state:e,showAllEnabled:t}=this;this._relatedFeatureIntersectionObserverNode.value&&e==="ready"&&t&&this._relatedFeatureIntersectionObserver.observe(this._relatedFeatureIntersectionObserverNode.value)}_unobserveRelatedFeatureObserver(){this._relatedFeatureIntersectionObserverNode.value&&this._relatedFeatureIntersectionObserver.unobserve(this._relatedFeatureIntersectionObserverNode.value)}_matchesFeature(e,t){let r=e?.graphic?.getObjectId(),i=t?.getObjectId();return r!=null&&i!=null&&r===i}_setRelatedFeaturesViewModels(){let{relatedFeatures:e,relatedFeatureViewModels:t,map:r,view:i,spatialReference:s,timeZone:a}=this;e?.filter(Boolean).forEach(n=>{t.some(l=>this._matchesFeature(l,n))||t.add(new ee({abilities:{relationshipContent:!1},map:r,view:i,spatialReference:s,timeZone:a,graphic:n}))}),t.forEach(n=>{e?.find(l=>this._matchesFeature(n,l))||t.remove(n)})}render(){let{state:e}=this;return o`<div class="root"><arcgis-feature-element-info .heading=${this.heading} .headingLevel=${this.headingLevel} .description=${this.description}></arcgis-feature-element-info>${e==="loading"?this._renderLoading():e==="disabled"?this._renderRelationshipNotFound():this._renderRelatedFeatures()}</div>`}_renderStickyLoading(){return this.state==="querying"?o`<div class="sticky-loading-container">${this._renderLoadingIcon()}</div>`:null}_renderLoadingIcon(){return o`<calcite-loader inline label></calcite-loader>`}_renderLoading(){return o`<div class="loading-container">${this._renderLoadingIcon()}</div>`}_renderShowAllIconNode(){return o`<calcite-icon icon=list scale=s slot=content-end></calcite-icon>`}_renderChevronIconNode(){return o`<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon>`}_renderCategory(e){let{count:t,name:r}=e,i=k(t);return o`<calcite-list-item class="list-item" .disabled=${!t} .label=${r} @calciteListItemSelect=${()=>this._selectCategory(e)}><calcite-chip .label=${i} scale=s slot=content-end>${i}</calcite-chip>${this._renderChevronIconNode()}</calcite-list-item>`}_renderRelatedFeature(e){let{itemDescriptionFieldName:t,values:r}=this,{formattedAttributes:i,state:s,heading:a}=e,n={...r,...i?.global},l=(t&&n?.[t])??"";return o`<calcite-list-item class=${R(L("list-item",{"list-item-hidden":s==="loading"}))} .description=${T(l.toString())} .label=${T(a)} @calciteListItemSelect=${()=>this._selectRecord(e)}><div slot=heading><div .innerHTML=${H.sanitize(a??"")??""}></div></div><div slot=description><div .innerHTML=${H.sanitize(l??"")??""}></div></div>${this._renderChevronIconNode()}</calcite-list-item>`}_renderShowAllListItem(){return this.displayShowAllButton?o`<calcite-list-item .description=${this.allItemsDescription} .label=${this.messages?.showAll} @calciteListItemSelect=${()=>this._showAllRecords()}>${this._renderShowAllIconNode()}</calcite-list-item>`:null}_renderNoRelatedFeaturesMessage(){return o`<calcite-notice icon=information kind=brand open scale=s width=full><div slot=message>${this.messages?.noRelatedFeatures}</div></calcite-notice>`}_renderFeatureObserver(){return o`<div class="feature-observer" ${S(this._relatedFeatureIntersectionObserverNode)}></div>`}_renderList(){let{relatedFeatureViewModels:e,categories:t}=this;return o`<calcite-list display-mode=flat .label=${this.messages?.relatedFeaturesList??""}>${t?.map(r=>this._renderCategory(r))??e.toArray().map(r=>this._renderRelatedFeature(r))}${this._renderShowAllListItem()}</calcite-list>`}_renderRelatedFeatures(){let{displayListItems:e}=this,{state:t}=this;return o`<div class=${R(L("list",{"list-querying":t==="querying"}))}>${e?this._renderList():t==="ready"?this._renderNoRelatedFeaturesMessage():null}${this._renderStickyLoading()}${this._renderFeatureObserver()}</div>`}_renderRelationshipNotFound(){return o`<calcite-notice icon=exclamation-mark-triangle kind=danger open scale=s width=full><div slot=message>${this.messages?.relationshipNotFound}</div></calcite-notice>`}};Q("arcgis-feature-relationship",D);return D},"applications/Components/stringUtils","applications/Components/sanitizerUtils","applications/Components/featureUtils","intl","core/reactiveUtils","core/Collection","rest/support/RelationshipQuery","core/promiseUtils","popup/FeatureContent",a,b,c)
|
|
2
|
+
import{a as _}from"./E4NVOXNZ.js";import c from"./QT72URYJ.js";import b from"./L3ETMNA2.js";import a from"./MWJWKG2I.js";import"./Q5TD3W4O.js";import"./VAUTZPJM.js";import"./FGXOZY5V.js";import"./FWR73QLI.js";import{d as L}from"./MUFZWCGR.js";import{L as O,M as S,N as j,O as R,R as f,T as Q,a as N,b as o,n as M}from"./T3FLTZPV.js";import"./DUIJO5RQ.js";export default $arcgis.t(([{templateHasKey:V,stripHTML:T},{renderingSanitizer:H},{isRelatableFeatureSupportedLayer:J,findRelatedLayer:U},{substitute:X,formatNumber:k},{watch:p,on:Y},K,Z,{ignoreAbortErrors:P},ee,,,{g:B}])=>{var te=N`:host{position:relative;flex:1 1 auto}:host([empty]){display:none}.list{min-height:var(--calcite-spacing-xxxl)}.list-item-hidden{display:none}.feature-observer{position:relative;bottom:var(--calcite-spacing-xxl);z-index:2;text-align:center}.sticky-loading-container{display:flex;position:sticky;bottom:var(--calcite-spacing-sm);align-items:center;justify-content:center;z-index:2;margin:0;padding:0;height:var(--calcite-spacing-xxxl);pointer-events:none}`,re=h=>{let e=[];if(h.formTemplate){let{description:t,title:r}=h.formTemplate;h.fields?.forEach(i=>{let s=r&&V(r,i.name),a=t&&V(t,i.name);(s||a)&&e.push(i.name)})}return e},E=100;function ie(h){return typeof h=="string"&&h.trim().length>0}var D=class extends j{constructor(){super(...arguments),this._increaseFeaturePage=()=>{let{state:e,showAllEnabled:t,relatedFeatures:r,featuresPerPage:i,featurePage:s}=this;e==="ready"&&t&&r.length>=i*s&&this.featurePage++},this._relatedFeatureIntersectionObserver=new IntersectionObserver(([e])=>{e?.isIntersecting&&this._increaseFeaturePage()},{root:window.document}),this._featurePage=1,this._cancelQuery=()=>{let{_queryAbortController:e}=this;e&&e.abort(),this._queryAbortController=null},this._cancelQueryFeatureCount=()=>{let{_queryFeatureCountAbortController:e}=this;e&&e.abort(),this._queryFeatureCountAbortController=null},this._cancelQueryPage=()=>{let{_queryPageAbortController:e}=this;e&&e.abort(),this._queryPageAbortController=null},this._queryController=async()=>{this._cancelQuery();let e=new AbortController;this._queryAbortController=e,await P(this._query()),this._queryAbortController===e&&(this._queryAbortController=null)},this._queryFeatureCountController=async()=>{this._loaded=!1,this._cancelQueryFeatureCount();let e=new AbortController;this._queryFeatureCountAbortController=e,await P(this._queryFeatureCount()),this._queryFeatureCountAbortController===e&&(this._queryFeatureCountAbortController=null),this._loaded=!0},this._queryPageController=async()=>{let e=new AbortController;this._queryPageAbortController=e,await P(this._queryPage()),this._queryPageAbortController===e&&(this._queryPageAbortController=null)},this._queryDebounced=_(this._queryController,E),this._queryFeatureCountDebounced=_(this._queryFeatureCountController,E),this._queryPageDebounced=_(this._queryPageController,E),this._query=async()=>{let{_queryAbortController:e,relatedFeatures:t}=this;!this.featureCount||this.relatedLayer?.type==="subtype-group"&&!this.activeCategory||(this.relatedFeatureViewModels.destroyAll(),this.featurePage=1,t.destroyAll(),t.addMany(this._sliceFeatures(await this._queryRelatedFeatures({signal:e?.signal}))))},this._addFlowItem=e=>{e&&this.flowItems?.push(e)},this._relatedFeatureIntersectionObserverNode=O(),this.relatedFeatures=new K,this._queryAbortController=null,this._queryPageAbortController=null,this._queryFeatureCountAbortController=null,this.featureCount=0,this._loaded=!1,this.relatedFeatureViewModels=new K,this.autoDestroyDisabled=!1,this.featuresPerPage=10,this.useFeatureNextFlowItem=!1,this.flowType="feature-relationship",this.headingLevel=2,this.hideHeading=!1,this.hideDescription=!1,this.hideEmptyRelationshipContent=!1,this.empty=!1,this.showAllEnabled=!1}static{this.properties={allCategories:16,_queryAbortController:16,_queryPageAbortController:16,_queryFeatureCountAbortController:16,featureCount:16,_loaded:16,canLoad:16,canQuery:16,displayShowAllButton:16,displayListItems:16,categories:16,itemDescriptionFieldName:16,relatedFeatureViewModels:16,state:16,autoDestroyDisabled:5,allItemsDescription:32,featurePage:9,featuresPerPage:9,flowItems:0,useFeatureNextFlowItem:5,flowType:1,headingLevel:9,messages:0,heading:1,description:1,values:0,activeCategory:0,hideHeading:5,hideDescription:5,hideEmptyRelationshipContent:5,empty:39,displayCount:9,graphic:0,layer:0,map:0,view:0,spatialReference:0,timeZone:1,orderByFields:0,relationshipId:9,showAllEnabled:5,label:3}}static{this.styles=te}get orderByFieldsFixedCasing(){let{orderByFields:e,relatedLayer:t}=this;return e&&t?.loaded?e.map(r=>{let i=r.clone();return i.field=B(r.field,t),i}):e??[]}get supportsCacheHint(){return!!this.layer?.capabilities?.queryRelated?.supportsCacheHint}get allCategoriesCount(){return this.allCategories?.length??0}get objectId(){return(this.objectIdField&&this.graphic?.attributes?.[this.objectIdField])??null}get objectIdField(){return this.layer?.objectIdField||null}get relatedLayer(){let{layer:e,map:t,relationship:r}=this;if(!e?.loaded||!t||!r)return null;let i=e.type==="subtype-sublayer"&&e.parent&&J(e.parent)?e.parent:e;return U(t,i,r)??null}get relatedLayerKeyField(){let{relatedLayer:e,relationshipId:t}=this;return e?.loaded&&t!=null?e.relationships?.find(r=>r.id===t)?.keyField:null}get relatedLayerKeyFields(){let{relatedLayer:e}=this;return e?.loaded?e.relationships?.map(t=>t.keyField).filter(t=>t!=null)??[]:[]}get relationship(){let{relationshipId:e,layer:t}=this;return e!=null&&t?.loaded?t.relationships?.find(({id:r})=>r===e)??null:null}get relationshipKey(){let{relationshipKeyField:e}=this;return(e&&this.graphic?.attributes?.[e])??null}get relationshipKeyField(){return this.relationship?.keyField||null}get canLoad(){return!!this.map&&this.relationshipId!=null&&typeof this.objectId=="number"}get canQuery(){let e=this.layer?.capabilities?.queryRelated;return!!this.relatedLayer&&!!this.relationship&&this.relationshipId!=null&&this.objectId!=null&&!!e?.supportsCount&&e?.supportsPagination}get displayShowAllButton(){let{showAllEnabled:e,featureCount:t,displayCount:r,state:i,allCategoriesCount:s}=this,a=!!s&&(s>r||r===0),n=!!t&&(t>r||r===0);return!e&&i==="ready"&&(a||n)}get displayListItems(){let{relatedFeatures:e,allCategoriesCount:t}=this;return this.displayShowAllButton||!!e.length||!!t}get categories(){let{allCategories:e}=this;return this.showAllEnabled?e:e?.slice(0,this.displayCount)??null}get itemDescriptionFieldName(){return this.orderByFieldsFixedCasing[0]?.field||null}get state(){let{_queryAbortController:e,_queryFeatureCountAbortController:t,_queryPageAbortController:r,canQuery:i,_loaded:s,canLoad:a}=this;return t||a&&!s?"loading":e||r?"querying":i?"ready":"disabled"}get allItemsDescription(){let{messages:e,featureCount:t,allCategories:r,allCategoriesCount:i}=this;return X(e?.numberRecords??"",{number:k(r?i:t)})}get featurePage(){return this._featurePage}set featurePage(e){let{featuresPerPage:t,featureCount:r}=this,i=1,s=Math.ceil(r/t)||1;this._featurePage=Math.min(Math.max(e,i),s)}get heading(){let{activeCategory:e}=this;return this._heading??e?.name}set heading(e){this._heading=e}get _empty(){let{displayListItems:e,hideEmptyRelationshipContent:t,state:r}=this;return t&&r==="ready"&&!e}get displayCount(){return this._displayCount??3}set displayCount(e){this._displayCount=Math.min(Math.max(e??3,0),10)}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[p(()=>[this.displayCount,this.graphic,this.layer,this.layer?.loaded,this.map,this.orderByFields,this.relationshipId,this.featuresPerPage,this.showAllEnabled,this.canQuery,this.featureCount,this.activeCategory],()=>this._queryDebounced(),{initial:!0}),p(()=>[this.featurePage,this.showAllEnabled],()=>this._queryPageDebounced()),p(()=>[this.layer,this.relationshipId,this.objectId,this.canQuery,this.activeCategory],()=>this._queryFeatureCountDebounced(),{initial:!0}),p(()=>[this.state,this.showAllEnabled,this._relatedFeatureIntersectionObserverNode],()=>this._handleRelatedFeatureObserverChange()),p(()=>[this.displayListItems,this.hideEmptyRelationshipContent,this.state],()=>this._setEmpty(this._empty),{initial:!0}),Y(()=>this.relatedFeatures,"change",()=>this._setRelatedFeaturesViewModels())]),this.manager.onDestroy(()=>{this.relatedFeatureViewModels.destroyAll(),this.relatedFeatures.destroyAll(),this._cancelQuery(),this._cancelQueryFeatureCount(),this._cancelQueryPage(),this._unobserveRelatedFeatureObserver()})}_setEmpty(e){M(()=>this.empty=e)}async _queryFeatureCount(){let{layer:e,relatedLayer:t}=this;await e?.load(),await t?.load();let{_queryFeatureCountAbortController:r,activeCategory:i,canQuery:s,objectId:a,relatedLayerKeyField:n,relationshipId:l,relationshipKey:g,supportsCacheHint:C}=this;if(!s||!e||!t||a==null){this.featureCount=0,this.allCategories=void 0;return}if(t?.type==="subtype-group"&&!i){if(this.featureCount=0,this.relatedFeatureViewModels.destroyAll(),this.featurePage=1,this.relatedFeatures.destroyAll(),n&&g!=null){let{default:v}=await $arcgis.t(m=>m[0],"smartMapping/statistics/uniqueValues"),{uniqueValueInfos:I}=await v({layer:t,sqlWhere:`${n} = '${g}'`,field:t.subtypeField??void 0,signal:r?.signal}),$=I.map(({count:u,value:y})=>{let b=t.subtypes?.find(A=>A.code===y)?.name;return y!=null&&b?{count:u,value:y,name:b}:void 0}).filter(u=>u!=null);this.allCategories=$}return}let{historicMoment:m,gdbVersion:F}=e,w=new Z({cacheHint:C,gdbVersion:F,historicMoment:m,relationshipId:l,returnGeometry:!1,objectIds:[a],where:this._getRelationshipWhereClause(t)}),c=await e.queryRelatedFeaturesCount(w,{signal:r?.signal});this.allCategories=void 0,this.featureCount=c[a]||0}_getRelationshipWhereClause(e){let{activeCategory:t}=this,r=e.createQuery(),i="subtypeField"in e?e.subtypeField:void 0,s=t&&i?`${i} = ${t.value}`:void 0,a=r.where;return a&&s?`(${a}) AND (${s})`:a??s}_sliceFeatures(e){let{showAllEnabled:t,displayCount:r}=this;return t?e:r?e.slice(0,r):[]}async _queryPage(){let{relatedFeatures:e,featurePage:t,showAllEnabled:r,_queryPageAbortController:i,featureCount:s}=this;!r||t<2||!s||this.relatedLayer?.type==="subtype-group"&&!this.activeCategory||e.addMany(await this._queryRelatedFeatures({signal:i?.signal}))}async _queryRelatedFeatures(e){let{displayCount:t,featureCount:r,featurePage:i,featuresPerPage:s,layer:a,orderByFieldsFixedCasing:n,relatedLayer:l,relatedLayerKeyFields:g,relationshipId:C,showAllEnabled:m,supportsCacheHint:F}=this,{canQuery:w,objectId:c}=this;if(!w||!a||!l||c==null)return[];let v=m?((i-1)*s+r)%r:0,I=m?s:t,$=l.objectIdField,u="subtypeField"in l?l.subtypeField:void 0,y=[...n.map(d=>d.field),...re(l),...g,$,u].filter(ie),b=n.map(d=>`${d.field} ${d.order}`),{historicMoment:A,gdbVersion:z}=a,W=new Z({orderByFields:b,start:v,num:I,outFields:y,cacheHint:F,historicMoment:A,gdbVersion:z,relationshipId:C,returnGeometry:!1,objectIds:[c],where:this._getRelationshipWhereClause(l)}),q=(await a.queryRelatedFeatures(W,{signal:e?.signal}))[c]?.features||[];return l.type==="subtype-group"&&u?q.forEach(d=>{let G=d.attributes[u],x=l.findSublayerForSubtypeCode?.(G);d.sourceLayer=x,d.layer=x}):q.forEach(d=>{d.sourceLayer=l,d.layer=l}),q}_selectCategory(e){let{flowItems:t}=this;t&&this._addRelationshipFlowItem({showAllEnabled:!0,activeCategory:e})}_selectRecord(e){let{flowItems:t}=this;if(!t)return;let r=this.useFeatureNextFlowItem?f(o`<arcgis-feature-next .autoDestroyDisabled=${this.autoDestroyDisabled} .flowItems=${t} .flowType=${this.flowType} .graphic=${e.graphic} .hideEmptyRelationshipContent=${this.hideEmptyRelationshipContent} .map=${this.map} show-relationship-content .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature-next>`):f(o`<arcgis-feature .autoDestroyDisabled=${this.autoDestroyDisabled} .flowItems=${t} .flowType=${this.flowType} .graphic=${e.graphic} .map=${this.map} show-relationship-content .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature>`);this._addFlowItem(r)}_addRelationshipFlowItem({showAllEnabled:e=!1,activeCategory:t}){this._addFlowItem(f(o`<arcgis-feature-relationship .autoDestroyDisabled=${this.autoDestroyDisabled} .messages=${this.messages} .activeCategory=${t} .displayCount=${this.displayCount} .flowItems=${this.flowItems} .flowType=${this.flowType} .graphic=${this.graphic} .heading=${this.heading} hide-description .hideEmptyRelationshipContent=${this.hideEmptyRelationshipContent} .showAllEnabled=${e} hide-heading .layer=${this.layer} .map=${this.map} .orderByFields=${this.orderByFields} .relationshipId=${this.relationshipId} .spatialReference=${this.spatialReference} .useFeatureNextFlowItem=${this.useFeatureNextFlowItem} .values=${this.values} .view=${this.view}></arcgis-feature-relationship>`))}_showAllRecords(){let{flowItems:e}=this;e&&this._addRelationshipFlowItem({showAllEnabled:!0})}_handleRelatedFeatureObserverChange(){this._unobserveRelatedFeatureObserver();let{state:e,showAllEnabled:t}=this;this._relatedFeatureIntersectionObserverNode.value&&e==="ready"&&t&&this._relatedFeatureIntersectionObserver.observe(this._relatedFeatureIntersectionObserverNode.value)}_unobserveRelatedFeatureObserver(){this._relatedFeatureIntersectionObserverNode.value&&this._relatedFeatureIntersectionObserver.unobserve(this._relatedFeatureIntersectionObserverNode.value)}_matchesFeature(e,t){let r=e?.graphic?.getObjectId(),i=t?.getObjectId();return r!=null&&i!=null&&r===i}_setRelatedFeaturesViewModels(){let{relatedFeatures:e,relatedFeatureViewModels:t,map:r,view:i,spatialReference:s,timeZone:a}=this;e?.filter(Boolean).forEach(n=>{t.some(l=>this._matchesFeature(l,n))||t.add(new ee({abilities:{relationshipContent:!1},map:r,view:i,spatialReference:s,timeZone:a,graphic:n}))}),t.forEach(n=>{e?.find(l=>this._matchesFeature(n,l))||t.remove(n)})}render(){let{state:e}=this;return o`<div class="root"><arcgis-feature-element-info .heading=${this.heading} .headingLevel=${this.headingLevel} .description=${this.description}></arcgis-feature-element-info>${e==="loading"?this._renderLoading():e==="disabled"?this._renderRelationshipNotFound():this._renderRelatedFeatures()}</div>`}_renderStickyLoading(){return this.state==="querying"?o`<div class="sticky-loading-container">${this._renderLoadingIcon()}</div>`:null}_renderLoadingIcon(){return o`<calcite-loader inline label></calcite-loader>`}_renderLoading(){return o`<div class="loading-container">${this._renderLoadingIcon()}</div>`}_renderShowAllIconNode(){return o`<calcite-icon icon=list scale=s slot=content-end></calcite-icon>`}_renderChevronIconNode(){return o`<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon>`}_renderCategory(e){let{count:t,name:r}=e,i=k(t);return o`<calcite-list-item class="list-item" .disabled=${!t} .label=${r} @calciteListItemSelect=${()=>this._selectCategory(e)}><calcite-chip .label=${i} scale=s slot=content-end>${i}</calcite-chip>${this._renderChevronIconNode()}</calcite-list-item>`}_renderRelatedFeature(e){let{itemDescriptionFieldName:t,values:r}=this,{formattedAttributes:i,state:s,heading:a}=e,n={...r,...i?.global},l=(t&&n?.[t])??"";return o`<calcite-list-item class=${R(L("list-item",{"list-item-hidden":s==="loading"}))} .description=${T(l.toString())} .label=${T(a)} @calciteListItemSelect=${()=>this._selectRecord(e)}><div slot=heading><div .innerHTML=${H.sanitize(a??"")??""}></div></div><div slot=description><div .innerHTML=${H.sanitize(l??"")??""}></div></div>${this._renderChevronIconNode()}</calcite-list-item>`}_renderShowAllListItem(){return this.displayShowAllButton?o`<calcite-list-item .description=${this.allItemsDescription} .label=${this.messages?.showAll} @calciteListItemSelect=${()=>this._showAllRecords()}>${this._renderShowAllIconNode()}</calcite-list-item>`:null}_renderNoRelatedFeaturesMessage(){return o`<calcite-notice icon=information kind=brand open scale=s width=full><div slot=message>${this.messages?.noRelatedFeatures}</div></calcite-notice>`}_renderFeatureObserver(){return o`<div class="feature-observer" ${S(this._relatedFeatureIntersectionObserverNode)}></div>`}_renderList(){let{relatedFeatureViewModels:e,categories:t}=this;return o`<calcite-list display-mode=flat .label=${this.messages?.relatedFeaturesList??""}>${t?.map(r=>this._renderCategory(r))??e.toArray().map(r=>this._renderRelatedFeature(r))}${this._renderShowAllListItem()}</calcite-list>`}_renderRelatedFeatures(){let{displayListItems:e}=this,{state:t}=this;return o`<div class=${R(L("list",{"list-querying":t==="querying"}))}>${e?this._renderList():t==="ready"?this._renderNoRelatedFeaturesMessage():null}${this._renderStickyLoading()}${this._renderFeatureObserver()}</div>`}_renderRelationshipNotFound(){return o`<calcite-notice icon=exclamation-mark-triangle kind=danger open scale=s width=full><div slot=message>${this.messages?.relationshipNotFound}</div></calcite-notice>`}};Q("arcgis-feature-relationship",D);return D},"applications/Components/stringUtils","applications/Components/sanitizerUtils","applications/Components/featureUtils","intl","core/reactiveUtils","core/Collection","rest/support/RelationshipQuery","core/promiseUtils","popup/FeatureContent",a,b,c)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
|
|
2
|
-
import{a as M}from"./TUAAVPLO.js";import{a as v}from"./YNTFRY73.js";import{a as k}from"./
|
|
2
|
+
import{a as M}from"./TUAAVPLO.js";import{a as v}from"./YNTFRY73.js";import{a as k}from"./WLE3NI2C.js";import{a as w}from"./WNKDZ6CS.js";import{L as P,M as L,N as $,O as c,P as u,Q as h,T as y,a as b,b as l,w as x}from"./T3FLTZPV.js";import"./DUIJO5RQ.js";export default $arcgis.t(([{watch:B}])=>{var a=(t,e,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,i),i);var H;function C(t){return(e,i)=>a(e,i,{get(){return(this.renderRoot??(H??=document.createDocumentFragment())).querySelectorAll(t)}})}var W=b`:host{transition:max-height .25s ease-in-out;--esri-widget-padding: 12px 15px;--level-picker-padding: var(--calcite-spacing-md);--level-label-color: var(--calcite-color-text-1);--level-label-color--empty: var(--calcite-color-text-2);--level-label-color--active: var(--calcite-color-brand);--level-border-width: 2px;--level-border-color: var(--calcite-color-border-2);--level-border-color--hover: var(--calcite-color-brand);--level-border-color--active: var(--calcite-color-brand);--level-background-color: rgb(from var(--calcite-color-foreground-1) r g b / 70%);--level-background-color--hover: rgb(from var(--calcite-color-foreground-1) r g b / 90%);--level-background-color--active: var(--calcite-color-brand);--focus-outline-width: 2px;--focus-outline-color: var(--calcite-color-brand);--focus-outline-offset: 2px}.container{height:max-content;display:flex;flex-direction:row;align-items:center;&.no-level{display:none}>*{height:max-content}}.clear-button{appearance:none;margin-inline-start:7px;display:none;position:absolute;inset-block-start:-4px}.label-container{--width: 90px;--height: 40px;flex-direction:column;justify-content:space-between;align-items:center;width:50%;margin-inline-end:var(--calcite-spacing-md);display:flex;&.active{color:var(--calcite-color-brand)}&.empty{cursor:default;color:var(--calcite-color-border-2);font-size:var(--calcite-font-size);font-weight:var(--calcite-font-weight-light)}&:focus{outline:none}&:focus-visible{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus)}}.level-label{position:relative;text-align:center;>span{pointer-events:none}&.active{font-size:var(--height);line-height:calc(var(--height) + 6px);>.clear-button{display:inline-block}}}.tiles-container{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;transform:rotate(180deg);cursor:pointer;padding:20px 0;width:50%}.tiles-inner-container{transition:margin .3s}`,j=Object.defineProperty,F=(t,e,i,n)=>{for(var r=void 0,o=t.length-1,s;o>=0;o--)(s=t[o])&&(r=s(e,i,r)||r);return r&&j(e,i,r),r},d=class extends ${constructor(){super(...arguments),this.hovering=!1,this.onPointerMove=e=>{if(!this.hovering)return!1;if(window.getSelection()?.removeAllRanges(),this.containerPosTop!=null){let i=this.containerPosTop,n=40,r=this.expandedLevelsMargin,o=this.levelsHeight,s=i+n+r,m=this.levelHeight/2;s+=m,o-=m;let f=(e.clientY-s)/o;f+=.035,this.normalizedPointerPosition=f}return!1},this.onPointerEnter=()=>{let e=this.levelsContainer.value;this.hovering||e==null||(this.hovering=!0,this.containerPosTop=e.getBoundingClientRect().top??0)},this.levelsContainer=P(),this.onPointerLeave=()=>{if(this.hovering){window.getSelection()?.removeAllRanges();for(let e of this.levelItems)e.width=void 0;this.normalizedPointerPosition=0,this.hoveredLevel=null,this.hovering=!1}},this.onPointerUp=()=>{window.getSelection()?.removeAllRanges();let e=this.level;this.hoveredLevel==null||e==null||this.#o()},this.expandedLevelsHeight=void 0,this.normalizedPointerPosition=0,this.hoveredLevel=null,this.arcgisBuildingLevelChange=x({bubbles:!0,composed:!0})}static{this.properties={expandedLevelsHeight:16,normalizedPointerPosition:16,hoveredLevel:16,messages:0,level:0,numberOfLevels:32,levelHeight:32,levelsHeight:32}}static{this.styles=W}get levels(){return this.level?.allowedValues??[]}get levelWidth(){let{levelWidthNominator:e,levelWidthConstant:i}=M,n=e/Math.sqrt(this.numberOfLevels)+i;return Math.round(v(n,30,80))}get _gaussianFactor(){let e=this.numberOfLevels;return e/Math.log(30*e)*10}get expandedLevelsMargin(){return Math.round(((this.expandedLevelsHeight??0)-this.levelsHeight)/2)}get levelClosestToPointer(){if(!this.hovering)return null;let e=this.numberOfLevels-1,i=this.clampedNormalizedPointerPosition;return e>=0&&i!=null?this.levels[Math.round((1-i)*e)]:null}get clampedNormalizedPointerPosition(){return v(this.normalizedPointerPosition,0,1)}get numberOfLevels(){return this.levels.length}get levelHeight(){let e=14,i=e*2/Math.sqrt(this.numberOfLevels);return Math.round(v(i,2,e))}get levelsHeight(){return Math.round(this.levelHeight*this.numberOfLevels)}async loaded(){this.listen("keydown",this.#n.bind(this)),this.manager.onLifecycle(()=>[B(()=>[this.normalizedPointerPosition,this.hovering],()=>this.onPointerPositionChange(),{initial:!0})])}onPointerPositionChange(){let e=0;this.levelItems.forEach((n,r)=>{let{width:o,height:s}=this.getLevelWidgetSize(r);n.height=s,n.width=o,e+=s}),this.hoveredLevel=this.levelClosestToPointer;let i=this.expandedLevelsHeight;(i==null||Math.abs(i-e)>30)&&(this.expandedLevelsHeight=e)}getLevelWidgetSize(e){let i={width:this.levelWidth,height:this.levelHeight};if(this.hovering){let n=this.getGaussianFactor(e,this.clampedNormalizedPointerPosition);i.width+=20*n,i.height+=30*n}return i}getGaussianFactor(e,i){let n=this.numberOfLevels-1,r=(n-e)/n,o=this._gaussianFactor*(r-i);return Math.exp(-(o**2))}#n(e){switch(e.key){case"ArrowDown":case"ArrowLeft":e.preventDefault(),e.stopPropagation(),this.#i(),this.#e();break;case"ArrowUp":case"ArrowRight":e.preventDefault(),e.stopPropagation(),this.#t(),this.#e();break}}#e(){Array.from(this.levelItems).find(e=>e.level===this.level?.value)?.focus()}#t(){this.level&&(this.level.next(),this.arcgisBuildingLevelChange.emit())}#i(){this.level&&(this.level.previous(),this.arcgisBuildingLevelChange.emit())}#o(){this.level==null||this.hoveredLevel==null||(this.level.value===this.hoveredLevel&&!this.level.disabled?this.#r():(this.level.select(this.hoveredLevel),this.arcgisBuildingLevelChange.emit()))}#r(){this.level&&!this.level.disabled&&(this.level.clear(),this.arcgisBuildingLevelChange.emit())}render(){if(!this.messages)return null;let e=this.level;e?.value;let i=e&&!e.disabled,n=this.numberOfLevels>1?k(this.levels,r=>r,r=>l`<arcgis-building-level-item .level=${r} .baseWidth=${this.levelWidth} .hovered=${this.hoveredLevel===r} .active=${e&&!e.disabled&&e.value===r} class=${c({"animate-level":!this.hovering})} .messages=${this.messages}></arcgis-building-level-item>`):null;return l`<div class=${c({container:!0,"no-level":this.numberOfLevels<2,"animate-level":this.hovering})}>${T({messages:this.messages,active:i,hasNext:e?.hasNext,hasPrevious:e?.hasPrevious,onNext:()=>this.#t(),onPrevious:()=>this.#i(),children:U({messages:this.messages,level:this.hoveredLevel??e?.value,active:i,onClear:()=>this.#r()})})}${D({ref:this.levelsContainer,expandedLevelsMargin:this.expandedLevelsMargin,levelsHeight:this.levelsHeight,onPointerEnter:this.onPointerEnter,onPointerMove:this.onPointerMove,onPointerLeave:this.onPointerLeave,onPointerUp:this.onPointerUp,children:n})}</div>`}};F([C("arcgis-building-level-item")],d.prototype,"levelItems");function T(t){return l`<div class=${c({"label-container":!0,empty:!t.active,active:!0,hover:!0})} title=${t.messages.selectLevel??h} tabindex=0><calcite-action icon=chevron-up appearance=transparent .text=${t.messages.nextLevel} @click=${t.onNext} .disabled=${!t.hasNext}></calcite-action>${t.children}<calcite-action icon=chevron-down appearance=transparent .text=${t.messages.previousLevel} @click=${t.onPrevious} .disabled=${!t.hasPrevious}></calcite-action></div>`}function U(t){let e=t.messages;return l`<div aria-label=${e.clearLevel??h} class=${c({"level-label":!0,active:t.active&&t.level!=null})} @click=${t.onClear} title=${e.clearLevel??h}>${t.active?l`<span>${t.level}</span>${w("clear-button",l`<calcite-fab appearance=outline-fill class="clear-button" icon=x kind=neutral @click=${t.onClear} scale=s></calcite-fab>`)}`:l`<span>${e.selectLevel}</span>`}</div>`}function D(t){let e=40,i=-e/2,n=t.levelsHeight,r=n+e*2;return l`<div class="tiles-container" @pointerenter=${t.onPointerEnter} @pointerover=${t.onPointerEnter} @pointermove=${t.onPointerMove} @pointerleave=${t.onPointerLeave} @pointerup=${t.onPointerUp} @click=${t.onClick} style=${u({height:`${r}px`,marginBlockStart:`${i}px`,marginBlockEnd:`${i}px`})} ${L(t.ref)}><div class="tiles-inner-container" style=${u({height:`${n}px`,margin:"0",marginBlockStart:`${20-t.expandedLevelsMargin}px`})}>${t.children}</div></div>`}y("arcgis-building-level-picker",d);return d},"core/reactiveUtils")
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
|
|
2
|
-
import b from"./
|
|
2
|
+
import b from"./CFM6Q6QR.js";import a from"./JIUQ2MYX.js";import{d}from"./MUFZWCGR.js";import{O as u,P as f,Q as l,b as s}from"./T3FLTZPV.js";export default $arcgis.t(([{j:p},{a:m,b:v}])=>{function h(n){return n&&"visibilityMode"in n?n.visibilityMode:null}function R(n,t){"visible"in n&&(h(t)==="exclusive"&&n.visible||(n.visible=!n.visible))}function j(n,t){"panel"in n&&(n.panel.open=!n.panel.open,n.panel.open&&t&&t())}function A(n){return Array.isArray(n)?n.filter(t=>t!=="legend"):n==="legend"?null:n}function D(n){let t=A(n.panel?.content);return Array.isArray(t)?t.length>0:!!t}function x(n){return!!n&&"content"in n&&n.content.type==="track-info"}function M(n){return!!n&&"content"in n&&n.content.type==="telemetry-display"}function F(n){return x(n)||M(n)}function L(n,t,i,e){n&&i===t.layer?.uid&&(p(n),e?.(null))}function S(n,t,i){i.type==="toggle"&&(i.value=!i.value),n(i,t)}function P(n){return n.actionsSections.map(t=>t.filter(i=>i.visible))}function T(n,t,i){return n.updateComplete.then(()=>{let e=()=>{let a=Array.from(n.el.shadowRoot?.querySelectorAll(`calcite-list-item[data-item="${t}"]`)??[]);if(a.length<2)return;let r=a.find(i);r&&a.filter(o=>o!==r).forEach(o=>o.remove())};return e(),n.updateComplete.then(e)})}function C(n,t){let{icon:i}=t;if(i)return null;let e="image"in t?t.image:void 0;return e?s`<span aria-hidden=true class=${u(d(n.itemActionIcon,{[n.itemActionImage]:!!e}))} style=${f(v(e))}></span>`:null}function V(n,t,i){let{item:e,css:a,handleAction:r}=n,{active:o,disabled:y,title:c,type:g,indicator:$}=t,b=m(t);return s`<calcite-action .active=${g==="toggle"?t.value:!1} data-action-id=${t.id??l} .disabled=${y} .icon=${b??void 0} .indicator=${$} .loading=${o} @click=${()=>S(r,e,t)} slot=${(i?void 0:"actions-end")??l} .text=${c??""} .textEnabled=${i} title=${c??void 0??l}>${C(a,t)}</calcite-action>`}return{a:h,b:R,c:j,d:A,e:D,f:x,g:M,h:F,i:L,j:P,k:T,l:C,m:V}},a,b)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
|
|
2
|
-
import{e as p}from"./
|
|
2
|
+
import{e as p}from"./VAUTZPJM.js";import"./FGXOZY5V.js";import"./FWR73QLI.js";import"./MUFZWCGR.js";import{N as d,T as h,b as c}from"./T3FLTZPV.js";import"./DUIJO5RQ.js";export default $arcgis.t(([m,{watch:u}])=>{var w=["Auto"],k=[.25,.5,1,1.5,2],$=new m([255,127,0]);function s(n,t){return`${t.format(n)}x`}var o=class extends d{constructor(){super(...arguments),this._color=null,this._speed=1,this._quality="Auto",this._direction=p(),this._disabled=!1}static{this.properties={_disabled:16,_active:16,viewModel:0,messages:0}}loaded(){this.manager.onLifecycle(()=>[u(()=>this.viewModel.state,t=>{this._disabled=t==="not-ready"||t==="waiting"},{initial:!0})])}render(){let{viewModel:t,messages:e}=this,l=this._direction==="rtl"?"chevron-left":"chevron-right",a=new Intl.NumberFormat(this.messages._lang,{minimumFractionDigits:0,maximumFractionDigits:2}),v=c`<calcite-flow-item .heading=${e.playbackSpeed} .selected=${this._active==="speed"} @calciteFlowItemBack=${()=>this._active=void 0}><calcite-list .label=${e.playbackSpeed} selection-mode=single-persist>${k.map(i=>c`<calcite-list-item .disabled=${t?.layer?.isLive&&i!==1} .label=${s(i,a)} @click=${()=>{this._speed=i,t.changePlaybackSpeed(i)}} .selected=${i===this._speed}></calcite-list-item>`)}</calcite-list></calcite-flow-item>`,g=c`<calcite-flow-item .heading=${e.quality} .selected=${this._active==="quality"} @calciteFlowItemBack=${()=>this._active=void 0}><calcite-list .label=${e.quality} selection-mode=single-persist>${w.map(i=>c`<calcite-list-item .label=${i} @click=${()=>this._quality=i} .selected=${i===this._quality}></calcite-list-item>`)}</calcite-list></calcite-flow-item>`,_=c`<calcite-flow-item .heading=${e.loopPlayback} .selected=${this._active==="loop"} @calciteFlowItemBack=${()=>this._active=void 0}><calcite-block .label=${e.loop} expanded><calcite-switch .disabled=${t?.layer?.isLive} .label=${e.loopPlayback} .checked=${t?.layer?.loop} .labelTextStart=${e.loop} @calciteSwitchChange=${()=>{t.toggleLoopPlayback()}}></calcite-switch></calcite-block></calcite-flow-item>`,b=c`<calcite-flow-item .heading=${e.graphics} .selected=${this._active==="color"} @calciteFlowItemBack=${()=>this._active=void 0}><calcite-block .heading=${e.color} expanded><calcite-color-picker channels-disabled format=hex saved-disabled scale=s .value=${this._color?.toHex()??$.toHex()} @calciteColorPickerChange=${({currentTarget:i})=>{let r=i.value?.toString()??null;this._color=r?new m(r):null,this._color&&t.changeGraphicsColor(this._color)}}></calcite-color-picker></calcite-block></calcite-flow-item>`;return c`<div><calcite-popover auto-close .label=${e.settings} overlay-positioning=fixed placement=top-end pointer-disabled reference-element=settings-action scale=s @calcitePopoverClose=${()=>this._active=void 0}><calcite-flow><calcite-flow-item .heading=${e.settings} .selected=${!this._active}><calcite-list .label=${e.settings}><calcite-list-item .label=${e.loop} @click=${()=>this._active="loop"}><div slot=content-end><calcite-chip .label=${e.loopPlayback} .icon=${this.viewModel.layer?.loop?"recurrence":"break-recurrence"}></calcite-chip></div><calcite-icon .icon=${l} scale=s slot=content-end></calcite-icon></calcite-list-item><calcite-list-item .label=${e.speed} @click=${()=>this._active="speed"}><div slot=content-end><calcite-chip .label=${s(this._speed,a)} scale=s>${s(this._speed,a)}</calcite-chip></div><calcite-icon .icon=${l} scale=s slot=content-end></calcite-icon></calcite-list-item><calcite-list-item .label=${e.quality} @click=${()=>this._active="quality"}><div slot=content-end><calcite-chip .label=${this._quality} scale=s>${this._quality}</calcite-chip></div><calcite-icon .icon=${l} scale=s slot=content-end></calcite-icon></calcite-list-item><calcite-list-item .label=${e.graphics} @click=${()=>this._active="color"}><calcite-color-picker-swatch .color=${this._color?.toString()??$.toString()} scale=s slot=content-end></calcite-color-picker-swatch><calcite-icon .icon=${l} scale=s slot=content-end></calcite-icon></calcite-list-item></calcite-list></calcite-flow-item>${this._active==="speed"?v:null}${this._active==="quality"?g:null}${this._active==="color"?b:null}${this._active==="loop"?_:null}</calcite-flow></calcite-popover><calcite-action alignment=center .disabled=${this._disabled} icon=sliders id=settings-action scale=s slot=trigger .text=${e.settings}></calcite-action></div>`}};h("arcgis-video-player-settings",o);return o},"Color","core/reactiveUtils")
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
|
|
2
|
-
import j from"./432M5FFW.js";import{a as m}from"./6YMTY2YD.js";import{a}from"./X3ZN3AMW.js";import i from"./Y4LYAD4W.js";import e from"./PQUQG2X5.js";import{g as f}from"./M7UGJXFN.js";import"./A3Y3WUPP.js";import b from"./36SJXUCR.js";import"./FWR73QLI.js";import{d as u}from"./YQTPLDGF.js";import{N as g,O as h,T as p,a as c,b as r,w as d}from"./6QPWIZBB.js";import"./DUIJO5RQ.js";export default $arcgis.t(([{on:s,watch:_},y,,,,v])=>{var b=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{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}:host{--arcgis-internal-legend-heading-margin: 0 0 var(--calcite-space-xs);--arcgis-internal-legend-layer-padding: var(--calcite-space-md);--arcgis-internal-legend-layer-gap: var(--calcite-space-xl);--arcgis-internal-legend-layer-element-gap: var(--calcite-space-md);overflow:auto;width:var(--arcgis-internal-legend-width, 300px)}.root{overflow-y:var(--arcgis-internal-panel-overflow, auto)}:host([card-style-layout="side-by-side"]){--arcgis-internal-legend-width: auto}`,x=v(y),n=class extends g{constructor(){super(...arguments),this.messages=m({}),this.viewModel=x(this),this._isCardStyle=!1,this.view=this.viewModel.view,this.icon="legend",this.activeLayerInfos=this.viewModel.activeLayerInfos,this.basemapLegendVisible=this.viewModel.basemapLegendVisible,this.headingLevel=3,this.hideLayersNotInCurrentView=this.viewModel.hideLayersNotInCurrentView,this.respectLayerDefinitionExpression=this.viewModel.respectLayerDefinitionExpression,this.layerInfos=this.viewModel.layerInfos,this.loading=this.viewModel.loading,this.legendStyle="classic",this.autoDestroyDisabled=!1,this.label=this.messages?.componentLabel,this.state=this.viewModel.state,this.arcgisPropertyChange=f()("state"),this.arcgisReady=d()}static{this.properties={_isCardStyle:16,view:0,referenceElement:1,icon:1,activeLayerInfos:0,basemapLegendVisible:5,headingLevel:9,hideLayersNotInCurrentView:5,respectLayerDefinitionExpression:5,ignoreLayerVisibility:5,layerInfos:0,loading:39,cardStyleLayout:1,legendStyle:1,autoDestroyDisabled:5,messageOverrides:0,label:1,state:32}}static{this.styles=b}get ignoreLayerVisibility(){return!this.viewModel.respectLayerVisibility}set ignoreLayerVisibility(e){this.viewModel.respectLayerVisibility=!e}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[s(()=>this.el.view,"resize",()=>this.requestUpdate()),_(()=>[this.cardStyleLayout,this.legendStyle,typeof this.legendStyle=="object"?this.legendStyle.type:void 0,typeof this.legendStyle=="object"?this.legendStyle.layout:void 0],()=>{let e=this.legendStyle,i=typeof e=="object"?e:{type:e};this._isCardStyle=i.type==="card",this._isCardStyle?(this.cardStyleLayout=this.cardStyleLayout||i.layout||"auto",this.cardStyleLayout==="auto"&&this.el.closest("arcgis-expand")&&(this.cardStyleLayout="stack"),this.setAttribute("card-style-layout",this.cardStyleLayout)):this.removeAttribute("card-style-layout")},{initial:!0})]),this.manager.onLifecycle(()=>{let e=[],i=()=>{e.forEach(t=>t.remove()),e=[]},l=t=>{e.push(_(()=>t.version,()=>this.requestUpdate()),s(()=>t.children,"change",o)),t.children.forEach(l)},o=()=>{i(),this.activeLayerInfos.forEach(l),this.requestUpdate()};o();let w=s(()=>this.activeLayerInfos,"change",o);return()=>{w.remove(),i()}})}render(){return r`<div class=${h(u("root",a.widget,{[a.panel]:!this._isCardStyle}))}>${this._isCardStyle&&this.view?r`<arcgis-legend-card-view .activeLayerInfos=${this.activeLayerInfos} .headingLevel=${this.headingLevel} .messages=${this.messages} .layout=${this.cardStyleLayout} .view=${this.view}></arcgis-legend-card-view>`:r`<arcgis-legend-classic-view .activeLayerInfos=${this.activeLayerInfos} .headingLevel=${this.headingLevel} .messages=${this.messages}></arcgis-legend-classic-view>`}</div>`}};p("arcgis-legend",n);return n},"core/reactiveUtils","widgets/Legend/LegendViewModel",b,e,i,j)
|
|
2
|
+
import j from"./6I4BYACE.js";import{a as m}from"./6GCV73ZT.js";import{a}from"./X3ZN3AMW.js";import i from"./ZD6U62UH.js";import e from"./6QMDEHMD.js";import{g as f}from"./VAUTZPJM.js";import"./FGXOZY5V.js";import b from"./JIUQ2MYX.js";import"./FWR73QLI.js";import{d as u}from"./MUFZWCGR.js";import{N as g,O as h,T as p,a as c,b as r,w as d}from"./T3FLTZPV.js";import"./DUIJO5RQ.js";export default $arcgis.t(([{on:s,watch:_},y,,,,v])=>{var b=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{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}:host{--arcgis-internal-legend-heading-margin: 0 0 var(--calcite-space-xs);--arcgis-internal-legend-layer-padding: var(--calcite-space-md);--arcgis-internal-legend-layer-gap: var(--calcite-space-xl);--arcgis-internal-legend-layer-element-gap: var(--calcite-space-md);overflow:auto;width:var(--arcgis-internal-legend-width, 300px)}.root{overflow-y:var(--arcgis-internal-panel-overflow, auto)}:host([card-style-layout="side-by-side"]){--arcgis-internal-legend-width: auto}`,x=v(y),n=class extends g{constructor(){super(...arguments),this.messages=m({}),this.viewModel=x(this),this._isCardStyle=!1,this.view=this.viewModel.view,this.icon="legend",this.activeLayerInfos=this.viewModel.activeLayerInfos,this.basemapLegendVisible=this.viewModel.basemapLegendVisible,this.headingLevel=3,this.hideLayersNotInCurrentView=this.viewModel.hideLayersNotInCurrentView,this.respectLayerDefinitionExpression=this.viewModel.respectLayerDefinitionExpression,this.layerInfos=this.viewModel.layerInfos,this.loading=this.viewModel.loading,this.legendStyle="classic",this.autoDestroyDisabled=!1,this.label=this.messages?.componentLabel,this.state=this.viewModel.state,this.arcgisPropertyChange=f()("state"),this.arcgisReady=d()}static{this.properties={_isCardStyle:16,view:0,referenceElement:1,icon:1,activeLayerInfos:0,basemapLegendVisible:5,headingLevel:9,hideLayersNotInCurrentView:5,respectLayerDefinitionExpression:5,ignoreLayerVisibility:5,layerInfos:0,loading:39,cardStyleLayout:1,legendStyle:1,autoDestroyDisabled:5,messageOverrides:0,label:1,state:32}}static{this.styles=b}get ignoreLayerVisibility(){return!this.viewModel.respectLayerVisibility}set ignoreLayerVisibility(e){this.viewModel.respectLayerVisibility=!e}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[s(()=>this.el.view,"resize",()=>this.requestUpdate()),_(()=>[this.cardStyleLayout,this.legendStyle,typeof this.legendStyle=="object"?this.legendStyle.type:void 0,typeof this.legendStyle=="object"?this.legendStyle.layout:void 0],()=>{let e=this.legendStyle,i=typeof e=="object"?e:{type:e};this._isCardStyle=i.type==="card",this._isCardStyle?(this.cardStyleLayout=this.cardStyleLayout||i.layout||"auto",this.cardStyleLayout==="auto"&&this.el.closest("arcgis-expand")&&(this.cardStyleLayout="stack"),this.setAttribute("card-style-layout",this.cardStyleLayout)):this.removeAttribute("card-style-layout")},{initial:!0})]),this.manager.onLifecycle(()=>{let e=[],i=()=>{e.forEach(t=>t.remove()),e=[]},l=t=>{e.push(_(()=>t.version,()=>this.requestUpdate()),s(()=>t.children,"change",o)),t.children.forEach(l)},o=()=>{i(),this.activeLayerInfos.forEach(l),this.requestUpdate()};o();let w=s(()=>this.activeLayerInfos,"change",o);return()=>{w.remove(),i()}})}render(){return r`<div class=${h(u("root",a.widget,{[a.panel]:!this._isCardStyle}))}>${this._isCardStyle&&this.view?r`<arcgis-legend-card-view .activeLayerInfos=${this.activeLayerInfos} .headingLevel=${this.headingLevel} .messages=${this.messages} .layout=${this.cardStyleLayout} .view=${this.view}></arcgis-legend-card-view>`:r`<arcgis-legend-classic-view .activeLayerInfos=${this.activeLayerInfos} .headingLevel=${this.headingLevel} .messages=${this.messages}></arcgis-legend-classic-view>`}</div>`}};p("arcgis-legend",n);return n},"core/reactiveUtils","widgets/Legend/LegendViewModel",b,e,i,j)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
|
|
2
|
-
import{a as u}from"./
|
|
2
|
+
import{a as u}from"./6GCV73ZT.js";import"./VAUTZPJM.js";import"./FGXOZY5V.js";import"./FWR73QLI.js";import"./MUFZWCGR.js";import{N as h,T as g,a as m,b as c,o,r as p}from"./T3FLTZPV.js";import"./DUIJO5RQ.js";export default $arcgis.t(([v,{substitute:b}])=>{var $=m`:host{padding:0 var(--calcite-spacing-sm) var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}calcite-list{border:solid 1px var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-sm);overflow:hidden}calcite-list-item[selected] [slot=content-bottom]{display:block}.warning{color:var(--calcite-color-status-danger)}.terminals{padding:var(--calcite-spacing-sm) var(--calcite-spacing-md);display:flex;flex-direction:column}.filter-barrier{display:flex;justify-content:space-between;align-items:center;width:100%}`,d=class extends h{constructor(){super(...arguments),this._messages=u({blocking:!0}),this.traceLocations=new v,this.traceLocationType="starting-point"}static{this.properties={traceLocations:0,traceLocationType:1,view:0}}static{this.styles=$}loaded(){this.traceLocations.length||o("warn",this,p("traceLocations"))}#t(t){let{traceLocations:i,view:e}=this;t.spatialProperties.flagGraphic&&e&&e.graphics.remove(t.spatialProperties.flagGraphic),i?.remove(t)}#e(t,i){let{flagProperties:e}=t,{selectedTerminals:a}=e,{name:s,id:r}=i,n=a?.has(r)??!1;return c`<calcite-label layout=inline><calcite-checkbox .value=${r} .checked=${n} @calciteCheckboxChange=${l=>{l.target.checked?a?.add(r):a?.delete(r),this.requestUpdate()}}></calcite-checkbox>${s}</calcite-label>`}#i(){return c`<calcite-notice kind=danger open scale=s width=auto><div slot=message>${this._messages.errors.noTerminalSelected}</div></calcite-notice>`}#a(t){let{traceLocation:i}=t;return c`<calcite-label layout=inline><div class="filter-barrier">${this._messages.labels.filterBarrier}<calcite-switch .checked=${i.isFilterBarrier} @calciteSwitchChange=${e=>{i.isFilterBarrier=e.target.checked}}></calcite-switch></div></calcite-label>`}#c(t){let{flagProperties:i}=t,{terminalConfiguration:e,selectedTerminals:a}=i,s=t.traceLocation.type==="barrier",r=e&&e.terminals.length>0&&a?.size===0;return c`<calcite-action .icon=${i.expanded?"chevron-up":"chevron-down"} slot=actions-end scale=s text @click=${()=>{i.expanded=!i.expanded,this.requestUpdate()}}></calcite-action>${r&&c`<calcite-icon class="warning" icon=exclamation-mark-triangle scale=s slot=content-start></calcite-icon>`||""}${i.expanded&&c`<div class="terminals" slot=content-bottom>${s&&this.#a(t)||""}${e&&this.#r(t)||""}${r&&this.#i()||""}</div>`||""}`}#r(t){let{flagProperties:i}=t,{terminalConfiguration:e}=i;if(!e)return o("warn",this,"One or more locations are missing the required flag property `terminalConfiguration`."),[];let a=e.terminals;return a.length?a.length===1?[]:a.map(s=>this.#e(t,s)):(o("warn",this,"`terminalConfiguration.terminals` is required but either missing or empty.`"),[])}#s(t){let{flagProperties:i}=t,{terminalConfiguration:e,expanded:a,title:s}=i,r=e&&e.id!==0,n=t.traceLocation.type==="barrier",l=r||n,f=e?.name??void 0;return c`<calcite-list-item .label=${s} .description=${f} .value=${s} .expanded=${a}>${l?this.#c(t):c`<div slot=content-bottom></div>`}<calcite-action icon=x slot=actions-end scale=s text @click=${()=>this.#t(t)}></calcite-action></calcite-list-item>`}render(){let t=this.traceLocations.map(e=>this.#s(e)).toArray();if(!t.length)return null;let i=b(this._messages.labels.list,{traceLocationType:this.traceLocationType});return c`<div><calcite-list interaction-mode=static selection-mode=none .label=${i}>${t}</calcite-list></div>`}};g("arcgis-utility-network-trace-location-list",d);return d},"core/Collection","intl")
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
|
|
2
|
-
import h from"./XROVQNMM.js";import g from"./TQCXFWCA.js";import"./Q5TD3W4O.js";import{a as $}from"./D4EDMWLE.js";import e from"./432M5FFW.js";import{a as k}from"./6YMTY2YD.js";import{a as p}from"./X3ZN3AMW.js";import d from"./Y4LYAD4W.js";import c from"./PQUQG2X5.js";import{g as _}from"./M7UGJXFN.js";import"./A3Y3WUPP.js";import a from"./36SJXUCR.js";import"./FWR73QLI.js";import"./YQTPLDGF.js";import{N as m,O as y,Q as w,T as b,a as f,b as r,w as x}from"./6QPWIZBB.js";import"./DUIJO5RQ.js";export default $arcgis.t(([{ignoreAbortErrors:C},{watch:V},G,{property:d,subclass:A},,,,L,,z])=>{var j=f`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}:host{width:var(--arcgis-internal-panel-width, 300px)}.root{min-width:var(--arcgis-internal-panel-min-width, 300px);overflow:var(--arcgis-internal-panel-overflow, visible);height:fit-content}.container{display:flex;--layer-item-background: var(--calcite-color-foreground-2);flex-direction:column;flex-shrink:0;flex-basis:auto;justify-content:space-between;gap:var(--arcgis-internal-panel-gap)}.error{color:var(--calcite-color-status-danger)}.container,.hint{display:flex;flex-direction:column;gap:var(--arcgis-internal-panel-gap)}.error,.hint{overflow:hidden;animation:arcgis-slice-fade-in .25s ease-in-out}.error p,.hint p{margin:0;padding:0}.hint:not(:has(*)){display:none}.layer-item{--calcite-color-foreground-2: var(--layer-item-background);--calcite-color-foreground-1: var(--layer-item-background)}.actions{display:flex;flex-flow:column;gap:var(--arcgis-internal-panel-actions-gap);justify-content:center}.actions:not(:has(*)){display:none}@keyframes arcgis-slice-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}`,T=Object.defineProperty,D=Object.getOwnPropertyDescriptor,s=(e,i,t,n)=>{for(var a=n>1?void 0:n?D(i,t):i,l=e.length-1,c;l>=0;l--)(c=e[l])&&(a=(n?c(i,t,a):c(a))||a);return n&&a&&T(i,t,a),a},u=new Set,o=class extends z{constructor(){super(...arguments),this.supportedViewType="3d",this.unsupportedErrorMessage="SliceViewModel is only supported in 3D views."}async pickLayerToExclude(){let e=this.analysisView;if(e){let i=super.start({operation:t=>e.pickLayerToExclude(t),clear:!1});this._excludingLayers=i,i.finally(()=>{this._excludingLayers===i&&(this._excludingLayers=void 0)}),await i.catch(()=>{})}}async place(e){await this.analysisView?.place(e)}clearAnalysis(){this.analysis.shape=null}initialize(){u.add(this)}destroy(){u.delete(this)}get state(){return this.disabled||!this.ready?"disabled":this._excludingLayers?"excludingLayer":this.operationState==="active"?"slicing":this.analysis.valid?"sliced":"ready"}get shape(){return this.analysis.shape}set shape(e){this.analysis.shape=e}get tiltEnabled(){return this.analysis.tiltEnabled}set tiltEnabled(e){this.analysis.tiltEnabled=e}get excludedLayers(){return this.analysis.excludedLayers}set excludedLayers(e){this.analysis.excludedLayers=e}get excludeGroundSurface(){return this.analysis.excludeGroundSurface}set excludeGroundSurface(e){this.analysis.excludeGroundSurface=e}async start(){u.forEach(e=>{e.view===this.view&&e!==this&&e.clear()}),await super.start()}onConnectToAnalysisView(e){e.active=!0}constructAnalysis(){return new G}};s([d()],o.prototype,"_excludingLayers",2);s([d({readOnly:!0})],o.prototype,"state",1);s([d()],o.prototype,"shape",1);s([d()],o.prototype,"tiltEnabled",1);s([d()],o.prototype,"excludedLayers",1);s([d()],o.prototype,"excludeGroundSurface",1);o=s([A("esri.components.Slice.SliceViewModel")],o);var O=o,H=L(O),h=class extends m{constructor(){super(...arguments),this.viewModel=H(this),this._messages=k(),this.view=this.viewModel.view,this.analysis=this.viewModel.analysis,this.autoDestroyDisabled=!1,this.excludeGroundSurface=this.viewModel.excludeGroundSurface,this.excludedLayers=this.viewModel.excludedLayers,this.headingLevel=3,this.hideStartButton=!1,this.hideVisualization=this.viewModel.hideVisualization,this.icon="slice",this.shape=this.viewModel.shape,this.state=this.viewModel.state,this.tiltEnabled=this.viewModel.tiltEnabled,this.arcgisPropertyChange=_()("analysis","state"),this.arcgisReady=x()}static{this.properties={_hasVoxelLayers:16,view:0,analysis:0,autoDestroyDisabled:5,excludeGroundSurface:5,excludedLayers:0,headingLevel:9,hideStartButton:5,hideVisualization:5,icon:3,label:1,messageOverrides:0,referenceElement:1,shape:0,state:32,tiltEnabled:5}}static{this.styles=j}get _hasVoxelLayers(){let i=this.viewModel?.view;return i!=null?i.allLayerViews.some(t=>t.type==="voxel-3d"):!1}async clear(){this.viewModel.clear()}async destroy(){await this.manager.destroy()}async start(){C(this.viewModel.start())}load(){this.manager.onLifecycle(()=>[V(()=>this._renderContainerNode(),()=>this.requestUpdate())])}render(){return r`<div class=${y({root:!0,[p.widget]:!0,[p.panel]:!0})} role=presentation>${this._renderContainerNode()}</div>`}_renderContainerNode(){let i=this._messages,{state:t,hideVisualization:n,supported:a}=this.viewModel,l=t==="slicing"||t==="excludingLayer";if(n||!a)return null;a||r`<div class="container"><div class="error"><p>${this._messages.unsupported}</p></div></div>`;let{excludedLayers:c}=this.viewModel,v=this.excludeGroundSurface,M=c.length>0||v,g=t==="disabled";return r`<div class="container"><div class="hint">${t==="excludingLayer"?r`<p class="hint-text">${i.excludeHint}</p>`:null}${t==="slicing"?r`<p class="hint-text">${this._hasVoxelLayers?i.voxelHint:i.hint}</p><p class="hint-text">${i.verticalHint}</p>`:null}</div>${!l&&M?r`<div class="layer-list">${$({class:"layer-list-title",level:this.headingLevel,children:i.excludedLayers})}${B({layers:c.toArray(),excludeGroundSurface:v,onLayerClick:E=>{this.excludedLayers.remove(E)},onGroundClick:()=>{this.excludeGroundSurface=!1},listLabel:i.excludedLayers,layerActionLabel:i.includeLayer,groundItemTitle:i.ground})}</div>`:null}<div class="actions">${!l&&!this.hideStartButton?r`<calcite-button class="new-slice-button" .disabled=${g} @click=${this.start}>${i.newSlice}</calcite-button>`:null}${t==="sliced"?r`<calcite-button appearance=outline-fill class="exclude-button" .disabled=${g} @click=${()=>this.viewModel.pickLayerToExclude()}>${i.excludeLayer}</calcite-button>`:null}${t==="excludingLayer"?r`<calcite-button appearance=outline-fill class="cancel-button" .disabled=${g} @click=${()=>this.viewModel.stop()}>${i.cancel}</calcite-button>`:null}</div></div>`}};function S(e){return r`<calcite-list-item class="layer-item" data-testid=${`list-item-${e.uid}`} .label=${e.title??""}><calcite-action icon=x @click=${e.onClick} slot=actions-end .text=${e.actionLabel} title=${e.actionLabel??w}></calcite-action></calcite-list-item>`}function B(e){let i=e.layers.map(t=>S({uid:t.uid,title:t.title??"",onClick:()=>e.onLayerClick(t),actionLabel:e.layerActionLabel}));return e.excludeGroundSurface&&i.push(S({uid:"ground",title:e.groundItemTitle,onClick:e.onGroundClick,actionLabel:e.layerActionLabel})),r`<calcite-list .label=${e.listLabel} selection-mode=none>${i}</calcite-list>`}b("arcgis-slice",h);return h},"core/promiseUtils","core/reactiveUtils","analysis/SliceAnalysis","core/accessorSupport/decorators",a,c,d,e,g,h)
|
|
2
|
+
import h from"./R67SG7JY.js";import g from"./MWJWKG2I.js";import"./Q5TD3W4O.js";import{a as $}from"./LQU2J7A6.js";import e from"./6I4BYACE.js";import{a as k}from"./6GCV73ZT.js";import{a as p}from"./X3ZN3AMW.js";import d from"./ZD6U62UH.js";import c from"./6QMDEHMD.js";import{g as _}from"./VAUTZPJM.js";import"./FGXOZY5V.js";import a from"./JIUQ2MYX.js";import"./FWR73QLI.js";import"./MUFZWCGR.js";import{N as m,O as y,Q as w,T as b,a as f,b as r,w as x}from"./T3FLTZPV.js";import"./DUIJO5RQ.js";export default $arcgis.t(([{ignoreAbortErrors:C},{watch:V},G,{property:d,subclass:A},,,,L,,z])=>{var j=f`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}:host{width:var(--arcgis-internal-panel-width, 300px)}.root{min-width:var(--arcgis-internal-panel-min-width, 300px);overflow:var(--arcgis-internal-panel-overflow, visible);height:fit-content}.container{display:flex;--layer-item-background: var(--calcite-color-foreground-2);flex-direction:column;flex-shrink:0;flex-basis:auto;justify-content:space-between;gap:var(--arcgis-internal-panel-gap)}.error{color:var(--calcite-color-status-danger)}.container,.hint{display:flex;flex-direction:column;gap:var(--arcgis-internal-panel-gap)}.error,.hint{overflow:hidden;animation:arcgis-slice-fade-in .25s ease-in-out}.error p,.hint p{margin:0;padding:0}.hint:not(:has(*)){display:none}.layer-item{--calcite-color-foreground-2: var(--layer-item-background);--calcite-color-foreground-1: var(--layer-item-background)}.actions{display:flex;flex-flow:column;gap:var(--arcgis-internal-panel-actions-gap);justify-content:center}.actions:not(:has(*)){display:none}@keyframes arcgis-slice-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}`,T=Object.defineProperty,D=Object.getOwnPropertyDescriptor,s=(e,i,t,n)=>{for(var a=n>1?void 0:n?D(i,t):i,l=e.length-1,c;l>=0;l--)(c=e[l])&&(a=(n?c(i,t,a):c(a))||a);return n&&a&&T(i,t,a),a},u=new Set,o=class extends z{constructor(){super(...arguments),this.supportedViewType="3d",this.unsupportedErrorMessage="SliceViewModel is only supported in 3D views."}async pickLayerToExclude(){let e=this.analysisView;if(e){let i=super.start({operation:t=>e.pickLayerToExclude(t),clear:!1});this._excludingLayers=i,i.finally(()=>{this._excludingLayers===i&&(this._excludingLayers=void 0)}),await i.catch(()=>{})}}async place(e){await this.analysisView?.place(e)}clearAnalysis(){this.analysis.shape=null}initialize(){u.add(this)}destroy(){u.delete(this)}get state(){return this.disabled||!this.ready?"disabled":this._excludingLayers?"excludingLayer":this.operationState==="active"?"slicing":this.analysis.valid?"sliced":"ready"}get shape(){return this.analysis.shape}set shape(e){this.analysis.shape=e}get tiltEnabled(){return this.analysis.tiltEnabled}set tiltEnabled(e){this.analysis.tiltEnabled=e}get excludedLayers(){return this.analysis.excludedLayers}set excludedLayers(e){this.analysis.excludedLayers=e}get excludeGroundSurface(){return this.analysis.excludeGroundSurface}set excludeGroundSurface(e){this.analysis.excludeGroundSurface=e}async start(){u.forEach(e=>{e.view===this.view&&e!==this&&e.clear()}),await super.start()}onConnectToAnalysisView(e){e.active=!0}constructAnalysis(){return new G}};s([d()],o.prototype,"_excludingLayers",2);s([d({readOnly:!0})],o.prototype,"state",1);s([d()],o.prototype,"shape",1);s([d()],o.prototype,"tiltEnabled",1);s([d()],o.prototype,"excludedLayers",1);s([d()],o.prototype,"excludeGroundSurface",1);o=s([A("esri.components.Slice.SliceViewModel")],o);var O=o,H=L(O),h=class extends m{constructor(){super(...arguments),this.viewModel=H(this),this._messages=k(),this.view=this.viewModel.view,this.analysis=this.viewModel.analysis,this.autoDestroyDisabled=!1,this.excludeGroundSurface=this.viewModel.excludeGroundSurface,this.excludedLayers=this.viewModel.excludedLayers,this.headingLevel=3,this.hideStartButton=!1,this.hideVisualization=this.viewModel.hideVisualization,this.icon="slice",this.shape=this.viewModel.shape,this.state=this.viewModel.state,this.tiltEnabled=this.viewModel.tiltEnabled,this.arcgisPropertyChange=_()("analysis","state"),this.arcgisReady=x()}static{this.properties={_hasVoxelLayers:16,view:0,analysis:0,autoDestroyDisabled:5,excludeGroundSurface:5,excludedLayers:0,headingLevel:9,hideStartButton:5,hideVisualization:5,icon:3,label:1,messageOverrides:0,referenceElement:1,shape:0,state:32,tiltEnabled:5}}static{this.styles=j}get _hasVoxelLayers(){let i=this.viewModel?.view;return i!=null?i.allLayerViews.some(t=>t.type==="voxel-3d"):!1}async clear(){this.viewModel.clear()}async destroy(){await this.manager.destroy()}async start(){C(this.viewModel.start())}load(){this.manager.onLifecycle(()=>[V(()=>this._renderContainerNode(),()=>this.requestUpdate())])}render(){return r`<div class=${y({root:!0,[p.widget]:!0,[p.panel]:!0})} role=presentation>${this._renderContainerNode()}</div>`}_renderContainerNode(){let i=this._messages,{state:t,hideVisualization:n,supported:a}=this.viewModel,l=t==="slicing"||t==="excludingLayer";if(n||!a)return null;a||r`<div class="container"><div class="error"><p>${this._messages.unsupported}</p></div></div>`;let{excludedLayers:c}=this.viewModel,v=this.excludeGroundSurface,M=c.length>0||v,g=t==="disabled";return r`<div class="container"><div class="hint">${t==="excludingLayer"?r`<p class="hint-text">${i.excludeHint}</p>`:null}${t==="slicing"?r`<p class="hint-text">${this._hasVoxelLayers?i.voxelHint:i.hint}</p><p class="hint-text">${i.verticalHint}</p>`:null}</div>${!l&&M?r`<div class="layer-list">${$({class:"layer-list-title",level:this.headingLevel,children:i.excludedLayers})}${B({layers:c.toArray(),excludeGroundSurface:v,onLayerClick:E=>{this.excludedLayers.remove(E)},onGroundClick:()=>{this.excludeGroundSurface=!1},listLabel:i.excludedLayers,layerActionLabel:i.includeLayer,groundItemTitle:i.ground})}</div>`:null}<div class="actions">${!l&&!this.hideStartButton?r`<calcite-button class="new-slice-button" .disabled=${g} @click=${this.start}>${i.newSlice}</calcite-button>`:null}${t==="sliced"?r`<calcite-button appearance=outline-fill class="exclude-button" .disabled=${g} @click=${()=>this.viewModel.pickLayerToExclude()}>${i.excludeLayer}</calcite-button>`:null}${t==="excludingLayer"?r`<calcite-button appearance=outline-fill class="cancel-button" .disabled=${g} @click=${()=>this.viewModel.stop()}>${i.cancel}</calcite-button>`:null}</div></div>`}};function S(e){return r`<calcite-list-item class="layer-item" data-testid=${`list-item-${e.uid}`} .label=${e.title??""}><calcite-action icon=x @click=${e.onClick} slot=actions-end .text=${e.actionLabel} title=${e.actionLabel??w}></calcite-action></calcite-list-item>`}function B(e){let i=e.layers.map(t=>S({uid:t.uid,title:t.title??"",onClick:()=>e.onLayerClick(t),actionLabel:e.layerActionLabel}));return e.excludeGroundSurface&&i.push(S({uid:"ground",title:e.groundItemTitle,onClick:e.onGroundClick,actionLabel:e.layerActionLabel})),r`<calcite-list .label=${e.listLabel} selection-mode=none>${i}</calcite-list>`}b("arcgis-slice",h);return h},"core/promiseUtils","core/reactiveUtils","analysis/SliceAnalysis","core/accessorSupport/decorators",a,c,d,e,g,h)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
|
|
2
|
-
import b from"./
|
|
2
|
+
import b from"./D7JTITKB.js";import"./VAUTZPJM.js";import"./FGXOZY5V.js";import"./FWR73QLI.js";import"./MUFZWCGR.js";import{N as a,P as c,T as l,a as r,b as n}from"./T3FLTZPV.js";import"./DUIJO5RQ.js";export default $arcgis.t(([p])=>{var h=r`:host{display:contents}.root{position:absolute}`,e=class extends a{constructor(){super(...arguments),this.trackLocation=!1,this.screenLocation=p(this)}static{this.properties={trackLocation:5,screenLocation:32,label:1,location:0,view:0}}static{this.styles=h}_getPositionStyles(){let{screenLocation:t,view:o}=this;if(o==null||t==null)return{};let{padding:i}=o,s=16;return{"--calcite-loader-size":`${s}px`,left:`${t.x-(i.left??0)-s/2}px`,top:`${t.y-(i.top??0)-s/2}px`}}render(){return this.screenLocation?n`<calcite-loader class="root" .label=${this.label??""} inline style=${c(this._getPositionStyles())}></calcite-loader>`:null}};l("arcgis-spinner",e);return e},b)
|