@arcgis/map-components 5.2.0-next.126 → 5.2.0-next.128
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/2OMNJPFV.js +2 -0
- 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/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/{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/7IB5M3LS.js +2 -0
- 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/{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/FIZLWHMR.js +2 -0
- package/dist/cdn/{2CHRFLK4.js → FLFOMU5V.js} +1 -1
- package/dist/cdn/FX2T6AOI.js +2 -0
- package/dist/cdn/G5YUYYQA.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/{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/{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/Q4NUPFEB.js +2 -0
- 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/QRK6FDLW.js +2 -0
- 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/{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/SNNLU3TM.js +2 -0
- 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/{DYDFKP44.js → Y3SFKTBJ.js} +1 -1
- package/dist/cdn/{EHXNLGTZ.js → Y4AWD5AV.js} +1 -1
- package/dist/cdn/{44NU63UA.js → Y4Z4GN66.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/{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-area-measurement-3d/customElement.js +1 -1
- 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-expand/customElement.js +12 -12
- 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,214 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import { html as b } from "lit";
|
|
3
|
+
import { initializeProjection as w } from "@arcgis/core/applications/Components/featureUtils.js";
|
|
4
|
+
import { when as g, watch as s } from "@arcgis/core/core/reactiveUtils.js";
|
|
5
|
+
import m from "@arcgis/core/geometry/Point.js";
|
|
6
|
+
import P from "@arcgis/core/Graphic.js";
|
|
7
|
+
import { GenericController as v, useDirection as y, makeController as _, makeGenericController as f } from "@arcgis/lumina/controllers";
|
|
8
|
+
import { getSlotAssignedElements as S } from "@arcgis/toolkit/dom/slots";
|
|
9
|
+
import { whenOrAbort as C } from "@arcgis/toolkit/promise";
|
|
10
|
+
import { createRef as R } from "lit/directives/ref.js";
|
|
11
|
+
import { c as A, S as L } from "./slots.js";
|
|
12
|
+
import { observeAncestorsMutation as F, unsafeGetCalciteModeName as G } from "@arcgis/toolkit/dom";
|
|
13
|
+
import { createEvent as d } from "@arcgis/lumina";
|
|
14
|
+
async function* O(n, o) {
|
|
15
|
+
for (const e of n) {
|
|
16
|
+
const t = await C(e, o).catch(() => {
|
|
17
|
+
});
|
|
18
|
+
if (o.aborted)
|
|
19
|
+
return;
|
|
20
|
+
yield* Array.isArray(t) ? t.filter((i) => i instanceof P) : [];
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
async function* M(n, o, e, t) {
|
|
24
|
+
let i;
|
|
25
|
+
e instanceof m ? (await w(e.spatialReference, n.spatialReference), i = n.toScreen(e)) : i = e;
|
|
26
|
+
const p = i ? n.fetchPopupFeatures(i, {
|
|
27
|
+
...t,
|
|
28
|
+
defaultPopupTemplateEnabled: o.defaultPopupTemplateEnabled
|
|
29
|
+
}) : void 0;
|
|
30
|
+
p && (yield* p);
|
|
31
|
+
}
|
|
32
|
+
function u(n, o) {
|
|
33
|
+
if (o instanceof m)
|
|
34
|
+
return o;
|
|
35
|
+
const e = "width" in o ? { x: o.x + o.width / 2, y: o.y + o.height / 2 } : o;
|
|
36
|
+
return n.toMap(e) ?? void 0;
|
|
37
|
+
}
|
|
38
|
+
function V(n, o, e, t) {
|
|
39
|
+
const i = {};
|
|
40
|
+
return {
|
|
41
|
+
diagnostics: i,
|
|
42
|
+
featureStream: M(n, o, e, {
|
|
43
|
+
diagnostics: i,
|
|
44
|
+
signal: t
|
|
45
|
+
}),
|
|
46
|
+
location: u(n, e)
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
class B extends v {
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region Lifecycle
|
|
52
|
+
constructor(o) {
|
|
53
|
+
super(o), this.direction = y(), this.popupRef = R(), this._popupAbortController = null, this.slotGroupRefs = A(), this.attributionHeight = 0, this._uiContainer = null, this.component.listenOn(globalThis, "unhandledrejection", (e) => {
|
|
54
|
+
const t = e.reason;
|
|
55
|
+
if (t?.name === "webgl:required") {
|
|
56
|
+
const { name: i } = t;
|
|
57
|
+
this.webGLError = { name: i };
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region Private Methods
|
|
63
|
+
hostLifecycle() {
|
|
64
|
+
return [
|
|
65
|
+
g(() => this.component.view.ready, () => {
|
|
66
|
+
this._assignDefaultPopup();
|
|
67
|
+
}),
|
|
68
|
+
s(() => this.component.view.popup?.visible, (e, t) => {
|
|
69
|
+
(e || t) && this._cancelPopupOperation(), e && this.popupElement?.open && (this.popupElement.open = !1);
|
|
70
|
+
}, { initial: !0 }),
|
|
71
|
+
s(() => this.component.popupElement?.open, (e, t) => {
|
|
72
|
+
t && !e && this._cancelPopupOperation();
|
|
73
|
+
}, { initial: !0 }),
|
|
74
|
+
this.component.view.on("focus-region-select", (e) => this._handleFocusRegionSelect(e)),
|
|
75
|
+
this.component.view.on(
|
|
76
|
+
"click",
|
|
77
|
+
[],
|
|
78
|
+
(e) => {
|
|
79
|
+
const t = e.native;
|
|
80
|
+
e.button !== 0 || t?.ctrlKey || t?.metaKey || this._handleOpenPopup(e);
|
|
81
|
+
},
|
|
82
|
+
// @ts-ignore: Core supports a click listener priority argument, needed for Popup click
|
|
83
|
+
-2
|
|
84
|
+
)
|
|
85
|
+
];
|
|
86
|
+
}
|
|
87
|
+
hostDestroy() {
|
|
88
|
+
this._cancelPopupOperation();
|
|
89
|
+
}
|
|
90
|
+
async openPopup(o = {}) {
|
|
91
|
+
this._assignDefaultPopup(), this.closePopup();
|
|
92
|
+
const e = new AbortController();
|
|
93
|
+
if (this._popupAbortController = e, this.popupElement) {
|
|
94
|
+
if (await this.popupElement.componentOnReady(), e.signal.aborted)
|
|
95
|
+
return;
|
|
96
|
+
const { fetchFeatures: t, shouldFocus: i, title: p, featureStream: l, promises: h, location: r, ...E } = o, a = r ? u(this.component.view, r) : void 0, c = r ?? this.popupElement.location;
|
|
97
|
+
Object.assign(this.popupElement, E), p !== void 0 && (this.popupElement.heading = p), l ? await this.popupElement.openFeatureStream({ featureStream: l, location: a }) : h?.length ? await this.popupElement.openFeatureStream({
|
|
98
|
+
featureStream: O(h, e.signal),
|
|
99
|
+
location: a
|
|
100
|
+
}) : t && c ? await this.popupElement.openFeatureStream(V(this.component.view, this.popupElement, c, e.signal)) : (this.popupElement.featureStream = null, r !== void 0 && (this.popupElement.location = a), this.popupElement.open = !0), i && !e.signal.aborted && await this.popupElement.setFocus();
|
|
101
|
+
} else {
|
|
102
|
+
const { location: t, ...i } = o;
|
|
103
|
+
await this.component.view.openPopup({
|
|
104
|
+
...i,
|
|
105
|
+
location: t ? u(this.component.view, t) : void 0
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
closePopup() {
|
|
110
|
+
this._cancelPopupOperation(), this.popupElement && (this.popupElement.open = !1, this.popupElement.clear()), this.component.view.closePopup();
|
|
111
|
+
}
|
|
112
|
+
_cancelPopupOperation() {
|
|
113
|
+
this._popupAbortController?.abort(), this._popupAbortController = null;
|
|
114
|
+
}
|
|
115
|
+
_assignDefaultPopup() {
|
|
116
|
+
this.popupRef.value && !this.popupElement && (this.popupElement = this.popupRef.value, this.popupElement.referenceElement = this.component.el, this.popupElement.view = this.component.view);
|
|
117
|
+
}
|
|
118
|
+
handleAttributionHeightChange(o) {
|
|
119
|
+
if (!(this.attributionHeight === o || !this.component.el.shadowRoot)) {
|
|
120
|
+
if (this.attributionHeight = o, !this._uiContainer) {
|
|
121
|
+
const e = this.component.el.shadowRoot.querySelector(".arcgis-map-container-ui");
|
|
122
|
+
this._uiContainer = e;
|
|
123
|
+
}
|
|
124
|
+
this._uiContainer?.style.setProperty("--arcgis-internal-attribution-space-top", `${this.attributionHeight}px`);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
_maybeDisableViewPopup() {
|
|
128
|
+
this.component.view && (this.component.popupComponentEnabled || this.popupElement) && (this.previousViewPopupEnabled = this.component.view.popupEnabled, this.component.view.popupEnabled = !1);
|
|
129
|
+
}
|
|
130
|
+
_maybeResetViewPopup() {
|
|
131
|
+
this.component.view && this.previousViewPopupEnabled !== void 0 && (this.component.view.popupEnabled = this.previousViewPopupEnabled, this.previousViewPopupEnabled = void 0);
|
|
132
|
+
}
|
|
133
|
+
async _handleOpenPopup(o) {
|
|
134
|
+
if (this._assignDefaultPopup(), !this.component.popupDisabled) {
|
|
135
|
+
this._maybeDisableViewPopup();
|
|
136
|
+
try {
|
|
137
|
+
this.popupElement && await this.openPopup({
|
|
138
|
+
fetchFeatures: !0,
|
|
139
|
+
location: { x: o.x, y: o.y }
|
|
140
|
+
});
|
|
141
|
+
} finally {
|
|
142
|
+
this._maybeResetViewPopup();
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
_handleFocusRegionSelect(o) {
|
|
147
|
+
queueMicrotask(() => {
|
|
148
|
+
const { focusRegion: e } = this.component.view;
|
|
149
|
+
!o.defaultPrevented && e && this.openPopup({ fetchFeatures: !0, location: e });
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
_handlePopupSlotChange(o) {
|
|
153
|
+
const e = S(o.target, "arcgis-popup");
|
|
154
|
+
!this.popupElement && e.length ? this.popupElement = e[0] : e.length || (this.popupElement = void 0);
|
|
155
|
+
}
|
|
156
|
+
_webGLErrorAlert() {
|
|
157
|
+
return this.webGLError ? b`<arcgis-webgl-error .errorName=${this.webGLError.name}></arcgis-webgl-error>` : null;
|
|
158
|
+
}
|
|
159
|
+
//#endregion
|
|
160
|
+
//#region Rendering
|
|
161
|
+
render() {
|
|
162
|
+
return L({ direction: this.direction, popupComponentEnabled: this.component.popupComponentEnabled, slotGroupRefs: this.slotGroupRefs, handlePopupSlotChange: (o) => this._handlePopupSlotChange(o), webGLErrorElement: this._webGLErrorAlert(), popupElement: this.popupRef });
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
function I(n) {
|
|
166
|
+
_((o, e) => {
|
|
167
|
+
const t = () => {
|
|
168
|
+
if (n.attributionMode !== "auto")
|
|
169
|
+
return;
|
|
170
|
+
const i = G(n.el);
|
|
171
|
+
n.view.attributionMode !== i && (n.view.attributionMode = i);
|
|
172
|
+
};
|
|
173
|
+
e.onLifecycle(() => (t(), F(n.el, ["class"], t))), e.onUpdate((i) => {
|
|
174
|
+
i.has("attributionMode") && n.attributionMode === "auto" && t();
|
|
175
|
+
});
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
const J = f((n, o) => {
|
|
179
|
+
const e = d();
|
|
180
|
+
return o.onLifecycle(
|
|
181
|
+
() => s(
|
|
182
|
+
() => {
|
|
183
|
+
const { map: t } = n;
|
|
184
|
+
if (!t || t.destroyed)
|
|
185
|
+
return [];
|
|
186
|
+
const i = [];
|
|
187
|
+
return t.loadError && i.push(t), t.basemap?.loadError && i.push(t.basemap), t.ground.loadError && i.push(t.ground), [...t.allLayers, ...t.allTables].forEach((p) => {
|
|
188
|
+
p.loadError && i.push(p);
|
|
189
|
+
}), i;
|
|
190
|
+
},
|
|
191
|
+
(t) => {
|
|
192
|
+
t.length && (n.loadErrorSources = t, e.emit());
|
|
193
|
+
}
|
|
194
|
+
)
|
|
195
|
+
), e;
|
|
196
|
+
}), Q = f(
|
|
197
|
+
(n, o) => {
|
|
198
|
+
const e = d();
|
|
199
|
+
return o.onLifecycle(
|
|
200
|
+
() => s(
|
|
201
|
+
() => n.view?.readyState,
|
|
202
|
+
(t) => {
|
|
203
|
+
(t === "map-content-error" || t === "rendering-error") && e.emit();
|
|
204
|
+
}
|
|
205
|
+
)
|
|
206
|
+
), e;
|
|
207
|
+
}
|
|
208
|
+
);
|
|
209
|
+
export {
|
|
210
|
+
B as U,
|
|
211
|
+
Q as a,
|
|
212
|
+
I as b,
|
|
213
|
+
J as u
|
|
214
|
+
};
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/// <reference path="../../index.d.ts" />
|
|
2
|
+
import type AttachmentElementInput from "@arcgis/core/widgets/BatchAttributeForm/inputs/AttachmentElementInput.js";
|
|
3
|
+
import type AttachmentInfo from "@arcgis/core/rest/query/support/AttachmentInfo.js";
|
|
4
|
+
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
5
|
+
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Displays the attachment add/replace page. Composes a file-picker,
|
|
9
|
+
* validation notices, and information about the file to be replaced,
|
|
10
|
+
* if any.
|
|
11
|
+
*
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
export abstract class ArcgisAddAttachmentView extends LitElement {
|
|
15
|
+
/** @internal */
|
|
16
|
+
protected _messages: Partial<{
|
|
17
|
+
componentLabel: string;
|
|
18
|
+
components: { attachments: {
|
|
19
|
+
"attachment-validation-view": { validations: {
|
|
20
|
+
errorFileUnsupported: string;
|
|
21
|
+
maximumAudioLength: string;
|
|
22
|
+
maximumImageSize: string;
|
|
23
|
+
maximumFileSize: string;
|
|
24
|
+
maximumNumberOfFiles: string;
|
|
25
|
+
maximumVideoLength: string;
|
|
26
|
+
minimumNumberOfFiles: string;
|
|
27
|
+
}; };
|
|
28
|
+
"add-attachment-view": {
|
|
29
|
+
captureMethodNotSupported: string;
|
|
30
|
+
fileToBeReplaced: string;
|
|
31
|
+
heading: string;
|
|
32
|
+
};
|
|
33
|
+
}; };
|
|
34
|
+
units: { bytes: {
|
|
35
|
+
B: string;
|
|
36
|
+
kB: string;
|
|
37
|
+
MB: string;
|
|
38
|
+
GB: string;
|
|
39
|
+
TB: string;
|
|
40
|
+
}; };
|
|
41
|
+
differentValuesPlaceholder: string;
|
|
42
|
+
empty: string;
|
|
43
|
+
}> & T9nMeta<{
|
|
44
|
+
componentLabel: string;
|
|
45
|
+
components: { attachments: {
|
|
46
|
+
"attachment-validation-view": { validations: {
|
|
47
|
+
errorFileUnsupported: string;
|
|
48
|
+
maximumAudioLength: string;
|
|
49
|
+
maximumImageSize: string;
|
|
50
|
+
maximumFileSize: string;
|
|
51
|
+
maximumNumberOfFiles: string;
|
|
52
|
+
maximumVideoLength: string;
|
|
53
|
+
minimumNumberOfFiles: string;
|
|
54
|
+
}; };
|
|
55
|
+
"add-attachment-view": {
|
|
56
|
+
captureMethodNotSupported: string;
|
|
57
|
+
fileToBeReplaced: string;
|
|
58
|
+
heading: string;
|
|
59
|
+
};
|
|
60
|
+
}; };
|
|
61
|
+
units: { bytes: {
|
|
62
|
+
B: string;
|
|
63
|
+
kB: string;
|
|
64
|
+
MB: string;
|
|
65
|
+
GB: string;
|
|
66
|
+
TB: string;
|
|
67
|
+
}; };
|
|
68
|
+
differentValuesPlaceholder: string;
|
|
69
|
+
empty: string;
|
|
70
|
+
}>;
|
|
71
|
+
/**
|
|
72
|
+
* The attachment to replace, if any. If this is defined,
|
|
73
|
+
* only single-file upload is supported, and the page renders
|
|
74
|
+
* a 'replace' experience.
|
|
75
|
+
*/
|
|
76
|
+
accessor attachment: AttachmentInfo | undefined;
|
|
77
|
+
/** @default false */
|
|
78
|
+
accessor formDisabled: boolean;
|
|
79
|
+
accessor input: AttachmentElementInputLike | undefined;
|
|
80
|
+
accessor messageOverrides: {
|
|
81
|
+
componentLabel?: string | undefined;
|
|
82
|
+
components?: { attachments?: {
|
|
83
|
+
"attachment-validation-view"?: { validations?: {
|
|
84
|
+
errorFileUnsupported?: string | undefined;
|
|
85
|
+
maximumAudioLength?: string | undefined;
|
|
86
|
+
maximumImageSize?: string | undefined;
|
|
87
|
+
maximumFileSize?: string | undefined;
|
|
88
|
+
maximumNumberOfFiles?: string | undefined;
|
|
89
|
+
maximumVideoLength?: string | undefined;
|
|
90
|
+
minimumNumberOfFiles?: string | undefined;
|
|
91
|
+
} | undefined; } | undefined;
|
|
92
|
+
"add-attachment-view"?: {
|
|
93
|
+
captureMethodNotSupported?: string | undefined;
|
|
94
|
+
fileToBeReplaced?: string | undefined;
|
|
95
|
+
heading?: string | undefined;
|
|
96
|
+
} | undefined;
|
|
97
|
+
} | undefined; } | undefined;
|
|
98
|
+
units?: { bytes?: {
|
|
99
|
+
B?: string | undefined;
|
|
100
|
+
kB?: string | undefined;
|
|
101
|
+
MB?: string | undefined;
|
|
102
|
+
GB?: string | undefined;
|
|
103
|
+
TB?: string | undefined;
|
|
104
|
+
} | undefined; } | undefined;
|
|
105
|
+
differentValuesPlaceholder?: string | undefined;
|
|
106
|
+
empty?: string | undefined;
|
|
107
|
+
};
|
|
108
|
+
/** @internal */
|
|
109
|
+
readonly arcgisFilesSelect: import("@arcgis/lumina").TargetedEvent<this, { files: File[]; }>;
|
|
110
|
+
readonly "@eventTypes": {
|
|
111
|
+
arcgisFilesSelect: ArcgisAddAttachmentView["arcgisFilesSelect"]["detail"];
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/** @internal */
|
|
116
|
+
export type AttachmentElementInputLike = Pick<AttachmentElementInput, "addDisabled" | "categories" | "editable" | "effectiveAttachmentCount" | "hasUnsupportedFileTypeValidationError" | "input" | "isCaptureOnly" | "maxAttachmentCount" | "minAttachmentCount" | "validationCriterionStates">;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import { c as u } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as f, html as a } from "lit";
|
|
4
|
+
import { LitElement as h, createEvent as p } from "@arcgis/lumina";
|
|
5
|
+
import { u as g } from "../../chunks/useT9n.js";
|
|
6
|
+
import { f as v } from "../../chunks/formattingUtils.js";
|
|
7
|
+
const b = f`.container{display:flex;flex-direction:column;gap:var(--calcite-space-sm)}`;
|
|
8
|
+
class $ extends h {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments), this._messages = g({ name: "feature-form-next" }), this.formDisabled = !1, this.arcgisFilesSelect = p();
|
|
11
|
+
}
|
|
12
|
+
static {
|
|
13
|
+
this.properties = { _effectiveDisabled: 16, input: 0, attachment: 0, formDisabled: 5, messageOverrides: 0 };
|
|
14
|
+
}
|
|
15
|
+
static {
|
|
16
|
+
this.styles = b;
|
|
17
|
+
}
|
|
18
|
+
get _effectiveDisabled() {
|
|
19
|
+
return this.formDisabled ? !0 : this.attachment ? !this.input?.editable : this.input?.addDisabled !== !1;
|
|
20
|
+
}
|
|
21
|
+
get _multipleEnabled() {
|
|
22
|
+
if (this.attachment)
|
|
23
|
+
return !1;
|
|
24
|
+
if (!this.input)
|
|
25
|
+
return !0;
|
|
26
|
+
const { maxAttachmentCount: e, effectiveAttachmentCount: t } = this.input;
|
|
27
|
+
return e == null ? !0 : t < e - 1;
|
|
28
|
+
}
|
|
29
|
+
_handleFilesSelect(e) {
|
|
30
|
+
e.stopPropagation(), this.arcgisFilesSelect.emit({ files: e.detail.files });
|
|
31
|
+
}
|
|
32
|
+
render() {
|
|
33
|
+
const { _effectiveDisabled: e, input: t, _multipleEnabled: l, attachment: i } = this;
|
|
34
|
+
if (!t)
|
|
35
|
+
return;
|
|
36
|
+
const { units: n } = this._messages, s = this._messages.components?.attachments?.["add-attachment-view"], c = !!this.attachment, r = c && i ? a`<calcite-label>${s?.fileToBeReplaced}<calcite-card><div slot=heading>${i.name}</div><div slot=description>${n?.bytes ? v(n, i.size) : ""}</div></calcite-card></calcite-label>` : void 0, o = c ? "refresh" : "upload", d = !c, m = t.isCaptureOnly ? a`<calcite-notice data-testid=notice icon kind=warning open scale=s width=full><div slot=message>${s?.captureMethodNotSupported}</div></calcite-notice>` : a`<arcgis-file-picker data-testid=filepicker .disabled=${e} .fileTypeCategories=${t.categories} .heading=${i ? s?.heading : void 0} .icon=${o} .multipleEnabled=${l} @arcgisFilesSelect=${this._handleFilesSelect}></arcgis-file-picker><arcgis-attachment-validation-view data-testid=validations .includeCountCriteria=${d} .input=${t}></arcgis-attachment-validation-view>${r}`;
|
|
37
|
+
return a`<div class="container" data-testid=add-attachment-view-root>${m}</div>`;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
u("arcgis-add-attachment-view", $);
|
|
41
|
+
export {
|
|
42
|
+
$ as ArcgisAddAttachmentView
|
|
43
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import "@esri/calcite-components/components/calcite-label";
|
|
2
|
+
import "@esri/calcite-components/components/calcite-card";
|
|
3
|
+
import "@esri/calcite-components/components/calcite-notice";
|
|
4
|
+
import "../arcgis-file-picker/index.js";
|
|
5
|
+
import "../arcgis-attachment-validation-view/index.js";
|
|
6
|
+
export * from "./customElement.js";
|
|
@@ -125,7 +125,7 @@ class R extends f {
|
|
|
125
125
|
return c`<div aria-label=${e.componentLabel ?? v} class=${x({
|
|
126
126
|
[g.widget]: !0,
|
|
127
127
|
[g.panel]: !0
|
|
128
|
-
})} role=
|
|
128
|
+
})} role=region><arcgis-measurement-content .state=${i.displayState} .hintLabel=${e.hint} .unsupportedLabel=${e.unsupported} .items=${[
|
|
129
129
|
{
|
|
130
130
|
title: e.area,
|
|
131
131
|
measurement: s.area
|
|
@@ -12,15 +12,22 @@ export abstract class ArcgisAttachmentValidationView extends LitElement {
|
|
|
12
12
|
/** @internal */
|
|
13
13
|
protected _messages: {
|
|
14
14
|
componentLabel: string;
|
|
15
|
-
components: { attachments: {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
15
|
+
components: { attachments: {
|
|
16
|
+
"attachment-validation-view": { validations: {
|
|
17
|
+
errorFileUnsupported: string;
|
|
18
|
+
maximumAudioLength: string;
|
|
19
|
+
maximumImageSize: string;
|
|
20
|
+
maximumFileSize: string;
|
|
21
|
+
maximumNumberOfFiles: string;
|
|
22
|
+
maximumVideoLength: string;
|
|
23
|
+
minimumNumberOfFiles: string;
|
|
24
|
+
}; };
|
|
25
|
+
"add-attachment-view": {
|
|
26
|
+
captureMethodNotSupported: string;
|
|
27
|
+
fileToBeReplaced: string;
|
|
28
|
+
heading: string;
|
|
29
|
+
};
|
|
30
|
+
}; };
|
|
24
31
|
units: { bytes: {
|
|
25
32
|
B: string;
|
|
26
33
|
kB: string;
|
|
@@ -32,15 +39,22 @@ export abstract class ArcgisAttachmentValidationView extends LitElement {
|
|
|
32
39
|
empty: string;
|
|
33
40
|
} & T9nMeta<{
|
|
34
41
|
componentLabel: string;
|
|
35
|
-
components: { attachments: {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
components: { attachments: {
|
|
43
|
+
"attachment-validation-view": { validations: {
|
|
44
|
+
errorFileUnsupported: string;
|
|
45
|
+
maximumAudioLength: string;
|
|
46
|
+
maximumImageSize: string;
|
|
47
|
+
maximumFileSize: string;
|
|
48
|
+
maximumNumberOfFiles: string;
|
|
49
|
+
maximumVideoLength: string;
|
|
50
|
+
minimumNumberOfFiles: string;
|
|
51
|
+
}; };
|
|
52
|
+
"add-attachment-view": {
|
|
53
|
+
captureMethodNotSupported: string;
|
|
54
|
+
fileToBeReplaced: string;
|
|
55
|
+
heading: string;
|
|
56
|
+
};
|
|
57
|
+
}; };
|
|
44
58
|
units: { bytes: {
|
|
45
59
|
B: string;
|
|
46
60
|
kB: string;
|
|
@@ -56,15 +70,22 @@ export abstract class ArcgisAttachmentValidationView extends LitElement {
|
|
|
56
70
|
accessor input: AttachmentElementInputLike | undefined;
|
|
57
71
|
accessor messageOverrides: {
|
|
58
72
|
componentLabel?: string | undefined;
|
|
59
|
-
components?: { attachments?: {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
73
|
+
components?: { attachments?: {
|
|
74
|
+
"attachment-validation-view"?: { validations?: {
|
|
75
|
+
errorFileUnsupported?: string | undefined;
|
|
76
|
+
maximumAudioLength?: string | undefined;
|
|
77
|
+
maximumImageSize?: string | undefined;
|
|
78
|
+
maximumFileSize?: string | undefined;
|
|
79
|
+
maximumNumberOfFiles?: string | undefined;
|
|
80
|
+
maximumVideoLength?: string | undefined;
|
|
81
|
+
minimumNumberOfFiles?: string | undefined;
|
|
82
|
+
} | undefined; } | undefined;
|
|
83
|
+
"add-attachment-view"?: {
|
|
84
|
+
captureMethodNotSupported?: string | undefined;
|
|
85
|
+
fileToBeReplaced?: string | undefined;
|
|
86
|
+
heading?: string | undefined;
|
|
87
|
+
} | undefined;
|
|
88
|
+
} | undefined; } | undefined;
|
|
68
89
|
units?: { bytes?: {
|
|
69
90
|
B?: string | undefined;
|
|
70
91
|
kB?: string | undefined;
|
|
@@ -1,75 +1,65 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
4
|
-
import { LitElement as
|
|
5
|
-
import { u as
|
|
6
|
-
import { formatNumber as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
function
|
|
2
|
+
import { c as r } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as u, html as n } from "lit";
|
|
4
|
+
import { LitElement as l } from "@arcgis/lumina";
|
|
5
|
+
import { u as c } from "../../chunks/useT9n.js";
|
|
6
|
+
import { formatNumber as f, formatDate as h } from "@arcgis/core/intl.js";
|
|
7
|
+
import { f as d, S as g } from "../../chunks/formattingUtils.js";
|
|
8
|
+
import { replace as p } from "@arcgis/core/applications/Components/stringUtils.js";
|
|
9
|
+
function x(m, t = !0) {
|
|
10
10
|
const e = [];
|
|
11
|
-
if (!
|
|
11
|
+
if (!m)
|
|
12
12
|
return e;
|
|
13
|
-
const i =
|
|
14
|
-
|
|
13
|
+
const i = m.validationCriterionStates, s = m.input, o = s?.type === "attachment" ? s.inputTypes?.slice() ?? [] : s == null ? [] : [s];
|
|
14
|
+
m.hasUnsupportedFileTypeValidationError && e.push({
|
|
15
15
|
key: "errorFileUnsupported",
|
|
16
16
|
state: "danger"
|
|
17
17
|
});
|
|
18
|
-
for (const
|
|
19
|
-
|
|
18
|
+
for (const a of o)
|
|
19
|
+
a.type === "document" && a.maxFileSize != null && e.push({
|
|
20
20
|
key: "maximumFileSize",
|
|
21
|
-
messageDataValue:
|
|
21
|
+
messageDataValue: a.maxFileSize,
|
|
22
22
|
state: i.get("maximum-file-size") ?? "info"
|
|
23
|
-
}),
|
|
23
|
+
}), a.type === "audio" && a.maxDuration != null && e.push({
|
|
24
24
|
key: "maximumAudioLength",
|
|
25
|
-
messageDataValue:
|
|
25
|
+
messageDataValue: a.maxDuration,
|
|
26
26
|
state: i.get("maximum-audio-length") ?? "info"
|
|
27
|
-
}),
|
|
27
|
+
}), a.type === "video" && a.maxDuration != null && e.push({
|
|
28
28
|
key: "maximumVideoLength",
|
|
29
|
-
messageDataValue:
|
|
29
|
+
messageDataValue: a.maxDuration,
|
|
30
30
|
state: i.get("maximum-video-length") ?? "info"
|
|
31
|
-
}),
|
|
31
|
+
}), a.type === "image" && a.maxImageSize != null && e.push({
|
|
32
32
|
key: "maximumImageSize",
|
|
33
|
-
messageDataValue:
|
|
33
|
+
messageDataValue: a.maxImageSize,
|
|
34
34
|
state: i.get("maximum-image-size") ?? "info"
|
|
35
35
|
});
|
|
36
|
-
return t &&
|
|
36
|
+
return t && m.minAttachmentCount != null && m.minAttachmentCount > 0 && e.push({
|
|
37
37
|
key: "minimumNumberOfFiles",
|
|
38
|
-
messageDataValue:
|
|
38
|
+
messageDataValue: m.minAttachmentCount,
|
|
39
39
|
state: i.get("minimum-number-of-files") ?? "info"
|
|
40
|
-
}), t &&
|
|
40
|
+
}), t && m.maxAttachmentCount != null && e.push({
|
|
41
41
|
key: "maximumNumberOfFiles",
|
|
42
|
-
messageDataValue:
|
|
42
|
+
messageDataValue: m.maxAttachmentCount,
|
|
43
43
|
state: i.get("maximum-number-of-files") ?? "info"
|
|
44
44
|
}), e;
|
|
45
45
|
}
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
Megabytes: 1024 * 1024
|
|
49
|
-
};
|
|
50
|
-
function D(a, t) {
|
|
51
|
-
t = Math.round(t);
|
|
52
|
-
let e = t === 0 ? 0 : Math.floor(Math.log(t) / Math.log(s.Kilobytes));
|
|
53
|
-
e = x(e, 0, r.length - 1);
|
|
54
|
-
const i = u(t / s.Kilobytes ** e, { maximumFractionDigits: 2 });
|
|
55
|
-
return l(a.bytes[r[e]], { fileSize: i });
|
|
56
|
-
}
|
|
57
|
-
class C extends g {
|
|
46
|
+
const y = u`.container{display:flex;flex-direction:column;gap:var(--calcite-space-sm)}`;
|
|
47
|
+
class z extends l {
|
|
58
48
|
constructor() {
|
|
59
|
-
super(...arguments), this._messages =
|
|
49
|
+
super(...arguments), this._messages = c({ blocking: !0, name: "feature-form-next" }), this.includeCountCriteria = !1;
|
|
60
50
|
}
|
|
61
51
|
static {
|
|
62
52
|
this.properties = { includeCountCriteria: 5, input: 0, messageOverrides: 0 };
|
|
63
53
|
}
|
|
64
54
|
static {
|
|
65
|
-
this.styles =
|
|
55
|
+
this.styles = y;
|
|
66
56
|
}
|
|
67
57
|
_localize(t) {
|
|
68
58
|
const e = this._messages?.components?.attachments?.["attachment-validation-view"]?.validations?.[t.key];
|
|
69
59
|
if (!e)
|
|
70
60
|
return "";
|
|
71
61
|
const i = this._formatValidationContent(t) ?? "";
|
|
72
|
-
return
|
|
62
|
+
return p(e, { value: i });
|
|
73
63
|
}
|
|
74
64
|
_formatValidationContent(t) {
|
|
75
65
|
const e = t.messageDataValue;
|
|
@@ -82,13 +72,13 @@ class C extends g {
|
|
|
82
72
|
case "maximumVideoLength":
|
|
83
73
|
return this._formatAttachmentDurationLimit(e);
|
|
84
74
|
case "maximumImageSize":
|
|
85
|
-
return
|
|
75
|
+
return f(e, { maximumFractionDigits: 0, minimumFractionDigits: 0, useGrouping: !1 });
|
|
86
76
|
default:
|
|
87
77
|
return `${e}`;
|
|
88
78
|
}
|
|
89
79
|
}
|
|
90
80
|
_formatAttachmentDurationLimit(t) {
|
|
91
|
-
return
|
|
81
|
+
return h(Math.round(t) * 1e3, {
|
|
92
82
|
...t >= 3600 ? { hour: "2-digit", hourCycle: "h23" } : {},
|
|
93
83
|
minute: "2-digit",
|
|
94
84
|
second: "2-digit",
|
|
@@ -96,14 +86,14 @@ class C extends g {
|
|
|
96
86
|
});
|
|
97
87
|
}
|
|
98
88
|
_formatAttachmentSize(t) {
|
|
99
|
-
return
|
|
89
|
+
return d(this._messages.units, t * g.Megabytes);
|
|
100
90
|
}
|
|
101
91
|
render() {
|
|
102
|
-
const e =
|
|
103
|
-
return
|
|
92
|
+
const e = x(this.input, this.includeCountCriteria).map((i) => n`<calcite-notice appearance=outline-fill data-testid=${`notice-${i.key}`} icon .kind=${i.state} open scale=s width=full><div slot=message>${this._localize(i)}</div></calcite-notice>`);
|
|
93
|
+
return n`<div class="container" data-testid=root>${e}</div>`;
|
|
104
94
|
}
|
|
105
95
|
}
|
|
106
|
-
|
|
96
|
+
r("arcgis-attachment-validation-view", z);
|
|
107
97
|
export {
|
|
108
|
-
|
|
98
|
+
z as ArcgisAttachmentValidationView
|
|
109
99
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type Basemap from "@arcgis/core/Basemap.js";
|
|
2
|
+
import type Accessor from "@arcgis/core/core/Accessor.js";
|
|
3
|
+
import type { BasemapProperties } from "@arcgis/core/Basemap.js";
|
|
4
|
+
import type { MapViewOrSceneView } from "@arcgis/core/views/MapViewOrSceneView.js";
|
|
5
|
+
|
|
6
|
+
export interface BasemapToggleViewModelProperties extends Partial<Pick<BasemapToggleViewModel, "view">> {
|
|
7
|
+
nextBasemap: BasemapProperties | null | undefined | string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/** @internal */
|
|
11
|
+
export default class BasemapToggleViewModel extends Accessor {
|
|
12
|
+
/** @param basemap */
|
|
13
|
+
static getThumbnailUrl(basemap: Basemap | null | undefined): null | undefined | string;
|
|
14
|
+
constructor(properties?: BasemapToggleViewModelProperties);
|
|
15
|
+
get activeBasemap(): Basemap | null | undefined;
|
|
16
|
+
get nextBasemap(): Basemap | null | undefined;
|
|
17
|
+
set nextBasemap(value: BasemapProperties | null | undefined | string);
|
|
18
|
+
get state(): BasemapToggleViewModelState;
|
|
19
|
+
accessor view: MapViewOrSceneView | undefined;
|
|
20
|
+
destroy(): void;
|
|
21
|
+
protected initialize(): void;
|
|
22
|
+
toggle(): Promise<void>;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export type BasemapToggleViewModelState = "disabled" | "incompatible-next-basemap" | "loading" | "ready";
|