@arcgis/map-components 5.0.0-next.86 → 5.0.0-next.88
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/{7Z7QKTYQ.js → 33U56VQS.js} +2 -2
- package/dist/cdn/{6SWW5W4Z.js → 3KCGFYOF.js} +3 -3
- package/dist/cdn/{723ZEN3T.js → 3RIT2CCS.js} +2 -2
- package/dist/cdn/{HCSDA4FD.js → 3XEJQGGY.js} +2 -2
- package/dist/cdn/{U5E5C4DA.js → 3XSTUOQG.js} +2 -2
- package/dist/cdn/{6HHRCQIR.js → 42PTQTRP.js} +1 -1
- package/dist/cdn/{R2KO7T2U.js → 43M423T3.js} +2 -2
- package/dist/cdn/{UNZNUWRS.js → 4BQT5ECZ.js} +2 -2
- package/dist/cdn/{DZ34M23L.js → 4EVW2PPB.js} +2 -2
- package/dist/cdn/{HLA35TPM.js → 4LZ7C6MJ.js} +2 -2
- package/dist/cdn/{BZ5DJ4KX.js → 4RPBOIOA.js} +2 -2
- package/dist/cdn/{5U52GUUD.js → 54VTR2MD.js} +2 -2
- package/dist/cdn/{O2Z5HLDA.js → 556J5RDA.js} +2 -2
- package/dist/cdn/{E6CX6U2V.js → 55A3UPR3.js} +2 -2
- package/dist/cdn/{FEJ5AIXX.js → 575XURXJ.js} +2 -2
- package/dist/cdn/{RENW62US.js → 5ATXDBBM.js} +2 -2
- package/dist/cdn/{UZZ37I3P.js → 5BCJ4S65.js} +2 -2
- package/dist/cdn/{LRT2YESH.js → 5DID5LPZ.js} +2 -2
- package/dist/cdn/{WTAQPAOI.js → 5HJ3P5W2.js} +2 -2
- package/dist/cdn/{RLNSOPII.js → 5JXY3U47.js} +2 -2
- package/dist/cdn/{FJCA2U57.js → 5N7OQCKI.js} +2 -2
- package/dist/cdn/{YH2PZIHI.js → 5UN7XJFJ.js} +2 -2
- package/dist/cdn/{4EW2KFDF.js → 5WDHY3AX.js} +2 -2
- package/dist/cdn/{L6BDRJAQ.js → 5XRO4FE6.js} +2 -2
- package/dist/cdn/{5VV5BXHR.js → 64ECERCF.js} +2 -2
- package/dist/cdn/{U5B3HI33.js → 65LCKOET.js} +2 -2
- package/dist/cdn/{I5YGUDYC.js → 66ATYXAM.js} +2 -2
- package/dist/cdn/{LX3X3GOY.js → 6DKSCEZJ.js} +2 -2
- package/dist/cdn/{MU43C5Y3.js → 6HT45IOA.js} +2 -2
- package/dist/cdn/{5CVQQ3YY.js → 6JJJ6LQT.js} +2 -2
- package/dist/cdn/{D4WLX4SG.js → 6SBLQLAH.js} +1 -1
- package/dist/cdn/{7RUOLI5T.js → 6XOYJ2FK.js} +2 -2
- package/dist/cdn/{SWR2HABH.js → 6YVM46KT.js} +2 -2
- package/dist/cdn/{QPEMW24W.js → 7CTOUJCK.js} +2 -2
- package/dist/cdn/{KV5UZGA6.js → 7L3F75T7.js} +2 -2
- package/dist/cdn/{ZMSX4IRT.js → 7LDZG3V4.js} +2 -2
- package/dist/cdn/{3OYMJVMR.js → 7MN5ISIX.js} +2 -2
- package/dist/cdn/{M3U6NKJ4.js → 7U4DV6CC.js} +2 -2
- package/dist/cdn/{VUUSSEOX.js → AE5HTKXU.js} +2 -2
- package/dist/cdn/{PHQBRV6J.js → AYJZKJ6S.js} +2 -2
- package/dist/cdn/{MRZDCBNR.js → AYM5K4VI.js} +2 -2
- package/dist/cdn/{NFITM5YZ.js → AZ4GDV4K.js} +2 -2
- package/dist/cdn/{2MLO5RTJ.js → B26NMC2I.js} +2 -2
- package/dist/cdn/{7UMKIXF5.js → B632DN7E.js} +2 -2
- package/dist/cdn/{IIDFPKT2.js → BC5AVLFS.js} +2 -2
- package/dist/cdn/{MET27M2J.js → BDOEXQHY.js} +1 -1
- package/dist/cdn/{BB6XZOXM.js → BFSSALOQ.js} +2 -2
- package/dist/cdn/{ZYW73PHI.js → BKKLVCHZ.js} +2 -2
- package/dist/cdn/{QN3EQVBX.js → BM4P4RFZ.js} +2 -2
- package/dist/cdn/{IEGLZOX2.js → BPCW3T6K.js} +2 -2
- package/dist/cdn/{YZZ7RMM4.js → BPHA4HP3.js} +2 -2
- package/dist/cdn/{HPJS4772.js → C6TDHDZF.js} +2 -2
- package/dist/cdn/{TFEJOYUG.js → CB5LV6VG.js} +2 -2
- package/dist/cdn/{64WDU22U.js → CCHBPP6J.js} +2 -2
- package/dist/cdn/{Z6ABT6FN.js → CEVIF7D3.js} +2 -2
- package/dist/cdn/{WKK5OX2C.js → CQNPYPSS.js} +2 -2
- package/dist/cdn/{TLGTGJNS.js → DFJFADBE.js} +2 -2
- package/dist/cdn/{S6A6PZ6U.js → DKQX6JWR.js} +2 -2
- package/dist/cdn/{QWM7FTFY.js → DYO2VLJH.js} +2 -2
- package/dist/cdn/{AJASL6OD.js → E2KFX3P4.js} +2 -2
- package/dist/cdn/{W7HXBCA7.js → E75S2TLK.js} +2 -2
- package/dist/cdn/{JJZQJEZ3.js → ECWD5H4S.js} +2 -2
- package/dist/cdn/{4MOOQPRA.js → EHXW2J2P.js} +2 -2
- package/dist/cdn/{RDV3ZVZB.js → ELEZAC3K.js} +1 -1
- package/dist/cdn/{QY2ONDDK.js → ELTDN6M2.js} +2 -2
- package/dist/cdn/{6EHD4HBM.js → EP4FNRB2.js} +2 -2
- package/dist/cdn/{HB3XBOVF.js → EQF562TI.js} +2 -2
- package/dist/cdn/{OFZ4ZT2P.js → EQMAMY5L.js} +2 -2
- package/dist/cdn/{7PCCPDMO.js → ETVO5RNL.js} +2 -2
- package/dist/cdn/{23BMCGBL.js → EYHKPKKG.js} +2 -2
- package/dist/cdn/{FQWO6TH4.js → EZTJVFHA.js} +2 -2
- package/dist/cdn/{LNMN3NQ2.js → EZZGMQDB.js} +1 -1
- package/dist/cdn/F3UPR45E.js +4 -0
- package/dist/cdn/{HKO7MC3U.js → F6TAMYPM.js} +2 -2
- package/dist/cdn/{ZRZ6SHI7.js → FHK4AXZJ.js} +2 -2
- package/dist/cdn/{ZBOH5EEO.js → FHMZ7YBE.js} +1 -1
- package/dist/cdn/{Y254QANF.js → FJHXWU24.js} +2 -2
- package/dist/cdn/FKLRF4SD.js +4 -0
- package/dist/cdn/{A4Y6VMG6.js → FM5VPHDT.js} +2 -2
- package/dist/cdn/{7T6KYWVV.js → FP6T4CXN.js} +2 -2
- package/dist/cdn/{3NKUSE2S.js → FPC4IS6K.js} +2 -2
- package/dist/cdn/{FPXK7LJK.js → FTQOPR7J.js} +2 -2
- package/dist/cdn/{KLNIK4JL.js → FXWGL56I.js} +2 -2
- package/dist/cdn/{GZ7ET23L.js → G535EA24.js} +2 -2
- package/dist/cdn/{M4ENJ3S3.js → G5ALXNA4.js} +2 -2
- package/dist/cdn/{CNPY2BFY.js → GAXO7P35.js} +2 -2
- package/dist/cdn/{FSCMSCHV.js → GCONJWTN.js} +2 -2
- package/dist/cdn/{53L7MPC5.js → GCYSTK3R.js} +2 -2
- package/dist/cdn/{XVN3ROOD.js → GITNRBUR.js} +1 -1
- package/dist/cdn/{4RFOHHLW.js → GLRZUVNS.js} +2 -2
- package/dist/cdn/{HQERXKHP.js → GSWVS2QG.js} +2 -2
- package/dist/cdn/{NLA5P43E.js → GVDBEPLK.js} +2 -2
- package/dist/cdn/{ARDO7DJH.js → GWDVFPUL.js} +2 -2
- package/dist/cdn/{UUBDSTXS.js → HCKQQPCE.js} +2 -2
- package/dist/cdn/{WFWAN7WY.js → HD3D5TKU.js} +2 -2
- package/dist/cdn/{5VJUPGSB.js → HJRNNVRG.js} +2 -2
- package/dist/cdn/{WGI7WA5T.js → HTWZ7HU7.js} +2 -2
- package/dist/cdn/{HXXIKHSH.js → I2KJOBY3.js} +2 -2
- package/dist/cdn/{YLCOC5BZ.js → I6DXWHS6.js} +2 -2
- package/dist/cdn/{QOBWVA64.js → ICSY4YGK.js} +2 -2
- package/dist/cdn/{UNKM5ZUF.js → IDN3SUZZ.js} +2 -2
- package/dist/cdn/{6YQCJJN7.js → IEGUZAO6.js} +2 -2
- package/dist/cdn/{JDUZLKGE.js → IGKQONCH.js} +2 -2
- package/dist/cdn/{LG562VXA.js → IGKSHE54.js} +2 -2
- package/dist/cdn/{NJHCCRBW.js → IJ776NFT.js} +2 -2
- package/dist/cdn/{N6SMIHQ7.js → IL7F5GUO.js} +2 -2
- package/dist/cdn/{TB6ZLO3A.js → IOJESX3W.js} +2 -2
- package/dist/cdn/{Y3LTJXN5.js → IQYHSSOC.js} +2 -2
- package/dist/cdn/{Z7ISF5QL.js → IRZYGPGH.js} +2 -2
- package/dist/cdn/{3SXXBFLE.js → ISCSRMEA.js} +2 -2
- package/dist/cdn/{ZFYKDTFF.js → IUWLNETM.js} +2 -2
- package/dist/cdn/{62YOXR3D.js → IX4COFHC.js} +2 -2
- package/dist/cdn/{MQSKKE6P.js → JEUKUTRG.js} +2 -2
- package/dist/cdn/{E2XNAL3V.js → JGZCD6J5.js} +2 -2
- package/dist/cdn/{EVGKF7IF.js → JLDICFVQ.js} +1 -1
- package/dist/cdn/JPWB6IJ4.js +4 -0
- package/dist/cdn/{OM52KFWH.js → JRUH7VPC.js} +2 -2
- package/dist/cdn/{3JQZLQ6X.js → JSKAVLMU.js} +1 -1
- package/dist/cdn/{MJJ3CH4F.js → JXOLZRAZ.js} +2 -2
- package/dist/cdn/{YZKHM7OO.js → K2PKVAOO.js} +2 -2
- package/dist/cdn/{UGL2IODV.js → K4CTFCER.js} +2 -2
- package/dist/cdn/{FV4FS2SX.js → KBP4NHNZ.js} +2 -2
- package/dist/cdn/{J3PLD35F.js → KD54STS2.js} +2 -2
- package/dist/cdn/{PM63CIAH.js → KHOTLWHU.js} +2 -2
- package/dist/cdn/{237I4VVT.js → KKFLQSUF.js} +2 -2
- package/dist/cdn/{DOWIF5CD.js → KPWEP4ST.js} +2 -2
- package/dist/cdn/{CVOZQ3PW.js → KUOJP7AM.js} +2 -2
- package/dist/cdn/{N5I6JMRP.js → KXVK324S.js} +2 -2
- package/dist/cdn/{BIRHXKHH.js → LDY3IDV5.js} +2 -2
- package/dist/cdn/{T27KLBDF.js → LUHGJSVS.js} +2 -2
- package/dist/cdn/{LUVNGNGU.js → LW6VWGFA.js} +2 -2
- package/dist/cdn/{UC7I26V7.js → LXQ6D2OM.js} +2 -2
- package/dist/cdn/{AZHTW5EH.js → M6G27QGJ.js} +2 -2
- package/dist/cdn/{2Z5TGS77.js → M7HAKBNG.js} +1 -1
- package/dist/cdn/{KKLGZADK.js → MOFOQYI6.js} +2 -2
- package/dist/cdn/{SW4LGHYA.js → MOJQBTXO.js} +2 -2
- package/dist/cdn/{PPJNPATP.js → MX6TFUVB.js} +2 -2
- package/dist/cdn/MYLRNHOI.js +4 -0
- package/dist/cdn/{OBLF3J4J.js → MYZJ4B3X.js} +2 -2
- package/dist/cdn/{5NMWSYVX.js → N4I4AQSF.js} +2 -2
- package/dist/cdn/{QGTF4XV6.js → N5JDA6RO.js} +2 -2
- package/dist/cdn/{57FWRDBV.js → NEWDJW72.js} +2 -2
- package/dist/cdn/{KRTA44OS.js → NJDAVYT5.js} +2 -2
- package/dist/cdn/{3CEVK5CM.js → NLTPCXTJ.js} +2 -2
- package/dist/cdn/{N7OAUW4A.js → O3YLXAV5.js} +2 -2
- package/dist/cdn/{KBIRWZC2.js → OCS7HHXA.js} +2 -2
- package/dist/cdn/{3SBUVODE.js → OD7AY4RV.js} +2 -2
- package/dist/cdn/OGGC4AM4.js +4 -0
- package/dist/cdn/{DU3Y6QB7.js → OTWFGIT7.js} +2 -2
- package/dist/cdn/{ALWJR77R.js → OZLYB4TP.js} +1 -1
- package/dist/cdn/{YTLD2UJA.js → P3D3WNG5.js} +2 -2
- package/dist/cdn/{QJEV4KBS.js → PD55OY6T.js} +2 -2
- package/dist/cdn/{RVFG6KF4.js → PECMEII2.js} +2 -2
- package/dist/cdn/{OKSEOX3H.js → PI7YFJLF.js} +2 -2
- package/dist/cdn/PL7LQXM6.js +4 -0
- package/dist/cdn/{AUWV676U.js → PMPFZQZ4.js} +2 -2
- package/dist/cdn/{YDTFNGRE.js → PNO4V6D2.js} +1 -1
- package/dist/cdn/{MLM6X5VM.js → PSFTPITT.js} +2 -2
- package/dist/cdn/PTSOO3YF.js +4 -0
- package/dist/cdn/{6TM37EO3.js → PXRRELJB.js} +2 -2
- package/dist/cdn/{ZNZ45PNF.js → PXUV5RVY.js} +1 -1
- package/dist/cdn/{6FSVWTO3.js → QGLAPPTH.js} +2 -2
- package/dist/cdn/QTW6TNVM.js +4 -0
- package/dist/cdn/{QWAWHE75.js → QXO6QYMC.js} +2 -2
- package/dist/cdn/{IJLJIWS7.js → RGRJ3PET.js} +2 -2
- package/dist/cdn/{LDMO7OCM.js → RJRY26TE.js} +2 -2
- package/dist/cdn/{VBRDVOBN.js → RL73PTQK.js} +2 -2
- package/dist/cdn/{CT6EEHVH.js → ROPAE45C.js} +2 -2
- package/dist/cdn/{YVHLR55M.js → RTIH46PS.js} +2 -2
- package/dist/cdn/{X67ZJKSH.js → RTZOWR3Q.js} +2 -2
- package/dist/cdn/{WVOHYWB6.js → RZIPPJS7.js} +2 -2
- package/dist/cdn/{NYVNTELZ.js → SBBIV7U2.js} +2 -2
- package/dist/cdn/{QFSGJ27U.js → SHQ3Z7XV.js} +2 -2
- package/dist/cdn/{OL5OY3GC.js → SP5EWH4V.js} +2 -2
- package/dist/cdn/{HU4EQKIS.js → SPI2RLCX.js} +2 -2
- package/dist/cdn/{LWZ3O7NZ.js → SPMVGPBU.js} +2 -2
- package/dist/cdn/{7KQ7X773.js → STLZYEL3.js} +2 -2
- package/dist/cdn/{6FX2UXJP.js → SUYHQ65U.js} +2 -2
- package/dist/cdn/{3UGCKF5W.js → T4MCJSSA.js} +2 -2
- package/dist/cdn/{4OLTSJ2U.js → TBYD4BCE.js} +2 -2
- package/dist/cdn/{YVSXN4TQ.js → TE5VQND7.js} +2 -2
- package/dist/cdn/{5A6TSRLF.js → THI2WKL3.js} +2 -2
- package/dist/cdn/{J56DG7BP.js → TLQ4NIWM.js} +2 -2
- package/dist/cdn/{77VFXOXM.js → TXG6EY3V.js} +2 -2
- package/dist/cdn/{P4MT5DOZ.js → U4FGQJLN.js} +2 -2
- package/dist/cdn/{CSTVY4UG.js → U4PRAPXO.js} +2 -2
- package/dist/cdn/{Z4ZGHBRZ.js → UBZTTBZT.js} +2 -2
- package/dist/cdn/{IPB7SNNY.js → ULHDZMS6.js} +2 -2
- package/dist/cdn/{AXGZ7DH4.js → UM5HLJ6Z.js} +2 -2
- package/dist/cdn/{36C3TF7C.js → US7SMXOG.js} +2 -2
- package/dist/cdn/{DNNBG2OK.js → UT22WDTQ.js} +2 -2
- package/dist/cdn/{YRU5TCEC.js → UY6YZZUT.js} +1 -1
- package/dist/cdn/{WTROOUZI.js → UZHUQ53J.js} +2 -2
- package/dist/cdn/{ESLW5JEJ.js → VALGVGJM.js} +2 -2
- package/dist/cdn/{5CFJJZKB.js → VJFBEQCQ.js} +2 -2
- package/dist/cdn/{R2FXS3DK.js → VK44D2KI.js} +2 -2
- package/dist/cdn/{F5ETO7T4.js → VO2TPKXK.js} +2 -2
- package/dist/cdn/{JFHSFKEE.js → VR4UQHRY.js} +2 -2
- package/dist/cdn/{JQYU47JK.js → VXUXRY6P.js} +2 -2
- package/dist/cdn/{LEXWDBA4.js → W6KFW342.js} +2 -2
- package/dist/cdn/{55KWFQ65.js → WATQZAKL.js} +2 -2
- package/dist/cdn/{LT72RFOK.js → WBRNNYLL.js} +2 -2
- package/dist/cdn/{XIG6KHD5.js → WECQ6NLP.js} +1 -1
- package/dist/cdn/{QU4ZCF2Y.js → WJTSM5ZF.js} +2 -2
- package/dist/cdn/{JBSCZO5G.js → WNJXLGYR.js} +2 -2
- package/dist/cdn/{VRGPQO73.js → WONQREZM.js} +2 -2
- package/dist/cdn/{VJPMKQE6.js → WPZ5IKBV.js} +2 -2
- package/dist/cdn/{2ADDXOIQ.js → WTMURXIQ.js} +2 -2
- package/dist/cdn/{G72UWFGT.js → WVREW6IV.js} +2 -2
- package/dist/cdn/{UT4X7BSP.js → WYR64GFD.js} +2 -2
- package/dist/cdn/{MBYNVQH4.js → X2TJPRBY.js} +2 -2
- package/dist/cdn/{ZK5Z5PBU.js → X3AHIIDO.js} +2 -2
- package/dist/cdn/{L6C2S2NI.js → X7KTRZUU.js} +2 -2
- package/dist/cdn/{2LNKCEJP.js → XA7C3CGS.js} +2 -2
- package/dist/cdn/{WINZJEDB.js → XENVHHOG.js} +2 -2
- package/dist/cdn/{2BHSEHZH.js → XGQJUHFI.js} +2 -2
- package/dist/cdn/{KXB5OPXQ.js → XTRPLABL.js} +2 -2
- package/dist/cdn/{GR6HU2QA.js → Y3IVXZW5.js} +2 -2
- package/dist/cdn/{3HLI77JZ.js → Y5IUDFIK.js} +2 -2
- package/dist/cdn/{2XXHGTOZ.js → YAR5SH5K.js} +2 -2
- package/dist/cdn/{5NYFJA67.js → YDKZLC6D.js} +2 -2
- package/dist/cdn/{XE45V2FT.js → YNAQEYTN.js} +2 -2
- package/dist/cdn/{NJEUJXPG.js → YPQEU3RT.js} +2 -2
- package/dist/cdn/{VDE6MBDU.js → Z34SKHQF.js} +2 -2
- package/dist/cdn/{2INTJVF5.js → Z56MBXMX.js} +2 -2
- package/dist/cdn/{MT3YIG7J.js → ZAIWXLDV.js} +2 -2
- package/dist/cdn/{JUYZO5YG.js → ZLTRCGZO.js} +1 -1
- package/dist/cdn/{XGCOQHZH.js → ZNQPEFHM.js} +2 -2
- package/dist/cdn/{AMKDWXJY.js → ZREKLY6E.js} +2 -2
- package/dist/cdn/ZS2SLQ4Z.js +4 -0
- package/dist/cdn/ZUSTUVOR.js +4 -0
- package/dist/cdn/{UC5W6VQV.js → ZWNCBWN2.js} +2 -2
- package/dist/cdn/{R5Y23ZAL.js → ZZNUHDUX.js} +2 -2
- package/dist/cdn/assets/shadow-cast/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/AnalysisViewModel.js +2 -2
- package/dist/chunks/action-utils.js +1 -1
- package/dist/chunks/async-utils.js +1 -1
- package/dist/chunks/basemap-gallery-resources.js +1 -1
- package/dist/chunks/chart-utils.js +1 -1
- package/dist/chunks/chartCommon.js +1 -1
- package/dist/chunks/component-utils.js +1 -1
- package/dist/chunks/constants.js +1 -1
- package/dist/chunks/createCloseEvent.js +1 -1
- package/dist/chunks/esri-main.js +2 -2
- package/dist/chunks/feature-utils.js +21 -23
- package/dist/chunks/globalCss.js +1 -1
- package/dist/chunks/handle.js +1 -1
- package/dist/chunks/heading.js +1 -1
- package/dist/chunks/layer-list.js +1 -1
- package/dist/chunks/legacyIcon.js +1 -1
- package/dist/chunks/maybe.js +1 -1
- package/dist/chunks/measurementUtils.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/screenLocation.js +1 -1
- package/dist/chunks/slots.js +2 -2
- package/dist/chunks/svgUtils.js +1 -1
- package/dist/chunks/time-utils.js +1 -1
- package/dist/chunks/univariateUtils.js +1 -1
- package/dist/chunks/useArcgisViewReadyError.js +2 -2
- package/dist/chunks/useHandles.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/useView.js +1 -1
- package/dist/chunks/useViewModel.js +1 -1
- package/dist/chunks/useWidget.js +1 -1
- package/dist/chunks/utils.js +1 -1
- package/dist/chunks/utils2.js +1 -1
- package/dist/chunks/visible-element.js +1 -1
- package/dist/components/arcgis-area-measurement-2d/customElement.js +1 -1
- package/dist/components/arcgis-area-measurement-3d/customElement.js +1 -1
- package/dist/components/arcgis-attachments/customElement.js +1 -1
- package/dist/components/arcgis-basemap-gallery/customElement.js +1 -1
- package/dist/components/arcgis-basemap-gallery-item/customElement.js +1 -1
- package/dist/components/arcgis-basemap-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-basemap-toggle/customElement.js +1 -1
- package/dist/components/arcgis-bookmarks/customElement.js +1 -1
- package/dist/components/arcgis-building-explorer/customElement.js +1 -1
- package/dist/components/arcgis-catalog-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-color-select/customElement.js +1 -1
- package/dist/components/arcgis-compass/customElement.js +1 -1
- package/dist/components/arcgis-coordinate-conversion/customElement.js +1 -1
- package/dist/components/arcgis-daylight/customElement.js +1 -1
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +1 -1
- package/dist/components/arcgis-directional-pad/customElement.js +1 -1
- package/dist/components/arcgis-directions/customElement.js +1 -1
- package/dist/components/arcgis-distance-measurement-2d/customElement.js +1 -1
- package/dist/components/arcgis-editor/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-legend/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-legend-item/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-settings/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-statistics/customElement.js +1 -1
- package/dist/components/arcgis-expand/customElement.js +1 -1
- package/dist/components/arcgis-feature/customElement.js +1 -1
- package/dist/components/arcgis-feature-attachments/customElement.js +1 -1
- package/dist/components/arcgis-feature-content/customElement.js +1 -1
- package/dist/components/arcgis-feature-element-info/customElement.js +1 -1
- package/dist/components/arcgis-feature-expression/customElement.js +1 -1
- package/dist/components/arcgis-feature-fields/customElement.js +1 -1
- package/dist/components/arcgis-feature-form/customElement.js +1 -1
- package/dist/components/arcgis-feature-media/customElement.js +1 -1
- package/dist/components/arcgis-feature-relationship/customElement.js +1 -1
- package/dist/components/arcgis-feature-table/customElement.js +1 -1
- package/dist/components/arcgis-feature-templates/customElement.js +1 -1
- package/dist/components/arcgis-feature-utility-network-association-list/customElement.js +1 -1
- package/dist/components/arcgis-feature-utility-network-associations/customElement.js +1 -1
- package/dist/components/arcgis-features/customElement.js +1 -1
- package/dist/components/arcgis-floor-filter/customElement.js +1 -1
- package/dist/components/arcgis-fullscreen/customElement.js +1 -1
- package/dist/components/arcgis-grid-controls/customElement.js +1 -1
- package/dist/components/arcgis-histogram-range-slider/customElement.js +1 -1
- package/dist/components/arcgis-home/customElement.js +1 -1
- package/dist/components/arcgis-labeled-switch/customElement.js +1 -1
- package/dist/components/arcgis-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-layer-list-item/customElement.js +1 -1
- package/dist/components/arcgis-legend/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-color-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-element/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-size-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-univariate-above-and-below-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-univariate-color-size-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-view/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-color-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-element/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-size-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-univariate-above-and-below-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-univariate-color-size-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-view/customElement.js +1 -1
- package/dist/components/arcgis-legend-relationship-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-spike-ramp/customElement.js +1 -1
- package/dist/components/arcgis-line-of-sight/customElement.js +1 -1
- package/dist/components/arcgis-link-chart/customElement.js +1 -1
- package/dist/components/arcgis-link-chart-layout-switcher/customElement.js +1 -1
- package/dist/components/arcgis-locate/customElement.js +1 -1
- package/dist/components/arcgis-map/customElement.js +1 -1
- package/dist/components/arcgis-measurement/customElement.js +1 -1
- package/dist/components/arcgis-measurement-content/customElement.js +1 -1
- package/dist/components/arcgis-navigation-toggle/customElement.js +1 -1
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +1 -1
- package/dist/components/arcgis-placement/customElement.js +1 -1
- package/dist/components/arcgis-popup/customElement.js +1 -1
- package/dist/components/arcgis-presentation/customElement.js +1 -1
- package/dist/components/arcgis-print/customElement.js +1 -1
- package/dist/components/arcgis-print-custom-text-elements/customElement.js +1 -1
- package/dist/components/arcgis-print-dpi-input/customElement.js +1 -1
- package/dist/components/arcgis-print-export-button/customElement.js +1 -1
- package/dist/components/arcgis-print-exports-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-format-select/customElement.js +1 -1
- package/dist/components/arcgis-print-layout-advanced-options/customElement.js +1 -1
- package/dist/components/arcgis-print-layout-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-main-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-map-only-advanced-options/customElement.js +1 -1
- package/dist/components/arcgis-print-map-only-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-out-spatial-reference-input/customElement.js +1 -1
- package/dist/components/arcgis-print-preview-input/customElement.js +1 -1
- package/dist/components/arcgis-print-scale-section/customElement.js +1 -1
- package/dist/components/arcgis-print-template-select/customElement.js +1 -1
- package/dist/components/arcgis-print-template-selector/customElement.js +1 -1
- package/dist/components/arcgis-scale-bar/customElement.js +1 -1
- package/dist/components/arcgis-scale-range-slider/customElement.js +1 -1
- package/dist/components/arcgis-scene/customElement.js +1 -1
- package/dist/components/arcgis-search/customElement.js +12 -6
- package/dist/components/arcgis-search-result-renderer/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast/ShadowCastViewModel.d.ts +21 -16
- package/dist/components/arcgis-shadow-cast/customElement.d.ts +40 -40
- package/dist/components/arcgis-shadow-cast/customElement.js +126 -100
- package/dist/components/arcgis-shadow-cast/index.d.ts +2 -2
- package/dist/components/arcgis-shadow-cast/index.js +2 -2
- package/dist/components/arcgis-shadow-cast/interfaces.d.ts +16 -16
- package/dist/components/arcgis-shadow-cast-discrete-config/customElement.js +1 -1
- package/dist/components/{arcgis-shadow-cast-threshold-config → arcgis-shadow-cast-min-duration-config}/customElement.d.ts +4 -4
- package/dist/components/arcgis-shadow-cast-min-duration-config/customElement.js +44 -0
- package/dist/components/{arcgis-shadow-cast-duration-config → arcgis-shadow-cast-total-duration-config}/customElement.d.ts +1 -1
- package/dist/components/{arcgis-shadow-cast-duration-config → arcgis-shadow-cast-total-duration-config}/customElement.js +11 -11
- package/dist/components/arcgis-sketch/customElement.js +1 -1
- package/dist/components/arcgis-slice/customElement.js +1 -1
- package/dist/components/arcgis-spinner/customElement.js +1 -1
- package/dist/components/arcgis-swipe/customElement.js +1 -1
- package/dist/components/arcgis-table-list/customElement.js +1 -1
- package/dist/components/arcgis-time-slider/customElement.js +1 -1
- package/dist/components/arcgis-time-zone-label/customElement.js +1 -1
- package/dist/components/arcgis-track/customElement.js +1 -1
- package/dist/components/arcgis-unit-select/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-association-list/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-associations/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-subnetwork-info/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-location/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-location-list/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-validate-topology/customElement.js +1 -1
- package/dist/components/arcgis-value-picker/customElement.js +1 -1
- package/dist/components/arcgis-version-management/customElement.js +1 -1
- package/dist/components/arcgis-version-management-service-item/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-list/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-properties/customElement.js +1 -1
- package/dist/components/arcgis-video/customElement.js +1 -1
- package/dist/components/arcgis-video-player/customElement.js +1 -1
- package/dist/components/arcgis-video-player-action-bar/customElement.js +1 -1
- package/dist/components/arcgis-video-player-actions-group/customElement.js +1 -1
- package/dist/components/arcgis-video-player-controls-group/customElement.js +1 -1
- package/dist/components/arcgis-video-player-metadata/customElement.js +1 -1
- package/dist/components/arcgis-video-player-settings/customElement.js +2 -2
- package/dist/components/arcgis-video-player-slider/customElement.js +1 -1
- package/dist/components/arcgis-volume-measurement/customElement.js +1 -1
- package/dist/components/arcgis-weather/customElement.js +1 -1
- package/dist/components/arcgis-zoom/customElement.js +1 -1
- package/dist/docs/api.json +234 -234
- package/dist/docs/docs.json +170 -170
- package/dist/docs/vscode.html-custom-data.json +57 -57
- package/dist/docs/web-types.json +122 -122
- package/dist/index.js +1 -1
- package/dist/loader.js +4 -4
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/preact10.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/package.json +3 -3
- package/dist/cdn/3333GIQ6.js +0 -4
- package/dist/cdn/3P3OAOZW.js +0 -4
- package/dist/cdn/6J7MMHT5.js +0 -4
- package/dist/cdn/7D3SVMTB.js +0 -4
- package/dist/cdn/CG3BH5N3.js +0 -4
- package/dist/cdn/FYFACDTI.js +0 -4
- package/dist/cdn/GFHRQRG5.js +0 -4
- package/dist/cdn/MFWISWU6.js +0 -4
- package/dist/cdn/TYC4IZBB.js +0 -4
- package/dist/cdn/XGXC4EHB.js +0 -4
- package/dist/components/arcgis-shadow-cast-threshold-config/customElement.js +0 -44
- /package/dist/components/{arcgis-shadow-cast-threshold-config → arcgis-shadow-cast-min-duration-config}/index.d.ts +0 -0
- /package/dist/components/{arcgis-shadow-cast-threshold-config → arcgis-shadow-cast-min-duration-config}/index.js +0 -0
- /package/dist/components/{arcgis-shadow-cast-duration-config → arcgis-shadow-cast-total-duration-config}/index.d.ts +0 -0
- /package/dist/components/{arcgis-shadow-cast-duration-config → arcgis-shadow-cast-total-duration-config}/index.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import{a as f}from"./3JQZLQ6X.js";import a from"./XE45V2FT.js";import{a as M}from"./L6C2S2NI.js";import{b as E}from"./XVN3ROOD.js";import"./FYFACDTI.js";import{G as Q,H as j,I as k,J as h,M as R,O as B,a as D,b as o}from"./2Z5TGS77.js";import"./ZBOH5EEO.js";export default $arcgis.t(([{templateHasKey:H,stripHTML:K},{isRelatableFeatureSupportedLayer:U,findRelatedLayer:X},{substitute:Y,formatNumber:T},{watch:F,on:ee},Z,W,{ignoreAbortErrors:N},te,{h:V}])=>{var re=D`:host{position:relative;flex:1 1 auto}.arcgis-feature-relationship__list{min-height:var(--calcite-spacing-xxxl)}.arcgis-feature-relationship__list-item--hidden{display:none}.arcgis-feature-relationship__feature-observer{position:relative;bottom:var(--calcite-spacing-xxl);z-index:2;text-align:center}.arcgis-feature-relationship__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}`,ie=_=>{let e=[];if(_.formTemplate){let{description:t,title:r}=_.formTemplate;_.fields?.forEach(i=>{let s=r&&H(r,i.name),a=t&&H(t,i.name);(s||a)&&e.push(i.name)})}return e},O=100,se="arcgis-feature",c=`${se}-relationship`,u={base:c,listContainer:`${c}__list`,listItem:`${c}__list-item`,listItemHidden:`${c}__list-item--hidden`,listContainerQuerying:`${c}__list--querying`,featureObserver:`${c}__feature-observer`,stickySpinnerContainer:`${c}__sticky-loading-container`,loadingSpinnerContainer:`${c}__loading-container`},x=class extends k{constructor(){super(...arguments),this._increaseFeaturePage=()=>{let{state:e,showAllEnabled:t,relatedFeatures:r,featuresPerPage:i,featurePage:s}=this;e==="ready"&&t&&r.length>=i*s&&this.featurePage++},this._relatedFeatureIntersectionObserver=new IntersectionObserver(([e])=>{e?.isIntersecting&&this._increaseFeaturePage()},{root:window.document}),this._featurePage=1,this._cancelQuery=()=>{let{_queryAbortController:e}=this;e&&e.abort(),this._queryAbortController=null},this._cancelQueryFeatureCount=()=>{let{_queryFeatureCountAbortController:e}=this;e&&e.abort(),this._queryFeatureCountAbortController=null},this._cancelQueryPage=()=>{let{_queryPageAbortController:e}=this;e&&e.abort(),this._queryPageAbortController=null},this._queryController=async()=>{this._cancelQuery();let e=new AbortController;this._queryAbortController=e,await N(this._query()),this._queryAbortController===e&&(this._queryAbortController=null)},this._queryFeatureCountController=async()=>{this._loaded=!1,this._cancelQueryFeatureCount();let e=new AbortController;this._queryFeatureCountAbortController=e,await N(this._queryFeatureCount()),this._queryFeatureCountAbortController===e&&(this._queryFeatureCountAbortController=null),this._loaded=!0},this._queryPageController=async()=>{let e=new AbortController;this._queryPageAbortController=e,await N(this._queryPage()),this._queryPageAbortController===e&&(this._queryPageAbortController=null)},this._queryDebounced=f(this._queryController,O),this._queryFeatureCountDebounced=f(this._queryFeatureCountController,O),this._queryPageDebounced=f(this._queryPageController,O),this._query=async()=>{let{_queryAbortController:e,relatedFeatures:t}=this;!this.featureCount||this.relatedLayer?.type==="subtype-group"&&!this.activeCategory||(this.relatedFeatureViewModels.destroyAll(),this.featurePage=1,t.destroyAll(),t.addMany(this._sliceFeatures(await this._queryRelatedFeatures({signal:e?.signal}))))},this._addFlowItem=e=>{e&&this.flowItems?.push(e)},this._relatedFeatureIntersectionObserverNode=Q(),this.relatedFeatures=new Z,this._queryAbortController=null,this._queryPageAbortController=null,this._queryFeatureCountAbortController=null,this.featureCount=0,this._loaded=!1,this.relatedFeatureViewModels=new Z,this.autoDestroyDisabled=!1,this.featuresPerPage=10,this.flowType="feature-relationship",this.headingLevel=2,this.hideHeading=!1,this.hideDescription=!1,this.showAllEnabled=!1}static{this.properties={allCategories:16,_queryAbortController:16,_queryPageAbortController:16,_queryFeatureCountAbortController:16,featureCount:16,_loaded:16,canLoad:16,canQuery:16,displayShowAllButton:16,displayListItems:16,categories:16,itemDescriptionFieldName:16,relatedFeatureViewModels:16,state:16,autoDestroyDisabled:5,allItemsDescription:32,featurePage:9,featuresPerPage:9,flowItems:0,flowType:1,headingLevel:9,messages:0,heading:1,description:1,values:0,activeCategory:0,hideHeading:5,hideDescription:5,displayCount:9,graphic:0,layer:0,map:0,view:0,spatialReference:0,timeZone:1,orderByFields:0,relationshipId:9,showAllEnabled:5,label:3}}static{this.styles=re}get orderByFieldsFixedCasing(){let{orderByFields:e,relatedLayer:t}=this;return e&&t?.loaded?e.map(r=>{let i=r.clone();return i.field=V(r.field,t),i}):e??[]}get supportsCacheHint(){return!!this.layer?.capabilities?.queryRelated?.supportsCacheHint}get allCategoriesCount(){return this.allCategories?.length??0}get objectId(){return(this.objectIdField&&this.graphic?.attributes?.[this.objectIdField])??null}get objectIdField(){return this.layer?.objectIdField||null}get relatedLayer(){let{layer:e,map:t,relationship:r}=this;if(!e?.loaded||!t||!r)return null;let i=e.type==="subtype-sublayer"&&e.parent&&U(e.parent)?e.parent:e;return X(t,i,r)??null}get relatedLayerKeyField(){let{relatedLayer:e,relationshipId:t}=this;return e?.loaded&&t!=null?e.relationships?.find(r=>r.id===t)?.keyField:null}get relatedLayerKeyFields(){let{relatedLayer:e}=this;return e?.loaded?e.relationships?.map(t=>t.keyField).filter(t=>t!=null)??[]:[]}get relationship(){let{relationshipId:e,layer:t}=this;return e!=null&&t?.loaded?t.relationships?.find(({id:r})=>r===e)??null:null}get relationshipKey(){let{relationshipKeyField:e}=this;return(e&&this.graphic?.attributes?.[e])??null}get relationshipKeyField(){return this.relationship?.keyField||null}get canLoad(){return!!this.map&&this.relationshipId!=null&&typeof this.objectId=="number"}get canQuery(){let e=this.layer?.capabilities?.queryRelated;return!!this.relatedLayer&&!!this.relationship&&this.relationshipId!=null&&this.objectId!=null&&!!e?.supportsCount&&e?.supportsPagination}get displayShowAllButton(){let{showAllEnabled:e,featureCount:t,displayCount:r,state:i,allCategoriesCount:s}=this,a=!!s&&(s>r||r===0),n=!!t&&(t>r||r===0);return!e&&i==="ready"&&(a||n)}get displayListItems(){let{relatedFeatures:e,allCategoriesCount:t}=this;return this.displayShowAllButton||!!e.length||!!t}get categories(){let{allCategories:e}=this;return this.showAllEnabled?e:e?.slice(0,this.displayCount)??null}get itemDescriptionFieldName(){return this.orderByFieldsFixedCasing[0]?.field||null}get state(){let{_queryAbortController:e,_queryFeatureCountAbortController:t,_queryPageAbortController:r,canQuery:i,_loaded:s,canLoad:a}=this;return t||a&&!s?"loading":e||r?"querying":i?"ready":"disabled"}get allItemsDescription(){let{messages:e,featureCount:t,allCategories:r,allCategoriesCount:i}=this;return Y(e?.numberRecords??"",{number:T(r?i:t)})}get featurePage(){return this._featurePage}set featurePage(e){let{featuresPerPage:t,featureCount:r}=this,i=1,s=Math.ceil(r/t)||1;this._featurePage=Math.min(Math.max(e,i),s)}get heading(){let{activeCategory:e}=this;return this._heading??e?.name}set heading(e){this._heading=e}get displayCount(){return this._displayCount??3}set displayCount(e){this._displayCount=Math.min(Math.max(e??3,0),10)}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[F(()=>[this.displayCount,this.graphic,this.layer,this.layer?.loaded,this.map,this.orderByFields,this.relationshipId,this.featuresPerPage,this.showAllEnabled,this.canQuery,this.featureCount,this.activeCategory],()=>this._queryDebounced(),{initial:!0}),F(()=>[this.featurePage,this.showAllEnabled],()=>this._queryPageDebounced()),F(()=>[this.layer,this.relationshipId,this.objectId,this.canQuery,this.activeCategory],()=>this._queryFeatureCountDebounced(),{initial:!0}),F(()=>[this.state,this.showAllEnabled,this._relatedFeatureIntersectionObserverNode],()=>this._handleRelatedFeatureObserverChange()),ee(()=>this.relatedFeatures,"change",()=>this._setRelatedFeaturesViewModels())]),this.manager.onDestroy(()=>{this.relatedFeatureViewModels.destroyAll(),this.relatedFeatures.destroyAll(),this._cancelQuery(),this._cancelQueryFeatureCount(),this._cancelQueryPage(),this._unobserveRelatedFeatureObserver()})}async _queryFeatureCount(){let{layer:e,relatedLayer:t}=this;await e?.load(),await t?.load();let{_queryFeatureCountAbortController:r,activeCategory:i,canQuery:s,objectId:a,relatedLayerKeyField:n,relationshipId:l,relationshipKey:g,supportsCacheHint:v}=this;if(!s||!e||!t||a==null){this.featureCount=0,this.allCategories=void 0;return}if(t?.type==="subtype-group"&&!i){if(this.featureCount=0,this.relatedFeatureViewModels.destroyAll(),this.featurePage=1,this.relatedFeatures.destroyAll(),n&&g!=null){let{default:$}=await $arcgis.t(m=>m[0],"smartMapping/statistics/uniqueValues"),{uniqueValueInfos:A}=await $({layer:t,sqlWhere:`${n} = '${g}'`,field:t.subtypeField??void 0,signal:r?.signal}),q=A.map(({count:y,value:m})=>{let C=t.subtypes?.find(L=>L.code===m)?.name;return m!=null&&C?{count:y,value:m,name:C}:void 0}).filter(y=>y!=null);this.allCategories=q}return}let{historicMoment:b,gdbVersion:w}=e,I=new W({cacheHint:v,gdbVersion:w,historicMoment:b,relationshipId:l,returnGeometry:!1,objectIds:[a],where:this._getRelationshipWhereClause(t)}),p=await e.queryRelatedFeaturesCount(I,{signal:r?.signal});this.allCategories=void 0,this.featureCount=p[a]||0}_getRelationshipWhereClause(e){let{activeCategory:t}=this,r=e.createQuery(),i="subtypeField"in e?e.subtypeField:void 0,s=t&&i?`${i} = ${t.value}`:void 0,a=r.where;return a&&s?`(${a}) AND (${s})`:a??s}_sliceFeatures(e){let{showAllEnabled:t,displayCount:r}=this;return t?e:r?e.slice(0,r):[]}async _queryPage(){let{relatedFeatures:e,featurePage:t,showAllEnabled:r,_queryPageAbortController:i,featureCount:s}=this;!r||t<2||!s||this.relatedLayer?.type==="subtype-group"&&!this.activeCategory||e.addMany(await this._queryRelatedFeatures({signal:i?.signal}))}async _queryRelatedFeatures(e){let{displayCount:t,featureCount:r,featurePage:i,featuresPerPage:s,layer:a,orderByFieldsFixedCasing:n,relatedLayer:l,relatedLayerKeyFields:g,relationshipId:v,showAllEnabled:b,supportsCacheHint:w}=this,{canQuery:I,objectId:p}=this;if(!I||!a||!l||p==null)return[];let $=b?((i-1)*s+r)%r:0,A=b?s:t,q=l.objectIdField,y="subtypeField"in l?l.subtypeField:void 0,m=[...n.map(d=>d.field),...ie(l),...g,q,y].filter(d=>d!=null),C=n.map(d=>`${d.field} ${d.order}`),{historicMoment:L,gdbVersion:z}=a,G=new W({orderByFields:C,start:$,num:A,outFields:m,cacheHint:w,historicMoment:L,gdbVersion:z,relationshipId:v,returnGeometry:!1,objectIds:[p],where:this._getRelationshipWhereClause(l)}),P=(await a.queryRelatedFeatures(G,{signal:e?.signal}))[p]?.features||[];return l.type==="subtype-group"&&y?P.forEach(d=>{let J=d.attributes[y],S=l.findSublayerForSubtypeCode?.(J);d.sourceLayer=S,d.layer=S}):P.forEach(d=>{d.sourceLayer=l,d.layer=l}),P}_selectCategory(e){let{flowItems:t}=this;t&&this._addRelationshipFlowItem({showAllEnabled:!0,activeCategory:e})}_selectRecord(e){let{flowItems:t}=this;t&&this._addFlowItem(R(M(e,o`<arcgis-feature .flowItems=${t} .flowType=${this.flowType} .graphic=${e.graphic} .map=${this.map} show-relationship-content .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature>`)))}_addRelationshipFlowItem({showAllEnabled:e=!1,activeCategory:t}){this._addFlowItem(R(M(t,o`<arcgis-feature-relationship .messages=${this.messages} .activeCategory=${t} .displayCount=${this.displayCount} .flowItems=${this.flowItems} .flowType=${this.flowType} .graphic=${this.graphic} .heading=${this.heading} hide-description .showAllEnabled=${e} hide-heading .layer=${this.layer} .map=${this.map} .orderByFields=${this.orderByFields} .relationshipId=${this.relationshipId} .spatialReference=${this.spatialReference} .values=${this.values} .view=${this.view}></arcgis-feature-relationship>`)))}_showAllRecords(){let{flowItems:e}=this;e&&this._addRelationshipFlowItem({showAllEnabled:!0})}_handleRelatedFeatureObserverChange(){this._unobserveRelatedFeatureObserver();let{state:e,showAllEnabled:t}=this;this._relatedFeatureIntersectionObserverNode.value&&e==="ready"&&t&&this._relatedFeatureIntersectionObserver.observe(this._relatedFeatureIntersectionObserverNode.value)}_unobserveRelatedFeatureObserver(){this._relatedFeatureIntersectionObserverNode.value&&this._relatedFeatureIntersectionObserver.unobserve(this._relatedFeatureIntersectionObserverNode.value)}_matchesFeature(e,t){let r=e?.graphic?.getObjectId(),i=t?.getObjectId();return r!=null&&i!=null&&r===i}_setRelatedFeaturesViewModels(){let{relatedFeatures:e,relatedFeatureViewModels:t,map:r,view:i,spatialReference:s,timeZone:a}=this;e?.filter(Boolean).forEach(n=>{t.some(l=>this._matchesFeature(l,n))||t.add(new te({abilities:{relationshipContent:!1},map:r,view:i,spatialReference:s,timeZone:a,graphic:n}))}),t.forEach(n=>{e?.find(l=>this._matchesFeature(n,l))||t.remove(n)})}render(){let{state:e}=this;return o`<div class=${h(u.base)}><arcgis-feature-element-info .heading=${this.heading} .headingLevel=${this.headingLevel} .description=${this.description}></arcgis-feature-element-info>${e==="loading"?this._renderLoading():e==="disabled"?this._renderRelationshipNotFound():this._renderRelatedFeatures()}</div>`}_renderStickyLoading(){return this.state==="querying"?o`<div class=${h(u.stickySpinnerContainer)}>${this._renderLoadingIcon()}</div>`:null}_renderLoadingIcon(){return o`<calcite-loader inline label></calcite-loader>`}_renderLoading(){return o`<div class=${h(u.loadingSpinnerContainer)}>${this._renderLoadingIcon()}</div>`}_renderShowAllIconNode(){return o`<calcite-icon icon=list scale=s slot=content-end></calcite-icon>`}_renderChevronIconNode(){return o`<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon>`}_renderCategory(e){let{count:t,name:r}=e,i=T(t);return o`<calcite-list-item class=${h(u.listItem)} .disabled=${!t} .label=${r} @calciteListItemSelect=${()=>this._selectCategory(e)}><calcite-chip .label=${i} scale=s slot=content-end>${i}</calcite-chip>${this._renderChevronIconNode()}</calcite-list-item>`}_renderRelatedFeature(e){let{itemDescriptionFieldName:t,values:r}=this,{formattedAttributes:i,state:s,title:a}=e,n={...i?.global,...r},l=(t&&n?.[t])??"",g=s==="loading";return o`<calcite-list-item class=${h(E(u.listItem,{[u.listItemHidden]:g}))} .description=${K(l.toString())} .label=${K(a)} @calciteListItemSelect=${()=>this._selectRecord(e)}>${this._renderChevronIconNode()}</calcite-list-item>`}_renderShowAllListItem(){return this.displayShowAllButton?o`<calcite-list-item .description=${this.allItemsDescription} .label=${this.messages?.showAll} @calciteListItemSelect=${()=>this._showAllRecords()}>${this._renderShowAllIconNode()}</calcite-list-item>`:null}_renderNoRelatedFeaturesMessage(){return o`<calcite-notice icon=information kind=brand open scale=s width=full><div slot=message>${this.messages?.noRelatedFeatures}</div></calcite-notice>`}_renderFeatureObserver(){return o`<div class=${h(u.featureObserver)} ${j(this._relatedFeatureIntersectionObserverNode)}></div>`}_renderList(){let{relatedFeatureViewModels:e,categories:t}=this;return o`<calcite-list display-mode=flat .label=${this.messages?.relatedFeaturesList??""}>${t?.map(r=>this._renderCategory(r))??e.toArray().map(r=>this._renderRelatedFeature(r))}${this._renderShowAllListItem()}</calcite-list>`}_renderRelatedFeatures(){let{displayListItems:e}=this,{state:t}=this;return o`<div class=${h(E(u.listContainer,{[u.listContainerQuerying]:t==="querying"}))}>${e?this._renderList():t==="ready"?this._renderNoRelatedFeaturesMessage():null}${this._renderStickyLoading()}${this._renderFeatureObserver()}</div>`}_renderRelationshipNotFound(){return o`<calcite-notice icon=exclamation-mark-triangle kind=danger open scale=s width=full><div slot=message>${this.messages?.relationshipNotFound}</div></calcite-notice>`}};B("arcgis-feature-relationship",x);return x},"applications/Components/stringUtils","applications/Components/featureUtils","intl","core/reactiveUtils","core/Collection","rest/support/RelationshipQuery","core/promiseUtils","widgets/Feature/FeatureViewModel",a)
|
|
3
|
+
v5.0.0-next.88 */
|
|
4
|
+
import{a as f}from"./JSKAVLMU.js";import a from"./YNAQEYTN.js";import{a as M}from"./X7KTRZUU.js";import{b as E}from"./GITNRBUR.js";import"./MYLRNHOI.js";import{G as Q,H as j,I as k,J as h,M as R,O as B,a as D,b as o}from"./M7HAKBNG.js";import"./FHMZ7YBE.js";export default $arcgis.t(([{templateHasKey:H,stripHTML:K},{isRelatableFeatureSupportedLayer:U,findRelatedLayer:X},{substitute:Y,formatNumber:T},{watch:F,on:ee},Z,W,{ignoreAbortErrors:N},te,{h:V}])=>{var re=D`:host{position:relative;flex:1 1 auto}.arcgis-feature-relationship__list{min-height:var(--calcite-spacing-xxxl)}.arcgis-feature-relationship__list-item--hidden{display:none}.arcgis-feature-relationship__feature-observer{position:relative;bottom:var(--calcite-spacing-xxl);z-index:2;text-align:center}.arcgis-feature-relationship__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}`,ie=_=>{let e=[];if(_.formTemplate){let{description:t,title:r}=_.formTemplate;_.fields?.forEach(i=>{let s=r&&H(r,i.name),a=t&&H(t,i.name);(s||a)&&e.push(i.name)})}return e},O=100,se="arcgis-feature",c=`${se}-relationship`,u={base:c,listContainer:`${c}__list`,listItem:`${c}__list-item`,listItemHidden:`${c}__list-item--hidden`,listContainerQuerying:`${c}__list--querying`,featureObserver:`${c}__feature-observer`,stickySpinnerContainer:`${c}__sticky-loading-container`,loadingSpinnerContainer:`${c}__loading-container`},x=class extends k{constructor(){super(...arguments),this._increaseFeaturePage=()=>{let{state:e,showAllEnabled:t,relatedFeatures:r,featuresPerPage:i,featurePage:s}=this;e==="ready"&&t&&r.length>=i*s&&this.featurePage++},this._relatedFeatureIntersectionObserver=new IntersectionObserver(([e])=>{e?.isIntersecting&&this._increaseFeaturePage()},{root:window.document}),this._featurePage=1,this._cancelQuery=()=>{let{_queryAbortController:e}=this;e&&e.abort(),this._queryAbortController=null},this._cancelQueryFeatureCount=()=>{let{_queryFeatureCountAbortController:e}=this;e&&e.abort(),this._queryFeatureCountAbortController=null},this._cancelQueryPage=()=>{let{_queryPageAbortController:e}=this;e&&e.abort(),this._queryPageAbortController=null},this._queryController=async()=>{this._cancelQuery();let e=new AbortController;this._queryAbortController=e,await N(this._query()),this._queryAbortController===e&&(this._queryAbortController=null)},this._queryFeatureCountController=async()=>{this._loaded=!1,this._cancelQueryFeatureCount();let e=new AbortController;this._queryFeatureCountAbortController=e,await N(this._queryFeatureCount()),this._queryFeatureCountAbortController===e&&(this._queryFeatureCountAbortController=null),this._loaded=!0},this._queryPageController=async()=>{let e=new AbortController;this._queryPageAbortController=e,await N(this._queryPage()),this._queryPageAbortController===e&&(this._queryPageAbortController=null)},this._queryDebounced=f(this._queryController,O),this._queryFeatureCountDebounced=f(this._queryFeatureCountController,O),this._queryPageDebounced=f(this._queryPageController,O),this._query=async()=>{let{_queryAbortController:e,relatedFeatures:t}=this;!this.featureCount||this.relatedLayer?.type==="subtype-group"&&!this.activeCategory||(this.relatedFeatureViewModels.destroyAll(),this.featurePage=1,t.destroyAll(),t.addMany(this._sliceFeatures(await this._queryRelatedFeatures({signal:e?.signal}))))},this._addFlowItem=e=>{e&&this.flowItems?.push(e)},this._relatedFeatureIntersectionObserverNode=Q(),this.relatedFeatures=new Z,this._queryAbortController=null,this._queryPageAbortController=null,this._queryFeatureCountAbortController=null,this.featureCount=0,this._loaded=!1,this.relatedFeatureViewModels=new Z,this.autoDestroyDisabled=!1,this.featuresPerPage=10,this.flowType="feature-relationship",this.headingLevel=2,this.hideHeading=!1,this.hideDescription=!1,this.showAllEnabled=!1}static{this.properties={allCategories:16,_queryAbortController:16,_queryPageAbortController:16,_queryFeatureCountAbortController:16,featureCount:16,_loaded:16,canLoad:16,canQuery:16,displayShowAllButton:16,displayListItems:16,categories:16,itemDescriptionFieldName:16,relatedFeatureViewModels:16,state:16,autoDestroyDisabled:5,allItemsDescription:32,featurePage:9,featuresPerPage:9,flowItems:0,flowType:1,headingLevel:9,messages:0,heading:1,description:1,values:0,activeCategory:0,hideHeading:5,hideDescription:5,displayCount:9,graphic:0,layer:0,map:0,view:0,spatialReference:0,timeZone:1,orderByFields:0,relationshipId:9,showAllEnabled:5,label:3}}static{this.styles=re}get orderByFieldsFixedCasing(){let{orderByFields:e,relatedLayer:t}=this;return e&&t?.loaded?e.map(r=>{let i=r.clone();return i.field=V(r.field,t),i}):e??[]}get supportsCacheHint(){return!!this.layer?.capabilities?.queryRelated?.supportsCacheHint}get allCategoriesCount(){return this.allCategories?.length??0}get objectId(){return(this.objectIdField&&this.graphic?.attributes?.[this.objectIdField])??null}get objectIdField(){return this.layer?.objectIdField||null}get relatedLayer(){let{layer:e,map:t,relationship:r}=this;if(!e?.loaded||!t||!r)return null;let i=e.type==="subtype-sublayer"&&e.parent&&U(e.parent)?e.parent:e;return X(t,i,r)??null}get relatedLayerKeyField(){let{relatedLayer:e,relationshipId:t}=this;return e?.loaded&&t!=null?e.relationships?.find(r=>r.id===t)?.keyField:null}get relatedLayerKeyFields(){let{relatedLayer:e}=this;return e?.loaded?e.relationships?.map(t=>t.keyField).filter(t=>t!=null)??[]:[]}get relationship(){let{relationshipId:e,layer:t}=this;return e!=null&&t?.loaded?t.relationships?.find(({id:r})=>r===e)??null:null}get relationshipKey(){let{relationshipKeyField:e}=this;return(e&&this.graphic?.attributes?.[e])??null}get relationshipKeyField(){return this.relationship?.keyField||null}get canLoad(){return!!this.map&&this.relationshipId!=null&&typeof this.objectId=="number"}get canQuery(){let e=this.layer?.capabilities?.queryRelated;return!!this.relatedLayer&&!!this.relationship&&this.relationshipId!=null&&this.objectId!=null&&!!e?.supportsCount&&e?.supportsPagination}get displayShowAllButton(){let{showAllEnabled:e,featureCount:t,displayCount:r,state:i,allCategoriesCount:s}=this,a=!!s&&(s>r||r===0),n=!!t&&(t>r||r===0);return!e&&i==="ready"&&(a||n)}get displayListItems(){let{relatedFeatures:e,allCategoriesCount:t}=this;return this.displayShowAllButton||!!e.length||!!t}get categories(){let{allCategories:e}=this;return this.showAllEnabled?e:e?.slice(0,this.displayCount)??null}get itemDescriptionFieldName(){return this.orderByFieldsFixedCasing[0]?.field||null}get state(){let{_queryAbortController:e,_queryFeatureCountAbortController:t,_queryPageAbortController:r,canQuery:i,_loaded:s,canLoad:a}=this;return t||a&&!s?"loading":e||r?"querying":i?"ready":"disabled"}get allItemsDescription(){let{messages:e,featureCount:t,allCategories:r,allCategoriesCount:i}=this;return Y(e?.numberRecords??"",{number:T(r?i:t)})}get featurePage(){return this._featurePage}set featurePage(e){let{featuresPerPage:t,featureCount:r}=this,i=1,s=Math.ceil(r/t)||1;this._featurePage=Math.min(Math.max(e,i),s)}get heading(){let{activeCategory:e}=this;return this._heading??e?.name}set heading(e){this._heading=e}get displayCount(){return this._displayCount??3}set displayCount(e){this._displayCount=Math.min(Math.max(e??3,0),10)}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[F(()=>[this.displayCount,this.graphic,this.layer,this.layer?.loaded,this.map,this.orderByFields,this.relationshipId,this.featuresPerPage,this.showAllEnabled,this.canQuery,this.featureCount,this.activeCategory],()=>this._queryDebounced(),{initial:!0}),F(()=>[this.featurePage,this.showAllEnabled],()=>this._queryPageDebounced()),F(()=>[this.layer,this.relationshipId,this.objectId,this.canQuery,this.activeCategory],()=>this._queryFeatureCountDebounced(),{initial:!0}),F(()=>[this.state,this.showAllEnabled,this._relatedFeatureIntersectionObserverNode],()=>this._handleRelatedFeatureObserverChange()),ee(()=>this.relatedFeatures,"change",()=>this._setRelatedFeaturesViewModels())]),this.manager.onDestroy(()=>{this.relatedFeatureViewModels.destroyAll(),this.relatedFeatures.destroyAll(),this._cancelQuery(),this._cancelQueryFeatureCount(),this._cancelQueryPage(),this._unobserveRelatedFeatureObserver()})}async _queryFeatureCount(){let{layer:e,relatedLayer:t}=this;await e?.load(),await t?.load();let{_queryFeatureCountAbortController:r,activeCategory:i,canQuery:s,objectId:a,relatedLayerKeyField:n,relationshipId:l,relationshipKey:g,supportsCacheHint:v}=this;if(!s||!e||!t||a==null){this.featureCount=0,this.allCategories=void 0;return}if(t?.type==="subtype-group"&&!i){if(this.featureCount=0,this.relatedFeatureViewModels.destroyAll(),this.featurePage=1,this.relatedFeatures.destroyAll(),n&&g!=null){let{default:$}=await $arcgis.t(m=>m[0],"smartMapping/statistics/uniqueValues"),{uniqueValueInfos:A}=await $({layer:t,sqlWhere:`${n} = '${g}'`,field:t.subtypeField??void 0,signal:r?.signal}),q=A.map(({count:y,value:m})=>{let C=t.subtypes?.find(L=>L.code===m)?.name;return m!=null&&C?{count:y,value:m,name:C}:void 0}).filter(y=>y!=null);this.allCategories=q}return}let{historicMoment:b,gdbVersion:w}=e,I=new W({cacheHint:v,gdbVersion:w,historicMoment:b,relationshipId:l,returnGeometry:!1,objectIds:[a],where:this._getRelationshipWhereClause(t)}),p=await e.queryRelatedFeaturesCount(I,{signal:r?.signal});this.allCategories=void 0,this.featureCount=p[a]||0}_getRelationshipWhereClause(e){let{activeCategory:t}=this,r=e.createQuery(),i="subtypeField"in e?e.subtypeField:void 0,s=t&&i?`${i} = ${t.value}`:void 0,a=r.where;return a&&s?`(${a}) AND (${s})`:a??s}_sliceFeatures(e){let{showAllEnabled:t,displayCount:r}=this;return t?e:r?e.slice(0,r):[]}async _queryPage(){let{relatedFeatures:e,featurePage:t,showAllEnabled:r,_queryPageAbortController:i,featureCount:s}=this;!r||t<2||!s||this.relatedLayer?.type==="subtype-group"&&!this.activeCategory||e.addMany(await this._queryRelatedFeatures({signal:i?.signal}))}async _queryRelatedFeatures(e){let{displayCount:t,featureCount:r,featurePage:i,featuresPerPage:s,layer:a,orderByFieldsFixedCasing:n,relatedLayer:l,relatedLayerKeyFields:g,relationshipId:v,showAllEnabled:b,supportsCacheHint:w}=this,{canQuery:I,objectId:p}=this;if(!I||!a||!l||p==null)return[];let $=b?((i-1)*s+r)%r:0,A=b?s:t,q=l.objectIdField,y="subtypeField"in l?l.subtypeField:void 0,m=[...n.map(d=>d.field),...ie(l),...g,q,y].filter(d=>d!=null),C=n.map(d=>`${d.field} ${d.order}`),{historicMoment:L,gdbVersion:z}=a,G=new W({orderByFields:C,start:$,num:A,outFields:m,cacheHint:w,historicMoment:L,gdbVersion:z,relationshipId:v,returnGeometry:!1,objectIds:[p],where:this._getRelationshipWhereClause(l)}),P=(await a.queryRelatedFeatures(G,{signal:e?.signal}))[p]?.features||[];return l.type==="subtype-group"&&y?P.forEach(d=>{let J=d.attributes[y],S=l.findSublayerForSubtypeCode?.(J);d.sourceLayer=S,d.layer=S}):P.forEach(d=>{d.sourceLayer=l,d.layer=l}),P}_selectCategory(e){let{flowItems:t}=this;t&&this._addRelationshipFlowItem({showAllEnabled:!0,activeCategory:e})}_selectRecord(e){let{flowItems:t}=this;t&&this._addFlowItem(R(M(e,o`<arcgis-feature .flowItems=${t} .flowType=${this.flowType} .graphic=${e.graphic} .map=${this.map} show-relationship-content .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature>`)))}_addRelationshipFlowItem({showAllEnabled:e=!1,activeCategory:t}){this._addFlowItem(R(M(t,o`<arcgis-feature-relationship .messages=${this.messages} .activeCategory=${t} .displayCount=${this.displayCount} .flowItems=${this.flowItems} .flowType=${this.flowType} .graphic=${this.graphic} .heading=${this.heading} hide-description .showAllEnabled=${e} hide-heading .layer=${this.layer} .map=${this.map} .orderByFields=${this.orderByFields} .relationshipId=${this.relationshipId} .spatialReference=${this.spatialReference} .values=${this.values} .view=${this.view}></arcgis-feature-relationship>`)))}_showAllRecords(){let{flowItems:e}=this;e&&this._addRelationshipFlowItem({showAllEnabled:!0})}_handleRelatedFeatureObserverChange(){this._unobserveRelatedFeatureObserver();let{state:e,showAllEnabled:t}=this;this._relatedFeatureIntersectionObserverNode.value&&e==="ready"&&t&&this._relatedFeatureIntersectionObserver.observe(this._relatedFeatureIntersectionObserverNode.value)}_unobserveRelatedFeatureObserver(){this._relatedFeatureIntersectionObserverNode.value&&this._relatedFeatureIntersectionObserver.unobserve(this._relatedFeatureIntersectionObserverNode.value)}_matchesFeature(e,t){let r=e?.graphic?.getObjectId(),i=t?.getObjectId();return r!=null&&i!=null&&r===i}_setRelatedFeaturesViewModels(){let{relatedFeatures:e,relatedFeatureViewModels:t,map:r,view:i,spatialReference:s,timeZone:a}=this;e?.filter(Boolean).forEach(n=>{t.some(l=>this._matchesFeature(l,n))||t.add(new te({abilities:{relationshipContent:!1},map:r,view:i,spatialReference:s,timeZone:a,graphic:n}))}),t.forEach(n=>{e?.find(l=>this._matchesFeature(n,l))||t.remove(n)})}render(){let{state:e}=this;return o`<div class=${h(u.base)}><arcgis-feature-element-info .heading=${this.heading} .headingLevel=${this.headingLevel} .description=${this.description}></arcgis-feature-element-info>${e==="loading"?this._renderLoading():e==="disabled"?this._renderRelationshipNotFound():this._renderRelatedFeatures()}</div>`}_renderStickyLoading(){return this.state==="querying"?o`<div class=${h(u.stickySpinnerContainer)}>${this._renderLoadingIcon()}</div>`:null}_renderLoadingIcon(){return o`<calcite-loader inline label></calcite-loader>`}_renderLoading(){return o`<div class=${h(u.loadingSpinnerContainer)}>${this._renderLoadingIcon()}</div>`}_renderShowAllIconNode(){return o`<calcite-icon icon=list scale=s slot=content-end></calcite-icon>`}_renderChevronIconNode(){return o`<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon>`}_renderCategory(e){let{count:t,name:r}=e,i=T(t);return o`<calcite-list-item class=${h(u.listItem)} .disabled=${!t} .label=${r} @calciteListItemSelect=${()=>this._selectCategory(e)}><calcite-chip .label=${i} scale=s slot=content-end>${i}</calcite-chip>${this._renderChevronIconNode()}</calcite-list-item>`}_renderRelatedFeature(e){let{itemDescriptionFieldName:t,values:r}=this,{formattedAttributes:i,state:s,title:a}=e,n={...i?.global,...r},l=(t&&n?.[t])??"",g=s==="loading";return o`<calcite-list-item class=${h(E(u.listItem,{[u.listItemHidden]:g}))} .description=${K(l.toString())} .label=${K(a)} @calciteListItemSelect=${()=>this._selectRecord(e)}>${this._renderChevronIconNode()}</calcite-list-item>`}_renderShowAllListItem(){return this.displayShowAllButton?o`<calcite-list-item .description=${this.allItemsDescription} .label=${this.messages?.showAll} @calciteListItemSelect=${()=>this._showAllRecords()}>${this._renderShowAllIconNode()}</calcite-list-item>`:null}_renderNoRelatedFeaturesMessage(){return o`<calcite-notice icon=information kind=brand open scale=s width=full><div slot=message>${this.messages?.noRelatedFeatures}</div></calcite-notice>`}_renderFeatureObserver(){return o`<div class=${h(u.featureObserver)} ${j(this._relatedFeatureIntersectionObserverNode)}></div>`}_renderList(){let{relatedFeatureViewModels:e,categories:t}=this;return o`<calcite-list display-mode=flat .label=${this.messages?.relatedFeaturesList??""}>${t?.map(r=>this._renderCategory(r))??e.toArray().map(r=>this._renderRelatedFeature(r))}${this._renderShowAllListItem()}</calcite-list>`}_renderRelatedFeatures(){let{displayListItems:e}=this,{state:t}=this;return o`<div class=${h(E(u.listContainer,{[u.listContainerQuerying]:t==="querying"}))}>${e?this._renderList():t==="ready"?this._renderNoRelatedFeaturesMessage():null}${this._renderStickyLoading()}${this._renderFeatureObserver()}</div>`}_renderRelationshipNotFound(){return o`<calcite-notice icon=exclamation-mark-triangle kind=danger open scale=s width=full><div slot=message>${this.messages?.relationshipNotFound}</div></calcite-notice>`}};B("arcgis-feature-relationship",x);return x},"applications/Components/stringUtils","applications/Components/featureUtils","intl","core/reactiveUtils","core/Collection","rest/support/RelationshipQuery","core/promiseUtils","widgets/Feature/FeatureViewModel",a)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import"./
|
|
3
|
+
v5.0.0-next.88 */
|
|
4
|
+
import"./FHMZ7YBE.js";var o={_decimalSeparator:".",_thousandSeparator:",",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03BC",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date_millisecond:"mm:ss SSS",_date_millisecond_full:"HH:mm:ss SSS",_date_second:"HH:mm:ss",_date_second_full:"HH:mm:ss",_date_minute:"HH:mm",_date_minute_full:"HH:mm - MMM dd, yyyy",_date_hour:"HH:mm",_date_hour_short:"HH",_date_hour_full:"HH:mm - MMM dd, yyyy",_date_day:"MMM dd",_date_day_full:"MMM dd, yyyy",_date_week:"ww",_date_week_full:"MMM dd, yyyy",_date_month:"MMM",_date_month_full:"MMM, yyyy",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"\u897F\u5143",_era_bc:"\u897F\u5143\u524D",A:"\u4E0A\u5348",P:"\u4E0B\u5348",AM:"\u4E0A\u5348",PM:"\u4E0B\u5348","A.M.":"\u4E0A\u5348","P.M.":"\u4E0B\u5348",January:"1\u6708",February:"2\u6708",March:"3\u6708",April:"4\u6708",May:"5\u6708",June:"6\u6708",July:"7\u6708",August:"8\u6708",September:"9\u6708",October:"10\u6708",November:"11\u6708",December:"12\u6708",Jan:"1\u6708",Feb:"2\u6708",Mar:"3\u6708",Apr:"4\u6708","May(short)":"5\u6708",Jun:"6\u6708",Jul:"7\u6708",Aug:"8\u6708",Sep:"9\u6708",Oct:"10\u6708",Nov:"11\u6708",Dec:"12\u6708",Sunday:"\u661F\u671F\u65E5",Monday:"\u661F\u671F\u4E00",Tuesday:"\u661F\u671F\u4E8C",Wednesday:"\u661F\u671F\u4E09",Thursday:"\u661F\u671F\u56DB",Friday:"\u661F\u671F\u4E94",Saturday:"\u661F\u671F\u516D",Sun:"\u9031\u65E5",Mon:"\u9031\u4E00",Tue:"\u9031\u4E8C",Wed:"\u9031\u4E09",Thu:"\u9031\u56DB",Fri:"\u9031\u4E94",Sat:"\u9031\u516D",_dateOrd:function(_){let e="th";if(_<11||_>13)switch(_%10){case 1:e="\u65E5";break;case 2:e="\u65E5";break;case 3:e="\u65E5";break}return e},"Zoom Out":"\u7E2E\u653E",Play:"\u64AD\u653E",Stop:"\u505C\u6B62",Legend:"\u5716\u4F8B","Press ENTER to toggle":"",Loading:"\u6B63\u5728\u8F09\u5165",Home:"\u9996\u9801",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"\u5217\u5370",Image:"\u5F71\u50CF",Data:"\u8CC7\u6599",Print:"\u5217\u5370","Press ENTER to open":"","Press ENTER to print.":"","Press ENTER to export as %1.":"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"",HTML:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"\u5F9E %1 \u81F3 %2","From %1":"\u5F9E %1","To %1":"\u81F3 %1","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:"",Confirm:""};export{o as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import b from"./
|
|
3
|
+
v5.0.0-next.88 */
|
|
4
|
+
import b from"./YNAQEYTN.js";import a from"./RJRY26TE.js";export default $arcgis.t(([,m,p,{isZoomScreenSize:h},{c:d},{e:l}])=>{var n=new m({icon:"magnifying-glass-plus",id:"zoom-to-feature",title:"{messages.zoom}"}),b=new m({icon:"trash",id:"remove-selected-feature",title:"{messages.remove}"}),s=new m({icon:"magnifying-glass-plus",id:"zoom-to-clustered-features",title:"{messages.zoom}"}),y=new p({icon:"table",id:"browse-clustered-features",title:"{messages.browseClusteredFeatures}",value:!1});function O(e){if(e.icon)return e.icon;if(!("image"in e&&e.image)&&!e.className)return"question"}function Q(e){return e?{backgroundImage:`url(${e})`}:{}}function z(e){let{selectedFeature:t,location:i,view:r}=e;return r?t??i??null:null}async function E(e,t){let{location:i,selectedFeature:r,view:o,zoomFactor:a}=e;await t?.viewModel?.updateGeometry();let c=t?.graphic,g=c?.geometry?c:z(e);if(!o||!g)throw new Error("Cannot zoom to location without a target and view.");let f=o.scale/a,u=c?.geometry??e.selectedFeature?.geometry??i,w=u?.type==="point"&&await h(c??r,o);n.active=!0,n.disabled=!0;try{await e.zoomTo({target:{target:g,scale:w?f:void 0}})}catch(v){if(d(v))return;throw new Error("Could not zoom to the location of the graphic.")}finally{n.active=!1,n.disabled=!1,w&&e.location!==u&&(e.location=u)}}function C(e){return!!e&&e.isAggregate&&l(e)?.featureReduction?.type==="cluster"}async function F(e,t){let i=await e.whenLayerView(l(t)),r=i.createQuery(),o=t.getObjectId();return r.aggregateIds=o!=null?[o]:[],[i,r]}async function T(e){let{selectedFeature:t,view:i}=e;if(i?.type!=="2d")throw new Error("zoomToCluster:invalid-view: View must be 2d MapView.");if(!t||!C(t))throw new Error("zoomToCluster:invalid-selectedFeature: Selected feature must represent an aggregate/cluster graphic.");let[r,o]=await F(i,t);s.active=!0,s.disabled=!0;let{extent:a}=await r.queryExtent(o);a&&await e.zoomTo({target:a}),s.active=!1,s.disabled=!1}var Z=async(e,t)=>{if(!e)throw new Error("trigger-action:missing-arguments: Event has no action");let{disabled:i,id:r}=e;if(!r)throw new Error("trigger-action:invalid-action: action.id is missing");if(i)throw new Error("trigger-action:invalid-action: Action is disabled");if(r===n.id)return await E(t).catch(o=>{if(!d(o))throw o});if(r===s.id)return await T(t);if(r===y.id){t.browseClusterEnabled=!t.browseClusterEnabled,t.featureMenuOpen=t.browseClusterEnabled;return}if(r===b.id){t.visible=!1;let{selectedFeature:o}=t;if(!o)throw new Error("trigger-action:missing-selected-feature: Cannot remove selected feature without a selected feature.");let a=l(o);a?a.remove(o):t.view?.graphics.remove(o)}};return{a:n,b:O,c:Q,d:E,e:Z}},"intl","support/actions/ActionButton","support/actions/ActionToggle","applications/Components/actionUtils",a,b)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import a from"./
|
|
3
|
+
v5.0.0-next.88 */
|
|
4
|
+
import a from"./ZLTRCGZO.js";import{I as g,J as i,K as o,O as p,a as n,b as t}from"./M7HAKBNG.js";import"./FHMZ7YBE.js";export default $arcgis.t(([{c:m,h:d}])=>{var b=n`.arcgis-legend__layer-row{display:flex}.arcgis-legend__layer-cell{padding:var(--calcite-spacing-xxs) 0;min-width:100px;vertical-align:middle;word-break:break-word}.arcgis-legend__layer-cell--symbols{min-width:10px;text-align:center}.arcgis-legend__layer-cell--info{padding-right:var(--calcite-spacing-sm);padding-left:var(--calcite-spacing-sm);max-width:250px;word-break:normal;word-wrap:normal;font-size:var(--calcite-font-size-sm)}.arcgis-legend__ramps{margin-left:var(--calcite-spacing-sm)}:dir(rtl) .arcgis-legend__ramps{margin-right:var(--calcite-spacing-sm);margin-left:auto}.arcgis-legend__color-ramp{width:24px}.arcgis-legend__opacity-ramp{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDowMTgwMTE3NDA3MjA2ODExODcxRkM3N0RBQzA4QkVDRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpEOTY4RkNFNjM1MzYxMUU0ODlDMUFFQ0M2REU5QzFCNCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpEOTY4RkNFNTM1MzYxMUU0ODlDMUFFQ0M2REU5QzFCNCIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M1LjEgTWFjaW50b3NoIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MDE4MDExNzQwNzIwNjgxMTg3MUZDNzdEQUMwOEJFQ0UiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MDE4MDExNzQwNzIwNjgxMTg3MUZDNzdEQUMwOEJFQ0UiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6SLS5VAAAAKElEQVR42mI8c+YMAwwYGxvD2UwMOADpEoz///+Hc86ePUsLOwACDABC1ghwV8TLOQAAAABJRU5ErkJggg==)}.arcgis-legend__ramp-labels{display:flex;flex-flow:column nowrap;justify-content:space-between}.arcgis-legend__ramp-label{position:relative;padding:0 var(--calcite-spacing-sm);line-height:var(--calcite-font-size-sm);white-space:nowrap;font-size:var(--calcite-font-size-sm)}.arcgis-legend__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:""}.arcgis-legend__ramp-label:first-child{margin-top:calc(var(--calcite-font-size-sm) / 3 * -1)}.arcgis-legend__ramp-label:last-child{bottom:calc(var(--calcite-font-size-sm) * .25 * -1)}.arcgis-legend-layer-caption{display:table-caption;padding:var(--calcite-spacing-sm) 0}:dir(rtl) .arcgis-legend__ramp-label:before{right:auto;left:100%;border-width:3px 0 3px 4px;border-color:transparent transparent transparent var(--calcite-color-text-1)}`,l={layerRow:"arcgis-legend__layer-row",layerInfo:"arcgis-legend__layer-cell arcgis-legend__layer-cell--info",symbolContainer:"arcgis-legend__layer-cell arcgis-legend__layer-cell--symbols",rampContainer:"arcgis-legend__ramps",colorRamp:"arcgis-legend__color-ramp",opacityRamp:"arcgis-legend__opacity-ramp",rampLabelsContainer:"arcgis-legend__ramp-labels",rampLabel:"arcgis-legend__ramp-label"},c=class extends g{constructor(){super(...arguments),this.legendElement=null,this.opacity=1}static{this.properties={_preview:16,legendElement:0,opacity:9,messages:0}}static{this.styles=b}get _preview(){let e=this.legendElement.preview;if(!e)return null;let a=this.legendElement.type==="opacity-ramp",r=a?l.opacityRamp:"";e.className=`${l.colorRamp} ${r}`,this.opacity!=null&&(e.style.opacity=this.opacity.toString());let s=a?this.messages.previewOpacityRampAriaLabel:this.messages.previewColorRampAriaLabel;return d(e,s),e}render(){let{legendElement:e,_preview:a}=this;if(!a)return null;let r={height:a.style.height};return t`<div class=${i(l.layerRow)}><div class=${i(l.symbolContainer)}><div class=${i(l.rampContainer)}>${a}</div></div><div class=${i(l.layerInfo)}><div class=${i(l.rampLabelsContainer)} style=${o(r)}>${e.infos.map(s=>this._renderRampLabel(s,e.type))}</div></div></div>`}_renderRampLabel(e,a){return t`<div class=${i(e.label?l.rampLabel:void 0)}>${m(e,a,this.messages)}</div>`}};p("arcgis-legend-classic-color-ramp",c);return c},a)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import a from"./
|
|
3
|
+
v5.0.0-next.88 */
|
|
4
|
+
import a from"./ZLTRCGZO.js";import{I as R,J as r,K as k,O as x,a as $,b}from"./M7HAKBNG.js";import"./FHMZ7YBE.js";export default $arcgis.t(([{e:_,g:y,h:L}])=>{var X=$`.arcgis-spike-ramp__container{display:flex;flex-direction:row;gap:var(--calcite-spacing-sm-plus);margin-left:var(--calcite-spacing-sm)}.arcgis-spike-ramp__preview-container{display:flex;position:relative;gap:var(--calcite-spacing-sm-plus);border-bottom:var(--calcite-border-width-sm) solid var(--calcite-color-border-2);padding:0 var(--calcite-spacing-xl)}.arcgis-spike-ramp__preview{display:flex;gap:var(--calcite-spacing-sm-plus);align-items:end}.arcgis-spike-ramp__symbol-preview{display:flex}.arcgis-spike-ramp__lines{display:flex;position:absolute;bottom:0}.arcgis-spike-ramp__labels-container{display:flex;position:relative;top:-5px;flex:1;min-width:120px}.arcgis-spike-ramp__label{position:relative;padding:0 var(--calcite-spacing-sm);line-height:1em;word-break:break-all;font-size:var(--calcite-font-size-sm)}.arcgis-spike-ramp__label:before{display:block;position:absolute;top:.25em;right:100%;border-width:3px 4px 3px 0;border-style:solid;border-color:transparent var(--calcite-color-text-1) transparent transparent;width:0;height:0;content:""}`,p={spikeRampContainer:"arcgis-spike-ramp__container",spikeRampPreviewContainer:"arcgis-spike-ramp__preview-container",spikeRampPreview:"arcgis-spike-ramp__preview",spikeRampSymbolPreview:"arcgis-spike-ramp__symbol-preview",spikeRampLines:"arcgis-spike-ramp__lines",spikeRampLabelsContainer:"arcgis-spike-ramp__labels-container",spikeRampLabel:"arcgis-spike-ramp__label"},Y="#ddd",e=window.devicePixelRatio;function u(v){return v.infos.filter((m,t)=>t%2===0)}function S(v){return!!(v&&typeof v=="object")}var f=class extends R{constructor(){super(...arguments),this.legendElement=null}static{this.properties={legendElement:0,messages:0}}static{this.styles=X}render(){return this.legendElement.infos.length!==5?null:b`<div class=${r(p.spikeRampContainer)}><div class=${r(p.spikeRampPreviewContainer)}>${this._renderSpikeRampLines()}${this._renderSpikeRampPreview()}</div>${this._renderSpikeRampLabels()}</div>`}_renderSpikeRampPreview(){let m=this.legendElement,[t,l,d]=u(m).map(({preview:c,label:n})=>{if(!c)return null;let s=c.cloneNode(!0);return s.classList.add(p.spikeRampSymbolPreview),L(s,y(this.messages,n)),s});return!t||!l||!d?null:b`<div class=${r(p.spikeRampPreview)}><div>${d}</div><div>${l}</div><div>${t}</div></div>`}_renderSpikeRampLines(){let m=this.legendElement,[{width:t,height:l},{width:d},{width:c,height:n}]=u(m).map(({size:w})=>S(w)?{width:_(w.width),height:_(w.height)}:{width:0,height:0}),s=10,g=8,o=t+d+c+s*3,h=l,a=document.createElement("canvas");a.width=(o+s)*e,a.height=h*e,a.style.width=`${a.width/e}px`,a.style.height=`${a.height/e}px`;let i=a.getContext("2d");i.beginPath();let P=o-(t/2+s),C=0,E=o+g;i.moveTo(P*e,C*e),i.lineTo(E*e,0*e);let T=(o-g)/2,z=(l-n)/2,M=o+g,j=(l-n)/2;i.moveTo(T*e,z*e),i.lineTo(M*e,j*e);let A=c/2,W=h-n,H=o+g,I=h-n;return i.moveTo(A*e,W*e),i.lineTo(H*e,I*e),i.strokeStyle=Y,i.lineWidth=.5*e,i.stroke(),b`<div class=${r(p.spikeRampLines)}>${a}</div>`}_renderSpikeRampLabels(){let m=this.legendElement,[{label:t,height:l},{label:d},{label:c,height:n}]=u(m).map(({label:a,size:i})=>({label:a,height:S(i)?_(i.height):0})),s=l-n,g={position:"absolute",top:"0"},o={position:"absolute",top:`${s/2}px`},h={position:"absolute",top:`${s}px`};return b`<div class=${r(p.spikeRampLabelsContainer)}><div class=${r(p.spikeRampLabel)} style=${k(g)}>${t}</div><div class=${r(p.spikeRampLabel)} style=${k(o)}>${d}</div><div class=${r(p.spikeRampLabel)} style=${k(h)}>${c}</div></div>`}};x("arcgis-legend-spike-ramp",f);return f},a)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import{a as c,b as m}from"./
|
|
3
|
+
v5.0.0-next.88 */
|
|
4
|
+
import{a as c,b as m}from"./MX6TFUVB.js";import{a as l}from"./6SBLQLAH.js";import{b as o}from"./GITNRBUR.js";import{J as t,L as n}from"./M7HAKBNG.js";function x({level:a,class:s,id:e,children:f,excludeGlobalCss:h}){let i=$(a),u=`h${i}`,r=c(u);return m`<${r} .ariaLevel=${String(i)} class=${t(o(h?s:l.heading,s))} id=${e??n} role=heading>${f}</${r}>`}function p(a,s,e){return Math.min(Math.max(a,s),e)}function $(a){return p(Math.ceil(a),1,6)}export{x as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import{a as h}from"./R5Y23ZAL.js";import{a as b}from"./23BMCGBL.js";import{g as y}from"./6EHD4HBM.js";import"./AXGZ7DH4.js";import"./XVN3ROOD.js";import{a as c,b as f,c as _}from"./FYFACDTI.js";import{I as k,J as u,O as m,a as w,b as r,s as d}from"./2Z5TGS77.js";import"./ZBOH5EEO.js";export default $arcgis.t(([{queryAllJSON:L},n,v,U,E,M,g,I])=>{var A=w`:host{width:100%}.arcgis-utility-network-trace-inputs calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}.arcgis-utility-network-trace-inputs calcite-block-group{padding-bottom:var(--calcite-spacing-md);background-color:var(--calcite-color-foreground-1)}.arcgis-utility-network-trace-inputs calcite-block calcite-select{padding:0 var(--calcite-spacing-md)}.arcgis-utility-network-trace-inputs calcite-block calcite-label:last-child{--calcite-label-margin-bottom: 0}.arcgis-utility-network-trace-inputs calcite-notice{padding:var(--calcite-spacing-md)}.arcgis-utility-network-trace-inputs .inline-loader{--calcite-loader-spacing: var(--calcite-spacing-md)}.arcgis-utility-network-trace-inputs__add-spatial-mode{display:flex;height:300px;padding:var(--calcite-spacing-xxl) var(--calcite-spacing-sm);flex-direction:column;justify-content:center;align-items:center;gap:var(--calcite-spacing-md);align-self:stretch}.arcgis-utility-network-trace-inputs .subnetwork-info-block{padding-top:var(--calcite-spacing-md);padding-left:var(--calcite-spacing-md);padding-right:var(--calcite-spacing-md)}`,T="arcgis-utility-network-trace-inputs",S={base:T,addSpatialMode:`${T}__add-spatial-mode`},N=`utility-network-trace-inputs-sketch-${Date.now()}`,l=`utility-network-trace-inputs-flags-${Date.now()}`,p=class extends k{constructor(){super(...arguments),this._messages=b({blocking:!0}),this._startingPoints=new n,this._barriers=new n,this._stoppingPoints=new n,this._subnetworkTraceTypes=new Set(["subnetwork","subnetwork-controller","upstream","downstream","isolation"]),this._removeDuplicateSubnetworkNames=(e,t,i)=>t===0||e.getAttribute("SUBNETWORKNAME")!==i[t-1].getAttribute("SUBNETWORKNAME"),this.compatibleSubnetworkNames=[],this.traceConfigurations=[],this._state="ready",this.mode="default",this.arcgisTraceInputsChange=d(),this.arcgisUtilityNetworkChange=d(),this.arcgisTraceLocationSelectStart=d(),this.arcgisPropertyChange=y()("mode")}static{this.properties={compatibleSubnetworkNames:16,selectedSubnetworkName:16,subnetworksTable:16,traceConfigurations:16,utilityNetworks:16,_unTraceConfiguration:16,_state:16,_activeTraceLocationType:16,view:0,selectedUtilityNetwork:0,selectedNamedTraceConfiguration:0,unTraceConfiguration:32,referenceElement:1,mode:1,traceLocations:32}}static{this.styles=A}get _allLayers(){let{view:e}=this;return e?.map?e.map.allLayers.toArray().concat(e.map.allTables.toArray()):[]}get selectedSubnetworkName(){return this._unTraceConfiguration?.subnetworkName??void 0}set selectedSubnetworkName(e){this._unTraceConfiguration&&(this._unTraceConfiguration.subnetworkName=e)}get unTraceConfiguration(){return this._unTraceConfiguration}get traceLocations(){let e=[],t=i=>{i.flagProperties.terminalConfiguration&&i.flagProperties.selectedTerminals?i.flagProperties.selectedTerminals.forEach(a=>{e.push(new E({type:i.traceLocation.type,isFilterBarrier:i.traceLocation.isFilterBarrier,globalId:i.traceLocation.globalId,percentAlong:i.traceLocation.percentAlong,terminalId:a}))}):e.push(i.traceLocation)};return this._startingPoints.forEach(i=>t(i)),this._barriers.forEach(i=>t(i)),this._stoppingPoints.forEach(i=>t(i)),e}load(){this._setupUtilityNetwork(),this._setupSketchViewModel()}willUpdate(e){let{utilityNetworks:t,selectedUtilityNetwork:i}=this;(e.has("utilityNetworks")||!t||t.length===0||!i||!t?.includes(i))&&this._handleUtilityNetworksChange(),e.has("selectedUtilityNetwork")&&(this.arcgisUtilityNetworkChange.emit(),this._handleSelectedUtilityNetworkChange()),e.has("selectedNamedTraceConfiguration")&&(this.arcgisTraceInputsChange.emit(),this._handleTraceConfigChange()),e.has("selectedSubnetworkName")&&this.arcgisTraceInputsChange.emit()}_clearTraceLocations(){this._getGraphicLayer(l)?.removeAll(),this._startingPoints.removeAll(),this._barriers.removeAll(),this._stoppingPoints.removeAll()}_addUniqueLayer(e,t){if(!t||!e?.map)return;let{map:i}=e;i.layers.find(a=>a===t)||i.add(t),i.reorder(t,i.layers.length-1)}_createGraphicLayer(e){let{map:t}=this.view;if(!t?.findLayerById(e)){let i=new v({id:e,listMode:"hide",title:e});this._addUniqueLayer(this.view,i)}}_getGraphicLayer(e){let{map:t}=this.view;if(t){let i=t.findLayerById(e);if(i?.type==="graphics")return t.reorder(i,t.layers.length-1),i}return null}_setSnappingOption(){let{_sketchViewModel:e,_unLayers:t}=this;if(e&&t&&t.length>0){let i=new n;t.forEach(a=>{a.type==="subtype-group"?a.sublayers.forEach(o=>{i.add(new g({layer:o,enabled:!0}))}):i.add(new g({layer:a,enabled:!0}))}),e.snappingOptions={enabled:!0,featureEnabled:!0,featureSources:i}}}_initializeSketchViewModel(){let{view:e,_unLayers:t}=this,i=this._getGraphicLayer(N),a=new n;return t?.forEach(o=>a.add(new g({layer:o,enabled:!0}))),new I({layer:i,view:e})}_setupSketchViewModel(){this._createGraphicLayer(N),this._createGraphicLayer(l),this._sketchViewModel=this._initializeSketchViewModel()}_clearSubnetworks(){this.selectedSubnetworkName=void 0,this.subnetworksTable=void 0,this.compatibleSubnetworkNames=[]}async _loadSubnetworksTable(){this.subnetworksTable||(this.subnetworksTable=await this.selectedUtilityNetwork?.loadSubnetworksTable())}async _querySubnetworks(){let{subnetworksTable:e}=this;if(!e)return;let t=e.createQuery();t.gdbVersion=this.selectedUtilityNetwork?.gdbVersion,t.where=this._getSubnetworkQueryWhereClause(),t.outFields=["SUBNETWORKNAME"],t.orderByFields=["SUBNETWORKNAME"];let i=M.fromJSON(await L(e,t));this.compatibleSubnetworkNames=i.features.filter(this._removeDuplicateSubnetworkNames).map(a=>a.getAttribute("SUBNETWORKNAME"))}_getSubnetworkQueryWhereClause(){let e=this._unTraceConfiguration,t=`DOMAINNETWORKNAME = '${e.domainNetworkName}'`,i=`TIERNAME = '${e.tierName}'`;return[t,i].join(" AND ")}async _handleSubnetworkTraceConfigChange(e){await this._loadSubnetworksTable(),await this._querySubnetworks();let{compatibleSubnetworkNames:t}=this;e.subnetworkName&&!t.some(i=>i===e.subnetworkName)&&(this.selectedSubnetworkName=t.at(0))}_selectTraceConfigurationByGuid(e){let t=this.selectedUtilityNetwork?.sharedNamedTraceConfigurations.find(i=>i.globalId===e);if(!t){c("error",this,"`traceConfig` not found in `selectedUtilityNetwork.sharedNamedTraceConfigurations`");return}this.selectedNamedTraceConfiguration=t}_handleTraceConfigChange(){let{selectedNamedTraceConfiguration:e}=this;if(!(e?.traceConfiguration instanceof U)){c("error",this,f("selectedNamedTraceConfiguration.traceConfiguration")),this._unTraceConfiguration=void 0;return}switch(this._unTraceConfiguration=e.traceConfiguration.clone(),e.traceType){case"subnetwork":this._state="loading",this._handleSubnetworkTraceConfigChange(this._unTraceConfiguration).finally(()=>this._state="ready");break}}async _handleSelectedUtilityNetworkChange(){await this.selectedUtilityNetwork?.load(),this._clearSubnetworks(),this._setupTraceConfigurations(),this._filterUnLayers(),this._clearTraceLocations()}_setupTraceConfigurations(){this._unTraceConfiguration=void 0,this.traceConfigurations=this.selectedUtilityNetwork?.sharedNamedTraceConfigurations.filter(e=>e.traceType!=="path"&&e.traceType!=="circuit")||[],this.selectedNamedTraceConfiguration=this.traceConfigurations.at(0)}_filterUnLayers(){let{selectedUtilityNetwork:e}=this;this._unLayers=new n(this._allLayers.filter(t=>e?.isUtilityLayer(t))),this._setSnappingOption()}_handleUtilityNetworksChange(){let{utilityNetworks:e}=this;if(!e||e.length===0){this._state="error",c("error",this,_("utilityNetworks"));return}(!this.selectedUtilityNetwork||!e.includes(this.selectedUtilityNetwork))&&(this.selectedUtilityNetwork=e.at(0))}async _setupUtilityNetwork(){if(this.view?.map){let e=this.view.map;await e.load(),this.utilityNetworks=e.utilityNetworks||void 0}else this._state="disabled",c("error",this,"The property `view.map` is required to load utility networks but is missing.")}_handleTraceLocationSelectStart(e){if(e.stopPropagation(),this.arcgisTraceLocationSelectStart.emit().defaultPrevented){e.preventDefault();return}this._activeTraceLocationType=e?.target?.traceLocationType,this.mode="add-spatial"}_handleTraceLocationSelectEnd(){this._activeTraceLocationType=void 0,this.mode="default"}_handleFlowItemBack(){this.mode="default",this._activeTraceLocationType=void 0,this._sketchViewModel?.cancel()}renderError(e,t=!1,i){return r`<calcite-notice .closable=${t} kind=danger open scale=s width=auto .icon=${i}><div slot=message>${e}</div></calcite-notice>`}renderLoader(){return r`<calcite-loader label=loading></calcite-loader>`}renderTraceSelection(){let{_messages:e,traceConfigurations:t}=this,i=e.labels.traceConfiguration;if(t.length===0)return this.renderError(e.errors.noTraceConfigurationError,!0);let a=h(t,o=>o.globalId,o=>r`<calcite-option .value=${o.globalId}>${o.title}</calcite-option>`);return r`<calcite-block .heading=${i} .label=${i} expanded><calcite-select .label=${i} .value=${this.selectedNamedTraceConfiguration?.globalId||void 0} @calciteSelectChange=${o=>{this._selectTraceConfigurationByGuid(o.target.value)}}>${a}</calcite-select></calcite-block>`}renderUtilityNetworkSelection(){let{_messages:e}=this,t=e.labels.utilityNetwork,i=h(this.utilityNetworks,a=>a.id,a=>r`<calcite-option .value=${a.id}>${a.title}</calcite-option>`).toArray();return r`<calcite-block .heading=${t} .label=${t} expanded><calcite-select .label=${t} .value=${this.selectedUtilityNetwork?.id} @calciteSelectChange=${a=>{this.selectedUtilityNetwork?.id!==a.target.value&&(this.selectedUtilityNetwork=this.utilityNetworks?.find(o=>o.id===a.target.value))}}>${i}</calcite-select></calcite-block>`}renderDefaultMode(){let{_messages:e,_state:t,mode:i}=this;return r`<calcite-flow-item .selected=${i==="default"}>${t==="disabled"?this.renderError(e.errors.noMapError):this.renderContent()}</calcite-flow-item>`}renderAddSpatialMode(){let{_messages:e,_activeTraceLocationType:t}=this,i=t==="starting-point"?e.labels.addSpatial.startingPoint:t==="barrier"?e.labels.addSpatial.barrier:e.labels.addSpatial.stoppingPoint;return r`<calcite-flow-item selected .heading=${i} @calciteFlowItemBack=${()=>this._handleFlowItemBack()}><div class=${u(S.addSpatialMode)}><calcite-icon icon=pin-plus scale=l></calcite-icon>${e.instructions.addSpatial}</div></calcite-flow-item>`}renderStartingPointSelection(){return r`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=starting-point @arcgisTraceLocationSelectStart=${e=>this._handleTraceLocationSelectStart(e)} @arcgisTraceLocationSelectEnd=${()=>this._handleTraceLocationSelectEnd()} @arcgisTraceLocationChange=${()=>this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this._sketchViewModel} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this._unLayers} .flagLayer=${this._getGraphicLayer(l)} .traceLocations=${this._startingPoints}></arcgis-utility-network-trace-location>`}renderStoppingPointSelection(){return r`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=stopping-point @arcgisTraceLocationSelectStart=${e=>this._handleTraceLocationSelectStart(e)} @arcgisTraceLocationSelectEnd=${()=>this._handleTraceLocationSelectEnd()} @arcgisTraceLocationChange=${()=>this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this._sketchViewModel} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this._unLayers} .flagLayer=${this._getGraphicLayer(l)} .traceLocations=${this._stoppingPoints}></arcgis-utility-network-trace-location>`}renderBarrierSelection(){return r`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=barrier @arcgisTraceLocationSelectStart=${e=>this._handleTraceLocationSelectStart(e)} @arcgisTraceLocationSelectEnd=${()=>this._handleTraceLocationSelectEnd()} @arcgisTraceLocationChange=${()=>this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this._sketchViewModel} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this._unLayers} .flagLayer=${this._getGraphicLayer(l)} .traceLocations=${this._barriers}></arcgis-utility-network-trace-location>`}renderSubnetworkSelectList(){let{compatibleSubnetworkNames:e,selectedSubnetworkName:t,_messages:i}=this,a=i.labels.subnetworkName,o=e.map(s=>r`<calcite-option .value=${s}>${s}</calcite-option>`);return r`<calcite-block .heading=${a} .label=${a} expanded><calcite-select .label=${a} .value=${t} @calciteSelectChange=${s=>this.selectedSubnetworkName=s.target.value}>${o}</calcite-select></calcite-block>`}renderSubnetworkSelection(){let{compatibleSubnetworkNames:e,_messages:t,selectedNamedTraceConfiguration:i,_unTraceConfiguration:a}=this;return i?.traceType==="subnetwork"&&a?.subnetworkName?this._state==="loading"?r`<calcite-loader class="inline-loader" label=loading scale=s></calcite-loader>`:e.length?this.renderSubnetworkSelectList():this.renderError(t.errors.noCompatibleSubnetworks,!1,"exclamation-mark-triangle"):null}renderSubnetworkInfo(){let{_messages:e,selectedNamedTraceConfiguration:t,_unTraceConfiguration:i}=this;return i&&t?.traceType&&this._subnetworkTraceTypes.has(t.traceType)?r`<calcite-block class="subnetwork-info-block" expanded .label=${e.labels.subnetworkInfo}><arcgis-utility-network-subnetwork-info .namedTraceConfig=${t}></arcgis-utility-network-subnetwork-info></calcite-block>`:null}renderContent(){let{_messages:e,utilityNetworks:t,_unTraceConfiguration:i}=this;if(!t||t.length===0)return this.renderError(e.errors.noUtilityNetworkError);let a=r`${this.renderTraceSelection()}${this.renderSubnetworkInfo()}${this.renderSubnetworkSelection()}`,o=this.selectedNamedTraceConfiguration?.traceType,s=!(i?.subnetworkName&&o==="subnetwork"),$=o==="path"||o==="circuit",C=r`${s?this.renderStartingPointSelection():null}${$?this.renderStoppingPointSelection():null}${this.renderBarrierSelection()}`;return r`<calcite-block-group .label=${e.labels.traceInputs}>${t.length>1?this.renderUtilityNetworkSelection():null}${this.selectedUtilityNetwork?.loaded?a:this.renderLoader()}${i?C:null}</calcite-block-group>`}render(){let{mode:e}=this;return r`<div class=${u(S.base)}><calcite-flow>${this.renderDefaultMode()}${e==="add-spatial"?this.renderAddSpatialMode():null}</calcite-flow></div>`}};m("arcgis-utility-network-trace-inputs",p);return p},"applications/Components/featureUtils","core/Collection","layers/GraphicsLayer","networks/support/UNTraceConfiguration","rest/networks/support/TraceLocation","rest/support/FeatureSet","views/interactive/snapping/FeatureSnappingLayerSource","widgets/Sketch/SketchViewModel")
|
|
3
|
+
v5.0.0-next.88 */
|
|
4
|
+
import{a as h}from"./ZZNUHDUX.js";import{a as b}from"./EYHKPKKG.js";import{g as y}from"./EP4FNRB2.js";import"./UM5HLJ6Z.js";import"./GITNRBUR.js";import{a as c,b as f,c as _}from"./MYLRNHOI.js";import{I as k,J as u,O as m,a as w,b as r,s as d}from"./M7HAKBNG.js";import"./FHMZ7YBE.js";export default $arcgis.t(([{queryAllJSON:L},n,v,U,E,M,g,I])=>{var A=w`:host{width:100%}.arcgis-utility-network-trace-inputs calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}.arcgis-utility-network-trace-inputs calcite-block-group{padding-bottom:var(--calcite-spacing-md);background-color:var(--calcite-color-foreground-1)}.arcgis-utility-network-trace-inputs calcite-block calcite-select{padding:0 var(--calcite-spacing-md)}.arcgis-utility-network-trace-inputs calcite-block calcite-label:last-child{--calcite-label-margin-bottom: 0}.arcgis-utility-network-trace-inputs calcite-notice{padding:var(--calcite-spacing-md)}.arcgis-utility-network-trace-inputs .inline-loader{--calcite-loader-spacing: var(--calcite-spacing-md)}.arcgis-utility-network-trace-inputs__add-spatial-mode{display:flex;height:300px;padding:var(--calcite-spacing-xxl) var(--calcite-spacing-sm);flex-direction:column;justify-content:center;align-items:center;gap:var(--calcite-spacing-md);align-self:stretch}.arcgis-utility-network-trace-inputs .subnetwork-info-block{padding-top:var(--calcite-spacing-md);padding-left:var(--calcite-spacing-md);padding-right:var(--calcite-spacing-md)}`,T="arcgis-utility-network-trace-inputs",S={base:T,addSpatialMode:`${T}__add-spatial-mode`},N=`utility-network-trace-inputs-sketch-${Date.now()}`,l=`utility-network-trace-inputs-flags-${Date.now()}`,p=class extends k{constructor(){super(...arguments),this._messages=b({blocking:!0}),this._startingPoints=new n,this._barriers=new n,this._stoppingPoints=new n,this._subnetworkTraceTypes=new Set(["subnetwork","subnetwork-controller","upstream","downstream","isolation"]),this._removeDuplicateSubnetworkNames=(e,t,i)=>t===0||e.getAttribute("SUBNETWORKNAME")!==i[t-1].getAttribute("SUBNETWORKNAME"),this.compatibleSubnetworkNames=[],this.traceConfigurations=[],this._state="ready",this.mode="default",this.arcgisTraceInputsChange=d(),this.arcgisUtilityNetworkChange=d(),this.arcgisTraceLocationSelectStart=d(),this.arcgisPropertyChange=y()("mode")}static{this.properties={compatibleSubnetworkNames:16,selectedSubnetworkName:16,subnetworksTable:16,traceConfigurations:16,utilityNetworks:16,_unTraceConfiguration:16,_state:16,_activeTraceLocationType:16,view:0,selectedUtilityNetwork:0,selectedNamedTraceConfiguration:0,unTraceConfiguration:32,referenceElement:1,mode:1,traceLocations:32}}static{this.styles=A}get _allLayers(){let{view:e}=this;return e?.map?e.map.allLayers.toArray().concat(e.map.allTables.toArray()):[]}get selectedSubnetworkName(){return this._unTraceConfiguration?.subnetworkName??void 0}set selectedSubnetworkName(e){this._unTraceConfiguration&&(this._unTraceConfiguration.subnetworkName=e)}get unTraceConfiguration(){return this._unTraceConfiguration}get traceLocations(){let e=[],t=i=>{i.flagProperties.terminalConfiguration&&i.flagProperties.selectedTerminals?i.flagProperties.selectedTerminals.forEach(a=>{e.push(new E({type:i.traceLocation.type,isFilterBarrier:i.traceLocation.isFilterBarrier,globalId:i.traceLocation.globalId,percentAlong:i.traceLocation.percentAlong,terminalId:a}))}):e.push(i.traceLocation)};return this._startingPoints.forEach(i=>t(i)),this._barriers.forEach(i=>t(i)),this._stoppingPoints.forEach(i=>t(i)),e}load(){this._setupUtilityNetwork(),this._setupSketchViewModel()}willUpdate(e){let{utilityNetworks:t,selectedUtilityNetwork:i}=this;(e.has("utilityNetworks")||!t||t.length===0||!i||!t?.includes(i))&&this._handleUtilityNetworksChange(),e.has("selectedUtilityNetwork")&&(this.arcgisUtilityNetworkChange.emit(),this._handleSelectedUtilityNetworkChange()),e.has("selectedNamedTraceConfiguration")&&(this.arcgisTraceInputsChange.emit(),this._handleTraceConfigChange()),e.has("selectedSubnetworkName")&&this.arcgisTraceInputsChange.emit()}_clearTraceLocations(){this._getGraphicLayer(l)?.removeAll(),this._startingPoints.removeAll(),this._barriers.removeAll(),this._stoppingPoints.removeAll()}_addUniqueLayer(e,t){if(!t||!e?.map)return;let{map:i}=e;i.layers.find(a=>a===t)||i.add(t),i.reorder(t,i.layers.length-1)}_createGraphicLayer(e){let{map:t}=this.view;if(!t?.findLayerById(e)){let i=new v({id:e,listMode:"hide",title:e});this._addUniqueLayer(this.view,i)}}_getGraphicLayer(e){let{map:t}=this.view;if(t){let i=t.findLayerById(e);if(i?.type==="graphics")return t.reorder(i,t.layers.length-1),i}return null}_setSnappingOption(){let{_sketchViewModel:e,_unLayers:t}=this;if(e&&t&&t.length>0){let i=new n;t.forEach(a=>{a.type==="subtype-group"?a.sublayers.forEach(o=>{i.add(new g({layer:o,enabled:!0}))}):i.add(new g({layer:a,enabled:!0}))}),e.snappingOptions={enabled:!0,featureEnabled:!0,featureSources:i}}}_initializeSketchViewModel(){let{view:e,_unLayers:t}=this,i=this._getGraphicLayer(N),a=new n;return t?.forEach(o=>a.add(new g({layer:o,enabled:!0}))),new I({layer:i,view:e})}_setupSketchViewModel(){this._createGraphicLayer(N),this._createGraphicLayer(l),this._sketchViewModel=this._initializeSketchViewModel()}_clearSubnetworks(){this.selectedSubnetworkName=void 0,this.subnetworksTable=void 0,this.compatibleSubnetworkNames=[]}async _loadSubnetworksTable(){this.subnetworksTable||(this.subnetworksTable=await this.selectedUtilityNetwork?.loadSubnetworksTable())}async _querySubnetworks(){let{subnetworksTable:e}=this;if(!e)return;let t=e.createQuery();t.gdbVersion=this.selectedUtilityNetwork?.gdbVersion,t.where=this._getSubnetworkQueryWhereClause(),t.outFields=["SUBNETWORKNAME"],t.orderByFields=["SUBNETWORKNAME"];let i=M.fromJSON(await L(e,t));this.compatibleSubnetworkNames=i.features.filter(this._removeDuplicateSubnetworkNames).map(a=>a.getAttribute("SUBNETWORKNAME"))}_getSubnetworkQueryWhereClause(){let e=this._unTraceConfiguration,t=`DOMAINNETWORKNAME = '${e.domainNetworkName}'`,i=`TIERNAME = '${e.tierName}'`;return[t,i].join(" AND ")}async _handleSubnetworkTraceConfigChange(e){await this._loadSubnetworksTable(),await this._querySubnetworks();let{compatibleSubnetworkNames:t}=this;e.subnetworkName&&!t.some(i=>i===e.subnetworkName)&&(this.selectedSubnetworkName=t.at(0))}_selectTraceConfigurationByGuid(e){let t=this.selectedUtilityNetwork?.sharedNamedTraceConfigurations.find(i=>i.globalId===e);if(!t){c("error",this,"`traceConfig` not found in `selectedUtilityNetwork.sharedNamedTraceConfigurations`");return}this.selectedNamedTraceConfiguration=t}_handleTraceConfigChange(){let{selectedNamedTraceConfiguration:e}=this;if(!(e?.traceConfiguration instanceof U)){c("error",this,f("selectedNamedTraceConfiguration.traceConfiguration")),this._unTraceConfiguration=void 0;return}switch(this._unTraceConfiguration=e.traceConfiguration.clone(),e.traceType){case"subnetwork":this._state="loading",this._handleSubnetworkTraceConfigChange(this._unTraceConfiguration).finally(()=>this._state="ready");break}}async _handleSelectedUtilityNetworkChange(){await this.selectedUtilityNetwork?.load(),this._clearSubnetworks(),this._setupTraceConfigurations(),this._filterUnLayers(),this._clearTraceLocations()}_setupTraceConfigurations(){this._unTraceConfiguration=void 0,this.traceConfigurations=this.selectedUtilityNetwork?.sharedNamedTraceConfigurations.filter(e=>e.traceType!=="path"&&e.traceType!=="circuit")||[],this.selectedNamedTraceConfiguration=this.traceConfigurations.at(0)}_filterUnLayers(){let{selectedUtilityNetwork:e}=this;this._unLayers=new n(this._allLayers.filter(t=>e?.isUtilityLayer(t))),this._setSnappingOption()}_handleUtilityNetworksChange(){let{utilityNetworks:e}=this;if(!e||e.length===0){this._state="error",c("error",this,_("utilityNetworks"));return}(!this.selectedUtilityNetwork||!e.includes(this.selectedUtilityNetwork))&&(this.selectedUtilityNetwork=e.at(0))}async _setupUtilityNetwork(){if(this.view?.map){let e=this.view.map;await e.load(),this.utilityNetworks=e.utilityNetworks||void 0}else this._state="disabled",c("error",this,"The property `view.map` is required to load utility networks but is missing.")}_handleTraceLocationSelectStart(e){if(e.stopPropagation(),this.arcgisTraceLocationSelectStart.emit().defaultPrevented){e.preventDefault();return}this._activeTraceLocationType=e?.target?.traceLocationType,this.mode="add-spatial"}_handleTraceLocationSelectEnd(){this._activeTraceLocationType=void 0,this.mode="default"}_handleFlowItemBack(){this.mode="default",this._activeTraceLocationType=void 0,this._sketchViewModel?.cancel()}renderError(e,t=!1,i){return r`<calcite-notice .closable=${t} kind=danger open scale=s width=auto .icon=${i}><div slot=message>${e}</div></calcite-notice>`}renderLoader(){return r`<calcite-loader label=loading></calcite-loader>`}renderTraceSelection(){let{_messages:e,traceConfigurations:t}=this,i=e.labels.traceConfiguration;if(t.length===0)return this.renderError(e.errors.noTraceConfigurationError,!0);let a=h(t,o=>o.globalId,o=>r`<calcite-option .value=${o.globalId}>${o.title}</calcite-option>`);return r`<calcite-block .heading=${i} .label=${i} expanded><calcite-select .label=${i} .value=${this.selectedNamedTraceConfiguration?.globalId||void 0} @calciteSelectChange=${o=>{this._selectTraceConfigurationByGuid(o.target.value)}}>${a}</calcite-select></calcite-block>`}renderUtilityNetworkSelection(){let{_messages:e}=this,t=e.labels.utilityNetwork,i=h(this.utilityNetworks,a=>a.id,a=>r`<calcite-option .value=${a.id}>${a.title}</calcite-option>`).toArray();return r`<calcite-block .heading=${t} .label=${t} expanded><calcite-select .label=${t} .value=${this.selectedUtilityNetwork?.id} @calciteSelectChange=${a=>{this.selectedUtilityNetwork?.id!==a.target.value&&(this.selectedUtilityNetwork=this.utilityNetworks?.find(o=>o.id===a.target.value))}}>${i}</calcite-select></calcite-block>`}renderDefaultMode(){let{_messages:e,_state:t,mode:i}=this;return r`<calcite-flow-item .selected=${i==="default"}>${t==="disabled"?this.renderError(e.errors.noMapError):this.renderContent()}</calcite-flow-item>`}renderAddSpatialMode(){let{_messages:e,_activeTraceLocationType:t}=this,i=t==="starting-point"?e.labels.addSpatial.startingPoint:t==="barrier"?e.labels.addSpatial.barrier:e.labels.addSpatial.stoppingPoint;return r`<calcite-flow-item selected .heading=${i} @calciteFlowItemBack=${()=>this._handleFlowItemBack()}><div class=${u(S.addSpatialMode)}><calcite-icon icon=pin-plus scale=l></calcite-icon>${e.instructions.addSpatial}</div></calcite-flow-item>`}renderStartingPointSelection(){return r`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=starting-point @arcgisTraceLocationSelectStart=${e=>this._handleTraceLocationSelectStart(e)} @arcgisTraceLocationSelectEnd=${()=>this._handleTraceLocationSelectEnd()} @arcgisTraceLocationChange=${()=>this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this._sketchViewModel} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this._unLayers} .flagLayer=${this._getGraphicLayer(l)} .traceLocations=${this._startingPoints}></arcgis-utility-network-trace-location>`}renderStoppingPointSelection(){return r`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=stopping-point @arcgisTraceLocationSelectStart=${e=>this._handleTraceLocationSelectStart(e)} @arcgisTraceLocationSelectEnd=${()=>this._handleTraceLocationSelectEnd()} @arcgisTraceLocationChange=${()=>this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this._sketchViewModel} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this._unLayers} .flagLayer=${this._getGraphicLayer(l)} .traceLocations=${this._stoppingPoints}></arcgis-utility-network-trace-location>`}renderBarrierSelection(){return r`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=barrier @arcgisTraceLocationSelectStart=${e=>this._handleTraceLocationSelectStart(e)} @arcgisTraceLocationSelectEnd=${()=>this._handleTraceLocationSelectEnd()} @arcgisTraceLocationChange=${()=>this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this._sketchViewModel} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this._unLayers} .flagLayer=${this._getGraphicLayer(l)} .traceLocations=${this._barriers}></arcgis-utility-network-trace-location>`}renderSubnetworkSelectList(){let{compatibleSubnetworkNames:e,selectedSubnetworkName:t,_messages:i}=this,a=i.labels.subnetworkName,o=e.map(s=>r`<calcite-option .value=${s}>${s}</calcite-option>`);return r`<calcite-block .heading=${a} .label=${a} expanded><calcite-select .label=${a} .value=${t} @calciteSelectChange=${s=>this.selectedSubnetworkName=s.target.value}>${o}</calcite-select></calcite-block>`}renderSubnetworkSelection(){let{compatibleSubnetworkNames:e,_messages:t,selectedNamedTraceConfiguration:i,_unTraceConfiguration:a}=this;return i?.traceType==="subnetwork"&&a?.subnetworkName?this._state==="loading"?r`<calcite-loader class="inline-loader" label=loading scale=s></calcite-loader>`:e.length?this.renderSubnetworkSelectList():this.renderError(t.errors.noCompatibleSubnetworks,!1,"exclamation-mark-triangle"):null}renderSubnetworkInfo(){let{_messages:e,selectedNamedTraceConfiguration:t,_unTraceConfiguration:i}=this;return i&&t?.traceType&&this._subnetworkTraceTypes.has(t.traceType)?r`<calcite-block class="subnetwork-info-block" expanded .label=${e.labels.subnetworkInfo}><arcgis-utility-network-subnetwork-info .namedTraceConfig=${t}></arcgis-utility-network-subnetwork-info></calcite-block>`:null}renderContent(){let{_messages:e,utilityNetworks:t,_unTraceConfiguration:i}=this;if(!t||t.length===0)return this.renderError(e.errors.noUtilityNetworkError);let a=r`${this.renderTraceSelection()}${this.renderSubnetworkInfo()}${this.renderSubnetworkSelection()}`,o=this.selectedNamedTraceConfiguration?.traceType,s=!(i?.subnetworkName&&o==="subnetwork"),$=o==="path"||o==="circuit",C=r`${s?this.renderStartingPointSelection():null}${$?this.renderStoppingPointSelection():null}${this.renderBarrierSelection()}`;return r`<calcite-block-group .label=${e.labels.traceInputs}>${t.length>1?this.renderUtilityNetworkSelection():null}${this.selectedUtilityNetwork?.loaded?a:this.renderLoader()}${i?C:null}</calcite-block-group>`}render(){let{mode:e}=this;return r`<div class=${u(S.base)}><calcite-flow>${this.renderDefaultMode()}${e==="add-spatial"?this.renderAddSpatialMode():null}</calcite-flow></div>`}};m("arcgis-utility-network-trace-inputs",p);return p},"applications/Components/featureUtils","core/Collection","layers/GraphicsLayer","networks/support/UNTraceConfiguration","rest/networks/support/TraceLocation","rest/support/FeatureSet","views/interactive/snapping/FeatureSnappingLayerSource","widgets/Sketch/SketchViewModel")
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import b from"./
|
|
3
|
+
v5.0.0-next.88 */
|
|
4
|
+
import b from"./YNAQEYTN.js";import a from"./RJRY26TE.js";import{a as T}from"./EZZGMQDB.js";import"./MYLRNHOI.js";import{I as C,J as k,O as M,a as A,b as m}from"./M7HAKBNG.js";import"./FHMZ7YBE.js";export default $arcgis.t(([{watch:K,when:Q},X,Y,Z,{compileExpression:ee},{a:x,d:j},{q:J}])=>{var te=typeof global=="object"&&global&&global.Object===Object&&global,ie=typeof self=="object"&&self&&self.Object===Object&&self,U=te||ie||Function("return this")(),b=U.Symbol,q=Object.prototype,ne=q.hasOwnProperty,ae=q.toString,y=b?b.toStringTag:void 0;function re(e){var t=ne.call(e,y),n=e[y];try{e[y]=void 0;var i=!0}catch{}var a=ae.call(e);return i&&(t?e[y]=n:delete e[y]),a}var se=Object.prototype,oe=se.toString;function le(e){return oe.call(e)}var ce="[object Null]",ue="[object Undefined]",N=b?b.toStringTag:void 0;function fe(e){return e==null?e===void 0?ue:ce:N&&N in Object(e)?re(e):le(e)}function pe(e){return e!=null&&typeof e=="object"}var de="[object Symbol]";function he(e){return typeof e=="symbol"||pe(e)&&fe(e)==de}var me=/\s/;function ve(e){for(var t=e.length;t--&&me.test(e.charAt(t)););return t}var ge=/^\s+/;function ye(e){return e&&e.slice(0,ve(e)+1).replace(ge,"")}function $(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var R=NaN,_e=/^[-+]0x[0-9a-f]+$/i,Te=/^0b[01]+$/i,xe=/^0o[0-7]+$/i,be=parseInt;function W(e){if(typeof e=="number")return e;if(he(e))return R;if($(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=$(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=ye(e);var n=Te.test(e);return n||xe.test(e)?be(e.slice(2),n?2:8):_e.test(e)?R:+e}var I=function(){return U.Date.now()},$e="Expected a function",we=Math.max,ke=Math.min;function je(e,t,n){var i,a,o,l,r,c,f=0,v=!1,p=!1,h=!0;if(typeof e!="function")throw new TypeError($e);t=W(t)||0,$(n)&&(v=!!n.leading,p="maxWait"in n,o=p?we(W(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h);function u(s){var d=i,g=a;return i=a=void 0,f=s,l=e.apply(g,d),l}function z(s){return f=s,r=setTimeout(_,t),v?u(s):l}function B(s){var d=s-c,g=s-f,L=t-d;return p?ke(L,o-g):L}function S(s){var d=s-c,g=s-f;return c===void 0||d>=t||d<0||p&&g>=o}function _(){var s=I();if(S(s))return E(s);r=setTimeout(_,B(s))}function E(s){return r=void 0,h&&i?u(s):(i=a=void 0,l)}function G(){r!==void 0&&clearTimeout(r),f=0,i=c=a=r=void 0}function H(){return r===void 0?l:E(I())}function w(){var s=I(),d=S(s);if(i=arguments,a=this,c=s,d){if(r===void 0)return z(c);if(p)return clearTimeout(r),r=setTimeout(_,t),u(c)}return r===void 0&&(r=setTimeout(_,t)),l}return w.cancel=G,w.flush=H,w}var Ie="Expected a function";function F(e,t,n){var i=!0,a=!0;if(typeof e!="function")throw new TypeError(Ie);return $(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),je(e,t,{leading:i,maxWait:t,trailing:a})}var Oe=A`.arcgis-feature-expression__loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}`,V=1,D="arcgis-feature",P={base:`${D}-expression`,loadingSpinnerContainer:`${D}__loading-container`},O=class extends C{constructor(){super(...arguments),this._compileThrottled=F(this._startCompile,V),this._evaluateThrottled=F(this._startEvaluate,V),this.headingLevel=2}static{this.properties={_compileTask:16,_evaluateTask:16,values:0,fieldInfoMap:0,expressionInfo:0,graphic:0,headingLevel:9,interceptor:0,location:0,messages:0,spatialReference:0,map:0,view:0}}static{this.styles=Oe}loaded(){this.manager.onLifecycle(()=>[K(()=>[this.expressionInfo,this.graphic],()=>this._compileThrottled(),{initial:!0}),Q(()=>{if(!this._compileTask?.finished)return null;let t=this._compileTask.value,n=t?.dependencies,{view:i}=this;return[t,this.spatialReference,this.map,i,n?.has("view-scale")&&i&&"scale"in i?i.scale:null,n?.has("view-time-extent")?i?.timeExtent?.start:null,n?.has("view-time-extent")?i?.timeExtent?.end:null]},([t])=>this._evaluateThrottled(t)),{remove:()=>this._cancelThrottles()}])}_cancelThrottles(){this._compileThrottled.cancel(),this._evaluateThrottled.cancel()}_startCompile(){this._evaluateTask=T(this._evaluateTask),this._compileTask=T(this._compileTask),this._compileTask=j(async t=>{let{expressionInfo:n,graphic:i}=this,a=n?.expression;if(!a||!i)return null;let o=await ee({expression:a,graphic:i});return x(t),o})}_startEvaluate(t){this._evaluateTask=T(this._evaluateTask),this._evaluateTask=j(async n=>{let{graphic:i}=this;if(!t||!i)return null;let{interceptor:a,spatialReference:o,map:l,location:r,view:c}=this,f=await t.evaluate({graphic:i,interceptor:a,location:r,map:l,options:{signal:n},spatialReference:o,view:c});x(n);let v=f&&"castAsJsonAsync"in f&&typeof f.castAsJsonAsync=="function"?f:null;if(!v)return null;let p=await v.castAsJsonAsync(n);x(n);let h=p?.type,u=h==="media"?X.fromJSON(p):h==="text"?Z.fromJSON(p):h==="fields"?Y.fromJSON(p):null;return!u||u.type==="media"&&!u.mediaInfos||u.type==="fields"&&!u.fieldInfos||u.type==="text"&&!u.text?null:u})}render(){let t=!this._compileTask?.finished||!this._evaluateTask?.finished;return m`<div class=${k(P.base)}>${t?this._renderLoading():this._evaluateTask?.value?this._renderContent():null}</div>`}_renderContent(){let{values:t,fieldInfoMap:n}=this,i=this._evaluateTask?.value,a=i?.type;if(!a)return null;if(a==="text"){let o=J({values:t,fieldInfoMap:n??new Map,globalValues:t??{},layer:void 0,text:i.text});return m`<arcgis-feature-content .creator=${o} .graphic=${this.graphic}></arcgis-feature-content>`}else if(a==="media"){let{title:o,description:l,mediaInfos:r}=i;if(!r?.length)return null;let c={...t,...i.attributes};return m`<arcgis-feature-media .heading=${o??""} .values=${c} .formattedValues=${c} .description=${l??""} .mediaInfos=${r} .messages=${this.messages} .headingLevel=${this.headingLevel}></arcgis-feature-media>`}else if(a==="fields"){let{title:o,description:l,fieldInfos:r}=i;return r?.length?m`<arcgis-feature-fields .fieldInfos=${r} .heading=${o??""} .description=${l??""} .headingLevel=${this.headingLevel} .messages=${this.messages}></arcgis-feature-fields>`:null}return null}_renderLoading(){return m`<div class=${k(P.loadingSpinnerContainer)}><calcite-loader inline label></calcite-loader></div>`}};M("arcgis-feature-expression",O);return O},"core/reactiveUtils","popup/content/MediaContent","popup/content/FieldsContent","popup/content/TextContent","applications/Components/arcadeFeatureUtils",a,b)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import e from"./
|
|
3
|
+
v5.0.0-next.88 */
|
|
4
|
+
import e from"./33U56VQS.js";import{a as d}from"./EYHKPKKG.js";import b from"./EQMAMY5L.js";import a from"./SPMVGPBU.js";import{g as v}from"./EP4FNRB2.js";import"./UM5HLJ6Z.js";import"./ELEZAC3K.js";import{b as g}from"./GITNRBUR.js";import"./MYLRNHOI.js";import{I as r,J as l,L as n,O as h,a as s,b as i,s as c}from"./M7HAKBNG.js";import"./FHMZ7YBE.js";export default $arcgis.t(([w,,{a:m},p])=>{var f=s`.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);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)}calcite-button{width:var(--calcite-spacing-xxxl);height:var(--calcite-spacing-xxxl)}}:host{width:var(--calcite-spacing-xxxl);height:var(--calcite-spacing-xxxl)}`,x="home",u={base:x,button:"arcgis-button"},y=p(w),a=class extends r{constructor(){super(...arguments),this.messages=d(),this.viewModel=y(this),this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.goToOverride=this.viewModel.goToOverride,this.icon="home",this.state=this.viewModel.state,this.viewpoint=this.viewModel.viewpoint,this.arcgisGo=m(()=>this.viewModel,"go"),this.arcgisPropertyChange=v()("state"),this.arcgisReady=c()}static{this.properties={view:0,autoDestroyDisabled:5,goToOverride:0,icon:1,label:1,messageOverrides:0,position:3,referenceElement:1,state:3,viewpoint:0}}static{this.styles=f}async cancelGo(){this.viewModel.cancelGo()}async destroy(){await this.manager.destroy()}async go(){this.viewModel.go()}_go(){let{viewModel:e}=this;e.state==="going-home"?e.cancelGo():e.go()}render(){let{messages:e,icon:b}=this,t=this.viewModel?.state,o=t==="going-home";return i`<div class=${l(g(u.base,u.button))}><calcite-button .disabled=${t==="disabled"} .iconStart=${o?void 0:b??void 0} kind=neutral .label=${e.componentLabel} @click=${this._go} .scale=${o?"s":"m"} title=${(t==="going-home"?e.cancel:e.title)??n}>${o?i`<calcite-loader inline label></calcite-loader>`:null}</calcite-button></div>`}};h("arcgis-home",a);return a},"widgets/Home/HomeViewModel",a,b,e)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import a from"./
|
|
3
|
+
v5.0.0-next.88 */
|
|
4
|
+
import a from"./ZLTRCGZO.js";import{a as u}from"./I6DXWHS6.js";import"./MX6TFUVB.js";import{a as w}from"./6SBLQLAH.js";import{b as c}from"./GITNRBUR.js";import{I as L,J as t,K as v,L as y,O as C,a as k,b as l}from"./M7HAKBNG.js";import"./FHMZ7YBE.js";export default $arcgis.t(([f,{a:b,b:z,d:F,g:$,h:x}])=>{var I=k`.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)}.arcgis-legend--card__section{word-break:break-word;word-wrap:break-word;padding:var(--calcite-spacing-sm) var(--calcite-spacing-md);min-width:250px;max-width:500px;height:100%;height:-moz-available;height:-webkit-fill-available;height:fill-available;overflow:auto;font-size:var(--calcite-font-size-sm)}.arcgis-legend--card__carousel-title-container{margin-bottom:var(--calcite-spacing-sm)}.arcgis-legend--card__carousel-title{margin:0}.arcgis-legend--card__section-title{font-weight:var(--calcite-font-weight-normal)}.arcgis-legend--card__layer-caption{padding:var(--calcite-spacing-xs) 0;margin:0;font-weight:var(--calcite-font-weight-normal)}.arcgis-legend--card__imagery-layer-image--stretched{display:block;margin-bottom:-2px}.arcgis-legend--card__image-label{padding-right:var(--calcite-spacing-xs);padding-left:var(--calcite-spacing-xs)}.arcgis-legend--card__label-element{margin:.1em;padding:.5em 1em;min-width:2em;min-height:1em;text-align:center;display:flex;align-items:center;justify-content:center;flex:1}.arcgis-legend--card__layer-row{display:flex;align-items:center}.arcgis-legend--card__symbol{display:block;margin:auto}.arcgis-legend--card__pie-chart-ramp-preview{display:flex;justify-content:center}.arcgis-legend--card__relationship-container{display:flex;flex-direction:column}.arcgis-legend--card__relationship-container .arcgis-legend--card__layer-row{padding-bottom:.5em}.arcgis-legend--card__relationship-container .arcgis-legend--card__layer-row:last-child{padding-bottom:0}.arcgis-legend--card__container{display:flex;gap:var(--calcite-spacing-sm);flex-wrap:wrap}.arcgis-legend--card__background-styles-container{display:flex;flex-wrap:wrap}:host([stacked]) .arcgis-legend--card__container{display:table}:host([stacked]) .arcgis-legend--card__symbol-row{display:table-row;width:100%}:host([stacked]) .arcgis-legend--card__label-cell{display:table-cell;vertical-align:middle;padding:var(--calcite-spacing-xxs)}:host([stacked]) .arcgis-legend--card__symbol-cell{display:table-cell;vertical-align:middle;text-align:center;padding:var(--calcite-spacing-xxs)}:host([stacked]) .arcgis-legend--card__symbol-cell div{display:flex;align-items:center;justify-content:center}`,a={carouselTitleContainer:"arcgis-legend--card__carousel-title-container",carouselTitle:"arcgis-legend--card__carousel-title",sectionTitle:"arcgis-legend--card__section-title",imageryLayerStretchedImage:"arcgis-legend--card__imagery-layer-image--stretched",imageLabel:"arcgis-legend--card__image-label",layerCaption:"arcgis-legend--card__layer-caption",labelElement:"arcgis-legend--card__label-element",layerRow:"arcgis-legend--card__layer-row",labelCell:"arcgis-legend--card__label-cell",section:"arcgis-legend--card__section",symbol:"arcgis-legend--card__symbol",symbolRow:"arcgis-legend--card__symbol-row",symbolCell:"arcgis-legend--card__symbol-cell",pieChartRampPreview:"arcgis-legend--card__pie-chart-ramp-preview",relationshipContainer:"arcgis-legend--card__relationship-container",backgroundStylesContainer:"arcgis-legend--card__background-styles-container",container:"arcgis-legend--card__container"};function S(p){return p?p.r*.299+p.g*.587+p.b*.114>=127:void 0}var E=class extends L{constructor(){super(...arguments),this.stacked=!1,this.headingLevel=3}static{this.properties={cssEffectFilter:1,stacked:7,activeLayerInfo:0,headingLevel:9,layer:0,legendElement:0,messages:0}}static{this.styles=I}_getBackgroundStyles(e){let r=e.symbol,i=r.color,n=!!i?.a,s="outline"in r?r.outline:null,d=!!s?.color?.a,o=n&&i?new f([i.r,i.g,i.b,i.a*this.layer.opacity]):new f([255,255,255,0]),g=d&&s.color?new f([s.color.r,s.color.g,s.color.b,s.color.a*this.layer.opacity]):new f([255,255,255,0]),m=S(e.symbol.color)??!0,h=m?"black":"white",_=m?"rgba(255, 255, 255, .6)":"rgba(0, 0, 0, .6)";return{background:n?o.toCss(!0):"none",color:h,textShadow:`-1px -1px 0 ${_},
|
|
5
5
|
1px -1px 0 ${_},
|
|
6
6
|
-1px 1px 0 ${_},
|
|
7
7
|
1px 1px 0 ${_}`,border:d?`1px solid ${g.toCss(!0)}`:"none",filter:this.cssEffectFilter??""}}render(){let e=this._renderLegendElement(),r=z(this.legendElement,this.messages),i=this.stacked?l`<div class=${t(a.carouselTitleContainer)}>${u({class:c(a.carouselTitle,w.heading),level:this.headingLevel,children:this.activeLayerInfo.title})}${r?l`<p class=${t(a.layerCaption)}>${r}</p>`:null}</div>`:r?u({class:c(a.sectionTitle,w.heading),level:this.headingLevel,children:r}):null;return l`<section class=${t(a.section)} role=tabpanel tabindex=0>${i}${e}</section>`}_renderLegendElement(){switch(this.legendElement.type){case"symbol-table":return this._renderSymbolTable(this.legendElement);case"size-ramp":return l`<arcgis-legend-card-size-ramp .hasIndicators=${this.stacked} .legendElement=${this.legendElement} .messages=${this.messages} .opacity=${this.layer.opacity}></arcgis-legend-card-size-ramp>`;case"color-ramp":case"opacity-ramp":case"heatmap-ramp":case"stretch-ramp":return l`<arcgis-legend-card-color-ramp .cssEffectFilter=${this.cssEffectFilter} .legendElement=${this.legendElement} .messages=${this.messages} .opacity=${this.layer.opacity}></arcgis-legend-card-color-ramp>`;case"relationship-ramp":return l`<arcgis-legend-relationship-ramp .cssEffectFilter=${this.cssEffectFilter} .legendElement=${this.legendElement} .opacity=${this.layer.opacity} .messages=${this.messages}></arcgis-legend-relationship-ramp>`;case"pie-chart-ramp":{let{preview:e}=this.legendElement;return x(e,this.messages.previewPieChartAriaLabel),l`<div class=${t(a.pieChartRampPreview)}>${e}</div>`}case"univariate-above-and-below-ramp":return l`<arcgis-legend-card-univariate-above-and-below-ramp .cssEffectFilter=${this.cssEffectFilter} .legendElement=${this.legendElement} .messages=${this.messages} .opacity=${this.layer.opacity}></arcgis-legend-card-univariate-above-and-below-ramp>`;case"univariate-color-size-ramp":return l`<arcgis-legend-card-univariate-color-size-ramp .cssEffectFilter=${this.cssEffectFilter} .legendElement=${this.legendElement} .messages=${this.messages} .opacity=${this.layer.opacity}></arcgis-legend-card-univariate-color-size-ramp>`;default:return null}}_renderSymbolTable(e){let r=e.infos.map(s=>this._renderElementInfo(s,e.legendType)).filter(Boolean);if(!r.length)return null;let i=e.infos.some(s=>"symbol"in s&&s.symbol?.type.includes("simple-fill")),n=this.activeLayerInfo.legendElements.some(({type:s})=>s==="relationship-ramp")?a.relationshipContainer:i?a.backgroundStylesContainer:a.container;return l`<div class=${t(n)}>${r}</div>`}_renderElementInfo(e,r){let{layer:i}=this,n="label"in e?e.label:null;if("type"in e&&e.type)return l`<arcgis-legend-card-element .activeLayerInfo=${this.activeLayerInfo} .cssEffectFilter=${this.cssEffectFilter} .stacked=${this.stacked} .headingLevel=${this.headingLevel} .layer=${i} .legendElement=${e} .messages=${this.messages}></arcgis-legend-card-element>`;if(!("preview"in e&&e.preview)&&!("src"in e&&e.src))return null;let s=F(i,r),d=b(this.messages,n,!1)||"";if("src"in e&&e.src){let o={[a.symbolCell]:this.stacked};return l`<div class=${t(c(a.layerRow,{[a.symbolRow]:this.stacked}))}><div class=${t(c(o))}>${this._renderImage(e,i,s)}</div><div class=${t(c(a.imageLabel,{[a.labelCell]:this.stacked}))}>${d}</div></div>`}if("symbol"in e&&e.preview){if(!e.symbol?.type.includes("simple-fill")){if(!e.label)return l`<div>${e.preview}</div>`;let o={[a.symbolCell]:this.stacked},{preview:g}=e,m="previewAriaLabel"in e?e.previewAriaLabel:null,h="label"in e?b(this.messages,e.label,!1):null;return x(g,$(this.messages,m||h)),l`<div class=${t(c(a.layerRow,{[a.symbolRow]:this.stacked}))}><div class=${t(c(o))}>${g}</div><div class=${t(c(a.imageLabel,{[a.labelCell]:this.stacked}))}>${d}</div></div>`}return l`<div class=${t(a.layerRow)}><div class=${t(a.labelElement)} style=${v(this._getBackgroundStyles(e))}>${d}</div></div>`}return null}_renderImage(e,r,i){let{previewAriaLabel:n,src:s,opacity:d}=e,o=b(this.messages,e.label,!1),g={[a.imageryLayerStretchedImage]:i,[a.symbol]:!i},m={opacity:`${d??r.opacity}`},h=$(this.messages,n||o);return l`<img alt=${h??y} .ariaLabel=${h} class=${t(c(g))} height=${e.height??void 0??y} src=${s??y} style=${v(m)} width=${e.width??void 0??y}>`}};C("arcgis-legend-card-element",E);return E},"Color",a)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import b from"./
|
|
3
|
+
v5.0.0-next.88 */
|
|
4
|
+
import b from"./SUYHQ65U.js";import"./EP4FNRB2.js";import"./UM5HLJ6Z.js";import"./GITNRBUR.js";import{I as n,K as l,O as c,a,b as r}from"./M7HAKBNG.js";import"./FHMZ7YBE.js";export default $arcgis.t(([p])=>{var h=a`:host{display:contents}calcite-loader{position:absolute}`,e=class extends n{constructor(){super(...arguments),this.autoDestroyDisabled=!1,this.trackLocation=!1,this.screenLocation=p(this)}static{this.properties={autoDestroyDisabled:5,trackLocation:5,screenLocation:32,label:1,location:0,view:0}}static{this.styles=h}async destroy(){await this.manager.destroy()}_getPositionStyles(){let{screenLocation:t,view:i}=this;if(i==null||t==null)return{};let{padding:o}=i,s=16;return{"--calcite-loader-size":`${s}px`,left:`${t.x-(o.left??0)-s/2}px`,top:`${t.y-(o.top??0)-s/2}px`}}render(){return this.screenLocation?r`<calcite-loader .label=${this.label??""} inline style=${l(this._getPositionStyles())}></calcite-loader>`:null}};c("arcgis-spinner",e);return e},b)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import"./
|
|
3
|
+
v5.0.0-next.88 */
|
|
4
|
+
import"./FHMZ7YBE.js";var a={_decimalSeparator:",",_thousandSeparator:"\xA0",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03BC",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date_millisecond:"mm:ss SSS",_date_millisecond_full:"HH:mm:ss SSS",_date_second:"HH:mm:ss",_date_second_full:"HH:mm:ss",_date_minute:"HH:mm",_date_minute_full:"HH:mm - MMM dd, yyyy",_date_hour:"HH:mm",_date_hour_short:"HH",_date_hour_full:"HH:mm - MMM dd, yyyy",_date_day:"MMM dd",_date_day_full:"MMM dd, yyyy",_date_week:"ww",_date_week_full:"MMM dd, yyyy",_date_month:"MMM",_date_month_full:"MMM, yyyy",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"n.e.",_era_bc:"p.n.e.",A:"a",P:"p",AM:"AM",PM:"PM","A.M.":"AM","P.M.":"PM",January:"stycznia",February:"lutego",March:"marca",April:"kwietnia",May:"maja",June:"czerwca",July:"lipca",August:"sierpnia",September:"wrze\u015Bnia",October:"pa\u017Adziernika",November:"listopada",December:"grudnia",Jan:"sty",Feb:"lut",Mar:"mar",Apr:"kwi","May(short)":"maj",Jun:"cze",Jul:"lip",Aug:"sie",Sep:"wrz",Oct:"pa\u017A",Nov:"lis",Dec:"gru",Sunday:"niedziela",Monday:"poniedzia\u0142ek",Tuesday:"wtorek",Wednesday:"\u015Broda",Thursday:"czwartek",Friday:"pi\u0105tek",Saturday:"sobota",Sun:"niedz.",Mon:"pon.",Tue:"wt.",Wed:"\u015Br.",Thu:"czw.",Fri:"pt.",Sat:"sob.",_dateOrd:function(_){let e="th";if(_<11||_>13)switch(_%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd";break}return e},"Zoom Out":"Zmiana skali",Play:"Odtwarzanie",Stop:"Zatrzymaj",Legend:"Legenda","Press ENTER to toggle":"",Loading:"Wczytywanie",Home:"Strona g\u0142\xF3wna",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"Drukuj",Image:"Obraz",Data:"Dane",Print:"Drukuj","Press ENTER to open":"","Press ENTER to print.":"","Press ENTER to export as %1.":"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"",HTML:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"Od %1 do %2","From %1":"Od %1","To %1":"Do %1","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:"",Confirm:""};export{a as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import b from"./
|
|
3
|
+
v5.0.0-next.88 */
|
|
4
|
+
import b from"./FJHXWU24.js";import a from"./ZLTRCGZO.js";import{I as u,J as i,K as e,O as $,a as w,b as t}from"./M7HAKBNG.js";import"./FHMZ7YBE.js";export default $arcgis.t(([,{a:x,b:p,d:g,e:L,g:m,h:c,i:A}])=>{var P=w`.arcgis-legend__layer-body{margin-left:var(--calcite-spacing-sm);display:table}:dir(rtl) .arcgis-legend__layer-body{margin-right:var(--calcite-spacing-sm);margin-left:0;overflow:auto}.arcgis-legend__layer-row{display:table-row}.arcgis-legend__layer-cell{display:table-cell;padding:var(--calcite-spacing-xxs) 0;min-width:100px;vertical-align:middle;word-break:break-word}.arcgis-legend__layer-cell--info{padding-right:var(--calcite-spacing-sm);padding-left:var(--calcite-spacing-sm);max-width:250px;word-break:normal;word-wrap:normal;font-size:var(--calcite-font-size-sm)}.arcgis-legend__symbol{display:flex;justify-content:center}.arcgis-legend__ramps{margin-left:var(--calcite-spacing-md)}:dir(rtl) .arcgis-legend__ramps{margin-right:var(--calcite-spacing-md);margin-left:auto}.arcgis-legend__ramp-labels{display:flex;flex-flow:column nowrap;justify-content:space-between}.arcgis-legend__ramp-label{position:relative;padding:0 var(--calcite-spacing-sm);line-height:1em;white-space:nowrap;font-size:var(--calcite-font-size-sm)}.arcgis-legend__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:""}.arcgis-legend__ramp-label:first-child{margin-top:calc(var(--calcite-font-size-sm) / 3 * -1)}.arcgis-legend__ramp-label:last-child{bottom:calc(var(--calcite-font-size-sm) * .25 * -1)}:dir(rtl) .arcgis-legend__ramp-label:before{right:auto;left:100%;border-width:3px 0 3px 4px;border-color:transparent transparent transparent var(--calcite-color-text-1)}.arcgis-univariate-above-and-below-ramp__label{position:relative;margin-left:7px;line-height:1em;white-space:nowrap;font-size:var(--calcite-font-size-sm)}.arcgis-univariate-above-and-below-ramp__label:before{display:block;position:absolute;top:.45em;left:-19px;border-width:1px 0 0;border-style:solid;width:14px;height:0;content:""}.arcgis-univariate-above-and-below-ramp__label:first-child{top:calc(var(--calcite-font-size-sm) / 2.2 * -1)}.arcgis-univariate-above-and-below-ramp__label:last-child{bottom:calc(var(--calcite-font-size-sm) / 2.2 * -1)}:dir(rtl) .arcgis-univariate-above-and-below-ramp__label{margin-right:var(--calcite-spacing-sm);margin-left:auto}:dir(rtl) .arcgis-univariate-above-and-below-ramp__label:before{right:-19px;left:auto}.arcgis-univariate-above-and-below-ramp__symbol{display:flex;align-items:center;justify-content:center}`,a={layerBody:"arcgis-legend__layer-body",layerRow:"arcgis-legend__layer-row",layerInfo:"arcgis-legend__layer-cell arcgis-legend__layer-cell--info",symbol:"arcgis-legend__symbol",rampContainer:"arcgis-legend__ramps",rampLabelsContainer:"arcgis-legend__ramp-labels",rampLabel:"arcgis-legend__ramp-label",univariateAboveAndBelowLabel:"arcgis-univariate-above-and-below-ramp__label"},v=class extends u{constructor(){super(...arguments),this.legendElement=null,this.opacity=1}static{this.properties={cssEffectFilter:1,legendElement:0,opacity:9,messages:0}}static{this.styles=P}render(){let{legendElement:z,opacity:d}=this,{sizeRampElement:s,colorRampElement:b}=L(z,this.messages,d);if(!s)return null;let f=this.messages.previewColorRampAriaLabel,_=g(s,"above",!0),y=g(s,"below",!0),h=12,n=p(b,{width:h,height:_,rampAlignment:"vertical",opacity:d,type:"above",cssEffectFilter:this.cssEffectFilter,ariaLabel:f}),E=p(b,{width:h,height:y,rampAlignment:"vertical",opacity:d,type:"below",cssEffectFilter:this.cssEffectFilter,ariaLabel:f}),C=x(s),o=s.infos.map(l=>l.label),R=o.map((l,r)=>r===0?t`<div class=${i(l?n?a.univariateAboveAndBelowLabel:a.rampLabel:void 0)}>${l}</div>`:r===2?t`<div></div>`:null),k=o.length-1,B=Math.floor(o.length/2),F=o.map((l,r)=>r===B||r===k?t`<div class=${i(l?n?a.univariateAboveAndBelowLabel:a.rampLabel:void 0)}>${l}</div>`:null),j={display:"table-cell",verticalAlign:"middle"},M={marginTop:`${C}px`},I={height:`${_}px`},U={height:`${y}px`};return t`<div style=${e(A)}><div class=${i(a.layerBody)}>${s.infos.map((l,r)=>t`<div class=${i(a.layerRow)}><div class=${i(a.symbol)} style=${e(j)}>${l.preview}</div>${!n&&r%2===0?t`<div class=${i(a.layerInfo)}>${o[r]}</div>`:null}</div>`)}</div>${n?t`<div style=${e(M)}><div style=${e(m)}><div style=${e(c)}><div class=${i(a.rampContainer)}>${n}</div></div><div style=${e(c)}><div class=${i(a.rampLabelsContainer)} style=${e(I)}>${R}</div></div></div><div style=${e(m)}><div style=${e(c)}><div class=${i(a.rampContainer)}>${E}</div></div><div style=${e(c)}><div class=${i(a.rampLabelsContainer)} style=${e(U)}>${F}</div></div></div></div>`:null}</div>`}};$("arcgis-legend-classic-univariate-above-and-below-ramp",v);return v},a,b)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import i from"./
|
|
3
|
+
v5.0.0-next.88 */
|
|
4
|
+
import i from"./K4CTFCER.js";import{a as c,c as b}from"./QTW6TNVM.js";import{a as f}from"./F3UPR45E.js";import e from"./EQMAMY5L.js";import"./EP4FNRB2.js";import"./UM5HLJ6Z.js";import{c as d,d as g,e as u,f as y}from"./ELEZAC3K.js";import"./GITNRBUR.js";import"./MYLRNHOI.js";import{G as n,H as h,I as l,J as o,O as p,b as a,s as r}from"./M7HAKBNG.js";import"./FHMZ7YBE.js";export default $arcgis.t(([A,{watch:s},P,D,R,{a:t,b:w,f:v},{a:V,b:_,c:C}])=>{var L=w(R,{}),I=w(D,{}),m=class extends l{constructor(){super(),this._containerRef=n(),this._mapRef=n(),this._uiController=new V(this),this._cameraProperties={},this.arcgisLoadError=_(this),this.arcgisViewReadyError=C(this),this._map=L(this),this.view=I(this),this.allLayerViews=this.view.allLayerViews,this.alphaCompositingEnabled=this.view.alphaCompositingEnabled,this.analyses=this.view.analyses,this.animationsDisabled=this.view.animationsEnabled,this.attributionMode=this.view.attributionMode,this.autoDestroyDisabled=!1,this.basemap=this._map.basemap,this.basemapView=this.view.basemapView,this.clippingArea=this.view.clippingArea,this.constraints=this.view.constraints,this.displayFilterDisabled=this.view.displayFilterEnabled,this.environment=this.view.environment,this.fatalError=this.view.fatalError,this.floors=this.view.floors,this.graphics=this.view.graphics,this.ground=this._map.ground,this.groundView=this.view.groundView,this.highlights=this.view.highlights,this.highlightOptions=this.view.highlightOptions,this.layerViews=this.view.layerViews,this.magnifier=this.view.magnifier,this.map=this.view.map,this.navigation=this.view.navigation,this.padding=this.view.padding,this.popup=this.view.popup,this.popupDisabled=this.view.popupEnabled,this.qualityProfile=this.view.qualityProfile,this.ready=this.view.ready,this.spatialReference=this.view.spatialReference,this.suspended=this.view.suspended,this.theme=this.view.theme,this.timeExtent=this.view.timeExtent,this.updating=this.view.updating,this.viewingMode=this.view.viewingMode,this.visibleArea=this.view.visibleArea,this.arcgisViewAnalysisViewCreate=t(()=>this.view,"analysis-view-create"),this.arcgisViewAnalysisViewCreateError=t(()=>this.view,"analysis-view-create-error"),this.arcgisViewAnalysisViewDestroy=t(()=>this.view,"analysis-view-destroy"),this.arcgisViewChange=r(),this.arcgisViewClick=t(()=>this.view,"click"),this.arcgisViewDoubleClick=t(()=>this.view,"double-click"),this.arcgisViewDrag=t(()=>this.view,"drag"),this.arcgisViewHold=t(()=>this.view,"hold"),this.arcgisViewImmediateClick=t(()=>this.view,"immediate-click"),this.arcgisViewImmediateDoubleClick=t(()=>this.view,"immediate-double-click"),this.arcgisViewKeyDown=t(()=>this.view,"key-down"),this.arcgisViewKeyUp=t(()=>this.view,"key-up"),this.arcgisViewLayerviewCreate=t(()=>this.view,"layerview-create"),this.arcgisViewLayerviewCreateError=t(()=>this.view,"layerview-create-error"),this.arcgisViewLayerviewDestroy=t(()=>this.view,"layerview-destroy"),this.arcgisViewMouseWheel=t(()=>this.view,"mouse-wheel"),this.arcgisViewPointerDown=t(()=>this.view,"pointer-down"),this.arcgisViewPointerEnter=t(()=>this.view,"pointer-enter"),this.arcgisViewPointerLeave=t(()=>this.view,"pointer-leave"),this.arcgisViewPointerMove=t(()=>this.view,"pointer-move"),this.arcgisViewPointerUp=t(()=>this.view,"pointer-up"),this.arcgisViewReadyChange=r(),this.view.ui={components:[]}}static{this.properties={_map:16,aria:0,view:32,allLayerViews:0,alphaCompositingEnabled:5,analyses:0,animationsDisabled:5,attributionItems:32,attributionMode:1,autoDestroyDisabled:5,basemap:1,basemapView:0,camera:0,cameraFov:9,cameraHeading:9,cameraPosition:1,cameraTilt:9,center:1,clippingArea:0,constraints:0,displayFilterDisabled:5,environment:0,extent:0,fatalError:0,floors:0,focusAreas:0,gamepad:32,graphics:0,ground:1,groundView:0,hideAttribution:5,highlights:0,highlightOptions:0,interacting:32,itemId:3,layerViews:0,magnifier:0,map:0,navigating:32,navigation:0,padding:0,performanceInfo:32,popup:0,popupDisabled:5,qualityProfile:1,ready:4,resolution:32,scale:9,spatialReference:0,stationary:32,suspended:7,theme:0,timeExtent:0,updating:4,viewingMode:1,viewpoint:0,visibleArea:0,zoom:9,loadErrorSources:0}}static{this.styles=[f,b]}get aria(){return this.view?.aria??null}set aria(i){this.view&&(this.view.aria=i)}get attributionItems(){return this.view?.attributionItems??[]}get camera(){return this.view.camera}set camera(i){d(this.camera,i)||(this.view.camera=i)}get cameraFov(){let{view:i}=this;return i.ready?this.view.camera?.fov:this._cameraProperties.fov}set cameraFov(i){i!=null&&this._mutateCamera(e=>{e.fov=i})}get cameraHeading(){let{view:i}=this;return i.ready?i.camera?.heading:this._cameraProperties.heading}set cameraHeading(i){i!=null&&this._mutateCamera(e=>{e.heading=i})}get cameraPosition(){let{view:i}=this;if(i.ready)return i.camera?.position;let{position:e}=this._cameraProperties;return e?new P(e):void 0}set cameraPosition(i){let e=y(this.view.camera?.position,i);e&&this._mutateCamera(E=>{E.position=e})}get cameraTilt(){let{view:i}=this;return i.ready?i.camera?.tilt:this._cameraProperties.tilt}set cameraTilt(i){i!=null&&this._mutateCamera(e=>{e.tilt=i})}get center(){return this.view.center}set center(i){let e=u(i,this.view);e&&(this.view.center=e)}get extent(){return this.view.extent}set extent(i){i&&!this.extent.equals(i)&&(this.view.extent=i)}get focusAreas(){return this.map?this.map?.focusAreas:{areas:[],style:"bright"}}set focusAreas(i){this.map&&(this.map.focusAreas=i)}get gamepad(){return this.view.input.gamepad}get hideAttribution(){return!this.view.attributionVisible}set hideAttribution(i){this.view.attributionVisible=!i}get interacting(){return this.view.interacting}get itemId(){return this._map.portalItem?.id}set itemId(i){v(this._map,this),this._map.portalItem={id:i},this.view.map=this._map}get navigating(){return this.view.navigating}get performanceInfo(){return this.view.performanceInfo}get resolution(){return this.view.resolution}get scale(){return this.view.scale}set scale(i){this.view.scale=i}get stationary(){return this.view.stationary}get viewpoint(){return this.view.viewpoint}set viewpoint(i){g(this.viewpoint,i)&&(this.view.viewpoint=i)}get zoom(){return this.view.zoom}set zoom(i){this.view.zoom=i}async addLayer(i,e){this.map?.add(i,e)}async addLayers(i,e){this.map?.addMany(i,e)}async addTable(i){this.map?.tables.add(i)}async addTables(i,e){this.map?.tables.addMany(i,e)}async closePopup(){this._uiController.closePopup()}async destroy(){await this.manager.destroy()}async goTo(i,e){return await this.view.goTo(i,e)}async hitTest(i,e){return await this.view.hitTest(i,e)}async openPopup(i){this._uiController.openPopup(i)}async takeScreenshot(i){return await this.view.takeScreenshot(i)}toMap(i,e){return this.view.toMap(i,e)}toScreen(i){return this.view.toScreen(i)}async tryFatalErrorRecovery(){this.view.tryFatalErrorRecovery()}async viewOnReady(i,e){return await this.componentOnReady(),await this.view.whenReady().then(()=>i?.()).catch(e)}async whenAnalysisView(i){return await this.view.whenAnalysisView(i)}async whenLayerView(i){return await this.view.whenLayerView(i)}loaded(){let i=this;i.el.childElem=this._mapRef.value,this.view.container??=i.el.childElem,this.map||=this._map,this.manager.onLifecycle(()=>[s(()=>this.map,e=>{e&&(this._map=e)},{initial:!0,sync:!0}),s(()=>this.view.stationary,()=>this.arcgisViewChange.emit(),{initial:!0}),s(()=>this.view.ready,e=>{e&&(this.camera=this.view.camera.clone().set(this._cameraProperties),this._cameraProperties={}),this.arcgisViewReadyChange.emit()},{initial:this.view.ready}),s(()=>this.view.attributionHeight,e=>{this._uiController.handleAttributionHeightChange(e)})])}_mutateCamera(i){if(!this.view.ready){i(this._cameraProperties);return}let e=this.view.camera?.clone()??new A;i(e),this.camera=e}renderMain(){return a`<div class=${o(c.base)} ${h(this._mapRef)}></div>`}render(){return a`<section class=${o(c.containerUI)} ${h(this._containerRef)}>${this._uiController.render()}</section>${this.renderMain()}`}};p("arcgis-scene",m);return m},"Camera","core/reactiveUtils","geometry/Point","views/SceneView","WebScene",e,i)
|