@arcgis/map-components 5.0.0-next.93 → 5.0.0-next.95
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/{TP7S47WJ.js → 2BHNUR46.js} +2 -2
- package/dist/cdn/2JIA43CV.js +4 -0
- package/dist/cdn/{ECR6L3R2.js → 2OZ542LG.js} +2 -2
- package/dist/cdn/2V2GLSV4.js +4 -0
- package/dist/cdn/{BEPXBBSX.js → 34RS2MBL.js} +2 -2
- package/dist/cdn/36ERNOGL.js +4 -0
- package/dist/cdn/{BJIJTBTP.js → 36GCBVQY.js} +2 -2
- package/dist/cdn/{RDVX7SAC.js → 3BPU4YK5.js} +2 -2
- package/dist/cdn/{L47HCJ6Z.js → 3DXHWHAI.js} +2 -2
- package/dist/cdn/{7CIDOHVU.js → 3KM2O7BZ.js} +2 -2
- package/dist/cdn/{WQF4MTVK.js → 3QRQFXKK.js} +2 -2
- package/dist/cdn/{GBRRLZHP.js → 3QWHR4XL.js} +2 -2
- package/dist/cdn/{TEDENAD4.js → 46LHVJVD.js} +2 -2
- package/dist/cdn/{ZQ7REL2H.js → 4IMJ2CHO.js} +2 -2
- package/dist/cdn/{AGQVEZYR.js → 4LIWQNR5.js} +2 -2
- package/dist/cdn/{RMFHLF4D.js → 4OAFKXWB.js} +2 -2
- package/dist/cdn/{TYQXL7A4.js → 4UCTGUKZ.js} +2 -2
- package/dist/cdn/{7ZQ2L277.js → 55KQI2K2.js} +2 -2
- package/dist/cdn/56I5DPLB.js +4 -0
- package/dist/cdn/{RUGXQBMX.js → 5RJMBI6A.js} +2 -2
- package/dist/cdn/{WIXVZBFB.js → 5SICEPMU.js} +2 -2
- package/dist/cdn/67OCL2CG.js +4 -0
- package/dist/cdn/{APEJ2ZG4.js → 6EFGOE2N.js} +2 -2
- package/dist/cdn/6FXLPZJC.js +4 -0
- package/dist/cdn/6H7GCW23.js +4 -0
- package/dist/cdn/{SSIAIKDQ.js → 6HP7EN3F.js} +2 -2
- package/dist/cdn/{5AZGJJBB.js → 6ISW4DPK.js} +2 -2
- package/dist/cdn/{NMGGHZL2.js → 6KF2PMW2.js} +2 -2
- package/dist/cdn/{QTPE6SDR.js → 6XZMR2VE.js} +2 -2
- package/dist/cdn/{ROUSH4OT.js → 72MWPP7L.js} +1 -1
- package/dist/cdn/{B53ZEH7P.js → 73RRPEOX.js} +2 -2
- package/dist/cdn/{NTFEZJBT.js → 7B7WUMCQ.js} +2 -2
- package/dist/cdn/{3I4WU4YC.js → 7BGP66E4.js} +2 -2
- package/dist/cdn/{LTGS7O3N.js → 7EUNZL7X.js} +2 -2
- package/dist/cdn/{H6VQWOFY.js → 7IZSZJGN.js} +2 -2
- package/dist/cdn/7LVEDDDE.js +4 -0
- package/dist/cdn/7OXTM3RQ.js +6 -0
- package/dist/cdn/{OIXKJYZO.js → 7POS2EGD.js} +2 -2
- package/dist/cdn/{SIHNLNEA.js → 7WS7CGON.js} +2 -2
- package/dist/cdn/{DCS6TDWA.js → 7YSQJH3Y.js} +2 -2
- package/dist/cdn/AC2WZABE.js +4 -0
- package/dist/cdn/ALKW6LY6.js +4 -0
- package/dist/cdn/{OEPP6CY5.js → AWZVNGSO.js} +2 -2
- package/dist/cdn/{PBU27SUZ.js → B37SSQNT.js} +2 -2
- package/dist/cdn/{SGSYHTAS.js → BHCCBQ4S.js} +2 -2
- package/dist/cdn/{6PJ27SYB.js → BJTFOOSY.js} +2 -2
- package/dist/cdn/BP3VU3TI.js +4 -0
- package/dist/cdn/{JP2GTDWK.js → BPAA5SY7.js} +2 -2
- package/dist/cdn/{ZJ33DUZU.js → BPJEBI4X.js} +2 -2
- package/dist/cdn/{WXEYFVOL.js → BQIBNELV.js} +2 -2
- package/dist/cdn/{OGC3V7MA.js → BQKR5GKP.js} +2 -2
- package/dist/cdn/{BXSJVOYL.js → BZVF25R6.js} +2 -2
- package/dist/cdn/CIMLJ74H.js +4 -0
- package/dist/cdn/{PYZFQI5C.js → CMF7GRQR.js} +2 -2
- package/dist/cdn/CMXTUU35.js +4 -0
- package/dist/cdn/CTH4TNHF.js +4 -0
- package/dist/cdn/{GYMFVTHG.js → CXWOTMUB.js} +2 -2
- package/dist/cdn/{PSKZO72G.js → CZYJF72K.js} +2 -2
- package/dist/cdn/{5BNYLJUH.js → DBPE7ZMC.js} +2 -2
- package/dist/cdn/DFKDQ7T2.js +4 -0
- package/dist/cdn/DNLVST7T.js +4 -0
- package/dist/cdn/{QPVKKBNQ.js → DP4SNVJM.js} +2 -2
- package/dist/cdn/{DH5N3EYA.js → DPN77VOB.js} +2 -2
- package/dist/cdn/{5DYLDR23.js → DQC7MEQT.js} +1 -1
- package/dist/cdn/{I7JCDSDM.js → DQI6G43Q.js} +1 -1
- package/dist/cdn/DTB4AHKG.js +4 -0
- package/dist/cdn/{5X7I5S7U.js → EAF6HFJY.js} +1 -1
- package/dist/cdn/{G2DLQJ7Y.js → ERB5XKCF.js} +2 -2
- package/dist/cdn/{DUV6P2BW.js → ES5HS3ZB.js} +2 -2
- package/dist/cdn/{IPHW34NC.js → EX2U7HMY.js} +2 -2
- package/dist/cdn/{PJ77LCUF.js → EZTHX5J2.js} +2 -2
- package/dist/cdn/EZVNP2LQ.js +4 -0
- package/dist/cdn/{IJ5BRIGD.js → F3B4KLDK.js} +2 -2
- package/dist/cdn/{2WH47QS4.js → F4KJZP52.js} +2 -2
- package/dist/cdn/{TXOHBSWG.js → FAXFVGIK.js} +2 -2
- package/dist/cdn/{34CMKCGC.js → FBEE3SL5.js} +2 -2
- package/dist/cdn/FE4CLKE3.js +4 -0
- package/dist/cdn/FHU5IUQF.js +4 -0
- package/dist/cdn/FN6DPNFP.js +9 -0
- package/dist/cdn/FTPZ7S36.js +4 -0
- package/dist/cdn/{M3D2NYN3.js → G3EFFV27.js} +1 -1
- package/dist/cdn/{HYBN7ELI.js → G7K6FISY.js} +2 -2
- package/dist/cdn/GCO6B7TC.js +4 -0
- package/dist/cdn/{SVUYFYTV.js → GCQ2232K.js} +2 -2
- package/dist/cdn/GPB7AM7V.js +5 -0
- package/dist/cdn/{GXUPEC6W.js → GRQLN2XE.js} +2 -2
- package/dist/cdn/{D3IOFFLC.js → GXYBVVDN.js} +2 -2
- package/dist/cdn/GZF5BMPX.js +4 -0
- package/dist/cdn/H7AGGCPK.js +4 -0
- package/dist/cdn/HDFQHWTP.js +4 -0
- package/dist/cdn/HFQQIAYA.js +4 -0
- package/dist/cdn/{NE7YXC43.js → HKLTH5WB.js} +2 -2
- package/dist/cdn/{SU2VWWCB.js → HM3ZXFQQ.js} +2 -2
- package/dist/cdn/{Q35KRAVX.js → HMBQ2LLQ.js} +2 -2
- package/dist/cdn/{BV4QE6GM.js → HMTVQ2KZ.js} +1 -1
- package/dist/cdn/{4SMNBNGK.js → HP7JDYA2.js} +2 -2
- package/dist/cdn/{3GSCALYO.js → HPU5ZBJX.js} +2 -2
- package/dist/cdn/{D4VAL7CE.js → HW6U5SKF.js} +2 -2
- package/dist/cdn/I5CDRKXL.js +4 -0
- package/dist/cdn/{52BXF3C7.js → I73TZOM7.js} +2 -2
- package/dist/cdn/ICWP7LZJ.js +4 -0
- package/dist/cdn/{ED3BHEDS.js → IMONGMVI.js} +2 -2
- package/dist/cdn/IQGPJA6N.js +4 -0
- package/dist/cdn/IQWMBQLQ.js +4 -0
- package/dist/cdn/{BDUP5B7P.js → IQYTRPQ2.js} +2 -2
- package/dist/cdn/{KA77ECLW.js → IRLQEWFK.js} +2 -2
- package/dist/cdn/{XXW2QC25.js → J2UIB5XC.js} +2 -2
- package/dist/cdn/{SK6QCPID.js → J4525K5P.js} +2 -2
- package/dist/cdn/{H7OJS4LM.js → J4AX2RKV.js} +2 -2
- package/dist/cdn/{BIESEO2T.js → J4YWBA42.js} +2 -2
- package/dist/cdn/{VZM35ZQQ.js → JBWI6ILP.js} +2 -2
- package/dist/cdn/{MEYRGFBH.js → JC4QRDXA.js} +2 -2
- package/dist/cdn/{YL37TWFC.js → JD6FT3W7.js} +2 -2
- package/dist/cdn/{DY2OV6SZ.js → JDBCK7XT.js} +2 -2
- package/dist/cdn/{XL77TBYE.js → JI5EBBCD.js} +2 -2
- package/dist/cdn/JNOXFAU2.js +4 -0
- package/dist/cdn/{C52USQZY.js → JO35RC4U.js} +2 -2
- package/dist/cdn/{5RMRGBB6.js → JQ7PV4B6.js} +2 -2
- package/dist/cdn/{CSH7OOTY.js → JV4PCIST.js} +2 -2
- package/dist/cdn/{BJ4X4HTB.js → JYHK7DOM.js} +2 -2
- package/dist/cdn/K7XTYHKS.js +4 -0
- package/dist/cdn/{R5BNVR66.js → KBZL6D4M.js} +2 -2
- package/dist/cdn/{W2OTNRWP.js → KJJUE2G5.js} +2 -2
- package/dist/cdn/KK6QUO4I.js +4 -0
- package/dist/cdn/{DXNK2ST2.js → KMIGBAPU.js} +2 -2
- package/dist/cdn/{JOSZK26L.js → KMONZEOG.js} +2 -2
- package/dist/cdn/{WIKGAJKR.js → KORUO72V.js} +2 -2
- package/dist/cdn/{SLSJQU47.js → KWLGOVRX.js} +2 -2
- package/dist/cdn/{IPBMELVN.js → KXGNFM2F.js} +2 -2
- package/dist/cdn/{OZMRRK2Y.js → L3BACQWJ.js} +1 -1
- package/dist/cdn/LAXJHXF6.js +4 -0
- package/dist/cdn/LBPQE6VF.js +4 -0
- package/dist/cdn/{WJAYVKAD.js → LFUGAIT4.js} +2 -2
- package/dist/cdn/LN5TNHHH.js +4 -0
- package/dist/cdn/LP6SWXLV.js +4 -0
- package/dist/cdn/LQSJAPHD.js +4 -0
- package/dist/cdn/{LSE6FZBG.js → LSPH2YTC.js} +2 -2
- package/dist/cdn/{QC53WM4B.js → LUI65ERH.js} +2 -2
- package/dist/cdn/LXXPHZY4.js +4 -0
- package/dist/cdn/{DSDVOPJK.js → M4WPXKE6.js} +2 -2
- package/dist/cdn/{SGCY6SLE.js → M5W2VHTI.js} +2 -2
- package/dist/cdn/M6AXNQ7I.js +4 -0
- package/dist/cdn/{3ZJYJKT4.js → MF2KJEFV.js} +1 -1
- package/dist/cdn/MJ2YQLNH.js +4 -0
- package/dist/cdn/{WQ3225KQ.js → MNARIQ6D.js} +2 -2
- package/dist/cdn/MNMRFQYE.js +4 -0
- package/dist/cdn/{RMXLEHFL.js → MRQQUWCR.js} +1 -1
- package/dist/cdn/{RZVTUV5J.js → N4WMESHG.js} +2 -2
- package/dist/cdn/N6GYAFDY.js +4 -0
- package/dist/cdn/NB4K2Z5F.js +4 -0
- package/dist/cdn/NCWKKCLN.js +4 -0
- package/dist/cdn/{JHFFVOHO.js → NHOGXB6I.js} +2 -2
- package/dist/cdn/{KPIKIXNF.js → NJ22NILR.js} +2 -2
- package/dist/cdn/{JFECILAK.js → NJY2PUGP.js} +2 -2
- package/dist/cdn/{OW7J5X2Q.js → NT7FXM5P.js} +2 -2
- package/dist/cdn/{TMDOKN2X.js → O3MZ6VL7.js} +2 -2
- package/dist/cdn/OCGT37AH.js +4 -0
- package/dist/cdn/OPQAHUC6.js +4 -0
- package/dist/cdn/PMH6AMDQ.js +4 -0
- package/dist/cdn/{L33TUHSN.js → PSKEAYHF.js} +2 -2
- package/dist/cdn/PYPRUXUW.js +4 -0
- package/dist/cdn/{6TUT4EAX.js → PYUUPENQ.js} +2 -2
- package/dist/cdn/{USUYE22F.js → QBX3SMHQ.js} +1 -1
- package/dist/cdn/QI3GPP4B.js +4 -0
- package/dist/cdn/{PKHDNANW.js → QKQSIIVK.js} +2 -2
- package/dist/cdn/QMZI2EUC.js +4 -0
- package/dist/cdn/{S2WAX7GH.js → QQ3UJJYK.js} +2 -2
- package/dist/cdn/{OP47YISE.js → QQVHH3A3.js} +2 -2
- package/dist/cdn/{KVNZ7JCO.js → QS6HFQNH.js} +2 -2
- package/dist/cdn/QTKLQEC6.js +4 -0
- package/dist/cdn/{PORSXLRL.js → QXST5JP4.js} +2 -2
- package/dist/cdn/QZMEUPHA.js +4 -0
- package/dist/cdn/R5VR7WVB.js +4 -0
- package/dist/cdn/R6WX2YAU.js +4 -0
- package/dist/cdn/{PL6CQKLM.js → RJLK3W3N.js} +2 -2
- package/dist/cdn/{RN65F4EU.js → RT2X7WYI.js} +1 -1
- package/dist/cdn/{PZK7B2TL.js → RZQJIQAQ.js} +1 -1
- package/dist/cdn/S3JIHRTV.js +4 -0
- package/dist/cdn/S6MVQD2R.js +4 -0
- package/dist/cdn/{FCRLQNLN.js → SAODMA4S.js} +2 -2
- package/dist/cdn/SI3S3YNX.js +4 -0
- package/dist/cdn/{SHWLBIX6.js → SKAM5IIB.js} +2 -2
- package/dist/cdn/{E7KEDQNU.js → SNPB3VPN.js} +2 -2
- package/dist/cdn/{I5CTO7YJ.js → SNPTFS6H.js} +2 -2
- package/dist/cdn/{FPAYDY37.js → SOWB7EUZ.js} +2 -2
- package/dist/cdn/{GEDZJZUA.js → SVS26UVY.js} +2 -2
- package/dist/cdn/SWFGGHDV.js +4 -0
- package/dist/cdn/SZCYANNS.js +4 -0
- package/dist/cdn/T5D7NGSS.js +4 -0
- package/dist/cdn/{AAMNBOQU.js → T6H2JBV6.js} +2 -2
- package/dist/cdn/TFVJ2F4C.js +4 -0
- package/dist/cdn/TJXXUQX2.js +4 -0
- package/dist/cdn/{WWIXIXO7.js → TL3FJRJ4.js} +2 -2
- package/dist/cdn/{MT2GC6YZ.js → TP3FPHEI.js} +2 -2
- package/dist/cdn/{6FNWDXZ7.js → TPSYETWS.js} +2 -2
- package/dist/cdn/TUZGYWAC.js +4 -0
- package/dist/cdn/{QO6QN3IQ.js → TVB3UTFJ.js} +1 -1
- package/dist/cdn/{S37WFNKC.js → UGUSRAH5.js} +2 -2
- package/dist/cdn/{BML7RRFR.js → UN636J3R.js} +2 -2
- package/dist/cdn/{SMIJSUYR.js → VD3QCRCL.js} +2 -2
- package/dist/cdn/VE6RJNIS.js +4 -0
- package/dist/cdn/VHQLIOUY.js +4 -0
- package/dist/cdn/{WHAFO4LN.js → VJGJ66HR.js} +2 -2
- package/dist/cdn/{YYFPAH2X.js → VJX4ICEC.js} +2 -2
- package/dist/cdn/VQ35YTXI.js +4 -0
- package/dist/cdn/VQCA73HC.js +4 -0
- package/dist/cdn/{DJCU27HU.js → VQKQQCFW.js} +2 -2
- package/dist/cdn/{K2XL3QAA.js → VV2YZX2P.js} +2 -2
- package/dist/cdn/VWQPLP6J.js +4 -0
- package/dist/cdn/{WDRS2XCE.js → VXN55R3Y.js} +2 -2
- package/dist/cdn/{2X52Y4DY.js → VYAAHXIM.js} +1 -1
- package/dist/cdn/{JMC23YQA.js → W6E6ZTTT.js} +2 -2
- package/dist/cdn/WG5XMYIW.js +4 -0
- package/dist/cdn/{IEEHHP3U.js → WMXBSBO6.js} +2 -2
- package/dist/cdn/WNXSQY2L.js +4 -0
- package/dist/cdn/{TC6ZBBSA.js → WRWW47GK.js} +2 -2
- package/dist/cdn/{32MTZMAK.js → WUZWZNHP.js} +2 -2
- package/dist/cdn/{HF7CWC2S.js → WZT5AB42.js} +2 -2
- package/dist/cdn/{2EYPXTFF.js → X2SHQ2FC.js} +2 -2
- package/dist/cdn/{4CS2VL3M.js → X6NYB2KQ.js} +1 -1
- package/dist/cdn/XMDENUG7.js +4 -0
- package/dist/cdn/XQGNFDO4.js +4 -0
- package/dist/cdn/{RPXF2UPY.js → XVFUASBB.js} +2 -2
- package/dist/cdn/{CHY3F7MV.js → Y3N6UGXY.js} +2 -2
- package/dist/cdn/YCZQEVRF.js +4 -0
- package/dist/cdn/YEEPU5OG.js +4 -0
- package/dist/cdn/{QMZBTERZ.js → YJFUYHCW.js} +2 -2
- package/dist/cdn/{ATVD3FQ5.js → YVQKAQV6.js} +2 -2
- package/dist/cdn/YZCKECQH.js +4 -0
- package/dist/cdn/ZJUBRI5F.js +4 -0
- package/dist/cdn/{FMCNJXL6.js → ZKIAL5FI.js} +2 -2
- package/dist/cdn/{5TRI5LVW.js → ZMKI3K3W.js} +2 -2
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/AnalysisViewModel.js +148 -137
- 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.d.ts +6 -0
- package/dist/components/arcgis-area-measurement-2d/customElement.js +41 -41
- package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +6 -0
- package/dist/components/arcgis-area-measurement-3d/customElement.js +15 -15
- package/dist/components/arcgis-attachments/customElement.d.ts +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.d.ts +2 -2
- 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.d.ts +1 -1
- package/dist/components/arcgis-building-explorer/customElement.js +1 -1
- package/dist/components/arcgis-catalog-layer-list/customElement.d.ts +2 -2
- 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.d.ts +2 -0
- package/dist/components/arcgis-compass/customElement.js +21 -21
- package/dist/components/arcgis-coordinate-conversion/customElement.js +28 -27
- package/dist/components/arcgis-daylight/customElement.js +1 -1
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.d.ts +6 -0
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +15 -15
- package/dist/components/arcgis-directional-pad/customElement.js +1 -1
- package/dist/components/arcgis-directions/customElement.d.ts +1 -1
- package/dist/components/arcgis-directions/customElement.js +1 -1
- package/dist/components/arcgis-distance-measurement-2d/customElement.d.ts +6 -0
- package/dist/components/arcgis-distance-measurement-2d/customElement.js +17 -17
- package/dist/components/arcgis-editor/customElement.d.ts +1 -1
- package/dist/components/arcgis-editor/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile/customElement.d.ts +7 -1
- package/dist/components/arcgis-elevation-profile/customElement.js +14 -12
- 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.d.ts +2 -8
- package/dist/components/arcgis-expand/customElement.js +34 -33
- package/dist/components/arcgis-expand/index.d.ts +0 -1
- package/dist/components/arcgis-expand/index.js +0 -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.d.ts +2 -2
- 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.d.ts +2 -2
- package/dist/components/arcgis-feature-table/customElement.js +23 -22
- package/dist/components/arcgis-feature-templates/customElement.d.ts +2 -2
- 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.d.ts +1 -1
- package/dist/components/arcgis-features/customElement.js +1 -1
- package/dist/components/arcgis-floor-filter/customElement.d.ts +1 -1
- package/dist/components/arcgis-floor-filter/customElement.js +1 -1
- package/dist/components/arcgis-fullscreen/customElement.d.ts +2 -0
- package/dist/components/arcgis-fullscreen/customElement.js +19 -19
- package/dist/components/arcgis-grid-controls/customElement.js +1 -1
- package/dist/components/arcgis-histogram-range-slider/customElement.d.ts +1 -1
- package/dist/components/arcgis-histogram-range-slider/customElement.js +1 -1
- package/dist/components/arcgis-home/customElement.d.ts +19 -39
- package/dist/components/arcgis-home/customElement.js +58 -25
- package/dist/components/arcgis-home/index.d.ts +0 -1
- package/dist/components/arcgis-home/index.js +0 -1
- package/dist/components/arcgis-labeled-switch/customElement.js +1 -1
- package/dist/components/arcgis-layer-list/customElement.d.ts +2 -2
- 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.d.ts +0 -30
- package/dist/components/arcgis-legend/customElement.js +6 -12
- 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.d.ts +6 -0
- package/dist/components/arcgis-line-of-sight/customElement.js +11 -11
- package/dist/components/arcgis-link-chart/customElement.d.ts +11 -3
- package/dist/components/arcgis-link-chart/customElement.js +96 -94
- package/dist/components/arcgis-link-chart-layout-switcher/customElement.js +1 -1
- package/dist/components/arcgis-locate/customElement.d.ts +2 -0
- package/dist/components/arcgis-locate/customElement.js +30 -30
- package/dist/components/arcgis-map/customElement.d.ts +20 -2
- 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.d.ts +2 -0
- package/dist/components/arcgis-navigation-toggle/customElement.js +14 -14
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.d.ts +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.d.ts +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/utils.d.ts +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.d.ts +1 -1
- package/dist/components/arcgis-scale-range-slider/customElement.js +1 -1
- package/dist/components/arcgis-scene/customElement.d.ts +4 -4
- 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 +0 -2
- package/dist/components/arcgis-shadow-cast/customElement.d.ts +1 -1
- package/dist/components/arcgis-shadow-cast/customElement.js +5 -14
- 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.d.ts +1 -1
- package/dist/components/arcgis-sketch/customElement.js +1 -1
- package/dist/components/arcgis-slice/customElement.d.ts +6 -0
- package/dist/components/arcgis-slice/customElement.js +15 -15
- 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.d.ts +2 -2
- package/dist/components/arcgis-table-list/customElement.js +1 -1
- package/dist/components/arcgis-time-slider/customElement.d.ts +1 -1
- package/dist/components/arcgis-time-slider/customElement.js +1 -1
- package/dist/components/arcgis-time-zone-label/customElement.js +12 -12
- package/dist/components/arcgis-track/customElement.d.ts +2 -0
- package/dist/components/arcgis-track/customElement.js +13 -13
- 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.d.ts +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 +21 -20
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +20 -19
- package/dist/components/arcgis-utility-network-validate-topology/customElement.js +1 -1
- package/dist/components/arcgis-value-picker/customElement.d.ts +1 -1
- package/dist/components/arcgis-value-picker/customElement.js +1 -1
- package/dist/components/arcgis-version-management/customElement.js +9 -8
- 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.d.ts +1 -1
- package/dist/components/arcgis-video/customElement.js +1 -1
- package/dist/components/arcgis-video-player/customElement.js +1 -1
- package/dist/components/arcgis-video-player-action-bar/customElement.js +1 -1
- package/dist/components/arcgis-video-player-actions-group/customElement.js +1 -1
- package/dist/components/arcgis-video-player-controls-group/customElement.js +1 -1
- package/dist/components/arcgis-video-player-metadata/customElement.js +1 -1
- package/dist/components/arcgis-video-player-settings/customElement.js +1 -1
- package/dist/components/arcgis-video-player-slider/customElement.js +1 -1
- package/dist/components/arcgis-volume-measurement/customElement.d.ts +11 -4
- package/dist/components/arcgis-volume-measurement/customElement.js +17 -17
- package/dist/components/arcgis-weather/customElement.js +1 -1
- package/dist/components/arcgis-zoom/customElement.d.ts +2 -0
- package/dist/components/arcgis-zoom/customElement.js +8 -8
- package/dist/docs/api.json +662 -167
- package/dist/docs/docs.json +482 -135
- package/dist/docs/vscode.html-custom-data.json +153 -11
- package/dist/docs/web-types.json +244 -47
- package/dist/index.js +1 -1
- package/dist/loader.js +18 -18
- package/dist/support/AnalysisViewModel.d.ts +101 -35
- package/dist/types/lumina.d.ts +17 -17
- package/dist/types/preact.d.ts +17 -17
- package/dist/types/preact10.d.ts +17 -17
- package/dist/types/react.d.ts +17 -17
- package/dist/types/stencil.d.ts +17 -17
- package/package.json +3 -3
- package/dist/cdn/2K74GELP.js +0 -4
- package/dist/cdn/2MFHV2FO.js +0 -4
- package/dist/cdn/2SYLV43C.js +0 -4
- package/dist/cdn/35GBBPCC.js +0 -4
- package/dist/cdn/3CMXOQKR.js +0 -4
- package/dist/cdn/4CBRPUWP.js +0 -4
- package/dist/cdn/4OME7L5U.js +0 -4
- package/dist/cdn/4QKW66H5.js +0 -4
- package/dist/cdn/54V2IFLH.js +0 -4
- package/dist/cdn/57QYO2SZ.js +0 -4
- package/dist/cdn/5CRZIWKK.js +0 -4
- package/dist/cdn/5OPBLLLV.js +0 -4
- package/dist/cdn/5W4G4PNT.js +0 -4
- package/dist/cdn/62PN6GJT.js +0 -4
- package/dist/cdn/6DR2R4FP.js +0 -4
- package/dist/cdn/7WYEZ3Z3.js +0 -4
- package/dist/cdn/A2BLKHQ2.js +0 -4
- package/dist/cdn/BC3MKGHQ.js +0 -4
- package/dist/cdn/CAG5LQXB.js +0 -4
- package/dist/cdn/CZFKF7LP.js +0 -4
- package/dist/cdn/DDV75YFQ.js +0 -4
- package/dist/cdn/DFNYQ5GZ.js +0 -4
- package/dist/cdn/EBUGK35V.js +0 -4
- package/dist/cdn/EMVSZXV7.js +0 -4
- package/dist/cdn/EYU24CV4.js +0 -4
- package/dist/cdn/FH6Z5IXS.js +0 -4
- package/dist/cdn/FM3QTS3C.js +0 -4
- package/dist/cdn/FMJLLGYF.js +0 -4
- package/dist/cdn/FOVSEOSY.js +0 -4
- package/dist/cdn/FRR2JOHO.js +0 -4
- package/dist/cdn/FRUXL4XG.js +0 -4
- package/dist/cdn/FYLJCJ44.js +0 -4
- package/dist/cdn/GGC2FX5Z.js +0 -4
- package/dist/cdn/GHKQYCOR.js +0 -4
- package/dist/cdn/GIN554OU.js +0 -4
- package/dist/cdn/GJ6HSQQ4.js +0 -4
- package/dist/cdn/HXVTT6O6.js +0 -4
- package/dist/cdn/IKNWZBGW.js +0 -6
- package/dist/cdn/J2EF2ZWX.js +0 -4
- package/dist/cdn/JLID32C6.js +0 -4
- package/dist/cdn/JU7BX5YV.js +0 -4
- package/dist/cdn/KF3KYUW7.js +0 -4
- package/dist/cdn/KHH2SII2.js +0 -4
- package/dist/cdn/KJ2BZIKS.js +0 -4
- package/dist/cdn/KK4KQV3W.js +0 -9
- package/dist/cdn/KME3B73D.js +0 -4
- package/dist/cdn/LFBLDB44.js +0 -4
- package/dist/cdn/LJE4Y7BY.js +0 -4
- package/dist/cdn/MZ56KGFA.js +0 -4
- package/dist/cdn/NMDU3UET.js +0 -4
- package/dist/cdn/NMF2M4P3.js +0 -4
- package/dist/cdn/NZWVCVZW.js +0 -4
- package/dist/cdn/OADUNXKK.js +0 -4
- package/dist/cdn/PV3TETKY.js +0 -4
- package/dist/cdn/QRPTMJFT.js +0 -4
- package/dist/cdn/R53VENXY.js +0 -4
- package/dist/cdn/RECGDWS6.js +0 -4
- package/dist/cdn/RFSWEQ3H.js +0 -4
- package/dist/cdn/RHLKZA34.js +0 -4
- package/dist/cdn/RVDVMDEI.js +0 -4
- package/dist/cdn/S2V2W4SB.js +0 -4
- package/dist/cdn/STOXIMCR.js +0 -4
- package/dist/cdn/T6V4IFOB.js +0 -4
- package/dist/cdn/TFMLH5Y7.js +0 -4
- package/dist/cdn/TVL5HYIC.js +0 -4
- package/dist/cdn/TVX53RNP.js +0 -5
- package/dist/cdn/UJSWN5OK.js +0 -4
- package/dist/cdn/UO3ICPPO.js +0 -4
- package/dist/cdn/VIXVEUAB.js +0 -4
- package/dist/cdn/VKTDHEVF.js +0 -4
- package/dist/cdn/VVPVLBUG.js +0 -4
- package/dist/cdn/VZUX5GLE.js +0 -4
- package/dist/cdn/XY2ASQQU.js +0 -4
- package/dist/cdn/Y5MTNOE5.js +0 -4
- package/dist/cdn/Y7FLQZHJ.js +0 -4
- package/dist/cdn/YUBAO2CT.js +0 -4
- package/dist/cdn/YXWMLFTR.js +0 -4
- package/dist/cdn/YXXO76V2.js +0 -4
- package/dist/cdn/YYSU3XOB.js +0 -4
- package/dist/cdn/ZC72KBRO.js +0 -4
- package/dist/cdn/ZTXTDD7V.js +0 -4
package/dist/cdn/RFSWEQ3H.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.93 */
|
|
4
|
-
import{a as y}from"./ZJ33DUZU.js";import"./PJ77LCUF.js";import d from"./6PJ27SYB.js";import{a as P}from"./WQ3225KQ.js";import{a as x}from"./M3D2NYN3.js";import c from"./GBRRLZHP.js";import b from"./SGSYHTAS.js";import{g as M}from"./RHLKZA34.js";import"./5W4G4PNT.js";import"./OZMRRK2Y.js";import{b as f}from"./USUYE22F.js";import"./NMF2M4P3.js";import{G as z,H as I,I as F,J as s,L as a,O as B,a as T,b as h,s as _}from"./IKNWZBGW.js";import"./4CS2VL3M.js";export default $arcgis.t(([{hasDisplayProperties:$},L,D,E,,,S])=>{var l="arcgis-coordinate-conversion",r={base:l,expandUp:`${l}__conversions-view--expand-up`,expandDown:`${l}__conversions-view--expand-down`,noBasemap:`${l}__no-basemap`,coordDisplay:`${l}__coordinate-display`,conversionRow:`${l}__conversion-row`,rowSelect:`${l}__row-select`,conversionsView:`${l}__conversions-view`,conversionsList:`${l}__conversion-list`,toolDisplay:`${l}__tool-display`,copyButton:`${l}__copy-button`,coordinateConversionAlert:`${l}__alert`,coordinateInput:`${l}__coordinate-input`,inputForm:`${l}__input-form`,sectionHeading:`${l}__section-heading`,inputFormGroup:`${l}__coordinate-input__form-group`,inputSelect:`${l}__coordinate-input__select`,sectionTitle:`${l}__section-title`,patternInput:`${l}__pattern-input`,previewCoordinate:`${l}__preview-coordinate`,settings:`${l}__settings`,firstSettingsGroup:`${l}__settings__form-group-first`,settingsFormGroup:`${l}__settings__form-group`,settingsFormGroupHorizontal:`${l}__settings__form-group-horizontal`},A=T`[class^=esri-icon-],[class*=" esri-icon-"]{speak:none;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-style:normal;font-weight:var(--calcite-font-weight-normal);line-height:1;font-family:CalciteWebCoreIcons!important}.esri-icon-close:before{content:"";color:inherit}.esri-icon-drag-horizontal:before{content:"";color:inherit}.esri-icon-drag-vertical:before{content:"";color:inherit}.esri-icon-handle-horizontal:before{content:"";color:inherit}.esri-icon-handle-vertical:before{content:"";color:inherit}.esri-icon-check-mark:before{content:"";color:inherit}.esri-icon-left-triangle-arrow:before{content:"";color:inherit}.esri-icon-right-triangle-arrow:before{content:"";color:inherit}.esri-icon-down-arrow:before{content:"";color:inherit}.esri-icon-up-arrow:before{content:"";color:inherit}.esri-icon-overview-arrow-bottom-left:before{content:"";color:inherit}.esri-icon-overview-arrow-bottom-right:before{content:"";color:inherit}.esri-icon-overview-arrow-top-left:before{content:"";color:inherit}.esri-icon-overview-arrow-top-right:before{content:"";color:inherit}.esri-icon-maximize:before{content:"";color:inherit}.esri-icon-minimize:before{content:"";color:inherit}.esri-icon-checkbox-unchecked:before{content:"";color:inherit}.esri-icon-checkbox-checked:before{content:"";color:inherit}.esri-icon-radio-unchecked:before{content:"";color:inherit}.esri-icon-radio-checked:before{content:"";color:inherit}.esri-icon-up-arrow-circled:before{content:"";color:inherit}.esri-icon-down-arrow-circled:before{content:"";color:inherit}.esri-icon-left-arrow-circled:before{content:"";color:inherit}.esri-icon-right-arrow-circled:before{content:"";color:inherit}.esri-icon-zoom-out-fixed:before{content:"";color:inherit}.esri-icon-zoom-in-fixed:before{content:"";color:inherit}.esri-icon-refresh:before{content:"";color:inherit}.esri-icon-edit:before{content:"";color:inherit}.esri-icon-authorize:before{content:"";color:inherit}.esri-icon-map-pin:before{content:"";color:inherit}.esri-icon-blank-map-pin:before{content:"";color:inherit}.esri-icon-table:before{content:"";color:inherit}.esri-icon-plus:before{content:"+";color:inherit}.esri-icon-minus:before{content:"";color:inherit}.esri-icon-beginning:before{content:"";color:inherit}.esri-icon-reverse:before{content:"";color:inherit}.esri-icon-pause:before{content:"";color:inherit}.esri-icon-play:before{content:"";color:inherit}.esri-icon-forward:before{content:"";color:inherit}.esri-icon-end:before{content:"";color:inherit}.esri-icon-erase:before{content:"";color:inherit}.esri-icon-up-down-arrows:before{content:"";color:inherit}.esri-icon-left:before{content:"";color:inherit}.esri-icon-right:before{content:"";color:inherit}.esri-icon-announcement:before{content:"";color:inherit}.esri-icon-notice-round:before{content:"";color:inherit}.esri-icon-notice-triangle:before{content:"";color:inherit}.esri-icon-home:before{content:"";color:inherit}.esri-icon-locate:before{content:"";color:inherit}.esri-icon-expand:before{content:"";color:inherit}.esri-icon-collapse:before{content:"";color:inherit}.esri-icon-layer-list:before{content:"";color:inherit}.esri-icon-basemap:before{content:"";color:inherit}.esri-icon-globe:before{content:"";color:inherit}.esri-icon-applications:before{content:"";color:inherit}.esri-icon-arrow-up-circled:before{content:"";color:inherit}.esri-icon-arrow-down-circled:before{content:"";color:inherit}.esri-icon-arrow-left-circled:before{content:"";color:inherit}.esri-icon-arrow-right-circled:before{content:"";color:inherit}.esri-icon-minus-circled:before{content:"";color:inherit}.esri-icon-plus-circled:before{content:"";color:inherit}.esri-icon-add-attachment:before{content:"";color:inherit}.esri-icon-attachment:before{content:"";color:inherit}.esri-icon-calendar:before{content:"";color:inherit}.esri-icon-close-circled:before{content:"";color:inherit}.esri-icon-browser:before{content:"";color:inherit}.esri-icon-collection:before{content:"";color:inherit}.esri-icon-comment:before{content:"";color:inherit}.esri-icon-configure-popup:before{content:"";color:inherit}.esri-icon-contact:before{content:"";color:inherit}.esri-icon-dashboard:before{content:"";color:inherit}.esri-icon-deny:before{content:"";color:inherit}.esri-icon-description:before{content:"";color:inherit}.esri-icon-directions:before{content:"";color:inherit}.esri-icon-directions2:before{content:"";color:inherit}.esri-icon-documentation:before{content:"";color:inherit}.esri-icon-duplicate:before{content:"";color:inherit}.esri-icon-review:before{content:"";color:inherit}.esri-icon-environment-settings:before{content:"";color:inherit}.esri-icon-error:before{content:"";color:inherit}.esri-icon-error2:before{content:"";color:inherit}.esri-icon-experimental:before{content:"";color:inherit}.esri-icon-feature-layer:before{content:"";color:inherit}.esri-icon-filter:before{content:"";color:inherit}.esri-icon-grant:before{content:"";color:inherit}.esri-icon-group:before{content:"";color:inherit}.esri-icon-key:before{content:"";color:inherit}.esri-icon-labels:before{content:"";color:inherit}.esri-icon-tag:before{content:"";color:inherit}.esri-icon-layers:before{content:"";color:inherit}.esri-icon-left-arrow:before{content:"";color:inherit}.esri-icon-right-arrow:before{content:"";color:inherit}.esri-icon-link-external:before{content:"";color:inherit}.esri-icon-link:before{content:"";color:inherit}.esri-icon-loading-indicator:before{content:"";color:inherit}.esri-icon-maps:before{content:"";color:inherit}.esri-icon-marketplace:before{content:"";color:inherit}.esri-icon-media:before{content:"";color:inherit}.esri-icon-media2:before{content:"";color:inherit}.esri-icon-menu:before{content:"";color:inherit}.esri-icon-mobile:before{content:"";color:inherit}.esri-icon-phone:before{content:"";color:inherit}.esri-icon-navigation:before{content:"";color:inherit}.esri-icon-pan:before{content:"";color:inherit}.esri-icon-printer:before{content:"";color:inherit}.esri-icon-pie-chart:before{content:"";color:inherit}.esri-icon-chart:before{content:"";color:inherit}.esri-icon-line-chart:before{content:"";color:inherit}.esri-icon-question:before{content:"";color:inherit}.esri-icon-resend-invitation:before{content:"";color:inherit}.esri-icon-rotate:before{content:"";color:inherit}.esri-icon-save:before{content:"";color:inherit}.esri-icon-settings:before{content:"";color:inherit}.esri-icon-settings2:before{content:"";color:inherit}.esri-icon-share:before{content:"";color:inherit}.esri-icon-sign-out:before{content:"";color:inherit}.esri-icon-support:before{content:"";color:inherit}.esri-icon-user:before{content:"";color:inherit}.esri-icon-time-clock:before{content:"";color:inherit}.esri-icon-trash:before{content:"";color:inherit}.esri-icon-upload:before{content:"";color:inherit}.esri-icon-download:before{content:"";color:inherit}.esri-icon-zoom-in-magnifying-glass:before{content:"";color:inherit}.esri-icon-search:before{content:"";color:inherit}.esri-icon-zoom-out-magnifying-glass:before{content:"";color:inherit}.esri-icon-locked:before{content:"";color:inherit}.esri-icon-unlocked:before{content:"";color:inherit}.esri-icon-favorites:before{content:"";color:inherit}.esri-icon-compass:before{content:"";color:inherit}.esri-icon-down:before{content:"";color:inherit}.esri-icon-up:before{content:"";color:inherit}.esri-icon-chat:before{content:"";color:inherit}.esri-icon-dock-bottom:before{content:"";color:inherit}.esri-icon-dock-left:before{content:"";color:inherit}.esri-icon-dock-right:before{content:"";color:inherit}.esri-icon-organization:before{content:"";color:inherit}.esri-icon-north-navigation:before{content:"";color:inherit}.esri-icon-locate-circled:before{content:"";color:inherit}.esri-icon-dial:before{content:"";color:inherit}.esri-icon-polygon:before{content:"";color:inherit}.esri-icon-polyline:before{content:"";color:inherit}.esri-icon-visible:before{content:"";color:inherit}.esri-icon-non-visible:before{content:"";color:inherit}.esri-icon-link-vertical:before{content:"";color:inherit}.esri-icon-unlocked-link-vertical:before{content:"";color:inherit}.esri-icon-link-horizontal:before{content:"";color:inherit}.esri-icon-unlocked-link-horizontal:before{content:"";color:inherit}.esri-icon-swap:before{content:"";color:inherit}.esri-icon-cta-link-external:before{content:"";color:inherit}.esri-icon-reply:before{content:"";color:inherit}.esri-icon-public:before{content:"";color:inherit}.esri-icon-share2:before{content:"";color:inherit}.esri-icon-launch-link-external:before{content:"";color:inherit}.esri-icon-rotate-back:before{content:"";color:inherit}.esri-icon-pan2:before{content:"";color:inherit}.esri-icon-tracking:before{content:"";color:inherit}.esri-icon-expand2:before{content:"";color:inherit}.esri-icon-arrow-down:before{content:"";color:inherit}.esri-icon-arrow-up:before{content:"";color:inherit}.esri-icon-hollow-eye:before{content:"";color:inherit}.esri-icon-play-circled:before{content:"";color:inherit}.esri-icon-volume-off:before{content:"";color:inherit}.esri-icon-volume-on:before{content:"";color:inherit}.esri-icon-bookmark:before{content:"";color:inherit}.esri-icon-lightbulb:before{content:"";color:inherit}.esri-icon-sketch-rectangle:before{content:"";color:inherit}.esri-icon-north-navigation-filled:before{content:"";color:inherit}.esri-icon-default-action:before{content:"";color:inherit}.esri-icon-undo:before{content:"";color:inherit}.esri-icon-redo:before{content:"";color:inherit}.esri-icon-cursor:before{content:"";color:inherit}.esri-icon-cursor-filled:before{content:"";color:inherit}.esri-icon-measure:before{content:"";color:inherit}.esri-icon-measure-line:before{content:"";color:inherit}.esri-icon-measure-area:before{content:"";color:inherit}.esri-icon-legend:before{content:"";color:inherit}.esri-icon-sliders:before{content:"";color:inherit}.esri-icon-sliders-horizontal:before{content:"";color:inherit}.esri-icon-cursor-marquee:before{content:"";color:inherit}.esri-icon-lasso:before{content:"";color:inherit}.esri-icon-elevation-profile:before{content:"";color:inherit}.esri-icon-slice:before{content:"";color:inherit}.esri-icon-line-of-sight:before{content:"";color:inherit}.esri-icon-zoom-to-object:before{content:"";color:inherit}.esri-icon-urban-model:before{content:"";color:inherit}.esri-icon-measure-building-height-shadow:before{content:"";color:inherit}.esri-icon-partly-cloudy:before{content:"";color:inherit}.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}.esri-button{box-sizing:border-box;cursor:pointer;white-space:normal;word-break:normal;color:var(--calcite-color-text-1);background-color:var(--calcite-color-status-info);border:var(--calcite-spacing-px) solid var(--calcite-color-status-info);justify-content:center;align-items:center;width:100%;min-height:var(--calcite-spacing-xxxl);padding:6px 7px;font-family:inherit;font-size:var(--calcite-font-size);transition:background-color .125s ease-in-out,border .125s ease-in-out;display:flex;overflow:hidden;&:hover{color:var(--calcite-color-text-1);background-color:var(--calcite-color-status-info-hover);border:var(--calcite-spacing-px) solid var(--calcite-color-status-info-hover)}}.esri-button:hover{color:var(--calcite-color-text-1);background-color:var(--calcite-color-text-2);border:1px solid var(--calcite-color-text-2)}.esri-button.esri-button--small{min-height:var(--calcite-spacing-xl);font-size:var(--calcite-font-size-sm)}.esri-button.esri-button--half{width:50%;display:inline-block}.esri-button.esri-button--third{width:33%;display:inline-block}.esri-button--secondary{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-button--tertiary{color:var(--calcite-color-brand);background-color:var(--calcite-color-transparent);border-color:var(--calcite-color-transparent)}.esri-button--tertiary:hover{color:var(--calcite-color-brand-hover);background-color:var(--calcite-color-foreground-2);border-color:var(--calcite-color-transparent)}.esri-button--disabled{opacity:.4;pointer-events:none}.esri-button--drill-in{outline-offset:-4px;cursor:pointer;text-align:unset;background-color:var(--calcite-color-foreground-1);border:none;border-radius:2px;justify-content:space-between;align-items:center;margin:var(--calcite-spacing-md) 7px;padding:var(--calcite-spacing-md) 7px;text-decoration:none;transition:background-color .125s ease-in-out;display:flex;box-shadow:0 0 0 1px #adadad4d}.esri-button--drill-in:hover,.esri-button--drill-in:focus{background-color:var(--calcite-color-foreground-2)}.esri-button--drill-in__title{font-size:var(--calcite-font-size)}.esri-button--drill-in [class^=esri-icon-],.esri-button--drill-in [class*=" esri-icon-"]{padding:0 7px}.esri-widget--button{cursor:pointer;text-align:center;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);flex-flow:row;justify-content:center;align-items:center;width:var(--calcite-spacing-xxxl);height:var(--calcite-spacing-xxxl);margin:0;padding:0;font-size:var(--calcite-font-size);transition:background-color .125s ease-in-out;display:flex;overflow:hidden}.esri-widget--button:is(calcite-button):not(:hover){--calcite-icon-color: var(--calcite-color-text-3)}.esri-widget--button:not([appearance]),.esri-widget--button[appearance=solid]{--calcite-color-foreground-3: var(--calcite-color-foreground-1)}.esri-widget--button:is(calcite-button){--calcite-offset-invert-focus: 1}.esri-widget--button calcite-loader[inline]{margin:auto}.esri-button--secondary{color:var(--calcite-color-brand);background-color:var(--calcite-color-foreground-1);&:hover{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-status-info);border:1px solid var(--calcite-color-status-info)}}:host{background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);--coordinate-conversion-width: 425px;--coordinate-font-size: var(--calcite-font-size-sm);--alert-width: 225px;--arcgis-coordinate-conversion-flex-direction: column;width:var(--coordinate-conversion-width)}calcite-alert{width:var(--alert-width);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);margin-top:12.5%}.arcgis-coordinate-conversion__no-basemap{padding:var(--calcite-spacing-xxs)}.arcgis-coordinate-conversion{background-color:var(--calcite-color-foreground-1);position:relative;width:var(--coordinate-conversion-width)}.arcgis-coordinate-conversion__conversions-view{display:flex;flex-direction:var(--arcgis-coordinate-conversion-flex-direction)}.arcgis-coordinate-conversion__conversion-list{flex-direction:var(--arcgis-coordinate-conversion-flex-direction)}.arcgis-coordinate-conversion__conversions-view--expand-down{display:flex;flex-direction:column}.arcgis-coordinate-conversion__conversions-view--expand-down .arcgis-coordinate-conversion__conversion-list{flex-direction:column}.arcgis-coordinate-conversion__conversions-view--expand-up{display:flex;flex-direction:column-reverse}.arcgis-coordinate-conversion__conversions-view--expand-up .arcgis-coordinate-conversion__conversion-list{flex-direction:column-reverse}.arcgis-coordinate-conversion__conversion-list{display:flex;padding-left:0;margin:0}.arcgis-coordinate-conversion__tool-display{list-style:none;display:flex;margin:0;padding:0;font-size:var(--calcite-font-size-sm)}.arcgis-coordinate-conversion__conversion-row{padding:0 var(--esri-widget-padding-y);justify-content:space-between;align-items:center;display:flex}.arcgis-coordinate-conversion__conversion-row:hover .arcgis-coordinate-conversion__copy-button{display:block}.arcgis-coordinate-conversion__conversions-view{padding:var(--calcite-spacing-md)}.arcgis-coordinate-conversion__coordinate-display{font-size:var(--coordinate-font-size);word-break:break-word;word-wrap:break-word;direction:ltr;flex:auto;display:flex;align-items:center;padding-left:var(--calcite-spacing-sm);min-height:var(--calcite-spacing-xxxl)}.arcgis-coordinate-conversion__coordinate-display:hover{background:var(--calcite-color-transparent-hover)}.arcgis-coordinate-conversion__copy-button{display:none}.arcgis-coordinate-conversion__row-select{width:5rem;flex-shrink:0;text-align-last:center}.arcgis-coordinate-conversion__section-heading{display:flex;align-items:center;background-color:var(--calcite-color-background);width:100%;height:var(--calcite-size-fixed-xxxl)}.arcgis-coordinate-conversion__section-title{margin:0 auto!important}.arcgis-coordinate-conversion__coordinate-input__form-group{display:flex;align-items:center;justify-content:space-between;margin:var(--calcite-spacing-md) auto var(--calcite-spacing-md) auto;width:80%}.arcgis-coordinate-conversion__input-form{display:flex;flex-direction:column}.arcgis-coordinate-conversion__coordinate-input{flex:1;margin:0;font-size:var(--coordinate-font-size)}.arcgis-coordinate-conversion__settings{display:flex;flex-direction:column;align-items:center}.arcgis-coordinate-conversion__settings__form-group{display:flex;flex-direction:column;align-items:center;width:60%}.arcgis-coordinate-conversion__settings__form-group-horizontal{display:flex;position:relative;flex-direction:row;width:100%}.arcgis-coordinate-conversion__settings__form-group-first{margin-top:var(--calcite-spacing-sm)}.arcgis-coordinate-conversion__settings__form-group:last-child{width:100%;text-align:center}.arcgis-coordinate-conversion__preview-coordinate{min-height:var(--calcite-spacing-xl)}`,O=2500,U=1e3,G=new L({x:0,y:0}),g={chevronDown:"chevron-down",chevronUp:"chevron-up",copy:"copy",pinTear:"pin-tear",pinTearF:"pin-tear-f",arrowLeft:"arrow-left",refresh:"refresh"},j=S(E),k=class extends F{constructor(){super(...arguments),this.alertTimer=-1,this.messages=P(),this._coordinateInput=z(),this._currentView="conversions",this._multipleConversionsDisabled=!1,this.viewModel=j(this),this.clearAlertTimeout=()=>{window.clearTimeout(this.alertTimer),this.alertProperties={...this.alertProperties,open:!1}},this.alertProperties={kind:"brand",message:null,title:null,open:!1},this.invalidInput=!1,this.goToEnabled=!1,this.inputFormat=null,this.previewConversion=null,this.settingsFormat=null,this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.conversions=this.viewModel.conversions,this.currentLocation=this.viewModel.currentLocation,this.expanded=!1,this.formats=this.viewModel.formats,this.goToOverride=this.viewModel.goToOverride,this.headingLevel=4,this.hideCaptureButton=!1,this.hideInputButton=!1,this.hideExpandButton=!1,this.hideSettingsButton=!1,this.icon="coordinate-system",this.label=this.messages?.componentLabel,this.locationSymbol=this.viewModel.locationSymbol,this.mode=this.viewModel.mode,this.orientation="auto",this.state=this.viewModel.state,this.storageDisabled=this.viewModel.storageEnabled,this.storageType=this.viewModel.storageType,this.arcgisConversionChange=_(),this.arcgisPropertyChange=M()("currentLocation","state","expanded","mode"),this.arcgisReady=_()}static{this.properties={alertProperties:16,invalidInput:16,currentView:16,goToEnabled:16,inputFormat:16,previewConversion:16,settingsFormat:16,view:0,autoDestroyDisabled:5,conversions:0,currentLocation:0,expanded:7,formats:0,goToOverride:0,headingLevel:9,hideCaptureButton:7,hideInputButton:7,hideExpandButton:7,hideSettingsButton:7,icon:0,label:1,locationSymbol:0,mode:3,multipleConversionsDisabled:7,orientation:3,position:3,referenceElement:1,state:3,storageDisabled:7,storageType:1}}static{this.styles=A}get currentView(){return this._currentView}set currentView(e){e!=="conversions"?this.viewModel.pause():this.viewModel.resume(),e==="settings"&&this.setPreviewConversion(),this._currentView=e}get multipleConversionsDisabled(){return this._multipleConversionsDisabled}set multipleConversionsDisabled(e){e&&(this.expanded=!1,this.conversions.splice(1,this.conversions.length-1)),this._multipleConversionsDisabled=e}async destroy(){this.clearAlertTimeout(),await this.manager.destroy()}async reverseConvert(e,o){return await this.viewModel.reverseConvert(e,o)}addConversion(e){let o=e.target,t=o.selectedOption.value,i=R(o);if(t==null||i==null)return;let n=new D({format:t});o.value="default",i>=0?(this.conversions.removeAt(i),this.conversions.add(n,i)):this.conversions.add(n),this.arcgisConversionChange.emit()}async copyToClipboard(e){e&&(e=e.replace(//gu,""),await navigator.clipboard.writeText(e),this.showAlertMessage(null,this.messages.copySuccessMessage,"success",U))}findSettingsFormat(){return this.settingsFormat||this.conversions.reduceRight((e,o)=>{let t=o.format;return t&&$(t)?t:e},null)||this.formats.find(e=>$(e))||null}getId(e){return`arcgis-coordinate-conversion-${e}`}async processUserInput(e,o){let{viewModel:t}=this;try{let i=await this._reverseConvert(e,o);if(!i)throw new Error("failed to process user input");this.mode==="capture"?t.resume():this.mode="capture",this.invalidInput=!1,this.currentLocation=i??void 0,t.setLocation(i),this.currentView="conversions",this._coordinateInput.value&&(this._coordinateInput.value.value="")}catch(i){console.error(i),this.showAlertMessage(null,this.messages?.invalidCoordinate,"warning"),this.invalidInput=!0}}async processUserKeyboardInput(e){let{key:o}=e;if(o==="Enter"){let t=this.inputFormat||this.conversions.at(0)?.format,i=this._coordinateInput.value?.value;if(!t||!i)return;await this.processUserInput(i,t)}else this.invalidInput=!1}async processUserMouseInput(){let e=this.inputFormat||this.conversions.at(0)?.format,o=this._coordinateInput.value?.value;!e||!o||await this.processUserInput(o,e)}removeConversion(e){this.conversions.remove(e),this.arcgisConversionChange.emit()}async _reverseConvert(e,o){let t=this.viewModel,i=await o.reverseConvert(e);return this.goToEnabled&&i&&t.goToLocation(i).catch(n=>{console.warn(n),this.showAlertMessage(null,this.messages?.locationOffBasemap,"warning")}),i}setDefaultPattern(e){e.stopPropagation();let o=this.findSettingsFormat();o?.defaultPattern&&(o.currentPattern=o.defaultPattern)}setInputFormat(e){let o=e.target.selectedOption.value;o!=null&&(this.inputFormat=o)}setPreviewConversion(){let e=this.findSettingsFormat(),o=this.viewModel;if(e){let t=this.conversions.find(i=>i.format===e);this.previewConversion=new D({format:e,position:{location:this.currentLocation,coordinate:t?.position?.coordinate}}),this.previewConversion.position?.coordinate||o.previewConversion(this.previewConversion,o.currentLocation??G)}}setSettingsFormat(e){let o=e.target.selectedOption.value;o!=null&&(this.settingsFormat=o,this.setPreviewConversion())}showAlertMessage(e,o,t,i=O){this.alertProperties={...this.alertProperties,title:e,message:o,kind:t,open:!0},window.clearTimeout(this.alertTimer),this.alertTimer=window.setTimeout(()=>{this.alertProperties={...this.alertProperties,open:!1}},i)}toggleGoTo(){this.goToEnabled=!this.goToEnabled}toggleMode(){this.mode=this.mode==="live"?"capture":"live"}updateCurrentPattern(e){e.stopPropagation();let o=e.target,t=this.findSettingsFormat();t&&(t.currentPattern=o.value)}render(){let{currentView:e}=this,o;return this.viewModel.state==="disabled"||e==="no-basemap"?o=this.renderNoBasemapView():e==="coordinate-input"?o=this.renderCoordinateInputView():e==="settings"?o=this.renderSettingsView():o=this.renderConversionsView(),h`<div class=${s(f(r.base))}>${o}${this.renderAlert()}</div>`}renderAlert(){let{messages:e}=this,{open:o,message:t,title:i,kind:n}=this.alertProperties;return h`<calcite-alert class=${s(r.coordinateConversionAlert)} .open=${o} scale=s .kind=${n} .label=${e.alertLabel} @calciteAlertClose=${this.clearAlertTimeout}>${i?h`<div slot=title>${i}</div>`:null}${t?h`<div slot=message>${t}</div>`:null}</calcite-alert>`}renderConversionOptions(e,o,t){let i=this.conversions.at(0),n=i?.format?.name;return e.map((c,p)=>{let u=o??!i?!1:n===c.name||this.conversions.map(d=>d.format?.name).includes(c.name);return h`<calcite-option .disabled=${u} .label=${c.label.toUpperCase()} .selected=${p===t} .value=${c}>${c.label}</calcite-option>`})}renderConversionView(e,o){let{messages:t}=this,{format:i}=e,n=i?.label??"",c=o===0,p=this.getId(`list-item-${o}`),u=t.conversionOutput.replace("{format name}",n),d=c||this.expanded,b=c?this.renderFirstConversionTools(e):this.renderTools(e,p),v=c&&!e.displayCoordinate?t.noLocation:e.displayCoordinate,m=h`<div aria-label=${v??a} class=${s(r.coordDisplay)} data-conversion=${e??a} tabindex=0 title=${v??""??a}>${v}</div>`,w=this.renderConversionOptions(this.formats.filter(V=>V!==i));return d?h`<li aria-label=${u??a} class=${s(r.conversionRow)} id=${p??a} tabindex=0><calcite-select aria-controls=${p??a} class=${s(r.rowSelect)} data-index=${String(o)??a} .label=${t.selectFormat??""} scale=s @calciteSelectChange=${this.addConversion}><calcite-option .label=${n.toUpperCase()} selected>${n.toUpperCase()}</calcite-option>${w}</calcite-select>${m}${b}</li>`:null}renderConversionsView(){let{messages:e}=this,o=this.viewModel.conversions.map(this.renderConversionView.bind(this)),t=this.getId("conversion-list"),i=this.expanded?h`<div class=${s(r.conversionRow)}><calcite-select aria-controls=${t??a} data-index=-1 .label=${e.addConversion} scale=s @calciteSelectChange=${this.addConversion} title=${e.addConversion??a}><calcite-option disabled selected value=default>${e.addConversion}</calcite-option>${this.renderConversionOptions(this.formats)}</calcite-select>${this.renderPrimaryTools()}</div>`:null,n={[r.expandUp]:this.orientation==="expand-up",[r.expandDown]:this.orientation==="expand-down"};return h`<div class=${s(f(r.conversionsView,n))}><ul aria-expanded=${this.expanded??a} class=${s(r.conversionsList)} id=${t??a}>${o}</ul>${i}</div>`}renderCoordinateInputView(){let e=this.inputFormat??this.conversions.at(0)?.format,o=this.formats.findIndex(d=>d.name===e?.name),t=this.getId(r.coordinateInput),i=this.getId(`${r.coordinateInput}__header`),n=this.renderConversionOptions(this.formats,!1,o),{messages:c,headingLevel:p}=this;if(!c)return null;let u=this.renderIconButton({iconType:g.arrowLeft,flipRtl:!0,clickFunction:()=>{this.currentView="conversions"},label:c.back,title:c.back});return h`<div aria-labelledby=${i??a} class=${s(r.inputForm)} role=search><div class=${s(r.sectionHeading)}>${u}${y({class:f(r.sectionTitle,x.heading),id:i,level:p,children:c.inputCoordTitle})}</div><div class=${s(r.inputFormGroup)}><calcite-select aria-controls=${t??a} class=${s(r.inputSelect)} .label=${c.selectFormat} scale=s @calciteSelectChange=${this.setInputFormat}>${n}</calcite-select><calcite-input aria-labelledby=${i??a} class=${s(r.coordinateInput)} data-format=${e??a} id=${t??a} @keydown=${this.processUserKeyboardInput} .placeholder=${c.inputCoordTitle} required scale=s .status=${this.invalidInput?"invalid":"idle"} ${I(this._coordinateInput)}></calcite-input></div><div class=${s(r.inputFormGroup)}><calcite-label layout=inline scale=s><calcite-checkbox .checked=${this.goToEnabled} @calciteCheckboxChange=${this.toggleGoTo}></calcite-checkbox>${c.goTo}</calcite-label><calcite-button appearance=outline kind=neutral @click=${this.processUserMouseInput} type=button width=auto>${c.convert}</calcite-button></div></div>`}renderCopyButton(e){let{messages:o}=this;return this.renderIconButton({iconType:g.copy,clickFunction:()=>this.copyToClipboard(e.displayCoordinate),buttonClasses:[r.copyButton],ariaLabel:o.copy,title:o.copy})}renderFirstConversionTools(e){let{messages:o,multipleConversionsDisabled:t,hideCaptureButton:i,hideExpandButton:n}=this;if(!o)return null;let c=this.mode==="live"?o.captureMode:o.liveMode,p=this.expanded?o.collapse:o.expand,u=e.displayCoordinate&&this.mode==="capture"?this.renderCopyButton(e):null,d=!t&&!n?this.renderIconButton({iconType:this.expanded?g.chevronDown:g.chevronUp,clickFunction:()=>{this.expanded=!this.expanded},ariaControls:this.getId("conversion-list"),label:p,title:p}):null,b=t&&!i?this.renderIconButton({iconType:this.mode==="live"?g.pinTear:g.pinTearF,clickFunction:this.toggleMode,label:c,title:c}):null;return h`<ul class=${s(r.toolDisplay)}><li>${u}</li><li>${d}</li><li>${b}</li></ul>`}renderIconButton(e){let{iconType:o,clickFunction:t,buttonClasses:i,ariaLabel:n,ariaControls:c,label:p,flipRtl:u,title:d}=e;return h`<calcite-button appearance=transparent aria-label=${n??a} aria-controls=${c??a} class=${s(f(i))} .iconFlipRtl=${u?"start":void 0} .iconStart=${o} kind=neutral .label=${p} @click=${t} title=${d??a}></calcite-button>`}renderNoBasemapView(){return h`<div class=${s(f(r.noBasemap,r.base))}>${this.messages.noBasemap}</div>`}renderPrimaryTools(){let{messages:e,hideInputButton:o,hideCaptureButton:t,hideSettingsButton:i}=this;if(!e)return null;let n=this.mode==="live"?e.captureMode:e.liveMode,c=o?null:this.renderIconButton({iconType:"pencil",clickFunction:()=>{this.currentView="coordinate-input"},label:e.inputCoordTitle,title:e.inputCoordTitle}),p=t?null:this.renderIconButton({iconType:this.mode==="live"?g.pinTear:g.pinTearF,clickFunction:this.toggleMode,label:n,title:n}),u=i?null:this.renderIconButton({iconType:"gear",clickFunction:()=>{this.currentView="settings"},label:e.settingsTitle,title:e.settingsTitle});return h`<ul class=${s(r.toolDisplay)}><li>${c}</li><li>${p}</li><li>${u}</li></ul>`}renderSettingsView(){let e=this.getId(r.patternInput),o=this.getId(`${r.patternInput}__header`),t=this.getId(r.previewCoordinate),i=this.formats.filter(w=>$(w)),n=this.findSettingsFormat(),c=n?i.indexOf(n):-1,p=this.renderConversionOptions(i,!0,c),u=n?.currentPattern,{messages:d,headingLevel:b}=this;if(!d)return null;let v=this.renderIconButton({iconType:g.arrowLeft,flipRtl:!0,clickFunction:()=>{this.currentView="conversions"},label:d.back,title:d.back}),m=this.renderIconButton({iconType:g.refresh,clickFunction:this.setDefaultPattern,label:d.defaultPattern,title:d.defaultPattern});return h`<div aria-labelledby=${o??a} class=${s(r.settings)}><div class=${s(r.sectionHeading)}>${v}${y({class:f(r.sectionTitle,x.heading),id:o,level:b,children:d.settingsTitle})}</div><div class=${s(f(r.settingsFormGroup,r.firstSettingsGroup))}><calcite-label alignment=center .for=${e} scale=s>${d.changeCoordinateDisplay}<calcite-select .label=${d.selectFormat} width=full @calciteSelectChange=${this.setSettingsFormat}>${p}</calcite-select><div class=${s(r.settingsFormGroupHorizontal)}><calcite-input aria-controls=${t??a} class=${s(r.patternInput)} id=${e??a} type=text .value=${u} @calciteInputInput=${this.updateCurrentPattern}></calcite-input>${m}</div></calcite-label></div><div class=${s(r.settingsFormGroup)}><calcite-label alignment=center scale=s>${d.preview}<div class=${s(r.previewCoordinate)} id=${t??a} tabindex=0>${this.previewConversion?.displayCoordinate}</div></calcite-label></div></div>`}renderTools(e,o){let t=e.displayCoordinate&&this.mode==="capture"?this.renderCopyButton(e):null,{messages:i}=this;if(!i)return null;let n=this.renderIconButton({iconType:"x",clickFunction:()=>this.removeConversion(e),ariaControls:o,label:i.removeConversion,title:i.removeConversion});return h`<ul class=${s(r.toolDisplay)}><li>${t}</li><li>${n}</li></ul>`}};function R(C){let e=C.getAttribute("data-index");return e?window.parseInt(e):null}B("arcgis-coordinate-conversion",k);return k},"applications/Components/formatUtils","geometry/Point","widgets/CoordinateConversion/support/Conversion","widgets/CoordinateConversion/CoordinateConversionViewModel",b,c,d)
|
package/dist/cdn/RHLKZA34.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.93 */
|
|
4
|
-
import{a as N,b as D}from"./5W4G4PNT.js";import{c as L,g as _}from"./USUYE22F.js";import{h as x,j as E,k as C,l as h,m as u,n as P,o as f,q as v,r as O,t as w}from"./IKNWZBGW.js";var A=e=>(...s)=>{let t=u(),o=new e(...s),r=o.exports;h(t.at(-1));let n=o.component.manager;n.W(o,r),o.watchExports(n.W.bind(n,o)),P(o);let a=[o.component,...t].reverse();return v(a,i=>i===void 0?void 0:T(o,i,r),r)},T=(e,{host:s,key:t,isReactive:o},r)=>{let n=s,a=n[t]!==e.exports,i=n[t]!==r,c=r!==e.exports;if(a&&!i&&c&&(n[t]=e.exports),s===e.component){if(o){let p=e.component.manager;i&&p.W(e,n[t]),e.onUpdate(m=>{if(m.has(t)){let b=n[t];b!==e.exports&&p.W(e,b)}})}e.O=o?void 0:t}let d=e.component.constructor.elementProperties.get(t)?.readOnly;e.watchExports(()=>{n[t]!==e.exports&&(d?f(()=>{n[t]=e.exports}):n[t]=e.exports)})};var y=e=>V(void 0,e),re=e=>s=>V(s,e),g=class extends w{constructor(s,t){super(s);let o=this.exports;try{E(this.component);let r=t(this.component,this),n=this.exports!==o;if(x(r)){n||this.setProvisionalExports(r);let a=r.then(i=>{this.exports=i,super.catchUpLifecycle()}).catch(i=>{this.P.reject(i),console.error(i)});this.onLoad(async()=>await a)}else(!n||r!==void 0)&&(this.exports=r),queueMicrotask(()=>super.catchUpLifecycle())}catch(r){this.P.reject(r),console.error(r)}}catchUpLifecycle(){}},V=A(g);var se=e=>(...s)=>{let t=u(),o=new e(...s);return h(t.at(-1)),o},ne=e=>y((s,t)=>{let o=globalThis.matchMedia(e),r=()=>{t.exports=o.matches};r(),t.onLifecycle(()=>(o.addEventListener("change",r),()=>o.removeEventListener("change",r)))}),M="ltr",ie=()=>y((e,s)=>{s.exports=M,s.onLifecycle(()=>{let t=()=>{let o=_(e.el,"dir",M);s.exports=o==="rtl"?"rtl":"ltr"};return t(),L(e.el,["dir"],t)})}),ae=e=>(s={})=>y((t,o)=>{let r=N(t.el),n={_lang:r.lang,_t9nLocale:r.t9nLocale,_loading:!0},a=t;o.onLifecycle(()=>D(t.el,()=>e("./assets"),({t9nLocale:c,t9nStrings:l,lang:d})=>{let p={...l,_lang:d,_t9nLocale:c,_loading:!1};o.exports=p;let m=l.componentLabel;typeof m=="string"&&"label"in t&&t.label==null&&(t.label??=m),i(a.messageOverrides)},s.name));let i=c=>{let l=o.exports,d=l._original??l,p=R(d,c);c&&(p._original=d),o.exports=p};return"messageOverrides"in a&&o.onUpdate(c=>{c.has("messageOverrides")&&i(a.messageOverrides)}),s.blocking?(o.setProvisionalExports(n,!1),o.ready):n}),R=(e,s)=>{if(!s)return e;let t={...e};return Object.entries(s).forEach(([o,r])=>{e[o]!==void 0&&(typeof r=="object"?t[o]=R(e[o],r):t[o]=r??e[o])}),t},ce=e=>F,U="arcgisPropertyChange",F=(...e)=>{let s=C(),t=O(U,void 0,s),o=!0;return s.manager.onUpdated(r=>{if(o||!s.el.isConnected){o=!1;return}for(let n of e)r.has(n)&&t.emit({name:n})}),t};export{A as a,re as b,se as c,ne as d,ie as e,ae as f,ce as g};
|
package/dist/cdn/RVDVMDEI.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.93 */
|
|
4
|
-
import e from"./Q35KRAVX.js";import{a as y,c as L}from"./ZQ7REL2H.js";import{a as A}from"./G2DLQJ7Y.js";import d from"./WXEYFVOL.js";import"./5DYLDR23.js";import a from"./GBRRLZHP.js";import"./RHLKZA34.js";import"./5W4G4PNT.js";import{d as _,e as V}from"./OZMRRK2Y.js";import"./USUYE22F.js";import"./NMF2M4P3.js";import{G as c,H as p,I as b,J as v,O as C,b as l,s as w}from"./IKNWZBGW.js";import"./4CS2VL3M.js";export default $arcgis.t(([{watch:o},I,R,{fetchKnowledgeGraph:M},Q,x,{isAbortError:D},{a:t,b:m,f:f},{a:d},{a:E,b:k,c:U}])=>{var P=m(R,{}),z=m(I,{}),g=class extends b{constructor(){super(),this._containerRef=c(),this._mapRef=c(),this._uiController=new E(this),this._activeLoadAbortController=null,this.arcgisLoadError=k(this),this.arcgisViewReadyError=U(this),this._map=P(this),this._baseCypherQuery="",this._serviceUrl="",this.view=z(this),this.animationsDisabled=this.view.animationsEnabled,this.allLayerViews=this.view.allLayerViews,this.analyses=this.view.analyses,this.attributionMode=this.view.attributionMode,this.autoDestroyDisabled=!1,this.background=this.view.background,this.basemap=this._map.basemap,this.basemapView=this.view.basemapView,this.constraints=this.view.constraints,this.displayFilterDisabled=this.view.displayFilterEnabled,this.fatalError=this.view.fatalError,this.graphics=this.view.graphics,this.highlights=this.view.highlights,this.highlightOptions=this.view.highlightOptions,this.layerViews=this.view.layerViews,this.magnifier=this.view.magnifier,this.map=this.view.map,this.navigation=this.view.navigation,this.padding=this.view.padding,this.popup=this.view.popup,this.popupDisabled=this.view.popupEnabled,this.ready=this.view.ready,this.resizeAlign=this.view.resizeAlign,this.resolution=this.view.resolution,this.rotation=this.view.rotation,this.spatialReference=this.view.spatialReference,this.suspended=this.view.suspended,this.theme=this.view.theme,this.timeExtent=this.view.timeExtent,this.timeZone=this.view.timeZone,this.updating=this.view.updating,this.arcgisViewAnalysisViewCreate=t(()=>this.view,"analysis-view-create"),this.arcgisViewAnalysisViewCreateError=t(()=>this.view,"analysis-view-create-error"),this.arcgisViewAnalysisViewDestroy=t(()=>this.view,"analysis-view-destroy"),this.arcgisViewChange=w(),this.arcgisViewClick=t(()=>this.view,"click"),this.arcgisViewDoubleClick=t(()=>this.view,"double-click"),this.arcgisViewDrag=t(()=>this.view,"drag"),this.arcgisViewHold=t(()=>this.view,"hold"),this.arcgisViewImmediateClick=t(()=>this.view,"immediate-click"),this.arcgisViewImmediateDoubleClick=t(()=>this.view,"immediate-double-click"),this.arcgisViewKeyDown=t(()=>this.view,"key-down"),this.arcgisViewKeyUp=t(()=>this.view,"key-up"),this.arcgisViewLayerviewCreate=t(()=>this.view,"layerview-create"),this.arcgisViewLayerviewCreateError=t(()=>this.view,"layerview-create-error"),this.arcgisViewLayerviewDestroy=t(()=>this.view,"layerview-destroy"),this.arcgisViewMouseWheel=t(()=>this.view,"mouse-wheel"),this.arcgisViewPointerDown=t(()=>this.view,"pointer-down"),this.arcgisViewPointerEnter=t(()=>this.view,"pointer-enter"),this.arcgisViewPointerLeave=t(()=>this.view,"pointer-leave"),this.arcgisViewPointerMove=t(()=>this.view,"pointer-move"),this.arcgisViewPointerUp=t(()=>this.view,"pointer-up"),this.arcgisViewReadyChange=w(),this.view.ui={components:[]}}static{this.properties={_map:16,_baseCypherQuery:16,_serviceUrl:16,view:32,animationsDisabled:5,aria:0,allLayerViews:0,analyses:0,attributionItems:32,attributionMode:1,autoDestroyDisabled:5,background:0,basemap:1,basemapView:0,center:1,constraints:0,displayFilterDisabled:5,extent:0,fatalError:0,focusAreas:0,graphics:0,hideAttribution:5,highlights:0,highlightOptions:0,interacting:32,itemId:3,baseCypherQuery:3,serviceUrl:3,layerViews:0,magnifier:0,map:0,navigating:32,navigation:0,padding:0,popup:0,popupDisabled:5,ready:4,resizeAlign:1,resolution:8,rotation:9,scale:9,spatialReference:0,stationary:32,suspended:7,theme:0,timeExtent:0,timeZone:1,updating:4,viewpoint:0,zoom:9,loadErrorSources:0}}static{this.styles=[A,L]}get aria(){return this.view?.aria}set aria(i){this.view&&(this.view.aria=i)}get attributionItems(){return this.view?.attributionItems??[]}get center(){return this.view.center}set center(i){let e=V(i,this.view);e&&(this.view.center=e)}get extent(){return this.view.extent}set extent(i){this.extent?.equals(i)||(this.view.extent=i)}get focusAreas(){return this.map?this.map?.focusAreas:{areas:[],style:"bright"}}set focusAreas(i){this.map&&(this.map.focusAreas=i)}get hideAttribution(){return!this.view.attributionVisible}set hideAttribution(i){this.view.attributionVisible=!i}get interacting(){return this.view.interacting}get itemId(){return this._map.portalItem?.id}set itemId(i){i&&this._activeLoadAbortController?.abort(),s.reCreateAccessor(this._map,this),this._map.portalItem={id:i},!i&&this._baseCypherQuery?this.baseCypherQuery=this._baseCypherQuery:!i&&this._serviceUrl?this.serviceUrl=this._serviceUrl:s.setMap(this.view,this._map)}get baseCypherQuery(){return this._baseCypherQuery}set baseCypherQuery(i){if(this._baseCypherQuery=i,i){if(this._map.portalItem?.id||!this._serviceUrl)return;{this._activeLoadAbortController?.abort();let e=new AbortController;this._activeLoadAbortController=e,s.fetchKnowledgeGraph(this._serviceUrl).then(n=>{s.WebLinkChart.fromCypherQuery(n,new Q({openCypherQuery:i}),void 0,{signal:e.signal}).then(async h=>{try{d(e.signal),this._setLinkChartAndZoom(h)}catch(r){if(!D(r))throw r}})})}}else{if(this._map.portalItem?.id)return;if(this._serviceUrl)this.serviceUrl=this._serviceUrl;else{s.setMap(this.view,null);return}}}get serviceUrl(){return this._serviceUrl}set serviceUrl(i){if(this._serviceUrl=i,!this._map.portalItem?.id&&!i){s.setMap(this.view,null);return}else if(!this._map.portalItem?.id&&this._baseCypherQuery)this.baseCypherQuery=this._baseCypherQuery;else if(!this._map.portalItem?.id&&!this._baseCypherQuery&&i){this._activeLoadAbortController?.abort();let e=new AbortController;this._activeLoadAbortController=e,s.fetchKnowledgeGraph(i).then(n=>{let h=new s.WebLinkChart,r=new s.LinkChartLayer({url:n.url});r.load({signal:e.signal});try{d(e.signal),h.add(r),this._setLinkChartAndZoom(h)}catch(u){if(!D(u))throw u}})}}get navigating(){return this.view.navigating}get scale(){return this.view.scale}set scale(i){this.view.scale=i}get stationary(){return this.view.stationary}get viewpoint(){return this.view.viewpoint}set viewpoint(i){_(this.viewpoint,i)&&(this.view.viewpoint=i)}get zoom(){return this.view.zoom}set zoom(i){this.view.zoom=i}async addLayer(i,e){this.map?.add(i,e)}async addLayers(i,e){this.map?.addMany(i,e)}async closePopup(){this._uiController.closePopup()}async destroy(){await this.manager.destroy()}async goTo(i,e){return await this.view.goTo(i,e)}async openPopup(i){this._uiController.openPopup(i)}toMap(i){return this.view.toMap(i)}toScreen(i,e){return this.view.toScreen(i,e)}async tryFatalErrorRecovery(){this.view.tryFatalErrorRecovery()}async viewOnReady(i,e){return await this.componentOnReady(),await this.view.whenReady().then(()=>i?.()).catch(e)}async whenAnalysisView(i){return await this.view.whenAnalysisView(i)}async whenLayerView(i){return await this.view.whenLayerView(i)}loaded(){let i=this;i.el.childElem=this._mapRef.value,this.view.container??=i.el.childElem,this.map||=this._map,this.manager.onLifecycle(()=>[o(()=>this.map,e=>{e&&(this._map=e)},{initial:!0,sync:!0}),o(()=>this.view.stationary,()=>this.arcgisViewChange.emit(),{initial:!0}),o(()=>this.view.ready,()=>this.arcgisViewReadyChange.emit(),{initial:this.view.ready}),o(()=>this.view.attributionHeight,e=>{this._uiController.handleAttributionHeightChange(e)})])}_setLinkChartAndZoom(i){s.reCreateAccessor(this._map,this),this._map=i,s.setMap(this.view,i),this.view.when(()=>{i.diagramNodesExtent&&this.view.goTo(i.diagramNodesExtent)})}renderMain(){return l`<div class=${v(y.base)} ${p(this._mapRef)}></div>`}render(){return l`<section class=${v(y.containerUI)} ${p(this._containerRef)}>${this._uiController.render()}</section>${this.renderMain()}`}},s={fetchKnowledgeGraph:async a=>await M(a),WebLinkChart:R,LinkChartLayer:x,setMap:(a,i)=>{a.map=i},reCreateAccessor:f};C("arcgis-link-chart",g);return{ArcgisLinkChart:g,exportsForTests:s}},"core/reactiveUtils","views/LinkChartView","WebLinkChart","rest/knowledgeGraphService","rest/knowledgeGraph/GraphQueryStreaming","layers/LinkChartLayer","core/promiseUtils",a,d,e)
|
package/dist/cdn/S2V2W4SB.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.93 */
|
|
4
|
-
import{b as g,d as p}from"./RN65F4EU.js";import j from"./5OPBLLLV.js";import i from"./WXEYFVOL.js";import"./5DYLDR23.js";import e from"./6PJ27SYB.js";import{a as y}from"./WQ3225KQ.js";import{a as c}from"./M3D2NYN3.js";import d from"./GBRRLZHP.js";import a from"./SGSYHTAS.js";import{g as x}from"./RHLKZA34.js";import"./5W4G4PNT.js";import"./OZMRRK2Y.js";import"./USUYE22F.js";import"./NMF2M4P3.js";import{I as w,J as f,L as v,O as b,a as m,b as h,s as _}from"./IKNWZBGW.js";import"./4CS2VL3M.js";export default $arcgis.t(([$,{getDefaultUnitForView:U},{property:n,subclass:V},{watch:D},,,k,{e:z},M])=>{var j=m`.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}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--esri-widget-padding);transition:max-height .25s ease-in-out;overflow-y:auto}.esri-unit-select{width:100%}.esri-unit-select__label{--calcite-label-margin-bottom: 0;width:100%}:host{display:block}.esri-measurement-widget-content{padding:var(--esri-widget-padding);flex-direction:column;gap:var(--calcite-spacing-xxl);display:flex;position:relative;overflow-y:auto}.esri-measurement-widget-content__error{color:var(--calcite-color-status-danger)}.esri-measurement-widget-content__error,.esri-measurement-widget-content__hint{overflow:hidden}.esri-measurement-widget-content__error p,.esri-measurement-widget-content__hint p{margin:0;padding:0}.esri-measurement-widget-content__hint,.esri-measurement-widget-content__error,.esri-measurement-widget-content__measurement,.esri-measurement-widget-content__measurement-item{flex-direction:column;gap:var(--calcite-spacing-md);animation:.25s ease-in-out esri-fade-in;display:flex}.esri-measurement-widget-content__measurement-item--disabled{color:var(--calcite-color-border-ghost)}.esri-measurement-widget-content__measurement-item__value{font-weight:var(--calcite-font-weight-semibold)}.esri-measurement-widget-content__actions{flex-direction:column;justify-content:center;gap:var(--calcite-spacing-xs);display:flex}:host{.esri-widget--panel{min-width:0}}`,A=Object.defineProperty,C=Object.getOwnPropertyDescriptor,a=(e,i,r,l)=>{for(var o=l>1?void 0:l?C(i,r):i,d=e.length-1,s;d>=0;d--)(s=e[d])&&(o=(l?s(i,r,o):s(o))||o);return l&&o&&A(i,r,o),o},t=class extends M{constructor(){super(...arguments),this.supportedViewType="2d",this.unsupportedErrorMessage="The Area Measurement 2D component is only supported in 2D views.",this.shouldForceInteractive=!1}initialize(){this.addHandles(D(()=>({analysis:this.analysis,unit:this.unit}),({analysis:e,unit:i})=>{e&&(e.unit=i)},{sync:!0,initial:!0}))}get state(){return this.supported?this.disabled?"disabled":this.operationState==="inactive"&&!this.analysis.valid?"ready":this.analysis.valid?"measured":"measuring":"unsupported"}get measurement(){return{mode:this.analysisView?.result?.mode??"euclidean",area:p(this.analysis.valid?this.analysisView?.result?.area:void 0),perimeter:p(this.analysis.valid?this.analysisView?.result?.perimeter:void 0)}}get unitOptions(){let e=this._userUnitOptions?.filter(i=>g.includes(i));return e&&e.length>0?e:g.slice()}set unitOptions(e){this._userUnitOptions=e}get unit(){let e=this._userUnit??this.analysis.unit,i=this.unitOptions;if(e&&i.includes(e))return e;let r=this._defaultUnit;return r&&i.includes(r)?r:i[0]}set unit(e){this._userUnit=e}get _defaultUnit(){return this.view?U(this.view):void 0}async place(e){this.analysisView&&(await this.analysisView.place(e),this.analysisView.interactive=!0)}clearAnalysis(){this.analysis.geometry=null}constructAnalysis(){return new $}};a([n()],t.prototype,"state",1);a([n()],t.prototype,"measurement",1);a([n()],t.prototype,"unitOptions",1);a([n()],t.prototype,"_userUnitOptions",2);a([n()],t.prototype,"unit",1);a([n()],t.prototype,"_userUnit",2);a([n()],t.prototype,"_defaultUnit",1);t=a([V("components.area-measurement-2d.AreaMeasurement2dViewModel")],t);var E="arcgis-area-measurement-2d",P={base:E},L=k(t),u=class extends w{constructor(){super(...arguments),this.viewModel=L(this),this.messages=y({name:"area-measurement-2d",blocking:!0}),this.view=this.viewModel.view,this.analysis=this.viewModel.analysis,this.autoDestroyDisabled=!1,this.icon="measure-area",this.state=this.viewModel.state,this.unit=this.viewModel.unit,this.unitOptions=this.viewModel.unitOptions,this.arcgisPropertyChange=x()("analysis","state"),this.arcgisReady=_()}static{this.properties={view:0,analysis:0,autoDestroyDisabled:5,icon:2,label:1,position:1,referenceElement:1,state:35,unit:1,unitOptions:0}}static{this.styles=j}async clear(){this.viewModel.clear()}async destroy(){await this.manager.destroy()}async start(){z(this.viewModel.start())}render(){let{messages:i,unit:r,unitOptions:l,viewModel:o}=this,{measurement:d,state:s}=o;return h`<div aria-label=${i.componentLabel??v} class=${f({[P.base]:!0,[c.widget]:!0,[c.panel]:!0})} role=presentation><arcgis-measurement-content .state=${s} .hintLabel=${i.hint} .unsupportedLabel=${i.unsupported} .items=${[{title:i.area,measurement:d.area},{title:i.perimeter,measurement:d.perimeter}]}><arcgis-unit-select slot=settings .options=${l} .selectLabel=${i.unit} .value=${r} @arcgisUnitSelectChange=${O=>{this.unit=O.detail}}></arcgis-unit-select><calcite-button slot=actions .disabled=${s==="unsupported"||s==="disabled"} @click=${this.start}>${i.newMeasurement}</calcite-button></arcgis-measurement-content></div>`}};b("arcgis-area-measurement-2d",u);return u},"analysis/AreaMeasurementAnalysis","applications/Components/getDefaultUnits","core/accessorSupport/decorators","core/reactiveUtils",a,d,e,i,j)
|
package/dist/cdn/STOXIMCR.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.93 */
|
|
4
|
-
import e from"./6PJ27SYB.js";import{a as _}from"./WQ3225KQ.js";import{a as c}from"./M3D2NYN3.js";import d from"./GBRRLZHP.js";import b from"./SGSYHTAS.js";import{g as v}from"./RHLKZA34.js";import"./5W4G4PNT.js";import"./OZMRRK2Y.js";import{b as u}from"./USUYE22F.js";import"./NMF2M4P3.js";import{I as m,J as a,O as w,a as h,b as t,s as n}from"./IKNWZBGW.js";import"./4CS2VL3M.js";export default $arcgis.t(([b,{watch:p},,{a:d},f])=>{var y=h`.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}:host{--panel-min-height--large: 240px;display:flex;flex-direction:column;flex-grow:1}.arcgis-print{display:flex;position:relative;flex-grow:1;min-height:var(--panel-min-height--large)}.arcgis-print section[aria-hidden=true]{display:none}.arcgis-print__panel-items--centered{display:flex;align-items:center}.arcgis-print__container{display:flex;flex-direction:column;flex-grow:1}.arcgis-print__header-title{margin:0 auto 0 0;padding:var(--calcite-spacing-md) var(--calcite-spacing-lg);font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-bold)}.arcgis-print__panel--error{color:var(--calcite-color-status-danger)}`,s="arcgis-print",l={base:s,headerTitle:`${s}__header-title`,panelItemsCentered:`${s}__panel-items--centered`,printWidgetContainer:`${s}__container`,panelError:`${s}__panel--error`},M=f(b),x=r=>{if(!r)return"all";let e=typeof r=="string"?r.split(",").map(i=>i.trim()).filter(i=>i):[r];return!e.length||e.includes("all")?"all":e},g=class extends m{constructor(){super(...arguments),this.messages=_({blocking:!0}),this.viewModel=M(this),this.error=null,this._showTemplates=!1,this.view=this.viewModel.view,this.hideHeader=!1,this.icon="print",this.hideAdvancedOptions=!1,this.allowedFormats=this.viewModel.allowedFormats,this.allowedLayouts=this.viewModel.allowedLayouts,this.autoPopulateAuthor=!1,this.exportedLinks=this.viewModel.exportedLinks,this.extraParameters=this.viewModel.extraParameters,this.headingLevel=3,this.excludeDefaultTemplates=!this.viewModel.includeDefaultTemplates,this.excludeOrganizationTemplates=!1,this.outSpatialReference=this.viewModel.outSpatialReference,this.portal=this.viewModel.portal,this.showPrintAreaEnabled=this.viewModel.showPrintAreaEnabled,this.printServiceUrl=this.viewModel.printServiceUrl,this.templateCustomTextElements=this.viewModel.templateCustomTextElements,this.templateOptions=this.viewModel.templateOptions,this.autoDestroyDisabled=!1,this.state=this.viewModel.state,this.arcgisComplete=d(()=>this.viewModel,"complete"),this.arcgisPropertyChange=v()("state"),this.arcgisReady=n(),this.arcgisSubmit=d(()=>this.viewModel,"submit"),this.arcgisBrowseTemplatesChange=n(),this.arcgisSaveAs=n()}static{this.properties={error:16,_showTemplates:16,view:0,hideHeader:5,referenceElement:1,position:3,icon:1,hideAdvancedOptions:5,allowedFormats:[1,{type:String,converter:x}],allowedLayouts:[1,{type:String,converter:x}],autoPopulateAuthor:5,allowedFormatsForSaving:1,exportedLinks:0,extraParameters:0,headingLevel:9,excludeDefaultTemplates:5,excludeOrganizationTemplates:5,outSpatialReference:0,portal:0,showPrintAreaEnabled:5,printServiceUrl:1,showSaveAs:5,templateCustomTextElements:0,templateOptions:0,autoDestroyDisabled:5,messageOverrides:0,label:1,state:3}}static{this.styles=y}addPortalTemplate(e){return this.viewModel.addPortalTemplate(e)}async destroy(){await this.manager.destroy(),this.viewModel.destroy()}loaded(){this.manager.onLifecycle(()=>[p(()=>this.viewModel.error,o=>this.error=o),p(()=>this.viewModel.state,o=>{o==="ready"&&this.arcgisReady.emit()}),this.viewModel.browseTemplates.on("change",o=>{this.arcgisBrowseTemplatesChange.emit(o)}),p(()=>[this.printServiceUrl,this.portal],()=>{this.viewModel.load()},{initial:!0})]);let{height:e,width:i}=this.viewModel.templateOptions;this.viewModel.templateOptions.width=i||800,this.viewModel.templateOptions.height=e||1100}_showTemplateSelector(){this._showTemplates=!0}_hideTemplateSelector(){this._showTemplates=!1}render(){let e={[l.panelItemsCentered]:this.viewModel.state==="initializing"};return t`<div class=${a(u(l.base,c.widget,c.panel,e))}>${this._renderPanel()}</div>`}_renderPanel(){return this.viewModel.state==="disabled"||this.viewModel.state==="initializing"?t`<calcite-loader .label=${this.messages.loading} scale=m></calcite-loader>`:t`<calcite-flow><calcite-flow-item .selected=${!this._showTemplates}><div class=${a(l.printWidgetContainer)}>${this._renderPanelHeader()}${this._renderPanelContent()}</div></calcite-flow-item><calcite-flow-item .heading=${this.messages.chooseTemplate} .selected=${this._showTemplates} @calciteFlowItemBack=${e=>{e.preventDefault(),this._showTemplates=!1}}><arcgis-print-template-selector .messages=${this.messages} .viewModel=${this.viewModel} .hideTemplateSelector=${this._hideTemplateSelector.bind(this)} .excludeOrganizationTemplates=${this.excludeOrganizationTemplates}><slot name=browse-template-button></slot></arcgis-print-template-selector></calcite-flow-item></calcite-flow>`}_renderPanelHeader(){return this.hideHeader?null:t`<header class=${a(l.headerTitle)}>${this.messages.export}</header>`}_renderPanelContent(){let e=this.viewModel.view,i=e?.type!=="2d";return this.error||i?t`<div class=${a(l.panelError)}>${e?i?this.messages.sceneViewError:this.messages.serviceError:this.messages.noViewError}</div>`:t`<arcgis-print-main-panel .messages=${this.messages} .viewModel=${this.viewModel} .showTemplateSelector=${this._showTemplateSelector.bind(this)} .hideAdvancedOptions=${this.hideAdvancedOptions} .allowedFormatsForSaving=${this.allowedFormatsForSaving} .autoPopulateAuthor=${this.autoPopulateAuthor} .showSaveAs=${this.showSaveAs} .arcgisSaveAs=${this.arcgisSaveAs}></arcgis-print-main-panel>`}};w("arcgis-print",g);return g},"widgets/Print/PrintViewModel","core/reactiveUtils",b,d,e)
|
package/dist/cdn/T6V4IFOB.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.93 */
|
|
4
|
-
import a from"./BXSJVOYL.js";import"./PL6CQKLM.js";import"./M3D2NYN3.js";import"./USUYE22F.js";import"./IKNWZBGW.js";import"./4CS2VL3M.js";export default $arcgis.t(([a])=>{return a},a)
|
package/dist/cdn/TFMLH5Y7.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.93 */
|
|
4
|
-
import{a as l}from"./PL6CQKLM.js";import e from"./6PJ27SYB.js";import{a as p}from"./WQ3225KQ.js";import d from"./GBRRLZHP.js";import b from"./SGSYHTAS.js";import"./RHLKZA34.js";import"./5W4G4PNT.js";import"./OZMRRK2Y.js";import"./USUYE22F.js";import{a}from"./NMF2M4P3.js";import{G as c,H as s,I as g,O as u,a as f,b as t,s as n}from"./IKNWZBGW.js";import"./4CS2VL3M.js";export default $arcgis.t(([y,,,m])=>{var x=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-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-hidden{display:none!important}[class^=esri-icon-],[class*=" esri-icon-"]{speak:none;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-style:normal;font-weight:var(--calcite-font-weight-normal);line-height:1;font-family:CalciteWebCoreIcons!important}.esri-icon-close:before{content:"";color:inherit}.esri-icon-drag-horizontal:before{content:"";color:inherit}.esri-icon-drag-vertical:before{content:"";color:inherit}.esri-icon-handle-horizontal:before{content:"";color:inherit}.esri-icon-handle-vertical:before{content:"";color:inherit}.esri-icon-check-mark:before{content:"";color:inherit}.esri-icon-left-triangle-arrow:before{content:"";color:inherit}.esri-icon-right-triangle-arrow:before{content:"";color:inherit}.esri-icon-down-arrow:before{content:"";color:inherit}.esri-icon-up-arrow:before{content:"";color:inherit}.esri-icon-overview-arrow-bottom-left:before{content:"";color:inherit}.esri-icon-overview-arrow-bottom-right:before{content:"";color:inherit}.esri-icon-overview-arrow-top-left:before{content:"";color:inherit}.esri-icon-overview-arrow-top-right:before{content:"";color:inherit}.esri-icon-maximize:before{content:"";color:inherit}.esri-icon-minimize:before{content:"";color:inherit}.esri-icon-checkbox-unchecked:before{content:"";color:inherit}.esri-icon-checkbox-checked:before{content:"";color:inherit}.esri-icon-radio-unchecked:before{content:"";color:inherit}.esri-icon-radio-checked:before{content:"";color:inherit}.esri-icon-up-arrow-circled:before{content:"";color:inherit}.esri-icon-down-arrow-circled:before{content:"";color:inherit}.esri-icon-left-arrow-circled:before{content:"";color:inherit}.esri-icon-right-arrow-circled:before{content:"";color:inherit}.esri-icon-zoom-out-fixed:before{content:"";color:inherit}.esri-icon-zoom-in-fixed:before{content:"";color:inherit}.esri-icon-refresh:before{content:"";color:inherit}.esri-icon-edit:before{content:"";color:inherit}.esri-icon-authorize:before{content:"";color:inherit}.esri-icon-map-pin:before{content:"";color:inherit}.esri-icon-blank-map-pin:before{content:"";color:inherit}.esri-icon-table:before{content:"";color:inherit}.esri-icon-plus:before{content:"+";color:inherit}.esri-icon-minus:before{content:"";color:inherit}.esri-icon-beginning:before{content:"";color:inherit}.esri-icon-reverse:before{content:"";color:inherit}.esri-icon-pause:before{content:"";color:inherit}.esri-icon-play:before{content:"";color:inherit}.esri-icon-forward:before{content:"";color:inherit}.esri-icon-end:before{content:"";color:inherit}.esri-icon-erase:before{content:"";color:inherit}.esri-icon-up-down-arrows:before{content:"";color:inherit}.esri-icon-left:before{content:"";color:inherit}.esri-icon-right:before{content:"";color:inherit}.esri-icon-announcement:before{content:"";color:inherit}.esri-icon-notice-round:before{content:"";color:inherit}.esri-icon-notice-triangle:before{content:"";color:inherit}.esri-icon-home:before{content:"";color:inherit}.esri-icon-locate:before{content:"";color:inherit}.esri-icon-expand:before{content:"";color:inherit}.esri-icon-collapse:before{content:"";color:inherit}.esri-icon-layer-list:before{content:"";color:inherit}.esri-icon-basemap:before{content:"";color:inherit}.esri-icon-globe:before{content:"";color:inherit}.esri-icon-applications:before{content:"";color:inherit}.esri-icon-arrow-up-circled:before{content:"";color:inherit}.esri-icon-arrow-down-circled:before{content:"";color:inherit}.esri-icon-arrow-left-circled:before{content:"";color:inherit}.esri-icon-arrow-right-circled:before{content:"";color:inherit}.esri-icon-minus-circled:before{content:"";color:inherit}.esri-icon-plus-circled:before{content:"";color:inherit}.esri-icon-add-attachment:before{content:"";color:inherit}.esri-icon-attachment:before{content:"";color:inherit}.esri-icon-calendar:before{content:"";color:inherit}.esri-icon-close-circled:before{content:"";color:inherit}.esri-icon-browser:before{content:"";color:inherit}.esri-icon-collection:before{content:"";color:inherit}.esri-icon-comment:before{content:"";color:inherit}.esri-icon-configure-popup:before{content:"";color:inherit}.esri-icon-contact:before{content:"";color:inherit}.esri-icon-dashboard:before{content:"";color:inherit}.esri-icon-deny:before{content:"";color:inherit}.esri-icon-description:before{content:"";color:inherit}.esri-icon-directions:before{content:"";color:inherit}.esri-icon-directions2:before{content:"";color:inherit}.esri-icon-documentation:before{content:"";color:inherit}.esri-icon-duplicate:before{content:"";color:inherit}.esri-icon-review:before{content:"";color:inherit}.esri-icon-environment-settings:before{content:"";color:inherit}.esri-icon-error:before{content:"";color:inherit}.esri-icon-error2:before{content:"";color:inherit}.esri-icon-experimental:before{content:"";color:inherit}.esri-icon-feature-layer:before{content:"";color:inherit}.esri-icon-filter:before{content:"";color:inherit}.esri-icon-grant:before{content:"";color:inherit}.esri-icon-group:before{content:"";color:inherit}.esri-icon-key:before{content:"";color:inherit}.esri-icon-labels:before{content:"";color:inherit}.esri-icon-tag:before{content:"";color:inherit}.esri-icon-layers:before{content:"";color:inherit}.esri-icon-left-arrow:before{content:"";color:inherit}.esri-icon-right-arrow:before{content:"";color:inherit}.esri-icon-link-external:before{content:"";color:inherit}.esri-icon-link:before{content:"";color:inherit}.esri-icon-loading-indicator:before{content:"";color:inherit}.esri-icon-maps:before{content:"";color:inherit}.esri-icon-marketplace:before{content:"";color:inherit}.esri-icon-media:before{content:"";color:inherit}.esri-icon-media2:before{content:"";color:inherit}.esri-icon-menu:before{content:"";color:inherit}.esri-icon-mobile:before{content:"";color:inherit}.esri-icon-phone:before{content:"";color:inherit}.esri-icon-navigation:before{content:"";color:inherit}.esri-icon-pan:before{content:"";color:inherit}.esri-icon-printer:before{content:"";color:inherit}.esri-icon-pie-chart:before{content:"";color:inherit}.esri-icon-chart:before{content:"";color:inherit}.esri-icon-line-chart:before{content:"";color:inherit}.esri-icon-question:before{content:"";color:inherit}.esri-icon-resend-invitation:before{content:"";color:inherit}.esri-icon-rotate:before{content:"";color:inherit}.esri-icon-save:before{content:"";color:inherit}.esri-icon-settings:before{content:"";color:inherit}.esri-icon-settings2:before{content:"";color:inherit}.esri-icon-share:before{content:"";color:inherit}.esri-icon-sign-out:before{content:"";color:inherit}.esri-icon-support:before{content:"";color:inherit}.esri-icon-user:before{content:"";color:inherit}.esri-icon-time-clock:before{content:"";color:inherit}.esri-icon-trash:before{content:"";color:inherit}.esri-icon-upload:before{content:"";color:inherit}.esri-icon-download:before{content:"";color:inherit}.esri-icon-zoom-in-magnifying-glass:before{content:"";color:inherit}.esri-icon-search:before{content:"";color:inherit}.esri-icon-zoom-out-magnifying-glass:before{content:"";color:inherit}.esri-icon-locked:before{content:"";color:inherit}.esri-icon-unlocked:before{content:"";color:inherit}.esri-icon-favorites:before{content:"";color:inherit}.esri-icon-compass:before{content:"";color:inherit}.esri-icon-down:before{content:"";color:inherit}.esri-icon-up:before{content:"";color:inherit}.esri-icon-chat:before{content:"";color:inherit}.esri-icon-dock-bottom:before{content:"";color:inherit}.esri-icon-dock-left:before{content:"";color:inherit}.esri-icon-dock-right:before{content:"";color:inherit}.esri-icon-organization:before{content:"";color:inherit}.esri-icon-north-navigation:before{content:"";color:inherit}.esri-icon-locate-circled:before{content:"";color:inherit}.esri-icon-dial:before{content:"";color:inherit}.esri-icon-polygon:before{content:"";color:inherit}.esri-icon-polyline:before{content:"";color:inherit}.esri-icon-visible:before{content:"";color:inherit}.esri-icon-non-visible:before{content:"";color:inherit}.esri-icon-link-vertical:before{content:"";color:inherit}.esri-icon-unlocked-link-vertical:before{content:"";color:inherit}.esri-icon-link-horizontal:before{content:"";color:inherit}.esri-icon-unlocked-link-horizontal:before{content:"";color:inherit}.esri-icon-swap:before{content:"";color:inherit}.esri-icon-cta-link-external:before{content:"";color:inherit}.esri-icon-reply:before{content:"";color:inherit}.esri-icon-public:before{content:"";color:inherit}.esri-icon-share2:before{content:"";color:inherit}.esri-icon-launch-link-external:before{content:"";color:inherit}.esri-icon-rotate-back:before{content:"";color:inherit}.esri-icon-pan2:before{content:"";color:inherit}.esri-icon-tracking:before{content:"";color:inherit}.esri-icon-expand2:before{content:"";color:inherit}.esri-icon-arrow-down:before{content:"";color:inherit}.esri-icon-arrow-up:before{content:"";color:inherit}.esri-icon-hollow-eye:before{content:"";color:inherit}.esri-icon-play-circled:before{content:"";color:inherit}.esri-icon-volume-off:before{content:"";color:inherit}.esri-icon-volume-on:before{content:"";color:inherit}.esri-icon-bookmark:before{content:"";color:inherit}.esri-icon-lightbulb:before{content:"";color:inherit}.esri-icon-sketch-rectangle:before{content:"";color:inherit}.esri-icon-north-navigation-filled:before{content:"";color:inherit}.esri-icon-default-action:before{content:"";color:inherit}.esri-icon-undo:before{content:"";color:inherit}.esri-icon-redo:before{content:"";color:inherit}.esri-icon-cursor:before{content:"";color:inherit}.esri-icon-cursor-filled:before{content:"";color:inherit}.esri-icon-measure:before{content:"";color:inherit}.esri-icon-measure-line:before{content:"";color:inherit}.esri-icon-measure-area:before{content:"";color:inherit}.esri-icon-legend:before{content:"";color:inherit}.esri-icon-sliders:before{content:"";color:inherit}.esri-icon-sliders-horizontal:before{content:"";color:inherit}.esri-icon-cursor-marquee:before{content:"";color:inherit}.esri-icon-lasso:before{content:"";color:inherit}.esri-icon-elevation-profile:before{content:"";color:inherit}.esri-icon-slice:before{content:"";color:inherit}.esri-icon-line-of-sight:before{content:"";color:inherit}.esri-icon-zoom-to-object:before{content:"";color:inherit}.esri-icon-urban-model:before{content:"";color:inherit}.esri-icon-measure-building-height-shadow:before{content:"";color:inherit}.esri-icon-partly-cloudy:before{content:"";color:inherit}:host{max-width:fit-content;max-height:100%;overflow:auto;arcgis-utility-network-trace-inputs::slotted{overflow-y:auto;max-height:450px}}.arcgis-utility-network-trace-analysis{flex:auto;width:300px}.arcgis-utility-network-trace-analysis calcite-tab{background-color:var(--calcite-color-foreground-1);padding-top:0;padding-bottom:0;min-height:300px;--calcite-tab-content-space-y: 0}.arcgis-utility-network-trace-analysis calcite-tab:not([selected]){flex:0}.arcgis-utility-network-trace-analysis calcite-block{--calcite-block-border-color: transparent;margin:0;background-color:transparent}.arcgis-utility-network-trace-analysis calcite-block calcite-label:last-child{--calcite-label-margin-bottom: 0}.arcgis-utility-network-trace-analysis calcite-notice{padding:var(--calcite-spacing-xs)}`,k=m(y),h=class extends g{constructor(){super(...arguments),this._messages=p({blocking:!0}),this._viewModel=k(this),this._traceInputsRef=c(),this._traceResultsRef=c(),this._highlightHandles=[],this.activeTab="input",this._mode="default",this.allowEditingDisabled=!1,this.autoDestroyDisabled=!1,this.closable=!1,this.state=this._viewModel.state,this.view=this._viewModel.view,this.arcgisTraceLocationSelectStart=n(),this.arcgisTraceLocationSelectEnd=n(),this.arcgisTraceResultFeaturesReady=n(),this.arcgisReady=n()}static{this.properties={activeTab:16,traceResult:16,_mode:16,allowEditingDisabled:5,autoDestroyDisabled:5,beforeTraceLocationSelectStart:0,closable:7,icon:1,label:3,messageOverrides:0,mode:1,traceResultFeatures:32,referenceElement:1,state:3,view:0}}static{this.styles=x}get _allLayers(){let{view:e}=this;return e?.map?e.map.allLayers.toArray().concat(e.map.allTables.toArray()):[]}get _traceResultsReady(){return!!this.traceResult&&this._numTraceResults>0&&this._traceResultsRef.value?.state==="ready"}get _numTraceResults(){let{traceResult:e}=this;return e?e.elements.length+e.globalFunctionResults.length:0}get traceResultFeatures(){return this._traceResultsRef.value?.traceResultFeatures??[]}async destroy(){await this.manager.destroy()}_clearTraceResult(){this.traceResult=void 0,this._clearHighlights()}_switchTab(e){this.activeTab=e}_getLoadError(e){let{_messages:i}=this;switch(e){case"no-user-type-extension":return i.loadErrors.noUserTypeExtension;case"no-utility-network":return i.loadErrors.noUtilityNetwork;case"no-view":return i.loadErrors.noView;case"sceneView-not-supported":return i.loadErrors.sceneViewNotSupported;default:return e}}_clearHighlights(){this._highlightHandles.forEach(e=>e.remove()),this._highlightHandles=[]}_highlightResults(){this._clearHighlights();let{traceResult:e,view:i}=this,o=this._viewModel.utilityNetwork;!o||!e?.elements||!i||o.getObjectIdsFromElements(e.elements).forEach(r=>{let d=i.allLayerViews.find(_=>{let b=_.layer;if(o.isUtilityLayer(b)){let v=Number(r.layerUrl.split("/").pop());return b.layerId===v}return!1});if(!d)return;let w=d.highlight(r.objectIds);this._highlightHandles.push(w)})}async _runTrace(){let e=this._traceInputsRef.value?.selectedNamedTraceConfiguration,i=this._traceInputsRef.value?.unTraceConfiguration;if(!(e?.traceType&&i)){a("error",this,"Trace configuration not found");return}let o=this._traceInputsRef.value?.traceLocations;try{this.traceResult=await this._viewModel.executeTraceConfiguration({traceType:e.traceType,traceConfiguration:i,traceLocations:o??[]}),this._highlightResults()}catch(r){a("error",this,`Error while running trace. ${r}`),this.traceResult=void 0}}_handleTraceLocationSelectStart(e){e.stopPropagation(),this.arcgisTraceLocationSelectStart.emit(e.detail).defaultPrevented&&e.preventDefault()}_handleTraceLocationSelectEnd(e){e.stopPropagation(),this.arcgisTraceLocationSelectEnd.emit()}_handleTraceResultFeaturesReady(e){e.stopPropagation(),this.arcgisTraceResultFeaturesReady.emit()}_handleTraceInputsChange(){}_handleUtilityNetworkChange(){this._viewModel.utilityNetwork=this._traceInputsRef.value?.selectedUtilityNetwork}renderResultsTab(){return l(`${this.el.id}__results-tab-item`,t`<calcite-tab .selected=${this.activeTab==="results"}>${this._viewModel.state==="executing"?t`<calcite-loader .label=${this._messages.runningTrace} .text=${this._messages.runningTrace}></calcite-loader>`:t`<arcgis-utility-network-trace-results .referenceElement=${this.referenceElement} .layers=${this._allLayers} .traceConfigTitle=${this._selectedTraceConfig?.title} .traceResult=${this.traceResult} .utilityNetwork=${this._viewModel.utilityNetwork??void 0} .view=${this.view??void 0} @arcgisTraceResultFeaturesReady=${this._handleTraceResultFeaturesReady} ${s(this._traceResultsRef)}></arcgis-utility-network-trace-results>`}</calcite-tab>`)}renderResultsFooter(){let{_mode:e}=this;return e==="add-spatial"?null:t`<calcite-button appearance=outline width=full @click=${()=>{this._switchTab("input"),this._clearTraceResult()}} .disabled=${!this._traceResultsReady} slot=footer>${this._traceResultsReady?this._messages.buttons.clearResultsCustom.replace("{number}",this.traceResultFeatures.length.toString()):this._messages.buttons.clearResultsGeneric}</calcite-button>`}renderInputTab(){return l(`${this.el.id}__inputs-tab-item`,t`<calcite-tab .selected=${this.activeTab==="input"}><arcgis-utility-network-trace-inputs .view=${this.view||void 0} .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisTraceInputsChange=${this._handleTraceInputsChange} @arcgisUtilityNetworkChange=${this._handleUtilityNetworkChange} @arcgisTraceLocationSelectStart=${this._handleTraceLocationSelectStart} @arcgisTraceLocationSelectEnd=${this._handleTraceLocationSelectEnd} @arcgisPropertyChange=${e=>{e.stopPropagation(),e.detail.name==="mode"&&(this._mode=e.target.mode)}} ${s(this._traceInputsRef)}></arcgis-utility-network-trace-inputs></calcite-tab>`)}renderInputFooter(){let{_mode:e}=this;return e==="add-spatial"?null:t`<calcite-button appearance=solid width=full @click=${()=>{this._switchTab("results"),this._runTrace()}} slot=footer>${this._messages.buttons.getResults}</calcite-button>`}render(){let{_messages:e,_viewModel:{loadError:i,state:o}}=this,r=o==="disabled"&&i!=null&&i!=="no-utility-network"?t`<calcite-notice kind=warning open scale=s slot=content-top width=full><div slot=message>${this._getLoadError(i)}</div></calcite-notice>`:void 0;return t`<div class="arcgis-utility-network-trace-analysis"><calcite-panel .loading=${this.view===void 0}><calcite-tabs layout=center position=top><calcite-tab-nav slot=title-group><calcite-tab-title @click=${()=>{this._switchTab("input")}} .selected=${this.activeTab==="input"}>${e.tabs.inputTab}</calcite-tab-title><calcite-tab-title @click=${()=>{this._switchTab("results")}} .selected=${this.activeTab==="results"}>${e.tabs.resultsTab}</calcite-tab-title></calcite-tab-nav>${this.view?this.renderInputTab():null}${this.view&&this._viewModel.utilityNetwork?this.renderResultsTab():null}</calcite-tabs>${r}${this.activeTab==="input"?this.renderInputFooter():null}${this.activeTab==="results"?this.renderResultsFooter():null}</calcite-panel></div>`}};u("arcgis-utility-network-trace-analysis",h);return h},"networks/UtilityNetworkTraceAnalysis",b,d,e)
|
package/dist/cdn/TVL5HYIC.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.93 */
|
|
4
|
-
import{a as z}from"./3ZJYJKT4.js";import{a as _}from"./RN65F4EU.js";import f from"./5OPBLLLV.js";import e from"./WXEYFVOL.js";import{a as B}from"./5DYLDR23.js";import d from"./6PJ27SYB.js";import{a as U}from"./WQ3225KQ.js";import{a as u}from"./M3D2NYN3.js";import c from"./GBRRLZHP.js";import a from"./SGSYHTAS.js";import{g as k}from"./RHLKZA34.js";import"./5W4G4PNT.js";import"./OZMRRK2Y.js";import"./USUYE22F.js";import"./NMF2M4P3.js";import{H as x,I as C,J as v,L as g,O as S,a as w,b as l,s as b}from"./IKNWZBGW.js";import"./4CS2VL3M.js";export default $arcgis.t(([{ignoreAbortErrors:D},F,{getDefaultUnitForView:E},{property:a,subclass:A},{watch:m},{createChart:I},,,M,{a:O,d:f},$])=>{var T=w`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{--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}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--esri-widget-padding);transition:max-height .25s ease-in-out;overflow-y:auto}:host{--internal-chart-height: 180px;--internal-gap: var(--calcite-spacing-sm-plus);width:550px;isolation:isolate;padding:var(--esri-widget-padding);position:relative;container-type:inline-size}.container{display:flex;flex-direction:column;width:100%;min-width:0;gap:var(--internal-gap)}.header{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;margin-bottom:calc(var(--internal-gap) * -1)}.actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--calcite-spacing-xs)}.action-button{width:auto;min-height:32px}.main-container{display:flex;position:relative;flex-flow:column;width:100%;height:var(--internal-chart-height)}.chart-container{position:relative;width:100%;height:100%}.prompt-container{box-sizing:border-box;display:grid;place-content:center;padding-inline:var(--calcite-spacing-md);height:100%;text-align:center}.prompt-message{margin:0;width:100%}.spinner{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity .15s ease-in-out;transition-delay:0;opacity:0;&.visible{transition-delay:50ms;opacity:1}&.small{inset-inline-start:0;top:-22px;left:unset;transform:none;color:var(--calcite-color-brand)}}@container (max-width: 400px){.esri-widget--panel{height:auto}.actions{flex-direction:column}.action-button{align-self:stretch}}`;function L({geometry:t}){return t!=null&&t.type==="polyline"&&t.paths.length>0&&t.paths.every(e=>e.length>=2)}function R({geometry:t}){return t?.type==="polyline"&&t.paths.reduce((e,i)=>e+i.length,0)>0}function Z(t){return t?.samples?.some(e=>e.z!=null)??!1}function H(t){return t?.type==="polyline"}async function j(t,e,i){let r=await q(t,e);return O(i),G(r)?r.highlight(e):z()}async function q(t,e){let i=e?.layer;if(!(!i||i.type==="subtype-sublayer"||i.type==="sublayer"||i.type==="building-component"))return await t.whenLayerView(i)}function G(t){return t!=null&&"highlight"in t&&typeof t.highlight=="function"}var J=Object.defineProperty,N=Object.getOwnPropertyDescriptor,s=(t,e,i,r)=>{for(var o=r>1?void 0:r?N(e,i):e,c=t.length-1,d;c>=0;c--)(d=t[c])&&(o=(r?d(e,i,o):d(o))||o);return r&&o&&J(e,i,o),o},n=class extends ${constructor(){super(...arguments),this.highlightDisabled=!1,this.uniformChartScaling=!1,this.shouldForceInteractive=!1,this.supportedViewType="both",this.unsupportedErrorMessage=""}get _measurementSystem(){return this.view?E(this.view):void 0}get _hasSamples(){let{progress:t}=this;return this._analysisView?.results?.some(e=>e.available&&(t<1||Z(e)))??!1}get doneButtonAvailable(){if(this.featureIsSelected)return!1;let{geometry:t}=this.analysis;return H(t)&&t.paths.length>0&&t.paths[0].length>2}get effectiveDisplayUnits(){return this.analysisView?.effectiveDisplayUnits}get errorState(){if(!L(this.analysis))return"no-valid-input";let t=this.analysisView?.error;if(t)switch(t.name){case"too-complex":return"too-complex";case"elevation-query-error":return"no-valid-input";default:return"unknown"}return this._hasSamples?"none":"no-available-profiles"}get feature(){return this._selectedFeature}set feature(t){t?t!==this.feature&&(this.analysis.setGeometryFromFeature(t),this._selectedFeature=t):this._selectedFeature=void 0}get featureIsSelected(){return this.feature!=null}get hasVertices(){return R(this.analysis)}get indicatorRelativePosition(){return this.analysisView?.indicatorRelativePosition??void 0}get geometry(){return this.analysis.geometry}set geometry(t){this.analysis.geometry=t}get elevationInfo(){return this.analysis.elevationInfo}set elevationInfo(t){this.analysis.elevationInfo=t}get profiles(){return this.analysis.profiles}set profiles(t){this.analysis.profiles=t}get progress(){return this.analysisView?.progress??0}get results(){return this.analysisView?.results??[]}get selectButtonAvailable(){for(let t of this.view?.map?.allLayers.toArray()??[])if(t.type==="graphics"&&!("internal"in t&&t.internal)&&t.graphics.some(e=>e.geometry?.type==="polyline")||"geometryType"in t&&t.geometryType==="polyline")return!0;return!!this.view?.graphics?.some(t=>t.geometry?.type==="polyline")}get state(){return this.disabled||!this.ready?"disabled":this._selectingPromise?"selecting":this.operationState==="active"?"creating":this.analysis.valid?this.featureIsSelected?"selected":"created":"ready"}get distanceUnit(){return P(this._userDistanceUnit??this.analysis.displayUnits?.distance??void 0,this.distanceUnitOptions,this._measurementSystem)}set distanceUnit(t){this._userDistanceUnit=t}get distanceUnitOptions(){return V(this._userDistanceUnitOptions)}set distanceUnitOptions(t){this._userDistanceUnitOptions=t}get elevationUnit(){return P(this._userElevationUnit??this.analysis.displayUnits?.elevation??void 0,this.elevationUnitOptions,this._measurementSystem)}set elevationUnit(t){this._userElevationUnit=t}get elevationUnitOptions(){return V(this._userElevationUnitOptions)}set elevationUnitOptions(t){this._userElevationUnitOptions=t}initialize(){this.addHandles([m(()=>({analysis:this.analysis,unitDistance:this.distanceUnit,unitElevation:this.elevationUnit}),({analysis:t,unitDistance:e,unitElevation:i})=>{if(t!=null){let r=t.displayUnits;r.elevation=i,r.distance=e}},{sync:!0,initial:!0}),m(()=>({selectedFeature:this.feature,profiles:this.analysis.profiles.toArray()}),({selectedFeature:t,profiles:e},i)=>{this._highlightSelectedFeature(this.highlightDisabled?void 0:t),this.analysis.viewOptions.geometryVisualizationVisible=!this.highlightDisabled&&t==null;let r=i?.selectedFeature;e.forEach(o=>{switch(o.type){case"scene":this._excludeSelectedFeatureFromProfile(o,t,r);break;case"input":o.chartOptions.lineVisible=t!=null,o.viewOptions.lineVisible=t!=null;break}})},{initial:!0})])}destroy(){this._removeSelectionHighlight()}async select(){let t=this.analysisView;if(!t)return;let e=super.start({operation:async i=>{let r=await t.pickFeature(i);i?.signal?.aborted||(t.interactive=!1,this.feature=r.feature)},clear:!1});e.finally(()=>{this._selectingPromise===e&&(this._selectingPromise=void 0)}),this._selectingPromise=e,await e.catch()}async place(t){await this.analysisView?.place(t)}clearAnalysis(){this.geometry=null,this.elevationInfo=null,this.feature=void 0}constructAnalysis(){return new F}_highlightSelectedFeature(t){this._removeSelectionHighlight();let e=this.view;!e||!t||(this._selectionHighlightTask=f(async i=>await j(e,t,{signal:i})))}_removeSelectionHighlight(){this._selectionHighlightTask?.value?.remove(),this._selectionHighlightTask=B(this._selectionHighlightTask)}_excludeSelectedFeatureFromProfile(t,e,i){let r=new Set(t.exclude??[]);i&&r.delete(i),e&&r.add(e),t.exclude=Array.from(r)}};s([a()],n.prototype,"_userDistanceUnit",2);s([a()],n.prototype,"_userDistanceUnitOptions",2);s([a()],n.prototype,"_userElevationUnit",2);s([a()],n.prototype,"_userElevationUnitOptions",2);s([a({readOnly:!0})],n.prototype,"_measurementSystem",1);s([a()],n.prototype,"_selectingPromise",2);s([a()],n.prototype,"_selectedFeature",2);s([a()],n.prototype,"_selectionHighlightTask",2);s([a()],n.prototype,"_hasSamples",1);s([a()],n.prototype,"doneButtonAvailable",1);s([a({readOnly:!0})],n.prototype,"effectiveDisplayUnits",1);s([a({readOnly:!0})],n.prototype,"errorState",1);s([a()],n.prototype,"feature",1);s([a()],n.prototype,"featureIsSelected",1);s([a({readOnly:!0})],n.prototype,"hasVertices",1);s([a()],n.prototype,"highlightDisabled",2);s([a()],n.prototype,"indicatorRelativePosition",1);s([a()],n.prototype,"geometry",1);s([a()],n.prototype,"elevationInfo",1);s([a()],n.prototype,"profiles",1);s([a({readOnly:!0})],n.prototype,"progress",1);s([a({readOnly:!0})],n.prototype,"results",1);s([a({readOnly:!0})],n.prototype,"selectButtonAvailable",1);s([a({readOnly:!0})],n.prototype,"state",1);s([a()],n.prototype,"uniformChartScaling",2);s([a()],n.prototype,"distanceUnit",1);s([a()],n.prototype,"distanceUnitOptions",1);s([a()],n.prototype,"elevationUnit",1);s([a()],n.prototype,"elevationUnitOptions",1);n=s([A("components.elevation-profile.ElevationProfileViewModel")],n);function P(t,e,i){return t&&e.includes(t)?t:i&&e.includes(i)?i:e[0]}function V(t){let e=t?.filter(i=>_.includes(i));return e&&e.length>0?e:_.slice()}var Q=M(n),y=class extends C{constructor(){super(...arguments),this.viewModel=Q(this),this._messages=U(),this._hideZoomOutButton=!0,this.analysis=this.viewModel.analysis,this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.effectiveDisplayUnits=this.viewModel.effectiveDisplayUnits,this.feature=this.viewModel.feature,this.hideChart=!1,this.hideClearButton=!1,this.hideLegend=!1,this.hideSelectButton=!1,this.hideSettingsButton=!1,this.hideSketchButton=!1,this.hideUniformChartScalingToggle=!1,this.hideUnitSelector=!1,this.highlightDisabled=this.viewModel.highlightDisabled,this.indicatorRelativePosition=this.viewModel.indicatorRelativePosition,this.icon="altitude",this.geometry=this.viewModel.geometry,this.elevationInfo=this.viewModel.elevationInfo,this.profiles=this.viewModel.profiles,this.progress=this.viewModel.progress,this.state=this.viewModel.state,this.uniformChartScaling=this.viewModel.uniformChartScaling,this.distanceUnit=this.viewModel.distanceUnit,this.distanceUnitOptions=this.viewModel.distanceUnitOptions,this.elevationUnit=this.viewModel.elevationUnit,this.elevationUnitOptions=this.viewModel.elevationUnitOptions,this.arcgisPropertyChange=k()("analysis","effectiveDisplayUnits","elevationInfo","feature","geometry","indicatorRelativePosition","progress","state"),this.arcgisReady=b()}static{this.properties={_hideZoomOutButton:16,_chartContainer:16,analysis:0,view:0,autoDestroyDisabled:5,effectiveDisplayUnits:32,feature:0,hideChart:5,hideClearButton:5,hideLegend:5,hideSelectButton:5,hideSettingsButton:5,hideSketchButton:5,hideUniformChartScalingToggle:5,hideUnitSelector:5,highlightDisabled:5,indicatorRelativePosition:40,icon:2,geometry:0,elevationInfo:0,label:1,messageOverrides:0,position:1,referenceElement:1,profiles:0,progress:40,state:3,uniformChartScaling:5,distanceUnit:1,distanceUnitOptions:0,elevationUnit:1,elevationUnitOptions:0}}static{this.styles=T}get _selectButtonVisible(){return!this.hideSelectButton&&this.viewModel.selectButtonAvailable}get _chart(){return this._chartInitializationTask?.value}async destroy(){await this.manager.destroy()}async select(){D(this.viewModel.select())}async start(){D(this.viewModel.start())}async stop(){this.viewModel.stop()}async clear(){this.viewModel.clear()}load(){this.manager.onLifecycle(()=>[m(()=>({container:this._chartContainer}),({container:e})=>{this._destroyChart(),e&&(this._chartInitializationTask=f(async i=>await I({view:this.viewModel.view,analysisView:this.viewModel.analysisView,container:e,messages:this._messages,signal:i,uniformScaling:this.viewModel.uniformChartScaling,onRangeChange:(r,o)=>{this._hideZoomOutButton=r===1&&o===1},onCursorPositionChange:(r,o)=>{let{analysisView:c}=this.viewModel;c&&(c.indicatorRelativePosition=r)}})))},{sync:!0,initial:!0}),m(()=>({chart:this._chart,view:this.viewModel.view,analysisView:this.viewModel.analysisView,uniformScaling:this.viewModel.uniformChartScaling}),({chart:e,view:i,analysisView:r,uniformScaling:o})=>{e&&(e.view=i,e.analysisView=r,e.uniformScaling=o)},{sync:!0,initial:!0}),{remove:()=>this._destroyChart()}])}_destroyChart(){let e=this._chart;this._chartInitializationTask?.abort(),this._chartInitializationTask=void 0,e?.destroy()}_onCancelButtonClick(){this.viewModel.stop(),this.viewModel.clear()}_onDoneButtonClick(){this.viewModel.stop()}_getErrorMessage(){let e=W[this.viewModel.errorState];return e?this._messages?.errors?.[e]:void 0}_onClearButtonClick(){this.viewModel.clear()}_onZoomOutButtonClick(){this._chart?.zoomOut()}_onChartContainerRef(e){this._chartContainer=e}render(){return l`<div aria-label=${this._messages.componentLabel??g} class=${v({container:!0,[u.widget]:!0,[u.widgetDisabled]:this.viewModel.state==="disabled",[u.panel]:!0})} role=presentation>${this._renderContentForState()}</div>`}_renderContentForState(){switch(this.viewModel.state){case"ready":return this._renderContentForReadyState();case"selecting":return this._renderContentForSelectingState();case"creating":return this._renderContentForCreatingState();case"selected":return this._renderContentForSelectedState();case"created":return this._renderContentForCreatedState();case"disabled":return this._renderContentForReadyState()}}_renderContentForReadyState(){let{_messages:e,hideSelectButton:i,hideSketchButton:r}=this,{selectButtonAvailable:o}=this.viewModel,c=!i&&o,d;return!r&&c?d=e.readyPrompt:r?c?d=e.readyPromptSelectOnly:d=e.errors?.noProfile:d=e.readyPromptCreateOnly,this._renderContent({prompt:d,chart:!1,actions:p})}_renderContentForSelectingState(){let{view:e}=this.viewModel;if(!e)return;let i=this._messages[`selectingPrompt-${e.type}`];return this._renderContent({prompt:i,chart:!1,actions:[{type:"select-cancel"}]})}_renderContentForCreatingState(){let{viewModel:e}=this,{view:i}=e;if(!i)return;let r=e.hasVertices?[{type:"sketch-cancel"},{type:"sketch-done",disabled:!e.doneButtonAvailable}]:[{type:"select"},{type:"sketch",disabled:!0}];if(e.errorState==="no-valid-input"){let c=this._messages[`creatingPrompt-${i.type}`];return this._renderContent({chart:!1,actions:r,prompt:c})}let o=this._getErrorMessage();return o?this._renderContent({chart:!1,actions:r,prompt:o}):this._renderContent({chart:!0,actions:r})}_renderContentForSelectedState(){let e=this._getErrorMessage();return e?this._renderContent({chart:!1,actions:p,prompt:e}):this._renderContent({chart:!0,actions:p})}_renderContentForCreatedState(){let e=this._getErrorMessage();return e?this._renderContent({chart:!1,actions:p,prompt:e}):this._renderContent({chart:!0,actions:p})}_renderContent(e){let{viewModel:i}=this,r=i.geometry!=null;return l`<header class="header">${h({hidden:this._hideZoomOutButton,children:this._renderZoomOutButton()})}${h({hidden:this.hideClearButton||!r,children:this._renderClearButton()})}${h({hidden:this.hideSettingsButton,children:this._renderSettingsButton()})}</header><div class="main-container">${e.prompt!=null?this._renderPrompt(e.prompt):e.chart?this._renderChart():void 0}</div>${h({hidden:this.hideLegend,children:this._renderLegend()})}${this._renderActions(e)}`}_renderPrompt(e){return[l`<div class="prompt-container"><p class="prompt-message">${e}</p></div>`]}_renderZoomOutButton(){let e=this._messages.zoomOut??"";return l`<calcite-action icon=magnifying-glass-minus @click=${this._onZoomOutButtonClick} .text=${e} title=${e??g}></calcite-action>`}_renderChart(){if(this.hideChart)return;let e=this._chart;return l`${this._renderSpinner({size:e?.chartVisible?"small":"large",visible:e?.spinnerVisible??!1})}<div class="chart-container" ${x(this._onChartContainerRef)}></div>`}_renderSpinner(e){let i=e.size==="small",r=e.visible??!0;return l`<calcite-loader class=${v({spinner:!0,small:i,visible:r})} .inline=${i} label></calcite-loader>`}_renderClearButton(){let e=this._messages.clearProfile??"";return l`<calcite-action icon=trash @click=${this._onClearButtonClick} .text=${e} title=${e??g}></calcite-action>`}_renderLegend(){return l`<arcgis-elevation-profile-legend .effectiveDisplayUnits=${this.viewModel.effectiveDisplayUnits} .featureSelected=${this.viewModel.featureIsSelected} .messages=${this._messages} .results=${this.viewModel.results}></arcgis-elevation-profile-legend>`}_renderSettingsButton(){return l`<arcgis-elevation-profile-settings .analysis=${this.viewModel.analysis} .hideUniformChartScalingToggle=${this.hideUniformChartScalingToggle} .hideUnitSelector=${this.hideUnitSelector} .messages=${this._messages} .uniformChartScaling=${this.viewModel.uniformChartScaling} .unitOptionsDistance=${this.viewModel.distanceUnitOptions} .unitOptionsElevation=${this.viewModel.elevationUnitOptions} @arcgisElevationProfileSettingsUniformChartScalingChange=${e=>{this.viewModel.uniformChartScaling=e.detail}}></arcgis-elevation-profile-settings>`}_renderActions({actions:e}){let i=this._messages,r=e.map(o=>{switch(o.type){case"sketch":return h({hidden:this.hideSketchButton,children:this._renderAction({action:o,label:i.sketchButtonLabel,primary:!0,onClick:()=>void this.start()})});case"sketch-cancel":return h({hidden:this.hideSketchButton,children:this._renderAction({action:o,label:i.cancelButtonLabel,primary:!1,onClick:this._onCancelButtonClick})});case"sketch-done":return h({hidden:this.hideSketchButton,children:this._renderAction({action:o,label:i.doneButtonLabel,primary:!0,onClick:this._onDoneButtonClick})});case"select":return h({hidden:!this._selectButtonVisible,children:this._renderAction({action:o,label:i.selectButtonLabel,primary:!1,onClick:()=>void this.select()})});case"select-cancel":return h({hidden:!this._selectButtonVisible,children:this._renderAction({action:o,label:i.cancelButtonLabel,primary:!1,onClick:this._onCancelButtonClick})});default:return}}).filter(Boolean);return r.length?l`<footer class="actions">${r}</footer>`:void 0}_renderAction({action:e,label:i,onClick:r,primary:o}){return l`<calcite-button .appearance=${o?"solid":"outline-fill"} class="action-button" .disabled=${e.disabled||void 0} @click=${r}>${i}</calcite-button>`}};function h(t){return t.hidden?void 0:t.children}var p=[{type:"select"},{type:"sketch"}],W={none:void 0,"no-valid-input":"noProfile","no-available-profiles":"noProfile","too-complex":"tooComplex",unknown:"unknown"};S("arcgis-elevation-profile",y);return y},"core/promiseUtils","analysis/ElevationProfileAnalysis","applications/Components/getDefaultUnits","core/accessorSupport/decorators","core/reactiveUtils","applications/Components/analysisUtils",a,c,d,e,f)
|
package/dist/cdn/TVX53RNP.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.93 */
|
|
4
|
-
import a from"./C52USQZY.js";import{a as W}from"./PL6CQKLM.js";import{d as G,e as K}from"./RHLKZA34.js";import"./5W4G4PNT.js";import{e as O}from"./USUYE22F.js";import"./NMF2M4P3.js";import{H,I as j,J as y,L as b,O as D,a as B,b as C}from"./IKNWZBGW.js";import"./4CS2VL3M.js";export default $arcgis.t(([{getColorsFromRenderer:se},{substitute:oe},{watch:le},de,ee,{renderingSanitizer:te},{f:$,g:q,h:F,i:J,j:Q,k:Z,m:z,o:N,p:P,q:L}])=>{var ce=B`.arcgis-feature-media__container{display:flex;flex-flow:row wrap;align-items:center;margin-top:var(--calcite-spacing-xs);width:100%;min-height:150px}.arcgis-feature-media__container .arcgis-feature-media__pagination-button{display:flex;align-items:center;justify-content:center;border:none;background:transparent;cursor:pointer;padding-block:var(--calcite-spacing-xs);padding-inline:var(--calcite-spacing-xs);color:var(--calcite-color-text-3)}.arcgis-feature-media__container .arcgis-feature-media__pagination-button:hover,.arcgis-feature-media__container .arcgis-feature-media__pagination-button:focus{background-color:var(--calcite-color-foreground-3);color:var(--calcite-color-text-1);fill:var(--calcite-color-text-1)}.arcgis-feature-media__item-title{margin:0;font-size:var(--calcite-font-size-md);line-height:var(--calcite-font-line-height-relative-snug)}.arcgis-feature-media__item-caption{padding-block-start:var(--calcite-spacing-xxs);font-size:var(--calcite-font-size-sm);line-height:var(--calcite-font-line-height-relative-snug)}.arcgis-feature-media__item{display:flex;align-items:flex-start;justify-content:center;margin-block:var(--calcite-spacing-xs);width:100%;height:auto}.arcgis-feature-media__item-navigation{display:flex;flex:0 1 100%;align-items:flex-start;justify-content:space-between;margin-block-end:var(--calcite-spacing-xs)}.arcgis-feature-media__item-text{margin-inline-end:var(--calcite-spacing-xs)}.arcgis-feature-media__pagination{display:flex;flex:0 0 auto;align-items:center;overflow:hidden}.arcgis-feature-media__pagination:only-child{margin-inline-start:auto}.arcgis-feature-media__pagination-text{padding-inline:var(--calcite-spacing-xxs);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-sm);line-height:var(--calcite-font-line-height-relative-normal)}.arcgis-feature-media__item-container{flex:0 1 auto;width:100%}.arcgis-feature-media__item-container img{max-width:100%}.arcgis-feature-media__item-container img[src$=".SVG"],.arcgis-feature-media__item-container img[src$=".svg"]{width:100%}.arcgis-feature-media__chart{width:100%;height:155px}`;function X(V){if(!$(V))return null;let[e,t]=V.split("/").slice(1);return{layerId:e,fieldName:t}}var M="arcgis-feature-media",v={base:M,mediaContainer:`${M}__container`,mediaItemContainer:`${M}__item-container`,mediaItem:`${M}__item`,mediaItemText:`${M}__item-text`,mediaItemTitle:`${M}__item-title`,mediaItemCaption:`${M}__item-caption`,mediaNavigation:`${M}__item-navigation`,mediaPagination:`${M}__pagination`,mediaPaginationText:`${M}__pagination-text`,mediaChart:`${M}__chart`,mediaPaginationButton:`${M}__pagination-button`,mediaPaginationIcon:`${M}__pagination-icon`,mediaChartRendered:`${M}__chart--rendered`},Y=15,w="category",T="value",me="rgba(50, 50, 50, 1)",he=250,ue=500,fe=200,E=class extends j{constructor(){super(...arguments),this._direction=K(),this._prefersReducedMotion=G("(prefers-reduced-motion)"),this.activeMediaInfoIndex=0,this.chartAnimationDisabled=!1,this.headingLevel=2}static{this.properties={_refreshIntervalInfo:16,messages:0,values:0,activeMediaInfoIndex:9,chartAnimationDisabled:5,activeMediaInfo:32,formattedMediaInfos:32,description:1,fieldInfoMap:0,layer:0,mediaInfos:0,popupTemplate:0,relatedInfos:0,formattedValues:0,heading:1,graphic:0,formattedMediaInfoCount:32,headingLevel:9}}static{this.styles=ce}get activeMediaInfo(){return this.formattedMediaInfos[this.activeMediaInfoIndex]||null}get formattedMediaInfos(){return this._formatMediaInfos()||[]}get formattedMediaInfoCount(){return this.formattedMediaInfos.length}next(){this._pageContentElementMedia(1)}previous(){this._pageContentElementMedia(-1)}setActiveMedia(e){this._setContentElementMedia(e)}loaded(){this.manager.onLifecycle(()=>[le(()=>[this.activeMediaInfo,this.activeMediaInfoIndex],()=>this._setupMediaRefreshTimer(),{initial:!0}),{remove:()=>this._clearMediaRefreshTimer()}])}_setContentElementMedia(e){let{formattedMediaInfoCount:t}=this,a=(e+t)%t;this.activeMediaInfoIndex=a}_pageContentElementMedia(e){let{activeMediaInfoIndex:t}=this,a=t+e;this._setContentElementMedia(a)}_formatMediaInfos(){let{mediaInfos:e,layer:t}=this,a=this.values??{},i=this.formattedValues??{},r=this.fieldInfoMap??new Map;return e?.map(s=>{let n=s?.clone();if(!n)return null;if(n.title=L({values:a,fieldInfoMap:r,globalValues:i,layer:t,text:n.title}),n.caption=L({values:a,fieldInfoMap:r,globalValues:i,layer:t,text:n.caption}),n.altText=L({values:a,fieldInfoMap:r,globalValues:i,layer:t,text:n.altText}),n.type==="image"){if(!n.value)return null;let o=n.value;return this._setImageValue({value:o,formattedValues:i,layer:t}),o.sourceURL?n:void 0}if(n.type==="pie-chart"||n.type==="line-chart"||n.type==="column-chart"||n.type==="bar-chart"){if(!n.value)return null;let o=n.value;return this._setChartValue({value:o,chartType:n.type,values:a,formattedValues:i,layer:t}),n}return null}).filter(s=>s!=null)??[]}_setImageValue(e){let t=this.fieldInfoMap??new Map,{value:a,formattedValues:i,layer:r}=e,{linkURL:s,sourceURL:n}=a;if(n){let o=P(n,r);a.sourceURL=N({formattedValues:i,template:o,fieldInfoMap:t})}if(s){let o=P(s,r);a.linkURL=N({formattedValues:i,template:o,fieldInfoMap:t})}}_setChartValue(e){let{value:t,values:a,formattedValues:i,chartType:r,layer:s}=e,{popupTemplate:n,relatedInfos:o}=this,{fields:d,normalizeField:g}=t,m=s;if(t.fields=J(d,m),g&&(t.normalizeField=F(g,m)),!d.some(c=>!!(i[c]!=null||$(c)&&o?.size)))return;let l=n?.fieldInfos??[];t.series=[],d.forEach((c,u)=>{let h=t.colors?.[u];if($(c)){t.series=[...t.series,...this._getRelatedChartInfos({fieldInfos:l,fieldName:c,formattedValues:i,chartType:r,value:t,color:h})];return}let f=this._getChartOption({value:t,values:a,chartType:r,formattedValues:i,fieldName:c,fieldInfos:l,color:h});t.series.push(f)})}_getRelatedChartInfos(e){let{fieldInfos:t,fieldName:a,formattedValues:i,chartType:r,value:s,color:n}=e,o=[],d=X(a),g=d&&this.relatedInfos?.get(d.layerId);if(!g)return o;let{relatedFeatures:m,relation:l}=g;if(!l||!m)return o;let{cardinality:c}=l;return m.forEach(u=>{let h=u.attributes;h&&Object.keys(h).forEach(f=>{f===d.fieldName&&o.push(this._getChartOption({value:s,values:h,formattedValues:i,fieldName:a,chartType:r,relatedFieldName:f,hasMultipleRelatedFeatures:m?.length>1,fieldInfos:t,color:n}))})}),c&&(c==="one-to-many"||c==="many-to-many")?o:[o[0]]}_getTooltip({label:e,value:t,chartType:a}){return a==="pie-chart"?`${e}`:`${e}: ${t}`}_getChartOption(e){let{value:t,values:a,formattedValues:i,fieldName:r,relatedFieldName:s,fieldInfos:n,chartType:o,hasMultipleRelatedFeatures:d,color:g}=e,{layer:m,graphic:l}=this,c=this.fieldInfoMap??new Map,{normalizeField:u,tooltipField:h}=t,f=u?$(u)?a[X(u).fieldName]:a[u]:null,_=Q(r)&&i?.[r]!==void 0?i[r]:s&&a[s]!==void 0?a[s]:a[r]!==void 0?a[r]:i[r],I=_===void 0?null:_&&f&&typeof _=="number"&&typeof f=="number"?_/f:_,x=Z(n,r),p=F(r,m),A=(h&&i[h]!==void 0?i[h]:z({fieldInfo:x||new de({fieldName:p}),expressionInfos:this.popupTemplate?.expressionInfos,graphic:l,layer:m}))??"",R=i[p]??"",U=I!=null?typeof I=="number"?I:Number(I):null;if($(r)){let S=c.get(r.toLowerCase()),ae=h?c.get(h.toLowerCase()):null,ie=S?.fieldName??r,k=d&&h?X(h).fieldName:ae?.fieldName??h,re=(d&&k?a[k]:i[k]??(S&&z({fieldInfo:S,layer:m,graphic:l}))??S?.fieldName??s)??"",ne=(d&&s?a[s]:i[ie])??"";return new ee({fieldName:r,tooltip:this._getTooltip({label:re,value:ne,chartType:o}),color:g,value:U})}return new ee({fieldName:r,tooltip:this._getTooltip({label:A,value:R,chartType:o}),color:g,value:U})}_getRenderer(){let e=this.layer;return this.graphic?.isAggregate&&e?.featureReduction&&"renderer"in e.featureReduction?e.featureReduction.renderer:e?.renderer}async _getSeriesColors(e){let{color:t}=await import("./WJAYVKAD.js"),a=new Map;return e.forEach(i=>{i.color&&a.set(i,t(i.color.toCss(!0)))}),a}async _getRendererColors(){let{color:e}=await import("./WJAYVKAD.js"),t=new Map,a=this._getRenderer(),i="default";if(!a)return t;let r=await se(a);return r.delete(i),Array.from(r.values()).every(s=>s?.length===1)&&Array.from(r.keys()).forEach(s=>{let n=r.get(s)?.[0]?.toCss(!0);n&&t.set(s,e(n))}),t}async _createChart(e){let{activeMediaInfo:t}=this;if(!e||!t)return;let{createRoot:a}=await import("./GGC2FX5Z.js").then(m=>m.default.then(e=>({createRoot:e}))),i=await a(e);this._chartRoot=i,this._renderChart({mediaInfo:t,root:i})}_handleMediaKeyup(e){let{key:t}=e;t==="ArrowLeft"&&(e.stopPropagation(),this.previous()),t==="ArrowRight"&&(e.stopPropagation(),this.next())}_canAnimateChart(){return!this.chartAnimationDisabled&&!this._prefersReducedMotion}_getChartAnimationMS(){return this._canAnimateChart()?he:0}_getChartSeriesAnimationMS(){return this._canAnimateChart()?ue:0}async _customizeChartTooltip(e,t="horizontal"){let{color:a}=await import("./WJAYVKAD.js");e.setAll({pointerOrientation:t}),e.get("background")?.setAll({stroke:a(me)}),e.label.setAll({direction:this._direction,oversizedBehavior:"wrap",maxWidth:fe})}async _createPieChart(e,t){let[{Tooltip:a},{PieChart:i,PieSeries:r}]=await Promise.all([import("./WJAYVKAD.js"),import("./TC6ZBBSA.js")]),{mediaInfo:s,root:n}=e,{title:o}=s,d=5,g=s?.altText||s?.title||"",m=n.container.children.push(i.new(n,{role:"figure",ariaLabel:g,focusable:!0,paddingBottom:d,paddingTop:d,paddingLeft:d,paddingRight:d})),l=`{category}: {valuePercentTotal.formatNumber('0.00')}%
|
|
5
|
-
({value})`,c=a.new(n,{labelText:l}),u=m.series.push(r.new(n,{name:o,valueField:T,categoryField:w,tooltip:c}));u.ticks.template.set("forceHidden",!0),u.labels.template.set("forceHidden",!0),u.slices.template.states.create("active",{shiftRadius:d}),this._customizeChartTooltip(c),u.slices.template.setAll({ariaLabel:l,focusable:!0,templateField:"columnSettings"}),u.data.setAll(t),u.appear(this._getChartSeriesAnimationMS()),m.appear(this._getChartAnimationMS()),m.root.dom.classList.toggle(v.mediaChartRendered,!0)}_getMinSeriesValue(e){let t=0;return e.forEach(a=>t=Math.min(a.value,t)),t}async _createColumnChart(e,t,a){let[{Tooltip:i,Scrollbar:r},{CategoryAxis:s,AxisRendererX:n,AxisRendererY:o,ValueAxis:d,ColumnSeries:g}]=await Promise.all([import("./WJAYVKAD.js"),import("./WDRS2XCE.js")]),{mediaInfo:m,root:l}=t,{value:c,title:u}=m,{_direction:h}=this;e.setAll({wheelX:"panX",wheelY:"zoomX"});let f=e.xAxes.push(s.new(l,{renderer:n.new(l,{inversed:h==="rtl"}),categoryField:w}));f.get("renderer").labels.template.setAll({forceHidden:!0});let _=e.yAxes.push(d.new(l,{renderer:o.new(l,{inside:!1}),min:this._getMinSeriesValue(c.series)}));_.get("renderer").labels.template.setAll({direction:h});let I="{categoryX}",x=i.new(l,{labelText:I}),p=e.series.push(g.new(l,{name:u,xAxis:f,yAxis:_,valueYField:T,categoryXField:w,tooltip:x}));this._customizeChartTooltip(x),p.columns.template.setAll({ariaLabel:I,focusable:!0,templateField:"columnSettings"}),c.series.length>Y&&e.set("scrollbarX",r.new(l,{orientation:"horizontal"})),f.data.setAll(a),p.data.setAll(a),p.appear(this._getChartSeriesAnimationMS()),e.appear(this._getChartAnimationMS())}async _createBarChart(e,t,a){let[{Tooltip:i,Scrollbar:r},{CategoryAxis:s,AxisRendererX:n,AxisRendererY:o,ValueAxis:d,ColumnSeries:g}]=await Promise.all([import("./WJAYVKAD.js"),import("./WDRS2XCE.js")]),{mediaInfo:m,root:l}=t,{value:c,title:u}=m,{_direction:h}=this;e.setAll({wheelX:"panY",wheelY:"zoomY"});let f=e.yAxes.push(s.new(l,{renderer:o.new(l,{inversed:!0}),categoryField:w}));f.get("renderer").labels.template.setAll({forceHidden:!0});let _=e.xAxes.push(d.new(l,{renderer:n.new(l,{inside:!1,inversed:h==="rtl"}),min:this._getMinSeriesValue(c.series)}));_.get("renderer").labels.template.setAll({direction:h});let I="{categoryY}",x=i.new(l,{labelText:I}),p=e.series.push(g.new(l,{name:u,xAxis:_,yAxis:f,valueXField:T,categoryYField:w,tooltip:x}));this._customizeChartTooltip(x,"vertical"),p.columns.template.setAll({ariaLabel:I,focusable:!0,templateField:"columnSettings"}),c.series.length>Y&&e.set("scrollbarY",r.new(l,{orientation:"vertical"})),f.data.setAll(a),p.data.setAll(a),p.appear(this._getChartSeriesAnimationMS()),e.appear(this._getChartAnimationMS())}async _createLineChart(e,t,a){let[{Tooltip:i,Scrollbar:r},{CategoryAxis:s,AxisRendererX:n,AxisRendererY:o,ValueAxis:d,LineSeries:g}]=await Promise.all([import("./WJAYVKAD.js"),import("./WDRS2XCE.js")]),{root:m,mediaInfo:l}=t,{value:c,title:u}=l,{_direction:h}=this;e.setAll({wheelX:"panX",wheelY:"zoomX"});let f=e.xAxes.push(s.new(m,{renderer:n.new(m,{inversed:h==="rtl"}),categoryField:w}));f.get("renderer").labels.template.setAll({forceHidden:!0});let _=e.yAxes.push(d.new(m,{renderer:o.new(m,{inside:!1}),min:this._getMinSeriesValue(c.series)}));_.get("renderer").labels.template.setAll({direction:h});let I="{categoryX}",x=a[0]?.lineSettings?.stroke,p=i.new(m,{getFillFromSprite:!x,labelText:I});x&&p.get("background")?.setAll({fill:x});let A=e.series.push(g.new(m,{name:u,xAxis:f,yAxis:_,valueYField:T,categoryXField:w,tooltip:p}));A.strokes.template.setAll({templateField:"lineSettings"}),this._customizeChartTooltip(p,"vertical"),c.series.length>Y&&e.set("scrollbarX",r.new(m,{orientation:"horizontal"})),f.data.setAll(a),A.data.setAll(a),A.appear(this._getChartSeriesAnimationMS()),e.appear(this._getChartAnimationMS())}async _createXYChart(e,t){let{XYChart:a,XYCursor:i}=await import("./WDRS2XCE.js"),{root:r,mediaInfo:s}=e,{type:n}=s,o=s?.altText||s?.title||"",d=r.container.children.push(a.new(r,{role:"figure",ariaLabel:o,focusable:!0,panX:!0,panY:!0}));d.set("cursor",i.new(r,{})),n==="column-chart"&&await this._createColumnChart(d,e,t),n==="bar-chart"&&await this._createBarChart(d,e,t),n==="line-chart"&&await this._createLineChart(d,e,t),d.root.dom.classList.toggle(v.mediaChartRendered,!0)}_clearMediaRefreshTimer(){let{_refreshTimer:e}=this;e&&(clearTimeout(e),this._refreshTimer=void 0)}_updateMediaInfoTimestamp(e){let t=Date.now();this._refreshIntervalInfo={timestamp:t,sourceURL:e&&this._getImageSource(e,t)}}_setupMediaRefreshTimer(){this._clearMediaRefreshTimer();let{activeMediaInfo:e}=this;e?.type==="image"&&e.refreshInterval>0&&this._setRefreshTimeout(e)}_setRefreshTimeout(e){let{refreshInterval:t,value:a}=e,i=t*6e4;this._updateMediaInfoTimestamp(a.sourceURL);let r=window.setInterval(()=>{this._updateMediaInfoTimestamp(a.sourceURL)},i);this._refreshTimer=r}_getImageSource(e,t){let a=e.includes("?")?"&":"?",[i,r=""]=e.split("#");return`${i}${a}timestamp=${t}${r?"#":""}${r}`}_updateChartElement(e){this._chartRoot?.dispose(),this._chartRoot=void 0,e&&this._createChart(e)}render(){return C`<div class=${y(v.base)} @keyup=${this._handleMediaKeyup}><arcgis-feature-element-info .heading=${this.heading} .description=${this.description} .headingLevel=${this.headingLevel}></arcgis-feature-element-info>${this._renderMedia()}</div>`}_renderMedia(){let{formattedMediaInfoCount:e,activeMediaInfoIndex:t}=this,a=this._renderMediaText();return e?C`<div class=${y(v.mediaContainer)}>${this._renderMediaInfo()}<div class=${y(v.mediaNavigation)}>${a}${e>1?C`<div class=${y(v.mediaPagination)}>${this._renderMediaPageButton("previous")}<span class=${y(v.mediaPaginationText)}>${oe(this.messages?.pageText??"",{index:t+1,total:e})}</span>${this._renderMediaPageButton("next")}</div>`:null}</div></div>`:null}_renderMediaText(){let{activeMediaInfo:e}=this;if(!e)return null;let t=e?.title?C`<div class=${y(v.mediaItemTitle)} .innerHTML=${te.sanitize(e.title)??""}></div>`:null,a=e?.caption?C`<div class=${y(v.mediaItemCaption)} .innerHTML=${te.sanitize(e.caption)??""}></div>`:null;return t||a?C`<div class=${y(v.mediaItemText)}>${t}${a}</div>`:null}_renderImageMediaInfo(e){if(!e.value)return null;let{_refreshIntervalInfo:t}=this,{value:a,refreshInterval:i,altText:r,title:s}=e,{sourceURL:n,linkURL:o}=a,d=q(o??void 0)?"_blank":"_self",g=d==="_blank"?"noreferrer":"",m=i?t:null,l=m?m.sourceURL:n,c=C`<img alt=${(r||s)??b} src=${l??void 0??b}>`;return(o?C`<a href=${o??b} rel=${g??b} target=${d} title=${s??b}>${c}</a>`:null)??c}_renderChartMediaInfo(e){let{activeMediaInfoIndex:t,formattedMediaInfoCount:a}=this;return W(`media-${e.type}-${t}-${a}`,C`<div class=${y(v.mediaChart)} ${H(this._updateChartElement)}></div>`)}_renderMediaInfoType(){let{activeMediaInfo:e}=this;return e?e.type==="image"?this._renderImageMediaInfo(e):e.type.includes("chart")?this._renderChartMediaInfo(e):null:null}_renderMediaInfo(){let{activeMediaInfo:e}=this;return e?C`<div class=${y(v.mediaItemContainer)}><div class=${y(v.mediaItem)}>${this._renderMediaInfoType()}</div></div>`:null}_renderMediaPageButton(e){if(this.formattedMediaInfoCount<2)return null;let t=e==="previous",a=t?this.messages?.previous??"":this.messages?.next??"",i=t?"chevron-left":"chevron-right",r=t?this.previous:this.next;return C`<button .ariaLabel=${a} class=${y(v.mediaPaginationButton)} @click=${r} tabindex=0 title=${a??b} type=button><calcite-icon flip-rtl class=${y(v.mediaPaginationIcon)} .icon=${i} scale=s></calcite-icon></button>`}async _renderChart(e){let{root:t,mediaInfo:a}=e,{value:i,type:r}=a,[{default:s},{default:n},{default:o},{esriChartColorSet:d},{ColorSet:g,Theme:m}]=await Promise.all([import("./SMIJSUYR.js"),import("./CSH7OOTY.js"),import("./JHFFVOHO.js"),import("./B53ZEH7P.js"),import("./WJAYVKAD.js")]),l=m.new(t);l.rule("ColorSet").set("colors",d),l.rule("ColorSet").set("reuse",!0);let c=[o.new(t),l];O(this.el)==="dark"&&c.push(n.new(t)),this._canAnimateChart()&&c.push(s.new(t)),t.setThemes(c);let u=await this._getRendererColors(),h=await this._getSeriesColors(i.series),f=g.new(t,{}),_=h.get(i.series[0]),I=_?{lineSettings:{stroke:_}}:void 0,x=i.series.map((p,A)=>{let R=h.get(p)||u.get(p.fieldName)||f.getIndex(A);return{[w]:p.tooltip,[T]:p.value,columnSettings:{fill:R,stroke:R},...I}}).filter(p=>r==="pie-chart"?p.value!=null&&p.value>0:!0);r==="pie-chart"?this._createPieChart(e,x):this._createXYChart(e,x)}};D("arcgis-feature-media",E);return E},"renderers/support/utils","intl","core/reactiveUtils","popup/FieldInfo","popup/content/support/ChartMediaInfoValueSeries","applications/Components/sanitizerUtils",a)
|
package/dist/cdn/UJSWN5OK.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.93 */
|
|
4
|
-
import g from"./OW7J5X2Q.js";import e from"./BXSJVOYL.js";import{a as T}from"./PL6CQKLM.js";import d from"./6PJ27SYB.js";import{a as F}from"./WQ3225KQ.js";import"./M3D2NYN3.js";import c from"./GBRRLZHP.js";import a from"./SGSYHTAS.js";import{g as L}from"./RHLKZA34.js";import"./5W4G4PNT.js";import"./OZMRRK2Y.js";import{b as x,f as $}from"./USUYE22F.js";import"./NMF2M4P3.js";import{G as f,H as b,I as A,J as v,K as B,O as E,a as z,b as m,s as w}from"./IKNWZBGW.js";import"./4CS2VL3M.js";export default $arcgis.t(([R,{stripHTML:V},{watch:g},I,,,P,,N])=>{var p="arcgis-popup",u=`${p}--is-docked`,r={base:p,baseHidden:`${p}--hidden`,main:`${p}__main-container`,shadow:`${p}--shadow`,isDocked:u,isDockedTopLeft:`${u}-top-left`,isDockedTopCenter:`${u}-top-center`,isDockedTopRight:`${u}-top-right`,isDockedBottomLeft:`${u}-bottom-left`,isDockedBottomCenter:`${u}-bottom-center`,isDockedBottomRight:`${u}-bottom-right`,isXlWidthBreakpoint:`${p}--is-xl-width-breakpoint`,isLgWidthBreakpoint:`${p}--is-lg-width-breakpoint`,isMdWidthBreakpoint:`${p}--is-md-width-breakpoint`,isSmWidthBreakpoint:`${p}--is-sm-width-breakpoint`,isXsWidthBreakpoint:`${p}--is-xs-width-breakpoint`,isXlHeightBreakpoint:`${p}--is-xl-height-breakpoint`,isLgHeightBreakpoint:`${p}--is-lg-height-breakpoint`,isMdHeightBreakpoint:`${p}--is-md-height-breakpoint`,isSmHeightBreakpoint:`${p}--is-sm-height-breakpoint`,isXsHeightBreakpoint:`${p}--is-xs-height-breakpoint`,alignTopCenter:`${p}--aligned-top-center`,alignBottomCenter:`${p}--aligned-bottom-center`,alignTopLeft:`${p}--aligned-top-left`,alignBottomLeft:`${p}--aligned-bottom-left`,alignTopRight:`${p}--aligned-top-right`,alignBottomRight:`${p}--aligned-bottom-right`,pointer:`${p}__pointer`,pointerDirection:`${p}__pointer-direction`},j=z`:host{display:contents;--arcgis-internal-popup-pointer-size: 12px;--arcgis-internal-popup-content-small-size: 280px;--arcgis-internal-popup-content-medium-size: 340px;--arcgis-internal-popup-content-large-size: 400px;--arcgis-internal-popup-content-x-large-size: 460px;--arcgis-internal-popup-content-min-size-y: 48px;--arcgis-internal-popup-pointer-size-half: calc(var(--arcgis-internal-popup-pointer-size) / 2);--arcgis-internal-popup-pointer-size-half-negative: calc(var(--arcgis-internal-popup-pointer-size-half) * -1)}.arcgis-popup{display:flex;position:absolute;flex-flow:column nowrap;z-index:1;pointer-events:none}.arcgis-popup--hidden{visibility:hidden}arcgis-features{flex:1;width:100%}.arcgis-popup--shadow{box-shadow:var(--calcite-shadow-sm)}.arcgis-popup--aligned-top-center{transform-origin:50% 100%}.arcgis-popup--aligned-bottom-center{transform-origin:50% -5%}.arcgis-popup--aligned-top-left,.arcgis-popup--aligned-bottom-left{transform-origin:100% 50%}.arcgis-popup--aligned-top-right,.arcgis-popup--aligned-bottom-right{transform-origin:-5% 50%}.arcgis-popup--aligned-top-center,.arcgis-popup--aligned-top-left,.arcgis-popup--aligned-top-right{animation:popup-intro-animation-down .2s ease-in-out}.arcgis-popup--aligned-bottom-center,.arcgis-popup--aligned-bottom-left,.arcgis-popup--aligned-bottom-right{animation:popup-intro-animation-up .2s ease-in-out}.arcgis-popup__main-container{display:flex;position:relative;z-index:1;background-color:var(--calcite-color-foreground-1);width:var(--arcgis-internal-popup-content-medium-size);min-height:var(--arcgis-internal-popup-content-min-size-y);max-height:var(--arcgis-internal-popup-content-medium-size);overflow:hidden;pointer-events:auto}.arcgis-popup__pointer{position:absolute;width:0;height:0}.arcgis-popup__pointer-direction{position:absolute;width:var(--arcgis-internal-popup-pointer-size);height:var(--arcgis-internal-popup-pointer-size);content:"";background-color:var(--calcite-color-foreground-1)}.arcgis-popup--aligned-top-center .arcgis-popup__pointer{top:100%;left:50%;margin:0 0 0 var(--arcgis-internal-popup-pointer-size-half-negative)}.arcgis-popup--aligned-bottom-center .arcgis-popup__pointer{bottom:100%;left:50%;margin:0 0 0 var(--arcgis-internal-popup-pointer-size-half-negative)}.arcgis-popup--aligned-top-left .arcgis-popup__pointer{right:var(--arcgis-internal-popup-pointer-size-half);bottom:var(--arcgis-internal-popup-pointer-size-half);transform:rotate(-45deg)}.arcgis-popup--aligned-bottom-left .arcgis-popup__pointer{top:var(--arcgis-internal-popup-pointer-size-half);right:var(--arcgis-internal-popup-pointer-size-half);transform:rotate(45deg)}.arcgis-popup--aligned-top-right .arcgis-popup__pointer{bottom:var(--arcgis-internal-popup-pointer-size-half);left:var(--arcgis-internal-popup-pointer-size-half);transform:rotate(45deg)}.arcgis-popup--aligned-bottom-right .arcgis-popup__pointer{top:var(--arcgis-internal-popup-pointer-size-half);left:var(--arcgis-internal-popup-pointer-size-half);transform:rotate(-45deg)}.arcgis-popup--aligned-top-center .arcgis-popup__pointer-direction,.arcgis-popup--aligned-bottom-center .arcgis-popup__pointer-direction{transform:scale(.75,2) rotate(45deg)}.arcgis-popup--aligned-top-left .arcgis-popup__pointer-direction,.arcgis-popup--aligned-bottom-left .arcgis-popup__pointer-direction,.arcgis-popup--aligned-top-right .arcgis-popup__pointer-direction,.arcgis-popup--aligned-bottom-right .arcgis-popup__pointer-direction{top:var(--arcgis-internal-popup-pointer-size-half-negative);left:var(--arcgis-internal-popup-pointer-size-half-negative);transform:scale(.75,2.5) rotate(45deg)}.arcgis-popup--aligned-top-center .arcgis-popup__pointer-direction{top:var(--arcgis-internal-popup-pointer-size-half-negative);left:0}.arcgis-popup--aligned-bottom-center .arcgis-popup__pointer-direction{bottom:var(--arcgis-internal-popup-pointer-size-half-negative);left:0}.arcgis-popup--is-xl-width-breakpoint .arcgis-popup__main-container{width:var(--arcgis-internal-popup-content-x-large-size)}.arcgis-popup--is-lg-width-breakpoint .arcgis-popup__main-container{width:var(--arcgis-internal-popup-content-large-size)}.arcgis-popup--is-md-width-breakpoint .arcgis-popup__main-container{width:var(--arcgis-internal-popup-content-medium-size)}.arcgis-popup--is-sm-width-breakpoint .arcgis-popup__main-container,.arcgis-popup--is-xs-width-breakpoint .arcgis-popup__main-container{width:var(--arcgis-internal-popup-content-small-size)}.arcgis-popup--is-xs-width-breakpoint.arcgis-popup--is-docked-top-center,.arcgis-popup--is-xs-width-breakpoint.arcgis-popup--is-docked-bottom-center{margin:0;width:auto}.arcgis-popup--is-xs-width-breakpoint.arcgis-popup--is-docked-top-center .arcgis-popup__main-container,.arcgis-popup--is-xs-width-breakpoint.arcgis-popup--is-docked-bottom-center .arcgis-popup__main-container{position:absolute;right:0;left:0;width:100%;max-height:75%}.arcgis-popup--is-xs-width-breakpoint.arcgis-popup--is-docked-bottom-center .arcgis-popup__main-container{bottom:0}.arcgis-popup--is-xs-width-breakpoint.arcgis-popup--is-docked-top-center .arcgis-popup__main-container{top:0}.arcgis-popup--is-xl-height-breakpoint .arcgis-popup__main-container{max-height:var(--arcgis-internal-popup-content-x-large-size)}.arcgis-popup--is-lg-height-breakpoint .arcgis-popup__main-container{max-height:var(--arcgis-internal-popup-content-large-size)}.arcgis-popup--is-sm-height-breakpoint .arcgis-popup__main-container,.arcgis-popup--is-xs-height-breakpoint .arcgis-popup__main-container{max-height:var(--arcgis-internal-popup-content-small-size)}.arcgis-popup--is-docked{inset:0;margin:var(--calcite-spacing-lg) var(--calcite-spacing-lg) var(--calcite-spacing-xxxl) var(--calcite-spacing-lg);animation:docking-animation .25s ease-out}.arcgis-popup--is-docked-top-left,.arcgis-popup--is-docked-top-center,.arcgis-popup--is-docked-top-right{align-items:flex-start}.arcgis-popup--is-docked-bottom-left,.arcgis-popup--is-docked-bottom-center,.arcgis-popup--is-docked-bottom-right{align-items:flex-end}.arcgis-popup--is-docked-top-left,.arcgis-popup--is-docked-bottom-left{justify-content:flex-start}.arcgis-popup--is-docked-top-center,.arcgis-popup--is-docked-bottom-center{justify-content:center}.arcgis-popup--is-docked-top-right,.arcgis-popup--is-docked-bottom-right{justify-content:flex-end}.arcgis-popup--is-docked-top-left .arcgis-popup__main-container,.arcgis-popup--is-docked-top-right .arcgis-popup__main-container,.arcgis-popup--is-docked-bottom-left .arcgis-popup__main-container,.arcgis-popup--is-docked-bottom-right .arcgis-popup__main-container{max-height:80%}.arcgis-popup--is-docked-top-center .arcgis-popup__main-container,.arcgis-popup--is-docked-bottom-center .arcgis-popup__main-container{max-height:40%}.arcgis-popup--is-docked{flex-flow:row nowrap}:dir(rtl) .arcgis-popup--is-docked-top-left,:dir(rtl) .arcgis-popup--is-docked-bottom-left{justify-content:flex-end}:dir(rtl) .arcgis-popup--is-docked-top-right,:dir(rtl) .arcgis-popup--is-docked-bottom-right{justify-content:flex-start}@media(prefers-reduced-motion){.arcgis-popup--aligned-top-center,.arcgis-popup--aligned-top-left,.arcgis-popup--aligned-top-right,.arcgis-popup--aligned-bottom-center,.arcgis-popup--aligned-bottom-left,.arcgis-popup--aligned-bottom-right{animation:none}}@media(prefers-reduced-motion){.arcgis-popup--is-docked{animation:none}}@keyframes docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{transform:translateY(calc(var(--calcite-spacing-xs) * -1));opacity:0}to{transform:translate(0);opacity:1}}@keyframes popup-intro-animation-up{0%{transform:translateY(var(--calcite-spacing-xs));opacity:0}to{transform:translate(0);opacity:1}}`;function y(C){return C&&Number.parseInt(C.replaceAll(/[^-\d.]/gu,""),10)||0}var X=P(R),H={buttonEnabled:!0,position:"auto",breakpoint:{width:544}},D=class extends A{constructor(){super(...arguments),this._featuresComponent=f(),this._dockAction=new I({id:"popup-dock-action"}),this._mainContainerNode=f(),this._pointerNode=f(),this.messages=F({}),this.viewModel=X(this),this._containerNode=f(),this.screenLocation=N(this),this.actions=this.viewModel.actions,this.active=this.viewModel.active,this.alignment="auto",this.autoCloseEnabled=this.viewModel.autoCloseEnabled,this.autoDestroyDisabled=!1,this.collapsed=!1,this.content=this.viewModel.content,this.defaultPopupTemplateEnabled=this.viewModel.defaultPopupTemplateEnabled,this.dockEnabled=!1,this.featureCount=this.viewModel.featureCount,this.featureMenuOpen=this.viewModel.featureMenuOpen,this.features=this.viewModel.features,this.goToOverride=this.viewModel.goToOverride,this.heading=this.viewModel.title,this.headingLevel=2,this.hideActionBar=!1,this.hideCloseButton=!1,this.hideCollapseButton=!1,this.hideFeatureMenuHeading=!1,this.hideFeatureNavigation=!1,this.hideFeatureListLayerTitle=!1,this.hideHeading=!1,this.hideSpinner=!1,this.highlightDisabled=this.viewModel.highlightEnabled,this.includeDefaultActionsDisabled=this.viewModel.includeDefaultActions,this.initialDisplayMode=this.viewModel.initialDisplayMode,this.location=this.viewModel.location,this.promises=this.viewModel.promises,this.selectedFeature=this.viewModel.selectedFeature,this.selectedFeatureIndex=this.viewModel.selectedFeatureIndex,this.state=this.viewModel.state,this.updateLocationEnabled=this.viewModel.updateLocationEnabled,this.view=this.viewModel.view,this.visible=this.viewModel.visible,this.arcgisPropertyChange=L()("active","collapsed","currentAlignment","dockEnabled","featureCount","featureMenuOpen","features","promises","selectedDrillInFeature","selectedFeature","selectedFeatureComponent","selectedFeatureIndex","state","visible"),this.arcgisReady=w(),this.arcgisClose=w(),this.arcgisTriggerAction=w()}static{this.properties={screenLocation:16,positionStyle:16,_featureNavigationTop:16,actions:0,active:0,alignment:1,autoCloseEnabled:5,autoDestroyDisabled:5,collapsed:0,content:1,currentAlignment:32,currentDockPosition:32,defaultPopupTemplateEnabled:5,dockEnabled:5,dockOptions:0,featureCount:0,featureMenuOpen:5,features:0,goToOverride:0,heading:1,headingLevel:9,hideActionBar:5,hideCloseButton:5,hideCollapseButton:5,hideFeatureMenuHeading:5,hideFeatureNavigation:5,hideFeatureListLayerTitle:5,hideHeading:5,hideSpinner:5,highlightDisabled:5,includeDefaultActionsDisabled:5,initialDisplayMode:1,label:1,location:0,messageOverrides:0,promises:0,referenceElement:1,selectedDrillInFeature:32,selectedFeature:0,selectedFeatureComponent:32,selectedFeatureIndex:9,state:3,updateLocationEnabled:5,view:0,visible:5}}static{this.styles=j}get trackLocation(){return this.viewModel.active&&!this.dockEnabled}get _featureNavigationTop(){let{currentAlignment:t,currentDockPosition:e}=this;return t==="bottom-left"||t==="bottom-center"||t==="bottom-right"||e==="top-left"||e==="top-center"||e==="top-right"}get currentAlignment(){return this._getCurrentAlignment()}get currentDockPosition(){return this._getCurrentDockPosition()}get dockOptions(){return this._dockOptions||H}set dockOptions(t){let e={...H},o=this.viewModel?.view?.breakpoints,a={};o&&(a.width=o.xsmall,a.height=o.xsmall);let i={...e,...t},n={...e.breakpoint,...a},{breakpoint:s}=i;typeof s=="object"?i.breakpoint={...n,...s}:s&&(i.breakpoint=n),this._dockOptions=i}get selectedDrillInFeature(){return this._featuresComponent.value?.selectedDrillInFeature??null}get selectedFeatureComponent(){return this._featuresComponent.value?.selectedFeatureComponent??null}async handleViewClick(t){return this.viewModel.handleViewClick(t)}async clear(){return this.viewModel.clear()}async destroy(){await this.manager.destroy(),this._dockAction.destroy()}async fetchFeatures(t,e){return await this.viewModel.fetchFeatures(t,e)}async next(){return this.viewModel.next()}async open(t){this.viewModel.open(t)}async previous(){return this.viewModel.previous()}async setFocus(){this._featuresComponent.value?.setFocus()}async triggerAction(t){return await this._featuresComponent.value?.triggerAction(t)}loaded(){this.manager.onLifecycle(()=>[g(()=>[this.viewModel?.view?.widthBreakpoint,this.dockEnabled],()=>this._handleDockIcon(),{initial:!0}),g(()=>[this.dockEnabled,this.messages?.undock,this.messages?.dock],()=>this._handleDockEnabled(),{initial:!0}),g(()=>this.dockOptions,t=>{let{_dockAction:e}=this,o=this._featuresComponent.value?.headerActions;o?.remove(e),t.buttonEnabled&&o?.add(e)},{initial:!0}),g(()=>[this._featuresComponent.value,this._mainContainerNode.value,this._pointerNode.value,this.alignment,this.currentAlignment,this.dockEnabled,this.dockOptions,this.screenLocation,this.viewModel?.active,this.viewModel?.location,this.viewModel?.view?.padding,this.viewModel?.view?.size],()=>this._positionContainer(),{initial:!0}),g(()=>this.viewModel?.view?.size,(t,e)=>this._updateDockEnabledForViewSize(t,e)),g(()=>this.viewModel?.view?.ready,()=>this._setDockEnabledForViewSize(this.dockOptions),{initial:!0}),g(()=>this.view?.map,t=>{this.viewModel.map=t},{initial:!0}),g(()=>this.screenLocation,(t,e)=>this._autoClose(t,e))])}_handleClose(t){t.stopPropagation(),this.arcgisClose.emit()}_autoClose(t,e){this.autoCloseEnabled&&t!=null&&e!=null&&(this.visible=!1)}_handleArcgisPropertyChange(t){t.detail.name==="collapsed"&&(this.collapsed=t.target.collapsed)}_handleArcgisTriggerAction(t){t.stopPropagation(),t.detail.action===this._dockAction&&(this.dockEnabled=!this.dockEnabled),this.arcgisTriggerAction.emit({action:t.detail.action})}_isOutsideView(t){let{popupHeight:e,popupWidth:o,screenLocation:a,side:i,view:n}=t;if(Number.isNaN(o)||Number.isNaN(e)||!n||!a)return!1;let s=n.padding;return i==="right"&&a.x+o/2>n.width-(s?.right??0)||i==="left"&&a.x-o/2<(s?.left??0)||i==="top"&&a.y-e<(s?.top??0)||i==="bottom"&&a.y+e>n.height-(s?.bottom??0)}_getPointerSize(){let{_pointerNode:t}=this,e=t.value?window.getComputedStyle(t.value):null,o=y(e?.height),a=y(e?.width);return Math.hypot(o,a)}_calculateAutoAlignment(t){if(t!=="auto")return t;let{_mainContainerNode:e,viewModel:o}=this,{view:a}=o,{screenLocation:i}=this;if(i==null||!a||!e.value)return"top-center";let n=window.getComputedStyle(e.value),s=y(n.maxHeight),l=y(n.height),c=this._getPointerSize(),{height:h,width:d}=e.value.getBoundingClientRect(),k=d+c,_=Math.max(h,s,l)+c,S=this._isOutsideView({popupHeight:_,popupWidth:k,screenLocation:i,side:"right",view:a}),O=this._isOutsideView({popupHeight:_,popupWidth:k,screenLocation:i,side:"left",view:a}),M=this._isOutsideView({popupHeight:_,popupWidth:k,screenLocation:i,side:"top",view:a}),W=this._isOutsideView({popupHeight:_,popupWidth:k,screenLocation:i,side:"bottom",view:a});return O?M?"bottom-right":"top-right":S?M?"bottom-left":"top-left":M?W?"top-center":"bottom-center":"top-center"}_callCurrentAlignment(t){return typeof t=="function"?t.call(this):t}_getCurrentAlignment(){return this.dockEnabled||!this.viewModel.active||!this._mainContainerNode.value?null:this._calculatePositionResult(this._calculateAutoAlignment(this._callCurrentAlignment(this.alignment)))}_calculatePositionResult(t){let e=["left","right"];return $(this.el)==="rtl"&&e.reverse(),t?.replace(/start/giu,e[0]).replace(/end/giu,e[1])}_callDockPosition(t){return typeof t=="function"?t.call(this):t}_getDockPosition(){return this._calculatePositionResult(this._calculateAutoDockPosition(this._callDockPosition(this.dockOptions?.position)))}_getCurrentDockPosition(){return this.dockEnabled&&this.viewModel.active?this._getDockPosition():null}_calculateAutoDockPosition(t){if(t!=="auto")return t;let e=this.viewModel?.view,o=$(this.el)==="rtl"?"top-left":"top-right";if(!e)return o;let a=e.padding,i=e.width-(a?.left??0)-(a?.right??0),{breakpoints:n}=e;return n?.xsmall&&i<=n.xsmall?"bottom-center":o}_getDockIcon(){let t=this._getDockPosition();if(this.dockEnabled)return"minimize";switch(t){case"top-left":case"bottom-left":return"dock-left";case"top-center":return"maximize";case"bottom-center":return"dock-bottom";case"top-right":case"bottom-right":default:return"dock-right"}}_handleDockIcon(){this._dockAction.icon=this._getDockIcon()}_handleDockEnabled(){this._dockAction.title=this.dockEnabled?this.messages?.undock:this.messages?.dock}_positionContainer(){this.positionStyle=this._calculatePositionStyle()}_calculateFullWidth(t){let{currentAlignment:e}=this;return e==="top-left"||e==="bottom-left"||e==="top-right"||e==="bottom-right"?t+this._getPointerSize():t}_calculateAlignmentPosition(t,e,o,a){let{currentAlignment:i}=this;if(!o)return;let{padding:n}=o,s=a/2,l=o.height-e,c=o.width-t,h=this._getPointerSize(),d=h/2;if(i==="bottom-center")return{top:e+h-(n?.top??0),left:t-s-(n?.left??0)};if(i==="top-left")return{bottom:l+d-(n?.bottom??0),right:c+d-(n?.right??0)};if(i==="bottom-left")return{top:e+d-(n?.top??0),right:c+d-(n?.right??0)};if(i==="top-right")return{bottom:l+d-(n?.bottom??0),left:t+d-(n?.left??0)};if(i==="bottom-right")return{top:e+d-(n?.top??0),left:t+d-(n?.left??0)};if(i==="top-center")return{bottom:l+h-(n?.bottom??0),left:t-s-(n?.left??0)}}_calculatePositionStyle(){let{screenLocation:t}=this,{view:e}=this.viewModel,o=this._mainContainerNode.value?.getBoundingClientRect().width??0;if(!e||this.dockEnabled||t==null||!o)return;let a=this._calculateFullWidth(o),i=this._calculateAlignmentPosition(t.x,t.y,e,a);if(i)return{top:i.top!==void 0?`${i.top}px`:"auto",left:i.left!==void 0?`${i.left}px`:"auto",bottom:i.bottom!==void 0?`${i.bottom}px`:"auto",right:i.right!==void 0?`${i.right}px`:"auto"}}_dockingThresholdCrossed(t,e,o){let[a,i]=t,[n,s]=e,{width:l=0,height:c=0}=o??{};return a<=l&&n>l||a>l&&n<=l||i<=c&&s>c||i>c&&s<=c}_updateDockEnabledForViewSize(t,e){if(!t||!e)return;let o=this.viewModel?.view?.padding,a=(o?.left??0)+(o?.right??0),i=(o?.top??0)+(o?.bottom??0),n=[],s=[];n[0]=t[0]-a,n[1]=t[1]-i,s[0]=e[0]-a,s[1]=e[1]-i;let{dockOptions:l}=this,c=l.breakpoint;typeof c=="object"&&this._dockingThresholdCrossed(n,s,c)&&this._setDockEnabledForViewSize(l)}_shouldDockAtCurrentViewSize(t){let e=t.breakpoint,o=this.viewModel?.view?.ui;if(!o)return!1;let{width:a,height:i}=o;if(Number.isNaN(a)||Number.isNaN(i)||typeof e!="object")return!1;let n=typeof e.width=="number"&&a<=(e.width??0),s=typeof e.height=="number"&&i<=(e.height??0);return n||s}_setDockEnabledForViewSize(t){this.viewModel?.view?.ready&&typeof t.breakpoint=="object"&&(this.dockEnabled=this._shouldDockAtCurrentViewSize(t))}render(){let{dockEnabled:t,currentAlignment:e,currentDockPosition:o,positionStyle:a}=this,{active:i,view:n}=this.viewModel,s=i&&t,l=i&&!t,c=n?.widthBreakpoint,h=n?.heightBreakpoint,d={[r.alignTopCenter]:e==="top-center",[r.alignBottomCenter]:e==="bottom-center",[r.alignTopLeft]:e==="top-left",[r.alignBottomLeft]:e==="bottom-left",[r.alignTopRight]:e==="top-right",[r.alignBottomRight]:e==="bottom-right",[r.isDocked]:s,[r.shadow]:l,[r.isDockedTopLeft]:o==="top-left",[r.isDockedTopCenter]:o==="top-center",[r.isDockedTopRight]:o==="top-right",[r.isDockedBottomLeft]:o==="bottom-left",[r.isDockedBottomCenter]:o==="bottom-center",[r.isDockedBottomRight]:o==="bottom-right",[r.isXlWidthBreakpoint]:c==="xlarge",[r.isLgWidthBreakpoint]:c==="large",[r.isMdWidthBreakpoint]:c==="medium",[r.isSmWidthBreakpoint]:c==="small",[r.isXsWidthBreakpoint]:c==="xsmall",[r.isXlHeightBreakpoint]:h==="xlarge",[r.isLgHeightBreakpoint]:h==="large",[r.isMdHeightBreakpoint]:h==="medium",[r.isSmHeightBreakpoint]:h==="small",[r.isXsHeightBreakpoint]:h==="xsmall"};return m`<div style=${B(this.positionStyle)} .ariaHidden=${!i} .ariaLabel=${V(this.heading??"")} class=${v(x(r.base,d,{[r.baseHidden]:!i||!a&&!t}))} role=dialog ${b(this._containerNode)}>${this._renderMainContainer()}${this._renderPointer()}</div>`}_renderPointer(){return!this.dockEnabled||!this.active?m`<div class=${v(r.pointer)} role=presentation><div class=${v(x(r.pointerDirection,r.shadow))} ${b(this._pointerNode)}></div></div>`:null}_renderMainContainer(){let t={[r.shadow]:this.dockEnabled};return m`<div class=${v(x(r.main,t))} ${b(this._mainContainerNode)}>${T(this.viewModel,m`<arcgis-features .collapsed=${this.collapsed} .featureNavigationTop=${this._featureNavigationTop} .headingLevel=${this.headingLevel} .hidden=${!this.active} .hideActionBar=${this.hideActionBar} .hideCloseButton=${this.hideCloseButton} .hideFeatureListLayerTitle=${this.hideFeatureListLayerTitle} .hideFeatureMenuHeading=${this.hideFeatureMenuHeading} .hideFeatureNavigation=${this.hideFeatureNavigation} .hideHeading=${this.hideHeading} .hideSpinner=${this.hideSpinner} @arcgisPropertyChange=${this._handleArcgisPropertyChange} @arcgisTriggerAction=${this._handleArcgisTriggerAction} @arcgisClose=${this._handleClose} .referenceElement=${this.referenceElement} .responsiveActionsEnabled=${!0} .showCollapseButton=${!this.hideCollapseButton} .viewModel=${this.viewModel} ${b(this._featuresComponent)}></arcgis-features>`)}</div>`}};E("arcgis-popup",D);return D},"widgets/Features/FeaturesViewModel","applications/Components/stringUtils","core/reactiveUtils","support/actions/ActionButton",a,c,d,e,g)
|
package/dist/cdn/UO3ICPPO.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.93 */
|
|
4
|
-
import{a as f}from"./2X52Y4DY.js";import a from"./C52USQZY.js";import{a as M}from"./PL6CQKLM.js";import{b as E}from"./USUYE22F.js";import"./NMF2M4P3.js";import{G as Q,H as j,I as k,J as h,M as R,O as B,a as D,b as o}from"./IKNWZBGW.js";import"./4CS2VL3M.js";export default $arcgis.t(([{templateHasKey:H,stripHTML:K},{isRelatableFeatureSupportedLayer:U,findRelatedLayer:X},{substitute:Y,formatNumber:T},{watch:F,on:ee},Z,W,{ignoreAbortErrors:N},te,{h:V}])=>{var re=D`:host{position:relative;flex:1 1 auto}.arcgis-feature-relationship__list{min-height:var(--calcite-spacing-xxxl)}.arcgis-feature-relationship__list-item--hidden{display:none}.arcgis-feature-relationship__feature-observer{position:relative;bottom:var(--calcite-spacing-xxl);z-index:2;text-align:center}.arcgis-feature-relationship__sticky-loading-container{display:flex;position:sticky;bottom:var(--calcite-spacing-sm);align-items:center;justify-content:center;z-index:2;margin:0;padding:0;height:var(--calcite-spacing-xxxl);pointer-events:none}`,ie=_=>{let e=[];if(_.formTemplate){let{description:t,title:r}=_.formTemplate;_.fields?.forEach(i=>{let s=r&&H(r,i.name),a=t&&H(t,i.name);(s||a)&&e.push(i.name)})}return e},O=100,se="arcgis-feature",c=`${se}-relationship`,u={base:c,listContainer:`${c}__list`,listItem:`${c}__list-item`,listItemHidden:`${c}__list-item--hidden`,listContainerQuerying:`${c}__list--querying`,featureObserver:`${c}__feature-observer`,stickySpinnerContainer:`${c}__sticky-loading-container`,loadingSpinnerContainer:`${c}__loading-container`},x=class extends k{constructor(){super(...arguments),this._increaseFeaturePage=()=>{let{state:e,showAllEnabled:t,relatedFeatures:r,featuresPerPage:i,featurePage:s}=this;e==="ready"&&t&&r.length>=i*s&&this.featurePage++},this._relatedFeatureIntersectionObserver=new IntersectionObserver(([e])=>{e?.isIntersecting&&this._increaseFeaturePage()},{root:window.document}),this._featurePage=1,this._cancelQuery=()=>{let{_queryAbortController:e}=this;e&&e.abort(),this._queryAbortController=null},this._cancelQueryFeatureCount=()=>{let{_queryFeatureCountAbortController:e}=this;e&&e.abort(),this._queryFeatureCountAbortController=null},this._cancelQueryPage=()=>{let{_queryPageAbortController:e}=this;e&&e.abort(),this._queryPageAbortController=null},this._queryController=async()=>{this._cancelQuery();let e=new AbortController;this._queryAbortController=e,await N(this._query()),this._queryAbortController===e&&(this._queryAbortController=null)},this._queryFeatureCountController=async()=>{this._loaded=!1,this._cancelQueryFeatureCount();let e=new AbortController;this._queryFeatureCountAbortController=e,await N(this._queryFeatureCount()),this._queryFeatureCountAbortController===e&&(this._queryFeatureCountAbortController=null),this._loaded=!0},this._queryPageController=async()=>{let e=new AbortController;this._queryPageAbortController=e,await N(this._queryPage()),this._queryPageAbortController===e&&(this._queryPageAbortController=null)},this._queryDebounced=f(this._queryController,O),this._queryFeatureCountDebounced=f(this._queryFeatureCountController,O),this._queryPageDebounced=f(this._queryPageController,O),this._query=async()=>{let{_queryAbortController:e,relatedFeatures:t}=this;!this.featureCount||this.relatedLayer?.type==="subtype-group"&&!this.activeCategory||(this.relatedFeatureViewModels.destroyAll(),this.featurePage=1,t.destroyAll(),t.addMany(this._sliceFeatures(await this._queryRelatedFeatures({signal:e?.signal}))))},this._addFlowItem=e=>{e&&this.flowItems?.push(e)},this._relatedFeatureIntersectionObserverNode=Q(),this.relatedFeatures=new Z,this._queryAbortController=null,this._queryPageAbortController=null,this._queryFeatureCountAbortController=null,this.featureCount=0,this._loaded=!1,this.relatedFeatureViewModels=new Z,this.autoDestroyDisabled=!1,this.featuresPerPage=10,this.flowType="feature-relationship",this.headingLevel=2,this.hideHeading=!1,this.hideDescription=!1,this.showAllEnabled=!1}static{this.properties={allCategories:16,_queryAbortController:16,_queryPageAbortController:16,_queryFeatureCountAbortController:16,featureCount:16,_loaded:16,canLoad:16,canQuery:16,displayShowAllButton:16,displayListItems:16,categories:16,itemDescriptionFieldName:16,relatedFeatureViewModels:16,state:16,autoDestroyDisabled:5,allItemsDescription:32,featurePage:9,featuresPerPage:9,flowItems:0,flowType:1,headingLevel:9,messages:0,heading:1,description:1,values:0,activeCategory:0,hideHeading:5,hideDescription:5,displayCount:9,graphic:0,layer:0,map:0,view:0,spatialReference:0,timeZone:1,orderByFields:0,relationshipId:9,showAllEnabled:5,label:3}}static{this.styles=re}get orderByFieldsFixedCasing(){let{orderByFields:e,relatedLayer:t}=this;return e&&t?.loaded?e.map(r=>{let i=r.clone();return i.field=V(r.field,t),i}):e??[]}get supportsCacheHint(){return!!this.layer?.capabilities?.queryRelated?.supportsCacheHint}get allCategoriesCount(){return this.allCategories?.length??0}get objectId(){return(this.objectIdField&&this.graphic?.attributes?.[this.objectIdField])??null}get objectIdField(){return this.layer?.objectIdField||null}get relatedLayer(){let{layer:e,map:t,relationship:r}=this;if(!e?.loaded||!t||!r)return null;let i=e.type==="subtype-sublayer"&&e.parent&&U(e.parent)?e.parent:e;return X(t,i,r)??null}get relatedLayerKeyField(){let{relatedLayer:e,relationshipId:t}=this;return e?.loaded&&t!=null?e.relationships?.find(r=>r.id===t)?.keyField:null}get relatedLayerKeyFields(){let{relatedLayer:e}=this;return e?.loaded?e.relationships?.map(t=>t.keyField).filter(t=>t!=null)??[]:[]}get relationship(){let{relationshipId:e,layer:t}=this;return e!=null&&t?.loaded?t.relationships?.find(({id:r})=>r===e)??null:null}get relationshipKey(){let{relationshipKeyField:e}=this;return(e&&this.graphic?.attributes?.[e])??null}get relationshipKeyField(){return this.relationship?.keyField||null}get canLoad(){return!!this.map&&this.relationshipId!=null&&typeof this.objectId=="number"}get canQuery(){let e=this.layer?.capabilities?.queryRelated;return!!this.relatedLayer&&!!this.relationship&&this.relationshipId!=null&&this.objectId!=null&&!!e?.supportsCount&&e?.supportsPagination}get displayShowAllButton(){let{showAllEnabled:e,featureCount:t,displayCount:r,state:i,allCategoriesCount:s}=this,a=!!s&&(s>r||r===0),n=!!t&&(t>r||r===0);return!e&&i==="ready"&&(a||n)}get displayListItems(){let{relatedFeatures:e,allCategoriesCount:t}=this;return this.displayShowAllButton||!!e.length||!!t}get categories(){let{allCategories:e}=this;return this.showAllEnabled?e:e?.slice(0,this.displayCount)??null}get itemDescriptionFieldName(){return this.orderByFieldsFixedCasing[0]?.field||null}get state(){let{_queryAbortController:e,_queryFeatureCountAbortController:t,_queryPageAbortController:r,canQuery:i,_loaded:s,canLoad:a}=this;return t||a&&!s?"loading":e||r?"querying":i?"ready":"disabled"}get allItemsDescription(){let{messages:e,featureCount:t,allCategories:r,allCategoriesCount:i}=this;return Y(e?.numberRecords??"",{number:T(r?i:t)})}get featurePage(){return this._featurePage}set featurePage(e){let{featuresPerPage:t,featureCount:r}=this,i=1,s=Math.ceil(r/t)||1;this._featurePage=Math.min(Math.max(e,i),s)}get heading(){let{activeCategory:e}=this;return this._heading??e?.name}set heading(e){this._heading=e}get displayCount(){return this._displayCount??3}set displayCount(e){this._displayCount=Math.min(Math.max(e??3,0),10)}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[F(()=>[this.displayCount,this.graphic,this.layer,this.layer?.loaded,this.map,this.orderByFields,this.relationshipId,this.featuresPerPage,this.showAllEnabled,this.canQuery,this.featureCount,this.activeCategory],()=>this._queryDebounced(),{initial:!0}),F(()=>[this.featurePage,this.showAllEnabled],()=>this._queryPageDebounced()),F(()=>[this.layer,this.relationshipId,this.objectId,this.canQuery,this.activeCategory],()=>this._queryFeatureCountDebounced(),{initial:!0}),F(()=>[this.state,this.showAllEnabled,this._relatedFeatureIntersectionObserverNode],()=>this._handleRelatedFeatureObserverChange()),ee(()=>this.relatedFeatures,"change",()=>this._setRelatedFeaturesViewModels())]),this.manager.onDestroy(()=>{this.relatedFeatureViewModels.destroyAll(),this.relatedFeatures.destroyAll(),this._cancelQuery(),this._cancelQueryFeatureCount(),this._cancelQueryPage(),this._unobserveRelatedFeatureObserver()})}async _queryFeatureCount(){let{layer:e,relatedLayer:t}=this;await e?.load(),await t?.load();let{_queryFeatureCountAbortController:r,activeCategory:i,canQuery:s,objectId:a,relatedLayerKeyField:n,relationshipId:l,relationshipKey:g,supportsCacheHint:v}=this;if(!s||!e||!t||a==null){this.featureCount=0,this.allCategories=void 0;return}if(t?.type==="subtype-group"&&!i){if(this.featureCount=0,this.relatedFeatureViewModels.destroyAll(),this.featurePage=1,this.relatedFeatures.destroyAll(),n&&g!=null){let{default:$}=await $arcgis.t(m=>m[0],"smartMapping/statistics/uniqueValues"),{uniqueValueInfos:A}=await $({layer:t,sqlWhere:`${n} = '${g}'`,field:t.subtypeField??void 0,signal:r?.signal}),q=A.map(({count:y,value:m})=>{let C=t.subtypes?.find(L=>L.code===m)?.name;return m!=null&&C?{count:y,value:m,name:C}:void 0}).filter(y=>y!=null);this.allCategories=q}return}let{historicMoment:b,gdbVersion:w}=e,I=new W({cacheHint:v,gdbVersion:w,historicMoment:b,relationshipId:l,returnGeometry:!1,objectIds:[a],where:this._getRelationshipWhereClause(t)}),p=await e.queryRelatedFeaturesCount(I,{signal:r?.signal});this.allCategories=void 0,this.featureCount=p[a]||0}_getRelationshipWhereClause(e){let{activeCategory:t}=this,r=e.createQuery(),i="subtypeField"in e?e.subtypeField:void 0,s=t&&i?`${i} = ${t.value}`:void 0,a=r.where;return a&&s?`(${a}) AND (${s})`:a??s}_sliceFeatures(e){let{showAllEnabled:t,displayCount:r}=this;return t?e:r?e.slice(0,r):[]}async _queryPage(){let{relatedFeatures:e,featurePage:t,showAllEnabled:r,_queryPageAbortController:i,featureCount:s}=this;!r||t<2||!s||this.relatedLayer?.type==="subtype-group"&&!this.activeCategory||e.addMany(await this._queryRelatedFeatures({signal:i?.signal}))}async _queryRelatedFeatures(e){let{displayCount:t,featureCount:r,featurePage:i,featuresPerPage:s,layer:a,orderByFieldsFixedCasing:n,relatedLayer:l,relatedLayerKeyFields:g,relationshipId:v,showAllEnabled:b,supportsCacheHint:w}=this,{canQuery:I,objectId:p}=this;if(!I||!a||!l||p==null)return[];let $=b?((i-1)*s+r)%r:0,A=b?s:t,q=l.objectIdField,y="subtypeField"in l?l.subtypeField:void 0,m=[...n.map(d=>d.field),...ie(l),...g,q,y].filter(d=>d!=null),C=n.map(d=>`${d.field} ${d.order}`),{historicMoment:L,gdbVersion:z}=a,G=new W({orderByFields:C,start:$,num:A,outFields:m,cacheHint:w,historicMoment:L,gdbVersion:z,relationshipId:v,returnGeometry:!1,objectIds:[p],where:this._getRelationshipWhereClause(l)}),P=(await a.queryRelatedFeatures(G,{signal:e?.signal}))[p]?.features||[];return l.type==="subtype-group"&&y?P.forEach(d=>{let J=d.attributes[y],S=l.findSublayerForSubtypeCode?.(J);d.sourceLayer=S,d.layer=S}):P.forEach(d=>{d.sourceLayer=l,d.layer=l}),P}_selectCategory(e){let{flowItems:t}=this;t&&this._addRelationshipFlowItem({showAllEnabled:!0,activeCategory:e})}_selectRecord(e){let{flowItems:t}=this;t&&this._addFlowItem(R(M(e,o`<arcgis-feature .flowItems=${t} .flowType=${this.flowType} .graphic=${e.graphic} .map=${this.map} show-relationship-content .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature>`)))}_addRelationshipFlowItem({showAllEnabled:e=!1,activeCategory:t}){this._addFlowItem(R(M(t,o`<arcgis-feature-relationship .messages=${this.messages} .activeCategory=${t} .displayCount=${this.displayCount} .flowItems=${this.flowItems} .flowType=${this.flowType} .graphic=${this.graphic} .heading=${this.heading} hide-description .showAllEnabled=${e} hide-heading .layer=${this.layer} .map=${this.map} .orderByFields=${this.orderByFields} .relationshipId=${this.relationshipId} .spatialReference=${this.spatialReference} .values=${this.values} .view=${this.view}></arcgis-feature-relationship>`)))}_showAllRecords(){let{flowItems:e}=this;e&&this._addRelationshipFlowItem({showAllEnabled:!0})}_handleRelatedFeatureObserverChange(){this._unobserveRelatedFeatureObserver();let{state:e,showAllEnabled:t}=this;this._relatedFeatureIntersectionObserverNode.value&&e==="ready"&&t&&this._relatedFeatureIntersectionObserver.observe(this._relatedFeatureIntersectionObserverNode.value)}_unobserveRelatedFeatureObserver(){this._relatedFeatureIntersectionObserverNode.value&&this._relatedFeatureIntersectionObserver.unobserve(this._relatedFeatureIntersectionObserverNode.value)}_matchesFeature(e,t){let r=e?.graphic?.getObjectId(),i=t?.getObjectId();return r!=null&&i!=null&&r===i}_setRelatedFeaturesViewModels(){let{relatedFeatures:e,relatedFeatureViewModels:t,map:r,view:i,spatialReference:s,timeZone:a}=this;e?.filter(Boolean).forEach(n=>{t.some(l=>this._matchesFeature(l,n))||t.add(new te({abilities:{relationshipContent:!1},map:r,view:i,spatialReference:s,timeZone:a,graphic:n}))}),t.forEach(n=>{e?.find(l=>this._matchesFeature(n,l))||t.remove(n)})}render(){let{state:e}=this;return o`<div class=${h(u.base)}><arcgis-feature-element-info .heading=${this.heading} .headingLevel=${this.headingLevel} .description=${this.description}></arcgis-feature-element-info>${e==="loading"?this._renderLoading():e==="disabled"?this._renderRelationshipNotFound():this._renderRelatedFeatures()}</div>`}_renderStickyLoading(){return this.state==="querying"?o`<div class=${h(u.stickySpinnerContainer)}>${this._renderLoadingIcon()}</div>`:null}_renderLoadingIcon(){return o`<calcite-loader inline label></calcite-loader>`}_renderLoading(){return o`<div class=${h(u.loadingSpinnerContainer)}>${this._renderLoadingIcon()}</div>`}_renderShowAllIconNode(){return o`<calcite-icon icon=list scale=s slot=content-end></calcite-icon>`}_renderChevronIconNode(){return o`<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon>`}_renderCategory(e){let{count:t,name:r}=e,i=T(t);return o`<calcite-list-item class=${h(u.listItem)} .disabled=${!t} .label=${r} @calciteListItemSelect=${()=>this._selectCategory(e)}><calcite-chip .label=${i} scale=s slot=content-end>${i}</calcite-chip>${this._renderChevronIconNode()}</calcite-list-item>`}_renderRelatedFeature(e){let{itemDescriptionFieldName:t,values:r}=this,{formattedAttributes:i,state:s,title:a}=e,n={...i?.global,...r},l=(t&&n?.[t])??"",g=s==="loading";return o`<calcite-list-item class=${h(E(u.listItem,{[u.listItemHidden]:g}))} .description=${K(l.toString())} .label=${K(a)} @calciteListItemSelect=${()=>this._selectRecord(e)}>${this._renderChevronIconNode()}</calcite-list-item>`}_renderShowAllListItem(){return this.displayShowAllButton?o`<calcite-list-item .description=${this.allItemsDescription} .label=${this.messages?.showAll} @calciteListItemSelect=${()=>this._showAllRecords()}>${this._renderShowAllIconNode()}</calcite-list-item>`:null}_renderNoRelatedFeaturesMessage(){return o`<calcite-notice icon=information kind=brand open scale=s width=full><div slot=message>${this.messages?.noRelatedFeatures}</div></calcite-notice>`}_renderFeatureObserver(){return o`<div class=${h(u.featureObserver)} ${j(this._relatedFeatureIntersectionObserverNode)}></div>`}_renderList(){let{relatedFeatureViewModels:e,categories:t}=this;return o`<calcite-list display-mode=flat .label=${this.messages?.relatedFeaturesList??""}>${t?.map(r=>this._renderCategory(r))??e.toArray().map(r=>this._renderRelatedFeature(r))}${this._renderShowAllListItem()}</calcite-list>`}_renderRelatedFeatures(){let{displayListItems:e}=this,{state:t}=this;return o`<div class=${h(E(u.listContainer,{[u.listContainerQuerying]:t==="querying"}))}>${e?this._renderList():t==="ready"?this._renderNoRelatedFeaturesMessage():null}${this._renderStickyLoading()}${this._renderFeatureObserver()}</div>`}_renderRelationshipNotFound(){return o`<calcite-notice icon=exclamation-mark-triangle kind=danger open scale=s width=full><div slot=message>${this.messages?.relationshipNotFound}</div></calcite-notice>`}};B("arcgis-feature-relationship",x);return x},"applications/Components/stringUtils","applications/Components/featureUtils","intl","core/reactiveUtils","core/Collection","rest/support/RelationshipQuery","core/promiseUtils","widgets/Feature/FeatureViewModel",a)
|
package/dist/cdn/VIXVEUAB.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.93 */
|
|
4
|
-
import c from"./S2WAX7GH.js";import{a as E}from"./AAMNBOQU.js";import b from"./C52USQZY.js";import a from"./WXEYFVOL.js";import"./5DYLDR23.js";import"./PJ77LCUF.js";import{a as w}from"./WQ3225KQ.js";import"./RHLKZA34.js";import"./5W4G4PNT.js";import{h as S}from"./OZMRRK2Y.js";import{b as y}from"./USUYE22F.js";import"./NMF2M4P3.js";import{G as v,H as f,I as T,J as h,K as A,L as o,O as M,b as r}from"./IKNWZBGW.js";import"./4CS2VL3M.js";export default $arcgis.t(([{isLayerFromCatalog:O},,,{b:I,c:L}])=>{var D={hideChildren:"hide-children"};function R({exclusive:a,visible:e,visibilityAppearance:t}){let i=t==="checkbox";return e?a?"circle-f":i?"check-square-f":"view-visible":a?"circle":i?"square":"view-hide"}function P({connectionStatus:a,publishing:e}){return a?a==="connected"?"beacon":"offline":e?"square":"bullet-point"}function F(a){return a?.listMode===D.hideChildren}function k(a){let e=(a?.layer&&U(a.layer)?a.layer.layer:void 0)??a?.layer;return e?e.type==="catalog"?!1:B(e)??!0:!1}function U(a){return a!=null&&"layer"in a&&a.layer!=null}function B(a){let e=V(a);return e!=null&&"supportsDynamicLayers"in e?e.supportsDynamicLayers:void 0}function V(a){return a&&"capabilities"in a&&a.capabilities!=null&&"exportMap"in a.capabilities?a.capabilities.exportMap:void 0}function G(a){return a?.getAttribute("data-item")}function N(a){let{children:e,error:t}=a,i="incompatible"in a?a.incompatible:!1;return!!e?.filter(n=>!n.hidden).length&&!t&&!i}function q(a){for(let e of a)for(let t of e)if(t.type==="button"||t.type==="toggle")return t}function x(a,e){let t=a.parent,i=a.layer;if(i?.type!=="map-image"||!i.sourceJSON||!t)return!1;let n=i.sourceJSON.layers;if(!n)return!1;let s=n.find(l=>a.id===l.id),c=e==="footprints"?"Feature Layer":"Catalog Dynamic Group Layer";return s?.type!==c?!1:n.find(l=>l.id===t.id)?.type==="Catalog Layer"}var C=class extends T{constructor(){super(...arguments),this._itemRef=v(),this._noticeRef=v(),this.messages=w(),this.hideCatalogLayerList=!1,this.showCloseButton=!1,this.showCollapseButton=!1,this.showErrors=!1,this.showFilter=!1,this.hideFlow=!1,this.showHeading=!1,this.hideStatusIndicators=!1,this.showTemporaryLayerIndicators=!1,this.showTemporaryTableIndicators=!1,this.dragEnabled=!1,this.listModeDisabled=!1,this.autoDestroyDisabled=!1}static{this.properties={_title:16,_renderedItemStatus:16,_renderedItemTemporaryIcon:16,_renderedItemToggle:16,_renderedPanel:16,_renderedPanelAction:16,_renderedActions:16,_renderedActionMenu:16,_renderedActionMenuContent:16,_renderedCatalogFootprintIcon:16,_renderedCatalogDynamicIcon:16,_renderedCatalogSelectNode:16,_renderedChildList:16,_hasTables:16,_renderedTablesItem:16,_renderedItemMessage:16,_singleAction:16,_filteredSections:16,_actionsCount:16,activeItem:0,canMove:0,css:0,displayMode:1,hideCatalogLayerList:5,showCloseButton:5,showCollapseButton:5,showErrors:5,showFilter:5,hideFlow:5,showHeading:5,hideStatusIndicators:5,showTemporaryLayerIndicators:5,showTemporaryTableIndicators:5,dragEnabled:5,item:0,layerTablesEnabled:0,listModeDisabled:5,handleAction:0,handlePanelOpen:0,handleCatalogOpen:0,handleTablesOpen:0,handleSelectedDragItemLayerUidChange:0,handleTooltipReferenceChange:0,parent:0,parentTitles:0,rootGroupUid:1,selectionMode:1,selectedItems:0,selectedDragItemLayerUid:1,visibilityAppearance:1,autoDestroyDisabled:5}}static{this.styles=E}get _title(){let{messages:e}=this;return this.item.title||("untitledTable"in e?e.untitledTable:e.untitledLayer)}get _renderedItemStatus(){let{item:e,parent:t,hideStatusIndicators:i,css:n}=this;if(!i)return null;let{publishing:s}=e,c="updating"in e&&e.updating&&!t,l="connectionStatus"in e?e.connectionStatus:void 0,u=!!l;return r`<calcite-icon class=${h(y(n.statusIndicator,{[n.publishing]:s},"updating"in n&&{[n.updating]:c},"connectionStatus"in n&&{[n.connectionStatus]:u},"connectionStatusConnected"in n&&{[n.connectionStatusConnected]:u&&l==="connected"}))} .icon=${P({connectionStatus:l,publishing:s})} scale=s slot=content-end></calcite-icon>`}get _renderedItemTemporaryIcon(){let{item:e,showTemporaryLayerIndicators:t,showTemporaryTableIndicators:i,css:n}=this,{layer:s}=e,c=s&&"persistenceEnabled"in s&&(O(s)||!s.persistenceEnabled);return(t||i)&&c?r`<calcite-icon class=${h(n.itemTemporaryIcon)} icon=temporary scale=s slot=content-start title=${this.messages.temporary??o}></calcite-icon>`:null}get _renderedItemToggle(){let{item:e,parent:t,messages:i,visibilityAppearance:n,css:s}=this;if(!("visible"in e)||!("layerVisibility"in i)||!("visibleToggle"in s)||!n)return null;let{visible:c}=e,l=this._getParentVisibilityMode(t);if(l==="inherited")return null;let u=R({visible:c,exclusive:l==="exclusive",visibilityAppearance:n}),d=n==="checkbox",g=i.layerVisibility;return r`<calcite-action class=${h(s.visibleToggle)} .icon=${d?u:void 0} @click=${()=>this._toggleVisibility(e,t)} scale=s .slot=${d?"actions-start":"actions-end"} .text=${g??""} title=${g??o}>${d?null:r`<calcite-icon class=${h(y({[s.visibleIcon]:l!=="exclusive"&&c}))} .icon=${u} scale=s></calcite-icon>`}</calcite-action>`}get _renderedPanel(){let{panel:e}=this.item;return e?.open&&!e.disabled&&!e.flowEnabled?r`<div class=${h(this.css.itemContentBottom)} slot=content-bottom>${e.render()}</div>`:null}get _renderedPanelAction(){let{panel:e}=this.item;if(!e?.visible)return null;let{open:t,title:i,disabled:n}=e,s={icon:e.icon,image:e.image,indicator:!1};return r`<calcite-action .active=${t} .disabled=${n} .icon=${I(s)} @click=${()=>this._togglePanel(e)} scale=s slot=actions-end .text=${i??""} title=${i??void 0??o}>${this._renderFallbackIcon(e)}</calcite-action>`}get _renderedActions(){switch(this._actionsCount){case 0:return null;case 1:return this._singleAction;default:return this._renderedActionMenu}}get _renderedActionMenu(){let{item:e,messages:t}=this,i=t.options;return r`<calcite-action-menu appearance=transparent .label=${t.menu??""} .open=${e.actionsOpen} overlay-positioning=fixed placement=bottom-end scale=s slot=actions-end @calciteActionMenuOpen=${this._onActionMenuOpen}><calcite-action icon=ellipsis scale=s slot=trigger .text=${i??""} title=${i??o}></calcite-action>${this._renderedActionMenuContent}</calcite-action-menu>`}get _renderedActionMenuContent(){return this._filteredSections.toArray().map(e=>r`<calcite-action-group>${e.toArray().map(t=>this._renderAction({action:t,textEnabled:!0}))}</calcite-action-group>`)}get _renderedCatalogFootprintIcon(){let{css:e}=this,t=this.item.layer,i=t?.type==="catalog-footprint",n=t?.type==="sublayer"&&x(t,"footprints");return"itemCatalogIcon"in e&&(i||n)?r`<calcite-icon class=${h(e.itemCatalogIcon)} icon=footprint scale=s slot=content-start></calcite-icon>`:null}get _renderedCatalogDynamicIcon(){let{css:e}=this,t=this.item.layer,i=t?.type==="catalog-dynamic-group",n=t?.type==="sublayer"&&x(t,"layers-in-view");return"itemCatalogIcon"in e&&(i||n)?r`<calcite-icon class=${h(e.itemCatalogIcon)} icon=catalog-dataset scale=s slot=content-start></calcite-icon>`:null}get _renderedCatalogSelectNode(){let{_title:e,item:t,hideCatalogLayerList:i}=this;if(!("visible"in t))return;let{layer:n}=t,s=n?.type==="catalog-dynamic-group";return i&&s?r`<calcite-action .disabled=${!n.visible} icon=chevron-right icon-flip-rtl @click=${()=>this._triggerOnCatalogOpen(t)} scale=s slot=actions-end .text=${e}></calcite-action>`:null}get _renderedChildList(){let{dragEnabled:e,item:t,rootGroupUid:i,listModeDisabled:n,selectionMode:s,displayMode:c}=this;if(!("children"in t))return;let l=[...this.parentTitles??[],t.title],{children:u,layer:d}=t,g=d?.type!=="catalog-dynamic-group"&&N(t),$=n?!1:F(d),m=d?.type==="group",_=!$&&!g&&e&&m,b=e?"childrenSortable"in t&&t.childrenSortable&&k(t):!1;return g||_?r`<calcite-list .canPull=${p=>this.canMove?this.canMove(p,"pull"):!1} .canPut=${p=>this.canMove?this.canMove(p,"put"):!1} data-item=${t??o} data-layer-type=${i??o} .displayMode=${c} .dragEnabled=${b} .group=${m?i:`${i}-${d?.uid}`} .label=${t.title} selection-appearance=border .selectionMode=${s}>${u?.filter(p=>!p.hidden&&(this.showErrors||!p.error)).toArray().map(p=>this._renderItem(p,t,l))}${this._renderedTablesItem}</calcite-list>`:null}get _hasTables(){let{layerTablesEnabled:e}=this,t=this.item.layer;if(!e||!t)return!1;switch(t.type){case"knowledge-graph":return e.includes(t.type)&&"tables"in t&&!!t.tables?.length;case"map-image":case"tile":return e.includes(t.type)&&"subtables"in t&&!!t.subtables?.length;default:return!1}}get _renderedTablesItem(){let{item:e,messages:t,css:i}=this,{layer:n}=e;return"itemTableIcon"in i&&"visible"in e&&"tables"in t&&this._hasTables?r`<calcite-list-item class=${h(i.item)} data-layer-id=${n?.id??o} drag-disabled .label=${t.tables} title=${t.tables??o} @calciteListItemSelect=${()=>this._triggerOnTablesOpen(e)}><calcite-icon class=${h(i.itemTableIcon)} icon=table scale=s slot=content-start></calcite-icon><calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>`:null}get _renderedItemMessage(){let{item:e,messages:t,css:i}=this;return e.error?r`<div class=${h(i.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s width=full><div slot=message>${"tableError"in t?t.tableError:t.layerError}</div></calcite-notice></div>`:"incompatible"in e&&e.incompatible&&"layerIncompatible"in t?r`<div class=${h(i.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s tabindex=0 width=full ${f(this._noticeRef)}><div slot=message>${t.layerIncompatible}</div></calcite-notice></div>`:null}get _singleAction(){return this._renderAction({action:q(this._filteredSections),textEnabled:!1})}get _filteredSections(){return this.item.actionsSections.map(e=>e.filter(t=>t.visible))}get _actionsCount(){return this.item.actionsSections.reduce((e,t)=>e+t.length,0)}async destroy(){await this.manager.destroy()}willUpdate(){this._itemRef.value&&this._focusSelectedDragEl(this._itemRef.value,this.item),this._noticeRef.value&&this._setTooltipReference(this._noticeRef.value)}updated(){this._itemRef.value&&this._focusSelectedDragEl(this._itemRef.value,this.item),this._noticeRef.value&&this._removeTooltipReference()}_onActionMenuOpen(e){this.item.actionsOpen=e.currentTarget.open}_setTooltipReference(e){this.handleTooltipReferenceChange?.(this.item.layer?.uid,e)}_removeTooltipReference(){this.handleTooltipReferenceChange?.(this.item.layer?.uid,null)}_triggerAction(e,t){!t||!e||(t.type==="toggle"&&(t.value=!t.value),this.handleAction(t,e))}_triggerOnTablesOpen(e){!e||!this.handleTablesOpen||this.handleTablesOpen(e)}_triggerOnCatalogOpen(e){e&&this.handleCatalogOpen?.(e)}_focusSelectedDragEl(e,t){this.selectedDragItemLayerUid===t.layer?.uid&&(S(e),this.handleSelectedDragItemLayerUidChange?.(null))}_handleCalciteListItemToggle(e,t){e.stopPropagation(),t.open=e.target.expanded}_getParentVisibilityMode(e){return e&&"visibilityMode"in e?e.visibilityMode:null}_handleCalciteListItemSelect(e,t,i){if(G(e.target)!==t)return;let n=this._getParentVisibilityMode(i);this.selectionMode!=="none"||n==="inherited"||this._toggleVisibility(t,i)}_togglePanel(e){e.open=!e.open,e.open&&this.handlePanelOpen()}_toggleVisibility(e,t){!e||!("visible"in e)||this._getParentVisibilityMode(t)==="exclusive"&&e.visible||(e.visible=!e.visible)}render(){let e=this.parentTitles??[],{_title:t,item:i,activeItem:n,selectionMode:s,selectedItems:c,messages:l,parent:u,css:d}=this,g="visibleAtCurrentTimeExtent"in i&&"layerInvisibleAtTime"in l&&!i.visibleAtCurrentTimeExtent?`${t} (${l.layerInvisibleAtTime})`:"visibleAtCurrentScale"in i&&"layerInvisibleAtScale"in l&&!i.visibleAtCurrentScale?`${t} (${l.layerInvisibleAtScale})`:t,$="parent"in i&&i.parent?.layer?.type==="catalog",{layer:m}=i,_="visibleAtCurrentScale"in i&&!i.visibleAtCurrentScale||"visibleAtCurrentTimeExtent"in i&&!i.visibleAtCurrentTimeExtent;return r`<calcite-list-item class=${h(y(d.item,"itemActive"in d&&{[d.itemActive]:n===i}))} data-item=${i??o} data-layer-id=${m?.id??o} .dragDisabled=${!("sortable"in i&&i.sortable)||$} id=${m?.uid??o} .label=${t} .metadata=${{parentTitles:e,_title:t}} .expanded=${"open"in i&&i.open} .selected=${s!=="none"?c.includes(i):!1} title=${g??o} .unavailable=${_} .value=${m?.uid} @calciteListItemSelect=${b=>"visible"in i&&this._handleCalciteListItemSelect(b,i,u)} @calciteListItemToggle=${b=>"open"in i&&this._handleCalciteListItemToggle(b,i)} ${f(this._itemRef)}>${this._renderedCatalogFootprintIcon}${this._renderedCatalogDynamicIcon}${this._renderedItemStatus}${this._renderedItemToggle}${this._renderedCatalogSelectNode}${this._renderedItemTemporaryIcon}${this._renderedChildList}${this._renderedItemMessage}${this._renderedPanel}${this._renderedPanelAction}${this._renderedActions}</calcite-list-item>`}_renderAction(e){let{item:t}=this,{action:i,textEnabled:n}=e;if(!i)return null;let{active:s,disabled:c,title:l,type:u,indicator:d}=i;return r`<calcite-action .active=${u==="toggle"?i.value:!1} data-action-id=${i.id??o} .disabled=${c} .icon=${I(i)} .indicator=${d} .loading=${s} @click=${()=>this._triggerAction(t,i)} scale=s slot=${(n?void 0:"actions-end")??o} .text=${l??""} .textEnabled=${n} title=${l??void 0??o}>${this._renderFallbackIcon(i)}</calcite-action>`}_renderFallbackIcon(e){let{css:t}=this,{icon:i}=e;if(i)return null;let n="image"in e?e.image:void 0,s={[t.itemActionImage]:!!n};return n?r`<span aria-hidden=true class=${h(y(t.itemActionIcon,s))} style=${A(L(n))}></span>`:null}_renderItem(e,t,i=[]){return r`<arcgis-layer-list-item .activeItem=${this.activeItem} .canMove=${this.canMove} .css=${this.css} .displayMode=${this.displayMode} .dragEnabled=${this.dragEnabled} .item=${e} .layerTablesEnabled=${this.layerTablesEnabled} .listModeDisabled=${this.listModeDisabled} .parent=${t} .parentTitles=${i} .rootGroupUid=${this.rootGroupUid} .selectedDragItemLayerUid=${this.selectedDragItemLayerUid} .selectedItems=${this.selectedItems} .selectionMode=${this.selectionMode} .visibilityAppearance=${this.visibilityAppearance} .handleAction=${this.handleAction} .handleCatalogOpen=${this.handleCatalogOpen} .handlePanelOpen=${this.handlePanelOpen} .handleSelectedDragItemLayerUidChange=${this.handleSelectedDragItemLayerUidChange} .handleTablesOpen=${this.handleTablesOpen} .handleTooltipReferenceChange=${this.handleTooltipReferenceChange} .hideCatalogLayerList=${this.hideCatalogLayerList} .showCloseButton=${this.showCloseButton} .showCollapseButton=${this.showCollapseButton} .showErrors=${this.showErrors} .showFilter=${this.showFilter} .hideFlow=${this.hideFlow} .showHeading=${this.showHeading} .hideStatusIndicators=${this.hideStatusIndicators} .showTemporaryLayerIndicators=${this.showTemporaryLayerIndicators} .showTemporaryTableIndicators=${this.showTemporaryTableIndicators}></arcgis-layer-list-item>`}};M("arcgis-layer-list-item",C);return C},"layers/catalog/catalogUtils",a,b,c)
|