@arcgis/map-components 5.2.0-next.37 → 5.2.0-next.39
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/226ASAN4.js +2 -0
- package/dist/cdn/{Z77JVENV.js → 22NMICPW.js} +1 -1
- package/dist/cdn/25J4CQKL.js +2 -0
- package/dist/cdn/262J7OXJ.js +2 -0
- package/dist/cdn/{YCVINCOI.js → 27DGJIUB.js} +1 -1
- package/dist/cdn/{G4CPNGQ6.js → 2JBFSC6D.js} +1 -1
- package/dist/cdn/2KWY4AXN.js +2 -0
- package/dist/cdn/2QX2M2WC.js +2 -0
- package/dist/cdn/{BM3NHWBY.js → 2U5G2QWZ.js} +1 -1
- package/dist/cdn/3AKY7DQG.js +2 -0
- package/dist/cdn/{ROIAI7KY.js → 3AS7CJFU.js} +1 -1
- package/dist/cdn/{75PSCL4A.js → 3BV6XBJZ.js} +1 -1
- package/dist/cdn/{MAJ3JPSY.js → 3C7K3QVM.js} +1 -1
- package/dist/cdn/{7ZVWCRXE.js → 3CBU3MJL.js} +1 -1
- package/dist/cdn/{HKTQWWXP.js → 3MWUCGFA.js} +1 -1
- package/dist/cdn/3QFONUZB.js +2 -0
- package/dist/cdn/{HF7TEJAO.js → 3VIS3UL6.js} +1 -1
- package/dist/cdn/{IAQVHCU7.js → 3WKJVIT5.js} +1 -1
- package/dist/cdn/3YJVHAJW.js +2 -0
- package/dist/cdn/3YZRY2EG.js +2 -0
- package/dist/cdn/{COGFFO5G.js → 3ZQ375NT.js} +1 -1
- package/dist/cdn/3ZQEDFHR.js +2 -0
- package/dist/cdn/42XU4L5C.js +2 -0
- package/dist/cdn/{7LRGEABA.js → 4GB5RIYZ.js} +1 -1
- package/dist/cdn/4GZ7DNJF.js +2 -0
- package/dist/cdn/{6ZJFTT6R.js → 4PF56QFJ.js} +1 -1
- package/dist/cdn/{EIHTWPOP.js → 4QYMX7LR.js} +1 -1
- package/dist/cdn/{NR53EGV6.js → 4RQVKULG.js} +1 -1
- package/dist/cdn/4TYWHTFT.js +2 -0
- package/dist/cdn/4WENIFOF.js +2 -0
- package/dist/cdn/57E26JZ5.js +2 -0
- package/dist/cdn/5IAV6PUT.js +2 -0
- package/dist/cdn/5IO4VISO.js +2 -0
- package/dist/cdn/5L764GTN.js +2 -0
- package/dist/cdn/5PZ64P44.js +2 -0
- package/dist/cdn/{XR4WLNHC.js → 5USS47OO.js} +1 -1
- package/dist/cdn/{SPJCXMMT.js → 63DXQUR2.js} +1 -1
- package/dist/cdn/6RSIIYYJ.js +2 -0
- package/dist/cdn/6URRJVLV.js +2 -0
- package/dist/cdn/6V4MOKPT.js +2 -0
- package/dist/cdn/{OMHMO6DD.js → 6VNX2RV3.js} +1 -1
- package/dist/cdn/{6HXM4D4W.js → 6WBCA7YD.js} +1 -1
- package/dist/cdn/77AOOZB2.js +2 -0
- package/dist/cdn/{EE2CA7CT.js → 7DBZFTR6.js} +1 -1
- package/dist/cdn/{6Z4HUEBW.js → 7HOAA7SE.js} +1 -1
- package/dist/cdn/{SWKWLPLG.js → 7JO4QKKH.js} +1 -1
- package/dist/cdn/7L4FPBGQ.js +2 -0
- package/dist/cdn/{GSI2ZI7D.js → 7MO7E734.js} +1 -1
- package/dist/cdn/{PIRA7ITO.js → 7PLMJIAQ.js} +1 -1
- package/dist/cdn/7SZGIUAX.js +2 -0
- package/dist/cdn/7YMLPJVW.js +2 -0
- package/dist/cdn/{FC3W4JBU.js → A2TTJCDV.js} +1 -1
- package/dist/cdn/A3BUMPTF.js +2 -0
- package/dist/cdn/AFXGNK7O.js +2 -0
- package/dist/cdn/AROGEJUN.js +2 -0
- package/dist/cdn/AUE4JQXJ.js +2 -0
- package/dist/cdn/AWQ26Q4D.js +2 -0
- package/dist/cdn/BCGQ7UIU.js +2 -0
- package/dist/cdn/{QAU5TWTZ.js → BFXQ5WCT.js} +1 -1
- package/dist/cdn/{RO35U2LW.js → BJYHPARY.js} +1 -1
- package/dist/cdn/BQALWYAT.js +2 -0
- package/dist/cdn/{ISUTHAE7.js → C6RQ2TQ4.js} +1 -1
- package/dist/cdn/{SNDTIGUT.js → CM7EQXWU.js} +1 -1
- package/dist/cdn/CPMHDQHY.js +2 -0
- package/dist/cdn/{DLMGAC2A.js → CTSJYC3X.js} +1 -1
- package/dist/cdn/{6PS3YIDY.js → CUXUSAP4.js} +1 -1
- package/dist/cdn/CUZUYZE2.js +2 -0
- package/dist/cdn/CZLAUEZF.js +2 -0
- package/dist/cdn/D5N26QOS.js +2 -0
- package/dist/cdn/DAEEPAST.js +2 -0
- package/dist/cdn/{AGTJNHWI.js → DC357Y2K.js} +1 -1
- package/dist/cdn/{7GTMLYFP.js → DEQA63VJ.js} +1 -1
- package/dist/cdn/DJYIVAB2.js +2 -0
- package/dist/cdn/DNSZMLAX.js +2 -0
- package/dist/cdn/DPDU2GSI.js +2 -0
- package/dist/cdn/DPKCDN3P.js +2 -0
- package/dist/cdn/DZ6TMBVB.js +2 -0
- package/dist/cdn/{DGHNWABD.js → E7E7MIKH.js} +1 -1
- package/dist/cdn/EE4X5YOU.js +2 -0
- package/dist/cdn/{MZ35VFYR.js → EF66VW43.js} +1 -1
- package/dist/cdn/EMW3ALJA.js +2 -0
- package/dist/cdn/{7MWEEVVD.js → EP7FUAF2.js} +1 -1
- package/dist/cdn/EPBKJBDS.js +2 -0
- package/dist/cdn/{JLZJ354E.js → EUCWM5S7.js} +1 -1
- package/dist/cdn/F7RMRBE3.js +2 -0
- package/dist/cdn/FBKD4RWJ.js +2 -0
- package/dist/cdn/FBL4FNP2.js +2 -0
- package/dist/cdn/FD73ZZE6.js +2 -0
- package/dist/cdn/FEWZYBBW.js +2 -0
- package/dist/cdn/{K3PRLBKN.js → FMG7FAUK.js} +1 -1
- package/dist/cdn/G55FBLQV.js +2 -0
- package/dist/cdn/G6WHFUIF.js +2 -0
- package/dist/cdn/G7APNTVJ.js +2 -0
- package/dist/cdn/{5EO47VPH.js → GD5VVQPA.js} +1 -1
- package/dist/cdn/GECBQL23.js +2 -0
- package/dist/cdn/GMIAQHT4.js +2 -0
- package/dist/cdn/GOVUDM4N.js +2 -0
- package/dist/cdn/GPJG37UL.js +2 -0
- package/dist/cdn/GSPJRG26.js +2 -0
- package/dist/cdn/GYZYY2TM.js +2 -0
- package/dist/cdn/H5B4VHOH.js +2 -0
- package/dist/cdn/{WKQXQLLR.js → HGJ56PKD.js} +1 -1
- package/dist/cdn/HKEXPCDW.js +2 -0
- package/dist/cdn/HQVDDVBE.js +2 -0
- package/dist/cdn/HSB4XYHA.js +2 -0
- package/dist/cdn/{WBLJSZV4.js → HT23X37X.js} +1 -1
- package/dist/cdn/I3BAOV7V.js +2 -0
- package/dist/cdn/I5U3QCTO.js +2 -0
- package/dist/cdn/{S3NMAVL6.js → IEWD6LOR.js} +1 -1
- package/dist/cdn/IFZLE6R4.js +2 -0
- package/dist/cdn/{RUFWW2L5.js → IVZM7EPG.js} +1 -1
- package/dist/cdn/J77DHC2R.js +2 -0
- package/dist/cdn/{MDXQUNKW.js → JOJYHVDS.js} +1 -1
- package/dist/cdn/{I5OLG552.js → JP24H6WY.js} +1 -1
- package/dist/cdn/JQ35LUF5.js +2 -0
- package/dist/cdn/JUBO5HRV.js +2 -0
- package/dist/cdn/JXHS44R7.js +2 -0
- package/dist/cdn/KBQRHXQ4.js +2 -0
- package/dist/cdn/{ZQBMKJX7.js → KCEGLGM4.js} +1 -1
- package/dist/cdn/KG4EPDJO.js +2 -0
- package/dist/cdn/KH3IAHXE.js +2 -0
- package/dist/cdn/KWXR6G2J.js +2 -0
- package/dist/cdn/LBRZ6IVX.js +2 -0
- package/dist/cdn/{Z66KOPPI.js → LQHENS2H.js} +1 -1
- package/dist/cdn/LSP6WL4P.js +2 -0
- package/dist/cdn/LXF6LDWE.js +2 -0
- package/dist/cdn/LZPZZMEH.js +2 -0
- package/dist/cdn/MHG26BRV.js +2 -0
- package/dist/cdn/MJB3NLLH.js +2 -0
- package/dist/cdn/MJVODTWO.js +2 -0
- package/dist/cdn/N5PSINKS.js +2 -0
- package/dist/cdn/{W2WYFYTT.js → NGUV3VWT.js} +1 -1
- package/dist/cdn/NJW4OAOH.js +2 -0
- package/dist/cdn/{EOK45N5T.js → NKWXCVN3.js} +1 -1
- package/dist/cdn/{NQSW6QJ6.js → NO5YSGEU.js} +1 -1
- package/dist/cdn/NSF5Q73E.js +2 -0
- package/dist/cdn/{SBUR54TP.js → O5T75PGZ.js} +1 -1
- package/dist/cdn/{K7UC43CL.js → O6L7TWQH.js} +1 -1
- package/dist/cdn/{SJP5NLRB.js → OCLSVHBG.js} +1 -1
- package/dist/cdn/{6ZP6GZS7.js → OENFGUIN.js} +1 -1
- package/dist/cdn/OGYAUMMI.js +2 -0
- package/dist/cdn/{TAFFNLUI.js → OO3JRV5K.js} +1 -1
- package/dist/cdn/OTLQG3D4.js +2 -0
- package/dist/cdn/OUQRKL6Q.js +2 -0
- package/dist/cdn/{DUWXDGIW.js → P6CDJ2IV.js} +1 -1
- package/dist/cdn/{H3J6GAKO.js → PCBZQRX4.js} +1 -1
- package/dist/cdn/{KBHTEAAG.js → PISSWA2X.js} +1 -1
- package/dist/cdn/PJ6BIN6B.js +2 -0
- package/dist/cdn/PWOCWDXH.js +2 -0
- package/dist/cdn/QOD6TYZ2.js +2 -0
- package/dist/cdn/{333FN2FH.js → QRAQ7SYI.js} +1 -1
- package/dist/cdn/QUYXPMFZ.js +2 -0
- package/dist/cdn/QUZTFUWM.js +1 -0
- package/dist/cdn/{4DU47CLL.js → R2Z6LGSX.js} +1 -1
- package/dist/cdn/{IPLVHFN5.js → RAYQEF6G.js} +1 -1
- package/dist/cdn/{KQT5MAFE.js → RDXFUCMG.js} +1 -1
- package/dist/cdn/RFYPQ3GQ.js +2 -0
- package/dist/cdn/RII7CWWU.js +2 -0
- package/dist/cdn/RN6YVTSJ.js +2 -0
- package/dist/cdn/RVHKL3JR.js +2 -0
- package/dist/cdn/RY73K52N.js +2 -0
- package/dist/cdn/RZ6SODVT.js +2 -0
- package/dist/cdn/RZX4PVJV.js +2 -0
- package/dist/cdn/SF6DG2BU.js +2 -0
- package/dist/cdn/SGIT6SHY.js +2 -0
- package/dist/cdn/SL7K5BE2.js +2 -0
- package/dist/cdn/SMETKDNO.js +2 -0
- package/dist/cdn/SP3SHKU4.js +2 -0
- package/dist/cdn/SX7O6EXI.js +2 -0
- package/dist/cdn/{UEYLTX3J.js → SY3M2ZUK.js} +1 -1
- package/dist/cdn/SYRZLONH.js +2 -0
- package/dist/cdn/T4ULWFGS.js +2 -0
- package/dist/cdn/TIPGSYM6.js +2 -0
- package/dist/cdn/TLFRQY4X.js +2 -0
- package/dist/cdn/{JBD3X2G7.js → TLOB62Q3.js} +1 -1
- package/dist/cdn/TOF5NAVM.js +2 -0
- package/dist/cdn/TVTHJ57O.js +2 -0
- package/dist/cdn/TXPI3GGA.js +2 -0
- package/dist/cdn/{FJT2YAI6.js → TZYCSEIK.js} +1 -1
- package/dist/cdn/U5IS4L54.js +2 -0
- package/dist/cdn/{IQSSVLSC.js → UKO2UCD3.js} +1 -1
- package/dist/cdn/UVQAPLIX.js +2 -0
- package/dist/cdn/UYCPX64L.js +2 -0
- package/dist/cdn/{YSLSCMZ4.js → V3YVWJA3.js} +1 -1
- package/dist/cdn/V5TLUM7M.js +2 -0
- package/dist/cdn/{BPXDBUNH.js → V6VLUKHQ.js} +1 -1
- package/dist/cdn/{63RAMAYF.js → VRBQLCFE.js} +1 -1
- package/dist/cdn/VWED2WAO.js +2 -0
- package/dist/cdn/{P6RTW6EN.js → W3AXBO55.js} +1 -1
- package/dist/cdn/WB5Y7X7S.js +2 -0
- package/dist/cdn/WGJ4M2WU.js +2 -0
- package/dist/cdn/WMNHZG4Z.js +2 -0
- package/dist/cdn/{CDY4M34V.js → WMUI4UFI.js} +1 -1
- package/dist/cdn/{6FOYKQEP.js → X6BTGTK3.js} +1 -1
- package/dist/cdn/{QFH7PJYV.js → X6PWBP6M.js} +1 -1
- package/dist/cdn/XE4SUJW2.js +2 -0
- package/dist/cdn/{XJVFSXPM.js → XH4BVYMC.js} +1 -1
- package/dist/cdn/{GPPU5K5J.js → XIVMPSLL.js} +1 -1
- package/dist/cdn/XOFHG45P.js +2 -0
- package/dist/cdn/{YU7SUXHY.js → XP3BVKWY.js} +1 -1
- package/dist/cdn/XPA3T33A.js +2 -0
- package/dist/cdn/XPGYKHZB.js +2 -0
- package/dist/cdn/XWIR344G.js +2 -0
- package/dist/cdn/{BPXKEXYV.js → XYM5LHFM.js} +1 -1
- package/dist/cdn/Y455YVQT.js +2 -0
- package/dist/cdn/Y7ESUBFW.js +2 -0
- package/dist/cdn/{DI6UP5OE.js → Y7JVOMNJ.js} +1 -1
- package/dist/cdn/YL6EQO7B.js +2 -0
- package/dist/cdn/{BD27PEC7.js → Z7J6NDSB.js} +1 -1
- package/dist/cdn/ZJIWWNJV.js +2 -0
- package/dist/cdn/ZLYR2YYJ.js +3 -0
- package/dist/cdn/ZSK55FRY.js +2 -0
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/component-utils.js +1 -1
- package/dist/chunks/useArcgisViewReadyError.js +1 -1
- package/dist/chunks/useViewModel.js +13 -12
- package/dist/components/arcgis-elevation-profile/customElement.js +1 -1
- package/dist/components/arcgis-feature-relationship/customElement.js +35 -32
- package/dist/components/arcgis-feature-table/customElement.js +7 -1
- package/dist/components/arcgis-features-next/customElement.js +10 -9
- package/dist/components/arcgis-layer-list-next/layer-list-item/customElement.js +21 -19
- package/dist/components/arcgis-shadow-cast-discrete-config/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +5 -5
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/package.json +4 -4
- package/dist/cdn/2FBLF35H.js +0 -2
- package/dist/cdn/2GQUMXRP.js +0 -2
- package/dist/cdn/2TWSQAFW.js +0 -2
- package/dist/cdn/32VPFWAU.js +0 -2
- package/dist/cdn/3TV4AW2U.js +0 -2
- package/dist/cdn/3XN5WC3E.js +0 -2
- package/dist/cdn/43E5Q7SX.js +0 -2
- package/dist/cdn/4CIY4MDE.js +0 -2
- package/dist/cdn/4L35X2II.js +0 -2
- package/dist/cdn/4LXXTKLF.js +0 -2
- package/dist/cdn/4PLVKLIO.js +0 -2
- package/dist/cdn/4RYRGSLZ.js +0 -2
- package/dist/cdn/6NVBAMUC.js +0 -2
- package/dist/cdn/737FF4ZH.js +0 -2
- package/dist/cdn/7DJQ6AV3.js +0 -2
- package/dist/cdn/7EYV5QCR.js +0 -2
- package/dist/cdn/7NXADBPZ.js +0 -2
- package/dist/cdn/7SS6YS6U.js +0 -2
- package/dist/cdn/ACB6VKEU.js +0 -2
- package/dist/cdn/ACGQG2T3.js +0 -2
- package/dist/cdn/AGNHPUGM.js +0 -2
- package/dist/cdn/BABV4Q67.js +0 -2
- package/dist/cdn/BB2OVX6Z.js +0 -2
- package/dist/cdn/BJHI57US.js +0 -2
- package/dist/cdn/BK6P2PBO.js +0 -2
- package/dist/cdn/BMEV46IM.js +0 -2
- package/dist/cdn/BYIKUU2V.js +0 -2
- package/dist/cdn/CML7DSDS.js +0 -2
- package/dist/cdn/CMXX5I5Y.js +0 -2
- package/dist/cdn/CUWHMMMX.js +0 -2
- package/dist/cdn/CW3A3NSF.js +0 -2
- package/dist/cdn/CWXLMMIV.js +0 -2
- package/dist/cdn/CZE4HGAH.js +0 -2
- package/dist/cdn/D5OF45DN.js +0 -2
- package/dist/cdn/D5YLOINY.js +0 -2
- package/dist/cdn/DAPA72LS.js +0 -2
- package/dist/cdn/DFMHSA2D.js +0 -2
- package/dist/cdn/DGIBWHDZ.js +0 -2
- package/dist/cdn/DU6OKLV4.js +0 -2
- package/dist/cdn/ESA5KBF2.js +0 -2
- package/dist/cdn/EV4FZDIH.js +0 -2
- package/dist/cdn/EXQF6CLS.js +0 -2
- package/dist/cdn/FCRWSG6Z.js +0 -2
- package/dist/cdn/FJI7SX3Z.js +0 -3
- package/dist/cdn/FK5W4CAM.js +0 -2
- package/dist/cdn/FPWQJH6Z.js +0 -2
- package/dist/cdn/FW6YER2T.js +0 -2
- package/dist/cdn/FWRGAMLD.js +0 -2
- package/dist/cdn/FWVU47N3.js +0 -2
- package/dist/cdn/FZD4BWTZ.js +0 -2
- package/dist/cdn/G62ON2MX.js +0 -2
- package/dist/cdn/HB3P56AO.js +0 -2
- package/dist/cdn/HL32BXZ6.js +0 -2
- package/dist/cdn/HLW5IWNW.js +0 -2
- package/dist/cdn/HSVIFDP7.js +0 -2
- package/dist/cdn/I75L57XX.js +0 -2
- package/dist/cdn/IDZCPNFC.js +0 -2
- package/dist/cdn/IHVHH3Z4.js +0 -2
- package/dist/cdn/IIFKJ5KI.js +0 -2
- package/dist/cdn/IJM4ETBT.js +0 -2
- package/dist/cdn/J5WF4RA3.js +0 -2
- package/dist/cdn/JAPZRY7D.js +0 -2
- package/dist/cdn/JC5VO2H6.js +0 -2
- package/dist/cdn/JK5WW4LS.js +0 -2
- package/dist/cdn/JRGDCJFD.js +0 -2
- package/dist/cdn/K3RZVWUG.js +0 -2
- package/dist/cdn/K7LJE67S.js +0 -2
- package/dist/cdn/KI2RJGYP.js +0 -2
- package/dist/cdn/KN4B6FCH.js +0 -2
- package/dist/cdn/KS54PV2C.js +0 -2
- package/dist/cdn/KXLCQG2D.js +0 -2
- package/dist/cdn/KY3F7CGM.js +0 -2
- package/dist/cdn/KYIGNAWR.js +0 -2
- package/dist/cdn/LWFBZABK.js +0 -2
- package/dist/cdn/LWUHDIX7.js +0 -2
- package/dist/cdn/M7QNKIPS.js +0 -2
- package/dist/cdn/MHFQFV3U.js +0 -2
- package/dist/cdn/MOIULPNJ.js +0 -2
- package/dist/cdn/MS7AHPCF.js +0 -2
- package/dist/cdn/MVGWB3RU.js +0 -2
- package/dist/cdn/NRSO2H4L.js +0 -2
- package/dist/cdn/NXELRSXN.js +0 -2
- package/dist/cdn/O2ETKQ5D.js +0 -2
- package/dist/cdn/O5TYAJJC.js +0 -2
- package/dist/cdn/OES2XNU6.js +0 -2
- package/dist/cdn/OF562TYT.js +0 -2
- package/dist/cdn/OJZS7SEO.js +0 -2
- package/dist/cdn/OPXW6KNI.js +0 -2
- package/dist/cdn/P5CMHBXY.js +0 -2
- package/dist/cdn/PIBSUNDA.js +0 -2
- package/dist/cdn/Q3W5PUKE.js +0 -2
- package/dist/cdn/QEKL2JAR.js +0 -2
- package/dist/cdn/QHA2WGXH.js +0 -2
- package/dist/cdn/QKCBJKWT.js +0 -2
- package/dist/cdn/R76WDXDY.js +0 -2
- package/dist/cdn/RIFV5I7U.js +0 -2
- package/dist/cdn/RY6OC64Z.js +0 -2
- package/dist/cdn/S3Q7DCIL.js +0 -2
- package/dist/cdn/SAEE5GTI.js +0 -2
- package/dist/cdn/SDWAS6TI.js +0 -2
- package/dist/cdn/T2U3NVKA.js +0 -2
- package/dist/cdn/TCOOCOVG.js +0 -2
- package/dist/cdn/TJFVBTGT.js +0 -2
- package/dist/cdn/TJL2GS3I.js +0 -2
- package/dist/cdn/TPL6IAKN.js +0 -2
- package/dist/cdn/TWF5DLV4.js +0 -2
- package/dist/cdn/UCRELG4W.js +0 -2
- package/dist/cdn/URUIZIXD.js +0 -2
- package/dist/cdn/UYO3EHF5.js +0 -2
- package/dist/cdn/VDRSNCLD.js +0 -2
- package/dist/cdn/VHIOEBAH.js +0 -2
- package/dist/cdn/VPMDOL5A.js +0 -2
- package/dist/cdn/VZP4JMWS.js +0 -2
- package/dist/cdn/WIGC724I.js +0 -2
- package/dist/cdn/WVH3PWDM.js +0 -2
- package/dist/cdn/X32UMW74.js +0 -2
- package/dist/cdn/X34ZFQYZ.js +0 -2
- package/dist/cdn/XC3A635J.js +0 -2
- package/dist/cdn/XDK4EBMF.js +0 -2
- package/dist/cdn/XHS7LMVO.js +0 -2
- package/dist/cdn/XJ45UBQS.js +0 -2
- package/dist/cdn/XPSJ37QH.js +0 -2
- package/dist/cdn/XRRV7RO4.js +0 -2
- package/dist/cdn/XVEDSEO5.js +0 -2
- package/dist/cdn/Y4BLBOOK.js +0 -2
- package/dist/cdn/Y6YN2NUF.js +0 -2
- package/dist/cdn/YMGM7P5W.js +0 -2
- package/dist/cdn/YQHCTUQF.js +0 -2
- package/dist/cdn/YVZBBDWC.js +0 -2
- package/dist/cdn/ZVK4FCTD.js +0 -2
- package/dist/cdn/ZVZAGAA3.js +0 -2
- /package/dist/cdn/{2W65DCE5.js → 2JV5SN44.js} +0 -0
- /package/dist/cdn/{KLXEJCTT.js → CDSRIIHC.js} +0 -0
- /package/dist/cdn/{ECNI2A4K.js → XEK22IDA.js} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import{a as k,c as z}from"./32XG4IQO.js";import{a as y}from"./BFXQ5WCT.js";import l from"./SYRZLONH.js";import{a as b}from"./JP24H6WY.js";import{a as s}from"./JD74LG7K.js";import j from"./V6VLUKHQ.js";import i from"./7MO7E734.js";import{e as v,g as _}from"./Z7J6NDSB.js";import"./VWED2WAO.js";import e from"./3MWUCGFA.js";import"./QUZTFUWM.js";import{d as w}from"./RZ6SODVT.js";import{O as h,P as c,Q as f,R as d,U as u,a as g,b as a,x as m}from"./CDSRIIHC.js";import"./H6RQVSYM.js";export default $arcgis.t(([{when:R},D,,,,x])=>{var C=g`@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{display:flex;width:var(--arcgis-internal-panel-width, 300px)}:host(:focus-within){z-index:1;outline-offset:var(--calcite-spacing-base);outline:var(--calcite-spacing-base) solid var(--calcite-color-brand)}.root{position:relative;overflow-y:auto;container-type:inline-size;width:100%;min-height:32px;transition:max-height .25s ease-in-out}.root .loader:before,.root .loader:after{opacity:1;content:"";height:var(--calcite-spacing-px);transition:opacity .5s ease-in-out;position:absolute;top:0}.root .loader:before{z-index:0;background-color:var(--calcite-color-foreground-1);width:100%}.root .loader:after{z-index:0;background-color:var(--calcite-color-foreground-3);width:20%;animation:1.5s linear infinite looping-progresss-bar-ani}.esri-disabled arcgis-basemap-gallery-item{opacity:var(--calcite-opacity-light);pointer-events:none;animation:none}.empty-message{padding:12px 15px;animation:.5s ease-in-out esri-fade-in}.loader{width:100%;height:var(--calcite-spacing-base);animation:.5s ease-in-out esri-fade-in;position:absolute;top:0;left:0;right:0}.item-container{flex-flow:column;gap:3px;margin:0;padding-block:3px;padding-inline:3px;list-style:none;transition:opacity .25s ease-in-out;display:flex;position:relative}calcite-popover>.root{width:280px;max-height:80vh}.ui-corner calcite-panel>.root.widget.widget--panel{width:unset}.view-width-greater-than-large calcite-popover>.root,.view-width-greater-than-large .ui-corner>.root{width:450px}@container (width<=200px) or (width>=350px){.root .item-container{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:var(--calcite-spacing-md) var(--calcite-spacing-lg);padding-block:var(--calcite-spacing-md);padding-inline:var(--calcite-spacing-lg);display:grid}}`,Y=x(D),l={small:200,default:280,wide:435},p=class extends h{constructor(){super(...arguments),this.messages=b({}),this.viewModel=Y(this),this._direction=v(),this._width=0,this.view=this.viewModel.view,this.activeBasemap=this.viewModel.activeBasemap,this.autoDestroyDisabled=!1,this.disabled=!1,this.headingLevel=2,this.icon="basemap",this.label="",this.source=this.viewModel.source,this.state=this.viewModel.state,this.arcgisPropertyChange=_()("activeBasemap","state"),this.arcgisReady=m()}static{this.properties={_width:16,view:0,activeBasemap:1,autoDestroyDisabled:5,disabled:7,headingLevel:9,icon:1,label:1,messageOverrides:0,referenceElement:1,source:0,state:32}}static{this.styles=C}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[R(()=>this.source,()=>{this.viewModel.loadSource()},{sync:!0,initial:!0}),(()=>{let e=new ResizeObserver(t=>{for(let r of t)this._width=r.contentRect.width}),i=this.el;return i&&e.observe(i),{remove(){e?.disconnect()}}})()])}_getRoundRobinIndex(e,i){return(e+i)%i}_handleKeyDown(e){let{key:i}=e;if(!k(i))return;e.preventDefault();let{items:t,activeBasemapIndex:r}=this.viewModel,o=z(i,this._direction)?this._getRoundRobinIndex(Math.max(r-1,-1),t.length):this._getRoundRobinIndex(r+1,t.length),n=t.at(o);n?.state==="ready"&&(this.viewModel.activeBasemap=n.basemap)}render(){let e=this.source.state==="loading",i=this.disabled||this.state==="disabled",t=this.viewModel.items,r={"source-loading":e,[s.disabled]:i},o=this._width;r["layout-grid"]=o>=l.wide||o<=l.small,r["narrow-items"]=o<l.default;let n=e?a`<div class="loader"></div>`:null,M=e?null:t.length>0?a`<div aria-disabled=${this.disabled??d} aria-label=${this.label??d} class="item-container" @keydown=${this._handleKeyDown} role=radiogroup>${t.map(($,B)=>a`<arcgis-basemap-gallery-item .disabled=${i} .item=${$} .itemIndex=${B} .viewModel=${this.viewModel} .messages=${this.messages}></arcgis-basemap-gallery-item>`)}</div>`:a`<div class=${c(s.empty)}>${y({level:this.headingLevel,children:this.messages.noBasemaps})}</div>`;return a`<div class=${c(w("root",s.widget,s.panel,r))} style=${f({"--esri-basemap-gallery-small":`${l.small}px`})}>${[n,M]}</div>`}};u("arcgis-basemap-gallery",p);return p},"core/reactiveUtils","widgets/BasemapGallery/BasemapGalleryViewModel",e,i,j,l)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{M as u,N as v,O as b,U as w,a as g,b as l,x as p}from"./
|
|
2
|
+
import{M as u,N as v,O as b,U as w,a as g,b as l,x as p}from"./CDSRIIHC.js";import"./H6RQVSYM.js";var x=g`:host{min-height:var(--arcgis-internal-panel-height-md, 420px);height:100%}`,_=class extends b{constructor(){super(...arguments),this._flowItemElement=u(),this._switchToVersion=!0,this._switchToVersionCheckboxElement=u(),this._versionNameInputElement=u(),this.selected=!1,this.showBackButton=!1,this.arcgisAlterVersion=p(),this.arcgisCreateVersion=p(),this.arcgisFlowItemBack=p(),this.arcgisFlowItemClose=p()}static{this.properties={_validationError:16,selected:7,showBackButton:7,versionPropertiesElementProps:0}}static{this.styles=x}load(){let{versionPropertiesElementProps:{versionInfo:t}}=this;t?(this._mode="edit",this._fullVersionName=t.versionIdentifier.name,this._ownerName=this._fullVersionName.substring(0,this._fullVersionName.lastIndexOf(".")),this._versionName=this._fullVersionName.substring(this._fullVersionName.lastIndexOf(".")+1)):this._mode="create"}updated(){this._mode==="create"&&this._versionNameInputElement.value?.setFocus()}async setFocus(){this._flowItemElement.value?.setFocus()}goBack(){}_handleCancel(){this.arcgisFlowItemBack.emit()}_handleChange(t){let{_mode:i,_ownerName:h,_versionName:d,versionPropertiesElementProps:{currentUser:m,isVersionAdministrator:e,serviceUrl:s,versionInfo:c}}=this,{_alterVersionParameters:r,_createVersionParameters:a}=this;switch(i==="create"&&(a||(a={access:"public",description:"",featureServerUrl:s,ownerName:m,versionName:""})),i==="edit"&&(r||(r={featureServerUrl:s,versionIdentifier:c.versionIdentifier,ownerName:h,versionName:d,access:c.access,description:c.description})),t.type){case"calciteChipGroupSelect":{let n=t.target.label,o=t.target.selectedItems[0].label;i==="create"&&(a={...a,[n]:o}),i==="edit"&&(r={...r,[n]:o});break}case"calciteInputTextInput":{let n=t.target.name,o=t.target.value;i==="create"&&(a={...a,[n]:o}),i==="edit"&&(r={...r,[n]:o});break}case"calciteTextAreaInput":{let n=t.target.name;if(n!=null){let o=t.target.value;i==="create"&&(a={...a,[n]:o}),i==="edit"&&(r={...r,[n]:o})}break}}i==="create"&&(a.access!=="public"&&m.toUpperCase()!==a.ownerName?.toUpperCase()&&!e?(this._switchToVersionCheckboxElement.value.checked=!1,this._switchToVersionCheckboxElement.value.disabled=!0,this._switchToVersion=!1):this._switchToVersionCheckboxElement.value.disabled=!1,this._createVersionParameters=a),i==="edit"&&(this._alterVersionParameters=r)}_handleClose(){this.arcgisFlowItemClose.emit()}_handleSave(){let{_alterVersionParameters:t,_createVersionParameters:i,_mode:h,_switchToVersion:d,versionPropertiesElementProps:{strings:m}}=this,e=[".",";","'",'"'];if(e.some(s=>i?.versionName?.includes(s))||e.some(s=>t?.versionName?.includes(s))){this._validationError=m.validationErrors.invalidCharacters;return}h==="create"&&this.arcgisCreateVersion.emit({createVersionParameters:i,switchToVersion:d}),h==="edit"&&this.arcgisAlterVersion.emit({alterVersionParameters:t})}_handleSwitchToVersionChange(t){this._switchToVersion=t.target.checked}render(){let{selected:t,showBackButton:i,versionPropertiesElementProps:{closable:h,currentUser:d,state:m,strings:e,versionInfo:s},_mode:c,_ownerName:r,_versionName:a}=this,n=l`<calcite-button appearance=outline slot=footer width=full @click=${this._handleCancel}>${e.actions.cancelSave}</calcite-button><calcite-button appearance=solid slot=footer width=full @click=${this._handleSave}>${e.actions.saveVersion}</calcite-button>`,o=l`<calcite-label>${e.input.versionAccess}<calcite-chip-group label=access @calciteChipGroupSelect=${this._handleChange} selection-mode=single-persist><calcite-chip .selected=${c==="edit"&&s.access==="public"||c==="create"} label=public>${e.accessLevels.public}</calcite-chip><calcite-chip .selected=${c==="edit"&&s.access==="protected"} label=protected>${e.accessLevels.protected}</calcite-chip><calcite-chip .selected=${c==="edit"&&s.access==="private"} label=private>${e.accessLevels.private}</calcite-chip></calcite-chip-group></calcite-label>`,$=l`<calcite-label>${e.input.versionDescription}<calcite-text-area limit-text max-length=64 name=description resize=none rows=2 scale=s .value=${c==="edit"?s.description:""} @calciteTextAreaInput=${this._handleChange}></calcite-text-area></calcite-label>`,V=l`<calcite-label>${e.input.versionName}<calcite-input-text max-length=62 name=versionName .value=${c==="edit"?a:""} @calciteInputTextInput=${this._handleChange} ${v(this._versionNameInputElement)}></calcite-input-text></calcite-label>`,f=l`<calcite-label>${e.input.versionOwner}<calcite-input-text name=ownerName .value=${c==="edit"?r:d} @calciteInputTextInput=${this._handleChange}></calcite-input-text></calcite-label>`,C=c==="create"?l`<calcite-label layout=inline><calcite-checkbox checked name=switchToVersion @calciteCheckboxChange=${this._handleSwitchToVersionChange} ${v(this._switchToVersionCheckboxElement)}></calcite-checkbox>${e.actions.switchToVersion}</calcite-label>`:void 0,I=this._validationError?l`<calcite-notice closable kind=warning open scale=s width=full @calciteNoticeClose=${()=>this._validationError=void 0}><div slot=message>${this._validationError}</div></calcite-notice>`:void 0;return l`<calcite-flow-item .closable=${h} .description=${s?s.versionIdentifier.name:""} .heading=${s?e.actions.editVersion:e.actions.newVersion} .selected=${t} .showBackButton=${i} @calciteFlowItemClose=${this._handleClose} ${v(this._flowItemElement)}><calcite-panel .loading=${m==="executing"}><calcite-block expanded .label=${e.headers.versionProperties}>${V}${$}${o}${f}${C}${I}</calcite-block>${n}</calcite-panel></calcite-flow-item>`}};w("arcgis-version-management-version-properties",_);export{_ as ArcgisVersionManagementVersionProperties};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import h from"./KCEGLGM4.js";import{a as P}from"./POZ7OKIJ.js";import g from"./P6CDJ2IV.js";import"./VJVKFKSG.js";import e from"./SYRZLONH.js";import{a as y}from"./JP24H6WY.js";import{a as E}from"./JD74LG7K.js";import c from"./V6VLUKHQ.js";import b from"./7MO7E734.js";import{g as k}from"./Z7J6NDSB.js";import"./VWED2WAO.js";import a from"./3MWUCGFA.js";import"./QUZTFUWM.js";import{d as w}from"./RZ6SODVT.js";import{O as v,P as m,R as f,U as _,a as u,b as d,x as p}from"./CDSRIIHC.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:O},{property:a,subclass:C},,,,M,{d:b,f:T},{b:I}])=>{var $=u`.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)}}:host{width:fit-content;height:fit-content}`,F=Object.defineProperty,x=Object.getOwnPropertyDescriptor,e=(r,t,s,c)=>{for(var i=c>1?void 0:c?x(t,s):t,h=r.length-1,l;h>=0;h--)(l=r[h])&&(i=(c?l(t,s,i):l(i))||i);return c&&i&&F(t,s,i),i},W=15e3,o=class extends I{constructor(r){super(r)}destroy(){this._stopTracking()}get state(){return this._geolocationUsable?this.view&&!this.view.ready?"disabled":this._settingPosition||this._trackStartingTimeoutId!==void 0?"waiting":this.tracking?"tracking":this.error!=null?"error":"ready":"feature-unsupported"}get tracking(){return this._watchId!==void 0}start(){this.state==="disabled"||this.state==="feature-unsupported"||this._startTracking()}stop(){this.state==="disabled"||this.state==="feature-unsupported"||this._stopTracking()}_stopWatchingPosition(){this._watchId!==void 0&&(navigator.geolocation.clearWatch(this._watchId),this._watchId=void 0)}_stopTracking(){this._abortTrack(),this._clearWaitingTimer(),this._stopWatchingPosition(),this._clearGraphic()}_startTracking(){this._stopTracking();let r=P(async t=>{this._abortTrack();let s=new AbortController;this._trackController=s;let{timestamp:c,coords:i}=t,h=i.toJSON(),l={timestamp:c,coords:h};this.error=void 0;try{let n=this.positionFilterFunction;if(typeof n=="function"&&!n({position:l})||(await this.updatePosition(t,s),this._trackController!==s))return;this._clearWaitingTimer(),this._addGraphic(),this.currentPosition=t,this._trackController=void 0}catch(n){if(b(n))return;throw this._trackController=void 0,this.error=n,this._clearWaitingTimer(),n}},0);this._watchId=navigator.geolocation.watchPosition(t=>{this._settingPosition=r(t)?.catch(T)},this._handleWatchPositionError.bind(this),this.geolocationOptions??void 0),this._trackStartingTimeoutId=setTimeout(()=>{this._trackStartingTimeoutId=void 0},W)}_handleWatchPositionError(r){r.code===r.PERMISSION_DENIED&&this._stopTracking(),this.error=r}_abortTrack(){this._trackController?.abort(),this._trackController=void 0}_clearWaitingTimer(){clearTimeout(this._trackStartingTimeoutId),this._trackStartingTimeoutId=void 0,this._settingPosition=void 0}};e([a()],o.prototype,"_watchId",2);e([a()],o.prototype,"_trackStartingTimeoutId",2);e([a()],o.prototype,"_settingPosition",2);e([a()],o.prototype,"currentPosition",2);e([a()],o.prototype,"error",2);e([a()],o.prototype,"positionFilterFunction",2);e([a({readOnly:!0})],o.prototype,"state",1);e([a({readOnly:!0})],o.prototype,"tracking",1);e([a()],o.prototype,"start",1);e([a()],o.prototype,"stop",1);o=e([C("map-components.track.TrackViewModel")],o);var G=M(o),g=class extends v{constructor(){super(...arguments),this.messages=y(),this.viewModel=G(this),this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.currentPosition=this.viewModel.currentPosition,this.error=this.viewModel.error,this.geolocationOptions=this.viewModel.geolocationOptions,this.goToOverride=this.viewModel.goToOverride,this.goToLocationDisabled=this.viewModel.goToLocationEnabled,this.graphic=this.viewModel.graphic,this.icon="compass-north-circle",this.positionFilterFunction=this.viewModel.positionFilterFunction,this.rotationDisabled=this.viewModel.rotationEnabled,this.scale=this.viewModel.scale,this.state=this.viewModel.state,this.tracking=this.viewModel.tracking,this.visualScale="m",this.arcgisComplete=p(),this.arcgisError=p(),this.arcgisPropertyChange=k()("state"),this.arcgisReady=p()}static{this.properties={view:0,autoDestroyDisabled:5,currentPosition:0,error:0,geolocationOptions:0,goToOverride:0,goToLocationDisabled:7,graphic:0,icon:1,label:1,messageOverrides:0,positionFilterFunction:0,referenceElement:1,rotationDisabled:5,scale:9,state:0,tracking:36,visualScale:1}}static{this.styles=$}async destroy(){await this.manager.destroy()}async start(){this.viewModel.start()}async stop(){this.viewModel.stop()}loaded(){this.manager.onLifecycle(()=>[O(()=>this.viewModel.error,t=>{this.arcgisError.emit({error:t})}),O(()=>this.viewModel.currentPosition,t=>{this.arcgisComplete.emit({position:t})})])}_localizeError(t){if(t instanceof GeolocationPositionError)return t.code===GeolocationPositionError.PERMISSION_DENIED?this.messages?.permissionError:t.code===GeolocationPositionError.TIMEOUT?this.messages?.timeoutError:this.messages?.positionUnavailable;if(t instanceof Error)return t.message}_toggleTracking(){if(!this.viewModel)return;let{state:t}=this.viewModel;if(!(t==="feature-unsupported"||t==="disabled")){if(t==="tracking"||t==="waiting"){this.viewModel.stop();return}this.viewModel.start()}}render(){let{viewModel:t,messages:s,icon:c}=this,i=t?.state,h=i==="tracking",l=this._localizeError(this.viewModel?.error),n=(h?s?.stopTracking:s?.startTracking)??"",S=i==="feature-unsupported",D=(i==="tracking"?"pause":void 0)??c??void 0;return d`<div class=${m(w("root",E.arcgisButton))}>${!S&&d`<calcite-button .disabled=${i==="disabled"} .iconStart=${D} kind=neutral .label=${n} .loading=${i==="waiting"} @click=${this._toggleTracking} .scale=${this.visualScale} title=${n??f}></calcite-button>`||""}${l?d`<calcite-tooltip open overlay-positioning=fixed .referenceElement=${this.el}>${l}</calcite-tooltip>`:null}</div>`}};_("arcgis-track",g);return g},"core/reactiveUtils","core/accessorSupport/decorators",a,b,c,e,g,h)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import g from"./SYRZLONH.js";import{a as _}from"./JP24H6WY.js";import e from"./V6VLUKHQ.js";import d from"./7MO7E734.js";import"./Z7J6NDSB.js";import"./VWED2WAO.js";import a from"./3MWUCGFA.js";import"./QUZTFUWM.js";import"./RZ6SODVT.js";import{M as y,N as S,O as L,U as b,a as I,b as c,g as V,q as E,x as f}from"./CDSRIIHC.js";import"./H6RQVSYM.js";export default $arcgis.t(([{once:$,watch:A},T,{b:C},,,P])=>{var U=I`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}:host{display:flex;flex-direction:column;min-height:var(--arcgis-internal-panel-height-md, 420px);height:100%}calcite-notice{margin:var(--calcite-spacing-md)}`,O=P(T),N="map-components:version-management",u=class extends L{constructor(){super(...arguments),this.flowElement=y(),this.messages=_({blocking:!0}),this.viewModel=O(this),this._isInitialVersionInvalid=new Map,this._initialVersionInfos=[],this._showInvalidFeatureServiceNotice=!1,this.allowEditingDisabled=!1,this.autoDestroyDisabled=!1,this.closable=!1,this.pageSize=5,this.state=this.viewModel.state,this.versioningStates=this.viewModel.versioningStates,this.view=this.viewModel.view,this.arcgisReady=f(),this.arcgisVersioningStateChanged=f()}static{this.properties={versionList:16,_showInvalidFeatureServiceNotice:16,allowEditingDisabled:5,autoDestroyDisabled:5,closable:7,initialVersionInfos:0,icon:1,label:3,messageOverrides:0,mode:1,pageSize:9,referenceElement:1,state:32,versioningStates:0,view:0}}static{this.styles=U}get initialVersionInfos(){return this._initialVersionInfos}set initialVersionInfos(e){this._initialVersionInfos=e.map(i=>({...i,url:this._removeTrailingSlash(i.url)}))}async destroy(){await this.manager.destroy()}async load(){$(()=>this.viewModel.state==="ready").then(()=>{this.initialVersionInfos.forEach(e=>{try{this._changeToInitialVersion(e)}catch(i){E(this)(i)}})}),this.manager.onLifecycle(()=>[A(()=>this.viewModel.state,e=>{let{flowElement:{value:i},versionList:r}=this,t=i?.getElementsByTagName("arcgis-version-management-version-properties")[0];if(e==="disabled"&&i){t&&this._removeVersionPropertiesFlowItem(i),r&&this._removeVersionListFlowItem(i);return}r&&(r.versionListElementProps={...r.versionListElementProps,executionError:this.viewModel.executionError},r.versionListElementProps={...r.versionListElementProps,state:e}),t&&(t.versionPropertiesElementProps={...t.versionPropertiesElementProps,state:e})})])}disconnectedCallback(){super.disconnectedCallback(),this.versionPropertiesContainer?.remove()}_removeTrailingSlash(e){return e.replace(/\/+$/u,"")}_createVersionPropertiesFlowItem(e,i){let{closable:r,viewModel:t,viewModel:{state:n}}=this,o={closable:r,currentUser:t.userLookup.get(e),isVersionAdministrator:t.versionAdministratorLookup.get(e),serviceUrl:e,state:n,strings:this.messages,versionInfo:i};this.versionPropertiesContainer=document.createElement("div");let s=V(c`<arcgis-version-management-version-properties .versionPropertiesElementProps=${o} selected show-back-button></arcgis-version-management-version-properties>`,this.versionPropertiesContainer),a=Array.from(s.parentNode.childNodes).find(v=>v.nodeName.toUpperCase()==="ARCGIS-VERSION-MANAGEMENT-VERSION-PROPERTIES");return this.listenOn(a,"arcgisFlowItemBack",()=>{this._removeVersionPropertiesFlowItem(this.flowElement.value)}),this.listenOn(a,"calciteFlowItemBack",v=>{v.preventDefault(),this._removeVersionPropertiesFlowItem(this.flowElement.value),this.versionList&&(this.versionList.selected=!0)}),this.listenOn(a,"calciteFlowItemClose",this._handleFlowItemClose),this.listenOn(a,"arcgisCreateVersion",this._handleCreateVersion),this.listenOn(a,"arcgisAlterVersion",this._handleAlterVersion),a}_getLoadError(e){let{messages:i}=this;switch(e){case"no-feature-services":return i.loadErrors.noFeatureServices;case"no-view-property":return i.loadErrors.noViewProperty;default:return e}}async _handleAlterVersion(e){let{flowElement:{value:i},viewModel:r}=this,{alterVersionParameters:t}=e.detail;await r.alterVersion(t).then(async n=>{n&&this.arcgisVersioningStateChanged.emit({type:"version-changed",versionIdentifier:t.versionIdentifier,versioningState:r.versioningStateLookup.get(t.featureServerUrl)}),await this._refreshVersionList(t.featureServerUrl)}).finally(()=>{i&&this._removeVersionPropertiesFlowItem(i)})}_handleCreateVersion(e){let{flowElement:{value:i},viewModel:r}=this,{createVersionParameters:t,switchToVersion:n}=e.detail;r.createVersion(t).then(async o=>{o&&this.arcgisVersioningStateChanged.emit({type:"version-created",versionIdentifier:o.versionIdentifier,versioningState:r.versioningStateLookup.get(t.featureServerUrl)}),n&&await this.viewModel.changeVersion(t.featureServerUrl,o.versionIdentifier.name,o.versionIdentifier.guid).then(s=>{s&&this.arcgisVersioningStateChanged.emit({type:"version-switched",versionIdentifier:o.versionIdentifier,versioningState:r.versioningStateLookup.get(t.featureServerUrl)})}),await this._refreshVersionList(t.featureServerUrl)}).finally(()=>{i&&this._removeVersionPropertiesFlowItem(i)})}_changeToInitialVersion(e){let{_isInitialVersionInvalid:i,viewModel:r}=this,{url:t,name:n}=e,o=r.versioningStateLookup.get(t);if(!o)throw this._showInvalidFeatureServiceNotice=!0,new Error(`${N} - no versioning state found for feature service ${t}`);let s=o?.versionInfos.find(h=>h.versionIdentifier.name===n);if(!s)throw i.set(t,!0),new Error(`${N} - version ${n} not found in the versioning state for feature service ${t}`);let a=s.versionIdentifier,v=o?.currentVersionInfo?.versionIdentifier;a.guid!==v?.guid&&r.changeVersion(t,a.name,a.guid)}_handleFlowItemClose(){let e=document.querySelector("arcgis-version-management");e.parentElement?.removeChild(e)}async _handleNewVersionAction(e){let i=this._createVersionPropertiesFlowItem(e.detail.serviceUrl,void 0);this.flowElement.value?.appendChild(i),this.versionList&&(this.versionList.selected=!1)}async _handleManageVersionAction(e){let{actionType:i,serviceUrl:r,versionInfo:t}=e.detail,{viewModel:n,flowElement:o}=this;switch(i){case"changeVersion":{n.changeVersion(r,t.versionIdentifier.name,t.versionIdentifier.guid).then(s=>{s&&this.arcgisVersioningStateChanged.emit({type:"version-switched",versionIdentifier:t.versionIdentifier,versioningState:n.versioningStateLookup.get(r)});let{versionList:a}=this;a&&(a.versionListElementProps={...a.versionListElementProps,currentVersionIdentifier:n.versioningStateLookup.get(r).currentVersionInfo.versionIdentifier})});break}case"deleteVersion":{n.deleteVersion(r,t.versionIdentifier.name,t.versionIdentifier.guid).then(async s=>{s&&this.arcgisVersioningStateChanged.emit({type:"version-deleted",versionIdentifier:t.versionIdentifier,versioningState:n.versioningStateLookup.get(r)}),await this._refreshVersionList(r)});break}case"editVersion":{let s=this._createVersionPropertiesFlowItem(r,t);o.value?.appendChild(s),this.versionList&&(this.versionList.selected=!1);break}}}async _refreshVersionList(e){let{flowElement:{value:i},versionList:r,viewModel:t}=this;if(i){let n=await t.getVersionInfos(e),o=i.getElementsByTagName("arcgis-version-management-service-item");for(let s of o)s.serviceItemElementProps.serviceUrl===e&&(s.serviceItemElementProps={...s.serviceItemElementProps,versionInfos:n});r&&(r.versionListElementProps={...r.versionListElementProps,currentVersionIdentifier:t.versioningStateLookup.get(e).currentVersionInfo.versionIdentifier,versionInfos:n})}}_removeVersionListFlowItem(e){for(let i of e.childNodes)i.nodeName.toUpperCase()==="ARCGIS-VERSION-MANAGEMENT-VERSION-LIST"&&(e.removeChild(i),this.versionList=void 0),i.nodeName.toUpperCase()==="CALCITE-FLOW-ITEM"&&(i.hidden=!1)}_removeVersionPropertiesFlowItem(e){for(let i of e.childNodes)i.nodeName.toUpperCase()==="ARCGIS-VERSION-MANAGEMENT-VERSION-PROPERTIES"&&e.removeChild(i)}render(){let{allowEditingDisabled:e,closable:i,flowElement:{value:r},initialVersionInfos:t,_isInitialVersionInvalid:n,label:o,messages:s,mode:a,pageSize:v,versionList:h,viewModel:d,viewModel:{loadError:w,state:g}}=this,k=Array.from(d.serviceNameLookup,([l,m])=>({url:l,name:m})),F=g!=="disabled"?k.map(l=>{let m={allowEditing:!e,closable:i,currentUser:d.userLookup.get(l.url),currentVersionIdentifier:d.versioningStateLookup.get(l.url).currentVersionInfo.versionIdentifier,executionError:void 0,flowElement:r,heading:o,initialVersionInfos:t,isInitialVersionInvalid:n,isVersionAdministrator:d.versionAdministratorLookup.get(l.url),isVersioningApiAvailable:(d.serverVersionLookup.get(l.url)??0)>=11.2,mode:a,pageSize:v,serviceName:l.name,state:g,serviceUrl:l.url,strings:s,versionInfos:d.versioningStateLookup.get(l.url)?.versionInfos??[]};return c`<arcgis-version-management-service-item .serviceItemElementProps=${m} @arcgisFlowItemBack=${()=>{r&&(this._removeVersionListFlowItem(r),this.versionList=void 0)}} @arcgisFlowItemClose=${()=>this._handleFlowItemClose()} @arcgisGetVersions=${async p=>{await this._refreshVersionList(p.detail.serviceUrl)}} @arcgisManageVersion=${this._handleManageVersionAction} @arcgisNewVersion=${this._handleNewVersionAction} @arcgisCreateVersionList=${p=>this.versionList=p.detail}></arcgis-version-management-service-item>`}):void 0,x=g==="disabled"&&w!=null?c`<calcite-notice kind=warning open scale=s slot=footer width=full><div slot=message>${this._getLoadError(w)}</div></calcite-notice>`:void 0,M=this._showInvalidFeatureServiceNotice?c`<calcite-notice closable kind=warning open scale=s slot=content-top width=full icon @calciteNoticeClose=${()=>this._showInvalidFeatureServiceNotice=!1}><div slot=title>${s.headers.invalidInitialFeatureService}</div><div slot=message>${s.loadErrors.invalidInitialFeatureService}</div></calcite-notice>`:void 0;return c`<div class="root"><calcite-flow custom-item-selectors="arcgis-version-management-version-list, arcgis-version-management-version-properties" ${S(this.flowElement)}><calcite-flow-item .closable=${this.closable} .heading=${C(o)?s.label:o} @calciteFlowItemClose=${()=>this._handleFlowItemClose()} .selected=${!h}>${M}${g==="loading"||g==="executing"?c`<calcite-loader .label=${`${s.label} - loading`}></calcite-loader>`:c`<calcite-panel>${F}${x}</calcite-panel>`}</calcite-flow-item></calcite-flow></div>`}};b("arcgis-version-management",u);return u},"core/reactiveUtils","versionManagement/VersionManager",a,d,e,g)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{d as c}from"./VEZP32RO.js";import{a as s}from"./POKO37D3.js";import{O as p,P as g,U as u,a as m,b as i}from"./
|
|
2
|
+
import{d as c}from"./VEZP32RO.js";import{a as s}from"./POKO37D3.js";import{O as p,P as g,U as u,a as m,b as i}from"./CDSRIIHC.js";import"./H6RQVSYM.js";var b=m`:host{--calcite-label-margin-bottom: 0;gap:var(--calcite-spacing-md);flex-direction:column;display:flex}.label{display:block}.discrete-label-text{font-weight:var(--calcite-font-weight-medium);opacity:var(--calcite-opacity-disabled)}.label-open{&:not(.label-empty){margin-bottom:var(--calcite-spacing-xs)}.discrete-label-text{opacity:1}}arcgis-shadow-cast-discrete-config{padding:0 var(--calcite-spacing-xs)}`,d=class extends p{constructor(){super(...arguments),this.scale="s",this.minMinDuration=0,this.maxMinDuration=c(8,"hours","milliseconds"),this.hideColorPicker=!1,this.hideSlider=!1,this.hideContextOptions=!1,this.hideContextToggle=!1,this.hideContextColorPicker=!1,this.hideContextInterval=!1}static{this.properties={options:0,scale:1,minMinDuration:9,maxMinDuration:9,messages:0,hideColorPicker:5,hideSlider:5,hideContextOptions:5,hideContextToggle:5,hideContextColorPicker:5,hideContextInterval:5}}static{this.styles=b}render(){let{options:o,scale:t}=this,e=this.messages?.minDuration;return i`${s({hidden:this.hideSlider,children:i`<calcite-label .scale=${t}>${e?.minDurationLabel}<calcite-slider fill-placement=end label-ticks .min=${r(this.minMinDuration)} .max=${r(this.maxMinDuration)} .value=${r(o.minDuration)} snap step=0.5 .scale=${t} ticks=1 @calciteSliderInput=${a=>{o.minDuration=f(a.currentTarget.value)}}></calcite-slider></calcite-label>`})}${s({hidden:this.hideColorPicker,children:i`<arcgis-color-select .color=${this.options.color} .label=${e?.colorLabel} @arcgisColorChanged=${a=>{o.color=a.detail}}></arcgis-color-select>`})}${s({hidden:this.hideContextOptions,children:this._renderContextOptions()})}`}_renderContextOptions(){let{options:o,scale:t}=this,e=o.contextEnabled,a=this.messages?.minDuration,l=!this.hideContextToggle,x=!this.hideContextColorPicker,C=!this.hideContextInterval,h=x||C;if(!(!l&&(!e||!h)))return i`<div><calcite-label class=${g({label:!0,"label-open":e,"label-empty":!h})} .layout=${l?"inline-space-between":"default"} .scale=${t}><span class="discrete-label-text">${a?.discreteLabel??"foo"}</span>${s({hidden:!l,children:i`<calcite-switch .checked=${e} .scale=${t} @calciteSwitchChange=${$=>{this.options.contextEnabled=$.target.checked}}></calcite-switch>`})}</calcite-label>${s({hidden:!e,children:i`<arcgis-shadow-cast-discrete-config .hideColorPicker=${this.hideContextColorPicker} .hideInterval=${this.hideContextInterval} .messages=${this.messages} .options=${this.options.contextOptions} .scale=${t}></arcgis-shadow-cast-discrete-config>`})}</div>`}};function r(n){return c(n,"milliseconds","hours")}function f(n){return Math.round(c(n,"hours","milliseconds"))}u("arcgis-shadow-cast-min-duration-config",d);export{d as ArcgisShadowCastMinDurationConfig};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import b from"./
|
|
2
|
+
import b from"./X6PWBP6M.js";import a from"./P6CDJ2IV.js";export default $arcgis.t(([{isZoomScreenSize:m},{d:g},{d:u}])=>{function q(e){if(e.icon)return e.icon;if(!("image"in e&&e.image)&&!e.className)return"question"}function M(e){return e?{backgroundImage:`url(${e})`}:{}}function b(e){let{selectedFeature:r,location:o,view:t}=e;return t?r??o??null:null}function v(e){return"browseClusterEnabled"in e&&"featureMenuOpen"in e}function h(e){return"aggregatedFeaturesEnabled"in e}async function E(e,r,o){let{location:t,selectedFeature:a,view:i,zoomFactor:n}=e;await o?.viewModel?.updateGeometry();let s=o?.graphic,d=s?.geometry?s:b(e);if(!i||!d)throw new Error("Cannot zoom to location without a target and view.");let w=i.scale/n,c=s?.geometry??e.selectedFeature?.geometry??t,l=c?.type==="point"&&await m(s??a,i);r.active=!0,r.disabled=!0;try{await e.zoomTo({target:{target:d,scale:l?w:void 0}})}catch(f){if(g(f))return;throw new Error("Could not zoom to the location of the graphic.")}finally{r.active=!1,r.disabled=!1,l&&e.location!==c&&(e.location=c)}}async function p(e,r){let o=await e.whenLayerView(u(r)),t=o.createQuery(),a=r.getObjectId();return t.aggregateIds=a!=null?[a]:[],[o,t]}async function y(e,r){let{selectedFeature:o,view:t}=e;if(t?.type!=="2d")throw new Error("zoomToAggregate:invalid-view: View must be 2d MapView.");if(!o?.isAggregate)throw new Error("zoomToAggregate:invalid-selectedFeature: Selected feature must represent an aggregate graphic.");let[a,i]=await p(t,o);r.active=!0,r.disabled=!0;let{extent:n}=await a.queryExtent(i);n&&await e.zoomTo({target:n}),r.active=!1,r.disabled=!1}var T=async(e,r)=>{if(!e)throw new Error("trigger-action:missing-arguments: Event has no action");let{disabled:o,id:t}=e;if(!t)throw new Error("trigger-action:invalid-action: action.id is missing");if(o)throw new Error("trigger-action:invalid-action: Action is disabled");if(t==="zoom-to-feature")return await E(r,e).catch(a=>{if(!g(a))throw a});if(t==="zoom-to-aggregated-features")return await y(r,e);if(t==="browse-clustered-features"){if(!v(r))throw new Error("trigger-action:invalid-view-model: browse-clustered-features requires FeaturesViewModel.");r.browseClusterEnabled=!r.browseClusterEnabled,r.featureMenuOpen=r.browseClusterEnabled;return}if(t==="browse-aggregated-features"){if(!h(r))throw new Error("trigger-action:invalid-view-model: browse-aggregated-features requires Features.");r.aggregatedFeaturesEnabled=!r.aggregatedFeaturesEnabled;return}if(t==="remove-selected-feature"){r.open=!1;let{selectedFeature:a}=r;if(!a)throw new Error("trigger-action:missing-selected-feature: Cannot remove selected feature without a selected feature.");let i=u(a);i?i.remove(a):r.view?.graphics.remove(a)}};return{a:q,b:M,c:E,d:T}},"applications/Components/actionUtils",a,b)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import{a as w}from"./O5T75PGZ.js";import{a as b}from"./JP24H6WY.js";import c from"./7MO7E734.js";import{g as $}from"./Z7J6NDSB.js";import"./VWED2WAO.js";import a from"./3MWUCGFA.js";import"./QUZTFUWM.js";import"./RZ6SODVT.js";import{M as _,N as M,O as v,Q as u,R as g,U as f,V as y,a as p,b as r,x as S}from"./CDSRIIHC.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:T},R,,{a:L}])=>{var m=new Set(["ar-iq","ar-kw","bg-bg","cs-cz","da-dk","da-gl","de-at","de-ch","de-de","de-li","el-gr","en-ae","en-au","en-ca","en-eg","en-gb","en-hk","en-id","en-ie","en-il","en-in","en-iq","en-ke","en-lu","en-mo","en-my","en-nz","en-rw","en-sg","en-us","en-vi","en-wo","en-za","es-ar","es-bo","es-cl","es-co","es-cr","es-es","es-gt","es-mx","es-ni","es-pe","es-pr","es-sv","es-ve","et-ee","fi-fi","fr-ci","fr-fr","fr-ma","fr-mg","fr-ml","fr-tn","is-is","it-it","ja-jp","ko-kr","lt-lt","lv-lv","nl-be","nl-nl","nl-sr","nn-no","pl-pl","pt-br","pt-pt","ro-ro","ru-ru","sk-sk","sv-se","th-th","zh-cn","zh-tw"]),P={ar:"iq",bg:"bg",cs:"cz",da:"dk",de:"de",el:"gr",en:"us",es:"es",et:"ee",fi:"fi",fr:"fr",is:"is",it:"it",ja:"jp",ko:"kr",lt:"lt",lv:"lv",nl:"nl",nn:"no",pl:"pl",pt:"br",ro:"ro",ru:"ru",sk:"sk",sv:"se",th:"th",zh:"cn"},k=p`:host{display:block;width:310px;max-width:100%}.slider{height:50px}.scale-indicator-container{position:relative;width:100%;margin-top:2px}.scale-indicator-icon{transform:scale(.8,1.7);margin-left:-6px;width:1px;--calcite-icon-color: var(--calcite-color-text-3)}.scale-menu-list{max-height:220px;overflow-y:auto}.scale-menu-input{max-width:120px}.scale-menu-button-container{display:flex;direction:ltr;justify-content:space-between}.scale-menu-button{min-width:0}:dir(rtl) .scale-menu-button-container>*{direction:rtl}.preview-container{padding:6px;background-color:var(--calcite-color-foreground-1);box-shadow:0 1px 2px #0000004d}`,l=[{id:"world",scale:147914382,minScale:147914382,maxScale:1e8},{id:"continent",scale:5e7,minScale:99999999,maxScale:35e6},{id:"countriesBig",scale:25e6,minScale:34999999,maxScale:15e6},{id:"countriesSmall",scale:12e6,minScale:14999999,maxScale:7e6},{id:"statesProvinces",scale:6e6,minScale:6999999,maxScale:4e6},{id:"stateProvince",scale:3e6,minScale:3999999,maxScale:2e6},{id:"counties",scale:15e5,minScale:1999999,maxScale:1e6},{id:"county",scale:75e4,minScale:999999,maxScale:5e5},{id:"metropolitanArea",scale:32e4,minScale:499999,maxScale:25e4},{id:"cities",scale:16e4,minScale:249999,maxScale:12e4},{id:"city",scale:8e4,minScale:119999,maxScale:6e4},{id:"town",scale:4e4,minScale:59999,maxScale:3e4},{id:"neighborhood",scale:2e4,minScale:29999,maxScale:15e3},{id:"streets",scale:1e4,minScale:14999,maxScale:7500},{id:"street",scale:5e3,minScale:7499,maxScale:4e3},{id:"buildings",scale:2500,minScale:3999,maxScale:2e3},{id:"building",scale:1250,minScale:1999,maxScale:801},{id:"smallBuilding",scale:800,minScale:800,maxScale:401},{id:"rooms",scale:400,minScale:400,maxScale:101},{id:"room",scale:100,minScale:100,maxScale:0}],x=class extends v{constructor(){super(...arguments),this.messages=b(),this._sliderRef=_(),this._activeMenu=null,this._customScaleSelected=null,this._portalRegion=null,this._layerMaxScaleLimit=l[l.length-1].maxScale,this._layerMinScaleLimit=l[0].minScale,this.autoDestroyDisabled=!1,this.disabled=!1,this.hidePreview=!1,this.hideMaxScaleMenu=!1,this.hideMinScaleMenu=!1,this.icon="actual-size",this.maxScale=0,this.maxScaleLimit=l[l.length-1].maxScale,this.minScale=0,this.minScaleLimit=l[0].minScale,this.mode="range",this.showWorldValue=!1,this.view=L(this),this.arcgisChange=S(),this.arcgisInput=S(),this.arcgisPropertyChange=$()("state","minScale","maxScale"),this.arcgisReady=S()}static{this.properties={_activeMenu:16,_customScaleSelected:16,_portalRegion:16,_layerMaxScaleLimit:16,_layerMinScaleLimit:16,autoDestroyDisabled:5,disabled:7,hidePreview:5,hideMaxScaleMenu:5,hideMinScaleMenu:5,icon:1,label:1,layer:0,maxScale:9,maxScaleLimit:9,minScale:9,minScaleLimit:9,mode:1,referenceElement:1,region:1,showWorldValue:5,state:32,view:0}}static{this.styles=k}get state(){let{view:e,layer:a}=this;return!e&&!a||!e&&a?.loadStatus==="loaded"||!a&&e?.ready||e?.ready&&a?.loadStatus==="loaded"?"ready":"disabled"}async destroy(){await this.manager.destroy()}willUpdate(e){if((e.has("maxScaleLimit")||e.has("minScaleLimit"))&&(this.minScaleLimit===0&&(this.minScaleLimit=l[0].minScale),this.maxScaleLimit===0&&(this.maxScaleLimit=l[l.length-1].maxScale),this.minScaleLimit=Math.min(this.minScaleLimit,l[0].minScale),this.maxScaleLimit=Math.max(this.maxScaleLimit,l[l.length-1].maxScale),this.minScale!==0&&(this.minScale=Math.min(this.minScale,this._interactiveMinScale)),this.maxScale!==0&&(this.maxScale=Math.max(this.maxScale,this._interactiveMaxScale)),this.hasUpdated&&this._syncLayerScale()),e.has("maxScale")||e.has("minScale")){if(this.minScale!==0){let a=this._clampScale("min",this.minScale);this.minScale=a===this.minScaleLimit?0:a}if(this.maxScale!==0){let a=this._clampScale("max",this.maxScale);this.maxScale=a===this.maxScaleLimit?0:a}}e.has("layer")&&(this.layer?this.layer.load().catch(()=>{}):(this._layerMinScaleLimit=l[0].minScale,this._layerMaxScaleLimit=l[l.length-1].maxScale)),e.has("mode")&&(this.mode==="max-scale-only"?this.minScale=0:this.mode==="min-scale-only"&&(this.maxScale=0),e.get("mode")!==void 0&&this._syncLayerScale())}loaded(){R.getDefault().load().then(e=>{let a=e.user?.culture??e.culture;a&&(this._portalRegion=a.split("-")[1]?.toLowerCase()??null)}).catch(()=>{}),this.manager.onLifecycle(()=>[T(()=>this.view?.scale,()=>this.requestUpdate(),{initial:!0}),T(()=>({loaded:this.layer?.loadStatus==="loaded",ready:this.view?.ready}),({loaded:e,ready:a})=>{if(!e||!a||!this.layer)return;this._layerMinScaleLimit=l[0].minScale,this._layerMaxScaleLimit=l[l.length-1].maxScale;let t=this.layer.type==="wcs"||this.layer.type==="imagery-tile"&&this.layer.raster?.tileType==="Raster"?null:"tileInfo"in this.layer?this.layer.tileInfo?.lods:null;if(t)!("resampling"in this.layer)||this.layer.resampling||(this._layerMinScaleLimit=t[0].scale===0?l[0].minScale:Math.min(l[0].minScale,t[0].scale),this._layerMaxScaleLimit=t[t.length-1].scale);else{let s=this.layer&&"maxScaleRange"in this.layer?this.layer.maxScaleRange:null,c=0,n=0;s&&(c=s.minScale,n=s.maxScale),n!==0&&(this._layerMaxScaleLimit=n),c!==0&&(this._layerMinScaleLimit=c)}let i=this.layer;i&&"minScale"in i&&"maxScale"in i&&(i.minScale!==0&&this.minScale===0&&(this.minScale=Math.min(i.minScale,this._interactiveMinScale)),i.maxScale!==0&&this.maxScale===0&&(this.maxScale=Math.max(i.maxScale,this._interactiveMaxScale)))},{initial:!0})])}get _interactiveMinScale(){return Math.min(this.minScaleLimit,this._layerMinScaleLimit)}get _interactiveMaxScale(){return Math.max(this.maxScaleLimit,this._layerMaxScaleLimit)}get _effectiveMinScale(){return this.minScale===0?this._interactiveMinScale:this.minScale}get _effectiveMaxScale(){return this.maxScale===0?this._interactiveMaxScale:this.maxScale}get _sliderFullRangeMin(){return this._mapScaleToSlider(this.minScaleLimit)}get _sliderFullRangeMax(){return this._mapScaleToSlider(this.maxScaleLimit)}_clampScale(e,a){return e==="min"?Math.min(Math.max(a,this._effectiveMaxScale+1),this._interactiveMinScale):Math.max(Math.min(a,this._effectiveMinScale-1),this._interactiveMaxScale)}_getDropdownLabel(e){let a=e==="min"?this._effectiveMinScale:this._effectiveMaxScale,t=Math.floor(this._mapScaleToSlider(a)),i=this.messages.scaleRangeLabels;return i?i[l[t].id]:""}_getSpriteSheetFile(){if(this.region){let t=this.region.toLowerCase(),i=`${this.messages._t9nLocale}-${t}`;if(m.has(i))return i;for(let s of m)if(s.endsWith(`-${t}`))return s}let e=this.messages._lang.toLowerCase();if(m.has(e))return e;if(this._portalRegion){let t=`${this.messages._t9nLocale}-${this._portalRegion}`;if(m.has(t))return t}let a=P[this.messages._t9nLocale];if(a){let t=`${this.messages._t9nLocale}-${a}`;if(m.has(t))return t}for(let t of m)if(t.startsWith(`${this.messages._t9nLocale}-`))return t;return"en-wo"}_handleCustomScaleInput(e,a){let t=Number.parseFloat(a);this._setScale(e,t)}_handleSliderThumbDrag(){let e=this._sliderRef.value;if(e){if(this.mode==="max-scale-only"){let a=Math.max(this._mapSliderToScale(e.values[0]),this._interactiveMaxScale);this.maxScale=a===this._interactiveMaxScale?0:a}else if(this.mode==="min-scale-only"){let a=Math.min(this._mapSliderToScale(e.values[0]),this._interactiveMinScale);this.minScale=a===this._interactiveMinScale?0:a}else{let a=Math.min(this._mapSliderToScale(e.values[0]),this._interactiveMinScale),t=Math.max(this._mapSliderToScale(e.values[1]),this._interactiveMaxScale);this.minScale=a===this._interactiveMinScale?0:a,this.maxScale=t===this._interactiveMaxScale?0:t}this._syncLayerScale()}}_mapScaleToSlider(e){let a=Math.min(l[0].minScale,Math.max(l[l.length-1].maxScale,e)),t=l.findIndex(n=>a>=n.maxScale&&a<=n.minScale),i=l[t],s=t,c=t+.9999;return i?s+(a-i.minScale)*(c-s)/(i.maxScale-i.minScale):0}_mapSliderToScale(e){let a=Math.min(l.length-1,Math.max(0,Math.floor(e))),{maxScale:t,minScale:i}=l[a],s=a,c=s+.9999;return i+(e-s)*(t-i)/(c-s)}_setScale(e,a){e==="min"?this.minScale=a===0?0:this._clampScale("min",a):this.maxScale=a===0?0:this._clampScale("max",a),this._syncLayerScale(),this._activeMenu=null}_syncLayerScale(){this.layer&&"minScale"in this.layer&&"maxScale"in this.layer&&(this.layer.minScale=this.mode==="max-scale-only"?0:this._effectiveMinScale,this.layer.maxScale=this.mode==="min-scale-only"?0:this._effectiveMaxScale)}_renderScalePreviewPopover(){let e=this._renderScalePreview();return this.hidePreview||!e?null:r`<div slot=popover>${e}</div>`}render(){let e=this._mapScaleToSlider(this._interactiveMinScale),a=this._mapScaleToSlider(this._interactiveMaxScale),t=this._sliderFullRangeMin,i=this._sliderFullRangeMax;return r`<div><arcgis-slider class="slider" .disabled=${this.disabled} layout=horizontal .fillPlacement=${this.mode==="max-scale-only"?"start":this.mode==="min-scale-only"?"end":void 0} .fullRangeMin=${t<e?t:void 0} .fullRangeMax=${i>a?i:void 0} .max=${a} .min=${e} .labelFormatter=${(s,c,n)=>n(Math.round(this._mapSliderToScale(s)))} .values=${this.mode==="max-scale-only"?[this._mapScaleToSlider(this._effectiveMaxScale)]:this.mode==="min-scale-only"?[this._mapScaleToSlider(this._effectiveMinScale)]:[this._mapScaleToSlider(this._effectiveMinScale),this._mapScaleToSlider(this._effectiveMaxScale)]} @arcgisInput=${this._handleSliderThumbDrag} ${M(this._sliderRef)}>${this._renderScalePreviewPopover()}${this.view?.scale!=null&&this._renderCurrentScaleIndicator(this.view.scale)||""}</arcgis-slider><div class="scale-menu-button-container" slot=content-end>${this.mode!=="max-scale-only"&&!this.hideMinScaleMenu?[this._renderScaleMenuButtons("min"),this._renderScaleMenuPopover("min")]:r`<div></div>`}${this.mode!=="min-scale-only"&&!this.hideMaxScaleMenu&&[this._renderScaleMenuButtons("max"),this._renderScaleMenuPopover("max")]||""}</div></div>`}_renderCurrentScaleIndicator(e){let a=this._sliderFullRangeMin,t=this._sliderFullRangeMax-a,i=Math.min(100,Math.max(0,(this._mapScaleToSlider(e)-a)/t*100));return w("scale-indicator",r`<div class="scale-indicator-container" slot=content-end><div class="scale-indicator-icon" style=${u({position:"absolute",left:`${i}%`})} .title=${`${this.messages.currentScale} 1:${Math.round(e).toLocaleString(this.messages._t9nLocale)}`}><calcite-icon icon=caret-up scale=s></calcite-icon></div></div>`)}_renderCustomScaleValue(e,a){let t=Math.round(a).toString();return r`<calcite-list-item .label=${this.messages?.featuredScaleLabels?.custom} .selected=${this._customScaleSelected===e} @calciteListItemSelect=${i=>{let s=i.target.querySelector("calcite-input-number");this._handleCustomScaleInput(e,s?.value??""),this._customScaleSelected=e}}><calcite-input-number dir=ltr class="scale-menu-input" slot=content-end group-separator inputmode=numeric .max=${l[0].minScale} .min=${l[l.length-1].maxScale} number-button-type=none .placeholder=${this.messages?.customScaleInputTooltip} prefix-text=1: scale=s step=1 .value=${t} @click=${i=>i.stopPropagation()} @keydown=${i=>{i.key==="Enter"&&(this._handleCustomScaleInput(e,i.target.value),this._customScaleSelected=e,i.stopPropagation())}}></calcite-input-number></calcite-list-item>`}_renderScaleMenuButtons(e){return r`<calcite-button .disabled=${this.disabled} class="scale-menu-button" .id=${`scale-menu-button-${e}`} icon-end=chevron-down scale=s .appearance=${this._activeMenu===e?"outline":"transparent"}>${this._getDropdownLabel(e)}</calcite-button>`}_renderScaleMenuPopover(e){return r`<calcite-popover auto-close .label=${`${e==="min"?"Min":"Max"} scale menu`} .referenceElement=${`scale-menu-button-${e}`} .placement=${e==="max"?"bottom-end":"bottom-start"} .open=${this._activeMenu===e} scale=s @calcitePopoverOpen=${()=>this._activeMenu=e} @calcitePopoverClose=${()=>{this._activeMenu===e&&(this._activeMenu=null)}}>${this._renderScaleMenu(e)}</calcite-popover>`}_renderScaleMenu(e){let a=Math.floor(this._mapScaleToSlider(this._effectiveMaxScale)),t=Math.floor(this._mapScaleToSlider(this._effectiveMinScale)),i=e==="min"?this._effectiveMinScale:this._effectiveMaxScale,s=this.messages.featuredScaleLabels;if(!s)return;let c=Math.floor(this._mapScaleToSlider(this._interactiveMaxScale)),n=Math.floor(this._mapScaleToSlider(this._interactiveMinScale)),d=l.filter((o,h)=>e==="min"?h<a&&h>=n:h>t&&h<=c).map(o=>this._renderScaleMenuItem({scaleLabel:s[o.id],scaleValue:o.scale,isSelected:i===o.scale,valueVisible:o.id!=="world"||this.showWorldValue,type:e}));return r`<calcite-list label="Scale Menu List" scale=s class="scale-menu-list" selection-appearance=icon selection-mode=single-persist>${this.view?.scale!=null&&this._renderCustomScaleValue(e,i)||""}${this.view?.scale!=null?this._renderScaleMenuItem({scaleValue:this.view.scale,scaleLabel:s.current,isSelected:i===this.view.scale,valueVisible:!0,type:e}):null}${d}</calcite-list>`}_renderScaleMenuItem(e){let{scaleValue:a,scaleLabel:t,isSelected:i,valueVisible:s}=e,c=a===l[0].scale?` ${this.messages.aboveSuffix}`:a===l[l.length-1].scale?` ${this.messages.belowSuffix}`:"";return r`<calcite-list-item .label=${t} .selected=${i&&this._customScaleSelected!==e.type} .description=${s?`1:${Math.round(a).toLocaleString(this.messages._t9nLocale)}${c}`:void 0} @calciteListItemSelect=${()=>{this._setScale(e.type,a),this._customScaleSelected=null}}></calcite-list-item>`}_renderScalePreview(){let e=this._sliderRef.value?.activeValue;if(typeof e!="number")return null;let a=Math.min(l.length-1,Math.max(0,Math.floor(e))),t=5,i=128,s=i*(a%t),c=i*Math.floor(a/t),n=`-${s}px -${c}px`,d=this._getSpriteSheetFile();return r`<div class="preview-container"><img src=${y(`./assets/slider-scale-range/images/${d}.avif`)??g} style=${u({display:"block",height:`${i}px`,width:`${i}px`,objectPosition:n,objectFit:"none"})}></div>`}};f("arcgis-slider-scale-range",x);return x},"core/reactiveUtils","portal/Portal",a,c)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import{a as $,b as R}from"./WQISNLF7.js";import{a as s}from"./O5T75PGZ.js";import k from"./SYRZLONH.js";import{a as f}from"./JP24H6WY.js";import{a as n}from"./JD74LG7K.js";import j from"./V6VLUKHQ.js";import e from"./7MO7E734.js";import{g}from"./Z7J6NDSB.js";import"./VWED2WAO.js";import c from"./3MWUCGFA.js";import"./QUZTFUWM.js";import{i as v}from"./RZ6SODVT.js";import{N as h,O as u,P as p,Q as m,R as a,U as b,a as l,b as i,x as d}from"./CDSRIIHC.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:y},M,{g:_},,,w])=>{var x=[-45,0,45,-90,90,-135,180,135],C={0:{label:"north",iconName:"chevron-up"},45:{label:"northEast",iconName:"chevron-up-right"},90:{label:"east",iconName:"chevron-right"},135:{label:"southEast",iconName:"chevron-down-right"},180:{label:"south",iconName:"chevron-down"},"-135":{label:"southWest",iconName:"chevron-down-left"},"-90":{label:"west",iconName:"chevron-left"},"-45":{label:"northWest",iconName:"chevron-up-left"}},S=l`:host{outline:none;box-shadow:none!important;background-color:transparent!important;user-select:none;calcite-action-pad{display:contents}calcite-action-group{touch-action:none}calcite-action{aspect-ratio:1}}.root{display:flex;flex-direction:column;gap:var(--calcite-spacing-sm)}.buttons-container{--calcite-color-background: transparent;--calcite-action-group-gap: 0;calcite-action{--calcite-color-focus: var(--calcite-color-foreground-3)}calcite-action:not([active]){--calcite-action-background-color-press: var(--calcite-color-foreground-1)}calcite-action[active]{--calcite-action-background-color: var(--calcite-color-foreground-3)}calcite-icon{transform:var(--rotation, unset)}@media(hover:none){calcite-action{--calcite-action-background-color-hover: var(--calcite-color-foreground-1);--calcite-action-text-color-press: var(--calcite-color-text-3)}}}.rotation-container{display:block;width:100%;calcite-action{flex:.3}}.rotation-slider-container{display:flex;flex:1;align-items:center;calcite-slider{flex:1;padding-inline:var(--calcite-spacing-xxs)}}`,B=w(M),r=class extends u{constructor(){super(...arguments),this.messages=f({}),this._onContextMenu=t=>t.preventDefault(),this._buttons={},this.viewModel=B(this),this.angle=this.viewModel.angle,this.rotation=this.viewModel.rotation,this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.disabled=this.viewModel.disabled,this.hideDirectionalButtons=!1,this.icon="move",this.showRotationResetButton=!1,this.showRotationSlider=!1,this.state=this.viewModel.state,this.visualScale="s",this.arcgisPropertyChange=g()("state"),this.arcgisReady=d()}static{this.properties={_rotationEnabled:16,angle:16,rotation:16,view:0,autoDestroyDisabled:5,disabled:5,hideDirectionalButtons:5,icon:1,label:1,messageOverrides:0,referenceElement:1,showRotationResetButton:5,showRotationSlider:5,state:32,visualScale:1}}static{this.styles=S}get _rotationEnabled(){return this.view?.ready?this.view.constraints.rotationEnabled??!1:!0}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[y(()=>this.viewModel.angle,()=>{this._buttonsContainer?.contains(document.activeElement)&&(this.viewModel.angle==null?_(this)?.focus():v(this._buttons[this.viewModel.angle]))})])}_rotateIcon(t){return{"--rotation":`rotate(${t}deg)`}}_setButtonContainerRef(t){t!==void 0?(this._buttonsContainer=t,queueMicrotask(()=>{this._buttons=Object.fromEntries(Array.from(t.children,e=>[Number.parseInt(e.getAttribute("data-angle")??""),e]))})):(this._buttonsContainer=void 0,this._buttons={})}_onButtonPointerDown(t){if(this._buttonsContainer===void 0)return;t.composedPath().find(o=>o.hasPointerCapture?.(t.pointerId))?.releasePointerCapture(t.pointerId);let e=$(this._buttonsContainer);this.viewModel.beginFollowingPointer(t,e)}_onSliderInput({currentTarget:t}){typeof t.value=="number"&&(this.viewModel.rotation=t.value)}_onRotationReset(){this.viewModel.rotation=0}_onClick(t){this.viewModel.moveOnce(t)}render(){let{label:t,disabled:e}=this,o=this.view==null||this.view.type==="2d";return i`<div .ariaLabel=${t??void 0} class=${p({root:!0,[n.widget]:!0,[n.disabled]:e})} tabindex=-1>${o?this._renderContent():this._renderUnsupportedMessage()}</div>`}_renderUnsupportedMessage(){return i`<section class="error"><p>${this.messages.unsupported}</p></section>`}_renderContent(){return[this.hideDirectionalButtons?void 0:this._renderDirectionalButtons(),this.showRotationSlider?this._renderRotation():void 0]}_renderDirectionalButtons(){return s("directional-buttons-container",i`<calcite-action-bar expand-disabled floating layout=grid .scale=${this.visualScale} overflow-actions-disabled><calcite-action-group class="buttons-container" dir=ltr @contextmenu=${{handleEvent:this._onContextMenu,capture:!0}} ${h(this._setButtonContainerRef)}>${x.slice(0,4).map(this._renderButton,this)}${this._renderCompass()}${x.slice(4).map(this._renderButton,this)}</calcite-action-group></calcite-action-bar>`)}_renderButton(t){let{label:e,iconName:o}=C[t],c=this.messages[e];return i`<calcite-action .active=${this.angle===t} alignment=center class="button" data-angle=${t??a} .disabled=${this.disabled} @click=${this._onClick.bind(this,t)} @pointerdown=${this._onButtonPointerDown} .text=${c??""} title=${c??a}><calcite-icon .icon=${o} .scale=${this.visualScale}></calcite-icon></calcite-action>`}_renderCompass(){let t=this.disabled||R(this.view)?"compass-needle":"arrow-up",e=this.rotation===0,o=this.messages.resetHeading;return i`<calcite-action alignment=center class="compass" .disabled=${this.disabled||!this._rotationEnabled||e} @click=${this._onRotationReset} style=${m(this._rotateIcon(this.rotation))} .text=${o??""} title=${o??a}>${!e&&i`<calcite-icon .icon=${t} .scale=${this.visualScale}></calcite-icon>`||""}</calcite-action>`}_renderRotation(){return s("slider-container",i`<calcite-action-bar expand-disabled floating layout=horizontal .scale=${this.visualScale}><calcite-action-group class="rotation-container">${this.showRotationResetButton?this._renderRotationResetButton():null}${this._renderRotationSlider()}</calcite-action-group></calcite-action-bar>`)}_renderRotationResetButton(){let t=this.messages.resetHeading;return i`<calcite-action alignment=center class="rotation-reset-button" .disabled=${this.disabled||!this._rotationEnabled} @click=${this._onRotationReset} .text=${t??""} title=${t??a}><calcite-icon flip-rtl icon=rotate .scale=${this.visualScale}></calcite-icon></calcite-action>`}_renderRotationSlider(){return i`<div class="rotation-slider-container"><calcite-slider .ariaLabel=${this.messages.heading} .disabled=${this.disabled||!this._rotationEnabled} label-handles max=360 min=0 required .scale=${this.visualScale} .value=${Math.round(this.rotation)} @calciteSliderInput=${this._onSliderInput}></calcite-slider></div>`}};b("arcgis-directional-pad",r);return r},"core/reactiveUtils","widgets/DirectionalPad/DirectionalPadViewModel",c,e,j,k)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as C}from"./ECNI2A4K.js";import{a as I}from"./SBUR54TP.js";import a from"./MZWO5JYA.js";import{O as $,S as F,U as L,a as q,b as p}from"./KLXEJCTT.js";import"./H6RQVSYM.js";export default $arcgis.t(([{createReactiveMap:k,findUtilityNetwork:U,getOrCreateMapValue:x},{stripHTML:E},f,{ignoreAbortErrors:S},{watch:v},V,P,Q,B,{b:N,f:A}])=>{var G=q`.list-container{min-height:var(--calcite-spacing-xxxl)}.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.sticky-loading-container{display:flex;position:sticky;bottom:var(--calcite-spacing-sm);align-items:center;justify-content:center;z-index:2;margin:0;padding:0;height:var(--calcite-spacing-xxxl);pointer-events:none;height:500px}`,M=100,D={assetGroup:"assetgroup",assetType:"assettype"},j="{00000000-0000-0000-0000-000000000000}",T=class extends ${constructor(){super(...arguments),this._addFlowItem=t=>{t&&this.flowItems?.push(t)},this._attachmentAssociations=new f,this._attachmentFeatureCount=0,this._cancelQuery=()=>{let{_queryAbortController:t}=this;t&&t.abort(),this._queryAbortController=null},this._cancelQueryFeatureCount=()=>{let{_queryFeatureCountAbortController:t}=this;t&&t.abort(),this._queryFeatureCountAbortController=null},this._connectivityAssociations=new f,this._connectivityFeatureCount=0,this._containerAssociations=new f,this._containerFeatureCount=0,this._contentAssociations=new f,this._contentFeatureCount=0,this._networkSourceIdsInUse=new Set,this._query=async t=>{if(!t)return;await this._loadUtiltyNetworks();let{_queryAbortController:e}=this;this._destroyAssociatedFeatureViewModels(),this._clearFeatures(),this._featureCount&&await this._queryAssociatedFeatures(t,{signal:e?.signal})},this._queryController=async t=>{this._cancelQuery();let e=new AbortController;this._queryAbortController=e,await S(this._query(t)),this._queryAbortController===e&&(this._queryAbortController=null)},this._queryFeatureCountController=async()=>{this._loaded=!1,this._cancelQueryFeatureCount();let t=new AbortController;this._queryFeatureCountAbortController=t,await S(this._queryFeatureCount()),this._queryFeatureCountAbortController===t&&(this._queryFeatureCountAbortController=null),this._loaded=!0},this._queryDebounced=C(this._queryController,M),this._queryFeatureCountDebounced=C(this._queryFeatureCountController,M),this._structureAssociations=new f,this._structureFeatureCount=0,this._queryAssociationType=async()=>{this._activeAssociationType&&this._queryDebounced(this._activeAssociationType)},this._associationFeatures=k(),this._associationViewModels=k(),this._featureCount=0,this._loaded=!1,this._queryAbortController=null,this._queryFeatureCountAbortController=null,this._queryPageAbortController=null,this.associationTypes=null,this.autoDestroyDisabled=!1,this.useFeatureNextFlowItem=!1,this.flowType="feature-utility-network-associations",this.headingLevel=2,this.source="popup"}static{this.properties={_activeAssociationType:16,_associationFeatures:16,_associationViewModels:16,_canLoad:16,_canQuery:16,_featureCount:16,_loaded:16,_queryAbortController:16,_queryFeatureCountAbortController:16,_queryPageAbortController:16,_state:16,associationTypes:0,autoDestroyDisabled:5,description:1,flowItems:0,useFeatureNextFlowItem:5,flowType:1,graphic:0,heading:1,headingLevel:9,layer:0,map:0,messages:0,parentFeatureViewModel:0,referenceElement:1,source:1,spatialReference:0,timeZone:1,view:0}}static{this.styles=G}get _globalId(){return(this._globalIdField&&this.graphic?.attributes?.[this._globalIdField])??null}get _globalIdField(){return this.layer?.globalIdField}get _objectId(){return(this._objectIdField&&this.graphic?.attributes?.[this._objectIdField])??null}get _objectIdField(){return this.layer?.objectIdField}get _supportsCacheHint(){return!!this.layer?.capabilities?.queryRelated?.supportsCacheHint}get _utilityNetwork(){let{layer:t,map:e}=this;if(!t?.loaded||!e)return null;let s=A(t)?t.parent:t;return U(e,s)}get _canLoad(){return!!this.map}get _canQuery(){return!!this.layer?.capabilities?.query?.supportsPagination}get _state(){let{_canLoad:t,_canQuery:e,_featureCount:s,_loaded:a,_queryAbortController:i,_queryFeatureCountAbortController:r,_queryPageAbortController:o,associationTypes:l}=this;return r||t&&!a?"loading":i||o?"querying":!this._globalId||!l||!e||!s?"disabled":"ready"}get heading(){return this._heading}set heading(t){this._heading=t}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[v(()=>[this.graphic,this.layer,this.map,this.associationTypes,this._canQuery,this._objectId,this._globalId],()=>{this._queryFeatureCountDebounced(),this._queryAssociationType()},{initial:!0}),v(()=>this._activeAssociationType,t=>{this._queryDebounced(t)}),v(()=>this._associationFeatures.values(),()=>{this._setUpUtilityNetworkAssociationsViewModels()})]),this.manager.onDestroy(()=>{this._cancelQuery(),this._cancelQueryFeatureCount()})}_addAssociationTypeFlowItem(t){let e=this.useFeatureNextFlowItem?F(p`<arcgis-feature-utility-network-association-list .autoDestroyDisabled=${this.autoDestroyDisabled} .associationViewModels=${this._associationViewModels} .description=${this._getParentFeatureDescription()} .flowItems=${this.flowItems} .flowType=${this.flowType} .heading=${this._getAssociationTypeTitle(t)} .messages=${this.messages} .map=${this.map} .parentFeatureViewModel=${this.parentFeatureViewModel} .referenceElement=${this.referenceElement} .state=${this._state} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} use-feature-next-flow-item .view=${this.view}></arcgis-feature-utility-network-association-list>`):F(p`<arcgis-feature-utility-network-association-list .autoDestroyDisabled=${this.autoDestroyDisabled} .associationViewModels=${this._associationViewModels} .description=${this._getParentFeatureDescription()} .flowItems=${this.flowItems} .flowType=${this.flowType} .heading=${this._getAssociationTypeTitle(t)} .messages=${this.messages} .map=${this.map} .parentFeatureViewModel=${this.parentFeatureViewModel} .referenceElement=${this.referenceElement} .state=${this._state} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature-utility-network-association-list>`);this._addFlowItem(e)}_clearAssociations(){this._attachmentAssociations.removeAll(),this._connectivityAssociations.removeAll(),this._containerAssociations.removeAll(),this._contentAssociations.removeAll(),this._structureAssociations.removeAll()}_clearFeatures(){this._associationFeatures.forEach(t=>t.removeAll()),this._associationFeatures.clear()}_compareByFeatureTitle(t,e){return t.title.localeCompare(e.title,void 0,{numeric:!0})}async _countAssociatedFeatureCount(t,e,s,a,i){let r=this._getFeatureQueryWhereClause(t,e,s,a),o=t.createQuery();return o.where=r,o.outFields=["*"],o.returnGeometry=!1,await t.queryFeatureCount(o,{signal:i?.signal})}async _countAssociatedFeatures(t,e,s,a,i){if(!e.length)return 0;let r=await this._findLayersBySourceId(t);await this._loadLayers(r);let o=r.map(l=>this._countAssociatedFeatureCount(l,e,s,a,i));return(await Promise.all(o)).reduce((l,c)=>l+c,0)}async _createAssociationFeatureObjects(t,e,s,a,i){if(!t.length)return[];let r=new Map,o=Array.from(e.entries()).map(async([c,d])=>{let u=await this._findLayersBySourceId(c);await this._loadLayers(u);let h=u.map(m=>this._queryLayer(m,d,s,a,i));(await Promise.all(h)).forEach(m=>{m.forEach(n=>{if(this.source==="popup"?n.sourceLayer&&n.getEffectivePopupTemplate():n.sourceLayer){let _=n.layer.globalIdField??"",y=n.getAttribute(_),w=r.get(y)??[];w.push(n),r.set(y,w)}})})});await Promise.all(o);let l=[];return await Promise.all(t.toArray().map(async c=>{let{fromNetworkElement:d,toNetworkElement:u}=c,h=d.globalId===this._globalId?u:d,m=r.get(h.globalId)??[];await Promise.all(m.map(async n=>{let _=this._utilityNetwork?.getTerminalById(h?.terminalId??void 0)?.name,y=await n.sourceLayer.getFeatureTitle(n)||this._getFeatureTitle(n);l.push({title:y,feature:n,association:c,terminalName:_})}))})),l}_destroyAssociatedFeatureViewModels(){this._associationViewModels.forEach(t=>t.destroyAll())}_equals(t,e){if(t.globalId===j&&e.globalId===j){let s=function(d,u){return d.networkSourceId===u.networkSourceId&&d.globalId===u.globalId&&d.terminalId===u.terminalId&&d.firstUnit===u.firstUnit&&d.numUnits===u.numUnits},a=t.fromNetworkElement,i=t.toNetworkElement,r=e.fromNetworkElement,o=e.toNetworkElement,l=s(a,r),c=s(i,o);return l&&c&&t.associationType===e.associationType}return t.globalId!=null&&e.globalId!=null&&t.globalId===e.globalId}async _findLayersBySourceId(t){let{_utilityNetwork:e,map:s}=this;e?.loaded||await e?.load();let a=e.getLayerIdBySourceId(t),i=s.allLayers.filter(o=>!!e?.isUtilityLayer(o)&&o.layerId===a),r=s.allTables.filter(o=>!!e?.isUtilityLayer(o)&&o.layerId===a);return i.concat(r).toArray()}_getAssociationsByType(t){switch(t){case"attachment":return this._attachmentAssociations;case"structure":return this._structureAssociations;case"connectivity":return this._connectivityAssociations;case"container":return this._containerAssociations;case"content":return this._contentAssociations}}_getAssociationTypeTitle(t){let{messages:e}=this;if(t.title)return t.title;switch(t.type){case"attachment":return e?.associationsAttachments??this.messages?.noTitle??"";case"connectivity":return e?.associationsConnectivity??this.messages?.noTitle??"";case"structure":return e?.associationsStructure??this.messages?.noTitle??"";case"content":return e?.associationsContents??this.messages?.noTitle??"";case"container":return e?.associationsContainer??this.messages?.noTitle??""}}_getFeatureCountForAssociationType(t){switch(t){case"attachment":return this._attachmentFeatureCount;case"structure":return this._structureFeatureCount;case"content":return this._contentFeatureCount;case"container":return this._containerFeatureCount;case"connectivity":return this._connectivityFeatureCount}}_getFeatureQueryWhereClause(t,e,s,a){let i=t.globalIdField,r=t.fieldsIndex.get(D.assetGroup),o=t.fieldsIndex.get(D.assetType),l=s!=null,c=a!=null,d=i?V.sqlIn(i,e):null,u=l?`(${r?.name} = ${s})`:null,h=l&&c?`(${o?.name} = ${a})`:null;return[d,u,h].filter(Boolean).join(" AND ")}_getFeatureTitle(t){let e=t.attributes,s=t.sourceLayer;if(!e||!s)return"";let a="displayField"in s?s.displayField:null,i=a!=null?e[a.toString()]:null,r=i!=null?i.toString():null,o=t.getObjectId()?.toString();return r||o||""}_getParentFeatureDescription(){let{parentFeatureViewModel:t}=this;if(t){if("heading"in t)return t.heading;if("title"in t)return t.title}}async _loadUtiltyNetworks(){let t=this.map;if(!t)return;t.utilityNetworks&&await Promise.allSettled(t.utilityNetworks.map(s=>s.load()));let e=this._utilityNetwork;if(e){let s=a=>{if("layerId"in a&&e.isUtilityLayer(a)){let i=a.layerId!=null?e.getSourceIdByLayerId(a.layerId):null;i!=null&&this._networkSourceIdsInUse.add(i)}};this._networkSourceIdsInUse=new Set,t.allLayers.forEach(s),t.allTables.forEach(s)}}async _loadLayers(t){let e=t.filter(s=>!s.loaded).map(s=>s.load());e.length&&await Promise.allSettled(e)}_matchesGlobalFeature(t,e){return this._equals(t.association,e.association)}async _queryAssociatedFeatures(t,e){let{layer:s,_globalId:a,associationTypes:i,_utilityNetwork:r,_canQuery:o,_associationFeatures:l}=this;if(await Promise.allSettled([s?.load(),r?.load()]),!o||!s||!i||!r)return;let c=this._getAssociationsByType(t.type),{associatedAssetGroup:d,associatedAssetType:u}=t,h=new Map;c.forEach(n=>{let{fromNetworkElement:_,toNetworkElement:y}=n,{networkSourceId:w,elementGlobalId:b}=_.globalId===a?{networkSourceId:y.networkSourceId,elementGlobalId:y.globalId}:{networkSourceId:_.networkSourceId,elementGlobalId:_.globalId},g=h.get(w)||[];g.push(b),h.set(w,g)});let m=await this._createAssociationFeatureObjects(c,h,d,u,e);this._parseFeatureObjects(m,l)}async _queryAssociations(t){let{layer:e,_globalId:s,associationTypes:a,_utilityNetwork:i,_canQuery:r}=this;if(await Promise.allSettled([e?.load(),i?.load()]),this._clearAssociations(),!r||!e||!a||!i||!s)return;let o=A(e)?e.parent:e,l=new P({globalId:s,networkSourceId:i.getSourceIdByLayerId(o.layerId)}),c=new Set;a.forEach(n=>{switch(n.type){case"attachment":case"structure":c.add("attachment");break;case"container":case"content":c.add("containment");break;case"connectivity":c.add("connectivity"),c.add("junction-junction-connectivity"),c.add("junction-edge-from-connectivity"),c.add("junction-edge-midspan-connectivity"),c.add("junction-edge-to-connectivity");break}});let d=await i?.queryAssociations(new Q({elements:[l],types:Array.from(c)}),{signal:t?.signal}),u=new Map,h=new Map;a.forEach(n=>{h.set(n.type,n),u.set(n.type,[])}),d.forEach(n=>{let{toNetworkElement:_,fromNetworkElement:y}=n;switch(n.associationType){case"attachment":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"attachment",h))break;u.get("attachment")?.push(_.globalId),this._attachmentAssociations.add(n)}else{if(this._shouldDiscardNetworkElement(y,"structure",h))break;u.get("structure")?.push(y.globalId),this._structureAssociations.add(n)}break;case"connectivity":case"junction-edge-from-connectivity":case"junction-edge-midspan-connectivity":case"junction-edge-to-connectivity":case"junction-junction-connectivity":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"connectivity",h))break;u.get("connectivity")?.push(_.globalId)}else{if(this._shouldDiscardNetworkElement(y,"connectivity",h))break;u.get("connectivity")?.push(y.globalId)}this._connectivityAssociations.add(n);break;case"containment":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"content",h))break;u.get("content")?.push(_.globalId),this._contentAssociations.add(n)}else{if(this._shouldDiscardNetworkElement(y,"container",h))break;u.get("container")?.push(y.globalId),this._containerAssociations.add(n)}break}});let m=a.map(async n=>{let{associatedNetworkSourceId:_,associatedAssetGroup:y,associatedAssetType:w}=n,b=u.get(n.type),g=y!=null?await this._countAssociatedFeatures(_,b,y,w,t):b.length;switch(n.type){case"attachment":this._attachmentFeatureCount=g;break;case"connectivity":this._connectivityFeatureCount=g;break;case"container":this._containerFeatureCount=g;break;case"content":this._contentFeatureCount=g;break;case"structure":this._structureFeatureCount=g;break}});await Promise.allSettled(m)}async _queryFeatureCount(){await this._loadUtiltyNetworks();let{_queryFeatureCountAbortController:t,_canQuery:e}=this;if(!e){this._featureCount=0;return}await this._queryAssociations(t),this._featureCount=this._attachmentFeatureCount+this._connectivityFeatureCount+this._containerFeatureCount+this._contentFeatureCount+this._structureFeatureCount}async _queryLayer(t,e,s,a,i){let r=this._getFeatureQueryWhereClause(t,e,s,a),o=t.createQuery();o.where=r,o.outFields=["*"],o.returnGeometry=!1,o.cacheHint=this._supportsCacheHint;let{features:l}=await N(t,o,i);return l}_parseFeatureObjects(t,e){let s=k();t.forEach(a=>{let i=(a?.feature).sourceLayer;x(s,i,()=>new f).add(a)});for(let[a,i]of s)this._sortFeatureObjectsByTitle(i),e.set(a,i)}_selectAssociationType(t){let{flowItems:e}=this;e&&(this._activeAssociationType=t,this._setUpUtilityNetworkAssociationsViewModels(),this._addAssociationTypeFlowItem(t))}_setUpUtilityNetworkAssociationsViewModels(){this._associationViewModels.forEach((i,r)=>{let o=this._associationFeatures.get(r);o?i.forEach(l=>{o.find(c=>this._matchesGlobalFeature(l,c))||(i.remove(l),i.length||this._associationViewModels.delete(r))}):(i.removeAll(),this._associationViewModels.delete(r))});let{map:t,view:e,spatialReference:s,timeZone:a}=this;this._associationFeatures.forEach((i,r)=>{let o=this._associationViewModels.get(r)||new f;i?.filter(Boolean).forEach((l,c)=>{if(!o.some(d=>this._matchesGlobalFeature(d,l))){let{association:d,feature:u,terminalName:h,title:m}=l;o.add({title:m,association:d,featureViewModel:new B({abilities:{utilityNetworkAssociationsContent:!1},map:t,view:e,spatialReference:s,timeZone:a,graphic:u}),terminalName:h},c)}}),this._associationViewModels.set(r,o)})}_shouldDiscardNetworkElement(t,e,s){if(!t)return!1;let{networkSourceId:a}=t,i=s.get(e)?.associatedNetworkSourceId,r=this._networkSourceIdsInUse.has(a);return i!=null&&i!==a||!r}_sortFeatureObjectsByTitle(t){t.sort(this._compareByFeatureTitle)}render(){let{_state:t}=this;return p`<div class="root"><arcgis-feature-element-info .heading=${this.heading} .headingLevel=${this.headingLevel} .description=${this.description}></arcgis-feature-element-info>${t==="loading"?this._renderLoading():t==="disabled"?this._renderAssociationNotFound():this._renderContent()}</div>`}_renderAssociationNotFound(){return p`<calcite-notice icon=information kind=info open scale=s width=full><div slot=message>${this.messages?.noAssociations}</div></calcite-notice>`}_renderAssociationTypeList(t){return this._getFeatureCountForAssociationType(t.type)>0?this._renderAssociationTypeListItem(t):null}_renderAssociationTypeListItem(t){let e=this._getAssociationTypeTitle(t);return I(`association-type-${t.type}`,p`<calcite-list-item .description=${E(t.description)} .label=${E(e)} .value=${t.type} @calciteListItemSelect=${()=>this._selectAssociationType(t)}><calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>`)}_renderContent(){let{_state:t,associationTypes:e,messages:s}=this,a=s?.associationsList??s?.noTitle??"";return I("list-container",p`<div class="list-container">${t==="ready"?p`<div><calcite-list display-mode=flat .label=${a}>${e.map(i=>this._renderAssociationTypeList(i))}</calcite-list></div>`:null}${this._renderStickyLoading()}</div>`)}_renderLoading(){return p`<div class="loading-container">${this._renderLoadingIcon()}${this._renderStickyLoading()}</div>`}_renderLoadingIcon(){return p`<calcite-loader inline label></calcite-loader>`}_renderStickyLoading(){return this._state==="querying"?p`<div class="sticky-loading-container">${this._renderLoadingIcon()}</div>`:null}};L("arcgis-feature-utility-network-associations",T);return T},"applications/Components/featureUtils","applications/Components/stringUtils","core/Collection","core/promiseUtils","core/reactiveUtils","core/sql","rest/networks/support/NetworkElement","rest/networks/support/QueryAssociationsParameters","popup/Feature",a)
|
|
2
|
+
import{a as C}from"./XEK22IDA.js";import{a as I}from"./O5T75PGZ.js";import a from"./MZWO5JYA.js";import{O as $,S as F,U as L,a as q,b as p}from"./CDSRIIHC.js";import"./H6RQVSYM.js";export default $arcgis.t(([{createReactiveMap:k,findUtilityNetwork:U,getOrCreateMapValue:x},{stripHTML:E},f,{ignoreAbortErrors:S},{watch:v},V,P,Q,B,{b:N,f:A}])=>{var G=q`.list-container{min-height:var(--calcite-spacing-xxxl)}.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.sticky-loading-container{display:flex;position:sticky;bottom:var(--calcite-spacing-sm);align-items:center;justify-content:center;z-index:2;margin:0;padding:0;height:var(--calcite-spacing-xxxl);pointer-events:none;height:500px}`,M=100,D={assetGroup:"assetgroup",assetType:"assettype"},j="{00000000-0000-0000-0000-000000000000}",T=class extends ${constructor(){super(...arguments),this._addFlowItem=t=>{t&&this.flowItems?.push(t)},this._attachmentAssociations=new f,this._attachmentFeatureCount=0,this._cancelQuery=()=>{let{_queryAbortController:t}=this;t&&t.abort(),this._queryAbortController=null},this._cancelQueryFeatureCount=()=>{let{_queryFeatureCountAbortController:t}=this;t&&t.abort(),this._queryFeatureCountAbortController=null},this._connectivityAssociations=new f,this._connectivityFeatureCount=0,this._containerAssociations=new f,this._containerFeatureCount=0,this._contentAssociations=new f,this._contentFeatureCount=0,this._networkSourceIdsInUse=new Set,this._query=async t=>{if(!t)return;await this._loadUtiltyNetworks();let{_queryAbortController:e}=this;this._destroyAssociatedFeatureViewModels(),this._clearFeatures(),this._featureCount&&await this._queryAssociatedFeatures(t,{signal:e?.signal})},this._queryController=async t=>{this._cancelQuery();let e=new AbortController;this._queryAbortController=e,await S(this._query(t)),this._queryAbortController===e&&(this._queryAbortController=null)},this._queryFeatureCountController=async()=>{this._loaded=!1,this._cancelQueryFeatureCount();let t=new AbortController;this._queryFeatureCountAbortController=t,await S(this._queryFeatureCount()),this._queryFeatureCountAbortController===t&&(this._queryFeatureCountAbortController=null),this._loaded=!0},this._queryDebounced=C(this._queryController,M),this._queryFeatureCountDebounced=C(this._queryFeatureCountController,M),this._structureAssociations=new f,this._structureFeatureCount=0,this._queryAssociationType=async()=>{this._activeAssociationType&&this._queryDebounced(this._activeAssociationType)},this._associationFeatures=k(),this._associationViewModels=k(),this._featureCount=0,this._loaded=!1,this._queryAbortController=null,this._queryFeatureCountAbortController=null,this._queryPageAbortController=null,this.associationTypes=null,this.autoDestroyDisabled=!1,this.useFeatureNextFlowItem=!1,this.flowType="feature-utility-network-associations",this.headingLevel=2,this.source="popup"}static{this.properties={_activeAssociationType:16,_associationFeatures:16,_associationViewModels:16,_canLoad:16,_canQuery:16,_featureCount:16,_loaded:16,_queryAbortController:16,_queryFeatureCountAbortController:16,_queryPageAbortController:16,_state:16,associationTypes:0,autoDestroyDisabled:5,description:1,flowItems:0,useFeatureNextFlowItem:5,flowType:1,graphic:0,heading:1,headingLevel:9,layer:0,map:0,messages:0,parentFeatureViewModel:0,referenceElement:1,source:1,spatialReference:0,timeZone:1,view:0}}static{this.styles=G}get _globalId(){return(this._globalIdField&&this.graphic?.attributes?.[this._globalIdField])??null}get _globalIdField(){return this.layer?.globalIdField}get _objectId(){return(this._objectIdField&&this.graphic?.attributes?.[this._objectIdField])??null}get _objectIdField(){return this.layer?.objectIdField}get _supportsCacheHint(){return!!this.layer?.capabilities?.queryRelated?.supportsCacheHint}get _utilityNetwork(){let{layer:t,map:e}=this;if(!t?.loaded||!e)return null;let s=A(t)?t.parent:t;return U(e,s)}get _canLoad(){return!!this.map}get _canQuery(){return!!this.layer?.capabilities?.query?.supportsPagination}get _state(){let{_canLoad:t,_canQuery:e,_featureCount:s,_loaded:a,_queryAbortController:i,_queryFeatureCountAbortController:r,_queryPageAbortController:o,associationTypes:l}=this;return r||t&&!a?"loading":i||o?"querying":!this._globalId||!l||!e||!s?"disabled":"ready"}get heading(){return this._heading}set heading(t){this._heading=t}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[v(()=>[this.graphic,this.layer,this.map,this.associationTypes,this._canQuery,this._objectId,this._globalId],()=>{this._queryFeatureCountDebounced(),this._queryAssociationType()},{initial:!0}),v(()=>this._activeAssociationType,t=>{this._queryDebounced(t)}),v(()=>this._associationFeatures.values(),()=>{this._setUpUtilityNetworkAssociationsViewModels()})]),this.manager.onDestroy(()=>{this._cancelQuery(),this._cancelQueryFeatureCount()})}_addAssociationTypeFlowItem(t){let e=this.useFeatureNextFlowItem?F(p`<arcgis-feature-utility-network-association-list .autoDestroyDisabled=${this.autoDestroyDisabled} .associationViewModels=${this._associationViewModels} .description=${this._getParentFeatureDescription()} .flowItems=${this.flowItems} .flowType=${this.flowType} .heading=${this._getAssociationTypeTitle(t)} .messages=${this.messages} .map=${this.map} .parentFeatureViewModel=${this.parentFeatureViewModel} .referenceElement=${this.referenceElement} .state=${this._state} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} use-feature-next-flow-item .view=${this.view}></arcgis-feature-utility-network-association-list>`):F(p`<arcgis-feature-utility-network-association-list .autoDestroyDisabled=${this.autoDestroyDisabled} .associationViewModels=${this._associationViewModels} .description=${this._getParentFeatureDescription()} .flowItems=${this.flowItems} .flowType=${this.flowType} .heading=${this._getAssociationTypeTitle(t)} .messages=${this.messages} .map=${this.map} .parentFeatureViewModel=${this.parentFeatureViewModel} .referenceElement=${this.referenceElement} .state=${this._state} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature-utility-network-association-list>`);this._addFlowItem(e)}_clearAssociations(){this._attachmentAssociations.removeAll(),this._connectivityAssociations.removeAll(),this._containerAssociations.removeAll(),this._contentAssociations.removeAll(),this._structureAssociations.removeAll()}_clearFeatures(){this._associationFeatures.forEach(t=>t.removeAll()),this._associationFeatures.clear()}_compareByFeatureTitle(t,e){return t.title.localeCompare(e.title,void 0,{numeric:!0})}async _countAssociatedFeatureCount(t,e,s,a,i){let r=this._getFeatureQueryWhereClause(t,e,s,a),o=t.createQuery();return o.where=r,o.outFields=["*"],o.returnGeometry=!1,await t.queryFeatureCount(o,{signal:i?.signal})}async _countAssociatedFeatures(t,e,s,a,i){if(!e.length)return 0;let r=await this._findLayersBySourceId(t);await this._loadLayers(r);let o=r.map(l=>this._countAssociatedFeatureCount(l,e,s,a,i));return(await Promise.all(o)).reduce((l,c)=>l+c,0)}async _createAssociationFeatureObjects(t,e,s,a,i){if(!t.length)return[];let r=new Map,o=Array.from(e.entries()).map(async([c,d])=>{let u=await this._findLayersBySourceId(c);await this._loadLayers(u);let h=u.map(m=>this._queryLayer(m,d,s,a,i));(await Promise.all(h)).forEach(m=>{m.forEach(n=>{if(this.source==="popup"?n.sourceLayer&&n.getEffectivePopupTemplate():n.sourceLayer){let _=n.layer.globalIdField??"",y=n.getAttribute(_),w=r.get(y)??[];w.push(n),r.set(y,w)}})})});await Promise.all(o);let l=[];return await Promise.all(t.toArray().map(async c=>{let{fromNetworkElement:d,toNetworkElement:u}=c,h=d.globalId===this._globalId?u:d,m=r.get(h.globalId)??[];await Promise.all(m.map(async n=>{let _=this._utilityNetwork?.getTerminalById(h?.terminalId??void 0)?.name,y=await n.sourceLayer.getFeatureTitle(n)||this._getFeatureTitle(n);l.push({title:y,feature:n,association:c,terminalName:_})}))})),l}_destroyAssociatedFeatureViewModels(){this._associationViewModels.forEach(t=>t.destroyAll())}_equals(t,e){if(t.globalId===j&&e.globalId===j){let s=function(d,u){return d.networkSourceId===u.networkSourceId&&d.globalId===u.globalId&&d.terminalId===u.terminalId&&d.firstUnit===u.firstUnit&&d.numUnits===u.numUnits},a=t.fromNetworkElement,i=t.toNetworkElement,r=e.fromNetworkElement,o=e.toNetworkElement,l=s(a,r),c=s(i,o);return l&&c&&t.associationType===e.associationType}return t.globalId!=null&&e.globalId!=null&&t.globalId===e.globalId}async _findLayersBySourceId(t){let{_utilityNetwork:e,map:s}=this;e?.loaded||await e?.load();let a=e.getLayerIdBySourceId(t),i=s.allLayers.filter(o=>!!e?.isUtilityLayer(o)&&o.layerId===a),r=s.allTables.filter(o=>!!e?.isUtilityLayer(o)&&o.layerId===a);return i.concat(r).toArray()}_getAssociationsByType(t){switch(t){case"attachment":return this._attachmentAssociations;case"structure":return this._structureAssociations;case"connectivity":return this._connectivityAssociations;case"container":return this._containerAssociations;case"content":return this._contentAssociations}}_getAssociationTypeTitle(t){let{messages:e}=this;if(t.title)return t.title;switch(t.type){case"attachment":return e?.associationsAttachments??this.messages?.noTitle??"";case"connectivity":return e?.associationsConnectivity??this.messages?.noTitle??"";case"structure":return e?.associationsStructure??this.messages?.noTitle??"";case"content":return e?.associationsContents??this.messages?.noTitle??"";case"container":return e?.associationsContainer??this.messages?.noTitle??""}}_getFeatureCountForAssociationType(t){switch(t){case"attachment":return this._attachmentFeatureCount;case"structure":return this._structureFeatureCount;case"content":return this._contentFeatureCount;case"container":return this._containerFeatureCount;case"connectivity":return this._connectivityFeatureCount}}_getFeatureQueryWhereClause(t,e,s,a){let i=t.globalIdField,r=t.fieldsIndex.get(D.assetGroup),o=t.fieldsIndex.get(D.assetType),l=s!=null,c=a!=null,d=i?V.sqlIn(i,e):null,u=l?`(${r?.name} = ${s})`:null,h=l&&c?`(${o?.name} = ${a})`:null;return[d,u,h].filter(Boolean).join(" AND ")}_getFeatureTitle(t){let e=t.attributes,s=t.sourceLayer;if(!e||!s)return"";let a="displayField"in s?s.displayField:null,i=a!=null?e[a.toString()]:null,r=i!=null?i.toString():null,o=t.getObjectId()?.toString();return r||o||""}_getParentFeatureDescription(){let{parentFeatureViewModel:t}=this;if(t){if("heading"in t)return t.heading;if("title"in t)return t.title}}async _loadUtiltyNetworks(){let t=this.map;if(!t)return;t.utilityNetworks&&await Promise.allSettled(t.utilityNetworks.map(s=>s.load()));let e=this._utilityNetwork;if(e){let s=a=>{if("layerId"in a&&e.isUtilityLayer(a)){let i=a.layerId!=null?e.getSourceIdByLayerId(a.layerId):null;i!=null&&this._networkSourceIdsInUse.add(i)}};this._networkSourceIdsInUse=new Set,t.allLayers.forEach(s),t.allTables.forEach(s)}}async _loadLayers(t){let e=t.filter(s=>!s.loaded).map(s=>s.load());e.length&&await Promise.allSettled(e)}_matchesGlobalFeature(t,e){return this._equals(t.association,e.association)}async _queryAssociatedFeatures(t,e){let{layer:s,_globalId:a,associationTypes:i,_utilityNetwork:r,_canQuery:o,_associationFeatures:l}=this;if(await Promise.allSettled([s?.load(),r?.load()]),!o||!s||!i||!r)return;let c=this._getAssociationsByType(t.type),{associatedAssetGroup:d,associatedAssetType:u}=t,h=new Map;c.forEach(n=>{let{fromNetworkElement:_,toNetworkElement:y}=n,{networkSourceId:w,elementGlobalId:b}=_.globalId===a?{networkSourceId:y.networkSourceId,elementGlobalId:y.globalId}:{networkSourceId:_.networkSourceId,elementGlobalId:_.globalId},g=h.get(w)||[];g.push(b),h.set(w,g)});let m=await this._createAssociationFeatureObjects(c,h,d,u,e);this._parseFeatureObjects(m,l)}async _queryAssociations(t){let{layer:e,_globalId:s,associationTypes:a,_utilityNetwork:i,_canQuery:r}=this;if(await Promise.allSettled([e?.load(),i?.load()]),this._clearAssociations(),!r||!e||!a||!i||!s)return;let o=A(e)?e.parent:e,l=new P({globalId:s,networkSourceId:i.getSourceIdByLayerId(o.layerId)}),c=new Set;a.forEach(n=>{switch(n.type){case"attachment":case"structure":c.add("attachment");break;case"container":case"content":c.add("containment");break;case"connectivity":c.add("connectivity"),c.add("junction-junction-connectivity"),c.add("junction-edge-from-connectivity"),c.add("junction-edge-midspan-connectivity"),c.add("junction-edge-to-connectivity");break}});let d=await i?.queryAssociations(new Q({elements:[l],types:Array.from(c)}),{signal:t?.signal}),u=new Map,h=new Map;a.forEach(n=>{h.set(n.type,n),u.set(n.type,[])}),d.forEach(n=>{let{toNetworkElement:_,fromNetworkElement:y}=n;switch(n.associationType){case"attachment":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"attachment",h))break;u.get("attachment")?.push(_.globalId),this._attachmentAssociations.add(n)}else{if(this._shouldDiscardNetworkElement(y,"structure",h))break;u.get("structure")?.push(y.globalId),this._structureAssociations.add(n)}break;case"connectivity":case"junction-edge-from-connectivity":case"junction-edge-midspan-connectivity":case"junction-edge-to-connectivity":case"junction-junction-connectivity":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"connectivity",h))break;u.get("connectivity")?.push(_.globalId)}else{if(this._shouldDiscardNetworkElement(y,"connectivity",h))break;u.get("connectivity")?.push(y.globalId)}this._connectivityAssociations.add(n);break;case"containment":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"content",h))break;u.get("content")?.push(_.globalId),this._contentAssociations.add(n)}else{if(this._shouldDiscardNetworkElement(y,"container",h))break;u.get("container")?.push(y.globalId),this._containerAssociations.add(n)}break}});let m=a.map(async n=>{let{associatedNetworkSourceId:_,associatedAssetGroup:y,associatedAssetType:w}=n,b=u.get(n.type),g=y!=null?await this._countAssociatedFeatures(_,b,y,w,t):b.length;switch(n.type){case"attachment":this._attachmentFeatureCount=g;break;case"connectivity":this._connectivityFeatureCount=g;break;case"container":this._containerFeatureCount=g;break;case"content":this._contentFeatureCount=g;break;case"structure":this._structureFeatureCount=g;break}});await Promise.allSettled(m)}async _queryFeatureCount(){await this._loadUtiltyNetworks();let{_queryFeatureCountAbortController:t,_canQuery:e}=this;if(!e){this._featureCount=0;return}await this._queryAssociations(t),this._featureCount=this._attachmentFeatureCount+this._connectivityFeatureCount+this._containerFeatureCount+this._contentFeatureCount+this._structureFeatureCount}async _queryLayer(t,e,s,a,i){let r=this._getFeatureQueryWhereClause(t,e,s,a),o=t.createQuery();o.where=r,o.outFields=["*"],o.returnGeometry=!1,o.cacheHint=this._supportsCacheHint;let{features:l}=await N(t,o,i);return l}_parseFeatureObjects(t,e){let s=k();t.forEach(a=>{let i=(a?.feature).sourceLayer;x(s,i,()=>new f).add(a)});for(let[a,i]of s)this._sortFeatureObjectsByTitle(i),e.set(a,i)}_selectAssociationType(t){let{flowItems:e}=this;e&&(this._activeAssociationType=t,this._setUpUtilityNetworkAssociationsViewModels(),this._addAssociationTypeFlowItem(t))}_setUpUtilityNetworkAssociationsViewModels(){this._associationViewModels.forEach((i,r)=>{let o=this._associationFeatures.get(r);o?i.forEach(l=>{o.find(c=>this._matchesGlobalFeature(l,c))||(i.remove(l),i.length||this._associationViewModels.delete(r))}):(i.removeAll(),this._associationViewModels.delete(r))});let{map:t,view:e,spatialReference:s,timeZone:a}=this;this._associationFeatures.forEach((i,r)=>{let o=this._associationViewModels.get(r)||new f;i?.filter(Boolean).forEach((l,c)=>{if(!o.some(d=>this._matchesGlobalFeature(d,l))){let{association:d,feature:u,terminalName:h,title:m}=l;o.add({title:m,association:d,featureViewModel:new B({abilities:{utilityNetworkAssociationsContent:!1},map:t,view:e,spatialReference:s,timeZone:a,graphic:u}),terminalName:h},c)}}),this._associationViewModels.set(r,o)})}_shouldDiscardNetworkElement(t,e,s){if(!t)return!1;let{networkSourceId:a}=t,i=s.get(e)?.associatedNetworkSourceId,r=this._networkSourceIdsInUse.has(a);return i!=null&&i!==a||!r}_sortFeatureObjectsByTitle(t){t.sort(this._compareByFeatureTitle)}render(){let{_state:t}=this;return p`<div class="root"><arcgis-feature-element-info .heading=${this.heading} .headingLevel=${this.headingLevel} .description=${this.description}></arcgis-feature-element-info>${t==="loading"?this._renderLoading():t==="disabled"?this._renderAssociationNotFound():this._renderContent()}</div>`}_renderAssociationNotFound(){return p`<calcite-notice icon=information kind=info open scale=s width=full><div slot=message>${this.messages?.noAssociations}</div></calcite-notice>`}_renderAssociationTypeList(t){return this._getFeatureCountForAssociationType(t.type)>0?this._renderAssociationTypeListItem(t):null}_renderAssociationTypeListItem(t){let e=this._getAssociationTypeTitle(t);return I(`association-type-${t.type}`,p`<calcite-list-item .description=${E(t.description)} .label=${E(e)} .value=${t.type} @calciteListItemSelect=${()=>this._selectAssociationType(t)}><calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>`)}_renderContent(){let{_state:t,associationTypes:e,messages:s}=this,a=s?.associationsList??s?.noTitle??"";return I("list-container",p`<div class="list-container">${t==="ready"?p`<div><calcite-list display-mode=flat .label=${a}>${e.map(i=>this._renderAssociationTypeList(i))}</calcite-list></div>`:null}${this._renderStickyLoading()}</div>`)}_renderLoading(){return p`<div class="loading-container">${this._renderLoadingIcon()}${this._renderStickyLoading()}</div>`}_renderLoadingIcon(){return p`<calcite-loader inline label></calcite-loader>`}_renderStickyLoading(){return this._state==="querying"?p`<div class="sticky-loading-container">${this._renderLoadingIcon()}</div>`:null}};L("arcgis-feature-utility-network-associations",T);return T},"applications/Components/featureUtils","applications/Components/stringUtils","core/Collection","core/promiseUtils","core/reactiveUtils","core/sql","rest/networks/support/NetworkElement","rest/networks/support/QueryAssociationsParameters","popup/Feature",a)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import a from"./MZWO5JYA.js";import{a as A}from"./JP24H6WY.js";import"./Z7J6NDSB.js";import"./VWED2WAO.js";import"./QUZTFUWM.js";import"./RZ6SODVT.js";import{O as C,U as x,a as I,b as w,p as c,r as m,x as T}from"./CDSRIIHC.js";import"./H6RQVSYM.js";export default $arcgis.t(([G,L,u,N,$,F,_,S,{c:k,f:P}])=>{var H=I`calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}.add-location-button{--calcite-button-border-color: var(--calcite-color-border-1);--calcite-button-icon-color: var(--calcite-color-text-1);--calcite-button-text-color: var(--calcite-color-text-1)}.button-container{justify-content:center;display:grid}.clear-button{--calcite-button-border-color: transparent}`,v=class extends C{constructor(){super(...arguments),this.messages=A({blocking:!0}),this.isSelectWaiting=!1,this.traceLocationType="starting-point",this.spatialTolerance=.05,this.autoDestroyDisabled=!1,this.arcgisTraceLocationChange=T(),this.arcgisTraceLocationSelectEnd=T(),this.arcgisTraceLocationSelectStart=T()}static{this.properties={isSelectWaiting:16,beforeTraceLocationSelectStart:0,afterHitTest:0,view:0,traceLocationType:1,traceLocations:0,filterLayers:0,sketchViewModel:0,spatialTolerance:9,autoDestroyDisabled:5,utilityNetwork:0}}static{this.styles=H}async destroy(){this._resetCursor(),await this.manager.destroy()}async load(){u.isLoaded()||await u.load()}_calculatePercentAlong(t,e){let r=t.clone(),l=r.spatialReference,o=e.spatialReference;if(!l||!o)return c("warn",this,"Unable to calculate percent along because geometry is missing a spatial reference."),-1;let i=e;if(!l.equals(o)){let f=u.execute(e,l);if(!f)return c("warn",this,"Unable to project flag point to source geometry spatial reference."),-1;i=f}let s=N.getNearestCoordinate(r,i);if(s.isEmpty)return c("warn",this,"Unable to compute nearest coordinate for polyline flag."),-1;let a=s.coordinate,n=a.x-.5,p=a.y-.5,h=a.x+.5,g=a.y+.5,y=new $({hasZ:!1,hasM:!0,paths:[[[n,p],[h,g]]],spatialReference:r.spatialReference}),d=G.execute(r,y);if(d.length>0){let f=L.execute(r,{unit:"feet"}),b;return d[0].paths[0][0][0]===r.paths[0][0][0]?b=L.execute(d[0],{unit:"feet"}):d.length>1?b=L.execute(d[1],{unit:"feet"}):b=0,b/f}return c("warn",this,"Unable to cut the source geometry with the flag geometry."),-1}get _edgeSourceLayerIds(){let t=this.utilityNetwork?.dataElement?.domainNetworks;return t?t.flatMap(e=>e.edgeSources).map(e=>e.layerId).filter(Boolean):[]}async _handleAddButtonClick(){let{view:t,sketchViewModel:e}=this;if(!(t&&e)){c("error",this,"Cannot add trace location."),e||c("error",this,m("sketchViewModel")),t||c("error",this,m("view"));return}if(this.beforeTraceLocationSelectStart){this.isSelectWaiting=!0;try{await this.beforeTraceLocationSelectStart()}finally{this.isSelectWaiting=!1}}await this._startSketch(t,e)}async _startSketch(t,e){this.arcgisTraceLocationSelectStart.emit({cancelSelect:()=>e.cancel()}).defaultPrevented||(this._clickHandler?.remove(),this._clickHandler=e.on("create",r=>this._handleSketchComplete(r,t,e)),"acquireCursor"in t&&t.acquireCursor("crosshair"),e.snappingOptions.enabled=!0,e.create("point"))}_handleSketchComplete(t,e,r){if(t.state==="complete"&&t.graphic){r.layer.remove(t.graphic),this._performHitTest(t,e,r);return}t.state==="cancel"&&(this._resetCursor(),this.arcgisTraceLocationSelectEnd.emit())}async _performHitTest(t,e,r){let{utilityNetwork:l}=this,{graphic:o}=t;if(!l){c("error",this,m("utilityNetwork")),this._resetCursor(),this.arcgisTraceLocationSelectEnd.emit();return}if(o?.geometry?.type!=="point"){c("warn",this,"No screen point available for hit test."),this._startSketch(e,r);return}let i=o.geometry,s=e.toScreen(i);if(!s){c("warn",this,"No screen point available for hit test."),this._startSketch(e,r);return}let a=(await e.hitTest(s,{include:this.filterLayers})).results.filter(n=>n.type==="graphic"&&n?.layer&&n.graphic);if(!a.length){c("info",this,"No usable hit test results found."),this._startSketch(e,r);return}this._resetCursor(),await this._processHitTestResults(a,i,e)?this.arcgisTraceLocationSelectEnd.emit():this._startSketch(e,r)}_resetCursor(){let{view:t,sketchViewModel:e}=this;if(!t){c("error",this,m("view"));return}e&&(e.snappingOptions.enabled=!1),this._clickHandler?.remove(),this._clickHandler=void 0,"acquireCursor"in t&&t.acquireCursor("default")}async _processHitTestResults(t,e,r){if(!t.length)return c("error",this,"There are no hit test results to process."),!1;let l=t[0],o=t.map(a=>{let n=a,p=n.graphic;return p.origin=n.layer,p.sourceLayer=n.layer,p}),i=l.graphic;if(this.afterHitTest)try{i=await this.afterHitTest(o)}catch{i=null}if(!i)return c("error",this,"No graphic available from hit test results."),this.arcgisTraceLocationSelectEnd.emit(),!0;let s=await this._ensureNecessaryAttributes(i);return s?await this._generateTraceLocation(s,e,r):(c("error",this,"Unable to ensure necessary attributes on the selected graphic."),this.arcgisTraceLocationSelectEnd.emit(),!0)}async _ensureNecessaryAttributes(t){let e=(k(t.layer),t.layer),r=e.geometryType===null,l=e.fieldsIndex?.get("assetgroup")??!1,o=e.fieldsIndex?.get("assetgroup")?.name??"assetgroup",i=e.fieldsIndex?.get("assettype")??!1,s=e.fieldsIndex?.get("assettype")?.name??"assettype",a=t.getGlobalId(),n=t.getObjectId(),p=l?!!t.getAttribute(o):!0,h=i?!!t.getAttribute(s):!0,g=!!t.geometry;if(a&&n&&p&&h&&(g||r))return t;let y=e.createQuery();return y.objectIds=[n],(await e.queryFeatures(y))?.features[0]||null}async _generateTraceLocation(t,e,r){let{traceLocations:l}=this,o=t.getGlobalId()??"",i=t.geometry?.type,s=await this._generateFlagInfo(t,e);if(!s)return c("error",this,"Unable to generate flag info for trace location."),!1;let a=l?.filter(p=>p.spatialProperties.mapGraphic?.getGlobalId()===o)??[];if(a.length>0){if(i!=="polyline")return c("warn",this,"A flag with the same globalId already exists."),!1;if(a.some(p=>Math.abs(p.traceLocation.percentAlong-s.traceLocation.percentAlong)<=this.spatialTolerance))return c("warn",this,"A flag with the same globalId already exists within tolerance."),!1}let n=this._addFlagGraphic(t,e,r);return n?(s.spatialProperties.flagGraphic=n,l?.add(s),!0):(c("warn",this,"Unable to add flag graphic."),!1)}async _generateFlagInfo(t,e){let{traceLocationType:r,utilityNetwork:l}=this,o=t.getGlobalId()??"",i=t.geometry?.type,s=await this._generateItemTitle(t);if(i==="point"||i==="polygon"){let a=l?.getTerminalConfiguration(t),n=a?a.terminals[0].id:1;return{traceLocation:new _({type:r,isFilterBarrier:!1,globalId:o,terminalId:n}),flagProperties:{title:s,expanded:!1,terminalConfiguration:a??void 0,selectedTerminals:a?new Set([n]):void 0},spatialProperties:{mapPoint:e,mapGraphic:t}}}else if(i==="polyline"){let a=this._calculatePercentAlong(t.geometry,e);return a<0?(c("warn",this,"Unable to calculate percent along for polyline flag."),null):{traceLocation:new _({type:r,isFilterBarrier:!1,globalId:o,percentAlong:a}),flagProperties:{title:s,expanded:!1,terminalConfiguration:void 0,selectedTerminals:void 0},spatialProperties:{mapPoint:e,mapGraphic:t}}}else if(!i){let a=P(t.layer)?t.layer.parent:t.layer,n=a&&this._edgeSourceLayerIds.includes(a.layerId),p=l?.getTerminalConfiguration(t),h=p?p.terminals[0].id:n?-1:1,g=n?.5:-1;return{traceLocation:new _({type:r,isFilterBarrier:!1,globalId:o,terminalId:h,percentAlong:g}),flagProperties:{title:s,expanded:!1,terminalConfiguration:p??void 0,selectedTerminals:p?new Set([h]):void 0},spatialProperties:{mapPoint:e,mapGraphic:t}}}return null}async _generateItemTitle(t){let{messages:e}=this,r=(k(t.layer),t.layer);return("getFeatureTitle"in r?await r.getFeatureTitle(t):null)||t?.getObjectId()?.toString()||e.labels.unknown}_addFlagGraphic(t,e,r){let l=t.geometry?t.geometry.type==="point"?t.geometry:e:null,o=this._createFlagSymbol(),i=new F({geometry:l,symbol:o,attributes:t.attributes});return r.graphics.add(i),i}_createFlagSymbol(){let{traceLocationType:t}=this,e=[244,21,21,.6],r=[21,244,21,.6];return t==="stopping-point"?new S({color:e,style:"x",size:12,outline:{color:e,width:2}}):t==="barrier"?new S({color:e,style:"square",size:12,outline:{color:e,width:0}}):new S({color:r,style:"circle",size:12,outline:{color:r,width:0}})}_handleClearButtonClick(){let{view:t,traceLocations:e}=this;e?.forEach(r=>{r.spatialProperties.flagGraphic&&t&&t.graphics.remove(r.spatialProperties.flagGraphic)}),e?.removeAll()}renderAddLocationBlock(){let{traceLocationType:t,messages:e,traceLocations:r,view:l}=this,o=t==="starting-point"?e.types.startingPoint:t==="barrier"?e.types.barrier:e.types.stoppingPoint,i=o.heading,s=o.description,a=o.buttonText;return w`<calcite-block .heading=${i} .label=${i} expanded .description=${s}>${r?.length?w`<calcite-button class="clear-button" slot=actions-end appearance=transparent .label=${e.buttons.clear} @click=${()=>this._handleClearButtonClick()}>${e.buttons.clear}</calcite-button><arcgis-utility-network-trace-location-list .traceLocations=${r} .traceLocationType=${t} .view=${l}></arcgis-utility-network-trace-location-list>`:null}<div class="button-container"><calcite-button .loading=${this.isSelectWaiting} class="add-location-button" icon-start=select appearance=outline .label=${a} @click=${()=>this._handleAddButtonClick()}>${a}</calcite-button></div></calcite-block>`}render(){return w`<div class="root">${this.renderAddLocationBlock()}</div>`}};x("arcgis-utility-network-trace-location",v);return v},"geometry/operators/cutOperator","geometry/operators/lengthOperator","geometry/operators/projectOperator","geometry/operators/proximityOperator","geometry/Polyline","Graphic","rest/networks/support/TraceLocation","symbols/SimpleMarkerSymbol",a)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{O as v,U as g,a as o,b as n,x as c}from"./
|
|
2
|
+
import{O as v,U as g,a as o,b as n,x as c}from"./CDSRIIHC.js";import"./H6RQVSYM.js";export default $arcgis.t(([d])=>{var p=o`:host{--internal-block-spacing: var(--calcite-spacing-sm-plus);--internal-inline-spacing: var(--calcite-spacing-md);--internal-columns: 1;--internal-icon-size: 16px;container-type:inline-size}.container{display:grid;isolation:isolate;grid-template-columns:repeat(var(--internal-columns, 1),1fr);gap:var(--calcite-spacing-xxs) var(--calcite-spacing-md)}.statistic{display:block;width:max-content;text-align:start;white-space:nowrap}.statistic-label,.statistic-value,.slope-values{font-size:var(--calcite-font-size-xs);font-weight:var(--calcite-font-weight-bold)}.statistic-label{font-weight:var(--calcite-font-weight-regular)}.statistic-value{margin-top:-.15em}.slope-values{display:flex;align-items:center;calcite-icon{width:var(--internal-icon-size);height:var(--internal-icon-size)}}@container (width > 200px){.container{--internal-columns: 2}}@container (width > 400px){.container{--internal-columns: 4}}@container (width > 800px){.container{--internal-columns: 8}}`,l=class extends v{constructor(){super(...arguments),this._formatter=new d,this.arcgisExpandedToggle=c()}static{this.properties={effectiveDisplayUnits:0,messages:0,result:0}}static{this.styles=p}async destroy(){await this.manager.destroy()}async load(){await this._formatter.when()}render(){let e=this.messages?.statistics;if(e)return n`<div class="container">${this._renderDistance("maxDistance",e.maxDistance)}${this._renderElevation("elevationGain",e.gain)}${this._renderElevation("elevationLoss",e.loss)}${this._renderElevation("minElevation",e.minElevation)}${this._renderElevation("maxElevation",e.maxElevation)}${this._renderElevation("avgElevation",e.avgElevation)}${this._renderSlope("maxPositiveSlope","maxNegativeSlope",e.maxSlope)}${this._renderSlope("avgPositiveSlope","avgNegativeSlope",e.avgSlope)}</div>`}_renderDistance(e,i){let a=this._renderValue(e,t=>{let s=this.effectiveDisplayUnits?.distance;return s?this._formatter.formatLength({type:"length",value:t,unit:s},r):""});return this._renderStatistic(i,a)}_renderElevation(e,i){let a=this._renderValue(e,t=>{let s=this.effectiveDisplayUnits?.elevation;return s?this._formatter.formatVerticalLength({type:"length",value:t,unit:s},r):""});return this._renderStatistic(i,a)}_renderSlope(e,i,a){return this._renderStatistic(a,n`<div class="slope-values"><calcite-icon icon=arrow-up scale=s></calcite-icon>${this._renderValue(e,t=>this._formatter.formatAngleDegrees(t,"degrees","geographic","geographic",r))}<calcite-icon icon=arrow-down scale=s></calcite-icon>${this._renderValue(i,t=>this._formatter.formatAngleDegrees(t,"degrees","geographic","geographic",r))}</div>`)}_renderStatistic(e,i){return n`<div class="statistic"><label class="statistic-label">${e}</label><div class="statistic-value">${i}</div></div>`}_renderValue(e,i){let{result:a}=this,t=a?.progress===1?a.statistics?.[e]:void 0;return t==null?" \u2015 ":i(t)}},r=1;g("arcgis-elevation-profile-statistics",l);return l},"applications/Components/QuantityFormatter")
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{O as o,U as d,a as s,b as t}from"./
|
|
2
|
+
import{O as o,U as d,a as s,b as t}from"./CDSRIIHC.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:c}])=>{var n=s`.table{display:flex;flex-direction:column;border-top:1px solid var(--calcite-color-border-1)}.row{display:flex;flex-direction:row;border-bottom:1px solid var(--calcite-color-border-1);border-right:1px solid var(--calcite-color-border-1)}.data{flex:1;border-left:1px solid var(--calcite-color-border-1);padding:5px}.empty-state{width:100%;max-inline-size:unset;transition-duration:0ms;margin-top:var(--calcite-spacing-md)}`,e=class extends o{constructor(){super(...arguments),this._disabled=!1,this._hasMetadata=!1,this._missionInfo={},this._platformInfo={},this._frameInfo={}}static{this.properties={_disabled:16,_hasMetadata:16,_missionInfo:16,_platformInfo:16,_frameInfo:16,viewModel:0,messages:0}}static{this.styles=n}loaded(){this.manager.onLifecycle(()=>[c(()=>this.viewModel.state,a=>{this._disabled=a==="not-ready"||a==="waiting"},{initial:!0}),c(()=>[this.viewModel.metadata?.missionInfo,this.viewModel.metadata?.platformInfo,this.viewModel.metadata?.frameInfo],()=>{let{metadata:a}=this.viewModel;if(this._hasMetadata=!!a,!this._hasMetadata)return;let{missionInfo:i,platformInfo:r,frameInfo:l}=a;this._missionInfo=i,this._platformInfo=r,this._frameInfo=l},{initial:!0})])}render(){let{messages:a}=this;return this._disabled||!this._hasMetadata?t`<calcite-tile class="empty-state" .description=${a.metadataDescription} .heading=${a.metadataNotLoaded}></calcite-tile>`:t`<calcite-block .heading=${a.metadata} expanded><calcite-accordion appearance=solid selection-mode=single><calcite-accordion-item .heading=${a.missionInfo}><div class="table">${Object.keys(this._missionInfo).map(i=>t`<div class="row"><div class="data">${i}</div><div class="data">${this._missionInfo[i]}</div></div>`)}</div></calcite-accordion-item><calcite-accordion-item .heading=${a.platformInfo}><div class="table">${Object.keys(this._platformInfo).map(i=>t`<div class="row"><div class="data">${i}</div><div class="data">${this._platformInfo[i]}</div></div>`)}</div></calcite-accordion-item><calcite-accordion-item .heading=${a.frameInfo}><div class="table">${Object.keys(this._frameInfo).map(i=>t`<div class="row"><div class="data">${i}</div><div class="data">${this._frameInfo[i]}</div></div>`)}</div></calcite-accordion-item></calcite-accordion></calcite-block>`}};d("arcgis-video-player-metadata",e);return e},"core/reactiveUtils")
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{O as o,U as r,a as c,b as n}from"./
|
|
2
|
+
import{O as o,U as r,a as c,b as n}from"./CDSRIIHC.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:p}])=>{var d=c`.scale-input-container{display:flex;align-items:center;padding-bottom:var(--calcite-spacing-md)}.scale-input-container .scale-input{flex-grow:1}`,l=class extends o{constructor(){super(...arguments),this._scale=0,this._scaleEnabled=!1}static{this.properties={_scale:16,_scaleEnabled:16,viewModel:0,messages:0}}static{this.styles=d}loaded(){this.manager.onLifecycle(()=>[p(()=>[this.viewModel.templateOptions.scale,this.viewModel.templateOptions.scaleEnabled],()=>{let{scale:e,scaleEnabled:t}=this.viewModel.templateOptions;this._scale=e,this._scaleEnabled=t},{initial:!0}),p(()=>this.viewModel.view?.scale,e=>{e&&(!this.viewModel.templateOptions.scaleEnabled||!this.viewModel.templateOptions.scale)&&(this.viewModel.templateOptions.scale=e)},{initial:!0})])}_resetToCurrentScale(){this.viewModel.templateOptions.scale=this.viewModel.view?.scale}render(){let{messages:e,_scale:t,_scaleEnabled:s}=this;return n`<div class="scale-info-container"><calcite-label layout=inline><calcite-checkbox .checked=${s} @calciteCheckboxChange=${a=>{this.viewModel.templateOptions.scaleEnabled=a.target.checked,this._resetToCurrentScale()}}></calcite-checkbox>${e.scale}</calcite-label><div class="scale-input-container"><calcite-input-number .ariaLabel=${e.scaleLabel} .ariaValueNow=${`${t}`} class="scale-input" .disabled=${!s} .value=${`${t}`} .max=${Number.MAX_SAFE_INTEGER} @calciteInputNumberInput=${a=>{let i=Number(a.target.value);if(Number.isNaN(i)||i<=0||!Number.isFinite(i)){a.target.value=`${t}`;return}this.viewModel.templateOptions.scale=i}}></calcite-input-number><calcite-button appearance=outline .ariaLabel=${e.reset} .disabled=${!s} icon-start=refresh kind=neutral @click=${()=>this._resetToCurrentScale()}></calcite-button></div></div>`}};r("arcgis-print-scale-section",l);return l},"core/reactiveUtils")
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{M as r,N as n,O as m,U as p,b as o}from"./
|
|
2
|
+
import{M as r,N as n,O as m,U as p,b as o}from"./CDSRIIHC.js";export default $arcgis.t(([{whenOnce:d}])=>{function f(i,t){return!i||i==="all"||!!(t&&i.includes(t))}var a=class extends m{static{this.properties={showSaveAs:5,viewModel:0,messages:0,allowedFormatsForSaving:1,arcgisSaveAs:0,exportedLink:0}}#e=r();_closePopover(){this.#e.value&&(this.#e.value.open=!1)}render(){let t=this.messages,e=this.exportedLink,v=e.formattedName??"",{state:c}=e,h=this.showSaveAs&&c!=="error"&&f(this.allowedFormatsForSaving,e.extension);return c!=="pending"&&h?o`<calcite-popover auto-close label=Popover offset-distance=1 overlay-positioning=fixed pointer-disabled .referenceElement=${`${v}-popover-button`} scale=s ${n(this.#e)}><calcite-list label>${e.portalItem?o`<calcite-list-item .label=${t.openItem} @calciteListItemSelect=${()=>{let l=e.portalItem;if(!l?.itemPageUrl)return;let s=document.createElement("a");s.target="_blank",s.href=l.itemPageUrl,s.rel="noreferrer",s.click(),this._closePopover()}}><calcite-icon icon=launch2 scale=s slot=content-start></calcite-icon></calcite-list-item>`:o`<calcite-list-item .label=${t.saveAs} @calciteListItemSelect=${async()=>{d(()=>e.portalItem).then(()=>{this.requestUpdate()}),this.arcgisSaveAs.emit(e),this._closePopover()}}><calcite-icon icon=save scale=s slot=content-start></calcite-icon></calcite-list-item>`}<calcite-list-item .label=${t.delete} @calciteListItemSelect=${()=>{this.viewModel.exportedLinks.remove(e),this._closePopover()}}><calcite-icon icon=trash scale=s slot=content-start></calcite-icon></calcite-list-item></calcite-list></calcite-popover>`:null}};p("arcgis-print-exports-panel-item-popover",a);return{a:f,b:a}},"core/reactiveUtils")
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{c as
|
|
2
|
+
import{c as l}from"./RZ6SODVT.js";export default $arcgis.t(([{watch:d}])=>{function B(n){n.el.childElem&&(n.el.childElem.ownedBy=n.el);let e=p(n);if(!e){let r=l(n);if(!r){f(n);return}return a(r,n,!0),r}return E(e,n.el.parent)||(n.el.parent=e,e.localName==="arcgis-expand"?g(e,n):a(e,n,!1)),e}function p({el:n}){for(let e=n.parentElement;e;e=e?.parentElement??null){if(c.has(e.localName))return e;if("ownedBy"in e&&e.ownedBy instanceof HTMLElement&&c.has(e.ownedBy.localName))return e.ownedBy}}var c=new Set(["arcgis-map","arcgis-scene","arcgis-link-chart","arcgis-expand"]);function E(n,e){return n!==e?!1:n.localName==="arcgis-expand"}function t(n,e,r="arcgisReady"){let o=n;if(o.view)e(o.view);else{let i=function(m){m.target===n&&(t(n,e,r),n.removeEventListener(r,i))};n.addEventListener(r,i)}}var g=(n,e)=>t(n,r=>{let o=u(e);if(e.el.shadowRoot?n.content=e.el:e.el.childElem&&n.content!=null&&o.append(e.el.childElem),e.el.view=r,n.referenceElement){e.referenceElement=n.referenceElement;return}d(()=>n.referenceElement,i=>{e.referenceElement=i},{once:!0})}),a=(n,e,r)=>t(n,o=>{r&&f(e),e.el.view=o,e.referenceElement=n},"arcgisViewReadyChange");function N(n){return n==null||n===""}function R(n,e){return n?.position===e?.position&&n?.heading===e.heading&&n?.tilt===e.tilt&&n?.fov===e.fov}function x(n,e){return e===void 0||n?.targetGeometry!==e?.targetGeometry||n?.rotation!==e?.rotation||n?.scale!==e?.scale}function L(n,e){return s(e?.center,n)}function s(n,e){if(typeof e=="string")return s(n,e.split(",").map(Number));if(!n)return e;if(Array.isArray(e)){let r=e[0],o=e[1],i=e.length>2?e[2]:void 0;if(r!==n.longitude||o!==n.latitude||i!==n.z)return e}else if(e&&!n?.equals(e))return e}function f(n){n.el.childElem&&u(n).append(n.el.childElem)}function u(n){return n.el.shadowRoot??n.el}var F=n=>n.el.childElem;async function b(n){let e=typeof n=="function"?n():n;e&&("setFocus"in e&&typeof e.setFocus=="function"?await e.setFocus():e instanceof HTMLElement&&e.focus())}return{a:B,b:N,c:R,d:x,e:L,f:s,g:F,h:b}},"core/reactiveUtils")
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import b from"./X6BTGTK3.js";import a from"./3AEP2FXT.js";import"./QUZTFUWM.js";import{d as v}from"./RZ6SODVT.js";import{O as m,P as l,Q as e,U as d,a as p,b as t}from"./CDSRIIHC.js";import"./H6RQVSYM.js";export default $arcgis.t(([,{a:f,b:b,d:g,f:h,g:y,h:r,i:u}])=>{var F=p`.layer-body{margin-left:var(--calcite-spacing-sm)}:dir(rtl) .layer-body{margin-right:var(--calcite-spacing-sm);margin-left:0;overflow:auto}.layer-row,.symbol{display:flex;justify-content:center}.ramps{margin-left:var(--calcite-spacing-md)}:dir(rtl) .ramps{margin-right:var(--calcite-spacing-md);margin-left:auto}.size-ramp~.layer-cell-info{width:80%;max-width:80%}.ramp-labels{display:flex;flex-flow:column nowrap;justify-content:space-between}.ramp-label{position:relative;padding:0 var(--calcite-spacing-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-label{position:relative;margin-left:7px;line-height:1em;white-space:nowrap;font-size:var(--calcite-font-size-sm)}.univariate-label:before{display:block;position:absolute;top:.45em;left:-19px;border-width:1px 0 0;border-style:solid;width:14px;height:0;content:""}.univariate-label:first-child{top:calc(var(--calcite-font-size-sm) / 2.2 * -1)}.univariate-label:last-child{bottom:calc(var(--calcite-font-size-sm) / 2.2 * -1)}:dir(rtl) .univariate-label{margin-right:var(--calcite-spacing-sm);margin-left:auto}:dir(rtl) .univariate-label:before{right:-19px;left:auto}.univariate-above-below-symbol{display:flex;align-items:center;justify-content:center}`,s=class extends m{constructor(){super(...arguments),this.legendElement=null,this.opacity=1}static{this.properties={cssEffectFilter:1,legendElement:0,opacity:9,messages:0}}static{this.styles=F}render(){let{legendElement:x,opacity:w}=this,{sizeRampElement:a,colorRampElement:o}=h(x,this.messages);if(!a)return null;let $=f(a),z=12,n=g(a,"full",!1),E=b(o,{width:z,height:n,rampAlignment:"vertical",opacity:w,type:"full",cssEffectFilter:this.cssEffectFilter,ariaLabel:this.messages.previewColorRampAriaLabel}),C=a.infos.length-1,L=a.infos.map((i,c)=>c===0||c===C?t`<div class=${l(i.label?o?"univariate-label":"ramp-label":void 0)}>${i.label}</div>`:null),R={display:"table-cell",verticalAlign:"middle"},j={marginTop:`${$}px`},A={height:`${n}px`};return t`<div style=${e(u)}><div class="layer-body">${a.infos.map(i=>t`<div class=${l(v("layer-row","size-ramp"))}><div class="symbol" style=${e(R)}>${i.preview}</div></div>`)}</div><div style=${e(j)}><div style=${e(y)}><div style=${e(r)}><div class="ramps">${E}</div></div><div style=${e(r)}><div class="ramp-labels" style=${e(A)}>${L}</div></div></div></div></div>`}};d("arcgis-legend-classic-univariate-color-size-ramp",s);return s},a,b)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{O as r,U as h,a as c,b as t}from"./
|
|
2
|
+
import{O as r,U as h,a as c,b as t}from"./CDSRIIHC.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:o}])=>{var d=c`.advanced-options-container{padding:var(--calcite-spacing-xxs);display:flex;flex-direction:column;gap:var(--calcite-spacing-xs)}`,u=["catalog-footprint","geojson","csv","graphics","kml","map-notes","stream"];function p(a){if(!a)return!1;let{map:e,graphics:l}=a;return l?.length?!0:e?.allLayers.some(i=>{if(i.type==="feature"&&"source"in i){let{type:s}=i.source;return s!=="feature-layer"&&s!=="ogc-feature"}return u.includes(i.type)})??!1}function m(a){let e=a?.map;return!!e&&e.tables.length>0}var n=class extends r{constructor(){super(...arguments),this.autoPopulateAuthor=!1,this.hideFeatureAttributes=!1,this.hideIncludeTables=!1}static{this.properties={_selectedTemplate:16,_showAuthorInput:16,_showCopyrightInput:16,_showLegendInput:16,_showNorthArrowInput:16,_showScaleBarInput:16,_showForceFeatureAttributes:16,_showTablesInput:16,autoPopulateAuthor:5,viewModel:0,messages:0,hideFeatureAttributes:5,hideIncludeTables:5}}static{this.styles=d}loaded(){this.manager.onLifecycle(()=>{let e,l=o(()=>this.viewModel.templateOptions.id,s=>{e?.remove(),this._selectedTemplate=s?this.viewModel.getLayoutTemplateById(s)??void 0:void 0,e=o(()=>[this._selectedTemplate?.layoutTemplateInfo?.layoutOptions?.hasAuthorText,this._selectedTemplate?.layoutTemplateInfo?.layoutOptions?.hasCopyrightText,this._selectedTemplate?.layoutTemplateInfo?.layoutOptions?.hasLegend,this._selectedTemplate?.mapSurroundInfoOptions?.northArrow?.length,this._selectedTemplate?.mapSurroundInfoOptions?.scaleBar?.length],()=>{this._showAuthorInput=this._selectedTemplate?.layoutTemplateInfo?.layoutOptions?.hasAuthorText??!0,this._showCopyrightInput=this._selectedTemplate?.layoutTemplateInfo?.layoutOptions?.hasCopyrightText??!0,this._showLegendInput=this._selectedTemplate?.layoutTemplateInfo?.layoutOptions?.hasLegend??!0,this._showNorthArrowInput=!!this._selectedTemplate?.mapSurroundInfoOptions?.northArrow.length,this._showScaleBarInput=!!this._selectedTemplate?.mapSurroundInfoOptions?.scaleBar.length,this._showForceFeatureAttributes=p(this.viewModel.view)&&!!this._selectedTemplate?.layoutItem?.id&&!this.hideFeatureAttributes,this._showTablesInput=m(this.viewModel.view)&&!!this._selectedTemplate?.layoutItem?.id&&!this.hideIncludeTables},{initial:!0})},{initial:!0}),i=o(()=>[this.viewModel.portal?.user,this.autoPopulateAuthor],()=>{!this.viewModel.templateOptions.author&&this.autoPopulateAuthor&&this.viewModel.portal?.user?.username&&(this.viewModel.templateOptions.author=this.viewModel.portal.user.username,this.requestUpdate())},{initial:!0});return()=>{l.remove(),i.remove(),e?.remove()}})}render(){return t`<div aria-labelledby=${`${this.el.id}__advancedOptionsForLayout`} class="advanced-options-container">${this._renderScaleSection()}${this._renderAuthorSection()}${this._renderCopyrightSection()}${this._renderDpiSection()}${this._renderOutSpatialReferenceSection()}${this._renderDatumTransformationSection()}${this._renderCustomTextElementSection()}${this._renderLegendSection()}${this._renderNorthArrowSection()}${this._renderScaleBarSection()}${this._renderForceFeatureAttributesSection()}${this._renderIncludeTablesSection()}</div>`}_renderScaleSection(){return t`<arcgis-print-scale-section .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-print-scale-section>`}_renderAuthorSection(){return this._showAuthorInput?t`<div><calcite-label>${this.messages.author}<calcite-input .value=${this.viewModel.templateOptions.author??""} @calciteInputInput=${e=>this.viewModel.templateOptions.author=e.target.value}></calcite-input></calcite-label></div>`:null}_renderCopyrightSection(){return this._showCopyrightInput?t`<div><calcite-label>${this.messages.copyright}<calcite-input .value=${this.viewModel.templateOptions.copyright??""} @calciteInputInput=${e=>this.viewModel.templateOptions.copyright=e.target.value}></calcite-input></calcite-label></div>`:null}_renderDpiSection(){return t`<arcgis-print-dpi-input .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-print-dpi-input>`}_renderOutSpatialReferenceSection(){return t`<arcgis-print-out-spatial-reference-input .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-print-out-spatial-reference-input>`}_renderDatumTransformationSection(){return t`<arcgis-print-datum-transformation-input .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-print-datum-transformation-input>`}_renderCustomTextElementSection(){return t`<arcgis-print-custom-text-elements .viewModel=${this.viewModel}></arcgis-print-custom-text-elements>`}_renderLegendSection(){return this._showLegendInput?t`<div><calcite-label layout=inline><calcite-checkbox .checked=${!!this.viewModel.templateOptions.legendEnabled} @calciteCheckboxChange=${e=>this.viewModel.templateOptions.legendEnabled=e.target.checked}></calcite-checkbox>${this.messages.legend}</calcite-label>${this.viewModel.templateOptions.legendEnabled?t`<calcite-label layout=inline><calcite-checkbox .checked=${!!this.viewModel.templateOptions.dynamicLegendEnabled} @calciteCheckboxChange=${e=>this.viewModel.templateOptions.dynamicLegendEnabled=e.target.checked}></calcite-checkbox>${this.messages.dynamicLegend}</calcite-label>`:null}</div>`:null}_renderNorthArrowSection(){return this._showNorthArrowInput?t`<div><calcite-label layout=inline><calcite-checkbox .checked=${!!this.viewModel.templateOptions.northArrowEnabled} @calciteCheckboxChange=${e=>this.viewModel.templateOptions.northArrowEnabled=e.target.checked}></calcite-checkbox>${this.messages.northArrow}</calcite-label></div>`:null}_renderScaleBarSection(){return this._showScaleBarInput?t`<div><calcite-label layout=inline><calcite-checkbox .checked=${!!this.viewModel.templateOptions.scaleBarEnabled} @calciteCheckboxChange=${e=>this.viewModel.templateOptions.scaleBarEnabled=e.target.checked}></calcite-checkbox>${this.messages.scaleBar}</calcite-label>${this.viewModel.templateOptions.scaleBarEnabled&&!this._selectedTemplate?.layoutItem?.id?t`<calcite-label>${this.messages.scaleBarUnit}<calcite-select label="Scale bar unit" .value=${this.viewModel.templateOptions.scaleBarUnit||void 0} @calciteSelectChange=${e=>{this.viewModel.templateOptions.scaleBarUnit=e.target.value}}><calcite-option value=kilometers>${this.messages.milesAndKilometers}</calcite-option><calcite-option value=meters>${this.messages.feetAndMeters}</calcite-option></calcite-select></calcite-label>`:null}</div>`:null}_renderForceFeatureAttributesSection(){return this._showForceFeatureAttributes?t`<div><calcite-label layout=inline><calcite-checkbox .checked=${this.viewModel.templateOptions.forceFeatureAttributes} @calciteCheckboxChange=${e=>this.viewModel.templateOptions.forceFeatureAttributes=e.target.checked}></calcite-checkbox>${this.messages.forceFeatureAttributes}</calcite-label></div>`:null}_renderIncludeTablesSection(){return this._showTablesInput?t`<div><calcite-label layout=inline><calcite-checkbox .checked=${this.viewModel.templateOptions.includeTables} @calciteCheckboxChange=${e=>this.viewModel.templateOptions.includeTables=e.target.checked}></calcite-checkbox>${this.messages.includeTables}</calcite-label></div>`:null}};h("arcgis-print-layout-advanced-options",n);return n},"core/reactiveUtils")
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{b as i}from"./
|
|
2
|
+
import{b as i}from"./Z7J6NDSB.js";export default $arcgis.t(([{watch:y}])=>{function l(e,a){return i((n,d)=>(d.onLifecycle(()=>y(()=>({layerId:e.mapLayerId,viewReady:e.view?.ready}),({layerId:r,viewReady:o})=>{if(!o)return;let t=e.view;if(!r){a(void 0);return}a(t?.map?.findLayerById(r))},{initial:!0})),e.mapLayerId))}return l},"core/reactiveUtils")
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import{a as T}from"./4RGFCQOB.js";import{d as c,i as S}from"./VEZP32RO.js";import j from"./CTSJYC3X.js";import{a as g}from"./POKO37D3.js";import i from"./P6CDJ2IV.js";import"./VJVKFKSG.js";import{a as v}from"./BFXQ5WCT.js";import h from"./SYRZLONH.js";import{a as M}from"./JP24H6WY.js";import{a as p}from"./JD74LG7K.js";import f from"./V6VLUKHQ.js";import e from"./7MO7E734.js";import{g as _}from"./Z7J6NDSB.js";import"./VWED2WAO.js";import a from"./3MWUCGFA.js";import"./QUZTFUWM.js";import"./RZ6SODVT.js";import{O as x,P as u,R as y,U as b,a as w,b as d,x as D}from"./CDSRIIHC.js";import"./H6RQVSYM.js";export default $arcgis.t(([E,{property:a,subclass:R},{watch:A,whenOnce:j},{forceInteractive:H},,,,C,,O])=>{var U=w`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}:host{position:relative;width:var(--arcgis-internal-panel-width, 300px)}.root{--section-internal-gap: var(--calcite-spacing-md);display:flex;flex-direction:column;gap:var(--calcite-spacing-lg);min-width:var(--arcgis-internal-panel-min-width, 300px);overflow:var(--arcgis-internal-panel-overflow, visible);height:fit-content}:host([visual-scale="s"]) .root{--section-internal-gap: var(--calcite-spacing-sm)}:host([visual-scale="l"]) .root{--section-internal-gap: var(--calcite-spacing-lg)}.time-range-section arcgis-time-of-day-slider{margin-block-end:var(--section-internal-gap)}.time-range-section calcite-label:last-child,.visualization-options-section calcite-label:last-child{--calcite-label-margin-bottom: 0}.date-picker{flex-grow:1;display:block}.visualization-options{flex-direction:column;display:flex;gap:var(--section-internal-gap)}.hidden-config{display:none}`,Z=Object.defineProperty,F=Object.getOwnPropertyDescriptor,r=(i,e,t,n)=>{for(var s=n>1?void 0:n?F(e,t):e,l=i.length-1,h;l>=0;l--)(h=i[l])&&(s=(n?h(e,t,s):h(s))||s);return n&&s&&Z(e,t,s),s},$=Symbol("interactiveHandle"),o=class extends O{constructor(){super(...arguments),this.supportedViewType="3d",this.unsupportedErrorMessage="The Shadow Cast component is only supported in 3D views.",this.shouldForceInteractive=!1,this.minMinDuration=0,this.maxMinDuration=c(8,"hours","milliseconds"),this.hideShadowDurationTooltip=!1}constructAnalysis(){return new E}initialize(){this.addHandles(A(()=>({analysisView:this.analysisView,tooltipVisible:!this.hideShadowDurationTooltip}),({analysisView:i,tooltipVisible:e})=>{this.removeHandles($),i&&(i.interactive=e,e&&this.addHandles(H(i),$))},{sync:!0,initial:!0}))}get date(){return this.analysis.date}set date(i){this.analysis.date=i}get discreteColor(){return this.analysis.discreteOptions.color}set discreteColor(i){this.analysis.discreteOptions.color=i}get discreteInterval(){return this.analysis.discreteOptions.interval}set discreteInterval(i){this.analysis.discreteOptions.interval=i}get totalDurationColor(){return this.analysis.totalDurationOptions.color}set totalDurationColor(i){this.analysis.totalDurationOptions.color=i}get totalDurationMode(){return this.analysis.totalDurationOptions.mode}set totalDurationMode(i){this.analysis.totalDurationOptions.mode=i}get localDate(){return S(this.view,this.effectiveUtcOffset)}get mode(){return this.analysis.mode}set mode(i){this.analysis.mode=i}get visualizeSunlight(){return this.analysis.visualizeSunlight}set visualizeSunlight(i){this.analysis.visualizeSunlight=i}get startTimeOfDay(){return this.analysis.startTimeOfDay}set startTimeOfDay(i){this.analysis.startTimeOfDay=i}get endTimeOfDay(){return this.analysis.endTimeOfDay}set endTimeOfDay(i){this.analysis.endTimeOfDay=i}get state(){return this.view?.ready&&this.analysisView?"ready":"disabled"}get minDurationColor(){return this.analysis.minDurationOptions.color}set minDurationColor(i){this.analysis.minDurationOptions.color=i}get minDuration(){return this.analysis.minDurationOptions.minDuration}set minDuration(i){this.analysis.minDurationOptions.minDuration=i}get minDurationContextEnabled(){return this.analysis.minDurationOptions.contextEnabled}set minDurationContextEnabled(i){this.analysis.minDurationOptions.contextEnabled=i}get minDurationContextColor(){return this.analysis.minDurationOptions.contextOptions.color}set minDurationContextColor(i){this.analysis.minDurationOptions.contextOptions.color=i}get minDurationContextInterval(){return this.analysis.minDurationOptions.contextOptions.interval}set minDurationContextInterval(i){this.analysis.minDurationOptions.contextOptions.interval=i}get utcOffset(){return this.analysis.utcOffset??void 0}set utcOffset(i){this.analysis.utcOffset=i}get effectiveUtcOffset(){let{utcOffset:i}=this.analysis;if(i!=null)return i;let e=this.view?.camera?.position;return e?T(e):0}async getDurationAtScreen(i){return await(await j(()=>this.analysisView)).getDurationAtScreen(i)}};r([a()],o.prototype,"date",1);r([a()],o.prototype,"discreteColor",1);r([a()],o.prototype,"discreteInterval",1);r([a()],o.prototype,"totalDurationColor",1);r([a()],o.prototype,"totalDurationMode",1);r([a()],o.prototype,"localDate",1);r([a()],o.prototype,"mode",1);r([a()],o.prototype,"visualizeSunlight",1);r([a()],o.prototype,"startTimeOfDay",1);r([a()],o.prototype,"endTimeOfDay",1);r([a()],o.prototype,"state",1);r([a()],o.prototype,"minDurationColor",1);r([a()],o.prototype,"minMinDuration",2);r([a()],o.prototype,"maxMinDuration",2);r([a()],o.prototype,"minDuration",1);r([a()],o.prototype,"minDurationContextEnabled",1);r([a()],o.prototype,"minDurationContextColor",1);r([a()],o.prototype,"minDurationContextInterval",1);r([a()],o.prototype,"utcOffset",1);r([a()],o.prototype,"effectiveUtcOffset",1);r([a()],o.prototype,"hideShadowDurationTooltip",2);o=r([R("components.shadow-cast.ShadowCastViewModel")],o);var q=C(o),f=class extends x{constructor(){super(...arguments),this.viewModel=q(this),this.messages=M(),this.analysis=this.viewModel.analysis,this.view=this.viewModel.view,this.visualizeSunlight=this.viewModel.visualizeSunlight,this.visualScale="m",this.autoDestroyDisabled=!1,this.endTimeOfDay=this.viewModel.endTimeOfDay,this.headingLevel=4,this.hideTimeRangeSlider=!1,this.hideTimezone=!1,this.hideDatePicker=!1,this.hideShadowDurationTooltip=this.viewModel.hideShadowDurationTooltip,this.hideVisualization=this.viewModel.hideVisualization,this.hideVisualizationOptions=!1,this.hideDiscreteOptions=!1,this.hideDiscreteColorPicker=!1,this.hideDiscreteInterval=!1,this.hideTotalDurationOptions=!1,this.hideTotalDurationColorPicker=!1,this.hideTotalDurationModeSelect=!1,this.hideMinDurationOptions=!1,this.hideMinDurationColorPicker=!1,this.hideMinDurationSlider=!1,this.hideMinDurationContextOptions=!1,this.hideMinDurationContextToggle=!1,this.hideMinDurationContextColorPicker=!1,this.hideMinDurationContextInterval=!1,this.icon="measure-building-height-shadow",this.mode=this.viewModel.mode,this.startTimeOfDay=this.viewModel.startTimeOfDay,this.state=this.viewModel.state,this.utcOffset=this.viewModel.utcOffset,this.discreteColor=this.viewModel.discreteColor,this.discreteInterval=this.viewModel.discreteInterval,this.totalDurationColor=this.viewModel.totalDurationColor,this.totalDurationMode=this.viewModel.totalDurationMode,this.minDuration=this.viewModel.minDuration,this.minDurationColor=this.viewModel.minDurationColor,this.minMinDuration=this.viewModel.minMinDuration,this.maxMinDuration=this.viewModel.maxMinDuration,this.minDurationContextEnabled=this.viewModel.minDurationContextEnabled,this.minDurationContextColor=this.viewModel.minDurationContextColor,this.minDurationContextInterval=this.viewModel.minDurationContextInterval,this.arcgisPropertyChange=_()("state"),this.arcgisReady=D()}static{this.properties={analysis:0,view:0,visualizeSunlight:5,visualScale:3,autoDestroyDisabled:5,date:1,endTimeOfDay:9,headingLevel:9,hideTimeRangeSlider:5,hideTimezone:5,hideDatePicker:5,hideShadowDurationTooltip:5,hideVisualization:5,hideVisualizationOptions:5,hideDiscreteOptions:5,hideDiscreteColorPicker:5,hideDiscreteInterval:5,hideTotalDurationOptions:5,hideTotalDurationColorPicker:5,hideTotalDurationModeSelect:5,hideMinDurationOptions:5,hideMinDurationColorPicker:5,hideMinDurationSlider:5,hideMinDurationContextOptions:5,hideMinDurationContextToggle:5,hideMinDurationContextColorPicker:5,hideMinDurationContextInterval:5,icon:3,label:1,mode:1,referenceElement:1,startTimeOfDay:9,state:32,utcOffset:9,discreteColor:0,discreteInterval:9,totalDurationColor:0,totalDurationMode:1,minDuration:9,minDurationColor:0,minMinDuration:9,maxMinDuration:9,minDurationContextEnabled:5,minDurationContextColor:0,minDurationContextInterval:9}}static{this.styles=U}get _effectiveMessages(){let{messages:e,visualizeSunlight:t}=this,{sunlight:n}=e;return{...e,discrete:t?n?.discrete:e.discrete,minDuration:t?n?.minDuration:e.minDuration,totalDuration:t?n?.totalDuration:e.totalDuration,timeInShadow:t?e.timeInSunlight:e.timeInShadow,timeRangeSliderLabel:e.timeRangeSliderLabel}}get date(){return this.viewModel.date}set date(e){this.viewModel.date=e}async destroy(){await this.manager.destroy()}async getDurationAtScreen(e){return await this.viewModel.getDurationAtScreen(e)}render(){let{_effectiveMessages:e}=this;return d`<div aria-label=${e.componentLabel??y} class=${u({root:!0,[p.widget]:!0,[p.widgetDisabled]:this.viewModel.state==="disabled",[p.panel]:!0})} role=presentation>${this._renderTimeRangeSection()}${g({hidden:this.hideVisualizationOptions,children:this._renderVisualizationOptionsSection()})}</div>`}_renderTimeRangeSection(){if(!this.analysis||this.hideTimeRangeSlider&&this.hideDatePicker)return;let{_effectiveMessages:e,viewModel:t}=this,n=this.visualScale;return d`<section class="time-range-section">${v({level:this.headingLevel,children:e.timeRangeHeading})}${g({hidden:this.hideTimeRangeSlider,children:this._renderTimeRange()})}${g({hidden:this.hideTimezone,children:d`<calcite-label .scale=${n}>${e.timezoneLabel}<calcite-input-time-zone mode=offset overlay-positioning=fixed .referenceDate=${t.localDate} .scale=${n} .value=${`${c(t.effectiveUtcOffset,"hours","minutes")}`} @calciteInputTimeZoneChange=${s=>{t.utcOffset=+s.target.value/60}}></calcite-input-time-zone></calcite-label>`})}${g({hidden:this.hideDatePicker,children:d`<calcite-label .scale=${n}>${e.dateLabel}<calcite-input-date-picker overlay-positioning=fixed placement=bottom .scale=${n} .valueAsDate=${t.date} @calciteInputDatePickerChange=${s=>{let l=s.currentTarget.valueAsDate;t.date=Array.isArray(l)?l[0]:l}}></calcite-input-date-picker></calcite-label>`})}</section>`}_renderTimeRange(){let{_effectiveMessages:e,viewModel:t}=this;return d`<arcgis-time-of-day-slider mode=range .startTime=${k(this.startTimeOfDay)} .endTime=${k(this.endTimeOfDay)} .label=${e.timeRangeSliderLabel} .visualScale=${this.visualScale} @arcgisTimeChange=${({currentTarget:n})=>{t.startTimeOfDay=c(n.startTime,"minutes","milliseconds"),t.endTimeOfDay=c(n.endTime,"minutes","milliseconds")}}></arcgis-time-of-day-slider>`}_renderVisualizationOptionsSection(){let{analysis:e,_effectiveMessages:t,headingLevel:n,viewModel:s}=this;if(!e)return;let{discreteOptions:l,totalDurationOptions:h,minDurationOptions:z}=e,m=(V,L)=>s.mode===V&&!L?void 0:"hidden-config",I=this.hideMinDurationContextOptions||this.visualizeSunlight,P=this.hideMinDurationContextToggle||this.visualizeSunlight;return d`<section class="visualization-options-section">${v({level:n,children:t.visualizationLabel})}<div class="visualization-options">${this._renderModeSelect()}<div class=${u(m("min-duration",this.hideMinDurationOptions))}><arcgis-shadow-cast-min-duration-config .hideColorPicker=${this.hideMinDurationColorPicker} .hideContextColorPicker=${this.hideMinDurationContextColorPicker} .hideContextInterval=${this.hideMinDurationContextInterval} .hideContextOptions=${I} .hideContextToggle=${P} .hideSlider=${this.hideMinDurationSlider} .minMinDuration=${this.minMinDuration} .maxMinDuration=${this.maxMinDuration} .messages=${t} .options=${z} .scale=${this.visualScale}></arcgis-shadow-cast-min-duration-config></div><div class=${u(m("total-duration",this.hideTotalDurationOptions))}><arcgis-shadow-cast-total-duration-config .hideColorPicker=${this.hideTotalDurationColorPicker} .hideModeSelect=${this.hideTotalDurationModeSelect} .messages=${t} .options=${h} .scale=${this.visualScale}></arcgis-shadow-cast-total-duration-config></div><div class=${u(m("discrete",this.hideDiscreteOptions))}><arcgis-shadow-cast-discrete-config .hideColorPicker=${this.hideDiscreteColorPicker} .hideInterval=${this.hideDiscreteInterval} .messages=${t} .options=${l} .scale=${this.visualScale}></arcgis-shadow-cast-discrete-config></div></div></section>`}_renderModeSelect(){let{_effectiveMessages:e,viewModel:t}=this,{mode:n}=t;return d`<calcite-select .label=${e.visualizationLabel??""} .scale=${this.visualScale} @calciteSelectChange=${s=>{let l=s.target.selectedOption?.value;t.mode=l??"min-duration"}}>${[{mode:"min-duration",label:e.minDuration?.optionLabel},{mode:"total-duration",label:e.totalDuration?.optionLabel},{mode:"discrete",label:e.discrete?.optionLabel}].map(({mode:s,label:l})=>d`<calcite-option .selected=${s===n} .value=${s} .label=${l}></calcite-option>`)}</calcite-select>`}};function k(i){return Math.round(c(i,"milliseconds","minutes"))}b("arcgis-shadow-cast",f);return f},"analysis/ShadowCastAnalysis","core/accessorSupport/decorators","core/reactiveUtils","applications/Components/analysisUtils",a,e,f,h,i,j)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import{a as f}from"./JP24H6WY.js";import{a as g}from"./JD74LG7K.js";import b from"./7MO7E734.js";import{g as d}from"./Z7J6NDSB.js";import"./VWED2WAO.js";import a from"./3MWUCGFA.js";import"./QUZTFUWM.js";import"./RZ6SODVT.js";import{O as u,P as m,R as r,U as h,a as n,b as l,x as i}from"./CDSRIIHC.js";import"./H6RQVSYM.js";export default $arcgis.t(([{when:z},,{a:v}])=>{function y(t){if(!t)return!1;if(t.type==="3d")return t.ready;if(!t?.ready)return!1;let o=p(t),e=t.constraints?.effectiveMaxScale;return e===0||o>e}function b(t){if(!t)return!1;if(t.type==="3d")return t.ready;if(!t?.ready)return!1;let o=p(t),e=t.constraints?.effectiveMinScale;return e===0||o<e}function p(t){let o=t?.animation?.target;return(o&&"then"in o?void 0:o?.scale)??t?.scale??0}var w=n`.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)}}:host{display:flex;max-width:fit-content}.zoom-out{border-block-start:solid 1px var(--calcite-color-border-1)}.horizontal{flex-flow:row-reverse nowrap}.horizontal .zoom-out{border-block-start:none;border-inline-end:solid 1px var(--calcite-color-border-1)}`,s=class extends u{constructor(){super(...arguments),this.messages=f({}),this._state="disabled",this.view=v(this),this.autoDestroyDisabled=!1,this.icon="magnifying-glass-plus",this.layout="vertical",this.visualScale="m",this.arcgisActionZoom=i(),this.arcgisPropertyChange=d()("state"),this.arcgisReady=i()}static{this.properties={_state:16,view:0,autoDestroyDisabled:5,icon:1,label:1,layout:3,messageOverrides:0,referenceElement:1,visualScale:1,state:32}}static{this.styles=w}get state(){return this._state}async destroy(){await this.manager.destroy()}async zoomIn(){await this.zoomBy(1)}async zoomOut(){await this.zoomBy(-1)}loaded(){this.manager.onLifecycle(()=>[z(()=>this.view?.ready?"ready":"disabled",o=>{this._state=o},{sync:!0,initial:!0})])}async zoomBy(o){let{view:e}=this,a=o===1;!(a?y(e):b(e))||!e||(this.arcgisActionZoom.emit({action:a?"zoomIn":"zoomOut"}),a?await e.zoomIn():await e.zoomOut())}render(){let o=y(this.view),e=b(this.view),{zoomIn:a,zoomOut:c}=this.messages;return l`<div class=${m({[g.arcgisButton]:!0,horizontal:this.layout==="horizontal"})}><calcite-button class="zoom-in" .disabled=${!o} icon-start=plus kind=neutral .label=${a} @click=${this.zoomIn} .scale=${this.visualScale} title=${a??r}></calcite-button><calcite-button class="zoom-out" .disabled=${!e} icon-start=minus kind=neutral .label=${c} @click=${this.zoomOut} .scale=${this.visualScale} title=${c??r}></calcite-button></div>`}};h("arcgis-zoom",s);return s},"core/reactiveUtils",a,b)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{O as c,U as o,a as s,b as a}from"./
|
|
2
|
+
import{O as c,U as o,a as s,b as a}from"./CDSRIIHC.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:p},d])=>{var f=s`.sr-label{display:flex;gap:var(--calcite-spacing-xs)}.invalid-wkid-text{color:var(--calcite-color-status-danger);font-size:var(--calcite-font-size--0)}`;function m(e){if(e==null)return!1;let t=e.wkid;return t!=null&&t>=2e3?!0:e.wkt2!=null||e.wkt!=null}function v(e){return e==null?e:Math.round(Number.parseFloat(e))}var l=class extends c{constructor(){super(...arguments),this._isValidSpatialReference=!0}static{this.properties={_isValidSpatialReference:16,_outSpatialReference:16,templateOptions:0,viewModel:0,messages:0}}static{this.styles=f}loaded(){this.manager.onLifecycle(()=>[p(()=>this.viewModel.outSpatialReference,t=>{this._outSpatialReference=t??void 0},{initial:!0})])}render(){let{messages:t}=this;return a`<div><calcite-label><div class="sr-label">${t.outSpatialReference}<calcite-link href=https://developers.arcgis.com/rest/services-reference/enterprise/using-spatial-references/ target=_blank>(WKID)</calcite-link></div><calcite-input-number data-input-name=outSpatialReference integer number-button-type=none .value=${this._outSpatialReference?.wkid?.toString()??""} .max=${Number.MAX_SAFE_INTEGER} @calciteInputNumberInput=${({currentTarget:u})=>{let n=u.value;if(n===""){this.viewModel.outSpatialReference=null,this._isValidSpatialReference=!0;return}let i=v(n),r=Number.isNaN(i)||i==null?null:new d({wkid:i});this.viewModel.outSpatialReference=r,this._isValidSpatialReference=m(r)}}></calcite-input-number>${this._isValidSpatialReference?null:a`<div class="invalid-wkid-text">${t.invalidWkid}</div>`}</calcite-label></div>`}};o("arcgis-print-out-spatial-reference-input",l);return l},"core/reactiveUtils","geometry/SpatialReference")
|