@arcgis/map-components 5.2.0-next.126 → 5.2.0-next.127
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/23HSSJKV.js +2 -0
- package/dist/cdn/{DDMND66A.js → 26MF7QKM.js} +1 -1
- package/dist/cdn/{4M472CAO.js → 2DB2WQZ2.js} +1 -1
- package/dist/cdn/{YPARUN26.js → 2K4IAUMP.js} +1 -1
- package/dist/cdn/{PE7FKM4Y.js → 2KVWP7C2.js} +1 -1
- package/dist/cdn/{FAOYV6UX.js → 2OJYLBNC.js} +1 -1
- package/dist/cdn/{3GJ5ZU2P.js → 2ZIKXQT2.js} +1 -1
- package/dist/cdn/3BUFS5YM.js +2 -0
- package/dist/cdn/{LQRBB54H.js → 3E2WFQLJ.js} +1 -1
- package/dist/cdn/{JFZDHIFY.js → 3FYZUJFR.js} +1 -1
- package/dist/cdn/{VBTTL5IO.js → 3HVJLNKZ.js} +1 -1
- package/dist/cdn/{PM2ZNRTW.js → 3N3WXEBV.js} +1 -1
- package/dist/cdn/{XBMO67RQ.js → 3PCBVCV5.js} +1 -1
- package/dist/cdn/{AEAPNMXM.js → 3SJHCSFU.js} +1 -1
- package/dist/cdn/3TPXSBZ2.js +2 -0
- package/dist/cdn/{NG2QZJEO.js → 3VQ5MXTS.js} +1 -1
- package/dist/cdn/45WHYU33.js +2 -0
- package/dist/cdn/4GBWZ6JK.js +2 -0
- package/dist/cdn/{ZSISB5M6.js → 4JEXOOCU.js} +1 -1
- package/dist/cdn/4NZEJ5EQ.js +2 -0
- package/dist/cdn/{EITQWPOD.js → 4Q5CHT35.js} +1 -1
- package/dist/cdn/{WTYAO7OQ.js → 4QP6ILUV.js} +1 -1
- package/dist/cdn/{QCQHFZNJ.js → 5ARWD7RU.js} +1 -1
- package/dist/cdn/{5D6MVSNC.js → 5BQMWW5Q.js} +1 -1
- package/dist/cdn/{2TKV72AS.js → 5MY72QW3.js} +1 -1
- package/dist/cdn/{G6XGWHOU.js → 5Q2HHIWU.js} +1 -1
- package/dist/cdn/{TQMJ6PQF.js → 5TZGXGC2.js} +1 -1
- package/dist/cdn/{5ELKTESG.js → 5X5STRNV.js} +1 -1
- package/dist/cdn/6KU3XBCB.js +2 -0
- package/dist/cdn/6WVMBRDZ.js +2 -0
- package/dist/cdn/{IZH2VVII.js → 77D3OZDV.js} +1 -1
- package/dist/cdn/77ULNULN.js +2 -0
- package/dist/cdn/{BUHX56TS.js → 7CO5HNJZ.js} +1 -1
- package/dist/cdn/{J272CPYG.js → 7JCDDJEO.js} +1 -1
- package/dist/cdn/7REHGHYL.js +2 -0
- package/dist/cdn/{WDGUD3AW.js → 7V3LUKTZ.js} +1 -1
- package/dist/cdn/{JVBTLEYY.js → 7XKNWVD4.js} +1 -1
- package/dist/cdn/{4QD7Q5RL.js → A76WBNBW.js} +1 -1
- package/dist/cdn/{XFXGNOUK.js → ABCAVCJS.js} +1 -1
- package/dist/cdn/{BLV3FC2L.js → AE33MJQH.js} +1 -1
- package/dist/cdn/{P2T7TMD7.js → AFUNYL57.js} +1 -1
- package/dist/cdn/{CDHRGVNI.js → AJFAPBMM.js} +1 -1
- package/dist/cdn/{LXPKUWCG.js → AMWU2257.js} +1 -1
- package/dist/cdn/{XB5WB5TW.js → ANBUBGMA.js} +1 -1
- package/dist/cdn/{SSJRVJ4B.js → AQTSDDVK.js} +1 -1
- package/dist/cdn/{PO5XZ4VC.js → ATRMFLKS.js} +1 -1
- package/dist/cdn/{IRTMUSJ5.js → BO6UZ45F.js} +1 -1
- package/dist/cdn/{H4UAU7VY.js → BOGLYQ5O.js} +1 -1
- package/dist/cdn/{ICYRLAW6.js → BOX3BB5W.js} +1 -1
- package/dist/cdn/{I7ESTJQK.js → BTAWFZYA.js} +1 -1
- package/dist/cdn/{VYL2WRAH.js → BTC4LBE2.js} +1 -1
- package/dist/cdn/{VCTUZXOT.js → BTHXY33A.js} +1 -1
- package/dist/cdn/{FIKOSKHE.js → BUKAHDDH.js} +1 -1
- package/dist/cdn/{VUFQZZUS.js → BVFW23P2.js} +1 -1
- package/dist/cdn/BVIAOB5O.js +2 -0
- package/dist/cdn/{U7A72ZYI.js → BWWWPF3D.js} +1 -1
- package/dist/cdn/CG5EOZ5E.js +2 -0
- package/dist/cdn/{63FA46BR.js → D2ILHVVB.js} +1 -1
- package/dist/cdn/{TM4YVKG6.js → D2TVY2FV.js} +1 -1
- package/dist/cdn/{TBBD3K7K.js → D7FCBWGA.js} +1 -1
- package/dist/cdn/{TBVQDBHB.js → DM7LIJDU.js} +1 -1
- package/dist/cdn/{LNZXSHWQ.js → E23I3LNK.js} +1 -1
- package/dist/cdn/{NML7LK6C.js → E6WLDHQE.js} +1 -1
- package/dist/cdn/{7INLGELH.js → EDJYAXEB.js} +1 -1
- package/dist/cdn/{MEWTGMFY.js → EEWGG5MJ.js} +1 -1
- package/dist/cdn/EFTRT3PC.js +2 -0
- package/dist/cdn/{3MQXFKC2.js → EHCQ6UAZ.js} +1 -1
- package/dist/cdn/{UV43LA4E.js → EHN5OCRK.js} +1 -1
- package/dist/cdn/{RWLJF4S5.js → EIZNZKHN.js} +1 -1
- package/dist/cdn/EKRYB356.js +2 -0
- package/dist/cdn/{LWZKP5AT.js → EOG6YHUA.js} +1 -1
- package/dist/cdn/EOVJXYU2.js +2 -0
- package/dist/cdn/EPSTVLDH.js +2 -0
- package/dist/cdn/{6RYFNL57.js → ESLHUFYQ.js} +1 -1
- package/dist/cdn/{SGA5LQW4.js → EVB3QOJS.js} +1 -1
- package/dist/cdn/{72VMDAFS.js → EVN3T57B.js} +1 -1
- package/dist/cdn/{HTYR6B7T.js → EWX4XQBI.js} +1 -1
- package/dist/cdn/{XIUOCWDO.js → EZMCUVKV.js} +1 -1
- package/dist/cdn/{C7UXNJ5I.js → F6WCDCVZ.js} +1 -1
- package/dist/cdn/{LRHP4H7N.js → F7KDBJ53.js} +1 -1
- package/dist/cdn/{FSX775VS.js → FCWHIX6Q.js} +1 -1
- package/dist/cdn/{2CHRFLK4.js → FLFOMU5V.js} +1 -1
- package/dist/cdn/FX2T6AOI.js +2 -0
- package/dist/cdn/GDHBKT7X.js +2 -0
- package/dist/cdn/{YZVGMCOM.js → GE5OI5A7.js} +1 -1
- package/dist/cdn/{44LLPVTI.js → GE74I75T.js} +1 -1
- package/dist/cdn/{REP2Y3FL.js → GKXR454H.js} +1 -1
- package/dist/cdn/{LPO2FQ5N.js → GLRUAFW4.js} +1 -1
- package/dist/cdn/GOQX6N76.js +2 -0
- package/dist/cdn/{UQS6LSO5.js → GXVJ5XIS.js} +1 -1
- package/dist/cdn/{G7APUHRE.js → GXXJVFXO.js} +1 -1
- package/dist/cdn/{2LHQ525N.js → H5IDCIGU.js} +1 -1
- package/dist/cdn/HFM5NPZZ.js +2 -0
- package/dist/cdn/{NWEM5AZ6.js → HGGXNI56.js} +1 -1
- package/dist/cdn/HVOH2A6M.js +2 -0
- package/dist/cdn/HZWFDJFV.js +2 -0
- package/dist/cdn/I2BIPOZQ.js +4 -0
- package/dist/cdn/{DQZCUGYA.js → ICBWYP63.js} +1 -1
- package/dist/cdn/{LCWLE76U.js → IFPX2SVE.js} +1 -1
- package/dist/cdn/{36EM3NTZ.js → IHTRKYAF.js} +1 -1
- package/dist/cdn/IIFPXXLV.js +2 -0
- package/dist/cdn/{Y7N4OQQO.js → IL5HIKPU.js} +1 -1
- package/dist/cdn/IPAUI5MK.js +2 -0
- package/dist/cdn/IPFOE73J.js +2 -0
- package/dist/cdn/{42KEDKJA.js → IPGN7TJM.js} +1 -1
- package/dist/cdn/{FD7GEMDU.js → IQOYWZKB.js} +1 -1
- package/dist/cdn/IROZR6HA.js +2 -0
- package/dist/cdn/{56EBWQ2X.js → IYHXTJJV.js} +1 -1
- package/dist/cdn/{O7CUBBAI.js → IZBEIVBQ.js} +1 -1
- package/dist/cdn/{PMFWQLEU.js → JALZMYVE.js} +1 -1
- package/dist/cdn/{KVTZQ34H.js → JBRKK3VF.js} +1 -1
- package/dist/cdn/{ODAZZCP2.js → JBXXHEEI.js} +1 -1
- package/dist/cdn/JE6NC2E6.js +2 -0
- package/dist/cdn/{IGROXELE.js → JEOUMVSL.js} +1 -1
- package/dist/cdn/JF4LCL3J.js +2 -0
- package/dist/cdn/{C4N4FQFP.js → JFA3BQNT.js} +1 -1
- package/dist/cdn/{XD4O4M7R.js → JMZCAMJX.js} +1 -1
- package/dist/cdn/{DDZKBKTV.js → JNQEJQFS.js} +1 -1
- package/dist/cdn/{4SB4TP3X.js → JQ3R3XMY.js} +1 -1
- package/dist/cdn/{K2H5FBFZ.js → K2WDAQU5.js} +1 -1
- package/dist/cdn/{HIFQHVGL.js → KKLGABRK.js} +1 -1
- package/dist/cdn/KM5NXHAK.js +2 -0
- package/dist/cdn/{P4ZKTLC3.js → KNVCQJ7O.js} +1 -1
- package/dist/cdn/{ZCI2M6MA.js → KS2KPSVW.js} +1 -1
- package/dist/cdn/KUFCT3WP.js +2 -0
- package/dist/cdn/{2B5ENAVA.js → KVEB7KH4.js} +1 -1
- package/dist/cdn/{MBUHYX5N.js → KYJLH5NA.js} +1 -1
- package/dist/cdn/{O5MUETR5.js → L7OO7DJU.js} +1 -1
- package/dist/cdn/{VV5F3KJG.js → L7P3VGFU.js} +1 -1
- package/dist/cdn/{LQCTYUNV.js → LGVPQ23I.js} +1 -1
- package/dist/cdn/{KENAA6EX.js → LK3YGRVI.js} +1 -1
- package/dist/cdn/LOYVJTVI.js +2 -0
- package/dist/cdn/{ZW2LETAA.js → LP74HAQI.js} +1 -1
- package/dist/cdn/{TDPA4AAV.js → LSVNXTPW.js} +1 -1
- package/dist/cdn/{WEBLSYMP.js → LT7UCTKO.js} +1 -1
- package/dist/cdn/{HMYR7BQD.js → ML3CEDNN.js} +1 -1
- package/dist/cdn/{5NKLQGFI.js → MQIR4CZ4.js} +1 -1
- package/dist/cdn/{EA6BYP6T.js → MRFX6GG4.js} +1 -1
- package/dist/cdn/{2Z4QCH6U.js → MVYTDX7B.js} +1 -1
- package/dist/cdn/{Q63KXTZF.js → NB4UV3WZ.js} +1 -1
- package/dist/cdn/{HE3GFH3Y.js → NBELHVZV.js} +1 -1
- package/dist/cdn/{DDWWAWOY.js → NCCYPWND.js} +1 -1
- package/dist/cdn/{UPVXM4VW.js → NDX25YWH.js} +1 -1
- package/dist/cdn/{3XCESEFU.js → NIPK7YYJ.js} +1 -1
- package/dist/cdn/{IRKGDPQT.js → NOCI7PVC.js} +1 -1
- package/dist/cdn/{CTWITXBV.js → NOKB7FXX.js} +1 -1
- package/dist/cdn/{2LUBBAJK.js → NS22DZHN.js} +1 -1
- package/dist/cdn/{PB3LAPN6.js → O3V63YCY.js} +1 -1
- package/dist/cdn/O44K3BST.js +2 -0
- package/dist/cdn/{3OB36MB3.js → O6Q5GNQ5.js} +1 -1
- package/dist/cdn/{TDNKW7DO.js → OIXG64HP.js} +1 -1
- package/dist/cdn/{BUQUHDCE.js → OOGJQ5G4.js} +1 -1
- package/dist/cdn/{UAK6BANU.js → ORUBXAAU.js} +1 -1
- package/dist/cdn/{JULO3D2H.js → PIMY2US4.js} +1 -1
- package/dist/cdn/{EA66TPSM.js → PJI2EVW4.js} +1 -1
- package/dist/cdn/PME66FRM.js +2 -0
- package/dist/cdn/PRNUVGMO.js +2 -0
- package/dist/cdn/{DKYYSLNK.js → PSTY67SN.js} +1 -1
- package/dist/cdn/{N2NR2FG5.js → PV3L726K.js} +1 -1
- package/dist/cdn/PVNF2Z2E.js +2 -0
- package/dist/cdn/{7MACTSPL.js → PWHBULWL.js} +1 -1
- package/dist/cdn/{V3GNUYUT.js → QAKYDAE3.js} +1 -1
- package/dist/cdn/{UQND4HWF.js → QDSTQOU2.js} +1 -1
- package/dist/cdn/QERRLNHI.js +2 -0
- package/dist/cdn/{AMCLAGVN.js → QGB7AGII.js} +1 -1
- package/dist/cdn/QHGEM66H.js +2 -0
- package/dist/cdn/QIMQEVTV.js +2 -0
- package/dist/cdn/{HJ4HFO7D.js → QKHSI35C.js} +1 -1
- package/dist/cdn/{DGHSJCA2.js → QRXQ5LVY.js} +1 -1
- package/dist/cdn/{SVEKICHA.js → QZ5LJH35.js} +1 -1
- package/dist/cdn/RA5SRNJJ.js +2 -0
- package/dist/cdn/RFL4MCSE.js +2 -0
- package/dist/cdn/{WJ7JJP72.js → RGYBVXLH.js} +1 -1
- package/dist/cdn/{AM4FJ6LD.js → RH5K6YB3.js} +1 -1
- package/dist/cdn/{LDNEFZBQ.js → RL5WBJH2.js} +1 -1
- package/dist/cdn/{ISCYIJ46.js → RM34SONU.js} +1 -1
- package/dist/cdn/{PGQZ2K6F.js → RW4H2SVK.js} +1 -1
- package/dist/cdn/{NIE5PNXD.js → S7G7JDQC.js} +1 -1
- package/dist/cdn/{MF236WBI.js → SIHH6LT5.js} +1 -1
- package/dist/cdn/{W656SZ7U.js → SMNGRZOR.js} +1 -1
- package/dist/cdn/SNX6IENY.js +2 -0
- package/dist/cdn/{4FPCGK34.js → SSNCB7LI.js} +1 -1
- package/dist/cdn/{4C233AOO.js → STVCYQD6.js} +1 -1
- package/dist/cdn/SZ6IV47J.js +2 -0
- package/dist/cdn/{OVMBMFG3.js → SZYG5GVN.js} +1 -1
- package/dist/cdn/{W6MSEHSY.js → T2JQCREB.js} +1 -1
- package/dist/cdn/{HEJ5UVJZ.js → TAZZC5OO.js} +1 -1
- package/dist/cdn/{AAWDYBYK.js → TL6AWIIE.js} +1 -1
- package/dist/cdn/{HB4DZC74.js → TO2AHJ2D.js} +1 -1
- package/dist/cdn/TP5CAC5F.js +2 -0
- package/dist/cdn/{ZPZFZGBT.js → TRKMGYRA.js} +1 -1
- package/dist/cdn/{RR3TUS2D.js → TSCXUJ3H.js} +1 -1
- package/dist/cdn/{NWENDZZY.js → TT6LZYXE.js} +1 -1
- package/dist/cdn/{6J5QXNJX.js → TXYWZMGM.js} +1 -1
- package/dist/cdn/{5CEWGYZX.js → TYE57RYK.js} +1 -1
- package/dist/cdn/{ZYPMEZDF.js → U2K2GM2A.js} +1 -1
- package/dist/cdn/{N7AFJJVW.js → U2XEJHYW.js} +1 -1
- package/dist/cdn/{APKAK7WN.js → U4A4FLPH.js} +1 -1
- package/dist/cdn/{AEE3ITTX.js → UCX6CLDZ.js} +1 -1
- package/dist/cdn/{K4DCZOCW.js → UIWQMNVA.js} +1 -1
- package/dist/cdn/{Y5QZ3L7W.js → UP52QGP6.js} +1 -1
- package/dist/cdn/{3VBXXNTN.js → URWPOPI7.js} +1 -1
- package/dist/cdn/UWHSAI3L.js +2 -0
- package/dist/cdn/{RI4CMB5D.js → UXPYCE3L.js} +1 -1
- package/dist/cdn/{OJBUMUSV.js → UYY3HJ3C.js} +1 -1
- package/dist/cdn/V7FCORTC.js +2 -0
- package/dist/cdn/{5EE4D5NU.js → VBC4PE53.js} +1 -1
- package/dist/cdn/VFHKHLM6.js +2 -0
- package/dist/cdn/VGHKU6QN.js +2 -0
- package/dist/cdn/{6IKFGCI7.js → VKURE3J2.js} +1 -1
- package/dist/cdn/{RY2V62OL.js → VOFY2VSJ.js} +1 -1
- package/dist/cdn/VZ5UIYRZ.js +2 -0
- package/dist/cdn/{Y53XVNMM.js → W4CJTN6T.js} +1 -1
- package/dist/cdn/{DCF5NPMS.js → WINEAW5E.js} +1 -1
- package/dist/cdn/{6OYFC4VZ.js → WIVG25HH.js} +1 -1
- package/dist/cdn/WMARZKLI.js +2 -0
- package/dist/cdn/{25LV3KCP.js → WT5SGWE4.js} +1 -1
- package/dist/cdn/{QKLKHDU7.js → X5EYPVUR.js} +1 -1
- package/dist/cdn/XADV6ULF.js +2 -0
- package/dist/cdn/{OFFTNNCA.js → XJJQGFWN.js} +1 -1
- package/dist/cdn/{K6TPVS6T.js → XO3BXDJB.js} +1 -1
- package/dist/cdn/{OCGCWC3P.js → XUSJST2P.js} +1 -1
- package/dist/cdn/{44NU63UA.js → XW2MWO3R.js} +1 -1
- package/dist/cdn/{DYDFKP44.js → Y3SFKTBJ.js} +1 -1
- package/dist/cdn/{EHXNLGTZ.js → Y4AWD5AV.js} +1 -1
- package/dist/cdn/{YJOQGUU3.js → Y7LCZTZN.js} +1 -1
- package/dist/cdn/{BMRMUP5N.js → YB3JVI5U.js} +1 -1
- package/dist/cdn/{MRVGFB7R.js → YECX3B43.js} +1 -1
- package/dist/cdn/{ZLSKMKZJ.js → YMRXKAOB.js} +1 -1
- package/dist/cdn/{KHWWBO2D.js → YNPZGFD5.js} +1 -1
- package/dist/cdn/{P4OEIRUK.js → YPW4CF4Y.js} +1 -1
- package/dist/cdn/YQKMTVF7.js +2 -0
- package/dist/cdn/YSWNUR6Q.js +2 -0
- package/dist/cdn/{BLCZLLCG.js → YTCVSC5P.js} +1 -1
- package/dist/cdn/{GLGQUUCZ.js → YXAD73CE.js} +1 -1
- package/dist/cdn/{OLZBK6DV.js → YYKHJHRL.js} +1 -1
- package/dist/cdn/{NJ5RRMLJ.js → Z2NU3RGI.js} +1 -1
- package/dist/cdn/{R7GRZX4T.js → Z37YCCSM.js} +1 -1
- package/dist/cdn/{E6Q5SBWB.js → Z5BFIWLI.js} +1 -1
- package/dist/cdn/ZGH76U52.js +2 -0
- package/dist/cdn/{LSWPK2J3.js → ZNFXHSNB.js} +1 -1
- package/dist/cdn/{A6JSTNH5.js → ZVIW6QGG.js} +1 -1
- package/dist/cdn/{MBANEOYT.js → ZYFORDEE.js} +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/time-bar/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/esri-main.js +1 -1
- package/dist/chunks/formattingUtils.js +19 -0
- package/dist/chunks/slots.js +1 -1
- package/dist/chunks/useArcgisViewReadyError.js +214 -0
- package/dist/components/arcgis-add-attachment-view/customElement.d.ts +116 -0
- package/dist/components/arcgis-add-attachment-view/customElement.js +43 -0
- package/dist/components/arcgis-add-attachment-view/index.d.ts +1 -0
- package/dist/components/arcgis-add-attachment-view/index.js +6 -0
- package/dist/components/arcgis-attachment-validation-view/customElement.d.ts +48 -27
- package/dist/components/arcgis-attachment-validation-view/customElement.js +36 -46
- package/dist/components/arcgis-basemap-toggle/BasemapToggleViewModel.d.ts +25 -0
- package/dist/components/arcgis-basemap-toggle/customElement.d.ts +3 -3
- package/dist/components/arcgis-basemap-toggle/customElement.js +124 -30
- package/dist/components/arcgis-exploratory-analysis/customElement.js +1 -1
- package/dist/components/arcgis-feature-form-field/customElement.d.ts +48 -27
- package/dist/components/arcgis-feature-table/customElement.d.ts +8 -0
- package/dist/components/arcgis-feature-table/customElement.js +28 -26
- package/dist/components/arcgis-features-next/customElement.d.ts +1 -1
- package/dist/components/arcgis-features-next/customElement.js +92 -92
- package/dist/components/arcgis-file-picker/customElement.d.ts +1 -1
- package/dist/components/arcgis-line-of-sight/customElement.js +1 -1
- package/dist/components/arcgis-link-chart/customElement.d.ts +2 -0
- package/dist/components/arcgis-link-chart/customElement.js +12 -12
- package/dist/components/arcgis-map/customElement.d.ts +2 -0
- package/dist/components/arcgis-map/customElement.js +20 -20
- package/dist/components/arcgis-measurement-content/customElement.js +6 -6
- package/dist/components/arcgis-popup/customElement.d.ts +22 -25
- package/dist/components/arcgis-popup/customElement.js +8 -8
- package/dist/components/arcgis-popup/types.d.ts +15 -6
- package/dist/components/arcgis-scene/customElement.d.ts +2 -0
- package/dist/components/arcgis-scene/customElement.js +21 -21
- package/dist/components/arcgis-slice/customElement.js +22 -22
- package/dist/components/arcgis-slider-scale-range/customElement.js +1 -1
- package/dist/components/arcgis-time-bar/customElement.d.ts +12 -0
- package/dist/components/arcgis-time-bar/customElement.js +9 -9
- package/dist/components/arcgis-time-bar-date/customElement.js +6 -8
- package/dist/components/arcgis-time-bar-extent/customElement.js +15 -13
- package/dist/components/arcgis-time-bar-settings/customElement.js +117 -105
- package/dist/components/arcgis-time-bar-slider/customElement.d.ts +4 -0
- package/dist/components/arcgis-time-bar-slider/customElement.js +50 -50
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-validate-network-topology/customElement.js +1 -1
- package/dist/components/arcgis-version-management/customElement.js +37 -37
- package/dist/components/arcgis-volume-measurement/customElement.js +1 -1
- package/dist/controllers/uiController.d.ts +8 -0
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.css-custom-data.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/loader.js +5 -4
- package/dist/types/lumina.d.ts +8 -2
- package/dist/types/preact.d.ts +9 -2
- package/dist/types/react.d.ts +10 -2
- package/dist/types/stencil.d.ts +8 -2
- package/package.json +6 -6
- package/dist/cdn/2RGTCUK2.js +0 -2
- package/dist/cdn/2ZJLXDK6.js +0 -2
- package/dist/cdn/3FS6K67C.js +0 -2
- package/dist/cdn/3RTZFOIB.js +0 -2
- package/dist/cdn/4JLRRQSP.js +0 -2
- package/dist/cdn/5NF3EDT4.js +0 -2
- package/dist/cdn/5UFMDCCR.js +0 -2
- package/dist/cdn/73THNCDA.js +0 -2
- package/dist/cdn/73WLPDL3.js +0 -2
- package/dist/cdn/7AYPQVX6.js +0 -2
- package/dist/cdn/AFRAHGIQ.js +0 -2
- package/dist/cdn/B5JTT6EG.js +0 -2
- package/dist/cdn/BIH6F2CW.js +0 -2
- package/dist/cdn/BYIK3JAT.js +0 -2
- package/dist/cdn/BYZS3H4S.js +0 -2
- package/dist/cdn/CG6XJ6N3.js +0 -2
- package/dist/cdn/CIVENBYG.js +0 -2
- package/dist/cdn/EL2BQ6LY.js +0 -2
- package/dist/cdn/EZUPM4AL.js +0 -2
- package/dist/cdn/F4JJJCUL.js +0 -2
- package/dist/cdn/FJDRDYFD.js +0 -2
- package/dist/cdn/GJLGRECD.js +0 -2
- package/dist/cdn/GU4VFJE5.js +0 -2
- package/dist/cdn/H524VRJK.js +0 -2
- package/dist/cdn/HXRWRNXL.js +0 -2
- package/dist/cdn/IOSDZQ4I.js +0 -2
- package/dist/cdn/J3EEBCEJ.js +0 -2
- package/dist/cdn/JSI4XVCM.js +0 -2
- package/dist/cdn/JWINHP35.js +0 -2
- package/dist/cdn/LENLLEZE.js +0 -2
- package/dist/cdn/LFTP2KFZ.js +0 -2
- package/dist/cdn/MNS5VY6U.js +0 -4
- package/dist/cdn/NO77DEL2.js +0 -2
- package/dist/cdn/NYXY6QWR.js +0 -2
- package/dist/cdn/O5FA44PS.js +0 -2
- package/dist/cdn/OAGAKIW2.js +0 -2
- package/dist/cdn/OIYSCYT3.js +0 -2
- package/dist/cdn/OPFQOLLP.js +0 -2
- package/dist/cdn/PGQ4RVAW.js +0 -2
- package/dist/cdn/QSKIX6RM.js +0 -2
- package/dist/cdn/S5UJIOCL.js +0 -2
- package/dist/cdn/SGWDQIQ6.js +0 -2
- package/dist/cdn/SHX7I64J.js +0 -2
- package/dist/cdn/T2NYS5QU.js +0 -2
- package/dist/cdn/TE7CGN73.js +0 -2
- package/dist/cdn/TM4MANUR.js +0 -2
- package/dist/cdn/TQXBEQIV.js +0 -2
- package/dist/cdn/UTCTJCII.js +0 -2
- package/dist/cdn/VGAHWEBP.js +0 -2
- package/dist/cdn/XVGFEWIA.js +0 -2
- package/dist/cdn/XZ7CRL7A.js +0 -2
- package/dist/cdn/Z24KU6OH.js +0 -2
- package/dist/cdn/ZPMJES3R.js +0 -2
- package/dist/chunks/messages.en.js +0 -46
- package/dist/chunks/selectionOverlayPopupController.js +0 -207
- /package/dist/cdn/{PR6OAZWA.js → MIGBO54V.js} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import h from"./QZ5LJH35.js";import"./VJVKFKSG.js";import g from"./5TZGXGC2.js";import{a as x}from"./O3V63YCY.js";import f from"./YSWNUR6Q.js";import e from"./QRXQ5LVY.js";import"./PME66FRM.js";import"./WT5SGWE4.js";import a from"./D7FCBWGA.js";import"./QUZTFUWM.js";import"./2OJYLBNC.js";import"./XURWCCLX.js";import{P as S,W as V,a as b,b as c,p as d,q as y,x as u}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([{once:N,watch:M},B,,,,E,{a:_}])=>{var q=b`: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-view-corner-radius: var(--arcgis-view-corner-radius, 0px);--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}:host{display:flex;flex-direction:column;height:var(--arcgis-internal-panel-height, 100%)}calcite-notice{background-color:var(--calcite-color-surface-2);padding:var(--calcite-space-sm)}`,R=E(B),f=class extends S{constructor(){super(...arguments),this._messages=x({blocking:!0}),this.#t=[],this.#r=[],this.#a=[],this.#e=R(this),this._currentPage=1,this._filterText="",this._isInitialFeatureServiceInvalid=!1,this._mode="browse-services",this.allowEditingDisabled=!1,this.autoDestroyDisabled=!1,this.closable=!1,this.pageSize=5,this.state=this.#e.state,this.versioningStates=this.#e.versioningStates,this.view=this.#e.view,this.arcgisReady=u(),this.arcgisVersioningStateChanged=u()}static{this.properties={_currentPage:16,_editVersionInfo:16,_filterText:16,_isInitialFeatureServiceInvalid:16,_loadError:16,_mode:16,_selectedFeatureService:16,allowEditingDisabled:5,autoDestroyDisabled:5,closable:7,icon:1,initialVersionInfos:0,label:1,messageOverrides:0,mode:1,pageSize:9,referenceElement:1,state:32,versioningStates:0,view:0}}static{this.styles=q}#t;#r;#a;#e;get initialVersionInfos(){return this.#t}set initialVersionInfos(e){this.#t=e.map(i=>({...i,url:this.#y(i.url)}))}async destroy(){await this.manager.destroy()}async load(){N(()=>this.#e.state==="failed"||this.#e.state==="ready").then(()=>{this._loadError||(this.#S(),this._loadError||this.#l())}),this.manager.onLifecycle(()=>[M(()=>this.view?.map,()=>{this.#b()})])}#l(){this.initialVersionInfos.forEach(e=>{try{this.#c(e)}catch(i){y(this)(i)}})}#c(e){let{url:i,name:a}=e,r=this.#e.versioningStateLookup.get(i);if(!r){this._isInitialFeatureServiceInvalid=!0,d("error",this,`No versioning state found for feature service ${i}`);return}let t=r?.versionInfos.find(g=>g.versionIdentifier.name.toUpperCase()===a.toUpperCase());if(!t){this.#r.push(i),this.requestUpdate(),d("error",this,`Version ${a} not found in the versioning state for feature service ${i}`);return}let s=t.versionIdentifier,l=r?.currentVersionInfo?.versionIdentifier;s.guid!==l?.guid&&this.#e.changeVersion(i,s.name,s.guid)}#s(e){let{_messages:i}=this;switch(e){case"no-feature-services":return i.loadErrors.noFeatureServices;case"no-version-management-service-found":return i.loadErrors.noVersionManagementServiceFound;case"no-view-property":return i.loadErrors.noViewProperty;case"webmap-failed-to-load":return i.loadErrors.webmapFailedToLoad;default:return e}}#i(e){let{_messages:i}=this,a=!1,r,t,s;switch(e){case"invalid-feature-service":a=!0,r=i.loadErrors.invalidInitialFeatureService,t=this.#w,s=i.headers.invalidInitialFeatureService;break;case"no-version-management-service-found":r=this.#s("no-version-management-service-found");break;case"view-model-load":r=this.#s(this.#e.loadError??"");break;case"webmap-load":r=this.#s("webmap-failed-to-load");break}return c`<calcite-notice .closable=${a} icon kind=warning open scale=s width=full @calciteNoticeClose=${t}>${s?c`<div slot=title>${s}</div>`:void 0}<div slot=message>${r}</div></calcite-notice>`}async#d(e){e.stopPropagation();let{alterVersionParameters:i}=e.detail;await this.#e.alterVersion(i).finally(()=>{this._mode="browse-versions"})&&this.arcgisVersioningStateChanged.emit({type:"version-changed",versionIdentifier:i.versionIdentifier,versioningState:this.#e.versioningStateLookup.get(i.featureServerUrl)})}async#g(e){e.stopPropagation();let{arcgisVersioningStateChanged:i}=this,{createVersionParameters:a,switchToVersion:r}=e.detail,t=await this.#e.createVersion(a).finally(()=>{this._mode="browse-versions"});t&&(i.emit({type:"version-created",versionIdentifier:t.versionIdentifier,versioningState:this.#e.versioningStateLookup.get(a.featureServerUrl)}),r&&await this.#e.changeVersion(a.featureServerUrl,t.versionIdentifier.name,t.versionIdentifier.guid).then(s=>{s&&i.emit({type:"version-switched",versionIdentifier:t.versionIdentifier,versioningState:this.#e.versioningStateLookup.get(a.featureServerUrl)})}))}#v(e){e.stopPropagation(),this._mode="browse-versions",this._editVersionInfo=void 0}async#h(e){e.stopPropagation(),await this.#e.getVersionInfos(e.detail.serviceUrl)}#p(e){e.stopPropagation(),this._filterText=e.detail.filterText,this.#n()}async#o(e){e.stopPropagation();let{arcgisVersioningStateChanged:i}=this,{actionType:a,serviceUrl:r,versionInfo:t}=e.detail;switch(a){case"changeVersion":{await this.#e.changeVersion(r,t.versionIdentifier.name,t.versionIdentifier.guid)&&i.emit({type:"version-switched",versionIdentifier:t.versionIdentifier,versioningState:this.#e.versioningStateLookup.get(r)});break}case"deleteVersion":{await this.#e.deleteVersion(r,t.versionIdentifier.name,t.versionIdentifier.guid)&&i.emit({type:"version-deleted",versionIdentifier:t.versionIdentifier,versioningState:this.#e.versioningStateLookup.get(r)});break}case"editVersion":{this._mode="edit-version",this._editVersionInfo={...e.detail.versionInfo};break}}}#m(e){e.stopPropagation(),this._mode="create-version"}#u(e){e.stopPropagation(),this._currentPage=e.detail.currentPage}#f(e){e.detail.name==="selectedFeatureService"&&(this._selectedFeatureService=e.target.selectedFeatureService,this._mode="browse-versions",this.#n())}#w(){this._isInitialFeatureServiceInvalid=!1}#$(){this._mode="browse-services"}#I(){this._mode="browse-versions",this._editVersionInfo=void 0}async#b(){let e=this.view?.map;try{e.loaded||await e.load()}catch(i){this._loadError="webmap-failed-to-load",_(i,this,"Error while loading 'view.map'")}}#y(e){return e.replace(/\/+$/u,"")}#n(){this._currentPage=1}#S(){if(!this.#e?.versioningStateLookup.size){this._loadError="no-version-management-service-found",d("error",this,"No version management service found");return}this.#e?.versioningStateLookup.forEach((e,i)=>{e.loadStatus==="failed"&&(this.#a.push(i),d("error",this,`Failed to load versioning state for feature service ${i}`))}),this.requestUpdate()}render(){let{_currentPage:e,_editVersionInfo:i,_filterText:a,_messages:r,_mode:t,_selectedFeatureService:s,closable:l,label:g,pageSize:v,state:o}=this,k=this._loadError==="webmap-failed-to-load"?this.#i("webmap-load"):void 0,F=o==="disabled"&&this.#e.loadError?this.#i("view-model-load"):void 0,P=this._loadError==="no-version-management-service-found"?this.#i("no-version-management-service-found"):void 0,U=this._isInitialFeatureServiceInvalid?this.#i("invalid-feature-service"):void 0,L=Array.from(this.#e.serviceNameLookup,([n,A])=>({url:n,name:A})),h=s?.url??"",w=this.#e?.versioningStateLookup.get(h),p=w?.versionInfos??[],C=w?.currentVersionInfo??void 0,D=p.length<=v,m=a===""?p:p.filter(n=>n.versionIdentifier.name.toUpperCase().includes(a.toUpperCase())||n.versionIdentifier.guid.toUpperCase().includes(a.toUpperCase())),$=m.slice((e-1)*v,e*v);$.length===0&&this.#n();let I=this.#e.userLookup.get(h),T=this.#e.versionAdministratorLookup.get(h),z=(this.#e.serverVersionLookup.get(h)??0)>=11.2;return c`<calcite-flow><calcite-flow-item .closable=${l} .heading=${g} .loading=${o==="loading"||o==="executing"} .selected=${t==="browse-services"}>${k}${F}${P}${U}${L.map(n=>c`<arcgis-version-management-service-item .allowEditingDisabled=${this.allowEditingDisabled} .invalidInitialVersion=${this.#r.includes(n.url)} .messages=${r} .selectedFeatureService=${s} .serviceName=${n.name} .serviceUrl=${n.url} .versioningStateFailedToLoad=${this.#a.includes(n.url)} .viewModel=${this.#e} @arcgisInternalManageVersion=${this.#o} @arcgisPropertyChange=${this.#f}></arcgis-version-management-service-item>`)}</calcite-flow-item><calcite-flow-item .closable=${l} .description=${s?.name} .heading=${g} .loading=${o==="loading"||o==="executing"} .selected=${t==="browse-versions"} @calciteFlowItemBack=${n=>{n.preventDefault(),this.#$()}}><arcgis-version-management-version-list .currentPage=${e} .currentUser=${I} .currentVersionInfo=${C} .executionError=${this.#e.executionError??void 0} .featureServiceName=${s?.name} .featureServiceUrl=${s?.url} .hideFilter=${D} .isVersionAdministrator=${T} .isVersioningApiAvailable=${z} .messages=${r} .mode=${t} .totalPages=${Math.ceil(m.length/v)} .totalVersions=${m.length} .versionInfos=${$} @arcgisInternalFilterVersions=${this.#p} @arcgisInternalGetVersions=${this.#h} @arcgisInternalManageVersion=${this.#o} @arcgisInternalNewVersion=${this.#m} @arcgisInternalPageChange=${this.#u}></arcgis-version-management-version-list></calcite-flow-item><calcite-flow-item .closable=${l} .description=${t==="create-version"?"":i?.versionIdentifier.name} .heading=${t==="create-version"?r?.actions.newVersion:r?.actions.editVersion} .loading=${o==="loading"||o==="executing"} .selected=${t==="create-version"||t==="edit-version"} @calciteFlowItemBack=${n=>{n.preventDefault(),this.#I()}}><arcgis-version-management-version-properties .currentUser=${I} .editVersionInfo=${i} .featureServiceUrl=${s?.url} .messages=${r} .mode=${t} @arcgisInternalAlterVersion=${this.#d} @arcgisInternalCreateVersion=${this.#g} @arcgisInternalDiscardEdits=${this.#v}></arcgis-version-management-version-properties></calcite-flow-item></calcite-flow>`}};V("arcgis-version-management",f);return f},"core/reactiveUtils","versionManagement/VersionManager",a,e,f,g,h)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{
|
|
2
|
+
import{z as r}from"./I2BIPOZQ.js";export default $arcgis.t(([{watch:a},h])=>{var s=class extends r{get graphics(){return this._graphicsLayer?.graphics}_ensureGraphicsLayer(){(!this._graphicsLayer||this._graphicsLayer.destroyed)&&(this._graphicsLayer=new h({title:"Overlays",listMode:"hide",visible:!0,blendMode:"source-atop"}))}hostLoaded(){this._ensureGraphicsLayer(),this.component.manager.onLifecycle(()=>[a(()=>this.component?.map,(e,i)=>{i?.layers.remove(this._graphicsLayer),e&&e?.layers.add(this._graphicsLayer)},{initial:!0,sync:!0}),a(()=>this.component?.map?.allLayers.length,e=>{e&&this.component?.map?.layers.reorder(this._graphicsLayer,e-1)},{initial:!0,sync:!0})])}addGraphic(e){this._graphicsLayer.add(e)}addGraphics(e){this._graphicsLayer.addMany(e)}removeGraphic(e){this._graphicsLayer?.destroyed||this._graphicsLayer.remove(e)}removeGraphics(e){this._graphicsLayer?.destroyed||this._graphicsLayer.removeMany(e)}clearGraphics(){this._graphicsLayer?.destroyed||this._graphicsLayer.removeAll()}destroy(){this._graphicsLayer?.destroy()}};return s},"core/reactiveUtils","layers/GraphicsLayer")
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as g}from"./
|
|
2
|
+
import{a as g}from"./O3V63YCY.js";import{a as v}from"./JD74LG7K.js";import e from"./QRXQ5LVY.js";import{h as f}from"./PME66FRM.js";import"./WT5SGWE4.js";import b from"./D7FCBWGA.js";import"./QUZTFUWM.js";import{b as d,d as h}from"./2OJYLBNC.js";import"./XURWCCLX.js";import{P as i,R as a,T as u,W as m,a as c,b as n,x as o}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([,{a:p}])=>{var E=c`.arcgis-button{--calcite-icon-color: var(--calcite-color-text-3);--calcite-button-background-color: var(--calcite-color-foreground-1);color:var(--calcite-color-text-3);line-height:var(--calcite-font-line-height-relative-tight);calcite-button{--calcite-offset-invert-focus: 1}display:flex;flex-flow:column;cursor:pointer;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);:hover{--calcite-icon-color: var(--calcite-color-text-1);--calcite-button-background-color: var(--calcite-color-transparent-hover)}}`;function x(s){return s.includes("#")||s.includes(".")||s.includes("[")?s:`#${s}`}var r=class extends i{constructor(){super(),this.messages=g(),this.view=p(this),this.visualScale="m",this.arcgisPropertyChange=f()("state"),this.arcgisReady=o(),this.listenOn(document,"fullscreenchange",()=>this.fullscreenElement=document.fullscreenElement)}static{this.properties={fullscreenElement:16,view:0,element:1,label:1,messageOverrides:0,referenceElement:1,visualScale:1,state:35}}static{this.styles=E}get fullscreenTitle(){return this.state==="active"?this.messages.exit:this.messages.enter}#e;get element(){return this.#e}set element(e){if(typeof e=="string"){let t=x(e),l=h(this.el,t);this.#e=l||void 0}else this.#e=e}get state(){if(!document.fullscreenEnabled)return"unsupported";let e=this._getElement();return e?this.fullscreenElement===e?"active":"ready":"disabled"}connectedCallback(){super.connectedCallback(),this.fullscreenElement=document.fullscreenElement}_getElement(){let e=this.view?.container,t=e?.getRootNode(),l=t instanceof ShadowRoot?t.host:null;return this.element??e?.parentElement??l??null}_toggle(){this.state!=="unsupported"&&(document.fullscreenElement?document.exitFullscreen():this._getElement()?.requestFullscreen())}render(){let{fullscreenTitle:e,state:t}=this,l=t==="unsupported",b=t==="ready"||t==="disabled"||t==="unsupported"?"zoom-out-fixed":"zoom-in-fixed";return n`<div class=${a(d("root",v.arcgisButton))}><calcite-button .disabled=${t==="disabled"||l} .iconStart=${b} kind=neutral .label=${e} @click=${this._toggle} .scale=${this.visualScale} title=${e??u}></calcite-button></div>`}};m("arcgis-fullscreen",r);return r},b,e)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import c from"./SKNX46RX.js";import a from"./YU5BTZEI.js";import{
|
|
2
|
+
import c from"./SKNX46RX.js";import a from"./YU5BTZEI.js";import{P as x,S as b,W as y,a as f,b as v}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([,{c:g,e:$,f:S}])=>{var M=f`.spike-ramp-container{display:flex;flex-direction:row;gap:var(--calcite-space-sm-plus)}.spike-ramp-preview-container{display:flex;position:relative;gap:var(--calcite-space-sm-plus);border-bottom:var(--calcite-border-width-sm) solid var(--calcite-color-border-2);padding-inline-end:var(--calcite-space-xl)}.spike-ramp-preview{display:flex;gap:var(--calcite-space-sm-plus);align-items:end}.spike-ramp-symbol-preview{display:flex}.spike-ramp-lines{display:flex;position:absolute;bottom:0}.spike-ramp-labels-container{display:flex;position:relative;top:-5px;flex:1;min-width:120px}.spike-ramp-label{position:relative;padding:0 var(--calcite-space-sm);line-height:1em;word-break:break-all;font-size:var(--calcite-font-size-sm)}.spike-ramp-label:before{display:block;position:absolute;top:.25em;right:100%;border-width:3px 4px 3px 0;border-style:solid;border-color:transparent var(--calcite-color-text-1) transparent transparent;width:0;height:0;content:""}`,N="#ddd",e=window.devicePixelRatio;function u(m){return m.infos.filter((o,a)=>a%2===0)}function E(m){return!!(m&&typeof m=="object")}var w=class extends x{constructor(){super(...arguments),this.legendElement=null}static{this.properties={legendElement:0,messages:0}}static{this.styles=M}render(){return this.legendElement.infos.length!==5?null:v`<div class="spike-ramp-container"><div class="spike-ramp-preview-container">${this._renderSpikeRampLines()}${this._renderSpikeRampPreview()}</div>${this._renderSpikeRampLabels()}</div>`}_renderSpikeRampPreview(){let o=this.legendElement,[a,l,d]=u(o).map(({preview:n,label:r})=>{if(!n)return null;let t=n.cloneNode(!0);return t.classList.add("spike-ramp-symbol-preview"),S(t,$(this.messages,r)),t});return!a||!l||!d?null:v`<div class="spike-ramp-preview"><div>${d}</div><div>${l}</div><div>${a}</div></div>`}_renderSpikeRampLines(){let o=this.legendElement,[{width:a,height:l},{width:d},{width:n,height:r}]=u(o).map(({size:k})=>E(k)?{width:g(k.width),height:g(k.height)}:{width:0,height:0}),t=10,c=8,p=a+d+n+t*3,h=l,s=document.createElement("canvas");s.width=(p+t)*e,s.height=h*e,s.style.width=`${s.width/e}px`,s.style.height=`${s.height/e}px`;let i=s.getContext("2d");i.beginPath();let R=p-(a/2+t),L=0,T=p+c;i.moveTo(R*e,L*e),i.lineTo(T*e,0*e);let _=(p-c)/2,z=(l-r)/2,P=p+c,A=(l-r)/2;i.moveTo(_*e,z*e),i.lineTo(P*e,A*e);let C=n/2,W=h-r,H=p+c,I=h-r;return i.moveTo(C*e,W*e),i.lineTo(H*e,I*e),i.strokeStyle=N,i.lineWidth=.5*e,i.stroke(),v`<div class="spike-ramp-lines">${s}</div>`}_renderSpikeRampLabels(){let o=this.legendElement,[{label:a,height:l},{label:d},{label:n,height:r}]=u(o).map(({label:s,size:i})=>({label:s,height:E(i)?g(i.height):0})),t=l-r,c={position:"absolute",top:"0"},p={position:"absolute",top:`${t/2}px`},h={position:"absolute",top:`${t}px`};return v`<div class="spike-ramp-labels-container"><div class="spike-ramp-label" style=${b(c)}>${a}</div><div class="spike-ramp-label" style=${b(p)}>${d}</div><div class="spike-ramp-label" style=${b(h)}>${n}</div></div>`}};y("arcgis-legend-spike-ramp",w);return w},a,c)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as f,b as y,c as v}from"./
|
|
2
|
+
import{a as f,b as y,c as v}from"./WMARZKLI.js";import{a}from"./TN5C3MSL.js";import{a as p}from"./BVIAOB5O.js";import b from"./YSWNUR6Q.js";import{f as m}from"./PME66FRM.js";import"./WT5SGWE4.js";import"./QUZTFUWM.js";import"./2OJYLBNC.js";import"./XURWCCLX.js";import{N as e,O as s,P as n,R as l,W as c,a as o,b as t,x as h}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:w},u,{c:d}])=>{var R=o`:host{width:100%;height:100%}`,g=d(u,{omitProps:["container","focusRegionEnabled","navigation","scale","ui"]}),r=class extends n{constructor(){super(),this._containerRef=e(),this._direction=m(),this._mapRef=e(),this._slotGroupRefs=y(),this.autoDestroyDisabled=!1,this.view=g(this),this.attributionMode=this.view.attributionMode,this.ready=this.view.ready,this.layer=this.view.layer,this.map=this.view.map,this.operationalDataVisible=this.view.operationalDataVisible,this.arcgisViewReadyChange=h()}static{this.properties={autoDestroyDisabled:5,view:32,aria:0,attributionMode:1,ready:36,layer:0,map:0,operationalDataVisible:5}}static{this.styles=[p,f,R]}get aria(){return this.view?.aria}set aria(i){this.view&&(this.view.aria=i)}async destroy(){await this.manager.destroy()}loaded(){let i=this;i.el.childElem=this._mapRef.value,this.view.container??=i.el.childElem,this.manager.onLifecycle(()=>[w(()=>this.layer,()=>{this.layer&&this.view&&(this.view.layer=this.layer,this.layer.loaded||this.layer.load())},{initial:!0}),w(()=>this.view.ready,()=>{this.view.ready&&this.arcgisViewReadyChange.emit()},{initial:this.view.ready})])}renderMain(){return t`<div class=${`root ${a.base}`} ${s(this._mapRef)}></div>`}render(){return t`${this.renderMain()}<section class=${l(a.containerUI)} ${s(this._containerRef)}>${v({direction:this._direction,slotGroupRefs:this._slotGroupRefs})}</section>`}};c("arcgis-video",r);return r},"core/reactiveUtils","views/VideoView",b)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{h as $}from"./
|
|
2
|
+
import{h as $}from"./PME66FRM.js";import"./WT5SGWE4.js";import"./QUZTFUWM.js";import"./2OJYLBNC.js";import"./XURWCCLX.js";import{P as m,W as g,a as d,b as i,x as v}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";var x=d`calcite-notice{margin-bottom:var(--calcite-space-xs)}`,l=class extends m{constructor(){super(...arguments),this.allowEditingDisabled=!1,this.invalidInitialVersion=!1,this.versioningStateFailedToLoad=!1,this.arcgisInternalManageVersion=v(),this.arcgisPropertyChange=$()("selectedFeatureService")}static{this.properties={allowEditingDisabled:5,invalidInitialVersion:5,messages:0,selectedFeatureService:0,serviceName:1,serviceUrl:1,versioningStateFailedToLoad:5,viewModel:0}}static{this.styles=x}#e(s){let{serviceUrl:t,viewModel:e}=this,a=e?.versioningStateLookup.get(t)?.versionInfos??[],o=s.target.selectedItems[0].value,c=a.find(n=>n.versionIdentifier.guid===o);this.arcgisInternalManageVersion.emit({actionType:"changeVersion",serviceUrl:this.serviceUrl,versionInfo:c})}render(){let{allowEditingDisabled:s,messages:t,serviceName:e,serviceUrl:a,versioningStateFailedToLoad:o,viewModel:c}=this,n=c?.versioningStateLookup.get(a),h=n?.versionInfos??[],p=this.invalidInitialVersion?i`<calcite-notice closable kind=warning open scale=s width=full icon><div slot=title>${t?.headers.invalidInitialVersion}</div><div slot=message>${t?.loadErrors.invalidInitialVersion}</div></calcite-notice>`:void 0,b=o?i`<calcite-notice kind=warning open scale=s width=full icon><div slot=title>${t?.headers.versioningStateFailedToLoad}</div><div slot=message>${t?.loadErrors.versioningStateFailedToLoad}</div></calcite-notice>`:void 0,f=o?void 0:i`<calcite-combobox .ariaLabel=${`combobox-${e}`} .label=${`combobox-${e}`} max-items=5 overlay-positioning=fixed selection-mode=single-persist @calciteComboboxChange=${this.#e}>${h.map(r=>i`<calcite-combobox-item .heading=${r.versionIdentifier.name} .selected=${n?.currentVersionInfo?.versionIdentifier.guid===r.versionIdentifier.guid&&n?.currentVersionInfo?.versionIdentifier.name===r.versionIdentifier.name} .value=${r.versionIdentifier.guid}></calcite-combobox-item>`)}</calcite-combobox>`,u=!o&&!s?i`<calcite-action icon=list .id=${`action-manage-versions-${e}`} .label=${`action-manage-versions-${e}`} scale=s slot=actions-end .text=${`action-manage-versions-${e}`} @click=${()=>{this.selectedFeatureService={url:a,name:e}}}></calcite-action>`:void 0,I=s?void 0:i`<calcite-tooltip overlay-positioning=fixed .referenceElement=${`action-manage-versions-${e}`}><span>${t?.headers.manageVersions}</span></calcite-tooltip>`;return i`<calcite-block expanded .heading=${e}>${p}${b}${f}${u}${I}</calcite-block>`}};g("arcgis-version-management-service-item",l);export{l as ArcgisVersionManagementServiceItem};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import f from"./HIFQHVGL.js";import e from"./4JLRRQSP.js";import b from"./DGHSJCA2.js";import"./PGQ4RVAW.js";import"./25LV3KCP.js";import a from"./TBBD3K7K.js";import"./QUZTFUWM.js";import"./FAOYV6UX.js";import"./XURWCCLX.js";import{O as d,V as g,a as n,s as c,w as l}from"./MNS5VY6U.js";import"./H6RQVSYM.js";export default $arcgis.t(([p,,,,h])=>{var m=n`@keyframes esri-basemap-slide{0%{opacity:0;margin-top:0;margin-left:0}75%{opacity:0;margin-top:0;margin-left:0}to{opacity:1;margin-top:5px;margin-left:5px}}@keyframes esri-docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes popup-intro-animation-up{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted #000}}@keyframes esri-spinner--start-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes esri-spinner--finish-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}@keyframes esri-spinner--rotate-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion){.esri-utility-network-trace__reset-prompt{animation:none!important}}@media(prefers-reduced-motion){.esri-popup--aligned-top-center,.esri-popup--aligned-top-left,.esri-popup--aligned-top-right,.esri-popup--aligned-bottom-center,.esri-popup--aligned-bottom-left,.esri-popup--aligned-bottom-right,.esri-popup--is-docked{animation:none!important}}@media(prefers-reduced-motion:reduce){.esri-fov-overlay{animation:none!important}}@keyframes esri-fade-in-down{0%{opacity:0;transform:translateY(-5px)}25%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in-up{0%{opacity:0;transform:translateY(5px)}25%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes esri-fade-in-scale{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes looping-progresss-bar-ani{0%{width:0;left:0}20%{width:20%;left:0}80%{width:20%;left:80%}to{width:0;left:100%}}@keyframes esri-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes panel-advance{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-advance--rtl{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat--rtl{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}.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{max-width:fit-content}.esri-utility-network-association-list__feature-observer{z-index:2;text-align:center;position:relative;bottom:20px}.esri-utility-network-association-list__filter-container{z-index:1;margin-bottom:var(--calcite-spacing-md);top:var(--calcite-spacing-md)}.esri-utility-network-association-list__limit-notice-container{margin-bottom:var(--calcite-spacing-md)}.esri-utility-network-association-list__loading-container{justify-content:center;width:100%;padding:var(--calcite-spacing-md) 0;display:flex}.esri-un-associations__action{height:48px}.esri-un-associations__action-refresh{--calcite-color-icon-color: var(--calcite-color-brand)}.esri-un-associations__block-content{border-bottom:none;margin:0}.esri-un-associations__block-section-settings{border-style:none;padding:0}.esri-un-associations__combobox,.esri-un-associations__combobox-item{max-width:300px}.esri-un-associations__div-controls-main{background:var(--calcite-color-foreground-1);gap:.5rem;padding:.5rem 0;display:grid}.esri-un-associations__div-controls-symbol-picker{margin-top:.75rem}.esri-un-associations__dropdown{border:1px solid var(--calcite-color-border-input)}.esri-un-associations__dropdown-item-line-cap{background-position:50%;background-repeat:no-repeat;height:10px}.esri-un-associations__dropdown-item-line-pattern{height:3px}.esri-un-associations__dropdown-selected-item-line-cap{background-position:50%;background-repeat:no-repeat;background-size:275px 10px;width:100%;height:10px}.esri-un-associations__dropdown-selected-item-line-pattern{width:100%;height:3px}.esri-un-associations__dropdown-trigger{align-items:center;width:100%;height:24px;margin:0 6px;display:flex}.esri-un-associations__label{height:1rem}.esri-un-associations__label-and-combobox,.esri-un-associations__label-and-slider{flex-direction:column;display:flex}.esri-un-associations__label-and-toggle{width:inherit;flex-direction:row;justify-content:space-between;padding-right:.25rem;display:flex}.esri-un-associations__panel{max-height:calc(100vh - 48px - .5rem)}.esri-un-associations__slider{padding:0 .5rem}.esri-un-associations__status-icon-container{width:48px;height:48px}.esri-un-associations__status-icon-warning{--calcite-color-icon-color: var(--calcite-color-status-warning);padding:16px}.esri-un-associations__switch{align-self:center;padding:.5rem}.esri-un-associations__switch-container{width:48px;height:48px;display:flex}.esri-un-associations__widget-container{border-bottom:none;width:350px;margin:0}`,u=h(p),a=class extends d{constructor(){super(...arguments),this.widget=u(this),this.viewModel=this.widget.viewModel,this.view=this.widget.view,this.autoDestroyDisabled=!1,this.autoRefreshAssociationsDisabled=this.widget.autoRefreshAssociations,this.connectivityAssociationsLineSymbol=this.widget.connectivityAssociationsLineSymbol,this.includeConnectivityAssociationsDisabled=this.widget.includeConnectivityAssociations,this.includeStructuralAttachmentAssociationsDisabled=this.widget.includeStructuralAttachmentAssociations,this.maxAllowableAssociations=this.widget.maxAllowableAssociations,this.maxAllowableAssociationsSliderMax=this.widget.maxAllowableAssociationsSliderMax,this.maxAllowableAssociationsSliderMin=this.widget.maxAllowableAssociationsSliderMin,this.maxAllowableAssociationsSliderStep=this.widget.maxAllowableAssociationsSliderStep,this.showArrowsConnectivity=this.widget.showArrowsConnectivity,this.showArrowsStructuralAttachment=this.widget.showArrowsStructuralAttachment,this.showAssociationsEnabled=this.widget.showAssociationsEnabled,this.structuralAttachmentAssociationsLineSymbol=this.widget.structuralAttachmentAssociationsLineSymbol,this.utilityNetwork=this.widget.utilityNetwork,this.showConnectivityAssociationsSettingsArrowsToggle=this.widget.visibleElements.connectivityAssociationsSettings.arrowsToggle,this.showConnectivityAssociationsSettingsCapSelect=this.widget.visibleElements.connectivityAssociationsSettings.capSelect,this.hideConnectivityAssociationsSettingsColorPicker=this.widget.visibleElements.connectivityAssociationsSettings.colorPicker,this.hideConnectivityAssociationsSettingsStylePicker=this.widget.visibleElements.connectivityAssociationsSettings.stylePicker,this.hideConnectivityAssociationsSettingsWidthInput=this.widget.visibleElements.connectivityAssociationsSettings.widthInput,this.showMaxAllowableAssociationsSlider=this.widget.visibleElements.maxAllowableAssociationsSlider,this.showStructuralAttachmentAssociationsSettingsArrowsToggle=this.widget.visibleElements.structuralAttachmentAssociationsSettings.arrowsToggle,this.showStructuralAttachmentAssociationsSettingsCapSelect=this.widget.visibleElements.structuralAttachmentAssociationsSettings.capSelect,this.hideStructuralAttachmentAssociationsSettingsColorPicker=this.widget.visibleElements.structuralAttachmentAssociationsSettings.colorPicker,this.hideStructuralAttachmentAssociationsSettingsStylePicker=this.widget.visibleElements.structuralAttachmentAssociationsSettings.stylePicker,this.hideStructuralAttachmentAssociationsSettingsWidthInput=this.widget.visibleElements.structuralAttachmentAssociationsSettings.widthInput,this.icon=this.widget.icon,this.label=this.widget.label,this.arcgisReady=l()}static{this.properties={view:0,autoDestroyDisabled:5,autoRefreshAssociationsDisabled:5,connectivityAssociationsLineSymbol:0,includeConnectivityAssociationsDisabled:5,includeStructuralAttachmentAssociationsDisabled:5,maxAllowableAssociations:9,maxAllowableAssociationsSliderMax:9,maxAllowableAssociationsSliderMin:9,maxAllowableAssociationsSliderStep:9,referenceElement:1,showArrowsConnectivity:5,showArrowsStructuralAttachment:5,showAssociationsEnabled:5,structuralAttachmentAssociationsLineSymbol:0,utilityNetwork:0,showConnectivityAssociationsSettingsArrowsToggle:5,showConnectivityAssociationsSettingsCapSelect:5,hideConnectivityAssociationsSettingsColorPicker:5,hideConnectivityAssociationsSettingsStylePicker:5,hideConnectivityAssociationsSettingsWidthInput:5,showMaxAllowableAssociationsSlider:5,showStructuralAttachmentAssociationsSettingsArrowsToggle:5,showStructuralAttachmentAssociationsSettingsCapSelect:5,hideStructuralAttachmentAssociationsSettingsColorPicker:5,hideStructuralAttachmentAssociationsSettingsStylePicker:5,hideStructuralAttachmentAssociationsSettingsWidthInput:5,icon:1,label:1}}static{this.styles=m}async destroy(){await this.manager.destroy()}async load(){if(this.el.view?.map&&this.el.view.map.portalItem){await this.el.view.map.load();let t=this.el.view.map.utilityNetworks?.getItemAt(0);await t?.load(),this.utilityNetwork=t}}willUpdate(t){this._handleVisibilityChange(t,"ConnectivityAssociationsSettingsArrowsToggle"),this._handleVisibilityChange(t,"ConnectivityAssociationsSettingsCapSelect"),this._handleVisibilityChange(t,"ConnectivityAssociationsSettingsColorPicker"),this._handleVisibilityChange(t,"ConnectivityAssociationsSettingsStylePicker"),this._handleVisibilityChange(t,"ConnectivityAssociationsSettingsWidthInput"),this._handleVisibilityChange(t,"MaxAllowableAssociationsSlider"),this._handleVisibilityChange(t,"StructuralAttachmentAssociationsSettingsArrowsToggle"),this._handleVisibilityChange(t,"StructuralAttachmentAssociationsSettingsCapSelect"),this._handleVisibilityChange(t,"StructuralAttachmentAssociationsSettingsStylePicker"),this._handleVisibilityChange(t,"StructuralAttachmentAssociationsSettingsWidthInput")}_handleVisibilityChange(t,r){let e=`show${r}`,s=`hide${r}`,o=`visibleElements${r}`,i=this;t.has(e)?i[o]=!!i[e]:t.has(s)?i[o]=!i[s]:t.has(o)&&(c(this,o,e in i?e:s),e in i?i[e]=!!i[o]:s in i&&(i[s]=!i[o]))}};g("arcgis-utility-network-associations",a);return a},"widgets/UtilityNetworkAssociations",a,b,e,f)
|
|
2
|
+
import f from"./KKLGABRK.js";import e from"./YSWNUR6Q.js";import b from"./QRXQ5LVY.js";import"./PME66FRM.js";import"./WT5SGWE4.js";import a from"./D7FCBWGA.js";import"./QUZTFUWM.js";import"./2OJYLBNC.js";import"./XURWCCLX.js";import{P as d,W as g,a as n,t as c,x as l}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([p,,,,h])=>{var m=n`@keyframes esri-basemap-slide{0%{opacity:0;margin-top:0;margin-left:0}75%{opacity:0;margin-top:0;margin-left:0}to{opacity:1;margin-top:5px;margin-left:5px}}@keyframes esri-docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes popup-intro-animation-up{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted #000}}@keyframes esri-spinner--start-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes esri-spinner--finish-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}@keyframes esri-spinner--rotate-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion){.esri-utility-network-trace__reset-prompt{animation:none!important}}@media(prefers-reduced-motion){.esri-popup--aligned-top-center,.esri-popup--aligned-top-left,.esri-popup--aligned-top-right,.esri-popup--aligned-bottom-center,.esri-popup--aligned-bottom-left,.esri-popup--aligned-bottom-right,.esri-popup--is-docked{animation:none!important}}@media(prefers-reduced-motion:reduce){.esri-fov-overlay{animation:none!important}}@keyframes esri-fade-in-down{0%{opacity:0;transform:translateY(-5px)}25%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in-up{0%{opacity:0;transform:translateY(5px)}25%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes esri-fade-in-scale{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes looping-progresss-bar-ani{0%{width:0;left:0}20%{width:20%;left:0}80%{width:20%;left:80%}to{width:0;left:100%}}@keyframes esri-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes panel-advance{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-advance--rtl{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat--rtl{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}.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{max-width:fit-content}.esri-utility-network-association-list__feature-observer{z-index:2;text-align:center;position:relative;bottom:20px}.esri-utility-network-association-list__filter-container{z-index:1;margin-bottom:var(--calcite-spacing-md);top:var(--calcite-spacing-md)}.esri-utility-network-association-list__limit-notice-container{margin-bottom:var(--calcite-spacing-md)}.esri-utility-network-association-list__loading-container{justify-content:center;width:100%;padding:var(--calcite-spacing-md) 0;display:flex}.esri-un-associations__action{height:48px}.esri-un-associations__action-refresh{--calcite-color-icon-color: var(--calcite-color-brand)}.esri-un-associations__block-content{border-bottom:none;margin:0}.esri-un-associations__block-section-settings{border-style:none;padding:0}.esri-un-associations__combobox,.esri-un-associations__combobox-item{max-width:300px}.esri-un-associations__div-controls-main{background:var(--calcite-color-foreground-1);gap:.5rem;padding:.5rem 0;display:grid}.esri-un-associations__div-controls-symbol-picker{margin-top:.75rem}.esri-un-associations__dropdown{border:1px solid var(--calcite-color-border-input)}.esri-un-associations__dropdown-item-line-cap{background-position:50%;background-repeat:no-repeat;height:10px}.esri-un-associations__dropdown-item-line-pattern{height:3px}.esri-un-associations__dropdown-selected-item-line-cap{background-position:50%;background-repeat:no-repeat;background-size:275px 10px;width:100%;height:10px}.esri-un-associations__dropdown-selected-item-line-pattern{width:100%;height:3px}.esri-un-associations__dropdown-trigger{align-items:center;width:100%;height:24px;margin:0 6px;display:flex}.esri-un-associations__label{height:1rem}.esri-un-associations__label-and-combobox,.esri-un-associations__label-and-slider{flex-direction:column;display:flex}.esri-un-associations__label-and-toggle{width:inherit;flex-direction:row;justify-content:space-between;padding-right:.25rem;display:flex}.esri-un-associations__panel{max-height:calc(100vh - 48px - .5rem)}.esri-un-associations__slider{padding:0 .5rem}.esri-un-associations__status-icon-container{width:48px;height:48px}.esri-un-associations__status-icon-warning{--calcite-color-icon-color: var(--calcite-color-status-warning);padding:16px}.esri-un-associations__switch{align-self:center;padding:.5rem}.esri-un-associations__switch-container{width:48px;height:48px;display:flex}.esri-un-associations__widget-container{border-bottom:none;width:350px;margin:0}`,u=h(p),a=class extends d{constructor(){super(...arguments),this.widget=u(this),this.viewModel=this.widget.viewModel,this.view=this.widget.view,this.autoDestroyDisabled=!1,this.autoRefreshAssociationsDisabled=this.widget.autoRefreshAssociations,this.connectivityAssociationsLineSymbol=this.widget.connectivityAssociationsLineSymbol,this.includeConnectivityAssociationsDisabled=this.widget.includeConnectivityAssociations,this.includeStructuralAttachmentAssociationsDisabled=this.widget.includeStructuralAttachmentAssociations,this.maxAllowableAssociations=this.widget.maxAllowableAssociations,this.maxAllowableAssociationsSliderMax=this.widget.maxAllowableAssociationsSliderMax,this.maxAllowableAssociationsSliderMin=this.widget.maxAllowableAssociationsSliderMin,this.maxAllowableAssociationsSliderStep=this.widget.maxAllowableAssociationsSliderStep,this.showArrowsConnectivity=this.widget.showArrowsConnectivity,this.showArrowsStructuralAttachment=this.widget.showArrowsStructuralAttachment,this.showAssociationsEnabled=this.widget.showAssociationsEnabled,this.structuralAttachmentAssociationsLineSymbol=this.widget.structuralAttachmentAssociationsLineSymbol,this.utilityNetwork=this.widget.utilityNetwork,this.showConnectivityAssociationsSettingsArrowsToggle=this.widget.visibleElements.connectivityAssociationsSettings.arrowsToggle,this.showConnectivityAssociationsSettingsCapSelect=this.widget.visibleElements.connectivityAssociationsSettings.capSelect,this.hideConnectivityAssociationsSettingsColorPicker=this.widget.visibleElements.connectivityAssociationsSettings.colorPicker,this.hideConnectivityAssociationsSettingsStylePicker=this.widget.visibleElements.connectivityAssociationsSettings.stylePicker,this.hideConnectivityAssociationsSettingsWidthInput=this.widget.visibleElements.connectivityAssociationsSettings.widthInput,this.showMaxAllowableAssociationsSlider=this.widget.visibleElements.maxAllowableAssociationsSlider,this.showStructuralAttachmentAssociationsSettingsArrowsToggle=this.widget.visibleElements.structuralAttachmentAssociationsSettings.arrowsToggle,this.showStructuralAttachmentAssociationsSettingsCapSelect=this.widget.visibleElements.structuralAttachmentAssociationsSettings.capSelect,this.hideStructuralAttachmentAssociationsSettingsColorPicker=this.widget.visibleElements.structuralAttachmentAssociationsSettings.colorPicker,this.hideStructuralAttachmentAssociationsSettingsStylePicker=this.widget.visibleElements.structuralAttachmentAssociationsSettings.stylePicker,this.hideStructuralAttachmentAssociationsSettingsWidthInput=this.widget.visibleElements.structuralAttachmentAssociationsSettings.widthInput,this.icon=this.widget.icon,this.label=this.widget.label,this.arcgisReady=l()}static{this.properties={view:0,autoDestroyDisabled:5,autoRefreshAssociationsDisabled:5,connectivityAssociationsLineSymbol:0,includeConnectivityAssociationsDisabled:5,includeStructuralAttachmentAssociationsDisabled:5,maxAllowableAssociations:9,maxAllowableAssociationsSliderMax:9,maxAllowableAssociationsSliderMin:9,maxAllowableAssociationsSliderStep:9,referenceElement:1,showArrowsConnectivity:5,showArrowsStructuralAttachment:5,showAssociationsEnabled:5,structuralAttachmentAssociationsLineSymbol:0,utilityNetwork:0,showConnectivityAssociationsSettingsArrowsToggle:5,showConnectivityAssociationsSettingsCapSelect:5,hideConnectivityAssociationsSettingsColorPicker:5,hideConnectivityAssociationsSettingsStylePicker:5,hideConnectivityAssociationsSettingsWidthInput:5,showMaxAllowableAssociationsSlider:5,showStructuralAttachmentAssociationsSettingsArrowsToggle:5,showStructuralAttachmentAssociationsSettingsCapSelect:5,hideStructuralAttachmentAssociationsSettingsColorPicker:5,hideStructuralAttachmentAssociationsSettingsStylePicker:5,hideStructuralAttachmentAssociationsSettingsWidthInput:5,icon:1,label:1}}static{this.styles=m}async destroy(){await this.manager.destroy()}async load(){if(this.el.view?.map&&this.el.view.map.portalItem){await this.el.view.map.load();let t=this.el.view.map.utilityNetworks?.getItemAt(0);await t?.load(),this.utilityNetwork=t}}willUpdate(t){this._handleVisibilityChange(t,"ConnectivityAssociationsSettingsArrowsToggle"),this._handleVisibilityChange(t,"ConnectivityAssociationsSettingsCapSelect"),this._handleVisibilityChange(t,"ConnectivityAssociationsSettingsColorPicker"),this._handleVisibilityChange(t,"ConnectivityAssociationsSettingsStylePicker"),this._handleVisibilityChange(t,"ConnectivityAssociationsSettingsWidthInput"),this._handleVisibilityChange(t,"MaxAllowableAssociationsSlider"),this._handleVisibilityChange(t,"StructuralAttachmentAssociationsSettingsArrowsToggle"),this._handleVisibilityChange(t,"StructuralAttachmentAssociationsSettingsCapSelect"),this._handleVisibilityChange(t,"StructuralAttachmentAssociationsSettingsStylePicker"),this._handleVisibilityChange(t,"StructuralAttachmentAssociationsSettingsWidthInput")}_handleVisibilityChange(t,r){let e=`show${r}`,s=`hide${r}`,o=`visibleElements${r}`,i=this;t.has(e)?i[o]=!!i[e]:t.has(s)?i[o]=!i[s]:t.has(o)&&(c(this,o,e in i?e:s),e in i?i[e]=!!i[o]:s in i&&(i[s]=!i[o]))}};g("arcgis-utility-network-associations",a);return a},"widgets/UtilityNetworkAssociations",a,b,e,f)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import a from"./
|
|
2
|
+
import a from"./QZ5LJH35.js";export default $arcgis.t(([{b:r}])=>{var u="fullmodel",i=t=>n=>{let l=t.toLowerCase();return n.sublayers.find(e=>e.modelName?.toLowerCase()===l)??null},w=i(u);function y(t,n){let l=f(t,n);if(l==null)return null;let e=l.fieldName;if(e==null||!e)return null;let a=c(t,e),s=new Map;for(let o of l.mostFrequentValues??[])typeof o=="number"&&s.set(o,a!=null?a.getName(o):String(o));return{fieldName:e,fieldValueMap:s}}function c(t,n){for(let l of t.allSublayers){let e=l.type==="building-component"?l.getFieldDomain?.(n):null;if(e?.type==="coded-value")return e}return null}function f(t,n){let l=t.summaryStatistics?.fields??[],e=n.toLowerCase();return l.find(a=>a.modelName?.toLowerCase()===e)??null}function p(){let t=new AbortController;return async n=>{t.abort(),t=new AbortController;let l={signal:t.signal},e=n.toArray().map(a=>m(a,l));await Promise.all(e),r(l)}}async function m(t,n){await t.load(n),await t.loadAll(),r(n),t.summaryStatistics&&await t.summaryStatistics.load(n)}return{a:w,b:y,c:p}},a)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as b}from"./
|
|
2
|
+
import{a as b}from"./O3V63YCY.js";import"./PME66FRM.js";import"./WT5SGWE4.js";import"./QUZTFUWM.js";import"./2OJYLBNC.js";import"./XURWCCLX.js";import{P as g,T as _,W as v,a as p,b as l,x as d}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([{projectIsLoaded:C,projectLoad:$,projectExecute:y},x,R,{locationToAddress:w},{substitute:L},{watch:f}])=>{var G=p`calcite-notice{padding:var(--calcite-space-lg)}calcite-block{padding-inline-end:var(--calcite-spacing-xxs)}calcite-block[expanded]{margin:0}`,u=class extends g{constructor(){super(...arguments),this.messages=b(),this._abortController=null,this._location=null,this._results=null,this.headingLevel=3,this.portal=x.getDefault(),this.autoDestroyDisabled=!1,this.hideCoordinates=!1,this.arcgisReverseGeocodeResultsChange=d(),this.arcgisReverseGeocodeCopy=d()}static{this.properties={_abortController:16,_location:16,_results:16,headingLevel:9,portal:0,location:0,messageOverrides:0,autoDestroyDisabled:5,hideCoordinates:5,reverseGeocodeResults:32}}static{this.styles=G}get reverseGeocodeResults(){return this._results}async destroy(){await this.manager.destroy(),this._cancelQueries()}loaded(){this.manager.onLifecycle(()=>[f(()=>[this.portal,this.location],()=>{this._update()},{initial:!0}),f(()=>this._results,()=>{this.arcgisReverseGeocodeResultsChange.emit()})])}_cancelQueries(){this._abortController?.abort(),this._abortController=null}async _update(){let{location:e,messages:t}=this;if(this._cancelQueries(),!e){this._location=null,this._results=null;return}let s=new AbortController,o=s.signal;this._abortController=s;let i=()=>o.aborted||this._abortController!==s;if(!C()&&(await $(),i()))return;let c=y(e,R.WGS84)??e;if(i()||(this._location=c,await this.portal?.load({signal:o}),i()))return;let r=this.portal?.helperServices?.geocode?.filter(a=>a.reverseGeocode??!0);if(!r){if(i())return;this._results=null;return}let n=r.map(async a=>await w(a.url,{location:e},{signal:o})),h=await Promise.allSettled(n);i()||(this._abortController=null,this._results=r.map((a,m)=>({name:a.name??t?.untitledService??"",address:(h[m].status==="fulfilled"?h[m].value.address:null)??t?.noResultFound??"",url:a.url})))}_copyTextToClipboard(e){navigator.clipboard.writeText(e),this.arcgisReverseGeocodeCopy.emit({data:e})}_renderMoreResults(e){let{messages:t}=this;return!this._abortController&&e?.length?l`<calcite-block expandable scale=s .headingLevel=${this.headingLevel} .heading=${L(t?.showMoreResults??"",{count:e.length})}><calcite-list scale=s display-mode=flat interaction-mode=static selection-mode=none .label=${t?.moreResults??""}>${e?.map(s=>this._renderItem(s))}</calcite-list></calcite-block>`:null}_renderCopyAction({text:e,value:t}){return l`<calcite-action .text=${e} title=${e??_} slot=actions-end icon=copy @click=${()=>this._copyTextToClipboard(t)}></calcite-action>`}_renderCoordinatesItem(){let{_location:e,messages:t}=this;if(!e||this.hideCoordinates)return null;let{latitude:s,longitude:o}=e,i=s!=null&&o!=null?`${o.toFixed(6)}, ${s.toFixed(6)}`:null;return i?l`<calcite-list-item .label=${i} .description=${t.coordinates??""}>${this._renderCopyAction({text:t.copyCoordinates??"",value:i})}</calcite-list-item>`:null}_renderItem(e){let{messages:t}=this;return l`<calcite-list-item .label=${e.address} .description=${e.name}>${this._renderCopyAction({text:t.copyAddress??"",value:e.address??""})}</calcite-list-item>`}render(){let{_abortController:e,_location:t,_results:s,messages:o}=this;if(!t)return l`<calcite-notice scale=s open kind=warning icon><div slot=message>${o?.noLocation??""}</div></calcite-notice>`;let i=s?.[0],c=s&&s.length>1?s.slice(1):void 0,r=this._renderCoordinatesItem(),n=i?this._renderItem(i):null;return!e&&!n&&!r?l`<calcite-notice scale=s open kind=info><div slot=message>${o?.noResultFound??""}</div></calcite-notice>`:l`<calcite-list .loading=${!!e} display-mode=flat interaction-mode=static selection-mode=none .label=${o.label??""} scale=s>${r}${n}</calcite-list>${this._renderMoreResults(c)}`}};v("arcgis-reverse-geocode-list",u);return u},"geometry/operators/projectOperator","portal/Portal","geometry/SpatialReference","rest/locator","intl","core/reactiveUtils")
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as Z}from"./
|
|
2
|
+
import{a as Z}from"./SSNCB7LI.js";import b from"./Z2NU3RGI.js";import a from"./TMJX7DFH.js";import{b as q,c as J,d as Q}from"./7N4V2IN6.js";import{e as H,f as O}from"./PME66FRM.js";import"./WT5SGWE4.js";import"./QUZTFUWM.js";import{e as D}from"./2OJYLBNC.js";import"./XURWCCLX.js";import{O as E,P as U,T as M,W as B,a as P,b as I}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([{getColorsFromRenderer:oe},{substitute:le},{watch:ce},de,ee,{renderingSanitizer:te},,{e:C,f:j,g:V,h:G,i:K,j:W,l:L,n:F,o:z,p:R}])=>{var he=P`.container{display:flex;flex-flow:row wrap;align-items:center;margin-top:var(--calcite-spacing-xs);width:100%;min-height:150px}.container .pagination-button{display:flex;align-items:center;justify-content:center;border:none;background:transparent;cursor:pointer;padding-block:var(--calcite-spacing-xs);padding-inline:var(--calcite-spacing-xs);color:var(--calcite-color-text-3)}.container .pagination-button:hover,.container .pagination-button:focus{background-color:var(--calcite-color-foreground-3);color:var(--calcite-color-text-1);fill:var(--calcite-color-text-1)}.item-title{margin:0;font-size:var(--calcite-font-size-md);line-height:var(--calcite-font-line-height-relative-snug)}.item-caption{padding-block-start:var(--calcite-spacing-xxs);font-size:var(--calcite-font-size-sm);line-height:var(--calcite-font-line-height-relative-snug)}.item{display:flex;align-items:flex-start;justify-content:center;margin-block:var(--calcite-spacing-xs);width:100%;height:auto}.item-navigation{display:flex;flex:0 1 100%;align-items:flex-start;justify-content:space-between;margin-block-end:var(--calcite-spacing-xs)}.item-text{margin-inline-end:var(--calcite-spacing-xs)}.pagination{display:flex;flex:0 0 auto;align-items:center;overflow:hidden}.pagination:only-child{margin-inline-start:auto}.pagination-text{padding-inline:var(--calcite-spacing-xxs);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-sm);line-height:var(--calcite-font-line-height-relative-normal)}.item-container{flex:0 1 auto;width:100%}.item-container img{max-width:100%}.item-container img[src$=".SVG"],.item-container img[src$=".svg"]{width:100%}.chart{width:100%;height:155px}`;function k(S){if(!C(S))return null;let[e,t]=S.split("/").slice(1);return{layerId:e,fieldName:t}}var X=15,w="category",b="value",ue="rgba(50, 50, 50, 1)",me=250,pe=500,fe=200,N=class extends U{constructor(){super(...arguments),this._direction=O(),this._prefersReducedMotion=H("(prefers-reduced-motion)"),this.activeMediaInfoIndex=0,this.chartAnimationDisabled=!1,this.headingLevel=2}static{this.properties={_refreshIntervalInfo:16,messages:0,values:0,expressionValues:0,activeMediaInfoIndex:9,chartAnimationDisabled:5,activeMediaInfo:32,formattedMediaInfos:32,description:1,fieldInfoMap:0,layer:0,mediaInfos:0,popupTemplate:0,relatedInfos:0,formattedValues:0,heading:1,graphic:0,formattedMediaInfoCount:32,headingLevel:9}}static{this.styles=he}get activeMediaInfo(){return this.formattedMediaInfos[this.activeMediaInfoIndex]||null}get formattedMediaInfos(){return this._formatMediaInfos()||[]}get formattedMediaInfoCount(){return this.formattedMediaInfos.length}next(){this._pageContentElementMedia(1)}previous(){this._pageContentElementMedia(-1)}setActiveMedia(e){this._setContentElementMedia(e)}loaded(){this.manager.onLifecycle(()=>[ce(()=>[this.activeMediaInfo,this.activeMediaInfoIndex],()=>this._setupMediaRefreshTimer(),{initial:!0}),{remove:()=>this._clearMediaRefreshTimer()}])}_setContentElementMedia(e){let{formattedMediaInfoCount:t}=this,i=(e+t)%t;this.activeMediaInfoIndex=i}_pageContentElementMedia(e){let{activeMediaInfoIndex:t}=this,i=t+e;this._setContentElementMedia(i)}_formatMediaInfos(){let{mediaInfos:e,layer:t}=this,i=this.values??{},a=this.formattedValues??{},s=this.fieldInfoMap??new Map,r=this.expressionValues??{};return e?.map(o=>{let n=o?.clone();if(!n)return null;if(n.title=R({values:i,fieldInfoMap:s,globalValues:a,layer:t,text:n.title}),n.caption=R({values:i,fieldInfoMap:s,globalValues:a,layer:t,text:n.caption}),n.altText=R({values:i,fieldInfoMap:s,globalValues:a,layer:t,text:n.altText}),n.type==="image"){if(!n.value)return null;let l=n.value;return this._setImageValue({value:l,formattedValues:a,layer:t}),l.sourceURL?n:void 0}if(n.type==="pie-chart"||n.type==="line-chart"||n.type==="column-chart"||n.type==="bar-chart"){if(!n.value)return null;let l=n.value;return this._setChartValue({value:l,chartType:n.type,values:i,expressionValues:r,formattedValues:a,layer:t}),n}return null}).filter(o=>o!=null)??[]}_setImageValue(e){let t=this.fieldInfoMap??new Map,{value:i,formattedValues:a,layer:s}=e,{linkURL:r,sourceURL:o}=i;if(o){let n=z(o,s);i.sourceURL=F({formattedValues:a,template:n,fieldInfoMap:t})}if(r){let n=z(r,s);i.linkURL=F({formattedValues:a,template:n,fieldInfoMap:t})}}_setChartValue(e){let{value:t,values:i,expressionValues:a,formattedValues:s,chartType:r,layer:o}=e,{popupTemplate:n,relatedInfos:l}=this,{fields:p,normalizeField:d}=t,c=o;if(t.fields=G(p,c),d&&(t.normalizeField=V(d,c)),!p.some(u=>!!(s[u]!=null||C(u)&&l?.size)))return;let m=n?.fieldInfos??[];t.series=[],p.forEach((u,g)=>{let h=t.colors?.[g];if(C(u)){t.series=[...t.series,...this._getRelatedChartInfos({fieldInfos:m,fieldName:u,formattedValues:s,expressionValues:a,chartType:r,value:t,color:h})];return}let v=this._getChartOption({value:t,values:i,chartType:r,formattedValues:s,expressionValues:a,fieldName:u,fieldInfos:m,color:h});t.series.push(v)})}_getRelatedChartInfos(e){let{fieldInfos:t,fieldName:i,formattedValues:a,chartType:s,value:r,color:o,expressionValues:n}=e,l=[],p=k(i),d=p&&this.relatedInfos?.get(p.layerId);if(!d)return l;let{relatedFeatures:c,relation:m}=d;if(!m||!c)return l;let{cardinality:u}=m;return c.forEach(g=>{let h=g.attributes;h&&Object.keys(h).forEach(v=>{v===p.fieldName&&l.push(this._getChartOption({value:r,values:h,formattedValues:a,expressionValues:n,fieldName:i,chartType:s,relatedFieldName:v,hasMultipleRelatedFeatures:c?.length>1,fieldInfos:t,color:o}))})}),u&&(u==="one-to-many"||u==="many-to-many")?l:[l[0]]}_getTooltip({label:e,value:t,chartType:i}){return i==="pie-chart"?`${e}`:`${e}: ${t}`}_getChartOption(e){let{value:t,values:i,formattedValues:a,expressionValues:s,fieldName:r,relatedFieldName:o,fieldInfos:n,chartType:l,hasMultipleRelatedFeatures:p,color:d}=e,{layer:c,graphic:m}=this,u=this.fieldInfoMap??new Map,{normalizeField:g,tooltipField:h}=t,v=g?C(g)?i[k(g).fieldName]:i[g]:null,x=K(r)&&s?.[r]!==void 0?s[r]:o&&i[o]!==void 0?i[o]:i[r]!==void 0?i[r]:a[r],_=x===void 0?null:x&&v&&typeof x=="number"&&typeof v=="number"?x/v:x,f=W(n,r),y=V(r,c),A=(h&&a[h]!==void 0?a[h]:L({fieldInfo:f||new de({fieldName:y}),expressionInfos:this.popupTemplate?.expressionInfos,graphic:m,layer:c}))??"",ie=a[y]??"",Y=_!=null?typeof _=="number"?_:Number(_):null;if(C(r)){let T=u.get(r.toLowerCase()),ae=h?u.get(h.toLowerCase()):null,re=T?.fieldName??r,$=p&&h?k(h).fieldName:ae?.fieldName??h,ne=(p&&$?i[$]:a[$]??(T&&L({fieldInfo:T,layer:c,graphic:m}))??T?.fieldName??o)??"",se=(p&&o?i[o]:a[re])??"";return new ee({fieldName:r,tooltip:this._getTooltip({label:ne,value:se,chartType:l}),color:d,value:Y})}return new ee({fieldName:r,tooltip:this._getTooltip({label:A,value:ie,chartType:l}),color:d,value:Y})}_getRenderer(){let e=this.layer;return this.graphic?.isAggregate&&e?.featureReduction&&"renderer"in e.featureReduction?e.featureReduction.renderer:e?.renderer}async _getSeriesColors(e){let{color:t}=await import("./S62FQUEJ.js"),i=new Map;return e.forEach(a=>{a.color&&i.set(a,t(a.color.toCss(!0)))}),i}async _getRendererColors(){let{color:e}=await import("./S62FQUEJ.js"),t=new Map,i=this._getRenderer(),a="default";if(!i)return t;let s=await oe(i);return s.delete(a),Array.from(s.values()).every(r=>r?.length===1)&&Array.from(s.keys()).forEach(r=>{let o=s.get(r)?.[0]?.toCss(!0);o&&t.set(r,e(o))}),t}async _createChart(e){let{activeMediaInfo:t}=this;if(!e||!t)return;let{createRoot:i}=await import("./MIGBO54V.js").then(m=>m.default.then(e=>({createRoot:e}))),a=await i(e);this._chartRoot=a,this._renderChart({mediaInfo:t,root:a})}_handleMediaKeydown(e){let{key:t}=e;e.defaultPrevented||q(e)||(Q(t,this._direction,{horizontalOnly:!0})&&(e.stopPropagation(),e.preventDefault(),this.previous()),J(t,this._direction,{horizontalOnly:!0})&&(e.stopPropagation(),e.preventDefault(),this.next()))}_canAnimateChart(){return!this.chartAnimationDisabled&&!this._prefersReducedMotion}_getChartAnimationMS(){return this._canAnimateChart()?me:0}_getChartSeriesAnimationMS(){return this._canAnimateChart()?pe:0}async _customizeChartTooltip(e,t="horizontal"){let{color:i}=await import("./S62FQUEJ.js");e.setAll({pointerOrientation:t}),e.get("background")?.setAll({stroke:i(ue)}),e.label.setAll({direction:this._direction,oversizedBehavior:"wrap",maxWidth:fe})}async _createPieChart(e,t){let[{Tooltip:i},{PieChart:a,PieSeries:s}]=await Promise.all([import("./S62FQUEJ.js"),import("./HH5GEJCC.js")]),{mediaInfo:r,root:o}=e,{title:n}=r,l=5,p=r?.altText||r?.title||"",d=o.container.children.push(a.new(o,{role:"figure",ariaLabel:p,focusable:!0,paddingBottom:l,paddingTop:l,paddingLeft:l,paddingRight:l})),c=`{category}: {valuePercentTotal.formatNumber('0.00')}%
|
|
3
3
|
({value})`,m=i.new(o,{labelText:c}),u=d.series.push(s.new(o,{name:n,valueField:b,categoryField:w,tooltip:m}));u.ticks.template.set("forceHidden",!0),u.labels.template.set("forceHidden",!0),u.slices.template.states.create("active",{shiftRadius:l}),this._customizeChartTooltip(m),u.slices.template.setAll({ariaLabel:c,focusable:!0,templateField:"columnSettings"}),u.data.setAll(t),u.appear(this._getChartSeriesAnimationMS()),d.appear(this._getChartAnimationMS()),d.root.dom.classList.toggle("chart-rendered",!0)}_getMinSeriesValue(e){let t=0;return e.forEach(i=>t=Math.min(i.value,t)),t}async _createColumnChart(e,t,i){let[{Tooltip:a,Scrollbar:s},{CategoryAxis:r,AxisRendererX:o,AxisRendererY:n,ValueAxis:l,ColumnSeries:p}]=await Promise.all([import("./S62FQUEJ.js"),import("./F46CTQWP.js")]),{mediaInfo:d,root:c}=t,{value:m,title:u}=d,{_direction:g}=this;e.setAll({wheelX:"panX",wheelY:"zoomX"});let h=e.xAxes.push(r.new(c,{renderer:o.new(c,{inversed:g==="rtl"}),categoryField:w}));h.get("renderer").labels.template.setAll({forceHidden:!0});let v=e.yAxes.push(l.new(c,{renderer:n.new(c,{inside:!1}),min:this._getMinSeriesValue(m.series)}));v.get("renderer").labels.template.setAll({direction:g});let x="{categoryX}",_=a.new(c,{labelText:x}),f=e.series.push(p.new(c,{name:u,xAxis:h,yAxis:v,valueYField:b,categoryXField:w,tooltip:_}));this._customizeChartTooltip(_),f.columns.template.setAll({ariaLabel:x,focusable:!0,templateField:"columnSettings"}),m.series.length>X&&e.set("scrollbarX",s.new(c,{orientation:"horizontal"})),h.data.setAll(i),f.data.setAll(i),f.appear(this._getChartSeriesAnimationMS()),e.appear(this._getChartAnimationMS())}async _createBarChart(e,t,i){let[{Tooltip:a,Scrollbar:s},{CategoryAxis:r,AxisRendererX:o,AxisRendererY:n,ValueAxis:l,ColumnSeries:p}]=await Promise.all([import("./S62FQUEJ.js"),import("./F46CTQWP.js")]),{mediaInfo:d,root:c}=t,{value:m,title:u}=d,{_direction:g}=this;e.setAll({wheelX:"panY",wheelY:"zoomY"});let h=e.yAxes.push(r.new(c,{renderer:n.new(c,{inversed:!0}),categoryField:w}));h.get("renderer").labels.template.setAll({forceHidden:!0});let v=e.xAxes.push(l.new(c,{renderer:o.new(c,{inside:!1,inversed:g==="rtl"}),min:this._getMinSeriesValue(m.series)}));v.get("renderer").labels.template.setAll({direction:g});let x="{categoryY}",_=a.new(c,{labelText:x}),f=e.series.push(p.new(c,{name:u,xAxis:v,yAxis:h,valueXField:b,categoryYField:w,tooltip:_}));this._customizeChartTooltip(_,"vertical"),f.columns.template.setAll({ariaLabel:x,focusable:!0,templateField:"columnSettings"}),m.series.length>X&&e.set("scrollbarY",s.new(c,{orientation:"vertical"})),h.data.setAll(i),f.data.setAll(i),f.appear(this._getChartSeriesAnimationMS()),e.appear(this._getChartAnimationMS())}async _createLineChart(e,t,i){let[{Tooltip:a,Scrollbar:s},{CategoryAxis:r,AxisRendererX:o,AxisRendererY:n,ValueAxis:l,LineSeries:p}]=await Promise.all([import("./S62FQUEJ.js"),import("./F46CTQWP.js")]),{root:d,mediaInfo:c}=t,{value:m,title:u}=c,{_direction:g}=this;e.setAll({wheelX:"panX",wheelY:"zoomX"});let h=e.xAxes.push(r.new(d,{renderer:o.new(d,{inversed:g==="rtl"}),categoryField:w}));h.get("renderer").labels.template.setAll({forceHidden:!0});let v=e.yAxes.push(l.new(d,{renderer:n.new(d,{inside:!1}),min:this._getMinSeriesValue(m.series)}));v.get("renderer").labels.template.setAll({direction:g});let x="{categoryX}",_=i[0]?.lineSettings?.stroke,f=a.new(d,{getFillFromSprite:!_,labelText:x});_&&f.get("background")?.setAll({fill:_});let y=e.series.push(p.new(d,{name:u,xAxis:h,yAxis:v,valueYField:b,categoryXField:w,tooltip:f}));y.strokes.template.setAll({templateField:"lineSettings"}),this._customizeChartTooltip(f,"vertical"),m.series.length>X&&e.set("scrollbarX",s.new(d,{orientation:"horizontal"})),h.data.setAll(i),y.data.setAll(i),y.appear(this._getChartSeriesAnimationMS()),e.appear(this._getChartAnimationMS())}async _createXYChart(e,t){let{XYChart:i,XYCursor:a}=await import("./F46CTQWP.js"),{root:s,mediaInfo:r}=e,{type:o}=r,n=r?.altText||r?.title||"",l=s.container.children.push(i.new(s,{role:"figure",ariaLabel:n,focusable:!0,panX:!0,panY:!0}));l.set("cursor",a.new(s,{})),o==="column-chart"&&await this._createColumnChart(l,e,t),o==="bar-chart"&&await this._createBarChart(l,e,t),o==="line-chart"&&await this._createLineChart(l,e,t),l.root.dom.classList.toggle("chart-rendered",!0)}_clearMediaRefreshTimer(){let{_refreshTimer:e}=this;e&&(clearTimeout(e),this._refreshTimer=void 0)}_updateMediaInfoTimestamp(e){let t=Date.now();this._refreshIntervalInfo={timestamp:t,sourceURL:e&&this._getImageSource(e,t)}}_setupMediaRefreshTimer(){this._clearMediaRefreshTimer();let{activeMediaInfo:e}=this;e?.type==="image"&&e.refreshInterval>0&&this._setRefreshTimeout(e)}_setRefreshTimeout(e){let{refreshInterval:t,value:i}=e,a=t*6e4;this._updateMediaInfoTimestamp(i.sourceURL);let s=window.setInterval(()=>{this._updateMediaInfoTimestamp(i.sourceURL)},a);this._refreshTimer=s}_getImageSource(e,t){let i=e.includes("?")?"&":"?",[a,s=""]=e.split("#");return`${a}${i}timestamp=${t}${s?"#":""}${s}`}_updateChartElement(e){this._chartRoot?.dispose(),this._chartRoot=void 0,e&&this._createChart(e)}render(){return I`<div class="root" @keydown=${this._handleMediaKeydown}><arcgis-feature-element-info .heading=${this.heading} .description=${this.description} .headingLevel=${this.headingLevel}></arcgis-feature-element-info>${this._renderMedia()}</div>`}_renderMedia(){let{formattedMediaInfoCount:e,activeMediaInfoIndex:t}=this,i=this._renderMediaText();return e?I`<div class="container">${this._renderMediaInfo()}<div class="item-navigation">${i}${e>1?I`<div class="pagination">${this._renderMediaPageButton("previous")}<span class="pagination-text">${le(this.messages?.pageText??"",{index:t+1,total:e})}</span>${this._renderMediaPageButton("next")}</div>`:null}</div></div>`:null}_renderMediaText(){let{activeMediaInfo:e}=this;if(!e)return null;let t=e?.title?I`<div class="item-title" .innerHTML=${te.sanitize(e.title)??""}></div>`:null,i=e?.caption?I`<div class="item-caption" .innerHTML=${te.sanitize(e.caption)??""}></div>`:null;return t||i?I`<div class="item-text">${t}${i}</div>`:null}_renderImageMediaInfo(e){if(!e.value)return null;let{_refreshIntervalInfo:t}=this,{value:i,refreshInterval:a,altText:s,title:r}=e,{sourceURL:o,linkURL:n}=i,l=j(n??void 0)?"_blank":"_self",p=l==="_blank"?"noreferrer":"",d=a?t:null,c=d?d.sourceURL:o,m=I`<img alt=${(s||r)??M} src=${c??void 0??M}>`;return(n?I`<a href=${n??M} rel=${p??M} target=${l??M} title=${r??M}>${m}</a>`:null)??m}_renderChartMediaInfo(e){let{activeMediaInfoIndex:t,formattedMediaInfoCount:i}=this;return Z(`media-${e.type}-${t}-${i}`,I`<div class="chart" ${E(this._updateChartElement)}></div>`)}_renderMediaInfoType(){let{activeMediaInfo:e}=this;return e?e.type==="image"?this._renderImageMediaInfo(e):e.type.includes("chart")?this._renderChartMediaInfo(e):null:null}_renderMediaInfo(){let{activeMediaInfo:e}=this;return e?I`<div class="item-container"><div class="item">${this._renderMediaInfoType()}</div></div>`:null}_renderMediaPageButton(e){if(this.formattedMediaInfoCount<2)return null;let t=e==="previous",i=t?this.messages?.previous??"":this.messages?.next??"",a=t?"chevron-left":"chevron-right",s=t?this.previous:this.next;return I`<button .ariaLabel=${i} class="pagination-button" @click=${s} tabindex=0 title=${i??M} type=button><calcite-icon flip-rtl class="pagination-icon" .icon=${a} scale=s></calcite-icon></button>`}async _renderChart(e){let{root:t,mediaInfo:i}=e,{value:a,type:s}=i,[{default:r},{default:o},{default:n},{esriChartColorSet:l},{ColorSet:p,Theme:d}]=await Promise.all([import("./TILA2OKK.js"),import("./SXQRPAPL.js"),import("./5SLLYIWJ.js"),import("./KY3ND2AY.js"),import("./S62FQUEJ.js")]),c=d.new(t);c.rule("ColorSet").set("colors",l),c.rule("ColorSet").set("reuse",!0);let m=[n.new(t),c];D(this.el)==="dark"&&m.push(o.new(t)),this._canAnimateChart()&&m.push(r.new(t)),t.setThemes(m);let u=await this._getRendererColors(),g=await this._getSeriesColors(a.series),h=p.new(t,{}),v=g.get(a.series[0]),x=v?{lineSettings:{stroke:v}}:void 0,_=a.series.map((f,y)=>{let A=g.get(f)||u.get(f.fieldName)||h.getIndex(y);return{[w]:f.tooltip,[b]:f.value,columnSettings:{fill:A,stroke:A},...x}}).filter(f=>s==="pie-chart"?f.value!=null&&f.value>0:!0);s==="pie-chart"?this._createPieChart(e,_):this._createXYChart(e,_)}};B("arcgis-feature-media",N);return N},"renderers/support/utils","intl","core/reactiveUtils","popup/FieldInfo","popup/content/support/ChartMediaInfoValueSeries","applications/Components/sanitizerUtils",a,b)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{
|
|
2
|
+
import{P as l,W as o,a as n,b as a}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";var g=n`:host{--arcgis-internal-legend-gap: var(--calcite-spacing-xxs);--arcgis-internal-legend-group-gap: var(--calcite-spacing-md);display:flex;flex-direction:column;gap:var(--arcgis-internal-legend-gap)}.group{display:flex;flex-direction:column;gap:var(--arcgis-internal-legend-gap)}.group+.group,.group+arcgis-elevation-profile-legend-item,arcgis-elevation-profile-legend-item+.group{margin-block-start:calc(var(--arcgis-internal-legend-group-gap) - var(--arcgis-internal-legend-gap))}.group-title{color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-medium);text-align:start}`,s=class extends l{constructor(){super(...arguments),this._expandedLine=void 0,this.featureSelected=!1}static{this.properties={_expandedLine:16,effectiveDisplayUnits:0,featureSelected:5,messages:0,profiles:0,results:0}}static{this.styles=g}async destroy(){await this.manager.destroy()}_onToggleExpand(e){let i=e.detail;this._expandedLine=i===this._expandedLine?void 0:i}render(){let e=this.profiles?.toArray()??[],i=this.results??[],r=new Map(i.map(t=>[t.profile.id,t]));return r.size===0?a`<div></div>`:e?.map(t=>t.type==="group"?this._renderGroup(t,r):this._renderProfile(t,r))}_renderGroup(e,i){return a`<div class="group">${e.title?a`<div class="group-title">${e.title}</div>`:void 0}${e.profiles.toArray().map(r=>this._renderProfile(r,i))}</div>`}_renderProfile(e,i){return a`<arcgis-elevation-profile-legend-item .effectiveDisplayUnits=${this.effectiveDisplayUnits} .expanded=${e===this._expandedLine} .featureSelected=${this.featureSelected} .hideCheckbox=${(this.results?.length??0)<=1} .messages=${this.messages} @arcgisExpandedToggle=${this._onToggleExpand} .result=${i.get(e.id)}></arcgis-elevation-profile-legend-item>`}};o("arcgis-elevation-profile-legend",s);export{s as ArcgisElevationProfileLegend};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as d,b as m,c as g}from"./O7RSAJOS.js";import{a as n}from"./
|
|
2
|
+
import{a as d,b as m,c as g}from"./O7RSAJOS.js";import{a as n}from"./O3V63YCY.js";import f from"./QRXQ5LVY.js";import{h as s}from"./PME66FRM.js";import"./WT5SGWE4.js";import b from"./D7FCBWGA.js";import"./QUZTFUWM.js";import"./2OJYLBNC.js";import"./XURWCCLX.js";import{P as o,W as r,a,b as e,x as c}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([,{a:l}])=>{var u=a`calcite-action{--calcite-action-background-color-hover: var(--calcite-color-foreground-1);--calcite-action-background-color-press: var(--calcite-color-foreground-1);--calcite-action-background-color: var(--calcite-color-foreground-1);--calcite-action-text-color-press: var(--calcite-color-text-1);--calcite-action-text-color: var(--calcite-color-text-1);cursor:default}calcite-input-time-zone{--calcite-color-background: var(--calcite-color-foreground-1);--calcite-color-border-input: transparent}calcite-label{--calcite-label-margin-bottom: 0;font-weight:var(--calcite-font-weight-medium);padding-block:var(--calcite-spacing-sm);padding-inline:var(--calcite-spacing-md)}`,i=class extends o{constructor(){super(...arguments),this._messages=n({blocking:!0}),this.disabled=!1,this.icon="time-zone",this.view=l(this),this.arcgisPropertyChange=s()("state"),this.arcgisReady=c()}static{this.properties={_interactive:16,_resolvedTimeZone:16,actionIcon:3,disabled:7,icon:3,messageOverrides:0,label:1,referenceElement:1,state:32,view:0}}static{this.styles=u}get _interactive(){return!(this.disabled||this.state==="disabled")}get _resolvedTimeZone(){let t=this.view?.timeZone;return!t||t===d?g:t}get state(){return this.view?.ready?"ready":"disabled"}render(){return e`<calcite-action .disabled=${!this._interactive} .icon=${this.actionIcon} text>${this._resolvedTimeZone===m?e`<calcite-label>${this._messages.noAdjustment}</calcite-label>`:e`<calcite-input-time-zone mode=region overlay-positioning=fixed read-only .value=${this._resolvedTimeZone}></calcite-input-time-zone>`}</calcite-action>`}};r("arcgis-time-zone-label",i);return i},b,f)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import c from"./
|
|
2
|
+
import c from"./ZNFXHSNB.js";import b from"./SKNX46RX.js";import a from"./YU5BTZEI.js";import{P as u,R as n,S as e,W as $,a as w,b as i}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([,,{a:x,b:d,d:p,e:z,g:v,h:o,i:E}])=>{var H=w`.layer-body{display:table}.layer-row{display:table-row}.layer-cell{display:table-cell;padding:var(--calcite-space-2xs) 0;min-width:100px;vertical-align:middle;word-break:break-word}.layer-cell-info{padding-right:var(--calcite-space-sm);padding-left:var(--calcite-space-sm);max-width:250px;word-break:normal;word-wrap:normal;font-size:var(--calcite-font-size-sm)}.symbol{display:flex;justify-content:center}.ramps{margin-left:var(--calcite-space-md)}:dir(rtl) .ramps{margin-right:var(--calcite-space-md);margin-left:auto}.ramp-labels{display:flex;flex-flow:column nowrap;justify-content:space-between}.ramp-label{position:relative;padding:0 var(--calcite-space-sm);line-height:1em;white-space:nowrap;font-size:var(--calcite-font-size-sm)}.ramp-label:before{display:block;position:absolute;top:.25em;right:100%;border-width:3px 4px 3px 0;border-style:solid;border-color:transparent var(--calcite-color-text-1) transparent transparent;width:0;height:0;content:""}.ramp-label:first-child{margin-top:calc(var(--calcite-font-size-sm) / 3 * -1)}.ramp-label:last-child{bottom:calc(var(--calcite-font-size-sm) * .25 * -1)}:dir(rtl) .ramp-label:before{right:auto;left:100%;border-width:3px 0 3px 4px;border-color:transparent transparent transparent var(--calcite-color-text-1)}.univariate-above-below-label{position:relative;margin-left:7px;line-height:1em;white-space:nowrap;font-size:var(--calcite-font-size-sm)}.univariate-above-below-label:before{display:block;position:absolute;top:.45em;left:-19px;border-width:1px 0 0;border-style:solid;width:14px;height:0;content:""}.univariate-above-below-label:first-child{top:calc(var(--calcite-font-size-sm) / 2.2 * -1)}.univariate-above-below-label:last-child{bottom:calc(var(--calcite-font-size-sm) / 2.2 * -1)}:dir(rtl) .univariate-above-below-label{margin-right:var(--calcite-space-sm);margin-left:auto}:dir(rtl) .univariate-above-below-label:before{right:-19px;left:auto}.univariate-above-below-symbol{display:flex;align-items:center;justify-content:center}`,m=class extends u{constructor(){super(...arguments),this.legendElement=null,this.opacity=1}static{this.properties={cssEffectFilter:1,legendElement:0,opacity:9,messages:0}}static{this.styles=H}render(){let{legendElement:A,opacity:c}=this,{sizeRampElement:t,colorRampElement:b}=z(A,this.messages,c);if(!t)return null;let f=this.messages.previewColorRampAriaLabel,h=p(t,"above",!0),y=p(t,"below",!0),g=12,s=d(b,{width:g,height:h,rampAlignment:"vertical",opacity:c,type:"above",cssEffectFilter:this.cssEffectFilter,ariaLabel:f}),k=d(b,{width:g,height:y,rampAlignment:"vertical",opacity:c,type:"below",cssEffectFilter:this.cssEffectFilter,ariaLabel:f}),F=x(t),r=t.infos.map(a=>a.label),L=r.map((a,l)=>l===0?i`<div class=${n(a?s?"univariate-above-below-label":"ramp-label":void 0)}>${a}</div>`:l===2?i`<div></div>`:null),R=r.length-1,j=Math.floor(r.length/2),C=r.map((a,l)=>l===j||l===R?i`<div class=${n(a?s?"univariate-above-below-label":"ramp-label":void 0)}>${a}</div>`:null),M={display:"table-cell",verticalAlign:"middle"},B={marginTop:`${F}px`},S={height:`${h}px`},U={height:`${y}px`};return i`<div style=${e(E)}><div class="layer-body">${t.infos.map((a,l)=>i`<div class="layer-row"><div class="symbol" style=${e(M)}>${a.preview}</div>${!s&&l%2===0?i`<div class="layer-cell layer-cell-info">${r[l]}</div>`:null}</div>`)}</div>${s?i`<div style=${e(B)}><div style=${e(v)}><div style=${e(o)}><div class="ramps">${s}</div></div><div style=${e(o)}><div class="ramp-labels" style=${e(S)}>${L}</div></div></div><div style=${e(v)}><div style=${e(o)}><div class="ramps">${k}</div></div><div style=${e(o)}><div class="ramp-labels" style=${e(U)}>${C}</div></div></div></div>`:null}</div>`}};$("arcgis-legend-classic-univariate-above-and-below-ramp",m);return m},a,b,c)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import l from"./TO2AHJ2D.js";import{a as J}from"./JCRPP54Z.js";import k from"./AQTSDDVK.js";import j from"./QGB7AGII.js";import{a as S,b as H,g as G,h as U,m as F}from"./FCNNRX3Q.js";import{a as B}from"./TXYWZMGM.js";import{a as w}from"./SSNCB7LI.js";import i from"./Z2NU3RGI.js";import h from"./TMJX7DFH.js";import g from"./QZ5LJH35.js";import"./VJVKFKSG.js";import f from"./5TZGXGC2.js";import{a as R}from"./O3V63YCY.js";import{a as p}from"./JD74LG7K.js";import e from"./HZWFDJFV.js";import d from"./YSWNUR6Q.js";import b from"./QRXQ5LVY.js";import{h as D}from"./PME66FRM.js";import"./WT5SGWE4.js";import a from"./D7FCBWGA.js";import"./QUZTFUWM.js";import{b as x}from"./2OJYLBNC.js";import"./XURWCCLX.js";import{B as T,N as O,O as m,P,R as y,T as $,U as L,W as A,b as r,x as c}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([{createReactiveMap:K},I,{on:C,watch:W},X,Y,{j:f},,,k,N,,,,,,{a:j,b:q,c:z}])=>{var g=J,Z=u=>{let e=u?.type;return e==="knowledge-graph"||e==="map-image"||e==="tile"},ee=u=>u?.type==="catalog",Q="nested",te=I.ofType(Y),se=N(X),_=class extends P{constructor(){super(...arguments),this.#l=`operational-${T()}`,this.#e=null,this.#o=O(),this.#i=!1,this.#t=!1,this.messages=R(),this.#r=()=>{this._activeItem=null},this.#n=e=>{if(this.visibilityAppearance!=="default")return;let t=Array.from(e.composedPath()).find(s=>s.classList?.contains(g.item));this._activeItem=F(t)},this.#a=K(),this.#s=K(),this.#h=e=>{e&&this.#v(e)},this.#c=e=>{e&&this.#b(e)},this.#d=e=>{e&&this.#$(e)},this.viewModel=se(this),this._activeItem=null,this._focusRootFlowItem=!1,this._focusPanelFlowItem=!1,this._focusLayerFlowItem=null,this.layerTablesEnabled=new I(["knowledge-graph"]),this.mapImageOptions=null,this.tileOptions=null,this.autoDestroyDisabled=!1,this.closed=!1,this.collapsed=!1,this.filterPlaceholder="",this.filterText="",this.headingLevel=2,this.hideCatalogLayerList=!1,this.hideNoFilterResultsNotice=!1,this.hideNoItemsNotice=!1,this.hideStatusIndicators=!1,this.listItemCreatedFunction=this.viewModel.listItemCreatedFunction,this.listModeDisabled=this.viewModel.listModeDisabled,this.minFilterItems=H,this.openedLayerLists=new I,this.openedLayers=new I,this.selectedItems=new te,this.selectionMode="none",this.showCloseButton=!1,this.showCollapseButton=!1,this.showErrors=!1,this.showFilter=!1,this.showHeading=!1,this.showTemporaryLayerIndicators=!1,this.state=this.viewModel.state,this.topLayerDisabled=!1,this.view=this.viewModel.view,this.visibilityAppearance="default",this.arcgisCatalogItemsChange=c(),this.arcgisFilterChange=c(),this.arcgisOpenedLayersChange=c(),this.arcgisPropertyChange=D()("state"),this.arcgisReady=c(),this.arcgisSelectedItemsChange=c(),this.arcgisTriggerAction=k(()=>this.viewModel,"trigger-action")}static{this.properties={_catalogLayerList:16,_activeItem:16,_focusRootFlowItem:16,_focusPanelFlowItem:16,_focusLayerFlowItem:16,_totalItems:16,_filterEnabled:16,_visibleItems:16,_openedPanelItems:16,_renderedOpenLayerFlowItems:16,layerTablesEnabled:16,mapImageOptions:16,tileOptions:16,autoDestroyDisabled:5,catalogItems:0,catalogLayer:0,catalogOptions:0,closed:5,collapsed:5,filterPlaceholder:1,filterPredicate:0,filterText:1,headingLevel:9,hideCatalogLayerList:5,hideNoFilterResultsNotice:5,hideNoItemsNotice:5,hideStatusIndicators:5,knowledgeGraphOptions:0,label:1,listItemCreatedFunction:0,listModeDisabled:5,messageOverrides:0,minFilterItems:9,onCatalogOpen:0,onTablesOpen:0,openedLayerLists:32,openedLayers:32,referenceElement:1,selectedItems:0,selectionMode:1,showCloseButton:5,showCollapseButton:5,showErrors:5,showFilter:5,showHeading:5,showTemporaryLayerIndicators:5,state:32,topLayerDisabled:5,view:0,visibilityAppearance:1}}static{this.styles=[z,q]}#l;#e;#o;#i;#t;#r;#n;#a;#s;#h;#c;#d;get _totalItems(){return this.catalogItems?.flatten(e=>e.children.filter(t=>t.layer?.type!=="catalog-dynamic-group")).length??0}get _filterEnabled(){return this._totalItems>=this.minFilterItems&&this.showFilter}get _visibleItems(){return this.catalogItems?.filter(e=>!e.hidden&&(this.showErrors||!e.error))}get _openedPanelItems(){return this._visibleItems.flatten(e=>e.children).filter(({hidden:e,panel:t})=>!e&&t?.open&&!t.disabled&&t.flowEnabled)}get _renderedOpenLayerFlowItems(){let{openedLayers:e}=this;return e.toArray().map((t,s)=>this.#D(t,s===e.length-1))}get catalogItems(){return this.viewModel.catalogItems}set catalogItems(e){this.viewModel.catalogItems=e}get catalogLayer(){return this.viewModel.catalogLayer}set catalogLayer(e){this.viewModel.catalogLayer=e}async destroy(){this.#i||this.#t||(this.#i=!0,this.#e?.abort(),this.#e=null,await this.manager.destroy(),this.openedLayerLists.removeAll(),this.openedLayers.removeAll(),this.#s.clear(),this.#a.clear(),this.#t=!0,this.#i=!1)}loaded(){this.manager.onLifecycle(()=>[C(()=>this.openedLayers,"change",()=>{this.#w()}),C(()=>this.viewModel.catalogItems,"change",()=>{G(this.selectedItems),this.arcgisCatalogItemsChange.emit()}),C(()=>this.selectedItems,"change",()=>this.arcgisSelectedItemsChange.emit()),W(()=>[this.filterPredicate,this.#o.value],()=>U(this.#o.value,this.filterPredicate))])}disconnectedCallback(){super.disconnectedCallback(),this.#e?.abort(),this.#e=null,!this.autoDestroyDisabled&&!this.#t&&!this.#i&&this.destroy()}#y(e,t){return this.viewModel.triggerAction(e,t)}async#f(e,t){let s=this.#s.get(e);if(s)return s;let a=e.type==="catalog"?await this.#L(e):await this.#C(e);return t.aborted||!this.isConnected||this.#t?(a?.destroy?.(),a):(t.aborted||this.#s.set(e,a),a)}async#w(){if(!this.isConnected||this.#t)return;let{openedLayers:e,openedLayerLists:t}=this;this.#e?.abort();let s=new AbortController,{signal:a}=s;this.#e=s,this.#s.forEach((n,h)=>{e.includes(h)||(n?.destroy?.(),this.#s.delete(h))});let o=await Promise.all(e.map(n=>this.#f(n,a)));if(a.aborted||!this.isConnected||this.#t)return;t.removeAll(),t.addMany(o);let i=t.at(-1),l=i&&"catalogLayer"in i?i:void 0;this._catalogLayerList!==l&&(this._catalogLayerList=l),this.arcgisOpenedLayersChange.emit()}#I(e){e.open=!1,this._focusRootFlowItem=!0}#b(e){this._focusRootFlowItem&&(this._focusRootFlowItem=!1,f(e))}#v(e){this._focusPanelFlowItem&&(this._focusPanelFlowItem=!1,f(e))}#$(e){this._focusLayerFlowItem===e.dataset.layerUid&&(this._focusLayerFlowItem=null,f(e))}async#L(e){let{headingLevel:t,catalogOptions:s,view:a,referenceElement:o,filterPlaceholder:i,listItemCreatedFunction:l,minFilterItems:n,selectionMode:h,visibilityAppearance:d}=this;return L(r`<arcgis-catalog-layer-list-next .headingLevel=${t} .filterPlaceholder=${s?.filterPlaceholder??i} .listItemCreatedFunction=${s?.listItemCreatedFunction??l} .minFilterItems=${s?.minFilterItems??n} .selectionMode=${s?.selectionMode??h} .visibilityAppearance=${s?.visibilityAppearance??d} .showErrors=${s?.showErrors??this.showErrors} .showFilter=${s?.showFilter??this.showFilter} .hideStatusIndicators=${s?.hideStatusIndicators??this.hideStatusIndicators} .showTemporaryLayerIndicators=${s?.showTemporaryLayerIndicators??this.showTemporaryLayerIndicators} .messageOverrides=${this.messageOverrides} @arcgisReady=${b=>b.stopPropagation()} .catalogLayer=${e} .view=${a} .referenceElement=${o} @catalogOpen=${this.#p} @tablesOpen=${this.#m}></arcgis-catalog-layer-list-next>`)}#F(e){switch(e.type){case"knowledge-graph":return{...this.knowledgeGraphOptions,tables:e.tables};case"map-image":return{...this.mapImageOptions,tables:e.subtables};case"tile":return{...this.tileOptions,tables:e.subtables};default:return null}}async#C(e){let{headingLevel:t,selectionMode:s,referenceElement:a,view:o}=this,i=this.#F(e);return L(r`<arcgis-table-list-next .headingLevel=${i?.headingLevel??t} .selectionMode=${i?.selectionMode??s} .collapsed=${i?.collapsed} .filterPlaceholder=${i?.filterPlaceholder} .filterText=${i?.filterText} .label=${i?.label} .tables=${i?.tables} .view=${o} .referenceElement=${a} @arcgisReady=${l=>l.stopPropagation()}></arcgis-table-list-next>`)}#m(e){if(this.onTablesOpen){this.onTablesOpen(e);return}let t=e.layer;Z(t)&&(this.openedLayers.push(t),this._focusLayerFlowItem=t.uid)}#p(e){if(this.onCatalogOpen){this.onCatalogOpen(e);return}let t=e.layer?.parent;ee(t)&&(this.openedLayers.push(t),this._focusLayerFlowItem=e.layer?.uid)}#_(e,t){t?this.#a.set(e,t):this.#a.delete(e)}#M(e,t){this.#y(e,t)}#E(e){let{selectionMode:t,selectedItems:s}=this;if(t==="none")return;let a=e.target.selectedItems.map(o=>F(o)).filter(Boolean);s.removeAll(),s.addMany(a)}render(){let{state:e}=this,t={[p.hidden]:e==="loading",[p.disabled]:e==="disabled"};return r`<div class=${y(x(p.widget,p.panel,t))}>${this._visibleItems?.length?this.#O():null}${this.#x()}</div>`}#T(e){let t=this.#a,s=this.messages;return e?.layer?r`<calcite-tooltip overlay-positioning=fixed .referenceElement=${t.get(e.layer.uid)} .topLayerDisabled=${this.topLayerDisabled}>${s.layerIncompatibleTooltip}</calcite-tooltip>`:null}#g(e){return e.incompatible?this.#T(e):e.children?.filter(t=>!t.hidden).toArray().map(t=>this.#g(t))}#O(){return this._visibleItems?.toArray().map(e=>this.#g(e))}#u(){return r`<div slot=message>${this.messages.noItemsToDisplay}</div>`}#P(){return this.hideNoItemsNotice?null:r`<div class=${y(g.itemMessage)}><calcite-notice icon=information kind=info open width=full>${this.#u()}</calcite-notice></div>`}#A(){let{_openedPanelItems:e,openedLayers:t}=this;return B(e.toArray(),({uid:s})=>s,(s,a)=>{let{uid:o,title:i,panel:l}=s,n=()=>this.#I(l);return r`<calcite-flow-item .description=${i} .heading=${l.title} .headingLevel=${this.headingLevel} .selected=${!t.length&&a===e.length-1} @calciteFlowItemBack=${h=>{h.preventDefault(),n()}} ${m(this.#h)}><arcgis-layer-list-item-panel .item=${s} .view=${this.view}></arcgis-layer-list-item-panel><calcite-button appearance=transparent slot=footer-actions width=full @click=${n}>Back</calcite-button></calcite-flow-item>`})}#x(){let{collapsed:e,_visibleItems:t,_filterEnabled:s,showCloseButton:a,showCollapseButton:o,showHeading:i,selectionMode:l,filterText:n,filterPlaceholder:h,openedLayers:d,_openedPanelItems:b}=this,M=this.#l,E=this.label??this.messages.componentLabel??"",V=[r`<calcite-flow-item .closable=${a} .closed=${this.closed} .collapsed=${e} .collapsible=${o} .heading=${i?E:void 0} .headingLevel=${this.headingLevel} .selected=${!d.length&&!b.length} @calciteFlowItemClose=${()=>this.closed=!0} ${m(this.#c)}>${t?.length?r`<calcite-list data-layer-type=${M??$} .displayMode=${Q} .filterEnabled=${s} .filterPlaceholder=${h} .filterProps=${S} .filterText=${s?n:""} .group=${M} .label=${E} @focusin=${this.#n} @focusout=${this.#r} selection-appearance=border .selectionMode=${l} @calciteListChange=${this.#E} @calciteListFilter=${v=>{this.filterText=v.currentTarget?.filterText??"",this.arcgisFilterChange.emit()}} @mouseleave=${this.#r} @mouseover=${this.#n} ${m(this.#o)}>${t.toArray().map(v=>this.#R(v))}${s&&!this.hideNoFilterResultsNotice?r`<div class=${y(g.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this.#u()}</calcite-notice></div>`:null}</calcite-list>`:this.#P()}</calcite-flow-item>`,this.#A(),this._renderedOpenLayerFlowItems];return this.closed?null:w("root-flow",r`<calcite-flow>${V}</calcite-flow>`)}#D(e,t){let{openedLayers:s}=this,a=e.title||this.messages.untitledLayer;return w(e.uid,r`<calcite-flow-item data-layer-uid=${e.uid??$} .description=${a} .heading=${this.messages[e.type==="catalog"?"catalogLayers":"tables"]} .headingLevel=${this.headingLevel} .selected=${t} @calciteFlowItemBack=${o=>{o.preventDefault(),s.pop();let i=s.at(-1);i?this._focusLayerFlowItem=i.uid:this._focusRootFlowItem=!0}} ${m(this.#d)}>${this.#s.get(e)}</calcite-flow-item>`)}#R(e,t,s){let{hideStatusIndicators:a,showCloseButton:o,showCollapseButton:i,showErrors:l,showFilter:n,showHeading:h,showTemporaryLayerIndicators:d}=this;return w(e.uid,j({activeItem:this._activeItem??void 0,css:{...g,itemCatalogIcon:g.itemActionIcon},displayMode:Q,dragEnabled:!1,item:e,layerTablesEnabled:this.layerTablesEnabled,listModeDisabled:this.viewModel.listModeDisabled,messages:this.messages,parent:t,parentTitles:s,rootGroupUid:this.#l,selectedItems:this.selectedItems,selectionMode:this.selectionMode,visibilityAppearance:this.visibilityAppearance,hideStatusIndicators:a,showCloseButton:o,showCollapseButton:i,showErrors:l,showFilter:n,showHeading:h,showTemporaryLayerIndicators:d,handleAction:this.#M.bind(this),handleCatalogOpen:this.#p.bind(this),handleTablesOpen:this.#m.bind(this),handleTooltipReferenceChange:this.#_.bind(this),view:this.view}))}};A("arcgis-catalog-layer-list-next",_);return _},"applications/Components/featureUtils","core/Collection","core/reactiveUtils","layers/list/CatalogItemCollection","layers/list/Item",a,b,d,e,f,g,h,i,j,k,l)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import{a as E}from"./PME66FRM.js";import{j as y,u as h,v as C,w as v,z as x}from"./I2BIPOZQ.js";export default $arcgis.t(([{on:P,watch:w},{createObservable:k,trackAccess:$},{property:O,subclass:B},M])=>{var q=(t,e)=>{let o=y().manager;o.onLoaded(()=>o.onLifecycle(()=>P(t,e,n.emit)));let n=v();return n},A=(t,e)=>r=>N(r,t),p=class extends x{constructor(e,r){super(e),this.Y=new Map,this.A=void 0,this.#t=k();let o=this;o.#e=r,o.Z(),o.setProvisionalExports(m(e,new WeakRef(o),e.M.length-1,o.instance,o.Y),!1),h(e,n=>{if(n){let c=w(()=>e[n],s=>{if(s===o.instance)return;let i=o.instance;o.exports=s,o.instance=s,o.Y.forEach((a,d)=>e.requestUpdate(a,i[d])),o.#o&&i.destroy(),o.#o=!1},{sync:!0});o.onDestroy(c.remove)}},o.exports)}#o;#t;#e;get exports(){return $(this.#t),super.exports}set exports(e){super.exports=e,this.#t.notify()}Z(){let e=this;e.instance="prototype"in e.#e&&"declaredClass"in e.#e.prototype?new e.#e:e.#e(),e.#o=!0}hostConnected(){this.exports=this.instance}hostDestroy(){this.#o&&this.instance.destroy?.()}},N=E(p),m=(t,e,r,o,n)=>new Proxy(o,{get:(c,s)=>{let i=c[s];if(typeof s=="symbol"||n.has(s))return i;let a=t.M[r];return a.A=s,C(t,d=>{if(a.A=void 0,d!==void 0){let l=d.key;n.set(s,l);let u=t.constructor.getPropertyOptions(l),f=s!==l&&l.toLowerCase().includes("disable");D(e,u,s,l,f),u.i===void 0&&L(u,r,s,f)}},i)}}),D=(t,e,r,o,n,c)=>c=w(()=>{let s=t.deref();return s===void 0||s.component.manager.destroyed?c=c.remove():s.exports[r]},(s,i)=>{if(!c)return;t.deref().component?.requestUpdate(o,n?!i:i),e.c=!1},{sync:!0}),L=(t,e,r,o)=>{t.d.get=function(){let n=this.M[e]?.exports[r];return o?!n:n},t.d.set=function(n){let c=this.M[e];c.A!==r&&(c.exports[r]=o?!n:n)}},b=t=>t.Y,g=(t,e)=>{let r=e.manager.useRefSync(t);r?.hostDestroy(),r?.Z(),r?.hostConnected()},G=t=>{let e=class extends M{},r=typeof t=="function"?t():t,o=Object.getOwnPropertyDescriptors(r);for(let[c,s]of Object.entries(o))Object.defineProperty(e.prototype,c,s),O()(e.prototype,c);let n=B()(e);return new n};var J=A,Q=p,X=g,z=m,ee=b;return{a:q,b:G,c:J,d:Q,e:X,f:z,g:ee}},"core/reactiveUtils","applications/Components/reactiveUtils","core/accessorSupport/decorators","core/Accessor")
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as x}from"./5L5UYV3H.js";import{c as b}from"./TN5C3MSL.js";import f from"./SVEKICHA.js";import"./VJVKFKSG.js";import e from"./TQMJ6PQF.js";import{a as B}from"./PB3LAPN6.js";import d from"./4JLRRQSP.js";import c from"./DGHSJCA2.js";import{a as R,f as z}from"./PGQ4RVAW.js";import"./25LV3KCP.js";import a from"./TBBD3K7K.js";import"./QUZTFUWM.js";import"./FAOYV6UX.js";import"./XURWCCLX.js";import{O as E,S as w,V as D,a as F,b as u,w as v,y as L}from"./MNS5VY6U.js";import"./H6RQVSYM.js";export default $arcgis.t(([{property:d,subclass:H},j,_,{ignoreAbortErrors:V},{watch:g,on:M,whenOnce:I},W,U,K,Q,q,J,X,Y,{fetchPopupFeaturesFromGraphics:k},,,,O])=>{var Z=F`:host{width:100%;height:100%;padding:var(--calcite-space-none);margin:var(--calcite-space-none);display:flex;--internal-attribution-height: 16px;--arcgis-internal-presentation-padding-start: unset;--arcgis-internal-presentation-padding-end: unset;--arcgis-internal-presentation-cover-padding-top: unset;--arcgis-internal-presentation-cover-padding-bottom: unset;--arcgis-internal-presentation-cover-padding-start: unset;--arcgis-internal-presentation-cover-padding-end: unset;--arcgis-presentation-navigation-z-index: unset}p{padding:0;margin:0}.root{display:flex;flex-direction:column;justify-content:space-between;width:100%;height:100%}.presentation-content{position:absolute;display:flex;width:100%;height:100%;justify-content:flex-end;padding-top:var(--calcite-space-lg);padding-inline-start:calc(var(--calcite-space-lg) + var(--arcgis-internal-presentation-padding-start));padding-inline-end:calc(var(--calcite-space-lg) + var(--arcgis-internal-presentation-padding-end))}.navigation-container{display:flex;flex-direction:column;margin-inline-start:var(--calcite-space-lg);margin-block:auto calc(var(--calcite-space-lg) + var(--arcgis-internal-attribution-space-top));width:fit-content;height:100%;z-index:var(--arcgis-presentation-navigation-z-index)}.navigation{width:fit-content;display:flex;align-items:center;background-color:var(--calcite-color-surface-2);box-shadow:var(--arcgis-internal-box-shadow);pointer-events:auto}.navigation-slide-list-container{position:relative;height:100%;min-height:0;margin-block-start:var(--calcite-space-lg)}.slide-list-action-container{border-inline-end:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.slide-counter-text{display:flex;align-items:center;justify-content:center;gap:var(--calcite-space-base);font-size:var(--calcite-font-size-md)}.slide-counter-text-element{box-sizing:border-box;max-width:28px;margin:0;padding:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-variant-numeric:tabular-nums;min-width:var(--calcite-spacing-md);text-align:center}.legend-container{pointer-events:all;box-shadow:var(--calcite-shadow-sm);max-width:300px;height:fit-content;max-height:calc(100vh - 136px);overflow:hidden auto}.legend{background-color:var(--calcite-color-surface-2)}`,ee=Object.defineProperty,te=Object.getOwnPropertyDescriptor,o=(i,e,t,s)=>{for(var n=s>1?void 0:s?te(e,t):e,a=i.length-1,r;a>=0;a--)(r=i[a])&&(n=(s?r(e,t,n):r(n))||n);return s&&n&&ee(e,t,n),n},l=class extends j{constructor(i){super(i),this.transitionActive=!1,this.showLegend=!1,this._slideLegendDisabled=!1,this.keyboardNavigationEnabled=!1,this._subscribeToSlideEvents=e=>{this._unsubscribeToSlideEvents(e),e.forEach(t=>{let s=t.on("apply-slide-start",()=>this._onApplySlideStart(t)),n=t.on("apply-slide-complete",()=>this._onApplySlideComplete(t)),a=t.on("apply-slide-cancel",()=>this._onApplySlideCancel(t));this.addHandles(s,t.id),this.addHandles(n,t.id),this.addHandles(a,t.id)})},this._unsubscribeToSlideEvents=e=>{e.forEach(t=>{this.hasHandles(t.id)&&this.removeHandles(t.id)})}}initialize(){this.addHandles(g(()=>this.view?.map,(i,e)=>{if(this.hasHandles("sceneLoaded")&&this.removeHandles("sceneLoaded"),e){let t=e.presentation?.slides;t&&t.length>0&&this._unsubscribeToSlideEvents(t)}i&&this.addHandles(g(()=>i.loaded,t=>{t&&(this.removeHandles("sceneLoaded"),this._startWatchSlides(),this._slideId&&this._applySlideById(this._slideId))},{initial:!0}),"sceneLoaded")},{initial:!0}))}destroy(){this._unsubscribeToSlideEvents(this.slides)}get slideId(){return this._slideId}set slideId(i){i===void 0||!this.view?.map?.loaded?this._slideId=i:this._applySlideById(i)}get visibleSlides(){return this.view?.map?.presentation?.slides?.filter(i=>!i.hidden)??new _}get slides(){return this.view?.map?.presentation?.slides??new _}get lastSlideSelected(){return this.getSlideIndexBySlideId(this.slideId)===this.visibleSlides.length-1}get firstSlideSelected(){return this.getSlideIndexBySlideId(this.slideId)===0}get slideSelected(){return this.getSlideIndexBySlideId(this.slideId)>-1}get hasOnlyOneSlide(){return this.visibleSlides.length===1}get slideIndex(){return this.getSlideIndexBySlideId(this.slideId)}get slideLegendDisabled(){return this._slideLegendDisabled}set slideLegendDisabled(i){this._slideLegendDisabled=i,i&&(this.showLegend=!1)}getSlideIndexBySlideId(i){let e=-1;return i&&(e=this.visibleSlides.findIndex(t=>t.id===i)),e}navigateInPresentation(i){let e=this.slideIndex+i,t=this._getSlideBySlideIndex(e);t??=this._getSlideBySlideIndex(0),t&&this.applySlide(t)}captureArrowKeysForNavigation(i,e){let t=["ArrowLeft","ArrowRight","PageUp","PageDown"];if(document.activeElement?.nodeName.toLowerCase()==="arcgis-scene"||!t.includes(i.code))return;let s=e==="rtl"?"ArrowRight":"ArrowLeft",n=i.code===s||i.code==="PageUp"?-1:1;this.navigateInPresentation(n)}async setSliceAnalysisInteractive(i){if(!this.view?.analyses?.length)return;let e=this.view.analyses.find(s=>s.type==="slice"&&s.origin?.type==="web-scene");if(!e)return;let t=await this.view.whenAnalysisView(e);t&&(t.interactive=i)}getSlideBySlideId(i){return this.visibleSlides.find(e=>e.id===i)}async applySlide(i,e,t){if(this.view){let s=t?{signal:t?.signal}:{};await V(i.applyTo(this.view,{...s,animate:!e}))}}_getSlideBySlideIndex(i){if(i!=null&&i>=0&&i<this.visibleSlides.length)return this.visibleSlides.getItemAt(i)}async _applySlideById(i){let e=i?this.getSlideBySlideId(i):void 0;e&&await this.applySlide(e)}_startWatchSlides(){this._subscribeToSlideEvents(this.slides),this.addHandles(M(()=>this.slides,"change",i=>{this._subscribeToSlideEvents(new _(i.added)),this._unsubscribeToSlideEvents(new _(i.removed))},{onListenerAdd:this._subscribeToSlideEvents,onListenerRemove:this._unsubscribeToSlideEvents}))}_onApplySlideStart(i){this._slideId=i.id,this.transitionActive=!0,this.showLegend=!1,this.onApplySlideStart?.(i)}_onApplySlideComplete(i){this.transitionActive=!1,this._updateLegendDisplay(i),this.onApplySlideComplete?.(i)}_onApplySlideCancel(i){this.transitionActive=!1,this._updateLegendDisplay(i),this.onApplySlideCancel?.(i)}_updateLegendDisplay(i){this.showLegend=!this._slideLegendDisabled&&!!i.elements.legendInfo?.visible}};o([d()],l.prototype,"_slideId",2);o([d()],l.prototype,"view",2);o([d()],l.prototype,"slideId",1);o([d()],l.prototype,"transitionActive",2);o([d()],l.prototype,"showLegend",2);o([d()],l.prototype,"_slideLegendDisabled",2);o([d()],l.prototype,"keyboardNavigationEnabled",2);o([d()],l.prototype,"visibleSlides",1);o([d()],l.prototype,"slides",1);o([d()],l.prototype,"lastSlideSelected",1);o([d()],l.prototype,"firstSlideSelected",1);o([d()],l.prototype,"slideSelected",1);o([d()],l.prototype,"hasOnlyOneSlide",1);o([d()],l.prototype,"slideLegendDisabled",1);o([d()],l.prototype,"onApplySlideStart",2);o([d()],l.prototype,"onApplySlideComplete",2);o([d()],l.prototype,"onApplySlideCancel",2);o([d()],l.prototype,"getSlideIndexBySlideId",1);l=o([H("components.presentation.PresentationViewModel")],l);var $=class extends L{constructor(e){super(e)}hostLoaded(){this.component.manager.onLifecycle(()=>{let e=this.component;I(()=>e.referenceElement).then(t=>{this._isArcgisScene(t)&&(this._sceneRef=t)})})}openPopup(e){this.component.view&&this.component.slideId===e.id&&e.elements.popupInfo!=null&&this._preparePopupFeature(this.component.view,e.elements.popupInfo).then(({success:t,features:s,popupInfo:n})=>{this.component.slideId===e.id&&(t?this._handlePopupFeatureFound(e,s,n):this.component.arcgisPopupFeatureNotFound.emit({slide:e}))})}_isArcgisScene(e){return e===void 0||typeof e=="string"?!1:"tagName"in e&&e.tagName==="ARCGIS-SCENE"}closePopup(e){(!this.component.slidePopupDisabled||e)&&this._sceneRef?.closePopup()}async _handlePopupFeatureFound(e,t,s){let n=s?.location??void 0;this.component.arcgisPopupFeaturesRetrieved.emit({slide:e,features:t,location:n}),this.component.slidePopupDisabled||await this._sceneRef?.openPopup({features:t,location:n})}async _preparePopupFeature(e,t){let s=[];if(!t.features?.length||t.features.length===0)return{success:!1,features:s};let n=t.features?.getItemAt(t.selectedFeatureIndex)?.layerReference;if(n?.layerId==null)return{success:!1,features:s};let{layer:a,sublayer:r}=this._getLayersFromView(e,n.layerId,n?.sublayerId);if(!a)return{success:!1,features:s};let p=r??a;if(!p||!this._layerTypeSupportsCapturePopup(p))return{success:!1,features:s};if(s=await this._fetchFeaturesFromQueryable(e,t,a,r,p),s&&this._featureHasBeenFilledWithAttributes(s)){let c=s[0];return this._setFallbackPopupTemplate(c,r,a),this._setFallbackGeometry(c,t?.location),{success:!0,features:s,popupInfo:t}}return{success:!1,features:s}}_getLayersFromView(e,t,s){let n=e.map?.findLayerById(t)??void 0,a=this._getBuildingSceneLayerSublayer(n,s);return{layer:n,sublayer:a}}_getBuildingSceneLayerSublayer(e,t){let s;return e&&this._isLayer(e)&&this._isBuildingSceneLayer(e)&&t!=null&&(s=e.allSublayers.find(n=>n.id===t&&n.type==="building-component")),s}_featureHasBeenFilledWithAttributes(e){return e&&e.length>0&&e[0].attributes&&Object.entries(e[0].attributes)?.length>1}async _fetchFeaturesFromQueryable(e,t,s,n,a){let r=t.features?.getItemAt(t.selectedFeatureIndex);if(r?.id==null)return await Promise.resolve([]);let p=await e.whenLayerView(s);await I(()=>!p.updating);let c=this._tryGetBuildingComponentSublayerView(s,n,p)??p;await I(()=>!c.updating);let h=this._createFeatureGraphic(s,n,a,r.id),y=await k(c,[h]);return this._featureHasBeenFilledWithAttributes(y)||(await I(()=>!e.updating),y=await k(c,[h])),y}_tryGetBuildingComponentSublayerView(e,t,s){let n;return this._isLayer(e)&&this._isBuildingSceneLayer(e)&&t!=null&&(n=s.sublayerViews.find(a=>a.sublayer.id===t.id)),n}_setFallbackPopupTemplate(e,t,s){e.popupTemplate==null&&(e.popupTemplate=t?.popupTemplate?t.popupTemplate:s.popupTemplate)}_setFallbackGeometry(e,t){e.geometry==null&&t&&(e.geometry=t.clone())}_createFeatureGraphic(e,t,s,n){let a=this._getGlobalIdFieldNameFromLayer(s),r=n.type==="global-id"&&a?a:s.objectIdField,p=this._getGraphicOrigin(e,t),c=new W({attributes:{},layer:e,origin:p});return c.attributes[r]=n.value,c}_getGraphicOrigin(e,t){switch(e.type){case"csv":return new K(e);case"feature":return new Y(e);case"geojson":return new Q(e);case"scene":return new q(e);case"wfs":return new J(e);case"building-scene":return t?new X(t):void 0;default:return}}_layerTypeSupportsCapturePopup(e){return e!=null&&["csv","feature","geojson","wfs","scene","building-component"].includes(e.type)}_isLayer(e){return!!e&&e instanceof U}_isBuildingSceneLayer(e){return e?.type==="building-scene"}_getGlobalIdFieldNameFromLayer(e){return e.fields?.find(t=>t.type==="global-id")?.name}},ie=i=>new $(i),m=Object.freeze({width:0,height:0}),f=new WeakMap,S=()=>({topCenter:{...m},topLeft:{...m},topRight:{...m},bottomCenter:{...m},bottomLeft:{...m},bottomRight:{...m}}),T=i=>({topCenter:{...i.topCenter},topLeft:{...i.topLeft},topRight:{...i.topRight},bottomCenter:{...i.bottomCenter},bottomLeft:{...i.bottomLeft},bottomRight:{...i.bottomRight}}),N=i=>{let e=f.get(i);return e||(e={observedGroups:new Map,observedSizes:S(),subscribers:new Set},f.set(i,e)),e},se=i=>{let e=i?.topCenter.value,t=i?.topLeft.value,s=i?.topRight.value,n=i?.bottomCenter.value,a=i?.bottomLeft.value,r=i?.bottomRight.value;return e&&t&&s&&n&&a&&r?{topCenter:e,topLeft:t,topRight:s,bottomCenter:n,bottomLeft:a,bottomRight:r}:null},ne=(i,e)=>b.every(t=>i.get(t)===e[t]),ae=i=>{let e=T(i.observedSizes);i.subscribers.forEach(t=>t(e))},re=(i,e)=>{let t=f.get(i);if(!t)return;let s=!1;e.forEach(n=>{let a=b.find(y=>t.observedGroups.get(y)===n.target);if(!a)return;let{width:r,height:p}=n.contentRect,c={width:r,height:p},h=t.observedSizes[a];h.width===c.width&&h.height===c.height||(t.observedSizes[a]=c,s=!0)}),s&&ae(t)},A=(i,e)=>{let t=N(i);t.resizeObserver||(t.resizeObserver=new ResizeObserver(n=>{re(i,n)}));let s=se(e);if(!s){t.observedGroups.size>0&&(t.resizeObserver.disconnect(),t.observedGroups.clear());return}ne(t.observedGroups,s)||(t.resizeObserver.disconnect(),t.observedGroups.clear(),b.forEach(n=>{let a=s[n];t.observedGroups.set(n,a),t.resizeObserver?.observe(a)}))},le=(i,e)=>{let t=N(i);return t.subscribers.add(e),e(T(t.observedSizes)),()=>{let s=f.get(i);s&&(s.subscribers.delete(e),s.subscribers.size===0&&(s.resizeObserver?.disconnect(),s.observedGroups.clear(),f.delete(i)))}},P=class extends L{#e;#t;#i;constructor(e){super(e),this.exports=S()}hostDisconnected(){this.#i?.(),this.#i=void 0,this.#t=void 0,this.#e=void 0,this.exports=S()}hostLifecycle(){return[g(()=>this.#s(),e=>{if(this.#t!==e){if(this.#i?.(),this.#i=void 0,this.#t=e,this.#e=e?.slotGroupRefs,!e){this.exports=S();return}this.#i=le(e,t=>{this.#n(t)||(this.exports=t)}),A(e,this.#e)}},{sync:!0,initial:!0}),g(()=>this.#s()?.slotGroupRefs,e=>{this.#e=e,this.#t&&e&&A(this.#t,e)},{sync:!0,initial:!0})]}#s(){let{referenceElement:e}=this.component;return e&&typeof e!="string"?e:void 0}hostUpdated(){!this.#t||!this.#e||A(this.#t,this.#e)}#n(e){let t=this.exports??S();return b.every(s=>{let n=t[s],a=e[s];return n.width===a.width&&n.height===a.height})}},oe=R(P),de=O(l),C=class extends E{constructor(){super(...arguments),this._messages=B(),this._direction=z(),this.#e=de(this),this.#i=e=>{this.#e.captureArrowKeysForNavigation(e,this._direction)},this.#s=ie(this),this.#a=null,this.#l=e=>{this.#s.closePopup(),this.arcgisSlideApplyStart.emit({slide:e})},this.#o=e=>{this.#s.openPopup(e),this.sliceAnalysisInteractive&&this.#e.setSliceAnalysisInteractive(!0),this.arcgisSlideApplyComplete.emit({slide:e})},this.#d=e=>{this.sliceAnalysisInteractive&&this.#e.setSliceAnalysisInteractive(!0),this.arcgisSlideApplyCancel.emit({slide:e})},this.#c=e=>{let t=e.detail?.selectedSlide;if(!t)return;this.#n?.abort();let s=new AbortController;this.#n=s;let n=Date.now(),a=this.#a!==null&&n-this.#a<300;if(this.#a=n,this.#e.applySlide(t,a,s),a){this._showSlideList=!1;return}setTimeout(()=>{s.signal.aborted||(this._showSlideList=!1,this.#e.applySlide(t,!1,s))},300)},this.#r=()=>{this._showSlideList=!1},this._showSlideList=!1,this.autoDestroyDisabled=!1,this.view=this.#e.view,this.visualScale="m",this.keyboardNavigationEnabled=!1,this.slidePopupDisabled=!1,this.slideCaptionsDisabled=!1,this.slideLegendDisabled=this.#e.slideLegendDisabled,this.sliceAnalysisInteractive=!1,this.navigationHidden=!1,this.arcgisPopupFeatureNotFound=v(),this.arcgisPopupFeaturesRetrieved=v(),this.arcgisReady=v(),this.arcgisSlideApplyCancel=v(),this.arcgisSlideApplyComplete=v(),this.arcgisSlideApplyStart=v()}static{this.properties={_slotSizesController:16,_showSlideList:16,slideId:1,autoDestroyDisabled:5,view:0,visualScale:1,keyboardNavigationEnabled:5,slidePopupDisabled:5,slideCaptionsDisabled:5,slideLegendDisabled:5,sliceAnalysisInteractive:5,navigationHidden:5}}static{this.styles=Z}#e;#t;#i;#s;#n;#a;#l;#o;#d;#c;#r;#h;#p;get slideId(){return this.#e.slideId}set slideId(e){this.#e.slideId=e}async destroy(){await this.manager.destroy()}loaded(){this.#e.onApplySlideStart=this.#l,this.#e.onApplySlideComplete=this.#o,this.#e.onApplySlideCancel=this.#d,this.#m();let e=this;this.manager.onLifecycle(()=>[g(()=>this.sliceAnalysisInteractive,t=>{this.#e.setSliceAnalysisInteractive(t)},{initial:!0}),g(()=>e.referenceElement,t=>{this.#u(t)&&(this._slotSizesController=oe(this),this.#p=this.#g())},{once:!0,initial:!0}),{remove:()=>{document.removeEventListener("keydown",this.#i),this.#h?.removeEventListener("arcgisSlideListClose",this.#r),this.#t?.remove(),this.#p?.remove(),this.#n?.abort()}}])}#u(e){return e===void 0||typeof e=="string"?!1:"tagName"in e&&e.tagName==="ARCGIS-SCENE"}#g(){return g(()=>this._slotSizesController,e=>this.#v(e?.topLeft,e?.topRight,e?.bottomLeft,e?.bottomRight),{initial:!0})}#v(e,t,s,n){let a=this._direction==="ltr"?e?.width??0:t?.width??0,r=this._direction==="ltr"?t?.width??0:e?.width??0,p=Math.max(e?.height??0,t?.height??0),c=Math.max(s?.height??0,n?.height??0);a>0?this.el.style.setProperty("--arcgis-internal-presentation-padding-start",`calc(var(--calcite-space-lg) + ${a.toString()}px)`):this.el.style.setProperty("--arcgis-internal-presentation-padding-start","0px"),r>0?this.el.style.setProperty("--arcgis-internal-presentation-padding-end",`calc(var(--calcite-space-lg) + ${r.toString()}px)`):this.el.style.setProperty("--arcgis-internal-presentation-padding-end","0px");let h=a<=Math.max(p,c)&&r<=Math.max(p,c);this.el.style.setProperty("--arcgis-internal-presentation-cover-padding-top",h?"0":`${p}px`),this.el.style.setProperty("--arcgis-internal-presentation-cover-padding-bottom",h?"0":`${c}px`),this.el.style.setProperty("--arcgis-internal-presentation-cover-padding-start",h?`${a}px`:"0"),this.el.style.setProperty("--arcgis-internal-presentation-cover-padding-end",h?`${r}px`:"0")}#m(){this.#t=g(()=>this.keyboardNavigationEnabled,e=>{document.removeEventListener("keydown",this.#i),e&&document.addEventListener("keydown",this.#i)},{initial:!0})}render(){if(this.#e?.visibleSlides?.length===0)return u`<div></div>`;let e=this.#e.visibleSlides.find(a=>a.id===this.slideId),t=this.#y(),s=this.#S(e),n=this.#f();return u`<div class="root"><div class="presentation-content">${s}${n}</div>${t}</div>`}#y(){if(this.navigationHidden)return null;let e=this.#e.lastSlideSelected&&!this.#e.hasOnlyOneSlide,t=this.#w();return u`<div class="navigation-container"><div class="navigation-slide-list-container">${t}</div><div class="navigation"><div class="slide-list-action-container" id=${x}><calcite-action-bar expand-toggle-disabled layout=horizontal .scale=${this.visualScale==="l"?"m":"s"}><calcite-action .text=${this._messages.slideList??""} selection-appearance=highlight icon=list .scale=${this.visualScale==="l"?"m":"s"} .label=${this._messages.slideList} .active=${this._showSlideList} @click=${()=>this._showSlideList=!this._showSlideList}></calcite-action></calcite-action-bar><calcite-tooltip .referenceElement=${x} placement=bottom><span>${this._messages.slideList}</span></calcite-tooltip></div><calcite-button appearance=transparent icon-start=chevron-left icon-flip-rtl=start kind=neutral .scale=${this.visualScale} .disabled=${this.#e.firstSlideSelected||!this.#e.slideSelected} .label=${this._messages.previous} title=${this._messages.previous??w} @click=${()=>this.#e.navigateInPresentation(-1)}></calcite-button><div class="slide-counter-text">${this.#b()}</div><calcite-button appearance=transparent icon-start=${e?"reset":"chevron-right"} icon-flip-rtl=start kind=neutral .scale=${this.visualScale} .label=${e?this._messages.restart:this._messages.next} title=${(e?this._messages.restart:this._messages.next)??w} @click=${()=>this.#e.navigateInPresentation(1)}></calcite-button></div></div>`}#b(){let e=this.#e.slideIndex+1,t=this._messages?.slideNavAriaText?.replace("${index}",e.toString()).replace("${numberOfSlides}",this.#e.visibleSlides.length.toString());return this.#e.slideSelected?u`<p role=banner aria-label=${t??w} aria-live=polite><div class="slide-counter-text-element" data-testId=arcgis-map-presentation-slideIndex>${e}</div><div>/</div><p class="slide-counter-text-element" data-testId=arcgis-map-presentation-numberOfSlides>${this.#e.visibleSlides.length}</p></p>`:u`<p role=banner data-testId=arcgis-map-presentation-numberOfSlides>${this.#e.visibleSlides?.length} ${this._messages?.slides}</p>`}#S(e){return this.slideCaptionsDisabled?null:u`<arcgis-presentation-captions .slide=${e} .transitionActive=${this.#e.transitionActive}></arcgis-presentation-captions>`}#f(){return this.#e.showLegend?u`<calcite-panel data-testid=presentation-legend class="legend-container" .heading=${this._messages.legend} closable @calcitePanelClose=${()=>this.#e.showLegend=!1}><arcgis-legend class="legend" .view=${this.view} @arcgisReady=${e=>e.stopPropagation()}></arcgis-legend></calcite-panel>`:null}#w(){return this._showSlideList?u`<arcgis-presentation-slide-list .slides=${this.#e.visibleSlides} .slideId=${this.#e.slideId} .label=${this._messages.slideList} .visualScale=${this.visualScale} @arcgisSlideListItemSelected=${this.#c} @arcgisSlideListOutsideClick=${this.#r}></arcgis-presentation-slide-list>`:null}};D("arcgis-presentation",C);return C},"core/accessorSupport/decorators","core/Accessor","core/Collection","core/promiseUtils","core/reactiveUtils","Graphic","layers/Layer","graphic/CSVGraphicOrigin","graphic/GeoJSONGraphicOrigin","graphic/SceneGraphicOrigin","graphic/WFSGraphicOrigin","graphic/BuildingGraphicOrigin","graphic/FeatureGraphicOrigin","applications/SceneViewer/sceneViewerUtils",a,c,d,e,f)
|
|
2
|
+
import{a as x}from"./5L5UYV3H.js";import{c as b}from"./TN5C3MSL.js";import f from"./QZ5LJH35.js";import"./VJVKFKSG.js";import e from"./5TZGXGC2.js";import{a as B}from"./O3V63YCY.js";import d from"./YSWNUR6Q.js";import c from"./QRXQ5LVY.js";import{a as R,f as z}from"./PME66FRM.js";import"./WT5SGWE4.js";import a from"./D7FCBWGA.js";import"./QUZTFUWM.js";import"./2OJYLBNC.js";import"./XURWCCLX.js";import{P as E,T as w,W as D,a as F,b as u,x as v,z as L}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([{property:d,subclass:H},j,_,{ignoreAbortErrors:V},{watch:g,on:M,whenOnce:I},W,U,K,Q,q,J,X,Y,{fetchPopupFeaturesFromGraphics:k},,,,O])=>{var Z=F`:host{width:100%;height:100%;padding:var(--calcite-space-none);margin:var(--calcite-space-none);display:flex;--internal-attribution-height: 16px;--arcgis-internal-presentation-padding-start: unset;--arcgis-internal-presentation-padding-end: unset;--arcgis-internal-presentation-cover-padding-top: unset;--arcgis-internal-presentation-cover-padding-bottom: unset;--arcgis-internal-presentation-cover-padding-start: unset;--arcgis-internal-presentation-cover-padding-end: unset;--arcgis-presentation-navigation-z-index: unset}p{padding:0;margin:0}.root{display:flex;flex-direction:column;justify-content:space-between;width:100%;height:100%}.presentation-content{position:absolute;display:flex;width:100%;height:100%;justify-content:flex-end;padding-top:var(--calcite-space-lg);padding-inline-start:calc(var(--calcite-space-lg) + var(--arcgis-internal-presentation-padding-start));padding-inline-end:calc(var(--calcite-space-lg) + var(--arcgis-internal-presentation-padding-end))}.navigation-container{display:flex;flex-direction:column;margin-inline-start:var(--calcite-space-lg);margin-block:auto calc(var(--calcite-space-lg) + var(--arcgis-internal-attribution-space-top));width:fit-content;height:100%;z-index:var(--arcgis-presentation-navigation-z-index)}.navigation{width:fit-content;display:flex;align-items:center;background-color:var(--calcite-color-surface-2);box-shadow:var(--arcgis-internal-box-shadow);pointer-events:auto}.navigation-slide-list-container{position:relative;height:100%;min-height:0;margin-block-start:var(--calcite-space-lg)}.slide-list-action-container{border-inline-end:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.slide-counter-text{display:flex;align-items:center;justify-content:center;gap:var(--calcite-space-base);font-size:var(--calcite-font-size-md)}.slide-counter-text-element{box-sizing:border-box;max-width:28px;margin:0;padding:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-variant-numeric:tabular-nums;min-width:var(--calcite-spacing-md);text-align:center}.legend-container{pointer-events:all;box-shadow:var(--calcite-shadow-sm);max-width:300px;height:fit-content;max-height:calc(100vh - 136px);overflow:hidden auto}.legend{background-color:var(--calcite-color-surface-2)}`,ee=Object.defineProperty,te=Object.getOwnPropertyDescriptor,o=(i,e,t,s)=>{for(var n=s>1?void 0:s?te(e,t):e,a=i.length-1,r;a>=0;a--)(r=i[a])&&(n=(s?r(e,t,n):r(n))||n);return s&&n&&ee(e,t,n),n},l=class extends j{constructor(i){super(i),this.transitionActive=!1,this.showLegend=!1,this._slideLegendDisabled=!1,this.keyboardNavigationEnabled=!1,this._subscribeToSlideEvents=e=>{this._unsubscribeToSlideEvents(e),e.forEach(t=>{let s=t.on("apply-slide-start",()=>this._onApplySlideStart(t)),n=t.on("apply-slide-complete",()=>this._onApplySlideComplete(t)),a=t.on("apply-slide-cancel",()=>this._onApplySlideCancel(t));this.addHandles(s,t.id),this.addHandles(n,t.id),this.addHandles(a,t.id)})},this._unsubscribeToSlideEvents=e=>{e.forEach(t=>{this.hasHandles(t.id)&&this.removeHandles(t.id)})}}initialize(){this.addHandles(g(()=>this.view?.map,(i,e)=>{if(this.hasHandles("sceneLoaded")&&this.removeHandles("sceneLoaded"),e){let t=e.presentation?.slides;t&&t.length>0&&this._unsubscribeToSlideEvents(t)}i&&this.addHandles(g(()=>i.loaded,t=>{t&&(this.removeHandles("sceneLoaded"),this._startWatchSlides(),this._slideId&&this._applySlideById(this._slideId))},{initial:!0}),"sceneLoaded")},{initial:!0}))}destroy(){this._unsubscribeToSlideEvents(this.slides)}get slideId(){return this._slideId}set slideId(i){i===void 0||!this.view?.map?.loaded?this._slideId=i:this._applySlideById(i)}get visibleSlides(){return this.view?.map?.presentation?.slides?.filter(i=>!i.hidden)??new _}get slides(){return this.view?.map?.presentation?.slides??new _}get lastSlideSelected(){return this.getSlideIndexBySlideId(this.slideId)===this.visibleSlides.length-1}get firstSlideSelected(){return this.getSlideIndexBySlideId(this.slideId)===0}get slideSelected(){return this.getSlideIndexBySlideId(this.slideId)>-1}get hasOnlyOneSlide(){return this.visibleSlides.length===1}get slideIndex(){return this.getSlideIndexBySlideId(this.slideId)}get slideLegendDisabled(){return this._slideLegendDisabled}set slideLegendDisabled(i){this._slideLegendDisabled=i,i&&(this.showLegend=!1)}getSlideIndexBySlideId(i){let e=-1;return i&&(e=this.visibleSlides.findIndex(t=>t.id===i)),e}navigateInPresentation(i){let e=this.slideIndex+i,t=this._getSlideBySlideIndex(e);t??=this._getSlideBySlideIndex(0),t&&this.applySlide(t)}captureArrowKeysForNavigation(i,e){let t=["ArrowLeft","ArrowRight","PageUp","PageDown"];if(document.activeElement?.nodeName.toLowerCase()==="arcgis-scene"||!t.includes(i.code))return;let s=e==="rtl"?"ArrowRight":"ArrowLeft",n=i.code===s||i.code==="PageUp"?-1:1;this.navigateInPresentation(n)}async setSliceAnalysisInteractive(i){if(!this.view?.analyses?.length)return;let e=this.view.analyses.find(s=>s.type==="slice"&&s.origin?.type==="web-scene");if(!e)return;let t=await this.view.whenAnalysisView(e);t&&(t.interactive=i)}getSlideBySlideId(i){return this.visibleSlides.find(e=>e.id===i)}async applySlide(i,e,t){if(this.view){let s=t?{signal:t?.signal}:{};await V(i.applyTo(this.view,{...s,animate:!e}))}}_getSlideBySlideIndex(i){if(i!=null&&i>=0&&i<this.visibleSlides.length)return this.visibleSlides.getItemAt(i)}async _applySlideById(i){let e=i?this.getSlideBySlideId(i):void 0;e&&await this.applySlide(e)}_startWatchSlides(){this._subscribeToSlideEvents(this.slides),this.addHandles(M(()=>this.slides,"change",i=>{this._subscribeToSlideEvents(new _(i.added)),this._unsubscribeToSlideEvents(new _(i.removed))},{onListenerAdd:this._subscribeToSlideEvents,onListenerRemove:this._unsubscribeToSlideEvents}))}_onApplySlideStart(i){this._slideId=i.id,this.transitionActive=!0,this.showLegend=!1,this.onApplySlideStart?.(i)}_onApplySlideComplete(i){this.transitionActive=!1,this._updateLegendDisplay(i),this.onApplySlideComplete?.(i)}_onApplySlideCancel(i){this.transitionActive=!1,this._updateLegendDisplay(i),this.onApplySlideCancel?.(i)}_updateLegendDisplay(i){this.showLegend=!this._slideLegendDisabled&&!!i.elements.legendInfo?.visible}};o([d()],l.prototype,"_slideId",2);o([d()],l.prototype,"view",2);o([d()],l.prototype,"slideId",1);o([d()],l.prototype,"transitionActive",2);o([d()],l.prototype,"showLegend",2);o([d()],l.prototype,"_slideLegendDisabled",2);o([d()],l.prototype,"keyboardNavigationEnabled",2);o([d()],l.prototype,"visibleSlides",1);o([d()],l.prototype,"slides",1);o([d()],l.prototype,"lastSlideSelected",1);o([d()],l.prototype,"firstSlideSelected",1);o([d()],l.prototype,"slideSelected",1);o([d()],l.prototype,"hasOnlyOneSlide",1);o([d()],l.prototype,"slideLegendDisabled",1);o([d()],l.prototype,"onApplySlideStart",2);o([d()],l.prototype,"onApplySlideComplete",2);o([d()],l.prototype,"onApplySlideCancel",2);o([d()],l.prototype,"getSlideIndexBySlideId",1);l=o([H("components.presentation.PresentationViewModel")],l);var $=class extends L{constructor(e){super(e)}hostLoaded(){this.component.manager.onLifecycle(()=>{let e=this.component;I(()=>e.referenceElement).then(t=>{this._isArcgisScene(t)&&(this._sceneRef=t)})})}openPopup(e){this.component.view&&this.component.slideId===e.id&&e.elements.popupInfo!=null&&this._preparePopupFeature(this.component.view,e.elements.popupInfo).then(({success:t,features:s,popupInfo:n})=>{this.component.slideId===e.id&&(t?this._handlePopupFeatureFound(e,s,n):this.component.arcgisPopupFeatureNotFound.emit({slide:e}))})}_isArcgisScene(e){return e===void 0||typeof e=="string"?!1:"tagName"in e&&e.tagName==="ARCGIS-SCENE"}closePopup(e){(!this.component.slidePopupDisabled||e)&&this._sceneRef?.closePopup()}async _handlePopupFeatureFound(e,t,s){let n=s?.location??void 0;this.component.arcgisPopupFeaturesRetrieved.emit({slide:e,features:t,location:n}),this.component.slidePopupDisabled||await this._sceneRef?.openPopup({features:t,location:n})}async _preparePopupFeature(e,t){let s=[];if(!t.features?.length||t.features.length===0)return{success:!1,features:s};let n=t.features?.getItemAt(t.selectedFeatureIndex)?.layerReference;if(n?.layerId==null)return{success:!1,features:s};let{layer:a,sublayer:r}=this._getLayersFromView(e,n.layerId,n?.sublayerId);if(!a)return{success:!1,features:s};let p=r??a;if(!p||!this._layerTypeSupportsCapturePopup(p))return{success:!1,features:s};if(s=await this._fetchFeaturesFromQueryable(e,t,a,r,p),s&&this._featureHasBeenFilledWithAttributes(s)){let c=s[0];return this._setFallbackPopupTemplate(c,r,a),this._setFallbackGeometry(c,t?.location),{success:!0,features:s,popupInfo:t}}return{success:!1,features:s}}_getLayersFromView(e,t,s){let n=e.map?.findLayerById(t)??void 0,a=this._getBuildingSceneLayerSublayer(n,s);return{layer:n,sublayer:a}}_getBuildingSceneLayerSublayer(e,t){let s;return e&&this._isLayer(e)&&this._isBuildingSceneLayer(e)&&t!=null&&(s=e.allSublayers.find(n=>n.id===t&&n.type==="building-component")),s}_featureHasBeenFilledWithAttributes(e){return e&&e.length>0&&e[0].attributes&&Object.entries(e[0].attributes)?.length>1}async _fetchFeaturesFromQueryable(e,t,s,n,a){let r=t.features?.getItemAt(t.selectedFeatureIndex);if(r?.id==null)return await Promise.resolve([]);let p=await e.whenLayerView(s);await I(()=>!p.updating);let c=this._tryGetBuildingComponentSublayerView(s,n,p)??p;await I(()=>!c.updating);let h=this._createFeatureGraphic(s,n,a,r.id),y=await k(c,[h]);return this._featureHasBeenFilledWithAttributes(y)||(await I(()=>!e.updating),y=await k(c,[h])),y}_tryGetBuildingComponentSublayerView(e,t,s){let n;return this._isLayer(e)&&this._isBuildingSceneLayer(e)&&t!=null&&(n=s.sublayerViews.find(a=>a.sublayer.id===t.id)),n}_setFallbackPopupTemplate(e,t,s){e.popupTemplate==null&&(e.popupTemplate=t?.popupTemplate?t.popupTemplate:s.popupTemplate)}_setFallbackGeometry(e,t){e.geometry==null&&t&&(e.geometry=t.clone())}_createFeatureGraphic(e,t,s,n){let a=this._getGlobalIdFieldNameFromLayer(s),r=n.type==="global-id"&&a?a:s.objectIdField,p=this._getGraphicOrigin(e,t),c=new W({attributes:{},layer:e,origin:p});return c.attributes[r]=n.value,c}_getGraphicOrigin(e,t){switch(e.type){case"csv":return new K(e);case"feature":return new Y(e);case"geojson":return new Q(e);case"scene":return new q(e);case"wfs":return new J(e);case"building-scene":return t?new X(t):void 0;default:return}}_layerTypeSupportsCapturePopup(e){return e!=null&&["csv","feature","geojson","wfs","scene","building-component"].includes(e.type)}_isLayer(e){return!!e&&e instanceof U}_isBuildingSceneLayer(e){return e?.type==="building-scene"}_getGlobalIdFieldNameFromLayer(e){return e.fields?.find(t=>t.type==="global-id")?.name}},ie=i=>new $(i),m=Object.freeze({width:0,height:0}),f=new WeakMap,S=()=>({topCenter:{...m},topLeft:{...m},topRight:{...m},bottomCenter:{...m},bottomLeft:{...m},bottomRight:{...m}}),T=i=>({topCenter:{...i.topCenter},topLeft:{...i.topLeft},topRight:{...i.topRight},bottomCenter:{...i.bottomCenter},bottomLeft:{...i.bottomLeft},bottomRight:{...i.bottomRight}}),N=i=>{let e=f.get(i);return e||(e={observedGroups:new Map,observedSizes:S(),subscribers:new Set},f.set(i,e)),e},se=i=>{let e=i?.topCenter.value,t=i?.topLeft.value,s=i?.topRight.value,n=i?.bottomCenter.value,a=i?.bottomLeft.value,r=i?.bottomRight.value;return e&&t&&s&&n&&a&&r?{topCenter:e,topLeft:t,topRight:s,bottomCenter:n,bottomLeft:a,bottomRight:r}:null},ne=(i,e)=>b.every(t=>i.get(t)===e[t]),ae=i=>{let e=T(i.observedSizes);i.subscribers.forEach(t=>t(e))},re=(i,e)=>{let t=f.get(i);if(!t)return;let s=!1;e.forEach(n=>{let a=b.find(y=>t.observedGroups.get(y)===n.target);if(!a)return;let{width:r,height:p}=n.contentRect,c={width:r,height:p},h=t.observedSizes[a];h.width===c.width&&h.height===c.height||(t.observedSizes[a]=c,s=!0)}),s&&ae(t)},A=(i,e)=>{let t=N(i);t.resizeObserver||(t.resizeObserver=new ResizeObserver(n=>{re(i,n)}));let s=se(e);if(!s){t.observedGroups.size>0&&(t.resizeObserver.disconnect(),t.observedGroups.clear());return}ne(t.observedGroups,s)||(t.resizeObserver.disconnect(),t.observedGroups.clear(),b.forEach(n=>{let a=s[n];t.observedGroups.set(n,a),t.resizeObserver?.observe(a)}))},le=(i,e)=>{let t=N(i);return t.subscribers.add(e),e(T(t.observedSizes)),()=>{let s=f.get(i);s&&(s.subscribers.delete(e),s.subscribers.size===0&&(s.resizeObserver?.disconnect(),s.observedGroups.clear(),f.delete(i)))}},P=class extends L{#e;#t;#i;constructor(e){super(e),this.exports=S()}hostDisconnected(){this.#i?.(),this.#i=void 0,this.#t=void 0,this.#e=void 0,this.exports=S()}hostLifecycle(){return[g(()=>this.#s(),e=>{if(this.#t!==e){if(this.#i?.(),this.#i=void 0,this.#t=e,this.#e=e?.slotGroupRefs,!e){this.exports=S();return}this.#i=le(e,t=>{this.#n(t)||(this.exports=t)}),A(e,this.#e)}},{sync:!0,initial:!0}),g(()=>this.#s()?.slotGroupRefs,e=>{this.#e=e,this.#t&&e&&A(this.#t,e)},{sync:!0,initial:!0})]}#s(){let{referenceElement:e}=this.component;return e&&typeof e!="string"?e:void 0}hostUpdated(){!this.#t||!this.#e||A(this.#t,this.#e)}#n(e){let t=this.exports??S();return b.every(s=>{let n=t[s],a=e[s];return n.width===a.width&&n.height===a.height})}},oe=R(P),de=O(l),C=class extends E{constructor(){super(...arguments),this._messages=B(),this._direction=z(),this.#e=de(this),this.#i=e=>{this.#e.captureArrowKeysForNavigation(e,this._direction)},this.#s=ie(this),this.#a=null,this.#l=e=>{this.#s.closePopup(),this.arcgisSlideApplyStart.emit({slide:e})},this.#o=e=>{this.#s.openPopup(e),this.sliceAnalysisInteractive&&this.#e.setSliceAnalysisInteractive(!0),this.arcgisSlideApplyComplete.emit({slide:e})},this.#d=e=>{this.sliceAnalysisInteractive&&this.#e.setSliceAnalysisInteractive(!0),this.arcgisSlideApplyCancel.emit({slide:e})},this.#c=e=>{let t=e.detail?.selectedSlide;if(!t)return;this.#n?.abort();let s=new AbortController;this.#n=s;let n=Date.now(),a=this.#a!==null&&n-this.#a<300;if(this.#a=n,this.#e.applySlide(t,a,s),a){this._showSlideList=!1;return}setTimeout(()=>{s.signal.aborted||(this._showSlideList=!1,this.#e.applySlide(t,!1,s))},300)},this.#r=()=>{this._showSlideList=!1},this._showSlideList=!1,this.autoDestroyDisabled=!1,this.view=this.#e.view,this.visualScale="m",this.keyboardNavigationEnabled=!1,this.slidePopupDisabled=!1,this.slideCaptionsDisabled=!1,this.slideLegendDisabled=this.#e.slideLegendDisabled,this.sliceAnalysisInteractive=!1,this.navigationHidden=!1,this.arcgisPopupFeatureNotFound=v(),this.arcgisPopupFeaturesRetrieved=v(),this.arcgisReady=v(),this.arcgisSlideApplyCancel=v(),this.arcgisSlideApplyComplete=v(),this.arcgisSlideApplyStart=v()}static{this.properties={_slotSizesController:16,_showSlideList:16,slideId:1,autoDestroyDisabled:5,view:0,visualScale:1,keyboardNavigationEnabled:5,slidePopupDisabled:5,slideCaptionsDisabled:5,slideLegendDisabled:5,sliceAnalysisInteractive:5,navigationHidden:5}}static{this.styles=Z}#e;#t;#i;#s;#n;#a;#l;#o;#d;#c;#r;#h;#p;get slideId(){return this.#e.slideId}set slideId(e){this.#e.slideId=e}async destroy(){await this.manager.destroy()}loaded(){this.#e.onApplySlideStart=this.#l,this.#e.onApplySlideComplete=this.#o,this.#e.onApplySlideCancel=this.#d,this.#m();let e=this;this.manager.onLifecycle(()=>[g(()=>this.sliceAnalysisInteractive,t=>{this.#e.setSliceAnalysisInteractive(t)},{initial:!0}),g(()=>e.referenceElement,t=>{this.#u(t)&&(this._slotSizesController=oe(this),this.#p=this.#g())},{once:!0,initial:!0}),{remove:()=>{document.removeEventListener("keydown",this.#i),this.#h?.removeEventListener("arcgisSlideListClose",this.#r),this.#t?.remove(),this.#p?.remove(),this.#n?.abort()}}])}#u(e){return e===void 0||typeof e=="string"?!1:"tagName"in e&&e.tagName==="ARCGIS-SCENE"}#g(){return g(()=>this._slotSizesController,e=>this.#v(e?.topLeft,e?.topRight,e?.bottomLeft,e?.bottomRight),{initial:!0})}#v(e,t,s,n){let a=this._direction==="ltr"?e?.width??0:t?.width??0,r=this._direction==="ltr"?t?.width??0:e?.width??0,p=Math.max(e?.height??0,t?.height??0),c=Math.max(s?.height??0,n?.height??0);a>0?this.el.style.setProperty("--arcgis-internal-presentation-padding-start",`calc(var(--calcite-space-lg) + ${a.toString()}px)`):this.el.style.setProperty("--arcgis-internal-presentation-padding-start","0px"),r>0?this.el.style.setProperty("--arcgis-internal-presentation-padding-end",`calc(var(--calcite-space-lg) + ${r.toString()}px)`):this.el.style.setProperty("--arcgis-internal-presentation-padding-end","0px");let h=a<=Math.max(p,c)&&r<=Math.max(p,c);this.el.style.setProperty("--arcgis-internal-presentation-cover-padding-top",h?"0":`${p}px`),this.el.style.setProperty("--arcgis-internal-presentation-cover-padding-bottom",h?"0":`${c}px`),this.el.style.setProperty("--arcgis-internal-presentation-cover-padding-start",h?`${a}px`:"0"),this.el.style.setProperty("--arcgis-internal-presentation-cover-padding-end",h?`${r}px`:"0")}#m(){this.#t=g(()=>this.keyboardNavigationEnabled,e=>{document.removeEventListener("keydown",this.#i),e&&document.addEventListener("keydown",this.#i)},{initial:!0})}render(){if(this.#e?.visibleSlides?.length===0)return u`<div></div>`;let e=this.#e.visibleSlides.find(a=>a.id===this.slideId),t=this.#y(),s=this.#S(e),n=this.#f();return u`<div class="root"><div class="presentation-content">${s}${n}</div>${t}</div>`}#y(){if(this.navigationHidden)return null;let e=this.#e.lastSlideSelected&&!this.#e.hasOnlyOneSlide,t=this.#w();return u`<div class="navigation-container"><div class="navigation-slide-list-container">${t}</div><div class="navigation"><div class="slide-list-action-container" id=${x}><calcite-action-bar expand-toggle-disabled layout=horizontal .scale=${this.visualScale==="l"?"m":"s"}><calcite-action .text=${this._messages.slideList??""} selection-appearance=highlight icon=list .scale=${this.visualScale==="l"?"m":"s"} .label=${this._messages.slideList} .active=${this._showSlideList} @click=${()=>this._showSlideList=!this._showSlideList}></calcite-action></calcite-action-bar><calcite-tooltip .referenceElement=${x} placement=bottom><span>${this._messages.slideList}</span></calcite-tooltip></div><calcite-button appearance=transparent icon-start=chevron-left icon-flip-rtl=start kind=neutral .scale=${this.visualScale} .disabled=${this.#e.firstSlideSelected||!this.#e.slideSelected} .label=${this._messages.previous} title=${this._messages.previous??w} @click=${()=>this.#e.navigateInPresentation(-1)}></calcite-button><div class="slide-counter-text">${this.#b()}</div><calcite-button appearance=transparent icon-start=${e?"reset":"chevron-right"} icon-flip-rtl=start kind=neutral .scale=${this.visualScale} .label=${e?this._messages.restart:this._messages.next} title=${(e?this._messages.restart:this._messages.next)??w} @click=${()=>this.#e.navigateInPresentation(1)}></calcite-button></div></div>`}#b(){let e=this.#e.slideIndex+1,t=this._messages?.slideNavAriaText?.replace("${index}",e.toString()).replace("${numberOfSlides}",this.#e.visibleSlides.length.toString());return this.#e.slideSelected?u`<p role=banner aria-label=${t??w} aria-live=polite><div class="slide-counter-text-element" data-testId=arcgis-map-presentation-slideIndex>${e}</div><div>/</div><p class="slide-counter-text-element" data-testId=arcgis-map-presentation-numberOfSlides>${this.#e.visibleSlides.length}</p></p>`:u`<p role=banner data-testId=arcgis-map-presentation-numberOfSlides>${this.#e.visibleSlides?.length} ${this._messages?.slides}</p>`}#S(e){return this.slideCaptionsDisabled?null:u`<arcgis-presentation-captions .slide=${e} .transitionActive=${this.#e.transitionActive}></arcgis-presentation-captions>`}#f(){return this.#e.showLegend?u`<calcite-panel data-testid=presentation-legend class="legend-container" .heading=${this._messages.legend} closable @calcitePanelClose=${()=>this.#e.showLegend=!1}><arcgis-legend class="legend" .view=${this.view} @arcgisReady=${e=>e.stopPropagation()}></arcgis-legend></calcite-panel>`:null}#w(){return this._showSlideList?u`<arcgis-presentation-slide-list .slides=${this.#e.visibleSlides} .slideId=${this.#e.slideId} .label=${this._messages.slideList} .visualScale=${this.visualScale} @arcgisSlideListItemSelected=${this.#c} @arcgisSlideListOutsideClick=${this.#r}></arcgis-presentation-slide-list>`:null}};D("arcgis-presentation",C);return C},"core/accessorSupport/decorators","core/Accessor","core/Collection","core/promiseUtils","core/reactiveUtils","Graphic","layers/Layer","graphic/CSVGraphicOrigin","graphic/GeoJSONGraphicOrigin","graphic/SceneGraphicOrigin","graphic/WFSGraphicOrigin","graphic/BuildingGraphicOrigin","graphic/FeatureGraphicOrigin","applications/SceneViewer/sceneViewerUtils",a,c,d,e,f)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import d from"./
|
|
2
|
+
import d from"./IPGN7TJM.js";import{a as c}from"./SSNCB7LI.js";import b from"./TMJX7DFH.js";import{a as w}from"./O3V63YCY.js";import"./PME66FRM.js";import"./WT5SGWE4.js";import"./QUZTFUWM.js";import"./2OJYLBNC.js";import"./XURWCCLX.js";import{R as g,U as h,W as y,a as f,b as a}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([{stripHTML:_},{formatNumber:F,substitute:b},{h:u},$])=>{var v=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",m=class extends ${constructor(){super(...arguments),this._messagesFeature=w({name:"feature",blocking:!0}),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,flowItems:0,useFeatureNextFlowItem:5,flowType:1,heading:1,map:0,messageOverrides:0,referenceElement:1,spatialReference:0,timeZone:1,view:0}}static{this.styles=v}async destroy(){await this.manager.destroy()}_featureViewModelMatch(e,t){let i=e.graphic,s=i?.layer,o=null;u(s)&&s.parent?o=s.parent.globalIdField??null:s&&"globalIdField"in s&&(o=s.globalIdField);let r=o?i?.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 p=d?l?.getAttribute(d):null;return!!(r&&p&&r===p)}_findFlowItem(e){return this.flowItems?.findIndex(t=>{if(t.flowType!=="feature-association")return!1;let i=t.viewModel;return this._featureViewModelMatch(i,e)})??-1}_formatPercentAlong(e){let{percentAlong:t}=e;return t==null?"":F(t,{style:"percent",maximumFractionDigits:2})}async _handleFeatureClick(e,t,i){let{flowItems:s}=this;if(e){s?.destroyAll();return}if(t<0||!s){await this._selectAssociation(i);return}for(;s.length>t+1;)s.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 i=t.parentFeatureViewModel;return this._featureViewModelMatch(i,e)}async _selectAssociation(e){let{flowItems:t}=this;if(!t)return;let i=this.useFeatureNextFlowItem?h(c(this.parentFeatureViewModel,a`<arcgis-feature-next .autoDestroyDisabled=${this.autoDestroyDisabled} .flowItems=${t} .flowType=${"feature-association"} .graphic=${e.graphic} .map=${this.map} .messageOverrides=${this.messageOverrides} .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} .messageOverrides=${this.messageOverrides} .referenceElement=${this.referenceElement} show-utility-network-content .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature>`));t.push(i)}_showAllAssociations(e){let{flowItems:t,description:i}=this;if(!t||!e)return;this.showAllEnabled=!0;let s=e?.title??"";t.push(h(a`<arcgis-feature-utility-network-association-list .autoDestroyDisabled=${this.autoDestroyDisabled} .associationViewModels=${this.associationViewModels} .description=${i} .flowItems=${t} .flowType=${this.flowType} .heading=${s} .messageOverrides=${this.messageOverrides} .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,i=this.selectedLayer?.title??this._messagesFeature.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=${i}>${this.showAllEnabled&&this.selectedLayer?a`${this._renderFeatureCountWarning()}${this._renderAssociatedFeatureListPage()}${this._renderFeatureObserver()}`:Array.from(e.keys(),s=>this._renderTypeList(s))}</calcite-list>`}</div>`}_renderAssociatedFeature(e){let{featureViewModel:t,title:i}=e,s=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(s?"list-item--hidden":"")} .description=${_(e.terminalName??"")} .label=${_(i)} @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,i=`associated-feature-${e.association.globalId}`;return this._isConnectivityAssociation(e.association)?a`<calcite-tooltip overlay-positioning=fixed .referenceElement=${t.get(i)}>${this.getConnectivityTooltip(e.association.associationType)}</calcite-tooltip>`:null}_renderTypeList(e){let{displayCount:t}=this,i=this.associationViewModels.get(e),s=i.slice(0,t),o=s.length<i.length,r=b(this._messagesFeature.numberRecords??"",{number:i.length.toString()}),l=this._messagesFeature.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(s),this._renderAssociatedFeatureList(s)]}${o?c("show-all-item",a`<calcite-list-item .description=${r} .label=${l} @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",m);return m},"applications/Components/stringUtils","intl",b,d)
|