@arcgis/map-components 5.0.0-next.91 → 5.0.0-next.92
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/{RUKJ4DFS.js → 24FZLFOK.js} +2 -2
- package/dist/cdn/{VPUD34CZ.js → 25IZDWSN.js} +2 -2
- package/dist/cdn/{S2ALDXOC.js → 25X64BXA.js} +2 -2
- package/dist/cdn/{HLY2LX7U.js → 2DK7SRP6.js} +2 -2
- package/dist/cdn/{J6Q5MRI7.js → 2E7TZRRV.js} +2 -2
- package/dist/cdn/{TKLFLDXV.js → 2LRNI36V.js} +2 -2
- package/dist/cdn/{7YCHDWAG.js → 2OV6QYUX.js} +2 -2
- package/dist/cdn/{QKRVR6Y4.js → 2RPF4M2F.js} +2 -2
- package/dist/cdn/{OBWV5SDX.js → 2WTZVJD5.js} +2 -2
- package/dist/cdn/{O4GE5B7N.js → 2XZDHGFY.js} +2 -2
- package/dist/cdn/{UBRXGCEA.js → 3RKITOWL.js} +2 -2
- package/dist/cdn/{TZRRRPXW.js → 3V72WFKG.js} +2 -2
- package/dist/cdn/{ZARBNZSI.js → 47KFNKS5.js} +2 -2
- package/dist/cdn/{BNYMZR4K.js → 4FUAC2GT.js} +2 -2
- package/dist/cdn/{LCKWUZW6.js → 4K3ZXFR5.js} +2 -2
- package/dist/cdn/{TEGQM2RE.js → 4WWVGZYW.js} +2 -2
- package/dist/cdn/{R6DFAVBI.js → 4Y57U7FU.js} +2 -2
- package/dist/cdn/55HXIMBO.js +4 -0
- package/dist/cdn/{KCMNURTM.js → 5GVY3VJX.js} +2 -2
- package/dist/cdn/{QRG7NKLV.js → 5NVMXBFF.js} +2 -2
- package/dist/cdn/{GCPNUMA4.js → 5PWGWHIR.js} +2 -2
- package/dist/cdn/{Q5PE24UY.js → 5RRFOQBO.js} +2 -2
- package/dist/cdn/{S2QURR2A.js → 5XDWNZXA.js} +1 -1
- package/dist/cdn/{TBP4FOF4.js → 5XGLIHAN.js} +2 -2
- package/dist/cdn/{L24BTNVL.js → 5ZNR3CE3.js} +2 -2
- package/dist/cdn/{IUD3QJYC.js → 665BJZWA.js} +2 -2
- package/dist/cdn/{HVI4HJHE.js → 67LSQGRU.js} +2 -2
- package/dist/cdn/{MG5SAVQE.js → 6PESQ2ZC.js} +2 -2
- package/dist/cdn/{ILGHVUYY.js → 6POLNT3T.js} +2 -2
- package/dist/cdn/{WVFZX26G.js → 6RPQCOWI.js} +1 -1
- package/dist/cdn/{53KK4WBP.js → 6XSSLDAH.js} +2 -2
- package/dist/cdn/{SIKPDBZG.js → 724N2M2P.js} +2 -2
- package/dist/cdn/74QPIFS2.js +4 -0
- package/dist/cdn/7A3IV2NK.js +4 -0
- package/dist/cdn/{R4X2JOMK.js → 7FCONDWZ.js} +2 -2
- package/dist/cdn/{KXWMHEUU.js → 7S7OOY2G.js} +2 -2
- package/dist/cdn/{CWMPJEKA.js → 7TABBIEO.js} +2 -2
- package/dist/cdn/{F4HPN42L.js → A33MSS2I.js} +2 -2
- package/dist/cdn/{QIIKVQJZ.js → A447YPEL.js} +2 -2
- package/dist/cdn/{SW5JVGGO.js → A7QBL3A2.js} +2 -2
- package/dist/cdn/{KQITRKYV.js → AOG3QITX.js} +2 -2
- package/dist/cdn/ARVZDHWN.js +4 -0
- package/dist/cdn/{AMZEOKDR.js → AUNPO5WZ.js} +2 -2
- package/dist/cdn/B5Y47WQN.js +4 -0
- package/dist/cdn/{EIS5AMJG.js → BGPK3K43.js} +2 -2
- package/dist/cdn/{J62SKED4.js → BH6X2ZRD.js} +2 -2
- package/dist/cdn/{DCXTXB7R.js → BPYMQST7.js} +2 -2
- package/dist/cdn/BQFCW32I.js +4 -0
- package/dist/cdn/{TCVBYSLJ.js → BQNWJURN.js} +2 -2
- package/dist/cdn/{CT57DBRY.js → CFAZ3H3S.js} +2 -2
- package/dist/cdn/{WG4DXJ4T.js → CFIV5F2K.js} +1 -1
- package/dist/cdn/{SNKGZTEH.js → CFQNKQLP.js} +2 -2
- package/dist/cdn/{ZMVIVW5N.js → CITIZAZI.js} +2 -2
- package/dist/cdn/{GFFMXW3J.js → CMXMA5IM.js} +2 -2
- package/dist/cdn/{GGAK5PXP.js → CNKQ7MZX.js} +2 -2
- package/dist/cdn/{DQBRIL3M.js → COF2YZPH.js} +2 -2
- package/dist/cdn/{6HYJO5OG.js → COVHNV3T.js} +2 -2
- package/dist/cdn/{RK2QPRRK.js → CTSLSL6J.js} +2 -2
- package/dist/cdn/{V4YWEUA2.js → CVOYRKZS.js} +2 -2
- package/dist/cdn/{FTFQKFO7.js → D4FAYT3J.js} +2 -2
- package/dist/cdn/{N3BAMOML.js → D7OM7PCI.js} +1 -1
- package/dist/cdn/{HMDB77XX.js → DDVIT3TT.js} +2 -2
- package/dist/cdn/{DWDF4NAR.js → DEBK2ZK4.js} +1 -1
- package/dist/cdn/{7S5ZZYU5.js → DJMJ44ZT.js} +1 -1
- package/dist/cdn/{HTAUNEEY.js → DT2WRSQY.js} +2 -2
- package/dist/cdn/{QJTGBD6X.js → DYQ5UU4K.js} +2 -2
- package/dist/cdn/{KLMPU2PE.js → DYUQ33TG.js} +2 -2
- package/dist/cdn/{4C6RF2QY.js → E5ADEGIT.js} +2 -2
- package/dist/cdn/{V4M2VHJ7.js → EBNKZMCI.js} +2 -2
- package/dist/cdn/{4WSQLHYR.js → ECBC3KB6.js} +2 -2
- package/dist/cdn/{YFRK5OD4.js → EDYL7HPP.js} +2 -2
- package/dist/cdn/{6WIN4KZX.js → EEG3ZTH7.js} +2 -2
- package/dist/cdn/EFHSMHAF.js +4 -0
- package/dist/cdn/{CFF2GEPZ.js → EG242PP3.js} +2 -2
- package/dist/cdn/{JDGRNN6T.js → EMP5JE4T.js} +2 -2
- package/dist/cdn/{BS73JHFW.js → EUZIMXC5.js} +2 -2
- package/dist/cdn/{KESCDVE4.js → EXT3ZY7P.js} +2 -2
- package/dist/cdn/{CXMUDHE2.js → F6EPH7E3.js} +2 -2
- package/dist/cdn/{6DXSMQGD.js → FEFDKT3G.js} +2 -2
- package/dist/cdn/{2MXOM52G.js → FHR2AZGF.js} +2 -2
- package/dist/cdn/{NUM4I2XN.js → FQONR5NB.js} +2 -2
- package/dist/cdn/{RGFC2BOI.js → FYIUMYGR.js} +2 -2
- package/dist/cdn/{VS36V4IF.js → G2PXX25P.js} +2 -2
- package/dist/cdn/{KFWSPWIO.js → G46MJ3MY.js} +2 -2
- package/dist/cdn/GEPPAFBR.js +4 -0
- package/dist/cdn/{CSVOFHDL.js → GKAZ2TIK.js} +2 -2
- package/dist/cdn/{JW3W2BCF.js → GLSWPO6R.js} +2 -2
- package/dist/cdn/{DFRT6XXV.js → GNVA4UPJ.js} +2 -2
- package/dist/cdn/{SLC4YGY2.js → GPQMTS6R.js} +2 -2
- package/dist/cdn/{RPJBJSJJ.js → GXO3FWW2.js} +2 -2
- package/dist/cdn/{ZSGBT2YM.js → H4UC7K4E.js} +2 -2
- package/dist/cdn/{72USJ2W5.js → H4W6QKJU.js} +2 -2
- package/dist/cdn/{V6P4B3WO.js → H7ZXWNKO.js} +2 -2
- package/dist/cdn/{LDFYBTG7.js → HIDXWWXK.js} +2 -2
- package/dist/cdn/{LQ2GUHKY.js → HIQFUQOV.js} +2 -2
- package/dist/cdn/{EJVLZACM.js → HJAHZKHB.js} +2 -2
- package/dist/cdn/{IZ3GKZZA.js → HLEWL2DQ.js} +2 -2
- package/dist/cdn/{5QC4FGZU.js → HMQOM3V5.js} +2 -2
- package/dist/cdn/{ZAWY2BH6.js → HNS4AQVJ.js} +2 -2
- package/dist/cdn/{NALRCLE3.js → HRISCZE4.js} +2 -2
- package/dist/cdn/{DLAHXKSD.js → HZDBJ2JH.js} +2 -2
- package/dist/cdn/{ZFYMVQF2.js → HZOCJITH.js} +1 -1
- package/dist/cdn/{TAPETWFK.js → IBN52EOC.js} +2 -2
- package/dist/cdn/{KGJKY5MO.js → IDO6JK4M.js} +2 -2
- package/dist/cdn/{EHQQEL2S.js → IIIFNQ7F.js} +2 -2
- package/dist/cdn/{RBDFESOB.js → IR2CG6SQ.js} +2 -2
- package/dist/cdn/{UICEULDX.js → IYJ77TML.js} +2 -2
- package/dist/cdn/{U7LVYYBG.js → IZ6QELCQ.js} +2 -2
- package/dist/cdn/{KQWBRXMA.js → J37NXPTB.js} +2 -2
- package/dist/cdn/{TQMLSC2M.js → JE2SAKAD.js} +2 -2
- package/dist/cdn/{BG3DVYGP.js → JE33CPCE.js} +2 -2
- package/dist/cdn/{U35XJALI.js → JHMIXJME.js} +2 -2
- package/dist/cdn/{6OQ2QUJV.js → JISIG2WA.js} +2 -2
- package/dist/cdn/{55KFO5CX.js → JJ2BMPCB.js} +2 -2
- package/dist/cdn/{VXEPNA4U.js → JJMEELHM.js} +2 -2
- package/dist/cdn/{7S6SFLC5.js → JLVTHJBF.js} +2 -2
- package/dist/cdn/{N2YRIWOV.js → JTSZIJR7.js} +2 -2
- package/dist/cdn/{Y2RGYX3T.js → K2KINYI4.js} +2 -2
- package/dist/cdn/{6BKQVMG2.js → K5XSAE2D.js} +2 -2
- package/dist/cdn/{RDHECM5U.js → KKQAM63L.js} +2 -2
- package/dist/cdn/{KOSWM4OY.js → KP4CU4J3.js} +2 -2
- package/dist/cdn/KR6GQLOX.js +4 -0
- package/dist/cdn/{OETKUDN7.js → KSTBGZPT.js} +2 -2
- package/dist/cdn/{Y2U6LLTH.js → KSTTZXSV.js} +2 -2
- package/dist/cdn/{CVPOVGAH.js → L57LMROR.js} +2 -2
- package/dist/cdn/{ASZXOZIM.js → LBUL7H3K.js} +2 -2
- package/dist/cdn/{SKELVPOX.js → LCA2TYEZ.js} +2 -2
- package/dist/cdn/{WVXX3CEJ.js → LIL24PIN.js} +2 -2
- package/dist/cdn/{UVNKYQA2.js → LKFOF3K7.js} +2 -2
- package/dist/cdn/{IQZISAAD.js → LQQR3AQF.js} +2 -2
- package/dist/cdn/{NGO3EPZO.js → LWJVEFQ5.js} +2 -2
- package/dist/cdn/{CPIHPBMX.js → LWTHPR7G.js} +2 -2
- package/dist/cdn/{VAIV5W6J.js → MCLOWNAU.js} +2 -2
- package/dist/cdn/{7GJ4XR5C.js → MEJIVYKM.js} +2 -2
- package/dist/cdn/{YBFSKJWO.js → MJSLXMLN.js} +2 -2
- package/dist/cdn/MLS3ZO7M.js +4 -0
- package/dist/cdn/{XKZFAZSK.js → MLWJILN6.js} +2 -2
- package/dist/cdn/{BWFY2GNX.js → MMOSYXXD.js} +2 -2
- package/dist/cdn/{OZZ2C7NU.js → MXH7C6IM.js} +1 -1
- package/dist/cdn/{IM3N4UBA.js → MXYKKHXU.js} +2 -2
- package/dist/cdn/{CGQPEAK3.js → NEZIL7TY.js} +2 -2
- package/dist/cdn/{C6JWR527.js → NJTACGZS.js} +2 -2
- package/dist/cdn/{YOMXSFFA.js → NNQHEALB.js} +2 -2
- package/dist/cdn/{DIVB3TZ2.js → NQC5GIKN.js} +2 -2
- package/dist/cdn/{OYGGYFM4.js → NVFGMSZH.js} +2 -2
- package/dist/cdn/{Y75VOSOY.js → OJEB6IPM.js} +1 -1
- package/dist/cdn/{54MQDNAV.js → OY2FNXHE.js} +2 -2
- package/dist/cdn/{SSK2N7WW.js → P3SINDT4.js} +2 -2
- package/dist/cdn/{X7GEX3I2.js → P7LX2OK4.js} +2 -2
- package/dist/cdn/{RBLWRHGF.js → PGDEEEHH.js} +2 -2
- package/dist/cdn/{MKGWOZ5O.js → PZIMMOZN.js} +2 -2
- package/dist/cdn/{GNXABHKT.js → Q5RZYGL5.js} +2 -2
- package/dist/cdn/{BXMBSMDA.js → QAHMU6RC.js} +2 -2
- package/dist/cdn/{I4HUVWOM.js → QDBGBNCJ.js} +2 -2
- package/dist/cdn/{6FNU7LLK.js → QE2FS5E5.js} +1 -1
- package/dist/cdn/{DNUFN6KO.js → QFO2IRTT.js} +2 -2
- package/dist/cdn/{3HH3MDZU.js → QHBT62WW.js} +1 -1
- package/dist/cdn/{WZAWZYUW.js → QINV6BM4.js} +2 -2
- package/dist/cdn/{5JZNEBUB.js → QQ6B7FB4.js} +2 -2
- package/dist/cdn/{TQLIUPFP.js → QTJDDX33.js} +2 -2
- package/dist/cdn/{JVTH36NL.js → QYQFATN7.js} +2 -2
- package/dist/cdn/{SLQKQBYP.js → RBE574GA.js} +2 -2
- package/dist/cdn/{2HW3HWPX.js → RDHXYAFQ.js} +2 -2
- package/dist/cdn/{QVBN7TCB.js → RPJ7PYJI.js} +2 -2
- package/dist/cdn/{6G2ZCH63.js → RV362NX4.js} +2 -2
- package/dist/cdn/{5TLIIGGG.js → RWF3FG7R.js} +2 -2
- package/dist/cdn/{AKTTWR3Z.js → S4SXK5KM.js} +2 -2
- package/dist/cdn/{WYJQICAY.js → S4YCMSWT.js} +2 -2
- package/dist/cdn/{DYGVURCV.js → SCLAXZDQ.js} +2 -2
- package/dist/cdn/{3VC3OOFY.js → SEPEVNES.js} +1 -1
- package/dist/cdn/{2K5ZLEWY.js → SLVVWDPK.js} +2 -2
- package/dist/cdn/{63T3WESR.js → SRETHNAO.js} +2 -2
- package/dist/cdn/{FVDWM3UW.js → SVEHL3HT.js} +2 -2
- package/dist/cdn/{NL6T7BPU.js → SVNYTZ2E.js} +2 -2
- package/dist/cdn/{JDCEOU7Q.js → SY62LJ5M.js} +2 -2
- package/dist/cdn/{Z5NXVC7O.js → SZLHYT5W.js} +1 -1
- package/dist/cdn/{5U7C6G2W.js → T46NOCI4.js} +2 -2
- package/dist/cdn/{ILJBHHS6.js → T7FM4JD6.js} +2 -2
- package/dist/cdn/{5Z4WDZ7N.js → TFXSKBAP.js} +2 -2
- package/dist/cdn/{TJWR6SQK.js → TLIFTU62.js} +2 -2
- package/dist/cdn/{W3OL2PFI.js → TN4GQ5QN.js} +2 -2
- package/dist/cdn/{DR7SVRJF.js → TQMZD3E7.js} +2 -2
- package/dist/cdn/{TXOH5L5P.js → TRA7X542.js} +2 -2
- package/dist/cdn/{CJK4TQOK.js → UAWLGRML.js} +2 -2
- package/dist/cdn/{PFW7TBZ2.js → UBB55AI4.js} +2 -2
- package/dist/cdn/{SVAAUL7E.js → UCEHEYP3.js} +2 -2
- package/dist/cdn/{BSPHRPTQ.js → UFIIJ5R3.js} +2 -2
- package/dist/cdn/{JAKS5FXB.js → UJZNVEY4.js} +2 -2
- package/dist/cdn/{IZWC7Q25.js → UTHU6WCL.js} +2 -2
- package/dist/cdn/{GXSHQ2G5.js → UWGBB7SJ.js} +2 -2
- package/dist/cdn/{XG7GUCKZ.js → UWJVNIFI.js} +2 -2
- package/dist/cdn/{JUA2Y7YN.js → UYZCSS2V.js} +2 -2
- package/dist/cdn/UZLP7W75.js +4 -0
- package/dist/cdn/{E3WSMIS6.js → V2WAZBCQ.js} +2 -2
- package/dist/cdn/{O7RSYCM5.js → V7TUE55H.js} +2 -2
- package/dist/cdn/{32HA2CTR.js → VDCQFU5K.js} +2 -2
- package/dist/cdn/{XEXK7AAA.js → VF254QF2.js} +2 -2
- package/dist/cdn/{RK7PFFA5.js → VKH5H6RP.js} +2 -2
- package/dist/cdn/{3C23QDX5.js → VR45PC42.js} +2 -2
- package/dist/cdn/{ZXE4TQ4F.js → VV3CTLMJ.js} +2 -2
- package/dist/cdn/VZNLSB2B.js +4 -0
- package/dist/cdn/{JN3WVXZT.js → WHIO3FQO.js} +2 -2
- package/dist/cdn/{QKAQGLWX.js → WJLTANIS.js} +2 -2
- package/dist/cdn/{7VFICZ76.js → WLFBLXH4.js} +2 -2
- package/dist/cdn/{WW3WGDJ3.js → WU6RMTYJ.js} +1 -1
- package/dist/cdn/{EPBI7M76.js → WV6NMA4J.js} +2 -2
- package/dist/cdn/{4CGZDAGZ.js → WXJJ47QG.js} +2 -2
- package/dist/cdn/{7HY7X6MN.js → WZ6NKZZA.js} +2 -2
- package/dist/cdn/{CJKCLZTV.js → X6JS6JOQ.js} +2 -2
- package/dist/cdn/{4W2LGKEX.js → XEWOPYKZ.js} +2 -2
- package/dist/cdn/{CERGZ6NT.js → XLAY7IRE.js} +1 -1
- package/dist/cdn/{BZXKK73B.js → XNEAKPXB.js} +2 -2
- package/dist/cdn/{5SCGZBII.js → XSBBQ2WV.js} +2 -2
- package/dist/cdn/{DXJI63DK.js → XSHH2JZG.js} +1 -1
- package/dist/cdn/{UFGQXXVJ.js → XYH6VOK7.js} +2 -2
- package/dist/cdn/{4BOXQI4C.js → XYVICLHW.js} +2 -2
- package/dist/cdn/Y2IAH2XC.js +4 -0
- package/dist/cdn/{NZO5C44C.js → YBNROUXG.js} +2 -2
- package/dist/cdn/{5WP6EICH.js → YFXERNVQ.js} +2 -2
- package/dist/cdn/{BP4XKVZD.js → YNYENOUR.js} +2 -2
- package/dist/cdn/{XDSREGSM.js → YOG4QHWC.js} +2 -2
- package/dist/cdn/{LNASNNFB.js → YSDARCXG.js} +2 -2
- package/dist/cdn/{K4IPIMJB.js → YVVQHIGY.js} +2 -2
- package/dist/cdn/{FDXSLXQR.js → Z6KIH56L.js} +2 -2
- package/dist/cdn/{LTBTGHGQ.js → ZAQAZNCT.js} +2 -2
- package/dist/cdn/{IMXL54YJ.js → ZE6PIKEL.js} +2 -2
- package/dist/cdn/{B3VEO32T.js → ZFVQNIV3.js} +2 -2
- package/dist/cdn/{3THL4ZH2.js → ZILPZPIM.js} +2 -2
- package/dist/cdn/{LHS3JGZW.js → ZMACPZ6D.js} +3 -3
- package/dist/cdn/{H7MM3AI6.js → ZQLFN5FG.js} +2 -2
- package/dist/cdn/{JSAKKAFL.js → ZQUJJC5R.js} +2 -2
- package/dist/cdn/{ZLBE77BX.js → ZXK25NUP.js} +1 -1
- package/dist/cdn/{T7MEIMOR.js → ZZVTOYMZ.js} +2 -2
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/AnalysisViewModel.js +77 -80
- 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 +1 -1
- package/dist/chunks/feature-utils.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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/ElevationProfileViewModel.d.ts +1 -1
- package/dist/components/arcgis-elevation-profile/customElement.d.ts +5 -4
- package/dist/components/arcgis-elevation-profile/customElement.js +15 -15
- 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.d.ts +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 +1 -1
- package/dist/components/arcgis-search-result-renderer/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast/ShadowCastViewModel.d.ts +1 -3
- package/dist/components/arcgis-shadow-cast/customElement.js +36 -43
- package/dist/components/arcgis-shadow-cast-discrete-config/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast-min-duration-config/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast-total-duration-config/customElement.js +1 -1
- 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.d.ts +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 +1 -1
- 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 +22 -23
- package/dist/docs/docs.json +33 -33
- package/dist/docs/web-types.json +9 -9
- package/dist/index.js +1 -1
- package/dist/loader.js +2 -2
- package/dist/support/AnalysisViewModel.d.ts +2 -2
- package/package.json +4 -4
- package/dist/cdn/3WT7E7DL.js +0 -4
- package/dist/cdn/4NNTVXLQ.js +0 -4
- package/dist/cdn/CX5H4WMP.js +0 -4
- package/dist/cdn/DN6IWTEQ.js +0 -4
- package/dist/cdn/FZW5VW6V.js +0 -4
- package/dist/cdn/LKPXPXIZ.js +0 -4
- package/dist/cdn/NGN2RFPG.js +0 -4
- package/dist/cdn/NL3UKWVQ.js +0 -4
- package/dist/cdn/PJLXJX24.js +0 -4
- package/dist/cdn/RERS3NAR.js +0 -4
- package/dist/cdn/U2XWLW3W.js +0 -4
- package/dist/cdn/UCPD6TOE.js +0 -4
- package/dist/cdn/UHFX2KPF.js +0 -4
|
@@ -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"./GCPNUMA4.js";import{a as _}from"./S2QURR2A.js";import{b as h}from"./DWDF4NAR.js";import{I as p,J as s,O as u,a as d,b as t,s as g}from"./N3BAMOML.js";export default $arcgis.t(([{watch:m},{substitute:b}])=>{var w="arcgis-search-result-renderer",f={base:w,moreResults:`${w}__more-results`},v=d`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{--esri-widget-padding-x: 15px;--esri-widget-padding-y: var(--calcite-spacing-md);--esri-widget-padding: var(--esri-widget-padding-y) var(--esri-widget-padding-x);box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.arcgis-search-result-renderer calcite-block,.arcgis-search-result-renderer calcite-block[expanded]{margin-block:0;margin-block-start:var(--calcite-spacing-md);border:0}`,l=class extends p{constructor(){super(...arguments),this._resultCount=0,this._showMoreResultsOpen=!1,this.autoDestroyDisabled=!1,this.arcgisReady=g()}static{this.properties={_results:16,_resultCount:16,_selectedResult:16,_showMoreResultsOpen:16,messages:0,autoDestroyDisabled:5,viewModel:0}}static{this.styles=v}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[m(()=>[this.viewModel?.results,this.viewModel?.resultCount],()=>{this._results=this.viewModel?.results,this._resultCount=this.viewModel?.resultCount??0,this._showMoreResultsOpen=!1},{initial:!0}),m(()=>this.viewModel?.selectedResult,e=>this._selectedResult=e,{initial:!0})])}_selectResult(e){this._showMoreResultsOpen=!1,this.viewModel?.select(e)}_getSourceName(e,i){return i===-1?this.messages?.all??"":e.name}_toggleShowMoreResults(e){this._showMoreResultsOpen=e;let i=this.viewModel?.view?.popup;i&&"reposition"in i&&i.reposition()}render(){return t`<div class=${s(h(f.base,_.widget))}>${this._selectedResult?.name??""}${this._renderMoreResults()}</div>`}_renderMoreResults(){let{_resultCount:e,_results:i}=this;return!e||e<2||!i?null:t`<calcite-block class=${s(f.moreResults)} collapsible .expanded=${this._showMoreResultsOpen} .heading=${b(this.messages?.showMoreResults??"",{count:e-1})} @calciteBlockClose=${()=>this._toggleShowMoreResults(!1)} @calciteBlockOpen=${()=>this._toggleShowMoreResults(!0)}>${i.map(r=>this._renderMoreResultsList(r,i?.length>1))}</calcite-block>`}_renderMoreResultsList(e,i){let{results:r}=e;if(!(r?.length??0)||!r)return null;let n=this._getSourceName(e.source,e.sourceIndex),c=r.filter(o=>o!==this._selectedResult).map(o=>this._renderListItem(o));return t`<calcite-list .label=${n}>${i?a(`group-${e.sourceIndex}`,t`<calcite-list-item-group .heading=${n}>${c}</calcite-list-item-group>`):c}</calcite-list>`}_renderListItem(e){return a(`result-${e.sourceIndex}-${e.key}`,t`<calcite-list-item .label=${e.name} @calciteListItemSelect=${()=>this._selectResult(e)}></calcite-list-item>`)}};u("arcgis-search-result-renderer",l);return l},"core/reactiveUtils","intl")
|
|
3
|
+
v5.0.0-next.92 */
|
|
4
|
+
import{a}from"./5PWGWHIR.js";import{a as _}from"./5XDWNZXA.js";import{b as h}from"./DEBK2ZK4.js";import{I as p,J as s,O as u,a as d,b as t,s as g}from"./D7OM7PCI.js";export default $arcgis.t(([{watch:m},{substitute:b}])=>{var w="arcgis-search-result-renderer",f={base:w,moreResults:`${w}__more-results`},v=d`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{--esri-widget-padding-x: 15px;--esri-widget-padding-y: var(--calcite-spacing-md);--esri-widget-padding: var(--esri-widget-padding-y) var(--esri-widget-padding-x);box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.arcgis-search-result-renderer calcite-block,.arcgis-search-result-renderer calcite-block[expanded]{margin-block:0;margin-block-start:var(--calcite-spacing-md);border:0}`,l=class extends p{constructor(){super(...arguments),this._resultCount=0,this._showMoreResultsOpen=!1,this.autoDestroyDisabled=!1,this.arcgisReady=g()}static{this.properties={_results:16,_resultCount:16,_selectedResult:16,_showMoreResultsOpen:16,messages:0,autoDestroyDisabled:5,viewModel:0}}static{this.styles=v}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[m(()=>[this.viewModel?.results,this.viewModel?.resultCount],()=>{this._results=this.viewModel?.results,this._resultCount=this.viewModel?.resultCount??0,this._showMoreResultsOpen=!1},{initial:!0}),m(()=>this.viewModel?.selectedResult,e=>this._selectedResult=e,{initial:!0})])}_selectResult(e){this._showMoreResultsOpen=!1,this.viewModel?.select(e)}_getSourceName(e,i){return i===-1?this.messages?.all??"":e.name}_toggleShowMoreResults(e){this._showMoreResultsOpen=e;let i=this.viewModel?.view?.popup;i&&"reposition"in i&&i.reposition()}render(){return t`<div class=${s(h(f.base,_.widget))}>${this._selectedResult?.name??""}${this._renderMoreResults()}</div>`}_renderMoreResults(){let{_resultCount:e,_results:i}=this;return!e||e<2||!i?null:t`<calcite-block class=${s(f.moreResults)} collapsible .expanded=${this._showMoreResultsOpen} .heading=${b(this.messages?.showMoreResults??"",{count:e-1})} @calciteBlockClose=${()=>this._toggleShowMoreResults(!1)} @calciteBlockOpen=${()=>this._toggleShowMoreResults(!0)}>${i.map(r=>this._renderMoreResultsList(r,i?.length>1))}</calcite-block>`}_renderMoreResultsList(e,i){let{results:r}=e;if(!(r?.length??0)||!r)return null;let n=this._getSourceName(e.source,e.sourceIndex),c=r.filter(o=>o!==this._selectedResult).map(o=>this._renderListItem(o));return t`<calcite-list .label=${n}>${i?a(`group-${e.sourceIndex}`,t`<calcite-list-item-group .heading=${n}>${c}</calcite-list-item-group>`):c}</calcite-list>`}_renderListItem(e){return a(`result-${e.sourceIndex}-${e.key}`,t`<calcite-list-item .label=${e.name} @calciteListItemSelect=${()=>this._selectResult(e)}></calcite-list-item>`)}};u("arcgis-search-result-renderer",l);return l},"core/reactiveUtils","intl")
|
|
@@ -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 m}from"./WW3WGDJ3.js";import{H as _,K as T,L as A,f as L,g as y,m as U,o as I}from"./SNKGZTEH.js";import{a as q}from"./DXJI63DK.js";var W={};q(W,{StyleRule:()=>P,StyleSheet:()=>O,addClass:()=>ge,addEventListener:()=>N,addSpacing:()=>Pe,alternativeColor:()=>R,blur:()=>ne,brighten:()=>F,capitalizeFirst:()=>Le,cleanFormat:()=>Se,contains:()=>k,decimalPlaces:()=>we,escapeForRgex:()=>Ee,focus:()=>oe,get12Hours:()=>Fe,getBrightnessStep:()=>Ae,getDayFromWeek:()=>Me,getEventKey:()=>pe,getEventTarget:()=>ce,getFormat:()=>ve,getLightnessStep:()=>g,getMonthWeek:()=>Ce,getPointerId:()=>re,getRendererEvent:()=>ie,getSafeResolution:()=>me,getShadowRoot:()=>he,getStyle:()=>ae,getTimeZone:()=>$e,getTimezoneOffset:()=>Re,getWeek:()=>D,getWeekYear:()=>De,getYearDay:()=>je,hslToHsv:()=>Ie,hslToRgb:()=>x,hsvToHsl:()=>Ue,iOS:()=>B,isLight:()=>C,isLocalEvent:()=>le,isTouchEvent:()=>se,lighten:()=>M,mergeTags:()=>He,onZoom:()=>te,padString:()=>b,plainText:()=>Te,ready:()=>X,relativeToValue:()=>_e,removeClass:()=>be,removeElement:()=>ee,rgbToHsl:()=>v,sameBounds:()=>Ne,saturate:()=>$,setInteractive:()=>fe,setStyle:()=>ue,splitString:()=>Oe,stripTags:()=>Y,supports:()=>w,trim:()=>j,trimLeft:()=>z,trimRight:()=>G,truncateTextWithEllipsis:()=>xe});function X(e){if(document.readyState!=="loading")e();else{let t=()=>{document.readyState!=="loading"&&(document.removeEventListener("readystatechange",t),e())};document.addEventListener("readystatechange",t)}}function ee(e){e.parentNode&&e.parentNode.removeChild(e)}function N(e,t,r,n){return e.addEventListener(t,r,n||!1),new A(()=>{e.removeEventListener(t,r,n||!1)})}function te(e){return N(window,"resize",t=>{e()})}function w(e){switch(e){case"touchevents":return window.hasOwnProperty("TouchEvent");case"pointerevents":return window.hasOwnProperty("PointerEvent");case"mouseevents":return window.hasOwnProperty("MouseEvent");case"wheelevents":return window.hasOwnProperty("WheelEvent");case"keyboardevents":return window.hasOwnProperty("KeyboardEvent")}return!1}function re(e){return e.pointerId||0}function ne(){if(document.activeElement&&document.activeElement!=document.body)if(document.activeElement.blur)document.activeElement.blur();else{let e=document.createElement("button");e.style.position="fixed",e.style.top="0px",e.style.left="-10000px",document.body.appendChild(e),e.focus(),e.blur(),document.body.removeChild(e)}}function oe(e){e&&e.focus()}function ie(e){if(w("pointerevents"))return e;if(w("touchevents"))switch(e){case"pointerover":return"touchstart";case"pointerout":return"touchend";case"pointerleave":return"touchend";case"pointerdown":return"touchstart";case"pointermove":return"touchmove";case"pointerup":return"touchend";case"click":return"click";case"dblclick":return"dblclick"}else if(w("mouseevents"))switch(e){case"pointerover":return"mouseover";case"pointerout":return"mouseout";case"pointerleave":return"mouseleave";case"pointerdown":return"mousedown";case"pointermove":return"mousemove";case"pointerup":return"mouseup";case"click":return"click";case"dblclick":return"dblclick"}return e}function se(e){if(typeof Touch<"u"&&e instanceof Touch)return!0;if(typeof PointerEvent<"u"&&e instanceof PointerEvent&&e.pointerType!=null)switch(e.pointerType){case"touch":case"pen":case 2:return!0;case"mouse":case 4:return!1;default:return!(e instanceof MouseEvent)}else if(e.type!=null&&e.type.match(/^mouse/))return!1;return!0}function ue(e,t,r){e.style[t]=r}function ae(e,t){return e.style[t]}function ce(e){if(e.composedPath){let t=e.composedPath();return t.length===0?null:t[0]}else return e.target}function k(e,t){let r=t;for(;;){if(e===r)return!0;if(r.parentNode===null){if(r.host==null)return!1;r=r.host}else r=r.parentNode}}function le(e,t){return e.target&&k(t.root.dom,e.target)}function fe(e,t){t?e.style.pointerEvents="auto":e.style.pointerEvents="none"}function pe(e){if(e.key!==void 0)return e.key;switch(e.keyCode){case 9:return"Tab";case 13:return"Enter";case 16:return"Shift";case 17:return"Control";case 27:return"Escape";case 32:return" ";case 37:return"ArrowLeft";case 38:return"ArrowUp";case 39:return"ArrowRight";case 40:return"ArrowDown";case 46:return"Delete"}return""+e.keyCode}function he(e){let t=e;for(;;){if(t.parentNode===null)return t.host!=null?t:null;t=t.parentNode}}var E;function de(e,t,r=""){let n=document.createElement("style");return n.type="text/css",r!=""&&n.setAttribute("nonce",r),n.textContent=t,e===null?document.head.appendChild(n):e.appendChild(n),n}function ye(e,t=""){if(e===null){if(E==null){let r=document.createElement("style");r.type="text/css",t!=""&&r.setAttribute("nonce",t),document.head.appendChild(r),E=r.sheet}return E}else{let r=document.createElement("style");return r.type="text/css",t!=""&&r.setAttribute("nonce",t),e.appendChild(r),r.sheet}}function H(e,t){let r=e.cssRules.length;return e.insertRule(t+"{}",r),e.cssRules[r]}var P=class extends T{constructor(t,r,n,o=""){super(),Object.defineProperty(this,"_root",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_rule",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._root=ye(t,o);try{this._rule=H(this._root,r)}catch{this._rule=H(this._root,":not(*)")}_(n,(i,s)=>{this.setStyle(i,s)})}set selector(t){this._rule.selectorText=t}get selector(){return this._rule.selectorText}_dispose(){let t=U(this._root.cssRules,this._rule);if(t===-1)throw new Error("Could not dispose StyleRule");this._root.deleteRule(t)}_setVendorPrefixName(t,r){let n=this._rule.style;n.setProperty("-webkit-"+t,r,""),n.setProperty("-moz-"+t,r,""),n.setProperty("-ms-"+t,r,""),n.setProperty("-o-"+t,r,""),n.setProperty(t,r,"")}setStyle(t,r){t==="transition"?this._setVendorPrefixName(t,r):this._rule.style.setProperty(t,r,"")}},O=class extends T{constructor(t,r,n=""){super(),Object.defineProperty(this,"_element",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._element=de(t,r,n)}_dispose(){this._element.parentNode&&this._element.parentNode.removeChild(this._element)}};function ge(e,t){if(e)if(e.classList){let r=t.split(" ");I(r,n=>{e.classList.add(n)})}else{let r=e.getAttribute("class");r?e.setAttribute("class",r.split(" ").filter(n=>n!==t).join(" ")+" "+t):e.setAttribute("class",t)}}function be(e,t){if(e)if(e.classList)e.classList.remove(t);else{let r=e.getAttribute("class");r&&e.setAttribute("class",r.split(" ").filter(n=>n!==t).join(" "))}}function B(){return/apple/i.test(navigator.vendor)&&"ontouchend"in document}function me(){return B()?1:void 0}function _e(e,t){return y(e)?e:e!=null&&y(e.value)&&y(t)?t*e.value:0}function we(e){let t=(""+e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}function b(e,t=0,r="0"){return typeof e!="string"&&(e=e.toString()),t>e.length?Array(t-e.length+1).join(r)+e:e}function z(e){return e.replace(/^[\s]*/,"")}function G(e){return e.replace(/[\s]*$/,"")}function j(e){return z(G(e))}function xe(e,t,r=!1,n="..."){if(e.length>t){let o=t-1;for(;o>=0&&e.charAt(o).match(/\w/);)o--;return o>=0&&r==!1?e.substring(0,o+1)+"...":e.substring(0,t)+n}else return e}function ve(e){if(typeof e>"u")return"string";e=e.toLowerCase().replace(/^\[[^\]]*\]/,""),e=e.replace(/\[[^\]]+\]/,""),e=e.trim();let t=e.match(/\/(date|number|duration)$/);return t?t[1]:e==="number"?"number":e==="date"?"date":e==="duration"?"duration":e.match(/[#0]/)?"number":e.match(/[ymwdhnsqaxkzgtei]/)?"date":"string"}function Se(e){return e.replace(/\/(date|number|duration)$/i,"")}function Y(e){return e&&e.replace(/<[^>]*>/g,"")}function Te(e){return e&&Y((""+e).replace(/[\n\r]+/g,". "))}function Ee(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function Pe(e){let t="";for(let r=0;r<e.length;r++){let n=e.charAt(r);n.toUpperCase()==n&&r!=0&&(t+=" "),t+=n}return t}function Oe(e){let t=/[\u0590-\u05FF\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]/,r=/([^اأدذرزو]*[اأدذرزو])/gi,n=e.split(/(\s+)/),o=[];return n.forEach(i=>{if(i.match(/^\s+$/))(i=" ")&&(i=" "),o.push(i);else if(t.test(i)){let s=i.split(r).filter(u=>u!=="");o=o.concat(s)}else o=o.concat([...i])}),o}function je(e,t=!1){let r=new Date(e.getFullYear(),0,0),n=e.getTime()-r.getTime()+(r.getTimezoneOffset()-e.getTimezoneOffset())*60*1e3,o=1e3*60*60*24;return Math.floor(n/o)}function D(e,t=!1){let r=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())),n=r.getUTCDay()||7;r.setUTCDate(r.getUTCDate()+4-n);let o=new Date(Date.UTC(r.getUTCFullYear(),0,1));return Math.ceil(((r.getTime()-o.getTime())/864e5+1)/7)}function De(e,t=!1){let r=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())),n=r.getUTCDay()||7;return r.setUTCDate(r.getUTCDate()+4-n),new Date(Date.UTC(r.getUTCFullYear(),0,1)).getFullYear()}function Ce(e,t=!1){let r=D(new Date(e.getFullYear(),e.getMonth(),1),t),n=D(e,t);return n==1&&(n=53),n-r+1}function Me(e,t,r=1,n=!1){let o=new Date(t,0,4,0,0,0,0);return n&&o.setUTCFullYear(t),e*7+r-((o.getDay()||7)+3)}function Fe(e,t){return e>12?e-=12:e===0&&(e=12),t!=null?e+(t-1):e}function $e(e,t=!1,r=!1,n=!1,o){if(n)return t?"Coordinated Universal Time":"UTC";if(o){let u=e.toLocaleString("en-US",{timeZone:o}),c=e.toLocaleString("en-US",{timeZone:o,timeZoneName:t?"long":"short"});return j(c.substr(u.length))}let i=e.toLocaleString("UTC"),s=e.toLocaleString("UTC",{timeZoneName:t?"long":"short"}).substr(i.length);return r===!1&&(s=s.replace(/ (standard|daylight|summer|winter) /i," ")),j(s)}function Re(e,t){let r=t||new Date(Date.UTC(2012,0,1,0,0,0,0)),n=new Date(r.toLocaleString("en-US",{timeZone:"UTC"}));return(new Date(r.toLocaleString("en-US",{timeZone:e})).getTime()-n.getTime())/6e4*-1}function Le(e){return e.charAt(0).toUpperCase()+e.slice(1)}function x(e){let t,r,n,o=e.h,i=e.s,s=e.l;if(i==0)t=r=n=s;else{let u=function(l,S,f){return f<0&&(f+=1),f>1&&(f-=1),f<.16666666666666666?l+(S-l)*6*f:f<.5?S:f<.6666666666666666?l+(S-l)*(.6666666666666666-f)*6:l},c=s<.5?s*(1+i):s+i-s*i,a=2*s-c;t=u(a,c,o+1/3),r=u(a,c,o),n=u(a,c,o-1/3)}return{r:Math.round(t*255),g:Math.round(r*255),b:Math.round(n*255)}}function v(e){let t=e.r/255,r=e.g/255,n=e.b/255,o=Math.max(t,r,n),i=Math.min(t,r,n),s=0,u=0,c=(o+i)/2;if(o===i)s=u=0;else{let a=o-i;switch(u=c>.5?a/(2-o-i):a/(o+i),o){case t:s=(r-n)/a+(r<n?6:0);break;case r:s=(n-t)/a+2;break;case n:s=(t-r)/a+4;break}s/=6}return{h:s,s:u,l:c}}function Ue(e){let t=e.v*(1-e.s/2),r=t===0||t===1?0:(e.v-t)/Math.min(t,1-t);return{h:e.h,s:r,l:t,a:e.a}}function Ie(e){let t=e.l+e.s*Math.min(e.l,1-e.l),r=t===0?0:2*(1-e.l/t);return{h:e.h,s:r,v:t,a:e.a}}function M(e,t){return e&&{r:Math.max(0,Math.min(255,e.r+g(e.r,t))),g:Math.max(0,Math.min(255,e.g+g(e.g,t))),b:Math.max(0,Math.min(255,e.b+g(e.b,t))),a:e.a}}function g(e,t){let r=t>0?255-e:e;return Math.round(r*t)}function F(e,t){if(e){let r=Math.min(Math.max(e.r,e.g,e.b),230),n=g(r,t);return{r:Math.max(0,Math.min(255,Math.round(e.r+n))),g:Math.max(0,Math.min(255,Math.round(e.g+n))),b:Math.max(0,Math.min(255,Math.round(e.b+n))),a:e.a}}else return e}function Ae(e,t){return Math.round(255*t)}function C(e){return(e.r*299+e.g*587+e.b*114)/1e3>=128}function $(e,t){if(e===void 0||t==1)return e;let r=v(e);return r.s=t,x(r)}function R(e,t={r:255,g:255,b:255},r={r:255,g:255,b:255}){let n=t,o=r;return C(r)&&(n=r,o=t),C(e)?o:n}function He(e,t){return e||(e=[]),[...e,...t].filter((r,n,o)=>o.indexOf(r)===n)}function Ne(e,t){return!(!t||e.left!=t.left||e.right!=t.right||e.top!=t.top||e.bottom!=t.bottom)}function Z(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function u(h){try{a(n.next(h))}catch(l){s(l)}}function c(h){try{a(n.throw(h))}catch(l){s(l)}}function a(h){h.done?i(h.value):o(h.value).then(u,c)}a((n=n.apply(e,t||[])).next())})}function Je(e){return Z(this,void 0,void 0,function*(){if(e!==void 0){let t=[];_(e,(r,n)=>{t.push(n.waitForStop())}),yield Promise.all(t)}})}function p(e,t,r){return t+e*(r-t)}function ke(e,t,r){return e>=1?r:t}function Be(e,t,r){return new m(p(e,t.percent,r.percent))}function ze(e,t,r){return d.interpolate(e,t,r)}function Qe(e,t){return typeof e=="number"&&typeof t=="number"?p:e instanceof m&&t instanceof m?Be:e instanceof d&&t instanceof d?ze:ke}var V;(function(e){e[e.Stopped=0]="Stopped",e[e.Playing=1]="Playing",e[e.Paused=2]="Paused"})(V||(V={}));function K(e){return e[0]==="#"&&(e=e.substr(1)),e.length==3&&(e=e[0].repeat(2)+e[1].repeat(2)+e[2].repeat(2)),parseInt(e,16)}function Ge(e){e=e.replace(/[ ]/g,"");let t=e.match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i);if(t)t.push("1");else if(t=e.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i),!t)return 0;let r="";for(let n=1;n<=3;n++){let o=parseInt(t[n]).toString(16);o.length==1&&(o="0"+o),r+=o}return K(r)}function tt(e){return d.fromAny(e)}var d=class e{constructor(t){Object.defineProperty(this,"_hex",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._hex=t|0}get hex(){return this._hex}get r(){return this._hex>>>16}get g(){return this._hex>>8&255}get b(){return this._hex&255}toCSS(t=1){return"rgba("+this.r+", "+this.g+", "+this.b+", "+t+")"}toCSSHex(){return"#"+b(this.r.toString(16),2)+b(this.g.toString(16),2)+b(this.b.toString(16),2)}toHSL(t=1){return v({r:this.r,g:this.g,b:this.b,a:t})}static fromHSL(t,r,n){let o=x({h:t,s:r,l:n});return this.fromRGB(o.r,o.g,o.b)}toString(){return this.toCSSHex()}static fromHex(t){return new e(t)}static fromRGB(t,r,n){return new e((n|0)+(r<<8)+(t<<16))}static fromString(t){return new e(K(t))}static fromCSS(t){return new e(Ge(t))}static fromAny(t){if(L(t)){if(t[0]=="#")return e.fromString(t);if(t.substr(0,3)=="rgb")return e.fromCSS(t)}else{if(y(t))return e.fromHex(t);if(t instanceof e)return e.fromHex(t.hex)}throw new Error("Unknown color syntax: "+t)}static alternative(t,r,n){let o=R({r:t.r,g:t.g,b:t.b},r?{r:r.r,g:r.g,b:r.b}:void 0,n?{r:n.r,g:n.g,b:n.b}:void 0);return this.fromRGB(o.r,o.g,o.b)}static interpolate(t,r,n,o="rgb"){if(o=="hsl"){let i=r.toHSL(),s=n.toHSL();return e.fromHSL(p(t,i.h,s.h),p(t,i.s,s.s),p(t,i.l,s.l))}else return e.fromRGB(p(t,r.r,n.r),p(t,r.g,n.g),p(t,r.b,n.b))}static lighten(t,r){let n=M({r:t.r,g:t.g,b:t.b},r);return e.fromRGB(n.r,n.g,n.b)}static brighten(t,r){let n=F({r:t.r,g:t.g,b:t.b},r);return e.fromRGB(n.r,n.g,n.b)}static saturate(t,r){let n=$({r:t.r,g:t.g,b:t.b},r);return e.fromRGB(n.r,n.g,n.b)}};export{Z as a,X as b,ee as c,N as d,te as e,w as f,re as g,ne as h,oe as i,ie as j,se as k,ue as l,ae as m,ce as n,le as o,fe as p,pe as q,he as r,P as s,me as t,_e as u,we as v,b as w,j as x,xe as y,ve as z,Se as A,Y as B,Ee as C,Oe as D,je as E,D as F,De as G,Ce as H,Me as I,Fe as J,$e as K,Re as L,Le as M,He as N,Ne as O,W as P,tt as Q,d as R,Je as S,Be as T,Qe as U,V};
|
|
3
|
+
v5.0.0-next.92 */
|
|
4
|
+
import{a as m}from"./WU6RMTYJ.js";import{H as _,K as T,L as A,f as L,g as y,m as U,o as I}from"./CFQNKQLP.js";import{a as q}from"./XSHH2JZG.js";var W={};q(W,{StyleRule:()=>P,StyleSheet:()=>O,addClass:()=>ge,addEventListener:()=>N,addSpacing:()=>Pe,alternativeColor:()=>R,blur:()=>ne,brighten:()=>F,capitalizeFirst:()=>Le,cleanFormat:()=>Se,contains:()=>k,decimalPlaces:()=>we,escapeForRgex:()=>Ee,focus:()=>oe,get12Hours:()=>Fe,getBrightnessStep:()=>Ae,getDayFromWeek:()=>Me,getEventKey:()=>pe,getEventTarget:()=>ce,getFormat:()=>ve,getLightnessStep:()=>g,getMonthWeek:()=>Ce,getPointerId:()=>re,getRendererEvent:()=>ie,getSafeResolution:()=>me,getShadowRoot:()=>he,getStyle:()=>ae,getTimeZone:()=>$e,getTimezoneOffset:()=>Re,getWeek:()=>D,getWeekYear:()=>De,getYearDay:()=>je,hslToHsv:()=>Ie,hslToRgb:()=>x,hsvToHsl:()=>Ue,iOS:()=>B,isLight:()=>C,isLocalEvent:()=>le,isTouchEvent:()=>se,lighten:()=>M,mergeTags:()=>He,onZoom:()=>te,padString:()=>b,plainText:()=>Te,ready:()=>X,relativeToValue:()=>_e,removeClass:()=>be,removeElement:()=>ee,rgbToHsl:()=>v,sameBounds:()=>Ne,saturate:()=>$,setInteractive:()=>fe,setStyle:()=>ue,splitString:()=>Oe,stripTags:()=>Y,supports:()=>w,trim:()=>j,trimLeft:()=>z,trimRight:()=>G,truncateTextWithEllipsis:()=>xe});function X(e){if(document.readyState!=="loading")e();else{let t=()=>{document.readyState!=="loading"&&(document.removeEventListener("readystatechange",t),e())};document.addEventListener("readystatechange",t)}}function ee(e){e.parentNode&&e.parentNode.removeChild(e)}function N(e,t,r,n){return e.addEventListener(t,r,n||!1),new A(()=>{e.removeEventListener(t,r,n||!1)})}function te(e){return N(window,"resize",t=>{e()})}function w(e){switch(e){case"touchevents":return window.hasOwnProperty("TouchEvent");case"pointerevents":return window.hasOwnProperty("PointerEvent");case"mouseevents":return window.hasOwnProperty("MouseEvent");case"wheelevents":return window.hasOwnProperty("WheelEvent");case"keyboardevents":return window.hasOwnProperty("KeyboardEvent")}return!1}function re(e){return e.pointerId||0}function ne(){if(document.activeElement&&document.activeElement!=document.body)if(document.activeElement.blur)document.activeElement.blur();else{let e=document.createElement("button");e.style.position="fixed",e.style.top="0px",e.style.left="-10000px",document.body.appendChild(e),e.focus(),e.blur(),document.body.removeChild(e)}}function oe(e){e&&e.focus()}function ie(e){if(w("pointerevents"))return e;if(w("touchevents"))switch(e){case"pointerover":return"touchstart";case"pointerout":return"touchend";case"pointerleave":return"touchend";case"pointerdown":return"touchstart";case"pointermove":return"touchmove";case"pointerup":return"touchend";case"click":return"click";case"dblclick":return"dblclick"}else if(w("mouseevents"))switch(e){case"pointerover":return"mouseover";case"pointerout":return"mouseout";case"pointerleave":return"mouseleave";case"pointerdown":return"mousedown";case"pointermove":return"mousemove";case"pointerup":return"mouseup";case"click":return"click";case"dblclick":return"dblclick"}return e}function se(e){if(typeof Touch<"u"&&e instanceof Touch)return!0;if(typeof PointerEvent<"u"&&e instanceof PointerEvent&&e.pointerType!=null)switch(e.pointerType){case"touch":case"pen":case 2:return!0;case"mouse":case 4:return!1;default:return!(e instanceof MouseEvent)}else if(e.type!=null&&e.type.match(/^mouse/))return!1;return!0}function ue(e,t,r){e.style[t]=r}function ae(e,t){return e.style[t]}function ce(e){if(e.composedPath){let t=e.composedPath();return t.length===0?null:t[0]}else return e.target}function k(e,t){let r=t;for(;;){if(e===r)return!0;if(r.parentNode===null){if(r.host==null)return!1;r=r.host}else r=r.parentNode}}function le(e,t){return e.target&&k(t.root.dom,e.target)}function fe(e,t){t?e.style.pointerEvents="auto":e.style.pointerEvents="none"}function pe(e){if(e.key!==void 0)return e.key;switch(e.keyCode){case 9:return"Tab";case 13:return"Enter";case 16:return"Shift";case 17:return"Control";case 27:return"Escape";case 32:return" ";case 37:return"ArrowLeft";case 38:return"ArrowUp";case 39:return"ArrowRight";case 40:return"ArrowDown";case 46:return"Delete"}return""+e.keyCode}function he(e){let t=e;for(;;){if(t.parentNode===null)return t.host!=null?t:null;t=t.parentNode}}var E;function de(e,t,r=""){let n=document.createElement("style");return n.type="text/css",r!=""&&n.setAttribute("nonce",r),n.textContent=t,e===null?document.head.appendChild(n):e.appendChild(n),n}function ye(e,t=""){if(e===null){if(E==null){let r=document.createElement("style");r.type="text/css",t!=""&&r.setAttribute("nonce",t),document.head.appendChild(r),E=r.sheet}return E}else{let r=document.createElement("style");return r.type="text/css",t!=""&&r.setAttribute("nonce",t),e.appendChild(r),r.sheet}}function H(e,t){let r=e.cssRules.length;return e.insertRule(t+"{}",r),e.cssRules[r]}var P=class extends T{constructor(t,r,n,o=""){super(),Object.defineProperty(this,"_root",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_rule",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._root=ye(t,o);try{this._rule=H(this._root,r)}catch{this._rule=H(this._root,":not(*)")}_(n,(i,s)=>{this.setStyle(i,s)})}set selector(t){this._rule.selectorText=t}get selector(){return this._rule.selectorText}_dispose(){let t=U(this._root.cssRules,this._rule);if(t===-1)throw new Error("Could not dispose StyleRule");this._root.deleteRule(t)}_setVendorPrefixName(t,r){let n=this._rule.style;n.setProperty("-webkit-"+t,r,""),n.setProperty("-moz-"+t,r,""),n.setProperty("-ms-"+t,r,""),n.setProperty("-o-"+t,r,""),n.setProperty(t,r,"")}setStyle(t,r){t==="transition"?this._setVendorPrefixName(t,r):this._rule.style.setProperty(t,r,"")}},O=class extends T{constructor(t,r,n=""){super(),Object.defineProperty(this,"_element",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._element=de(t,r,n)}_dispose(){this._element.parentNode&&this._element.parentNode.removeChild(this._element)}};function ge(e,t){if(e)if(e.classList){let r=t.split(" ");I(r,n=>{e.classList.add(n)})}else{let r=e.getAttribute("class");r?e.setAttribute("class",r.split(" ").filter(n=>n!==t).join(" ")+" "+t):e.setAttribute("class",t)}}function be(e,t){if(e)if(e.classList)e.classList.remove(t);else{let r=e.getAttribute("class");r&&e.setAttribute("class",r.split(" ").filter(n=>n!==t).join(" "))}}function B(){return/apple/i.test(navigator.vendor)&&"ontouchend"in document}function me(){return B()?1:void 0}function _e(e,t){return y(e)?e:e!=null&&y(e.value)&&y(t)?t*e.value:0}function we(e){let t=(""+e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}function b(e,t=0,r="0"){return typeof e!="string"&&(e=e.toString()),t>e.length?Array(t-e.length+1).join(r)+e:e}function z(e){return e.replace(/^[\s]*/,"")}function G(e){return e.replace(/[\s]*$/,"")}function j(e){return z(G(e))}function xe(e,t,r=!1,n="..."){if(e.length>t){let o=t-1;for(;o>=0&&e.charAt(o).match(/\w/);)o--;return o>=0&&r==!1?e.substring(0,o+1)+"...":e.substring(0,t)+n}else return e}function ve(e){if(typeof e>"u")return"string";e=e.toLowerCase().replace(/^\[[^\]]*\]/,""),e=e.replace(/\[[^\]]+\]/,""),e=e.trim();let t=e.match(/\/(date|number|duration)$/);return t?t[1]:e==="number"?"number":e==="date"?"date":e==="duration"?"duration":e.match(/[#0]/)?"number":e.match(/[ymwdhnsqaxkzgtei]/)?"date":"string"}function Se(e){return e.replace(/\/(date|number|duration)$/i,"")}function Y(e){return e&&e.replace(/<[^>]*>/g,"")}function Te(e){return e&&Y((""+e).replace(/[\n\r]+/g,". "))}function Ee(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function Pe(e){let t="";for(let r=0;r<e.length;r++){let n=e.charAt(r);n.toUpperCase()==n&&r!=0&&(t+=" "),t+=n}return t}function Oe(e){let t=/[\u0590-\u05FF\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]/,r=/([^اأدذرزو]*[اأدذرزو])/gi,n=e.split(/(\s+)/),o=[];return n.forEach(i=>{if(i.match(/^\s+$/))(i=" ")&&(i=" "),o.push(i);else if(t.test(i)){let s=i.split(r).filter(u=>u!=="");o=o.concat(s)}else o=o.concat([...i])}),o}function je(e,t=!1){let r=new Date(e.getFullYear(),0,0),n=e.getTime()-r.getTime()+(r.getTimezoneOffset()-e.getTimezoneOffset())*60*1e3,o=1e3*60*60*24;return Math.floor(n/o)}function D(e,t=!1){let r=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())),n=r.getUTCDay()||7;r.setUTCDate(r.getUTCDate()+4-n);let o=new Date(Date.UTC(r.getUTCFullYear(),0,1));return Math.ceil(((r.getTime()-o.getTime())/864e5+1)/7)}function De(e,t=!1){let r=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())),n=r.getUTCDay()||7;return r.setUTCDate(r.getUTCDate()+4-n),new Date(Date.UTC(r.getUTCFullYear(),0,1)).getFullYear()}function Ce(e,t=!1){let r=D(new Date(e.getFullYear(),e.getMonth(),1),t),n=D(e,t);return n==1&&(n=53),n-r+1}function Me(e,t,r=1,n=!1){let o=new Date(t,0,4,0,0,0,0);return n&&o.setUTCFullYear(t),e*7+r-((o.getDay()||7)+3)}function Fe(e,t){return e>12?e-=12:e===0&&(e=12),t!=null?e+(t-1):e}function $e(e,t=!1,r=!1,n=!1,o){if(n)return t?"Coordinated Universal Time":"UTC";if(o){let u=e.toLocaleString("en-US",{timeZone:o}),c=e.toLocaleString("en-US",{timeZone:o,timeZoneName:t?"long":"short"});return j(c.substr(u.length))}let i=e.toLocaleString("UTC"),s=e.toLocaleString("UTC",{timeZoneName:t?"long":"short"}).substr(i.length);return r===!1&&(s=s.replace(/ (standard|daylight|summer|winter) /i," ")),j(s)}function Re(e,t){let r=t||new Date(Date.UTC(2012,0,1,0,0,0,0)),n=new Date(r.toLocaleString("en-US",{timeZone:"UTC"}));return(new Date(r.toLocaleString("en-US",{timeZone:e})).getTime()-n.getTime())/6e4*-1}function Le(e){return e.charAt(0).toUpperCase()+e.slice(1)}function x(e){let t,r,n,o=e.h,i=e.s,s=e.l;if(i==0)t=r=n=s;else{let u=function(l,S,f){return f<0&&(f+=1),f>1&&(f-=1),f<.16666666666666666?l+(S-l)*6*f:f<.5?S:f<.6666666666666666?l+(S-l)*(.6666666666666666-f)*6:l},c=s<.5?s*(1+i):s+i-s*i,a=2*s-c;t=u(a,c,o+1/3),r=u(a,c,o),n=u(a,c,o-1/3)}return{r:Math.round(t*255),g:Math.round(r*255),b:Math.round(n*255)}}function v(e){let t=e.r/255,r=e.g/255,n=e.b/255,o=Math.max(t,r,n),i=Math.min(t,r,n),s=0,u=0,c=(o+i)/2;if(o===i)s=u=0;else{let a=o-i;switch(u=c>.5?a/(2-o-i):a/(o+i),o){case t:s=(r-n)/a+(r<n?6:0);break;case r:s=(n-t)/a+2;break;case n:s=(t-r)/a+4;break}s/=6}return{h:s,s:u,l:c}}function Ue(e){let t=e.v*(1-e.s/2),r=t===0||t===1?0:(e.v-t)/Math.min(t,1-t);return{h:e.h,s:r,l:t,a:e.a}}function Ie(e){let t=e.l+e.s*Math.min(e.l,1-e.l),r=t===0?0:2*(1-e.l/t);return{h:e.h,s:r,v:t,a:e.a}}function M(e,t){return e&&{r:Math.max(0,Math.min(255,e.r+g(e.r,t))),g:Math.max(0,Math.min(255,e.g+g(e.g,t))),b:Math.max(0,Math.min(255,e.b+g(e.b,t))),a:e.a}}function g(e,t){let r=t>0?255-e:e;return Math.round(r*t)}function F(e,t){if(e){let r=Math.min(Math.max(e.r,e.g,e.b),230),n=g(r,t);return{r:Math.max(0,Math.min(255,Math.round(e.r+n))),g:Math.max(0,Math.min(255,Math.round(e.g+n))),b:Math.max(0,Math.min(255,Math.round(e.b+n))),a:e.a}}else return e}function Ae(e,t){return Math.round(255*t)}function C(e){return(e.r*299+e.g*587+e.b*114)/1e3>=128}function $(e,t){if(e===void 0||t==1)return e;let r=v(e);return r.s=t,x(r)}function R(e,t={r:255,g:255,b:255},r={r:255,g:255,b:255}){let n=t,o=r;return C(r)&&(n=r,o=t),C(e)?o:n}function He(e,t){return e||(e=[]),[...e,...t].filter((r,n,o)=>o.indexOf(r)===n)}function Ne(e,t){return!(!t||e.left!=t.left||e.right!=t.right||e.top!=t.top||e.bottom!=t.bottom)}function Z(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function u(h){try{a(n.next(h))}catch(l){s(l)}}function c(h){try{a(n.throw(h))}catch(l){s(l)}}function a(h){h.done?i(h.value):o(h.value).then(u,c)}a((n=n.apply(e,t||[])).next())})}function Je(e){return Z(this,void 0,void 0,function*(){if(e!==void 0){let t=[];_(e,(r,n)=>{t.push(n.waitForStop())}),yield Promise.all(t)}})}function p(e,t,r){return t+e*(r-t)}function ke(e,t,r){return e>=1?r:t}function Be(e,t,r){return new m(p(e,t.percent,r.percent))}function ze(e,t,r){return d.interpolate(e,t,r)}function Qe(e,t){return typeof e=="number"&&typeof t=="number"?p:e instanceof m&&t instanceof m?Be:e instanceof d&&t instanceof d?ze:ke}var V;(function(e){e[e.Stopped=0]="Stopped",e[e.Playing=1]="Playing",e[e.Paused=2]="Paused"})(V||(V={}));function K(e){return e[0]==="#"&&(e=e.substr(1)),e.length==3&&(e=e[0].repeat(2)+e[1].repeat(2)+e[2].repeat(2)),parseInt(e,16)}function Ge(e){e=e.replace(/[ ]/g,"");let t=e.match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i);if(t)t.push("1");else if(t=e.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i),!t)return 0;let r="";for(let n=1;n<=3;n++){let o=parseInt(t[n]).toString(16);o.length==1&&(o="0"+o),r+=o}return K(r)}function tt(e){return d.fromAny(e)}var d=class e{constructor(t){Object.defineProperty(this,"_hex",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._hex=t|0}get hex(){return this._hex}get r(){return this._hex>>>16}get g(){return this._hex>>8&255}get b(){return this._hex&255}toCSS(t=1){return"rgba("+this.r+", "+this.g+", "+this.b+", "+t+")"}toCSSHex(){return"#"+b(this.r.toString(16),2)+b(this.g.toString(16),2)+b(this.b.toString(16),2)}toHSL(t=1){return v({r:this.r,g:this.g,b:this.b,a:t})}static fromHSL(t,r,n){let o=x({h:t,s:r,l:n});return this.fromRGB(o.r,o.g,o.b)}toString(){return this.toCSSHex()}static fromHex(t){return new e(t)}static fromRGB(t,r,n){return new e((n|0)+(r<<8)+(t<<16))}static fromString(t){return new e(K(t))}static fromCSS(t){return new e(Ge(t))}static fromAny(t){if(L(t)){if(t[0]=="#")return e.fromString(t);if(t.substr(0,3)=="rgb")return e.fromCSS(t)}else{if(y(t))return e.fromHex(t);if(t instanceof e)return e.fromHex(t.hex)}throw new Error("Unknown color syntax: "+t)}static alternative(t,r,n){let o=R({r:t.r,g:t.g,b:t.b},r?{r:r.r,g:r.g,b:r.b}:void 0,n?{r:n.r,g:n.g,b:n.b}:void 0);return this.fromRGB(o.r,o.g,o.b)}static interpolate(t,r,n,o="rgb"){if(o=="hsl"){let i=r.toHSL(),s=n.toHSL();return e.fromHSL(p(t,i.h,s.h),p(t,i.s,s.s),p(t,i.l,s.l))}else return e.fromRGB(p(t,r.r,n.r),p(t,r.g,n.g),p(t,r.b,n.b))}static lighten(t,r){let n=M({r:t.r,g:t.g,b:t.b},r);return e.fromRGB(n.r,n.g,n.b)}static brighten(t,r){let n=F({r:t.r,g:t.g,b:t.b},r);return e.fromRGB(n.r,n.g,n.b)}static saturate(t,r){let n=$({r:t.r,g:t.g,b:t.b},r);return e.fromRGB(n.r,n.g,n.b)}};export{Z as a,X as b,ee as c,N as d,te as e,w as f,re as g,ne as h,oe as i,ie as j,se as k,ue as l,ae as m,ce as n,le as o,fe as p,pe as q,he as r,P as s,me as t,_e as u,we as v,b as w,j as x,xe as y,ve as z,Se as A,Y as B,Ee as C,Oe as D,je as E,D as F,De as G,Ce as H,Me as I,Fe as J,$e as K,Re as L,Le as M,He as N,Ne as O,W as P,tt as Q,d as R,Je as S,Be as T,Qe as U,V};
|
|
@@ -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.92 */
|
|
4
|
+
import b from"./UCEHEYP3.js";import"./2WTZVJD5.js";import"./TQMZD3E7.js";import"./DEBK2ZK4.js";import{I as n,K as l,O as c,a,b as r}from"./D7OM7PCI.js";import"./XSHH2JZG.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 c from"./XG7GUCKZ.js";import{a as $}from"./4WSQLHYR.js";import{a as p}from"./S2QURR2A.js";import b from"./KFWSPWIO.js";import a from"./TJWR6SQK.js";import{g as k}from"./OBWV5SDX.js";import"./DR7SVRJF.js";import"./7S5ZZYU5.js";import{b as l}from"./DWDF4NAR.js";import"./Z5NXVC7O.js";import{I as x,J as i,K as g,L as s,O as y,a as f,b as o,s as w}from"./N3BAMOML.js";import"./DXJI63DK.js";export default $arcgis.t(([{getBasemapThumbnailUrl:T},j,,,z])=>{var C=f`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{--esri-widget-padding-x: 15px;--esri-widget-padding-y: var(--calcite-spacing-md);--esri-widget-padding: var(--esri-widget-padding-y) var(--esri-widget-padding-x);box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.basemap-toggle{box-shadow:none;background-color:var(--calcite-color-transparent)}.basemap-toggle calcite-button{flex-direction:row;justify-content:center;align-items:center;width:69px;height:69px;display:flex;position:relative;overflow:visible}.basemap-toggle__container,.basemap-toggle__image{width:64px;height:64px;position:absolute;top:0;left:0;overflow:hidden}.basemap-toggle__container{box-shadow:0 1px 2px #0000004d}.basemap-toggle__image{background-color:var(--calcite-color-foreground-1);background-image:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2064%2064'%3e%3cpath%20fill='%236E6E6E'%20d='M16%2016v32h32V16H16zm17.028%2011.947l.022.106c.175.863.272%201.67-.46%202.066-.52.28-.792.764-1.014%201.155-.28.497-.414.684-.715.684-.158%200-.283-.085-.486-.24-.25-.192-.558-.426-1.03-.426-.692%200-1.255.606-1.255%201.35%200%20.475-.422%201.353-1.022%201.353-.49%200-.652-.172-.763-.37-.296-.53-.665-1.193-1.51-1.193-.85%200-1.542.735-1.542%201.635%200%20.286.06.508.11.702.044.165.083.31.083.478%200%20.244-.102.428-.23.666-.152.278-.34.62-.34%201.09%200%20.613.563%201.113%201.255%201.113.393%200%20.654-.104.865-.186.195-.078.332-.125.56-.103.103.01.21.3.21.5%200%20.323-.274.598-.59.914-.514.512-1.22%201.212-.638%202.368.22.444.758.57%201.277.69.24.057.416.095.56.132%200%200%20.254.34.318.536a.616.616%200%2000.013.23.92.92%200%2001-.17.506c-.253.382-.548.597-.862.825-.623.458-1.14.536-1.156%201.47H18V18h21.48c.03.578-.903%201.22-.903%201.22l-.98.58c-1.054.672-2.254%201.703-2.254%202.56%200%20.377.15.646.27.86.1.177.157.283.157.417%200%20.19-.126.316-.41.56-.25.215-.534.453-.663.84a1.27%201.27%200%2000-.064.4c0%20.138.03.307.063.488.028.153.09.472.042.547%200%200-.054.04-.258.04l-.174-.006c-.37%200-.75.303-.98.582-.172.206-.363.528-.298.86zM46%2046h-9.23c-.207-1.22-1.35-1.258-2.168-1.556-.288-.107-.585-.213-.858-.353-.354-.184-.35-.585-.296-.89%200%200%20.102-.303.09-.37l.003-.002c-.006-.036-.013-.067-.013-.11%200-.23.213-.34.7-.574.507-.25%201.2-.577%201.2-1.39%200-.293-.13-.488-.216-.62-.053-.08-.07-.11-.07-.132%200-.172.068-.286.332-.524.283-.253.628-.6.628-1.19v-.93c0-.092.27-.195.605-.03.165.078.41.188.715.188.672%200%201.04-.494%201.3-.853.24-.332.33-.516.565-.48.235.042.15.05.324.41.12.25.26.538.52.763.454.397.98.528%201.506.57a6.126%206.126%200%20001.996.005l.168-.027a4.14%204.14%200%2001.98-.067s.09.022.14.006c.39.044.717.177.98.458l.1.248c.003.005-.003.01%200%20.015V46z'/%3e%3cpath%20clip-rule='evenodd'%20fill='none'%20d='M16%2016h32v32H16z'/%3e%3cpath%20fill='none'%20d='M0%200h64v64H0z'/%3e%3c/svg%3e");background-position:50%;background-repeat:no-repeat;background-size:cover}.basemap-toggle__image--loading{background-image:unset;justify-content:center;align-items:center;display:flex}.basemap-toggle__image--secondary{margin-top:5px;margin-left:5px;animation:2s ease-in-out esri-basemap-slide;box-shadow:0 1px 2px #0000004d}.basemap-thumbnail__overlay-scrim{--calcite-scrim-background: #00000080;color:var(--calcite-color-text-inverse)}.basemap-toggle__image-overlay{background-color:var(--calcite-color-transparent);justify-content:center;align-items:flex-end;width:100%;height:100%;transition:background-color .125s ease-in-out;display:flex;position:absolute}.basemap-toggle__image-overlay .basemap-toggle:hover{background-color:var(--calcite-color-background)}.basemap-toggle__title{text-align:center;background-color:var(--calcite-color-transparent-tint);flex:1 0 100%;height:auto;padding:.5em;font-size:var(--calcite-font-size-xs);font-weight:var(--calcite-font-weight-medium);line-height:var(--calcite-font-line-height-relative-tight)}.basemap-toggle__title-wrap{text-wrap:wrap}`,r="basemap-toggle",n="basemap-thumbnail",e={base:r,secondaryBasemapImage:`${r}__image--secondary`,container:`${n} ${r}__container`,image:`${n}__image ${r}__image`,imageLoading:`${r}__image--loading`,overlay:`${n}__overlay ${r}__image-overlay`,title:`${n}__title ${r}__title`,titleWrap:`${r}__title-wrap`,overlayScrim:`${n}__overlay-scrim`},D=z(j),m=class extends x{constructor(){super(...arguments),this.messages=$(),this.viewModel=D(this),this.view=this.viewModel.view,this.activeBasemap=this.viewModel.activeBasemap,this.autoDestroyDisabled=!1,this.icon="layer-basemap",this.nextBasemap=this.viewModel.nextBasemap,this.showTitle=!1,this.state=this.viewModel.state,this.arcgisPropertyChange=k()("activeBasemap","nextBasemap","state"),this.arcgisReady=w()}static{this.properties={view:0,activeBasemap:0,autoDestroyDisabled:5,icon:1,label:1,messageOverrides:0,nextBasemap:1,position:3,referenceElement:1,showTitle:5,state:3}}static{this.styles=C}async destroy(){await this.manager.destroy()}async toggle(){return await this.viewModel.toggle()}_getThumbnailStyles(t){let c=T(t);return c?{backgroundImage:`url(${c})`}:{backgroundImage:""}}render(){let t=this.viewModel,c=t.state==="disabled"?null:t.activeBasemap,a=t.state==="disabled"?null:t.nextBasemap,B=t.state==="loading",h=t.state==="incompatible-next-basemap",d=a?.title??"",_=a&&a.loadStatus!=="loaded",u,b=this.showTitle&&d,v=h,M=b||v,E=this._getThumbnailStyles(c),S=this._getThumbnailStyles(a);return M&&(u=o`<div class=${i(e.overlay)}>${b?o`<span class=${i(l(e.title,e.titleWrap))} title=${d??s}>${d}</span>`:null}${v?o`<calcite-scrim class=${i(e.overlayScrim)} title=${this.messages.incompatibleSpatialReference??s}><calcite-icon icon=exclamation-mark-triangle></calcite-icon></calcite-scrim>`:null}</div>`),o`<div class=${i(l(e.base,p.widget))}><calcite-button appearance=transparent data-basemap-id=${(a?a.id:"")??s} .disabled=${h} kind=neutral .label=${this.label??void 0} @click=${()=>void this.toggle()} title=${this.label??void 0??s}><div class=${i(l(e.container,e.secondaryBasemapImage))}><div class=${i(e.image)} style=${g(E)}></div></div><div class=${i(e.container)}><div class=${i(l(e.image,_?e.imageLoading:null))} style=${g(S)}>${_||B?o`<calcite-scrim><span aria-hidden=true class=${i(p.loaderAnimation)} role=presentation></span></calcite-scrim>`:null}</div>${u}</div></calcite-button></div>`}};y("arcgis-basemap-toggle",m);return m},"applications/Components/basemapUtils","widgets/BasemapToggle/BasemapToggleViewModel",a,b,c)
|
|
3
|
+
v5.0.0-next.92 */
|
|
4
|
+
import c from"./UWJVNIFI.js";import{a as $}from"./ECBC3KB6.js";import{a as p}from"./5XDWNZXA.js";import b from"./G46MJ3MY.js";import a from"./TLIFTU62.js";import{g as k}from"./2WTZVJD5.js";import"./TQMZD3E7.js";import"./DJMJ44ZT.js";import{b as l}from"./DEBK2ZK4.js";import"./SZLHYT5W.js";import{I as x,J as i,K as g,L as s,O as y,a as f,b as o,s as w}from"./D7OM7PCI.js";import"./XSHH2JZG.js";export default $arcgis.t(([{getBasemapThumbnailUrl:T},j,,,z])=>{var C=f`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{--esri-widget-padding-x: 15px;--esri-widget-padding-y: var(--calcite-spacing-md);--esri-widget-padding: var(--esri-widget-padding-y) var(--esri-widget-padding-x);box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.basemap-toggle{box-shadow:none;background-color:var(--calcite-color-transparent)}.basemap-toggle calcite-button{flex-direction:row;justify-content:center;align-items:center;width:69px;height:69px;display:flex;position:relative;overflow:visible}.basemap-toggle__container,.basemap-toggle__image{width:64px;height:64px;position:absolute;top:0;left:0;overflow:hidden}.basemap-toggle__container{box-shadow:0 1px 2px #0000004d}.basemap-toggle__image{background-color:var(--calcite-color-foreground-1);background-image:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2064%2064'%3e%3cpath%20fill='%236E6E6E'%20d='M16%2016v32h32V16H16zm17.028%2011.947l.022.106c.175.863.272%201.67-.46%202.066-.52.28-.792.764-1.014%201.155-.28.497-.414.684-.715.684-.158%200-.283-.085-.486-.24-.25-.192-.558-.426-1.03-.426-.692%200-1.255.606-1.255%201.35%200%20.475-.422%201.353-1.022%201.353-.49%200-.652-.172-.763-.37-.296-.53-.665-1.193-1.51-1.193-.85%200-1.542.735-1.542%201.635%200%20.286.06.508.11.702.044.165.083.31.083.478%200%20.244-.102.428-.23.666-.152.278-.34.62-.34%201.09%200%20.613.563%201.113%201.255%201.113.393%200%20.654-.104.865-.186.195-.078.332-.125.56-.103.103.01.21.3.21.5%200%20.323-.274.598-.59.914-.514.512-1.22%201.212-.638%202.368.22.444.758.57%201.277.69.24.057.416.095.56.132%200%200%20.254.34.318.536a.616.616%200%2000.013.23.92.92%200%2001-.17.506c-.253.382-.548.597-.862.825-.623.458-1.14.536-1.156%201.47H18V18h21.48c.03.578-.903%201.22-.903%201.22l-.98.58c-1.054.672-2.254%201.703-2.254%202.56%200%20.377.15.646.27.86.1.177.157.283.157.417%200%20.19-.126.316-.41.56-.25.215-.534.453-.663.84a1.27%201.27%200%2000-.064.4c0%20.138.03.307.063.488.028.153.09.472.042.547%200%200-.054.04-.258.04l-.174-.006c-.37%200-.75.303-.98.582-.172.206-.363.528-.298.86zM46%2046h-9.23c-.207-1.22-1.35-1.258-2.168-1.556-.288-.107-.585-.213-.858-.353-.354-.184-.35-.585-.296-.89%200%200%20.102-.303.09-.37l.003-.002c-.006-.036-.013-.067-.013-.11%200-.23.213-.34.7-.574.507-.25%201.2-.577%201.2-1.39%200-.293-.13-.488-.216-.62-.053-.08-.07-.11-.07-.132%200-.172.068-.286.332-.524.283-.253.628-.6.628-1.19v-.93c0-.092.27-.195.605-.03.165.078.41.188.715.188.672%200%201.04-.494%201.3-.853.24-.332.33-.516.565-.48.235.042.15.05.324.41.12.25.26.538.52.763.454.397.98.528%201.506.57a6.126%206.126%200%20001.996.005l.168-.027a4.14%204.14%200%2001.98-.067s.09.022.14.006c.39.044.717.177.98.458l.1.248c.003.005-.003.01%200%20.015V46z'/%3e%3cpath%20clip-rule='evenodd'%20fill='none'%20d='M16%2016h32v32H16z'/%3e%3cpath%20fill='none'%20d='M0%200h64v64H0z'/%3e%3c/svg%3e");background-position:50%;background-repeat:no-repeat;background-size:cover}.basemap-toggle__image--loading{background-image:unset;justify-content:center;align-items:center;display:flex}.basemap-toggle__image--secondary{margin-top:5px;margin-left:5px;animation:2s ease-in-out esri-basemap-slide;box-shadow:0 1px 2px #0000004d}.basemap-thumbnail__overlay-scrim{--calcite-scrim-background: #00000080;color:var(--calcite-color-text-inverse)}.basemap-toggle__image-overlay{background-color:var(--calcite-color-transparent);justify-content:center;align-items:flex-end;width:100%;height:100%;transition:background-color .125s ease-in-out;display:flex;position:absolute}.basemap-toggle__image-overlay .basemap-toggle:hover{background-color:var(--calcite-color-background)}.basemap-toggle__title{text-align:center;background-color:var(--calcite-color-transparent-tint);flex:1 0 100%;height:auto;padding:.5em;font-size:var(--calcite-font-size-xs);font-weight:var(--calcite-font-weight-medium);line-height:var(--calcite-font-line-height-relative-tight)}.basemap-toggle__title-wrap{text-wrap:wrap}`,r="basemap-toggle",n="basemap-thumbnail",e={base:r,secondaryBasemapImage:`${r}__image--secondary`,container:`${n} ${r}__container`,image:`${n}__image ${r}__image`,imageLoading:`${r}__image--loading`,overlay:`${n}__overlay ${r}__image-overlay`,title:`${n}__title ${r}__title`,titleWrap:`${r}__title-wrap`,overlayScrim:`${n}__overlay-scrim`},D=z(j),m=class extends x{constructor(){super(...arguments),this.messages=$(),this.viewModel=D(this),this.view=this.viewModel.view,this.activeBasemap=this.viewModel.activeBasemap,this.autoDestroyDisabled=!1,this.icon="layer-basemap",this.nextBasemap=this.viewModel.nextBasemap,this.showTitle=!1,this.state=this.viewModel.state,this.arcgisPropertyChange=k()("activeBasemap","nextBasemap","state"),this.arcgisReady=w()}static{this.properties={view:0,activeBasemap:0,autoDestroyDisabled:5,icon:1,label:1,messageOverrides:0,nextBasemap:1,position:3,referenceElement:1,showTitle:5,state:3}}static{this.styles=C}async destroy(){await this.manager.destroy()}async toggle(){return await this.viewModel.toggle()}_getThumbnailStyles(t){let c=T(t);return c?{backgroundImage:`url(${c})`}:{backgroundImage:""}}render(){let t=this.viewModel,c=t.state==="disabled"?null:t.activeBasemap,a=t.state==="disabled"?null:t.nextBasemap,B=t.state==="loading",h=t.state==="incompatible-next-basemap",d=a?.title??"",_=a&&a.loadStatus!=="loaded",u,b=this.showTitle&&d,v=h,M=b||v,E=this._getThumbnailStyles(c),S=this._getThumbnailStyles(a);return M&&(u=o`<div class=${i(e.overlay)}>${b?o`<span class=${i(l(e.title,e.titleWrap))} title=${d??s}>${d}</span>`:null}${v?o`<calcite-scrim class=${i(e.overlayScrim)} title=${this.messages.incompatibleSpatialReference??s}><calcite-icon icon=exclamation-mark-triangle></calcite-icon></calcite-scrim>`:null}</div>`),o`<div class=${i(l(e.base,p.widget))}><calcite-button appearance=transparent data-basemap-id=${(a?a.id:"")??s} .disabled=${h} kind=neutral .label=${this.label??void 0} @click=${()=>void this.toggle()} title=${this.label??void 0??s}><div class=${i(l(e.container,e.secondaryBasemapImage))}><div class=${i(e.image)} style=${g(E)}></div></div><div class=${i(e.container)}><div class=${i(l(e.image,_?e.imageLoading:null))} style=${g(S)}>${_||B?o`<calcite-scrim><span aria-hidden=true class=${i(p.loaderAnimation)} role=presentation></span></calcite-scrim>`:null}</div>${u}</div></calcite-button></div>`}};y("arcgis-basemap-toggle",m);return m},"applications/Components/basemapUtils","widgets/BasemapToggle/BasemapToggleViewModel",a,b,c)
|
|
@@ -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"./6FNU7LLK.js";import{a as A}from"./GCPNUMA4.js";import{I as T,M as q,O as S,a as v,b as p}from"./N3BAMOML.js";import"./DXJI63DK.js";export default $arcgis.t(([{createReactiveMap:I,findUtilityNetwork:U,queryAllJSON:V,getOrCreateMapValue:D},{stripHTML:L},b,{ignoreAbortErrors:N},{watch:C},M,Q,B,P,x,G])=>{var O=v`.list-container{min-height:var(--calcite-spacing-xxxl)}.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.sticky-loading-container{display:flex;position:sticky;bottom:var(--calcite-spacing-sm);align-items:center;justify-content:center;z-index:2;margin:0;padding:0;height:var(--calcite-spacing-xxxl);pointer-events:none;height:500px}`,E=100,$={assetGroup:"assetgroup",assetType:"assettype"},j="{00000000-0000-0000-0000-000000000000}",k=class extends T{constructor(){super(...arguments),this._addFlowItem=t=>{t&&this.flowItems?.push(t)},this._attachmentAssociations=new b,this._attachmentFeatureCount=0,this._cancelQuery=()=>{let{_queryAbortController:t}=this;t&&t.abort(),this._queryAbortController=null},this._cancelQueryFeatureCount=()=>{let{_queryFeatureCountAbortController:t}=this;t&&t.abort(),this._queryFeatureCountAbortController=null},this._connectivityAssociations=new b,this._connectivityFeatureCount=0,this._containerAssociations=new b,this._containerFeatureCount=0,this._contentAssociations=new b,this._contentFeatureCount=0,this._networkSourceIdsInUse=new Set,this._query=async t=>{if(!t)return;await this._loadUtiltyNetworks();let{_queryAbortController:e}=this;this._destroyAssociatedFeatureViewModels(),this._clearFeatures(),this._featureCount&&await this._queryAssociatedFeatures(t,{signal:e?.signal})},this._queryController=async t=>{this._cancelQuery();let e=new AbortController;this._queryAbortController=e,await N(this._query(t)),this._queryAbortController===e&&(this._queryAbortController=null)},this._queryFeatureCountController=async()=>{this._loaded=!1,this._cancelQueryFeatureCount();let t=new AbortController;this._queryFeatureCountAbortController=t,await N(this._queryFeatureCount()),this._queryFeatureCountAbortController===t&&(this._queryFeatureCountAbortController=null),this._loaded=!0},this._queryDebounced=F(this._queryController,E),this._queryFeatureCountDebounced=F(this._queryFeatureCountController,E),this._structureAssociations=new b,this._structureFeatureCount=0,this._queryAssociationType=async()=>{this._activeAssociationType&&this._queryDebounced(this._activeAssociationType)},this._associationFeatures=I(),this._associationViewModels=I(),this._featureCount=0,this._loaded=!1,this._queryAbortController=null,this._queryFeatureCountAbortController=null,this._queryPageAbortController=null,this.associationTypes=null,this.autoDestroyDisabled=!1,this.flowType="feature-utility-network-associations",this.headingLevel=2,this.source="popup"}static{this.properties={_activeAssociationType:16,_associationFeatures:16,_associationViewModels:16,_canLoad:16,_canQuery:16,_featureCount:16,_loaded:16,_queryAbortController:16,_queryFeatureCountAbortController:16,_queryPageAbortController:16,_state:16,associationTypes:0,autoDestroyDisabled:5,description:1,flowItems:0,flowType:1,graphic:0,heading:1,headingLevel:9,layer:0,map:0,messages:0,parentFeatureViewModel:0,source:1,spatialReference:0,timeZone:1,view:0}}static{this.styles=O}get _globalId(){return(this._globalIdField&&this.graphic?.attributes?.[this._globalIdField])??null}get _globalIdField(){return this.layer?.globalIdField}get _objectId(){return(this._objectIdField&&this.graphic?.attributes?.[this._objectIdField])??null}get _objectIdField(){return this.layer?.objectIdField}get _supportsCacheHint(){return!!this.layer?.capabilities?.queryRelated?.supportsCacheHint}get _utilityNetwork(){let{layer:t,map:e}=this;if(!t?.loaded||!e)return null;let s=this._isSubtypeSublayer(t)?t.parent:t;return U(e,s)}get _canLoad(){return!!this.map}get _canQuery(){return!!this.layer?.capabilities?.query?.supportsPagination}get _state(){let{_canLoad:t,_canQuery:e,_featureCount:s,_loaded:a,_queryAbortController:i,_queryFeatureCountAbortController:o,_queryPageAbortController:c,associationTypes:l}=this;return o||t&&!a?"loading":i||c?"querying":!this._globalId||!l||!e||!s?"disabled":"ready"}get heading(){return this._heading}set heading(t){this._heading=t}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[C(()=>[this.graphic,this.layer,this.map,this.associationTypes,this._canQuery,this._objectId,this._globalId],()=>{this._queryFeatureCountDebounced(),this._queryAssociationType()},{initial:!0}),C(()=>this._activeAssociationType,t=>{this._queryDebounced(t)}),C(()=>this._associationFeatures.values(),()=>{this._setUpUtilityNetworkAssociationsViewModels()})]),this.manager.onDestroy(()=>{this._cancelQuery(),this._cancelQueryFeatureCount()})}_addAssociationTypeFlowItem(t){this._addFlowItem(q(p`<arcgis-feature-utility-network-association-list .associationViewModels=${this._associationViewModels} .description=${this.parentFeatureViewModel?.title} .flowItems=${this.flowItems} .flowType=${this.flowType} .heading=${this._getAssociationTypeTitle(t)} .messages=${this.messages} .map=${this.map} .parentFeatureViewModel=${this.parentFeatureViewModel} .state=${this._state} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature-utility-network-association-list>`))}_clearAssociations(){this._attachmentAssociations.removeAll(),this._connectivityAssociations.removeAll(),this._containerAssociations.removeAll(),this._contentAssociations.removeAll(),this._structureAssociations.removeAll()}_clearFeatures(){this._associationFeatures.forEach(t=>t.removeAll()),this._associationFeatures.clear()}_compareByFeatureTitle(t,e){return t.title.localeCompare(e.title,void 0,{numeric:!0})}async _countAssociatedFeatureCount(t,e,s,a,i){let o=this._getFeatureQueryWhereClause(t,e,s,a);return await t.queryFeatureCount({where:o,outFields:["*"],returnGeometry:!1},{signal:i?.signal})}async _countAssociatedFeatures(t,e,s,a,i){if(!e.length)return 0;let o=await this._findLayersBySourceId(t);await this._loadLayers(o);let c=o.map(l=>this._countAssociatedFeatureCount(l,e,s,a,i));return(await Promise.all(c)).reduce((l,r)=>l+r,0)}async _createAssociationFeatureObjects(t,e,s,a,i){if(!t.length)return[];let o=new Map,c=Array.from(e.entries()).map(async([r,d])=>{let u=await this._findLayersBySourceId(r);await this._loadLayers(u);let h=u.map(m=>this._queryLayer(m,d,s,a,i));(await Promise.all(h)).forEach(m=>{m.forEach(n=>{if(this.source==="popup"?n.sourceLayer&&n.getEffectivePopupTemplate():n.sourceLayer){let _=n.layer.globalIdField??"",y=n.attributes[_],w=o.get(y)??[];w.push(n),o.set(y,w)}})})});await Promise.all(c);let l=[];return await Promise.all(t.toArray().map(async r=>{let{fromNetworkElement:d,toNetworkElement:u}=r,h=d.globalId===this._globalId?u:d,m=o.get(h.globalId)??[];await Promise.all(m.map(async n=>{let _=this._utilityNetwork?.getTerminalById(h?.terminalId)?.name,y=await n.sourceLayer.getFeatureTitle(n)||this._getFeatureTitle(n);l.push({title:y,feature:n,association:r,terminalName:_})}))})),l}_destroyAssociatedFeatureViewModels(){this._associationViewModels.forEach(t=>t.destroyAll())}_equals(t,e){if(t.globalId===j&&e.globalId===j){let s=function(d,u){return d.networkSourceId===u.networkSourceId&&d.globalId===u.globalId&&d.terminalId===u.terminalId&&d.firstUnit===u.firstUnit&&d.numUnits===u.numUnits},a=t.fromNetworkElement,i=t.toNetworkElement,o=e.fromNetworkElement,c=e.toNetworkElement,l=s(a,o),r=s(i,c);return l&&r&&t.associationType===e.associationType}return t.globalId!=null&&e.globalId!=null&&t.globalId===e.globalId}async _findLayersBySourceId(t){let{_utilityNetwork:e,map:s}=this;e?.loaded||await e?.load();let a=e.getLayerIdBySourceId(t),i=s.allLayers.filter(c=>!!e?.isUtilityLayer(c)&&c.layerId===a),o=s.allTables.filter(c=>!!e?.isUtilityLayer(c)&&c.layerId===a);return i.concat(o).toArray()}_getAssociationsByType(t){switch(t){case"attachment":return this._attachmentAssociations;case"structure":return this._structureAssociations;case"connectivity":return this._connectivityAssociations;case"container":return this._containerAssociations;case"content":return this._contentAssociations}}_getAssociationTypeTitle(t){let{messages:e}=this;if(t.title)return t.title;switch(t.type){case"attachment":return e?.associationsAttachments??this.messages?.noTitle??"";case"connectivity":return e?.associationsConnectivity??this.messages?.noTitle??"";case"structure":return e?.associationsStructure??this.messages?.noTitle??"";case"content":return e?.associationsContents??this.messages?.noTitle??"";case"container":return e?.associationsContainer??this.messages?.noTitle??""}}_getFeatureCountForAssociationType(t){switch(t){case"attachment":return this._attachmentFeatureCount;case"structure":return this._structureFeatureCount;case"content":return this._contentFeatureCount;case"container":return this._containerFeatureCount;case"connectivity":return this._connectivityFeatureCount}}_getFeatureQueryWhereClause(t,e,s,a){let i=t.globalIdField,o=t.fieldsIndex.get($.assetGroup),c=t.fieldsIndex.get($.assetType),l=s!=null,r=a!=null,d=i?M.sqlIn(i,e):null,u=l?`(${o?.name} = ${s})`:null,h=l&&r?`(${c?.name} = ${a})`:null;return[d,u,h].filter(Boolean).join(" AND ")}_getFeatureTitle(t){let e=t.attributes,s=t.sourceLayer;if(!e||!s)return"";let a="displayField"in s?s.displayField:null,i=a!=null?e[a.toString()]:null,o=i!=null?i.toString():null,c=t.getObjectId()?.toString();return o||c||""}_isSubtypeGroupLayer(t){return t!=null&&typeof t=="object"&&"type"in t&&t.type==="subtype-group"&&"sublayers"in t}_isSubtypeSublayer(t){return t?.type==="subtype-sublayer"}async _loadUtiltyNetworks(){let t=this.map;if(!t)return;t.utilityNetworks&&await Promise.allSettled(t.utilityNetworks.map(s=>s.load()));let e=this._utilityNetwork;if(e){let s=a=>{if("layerId"in a&&e.isUtilityLayer(a)){let i=a.layerId!=null?e.getSourceIdByLayerId(a.layerId):null;i!=null&&this._networkSourceIdsInUse.add(i)}};this._networkSourceIdsInUse=new Set,t.allLayers.forEach(s),t.allTables.forEach(s)}}async _loadLayers(t){let e=t.filter(s=>!s.loaded).map(s=>s.load());e.length&&await Promise.allSettled(e)}_matchesGlobalFeature(t,e){return this._equals(t.association,e.association)}async _queryAssociatedFeatures(t,e){let{layer:s,_globalId:a,associationTypes:i,_utilityNetwork:o,_canQuery:c,_associationFeatures:l}=this;if(await Promise.allSettled([s?.load(),o?.load()]),!c||!s||!i||!o)return;let r=this._getAssociationsByType(t.type),{associatedAssetGroup:d,associatedAssetType:u}=t,h=new Map;r.forEach(n=>{let{fromNetworkElement:_,toNetworkElement:y}=n,{networkSourceId:w,elementGlobalId:f}=_.globalId===a?{networkSourceId:y.networkSourceId,elementGlobalId:y.globalId}:{networkSourceId:_.networkSourceId,elementGlobalId:_.globalId},g=h.get(w)||[];g.push(f),h.set(w,g)});let m=await this._createAssociationFeatureObjects(r,h,d,u,e);this._parseFeatureObjects(m,l)}async _queryAssociations(t){let{layer:e,_globalId:s,associationTypes:a,_utilityNetwork:i,_canQuery:o}=this;if(await Promise.allSettled([e?.load(),i?.load()]),this._clearAssociations(),!o||!e||!a||!i||!s)return;let c=this._isSubtypeSublayer(e)?e.parent:e,l=new Q({globalId:s,networkSourceId:i.getSourceIdByLayerId(c.layerId)}),r=new Set;a.forEach(n=>{switch(n.type){case"attachment":case"structure":r.add("attachment");break;case"container":case"content":r.add("containment");break;case"connectivity":r.add("connectivity"),r.add("junction-junction-connectivity"),r.add("junction-edge-from-connectivity"),r.add("junction-edge-midspan-connectivity"),r.add("junction-edge-to-connectivity");break}});let d=await i?.queryAssociations(new B({elements:[l],types:Array.from(r)}),{signal:t?.signal}),u=new Map,h=new Map;a.forEach(n=>{h.set(n.type,n),u.set(n.type,[])}),d.forEach(n=>{let{toNetworkElement:_,fromNetworkElement:y}=n;switch(n.associationType){case"attachment":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"attachment",h))break;u.get("attachment")?.push(_.globalId),this._attachmentAssociations.add(n)}else{if(this._shouldDiscardNetworkElement(y,"structure",h))break;u.get("structure")?.push(y.globalId),this._structureAssociations.add(n)}break;case"connectivity":case"junction-edge-from-connectivity":case"junction-edge-midspan-connectivity":case"junction-edge-to-connectivity":case"junction-junction-connectivity":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"connectivity",h))break;u.get("connectivity")?.push(_.globalId)}else{if(this._shouldDiscardNetworkElement(y,"connectivity",h))break;u.get("connectivity")?.push(y.globalId)}this._connectivityAssociations.add(n);break;case"containment":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"content",h))break;u.get("content")?.push(_.globalId),this._contentAssociations.add(n)}else{if(this._shouldDiscardNetworkElement(y,"container",h))break;u.get("container")?.push(y.globalId),this._containerAssociations.add(n)}break}});let m=a.map(async n=>{let{associatedNetworkSourceId:_,associatedAssetGroup:y,associatedAssetType:w}=n,f=u.get(n.type),g=y!=null?await this._countAssociatedFeatures(_,f,y,w,t):f.length;switch(n.type){case"attachment":this._attachmentFeatureCount=g;break;case"connectivity":this._connectivityFeatureCount=g;break;case"container":this._containerFeatureCount=g;break;case"content":this._contentFeatureCount=g;break;case"structure":this._structureFeatureCount=g;break}});await Promise.allSettled(m)}async _queryFeatureCount(){await this._loadUtiltyNetworks();let{_queryFeatureCountAbortController:t,_canQuery:e}=this;if(!e){this._featureCount=0;return}await this._queryAssociations(t),this._featureCount=this._attachmentFeatureCount+this._connectivityFeatureCount+this._containerFeatureCount+this._contentFeatureCount+this._structureFeatureCount}async _queryLayer(t,e,s,a,i){let o=this._getFeatureQueryWhereClause(t,e,s,a),c=new x({where:o,outFields:["*"],cacheHint:this._supportsCacheHint}),l=P.fromJSON(await V(t,c,i));return l.features.forEach(r=>{let d=this._isSubtypeGroupLayer(t);r.layer=d?t.findSublayerForFeature(r):t,r.sourceLayer=d?t.findSublayerForFeature(r):t}),l.features}_parseFeatureObjects(t,e){let s=I();t.forEach(a=>{let i=(a?.feature).sourceLayer;D(s,i,()=>new b).add(a)});for(let[a,i]of s)this._sortFeatureObjectsByTitle(i),e.set(a,i)}_selectAssociationType(t){let{flowItems:e}=this;e&&(this._activeAssociationType=t,this._setUpUtilityNetworkAssociationsViewModels(),this._addAssociationTypeFlowItem(t))}_setUpUtilityNetworkAssociationsViewModels(){this._associationViewModels.forEach((i,o)=>{let c=this._associationFeatures.get(o);c?i.forEach(l=>{c.find(r=>this._matchesGlobalFeature(l,r))||(i.remove(l),i.length||this._associationViewModels.delete(o))}):(i.removeAll(),this._associationViewModels.delete(o))});let{map:t,view:e,spatialReference:s,timeZone:a}=this;this._associationFeatures.forEach((i,o)=>{let c=this._associationViewModels.get(o)||new b;i?.filter(Boolean).forEach((l,r)=>{if(!c.some(d=>this._matchesGlobalFeature(d,l))){let{association:d,feature:u,terminalName:h,title:m}=l;c.add({title:m,association:d,featureViewModel:new G({abilities:{utilityNetworkAssociationsContent:!1},map:t,view:e,spatialReference:s,timeZone:a,graphic:u}),terminalName:h},r)}}),this._associationViewModels.set(o,c)})}_shouldDiscardNetworkElement(t,e,s){if(!t)return!1;let{networkSourceId:a}=t,i=s.get(e)?.associatedNetworkSourceId,o=this._networkSourceIdsInUse.has(a);return i!=null&&i!==a||!o}_sortFeatureObjectsByTitle(t){t.sort(this._compareByFeatureTitle)}render(){let{_state:t}=this;return p`<div><arcgis-feature-element-info .heading=${this.heading} .headingLevel=${this.headingLevel} .description=${this.description}></arcgis-feature-element-info>${t==="loading"?this._renderLoading():t==="disabled"?this._renderAssociationNotFound():this._renderContent()}</div>`}_renderAssociationNotFound(){return p`<calcite-notice icon=information kind=info open scale=s width=full><div slot=message>${this.messages?.noAssociations}</div></calcite-notice>`}_renderAssociationTypeList(t){return this._getFeatureCountForAssociationType(t.type)>0?this._renderAssociationTypeListItem(t):null}_renderAssociationTypeListItem(t){let e=this._getAssociationTypeTitle(t);return A(`association-type-${t.type}`,p`<calcite-list-item .description=${L(t.description)} .label=${L(e)} .value=${t.type} @calciteListItemSelect=${()=>this._selectAssociationType(t)}><calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>`)}_renderContent(){let{_state:t,associationTypes:e,messages:s}=this,a=s?.associationsList??s?.noTitle??"";return A("list-container",p`<div class="list-container">${t==="ready"?p`<div><calcite-list display-mode=flat .label=${a}>${e.map(i=>this._renderAssociationTypeList(i))}</calcite-list></div>`:null}${this._renderStickyLoading()}</div>`)}_renderLoading(){return p`<div class="loading-container">${this._renderLoadingIcon()}${this._renderStickyLoading()}</div>`}_renderLoadingIcon(){return p`<calcite-loader inline label></calcite-loader>`}_renderStickyLoading(){return this._state==="querying"?p`<div class="sticky-loading-container">${this._renderLoadingIcon()}</div>`:null}};S("arcgis-feature-utility-network-associations",k);return k},"applications/Components/featureUtils","applications/Components/stringUtils","core/Collection","core/promiseUtils","core/reactiveUtils","core/sql","rest/networks/support/NetworkElement","rest/networks/support/QueryAssociationsParameters","rest/support/FeatureSet","rest/support/Query","widgets/Feature/FeatureViewModel")
|
|
3
|
+
v5.0.0-next.92 */
|
|
4
|
+
import{a as F}from"./QE2FS5E5.js";import{a as A}from"./5PWGWHIR.js";import{I as T,M as q,O as S,a as v,b as p}from"./D7OM7PCI.js";import"./XSHH2JZG.js";export default $arcgis.t(([{createReactiveMap:I,findUtilityNetwork:U,queryAllJSON:V,getOrCreateMapValue:D},{stripHTML:L},b,{ignoreAbortErrors:N},{watch:C},M,Q,B,P,x,G])=>{var O=v`.list-container{min-height:var(--calcite-spacing-xxxl)}.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.sticky-loading-container{display:flex;position:sticky;bottom:var(--calcite-spacing-sm);align-items:center;justify-content:center;z-index:2;margin:0;padding:0;height:var(--calcite-spacing-xxxl);pointer-events:none;height:500px}`,E=100,$={assetGroup:"assetgroup",assetType:"assettype"},j="{00000000-0000-0000-0000-000000000000}",k=class extends T{constructor(){super(...arguments),this._addFlowItem=t=>{t&&this.flowItems?.push(t)},this._attachmentAssociations=new b,this._attachmentFeatureCount=0,this._cancelQuery=()=>{let{_queryAbortController:t}=this;t&&t.abort(),this._queryAbortController=null},this._cancelQueryFeatureCount=()=>{let{_queryFeatureCountAbortController:t}=this;t&&t.abort(),this._queryFeatureCountAbortController=null},this._connectivityAssociations=new b,this._connectivityFeatureCount=0,this._containerAssociations=new b,this._containerFeatureCount=0,this._contentAssociations=new b,this._contentFeatureCount=0,this._networkSourceIdsInUse=new Set,this._query=async t=>{if(!t)return;await this._loadUtiltyNetworks();let{_queryAbortController:e}=this;this._destroyAssociatedFeatureViewModels(),this._clearFeatures(),this._featureCount&&await this._queryAssociatedFeatures(t,{signal:e?.signal})},this._queryController=async t=>{this._cancelQuery();let e=new AbortController;this._queryAbortController=e,await N(this._query(t)),this._queryAbortController===e&&(this._queryAbortController=null)},this._queryFeatureCountController=async()=>{this._loaded=!1,this._cancelQueryFeatureCount();let t=new AbortController;this._queryFeatureCountAbortController=t,await N(this._queryFeatureCount()),this._queryFeatureCountAbortController===t&&(this._queryFeatureCountAbortController=null),this._loaded=!0},this._queryDebounced=F(this._queryController,E),this._queryFeatureCountDebounced=F(this._queryFeatureCountController,E),this._structureAssociations=new b,this._structureFeatureCount=0,this._queryAssociationType=async()=>{this._activeAssociationType&&this._queryDebounced(this._activeAssociationType)},this._associationFeatures=I(),this._associationViewModels=I(),this._featureCount=0,this._loaded=!1,this._queryAbortController=null,this._queryFeatureCountAbortController=null,this._queryPageAbortController=null,this.associationTypes=null,this.autoDestroyDisabled=!1,this.flowType="feature-utility-network-associations",this.headingLevel=2,this.source="popup"}static{this.properties={_activeAssociationType:16,_associationFeatures:16,_associationViewModels:16,_canLoad:16,_canQuery:16,_featureCount:16,_loaded:16,_queryAbortController:16,_queryFeatureCountAbortController:16,_queryPageAbortController:16,_state:16,associationTypes:0,autoDestroyDisabled:5,description:1,flowItems:0,flowType:1,graphic:0,heading:1,headingLevel:9,layer:0,map:0,messages:0,parentFeatureViewModel:0,source:1,spatialReference:0,timeZone:1,view:0}}static{this.styles=O}get _globalId(){return(this._globalIdField&&this.graphic?.attributes?.[this._globalIdField])??null}get _globalIdField(){return this.layer?.globalIdField}get _objectId(){return(this._objectIdField&&this.graphic?.attributes?.[this._objectIdField])??null}get _objectIdField(){return this.layer?.objectIdField}get _supportsCacheHint(){return!!this.layer?.capabilities?.queryRelated?.supportsCacheHint}get _utilityNetwork(){let{layer:t,map:e}=this;if(!t?.loaded||!e)return null;let s=this._isSubtypeSublayer(t)?t.parent:t;return U(e,s)}get _canLoad(){return!!this.map}get _canQuery(){return!!this.layer?.capabilities?.query?.supportsPagination}get _state(){let{_canLoad:t,_canQuery:e,_featureCount:s,_loaded:a,_queryAbortController:i,_queryFeatureCountAbortController:o,_queryPageAbortController:c,associationTypes:l}=this;return o||t&&!a?"loading":i||c?"querying":!this._globalId||!l||!e||!s?"disabled":"ready"}get heading(){return this._heading}set heading(t){this._heading=t}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[C(()=>[this.graphic,this.layer,this.map,this.associationTypes,this._canQuery,this._objectId,this._globalId],()=>{this._queryFeatureCountDebounced(),this._queryAssociationType()},{initial:!0}),C(()=>this._activeAssociationType,t=>{this._queryDebounced(t)}),C(()=>this._associationFeatures.values(),()=>{this._setUpUtilityNetworkAssociationsViewModels()})]),this.manager.onDestroy(()=>{this._cancelQuery(),this._cancelQueryFeatureCount()})}_addAssociationTypeFlowItem(t){this._addFlowItem(q(p`<arcgis-feature-utility-network-association-list .associationViewModels=${this._associationViewModels} .description=${this.parentFeatureViewModel?.title} .flowItems=${this.flowItems} .flowType=${this.flowType} .heading=${this._getAssociationTypeTitle(t)} .messages=${this.messages} .map=${this.map} .parentFeatureViewModel=${this.parentFeatureViewModel} .state=${this._state} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature-utility-network-association-list>`))}_clearAssociations(){this._attachmentAssociations.removeAll(),this._connectivityAssociations.removeAll(),this._containerAssociations.removeAll(),this._contentAssociations.removeAll(),this._structureAssociations.removeAll()}_clearFeatures(){this._associationFeatures.forEach(t=>t.removeAll()),this._associationFeatures.clear()}_compareByFeatureTitle(t,e){return t.title.localeCompare(e.title,void 0,{numeric:!0})}async _countAssociatedFeatureCount(t,e,s,a,i){let o=this._getFeatureQueryWhereClause(t,e,s,a);return await t.queryFeatureCount({where:o,outFields:["*"],returnGeometry:!1},{signal:i?.signal})}async _countAssociatedFeatures(t,e,s,a,i){if(!e.length)return 0;let o=await this._findLayersBySourceId(t);await this._loadLayers(o);let c=o.map(l=>this._countAssociatedFeatureCount(l,e,s,a,i));return(await Promise.all(c)).reduce((l,r)=>l+r,0)}async _createAssociationFeatureObjects(t,e,s,a,i){if(!t.length)return[];let o=new Map,c=Array.from(e.entries()).map(async([r,d])=>{let u=await this._findLayersBySourceId(r);await this._loadLayers(u);let h=u.map(m=>this._queryLayer(m,d,s,a,i));(await Promise.all(h)).forEach(m=>{m.forEach(n=>{if(this.source==="popup"?n.sourceLayer&&n.getEffectivePopupTemplate():n.sourceLayer){let _=n.layer.globalIdField??"",y=n.attributes[_],w=o.get(y)??[];w.push(n),o.set(y,w)}})})});await Promise.all(c);let l=[];return await Promise.all(t.toArray().map(async r=>{let{fromNetworkElement:d,toNetworkElement:u}=r,h=d.globalId===this._globalId?u:d,m=o.get(h.globalId)??[];await Promise.all(m.map(async n=>{let _=this._utilityNetwork?.getTerminalById(h?.terminalId)?.name,y=await n.sourceLayer.getFeatureTitle(n)||this._getFeatureTitle(n);l.push({title:y,feature:n,association:r,terminalName:_})}))})),l}_destroyAssociatedFeatureViewModels(){this._associationViewModels.forEach(t=>t.destroyAll())}_equals(t,e){if(t.globalId===j&&e.globalId===j){let s=function(d,u){return d.networkSourceId===u.networkSourceId&&d.globalId===u.globalId&&d.terminalId===u.terminalId&&d.firstUnit===u.firstUnit&&d.numUnits===u.numUnits},a=t.fromNetworkElement,i=t.toNetworkElement,o=e.fromNetworkElement,c=e.toNetworkElement,l=s(a,o),r=s(i,c);return l&&r&&t.associationType===e.associationType}return t.globalId!=null&&e.globalId!=null&&t.globalId===e.globalId}async _findLayersBySourceId(t){let{_utilityNetwork:e,map:s}=this;e?.loaded||await e?.load();let a=e.getLayerIdBySourceId(t),i=s.allLayers.filter(c=>!!e?.isUtilityLayer(c)&&c.layerId===a),o=s.allTables.filter(c=>!!e?.isUtilityLayer(c)&&c.layerId===a);return i.concat(o).toArray()}_getAssociationsByType(t){switch(t){case"attachment":return this._attachmentAssociations;case"structure":return this._structureAssociations;case"connectivity":return this._connectivityAssociations;case"container":return this._containerAssociations;case"content":return this._contentAssociations}}_getAssociationTypeTitle(t){let{messages:e}=this;if(t.title)return t.title;switch(t.type){case"attachment":return e?.associationsAttachments??this.messages?.noTitle??"";case"connectivity":return e?.associationsConnectivity??this.messages?.noTitle??"";case"structure":return e?.associationsStructure??this.messages?.noTitle??"";case"content":return e?.associationsContents??this.messages?.noTitle??"";case"container":return e?.associationsContainer??this.messages?.noTitle??""}}_getFeatureCountForAssociationType(t){switch(t){case"attachment":return this._attachmentFeatureCount;case"structure":return this._structureFeatureCount;case"content":return this._contentFeatureCount;case"container":return this._containerFeatureCount;case"connectivity":return this._connectivityFeatureCount}}_getFeatureQueryWhereClause(t,e,s,a){let i=t.globalIdField,o=t.fieldsIndex.get($.assetGroup),c=t.fieldsIndex.get($.assetType),l=s!=null,r=a!=null,d=i?M.sqlIn(i,e):null,u=l?`(${o?.name} = ${s})`:null,h=l&&r?`(${c?.name} = ${a})`:null;return[d,u,h].filter(Boolean).join(" AND ")}_getFeatureTitle(t){let e=t.attributes,s=t.sourceLayer;if(!e||!s)return"";let a="displayField"in s?s.displayField:null,i=a!=null?e[a.toString()]:null,o=i!=null?i.toString():null,c=t.getObjectId()?.toString();return o||c||""}_isSubtypeGroupLayer(t){return t!=null&&typeof t=="object"&&"type"in t&&t.type==="subtype-group"&&"sublayers"in t}_isSubtypeSublayer(t){return t?.type==="subtype-sublayer"}async _loadUtiltyNetworks(){let t=this.map;if(!t)return;t.utilityNetworks&&await Promise.allSettled(t.utilityNetworks.map(s=>s.load()));let e=this._utilityNetwork;if(e){let s=a=>{if("layerId"in a&&e.isUtilityLayer(a)){let i=a.layerId!=null?e.getSourceIdByLayerId(a.layerId):null;i!=null&&this._networkSourceIdsInUse.add(i)}};this._networkSourceIdsInUse=new Set,t.allLayers.forEach(s),t.allTables.forEach(s)}}async _loadLayers(t){let e=t.filter(s=>!s.loaded).map(s=>s.load());e.length&&await Promise.allSettled(e)}_matchesGlobalFeature(t,e){return this._equals(t.association,e.association)}async _queryAssociatedFeatures(t,e){let{layer:s,_globalId:a,associationTypes:i,_utilityNetwork:o,_canQuery:c,_associationFeatures:l}=this;if(await Promise.allSettled([s?.load(),o?.load()]),!c||!s||!i||!o)return;let r=this._getAssociationsByType(t.type),{associatedAssetGroup:d,associatedAssetType:u}=t,h=new Map;r.forEach(n=>{let{fromNetworkElement:_,toNetworkElement:y}=n,{networkSourceId:w,elementGlobalId:f}=_.globalId===a?{networkSourceId:y.networkSourceId,elementGlobalId:y.globalId}:{networkSourceId:_.networkSourceId,elementGlobalId:_.globalId},g=h.get(w)||[];g.push(f),h.set(w,g)});let m=await this._createAssociationFeatureObjects(r,h,d,u,e);this._parseFeatureObjects(m,l)}async _queryAssociations(t){let{layer:e,_globalId:s,associationTypes:a,_utilityNetwork:i,_canQuery:o}=this;if(await Promise.allSettled([e?.load(),i?.load()]),this._clearAssociations(),!o||!e||!a||!i||!s)return;let c=this._isSubtypeSublayer(e)?e.parent:e,l=new Q({globalId:s,networkSourceId:i.getSourceIdByLayerId(c.layerId)}),r=new Set;a.forEach(n=>{switch(n.type){case"attachment":case"structure":r.add("attachment");break;case"container":case"content":r.add("containment");break;case"connectivity":r.add("connectivity"),r.add("junction-junction-connectivity"),r.add("junction-edge-from-connectivity"),r.add("junction-edge-midspan-connectivity"),r.add("junction-edge-to-connectivity");break}});let d=await i?.queryAssociations(new B({elements:[l],types:Array.from(r)}),{signal:t?.signal}),u=new Map,h=new Map;a.forEach(n=>{h.set(n.type,n),u.set(n.type,[])}),d.forEach(n=>{let{toNetworkElement:_,fromNetworkElement:y}=n;switch(n.associationType){case"attachment":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"attachment",h))break;u.get("attachment")?.push(_.globalId),this._attachmentAssociations.add(n)}else{if(this._shouldDiscardNetworkElement(y,"structure",h))break;u.get("structure")?.push(y.globalId),this._structureAssociations.add(n)}break;case"connectivity":case"junction-edge-from-connectivity":case"junction-edge-midspan-connectivity":case"junction-edge-to-connectivity":case"junction-junction-connectivity":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"connectivity",h))break;u.get("connectivity")?.push(_.globalId)}else{if(this._shouldDiscardNetworkElement(y,"connectivity",h))break;u.get("connectivity")?.push(y.globalId)}this._connectivityAssociations.add(n);break;case"containment":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"content",h))break;u.get("content")?.push(_.globalId),this._contentAssociations.add(n)}else{if(this._shouldDiscardNetworkElement(y,"container",h))break;u.get("container")?.push(y.globalId),this._containerAssociations.add(n)}break}});let m=a.map(async n=>{let{associatedNetworkSourceId:_,associatedAssetGroup:y,associatedAssetType:w}=n,f=u.get(n.type),g=y!=null?await this._countAssociatedFeatures(_,f,y,w,t):f.length;switch(n.type){case"attachment":this._attachmentFeatureCount=g;break;case"connectivity":this._connectivityFeatureCount=g;break;case"container":this._containerFeatureCount=g;break;case"content":this._contentFeatureCount=g;break;case"structure":this._structureFeatureCount=g;break}});await Promise.allSettled(m)}async _queryFeatureCount(){await this._loadUtiltyNetworks();let{_queryFeatureCountAbortController:t,_canQuery:e}=this;if(!e){this._featureCount=0;return}await this._queryAssociations(t),this._featureCount=this._attachmentFeatureCount+this._connectivityFeatureCount+this._containerFeatureCount+this._contentFeatureCount+this._structureFeatureCount}async _queryLayer(t,e,s,a,i){let o=this._getFeatureQueryWhereClause(t,e,s,a),c=new x({where:o,outFields:["*"],cacheHint:this._supportsCacheHint}),l=P.fromJSON(await V(t,c,i));return l.features.forEach(r=>{let d=this._isSubtypeGroupLayer(t);r.layer=d?t.findSublayerForFeature(r):t,r.sourceLayer=d?t.findSublayerForFeature(r):t}),l.features}_parseFeatureObjects(t,e){let s=I();t.forEach(a=>{let i=(a?.feature).sourceLayer;D(s,i,()=>new b).add(a)});for(let[a,i]of s)this._sortFeatureObjectsByTitle(i),e.set(a,i)}_selectAssociationType(t){let{flowItems:e}=this;e&&(this._activeAssociationType=t,this._setUpUtilityNetworkAssociationsViewModels(),this._addAssociationTypeFlowItem(t))}_setUpUtilityNetworkAssociationsViewModels(){this._associationViewModels.forEach((i,o)=>{let c=this._associationFeatures.get(o);c?i.forEach(l=>{c.find(r=>this._matchesGlobalFeature(l,r))||(i.remove(l),i.length||this._associationViewModels.delete(o))}):(i.removeAll(),this._associationViewModels.delete(o))});let{map:t,view:e,spatialReference:s,timeZone:a}=this;this._associationFeatures.forEach((i,o)=>{let c=this._associationViewModels.get(o)||new b;i?.filter(Boolean).forEach((l,r)=>{if(!c.some(d=>this._matchesGlobalFeature(d,l))){let{association:d,feature:u,terminalName:h,title:m}=l;c.add({title:m,association:d,featureViewModel:new G({abilities:{utilityNetworkAssociationsContent:!1},map:t,view:e,spatialReference:s,timeZone:a,graphic:u}),terminalName:h},r)}}),this._associationViewModels.set(o,c)})}_shouldDiscardNetworkElement(t,e,s){if(!t)return!1;let{networkSourceId:a}=t,i=s.get(e)?.associatedNetworkSourceId,o=this._networkSourceIdsInUse.has(a);return i!=null&&i!==a||!o}_sortFeatureObjectsByTitle(t){t.sort(this._compareByFeatureTitle)}render(){let{_state:t}=this;return p`<div><arcgis-feature-element-info .heading=${this.heading} .headingLevel=${this.headingLevel} .description=${this.description}></arcgis-feature-element-info>${t==="loading"?this._renderLoading():t==="disabled"?this._renderAssociationNotFound():this._renderContent()}</div>`}_renderAssociationNotFound(){return p`<calcite-notice icon=information kind=info open scale=s width=full><div slot=message>${this.messages?.noAssociations}</div></calcite-notice>`}_renderAssociationTypeList(t){return this._getFeatureCountForAssociationType(t.type)>0?this._renderAssociationTypeListItem(t):null}_renderAssociationTypeListItem(t){let e=this._getAssociationTypeTitle(t);return A(`association-type-${t.type}`,p`<calcite-list-item .description=${L(t.description)} .label=${L(e)} .value=${t.type} @calciteListItemSelect=${()=>this._selectAssociationType(t)}><calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>`)}_renderContent(){let{_state:t,associationTypes:e,messages:s}=this,a=s?.associationsList??s?.noTitle??"";return A("list-container",p`<div class="list-container">${t==="ready"?p`<div><calcite-list display-mode=flat .label=${a}>${e.map(i=>this._renderAssociationTypeList(i))}</calcite-list></div>`:null}${this._renderStickyLoading()}</div>`)}_renderLoading(){return p`<div class="loading-container">${this._renderLoadingIcon()}${this._renderStickyLoading()}</div>`}_renderLoadingIcon(){return p`<calcite-loader inline label></calcite-loader>`}_renderStickyLoading(){return this._state==="querying"?p`<div class="sticky-loading-container">${this._renderLoadingIcon()}</div>`:null}};S("arcgis-feature-utility-network-associations",k);return k},"applications/Components/featureUtils","applications/Components/stringUtils","core/Collection","core/promiseUtils","core/reactiveUtils","core/sql","rest/networks/support/NetworkElement","rest/networks/support/QueryAssociationsParameters","rest/support/FeatureSet","rest/support/Query","widgets/Feature/FeatureViewModel")
|
|
@@ -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.92 */
|
|
4
|
+
import a from"./HZOCJITH.js";import{I as g,J as i,K as o,O as p,a as n,b as t}from"./D7OM7PCI.js";import"./XSHH2JZG.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.
|
|
3
|
+
v5.0.0-next.92 */
|
|
4
4
|
Intl.DateTimeFormat().resolvedOptions().timeZone;var o={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8};function r(e,n,i){return e===0?0:e*o[n]/o[i]}function u(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function l(e,n,i="hours"){let t=new Date(e.getTime()),s=r(n,i,"milliseconds");return t.setTime(t.getTime()+s),t}function a(e,n){let i=r(n,"hours","milliseconds"),t=new Date(e.getTime()+i),s=t.toISOString().slice(0,10),c=t.getUTCHours()*60+t.getUTCMinutes();return{localDate:s,minutesSinceMidnight:c}}function f(e){let n=e?.environment?.lighting;if(m(n)){let i=n.displayUTCOffset??0,t=n.date;if(u(t)){let{localDate:s}=a(t,i);return s}}}function m(e){return e?.type==="sun"}export{r as a,u as b,l as c,a as d,f as e,m as f};
|
|
@@ -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.92 */
|
|
4
|
+
import"./XSHH2JZG.js";var r={_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:"e.Kr.",_era_bc:"f.Kr.",A:"a",P:"p",AM:"AM",PM:"PM","A.M.":"AM","P.M.":"PM",January:"januar",February:"februar",March:"marts",April:"april",May:"maj",June:"juni",July:"juli",August:"august",September:"september",October:"oktober",November:"november",December:"december",Jan:"jan.",Feb:"feb.",Mar:"mar.",Apr:"apr.","May(short)":"maj",Jun:"jun.",Jul:"jul.",Aug:"aug.",Sep:"sep.",Oct:"okt.",Nov:"nov.",Dec:"dec.",Sunday:"s\xF8ndag",Monday:"mandag",Tuesday:"tirsdag",Wednesday:"onsdag",Thursday:"torsdag",Friday:"fredag",Saturday:"l\xF8rdag",Sun:"s\xF8n.",Mon:"man.",Tue:"tir.",Wed:"ons.",Thu:"tor.",Fri:"fre.",Sat:"l\xF8r.",_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":"Zoom",Play:"Afspil",Stop:"Stop",Legend:"Signaturforklaring","Press ENTER to toggle":"",Loading:"Indl\xE6ser",Home:"Hjem",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:"Udskriv",Image:"Billede",Data:"Data",Print:"Udskriv","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:"","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":"Fra %1 til %2","From %1":"Fra %1","To %1":"Til %1","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:"",Confirm:""};export{r 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"./
|
|
3
|
+
v5.0.0-next.92 */
|
|
4
|
+
import"./XSHH2JZG.js";var r={_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:"i. sz.",_era_bc:"i. e.",A:"de.",P:"du.",AM:"de.",PM:"du.","A.M.":"de.","P.M.":"du.",January:"janu\xE1r",February:"febru\xE1r",March:"m\xE1rcius",April:"\xE1prilis",May:"m\xE1jus",June:"j\xFAnius",July:"j\xFAlius",August:"augusztus",September:"szeptember",October:"okt\xF3ber",November:"november",December:"december",Jan:"jan.",Feb:"febr.",Mar:"m\xE1rc.",Apr:"\xE1pr.","May(short)":"m\xE1j.",Jun:"j\xFAn.",Jul:"j\xFAl.",Aug:"aug.",Sep:"szept.",Oct:"okt.",Nov:"nov.",Dec:"dec.",Sunday:"vas\xE1rnap",Monday:"h\xE9tf\u0151",Tuesday:"kedd",Wednesday:"szerda",Thursday:"cs\xFCt\xF6rt\xF6k",Friday:"p\xE9ntek",Saturday:"szombat",Sun:"V",Mon:"H",Tue:"K",Wed:"Sze",Thu:"Cs",Fri:"P",Sat:"Szo",_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":"Nagy\xEDt\xE1s/kicsiny\xEDt\xE9s",Play:"Lej\xE1tsz\xE1s",Stop:"Meg\xE1ll\xF3",Legend:"Jelmagyar\xE1zat","Press ENTER to toggle":"",Loading:"Bet\xF6lt\xE9s",Home:"Kezd\u0151lap",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:"Nyomtat\xE1s",Image:"K\xE9p",Data:"Adatok",Print:"Nyomtat\xE1s","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":"Ett\u0151l %1 eddig %2","From %1":"Ett\u0151l %1","To %1":"Eddig %1","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:"",Confirm:""};export{r 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.92 */
|
|
4
|
+
import b from"./ZQLFN5FG.js";import a from"./HZOCJITH.js";import{b as f}from"./DEBK2ZK4.js";import{I as h,J as t,K as y,O as _,a as g,b as n}from"./D7OM7PCI.js";import"./XSHH2JZG.js";export default $arcgis.t(([{c:v},{e:$}])=>{var R=g`:host{display:flex}.arcgis-legend--card__layer-row{display:flex;flex:1}.arcgis-legend--card__color-ramp-container{justify-content:center}.arcgis-legend--card__symbol-container{display:flex;flex-direction:column}.arcgis-legend--card__interval-separators-container{text-align:center}.arcgis-legend--card__interval-separator{font-size:.5em}.arcgis-legend--card__ramp-label{margin:0 .5em;white-space:nowrap;height:25px;line-height:var(--calcite-font-line-height-fixed-xl)}`,i={layerRow:"arcgis-legend--card__layer-row",colorRampContainer:"arcgis-legend--card__color-ramp-container",symbolContainer:"arcgis-legend--card__symbol-container",intervalSeparatorsContainer:"arcgis-legend--card__interval-separators-container",intervalSeparator:"arcgis-legend--card__interval-separator",rampLabel:"arcgis-legend--card__ramp-label"},C=25,E=25,S=100,p=class extends h{constructor(){super(...arguments),this.legendElement=null,this.opacity=1}static{this.properties={cssEffectFilter:1,legendElement:0,opacity:9,messages:0}}static{this.styles=R}render(){let e=this.legendElement.infos.slice().reverse();return n`<div class=${t(f(i.layerRow,i.colorRampContainer))}>${this._renderRampLabel(e[0])}<div class=${t(i.symbolContainer)}>${this._renderPreview(e)}${this._renderMiddleStopRampLabel(e)}</div>${this._renderRampLabel(e.at(-1))}</div>`}_renderPreview(e){let{opacity:s}=this,d=this.legendElement.type==="heatmap-ramp",o=e.length-1,r=E,l=o>2&&!d?C*o:S,m=l+20,a=10,b=[[{shape:{type:"path",path:`M0 ${r/2} L${a} 0 L${a} ${r} Z`},fill:e[0].color,stroke:{width:0}},{shape:{type:"rect",x:a,y:0,width:l,height:r},fill:{type:"linear",x1:a,y1:0,x2:l+a,y2:0,colors:e.map((c,u)=>({color:c.color,offset:d&&"ratio"in c?c.ratio:u/o}))},stroke:{width:0}},{shape:{type:"path",path:`M${l+a} 0 L${m} ${r/2} L${l+a} ${r} Z`},fill:e[e.length-1].color,stroke:{width:0}}]],L=this.legendElement.type==="opacity-ramp"?this.messages.previewOpacityRampAriaLabel:this.messages.previewColorRampAriaLabel,w=$(b,m,r,{ariaLabel:L}),x={filter:this.cssEffectFilter,opacity:s==null?void 0:`${s}`};return n`<div style=${y(x)}>${w}</div>`}_renderMiddleStopRampLabel(e){let s=e.length%2!==0?e[e.length/2|0]:null;return s?n`<div class=${t(i.intervalSeparatorsContainer)}><div class=${t(i.intervalSeparator)}>|</div>${this._renderRampLabel(s)}</div>`:null}_renderRampLabel(e){return n`<div class=${t(i.rampLabel)}>${v(e,this.legendElement.type,this.messages)}</div>`}};_("arcgis-legend-card-color-ramp",p);return p},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 c from"./
|
|
3
|
+
v5.0.0-next.92 */
|
|
4
|
+
import c from"./UWJVNIFI.js";import{a as g}from"./ECBC3KB6.js";import b from"./G46MJ3MY.js";import a from"./TLIFTU62.js";import{g as m}from"./2WTZVJD5.js";import"./TQMZD3E7.js";import"./DJMJ44ZT.js";import"./DEBK2ZK4.js";import"./SZLHYT5W.js";import{I as n,J as h,O as d,a as s,b as e,s as l}from"./D7OM7PCI.js";import"./XSHH2JZG.js";export default $arcgis.t(([v,,{a:p},u])=>{var $=s``,y={basicLayoutCategory:["basic-grid"],organicLayoutCategory:["organic-standard","organic-community","geographic-organic-standard"],treeLayoutCategory:["tree-left-to-right","radial-root-centric"],hierarchicalLayoutCategory:["hierarchical-bottom-to-top"],chronologicalLayoutCategory:["chronological-mono-timeline","chronological-multi-timeline"]},w={"organic-standard":"force-directed-link-chart-layout","organic-community":"community-link-chart-layout","basic-grid":"simple-link-chart-layout","hierarchical-bottom-to-top":"hierarchical-link-chart-layout","radial-root-centric":"radial-tree-link-chart-layout","tree-left-to-right":"smart-tree-link-chart-layout","geographic-organic-standard":"geographic-link-chart-layout","chronological-mono-timeline":"single-timeline","chronological-multi-timeline":"multi-timeline"},b={"organic-standard":"forceDirected","organic-community":"community","basic-grid":"simple","hierarchical-bottom-to-top":"hierarchical","radial-root-centric":"radialTree","tree-left-to-right":"smartTree","geographic-organic-standard":"geographic","chronological-mono-timeline":"chronologicalSingle","chronological-multi-timeline":"chronologicalMultiple"},L={base:"link-chart-layout-switcher"},f=u(v),c=class extends n{constructor(){super(...arguments),this.messages=g(),this.viewModel=f(this),this.view=this.viewModel.view,this.appearance="dropdown",this.autoDestroyDisabled=!1,this.closeOnSelectDisabled=!1,this.icon="nodes-link",this.layout=this.viewModel.layout,this.preventExtentUpdate=this.viewModel.preventExtentUpdate,this.state=this.viewModel.state,this.arcgisSwitchLayout=p(()=>this.viewModel,"switchLayout"),this.arcgisPropertyChange=m()("state"),this.arcgisReady=l()}static{this.properties={view:0,appearance:1,autoDestroyDisabled:5,closeOnSelectDisabled:5,icon:0,label:1,layout:32,messageOverrides:0,position:3,preventExtentUpdate:5,referenceElement:1,state:3}}static{this.styles=$}async destroy(){await this.manager.destroy()}async switchLayout(t){this.viewModel.switchLayout(t)}_renderDropdown(){let{messages:t,icon:a}=this;return e`<calcite-dropdown scale=s width=m max-items=9 .closeOnSelectDisabled=${this.closeOnSelectDisabled}><calcite-action slot=trigger .disabled=${this.viewModel.state==="disabled"} .icon=${a??void 0} .label=${t.layoutOptions??"Layout"} scale=s .text=${t.layoutOptions??"Layout"}></calcite-action>${Object.entries(y).map(([r,i])=>e`<calcite-dropdown-group selection-mode=single .groupTitle=${this.messages[r]}>${i.map(o=>e`<calcite-dropdown-item .iconStart=${w[o]} .selected=${o===this.layout?!0:void 0} @click=${()=>void this.switchLayout(o)}>${t[b[o]]}</calcite-dropdown-item>`)}</calcite-dropdown-group>`)}</calcite-dropdown>`}_renderMenuBar(){let{messages:t}=this;return e`<calcite-action-bar scale=s floating overflow-actions-disabled>${Object.entries(y).map(([a,r])=>e`<calcite-action-group .label=${this.messages[a]}>${r.map(i=>e`<calcite-action scale=s .icon=${w[i]} .active=${i===this.layout?!0:void 0} @click=${()=>void this.switchLayout(i)} .text=${t[b[i]]}></calcite-action>`)}</calcite-action-group>`)}</calcite-action-bar>`}render(){let{appearance:t}=this,a=t==="menu-bar"?this._renderMenuBar():this._renderDropdown();return e`<div class=${h(L.base)}>${a}</div>`}};d("arcgis-link-chart-layout-switcher",c);return c},"widgets/LinkChartLayoutSwitcher/LinkChartLayoutSwitcherViewModel",a,b,c)
|
|
@@ -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.92 */
|
|
4
|
+
import"./XSHH2JZG.js";var _={_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 - yyyy-MM-dd",_date_hour:"HH:mm",_date_hour_short:"HH",_date_hour_full:"HH:mm - yyyy-MM-dd",_date_day:"MMM dd",_date_day_full:"yyyy-MM-dd",_date_week:"ww",_date_week_full:"yyyy-MM-dd",_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. l.",_era_bc:"pr. n. l.",A:"dop.",P:"odp.",AM:"dop.",PM:"odp.","A.M.":"dop.","P.M.":"odp.",January:"janu\xE1ra",February:"febru\xE1ra",March:"marca",April:"apr\xEDla",May:"m\xE1ja",June:"j\xFAna",July:"j\xFAla",August:"augusta",September:"septembra",October:"okt\xF3bra",November:"novembra",December:"decembra",Jan:"jan",Feb:"feb",Mar:"mar",Apr:"apr","May(short)":"m\xE1j",Jun:"j\xFAn",Jul:"j\xFAl",Aug:"aug",Sep:"sep",Oct:"okt",Nov:"nov",Dec:"dec",Sunday:"nedela",Monday:"pondelok",Tuesday:"utorok",Wednesday:"streda",Thursday:"\u0161tvrtok",Friday:"piatok",Saturday:"sobota",Sun:"ne",Mon:"po",Tue:"ut",Wed:"st",Thu:"\u0161t",Fri:"pi",Sat:"so",_dateOrd:function(e){return"."},"Zoom Out":"Zv\xE4\u010D\u0161enie",Play:"Prehra\u0165",Stop:"Ukon\u010Di\u0165 iter\xE1ciu (Stop)",Legend:"Legenda","Click, tap or press ENTER to toggle":"",Loading:"Na\u010D\xEDtanie",Home:"Domov",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:"Export",Image:"Obr\xE1zok",Data:"Data",Print:"Tla\u010D","Click, tap or press ENTER to open":"","Click, tap or press ENTER to print.":"","Click, tap or press ENTER to export as %1.":"","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{_ 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.
|
|
3
|
+
v5.0.0-next.92 */
|
|
4
4
|
var c=new Set,f;var g=e=>typeof e=="string"?e:"el"in e?e.el.localName:"localName"in e?e.localName:e.declaredClass,p=(e,a,r,o)=>{let n=g(a);if(o?.once){let t=`${e}${n}${r}`;if(c.has(t))return;c.add(t)}let i;if(o?.detail){i={};for(let[t,s]of Object.entries(o.detail))if((typeof s=="object"||typeof s=="function")&&s!==null){let l=new WeakRef(s);Object.defineProperty(i,t,{get(){return l.deref()}})}else i[t]=s;f?.log.interceptors?.forEach(t=>t(e,n,r,i)),console[e](`[${n}]`,r,i)}else f?.log.interceptors?.forEach(t=>t(e,n,r)),console[e](`[${n}]`,r)},d=e=>`The property \`${e.toString()}\` is required but missing.`,u=e=>`The property \`${e.toString()}\` is empty but must have at least one element.`,y=(e,a,r,o)=>p("warn",e,`\`${a.toString()}\` is deprecated. Use \`${r.toString()}\` instead.`,o);export{p as a,d as b,u as c,y as d};
|
|
@@ -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 as s,O as r,b as a}from"./
|
|
3
|
+
v5.0.0-next.92 */
|
|
4
|
+
import{I as s,O as r,b as a}from"./D7OM7PCI.js";import"./XSHH2JZG.js";export default $arcgis.t(([{watch:p}])=>{var t=class extends s{constructor(){super(...arguments),this._dpi=1}static{this.properties={_dpi:16,viewModel:0,messages:0}}loaded(){this.manager.onLifecycle(()=>[p(()=>this.viewModel.templateOptions.dpi,e=>this._dpi=e<=0?1:e,{initial:!0})])}_handleDPIChange(e){let n=this.viewModel.templateOptions,i=Number(e.target.value);if(Number.isNaN(i)||i<=0||!Number.isFinite(i)){e.target.value=`${this._dpi}`;return}n.dpi=i}render(){return a`<div><calcite-label>${this.messages.dpi}<calcite-input-number data-input-name=dpi min=1 .value=${`${this._dpi}`} .max=${Number.MAX_SAFE_INTEGER} @calciteInputNumberInput=${this._handleDPIChange}></calcite-input-number></calcite-label></div>`}};r("arcgis-print-dpi-input",t);return t},"core/reactiveUtils")
|